@univerjs-pro/exchange-client 0.5.5-nightly.202501241606 → 0.6.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.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x4736(_0x999e55,_0x50739a){const _0x3ee820=_0x3ee8();return _0x4736=function(_0x473668,_0x34e41c){_0x473668=_0x473668-0x161;let _0x4a35e9=_0x3ee820[_0x473668];return _0x4a35e9;},_0x4736(_0x999e55,_0x50739a);}const _0x1b0309=_0x4736;(function(_0x4ccd14,_0x3e7c80){const _0x22a9cf=_0x4736,_0x15f313=_0x4ccd14();while(!![]){try{const _0x21ef1b=parseInt(_0x22a9cf(0x175))/0x1*(-parseInt(_0x22a9cf(0x162))/0x2)+parseInt(_0x22a9cf(0x180))/0x3+parseInt(_0x22a9cf(0x181))/0x4*(parseInt(_0x22a9cf(0x179))/0x5)+-parseInt(_0x22a9cf(0x169))/0x6*(parseInt(_0x22a9cf(0x174))/0x7)+-parseInt(_0x22a9cf(0x185))/0x8*(parseInt(_0x22a9cf(0x168))/0x9)+-parseInt(_0x22a9cf(0x177))/0xa+-parseInt(_0x22a9cf(0x178))/0xb*(-parseInt(_0x22a9cf(0x171))/0xc);if(_0x21ef1b===_0x3e7c80)break;else _0x15f313['push'](_0x15f313['shift']());}catch(_0x2cbf98){_0x15f313['push'](_0x15f313['shift']());}}}(_0x3ee8,0xdde68));var __defProp=Object['defineProperty'],__name=(_0x5d2ed2,_0xcbc40d)=>__defProp(_0x5d2ed2,_0x1b0309(0x17c),{'value':_0xcbc40d,'configurable':!0x0});const exchangeClient=require('@univerjs-pro/exchange-client'),core=require(_0x1b0309(0x16d));var UniverType=(_0x28e700=>(_0x28e700[_0x28e700[_0x1b0309(0x173)]=0x0]='UNIVER_UNKNOWN',_0x28e700[_0x28e700[_0x1b0309(0x17b)]=0x1]=_0x1b0309(0x17b),_0x28e700[_0x28e700[_0x1b0309(0x172)]=0x2]=_0x1b0309(0x172),_0x28e700[_0x28e700['UNIVER_SLIDE']=0x3]=_0x1b0309(0x183),_0x28e700[_0x28e700[_0x1b0309(0x161)]=0x4]='UNIVER_PROJECT',_0x28e700[_0x28e700['UNRECOGNIZED']=-0x1]=_0x1b0309(0x17f),_0x28e700))(UniverType||{});function _0x3ee8(){const _0x2cf9f6=['2827emKGls','2600mjygvb','importDOCXToSnapshot','UNIVER_DOC','name','importXLSXToUnitIdAsync','get','UNRECOGNIZED','1314798zKrlHZ','4912sosoBn','FUniverExchangeClientMixin','UNIVER_SLIDE','importDOCXToUnitIdAsync','826456akYRjs','importXLSXToSnapshot','exportXLSXBySnapshot','UNIVER_PROJECT','2lxBjFv','importXLSXToSnapshotAsync','importDOCXToUnitId','The\x20exchange\x20service\x20is\x20not\x20available','exportXLSXBySnapshotAsync','exportXLSXByUnitId','27vsaAkS','299256vXcmuu','importXLSXToUnitId','IExchangeService','importFileToUnitId','@univerjs/core','_injector','FUniver','exportXLSXByUnitIdAsync','114132iVcExs','UNIVER_SHEET','UNIVER_UNKNOWN','154IQyKMO','543482nLkltW','importDOCXToSnapshotAsync','6615740JaSSpI'];_0x3ee8=function(){return _0x2cf9f6;};return _0x3ee8();}const _FUniverExchangeClientMixin=class _FUniverExchangeClientMixin extends core['FUniver']{async[_0x1b0309(0x16a)](_0xb8a0b6){const _0x352a0d=_0x1b0309;return this[_0x352a0d(0x17d)](_0xb8a0b6);}async[_0x1b0309(0x17d)](_0x759ff8){const _0xe1c832=_0x1b0309,_0x487546=this[_0xe1c832(0x16e)][_0xe1c832(0x17e)](exchangeClient[_0xe1c832(0x16b)]);if(!_0x487546)throw new Error(_0xe1c832(0x165));return _0x487546[_0xe1c832(0x16c)](_0x759ff8,UniverType[_0xe1c832(0x172)]);}async[_0x1b0309(0x186)](_0x9f49aa){const _0x52761b=_0x1b0309;return this[_0x52761b(0x163)](_0x9f49aa);}async['importXLSXToSnapshotAsync'](_0x1fdbd8){const _0x5bdb7e=_0x1b0309,_0x44fa78=this[_0x5bdb7e(0x16e)][_0x5bdb7e(0x17e)](exchangeClient['IExchangeService']);if(!_0x44fa78)throw new Error(_0x5bdb7e(0x165));return _0x44fa78[_0x5bdb7e(0x186)](_0x1fdbd8);}async[_0x1b0309(0x167)](_0x38d10d){const _0x1a5324=_0x1b0309;return this[_0x1a5324(0x170)](_0x38d10d);}async[_0x1b0309(0x170)](_0x339631){const _0x902355=_0x1b0309,_0x109c22=this[_0x902355(0x16e)][_0x902355(0x17e)](exchangeClient[_0x902355(0x16b)]);if(!_0x109c22)throw new Error(_0x902355(0x165));return _0x109c22[_0x902355(0x167)](_0x339631);}async[_0x1b0309(0x187)](_0xc67992){const _0x2a481d=_0x1b0309;return this[_0x2a481d(0x166)](_0xc67992);}async[_0x1b0309(0x166)](_0x42d658){const _0x490c59=_0x1b0309,_0x404c7e=this['_injector']['get'](exchangeClient[_0x490c59(0x16b)]);if(!_0x404c7e)throw new Error(_0x490c59(0x165));return _0x404c7e['exportXLSXBySnapshot'](_0x42d658);}async[_0x1b0309(0x164)](_0x3f592f){const _0x3e5b79=_0x1b0309;return this[_0x3e5b79(0x184)](_0x3f592f);}async['importDOCXToUnitIdAsync'](_0x4cb851){const _0x3b4495=_0x1b0309,_0x289da7=this[_0x3b4495(0x16e)]['get'](exchangeClient[_0x3b4495(0x16b)]);if(!_0x289da7)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x289da7[_0x3b4495(0x16c)](_0x4cb851,UniverType[_0x3b4495(0x17b)]);}async[_0x1b0309(0x17a)](_0x1993ff){const _0x26f7d6=_0x1b0309;return this[_0x26f7d6(0x176)](_0x1993ff);}async[_0x1b0309(0x176)](_0x2c0570){const _0x440691=_0x1b0309,_0x224778=this['_injector'][_0x440691(0x17e)](exchangeClient[_0x440691(0x16b)]);if(!_0x224778)throw new Error(_0x440691(0x165));return _0x224778[_0x440691(0x17a)](_0x2c0570);}};__name(_FUniverExchangeClientMixin,_0x1b0309(0x182));let FUniverExchangeClientMixin=_FUniverExchangeClientMixin;core[_0x1b0309(0x16f)]['extend'](FUniverExchangeClientMixin);
1
+ 'use strict';const _0x1bec0a=_0x489b;(function(_0x57beed,_0x2e9aa1){const _0x21b836=_0x489b,_0x15336a=_0x57beed();while(!![]){try{const _0x1e8d2b=-parseInt(_0x21b836(0x14e))/0x1+parseInt(_0x21b836(0x153))/0x2*(parseInt(_0x21b836(0x14f))/0x3)+parseInt(_0x21b836(0x161))/0x4*(-parseInt(_0x21b836(0x15a))/0x5)+parseInt(_0x21b836(0x146))/0x6*(-parseInt(_0x21b836(0x14b))/0x7)+parseInt(_0x21b836(0x154))/0x8*(-parseInt(_0x21b836(0x15d))/0x9)+parseInt(_0x21b836(0x157))/0xa+parseInt(_0x21b836(0x15c))/0xb*(parseInt(_0x21b836(0x148))/0xc);if(_0x1e8d2b===_0x2e9aa1)break;else _0x15336a['push'](_0x15336a['shift']());}catch(_0x31d269){_0x15336a['push'](_0x15336a['shift']());}}}(_0x5f27,0xc5153));function _0x489b(_0x2faa6c,_0x19aa3b){const _0x5f27c8=_0x5f27();return _0x489b=function(_0x489bc0,_0x6eeeba){_0x489bc0=_0x489bc0-0x13e;let _0x196933=_0x5f27c8[_0x489bc0];return _0x196933;},_0x489b(_0x2faa6c,_0x19aa3b);}const r=require(_0x1bec0a(0x143)),i=require(_0x1bec0a(0x13e));var o=(_0x1e15a9=>(_0x1e15a9[_0x1e15a9[_0x1bec0a(0x15f)]=0x0]=_0x1bec0a(0x15f),_0x1e15a9[_0x1e15a9[_0x1bec0a(0x150)]=0x1]=_0x1bec0a(0x150),_0x1e15a9[_0x1e15a9[_0x1bec0a(0x159)]=0x2]=_0x1bec0a(0x159),_0x1e15a9[_0x1e15a9[_0x1bec0a(0x156)]=0x3]=_0x1bec0a(0x156),_0x1e15a9[_0x1e15a9[_0x1bec0a(0x141)]=0x4]=_0x1bec0a(0x141),_0x1e15a9[_0x1e15a9[_0x1bec0a(0x13f)]=-0x1]=_0x1bec0a(0x13f),_0x1e15a9))(o||{});class c extends i[_0x1bec0a(0x160)]{async['importXLSXToUnitId'](_0x3d66fd){const _0x2909f0=_0x1bec0a;return this[_0x2909f0(0x144)](_0x3d66fd);}async[_0x1bec0a(0x144)](_0x3420c4){const _0x3720a2=_0x1bec0a,_0x3df5ee=this[_0x3720a2(0x14d)][_0x3720a2(0x15b)](r[_0x3720a2(0x155)]);if(!_0x3df5ee)throw new Error(_0x3720a2(0x152));return _0x3df5ee['importFileToUnitId'](_0x3420c4,o['UNIVER_SHEET']);}async[_0x1bec0a(0x142)](_0x1b14d4){const _0x388630=_0x1bec0a;return this[_0x388630(0x151)](_0x1b14d4);}async['importXLSXToSnapshotAsync'](_0x4f9cd6){const _0x289ed3=_0x1bec0a,_0x351fd5=this[_0x289ed3(0x14d)][_0x289ed3(0x15b)](r[_0x289ed3(0x155)]);if(!_0x351fd5)throw new Error(_0x289ed3(0x152));return _0x351fd5[_0x289ed3(0x142)](_0x4f9cd6);}async['exportXLSXByUnitId'](_0x21e4f5){const _0x26fb17=_0x1bec0a;return this[_0x26fb17(0x149)](_0x21e4f5);}async['exportXLSXByUnitIdAsync'](_0x93bdb){const _0x194dfc=_0x1bec0a,_0x2805e4=this['_injector'][_0x194dfc(0x15b)](r[_0x194dfc(0x155)]);if(!_0x2805e4)throw new Error(_0x194dfc(0x152));return _0x2805e4['exportXLSXByUnitId'](_0x93bdb);}async[_0x1bec0a(0x140)](_0x6d7299){const _0x58a6f3=_0x1bec0a;return this[_0x58a6f3(0x158)](_0x6d7299);}async[_0x1bec0a(0x158)](_0x13f9e0){const _0x8f97da=_0x1bec0a,_0x594b95=this['_injector'][_0x8f97da(0x15b)](r[_0x8f97da(0x155)]);if(!_0x594b95)throw new Error(_0x8f97da(0x152));return _0x594b95[_0x8f97da(0x140)](_0x13f9e0);}async[_0x1bec0a(0x147)](_0x10cdf6){const _0x1142d5=_0x1bec0a;return this[_0x1142d5(0x14c)](_0x10cdf6);}async[_0x1bec0a(0x14c)](_0x3baa28){const _0x4c7566=_0x1bec0a,_0x346c21=this[_0x4c7566(0x14d)][_0x4c7566(0x15b)](r[_0x4c7566(0x155)]);if(!_0x346c21)throw new Error(_0x4c7566(0x152));return _0x346c21[_0x4c7566(0x145)](_0x3baa28,o[_0x4c7566(0x150)]);}async[_0x1bec0a(0x15e)](_0x4e8287){return this['importDOCXToSnapshotAsync'](_0x4e8287);}async[_0x1bec0a(0x14a)](_0x1e2a26){const _0x1a8679=_0x1bec0a,_0x4831ba=this['_injector']['get'](r[_0x1a8679(0x155)]);if(!_0x4831ba)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x4831ba[_0x1a8679(0x15e)](_0x1e2a26);}}function _0x5f27(){const _0x3c7b58=['@univerjs-pro/exchange-client','importXLSXToUnitIdAsync','importFileToUnitId','88194KIoaOk','importDOCXToUnitId','108uqJveY','exportXLSXByUnitIdAsync','importDOCXToSnapshotAsync','147pTCYXi','importDOCXToUnitIdAsync','_injector','1545339ZntLDT','893664UgTQyu','UNIVER_DOC','importXLSXToSnapshotAsync','The\x20exchange\x20service\x20is\x20not\x20available','2RhPRJB','4288040oggvLz','IExchangeService','UNIVER_SLIDE','135920viIkvF','exportXLSXBySnapshotAsync','UNIVER_SHEET','25tRbzZr','get','6766661zJHRre','27SEOzFL','importDOCXToSnapshot','UNIVER_UNKNOWN','FUniver','1262844YAyqPQ','@univerjs/core','UNRECOGNIZED','exportXLSXBySnapshot','UNIVER_PROJECT','importXLSXToSnapshot'];_0x5f27=function(){return _0x3c7b58;};return _0x5f27();}i[_0x1bec0a(0x160)]['extend'](c);