@ckeditor/ckeditor5-export-word 42.0.2-alpha.2 → 43.0.0-alpha.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.
Files changed (109) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/build/export-word.js +1 -1
  3. package/build/translations/sr-latn.js +1 -1
  4. package/dist/exportword.d.ts +9 -6
  5. package/dist/index.js +1 -1
  6. package/dist/translations/ar.js +1 -1
  7. package/dist/translations/ar.umd.js +1 -1
  8. package/dist/translations/bg.js +1 -1
  9. package/dist/translations/bg.umd.js +1 -1
  10. package/dist/translations/bn.js +1 -1
  11. package/dist/translations/bn.umd.js +1 -1
  12. package/dist/translations/ca.js +1 -1
  13. package/dist/translations/ca.umd.js +1 -1
  14. package/dist/translations/cs.js +1 -1
  15. package/dist/translations/cs.umd.js +1 -1
  16. package/dist/translations/da.js +1 -1
  17. package/dist/translations/da.umd.js +1 -1
  18. package/dist/translations/de.js +1 -1
  19. package/dist/translations/de.umd.js +1 -1
  20. package/dist/translations/el.js +1 -1
  21. package/dist/translations/el.umd.js +1 -1
  22. package/dist/translations/en-au.js +1 -1
  23. package/dist/translations/en-au.umd.js +1 -1
  24. package/dist/translations/en.umd.js +1 -1
  25. package/dist/translations/es.js +1 -1
  26. package/dist/translations/es.umd.js +1 -1
  27. package/dist/translations/et.js +1 -1
  28. package/dist/translations/et.umd.js +1 -1
  29. package/dist/translations/fi.js +1 -1
  30. package/dist/translations/fi.umd.js +1 -1
  31. package/dist/translations/fr.js +1 -1
  32. package/dist/translations/fr.umd.js +1 -1
  33. package/dist/translations/gl.js +1 -1
  34. package/dist/translations/gl.umd.js +1 -1
  35. package/dist/translations/he.js +1 -1
  36. package/dist/translations/he.umd.js +1 -1
  37. package/dist/translations/hi.js +1 -1
  38. package/dist/translations/hi.umd.js +1 -1
  39. package/dist/translations/hr.js +1 -1
  40. package/dist/translations/hr.umd.js +1 -1
  41. package/dist/translations/hu.js +1 -1
  42. package/dist/translations/hu.umd.js +1 -1
  43. package/dist/translations/id.js +1 -1
  44. package/dist/translations/id.umd.js +1 -1
  45. package/dist/translations/it.js +1 -1
  46. package/dist/translations/it.umd.js +1 -1
  47. package/dist/translations/ja.js +1 -1
  48. package/dist/translations/ja.umd.js +1 -1
  49. package/dist/translations/jv.js +1 -1
  50. package/dist/translations/jv.umd.js +1 -1
  51. package/dist/translations/ko.js +1 -1
  52. package/dist/translations/ko.umd.js +1 -1
  53. package/dist/translations/lt.js +1 -1
  54. package/dist/translations/lt.umd.js +1 -1
  55. package/dist/translations/lv.js +1 -1
  56. package/dist/translations/lv.umd.js +1 -1
  57. package/dist/translations/ms.js +1 -1
  58. package/dist/translations/ms.umd.js +1 -1
  59. package/dist/translations/nl.js +1 -1
  60. package/dist/translations/nl.umd.js +1 -1
  61. package/dist/translations/no.js +1 -1
  62. package/dist/translations/no.umd.js +1 -1
  63. package/dist/translations/pl.js +1 -1
  64. package/dist/translations/pl.umd.js +1 -1
  65. package/dist/translations/pt-br.js +1 -1
  66. package/dist/translations/pt-br.umd.js +1 -1
  67. package/dist/translations/pt.js +1 -1
  68. package/dist/translations/pt.umd.js +1 -1
  69. package/dist/translations/ro.js +1 -1
  70. package/dist/translations/ro.umd.js +1 -1
  71. package/dist/translations/ru.js +1 -1
  72. package/dist/translations/ru.umd.js +1 -1
  73. package/dist/translations/sk.js +1 -1
  74. package/dist/translations/sk.umd.js +1 -1
  75. package/dist/translations/sr-latn.js +1 -1
  76. package/dist/translations/sr-latn.umd.js +1 -1
  77. package/dist/translations/sr.js +1 -1
  78. package/dist/translations/sr.umd.js +1 -1
  79. package/dist/translations/sv.js +1 -1
  80. package/dist/translations/sv.umd.js +1 -1
  81. package/dist/translations/th.js +1 -1
  82. package/dist/translations/th.umd.js +1 -1
  83. package/dist/translations/tr.js +1 -1
  84. package/dist/translations/tr.umd.js +1 -1
  85. package/dist/translations/ug.js +1 -1
  86. package/dist/translations/ug.umd.js +1 -1
  87. package/dist/translations/uk.js +1 -1
  88. package/dist/translations/uk.umd.js +1 -1
  89. package/dist/translations/ur.js +1 -1
  90. package/dist/translations/ur.umd.js +1 -1
  91. package/dist/translations/vi.js +1 -1
  92. package/dist/translations/vi.umd.js +1 -1
  93. package/dist/translations/zh-cn.js +1 -1
  94. package/dist/translations/zh-cn.umd.js +1 -1
  95. package/dist/translations/zh.js +1 -1
  96. package/dist/translations/zh.umd.js +1 -1
  97. package/dist/utils/common-translations.d.ts +13 -0
  98. package/dist/utils.d.ts +5 -3
  99. package/lang/translations/sr-latn.po +4 -4
  100. package/package.json +5 -4
  101. package/src/exportword.d.ts +9 -6
  102. package/src/exportword.js +1 -1
  103. package/src/exportwordcommand.js +1 -1
  104. package/src/exportwordui.js +1 -1
  105. package/src/index.js +1 -1
  106. package/src/utils/common-translations.d.ts +9 -0
  107. package/src/utils/common-translations.js +23 -0
  108. package/src/utils.d.ts +5 -3
  109. package/src/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default{'ur':{'dictionary':{'Export\x20to\x20Word':'ورڈ\x20دستاویز\x20برآمد','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'ورڈ\x20دستاویز\x20بناننے\x20میں\x20نقص\x20واقع\x20ہوا۔','Word\x20document\x20export\x20started':'','Word\x20document\x20export\x20failed':'','Word\x20document\x20export\x20successful':'','Exporting\x20Word\x20document':''},'getPluralForm':_0x2afe12=>0x1!=_0x2afe12}};
23
+ export default{'ur':{'dictionary':{'Export\x20to\x20Word':'ورڈ\x20دستاویز\x20برآمد','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'ورڈ\x20دستاویز\x20بناننے\x20میں\x20نقص\x20واقع\x20ہوا۔','Word\x20document\x20export\x20started':'','Word\x20document\x20export\x20failed':'','Word\x20document\x20export\x20successful':'','Exporting\x20Word\x20document':''},'getPluralForm':_0x5e7f79=>0x1!=_0x5e7f79}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x2c1f19=>{const {ur:{dictionary:_0xee1302,getPluralForm:_0x108b8c}}={'ur':{'dictionary':{'Export\x20to\x20Word':'ورڈ\x20دستاویز\x20برآمد','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'ورڈ\x20دستاویز\x20بناننے\x20میں\x20نقص\x20واقع\x20ہوا۔','Word\x20document\x20export\x20started':'','Word\x20document\x20export\x20failed':'','Word\x20document\x20export\x20successful':'','Exporting\x20Word\x20document':''},'getPluralForm':_0x510f45=>0x1!=_0x510f45}};_0x2c1f19['ur']||={'dictionary':{},'getPluralForm':null},_0x2c1f19['ur']['dictionary']=Object['assign'](_0x2c1f19['ur']['dictionary'],_0xee1302),_0x2c1f19['ur']['getPluralForm']=_0x108b8c;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x4b5972=>{const {ur:{dictionary:_0x294d7a,getPluralForm:_0x56d51d}}={'ur':{'dictionary':{'Export\x20to\x20Word':'ورڈ\x20دستاویز\x20برآمد','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'ورڈ\x20دستاویز\x20بناننے\x20میں\x20نقص\x20واقع\x20ہوا۔','Word\x20document\x20export\x20started':'','Word\x20document\x20export\x20failed':'','Word\x20document\x20export\x20successful':'','Exporting\x20Word\x20document':''},'getPluralForm':_0x10b461=>0x1!=_0x10b461}};_0x4b5972['ur']||={'dictionary':{},'getPluralForm':null},_0x4b5972['ur']['dictionary']=Object['assign'](_0x4b5972['ur']['dictionary'],_0x294d7a),_0x4b5972['ur']['getPluralForm']=_0x56d51d;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default{'vi':{'dictionary':{'Export\x20to\x20Word':'Xuất\x20ra\x20định\x20dạng\x20Word','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'Đã\x20xảy\x20ra\x20lỗi\x20khi\x20tạo\x20tệp\x20Word.','Word\x20document\x20export\x20started':'Đã\x20bắt\x20đầu\x20xuất\x20tài\x20liệu\x20Word','Word\x20document\x20export\x20failed':'Không\x20xuất\x20được\x20tài\x20liệu\x20Word','Word\x20document\x20export\x20successful':'Đã\x20xuất\x20tài\x20liệu\x20Word\x20thành\x20công','Exporting\x20Word\x20document':'Đang\x20xuất\x20tài\x20liệu\x20Word'},'getPluralForm':_0x321906=>0x0}};
23
+ export default{'vi':{'dictionary':{'Export\x20to\x20Word':'Xuất\x20ra\x20định\x20dạng\x20Word','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'Đã\x20xảy\x20ra\x20lỗi\x20khi\x20tạo\x20tệp\x20Word.','Word\x20document\x20export\x20started':'Đã\x20bắt\x20đầu\x20xuất\x20tài\x20liệu\x20Word','Word\x20document\x20export\x20failed':'Không\x20xuất\x20được\x20tài\x20liệu\x20Word','Word\x20document\x20export\x20successful':'Đã\x20xuất\x20tài\x20liệu\x20Word\x20thành\x20công','Exporting\x20Word\x20document':'Đang\x20xuất\x20tài\x20liệu\x20Word'},'getPluralForm':_0x59243b=>0x0}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x993fd1=>{const {vi:{dictionary:_0x2c05d7,getPluralForm:_0x4e02cd}}={'vi':{'dictionary':{'Export\x20to\x20Word':'Xuất\x20ra\x20định\x20dạng\x20Word','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'Đã\x20xảy\x20ra\x20lỗi\x20khi\x20tạo\x20tệp\x20Word.','Word\x20document\x20export\x20started':'Đã\x20bắt\x20đầu\x20xuất\x20tài\x20liệu\x20Word','Word\x20document\x20export\x20failed':'Không\x20xuất\x20được\x20tài\x20liệu\x20Word','Word\x20document\x20export\x20successful':'Đã\x20xuất\x20tài\x20liệu\x20Word\x20thành\x20công','Exporting\x20Word\x20document':'Đang\x20xuất\x20tài\x20liệu\x20Word'},'getPluralForm':_0x308737=>0x0}};_0x993fd1['vi']||={'dictionary':{},'getPluralForm':null},_0x993fd1['vi']['dictionary']=Object['assign'](_0x993fd1['vi']['dictionary'],_0x2c05d7),_0x993fd1['vi']['getPluralForm']=_0x4e02cd;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x2b821a=>{const {vi:{dictionary:_0x1176bd,getPluralForm:_0x11cb9f}}={'vi':{'dictionary':{'Export\x20to\x20Word':'Xuất\x20ra\x20định\x20dạng\x20Word','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'Đã\x20xảy\x20ra\x20lỗi\x20khi\x20tạo\x20tệp\x20Word.','Word\x20document\x20export\x20started':'Đã\x20bắt\x20đầu\x20xuất\x20tài\x20liệu\x20Word','Word\x20document\x20export\x20failed':'Không\x20xuất\x20được\x20tài\x20liệu\x20Word','Word\x20document\x20export\x20successful':'Đã\x20xuất\x20tài\x20liệu\x20Word\x20thành\x20công','Exporting\x20Word\x20document':'Đang\x20xuất\x20tài\x20liệu\x20Word'},'getPluralForm':_0x249bef=>0x0}};_0x2b821a['vi']||={'dictionary':{},'getPluralForm':null},_0x2b821a['vi']['dictionary']=Object['assign'](_0x2b821a['vi']['dictionary'],_0x1176bd),_0x2b821a['vi']['getPluralForm']=_0x11cb9f;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default{'zh-cn':{'dictionary':{'Export\x20to\x20Word':'导出Word文档','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'生成Word文档时发生了异常。','Word\x20document\x20export\x20started':'Word\x20文档导出开始','Word\x20document\x20export\x20failed':'Word\x20文档导出失败','Word\x20document\x20export\x20successful':'Word\x20文档导出成功','Exporting\x20Word\x20document':'正在导出\x20Word\x20文档'},'getPluralForm':_0x3c0a7c=>0x0}};
23
+ export default{'zh-cn':{'dictionary':{'Export\x20to\x20Word':'导出Word文档','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'生成Word文档时发生了异常。','Word\x20document\x20export\x20started':'Word\x20文档导出开始','Word\x20document\x20export\x20failed':'Word\x20文档导出失败','Word\x20document\x20export\x20successful':'Word\x20文档导出成功','Exporting\x20Word\x20document':'正在导出\x20Word\x20文档'},'getPluralForm':_0x192626=>0x0}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x444290=>{const {'zh-cn':{dictionary:_0x25ab5f,getPluralForm:_0x3d4657}}={'zh-cn':{'dictionary':{'Export\x20to\x20Word':'导出Word文档','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'生成Word文档时发生了异常。','Word\x20document\x20export\x20started':'Word\x20文档导出开始','Word\x20document\x20export\x20failed':'Word\x20文档导出失败','Word\x20document\x20export\x20successful':'Word\x20文档导出成功','Exporting\x20Word\x20document':'正在导出\x20Word\x20文档'},'getPluralForm':_0x5aeb5f=>0x0}};_0x444290['zh-cn']||={'dictionary':{},'getPluralForm':null},_0x444290['zh-cn']['dictionary']=Object['assign'](_0x444290['zh-cn']['dictionary'],_0x25ab5f),_0x444290['zh-cn']['getPluralForm']=_0x3d4657;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x5df6d3=>{const {'zh-cn':{dictionary:_0x17c729,getPluralForm:_0x30ff16}}={'zh-cn':{'dictionary':{'Export\x20to\x20Word':'导出Word文档','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'生成Word文档时发生了异常。','Word\x20document\x20export\x20started':'Word\x20文档导出开始','Word\x20document\x20export\x20failed':'Word\x20文档导出失败','Word\x20document\x20export\x20successful':'Word\x20文档导出成功','Exporting\x20Word\x20document':'正在导出\x20Word\x20文档'},'getPluralForm':_0x5a4804=>0x0}};_0x5df6d3['zh-cn']||={'dictionary':{},'getPluralForm':null},_0x5df6d3['zh-cn']['dictionary']=Object['assign'](_0x5df6d3['zh-cn']['dictionary'],_0x17c729),_0x5df6d3['zh-cn']['getPluralForm']=_0x30ff16;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default{'zh':{'dictionary':{'Export\x20to\x20Word':'匯出到\x20Word','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'產生\x20Word\x20檔案時出錯。','Word\x20document\x20export\x20started':'Word\x20文件匯出開始','Word\x20document\x20export\x20failed':'Word\x20文件匯出失敗','Word\x20document\x20export\x20successful':'Word\x20文件匯出成功','Exporting\x20Word\x20document':'正在匯出\x20Word\x20文件'},'getPluralForm':_0x4477fb=>0x0}};
23
+ export default{'zh':{'dictionary':{'Export\x20to\x20Word':'匯出到\x20Word','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'產生\x20Word\x20檔案時出錯。','Word\x20document\x20export\x20started':'Word\x20文件匯出開始','Word\x20document\x20export\x20failed':'Word\x20文件匯出失敗','Word\x20document\x20export\x20successful':'Word\x20文件匯出成功','Exporting\x20Word\x20document':'正在匯出\x20Word\x20文件'},'getPluralForm':_0x3b821c=>0x0}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x501866=>{const {zh:{dictionary:_0x163968,getPluralForm:_0x1028d8}}={'zh':{'dictionary':{'Export\x20to\x20Word':'匯出到\x20Word','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'產生\x20Word\x20檔案時出錯。','Word\x20document\x20export\x20started':'Word\x20文件匯出開始','Word\x20document\x20export\x20failed':'Word\x20文件匯出失敗','Word\x20document\x20export\x20successful':'Word\x20文件匯出成功','Exporting\x20Word\x20document':'正在匯出\x20Word\x20文件'},'getPluralForm':_0x33dbce=>0x0}};_0x501866['zh']||={'dictionary':{},'getPluralForm':null},_0x501866['zh']['dictionary']=Object['assign'](_0x501866['zh']['dictionary'],_0x163968),_0x501866['zh']['getPluralForm']=_0x1028d8;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x1cdcf1=>{const {zh:{dictionary:_0x44e43f,getPluralForm:_0x52ea22}}={'zh':{'dictionary':{'Export\x20to\x20Word':'匯出到\x20Word','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'產生\x20Word\x20檔案時出錯。','Word\x20document\x20export\x20started':'Word\x20文件匯出開始','Word\x20document\x20export\x20failed':'Word\x20文件匯出失敗','Word\x20document\x20export\x20successful':'Word\x20文件匯出成功','Exporting\x20Word\x20document':'正在匯出\x20Word\x20文件'},'getPluralForm':_0x5c244e=>0x0}};_0x1cdcf1['zh']||={'dictionary':{},'getPluralForm':null},_0x1cdcf1['zh']['dictionary']=Object['assign'](_0x1cdcf1['zh']['dictionary'],_0x44e43f),_0x1cdcf1['zh']['getPluralForm']=_0x52ea22;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module export-word/utils/common-translations
11
+ */
12
+ import type { Locale } from 'ckeditor5/src/utils.js';
13
+ export declare function getTranslation(locale: Locale, id: string): string;
package/dist/utils.d.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  */
9
9
  import type { Editor } from 'ckeditor5/src/core.js';
10
10
  import type { Collection } from 'ckeditor5/src/utils.js';
11
- import type { ExportWordConverterOptions, ExportWordConverterCommentsOption, ExportWordConverterSuggestionsOption, ExportWordConverterCommentsThreadOptionsV2, ExportWordConverterOptionsV2, ExportWordConverterSuggestionsOptionsV2 } from './exportword.js';
11
+ import type { ExportWordConverterOptions, ExportWordConverterInternalOptions, ExportWordConverterCommentsOption, ExportWordConverterSuggestionsOption, ExportWordConverterCommentsThreadOptionsV2, ExportWordConverterOptionsV2, ExportWordConverterInternalOptionsV2, ExportWordConverterSuggestionsOptionsV2 } from './exportword.js';
12
12
  import type { CommentThread } from '@ckeditor/ckeditor5-comments';
13
13
  import type { SuggestionJSON } from '@ckeditor/ckeditor5-track-changes';
14
14
  import type { User } from '@ckeditor/ckeditor5-collaboration-core';
@@ -23,8 +23,9 @@ export declare function getStyles(stylesheets?: Array<string>): Promise<string>;
23
23
  * comments, suggestions and the browser's timezone for the "Export to Word" converter.
24
24
  *
25
25
  * @param editor An editor instance.
26
+ * @param converterOptionsFromConfig Converter options passed through `editor.config.exportWord.converterOptions`.
26
27
  */
27
- export declare function getConverterOptions(editor: Editor): ExportWordConverterOptions;
28
+ export declare function getConverterOptions(editor: Editor, converterOptionsFromConfig?: ExportWordConverterOptions): ExportWordConverterInternalOptions;
28
29
  /**
29
30
  * A helper function for getting a comments object for the converter options.
30
31
  *
@@ -43,8 +44,9 @@ export declare function getSuggestions(suggestions: Array<SuggestionJSON>, users
43
44
  * comments, suggestions and the browser's timezone for the "Export to Word" converter for V2 API.
44
45
  *
45
46
  * @param editor An editor instance.
47
+ * @param converterOptionsFromConfig Converter options passed through `editor.config.exportWord.converterOptions`.
46
48
  */
47
- export declare function getConverterOptionsV2(editor: Editor): ExportWordConverterOptionsV2;
49
+ export declare function getConverterOptionsV2(editor: Editor, converterOptionsFromConfig?: ExportWordConverterOptionsV2): ExportWordConverterInternalOptionsV2;
48
50
  /**
49
51
  * A helper function for getting a comments object for the converter options in V2 API.
50
52
  *
@@ -27,16 +27,16 @@ msgstr "Došlo je do greške pri generisanju Word datoteke."
27
27
 
28
28
  msgctxt "Aria status message indicating start of word document export. Example: 'Word document export started'."
29
29
  msgid "Word document export started"
30
- msgstr ""
30
+ msgstr "Počeo je izvoz Vord dokumenta"
31
31
 
32
32
  msgctxt "Aria status message indicating failed Word document export. Example: 'Word document export failed'."
33
33
  msgid "Word document export failed"
34
- msgstr ""
34
+ msgstr "Izvoz Vord dokumenta nije uspeo"
35
35
 
36
36
  msgctxt "Aria status message indicating successful Word document export. Example: 'Word document export successful'."
37
37
  msgid "Word document export successful"
38
- msgstr ""
38
+ msgstr "Izvoz Vord dokumenta je uspeo"
39
39
 
40
40
  msgctxt "Aria label set on Export to Word button while exporting the Word file."
41
41
  msgid "Exporting Word document"
42
- msgstr ""
42
+ msgstr "Izvoz Vord dokumenta"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-export-word",
3
- "version": "42.0.2-alpha.2",
3
+ "version": "43.0.0-alpha.0",
4
4
  "description": "Export to Word feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -30,9 +30,10 @@
30
30
  "type": "module",
31
31
  "main": "src/index.js",
32
32
  "dependencies": {
33
- "@ckeditor/ckeditor5-core": "42.0.2-alpha.2",
34
- "@ckeditor/ckeditor5-ui": "42.0.2-alpha.2",
35
- "ckeditor5": "42.0.2-alpha.2"
33
+ "@ckeditor/ckeditor5-core": "43.0.0-alpha.0",
34
+ "@ckeditor/ckeditor5-utils": "43.0.0-alpha.0",
35
+ "@ckeditor/ckeditor5-ui": "43.0.0-alpha.0",
36
+ "ckeditor5": "43.0.0-alpha.0"
36
37
  },
37
38
  "license": "SEE LICENSE IN LICENSE.md",
38
39
  "author": "CKSource (https://cksource.com/)",
@@ -151,7 +151,6 @@ export interface ExportWordConfig {
151
151
  * orientation: 'portrait',
152
152
  * auto_pagination: true,
153
153
  * base_url: undefined,
154
- * timezone: 'UTC'
155
154
  * }`
156
155
  */
157
156
  converterOptions?: ExportWordConverterOptions | ExportWordConverterOptionsV2;
@@ -213,7 +212,6 @@ export type ExportWordConverterOptions = {
213
212
  orientation?: ExportWordConverterOrientationOption;
214
213
  auto_pagination?: boolean;
215
214
  base_url?: string;
216
- timezone?: string;
217
215
  };
218
216
  export type ExportWordConverterFormatOption = 'Letter' | 'Legal' | 'Tabloid' | 'Statement' | 'Executive' | 'A3' | 'A4' | 'A5' | 'A6' | 'B4' | 'B5' | string & Record<never, never>;
219
217
  export type ExportWordConverterOrientationOption = 'portrait' | 'landscape' | string & Record<never, never>;
@@ -238,17 +236,17 @@ export type ExportWordConverterSuggestionsOption = {
238
236
  };
239
237
  export type ExportWordConverterOptionsV2 = {
240
238
  document?: ExportWordConverterDocumentOptionsV2;
241
- header?: ExportWordConverterHeaderFooterOptionsV2;
242
- footer?: ExportWordConverterHeaderFooterOptionsV2;
243
- collaboration_features?: ExportWordConverterCollaborationFeaturesOptionsV2;
239
+ headers?: ExportWordConverterHeaderFooterOptionsV2;
240
+ footers?: ExportWordConverterHeaderFooterOptionsV2;
244
241
  extra_http_headers?: ExportWordConverterExtraHttpHeaders;
245
- timezone?: string;
246
242
  base_url?: string;
243
+ auto_pagination?: boolean;
247
244
  };
248
245
  export type ExportWordConverterDocumentOptionsV2 = {
249
246
  margins?: ExportWordConverterMarginsOptionsV2;
250
247
  size?: ExportWordConverterFormatOptionsV2;
251
248
  orientation?: ExportWordConverterOrientationOptionsV2;
249
+ language?: string;
252
250
  };
253
251
  export type ExportWordConverterMarginsOptionsV2 = {
254
252
  top?: string;
@@ -313,3 +311,8 @@ export type ExportWordConverterSuggestionsOptionsV2 = Array<{
313
311
  author: string;
314
312
  created_at: Date | null;
315
313
  }>;
314
+ export type ExportWordConverterMergeFieldsOptionsV2 = {
315
+ prefix: string;
316
+ suffix: string;
317
+ data?: Record<string, string>;
318
+ };
package/src/exportword.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd0ab72=_0x9269;(function(_0x8dcfe5,_0xeaf79d){const _0x243a3c=_0x9269,_0x569591=_0x8dcfe5();while(!![]){try{const _0x50365c=-parseInt(_0x243a3c(0x155))/0x1+parseInt(_0x243a3c(0x156))/0x2*(parseInt(_0x243a3c(0x142))/0x3)+parseInt(_0x243a3c(0x149))/0x4+parseInt(_0x243a3c(0x159))/0x5*(-parseInt(_0x243a3c(0x14d))/0x6)+parseInt(_0x243a3c(0x150))/0x7*(parseInt(_0x243a3c(0x15a))/0x8)+parseInt(_0x243a3c(0x147))/0x9*(-parseInt(_0x243a3c(0x148))/0xa)+parseInt(_0x243a3c(0x151))/0xb*(parseInt(_0x243a3c(0x15e))/0xc);if(_0x50365c===_0xeaf79d)break;else _0x569591['push'](_0x569591['shift']());}catch(_0xd93c02){_0x569591['push'](_0x569591['shift']());}}}(_0x4317,0xe3c0a));function _0x9269(_0x376215,_0x374bd2){const _0x43176c=_0x4317();return _0x9269=function(_0x926970,_0x65bef5){_0x926970=_0x926970-0x142;let _0x10358c=_0x43176c[_0x926970];return _0x10358c;},_0x9269(_0x376215,_0x374bd2);}import{Plugin as _0x3f3fd9}from'ckeditor5/src/core.js';import{Notification as _0x51f377}from'ckeditor5/src/ui.js';import _0x3072a6 from'./exportwordcommand.js';import _0x4719c9 from'./exportwordui.js';export default class s extends _0x3f3fd9{static get[_0xd0ab72(0x15d)](){const _0x638f64=_0xd0ab72;return _0x638f64(0x144);}static get[_0xd0ab72(0x15b)](){const _0x5c7d16=_0xd0ab72;return[_0x5c7d16(0x153),_0x51f377,_0x4719c9];}[_0xd0ab72(0x14f)](){const _0x46e479=_0xd0ab72,_0x195081=this[_0x46e479(0x146)],_0x5ee605=_0x195081[_0x46e479(0x14c)][_0x46e479(0x154)](_0x46e479(0x15c))||{};_0x195081[_0x46e479(0x157)][_0x46e479(0x145)](_0x46e479(0x15c),new _0x3072a6(_0x195081));const _0x124e02=_0x195081[_0x46e479(0x158)][_0x46e479(0x154)](_0x46e479(0x153));!0x1===_0x5ee605[_0x46e479(0x143)]?this[_0x46e479(0x14e)]=null:_0x5ee605[_0x46e479(0x143)]?_0x124e02[_0x46e479(0x14a)](_0x5ee605[_0x46e479(0x143)])[_0x46e479(0x14b)](_0x1799a7=>{const _0xb6fd51=_0x46e479;this[_0xb6fd51(0x14e)]=_0x1799a7;}):this[_0x46e479(0x14e)]=_0x124e02[_0x46e479(0x152)];}}function _0x4317(){const _0x4e86e4=['5bZpspC','1027496pRQahG','requires','exportWord','pluginName','1728PBnNqD','9981uMOwqP','tokenUrl','ExportWord','add','editor','10145079nfzGhV','10pRIhAo','6201252NiPASN','registerTokenUrl','then','config','9124122xNdGsk','_token','init','14KHoojG','150172TdZQYe','token','CloudServices','get','1612912xqneNb','854RTjfPh','commands','plugins'];_0x4317=function(){return _0x4e86e4;};return _0x4317();}
23
+ function _0x4b43(_0x1cd618,_0x239470){const _0x3d8371=_0x3d83();return _0x4b43=function(_0x4b43ee,_0x30ff39){_0x4b43ee=_0x4b43ee-0x1e3;let _0x381a25=_0x3d8371[_0x4b43ee];return _0x381a25;},_0x4b43(_0x1cd618,_0x239470);}const _0x13dfad=_0x4b43;(function(_0x2771fe,_0x1b81a1){const _0x14b9bc=_0x4b43,_0x44086b=_0x2771fe();while(!![]){try{const _0x2ab53a=-parseInt(_0x14b9bc(0x1fb))/0x1*(parseInt(_0x14b9bc(0x1fa))/0x2)+parseInt(_0x14b9bc(0x1ed))/0x3+-parseInt(_0x14b9bc(0x1f6))/0x4*(-parseInt(_0x14b9bc(0x1fd))/0x5)+-parseInt(_0x14b9bc(0x1e5))/0x6+-parseInt(_0x14b9bc(0x1f5))/0x7*(parseInt(_0x14b9bc(0x1eb))/0x8)+parseInt(_0x14b9bc(0x1f7))/0x9+parseInt(_0x14b9bc(0x1ef))/0xa;if(_0x2ab53a===_0x1b81a1)break;else _0x44086b['push'](_0x44086b['shift']());}catch(_0x16daf9){_0x44086b['push'](_0x44086b['shift']());}}}(_0x3d83,0x569de));import{Plugin as _0x4b0d3d}from'ckeditor5/src/core.js';import{Notification as _0x1b8013}from'ckeditor5/src/ui.js';function _0x3d83(){const _0x40697a=['77thFdjX','tokenUrl','75xgrIcr','editor','exportWord','3512226nSrMmG','pluginName','init','then','token','_token','4607992KOEEHG','CloudServices','373428jGkECG','plugins','17324690VDxMok','add','requires','config','commands','ExportWord','7HmUFHM','28652kvzTUz','1891701bIWnaO','get','registerTokenUrl','17102FXrWda'];_0x3d83=function(){return _0x40697a;};return _0x3d83();}import _0x35d644 from'./exportwordcommand.js';import _0x569a5a from'./exportwordui.js';export default class s extends _0x4b0d3d{static get[_0x13dfad(0x1e6)](){const _0x4730c0=_0x13dfad;return _0x4730c0(0x1f4);}static get[_0x13dfad(0x1f1)](){const _0x50e998=_0x13dfad;return[_0x50e998(0x1ec),_0x1b8013,_0x569a5a];}[_0x13dfad(0x1e7)](){const _0x591f08=_0x13dfad,_0x142f68=this[_0x591f08(0x1e3)],_0x200c95=_0x142f68[_0x591f08(0x1f2)][_0x591f08(0x1f8)](_0x591f08(0x1e4))||{};_0x142f68[_0x591f08(0x1f3)][_0x591f08(0x1f0)](_0x591f08(0x1e4),new _0x35d644(_0x142f68));const _0x5ee6d0=_0x142f68[_0x591f08(0x1ee)][_0x591f08(0x1f8)](_0x591f08(0x1ec));!0x1===_0x200c95[_0x591f08(0x1fc)]?this[_0x591f08(0x1ea)]=null:_0x200c95[_0x591f08(0x1fc)]?_0x5ee6d0[_0x591f08(0x1f9)](_0x200c95[_0x591f08(0x1fc)])[_0x591f08(0x1e8)](_0xe9268=>{const _0x39b097=_0x591f08;this[_0x39b097(0x1ea)]=_0xe9268;}):this[_0x591f08(0x1ea)]=_0x5ee6d0[_0x591f08(0x1e9)];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x4efec4}from'ckeditor5/src/core.js';import{getStyles as _0x5a272e,getConverterOptions as _0xd27396,getConverterOptionsV2 as _0x3a3a85}from'./utils.js';export default class e extends _0x4efec4{constructor(_0x555f1c){super(_0x555f1c),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x116892={}){const _0xa7babf=this['editor'],t=_0xa7babf['t'],_0x123faf=0x2===(_0x116892['version']||0x1),_0x4e4303=_0x116892['converterUrl']||(_0x123faf?'https://docx-converter.cke-cs.com/v2/convert/html-docx':'https://docx-converter.cke-cs.com/v1/convert'),_0x4eb338=_0x116892['converterOptions']||{},_0x192f16=_0xa7babf['plugins']['get']('ExportWord'),_0x4cc4a6=_0x116892['token']||_0x192f16['_token'],_0x1303ae=!0x1!==_0x4eb338['auto_pagination'],_0xfbfdd1=_0x116892['dataCallback']||(_0x2c2c0a=>_0x2c2c0a['data']['get']({'pagination':_0x1303ae}));return this['isBusy']=!0x0,this['refresh'](),_0x5a272e(_0x116892['stylesheets']||['EDITOR_STYLES'])['then'](async _0x545bbf=>{_0xa7babf['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20started'));const _0x4f07a0=await _0xfbfdd1(_0xa7babf),_0x1bc57c={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0xa7babf['locale']['contentLanguageDirection']+'\x22>'+_0x4f07a0+'</div>','css':_0x545bbf,[_0x123faf?'config':'options']:{..._0x4eb338,..._0x123faf?_0x3a3a85(_0xa7babf):_0xd27396(_0xa7babf)}},_0x52cc98={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0x4cc4a6?{'Authorization':_0x4cc4a6['value']}:null},'body':JSON['stringify'](_0x1bc57c)};return window['fetch'](_0x4e4303,_0x52cc98)['then'](_0x485a28=>{if(0xc8!==_0x485a28['status'])throw _0x485a28;return _0x485a28['blob']();})['then'](_0x2f1467=>{_0xa7babf['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20successful'));const _0x5c7055='function'==typeof _0x116892['fileName']?_0x116892['fileName']():_0x116892['fileName'];this['_downloadFile'](_0x2f1467,_0x5c7055||'document.docx');});})['catch'](_0x566525=>{const _0x36740a=_0xa7babf['plugins']['get']('Notification');throw _0xa7babf['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20failed'),{'politeness':'assertive'}),_0x36740a['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0x566525;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x5729ec,_0x4102e2){const _0x3b31bd=document['createElement']('a');_0x3b31bd['href']=window['URL']['createObjectURL'](_0x5729ec),_0x3b31bd['download']=_0x4102e2,_0x3b31bd['click'](),_0x3b31bd['remove']();}}
23
+ const _0xd7f109=_0x316e;(function(_0x480cae,_0x59efa2){const _0x111c6c=_0x316e,_0x4bb1fa=_0x480cae();while(!![]){try{const _0x271436=parseInt(_0x111c6c(0x1f1))/0x1*(parseInt(_0x111c6c(0x1e3))/0x2)+-parseInt(_0x111c6c(0x1ed))/0x3+parseInt(_0x111c6c(0x1cb))/0x4+parseInt(_0x111c6c(0x1ec))/0x5*(parseInt(_0x111c6c(0x20a))/0x6)+-parseInt(_0x111c6c(0x1f4))/0x7*(-parseInt(_0x111c6c(0x1fb))/0x8)+parseInt(_0x111c6c(0x1dd))/0x9*(-parseInt(_0x111c6c(0x1e0))/0xa)+parseInt(_0x111c6c(0x1fe))/0xb*(parseInt(_0x111c6c(0x1d2))/0xc);if(_0x271436===_0x59efa2)break;else _0x4bb1fa['push'](_0x4bb1fa['shift']());}catch(_0x5d0c37){_0x4bb1fa['push'](_0x4bb1fa['shift']());}}}(_0x5404,0x2c359));import{Command as _0x49a82b}from'ckeditor5/src/core.js';import{logWarning as _0x1aa5dc}from'ckeditor5/src/utils.js';function _0x316e(_0x5a1a18,_0x4f3070){const _0x540443=_0x5404();return _0x316e=function(_0x316edc,_0x36257c){_0x316edc=_0x316edc-0x1bf;let _0x5af23a=_0x540443[_0x316edc];return _0x5af23a;},_0x316e(_0x5a1a18,_0x4f3070);}import{getStyles as _0x377c64,getConverterOptions as _0x467ea7,getConverterOptionsV2 as _0x105447}from'./utils.js';import{getTranslation as _0x3d1d7e}from'./utils/common-translations.js';const h=[_0xd7f109(0x1d1),_0xd7f109(0x1c0),_0xd7f109(0x1e7),_0xd7f109(0x1d3),_0xd7f109(0x1ff),_0xd7f109(0x1df),_0xd7f109(0x210),_0xd7f109(0x1fc),_0xd7f109(0x205),_0xd7f109(0x1ee)];export default class e extends _0x49a82b{constructor(_0xa87abe){const _0x2243c6=_0xd7f109;super(_0xa87abe),this[_0x2243c6(0x1e6)](_0x2243c6(0x1c2),!0x1),this[_0x2243c6(0x1fd)]=!0x1;}[_0xd7f109(0x1e9)](){const _0x2ab380=_0xd7f109;this[_0x2ab380(0x204)]=!this[_0x2ab380(0x1c2)],this[_0x2ab380(0x1cf)]=this[_0x2ab380(0x1c2)]?_0x2ab380(0x1bf):void 0x0;}[_0xd7f109(0x1dc)](_0x4ef25f={}){const _0x14b30f=_0xd7f109,_0x3eb94c=this[_0x14b30f(0x1e8)],_0x2b381d=_0x4ef25f[_0x14b30f(0x1eb)]||0x2,_0x5eef4a=0x1===_0x2b381d,_0x25064e=_0x4ef25f[_0x14b30f(0x1d5)]||(_0x5eef4a?_0x14b30f(0x1cd):_0x14b30f(0x1ca)),_0x516489=_0x4ef25f[_0x14b30f(0x1d7)]||{},_0x9ea04e=_0x3eb94c[_0x14b30f(0x1f7)][_0x14b30f(0x1c7)](_0x14b30f(0x20d)),_0x345ff7=_0x4ef25f[_0x14b30f(0x1de)]||_0x9ea04e[_0x14b30f(0x201)],_0x4758dc=!0x0===_0x516489[_0x14b30f(0x208)],_0xc05be4=_0x4ef25f[_0x14b30f(0x1e2)]||(_0x2d7a12=>_0x2d7a12[_0x14b30f(0x1c8)][_0x14b30f(0x1c7)]({'pagination':_0x4758dc}));return 0x2===_0x2b381d&&function(_0x1057a5){for(const _0x1877a3 of h)if(void 0x0!==_0x1057a5[_0x1877a3])return!0x0;return!0x1;}(_0x516489)&&_0x1aa5dc(_0x14b30f(0x1f6)),this[_0x14b30f(0x1c2)]=!0x0,this[_0x14b30f(0x1e9)](),_0x377c64(_0x4ef25f[_0x14b30f(0x1c1)]||[_0x14b30f(0x209)])[_0x14b30f(0x1cc)](async _0xe1605a=>{const _0x5f4caa=_0x14b30f;_0x3eb94c['ui'][_0x5f4caa(0x1c6)][_0x5f4caa(0x1e4)](_0x3d1d7e(_0x3eb94c[_0x5f4caa(0x1c5)],_0x5f4caa(0x200)));const _0x43c2d1=await _0xc05be4(_0x3eb94c),_0x419f4f={'html':_0x5f4caa(0x207)+_0x3eb94c[_0x5f4caa(0x1c5)][_0x5f4caa(0x1d0)]+'\x22>'+_0x43c2d1+_0x5f4caa(0x1f2),'css':_0xe1605a,[_0x5eef4a?_0x5f4caa(0x1ce):_0x5f4caa(0x1c4)]:{..._0x516489,..._0x5eef4a?_0x467ea7(_0x3eb94c,_0x516489):_0x105447(_0x3eb94c,_0x516489)}},_0x14cfb8={'method':_0x5f4caa(0x20c),'headers':{'Content-Type':_0x5f4caa(0x1fa),'Accept':_0x5f4caa(0x211),..._0x345ff7?{'Authorization':_0x345ff7[_0x5f4caa(0x1cf)]}:null},'body':JSON[_0x5f4caa(0x1d4)](_0x419f4f)};return window[_0x5f4caa(0x20f)](_0x25064e,_0x14cfb8)[_0x5f4caa(0x1cc)](_0x1d4f20=>{const _0x4dda83=_0x5f4caa;if(0xc8!==_0x1d4f20[_0x4dda83(0x1ea)])throw _0x1d4f20;return _0x1d4f20[_0x4dda83(0x206)]();})[_0x5f4caa(0x1cc)](_0x330a17=>{const _0x2935bc=_0x5f4caa;_0x3eb94c['ui'][_0x2935bc(0x1c6)][_0x2935bc(0x1e4)](_0x3d1d7e(_0x3eb94c[_0x2935bc(0x1c5)],_0x2935bc(0x1c9)));const _0x25028e=_0x2935bc(0x20e)==typeof _0x4ef25f[_0x2935bc(0x1d6)]?_0x4ef25f[_0x2935bc(0x1d6)]():_0x4ef25f[_0x2935bc(0x1d6)];this[_0x2935bc(0x1c3)](_0x330a17,_0x25028e||_0x2935bc(0x1f5));});})[_0x14b30f(0x202)](_0x16ce61=>{const _0x3848b0=_0x14b30f,_0x56e092=_0x3eb94c[_0x3848b0(0x1f7)][_0x3848b0(0x1c7)](_0x3848b0(0x1e1));throw _0x3eb94c['ui'][_0x3848b0(0x1c6)][_0x3848b0(0x1e4)](_0x3d1d7e(_0x3eb94c[_0x3848b0(0x1c5)],_0x3848b0(0x1f9)),{'politeness':_0x3848b0(0x20b)}),_0x56e092[_0x3848b0(0x1f3)](_0x3d1d7e(_0x3eb94c[_0x3848b0(0x1c5)],_0x3848b0(0x1e5))),_0x16ce61;})[_0x14b30f(0x1da)](()=>{const _0x186c55=_0x14b30f;this[_0x186c55(0x1c2)]=!0x1,this[_0x186c55(0x1e9)]();});}[_0xd7f109(0x1c3)](_0x220c75,_0x4e734d){const _0x4efc7e=_0xd7f109,_0x50d7b3=document[_0x4efc7e(0x1ef)]('a');_0x50d7b3[_0x4efc7e(0x1db)]=window[_0x4efc7e(0x1f0)][_0x4efc7e(0x203)](_0x220c75),_0x50d7b3[_0x4efc7e(0x1d8)]=_0x4e734d,_0x50d7b3[_0x4efc7e(0x1f8)](),_0x50d7b3[_0x4efc7e(0x1d9)]();}}function _0x5404(){const _0x5e7f69=['1021485inFyca','suggestions','createElement','URL','1rnUfzz','</div>','showWarning','368648yXFOIL','document.docx','export-word-v1-api-is-deprecated','plugins','click','Word\x20document\x20export\x20failed','application/json','8GwlQne','footer','affectsData','11UCwjcG','margin_left','Word\x20document\x20export\x20started','_token','catch','createObjectURL','isEnabled','comments','blob','<div\x20class=\x22ck-content\x22\x20dir=\x22','auto_pagination','EDITOR_STYLES','1375722poEDRA','assertive','POST','ExportWord','function','fetch','header','application/docx','pending','margin_top','stylesheets','isBusy','_downloadFile','config','locale','ariaLiveAnnouncer','get','data','Word\x20document\x20export\x20successful','https://docx-converter.cke-cs.com/v2/convert/html-docx','335720ESIDmD','then','https://docx-converter.cke-cs.com/v1/convert','options','value','contentLanguageDirection','orientation','2811396zyPTGT','margin_bottom','stringify','converterUrl','fileName','converterOptions','download','remove','finally','href','execute','9XedaUl','token','format','2741450AENiri','Notification','dataCallback','391114jOSrRm','announce','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.','set','margin_right','editor','refresh','status','version','5UHagVH'];_0x5404=function(){return _0x5e7f69;};return _0x5404();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x30c3f2}from'ckeditor5/src/core.js';import{ButtonView as _0x590d8b,MenuBarMenuListItemButtonView as _0x5c3f02,SpinnerView as _0x12a7b8}from'ckeditor5/src/ui.js';import _0x3b5377 from'../theme/icons/exportword.svg';export default class i extends _0x30c3f2{static get['pluginName'](){return'ExportWordUI';}['init'](){const _0x1fe04f=this['editor'];_0x1fe04f['ui']['componentFactory']['add']('exportWord',()=>{const _0x5e3c57=_0x1fe04f['commands']['get']('exportWord'),_0x55c128=this['_createButton'](_0x590d8b);return _0x55c128['set']({'tooltip':!0x0}),_0x55c128['bind']('isOn')['to'](_0x5e3c57,'isBusy'),_0x55c128;}),_0x1fe04f['ui']['componentFactory']['add']('menuBar:exportWord',()=>this['_createButton'](_0x5c3f02));}['_createButton'](_0x50d372){const _0x113166=this['editor'],_0x25ec83=_0x113166['config']['get']('exportWord')||{},t=_0x113166['locale']['t'],_0x4c837d=_0x113166['commands']['get']('exportWord'),_0x43aaf0=new _0x50d372(_0x113166['locale']),_0x434fe6=new _0x12a7b8();return _0x43aaf0['children']['add'](_0x434fe6),_0x434fe6['bind']('isVisible')['to'](_0x4c837d,'isBusy'),_0x43aaf0['iconView']['bind']('isVisible')['to'](_0x4c837d,'isBusy',_0x291c88=>!_0x291c88),_0x43aaf0['set']({'icon':_0x3b5377}),_0x43aaf0['bind']('isEnabled')['to'](_0x4c837d,'isEnabled'),_0x43aaf0['bind']('label')['to'](_0x4c837d,'isBusy',_0x51eac8=>t(_0x51eac8?'Exporting\x20Word\x20document':'Export\x20to\x20Word')),this['listenTo'](_0x43aaf0,'execute',()=>{_0x113166['execute']('exportWord',_0x25ec83),_0x113166['editing']['view']['focus']();}),_0x43aaf0;}}
23
+ const _0x234b1b=_0x355c;(function(_0x437ee8,_0x5a5da3){const _0x190dbb=_0x355c,_0xf2b69e=_0x437ee8();while(!![]){try{const _0x343a98=parseInt(_0x190dbb(0xe0))/0x1+parseInt(_0x190dbb(0xe6))/0x2*(-parseInt(_0x190dbb(0xe8))/0x3)+-parseInt(_0x190dbb(0xd3))/0x4+-parseInt(_0x190dbb(0xcf))/0x5+parseInt(_0x190dbb(0xd4))/0x6+parseInt(_0x190dbb(0xdd))/0x7*(parseInt(_0x190dbb(0xeb))/0x8)+parseInt(_0x190dbb(0xd2))/0x9*(parseInt(_0x190dbb(0xed))/0xa);if(_0x343a98===_0x5a5da3)break;else _0xf2b69e['push'](_0xf2b69e['shift']());}catch(_0x54a14e){_0xf2b69e['push'](_0xf2b69e['shift']());}}}(_0x10eb,0x35608));import{Plugin as _0x4fd1d3}from'ckeditor5/src/core.js';function _0x355c(_0x36bcb5,_0x3927ff){const _0x10ebf8=_0x10eb();return _0x355c=function(_0x355cad,_0xf18ae){_0x355cad=_0x355cad-0xce;let _0x17478a=_0x10ebf8[_0x355cad];return _0x17478a;},_0x355c(_0x36bcb5,_0x3927ff);}import{ButtonView as _0x3ada69,MenuBarMenuListItemButtonView as _0x3ff54d,SpinnerView as _0x9c77aa}from'ckeditor5/src/ui.js';import _0x59691d from'../theme/icons/exportword.svg';function _0x10eb(){const _0x224a71=['49iyghqr','execute','commands','256016NlWkBB','focus','config','editor','Exporting\x20Word\x20document','label','53594NPDAMw','bind','33AfIPig','isEnabled','pluginName','94152kVOKio','_createButton','3669410FIjCOZ','iconView','add','set','get','listenTo','isOn','editing','isBusy','576225CdgQZp','locale','exportWord','9SDPdjJ','439076gByJmM','198438HKPdda','init','componentFactory','ExportWordUI','Export\x20to\x20Word','menuBar:exportWord','view','children','isVisible'];_0x10eb=function(){return _0x224a71;};return _0x10eb();}import{getTranslation as _0x6be98e}from'./utils/common-translations.js';export default class i extends _0x4fd1d3{static get[_0x234b1b(0xea)](){const _0x3c3648=_0x234b1b;return _0x3c3648(0xd7);}[_0x234b1b(0xd5)](){const _0x535c59=_0x234b1b,_0x3270e3=this[_0x535c59(0xe3)];_0x3270e3['ui'][_0x535c59(0xd6)][_0x535c59(0xef)](_0x535c59(0xd1),()=>{const _0x44c284=_0x535c59,_0x22d7b3=_0x3270e3[_0x44c284(0xdf)][_0x44c284(0xf1)](_0x44c284(0xd1)),_0x5b406b=this[_0x44c284(0xec)](_0x3ada69);return _0x5b406b[_0x44c284(0xf0)]({'tooltip':!0x0}),_0x5b406b[_0x44c284(0xe7)](_0x44c284(0xf3))['to'](_0x22d7b3,_0x44c284(0xce)),_0x5b406b;}),_0x3270e3['ui'][_0x535c59(0xd6)][_0x535c59(0xef)](_0x535c59(0xd9),()=>this[_0x535c59(0xec)](_0x3ff54d));}[_0x234b1b(0xec)](_0x4a4938){const _0x4110c3=_0x234b1b,_0x56222c=this[_0x4110c3(0xe3)],_0x14623a=_0x56222c[_0x4110c3(0xe2)][_0x4110c3(0xf1)](_0x4110c3(0xd1))||{},_0x522430=_0x56222c[_0x4110c3(0xdf)][_0x4110c3(0xf1)](_0x4110c3(0xd1)),_0x4b00f9=new _0x4a4938(_0x56222c[_0x4110c3(0xd0)]),_0x46e23a=new _0x9c77aa();return _0x4b00f9[_0x4110c3(0xdb)][_0x4110c3(0xef)](_0x46e23a),_0x46e23a[_0x4110c3(0xe7)](_0x4110c3(0xdc))['to'](_0x522430,_0x4110c3(0xce)),_0x4b00f9[_0x4110c3(0xee)][_0x4110c3(0xe7)](_0x4110c3(0xdc))['to'](_0x522430,_0x4110c3(0xce),_0x20b6f3=>!_0x20b6f3),_0x4b00f9[_0x4110c3(0xf0)]({'icon':_0x59691d}),_0x4b00f9[_0x4110c3(0xe7)](_0x4110c3(0xe9))['to'](_0x522430,_0x4110c3(0xe9)),_0x4b00f9[_0x4110c3(0xe7)](_0x4110c3(0xe5))['to'](_0x522430,_0x4110c3(0xce),_0xed0343=>_0x6be98e(_0x56222c[_0x4110c3(0xd0)],_0xed0343?_0x4110c3(0xe4):_0x4110c3(0xd8))),this[_0x4110c3(0xf2)](_0x4b00f9,_0x4110c3(0xde),()=>{const _0x3542d0=_0x4110c3;_0x56222c[_0x3542d0(0xde)](_0x3542d0(0xd1),_0x14623a),_0x56222c[_0x3542d0(0xf4)][_0x3542d0(0xda)][_0x3542d0(0xe1)]();}),_0x4b00f9;}}
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x34299e,_0x40a8b3){var _0x171a63=_0x1ce9,_0x6d4512=_0x34299e();while(!![]){try{var _0x5827b3=-parseInt(_0x171a63(0x1dd))/0x1*(parseInt(_0x171a63(0x1d2))/0x2)+-parseInt(_0x171a63(0x1d9))/0x3*(-parseInt(_0x171a63(0x1d4))/0x4)+parseInt(_0x171a63(0x1d1))/0x5*(-parseInt(_0x171a63(0x1d6))/0x6)+parseInt(_0x171a63(0x1d7))/0x7*(-parseInt(_0x171a63(0x1db))/0x8)+parseInt(_0x171a63(0x1da))/0x9*(parseInt(_0x171a63(0x1d3))/0xa)+parseInt(_0x171a63(0x1d8))/0xb+parseInt(_0x171a63(0x1dc))/0xc*(parseInt(_0x171a63(0x1d5))/0xd);if(_0x5827b3===_0x40a8b3)break;else _0x6d4512['push'](_0x6d4512['shift']());}catch(_0x293270){_0x6d4512['push'](_0x6d4512['shift']());}}}(_0x2781,0xaaeb3));export{default as ExportWord}from'./exportword.js';function _0x1ce9(_0x12051b,_0x283b82){var _0x27813e=_0x2781();return _0x1ce9=function(_0x1ce905,_0x39bc94){_0x1ce905=_0x1ce905-0x1d1;var _0x38b1c9=_0x27813e[_0x1ce905];return _0x38b1c9;},_0x1ce9(_0x12051b,_0x283b82);}import'./augmentation.js';function _0x2781(){var _0x384999=['6nMciWm','2331090SVhFEx','100DuFymC','13aDfKxj','6viLieg','116543saMNNV','2434828TJQudX','141054Mqngkk','27uDiMHT','256RXdkJA','6504468wttGBr','202016XsXxxT','3996325bDBmXe'];_0x2781=function(){return _0x384999;};return _0x2781();}
23
+ (function(_0x590c1c,_0x5e8bbc){var _0xf994a3=_0x3701,_0x14fa09=_0x590c1c();while(!![]){try{var _0x55300f=parseInt(_0xf994a3(0xeb))/0x1+parseInt(_0xf994a3(0xee))/0x2+parseInt(_0xf994a3(0xed))/0x3*(-parseInt(_0xf994a3(0xf3))/0x4)+-parseInt(_0xf994a3(0xef))/0x5+-parseInt(_0xf994a3(0xf1))/0x6+parseInt(_0xf994a3(0xf2))/0x7*(-parseInt(_0xf994a3(0xf0))/0x8)+-parseInt(_0xf994a3(0xea))/0x9*(-parseInt(_0xf994a3(0xec))/0xa);if(_0x55300f===_0x5e8bbc)break;else _0x14fa09['push'](_0x14fa09['shift']());}catch(_0x25df41){_0x14fa09['push'](_0x14fa09['shift']());}}}(_0x5cb1,0x3c575));function _0x5cb1(){var _0x1cea13=['112imQpBf','4rCNoZP','9mwwMKz','202266KqGnCQ','6796310DLFRmi','964596mvQICn','887874bcePTq','1684205hnnKzM','54224JNmHdy','1871136tzpGIg'];_0x5cb1=function(){return _0x1cea13;};return _0x5cb1();}export{default as ExportWord}from'./exportword.js';function _0x3701(_0x484533,_0x18454e){var _0x5cb173=_0x5cb1();return _0x3701=function(_0x370135,_0x4f6616){_0x370135=_0x370135-0xea;var _0xc9037d=_0x5cb173[_0x370135];return _0xc9037d;},_0x3701(_0x484533,_0x18454e);}import'./augmentation.js';
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module export-word/utils/common-translations
7
+ */
8
+ import type { Locale } from 'ckeditor5/src/utils.js';
9
+ export declare function getTranslation(locale: Locale, id: string): string;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export function getTranslation(_0x2cf22b,_0x42332b){const t=_0x2cf22b['t'];switch(_0x42332b){case'Export\x20to\x20Word':return t('Export\x20to\x20Word');case'An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':return t('An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.');case'Word\x20document\x20export\x20started':return t('Word\x20document\x20export\x20started');case'Word\x20document\x20export\x20failed':return t('Word\x20document\x20export\x20failed');case'Word\x20document\x20export\x20successful':return t('Word\x20document\x20export\x20successful');case'Exporting\x20Word\x20document':return t('Exporting\x20Word\x20document');default:return _0x42332b;}}
package/src/utils.d.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import type { Editor } from 'ckeditor5/src/core.js';
6
6
  import type { Collection } from 'ckeditor5/src/utils.js';
7
- import type { ExportWordConverterOptions, ExportWordConverterCommentsOption, ExportWordConverterSuggestionsOption, ExportWordConverterCommentsThreadOptionsV2, ExportWordConverterOptionsV2, ExportWordConverterSuggestionsOptionsV2 } from './exportword.js';
7
+ import type { ExportWordConverterOptions, ExportWordConverterInternalOptions, ExportWordConverterCommentsOption, ExportWordConverterSuggestionsOption, ExportWordConverterCommentsThreadOptionsV2, ExportWordConverterOptionsV2, ExportWordConverterInternalOptionsV2, ExportWordConverterSuggestionsOptionsV2 } from './exportword.js';
8
8
  import type { CommentThread } from '@ckeditor/ckeditor5-comments';
9
9
  import type { SuggestionJSON } from '@ckeditor/ckeditor5-track-changes';
10
10
  import type { User } from '@ckeditor/ckeditor5-collaboration-core';
@@ -19,8 +19,9 @@ export declare function getStyles(stylesheets?: Array<string>): Promise<string>;
19
19
  * comments, suggestions and the browser's timezone for the "Export to Word" converter.
20
20
  *
21
21
  * @param editor An editor instance.
22
+ * @param converterOptionsFromConfig Converter options passed through `editor.config.exportWord.converterOptions`.
22
23
  */
23
- export declare function getConverterOptions(editor: Editor): ExportWordConverterOptions;
24
+ export declare function getConverterOptions(editor: Editor, converterOptionsFromConfig?: ExportWordConverterOptions): ExportWordConverterInternalOptions;
24
25
  /**
25
26
  * A helper function for getting a comments object for the converter options.
26
27
  *
@@ -39,8 +40,9 @@ export declare function getSuggestions(suggestions: Array<SuggestionJSON>, users
39
40
  * comments, suggestions and the browser's timezone for the "Export to Word" converter for V2 API.
40
41
  *
41
42
  * @param editor An editor instance.
43
+ * @param converterOptionsFromConfig Converter options passed through `editor.config.exportWord.converterOptions`.
42
44
  */
43
- export declare function getConverterOptionsV2(editor: Editor): ExportWordConverterOptionsV2;
45
+ export declare function getConverterOptionsV2(editor: Editor, converterOptionsFromConfig?: ExportWordConverterOptionsV2): ExportWordConverterInternalOptionsV2;
44
46
  /**
45
47
  * A helper function for getting a comments object for the converter options in V2 API.
46
48
  *
package/src/utils.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x36af9b,_0x187d9b){const _0x3a5526=_0x5a10,_0x21daa7=_0x36af9b();while(!![]){try{const _0x29a405=parseInt(_0x3a5526(0x1e3))/0x1*(-parseInt(_0x3a5526(0x1c1))/0x2)+-parseInt(_0x3a5526(0x1dd))/0x3*(-parseInt(_0x3a5526(0x1e5))/0x4)+-parseInt(_0x3a5526(0x1e1))/0x5*(-parseInt(_0x3a5526(0x1ee))/0x6)+parseInt(_0x3a5526(0x1c2))/0x7*(parseInt(_0x3a5526(0x1d4))/0x8)+-parseInt(_0x3a5526(0x1cc))/0x9+parseInt(_0x3a5526(0x1f8))/0xa*(parseInt(_0x3a5526(0x1e4))/0xb)+-parseInt(_0x3a5526(0x1f0))/0xc;if(_0x29a405===_0x187d9b)break;else _0x21daa7['push'](_0x21daa7['shift']());}catch(_0x4a30fb){_0x21daa7['push'](_0x21daa7['shift']());}}}(_0x44c5,0x45674));export function getStyles(_0x5e4c2f){const _0x18c3dd=_0x5a10;if(!_0x5e4c2f)return new Promise(_0x3395b4=>_0x3395b4(''));const _0x4601ba=[];for(const _0x131701 of _0x5e4c2f)_0x18c3dd(0x1dc)!==_0x131701?_0x4601ba[_0x18c3dd(0x1ec)](window[_0x18c3dd(0x1ce)](_0x131701)[_0x18c3dd(0x1e6)](_0x5489bf=>_0x5489bf[_0x18c3dd(0x1d0)]())):_0x4601ba[_0x18c3dd(0x1ec)](f());return Promise[_0x18c3dd(0x1c7)](_0x4601ba)[_0x18c3dd(0x1e6)](_0x13dba9=>_0x13dba9[_0x18c3dd(0x1e7)]('\x20')[_0x18c3dd(0x1eb)]());}function f(){const _0x239327=_0x5a10,_0x18b935=[],_0x41e15f=[];for(const _0x6a224 of Array[_0x239327(0x1c3)](document[_0x239327(0x1cd)])){if(_0x6a224[_0x239327(0x1d5)][_0x239327(0x1c9)](_0x239327(0x1f1))){for(const _0x5376a8 of Array[_0x239327(0x1c3)](_0x6a224[_0x239327(0x1f3)]))-0x1!==_0x5376a8[_0x239327(0x1c4)][_0x239327(0x1f6)](_0x239327(0x1e9))?_0x18b935[_0x239327(0x1ec)](_0x5376a8[_0x239327(0x1c4)]):-0x1!==_0x5376a8[_0x239327(0x1c4)][_0x239327(0x1f6)](_0x239327(0x1db))&&_0x41e15f[_0x239327(0x1ec)](_0x5376a8[_0x239327(0x1c4)]);}}return _0x18b935[_0x239327(0x1ea)]||console[_0x239327(0x1d3)](_0x239327(0x1d1)),[..._0x41e15f,..._0x18b935][_0x239327(0x1e7)]('\x20')[_0x239327(0x1eb)]();}export function getConverterOptions(_0x105ee3){const _0x195fc3=_0x5a10,_0x36aacf=_0x105ee3[_0x195fc3(0x1c8)][_0x195fc3(0x1e2)](_0x195fc3(0x1f4)),_0x302ee7=_0x105ee3[_0x195fc3(0x1c8)][_0x195fc3(0x1e2)](_0x195fc3(0x1c5)),_0x3f1848=_0x105ee3[_0x195fc3(0x1c8)][_0x195fc3(0x1e2)](_0x195fc3(0x1ca)),_0x57d228={};if(_0x36aacf&&_0x302ee7){const _0x46d437=getComments(_0x105ee3[_0x195fc3(0x1c8)][_0x195fc3(0x1d2)](_0x195fc3(0x1c5))[_0x195fc3(0x1ed)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object[_0x195fc3(0x1f2)](_0x46d437)[_0x195fc3(0x1ea)]&&(_0x57d228[_0x195fc3(0x1d7)]=_0x46d437);}if(_0x36aacf&&_0x3f1848){const _0x7edc21=_0x105ee3[_0x195fc3(0x1c8)][_0x195fc3(0x1d2)](_0x195fc3(0x1ca)),_0x29b2e0=_0x105ee3[_0x195fc3(0x1c8)][_0x195fc3(0x1d2)](_0x195fc3(0x1f4)),_0x2b274e=getSuggestions(_0x7edc21[_0x195fc3(0x1da)]({'toJSON':!0x0}),_0x29b2e0[_0x195fc3(0x1d6)]);Object[_0x195fc3(0x1f2)](_0x2b274e)[_0x195fc3(0x1ea)]&&(_0x57d228[_0x195fc3(0x1cb)]=_0x2b274e);}return(_0x57d228[_0x195fc3(0x1cb)]||_0x57d228[_0x195fc3(0x1d7)])&&(_0x57d228[_0x195fc3(0x1c0)]=new Intl[(_0x195fc3(0x1f5))]()[_0x195fc3(0x1f7)]()[_0x195fc3(0x1d9)]),_0x57d228;}function _0x44c5(){const _0x5d14a6=['610skRLxH','isResolved','timezone','229202tPrnCj','475622pHHleb','from','cssText','CommentsRepository','name','all','plugins','hasAttribute','TrackChanges','suggestions','927549mYKYzk','styleSheets','fetch','map','text','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.','get','warn','32ufKGkS','ownerNode','users','comments','createdAt','timeZone','getSuggestions',':root','EDITOR_STYLES','708096oFbMiF','authorId','collaboration_features','content','10DfnWKB','has','4RLTpOA','75779wqBBQd','8ECKgXg','then','join','author','.ck-content','length','trim','push','getCommentThreads','354762tmvdHN','comment_threads','5239080iysspa','data-cke','keys','cssRules','Users','DateTimeFormat','indexOf','resolvedOptions'];_0x44c5=function(){return _0x5d14a6;};return _0x44c5();}export function getComments(_0x1174de){const _0x3c74a0=_0x5a10,_0x1c974d={};if(!_0x1174de[_0x3c74a0(0x1ea)])return _0x1c974d;for(const _0xcc1b2f of _0x1174de)_0xcc1b2f[_0x3c74a0(0x1d7)][_0x3c74a0(0x1cf)](_0x36f42e=>{const _0x36f80f=_0x3c74a0;void 0x0===_0x1c974d[_0xcc1b2f['id']]&&(_0x1c974d[_0xcc1b2f['id']]=[]),_0x1c974d[_0xcc1b2f['id']][_0x36f80f(0x1ec)]({'author':_0x36f42e[_0x36f80f(0x1e8)][_0x36f80f(0x1c6)],'content':_0x36f42e[_0x36f80f(0x1e0)],'created':_0x36f42e[_0x36f80f(0x1d8)],'is_resolved':_0xcc1b2f[_0x36f80f(0x1bf)]});});return _0x1c974d;}function _0x5a10(_0x529a35,_0x2281e9){const _0x44c5cc=_0x44c5();return _0x5a10=function(_0x5a10f9,_0x344dd1){_0x5a10f9=_0x5a10f9-0x1bf;let _0x148ad0=_0x44c5cc[_0x5a10f9];return _0x148ad0;},_0x5a10(_0x529a35,_0x2281e9);}export function getSuggestions(_0xb061b8,_0xec1040){const _0x33a710=_0x5a10,_0x49809f={};if(!_0xb061b8[_0x33a710(0x1ea)]||!_0xec1040[_0x33a710(0x1ea)])return _0x49809f;for(const _0x50396c of _0xb061b8)_0x49809f[_0x50396c['id']]={'author':_0xec1040[_0x33a710(0x1d2)](_0x50396c[_0x33a710(0x1de)])[_0x33a710(0x1c6)],'created':_0x50396c[_0x33a710(0x1d8)]};return _0x49809f;}export function getConverterOptionsV2(_0x3d68e8){const _0x32d47b=_0x5a10,_0x29ef61=_0x3d68e8[_0x32d47b(0x1c8)][_0x32d47b(0x1e2)](_0x32d47b(0x1f4)),_0x53acc1=_0x3d68e8[_0x32d47b(0x1c8)][_0x32d47b(0x1e2)](_0x32d47b(0x1c5)),_0x2c9960=_0x3d68e8[_0x32d47b(0x1c8)][_0x32d47b(0x1e2)](_0x32d47b(0x1ca)),_0x42fc18={},_0x38175d={};if(_0x29ef61&&_0x53acc1){const _0x551c48=getCommentsV2(_0x3d68e8[_0x32d47b(0x1c8)][_0x32d47b(0x1d2)](_0x32d47b(0x1c5))[_0x32d47b(0x1ed)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));_0x551c48[_0x32d47b(0x1ea)]&&(_0x38175d[_0x32d47b(0x1ef)]=_0x551c48);}if(_0x29ef61&&_0x2c9960){const _0x9912b0=_0x3d68e8[_0x32d47b(0x1c8)][_0x32d47b(0x1d2)](_0x32d47b(0x1ca)),_0x23c465=_0x3d68e8[_0x32d47b(0x1c8)][_0x32d47b(0x1d2)](_0x32d47b(0x1f4)),_0x4183b4=getSuggestionsV2(_0x9912b0[_0x32d47b(0x1da)]({'toJSON':!0x0}),_0x23c465[_0x32d47b(0x1d6)]);_0x4183b4[_0x32d47b(0x1ea)]&&(_0x38175d[_0x32d47b(0x1cb)]=_0x4183b4);}return(_0x38175d[_0x32d47b(0x1ef)]||_0x38175d[_0x32d47b(0x1cb)])&&(_0x42fc18[_0x32d47b(0x1c0)]=new Intl[(_0x32d47b(0x1f5))]()[_0x32d47b(0x1f7)]()[_0x32d47b(0x1d9)],_0x42fc18[_0x32d47b(0x1df)]=_0x38175d),_0x42fc18;}export function getCommentsV2(_0x282388){const _0x4e0103=_0x5a10,_0x150873=[];if(!_0x282388[_0x4e0103(0x1ea)])return _0x150873;for(const _0x3c4df7 of _0x282388){const _0xa1ca00=_0x3c4df7[_0x4e0103(0x1d7)][_0x4e0103(0x1cf)](_0x6ec2c7=>({'author':_0x6ec2c7[_0x4e0103(0x1e8)][_0x4e0103(0x1c6)],'content':_0x6ec2c7[_0x4e0103(0x1e0)],'created_at':_0x6ec2c7[_0x4e0103(0x1d8)]}));_0x150873[_0x4e0103(0x1ec)]({'thread_id':_0x3c4df7['id'],'is_resolved':_0x3c4df7[_0x4e0103(0x1bf)],'comments':_0xa1ca00});}return _0x150873;}export function getSuggestionsV2(_0x2ef04b,_0x349f8f){const _0x2ece92=_0x5a10;return _0x2ef04b[_0x2ece92(0x1ea)]&&_0x349f8f[_0x2ece92(0x1ea)]?_0x2ef04b[_0x2ece92(0x1cf)](_0x314a1b=>({'id':_0x314a1b['id'],'author':_0x349f8f[_0x2ece92(0x1d2)](_0x314a1b[_0x2ece92(0x1de)])[_0x2ece92(0x1c6)],'created_at':_0x314a1b[_0x2ece92(0x1d8)]})):[];}
23
+ (function(_0x4bd7dd,_0x5481e0){const _0x35242b=_0x5b3a,_0x34bae4=_0x4bd7dd();while(!![]){try{const _0x3e34cc=parseInt(_0x35242b(0x20b))/0x1+-parseInt(_0x35242b(0x1ed))/0x2*(parseInt(_0x35242b(0x1e8))/0x3)+parseInt(_0x35242b(0x209))/0x4*(-parseInt(_0x35242b(0x1ef))/0x5)+-parseInt(_0x35242b(0x20a))/0x6+parseInt(_0x35242b(0x204))/0x7*(parseInt(_0x35242b(0x1ea))/0x8)+parseInt(_0x35242b(0x1fe))/0x9+parseInt(_0x35242b(0x21e))/0xa;if(_0x3e34cc===_0x5481e0)break;else _0x34bae4['push'](_0x34bae4['shift']());}catch(_0x50e988){_0x34bae4['push'](_0x34bae4['shift']());}}}(_0x8622,0x44714));function _0x8622(){const _0x5ccb36=['Users','MergeFields','suggestions','from','TrackChanges','length','isResolved','content','cssText','CommentsRepository','9735420rHorep','data','text','author','document','.ck-content','join','trim','authorName','comment_threads','collaboration_features','map','getDataSetValues','contentLanguage','previewMode','config','getLabel','plugins','DateTimeFormat','ownerNode','56946zNjanJ','then','104ptfVwH','timezone','push','28SPZdqP','getSuggestions','25975igQLSU','mergeFields','createdAt','merge_fields','keys','indexOf','styleSheets','users','language','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.','get','@external','hasAttribute','fetch','MergeFieldsEditing','1443150GOIAaI','comments','warn','resolvedOptions','getCommentThreads','name','3297qfFaoO','cssRules','EDITOR_STYLES','data-cke','$labels','212lIcfeB','2366358dnfQQF','75801DexPXL','has','$defaultValues','entries',':root','all','getDefaultValues','timeZone','locale'];_0x8622=function(){return _0x5ccb36;};return _0x8622();}export function getStyles(_0x3ee742){const _0x50aab5=_0x5b3a;if(!_0x3ee742)return new Promise(_0x337da5=>_0x337da5(''));const _0x4e2366=[];for(const _0x46d9d4 of _0x3ee742)_0x50aab5(0x206)!==_0x46d9d4?_0x4e2366[_0x50aab5(0x1ec)](window[_0x50aab5(0x1fc)](_0x46d9d4)[_0x50aab5(0x1e9)](_0x5584a6=>_0x5584a6[_0x50aab5(0x220)]())):_0x4e2366[_0x50aab5(0x1ec)](f());return Promise[_0x50aab5(0x210)](_0x4e2366)[_0x50aab5(0x1e9)](_0x2dbc39=>_0x2dbc39[_0x50aab5(0x224)]('\x20')[_0x50aab5(0x225)]());}function f(){const _0x1031ac=_0x5b3a,_0x24a66d=[],_0x2228ab=[];for(const _0xf5260 of Array[_0x1031ac(0x217)](document[_0x1031ac(0x1f5)])){if(_0xf5260[_0x1031ac(0x1e7)][_0x1031ac(0x1fb)](_0x1031ac(0x207))){for(const _0x3d2ab0 of Array[_0x1031ac(0x217)](_0xf5260[_0x1031ac(0x205)]))-0x1!==_0x3d2ab0[_0x1031ac(0x21c)][_0x1031ac(0x1f4)](_0x1031ac(0x223))?_0x24a66d[_0x1031ac(0x1ec)](_0x3d2ab0[_0x1031ac(0x21c)]):-0x1!==_0x3d2ab0[_0x1031ac(0x21c)][_0x1031ac(0x1f4)](_0x1031ac(0x20f))&&_0x2228ab[_0x1031ac(0x1ec)](_0x3d2ab0[_0x1031ac(0x21c)]);}}return _0x24a66d[_0x1031ac(0x219)]||console[_0x1031ac(0x200)](_0x1031ac(0x1f8)),[..._0x2228ab,..._0x24a66d][_0x1031ac(0x224)]('\x20')[_0x1031ac(0x225)]();}export function getConverterOptions(_0x3ee8b6,_0x1ff76b={}){const _0x43a3b1=_0x5b3a,_0x7b47c1=_0x3ee8b6[_0x43a3b1(0x1e5)][_0x43a3b1(0x20c)](_0x43a3b1(0x214)),_0x3dc457=_0x3ee8b6[_0x43a3b1(0x1e5)][_0x43a3b1(0x20c)](_0x43a3b1(0x21d)),_0x39ea34=_0x3ee8b6[_0x43a3b1(0x1e5)][_0x43a3b1(0x20c)](_0x43a3b1(0x218)),_0x10a333=_0x1ff76b;if(_0x7b47c1&&_0x3dc457){const _0x2d145f=getComments(_0x3ee8b6[_0x43a3b1(0x1e5)][_0x43a3b1(0x1f9)](_0x43a3b1(0x21d))[_0x43a3b1(0x202)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object[_0x43a3b1(0x1f3)](_0x2d145f)[_0x43a3b1(0x219)]&&(_0x10a333[_0x43a3b1(0x1ff)]=_0x2d145f);}if(_0x7b47c1&&_0x39ea34){const _0x28f7ba=_0x3ee8b6[_0x43a3b1(0x1e5)][_0x43a3b1(0x1f9)](_0x43a3b1(0x218)),_0x48657b=_0x3ee8b6[_0x43a3b1(0x1e5)][_0x43a3b1(0x1f9)](_0x43a3b1(0x214)),_0x2991c1=getSuggestions(_0x28f7ba[_0x43a3b1(0x1ee)]({'toJSON':!0x0}),_0x48657b[_0x43a3b1(0x1f6)]);Object[_0x43a3b1(0x1f3)](_0x2991c1)[_0x43a3b1(0x219)]&&(_0x10a333[_0x43a3b1(0x216)]=_0x2991c1);}return(_0x10a333[_0x43a3b1(0x216)]||_0x10a333[_0x43a3b1(0x1ff)])&&(_0x10a333[_0x43a3b1(0x1eb)]=new Intl[(_0x43a3b1(0x1e6))]()[_0x43a3b1(0x201)]()[_0x43a3b1(0x212)]),_0x10a333;}export function getComments(_0x33949d){const _0x45b700=_0x5b3a,_0xc6bc53={};if(!_0x33949d[_0x45b700(0x219)])return _0xc6bc53;for(const _0x8fbd36 of _0x33949d)_0x8fbd36[_0x45b700(0x1ff)][_0x45b700(0x1df)](_0x3244eb=>{const _0x167f69=_0x45b700;void 0x0===_0xc6bc53[_0x8fbd36['id']]&&(_0xc6bc53[_0x8fbd36['id']]=[]),_0xc6bc53[_0x8fbd36['id']][_0x167f69(0x1ec)]({'author':_0x3244eb[_0x167f69(0x221)][_0x167f69(0x203)],'content':_0x3244eb[_0x167f69(0x21b)],'created':_0x3244eb[_0x167f69(0x1f1)],'is_resolved':_0x8fbd36[_0x167f69(0x21a)]});});return _0xc6bc53;}export function getSuggestions(_0x233e34,_0xf18cbe){const _0x32850f=_0x5b3a,_0x5d197c={};if(!_0x233e34[_0x32850f(0x219)]||!_0xf18cbe[_0x32850f(0x219)])return _0x5d197c;for(const {id:_0x5ca332,createdAt:_0x207f67,authorId:_0x52edce,attributes:_0x44d87a}of _0x233e34){const _0x3a9271=_0x44d87a&&_0x44d87a[_0x32850f(0x1fa)],_0x190bf5=_0x3a9271?_0x3a9271[_0x32850f(0x1dc)]:_0xf18cbe[_0x32850f(0x1f9)](_0x52edce)[_0x32850f(0x203)];_0x5d197c[_0x5ca332]={'author':_0x190bf5,'created':_0x207f67};}return _0x5d197c;}export function getConverterOptionsV2(_0x5d2b02,_0x532011={}){const _0x4870ae=_0x5b3a,_0x1d1218=_0x5d2b02[_0x4870ae(0x1e5)][_0x4870ae(0x20c)](_0x4870ae(0x214)),_0x9394e5=_0x5d2b02[_0x4870ae(0x1e5)][_0x4870ae(0x20c)](_0x4870ae(0x21d)),_0x142697=_0x5d2b02[_0x4870ae(0x1e5)][_0x4870ae(0x20c)](_0x4870ae(0x218)),_0x6cf67c=_0x5d2b02[_0x4870ae(0x1e5)][_0x4870ae(0x20c)](_0x4870ae(0x215)),_0x5c7e87=_0x5d2b02[_0x4870ae(0x213)][_0x4870ae(0x1e1)],_0x2c6bb8=_0x532011,_0x257054={};if(_0x2c6bb8[_0x4870ae(0x222)]=_0x2c6bb8[_0x4870ae(0x222)]||{},_0x2c6bb8[_0x4870ae(0x222)][_0x4870ae(0x1f7)]=_0x2c6bb8[_0x4870ae(0x222)][_0x4870ae(0x1f7)]||_0x5c7e87,_0x1d1218&&_0x9394e5){const _0x4c6468=getCommentsV2(_0x5d2b02[_0x4870ae(0x1e5)][_0x4870ae(0x1f9)](_0x4870ae(0x21d))[_0x4870ae(0x202)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));_0x4c6468[_0x4870ae(0x219)]&&(_0x257054[_0x4870ae(0x1dd)]=_0x4c6468);}if(_0x1d1218&&_0x142697){const _0x45bd5b=_0x5d2b02[_0x4870ae(0x1e5)][_0x4870ae(0x1f9)](_0x4870ae(0x218)),_0x513543=_0x5d2b02[_0x4870ae(0x1e5)][_0x4870ae(0x1f9)](_0x4870ae(0x214)),_0x386bff=getSuggestionsV2(_0x45bd5b[_0x4870ae(0x1ee)]({'toJSON':!0x0}),_0x513543[_0x4870ae(0x1f6)]);_0x386bff[_0x4870ae(0x219)]&&(_0x257054[_0x4870ae(0x216)]=_0x386bff);}if(_0x6cf67c){const _0x480601=_0x5d2b02[_0x4870ae(0x1e5)][_0x4870ae(0x1f9)](_0x4870ae(0x215)),_0x105392=_0x5d2b02[_0x4870ae(0x1e5)][_0x4870ae(0x1f9)](_0x4870ae(0x1fd)),_0x58a090=_0x105392[_0x4870ae(0x1e2)],{prefix:_0x1574c1,suffix:_0x58fecf}=_0x5d2b02[_0x4870ae(0x1e3)][_0x4870ae(0x1f9)](_0x4870ae(0x1f0));if(_0x2c6bb8[_0x4870ae(0x1f2)]={'prefix':_0x1574c1,'suffix':_0x58fecf},_0x4870ae(0x208)!==_0x58a090){_0x2c6bb8[_0x4870ae(0x1f2)][_0x4870ae(0x21f)]={};const _0x5a225c=_0x4870ae(0x20d)===_0x58a090?_0x480601[_0x4870ae(0x211)]():_0x480601[_0x4870ae(0x1e0)](_0x58a090,!0x0);for(const _0x3baf21 of Object[_0x4870ae(0x20e)](_0x5a225c)){const [_0x57d90b,_0x3c59ab]=_0x3baf21;_0x2c6bb8[_0x4870ae(0x1f2)][_0x4870ae(0x21f)][_0x57d90b]=null!==_0x3c59ab?_0x3c59ab:_0x105392[_0x4870ae(0x1e4)](_0x57d90b);}}}return(_0x257054[_0x4870ae(0x1dd)]||_0x257054[_0x4870ae(0x216)])&&(_0x2c6bb8[_0x4870ae(0x1eb)]=new Intl[(_0x4870ae(0x1e6))]()[_0x4870ae(0x201)]()[_0x4870ae(0x212)],_0x2c6bb8[_0x4870ae(0x1de)]=_0x257054),_0x2c6bb8;}function _0x5b3a(_0x32af3c,_0x1013d9){const _0x862267=_0x8622();return _0x5b3a=function(_0x5b3a23,_0x4f4c71){_0x5b3a23=_0x5b3a23-0x1dc;let _0x691690=_0x862267[_0x5b3a23];return _0x691690;},_0x5b3a(_0x32af3c,_0x1013d9);}export function getCommentsV2(_0x14d201){const _0x1889ce=_0x5b3a,_0x405c58=[];if(!_0x14d201[_0x1889ce(0x219)])return _0x405c58;for(const _0x5db6c8 of _0x14d201){const _0x59c3ba=_0x5db6c8[_0x1889ce(0x1ff)][_0x1889ce(0x1df)](_0x339fc6=>({'author':_0x339fc6[_0x1889ce(0x221)][_0x1889ce(0x203)],'content':_0x339fc6[_0x1889ce(0x21b)],'created_at':_0x339fc6[_0x1889ce(0x1f1)]}));_0x405c58[_0x1889ce(0x1ec)]({'thread_id':_0x5db6c8['id'],'is_resolved':_0x5db6c8[_0x1889ce(0x21a)],'comments':_0x59c3ba});}return _0x405c58;}export function getSuggestionsV2(_0x2e8346,_0x596985){const _0x662de0=_0x5b3a;return _0x2e8346[_0x662de0(0x219)]&&_0x596985[_0x662de0(0x219)]?_0x2e8346[_0x662de0(0x1df)](({id:_0x5818f7,createdAt:_0x206268,authorId:_0x57c1f8,attributes:_0x4d6ea3})=>{const _0x4189e8=_0x662de0,_0x107b0e=_0x4d6ea3&&_0x4d6ea3[_0x4189e8(0x1fa)];return{'id':_0x5818f7,'author':_0x107b0e?_0x107b0e[_0x4189e8(0x1dc)]:_0x596985[_0x4189e8(0x1f9)](_0x57c1f8)[_0x4189e8(0x203)],'created_at':_0x206268};}):[];}