@ckeditor/ckeditor5-comments 34.2.0 → 35.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/comments.js +1 -1
- package/build/translations/ar.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/ja.js +1 -1
- package/build/translations/lt.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/vi.js +1 -0
- package/lang/translations/ar.po +71 -0
- package/lang/translations/bg.po +67 -0
- package/lang/translations/bn.po +67 -0
- package/lang/translations/ca.po +67 -0
- package/lang/translations/fi.po +67 -0
- package/lang/translations/he.po +69 -0
- package/lang/translations/ja.po +3 -3
- package/lang/translations/lt.po +69 -0
- package/lang/translations/ms.po +66 -0
- package/lang/translations/pt.po +68 -0
- package/lang/translations/sr.po +3 -3
- package/lang/translations/sv.po +67 -0
- package/lang/translations/th.po +66 -0
- package/lang/translations/vi.po +66 -0
- package/package.json +3 -3
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.js +1 -1
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/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.js +1 -1
- package/src/commentsonly.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.js +1 -1
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# Copyright (c) 2003-2022, CKSource Holding sp. z o.o. 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: Portuguese (https://www.transifex.com/ckeditor/teams/11143/pt/)\n"
|
|
16
|
+
"Language: pt\n"
|
|
17
|
+
"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
|
|
18
|
+
|
|
19
|
+
msgctxt "The label for the comment editor."
|
|
20
|
+
msgid "Comment editor"
|
|
21
|
+
msgstr "Editor de comentários"
|
|
22
|
+
|
|
23
|
+
msgctxt "The label for the number of comments."
|
|
24
|
+
msgid "NUMBER_OF_COMMENTS"
|
|
25
|
+
msgid_plural "%0 Comments"
|
|
26
|
+
msgstr[0] "%0 Comentário"
|
|
27
|
+
msgstr[1] "%0 Comentário"
|
|
28
|
+
msgstr[2] "%0 Comentário"
|
|
29
|
+
|
|
30
|
+
msgctxt "The alert displayed for a comment that is too long."
|
|
31
|
+
msgid "TOO_LONG_COMMENT_ALERT"
|
|
32
|
+
msgstr "O conteúdo do comentário é demasiado longo. O seu comentário tem %0 caracteres, mas o limite é %1 caracteres."
|
|
33
|
+
|
|
34
|
+
msgctxt "The placeholder for the reply field."
|
|
35
|
+
msgid "Reply..."
|
|
36
|
+
msgstr "Responder..."
|
|
37
|
+
|
|
38
|
+
msgctxt "The placeholder for the new commend field."
|
|
39
|
+
msgid "Write a comment..."
|
|
40
|
+
msgstr "Escrever um comentário..."
|
|
41
|
+
|
|
42
|
+
msgctxt "The label for the button that enables editing a comment."
|
|
43
|
+
msgid "Edit"
|
|
44
|
+
msgstr "Editar"
|
|
45
|
+
|
|
46
|
+
msgctxt "The label for the button that deletes a comment."
|
|
47
|
+
msgid "Remove"
|
|
48
|
+
msgstr "Remover"
|
|
49
|
+
|
|
50
|
+
msgctxt "The label for for the button that submits a comment."
|
|
51
|
+
msgid "Submit"
|
|
52
|
+
msgstr "Submeter"
|
|
53
|
+
|
|
54
|
+
msgctxt "The confirmation message shown after pressing the delete comment button."
|
|
55
|
+
msgid "Delete comment?"
|
|
56
|
+
msgstr "Eliminar comentário?"
|
|
57
|
+
|
|
58
|
+
msgctxt "The confirmation message shown after pressing the delete comment thread button."
|
|
59
|
+
msgid "Delete comment thread?"
|
|
60
|
+
msgstr "Eliminar linha de comentários?"
|
|
61
|
+
|
|
62
|
+
msgctxt "The tooltip for the comment toolbar button."
|
|
63
|
+
msgid "Comment"
|
|
64
|
+
msgstr "Comentário"
|
|
65
|
+
|
|
66
|
+
msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
|
|
67
|
+
msgid "PENDING_ACTION_COMMENT_THREAD"
|
|
68
|
+
msgstr "Alteração não guardada na linha de comentários."
|
package/lang/translations/sr.po
CHANGED
|
@@ -23,9 +23,9 @@ msgstr "Уређивач напомене "
|
|
|
23
23
|
msgctxt "The label for the number of comments."
|
|
24
24
|
msgid "NUMBER_OF_COMMENTS"
|
|
25
25
|
msgid_plural "%0 Comments"
|
|
26
|
-
msgstr[0] ""
|
|
27
|
-
msgstr[1] ""
|
|
28
|
-
msgstr[2] ""
|
|
26
|
+
msgstr[0] "%0 komentar"
|
|
27
|
+
msgstr[1] "%0 komentara"
|
|
28
|
+
msgstr[2] "%0 komentara"
|
|
29
29
|
|
|
30
30
|
msgctxt "The alert displayed for a comment that is too long."
|
|
31
31
|
msgid "TOO_LONG_COMMENT_ALERT"
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Copyright (c) 2003-2022, CKSource Holding sp. z o.o. 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: Swedish (https://www.transifex.com/ckeditor/teams/11143/sv/)\n"
|
|
16
|
+
"Language: sv\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 "Kommentarsredigerare"
|
|
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 "Kommentarsinnehållet är för långt. Din kommentar har %0 tecken men gränsen är %1 tecken."
|
|
32
|
+
|
|
33
|
+
msgctxt "The placeholder for the reply field."
|
|
34
|
+
msgid "Reply..."
|
|
35
|
+
msgstr "Svara ..."
|
|
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 "Ändra"
|
|
44
|
+
|
|
45
|
+
msgctxt "The label for the button that deletes a comment."
|
|
46
|
+
msgid "Remove"
|
|
47
|
+
msgstr "Ta bort"
|
|
48
|
+
|
|
49
|
+
msgctxt "The label for for the button that submits a comment."
|
|
50
|
+
msgid "Submit"
|
|
51
|
+
msgstr "Lämna in"
|
|
52
|
+
|
|
53
|
+
msgctxt "The confirmation message shown after pressing the delete comment button."
|
|
54
|
+
msgid "Delete comment?"
|
|
55
|
+
msgstr "Radera kommentar?"
|
|
56
|
+
|
|
57
|
+
msgctxt "The confirmation message shown after pressing the delete comment thread button."
|
|
58
|
+
msgid "Delete comment thread?"
|
|
59
|
+
msgstr "Radera kommentarstråd?"
|
|
60
|
+
|
|
61
|
+
msgctxt "The tooltip for the comment toolbar button."
|
|
62
|
+
msgid "Comment"
|
|
63
|
+
msgstr "Kommentar"
|
|
64
|
+
|
|
65
|
+
msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
|
|
66
|
+
msgid "PENDING_ACTION_COMMENT_THREAD"
|
|
67
|
+
msgstr "Osparad ändring i kommentarstråden."
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# Copyright (c) 2003-2022, CKSource Holding sp. z o.o. 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: Thai (https://www.transifex.com/ckeditor/teams/11143/th/)\n"
|
|
16
|
+
"Language: th\n"
|
|
17
|
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
|
|
19
|
+
msgctxt "The label for the comment editor."
|
|
20
|
+
msgid "Comment editor"
|
|
21
|
+
msgstr "เครื่องมือแก้ไขข้อคิดเห็น"
|
|
22
|
+
|
|
23
|
+
msgctxt "The label for the number of comments."
|
|
24
|
+
msgid "NUMBER_OF_COMMENTS"
|
|
25
|
+
msgid_plural "%0 Comments"
|
|
26
|
+
msgstr[0] "%0 ข้อคิดเห็น"
|
|
27
|
+
|
|
28
|
+
msgctxt "The alert displayed for a comment that is too long."
|
|
29
|
+
msgid "TOO_LONG_COMMENT_ALERT"
|
|
30
|
+
msgstr "เนื้อหาข้อคิดเห็นยาวเกินไป ข้อคิดเห็นของคุณมี %0 แต่เรามีขีดจำกัดอยู่ที่ %1 อักขระ"
|
|
31
|
+
|
|
32
|
+
msgctxt "The placeholder for the reply field."
|
|
33
|
+
msgid "Reply..."
|
|
34
|
+
msgstr "ตอบ..."
|
|
35
|
+
|
|
36
|
+
msgctxt "The placeholder for the new commend field."
|
|
37
|
+
msgid "Write a comment..."
|
|
38
|
+
msgstr "เขียนข้อคิดเห็น..."
|
|
39
|
+
|
|
40
|
+
msgctxt "The label for the button that enables editing a comment."
|
|
41
|
+
msgid "Edit"
|
|
42
|
+
msgstr "แก้ไข"
|
|
43
|
+
|
|
44
|
+
msgctxt "The label for the button that deletes a comment."
|
|
45
|
+
msgid "Remove"
|
|
46
|
+
msgstr "ลบ"
|
|
47
|
+
|
|
48
|
+
msgctxt "The label for for the button that submits a comment."
|
|
49
|
+
msgid "Submit"
|
|
50
|
+
msgstr "ส่ง"
|
|
51
|
+
|
|
52
|
+
msgctxt "The confirmation message shown after pressing the delete comment button."
|
|
53
|
+
msgid "Delete comment?"
|
|
54
|
+
msgstr "ลบข้อคิดเห็นหรือไม่"
|
|
55
|
+
|
|
56
|
+
msgctxt "The confirmation message shown after pressing the delete comment thread button."
|
|
57
|
+
msgid "Delete comment thread?"
|
|
58
|
+
msgstr "ลบชุดข้อคิดเห็นหรือไม่"
|
|
59
|
+
|
|
60
|
+
msgctxt "The tooltip for the comment toolbar button."
|
|
61
|
+
msgid "Comment"
|
|
62
|
+
msgstr "ข้อคิดเห็น"
|
|
63
|
+
|
|
64
|
+
msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
|
|
65
|
+
msgid "PENDING_ACTION_COMMENT_THREAD"
|
|
66
|
+
msgstr "การเปลี่ยนแปลงที่ยังไม่ได้บันทึกในชุดข้อคิดเห็น"
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# Copyright (c) 2003-2022, CKSource Holding sp. z o.o. 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: Vietnamese (https://www.transifex.com/ckeditor/teams/11143/vi/)\n"
|
|
16
|
+
"Language: vi\n"
|
|
17
|
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
|
|
19
|
+
msgctxt "The label for the comment editor."
|
|
20
|
+
msgid "Comment editor"
|
|
21
|
+
msgstr "Trình chỉnh sửa bình luận"
|
|
22
|
+
|
|
23
|
+
msgctxt "The label for the number of comments."
|
|
24
|
+
msgid "NUMBER_OF_COMMENTS"
|
|
25
|
+
msgid_plural "%0 Comments"
|
|
26
|
+
msgstr[0] "%0 Bình luận"
|
|
27
|
+
|
|
28
|
+
msgctxt "The alert displayed for a comment that is too long."
|
|
29
|
+
msgid "TOO_LONG_COMMENT_ALERT"
|
|
30
|
+
msgstr "Nội dung bình luận quá dài. Bình luận của bạn có %0 ký tự, tuy nhiên giới hạn ký tự là %1."
|
|
31
|
+
|
|
32
|
+
msgctxt "The placeholder for the reply field."
|
|
33
|
+
msgid "Reply..."
|
|
34
|
+
msgstr "Trả lời..."
|
|
35
|
+
|
|
36
|
+
msgctxt "The placeholder for the new commend field."
|
|
37
|
+
msgid "Write a comment..."
|
|
38
|
+
msgstr "Viết bình luận..."
|
|
39
|
+
|
|
40
|
+
msgctxt "The label for the button that enables editing a comment."
|
|
41
|
+
msgid "Edit"
|
|
42
|
+
msgstr "Chỉnh sửa"
|
|
43
|
+
|
|
44
|
+
msgctxt "The label for the button that deletes a comment."
|
|
45
|
+
msgid "Remove"
|
|
46
|
+
msgstr "Xóa"
|
|
47
|
+
|
|
48
|
+
msgctxt "The label for for the button that submits a comment."
|
|
49
|
+
msgid "Submit"
|
|
50
|
+
msgstr "Gửi"
|
|
51
|
+
|
|
52
|
+
msgctxt "The confirmation message shown after pressing the delete comment button."
|
|
53
|
+
msgid "Delete comment?"
|
|
54
|
+
msgstr "Xóa bình luận?"
|
|
55
|
+
|
|
56
|
+
msgctxt "The confirmation message shown after pressing the delete comment thread button."
|
|
57
|
+
msgid "Delete comment thread?"
|
|
58
|
+
msgstr "Xóa chuỗi bình luận?"
|
|
59
|
+
|
|
60
|
+
msgctxt "The tooltip for the comment toolbar button."
|
|
61
|
+
msgid "Comment"
|
|
62
|
+
msgstr "Bình luận"
|
|
63
|
+
|
|
64
|
+
msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
|
|
65
|
+
msgid "PENDING_ACTION_COMMENT_THREAD"
|
|
66
|
+
msgstr "Nội dung thay đổi chưa lưu trong chuỗi bình luận."
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-comments",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "35.0.1",
|
|
4
4
|
"description": "Collaborative comments feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
],
|
|
32
32
|
"main": "src/index.js",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"ckeditor5": "^
|
|
35
|
-
"ckeditor5-collaboration": "^
|
|
34
|
+
"ckeditor5": "^35.0.1",
|
|
35
|
+
"ckeditor5-collaboration": "^35.0.1",
|
|
36
36
|
"lodash-es": "^4.17.11"
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ad1=['item','_assertCorrectTarget','view','target','updateTargetRect','_isTargetElementVisible','isActive','remove','destroy','clear','_type','focusTracker','_target','annotation-invalid-target','render','add','element','targetRect','stopListening','function','refreshVisibility','focusableElements','mainView'];(function(_0x23e04c,_0x5ad176){const _0x4a6fe1=function(_0x2dbd6b){while(--_0x2dbd6b){_0x23e04c['push'](_0x23e04c['shift']());}};_0x4a6fe1(++_0x5ad176);}(_0x5ad1,0xfa));const _0x4a6f=function(_0x23e04c,_0x5ad176){_0x23e04c=_0x23e04c-0x0;let _0x4a6fe1=_0x5ad1[_0x23e04c];return _0x4a6fe1;};import{CKEditorError as _0x467a6e,Rect as _0xf7be1e,Collection as _0x47b18c,mix as _0x484f42,ObservableMixin as _0x150456}from'ckeditor5/src/utils';import{isElement as _0x45bbce}from'lodash-es';export default class p{constructor({view:_0x443b98,target:_0x5beee3,type:_0x5b06fa,isVisible:_0xcdba8c=!0x0}){this[_0x4a6f('0x5')]=_0x443b98,this[_0x4a6f('0x5')][_0x4a6f('0x13')]||this[_0x4a6f('0x5')][_0x4a6f('0x11')](),this['_type']=_0x5b06fa,this[_0x4a6f('0xf')]=_0x5beee3,this['_assertCorrectTarget'](),this['focusableElements']=new _0x47b18c([this[_0x4a6f('0x5')]['element']],{'idProperty':'_id'}),this[_0x4a6f('0x1')]['on'](_0x4a6f('0x12'),(_0x5a9c18,_0x42b57c)=>{this[_0x4a6f('0x5')][_0x4a6f('0xe')]['add'](_0x42b57c);}),this[_0x4a6f('0x1')]['on'](_0x4a6f('0xa'),(_0x4be530,_0xb07a98)=>{this[_0x4a6f('0x5')]['focusTracker'][_0x4a6f('0xa')](_0xb07a98);}),this['set']('isVisible',_0xcdba8c);}get['type'](){return'function'==typeof this['_type']?this[_0x4a6f('0xd')]():this['_type'];}get['innerView'](){return this[_0x4a6f('0x5')][_0x4a6f('0x2')];}get[_0x4a6f('0x6')](){return _0x4a6f('0x16')==typeof this[_0x4a6f('0xf')]?this[_0x4a6f('0xf')]():this[_0x4a6f('0xf')];}get['targetRect'](){const _0x4cbe84=this['target'];return this[_0x4a6f('0x4')](),null!==_0x4cbe84&&this[_0x4a6f('0x8')]()?new _0xf7be1e(_0x4cbe84):null;}get[_0x4a6f('0x9')](){return this[_0x4a6f('0x5')][_0x4a6f('0x9')];}set[_0x4a6f('0x9')](_0x19b713){this['view'][_0x4a6f('0x9')]=_0x19b713,this[_0x4a6f('0x5')]['mainView'][_0x4a6f('0x9')]=_0x19b713;}[_0x4a6f('0x7')](){this['view'][_0x4a6f('0x14')]=this[_0x4a6f('0x14')];}[_0x4a6f('0xb')](){this['focusableElements'][_0x4a6f('0x15')](),this[_0x4a6f('0x1')][_0x4a6f('0xc')](),this[_0x4a6f('0x15')]();}[_0x4a6f('0x0')](){this['isVisible']=this[_0x4a6f('0x8')]();}[_0x4a6f('0x8')](){const _0x1e3b9e=this[_0x4a6f('0x6')];if(_0x45bbce(_0x1e3b9e)){const _0x1f5672=_0x1e3b9e['getClientRects']()[_0x4a6f('0x3')](0x0),_0xe2a915=_0x1e3b9e['offsetParent'];if(!_0x1f5672||!_0xe2a915)return!0x1;}return!0x0;}[_0x4a6f('0x4')](){const _0x517bbe=this[_0x4a6f('0x6')];if(!(null===_0x517bbe||_0x517bbe instanceof _0xf7be1e||_0x45bbce(_0x517bbe)))throw new _0x467a6e(_0x4a6f('0x10'),null,{'target':_0x517bbe});}}_0x484f42(p,_0x150456);
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xafb7=['annotationcollection-not-existing-item','isFocused','delete','innerView','fire','blur','targetRect','_sort','view','add','updateTargetRect','focus','_focusTracker','listenTo','stopListening','clear','sort','getByInnerView','remove','from','has','_getOrderInContent','focusTracker','refreshPositioning','change:isFocused','left','annotationcollection-duplicated-item','destroy','top','_items','focusableElements','_innerViewToAnnotation','length','_viewToAnnotation'];(function(_0x951682,_0xafb7c7){const _0x90dfe=function(_0x1585aa){while(--_0x1585aa){_0x951682['push'](_0x951682['shift']());}};_0x90dfe(++_0xafb7c7);}(_0xafb7,0x8b));const _0x90df=function(_0x951682,_0xafb7c7){_0x951682=_0x951682-0x0;let _0x90dfe=_0xafb7[_0x951682];return _0x90dfe;};import{CKEditorError as _0x20b3b7,Collection as _0x2a00e4,FocusTracker as _0x381050}from'ckeditor5/src/utils';export default class x extends _0x2a00e4{constructor(_0x4ee508=[]){super(),this['_innerViewToAnnotation']=new Map(),this[_0x90df('0x1e')]=new Map(),this[_0x90df('0x9')]=new _0x381050(),this['_focusTracker']['on']('change:isFocused',(_0x57fb42,_0x13c642,_0x9437d5)=>{_0x9437d5||this[_0x90df('0x1')](_0x90df('0x2'));});for(const _0x524527 of _0x4ee508)this[_0x90df('0x6')](_0x524527);}get[_0x90df('0x20')](){return this[_0x90df('0x9')][_0x90df('0x20')];}[_0x90df('0x6')](_0x50c9bb){if(this[_0x90df('0x11')](_0x50c9bb))throw new _0x20b3b7(_0x90df('0x17'),null);this[_0x90df('0x1c')]['set'](_0x50c9bb[_0x90df('0x0')],_0x50c9bb),this[_0x90df('0x1e')]['set'](_0x50c9bb[_0x90df('0x5')],_0x50c9bb);for(const _0x11a4b7 of _0x50c9bb[_0x90df('0x1b')])this[_0x90df('0x9')][_0x90df('0x6')](_0x11a4b7);this[_0x90df('0xa')](_0x50c9bb['focusableElements'],_0x90df('0x6'),(_0x59bbaa,_0x5b1f73)=>{this['_focusTracker']['add'](_0x5b1f73);}),this[_0x90df('0xa')](_0x50c9bb['focusableElements'],_0x90df('0xf'),(_0x5c8335,_0x29b1e9)=>{this[_0x90df('0x9')][_0x90df('0xf')](_0x29b1e9);}),this[_0x90df('0xa')](_0x50c9bb[_0x90df('0x5')]['focusTracker'],_0x90df('0x15'),(_0x1ec774,_0x36b52b,_0x51af0e)=>{_0x51af0e&&this['fire'](_0x90df('0x8'),_0x50c9bb);});const _0x19e7b0=this[_0x90df('0x12')](_0x50c9bb);super['add'](_0x50c9bb,_0x19e7b0),_0x50c9bb[_0x90df('0x7')]();}[_0x90df('0xf')](_0x1293d2){if(!this['has'](_0x1293d2))throw new _0x20b3b7(_0x90df('0x1f'),null);this[_0x90df('0xb')](_0x1293d2[_0x90df('0x5')][_0x90df('0x13')]),this[_0x90df('0xb')](_0x1293d2['focusableElements']);for(const _0x15ddd8 of _0x1293d2[_0x90df('0x1b')])this[_0x90df('0x9')]['remove'](_0x15ddd8);this[_0x90df('0x1e')][_0x90df('0x21')](_0x1293d2[_0x90df('0x5')]),this[_0x90df('0x1c')][_0x90df('0x21')](_0x1293d2[_0x90df('0x0')]),super[_0x90df('0xf')](_0x1293d2);}[_0x90df('0xe')](_0x497751){return this[_0x90df('0x1c')]['get'](_0x497751);}['getByView'](_0x378cbb){return this[_0x90df('0x1e')]['get'](_0x378cbb);}[_0x90df('0x18')](){super[_0x90df('0xc')](),this[_0x90df('0xb')](),this[_0x90df('0x1c')][_0x90df('0xc')](),this[_0x90df('0x1e')]['clear'](),this[_0x90df('0x9')][_0x90df('0x18')]();}[_0x90df('0x14')](){for(const _0x3870e6 of this)_0x3870e6[_0x90df('0x7')]();this[_0x90df('0x4')]();}[_0x90df('0x4')](){const _0x36854f=Array[_0x90df('0x10')](this)[_0x90df('0xd')]((_0x176b9f,_0x57c17d)=>y(_0x176b9f[_0x90df('0x3')],_0x57c17d[_0x90df('0x3')]));for(let _0x2578e7=_0x36854f[_0x90df('0x1d')]-0x1;_0x2578e7>0x0;_0x2578e7--){const _0xaa43fe=_0x36854f[_0x2578e7];_0x2578e7!==this['getIndex'](_0xaa43fe)&&(this[_0x90df('0xf')](_0xaa43fe),this[_0x90df('0x6')](_0xaa43fe,_0x2578e7));}}[_0x90df('0x12')](_0x3a1ba5){let _0x3a9c80=0x0;const _0x5070e0=_0x3a1ba5['targetRect'];if(!_0x5070e0)return this[_0x90df('0x1a')][_0x90df('0x1d')];for(const _0x12e6e4 of this){const _0x4b30b9=_0x12e6e4['targetRect'];if(_0x4b30b9){if(y(_0x5070e0,_0x4b30b9)<0x0)return _0x3a9c80;_0x3a9c80++;}}return _0x3a9c80;}}export function bindAnnotationCollections({source:_0x42d77c,target:_0x23989d,filter:_0x80e597}){for(const _0x52769e of _0x42d77c)_0x80e597(_0x52769e)&&_0x23989d[_0x90df('0x6')](_0x52769e);_0x23989d[_0x90df('0xa')](_0x42d77c,'add',(_0x23f430,_0x23f79a)=>{_0x80e597(_0x23f79a)&&_0x23989d[_0x90df('0x6')](_0x23f79a);}),_0x23989d['listenTo'](_0x42d77c,_0x90df('0xf'),(_0x1431c6,_0x5271b2)=>{_0x23989d[_0x90df('0x11')](_0x5271b2)&&_0x23989d[_0x90df('0xf')](_0x5271b2);});}function y(_0x2203af,_0x3abf14){if(null===_0x2203af&&null===_0x3abf14)return 0x0;if(null===_0x2203af)return-0x1;if(null===_0x3abf14)return 0x1;const _0x14825c=_0x2203af[_0x90df('0x19')]-_0x3abf14[_0x90df('0x19')];return 0x0==_0x14825c?_0x2203af[_0x90df('0x16')]-_0x3abf14[_0x90df('0x16')]:_0x14825c;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5498=['remove','isVisible','createAnnotationView','stopListening','source','add','refreshPositioning','activeAnnotations','change:isVisible','has','Annotations','_deactivateAllAnnotations','fire','collection','_removeActiveAnnotation','set','_activateAnnotation','createAnnotation','_visibleAnnotations','deactivateAll','_bindAnnotationsToVisibleAnnotations','destroy','activate','listenTo','pluginName','getByInnerView'];(function(_0x52c4df,_0x5498ba){const _0x1fde21=function(_0x4e7cf9){while(--_0x4e7cf9){_0x52c4df['push'](_0x52c4df['shift']());}};_0x1fde21(++_0x5498ba);}(_0x5498,0x1c0));const _0x1fde=function(_0x52c4df,_0x5498ba){_0x52c4df=_0x52c4df-0x0;let _0x1fde21=_0x5498[_0x52c4df];return _0x1fde21;};import{ContextPlugin as _0x45d1af}from'ckeditor5/src/core';import _0x50a31c from'./annotation';import _0x40052b from'./annotationcollection';import _0x2f517d from'./view/annotationview';export default class V extends _0x45d1af{static get[_0x1fde('0x12')](){return _0x1fde('0x4');}constructor(_0x5ddeb2){super(_0x5ddeb2),this[_0x1fde('0x7')]=new _0x40052b(),this[_0x1fde('0xc')]=new _0x40052b(),this[_0x1fde('0x9')](_0x1fde('0x1'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x1fde('0x19')](_0x26147c){this[_0x1fde('0x7')][_0x1fde('0x19')](_0x26147c);}['remove'](_0x2f7090){this[_0x1fde('0x7')][_0x1fde('0x14')](_0x2f7090),_0x2f7090[_0x1fde('0xf')]();}['refreshVisibility'](){for(const _0x233632 of this[_0x1fde('0x7')])_0x233632['refreshVisibility']();}[_0x1fde('0x0')](){this['_visibleAnnotations']['refreshPositioning']();}[_0x1fde('0x13')](_0x2e9c23){return this[_0x1fde('0x7')][_0x1fde('0x13')](_0x2e9c23);}[_0x1fde('0xd')](){this[_0x1fde('0x6')](_0x1fde('0x5'));}[_0x1fde('0xf')](){for(const _0x15fb79 of this[_0x1fde('0x7')])_0x15fb79['destroy']();this[_0x1fde('0xc')][_0x1fde('0xf')](),this[_0x1fde('0x7')][_0x1fde('0xf')](),super['destroy']();}[_0x1fde('0x10')](_0x266dff){this[_0x1fde('0x6')](_0x1fde('0xa'),_0x266dff);}[_0x1fde('0xb')](_0x4b681f){return new _0x50a31c(_0x4b681f);}[_0x1fde('0x16')](_0x175b03,_0x2e2226){return new _0x2f517d(_0x175b03,_0x2e2226);}['_addActiveAnnotation'](_0x40fbff){const _0x16ee51=new Set(this[_0x1fde('0x1')]);_0x16ee51['add'](_0x40fbff),this[_0x1fde('0x1')]=_0x16ee51;}[_0x1fde('0x8')](_0x534c33){const _0x3fd3e6=new Set(this[_0x1fde('0x1')]);_0x3fd3e6['delete'](_0x534c33),this[_0x1fde('0x1')]=_0x3fd3e6;}[_0x1fde('0xe')](){const _0x4af0f6=this[_0x1fde('0x7')],_0x3a3d2c=this[_0x1fde('0xc')];function _0xf10c7(_0x5e26af){const _0x2034bb=_0x5e26af[_0x1fde('0x18')];_0x2034bb['isVisible']&&!_0x3a3d2c[_0x1fde('0x3')](_0x2034bb)?_0x3a3d2c['add'](_0x2034bb):!_0x2034bb[_0x1fde('0x15')]&&_0x3a3d2c[_0x1fde('0x3')](_0x2034bb)&&_0x3a3d2c[_0x1fde('0x14')](_0x2034bb);}this[_0x1fde('0x11')](_0x4af0f6,_0x1fde('0x19'),(_0x4787f3,_0x1c1af5)=>{_0x1c1af5[_0x1fde('0x15')]&&_0x3a3d2c[_0x1fde('0x19')](_0x1c1af5),this[_0x1fde('0x11')](_0x1c1af5,'change:isVisible',_0xf10c7);}),this['listenTo'](_0x4af0f6,'remove',(_0x238e95,_0x3850b6)=>{_0x3a3d2c['has'](_0x3850b6)&&_0x3a3d2c[_0x1fde('0x14')](_0x3850b6),this[_0x1fde('0x17')](_0x3850b6,_0x1fde('0x2'),_0xf10c7);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e14=['plugins','context','function','get','listenTo','pluginName','isActive','push','annotationsuis-annotation-mismatch','find','change:activeAnnotation','annotationsuis-register-already-registered','from','set','setActiveAnnotation','activate','delete','_removeActiveAnnotation','deactivateAll','detach','add','filter','_visibleAnnotations','deactivate','type','stopListening','annotationsuis-activate-missing-ui','collection','destroy','switchTo','_uisData','has','_uis','_deactivateAllAnnotations','_activateAnnotation','activeUIs','AnnotationsUIs','size','annotationsuis-register-invalid-interface','_assertAnnotationDoesNotBelongToMultipleUIs','_setSelectedAnnotations','init'];(function(_0x1656f8,_0x1e144d){const _0x4305ac=function(_0x374eff){while(--_0x374eff){_0x1656f8['push'](_0x1656f8['shift']());}};_0x4305ac(++_0x1e144d);}(_0x1e14,0xc1));const _0x4305=function(_0x1656f8,_0x1e144d){_0x1656f8=_0x1656f8-0x0;let _0x4305ac=_0x1e14[_0x1656f8];return _0x4305ac;};import{ContextPlugin as _0x2000cf}from'ckeditor5/src/core';import{CKEditorError as _0x4921e7}from'ckeditor5/src/utils';import _0x59794a,{bindAnnotationCollections as _0x3e10e2}from'./annotationcollection';import _0x3c6d73 from'./annotations';export default class I extends _0x2000cf{static get['requires'](){return[_0x3c6d73];}static get[_0x4305('0x16')](){return _0x4305('0xb');}constructor(_0x1b5973){super(_0x1b5973),this[_0x4305('0xa')]=new Set(),this[_0x4305('0x7')]=new Map(),this[_0x4305('0x5')]=new Map();}[_0x4305('0x10')](){const _0x365537=this['context'][_0x4305('0x11')][_0x4305('0x14')](_0x3c6d73);this[_0x4305('0x15')](_0x365537,_0x4305('0x9'),(_0x25dd40,_0x5bd58b)=>{for(const _0x3f0995 of this['activeUIs']){const _0x26edbf=this[_0x4305('0x7')][_0x4305('0x14')](_0x3f0995);(0x0,this[_0x4305('0x5')][_0x4305('0x14')](_0x3f0995)[_0x4305('0x26')])(_0x5bd58b)&&_0x26edbf[_0x4305('0x1f')](_0x5bd58b);}}),this[_0x4305('0x15')](_0x365537,_0x4305('0x8'),()=>{for(const _0x1fd5f3 of this[_0x4305('0xa')]){this[_0x4305('0x7')][_0x4305('0x14')](_0x1fd5f3)[_0x4305('0x1f')](null);}}),this[_0x4305('0x15')](_0x365537['_visibleAnnotations'],'add',(_0x44680a,_0x1e594d)=>{this[_0x4305('0xe')](_0x1e594d);});}['hasActive'](){return this[_0x4305('0xa')][_0x4305('0xc')]>0x0;}['isActive'](_0x342e83){return this[_0x4305('0xa')][_0x4305('0x6')](_0x342e83);}[_0x4305('0x20')](_0x5d6cac,_0x5d8d32=()=>!0x0){const _0x4ab1dd=this[_0x4305('0x12')][_0x4305('0x11')]['get'](_0x3c6d73);if(!this[_0x4305('0x7')][_0x4305('0x6')](_0x5d6cac))throw new _0x4921e7(_0x4305('0x1'),this,{'uiName':_0x5d6cac});this[_0x4305('0x17')](_0x5d6cac)&&this['deactivate'](_0x5d6cac),this[_0x4305('0xa')][_0x4305('0x25')](_0x5d6cac);const _0x4c7d36=new _0x59794a(),_0x267e0c=_0x4ab1dd[_0x4305('0x27')];_0x3e10e2({'source':_0x267e0c,'target':_0x4c7d36,'filter':_0x5d8d32}),this[_0x4305('0x5')][_0x4305('0x1e')](_0x5d6cac,{'collection':_0x4c7d36,'filter':_0x5d8d32});const _0x23dd7f=this[_0x4305('0x7')]['get'](_0x5d6cac);_0x23dd7f['attach'](_0x4c7d36),this[_0x4305('0x15')](_0x23dd7f,_0x4305('0x1b'),(_0x593b14,_0x363410,_0x5758f7,_0x57f490)=>{_0x57f490&&_0x4ab1dd[_0x4305('0x22')](_0x57f490),_0x5758f7&&_0x4ab1dd['_addActiveAnnotation'](_0x5758f7);});}[_0x4305('0x28')](_0x3f02f2){this[_0x4305('0xa')][_0x4305('0x21')](_0x3f02f2);const _0x44d424=this[_0x4305('0x7')][_0x4305('0x14')](_0x3f02f2);_0x44d424[_0x4305('0x24')](),this[_0x4305('0x0')](_0x44d424),this[_0x4305('0x5')][_0x4305('0x14')](_0x3f02f2)[_0x4305('0x2')][_0x4305('0x3')](),this['_uisData']['delete'](_0x3f02f2);}[_0x4305('0x4')](_0x4278fc){const _0x1264c2=this[_0x4305('0x12')][_0x4305('0x11')][_0x4305('0x14')](_0x3c6d73),_0x566c85=Array[_0x4305('0x1d')](_0x1264c2['activeAnnotations'])[0x0]||null;this[_0x4305('0x23')](),this['activate'](_0x4278fc);const _0x58d637=this[_0x4305('0x7')][_0x4305('0x14')](_0x4278fc);_0x58d637['setActiveAnnotation'](_0x566c85),_0x58d637[_0x4305('0xf')]&&_0x566c85&&_0x58d637[_0x4305('0xf')]([_0x566c85]);}[_0x4305('0x23')](){for(const _0x2e4ab9 of this['activeUIs'])this['deactivate'](_0x2e4ab9);}['register'](_0x1cc07d,_0x1b7a67){if(this['_uis'][_0x4305('0x6')](_0x1cc07d))throw new _0x4921e7(_0x4305('0x1c'));if(_0x4305('0x13')!=typeof _0x1b7a67['attach']||_0x4305('0x13')!=typeof _0x1b7a67[_0x4305('0x24')]||'function'!=typeof _0x1b7a67[_0x4305('0x1f')])throw new _0x4921e7(_0x4305('0xd'),null);this[_0x4305('0x7')][_0x4305('0x1e')](_0x1cc07d,_0x1b7a67);}['refilterAnnotations'](){const _0x25d903=this[_0x4305('0x12')][_0x4305('0x11')][_0x4305('0x14')](_0x3c6d73)[_0x4305('0x2')],_0x57f492=new Map(),_0x4814de=Array[_0x4305('0x1d')](this['activeUIs']);for(const _0x1425fa of this[_0x4305('0xa')]){const _0x5c1ede=this['_uisData'][_0x4305('0x14')](_0x1425fa)['collection'];for(const _0x8f5122 of _0x5c1ede)_0x57f492[_0x4305('0x1e')](_0x8f5122,_0x1425fa);}for(const _0x2afee5 of _0x25d903){const _0x51c0ec=_0x57f492[_0x4305('0x14')](_0x2afee5);this[_0x4305('0xe')](_0x2afee5);const _0x180929=_0x4814de[_0x4305('0x1a')](_0x34f02d=>this[_0x4305('0x5')][_0x4305('0x14')](_0x34f02d)[_0x4305('0x26')](_0x2afee5));_0x51c0ec!==_0x180929&&(_0x51c0ec&&this[_0x4305('0x5')][_0x4305('0x14')](_0x51c0ec)[_0x4305('0x2')]['remove'](_0x2afee5),_0x180929&&this[_0x4305('0x5')][_0x4305('0x14')](_0x180929)['collection'][_0x4305('0x25')](_0x2afee5));}}[_0x4305('0x3')](){this[_0x4305('0x23')](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x52119d){const _0x59463d=[];for(const _0x46bfd4 of this[_0x4305('0xa')]){(0x0,this[_0x4305('0x5')][_0x4305('0x14')](_0x46bfd4)['filter'])(_0x52119d)&&_0x59463d[_0x4305('0x18')](_0x46bfd4);}if(_0x59463d['length']>0x1)throw new _0x4921e7(_0x4305('0x19'),null,{'matchedUIs':_0x59463d,'annotationType':_0x52119d[_0x4305('0x29')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc155=['plugins','addSourceCollector','has','keys','from','focusTracker','getByInnerView','element','innerView','model','collection','directChange','update','getOrderedSelectedAnnotations','editorannotations-invalid-source-callback','editing','sort','hasDomSelection','get','containsRange','uiUpdate','_dataCollectors','getRanges','set','pluginName','listenTo','change:range','document','isReadOnly','fire','push','view','range','isCollapsed','annotation','cancel','change:isFocused','selection','_editorAnnotationsData','remove','map','add','EditorAnnotations','refreshSelectedViews','editor','blur','init','refresh'];(function(_0x18c90d,_0xc15590){const _0x1ec429=function(_0x408b96){while(--_0x408b96){_0x18c90d['push'](_0x18c90d['shift']());}};_0x1ec429(++_0xc15590);}(_0xc155,0xcc));const _0x1ec4=function(_0x18c90d,_0xc15590){_0x18c90d=_0x18c90d-0x0;let _0x1ec429=_0xc155[_0x18c90d];return _0x1ec429;};import{Plugin as _0x595d09}from'ckeditor5/src/core';import{CKEditorError as _0x233116}from'ckeditor5/src/utils';import{debounce as _0x40ff51}from'lodash-es';import _0x2954c9 from'./annotations';export default class k extends _0x595d09{static get['requires'](){return[_0x2954c9];}static get[_0x1ec4('0xc')](){return _0x1ec4('0x1e');}constructor(_0xb14f8f){super(_0xb14f8f),this[_0x1ec4('0x9')]=new Set();}[_0x1ec4('0x22')](){const _0xc18a97=this[_0x1ec4('0x20')],_0x36e361=_0xc18a97[_0x1ec4('0x24')][_0x1ec4('0x6')](_0x2954c9),_0x4d20db=_0xc18a97[_0x1ec4('0x2d')][_0x1ec4('0xf')][_0x1ec4('0x19')],_0x24d684=_0x40ff51(()=>this[_0x1ec4('0x1f')](),0xa);_0x4d20db['on'](_0x1ec4('0xe'),(_0x19bd92,_0x3ca9df)=>{_0x3ca9df[_0x1ec4('0x2f')]&&(_0x24d684[_0x1ec4('0x17')](),this[_0x1ec4('0x1f')]());}),this[_0x1ec4('0xd')](_0xc18a97['editing'][_0x1ec4('0x13')][_0x1ec4('0xf')],_0x1ec4('0x18'),(_0x1bbd8b,_0x34f00a,_0x32276e)=>{_0x32276e&&_0x24d684();}),this[_0x1ec4('0xd')](_0xc18a97['ui'][_0x1ec4('0x29')],_0x1ec4('0x18'),(_0x4ac596,_0x5d0794,_0x1abbd2)=>{_0x1abbd2||_0xc18a97[_0x1ec4('0x10')]||this[_0x1ec4('0x11')](_0x1ec4('0x21'),{'isAnnotationTracked':_0x574511=>this['_editorAnnotationsData'][_0x1ec4('0x26')](_0x574511[_0x1ec4('0x2c')])});}),this[_0x1ec4('0xd')](this[_0x1ec4('0x20')]['ui'],_0x1ec4('0x0'),()=>this[_0x1ec4('0x11')](_0x1ec4('0x8')));const _0x29d22b=new Set();this['listenTo'](_0x36e361[_0x1ec4('0x2e')],_0x1ec4('0x1d'),(_0x19c11c,_0x2d5701)=>{for(const _0x3ead9f of this[_0x1ec4('0x1a')][_0x1ec4('0x27')]())if(_0x3ead9f===_0x2d5701[_0x1ec4('0x2c')]){_0xc18a97['ui']['focusTracker'][_0x1ec4('0x1d')](_0x2d5701[_0x1ec4('0x13')][_0x1ec4('0x2b')]),_0x29d22b['add'](_0x2d5701[_0x1ec4('0x13')]);break;}}),this['listenTo'](_0x36e361[_0x1ec4('0x2e')],_0x1ec4('0x1b'),(_0x3805c2,_0xee105b)=>{_0x29d22b[_0x1ec4('0x26')](_0xee105b[_0x1ec4('0x13')])&&(_0xc18a97['ui']['focusTracker'][_0x1ec4('0x1b')](_0xee105b[_0x1ec4('0x13')][_0x1ec4('0x2b')]),_0x29d22b['delete'](_0xee105b[_0x1ec4('0x13')]));});}[_0x1ec4('0x5')](){return this[_0x1ec4('0x20')][_0x1ec4('0x3')][_0x1ec4('0x13')][_0x1ec4('0x5')];}[_0x1ec4('0x25')](_0x2f2a30){if('function'!=typeof _0x2f2a30)throw new _0x233116(_0x1ec4('0x2'));this[_0x1ec4('0x9')][_0x1ec4('0x1d')](_0x2f2a30);}[_0x1ec4('0x1f')](){this['fire'](_0x1ec4('0x23'));}[_0x1ec4('0x1')]({activeAnnotation:_0x28fefa,annotations:_0x564371}){const _0x50a85d=[],_0x93cfc=this[_0x1ec4('0x20')][_0x1ec4('0x2d')][_0x1ec4('0xf')][_0x1ec4('0x19')],_0x1ded9b=Array[_0x1ec4('0x28')](_0x93cfc[_0x1ec4('0xa')]());for(const [_0x469179,_0x4ad0a2]of this[_0x1ec4('0x1a')]){const _0x510681=_0x236b14(_0x4ad0a2),_0xb973d0=_0x564371[_0x1ec4('0x2a')](_0x469179);_0x510681&&_0xb973d0&&_0x50a85d[_0x1ec4('0x12')]({'annotation':_0xb973d0,'range':_0x510681});}function _0x236b14(_0x9bc714){for(const _0x105437 of _0x9bc714)for(const _0x35631f of _0x1ded9b)if(_0x105437[_0x1ec4('0x7')](_0x35631f,!_0x93cfc[_0x1ec4('0x15')]))return _0x105437;return null;}return _0x50a85d[_0x1ec4('0x4')]((_0x251f4b,_0x325377)=>{const _0xc82b9e=_0x251f4b[_0x1ec4('0x14')],_0x23ce45=_0x325377[_0x1ec4('0x14')];if(!_0xc82b9e['isEqual'](_0x23ce45)){if(_0xc82b9e[_0x1ec4('0x7')](_0x23ce45,!0x0))return 0x1;if(_0x23ce45[_0x1ec4('0x7')](_0xc82b9e,!0x0))return-0x1;}return _0x251f4b[_0x1ec4('0x16')]==_0x28fefa?-0x1:_0x325377[_0x1ec4('0x16')]==_0x28fefa?0x1:0x0;})[_0x1ec4('0x1c')](_0x466d96=>_0x466d96[_0x1ec4('0x16')]);}get[_0x1ec4('0x1a')](){const _0x140a72=new Map();for(const _0x1d7ee5 of Array[_0x1ec4('0x28')](this[_0x1ec4('0x9')]))for(const [_0x38441e,_0x150fe4]of _0x1d7ee5())_0x140a72[_0x1ec4('0xb')](_0x38441e,_0x150fe4);return _0x140a72;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3310=['has','isAttached','switchTo','clear','change:height','hasActive','set','getByView','targetRect','_addAnnotationToBalloon','getSelection','inlineannotations-not-allowed-with-context','annotations','updatePosition','isActive','focus','_setSelectedAnnotations','attach','delete','activeAnnotation','isFocused','_removeAnnotationFromBalloon','listenTo','focusTracker','mousedown','inline','stopListening','add','inlineannotations-attach-already-attached','_manuallyClosed','afterInit','bind','init','detach','hasView','selection','context','_balloon','includes','target','_selectedAnnotations','getRangeAt','Esc','blur','plugins','register','update','_addedAnnotations','visibleView','document','editing','remove','showStack','editableElement','setActiveAnnotation','get','change:isFocused','inlineannotations-detach-not-attached','view','editor','keystrokes'];(function(_0x562da1,_0x331039){const _0x596b1b=function(_0x46ee05){while(--_0x46ee05){_0x562da1['push'](_0x562da1['shift']());}};_0x596b1b(++_0x331039);}(_0x3310,0x1ce));const _0x596b=function(_0x562da1,_0x331039){_0x562da1=_0x562da1-0x0;let _0x596b1b=_0x3310[_0x562da1];return _0x596b1b;};import{Plugin as _0x1fe802}from'ckeditor5/src/core';import _0x7584d1 from'./annotationsuis';import _0x53ad47 from'./editorannotations';import{ContextualBalloon as _0x5a0334}from'ckeditor5/src/ui';import{MouseObserver as _0x3ec191}from'ckeditor5/src/engine';import{CKEditorError as _0x358015}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x1fe802{static get['requires'](){return[_0x53ad47,_0x5a0334,_0x7584d1];}static get['pluginName'](){return'InlineAnnotations';}constructor(_0x93aa10){super(_0x93aa10),_0x93aa10[_0x596b('0xf')][_0x596b('0x17')]['addObserver'](_0x3ec191),this[_0x596b('0x1b')]=!0x1,this[_0x596b('0x20')](_0x596b('0x2d'),null),this['annotations']=null,this[_0x596b('0x37')]=new Set(),this[_0x596b('0x2')]=_0x93aa10[_0x596b('0x9')][_0x596b('0x14')](_0x5a0334),this['_addedAnnotations']=new Set(),this[_0x596b('0x5')]=[];}[_0x596b('0x3a')](){const _0x3f38ac=this['editor'][_0x596b('0x9')][_0x596b('0x14')](_0x7584d1);_0x3f38ac[_0x596b('0x1')]===this[_0x596b('0x18')]&&(_0x3f38ac[_0x596b('0xa')](_0x596b('0x33'),this),this['editor'][_0x596b('0x19')][_0x596b('0x20')](_0x596b('0x7'),(_0x391a9e,_0x2c8c09)=>{const _0x22b2d7=this[_0x596b('0x2')];if(this[_0x596b('0x1b')]&&_0x22b2d7[_0x596b('0xd')]){const _0xace132=this[_0x596b('0x26')][_0x596b('0x21')](_0x22b2d7['visibleView']);this[_0x596b('0x37')]['add'](_0xace132),this['_removeAnnotationFromBalloon'](_0xace132),_0x2c8c09();}}));}[_0x596b('0x38')](){const _0x322f10=this[_0x596b('0x18')][_0x596b('0x9')][_0x596b('0x14')](_0x7584d1);_0x322f10[_0x596b('0x1')]===this[_0x596b('0x18')]&&(_0x322f10[_0x596b('0x1f')]()||_0x322f10[_0x596b('0x1c')](_0x596b('0x33')));}['setActiveAnnotation'](_0x3b96ca){_0x3b96ca!==this[_0x596b('0x2d')]&&(this['activeAnnotation']&&(this[_0x596b('0x2d')]['isActive']=!0x1),_0x3b96ca&&this[_0x596b('0x18')]['ui'][_0x596b('0x31')]['isFocused']&&(this[_0x596b('0x23')](_0x3b96ca,!0x0),_0x3b96ca[_0x596b('0x28')]=!0x0),_0x3b96ca||this[_0x596b('0x2a')]([]),this['activeAnnotation']=_0x3b96ca);}[_0x596b('0x2b')](_0x566d47){this[_0x596b('0x26')]=_0x566d47;const _0xdc5b69=this[_0x596b('0x18')][_0x596b('0x9')]['get'](_0x7584d1),_0x2ee02a=this['_balloon'];if(this[_0x596b('0x1b')])throw new _0x358015(_0x596b('0x36'),this);if(_0xdc5b69[_0x596b('0x1')]!==this[_0x596b('0x18')])throw new _0x358015(_0x596b('0x25'),this);const _0x360554=this[_0x596b('0x18')]['plugins'][_0x596b('0x14')]('EditorAnnotations');this['listenTo'](_0x360554,'refresh',function(){const _0x274ea2=_0x360554['getOrderedSelectedAnnotations']({'activeAnnotation':this['activeAnnotation'],'annotations':this['annotations']});this['_setSelectedAnnotations'](_0x274ea2),this[_0x596b('0x13')](_0x274ea2[0x0]||null);}[_0x596b('0x39')](this)),this['listenTo'](_0x360554,_0x596b('0x8'),(_0x6ea4f5,{isAnnotationTracked:_0x4ffb10})=>{this[_0x596b('0x2d')]&&_0x4ffb10(this[_0x596b('0x2d')])&&(this[_0x596b('0x2a')]([]),this[_0x596b('0x13')](null));}),this['listenTo'](this[_0x596b('0x18')]['ui'][_0x596b('0x31')],_0x596b('0x15'),(_0x25f5b4,_0x538393,_0x15b1bf)=>{_0x15b1bf||this['setActiveAnnotation'](null);}),this['listenTo'](_0x566d47,'remove',(_0x1c0a5e,_0x1d0f93)=>{this[_0x596b('0x2f')](_0x1d0f93),_0x1d0f93===this[_0x596b('0x2d')]&&this[_0x596b('0x13')](null);}),this['listenTo'](_0x2ee02a,'change:visibleView',(_0x3fc138,_0x191a75,_0x25bf5f,_0x5c7951)=>{if(_0x5c7951&&this[_0x596b('0x34')](_0x5c7951),!_0x25bf5f||!_0x566d47[_0x596b('0x21')](_0x25bf5f))return;const _0x4ccaa8=_0x566d47[_0x596b('0x21')](_0x25bf5f);this[_0x596b('0x30')](_0x25bf5f,_0x596b('0x1e'),()=>{_0x2ee02a[_0x596b('0x27')]();}),this['listenTo'](_0x25bf5f,'Esc',()=>{this['_manuallyClosed']['add'](_0x4ccaa8),this['_removeAnnotationFromBalloon'](_0x4ccaa8),this['editor'][_0x596b('0xf')][_0x596b('0x17')][_0x596b('0x29')]();}),this[_0x596b('0x2d')]!==_0x4ccaa8&&this[_0x596b('0x13')](_0x4ccaa8);}),this['listenTo'](this[_0x596b('0x18')]['ui'],_0x596b('0xb'),()=>{_0x2ee02a['visibleView']&&(_0x566d47['getByView'](_0x2ee02a[_0x596b('0xd')])&&_0x2ee02a[_0x596b('0x27')]());}),this[_0x596b('0x30')](this[_0x596b('0x18')][_0x596b('0xf')][_0x596b('0x17')][_0x596b('0xe')],_0x596b('0x32'),()=>{this['_manuallyClosed'][_0x596b('0x1d')]();}),this[_0x596b('0x18')][_0x596b('0xf')][_0x596b('0x17')][_0x596b('0xe')][_0x596b('0x0')][_0x596b('0x12')]&&this[_0x596b('0x18')][_0x596b('0xf')][_0x596b('0x17')][_0x596b('0x29')](),this[_0x596b('0x1b')]=!0x0;}[_0x596b('0x3b')](){if(!this['isAttached'])throw new _0x358015(_0x596b('0x16'),this);this[_0x596b('0x13')](null);for(const _0x27a03b of this[_0x596b('0xc')])this['_removeAnnotationFromBalloon'](_0x27a03b);this[_0x596b('0x34')](),this['isAttached']=!0x1,this[_0x596b('0x26')]=null;}['destroy'](){this[_0x596b('0x1b')]&&this['detach']();}[_0x596b('0x2a')](_0x297975){const _0x2c6ca2=this[_0x596b('0x5')];for(const _0x3c1e91 of _0x2c6ca2)_0x297975[_0x596b('0x3')](_0x3c1e91)||this[_0x596b('0x37')][_0x596b('0x2c')](_0x3c1e91);for(const _0x7d37eb of this[_0x596b('0x26')])_0x297975['includes'](_0x7d37eb)||this['_removeAnnotationFromBalloon'](_0x7d37eb);if(this[_0x596b('0x18')]['ui'][_0x596b('0x31')][_0x596b('0x2e')])for(const _0x5f2bec of _0x297975)this[_0x596b('0x23')](_0x5f2bec);this[_0x596b('0x5')]=_0x297975;}[_0x596b('0x23')](_0x1edfdb,_0x1345b3){this[_0x596b('0x37')][_0x596b('0x1a')](_0x1edfdb)||(this['_addedAnnotations']['has'](_0x1edfdb)||this[_0x596b('0x2')][_0x596b('0x3c')](_0x1edfdb[_0x596b('0x17')])||(this[_0x596b('0xc')][_0x596b('0x35')](_0x1edfdb),this['_balloon'][_0x596b('0x35')]({'stackId':_0x1edfdb[_0x596b('0x17')]['id'],'view':_0x1edfdb['view'],'position':{'target':()=>_0x1edfdb[_0x596b('0x4')]||_0x1edfdb[_0x596b('0x22')]||document[_0x596b('0x24')]()[_0x596b('0x6')](0x0)}})),_0x1345b3&&this[_0x596b('0x2')][_0x596b('0x11')](_0x1edfdb[_0x596b('0x17')]['id']));}[_0x596b('0x2f')](_0x4d3212){this[_0x596b('0xc')][_0x596b('0x1a')](_0x4d3212)&&this['_balloon'][_0x596b('0x3c')](_0x4d3212[_0x596b('0x17')])&&(this[_0x596b('0xc')][_0x596b('0x2c')](_0x4d3212),this['_balloon'][_0x596b('0x10')](_0x4d3212['view']));}}
|