@ckeditor/ckeditor5-export-word 42.0.0-alpha.14 → 42.0.0-alpha.16

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 (99) 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/package.json +2 -2
  95. package/src/exportword.js +1 -1
  96. package/src/exportwordcommand.js +1 -1
  97. package/src/exportwordui.js +1 -1
  98. package/src/index.js +1 -1
  99. package/src/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x22038d=>{const {'zh-cn':{dictionary:_0x2fb9c6,getPluralForm:_0x5045e9}}={'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':_0x16db6f=>0x0}};_0x22038d['zh-cn']||={'dictionary':{},'getPluralForm':null},_0x22038d['zh-cn']['dictionary']=Object['assign'](_0x22038d['zh-cn']['dictionary'],_0x2fb9c6),_0x22038d['zh-cn']['getPluralForm']=_0x5045e9;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x2e7e78=>{const {'zh-cn':{dictionary:_0x1ba7f5,getPluralForm:_0x563309}}={'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':_0x175728=>0x0}};_0x2e7e78['zh-cn']||={'dictionary':{},'getPluralForm':null},_0x2e7e78['zh-cn']['dictionary']=Object['assign'](_0x2e7e78['zh-cn']['dictionary'],_0x1ba7f5),_0x2e7e78['zh-cn']['getPluralForm']=_0x563309;})(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':_0x1f93a8=>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':_0x58959a=>0x0}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x4a2d4f=>{const {zh:{dictionary:_0x54336c,getPluralForm:_0x5096e4}}={'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':_0xaf7ffd=>0x0}};_0x4a2d4f['zh']||={'dictionary':{},'getPluralForm':null},_0x4a2d4f['zh']['dictionary']=Object['assign'](_0x4a2d4f['zh']['dictionary'],_0x54336c),_0x4a2d4f['zh']['getPluralForm']=_0x5096e4;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0xe46fcc=>{const {zh:{dictionary:_0x33a46f,getPluralForm:_0x4653b4}}={'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':_0x5afc7b=>0x0}};_0xe46fcc['zh']||={'dictionary':{},'getPluralForm':null},_0xe46fcc['zh']['dictionary']=Object['assign'](_0xe46fcc['zh']['dictionary'],_0x33a46f),_0xe46fcc['zh']['getPluralForm']=_0x4653b4;})(window['CKEDITOR_TRANSLATIONS']||={});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-export-word",
3
- "version": "42.0.0-alpha.14",
3
+ "version": "42.0.0-alpha.16",
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.14"
33
+ "ckeditor5": "42.0.0-alpha.16"
34
34
  },
35
35
  "license": "SEE LICENSE IN LICENSE.md",
36
36
  "author": "CKSource (https://cksource.com/)",
package/src/exportword.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x55dea6=_0x1911;(function(_0x2748ba,_0x212501){const _0x5764fb=_0x1911,_0x552398=_0x2748ba();while(!![]){try{const _0x4eec60=parseInt(_0x5764fb(0x100))/0x1*(parseInt(_0x5764fb(0x105))/0x2)+parseInt(_0x5764fb(0xf4))/0x3*(-parseInt(_0x5764fb(0xfc))/0x4)+parseInt(_0x5764fb(0x101))/0x5*(-parseInt(_0x5764fb(0xeb))/0x6)+-parseInt(_0x5764fb(0x102))/0x7+parseInt(_0x5764fb(0xf6))/0x8+parseInt(_0x5764fb(0xea))/0x9*(-parseInt(_0x5764fb(0x106))/0xa)+parseInt(_0x5764fb(0xfd))/0xb*(parseInt(_0x5764fb(0xf9))/0xc);if(_0x4eec60===_0x212501)break;else _0x552398['push'](_0x552398['shift']());}catch(_0x2584ee){_0x552398['push'](_0x552398['shift']());}}}(_0x4572,0xb6089));import{Plugin as _0x41fb25}from'ckeditor5/src/core.js';function _0x1911(_0x51f1f7,_0x449ba8){const _0x4572ff=_0x4572();return _0x1911=function(_0x1911a4,_0x137a47){_0x1911a4=_0x1911a4-0xea;let _0x391ab3=_0x4572ff[_0x1911a4];return _0x391ab3;},_0x1911(_0x51f1f7,_0x449ba8);}import{Notification as _0x178cd2}from'ckeditor5/src/ui.js';import _0x21f7b7 from'./exportwordcommand.js';import _0x545348 from'./exportwordui.js';function _0x4572(){const _0x53008f=['CloudServices','13164lJwzue','31064CFtPIq','commands','add','57296VGlHjY','662045WVIvGh','7879977SfzlGq','editor','plugins','12OmuVoQ','1848310TjESSZ','9NAqugE','24EQaddj','config','ExportWord','_token','tokenUrl','requires','exportWord','get','registerTokenUrl','66IlsmCY','token','2610536zhZYxG','init','then','8448LoQKfj','pluginName'];_0x4572=function(){return _0x53008f;};return _0x4572();}export default class s extends _0x41fb25{static get[_0x55dea6(0xfa)](){const _0x3364cf=_0x55dea6;return _0x3364cf(0xed);}static get[_0x55dea6(0xf0)](){const _0x55e19d=_0x55dea6;return[_0x55e19d(0xfb),_0x178cd2,_0x545348];}[_0x55dea6(0xf7)](){const _0x1efc77=_0x55dea6,_0x4a1c4e=this[_0x1efc77(0x103)],_0x2632aa=_0x4a1c4e[_0x1efc77(0xec)][_0x1efc77(0xf2)](_0x1efc77(0xf1))||{};_0x4a1c4e[_0x1efc77(0xfe)][_0x1efc77(0xff)](_0x1efc77(0xf1),new _0x21f7b7(_0x4a1c4e));const _0x424a7b=_0x4a1c4e[_0x1efc77(0x104)][_0x1efc77(0xf2)](_0x1efc77(0xfb));!0x1===_0x2632aa[_0x1efc77(0xef)]?this[_0x1efc77(0xee)]=null:_0x2632aa[_0x1efc77(0xef)]?_0x424a7b[_0x1efc77(0xf3)](_0x2632aa[_0x1efc77(0xef)])[_0x1efc77(0xf8)](_0x5ef625=>{const _0x3a5e87=_0x1efc77;this[_0x3a5e87(0xee)]=_0x5ef625;}):this[_0x1efc77(0xee)]=_0x424a7b[_0x1efc77(0xf5)];}}
23
+ function _0x589e(_0x2d6ac7,_0xce8932){const _0x56e11a=_0x56e1();return _0x589e=function(_0x589efb,_0x2b9c21){_0x589efb=_0x589efb-0x175;let _0x23c154=_0x56e11a[_0x589efb];return _0x23c154;},_0x589e(_0x2d6ac7,_0xce8932);}const _0xd8b630=_0x589e;(function(_0x4e95fb,_0x42dad0){const _0x26f4ed=_0x589e,_0x570cbf=_0x4e95fb();while(!![]){try{const _0x26d77e=parseInt(_0x26f4ed(0x18e))/0x1+parseInt(_0x26f4ed(0x182))/0x2+parseInt(_0x26f4ed(0x179))/0x3*(parseInt(_0x26f4ed(0x187))/0x4)+-parseInt(_0x26f4ed(0x183))/0x5*(-parseInt(_0x26f4ed(0x17a))/0x6)+parseInt(_0x26f4ed(0x17c))/0x7+-parseInt(_0x26f4ed(0x18a))/0x8+-parseInt(_0x26f4ed(0x180))/0x9;if(_0x26d77e===_0x42dad0)break;else _0x570cbf['push'](_0x570cbf['shift']());}catch(_0x358d18){_0x570cbf['push'](_0x570cbf['shift']());}}}(_0x56e1,0xdf820));import{Plugin as _0x3cb3c1}from'ckeditor5/src/core.js';import{Notification as _0x111db7}from'ckeditor5/src/ui.js';function _0x56e1(){const _0xc339cf=['_token','pluginName','704296GMxCYz','exportWord','tokenUrl','plugins','888514gjKnnn','commands','then','token','registerTokenUrl','15ulJTta','6voVHQA','ExportWord','5232752pdMQne','config','requires','editor','22587129HBxvEQ','init','2320866ywVGJe','46465tgpCXx','get','CloudServices','add','565944kfLGmB'];_0x56e1=function(){return _0xc339cf;};return _0x56e1();}import _0x3b0f45 from'./exportwordcommand.js';import _0xe6d24c from'./exportwordui.js';export default class s extends _0x3cb3c1{static get[_0xd8b630(0x189)](){const _0x383126=_0xd8b630;return _0x383126(0x17b);}static get[_0xd8b630(0x17e)](){const _0x52f4a6=_0xd8b630;return[_0x52f4a6(0x185),_0x111db7,_0xe6d24c];}[_0xd8b630(0x181)](){const _0xc98d36=_0xd8b630,_0x184332=this[_0xc98d36(0x17f)],_0x3ccb56=_0x184332[_0xc98d36(0x17d)][_0xc98d36(0x184)](_0xc98d36(0x18b))||{};_0x184332[_0xc98d36(0x175)][_0xc98d36(0x186)](_0xc98d36(0x18b),new _0x3b0f45(_0x184332));const _0x1325ca=_0x184332[_0xc98d36(0x18d)][_0xc98d36(0x184)](_0xc98d36(0x185));!0x1===_0x3ccb56[_0xc98d36(0x18c)]?this[_0xc98d36(0x188)]=null:_0x3ccb56[_0xc98d36(0x18c)]?_0x1325ca[_0xc98d36(0x178)](_0x3ccb56[_0xc98d36(0x18c)])[_0xc98d36(0x176)](_0x2368ef=>{const _0x2d21cb=_0xc98d36;this[_0x2d21cb(0x188)]=_0x2368ef;}):this[_0xc98d36(0x188)]=_0x1325ca[_0xc98d36(0x177)];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x28c98f}from'ckeditor5/src/core.js';import{getStyles as _0x4ba36c,getConverterOptions as _0x5890f6,getConverterOptionsV2 as _0x58a44b}from'./utils.js';export default class e extends _0x28c98f{constructor(_0x476a49){super(_0x476a49),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x353954={}){const _0x4530bd=this['editor'],t=_0x4530bd['t'],_0x2dc0c0=0x2===(_0x353954['version']||0x1),_0x11abaa=_0x353954['converterUrl']||(_0x2dc0c0?'https://docx-converter.cke-cs.com/v2/convert/html-docx':'https://docx-converter.cke-cs.com/v1/convert'),_0x4c17dd=_0x353954['converterOptions']||{},_0x46e82f=_0x4530bd['plugins']['get']('ExportWord'),_0x53cd7a=_0x353954['token']||_0x46e82f['_token'],_0x674bbb=!0x1!==_0x4c17dd['auto_pagination'],_0x19eb89=_0x353954['dataCallback']||(_0x22fd38=>_0x22fd38['data']['get']({'pagination':_0x674bbb}));return this['isBusy']=!0x0,this['refresh'](),_0x4ba36c(_0x353954['stylesheets']||['EDITOR_STYLES'])['then'](async _0x15a446=>{_0x4530bd['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20started'));const _0x4d3298=await _0x19eb89(_0x4530bd),_0x4e7b6c={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x4530bd['locale']['contentLanguageDirection']+'\x22>'+_0x4d3298+'</div>','css':_0x15a446,[_0x2dc0c0?'config':'options']:{..._0x4c17dd,..._0x2dc0c0?_0x58a44b(_0x4530bd):_0x5890f6(_0x4530bd)}},_0x2e0ad9={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0x53cd7a?{'Authorization':_0x53cd7a['value']}:null},'body':JSON['stringify'](_0x4e7b6c)};return window['fetch'](_0x11abaa,_0x2e0ad9)['then'](_0x26d6e0=>{if(0xc8!==_0x26d6e0['status'])throw _0x26d6e0;return _0x26d6e0['blob']();})['then'](_0x37ef45=>{_0x4530bd['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20successful'));const _0x3e9752='function'==typeof _0x353954['fileName']?_0x353954['fileName']():_0x353954['fileName'];this['_downloadFile'](_0x37ef45,_0x3e9752||'document.docx');});})['catch'](_0x4a8cc7=>{const _0x32a608=_0x4530bd['plugins']['get']('Notification');throw _0x4530bd['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20failed'),{'politeness':'assertive'}),_0x32a608['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0x4a8cc7;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x2b3972,_0x331293){const _0xa5658f=document['createElement']('a');_0xa5658f['href']=window['URL']['createObjectURL'](_0x2b3972),_0xa5658f['download']=_0x331293,_0xa5658f['click'](),_0xa5658f['remove']();}}
23
+ import{Command as _0x1ca94b}from'ckeditor5/src/core.js';import{getStyles as _0x443589,getConverterOptions as _0x19156f,getConverterOptionsV2 as _0x24659b}from'./utils.js';export default class e extends _0x1ca94b{constructor(_0x47d512){super(_0x47d512),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x39ec74={}){const _0x30730a=this['editor'],t=_0x30730a['t'],_0x39ce96=0x2===(_0x39ec74['version']||0x1),_0x39b301=_0x39ec74['converterUrl']||(_0x39ce96?'https://docx-converter.cke-cs.com/v2/convert/html-docx':'https://docx-converter.cke-cs.com/v1/convert'),_0x1999db=_0x39ec74['converterOptions']||{},_0x246e7e=_0x30730a['plugins']['get']('ExportWord'),_0x298ef2=_0x39ec74['token']||_0x246e7e['_token'],_0x4691c6=!0x1!==_0x1999db['auto_pagination'],_0x1abead=_0x39ec74['dataCallback']||(_0xf7b597=>_0xf7b597['data']['get']({'pagination':_0x4691c6}));return this['isBusy']=!0x0,this['refresh'](),_0x443589(_0x39ec74['stylesheets']||['EDITOR_STYLES'])['then'](async _0x5c44b7=>{_0x30730a['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20started'));const _0x4581fa=await _0x1abead(_0x30730a),_0x5b202d={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x30730a['locale']['contentLanguageDirection']+'\x22>'+_0x4581fa+'</div>','css':_0x5c44b7,[_0x39ce96?'config':'options']:{..._0x1999db,..._0x39ce96?_0x24659b(_0x30730a):_0x19156f(_0x30730a)}},_0x10b5f6={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0x298ef2?{'Authorization':_0x298ef2['value']}:null},'body':JSON['stringify'](_0x5b202d)};return window['fetch'](_0x39b301,_0x10b5f6)['then'](_0x300c10=>{if(0xc8!==_0x300c10['status'])throw _0x300c10;return _0x300c10['blob']();})['then'](_0x47a7c6=>{_0x30730a['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20successful'));const _0x3e33e7='function'==typeof _0x39ec74['fileName']?_0x39ec74['fileName']():_0x39ec74['fileName'];this['_downloadFile'](_0x47a7c6,_0x3e33e7||'document.docx');});})['catch'](_0x308e71=>{const _0x7773da=_0x30730a['plugins']['get']('Notification');throw _0x30730a['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20failed'),{'politeness':'assertive'}),_0x7773da['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0x308e71;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x56561a,_0x53a60b){const _0x142f77=document['createElement']('a');_0x142f77['href']=window['URL']['createObjectURL'](_0x56561a),_0x142f77['download']=_0x53a60b,_0x142f77['click'](),_0x142f77['remove']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x23e7e3}from'ckeditor5/src/core.js';import{ButtonView as _0xda428,MenuBarMenuListItemButtonView as _0x4ca269,SpinnerView as _0x46f281}from'ckeditor5/src/ui.js';import _0x293a30 from'../theme/icons/exportword.svg';export default class i extends _0x23e7e3{static get['pluginName'](){return'ExportWordUI';}['init'](){const _0x24193d=this['editor'];_0x24193d['ui']['componentFactory']['add']('exportWord',()=>{const _0x318551=_0x24193d['commands']['get']('exportWord'),_0xa10f60=this['_createButton'](_0xda428);return _0xa10f60['set']({'tooltip':!0x0}),_0xa10f60['bind']('isOn')['to'](_0x318551,'isBusy'),_0xa10f60;}),_0x24193d['ui']['componentFactory']['add']('menuBar:exportWord',()=>this['_createButton'](_0x4ca269));}['_createButton'](_0xd1d381){const _0x3ec356=this['editor'],_0x2a68f9=_0x3ec356['config']['get']('exportWord')||{},t=_0x3ec356['locale']['t'],_0x2b9b03=_0x3ec356['commands']['get']('exportWord'),_0x43a445=new _0xd1d381(_0x3ec356['locale']),_0x49546d=new _0x46f281();return _0x43a445['children']['add'](_0x49546d),_0x49546d['bind']('isVisible')['to'](_0x2b9b03,'isBusy'),_0x43a445['iconView']['bind']('isVisible')['to'](_0x2b9b03,'isBusy',_0x3f8f59=>!_0x3f8f59),_0x43a445['set']({'icon':_0x293a30}),_0x43a445['bind']('isEnabled')['to'](_0x2b9b03,'isEnabled'),_0x43a445['bind']('label')['to'](_0x2b9b03,'isBusy',_0x3438f1=>t(_0x3438f1?'Exporting\x20Word\x20document':'Export\x20to\x20Word')),this['listenTo'](_0x43a445,'execute',()=>{_0x3ec356['execute']('exportWord',_0x2a68f9),_0x3ec356['editing']['view']['focus']();}),_0x43a445;}}
23
+ import{Plugin as _0x211cbb}from'ckeditor5/src/core.js';import{ButtonView as _0x5c16c3,MenuBarMenuListItemButtonView as _0x4854fd,SpinnerView as _0x329280}from'ckeditor5/src/ui.js';import _0x440fb0 from'../theme/icons/exportword.svg';export default class i extends _0x211cbb{static get['pluginName'](){return'ExportWordUI';}['init'](){const _0x5ca5e4=this['editor'];_0x5ca5e4['ui']['componentFactory']['add']('exportWord',()=>{const _0x9d7eb3=_0x5ca5e4['commands']['get']('exportWord'),_0x4f7d80=this['_createButton'](_0x5c16c3);return _0x4f7d80['set']({'tooltip':!0x0}),_0x4f7d80['bind']('isOn')['to'](_0x9d7eb3,'isBusy'),_0x4f7d80;}),_0x5ca5e4['ui']['componentFactory']['add']('menuBar:exportWord',()=>this['_createButton'](_0x4854fd));}['_createButton'](_0x2e3a8c){const _0x5e4781=this['editor'],_0x8a0155=_0x5e4781['config']['get']('exportWord')||{},t=_0x5e4781['locale']['t'],_0x223b0d=_0x5e4781['commands']['get']('exportWord'),_0x247f31=new _0x2e3a8c(_0x5e4781['locale']),_0x155285=new _0x329280();return _0x247f31['children']['add'](_0x155285),_0x155285['bind']('isVisible')['to'](_0x223b0d,'isBusy'),_0x247f31['iconView']['bind']('isVisible')['to'](_0x223b0d,'isBusy',_0x438734=>!_0x438734),_0x247f31['set']({'icon':_0x440fb0}),_0x247f31['bind']('isEnabled')['to'](_0x223b0d,'isEnabled'),_0x247f31['bind']('label')['to'](_0x223b0d,'isBusy',_0x5399d2=>t(_0x5399d2?'Exporting\x20Word\x20document':'Export\x20to\x20Word')),this['listenTo'](_0x247f31,'execute',()=>{_0x5e4781['execute']('exportWord',_0x8a0155),_0x5e4781['editing']['view']['focus']();}),_0x247f31;}}
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x2714a0,_0xab8a9d){var _0x1bbbc2=_0x2625,_0x12717f=_0x2714a0();while(!![]){try{var _0x379eae=-parseInt(_0x1bbbc2(0x72))/0x1+parseInt(_0x1bbbc2(0x79))/0x2+parseInt(_0x1bbbc2(0x70))/0x3*(-parseInt(_0x1bbbc2(0x76))/0x4)+parseInt(_0x1bbbc2(0x77))/0x5*(parseInt(_0x1bbbc2(0x71))/0x6)+parseInt(_0x1bbbc2(0x7a))/0x7*(-parseInt(_0x1bbbc2(0x74))/0x8)+-parseInt(_0x1bbbc2(0x78))/0x9+-parseInt(_0x1bbbc2(0x75))/0xa*(-parseInt(_0x1bbbc2(0x73))/0xb);if(_0x379eae===_0xab8a9d)break;else _0x12717f['push'](_0x12717f['shift']());}catch(_0x1f0def){_0x12717f['push'](_0x12717f['shift']());}}}(_0x442b,0x25e4f));function _0x442b(){var _0x387d6e=['232NTPrKA','27680fkGJko','5920pmhvOD','15XgNBOs','646920rtzerk','408436KpAMmv','56966CUvtEu','39VXMEtp','112692fTDJdL','176819yInVBl','1584vUewpZ'];_0x442b=function(){return _0x387d6e;};return _0x442b();}export{default as ExportWord}from'./exportword.js';function _0x2625(_0x438f73,_0x58ce32){var _0x442b9b=_0x442b();return _0x2625=function(_0x262575,_0x32b71b){_0x262575=_0x262575-0x70;var _0x136d41=_0x442b9b[_0x262575];return _0x136d41;},_0x2625(_0x438f73,_0x58ce32);}import'./augmentation.js';
23
+ function _0x296e(){var _0x15c8ce=['2560810POcXsC','121TtxrdF','34oZYpEo','4834428wOqaeH','1374696fKFpfk','701877vahAix','8KhNwqk','40331xvyGjE','412705tmAasu','20qIeJoX','774648MrIbmg'];_0x296e=function(){return _0x15c8ce;};return _0x296e();}(function(_0x434854,_0xa4e92e){var _0x540bf2=_0x581c,_0xb519d3=_0x434854();while(!![]){try{var _0x5100a4=parseInt(_0x540bf2(0x6c))/0x1*(-parseInt(_0x540bf2(0x72))/0x2)+-parseInt(_0x540bf2(0x75))/0x3+parseInt(_0x540bf2(0x6e))/0x4*(-parseInt(_0x540bf2(0x6d))/0x5)+-parseInt(_0x540bf2(0x73))/0x6+-parseInt(_0x540bf2(0x6f))/0x7+parseInt(_0x540bf2(0x76))/0x8*(-parseInt(_0x540bf2(0x74))/0x9)+-parseInt(_0x540bf2(0x70))/0xa*(-parseInt(_0x540bf2(0x71))/0xb);if(_0x5100a4===_0xa4e92e)break;else _0xb519d3['push'](_0xb519d3['shift']());}catch(_0x3ebe88){_0xb519d3['push'](_0xb519d3['shift']());}}}(_0x296e,0x656de));function _0x581c(_0x3476bc,_0x171930){var _0x296e2c=_0x296e();return _0x581c=function(_0x581c8f,_0x458799){_0x581c8f=_0x581c8f-0x6c;var _0x19d6a8=_0x296e2c[_0x581c8f];return _0x19d6a8;},_0x581c(_0x3476bc,_0x171930);}export{default as ExportWord}from'./exportword.js';import'./augmentation.js';
package/src/utils.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x34e0(_0x52886b,_0xc58eaa){const _0x21297a=_0x2129();return _0x34e0=function(_0x34e0fc,_0x3e1400){_0x34e0fc=_0x34e0fc-0x178;let _0x1473a8=_0x21297a[_0x34e0fc];return _0x1473a8;},_0x34e0(_0x52886b,_0xc58eaa);}(function(_0xd79696,_0x2b92da){const _0x1ee9c4=_0x34e0,_0x1e5c58=_0xd79696();while(!![]){try{const _0x503612=-parseInt(_0x1ee9c4(0x188))/0x1*(-parseInt(_0x1ee9c4(0x180))/0x2)+parseInt(_0x1ee9c4(0x178))/0x3+parseInt(_0x1ee9c4(0x1ab))/0x4*(-parseInt(_0x1ee9c4(0x183))/0x5)+parseInt(_0x1ee9c4(0x193))/0x6+parseInt(_0x1ee9c4(0x197))/0x7*(-parseInt(_0x1ee9c4(0x192))/0x8)+-parseInt(_0x1ee9c4(0x1a1))/0x9+-parseInt(_0x1ee9c4(0x194))/0xa;if(_0x503612===_0x2b92da)break;else _0x1e5c58['push'](_0x1e5c58['shift']());}catch(_0x20a355){_0x1e5c58['push'](_0x1e5c58['shift']());}}}(_0x2129,0x2a258));export function getStyles(_0x2d23e5){const _0x4ee159=_0x34e0;if(!_0x2d23e5)return new Promise(_0x1bfcaf=>_0x1bfcaf(''));const _0x50360f=[];for(const _0x2c7f13 of _0x2d23e5)_0x4ee159(0x1a7)!==_0x2c7f13?_0x50360f[_0x4ee159(0x17c)](window[_0x4ee159(0x1a5)](_0x2c7f13)[_0x4ee159(0x182)](_0x2cb7f7=>_0x2cb7f7[_0x4ee159(0x1a3)]())):_0x50360f[_0x4ee159(0x17c)](f());return Promise[_0x4ee159(0x198)](_0x50360f)[_0x4ee159(0x182)](_0xde1f68=>_0xde1f68[_0x4ee159(0x18c)]('\x20')[_0x4ee159(0x19d)]());}function f(){const _0xa6ea00=_0x34e0,_0x3c21bb=[],_0x1dd0e0=[];for(const _0x5bd34a of Array[_0xa6ea00(0x179)](document[_0xa6ea00(0x1a6)])){if(_0x5bd34a[_0xa6ea00(0x1a9)][_0xa6ea00(0x18a)](_0xa6ea00(0x1ae))){for(const _0x51efcf of Array[_0xa6ea00(0x179)](_0x5bd34a[_0xa6ea00(0x17a)]))-0x1!==_0x51efcf[_0xa6ea00(0x195)][_0xa6ea00(0x199)](_0xa6ea00(0x19f))?_0x3c21bb[_0xa6ea00(0x17c)](_0x51efcf[_0xa6ea00(0x195)]):-0x1!==_0x51efcf[_0xa6ea00(0x195)][_0xa6ea00(0x199)](_0xa6ea00(0x181))&&_0x1dd0e0[_0xa6ea00(0x17c)](_0x51efcf[_0xa6ea00(0x195)]);}}return _0x3c21bb[_0xa6ea00(0x1a4)]||console[_0xa6ea00(0x17d)](_0xa6ea00(0x19b)),[..._0x1dd0e0,..._0x3c21bb][_0xa6ea00(0x18c)]('\x20')[_0xa6ea00(0x19d)]();}export function getConverterOptions(_0x5458d5){const _0x3abf61=_0x34e0,_0x1b1385=_0x5458d5[_0x3abf61(0x18b)][_0x3abf61(0x1a8)](_0x3abf61(0x19a)),_0x3d2962=_0x5458d5[_0x3abf61(0x18b)][_0x3abf61(0x1a8)](_0x3abf61(0x19e)),_0x2e6cf0=_0x5458d5[_0x3abf61(0x18b)][_0x3abf61(0x1a8)](_0x3abf61(0x1aa)),_0x3c0e3={};if(_0x1b1385&&_0x3d2962){const _0x7b0e11=getComments(_0x5458d5[_0x3abf61(0x18b)][_0x3abf61(0x190)](_0x3abf61(0x19e))[_0x3abf61(0x185)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object[_0x3abf61(0x17f)](_0x7b0e11)[_0x3abf61(0x1a4)]&&(_0x3c0e3[_0x3abf61(0x18e)]=_0x7b0e11);}if(_0x1b1385&&_0x2e6cf0){const _0x64c2e6=_0x5458d5[_0x3abf61(0x18b)][_0x3abf61(0x190)](_0x3abf61(0x1aa)),_0x2e477e=_0x5458d5[_0x3abf61(0x18b)][_0x3abf61(0x190)](_0x3abf61(0x19a)),_0x2a491f=getSuggestions(_0x64c2e6[_0x3abf61(0x1ad)]({'toJSON':!0x0}),_0x2e477e[_0x3abf61(0x191)]);Object[_0x3abf61(0x17f)](_0x2a491f)[_0x3abf61(0x1a4)]&&(_0x3c0e3[_0x3abf61(0x186)]=_0x2a491f);}return(_0x3c0e3[_0x3abf61(0x186)]||_0x3c0e3[_0x3abf61(0x18e)])&&(_0x3c0e3[_0x3abf61(0x17b)]=new Intl[(_0x3abf61(0x1af))]()[_0x3abf61(0x184)]()[_0x3abf61(0x1a0)]),_0x3c0e3;}export function getComments(_0xef1519){const _0x23d728=_0x34e0,_0x33319e={};if(!_0xef1519[_0x23d728(0x1a4)])return _0x33319e;for(const _0x4eb89f of _0xef1519)_0x4eb89f[_0x23d728(0x18e)][_0x23d728(0x18f)](_0x2bff01=>{const _0x48836b=_0x23d728;void 0x0===_0x33319e[_0x4eb89f['id']]&&(_0x33319e[_0x4eb89f['id']]=[]),_0x33319e[_0x4eb89f['id']][_0x48836b(0x17c)]({'author':_0x2bff01[_0x48836b(0x196)][_0x48836b(0x17e)],'content':_0x2bff01[_0x48836b(0x19c)],'created':_0x2bff01[_0x48836b(0x18d)],'is_resolved':_0x4eb89f[_0x48836b(0x189)]});});return _0x33319e;}export function getSuggestions(_0xb46a13,_0x407948){const _0x5d1be9=_0x34e0,_0x25b9a5={};if(!_0xb46a13[_0x5d1be9(0x1a4)]||!_0x407948[_0x5d1be9(0x1a4)])return _0x25b9a5;for(const _0x363601 of _0xb46a13)_0x25b9a5[_0x363601['id']]={'author':_0x407948[_0x5d1be9(0x190)](_0x363601[_0x5d1be9(0x1ac)])[_0x5d1be9(0x17e)],'created':_0x363601[_0x5d1be9(0x18d)]};return _0x25b9a5;}export function getConverterOptionsV2(_0x36c592){const _0x2ac505=_0x34e0,_0x10c205=_0x36c592[_0x2ac505(0x18b)][_0x2ac505(0x1a8)](_0x2ac505(0x19a)),_0x21379f=_0x36c592[_0x2ac505(0x18b)][_0x2ac505(0x1a8)](_0x2ac505(0x19e)),_0x591b26=_0x36c592[_0x2ac505(0x18b)][_0x2ac505(0x1a8)](_0x2ac505(0x1aa)),_0x121651={},_0x2bd420={};if(_0x10c205&&_0x21379f){const _0x1cf03f=getCommentsV2(_0x36c592[_0x2ac505(0x18b)][_0x2ac505(0x190)](_0x2ac505(0x19e))[_0x2ac505(0x185)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));_0x1cf03f[_0x2ac505(0x1a4)]&&(_0x2bd420[_0x2ac505(0x1a2)]=_0x1cf03f);}if(_0x10c205&&_0x591b26){const _0x2a6e8a=_0x36c592[_0x2ac505(0x18b)][_0x2ac505(0x190)](_0x2ac505(0x1aa)),_0x521372=_0x36c592[_0x2ac505(0x18b)][_0x2ac505(0x190)](_0x2ac505(0x19a)),_0x589014=getSuggestionsV2(_0x2a6e8a[_0x2ac505(0x1ad)]({'toJSON':!0x0}),_0x521372[_0x2ac505(0x191)]);_0x589014[_0x2ac505(0x1a4)]&&(_0x2bd420[_0x2ac505(0x186)]=_0x589014);}return(_0x2bd420[_0x2ac505(0x1a2)]||_0x2bd420[_0x2ac505(0x186)])&&(_0x121651[_0x2ac505(0x17b)]=new Intl[(_0x2ac505(0x1af))]()[_0x2ac505(0x184)]()[_0x2ac505(0x1a0)],_0x121651[_0x2ac505(0x187)]=_0x2bd420),_0x121651;}export function getCommentsV2(_0x24fd69){const _0x4882d3=_0x34e0,_0x9c295f=[];if(!_0x24fd69[_0x4882d3(0x1a4)])return _0x9c295f;for(const _0x405d83 of _0x24fd69){const _0x8bb1c2=_0x405d83[_0x4882d3(0x18e)][_0x4882d3(0x18f)](_0x3bd4a1=>({'author':_0x3bd4a1[_0x4882d3(0x196)][_0x4882d3(0x17e)],'content':_0x3bd4a1[_0x4882d3(0x19c)],'created_at':_0x3bd4a1[_0x4882d3(0x18d)]}));_0x9c295f[_0x4882d3(0x17c)]({'thread_id':_0x405d83['id'],'is_resolved':_0x405d83[_0x4882d3(0x189)],'comments':_0x8bb1c2});}return _0x9c295f;}function _0x2129(){const _0x1cc24d=['map','get','users','16uXqcUw','1617930nhYWFU','1108330fiLGba','cssText','author','621747HFGmNk','all','indexOf','Users','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.','content','trim','CommentsRepository','.ck-content','timeZone','1944180cDXKLg','comment_threads','text','length','fetch','styleSheets','EDITOR_STYLES','has','ownerNode','TrackChanges','45424rXmeIp','authorId','getSuggestions','data-cke','DateTimeFormat','985044sjdZJX','from','cssRules','timezone','push','warn','name','keys','96APjpNq',':root','then','65wemVIj','resolvedOptions','getCommentThreads','suggestions','collaboration_features','4724RNpzjK','isResolved','hasAttribute','plugins','join','createdAt','comments'];_0x2129=function(){return _0x1cc24d;};return _0x2129();}export function getSuggestionsV2(_0x6e1824,_0x2c00e0){const _0x59054f=_0x34e0;return _0x6e1824[_0x59054f(0x1a4)]&&_0x2c00e0[_0x59054f(0x1a4)]?_0x6e1824[_0x59054f(0x18f)](_0x2e2ed6=>({'id':_0x2e2ed6['id'],'author':_0x2c00e0[_0x59054f(0x190)](_0x2e2ed6[_0x59054f(0x1ac)])[_0x59054f(0x17e)],'created_at':_0x2e2ed6[_0x59054f(0x18d)]})):[];}
23
+ (function(_0x2d5568,_0x888c7d){const _0x3c2418=_0x46df,_0x16c746=_0x2d5568();while(!![]){try{const _0x3541ed=parseInt(_0x3c2418(0x135))/0x1*(parseInt(_0x3c2418(0x10c))/0x2)+parseInt(_0x3c2418(0x12a))/0x3*(parseInt(_0x3c2418(0x11e))/0x4)+-parseInt(_0x3c2418(0x13e))/0x5*(parseInt(_0x3c2418(0x122))/0x6)+-parseInt(_0x3c2418(0x136))/0x7*(parseInt(_0x3c2418(0x138))/0x8)+parseInt(_0x3c2418(0x12d))/0x9*(-parseInt(_0x3c2418(0x13a))/0xa)+-parseInt(_0x3c2418(0x131))/0xb+parseInt(_0x3c2418(0x10e))/0xc;if(_0x3541ed===_0x888c7d)break;else _0x16c746['push'](_0x16c746['shift']());}catch(_0x1c4ee3){_0x16c746['push'](_0x16c746['shift']());}}}(_0x4478,0xaea88));function _0x4478(){const _0xdedfab=['1947127ACXsYU',':root','40VhgCCc','createdAt','10eCdFxP','styleSheets','keys','length','10icNcQm','.ck-content','has','join','EDITOR_STYLES','cssRules','content','name','2YjUwWd','fetch','20586252GmxsJr','data-cke','from','collaboration_features','author','plugins','hasAttribute','trim','cssText','all','get','getCommentThreads','timeZone','text','push','Users','8NWgmaS','warn','ownerNode','authorId','2456484vQwOGa','CommentsRepository','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.','comment_threads','getSuggestions','then','users','map','2082474OKYlqK','isResolved','DateTimeFormat','5696091kyFWjn','comments','resolvedOptions','indexOf','8331312LRudSu','suggestions','TrackChanges','timezone','1211487fwhuwj'];_0x4478=function(){return _0xdedfab;};return _0x4478();}export function getStyles(_0x4223db){const _0x2bba51=_0x46df;if(!_0x4223db)return new Promise(_0x33de0c=>_0x33de0c(''));const _0x6e583c=[];for(const _0x1b296c of _0x4223db)_0x2bba51(0x142)!==_0x1b296c?_0x6e583c[_0x2bba51(0x11c)](window[_0x2bba51(0x10d)](_0x1b296c)[_0x2bba51(0x127)](_0x483e6d=>_0x483e6d[_0x2bba51(0x11b)]())):_0x6e583c[_0x2bba51(0x11c)](f());return Promise[_0x2bba51(0x117)](_0x6e583c)[_0x2bba51(0x127)](_0xa7e991=>_0xa7e991[_0x2bba51(0x141)]('\x20')[_0x2bba51(0x115)]());}function f(){const _0x4e7b5d=_0x46df,_0x4f53e5=[],_0x15bb80=[];for(const _0x239da3 of Array[_0x4e7b5d(0x110)](document[_0x4e7b5d(0x13b)])){if(_0x239da3[_0x4e7b5d(0x120)][_0x4e7b5d(0x114)](_0x4e7b5d(0x10f))){for(const _0x164681 of Array[_0x4e7b5d(0x110)](_0x239da3[_0x4e7b5d(0x143)]))-0x1!==_0x164681[_0x4e7b5d(0x116)][_0x4e7b5d(0x130)](_0x4e7b5d(0x13f))?_0x4f53e5[_0x4e7b5d(0x11c)](_0x164681[_0x4e7b5d(0x116)]):-0x1!==_0x164681[_0x4e7b5d(0x116)][_0x4e7b5d(0x130)](_0x4e7b5d(0x137))&&_0x15bb80[_0x4e7b5d(0x11c)](_0x164681[_0x4e7b5d(0x116)]);}}return _0x4f53e5[_0x4e7b5d(0x13d)]||console[_0x4e7b5d(0x11f)](_0x4e7b5d(0x124)),[..._0x15bb80,..._0x4f53e5][_0x4e7b5d(0x141)]('\x20')[_0x4e7b5d(0x115)]();}export function getConverterOptions(_0x4b32ab){const _0x106d67=_0x46df,_0x466a19=_0x4b32ab[_0x106d67(0x113)][_0x106d67(0x140)](_0x106d67(0x11d)),_0x58fd3f=_0x4b32ab[_0x106d67(0x113)][_0x106d67(0x140)](_0x106d67(0x123)),_0xb73e50=_0x4b32ab[_0x106d67(0x113)][_0x106d67(0x140)](_0x106d67(0x133)),_0x376c4a={};if(_0x466a19&&_0x58fd3f){const _0x17ee03=getComments(_0x4b32ab[_0x106d67(0x113)][_0x106d67(0x118)](_0x106d67(0x123))[_0x106d67(0x119)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object[_0x106d67(0x13c)](_0x17ee03)[_0x106d67(0x13d)]&&(_0x376c4a[_0x106d67(0x12e)]=_0x17ee03);}if(_0x466a19&&_0xb73e50){const _0x55c5fd=_0x4b32ab[_0x106d67(0x113)][_0x106d67(0x118)](_0x106d67(0x133)),_0x21d834=_0x4b32ab[_0x106d67(0x113)][_0x106d67(0x118)](_0x106d67(0x11d)),_0x340041=getSuggestions(_0x55c5fd[_0x106d67(0x126)]({'toJSON':!0x0}),_0x21d834[_0x106d67(0x128)]);Object[_0x106d67(0x13c)](_0x340041)[_0x106d67(0x13d)]&&(_0x376c4a[_0x106d67(0x132)]=_0x340041);}return(_0x376c4a[_0x106d67(0x132)]||_0x376c4a[_0x106d67(0x12e)])&&(_0x376c4a[_0x106d67(0x134)]=new Intl[(_0x106d67(0x12c))]()[_0x106d67(0x12f)]()[_0x106d67(0x11a)]),_0x376c4a;}export function getComments(_0x2780a){const _0x2372cf=_0x46df,_0x472afc={};if(!_0x2780a[_0x2372cf(0x13d)])return _0x472afc;for(const _0x544546 of _0x2780a)_0x544546[_0x2372cf(0x12e)][_0x2372cf(0x129)](_0x338545=>{const _0x2f7ba5=_0x2372cf;void 0x0===_0x472afc[_0x544546['id']]&&(_0x472afc[_0x544546['id']]=[]),_0x472afc[_0x544546['id']][_0x2f7ba5(0x11c)]({'author':_0x338545[_0x2f7ba5(0x112)][_0x2f7ba5(0x10b)],'content':_0x338545[_0x2f7ba5(0x144)],'created':_0x338545[_0x2f7ba5(0x139)],'is_resolved':_0x544546[_0x2f7ba5(0x12b)]});});return _0x472afc;}export function getSuggestions(_0x15fc1e,_0x4292d8){const _0x26c671=_0x46df,_0x2091ec={};if(!_0x15fc1e[_0x26c671(0x13d)]||!_0x4292d8[_0x26c671(0x13d)])return _0x2091ec;for(const _0x4b59a0 of _0x15fc1e)_0x2091ec[_0x4b59a0['id']]={'author':_0x4292d8[_0x26c671(0x118)](_0x4b59a0[_0x26c671(0x121)])[_0x26c671(0x10b)],'created':_0x4b59a0[_0x26c671(0x139)]};return _0x2091ec;}function _0x46df(_0x144ac4,_0x3858e9){const _0x44785b=_0x4478();return _0x46df=function(_0x46dfd6,_0x2017d5){_0x46dfd6=_0x46dfd6-0x10b;let _0x1c51ef=_0x44785b[_0x46dfd6];return _0x1c51ef;},_0x46df(_0x144ac4,_0x3858e9);}export function getConverterOptionsV2(_0x5335ab){const _0x2eb4ac=_0x46df,_0x35e229=_0x5335ab[_0x2eb4ac(0x113)][_0x2eb4ac(0x140)](_0x2eb4ac(0x11d)),_0x2b4b49=_0x5335ab[_0x2eb4ac(0x113)][_0x2eb4ac(0x140)](_0x2eb4ac(0x123)),_0x45f877=_0x5335ab[_0x2eb4ac(0x113)][_0x2eb4ac(0x140)](_0x2eb4ac(0x133)),_0x4e67f3={},_0x54ad94={};if(_0x35e229&&_0x2b4b49){const _0x5deded=getCommentsV2(_0x5335ab[_0x2eb4ac(0x113)][_0x2eb4ac(0x118)](_0x2eb4ac(0x123))[_0x2eb4ac(0x119)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));_0x5deded[_0x2eb4ac(0x13d)]&&(_0x54ad94[_0x2eb4ac(0x125)]=_0x5deded);}if(_0x35e229&&_0x45f877){const _0x3d714d=_0x5335ab[_0x2eb4ac(0x113)][_0x2eb4ac(0x118)](_0x2eb4ac(0x133)),_0x541747=_0x5335ab[_0x2eb4ac(0x113)][_0x2eb4ac(0x118)](_0x2eb4ac(0x11d)),_0xe16174=getSuggestionsV2(_0x3d714d[_0x2eb4ac(0x126)]({'toJSON':!0x0}),_0x541747[_0x2eb4ac(0x128)]);_0xe16174[_0x2eb4ac(0x13d)]&&(_0x54ad94[_0x2eb4ac(0x132)]=_0xe16174);}return(_0x54ad94[_0x2eb4ac(0x125)]||_0x54ad94[_0x2eb4ac(0x132)])&&(_0x4e67f3[_0x2eb4ac(0x134)]=new Intl[(_0x2eb4ac(0x12c))]()[_0x2eb4ac(0x12f)]()[_0x2eb4ac(0x11a)],_0x4e67f3[_0x2eb4ac(0x111)]=_0x54ad94),_0x4e67f3;}export function getCommentsV2(_0x5f29d2){const _0x4f32dc=_0x46df,_0x3ac119=[];if(!_0x5f29d2[_0x4f32dc(0x13d)])return _0x3ac119;for(const _0x554e8e of _0x5f29d2){const _0x42fd29=_0x554e8e[_0x4f32dc(0x12e)][_0x4f32dc(0x129)](_0x13a8c7=>({'author':_0x13a8c7[_0x4f32dc(0x112)][_0x4f32dc(0x10b)],'content':_0x13a8c7[_0x4f32dc(0x144)],'created_at':_0x13a8c7[_0x4f32dc(0x139)]}));_0x3ac119[_0x4f32dc(0x11c)]({'thread_id':_0x554e8e['id'],'is_resolved':_0x554e8e[_0x4f32dc(0x12b)],'comments':_0x42fd29});}return _0x3ac119;}export function getSuggestionsV2(_0x4895ae,_0xe80321){const _0x31add7=_0x46df;return _0x4895ae[_0x31add7(0x13d)]&&_0xe80321[_0x31add7(0x13d)]?_0x4895ae[_0x31add7(0x129)](_0x133f61=>({'id':_0x133f61['id'],'author':_0xe80321[_0x31add7(0x118)](_0x133f61[_0x31add7(0x121)])[_0x31add7(0x10b)],'created_at':_0x133f61[_0x31add7(0x139)]})):[];}