@univerjs-pro/exchange-client 0.25.0 → 1.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
- function _0x5545(){const _0x4b4e21=['115612gCqSNR','538876RmcwoG','615314CWDxtR','Данные\x20слишком\x20большие','Отмена','Загрузить\x20снова','Скачивание','8OkCKLP','Внутренняя\x20неизвестная\x20ошибка','Файл\x20успешно\x20загружен','3101865BsDOpC','{0}\x20файл(ов)\x20успешно\x20загружен(о)','24726191VyeusH','4480050SfnRFK','Неизвестная\x20ошибка','3633546rMUJiC','Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки'];_0x5545=function(){return _0x4b4e21;};return _0x5545();}const _0x35c8d6=_0x44df;(function(_0x32f6e0,_0x582d3e){const _0x441c5d=_0x44df,_0x438d23=_0x32f6e0();while(!![]){try{const _0x5eaa21=parseInt(_0x441c5d(0xf2))/0x1+-parseInt(_0x441c5d(0xf4))/0x2+-parseInt(_0x441c5d(0xf0))/0x3+-parseInt(_0x441c5d(0xf3))/0x4+-parseInt(_0x441c5d(0xfc))/0x5+-parseInt(_0x441c5d(0xff))/0x6+parseInt(_0x441c5d(0xfe))/0x7*(parseInt(_0x441c5d(0xf9))/0x8);if(_0x5eaa21===_0x582d3e)break;else _0x438d23['push'](_0x438d23['shift']());}catch(_0x966b26){_0x438d23['push'](_0x438d23['shift']());}}}(_0x5545,0x99277));function _0x44df(_0x388c3a,_0x41ae0e){_0x388c3a=_0x388c3a-0xf0;const _0x55454c=_0x5545();let _0x44dfef=_0x55454c[_0x388c3a];return _0x44dfef;}const e={'exchange-client':{'uploading':'Загрузка','uploadSuccess':_0x35c8d6(0xfb),'uploadSuccessTip':_0x35c8d6(0xfd),'downloading':_0x35c8d6(0xf8),'downloadSuccess':'Скачивание\x20успешно','unknownMistake':_0x35c8d6(0x100),'networkError':'Сетевая\x20ошибка','tooLarge':_0x35c8d6(0xf5),'internalError':_0x35c8d6(0xfa),'interrupt':'Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','fileTypeError':_0x35c8d6(0xf1),'wait':'Пожалуйста,\x20подождите...','cancel':_0x35c8d6(0xf6),'uploadAgain':_0x35c8d6(0xf7)}};export{e as default};
1
+ function _0x21cb(_0xdde7b4,_0x36a598){_0xdde7b4=_0xdde7b4-0x17e;const _0x4ae83f=_0x4ae8();let _0x21cb72=_0x4ae83f[_0xdde7b4];return _0x21cb72;}function _0x4ae8(){const _0x2f214c=['Загрузить\x20снова','2986160RtInRA','27845hYFBlq','2267408kcMHpE','1PVbKzU','511312UstaTJ','8nrMzLg','Сетевая\x20ошибка','Скачивание','7UVlVGg','Файл\x20успешно\x20загружен','Неизвестная\x20ошибка','591834CJfNnk','2480694ftWLnz','54CyPTBh','Внутренняя\x20неизвестная\x20ошибка','Отмена','Загрузка','3398pMpFRu'];_0x4ae8=function(){return _0x2f214c;};return _0x4ae8();}const _0x18ed0b=_0x21cb;(function(_0x43f489,_0x5bdf0e){const _0x430b76=_0x21cb,_0x19e700=_0x43f489();while(!![]){try{const _0x47cf64=-parseInt(_0x430b76(0x189))/0x1*(parseInt(_0x430b76(0x184))/0x2)+parseInt(_0x430b76(0x17e))/0x3+-parseInt(_0x430b76(0x18b))/0x4*(parseInt(_0x430b76(0x187))/0x5)+parseInt(_0x430b76(0x17f))/0x6*(parseInt(_0x430b76(0x18e))/0x7)+parseInt(_0x430b76(0x18a))/0x8*(-parseInt(_0x430b76(0x180))/0x9)+parseInt(_0x430b76(0x186))/0xa+-parseInt(_0x430b76(0x188))/0xb;if(_0x47cf64===_0x5bdf0e)break;else _0x19e700['push'](_0x19e700['shift']());}catch(_0x71dddc){_0x19e700['push'](_0x19e700['shift']());}}}(_0x4ae8,0x4aece));const e={'exchange-client':{'uploading':_0x18ed0b(0x183),'uploadSuccess':_0x18ed0b(0x18f),'uploadSuccessTip':'{0}\x20файл(ов)\x20успешно\x20загружен(о)','downloading':_0x18ed0b(0x18d),'downloadSuccess':'Скачивание\x20успешно','unknownMistake':_0x18ed0b(0x190),'networkError':_0x18ed0b(0x18c),'tooLarge':'Данные\x20слишком\x20большие','internalError':_0x18ed0b(0x181),'interrupt':'Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','fileTypeError':'Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','wait':'Пожалуйста,\x20подождите...','cancel':_0x18ed0b(0x182),'uploadAgain':_0x18ed0b(0x185)}};export{e as default};
@@ -1 +1 @@
1
- const _0x55114d=_0x4677;function _0x1003(){const _0x59b187=['Nahrať\x20znova','475110bbaFvy','1675518LDwpxd','1099084KHLGgN','383967QnAWiY','6cCxKyB','2592380WcLsWD','Zrušiť','Súbor\x20bol\x20úspešne\x20nahraný','Prosím\x20počkajte...','Dáta\x20sú\x20príliš\x20veľké','820000zXtpLk','Sieťová\x20chyba','Sieťové\x20pripojenie\x20bolo\x20prerušené\x20a\x20nahrávanie\x20súboru\x20zlyhalo','184QwiEsv','Nahrávanie','55530QKomdH'];_0x1003=function(){return _0x59b187;};return _0x1003();}function _0x4677(_0x4b6d71,_0x1baa6c){_0x4b6d71=_0x4b6d71-0x181;const _0x100379=_0x1003();let _0x46772b=_0x100379[_0x4b6d71];return _0x46772b;}(function(_0x32a85a,_0xe0c90a){const _0x4dd823=_0x4677,_0xe9b55=_0x32a85a();while(!![]){try{const _0x9d208a=-parseInt(_0x4dd823(0x187))/0x1+-parseInt(_0x4dd823(0x185))/0x2*(parseInt(_0x4dd823(0x18b))/0x3)+parseInt(_0x4dd823(0x189))/0x4+parseInt(_0x4dd823(0x191))/0x5+-parseInt(_0x4dd823(0x188))/0x6+-parseInt(_0x4dd823(0x18c))/0x7+-parseInt(_0x4dd823(0x183))/0x8*(-parseInt(_0x4dd823(0x18a))/0x9);if(_0x9d208a===_0xe0c90a)break;else _0xe9b55['push'](_0xe9b55['shift']());}catch(_0x3fa23a){_0xe9b55['push'](_0xe9b55['shift']());}}}(_0x1003,0x3a8ab));const e={'exchange-client':{'uploading':_0x55114d(0x184),'uploadSuccess':_0x55114d(0x18e),'uploadSuccessTip':'Úspešne\x20nahraných\x20{0}\x20súborov','downloading':'Sťahovanie','downloadSuccess':'Sťahovanie\x20úspešné','unknownMistake':'Neznáma\x20chyba','networkError':_0x55114d(0x181),'tooLarge':_0x55114d(0x190),'internalError':'Interná\x20neznáma\x20chyba','interrupt':_0x55114d(0x182),'fileTypeError':'Vybraný\x20súbor\x20[{0}]\x20nie\x20je\x20podporovaný\x20na\x20nahrávanie','wait':_0x55114d(0x18f),'cancel':_0x55114d(0x18d),'uploadAgain':_0x55114d(0x186)}};export{e as default};
1
+ const _0x16cbd2=_0x1bef;(function(_0x184baa,_0x5a62b6){const _0xe2d983=_0x1bef,_0x5a5ce9=_0x184baa();while(!![]){try{const _0x21a50f=parseInt(_0xe2d983(0xae))/0x1*(parseInt(_0xe2d983(0xa9))/0x2)+parseInt(_0xe2d983(0xab))/0x3*(-parseInt(_0xe2d983(0xa8))/0x4)+parseInt(_0xe2d983(0xb1))/0x5*(-parseInt(_0xe2d983(0xb5))/0x6)+parseInt(_0xe2d983(0xb9))/0x7+-parseInt(_0xe2d983(0xb0))/0x8+parseInt(_0xe2d983(0xaf))/0x9+-parseInt(_0xe2d983(0xb6))/0xa*(-parseInt(_0xe2d983(0xb7))/0xb);if(_0x21a50f===_0x5a62b6)break;else _0x5a5ce9['push'](_0x5a5ce9['shift']());}catch(_0x11261b){_0x5a5ce9['push'](_0x5a5ce9['shift']());}}}(_0x2c89,0x62ff4));function _0x2c89(){const _0x4936b9=['1084VeWsxY','22KlvKcF','Prosím\x20počkajte...','3522cOwzTY','Interná\x20neznáma\x20chyba','Sieťová\x20chyba','52557MYsWqL','3517794YdqEnp','4215064rtlJsS','15pxCxdl','Sťahovanie\x20úspešné','Súbor\x20bol\x20úspešne\x20nahraný','Nahrávanie','1506918UBLwBk','510590vrlvkl','121OuuICW','Dáta\x20sú\x20príliš\x20veľké','3313422OtYinr','Sťahovanie','Vybraný\x20súbor\x20[{0}]\x20nie\x20je\x20podporovaný\x20na\x20nahrávanie','Zrušiť','Neznáma\x20chyba'];_0x2c89=function(){return _0x4936b9;};return _0x2c89();}const e={'exchange-client':{'uploading':_0x16cbd2(0xb4),'uploadSuccess':_0x16cbd2(0xb3),'uploadSuccessTip':'Úspešne\x20nahraných\x20{0}\x20súborov','downloading':_0x16cbd2(0xba),'downloadSuccess':_0x16cbd2(0xb2),'unknownMistake':_0x16cbd2(0xa7),'networkError':_0x16cbd2(0xad),'tooLarge':_0x16cbd2(0xb8),'internalError':_0x16cbd2(0xac),'interrupt':'Sieťové\x20pripojenie\x20bolo\x20prerušené\x20a\x20nahrávanie\x20súboru\x20zlyhalo','fileTypeError':_0x16cbd2(0xbb),'wait':_0x16cbd2(0xaa),'cancel':_0x16cbd2(0xa6),'uploadAgain':'Nahrať\x20znova'}};function _0x1bef(_0x487c20,_0x24cd69){_0x487c20=_0x487c20-0xa6;const _0x2c895d=_0x2c89();let _0x1beff2=_0x2c895d[_0x487c20];return _0x1beff2;}export{e as default};
@@ -1 +1 @@
1
- const _0x3d96f8=_0x5729;function _0x42c8(){const _0x26697c=['7707537IJSYzO','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','Hủy\x20bỏ','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','151606IyoNNI','433232tDtubg','Luồng\x20dữ\x20liệu\x20quá\x20lớn','529043OrxIAI','1206rMIMjQ','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','10aINxYJ','35RWheaN','Lỗi\x20không\x20xác\x20định','200264IIPfHe','Tải\x20lên\x20lại','4382gupVXs','338217cMDatf','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','Tải\x20xuống\x20thành\x20công'];_0x42c8=function(){return _0x26697c;};return _0x42c8();}(function(_0x3e8739,_0x3e9066){const _0x39e2d6=_0x5729,_0x52ce9f=_0x3e8739();while(!![]){try{const _0x3a9008=-parseInt(_0x39e2d6(0x1d4))/0x1+parseInt(_0x39e2d6(0x1e4))/0x2+parseInt(_0x39e2d6(0x1dd))/0x3+parseInt(_0x39e2d6(0x1da))/0x4*(-parseInt(_0x39e2d6(0x1d8))/0x5)+parseInt(_0x39e2d6(0x1d5))/0x6*(parseInt(_0x39e2d6(0x1dc))/0x7)+parseInt(_0x39e2d6(0x1e5))/0x8+-parseInt(_0x39e2d6(0x1e0))/0x9*(-parseInt(_0x39e2d6(0x1d7))/0xa);if(_0x3a9008===_0x3e9066)break;else _0x52ce9f['push'](_0x52ce9f['shift']());}catch(_0x5ed879){_0x52ce9f['push'](_0x52ce9f['shift']());}}}(_0x42c8,0x54542));function _0x5729(_0x4d2619,_0x9e7ef){_0x4d2619=_0x4d2619-0x1d4;const _0x42c828=_0x42c8();let _0x572908=_0x42c828[_0x4d2619];return _0x572908;}const e={'exchange-client':{'uploading':'Đang\x20tải\x20lên','uploadSuccess':'Tải\x20lên\x20tệp\x20thành\x20công','uploadSuccessTip':_0x3d96f8(0x1e1),'downloading':'Đang\x20tải\x20xuống','downloadSuccess':_0x3d96f8(0x1df),'unknownMistake':_0x3d96f8(0x1d9),'networkError':'Lỗi\x20mạng','tooLarge':_0x3d96f8(0x1e6),'internalError':_0x3d96f8(0x1de),'interrupt':_0x3d96f8(0x1e3),'fileTypeError':_0x3d96f8(0x1d6),'wait':'Vui\x20lòng\x20đợi...','cancel':_0x3d96f8(0x1e2),'uploadAgain':_0x3d96f8(0x1db)}};export{e as default};
1
+ const _0x26fef8=_0x43d2;function _0x35be(){const _0x345ec0=['759262QJiunf','Đang\x20tải\x20lên','7335162CDziHX','Vui\x20lòng\x20đợi...','8QLVckv','Lỗi\x20không\x20xác\x20định','42uFqObw','Tải\x20lên\x20tệp\x20thành\x20công','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','Tải\x20lên\x20lại','Đang\x20tải\x20xuống','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','1029620ildkBC','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','225763CoVkCC','35YYvYfV','3159230dRdDTI','Luồng\x20dữ\x20liệu\x20quá\x20lớn','1627104LlfdRP','20612mdoZSh'];_0x35be=function(){return _0x345ec0;};return _0x35be();}(function(_0x10c598,_0x6ddbd1){const _0x421d8c=_0x43d2,_0x3df094=_0x10c598();while(!![]){try{const _0x419d85=-parseInt(_0x421d8c(0x166))/0x1+parseInt(_0x421d8c(0x178))/0x2+parseInt(_0x421d8c(0x16a))/0x3+parseInt(_0x421d8c(0x16b))/0x4*(-parseInt(_0x421d8c(0x167))/0x5)+-parseInt(_0x421d8c(0x172))/0x6*(parseInt(_0x421d8c(0x16c))/0x7)+-parseInt(_0x421d8c(0x170))/0x8*(-parseInt(_0x421d8c(0x16e))/0x9)+-parseInt(_0x421d8c(0x168))/0xa;if(_0x419d85===_0x6ddbd1)break;else _0x3df094['push'](_0x3df094['shift']());}catch(_0x1ce100){_0x3df094['push'](_0x3df094['shift']());}}}(_0x35be,0x82a89));const e={'exchange-client':{'uploading':_0x26fef8(0x16d),'uploadSuccess':_0x26fef8(0x173),'uploadSuccessTip':_0x26fef8(0x179),'downloading':_0x26fef8(0x176),'downloadSuccess':'Tải\x20xuống\x20thành\x20công','unknownMistake':_0x26fef8(0x171),'networkError':'Lỗi\x20mạng','tooLarge':_0x26fef8(0x169),'internalError':'Lỗi\x20không\x20xác\x20định\x20bên\x20trong','interrupt':_0x26fef8(0x174),'fileTypeError':_0x26fef8(0x177),'wait':_0x26fef8(0x16f),'cancel':'Hủy\x20bỏ','uploadAgain':_0x26fef8(0x175)}};function _0x43d2(_0x2c3588,_0xbf8f8){_0x2c3588=_0x2c3588-0x166;const _0x35beec=_0x35be();let _0x43d209=_0x35beec[_0x2c3588];return _0x43d209;}export{e as default};
@@ -1 +1 @@
1
- function _0x565e(){const _0x420fc5=['6dJpTBp','1235562olxDff','下载成功','4502696AGHhAj','10315627yjXxBx','网络连接中断,文件上传失败','8zWaTTH','所选文件\x20[{0}]\x20不支持上传','网络异常','文件上传成功','未知错误','内部未知错误','数据流过大','3173691aygYrb','{0}个文件上传成功','5138895gmqLmX','5254250GwhYhf','2065347VaQOaG','2AicoeX'];_0x565e=function(){return _0x420fc5;};return _0x565e();}const _0x4e6f62=_0x5374;function _0x5374(_0x32d3ad,_0x28b605){_0x32d3ad=_0x32d3ad-0x11b;const _0x565e79=_0x565e();let _0x537479=_0x565e79[_0x32d3ad];return _0x537479;}(function(_0x1cbfeb,_0x5542a7){const _0x375114=_0x5374,_0x517db1=_0x1cbfeb();while(!![]){try{const _0x2717a4=parseInt(_0x375114(0x11f))/0x1+-parseInt(_0x375114(0x11d))/0x2*(parseInt(_0x375114(0x12b))/0x3)+parseInt(_0x375114(0x121))/0x4+-parseInt(_0x375114(0x12d))/0x5+parseInt(_0x375114(0x11e))/0x6*(parseInt(_0x375114(0x122))/0x7)+-parseInt(_0x375114(0x124))/0x8*(parseInt(_0x375114(0x11c))/0x9)+-parseInt(_0x375114(0x11b))/0xa;if(_0x2717a4===_0x5542a7)break;else _0x517db1['push'](_0x517db1['shift']());}catch(_0x5bb024){_0x517db1['push'](_0x517db1['shift']());}}}(_0x565e,0xf2c09));const e={'exchange-client':{'uploading':'上传中','uploadSuccess':_0x4e6f62(0x127),'uploadSuccessTip':_0x4e6f62(0x12c),'downloading':'下载中','downloadSuccess':_0x4e6f62(0x120),'unknownMistake':_0x4e6f62(0x128),'networkError':_0x4e6f62(0x126),'tooLarge':_0x4e6f62(0x12a),'internalError':_0x4e6f62(0x129),'interrupt':_0x4e6f62(0x123),'fileTypeError':_0x4e6f62(0x125),'wait':'请稍等...','cancel':'取消','uploadAgain':'再次上传'}};export{e as default};
1
+ function _0xdf71(){const _0x16dbad=['数据流过大','132IrypZg','138kFlvGg','10952wnHnWH','{0}个文件上传成功','176430uQbsNN','请稍等...','5969470sfbwiL','3621247FMWtXl','3FITCRP','上传中','1566yxMrDD','网络连接中断,文件上传失败','2927518HkDsvZ','网络异常','所选文件\x20[{0}]\x20不支持上传','3000112AYdeuE','1408VHFVcC','下载成功','下载中','文件上传成功'];_0xdf71=function(){return _0x16dbad;};return _0xdf71();}function _0x3ad7(_0x32704a,_0x297994){_0x32704a=_0x32704a-0x110;const _0xdf7103=_0xdf71();let _0x3ad7dc=_0xdf7103[_0x32704a];return _0x3ad7dc;}const _0x33276a=_0x3ad7;(function(_0x3ea9e9,_0x54954b){const _0x1e1294=_0x3ad7,_0x530e2d=_0x3ea9e9();while(!![]){try{const _0x351f0d=parseInt(_0x1e1294(0x124))/0x1*(-parseInt(_0x1e1294(0x11f))/0x2)+parseInt(_0x1e1294(0x117))/0x3*(parseInt(_0x1e1294(0x11e))/0x4)+parseInt(_0x1e1294(0x113))/0x5*(-parseInt(_0x1e1294(0x110))/0x6)+parseInt(_0x1e1294(0x116))/0x7+parseInt(_0x1e1294(0x111))/0x8*(-parseInt(_0x1e1294(0x119))/0x9)+parseInt(_0x1e1294(0x115))/0xa+-parseInt(_0x1e1294(0x11b))/0xb;if(_0x351f0d===_0x54954b)break;else _0x530e2d['push'](_0x530e2d['shift']());}catch(_0x5f3f9d){_0x530e2d['push'](_0x530e2d['shift']());}}}(_0xdf71,0x6f316));const e={'exchange-client':{'uploading':_0x33276a(0x118),'uploadSuccess':_0x33276a(0x122),'uploadSuccessTip':_0x33276a(0x112),'downloading':_0x33276a(0x121),'downloadSuccess':_0x33276a(0x120),'unknownMistake':'未知错误','networkError':_0x33276a(0x11c),'tooLarge':_0x33276a(0x123),'internalError':'内部未知错误','interrupt':_0x33276a(0x11a),'fileTypeError':_0x33276a(0x11d),'wait':_0x33276a(0x114),'cancel':'取消','uploadAgain':'再次上传'}};export{e as default};
@@ -1 +1 @@
1
- function _0x5391(_0x59c8cc,_0x71361c){_0x59c8cc=_0x59c8cc-0x12c;const _0x5d49bd=_0x5d49();let _0x5391bf=_0x5d49bd[_0x59c8cc];return _0x5391bf;}const _0x1ba9d3=_0x5391;function _0x5d49(){const _0x552957=['621612utQEmm','下載中','{0}個檔案上傳成功','內部未知錯誤','請稍等...','再次上傳','所選檔案\x20[{0}]\x20不支援上傳','2484856zANvyv','941283mJBjyi','33680020RXxdtK','網絡連線中斷,檔案上傳失敗','297016PqASHf','2627262zNtwst','3855gRKHVJ','未知錯誤','1282uyQAul','161bJKmZV','5LCOkaV','檔案上傳成功'];_0x5d49=function(){return _0x552957;};return _0x5d49();}(function(_0xe0bc0f,_0xf79be7){const _0x42610d=_0x5391,_0x590bb2=_0xe0bc0f();while(!![]){try{const _0x5e5985=-parseInt(_0x42610d(0x135))/0x1+parseInt(_0x42610d(0x13c))/0x2*(-parseInt(_0x42610d(0x13a))/0x3)+-parseInt(_0x42610d(0x134))/0x4+-parseInt(_0x42610d(0x13e))/0x5*(-parseInt(_0x42610d(0x12d))/0x6)+-parseInt(_0x42610d(0x13d))/0x7*(parseInt(_0x42610d(0x138))/0x8)+parseInt(_0x42610d(0x139))/0x9+parseInt(_0x42610d(0x136))/0xa;if(_0x5e5985===_0xf79be7)break;else _0x590bb2['push'](_0x590bb2['shift']());}catch(_0x26b69a){_0x590bb2['push'](_0x590bb2['shift']());}}}(_0x5d49,0x7fc9b));const e={'exchange-client':{'uploading':'上傳中','uploadSuccess':_0x1ba9d3(0x12c),'uploadSuccessTip':_0x1ba9d3(0x12f),'downloading':_0x1ba9d3(0x12e),'downloadSuccess':'下載成功','unknownMistake':_0x1ba9d3(0x13b),'networkError':'網絡異常','tooLarge':'資料流過大','internalError':_0x1ba9d3(0x130),'interrupt':_0x1ba9d3(0x137),'fileTypeError':_0x1ba9d3(0x133),'wait':_0x1ba9d3(0x131),'cancel':'取消','uploadAgain':_0x1ba9d3(0x132)}};export{e as default};
1
+ const _0x229f1a=_0x1700;function _0x1700(_0x4ae8ca,_0x4b89be){_0x4ae8ca=_0x4ae8ca-0x13c;const _0x46f083=_0x46f0();let _0x170063=_0x46f083[_0x4ae8ca];return _0x170063;}(function(_0x431be2,_0x12338e){const _0x2e4a79=_0x1700,_0x17c64d=_0x431be2();while(!![]){try{const _0x4456a5=-parseInt(_0x2e4a79(0x14c))/0x1+parseInt(_0x2e4a79(0x13c))/0x2+parseInt(_0x2e4a79(0x14b))/0x3*(-parseInt(_0x2e4a79(0x146))/0x4)+parseInt(_0x2e4a79(0x14a))/0x5*(parseInt(_0x2e4a79(0x149))/0x6)+parseInt(_0x2e4a79(0x147))/0x7+-parseInt(_0x2e4a79(0x143))/0x8*(-parseInt(_0x2e4a79(0x141))/0x9)+parseInt(_0x2e4a79(0x13d))/0xa*(parseInt(_0x2e4a79(0x148))/0xb);if(_0x4456a5===_0x12338e)break;else _0x17c64d['push'](_0x17c64d['shift']());}catch(_0x4ff9fe){_0x17c64d['push'](_0x17c64d['shift']());}}}(_0x46f0,0x28592));const e={'exchange-client':{'uploading':_0x229f1a(0x142),'uploadSuccess':_0x229f1a(0x13e),'uploadSuccessTip':_0x229f1a(0x145),'downloading':_0x229f1a(0x14e),'downloadSuccess':'下載成功','unknownMistake':_0x229f1a(0x13f),'networkError':'網絡異常','tooLarge':'資料流過大','internalError':_0x229f1a(0x14f),'interrupt':'網絡連線中斷,檔案上傳失敗','fileTypeError':_0x229f1a(0x14d),'wait':_0x229f1a(0x140),'cancel':'取消','uploadAgain':_0x229f1a(0x144)}};export{e as default};function _0x46f0(){const _0x1f7d15=['再次上傳','{0}個檔案上傳成功','28XYFOfn','688254CwcWtG','11GRAqZp','94020stgpxF','35DzeFJM','26547vxoAuF','201060UiFwgE','所選檔案\x20[{0}]\x20不支援上傳','下載中','內部未知錯誤','56256ZJwdhN','1828010cHTDzJ','檔案上傳成功','未知錯誤','請稍等...','198iGOHyR','上傳中','3392IRlYxp'];_0x46f0=function(){return _0x1f7d15;};return _0x46f0();}
@@ -1 +1 @@
1
- function _0x4766(){const _0x552cc1=['300sPIlil','72OzdFvg','下載中','2UBjhod','7sBJoCn','下載成功','再次上傳','22475nXmrcS','10khkDLo','檔案上傳成功','網路異常','740916XsDWRF','未知錯誤','5766104TKlsVL','2767755bdBMCu','上傳中','156186jkoQtc','請稍等...','{0}個檔案上傳成功','2565004eDriOB','7704117bCvmWK','網路連線中斷,檔案上傳失敗'];_0x4766=function(){return _0x552cc1;};return _0x4766();}const _0x1916a0=_0x2a56;(function(_0x44a116,_0xd7c85a){const _0x565ae1=_0x2a56,_0x3da24f=_0x44a116();while(!![]){try{const _0x272d44=parseInt(_0x565ae1(0x114))/0x1+-parseInt(_0x565ae1(0x11d))/0x2*(parseInt(_0x565ae1(0x112))/0x3)+parseInt(_0x565ae1(0x117))/0x4+parseInt(_0x565ae1(0x121))/0x5*(parseInt(_0x565ae1(0x11a))/0x6)+parseInt(_0x565ae1(0x11e))/0x7*(-parseInt(_0x565ae1(0x111))/0x8)+-parseInt(_0x565ae1(0x118))/0x9*(-parseInt(_0x565ae1(0x122))/0xa)+-parseInt(_0x565ae1(0x125))/0xb*(-parseInt(_0x565ae1(0x11b))/0xc);if(_0x272d44===_0xd7c85a)break;else _0x3da24f['push'](_0x3da24f['shift']());}catch(_0x954692){_0x3da24f['push'](_0x3da24f['shift']());}}}(_0x4766,0x9c00c));function _0x2a56(_0x3c732b,_0x525ba1){_0x3c732b=_0x3c732b-0x110;const _0x4766ec=_0x4766();let _0x2a563d=_0x4766ec[_0x3c732b];return _0x2a563d;}const e={'exchange-client':{'uploading':_0x1916a0(0x113),'uploadSuccess':_0x1916a0(0x123),'uploadSuccessTip':_0x1916a0(0x116),'downloading':_0x1916a0(0x11c),'downloadSuccess':_0x1916a0(0x11f),'unknownMistake':_0x1916a0(0x110),'networkError':_0x1916a0(0x124),'tooLarge':'資料流過大','internalError':'內部未知錯誤','interrupt':_0x1916a0(0x119),'fileTypeError':'所選檔案\x20[{0}]\x20不支援上傳','wait':_0x1916a0(0x115),'cancel':'取消','uploadAgain':_0x1916a0(0x120)}};export{e as default};
1
+ const _0x2d5725=_0x5581;(function(_0x38a4a0,_0xe22efe){const _0x4ce529=_0x5581,_0x2504e4=_0x38a4a0();while(!![]){try{const _0x472056=-parseInt(_0x4ce529(0x1f4))/0x1*(-parseInt(_0x4ce529(0x1f6))/0x2)+-parseInt(_0x4ce529(0x1f2))/0x3*(-parseInt(_0x4ce529(0x1f0))/0x4)+parseInt(_0x4ce529(0x1ee))/0x5+parseInt(_0x4ce529(0x1ed))/0x6*(-parseInt(_0x4ce529(0x1f7))/0x7)+-parseInt(_0x4ce529(0x1f8))/0x8*(parseInt(_0x4ce529(0x1f9))/0x9)+-parseInt(_0x4ce529(0x1fb))/0xa+-parseInt(_0x4ce529(0x1ec))/0xb*(-parseInt(_0x4ce529(0x1ea))/0xc);if(_0x472056===_0xe22efe)break;else _0x2504e4['push'](_0x2504e4['shift']());}catch(_0x37d7aa){_0x2504e4['push'](_0x2504e4['shift']());}}}(_0x4ce3,0xa62ed));const e={'exchange-client':{'uploading':'上傳中','uploadSuccess':_0x2d5725(0x1f3),'uploadSuccessTip':_0x2d5725(0x1e9),'downloading':_0x2d5725(0x1f5),'downloadSuccess':_0x2d5725(0x1fd),'unknownMistake':_0x2d5725(0x1fc),'networkError':_0x2d5725(0x1f1),'tooLarge':_0x2d5725(0x1eb),'internalError':'內部未知錯誤','interrupt':'網路連線中斷,檔案上傳失敗','fileTypeError':'所選檔案\x20[{0}]\x20不支援上傳','wait':_0x2d5725(0x1ef),'cancel':'取消','uploadAgain':_0x2d5725(0x1fa)}};function _0x5581(_0x274577,_0x1ab547){_0x274577=_0x274577-0x1e9;const _0x4ce31a=_0x4ce3();let _0x558143=_0x4ce31a[_0x274577];return _0x558143;}function _0x4ce3(){const _0x58b1d4=['再次上傳','10615190WLZFnJ','未知錯誤','下載成功','{0}個檔案上傳成功','435660ljpbWQ','資料流過大','704jGlOOc','6478698FKJOsx','1794790gjqyxu','請稍等...','425044hGHTjB','網路異常','9iRXfmc','檔案上傳成功','535179iAYRMv','下載中','4fpixsU','7rELtut','208272pibldH','432hfjyBc'];_0x4ce3=function(){return _0x58b1d4;};return _0x4ce3();}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 _0x39ad(_0x3033b5,_0x4c99af){_0x3033b5=_0x3033b5-0x112;const _0x2c741f=_0x2c74();let _0x39ad49=_0x2c741f[_0x3033b5];return _0x39ad49;}(function(_0x40a9af,_0x2a14cc){const _0x39fa74=_0x39ad,_0x5d488c=_0x40a9af();while(!![]){try{const _0x202f18=parseInt(_0x39fa74(0x112))/0x1+parseInt(_0x39fa74(0x136))/0x2+-parseInt(_0x39fa74(0x126))/0x3+-parseInt(_0x39fa74(0x135))/0x4*(-parseInt(_0x39fa74(0x134))/0x5)+parseInt(_0x39fa74(0x12c))/0x6*(-parseInt(_0x39fa74(0x11b))/0x7)+-parseInt(_0x39fa74(0x129))/0x8*(-parseInt(_0x39fa74(0x12f))/0x9)+-parseInt(_0x39fa74(0x12d))/0xa;if(_0x202f18===_0x2a14cc)break;else _0x5d488c['push'](_0x5d488c['shift']());}catch(_0x5b4c79){_0x5d488c['push'](_0x5d488c['shift']());}}}(_0x2c74,0xac432),function(_0xdf1702,_0x25fab3){const _0x5b03e1=_0x39ad;typeof exports==_0x5b03e1(0x11f)&&typeof module<'u'?_0x25fab3(require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x5b03e1(0x128)&&define[_0x5b03e1(0x133)]?define([_0x5b03e1(0x122),_0x5b03e1(0x11d),_0x5b03e1(0x11a)],_0x25fab3):(_0xdf1702=typeof globalThis<'u'?globalThis:_0xdf1702||self,_0x25fab3(_0xdf1702['UniverProExchangeClient'],_0xdf1702[_0x5b03e1(0x11c)],_0xdf1702[_0x5b03e1(0x116)]));}(this,function(_0x223924,_0xd3088a,_0x467691){const _0x2565c8=_0x39ad;var _0x18fed2=class extends _0x467691[_0x2565c8(0x115)]{async['importXLSXToUnitIdAsync'](_0xcde37b){const _0xf1098=_0x2565c8;let _0x6fde01=this[_0xf1098(0x12e)][_0xf1098(0x118)](_0x223924[_0xf1098(0x138)]);if(!_0x6fde01)throw Error(_0xf1098(0x119));return _0x6fde01[_0xf1098(0x121)](_0xcde37b,_0xd3088a[_0xf1098(0x127)][_0xf1098(0x11e)]);}async[_0x2565c8(0x117)](_0x204b55){const _0x4e8183=_0x2565c8;let _0x3ef93c=this[_0x4e8183(0x12e)][_0x4e8183(0x118)](_0x223924['IExchangeService']);if(!_0x3ef93c)throw Error(_0x4e8183(0x119));return _0x3ef93c[_0x4e8183(0x12b)](_0x204b55);}async[_0x2565c8(0x123)](_0x5a5dfc){const _0xe985ac=_0x2565c8;let _0x4f0ac4=this['_injector'][_0xe985ac(0x118)](_0x223924[_0xe985ac(0x138)]);if(!_0x4f0ac4)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x4f0ac4['exportXLSXByUnitId'](_0x5a5dfc);}async[_0x2565c8(0x124)](_0x39cf17){const _0x35314a=_0x2565c8;let _0x15ed5e=this[_0x35314a(0x12e)][_0x35314a(0x118)](_0x223924['IExchangeService']);if(!_0x15ed5e)throw Error(_0x35314a(0x119));return _0x15ed5e[_0x35314a(0x114)](_0x39cf17);}async['importDOCXToUnitIdAsync'](_0x1d73de){const _0x54e09e=_0x2565c8;let _0x29e283=this[_0x54e09e(0x12e)][_0x54e09e(0x118)](_0x223924[_0x54e09e(0x138)]);if(!_0x29e283)throw Error(_0x54e09e(0x119));return _0x29e283[_0x54e09e(0x121)](_0x1d73de,_0xd3088a[_0x54e09e(0x127)][_0x54e09e(0x130)]);}async[_0x2565c8(0x137)](_0x5165c2){const _0x2c9780=_0x2565c8;let _0x4d79f4=this[_0x2c9780(0x12e)]['get'](_0x223924[_0x2c9780(0x138)]);if(!_0x4d79f4)throw Error(_0x2c9780(0x119));return _0x4d79f4[_0x2c9780(0x113)](_0x5165c2);}async[_0x2565c8(0x12a)](_0x1d72a9){const _0x460fca=_0x2565c8;let _0x357250=this['_injector'][_0x460fca(0x118)](_0x223924[_0x460fca(0x138)]);if(!_0x357250)throw Error(_0x460fca(0x119));return _0x357250[_0x460fca(0x132)](_0x1d72a9);}async[_0x2565c8(0x131)](_0xe362b){const _0x5229e7=_0x2565c8;let _0x27e44f=this[_0x5229e7(0x12e)]['get'](_0x223924[_0x5229e7(0x138)]);if(!_0x27e44f)throw Error(_0x5229e7(0x119));return _0x27e44f[_0x5229e7(0x120)](_0xe362b);}};_0x467691[_0x2565c8(0x115)][_0x2565c8(0x125)](_0x18fed2);}));function _0x2c74(){const _0x31c31b=['1795494QpMWij','importDOCXToSnapshotAsync','IExchangeService','565752PniQtd','importDOCXToSnapshot','exportXLSXBySnapshot','FUniver','UniverCoreFacade','importXLSXToSnapshotAsync','get','The\x20exchange\x20service\x20is\x20not\x20available','@univerjs/core/facade','77btnRvi','UniverCore','@univerjs/core','UNIVER_SHEET','object','exportDOCXByUnitId','importFileToUnitId','@univerjs-pro/exchange-client','exportXLSXByUnitIdAsync','exportXLSXBySnapshotAsync','extend','559467Yzptsn','UniverInstanceType','function','6128oQbMaa','exportDOCXBySnapshotAsync','importXLSXToSnapshot','140934fVukaM','6581380KtHKhp','_injector','2817BAnMSi','UNIVER_DOC','exportDOCXByUnitIdAsync','exportDOCXBySnapshot','amd','5duQsIo','421340FpZZjk'];_0x2c74=function(){return _0x31c31b;};return _0x2c74();}
1
+ function _0x38b9(_0x374d71,_0x28e82a){_0x374d71=_0x374d71-0xde;const _0x43b1a4=_0x43b1();let _0x38b9f8=_0x43b1a4[_0x374d71];return _0x38b9f8;}function _0x43b1(){const _0x4603fd=['9770625EWjMXi','exportXLSXByUnitIdAsync','330AuJpUW','function','8141416fILppo','importPPTXToSnapshotAsync','@univerjs/core/facade','4PRLTkH','IExchangeService','exportPPTXBySnapshot','@univerjs-pro/exchange-client','importDOCXToSnapshotAsync','importXLSXToUnitIdAsync','importFileToUnitId','exportXLSXByUnitId','The\x20exchange\x20service\x20is\x20not\x20available','UniverCore','get','exportPPTXBySnapshotAsync','exportDOCXBySnapshotAsync','amd','exportPPTXByUnitIdAsync','UNIVER_SHEET','150JlGGSB','@univerjs/core','UniverInstanceType','FUniver','UniverCoreFacade','36386590PzUyiF','148421BKofVo','importPPTXToSnapshot','exportPPTXByUnitId','importDOCXToUnitIdAsync','4579685YDpONv','_injector','4111248iwqpyG','7937MIjaWs','object','UNIVER_DOC','exportDOCXByUnitIdAsync'];_0x43b1=function(){return _0x4603fd;};return _0x43b1();}(function(_0x3db342,_0xa02892){const _0x88e45=_0x38b9,_0x484da0=_0x3db342();while(!![]){try{const _0x340e37=parseInt(_0x88e45(0xf9))/0x1*(parseInt(_0x88e45(0xff))/0x2)+parseInt(_0x88e45(0xf8))/0x3+-parseInt(_0x88e45(0x104))/0x4*(parseInt(_0x88e45(0xf6))/0x5)+parseInt(_0x88e45(0xec))/0x6*(parseInt(_0x88e45(0xf2))/0x7)+parseInt(_0x88e45(0x101))/0x8+parseInt(_0x88e45(0xfd))/0x9+-parseInt(_0x88e45(0xf1))/0xa;if(_0x340e37===_0xa02892)break;else _0x484da0['push'](_0x484da0['shift']());}catch(_0x41663b){_0x484da0['push'](_0x484da0['shift']());}}}(_0x43b1,0xb9412),function(_0x139550,_0x87a04d){const _0x4223de=_0x38b9;typeof exports==_0x4223de(0xfa)&&typeof module<'u'?_0x87a04d(require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x4223de(0x100)&&define[_0x4223de(0xe9)]?define([_0x4223de(0xdf),_0x4223de(0xed),_0x4223de(0x103)],_0x87a04d):(_0x139550=typeof globalThis<'u'?globalThis:_0x139550||self,_0x87a04d(_0x139550['UniverProExchangeClient'],_0x139550[_0x4223de(0xe5)],_0x139550[_0x4223de(0xf0)]));}(this,function(_0x2f3a3c,_0x3612dd,_0x1b9d3f){const _0x4b3206=_0x38b9;var _0x377d07=class extends _0x1b9d3f[_0x4b3206(0xef)]{async[_0x4b3206(0xe1)](_0x3086be){const _0x5c6083=_0x4b3206;let _0x53dc9f=this[_0x5c6083(0xf7)][_0x5c6083(0xe6)](_0x2f3a3c[_0x5c6083(0x105)]);if(!_0x53dc9f)throw Error(_0x5c6083(0xe4));return _0x53dc9f[_0x5c6083(0xe2)](_0x3086be,_0x3612dd['UniverInstanceType'][_0x5c6083(0xeb)]);}async['importXLSXToSnapshotAsync'](_0x1e1667){const _0x3958c0=_0x4b3206;let _0x295830=this['_injector'][_0x3958c0(0xe6)](_0x2f3a3c[_0x3958c0(0x105)]);if(!_0x295830)throw Error(_0x3958c0(0xe4));return _0x295830['importXLSXToSnapshot'](_0x1e1667);}async[_0x4b3206(0xfe)](_0x5799ae){const _0x5967f2=_0x4b3206;let _0x538594=this[_0x5967f2(0xf7)]['get'](_0x2f3a3c[_0x5967f2(0x105)]);if(!_0x538594)throw Error(_0x5967f2(0xe4));return _0x538594[_0x5967f2(0xe3)](_0x5799ae);}async['exportXLSXBySnapshotAsync'](_0x4fa27b){let _0xc72827=this['_injector']['get'](_0x2f3a3c['IExchangeService']);if(!_0xc72827)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0xc72827['exportXLSXBySnapshot'](_0x4fa27b);}async[_0x4b3206(0xf5)](_0x43de2a){const _0x47a1d5=_0x4b3206;let _0x1e57b3=this['_injector'][_0x47a1d5(0xe6)](_0x2f3a3c['IExchangeService']);if(!_0x1e57b3)throw Error(_0x47a1d5(0xe4));return _0x1e57b3[_0x47a1d5(0xe2)](_0x43de2a,_0x3612dd[_0x47a1d5(0xee)][_0x47a1d5(0xfb)]);}async[_0x4b3206(0xe0)](_0x1fef2f){const _0x537654=_0x4b3206;let _0x570198=this[_0x537654(0xf7)][_0x537654(0xe6)](_0x2f3a3c[_0x537654(0x105)]);if(!_0x570198)throw Error(_0x537654(0xe4));return _0x570198['importDOCXToSnapshot'](_0x1fef2f);}async[_0x4b3206(0xe8)](_0x27baa9){const _0x5629da=_0x4b3206;let _0x4521a6=this[_0x5629da(0xf7)]['get'](_0x2f3a3c[_0x5629da(0x105)]);if(!_0x4521a6)throw Error(_0x5629da(0xe4));return _0x4521a6['exportDOCXBySnapshot'](_0x27baa9);}async[_0x4b3206(0xfc)](_0x6a216f){const _0x1713ae=_0x4b3206;let _0x5624d1=this[_0x1713ae(0xf7)][_0x1713ae(0xe6)](_0x2f3a3c[_0x1713ae(0x105)]);if(!_0x5624d1)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x5624d1['exportDOCXByUnitId'](_0x6a216f);}async['importPPTXToUnitIdAsync'](_0xf033ad){const _0x2322c8=_0x4b3206;let _0x5cc819=this[_0x2322c8(0xf7)][_0x2322c8(0xe6)](_0x2f3a3c[_0x2322c8(0x105)]);if(!_0x5cc819)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x5cc819[_0x2322c8(0xe2)](_0xf033ad,_0x3612dd['UniverInstanceType']['UNIVER_SLIDE']);}async[_0x4b3206(0x102)](_0x283b90){const _0x28552b=_0x4b3206;let _0x4a4f26=this['_injector'][_0x28552b(0xe6)](_0x2f3a3c['IExchangeService']);if(!_0x4a4f26)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x4a4f26[_0x28552b(0xf3)](_0x283b90);}async[_0x4b3206(0xea)](_0x4f7de5){const _0x19a347=_0x4b3206;let _0x295777=this[_0x19a347(0xf7)][_0x19a347(0xe6)](_0x2f3a3c[_0x19a347(0x105)]);if(!_0x295777)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x295777[_0x19a347(0xf4)](_0x4f7de5);}async[_0x4b3206(0xe7)](_0x85c578){const _0x34a1dc=_0x4b3206;let _0x3f0fff=this[_0x34a1dc(0xf7)][_0x34a1dc(0xe6)](_0x2f3a3c['IExchangeService']);if(!_0x3f0fff)throw Error(_0x34a1dc(0xe4));return _0x3f0fff[_0x34a1dc(0xde)](_0x85c578);}};_0x1b9d3f[_0x4b3206(0xef)]['extend'](_0x377d07);}));