@univerjs-pro/exchange-client 0.7.0-nightly.202505251606 → 0.8.0-beta.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';const _0x2e9bba=_0x4bab;function _0x4bab(_0x1cd3ef,_0x5b785d){const _0x4026f2=_0x4026();return _0x4bab=function(_0x4bab21,_0x31f01d){_0x4bab21=_0x4bab21-0x18e;let _0x3d98fd=_0x4026f2[_0x4bab21];return _0x3d98fd;},_0x4bab(_0x1cd3ef,_0x5b785d);}(function(_0x5aa368,_0x38736f){const _0x1f4cf8=_0x4bab,_0x376f5d=_0x5aa368();while(!![]){try{const _0x4bc3eb=parseInt(_0x1f4cf8(0x1a8))/0x1+-parseInt(_0x1f4cf8(0x1a3))/0x2*(parseInt(_0x1f4cf8(0x19e))/0x3)+-parseInt(_0x1f4cf8(0x1a5))/0x4+-parseInt(_0x1f4cf8(0x1b2))/0x5*(-parseInt(_0x1f4cf8(0x1b0))/0x6)+parseInt(_0x1f4cf8(0x1a6))/0x7+-parseInt(_0x1f4cf8(0x19d))/0x8+-parseInt(_0x1f4cf8(0x197))/0x9*(-parseInt(_0x1f4cf8(0x195))/0xa);if(_0x4bc3eb===_0x38736f)break;else _0x376f5d['push'](_0x376f5d['shift']());}catch(_0x5b5cb6){_0x376f5d['push'](_0x376f5d['shift']());}}}(_0x4026,0xaf92a));function _0x4026(){const _0x3c989f=['UNIVER_SLIDE','5GqNlZd','importDOCXToSnapshot','exportXLSXByUnitIdAsync','exportDOCXByUnitIdAsync','UNIVER_PROJECT','importXLSXToSnapshot','FUniver','UNIVER_SHEET','extend','UNIVER_DOC','162280iiWPDb','importDOCXToUnitId','126sqTEBn','exportXLSXBySnapshotAsync','@univerjs-pro/exchange-client','The\x20exchange\x20service\x20is\x20not\x20available','importDOCXToUnitIdAsync','importXLSXToUnitId','821552dEzfsC','3702JjbTwW','exportDOCXByUnitId','importDOCXToSnapshotAsync','exportXLSXByUnitId','UNRECOGNIZED','2012VegWyD','importFileToUnitId','5737132laOqsN','9938215GMOBdt','IExchangeService','940469auQQGT','_injector','get','importXLSXToSnapshotAsync','exportXLSXBySnapshot','UNIVER_UNKNOWN','@univerjs/core/facade','exportDOCXBySnapshot','5460726QqzbJm'];_0x4026=function(){return _0x3c989f;};return _0x4026();}const r=require(_0x2e9bba(0x199)),o=require(_0x2e9bba(0x1ae));var i=(_0x29ae46=>(_0x29ae46[_0x29ae46[_0x2e9bba(0x1ad)]=0x0]=_0x2e9bba(0x1ad),_0x29ae46[_0x29ae46['UNIVER_DOC']=0x1]=_0x2e9bba(0x194),_0x29ae46[_0x29ae46[_0x2e9bba(0x192)]=0x2]=_0x2e9bba(0x192),_0x29ae46[_0x29ae46[_0x2e9bba(0x1b1)]=0x3]='UNIVER_SLIDE',_0x29ae46[_0x29ae46['UNIVER_PROJECT']=0x4]=_0x2e9bba(0x18f),_0x29ae46[_0x29ae46[_0x2e9bba(0x1a2)]=-0x1]=_0x2e9bba(0x1a2),_0x29ae46))(i||{});class c extends o[_0x2e9bba(0x191)]{async[_0x2e9bba(0x19c)](_0xc79deb){return this['importXLSXToUnitIdAsync'](_0xc79deb);}async['importXLSXToUnitIdAsync'](_0x364f89){const _0x5c3ecf=_0x2e9bba,_0x1245d6=this['_injector'][_0x5c3ecf(0x1aa)](r[_0x5c3ecf(0x1a7)]);if(!_0x1245d6)throw new Error(_0x5c3ecf(0x19a));return _0x1245d6[_0x5c3ecf(0x1a4)](_0x364f89,i[_0x5c3ecf(0x192)]);}async[_0x2e9bba(0x190)](_0x4126cb){const _0x4ebf28=_0x2e9bba;return this[_0x4ebf28(0x1ab)](_0x4126cb);}async['importXLSXToSnapshotAsync'](_0x3b81c6){const _0x48b356=_0x2e9bba,_0x14d152=this[_0x48b356(0x1a9)][_0x48b356(0x1aa)](r[_0x48b356(0x1a7)]);if(!_0x14d152)throw new Error(_0x48b356(0x19a));return _0x14d152[_0x48b356(0x190)](_0x3b81c6);}async[_0x2e9bba(0x1a1)](_0xf74ef4){const _0x781dbc=_0x2e9bba;return this[_0x781dbc(0x1b4)](_0xf74ef4);}async[_0x2e9bba(0x1b4)](_0x211d89){const _0x1702be=_0x2e9bba,_0x25e896=this[_0x1702be(0x1a9)][_0x1702be(0x1aa)](r['IExchangeService']);if(!_0x25e896)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x25e896['exportXLSXByUnitId'](_0x211d89);}async['exportXLSXBySnapshot'](_0x109b45){const _0xd30f5e=_0x2e9bba;return this[_0xd30f5e(0x198)](_0x109b45);}async[_0x2e9bba(0x198)](_0x132f1f){const _0x3cf56c=_0x2e9bba,_0xced1a3=this[_0x3cf56c(0x1a9)][_0x3cf56c(0x1aa)](r['IExchangeService']);if(!_0xced1a3)throw new Error(_0x3cf56c(0x19a));return _0xced1a3[_0x3cf56c(0x1ac)](_0x132f1f);}async[_0x2e9bba(0x196)](_0x4256f6){return this['importDOCXToUnitIdAsync'](_0x4256f6);}async[_0x2e9bba(0x19b)](_0x4826b2){const _0x4bfbdd=_0x2e9bba,_0x4218fd=this[_0x4bfbdd(0x1a9)][_0x4bfbdd(0x1aa)](r[_0x4bfbdd(0x1a7)]);if(!_0x4218fd)throw new Error(_0x4bfbdd(0x19a));return _0x4218fd[_0x4bfbdd(0x1a4)](_0x4826b2,i[_0x4bfbdd(0x194)]);}async['importDOCXToSnapshot'](_0x37dfe9){const _0x15feaf=_0x2e9bba;return this[_0x15feaf(0x1a0)](_0x37dfe9);}async[_0x2e9bba(0x1a0)](_0x5f5556){const _0x444baf=_0x2e9bba,_0x375985=this[_0x444baf(0x1a9)][_0x444baf(0x1aa)](r[_0x444baf(0x1a7)]);if(!_0x375985)throw new Error(_0x444baf(0x19a));return _0x375985[_0x444baf(0x1b3)](_0x5f5556);}async['exportDOCXBySnapshotAsync'](_0x349937){const _0x4a02a3=_0x2e9bba,_0x5c9e4e=this[_0x4a02a3(0x1a9)][_0x4a02a3(0x1aa)](r[_0x4a02a3(0x1a7)]);if(!_0x5c9e4e)throw new Error(_0x4a02a3(0x19a));return _0x5c9e4e[_0x4a02a3(0x1af)](_0x349937);}async[_0x2e9bba(0x18e)](_0xbb34f2){const _0x132323=_0x2e9bba,_0x1a14b4=this[_0x132323(0x1a9)]['get'](r[_0x132323(0x1a7)]);if(!_0x1a14b4)throw new Error(_0x132323(0x19a));return _0x1a14b4[_0x132323(0x19f)](_0xbb34f2);}}o[_0x2e9bba(0x191)][_0x2e9bba(0x193)](c);
1
+ 'use strict';const _0x11e0a9=_0x568b;function _0xa501(){const _0x7c7e60=['1827655QQgjup','exportDOCXBySnapshot','FUniver','importDOCXToUnitIdAsync','6pqTvCQ','exportXLSXByUnitId','extend','exportDOCXByUnitId','get','UNIVER_DOC','importDOCXToSnapshotAsync','@univerjs-pro/exchange-client','UNIVER_SHEET','importXLSXToSnapshotAsync','UNIVER_SLIDE','1951963dZQFxj','3123hyaOXf','UNIVER_UNKNOWN','UNRECOGNIZED','UNIVER_PROJECT','10350949iPIxZa','_injector','4659EuQxsd','1364kbKbLf','@univerjs/core/facade','importXLSXToSnapshot','importXLSXToUnitIdAsync','IExchangeService','exportDOCXByUnitIdAsync','exportXLSXBySnapshotAsync','importDOCXToSnapshot','The\x20exchange\x20service\x20is\x20not\x20available','12108464rdFvHJ','exportXLSXBySnapshot','2396194HupbIP','importXLSXToUnitId','174110WWtxkm','exportXLSXByUnitIdAsync'];_0xa501=function(){return _0x7c7e60;};return _0xa501();}(function(_0x30f923,_0x38d87f){const _0x5227f9=_0x568b,_0x105baf=_0x30f923();while(!![]){try{const _0x14c034=parseInt(_0x5227f9(0xa5))/0x1+parseInt(_0x5227f9(0x92))/0x2+-parseInt(_0x5227f9(0xac))/0x3*(-parseInt(_0x5227f9(0xad))/0x4)+parseInt(_0x5227f9(0x96))/0x5+-parseInt(_0x5227f9(0x9a))/0x6*(-parseInt(_0x5227f9(0xaa))/0x7)+parseInt(_0x5227f9(0x90))/0x8+parseInt(_0x5227f9(0xa6))/0x9*(-parseInt(_0x5227f9(0x94))/0xa);if(_0x14c034===_0x38d87f)break;else _0x105baf['push'](_0x105baf['shift']());}catch(_0x13bb6a){_0x105baf['push'](_0x105baf['shift']());}}}(_0xa501,0xf31e4));const r=require(_0x11e0a9(0xa1)),o=require(_0x11e0a9(0xae));var i=(_0x5a12ac=>(_0x5a12ac[_0x5a12ac[_0x11e0a9(0xa7)]=0x0]=_0x11e0a9(0xa7),_0x5a12ac[_0x5a12ac[_0x11e0a9(0x9f)]=0x1]='UNIVER_DOC',_0x5a12ac[_0x5a12ac[_0x11e0a9(0xa2)]=0x2]=_0x11e0a9(0xa2),_0x5a12ac[_0x5a12ac[_0x11e0a9(0xa4)]=0x3]=_0x11e0a9(0xa4),_0x5a12ac[_0x5a12ac[_0x11e0a9(0xa9)]=0x4]=_0x11e0a9(0xa9),_0x5a12ac[_0x5a12ac['UNRECOGNIZED']=-0x1]=_0x11e0a9(0xa8),_0x5a12ac))(i||{});function _0x568b(_0x5f4ee3,_0x30b489){const _0xa5013f=_0xa501();return _0x568b=function(_0x568b28,_0x589979){_0x568b28=_0x568b28-0x89;let _0x194454=_0xa5013f[_0x568b28];return _0x194454;},_0x568b(_0x5f4ee3,_0x30b489);}class c extends o['FUniver']{async[_0x11e0a9(0x93)](_0x512ee8){const _0x15b246=_0x11e0a9;return this[_0x15b246(0x8a)](_0x512ee8);}async[_0x11e0a9(0x8a)](_0x5b068f){const _0x5f5257=_0x11e0a9,_0x499a83=this[_0x5f5257(0xab)][_0x5f5257(0x9e)](r[_0x5f5257(0x8b)]);if(!_0x499a83)throw new Error(_0x5f5257(0x8f));return _0x499a83['importFileToUnitId'](_0x5b068f,i[_0x5f5257(0xa2)]);}async[_0x11e0a9(0x89)](_0x13a8aa){const _0x357e78=_0x11e0a9;return this[_0x357e78(0xa3)](_0x13a8aa);}async['importXLSXToSnapshotAsync'](_0x33a5b3){const _0x240136=_0x11e0a9,_0x27f403=this[_0x240136(0xab)][_0x240136(0x9e)](r[_0x240136(0x8b)]);if(!_0x27f403)throw new Error(_0x240136(0x8f));return _0x27f403[_0x240136(0x89)](_0x33a5b3);}async[_0x11e0a9(0x9b)](_0x3fd839){const _0x4249e1=_0x11e0a9;return this[_0x4249e1(0x95)](_0x3fd839);}async['exportXLSXByUnitIdAsync'](_0x2ac601){const _0x72f825=_0x11e0a9,_0x141ac5=this[_0x72f825(0xab)][_0x72f825(0x9e)](r[_0x72f825(0x8b)]);if(!_0x141ac5)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x141ac5[_0x72f825(0x9b)](_0x2ac601);}async[_0x11e0a9(0x91)](_0x6efba8){const _0x4761d6=_0x11e0a9;return this[_0x4761d6(0x8d)](_0x6efba8);}async[_0x11e0a9(0x8d)](_0x108318){const _0x35d1dc=_0x11e0a9,_0x25e3f5=this['_injector'][_0x35d1dc(0x9e)](r[_0x35d1dc(0x8b)]);if(!_0x25e3f5)throw new Error(_0x35d1dc(0x8f));return _0x25e3f5[_0x35d1dc(0x91)](_0x108318);}async['importDOCXToUnitId'](_0xa19253){const _0x78cdb4=_0x11e0a9;return this[_0x78cdb4(0x99)](_0xa19253);}async[_0x11e0a9(0x99)](_0x3acbfe){const _0x15860e=_0x11e0a9,_0x4084fe=this[_0x15860e(0xab)][_0x15860e(0x9e)](r[_0x15860e(0x8b)]);if(!_0x4084fe)throw new Error(_0x15860e(0x8f));return _0x4084fe['importFileToUnitId'](_0x3acbfe,i[_0x15860e(0x9f)]);}async['importDOCXToSnapshot'](_0x2ebc9f){const _0x2b502d=_0x11e0a9;return this[_0x2b502d(0xa0)](_0x2ebc9f);}async[_0x11e0a9(0xa0)](_0x570968){const _0x439a5e=_0x11e0a9,_0x25b3f9=this[_0x439a5e(0xab)][_0x439a5e(0x9e)](r[_0x439a5e(0x8b)]);if(!_0x25b3f9)throw new Error(_0x439a5e(0x8f));return _0x25b3f9[_0x439a5e(0x8e)](_0x570968);}async['exportDOCXBySnapshotAsync'](_0x242ab5){const _0x5b542f=_0x11e0a9,_0x3bcc85=this[_0x5b542f(0xab)]['get'](r['IExchangeService']);if(!_0x3bcc85)throw new Error(_0x5b542f(0x8f));return _0x3bcc85[_0x5b542f(0x97)](_0x242ab5);}async[_0x11e0a9(0x8c)](_0x76cb46){const _0x2e80e4=_0x11e0a9,_0x4ef70a=this[_0x2e80e4(0xab)][_0x2e80e4(0x9e)](r[_0x2e80e4(0x8b)]);if(!_0x4ef70a)throw new Error(_0x2e80e4(0x8f));return _0x4ef70a[_0x2e80e4(0x9d)](_0x76cb46);}}o[_0x11e0a9(0x98)][_0x11e0a9(0x9c)](c);