@univerjs-pro/exchange-client 0.5.0 → 0.5.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.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x15cbf9=_0x129a;function _0x129a(_0x2b2a0e,_0xb35800){const _0xf5602e=_0xf560();return _0x129a=function(_0x129a38,_0x12749c){_0x129a38=_0x129a38-0x101;let _0x4619a8=_0xf5602e[_0x129a38];return _0x4619a8;},_0x129a(_0x2b2a0e,_0xb35800);}(function(_0x53a702,_0xce9e5){const _0x27011f=_0x129a,_0x2ba715=_0x53a702();while(!![]){try{const _0x270a78=-parseInt(_0x27011f(0x11c))/0x1+parseInt(_0x27011f(0x114))/0x2*(parseInt(_0x27011f(0x110))/0x3)+parseInt(_0x27011f(0x107))/0x4*(-parseInt(_0x27011f(0x106))/0x5)+-parseInt(_0x27011f(0x10e))/0x6*(-parseInt(_0x27011f(0x113))/0x7)+parseInt(_0x27011f(0x111))/0x8*(parseInt(_0x27011f(0x112))/0x9)+-parseInt(_0x27011f(0x102))/0xa+parseInt(_0x27011f(0x117))/0xb;if(_0x270a78===_0xce9e5)break;else _0x2ba715['push'](_0x2ba715['shift']());}catch(_0x56a871){_0x2ba715['push'](_0x2ba715['shift']());}}}(_0xf560,0x6da27));const c=require('@univerjs/core'),n=require(_0x15cbf9(0x118));var i=(_0x3c8ad3=>(_0x3c8ad3[_0x3c8ad3['UNIVER_UNKNOWN']=0x0]='UNIVER_UNKNOWN',_0x3c8ad3[_0x3c8ad3[_0x15cbf9(0x108)]=0x1]=_0x15cbf9(0x108),_0x3c8ad3[_0x3c8ad3[_0x15cbf9(0x105)]=0x2]='UNIVER_SHEET',_0x3c8ad3[_0x3c8ad3['UNIVER_SLIDE']=0x3]=_0x15cbf9(0x116),_0x3c8ad3[_0x3c8ad3[_0x15cbf9(0x119)]=0x4]='UNIVER_PROJECT',_0x3c8ad3[_0x3c8ad3[_0x15cbf9(0x10b)]=-0x1]='UNRECOGNIZED',_0x3c8ad3))(i||{});class o extends c['FUniver']{async[_0x15cbf9(0x101)](_0x445d0e){const _0xf9fa8d=_0x15cbf9,_0x44f908=this[_0xf9fa8d(0x10c)][_0xf9fa8d(0x10f)](n[_0xf9fa8d(0x103)]);if(!_0x44f908)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x44f908[_0xf9fa8d(0x109)](_0x445d0e,i[_0xf9fa8d(0x105)]);}async['importXLSXToSnapshot'](_0x1a6f07){const _0x261850=_0x15cbf9,_0xdec874=this[_0x261850(0x10c)][_0x261850(0x10f)](n[_0x261850(0x103)]);if(!_0xdec874)throw new Error(_0x261850(0x11b));return _0xdec874[_0x261850(0x115)](_0x1a6f07);}async[_0x15cbf9(0x10d)](_0x2cd691){const _0x2eaffb=_0x15cbf9,_0x930404=this[_0x2eaffb(0x10c)]['get'](n[_0x2eaffb(0x103)]);if(!_0x930404)throw new Error(_0x2eaffb(0x11b));return _0x930404[_0x2eaffb(0x10d)](_0x2cd691);}async[_0x15cbf9(0x104)](_0x157c7f){const _0x3fd923=_0x15cbf9,_0x10ca54=this[_0x3fd923(0x10c)][_0x3fd923(0x10f)](n['IExchangeService']);if(!_0x10ca54)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x10ca54['exportXLSXBySnapshot'](_0x157c7f);}async['importDOCXToUnitId'](_0x14cde2){const _0x511b0e=_0x15cbf9,_0x55060d=this[_0x511b0e(0x10c)]['get'](n[_0x511b0e(0x103)]);if(!_0x55060d)throw new Error(_0x511b0e(0x11b));return _0x55060d['importFileToUnitId'](_0x14cde2,i[_0x511b0e(0x108)]);}async['importDOCXToSnapshot'](_0x41e7d9){const _0x2fb4da=_0x15cbf9,_0x39088f=this[_0x2fb4da(0x10c)][_0x2fb4da(0x10f)](n[_0x2fb4da(0x103)]);if(!_0x39088f)throw new Error(_0x2fb4da(0x11b));return _0x39088f[_0x2fb4da(0x11a)](_0x41e7d9);}}c[_0x15cbf9(0x10a)]['extend'](o);function _0xf560(){const _0x446420=['UNIVER_SHEET','764710cIRMEs','20ffjJtD','UNIVER_DOC','importFileToUnitId','FUniver','UNRECOGNIZED','_injector','exportXLSXByUnitId','42sYznKU','get','409119LUJnuu','24eyiFJG','1534491uGSyoT','734104YDJNyP','10gQAmGg','importXLSXToSnapshot','UNIVER_SLIDE','441980Llinsv','@univerjs-pro/exchange-client','UNIVER_PROJECT','importDOCXToSnapshot','The\x20exchange\x20service\x20is\x20not\x20available','140995CGssaO','importXLSXToUnitId','6128780EwPlmw','IExchangeService','exportXLSXBySnapshot'];_0xf560=function(){return _0x446420;};return _0xf560();}
1
+ 'use strict';const _0x242b25=_0x4cc8;(function(_0x280b1b,_0x19e265){const _0x367680=_0x4cc8,_0x588da7=_0x280b1b();while(!![]){try{const _0x165ff2=-parseInt(_0x367680(0xcf))/0x1+-parseInt(_0x367680(0xc8))/0x2*(-parseInt(_0x367680(0xc2))/0x3)+parseInt(_0x367680(0xd0))/0x4*(-parseInt(_0x367680(0xba))/0x5)+-parseInt(_0x367680(0xc0))/0x6+parseInt(_0x367680(0xc6))/0x7+parseInt(_0x367680(0xb8))/0x8+-parseInt(_0x367680(0xc5))/0x9*(-parseInt(_0x367680(0xc3))/0xa);if(_0x165ff2===_0x19e265)break;else _0x588da7['push'](_0x588da7['shift']());}catch(_0x41e871){_0x588da7['push'](_0x588da7['shift']());}}}(_0xc72f,0xc017c));function _0x4cc8(_0x4bd71d,_0x3318be){const _0xc72ff=_0xc72f();return _0x4cc8=function(_0x4cc823,_0x205f56){_0x4cc823=_0x4cc823-0xb3;let _0x21c6f9=_0xc72ff[_0x4cc823];return _0x21c6f9;},_0x4cc8(_0x4bd71d,_0x3318be);}const c=require(_0x242b25(0xbe)),n=require(_0x242b25(0xbd));var i=(_0x4a1e3f=>(_0x4a1e3f[_0x4a1e3f['UNIVER_UNKNOWN']=0x0]=_0x242b25(0xc4),_0x4a1e3f[_0x4a1e3f[_0x242b25(0xb3)]=0x1]=_0x242b25(0xb3),_0x4a1e3f[_0x4a1e3f[_0x242b25(0xb6)]=0x2]='UNIVER_SHEET',_0x4a1e3f[_0x4a1e3f['UNIVER_SLIDE']=0x3]='UNIVER_SLIDE',_0x4a1e3f[_0x4a1e3f[_0x242b25(0xca)]=0x4]=_0x242b25(0xca),_0x4a1e3f[_0x4a1e3f[_0x242b25(0xcd)]=-0x1]=_0x242b25(0xcd),_0x4a1e3f))(i||{});class o extends c[_0x242b25(0xbc)]{async[_0x242b25(0xce)](_0x5f073e){const _0x2ad6aa=_0x242b25,_0x5203a7=this[_0x2ad6aa(0xb9)][_0x2ad6aa(0xc1)](n[_0x2ad6aa(0xbf)]);if(!_0x5203a7)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x5203a7[_0x2ad6aa(0xcb)](_0x5f073e,i['UNIVER_SHEET']);}async['importXLSXToSnapshot'](_0x5e9b44){const _0x6dc91e=_0x242b25,_0xb9bef1=this[_0x6dc91e(0xb9)][_0x6dc91e(0xc1)](n[_0x6dc91e(0xbf)]);if(!_0xb9bef1)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0xb9bef1[_0x6dc91e(0xcc)](_0x5e9b44);}async[_0x242b25(0xc9)](_0x553570){const _0x56c62c=_0x242b25,_0x1e51b2=this['_injector'][_0x56c62c(0xc1)](n[_0x56c62c(0xbf)]);if(!_0x1e51b2)throw new Error(_0x56c62c(0xb7));return _0x1e51b2['exportXLSXByUnitId'](_0x553570);}async[_0x242b25(0xb4)](_0x3647a0){const _0x5d79c6=_0x242b25,_0x2449c5=this[_0x5d79c6(0xb9)][_0x5d79c6(0xc1)](n[_0x5d79c6(0xbf)]);if(!_0x2449c5)throw new Error(_0x5d79c6(0xb7));return _0x2449c5['exportXLSXBySnapshot'](_0x3647a0);}async[_0x242b25(0xb5)](_0x1d2b3c){const _0xbf10d8=_0x242b25,_0x24b43e=this[_0xbf10d8(0xb9)]['get'](n[_0xbf10d8(0xbf)]);if(!_0x24b43e)throw new Error(_0xbf10d8(0xb7));return _0x24b43e[_0xbf10d8(0xcb)](_0x1d2b3c,i[_0xbf10d8(0xb3)]);}async[_0x242b25(0xbb)](_0x7b1381){const _0x16a503=_0x242b25,_0x14261a=this[_0x16a503(0xb9)][_0x16a503(0xc1)](n[_0x16a503(0xbf)]);if(!_0x14261a)throw new Error(_0x16a503(0xb7));return _0x14261a[_0x16a503(0xbb)](_0x7b1381);}}function _0xc72f(){const _0x56324d=['726NwqnBb','160MNhncn','UNIVER_UNKNOWN','990567pgBLun','1333612oikTFn','extend','5426JmEUuW','exportXLSXByUnitId','UNIVER_PROJECT','importFileToUnitId','importXLSXToSnapshot','UNRECOGNIZED','importXLSXToUnitId','1396184MgnbbP','303260ihkPSa','UNIVER_DOC','exportXLSXBySnapshot','importDOCXToUnitId','UNIVER_SHEET','The\x20exchange\x20service\x20is\x20not\x20available','6932840zPkavt','_injector','10rPMAFV','importDOCXToSnapshot','FUniver','@univerjs-pro/exchange-client','@univerjs/core','IExchangeService','6840294mcpCCg','get'];_0xc72f=function(){return _0x56324d;};return _0xc72f();}c[_0x242b25(0xbc)][_0x242b25(0xc7)](o);