@univerjs-pro/exchange-client 0.25.1 → 1.0.0-alpha.1

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 (105) 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.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/types/controllers/exchange.controller.d.ts +4 -2
  65. package/lib/types/facade/f-univer.d.ts +88 -0
  66. package/lib/types/index.d.ts +6 -5
  67. package/lib/types/locale/types.d.ts +3 -0
  68. package/lib/types/plugin.d.ts +1 -1
  69. package/lib/types/services/exchange.service.d.ts +20 -0
  70. package/lib/types/services/operate.service.d.ts +34 -2
  71. package/lib/types/services/utils/content-type.d.ts +1 -0
  72. package/lib/types/services/utils/snapshot.d.ts +21 -2
  73. package/lib/types/views/UploadNotificationContainer.d.ts +1 -1
  74. package/lib/types/views/link-list/LinkList.d.ts +1 -1
  75. package/lib/types/views/upload-again/UploadAgain.d.ts +1 -1
  76. package/lib/types/views/upload-button/UploadButton.d.ts +1 -1
  77. package/lib/types/views/upload-error/UploadError.d.ts +1 -1
  78. package/lib/types/views/upload-notification/UploadNotification.d.ts +1 -1
  79. package/lib/types/views/upload-success/UploadSuccess.d.ts +1 -1
  80. package/lib/types/views/uploading/Uploading.d.ts +1 -1
  81. package/lib/types/views/uploading/upload-cancel/UploadCancel.d.ts +1 -1
  82. package/lib/types/views/uploading/upload-progress/UploadProgress.d.ts +1 -1
  83. package/lib/umd/facade.js +1 -1
  84. package/lib/umd/index.js +1 -1
  85. package/lib/umd/locale/ar-SA.js +1 -1
  86. package/lib/umd/locale/ca-ES.js +1 -1
  87. package/lib/umd/locale/de-DE.js +1 -1
  88. package/lib/umd/locale/en-US.js +1 -1
  89. package/lib/umd/locale/es-ES.js +1 -1
  90. package/lib/umd/locale/fa-IR.js +1 -1
  91. package/lib/umd/locale/fr-FR.js +1 -1
  92. package/lib/umd/locale/id-ID.js +1 -1
  93. package/lib/umd/locale/it-IT.js +1 -1
  94. package/lib/umd/locale/ja-JP.js +1 -1
  95. package/lib/umd/locale/ko-KR.js +1 -1
  96. package/lib/umd/locale/pl-PL.js +1 -1
  97. package/lib/umd/locale/pt-BR.js +1 -1
  98. package/lib/umd/locale/ru-RU.js +1 -1
  99. package/lib/umd/locale/sk-SK.js +1 -1
  100. package/lib/umd/locale/vi-VN.js +1 -1
  101. package/lib/umd/locale/zh-CN.js +1 -1
  102. package/lib/umd/locale/zh-HK.js +1 -1
  103. package/lib/umd/locale/zh-TW.js +1 -1
  104. package/package.json +13 -13
  105. /package/lib/types/{controllers/config.schema.d.ts → config/config.d.ts} +0 -0
@@ -1 +1 @@
1
- const _0x50aa9f=_0x2bbb;(function(_0x3dea07,_0x4022b9){const _0x194afb=_0x2bbb,_0x1f6828=_0x3dea07();while(!![]){try{const _0x171c08=parseInt(_0x194afb(0xc9))/0x1+parseInt(_0x194afb(0xc2))/0x2*(-parseInt(_0x194afb(0xc0))/0x3)+parseInt(_0x194afb(0xbb))/0x4*(-parseInt(_0x194afb(0xc4))/0x5)+-parseInt(_0x194afb(0xc8))/0x6*(-parseInt(_0x194afb(0xc6))/0x7)+-parseInt(_0x194afb(0xbd))/0x8+parseInt(_0x194afb(0xcd))/0x9*(-parseInt(_0x194afb(0xcc))/0xa)+-parseInt(_0x194afb(0xcf))/0xb*(-parseInt(_0x194afb(0xc7))/0xc);if(_0x171c08===_0x4022b9)break;else _0x1f6828['push'](_0x1f6828['shift']());}catch(_0x22f0bf){_0x1f6828['push'](_0x1f6828['shift']());}}}(_0x5a86,0xa8ce6));const e={'exchange-client':{'uploading':_0x50aa9f(0xbc),'uploadSuccess':'Файл\x20успешно\x20загружен','uploadSuccessTip':_0x50aa9f(0xcb),'downloading':_0x50aa9f(0xbf),'downloadSuccess':'Скачивание\x20успешно','unknownMistake':_0x50aa9f(0xbe),'networkError':_0x50aa9f(0xce),'tooLarge':'Данные\x20слишком\x20большие','internalError':_0x50aa9f(0xc1),'interrupt':_0x50aa9f(0xd0),'fileTypeError':_0x50aa9f(0xca),'wait':'Пожалуйста,\x20подождите...','cancel':_0x50aa9f(0xc5),'uploadAgain':_0x50aa9f(0xc3)}};function _0x2bbb(_0x24507a,_0x135fb8){_0x24507a=_0x24507a-0xbb;const _0x5a8657=_0x5a86();let _0x2bbb4f=_0x5a8657[_0x24507a];return _0x2bbb4f;}export{e as default};function _0x5a86(){const _0x599ff3=['Загрузка','2940808rRGuSy','Неизвестная\x20ошибка','Скачивание','12eDhcWy','Внутренняя\x20неизвестная\x20ошибка','179318AiGHXg','Загрузить\x20снова','40565UAZxUS','Отмена','56iqPtYS','21900VumIpi','490818xYRQSB','705077yYFeKU','Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','{0}\x20файл(ов)\x20успешно\x20загружен(о)','41610SBNZDG','585uIeRdH','Сетевая\x20ошибка','3839dJyUHr','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','152irLSuL'];_0x5a86=function(){return _0x599ff3;};return _0x5a86();}
1
+ const _0x4b3618=_0x5e76;(function(_0x5db9c7,_0x7f34f0){const _0xc48a6c=_0x5e76,_0x2ad562=_0x5db9c7();while(!![]){try{const _0x2a7637=-parseInt(_0xc48a6c(0x15e))/0x1+-parseInt(_0xc48a6c(0x168))/0x2*(-parseInt(_0xc48a6c(0x163))/0x3)+parseInt(_0xc48a6c(0x165))/0x4+parseInt(_0xc48a6c(0x160))/0x5+parseInt(_0xc48a6c(0x166))/0x6+-parseInt(_0xc48a6c(0x161))/0x7*(-parseInt(_0xc48a6c(0x169))/0x8)+-parseInt(_0xc48a6c(0x15f))/0x9;if(_0x2a7637===_0x7f34f0)break;else _0x2ad562['push'](_0x2ad562['shift']());}catch(_0x449654){_0x2ad562['push'](_0x2ad562['shift']());}}}(_0x3921,0xa4099));function _0x3921(){const _0x2e0a7a=['6643515zlmUgV','49dkUMSX','Скачивание','281166ZcEQbM','Сетевая\x20ошибка','836780DDxdlZ','2291586daMVrG','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','2TrOgFk','560888WyTkat','Файл\x20успешно\x20загружен','{0}\x20файл(ов)\x20успешно\x20загружен(о)','Скачивание\x20успешно','Внутренняя\x20неизвестная\x20ошибка','1338757AjTlvY','4443066RohQFR'];_0x3921=function(){return _0x2e0a7a;};return _0x3921();}function _0x5e76(_0x64445,_0x3509e6){_0x64445=_0x64445-0x15d;const _0x39213a=_0x3921();let _0x5e7658=_0x39213a[_0x64445];return _0x5e7658;}const e={'exchange-client':{'uploading':'Загрузка','uploadSuccess':_0x4b3618(0x16a),'uploadSuccessTip':_0x4b3618(0x16b),'downloading':_0x4b3618(0x162),'downloadSuccess':_0x4b3618(0x16c),'unknownMistake':'Неизвестная\x20ошибка','networkError':_0x4b3618(0x164),'tooLarge':'Данные\x20слишком\x20большие','internalError':_0x4b3618(0x15d),'interrupt':_0x4b3618(0x167),'fileTypeError':'Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','wait':'Пожалуйста,\x20подождите...','cancel':'Отмена','uploadAgain':'Загрузить\x20снова'}};export{e as default};
@@ -1 +1 @@
1
- function _0x1018(_0x213559,_0x2b670b){_0x213559=_0x213559-0x6c;const _0x36d6f8=_0x36d6();let _0x1018dc=_0x36d6f8[_0x213559];return _0x1018dc;}const _0x55da7e=_0x1018;(function(_0x2be76c,_0x20602e){const _0x38850e=_0x1018,_0x1d7a33=_0x2be76c();while(!![]){try{const _0xf0a004=-parseInt(_0x38850e(0x7d))/0x1*(-parseInt(_0x38850e(0x6c))/0x2)+parseInt(_0x38850e(0x7b))/0x3+parseInt(_0x38850e(0x79))/0x4*(parseInt(_0x38850e(0x80))/0x5)+-parseInt(_0x38850e(0x7a))/0x6*(-parseInt(_0x38850e(0x73))/0x7)+-parseInt(_0x38850e(0x7e))/0x8+-parseInt(_0x38850e(0x71))/0x9+parseInt(_0x38850e(0x74))/0xa;if(_0xf0a004===_0x20602e)break;else _0x1d7a33['push'](_0x1d7a33['shift']());}catch(_0x496848){_0x1d7a33['push'](_0x1d7a33['shift']());}}}(_0x36d6,0xabee2));const e={'exchange-client':{'uploading':_0x55da7e(0x6d),'uploadSuccess':'Súbor\x20bol\x20úspešne\x20nahraný','uploadSuccessTip':_0x55da7e(0x77),'downloading':_0x55da7e(0x72),'downloadSuccess':_0x55da7e(0x6e),'unknownMistake':_0x55da7e(0x7c),'networkError':_0x55da7e(0x7f),'tooLarge':_0x55da7e(0x70),'internalError':_0x55da7e(0x78),'interrupt':_0x55da7e(0x75),'fileTypeError':_0x55da7e(0x76),'wait':'Prosím\x20počkajte...','cancel':'Zrušiť','uploadAgain':_0x55da7e(0x6f)}};function _0x36d6(){const _0x53db90=['50156wrdYzh','Nahrávanie','Sťahovanie\x20úspešné','Nahrať\x20znova','Dáta\x20sú\x20príliš\x20veľké','10920150raPbiW','Sťahovanie','1995OKNwCo','4621520UpXOzd','Sieťové\x20pripojenie\x20bolo\x20prerušené\x20a\x20nahrávanie\x20súboru\x20zlyhalo','Vybraný\x20súbor\x20[{0}]\x20nie\x20je\x20podporovaný\x20na\x20nahrávanie','Úspešne\x20nahraných\x20{0}\x20súborov','Interná\x20neznáma\x20chyba','20tuGZXo','28650mAjnVF','3289434VXyTBZ','Neznáma\x20chyba','1qHQrkj','10192736wmHfMl','Sieťová\x20chyba','247085VJbmCp'];_0x36d6=function(){return _0x53db90;};return _0x36d6();}export{e as default};
1
+ const _0xcaef6e=_0x22d2;function _0x22d2(_0x4729ac,_0x521edb){_0x4729ac=_0x4729ac-0x1ad;const _0x34669c=_0x3466();let _0x22d2b8=_0x34669c[_0x4729ac];return _0x22d2b8;}(function(_0x3e2f07,_0xd8f2c7){const _0x524665=_0x22d2,_0x5a6dff=_0x3e2f07();while(!![]){try{const _0x4e025f=parseInt(_0x524665(0x1b3))/0x1+parseInt(_0x524665(0x1be))/0x2*(-parseInt(_0x524665(0x1bb))/0x3)+-parseInt(_0x524665(0x1ae))/0x4*(parseInt(_0x524665(0x1b7))/0x5)+parseInt(_0x524665(0x1b4))/0x6+-parseInt(_0x524665(0x1b8))/0x7+-parseInt(_0x524665(0x1b6))/0x8*(-parseInt(_0x524665(0x1af))/0x9)+parseInt(_0x524665(0x1b9))/0xa*(parseInt(_0x524665(0x1bc))/0xb);if(_0x4e025f===_0xd8f2c7)break;else _0x5a6dff['push'](_0x5a6dff['shift']());}catch(_0x3d53ca){_0x5a6dff['push'](_0x5a6dff['shift']());}}}(_0x3466,0x27fb6));const e={'exchange-client':{'uploading':_0xcaef6e(0x1ba),'uploadSuccess':'Súbor\x20bol\x20úspešne\x20nahraný','uploadSuccessTip':_0xcaef6e(0x1c2),'downloading':_0xcaef6e(0x1b2),'downloadSuccess':_0xcaef6e(0x1ad),'unknownMistake':'Neznáma\x20chyba','networkError':_0xcaef6e(0x1c1),'tooLarge':_0xcaef6e(0x1b0),'internalError':_0xcaef6e(0x1b5),'interrupt':_0xcaef6e(0x1bd),'fileTypeError':'Vybraný\x20súbor\x20[{0}]\x20nie\x20je\x20podporovaný\x20na\x20nahrávanie','wait':_0xcaef6e(0x1bf),'cancel':_0xcaef6e(0x1b1),'uploadAgain':_0xcaef6e(0x1c0)}};function _0x3466(){const _0x3e75ed=['8WwijmQ','1010540PMkymH','132181QvnIqO','1509230RARlQR','Nahrávanie','439785ZeUZzX','22QwohOY','Sieťové\x20pripojenie\x20bolo\x20prerušené\x20a\x20nahrávanie\x20súboru\x20zlyhalo','4Xezgul','Prosím\x20počkajte...','Nahrať\x20znova','Sieťová\x20chyba','Úspešne\x20nahraných\x20{0}\x20súborov','Sťahovanie\x20úspešné','4uFpHqE','1955241FzyghQ','Dáta\x20sú\x20príliš\x20veľké','Zrušiť','Sťahovanie','14200vYvEzw','867912DmqahJ','Interná\x20neznáma\x20chyba'];_0x3466=function(){return _0x3e75ed;};return _0x3466();}export{e as default};
@@ -1 +1 @@
1
- function _0x5402(_0x1062a0,_0xb09bda){_0x1062a0=_0x1062a0-0x1c6;const _0x4ac3b0=_0x4ac3();let _0x5402b5=_0x4ac3b0[_0x1062a0];return _0x5402b5;}const _0x2fd206=_0x5402;(function(_0x2cf8f4,_0x28ac7d){const _0x28fe35=_0x5402,_0x1572d5=_0x2cf8f4();while(!![]){try{const _0x1a4f51=-parseInt(_0x28fe35(0x1c6))/0x1+-parseInt(_0x28fe35(0x1ce))/0x2*(parseInt(_0x28fe35(0x1d6))/0x3)+parseInt(_0x28fe35(0x1d9))/0x4+-parseInt(_0x28fe35(0x1d8))/0x5*(-parseInt(_0x28fe35(0x1ca))/0x6)+-parseInt(_0x28fe35(0x1d1))/0x7+-parseInt(_0x28fe35(0x1cd))/0x8*(-parseInt(_0x28fe35(0x1d4))/0x9)+-parseInt(_0x28fe35(0x1c8))/0xa*(-parseInt(_0x28fe35(0x1c7))/0xb);if(_0x1a4f51===_0x28ac7d)break;else _0x1572d5['push'](_0x1572d5['shift']());}catch(_0x4f0f6d){_0x1572d5['push'](_0x1572d5['shift']());}}}(_0x4ac3,0xf325a));const e={'exchange-client':{'uploading':'Đang\x20tải\x20lên','uploadSuccess':_0x2fd206(0x1cb),'uploadSuccessTip':_0x2fd206(0x1d3),'downloading':'Đang\x20tải\x20xuống','downloadSuccess':_0x2fd206(0x1d2),'unknownMistake':'Lỗi\x20không\x20xác\x20định','networkError':_0x2fd206(0x1cc),'tooLarge':'Luồng\x20dữ\x20liệu\x20quá\x20lớn','internalError':'Lỗi\x20không\x20xác\x20định\x20bên\x20trong','interrupt':_0x2fd206(0x1d7),'fileTypeError':_0x2fd206(0x1d0),'wait':_0x2fd206(0x1d5),'cancel':_0x2fd206(0x1cf),'uploadAgain':_0x2fd206(0x1c9)}};function _0x4ac3(){const _0x1de18e=['5277747QmrHJZ','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','1321225GaFLmi','4430668OCVPdM','639753nsgxCT','2126707XSXFIu','110mSHkKi','Tải\x20lên\x20lại','6IsvoKS','Tải\x20lên\x20tệp\x20thành\x20công','Lỗi\x20mạng','5625736FjrqGt','2vFZKbe','Hủy\x20bỏ','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','5648328HZigqA','Tải\x20xuống\x20thành\x20công','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','9ROANZU','Vui\x20lòng\x20đợi...'];_0x4ac3=function(){return _0x1de18e;};return _0x4ac3();}export{e as default};
1
+ function _0x96a4(){const _0x5eb76a=['10vauWMe','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\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...','655735mnkESh','Tải\x20lên\x20lại','4376tzBuwx','59229PBBPBH','10206OEEYry','2620204bJmGoE','4ybBFFo','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','15235506kodUMo','3519VTMhhq','1866woVIXF','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','Lỗi\x20không\x20xác\x20định','22292EnVQpy','Đang\x20tải\x20lên','Lỗi\x20mạng'];_0x96a4=function(){return _0x5eb76a;};return _0x96a4();}const _0xac5a04=_0x1e09;function _0x1e09(_0xe0aecf,_0x5e765b){_0xe0aecf=_0xe0aecf-0x177;const _0x96a41c=_0x96a4();let _0x1e09a9=_0x96a41c[_0xe0aecf];return _0x1e09a9;}(function(_0x49b109,_0x352f8a){const _0x27d1a5=_0x1e09,_0x14414e=_0x49b109();while(!![]){try{const _0xa50a58=-parseInt(_0x27d1a5(0x17a))/0x1*(-parseInt(_0x27d1a5(0x181))/0x2)+parseInt(_0x27d1a5(0x177))/0x3+-parseInt(_0x27d1a5(0x179))/0x4+parseInt(_0x27d1a5(0x188))/0x5+parseInt(_0x27d1a5(0x17e))/0x6*(-parseInt(_0x27d1a5(0x178))/0x7)+parseInt(_0x27d1a5(0x18a))/0x8*(parseInt(_0x27d1a5(0x17d))/0x9)+-parseInt(_0x27d1a5(0x184))/0xa*(-parseInt(_0x27d1a5(0x17c))/0xb);if(_0xa50a58===_0x352f8a)break;else _0x14414e['push'](_0x14414e['shift']());}catch(_0x4935a4){_0x14414e['push'](_0x14414e['shift']());}}}(_0x96a4,0xa7754));const e={'exchange-client':{'uploading':_0xac5a04(0x182),'uploadSuccess':'Tải\x20lên\x20tệp\x20thành\x20công','uploadSuccessTip':_0xac5a04(0x17f),'downloading':'Đang\x20tải\x20xuống','downloadSuccess':'Tải\x20xuống\x20thành\x20công','unknownMistake':_0xac5a04(0x180),'networkError':_0xac5a04(0x183),'tooLarge':'Luồng\x20dữ\x20liệu\x20quá\x20lớn','internalError':_0xac5a04(0x17b),'interrupt':_0xac5a04(0x186),'fileTypeError':_0xac5a04(0x185),'wait':_0xac5a04(0x187),'cancel':'Hủy\x20bỏ','uploadAgain':_0xac5a04(0x189)}};export{e as default};
@@ -1 +1 @@
1
- const _0x4e21fa=_0x3290;function _0x4f12(){const _0x2c406c=['数据流过大','40mRpcLm','6XMzPCS','下载中','1215275EfVzph','632lXqlrV','690494WgUTDw','内部未知错误','下载成功','{0}个文件上传成功','36915351OvSvUA','1Ejtnpo','6480000YgZVZV','807233wQjJrb','13539RaRnNn','再次上传','未知错误','1470663BqgbBq'];_0x4f12=function(){return _0x2c406c;};return _0x4f12();}(function(_0x5d8d0f,_0x3cfa61){const _0x5e7757=_0x3290,_0xaf1270=_0x5d8d0f();while(!![]){try{const _0x60ae28=parseInt(_0x5e7757(0x87))/0x1*(-parseInt(_0x5e7757(0x82))/0x2)+parseInt(_0x5e7757(0x78))/0x3*(-parseInt(_0x5e7757(0x81))/0x4)+parseInt(_0x5e7757(0x80))/0x5*(-parseInt(_0x5e7757(0x7e))/0x6)+-parseInt(_0x5e7757(0x77))/0x7+parseInt(_0x5e7757(0x7d))/0x8*(-parseInt(_0x5e7757(0x7b))/0x9)+-parseInt(_0x5e7757(0x76))/0xa+parseInt(_0x5e7757(0x86))/0xb;if(_0x60ae28===_0x3cfa61)break;else _0xaf1270['push'](_0xaf1270['shift']());}catch(_0x5596f6){_0xaf1270['push'](_0xaf1270['shift']());}}}(_0x4f12,0x73c77));const e={'exchange-client':{'uploading':'上传中','uploadSuccess':'文件上传成功','uploadSuccessTip':_0x4e21fa(0x85),'downloading':_0x4e21fa(0x7f),'downloadSuccess':_0x4e21fa(0x84),'unknownMistake':_0x4e21fa(0x7a),'networkError':'网络异常','tooLarge':_0x4e21fa(0x7c),'internalError':_0x4e21fa(0x83),'interrupt':'网络连接中断,文件上传失败','fileTypeError':'所选文件\x20[{0}]\x20不支持上传','wait':'请稍等...','cancel':'取消','uploadAgain':_0x4e21fa(0x79)}};function _0x3290(_0x276c82,_0x5722de){_0x276c82=_0x276c82-0x76;const _0x4f12f5=_0x4f12();let _0x3290c0=_0x4f12f5[_0x276c82];return _0x3290c0;}export{e as default};
1
+ function _0x4ee0(){const _0x1b5292=['网络异常','240496MQtVZQ','网络连接中断,文件上传失败','未知错误','再次上传','下载成功','内部未知错误','请稍等...','873324miBnqu','493585hMYyKq','文件上传成功','{0}个文件上传成功','45RBaqVB','466456zecGtg','1996952aHrWay','529858lYSMvB','13156ZOefVi','下载中'];_0x4ee0=function(){return _0x1b5292;};return _0x4ee0();}const _0xc458b0=_0x2929;function _0x2929(_0x16f418,_0x48325c){_0x16f418=_0x16f418-0x11c;const _0x4ee0e8=_0x4ee0();let _0x292981=_0x4ee0e8[_0x16f418];return _0x292981;}(function(_0x1cd87b,_0x53eafe){const _0x4fc1ad=_0x2929,_0x345c3a=_0x1cd87b();while(!![]){try{const _0x4922cb=parseInt(_0x4fc1ad(0x11e))/0x1+-parseInt(_0x4fc1ad(0x12a))/0x2+-parseInt(_0x4fc1ad(0x129))/0x3*(-parseInt(_0x4fc1ad(0x12d))/0x4)+parseInt(_0x4fc1ad(0x126))/0x5+parseInt(_0x4fc1ad(0x125))/0x6+parseInt(_0x4fc1ad(0x12c))/0x7+-parseInt(_0x4fc1ad(0x12b))/0x8;if(_0x4922cb===_0x53eafe)break;else _0x345c3a['push'](_0x345c3a['shift']());}catch(_0x4ee8cc){_0x345c3a['push'](_0x345c3a['shift']());}}}(_0x4ee0,0x1efe5));const e={'exchange-client':{'uploading':'上传中','uploadSuccess':_0xc458b0(0x127),'uploadSuccessTip':_0xc458b0(0x128),'downloading':_0xc458b0(0x11c),'downloadSuccess':_0xc458b0(0x122),'unknownMistake':_0xc458b0(0x120),'networkError':_0xc458b0(0x11d),'tooLarge':'数据流过大','internalError':_0xc458b0(0x123),'interrupt':_0xc458b0(0x11f),'fileTypeError':'所选文件\x20[{0}]\x20不支持上传','wait':_0xc458b0(0x124),'cancel':'取消','uploadAgain':_0xc458b0(0x121)}};export{e as default};
@@ -1 +1 @@
1
- const _0x4ee04e=_0x15f5;(function(_0x90b79b,_0x13a639){const _0x1a74f4=_0x15f5,_0x301de6=_0x90b79b();while(!![]){try{const _0x4b833c=parseInt(_0x1a74f4(0x132))/0x1*(-parseInt(_0x1a74f4(0x12b))/0x2)+parseInt(_0x1a74f4(0x13b))/0x3*(parseInt(_0x1a74f4(0x12d))/0x4)+parseInt(_0x1a74f4(0x12a))/0x5*(-parseInt(_0x1a74f4(0x128))/0x6)+parseInt(_0x1a74f4(0x127))/0x7+-parseInt(_0x1a74f4(0x138))/0x8*(parseInt(_0x1a74f4(0x137))/0x9)+-parseInt(_0x1a74f4(0x13d))/0xa+-parseInt(_0x1a74f4(0x12c))/0xb*(-parseInt(_0x1a74f4(0x13a))/0xc);if(_0x4b833c===_0x13a639)break;else _0x301de6['push'](_0x301de6['shift']());}catch(_0x145089){_0x301de6['push'](_0x301de6['shift']());}}}(_0x81ed,0x200f4));const e={'exchange-client':{'uploading':_0x4ee04e(0x13c),'uploadSuccess':_0x4ee04e(0x136),'uploadSuccessTip':_0x4ee04e(0x133),'downloading':_0x4ee04e(0x129),'downloadSuccess':_0x4ee04e(0x12f),'unknownMistake':_0x4ee04e(0x130),'networkError':_0x4ee04e(0x12e),'tooLarge':_0x4ee04e(0x13e),'internalError':_0x4ee04e(0x135),'interrupt':_0x4ee04e(0x131),'fileTypeError':_0x4ee04e(0x139),'wait':_0x4ee04e(0x134),'cancel':'取消','uploadAgain':'再次上傳'}};export{e as default};function _0x15f5(_0x6072b6,_0x22df4b){_0x6072b6=_0x6072b6-0x127;const _0x81ed38=_0x81ed();let _0x15f52f=_0x81ed38[_0x6072b6];return _0x15f52f;}function _0x81ed(){const _0x26aefa=['334728NtgsrT','57165JxGcsP','上傳中','711810GaOWyw','資料流過大','1241996uSOawn','366gsQRjZ','下載中','4850VlFEmV','2dHiJYl','11GQvfiZ','32vKGNYE','網絡異常','下載成功','未知錯誤','網絡連線中斷,檔案上傳失敗','23711ZZsulY','{0}個檔案上傳成功','請稍等...','內部未知錯誤','檔案上傳成功','72gCLCJq','72384xAfuYu','所選檔案\x20[{0}]\x20不支援上傳'];_0x81ed=function(){return _0x26aefa;};return _0x81ed();}
1
+ function _0x3dbb(_0xd2712a,_0x25d1b5){_0xd2712a=_0xd2712a-0x85;const _0x4edf99=_0x4edf();let _0x3dbb0b=_0x4edf99[_0xd2712a];return _0x3dbb0b;}const _0x13d294=_0x3dbb;(function(_0x27d649,_0x67d0ec){const _0x320523=_0x3dbb,_0x3b3ed4=_0x27d649();while(!![]){try{const _0xf134b4=parseInt(_0x320523(0x87))/0x1*(-parseInt(_0x320523(0x92))/0x2)+parseInt(_0x320523(0x97))/0x3*(parseInt(_0x320523(0x8a))/0x4)+-parseInt(_0x320523(0x89))/0x5*(-parseInt(_0x320523(0x91))/0x6)+parseInt(_0x320523(0x8b))/0x7+-parseInt(_0x320523(0x8f))/0x8*(parseInt(_0x320523(0x88))/0x9)+parseInt(_0x320523(0x85))/0xa+parseInt(_0x320523(0x93))/0xb*(parseInt(_0x320523(0x96))/0xc);if(_0xf134b4===_0x67d0ec)break;else _0x3b3ed4['push'](_0x3b3ed4['shift']());}catch(_0x1a05a8){_0x3b3ed4['push'](_0x3b3ed4['shift']());}}}(_0x4edf,0xd51de));function _0x4edf(){const _0xee000b=['{0}個檔案上傳成功','資料流過大','網絡連線中斷,檔案上傳失敗','101624CxzuAG','網絡異常','346206PwLmyd','2nJPlzm','44BDajSj','再次上傳','下載中','327840yaLcAI','171aUboeY','17188020IpSnoG','上傳中','1312501yFSGHI','549SpNpNY','10pBNrcs','20348sPFqld','5088069dvIAxX'];_0x4edf=function(){return _0xee000b;};return _0x4edf();}const e={'exchange-client':{'uploading':_0x13d294(0x86),'uploadSuccess':'檔案上傳成功','uploadSuccessTip':_0x13d294(0x8c),'downloading':_0x13d294(0x95),'downloadSuccess':'下載成功','unknownMistake':'未知錯誤','networkError':_0x13d294(0x90),'tooLarge':_0x13d294(0x8d),'internalError':'內部未知錯誤','interrupt':_0x13d294(0x8e),'fileTypeError':'所選檔案\x20[{0}]\x20不支援上傳','wait':'請稍等...','cancel':'取消','uploadAgain':_0x13d294(0x94)}};export{e as default};
@@ -1 +1 @@
1
- const _0x1d2027=_0x2078;function _0x2078(_0x3120bd,_0x11103e){_0x3120bd=_0x3120bd-0x198;const _0x972a57=_0x972a();let _0x2078e0=_0x972a57[_0x3120bd];return _0x2078e0;}(function(_0x1b11cf,_0x354d97){const _0x133001=_0x2078,_0x234839=_0x1b11cf();while(!![]){try{const _0x29f104=parseInt(_0x133001(0x1a8))/0x1+-parseInt(_0x133001(0x1a1))/0x2+parseInt(_0x133001(0x1aa))/0x3+-parseInt(_0x133001(0x19c))/0x4*(-parseInt(_0x133001(0x1a5))/0x5)+-parseInt(_0x133001(0x1a4))/0x6+parseInt(_0x133001(0x19a))/0x7*(parseInt(_0x133001(0x1a7))/0x8)+-parseInt(_0x133001(0x1a6))/0x9*(parseInt(_0x133001(0x19e))/0xa);if(_0x29f104===_0x354d97)break;else _0x234839['push'](_0x234839['shift']());}catch(_0x4f21ef){_0x234839['push'](_0x234839['shift']());}}}(_0x972a,0x75e3d));const e={'exchange-client':{'uploading':'上傳中','uploadSuccess':_0x1d2027(0x19d),'uploadSuccessTip':_0x1d2027(0x1a9),'downloading':_0x1d2027(0x1a2),'downloadSuccess':'下載成功','unknownMistake':'未知錯誤','networkError':_0x1d2027(0x199),'tooLarge':_0x1d2027(0x1a3),'internalError':_0x1d2027(0x19f),'interrupt':'網路連線中斷,檔案上傳失敗','fileTypeError':_0x1d2027(0x1a0),'wait':_0x1d2027(0x198),'cancel':'取消','uploadAgain':_0x1d2027(0x19b)}};function _0x972a(){const _0x4d5126=['資料流過大','940728RdgXJU','35ZNUpEP','9xUMWID','248552DAVehQ','958045LDHRYl','{0}個檔案上傳成功','623529hvyOpU','請稍等...','網路異常','203eJvtQV','再次上傳','379372VCgZdX','檔案上傳成功','15200320uRqNch','內部未知錯誤','所選檔案\x20[{0}]\x20不支援上傳','1142186rzZSxt','下載中'];_0x972a=function(){return _0x4d5126;};return _0x972a();}export{e as default};
1
+ const _0x5d4ce7=_0x402d;function _0x402d(_0x194825,_0x3a70d5){_0x194825=_0x194825-0xef;const _0x3e29a2=_0x3e29();let _0x402da4=_0x3e29a2[_0x194825];return _0x402da4;}(function(_0x44a6db,_0x3613fc){const _0xf3c990=_0x402d,_0x3a5b39=_0x44a6db();while(!![]){try{const _0x26891c=-parseInt(_0xf3c990(0x101))/0x1+-parseInt(_0xf3c990(0xf8))/0x2*(parseInt(_0xf3c990(0x102))/0x3)+-parseInt(_0xf3c990(0xfa))/0x4*(-parseInt(_0xf3c990(0xfb))/0x5)+-parseInt(_0xf3c990(0xfd))/0x6*(-parseInt(_0xf3c990(0xf3))/0x7)+-parseInt(_0xf3c990(0xf2))/0x8*(-parseInt(_0xf3c990(0x100))/0x9)+parseInt(_0xf3c990(0xfe))/0xa+parseInt(_0xf3c990(0xf1))/0xb*(-parseInt(_0xf3c990(0x103))/0xc);if(_0x26891c===_0x3613fc)break;else _0x3a5b39['push'](_0x3a5b39['shift']());}catch(_0x3efa7b){_0x3a5b39['push'](_0x3a5b39['shift']());}}}(_0x3e29,0x706ab));const e={'exchange-client':{'uploading':_0x5d4ce7(0xf0),'uploadSuccess':'檔案上傳成功','uploadSuccessTip':'{0}個檔案上傳成功','downloading':'下載中','downloadSuccess':_0x5d4ce7(0xfc),'unknownMistake':_0x5d4ce7(0xf6),'networkError':_0x5d4ce7(0xf5),'tooLarge':_0x5d4ce7(0xf7),'internalError':_0x5d4ce7(0xf4),'interrupt':_0x5d4ce7(0xff),'fileTypeError':_0x5d4ce7(0xf9),'wait':_0x5d4ce7(0xef),'cancel':'取消','uploadAgain':'再次上傳'}};function _0x3e29(){const _0x5e974a=['12150JbGfQC','所選檔案\x20[{0}]\x20不支援上傳','1324bUhvtg','5435NQNskP','下載成功','177366udDtlX','6170350KBKbYE','網路連線中斷,檔案上傳失敗','234auNEWu','251406Wxkfqj','267WVsstx','63396kfmGvi','請稍等...','上傳中','1947hUOtMd','181544XHSqDm','147CKwUGH','內部未知錯誤','網路異常','未知錯誤','資料流過大'];_0x3e29=function(){return _0x5e974a;};return _0x3e29();}export{e as default};
@@ -1,8 +1,10 @@
1
1
  import { Disposable, Injector } from '@univerjs/core';
2
- import { IUIPartsService } from '@univerjs/ui';
2
+ import { IconManager, IUIPartsService } from '@univerjs/ui';
3
3
  export declare class ExchangeClientController extends Disposable {
4
4
  private readonly _injector;
5
5
  private readonly _uiPartsService;
6
- constructor(_injector: Injector, _uiPartsService: IUIPartsService);
6
+ private readonly _iconManager;
7
+ constructor(_injector: Injector, _uiPartsService: IUIPartsService, _iconManager: IconManager);
8
+ private _registerIcons;
7
9
  private _registerComponents;
8
10
  }
@@ -1,3 +1,4 @@
1
+ import type { IExchangeSlideDocumentData } from '@univerjs-pro/exchange-client';
1
2
  import type { IDocumentData, IWorkbookData } from '@univerjs/core';
2
3
  import { FUniver } from '@univerjs/core/facade';
3
4
  /**
@@ -149,6 +150,77 @@ export interface IFUniverExchangeClientMixin {
149
150
  * ```
150
151
  */
151
152
  exportDOCXByUnitIdAsync(unitId: string): Promise<File | undefined>;
153
+ /**
154
+ * Import PPTX file to unit id
155
+ * @param {string | File} file File path or file object
156
+ * @returns {Promise<string | undefined>} A promise that resolves to the unit id
157
+ *
158
+ * @example
159
+ * ```typescript
160
+ * // Accepts a File object
161
+ * const unitId = await univerAPI.importPPTXToUnitIdAsync(file);
162
+ * // Or accepts a URL to a remote file
163
+ * // const unitId = await univerAPI.importPPTXToUnitIdAsync('https://example.com/filename.pptx');
164
+ *
165
+ * const url = new URL(window.location.href);
166
+ * url.searchParams.set('unit', unitId);
167
+ * url.searchParams.set('type', "3"); // The meaning of "3" is String(UniverInstanceType.UNIVER_SLIDE)
168
+ *
169
+ * // Open the unit in the new window
170
+ * window.open(url.toString(), '_blank');
171
+ * ```
172
+ */
173
+ importPPTXToUnitIdAsync(file: string | File): Promise<string | undefined>;
174
+ /**
175
+ * Import PPTX file to slide data
176
+ * @param {string | File} file File path or file object
177
+ * @returns {Promise<IExchangeSlideDocumentData | undefined>} A promise that resolves to the slide data
178
+ *
179
+ * @example
180
+ * ```typescript
181
+ * // Accepts a File object
182
+ * const snapshot = await univerAPI.importPPTXToSnapshotAsync(file);
183
+ * // Or accepts a URL to a remote file
184
+ * // const snapshot = await univerAPI.importPPTXToSnapshotAsync('https://example.com/filename.pptx');
185
+ * console.log('Snapshot created:', snapshot);
186
+ * ```
187
+ */
188
+ importPPTXToSnapshotAsync(file: string | File): Promise<IExchangeSlideDocumentData | undefined>;
189
+ /**
190
+ * Export PPTX file by unit id
191
+ * @param {string} unitId Unit id
192
+ * @returns {Promise<File | undefined>} A promise that resolves to the PPTX file
193
+ *
194
+ * @example
195
+ * ```typescript
196
+ * import { downloadFile } from '@univerjs-pro/exchange-client';
197
+ *
198
+ * const fPresentation = univerAPI.getActivePresentation();
199
+ * const unitId = fPresentation.getId();
200
+ * const file = await univerAPI.exportPPTXByUnitIdAsync(unitId);
201
+ *
202
+ * // Download the file
203
+ * downloadFile(file, 'univer', 'pptx');
204
+ * ```
205
+ */
206
+ exportPPTXByUnitIdAsync(unitId: string): Promise<File | undefined>;
207
+ /**
208
+ * Export PPTX file by slide data
209
+ * @param {IExchangeSlideDocumentData} snapshot Slide data
210
+ * @returns {Promise<File | undefined>} A promise that resolves to the PPTX file
211
+ *
212
+ * @example
213
+ * ```typescript
214
+ * import { downloadFile } from '@univerjs-pro/exchange-client';
215
+ *
216
+ * const snapshot = univerAPI.getActivePresentation().save();
217
+ * const file = await univerAPI.exportPPTXBySnapshotAsync(snapshot);
218
+ *
219
+ * // Download the file
220
+ * downloadFile(file, 'univer', 'pptx');
221
+ * ```
222
+ */
223
+ exportPPTXBySnapshotAsync(snapshot: IExchangeSlideDocumentData): Promise<File | undefined>;
152
224
  }
153
225
  export declare class FUniverExchangeClientMixin extends FUniver implements IFUniverExchangeClientMixin {
154
226
  /**
@@ -177,6 +249,22 @@ export declare class FUniverExchangeClientMixin extends FUniver implements IFUni
177
249
  importDOCXToSnapshotAsync(file: string | File): Promise<IDocumentData | undefined>;
178
250
  exportDOCXBySnapshotAsync(snapshot: IDocumentData): Promise<File | undefined>;
179
251
  exportDOCXByUnitIdAsync(unitId: string): Promise<File | undefined>;
252
+ /**
253
+ * Import PPTX file to unit id
254
+ */
255
+ importPPTXToUnitIdAsync(file: string | File): Promise<string | undefined>;
256
+ /**
257
+ * Import PPTX file to slide data
258
+ */
259
+ importPPTXToSnapshotAsync(file: string | File): Promise<IExchangeSlideDocumentData | undefined>;
260
+ /**
261
+ * Export PPTX file by unit id
262
+ */
263
+ exportPPTXByUnitIdAsync(unitId: string): Promise<File | undefined>;
264
+ /**
265
+ * Export PPTX file by slide data
266
+ */
267
+ exportPPTXBySnapshotAsync(snapshot: IExchangeSlideDocumentData): Promise<File | undefined>;
180
268
  }
181
269
  declare module '@univerjs/core/facade' {
182
270
  interface FUniver extends IFUniverExchangeClientMixin {
@@ -1,12 +1,13 @@
1
1
  import './global.css';
2
- export { EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY, type IUniverExchangeClientOptions } from './controllers/config.schema';
3
- export type { IUniverExchangeClientConfig } from './controllers/config.schema';
2
+ export { EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY } from './config/config';
3
+ export type { IUniverExchangeClientOptions } from './config/config';
4
+ export type { IUniverExchangeClientConfig } from './config/config';
4
5
  export { UniverExchangeClientPlugin } from './plugin';
5
6
  export { ExchangeService, IExchangeService } from './services/exchange.service';
6
7
  export { ExchangeOperateService, IExchangeOperateService } from './services/operate.service';
7
8
  export { IRequestService, RequestService } from './services/request.service';
8
- export { IUploadNotificationService, UploadNotificationService, UploadNotificationState } from './services/upload-notification.service';
9
- export { transformDocumentDataToSnapshotJson, transformSnapshotJsonToDocumentData, transformSnapshotJsonToWorkbookData, transformWorkbookDataToSnapshotJson, } from './services/utils/snapshot';
10
- export type { ISnapshotBlockJsonResponse } from './services/utils/snapshot';
9
+ export { IUploadNotificationService, UploadNotificationService, UploadNotificationState, } from './services/upload-notification.service';
10
+ export { transformDocumentDataToSnapshotJson, transformSlideDataToSnapshotJson, transformSnapshotJsonToDocumentData, transformSnapshotJsonToSlideData, transformSnapshotJsonToWorkbookData, transformWorkbookDataToSnapshotJson, } from './services/utils/snapshot';
11
+ export type { IExchangeSlideDocumentData, ISnapshotBlockJsonResponse } from './services/utils/snapshot';
11
12
  export { downloadFile, getUniverInstanceTypeByFile, getUploadFile } from './services/utils/tool';
12
13
  export { UploadNotificationContainer } from './views/UploadNotificationContainer';
@@ -0,0 +1,3 @@
1
+ import type { LocaleLeafKeys } from '@univerjs/core';
2
+ import type enUS from './en-US';
3
+ export type LocaleKey = LocaleLeafKeys<typeof enUS>;
@@ -1,4 +1,4 @@
1
- import type { IUniverExchangeClientConfig } from './controllers/config.schema';
1
+ import type { IUniverExchangeClientConfig } from './config/config';
2
2
  import { IConfigService, Injector, Plugin } from '@univerjs/core';
3
3
  export declare class UniverExchangeClientPlugin extends Plugin {
4
4
  private readonly _config;
@@ -2,6 +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
6
  import { Disposable, IConfigService, UniverInstanceType } from '@univerjs/core';
6
7
  import { HTTPService } from '@univerjs/network';
7
8
  export declare enum RequestState {
@@ -51,6 +52,22 @@ export interface IExchangeService {
51
52
  * @returns Exported DOCX file
52
53
  */
53
54
  exportDOCXBySnapshot(snapshot: IDocumentData): Promise<File | undefined>;
55
+ /**
56
+ * Import PPTX file to slide data
57
+ * @param file
58
+ */
59
+ importPPTXToSnapshot(file: File | string): Promise<IExchangeSlideDocumentData | undefined>;
60
+ /**
61
+ * Export PPTX file by unit id
62
+ * @param unitId
63
+ */
64
+ exportPPTXByUnitId(unitId: string): Promise<File | undefined>;
65
+ /**
66
+ * Export PPTX file by slide data
67
+ * @param snapshot
68
+ * @returns Exported PPTX file
69
+ */
70
+ exportPPTXBySnapshot(snapshot: IExchangeSlideDocumentData): Promise<File | undefined>;
54
71
  /**
55
72
  * Import file to unit id
56
73
  * @param file
@@ -77,6 +94,9 @@ export declare class ExchangeService extends Disposable implements IExchangeServ
77
94
  importDOCXToSnapshot(file: File | string): Promise<IDocumentData | undefined>;
78
95
  exportDOCXByUnitId(unitId: string): Promise<File | undefined>;
79
96
  exportDOCXBySnapshot(data: IDocumentData): Promise<File | undefined>;
97
+ importPPTXToSnapshot(file: File | string): Promise<IExchangeSlideDocumentData | undefined>;
98
+ exportPPTXByUnitId(unitId: string): Promise<File | undefined>;
99
+ exportPPTXBySnapshot(data: IExchangeSlideDocumentData): Promise<File | undefined>;
80
100
  importXLSXToSnapshot(file: File | string): Promise<IWorkbookData | undefined>;
81
101
  exportXLSXByUnitId(unitId: string): Promise<File | undefined>;
82
102
  exportXLSXBySnapshot(data: IWorkbookData): Promise<File | undefined>;
@@ -2,7 +2,7 @@ import type { IDisposable } from '@univerjs/core';
2
2
  import type { Observable } from 'rxjs';
3
3
  import type { ExchangeService } from './exchange.service';
4
4
  import type { UploadNotificationService } from './upload-notification.service';
5
- import { Disposable, ILogService, IUniverInstanceService, LocaleService, UniverInstanceType } from '@univerjs/core';
5
+ import { Disposable, ILogService, IResourceLoaderService, IUniverInstanceService, LocaleService, UniverInstanceType } from '@univerjs/core';
6
6
  import { IMessageService } from '@univerjs/ui';
7
7
  export interface IExchangeOperateService {
8
8
  interrupt(): void;
@@ -46,6 +46,24 @@ export interface IExchangeOperateService {
46
46
  * @returns
47
47
  */
48
48
  exportDOCXBySnapshot(): Promise<void>;
49
+ /**
50
+ * Upload pptx file to server, get unitId and open unit
51
+ */
52
+ importPPTXToUnitId(): Promise<string | undefined>;
53
+ /**
54
+ * Upload pptx file to server, get snapshot and refresh current slide
55
+ */
56
+ importPPTXToSnapshot(): Promise<void>;
57
+ /**
58
+ * Export pptx file by unitId
59
+ * @returns A promise that resolves after the export flow finishes.
60
+ */
61
+ exportPPTXByUnitId(unitId?: string, unitName?: string, unitType?: UniverInstanceType): Promise<void>;
62
+ /**
63
+ * Export pptx file by snapshot
64
+ * @returns A promise that resolves after the export flow finishes.
65
+ */
66
+ exportPPTXBySnapshot(): Promise<void>;
49
67
  /**
50
68
  * Upload file, supports multiple types
51
69
  * @param file
@@ -54,6 +72,10 @@ export interface IExchangeOperateService {
54
72
  unitId: string;
55
73
  type: UniverInstanceType;
56
74
  } | undefined>;
75
+ /**
76
+ * Upload file using the currently focused unit type.
77
+ */
78
+ importFileToUnitIdByCurrentType(): Promise<string | undefined>;
57
79
  /**
58
80
  * Customize the imported Unit URL format according to the needs of your own scene
59
81
  * @param getLink
@@ -78,20 +100,26 @@ export declare class ExchangeOperateService extends Disposable implements IExcha
78
100
  private readonly _exchangeService;
79
101
  private readonly _uploadNotificationService;
80
102
  protected readonly _logService: ILogService;
103
+ private readonly _resourceLoaderService;
81
104
  private readonly _progress$;
82
105
  readonly progress$: Observable<IUploadProgress>;
83
106
  private _totalUploadTaskCount;
84
107
  private _doneUploadTaskCount;
85
- constructor(_univerInstanceService: IUniverInstanceService, _messageService: IMessageService, _localeService: LocaleService, _exchangeService: ExchangeService, _uploadNotificationService: UploadNotificationService, _logService: ILogService);
108
+ constructor(_univerInstanceService: IUniverInstanceService, _messageService: IMessageService, _localeService: LocaleService, _exchangeService: ExchangeService, _uploadNotificationService: UploadNotificationService, _logService: ILogService, _resourceLoaderService: IResourceLoaderService);
86
109
  interrupt(): void;
87
110
  uploadFileToUnitId(types: UniverInstanceType[]): Promise<{
88
111
  unitId: string;
89
112
  type: UniverInstanceType;
90
113
  } | undefined>;
114
+ importFileToUnitIdByCurrentType(): Promise<string | undefined>;
91
115
  importDOCXToUnitId(): Promise<string | undefined>;
92
116
  importDOCXToSnapshot(): Promise<void>;
93
117
  exportDOCXByUnitId(unitId?: string, unitName?: string, unitType?: UniverInstanceType): Promise<void>;
94
118
  exportDOCXBySnapshot(): Promise<void>;
119
+ importPPTXToUnitId(): Promise<string | undefined>;
120
+ importPPTXToSnapshot(): Promise<void>;
121
+ exportPPTXByUnitId(unitId?: string, unitName?: string, unitType?: UniverInstanceType): Promise<void>;
122
+ exportPPTXBySnapshot(): Promise<void>;
95
123
  importXLSXToUnitId(): Promise<string | undefined>;
96
124
  importXLSXToSnapshot(): Promise<void>;
97
125
  exportXLSXByUnitId(unitId?: string, unitName?: string, unitType?: UniverInstanceType): Promise<void>;
@@ -100,9 +128,12 @@ export declare class ExchangeOperateService extends Disposable implements IExcha
100
128
  private _importFileToUnitId;
101
129
  private _getUnitID;
102
130
  private _getUnitIDDoc;
131
+ private _getUnitIDSlide;
103
132
  private _getUnitName;
133
+ private _getUnitNameByType;
104
134
  private _getUnitJson;
105
135
  private _getUnitDocJson;
136
+ private _getUnitSlideJson;
106
137
  /**
107
138
  * Get unit link /?unit={unitId}&type=2
108
139
  * @param unitId
@@ -111,6 +142,7 @@ export declare class ExchangeOperateService extends Disposable implements IExcha
111
142
  */
112
143
  private _getLinkByUnitId;
113
144
  private _refresh;
145
+ private _refreshSlide;
114
146
  private _showNetworkError;
115
147
  private _showDownloadMessage;
116
148
  private _showUploadMessage;
@@ -8,6 +8,7 @@ export declare const UNIT_CONTENT_TYPE: {
8
8
  1: string[];
9
9
  2: string[];
10
10
  3: string[];
11
+ 5: string[];
11
12
  4: string[];
12
13
  [-1]: string[];
13
14
  };
@@ -1,6 +1,7 @@
1
1
  import type { ILogContext, ISnapshotServerService } from '@univerjs-pro/collaboration';
2
2
  import type { IDocumentData, IWorkbookData, Nullable } from '@univerjs/core';
3
- import type { ICopyFileMetaResponse, IDocumentMeta, IFetchMissingChangesetsResponse, IGetDeserializedSheetBlockResponse, IGetLatestCsReqIdBySidResponse, IGetResourcesResponse, IGetSheetBlockRequest, IGetSheetBlockResponse, IGetUnitOnRevResponse, ISaveChangesetResponse, ISaveSheetBlockRequest, ISaveSheetBlockResponse, ISaveSnapshotResponse, ISheetBlock, ISnapshot, IWorkbookMeta, IWorksheetMeta } from '@univerjs/protocol';
3
+ import type { ICopyFileMetaResponse, IDocumentMeta, IFetchMissingChangesetsResponse, IGetDeserializedSheetBlockResponse, IGetLatestCsReqIdBySidResponse, IGetResourcesResponse, IGetSheetBlockRequest, IGetSheetBlockResponse, IGetUnitOnRevResponse, ISaveChangesetResponse, ISaveSheetBlockRequest, ISaveSheetBlockResponse, ISaveSnapshotResponse, ISheetBlock, ISlideMeta, ISnapshot, IWorkbookMeta, IWorksheetMeta } from '@univerjs/protocol';
4
+ import { transformSnapshotToSlideData } from '@univerjs-pro/collaboration';
4
5
  export interface IWorksheetMetaJson extends Omit<IWorksheetMeta, 'originalMeta'> {
5
6
  originalMeta: string;
6
7
  }
@@ -13,9 +14,14 @@ export interface IWorkbookMetaJson extends Omit<IWorkbookMeta, 'originalMeta' |
13
14
  export interface IDocumentMetaJson extends Omit<IDocumentMeta, 'originalMeta'> {
14
15
  originalMeta: string;
15
16
  }
16
- export interface ISnapshotJson extends Omit<ISnapshot, 'workbook' | 'doc'> {
17
+ export type IExchangeSlideDocumentData = ReturnType<typeof transformSnapshotToSlideData>;
18
+ export interface ISlideMetaJson extends Omit<ISlideMeta, 'originalMeta'> {
19
+ originalMeta: string;
20
+ }
21
+ export interface ISnapshotJson extends Omit<ISnapshot, 'workbook' | 'doc' | 'slide'> {
17
22
  workbook: Partial<IWorkbookMetaJson>;
18
23
  doc: Partial<IDocumentMetaJson>;
24
+ slide?: Partial<ISlideMetaJson>;
19
25
  }
20
26
  export interface ISheetBlockData extends Omit<ISheetBlock, 'data'> {
21
27
  data: string;
@@ -43,6 +49,10 @@ export declare function transformWorkbookSnapshotMetaToString(snapshot: ISnapsho
43
49
  * @param snapshot
44
50
  */
45
51
  export declare function transformDocumentSnapshotMetaToString(snapshot: ISnapshot): Nullable<ISnapshotJson>;
52
+ /**
53
+ * Convert the Uint8Array in the slide snapshot to a string for easy transmission to the backend.
54
+ */
55
+ export declare function transformSlideSnapshotMetaToString(snapshot: ISnapshot): Nullable<ISnapshotJson>;
46
56
  /**
47
57
  * Convert the Uint8Array in the sheet block to a string for easy transmission to the backend
48
58
  * @param sheetBlocks
@@ -57,6 +67,11 @@ export declare function transformWorkbookDataToSnapshotJson(workbookData: IWorkb
57
67
  * Convert the document data to snapshot data
58
68
  */
59
69
  export declare function transformDocumentDataToSnapshotJson(documentData: IDocumentData): Promise<ISnapshotBlockJson>;
70
+ /**
71
+ * Convert the slide data to snapshot data.
72
+ * @returns Snapshot JSON payload with slide meta encoded as a string.
73
+ */
74
+ export declare function transformSlideDataToSnapshotJson(slideData: IExchangeSlideDocumentData): Promise<ISnapshotBlockJson>;
60
75
  /**
61
76
  * Convert the Snapshot data to workbook data
62
77
  */
@@ -65,6 +80,10 @@ export declare function transformSnapshotJsonToWorkbookData(json: ISnapshotBlock
65
80
  * Convert the Snapshot data to workbook data
66
81
  */
67
82
  export declare function transformSnapshotJsonToDocumentData(json: ISnapshotBlockJsonResponse): IDocumentData;
83
+ /**
84
+ * Convert the Snapshot data to slide data.
85
+ */
86
+ export declare function transformSnapshotJsonToSlideData(json: ISnapshotBlockJsonResponse): IExchangeSlideDocumentData;
68
87
  /**
69
88
  * The server needs to fully implement all interfaces, but when used by the client, use saveSheetBlock to cache the sheet block locally, and use getSheetBlock to obtain the sheet block.
70
89
  */
@@ -1 +1 @@
1
- export declare function UploadNotificationContainer(): import("react/jsx-runtime").JSX.Element;
1
+ export declare function UploadNotificationContainer(): import("react").JSX.Element;
@@ -2,4 +2,4 @@ import type { ILinkList } from '../../services/upload-notification.service';
2
2
  export interface ILinkListProps {
3
3
  list: ILinkList[];
4
4
  }
5
- export declare function LinkList(props: ILinkListProps): import("react/jsx-runtime").JSX.Element;
5
+ export declare function LinkList(props: ILinkListProps): import("react").JSX.Element;
@@ -1 +1 @@
1
- export declare function UploadAgain(): import("react/jsx-runtime").JSX.Element;
1
+ export declare function UploadAgain(): import("react").JSX.Element;
@@ -4,4 +4,4 @@ export interface IUploadButton {
4
4
  className?: string;
5
5
  onClick?: (e: MouseEvent<HTMLButtonElement>) => void;
6
6
  }
7
- export declare function UploadButton(props: IUploadButton): import("react/jsx-runtime").JSX.Element;
7
+ export declare function UploadButton(props: IUploadButton): import("react").JSX.Element;
@@ -1 +1 @@
1
- export declare function UploadError(): import("react/jsx-runtime").JSX.Element;
1
+ export declare function UploadError(): import("react").JSX.Element;
@@ -1 +1 @@
1
- export declare function UploadNotification(): false | import("react/jsx-runtime").JSX.Element;
1
+ export declare function UploadNotification(): false | import("react").JSX.Element;
@@ -1,4 +1,4 @@
1
1
  export interface IUploadSuccessProps {
2
2
  count: number;
3
3
  }
4
- export declare function UploadSuccess(props: IUploadSuccessProps): import("react/jsx-runtime").JSX.Element;
4
+ export declare function UploadSuccess(props: IUploadSuccessProps): import("react").JSX.Element;
@@ -1 +1 @@
1
- export declare function Uploading(): import("react/jsx-runtime").JSX.Element;
1
+ export declare function Uploading(): import("react").JSX.Element;
@@ -1 +1 @@
1
- export declare function UploadCancel(): import("react/jsx-runtime").JSX.Element;
1
+ export declare function UploadCancel(): import("react").JSX.Element;
@@ -1 +1 @@
1
- export declare function UploadProgress(): import("react/jsx-runtime").JSX.Element;
1
+ export declare function UploadProgress(): import("react").JSX.Element;
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0xed9a(){const _0x7919ba=['exportDOCXBySnapshot','49osvgNO','UniverProExchangeClient','3552190hEIeuD','get','importXLSXToUnitIdAsync','UniverCoreFacade','@univerjs/core/facade','exportXLSXByUnitIdAsync','importFileToUnitId','exportXLSXBySnapshot','48414KRUEoM','The\x20exchange\x20service\x20is\x20not\x20available','1089460pOPLJs','amd','exportXLSXBySnapshotAsync','681640KoQpXm','988884IPoLxq','importXLSXToSnapshot','extend','12sFybBx','FUniver','8bSpqCM','UniverInstanceType','UNIVER_SHEET','exportDOCXByUnitId','function','_injector','object','@univerjs/core','exportDOCXBySnapshotAsync','405960CIJwxQ','32894RHlAGS','importDOCXToSnapshotAsync','@univerjs-pro/exchange-client','IExchangeService','importDOCXToUnitIdAsync','importXLSXToSnapshotAsync','importDOCXToSnapshot','UniverCore'];_0xed9a=function(){return _0x7919ba;};return _0xed9a();}function _0x2fd1(_0x66b033,_0x578a7c){_0x66b033=_0x66b033-0x179;const _0xed9a7a=_0xed9a();let _0x2fd1bc=_0xed9a7a[_0x66b033];return _0x2fd1bc;}(function(_0x500043,_0x12e91b){const _0x54c713=_0x2fd1,_0xe4e8cc=_0x500043();while(!![]){try{const _0x1dcac7=-parseInt(_0x54c713(0x183))/0x1*(-parseInt(_0x54c713(0x18f))/0x2)+-parseInt(_0x54c713(0x18e))/0x3+parseInt(_0x54c713(0x17c))/0x4+parseInt(_0x54c713(0x17f))/0x5+parseInt(_0x54c713(0x17a))/0x6*(-parseInt(_0x54c713(0x198))/0x7)+parseInt(_0x54c713(0x185))/0x8*(parseInt(_0x54c713(0x180))/0x9)+-parseInt(_0x54c713(0x19a))/0xa;if(_0x1dcac7===_0x12e91b)break;else _0xe4e8cc['push'](_0xe4e8cc['shift']());}catch(_0xb53435){_0xe4e8cc['push'](_0xe4e8cc['shift']());}}}(_0xed9a,0x293cf),function(_0x183d2f,_0x207c2e){const _0x505018=_0x2fd1;typeof exports==_0x505018(0x18b)&&typeof module<'u'?_0x207c2e(require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x505018(0x189)&&define[_0x505018(0x17d)]?define([_0x505018(0x191),_0x505018(0x18c),_0x505018(0x19e)],_0x207c2e):(_0x183d2f=typeof globalThis<'u'?globalThis:_0x183d2f||self,_0x207c2e(_0x183d2f[_0x505018(0x199)],_0x183d2f[_0x505018(0x196)],_0x183d2f[_0x505018(0x19d)]));}(this,function(_0x186c34,_0x31a908,_0x51de1c){const _0x372581=_0x2fd1;var _0x1e1c9a=class extends _0x51de1c[_0x372581(0x184)]{async[_0x372581(0x19c)](_0x2d36da){const _0x22793=_0x372581;let _0x5f285e=this['_injector'][_0x22793(0x19b)](_0x186c34[_0x22793(0x192)]);if(!_0x5f285e)throw Error(_0x22793(0x17b));return _0x5f285e[_0x22793(0x1a0)](_0x2d36da,_0x31a908[_0x22793(0x186)][_0x22793(0x187)]);}async[_0x372581(0x194)](_0x2e447b){const _0x35635a=_0x372581;let _0x3e8023=this['_injector'][_0x35635a(0x19b)](_0x186c34[_0x35635a(0x192)]);if(!_0x3e8023)throw Error(_0x35635a(0x17b));return _0x3e8023[_0x35635a(0x181)](_0x2e447b);}async[_0x372581(0x19f)](_0x130ad3){const _0x1dcdfc=_0x372581;let _0xc3e998=this['_injector'][_0x1dcdfc(0x19b)](_0x186c34[_0x1dcdfc(0x192)]);if(!_0xc3e998)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0xc3e998['exportXLSXByUnitId'](_0x130ad3);}async[_0x372581(0x17e)](_0x515026){const _0x297ebc=_0x372581;let _0x3cc431=this[_0x297ebc(0x18a)][_0x297ebc(0x19b)](_0x186c34[_0x297ebc(0x192)]);if(!_0x3cc431)throw Error(_0x297ebc(0x17b));return _0x3cc431[_0x297ebc(0x179)](_0x515026);}async[_0x372581(0x193)](_0x32d63c){const _0x52dce3=_0x372581;let _0x1341ce=this[_0x52dce3(0x18a)][_0x52dce3(0x19b)](_0x186c34[_0x52dce3(0x192)]);if(!_0x1341ce)throw Error(_0x52dce3(0x17b));return _0x1341ce[_0x52dce3(0x1a0)](_0x32d63c,_0x31a908[_0x52dce3(0x186)]['UNIVER_DOC']);}async[_0x372581(0x190)](_0x2775d4){const _0x5e01e8=_0x372581;let _0x3d09b3=this['_injector'][_0x5e01e8(0x19b)](_0x186c34['IExchangeService']);if(!_0x3d09b3)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x3d09b3[_0x5e01e8(0x195)](_0x2775d4);}async[_0x372581(0x18d)](_0x48e97e){const _0x1732c7=_0x372581;let _0x7cbfa0=this[_0x1732c7(0x18a)]['get'](_0x186c34[_0x1732c7(0x192)]);if(!_0x7cbfa0)throw Error(_0x1732c7(0x17b));return _0x7cbfa0[_0x1732c7(0x197)](_0x48e97e);}async['exportDOCXByUnitIdAsync'](_0x48755d){const _0x25ea5f=_0x372581;let _0x309aab=this[_0x25ea5f(0x18a)]['get'](_0x186c34['IExchangeService']);if(!_0x309aab)throw Error(_0x25ea5f(0x17b));return _0x309aab[_0x25ea5f(0x188)](_0x48755d);}};_0x51de1c[_0x372581(0x184)][_0x372581(0x182)](_0x1e1c9a);}));
1
+ function _0x17ae(_0x16c5f3,_0x1aa6c5){_0x16c5f3=_0x16c5f3-0xba;const _0x56fb7a=_0x56fb();let _0x17aeca=_0x56fb7a[_0x16c5f3];return _0x17aeca;}(function(_0x2adc21,_0x47519b){const _0x282033=_0x17ae,_0x3beba1=_0x2adc21();while(!![]){try{const _0x46120c=parseInt(_0x282033(0xbd))/0x1*(-parseInt(_0x282033(0xd4))/0x2)+parseInt(_0x282033(0xdd))/0x3*(-parseInt(_0x282033(0xbb))/0x4)+-parseInt(_0x282033(0xc3))/0x5+parseInt(_0x282033(0xd7))/0x6+parseInt(_0x282033(0xc7))/0x7+-parseInt(_0x282033(0xcd))/0x8+parseInt(_0x282033(0xc8))/0x9;if(_0x46120c===_0x47519b)break;else _0x3beba1['push'](_0x3beba1['shift']());}catch(_0x3563f1){_0x3beba1['push'](_0x3beba1['shift']());}}}(_0x56fb,0x1d63c),function(_0x4a3fca,_0x55ca44){const _0x342963=_0x17ae;typeof exports=='object'&&typeof module<'u'?_0x55ca44(require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x342963(0xde)&&define['amd']?define([_0x342963(0xd8),'@univerjs/core',_0x342963(0xba)],_0x55ca44):(_0x4a3fca=typeof globalThis<'u'?globalThis:_0x4a3fca||self,_0x55ca44(_0x4a3fca[_0x342963(0xc6)],_0x4a3fca['UniverCore'],_0x4a3fca[_0x342963(0xd2)]));}(this,function(_0x511043,_0x2b44a7,_0x185986){const _0x54b547=_0x17ae;var _0x91585a=class extends _0x185986[_0x54b547(0xd0)]{async['importXLSXToUnitIdAsync'](_0x181924){const _0x2437f4=_0x54b547;let _0x219ca8=this[_0x2437f4(0xc2)][_0x2437f4(0xd3)](_0x511043[_0x2437f4(0xbf)]);if(!_0x219ca8)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x219ca8[_0x2437f4(0xdc)](_0x181924,_0x2b44a7['UniverInstanceType'][_0x2437f4(0xc4)]);}async[_0x54b547(0xe0)](_0x7453de){const _0x4a4bc5=_0x54b547;let _0x525931=this[_0x4a4bc5(0xc2)][_0x4a4bc5(0xd3)](_0x511043[_0x4a4bc5(0xbf)]);if(!_0x525931)throw Error(_0x4a4bc5(0xcb));return _0x525931[_0x4a4bc5(0xbe)](_0x7453de);}async[_0x54b547(0xc9)](_0x12899c){const _0x3d6883=_0x54b547;let _0x17e674=this[_0x3d6883(0xc2)][_0x3d6883(0xd3)](_0x511043[_0x3d6883(0xbf)]);if(!_0x17e674)throw Error(_0x3d6883(0xcb));return _0x17e674[_0x3d6883(0xda)](_0x12899c);}async['exportXLSXBySnapshotAsync'](_0x236092){const _0x1af91b=_0x54b547;let _0x4670aa=this[_0x1af91b(0xc2)][_0x1af91b(0xd3)](_0x511043[_0x1af91b(0xbf)]);if(!_0x4670aa)throw Error(_0x1af91b(0xcb));return _0x4670aa[_0x1af91b(0xbc)](_0x236092);}async[_0x54b547(0xd9)](_0x25092a){const _0xcfe183=_0x54b547;let _0x1b1ba8=this[_0xcfe183(0xc2)][_0xcfe183(0xd3)](_0x511043['IExchangeService']);if(!_0x1b1ba8)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x1b1ba8[_0xcfe183(0xdc)](_0x25092a,_0x2b44a7[_0xcfe183(0xd5)][_0xcfe183(0xc0)]);}async['importDOCXToSnapshotAsync'](_0xd04f49){const _0x3ace95=_0x54b547;let _0x14909e=this[_0x3ace95(0xc2)][_0x3ace95(0xd3)](_0x511043[_0x3ace95(0xbf)]);if(!_0x14909e)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x14909e[_0x3ace95(0xce)](_0xd04f49);}async['exportDOCXBySnapshotAsync'](_0x1ef74b){const _0x37cc26=_0x54b547;let _0x4d9742=this[_0x37cc26(0xc2)]['get'](_0x511043[_0x37cc26(0xbf)]);if(!_0x4d9742)throw Error(_0x37cc26(0xcb));return _0x4d9742['exportDOCXBySnapshot'](_0x1ef74b);}async[_0x54b547(0xc1)](_0x4ad2c0){const _0x29cc12=_0x54b547;let _0x1222ed=this[_0x29cc12(0xc2)][_0x29cc12(0xd3)](_0x511043[_0x29cc12(0xbf)]);if(!_0x1222ed)throw Error(_0x29cc12(0xcb));return _0x1222ed[_0x29cc12(0xcc)](_0x4ad2c0);}async[_0x54b547(0xc5)](_0x56e83e){const _0x5b637e=_0x54b547;let _0x20954c=this[_0x5b637e(0xc2)]['get'](_0x511043[_0x5b637e(0xbf)]);if(!_0x20954c)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x20954c['importFileToUnitId'](_0x56e83e,_0x2b44a7[_0x5b637e(0xd5)][_0x5b637e(0xd1)]);}async['importPPTXToSnapshotAsync'](_0x23df5d){const _0x5f2b8e=_0x54b547;let _0x46d955=this[_0x5f2b8e(0xc2)][_0x5f2b8e(0xd3)](_0x511043[_0x5f2b8e(0xbf)]);if(!_0x46d955)throw Error(_0x5f2b8e(0xcb));return _0x46d955[_0x5f2b8e(0xcf)](_0x23df5d);}async[_0x54b547(0xdb)](_0x27100b){const _0x3a707b=_0x54b547;let _0x2e28bb=this['_injector']['get'](_0x511043[_0x3a707b(0xbf)]);if(!_0x2e28bb)throw Error(_0x3a707b(0xcb));return _0x2e28bb['exportPPTXByUnitId'](_0x27100b);}async[_0x54b547(0xdf)](_0x3c2e05){const _0x303258=_0x54b547;let _0x27fd05=this[_0x303258(0xc2)]['get'](_0x511043[_0x303258(0xbf)]);if(!_0x27fd05)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x27fd05[_0x303258(0xca)](_0x3c2e05);}};_0x185986['FUniver'][_0x54b547(0xd6)](_0x91585a);}));function _0x56fb(){const _0x12317a=['The\x20exchange\x20service\x20is\x20not\x20available','exportDOCXByUnitId','908056VqzuPQ','importDOCXToSnapshot','importPPTXToSnapshot','FUniver','UNIVER_SLIDE','UniverCoreFacade','get','1026NfdoiB','UniverInstanceType','extend','560184RLHwqf','@univerjs-pro/exchange-client','importDOCXToUnitIdAsync','exportXLSXByUnitId','exportPPTXByUnitIdAsync','importFileToUnitId','78477wixjhw','function','exportPPTXBySnapshotAsync','importXLSXToSnapshotAsync','@univerjs/core/facade','20MCyutu','exportXLSXBySnapshot','27KGNYFM','importXLSXToSnapshot','IExchangeService','UNIVER_DOC','exportDOCXByUnitIdAsync','_injector','100065BEZuNg','UNIVER_SHEET','importPPTXToUnitIdAsync','UniverProExchangeClient','216160LHtPKV','2468718FKHWJB','exportXLSXByUnitIdAsync','exportPPTXBySnapshot'];_0x56fb=function(){return _0x12317a;};return _0x56fb();}