@ckeditor/ckeditor5-export-word 34.0.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.
Files changed (71) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/LICENSE.md +2 -2
  3. package/README.md +2 -2
  4. package/build/export-word.js +1 -1
  5. package/build/translations/ar.js +1 -0
  6. package/build/translations/bg.js +1 -0
  7. package/build/translations/bn.js +1 -0
  8. package/build/translations/ca.js +1 -0
  9. package/build/translations/da.js +1 -0
  10. package/build/translations/es.js +1 -0
  11. package/build/translations/et.js +1 -0
  12. package/build/translations/fi.js +1 -0
  13. package/build/translations/he.js +1 -0
  14. package/build/translations/hi.js +1 -0
  15. package/build/translations/ja.js +1 -0
  16. package/build/translations/ko.js +1 -0
  17. package/build/translations/lt.js +1 -0
  18. package/build/translations/lv.js +1 -0
  19. package/build/translations/ms.js +1 -0
  20. package/build/translations/nl.js +1 -0
  21. package/build/translations/no.js +1 -0
  22. package/build/translations/pt.js +1 -0
  23. package/build/translations/ro.js +1 -0
  24. package/build/translations/ru.js +1 -0
  25. package/build/translations/sr-latn.js +1 -0
  26. package/build/translations/sr.js +1 -0
  27. package/build/translations/sv.js +1 -0
  28. package/build/translations/th.js +1 -0
  29. package/build/translations/tr.js +1 -0
  30. package/build/translations/uk.js +1 -0
  31. package/build/translations/ur.js +1 -0
  32. package/build/translations/vi.js +1 -0
  33. package/build/translations/zh-cn.js +1 -0
  34. package/build/translations/zh.js +1 -0
  35. package/lang/translations/ar.po +25 -0
  36. package/lang/translations/bg.po +25 -0
  37. package/lang/translations/bn.po +25 -0
  38. package/lang/translations/ca.po +25 -0
  39. package/lang/translations/da.po +25 -0
  40. package/lang/translations/es.po +25 -0
  41. package/lang/translations/et.po +25 -0
  42. package/lang/translations/fi.po +25 -0
  43. package/lang/translations/fr.po +1 -1
  44. package/lang/translations/he.po +25 -0
  45. package/lang/translations/hi.po +25 -0
  46. package/lang/translations/it.po +1 -1
  47. package/lang/translations/ja.po +25 -0
  48. package/lang/translations/ko.po +25 -0
  49. package/lang/translations/lt.po +25 -0
  50. package/lang/translations/lv.po +25 -0
  51. package/lang/translations/ms.po +25 -0
  52. package/lang/translations/nl.po +25 -0
  53. package/lang/translations/no.po +25 -0
  54. package/lang/translations/pt-br.po +1 -1
  55. package/lang/translations/pt.po +25 -0
  56. package/lang/translations/ro.po +25 -0
  57. package/lang/translations/ru.po +25 -0
  58. package/lang/translations/sr-latn.po +25 -0
  59. package/lang/translations/sr.po +25 -0
  60. package/lang/translations/sv.po +25 -0
  61. package/lang/translations/th.po +25 -0
  62. package/lang/translations/tr.po +25 -0
  63. package/lang/translations/uk.po +25 -0
  64. package/lang/translations/ur.po +25 -0
  65. package/lang/translations/vi.po +25 -0
  66. package/lang/translations/zh-cn.po +25 -0
  67. package/lang/translations/zh.po +25 -0
  68. package/package.json +27 -26
  69. package/src/exportword.js +1 -1
  70. package/src/exportwordcommand.js +1 -1
  71. package/src/utils.js +1 -1
@@ -0,0 +1,25 @@
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 "A toolbar button tooltip for a Word export feature."
20
+ msgid "Export to Word"
21
+ msgstr "Eksport ke Word"
22
+
23
+ msgctxt "An error message shown to the user when an error occurred during the generation of the Word file."
24
+ msgid "An error occurred while generating the Word file."
25
+ msgstr "Berlaku ralat semasa mencipta fail Word."
@@ -0,0 +1,25 @@
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: Dutch (https://www.transifex.com/ckeditor/teams/11143/nl/)\n"
16
+ "Language: nl\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+
19
+ msgctxt "A toolbar button tooltip for a Word export feature."
20
+ msgid "Export to Word"
21
+ msgstr "Naar Word exporteren"
22
+
23
+ msgctxt "An error message shown to the user when an error occurred during the generation of the Word file."
24
+ msgid "An error occurred while generating the Word file."
25
+ msgstr "Er is een fout opgetreden bij het genereren van het Word-bestand."
@@ -0,0 +1,25 @@
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: Norwegian (https://www.transifex.com/ckeditor/teams/11143/no/)\n"
16
+ "Language: no\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+
19
+ msgctxt "A toolbar button tooltip for a Word export feature."
20
+ msgid "Export to Word"
21
+ msgstr "Eksporter til Word"
22
+
23
+ msgctxt "An error message shown to the user when an error occurred during the generation of the Word file."
24
+ msgid "An error occurred while generating the Word file."
25
+ msgstr "Det oppstod en feil under opprettelse av Word-filen."
@@ -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=2; plural=(n > 1);\n"
17
+ "Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
18
18
 
19
19
  msgctxt "A toolbar button tooltip for a Word export feature."
20
20
  msgid "Export to Word"
@@ -0,0 +1,25 @@
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 "A toolbar button tooltip for a Word export feature."
20
+ msgid "Export to Word"
21
+ msgstr "Exportar para Word"
22
+
23
+ msgctxt "An error message shown to the user when an error occurred during the generation of the Word file."
24
+ msgid "An error occurred while generating the Word file."
25
+ msgstr "Ocorreu um erro ao gerar o ficheiro Word."
@@ -0,0 +1,25 @@
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: Romanian (https://www.transifex.com/ckeditor/teams/11143/ro/)\n"
16
+ "Language: ro\n"
17
+ "Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n"
18
+
19
+ msgctxt "A toolbar button tooltip for a Word export feature."
20
+ msgid "Export to Word"
21
+ msgstr "Exportare în Word"
22
+
23
+ msgctxt "An error message shown to the user when an error occurred during the generation of the Word file."
24
+ msgid "An error occurred while generating the Word file."
25
+ msgstr "A avut loc o eroare în timpul generării fișierului Word."
@@ -0,0 +1,25 @@
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: Russian (https://www.transifex.com/ckeditor/teams/11143/ru/)\n"
16
+ "Language: ru\n"
17
+ "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n"
18
+
19
+ msgctxt "A toolbar button tooltip for a Word export feature."
20
+ msgid "Export to Word"
21
+ msgstr "Экспорт в Word"
22
+
23
+ msgctxt "An error message shown to the user when an error occurred during the generation of the Word file."
24
+ msgid "An error occurred while generating the Word file."
25
+ msgstr "При создании файла Word произошла ошибка."
@@ -0,0 +1,25 @@
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: Serbian (Latin) (https://www.transifex.com/ckeditor/teams/11143/sr@latin/)\n"
16
+ "Language: sr@latin\n"
17
+ "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
18
+
19
+ msgctxt "A toolbar button tooltip for a Word export feature."
20
+ msgid "Export to Word"
21
+ msgstr "Eksportuj u Word"
22
+
23
+ msgctxt "An error message shown to the user when an error occurred during the generation of the Word file."
24
+ msgid "An error occurred while generating the Word file."
25
+ msgstr "Došlo je do greške pri generisanju Word datoteke."
@@ -0,0 +1,25 @@
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: Serbian (https://www.transifex.com/ckeditor/teams/11143/sr/)\n"
16
+ "Language: sr\n"
17
+ "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
18
+
19
+ msgctxt "A toolbar button tooltip for a Word export feature."
20
+ msgid "Export to Word"
21
+ msgstr "Експортуј у Ворд"
22
+
23
+ msgctxt "An error message shown to the user when an error occurred during the generation of the Word file."
24
+ msgid "An error occurred while generating the Word file."
25
+ msgstr "Дошло је до грешке при генерисању Ворд датотеке."
@@ -0,0 +1,25 @@
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 "A toolbar button tooltip for a Word export feature."
20
+ msgid "Export to Word"
21
+ msgstr "Exportera till Word"
22
+
23
+ msgctxt "An error message shown to the user when an error occurred during the generation of the Word file."
24
+ msgid "An error occurred while generating the Word file."
25
+ msgstr "Ett fel uppstod medan Wordfilen skapades."
@@ -0,0 +1,25 @@
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 "A toolbar button tooltip for a Word export feature."
20
+ msgid "Export to Word"
21
+ msgstr "ส่งออกไปที่ Word"
22
+
23
+ msgctxt "An error message shown to the user when an error occurred during the generation of the Word file."
24
+ msgid "An error occurred while generating the Word file."
25
+ msgstr "เกิดข้อผิดพลาดขณะสร้างไฟล์ Word"
@@ -0,0 +1,25 @@
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: Turkish (https://www.transifex.com/ckeditor/teams/11143/tr/)\n"
16
+ "Language: tr\n"
17
+ "Plural-Forms: nplurals=2; plural=(n > 1);\n"
18
+
19
+ msgctxt "A toolbar button tooltip for a Word export feature."
20
+ msgid "Export to Word"
21
+ msgstr "Word'e çıkar"
22
+
23
+ msgctxt "An error message shown to the user when an error occurred during the generation of the Word file."
24
+ msgid "An error occurred while generating the Word file."
25
+ msgstr "Word dosyası oluşturulurken bir hata oluştu."
@@ -0,0 +1,25 @@
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: Ukrainian (https://www.transifex.com/ckeditor/teams/11143/uk/)\n"
16
+ "Language: uk\n"
17
+ "Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\n"
18
+
19
+ msgctxt "A toolbar button tooltip for a Word export feature."
20
+ msgid "Export to Word"
21
+ msgstr "Експортувати в Word"
22
+
23
+ msgctxt "An error message shown to the user when an error occurred during the generation of the Word file."
24
+ msgid "An error occurred while generating the Word file."
25
+ msgstr "Під час створення Word файлу сталася помилка."
@@ -0,0 +1,25 @@
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: Urdu (https://www.transifex.com/ckeditor/teams/11143/ur/)\n"
16
+ "Language: ur\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+
19
+ msgctxt "A toolbar button tooltip for a Word export feature."
20
+ msgid "Export to Word"
21
+ msgstr "ورڈ دستاویز برآمد"
22
+
23
+ msgctxt "An error message shown to the user when an error occurred during the generation of the Word file."
24
+ msgid "An error occurred while generating the Word file."
25
+ msgstr "ورڈ دستاویز بناننے میں نقص واقع ہوا۔"
@@ -0,0 +1,25 @@
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 "A toolbar button tooltip for a Word export feature."
20
+ msgid "Export to Word"
21
+ msgstr "Xuất ra định dạng Word"
22
+
23
+ msgctxt "An error message shown to the user when an error occurred during the generation of the Word file."
24
+ msgid "An error occurred while generating the Word file."
25
+ msgstr "Đã xảy ra lỗi khi tạo tệp Word."
@@ -0,0 +1,25 @@
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: Chinese (China) (https://www.transifex.com/ckeditor/teams/11143/zh_CN/)\n"
16
+ "Language: zh_CN\n"
17
+ "Plural-Forms: nplurals=1; plural=0;\n"
18
+
19
+ msgctxt "A toolbar button tooltip for a Word export feature."
20
+ msgid "Export to Word"
21
+ msgstr "导出Word文档"
22
+
23
+ msgctxt "An error message shown to the user when an error occurred during the generation of the Word file."
24
+ msgid "An error occurred while generating the Word file."
25
+ msgstr "生成Word文档时发生了异常。"
@@ -0,0 +1,25 @@
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: Chinese (Taiwan) (https://www.transifex.com/ckeditor/teams/11143/zh_TW/)\n"
16
+ "Language: zh_TW\n"
17
+ "Plural-Forms: nplurals=1; plural=0;\n"
18
+
19
+ msgctxt "A toolbar button tooltip for a Word export feature."
20
+ msgid "Export to Word"
21
+ msgstr "匯出到 Word"
22
+
23
+ msgctxt "An error message shown to the user when an error occurred during the generation of the Word file."
24
+ msgid "An error occurred while generating the Word file."
25
+ msgstr "產生 Word 檔案時出錯。"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-export-word",
3
- "version": "34.0.0",
3
+ "version": "35.0.1",
4
4
  "description": "Export to Word feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -29,33 +29,33 @@
29
29
  ],
30
30
  "main": "src/index.js",
31
31
  "dependencies": {
32
- "ckeditor5": "^34.0.0"
32
+ "ckeditor5": "^35.0.1"
33
33
  },
34
34
  "devDependencies": {
35
- "@ckeditor/ckeditor5-alignment": "^34.0.0",
36
- "@ckeditor/ckeditor5-autoformat": "^34.0.0",
37
- "@ckeditor/ckeditor5-basic-styles": "^34.0.0",
38
- "@ckeditor/ckeditor5-cloud-services": "^34.0.0",
39
- "@ckeditor/ckeditor5-code-block": "^34.0.0",
40
- "@ckeditor/ckeditor5-collaboration-core": "^34.0.0",
41
- "@ckeditor/ckeditor5-comments": "^34.0.0",
42
- "@ckeditor/ckeditor5-core": "^34.0.0",
35
+ "@ckeditor/ckeditor5-alignment": "^35.0.1",
36
+ "@ckeditor/ckeditor5-autoformat": "^35.0.1",
37
+ "@ckeditor/ckeditor5-basic-styles": "^35.0.1",
38
+ "@ckeditor/ckeditor5-cloud-services": "^35.0.1",
39
+ "@ckeditor/ckeditor5-code-block": "^35.0.1",
40
+ "@ckeditor/ckeditor5-collaboration-core": "^35.0.1",
41
+ "@ckeditor/ckeditor5-comments": "^35.0.1",
42
+ "@ckeditor/ckeditor5-core": "^35.0.1",
43
43
  "@ckeditor/ckeditor5-dev-utils": "^30.0.0",
44
- "@ckeditor/ckeditor5-easy-image": "^34.0.0",
45
- "@ckeditor/ckeditor5-editor-decoupled": "^34.0.0",
46
- "@ckeditor/ckeditor5-font": "^34.0.0",
47
- "@ckeditor/ckeditor5-heading": "^34.0.0",
48
- "@ckeditor/ckeditor5-horizontal-line": "^34.0.0",
49
- "@ckeditor/ckeditor5-image": "^34.0.0",
50
- "@ckeditor/ckeditor5-indent": "^34.0.0",
51
- "@ckeditor/ckeditor5-list": "^34.0.0",
52
- "@ckeditor/ckeditor5-page-break": "^34.0.0",
53
- "@ckeditor/ckeditor5-paragraph": "^34.0.0",
54
- "@ckeditor/ckeditor5-table": "^34.0.0",
55
- "@ckeditor/ckeditor5-theme-lark": "^34.0.0",
56
- "@ckeditor/ckeditor5-track-changes": "^34.0.0",
57
- "@ckeditor/ckeditor5-ui": "^34.0.0",
58
- "@ckeditor/ckeditor5-utils": "^34.0.0",
44
+ "@ckeditor/ckeditor5-easy-image": "^35.0.1",
45
+ "@ckeditor/ckeditor5-editor-decoupled": "^35.0.1",
46
+ "@ckeditor/ckeditor5-font": "^35.0.1",
47
+ "@ckeditor/ckeditor5-heading": "^35.0.1",
48
+ "@ckeditor/ckeditor5-horizontal-line": "^35.0.1",
49
+ "@ckeditor/ckeditor5-image": "^35.0.1",
50
+ "@ckeditor/ckeditor5-indent": "^35.0.1",
51
+ "@ckeditor/ckeditor5-list": "^35.0.1",
52
+ "@ckeditor/ckeditor5-page-break": "^35.0.1",
53
+ "@ckeditor/ckeditor5-paragraph": "^35.0.1",
54
+ "@ckeditor/ckeditor5-table": "^35.0.1",
55
+ "@ckeditor/ckeditor5-theme-lark": "^35.0.1",
56
+ "@ckeditor/ckeditor5-track-changes": "^35.0.1",
57
+ "@ckeditor/ckeditor5-ui": "^35.0.1",
58
+ "@ckeditor/ckeditor5-utils": "^35.0.1",
59
59
  "webpack": "^5.58.1",
60
60
  "webpack-cli": "^4.9.0"
61
61
  },
@@ -72,7 +72,8 @@
72
72
  "src",
73
73
  "theme",
74
74
  "build",
75
- "ckeditor5-metadata.json"
75
+ "ckeditor5-metadata.json",
76
+ "CHANGELOG.md"
76
77
  ],
77
78
  "scripts": {
78
79
  "dll:build": "webpack"
package/src/exportword.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x59c038}from'ckeditor5/src/core';import{ButtonView as _0x4c87b6,View as _0x2f5164,Notification as _0x5f00de}from'ckeditor5/src/ui';import _0x4e2da7 from'./exportwordcommand';import _0x1b8e5b from'../theme/icons/exportword.svg';import'../theme/exportword.css';export default class c extends _0x59c038{static get['pluginName'](){return'ExportWord';}static get['requires'](){return['CloudServices',_0x5f00de];}['init'](){const _0x7dc047=this['editor'],t=_0x7dc047['t'],_0x55c15b=_0x7dc047['config']['get']('exportWord')||{};_0x7dc047['commands']['add']('exportWord',new _0x4e2da7(_0x7dc047)),_0x7dc047['ui']['componentFactory']['add']('exportWord',_0x516dad=>{const _0x5e65f5=_0x7dc047['commands']['get']('exportWord'),_0x435d51=new _0x4c87b6(_0x516dad);_0x435d51['set']({'label':t('Export\x20to\x20Word'),'icon':_0x1b8e5b,'tooltip':!0x0}),_0x435d51['bind']('isOn','isEnabled')['to'](_0x5e65f5,'isBusy','isEnabled'),_0x435d51['extendTemplate']({'attributes':{'class':[_0x435d51['bindTemplate']['if']('isOn','ck-exportword_status-pending')]}});const _0xdfbc73=new _0x2f5164();return _0xdfbc73['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-exportword__spinner-container']},'children':[{'tag':'span','attributes':{'class':['ck','ck-exportword__spinner']}}]}),_0x435d51['children']['add'](_0xdfbc73),this['listenTo'](_0x435d51,'execute',()=>{_0x7dc047['execute']('exportWord',_0x55c15b),_0x7dc047['editing']['view']['focus']();}),_0x435d51;});const _0x6a6ef7=_0x7dc047['plugins']['get']('CloudServices');if(!0x1===_0x55c15b['tokenUrl'])this['_token']=null;else{if(_0x55c15b['tokenUrl'])return _0x6a6ef7['registerTokenUrl'](_0x55c15b['tokenUrl'])['then'](_0x101fe5=>{this['_token']=_0x101fe5;});this['_token']=_0x6a6ef7['token'];}}}
23
+ import{Plugin as _0x1edfa2}from'ckeditor5/src/core';import{ButtonView as _0x348c3a,View as _0x5b941d,Notification as _0x11b9b2}from'ckeditor5/src/ui';import _0x34b0ff from'./exportwordcommand';import _0x523525 from'../theme/icons/exportword.svg';import'../theme/exportword.css';export default class c extends _0x1edfa2{static get['pluginName'](){return'ExportWord';}static get['requires'](){return['CloudServices',_0x11b9b2];}['init'](){const _0x27b5a7=this['editor'],t=_0x27b5a7['t'],_0x1a7285=_0x27b5a7['config']['get']('exportWord')||{};_0x27b5a7['commands']['add']('exportWord',new _0x34b0ff(_0x27b5a7)),_0x27b5a7['ui']['componentFactory']['add']('exportWord',_0x261e2f=>{const _0x2f37a2=_0x27b5a7['commands']['get']('exportWord'),_0x40983b=new _0x348c3a(_0x261e2f);_0x40983b['set']({'label':t('Export\x20to\x20Word'),'icon':_0x523525,'tooltip':!0x0}),_0x40983b['bind']('isOn','isEnabled')['to'](_0x2f37a2,'isBusy','isEnabled'),_0x40983b['extendTemplate']({'attributes':{'class':[_0x40983b['bindTemplate']['if']('isOn','ck-exportword_status-pending')]}});const _0x242e0c=new _0x5b941d();return _0x242e0c['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-exportword__spinner-container']},'children':[{'tag':'span','attributes':{'class':['ck','ck-exportword__spinner']}}]}),_0x40983b['children']['add'](_0x242e0c),this['listenTo'](_0x40983b,'execute',()=>{_0x27b5a7['execute']('exportWord',_0x1a7285),_0x27b5a7['editing']['view']['focus']();}),_0x40983b;});const _0x522870=_0x27b5a7['plugins']['get']('CloudServices');if(!0x1===_0x1a7285['tokenUrl'])this['_token']=null;else{if(_0x1a7285['tokenUrl'])return _0x522870['registerTokenUrl'](_0x1a7285['tokenUrl'])['then'](_0x16a325=>{this['_token']=_0x16a325;});this['_token']=_0x522870['token'];}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x29c05f}from'ckeditor5/src/core';import{getStyles as _0x3f6a2e,getConverterOptions as _0x555510}from'./utils';export default class i extends _0x29c05f{constructor(_0x45625c){super(_0x45625c),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x20fc8d={}){const _0x1d8121=this['editor'],t=_0x1d8121['t'],_0x2029ed=_0x20fc8d['converterUrl']||'https://docx-converter.cke-cs.com/v1/convert',_0x5841ab=_0x20fc8d['converterOptions']||{},_0x6cbee=_0x1d8121['plugins']['get']('ExportWord'),_0x1efa78=_0x20fc8d['token']||_0x6cbee['_token'],_0x46c1bc=!0x1!==_0x5841ab['auto_pagination'],_0x229b95=_0x20fc8d['dataCallback']||(_0x8f0bea=>_0x8f0bea['getData']({'pagination':_0x46c1bc}));return this['isBusy']=!0x0,this['refresh'](),_0x3f6a2e(_0x20fc8d['stylesheets']||['EDITOR_STYLES'])['then'](_0x5d023f=>{const _0x3449d5=_0x229b95(_0x1d8121),_0x3d4faa={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x1d8121['locale']['contentLanguageDirection']+'\x22>'+_0x3449d5+'</div>','css':_0x5d023f,'options':{..._0x5841ab,..._0x555510(_0x1d8121)}},_0x3ebcac={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0x1efa78?{'Authorization':_0x1efa78['value']}:null},'body':JSON['stringify'](_0x3d4faa)};return window['fetch'](_0x2029ed,_0x3ebcac)['then'](_0x23a2eb=>{if(0xc8!==_0x23a2eb['status'])throw _0x23a2eb;return _0x23a2eb['blob']();})['then'](_0x59b2a7=>{this['o'](_0x59b2a7,_0x20fc8d['fileName']||'document.docx');});})['catch'](_0x25f85f=>{throw _0x1d8121['plugins']['get']('Notification')['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0x25f85f;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['o'](_0x4aaa90,_0x5e01c0){const _0x31051a=document['createElement']('a');_0x31051a['href']=window['URL']['createObjectURL'](_0x4aaa90),_0x31051a['download']=_0x5e01c0,_0x31051a['click'](),_0x31051a['remove']();}}
23
+ import{Command as _0x5751a6}from'ckeditor5/src/core';import{getStyles as _0x1cf1a7,getConverterOptions as _0x222bb7}from'./utils';export default class i extends _0x5751a6{constructor(_0x55b2b9){super(_0x55b2b9),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x195982={}){const _0x207ef8=this['editor'],t=_0x207ef8['t'],_0x3bd380=_0x195982['converterUrl']||'https://docx-converter.cke-cs.com/v1/convert',_0x4ecbfd=_0x195982['converterOptions']||{},_0x2f7f0e=_0x207ef8['plugins']['get']('ExportWord'),_0x241df5=_0x195982['token']||_0x2f7f0e['_token'],_0x4c5017=!0x1!==_0x4ecbfd['auto_pagination'],_0x2137e1=_0x195982['dataCallback']||(_0x315612=>_0x315612['getData']({'pagination':_0x4c5017}));return this['isBusy']=!0x0,this['refresh'](),_0x1cf1a7(_0x195982['stylesheets']||['EDITOR_STYLES'])['then'](_0x31d4f5=>{const _0x421228=_0x2137e1(_0x207ef8),_0x475e93={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x207ef8['locale']['contentLanguageDirection']+'\x22>'+_0x421228+'</div>','css':_0x31d4f5,'options':{..._0x4ecbfd,..._0x222bb7(_0x207ef8)}},_0x50510c={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0x241df5?{'Authorization':_0x241df5['value']}:null},'body':JSON['stringify'](_0x475e93)};return window['fetch'](_0x3bd380,_0x50510c)['then'](_0x48509a=>{if(0xc8!==_0x48509a['status'])throw _0x48509a;return _0x48509a['blob']();})['then'](_0x42428c=>{this['o'](_0x42428c,_0x195982['fileName']||'document.docx');});})['catch'](_0x286d43=>{throw _0x207ef8['plugins']['get']('Notification')['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0x286d43;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['o'](_0x39fa14,_0x44a24e){const _0xd4b1dc=document['createElement']('a');_0xd4b1dc['href']=window['URL']['createObjectURL'](_0x39fa14),_0xd4b1dc['download']=_0x44a24e,_0xd4b1dc['click'](),_0xd4b1dc['remove']();}}
package/src/utils.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ad8=['Users','DateTimeFormat','suggestions','keys','all','createdAt','then','comments','author','fetch','content','timeZone','CommentsRepository','map','join','styleSheets','The\x20editor\x20stylesheet\x20could\x20not\x20be\x20found\x20in\x20the\x20document.\x20Check\x20your\x20webpack\x20config\x20–\x20style-loader\x20should\x20use\x20data-cke=true\x20attribute\x20for\x20the\x20editor\x20stylesheet.','timezone','warn','push','cssText','data-cke','getSuggestions','get','resolvedOptions','indexOf','TrackChanges','text','.ck-content','trim','name','authorId','length','ownerNode','plugins','cssRules','has','hasAttribute'];(function(_0x414d57,_0x1ad852){const _0x130026=function(_0x26a79a){while(--_0x26a79a){_0x414d57['push'](_0x414d57['shift']());}};_0x130026(++_0x1ad852);}(_0x1ad8,0x176));const _0x1300=function(_0x414d57,_0x1ad852){_0x414d57=_0x414d57-0x0;let _0x130026=_0x1ad8[_0x414d57];return _0x130026;};export function getStyles(_0x5da112){if(!_0x5da112)return new Promise(_0x2e30bc=>_0x2e30bc(''));const _0x240605=[];for(const _0x4058f5 of _0x5da112)'EDITOR_STYLES'!==_0x4058f5?_0x240605[_0x1300('0x19')](window[_0x1300('0xf')](_0x4058f5)[_0x1300('0xc')](_0x2001da=>_0x2001da[_0x1300('0x21')]())):_0x240605[_0x1300('0x19')](u());return Promise[_0x1300('0xa')](_0x240605)[_0x1300('0xc')](_0x4d30be=>_0x4d30be[_0x1300('0x14')]('\x20')['trim']());}function u(){const _0x1aaf8f=[],_0x2bd320=[];for(const _0x4745c0 of document[_0x1300('0x15')])if(_0x4745c0[_0x1300('0x1')][_0x1300('0x5')](_0x1300('0x1b')))for(const _0x1473fc of _0x4745c0[_0x1300('0x3')])-0x1!==_0x1473fc[_0x1300('0x1a')][_0x1300('0x1f')](_0x1300('0x22'))?_0x1aaf8f[_0x1300('0x19')](_0x1473fc[_0x1300('0x1a')]):-0x1!==_0x1473fc[_0x1300('0x1a')]['indexOf'](':root')&&_0x2bd320['push'](_0x1473fc['cssText']);return _0x1aaf8f[_0x1300('0x0')]||console[_0x1300('0x18')](_0x1300('0x16')),[..._0x2bd320,..._0x1aaf8f][_0x1300('0x14')]('\x20')[_0x1300('0x23')]();}export function getConverterOptions(_0x349bad){const _0x5e7896=_0x349bad[_0x1300('0x2')]['has'](_0x1300('0x6')),_0x15dd8a=_0x349bad[_0x1300('0x2')][_0x1300('0x4')](_0x1300('0x12')),_0x250ce2=_0x349bad['plugins']['has'](_0x1300('0x20')),_0x293e54={};if(_0x5e7896&&_0x15dd8a){const _0x18a34c=getComments(_0x349bad[_0x1300('0x2')][_0x1300('0x1d')](_0x1300('0x12'))['getCommentThreads']({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object[_0x1300('0x9')](_0x18a34c)[_0x1300('0x0')]&&(_0x293e54[_0x1300('0xd')]=_0x18a34c);}if(_0x5e7896&&_0x250ce2){const _0x4eafd0=_0x349bad[_0x1300('0x2')]['get'](_0x1300('0x20')),_0x36c6ba=_0x349bad[_0x1300('0x2')][_0x1300('0x1d')]('Users'),_0x4ac24a=getSuggestions(_0x4eafd0[_0x1300('0x1c')]({'toJSON':!0x0}),_0x36c6ba['users']);Object[_0x1300('0x9')](_0x4ac24a)[_0x1300('0x0')]&&(_0x293e54[_0x1300('0x8')]=_0x4ac24a);}return(_0x293e54[_0x1300('0x8')]||_0x293e54[_0x1300('0xd')])&&(_0x293e54[_0x1300('0x17')]=new Intl[(_0x1300('0x7'))]()[_0x1300('0x1e')]()[_0x1300('0x11')]),_0x293e54;}export function getComments(_0x5f2856){const _0x282889={};if(!_0x5f2856[_0x1300('0x0')])return _0x282889;for(const _0x52a579 of _0x5f2856)_0x52a579[_0x1300('0xd')][_0x1300('0x13')](_0x485fe3=>{void 0x0===_0x282889[_0x52a579['id']]&&(_0x282889[_0x52a579['id']]=[]),_0x282889[_0x52a579['id']]['push']({'author':_0x485fe3[_0x1300('0xe')][_0x1300('0x24')],'content':_0x485fe3[_0x1300('0x10')],'created':_0x485fe3[_0x1300('0xb')]});});return _0x282889;}export function getSuggestions(_0x249013,_0x2a2abb){const _0xf11718={};if(!_0x249013[_0x1300('0x0')]||!_0x2a2abb[_0x1300('0x0')])return _0xf11718;for(const _0x73221d of _0x249013)_0xf11718[_0x73221d['id']]={'author':_0x2a2abb[_0x1300('0x1d')](_0x73221d[_0x1300('0x25')])[_0x1300('0x24')],'created':_0x73221d[_0x1300('0xb')]};return _0xf11718;}
23
+ const _0x4119=['cssText','suggestions','fetch','cssRules','get','CommentsRepository','join','ownerNode','warn','trim','Users','text','resolvedOptions','push','EDITOR_STYLES','author','getCommentThreads','timezone','name','length',':root','getSuggestions','has','comments','indexOf','authorId','then','timeZone','createdAt','.ck-content','TrackChanges','users','keys','styleSheets','The\x20editor\x20stylesheet\x20could\x20not\x20be\x20found\x20in\x20the\x20document.\x20Check\x20your\x20webpack\x20config\x20–\x20style-loader\x20should\x20use\x20data-cke=true\x20attribute\x20for\x20the\x20editor\x20stylesheet.','plugins','DateTimeFormat'];(function(_0xffac94,_0x4119fa){const _0x5622ca=function(_0x5b4071){while(--_0x5b4071){_0xffac94['push'](_0xffac94['shift']());}};_0x5622ca(++_0x4119fa);}(_0x4119,0xa7));const _0x5622=function(_0xffac94,_0x4119fa){_0xffac94=_0xffac94-0x0;let _0x5622ca=_0x4119[_0xffac94];return _0x5622ca;};export function getStyles(_0x41b065){if(!_0x41b065)return new Promise(_0x484440=>_0x484440(''));const _0x3812b4=[];for(const _0x332085 of _0x41b065)_0x5622('0x20')!==_0x332085?_0x3812b4[_0x5622('0x1f')](window[_0x5622('0x14')](_0x332085)['then'](_0x2ebfc0=>_0x2ebfc0[_0x5622('0x1d')]())):_0x3812b4[_0x5622('0x1f')](u());return Promise['all'](_0x3812b4)[_0x5622('0x7')](_0x586a38=>_0x586a38[_0x5622('0x18')]('\x20')[_0x5622('0x1b')]());}function u(){const _0x14498d=[],_0x4c5baa=[];for(const _0x4c122d of document[_0x5622('0xe')])if(_0x4c122d[_0x5622('0x19')]['hasAttribute']('data-cke'))for(const _0x200e72 of _0x4c122d[_0x5622('0x15')])-0x1!==_0x200e72['cssText']['indexOf'](_0x5622('0xa'))?_0x14498d['push'](_0x200e72[_0x5622('0x12')]):-0x1!==_0x200e72['cssText'][_0x5622('0x5')](_0x5622('0x1'))&&_0x4c5baa[_0x5622('0x1f')](_0x200e72['cssText']);return _0x14498d[_0x5622('0x0')]||console[_0x5622('0x1a')](_0x5622('0xf')),[..._0x4c5baa,..._0x14498d][_0x5622('0x18')]('\x20')['trim']();}export function getConverterOptions(_0xfeea15){const _0x595f12=_0xfeea15[_0x5622('0x10')][_0x5622('0x3')](_0x5622('0x1c')),_0x552b11=_0xfeea15[_0x5622('0x10')][_0x5622('0x3')]('CommentsRepository'),_0xe1ef18=_0xfeea15[_0x5622('0x10')]['has'](_0x5622('0xb')),_0x4f876c={};if(_0x595f12&&_0x552b11){const _0x4e0e0f=getComments(_0xfeea15[_0x5622('0x10')]['get'](_0x5622('0x17'))[_0x5622('0x22')]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object[_0x5622('0xd')](_0x4e0e0f)['length']&&(_0x4f876c[_0x5622('0x4')]=_0x4e0e0f);}if(_0x595f12&&_0xe1ef18){const _0x21f158=_0xfeea15[_0x5622('0x10')]['get'](_0x5622('0xb')),_0x38cae6=_0xfeea15['plugins'][_0x5622('0x16')](_0x5622('0x1c')),_0x5bf226=getSuggestions(_0x21f158[_0x5622('0x2')]({'toJSON':!0x0}),_0x38cae6[_0x5622('0xc')]);Object[_0x5622('0xd')](_0x5bf226)[_0x5622('0x0')]&&(_0x4f876c[_0x5622('0x13')]=_0x5bf226);}return(_0x4f876c[_0x5622('0x13')]||_0x4f876c[_0x5622('0x4')])&&(_0x4f876c[_0x5622('0x23')]=new Intl[(_0x5622('0x11'))]()[_0x5622('0x1e')]()[_0x5622('0x8')]),_0x4f876c;}export function getComments(_0x512570){const _0x19b115={};if(!_0x512570[_0x5622('0x0')])return _0x19b115;for(const _0x2a9382 of _0x512570)_0x2a9382['comments']['map'](_0x1b7509=>{void 0x0===_0x19b115[_0x2a9382['id']]&&(_0x19b115[_0x2a9382['id']]=[]),_0x19b115[_0x2a9382['id']]['push']({'author':_0x1b7509[_0x5622('0x21')]['name'],'content':_0x1b7509['content'],'created':_0x1b7509[_0x5622('0x9')]});});return _0x19b115;}export function getSuggestions(_0xf72106,_0x44fe06){const _0x1c6341={};if(!_0xf72106['length']||!_0x44fe06[_0x5622('0x0')])return _0x1c6341;for(const _0x2a027a of _0xf72106)_0x1c6341[_0x2a027a['id']]={'author':_0x44fe06[_0x5622('0x16')](_0x2a027a[_0x5622('0x6')])[_0x5622('0x24')],'created':_0x2a027a[_0x5622('0x9')]};return _0x1c6341;}