@univerjs-pro/exchange-client 0.5.0 → 0.5.1-nightly.202412011605

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 _0x2e995b=_0x3103;(function(_0x5f12b2,_0x21bf2e){const _0x38242b=_0x3103,_0x3c2aa4=_0x5f12b2();while(!![]){try{const _0x542536=parseInt(_0x38242b(0x1b7))/0x1*(parseInt(_0x38242b(0x1b1))/0x2)+parseInt(_0x38242b(0x1bd))/0x3+-parseInt(_0x38242b(0x1b8))/0x4*(parseInt(_0x38242b(0x1af))/0x5)+parseInt(_0x38242b(0x1ab))/0x6*(-parseInt(_0x38242b(0x1b9))/0x7)+parseInt(_0x38242b(0x1a6))/0x8+-parseInt(_0x38242b(0x1b6))/0x9+-parseInt(_0x38242b(0x1ad))/0xa;if(_0x542536===_0x21bf2e)break;else _0x3c2aa4['push'](_0x3c2aa4['shift']());}catch(_0x530379){_0x3c2aa4['push'](_0x3c2aa4['shift']());}}}(_0x52b6,0x66089));function _0x52b6(){const _0x49a4d1=['UNIVER_UNKNOWN','3643704ibqUUt','_injector','@univerjs-pro/exchange-client','importDOCXToUnitId','exportXLSXBySnapshot','5604JnVMuA','UNRECOGNIZED','97560fCzqnJ','importXLSXToSnapshot','2011920fCwHcs','UNIVER_PROJECT','15522snRooL','importXLSXToUnitId','UNIVER_SHEET','IExchangeService','extend','2125647kzQcUb','68emWLAz','4jeuYyI','4249HZDYuJ','get','The\x20exchange\x20service\x20is\x20not\x20available','UNIVER_DOC','1949937XkUDSf','FUniver','importDOCXToSnapshot','@univerjs/core'];_0x52b6=function(){return _0x49a4d1;};return _0x52b6();}const c=require(_0x2e995b(0x1a4)),n=require(_0x2e995b(0x1a8));var i=(_0x131f77=>(_0x131f77[_0x131f77[_0x2e995b(0x1a5)]=0x0]=_0x2e995b(0x1a5),_0x131f77[_0x131f77[_0x2e995b(0x1bc)]=0x1]=_0x2e995b(0x1bc),_0x131f77[_0x131f77['UNIVER_SHEET']=0x2]=_0x2e995b(0x1b3),_0x131f77[_0x131f77['UNIVER_SLIDE']=0x3]='UNIVER_SLIDE',_0x131f77[_0x131f77[_0x2e995b(0x1b0)]=0x4]=_0x2e995b(0x1b0),_0x131f77[_0x131f77[_0x2e995b(0x1ac)]=-0x1]=_0x2e995b(0x1ac),_0x131f77))(i||{});class o extends c[_0x2e995b(0x1be)]{async[_0x2e995b(0x1b2)](_0x3becb0){const _0x2951dc=_0x2e995b,_0x1052a6=this['_injector'][_0x2951dc(0x1ba)](n[_0x2951dc(0x1b4)]);if(!_0x1052a6)throw new Error(_0x2951dc(0x1bb));return _0x1052a6['importFileToUnitId'](_0x3becb0,i[_0x2951dc(0x1b3)]);}async[_0x2e995b(0x1ae)](_0x273d53){const _0x3c5d50=_0x2e995b,_0x29d044=this['_injector']['get'](n[_0x3c5d50(0x1b4)]);if(!_0x29d044)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x29d044[_0x3c5d50(0x1ae)](_0x273d53);}async['exportXLSXByUnitId'](_0x23c1de){const _0x592474=_0x2e995b,_0x433cdc=this[_0x592474(0x1a7)][_0x592474(0x1ba)](n[_0x592474(0x1b4)]);if(!_0x433cdc)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x433cdc['exportXLSXByUnitId'](_0x23c1de);}async[_0x2e995b(0x1aa)](_0x304d7f){const _0xaf5d41=_0x2e995b,_0x5f12b9=this['_injector'][_0xaf5d41(0x1ba)](n[_0xaf5d41(0x1b4)]);if(!_0x5f12b9)throw new Error(_0xaf5d41(0x1bb));return _0x5f12b9[_0xaf5d41(0x1aa)](_0x304d7f);}async[_0x2e995b(0x1a9)](_0x414573){const _0x4d079f=_0x2e995b,_0x15c9db=this[_0x4d079f(0x1a7)][_0x4d079f(0x1ba)](n[_0x4d079f(0x1b4)]);if(!_0x15c9db)throw new Error(_0x4d079f(0x1bb));return _0x15c9db['importFileToUnitId'](_0x414573,i['UNIVER_DOC']);}async[_0x2e995b(0x1a3)](_0x563dc4){const _0x4e7888=_0x2e995b,_0x18b26d=this[_0x4e7888(0x1a7)][_0x4e7888(0x1ba)](n[_0x4e7888(0x1b4)]);if(!_0x18b26d)throw new Error(_0x4e7888(0x1bb));return _0x18b26d[_0x4e7888(0x1a3)](_0x563dc4);}}function _0x3103(_0x3278d5,_0x3adea1){const _0x52b64a=_0x52b6();return _0x3103=function(_0x310356,_0x10b400){_0x310356=_0x310356-0x1a3;let _0x55d2aa=_0x52b64a[_0x310356];return _0x55d2aa;},_0x3103(_0x3278d5,_0x3adea1);}c['FUniver'][_0x2e995b(0x1b5)](o);