@ckeditor/ckeditor5-comments 31.0.0 → 31.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/lang/translations/da.po +79 -0
- package/lang/translations/id.po +78 -0
- package/package.json +8 -8
- 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/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/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/commentslistview.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/ui/view/confirmmixin.js +1 -1
- package/src/comments/ui/view/confirmview.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/src/utils/getdatetimeformatter.js +1 -1
- package/src/utils/getmarkerdomelement.js +1 -1
- package/src/utils/trim-html.js +1 -1
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
|
|
2
|
+
#
|
|
3
|
+
# !!! IMPORTANT !!!
|
|
4
|
+
#
|
|
5
|
+
# Before you edit this file, please keep in mind that contributing to the project
|
|
6
|
+
# translations is possible ONLY via the Transifex online service.
|
|
7
|
+
#
|
|
8
|
+
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
|
9
|
+
#
|
|
10
|
+
# To learn more, check out the official contributor's guide:
|
|
11
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
12
|
+
#
|
|
13
|
+
msgid ""
|
|
14
|
+
msgstr ""
|
|
15
|
+
"Language-Team: Danish (https://www.transifex.com/ckeditor/teams/11143/da/)\n"
|
|
16
|
+
"Language: da\n"
|
|
17
|
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
|
+
|
|
19
|
+
msgctxt "The label for the comment editor."
|
|
20
|
+
msgid "Comment editor"
|
|
21
|
+
msgstr "Kommentarer"
|
|
22
|
+
|
|
23
|
+
msgctxt "The label for the number of comments."
|
|
24
|
+
msgid "NUMBER_OF_COMMENTS"
|
|
25
|
+
msgid_plural "%0 Comments"
|
|
26
|
+
msgstr[0] "%0 kommentar."
|
|
27
|
+
msgstr[1] "%0 kommentarer."
|
|
28
|
+
|
|
29
|
+
msgctxt "The alert displayed for a comment that is too long."
|
|
30
|
+
msgid "TOO_LONG_COMMENT_ALERT"
|
|
31
|
+
msgstr "Kommentar er for lang. Din kommentar indeholder %0 tegn, men grænsen er %1 tegn."
|
|
32
|
+
|
|
33
|
+
msgctxt "The placeholder for the reply field."
|
|
34
|
+
msgid "Reply..."
|
|
35
|
+
msgstr "Besvar..."
|
|
36
|
+
|
|
37
|
+
msgctxt "The placeholder for the new commend field."
|
|
38
|
+
msgid "Write a comment..."
|
|
39
|
+
msgstr "Skriv en kommentar..."
|
|
40
|
+
|
|
41
|
+
msgctxt "The label for the button that enables editing a comment."
|
|
42
|
+
msgid "Edit"
|
|
43
|
+
msgstr "Rediger"
|
|
44
|
+
|
|
45
|
+
msgctxt "The label for the button that deletes a comment."
|
|
46
|
+
msgid "Remove"
|
|
47
|
+
msgstr "Slet"
|
|
48
|
+
|
|
49
|
+
msgctxt "The label for for the button that submits a comment."
|
|
50
|
+
msgid "Submit"
|
|
51
|
+
msgstr "Send"
|
|
52
|
+
|
|
53
|
+
msgctxt "The confirmation message shown after pressing the delete comment button."
|
|
54
|
+
msgid "Delete comment?"
|
|
55
|
+
msgstr "Slet kommentar?"
|
|
56
|
+
|
|
57
|
+
msgctxt "The confirmation message shown after pressing the delete comment thread button."
|
|
58
|
+
msgid "Delete comment thread?"
|
|
59
|
+
msgstr "Slet kommentartråd?"
|
|
60
|
+
|
|
61
|
+
msgctxt "The label for confirming an action."
|
|
62
|
+
msgid "Yes"
|
|
63
|
+
msgstr "Ja"
|
|
64
|
+
|
|
65
|
+
msgctxt "The label for rejecting an action."
|
|
66
|
+
msgid "No"
|
|
67
|
+
msgstr "Nej"
|
|
68
|
+
|
|
69
|
+
msgctxt "The label for confirming a dangerous action."
|
|
70
|
+
msgid "Are you sure?"
|
|
71
|
+
msgstr "Er du sikker?"
|
|
72
|
+
|
|
73
|
+
msgctxt "The tooltip for the comment toolbar button."
|
|
74
|
+
msgid "Comment"
|
|
75
|
+
msgstr "Kommentar"
|
|
76
|
+
|
|
77
|
+
msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
|
|
78
|
+
msgid "PENDING_ACTION_COMMENT_THREAD"
|
|
79
|
+
msgstr "Ikke gemte ændringer i kommentartråd."
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
|
|
2
|
+
#
|
|
3
|
+
# !!! IMPORTANT !!!
|
|
4
|
+
#
|
|
5
|
+
# Before you edit this file, please keep in mind that contributing to the project
|
|
6
|
+
# translations is possible ONLY via the Transifex online service.
|
|
7
|
+
#
|
|
8
|
+
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
|
9
|
+
#
|
|
10
|
+
# To learn more, check out the official contributor's guide:
|
|
11
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
12
|
+
#
|
|
13
|
+
msgid ""
|
|
14
|
+
msgstr ""
|
|
15
|
+
"Language-Team: Indonesian (https://www.transifex.com/ckeditor/teams/11143/id/)\n"
|
|
16
|
+
"Language: id\n"
|
|
17
|
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
|
|
19
|
+
msgctxt "The label for the comment editor."
|
|
20
|
+
msgid "Comment editor"
|
|
21
|
+
msgstr "Editor komentar"
|
|
22
|
+
|
|
23
|
+
msgctxt "The label for the number of comments."
|
|
24
|
+
msgid "NUMBER_OF_COMMENTS"
|
|
25
|
+
msgid_plural "%0 Comments"
|
|
26
|
+
msgstr[0] "%0 Komentar"
|
|
27
|
+
|
|
28
|
+
msgctxt "The alert displayed for a comment that is too long."
|
|
29
|
+
msgid "TOO_LONG_COMMENT_ALERT"
|
|
30
|
+
msgstr "Komentar terlalu panjang. Komentar Anda berisi %0 karakter tapi batas maksimalnya adalah %1 karakter."
|
|
31
|
+
|
|
32
|
+
msgctxt "The placeholder for the reply field."
|
|
33
|
+
msgid "Reply..."
|
|
34
|
+
msgstr "Balas..."
|
|
35
|
+
|
|
36
|
+
msgctxt "The placeholder for the new commend field."
|
|
37
|
+
msgid "Write a comment..."
|
|
38
|
+
msgstr "Tulis sebuah komentar..."
|
|
39
|
+
|
|
40
|
+
msgctxt "The label for the button that enables editing a comment."
|
|
41
|
+
msgid "Edit"
|
|
42
|
+
msgstr "Ubah"
|
|
43
|
+
|
|
44
|
+
msgctxt "The label for the button that deletes a comment."
|
|
45
|
+
msgid "Remove"
|
|
46
|
+
msgstr "Hapus"
|
|
47
|
+
|
|
48
|
+
msgctxt "The label for for the button that submits a comment."
|
|
49
|
+
msgid "Submit"
|
|
50
|
+
msgstr "Kirim"
|
|
51
|
+
|
|
52
|
+
msgctxt "The confirmation message shown after pressing the delete comment button."
|
|
53
|
+
msgid "Delete comment?"
|
|
54
|
+
msgstr "Hapus komentar?"
|
|
55
|
+
|
|
56
|
+
msgctxt "The confirmation message shown after pressing the delete comment thread button."
|
|
57
|
+
msgid "Delete comment thread?"
|
|
58
|
+
msgstr "Hapus utas komentar?"
|
|
59
|
+
|
|
60
|
+
msgctxt "The label for confirming an action."
|
|
61
|
+
msgid "Yes"
|
|
62
|
+
msgstr "Ya"
|
|
63
|
+
|
|
64
|
+
msgctxt "The label for rejecting an action."
|
|
65
|
+
msgid "No"
|
|
66
|
+
msgstr "Tidak"
|
|
67
|
+
|
|
68
|
+
msgctxt "The label for confirming a dangerous action."
|
|
69
|
+
msgid "Are you sure?"
|
|
70
|
+
msgstr "Apakah Anda yakin?"
|
|
71
|
+
|
|
72
|
+
msgctxt "The tooltip for the comment toolbar button."
|
|
73
|
+
msgid "Comment"
|
|
74
|
+
msgstr "Komentar"
|
|
75
|
+
|
|
76
|
+
msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
|
|
77
|
+
msgid "PENDING_ACTION_COMMENT_THREAD"
|
|
78
|
+
msgstr "Perubahan tidak tersimpar di utas komentar"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-comments",
|
|
3
|
-
"version": "31.
|
|
3
|
+
"version": "31.1.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/)",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"discussions"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@ckeditor/ckeditor5-autoformat": "^31.
|
|
34
|
-
"@ckeditor/ckeditor5-basic-styles": "^31.
|
|
35
|
-
"@ckeditor/ckeditor5-collaboration-core": "^31.
|
|
36
|
-
"@ckeditor/ckeditor5-essentials": "^31.
|
|
37
|
-
"@ckeditor/ckeditor5-list": "^31.
|
|
38
|
-
"@ckeditor/ckeditor5-utils": "^31.
|
|
39
|
-
"ckeditor5": "^31.
|
|
33
|
+
"@ckeditor/ckeditor5-autoformat": "^31.1.0",
|
|
34
|
+
"@ckeditor/ckeditor5-basic-styles": "^31.1.0",
|
|
35
|
+
"@ckeditor/ckeditor5-collaboration-core": "^31.1.0",
|
|
36
|
+
"@ckeditor/ckeditor5-essentials": "^31.1.0",
|
|
37
|
+
"@ckeditor/ckeditor5-list": "^31.1.0",
|
|
38
|
+
"@ckeditor/ckeditor5-utils": "^31.1.0",
|
|
39
|
+
"ckeditor5": "^31.1.0",
|
|
40
40
|
"date-fns": "^2.17.0",
|
|
41
41
|
"lodash-es": "^4.17.11"
|
|
42
42
|
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ee9=['_target','view','targetRect','_assertCorrectTarget','_id','focusTracker','focusableElements','function','_type','annotation-invalid-target','add','updateTargetRect','destroy','innerView','type','render','isActive','target','mainView','element','clear'];(function(_0x1ee65a,_0x4ee9b4){const _0x26235b=function(_0xbaec1f){while(--_0xbaec1f){_0x1ee65a['push'](_0x1ee65a['shift']());}};_0x26235b(++_0x4ee9b4);}(_0x4ee9,0xe5));const _0x2623=function(_0x1ee65a,_0x4ee9b4){_0x1ee65a=_0x1ee65a-0x0;let _0x26235b=_0x4ee9[_0x1ee65a];return _0x26235b;};import{CKEditorError as _0x1eeeef,Rect as _0x3f0701,Collection as _0x2abb42}from'ckeditor5/src/utils';import{isElement as _0x181884}from'lodash-es';export default class d{constructor({view:_0x43ebb4,target:_0x566213,type:_0x24f70c}){this[_0x2623('0x3')]=_0x43ebb4,this[_0x2623('0x3')][_0x2623('0x0')]||this['view'][_0x2623('0x11')](),this[_0x2623('0xa')]=_0x24f70c,this[_0x2623('0x2')]=_0x566213,this[_0x2623('0x5')](),this[_0x2623('0x8')]=new _0x2abb42([this[_0x2623('0x3')][_0x2623('0x0')]],{'idProperty':_0x2623('0x6')}),this[_0x2623('0x8')]['on'](_0x2623('0xc'),(_0x4cafc2,_0x5108)=>{this[_0x2623('0x3')][_0x2623('0x7')]['add'](_0x5108);}),this['focusableElements']['on']('remove',(_0x2f23df,_0x2c39e2)=>{this[_0x2623('0x3')][_0x2623('0x7')]['remove'](_0x2c39e2);});}get[_0x2623('0x10')](){return _0x2623('0x9')==typeof this[_0x2623('0xa')]?this[_0x2623('0xa')]():this['_type'];}get[_0x2623('0xf')](){return this['view'][_0x2623('0x14')];}get[_0x2623('0x13')](){return _0x2623('0x9')==typeof this[_0x2623('0x2')]?this['_target']():this[_0x2623('0x2')];}get['targetRect'](){const _0x436f58=this[_0x2623('0x13')];return this[_0x2623('0x5')](),null===_0x436f58?null:new _0x3f0701(_0x436f58);}get[_0x2623('0x12')](){return this['view'][_0x2623('0x12')];}set[_0x2623('0x12')](_0x189761){this[_0x2623('0x3')][_0x2623('0x12')]=_0x189761,this[_0x2623('0x3')][_0x2623('0x14')][_0x2623('0x12')]=_0x189761;}[_0x2623('0xd')](){this[_0x2623('0x3')][_0x2623('0x4')]=this[_0x2623('0x4')];}[_0x2623('0xe')](){this[_0x2623('0x8')]['stopListening'](),this[_0x2623('0x8')][_0x2623('0x1')]();}[_0x2623('0x5')](){const _0x463f0c=this[_0x2623('0x13')];if(!(null===_0x463f0c||_0x463f0c instanceof _0x3f0701||_0x181884(_0x463f0c)))throw new _0x1eeeef(_0x2623('0xb'),null,{'target':_0x463f0c});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4909=['focusableElements','change:isFocused','getByView','fire','_focusTracker','stopListening','isFocused','_innerViewToAnnotation','annotationcollection-not-existing-item','delete','listenTo','targetRect','from','set','destroy','_getOrderInContent','clear','target','add','has','innerView','remove','_sort','length','sort','focus','top','getIndex','getByInnerView','view','annotationcollection-duplicated-item','left','max','focusTracker','_viewToAnnotation'];(function(_0x4cc24d,_0x490953){const _0x55fcd7=function(_0x21812f){while(--_0x21812f){_0x4cc24d['push'](_0x4cc24d['shift']());}};_0x55fcd7(++_0x490953);}(_0x4909,0x1a6));const _0x55fc=function(_0x4cc24d,_0x490953){_0x4cc24d=_0x4cc24d-0x0;let _0x55fcd7=_0x4909[_0x4cc24d];return _0x55fcd7;};import{CKEditorError as _0x2f2941,Collection as _0x2c651d,Rect as _0x441f33,FocusTracker as _0x39f636}from'ckeditor5/src/utils';export default class p extends _0x2c651d{constructor(_0x4b1395=[]){super(),this['_innerViewToAnnotation']=new Map(),this[_0x55fc('0x20')]=new Map(),this[_0x55fc('0x2')]=new _0x39f636(),this[_0x55fc('0x2')]['on']('change:isFocused',(_0x9cd8fe,_0x41b3ec,_0x4d8205)=>{_0x4d8205||this[_0x55fc('0x1')]('blur');});for(const _0x2b1472 of _0x4b1395)this[_0x55fc('0x10')](_0x2b1472);}get['isFocused'](){return this[_0x55fc('0x2')][_0x55fc('0x4')];}['add'](_0xa454ae){if(this[_0x55fc('0x11')](_0xa454ae))throw new _0x2f2941(_0x55fc('0x1c'),null);this[_0x55fc('0x5')][_0x55fc('0xb')](_0xa454ae[_0x55fc('0x12')],_0xa454ae),this[_0x55fc('0x20')][_0x55fc('0xb')](_0xa454ae[_0x55fc('0x1b')],_0xa454ae);for(const _0x8d241 of _0xa454ae[_0x55fc('0x21')])this[_0x55fc('0x2')][_0x55fc('0x10')](_0x8d241);this[_0x55fc('0x8')](_0xa454ae[_0x55fc('0x21')],_0x55fc('0x10'),(_0x193ddc,_0x23e1f3)=>{this[_0x55fc('0x2')][_0x55fc('0x10')](_0x23e1f3);}),this[_0x55fc('0x8')](_0xa454ae[_0x55fc('0x21')],_0x55fc('0x13'),(_0x5ee9d2,_0x5f07fc)=>{this[_0x55fc('0x2')][_0x55fc('0x13')](_0x5f07fc);}),this['listenTo'](_0xa454ae[_0x55fc('0x1b')][_0x55fc('0x1f')],_0x55fc('0x22'),(_0x129300,_0x38e266,_0x150cf)=>{_0x150cf&&this[_0x55fc('0x1')](_0x55fc('0x17'),_0xa454ae);});const _0x462a8f=this['_getOrderInContent'](_0xa454ae);super[_0x55fc('0x10')](_0xa454ae,_0x462a8f),_0xa454ae['updateTargetRect']();}[_0x55fc('0x13')](_0x4df150){if(!this[_0x55fc('0x11')](_0x4df150))throw new _0x2f2941(_0x55fc('0x6'),null);this['stopListening'](_0x4df150[_0x55fc('0x1b')][_0x55fc('0x1f')]),this[_0x55fc('0x3')](_0x4df150[_0x55fc('0x21')]);for(const _0x5d01bf of _0x4df150[_0x55fc('0x21')])this[_0x55fc('0x2')]['remove'](_0x5d01bf);this[_0x55fc('0x20')]['delete'](_0x4df150['view']),this['_innerViewToAnnotation'][_0x55fc('0x7')](_0x4df150[_0x55fc('0x12')]),super['remove'](_0x4df150);}[_0x55fc('0x1a')](_0x5d9110){return this[_0x55fc('0x5')]['get'](_0x5d9110);}[_0x55fc('0x0')](_0x27926f){return this['_viewToAnnotation']['get'](_0x27926f);}[_0x55fc('0xc')](){super[_0x55fc('0xe')](),this[_0x55fc('0x3')](),this['_innerViewToAnnotation']=null,this[_0x55fc('0x20')]=null,this[_0x55fc('0x2')]['destroy']();}['refreshPositioning'](){for(const _0x2a766c of this)_0x2a766c['updateTargetRect']();this['_sort']();}[_0x55fc('0x14')](){const _0x4daaab=Array[_0x55fc('0xa')](this)[_0x55fc('0x16')]((_0x2686d2,_0x3f170f)=>w(_0x2686d2['targetRect'],_0x3f170f[_0x55fc('0x9')]));for(let _0x4b3955=_0x4daaab[_0x55fc('0x15')]-0x1;_0x4b3955>0x0;_0x4b3955--){const _0x3d9b7c=_0x4daaab[_0x4b3955];_0x4b3955!==this[_0x55fc('0x19')](_0x3d9b7c)&&(this[_0x55fc('0x13')](_0x3d9b7c),this['add'](_0x3d9b7c,_0x4b3955));}}[_0x55fc('0xd')](_0x16a7c8){let _0x14dbfa=0x0;const _0x471f42=_0x16a7c8[_0x55fc('0x9')];for(const _0x293834 of this){const _0x1bcba1=_0x293834[_0x55fc('0xf')];if(_0x1bcba1){if(w(_0x471f42,new _0x441f33(_0x1bcba1))<0x0)return _0x14dbfa;_0x14dbfa++;}}return Math[_0x55fc('0x1e')](0x0,_0x14dbfa);}}export function bindAnnotationCollections({source:_0x4c1b0e,target:_0x401a15,filter:_0x1e47bf}){for(const _0x90325a of _0x4c1b0e)_0x1e47bf(_0x90325a)&&_0x401a15['add'](_0x90325a);_0x401a15['listenTo'](_0x4c1b0e,_0x55fc('0x10'),(_0x5ae7e7,_0x206470)=>{_0x1e47bf(_0x206470)&&_0x401a15[_0x55fc('0x10')](_0x206470);}),_0x401a15[_0x55fc('0x8')](_0x4c1b0e,_0x55fc('0x13'),(_0x515930,_0x45b330)=>{_0x1e47bf(_0x45b330)&&_0x401a15[_0x55fc('0x13')](_0x45b330);});}function w(_0x3ab697,_0x133974){const _0x49da06=_0x3ab697[_0x55fc('0x18')]-_0x133974['top'];return 0x0==_0x49da06?_0x3ab697[_0x55fc('0x1d')]-_0x133974[_0x55fc('0x1d')]:_0x49da06;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x40f5=['set','getByInnerView','_activateAnnotation','Annotations','add','delete','remove','deactivateAll','_removeActiveAnnotation','destroy','fire','activeAnnotations','collection'];(function(_0x381b52,_0x40f507){const _0x148339=function(_0x4c5371){while(--_0x4c5371){_0x381b52['push'](_0x381b52['shift']());}};_0x148339(++_0x40f507);}(_0x40f5,0x14f));const _0x1483=function(_0x381b52,_0x40f507){_0x381b52=_0x381b52-0x0;let _0x148339=_0x40f5[_0x381b52];return _0x148339;};import{ContextPlugin as _0x396db5}from'ckeditor5/src/core';import _0x22cc18 from'./annotationcollection';export default class v extends _0x396db5{static get['pluginName'](){return _0x1483('0x6');}constructor(_0x4b9402){super(_0x4b9402),this[_0x1483('0x2')]=new _0x22cc18(),this[_0x1483('0x3')]('activeAnnotations',new Set());}['add'](_0x5c279c){this[_0x1483('0x2')][_0x1483('0x7')](_0x5c279c);}[_0x1483('0x9')](_0x1c5935){this[_0x1483('0x2')][_0x1483('0x9')](_0x1c5935),_0x1c5935['destroy']();}[_0x1483('0x4')](_0x3df8ae){return this[_0x1483('0x2')]['getByInnerView'](_0x3df8ae);}[_0x1483('0xa')](){this[_0x1483('0x0')]('_deactivateAllAnnotations');}['destroy'](){for(const _0x5bc6f8 of this[_0x1483('0x2')])_0x5bc6f8['destroy']();super[_0x1483('0xc')]();}['activate'](_0x3c1f81){this[_0x1483('0x0')](_0x1483('0x5'),_0x3c1f81);}['_addActiveAnnotation'](_0x206829){const _0x154520=new Set(this['activeAnnotations']);_0x154520[_0x1483('0x7')](_0x206829),this[_0x1483('0x1')]=_0x154520;}[_0x1483('0xb')](_0x5c5d73){const _0x51a807=new Set(this[_0x1483('0x1')]);_0x51a807[_0x1483('0x8')](_0x5c5d73),this['activeAnnotations']=_0x51a807;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ac2=['add','hasActive','_deactivateAllAnnotations','push','annotationsuis-annotation-mismatch','delete','pluginName','deactivateAll','find','_assertAnnotationDoesNotBelongToMultipleUIs','listenTo','set','from','_uisData','length','destroy','setActiveAnnotation','activeUIs','init','get','_activateAnnotation','filter','size','context','change:activeAnnotation','activate','refilterAnnotations','annotationsuis-activate-missing-ui','collection','isActive','deactivate','has','_addActiveAnnotation','function','activeAnnotations','register','_removeActiveAnnotation','requires','annotationsuis-register-already-registered','_uis','attach','remove','detach','stopListening','plugins'];(function(_0x465279,_0x2ac2c4){const _0x2a597a=function(_0x6f9c0b){while(--_0x6f9c0b){_0x465279['push'](_0x465279['shift']());}};_0x2a597a(++_0x2ac2c4);}(_0x2ac2,0x18b));const _0x2a59=function(_0x465279,_0x2ac2c4){_0x465279=_0x465279-0x0;let _0x2a597a=_0x2ac2[_0x465279];return _0x2a597a;};import{ContextPlugin as _0x3488f1}from'ckeditor5/src/core';import{CKEditorError as _0x39dfbc}from'ckeditor5/src/utils';import _0x1e8aec,{bindAnnotationCollections as _0x151421}from'./annotationcollection';import _0x1e0a20 from'./annotations';export default class M extends _0x3488f1{static get[_0x2a59('0x2')](){return[_0x1e0a20];}static get[_0x2a59('0x10')](){return'AnnotationsUIs';}constructor(_0x2690c8){super(_0x2690c8),this[_0x2a59('0x1b')]=new Set(),this[_0x2a59('0x4')]=new Map(),this['_uisData']=new Map();}[_0x2a59('0x1c')](){const _0x2c5e47=this[_0x2a59('0x21')][_0x2a59('0x9')][_0x2a59('0x1d')](_0x1e0a20);this['listenTo'](_0x2c5e47,_0x2a59('0x1e'),(_0x1a69e3,_0x358b54)=>{for(const _0x27a466 of this[_0x2a59('0x1b')]){const _0x599c9e=this['_uis']['get'](_0x27a466);(0x0,this[_0x2a59('0x17')][_0x2a59('0x1d')](_0x27a466)[_0x2a59('0x1f')])(_0x358b54)&&_0x599c9e[_0x2a59('0x1a')](_0x358b54);}}),this['listenTo'](_0x2c5e47,_0x2a59('0xc'),()=>{for(const _0x35b463 of this[_0x2a59('0x1b')]){this[_0x2a59('0x4')][_0x2a59('0x1d')](_0x35b463)[_0x2a59('0x1a')](null);}}),this[_0x2a59('0x14')](_0x2c5e47[_0x2a59('0x26')],_0x2a59('0xa'),(_0x21758e,_0x161ea6)=>{this[_0x2a59('0x13')](_0x161ea6);});}[_0x2a59('0xb')](){return this[_0x2a59('0x1b')][_0x2a59('0x20')]>0x0;}[_0x2a59('0x27')](_0xd4a812){return this[_0x2a59('0x1b')][_0x2a59('0x29')](_0xd4a812);}['activate'](_0x18dd93,_0x23062c=()=>!0x0){const _0x43b54c=this['context'][_0x2a59('0x9')]['get'](_0x1e0a20);if(!this['_uis'][_0x2a59('0x29')](_0x18dd93))throw new _0x39dfbc(_0x2a59('0x25'),this,{'uiName':_0x18dd93});this[_0x2a59('0x27')](_0x18dd93)&&this[_0x2a59('0x28')](_0x18dd93),this[_0x2a59('0x1b')][_0x2a59('0xa')](_0x18dd93);const _0x3294bd=new _0x1e8aec(),_0x1807e9=_0x43b54c['collection'];_0x151421({'source':_0x1807e9,'target':_0x3294bd,'filter':_0x23062c}),this[_0x2a59('0x17')][_0x2a59('0x15')](_0x18dd93,{'collection':_0x3294bd,'filter':_0x23062c});const _0x2fced1=this[_0x2a59('0x4')][_0x2a59('0x1d')](_0x18dd93);_0x2fced1[_0x2a59('0x5')](_0x3294bd),this[_0x2a59('0x14')](_0x2fced1,_0x2a59('0x22'),(_0xde775a,_0x1a3497,_0x495332,_0x524a9c)=>{_0x524a9c&&_0x43b54c[_0x2a59('0x1')](_0x524a9c),_0x495332&&_0x43b54c[_0x2a59('0x2a')](_0x495332);});}[_0x2a59('0x28')](_0x29fe27){this[_0x2a59('0x1b')][_0x2a59('0xf')](_0x29fe27);const _0x180ec2=this['_uis']['get'](_0x29fe27);_0x180ec2['detach'](),this[_0x2a59('0x8')](_0x180ec2),this[_0x2a59('0x17')][_0x2a59('0x1d')](_0x29fe27)[_0x2a59('0x26')][_0x2a59('0x19')](),this[_0x2a59('0x17')][_0x2a59('0xf')](_0x29fe27);}['switchTo'](_0x2c9b50){const _0x39c121=this['context']['plugins']['get'](_0x1e0a20),_0x577734=Array['from'](_0x39c121[_0x2a59('0x2c')])[0x0]||null;this[_0x2a59('0x11')](),this[_0x2a59('0x23')](_0x2c9b50);const _0x61502d=this[_0x2a59('0x4')][_0x2a59('0x1d')](_0x2c9b50);_0x61502d['setActiveAnnotation'](_0x577734),_0x61502d['_setSelectedAnnotations']&&_0x577734&&_0x61502d['_setSelectedAnnotations']([_0x577734]);}[_0x2a59('0x11')](){for(const _0x258dbb of this[_0x2a59('0x1b')])this['deactivate'](_0x258dbb);}[_0x2a59('0x0')](_0x583793,_0x245d02){if(this['_uis'][_0x2a59('0x29')](_0x583793))throw new _0x39dfbc(_0x2a59('0x3'));if(_0x2a59('0x2b')!=typeof _0x245d02[_0x2a59('0x5')]||_0x2a59('0x2b')!=typeof _0x245d02[_0x2a59('0x7')]||_0x2a59('0x2b')!=typeof _0x245d02[_0x2a59('0x1a')])throw new _0x39dfbc('annotationsuis-register-invalid-interface',null);this['_uis'][_0x2a59('0x15')](_0x583793,_0x245d02);}[_0x2a59('0x24')](){const _0x207f87=this[_0x2a59('0x21')]['plugins'][_0x2a59('0x1d')](_0x1e0a20)[_0x2a59('0x26')],_0xb5406e=new Map(),_0x58e38c=Array[_0x2a59('0x16')](this[_0x2a59('0x1b')]);for(const _0x2731a8 of this[_0x2a59('0x1b')]){const _0x16aa59=this[_0x2a59('0x17')]['get'](_0x2731a8)[_0x2a59('0x26')];for(const _0x3de889 of _0x16aa59)_0xb5406e[_0x2a59('0x15')](_0x3de889,_0x2731a8);}for(const _0x33b809 of _0x207f87){const _0x5ed88d=_0xb5406e[_0x2a59('0x1d')](_0x33b809);this[_0x2a59('0x13')](_0x33b809);const _0xf627f6=_0x58e38c[_0x2a59('0x12')](_0xcf0d6=>this['_uisData']['get'](_0xcf0d6)[_0x2a59('0x1f')](_0x33b809));_0x5ed88d!==_0xf627f6&&(_0x5ed88d&&this[_0x2a59('0x17')][_0x2a59('0x1d')](_0x5ed88d)[_0x2a59('0x26')][_0x2a59('0x6')](_0x33b809),_0xf627f6&&this[_0x2a59('0x17')][_0x2a59('0x1d')](_0xf627f6)[_0x2a59('0x26')][_0x2a59('0xa')](_0x33b809));}}[_0x2a59('0x19')](){this[_0x2a59('0x11')](),super[_0x2a59('0x19')]();}[_0x2a59('0x13')](_0xacfce0){const _0x198f2e=[];for(const _0x1592b9 of this[_0x2a59('0x1b')]){(0x0,this[_0x2a59('0x17')][_0x2a59('0x1d')](_0x1592b9)[_0x2a59('0x1f')])(_0xacfce0)&&_0x198f2e[_0x2a59('0xd')](_0x1592b9);}if(_0x198f2e[_0x2a59('0x18')]>0x1)throw new _0x39dfbc(_0x2a59('0xe'),null,{'matchedUIs':_0x198f2e,'annotationType':_0xacfce0['type']});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4267=['update','refreshSelectedViews','getByInnerView','get','selection','getRanges','document','set','from','model','editorannotations-invalid-source-callback','innerView','pluginName','getOrderedSelectedAnnotations','editor','containsRange','remove','has','requires','fire','uiUpdate','focusTracker','editing','blur','function','isReadOnly','plugins','range','view','annotation','listenTo','_dataCollectors','refresh','_editorAnnotationsData','element','sort','keys','cancel','change:isFocused','EditorAnnotations','collection','map','delete','add'];(function(_0x537b90,_0x426768){const _0x201a66=function(_0x26e1c9){while(--_0x26e1c9){_0x537b90['push'](_0x537b90['shift']());}};_0x201a66(++_0x426768);}(_0x4267,0x1c3));const _0x201a=function(_0x537b90,_0x426768){_0x537b90=_0x537b90-0x0;let _0x201a66=_0x4267[_0x537b90];return _0x201a66;};import{Plugin as _0x29bbb1}from'ckeditor5/src/core';import{CKEditorError as _0x3ec096}from'ckeditor5/src/utils';import{debounce as _0x4716ac}from'lodash-es';import _0x4f0195 from'./annotations';export default class k extends _0x29bbb1{static get[_0x201a('0x7')](){return[_0x4f0195];}static get[_0x201a('0x1')](){return _0x201a('0x1c');}constructor(_0x56c968){super(_0x56c968),this[_0x201a('0x14')]=new Set();}['init'](){const _0x41673a=this[_0x201a('0x3')],_0x1acf86=_0x41673a[_0x201a('0xf')][_0x201a('0x24')](_0x4f0195),_0xb130ae=_0x41673a[_0x201a('0x2a')]['document'][_0x201a('0x25')],_0x111284=_0x4716ac(()=>this[_0x201a('0x22')](),0xa);_0xb130ae['on']('change:range',(_0xbae7c4,_0x108680)=>{_0x108680['directChange']&&(_0x111284[_0x201a('0x1a')](),this[_0x201a('0x22')]());}),this[_0x201a('0x13')](_0x41673a[_0x201a('0xb')][_0x201a('0x11')][_0x201a('0x27')],_0x201a('0x1b'),(_0x42b24e,_0x25f82e,_0x19c5d6)=>{_0x19c5d6&&_0x111284();}),this[_0x201a('0x13')](_0x41673a['ui']['focusTracker'],'change:isFocused',(_0x50b36c,_0x56ade5,_0x39997c)=>{_0x39997c||_0x41673a[_0x201a('0xe')]||this[_0x201a('0x8')](_0x201a('0xc'),{'isAnnotationTracked':_0x3d3dd8=>this[_0x201a('0x16')][_0x201a('0x6')](_0x3d3dd8[_0x201a('0x0')])});}),this[_0x201a('0x13')](this[_0x201a('0x3')]['ui'],_0x201a('0x21'),()=>this[_0x201a('0x8')](_0x201a('0x9')));const _0x512a60=new Set();this['listenTo'](_0x1acf86[_0x201a('0x1d')],_0x201a('0x20'),(_0x4b18f5,_0xd908a3)=>{for(const _0x2a91e9 of this[_0x201a('0x16')][_0x201a('0x19')]())if(_0x2a91e9===_0xd908a3[_0x201a('0x0')]){_0x41673a['ui']['focusTracker'][_0x201a('0x20')](_0xd908a3[_0x201a('0x11')][_0x201a('0x17')]),_0x512a60[_0x201a('0x20')](_0xd908a3[_0x201a('0x11')]);break;}}),this[_0x201a('0x13')](_0x1acf86[_0x201a('0x1d')],_0x201a('0x5'),(_0x547c41,_0x2bbeed)=>{_0x512a60[_0x201a('0x6')](_0x2bbeed[_0x201a('0x11')])&&(_0x41673a['ui'][_0x201a('0xa')][_0x201a('0x5')](_0x2bbeed[_0x201a('0x11')][_0x201a('0x17')]),_0x512a60[_0x201a('0x1f')](_0x2bbeed[_0x201a('0x11')]));});}['hasDomSelection'](){return this['editor'][_0x201a('0xb')][_0x201a('0x11')]['hasDomSelection'];}['addSourceCollector'](_0x469e2c){if(_0x201a('0xd')!=typeof _0x469e2c)throw new _0x3ec096(_0x201a('0x2b'));this[_0x201a('0x14')][_0x201a('0x20')](_0x469e2c);}[_0x201a('0x22')](){this[_0x201a('0x8')](_0x201a('0x15'));}[_0x201a('0x2')]({activeAnnotation:_0x1049a7,annotations:_0x4fa0ab}){const _0xeede43=[],_0x2b2c2e=this[_0x201a('0x3')][_0x201a('0x2a')]['document'][_0x201a('0x25')],_0xeb42a9=Array[_0x201a('0x29')](_0x2b2c2e[_0x201a('0x26')]());for(const [_0x40b019,_0x3936e7]of this[_0x201a('0x16')]){const _0x5299c0=_0xd97ed1(_0x3936e7),_0x5ca381=_0x4fa0ab[_0x201a('0x23')](_0x40b019);_0x5299c0&&_0x5ca381&&_0xeede43['push']({'annotation':_0x5ca381,'range':_0x5299c0});}function _0xd97ed1(_0x51d286){for(const _0x23e8d9 of _0x51d286)for(const _0x23a1ad of _0xeb42a9)if(_0x23e8d9[_0x201a('0x4')](_0x23a1ad,!_0x2b2c2e['isCollapsed']))return _0x23e8d9;return null;}return _0xeede43[_0x201a('0x18')]((_0x49fe50,_0x3de9b4)=>{const _0xe17c61=_0x49fe50['range'],_0x3ab843=_0x3de9b4[_0x201a('0x10')];if(!_0xe17c61['isEqual'](_0x3ab843)){if(_0xe17c61['containsRange'](_0x3ab843,!0x0))return 0x1;if(_0x3ab843[_0x201a('0x4')](_0xe17c61,!0x0))return-0x1;}return _0x49fe50[_0x201a('0x12')]==_0x1049a7?-0x1:_0x3de9b4[_0x201a('0x12')]==_0x1049a7?0x1:0x0;})[_0x201a('0x1e')](_0x311f94=>_0x311f94[_0x201a('0x12')]);}get['_editorAnnotationsData'](){const _0x19ed7d=new Map();for(const _0x89eb9a of Array['from'](this[_0x201a('0x14')]))for(const [_0x1c17c1,_0x1d09b8]of _0x89eb9a())_0x19ed7d[_0x201a('0x28')](_0x1c17c1,_0x1d09b8);return _0x19ed7d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6971=['inlineannotations-detach-not-attached','inlineannotations-attach-already-attached','_balloon','update','showStack','focusTracker','destroy','editor','selection','_annotations','change:isFocused','hasView','isAttached','pluginName','_addAnnotationToBalloon','context','change:visibleView','includes','_setSelectedAnnotations','register','editing','inlineannotations-not-allowed-with-context','clear','visibleView','_selectedAnnotations','activeAnnotation','remove','has','requires','delete','editableElement','get','attach','hasActive','refresh','_addedAnnotations','setActiveAnnotation','plugins','switchTo','change:height','_removeAnnotationFromBalloon','updatePosition','getRangeAt','EditorAnnotations','blur','isActive','getByView','getSelection','addObserver','add','listenTo','focus','isFocused','stopListening','afterInit','_manuallyClosed','bind','document','set','view'];(function(_0x341b40,_0x6971ac){const _0x1cedc2=function(_0x5e0ce6){while(--_0x5e0ce6){_0x341b40['push'](_0x341b40['shift']());}};_0x1cedc2(++_0x6971ac);}(_0x6971,0x13f));const _0x1ced=function(_0x341b40,_0x6971ac){_0x341b40=_0x341b40-0x0;let _0x1cedc2=_0x6971[_0x341b40];return _0x1cedc2;};import{Plugin as _0x769ac7}from'ckeditor5/src/core';import _0x4c6d28 from'./annotationsuis';import _0x5eb499 from'./editorannotations';import{ContextualBalloon as _0x2b5d4a}from'ckeditor5/src/ui';import{MouseObserver as _0x593b5f}from'ckeditor5/src/engine';import{CKEditorError as _0x52b33b}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x769ac7{static get[_0x1ced('0x9')](){return[_0x5eb499,_0x2b5d4a,_0x4c6d28];}static get[_0x1ced('0x36')](){return'InlineAnnotations';}constructor(_0x5e6d6c){super(_0x5e6d6c),_0x5e6d6c[_0x1ced('0x1')][_0x1ced('0x28')][_0x1ced('0x1d')](_0x593b5f),this[_0x1ced('0x35')]=!0x1,this[_0x1ced('0x27')]('activeAnnotation',null),this[_0x1ced('0x32')]=null,this[_0x1ced('0x24')]=new Set(),this['_balloon']=_0x5e6d6c[_0x1ced('0x12')]['get'](_0x2b5d4a),this[_0x1ced('0x10')]=new Set(),this[_0x1ced('0x5')]=[];}['init'](){const _0x52a234=this[_0x1ced('0x30')][_0x1ced('0x12')][_0x1ced('0xc')](_0x4c6d28);_0x52a234[_0x1ced('0x38')]===this[_0x1ced('0x30')]&&(_0x52a234[_0x1ced('0x0')]('inline',this),this[_0x1ced('0x30')]['keystrokes']['set']('Esc',(_0x1575cc,_0x49503)=>{const _0x166ac9=this['_balloon'];if(this[_0x1ced('0x35')]&&_0x166ac9['visibleView']){const _0x792ea3=this[_0x1ced('0x32')][_0x1ced('0x1b')](_0x166ac9[_0x1ced('0x4')]);this[_0x1ced('0x24')][_0x1ced('0x1e')](_0x792ea3),this[_0x1ced('0x15')](_0x792ea3),_0x49503();}}));}[_0x1ced('0x23')](){const _0x586f99=this[_0x1ced('0x30')][_0x1ced('0x12')][_0x1ced('0xc')](_0x4c6d28);_0x586f99[_0x1ced('0x38')]===this[_0x1ced('0x30')]&&(_0x586f99[_0x1ced('0xe')]()||_0x586f99[_0x1ced('0x13')]('inline'));}[_0x1ced('0x11')](_0x42dae2){_0x42dae2!==this[_0x1ced('0x6')]&&(this[_0x1ced('0x6')]&&(this['activeAnnotation'][_0x1ced('0x1a')]=!0x1),_0x42dae2&&this['editor']['ui'][_0x1ced('0x2e')][_0x1ced('0x21')]&&(this[_0x1ced('0x37')](_0x42dae2,!0x0),_0x42dae2[_0x1ced('0x1a')]=!0x0),_0x42dae2||this[_0x1ced('0x3b')]([]),this[_0x1ced('0x6')]=_0x42dae2);}[_0x1ced('0xd')](_0x359d0c){this[_0x1ced('0x32')]=_0x359d0c;const _0x483fa6=this[_0x1ced('0x30')]['plugins'][_0x1ced('0xc')](_0x4c6d28),_0x1b8c6f=this[_0x1ced('0x2b')];if(this[_0x1ced('0x35')])throw new _0x52b33b(_0x1ced('0x2a'),this);if(_0x483fa6[_0x1ced('0x38')]!==this[_0x1ced('0x30')])throw new _0x52b33b(_0x1ced('0x2'),this);const _0x50ea9e=this['editor'][_0x1ced('0x12')][_0x1ced('0xc')](_0x1ced('0x18'));this[_0x1ced('0x1f')](_0x50ea9e,_0x1ced('0xf'),function(){const _0x17b72e=_0x50ea9e['getOrderedSelectedAnnotations']({'activeAnnotation':this[_0x1ced('0x6')],'annotations':this[_0x1ced('0x32')]});this[_0x1ced('0x3b')](_0x17b72e),this[_0x1ced('0x11')](_0x17b72e[0x0]||null);}[_0x1ced('0x25')](this)),this[_0x1ced('0x1f')](_0x50ea9e,_0x1ced('0x19'),(_0x3ca7b6,{isAnnotationTracked:_0x327eee})=>{this['activeAnnotation']&&_0x327eee(this[_0x1ced('0x6')])&&(this[_0x1ced('0x3b')]([]),this['setActiveAnnotation'](null));}),this[_0x1ced('0x1f')](this['editor']['ui'][_0x1ced('0x2e')],_0x1ced('0x33'),(_0x4e4b89,_0x2d0bce,_0x1b879d)=>{_0x1b879d||this[_0x1ced('0x11')](null);}),this[_0x1ced('0x1f')](_0x359d0c,_0x1ced('0x7'),(_0x7aeae0,_0x588c96)=>{this[_0x1ced('0x15')](_0x588c96),_0x588c96===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this[_0x1ced('0x1f')](_0x1b8c6f,_0x1ced('0x39'),(_0xc63c8e,_0x50cbb9,_0x1af3ef,_0x2f4d0d)=>{if(_0x2f4d0d&&this[_0x1ced('0x22')](_0x2f4d0d),!_0x1af3ef||!_0x359d0c['getByView'](_0x1af3ef))return;const _0x1bada5=_0x359d0c[_0x1ced('0x1b')](_0x1af3ef);this[_0x1ced('0x1f')](_0x1af3ef,_0x1ced('0x14'),()=>{_0x1b8c6f[_0x1ced('0x16')]();}),this[_0x1ced('0x1f')](_0x1af3ef,'Esc',()=>{this['_manuallyClosed'][_0x1ced('0x1e')](_0x1bada5),this['_removeAnnotationFromBalloon'](_0x1bada5),this[_0x1ced('0x30')]['editing']['view'][_0x1ced('0x20')]();}),this[_0x1ced('0x6')]!==_0x1bada5&&this['setActiveAnnotation'](_0x1bada5);}),this['listenTo'](this[_0x1ced('0x30')]['ui'],_0x1ced('0x2c'),()=>{_0x1b8c6f[_0x1ced('0x4')]&&(_0x359d0c[_0x1ced('0x1b')](_0x1b8c6f[_0x1ced('0x4')])&&_0x1b8c6f[_0x1ced('0x16')]());}),this[_0x1ced('0x1f')](this[_0x1ced('0x30')][_0x1ced('0x1')][_0x1ced('0x28')][_0x1ced('0x26')],'mousedown',()=>{this[_0x1ced('0x24')][_0x1ced('0x3')]();}),this[_0x1ced('0x30')]['editing'][_0x1ced('0x28')]['document'][_0x1ced('0x31')][_0x1ced('0xb')]&&this['editor'][_0x1ced('0x1')]['view'][_0x1ced('0x20')](),this[_0x1ced('0x35')]=!0x0;}['detach'](){if(!this[_0x1ced('0x35')])throw new _0x52b33b(_0x1ced('0x29'),this);this[_0x1ced('0x11')](null);for(const _0x29e2c0 of this['_addedAnnotations'])this[_0x1ced('0x15')](_0x29e2c0);this['stopListening'](),this[_0x1ced('0x35')]=!0x1;}[_0x1ced('0x2f')](){this[_0x1ced('0x35')]&&this['detach']();}[_0x1ced('0x3b')](_0x4816cb){const _0x2cfe5c=this[_0x1ced('0x5')];for(const _0x1f3d52 of _0x2cfe5c)_0x4816cb[_0x1ced('0x3a')](_0x1f3d52)||this[_0x1ced('0x24')][_0x1ced('0xa')](_0x1f3d52);for(const _0xe3620 of this[_0x1ced('0x32')])_0x4816cb['includes'](_0xe3620)||this[_0x1ced('0x15')](_0xe3620);if(this['editor']['ui']['focusTracker'][_0x1ced('0x21')])for(const _0x1db07e of _0x4816cb)this['_addAnnotationToBalloon'](_0x1db07e);this[_0x1ced('0x5')]=_0x4816cb;}['_addAnnotationToBalloon'](_0x37e021,_0x2c0d09){this[_0x1ced('0x24')][_0x1ced('0x8')](_0x37e021)||(this[_0x1ced('0x10')]['has'](_0x37e021)||this[_0x1ced('0x2b')][_0x1ced('0x34')](_0x37e021[_0x1ced('0x28')])||(this[_0x1ced('0x10')]['add'](_0x37e021),this['_balloon']['add']({'stackId':_0x37e021[_0x1ced('0x28')]['id'],'view':_0x37e021[_0x1ced('0x28')],'position':{'target':()=>_0x37e021['target']||_0x37e021['targetRect']||document[_0x1ced('0x1c')]()[_0x1ced('0x17')](0x0)}})),_0x2c0d09&&this[_0x1ced('0x2b')][_0x1ced('0x2d')](_0x37e021[_0x1ced('0x28')]['id']));}['_removeAnnotationFromBalloon'](_0xab5c3e){this['_addedAnnotations'][_0x1ced('0x8')](_0xab5c3e)&&this[_0x1ced('0x2b')][_0x1ced('0x34')](_0xab5c3e[_0x1ced('0x28')])&&(this[_0x1ced('0x10')][_0x1ced('0xa')](_0xab5c3e),this['_balloon'][_0x1ced('0x7')](_0xab5c3e['view']));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5b15=['_manuallyClosedAnnotationViews','get','change:container','esc','set','_updateBalloonPosition','stopListening','_editorAnnotations','locale','uiUpdate','rearrange','southArrowNorthWest','NarrowSidebar','_integrateWithEditorAnnotations','attachToDom','off','register','_showBalloon','delete','northArrowSouthEast','_destroyEditorAnnotationsIntegration','_annotations','has','keyCode','EditorAnnotations','refreshPositioning','southArrowNorthEast','getSidebarItemView','_attachToContainer','_refreshPositioning','_domEmitter','isDirty','from','target','editors','annotationType','clear','bind','bodyCollection','detach','balloonPanelView','unpin','create','southArrowNorth','remove','contains','preventDefault','stop','first','detachFromDom','focus','plugins','add','narrowSidebar','number','init','addAnnotation','_attachListeners','Esc','isAttached','execute','keydown','isVisible','set:container','Sidebar','defaultPositions','hasDomSelection','mousedown','listenTo','values','_throttledRefreshPositioning','getByView','content','getOrderedSelectedAnnotations','northArrowSouthWest','activeAnnotation','destroy','requires','blur','removeEventListener','cancel','ck-sidebar--narrow','view','_annotationToNarrowView','_setSelectedAnnotations','ready','narrowsidebar-detach-not-attached','pin','setActiveAnnotation','resize','_detachListeners','preventClosingBalloon','_hideBalloon','high','refresh','element','context','_selectedAnnotations','northArrowSouth'];(function(_0x42dd08,_0x5b1544){const _0x2f49ed=function(_0x360a24){while(--_0x360a24){_0x42dd08['push'](_0x42dd08['shift']());}};_0x2f49ed(++_0x5b1544);}(_0x5b15,0x17d));const _0x2f49=function(_0x42dd08,_0x5b1544){_0x42dd08=_0x42dd08-0x0;let _0x2f49ed=_0x5b15[_0x42dd08];return _0x2f49ed;};import{ContextPlugin as _0x203678}from'ckeditor5/src/core';import _0x3f762a from'./annotationsuis';import _0x4fa331 from'./sidebar';import _0x478ceb from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x2a16c0,BodyCollection as _0xe17308}from'ckeditor5/src/ui';import{CKEditorError as _0x2f6cd1,DomEmitterMixin as _0x269581,keyCodes as _0x261e15,Collection as _0x39d40d}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x8ff5d5}from'lodash-es';export default class s extends _0x203678{static get[_0x2f49('0x5c')](){return[_0x4fa331,_0x3f762a];}static get['pluginName'](){return _0x2f49('0x1b');}constructor(_0x158c60){super(_0x158c60),this[_0x2f49('0x4a')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0x2f49('0x2d')]=Object[_0x2f49('0x39')](_0x269581),this['_annotationToNarrowView']=new Map(),this[_0x2f49('0x13')](_0x2f49('0x5a'),null),this['_annotations']=null,this[_0x2f49('0xd')]=[],this[_0x2f49('0x16')]=new _0x39d40d(),this[_0x2f49('0x55')]=_0x8ff5d5(()=>{this['_refreshPositioning']();},0x190,{'leading':!0x1});}[_0x2f49('0x46')](){this[_0x2f49('0xc')][_0x2f49('0x42')][_0x2f49('0x10')](_0x3f762a)[_0x2f49('0x1f')](_0x2f49('0x44'),this),this[_0x2f49('0x35')]=new _0xe17308(this[_0x2f49('0xc')][_0x2f49('0x17')]),this[_0x2f49('0x37')]=new _0x2a16c0(this[_0x2f49('0xc')][_0x2f49('0x17')]),this[_0x2f49('0x35')][_0x2f49('0x1d')](),this[_0x2f49('0x35')][_0x2f49('0x43')](this[_0x2f49('0x37')]);}['attach'](_0x4dc3f5){this[_0x2f49('0x24')]=_0x4dc3f5;const _0x3cff2b=this[_0x2f49('0xc')][_0x2f49('0x42')][_0x2f49('0x10')](_0x4fa331),_0xe360ea=this['balloonPanelView'];if(_0x3cff2b['_annotations']=_0x4dc3f5,this[_0x2f49('0x4a')])throw new _0x2f6cd1('narrowsidebar-attach-already-attached',this);this[_0x2f49('0x4a')]=!0x0,this[_0x2f49('0x53')](_0x3cff2b,_0x2f49('0x4e'),()=>{this[_0x2f49('0x36')](),this[_0x2f49('0x53')](_0x3cff2b,_0x2f49('0x11'),_0x2341ff=>{_0x2341ff[_0x2f49('0x1e')](),this['attach'](_0x4dc3f5);});}),_0x3cff2b[_0x2f49('0x2b')]({'viewClass':_0x2f49('0x60'),'spaceBetweenItems':0x5});const _0x3dd13b=_0x3d5946=>{const _0x532152=new _0x478ceb(this['context']['locale']);_0x3cff2b[_0x2f49('0x47')](_0x3d5946,_0x532152),this['_annotationToNarrowView'][_0x2f49('0x13')](_0x3d5946,_0x532152),_0x532152[_0x2f49('0x34')](_0x2f49('0x2e'),_0x2f49('0x32'),_0x2f49('0x45'))['to'](_0x3d5946[_0x2f49('0x61')],'isDirty','type','length'),_0x532152['on'](_0x2f49('0x4b'),()=>{this[_0x2f49('0xf')][_0x2f49('0x33')](),_0xe360ea[_0x2f49('0x57')][_0x2f49('0x3f')]!==_0x3d5946[_0x2f49('0x61')]?(this[_0x2f49('0x20')](_0x3d5946),_0x3d5946[_0x2f49('0x61')][_0x2f49('0xb')][_0x2f49('0x41')](),this['setActiveAnnotation'](_0x3d5946)):this['setActiveAnnotation'](null);});};for(const _0x11c9c8 of _0x4dc3f5)_0x3dd13b(_0x11c9c8);this[_0x2f49('0x53')](_0x4dc3f5,_0x2f49('0x43'),(_0x3004a4,_0x22dc26)=>{_0x3dd13b(_0x22dc26);}),this[_0x2f49('0x53')](_0x4dc3f5,_0x2f49('0x3b'),(_0x4c8bbd,_0x289cf1,_0x29629e)=>{this[_0x2f49('0x62')]['get'](_0x289cf1)['destroy'](),this[_0x2f49('0x62')][_0x2f49('0x21')](_0x289cf1),_0x3cff2b[_0x2f49('0x19')]({'removedAnnotation':_0x289cf1,'previousAnnotation':_0x4dc3f5[_0x2f49('0x10')](_0x29629e-0x1),'nextAnnotation':_0x4dc3f5['get'](_0x29629e+0x1)}),_0x289cf1===this[_0x2f49('0x5a')]&&this[_0x2f49('0x4')](null);},{'priority':'low'}),this[_0x2f49('0x53')](_0x4dc3f5,_0x2f49('0x41'),(_0x489c5e,_0x5988e9)=>{this[_0x2f49('0x4')](_0x5988e9);}),this[_0x2f49('0x53')](_0x4dc3f5,_0x2f49('0x5d'),()=>{this[_0x2f49('0x4')](null);}),this[_0x2f49('0x2d')][_0x2f49('0x53')](document,_0x2f49('0x4c'),(_0x20255e,_0x3419be)=>{_0x3419be[_0x2f49('0x26')]===_0x261e15[_0x2f49('0x12')]&&_0xe360ea[_0x2f49('0x4d')]&&(this[_0x2f49('0xf')][_0x2f49('0x43')](_0xe360ea[_0x2f49('0x57')][_0x2f49('0x3f')]),this['_hideBalloon'](),_0x3419be['stopPropagation'](),_0x3419be[_0x2f49('0x3d')]());}),this['_domEmitter'][_0x2f49('0x53')](document,_0x2f49('0x52'),(_0x2e3783,_0x2115ec)=>{const _0x1a02c9=_0x2115ec[_0x2f49('0x30')];_0xe360ea[_0x2f49('0x4d')]&&_0xe360ea[_0x2f49('0xb')]['contains'](_0x1a02c9)||_0x3cff2b[_0x2f49('0x61')][_0x2f49('0xb')][_0x2f49('0x3c')](_0x1a02c9)||_0x2e3783[_0x2f49('0x7')]||(this[_0x2f49('0xf')][_0x2f49('0x33')](),this[_0x2f49('0x8')](),this[_0x2f49('0x4')](null));});const _0x3bffb2=this[_0x2f49('0xc')]['editors']?this['context'][_0x2f49('0x31')]:new _0x39d40d([this[_0x2f49('0xc')]]);for(const _0x45ed50 of _0x3bffb2)this[_0x2f49('0x1c')](_0x45ed50);this[_0x2f49('0x53')](_0x3bffb2,_0x2f49('0x43'),(_0x49ca04,_0x44d6a9)=>{this['listenTo'](_0x44d6a9,_0x2f49('0x1'),()=>{this[_0x2f49('0x1c')](_0x44d6a9);});}),this[_0x2f49('0x53')](_0x3bffb2,_0x2f49('0x3b'),(_0x3bf1cd,_0x2b1883)=>{_0x2b1883[_0x2f49('0x42')][_0x2f49('0x25')]('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x2b1883[_0x2f49('0x42')]['get'](_0x2f49('0x27')));}),window['addEventListener'](_0x2f49('0x5'),this[_0x2f49('0x55')]),this[_0x2f49('0x2c')]();}[_0x2f49('0x4')](_0x1c03a3){if(_0x1c03a3===this['activeAnnotation'])return;const _0x565e53=this[_0x2f49('0xc')][_0x2f49('0x42')][_0x2f49('0x10')](_0x2f49('0x4f'));if(_0x565e53['refresh']({'blurredAnnotation':this[_0x2f49('0x5a')],'activatedAnnotation':_0x1c03a3,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1c03a3)_0x565e53[_0x2f49('0x2a')](_0x1c03a3)?this[_0x2f49('0x20')](_0x1c03a3):this[_0x2f49('0x8')]();else this[_0x2f49('0x8')]();this[_0x2f49('0x5a')]=_0x1c03a3;}[_0x2f49('0x36')](){if(!this[_0x2f49('0x4a')])throw new _0x2f6cd1(_0x2f49('0x2'),this);this[_0x2f49('0x4')](null);const _0x3088ef=this['context'][_0x2f49('0x42')][_0x2f49('0x10')](_0x2f49('0x4f'));this['_hideBalloon'](),Array[_0x2f49('0x2f')](this[_0x2f49('0x62')][_0x2f49('0x54')](),_0x17e9a0=>_0x17e9a0[_0x2f49('0x5b')]()),this[_0x2f49('0x62')]['clear'](),_0x3088ef['_detachFromContainer'](this[_0x2f49('0x24')]),this[_0x2f49('0x15')](),this[_0x2f49('0x2d')][_0x2f49('0x15')](),this[_0x2f49('0x15')](this[_0x2f49('0xc')]['editors']);for(const _0x41eb89 of Array[_0x2f49('0x2f')](this['_editorAnnotations']))this[_0x2f49('0x23')](_0x41eb89);window[_0x2f49('0x5e')](_0x2f49('0x5'),this[_0x2f49('0x55')]),this[_0x2f49('0x55')][_0x2f49('0x5f')](),this['_selectedAnnotations']=[],this[_0x2f49('0x4a')]=!0x1,this[_0x2f49('0x24')]=null;}[_0x2f49('0x5b')](){this[_0x2f49('0x4a')]&&this[_0x2f49('0x36')](),this[_0x2f49('0x35')][_0x2f49('0x40')]();}['_integrateWithEditorAnnotations'](_0x4901a0){const _0x1b575b=_0x4901a0[_0x2f49('0x42')][_0x2f49('0x10')](_0x2f49('0x27')),_0x586c8a=this[_0x2f49('0xc')][_0x2f49('0x42')][_0x2f49('0x10')](_0x4fa331),_0x24b1bf=this['_annotations'],_0x167493=this[_0x2f49('0x37')],_0x4f43fb=()=>{const _0x38d727=_0x1b575b[_0x2f49('0x58')]({'activeAnnotation':this['activeAnnotation'],'annotations':this[_0x2f49('0x24')]});this[_0x2f49('0x0')](_0x38d727),this['setActiveAnnotation'](_0x38d727[0x0]||null);};this['listenTo'](_0x1b575b,_0x2f49('0xa'),_0x4f43fb),this[_0x2f49('0x53')](_0x1b575b,'blur',(_0x4fd268,{isAnnotationTracked:_0x9e65f8})=>{this['activeAnnotation']&&_0x9e65f8(this[_0x2f49('0x5a')])&&(this[_0x2f49('0x0')]([]),this[_0x2f49('0x4')](null));}),this[_0x2f49('0x53')](_0x1b575b,_0x2f49('0x18'),()=>{this[_0x2f49('0x55')]();}),this['listenTo'](_0x24b1bf,_0x2f49('0x5d'),_0x4fe70a=>{_0x1b575b['hasDomSelection']()&&_0x4fe70a[_0x2f49('0x3e')]();},{'priority':_0x2f49('0x9')}),this[_0x2f49('0x2d')][_0x2f49('0x53')](document,_0x2f49('0x52'),(_0x101d09,_0x1e09c9)=>{const _0x482030=_0x1e09c9[_0x2f49('0x30')];_0x167493['isVisible']&&_0x167493[_0x2f49('0xb')][_0x2f49('0x3c')](_0x482030)||_0x586c8a[_0x2f49('0x61')]['element']['contains'](_0x482030)||this[_0x2f49('0x5a')]&&_0x1b575b[_0x2f49('0x51')]()&&(_0x4f43fb(),_0x101d09[_0x2f49('0x7')]=!0x0);},{'priority':'high'}),this[_0x2f49('0x16')]['add'](_0x1b575b);}[_0x2f49('0x23')](_0x50a10c){_0x50a10c&&(this[_0x2f49('0x15')](_0x50a10c),this[_0x2f49('0x16')][_0x2f49('0x3b')](_0x50a10c));}[_0x2f49('0x0')](_0x488e06){for(const _0x2fa43b of this[_0x2f49('0xd')])_0x488e06['includes'](_0x2fa43b)||this[_0x2f49('0xf')][_0x2f49('0x21')](_0x2fa43b['view']);this['_selectedAnnotations']=_0x488e06;}[_0x2f49('0x2c')](){const _0x1a3e55=this['balloonPanelView'];this['_annotations'][_0x2f49('0x28')](),_0x1a3e55[_0x2f49('0x4d')]&&this[_0x2f49('0x14')]();}[_0x2f49('0x20')](_0x48ddc3){if(this['_manuallyClosedAnnotationViews'][_0x2f49('0x25')](_0x48ddc3['view']))return;const _0x46919c=this[_0x2f49('0x37')]['content']['first'];_0x46919c!==_0x48ddc3[_0x2f49('0x61')]?(_0x46919c&&this['_detachListeners'](_0x46919c),this[_0x2f49('0x48')](_0x48ddc3[_0x2f49('0x61')]),this[_0x2f49('0x37')][_0x2f49('0x57')][_0x2f49('0x33')](),this['balloonPanelView']['content'][_0x2f49('0x43')](_0x48ddc3[_0x2f49('0x61')]),this[_0x2f49('0x14')]()):this[_0x2f49('0x14')]();}['_updateBalloonPosition'](){const _0x361653=this['balloonPanelView'][_0x2f49('0x57')]['first'],_0x5e55b6=this[_0x2f49('0x24')][_0x2f49('0x56')](_0x361653);if(!this[_0x2f49('0x62')][_0x2f49('0x25')](_0x5e55b6))return;const _0x43c9f1=this['_annotationToNarrowView'][_0x2f49('0x10')](_0x5e55b6)['element'],_0x595249=function(){const _0xbcd568=_0x2a16c0[_0x2f49('0x50')];return[_0xbcd568[_0x2f49('0x29')],_0xbcd568[_0x2f49('0x22')],_0xbcd568[_0x2f49('0x3a')],_0xbcd568[_0x2f49('0xe')],_0xbcd568[_0x2f49('0x1a')],_0xbcd568[_0x2f49('0x59')]];}();this['balloonPanelView'][_0x2f49('0x3')]({'target':_0x43c9f1,'positions':_0x595249});}[_0x2f49('0x8')](){const _0x18b90e=this[_0x2f49('0x37')],_0x1ddc99=_0x18b90e[_0x2f49('0x57')][_0x2f49('0x3f')];_0x1ddc99&&(this[_0x2f49('0x6')](_0x1ddc99),_0x18b90e[_0x2f49('0x38')](),_0x18b90e[_0x2f49('0x57')][_0x2f49('0x33')]());}[_0x2f49('0x48')](_0x226e24){this[_0x2f49('0x53')](_0x226e24,'change:height',()=>this[_0x2f49('0x14')]()),this['listenTo'](_0x226e24,_0x2f49('0x49'),(_0x538f0c,_0x46ae66)=>{this[_0x2f49('0xf')][_0x2f49('0x43')](_0x226e24),this['_hideBalloon'](),_0x46ae66();});}[_0x2f49('0x6')](_0x3a10c8){this[_0x2f49('0x15')](_0x3a10c8);}}
|
|
23
|
+
const _0x4776=['preventClosingBalloon','element','_throttledRefreshPositioning','_attachListeners','narrowsidebar-detach-not-attached','remove','delete','detachFromDom','EditorAnnotations','_setSelectedAnnotations','hasDomSelection','values','annotationType','_showBalloon','editors','northArrowSouthEast','_hideBalloon','context','contains','_refreshPositioning','change:height','locale','plugins','stop','target','unpin','bodyCollection','activeAnnotation','addAnnotation','attach','mousedown','has','_detachListeners','northArrowSouthWest','bind','create','add','southArrowNorthEast','narrowsidebar-attach-already-attached','_destroyEditorAnnotationsIntegration','_integrateWithEditorAnnotations','first','number','_selectedAnnotations','ck-sidebar--narrow','balloonPanelView','_updateBalloonPosition','type','off','refresh','stopListening','esc','change:container','pluginName','isAttached','length','high','ready','view','resize','NarrowSidebar','defaultPositions','getSidebarItemView','requires','Sidebar','preventDefault','focus','removeEventListener','setActiveAnnotation','northArrowSouth','detach','pin','keyCode','addEventListener','isVisible','blur','listenTo','_annotationToNarrowView','rearrange','stopPropagation','register','from','_attachToContainer','_manuallyClosedAnnotationViews','narrowSidebar','includes','destroy','isDirty','get','southArrowNorth','clear','_detachFromContainer','set','content','_domEmitter','Esc','_annotations','keydown','getOrderedSelectedAnnotations','_editorAnnotations','getByView'];(function(_0x537968,_0x4776e6){const _0x26dea4=function(_0x367e3e){while(--_0x367e3e){_0x537968['push'](_0x537968['shift']());}};_0x26dea4(++_0x4776e6);}(_0x4776,0x1c2));const _0x26de=function(_0x537968,_0x4776e6){_0x537968=_0x537968-0x0;let _0x26dea4=_0x4776[_0x537968];return _0x26dea4;};import{ContextPlugin as _0x5559f1}from'ckeditor5/src/core';import _0x166068 from'./annotationsuis';import _0x9ead6d from'./sidebar';import _0xd7441f from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x316fa6,BodyCollection as _0x15eca9}from'ckeditor5/src/ui';import{CKEditorError as _0x16975d,DomEmitterMixin as _0x5377c2,keyCodes as _0x51b316,Collection as _0x54159c}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x43d226}from'lodash-es';export default class s extends _0x5559f1{static get[_0x26de('0x11')](){return[_0x9ead6d,_0x166068];}static get[_0x26de('0x7')](){return _0x26de('0xe');}constructor(_0x4fe69f){super(_0x4fe69f),this[_0x26de('0x8')]=!0x1,this[_0x26de('0x25')]=new Set(),this[_0x26de('0x30')]=Object[_0x26de('0x5a')](_0x5377c2),this['_annotationToNarrowView']=new Map(),this[_0x26de('0x2e')]('activeAnnotation',null),this[_0x26de('0x32')]=null,this[_0x26de('0x62')]=[],this[_0x26de('0x35')]=new _0x54159c(),this[_0x26de('0x39')]=_0x43d226(()=>{this[_0x26de('0x4a')]();},0x190,{'leading':!0x1});}['init'](){this[_0x26de('0x48')][_0x26de('0x4d')][_0x26de('0x2a')](_0x166068)[_0x26de('0x22')](_0x26de('0x26'),this),this[_0x26de('0x51')]=new _0x15eca9(this[_0x26de('0x48')][_0x26de('0x4c')]),this[_0x26de('0x64')]=new _0x316fa6(this[_0x26de('0x48')][_0x26de('0x4c')]),this[_0x26de('0x51')]['attachToDom'](),this[_0x26de('0x51')][_0x26de('0x5b')](this[_0x26de('0x64')]);}['attach'](_0x3d9f83){this[_0x26de('0x32')]=_0x3d9f83;const _0x509234=this[_0x26de('0x48')]['plugins'][_0x26de('0x2a')](_0x9ead6d),_0x70e693=this[_0x26de('0x64')];if(_0x509234[_0x26de('0x32')]=_0x3d9f83,this[_0x26de('0x8')])throw new _0x16975d(_0x26de('0x5d'),this);this[_0x26de('0x8')]=!0x0,this[_0x26de('0x1e')](_0x509234,'set:container',()=>{this[_0x26de('0x18')](),this[_0x26de('0x1e')](_0x509234,_0x26de('0x6'),_0x50b07d=>{_0x50b07d[_0x26de('0x2')](),this[_0x26de('0x54')](_0x3d9f83);});}),_0x509234[_0x26de('0x24')]({'viewClass':_0x26de('0x63'),'spaceBetweenItems':0x5});const _0x59c877=_0x3be6c0=>{const _0x19f217=new _0xd7441f(this[_0x26de('0x48')][_0x26de('0x4c')]);_0x509234[_0x26de('0x53')](_0x3be6c0,_0x19f217),this[_0x26de('0x1f')]['set'](_0x3be6c0,_0x19f217),_0x19f217[_0x26de('0x59')](_0x26de('0x29'),_0x26de('0x43'),_0x26de('0x61'))['to'](_0x3be6c0[_0x26de('0xc')],_0x26de('0x29'),_0x26de('0x1'),_0x26de('0x9')),_0x19f217['on']('execute',()=>{this[_0x26de('0x25')][_0x26de('0x2c')](),_0x70e693[_0x26de('0x2f')][_0x26de('0x60')]!==_0x3be6c0[_0x26de('0xc')]?(this[_0x26de('0x44')](_0x3be6c0),_0x3be6c0['view']['element'][_0x26de('0x14')](),this['setActiveAnnotation'](_0x3be6c0)):this[_0x26de('0x16')](null);});};for(const _0x3deb10 of _0x3d9f83)_0x59c877(_0x3deb10);this['listenTo'](_0x3d9f83,_0x26de('0x5b'),(_0x2d7f37,_0x3e7e07)=>{_0x59c877(_0x3e7e07);}),this[_0x26de('0x1e')](_0x3d9f83,'remove',(_0x4a88b4,_0x537cb1,_0x4782b5)=>{this[_0x26de('0x1f')][_0x26de('0x2a')](_0x537cb1)['destroy'](),this[_0x26de('0x1f')][_0x26de('0x3d')](_0x537cb1),_0x509234[_0x26de('0x20')]({'removedAnnotation':_0x537cb1,'previousAnnotation':_0x3d9f83[_0x26de('0x2a')](_0x4782b5-0x1),'nextAnnotation':_0x3d9f83[_0x26de('0x2a')](_0x4782b5+0x1)}),_0x537cb1===this[_0x26de('0x52')]&&this[_0x26de('0x16')](null);},{'priority':'low'}),this[_0x26de('0x1e')](_0x3d9f83,'focus',(_0x500b30,_0x2a25af)=>{this['setActiveAnnotation'](_0x2a25af);}),this[_0x26de('0x1e')](_0x3d9f83,_0x26de('0x1d'),()=>{this['setActiveAnnotation'](null);}),this[_0x26de('0x30')][_0x26de('0x1e')](document,_0x26de('0x33'),(_0x140935,_0x370f49)=>{_0x370f49[_0x26de('0x1a')]===_0x51b316[_0x26de('0x5')]&&_0x70e693['isVisible']&&(this[_0x26de('0x25')][_0x26de('0x5b')](_0x70e693[_0x26de('0x2f')][_0x26de('0x60')]),this[_0x26de('0x47')](),_0x370f49[_0x26de('0x21')](),_0x370f49[_0x26de('0x13')]());}),this[_0x26de('0x30')]['listenTo'](document,_0x26de('0x55'),(_0x4af2bf,_0x13a5b0)=>{const _0x16b48f=_0x13a5b0[_0x26de('0x4f')];_0x70e693[_0x26de('0x1c')]&&_0x70e693[_0x26de('0x38')][_0x26de('0x49')](_0x16b48f)||_0x509234[_0x26de('0xc')]['element']['contains'](_0x16b48f)||_0x4af2bf[_0x26de('0x37')]||(this[_0x26de('0x25')][_0x26de('0x2c')](),this[_0x26de('0x47')](),this[_0x26de('0x16')](null));});const _0x4003bc=this[_0x26de('0x48')][_0x26de('0x45')]?this[_0x26de('0x48')][_0x26de('0x45')]:new _0x54159c([this['context']]);for(const _0x539d0e of _0x4003bc)this['_integrateWithEditorAnnotations'](_0x539d0e);this[_0x26de('0x1e')](_0x4003bc,_0x26de('0x5b'),(_0xc7e42b,_0x52c0c5)=>{this[_0x26de('0x1e')](_0x52c0c5,_0x26de('0xb'),()=>{this[_0x26de('0x5f')](_0x52c0c5);});}),this[_0x26de('0x1e')](_0x4003bc,_0x26de('0x3c'),(_0x39c1ed,_0x4b1ce1)=>{_0x4b1ce1[_0x26de('0x4d')]['has'](_0x26de('0x3f'))&&this[_0x26de('0x5e')](_0x4b1ce1[_0x26de('0x4d')][_0x26de('0x2a')](_0x26de('0x3f')));}),window[_0x26de('0x1b')](_0x26de('0xd'),this[_0x26de('0x39')]),this[_0x26de('0x4a')]();}[_0x26de('0x16')](_0x2965cb){if(_0x2965cb===this['activeAnnotation'])return;const _0x21920f=this[_0x26de('0x48')][_0x26de('0x4d')][_0x26de('0x2a')](_0x26de('0x12'));if(_0x21920f[_0x26de('0x3')]({'blurredAnnotation':this[_0x26de('0x52')],'activatedAnnotation':_0x2965cb,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2965cb)_0x21920f[_0x26de('0x10')](_0x2965cb)?this[_0x26de('0x44')](_0x2965cb):this[_0x26de('0x47')]();else this[_0x26de('0x47')]();this[_0x26de('0x52')]=_0x2965cb;}['detach'](){if(!this[_0x26de('0x8')])throw new _0x16975d(_0x26de('0x3b'),this);this['setActiveAnnotation'](null);const _0x152c84=this[_0x26de('0x48')][_0x26de('0x4d')][_0x26de('0x2a')](_0x26de('0x12'));this[_0x26de('0x47')](),Array[_0x26de('0x23')](this[_0x26de('0x1f')][_0x26de('0x42')](),_0x478a36=>_0x478a36['destroy']()),this[_0x26de('0x1f')][_0x26de('0x2c')](),_0x152c84[_0x26de('0x2d')](this[_0x26de('0x32')]),this[_0x26de('0x4')](),this[_0x26de('0x30')][_0x26de('0x4')](),this[_0x26de('0x4')](this['context'][_0x26de('0x45')]);for(const _0x1e322e of Array[_0x26de('0x23')](this[_0x26de('0x35')]))this[_0x26de('0x5e')](_0x1e322e);window[_0x26de('0x15')](_0x26de('0xd'),this[_0x26de('0x39')]),this[_0x26de('0x39')]['cancel'](),this['_selectedAnnotations']=[],this[_0x26de('0x8')]=!0x1,this['_annotations']=null;}[_0x26de('0x28')](){this[_0x26de('0x8')]&&this[_0x26de('0x18')](),this[_0x26de('0x51')][_0x26de('0x3e')]();}['_integrateWithEditorAnnotations'](_0x3236d2){const _0x19acee=_0x3236d2[_0x26de('0x4d')]['get'](_0x26de('0x3f')),_0x15b78b=this['context'][_0x26de('0x4d')]['get'](_0x9ead6d),_0x214012=this['_annotations'],_0xabe8a0=this[_0x26de('0x64')],_0x247fe4=()=>{const _0x13f2bc=_0x19acee[_0x26de('0x34')]({'activeAnnotation':this[_0x26de('0x52')],'annotations':this[_0x26de('0x32')]});this['_setSelectedAnnotations'](_0x13f2bc),this['setActiveAnnotation'](_0x13f2bc[0x0]||null);};this['listenTo'](_0x19acee,_0x26de('0x3'),_0x247fe4),this[_0x26de('0x1e')](_0x19acee,_0x26de('0x1d'),(_0x10d79a,{isAnnotationTracked:_0x166c07})=>{this[_0x26de('0x52')]&&_0x166c07(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this[_0x26de('0x1e')](_0x19acee,'uiUpdate',()=>{this[_0x26de('0x39')]();}),this[_0x26de('0x1e')](_0x214012,'blur',_0x161b68=>{_0x19acee[_0x26de('0x41')]()&&_0x161b68[_0x26de('0x4e')]();},{'priority':'high'}),this[_0x26de('0x30')]['listenTo'](document,_0x26de('0x55'),(_0x1d5404,_0x4b668b)=>{const _0x458779=_0x4b668b[_0x26de('0x4f')];_0xabe8a0[_0x26de('0x1c')]&&_0xabe8a0[_0x26de('0x38')][_0x26de('0x49')](_0x458779)||_0x15b78b[_0x26de('0xc')][_0x26de('0x38')][_0x26de('0x49')](_0x458779)||this['activeAnnotation']&&_0x19acee[_0x26de('0x41')]()&&(_0x247fe4(),_0x1d5404[_0x26de('0x37')]=!0x0);},{'priority':_0x26de('0xa')}),this[_0x26de('0x35')][_0x26de('0x5b')](_0x19acee);}['_destroyEditorAnnotationsIntegration'](_0x4d1e65){_0x4d1e65&&(this['stopListening'](_0x4d1e65),this[_0x26de('0x35')]['remove'](_0x4d1e65));}[_0x26de('0x40')](_0x3f64a3){for(const _0x4cc231 of this[_0x26de('0x62')])_0x3f64a3[_0x26de('0x27')](_0x4cc231)||this['_manuallyClosedAnnotationViews'][_0x26de('0x3d')](_0x4cc231[_0x26de('0xc')]);this[_0x26de('0x62')]=_0x3f64a3;}[_0x26de('0x4a')](){const _0x23e9c9=this[_0x26de('0x64')];this[_0x26de('0x32')]['refreshPositioning'](),_0x23e9c9['isVisible']&&this[_0x26de('0x0')]();}[_0x26de('0x44')](_0x53a087){if(this[_0x26de('0x25')][_0x26de('0x56')](_0x53a087[_0x26de('0xc')]))return;const _0x223315=this[_0x26de('0x64')][_0x26de('0x2f')][_0x26de('0x60')];_0x223315!==_0x53a087[_0x26de('0xc')]?(_0x223315&&this[_0x26de('0x57')](_0x223315),this[_0x26de('0x3a')](_0x53a087[_0x26de('0xc')]),this[_0x26de('0x64')]['content']['clear'](),this[_0x26de('0x64')][_0x26de('0x2f')]['add'](_0x53a087[_0x26de('0xc')]),this[_0x26de('0x0')]()):this['_updateBalloonPosition']();}[_0x26de('0x0')](){const _0x113fc8=this[_0x26de('0x64')]['content']['first'],_0xbae071=this[_0x26de('0x32')][_0x26de('0x36')](_0x113fc8);if(!this[_0x26de('0x1f')][_0x26de('0x56')](_0xbae071))return;const _0x185ebf=this[_0x26de('0x1f')][_0x26de('0x2a')](_0xbae071)[_0x26de('0x38')],_0x73b957=function(){const _0x187360=_0x316fa6[_0x26de('0xf')];return[_0x187360[_0x26de('0x5c')],_0x187360[_0x26de('0x46')],_0x187360[_0x26de('0x2b')],_0x187360[_0x26de('0x17')],_0x187360['southArrowNorthWest'],_0x187360[_0x26de('0x58')]];}();this[_0x26de('0x64')][_0x26de('0x19')]({'target':_0x185ebf,'positions':_0x73b957});}[_0x26de('0x47')](){const _0x1f5dd1=this[_0x26de('0x64')],_0x20a44d=_0x1f5dd1[_0x26de('0x2f')][_0x26de('0x60')];_0x20a44d&&(this['_detachListeners'](_0x20a44d),_0x1f5dd1[_0x26de('0x50')](),_0x1f5dd1[_0x26de('0x2f')]['clear']());}['_attachListeners'](_0x4c5080){this[_0x26de('0x1e')](_0x4c5080,_0x26de('0x4b'),()=>this[_0x26de('0x0')]()),this[_0x26de('0x1e')](_0x4c5080,_0x26de('0x31'),(_0x2f7db,_0x5ca2a2)=>{this['_manuallyClosedAnnotationViews']['add'](_0x4c5080),this['_hideBalloon'](),_0x5ca2a2();});}[_0x26de('0x57')](_0x242324){this[_0x26de('0x4')](_0x242324);}}
|