@ckeditor/ckeditor5-export-word 42.0.0-alpha.7 → 42.0.0-alpha.8

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 +11 -10
  95. package/dist/types/utils.d.ts +22 -2
  96. package/package.json +2 -2
  97. package/src/exportword.d.ts +11 -10
  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':_0x57ab27=>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':_0x1779fa=>0x0}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0xc861af=>{const {zh:{dictionary:_0x4e4d71,getPluralForm:_0xe72292}}={'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':_0x22046c=>0x0}};_0xc861af['zh']||={'dictionary':{},'getPluralForm':null},_0xc861af['zh']['dictionary']=Object['assign'](_0xc861af['zh']['dictionary'],_0x4e4d71),_0xc861af['zh']['getPluralForm']=_0xe72292;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x1816df=>{const {zh:{dictionary:_0x4fa1ca,getPluralForm:_0x5878de}}={'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':_0x266cc1=>0x0}};_0x1816df['zh']||={'dictionary':{},'getPluralForm':null},_0x1816df['zh']['dictionary']=Object['assign'](_0x1816df['zh']['dictionary'],_0x4fa1ca),_0x1816df['zh']['getPluralForm']=_0x5878de;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -302,20 +302,21 @@ export type ExportWordConverterCustomFormatOptionsV2 = {
302
302
  height?: string;
303
303
  };
304
304
  export type ExportWordConverterCollaborationFeaturesOptionsV2 = {
305
- comment_threads: ExportWordConverterCommentsThreadOptionsV2;
306
- suggestions: ExportWordConverterSuggestionsOptionsV2;
305
+ comment_threads?: ExportWordConverterCommentsThreadOptionsV2;
306
+ suggestions?: ExportWordConverterSuggestionsOptionsV2;
307
307
  };
308
- export type ExportWordConverterCommentsThreadOptionsV2 = {
308
+ export type ExportWordConverterCommentsThreadOptionsV2 = Array<{
309
309
  thread_id: string;
310
310
  is_resolved: boolean;
311
- comments: Array<{
312
- author: string;
313
- created_at: string;
314
- content: string;
315
- }>;
316
- };
311
+ comments: ExportWordConverterCommentsV2;
312
+ }>;
313
+ export type ExportWordConverterCommentsV2 = Array<{
314
+ author: string;
315
+ created_at: Date;
316
+ content: string;
317
+ }>;
317
318
  export type ExportWordConverterSuggestionsOptionsV2 = Array<{
318
319
  id: string;
319
320
  author: string;
320
- created_at: string;
321
+ created_at: Date | null;
321
322
  }>;
@@ -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.7",
3
+ "version": "42.0.0-alpha.8",
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.7"
33
+ "ckeditor5": "42.0.0-alpha.8"
34
34
  },
35
35
  "license": "SEE LICENSE IN LICENSE.md",
36
36
  "author": "CKSource (https://cksource.com/)",
@@ -298,20 +298,21 @@ export type ExportWordConverterCustomFormatOptionsV2 = {
298
298
  height?: string;
299
299
  };
300
300
  export type ExportWordConverterCollaborationFeaturesOptionsV2 = {
301
- comment_threads: ExportWordConverterCommentsThreadOptionsV2;
302
- suggestions: ExportWordConverterSuggestionsOptionsV2;
301
+ comment_threads?: ExportWordConverterCommentsThreadOptionsV2;
302
+ suggestions?: ExportWordConverterSuggestionsOptionsV2;
303
303
  };
304
- export type ExportWordConverterCommentsThreadOptionsV2 = {
304
+ export type ExportWordConverterCommentsThreadOptionsV2 = Array<{
305
305
  thread_id: string;
306
306
  is_resolved: boolean;
307
- comments: Array<{
308
- author: string;
309
- created_at: string;
310
- content: string;
311
- }>;
312
- };
307
+ comments: ExportWordConverterCommentsV2;
308
+ }>;
309
+ export type ExportWordConverterCommentsV2 = Array<{
310
+ author: string;
311
+ created_at: Date;
312
+ content: string;
313
+ }>;
313
314
  export type ExportWordConverterSuggestionsOptionsV2 = Array<{
314
315
  id: string;
315
316
  author: string;
316
- created_at: string;
317
+ created_at: Date | null;
317
318
  }>;
package/src/exportword.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f0b96=_0x5889;function _0x7a52(){const _0x438146=['ExportWord','then','exportWord','953807Cpfncw','920824IgVLIt','registerTokenUrl','4926312PkieOm','pluginName','tokenUrl','init','editor','get','requires','token','commands','_token','350631gMWFFG','add','1779087QoHJUV','1106570UVkNIK','config','plugins','664UZhEnS','7816235CvbsGq','4uoAhie','CloudServices'];_0x7a52=function(){return _0x438146;};return _0x7a52();}function _0x5889(_0xdb23c0,_0x7a0908){const _0x7a5206=_0x7a52();return _0x5889=function(_0x58895d,_0x390eb9){_0x58895d=_0x58895d-0x194;let _0x4617ca=_0x7a5206[_0x58895d];return _0x4617ca;},_0x5889(_0xdb23c0,_0x7a0908);}(function(_0x3eae0e,_0x31ba4e){const _0x3b960f=_0x5889,_0x4ac301=_0x3eae0e();while(!![]){try{const _0x197ac0=parseInt(_0x3b960f(0x1a8))/0x1+parseInt(_0x3b960f(0x1a3))/0x2*(-parseInt(_0x3b960f(0x19d))/0x3)+-parseInt(_0x3b960f(0x1a9))/0x4+-parseInt(_0x3b960f(0x19e))/0x5+-parseInt(_0x3b960f(0x1ab))/0x6+-parseInt(_0x3b960f(0x1a2))/0x7+-parseInt(_0x3b960f(0x1a1))/0x8*(-parseInt(_0x3b960f(0x19b))/0x9);if(_0x197ac0===_0x31ba4e)break;else _0x4ac301['push'](_0x4ac301['shift']());}catch(_0x343f56){_0x4ac301['push'](_0x4ac301['shift']());}}}(_0x7a52,0x95749));import{Plugin as _0x1d1d92}from'ckeditor5/src/core.js';import{Notification as _0x5cdd37}from'ckeditor5/src/ui.js';import _0x2687e6 from'./exportwordcommand.js';import _0x443f3b from'./exportwordui.js';export default class s extends _0x1d1d92{static get[_0x3f0b96(0x1ac)](){const _0x413ff4=_0x3f0b96;return _0x413ff4(0x1a5);}static get[_0x3f0b96(0x197)](){const _0x11881f=_0x3f0b96;return[_0x11881f(0x1a4),_0x5cdd37,_0x443f3b];}[_0x3f0b96(0x194)](){const _0x485ce5=_0x3f0b96,_0x4b1d6f=this[_0x485ce5(0x195)],_0x45f445=_0x4b1d6f[_0x485ce5(0x19f)][_0x485ce5(0x196)](_0x485ce5(0x1a7))||{};_0x4b1d6f[_0x485ce5(0x199)][_0x485ce5(0x19c)](_0x485ce5(0x1a7),new _0x2687e6(_0x4b1d6f));const _0x3a0ac2=_0x4b1d6f[_0x485ce5(0x1a0)][_0x485ce5(0x196)](_0x485ce5(0x1a4));!0x1===_0x45f445[_0x485ce5(0x1ad)]?this[_0x485ce5(0x19a)]=null:_0x45f445[_0x485ce5(0x1ad)]?_0x3a0ac2[_0x485ce5(0x1aa)](_0x45f445[_0x485ce5(0x1ad)])[_0x485ce5(0x1a6)](_0x2c2c31=>{const _0x435a1a=_0x485ce5;this[_0x435a1a(0x19a)]=_0x2c2c31;}):this[_0x485ce5(0x19a)]=_0x3a0ac2[_0x485ce5(0x198)];}}
23
+ const _0x42c53b=_0x26c9;(function(_0xaa3568,_0x1346b8){const _0xb6f2c4=_0x26c9,_0x32bd28=_0xaa3568();while(!![]){try{const _0x353015=-parseInt(_0xb6f2c4(0x123))/0x1*(parseInt(_0xb6f2c4(0x12c))/0x2)+parseInt(_0xb6f2c4(0x122))/0x3*(-parseInt(_0xb6f2c4(0x11f))/0x4)+-parseInt(_0xb6f2c4(0x124))/0x5*(parseInt(_0xb6f2c4(0x121))/0x6)+parseInt(_0xb6f2c4(0x12d))/0x7+-parseInt(_0xb6f2c4(0x11a))/0x8*(-parseInt(_0xb6f2c4(0x11d))/0x9)+parseInt(_0xb6f2c4(0x11e))/0xa+parseInt(_0xb6f2c4(0x125))/0xb;if(_0x353015===_0x1346b8)break;else _0x32bd28['push'](_0x32bd28['shift']());}catch(_0x2a21c8){_0x32bd28['push'](_0x32bd28['shift']());}}}(_0x54a8,0x3f74b));import{Plugin as _0x5ed3ad}from'ckeditor5/src/core.js';import{Notification as _0x2f9d64}from'ckeditor5/src/ui.js';function _0x26c9(_0x361447,_0x5776ca){const _0x54a82c=_0x54a8();return _0x26c9=function(_0x26c968,_0x4b4487){_0x26c968=_0x26c968-0x119;let _0x182d4a=_0x54a82c[_0x26c968];return _0x182d4a;},_0x26c9(_0x361447,_0x5776ca);}import _0x12e5f1 from'./exportwordcommand.js';import _0x5aadb8 from'./exportwordui.js';export default class s extends _0x5ed3ad{static get[_0x42c53b(0x11c)](){const _0x30e8d8=_0x42c53b;return _0x30e8d8(0x126);}static get[_0x42c53b(0x132)](){const _0x56d679=_0x42c53b;return[_0x56d679(0x129),_0x2f9d64,_0x5aadb8];}[_0x42c53b(0x131)](){const _0x21c3a4=_0x42c53b,_0x200553=this[_0x21c3a4(0x127)],_0x3e896a=_0x200553[_0x21c3a4(0x11b)][_0x21c3a4(0x12b)](_0x21c3a4(0x12f))||{};_0x200553[_0x21c3a4(0x12e)][_0x21c3a4(0x120)](_0x21c3a4(0x12f),new _0x12e5f1(_0x200553));const _0x3c8d6d=_0x200553[_0x21c3a4(0x119)][_0x21c3a4(0x12b)](_0x21c3a4(0x129));!0x1===_0x3e896a[_0x21c3a4(0x133)]?this[_0x21c3a4(0x130)]=null:_0x3e896a[_0x21c3a4(0x133)]?_0x3c8d6d[_0x21c3a4(0x134)](_0x3e896a[_0x21c3a4(0x133)])[_0x21c3a4(0x12a)](_0x535048=>{const _0x2324aa=_0x21c3a4;this[_0x2324aa(0x130)]=_0x535048;}):this[_0x21c3a4(0x130)]=_0x3c8d6d[_0x21c3a4(0x128)];}}function _0x54a8(){const _0x224e3d=['2026980WbGPtW','4zcpbpI','add','16278tWGDLi','1266159IFyzoY','1krsCTd','695AjmePi','11347292CjPCvk','ExportWord','editor','token','CloudServices','then','get','527596BBowMy','273511XNvJSX','commands','exportWord','_token','init','requires','tokenUrl','registerTokenUrl','plugins','15240kmxSLJ','config','pluginName','234hnqXJZ'];_0x54a8=function(){return _0x224e3d;};return _0x54a8();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x44efc1}from'ckeditor5/src/core.js';import{getStyles as _0x43e1da,getConverterOptions as _0x3550ff}from'./utils.js';export default class e extends _0x44efc1{constructor(_0x485178){super(_0x485178),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x3538ae={}){const _0x472144=this['editor'],t=_0x472144['t'],_0x40484f=_0x3538ae['version']||0x1,_0x1a22b9=_0x3538ae['converterUrl']||(0x2===_0x40484f?'https://docx-converter.cke-cs.com/v2/convert/docx-html':'https://docx-converter.cke-cs.com/v1/convert'),_0x3d8935=_0x3538ae['converterOptions']||{},_0x3ab4c3=_0x472144['plugins']['get']('ExportWord'),_0x18844d=_0x3538ae['token']||_0x3ab4c3['_token'],_0x29d6c4=!0x1!==_0x3d8935['auto_pagination'],_0x5b8616=_0x3538ae['dataCallback']||(_0x147307=>_0x147307['data']['get']({'pagination':_0x29d6c4}));return this['isBusy']=!0x0,this['refresh'](),_0x43e1da(_0x3538ae['stylesheets']||['EDITOR_STYLES'])['then'](async _0x2ae201=>{_0x472144['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20started'));const _0x2adcf0=await _0x5b8616(_0x472144),_0x3ac04e={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x472144['locale']['contentLanguageDirection']+'\x22>'+_0x2adcf0+'</div>','css':_0x2ae201,[0x2===_0x40484f?'config':'options']:{..._0x3d8935,..._0x3550ff(_0x472144)}},_0x50864a={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0x18844d?{'Authorization':_0x18844d['value']}:null},'body':JSON['stringify'](_0x3ac04e)};return window['fetch'](_0x1a22b9,_0x50864a)['then'](_0x4dd0fb=>{if(0xc8!==_0x4dd0fb['status'])throw _0x4dd0fb;return _0x4dd0fb['blob']();})['then'](_0x265a43=>{_0x472144['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20successful'));const _0x5d31cb='function'==typeof _0x3538ae['fileName']?_0x3538ae['fileName']():_0x3538ae['fileName'];this['_downloadFile'](_0x265a43,_0x5d31cb||'document.docx');});})['catch'](_0x3ced5e=>{const _0x1af50b=_0x472144['plugins']['get']('Notification');throw _0x472144['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20failed'),{'politeness':'assertive'}),_0x1af50b['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0x3ced5e;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x444dee,_0x460dd5){const _0x2b202d=document['createElement']('a');_0x2b202d['href']=window['URL']['createObjectURL'](_0x444dee),_0x2b202d['download']=_0x460dd5,_0x2b202d['click'](),_0x2b202d['remove']();}}
23
+ import{Command as _0x3d2882}from'ckeditor5/src/core.js';import{getStyles as _0x2a6246,getConverterOptions as _0x1bc974,getConverterOptionsV2 as _0x27d933}from'./utils.js';export default class e extends _0x3d2882{constructor(_0x42debb){super(_0x42debb),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x3701e2={}){const _0x243bed=this['editor'],t=_0x243bed['t'],_0x29fee0=0x2===(_0x3701e2['version']||0x1),_0x52c0cb=_0x3701e2['converterUrl']||(_0x29fee0?'https://docx-converter.cke-cs.com/v2/convert/html-docx':'https://docx-converter.cke-cs.com/v1/convert'),_0x4f378a=_0x3701e2['converterOptions']||{},_0x3f5b84=_0x243bed['plugins']['get']('ExportWord'),_0x2a818f=_0x3701e2['token']||_0x3f5b84['_token'],_0x39e5f5=!0x1!==_0x4f378a['auto_pagination'],_0x4db4eb=_0x3701e2['dataCallback']||(_0x57930a=>_0x57930a['data']['get']({'pagination':_0x39e5f5}));return this['isBusy']=!0x0,this['refresh'](),_0x2a6246(_0x3701e2['stylesheets']||['EDITOR_STYLES'])['then'](async _0x44a148=>{_0x243bed['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20started'));const _0x4a168e=await _0x4db4eb(_0x243bed),_0x2fa8b5={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x243bed['locale']['contentLanguageDirection']+'\x22>'+_0x4a168e+'</div>','css':_0x44a148,[_0x29fee0?'config':'options']:{..._0x4f378a,..._0x29fee0?_0x27d933(_0x243bed):_0x1bc974(_0x243bed)}},_0x1f5812={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0x2a818f?{'Authorization':_0x2a818f['value']}:null},'body':JSON['stringify'](_0x2fa8b5)};return window['fetch'](_0x52c0cb,_0x1f5812)['then'](_0x363879=>{if(0xc8!==_0x363879['status'])throw _0x363879;return _0x363879['blob']();})['then'](_0x2136b7=>{_0x243bed['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20successful'));const _0x3323f8='function'==typeof _0x3701e2['fileName']?_0x3701e2['fileName']():_0x3701e2['fileName'];this['_downloadFile'](_0x2136b7,_0x3323f8||'document.docx');});})['catch'](_0x49d9bd=>{const _0x3a081b=_0x243bed['plugins']['get']('Notification');throw _0x243bed['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20failed'),{'politeness':'assertive'}),_0x3a081b['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0x49d9bd;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x669c86,_0x591088){const _0x47f3b1=document['createElement']('a');_0x47f3b1['href']=window['URL']['createObjectURL'](_0x669c86),_0x47f3b1['download']=_0x591088,_0x47f3b1['click'](),_0x47f3b1['remove']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x435974}from'ckeditor5/src/core.js';import{ButtonView as _0x2527af,MenuBarMenuListItemButtonView as _0x52d650,SpinnerView as _0x58321d}from'ckeditor5/src/ui.js';import _0x447130 from'../theme/icons/exportword.svg';export default class i extends _0x435974{static get['pluginName'](){return'ExportWordUI';}['init'](){const _0x2d4173=this['editor'];_0x2d4173['ui']['componentFactory']['add']('exportWord',()=>{const _0x3c05cb=_0x2d4173['commands']['get']('exportWord'),_0x36ba61=this['_createButton'](_0x2527af);return _0x36ba61['set']({'tooltip':!0x0}),_0x36ba61['bind']('isOn')['to'](_0x3c05cb,'isBusy'),_0x36ba61;}),_0x2d4173['ui']['componentFactory']['add']('menuBar:exportWord',()=>this['_createButton'](_0x52d650));}['_createButton'](_0x41327a){const _0xceabdf=this['editor'],_0x277120=_0xceabdf['config']['get']('exportWord')||{},t=_0xceabdf['locale']['t'],_0x2509cb=_0xceabdf['commands']['get']('exportWord'),_0x22a524=new _0x41327a(_0xceabdf['locale']),_0x431e76=new _0x58321d();return _0x22a524['children']['add'](_0x431e76),_0x431e76['bind']('isVisible')['to'](_0x2509cb,'isBusy'),_0x22a524['iconView']['bind']('isVisible')['to'](_0x2509cb,'isBusy',_0x2a2a48=>!_0x2a2a48),_0x22a524['set']({'icon':_0x447130}),_0x22a524['bind']('isEnabled')['to'](_0x2509cb,'isEnabled'),_0x22a524['bind']('label')['to'](_0x2509cb,'isBusy',_0x16981f=>t(_0x16981f?'Exporting\x20Word\x20document':'Export\x20to\x20Word')),this['listenTo'](_0x22a524,'execute',()=>{_0xceabdf['execute']('exportWord',_0x277120),_0xceabdf['editing']['view']['focus']();}),_0x22a524;}}
23
+ import{Plugin as _0x55b86c}from'ckeditor5/src/core.js';import{ButtonView as _0x2d2ed3,MenuBarMenuListItemButtonView as _0x1f5b4a,SpinnerView as _0xe04e6f}from'ckeditor5/src/ui.js';import _0x3869b7 from'../theme/icons/exportword.svg';export default class i extends _0x55b86c{static get['pluginName'](){return'ExportWordUI';}['init'](){const _0x183d5e=this['editor'];_0x183d5e['ui']['componentFactory']['add']('exportWord',()=>{const _0x189a27=_0x183d5e['commands']['get']('exportWord'),_0x147daf=this['_createButton'](_0x2d2ed3);return _0x147daf['set']({'tooltip':!0x0}),_0x147daf['bind']('isOn')['to'](_0x189a27,'isBusy'),_0x147daf;}),_0x183d5e['ui']['componentFactory']['add']('menuBar:exportWord',()=>this['_createButton'](_0x1f5b4a));}['_createButton'](_0x43a6fd){const _0x5a4735=this['editor'],_0x3a0a0a=_0x5a4735['config']['get']('exportWord')||{},t=_0x5a4735['locale']['t'],_0x21cf25=_0x5a4735['commands']['get']('exportWord'),_0xe920a1=new _0x43a6fd(_0x5a4735['locale']),_0x30a381=new _0xe04e6f();return _0xe920a1['children']['add'](_0x30a381),_0x30a381['bind']('isVisible')['to'](_0x21cf25,'isBusy'),_0xe920a1['iconView']['bind']('isVisible')['to'](_0x21cf25,'isBusy',_0x97eec=>!_0x97eec),_0xe920a1['set']({'icon':_0x3869b7}),_0xe920a1['bind']('isEnabled')['to'](_0x21cf25,'isEnabled'),_0xe920a1['bind']('label')['to'](_0x21cf25,'isBusy',_0x404fe7=>t(_0x404fe7?'Exporting\x20Word\x20document':'Export\x20to\x20Word')),this['listenTo'](_0xe920a1,'execute',()=>{_0x5a4735['execute']('exportWord',_0x3a0a0a),_0x5a4735['editing']['view']['focus']();}),_0xe920a1;}}
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x52ac(){var _0x4944ce=['9TyrdJZ','7344918wGCdPg','311546uipYNr','4155xtszCw','247298ffOFiK','25390770YgowaD','4416328zLgQch','4518lOBhkZ','6YzbmZk','70276RyxOwy'];_0x52ac=function(){return _0x4944ce;};return _0x52ac();}(function(_0x15160e,_0x1bc5fc){var _0x14efa0=_0x47dc,_0x3d2b9d=_0x15160e();while(!![]){try{var _0x56b92f=parseInt(_0x14efa0(0x18e))/0x1+parseInt(_0x14efa0(0x190))/0x2+parseInt(_0x14efa0(0x194))/0x3*(-parseInt(_0x14efa0(0x195))/0x4)+parseInt(_0x14efa0(0x18f))/0x5*(-parseInt(_0x14efa0(0x193))/0x6)+-parseInt(_0x14efa0(0x18d))/0x7+-parseInt(_0x14efa0(0x192))/0x8+-parseInt(_0x14efa0(0x196))/0x9*(-parseInt(_0x14efa0(0x191))/0xa);if(_0x56b92f===_0x1bc5fc)break;else _0x3d2b9d['push'](_0x3d2b9d['shift']());}catch(_0x280208){_0x3d2b9d['push'](_0x3d2b9d['shift']());}}}(_0x52ac,0xadd8c));export{default as ExportWord}from'./exportword.js';function _0x47dc(_0xdd1c27,_0x284ea4){var _0x52acc3=_0x52ac();return _0x47dc=function(_0x47dcc6,_0x32c177){_0x47dcc6=_0x47dcc6-0x18d;var _0x4081fc=_0x52acc3[_0x47dcc6];return _0x4081fc;},_0x47dc(_0xdd1c27,_0x284ea4);}import'./augmentation.js';
23
+ (function(_0x366eae,_0x3f559a){var _0x317400=_0x14bf,_0x55f48c=_0x366eae();while(!![]){try{var _0x8ea2a9=-parseInt(_0x317400(0x1ca))/0x1*(parseInt(_0x317400(0x1c5))/0x2)+-parseInt(_0x317400(0x1cd))/0x3+-parseInt(_0x317400(0x1cb))/0x4+-parseInt(_0x317400(0x1c8))/0x5+-parseInt(_0x317400(0x1ce))/0x6+-parseInt(_0x317400(0x1cc))/0x7*(parseInt(_0x317400(0x1c9))/0x8)+-parseInt(_0x317400(0x1c6))/0x9*(-parseInt(_0x317400(0x1c7))/0xa);if(_0x8ea2a9===_0x3f559a)break;else _0x55f48c['push'](_0x55f48c['shift']());}catch(_0x4f9e59){_0x55f48c['push'](_0x55f48c['shift']());}}}(_0x1c3e,0xc1784));function _0x1c3e(){var _0x2c092c=['70wlHhWe','2283207MjfyHR','9332736UDNrYO','10sOxZtq','827784yWnAUv','740PYJDsH','5769910UEwfCV','467720jTpnus','120127DsjUTG','5431920SaDxVa'];_0x1c3e=function(){return _0x2c092c;};return _0x1c3e();}function _0x14bf(_0x1a3251,_0x2cff8f){var _0x1c3ec7=_0x1c3e();return _0x14bf=function(_0x14bf9c,_0x11943e){_0x14bf9c=_0x14bf9c-0x1c5;var _0x2a24d7=_0x1c3ec7[_0x14bf9c];return _0x2a24d7;},_0x14bf(_0x1a3251,_0x2cff8f);}export{default as ExportWord}from'./exportword.js';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(_0x31f1aa,_0x4b0088){const _0x1d00e1=_0x3971,_0x22be4c=_0x31f1aa();while(!![]){try{const _0x4b84c3=parseInt(_0x1d00e1(0xb6))/0x1+parseInt(_0x1d00e1(0xbf))/0x2+-parseInt(_0x1d00e1(0xb9))/0x3+-parseInt(_0x1d00e1(0xc1))/0x4*(parseInt(_0x1d00e1(0x98))/0x5)+-parseInt(_0x1d00e1(0x99))/0x6+parseInt(_0x1d00e1(0xa5))/0x7*(parseInt(_0x1d00e1(0xbb))/0x8)+parseInt(_0x1d00e1(0xc5))/0x9;if(_0x4b84c3===_0x4b0088)break;else _0x22be4c['push'](_0x22be4c['shift']());}catch(_0x56a183){_0x22be4c['push'](_0x22be4c['shift']());}}}(_0x4687,0xbe765));export function getStyles(_0x5809a6){const _0x560c0d=_0x3971;if(!_0x5809a6)return new Promise(_0x34f5d1=>_0x34f5d1(''));const _0x417609=[];for(const _0x4d184d of _0x5809a6)_0x560c0d(0xa9)!==_0x4d184d?_0x417609[_0x560c0d(0xc8)](window[_0x560c0d(0xac)](_0x4d184d)[_0x560c0d(0xb0)](_0x2925d0=>_0x2925d0[_0x560c0d(0xa6)]())):_0x417609[_0x560c0d(0xc8)](f());return Promise[_0x560c0d(0xb8)](_0x417609)[_0x560c0d(0xb0)](_0x46a801=>_0x46a801[_0x560c0d(0xa7)]('\x20')[_0x560c0d(0xa1)]());}function f(){const _0x251ef5=_0x3971,_0x32352b=[],_0x578383=[];for(const _0x63d495 of Array[_0x251ef5(0xbc)](document[_0x251ef5(0xc7)])){if(_0x63d495[_0x251ef5(0xc0)][_0x251ef5(0xa2)](_0x251ef5(0xb5))){for(const _0x1ac862 of Array[_0x251ef5(0xbc)](_0x63d495[_0x251ef5(0xc3)]))-0x1!==_0x1ac862[_0x251ef5(0xc9)][_0x251ef5(0xbe)](_0x251ef5(0xad))?_0x32352b[_0x251ef5(0xc8)](_0x1ac862[_0x251ef5(0xc9)]):-0x1!==_0x1ac862[_0x251ef5(0xc9)][_0x251ef5(0xbe)](_0x251ef5(0xb7))&&_0x578383[_0x251ef5(0xc8)](_0x1ac862[_0x251ef5(0xc9)]);}}return _0x32352b[_0x251ef5(0xa4)]||console[_0x251ef5(0xca)](_0x251ef5(0xcb)),[..._0x578383,..._0x32352b][_0x251ef5(0xa7)]('\x20')[_0x251ef5(0xa1)]();}export function getConverterOptions(_0x3e4ea4){const _0xa1e02e=_0x3971,_0x3ea2e7=_0x3e4ea4[_0xa1e02e(0xa0)][_0xa1e02e(0xbd)](_0xa1e02e(0xc4)),_0x569738=_0x3e4ea4[_0xa1e02e(0xa0)][_0xa1e02e(0xbd)](_0xa1e02e(0xa3)),_0x43dfb9=_0x3e4ea4[_0xa1e02e(0xa0)][_0xa1e02e(0xbd)](_0xa1e02e(0x9f)),_0xae282b={};if(_0x3ea2e7&&_0x569738){const _0x53e52c=getComments(_0x3e4ea4[_0xa1e02e(0xa0)][_0xa1e02e(0x9c)](_0xa1e02e(0xa3))[_0xa1e02e(0xc2)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object[_0xa1e02e(0x97)](_0x53e52c)[_0xa1e02e(0xa4)]&&(_0xae282b[_0xa1e02e(0xaf)]=_0x53e52c);}if(_0x3ea2e7&&_0x43dfb9){const _0x171265=_0x3e4ea4[_0xa1e02e(0xa0)][_0xa1e02e(0x9c)](_0xa1e02e(0x9f)),_0x206c3e=_0x3e4ea4[_0xa1e02e(0xa0)][_0xa1e02e(0x9c)](_0xa1e02e(0xc4)),_0x4164c4=getSuggestions(_0x171265[_0xa1e02e(0xc6)]({'toJSON':!0x0}),_0x206c3e[_0xa1e02e(0xae)]);Object[_0xa1e02e(0x97)](_0x4164c4)[_0xa1e02e(0xa4)]&&(_0xae282b[_0xa1e02e(0x9b)]=_0x4164c4);}return(_0xae282b[_0xa1e02e(0x9b)]||_0xae282b[_0xa1e02e(0xaf)])&&(_0xae282b[_0xa1e02e(0xb1)]=new Intl[(_0xa1e02e(0x9d))]()[_0xa1e02e(0xaa)]()[_0xa1e02e(0xb2)]),_0xae282b;}export function getComments(_0x2cf4f5){const _0x5c0fd0=_0x3971,_0x3086db={};if(!_0x2cf4f5[_0x5c0fd0(0xa4)])return _0x3086db;for(const _0x3692d0 of _0x2cf4f5)_0x3692d0[_0x5c0fd0(0xaf)][_0x5c0fd0(0xab)](_0x232a35=>{const _0x40a108=_0x5c0fd0;void 0x0===_0x3086db[_0x3692d0['id']]&&(_0x3086db[_0x3692d0['id']]=[]),_0x3086db[_0x3692d0['id']][_0x40a108(0xc8)]({'author':_0x232a35[_0x40a108(0xba)][_0x40a108(0xb4)],'content':_0x232a35[_0x40a108(0x9e)],'created':_0x232a35[_0x40a108(0xb3)],'is_resolved':_0x3692d0[_0x40a108(0xa8)]});});return _0x3086db;}function _0x3971(_0xecb2b9,_0x5dfdf3){const _0x468730=_0x4687();return _0x3971=function(_0x397115,_0x2e3e99){_0x397115=_0x397115-0x97;let _0x4bd9f4=_0x468730[_0x397115];return _0x4bd9f4;},_0x3971(_0xecb2b9,_0x5dfdf3);}export function getSuggestions(_0x388f4b,_0x222a52){const _0x1bc23b=_0x3971,_0x360da3={};if(!_0x388f4b[_0x1bc23b(0xa4)]||!_0x222a52[_0x1bc23b(0xa4)])return _0x360da3;for(const _0x116a6e of _0x388f4b)_0x360da3[_0x116a6e['id']]={'author':_0x222a52[_0x1bc23b(0x9c)](_0x116a6e[_0x1bc23b(0x9a)])[_0x1bc23b(0xb4)],'created':_0x116a6e[_0x1bc23b(0xb3)]};return _0x360da3;}function _0x4687(){const _0x4c8570=['name','data-cke','469372gjDYCV',':root','all','2714499bzxldz','author','16NbvhmT','from','has','indexOf','1022772mXLDDE','ownerNode','716536BYuevQ','getCommentThreads','cssRules','Users','4524561jyeGbM','getSuggestions','styleSheets','push','cssText','warn','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.','keys','10sIsrfN','5046870OlDdAe','authorId','suggestions','get','DateTimeFormat','content','TrackChanges','plugins','trim','hasAttribute','CommentsRepository','length','4903122cKCULM','text','join','isResolved','EDITOR_STYLES','resolvedOptions','map','fetch','.ck-content','users','comments','then','timezone','timeZone','createdAt'];_0x4687=function(){return _0x4c8570;};return _0x4687();}
23
+ (function(_0x154796,_0xd7e1a2){const _0x462220=_0xdcd4,_0xce35ca=_0x154796();while(!![]){try{const _0x384690=parseInt(_0x462220(0xb2))/0x1*(-parseInt(_0x462220(0xa6))/0x2)+-parseInt(_0x462220(0x8a))/0x3*(parseInt(_0x462220(0x80))/0x4)+-parseInt(_0x462220(0x9e))/0x5*(parseInt(_0x462220(0x9f))/0x6)+parseInt(_0x462220(0xb7))/0x7+parseInt(_0x462220(0x99))/0x8*(parseInt(_0x462220(0xb6))/0x9)+-parseInt(_0x462220(0x88))/0xa*(-parseInt(_0x462220(0xb4))/0xb)+-parseInt(_0x462220(0xb8))/0xc;if(_0x384690===_0xd7e1a2)break;else _0xce35ca['push'](_0xce35ca['shift']());}catch(_0x598f7f){_0xce35ca['push'](_0xce35ca['shift']());}}}(_0xd9e3,0x5a5c0));export function getStyles(_0x6e1e93){const _0xe37427=_0xdcd4;if(!_0x6e1e93)return new Promise(_0x17c456=>_0x17c456(''));const _0x20833e=[];for(const _0x2fc3f2 of _0x6e1e93)_0xe37427(0xac)!==_0x2fc3f2?_0x20833e[_0xe37427(0x82)](window[_0xe37427(0xa2)](_0x2fc3f2)[_0xe37427(0x8b)](_0x5d615b=>_0x5d615b[_0xe37427(0x8e)]())):_0x20833e[_0xe37427(0x82)](f());return Promise[_0xe37427(0x8f)](_0x20833e)[_0xe37427(0x8b)](_0x46c311=>_0x46c311[_0xe37427(0xb9)]('\x20')[_0xe37427(0x97)]());}function f(){const _0x563b53=_0xdcd4,_0xcd3131=[],_0x61b154=[];for(const _0x35ef39 of Array[_0x563b53(0xb5)](document[_0x563b53(0x86)])){if(_0x35ef39[_0x563b53(0xa3)][_0x563b53(0x85)](_0x563b53(0xb1))){for(const _0xa8fe59 of Array[_0x563b53(0xb5)](_0x35ef39[_0x563b53(0xaa)]))-0x1!==_0xa8fe59[_0x563b53(0x91)][_0x563b53(0xb3)](_0x563b53(0xa1))?_0xcd3131[_0x563b53(0x82)](_0xa8fe59[_0x563b53(0x91)]):-0x1!==_0xa8fe59[_0x563b53(0x91)][_0x563b53(0xb3)](_0x563b53(0xa0))&&_0x61b154[_0x563b53(0x82)](_0xa8fe59[_0x563b53(0x91)]);}}return _0xcd3131[_0x563b53(0x94)]||console[_0x563b53(0x95)](_0x563b53(0x9a)),[..._0x61b154,..._0xcd3131][_0x563b53(0xb9)]('\x20')[_0x563b53(0x97)]();}function _0xdcd4(_0xb46b13,_0x5b1964){const _0xd9e329=_0xd9e3();return _0xdcd4=function(_0xdcd4f2,_0x28e665){_0xdcd4f2=_0xdcd4f2-0x80;let _0x5d6fdd=_0xd9e329[_0xdcd4f2];return _0x5d6fdd;},_0xdcd4(_0xb46b13,_0x5b1964);}export function getConverterOptions(_0x2f1573){const _0x3042d8=_0xdcd4,_0x970e3c=_0x2f1573[_0x3042d8(0x81)][_0x3042d8(0xa8)](_0x3042d8(0x8d)),_0x433fd6=_0x2f1573[_0x3042d8(0x81)][_0x3042d8(0xa8)](_0x3042d8(0x83)),_0xb0a6e0=_0x2f1573[_0x3042d8(0x81)][_0x3042d8(0xa8)](_0x3042d8(0x84)),_0x5aa5bb={};if(_0x970e3c&&_0x433fd6){const _0xcb3086=getComments(_0x2f1573[_0x3042d8(0x81)][_0x3042d8(0x9d)](_0x3042d8(0x83))[_0x3042d8(0xab)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object[_0x3042d8(0x89)](_0xcb3086)[_0x3042d8(0x94)]&&(_0x5aa5bb[_0x3042d8(0xa5)]=_0xcb3086);}if(_0x970e3c&&_0xb0a6e0){const _0x3c1e9e=_0x2f1573[_0x3042d8(0x81)][_0x3042d8(0x9d)](_0x3042d8(0x84)),_0x3b0a10=_0x2f1573[_0x3042d8(0x81)][_0x3042d8(0x9d)](_0x3042d8(0x8d)),_0x982b38=getSuggestions(_0x3c1e9e[_0x3042d8(0xae)]({'toJSON':!0x0}),_0x3b0a10[_0x3042d8(0x98)]);Object[_0x3042d8(0x89)](_0x982b38)[_0x3042d8(0x94)]&&(_0x5aa5bb[_0x3042d8(0xaf)]=_0x982b38);}return(_0x5aa5bb[_0x3042d8(0xaf)]||_0x5aa5bb[_0x3042d8(0xa5)])&&(_0x5aa5bb[_0x3042d8(0xa7)]=new Intl[(_0x3042d8(0x87))]()[_0x3042d8(0x93)]()[_0x3042d8(0x96)]),_0x5aa5bb;}export function getComments(_0x8cb354){const _0x804a7e=_0xdcd4,_0x31aa37={};if(!_0x8cb354[_0x804a7e(0x94)])return _0x31aa37;for(const _0xadb656 of _0x8cb354)_0xadb656[_0x804a7e(0xa5)][_0x804a7e(0xa4)](_0x8caa3d=>{const _0x110fd2=_0x804a7e;void 0x0===_0x31aa37[_0xadb656['id']]&&(_0x31aa37[_0xadb656['id']]=[]),_0x31aa37[_0xadb656['id']][_0x110fd2(0x82)]({'author':_0x8caa3d[_0x110fd2(0xad)][_0x110fd2(0x90)],'content':_0x8caa3d[_0x110fd2(0x8c)],'created':_0x8caa3d[_0x110fd2(0xa9)],'is_resolved':_0xadb656[_0x110fd2(0xb0)]});});return _0x31aa37;}export function getSuggestions(_0x29d99b,_0x321229){const _0x10a3d6=_0xdcd4,_0x6d7651={};if(!_0x29d99b[_0x10a3d6(0x94)]||!_0x321229[_0x10a3d6(0x94)])return _0x6d7651;for(const _0x28c668 of _0x29d99b)_0x6d7651[_0x28c668['id']]={'author':_0x321229[_0x10a3d6(0x9d)](_0x28c668[_0x10a3d6(0x9c)])[_0x10a3d6(0x90)],'created':_0x28c668[_0x10a3d6(0xa9)]};return _0x6d7651;}export function getConverterOptionsV2(_0x1348f3){const _0x3a3202=_0xdcd4,_0x4c3b3f=_0x1348f3[_0x3a3202(0x81)][_0x3a3202(0xa8)](_0x3a3202(0x8d)),_0x364093=_0x1348f3[_0x3a3202(0x81)][_0x3a3202(0xa8)](_0x3a3202(0x83)),_0x5de77d=_0x1348f3[_0x3a3202(0x81)][_0x3a3202(0xa8)](_0x3a3202(0x84)),_0x52a9a7={},_0x5b6281={};if(_0x4c3b3f&&_0x364093){const _0x4b0c11=getCommentsV2(_0x1348f3[_0x3a3202(0x81)][_0x3a3202(0x9d)](_0x3a3202(0x83))[_0x3a3202(0xab)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));_0x4b0c11[_0x3a3202(0x94)]&&(_0x5b6281[_0x3a3202(0x92)]=_0x4b0c11);}if(_0x4c3b3f&&_0x5de77d){const _0xe07c69=_0x1348f3[_0x3a3202(0x81)][_0x3a3202(0x9d)](_0x3a3202(0x84)),_0x20f264=_0x1348f3[_0x3a3202(0x81)][_0x3a3202(0x9d)](_0x3a3202(0x8d)),_0x4f3983=getSuggestionsV2(_0xe07c69[_0x3a3202(0xae)]({'toJSON':!0x0}),_0x20f264[_0x3a3202(0x98)]);_0x4f3983[_0x3a3202(0x94)]&&(_0x5b6281[_0x3a3202(0xaf)]=_0x4f3983);}return(_0x5b6281[_0x3a3202(0x92)]||_0x5b6281[_0x3a3202(0xaf)])&&(_0x52a9a7[_0x3a3202(0xa7)]=new Intl[(_0x3a3202(0x87))]()[_0x3a3202(0x93)]()[_0x3a3202(0x96)],_0x52a9a7[_0x3a3202(0x9b)]=_0x5b6281),_0x52a9a7;}function _0xd9e3(){const _0x3cfb36=['hasAttribute','styleSheets','DateTimeFormat','10UsVMqn','keys','63CRlgJg','then','content','Users','text','all','name','cssText','comment_threads','resolvedOptions','length','warn','timeZone','trim','users','22336ATHsvy','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.','collaboration_features','authorId','get','10sUbHCe','1434486NuYGJF',':root','.ck-content','fetch','ownerNode','map','comments','10DVGHcW','timezone','has','createdAt','cssRules','getCommentThreads','EDITOR_STYLES','author','getSuggestions','suggestions','isResolved','data-cke','34309ylKJVy','indexOf','7357779aABefI','from','2133GRqsVQ','83944WbHCfp','3328620wzLlxR','join','8644NrBYOa','plugins','push','CommentsRepository','TrackChanges'];_0xd9e3=function(){return _0x3cfb36;};return _0xd9e3();}export function getCommentsV2(_0x50a5b4){const _0x2ba89d=_0xdcd4,_0x121872=[];if(!_0x50a5b4[_0x2ba89d(0x94)])return _0x121872;for(const _0x32cb7b of _0x50a5b4){const _0x1dfe82=_0x32cb7b[_0x2ba89d(0xa5)][_0x2ba89d(0xa4)](_0xa39d1=>({'author':_0xa39d1[_0x2ba89d(0xad)][_0x2ba89d(0x90)],'content':_0xa39d1[_0x2ba89d(0x8c)],'created_at':_0xa39d1[_0x2ba89d(0xa9)]}));_0x121872[_0x2ba89d(0x82)]({'thread_id':_0x32cb7b['id'],'is_resolved':_0x32cb7b[_0x2ba89d(0xb0)],'comments':_0x1dfe82});}return _0x121872;}export function getSuggestionsV2(_0x34ed67,_0x59f114){const _0x136570=_0xdcd4;return _0x34ed67[_0x136570(0x94)]&&_0x59f114[_0x136570(0x94)]?_0x34ed67[_0x136570(0xa4)](_0x352ccd=>({'id':_0x352ccd['id'],'author':_0x59f114[_0x136570(0x9d)](_0x352ccd[_0x136570(0x9c)])[_0x136570(0x90)],'created_at':_0x352ccd[_0x136570(0xa9)]})):[];}