@univerjs-pro/exchange-client 0.8.3 → 0.9.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 _0x3605(_0x309904,_0x26a7ec){const _0x1f06a7=_0x1f06();return _0x3605=function(_0x3605b1,_0x462df4){_0x3605b1=_0x3605b1-0x1cf;let _0x16cde3=_0x1f06a7[_0x3605b1];return _0x16cde3;},_0x3605(_0x309904,_0x26a7ec);}const _0x24390d=_0x3605;(function(_0x3f18c9,_0x3a7ad6){const _0x516878=_0x3605,_0x164a9a=_0x3f18c9();while(!![]){try{const _0xe8bb0a=parseInt(_0x516878(0x1d0))/0x1+parseInt(_0x516878(0x1e2))/0x2+-parseInt(_0x516878(0x1cf))/0x3+-parseInt(_0x516878(0x1ed))/0x4+parseInt(_0x516878(0x1dd))/0x5*(-parseInt(_0x516878(0x1f3))/0x6)+-parseInt(_0x516878(0x1dc))/0x7*(parseInt(_0x516878(0x1d3))/0x8)+parseInt(_0x516878(0x1d4))/0x9*(parseInt(_0x516878(0x1d9))/0xa);if(_0xe8bb0a===_0x3a7ad6)break;else _0x164a9a['push'](_0x164a9a['shift']());}catch(_0x57c44a){_0x164a9a['push'](_0x164a9a['shift']());}}}(_0x1f06,0xa20e9));function _0x1f06(){const _0xa26f1f=['UNIVER_DOC','exportXLSXByUnitIdAsync','extend','IExchangeService','exportXLSXBySnapshot','@univerjs/core/facade','694560rTqdxk','importDOCXToSnapshotAsync','FUniver','UNIVER_SHEET','importXLSXToSnapshotAsync','importDOCXToSnapshot','96ZRUKub','UNIVER_SLIDE','2724324UwaRbR','380221DuieHV','importDOCXToUnitIdAsync','UNIVER_PROJECT','17592hlwDhB','126bOFKVx','exportDOCXByUnitIdAsync','get','exportXLSXByUnitId','importXLSXToUnitIdAsync','1542700YbAbBb','importXLSXToUnitId','exportDOCXBySnapshotAsync','2534nZLwpM','256545EaKKqN','importFileToUnitId','importDOCXToUnitId','exportDOCXBySnapshot','_injector','1645028jYosYP','UNRECOGNIZED','UNIVER_UNKNOWN','The\x20exchange\x20service\x20is\x20not\x20available','exportXLSXBySnapshotAsync'];_0x1f06=function(){return _0xa26f1f;};return _0x1f06();}const r=require('@univerjs-pro/exchange-client'),o=require(_0x24390d(0x1ec));var i=(_0x480531=>(_0x480531[_0x480531[_0x24390d(0x1e4)]=0x0]='UNIVER_UNKNOWN',_0x480531[_0x480531[_0x24390d(0x1e7)]=0x1]=_0x24390d(0x1e7),_0x480531[_0x480531['UNIVER_SHEET']=0x2]='UNIVER_SHEET',_0x480531[_0x480531['UNIVER_SLIDE']=0x3]=_0x24390d(0x1f4),_0x480531[_0x480531[_0x24390d(0x1d2)]=0x4]='UNIVER_PROJECT',_0x480531[_0x480531[_0x24390d(0x1e3)]=-0x1]=_0x24390d(0x1e3),_0x480531))(i||{});class c extends o[_0x24390d(0x1ef)]{async[_0x24390d(0x1da)](_0x43f811){return this['importXLSXToUnitIdAsync'](_0x43f811);}async[_0x24390d(0x1d8)](_0x50e786){const _0x156030=_0x24390d,_0x3fa020=this[_0x156030(0x1e1)][_0x156030(0x1d6)](r[_0x156030(0x1ea)]);if(!_0x3fa020)throw new Error(_0x156030(0x1e5));return _0x3fa020['importFileToUnitId'](_0x50e786,i[_0x156030(0x1f0)]);}async['importXLSXToSnapshot'](_0x130eb4){const _0x1533ae=_0x24390d;return this[_0x1533ae(0x1f1)](_0x130eb4);}async['importXLSXToSnapshotAsync'](_0x124fea){const _0xbf2347=_0x24390d,_0x372b54=this['_injector']['get'](r[_0xbf2347(0x1ea)]);if(!_0x372b54)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x372b54['importXLSXToSnapshot'](_0x124fea);}async[_0x24390d(0x1d7)](_0x1902d0){const _0x3a2e27=_0x24390d;return this[_0x3a2e27(0x1e8)](_0x1902d0);}async['exportXLSXByUnitIdAsync'](_0x5308ae){const _0x15e172=_0x24390d,_0x39a369=this[_0x15e172(0x1e1)][_0x15e172(0x1d6)](r['IExchangeService']);if(!_0x39a369)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x39a369[_0x15e172(0x1d7)](_0x5308ae);}async[_0x24390d(0x1eb)](_0x5e4496){const _0x87f083=_0x24390d;return this[_0x87f083(0x1e6)](_0x5e4496);}async[_0x24390d(0x1e6)](_0x2c2e6c){const _0x438ed9=_0x24390d,_0x57d8a0=this[_0x438ed9(0x1e1)][_0x438ed9(0x1d6)](r[_0x438ed9(0x1ea)]);if(!_0x57d8a0)throw new Error(_0x438ed9(0x1e5));return _0x57d8a0['exportXLSXBySnapshot'](_0x2c2e6c);}async[_0x24390d(0x1df)](_0x206fb0){const _0x2958ec=_0x24390d;return this[_0x2958ec(0x1d1)](_0x206fb0);}async[_0x24390d(0x1d1)](_0x36dc3c){const _0x399ba9=_0x24390d,_0x24de34=this[_0x399ba9(0x1e1)][_0x399ba9(0x1d6)](r['IExchangeService']);if(!_0x24de34)throw new Error(_0x399ba9(0x1e5));return _0x24de34[_0x399ba9(0x1de)](_0x36dc3c,i[_0x399ba9(0x1e7)]);}async[_0x24390d(0x1f2)](_0x1a6d72){const _0x17f16c=_0x24390d;return this[_0x17f16c(0x1ee)](_0x1a6d72);}async[_0x24390d(0x1ee)](_0x1eeb63){const _0x45ae1c=_0x24390d,_0x2f207d=this[_0x45ae1c(0x1e1)][_0x45ae1c(0x1d6)](r[_0x45ae1c(0x1ea)]);if(!_0x2f207d)throw new Error(_0x45ae1c(0x1e5));return _0x2f207d['importDOCXToSnapshot'](_0x1eeb63);}async[_0x24390d(0x1db)](_0x17494e){const _0xfd28f2=_0x24390d,_0x4345e8=this['_injector'][_0xfd28f2(0x1d6)](r[_0xfd28f2(0x1ea)]);if(!_0x4345e8)throw new Error(_0xfd28f2(0x1e5));return _0x4345e8[_0xfd28f2(0x1e0)](_0x17494e);}async[_0x24390d(0x1d5)](_0x1d421c){const _0x160497=_0x24390d,_0x5daace=this[_0x160497(0x1e1)]['get'](r[_0x160497(0x1ea)]);if(!_0x5daace)throw new Error(_0x160497(0x1e5));return _0x5daace['exportDOCXByUnitId'](_0x1d421c);}}o[_0x24390d(0x1ef)][_0x24390d(0x1e9)](c);
1
+ 'use strict';const _0x4a35c1=_0x5f29;(function(_0x1a83fd,_0x417098){const _0x43681d=_0x5f29,_0x51a8de=_0x1a83fd();while(!![]){try{const _0x2508fc=-parseInt(_0x43681d(0x150))/0x1+parseInt(_0x43681d(0x153))/0x2*(-parseInt(_0x43681d(0x167))/0x3)+parseInt(_0x43681d(0x15f))/0x4*(parseInt(_0x43681d(0x156))/0x5)+parseInt(_0x43681d(0x152))/0x6*(-parseInt(_0x43681d(0x14f))/0x7)+-parseInt(_0x43681d(0x149))/0x8*(parseInt(_0x43681d(0x168))/0x9)+-parseInt(_0x43681d(0x164))/0xa*(parseInt(_0x43681d(0x166))/0xb)+parseInt(_0x43681d(0x14d))/0xc;if(_0x2508fc===_0x417098)break;else _0x51a8de['push'](_0x51a8de['shift']());}catch(_0x5d957a){_0x51a8de['push'](_0x51a8de['shift']());}}}(_0x3e64,0xebfe9));function _0x5f29(_0x5cce49,_0x3ed352){const _0x3e6499=_0x3e64();return _0x5f29=function(_0x5f29fa,_0x4aa41e){_0x5f29fa=_0x5f29fa-0x148;let _0x3bf98a=_0x3e6499[_0x5f29fa];return _0x3bf98a;},_0x5f29(_0x5cce49,_0x3ed352);}function _0x3e64(){const _0x3b360e=['_injector','16nYZdwu','get','UNIVER_SHEET','exportXLSXBySnapshotAsync','importDOCXToSnapshotAsync','10SyJAFB','exportDOCXByUnitId','18742119rLIFIB','588594QZLEbY','4653549cuPtHQ','UNIVER_SLIDE','importDOCXToSnapshot','importXLSXToSnapshotAsync','IExchangeService','importDOCXToUnitId','FUniver','UNIVER_DOC','8UTAmqL','exportXLSXByUnitId','importFileToUnitId','exportXLSXByUnitIdAsync','47014728NzJnzO','The\x20exchange\x20service\x20is\x20not\x20available','6923Mrvylq','1231750fbXNai','exportDOCXByUnitIdAsync','2202xTRDGw','10lgtbfQ','importXLSXToUnitId','importXLSXToUnitIdAsync','2306665guhSBX','exportXLSXBySnapshot','UNIVER_PROJECT','importDOCXToUnitIdAsync','UNRECOGNIZED','importXLSXToSnapshot','exportDOCXBySnapshotAsync','UNIVER_UNKNOWN'];_0x3e64=function(){return _0x3b360e;};return _0x3e64();}const r=require('@univerjs-pro/exchange-client'),o=require('@univerjs/core/facade');var i=(_0x565c5f=>(_0x565c5f[_0x565c5f[_0x4a35c1(0x15d)]=0x0]=_0x4a35c1(0x15d),_0x565c5f[_0x565c5f[_0x4a35c1(0x148)]=0x1]=_0x4a35c1(0x148),_0x565c5f[_0x565c5f['UNIVER_SHEET']=0x2]=_0x4a35c1(0x161),_0x565c5f[_0x565c5f[_0x4a35c1(0x169)]=0x3]=_0x4a35c1(0x169),_0x565c5f[_0x565c5f['UNIVER_PROJECT']=0x4]=_0x4a35c1(0x158),_0x565c5f[_0x565c5f[_0x4a35c1(0x15a)]=-0x1]=_0x4a35c1(0x15a),_0x565c5f))(i||{});class c extends o[_0x4a35c1(0x16e)]{async[_0x4a35c1(0x154)](_0x53a276){const _0x39bdd4=_0x4a35c1;return this[_0x39bdd4(0x155)](_0x53a276);}async[_0x4a35c1(0x155)](_0xd548d){const _0x23d12e=_0x4a35c1,_0x50bfd3=this['_injector']['get'](r[_0x23d12e(0x16c)]);if(!_0x50bfd3)throw new Error(_0x23d12e(0x14e));return _0x50bfd3[_0x23d12e(0x14b)](_0xd548d,i[_0x23d12e(0x161)]);}async[_0x4a35c1(0x15b)](_0x4c544e){const _0x537404=_0x4a35c1;return this[_0x537404(0x16b)](_0x4c544e);}async[_0x4a35c1(0x16b)](_0x316e9c){const _0x174241=_0x4a35c1,_0x58b953=this[_0x174241(0x15e)][_0x174241(0x160)](r['IExchangeService']);if(!_0x58b953)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x58b953[_0x174241(0x15b)](_0x316e9c);}async[_0x4a35c1(0x14a)](_0x39bffe){const _0x4c3017=_0x4a35c1;return this[_0x4c3017(0x14c)](_0x39bffe);}async['exportXLSXByUnitIdAsync'](_0x57a013){const _0x36d712=_0x4a35c1,_0x3dccfd=this[_0x36d712(0x15e)][_0x36d712(0x160)](r['IExchangeService']);if(!_0x3dccfd)throw new Error(_0x36d712(0x14e));return _0x3dccfd['exportXLSXByUnitId'](_0x57a013);}async[_0x4a35c1(0x157)](_0x414976){const _0x21d418=_0x4a35c1;return this[_0x21d418(0x162)](_0x414976);}async[_0x4a35c1(0x162)](_0x4f8eb3){const _0x34eb0b=_0x4a35c1,_0x38e8d1=this[_0x34eb0b(0x15e)][_0x34eb0b(0x160)](r['IExchangeService']);if(!_0x38e8d1)throw new Error(_0x34eb0b(0x14e));return _0x38e8d1['exportXLSXBySnapshot'](_0x4f8eb3);}async[_0x4a35c1(0x16d)](_0xc98c8e){const _0x54e4df=_0x4a35c1;return this[_0x54e4df(0x159)](_0xc98c8e);}async[_0x4a35c1(0x159)](_0x277ac9){const _0x59d6b2=_0x4a35c1,_0x4e835e=this['_injector'][_0x59d6b2(0x160)](r[_0x59d6b2(0x16c)]);if(!_0x4e835e)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x4e835e[_0x59d6b2(0x14b)](_0x277ac9,i[_0x59d6b2(0x148)]);}async[_0x4a35c1(0x16a)](_0x35b6fc){const _0x3f8963=_0x4a35c1;return this[_0x3f8963(0x163)](_0x35b6fc);}async[_0x4a35c1(0x163)](_0x60a923){const _0x4dfd8b=_0x4a35c1,_0x2aac54=this[_0x4dfd8b(0x15e)][_0x4dfd8b(0x160)](r[_0x4dfd8b(0x16c)]);if(!_0x2aac54)throw new Error(_0x4dfd8b(0x14e));return _0x2aac54['importDOCXToSnapshot'](_0x60a923);}async[_0x4a35c1(0x15c)](_0x6979c6){const _0x30d347=_0x4a35c1,_0x33533c=this[_0x30d347(0x15e)][_0x30d347(0x160)](r['IExchangeService']);if(!_0x33533c)throw new Error(_0x30d347(0x14e));return _0x33533c['exportDOCXBySnapshot'](_0x6979c6);}async[_0x4a35c1(0x151)](_0x28a950){const _0xef3101=_0x4a35c1,_0x70f76e=this['_injector'][_0xef3101(0x160)](r['IExchangeService']);if(!_0x70f76e)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x70f76e[_0xef3101(0x165)](_0x28a950);}}o[_0x4a35c1(0x16e)]['extend'](c);