@ckeditor/ckeditor5-export-word 42.0.0-alpha.8 → 42.0.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.
- package/build/export-word.js +1 -1
- package/dist/index.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/types/exportword.d.ts +4 -7
- package/package.json +2 -2
- package/src/exportword.d.ts +4 -7
- package/src/exportword.js +1 -1
- package/src/exportwordcommand.js +1 -1
- package/src/exportwordui.js +1 -1
- package/src/index.js +1 -1
- package/src/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3d1448=>{const {'zh-cn':{dictionary:_0x490e97,getPluralForm:_0x50cd15}}={'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':_0x2922c4=>0x0}};_0x3d1448['zh-cn']||={'dictionary':{},'getPluralForm':null},_0x3d1448['zh-cn']['dictionary']=Object['assign'](_0x3d1448['zh-cn']['dictionary'],_0x490e97),_0x3d1448['zh-cn']['getPluralForm']=_0x50cd15;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/zh.js
CHANGED
|
@@ -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':
|
|
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':_0x152857=>0x0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xd472fe=>{const {zh:{dictionary:_0x58d793,getPluralForm:_0x7f33db}}={'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':_0x56fa2a=>0x0}};_0xd472fe['zh']||={'dictionary':{},'getPluralForm':null},_0xd472fe['zh']['dictionary']=Object['assign'](_0xd472fe['zh']['dictionary'],_0x58d793),_0xd472fe['zh']['getPluralForm']=_0x7f33db;})(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
|
|
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
|
|
3
|
+
"version": "42.0.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
|
|
33
|
+
"ckeditor5": "42.0.0"
|
|
34
34
|
},
|
|
35
35
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
36
36
|
"author": "CKSource (https://cksource.com/)",
|
package/src/exportword.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
23
|
+
const _0xbd02e6=_0x2369;(function(_0x4ebfe9,_0x223c54){const _0x25fdd6=_0x2369,_0x5e200c=_0x4ebfe9();while(!![]){try{const _0x24174f=parseInt(_0x25fdd6(0x1ae))/0x1*(-parseInt(_0x25fdd6(0x1c3))/0x2)+-parseInt(_0x25fdd6(0x1c6))/0x3*(-parseInt(_0x25fdd6(0x1b1))/0x4)+-parseInt(_0x25fdd6(0x1b0))/0x5*(parseInt(_0x25fdd6(0x1b8))/0x6)+parseInt(_0x25fdd6(0x1c8))/0x7+parseInt(_0x25fdd6(0x1bb))/0x8+parseInt(_0x25fdd6(0x1b6))/0x9*(parseInt(_0x25fdd6(0x1bc))/0xa)+-parseInt(_0x25fdd6(0x1bf))/0xb;if(_0x24174f===_0x223c54)break;else _0x5e200c['push'](_0x5e200c['shift']());}catch(_0x132621){_0x5e200c['push'](_0x5e200c['shift']());}}}(_0x5b1f,0x4c200));import{Plugin as _0x3fb939}from'ckeditor5/src/core.js';import{Notification as _0x2d056e}from'ckeditor5/src/ui.js';import _0x2f0ece from'./exportwordcommand.js';function _0x2369(_0x1a44d7,_0x1358a8){const _0x5b1f22=_0x5b1f();return _0x2369=function(_0x23699e,_0x125093){_0x23699e=_0x23699e-0x1ae;let _0xccdd96=_0x5b1f22[_0x23699e];return _0xccdd96;},_0x2369(_0x1a44d7,_0x1358a8);}function _0x5b1f(){const _0x50b681=['1870554pRhzEd','token','17PgJpxw','then','1380cwgYKV','12sJVOGc','init','get','registerTokenUrl','ExportWord','547110lsvbIt','add','6624vMTZgH','config','commands','4572696FqVxIh','20NSnznj','CloudServices','tokenUrl','8692849cvYzEF','pluginName','_token','requires','2262ldNygm','plugins','exportWord','465609xDydyo','editor'];_0x5b1f=function(){return _0x50b681;};return _0x5b1f();}import _0xc90c4f from'./exportwordui.js';export default class s extends _0x3fb939{static get[_0xbd02e6(0x1c0)](){const _0x1e14a5=_0xbd02e6;return _0x1e14a5(0x1b5);}static get[_0xbd02e6(0x1c2)](){const _0xf8da94=_0xbd02e6;return[_0xf8da94(0x1bd),_0x2d056e,_0xc90c4f];}[_0xbd02e6(0x1b2)](){const _0xb9ea99=_0xbd02e6,_0x47e1a2=this[_0xb9ea99(0x1c7)],_0x2bd5eb=_0x47e1a2[_0xb9ea99(0x1b9)][_0xb9ea99(0x1b3)](_0xb9ea99(0x1c5))||{};_0x47e1a2[_0xb9ea99(0x1ba)][_0xb9ea99(0x1b7)](_0xb9ea99(0x1c5),new _0x2f0ece(_0x47e1a2));const _0x2b30c9=_0x47e1a2[_0xb9ea99(0x1c4)][_0xb9ea99(0x1b3)](_0xb9ea99(0x1bd));!0x1===_0x2bd5eb[_0xb9ea99(0x1be)]?this[_0xb9ea99(0x1c1)]=null:_0x2bd5eb[_0xb9ea99(0x1be)]?_0x2b30c9[_0xb9ea99(0x1b4)](_0x2bd5eb[_0xb9ea99(0x1be)])[_0xb9ea99(0x1af)](_0x306eb9=>{const _0x115b55=_0xb9ea99;this[_0x115b55(0x1c1)]=_0x306eb9;}):this[_0xb9ea99(0x1c1)]=_0x2b30c9[_0xb9ea99(0x1c9)];}}
|
package/src/exportwordcommand.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
23
|
+
import{Command as _0x23e4de}from'ckeditor5/src/core.js';import{getStyles as _0x14c288,getConverterOptions as _0x3302bb,getConverterOptionsV2 as _0x468d80}from'./utils.js';export default class e extends _0x23e4de{constructor(_0x4bb319){super(_0x4bb319),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x2bf850={}){const _0xeaa10f=this['editor'],t=_0xeaa10f['t'],_0x24c2cc=0x2===(_0x2bf850['version']||0x1),_0x4ed995=_0x2bf850['converterUrl']||(_0x24c2cc?'https://docx-converter.cke-cs.com/v2/convert/html-docx':'https://docx-converter.cke-cs.com/v1/convert'),_0x2d6d1c=_0x2bf850['converterOptions']||{},_0x2123f0=_0xeaa10f['plugins']['get']('ExportWord'),_0xe95f86=_0x2bf850['token']||_0x2123f0['_token'],_0x326feb=!0x1!==_0x2d6d1c['auto_pagination'],_0x82f71e=_0x2bf850['dataCallback']||(_0x7158fb=>_0x7158fb['data']['get']({'pagination':_0x326feb}));return this['isBusy']=!0x0,this['refresh'](),_0x14c288(_0x2bf850['stylesheets']||['EDITOR_STYLES'])['then'](async _0xb37090=>{_0xeaa10f['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20started'));const _0x4906f1=await _0x82f71e(_0xeaa10f),_0x3f9efc={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0xeaa10f['locale']['contentLanguageDirection']+'\x22>'+_0x4906f1+'</div>','css':_0xb37090,[_0x24c2cc?'config':'options']:{..._0x2d6d1c,..._0x24c2cc?_0x468d80(_0xeaa10f):_0x3302bb(_0xeaa10f)}},_0x2496dd={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0xe95f86?{'Authorization':_0xe95f86['value']}:null},'body':JSON['stringify'](_0x3f9efc)};return window['fetch'](_0x4ed995,_0x2496dd)['then'](_0x3f31f9=>{if(0xc8!==_0x3f31f9['status'])throw _0x3f31f9;return _0x3f31f9['blob']();})['then'](_0x34ccc0=>{_0xeaa10f['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20successful'));const _0x657126='function'==typeof _0x2bf850['fileName']?_0x2bf850['fileName']():_0x2bf850['fileName'];this['_downloadFile'](_0x34ccc0,_0x657126||'document.docx');});})['catch'](_0xf77da3=>{const _0x489a90=_0xeaa10f['plugins']['get']('Notification');throw _0xeaa10f['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20failed'),{'politeness':'assertive'}),_0x489a90['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0xf77da3;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x1a43a2,_0x153e85){const _0x44d861=document['createElement']('a');_0x44d861['href']=window['URL']['createObjectURL'](_0x1a43a2),_0x44d861['download']=_0x153e85,_0x44d861['click'](),_0x44d861['remove']();}}
|
package/src/exportwordui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x37276b}from'ckeditor5/src/core.js';import{ButtonView as _0x47f126,MenuBarMenuListItemButtonView as _0x32141a,SpinnerView as _0x1c9a29}from'ckeditor5/src/ui.js';import _0x57ef36 from'../theme/icons/exportword.svg';export default class i extends _0x37276b{static get['pluginName'](){return'ExportWordUI';}['init'](){const _0x224825=this['editor'];_0x224825['ui']['componentFactory']['add']('exportWord',()=>{const _0x3de830=_0x224825['commands']['get']('exportWord'),_0x59eaa3=this['_createButton'](_0x47f126);return _0x59eaa3['set']({'tooltip':!0x0}),_0x59eaa3['bind']('isOn')['to'](_0x3de830,'isBusy'),_0x59eaa3;}),_0x224825['ui']['componentFactory']['add']('menuBar:exportWord',()=>this['_createButton'](_0x32141a));}['_createButton'](_0x2a725f){const _0x2c95c0=this['editor'],_0x4d3d37=_0x2c95c0['config']['get']('exportWord')||{},t=_0x2c95c0['locale']['t'],_0x41a642=_0x2c95c0['commands']['get']('exportWord'),_0x55c3a1=new _0x2a725f(_0x2c95c0['locale']),_0x16a80a=new _0x1c9a29();return _0x55c3a1['children']['add'](_0x16a80a),_0x16a80a['bind']('isVisible')['to'](_0x41a642,'isBusy'),_0x55c3a1['iconView']['bind']('isVisible')['to'](_0x41a642,'isBusy',_0x3af643=>!_0x3af643),_0x55c3a1['set']({'icon':_0x57ef36}),_0x55c3a1['bind']('isEnabled')['to'](_0x41a642,'isEnabled'),_0x55c3a1['bind']('label')['to'](_0x41a642,'isBusy',_0x44d677=>t(_0x44d677?'Exporting\x20Word\x20document':'Export\x20to\x20Word')),this['listenTo'](_0x55c3a1,'execute',()=>{_0x2c95c0['execute']('exportWord',_0x4d3d37),_0x2c95c0['editing']['view']['focus']();}),_0x55c3a1;}}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0xbaffe6,_0xc988e3){var _0x4ea20c=_0x1424,_0x5d4f07=_0xbaffe6();while(!![]){try{var _0x743a89=-parseInt(_0x4ea20c(0xc0))/0x1*(parseInt(_0x4ea20c(0xc2))/0x2)+parseInt(_0x4ea20c(0xc9))/0x3+parseInt(_0x4ea20c(0xc3))/0x4*(-parseInt(_0x4ea20c(0xc8))/0x5)+parseInt(_0x4ea20c(0xc4))/0x6+-parseInt(_0x4ea20c(0xc6))/0x7+parseInt(_0x4ea20c(0xc1))/0x8*(-parseInt(_0x4ea20c(0xc5))/0x9)+parseInt(_0x4ea20c(0xc7))/0xa;if(_0x743a89===_0xc988e3)break;else _0x5d4f07['push'](_0x5d4f07['shift']());}catch(_0x43c666){_0x5d4f07['push'](_0x5d4f07['shift']());}}}(_0x35e5,0x912d9));export{default as ExportWord}from'./exportword.js';function _0x1424(_0x170cd9,_0x3fd3cf){var _0x35e561=_0x35e5();return _0x1424=function(_0x14241c,_0x5ccb68){_0x14241c=_0x14241c-0xc0;var _0x59a180=_0x35e561[_0x14241c];return _0x59a180;},_0x1424(_0x170cd9,_0x3fd3cf);}import'./augmentation.js';function _0x35e5(){var _0x2ad5e0=['11765520DgoQRI','2360cEnzUW','146808PpnGBM','96739XFwyhg','700840BOXOZu','2DlAobt','4852ybcMQp','5727108pgYnXV','27Bpfsic','4572869NvPqIz'];_0x35e5=function(){return _0x2ad5e0;};return _0x35e5();}
|
package/src/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2596d6,_0x4cec98){const _0x4d5a27=_0x4b4f,_0x1ad1f0=_0x2596d6();while(!![]){try{const _0x59eb47=parseInt(_0x4d5a27(0x15b))/0x1+-parseInt(_0x4d5a27(0x167))/0x2*(-parseInt(_0x4d5a27(0x13f))/0x3)+-parseInt(_0x4d5a27(0x13c))/0x4+-parseInt(_0x4d5a27(0x144))/0x5*(-parseInt(_0x4d5a27(0x168))/0x6)+parseInt(_0x4d5a27(0x152))/0x7+-parseInt(_0x4d5a27(0x142))/0x8*(-parseInt(_0x4d5a27(0x147))/0x9)+-parseInt(_0x4d5a27(0x155))/0xa*(parseInt(_0x4d5a27(0x13e))/0xb);if(_0x59eb47===_0x4cec98)break;else _0x1ad1f0['push'](_0x1ad1f0['shift']());}catch(_0x4306f5){_0x1ad1f0['push'](_0x1ad1f0['shift']());}}}(_0x57b3,0x1c55b));function _0x57b3(){const _0x5ead19=['getCommentThreads','get','keys','data-cke','TrackChanges','plugins','.ck-content','length','EDITOR_STYLES','authorId','333960LgTcif','all','825869DepuPg','24660qZwQVR','map','fetch','3336ByDkjQ','styleSheets','25XFulfC','timezone','createdAt','4383nEaUaN','name','DateTimeFormat','CommentsRepository','getSuggestions','trim','warn','comment_threads','author','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.','isResolved','1202971CagwDi','join','indexOf','50hLdYsP','push','timeZone','from','content','comments','5027psWHFS','has','cssText','cssRules','collaboration_features','users','resolvedOptions','suggestions','Users','text','ownerNode',':root','40moyuJd','36702NMfNHy','then','hasAttribute'];_0x57b3=function(){return _0x5ead19;};return _0x57b3();}export function getStyles(_0x154223){const _0x26c021=_0x4b4f;if(!_0x154223)return new Promise(_0xcef7c4=>_0xcef7c4(''));const _0x5c3b80=[];for(const _0x1910bc of _0x154223)_0x26c021(0x13a)!==_0x1910bc?_0x5c3b80[_0x26c021(0x156)](window[_0x26c021(0x141)](_0x1910bc)[_0x26c021(0x169)](_0x2162c6=>_0x2162c6[_0x26c021(0x164)]())):_0x5c3b80[_0x26c021(0x156)](f());return Promise[_0x26c021(0x13d)](_0x5c3b80)[_0x26c021(0x169)](_0x2d538b=>_0x2d538b[_0x26c021(0x153)]('\x20')[_0x26c021(0x14c)]());}function _0x4b4f(_0x1010ba,_0x339d3d){const _0x57b3be=_0x57b3();return _0x4b4f=function(_0x4b4ff0,_0xdcbcc0){_0x4b4ff0=_0x4b4ff0-0x139;let _0x5eec20=_0x57b3be[_0x4b4ff0];return _0x5eec20;},_0x4b4f(_0x1010ba,_0x339d3d);}function f(){const _0x1c7e78=_0x4b4f,_0x1e2e41=[],_0x3bc07b=[];for(const _0x1d88ae of Array[_0x1c7e78(0x158)](document[_0x1c7e78(0x143)])){if(_0x1d88ae[_0x1c7e78(0x165)][_0x1c7e78(0x16a)](_0x1c7e78(0x16e))){for(const _0x225d03 of Array[_0x1c7e78(0x158)](_0x1d88ae[_0x1c7e78(0x15e)]))-0x1!==_0x225d03[_0x1c7e78(0x15d)][_0x1c7e78(0x154)](_0x1c7e78(0x171))?_0x1e2e41[_0x1c7e78(0x156)](_0x225d03[_0x1c7e78(0x15d)]):-0x1!==_0x225d03[_0x1c7e78(0x15d)][_0x1c7e78(0x154)](_0x1c7e78(0x166))&&_0x3bc07b[_0x1c7e78(0x156)](_0x225d03[_0x1c7e78(0x15d)]);}}return _0x1e2e41[_0x1c7e78(0x139)]||console[_0x1c7e78(0x14d)](_0x1c7e78(0x150)),[..._0x3bc07b,..._0x1e2e41][_0x1c7e78(0x153)]('\x20')[_0x1c7e78(0x14c)]();}export function getConverterOptions(_0xbc27d0){const _0x904f30=_0x4b4f,_0x3ee030=_0xbc27d0[_0x904f30(0x170)][_0x904f30(0x15c)](_0x904f30(0x163)),_0x484326=_0xbc27d0[_0x904f30(0x170)][_0x904f30(0x15c)](_0x904f30(0x14a)),_0x595525=_0xbc27d0[_0x904f30(0x170)][_0x904f30(0x15c)](_0x904f30(0x16f)),_0x13d28a={};if(_0x3ee030&&_0x484326){const _0x32ee80=getComments(_0xbc27d0[_0x904f30(0x170)][_0x904f30(0x16c)](_0x904f30(0x14a))[_0x904f30(0x16b)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object[_0x904f30(0x16d)](_0x32ee80)[_0x904f30(0x139)]&&(_0x13d28a[_0x904f30(0x15a)]=_0x32ee80);}if(_0x3ee030&&_0x595525){const _0x34972a=_0xbc27d0[_0x904f30(0x170)][_0x904f30(0x16c)](_0x904f30(0x16f)),_0x417f32=_0xbc27d0[_0x904f30(0x170)][_0x904f30(0x16c)](_0x904f30(0x163)),_0x5c6fa5=getSuggestions(_0x34972a[_0x904f30(0x14b)]({'toJSON':!0x0}),_0x417f32[_0x904f30(0x160)]);Object[_0x904f30(0x16d)](_0x5c6fa5)[_0x904f30(0x139)]&&(_0x13d28a[_0x904f30(0x162)]=_0x5c6fa5);}return(_0x13d28a[_0x904f30(0x162)]||_0x13d28a[_0x904f30(0x15a)])&&(_0x13d28a[_0x904f30(0x145)]=new Intl[(_0x904f30(0x149))]()[_0x904f30(0x161)]()[_0x904f30(0x157)]),_0x13d28a;}export function getComments(_0x227109){const _0x218512=_0x4b4f,_0x4574d3={};if(!_0x227109[_0x218512(0x139)])return _0x4574d3;for(const _0x2f372b of _0x227109)_0x2f372b[_0x218512(0x15a)][_0x218512(0x140)](_0x2d302b=>{const _0x1d5882=_0x218512;void 0x0===_0x4574d3[_0x2f372b['id']]&&(_0x4574d3[_0x2f372b['id']]=[]),_0x4574d3[_0x2f372b['id']][_0x1d5882(0x156)]({'author':_0x2d302b[_0x1d5882(0x14f)][_0x1d5882(0x148)],'content':_0x2d302b[_0x1d5882(0x159)],'created':_0x2d302b[_0x1d5882(0x146)],'is_resolved':_0x2f372b[_0x1d5882(0x151)]});});return _0x4574d3;}export function getSuggestions(_0x2bdc49,_0x28345e){const _0x3b83e5=_0x4b4f,_0x26378b={};if(!_0x2bdc49[_0x3b83e5(0x139)]||!_0x28345e[_0x3b83e5(0x139)])return _0x26378b;for(const _0x47902f of _0x2bdc49)_0x26378b[_0x47902f['id']]={'author':_0x28345e[_0x3b83e5(0x16c)](_0x47902f[_0x3b83e5(0x13b)])[_0x3b83e5(0x148)],'created':_0x47902f[_0x3b83e5(0x146)]};return _0x26378b;}export function getConverterOptionsV2(_0x3565c8){const _0x2ad412=_0x4b4f,_0x355336=_0x3565c8[_0x2ad412(0x170)][_0x2ad412(0x15c)](_0x2ad412(0x163)),_0x58da72=_0x3565c8[_0x2ad412(0x170)][_0x2ad412(0x15c)](_0x2ad412(0x14a)),_0x5716cc=_0x3565c8[_0x2ad412(0x170)][_0x2ad412(0x15c)](_0x2ad412(0x16f)),_0x757b59={},_0x4c6047={};if(_0x355336&&_0x58da72){const _0x281114=getCommentsV2(_0x3565c8[_0x2ad412(0x170)][_0x2ad412(0x16c)](_0x2ad412(0x14a))[_0x2ad412(0x16b)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));_0x281114[_0x2ad412(0x139)]&&(_0x4c6047[_0x2ad412(0x14e)]=_0x281114);}if(_0x355336&&_0x5716cc){const _0x263993=_0x3565c8[_0x2ad412(0x170)][_0x2ad412(0x16c)](_0x2ad412(0x16f)),_0xb1fa77=_0x3565c8[_0x2ad412(0x170)][_0x2ad412(0x16c)](_0x2ad412(0x163)),_0x35679c=getSuggestionsV2(_0x263993[_0x2ad412(0x14b)]({'toJSON':!0x0}),_0xb1fa77[_0x2ad412(0x160)]);_0x35679c[_0x2ad412(0x139)]&&(_0x4c6047[_0x2ad412(0x162)]=_0x35679c);}return(_0x4c6047[_0x2ad412(0x14e)]||_0x4c6047[_0x2ad412(0x162)])&&(_0x757b59[_0x2ad412(0x145)]=new Intl[(_0x2ad412(0x149))]()[_0x2ad412(0x161)]()[_0x2ad412(0x157)],_0x757b59[_0x2ad412(0x15f)]=_0x4c6047),_0x757b59;}export function getCommentsV2(_0x14ccb2){const _0xa4d98c=_0x4b4f,_0x42af3b=[];if(!_0x14ccb2[_0xa4d98c(0x139)])return _0x42af3b;for(const _0x836eb5 of _0x14ccb2){const _0x2b6a7c=_0x836eb5[_0xa4d98c(0x15a)][_0xa4d98c(0x140)](_0xcf923f=>({'author':_0xcf923f[_0xa4d98c(0x14f)][_0xa4d98c(0x148)],'content':_0xcf923f[_0xa4d98c(0x159)],'created_at':_0xcf923f[_0xa4d98c(0x146)]}));_0x42af3b[_0xa4d98c(0x156)]({'thread_id':_0x836eb5['id'],'is_resolved':_0x836eb5[_0xa4d98c(0x151)],'comments':_0x2b6a7c});}return _0x42af3b;}export function getSuggestionsV2(_0x49ff3c,_0x212ca8){const _0x1745a0=_0x4b4f;return _0x49ff3c[_0x1745a0(0x139)]&&_0x212ca8[_0x1745a0(0x139)]?_0x49ff3c[_0x1745a0(0x140)](_0x10773=>({'id':_0x10773['id'],'author':_0x212ca8[_0x1745a0(0x16c)](_0x10773[_0x1745a0(0x13b)])[_0x1745a0(0x148)],'created_at':_0x10773[_0x1745a0(0x146)]})):[];}
|