@ckeditor/ckeditor5-export-word 42.0.2 → 43.0.0-alpha.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 (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':_0x3fc6e8=>0x1!=_0x3fc6e8}};
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':_0x4a9397=>0x1!=_0x4a9397}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x44fadd=>{const {ur:{dictionary:_0x8226a2,getPluralForm:_0x300dd6}}={'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':_0x17ad73=>0x1!=_0x17ad73}};_0x44fadd['ur']||={'dictionary':{},'getPluralForm':null},_0x44fadd['ur']['dictionary']=Object['assign'](_0x44fadd['ur']['dictionary'],_0x8226a2),_0x44fadd['ur']['getPluralForm']=_0x300dd6;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x452543=>{const {ur:{dictionary:_0xcef573,getPluralForm:_0x54ae5e}}={'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':_0x2f8c6f=>0x1!=_0x2f8c6f}};_0x452543['ur']||={'dictionary':{},'getPluralForm':null},_0x452543['ur']['dictionary']=Object['assign'](_0x452543['ur']['dictionary'],_0xcef573),_0x452543['ur']['getPluralForm']=_0x54ae5e;})(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':_0x5c2efa=>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':_0x1c948b=>0x0}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x108f11=>{const {vi:{dictionary:_0x5886ae,getPluralForm:_0x296f25}}={'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':_0x447a58=>0x0}};_0x108f11['vi']||={'dictionary':{},'getPluralForm':null},_0x108f11['vi']['dictionary']=Object['assign'](_0x108f11['vi']['dictionary'],_0x5886ae),_0x108f11['vi']['getPluralForm']=_0x296f25;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x344de=>{const {vi:{dictionary:_0x5bef97,getPluralForm:_0x53497f}}={'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':_0x22e24a=>0x0}};_0x344de['vi']||={'dictionary':{},'getPluralForm':null},_0x344de['vi']['dictionary']=Object['assign'](_0x344de['vi']['dictionary'],_0x5bef97),_0x344de['vi']['getPluralForm']=_0x53497f;})(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':_0x4239af=>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':_0x245b7d=>0x0}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x451cbc=>{const {'zh-cn':{dictionary:_0x2daaab,getPluralForm:_0x4e1e77}}={'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':_0x3cdbb5=>0x0}};_0x451cbc['zh-cn']||={'dictionary':{},'getPluralForm':null},_0x451cbc['zh-cn']['dictionary']=Object['assign'](_0x451cbc['zh-cn']['dictionary'],_0x2daaab),_0x451cbc['zh-cn']['getPluralForm']=_0x4e1e77;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x29e240=>{const {'zh-cn':{dictionary:_0x66feeb,getPluralForm:_0x560cd3}}={'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':_0x488561=>0x0}};_0x29e240['zh-cn']||={'dictionary':{},'getPluralForm':null},_0x29e240['zh-cn']['dictionary']=Object['assign'](_0x29e240['zh-cn']['dictionary'],_0x66feeb),_0x29e240['zh-cn']['getPluralForm']=_0x560cd3;})(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':_0x158669=>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':_0x5c3617=>0x0}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x8c064c=>{const {zh:{dictionary:_0x1bbb2d,getPluralForm:_0x470dc0}}={'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':_0x41d0b0=>0x0}};_0x8c064c['zh']||={'dictionary':{},'getPluralForm':null},_0x8c064c['zh']['dictionary']=Object['assign'](_0x8c064c['zh']['dictionary'],_0x1bbb2d),_0x8c064c['zh']['getPluralForm']=_0x470dc0;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x5ee85d=>{const {zh:{dictionary:_0x1678ec,getPluralForm:_0x5e57df}}={'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':_0x360185=>0x0}};_0x5ee85d['zh']||={'dictionary':{},'getPluralForm':null},_0x5ee85d['zh']['dictionary']=Object['assign'](_0x5ee85d['zh']['dictionary'],_0x1678ec),_0x5ee85d['zh']['getPluralForm']=_0x5e57df;})(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",
3
+ "version": "43.0.0-alpha.1",
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",
34
- "@ckeditor/ckeditor5-ui": "42.0.2",
35
- "ckeditor5": "42.0.2"
33
+ "@ckeditor/ckeditor5-core": "43.0.0-alpha.1",
34
+ "@ckeditor/ckeditor5-utils": "43.0.0-alpha.1",
35
+ "@ckeditor/ckeditor5-ui": "43.0.0-alpha.1",
36
+ "ckeditor5": "43.0.0-alpha.1"
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 _0x2a26f3=_0x5046;(function(_0x1d04e8,_0x24f7ce){const _0x4cc20f=_0x5046,_0x373724=_0x1d04e8();while(!![]){try{const _0x381452=parseInt(_0x4cc20f(0x1e2))/0x1*(parseInt(_0x4cc20f(0x1ef))/0x2)+-parseInt(_0x4cc20f(0x1e9))/0x3*(-parseInt(_0x4cc20f(0x1f0))/0x4)+parseInt(_0x4cc20f(0x1dc))/0x5+parseInt(_0x4cc20f(0x1e6))/0x6*(parseInt(_0x4cc20f(0x1ee))/0x7)+parseInt(_0x4cc20f(0x1ea))/0x8+-parseInt(_0x4cc20f(0x1eb))/0x9+-parseInt(_0x4cc20f(0x1f6))/0xa;if(_0x381452===_0x24f7ce)break;else _0x373724['push'](_0x373724['shift']());}catch(_0x9b7d13){_0x373724['push'](_0x373724['shift']());}}}(_0x3039,0x7f6ca));import{Plugin as _0x3d6255}from'ckeditor5/src/core.js';import{Notification as _0x4b7bcc}from'ckeditor5/src/ui.js';import _0x14503e from'./exportwordcommand.js';function _0x5046(_0x350910,_0x675bb9){const _0x303926=_0x3039();return _0x5046=function(_0x504696,_0x1a7c49){_0x504696=_0x504696-0x1dc;let _0x2b1f63=_0x303926[_0x504696];return _0x2b1f63;},_0x5046(_0x350910,_0x675bb9);}import _0x2981fa from'./exportwordui.js';export default class s extends _0x3d6255{static get[_0x2a26f3(0x1f1)](){const _0x24f7df=_0x2a26f3;return _0x24f7df(0x1e1);}static get[_0x2a26f3(0x1ed)](){const _0x287785=_0x2a26f3;return[_0x287785(0x1e3),_0x4b7bcc,_0x2981fa];}[_0x2a26f3(0x1f4)](){const _0x42add5=_0x2a26f3,_0x53ec6e=this[_0x42add5(0x1f5)],_0x534e20=_0x53ec6e[_0x42add5(0x1e4)][_0x42add5(0x1de)](_0x42add5(0x1e7))||{};_0x53ec6e[_0x42add5(0x1f3)][_0x42add5(0x1e5)](_0x42add5(0x1e7),new _0x14503e(_0x53ec6e));const _0x33f791=_0x53ec6e[_0x42add5(0x1dd)][_0x42add5(0x1de)](_0x42add5(0x1e3));!0x1===_0x534e20[_0x42add5(0x1f2)]?this[_0x42add5(0x1df)]=null:_0x534e20[_0x42add5(0x1f2)]?_0x33f791[_0x42add5(0x1e8)](_0x534e20[_0x42add5(0x1f2)])[_0x42add5(0x1ec)](_0x2e58fb=>{const _0x333358=_0x42add5;this[_0x333358(0x1df)]=_0x2e58fb;}):this[_0x42add5(0x1df)]=_0x33f791[_0x42add5(0x1e0)];}}function _0x3039(){const _0x35f32a=['84356baAhIh','11964eREfod','pluginName','tokenUrl','commands','init','editor','35323760DzyYXJ','3640960rtQpqd','plugins','get','_token','token','ExportWord','21BVXMKW','CloudServices','config','add','1495818uStGwW','exportWord','registerTokenUrl','801PBjGHE','7274824SmPmZZ','139347EgnuQW','then','requires','21cZAajr'];_0x3039=function(){return _0x35f32a;};return _0x3039();}
23
+ const _0x4bbcfb=_0x19f5;function _0x19f5(_0x3d4ae1,_0x26f14d){const _0x58e5c3=_0x58e5();return _0x19f5=function(_0x19f587,_0x5785a4){_0x19f587=_0x19f587-0x1f1;let _0x35ae6e=_0x58e5c3[_0x19f587];return _0x35ae6e;},_0x19f5(_0x3d4ae1,_0x26f14d);}(function(_0x2822e5,_0x1af628){const _0x199030=_0x19f5,_0x2bea21=_0x2822e5();while(!![]){try{const _0x611faa=parseInt(_0x199030(0x201))/0x1+parseInt(_0x199030(0x200))/0x2*(-parseInt(_0x199030(0x1fa))/0x3)+parseInt(_0x199030(0x1f3))/0x4*(parseInt(_0x199030(0x1f7))/0x5)+parseInt(_0x199030(0x204))/0x6*(-parseInt(_0x199030(0x208))/0x7)+parseInt(_0x199030(0x1fd))/0x8+-parseInt(_0x199030(0x203))/0x9*(-parseInt(_0x199030(0x202))/0xa)+-parseInt(_0x199030(0x20a))/0xb*(parseInt(_0x199030(0x1f4))/0xc);if(_0x611faa===_0x1af628)break;else _0x2bea21['push'](_0x2bea21['shift']());}catch(_0xf1a3a4){_0x2bea21['push'](_0x2bea21['shift']());}}}(_0x58e5,0x5a7e1));import{Plugin as _0x46727f}from'ckeditor5/src/core.js';import{Notification as _0x34cc8f}from'ckeditor5/src/ui.js';import _0x3ce1d7 from'./exportwordcommand.js';function _0x58e5(){const _0x393174=['config','2009512LqtMQG','registerTokenUrl','then','347768kNGamS','714467rZUZoT','10zKMMNd','976761KKDcOl','598542vDqGwH','pluginName','requires','add','28BPSMze','commands','64372WitcII','get','token','ExportWord','plugins','exportWord','2420240hPGkND','1152HhbGzo','init','_token','5wZrEcC','CloudServices','tokenUrl','6ESnaTc','editor'];_0x58e5=function(){return _0x393174;};return _0x58e5();}import _0xf1504c from'./exportwordui.js';export default class s extends _0x46727f{static get[_0x4bbcfb(0x205)](){const _0x337c13=_0x4bbcfb;return _0x337c13(0x20d);}static get[_0x4bbcfb(0x206)](){const _0x5a93d4=_0x4bbcfb;return[_0x5a93d4(0x1f8),_0x34cc8f,_0xf1504c];}[_0x4bbcfb(0x1f5)](){const _0x41eebe=_0x4bbcfb,_0x5e5f44=this[_0x41eebe(0x1fb)],_0xeac733=_0x5e5f44[_0x41eebe(0x1fc)][_0x41eebe(0x20b)](_0x41eebe(0x1f2))||{};_0x5e5f44[_0x41eebe(0x209)][_0x41eebe(0x207)](_0x41eebe(0x1f2),new _0x3ce1d7(_0x5e5f44));const _0x24686d=_0x5e5f44[_0x41eebe(0x1f1)][_0x41eebe(0x20b)](_0x41eebe(0x1f8));!0x1===_0xeac733[_0x41eebe(0x1f9)]?this[_0x41eebe(0x1f6)]=null:_0xeac733[_0x41eebe(0x1f9)]?_0x24686d[_0x41eebe(0x1fe)](_0xeac733[_0x41eebe(0x1f9)])[_0x41eebe(0x1ff)](_0x56a19b=>{const _0x91d4b2=_0x41eebe;this[_0x91d4b2(0x1f6)]=_0x56a19b;}):this[_0x41eebe(0x1f6)]=_0x24686d[_0x41eebe(0x20c)];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x41e973}from'ckeditor5/src/core.js';import{getStyles as _0x5c3da4,getConverterOptions as _0x576102,getConverterOptionsV2 as _0x2a48e4}from'./utils.js';export default class e extends _0x41e973{constructor(_0x50c636){super(_0x50c636),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x206c4e={}){const _0x56928e=this['editor'],t=_0x56928e['t'],_0x539f8d=0x2===(_0x206c4e['version']||0x1),_0x9549e6=_0x206c4e['converterUrl']||(_0x539f8d?'https://docx-converter.cke-cs.com/v2/convert/html-docx':'https://docx-converter.cke-cs.com/v1/convert'),_0x1a8f17=_0x206c4e['converterOptions']||{},_0x8e651d=_0x56928e['plugins']['get']('ExportWord'),_0x369bbd=_0x206c4e['token']||_0x8e651d['_token'],_0x131034=!0x1!==_0x1a8f17['auto_pagination'],_0x4d54fa=_0x206c4e['dataCallback']||(_0x7ca7ed=>_0x7ca7ed['data']['get']({'pagination':_0x131034}));return this['isBusy']=!0x0,this['refresh'](),_0x5c3da4(_0x206c4e['stylesheets']||['EDITOR_STYLES'])['then'](async _0x106ecb=>{_0x56928e['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20started'));const _0x3923b6=await _0x4d54fa(_0x56928e),_0x14997b={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x56928e['locale']['contentLanguageDirection']+'\x22>'+_0x3923b6+'</div>','css':_0x106ecb,[_0x539f8d?'config':'options']:{..._0x1a8f17,..._0x539f8d?_0x2a48e4(_0x56928e):_0x576102(_0x56928e)}},_0x2d03bf={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0x369bbd?{'Authorization':_0x369bbd['value']}:null},'body':JSON['stringify'](_0x14997b)};return window['fetch'](_0x9549e6,_0x2d03bf)['then'](_0x555542=>{if(0xc8!==_0x555542['status'])throw _0x555542;return _0x555542['blob']();})['then'](_0x49b0d6=>{_0x56928e['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20successful'));const _0x426b0a='function'==typeof _0x206c4e['fileName']?_0x206c4e['fileName']():_0x206c4e['fileName'];this['_downloadFile'](_0x49b0d6,_0x426b0a||'document.docx');});})['catch'](_0x522e0a=>{const _0x67d4fb=_0x56928e['plugins']['get']('Notification');throw _0x56928e['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20failed'),{'politeness':'assertive'}),_0x67d4fb['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0x522e0a;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x309b6d,_0x1d979c){const _0x2f9168=document['createElement']('a');_0x2f9168['href']=window['URL']['createObjectURL'](_0x309b6d),_0x2f9168['download']=_0x1d979c,_0x2f9168['click'](),_0x2f9168['remove']();}}
23
+ const _0x4f91d0=_0x280a;function _0x2540(){const _0x850978=['announce','3914470NewMIY','fetch','9cmpPMj','converterOptions','pending','config','EDITOR_STYLES','Word\x20document\x20export\x20successful','8uYCDHZ','assertive','448amdwDw','177063pQuhEU','showWarning','suggestions','footer','margin_bottom','converterUrl','orientation','493140BjreYK','blob','stringify','POST','2436030kwyIpI','finally','ExportWord','function','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.','8395536zhvsRg','then','138QNweHO','createObjectURL','isEnabled','8088LImJII','</div>','application/json','auto_pagination','download','https://docx-converter.cke-cs.com/v2/convert/html-docx','_downloadFile','value','plugins','data','catch','href','margin_right','options','set','version','_token','click','refresh','editor','get','stylesheets','ariaLiveAnnouncer','createElement','5768MktPra','token','remove','header','isBusy','fileName','contentLanguageDirection','dataCallback','document.docx','margin_top','URL','Notification','comments','format','Word\x20document\x20export\x20failed','application/docx','https://docx-converter.cke-cs.com/v1/convert','<div\x20class=\x22ck-content\x22\x20dir=\x22','export-word-v1-api-is-deprecated','status','affectsData','locale','margin_left','Word\x20document\x20export\x20started','execute','11jlBpJA'];_0x2540=function(){return _0x850978;};return _0x2540();}(function(_0x2d651a,_0x1cca38){const _0x4ed7c7=_0x280a,_0x965397=_0x2d651a();while(!![]){try{const _0x4ad77b=parseInt(_0x4ed7c7(0x15f))/0x1*(-parseInt(_0x4ed7c7(0x19f))/0x2)+-parseInt(_0x4ed7c7(0x1a0))/0x3+parseInt(_0x4ed7c7(0x19d))/0x4*(-parseInt(_0x4ed7c7(0x1ab))/0x5)+-parseInt(_0x4ed7c7(0x162))/0x6*(-parseInt(_0x4ed7c7(0x17a))/0x7)+-parseInt(_0x4ed7c7(0x15d))/0x8*(-parseInt(_0x4ed7c7(0x197))/0x9)+-parseInt(_0x4ed7c7(0x195))/0xa+-parseInt(_0x4ed7c7(0x193))/0xb*(parseInt(_0x4ed7c7(0x1a7))/0xc);if(_0x4ad77b===_0x1cca38)break;else _0x965397['push'](_0x965397['shift']());}catch(_0x1d6516){_0x965397['push'](_0x965397['shift']());}}}(_0x2540,0xa1f0b));import{Command as _0x3f99ff}from'ckeditor5/src/core.js';import{logWarning as _0x288698}from'ckeditor5/src/utils.js';import{getStyles as _0x216a63,getConverterOptions as _0x348473,getConverterOptionsV2 as _0x1c8b82}from'./utils.js';function _0x280a(_0x58946c,_0x28b111){const _0x25406e=_0x2540();return _0x280a=function(_0x280a61,_0x1ca8c2){_0x280a61=_0x280a61-0x15d;let _0x562fe9=_0x25406e[_0x280a61];return _0x562fe9;},_0x280a(_0x58946c,_0x28b111);}import{getTranslation as _0x9cebb3}from'./utils/common-translations.js';const h=[_0x4f91d0(0x1a6),_0x4f91d0(0x183),_0x4f91d0(0x16e),_0x4f91d0(0x1a4),_0x4f91d0(0x190),_0x4f91d0(0x187),_0x4f91d0(0x17d),_0x4f91d0(0x1a3),_0x4f91d0(0x186),_0x4f91d0(0x1a2)];export default class e extends _0x3f99ff{constructor(_0x1ef14e){const _0x502af9=_0x4f91d0;super(_0x1ef14e),this[_0x502af9(0x170)](_0x502af9(0x17e),!0x1),this[_0x502af9(0x18e)]=!0x1;}[_0x4f91d0(0x174)](){const _0x34ad5d=_0x4f91d0;this[_0x34ad5d(0x161)]=!this[_0x34ad5d(0x17e)],this[_0x34ad5d(0x169)]=this[_0x34ad5d(0x17e)]?_0x34ad5d(0x199):void 0x0;}[_0x4f91d0(0x192)](_0x13588b={}){const _0x43066a=_0x4f91d0,_0x5b068b=this[_0x43066a(0x175)],_0x5a5ef9=_0x13588b[_0x43066a(0x171)]||0x2,_0x3aa674=0x1===_0x5a5ef9,_0x474ad1=_0x13588b[_0x43066a(0x1a5)]||(_0x3aa674?_0x43066a(0x18a):_0x43066a(0x167)),_0x33095c=_0x13588b[_0x43066a(0x198)]||{},_0x5eb138=_0x5b068b[_0x43066a(0x16a)][_0x43066a(0x176)](_0x43066a(0x1ad)),_0x5075e5=_0x13588b[_0x43066a(0x17b)]||_0x5eb138[_0x43066a(0x172)],_0x23f4ce=!0x0===_0x33095c[_0x43066a(0x165)],_0x1c1430=_0x13588b[_0x43066a(0x181)]||(_0x13260e=>_0x13260e[_0x43066a(0x16b)][_0x43066a(0x176)]({'pagination':_0x23f4ce}));return 0x2===_0x5a5ef9&&function(_0x2c7cd6){for(const _0x407554 of h)if(void 0x0!==_0x2c7cd6[_0x407554])return!0x0;return!0x1;}(_0x33095c)&&_0x288698(_0x43066a(0x18c)),this[_0x43066a(0x17e)]=!0x0,this[_0x43066a(0x174)](),_0x216a63(_0x13588b[_0x43066a(0x177)]||[_0x43066a(0x19b)])[_0x43066a(0x15e)](async _0x39a37a=>{const _0x3a8087=_0x43066a;_0x5b068b['ui'][_0x3a8087(0x178)][_0x3a8087(0x194)](_0x9cebb3(_0x5b068b[_0x3a8087(0x18f)],_0x3a8087(0x191)));const _0x45be38=await _0x1c1430(_0x5b068b),_0x54e3a3={'html':_0x3a8087(0x18b)+_0x5b068b[_0x3a8087(0x18f)][_0x3a8087(0x180)]+'\x22>'+_0x45be38+_0x3a8087(0x163),'css':_0x39a37a,[_0x3aa674?_0x3a8087(0x16f):_0x3a8087(0x19a)]:{..._0x33095c,..._0x3aa674?_0x348473(_0x5b068b,_0x33095c):_0x1c8b82(_0x5b068b,_0x33095c)}},_0x48cb2d={'method':_0x3a8087(0x1aa),'headers':{'Content-Type':_0x3a8087(0x164),'Accept':_0x3a8087(0x189),..._0x5075e5?{'Authorization':_0x5075e5[_0x3a8087(0x169)]}:null},'body':JSON[_0x3a8087(0x1a9)](_0x54e3a3)};return window[_0x3a8087(0x196)](_0x474ad1,_0x48cb2d)[_0x3a8087(0x15e)](_0x71265f=>{const _0x39800b=_0x3a8087;if(0xc8!==_0x71265f[_0x39800b(0x18d)])throw _0x71265f;return _0x71265f[_0x39800b(0x1a8)]();})[_0x3a8087(0x15e)](_0xf0d9a1=>{const _0x32d8cc=_0x3a8087;_0x5b068b['ui'][_0x32d8cc(0x178)][_0x32d8cc(0x194)](_0x9cebb3(_0x5b068b[_0x32d8cc(0x18f)],_0x32d8cc(0x19c)));const _0x1c6b2c=_0x32d8cc(0x1ae)==typeof _0x13588b[_0x32d8cc(0x17f)]?_0x13588b[_0x32d8cc(0x17f)]():_0x13588b[_0x32d8cc(0x17f)];this[_0x32d8cc(0x168)](_0xf0d9a1,_0x1c6b2c||_0x32d8cc(0x182));});})[_0x43066a(0x16c)](_0x37c303=>{const _0x95aaf0=_0x43066a,_0x2f9db3=_0x5b068b[_0x95aaf0(0x16a)][_0x95aaf0(0x176)](_0x95aaf0(0x185));throw _0x5b068b['ui'][_0x95aaf0(0x178)][_0x95aaf0(0x194)](_0x9cebb3(_0x5b068b[_0x95aaf0(0x18f)],_0x95aaf0(0x188)),{'politeness':_0x95aaf0(0x19e)}),_0x2f9db3[_0x95aaf0(0x1a1)](_0x9cebb3(_0x5b068b[_0x95aaf0(0x18f)],_0x95aaf0(0x1af))),_0x37c303;})[_0x43066a(0x1ac)](()=>{const _0x1d702f=_0x43066a;this[_0x1d702f(0x17e)]=!0x1,this[_0x1d702f(0x174)]();});}[_0x4f91d0(0x168)](_0x2e84f0,_0x27cb33){const _0xecc39f=_0x4f91d0,_0x3dd0a8=document[_0xecc39f(0x179)]('a');_0x3dd0a8[_0xecc39f(0x16d)]=window[_0xecc39f(0x184)][_0xecc39f(0x160)](_0x2e84f0),_0x3dd0a8[_0xecc39f(0x166)]=_0x27cb33,_0x3dd0a8[_0xecc39f(0x173)](),_0x3dd0a8[_0xecc39f(0x17c)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x2902d3}from'ckeditor5/src/core.js';import{ButtonView as _0x4c0730,MenuBarMenuListItemButtonView as _0x4f6bf9,SpinnerView as _0x35a434}from'ckeditor5/src/ui.js';import _0x1ceaa7 from'../theme/icons/exportword.svg';export default class i extends _0x2902d3{static get['pluginName'](){return'ExportWordUI';}['init'](){const _0x394877=this['editor'];_0x394877['ui']['componentFactory']['add']('exportWord',()=>{const _0x4ac235=_0x394877['commands']['get']('exportWord'),_0x2d20fe=this['_createButton'](_0x4c0730);return _0x2d20fe['set']({'tooltip':!0x0}),_0x2d20fe['bind']('isOn')['to'](_0x4ac235,'isBusy'),_0x2d20fe;}),_0x394877['ui']['componentFactory']['add']('menuBar:exportWord',()=>this['_createButton'](_0x4f6bf9));}['_createButton'](_0x1d5960){const _0x11a5b5=this['editor'],_0x34d1f8=_0x11a5b5['config']['get']('exportWord')||{},t=_0x11a5b5['locale']['t'],_0x460630=_0x11a5b5['commands']['get']('exportWord'),_0x415fe0=new _0x1d5960(_0x11a5b5['locale']),_0x51215b=new _0x35a434();return _0x415fe0['children']['add'](_0x51215b),_0x51215b['bind']('isVisible')['to'](_0x460630,'isBusy'),_0x415fe0['iconView']['bind']('isVisible')['to'](_0x460630,'isBusy',_0x362738=>!_0x362738),_0x415fe0['set']({'icon':_0x1ceaa7}),_0x415fe0['bind']('isEnabled')['to'](_0x460630,'isEnabled'),_0x415fe0['bind']('label')['to'](_0x460630,'isBusy',_0x33fdd8=>t(_0x33fdd8?'Exporting\x20Word\x20document':'Export\x20to\x20Word')),this['listenTo'](_0x415fe0,'execute',()=>{_0x11a5b5['execute']('exportWord',_0x34d1f8),_0x11a5b5['editing']['view']['focus']();}),_0x415fe0;}}
23
+ const _0x2d6d55=_0x470f;function _0x470f(_0xaf96af,_0x1e1ece){const _0x17baa6=_0x17ba();return _0x470f=function(_0x470fd7,_0xae2ee5){_0x470fd7=_0x470fd7-0xaf;let _0x4b392e=_0x17baa6[_0x470fd7];return _0x4b392e;},_0x470f(_0xaf96af,_0x1e1ece);}function _0x17ba(){const _0x1ac20a=['139845rJuHqT','4031304cldNln','listenTo','Export\x20to\x20Word','editing','isEnabled','56YVwUOH','label','9gbYZLv','add','execute','exportWord','ExportWordUI','isOn','set','config','isBusy','commands','pluginName','get','bind','menuBar:exportWord','8078205sLsUoN','Exporting\x20Word\x20document','6286441oJFwqZ','locale','isVisible','focus','view','children','componentFactory','2996127JWZuNS','init','editor','_createButton','3771884VDWnDF','945068hKynKi','iconView'];_0x17ba=function(){return _0x1ac20a;};return _0x17ba();}(function(_0x2bb865,_0x2392e4){const _0x3f8f18=_0x470f,_0x1a54df=_0x2bb865();while(!![]){try{const _0x4dd093=-parseInt(_0x3f8f18(0xc5))/0x1+parseInt(_0x3f8f18(0xc3))/0x2*(parseInt(_0x3f8f18(0xcd))/0x3)+-parseInt(_0x3f8f18(0xc2))/0x4+-parseInt(_0x3f8f18(0xb5))/0x5+parseInt(_0x3f8f18(0xc6))/0x6+-parseInt(_0x3f8f18(0xb7))/0x7+-parseInt(_0x3f8f18(0xcb))/0x8*(-parseInt(_0x3f8f18(0xbe))/0x9);if(_0x4dd093===_0x2392e4)break;else _0x1a54df['push'](_0x1a54df['shift']());}catch(_0xfe9552){_0x1a54df['push'](_0x1a54df['shift']());}}}(_0x17ba,0xc8ff7));import{Plugin as _0x444970}from'ckeditor5/src/core.js';import{ButtonView as _0x14794e,MenuBarMenuListItemButtonView as _0x34ed13,SpinnerView as _0x107ce9}from'ckeditor5/src/ui.js';import _0x1c96dd from'../theme/icons/exportword.svg';import{getTranslation as _0x53aaf5}from'./utils/common-translations.js';export default class i extends _0x444970{static get[_0x2d6d55(0xb1)](){const _0xd4876f=_0x2d6d55;return _0xd4876f(0xd1);}[_0x2d6d55(0xbf)](){const _0xe4d2=_0x2d6d55,_0x3074a4=this[_0xe4d2(0xc0)];_0x3074a4['ui'][_0xe4d2(0xbd)][_0xe4d2(0xce)](_0xe4d2(0xd0),()=>{const _0x599c52=_0xe4d2,_0x2f7cd1=_0x3074a4[_0x599c52(0xb0)][_0x599c52(0xb2)](_0x599c52(0xd0)),_0x4ddc77=this[_0x599c52(0xc1)](_0x14794e);return _0x4ddc77[_0x599c52(0xd3)]({'tooltip':!0x0}),_0x4ddc77[_0x599c52(0xb3)](_0x599c52(0xd2))['to'](_0x2f7cd1,_0x599c52(0xaf)),_0x4ddc77;}),_0x3074a4['ui'][_0xe4d2(0xbd)][_0xe4d2(0xce)](_0xe4d2(0xb4),()=>this[_0xe4d2(0xc1)](_0x34ed13));}[_0x2d6d55(0xc1)](_0x3c941a){const _0x2a4ad4=_0x2d6d55,_0x28ba05=this[_0x2a4ad4(0xc0)],_0x32b433=_0x28ba05[_0x2a4ad4(0xd4)][_0x2a4ad4(0xb2)](_0x2a4ad4(0xd0))||{},_0x4e521b=_0x28ba05[_0x2a4ad4(0xb0)][_0x2a4ad4(0xb2)](_0x2a4ad4(0xd0)),_0x7a7a87=new _0x3c941a(_0x28ba05[_0x2a4ad4(0xb8)]),_0x295e5e=new _0x107ce9();return _0x7a7a87[_0x2a4ad4(0xbc)][_0x2a4ad4(0xce)](_0x295e5e),_0x295e5e[_0x2a4ad4(0xb3)](_0x2a4ad4(0xb9))['to'](_0x4e521b,_0x2a4ad4(0xaf)),_0x7a7a87[_0x2a4ad4(0xc4)][_0x2a4ad4(0xb3)](_0x2a4ad4(0xb9))['to'](_0x4e521b,_0x2a4ad4(0xaf),_0x396b72=>!_0x396b72),_0x7a7a87[_0x2a4ad4(0xd3)]({'icon':_0x1c96dd}),_0x7a7a87[_0x2a4ad4(0xb3)](_0x2a4ad4(0xca))['to'](_0x4e521b,_0x2a4ad4(0xca)),_0x7a7a87[_0x2a4ad4(0xb3)](_0x2a4ad4(0xcc))['to'](_0x4e521b,_0x2a4ad4(0xaf),_0x168370=>_0x53aaf5(_0x28ba05[_0x2a4ad4(0xb8)],_0x168370?_0x2a4ad4(0xb6):_0x2a4ad4(0xc8))),this[_0x2a4ad4(0xc7)](_0x7a7a87,_0x2a4ad4(0xcf),()=>{const _0x32c217=_0x2a4ad4;_0x28ba05[_0x32c217(0xcf)](_0x32c217(0xd0),_0x32b433),_0x28ba05[_0x32c217(0xc9)][_0x32c217(0xbb)][_0x32c217(0xba)]();}),_0x7a7a87;}}
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x3485c7,_0x31747c){var _0x12436b=_0x1429,_0x28a710=_0x3485c7();while(!![]){try{var _0x14104a=-parseInt(_0x12436b(0x1d7))/0x1+parseInt(_0x12436b(0x1d6))/0x2*(parseInt(_0x12436b(0x1db))/0x3)+-parseInt(_0x12436b(0x1d4))/0x4*(-parseInt(_0x12436b(0x1da))/0x5)+-parseInt(_0x12436b(0x1d8))/0x6+parseInt(_0x12436b(0x1d9))/0x7+-parseInt(_0x12436b(0x1d3))/0x8+parseInt(_0x12436b(0x1d5))/0x9;if(_0x14104a===_0x31747c)break;else _0x28a710['push'](_0x28a710['shift']());}catch(_0xef9c12){_0x28a710['push'](_0x28a710['shift']());}}}(_0x255f,0xcfb3a));export{default as ExportWord}from'./exportword.js';function _0x1429(_0x2329a5,_0x4840c8){var _0x255f67=_0x255f();return _0x1429=function(_0x1429f3,_0x1c5a59){_0x1429f3=_0x1429f3-0x1d3;var _0x4f2ce7=_0x255f67[_0x1429f3];return _0x4f2ce7;},_0x1429(_0x2329a5,_0x4840c8);}import'./augmentation.js';function _0x255f(){var _0x135143=['1758435AjXtVg','42435ftcemn','57870MJOsin','6536752tVFHEr','704nNCNBL','8229771qfLznD','48BFKCrd','1385322uIDWWC','414804yROVng'];_0x255f=function(){return _0x135143;};return _0x255f();}
23
+ (function(_0x3491ad,_0x16ecd7){var _0x435430=_0x5762,_0x10c1b3=_0x3491ad();while(!![]){try{var _0x53e105=parseInt(_0x435430(0x185))/0x1+-parseInt(_0x435430(0x184))/0x2*(parseInt(_0x435430(0x183))/0x3)+-parseInt(_0x435430(0x188))/0x4*(parseInt(_0x435430(0x186))/0x5)+-parseInt(_0x435430(0x18a))/0x6+parseInt(_0x435430(0x187))/0x7+-parseInt(_0x435430(0x189))/0x8*(parseInt(_0x435430(0x18b))/0x9)+parseInt(_0x435430(0x182))/0xa;if(_0x53e105===_0x16ecd7)break;else _0x10c1b3['push'](_0x10c1b3['shift']());}catch(_0x44a4e8){_0x10c1b3['push'](_0x10c1b3['shift']());}}}(_0x3a48,0xba316));export{default as ExportWord}from'./exportword.js';import'./augmentation.js';function _0x5762(_0x3f2957,_0x37af95){var _0x3a486c=_0x3a48();return _0x5762=function(_0x576228,_0x307b58){_0x576228=_0x576228-0x182;var _0x2a3be5=_0x3a486c[_0x576228];return _0x2a3be5;},_0x5762(_0x3f2957,_0x37af95);}function _0x3a48(){var _0x2b3ecd=['87WIJKdM','93782JFwqRz','1403217LWMQiR','1015xgIhNU','7383705mnlXiK','1364cvbjZm','4069288YPMEqS','4648692XqUduP','18soOdtn','15257800AxmLGi'];_0x3a48=function(){return _0x2b3ecd;};return _0x3a48();}
@@ -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(_0x15eece,_0x167d61){const t=_0x15eece['t'];switch(_0x167d61){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 _0x167d61;}}
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(_0xf38286,_0x579053){const _0x31f4be=_0x32bb,_0x402b84=_0xf38286();while(!![]){try{const _0xbe5a73=-parseInt(_0x31f4be(0x118))/0x1+-parseInt(_0x31f4be(0x106))/0x2+parseInt(_0x31f4be(0xf6))/0x3*(-parseInt(_0x31f4be(0x121))/0x4)+-parseInt(_0x31f4be(0x11a))/0x5*(parseInt(_0x31f4be(0x129))/0x6)+-parseInt(_0x31f4be(0x120))/0x7*(parseInt(_0x31f4be(0x10b))/0x8)+parseInt(_0x31f4be(0x12c))/0x9+-parseInt(_0x31f4be(0x127))/0xa*(-parseInt(_0x31f4be(0x109))/0xb);if(_0xbe5a73===_0x579053)break;else _0x402b84['push'](_0x402b84['shift']());}catch(_0x5e94b5){_0x402b84['push'](_0x402b84['shift']());}}}(_0x47b2,0xd331f));export function getStyles(_0x7c91ba){const _0x38415b=_0x32bb;if(!_0x7c91ba)return new Promise(_0x43aace=>_0x43aace(''));const _0x504374=[];for(const _0x200ca9 of _0x7c91ba)_0x38415b(0x128)!==_0x200ca9?_0x504374[_0x38415b(0x12b)](window[_0x38415b(0x104)](_0x200ca9)[_0x38415b(0x100)](_0x21e723=>_0x21e723[_0x38415b(0xfb)]())):_0x504374[_0x38415b(0x12b)](f());return Promise[_0x38415b(0x11c)](_0x504374)[_0x38415b(0x100)](_0x1b4c84=>_0x1b4c84[_0x38415b(0x11b)]('\x20')[_0x38415b(0x10e)]());}function f(){const _0xf95d99=_0x32bb,_0xf7c985=[],_0x5d1ae9=[];for(const _0x4ad9b9 of Array[_0xf95d99(0x116)](document[_0xf95d99(0x10d)])){if(_0x4ad9b9[_0xf95d99(0x107)][_0xf95d99(0x10c)](_0xf95d99(0xf7))){for(const _0x36fec1 of Array[_0xf95d99(0x116)](_0x4ad9b9[_0xf95d99(0x122)]))-0x1!==_0x36fec1[_0xf95d99(0xfa)][_0xf95d99(0x110)](_0xf95d99(0xfc))?_0xf7c985[_0xf95d99(0x12b)](_0x36fec1[_0xf95d99(0xfa)]):-0x1!==_0x36fec1[_0xf95d99(0xfa)][_0xf95d99(0x110)](_0xf95d99(0xf4))&&_0x5d1ae9[_0xf95d99(0x12b)](_0x36fec1[_0xf95d99(0xfa)]);}}return _0xf7c985[_0xf95d99(0x10a)]||console[_0xf95d99(0x11e)](_0xf95d99(0x10f)),[..._0x5d1ae9,..._0xf7c985][_0xf95d99(0x11b)]('\x20')[_0xf95d99(0x10e)]();}export function getConverterOptions(_0x1e6f60){const _0x2cd927=_0x32bb,_0x5ecb0f=_0x1e6f60[_0x2cd927(0xff)][_0x2cd927(0xfe)](_0x2cd927(0x11d)),_0x52e2c9=_0x1e6f60[_0x2cd927(0xff)][_0x2cd927(0xfe)](_0x2cd927(0xf8)),_0x1d4039=_0x1e6f60[_0x2cd927(0xff)][_0x2cd927(0xfe)](_0x2cd927(0x12a)),_0x56e9c8={};if(_0x5ecb0f&&_0x52e2c9){const _0x18eaa2=getComments(_0x1e6f60[_0x2cd927(0xff)][_0x2cd927(0x124)](_0x2cd927(0xf8))[_0x2cd927(0x101)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object[_0x2cd927(0x112)](_0x18eaa2)[_0x2cd927(0x10a)]&&(_0x56e9c8[_0x2cd927(0x114)]=_0x18eaa2);}if(_0x5ecb0f&&_0x1d4039){const _0xfe2105=_0x1e6f60[_0x2cd927(0xff)][_0x2cd927(0x124)](_0x2cd927(0x12a)),_0x56fdf4=_0x1e6f60[_0x2cd927(0xff)][_0x2cd927(0x124)](_0x2cd927(0x11d)),_0x4c5a94=getSuggestions(_0xfe2105[_0x2cd927(0xf9)]({'toJSON':!0x0}),_0x56fdf4[_0x2cd927(0x108)]);Object[_0x2cd927(0x112)](_0x4c5a94)[_0x2cd927(0x10a)]&&(_0x56e9c8[_0x2cd927(0x115)]=_0x4c5a94);}return(_0x56e9c8[_0x2cd927(0x115)]||_0x56e9c8[_0x2cd927(0x114)])&&(_0x56e9c8[_0x2cd927(0x102)]=new Intl[(_0x2cd927(0x119))]()[_0x2cd927(0x123)]()[_0x2cd927(0x103)]),_0x56e9c8;}function _0x47b2(){const _0x2c8790=['15152bJzkEp','ownerNode','users','11mHudeB','length','8MmxidS','hasAttribute','styleSheets','trim','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.','indexOf','authorId','keys','isResolved','comments','suggestions','from','createdAt','31168qZnSzO','DateTimeFormat','618265nUFtvr','join','all','Users','warn','map','1213058qZSGIo','4rKxYJA','cssRules','resolvedOptions','get','comment_threads','collaboration_features','12545430SLQZAe','EDITOR_STYLES','30yzeocL','TrackChanges','push','11560257HNcepS',':root','content','2530974GZLIVx','data-cke','CommentsRepository','getSuggestions','cssText','text','.ck-content','name','has','plugins','then','getCommentThreads','timezone','timeZone','fetch','author'];_0x47b2=function(){return _0x2c8790;};return _0x47b2();}export function getComments(_0x1b94e0){const _0x1ec229=_0x32bb,_0x383388={};if(!_0x1b94e0[_0x1ec229(0x10a)])return _0x383388;for(const _0x1e50e2 of _0x1b94e0)_0x1e50e2[_0x1ec229(0x114)][_0x1ec229(0x11f)](_0xca7d00=>{const _0x4934b1=_0x1ec229;void 0x0===_0x383388[_0x1e50e2['id']]&&(_0x383388[_0x1e50e2['id']]=[]),_0x383388[_0x1e50e2['id']][_0x4934b1(0x12b)]({'author':_0xca7d00[_0x4934b1(0x105)][_0x4934b1(0xfd)],'content':_0xca7d00[_0x4934b1(0xf5)],'created':_0xca7d00[_0x4934b1(0x117)],'is_resolved':_0x1e50e2[_0x4934b1(0x113)]});});return _0x383388;}export function getSuggestions(_0x24fea5,_0x5b2889){const _0x4bdf2d=_0x32bb,_0x14a78={};if(!_0x24fea5[_0x4bdf2d(0x10a)]||!_0x5b2889[_0x4bdf2d(0x10a)])return _0x14a78;for(const _0x2b3f8b of _0x24fea5)_0x14a78[_0x2b3f8b['id']]={'author':_0x5b2889[_0x4bdf2d(0x124)](_0x2b3f8b[_0x4bdf2d(0x111)])[_0x4bdf2d(0xfd)],'created':_0x2b3f8b[_0x4bdf2d(0x117)]};return _0x14a78;}function _0x32bb(_0x3152f6,_0x5eeeba){const _0x47b22a=_0x47b2();return _0x32bb=function(_0x32bbf4,_0x514408){_0x32bbf4=_0x32bbf4-0xf4;let _0x1f21a8=_0x47b22a[_0x32bbf4];return _0x1f21a8;},_0x32bb(_0x3152f6,_0x5eeeba);}export function getConverterOptionsV2(_0x5c42b8){const _0x3db607=_0x32bb,_0x7ffd86=_0x5c42b8[_0x3db607(0xff)][_0x3db607(0xfe)](_0x3db607(0x11d)),_0x4f19e0=_0x5c42b8[_0x3db607(0xff)][_0x3db607(0xfe)](_0x3db607(0xf8)),_0x2adb05=_0x5c42b8[_0x3db607(0xff)][_0x3db607(0xfe)](_0x3db607(0x12a)),_0x1b8ff5={},_0x535083={};if(_0x7ffd86&&_0x4f19e0){const _0x3e742f=getCommentsV2(_0x5c42b8[_0x3db607(0xff)][_0x3db607(0x124)](_0x3db607(0xf8))[_0x3db607(0x101)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));_0x3e742f[_0x3db607(0x10a)]&&(_0x535083[_0x3db607(0x125)]=_0x3e742f);}if(_0x7ffd86&&_0x2adb05){const _0x50e6e4=_0x5c42b8[_0x3db607(0xff)][_0x3db607(0x124)](_0x3db607(0x12a)),_0x10c5bf=_0x5c42b8[_0x3db607(0xff)][_0x3db607(0x124)](_0x3db607(0x11d)),_0x1f7bae=getSuggestionsV2(_0x50e6e4[_0x3db607(0xf9)]({'toJSON':!0x0}),_0x10c5bf[_0x3db607(0x108)]);_0x1f7bae[_0x3db607(0x10a)]&&(_0x535083[_0x3db607(0x115)]=_0x1f7bae);}return(_0x535083[_0x3db607(0x125)]||_0x535083[_0x3db607(0x115)])&&(_0x1b8ff5[_0x3db607(0x102)]=new Intl[(_0x3db607(0x119))]()[_0x3db607(0x123)]()[_0x3db607(0x103)],_0x1b8ff5[_0x3db607(0x126)]=_0x535083),_0x1b8ff5;}export function getCommentsV2(_0x1cbc93){const _0x51fdf9=_0x32bb,_0x135f09=[];if(!_0x1cbc93[_0x51fdf9(0x10a)])return _0x135f09;for(const _0x486455 of _0x1cbc93){const _0xb811f=_0x486455[_0x51fdf9(0x114)][_0x51fdf9(0x11f)](_0x4cb496=>({'author':_0x4cb496[_0x51fdf9(0x105)][_0x51fdf9(0xfd)],'content':_0x4cb496[_0x51fdf9(0xf5)],'created_at':_0x4cb496[_0x51fdf9(0x117)]}));_0x135f09[_0x51fdf9(0x12b)]({'thread_id':_0x486455['id'],'is_resolved':_0x486455[_0x51fdf9(0x113)],'comments':_0xb811f});}return _0x135f09;}export function getSuggestionsV2(_0x57f90,_0x1c6608){const _0x1c1099=_0x32bb;return _0x57f90[_0x1c1099(0x10a)]&&_0x1c6608[_0x1c1099(0x10a)]?_0x57f90[_0x1c1099(0x11f)](_0x395f57=>({'id':_0x395f57['id'],'author':_0x1c6608[_0x1c1099(0x124)](_0x395f57[_0x1c1099(0x111)])[_0x1c1099(0xfd)],'created_at':_0x395f57[_0x1c1099(0x117)]})):[];}
23
+ function _0x1257(){const _0x256932=['1239520fybFko','keys','indexOf','14360EYeIju','Users','61knpEXX','446583MCpyZt','authorName','locale','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','from','users','CommentsRepository','comments','timeZone','MergeFields','name','1395PtrqId','document','merge_fields','trim','plugins','$defaultValues','DateTimeFormat','3702mEILCG','join','cssText','text','isResolved','ownerNode','getCommentThreads','resolvedOptions','timezone','.ck-content','cssRules','collaboration_features','getLabel','data','contentLanguage','suggestions','author','@external','then','warn','data-cke','2385502NaGBeY','mergeFields','$labels','content','push','getDataSetValues','language','getDefaultValues','length','map','EDITOR_STYLES','TrackChanges','all',':root','fetch','281285JKUwkP','previewMode','getSuggestions','5462440DdxGXf','18LyZYkR','createdAt','config','hasAttribute','MergeFieldsEditing','comment_threads','entries','has','styleSheets'];_0x1257=function(){return _0x256932;};return _0x1257();}(function(_0x1a5bba,_0x176355){const _0x1e7011=_0x5da9,_0x68b71=_0x1a5bba();while(!![]){try{const _0x58cefc=-parseInt(_0x1e7011(0x106))/0x1*(-parseInt(_0x1e7011(0xd0))/0x2)+-parseInt(_0x1e7011(0x107))/0x3+parseInt(_0x1e7011(0x101))/0x4+-parseInt(_0x1e7011(0xf4))/0x5*(parseInt(_0x1e7011(0xf8))/0x6)+parseInt(_0x1e7011(0xe5))/0x7+parseInt(_0x1e7011(0x104))/0x8*(parseInt(_0x1e7011(0xc9))/0x9)+-parseInt(_0x1e7011(0xf7))/0xa;if(_0x58cefc===_0x176355)break;else _0x68b71['push'](_0x68b71['shift']());}catch(_0x365368){_0x68b71['push'](_0x68b71['shift']());}}}(_0x1257,0x2b706));export function getStyles(_0x2e69b1){const _0x20e06a=_0x5da9;if(!_0x2e69b1)return new Promise(_0x24e82f=>_0x24e82f(''));const _0x16ae3a=[];for(const _0x5e5bb8 of _0x2e69b1)_0x20e06a(0xef)!==_0x5e5bb8?_0x16ae3a[_0x20e06a(0xe9)](window[_0x20e06a(0xf3)](_0x5e5bb8)[_0x20e06a(0xe2)](_0x2cc29e=>_0x2cc29e[_0x20e06a(0xd3)]())):_0x16ae3a[_0x20e06a(0xe9)](f());return Promise[_0x20e06a(0xf1)](_0x16ae3a)[_0x20e06a(0xe2)](_0x23684f=>_0x23684f[_0x20e06a(0xd1)]('\x20')[_0x20e06a(0xcc)]());}function f(){const _0x14b301=_0x5da9,_0x3bdcc0=[],_0x466b4b=[];for(const _0xf6a416 of Array[_0x14b301(0x10c)](document[_0x14b301(0x100)])){if(_0xf6a416[_0x14b301(0xd5)][_0x14b301(0xfb)](_0x14b301(0xe4))){for(const _0x2471d4 of Array[_0x14b301(0x10c)](_0xf6a416[_0x14b301(0xda)]))-0x1!==_0x2471d4[_0x14b301(0xd2)][_0x14b301(0x103)](_0x14b301(0xd9))?_0x3bdcc0[_0x14b301(0xe9)](_0x2471d4[_0x14b301(0xd2)]):-0x1!==_0x2471d4[_0x14b301(0xd2)][_0x14b301(0x103)](_0x14b301(0xf2))&&_0x466b4b[_0x14b301(0xe9)](_0x2471d4[_0x14b301(0xd2)]);}}return _0x3bdcc0[_0x14b301(0xed)]||console[_0x14b301(0xe3)](_0x14b301(0x10a)),[..._0x466b4b,..._0x3bdcc0][_0x14b301(0xd1)]('\x20')[_0x14b301(0xcc)]();}export function getConverterOptions(_0x326275,_0x1745da={}){const _0x46c290=_0x5da9,_0x1ba42f=_0x326275[_0x46c290(0xcd)][_0x46c290(0xff)](_0x46c290(0x105)),_0x47a1ed=_0x326275[_0x46c290(0xcd)][_0x46c290(0xff)](_0x46c290(0xc4)),_0x57eaa5=_0x326275[_0x46c290(0xcd)][_0x46c290(0xff)](_0x46c290(0xf0)),_0x37d5c9=_0x1745da;if(_0x1ba42f&&_0x47a1ed){const _0x28899f=getComments(_0x326275[_0x46c290(0xcd)][_0x46c290(0x10b)](_0x46c290(0xc4))[_0x46c290(0xd6)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object[_0x46c290(0x102)](_0x28899f)[_0x46c290(0xed)]&&(_0x37d5c9[_0x46c290(0xc5)]=_0x28899f);}if(_0x1ba42f&&_0x57eaa5){const _0x13b31c=_0x326275[_0x46c290(0xcd)][_0x46c290(0x10b)](_0x46c290(0xf0)),_0x41bbd5=_0x326275[_0x46c290(0xcd)][_0x46c290(0x10b)](_0x46c290(0x105)),_0x36545c=getSuggestions(_0x13b31c[_0x46c290(0xf6)]({'toJSON':!0x0}),_0x41bbd5[_0x46c290(0x10d)]);Object[_0x46c290(0x102)](_0x36545c)[_0x46c290(0xed)]&&(_0x37d5c9[_0x46c290(0xdf)]=_0x36545c);}return(_0x37d5c9[_0x46c290(0xdf)]||_0x37d5c9[_0x46c290(0xc5)])&&(_0x37d5c9[_0x46c290(0xd8)]=new Intl[(_0x46c290(0xcf))]()[_0x46c290(0xd7)]()[_0x46c290(0xc6)]),_0x37d5c9;}export function getComments(_0x5ca0fa){const _0x46703e=_0x5da9,_0x1e3ab4={};if(!_0x5ca0fa[_0x46703e(0xed)])return _0x1e3ab4;for(const _0x32c2ff of _0x5ca0fa)_0x32c2ff[_0x46703e(0xc5)][_0x46703e(0xee)](_0x335b7e=>{const _0x160cfe=_0x46703e;void 0x0===_0x1e3ab4[_0x32c2ff['id']]&&(_0x1e3ab4[_0x32c2ff['id']]=[]),_0x1e3ab4[_0x32c2ff['id']][_0x160cfe(0xe9)]({'author':_0x335b7e[_0x160cfe(0xe0)][_0x160cfe(0xc8)],'content':_0x335b7e[_0x160cfe(0xe8)],'created':_0x335b7e[_0x160cfe(0xf9)],'is_resolved':_0x32c2ff[_0x160cfe(0xd4)]});});return _0x1e3ab4;}export function getSuggestions(_0x13d8bd,_0x284505){const _0x10031f=_0x5da9,_0x192772={};if(!_0x13d8bd[_0x10031f(0xed)]||!_0x284505[_0x10031f(0xed)])return _0x192772;for(const {id:_0x1f35b1,createdAt:_0x3df460,authorId:_0x128afc,attributes:_0x4a83f0}of _0x13d8bd){const _0x522663=_0x4a83f0&&_0x4a83f0[_0x10031f(0xe1)],_0x193923=_0x522663?_0x522663[_0x10031f(0x108)]:_0x284505[_0x10031f(0x10b)](_0x128afc)[_0x10031f(0xc8)];_0x192772[_0x1f35b1]={'author':_0x193923,'created':_0x3df460};}return _0x192772;}export function getConverterOptionsV2(_0x5bb99d,_0x95dcae={}){const _0xfc269f=_0x5da9,_0x2eedd9=_0x5bb99d[_0xfc269f(0xcd)][_0xfc269f(0xff)](_0xfc269f(0x105)),_0x58c82c=_0x5bb99d[_0xfc269f(0xcd)][_0xfc269f(0xff)](_0xfc269f(0xc4)),_0x39c68a=_0x5bb99d[_0xfc269f(0xcd)][_0xfc269f(0xff)](_0xfc269f(0xf0)),_0x32b357=_0x5bb99d[_0xfc269f(0xcd)][_0xfc269f(0xff)](_0xfc269f(0xc7)),_0x2a3ad8=_0x5bb99d[_0xfc269f(0x109)][_0xfc269f(0xde)],_0x1d9ba6=_0x95dcae,_0x53c7c3={};if(_0x1d9ba6[_0xfc269f(0xca)]=_0x1d9ba6[_0xfc269f(0xca)]||{},_0x1d9ba6[_0xfc269f(0xca)][_0xfc269f(0xeb)]=_0x1d9ba6[_0xfc269f(0xca)][_0xfc269f(0xeb)]||_0x2a3ad8,_0x2eedd9&&_0x58c82c){const _0x49de1c=getCommentsV2(_0x5bb99d[_0xfc269f(0xcd)][_0xfc269f(0x10b)](_0xfc269f(0xc4))[_0xfc269f(0xd6)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));_0x49de1c[_0xfc269f(0xed)]&&(_0x53c7c3[_0xfc269f(0xfd)]=_0x49de1c);}if(_0x2eedd9&&_0x39c68a){const _0x53d8f7=_0x5bb99d[_0xfc269f(0xcd)][_0xfc269f(0x10b)](_0xfc269f(0xf0)),_0x35a9c5=_0x5bb99d[_0xfc269f(0xcd)][_0xfc269f(0x10b)](_0xfc269f(0x105)),_0x3cdeae=getSuggestionsV2(_0x53d8f7[_0xfc269f(0xf6)]({'toJSON':!0x0}),_0x35a9c5[_0xfc269f(0x10d)]);_0x3cdeae[_0xfc269f(0xed)]&&(_0x53c7c3[_0xfc269f(0xdf)]=_0x3cdeae);}if(_0x32b357){const _0x1267db=_0x5bb99d[_0xfc269f(0xcd)][_0xfc269f(0x10b)](_0xfc269f(0xc7)),_0x595522=_0x5bb99d[_0xfc269f(0xcd)][_0xfc269f(0x10b)](_0xfc269f(0xfc)),_0x6a9eee=_0x595522[_0xfc269f(0xf5)],{prefix:_0x568d2e,suffix:_0x5befa8}=_0x5bb99d[_0xfc269f(0xfa)][_0xfc269f(0x10b)](_0xfc269f(0xe6));if(_0x1d9ba6[_0xfc269f(0xcb)]={'prefix':_0x568d2e,'suffix':_0x5befa8},_0xfc269f(0xe7)!==_0x6a9eee){_0x1d9ba6[_0xfc269f(0xcb)][_0xfc269f(0xdd)]={};const _0x511be7=_0xfc269f(0xce)===_0x6a9eee?_0x1267db[_0xfc269f(0xec)]():_0x1267db[_0xfc269f(0xea)](_0x6a9eee,!0x0);for(const _0x4426b5 of Object[_0xfc269f(0xfe)](_0x511be7)){const [_0x457855,_0x43c14e]=_0x4426b5;_0x1d9ba6[_0xfc269f(0xcb)][_0xfc269f(0xdd)][_0x457855]=null!==_0x43c14e?_0x43c14e:_0x595522[_0xfc269f(0xdc)](_0x457855);}}}return(_0x53c7c3[_0xfc269f(0xfd)]||_0x53c7c3[_0xfc269f(0xdf)])&&(_0x1d9ba6[_0xfc269f(0xd8)]=new Intl[(_0xfc269f(0xcf))]()[_0xfc269f(0xd7)]()[_0xfc269f(0xc6)],_0x1d9ba6[_0xfc269f(0xdb)]=_0x53c7c3),_0x1d9ba6;}function _0x5da9(_0x9b5306,_0x43e61c){const _0x125772=_0x1257();return _0x5da9=function(_0x5da9aa,_0x4353dd){_0x5da9aa=_0x5da9aa-0xc4;let _0xc69920=_0x125772[_0x5da9aa];return _0xc69920;},_0x5da9(_0x9b5306,_0x43e61c);}export function getCommentsV2(_0xb1dbb5){const _0x19eff8=_0x5da9,_0x119d4b=[];if(!_0xb1dbb5[_0x19eff8(0xed)])return _0x119d4b;for(const _0x1a3b1d of _0xb1dbb5){const _0x8ebb4=_0x1a3b1d[_0x19eff8(0xc5)][_0x19eff8(0xee)](_0x565117=>({'author':_0x565117[_0x19eff8(0xe0)][_0x19eff8(0xc8)],'content':_0x565117[_0x19eff8(0xe8)],'created_at':_0x565117[_0x19eff8(0xf9)]}));_0x119d4b[_0x19eff8(0xe9)]({'thread_id':_0x1a3b1d['id'],'is_resolved':_0x1a3b1d[_0x19eff8(0xd4)],'comments':_0x8ebb4});}return _0x119d4b;}export function getSuggestionsV2(_0x5a6209,_0xa0b238){const _0x5a38d9=_0x5da9;return _0x5a6209[_0x5a38d9(0xed)]&&_0xa0b238[_0x5a38d9(0xed)]?_0x5a6209[_0x5a38d9(0xee)](({id:_0x1082b1,createdAt:_0x46812f,authorId:_0x11cacb,attributes:_0x46e346})=>{const _0x58ccbe=_0x5a38d9,_0x5317a4=_0x46e346&&_0x46e346[_0x58ccbe(0xe1)];return{'id':_0x1082b1,'author':_0x5317a4?_0x5317a4[_0x58ccbe(0x108)]:_0xa0b238[_0x58ccbe(0x10b)](_0x11cacb)[_0x58ccbe(0xc8)],'created_at':_0x46812f};}):[];}