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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) 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 +4 -7
  95. package/package.json +2 -2
  96. package/src/exportword.d.ts +4 -7
  97. package/src/exportword.js +1 -1
  98. package/src/exportwordcommand.js +1 -1
  99. package/src/exportwordui.js +1 -1
  100. package/src/index.js +1 -1
  101. package/src/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x3e79e6=>{const {'zh-cn':{dictionary:_0x499023,getPluralForm:_0x643654}}={'zh-cn':{'dictionary':{'Export\x20to\x20Word':'导出Word文档','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'生成Word文档时发生了异常。','Word\x20document\x20export\x20started':'Word\x20文档导出开始','Word\x20document\x20export\x20failed':'Word\x20文档导出失败','Word\x20document\x20export\x20successful':'Word\x20文档导出成功','Exporting\x20Word\x20document':'正在导出\x20Word\x20文档'},'getPluralForm':_0x4a7b4d=>0x0}};_0x3e79e6['zh-cn']||={'dictionary':{},'getPluralForm':null},_0x3e79e6['zh-cn']['dictionary']=Object['assign'](_0x3e79e6['zh-cn']['dictionary'],_0x499023),_0x3e79e6['zh-cn']['getPluralForm']=_0x643654;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x6d8903=>{const {'zh-cn':{dictionary:_0x511f0f,getPluralForm:_0x3482b0}}={'zh-cn':{'dictionary':{'Export\x20to\x20Word':'导出Word文档','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'生成Word文档时发生了异常。','Word\x20document\x20export\x20started':'Word\x20文档导出开始','Word\x20document\x20export\x20failed':'Word\x20文档导出失败','Word\x20document\x20export\x20successful':'Word\x20文档导出成功','Exporting\x20Word\x20document':'正在导出\x20Word\x20文档'},'getPluralForm':_0x518f50=>0x0}};_0x6d8903['zh-cn']||={'dictionary':{},'getPluralForm':null},_0x6d8903['zh-cn']['dictionary']=Object['assign'](_0x6d8903['zh-cn']['dictionary'],_0x511f0f),_0x6d8903['zh-cn']['getPluralForm']=_0x3482b0;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default{'zh':{'dictionary':{'Export\x20to\x20Word':'匯出到\x20Word','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'產生\x20Word\x20檔案時出錯。','Word\x20document\x20export\x20started':'Word\x20文件匯出開始','Word\x20document\x20export\x20failed':'Word\x20文件匯出失敗','Word\x20document\x20export\x20successful':'Word\x20文件匯出成功','Exporting\x20Word\x20document':'正在匯出\x20Word\x20文件'},'getPluralForm':_0x12de1d=>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':_0x5b5704=>0x0}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x21b96f=>{const {zh:{dictionary:_0x240a55,getPluralForm:_0x199e95}}={'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':_0x28b209=>0x0}};_0x21b96f['zh']||={'dictionary':{},'getPluralForm':null},_0x21b96f['zh']['dictionary']=Object['assign'](_0x21b96f['zh']['dictionary'],_0x240a55),_0x21b96f['zh']['getPluralForm']=_0x199e95;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0xad643c=>{const {zh:{dictionary:_0x34b074,getPluralForm:_0x69cc2}}={'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':_0x4ce53f=>0x0}};_0xad643c['zh']||={'dictionary':{},'getPluralForm':null},_0xad643c['zh']['dictionary']=Object['assign'](_0xad643c['zh']['dictionary'],_0x34b074),_0xad643c['zh']['getPluralForm']=_0x69cc2;})(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
  * }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-export-word",
3
- "version": "42.0.0-alpha.9",
3
+ "version": "42.0.1-alpha.0",
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.9"
33
+ "ckeditor5": "42.0.1-alpha.0"
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
  * }
package/src/exportword.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf9c7a9=_0x656d;(function(_0x1feed0,_0x1f93e8){const _0xc92823=_0x656d,_0x20ed1b=_0x1feed0();while(!![]){try{const _0x35ea7f=parseInt(_0xc92823(0x19d))/0x1+-parseInt(_0xc92823(0x192))/0x2*(parseInt(_0xc92823(0x193))/0x3)+-parseInt(_0xc92823(0x190))/0x4+parseInt(_0xc92823(0x19e))/0x5+-parseInt(_0xc92823(0x19b))/0x6*(parseInt(_0xc92823(0x18d))/0x7)+-parseInt(_0xc92823(0x1a1))/0x8*(parseInt(_0xc92823(0x1a6))/0x9)+parseInt(_0xc92823(0x1a3))/0xa;if(_0x35ea7f===_0x1f93e8)break;else _0x20ed1b['push'](_0x20ed1b['shift']());}catch(_0x325149){_0x20ed1b['push'](_0x20ed1b['shift']());}}}(_0x1e34,0x3b4ef));function _0x1e34(){const _0x5c88ac=['267668FmrnYz','1098675bTBjLo','config','editor','128oVzVMg','tokenUrl','9132850CcbYJg','ExportWord','exportWord','153378CxSSsf','then','76643eGpIqv','token','plugins','1343088HLAlhx','pluginName','138178hBJdLT','21FOqOZX','commands','init','_token','add','registerTokenUrl','requires','get','36jOzWFh','CloudServices'];_0x1e34=function(){return _0x5c88ac;};return _0x1e34();}import{Plugin as _0x1c5306}from'ckeditor5/src/core.js';function _0x656d(_0x2d2b98,_0x23371f){const _0x1e34b4=_0x1e34();return _0x656d=function(_0x656de2,_0x281f7a){_0x656de2=_0x656de2-0x18c;let _0x58e9b7=_0x1e34b4[_0x656de2];return _0x58e9b7;},_0x656d(_0x2d2b98,_0x23371f);}import{Notification as _0x290ae0}from'ckeditor5/src/ui.js';import _0x46aee6 from'./exportwordcommand.js';import _0x203f53 from'./exportwordui.js';export default class s extends _0x1c5306{static get[_0xf9c7a9(0x191)](){const _0x51dcfa=_0xf9c7a9;return _0x51dcfa(0x1a4);}static get[_0xf9c7a9(0x199)](){const _0x39a223=_0xf9c7a9;return[_0x39a223(0x19c),_0x290ae0,_0x203f53];}[_0xf9c7a9(0x195)](){const _0x518938=_0xf9c7a9,_0x1027aa=this[_0x518938(0x1a0)],_0x546e8b=_0x1027aa[_0x518938(0x19f)][_0x518938(0x19a)](_0x518938(0x1a5))||{};_0x1027aa[_0x518938(0x194)][_0x518938(0x197)](_0x518938(0x1a5),new _0x46aee6(_0x1027aa));const _0x126010=_0x1027aa[_0x518938(0x18f)][_0x518938(0x19a)](_0x518938(0x19c));!0x1===_0x546e8b[_0x518938(0x1a2)]?this[_0x518938(0x196)]=null:_0x546e8b[_0x518938(0x1a2)]?_0x126010[_0x518938(0x198)](_0x546e8b[_0x518938(0x1a2)])[_0x518938(0x18c)](_0x30b031=>{const _0x514321=_0x518938;this[_0x514321(0x196)]=_0x30b031;}):this[_0x518938(0x196)]=_0x126010[_0x518938(0x18e)];}}
23
+ const _0x74dd15=_0x2a99;(function(_0x411b72,_0x26c36c){const _0x155616=_0x2a99,_0x4225db=_0x411b72();while(!![]){try{const _0x8e8860=-parseInt(_0x155616(0x1c6))/0x1*(-parseInt(_0x155616(0x1cd))/0x2)+-parseInt(_0x155616(0x1c5))/0x3+parseInt(_0x155616(0x1ce))/0x4*(-parseInt(_0x155616(0x1be))/0x5)+-parseInt(_0x155616(0x1c0))/0x6*(parseInt(_0x155616(0x1bf))/0x7)+parseInt(_0x155616(0x1b8))/0x8*(-parseInt(_0x155616(0x1b7))/0x9)+parseInt(_0x155616(0x1b9))/0xa*(parseInt(_0x155616(0x1b5))/0xb)+parseInt(_0x155616(0x1c9))/0xc;if(_0x8e8860===_0x26c36c)break;else _0x4225db['push'](_0x4225db['shift']());}catch(_0x52e55c){_0x4225db['push'](_0x4225db['shift']());}}}(_0x2069,0xc08cd));import{Plugin as _0xe6eb07}from'ckeditor5/src/core.js';import{Notification as _0x111200}from'ckeditor5/src/ui.js';import _0x2ce442 from'./exportwordcommand.js';import _0x160c70 from'./exportwordui.js';function _0x2a99(_0x4f15df,_0x5d9d92){const _0x20692e=_0x2069();return _0x2a99=function(_0x2a99b8,_0x382b7a){_0x2a99b8=_0x2a99b8-0x1b3;let _0x1107d4=_0x20692e[_0x2a99b8];return _0x1107d4;},_0x2a99(_0x4f15df,_0x5d9d92);}function _0x2069(){const _0x4e6e0c=['pluginName','140319PPjKVw','584bDnvSi','14336510OhKOyL','_token','then','ExportWord','config','6391635TphtRO','343ThZSUe','8964XDDiVc','add','exportWord','token','init','994221YjRMyK','4IeCMZN','plugins','editor','17361516wFLBXW','CloudServices','requires','tokenUrl','364662mQlPoK','4MLbXvi','registerTokenUrl','commands','get','11PverId'];_0x2069=function(){return _0x4e6e0c;};return _0x2069();}export default class s extends _0xe6eb07{static get[_0x74dd15(0x1b6)](){const _0xc0018f=_0x74dd15;return _0xc0018f(0x1bc);}static get[_0x74dd15(0x1cb)](){const _0x6386f0=_0x74dd15;return[_0x6386f0(0x1ca),_0x111200,_0x160c70];}[_0x74dd15(0x1c4)](){const _0x2af399=_0x74dd15,_0x4a860e=this[_0x2af399(0x1c8)],_0x3b2373=_0x4a860e[_0x2af399(0x1bd)][_0x2af399(0x1b4)](_0x2af399(0x1c2))||{};_0x4a860e[_0x2af399(0x1b3)][_0x2af399(0x1c1)](_0x2af399(0x1c2),new _0x2ce442(_0x4a860e));const _0x25381a=_0x4a860e[_0x2af399(0x1c7)][_0x2af399(0x1b4)](_0x2af399(0x1ca));!0x1===_0x3b2373[_0x2af399(0x1cc)]?this[_0x2af399(0x1ba)]=null:_0x3b2373[_0x2af399(0x1cc)]?_0x25381a[_0x2af399(0x1cf)](_0x3b2373[_0x2af399(0x1cc)])[_0x2af399(0x1bb)](_0x22412d=>{const _0x32652e=_0x2af399;this[_0x32652e(0x1ba)]=_0x22412d;}):this[_0x2af399(0x1ba)]=_0x25381a[_0x2af399(0x1c3)];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x55a202}from'ckeditor5/src/core.js';import{getStyles as _0xa2d4ca,getConverterOptions as _0x24cbb5,getConverterOptionsV2 as _0x14fb1a}from'./utils.js';export default class e extends _0x55a202{constructor(_0x2903f2){super(_0x2903f2),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0xa6af52={}){const _0x10e2aa=this['editor'],t=_0x10e2aa['t'],_0x1401e6=0x2===(_0xa6af52['version']||0x1),_0x341fff=_0xa6af52['converterUrl']||(_0x1401e6?'https://docx-converter.cke-cs.com/v2/convert/html-docx':'https://docx-converter.cke-cs.com/v1/convert'),_0x1a868a=_0xa6af52['converterOptions']||{},_0x399e35=_0x10e2aa['plugins']['get']('ExportWord'),_0x23d856=_0xa6af52['token']||_0x399e35['_token'],_0x4b5504=!0x1!==_0x1a868a['auto_pagination'],_0x328735=_0xa6af52['dataCallback']||(_0x37943a=>_0x37943a['data']['get']({'pagination':_0x4b5504}));return this['isBusy']=!0x0,this['refresh'](),_0xa2d4ca(_0xa6af52['stylesheets']||['EDITOR_STYLES'])['then'](async _0x1488ff=>{_0x10e2aa['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20started'));const _0x5b48d8=await _0x328735(_0x10e2aa),_0x3b8f79={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x10e2aa['locale']['contentLanguageDirection']+'\x22>'+_0x5b48d8+'</div>','css':_0x1488ff,[_0x1401e6?'config':'options']:{..._0x1a868a,..._0x1401e6?_0x14fb1a(_0x10e2aa):_0x24cbb5(_0x10e2aa)}},_0x56bc2e={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0x23d856?{'Authorization':_0x23d856['value']}:null},'body':JSON['stringify'](_0x3b8f79)};return window['fetch'](_0x341fff,_0x56bc2e)['then'](_0x86eb4a=>{if(0xc8!==_0x86eb4a['status'])throw _0x86eb4a;return _0x86eb4a['blob']();})['then'](_0x5a4057=>{_0x10e2aa['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20successful'));const _0x3cd425='function'==typeof _0xa6af52['fileName']?_0xa6af52['fileName']():_0xa6af52['fileName'];this['_downloadFile'](_0x5a4057,_0x3cd425||'document.docx');});})['catch'](_0x31a112=>{const _0x5a607a=_0x10e2aa['plugins']['get']('Notification');throw _0x10e2aa['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20failed'),{'politeness':'assertive'}),_0x5a607a['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0x31a112;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x561d2d,_0xa332e7){const _0xbc656b=document['createElement']('a');_0xbc656b['href']=window['URL']['createObjectURL'](_0x561d2d),_0xbc656b['download']=_0xa332e7,_0xbc656b['click'](),_0xbc656b['remove']();}}
23
+ import{Command as _0x3f5240}from'ckeditor5/src/core.js';import{getStyles as _0x48fe6a,getConverterOptions as _0x34f039,getConverterOptionsV2 as _0x3b2f5e}from'./utils.js';export default class e extends _0x3f5240{constructor(_0x149e46){super(_0x149e46),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x13fc7e={}){const _0x1f1c85=this['editor'],t=_0x1f1c85['t'],_0x90fc59=0x2===(_0x13fc7e['version']||0x1),_0x226782=_0x13fc7e['converterUrl']||(_0x90fc59?'https://docx-converter.cke-cs.com/v2/convert/html-docx':'https://docx-converter.cke-cs.com/v1/convert'),_0x5ff326=_0x13fc7e['converterOptions']||{},_0x50673d=_0x1f1c85['plugins']['get']('ExportWord'),_0x3a3805=_0x13fc7e['token']||_0x50673d['_token'],_0x580932=!0x1!==_0x5ff326['auto_pagination'],_0x58698d=_0x13fc7e['dataCallback']||(_0x687663=>_0x687663['data']['get']({'pagination':_0x580932}));return this['isBusy']=!0x0,this['refresh'](),_0x48fe6a(_0x13fc7e['stylesheets']||['EDITOR_STYLES'])['then'](async _0x156cac=>{_0x1f1c85['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20started'));const _0x14fb91=await _0x58698d(_0x1f1c85),_0x1c2287={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x1f1c85['locale']['contentLanguageDirection']+'\x22>'+_0x14fb91+'</div>','css':_0x156cac,[_0x90fc59?'config':'options']:{..._0x5ff326,..._0x90fc59?_0x3b2f5e(_0x1f1c85):_0x34f039(_0x1f1c85)}},_0x488194={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0x3a3805?{'Authorization':_0x3a3805['value']}:null},'body':JSON['stringify'](_0x1c2287)};return window['fetch'](_0x226782,_0x488194)['then'](_0x50cb1e=>{if(0xc8!==_0x50cb1e['status'])throw _0x50cb1e;return _0x50cb1e['blob']();})['then'](_0x2880ab=>{_0x1f1c85['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20successful'));const _0x2e9e27='function'==typeof _0x13fc7e['fileName']?_0x13fc7e['fileName']():_0x13fc7e['fileName'];this['_downloadFile'](_0x2880ab,_0x2e9e27||'document.docx');});})['catch'](_0x2a62b5=>{const _0x583be4=_0x1f1c85['plugins']['get']('Notification');throw _0x1f1c85['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20failed'),{'politeness':'assertive'}),_0x583be4['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0x2a62b5;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x459d89,_0x1a95eb){const _0x5ca907=document['createElement']('a');_0x5ca907['href']=window['URL']['createObjectURL'](_0x459d89),_0x5ca907['download']=_0x1a95eb,_0x5ca907['click'](),_0x5ca907['remove']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x23ea6e}from'ckeditor5/src/core.js';import{ButtonView as _0x1ec3e1,MenuBarMenuListItemButtonView as _0xa0de23,SpinnerView as _0x5aa9ae}from'ckeditor5/src/ui.js';import _0x41b2e7 from'../theme/icons/exportword.svg';export default class i extends _0x23ea6e{static get['pluginName'](){return'ExportWordUI';}['init'](){const _0x2c91c5=this['editor'];_0x2c91c5['ui']['componentFactory']['add']('exportWord',()=>{const _0x3d461c=_0x2c91c5['commands']['get']('exportWord'),_0x2f83d1=this['_createButton'](_0x1ec3e1);return _0x2f83d1['set']({'tooltip':!0x0}),_0x2f83d1['bind']('isOn')['to'](_0x3d461c,'isBusy'),_0x2f83d1;}),_0x2c91c5['ui']['componentFactory']['add']('menuBar:exportWord',()=>this['_createButton'](_0xa0de23));}['_createButton'](_0x419370){const _0x1ca881=this['editor'],_0xbc2ff=_0x1ca881['config']['get']('exportWord')||{},t=_0x1ca881['locale']['t'],_0x357d41=_0x1ca881['commands']['get']('exportWord'),_0x357fdb=new _0x419370(_0x1ca881['locale']),_0x484a9c=new _0x5aa9ae();return _0x357fdb['children']['add'](_0x484a9c),_0x484a9c['bind']('isVisible')['to'](_0x357d41,'isBusy'),_0x357fdb['iconView']['bind']('isVisible')['to'](_0x357d41,'isBusy',_0x44d630=>!_0x44d630),_0x357fdb['set']({'icon':_0x41b2e7}),_0x357fdb['bind']('isEnabled')['to'](_0x357d41,'isEnabled'),_0x357fdb['bind']('label')['to'](_0x357d41,'isBusy',_0x57eec1=>t(_0x57eec1?'Exporting\x20Word\x20document':'Export\x20to\x20Word')),this['listenTo'](_0x357fdb,'execute',()=>{_0x1ca881['execute']('exportWord',_0xbc2ff),_0x1ca881['editing']['view']['focus']();}),_0x357fdb;}}
23
+ import{Plugin as _0x986795}from'ckeditor5/src/core.js';import{ButtonView as _0x30a3c2,MenuBarMenuListItemButtonView as _0x2f8c3d,SpinnerView as _0xe64cd8}from'ckeditor5/src/ui.js';import _0x53a64b from'../theme/icons/exportword.svg';export default class i extends _0x986795{static get['pluginName'](){return'ExportWordUI';}['init'](){const _0x363f4b=this['editor'];_0x363f4b['ui']['componentFactory']['add']('exportWord',()=>{const _0x47b9fc=_0x363f4b['commands']['get']('exportWord'),_0x578556=this['_createButton'](_0x30a3c2);return _0x578556['set']({'tooltip':!0x0}),_0x578556['bind']('isOn')['to'](_0x47b9fc,'isBusy'),_0x578556;}),_0x363f4b['ui']['componentFactory']['add']('menuBar:exportWord',()=>this['_createButton'](_0x2f8c3d));}['_createButton'](_0x224c7e){const _0x3eccab=this['editor'],_0x27cdee=_0x3eccab['config']['get']('exportWord')||{},t=_0x3eccab['locale']['t'],_0x2e0934=_0x3eccab['commands']['get']('exportWord'),_0x521e8c=new _0x224c7e(_0x3eccab['locale']),_0xd43549=new _0xe64cd8();return _0x521e8c['children']['add'](_0xd43549),_0xd43549['bind']('isVisible')['to'](_0x2e0934,'isBusy'),_0x521e8c['iconView']['bind']('isVisible')['to'](_0x2e0934,'isBusy',_0x2282b1=>!_0x2282b1),_0x521e8c['set']({'icon':_0x53a64b}),_0x521e8c['bind']('isEnabled')['to'](_0x2e0934,'isEnabled'),_0x521e8c['bind']('label')['to'](_0x2e0934,'isBusy',_0x3e2ca6=>t(_0x3e2ca6?'Exporting\x20Word\x20document':'Export\x20to\x20Word')),this['listenTo'](_0x521e8c,'execute',()=>{_0x3eccab['execute']('exportWord',_0x27cdee),_0x3eccab['editing']['view']['focus']();}),_0x521e8c;}}
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x3338fc,_0x417d93){var _0x3c9c28=_0x3004,_0x23caf1=_0x3338fc();while(!![]){try{var _0x14a047=-parseInt(_0x3c9c28(0x11b))/0x1+parseInt(_0x3c9c28(0x120))/0x2*(parseInt(_0x3c9c28(0x11e))/0x3)+-parseInt(_0x3c9c28(0x11d))/0x4+parseInt(_0x3c9c28(0x11c))/0x5+parseInt(_0x3c9c28(0x11a))/0x6*(parseInt(_0x3c9c28(0x118))/0x7)+-parseInt(_0x3c9c28(0x121))/0x8*(parseInt(_0x3c9c28(0x119))/0x9)+-parseInt(_0x3c9c28(0x11f))/0xa*(-parseInt(_0x3c9c28(0x122))/0xb);if(_0x14a047===_0x417d93)break;else _0x23caf1['push'](_0x23caf1['shift']());}catch(_0x3231a5){_0x23caf1['push'](_0x23caf1['shift']());}}}(_0x599d,0x4d864));function _0x599d(){var _0x3186dd=['1888010riMoHP','1350088cFrqLu','296115YEZuyA','1730tnewhe','4dscqGw','2304392hRRriU','13563MpqCXw','2933qRKDoE','9NGmYQo','8916yrOvfb','467844suWRRy'];_0x599d=function(){return _0x3186dd;};return _0x599d();}function _0x3004(_0x2d485c,_0xbc6ab8){var _0x599d3e=_0x599d();return _0x3004=function(_0x300414,_0x24cfb1){_0x300414=_0x300414-0x118;var _0xbc0e0a=_0x599d3e[_0x300414];return _0xbc0e0a;},_0x3004(_0x2d485c,_0xbc6ab8);}export{default as ExportWord}from'./exportword.js';import'./augmentation.js';
23
+ (function(_0x5dedb0,_0xe392fb){var _0x28ef0f=_0x5bae,_0x2808d5=_0x5dedb0();while(!![]){try{var _0x28de6d=-parseInt(_0x28ef0f(0xc1))/0x1*(parseInt(_0x28ef0f(0xc3))/0x2)+parseInt(_0x28ef0f(0xc8))/0x3*(-parseInt(_0x28ef0f(0xc4))/0x4)+-parseInt(_0x28ef0f(0xc6))/0x5*(-parseInt(_0x28ef0f(0xc9))/0x6)+parseInt(_0x28ef0f(0xc5))/0x7+parseInt(_0x28ef0f(0xbf))/0x8*(parseInt(_0x28ef0f(0xc0))/0x9)+-parseInt(_0x28ef0f(0xbe))/0xa+parseInt(_0x28ef0f(0xc7))/0xb*(parseInt(_0x28ef0f(0xc2))/0xc);if(_0x28de6d===_0xe392fb)break;else _0x2808d5['push'](_0x2808d5['shift']());}catch(_0x112975){_0x2808d5['push'](_0x2808d5['shift']());}}}(_0x52a6,0x6eadc));export{default as ExportWord}from'./exportword.js';function _0x5bae(_0x147b79,_0x3e896e){var _0x52a6ea=_0x52a6();return _0x5bae=function(_0x5bae85,_0x2f6681){_0x5bae85=_0x5bae85-0xbe;var _0x560662=_0x52a6ea[_0x5bae85];return _0x560662;},_0x5bae(_0x147b79,_0x3e896e);}function _0x52a6(){var _0x52f917=['94712RBVcwj','549PWHwpr','4CjiAUF','24TjQWLq','270190AHVQrP','1272SKEHGY','1665972HViUSn','43630hpJcfs','1058156YodQWa','3657pOwJab','348RvSZwS','2773130HaJQwi'];_0x52a6=function(){return _0x52f917;};return _0x52a6();}import'./augmentation.js';
package/src/utils.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x5329d3,_0x577b44){const _0x4cec4a=_0xb494,_0xa4cb78=_0x5329d3();while(!![]){try{const _0x1428bf=parseInt(_0x4cec4a(0x20b))/0x1*(parseInt(_0x4cec4a(0x204))/0x2)+-parseInt(_0x4cec4a(0x219))/0x3+parseInt(_0x4cec4a(0x20c))/0x4*(parseInt(_0x4cec4a(0x1f1))/0x5)+-parseInt(_0x4cec4a(0x1fc))/0x6+-parseInt(_0x4cec4a(0x21a))/0x7+parseInt(_0x4cec4a(0x1eb))/0x8+parseInt(_0x4cec4a(0x1ef))/0x9;if(_0x1428bf===_0x577b44)break;else _0xa4cb78['push'](_0xa4cb78['shift']());}catch(_0x9c8435){_0xa4cb78['push'](_0xa4cb78['shift']());}}}(_0x35cc,0xb3091));function _0x35cc(){const _0xf28980=['text','getCommentThreads','trim','8288dhvxyn','indexOf','cssRules','suggestions','data-cke','has','Users','56MQeMlp','106564lmYlNZ','get','hasAttribute','all','then','comment_threads','push','content',':root','CommentsRepository','isResolved','from','authorId','2239335gTZgFJ','6858404GqdnCy','length','styleSheets','TrackChanges','ownerNode','getSuggestions','fetch','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.','9372776YFxkDQ','name','.ck-content','keys','14031324ZszOYQ','timezone','90xkGRhi','timeZone','createdAt','plugins','join','map','cssText','resolvedOptions','DateTimeFormat','author','comments','5896134QDbPmx','users','warn','EDITOR_STYLES','collaboration_features'];_0x35cc=function(){return _0xf28980;};return _0x35cc();}export function getStyles(_0x1f5e79){const _0x2e9e0c=_0xb494;if(!_0x1f5e79)return new Promise(_0x5ef264=>_0x5ef264(''));const _0x19f0c7=[];for(const _0x41619c of _0x1f5e79)_0x2e9e0c(0x1ff)!==_0x41619c?_0x19f0c7[_0x2e9e0c(0x212)](window[_0x2e9e0c(0x1e9)](_0x41619c)[_0x2e9e0c(0x210)](_0xe3d09=>_0xe3d09[_0x2e9e0c(0x201)]())):_0x19f0c7[_0x2e9e0c(0x212)](f());return Promise[_0x2e9e0c(0x20f)](_0x19f0c7)[_0x2e9e0c(0x210)](_0x315291=>_0x315291[_0x2e9e0c(0x1f5)]('\x20')[_0x2e9e0c(0x203)]());}function f(){const _0x5bd574=_0xb494,_0xc03917=[],_0x47b003=[];for(const _0x4cb49f of Array[_0x5bd574(0x217)](document[_0x5bd574(0x21c)])){if(_0x4cb49f[_0x5bd574(0x21e)][_0x5bd574(0x20e)](_0x5bd574(0x208))){for(const _0x389534 of Array[_0x5bd574(0x217)](_0x4cb49f[_0x5bd574(0x206)]))-0x1!==_0x389534[_0x5bd574(0x1f7)][_0x5bd574(0x205)](_0x5bd574(0x1ed))?_0xc03917[_0x5bd574(0x212)](_0x389534[_0x5bd574(0x1f7)]):-0x1!==_0x389534[_0x5bd574(0x1f7)][_0x5bd574(0x205)](_0x5bd574(0x214))&&_0x47b003[_0x5bd574(0x212)](_0x389534[_0x5bd574(0x1f7)]);}}return _0xc03917[_0x5bd574(0x21b)]||console[_0x5bd574(0x1fe)](_0x5bd574(0x1ea)),[..._0x47b003,..._0xc03917][_0x5bd574(0x1f5)]('\x20')[_0x5bd574(0x203)]();}export function getConverterOptions(_0x17f3c6){const _0x55357c=_0xb494,_0x367d93=_0x17f3c6[_0x55357c(0x1f4)][_0x55357c(0x209)](_0x55357c(0x20a)),_0x5a864d=_0x17f3c6[_0x55357c(0x1f4)][_0x55357c(0x209)](_0x55357c(0x215)),_0x484d01=_0x17f3c6[_0x55357c(0x1f4)][_0x55357c(0x209)](_0x55357c(0x21d)),_0x1b1970={};if(_0x367d93&&_0x5a864d){const _0x239de3=getComments(_0x17f3c6[_0x55357c(0x1f4)][_0x55357c(0x20d)](_0x55357c(0x215))[_0x55357c(0x202)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object[_0x55357c(0x1ee)](_0x239de3)[_0x55357c(0x21b)]&&(_0x1b1970[_0x55357c(0x1fb)]=_0x239de3);}if(_0x367d93&&_0x484d01){const _0x466b6b=_0x17f3c6[_0x55357c(0x1f4)][_0x55357c(0x20d)](_0x55357c(0x21d)),_0x2af11d=_0x17f3c6[_0x55357c(0x1f4)][_0x55357c(0x20d)](_0x55357c(0x20a)),_0x66b2b5=getSuggestions(_0x466b6b[_0x55357c(0x21f)]({'toJSON':!0x0}),_0x2af11d[_0x55357c(0x1fd)]);Object[_0x55357c(0x1ee)](_0x66b2b5)[_0x55357c(0x21b)]&&(_0x1b1970[_0x55357c(0x207)]=_0x66b2b5);}return(_0x1b1970[_0x55357c(0x207)]||_0x1b1970[_0x55357c(0x1fb)])&&(_0x1b1970[_0x55357c(0x1f0)]=new Intl[(_0x55357c(0x1f9))]()[_0x55357c(0x1f8)]()[_0x55357c(0x1f2)]),_0x1b1970;}export function getComments(_0xd97b00){const _0x4f6aca=_0xb494,_0x57cd0b={};if(!_0xd97b00[_0x4f6aca(0x21b)])return _0x57cd0b;for(const _0x464a06 of _0xd97b00)_0x464a06[_0x4f6aca(0x1fb)][_0x4f6aca(0x1f6)](_0x50fef7=>{const _0x39f62d=_0x4f6aca;void 0x0===_0x57cd0b[_0x464a06['id']]&&(_0x57cd0b[_0x464a06['id']]=[]),_0x57cd0b[_0x464a06['id']][_0x39f62d(0x212)]({'author':_0x50fef7[_0x39f62d(0x1fa)][_0x39f62d(0x1ec)],'content':_0x50fef7[_0x39f62d(0x213)],'created':_0x50fef7[_0x39f62d(0x1f3)],'is_resolved':_0x464a06[_0x39f62d(0x216)]});});return _0x57cd0b;}function _0xb494(_0xb8698d,_0x19862d){const _0x35ccc1=_0x35cc();return _0xb494=function(_0xb49486,_0x3621a4){_0xb49486=_0xb49486-0x1e9;let _0x5f01b5=_0x35ccc1[_0xb49486];return _0x5f01b5;},_0xb494(_0xb8698d,_0x19862d);}export function getSuggestions(_0x535029,_0x2d9b40){const _0xadff24=_0xb494,_0x2871ab={};if(!_0x535029[_0xadff24(0x21b)]||!_0x2d9b40[_0xadff24(0x21b)])return _0x2871ab;for(const _0x7921f7 of _0x535029)_0x2871ab[_0x7921f7['id']]={'author':_0x2d9b40[_0xadff24(0x20d)](_0x7921f7[_0xadff24(0x218)])[_0xadff24(0x1ec)],'created':_0x7921f7[_0xadff24(0x1f3)]};return _0x2871ab;}export function getConverterOptionsV2(_0xb18181){const _0x142748=_0xb494,_0x15e562=_0xb18181[_0x142748(0x1f4)][_0x142748(0x209)](_0x142748(0x20a)),_0x47ccd4=_0xb18181[_0x142748(0x1f4)][_0x142748(0x209)](_0x142748(0x215)),_0x26ad66=_0xb18181[_0x142748(0x1f4)][_0x142748(0x209)](_0x142748(0x21d)),_0x1b2935={},_0x5166a0={};if(_0x15e562&&_0x47ccd4){const _0x59d751=getCommentsV2(_0xb18181[_0x142748(0x1f4)][_0x142748(0x20d)](_0x142748(0x215))[_0x142748(0x202)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));_0x59d751[_0x142748(0x21b)]&&(_0x5166a0[_0x142748(0x211)]=_0x59d751);}if(_0x15e562&&_0x26ad66){const _0x3237f4=_0xb18181[_0x142748(0x1f4)][_0x142748(0x20d)](_0x142748(0x21d)),_0x2a6630=_0xb18181[_0x142748(0x1f4)][_0x142748(0x20d)](_0x142748(0x20a)),_0x415381=getSuggestionsV2(_0x3237f4[_0x142748(0x21f)]({'toJSON':!0x0}),_0x2a6630[_0x142748(0x1fd)]);_0x415381[_0x142748(0x21b)]&&(_0x5166a0[_0x142748(0x207)]=_0x415381);}return(_0x5166a0[_0x142748(0x211)]||_0x5166a0[_0x142748(0x207)])&&(_0x1b2935[_0x142748(0x1f0)]=new Intl[(_0x142748(0x1f9))]()[_0x142748(0x1f8)]()[_0x142748(0x1f2)],_0x1b2935[_0x142748(0x200)]=_0x5166a0),_0x1b2935;}export function getCommentsV2(_0x332f53){const _0x7c017d=_0xb494,_0x42c016=[];if(!_0x332f53[_0x7c017d(0x21b)])return _0x42c016;for(const _0x5d5c9b of _0x332f53){const _0x25f43f=_0x5d5c9b[_0x7c017d(0x1fb)][_0x7c017d(0x1f6)](_0x2ced65=>({'author':_0x2ced65[_0x7c017d(0x1fa)][_0x7c017d(0x1ec)],'content':_0x2ced65[_0x7c017d(0x213)],'created_at':_0x2ced65[_0x7c017d(0x1f3)]}));_0x42c016[_0x7c017d(0x212)]({'thread_id':_0x5d5c9b['id'],'is_resolved':_0x5d5c9b[_0x7c017d(0x216)],'comments':_0x25f43f});}return _0x42c016;}export function getSuggestionsV2(_0x2acb28,_0x1218d6){const _0x26d832=_0xb494;return _0x2acb28[_0x26d832(0x21b)]&&_0x1218d6[_0x26d832(0x21b)]?_0x2acb28[_0x26d832(0x1f6)](_0x28569e=>({'id':_0x28569e['id'],'author':_0x1218d6[_0x26d832(0x20d)](_0x28569e[_0x26d832(0x218)])[_0x26d832(0x1ec)],'created_at':_0x28569e[_0x26d832(0x1f3)]})):[];}
23
+ (function(_0x12bd10,_0x288061){const _0xb7be2e=_0x3498,_0x225026=_0x12bd10();while(!![]){try{const _0x370bc6=-parseInt(_0xb7be2e(0x16a))/0x1+-parseInt(_0xb7be2e(0x16c))/0x2+-parseInt(_0xb7be2e(0x157))/0x3*(parseInt(_0xb7be2e(0x177))/0x4)+-parseInt(_0xb7be2e(0x164))/0x5+-parseInt(_0xb7be2e(0x180))/0x6+-parseInt(_0xb7be2e(0x155))/0x7*(parseInt(_0xb7be2e(0x18a))/0x8)+parseInt(_0xb7be2e(0x16d))/0x9*(parseInt(_0xb7be2e(0x165))/0xa);if(_0x370bc6===_0x288061)break;else _0x225026['push'](_0x225026['shift']());}catch(_0x506111){_0x225026['push'](_0x225026['shift']());}}}(_0x5c63,0xe6ea4));export function getStyles(_0x28cfa6){const _0x3f7cbc=_0x3498;if(!_0x28cfa6)return new Promise(_0x195bbd=>_0x195bbd(''));const _0x51d6ec=[];for(const _0x36806c of _0x28cfa6)_0x3f7cbc(0x178)!==_0x36806c?_0x51d6ec[_0x3f7cbc(0x168)](window[_0x3f7cbc(0x173)](_0x36806c)[_0x3f7cbc(0x156)](_0xdcb016=>_0xdcb016[_0x3f7cbc(0x172)]())):_0x51d6ec[_0x3f7cbc(0x168)](f());return Promise[_0x3f7cbc(0x186)](_0x51d6ec)[_0x3f7cbc(0x156)](_0x4d90d6=>_0x4d90d6[_0x3f7cbc(0x17f)]('\x20')[_0x3f7cbc(0x17e)]());}function f(){const _0x3fcdb0=_0x3498,_0x122e62=[],_0x9bcf45=[];for(const _0x48b09e of Array[_0x3fcdb0(0x182)](document[_0x3fcdb0(0x185)])){if(_0x48b09e[_0x3fcdb0(0x158)][_0x3fcdb0(0x17d)](_0x3fcdb0(0x17c))){for(const _0x371d97 of Array[_0x3fcdb0(0x182)](_0x48b09e[_0x3fcdb0(0x184)]))-0x1!==_0x371d97[_0x3fcdb0(0x188)][_0x3fcdb0(0x15a)](_0x3fcdb0(0x160))?_0x122e62[_0x3fcdb0(0x168)](_0x371d97[_0x3fcdb0(0x188)]):-0x1!==_0x371d97[_0x3fcdb0(0x188)][_0x3fcdb0(0x15a)](_0x3fcdb0(0x15b))&&_0x9bcf45[_0x3fcdb0(0x168)](_0x371d97[_0x3fcdb0(0x188)]);}}return _0x122e62[_0x3fcdb0(0x187)]||console[_0x3fcdb0(0x179)](_0x3fcdb0(0x17b)),[..._0x9bcf45,..._0x122e62][_0x3fcdb0(0x17f)]('\x20')[_0x3fcdb0(0x17e)]();}export function getConverterOptions(_0x56ac29){const _0x45b546=_0x3498,_0x191a09=_0x56ac29[_0x45b546(0x162)][_0x45b546(0x159)](_0x45b546(0x163)),_0x4e861a=_0x56ac29[_0x45b546(0x162)][_0x45b546(0x159)](_0x45b546(0x15c)),_0x58b7c4=_0x56ac29[_0x45b546(0x162)][_0x45b546(0x159)](_0x45b546(0x17a)),_0x23d176={};if(_0x191a09&&_0x4e861a){const _0x4c8623=getComments(_0x56ac29[_0x45b546(0x162)][_0x45b546(0x16b)](_0x45b546(0x15c))[_0x45b546(0x166)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object[_0x45b546(0x189)](_0x4c8623)[_0x45b546(0x187)]&&(_0x23d176[_0x45b546(0x181)]=_0x4c8623);}if(_0x191a09&&_0x58b7c4){const _0x45afdb=_0x56ac29[_0x45b546(0x162)][_0x45b546(0x16b)](_0x45b546(0x17a)),_0x34c770=_0x56ac29[_0x45b546(0x162)][_0x45b546(0x16b)](_0x45b546(0x163)),_0x403491=getSuggestions(_0x45afdb[_0x45b546(0x154)]({'toJSON':!0x0}),_0x34c770[_0x45b546(0x167)]);Object[_0x45b546(0x189)](_0x403491)[_0x45b546(0x187)]&&(_0x23d176[_0x45b546(0x174)]=_0x403491);}return(_0x23d176[_0x45b546(0x174)]||_0x23d176[_0x45b546(0x181)])&&(_0x23d176[_0x45b546(0x16e)]=new Intl[(_0x45b546(0x183))]()[_0x45b546(0x170)]()[_0x45b546(0x18b)]),_0x23d176;}export function getComments(_0x357f6a){const _0x13a64e=_0x3498,_0x42ca18={};if(!_0x357f6a[_0x13a64e(0x187)])return _0x42ca18;for(const _0x52b660 of _0x357f6a)_0x52b660[_0x13a64e(0x181)][_0x13a64e(0x176)](_0xd5d4d0=>{const _0xd804df=_0x13a64e;void 0x0===_0x42ca18[_0x52b660['id']]&&(_0x42ca18[_0x52b660['id']]=[]),_0x42ca18[_0x52b660['id']][_0xd804df(0x168)]({'author':_0xd5d4d0[_0xd804df(0x171)][_0xd804df(0x16f)],'content':_0xd5d4d0[_0xd804df(0x161)],'created':_0xd5d4d0[_0xd804df(0x169)],'is_resolved':_0x52b660[_0xd804df(0x15f)]});});return _0x42ca18;}export function getSuggestions(_0x492f90,_0x55fff0){const _0x3d53ac=_0x3498,_0x2f543c={};if(!_0x492f90[_0x3d53ac(0x187)]||!_0x55fff0[_0x3d53ac(0x187)])return _0x2f543c;for(const _0x59c451 of _0x492f90)_0x2f543c[_0x59c451['id']]={'author':_0x55fff0[_0x3d53ac(0x16b)](_0x59c451[_0x3d53ac(0x175)])[_0x3d53ac(0x16f)],'created':_0x59c451[_0x3d53ac(0x169)]};return _0x2f543c;}function _0x3498(_0x3a2e38,_0x24e454){const _0x5c639b=_0x5c63();return _0x3498=function(_0x349874,_0x56ebfb){_0x349874=_0x349874-0x154;let _0x22254f=_0x5c639b[_0x349874];return _0x22254f;},_0x3498(_0x3a2e38,_0x24e454);}export function getConverterOptionsV2(_0x4960a1){const _0x2370b6=_0x3498,_0x33776c=_0x4960a1[_0x2370b6(0x162)][_0x2370b6(0x159)](_0x2370b6(0x163)),_0x246cdf=_0x4960a1[_0x2370b6(0x162)][_0x2370b6(0x159)](_0x2370b6(0x15c)),_0x57d44d=_0x4960a1[_0x2370b6(0x162)][_0x2370b6(0x159)](_0x2370b6(0x17a)),_0x30aaae={},_0x51f3cf={};if(_0x33776c&&_0x246cdf){const _0x75a4be=getCommentsV2(_0x4960a1[_0x2370b6(0x162)][_0x2370b6(0x16b)](_0x2370b6(0x15c))[_0x2370b6(0x166)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));_0x75a4be[_0x2370b6(0x187)]&&(_0x51f3cf[_0x2370b6(0x15d)]=_0x75a4be);}if(_0x33776c&&_0x57d44d){const _0x33792a=_0x4960a1[_0x2370b6(0x162)][_0x2370b6(0x16b)](_0x2370b6(0x17a)),_0x4aa327=_0x4960a1[_0x2370b6(0x162)][_0x2370b6(0x16b)](_0x2370b6(0x163)),_0x377e44=getSuggestionsV2(_0x33792a[_0x2370b6(0x154)]({'toJSON':!0x0}),_0x4aa327[_0x2370b6(0x167)]);_0x377e44[_0x2370b6(0x187)]&&(_0x51f3cf[_0x2370b6(0x174)]=_0x377e44);}return(_0x51f3cf[_0x2370b6(0x15d)]||_0x51f3cf[_0x2370b6(0x174)])&&(_0x30aaae[_0x2370b6(0x16e)]=new Intl[(_0x2370b6(0x183))]()[_0x2370b6(0x170)]()[_0x2370b6(0x18b)],_0x30aaae[_0x2370b6(0x15e)]=_0x51f3cf),_0x30aaae;}export function getCommentsV2(_0x1aecf4){const _0x81eab7=_0x3498,_0xde177=[];if(!_0x1aecf4[_0x81eab7(0x187)])return _0xde177;for(const _0x40c4a9 of _0x1aecf4){const _0x598e42=_0x40c4a9[_0x81eab7(0x181)][_0x81eab7(0x176)](_0x1c5ce4=>({'author':_0x1c5ce4[_0x81eab7(0x171)][_0x81eab7(0x16f)],'content':_0x1c5ce4[_0x81eab7(0x161)],'created_at':_0x1c5ce4[_0x81eab7(0x169)]}));_0xde177[_0x81eab7(0x168)]({'thread_id':_0x40c4a9['id'],'is_resolved':_0x40c4a9[_0x81eab7(0x15f)],'comments':_0x598e42});}return _0xde177;}function _0x5c63(){const _0x387840=['indexOf',':root','CommentsRepository','comment_threads','collaboration_features','isResolved','.ck-content','content','plugins','Users','8064585eswKrW','74944350SYDllr','getCommentThreads','users','push','createdAt','1230310OdaAha','get','2071120SXvoln','9gVDhCE','timezone','name','resolvedOptions','author','text','fetch','suggestions','authorId','map','36tudHAv','EDITOR_STYLES','warn','TrackChanges','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.','data-cke','hasAttribute','trim','join','6458718DLExzI','comments','from','DateTimeFormat','cssRules','styleSheets','all','length','cssText','keys','368gVihWI','timeZone','getSuggestions','99211fkeQPZ','then','313803IcNoBo','ownerNode','has'];_0x5c63=function(){return _0x387840;};return _0x5c63();}export function getSuggestionsV2(_0x3ec1a0,_0x1d2513){const _0x3a7dda=_0x3498;return _0x3ec1a0[_0x3a7dda(0x187)]&&_0x1d2513[_0x3a7dda(0x187)]?_0x3ec1a0[_0x3a7dda(0x176)](_0x561d21=>({'id':_0x561d21['id'],'author':_0x1d2513[_0x3a7dda(0x16b)](_0x561d21[_0x3a7dda(0x175)])[_0x3a7dda(0x16f)],'created_at':_0x561d21[_0x3a7dda(0x169)]})):[];}