@univerjs-pro/exchange-client 0.9.1 → 0.9.2-nightly.202507111607

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 _0x21778c=_0x12b3;(function(_0x5038ed,_0x4b7254){const _0x1d07fa=_0x12b3,_0x5c37df=_0x5038ed();while(!![]){try{const _0x4ab6c5=-parseInt(_0x1d07fa(0xff))/0x1+-parseInt(_0x1d07fa(0xf1))/0x2+-parseInt(_0x1d07fa(0x106))/0x3+parseInt(_0x1d07fa(0x107))/0x4+-parseInt(_0x1d07fa(0xed))/0x5*(parseInt(_0x1d07fa(0x104))/0x6)+-parseInt(_0x1d07fa(0xf6))/0x7+-parseInt(_0x1d07fa(0x103))/0x8*(-parseInt(_0x1d07fa(0xea))/0x9);if(_0x4ab6c5===_0x4b7254)break;else _0x5c37df['push'](_0x5c37df['shift']());}catch(_0x1dccf1){_0x5c37df['push'](_0x5c37df['shift']());}}}(_0x492e,0x33bea));function _0x492e(){const _0x1c46e2=['UNRECOGNIZED','UNIVER_PROJECT','importFileToUnitId','UNIVER_DOC','11754XlctVU','importDOCXToSnapshot','UNIVER_UNKNOWN','465voYUTl','FUniver','importXLSXToSnapshot','importXLSXToUnitIdAsync','732432dbgRsX','exportDOCXBySnapshotAsync','importDOCXToSnapshotAsync','exportXLSXBySnapshotAsync','importDOCXToUnitId','399385eqskiD','get','IExchangeService','extend','UNIVER_SHEET','importXLSXToSnapshotAsync','exportXLSXByUnitIdAsync','exportXLSXByUnitId','UNIVER_SLIDE','363170tkSpqH','exportDOCXBySnapshot','exportXLSXBySnapshot','_injector','7416EQNSSt','22278QBorAq','The\x20exchange\x20service\x20is\x20not\x20available','820359mkTXeY','1625948yVQIVi','importDOCXToUnitIdAsync'];_0x492e=function(){return _0x1c46e2;};return _0x492e();}const r=require('@univerjs-pro/exchange-client'),o=require('@univerjs/core/facade');var i=(_0x301559=>(_0x301559[_0x301559[_0x21778c(0xec)]=0x0]='UNIVER_UNKNOWN',_0x301559[_0x301559[_0x21778c(0xe9)]=0x1]=_0x21778c(0xe9),_0x301559[_0x301559[_0x21778c(0xfa)]=0x2]=_0x21778c(0xfa),_0x301559[_0x301559[_0x21778c(0xfe)]=0x3]='UNIVER_SLIDE',_0x301559[_0x301559['UNIVER_PROJECT']=0x4]=_0x21778c(0x10a),_0x301559[_0x301559[_0x21778c(0x109)]=-0x1]=_0x21778c(0x109),_0x301559))(i||{});function _0x12b3(_0x4045b1,_0x1fbc6f){const _0x492e3d=_0x492e();return _0x12b3=function(_0x12b31e,_0x59ce27){_0x12b31e=_0x12b31e-0xe9;let _0x59874f=_0x492e3d[_0x12b31e];return _0x59874f;},_0x12b3(_0x4045b1,_0x1fbc6f);}class c extends o['FUniver']{async['importXLSXToUnitId'](_0x273aef){return this['importXLSXToUnitIdAsync'](_0x273aef);}async[_0x21778c(0xf0)](_0x307a02){const _0x100ff2=_0x21778c,_0x2b5d31=this[_0x100ff2(0x102)][_0x100ff2(0xf7)](r[_0x100ff2(0xf8)]);if(!_0x2b5d31)throw new Error(_0x100ff2(0x105));return _0x2b5d31[_0x100ff2(0x10b)](_0x307a02,i['UNIVER_SHEET']);}async[_0x21778c(0xef)](_0x66a481){const _0x430596=_0x21778c;return this[_0x430596(0xfb)](_0x66a481);}async[_0x21778c(0xfb)](_0x5811f0){const _0x468f37=_0x21778c,_0x3c55e3=this[_0x468f37(0x102)][_0x468f37(0xf7)](r[_0x468f37(0xf8)]);if(!_0x3c55e3)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x3c55e3['importXLSXToSnapshot'](_0x5811f0);}async[_0x21778c(0xfd)](_0x341c26){const _0x5055be=_0x21778c;return this[_0x5055be(0xfc)](_0x341c26);}async[_0x21778c(0xfc)](_0xdf5a50){const _0x2bc0d0=_0x21778c,_0x5eb7ee=this['_injector'][_0x2bc0d0(0xf7)](r[_0x2bc0d0(0xf8)]);if(!_0x5eb7ee)throw new Error(_0x2bc0d0(0x105));return _0x5eb7ee[_0x2bc0d0(0xfd)](_0xdf5a50);}async[_0x21778c(0x101)](_0x37cb71){const _0x1507e3=_0x21778c;return this[_0x1507e3(0xf4)](_0x37cb71);}async['exportXLSXBySnapshotAsync'](_0x171e8b){const _0x200d43=_0x21778c,_0x1533fe=this[_0x200d43(0x102)][_0x200d43(0xf7)](r[_0x200d43(0xf8)]);if(!_0x1533fe)throw new Error(_0x200d43(0x105));return _0x1533fe['exportXLSXBySnapshot'](_0x171e8b);}async[_0x21778c(0xf5)](_0x167384){const _0x43af96=_0x21778c;return this[_0x43af96(0x108)](_0x167384);}async[_0x21778c(0x108)](_0x17be39){const _0x3e12d3=_0x21778c,_0x42fe80=this[_0x3e12d3(0x102)][_0x3e12d3(0xf7)](r[_0x3e12d3(0xf8)]);if(!_0x42fe80)throw new Error(_0x3e12d3(0x105));return _0x42fe80[_0x3e12d3(0x10b)](_0x17be39,i[_0x3e12d3(0xe9)]);}async[_0x21778c(0xeb)](_0x3015f8){const _0x3a4c83=_0x21778c;return this[_0x3a4c83(0xf3)](_0x3015f8);}async[_0x21778c(0xf3)](_0x313bb0){const _0x2bb11f=_0x21778c,_0x2a8211=this[_0x2bb11f(0x102)][_0x2bb11f(0xf7)](r['IExchangeService']);if(!_0x2a8211)throw new Error(_0x2bb11f(0x105));return _0x2a8211[_0x2bb11f(0xeb)](_0x313bb0);}async[_0x21778c(0xf2)](_0x35411f){const _0x5d0a24=_0x21778c,_0x48b7d6=this[_0x5d0a24(0x102)][_0x5d0a24(0xf7)](r[_0x5d0a24(0xf8)]);if(!_0x48b7d6)throw new Error(_0x5d0a24(0x105));return _0x48b7d6[_0x5d0a24(0x100)](_0x35411f);}async['exportDOCXByUnitIdAsync'](_0x4db40){const _0x217a69=_0x21778c,_0x597367=this[_0x217a69(0x102)][_0x217a69(0xf7)](r[_0x217a69(0xf8)]);if(!_0x597367)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x597367['exportDOCXByUnitId'](_0x4db40);}}o[_0x21778c(0xee)][_0x21778c(0xf9)](c);
1
+ 'use strict';const _0x4f7332=_0x1fa9;(function(_0x27d0db,_0x444bce){const _0x13a2d3=_0x1fa9,_0x383214=_0x27d0db();while(!![]){try{const _0x4a33ea=-parseInt(_0x13a2d3(0x16f))/0x1+-parseInt(_0x13a2d3(0x187))/0x2*(-parseInt(_0x13a2d3(0x166))/0x3)+parseInt(_0x13a2d3(0x176))/0x4+-parseInt(_0x13a2d3(0x168))/0x5*(parseInt(_0x13a2d3(0x173))/0x6)+-parseInt(_0x13a2d3(0x175))/0x7*(-parseInt(_0x13a2d3(0x178))/0x8)+parseInt(_0x13a2d3(0x16c))/0x9*(-parseInt(_0x13a2d3(0x17c))/0xa)+parseInt(_0x13a2d3(0x16a))/0xb;if(_0x4a33ea===_0x444bce)break;else _0x383214['push'](_0x383214['shift']());}catch(_0x790f4a){_0x383214['push'](_0x383214['shift']());}}}(_0x169a,0x1a6bc));function _0x169a(){const _0x32aaed=['The\x20exchange\x20service\x20is\x20not\x20available','25348JLrahd','UNIVER_PROJECT','UNIVER_SHEET','exportXLSXByUnitId','12RvOjNN','importDOCXToUnitId','65HMVlfk','exportDOCXByUnitId','2451328YJgrct','importXLSXToSnapshotAsync','1632087ktQviV','extend','FUniver','105023rcrADC','UNIVER_DOC','UNIVER_SLIDE','importDOCXToSnapshotAsync','600FNCIhq','_injector','285418TgFrPA','163176pYLbaW','exportXLSXBySnapshot','16QNxsNE','importDOCXToUnitIdAsync','exportXLSXByUnitIdAsync','importDOCXToSnapshot','10LiKgmQ','exportDOCXBySnapshot','importXLSXToSnapshot','get','exportDOCXBySnapshotAsync','IExchangeService','UNIVER_UNKNOWN','UNRECOGNIZED','importXLSXToUnitId','exportXLSXBySnapshotAsync'];_0x169a=function(){return _0x32aaed;};return _0x169a();}const r=require('@univerjs-pro/exchange-client'),o=require('@univerjs/core/facade');function _0x1fa9(_0x35b51f,_0x36fedf){const _0x169a3e=_0x169a();return _0x1fa9=function(_0x1fa977,_0x5df5c7){_0x1fa977=_0x1fa977-0x165;let _0xe069ec=_0x169a3e[_0x1fa977];return _0xe069ec;},_0x1fa9(_0x35b51f,_0x36fedf);}var i=(_0x19482a=>(_0x19482a[_0x19482a[_0x4f7332(0x182)]=0x0]=_0x4f7332(0x182),_0x19482a[_0x19482a[_0x4f7332(0x170)]=0x1]='UNIVER_DOC',_0x19482a[_0x19482a[_0x4f7332(0x189)]=0x2]=_0x4f7332(0x189),_0x19482a[_0x19482a['UNIVER_SLIDE']=0x3]=_0x4f7332(0x171),_0x19482a[_0x19482a['UNIVER_PROJECT']=0x4]=_0x4f7332(0x188),_0x19482a[_0x19482a[_0x4f7332(0x183)]=-0x1]='UNRECOGNIZED',_0x19482a))(i||{});class c extends o['FUniver']{async[_0x4f7332(0x184)](_0x44b4fa){return this['importXLSXToUnitIdAsync'](_0x44b4fa);}async['importXLSXToUnitIdAsync'](_0x12a7b7){const _0x2e87f5=_0x4f7332,_0x58d0b1=this[_0x2e87f5(0x174)]['get'](r[_0x2e87f5(0x181)]);if(!_0x58d0b1)throw new Error(_0x2e87f5(0x186));return _0x58d0b1['importFileToUnitId'](_0x12a7b7,i['UNIVER_SHEET']);}async['importXLSXToSnapshot'](_0x26b4cd){const _0x1f9e4c=_0x4f7332;return this[_0x1f9e4c(0x16b)](_0x26b4cd);}async[_0x4f7332(0x16b)](_0x134507){const _0xc24a8a=_0x4f7332,_0x5061d9=this[_0xc24a8a(0x174)][_0xc24a8a(0x17f)](r[_0xc24a8a(0x181)]);if(!_0x5061d9)throw new Error(_0xc24a8a(0x186));return _0x5061d9[_0xc24a8a(0x17e)](_0x134507);}async[_0x4f7332(0x165)](_0x43e30e){return this['exportXLSXByUnitIdAsync'](_0x43e30e);}async[_0x4f7332(0x17a)](_0x51a9f3){const _0x452c9e=_0x4f7332,_0x2299e3=this[_0x452c9e(0x174)]['get'](r[_0x452c9e(0x181)]);if(!_0x2299e3)throw new Error(_0x452c9e(0x186));return _0x2299e3['exportXLSXByUnitId'](_0x51a9f3);}async[_0x4f7332(0x177)](_0x33289a){const _0x4f4749=_0x4f7332;return this[_0x4f4749(0x185)](_0x33289a);}async[_0x4f7332(0x185)](_0x50ff92){const _0x54554a=_0x4f7332,_0x580c1d=this[_0x54554a(0x174)]['get'](r[_0x54554a(0x181)]);if(!_0x580c1d)throw new Error(_0x54554a(0x186));return _0x580c1d[_0x54554a(0x177)](_0x50ff92);}async[_0x4f7332(0x167)](_0x54e2e4){const _0x86a058=_0x4f7332;return this[_0x86a058(0x179)](_0x54e2e4);}async[_0x4f7332(0x179)](_0x42586b){const _0x55f70a=_0x4f7332,_0x2a33c5=this['_injector'][_0x55f70a(0x17f)](r[_0x55f70a(0x181)]);if(!_0x2a33c5)throw new Error(_0x55f70a(0x186));return _0x2a33c5['importFileToUnitId'](_0x42586b,i[_0x55f70a(0x170)]);}async['importDOCXToSnapshot'](_0x38e1a5){const _0x24cb3e=_0x4f7332;return this[_0x24cb3e(0x172)](_0x38e1a5);}async[_0x4f7332(0x172)](_0x14bec2){const _0x2a7f5f=_0x4f7332,_0x43eb2c=this[_0x2a7f5f(0x174)][_0x2a7f5f(0x17f)](r[_0x2a7f5f(0x181)]);if(!_0x43eb2c)throw new Error(_0x2a7f5f(0x186));return _0x43eb2c[_0x2a7f5f(0x17b)](_0x14bec2);}async[_0x4f7332(0x180)](_0x5c7325){const _0x38cc9d=_0x4f7332,_0x12c8cf=this['_injector']['get'](r['IExchangeService']);if(!_0x12c8cf)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x12c8cf[_0x38cc9d(0x17d)](_0x5c7325);}async['exportDOCXByUnitIdAsync'](_0x329e11){const _0x38b2ae=_0x4f7332,_0x300ede=this[_0x38b2ae(0x174)][_0x38b2ae(0x17f)](r[_0x38b2ae(0x181)]);if(!_0x300ede)throw new Error(_0x38b2ae(0x186));return _0x300ede[_0x38b2ae(0x169)](_0x329e11);}}o[_0x4f7332(0x16e)][_0x4f7332(0x16d)](c);