@ckeditor/ckeditor5-export-word 42.0.0-alpha.2 → 42.0.0-alpha.20

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':_0x581598=>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':_0x147b65=>0x0}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x2a7190=>{const {zh:{dictionary:_0x31a686,getPluralForm:_0x1eab29}}={'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':_0x5d1b3c=>0x0}};_0x2a7190['zh']||={'dictionary':{},'getPluralForm':null},_0x2a7190['zh']['dictionary']=Object['assign'](_0x2a7190['zh']['dictionary'],_0x31a686),_0x2a7190['zh']['getPluralForm']=_0x1eab29;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x3d906d=>{const {zh:{dictionary:_0x1525c0,getPluralForm:_0x590751}}={'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':_0x33976d=>0x0}};_0x3d906d['zh']||={'dictionary':{},'getPluralForm':null},_0x3d906d['zh']['dictionary']=Object['assign'](_0x3d906d['zh']['dictionary'],_0x1525c0),_0x3d906d['zh']['getPluralForm']=_0x590751;})(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.2",
3
+ "version": "42.0.0-alpha.20",
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.2"
33
+ "ckeditor5": "42.0.0-alpha.20"
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 _0x5c83c9=_0x3d0e;(function(_0x537acd,_0x523da7){const _0x1d0e4b=_0x3d0e,_0x3b6b2f=_0x537acd();while(!![]){try{const _0x323fc0=parseInt(_0x1d0e4b(0x1bd))/0x1*(-parseInt(_0x1d0e4b(0x1b3))/0x2)+-parseInt(_0x1d0e4b(0x1ba))/0x3*(parseInt(_0x1d0e4b(0x1b7))/0x4)+-parseInt(_0x1d0e4b(0x1b5))/0x5*(parseInt(_0x1d0e4b(0x1be))/0x6)+parseInt(_0x1d0e4b(0x1a5))/0x7+-parseInt(_0x1d0e4b(0x1b8))/0x8+parseInt(_0x1d0e4b(0x1a6))/0x9+parseInt(_0x1d0e4b(0x1ad))/0xa*(parseInt(_0x1d0e4b(0x1aa))/0xb);if(_0x323fc0===_0x523da7)break;else _0x3b6b2f['push'](_0x3b6b2f['shift']());}catch(_0x3dbed0){_0x3b6b2f['push'](_0x3b6b2f['shift']());}}}(_0x556d,0x3e1ff));import{Plugin as _0x5a10b1}from'ckeditor5/src/core.js';import{Notification as _0x464688}from'ckeditor5/src/ui.js';import _0x4e93b3 from'./exportwordcommand.js';function _0x3d0e(_0x2db605,_0x4b74b8){const _0x556da7=_0x556d();return _0x3d0e=function(_0x3d0eb0,_0x32e435){_0x3d0eb0=_0x3d0eb0-0x1a5;let _0x3dd9fc=_0x556da7[_0x3d0eb0];return _0x3dd9fc;},_0x3d0e(_0x2db605,_0x4b74b8);}import _0x270326 from'./exportwordui.js';function _0x556d(){const _0xb1ed9a=['tokenUrl','CloudServices','920510PUcNwK','exportWord','config','plugins','requires','add','161972dxaSXo','get','1326145rhTxPE','editor','50948EMTQmx','191976RZChjB','init','87EMXJVq','commands','then','4gdTkwf','6rkmFDw','registerTokenUrl','_token','3481177CPWzwL','3343419hqupAj','token','pluginName','ExportWord','44ZoyvYK'];_0x556d=function(){return _0xb1ed9a;};return _0x556d();}export default class s extends _0x5a10b1{static get[_0x5c83c9(0x1a8)](){const _0x34fa63=_0x5c83c9;return _0x34fa63(0x1a9);}static get[_0x5c83c9(0x1b1)](){const _0x4a266e=_0x5c83c9;return[_0x4a266e(0x1ac),_0x464688,_0x270326];}[_0x5c83c9(0x1b9)](){const _0x24b552=_0x5c83c9,_0x2cd80b=this[_0x24b552(0x1b6)],_0x3cb42c=_0x2cd80b[_0x24b552(0x1af)][_0x24b552(0x1b4)](_0x24b552(0x1ae))||{};_0x2cd80b[_0x24b552(0x1bb)][_0x24b552(0x1b2)](_0x24b552(0x1ae),new _0x4e93b3(_0x2cd80b));const _0x404b63=_0x2cd80b[_0x24b552(0x1b0)][_0x24b552(0x1b4)](_0x24b552(0x1ac));!0x1===_0x3cb42c[_0x24b552(0x1ab)]?this[_0x24b552(0x1c0)]=null:_0x3cb42c[_0x24b552(0x1ab)]?_0x404b63[_0x24b552(0x1bf)](_0x3cb42c[_0x24b552(0x1ab)])[_0x24b552(0x1bc)](_0x3b2e9c=>{const _0x2ee11a=_0x24b552;this[_0x2ee11a(0x1c0)]=_0x3b2e9c;}):this[_0x24b552(0x1c0)]=_0x404b63[_0x24b552(0x1a7)];}}
23
+ const _0x562137=_0x25ac;(function(_0x228fc4,_0x3f2637){const _0x2bea82=_0x25ac,_0x469531=_0x228fc4();while(!![]){try{const _0xfc1295=-parseInt(_0x2bea82(0x67))/0x1*(-parseInt(_0x2bea82(0x71))/0x2)+parseInt(_0x2bea82(0x78))/0x3*(parseInt(_0x2bea82(0x7c))/0x4)+parseInt(_0x2bea82(0x70))/0x5*(parseInt(_0x2bea82(0x6d))/0x6)+parseInt(_0x2bea82(0x76))/0x7+parseInt(_0x2bea82(0x69))/0x8*(parseInt(_0x2bea82(0x74))/0x9)+-parseInt(_0x2bea82(0x73))/0xa*(-parseInt(_0x2bea82(0x6b))/0xb)+-parseInt(_0x2bea82(0x7a))/0xc;if(_0xfc1295===_0x3f2637)break;else _0x469531['push'](_0x469531['shift']());}catch(_0x4f1702){_0x469531['push'](_0x469531['shift']());}}}(_0x77a8,0xb053b));function _0x77a8(){const _0x9cc500=['468GvJllf','get','8701798XEftJX','init','1371BjGycY','config','49444980CqIpfp','CloudServices','512OSCLSP','ExportWord','exportWord','then','registerTokenUrl','editor','token','plugins','1DiGSDG','requires','1216YWFDji','add','11AMTtOL','_token','24006SajEFa','commands','pluginName','1470uojoWa','2615962YvZIYt','tokenUrl','10488610DTeNGF'];_0x77a8=function(){return _0x9cc500;};return _0x77a8();}import{Plugin as _0x3a05a7}from'ckeditor5/src/core.js';import{Notification as _0x2cd097}from'ckeditor5/src/ui.js';function _0x25ac(_0x26ee89,_0x3cb27d){const _0x77a816=_0x77a8();return _0x25ac=function(_0x25ac3e,_0xa5a3bc){_0x25ac3e=_0x25ac3e-0x67;let _0x25dfe2=_0x77a816[_0x25ac3e];return _0x25dfe2;},_0x25ac(_0x26ee89,_0x3cb27d);}import _0x342353 from'./exportwordcommand.js';import _0x469c3f from'./exportwordui.js';export default class s extends _0x3a05a7{static get[_0x562137(0x6f)](){const _0x175c45=_0x562137;return _0x175c45(0x7d);}static get[_0x562137(0x68)](){const _0x36b70b=_0x562137;return[_0x36b70b(0x7b),_0x2cd097,_0x469c3f];}[_0x562137(0x77)](){const _0x437b9e=_0x562137,_0x51413f=this[_0x437b9e(0x81)],_0xb137cd=_0x51413f[_0x437b9e(0x79)][_0x437b9e(0x75)](_0x437b9e(0x7e))||{};_0x51413f[_0x437b9e(0x6e)][_0x437b9e(0x6a)](_0x437b9e(0x7e),new _0x342353(_0x51413f));const _0x4afa81=_0x51413f[_0x437b9e(0x83)][_0x437b9e(0x75)](_0x437b9e(0x7b));!0x1===_0xb137cd[_0x437b9e(0x72)]?this[_0x437b9e(0x6c)]=null:_0xb137cd[_0x437b9e(0x72)]?_0x4afa81[_0x437b9e(0x80)](_0xb137cd[_0x437b9e(0x72)])[_0x437b9e(0x7f)](_0x19b8d1=>{const _0x59bd6e=_0x437b9e;this[_0x59bd6e(0x6c)]=_0x19b8d1;}):this[_0x437b9e(0x6c)]=_0x4afa81[_0x437b9e(0x82)];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x4a37f4}from'ckeditor5/src/core.js';import{getStyles as _0x3b4c5a,getConverterOptions as _0x5cb762}from'./utils.js';export default class e extends _0x4a37f4{constructor(_0x4c1d32){super(_0x4c1d32),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x2f52f5={}){const _0x16e771=this['editor'],t=_0x16e771['t'],_0x1736ee=_0x2f52f5['version']||0x1,_0x9d47f2=_0x2f52f5['converterUrl']||(0x2===_0x1736ee?'https://docx-converter.cke-cs.com/v2/convert/docx-html':'https://docx-converter.cke-cs.com/v1/convert'),_0x500abc=_0x2f52f5['converterOptions']||{},_0x11c332=_0x16e771['plugins']['get']('ExportWord'),_0x22e5a0=_0x2f52f5['token']||_0x11c332['_token'],_0x365662=!0x1!==_0x500abc['auto_pagination'],_0x2a77b4=_0x2f52f5['dataCallback']||(_0x490ca1=>_0x490ca1['data']['get']({'pagination':_0x365662}));return this['isBusy']=!0x0,this['refresh'](),_0x3b4c5a(_0x2f52f5['stylesheets']||['EDITOR_STYLES'])['then'](async _0x42c182=>{_0x16e771['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20started'));const _0x581d93=await _0x2a77b4(_0x16e771),_0x20ddda={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x16e771['locale']['contentLanguageDirection']+'\x22>'+_0x581d93+'</div>','css':_0x42c182,[0x2===_0x1736ee?'config':'options']:{..._0x500abc,..._0x5cb762(_0x16e771)}},_0x174efe={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0x22e5a0?{'Authorization':_0x22e5a0['value']}:null},'body':JSON['stringify'](_0x20ddda)};return window['fetch'](_0x9d47f2,_0x174efe)['then'](_0x21098f=>{if(0xc8!==_0x21098f['status'])throw _0x21098f;return _0x21098f['blob']();})['then'](_0x3711e5=>{_0x16e771['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20successful'));const _0x5608fd='function'==typeof _0x2f52f5['fileName']?_0x2f52f5['fileName']():_0x2f52f5['fileName'];this['_downloadFile'](_0x3711e5,_0x5608fd||'document.docx');});})['catch'](_0x36d2d5=>{const _0x1e0501=_0x16e771['plugins']['get']('Notification');throw _0x16e771['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20failed'),{'politeness':'assertive'}),_0x1e0501['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0x36d2d5;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x564049,_0x227b23){const _0xaa187f=document['createElement']('a');_0xaa187f['href']=window['URL']['createObjectURL'](_0x564049),_0xaa187f['download']=_0x227b23,_0xaa187f['click'](),_0xaa187f['remove']();}}
23
+ import{Command as _0xb6aec2}from'ckeditor5/src/core.js';import{getStyles as _0x12b5fc,getConverterOptions as _0x56fdf4,getConverterOptionsV2 as _0x3aaa4a}from'./utils.js';export default class e extends _0xb6aec2{constructor(_0x1ab32a){super(_0x1ab32a),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x5dfd16={}){const _0x438fe0=this['editor'],t=_0x438fe0['t'],_0x1ee26e=0x2===(_0x5dfd16['version']||0x1),_0x3f061f=_0x5dfd16['converterUrl']||(_0x1ee26e?'https://docx-converter.cke-cs.com/v2/convert/html-docx':'https://docx-converter.cke-cs.com/v1/convert'),_0x211e57=_0x5dfd16['converterOptions']||{},_0x274999=_0x438fe0['plugins']['get']('ExportWord'),_0x5c28dc=_0x5dfd16['token']||_0x274999['_token'],_0x2d16b=!0x1!==_0x211e57['auto_pagination'],_0x385ed0=_0x5dfd16['dataCallback']||(_0x1d4bae=>_0x1d4bae['data']['get']({'pagination':_0x2d16b}));return this['isBusy']=!0x0,this['refresh'](),_0x12b5fc(_0x5dfd16['stylesheets']||['EDITOR_STYLES'])['then'](async _0x39f915=>{_0x438fe0['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20started'));const _0x5d28ea=await _0x385ed0(_0x438fe0),_0x4e3199={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x438fe0['locale']['contentLanguageDirection']+'\x22>'+_0x5d28ea+'</div>','css':_0x39f915,[_0x1ee26e?'config':'options']:{..._0x211e57,..._0x1ee26e?_0x3aaa4a(_0x438fe0):_0x56fdf4(_0x438fe0)}},_0x2a40be={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0x5c28dc?{'Authorization':_0x5c28dc['value']}:null},'body':JSON['stringify'](_0x4e3199)};return window['fetch'](_0x3f061f,_0x2a40be)['then'](_0x446372=>{if(0xc8!==_0x446372['status'])throw _0x446372;return _0x446372['blob']();})['then'](_0x5d71bd=>{_0x438fe0['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20successful'));const _0x313a66='function'==typeof _0x5dfd16['fileName']?_0x5dfd16['fileName']():_0x5dfd16['fileName'];this['_downloadFile'](_0x5d71bd,_0x313a66||'document.docx');});})['catch'](_0x5b2062=>{const _0x2b97b2=_0x438fe0['plugins']['get']('Notification');throw _0x438fe0['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20failed'),{'politeness':'assertive'}),_0x2b97b2['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0x5b2062;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x489121,_0x34cdda){const _0x3a5267=document['createElement']('a');_0x3a5267['href']=window['URL']['createObjectURL'](_0x489121),_0x3a5267['download']=_0x34cdda,_0x3a5267['click'](),_0x3a5267['remove']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x500d53}from'ckeditor5/src/core.js';import{ButtonView as _0x30a893,MenuBarMenuListItemButtonView as _0x89930f,SpinnerView as _0x1f2678}from'ckeditor5/src/ui.js';import _0x48c68f from'../theme/icons/exportword.svg';export default class i extends _0x500d53{static get['pluginName'](){return'ExportWordUI';}['init'](){const _0x5a5b24=this['editor'];_0x5a5b24['ui']['componentFactory']['add']('exportWord',()=>{const _0x476bc2=_0x5a5b24['commands']['get']('exportWord'),_0x5da6eb=this['_createButton'](_0x30a893);return _0x5da6eb['set']({'tooltip':!0x0}),_0x5da6eb['bind']('isOn')['to'](_0x476bc2,'isBusy'),_0x5da6eb;}),_0x5a5b24['ui']['componentFactory']['add']('menuBar:exportWord',()=>this['_createButton'](_0x89930f));}['_createButton'](_0x18adaa){const _0x222677=this['editor'],_0x3279ab=_0x222677['config']['get']('exportWord')||{},t=_0x222677['locale']['t'],_0x2388f5=_0x222677['commands']['get']('exportWord'),_0x12ff61=new _0x18adaa(_0x222677['locale']),_0x2d69e5=new _0x1f2678();return _0x12ff61['children']['add'](_0x2d69e5),_0x2d69e5['bind']('isVisible')['to'](_0x2388f5,'isBusy'),_0x12ff61['iconView']['bind']('isVisible')['to'](_0x2388f5,'isBusy',_0x21f0f5=>!_0x21f0f5),_0x12ff61['set']({'icon':_0x48c68f}),_0x12ff61['bind']('isEnabled')['to'](_0x2388f5,'isEnabled'),_0x12ff61['bind']('label')['to'](_0x2388f5,'isBusy',_0x3b215b=>t(_0x3b215b?'Exporting\x20Word\x20document':'Export\x20to\x20Word')),this['listenTo'](_0x12ff61,'execute',()=>{_0x222677['execute']('exportWord',_0x3279ab),_0x222677['editing']['view']['focus']();}),_0x12ff61;}}
23
+ import{Plugin as _0x4f8757}from'ckeditor5/src/core.js';import{ButtonView as _0x4429d1,MenuBarMenuListItemButtonView as _0x3fda2e,SpinnerView as _0x545991}from'ckeditor5/src/ui.js';import _0x3b97ab from'../theme/icons/exportword.svg';export default class i extends _0x4f8757{static get['pluginName'](){return'ExportWordUI';}['init'](){const _0x7704ab=this['editor'];_0x7704ab['ui']['componentFactory']['add']('exportWord',()=>{const _0x38d579=_0x7704ab['commands']['get']('exportWord'),_0x212b3c=this['_createButton'](_0x4429d1);return _0x212b3c['set']({'tooltip':!0x0}),_0x212b3c['bind']('isOn')['to'](_0x38d579,'isBusy'),_0x212b3c;}),_0x7704ab['ui']['componentFactory']['add']('menuBar:exportWord',()=>this['_createButton'](_0x3fda2e));}['_createButton'](_0x343380){const _0x2b8674=this['editor'],_0xda11b3=_0x2b8674['config']['get']('exportWord')||{},t=_0x2b8674['locale']['t'],_0x3352d3=_0x2b8674['commands']['get']('exportWord'),_0x50561d=new _0x343380(_0x2b8674['locale']),_0x3f93e4=new _0x545991();return _0x50561d['children']['add'](_0x3f93e4),_0x3f93e4['bind']('isVisible')['to'](_0x3352d3,'isBusy'),_0x50561d['iconView']['bind']('isVisible')['to'](_0x3352d3,'isBusy',_0x578dee=>!_0x578dee),_0x50561d['set']({'icon':_0x3b97ab}),_0x50561d['bind']('isEnabled')['to'](_0x3352d3,'isEnabled'),_0x50561d['bind']('label')['to'](_0x3352d3,'isBusy',_0x43e94c=>t(_0x43e94c?'Exporting\x20Word\x20document':'Export\x20to\x20Word')),this['listenTo'](_0x50561d,'execute',()=>{_0x2b8674['execute']('exportWord',_0xda11b3),_0x2b8674['editing']['view']['focus']();}),_0x50561d;}}
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x293d83,_0x5d6e95){var _0x2449d3=_0x4126,_0x2cc63a=_0x293d83();while(!![]){try{var _0x54d7e8=parseInt(_0x2449d3(0x19a))/0x1+parseInt(_0x2449d3(0x196))/0x2+-parseInt(_0x2449d3(0x195))/0x3*(parseInt(_0x2449d3(0x198))/0x4)+parseInt(_0x2449d3(0x19d))/0x5*(parseInt(_0x2449d3(0x194))/0x6)+parseInt(_0x2449d3(0x197))/0x7+-parseInt(_0x2449d3(0x19b))/0x8+parseInt(_0x2449d3(0x19c))/0x9*(-parseInt(_0x2449d3(0x199))/0xa);if(_0x54d7e8===_0x5d6e95)break;else _0x2cc63a['push'](_0x2cc63a['shift']());}catch(_0x159c8f){_0x2cc63a['push'](_0x2cc63a['shift']());}}}(_0x2950,0xa5b98));export{default as ExportWord}from'./exportword.js';function _0x4126(_0x4b8dec,_0x13254a){var _0x29501f=_0x2950();return _0x4126=function(_0x412637,_0x99b410){_0x412637=_0x412637-0x194;var _0x193296=_0x29501f[_0x412637];return _0x193296;},_0x4126(_0x4b8dec,_0x13254a);}import'./augmentation.js';function _0x2950(){var _0x21bdf9=['5035233lPWXTC','124mPqcUb','9320sPVqXE','932307JAngYc','4237456mOhGsy','11268Kgoksj','32905qiwabm','318avizYK','80049rVeXnw','2404216heVeua'];_0x2950=function(){return _0x21bdf9;};return _0x2950();}
23
+ (function(_0x684d5c,_0x39ca2c){var _0x36a332=_0x2aa9,_0x2c990b=_0x684d5c();while(!![]){try{var _0x119061=parseInt(_0x36a332(0x1a3))/0x1*(-parseInt(_0x36a332(0x19f))/0x2)+-parseInt(_0x36a332(0x1a7))/0x3+parseInt(_0x36a332(0x1a1))/0x4+-parseInt(_0x36a332(0x1a4))/0x5*(-parseInt(_0x36a332(0x1a8))/0x6)+parseInt(_0x36a332(0x1a2))/0x7*(-parseInt(_0x36a332(0x1a5))/0x8)+parseInt(_0x36a332(0x1a6))/0x9+parseInt(_0x36a332(0x1a0))/0xa;if(_0x119061===_0x39ca2c)break;else _0x2c990b['push'](_0x2c990b['shift']());}catch(_0x47b621){_0x2c990b['push'](_0x2c990b['shift']());}}}(_0x465d,0xf1a13));function _0x2aa9(_0x31989b,_0xda12b5){var _0x465daf=_0x465d();return _0x2aa9=function(_0x2aa925,_0x213a52){_0x2aa925=_0x2aa925-0x19f;var _0x5daf28=_0x465daf[_0x2aa925];return _0x5daf28;},_0x2aa9(_0x31989b,_0xda12b5);}export{default as ExportWord}from'./exportword.js';function _0x465d(){var _0x307a43=['15746368duhdVo','824994zwYjQG','1704141rUqmsT','2618430GDyHFm','127202aUQBCW','6472630VcCiyr','6166060QDghkG','7mtlWmz','1IOuaRw','15RuhPos'];_0x465d=function(){return _0x307a43;};return _0x465d();}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(_0x5eabbd,_0xf083f0){const _0x340f2a=_0x3099,_0x11d82f=_0x5eabbd();while(!![]){try{const _0x545e71=parseInt(_0x340f2a(0x1cd))/0x1*(parseInt(_0x340f2a(0x1b5))/0x2)+parseInt(_0x340f2a(0x1ae))/0x3+-parseInt(_0x340f2a(0x1bc))/0x4*(parseInt(_0x340f2a(0x1d9))/0x5)+-parseInt(_0x340f2a(0x1c3))/0x6*(parseInt(_0x340f2a(0x1a7))/0x7)+parseInt(_0x340f2a(0x1cb))/0x8*(parseInt(_0x340f2a(0x1a8))/0x9)+parseInt(_0x340f2a(0x1a9))/0xa*(parseInt(_0x340f2a(0x1ac))/0xb)+parseInt(_0x340f2a(0x1c2))/0xc*(-parseInt(_0x340f2a(0x1b2))/0xd);if(_0x545e71===_0xf083f0)break;else _0x11d82f['push'](_0x11d82f['shift']());}catch(_0x1b1044){_0x11d82f['push'](_0x11d82f['shift']());}}}(_0x3e8c,0x80b95));export function getStyles(_0x358371){const _0x3e2a48=_0x3099;if(!_0x358371)return new Promise(_0x4ce56c=>_0x4ce56c(''));const _0x464538=[];for(const _0x1c3ffb of _0x358371)_0x3e2a48(0x1a4)!==_0x1c3ffb?_0x464538[_0x3e2a48(0x1c9)](window[_0x3e2a48(0x1bb)](_0x1c3ffb)[_0x3e2a48(0x1c8)](_0x3ec716=>_0x3ec716[_0x3e2a48(0x1b7)]())):_0x464538[_0x3e2a48(0x1c9)](f());return Promise[_0x3e2a48(0x1ba)](_0x464538)[_0x3e2a48(0x1c8)](_0x3ca58e=>_0x3ca58e[_0x3e2a48(0x1b1)]('\x20')[_0x3e2a48(0x1ca)]());}function _0x3e8c(){const _0x36c022=[':root','warn','hasAttribute','get','data-cke','indexOf','timeZone','cssText','length','TrackChanges','content','445vyiJOL','from','author','cssRules','EDITOR_STYLES','getSuggestions','keys','567077bbPZyh','16101KwyOBT','10hDxNcQ','map','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.','5105309Jkoeok','CommentsRepository','488346dzvIHq','suggestions','users','join','13eeSepP','.ck-content','timezone','9092qfKkfW','createdAt','text','plugins','Users','all','fetch','18692gyoxwJ','DateTimeFormat','isResolved','ownerNode','getCommentThreads','comments','8686476cQRUGJ','12TXiXtj','authorId','styleSheets','has','name','then','push','trim','2672qYmPVi','resolvedOptions','133KOpjcm'];_0x3e8c=function(){return _0x36c022;};return _0x3e8c();}function f(){const _0x5f48e8=_0x3099,_0x3d5d15=[],_0x150f80=[];for(const _0x4362ee of Array[_0x5f48e8(0x1da)](document[_0x5f48e8(0x1c5)])){if(_0x4362ee[_0x5f48e8(0x1bf)][_0x5f48e8(0x1d0)](_0x5f48e8(0x1d2))){for(const _0x4b8784 of Array[_0x5f48e8(0x1da)](_0x4362ee[_0x5f48e8(0x1a3)]))-0x1!==_0x4b8784[_0x5f48e8(0x1d5)][_0x5f48e8(0x1d3)](_0x5f48e8(0x1b3))?_0x3d5d15[_0x5f48e8(0x1c9)](_0x4b8784[_0x5f48e8(0x1d5)]):-0x1!==_0x4b8784[_0x5f48e8(0x1d5)][_0x5f48e8(0x1d3)](_0x5f48e8(0x1ce))&&_0x150f80[_0x5f48e8(0x1c9)](_0x4b8784[_0x5f48e8(0x1d5)]);}}return _0x3d5d15[_0x5f48e8(0x1d6)]||console[_0x5f48e8(0x1cf)](_0x5f48e8(0x1ab)),[..._0x150f80,..._0x3d5d15][_0x5f48e8(0x1b1)]('\x20')[_0x5f48e8(0x1ca)]();}export function getConverterOptions(_0x583ab3){const _0x4f90c1=_0x3099,_0x2adc6a=_0x583ab3[_0x4f90c1(0x1b8)][_0x4f90c1(0x1c6)](_0x4f90c1(0x1b9)),_0x11a8d7=_0x583ab3[_0x4f90c1(0x1b8)][_0x4f90c1(0x1c6)](_0x4f90c1(0x1ad)),_0x57c41d=_0x583ab3[_0x4f90c1(0x1b8)][_0x4f90c1(0x1c6)](_0x4f90c1(0x1d7)),_0x3f20fc={};if(_0x2adc6a&&_0x11a8d7){const _0x131ce8=getComments(_0x583ab3[_0x4f90c1(0x1b8)][_0x4f90c1(0x1d1)](_0x4f90c1(0x1ad))[_0x4f90c1(0x1c0)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object[_0x4f90c1(0x1a6)](_0x131ce8)[_0x4f90c1(0x1d6)]&&(_0x3f20fc[_0x4f90c1(0x1c1)]=_0x131ce8);}if(_0x2adc6a&&_0x57c41d){const _0x52fa38=_0x583ab3[_0x4f90c1(0x1b8)][_0x4f90c1(0x1d1)](_0x4f90c1(0x1d7)),_0x48a9d8=_0x583ab3[_0x4f90c1(0x1b8)][_0x4f90c1(0x1d1)](_0x4f90c1(0x1b9)),_0x3d3cba=getSuggestions(_0x52fa38[_0x4f90c1(0x1a5)]({'toJSON':!0x0}),_0x48a9d8[_0x4f90c1(0x1b0)]);Object[_0x4f90c1(0x1a6)](_0x3d3cba)[_0x4f90c1(0x1d6)]&&(_0x3f20fc[_0x4f90c1(0x1af)]=_0x3d3cba);}return(_0x3f20fc[_0x4f90c1(0x1af)]||_0x3f20fc[_0x4f90c1(0x1c1)])&&(_0x3f20fc[_0x4f90c1(0x1b4)]=new Intl[(_0x4f90c1(0x1bd))]()[_0x4f90c1(0x1cc)]()[_0x4f90c1(0x1d4)]),_0x3f20fc;}export function getComments(_0x4e5339){const _0xbbb30f=_0x3099,_0x2f2785={};if(!_0x4e5339[_0xbbb30f(0x1d6)])return _0x2f2785;for(const _0x10132c of _0x4e5339)_0x10132c[_0xbbb30f(0x1c1)][_0xbbb30f(0x1aa)](_0x469443=>{const _0x26ce43=_0xbbb30f;void 0x0===_0x2f2785[_0x10132c['id']]&&(_0x2f2785[_0x10132c['id']]=[]),_0x2f2785[_0x10132c['id']][_0x26ce43(0x1c9)]({'author':_0x469443[_0x26ce43(0x1a2)][_0x26ce43(0x1c7)],'content':_0x469443[_0x26ce43(0x1d8)],'created':_0x469443[_0x26ce43(0x1b6)],'is_resolved':_0x10132c[_0x26ce43(0x1be)]});});return _0x2f2785;}function _0x3099(_0x27a7ca,_0x5759ee){const _0x3e8c6a=_0x3e8c();return _0x3099=function(_0x30995b,_0x42ad40){_0x30995b=_0x30995b-0x1a2;let _0x213ad6=_0x3e8c6a[_0x30995b];return _0x213ad6;},_0x3099(_0x27a7ca,_0x5759ee);}export function getSuggestions(_0x53a3d6,_0x40ac19){const _0x5384d0=_0x3099,_0x268f07={};if(!_0x53a3d6[_0x5384d0(0x1d6)]||!_0x40ac19[_0x5384d0(0x1d6)])return _0x268f07;for(const _0x52e1ce of _0x53a3d6)_0x268f07[_0x52e1ce['id']]={'author':_0x40ac19[_0x5384d0(0x1d1)](_0x52e1ce[_0x5384d0(0x1c4)])[_0x5384d0(0x1c7)],'created':_0x52e1ce[_0x5384d0(0x1b6)]};return _0x268f07;}
23
+ (function(_0xfd89f8,_0x8a9571){const _0x333fb5=_0x2515,_0x4d7d84=_0xfd89f8();while(!![]){try{const _0x122152=parseInt(_0x333fb5(0x1e3))/0x1*(parseInt(_0x333fb5(0x1eb))/0x2)+parseInt(_0x333fb5(0x1da))/0x3*(-parseInt(_0x333fb5(0x1fb))/0x4)+-parseInt(_0x333fb5(0x1e1))/0x5+parseInt(_0x333fb5(0x1fa))/0x6+-parseInt(_0x333fb5(0x1f9))/0x7*(-parseInt(_0x333fb5(0x1ca))/0x8)+parseInt(_0x333fb5(0x1f4))/0x9*(-parseInt(_0x333fb5(0x1c4))/0xa)+-parseInt(_0x333fb5(0x1f2))/0xb*(-parseInt(_0x333fb5(0x1d9))/0xc);if(_0x122152===_0x8a9571)break;else _0x4d7d84['push'](_0x4d7d84['shift']());}catch(_0x245538){_0x4d7d84['push'](_0x4d7d84['shift']());}}}(_0x253d,0xecf39));export function getStyles(_0x3bed26){const _0x5cbb9c=_0x2515;if(!_0x3bed26)return new Promise(_0x12d7ba=>_0x12d7ba(''));const _0x2be10e=[];for(const _0x5c5dce of _0x3bed26)_0x5cbb9c(0x1c6)!==_0x5c5dce?_0x2be10e[_0x5cbb9c(0x1dc)](window[_0x5cbb9c(0x1e6)](_0x5c5dce)[_0x5cbb9c(0x1d8)](_0x2b6726=>_0x2b6726[_0x5cbb9c(0x1d2)]())):_0x2be10e[_0x5cbb9c(0x1dc)](f());return Promise[_0x5cbb9c(0x1db)](_0x2be10e)[_0x5cbb9c(0x1d8)](_0x29ac17=>_0x29ac17[_0x5cbb9c(0x1f7)]('\x20')[_0x5cbb9c(0x1fd)]());}function f(){const _0x501559=_0x2515,_0x5c9a3f=[],_0x3d42ab=[];for(const _0xb4e67a of Array[_0x501559(0x1cb)](document[_0x501559(0x1e0)])){if(_0xb4e67a[_0x501559(0x1e9)][_0x501559(0x1c7)](_0x501559(0x1fc))){for(const _0x3e4a12 of Array[_0x501559(0x1cb)](_0xb4e67a[_0x501559(0x1d0)]))-0x1!==_0x3e4a12[_0x501559(0x1ea)][_0x501559(0x1e8)](_0x501559(0x1e7))?_0x5c9a3f[_0x501559(0x1dc)](_0x3e4a12[_0x501559(0x1ea)]):-0x1!==_0x3e4a12[_0x501559(0x1ea)][_0x501559(0x1e8)](_0x501559(0x1f6))&&_0x3d42ab[_0x501559(0x1dc)](_0x3e4a12[_0x501559(0x1ea)]);}}return _0x5c9a3f[_0x501559(0x1f8)]||console[_0x501559(0x1cf)](_0x501559(0x1cc)),[..._0x3d42ab,..._0x5c9a3f][_0x501559(0x1f7)]('\x20')[_0x501559(0x1fd)]();}export function getConverterOptions(_0x193f94){const _0x3e98ad=_0x2515,_0x57c281=_0x193f94[_0x3e98ad(0x1ed)][_0x3e98ad(0x1dd)](_0x3e98ad(0x1f0)),_0x210a77=_0x193f94[_0x3e98ad(0x1ed)][_0x3e98ad(0x1dd)](_0x3e98ad(0x1d1)),_0x21a21f=_0x193f94[_0x3e98ad(0x1ed)][_0x3e98ad(0x1dd)](_0x3e98ad(0x1d6)),_0x17533b={};if(_0x57c281&&_0x210a77){const _0xb5da0c=getComments(_0x193f94[_0x3e98ad(0x1ed)][_0x3e98ad(0x1d5)](_0x3e98ad(0x1d1))[_0x3e98ad(0x1e2)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object[_0x3e98ad(0x1c5)](_0xb5da0c)[_0x3e98ad(0x1f8)]&&(_0x17533b[_0x3e98ad(0x1cd)]=_0xb5da0c);}if(_0x57c281&&_0x21a21f){const _0x3ef8c6=_0x193f94[_0x3e98ad(0x1ed)][_0x3e98ad(0x1d5)](_0x3e98ad(0x1d6)),_0xfc3ab8=_0x193f94[_0x3e98ad(0x1ed)][_0x3e98ad(0x1d5)](_0x3e98ad(0x1f0)),_0x629c08=getSuggestions(_0x3ef8c6[_0x3e98ad(0x1c9)]({'toJSON':!0x0}),_0xfc3ab8[_0x3e98ad(0x1ef)]);Object[_0x3e98ad(0x1c5)](_0x629c08)[_0x3e98ad(0x1f8)]&&(_0x17533b[_0x3e98ad(0x1e4)]=_0x629c08);}return(_0x17533b[_0x3e98ad(0x1e4)]||_0x17533b[_0x3e98ad(0x1cd)])&&(_0x17533b[_0x3e98ad(0x1f1)]=new Intl[(_0x3e98ad(0x1d4))]()[_0x3e98ad(0x1ee)]()[_0x3e98ad(0x1d3)]),_0x17533b;}export function getComments(_0x330729){const _0x16b30f=_0x2515,_0x416fe5={};if(!_0x330729[_0x16b30f(0x1f8)])return _0x416fe5;for(const _0x3d5ef8 of _0x330729)_0x3d5ef8[_0x16b30f(0x1cd)][_0x16b30f(0x1de)](_0x162757=>{const _0x28447b=_0x16b30f;void 0x0===_0x416fe5[_0x3d5ef8['id']]&&(_0x416fe5[_0x3d5ef8['id']]=[]),_0x416fe5[_0x3d5ef8['id']][_0x28447b(0x1dc)]({'author':_0x162757[_0x28447b(0x1f3)][_0x28447b(0x1df)],'content':_0x162757[_0x28447b(0x1c8)],'created':_0x162757[_0x28447b(0x1ec)],'is_resolved':_0x3d5ef8[_0x28447b(0x1f5)]});});return _0x416fe5;}export function getSuggestions(_0x4c46a3,_0x5c120e){const _0x3e4df6=_0x2515,_0x497cf8={};if(!_0x4c46a3[_0x3e4df6(0x1f8)]||!_0x5c120e[_0x3e4df6(0x1f8)])return _0x497cf8;for(const _0x1ff900 of _0x4c46a3)_0x497cf8[_0x1ff900['id']]={'author':_0x5c120e[_0x3e4df6(0x1d5)](_0x1ff900[_0x3e4df6(0x1e5)])[_0x3e4df6(0x1df)],'created':_0x1ff900[_0x3e4df6(0x1ec)]};return _0x497cf8;}export function getConverterOptionsV2(_0x596ad7){const _0x2ee3cc=_0x2515,_0x479158=_0x596ad7[_0x2ee3cc(0x1ed)][_0x2ee3cc(0x1dd)](_0x2ee3cc(0x1f0)),_0x9df155=_0x596ad7[_0x2ee3cc(0x1ed)][_0x2ee3cc(0x1dd)](_0x2ee3cc(0x1d1)),_0x44badc=_0x596ad7[_0x2ee3cc(0x1ed)][_0x2ee3cc(0x1dd)](_0x2ee3cc(0x1d6)),_0x4cf359={},_0x4f23f2={};if(_0x479158&&_0x9df155){const _0xd48846=getCommentsV2(_0x596ad7[_0x2ee3cc(0x1ed)][_0x2ee3cc(0x1d5)](_0x2ee3cc(0x1d1))[_0x2ee3cc(0x1e2)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));_0xd48846[_0x2ee3cc(0x1f8)]&&(_0x4f23f2[_0x2ee3cc(0x1d7)]=_0xd48846);}if(_0x479158&&_0x44badc){const _0x338671=_0x596ad7[_0x2ee3cc(0x1ed)][_0x2ee3cc(0x1d5)](_0x2ee3cc(0x1d6)),_0x54e0ed=_0x596ad7[_0x2ee3cc(0x1ed)][_0x2ee3cc(0x1d5)](_0x2ee3cc(0x1f0)),_0x453479=getSuggestionsV2(_0x338671[_0x2ee3cc(0x1c9)]({'toJSON':!0x0}),_0x54e0ed[_0x2ee3cc(0x1ef)]);_0x453479[_0x2ee3cc(0x1f8)]&&(_0x4f23f2[_0x2ee3cc(0x1e4)]=_0x453479);}return(_0x4f23f2[_0x2ee3cc(0x1d7)]||_0x4f23f2[_0x2ee3cc(0x1e4)])&&(_0x4cf359[_0x2ee3cc(0x1f1)]=new Intl[(_0x2ee3cc(0x1d4))]()[_0x2ee3cc(0x1ee)]()[_0x2ee3cc(0x1d3)],_0x4cf359[_0x2ee3cc(0x1ce)]=_0x4f23f2),_0x4cf359;}function _0x2515(_0x491281,_0x5d90b2){const _0x253d3d=_0x253d();return _0x2515=function(_0x251570,_0x46c3bd){_0x251570=_0x251570-0x1c4;let _0x5d283c=_0x253d3d[_0x251570];return _0x5d283c;},_0x2515(_0x491281,_0x5d90b2);}function _0x253d(){const _0x4d8af6=['content','getSuggestions','1504dWpvYc','from','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.','comments','collaboration_features','warn','cssRules','CommentsRepository','text','timeZone','DateTimeFormat','get','TrackChanges','comment_threads','then','16633836GBUujy','8289pTdSVV','all','push','has','map','name','styleSheets','7339580auzpuH','getCommentThreads','855031PgbpfV','suggestions','authorId','fetch','.ck-content','indexOf','ownerNode','cssText','4ChdDym','createdAt','plugins','resolvedOptions','users','Users','timezone','11icnwmy','author','3129426umXUdp','isResolved',':root','join','length','71533CWdasN','3760830aZlzSx','2124izkHcZ','data-cke','trim','50uxuAfE','keys','EDITOR_STYLES','hasAttribute'];_0x253d=function(){return _0x4d8af6;};return _0x253d();}export function getCommentsV2(_0x17eff2){const _0x46dccc=_0x2515,_0x32e2b8=[];if(!_0x17eff2[_0x46dccc(0x1f8)])return _0x32e2b8;for(const _0x344d0b of _0x17eff2){const _0x3bcd38=_0x344d0b[_0x46dccc(0x1cd)][_0x46dccc(0x1de)](_0x4f5364=>({'author':_0x4f5364[_0x46dccc(0x1f3)][_0x46dccc(0x1df)],'content':_0x4f5364[_0x46dccc(0x1c8)],'created_at':_0x4f5364[_0x46dccc(0x1ec)]}));_0x32e2b8[_0x46dccc(0x1dc)]({'thread_id':_0x344d0b['id'],'is_resolved':_0x344d0b[_0x46dccc(0x1f5)],'comments':_0x3bcd38});}return _0x32e2b8;}export function getSuggestionsV2(_0x53f00b,_0x455363){const _0x1399f5=_0x2515;return _0x53f00b[_0x1399f5(0x1f8)]&&_0x455363[_0x1399f5(0x1f8)]?_0x53f00b[_0x1399f5(0x1de)](_0x123a68=>({'id':_0x123a68['id'],'author':_0x455363[_0x1399f5(0x1d5)](_0x123a68[_0x1399f5(0x1e5)])[_0x1399f5(0x1df)],'created_at':_0x123a68[_0x1399f5(0x1ec)]})):[];}