@univerjs-pro/exchange-client 1.0.0-alpha.3 → 1.0.0-alpha.5

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 (96) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.css +0 -4
  45. package/lib/index.js +1 -1
  46. package/lib/locale/ar-SA.js +1 -1
  47. package/lib/locale/ca-ES.js +1 -1
  48. package/lib/locale/de-DE.js +1 -1
  49. package/lib/locale/en-US.js +1 -1
  50. package/lib/locale/es-ES.js +1 -1
  51. package/lib/locale/fa-IR.js +1 -1
  52. package/lib/locale/fr-FR.js +1 -1
  53. package/lib/locale/id-ID.js +1 -1
  54. package/lib/locale/it-IT.js +1 -1
  55. package/lib/locale/ja-JP.js +1 -1
  56. package/lib/locale/ko-KR.js +1 -1
  57. package/lib/locale/pl-PL.js +1 -1
  58. package/lib/locale/pt-BR.js +1 -1
  59. package/lib/locale/ru-RU.js +1 -1
  60. package/lib/locale/sk-SK.js +1 -1
  61. package/lib/locale/vi-VN.js +1 -1
  62. package/lib/locale/zh-CN.js +1 -1
  63. package/lib/locale/zh-HK.js +1 -1
  64. package/lib/locale/zh-TW.js +1 -1
  65. package/lib/types/config/config.d.ts +0 -4
  66. package/lib/types/controllers/components.controller.d.ts +7 -0
  67. package/lib/types/controllers/exchange.controller.d.ts +3 -5
  68. package/lib/types/facade/f-univer.d.ts +45 -16
  69. package/lib/types/index.d.ts +2 -1
  70. package/lib/types/services/exchange.service.d.ts +16 -2
  71. package/lib/types/services/request.service.d.ts +0 -2
  72. package/lib/types/services/utils/content-type.d.ts +1 -0
  73. package/lib/types/services/utils/snapshot.d.ts +6 -2
  74. package/lib/types/services/utils/tool.d.ts +1 -0
  75. package/lib/umd/facade.js +1 -1
  76. package/lib/umd/index.js +1 -1
  77. package/lib/umd/locale/ar-SA.js +1 -1
  78. package/lib/umd/locale/ca-ES.js +1 -1
  79. package/lib/umd/locale/de-DE.js +1 -1
  80. package/lib/umd/locale/en-US.js +1 -1
  81. package/lib/umd/locale/es-ES.js +1 -1
  82. package/lib/umd/locale/fa-IR.js +1 -1
  83. package/lib/umd/locale/fr-FR.js +1 -1
  84. package/lib/umd/locale/id-ID.js +1 -1
  85. package/lib/umd/locale/it-IT.js +1 -1
  86. package/lib/umd/locale/ja-JP.js +1 -1
  87. package/lib/umd/locale/ko-KR.js +1 -1
  88. package/lib/umd/locale/pl-PL.js +1 -1
  89. package/lib/umd/locale/pt-BR.js +1 -1
  90. package/lib/umd/locale/ru-RU.js +1 -1
  91. package/lib/umd/locale/sk-SK.js +1 -1
  92. package/lib/umd/locale/vi-VN.js +1 -1
  93. package/lib/umd/locale/zh-CN.js +1 -1
  94. package/lib/umd/locale/zh-HK.js +1 -1
  95. package/lib/umd/locale/zh-TW.js +1 -1
  96. package/package.json +13 -12
@@ -1 +1 @@
1
- function _0x26d3(_0x52efec,_0x22915b){_0x52efec=_0x52efec-0x9e;const _0x31bf85=_0x31bf();let _0x26d392=_0x31bf85[_0x52efec];return _0x26d392;}function _0x31bf(){const _0x5326ed=['Arquivo\x20enviado\x20com\x20sucesso','60qaiMWJ','Erro\x20desconhecido','Enviando','51293vUsNkz','90DdFNnK','Baixando','231352vAXidq','A\x20conexão\x20de\x20rede\x20foi\x20interrompida\x20e\x20o\x20envio\x20do\x20arquivo\x20falhou','Aguarde...','14PDDxZx','4314174OdOTSG','312mGTSvf','Erro\x20interno\x20desconhecido','18852dFcZWe','Cancelar','Erro\x20de\x20rede','Download\x20concluído\x20com\x20sucesso','174080miTQGv','1742250JJQUvR','Os\x20dados\x20são\x20muito\x20grandes','29393hfeTrq','11693Vvaasi'];_0x31bf=function(){return _0x5326ed;};return _0x31bf();}const _0x110a79=_0x26d3;(function(_0x51805e,_0x403879){const _0x5d2480=_0x26d3,_0x587355=_0x51805e();while(!![]){try{const _0x4844f2=parseInt(_0x5d2480(0xac))/0x1*(-parseInt(_0x5d2480(0xb2))/0x2)+-parseInt(_0x5d2480(0xb3))/0x3+parseInt(_0x5d2480(0xa3))/0x4*(parseInt(_0x5d2480(0xa9))/0x5)+-parseInt(_0x5d2480(0xb4))/0x6*(-parseInt(_0x5d2480(0xa6))/0x7)+parseInt(_0x5d2480(0xaf))/0x8*(parseInt(_0x5d2480(0xad))/0x9)+-parseInt(_0x5d2480(0xa4))/0xa+-parseInt(_0x5d2480(0xa7))/0xb*(-parseInt(_0x5d2480(0x9f))/0xc);if(_0x4844f2===_0x403879)break;else _0x587355['push'](_0x587355['shift']());}catch(_0x24d1f6){_0x587355['push'](_0x587355['shift']());}}}(_0x31bf,0xb1d61));const e={'exchange-client':{'uploading':_0x110a79(0xab),'uploadSuccess':_0x110a79(0xa8),'uploadSuccessTip':'{0}\x20arquivo(s)\x20enviado(s)\x20com\x20sucesso','downloading':_0x110a79(0xae),'downloadSuccess':_0x110a79(0xa2),'unknownMistake':_0x110a79(0xaa),'networkError':_0x110a79(0xa1),'tooLarge':_0x110a79(0xa5),'internalError':_0x110a79(0x9e),'interrupt':_0x110a79(0xb0),'fileTypeError':'O\x20arquivo\x20selecionado\x20[{0}]\x20não\x20é\x20suportado\x20para\x20envio','wait':_0x110a79(0xb1),'cancel':_0x110a79(0xa0),'uploadAgain':'Enviar\x20novamente'}};export{e as default};
1
+ const _0x1178c4=_0x2386;(function(_0x36e6a9,_0x3b7577){const _0x32cb40=_0x2386,_0x57862b=_0x36e6a9();while(!![]){try{const _0x337fea=parseInt(_0x32cb40(0x93))/0x1+-parseInt(_0x32cb40(0x97))/0x2+-parseInt(_0x32cb40(0x8b))/0x3*(parseInt(_0x32cb40(0xa0))/0x4)+parseInt(_0x32cb40(0x9d))/0x5*(parseInt(_0x32cb40(0x89))/0x6)+-parseInt(_0x32cb40(0x8a))/0x7*(-parseInt(_0x32cb40(0x98))/0x8)+parseInt(_0x32cb40(0x91))/0x9*(parseInt(_0x32cb40(0xa1))/0xa)+-parseInt(_0x32cb40(0x95))/0xb;if(_0x337fea===_0x3b7577)break;else _0x57862b['push'](_0x57862b['shift']());}catch(_0x469447){_0x57862b['push'](_0x57862b['shift']());}}}(_0x4e6c,0x81faf));const e={'exchange-client':{'uploading':_0x1178c4(0x94),'uploadSuccess':_0x1178c4(0x9e),'uploadSuccessTip':_0x1178c4(0x9c),'downloading':_0x1178c4(0x96),'downloadSuccess':_0x1178c4(0x99),'unknownMistake':_0x1178c4(0x9b),'networkError':_0x1178c4(0x8d),'tooLarge':_0x1178c4(0x92),'internalError':_0x1178c4(0x8e),'interrupt':_0x1178c4(0x8c),'fileTypeError':_0x1178c4(0x8f),'wait':_0x1178c4(0x9f),'cancel':_0x1178c4(0x90),'uploadAgain':_0x1178c4(0x9a)}};function _0x2386(_0x55a219,_0x5edcbe){_0x55a219=_0x55a219-0x89;const _0x4e6c8f=_0x4e6c();let _0x2386f7=_0x4e6c8f[_0x55a219];return _0x2386f7;}export{e as default};function _0x4e6c(){const _0x4c429b=['Aguarde...','12xsOFSe','140WKAFoG','1081086mybphH','21007iVlbkL','96444zPyhRJ','A\x20conexão\x20de\x20rede\x20foi\x20interrompida\x20e\x20o\x20envio\x20do\x20arquivo\x20falhou','Erro\x20de\x20rede','Erro\x20interno\x20desconhecido','O\x20arquivo\x20selecionado\x20[{0}]\x20não\x20é\x20suportado\x20para\x20envio','Cancelar','207909YFOTbs','Os\x20dados\x20são\x20muito\x20grandes','1005603egjdft','Enviando','8389711dRVbBi','Baixando','2120420fqPwHw','1552FDefWu','Download\x20concluído\x20com\x20sucesso','Enviar\x20novamente','Erro\x20desconhecido','{0}\x20arquivo(s)\x20enviado(s)\x20com\x20sucesso','15HaWIuE','Arquivo\x20enviado\x20com\x20sucesso'];_0x4e6c=function(){return _0x4c429b;};return _0x4e6c();}
@@ -1 +1 @@
1
- const _0x29bd01=_0xebb9;function _0x278e(){const _0x73dc98=['2653884TYlxXb','10JZUACB','348316LMmssK','Данные\x20слишком\x20большие','85356HJRvRE','Внутренняя\x20неизвестная\x20ошибка','Пожалуйста,\x20подождите...','478454dwxoIb','Файл\x20успешно\x20загружен','Скачивание\x20успешно','119147hKIQOt','1bnSzNL','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','Загрузить\x20снова','Загрузка','84JbqJXl','Скачивание','3932472QPRlcq','17237890njdEmb'];_0x278e=function(){return _0x73dc98;};return _0x278e();}(function(_0x47848d,_0x4c705f){const _0x3a4aca=_0xebb9,_0x99148c=_0x47848d();while(!![]){try{const _0x382373=-parseInt(_0x3a4aca(0x185))/0x1*(parseInt(_0x3a4aca(0x181))/0x2)+-parseInt(_0x3a4aca(0x17e))/0x3+-parseInt(_0x3a4aca(0x17c))/0x4*(-parseInt(_0x3a4aca(0x17b))/0x5)+parseInt(_0x3a4aca(0x176))/0x6*(-parseInt(_0x3a4aca(0x184))/0x7)+-parseInt(_0x3a4aca(0x178))/0x8+-parseInt(_0x3a4aca(0x17a))/0x9+parseInt(_0x3a4aca(0x179))/0xa;if(_0x382373===_0x4c705f)break;else _0x99148c['push'](_0x99148c['shift']());}catch(_0x2c97d9){_0x99148c['push'](_0x99148c['shift']());}}}(_0x278e,0x93d63));const e={'exchange-client':{'uploading':_0x29bd01(0x175),'uploadSuccess':_0x29bd01(0x182),'uploadSuccessTip':'{0}\x20файл(ов)\x20успешно\x20загружен(о)','downloading':_0x29bd01(0x177),'downloadSuccess':_0x29bd01(0x183),'unknownMistake':'Неизвестная\x20ошибка','networkError':'Сетевая\x20ошибка','tooLarge':_0x29bd01(0x17d),'internalError':_0x29bd01(0x17f),'interrupt':_0x29bd01(0x186),'fileTypeError':'Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','wait':_0x29bd01(0x180),'cancel':'Отмена','uploadAgain':_0x29bd01(0x187)}};function _0xebb9(_0x4e097c,_0x308d95){_0x4e097c=_0x4e097c-0x175;const _0x278e56=_0x278e();let _0xebb9a7=_0x278e56[_0x4e097c];return _0xebb9a7;}export{e as default};
1
+ const _0x2d3a0c=_0x394c;(function(_0x1ebd4c,_0x114eed){const _0x526466=_0x394c,_0x2e3c3b=_0x1ebd4c();while(!![]){try{const _0x213549=-parseInt(_0x526466(0x142))/0x1*(parseInt(_0x526466(0x138))/0x2)+-parseInt(_0x526466(0x133))/0x3*(-parseInt(_0x526466(0x134))/0x4)+parseInt(_0x526466(0x13f))/0x5*(parseInt(_0x526466(0x135))/0x6)+parseInt(_0x526466(0x13d))/0x7+parseInt(_0x526466(0x132))/0x8*(parseInt(_0x526466(0x140))/0x9)+-parseInt(_0x526466(0x13a))/0xa+-parseInt(_0x526466(0x141))/0xb;if(_0x213549===_0x114eed)break;else _0x2e3c3b['push'](_0x2e3c3b['shift']());}catch(_0x1b2ca1){_0x2e3c3b['push'](_0x2e3c3b['shift']());}}}(_0x5e28,0xe0c0e));function _0x394c(_0x4d7adb,_0x1b9abd){_0x4d7adb=_0x4d7adb-0x130;const _0x5e284c=_0x5e28();let _0x394c47=_0x5e284c[_0x4d7adb];return _0x394c47;}const e={'exchange-client':{'uploading':'Загрузка','uploadSuccess':_0x2d3a0c(0x139),'uploadSuccessTip':'{0}\x20файл(ов)\x20успешно\x20загружен(о)','downloading':_0x2d3a0c(0x130),'downloadSuccess':'Скачивание\x20успешно','unknownMistake':_0x2d3a0c(0x131),'networkError':'Сетевая\x20ошибка','tooLarge':'Данные\x20слишком\x20большие','internalError':_0x2d3a0c(0x13c),'interrupt':_0x2d3a0c(0x13e),'fileTypeError':_0x2d3a0c(0x137),'wait':_0x2d3a0c(0x136),'cancel':_0x2d3a0c(0x13b),'uploadAgain':'Загрузить\x20снова'}};function _0x5e28(){const _0x3a7ceb=['438363PHIovG','1745788eICzgd','667xeextB','Скачивание','Неизвестная\x20ошибка','16YNmKPP','519rAvSMO','19696ONpmTU','534dCDesX','Пожалуйста,\x20подождите...','Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','4540OanEal','Файл\x20успешно\x20загружен','16175690TVMCDg','Отмена','Внутренняя\x20неизвестная\x20ошибка','10458434hOEsYO','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','99305jbtsuR'];_0x5e28=function(){return _0x3a7ceb;};return _0x5e28();}export{e as default};
@@ -1 +1 @@
1
- const _0x44d5d3=_0x3e64;function _0x3e64(_0xcc8da7,_0x566291){_0xcc8da7=_0xcc8da7-0xf3;const _0x497367=_0x4973();let _0x3e64bf=_0x497367[_0xcc8da7];return _0x3e64bf;}(function(_0x396e2a,_0x4f6235){const _0x5359fa=_0x3e64,_0xa13cd8=_0x396e2a();while(!![]){try{const _0x1625d4=parseInt(_0x5359fa(0x107))/0x1*(-parseInt(_0x5359fa(0x106))/0x2)+parseInt(_0x5359fa(0xfe))/0x3+parseInt(_0x5359fa(0x103))/0x4*(parseInt(_0x5359fa(0xf8))/0x5)+parseInt(_0x5359fa(0xff))/0x6*(parseInt(_0x5359fa(0xfb))/0x7)+parseInt(_0x5359fa(0x105))/0x8*(-parseInt(_0x5359fa(0xf5))/0x9)+-parseInt(_0x5359fa(0xf6))/0xa*(parseInt(_0x5359fa(0xf4))/0xb)+parseInt(_0x5359fa(0x108))/0xc;if(_0x1625d4===_0x4f6235)break;else _0xa13cd8['push'](_0xa13cd8['shift']());}catch(_0x2e9b9b){_0xa13cd8['push'](_0xa13cd8['shift']());}}}(_0x4973,0xa9ee1));function _0x4973(){const _0x26a57e=['4941321wdbbRd','Prosím\x20počkajte...','Dáta\x20sú\x20príliš\x20veľké','12786UjUiaA','6bGDQpd','Úspešne\x20nahraných\x20{0}\x20súborov','Interná\x20neznáma\x20chyba','Zrušiť','6880VrrpRQ','Sťahovanie\x20úspešné','41176tbCVQs','2PEuDFY','1257854DhKBde','5446116kSMkah','Súbor\x20bol\x20úspešne\x20nahraný','Nahrávanie','25773AEqxqW','333RwvnXA','940JkxZnA','Sieťové\x20pripojenie\x20bolo\x20prerušené\x20a\x20nahrávanie\x20súboru\x20zlyhalo','3490sxgqif','Nahrať\x20znova','Neznáma\x20chyba'];_0x4973=function(){return _0x26a57e;};return _0x4973();}const e={'exchange-client':{'uploading':_0x44d5d3(0xf3),'uploadSuccess':_0x44d5d3(0x109),'uploadSuccessTip':_0x44d5d3(0x100),'downloading':'Sťahovanie','downloadSuccess':_0x44d5d3(0x104),'unknownMistake':_0x44d5d3(0xfa),'networkError':'Sieťová\x20chyba','tooLarge':_0x44d5d3(0xfd),'internalError':_0x44d5d3(0x101),'interrupt':_0x44d5d3(0xf7),'fileTypeError':'Vybraný\x20súbor\x20[{0}]\x20nie\x20je\x20podporovaný\x20na\x20nahrávanie','wait':_0x44d5d3(0xfc),'cancel':_0x44d5d3(0x102),'uploadAgain':_0x44d5d3(0xf9)}};export{e as default};
1
+ const _0x55c31b=_0x2892;function _0x2892(_0xf5610b,_0x472f05){_0xf5610b=_0xf5610b-0x1af;const _0x45a4ad=_0x45a4();let _0x289232=_0x45a4ad[_0xf5610b];return _0x289232;}(function(_0x58629c,_0x445083){const _0x1b2217=_0x2892,_0x3e6fba=_0x58629c();while(!![]){try{const _0x4b36d0=parseInt(_0x1b2217(0x1b8))/0x1*(-parseInt(_0x1b2217(0x1bd))/0x2)+-parseInt(_0x1b2217(0x1af))/0x3*(-parseInt(_0x1b2217(0x1b4))/0x4)+parseInt(_0x1b2217(0x1c1))/0x5*(parseInt(_0x1b2217(0x1be))/0x6)+parseInt(_0x1b2217(0x1bb))/0x7*(-parseInt(_0x1b2217(0x1b1))/0x8)+parseInt(_0x1b2217(0x1b6))/0x9*(parseInt(_0x1b2217(0x1c0))/0xa)+-parseInt(_0x1b2217(0x1b9))/0xb*(-parseInt(_0x1b2217(0x1bf))/0xc)+-parseInt(_0x1b2217(0x1c5))/0xd;if(_0x4b36d0===_0x445083)break;else _0x3e6fba['push'](_0x3e6fba['shift']());}catch(_0x27f31a){_0x3e6fba['push'](_0x3e6fba['shift']());}}}(_0x45a4,0xd8231));const e={'exchange-client':{'uploading':'Nahrávanie','uploadSuccess':_0x55c31b(0x1c4),'uploadSuccessTip':_0x55c31b(0x1b5),'downloading':_0x55c31b(0x1b7),'downloadSuccess':_0x55c31b(0x1b0),'unknownMistake':_0x55c31b(0x1b3),'networkError':_0x55c31b(0x1c6),'tooLarge':_0x55c31b(0x1ba),'internalError':'Interná\x20neznáma\x20chyba','interrupt':'Sieťové\x20pripojenie\x20bolo\x20prerušené\x20a\x20nahrávanie\x20súboru\x20zlyhalo','fileTypeError':_0x55c31b(0x1c3),'wait':_0x55c31b(0x1c2),'cancel':_0x55c31b(0x1b2),'uploadAgain':_0x55c31b(0x1bc)}};export{e as default};function _0x45a4(){const _0x5aecc7=['Neznáma\x20chyba','4smTqXc','Úspešne\x20nahraných\x20{0}\x20súborov','8774847zqUCGB','Sťahovanie','2197WdHulY','11FrczCh','Dáta\x20sú\x20príliš\x20veľké','775397LEWZQN','Nahrať\x20znova','458oulWSF','144HIBpTO','7574484nzLHEt','10UCNJNV','314255nwkkqj','Prosím\x20počkajte...','Vybraný\x20súbor\x20[{0}]\x20nie\x20je\x20podporovaný\x20na\x20nahrávanie','Súbor\x20bol\x20úspešne\x20nahraný','26083902yjwKfr','Sieťová\x20chyba','1173063nsDaSD','Sťahovanie\x20úspešné','8RawBta','Zrušiť'];_0x45a4=function(){return _0x5aecc7;};return _0x45a4();}
@@ -1 +1 @@
1
- function _0x55ca(_0x44a5c4,_0xcfe6e7){_0x44a5c4=_0x44a5c4-0x1df;const _0x503434=_0x5034();let _0x55ca26=_0x503434[_0x44a5c4];return _0x55ca26;}const _0xe8fdd1=_0x55ca;function _0x5034(){const _0x225a10=['Lỗi\x20không\x20xác\x20định','6PmeBfq','Vui\x20lòng\x20đợi...','4013065PpCoRB','2BlQReq','Tải\x20xuống\x20thành\x20công','122454UrOnFp','58625196TpIVJI','Đang\x20tải\x20xuống','10DHjvbP','4943995BtGnqw','12842643GUzbMh','977249WCucxh','8QwMSlN','Tải\x20lên\x20lại','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','4834521nsRTzO','8jTYnVs','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','Hủy\x20bỏ','Đang\x20tải\x20lên'];_0x5034=function(){return _0x225a10;};return _0x5034();}(function(_0x329b1b,_0x244856){const _0x522c83=_0x55ca,_0x434fcb=_0x329b1b();while(!![]){try{const _0xb4e68d=-parseInt(_0x522c83(0x1e1))/0x1*(parseInt(_0x522c83(0x1ef))/0x2)+-parseInt(_0x522c83(0x1f1))/0x3*(parseInt(_0x522c83(0x1e2))/0x4)+-parseInt(_0x522c83(0x1ee))/0x5+parseInt(_0x522c83(0x1ec))/0x6*(-parseInt(_0x522c83(0x1df))/0x7)+parseInt(_0x522c83(0x1e6))/0x8*(-parseInt(_0x522c83(0x1e5))/0x9)+parseInt(_0x522c83(0x1f4))/0xa*(-parseInt(_0x522c83(0x1e0))/0xb)+parseInt(_0x522c83(0x1f2))/0xc;if(_0xb4e68d===_0x244856)break;else _0x434fcb['push'](_0x434fcb['shift']());}catch(_0x381020){_0x434fcb['push'](_0x434fcb['shift']());}}}(_0x5034,0x95a68));const e={'exchange-client':{'uploading':_0xe8fdd1(0x1ea),'uploadSuccess':'Tải\x20lên\x20tệp\x20thành\x20công','uploadSuccessTip':'{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','downloading':_0xe8fdd1(0x1f3),'downloadSuccess':_0xe8fdd1(0x1f0),'unknownMistake':_0xe8fdd1(0x1eb),'networkError':'Lỗi\x20mạng','tooLarge':'Luồng\x20dữ\x20liệu\x20quá\x20lớn','internalError':_0xe8fdd1(0x1e7),'interrupt':_0xe8fdd1(0x1e8),'fileTypeError':_0xe8fdd1(0x1e4),'wait':_0xe8fdd1(0x1ed),'cancel':_0xe8fdd1(0x1e9),'uploadAgain':_0xe8fdd1(0x1e3)}};export{e as default};
1
+ const _0x2b6458=_0x4039;(function(_0x232cc2,_0x14c2f1){const _0x1151ba=_0x4039,_0x2e75ad=_0x232cc2();while(!![]){try{const _0x52c5f9=-parseInt(_0x1151ba(0x108))/0x1+parseInt(_0x1151ba(0x112))/0x2+parseInt(_0x1151ba(0x104))/0x3+parseInt(_0x1151ba(0x107))/0x4*(parseInt(_0x1151ba(0x10f))/0x5)+parseInt(_0x1151ba(0x105))/0x6+-parseInt(_0x1151ba(0x110))/0x7+-parseInt(_0x1151ba(0x10c))/0x8;if(_0x52c5f9===_0x14c2f1)break;else _0x2e75ad['push'](_0x2e75ad['shift']());}catch(_0x5967b6){_0x2e75ad['push'](_0x2e75ad['shift']());}}}(_0x72bc,0x62406));const e={'exchange-client':{'uploading':_0x2b6458(0x109),'uploadSuccess':_0x2b6458(0x115),'uploadSuccessTip':_0x2b6458(0x103),'downloading':_0x2b6458(0x114),'downloadSuccess':'Tải\x20xuống\x20thành\x20công','unknownMistake':_0x2b6458(0x111),'networkError':_0x2b6458(0x10e),'tooLarge':_0x2b6458(0x10d),'internalError':_0x2b6458(0x106),'interrupt':_0x2b6458(0x10a),'fileTypeError':'Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','wait':_0x2b6458(0x10b),'cancel':_0x2b6458(0x113),'uploadAgain':'Tải\x20lên\x20lại'}};function _0x72bc(){const _0x4e6fde=['505504WQkFDs','Luồng\x20dữ\x20liệu\x20quá\x20lớn','Lỗi\x20mạng','2648845hjnEzs','3660741jZOxFH','Lỗi\x20không\x20xác\x20định','544928IeSLPS','Hủy\x20bỏ','Đang\x20tải\x20xuống','Tải\x20lên\x20tệp\x20thành\x20công','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','1305303rgdySc','3125580KmHcXv','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','4uaBSRC','769675jtliaz','Đang\x20tải\x20lên','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','Vui\x20lòng\x20đợi...'];_0x72bc=function(){return _0x4e6fde;};return _0x72bc();}function _0x4039(_0x750c78,_0x2d670f){_0x750c78=_0x750c78-0x103;const _0x72bcb9=_0x72bc();let _0x4039d7=_0x72bcb9[_0x750c78];return _0x4039d7;}export{e as default};
@@ -1 +1 @@
1
- const _0x4111ab=_0x66da;(function(_0x49010d,_0x33fb85){const _0x240fa2=_0x66da,_0x7b0a1f=_0x49010d();while(!![]){try{const _0x64f377=-parseInt(_0x240fa2(0x1da))/0x1+parseInt(_0x240fa2(0x1dc))/0x2*(parseInt(_0x240fa2(0x1ce))/0x3)+-parseInt(_0x240fa2(0x1cf))/0x4*(-parseInt(_0x240fa2(0x1d3))/0x5)+parseInt(_0x240fa2(0x1d1))/0x6*(parseInt(_0x240fa2(0x1cc))/0x7)+-parseInt(_0x240fa2(0x1db))/0x8*(-parseInt(_0x240fa2(0x1d9))/0x9)+-parseInt(_0x240fa2(0x1c9))/0xa*(-parseInt(_0x240fa2(0x1d4))/0xb)+-parseInt(_0x240fa2(0x1d8))/0xc*(parseInt(_0x240fa2(0x1c8))/0xd);if(_0x64f377===_0x33fb85)break;else _0x7b0a1f['push'](_0x7b0a1f['shift']());}catch(_0x330bb7){_0x7b0a1f['push'](_0x7b0a1f['shift']());}}}(_0x45c8,0x32f5e));function _0x45c8(){const _0x270740=['24YBOPeR','11781nrGedO','323880aHGxnJ','2504XjHlPt','2dDLxUL','网络异常','再次上传','6470321SDvHPQ','2060kZwxrS','数据流过大','下载成功','14VagrYM','文件上传成功','670185AjYYQt','620220mYPbnE','未知错误','964674miDrxU','网络连接中断,文件上传失败','10wNrgpf','14058qvjLlL','请稍等...','所选文件\x20[{0}]\x20不支持上传','上传中'];_0x45c8=function(){return _0x270740;};return _0x45c8();}const e={'exchange-client':{'uploading':_0x4111ab(0x1d7),'uploadSuccess':_0x4111ab(0x1cd),'uploadSuccessTip':'{0}个文件上传成功','downloading':'下载中','downloadSuccess':_0x4111ab(0x1cb),'unknownMistake':_0x4111ab(0x1d0),'networkError':_0x4111ab(0x1dd),'tooLarge':_0x4111ab(0x1ca),'internalError':'内部未知错误','interrupt':_0x4111ab(0x1d2),'fileTypeError':_0x4111ab(0x1d6),'wait':_0x4111ab(0x1d5),'cancel':'取消','uploadAgain':_0x4111ab(0x1c7)}};function _0x66da(_0xa45e5c,_0x3c199d){_0xa45e5c=_0xa45e5c-0x1c7;const _0x45c82c=_0x45c8();let _0x66da41=_0x45c82c[_0xa45e5c];return _0x66da41;}export{e as default};
1
+ const _0x2c726d=_0xf319;function _0x3723(){const _0x4ee176=['1769004McezWr','数据流过大','4OIdtjh','下载中','网络异常','上传中','网络连接中断,文件上传失败','2637eWheVA','1573649CyKTFc','111705uvuuje','{0}个文件上传成功','内部未知错误','文件上传成功','100TdwLaC','20rnxrsd','5176bhJLhq','1198834GOlWUS','所选文件\x20[{0}]\x20不支持上传','未知错误','428310dztUsy','131277nhANJx'];_0x3723=function(){return _0x4ee176;};return _0x3723();}(function(_0x3f3c3f,_0x476bf2){const _0x750443=_0xf319,_0x4d6db4=_0x3f3c3f();while(!![]){try{const _0x3427bf=parseInt(_0x750443(0x1ec))/0x1*(-parseInt(_0x750443(0x1ef))/0x2)+-parseInt(_0x750443(0x1eb))/0x3+-parseInt(_0x750443(0x1fb))/0x4*(parseInt(_0x750443(0x1f6))/0x5)+-parseInt(_0x750443(0x1ed))/0x6+-parseInt(_0x750443(0x1fd))/0x7+-parseInt(_0x750443(0x1fc))/0x8*(parseInt(_0x750443(0x1f4))/0x9)+parseInt(_0x750443(0x1fa))/0xa*(parseInt(_0x750443(0x1f5))/0xb);if(_0x3427bf===_0x476bf2)break;else _0x4d6db4['push'](_0x4d6db4['shift']());}catch(_0x5638ec){_0x4d6db4['push'](_0x4d6db4['shift']());}}}(_0x3723,0x3ef66));const e={'exchange-client':{'uploading':_0x2c726d(0x1f2),'uploadSuccess':_0x2c726d(0x1f9),'uploadSuccessTip':_0x2c726d(0x1f7),'downloading':_0x2c726d(0x1f0),'downloadSuccess':'下载成功','unknownMistake':_0x2c726d(0x1ea),'networkError':_0x2c726d(0x1f1),'tooLarge':_0x2c726d(0x1ee),'internalError':_0x2c726d(0x1f8),'interrupt':_0x2c726d(0x1f3),'fileTypeError':_0x2c726d(0x1e9),'wait':'请稍等...','cancel':'取消','uploadAgain':'再次上传'}};function _0xf319(_0x50f472,_0x345e3f){_0x50f472=_0x50f472-0x1e9;const _0x3723c9=_0x3723();let _0xf31997=_0x3723c9[_0x50f472];return _0xf31997;}export{e as default};
@@ -1 +1 @@
1
- const _0x4de68b=_0x3ff0;function _0x3ff0(_0x456d2f,_0x32565f){_0x456d2f=_0x456d2f-0x178;const _0x3b1854=_0x3b18();let _0x3ff04e=_0x3b1854[_0x456d2f];return _0x3ff04e;}function _0x3b18(){const _0x31dfb1=['請稍等...','304443xzJXGk','130vHDdPF','網絡異常','4839241nOOohi','網絡連線中斷,檔案上傳失敗','36VNngyl','29BRzYeb','80778bmNMsJ','4749235XCztfj','未知錯誤','16duKHFS','檔案上傳成功','內部未知錯誤','資料流過大','126VyVCua','19862GcTINR','340683RxzscJ','{0}個檔案上傳成功','1061304mUJVwA'];_0x3b18=function(){return _0x31dfb1;};return _0x3b18();}(function(_0x533af6,_0x2a2692){const _0x1ed051=_0x3ff0,_0x2b3edc=_0x533af6();while(!![]){try{const _0x230b2b=-parseInt(_0x1ed051(0x185))/0x1*(-parseInt(_0x1ed051(0x17a))/0x2)+-parseInt(_0x1ed051(0x186))/0x3*(parseInt(_0x1ed051(0x189))/0x4)+parseInt(_0x1ed051(0x187))/0x5+parseInt(_0x1ed051(0x179))/0x6*(parseInt(_0x1ed051(0x17b))/0x7)+parseInt(_0x1ed051(0x17d))/0x8+-parseInt(_0x1ed051(0x17f))/0x9*(parseInt(_0x1ed051(0x180))/0xa)+parseInt(_0x1ed051(0x182))/0xb*(-parseInt(_0x1ed051(0x184))/0xc);if(_0x230b2b===_0x2a2692)break;else _0x2b3edc['push'](_0x2b3edc['shift']());}catch(_0x1c7de8){_0x2b3edc['push'](_0x2b3edc['shift']());}}}(_0x3b18,0x803fe));const e={'exchange-client':{'uploading':'上傳中','uploadSuccess':_0x4de68b(0x18a),'uploadSuccessTip':_0x4de68b(0x17c),'downloading':'下載中','downloadSuccess':'下載成功','unknownMistake':_0x4de68b(0x188),'networkError':_0x4de68b(0x181),'tooLarge':_0x4de68b(0x178),'internalError':_0x4de68b(0x18b),'interrupt':_0x4de68b(0x183),'fileTypeError':'所選檔案\x20[{0}]\x20不支援上傳','wait':_0x4de68b(0x17e),'cancel':'取消','uploadAgain':'再次上傳'}};export{e as default};
1
+ const _0x423989=_0x296a;(function(_0x2db166,_0x31296d){const _0x803eee=_0x296a,_0x80b33a=_0x2db166();while(!![]){try{const _0x558742=-parseInt(_0x803eee(0x1cc))/0x1*(parseInt(_0x803eee(0x1cd))/0x2)+parseInt(_0x803eee(0x1d5))/0x3+-parseInt(_0x803eee(0x1c5))/0x4+-parseInt(_0x803eee(0x1c8))/0x5*(parseInt(_0x803eee(0x1cb))/0x6)+parseInt(_0x803eee(0x1cf))/0x7*(-parseInt(_0x803eee(0x1d0))/0x8)+-parseInt(_0x803eee(0x1d4))/0x9*(-parseInt(_0x803eee(0x1d1))/0xa)+parseInt(_0x803eee(0x1c3))/0xb;if(_0x558742===_0x31296d)break;else _0x80b33a['push'](_0x80b33a['shift']());}catch(_0x51555e){_0x80b33a['push'](_0x80b33a['shift']());}}}(_0x12d8,0x4dfda));function _0x12d8(){const _0x3d804d=['28ccFSmD','317464grJqjf','10NKbktR','網絡連線中斷,檔案上傳失敗','再次上傳','1530639fnclFg','1845912ygncvn','檔案上傳成功','內部未知錯誤','2090869lgKxBP','網絡異常','913972zfmMBY','下載成功','下載中','340115YVyZys','上傳中','資料流過大','18AAEZRJ','21570SZwsUy','6bblGfT','{0}個檔案上傳成功'];_0x12d8=function(){return _0x3d804d;};return _0x12d8();}function _0x296a(_0x51fb94,_0x5739f2){_0x51fb94=_0x51fb94-0x1c3;const _0x12d862=_0x12d8();let _0x296a70=_0x12d862[_0x51fb94];return _0x296a70;}const e={'exchange-client':{'uploading':_0x423989(0x1c9),'uploadSuccess':_0x423989(0x1d6),'uploadSuccessTip':_0x423989(0x1ce),'downloading':_0x423989(0x1c7),'downloadSuccess':_0x423989(0x1c6),'unknownMistake':'未知錯誤','networkError':_0x423989(0x1c4),'tooLarge':_0x423989(0x1ca),'internalError':_0x423989(0x1d7),'interrupt':_0x423989(0x1d2),'fileTypeError':'所選檔案\x20[{0}]\x20不支援上傳','wait':'請稍等...','cancel':'取消','uploadAgain':_0x423989(0x1d3)}};export{e as default};
@@ -1 +1 @@
1
- const _0x59a6ca=_0x417b;(function(_0x4b494a,_0x121409){const _0x12e60c=_0x417b,_0x456029=_0x4b494a();while(!![]){try{const _0x3c525b=parseInt(_0x12e60c(0x1ad))/0x1+parseInt(_0x12e60c(0x1b8))/0x2+parseInt(_0x12e60c(0x1b0))/0x3+-parseInt(_0x12e60c(0x1ab))/0x4*(-parseInt(_0x12e60c(0x1af))/0x5)+parseInt(_0x12e60c(0x1b4))/0x6*(-parseInt(_0x12e60c(0x1ba))/0x7)+parseInt(_0x12e60c(0x1ac))/0x8+parseInt(_0x12e60c(0x1a9))/0x9*(-parseInt(_0x12e60c(0x1aa))/0xa);if(_0x3c525b===_0x121409)break;else _0x456029['push'](_0x456029['shift']());}catch(_0xf81b65){_0x456029['push'](_0x456029['shift']());}}}(_0x52c5,0xcd488));const e={'exchange-client':{'uploading':_0x59a6ca(0x1b6),'uploadSuccess':'檔案上傳成功','uploadSuccessTip':_0x59a6ca(0x1b5),'downloading':'下載中','downloadSuccess':_0x59a6ca(0x1bd),'unknownMistake':_0x59a6ca(0x1ae),'networkError':_0x59a6ca(0x1b7),'tooLarge':_0x59a6ca(0x1b9),'internalError':_0x59a6ca(0x1b1),'interrupt':_0x59a6ca(0x1bc),'fileTypeError':_0x59a6ca(0x1b2),'wait':_0x59a6ca(0x1bb),'cancel':'取消','uploadAgain':_0x59a6ca(0x1b3)}};function _0x417b(_0x447736,_0x3d14d2){_0x447736=_0x447736-0x1a9;const _0x52c53b=_0x52c5();let _0x417b70=_0x52c53b[_0x447736];return _0x417b70;}export{e as default};function _0x52c5(){const _0xbbcc66=['494154heVRyJ','140OZmgov','1115740AdFRAc','3587864dvQijM','627138CZDMnB','未知錯誤','5yHxPEe','4148922QCOQxV','內部未知錯誤','所選檔案\x20[{0}]\x20不支援上傳','再次上傳','65922yRgeoh','{0}個檔案上傳成功','上傳中','網路異常','205076BZyhmG','資料流過大','784RaouNa','請稍等...','網路連線中斷,檔案上傳失敗','下載成功'];_0x52c5=function(){return _0xbbcc66;};return _0x52c5();}
1
+ const _0x570e01=_0x3702;(function(_0x3eb190,_0x4513e2){const _0x4a1f11=_0x3702,_0x4b1bf6=_0x3eb190();while(!![]){try{const _0x3706d3=-parseInt(_0x4a1f11(0x104))/0x1+-parseInt(_0x4a1f11(0xfc))/0x2*(parseInt(_0x4a1f11(0xfe))/0x3)+parseInt(_0x4a1f11(0x103))/0x4+parseInt(_0x4a1f11(0x105))/0x5+parseInt(_0x4a1f11(0x107))/0x6+parseInt(_0x4a1f11(0x102))/0x7+-parseInt(_0x4a1f11(0xff))/0x8;if(_0x3706d3===_0x4513e2)break;else _0x4b1bf6['push'](_0x4b1bf6['shift']());}catch(_0x2c7df6){_0x4b1bf6['push'](_0x4b1bf6['shift']());}}}(_0x5a15,0x66f71));function _0x3702(_0x4750cc,_0x5847c0){_0x4750cc=_0x4750cc-0xf9;const _0x5a15ac=_0x5a15();let _0x37028e=_0x5a15ac[_0x4750cc];return _0x37028e;}const e={'exchange-client':{'uploading':_0x570e01(0xfa),'uploadSuccess':_0x570e01(0x106),'uploadSuccessTip':'{0}個檔案上傳成功','downloading':'下載中','downloadSuccess':_0x570e01(0x101),'unknownMistake':_0x570e01(0xfd),'networkError':_0x570e01(0x100),'tooLarge':'資料流過大','internalError':'內部未知錯誤','interrupt':'網路連線中斷,檔案上傳失敗','fileTypeError':'所選檔案\x20[{0}]\x20不支援上傳','wait':_0x570e01(0xf9),'cancel':'取消','uploadAgain':_0x570e01(0xfb)}};export{e as default};function _0x5a15(){const _0x21db2c=['501351LwhCHL','6301472kPcNZJ','網路異常','下載成功','413854YACgKV','2615636RubdiW','21416pyiOXI','1606835RJwrgm','檔案上傳成功','2181384yyjZNB','請稍等...','上傳中','再次上傳','2XefUmt','未知錯誤'];_0x5a15=function(){return _0x21db2c;};return _0x5a15();}
@@ -9,10 +9,6 @@ export interface IUniverExchangeClientOptions {
9
9
  * The minimum number of columns in the worksheet after import.
10
10
  */
11
11
  minSheetColumnCount?: number;
12
- /**
13
- * Export whether to enable server-side formula computing.
14
- */
15
- enableServerSideComputing?: boolean;
16
12
  /**
17
13
  * Whether to disable converting cell images to link on export.
18
14
  * If the cell image source is a URL, the default behavior is to convert the url to the cell value on export.
@@ -0,0 +1,7 @@
1
+ import { Disposable } from '@univerjs/core';
2
+ import { IconManager } from '@univerjs/ui';
3
+ export declare class ComponentsController extends Disposable {
4
+ private readonly _iconManager;
5
+ constructor(_iconManager: IconManager);
6
+ private _registerIcons;
7
+ }
@@ -1,10 +1,8 @@
1
1
  import { Disposable, Injector } from '@univerjs/core';
2
- import { IconManager, IUIPartsService } from '@univerjs/ui';
2
+ import { IUIPartsService } from '@univerjs/ui';
3
3
  export declare class ExchangeClientController extends Disposable {
4
4
  private readonly _injector;
5
5
  private readonly _uiPartsService;
6
- private readonly _iconManager;
7
- constructor(_injector: Injector, _uiPartsService: IUIPartsService, _iconManager: IconManager);
8
- private _registerIcons;
9
- private _registerComponents;
6
+ constructor(_injector: Injector, _uiPartsService: IUIPartsService);
7
+ private _registerUIParts;
10
8
  }
@@ -1,10 +1,35 @@
1
- import type { IExchangeSlideDocumentData } from '@univerjs-pro/exchange-client';
1
+ import type { IExchangeSlideDocumentData, ISnapshotBlockJson, ISnapshotBlockJsonResponse } from '@univerjs-pro/exchange-client';
2
2
  import type { IDocumentData, IWorkbookData } from '@univerjs/core';
3
3
  import { FUniver } from '@univerjs/core/facade';
4
4
  /**
5
5
  * @ignore
6
6
  */
7
7
  export interface IFUniverExchangeClientMixin {
8
+ /**
9
+ * Trigger a browser download for a file or blob.
10
+ * @param file File or blob to download
11
+ * @param filename Filename without extension
12
+ * @param fileExt File extension without a leading dot
13
+ *
14
+ * @example
15
+ * ```typescript
16
+ * const file = await univerAPI.exportXLSXByUnitIdAsync(unitId);
17
+ * if (file) univerAPI.downloadFile(file, 'univer', 'xlsx');
18
+ * ```
19
+ */
20
+ downloadFile(file: File | Blob, filename: string, fileExt: string): void;
21
+ /**
22
+ * Transform snapshot JSON returned by the exchange service to workbook data.
23
+ * @param json Snapshot JSON returned by the exchange service
24
+ * @returns Workbook data
25
+ */
26
+ transformSnapshotJsonToWorkbookDataAsync(json: ISnapshotBlockJsonResponse): Promise<IWorkbookData>;
27
+ /**
28
+ * Transform workbook data to snapshot JSON accepted by the exchange service.
29
+ * @param workbookData Workbook data
30
+ * @returns Snapshot JSON
31
+ */
32
+ transformWorkbookDataToSnapshotJsonAsync(workbookData: IWorkbookData): Promise<ISnapshotBlockJson>;
8
33
  /**
9
34
  * Import XLSX file to unit id
10
35
  * @param {string | File} file File path or file object
@@ -54,16 +79,14 @@ export interface IFUniverExchangeClientMixin {
54
79
  *
55
80
  * @example
56
81
  * ```typescript
57
- * import { downloadFile } from '@univerjs-pro/exchange-client';
58
- *
59
82
  * const fWorkbook = univerAPI.getActiveWorkbook();
60
83
  * const unitId = fWorkbook.getId();
61
84
  * const file = await univerAPI.exportXLSXByUnitIdAsync(unitId);
62
85
  * // or with server-side calculation enabled
63
- * // const file = await univerAPI.exportXLSXByUnitIdAsync(unitId, { enableServerCalculation: true });
86
+ * // const file = await univerAPI.exportXLSXByUnitIdAsync(unitId);
64
87
  *
65
88
  * // Download the file
66
- * downloadFile(file, 'univer', 'xlsx');
89
+ * univerAPI.downloadFile(file, 'univer', 'xlsx');
67
90
  * ```
68
91
  */
69
92
  exportXLSXByUnitIdAsync(unitId: string): Promise<File | undefined>;
@@ -74,8 +97,6 @@ export interface IFUniverExchangeClientMixin {
74
97
  *
75
98
  * @example
76
99
  * ```typescript
77
- * import { downloadFile } from '@univerjs-pro/exchange-client';
78
- *
79
100
  * const fWorkbook = univerAPI.getActiveWorkbook();
80
101
  * const snapshot = fWorkbook.save();
81
102
  * const file = await univerAPI.exportXLSXBySnapshotAsync(snapshot);
@@ -83,7 +104,7 @@ export interface IFUniverExchangeClientMixin {
83
104
  * // const file = await univerAPI.exportXLSXBySnapshotAsync(snapshot, { enableServerCalculation: true });
84
105
  *
85
106
  * // Download the file
86
- * downloadFile(file, 'univer', 'xlsx');
107
+ * univerAPI.downloadFile(file, 'univer', 'xlsx');
87
108
  * ```
88
109
  */
89
110
  exportXLSXBySnapshotAsync(snapshot: IWorkbookData): Promise<File | undefined>;
@@ -133,7 +154,7 @@ export interface IFUniverExchangeClientMixin {
133
154
  * ```typescript
134
155
  * const snapshot = univerAPI.getActiveDocument().save();
135
156
  * const file = await univerAPI.exportDOCXBySnapshotAsync(snapshot);
136
- * downloadFile(file, 'univer', 'docx');
157
+ * univerAPI.downloadFile(file, 'univer', 'docx');
137
158
  * ```
138
159
  */
139
160
  exportDOCXBySnapshotAsync(snapshot: IDocumentData): Promise<File | undefined>;
@@ -146,7 +167,7 @@ export interface IFUniverExchangeClientMixin {
146
167
  * ```typescript
147
168
  * const unitId = univerAPI.getActiveWorkbook().getId();
148
169
  * const file = await univerAPI.exportDOCXByUnitIdAsync(unitId);
149
- * downloadFile(file, 'univer', 'docx');
170
+ * univerAPI.downloadFile(file, 'univer', 'docx');
150
171
  * ```
151
172
  */
152
173
  exportDOCXByUnitIdAsync(unitId: string): Promise<File | undefined>;
@@ -193,14 +214,12 @@ export interface IFUniverExchangeClientMixin {
193
214
  *
194
215
  * @example
195
216
  * ```typescript
196
- * import { downloadFile } from '@univerjs-pro/exchange-client';
197
- *
198
217
  * const fPresentation = univerAPI.getActivePresentation();
199
218
  * const unitId = fPresentation.getId();
200
219
  * const file = await univerAPI.exportPPTXByUnitIdAsync(unitId);
201
220
  *
202
221
  * // Download the file
203
- * downloadFile(file, 'univer', 'pptx');
222
+ * univerAPI.downloadFile(file, 'univer', 'pptx');
204
223
  * ```
205
224
  */
206
225
  exportPPTXByUnitIdAsync(unitId: string): Promise<File | undefined>;
@@ -211,18 +230,28 @@ export interface IFUniverExchangeClientMixin {
211
230
  *
212
231
  * @example
213
232
  * ```typescript
214
- * import { downloadFile } from '@univerjs-pro/exchange-client';
215
- *
216
233
  * const snapshot = univerAPI.getActivePresentation().save();
217
234
  * const file = await univerAPI.exportPPTXBySnapshotAsync(snapshot);
218
235
  *
219
236
  * // Download the file
220
- * downloadFile(file, 'univer', 'pptx');
237
+ * univerAPI.downloadFile(file, 'univer', 'pptx');
221
238
  * ```
222
239
  */
223
240
  exportPPTXBySnapshotAsync(snapshot: IExchangeSlideDocumentData): Promise<File | undefined>;
224
241
  }
225
242
  export declare class FUniverExchangeClientMixin extends FUniver implements IFUniverExchangeClientMixin {
243
+ /**
244
+ * Trigger a browser download for a file or blob.
245
+ */
246
+ downloadFile(file: File | Blob, filename: string, fileExt: string): void;
247
+ /**
248
+ * Transform snapshot JSON to workbook data.
249
+ */
250
+ transformSnapshotJsonToWorkbookDataAsync(json: ISnapshotBlockJsonResponse): Promise<IWorkbookData>;
251
+ /**
252
+ * Transform workbook data to snapshot JSON.
253
+ */
254
+ transformWorkbookDataToSnapshotJsonAsync(workbookData: IWorkbookData): Promise<ISnapshotBlockJson>;
226
255
  /**
227
256
  * Import XLSX file to unit id
228
257
  */
@@ -3,5 +3,6 @@ export type { IUniverExchangeClientOptions } from './config/config';
3
3
  export { UniverExchangeClientPlugin } from './plugin';
4
4
  export { IExchangeService } from './services/exchange.service';
5
5
  export { IExchangeOperateService } from './services/operate.service';
6
- export type { IExchangeSlideDocumentData } from './services/utils/snapshot';
6
+ export { transformSnapshotJsonToWorkbookData, transformWorkbookDataToSnapshotJson, } from './services/utils/snapshot';
7
+ export type { IExchangeSlideDocumentData, ISnapshotBlockJson, ISnapshotBlockJsonResponse, } from './services/utils/snapshot';
7
8
  export { downloadFile } from './services/utils/tool';
@@ -2,7 +2,7 @@ import type { IDisposable, IDocumentData, IWorkbookData } from '@univerjs/core';
2
2
  import type { IError } from '@univerjs/protocol';
3
3
  import type { Observable } from 'rxjs';
4
4
  import type { RequestService } from './request.service';
5
- import type { IExchangeSlideDocumentData } from './utils/snapshot';
5
+ import type { IExchangeSlideDocumentData, ISnapshotBlockJson, ISnapshotBlockJsonResponse } from './utils/snapshot';
6
6
  import { Disposable, IConfigService, UniverInstanceType } from '@univerjs/core';
7
7
  import { HTTPService } from '@univerjs/network';
8
8
  export declare enum RequestState {
@@ -20,6 +20,18 @@ export interface IRequestState {
20
20
  }
21
21
  export interface IExchangeService {
22
22
  requestState$: Observable<IRequestState>;
23
+ /**
24
+ * Download a file in the browser.
25
+ */
26
+ downloadFile(file: File | Blob, filename: string, fileExt: string): void;
27
+ /**
28
+ * Transform snapshot JSON to workbook data.
29
+ */
30
+ transformSnapshotJsonToWorkbookData(json: ISnapshotBlockJsonResponse): Promise<IWorkbookData>;
31
+ /**
32
+ * Transform workbook data to snapshot JSON.
33
+ */
34
+ transformWorkbookDataToSnapshotJson(workbookData: IWorkbookData): Promise<ISnapshotBlockJson>;
23
35
  /**
24
36
  * Import XLSX file to workbook data
25
37
  * @param file
@@ -97,6 +109,9 @@ export declare class ExchangeService extends Disposable implements IExchangeServ
97
109
  readonly requestState$: Observable<IRequestState>;
98
110
  constructor(_configService: IConfigService, _httpService: HTTPService, _requestService: RequestService);
99
111
  dispose(): void;
112
+ downloadFile(file: File | Blob, filename: string, fileExt: string): void;
113
+ transformSnapshotJsonToWorkbookData(json: ISnapshotBlockJsonResponse): Promise<IWorkbookData>;
114
+ transformWorkbookDataToSnapshotJson(workbookData: IWorkbookData): Promise<ISnapshotBlockJson>;
100
115
  importDOCXToSnapshot(file: File | string): Promise<IDocumentData | undefined>;
101
116
  exportDOCXByUnitId(unitId: string): Promise<File | undefined>;
102
117
  exportDOCXBySnapshot(data: IDocumentData): Promise<File | undefined>;
@@ -125,7 +140,6 @@ export declare class ExchangeService extends Disposable implements IExchangeServ
125
140
  private _getDownloadEndpointURL;
126
141
  private _getMinSheetRowCount;
127
142
  private _getMinSheetColumnCount;
128
- private _getEnableServerSideComputing;
129
143
  private _getDisableCellImageConversion;
130
144
  private _getIgnoreTableExport;
131
145
  }
@@ -34,8 +34,6 @@ export interface IExportRequest {
34
34
  /** If jsonID is specified, the input is the json file which represents a univer unit */
35
35
  jsonID: string;
36
36
  type: UniverInstanceType;
37
- /** If sscSwitch is set to true, server-side formula calculation will be triggered */
38
- sscSwitch?: boolean;
39
37
  /** If useImageUrl is set to true, cell images will not be converted to links on export */
40
38
  useImageUrl?: boolean;
41
39
  /** If ignoreTableExport is set to true, tables will be ignored on export */
@@ -4,6 +4,7 @@ export declare const XLSX = "application/vnd.openxmlformats-officedocument.sprea
4
4
  export declare const XLSM = "application/vnd.ms-excel.sheet.macroEnabled.12";
5
5
  export declare const XLTX = "application/vnd.openxmlformats-officedocument.spreadsheetml.template";
6
6
  export declare const PPTX = "application/vnd.openxmlformats-officedocument.presentationml.presentation";
7
+ export declare const PDF = "application/pdf";
7
8
  export declare const UNIT_CONTENT_TYPE: Record<UniverInstanceType, string[]>;
8
9
  export declare const CONTENT_TYPE_EXTNAME: {
9
10
  [key: string]: string;
@@ -61,7 +61,9 @@ export declare function transformSlideSnapshotMetaToString(snapshot: ISnapshot):
61
61
  */
62
62
  export declare function transformSheetBlockMetaToString(sheetBlocks: ISheetBlock[]): ISheetBlockJson;
63
63
  /**
64
- * Convert the workbook data to snapshot data
64
+ * Convert the workbook data to snapshot data.
65
+ *
66
+ * @deprecated Use `univerAPI.transformWorkbookDataToSnapshotJsonAsync(...)` instead. Planned for removal in v1.1.0.
65
67
  */
66
68
  export declare function transformWorkbookDataToSnapshotJson(workbookData: IWorkbookData): Promise<ISnapshotBlockJson>;
67
69
  /**
@@ -74,7 +76,9 @@ export declare function transformDocumentDataToSnapshotJson(documentData: IDocum
74
76
  */
75
77
  export declare function transformSlideDataToSnapshotJson(slideData: IExchangeSlideDocumentData): Promise<ISnapshotBlockJson>;
76
78
  /**
77
- * Convert the Snapshot data to workbook data
79
+ * Convert the Snapshot data to workbook data.
80
+ *
81
+ * @deprecated Use `univerAPI.transformSnapshotJsonToWorkbookDataAsync(...)` instead. Planned for removal in v1.1.0.
78
82
  */
79
83
  export declare function transformSnapshotJsonToWorkbookData(json: ISnapshotBlockJsonResponse): Promise<IWorkbookData>;
80
84
  /**
@@ -4,6 +4,7 @@ export declare function downloadFileByURL(url: string, filename: string, fileExt
4
4
  /**
5
5
  * Triggers a download of a given File object.
6
6
  *
7
+ * @deprecated Use `univerAPI.downloadFile(...)` instead. Planned for removal in v1.1.0.
7
8
  * @param {File} file - The File object to be downloaded.
8
9
  */
9
10
  export declare function downloadFile(file: File | Blob, filename: string, fileExt: string): void;
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x243b(_0x16291a,_0x422b74){_0x16291a=_0x16291a-0x13c;const _0x14527=_0x1452();let _0x243b47=_0x14527[_0x16291a];return _0x243b47;}(function(_0x57698a,_0x4fd5d5){const _0x3ed04b=_0x243b,_0x24b594=_0x57698a();while(!![]){try{const _0x1595b5=parseInt(_0x3ed04b(0x14d))/0x1*(parseInt(_0x3ed04b(0x149))/0x2)+-parseInt(_0x3ed04b(0x13f))/0x3*(parseInt(_0x3ed04b(0x14e))/0x4)+parseInt(_0x3ed04b(0x13d))/0x5+parseInt(_0x3ed04b(0x154))/0x6*(-parseInt(_0x3ed04b(0x14a))/0x7)+parseInt(_0x3ed04b(0x165))/0x8*(-parseInt(_0x3ed04b(0x161))/0x9)+-parseInt(_0x3ed04b(0x163))/0xa*(-parseInt(_0x3ed04b(0x146))/0xb)+parseInt(_0x3ed04b(0x15d))/0xc*(parseInt(_0x3ed04b(0x148))/0xd);if(_0x1595b5===_0x4fd5d5)break;else _0x24b594['push'](_0x24b594['shift']());}catch(_0x166912){_0x24b594['push'](_0x24b594['shift']());}}}(_0x1452,0x5979c),function(_0x134c26,_0x4e6b3a){const _0x3aa54a=_0x243b;typeof exports==_0x3aa54a(0x168)&&typeof module<'u'?_0x4e6b3a(require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x3aa54a(0x15e)&&define[_0x3aa54a(0x162)]?define(['@univerjs-pro/exchange-client',_0x3aa54a(0x15c),_0x3aa54a(0x156)],_0x4e6b3a):(_0x134c26=typeof globalThis<'u'?globalThis:_0x134c26||self,_0x4e6b3a(_0x134c26[_0x3aa54a(0x16a)],_0x134c26[_0x3aa54a(0x159)],_0x134c26[_0x3aa54a(0x140)]));}(this,function(_0x287e76,_0x761d94,_0x3318eb){const _0x1af1d1=_0x243b;var _0x3f9823=class extends _0x3318eb[_0x1af1d1(0x169)]{async['importXLSXToUnitIdAsync'](_0x3d122e){const _0x1e5ae0=_0x1af1d1;let _0x47ae24=this[_0x1e5ae0(0x141)][_0x1e5ae0(0x145)](_0x287e76['IExchangeService']);if(!_0x47ae24)throw Error(_0x1e5ae0(0x164));return _0x47ae24[_0x1e5ae0(0x142)](_0x3d122e,_0x761d94[_0x1e5ae0(0x153)]['UNIVER_SHEET']);}async['importXLSXToSnapshotAsync'](_0x4b3804){const _0x314803=_0x1af1d1;let _0x40b0bc=this[_0x314803(0x141)]['get'](_0x287e76[_0x314803(0x158)]);if(!_0x40b0bc)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x40b0bc[_0x314803(0x157)](_0x4b3804);}async[_0x1af1d1(0x14c)](_0x1da18d){const _0x5c7626=_0x1af1d1;let _0x25d798=this[_0x5c7626(0x141)][_0x5c7626(0x145)](_0x287e76[_0x5c7626(0x158)]);if(!_0x25d798)throw Error(_0x5c7626(0x164));return _0x25d798[_0x5c7626(0x166)](_0x1da18d);}async[_0x1af1d1(0x150)](_0x59c0df){const _0x52f328=_0x1af1d1;let _0x3898b8=this[_0x52f328(0x141)][_0x52f328(0x145)](_0x287e76[_0x52f328(0x158)]);if(!_0x3898b8)throw Error(_0x52f328(0x164));return _0x3898b8[_0x52f328(0x147)](_0x59c0df);}async['importDOCXToUnitIdAsync'](_0x4623d5){const _0x26ab37=_0x1af1d1;let _0x2ee776=this[_0x26ab37(0x141)][_0x26ab37(0x145)](_0x287e76[_0x26ab37(0x158)]);if(!_0x2ee776)throw Error(_0x26ab37(0x164));return _0x2ee776[_0x26ab37(0x142)](_0x4623d5,_0x761d94[_0x26ab37(0x153)][_0x26ab37(0x151)]);}async[_0x1af1d1(0x143)](_0x998442){const _0x121e36=_0x1af1d1;let _0x2f4330=this['_injector'][_0x121e36(0x145)](_0x287e76['IExchangeService']);if(!_0x2f4330)throw Error(_0x121e36(0x164));return _0x2f4330[_0x121e36(0x14b)](_0x998442);}async['exportDOCXBySnapshotAsync'](_0x1bcbf5){const _0x149043=_0x1af1d1;let _0x38ed28=this[_0x149043(0x141)][_0x149043(0x145)](_0x287e76[_0x149043(0x158)]);if(!_0x38ed28)throw Error(_0x149043(0x164));return _0x38ed28[_0x149043(0x160)](_0x1bcbf5);}async[_0x1af1d1(0x167)](_0xd362c6){const _0x3ccf5e=_0x1af1d1;let _0x317e6d=this[_0x3ccf5e(0x141)][_0x3ccf5e(0x145)](_0x287e76[_0x3ccf5e(0x158)]);if(!_0x317e6d)throw Error(_0x3ccf5e(0x164));return _0x317e6d[_0x3ccf5e(0x15b)](_0xd362c6);}async[_0x1af1d1(0x144)](_0x33fdb){const _0x4035e7=_0x1af1d1;let _0x2f6274=this[_0x4035e7(0x141)][_0x4035e7(0x145)](_0x287e76[_0x4035e7(0x158)]);if(!_0x2f6274)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x2f6274['importFileToUnitId'](_0x33fdb,_0x761d94[_0x4035e7(0x153)][_0x4035e7(0x15f)]);}async[_0x1af1d1(0x155)](_0x173ddb){const _0x36cf5e=_0x1af1d1;let _0x3252ce=this[_0x36cf5e(0x141)][_0x36cf5e(0x145)](_0x287e76[_0x36cf5e(0x158)]);if(!_0x3252ce)throw Error(_0x36cf5e(0x164));return _0x3252ce[_0x36cf5e(0x152)](_0x173ddb);}async[_0x1af1d1(0x15a)](_0x586636){const _0x3d0142=_0x1af1d1;let _0x5020c6=this[_0x3d0142(0x141)][_0x3d0142(0x145)](_0x287e76[_0x3d0142(0x158)]);if(!_0x5020c6)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x5020c6[_0x3d0142(0x13e)](_0x586636);}async[_0x1af1d1(0x13c)](_0x35bfdd){const _0x3514a7=_0x1af1d1;let _0x40e7bb=this[_0x3514a7(0x141)][_0x3514a7(0x145)](_0x287e76[_0x3514a7(0x158)]);if(!_0x40e7bb)throw Error(_0x3514a7(0x164));return _0x40e7bb[_0x3514a7(0x14f)](_0x35bfdd);}};_0x3318eb[_0x1af1d1(0x169)]['extend'](_0x3f9823);}));function _0x1452(){const _0x596376=['UniverProExchangeClient','exportPPTXBySnapshotAsync','1232230EcYDlF','exportPPTXByUnitId','990174WfQQtn','UniverCoreFacade','_injector','importFileToUnitId','importDOCXToSnapshotAsync','importPPTXToUnitIdAsync','get','360580mYGEWY','exportXLSXBySnapshot','10822071NcnMue','2PrlwgZ','336dkijWg','importDOCXToSnapshot','exportXLSXByUnitIdAsync','500329KxFaBh','4wpEJnc','exportPPTXBySnapshot','exportXLSXBySnapshotAsync','UNIVER_DOC','importPPTXToSnapshot','UniverInstanceType','86544tFgEmW','importPPTXToSnapshotAsync','@univerjs/core/facade','importXLSXToSnapshot','IExchangeService','UniverCore','exportPPTXByUnitIdAsync','exportDOCXByUnitId','@univerjs/core','12XgxaGB','function','UNIVER_SLIDE','exportDOCXBySnapshot','9EbDUFq','amd','50pYxMHD','The\x20exchange\x20service\x20is\x20not\x20available','2833920HNfHpV','exportXLSXByUnitId','exportDOCXByUnitIdAsync','object','FUniver'];_0x1452=function(){return _0x596376;};return _0x1452();}
1
+ function _0x1746(_0x4698e1,_0x31b3f2){_0x4698e1=_0x4698e1-0x1a8;var _0x216e06=_0x216e();var _0x1746a2=_0x216e06[_0x4698e1];return _0x1746a2;}function _0x216e(){var _0x9d93f1=['exportPPTXBySnapshot','downloadFile','752yyiTpc','function','IExchangeService','5830760wDkrzC','importDOCXToSnapshotAsync','transformSnapshotJsonToWorkbookDataAsync','UniverCore','get','amd','importDOCXToUnitIdAsync','extend','exportXLSXByUnitId','transformWorkbookDataToSnapshotJson','exportPPTXByUnitId','7WzahbT','UNIVER_DOC','UniverInstanceType','importXLSXToSnapshotAsync','importPPTXToUnitIdAsync','FUniver','exportPPTXByUnitIdAsync','38601atVEIe','exportDOCXByUnitId','UNIVER_SLIDE','@univerjs/core','640674EeQLfJ','UniverCoreFacade','4ojdDJX','53298XuYjLC','exportDOCXBySnapshotAsync','@univerjs-pro/exchange-client','importPPTXToSnapshot','UniverProExchangeClient','exportPPTXBySnapshotAsync','importFileToUnitId','object','32408UbTFHA','UNIVER_SHEET','exportXLSXBySnapshotAsync','@univerjs/core/facade','transformSnapshotJsonToWorkbookData','1016204bmjDiY','_injector','981155hrwFzj','importXLSXToUnitIdAsync'];_0x216e=function(){return _0x9d93f1;};return _0x216e();}(function(_0x360153,_0x449e77){var _0x56f5ca=_0x1746,_0x199743=_0x360153();while(!![]){try{var _0xfe74c9=parseInt(_0x56f5ca(0x1c3))/0x1*(parseInt(_0x56f5ca(0x1aa))/0x2)+-parseInt(_0x56f5ca(0x1ce))/0x3*(-parseInt(_0x56f5ca(0x1d0))/0x4)+parseInt(_0x56f5ca(0x1b1))/0x5+parseInt(_0x56f5ca(0x1d1))/0x6+-parseInt(_0x56f5ca(0x1af))/0x7+parseInt(_0x56f5ca(0x1b5))/0x8*(parseInt(_0x56f5ca(0x1ca))/0x9)+-parseInt(_0x56f5ca(0x1b8))/0xa;if(_0xfe74c9===_0x449e77)break;else _0x199743['push'](_0x199743['shift']());}catch(_0x15a8f7){_0x199743['push'](_0x199743['shift']());}}}(_0x216e,0x328aa),function(_0x45db15,_0x455ff7){var _0x464566=_0x1746;typeof exports==_0x464566(0x1a9)&&typeof module<'u'?_0x455ff7(require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x464566(0x1b6)&&define[_0x464566(0x1bd)]?define([_0x464566(0x1d3),_0x464566(0x1cd),_0x464566(0x1ad)],_0x455ff7):(_0x45db15=typeof globalThis<'u'?globalThis:_0x45db15||self,_0x455ff7(_0x45db15[_0x464566(0x1d5)],_0x45db15[_0x464566(0x1bb)],_0x45db15[_0x464566(0x1cf)]));}(this,function(_0x3f00dd,_0x5a9f17,_0x9b5479){var _0x128403=_0x1746,_0x27e45f=class extends _0x9b5479['FUniver']{[_0x128403(0x1b4)](_0x46657f,_0x11ca4e,_0x6c867e){var _0x532b75=_0x128403;this[_0x532b75(0x1b0)][_0x532b75(0x1bc)](_0x3f00dd[_0x532b75(0x1b7)])['downloadFile'](_0x46657f,_0x11ca4e,_0x6c867e);}async[_0x128403(0x1ba)](_0x3ff966){var _0xbdffb=_0x128403;return this[_0xbdffb(0x1b0)][_0xbdffb(0x1bc)](_0x3f00dd[_0xbdffb(0x1b7)])[_0xbdffb(0x1ae)](_0x3ff966);}async['transformWorkbookDataToSnapshotJsonAsync'](_0x14ad10){var _0x1c6740=_0x128403;return this['_injector'][_0x1c6740(0x1bc)](_0x3f00dd[_0x1c6740(0x1b7)])[_0x1c6740(0x1c1)](_0x14ad10);}async[_0x128403(0x1b2)](_0x239ff4){var _0x225fe2=_0x128403;return this['_injector'][_0x225fe2(0x1bc)](_0x3f00dd['IExchangeService'])[_0x225fe2(0x1a8)](_0x239ff4,_0x5a9f17[_0x225fe2(0x1c5)][_0x225fe2(0x1ab)]);}async[_0x128403(0x1c6)](_0x1c8a46){var _0x2c979f=_0x128403;return this['_injector'][_0x2c979f(0x1bc)](_0x3f00dd['IExchangeService'])['importXLSXToSnapshot'](_0x1c8a46);}async['exportXLSXByUnitIdAsync'](_0x42ab67){var _0x2e468a=_0x128403;return this[_0x2e468a(0x1b0)][_0x2e468a(0x1bc)](_0x3f00dd[_0x2e468a(0x1b7)])[_0x2e468a(0x1c0)](_0x42ab67);}async[_0x128403(0x1ac)](_0x5190df){var _0x1335e1=_0x128403;return this[_0x1335e1(0x1b0)][_0x1335e1(0x1bc)](_0x3f00dd[_0x1335e1(0x1b7)])['exportXLSXBySnapshot'](_0x5190df);}async[_0x128403(0x1be)](_0x28c3a0){var _0x31275=_0x128403;return this[_0x31275(0x1b0)][_0x31275(0x1bc)](_0x3f00dd['IExchangeService'])['importFileToUnitId'](_0x28c3a0,_0x5a9f17[_0x31275(0x1c5)][_0x31275(0x1c4)]);}async[_0x128403(0x1b9)](_0x1e2e58){var _0x1c6555=_0x128403;return this[_0x1c6555(0x1b0)][_0x1c6555(0x1bc)](_0x3f00dd[_0x1c6555(0x1b7)])['importDOCXToSnapshot'](_0x1e2e58);}async[_0x128403(0x1d2)](_0x248d3f){var _0x501c25=_0x128403;return this[_0x501c25(0x1b0)]['get'](_0x3f00dd[_0x501c25(0x1b7)])['exportDOCXBySnapshot'](_0x248d3f);}async['exportDOCXByUnitIdAsync'](_0x3767f2){var _0x40ef2d=_0x128403;return this[_0x40ef2d(0x1b0)][_0x40ef2d(0x1bc)](_0x3f00dd[_0x40ef2d(0x1b7)])[_0x40ef2d(0x1cb)](_0x3767f2);}async[_0x128403(0x1c7)](_0x47dce4){var _0xec7aa6=_0x128403;return this['_injector'][_0xec7aa6(0x1bc)](_0x3f00dd[_0xec7aa6(0x1b7)])['importFileToUnitId'](_0x47dce4,_0x5a9f17[_0xec7aa6(0x1c5)][_0xec7aa6(0x1cc)]);}async['importPPTXToSnapshotAsync'](_0x53f691){var _0x795667=_0x128403;return this['_injector'][_0x795667(0x1bc)](_0x3f00dd[_0x795667(0x1b7)])[_0x795667(0x1d4)](_0x53f691);}async[_0x128403(0x1c9)](_0x43f944){var _0x54870e=_0x128403;return this['_injector'][_0x54870e(0x1bc)](_0x3f00dd[_0x54870e(0x1b7)])[_0x54870e(0x1c2)](_0x43f944);}async[_0x128403(0x1d6)](_0x17d8a7){var _0x53f431=_0x128403;return this[_0x53f431(0x1b0)][_0x53f431(0x1bc)](_0x3f00dd[_0x53f431(0x1b7)])[_0x53f431(0x1b3)](_0x17d8a7);}};_0x9b5479[_0x128403(0x1c8)][_0x128403(0x1bf)](_0x27e45f);}));