@univerjs-pro/exchange-client 0.6.7-experimental.20250326-6499c07 → 0.6.7-nightly.202503261607

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 _0x5449(_0x302297,_0x58b04d){const _0x335857=_0x3358();return _0x5449=function(_0x544927,_0x5a7342){_0x544927=_0x544927-0x15a;let _0x1634f6=_0x335857[_0x544927];return _0x1634f6;},_0x5449(_0x302297,_0x58b04d);}const _0x42e068=_0x5449;(function(_0x46e594,_0x33974a){const _0xa3764=_0x5449,_0x487591=_0x46e594();while(!![]){try{const _0x251d69=parseInt(_0xa3764(0x16f))/0x1+parseInt(_0xa3764(0x169))/0x2*(parseInt(_0xa3764(0x179))/0x3)+-parseInt(_0xa3764(0x164))/0x4+parseInt(_0xa3764(0x176))/0x5+-parseInt(_0xa3764(0x15c))/0x6+parseInt(_0xa3764(0x168))/0x7*(parseInt(_0xa3764(0x167))/0x8)+-parseInt(_0xa3764(0x165))/0x9*(parseInt(_0xa3764(0x16c))/0xa);if(_0x251d69===_0x33974a)break;else _0x487591['push'](_0x487591['shift']());}catch(_0x83ff04){_0x487591['push'](_0x487591['shift']());}}}(_0x3358,0x3b817));const r=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core/facade');var o=(_0x3b5112=>(_0x3b5112[_0x3b5112[_0x42e068(0x15f)]=0x0]=_0x42e068(0x15f),_0x3b5112[_0x3b5112[_0x42e068(0x175)]=0x1]='UNIVER_DOC',_0x3b5112[_0x3b5112[_0x42e068(0x160)]=0x2]=_0x42e068(0x160),_0x3b5112[_0x3b5112[_0x42e068(0x173)]=0x3]=_0x42e068(0x173),_0x3b5112[_0x3b5112['UNIVER_PROJECT']=0x4]='UNIVER_PROJECT',_0x3b5112[_0x3b5112['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x3b5112))(o||{});class c extends i[_0x42e068(0x15b)]{async[_0x42e068(0x16d)](_0x53be15){const _0x1f6c0b=_0x42e068;return this[_0x1f6c0b(0x15d)](_0x53be15);}async[_0x42e068(0x15d)](_0x2809b5){const _0x32b741=_0x42e068,_0x36e35f=this[_0x32b741(0x162)][_0x32b741(0x177)](r[_0x32b741(0x161)]);if(!_0x36e35f)throw new Error(_0x32b741(0x16a));return _0x36e35f[_0x32b741(0x166)](_0x2809b5,o[_0x32b741(0x160)]);}async[_0x42e068(0x163)](_0x47ae89){const _0x327e7f=_0x42e068;return this[_0x327e7f(0x15a)](_0x47ae89);}async[_0x42e068(0x15a)](_0x3b59f6){const _0x52c939=_0x42e068,_0x274fd2=this[_0x52c939(0x162)][_0x52c939(0x177)](r['IExchangeService']);if(!_0x274fd2)throw new Error(_0x52c939(0x16a));return _0x274fd2[_0x52c939(0x163)](_0x3b59f6);}async[_0x42e068(0x174)](_0x36d097){const _0x2e8f9b=_0x42e068;return this[_0x2e8f9b(0x178)](_0x36d097);}async['exportXLSXByUnitIdAsync'](_0xff3493){const _0x40dd28=_0x42e068,_0x5d6d7b=this[_0x40dd28(0x162)]['get'](r[_0x40dd28(0x161)]);if(!_0x5d6d7b)throw new Error(_0x40dd28(0x16a));return _0x5d6d7b[_0x40dd28(0x174)](_0xff3493);}async['exportXLSXBySnapshot'](_0x3e29d7){const _0x192fc6=_0x42e068;return this[_0x192fc6(0x16e)](_0x3e29d7);}async['exportXLSXBySnapshotAsync'](_0x47fb5e){const _0x56a22c=_0x42e068,_0x18bc9c=this[_0x56a22c(0x162)]['get'](r['IExchangeService']);if(!_0x18bc9c)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x18bc9c['exportXLSXBySnapshot'](_0x47fb5e);}async[_0x42e068(0x15e)](_0x185ba8){return this['importDOCXToUnitIdAsync'](_0x185ba8);}async[_0x42e068(0x172)](_0xa7b736){const _0x24724b=_0x42e068,_0x35dc11=this[_0x24724b(0x162)][_0x24724b(0x177)](r[_0x24724b(0x161)]);if(!_0x35dc11)throw new Error(_0x24724b(0x16a));return _0x35dc11[_0x24724b(0x166)](_0xa7b736,o[_0x24724b(0x175)]);}async[_0x42e068(0x171)](_0x987cb){return this['importDOCXToSnapshotAsync'](_0x987cb);}async[_0x42e068(0x16b)](_0x1405c1){const _0x4696a5=_0x42e068,_0x33363c=this[_0x4696a5(0x162)][_0x4696a5(0x177)](r[_0x4696a5(0x161)]);if(!_0x33363c)throw new Error(_0x4696a5(0x16a));return _0x33363c[_0x4696a5(0x171)](_0x1405c1);}}i[_0x42e068(0x15b)][_0x42e068(0x170)](c);function _0x3358(){const _0x57b541=['16628WKXbjP','The\x20exchange\x20service\x20is\x20not\x20available','importDOCXToSnapshotAsync','3189820uoHEpH','importXLSXToUnitId','exportXLSXBySnapshotAsync','147951bxCgFF','extend','importDOCXToSnapshot','importDOCXToUnitIdAsync','UNIVER_SLIDE','exportXLSXByUnitId','UNIVER_DOC','1147370bJKZJH','get','exportXLSXByUnitIdAsync','39EdRBcT','importXLSXToSnapshotAsync','FUniver','1163844PNNMxx','importXLSXToUnitIdAsync','importDOCXToUnitId','UNIVER_UNKNOWN','UNIVER_SHEET','IExchangeService','_injector','importXLSXToSnapshot','742944DgAHYT','9irUCuc','importFileToUnitId','40lCTORe','639688aLewIc'];_0x3358=function(){return _0x57b541;};return _0x3358();}
1
+ 'use strict';const _0x318d87=_0xf45a;function _0x2a6a(){const _0x1ae259=['importDOCXToSnapshot','importDOCXToUnitId','12wmksmW','UNIVER_UNKNOWN','exportXLSXByUnitIdAsync','importXLSXToUnitId','FUniver','9701703vjalby','729598IbaCUV','exportXLSXBySnapshot','UNRECOGNIZED','importDOCXToSnapshotAsync','@univerjs-pro/exchange-client','_injector','The\x20exchange\x20service\x20is\x20not\x20available','importXLSXToSnapshotAsync','113932WfLDOC','UNIVER_SLIDE','importXLSXToSnapshot','importFileToUnitId','UNIVER_DOC','709104ccKHCU','UNIVER_PROJECT','12NIHZeM','importXLSXToUnitIdAsync','get','7138320Fptnpe','4912405aAHCCJ','32GumGUo','4idrOtq','@univerjs/core/facade','exportXLSXByUnitId','IExchangeService','2670597fiAnJn','importDOCXToUnitIdAsync'];_0x2a6a=function(){return _0x1ae259;};return _0x2a6a();}(function(_0x160781,_0x3a448e){const _0x1270d6=_0xf45a,_0x591c57=_0x160781();while(!![]){try{const _0x4c8c8b=parseInt(_0x1270d6(0x20e))/0x1+-parseInt(_0x1270d6(0x201))/0x2*(-parseInt(_0x1270d6(0x1ed))/0x3)+parseInt(_0x1270d6(0x1f3))/0x4*(-parseInt(_0x1270d6(0x1f1))/0x5)+parseInt(_0x1270d6(0x1fb))/0x6*(-parseInt(_0x1270d6(0x209))/0x7)+-parseInt(_0x1270d6(0x1f2))/0x8*(-parseInt(_0x1270d6(0x1f7))/0x9)+-parseInt(_0x1270d6(0x1f0))/0xa+-parseInt(_0x1270d6(0x200))/0xb;if(_0x4c8c8b===_0x3a448e)break;else _0x591c57['push'](_0x591c57['shift']());}catch(_0x18e301){_0x591c57['push'](_0x591c57['shift']());}}}(_0x2a6a,0xb5bca));function _0xf45a(_0x50408d,_0x381704){const _0x2a6ab4=_0x2a6a();return _0xf45a=function(_0xf45aba,_0x318504){_0xf45aba=_0xf45aba-0x1ec;let _0x261175=_0x2a6ab4[_0xf45aba];return _0x261175;},_0xf45a(_0x50408d,_0x381704);}const r=require(_0x318d87(0x205)),i=require(_0x318d87(0x1f4));var o=(_0x4e51f4=>(_0x4e51f4[_0x4e51f4['UNIVER_UNKNOWN']=0x0]=_0x318d87(0x1fc),_0x4e51f4[_0x4e51f4[_0x318d87(0x20d)]=0x1]=_0x318d87(0x20d),_0x4e51f4[_0x4e51f4['UNIVER_SHEET']=0x2]='UNIVER_SHEET',_0x4e51f4[_0x4e51f4[_0x318d87(0x20a)]=0x3]=_0x318d87(0x20a),_0x4e51f4[_0x4e51f4['UNIVER_PROJECT']=0x4]=_0x318d87(0x1ec),_0x4e51f4[_0x4e51f4[_0x318d87(0x203)]=-0x1]='UNRECOGNIZED',_0x4e51f4))(o||{});class c extends i[_0x318d87(0x1ff)]{async[_0x318d87(0x1fe)](_0x1dd636){const _0x50aba4=_0x318d87;return this[_0x50aba4(0x1ee)](_0x1dd636);}async[_0x318d87(0x1ee)](_0x52c166){const _0x5d8b0c=_0x318d87,_0x1f3ba2=this[_0x5d8b0c(0x206)]['get'](r['IExchangeService']);if(!_0x1f3ba2)throw new Error(_0x5d8b0c(0x207));return _0x1f3ba2[_0x5d8b0c(0x20c)](_0x52c166,o['UNIVER_SHEET']);}async['importXLSXToSnapshot'](_0x276475){const _0x2e0865=_0x318d87;return this[_0x2e0865(0x208)](_0x276475);}async[_0x318d87(0x208)](_0x425eb9){const _0x4027d3=_0x318d87,_0x582068=this[_0x4027d3(0x206)][_0x4027d3(0x1ef)](r['IExchangeService']);if(!_0x582068)throw new Error(_0x4027d3(0x207));return _0x582068[_0x4027d3(0x20b)](_0x425eb9);}async[_0x318d87(0x1f5)](_0x23a49e){const _0xf7de21=_0x318d87;return this[_0xf7de21(0x1fd)](_0x23a49e);}async[_0x318d87(0x1fd)](_0x4c6f53){const _0x591507=_0x318d87,_0xc2fea3=this[_0x591507(0x206)][_0x591507(0x1ef)](r[_0x591507(0x1f6)]);if(!_0xc2fea3)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0xc2fea3['exportXLSXByUnitId'](_0x4c6f53);}async[_0x318d87(0x202)](_0x5dab04){return this['exportXLSXBySnapshotAsync'](_0x5dab04);}async['exportXLSXBySnapshotAsync'](_0x641348){const _0x40a47a=_0x318d87,_0x47b622=this[_0x40a47a(0x206)]['get'](r[_0x40a47a(0x1f6)]);if(!_0x47b622)throw new Error(_0x40a47a(0x207));return _0x47b622[_0x40a47a(0x202)](_0x641348);}async[_0x318d87(0x1fa)](_0x460c8f){const _0x330e0d=_0x318d87;return this[_0x330e0d(0x1f8)](_0x460c8f);}async[_0x318d87(0x1f8)](_0x448592){const _0x143452=_0x318d87,_0x3a8143=this[_0x143452(0x206)][_0x143452(0x1ef)](r[_0x143452(0x1f6)]);if(!_0x3a8143)throw new Error(_0x143452(0x207));return _0x3a8143[_0x143452(0x20c)](_0x448592,o[_0x143452(0x20d)]);}async['importDOCXToSnapshot'](_0x11f93b){const _0x61b4f0=_0x318d87;return this[_0x61b4f0(0x204)](_0x11f93b);}async[_0x318d87(0x204)](_0x2cff29){const _0x506edf=_0x318d87,_0x6b4f9=this[_0x506edf(0x206)][_0x506edf(0x1ef)](r[_0x506edf(0x1f6)]);if(!_0x6b4f9)throw new Error(_0x506edf(0x207));return _0x6b4f9[_0x506edf(0x1f9)](_0x2cff29);}}i[_0x318d87(0x1ff)]['extend'](c);