@ckeditor/ckeditor5-comments 40.0.0 → 40.1.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/LICENSE.md +3 -3
- package/build/comments.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +2 -0
- package/lang/translations/af.po +8 -0
- package/lang/translations/ar.po +8 -0
- package/lang/translations/bg.po +8 -0
- package/lang/translations/bn.po +8 -0
- package/lang/translations/bs.po +8 -0
- package/lang/translations/ca.po +8 -0
- package/lang/translations/cs.po +8 -0
- package/lang/translations/da.po +8 -0
- package/lang/translations/de-ch.po +8 -0
- package/lang/translations/de.po +8 -0
- package/lang/translations/el.po +8 -0
- package/lang/translations/en-au.po +8 -0
- package/lang/translations/en.po +8 -0
- package/lang/translations/es-co.po +8 -0
- package/lang/translations/es.po +8 -0
- package/lang/translations/et.po +8 -0
- package/lang/translations/fa.po +8 -0
- package/lang/translations/fi.po +8 -0
- package/lang/translations/fr.po +8 -0
- package/lang/translations/gl.po +8 -0
- package/lang/translations/he.po +8 -0
- package/lang/translations/hi.po +8 -0
- package/lang/translations/hr.po +8 -0
- package/lang/translations/hu.po +8 -0
- package/lang/translations/id.po +8 -0
- package/lang/translations/it.po +8 -0
- package/lang/translations/ja.po +8 -0
- package/lang/translations/jv.po +8 -0
- package/lang/translations/ko.po +8 -0
- package/lang/translations/lt.po +8 -0
- package/lang/translations/lv.po +8 -0
- package/lang/translations/ms.po +8 -0
- package/lang/translations/nl.po +8 -0
- package/lang/translations/no.po +8 -0
- package/lang/translations/pl.po +8 -0
- package/lang/translations/pt-br.po +8 -0
- package/lang/translations/pt.po +8 -0
- package/lang/translations/ro.po +8 -0
- package/lang/translations/ru.po +8 -0
- package/lang/translations/sk.po +8 -0
- package/lang/translations/sq.po +8 -0
- package/lang/translations/sr-latn.po +8 -0
- package/lang/translations/sr.po +8 -0
- package/lang/translations/sv.po +8 -0
- package/lang/translations/th.po +8 -0
- package/lang/translations/tk.po +8 -0
- package/lang/translations/tr.po +8 -0
- package/lang/translations/tt.po +8 -0
- package/lang/translations/ug.po +8 -0
- package/lang/translations/uk.po +8 -0
- package/lang/translations/ur.po +8 -0
- package/lang/translations/vi.po +8 -0
- package/lang/translations/zh-cn.po +8 -0
- package/lang/translations/zh.po +8 -0
- package/package.json +3 -3
- package/src/annotations/annotation.d.ts +90 -90
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.d.ts +98 -98
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.d.ts +154 -154
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.d.ts +232 -232
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.d.ts +67 -67
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.d.ts +90 -90
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.d.ts +85 -85
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.d.ts +100 -100
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.d.ts +29 -29
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.d.ts +90 -90
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.d.ts +55 -55
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.d.ts +32 -32
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.d.ts +77 -77
- package/src/annotations/widesidebar.js +1 -1
- package/src/augmentation.d.ts +52 -52
- package/src/comments/addcommentthreadcommand.d.ts +35 -35
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.d.ts +31 -31
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.d.ts +38 -38
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.d.ts +79 -79
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.d.ts +1129 -1129
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.d.ts +33 -33
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.d.ts +17 -17
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.d.ts +21 -21
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.d.ts +36 -36
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.d.ts +31 -31
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +36 -36
- 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 +119 -119
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.d.ts +112 -112
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.d.ts +13 -13
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.d.ts +14 -14
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.d.ts +86 -86
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.d.ts +38 -38
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.d.ts +100 -100
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.d.ts +50 -50
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.d.ts +41 -41
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.d.ts +118 -118
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.d.ts +243 -243
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.d.ts +35 -35
- package/src/comments.js +1 -1
- package/src/commentsonly.d.ts +33 -33
- package/src/commentsonly.js +1 -1
- package/src/config.d.ts +176 -176
- package/src/index.d.ts +24 -24
- package/src/utils/common-translations.d.ts +9 -9
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.d.ts +14 -14
- package/src/utils/createmutationobserver.js +1 -1
- package/theme/comment.css +1 -1
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module comments/annotations/annotationcollection
|
|
7
|
-
* @publicApi
|
|
8
|
-
*/
|
|
9
|
-
import { Collection } from 'ckeditor5/src/utils';
|
|
10
|
-
import type { View } from 'ckeditor5/src/ui';
|
|
11
|
-
import type Annotation from './annotation';
|
|
12
|
-
/**
|
|
13
|
-
* A collection of {@link module:comments/annotations/annotation~Annotation annotations}.
|
|
14
|
-
*
|
|
15
|
-
* It implements methods for managing annotations and creates a focus tracker for them to make it easier to manage
|
|
16
|
-
* the focus for all annotations.
|
|
17
|
-
*
|
|
18
|
-
* `AnnotationCollection` fires {@link module:comments/annotations/annotationcollection~AnnotationCollection#event:focus} when an annotation
|
|
19
|
-
* becomes focused and {@link module:comments/annotations/annotationcollection~AnnotationCollection#event:blur} when all annotations
|
|
20
|
-
* lose focus.
|
|
21
|
-
*/
|
|
22
|
-
export default class AnnotationCollection extends Collection<Annotation> {
|
|
23
|
-
/**
|
|
24
|
-
* @param annotations Initial annotations.
|
|
25
|
-
*/
|
|
26
|
-
constructor(annotations?: Iterable<Annotation>);
|
|
27
|
-
/**
|
|
28
|
-
* Equals to `true` when one of the annotation in the collection is focused.
|
|
29
|
-
*/
|
|
30
|
-
get isFocused(): boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Adds an annotation to the collection.
|
|
33
|
-
*/
|
|
34
|
-
add(annotation: Annotation): this;
|
|
35
|
-
/**
|
|
36
|
-
* Removes the annotation from the collection.
|
|
37
|
-
*/
|
|
38
|
-
remove(annotation: Annotation): Annotation;
|
|
39
|
-
/**
|
|
40
|
-
* Gets the annotation for a given annotation view's inner view.
|
|
41
|
-
*/
|
|
42
|
-
getByInnerView(innerView: View): Annotation | undefined;
|
|
43
|
-
/**
|
|
44
|
-
* Gets the annotation for a given annotation view.
|
|
45
|
-
*/
|
|
46
|
-
getByView(view: View): Annotation | undefined;
|
|
47
|
-
/**
|
|
48
|
-
* Destroys all bindings and clears the collection.
|
|
49
|
-
*/
|
|
50
|
-
destroy(): void;
|
|
51
|
-
/**
|
|
52
|
-
* Refreshes the positioning of all annotations and sorts them topmost and leftmost.
|
|
53
|
-
*/
|
|
54
|
-
refreshPositioning(): void;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Fired when an annotation becomes active.
|
|
58
|
-
*
|
|
59
|
-
* @eventName ~AnnotationCollection#focus
|
|
60
|
-
* @param annotation An annotation that was focused.
|
|
61
|
-
*/
|
|
62
|
-
export type AnnotationFocusEvent = {
|
|
63
|
-
name: 'focus';
|
|
64
|
-
args: [annotation: Annotation];
|
|
65
|
-
};
|
|
66
|
-
/**
|
|
67
|
-
* Fired when all annotations become blurred.
|
|
68
|
-
*
|
|
69
|
-
* @eventName ~AnnotationCollection#blur
|
|
70
|
-
*/
|
|
71
|
-
export type AnnotationBlurEvent = {
|
|
72
|
-
name: 'blur';
|
|
73
|
-
args: [];
|
|
74
|
-
};
|
|
75
|
-
/**
|
|
76
|
-
* A helper function that binds two {@link module:comments/annotations/annotationcollection~AnnotationCollection AnnotationCollection}s
|
|
77
|
-
* and allows filtering items based on the passed callback.
|
|
78
|
-
*
|
|
79
|
-
* Since {@link module:comments/annotations/annotationcollection~AnnotationCollection#refreshPositioning}
|
|
80
|
-
* sorts the annotations by removing and inserting items, the binding implemented by the `bindTo()` method is lost. This is why
|
|
81
|
-
* this helper needs to be used.
|
|
82
|
-
*
|
|
83
|
-
* This helper is used by the annotations UIs to filter which annotations from the
|
|
84
|
-
* {@link module:comments/annotations/annotations~Annotations#collection main annotation collection} should be handled by
|
|
85
|
-
* a given annotations UI.
|
|
86
|
-
*
|
|
87
|
-
* @param `options.source` The source collection
|
|
88
|
-
* from which the annotations will be taken.
|
|
89
|
-
* @param `options.target` The target collection
|
|
90
|
-
* that will be synced to the source collection.
|
|
91
|
-
* @param options.filter Filtering function that gets an annotation and should return `true` if the annotation should be
|
|
92
|
-
* copied to the `target` collection.
|
|
93
|
-
*/
|
|
94
|
-
export declare function bindAnnotationCollections({ source, target, filter }: {
|
|
95
|
-
source: AnnotationCollection;
|
|
96
|
-
target: AnnotationCollection;
|
|
97
|
-
filter: (annotation: Annotation) => boolean;
|
|
98
|
-
}): void;
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module comments/annotations/annotationcollection
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Collection } from 'ckeditor5/src/utils';
|
|
10
|
+
import type { View } from 'ckeditor5/src/ui';
|
|
11
|
+
import type Annotation from './annotation';
|
|
12
|
+
/**
|
|
13
|
+
* A collection of {@link module:comments/annotations/annotation~Annotation annotations}.
|
|
14
|
+
*
|
|
15
|
+
* It implements methods for managing annotations and creates a focus tracker for them to make it easier to manage
|
|
16
|
+
* the focus for all annotations.
|
|
17
|
+
*
|
|
18
|
+
* `AnnotationCollection` fires {@link module:comments/annotations/annotationcollection~AnnotationCollection#event:focus} when an annotation
|
|
19
|
+
* becomes focused and {@link module:comments/annotations/annotationcollection~AnnotationCollection#event:blur} when all annotations
|
|
20
|
+
* lose focus.
|
|
21
|
+
*/
|
|
22
|
+
export default class AnnotationCollection extends Collection<Annotation> {
|
|
23
|
+
/**
|
|
24
|
+
* @param annotations Initial annotations.
|
|
25
|
+
*/
|
|
26
|
+
constructor(annotations?: Iterable<Annotation>);
|
|
27
|
+
/**
|
|
28
|
+
* Equals to `true` when one of the annotation in the collection is focused.
|
|
29
|
+
*/
|
|
30
|
+
get isFocused(): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Adds an annotation to the collection.
|
|
33
|
+
*/
|
|
34
|
+
add(annotation: Annotation): this;
|
|
35
|
+
/**
|
|
36
|
+
* Removes the annotation from the collection.
|
|
37
|
+
*/
|
|
38
|
+
remove(annotation: Annotation): Annotation;
|
|
39
|
+
/**
|
|
40
|
+
* Gets the annotation for a given annotation view's inner view.
|
|
41
|
+
*/
|
|
42
|
+
getByInnerView(innerView: View): Annotation | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Gets the annotation for a given annotation view.
|
|
45
|
+
*/
|
|
46
|
+
getByView(view: View): Annotation | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Destroys all bindings and clears the collection.
|
|
49
|
+
*/
|
|
50
|
+
destroy(): void;
|
|
51
|
+
/**
|
|
52
|
+
* Refreshes the positioning of all annotations and sorts them topmost and leftmost.
|
|
53
|
+
*/
|
|
54
|
+
refreshPositioning(): void;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Fired when an annotation becomes active.
|
|
58
|
+
*
|
|
59
|
+
* @eventName ~AnnotationCollection#focus
|
|
60
|
+
* @param annotation An annotation that was focused.
|
|
61
|
+
*/
|
|
62
|
+
export type AnnotationFocusEvent = {
|
|
63
|
+
name: 'focus';
|
|
64
|
+
args: [annotation: Annotation];
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Fired when all annotations become blurred.
|
|
68
|
+
*
|
|
69
|
+
* @eventName ~AnnotationCollection#blur
|
|
70
|
+
*/
|
|
71
|
+
export type AnnotationBlurEvent = {
|
|
72
|
+
name: 'blur';
|
|
73
|
+
args: [];
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* A helper function that binds two {@link module:comments/annotations/annotationcollection~AnnotationCollection AnnotationCollection}s
|
|
77
|
+
* and allows filtering items based on the passed callback.
|
|
78
|
+
*
|
|
79
|
+
* Since {@link module:comments/annotations/annotationcollection~AnnotationCollection#refreshPositioning}
|
|
80
|
+
* sorts the annotations by removing and inserting items, the binding implemented by the `bindTo()` method is lost. This is why
|
|
81
|
+
* this helper needs to be used.
|
|
82
|
+
*
|
|
83
|
+
* This helper is used by the annotations UIs to filter which annotations from the
|
|
84
|
+
* {@link module:comments/annotations/annotations~Annotations#collection main annotation collection} should be handled by
|
|
85
|
+
* a given annotations UI.
|
|
86
|
+
*
|
|
87
|
+
* @param `options.source` The source collection
|
|
88
|
+
* from which the annotations will be taken.
|
|
89
|
+
* @param `options.target` The target collection
|
|
90
|
+
* that will be synced to the source collection.
|
|
91
|
+
* @param options.filter Filtering function that gets an annotation and should return `true` if the annotation should be
|
|
92
|
+
* copied to the `target` collection.
|
|
93
|
+
*/
|
|
94
|
+
export declare function bindAnnotationCollections({ source, target, filter }: {
|
|
95
|
+
source: AnnotationCollection;
|
|
96
|
+
target: AnnotationCollection;
|
|
97
|
+
filter: (annotation: Annotation) => boolean;
|
|
98
|
+
}): void;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c1c=['fire','getByView','innerView','set','refreshPositioning','delete','from','getIndex','_innerViewToAnnotation','_getOrderInContent','left','annotationcollection-not-existing-item','stopListening','focusTracker','length','sort','get','_sort','remove','_viewToAnnotation','view','annotationcollection-duplicated-item','add','focusableElements','updateTargetRect','_focusTracker','change:isFocused','top','listenTo','blur','has','clear','isFocused','targetRect'];(function(_0x443c00,_0x1c1cae){const _0xcb4283=function(_0x2c84b0){while(--_0x2c84b0){_0x443c00['push'](_0x443c00['shift']());}};_0xcb4283(++_0x1c1cae);}(_0x1c1c,0x182));const _0xcb42=function(_0x443c00,_0x1c1cae){_0x443c00=_0x443c00-0x0;let _0xcb4283=_0x1c1c[_0x443c00];return _0xcb4283;};import{CKEditorError as _0x3bfe54,Collection as _0x304a37,FocusTracker as _0x41a0db}from'ckeditor5/src/utils';export default class x extends _0x304a37{constructor(_0x3a494e=[]){super(),this['_innerViewToAnnotation']=new Map(),this[_0xcb42('0x7')]=new Map(),this['_focusTracker']=new _0x41a0db(),this[_0xcb42('0xd')]['on'](_0xcb42('0xe'),(_0x563e11,_0x1e2ec5,_0x48d908)=>{_0x48d908||this[_0xcb42('0x16')](_0xcb42('0x11'));});for(const _0x58a9f4 of _0x3a494e)this[_0xcb42('0xa')](_0x58a9f4);}get[_0xcb42('0x14')](){return this[_0xcb42('0xd')][_0xcb42('0x14')];}[_0xcb42('0xa')](_0x162ff7){if(this[_0xcb42('0x12')](_0x162ff7))throw new _0x3bfe54(_0xcb42('0x9'),null);this[_0xcb42('0x1e')][_0xcb42('0x19')](_0x162ff7[_0xcb42('0x18')],_0x162ff7),this[_0xcb42('0x7')][_0xcb42('0x19')](_0x162ff7[_0xcb42('0x8')],_0x162ff7);for(const _0x16cae3 of _0x162ff7[_0xcb42('0xb')])this[_0xcb42('0xd')][_0xcb42('0xa')](_0x16cae3);this[_0xcb42('0x10')](_0x162ff7[_0xcb42('0xb')],_0xcb42('0xa'),(_0x2d9b0d,_0x466bf4)=>{this[_0xcb42('0xd')][_0xcb42('0xa')](_0x466bf4);}),this[_0xcb42('0x10')](_0x162ff7['focusableElements'],'remove',(_0x509400,_0xb4ca13)=>{this['_focusTracker'][_0xcb42('0x6')](_0xb4ca13);}),this[_0xcb42('0x10')](_0x162ff7[_0xcb42('0x8')]['focusTracker'],'change:isFocused',(_0x12e936,_0x1fc472,_0x13e4ff)=>{_0x13e4ff&&this[_0xcb42('0x16')]('focus',_0x162ff7);}),_0x162ff7[_0xcb42('0xc')]();const _0x34dffd=this[_0xcb42('0x1f')](_0x162ff7[_0xcb42('0x8')]['targetRect']);return super[_0xcb42('0xa')](_0x162ff7,_0x34dffd);}[_0xcb42('0x6')](_0x2fdfdf){if(!this[_0xcb42('0x12')](_0x2fdfdf))throw new _0x3bfe54(_0xcb42('0x21'),null);this[_0xcb42('0x0')](_0x2fdfdf[_0xcb42('0x8')][_0xcb42('0x1')]),this[_0xcb42('0x0')](_0x2fdfdf[_0xcb42('0xb')]);for(const _0x24785e of _0x2fdfdf[_0xcb42('0xb')])this[_0xcb42('0xd')]['remove'](_0x24785e);return this[_0xcb42('0x7')][_0xcb42('0x1b')](_0x2fdfdf[_0xcb42('0x8')]),this[_0xcb42('0x1e')][_0xcb42('0x1b')](_0x2fdfdf[_0xcb42('0x18')]),super['remove'](_0x2fdfdf);}['getByInnerView'](_0x47477d){return this['_innerViewToAnnotation'][_0xcb42('0x4')](_0x47477d);}[_0xcb42('0x17')](_0x3e6ea0){return this[_0xcb42('0x7')][_0xcb42('0x4')](_0x3e6ea0);}['destroy'](){super[_0xcb42('0x13')](),this[_0xcb42('0x0')](),this[_0xcb42('0x1e')]['clear'](),this[_0xcb42('0x7')][_0xcb42('0x13')](),this[_0xcb42('0xd')]['destroy']();}[_0xcb42('0x1a')](){for(const _0x16b08d of this)_0x16b08d[_0xcb42('0xc')]();this[_0xcb42('0x5')]();}[_0xcb42('0x5')](){const _0x54f767=Array[_0xcb42('0x1c')](this)[_0xcb42('0x3')]((_0x29ebf4,_0x4bb8fa)=>v(_0x29ebf4[_0xcb42('0x8')][_0xcb42('0x15')],_0x4bb8fa[_0xcb42('0x8')][_0xcb42('0x15')]));for(let _0x2c85dc=_0x54f767[_0xcb42('0x2')]-0x1;_0x2c85dc>0x0;_0x2c85dc--){const _0x1c9f27=_0x54f767[_0x2c85dc];_0x2c85dc!==this[_0xcb42('0x1d')](_0x1c9f27)&&(this[_0xcb42('0x6')](_0x1c9f27),this[_0xcb42('0xa')](_0x1c9f27));}}['_getOrderInContent'](_0x2ab955){let _0x4f7c7d=0x0;if(!_0x2ab955)return this[_0xcb42('0x2')];for(const _0x180f9c of this){const _0x24be7f=_0x180f9c[_0xcb42('0x8')][_0xcb42('0x15')];if(_0x24be7f){if(v(_0x2ab955,_0x24be7f)<0x0)return _0x4f7c7d;_0x4f7c7d++;}}return _0x4f7c7d;}}export function bindAnnotationCollections({source:_0x5353de,target:_0x4403f7,filter:_0x3f9b21}){for(const _0x330165 of _0x5353de)_0x3f9b21(_0x330165)&&_0x4403f7[_0xcb42('0xa')](_0x330165);_0x4403f7[_0xcb42('0x10')](_0x5353de,_0xcb42('0xa'),(_0x149eff,_0x40e1a9)=>{_0x3f9b21(_0x40e1a9)&&_0x4403f7[_0xcb42('0xa')](_0x40e1a9);}),_0x4403f7[_0xcb42('0x10')](_0x5353de,_0xcb42('0x6'),(_0x33f8c,_0x1503f1)=>{_0x4403f7[_0xcb42('0x12')](_0x1503f1)&&_0x4403f7[_0xcb42('0x6')](_0x1503f1);});}function v(_0x170a36,_0x565b6e){if(null===_0x170a36&&null===_0x565b6e)return 0x0;if(null===_0x170a36)return-0x1;if(null===_0x565b6e)return 0x1;const _0x376658=_0x170a36[_0xcb42('0xf')]-_0x565b6e['top'];return 0x0==_0x376658?_0x170a36[_0xcb42('0x20')]-_0x565b6e[_0xcb42('0x20')]:_0x376658;}
|
|
@@ -1,154 +1,154 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module comments/annotations/annotations
|
|
7
|
-
* @publicApi
|
|
8
|
-
*/
|
|
9
|
-
import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
|
|
10
|
-
import type { View } from 'ckeditor5/src/ui';
|
|
11
|
-
import { type Locale } from 'ckeditor5/src/utils';
|
|
12
|
-
import Annotation, { type AnnotationTarget } from './annotation';
|
|
13
|
-
import AnnotationCollection from './annotationcollection';
|
|
14
|
-
import AnnotationView, { type AnnotationMainView } from './view/annotationview';
|
|
15
|
-
/**
|
|
16
|
-
* Stores and manages all {@link module:comments/annotations/annotation~Annotation annotations} created
|
|
17
|
-
* for the entire {@link module:core/context~Context} or {@link module:core/editor/editor~Editor}.
|
|
18
|
-
*
|
|
19
|
-
* It allows for {@link module:comments/annotations/annotations~Annotations#add adding} and
|
|
20
|
-
* {@link module:comments/annotations/annotations~Annotations#remove removing} annotations.
|
|
21
|
-
*
|
|
22
|
-
* It manages {@link module:comments/annotations/annotations~Annotations#activate activating} and
|
|
23
|
-
* {@link module:comments/annotations/annotations~Annotations#deactivateAll deactivating} annotations. Using those methods will
|
|
24
|
-
* result in setting {@link module:comments/annotations/annotationsuis~AnnotationUI#activeAnnotation} in the appropriate
|
|
25
|
-
* {@link module:comments/annotations/annotationsuis~AnnotationsUI annotations UI} plugins.
|
|
26
|
-
*
|
|
27
|
-
* All active annotations are stored in {@link module:comments/annotations/annotations~Annotations#activeAnnotations}.
|
|
28
|
-
*
|
|
29
|
-
* `Annotations` is linked with {@link module:comments/annotations/annotationsuis~AnnotationsUIs}, which listens to events fired by
|
|
30
|
-
* `Annotations` and propagates information to and from annotations UI plugins.
|
|
31
|
-
*/
|
|
32
|
-
export default class Annotations extends ContextPlugin {
|
|
33
|
-
/**
|
|
34
|
-
* A set of currently active annotations.
|
|
35
|
-
*
|
|
36
|
-
* @observable
|
|
37
|
-
*/
|
|
38
|
-
activeAnnotations: Set<Annotation>;
|
|
39
|
-
/**
|
|
40
|
-
* A collection of all annotations. It should not be operated on directly.
|
|
41
|
-
*/
|
|
42
|
-
readonly collection: AnnotationCollection;
|
|
43
|
-
/**
|
|
44
|
-
* @inheritDoc
|
|
45
|
-
*/
|
|
46
|
-
static get pluginName(): "Annotations";
|
|
47
|
-
/**
|
|
48
|
-
* @inheritDoc
|
|
49
|
-
*/
|
|
50
|
-
constructor(context: Context | Editor);
|
|
51
|
-
/**
|
|
52
|
-
* Adds an annotation to the collection.
|
|
53
|
-
*/
|
|
54
|
-
add(annotation: Annotation): void;
|
|
55
|
-
/**
|
|
56
|
-
* Removes the given annotation from the collection.
|
|
57
|
-
*/
|
|
58
|
-
remove(annotation: Annotation): void;
|
|
59
|
-
/**
|
|
60
|
-
* Refreshes the visibility of annotations based on the visibility of their annotation targets.
|
|
61
|
-
*
|
|
62
|
-
* This method should be called when one or more annotations' targets changed their visibility,
|
|
63
|
-
* for example when one of the editors was shown or hidden.
|
|
64
|
-
*
|
|
65
|
-
* This method recalculates all annotations' {@link module:comments/annotations/annotation~Annotation#isVisible `isVisible`} property.
|
|
66
|
-
*/
|
|
67
|
-
refreshVisibility(): void;
|
|
68
|
-
/**
|
|
69
|
-
* Refreshes the positioning of all visible annotations and sorts them topmost and leftmost.
|
|
70
|
-
*/
|
|
71
|
-
refreshPositioning(): void;
|
|
72
|
-
/**
|
|
73
|
-
* Returns the annotation that "contains" the given annotation view's inner view.
|
|
74
|
-
*/
|
|
75
|
-
getByInnerView(innerView: View): Annotation | undefined;
|
|
76
|
-
/**
|
|
77
|
-
* Deactivates all active annotations.
|
|
78
|
-
*
|
|
79
|
-
* @fires _deactivateAllAnnotations
|
|
80
|
-
*/
|
|
81
|
-
deactivateAll(): void;
|
|
82
|
-
/**
|
|
83
|
-
* @inheritDoc
|
|
84
|
-
*/
|
|
85
|
-
destroy(): void;
|
|
86
|
-
/**
|
|
87
|
-
* Activates the given annotation.
|
|
88
|
-
*
|
|
89
|
-
* If annotations UI that handles the given annotation already has an active annotation,
|
|
90
|
-
* then it deactivates it and activates the provided one.
|
|
91
|
-
*
|
|
92
|
-
* @fires _activateAnnotation
|
|
93
|
-
*/
|
|
94
|
-
activate(annotation: Annotation): void;
|
|
95
|
-
/**
|
|
96
|
-
* Creates an annotation.
|
|
97
|
-
*
|
|
98
|
-
* ```ts
|
|
99
|
-
* const annotationView = annotations.createAnnotationView( editor.locale, innerView );
|
|
100
|
-
*
|
|
101
|
-
* const annotation = annotations.createAnnotation( {
|
|
102
|
-
* view: annotationView,
|
|
103
|
-
* target: document.getElementById( 'target' ),
|
|
104
|
-
* type: 'comment'
|
|
105
|
-
* } );
|
|
106
|
-
* ```
|
|
107
|
-
*
|
|
108
|
-
* @returns An annotation.
|
|
109
|
-
*/
|
|
110
|
-
createAnnotation(options: AnnotationOptions): Annotation;
|
|
111
|
-
/**
|
|
112
|
-
* Creates an annotation view wrapper for the annotation content.
|
|
113
|
-
*
|
|
114
|
-
* ```ts
|
|
115
|
-
* const innerView = createCustomView();
|
|
116
|
-
* const annotationView = annotations.createAnnotationView( editor.locale, innerView );
|
|
117
|
-
* ```
|
|
118
|
-
*
|
|
119
|
-
* @returns An annotation view.
|
|
120
|
-
*/
|
|
121
|
-
createAnnotationView(locale: Locale, view: AnnotationMainView): AnnotationView;
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* The configuration options which are used to create new {@link module:comments/annotations/annotation~Annotation annotations}.
|
|
125
|
-
*
|
|
126
|
-
* @param view The annotation view.
|
|
127
|
-
* @param target The annotation target.
|
|
128
|
-
* @param type The annotation type.
|
|
129
|
-
* @param isVisible The initial visibility of the annotation.
|
|
130
|
-
*/
|
|
131
|
-
export interface AnnotationOptions {
|
|
132
|
-
view: AnnotationView;
|
|
133
|
-
target: AnnotationTarget;
|
|
134
|
-
type: string | (() => string);
|
|
135
|
-
isVisible?: boolean;
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* An internal event that fires when the annotation should be activated.
|
|
139
|
-
*
|
|
140
|
-
* @eventName ~Annotations#_activateAnnotation
|
|
141
|
-
*/
|
|
142
|
-
export type ActivateAnnotationEvent = {
|
|
143
|
-
name: '_activateAnnotation';
|
|
144
|
-
args: [annotation: Annotation];
|
|
145
|
-
};
|
|
146
|
-
/**
|
|
147
|
-
* An internal event that fires when all annotations should be deactivated.
|
|
148
|
-
*
|
|
149
|
-
* @eventName ~Annotations#_deactivateAllAnnotations
|
|
150
|
-
*/
|
|
151
|
-
export type DeactivateAllAnnotationsEvent = {
|
|
152
|
-
name: '_deactivateAllAnnotations';
|
|
153
|
-
args: [];
|
|
154
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module comments/annotations/annotations
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
|
|
10
|
+
import type { View } from 'ckeditor5/src/ui';
|
|
11
|
+
import { type Locale } from 'ckeditor5/src/utils';
|
|
12
|
+
import Annotation, { type AnnotationTarget } from './annotation';
|
|
13
|
+
import AnnotationCollection from './annotationcollection';
|
|
14
|
+
import AnnotationView, { type AnnotationMainView } from './view/annotationview';
|
|
15
|
+
/**
|
|
16
|
+
* Stores and manages all {@link module:comments/annotations/annotation~Annotation annotations} created
|
|
17
|
+
* for the entire {@link module:core/context~Context} or {@link module:core/editor/editor~Editor}.
|
|
18
|
+
*
|
|
19
|
+
* It allows for {@link module:comments/annotations/annotations~Annotations#add adding} and
|
|
20
|
+
* {@link module:comments/annotations/annotations~Annotations#remove removing} annotations.
|
|
21
|
+
*
|
|
22
|
+
* It manages {@link module:comments/annotations/annotations~Annotations#activate activating} and
|
|
23
|
+
* {@link module:comments/annotations/annotations~Annotations#deactivateAll deactivating} annotations. Using those methods will
|
|
24
|
+
* result in setting {@link module:comments/annotations/annotationsuis~AnnotationUI#activeAnnotation} in the appropriate
|
|
25
|
+
* {@link module:comments/annotations/annotationsuis~AnnotationsUI annotations UI} plugins.
|
|
26
|
+
*
|
|
27
|
+
* All active annotations are stored in {@link module:comments/annotations/annotations~Annotations#activeAnnotations}.
|
|
28
|
+
*
|
|
29
|
+
* `Annotations` is linked with {@link module:comments/annotations/annotationsuis~AnnotationsUIs}, which listens to events fired by
|
|
30
|
+
* `Annotations` and propagates information to and from annotations UI plugins.
|
|
31
|
+
*/
|
|
32
|
+
export default class Annotations extends ContextPlugin {
|
|
33
|
+
/**
|
|
34
|
+
* A set of currently active annotations.
|
|
35
|
+
*
|
|
36
|
+
* @observable
|
|
37
|
+
*/
|
|
38
|
+
activeAnnotations: Set<Annotation>;
|
|
39
|
+
/**
|
|
40
|
+
* A collection of all annotations. It should not be operated on directly.
|
|
41
|
+
*/
|
|
42
|
+
readonly collection: AnnotationCollection;
|
|
43
|
+
/**
|
|
44
|
+
* @inheritDoc
|
|
45
|
+
*/
|
|
46
|
+
static get pluginName(): "Annotations";
|
|
47
|
+
/**
|
|
48
|
+
* @inheritDoc
|
|
49
|
+
*/
|
|
50
|
+
constructor(context: Context | Editor);
|
|
51
|
+
/**
|
|
52
|
+
* Adds an annotation to the collection.
|
|
53
|
+
*/
|
|
54
|
+
add(annotation: Annotation): void;
|
|
55
|
+
/**
|
|
56
|
+
* Removes the given annotation from the collection.
|
|
57
|
+
*/
|
|
58
|
+
remove(annotation: Annotation): void;
|
|
59
|
+
/**
|
|
60
|
+
* Refreshes the visibility of annotations based on the visibility of their annotation targets.
|
|
61
|
+
*
|
|
62
|
+
* This method should be called when one or more annotations' targets changed their visibility,
|
|
63
|
+
* for example when one of the editors was shown or hidden.
|
|
64
|
+
*
|
|
65
|
+
* This method recalculates all annotations' {@link module:comments/annotations/annotation~Annotation#isVisible `isVisible`} property.
|
|
66
|
+
*/
|
|
67
|
+
refreshVisibility(): void;
|
|
68
|
+
/**
|
|
69
|
+
* Refreshes the positioning of all visible annotations and sorts them topmost and leftmost.
|
|
70
|
+
*/
|
|
71
|
+
refreshPositioning(): void;
|
|
72
|
+
/**
|
|
73
|
+
* Returns the annotation that "contains" the given annotation view's inner view.
|
|
74
|
+
*/
|
|
75
|
+
getByInnerView(innerView: View): Annotation | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* Deactivates all active annotations.
|
|
78
|
+
*
|
|
79
|
+
* @fires _deactivateAllAnnotations
|
|
80
|
+
*/
|
|
81
|
+
deactivateAll(): void;
|
|
82
|
+
/**
|
|
83
|
+
* @inheritDoc
|
|
84
|
+
*/
|
|
85
|
+
destroy(): void;
|
|
86
|
+
/**
|
|
87
|
+
* Activates the given annotation.
|
|
88
|
+
*
|
|
89
|
+
* If annotations UI that handles the given annotation already has an active annotation,
|
|
90
|
+
* then it deactivates it and activates the provided one.
|
|
91
|
+
*
|
|
92
|
+
* @fires _activateAnnotation
|
|
93
|
+
*/
|
|
94
|
+
activate(annotation: Annotation): void;
|
|
95
|
+
/**
|
|
96
|
+
* Creates an annotation.
|
|
97
|
+
*
|
|
98
|
+
* ```ts
|
|
99
|
+
* const annotationView = annotations.createAnnotationView( editor.locale, innerView );
|
|
100
|
+
*
|
|
101
|
+
* const annotation = annotations.createAnnotation( {
|
|
102
|
+
* view: annotationView,
|
|
103
|
+
* target: document.getElementById( 'target' ),
|
|
104
|
+
* type: 'comment'
|
|
105
|
+
* } );
|
|
106
|
+
* ```
|
|
107
|
+
*
|
|
108
|
+
* @returns An annotation.
|
|
109
|
+
*/
|
|
110
|
+
createAnnotation(options: AnnotationOptions): Annotation;
|
|
111
|
+
/**
|
|
112
|
+
* Creates an annotation view wrapper for the annotation content.
|
|
113
|
+
*
|
|
114
|
+
* ```ts
|
|
115
|
+
* const innerView = createCustomView();
|
|
116
|
+
* const annotationView = annotations.createAnnotationView( editor.locale, innerView );
|
|
117
|
+
* ```
|
|
118
|
+
*
|
|
119
|
+
* @returns An annotation view.
|
|
120
|
+
*/
|
|
121
|
+
createAnnotationView(locale: Locale, view: AnnotationMainView): AnnotationView;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* The configuration options which are used to create new {@link module:comments/annotations/annotation~Annotation annotations}.
|
|
125
|
+
*
|
|
126
|
+
* @param view The annotation view.
|
|
127
|
+
* @param target The annotation target.
|
|
128
|
+
* @param type The annotation type.
|
|
129
|
+
* @param isVisible The initial visibility of the annotation.
|
|
130
|
+
*/
|
|
131
|
+
export interface AnnotationOptions {
|
|
132
|
+
view: AnnotationView;
|
|
133
|
+
target: AnnotationTarget;
|
|
134
|
+
type: string | (() => string);
|
|
135
|
+
isVisible?: boolean;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* An internal event that fires when the annotation should be activated.
|
|
139
|
+
*
|
|
140
|
+
* @eventName ~Annotations#_activateAnnotation
|
|
141
|
+
*/
|
|
142
|
+
export type ActivateAnnotationEvent = {
|
|
143
|
+
name: '_activateAnnotation';
|
|
144
|
+
args: [annotation: Annotation];
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* An internal event that fires when all annotations should be deactivated.
|
|
148
|
+
*
|
|
149
|
+
* @eventName ~Annotations#_deactivateAllAnnotations
|
|
150
|
+
*/
|
|
151
|
+
export type DeactivateAllAnnotationsEvent = {
|
|
152
|
+
name: '_deactivateAllAnnotations';
|
|
153
|
+
args: [];
|
|
154
|
+
};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1020=['add','stopListening','focusTracker','view','activate','pluginName','fire','activeAnnotations','refreshVisibility','_deactivateAllAnnotations','element','change:isVisible','isVisible','getByInnerView','destroy','source','refreshPositioning','delete','remove','createAnnotation','_activateAnnotation','collection','_removeActiveAnnotation','_addActiveAnnotation','set','createAnnotationView','listenTo','has','Annotations','_bindAnnotationsToVisibleAnnotations','_visibleAnnotations'];(function(_0xf0094a,_0x10205d){const _0x26df23=function(_0x14da1){while(--_0x14da1){_0xf0094a['push'](_0xf0094a['shift']());}};_0x26df23(++_0x10205d);}(_0x1020,0xa3));const _0x26df=function(_0xf0094a,_0x10205d){_0xf0094a=_0xf0094a-0x0;let _0x26df23=_0x1020[_0xf0094a];return _0x26df23;};import{ContextPlugin as _0x422129}from'ckeditor5/src/core';import _0x5aa74c from'./annotation';import _0x3c52f1 from'./annotationcollection';import _0x3b55d2 from'./view/annotationview';export default class b extends _0x422129{static get[_0x26df('0x1c')](){return _0x26df('0x14');}constructor(_0x294441){super(_0x294441),this[_0x26df('0xd')]=new _0x3c52f1(),this['_visibleAnnotations']=new _0x3c52f1(),this[_0x26df('0x10')](_0x26df('0x1e'),new Set()),this[_0x26df('0x15')]();}[_0x26df('0x17')](_0xa6a9b0){this[_0x26df('0xd')]['add'](_0xa6a9b0);}[_0x26df('0xa')](_0x4e9d92){this[_0x26df('0xd')][_0x26df('0xa')](_0x4e9d92),_0x4e9d92['destroy']();}['refreshVisibility'](){for(const _0x522fc4 of this['collection'])_0x522fc4[_0x26df('0x0')]();}[_0x26df('0x8')](){this[_0x26df('0x16')][_0x26df('0x8')]();}['getByInnerView'](_0x416020){return this[_0x26df('0xd')][_0x26df('0x5')](_0x416020);}['deactivateAll'](){this[_0x26df('0x1d')](_0x26df('0x1'));}[_0x26df('0x6')](){for(const _0x14821e of this[_0x26df('0xd')])_0x14821e[_0x26df('0x6')]();this['_visibleAnnotations'][_0x26df('0x6')](),this[_0x26df('0xd')][_0x26df('0x6')](),super[_0x26df('0x6')]();}[_0x26df('0x1b')](_0x259502){this['fire'](_0x26df('0xc'),_0x259502);}[_0x26df('0xb')](_0x26cdb5){return new _0x5aa74c(_0x26cdb5);}[_0x26df('0x11')](_0x128483,_0xa71a49){return new _0x3b55d2(_0x128483,_0xa71a49);}[_0x26df('0xf')](_0x2f3ca8){const _0x4ba131=new Set(this['activeAnnotations']);_0x4ba131[_0x26df('0x17')](_0x2f3ca8),this[_0x26df('0x1e')]=_0x4ba131;}[_0x26df('0xe')](_0xcedf5f){const _0x1f7ceb=new Set(this[_0x26df('0x1e')]);_0x1f7ceb[_0x26df('0x9')](_0xcedf5f),this[_0x26df('0x1e')]=_0x1f7ceb;}[_0x26df('0x15')](){const _0x35dece=this['collection'],_0x1babc0=this['_visibleAnnotations'];function _0x342878(_0x4fd65c){const _0x3e3f7c=_0x4fd65c[_0x26df('0x7')];_0x3e3f7c[_0x26df('0x4')]&&!_0x1babc0[_0x26df('0x13')](_0x3e3f7c)?_0x1babc0['add'](_0x3e3f7c):!_0x3e3f7c[_0x26df('0x4')]&&_0x1babc0[_0x26df('0x13')](_0x3e3f7c)&&_0x1babc0[_0x26df('0xa')](_0x3e3f7c),_0x3e3f7c[_0x26df('0x1a')][_0x26df('0x19')][_0x26df('0xa')](_0x3e3f7c['view'][_0x26df('0x2')]),_0x3e3f7c[_0x26df('0x1a')][_0x26df('0x19')]['add'](_0x3e3f7c[_0x26df('0x1a')][_0x26df('0x2')]);}this['listenTo'](_0x35dece,_0x26df('0x17'),(_0x302e39,_0x10f9c3)=>{_0x10f9c3[_0x26df('0x4')]&&_0x1babc0[_0x26df('0x17')](_0x10f9c3),this[_0x26df('0x12')](_0x10f9c3,'change:isVisible',_0x342878);}),this['listenTo'](_0x35dece,_0x26df('0xa'),(_0x32b0ff,_0x408062)=>{_0x1babc0[_0x26df('0x13')](_0x408062)&&_0x1babc0[_0x26df('0xa')](_0x408062),this[_0x26df('0x18')](_0x408062,_0x26df('0x3'),_0x342878);});}}
|