@ckeditor/ckeditor5-comments 34.1.0 → 35.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/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/es.js +1 -1
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -1
- package/build/translations/he.js +1 -0
- package/build/translations/it.js +1 -1
- 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-br.js +1 -1
- 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/es.po +2 -1
- package/lang/translations/fi.po +67 -0
- package/lang/translations/fr.po +2 -1
- package/lang/translations/he.po +69 -0
- package/lang/translations/it.po +2 -1
- 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-br.po +2 -1
- 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
- package/theme/annotation-inline.css +0 -21
|
@@ -0,0 +1,69 @@
|
|
|
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: Lithuanian (https://www.transifex.com/ckeditor/teams/11143/lt/)\n"
|
|
16
|
+
"Language: lt\n"
|
|
17
|
+
"Plural-Forms: nplurals=4; plural=(n % 10 == 1 && (n % 100 > 19 || n % 100 < 11) ? 0 : (n % 10 >= 2 && n % 10 <=9) && (n % 100 > 19 || n % 100 < 11) ? 1 : n % 1 != 0 ? 2: 3);\n"
|
|
18
|
+
|
|
19
|
+
msgctxt "The label for the comment editor."
|
|
20
|
+
msgid "Comment editor"
|
|
21
|
+
msgstr "Komentaro redaktorius"
|
|
22
|
+
|
|
23
|
+
msgctxt "The label for the number of comments."
|
|
24
|
+
msgid "NUMBER_OF_COMMENTS"
|
|
25
|
+
msgid_plural "%0 Comments"
|
|
26
|
+
msgstr[0] "%0 komentaras"
|
|
27
|
+
msgstr[1] "%0 komentaras"
|
|
28
|
+
msgstr[2] "%0 komentaras"
|
|
29
|
+
msgstr[3] "%0 komentaras"
|
|
30
|
+
|
|
31
|
+
msgctxt "The alert displayed for a comment that is too long."
|
|
32
|
+
msgid "TOO_LONG_COMMENT_ALERT"
|
|
33
|
+
msgstr "Komentaro turinys per ilgas. Jūsų komentaras turi %0 simbolių, bet limitas yra %1 simboliai."
|
|
34
|
+
|
|
35
|
+
msgctxt "The placeholder for the reply field."
|
|
36
|
+
msgid "Reply..."
|
|
37
|
+
msgstr "Atsakyti..."
|
|
38
|
+
|
|
39
|
+
msgctxt "The placeholder for the new commend field."
|
|
40
|
+
msgid "Write a comment..."
|
|
41
|
+
msgstr "Rašyti komentarą..."
|
|
42
|
+
|
|
43
|
+
msgctxt "The label for the button that enables editing a comment."
|
|
44
|
+
msgid "Edit"
|
|
45
|
+
msgstr "Redaguoti"
|
|
46
|
+
|
|
47
|
+
msgctxt "The label for the button that deletes a comment."
|
|
48
|
+
msgid "Remove"
|
|
49
|
+
msgstr "Pašalinti"
|
|
50
|
+
|
|
51
|
+
msgctxt "The label for for the button that submits a comment."
|
|
52
|
+
msgid "Submit"
|
|
53
|
+
msgstr "Pateikti"
|
|
54
|
+
|
|
55
|
+
msgctxt "The confirmation message shown after pressing the delete comment button."
|
|
56
|
+
msgid "Delete comment?"
|
|
57
|
+
msgstr "Ištrinti komentarą?"
|
|
58
|
+
|
|
59
|
+
msgctxt "The confirmation message shown after pressing the delete comment thread button."
|
|
60
|
+
msgid "Delete comment thread?"
|
|
61
|
+
msgstr "Ištrinti komentarų eilę?"
|
|
62
|
+
|
|
63
|
+
msgctxt "The tooltip for the comment toolbar button."
|
|
64
|
+
msgid "Comment"
|
|
65
|
+
msgstr "Komentuoti"
|
|
66
|
+
|
|
67
|
+
msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
|
|
68
|
+
msgid "PENDING_ACTION_COMMENT_THREAD"
|
|
69
|
+
msgstr "Pakeitimai neišsaugoti komentarų eilėje"
|
|
@@ -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: Malay (https://www.transifex.com/ckeditor/teams/11143/ms/)\n"
|
|
16
|
+
"Language: ms\n"
|
|
17
|
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
|
|
19
|
+
msgctxt "The label for the comment editor."
|
|
20
|
+
msgid "Comment editor"
|
|
21
|
+
msgstr "Penyunting komen"
|
|
22
|
+
|
|
23
|
+
msgctxt "The label for the number of comments."
|
|
24
|
+
msgid "NUMBER_OF_COMMENTS"
|
|
25
|
+
msgid_plural "%0 Comments"
|
|
26
|
+
msgstr[0] "%0 Komen"
|
|
27
|
+
|
|
28
|
+
msgctxt "The alert displayed for a comment that is too long."
|
|
29
|
+
msgid "TOO_LONG_COMMENT_ALERT"
|
|
30
|
+
msgstr "Komen terlalu panjang. Komen anda mempunyai %0 aksara namun hadnya ialah %1 aksara."
|
|
31
|
+
|
|
32
|
+
msgctxt "The placeholder for the reply field."
|
|
33
|
+
msgid "Reply..."
|
|
34
|
+
msgstr "Balasan..."
|
|
35
|
+
|
|
36
|
+
msgctxt "The placeholder for the new commend field."
|
|
37
|
+
msgid "Write a comment..."
|
|
38
|
+
msgstr "Tulis komen..."
|
|
39
|
+
|
|
40
|
+
msgctxt "The label for the button that enables editing a comment."
|
|
41
|
+
msgid "Edit"
|
|
42
|
+
msgstr "Edit"
|
|
43
|
+
|
|
44
|
+
msgctxt "The label for the button that deletes a comment."
|
|
45
|
+
msgid "Remove"
|
|
46
|
+
msgstr "Buang"
|
|
47
|
+
|
|
48
|
+
msgctxt "The label for for the button that submits a comment."
|
|
49
|
+
msgid "Submit"
|
|
50
|
+
msgstr "Hantar"
|
|
51
|
+
|
|
52
|
+
msgctxt "The confirmation message shown after pressing the delete comment button."
|
|
53
|
+
msgid "Delete comment?"
|
|
54
|
+
msgstr "Padam komen?"
|
|
55
|
+
|
|
56
|
+
msgctxt "The confirmation message shown after pressing the delete comment thread button."
|
|
57
|
+
msgid "Delete comment thread?"
|
|
58
|
+
msgstr "Padam jalur komen?"
|
|
59
|
+
|
|
60
|
+
msgctxt "The tooltip for the comment toolbar button."
|
|
61
|
+
msgid "Comment"
|
|
62
|
+
msgstr "Komen"
|
|
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 "Perubahan yang tidak disimpan dalam jalur komen."
|
|
@@ -14,7 +14,7 @@ msgid ""
|
|
|
14
14
|
msgstr ""
|
|
15
15
|
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/ckeditor/teams/11143/pt_BR/)\n"
|
|
16
16
|
"Language: pt_BR\n"
|
|
17
|
-
"Plural-Forms: nplurals=
|
|
17
|
+
"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
|
|
18
18
|
|
|
19
19
|
msgctxt "The label for the comment editor."
|
|
20
20
|
msgid "Comment editor"
|
|
@@ -25,6 +25,7 @@ msgid "NUMBER_OF_COMMENTS"
|
|
|
25
25
|
msgid_plural "%0 Comments"
|
|
26
26
|
msgstr[0] "%0 Comentários"
|
|
27
27
|
msgstr[1] "%0 Comentários"
|
|
28
|
+
msgstr[2] "%0 Comentários"
|
|
28
29
|
|
|
29
30
|
msgctxt "The alert displayed for a comment that is too long."
|
|
30
31
|
msgid "TOO_LONG_COMMENT_ALERT"
|
|
@@ -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.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/)",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
],
|
|
32
32
|
"main": "src/index.js",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"ckeditor5": "^
|
|
35
|
-
"ckeditor5-collaboration": "^
|
|
34
|
+
"ckeditor5": "^35.1.0",
|
|
35
|
+
"ckeditor5-collaboration": "^35.1.0",
|
|
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 _0x4d52=['element','_type','mainView','targetRect','offsetParent','remove','function','_assertCorrectTarget','add','annotation-invalid-target','view','isActive','stopListening','getClientRects','item','focusableElements','clear','updateTargetRect','focusTracker','target','destroy','_id','_isTargetElementVisible','_target','refreshVisibility','type','isVisible'];(function(_0x23d341,_0x4d52c6){const _0x3e1556=function(_0x585ebc){while(--_0x585ebc){_0x23d341['push'](_0x23d341['shift']());}};_0x3e1556(++_0x4d52c6);}(_0x4d52,0xfa));const _0x3e15=function(_0x23d341,_0x4d52c6){_0x23d341=_0x23d341-0x0;let _0x3e1556=_0x4d52[_0x23d341];return _0x3e1556;};import{CKEditorError as _0x298f12,Rect as _0x4c2b33,Collection as _0x4acdda,mix as _0x24f693,ObservableMixin as _0x4af4ec}from'ckeditor5/src/utils';import{isElement as _0x1bb638}from'lodash-es';export default class p{constructor({view:_0x559a53,target:_0x1852d2,type:_0x5bd876,isVisible:_0xa42aa6=!0x0}){this[_0x3e15('0x3')]=_0x559a53,this['view'][_0x3e15('0x14')]||this[_0x3e15('0x3')]['render'](),this[_0x3e15('0x15')]=_0x5bd876,this[_0x3e15('0x10')]=_0x1852d2,this[_0x3e15('0x0')](),this['focusableElements']=new _0x4acdda([this[_0x3e15('0x3')]['element']],{'idProperty':_0x3e15('0xe')}),this[_0x3e15('0x8')]['on'](_0x3e15('0x1'),(_0x4d7a14,_0x1e0db3)=>{this[_0x3e15('0x3')][_0x3e15('0xb')][_0x3e15('0x1')](_0x1e0db3);}),this[_0x3e15('0x8')]['on'](_0x3e15('0x19'),(_0x333421,_0xb4356)=>{this[_0x3e15('0x3')][_0x3e15('0xb')]['remove'](_0xb4356);}),this['set'](_0x3e15('0x13'),_0xa42aa6);}get[_0x3e15('0x12')](){return _0x3e15('0x1a')==typeof this['_type']?this[_0x3e15('0x15')]():this[_0x3e15('0x15')];}get['innerView'](){return this['view'][_0x3e15('0x16')];}get['target'](){return'function'==typeof this[_0x3e15('0x10')]?this['_target']():this[_0x3e15('0x10')];}get[_0x3e15('0x17')](){const _0x5700a9=this['target'];return this['_assertCorrectTarget'](),null!==_0x5700a9&&this[_0x3e15('0xf')]()?new _0x4c2b33(_0x5700a9):null;}get[_0x3e15('0x4')](){return this[_0x3e15('0x3')][_0x3e15('0x4')];}set['isActive'](_0x214384){this['view'][_0x3e15('0x4')]=_0x214384,this['view']['mainView'][_0x3e15('0x4')]=_0x214384;}[_0x3e15('0xa')](){this[_0x3e15('0x3')][_0x3e15('0x17')]=this['targetRect'];}[_0x3e15('0xd')](){this['focusableElements'][_0x3e15('0x5')](),this['focusableElements'][_0x3e15('0x9')](),this['stopListening']();}[_0x3e15('0x11')](){this[_0x3e15('0x13')]=this['_isTargetElementVisible']();}[_0x3e15('0xf')](){const _0x1eca43=this['target'];if(_0x1bb638(_0x1eca43)){const _0x176e48=_0x1eca43[_0x3e15('0x6')]()[_0x3e15('0x7')](0x0),_0x5b6118=_0x1eca43[_0x3e15('0x18')];if(!_0x176e48||!_0x5b6118)return!0x1;}return!0x0;}[_0x3e15('0x0')](){const _0x53bdc7=this[_0x3e15('0xc')];if(!(null===_0x53bdc7||_0x53bdc7 instanceof _0x4c2b33||_0x1bb638(_0x53bdc7)))throw new _0x298f12(_0x3e15('0x2'),null,{'target':_0x53bdc7});}}_0x24f693(p,_0x4af4ec);
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53c3=['add','remove','focusTracker','delete','clear','annotationcollection-not-existing-item','destroy','_getOrderInContent','sort','isFocused','fire','blur','has','refreshPositioning','_innerViewToAnnotation','_viewToAnnotation','length','getIndex','focusableElements','change:isFocused','top','innerView','stopListening','_items','getByView','listenTo','_focusTracker','set','getByInnerView','left','targetRect','updateTargetRect','_sort','view','focus','from'];(function(_0x2124a3,_0x53c3bc){const _0x3c32b3=function(_0x4ac6e1){while(--_0x4ac6e1){_0x2124a3['push'](_0x2124a3['shift']());}};_0x3c32b3(++_0x53c3bc);}(_0x53c3,0xef));const _0x3c32=function(_0x2124a3,_0x53c3bc){_0x2124a3=_0x2124a3-0x0;let _0x3c32b3=_0x53c3[_0x2124a3];return _0x3c32b3;};import{CKEditorError as _0x3556f4,Collection as _0x21ae8b,FocusTracker as _0x5eabb4}from'ckeditor5/src/utils';export default class x extends _0x21ae8b{constructor(_0xa50ee2=[]){super(),this[_0x3c32('0x1b')]=new Map(),this['_viewToAnnotation']=new Map(),this[_0x3c32('0x3')]=new _0x5eabb4(),this[_0x3c32('0x3')]['on'](_0x3c32('0x20'),(_0x5987a1,_0x16a05f,_0x2b60c6)=>{_0x2b60c6||this[_0x3c32('0x17')](_0x3c32('0x18'));});for(const _0x588796 of _0xa50ee2)this[_0x3c32('0xd')](_0x588796);}get[_0x3c32('0x16')](){return this[_0x3c32('0x3')]['isFocused'];}[_0x3c32('0xd')](_0x1abf5e){if(this[_0x3c32('0x19')](_0x1abf5e))throw new _0x3556f4('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x1abf5e[_0x3c32('0x22')],_0x1abf5e),this[_0x3c32('0x1c')][_0x3c32('0x4')](_0x1abf5e[_0x3c32('0xa')],_0x1abf5e);for(const _0x3e0fd0 of _0x1abf5e[_0x3c32('0x1f')])this[_0x3c32('0x3')]['add'](_0x3e0fd0);this[_0x3c32('0x2')](_0x1abf5e[_0x3c32('0x1f')],'add',(_0xdb09ea,_0x3361ce)=>{this[_0x3c32('0x3')]['add'](_0x3361ce);}),this[_0x3c32('0x2')](_0x1abf5e['focusableElements'],_0x3c32('0xe'),(_0x517ce4,_0x4d304f)=>{this['_focusTracker']['remove'](_0x4d304f);}),this[_0x3c32('0x2')](_0x1abf5e[_0x3c32('0xa')][_0x3c32('0xf')],_0x3c32('0x20'),(_0x15a754,_0x1cee2f,_0x4b6f82)=>{_0x4b6f82&&this[_0x3c32('0x17')](_0x3c32('0xb'),_0x1abf5e);});const _0x396ad6=this['_getOrderInContent'](_0x1abf5e);super[_0x3c32('0xd')](_0x1abf5e,_0x396ad6),_0x1abf5e[_0x3c32('0x8')]();}[_0x3c32('0xe')](_0x304311){if(!this[_0x3c32('0x19')](_0x304311))throw new _0x3556f4(_0x3c32('0x12'),null);this[_0x3c32('0x23')](_0x304311['view'][_0x3c32('0xf')]),this[_0x3c32('0x23')](_0x304311[_0x3c32('0x1f')]);for(const _0x817919 of _0x304311[_0x3c32('0x1f')])this[_0x3c32('0x3')][_0x3c32('0xe')](_0x817919);this[_0x3c32('0x1c')][_0x3c32('0x10')](_0x304311[_0x3c32('0xa')]),this[_0x3c32('0x1b')][_0x3c32('0x10')](_0x304311[_0x3c32('0x22')]),super[_0x3c32('0xe')](_0x304311);}[_0x3c32('0x5')](_0x22bb10){return this[_0x3c32('0x1b')]['get'](_0x22bb10);}[_0x3c32('0x1')](_0x54785e){return this[_0x3c32('0x1c')]['get'](_0x54785e);}[_0x3c32('0x13')](){super['clear'](),this[_0x3c32('0x23')](),this[_0x3c32('0x1b')][_0x3c32('0x11')](),this['_viewToAnnotation']['clear'](),this[_0x3c32('0x3')]['destroy']();}[_0x3c32('0x1a')](){for(const _0x2e187a of this)_0x2e187a[_0x3c32('0x8')]();this[_0x3c32('0x9')]();}[_0x3c32('0x9')](){const _0x3fc7ec=Array[_0x3c32('0xc')](this)[_0x3c32('0x15')]((_0x50532b,_0x17fcc3)=>y(_0x50532b['targetRect'],_0x17fcc3[_0x3c32('0x7')]));for(let _0x4f57f9=_0x3fc7ec[_0x3c32('0x1d')]-0x1;_0x4f57f9>0x0;_0x4f57f9--){const _0x2de244=_0x3fc7ec[_0x4f57f9];_0x4f57f9!==this[_0x3c32('0x1e')](_0x2de244)&&(this[_0x3c32('0xe')](_0x2de244),this[_0x3c32('0xd')](_0x2de244,_0x4f57f9));}}[_0x3c32('0x14')](_0x5990e6){let _0x576643=0x0;const _0x5ae50e=_0x5990e6[_0x3c32('0x7')];if(!_0x5ae50e)return this[_0x3c32('0x0')][_0x3c32('0x1d')];for(const _0x15e81e of this){const _0x4ac807=_0x15e81e['targetRect'];if(_0x4ac807){if(y(_0x5ae50e,_0x4ac807)<0x0)return _0x576643;_0x576643++;}}return _0x576643;}}export function bindAnnotationCollections({source:_0x156155,target:_0x4ef501,filter:_0x4b6f0b}){for(const _0x1be57b of _0x156155)_0x4b6f0b(_0x1be57b)&&_0x4ef501['add'](_0x1be57b);_0x4ef501['listenTo'](_0x156155,_0x3c32('0xd'),(_0x94530d,_0x227500)=>{_0x4b6f0b(_0x227500)&&_0x4ef501[_0x3c32('0xd')](_0x227500);}),_0x4ef501[_0x3c32('0x2')](_0x156155,_0x3c32('0xe'),(_0x18add5,_0x4c5adc)=>{_0x4ef501['has'](_0x4c5adc)&&_0x4ef501[_0x3c32('0xe')](_0x4c5adc);});}function y(_0x417097,_0x246efd){if(null===_0x417097&&null===_0x246efd)return 0x0;if(null===_0x417097)return-0x1;if(null===_0x246efd)return 0x1;const _0x1defef=_0x417097[_0x3c32('0x21')]-_0x246efd[_0x3c32('0x21')];return 0x0==_0x1defef?_0x417097[_0x3c32('0x6')]-_0x246efd[_0x3c32('0x6')]:_0x1defef;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x293d=['destroy','createAnnotation','delete','deactivateAll','source','fire','has','refreshPositioning','add','_bindAnnotationsToVisibleAnnotations','activate','refreshVisibility','set','remove','change:isVisible','createAnnotationView','stopListening','collection','activeAnnotations','listenTo','getByInnerView','isVisible','_deactivateAllAnnotations','Annotations','_visibleAnnotations','pluginName'];(function(_0xecd5a7,_0x293daa){const _0x5d1311=function(_0x59a5ce){while(--_0x59a5ce){_0xecd5a7['push'](_0xecd5a7['shift']());}};_0x5d1311(++_0x293daa);}(_0x293d,0xa2));const _0x5d13=function(_0xecd5a7,_0x293daa){_0xecd5a7=_0xecd5a7-0x0;let _0x5d1311=_0x293d[_0xecd5a7];return _0x5d1311;};import{ContextPlugin as _0x2037f1}from'ckeditor5/src/core';import _0x886db5 from'./annotation';import _0x505e66 from'./annotationcollection';import _0x2b8e49 from'./view/annotationview';export default class V extends _0x2037f1{static get[_0x5d13('0x13')](){return _0x5d13('0x11');}constructor(_0x4f5970){super(_0x4f5970),this[_0x5d13('0xb')]=new _0x505e66(),this[_0x5d13('0x12')]=new _0x505e66(),this[_0x5d13('0x6')](_0x5d13('0xc'),new Set()),this[_0x5d13('0x3')]();}[_0x5d13('0x2')](_0x480df1){this['collection'][_0x5d13('0x2')](_0x480df1);}[_0x5d13('0x7')](_0x3757bb){this[_0x5d13('0xb')][_0x5d13('0x7')](_0x3757bb),_0x3757bb['destroy']();}['refreshVisibility'](){for(const _0x492a15 of this[_0x5d13('0xb')])_0x492a15[_0x5d13('0x5')]();}[_0x5d13('0x1')](){this[_0x5d13('0x12')][_0x5d13('0x1')]();}[_0x5d13('0xe')](_0x17e28a){return this['collection'][_0x5d13('0xe')](_0x17e28a);}[_0x5d13('0x17')](){this[_0x5d13('0x19')](_0x5d13('0x10'));}[_0x5d13('0x14')](){for(const _0x367aad of this[_0x5d13('0xb')])_0x367aad[_0x5d13('0x14')]();this['_visibleAnnotations'][_0x5d13('0x14')](),this[_0x5d13('0xb')][_0x5d13('0x14')](),super['destroy']();}[_0x5d13('0x4')](_0x1654bb){this[_0x5d13('0x19')]('_activateAnnotation',_0x1654bb);}[_0x5d13('0x15')](_0x44aa49){return new _0x886db5(_0x44aa49);}[_0x5d13('0x9')](_0x194d0e,_0x188937){return new _0x2b8e49(_0x194d0e,_0x188937);}['_addActiveAnnotation'](_0x155182){const _0x208456=new Set(this[_0x5d13('0xc')]);_0x208456[_0x5d13('0x2')](_0x155182),this[_0x5d13('0xc')]=_0x208456;}['_removeActiveAnnotation'](_0x32564f){const _0x5ca4f0=new Set(this[_0x5d13('0xc')]);_0x5ca4f0[_0x5d13('0x16')](_0x32564f),this[_0x5d13('0xc')]=_0x5ca4f0;}[_0x5d13('0x3')](){const _0x10d304=this[_0x5d13('0xb')],_0x49b6a9=this[_0x5d13('0x12')];function _0x334e8e(_0x356414){const _0x5359d0=_0x356414[_0x5d13('0x18')];_0x5359d0[_0x5d13('0xf')]&&!_0x49b6a9['has'](_0x5359d0)?_0x49b6a9[_0x5d13('0x2')](_0x5359d0):!_0x5359d0['isVisible']&&_0x49b6a9[_0x5d13('0x0')](_0x5359d0)&&_0x49b6a9[_0x5d13('0x7')](_0x5359d0);}this[_0x5d13('0xd')](_0x10d304,_0x5d13('0x2'),(_0x3631fb,_0x5e2724)=>{_0x5e2724['isVisible']&&_0x49b6a9[_0x5d13('0x2')](_0x5e2724),this[_0x5d13('0xd')](_0x5e2724,_0x5d13('0x8'),_0x334e8e);}),this['listenTo'](_0x10d304,'remove',(_0x5012d3,_0x2873dd)=>{_0x49b6a9['has'](_0x2873dd)&&_0x49b6a9[_0x5d13('0x7')](_0x2873dd),this[_0x5d13('0xa')](_0x2873dd,_0x5d13('0x8'),_0x334e8e);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ac1=['_setSelectedAnnotations','_addActiveAnnotation','detach','init','context','activate','setActiveAnnotation','type','requires','plugins','from','find','function','pluginName','has','switchTo','annotationsuis-register-already-registered','_uisData','attach','refilterAnnotations','deactivate','set','annotationsuis-annotation-mismatch','AnnotationsUIs','add','stopListening','get','listenTo','collection','annotationsuis-activate-missing-ui','_uis','destroy','_visibleAnnotations','activeUIs','push','delete','deactivateAll','_activateAnnotation','hasActive','_assertAnnotationDoesNotBelongToMultipleUIs','activeAnnotations','length','isActive','register','filter','_deactivateAllAnnotations','remove','change:activeAnnotation'];(function(_0x32cc34,_0x2ac168){const _0xbadec2=function(_0x1ae306){while(--_0x1ae306){_0x32cc34['push'](_0x32cc34['shift']());}};_0xbadec2(++_0x2ac168);}(_0x2ac1,0x139));const _0xbade=function(_0x32cc34,_0x2ac168){_0x32cc34=_0x32cc34-0x0;let _0xbadec2=_0x2ac1[_0x32cc34];return _0xbadec2;};import{ContextPlugin as _0x928b54}from'ckeditor5/src/core';import{CKEditorError as _0x248d00}from'ckeditor5/src/utils';import _0x1b6ba6,{bindAnnotationCollections as _0x5eab34}from'./annotationcollection';import _0x478de1 from'./annotations';export default class I extends _0x928b54{static get[_0xbade('0x1f')](){return[_0x478de1];}static get[_0xbade('0x24')](){return _0xbade('0x2e');}constructor(_0x73be77){super(_0x73be77),this[_0xbade('0x8')]=new Set(),this[_0xbade('0x5')]=new Map(),this[_0xbade('0x28')]=new Map();}[_0xbade('0x1a')](){const _0x1a76dd=this[_0xbade('0x1b')]['plugins']['get'](_0x478de1);this['listenTo'](_0x1a76dd,_0xbade('0xc'),(_0x271e7c,_0x1d5fae)=>{for(const _0x104775 of this[_0xbade('0x8')]){const _0x51f774=this[_0xbade('0x5')]['get'](_0x104775);(0x0,this[_0xbade('0x28')][_0xbade('0x1')](_0x104775)['filter'])(_0x1d5fae)&&_0x51f774[_0xbade('0x1d')](_0x1d5fae);}}),this[_0xbade('0x2')](_0x1a76dd,_0xbade('0x14'),()=>{for(const _0x407590 of this[_0xbade('0x8')]){this['_uis'][_0xbade('0x1')](_0x407590)[_0xbade('0x1d')](null);}}),this[_0xbade('0x2')](_0x1a76dd[_0xbade('0x7')],_0xbade('0x2f'),(_0x2c0e00,_0x65d54d)=>{this[_0xbade('0xe')](_0x65d54d);});}[_0xbade('0xd')](){return this[_0xbade('0x8')]['size']>0x0;}[_0xbade('0x11')](_0x4bf429){return this['activeUIs'][_0xbade('0x25')](_0x4bf429);}['activate'](_0x584a6a,_0x28aec0=()=>!0x0){const _0x4c0562=this[_0xbade('0x1b')][_0xbade('0x20')][_0xbade('0x1')](_0x478de1);if(!this[_0xbade('0x5')][_0xbade('0x25')](_0x584a6a))throw new _0x248d00(_0xbade('0x4'),this,{'uiName':_0x584a6a});this[_0xbade('0x11')](_0x584a6a)&&this['deactivate'](_0x584a6a),this['activeUIs'][_0xbade('0x2f')](_0x584a6a);const _0x84fbe2=new _0x1b6ba6(),_0x53ed74=_0x4c0562['_visibleAnnotations'];_0x5eab34({'source':_0x53ed74,'target':_0x84fbe2,'filter':_0x28aec0}),this['_uisData'][_0xbade('0x2c')](_0x584a6a,{'collection':_0x84fbe2,'filter':_0x28aec0});const _0x2e61e7=this[_0xbade('0x5')]['get'](_0x584a6a);_0x2e61e7['attach'](_0x84fbe2),this['listenTo'](_0x2e61e7,_0xbade('0x16'),(_0x45eb08,_0x11ffe8,_0x56dc95,_0x1a9976)=>{_0x1a9976&&_0x4c0562['_removeActiveAnnotation'](_0x1a9976),_0x56dc95&&_0x4c0562[_0xbade('0x18')](_0x56dc95);});}[_0xbade('0x2b')](_0x46a33b){this[_0xbade('0x8')][_0xbade('0xa')](_0x46a33b);const _0x64e626=this['_uis'][_0xbade('0x1')](_0x46a33b);_0x64e626[_0xbade('0x19')](),this[_0xbade('0x0')](_0x64e626),this[_0xbade('0x28')][_0xbade('0x1')](_0x46a33b)[_0xbade('0x3')]['destroy'](),this[_0xbade('0x28')]['delete'](_0x46a33b);}[_0xbade('0x26')](_0x17c6e7){const _0x573ae7=this[_0xbade('0x1b')][_0xbade('0x20')][_0xbade('0x1')](_0x478de1),_0x8dabfc=Array[_0xbade('0x21')](_0x573ae7[_0xbade('0xf')])[0x0]||null;this[_0xbade('0xb')](),this[_0xbade('0x1c')](_0x17c6e7);const _0x11cfbb=this[_0xbade('0x5')][_0xbade('0x1')](_0x17c6e7);_0x11cfbb['setActiveAnnotation'](_0x8dabfc),_0x11cfbb[_0xbade('0x17')]&&_0x8dabfc&&_0x11cfbb[_0xbade('0x17')]([_0x8dabfc]);}[_0xbade('0xb')](){for(const _0x3f7dea of this['activeUIs'])this[_0xbade('0x2b')](_0x3f7dea);}[_0xbade('0x12')](_0x105cda,_0x3a45ff){if(this['_uis']['has'](_0x105cda))throw new _0x248d00(_0xbade('0x27'));if(_0xbade('0x23')!=typeof _0x3a45ff[_0xbade('0x29')]||_0xbade('0x23')!=typeof _0x3a45ff['detach']||_0xbade('0x23')!=typeof _0x3a45ff[_0xbade('0x1d')])throw new _0x248d00('annotationsuis-register-invalid-interface',null);this[_0xbade('0x5')][_0xbade('0x2c')](_0x105cda,_0x3a45ff);}[_0xbade('0x2a')](){const _0x4b0732=this['context'][_0xbade('0x20')][_0xbade('0x1')](_0x478de1)[_0xbade('0x3')],_0x3869c7=new Map(),_0x4c13b6=Array[_0xbade('0x21')](this['activeUIs']);for(const _0x343f32 of this[_0xbade('0x8')]){const _0x34fe20=this[_0xbade('0x28')]['get'](_0x343f32)[_0xbade('0x3')];for(const _0x597c45 of _0x34fe20)_0x3869c7[_0xbade('0x2c')](_0x597c45,_0x343f32);}for(const _0x2468f9 of _0x4b0732){const _0x5cc0fc=_0x3869c7['get'](_0x2468f9);this[_0xbade('0xe')](_0x2468f9);const _0x59ee61=_0x4c13b6[_0xbade('0x22')](_0x51a1bd=>this[_0xbade('0x28')][_0xbade('0x1')](_0x51a1bd)[_0xbade('0x13')](_0x2468f9));_0x5cc0fc!==_0x59ee61&&(_0x5cc0fc&&this[_0xbade('0x28')][_0xbade('0x1')](_0x5cc0fc)['collection'][_0xbade('0x15')](_0x2468f9),_0x59ee61&&this[_0xbade('0x28')]['get'](_0x59ee61)[_0xbade('0x3')][_0xbade('0x2f')](_0x2468f9));}}[_0xbade('0x6')](){this[_0xbade('0xb')](),super['destroy']();}[_0xbade('0xe')](_0x2bc1e7){const _0x2e54d1=[];for(const _0x51ad61 of this[_0xbade('0x8')]){(0x0,this['_uisData'][_0xbade('0x1')](_0x51ad61)[_0xbade('0x13')])(_0x2bc1e7)&&_0x2e54d1[_0xbade('0x9')](_0x51ad61);}if(_0x2e54d1[_0xbade('0x10')]>0x1)throw new _0x248d00(_0xbade('0x2d'),null,{'matchedUIs':_0x2e54d1,'annotationType':_0x2bc1e7[_0xbade('0x1e')]});}}
|