@univerjs-pro/exchange-client 0.6.10-experimental.20250427-89a0949 → 0.6.10-experimental.20250427-825ae55

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 _0x5f4c8d=_0x16a2;function _0x16a2(_0x3cf966,_0x5dd936){const _0x5c4866=_0x5c48();return _0x16a2=function(_0x16a21c,_0x4f8102){_0x16a21c=_0x16a21c-0x108;let _0x49ab0e=_0x5c4866[_0x16a21c];return _0x49ab0e;},_0x16a2(_0x3cf966,_0x5dd936);}(function(_0x460602,_0x585e0f){const _0x4b283f=_0x16a2,_0x3dfdfc=_0x460602();while(!![]){try{const _0x3e74b5=parseInt(_0x4b283f(0x11c))/0x1+parseInt(_0x4b283f(0x10e))/0x2+parseInt(_0x4b283f(0x10c))/0x3+-parseInt(_0x4b283f(0x125))/0x4*(parseInt(_0x4b283f(0x11d))/0x5)+parseInt(_0x4b283f(0x119))/0x6+-parseInt(_0x4b283f(0x112))/0x7+-parseInt(_0x4b283f(0x11b))/0x8;if(_0x3e74b5===_0x585e0f)break;else _0x3dfdfc['push'](_0x3dfdfc['shift']());}catch(_0x5ee481){_0x3dfdfc['push'](_0x3dfdfc['shift']());}}}(_0x5c48,0xecde0));const r=require(_0x5f4c8d(0x10b)),i=require('@univerjs/core/facade');var o=(_0x3b55ed=>(_0x3b55ed[_0x3b55ed['UNIVER_UNKNOWN']=0x0]='UNIVER_UNKNOWN',_0x3b55ed[_0x3b55ed[_0x5f4c8d(0x10f)]=0x1]=_0x5f4c8d(0x10f),_0x3b55ed[_0x3b55ed[_0x5f4c8d(0x126)]=0x2]=_0x5f4c8d(0x126),_0x3b55ed[_0x3b55ed[_0x5f4c8d(0x127)]=0x3]='UNIVER_SLIDE',_0x3b55ed[_0x3b55ed[_0x5f4c8d(0x123)]=0x4]=_0x5f4c8d(0x123),_0x3b55ed[_0x3b55ed[_0x5f4c8d(0x117)]=-0x1]='UNRECOGNIZED',_0x3b55ed))(o||{});class c extends i['FUniver']{async[_0x5f4c8d(0x124)](_0x182d0f){const _0x3d8bc2=_0x5f4c8d;return this[_0x3d8bc2(0x122)](_0x182d0f);}async[_0x5f4c8d(0x122)](_0x80f3d7){const _0x2f283a=_0x5f4c8d,_0x184a4c=this[_0x2f283a(0x116)][_0x2f283a(0x10a)](r[_0x2f283a(0x120)]);if(!_0x184a4c)throw new Error(_0x2f283a(0x118));return _0x184a4c['importFileToUnitId'](_0x80f3d7,o[_0x2f283a(0x126)]);}async[_0x5f4c8d(0x111)](_0x20af58){const _0x51b3e0=_0x5f4c8d;return this[_0x51b3e0(0x114)](_0x20af58);}async[_0x5f4c8d(0x114)](_0x226849){const _0x1514b7=_0x5f4c8d,_0x187606=this[_0x1514b7(0x116)][_0x1514b7(0x10a)](r[_0x1514b7(0x120)]);if(!_0x187606)throw new Error(_0x1514b7(0x118));return _0x187606[_0x1514b7(0x111)](_0x226849);}async[_0x5f4c8d(0x11a)](_0x5753c4){return this['exportXLSXByUnitIdAsync'](_0x5753c4);}async[_0x5f4c8d(0x113)](_0x2ccf78){const _0x5dd9c7=_0x5f4c8d,_0x3b1cee=this[_0x5dd9c7(0x116)][_0x5dd9c7(0x10a)](r[_0x5dd9c7(0x120)]);if(!_0x3b1cee)throw new Error(_0x5dd9c7(0x118));return _0x3b1cee[_0x5dd9c7(0x11a)](_0x2ccf78);}async['exportXLSXBySnapshot'](_0x448658){const _0x26c04e=_0x5f4c8d;return this[_0x26c04e(0x121)](_0x448658);}async[_0x5f4c8d(0x121)](_0x1acf32){const _0x2f9af0=_0x5f4c8d,_0x4b2a0b=this[_0x2f9af0(0x116)][_0x2f9af0(0x10a)](r[_0x2f9af0(0x120)]);if(!_0x4b2a0b)throw new Error(_0x2f9af0(0x118));return _0x4b2a0b[_0x2f9af0(0x10d)](_0x1acf32);}async[_0x5f4c8d(0x128)](_0x253fed){const _0x5f0507=_0x5f4c8d;return this[_0x5f0507(0x115)](_0x253fed);}async[_0x5f4c8d(0x115)](_0x28572b){const _0x520a7c=_0x5f4c8d,_0x2ace69=this[_0x520a7c(0x116)]['get'](r[_0x520a7c(0x120)]);if(!_0x2ace69)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x2ace69[_0x520a7c(0x108)](_0x28572b,o[_0x520a7c(0x10f)]);}async[_0x5f4c8d(0x11f)](_0x36ef61){const _0x439b85=_0x5f4c8d;return this[_0x439b85(0x11e)](_0x36ef61);}async[_0x5f4c8d(0x11e)](_0x125b0b){const _0xb2e8d1=_0x5f4c8d,_0x699a24=this['_injector'][_0xb2e8d1(0x10a)](r[_0xb2e8d1(0x120)]);if(!_0x699a24)throw new Error(_0xb2e8d1(0x118));return _0x699a24['importDOCXToSnapshot'](_0x125b0b);}}function _0x5c48(){const _0x3b65d4=['_injector','UNRECOGNIZED','The\x20exchange\x20service\x20is\x20not\x20available','3469668kvQsUK','exportXLSXByUnitId','10531656AxFoZn','124542BHfMQL','5LZHYRG','importDOCXToSnapshotAsync','importDOCXToSnapshot','IExchangeService','exportXLSXBySnapshotAsync','importXLSXToUnitIdAsync','UNIVER_PROJECT','importXLSXToUnitId','130912KindqH','UNIVER_SHEET','UNIVER_SLIDE','importDOCXToUnitId','importFileToUnitId','FUniver','get','@univerjs-pro/exchange-client','3942396wkRdlP','exportXLSXBySnapshot','1243660ROBHVH','UNIVER_DOC','extend','importXLSXToSnapshot','2235723aunQUi','exportXLSXByUnitIdAsync','importXLSXToSnapshotAsync','importDOCXToUnitIdAsync'];_0x5c48=function(){return _0x3b65d4;};return _0x5c48();}i[_0x5f4c8d(0x109)][_0x5f4c8d(0x110)](c);
1
+ 'use strict';const _0x3447cf=_0x253d;(function(_0x5919e7,_0x4b2a48){const _0x42196a=_0x253d,_0x227162=_0x5919e7();while(!![]){try{const _0x20a4aa=-parseInt(_0x42196a(0x8e))/0x1+-parseInt(_0x42196a(0x95))/0x2+-parseInt(_0x42196a(0x9d))/0x3+-parseInt(_0x42196a(0x85))/0x4+-parseInt(_0x42196a(0x93))/0x5+parseInt(_0x42196a(0x87))/0x6*(-parseInt(_0x42196a(0x8d))/0x7)+parseInt(_0x42196a(0x90))/0x8;if(_0x20a4aa===_0x4b2a48)break;else _0x227162['push'](_0x227162['shift']());}catch(_0x349042){_0x227162['push'](_0x227162['shift']());}}}(_0x2ccf,0x6eefd));const r=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core/facade');var o=(_0x229609=>(_0x229609[_0x229609[_0x3447cf(0x99)]=0x0]=_0x3447cf(0x99),_0x229609[_0x229609[_0x3447cf(0x7f)]=0x1]='UNIVER_DOC',_0x229609[_0x229609[_0x3447cf(0x94)]=0x2]='UNIVER_SHEET',_0x229609[_0x229609[_0x3447cf(0x8a)]=0x3]=_0x3447cf(0x8a),_0x229609[_0x229609[_0x3447cf(0x8c)]=0x4]='UNIVER_PROJECT',_0x229609[_0x229609['UNRECOGNIZED']=-0x1]=_0x3447cf(0x97),_0x229609))(o||{});function _0x2ccf(){const _0x280772=['UNRECOGNIZED','importXLSXToSnapshot','UNIVER_UNKNOWN','FUniver','importXLSXToUnitId','importDOCXToSnapshotAsync','2089056CQdOWz','The\x20exchange\x20service\x20is\x20not\x20available','UNIVER_DOC','_injector','extend','importXLSXToSnapshotAsync','importFileToUnitId','exportXLSXByUnitId','2999140PAjsHE','IExchangeService','6EjAeCK','importDOCXToUnitIdAsync','importDOCXToUnitId','UNIVER_SLIDE','get','UNIVER_PROJECT','1595097gufewW','416031cWIoBB','importDOCXToSnapshot','21535752DXESKP','exportXLSXBySnapshot','importXLSXToUnitIdAsync','89570oRxxAK','UNIVER_SHEET','259238cvgqUW','exportXLSXByUnitIdAsync'];_0x2ccf=function(){return _0x280772;};return _0x2ccf();}function _0x253d(_0x427090,_0x1ee889){const _0x2ccf5=_0x2ccf();return _0x253d=function(_0x253da4,_0x30bfdb){_0x253da4=_0x253da4-0x7f;let _0x50fcc7=_0x2ccf5[_0x253da4];return _0x50fcc7;},_0x253d(_0x427090,_0x1ee889);}class c extends i['FUniver']{async[_0x3447cf(0x9b)](_0xe84e0c){return this['importXLSXToUnitIdAsync'](_0xe84e0c);}async[_0x3447cf(0x92)](_0x15ca27){const _0xc34e0f=_0x3447cf,_0x34bcd7=this[_0xc34e0f(0x80)][_0xc34e0f(0x8b)](r[_0xc34e0f(0x86)]);if(!_0x34bcd7)throw new Error(_0xc34e0f(0x9e));return _0x34bcd7[_0xc34e0f(0x83)](_0x15ca27,o[_0xc34e0f(0x94)]);}async['importXLSXToSnapshot'](_0x4d4ccc){const _0x23794b=_0x3447cf;return this[_0x23794b(0x82)](_0x4d4ccc);}async[_0x3447cf(0x82)](_0x1ce082){const _0x42ec3e=_0x3447cf,_0x2ecd89=this[_0x42ec3e(0x80)]['get'](r[_0x42ec3e(0x86)]);if(!_0x2ecd89)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x2ecd89[_0x42ec3e(0x98)](_0x1ce082);}async[_0x3447cf(0x84)](_0x4ae47b){const _0x5cb221=_0x3447cf;return this[_0x5cb221(0x96)](_0x4ae47b);}async[_0x3447cf(0x96)](_0x2f9b37){const _0x37fb3f=_0x3447cf,_0x6cb80f=this[_0x37fb3f(0x80)][_0x37fb3f(0x8b)](r['IExchangeService']);if(!_0x6cb80f)throw new Error(_0x37fb3f(0x9e));return _0x6cb80f['exportXLSXByUnitId'](_0x2f9b37);}async[_0x3447cf(0x91)](_0x28b896){return this['exportXLSXBySnapshotAsync'](_0x28b896);}async['exportXLSXBySnapshotAsync'](_0x522ef6){const _0x1bbf81=_0x3447cf,_0x47f675=this[_0x1bbf81(0x80)][_0x1bbf81(0x8b)](r['IExchangeService']);if(!_0x47f675)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x47f675[_0x1bbf81(0x91)](_0x522ef6);}async[_0x3447cf(0x89)](_0x1f1412){const _0x20cd45=_0x3447cf;return this[_0x20cd45(0x88)](_0x1f1412);}async['importDOCXToUnitIdAsync'](_0x329391){const _0x45773f=_0x3447cf,_0x362037=this[_0x45773f(0x80)][_0x45773f(0x8b)](r[_0x45773f(0x86)]);if(!_0x362037)throw new Error(_0x45773f(0x9e));return _0x362037['importFileToUnitId'](_0x329391,o[_0x45773f(0x7f)]);}async[_0x3447cf(0x8f)](_0x5f3035){return this['importDOCXToSnapshotAsync'](_0x5f3035);}async[_0x3447cf(0x9c)](_0x5a8212){const _0x1dc4c3=_0x3447cf,_0x32f35b=this[_0x1dc4c3(0x80)][_0x1dc4c3(0x8b)](r[_0x1dc4c3(0x86)]);if(!_0x32f35b)throw new Error(_0x1dc4c3(0x9e));return _0x32f35b[_0x1dc4c3(0x8f)](_0x5a8212);}}i[_0x3447cf(0x9a)][_0x3447cf(0x81)](c);