@ckeditor/ckeditor5-export-word 42.0.0-alpha.0 → 42.0.0-alpha.10

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 (103) hide show
  1. package/build/export-word.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/translations/ar.js +1 -1
  4. package/dist/translations/ar.umd.js +1 -1
  5. package/dist/translations/bg.js +1 -1
  6. package/dist/translations/bg.umd.js +1 -1
  7. package/dist/translations/bn.js +1 -1
  8. package/dist/translations/bn.umd.js +1 -1
  9. package/dist/translations/ca.js +1 -1
  10. package/dist/translations/ca.umd.js +1 -1
  11. package/dist/translations/cs.js +1 -1
  12. package/dist/translations/cs.umd.js +1 -1
  13. package/dist/translations/da.js +1 -1
  14. package/dist/translations/da.umd.js +1 -1
  15. package/dist/translations/de.js +1 -1
  16. package/dist/translations/de.umd.js +1 -1
  17. package/dist/translations/el.js +1 -1
  18. package/dist/translations/el.umd.js +1 -1
  19. package/dist/translations/en-au.js +1 -1
  20. package/dist/translations/en-au.umd.js +1 -1
  21. package/dist/translations/en.umd.js +1 -1
  22. package/dist/translations/es.js +1 -1
  23. package/dist/translations/es.umd.js +1 -1
  24. package/dist/translations/et.js +1 -1
  25. package/dist/translations/et.umd.js +1 -1
  26. package/dist/translations/fi.js +1 -1
  27. package/dist/translations/fi.umd.js +1 -1
  28. package/dist/translations/fr.js +1 -1
  29. package/dist/translations/fr.umd.js +1 -1
  30. package/dist/translations/gl.js +1 -1
  31. package/dist/translations/gl.umd.js +1 -1
  32. package/dist/translations/he.js +1 -1
  33. package/dist/translations/he.umd.js +1 -1
  34. package/dist/translations/hi.js +1 -1
  35. package/dist/translations/hi.umd.js +1 -1
  36. package/dist/translations/hr.js +1 -1
  37. package/dist/translations/hr.umd.js +1 -1
  38. package/dist/translations/hu.js +1 -1
  39. package/dist/translations/hu.umd.js +1 -1
  40. package/dist/translations/id.js +1 -1
  41. package/dist/translations/id.umd.js +1 -1
  42. package/dist/translations/it.js +1 -1
  43. package/dist/translations/it.umd.js +1 -1
  44. package/dist/translations/ja.js +1 -1
  45. package/dist/translations/ja.umd.js +1 -1
  46. package/dist/translations/jv.js +1 -1
  47. package/dist/translations/jv.umd.js +1 -1
  48. package/dist/translations/ko.js +1 -1
  49. package/dist/translations/ko.umd.js +1 -1
  50. package/dist/translations/lt.js +1 -1
  51. package/dist/translations/lt.umd.js +1 -1
  52. package/dist/translations/lv.js +1 -1
  53. package/dist/translations/lv.umd.js +1 -1
  54. package/dist/translations/ms.js +1 -1
  55. package/dist/translations/ms.umd.js +1 -1
  56. package/dist/translations/nl.js +1 -1
  57. package/dist/translations/nl.umd.js +1 -1
  58. package/dist/translations/no.js +1 -1
  59. package/dist/translations/no.umd.js +1 -1
  60. package/dist/translations/pl.js +1 -1
  61. package/dist/translations/pl.umd.js +1 -1
  62. package/dist/translations/pt-br.js +1 -1
  63. package/dist/translations/pt-br.umd.js +1 -1
  64. package/dist/translations/pt.js +1 -1
  65. package/dist/translations/pt.umd.js +1 -1
  66. package/dist/translations/ro.js +1 -1
  67. package/dist/translations/ro.umd.js +1 -1
  68. package/dist/translations/ru.js +1 -1
  69. package/dist/translations/ru.umd.js +1 -1
  70. package/dist/translations/sk.js +1 -1
  71. package/dist/translations/sk.umd.js +1 -1
  72. package/dist/translations/sr-latn.js +1 -1
  73. package/dist/translations/sr-latn.umd.js +1 -1
  74. package/dist/translations/sr.js +1 -1
  75. package/dist/translations/sr.umd.js +1 -1
  76. package/dist/translations/sv.js +1 -1
  77. package/dist/translations/sv.umd.js +1 -1
  78. package/dist/translations/th.js +1 -1
  79. package/dist/translations/th.umd.js +1 -1
  80. package/dist/translations/tr.js +1 -1
  81. package/dist/translations/tr.umd.js +1 -1
  82. package/dist/translations/ug.js +1 -1
  83. package/dist/translations/ug.umd.js +1 -1
  84. package/dist/translations/uk.js +1 -1
  85. package/dist/translations/uk.umd.js +1 -1
  86. package/dist/translations/ur.js +1 -1
  87. package/dist/translations/ur.umd.js +1 -1
  88. package/dist/translations/vi.js +1 -1
  89. package/dist/translations/vi.umd.js +1 -1
  90. package/dist/translations/zh-cn.js +1 -1
  91. package/dist/translations/zh-cn.umd.js +1 -1
  92. package/dist/translations/zh.js +1 -1
  93. package/dist/translations/zh.umd.js +1 -1
  94. package/dist/types/exportword.d.ts +15 -17
  95. package/dist/types/utils.d.ts +22 -2
  96. package/package.json +2 -2
  97. package/src/exportword.d.ts +15 -17
  98. package/src/exportword.js +1 -1
  99. package/src/exportwordcommand.js +1 -1
  100. package/src/exportwordui.js +1 -1
  101. package/src/index.js +1 -1
  102. package/src/utils.d.ts +22 -2
  103. package/src/utils.js +1 -1
@@ -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':_0x3fa033=>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':_0x7f85a9=>0x0}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x19bf3f=>{const {zh:{dictionary:_0x4292d3,getPluralForm:_0x5f0473}}={'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':_0x30dc89=>0x0}};_0x19bf3f['zh']||={'dictionary':{},'getPluralForm':null},_0x19bf3f['zh']['dictionary']=Object['assign'](_0x19bf3f['zh']['dictionary'],_0x4292d3),_0x19bf3f['zh']['getPluralForm']=_0x5f0473;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x47233e=>{const {zh:{dictionary:_0x5caacf,getPluralForm:_0x13f2fd}}={'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':_0x2bfc61=>0x0}};_0x47233e['zh']||={'dictionary':{},'getPluralForm':null},_0x47233e['zh']['dictionary']=Object['assign'](_0x47233e['zh']['dictionary'],_0x5caacf),_0x47233e['zh']['getPluralForm']=_0x13f2fd;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -60,16 +60,13 @@ export interface ExportWordConfig {
60
60
  * }
61
61
  * ```
62
62
  *
63
- * **NOTE:** If `stylesheets` are not provided, the plugin will sent only
64
- * {@glink getting-started/setup/css the default editor content styles}
65
- * to the converter.
66
- *
67
63
  * **Default editor's content styles**:
68
64
  * {@glink getting-started/setup/css The default editor content styles}
69
- * are applied to the generated Word file thanks to the 'EDITOR_STYLES' token, which is provided to the `stylesheets` by default.
65
+ * are applied to the generated Word file thanks to the `'EDITOR_STYLES'` token, which is provided to the `stylesheets` by default.
70
66
  * If you don't want them to be applied, you have to omit the token:
71
67
  *
72
- * **NOTE:** The 'EDITOR_STYLES' string is only supported in legacy webpack setup.
68
+ * **NOTE:** The `'EDITOR_STYLES'` string is only supported in legacy custom builds with webpack or DLLs.
69
+ * In other setups you always need to pass the stylesheets.
73
70
  *
74
71
  * ```ts
75
72
  * const exportWordConfig = {
@@ -82,7 +79,7 @@ export interface ExportWordConfig {
82
79
  * ```ts
83
80
  * const exportWordConfig = {
84
81
  * stylesheets: [
85
- * 'path/to/editor-styles.css',
82
+ * './path/to/editor-styles.css',
86
83
  * './path/to/custom-styles.css'
87
84
  * ]
88
85
  * }
@@ -302,20 +299,21 @@ export type ExportWordConverterCustomFormatOptionsV2 = {
302
299
  height?: string;
303
300
  };
304
301
  export type ExportWordConverterCollaborationFeaturesOptionsV2 = {
305
- comment_threads: ExportWordConverterCommentsThreadOptionsV2;
306
- suggestions: ExportWordConverterSuggestionsOptionsV2;
302
+ comment_threads?: ExportWordConverterCommentsThreadOptionsV2;
303
+ suggestions?: ExportWordConverterSuggestionsOptionsV2;
307
304
  };
308
- export type ExportWordConverterCommentsThreadOptionsV2 = {
305
+ export type ExportWordConverterCommentsThreadOptionsV2 = Array<{
309
306
  thread_id: string;
310
307
  is_resolved: boolean;
311
- comments: Array<{
312
- author: string;
313
- created_at: string;
314
- content: string;
315
- }>;
316
- };
308
+ comments: ExportWordConverterCommentsV2;
309
+ }>;
310
+ export type ExportWordConverterCommentsV2 = Array<{
311
+ author: string;
312
+ created_at: Date;
313
+ content: string;
314
+ }>;
317
315
  export type ExportWordConverterSuggestionsOptionsV2 = Array<{
318
316
  id: string;
319
317
  author: string;
320
- created_at: string;
318
+ created_at: Date | null;
321
319
  }>;
@@ -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 } from './exportword.js';
11
+ import type { ExportWordConverterOptions, ExportWordConverterCommentsOption, ExportWordConverterSuggestionsOption, ExportWordConverterCommentsThreadOptionsV2, ExportWordConverterOptionsV2, 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';
@@ -22,7 +22,7 @@ export declare function getStyles(stylesheets?: Array<string>): Promise<string>;
22
22
  * A helper function for getting a proper options object containing
23
23
  * comments, suggestions and the browser's timezone for the "Export to Word" converter.
24
24
  *
25
- * @param editor An editor instance.
25
+ * @param editor An editor instance.
26
26
  */
27
27
  export declare function getConverterOptions(editor: Editor): ExportWordConverterOptions;
28
28
  /**
@@ -38,3 +38,23 @@ export declare function getComments(threads: Array<CommentThread>): ExportWordCo
38
38
  * @param users A list of all users in the editor.
39
39
  */
40
40
  export declare function getSuggestions(suggestions: Array<SuggestionJSON>, users: Collection<User>): ExportWordConverterSuggestionsOption;
41
+ /**
42
+ * A helper function for getting a proper options object containing
43
+ * comments, suggestions and the browser's timezone for the "Export to Word" converter for V2 API.
44
+ *
45
+ * @param editor An editor instance.
46
+ */
47
+ export declare function getConverterOptionsV2(editor: Editor): ExportWordConverterOptionsV2;
48
+ /**
49
+ * A helper function for getting a comments object for the converter options in V2 API.
50
+ *
51
+ * @param threads The comment threads array.
52
+ */
53
+ export declare function getCommentsV2(threads: Array<CommentThread>): ExportWordConverterCommentsThreadOptionsV2;
54
+ /**
55
+ * A helper function for getting a suggestions object for the converter options in V2 API.
56
+ *
57
+ * @param suggestions The suggestions array.
58
+ * @param users A list of all users in the editor.
59
+ */
60
+ export declare function getSuggestionsV2(suggestions: Array<SuggestionJSON>, users: Collection<User>): ExportWordConverterSuggestionsOptionsV2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-export-word",
3
- "version": "42.0.0-alpha.0",
3
+ "version": "42.0.0-alpha.10",
4
4
  "description": "Export to Word feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -30,7 +30,7 @@
30
30
  "type": "module",
31
31
  "main": "src/index.js",
32
32
  "dependencies": {
33
- "ckeditor5": "42.0.0-alpha.0"
33
+ "ckeditor5": "42.0.0-alpha.10"
34
34
  },
35
35
  "license": "SEE LICENSE IN LICENSE.md",
36
36
  "author": "CKSource (https://cksource.com/)",
@@ -56,16 +56,13 @@ export interface ExportWordConfig {
56
56
  * }
57
57
  * ```
58
58
  *
59
- * **NOTE:** If `stylesheets` are not provided, the plugin will sent only
60
- * {@glink getting-started/setup/css the default editor content styles}
61
- * to the converter.
62
- *
63
59
  * **Default editor's content styles**:
64
60
  * {@glink getting-started/setup/css The default editor content styles}
65
- * are applied to the generated Word file thanks to the 'EDITOR_STYLES' token, which is provided to the `stylesheets` by default.
61
+ * are applied to the generated Word file thanks to the `'EDITOR_STYLES'` token, which is provided to the `stylesheets` by default.
66
62
  * If you don't want them to be applied, you have to omit the token:
67
63
  *
68
- * **NOTE:** The 'EDITOR_STYLES' string is only supported in legacy webpack setup.
64
+ * **NOTE:** The `'EDITOR_STYLES'` string is only supported in legacy custom builds with webpack or DLLs.
65
+ * In other setups you always need to pass the stylesheets.
69
66
  *
70
67
  * ```ts
71
68
  * const exportWordConfig = {
@@ -78,7 +75,7 @@ export interface ExportWordConfig {
78
75
  * ```ts
79
76
  * const exportWordConfig = {
80
77
  * stylesheets: [
81
- * 'path/to/editor-styles.css',
78
+ * './path/to/editor-styles.css',
82
79
  * './path/to/custom-styles.css'
83
80
  * ]
84
81
  * }
@@ -298,20 +295,21 @@ export type ExportWordConverterCustomFormatOptionsV2 = {
298
295
  height?: string;
299
296
  };
300
297
  export type ExportWordConverterCollaborationFeaturesOptionsV2 = {
301
- comment_threads: ExportWordConverterCommentsThreadOptionsV2;
302
- suggestions: ExportWordConverterSuggestionsOptionsV2;
298
+ comment_threads?: ExportWordConverterCommentsThreadOptionsV2;
299
+ suggestions?: ExportWordConverterSuggestionsOptionsV2;
303
300
  };
304
- export type ExportWordConverterCommentsThreadOptionsV2 = {
301
+ export type ExportWordConverterCommentsThreadOptionsV2 = Array<{
305
302
  thread_id: string;
306
303
  is_resolved: boolean;
307
- comments: Array<{
308
- author: string;
309
- created_at: string;
310
- content: string;
311
- }>;
312
- };
304
+ comments: ExportWordConverterCommentsV2;
305
+ }>;
306
+ export type ExportWordConverterCommentsV2 = Array<{
307
+ author: string;
308
+ created_at: Date;
309
+ content: string;
310
+ }>;
313
311
  export type ExportWordConverterSuggestionsOptionsV2 = Array<{
314
312
  id: string;
315
313
  author: string;
316
- created_at: string;
314
+ created_at: Date | null;
317
315
  }>;
package/src/exportword.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x17ce6d=_0x21b2;(function(_0x5c37fe,_0x5d588b){const _0xe8a6ec=_0x21b2,_0x47e70a=_0x5c37fe();while(!![]){try{const _0x49ff9d=-parseInt(_0xe8a6ec(0x1a9))/0x1*(parseInt(_0xe8a6ec(0x1ab))/0x2)+-parseInt(_0xe8a6ec(0x194))/0x3*(parseInt(_0xe8a6ec(0x197))/0x4)+parseInt(_0xe8a6ec(0x193))/0x5+-parseInt(_0xe8a6ec(0x190))/0x6+parseInt(_0xe8a6ec(0x1a2))/0x7*(-parseInt(_0xe8a6ec(0x19a))/0x8)+-parseInt(_0xe8a6ec(0x191))/0x9*(parseInt(_0xe8a6ec(0x19f))/0xa)+parseInt(_0xe8a6ec(0x192))/0xb;if(_0x49ff9d===_0x5d588b)break;else _0x47e70a['push'](_0x47e70a['shift']());}catch(_0x538492){_0x47e70a['push'](_0x47e70a['shift']());}}}(_0x18b8,0xe1d95));function _0x18b8(){const _0x4ad2b5=['ExportWord','tokenUrl','2642570bzMmAD','get','plugins','349433ruziOw','init','_token','registerTokenUrl','then','config','CloudServices','5ZHcNty','editor','171074wuxYGE','3244008cgrxHW','63itzuxK','51529599pxTWNg','8964320LHnoLQ','3859479dMJfJu','add','token','4MxmnOI','commands','requires','232zIXsoG','exportWord','pluginName'];_0x18b8=function(){return _0x4ad2b5;};return _0x18b8();}import{Plugin as _0x2deb63}from'ckeditor5/src/core.js';import{Notification as _0x5f2a49}from'ckeditor5/src/ui.js';import _0xfaf148 from'./exportwordcommand.js';function _0x21b2(_0x35a47c,_0x337151){const _0x18b8e7=_0x18b8();return _0x21b2=function(_0x21b265,_0x3dc6a6){_0x21b265=_0x21b265-0x190;let _0x499e94=_0x18b8e7[_0x21b265];return _0x499e94;},_0x21b2(_0x35a47c,_0x337151);}import _0x460a77 from'./exportwordui.js';export default class s extends _0x2deb63{static get[_0x17ce6d(0x19c)](){const _0x29f645=_0x17ce6d;return _0x29f645(0x19d);}static get[_0x17ce6d(0x199)](){const _0x4c5460=_0x17ce6d;return[_0x4c5460(0x1a8),_0x5f2a49,_0x460a77];}[_0x17ce6d(0x1a3)](){const _0x8d5627=_0x17ce6d,_0x3fb321=this[_0x8d5627(0x1aa)],_0x34be9f=_0x3fb321[_0x8d5627(0x1a7)][_0x8d5627(0x1a0)](_0x8d5627(0x19b))||{};_0x3fb321[_0x8d5627(0x198)][_0x8d5627(0x195)](_0x8d5627(0x19b),new _0xfaf148(_0x3fb321));const _0x107ed7=_0x3fb321[_0x8d5627(0x1a1)][_0x8d5627(0x1a0)](_0x8d5627(0x1a8));!0x1===_0x34be9f[_0x8d5627(0x19e)]?this[_0x8d5627(0x1a4)]=null:_0x34be9f[_0x8d5627(0x19e)]?_0x107ed7[_0x8d5627(0x1a5)](_0x34be9f[_0x8d5627(0x19e)])[_0x8d5627(0x1a6)](_0x13281c=>{const _0x1196c5=_0x8d5627;this[_0x1196c5(0x1a4)]=_0x13281c;}):this[_0x8d5627(0x1a4)]=_0x107ed7[_0x8d5627(0x196)];}}
23
+ const _0x403d4b=_0x21eb;function _0x4606(){const _0x494c02=['6dYMBju','47140dmUynt','exportWord','3476676hGbCEu','2YUhceK','add','init','token','config','requires','registerTokenUrl','1760670kDYeAL','get','1036364deBgtA','tokenUrl','then','pluginName','1060577dwZjwH','CloudServices','editor','_token','commands','ExportWord','279ocawQx','plugins','228pVGeLY','12CbWMvv','1005455SZYTxk','7037848PnUDfU'];_0x4606=function(){return _0x494c02;};return _0x4606();}function _0x21eb(_0x56ca01,_0x1c6372){const _0x4606a4=_0x4606();return _0x21eb=function(_0x21eb22,_0x132286){_0x21eb22=_0x21eb22-0x18b;let _0x705525=_0x4606a4[_0x21eb22];return _0x705525;},_0x21eb(_0x56ca01,_0x1c6372);}(function(_0x1157b8,_0x384a49){const _0x170b61=_0x21eb,_0x38e3ae=_0x1157b8();while(!![]){try{const _0x52cbc7=-parseInt(_0x170b61(0x1a3))/0x1*(-parseInt(_0x170b61(0x196))/0x2)+-parseInt(_0x170b61(0x18f))/0x3*(-parseInt(_0x170b61(0x19f))/0x4)+parseInt(_0x170b61(0x19d))/0x5*(-parseInt(_0x170b61(0x192))/0x6)+-parseInt(_0x170b61(0x195))/0x7+parseInt(_0x170b61(0x191))/0x8+parseInt(_0x170b61(0x18c))/0x9*(parseInt(_0x170b61(0x193))/0xa)+parseInt(_0x170b61(0x190))/0xb*(-parseInt(_0x170b61(0x18e))/0xc);if(_0x52cbc7===_0x384a49)break;else _0x38e3ae['push'](_0x38e3ae['shift']());}catch(_0x3e6386){_0x38e3ae['push'](_0x38e3ae['shift']());}}}(_0x4606,0x832dd));import{Plugin as _0x361f7b}from'ckeditor5/src/core.js';import{Notification as _0x1ccc32}from'ckeditor5/src/ui.js';import _0x4ca34a from'./exportwordcommand.js';import _0x2482a8 from'./exportwordui.js';export default class s extends _0x361f7b{static get[_0x403d4b(0x1a2)](){const _0x3a88f5=_0x403d4b;return _0x3a88f5(0x18b);}static get[_0x403d4b(0x19b)](){const _0x31d3dc=_0x403d4b;return[_0x31d3dc(0x1a4),_0x1ccc32,_0x2482a8];}[_0x403d4b(0x198)](){const _0xf320ce=_0x403d4b,_0x3769ef=this[_0xf320ce(0x1a5)],_0x4ab732=_0x3769ef[_0xf320ce(0x19a)][_0xf320ce(0x19e)](_0xf320ce(0x194))||{};_0x3769ef[_0xf320ce(0x1a7)][_0xf320ce(0x197)](_0xf320ce(0x194),new _0x4ca34a(_0x3769ef));const _0x2d485f=_0x3769ef[_0xf320ce(0x18d)][_0xf320ce(0x19e)](_0xf320ce(0x1a4));!0x1===_0x4ab732[_0xf320ce(0x1a0)]?this[_0xf320ce(0x1a6)]=null:_0x4ab732[_0xf320ce(0x1a0)]?_0x2d485f[_0xf320ce(0x19c)](_0x4ab732[_0xf320ce(0x1a0)])[_0xf320ce(0x1a1)](_0x536d10=>{const _0x437c85=_0xf320ce;this[_0x437c85(0x1a6)]=_0x536d10;}):this[_0xf320ce(0x1a6)]=_0x2d485f[_0xf320ce(0x199)];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x1b56f0}from'ckeditor5/src/core.js';import{getStyles as _0x16a4c0,getConverterOptions as _0x137b1f}from'./utils.js';export default class e extends _0x1b56f0{constructor(_0x5b1fe6){super(_0x5b1fe6),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x255609={}){const _0x102fbc=this['editor'],t=_0x102fbc['t'],_0x1e00a9=_0x255609['version']||0x1,_0x4c9f5f=_0x255609['converterUrl']||(0x2===_0x1e00a9?'https://docx-converter.cke-cs.com/v2/convert/docx-html':'https://docx-converter.cke-cs.com/v1/convert'),_0x38ec13=_0x255609['converterOptions']||{},_0x16cf98=_0x102fbc['plugins']['get']('ExportWord'),_0x551870=_0x255609['token']||_0x16cf98['_token'],_0x180b4d=!0x1!==_0x38ec13['auto_pagination'],_0x231c36=_0x255609['dataCallback']||(_0x4d28c1=>_0x4d28c1['data']['get']({'pagination':_0x180b4d}));return this['isBusy']=!0x0,this['refresh'](),_0x16a4c0(_0x255609['stylesheets']||['EDITOR_STYLES'])['then'](async _0x211fa5=>{_0x102fbc['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20started'));const _0x5cd7c6=await _0x231c36(_0x102fbc),_0x558fd2={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x102fbc['locale']['contentLanguageDirection']+'\x22>'+_0x5cd7c6+'</div>','css':_0x211fa5,[0x2===_0x1e00a9?'config':'options']:{..._0x38ec13,..._0x137b1f(_0x102fbc)}},_0x2d567c={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0x551870?{'Authorization':_0x551870['value']}:null},'body':JSON['stringify'](_0x558fd2)};return window['fetch'](_0x4c9f5f,_0x2d567c)['then'](_0x5f3f8f=>{if(0xc8!==_0x5f3f8f['status'])throw _0x5f3f8f;return _0x5f3f8f['blob']();})['then'](_0x49dca0=>{_0x102fbc['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20successful'));const _0x303dae='function'==typeof _0x255609['fileName']?_0x255609['fileName']():_0x255609['fileName'];this['_downloadFile'](_0x49dca0,_0x303dae||'document.docx');});})['catch'](_0x12dc34=>{const _0x5333fd=_0x102fbc['plugins']['get']('Notification');throw _0x102fbc['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20failed'),{'politeness':'assertive'}),_0x5333fd['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0x12dc34;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x3cca18,_0x45edda){const _0x16cb64=document['createElement']('a');_0x16cb64['href']=window['URL']['createObjectURL'](_0x3cca18),_0x16cb64['download']=_0x45edda,_0x16cb64['click'](),_0x16cb64['remove']();}}
23
+ import{Command as _0x446193}from'ckeditor5/src/core.js';import{getStyles as _0x180470,getConverterOptions as _0x54a115,getConverterOptionsV2 as _0x21507d}from'./utils.js';export default class e extends _0x446193{constructor(_0x446155){super(_0x446155),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x587095={}){const _0x68f8bd=this['editor'],t=_0x68f8bd['t'],_0x4905c6=0x2===(_0x587095['version']||0x1),_0xc42d28=_0x587095['converterUrl']||(_0x4905c6?'https://docx-converter.cke-cs.com/v2/convert/html-docx':'https://docx-converter.cke-cs.com/v1/convert'),_0x18aab1=_0x587095['converterOptions']||{},_0x4f9c43=_0x68f8bd['plugins']['get']('ExportWord'),_0x44515e=_0x587095['token']||_0x4f9c43['_token'],_0x525b27=!0x1!==_0x18aab1['auto_pagination'],_0x1401be=_0x587095['dataCallback']||(_0x53e68e=>_0x53e68e['data']['get']({'pagination':_0x525b27}));return this['isBusy']=!0x0,this['refresh'](),_0x180470(_0x587095['stylesheets']||['EDITOR_STYLES'])['then'](async _0x4e9c1f=>{_0x68f8bd['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20started'));const _0x93bcd5=await _0x1401be(_0x68f8bd),_0x536584={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x68f8bd['locale']['contentLanguageDirection']+'\x22>'+_0x93bcd5+'</div>','css':_0x4e9c1f,[_0x4905c6?'config':'options']:{..._0x18aab1,..._0x4905c6?_0x21507d(_0x68f8bd):_0x54a115(_0x68f8bd)}},_0x21f864={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0x44515e?{'Authorization':_0x44515e['value']}:null},'body':JSON['stringify'](_0x536584)};return window['fetch'](_0xc42d28,_0x21f864)['then'](_0x346b77=>{if(0xc8!==_0x346b77['status'])throw _0x346b77;return _0x346b77['blob']();})['then'](_0xe29ba8=>{_0x68f8bd['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20successful'));const _0x33c1d0='function'==typeof _0x587095['fileName']?_0x587095['fileName']():_0x587095['fileName'];this['_downloadFile'](_0xe29ba8,_0x33c1d0||'document.docx');});})['catch'](_0x48cc2d=>{const _0x4ac7c1=_0x68f8bd['plugins']['get']('Notification');throw _0x68f8bd['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20failed'),{'politeness':'assertive'}),_0x4ac7c1['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0x48cc2d;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x26da04,_0x501cd7){const _0x30f359=document['createElement']('a');_0x30f359['href']=window['URL']['createObjectURL'](_0x26da04),_0x30f359['download']=_0x501cd7,_0x30f359['click'](),_0x30f359['remove']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x528a3b}from'ckeditor5/src/core.js';import{ButtonView as _0x4873d2,MenuBarMenuListItemButtonView as _0xd7e14d,SpinnerView as _0x452211}from'ckeditor5/src/ui.js';import _0x124587 from'../theme/icons/exportword.svg';export default class i extends _0x528a3b{static get['pluginName'](){return'ExportWordUI';}['init'](){const _0x185b31=this['editor'];_0x185b31['ui']['componentFactory']['add']('exportWord',()=>{const _0x35d4d5=_0x185b31['commands']['get']('exportWord'),_0x297d51=this['_createButton'](_0x4873d2);return _0x297d51['set']({'tooltip':!0x0}),_0x297d51['bind']('isOn')['to'](_0x35d4d5,'isBusy'),_0x297d51;}),_0x185b31['ui']['componentFactory']['add']('menuBar:exportWord',()=>this['_createButton'](_0xd7e14d));}['_createButton'](_0x5a9f2c){const _0x462c2d=this['editor'],_0x4d41db=_0x462c2d['config']['get']('exportWord')||{},t=_0x462c2d['locale']['t'],_0x397feb=_0x462c2d['commands']['get']('exportWord'),_0x1e3b35=new _0x5a9f2c(_0x462c2d['locale']),_0x56c8fa=new _0x452211();return _0x1e3b35['children']['add'](_0x56c8fa),_0x56c8fa['bind']('isVisible')['to'](_0x397feb,'isBusy'),_0x1e3b35['iconView']['bind']('isVisible')['to'](_0x397feb,'isBusy',_0x911cae=>!_0x911cae),_0x1e3b35['set']({'icon':_0x124587}),_0x1e3b35['bind']('isEnabled')['to'](_0x397feb,'isEnabled'),_0x1e3b35['bind']('label')['to'](_0x397feb,'isBusy',_0x5bde88=>t(_0x5bde88?'Exporting\x20Word\x20document':'Export\x20to\x20Word')),this['listenTo'](_0x1e3b35,'execute',()=>{_0x462c2d['execute']('exportWord',_0x4d41db),_0x462c2d['editing']['view']['focus']();}),_0x1e3b35;}}
23
+ import{Plugin as _0x5505f0}from'ckeditor5/src/core.js';import{ButtonView as _0x3c09db,MenuBarMenuListItemButtonView as _0x1e09aa,SpinnerView as _0x554d1d}from'ckeditor5/src/ui.js';import _0x53a509 from'../theme/icons/exportword.svg';export default class i extends _0x5505f0{static get['pluginName'](){return'ExportWordUI';}['init'](){const _0x14afb7=this['editor'];_0x14afb7['ui']['componentFactory']['add']('exportWord',()=>{const _0x422869=_0x14afb7['commands']['get']('exportWord'),_0x2bd368=this['_createButton'](_0x3c09db);return _0x2bd368['set']({'tooltip':!0x0}),_0x2bd368['bind']('isOn')['to'](_0x422869,'isBusy'),_0x2bd368;}),_0x14afb7['ui']['componentFactory']['add']('menuBar:exportWord',()=>this['_createButton'](_0x1e09aa));}['_createButton'](_0x5f5cb0){const _0x2c5398=this['editor'],_0x226a75=_0x2c5398['config']['get']('exportWord')||{},t=_0x2c5398['locale']['t'],_0x336689=_0x2c5398['commands']['get']('exportWord'),_0x3e75b4=new _0x5f5cb0(_0x2c5398['locale']),_0x10f487=new _0x554d1d();return _0x3e75b4['children']['add'](_0x10f487),_0x10f487['bind']('isVisible')['to'](_0x336689,'isBusy'),_0x3e75b4['iconView']['bind']('isVisible')['to'](_0x336689,'isBusy',_0x22cb88=>!_0x22cb88),_0x3e75b4['set']({'icon':_0x53a509}),_0x3e75b4['bind']('isEnabled')['to'](_0x336689,'isEnabled'),_0x3e75b4['bind']('label')['to'](_0x336689,'isBusy',_0x141b78=>t(_0x141b78?'Exporting\x20Word\x20document':'Export\x20to\x20Word')),this['listenTo'](_0x3e75b4,'execute',()=>{_0x2c5398['execute']('exportWord',_0x226a75),_0x2c5398['editing']['view']['focus']();}),_0x3e75b4;}}
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x15f9(_0x3f8f53,_0x402cc4){var _0x6c1fb5=_0x6c1f();return _0x15f9=function(_0x15f9cb,_0x2f8f84){_0x15f9cb=_0x15f9cb-0x115;var _0x5518bd=_0x6c1fb5[_0x15f9cb];return _0x5518bd;},_0x15f9(_0x3f8f53,_0x402cc4);}(function(_0x9c122d,_0x12db5a){var _0x37bc36=_0x15f9,_0x3f87b5=_0x9c122d();while(!![]){try{var _0x5c088f=-parseInt(_0x37bc36(0x11c))/0x1+parseInt(_0x37bc36(0x115))/0x2+parseInt(_0x37bc36(0x117))/0x3*(parseInt(_0x37bc36(0x11b))/0x4)+-parseInt(_0x37bc36(0x116))/0x5+-parseInt(_0x37bc36(0x119))/0x6+-parseInt(_0x37bc36(0x11d))/0x7+parseInt(_0x37bc36(0x11a))/0x8*(parseInt(_0x37bc36(0x118))/0x9);if(_0x5c088f===_0x12db5a)break;else _0x3f87b5['push'](_0x3f87b5['shift']());}catch(_0x2af1c6){_0x3f87b5['push'](_0x3f87b5['shift']());}}}(_0x6c1f,0xcb332));function _0x6c1f(){var _0x3cbe5f=['4YNbxHV','1110785uVBgHt','6184731CpOXzC','872452dBJrQp','4157890DVbCFt','2584731GCdHUa','1815309XaDQYK','7621314izDezI','144nxhwBF'];_0x6c1f=function(){return _0x3cbe5f;};return _0x6c1f();}export{default as ExportWord}from'./exportword.js';import'./augmentation.js';
23
+ function _0xb2cb(_0x5c8077,_0x11f832){var _0x5de86c=_0x5de8();return _0xb2cb=function(_0xb2cb12,_0x3dda78){_0xb2cb12=_0xb2cb12-0x1ca;var _0x4806f1=_0x5de86c[_0xb2cb12];return _0x4806f1;},_0xb2cb(_0x5c8077,_0x11f832);}(function(_0x23685c,_0x587129){var _0x204bb6=_0xb2cb,_0x197c37=_0x23685c();while(!![]){try{var _0x517f8c=-parseInt(_0x204bb6(0x1cc))/0x1+parseInt(_0x204bb6(0x1cd))/0x2*(-parseInt(_0x204bb6(0x1ce))/0x3)+-parseInt(_0x204bb6(0x1d3))/0x4+parseInt(_0x204bb6(0x1d0))/0x5+-parseInt(_0x204bb6(0x1d1))/0x6+parseInt(_0x204bb6(0x1cb))/0x7*(-parseInt(_0x204bb6(0x1ca))/0x8)+parseInt(_0x204bb6(0x1cf))/0x9*(parseInt(_0x204bb6(0x1d2))/0xa);if(_0x517f8c===_0x587129)break;else _0x197c37['push'](_0x197c37['shift']());}catch(_0x1e6dd3){_0x197c37['push'](_0x197c37['shift']());}}}(_0x5de8,0x47b6e));export{default as ExportWord}from'./exportword.js';function _0x5de8(){var _0xa9372e=['1395660HWzyMg','48ButRMs','483994YGqFDx','11746mGZAEy','4mgwueM','388926jwblDu','18cbSpMx','986465ZrnADw','2309520LvQyYE','7580830yEeAzb'];_0x5de8=function(){return _0xa9372e;};return _0x5de8();}import'./augmentation.js';
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 } from './exportword.js';
7
+ import type { ExportWordConverterOptions, ExportWordConverterCommentsOption, ExportWordConverterSuggestionsOption, ExportWordConverterCommentsThreadOptionsV2, ExportWordConverterOptionsV2, 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';
@@ -18,7 +18,7 @@ export declare function getStyles(stylesheets?: Array<string>): Promise<string>;
18
18
  * A helper function for getting a proper options object containing
19
19
  * comments, suggestions and the browser's timezone for the "Export to Word" converter.
20
20
  *
21
- * @param editor An editor instance.
21
+ * @param editor An editor instance.
22
22
  */
23
23
  export declare function getConverterOptions(editor: Editor): ExportWordConverterOptions;
24
24
  /**
@@ -34,3 +34,23 @@ export declare function getComments(threads: Array<CommentThread>): ExportWordCo
34
34
  * @param users A list of all users in the editor.
35
35
  */
36
36
  export declare function getSuggestions(suggestions: Array<SuggestionJSON>, users: Collection<User>): ExportWordConverterSuggestionsOption;
37
+ /**
38
+ * A helper function for getting a proper options object containing
39
+ * comments, suggestions and the browser's timezone for the "Export to Word" converter for V2 API.
40
+ *
41
+ * @param editor An editor instance.
42
+ */
43
+ export declare function getConverterOptionsV2(editor: Editor): ExportWordConverterOptionsV2;
44
+ /**
45
+ * A helper function for getting a comments object for the converter options in V2 API.
46
+ *
47
+ * @param threads The comment threads array.
48
+ */
49
+ export declare function getCommentsV2(threads: Array<CommentThread>): ExportWordConverterCommentsThreadOptionsV2;
50
+ /**
51
+ * A helper function for getting a suggestions object for the converter options in V2 API.
52
+ *
53
+ * @param suggestions The suggestions array.
54
+ * @param users A list of all users in the editor.
55
+ */
56
+ export declare function getSuggestionsV2(suggestions: Array<SuggestionJSON>, users: Collection<User>): ExportWordConverterSuggestionsOptionsV2;
package/src/utils.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x247fd2,_0x3da526){const _0xbda155=_0x2a08,_0x29613d=_0x247fd2();while(!![]){try{const _0x29c15c=-parseInt(_0xbda155(0xf1))/0x1*(-parseInt(_0xbda155(0xe6))/0x2)+parseInt(_0xbda155(0x10c))/0x3+parseInt(_0xbda155(0x10d))/0x4*(-parseInt(_0xbda155(0xec))/0x5)+parseInt(_0xbda155(0xf7))/0x6*(-parseInt(_0xbda155(0xfb))/0x7)+-parseInt(_0xbda155(0xe7))/0x8*(-parseInt(_0xbda155(0xfa))/0x9)+-parseInt(_0xbda155(0xf0))/0xa+-parseInt(_0xbda155(0xe9))/0xb;if(_0x29c15c===_0x3da526)break;else _0x29613d['push'](_0x29613d['shift']());}catch(_0x3fa738){_0x29613d['push'](_0x29613d['shift']());}}}(_0x5039,0x413a5));export function getStyles(_0x17ce45){const _0x2bf144=_0x2a08;if(!_0x17ce45)return new Promise(_0x3e285e=>_0x3e285e(''));const _0x194f2c=[];for(const _0x2a21d5 of _0x17ce45)_0x2bf144(0xe4)!==_0x2a21d5?_0x194f2c[_0x2bf144(0x10b)](window[_0x2bf144(0xea)](_0x2a21d5)[_0x2bf144(0xf3)](_0x1c9966=>_0x1c9966[_0x2bf144(0x10a)]())):_0x194f2c[_0x2bf144(0x10b)](f());return Promise[_0x2bf144(0xf4)](_0x194f2c)[_0x2bf144(0xf3)](_0x384ab7=>_0x384ab7[_0x2bf144(0x110)]('\x20')[_0x2bf144(0xe3)]());}function f(){const _0x8821a4=_0x2a08,_0x5832f9=[],_0xa7169d=[];for(const _0x5b7320 of Array[_0x8821a4(0xf5)](document[_0x8821a4(0xed)])){if(_0x5b7320[_0x8821a4(0x102)][_0x8821a4(0x118)](_0x8821a4(0x105))){for(const _0x8ee1db of Array[_0x8821a4(0xf5)](_0x5b7320[_0x8821a4(0x100)]))-0x1!==_0x8ee1db[_0x8821a4(0x115)][_0x8821a4(0xf6)](_0x8821a4(0x10e))?_0x5832f9[_0x8821a4(0x10b)](_0x8ee1db[_0x8821a4(0x115)]):-0x1!==_0x8ee1db[_0x8821a4(0x115)][_0x8821a4(0xf6)](_0x8821a4(0x112))&&_0xa7169d[_0x8821a4(0x10b)](_0x8ee1db[_0x8821a4(0x115)]);}}return _0x5832f9[_0x8821a4(0x109)]||console[_0x8821a4(0x106)](_0x8821a4(0xf2)),[..._0xa7169d,..._0x5832f9][_0x8821a4(0x110)]('\x20')[_0x8821a4(0xe3)]();}function _0x2a08(_0x48ca98,_0x2303ae){const _0x5039d2=_0x5039();return _0x2a08=function(_0x2a087e,_0x316718){_0x2a087e=_0x2a087e-0xe3;let _0x30d0ba=_0x5039d2[_0x2a087e];return _0x30d0ba;},_0x2a08(_0x48ca98,_0x2303ae);}export function getConverterOptions(_0xce987c){const _0x4d49bc=_0x2a08,_0x50260e=_0xce987c[_0x4d49bc(0x101)][_0x4d49bc(0x108)](_0x4d49bc(0x10f)),_0x19efd4=_0xce987c[_0x4d49bc(0x101)][_0x4d49bc(0x108)](_0x4d49bc(0x104)),_0x1bf01e=_0xce987c[_0x4d49bc(0x101)][_0x4d49bc(0x108)](_0x4d49bc(0x116)),_0x40c84e={};if(_0x50260e&&_0x19efd4){const _0x9c8d6e=getComments(_0xce987c[_0x4d49bc(0x101)][_0x4d49bc(0x107)](_0x4d49bc(0x104))[_0x4d49bc(0xfe)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object[_0x4d49bc(0x114)](_0x9c8d6e)[_0x4d49bc(0x109)]&&(_0x40c84e[_0x4d49bc(0x117)]=_0x9c8d6e);}if(_0x50260e&&_0x1bf01e){const _0x36b389=_0xce987c[_0x4d49bc(0x101)][_0x4d49bc(0x107)](_0x4d49bc(0x116)),_0x17db0d=_0xce987c[_0x4d49bc(0x101)][_0x4d49bc(0x107)](_0x4d49bc(0x10f)),_0x300f95=getSuggestions(_0x36b389[_0x4d49bc(0xf9)]({'toJSON':!0x0}),_0x17db0d[_0x4d49bc(0x103)]);Object[_0x4d49bc(0x114)](_0x300f95)[_0x4d49bc(0x109)]&&(_0x40c84e[_0x4d49bc(0x113)]=_0x300f95);}return(_0x40c84e[_0x4d49bc(0x113)]||_0x40c84e[_0x4d49bc(0x117)])&&(_0x40c84e[_0x4d49bc(0xee)]=new Intl[(_0x4d49bc(0x119))]()[_0x4d49bc(0xff)]()[_0x4d49bc(0xef)]),_0x40c84e;}export function getComments(_0xcc0182){const _0x5a1715=_0x2a08,_0x50f0b0={};if(!_0xcc0182[_0x5a1715(0x109)])return _0x50f0b0;for(const _0x21e9ae of _0xcc0182)_0x21e9ae[_0x5a1715(0x117)][_0x5a1715(0xeb)](_0x1435ab=>{const _0x279281=_0x5a1715;void 0x0===_0x50f0b0[_0x21e9ae['id']]&&(_0x50f0b0[_0x21e9ae['id']]=[]),_0x50f0b0[_0x21e9ae['id']][_0x279281(0x10b)]({'author':_0x1435ab[_0x279281(0x111)][_0x279281(0xfc)],'content':_0x1435ab[_0x279281(0xf8)],'created':_0x1435ab[_0x279281(0xfd)],'is_resolved':_0x21e9ae[_0x279281(0xe8)]});});return _0x50f0b0;}function _0x5039(){const _0x49cdd8=['author',':root','suggestions','keys','cssText','TrackChanges','comments','hasAttribute','DateTimeFormat','trim','EDITOR_STYLES','authorId','78HcttBH','8lNEvJm','isResolved','987976jUoDOY','fetch','map','390AkQxKI','styleSheets','timezone','timeZone','2832130FIhpOD','7782QVftQu','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.','then','all','from','indexOf','583326kkvyWi','content','getSuggestions','2556837PvYkdV','7nnEFVC','name','createdAt','getCommentThreads','resolvedOptions','cssRules','plugins','ownerNode','users','CommentsRepository','data-cke','warn','get','has','length','text','push','661266lokliR','3620iGCMSw','.ck-content','Users','join'];_0x5039=function(){return _0x49cdd8;};return _0x5039();}export function getSuggestions(_0x336655,_0xc184ba){const _0x2c2466=_0x2a08,_0x5e5763={};if(!_0x336655[_0x2c2466(0x109)]||!_0xc184ba[_0x2c2466(0x109)])return _0x5e5763;for(const _0x3d1c93 of _0x336655)_0x5e5763[_0x3d1c93['id']]={'author':_0xc184ba[_0x2c2466(0x107)](_0x3d1c93[_0x2c2466(0xe5)])[_0x2c2466(0xfc)],'created':_0x3d1c93[_0x2c2466(0xfd)]};return _0x5e5763;}
23
+ (function(_0x265bd4,_0x2b819b){const _0xe1aa1d=_0x5068,_0x20398f=_0x265bd4();while(!![]){try{const _0x4a4165=parseInt(_0xe1aa1d(0xd6))/0x1*(-parseInt(_0xe1aa1d(0xb8))/0x2)+parseInt(_0xe1aa1d(0xad))/0x3*(parseInt(_0xe1aa1d(0xc3))/0x4)+parseInt(_0xe1aa1d(0xbf))/0x5+-parseInt(_0xe1aa1d(0xce))/0x6+-parseInt(_0xe1aa1d(0xb0))/0x7+-parseInt(_0xe1aa1d(0xac))/0x8*(-parseInt(_0xe1aa1d(0xcc))/0x9)+-parseInt(_0xe1aa1d(0xc9))/0xa;if(_0x4a4165===_0x2b819b)break;else _0x20398f['push'](_0x20398f['shift']());}catch(_0x33fd56){_0x20398f['push'](_0x20398f['shift']());}}}(_0x14ed,0xd7b78));export function getStyles(_0x35f76e){const _0xe07a43=_0x5068;if(!_0x35f76e)return new Promise(_0x256879=>_0x256879(''));const _0x2077da=[];for(const _0x2886fb of _0x35f76e)_0xe07a43(0xc8)!==_0x2886fb?_0x2077da[_0xe07a43(0xa8)](window[_0xe07a43(0xc5)](_0x2886fb)[_0xe07a43(0xaf)](_0x17fef0=>_0x17fef0[_0xe07a43(0xd5)]())):_0x2077da[_0xe07a43(0xa8)](f());return Promise[_0xe07a43(0xa7)](_0x2077da)[_0xe07a43(0xaf)](_0x3bc22c=>_0x3bc22c[_0xe07a43(0xb1)]('\x20')[_0xe07a43(0xd0)]());}function _0x14ed(){const _0x1415ea=['keys','ownerNode','hasAttribute','DateTimeFormat','content','timezone','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.','getSuggestions','all','push','createdAt','TrackChanges','cssRules','32FUhamW','369753ubbxAl','from','then','8648409ORsKxL','join','authorId','has','warn','users','map','collaboration_features','253434hoTEyo','resolvedOptions','indexOf','getCommentThreads','CommentsRepository','Users','cssText','7792810sseMwz','comment_threads','name','isResolved','52ViXcZx','plugins','fetch','data-cke',':root','EDITOR_STYLES','3768920lVhwRx','length','timeZone','1047429kehdJf','suggestions','6022062IAxVVO','get','trim','author','styleSheets','.ck-content','comments','text','1eVMXFr'];_0x14ed=function(){return _0x1415ea;};return _0x14ed();}function f(){const _0x2f59a5=_0x5068,_0x29ac1e=[],_0x14f321=[];for(const _0x155f6e of Array[_0x2f59a5(0xae)](document[_0x2f59a5(0xd2)])){if(_0x155f6e[_0x2f59a5(0xd8)][_0x2f59a5(0xd9)](_0x2f59a5(0xc6))){for(const _0x545ee2 of Array[_0x2f59a5(0xae)](_0x155f6e[_0x2f59a5(0xab)]))-0x1!==_0x545ee2[_0x2f59a5(0xbe)][_0x2f59a5(0xba)](_0x2f59a5(0xd3))?_0x29ac1e[_0x2f59a5(0xa8)](_0x545ee2[_0x2f59a5(0xbe)]):-0x1!==_0x545ee2[_0x2f59a5(0xbe)][_0x2f59a5(0xba)](_0x2f59a5(0xc7))&&_0x14f321[_0x2f59a5(0xa8)](_0x545ee2[_0x2f59a5(0xbe)]);}}return _0x29ac1e[_0x2f59a5(0xca)]||console[_0x2f59a5(0xb4)](_0x2f59a5(0xa5)),[..._0x14f321,..._0x29ac1e][_0x2f59a5(0xb1)]('\x20')[_0x2f59a5(0xd0)]();}export function getConverterOptions(_0x377d14){const _0xdf1e21=_0x5068,_0x19834a=_0x377d14[_0xdf1e21(0xc4)][_0xdf1e21(0xb3)](_0xdf1e21(0xbd)),_0x254d75=_0x377d14[_0xdf1e21(0xc4)][_0xdf1e21(0xb3)](_0xdf1e21(0xbc)),_0x24e02c=_0x377d14[_0xdf1e21(0xc4)][_0xdf1e21(0xb3)](_0xdf1e21(0xaa)),_0x1d3d3d={};if(_0x19834a&&_0x254d75){const _0x53e10c=getComments(_0x377d14[_0xdf1e21(0xc4)][_0xdf1e21(0xcf)](_0xdf1e21(0xbc))[_0xdf1e21(0xbb)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object[_0xdf1e21(0xd7)](_0x53e10c)[_0xdf1e21(0xca)]&&(_0x1d3d3d[_0xdf1e21(0xd4)]=_0x53e10c);}if(_0x19834a&&_0x24e02c){const _0x45b558=_0x377d14[_0xdf1e21(0xc4)][_0xdf1e21(0xcf)](_0xdf1e21(0xaa)),_0x51eaed=_0x377d14[_0xdf1e21(0xc4)][_0xdf1e21(0xcf)](_0xdf1e21(0xbd)),_0x1a5b88=getSuggestions(_0x45b558[_0xdf1e21(0xa6)]({'toJSON':!0x0}),_0x51eaed[_0xdf1e21(0xb5)]);Object[_0xdf1e21(0xd7)](_0x1a5b88)[_0xdf1e21(0xca)]&&(_0x1d3d3d[_0xdf1e21(0xcd)]=_0x1a5b88);}return(_0x1d3d3d[_0xdf1e21(0xcd)]||_0x1d3d3d[_0xdf1e21(0xd4)])&&(_0x1d3d3d[_0xdf1e21(0xa4)]=new Intl[(_0xdf1e21(0xa2))]()[_0xdf1e21(0xb9)]()[_0xdf1e21(0xcb)]),_0x1d3d3d;}export function getComments(_0x5c1c50){const _0x5bde9a=_0x5068,_0x5740ec={};if(!_0x5c1c50[_0x5bde9a(0xca)])return _0x5740ec;for(const _0x5618fe of _0x5c1c50)_0x5618fe[_0x5bde9a(0xd4)][_0x5bde9a(0xb6)](_0x1b873e=>{const _0x5d694b=_0x5bde9a;void 0x0===_0x5740ec[_0x5618fe['id']]&&(_0x5740ec[_0x5618fe['id']]=[]),_0x5740ec[_0x5618fe['id']][_0x5d694b(0xa8)]({'author':_0x1b873e[_0x5d694b(0xd1)][_0x5d694b(0xc1)],'content':_0x1b873e[_0x5d694b(0xa3)],'created':_0x1b873e[_0x5d694b(0xa9)],'is_resolved':_0x5618fe[_0x5d694b(0xc2)]});});return _0x5740ec;}export function getSuggestions(_0x186ad0,_0xdc8b43){const _0x46ffff=_0x5068,_0x1cdaf1={};if(!_0x186ad0[_0x46ffff(0xca)]||!_0xdc8b43[_0x46ffff(0xca)])return _0x1cdaf1;for(const _0x2989c7 of _0x186ad0)_0x1cdaf1[_0x2989c7['id']]={'author':_0xdc8b43[_0x46ffff(0xcf)](_0x2989c7[_0x46ffff(0xb2)])[_0x46ffff(0xc1)],'created':_0x2989c7[_0x46ffff(0xa9)]};return _0x1cdaf1;}function _0x5068(_0x477eb4,_0x2967c7){const _0x14ed36=_0x14ed();return _0x5068=function(_0x5068ef,_0x1846a1){_0x5068ef=_0x5068ef-0xa2;let _0x320d65=_0x14ed36[_0x5068ef];return _0x320d65;},_0x5068(_0x477eb4,_0x2967c7);}export function getConverterOptionsV2(_0x2a7a68){const _0x135e50=_0x5068,_0x262f6f=_0x2a7a68[_0x135e50(0xc4)][_0x135e50(0xb3)](_0x135e50(0xbd)),_0x13e18c=_0x2a7a68[_0x135e50(0xc4)][_0x135e50(0xb3)](_0x135e50(0xbc)),_0x183ad4=_0x2a7a68[_0x135e50(0xc4)][_0x135e50(0xb3)](_0x135e50(0xaa)),_0x34216e={},_0x2c9aca={};if(_0x262f6f&&_0x13e18c){const _0x4e1be1=getCommentsV2(_0x2a7a68[_0x135e50(0xc4)][_0x135e50(0xcf)](_0x135e50(0xbc))[_0x135e50(0xbb)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));_0x4e1be1[_0x135e50(0xca)]&&(_0x2c9aca[_0x135e50(0xc0)]=_0x4e1be1);}if(_0x262f6f&&_0x183ad4){const _0x15a56c=_0x2a7a68[_0x135e50(0xc4)][_0x135e50(0xcf)](_0x135e50(0xaa)),_0x55fa32=_0x2a7a68[_0x135e50(0xc4)][_0x135e50(0xcf)](_0x135e50(0xbd)),_0x30badc=getSuggestionsV2(_0x15a56c[_0x135e50(0xa6)]({'toJSON':!0x0}),_0x55fa32[_0x135e50(0xb5)]);_0x30badc[_0x135e50(0xca)]&&(_0x2c9aca[_0x135e50(0xcd)]=_0x30badc);}return(_0x2c9aca[_0x135e50(0xc0)]||_0x2c9aca[_0x135e50(0xcd)])&&(_0x34216e[_0x135e50(0xa4)]=new Intl[(_0x135e50(0xa2))]()[_0x135e50(0xb9)]()[_0x135e50(0xcb)],_0x34216e[_0x135e50(0xb7)]=_0x2c9aca),_0x34216e;}export function getCommentsV2(_0x4a6ddb){const _0x5b2fcc=_0x5068,_0x373766=[];if(!_0x4a6ddb[_0x5b2fcc(0xca)])return _0x373766;for(const _0x838f4c of _0x4a6ddb){const _0x3d3af3=_0x838f4c[_0x5b2fcc(0xd4)][_0x5b2fcc(0xb6)](_0x55c163=>({'author':_0x55c163[_0x5b2fcc(0xd1)][_0x5b2fcc(0xc1)],'content':_0x55c163[_0x5b2fcc(0xa3)],'created_at':_0x55c163[_0x5b2fcc(0xa9)]}));_0x373766[_0x5b2fcc(0xa8)]({'thread_id':_0x838f4c['id'],'is_resolved':_0x838f4c[_0x5b2fcc(0xc2)],'comments':_0x3d3af3});}return _0x373766;}export function getSuggestionsV2(_0x413c90,_0x3092b6){const _0x44e03a=_0x5068;return _0x413c90[_0x44e03a(0xca)]&&_0x3092b6[_0x44e03a(0xca)]?_0x413c90[_0x44e03a(0xb6)](_0x583487=>({'id':_0x583487['id'],'author':_0x3092b6[_0x44e03a(0xcf)](_0x583487[_0x44e03a(0xb2)])[_0x44e03a(0xc1)],'created_at':_0x583487[_0x44e03a(0xa9)]})):[];}