@univerjs-pro/sheets-exchange-client 0.10.6 → 0.10.7-nightly.202509080357

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/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x4ef4a1=_0x502e;(function(_0x44a49f,_0x1ac69e){const _0xe61b45=_0x502e,_0x5bdd04=_0x44a49f();while(!![]){try{const _0x20360d=-parseInt(_0xe61b45(0x1fa))/0x1*(parseInt(_0xe61b45(0x1ce))/0x2)+parseInt(_0xe61b45(0x1e5))/0x3+-parseInt(_0xe61b45(0x1f9))/0x4*(parseInt(_0xe61b45(0x1d6))/0x5)+-parseInt(_0xe61b45(0x1eb))/0x6*(parseInt(_0xe61b45(0x1be))/0x7)+parseInt(_0xe61b45(0x1e8))/0x8*(-parseInt(_0xe61b45(0x1cf))/0x9)+-parseInt(_0xe61b45(0x1c0))/0xa+parseInt(_0xe61b45(0x1dc))/0xb;if(_0x20360d===_0x1ac69e)break;else _0x5bdd04['push'](_0x5bdd04['shift']());}catch(_0x17c6eb){_0x5bdd04['push'](_0x5bdd04['shift']());}}}(_0x4a6d,0x48516));Object['defineProperty'](exports,Symbol[_0x4ef4a1(0x1fe)],{'value':_0x4ef4a1(0x1d8)});function _0x502e(_0x426d23,_0x24b1f4){const _0x4a6d7d=_0x4a6d();return _0x502e=function(_0x502e5f,_0x4beeb0){_0x502e5f=_0x502e5f-0x1bc;let _0x55f326=_0x4a6d7d[_0x502e5f];return _0x55f326;},_0x502e(_0x426d23,_0x24b1f4);}const g=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),c=require('@univerjs/ui'),_=require('@univerjs/sheets'),I=require('@univerjs/sheets-ui'),l={'id':_0x4ef4a1(0x1ef),'type':i[_0x4ef4a1(0x1f8)][_0x4ef4a1(0x1cb)],'handler':async _0x2471b3=>{const _0x59051e=_0x4ef4a1,_0x373d09=_0x2471b3['get'](g['IExchangeOperateService']);return new URLSearchParams(location[_0x59051e(0x1f4)])['get']('unit')?_0x373d09[_0x59051e(0x1e1)]():_0x373d09['importXLSXToSnapshot'](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i['CommandType'][_0x4ef4a1(0x1cb)],'handler':async _0xfe4563=>{const _0x5e6994=_0x4ef4a1,_0x413bc9=_0xfe4563[_0x5e6994(0x1c2)](g[_0x5e6994(0x1db)]);return new URLSearchParams(location['search'])['get'](_0x5e6994(0x1df))?_0x413bc9[_0x5e6994(0x1c4)]():_0x413bc9[_0x5e6994(0x1c3)](),!0x0;}},v=_0x4ef4a1(0x1c5),h={},S=_0x4ef4a1(0x1d0);function x(_0x4c6468){const _0x27849a=_0x4ef4a1;return{'id':S,'type':c[_0x27849a(0x1cd)][_0x27849a(0x1f1)],'icon':_0x27849a(0x1bc),'tooltip':_0x27849a(0x1ec),'hidden$':c[_0x27849a(0x1e6)](_0x4c6468,i[_0x27849a(0x1c7)]['UNIVER_SHEET']),'disabled$':I['getCurrentRangeDisable$'](_0x4c6468,{'workbookTypes':[_[_0x27849a(0x1e0)]]})};}function P(){const _0x915e5d=_0x4ef4a1;return{'id':l['id'],'type':c[_0x915e5d(0x1cd)]['BUTTON'],'title':_0x915e5d(0x1d7),'icon':_0x915e5d(0x1e9)};}function _0x4a6d(){const _0x5c5744=['_initMenus','ExportIcon','symbol','CommandType','1487892nCEgnR','71tOUJLl','UNIVER_SHEET','_injector','Injector','toStringTag','DirectExportIcon','onReady','14ebASrP','merge','1104640KespwC','Disposable','get','exportXLSXBySnapshot','exportXLSXByUnitId','sheets-exchange-client.config','add','UniverInstanceType','onStarting','_initCommands','menu','OPERATION','OTHERS','MenuItemType','11878DcKnWD','2565Yhnfdc','sheets-exchange-client.operation.exchange','getOwnPropertyDescriptor','setConfig','exchange.download','ExportXLSXOperation','_menuManagerService','5QEAIJX','exchange.upload','Module','UniverSheetsExchangeClientPlugin','BUTTON','IExchangeOperateService','16224087pjnvgT','length','_configService','unit','WorkbookExportPermission','importXLSXToUnitId','ICommandService','UniverExchangeClientPlugin','pluginName','926310YCSieE','getMenuHiddenObservable','mergeMenu','12888mWlVxz','FolderIcon','Plugin','372696AxSmTU','exchange.file','IMenuManagerService','_commandService','exchange-client.operation.import-xlsx','registerCommand','SUBITEMS','_config','forEach','search'];_0x4a6d=function(){return _0x5c5744;};return _0x4a6d();}function C(){const _0x3ebe2e=_0x4ef4a1;return{'id':p['id'],'type':c['MenuItemType'][_0x3ebe2e(0x1da)],'title':_0x3ebe2e(0x1d3),'icon':_0x3ebe2e(0x1f6)};}const f={[c['RibbonStartGroup'][_0x4ef4a1(0x1cc)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x4ef4a1(0x1d1)],y=(_0x13e9a3,_0x5d0c9a,_0x528aff,_0x587bac)=>{const _0x152b85=_0x4ef4a1;for(var _0x4949d8=_0x587bac>0x1?void 0x0:_0x587bac?T(_0x5d0c9a,_0x528aff):_0x5d0c9a,_0x358d81=_0x13e9a3[_0x152b85(0x1dd)]-0x1,_0x427ac5;_0x358d81>=0x0;_0x358d81--)(_0x427ac5=_0x13e9a3[_0x358d81])&&(_0x4949d8=_0x427ac5(_0x4949d8)||_0x4949d8);return _0x4949d8;},m=(_0x25dfce,_0x5f238f)=>(_0x124004,_0x10423e)=>_0x5f238f(_0x124004,_0x10423e,_0x25dfce);let u=class extends i[_0x4ef4a1(0x1c1)]{constructor(_0x397ace,_0x402290){const _0x44f3d0=_0x4ef4a1;super(),this[_0x44f3d0(0x1ee)]=_0x397ace,this[_0x44f3d0(0x1d5)]=_0x402290,this[_0x44f3d0(0x1c9)](),this[_0x44f3d0(0x1f5)]();}[_0x4ef4a1(0x1c9)](){[l,p]['forEach'](_0x214b5e=>{const _0x3443fc=_0x502e;this['disposeWithMe'](this[_0x3443fc(0x1ee)][_0x3443fc(0x1f0)](_0x214b5e));});}[_0x4ef4a1(0x1f5)](){const _0x591a5a=_0x4ef4a1;this[_0x591a5a(0x1d5)][_0x591a5a(0x1e7)](f);}};u=y([m(0x0,i[_0x4ef4a1(0x1e2)]),m(0x1,c[_0x4ef4a1(0x1ed)])],u);var O=Object['defineProperty'],U=Object[_0x4ef4a1(0x1d1)],X=(_0x244adb,_0x49ee28,_0x3fbaf5)=>_0x49ee28 in _0x244adb?O(_0x244adb,_0x49ee28,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3fbaf5}):_0x244adb[_0x49ee28]=_0x3fbaf5,N=(_0x349373,_0x310c94,_0x18af0b,_0x94a617)=>{const _0x541149=_0x4ef4a1;for(var _0x428766=_0x94a617>0x1?void 0x0:_0x94a617?U(_0x310c94,_0x18af0b):_0x310c94,_0x5968c1=_0x349373[_0x541149(0x1dd)]-0x1,_0x59b631;_0x5968c1>=0x0;_0x5968c1--)(_0x59b631=_0x349373[_0x5968c1])&&(_0x428766=_0x59b631(_0x428766)||_0x428766);return _0x428766;},d=(_0x50a978,_0x707463)=>(_0x26e40c,_0x20ca02)=>_0x707463(_0x26e40c,_0x20ca02,_0x50a978),E=(_0x2f496c,_0x4d2ee2,_0x11e9d6)=>X(_0x2f496c,typeof _0x4d2ee2!=_0x4ef4a1(0x1f7)?_0x4d2ee2+'':_0x4d2ee2,_0x11e9d6);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports[_0x4ef4a1(0x1d9)]=class extends i[_0x4ef4a1(0x1ea)]{constructor(_0x2ed63f=h,_0x14ff96,_0xc2cd0b){const _0x39d6f7=_0x4ef4a1;super(),this[_0x39d6f7(0x1f2)]=_0x2ed63f,this[_0x39d6f7(0x1fc)]=_0x14ff96,this[_0x39d6f7(0x1de)]=_0xc2cd0b;const {menu:_0x114fa9,..._0x5729bd}=i[_0x39d6f7(0x1bf)]({},h,this[_0x39d6f7(0x1f2)]);_0x114fa9&&this['_configService'][_0x39d6f7(0x1d2)](_0x39d6f7(0x1ca),_0x114fa9,{'merge':!0x0}),this[_0x39d6f7(0x1de)][_0x39d6f7(0x1d2)](v,_0x5729bd);}[_0x4ef4a1(0x1c8)](){const _0x252153=_0x4ef4a1;[[u]][_0x252153(0x1f3)](_0x1e398e=>this[_0x252153(0x1fc)][_0x252153(0x1c6)](_0x1e398e));}[_0x4ef4a1(0x1bd)](){const _0x194213=_0x4ef4a1;this[_0x194213(0x1fc)]['get'](u);}},E(exports['UniverSheetsExchangeClientPlugin'],_0x4ef4a1(0x1e4),L),E(exports[_0x4ef4a1(0x1d9)],'type',i['UniverInstanceType'][_0x4ef4a1(0x1fb)]),exports[_0x4ef4a1(0x1d9)]=N([i['DependentOn'](g[_0x4ef4a1(0x1e3)]),d(0x1,i['Inject'](i[_0x4ef4a1(0x1fd)])),d(0x2,i['IConfigService'])],exports[_0x4ef4a1(0x1d9)]),exports[_0x4ef4a1(0x1d4)]=p,exports['ImportXLSXOperation']=l;
1
+ 'use strict';const _0x5de663=_0xa0a8;(function(_0x289055,_0x536480){const _0x3a9c9d=_0xa0a8,_0x7cfbc9=_0x289055();while(!![]){try{const _0x5d4f4b=parseInt(_0x3a9c9d(0x111))/0x1*(-parseInt(_0x3a9c9d(0x130))/0x2)+-parseInt(_0x3a9c9d(0x10f))/0x3*(parseInt(_0x3a9c9d(0x105))/0x4)+-parseInt(_0x3a9c9d(0x10a))/0x5*(parseInt(_0x3a9c9d(0x11a))/0x6)+parseInt(_0x3a9c9d(0x12a))/0x7+parseInt(_0x3a9c9d(0x134))/0x8*(-parseInt(_0x3a9c9d(0x115))/0x9)+-parseInt(_0x3a9c9d(0x137))/0xa*(-parseInt(_0x3a9c9d(0x114))/0xb)+-parseInt(_0x3a9c9d(0x126))/0xc*(-parseInt(_0x3a9c9d(0x120))/0xd);if(_0x5d4f4b===_0x536480)break;else _0x7cfbc9['push'](_0x7cfbc9['shift']());}catch(_0x126c7d){_0x7cfbc9['push'](_0x7cfbc9['shift']());}}}(_0x1277,0x8fdfa));Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'});const g=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),c=require('@univerjs/ui'),_=require('@univerjs/sheets'),I=require('@univerjs/sheets-ui'),l={'id':_0x5de663(0x139),'type':i[_0x5de663(0x12e)][_0x5de663(0x108)],'handler':async _0x1b99d8=>{const _0x209b82=_0x5de663,_0x448be7=_0x1b99d8[_0x209b82(0x109)](g[_0x209b82(0x116)]);return new URLSearchParams(location['search'])[_0x209b82(0x109)]('unit')?_0x448be7[_0x209b82(0x122)]():_0x448be7[_0x209b82(0x11b)](),!0x0;}},p={'id':_0x5de663(0x110),'type':i[_0x5de663(0x12e)][_0x5de663(0x108)],'handler':async _0x5a5e1e=>{const _0x3338fc=_0x5de663,_0x2f9fe0=_0x5a5e1e[_0x3338fc(0x109)](g[_0x3338fc(0x116)]);return new URLSearchParams(location['search'])[_0x3338fc(0x109)](_0x3338fc(0x132))?_0x2f9fe0['exportXLSXByUnitId']():_0x2f9fe0[_0x3338fc(0x138)](),!0x0;}},v=_0x5de663(0x121),h={},S='sheets-exchange-client.operation.exchange';function x(_0xe4d55d){const _0x28de20=_0x5de663;return{'id':S,'type':c[_0x28de20(0x104)][_0x28de20(0x112)],'icon':_0x28de20(0xfe),'tooltip':'exchange.file','hidden$':c[_0x28de20(0x12d)](_0xe4d55d,i[_0x28de20(0x102)][_0x28de20(0x10d)]),'disabled$':I[_0x28de20(0x113)](_0xe4d55d,{'workbookTypes':[_[_0x28de20(0x133)]]})};}function P(){const _0x5d19e3=_0x5de663;return{'id':l['id'],'type':c[_0x5d19e3(0x104)][_0x5d19e3(0x103)],'title':_0x5d19e3(0x100),'icon':'FolderIcon'};}function C(){const _0x1d4aa1=_0x5de663;return{'id':p['id'],'type':c[_0x1d4aa1(0x104)][_0x1d4aa1(0x103)],'title':_0x1d4aa1(0x107),'icon':_0x1d4aa1(0x127)};}function _0x1277(){const _0x13c838=['getOwnPropertyDescriptor','_config','_menuManagerService','24JWgCtU','importXLSXToSnapshot','length','setConfig','RibbonStartGroup','ExportXLSXOperation','22403004OVhoBf','sheets-exchange-client.config','importXLSXToUnitId','defineProperty','onStarting','UniverSheetsExchangeClientPlugin','24feBNKB','ExportIcon','add','Inject','2235058yciwgL','OTHERS','_initMenus','getMenuHiddenObservable','CommandType','IMenuManagerService','44094IpakQK','_commandService','unit','WorkbookExportPermission','6694864vqUAyX','ImportXLSXOperation','type','70jcQPlb','exportXLSXBySnapshot','exchange-client.operation.import-xlsx','DirectExportIcon','pluginName','exchange.upload','_injector','UniverInstanceType','BUTTON','MenuItemType','50244DiAkxC','IConfigService','exchange.download','OPERATION','get','1030840BpXTpX','disposeWithMe','_configService','UNIVER_SHEET','forEach','165RgLghw','exchange-client.operation.export-xlsx','50FElMtG','SUBITEMS','getCurrentRangeDisable$','437063ItfrfC','9SHxQIS','IExchangeOperateService'];_0x1277=function(){return _0x13c838;};return _0x1277();}const f={[c[_0x5de663(0x11e)][_0x5de663(0x12b)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x5de663(0x117)],y=(_0x5bd421,_0xa663f9,_0x22e43a,_0x401cf1)=>{const _0x528fa7=_0x5de663;for(var _0x5f5d77=_0x401cf1>0x1?void 0x0:_0x401cf1?T(_0xa663f9,_0x22e43a):_0xa663f9,_0x3f0f17=_0x5bd421[_0x528fa7(0x11c)]-0x1,_0x36f3b2;_0x3f0f17>=0x0;_0x3f0f17--)(_0x36f3b2=_0x5bd421[_0x3f0f17])&&(_0x5f5d77=_0x36f3b2(_0x5f5d77)||_0x5f5d77);return _0x5f5d77;},m=(_0x18bca5,_0x19d896)=>(_0x22c801,_0xf9d222)=>_0x19d896(_0x22c801,_0xf9d222,_0x18bca5);let u=class extends i['Disposable']{constructor(_0x3187f2,_0x2c0ab6){const _0x1aba92=_0x5de663;super(),this[_0x1aba92(0x131)]=_0x3187f2,this[_0x1aba92(0x119)]=_0x2c0ab6,this['_initCommands'](),this[_0x1aba92(0x12c)]();}['_initCommands'](){const _0x12b8c6=_0x5de663;[l,p][_0x12b8c6(0x10e)](_0x292fa6=>{const _0x4433c3=_0x12b8c6;this[_0x4433c3(0x10b)](this[_0x4433c3(0x131)]['registerCommand'](_0x292fa6));});}[_0x5de663(0x12c)](){this['_menuManagerService']['mergeMenu'](f);}};u=y([m(0x0,i['ICommandService']),m(0x1,c[_0x5de663(0x12f)])],u);var O=Object[_0x5de663(0x123)],U=Object[_0x5de663(0x117)],X=(_0x4bd4ca,_0x172c9a,_0x3bac4a)=>_0x172c9a in _0x4bd4ca?O(_0x4bd4ca,_0x172c9a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3bac4a}):_0x4bd4ca[_0x172c9a]=_0x3bac4a,N=(_0x2f9483,_0x12423f,_0x2dfad7,_0x1a566e)=>{for(var _0x2efcc1=_0x1a566e>0x1?void 0x0:_0x1a566e?U(_0x12423f,_0x2dfad7):_0x12423f,_0xc071ef=_0x2f9483['length']-0x1,_0x5a3307;_0xc071ef>=0x0;_0xc071ef--)(_0x5a3307=_0x2f9483[_0xc071ef])&&(_0x2efcc1=_0x5a3307(_0x2efcc1)||_0x2efcc1);return _0x2efcc1;},d=(_0x234afa,_0x46cb9a)=>(_0x45c050,_0x4c8b44)=>_0x46cb9a(_0x45c050,_0x4c8b44,_0x234afa),E=(_0x10a78c,_0x2998a0,_0x290640)=>X(_0x10a78c,typeof _0x2998a0!='symbol'?_0x2998a0+'':_0x2998a0,_0x290640);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';function _0xa0a8(_0x287e8f,_0x51807a){const _0x12777f=_0x1277();return _0xa0a8=function(_0x5675ec,_0x4d7f0b){_0x5675ec=_0x5675ec-0xfe;let _0x56fe43=_0x12777f[_0x5675ec];return _0x56fe43;},_0xa0a8(_0x287e8f,_0x51807a);}exports[_0x5de663(0x125)]=class extends i['Plugin']{constructor(_0x172d23=h,_0x379ec2,_0x148d29){const _0x222864=_0x5de663;super(),this[_0x222864(0x118)]=_0x172d23,this[_0x222864(0x101)]=_0x379ec2,this['_configService']=_0x148d29;const {menu:_0x37eea8,..._0x84ddee}=i['merge']({},h,this[_0x222864(0x118)]);_0x37eea8&&this[_0x222864(0x10c)][_0x222864(0x11d)]('menu',_0x37eea8,{'merge':!0x0}),this[_0x222864(0x10c)]['setConfig'](v,_0x84ddee);}[_0x5de663(0x124)](){const _0x4185da=_0x5de663;[[u]]['forEach'](_0x27b000=>this[_0x4185da(0x101)][_0x4185da(0x128)](_0x27b000));}['onReady'](){const _0x76278e=_0x5de663;this[_0x76278e(0x101)][_0x76278e(0x109)](u);}},E(exports[_0x5de663(0x125)],_0x5de663(0xff),L),E(exports[_0x5de663(0x125)],_0x5de663(0x136),i[_0x5de663(0x102)][_0x5de663(0x10d)]),exports[_0x5de663(0x125)]=N([i['DependentOn'](g['UniverExchangeClientPlugin']),d(0x1,i[_0x5de663(0x129)](i['Injector'])),d(0x2,i[_0x5de663(0x106)])],exports[_0x5de663(0x125)]),exports[_0x5de663(0x11f)]=p,exports[_0x5de663(0x135)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x378f78=_0xd8d9;(function(_0x443c28,_0x2b6eef){const _0x1e0674=_0xd8d9,_0xc076e2=_0x443c28();while(!![]){try{const _0x303093=-parseInt(_0x1e0674(0xaa))/0x1+parseInt(_0x1e0674(0x9b))/0x2+-parseInt(_0x1e0674(0xa6))/0x3+parseInt(_0x1e0674(0x99))/0x4+parseInt(_0x1e0674(0x97))/0x5*(parseInt(_0x1e0674(0xb9))/0x6)+-parseInt(_0x1e0674(0x95))/0x7*(-parseInt(_0x1e0674(0xb1))/0x8)+-parseInt(_0x1e0674(0xac))/0x9;if(_0x303093===_0x2b6eef)break;else _0xc076e2['push'](_0xc076e2['shift']());}catch(_0x80e609){_0xc076e2['push'](_0xc076e2['shift']());}}}(_0x67ef,0x93d76));import{IExchangeOperateService as _0x4e4381,UniverExchangeClientPlugin as _0xe5ce8e}from'@univerjs-pro/exchange-client';import{CommandType as _0xf78ba0,UniverInstanceType as _0x1b5d8b,Disposable as _0xe1c2cb,ICommandService as _0x2def27,DependentOn as _0x2513fe,Inject as _0xd5c3cc,Injector as _0x1f0cfe,IConfigService as _0x370fc3,Plugin as _0x3cc9ed,merge as _0xec4dd9}from'@univerjs/core';import{MenuItemType as _0x2a3313,getMenuHiddenObservable as _0x3f410c,RibbonStartGroup as _0x1bca4c,IMenuManagerService as _0x4d22b7}from'@univerjs/ui';import{WorkbookExportPermission as _0x20345c}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x579c28}from'@univerjs/sheets-ui';const p={'id':_0x378f78(0xbb),'type':_0xf78ba0[_0x378f78(0xae)],'handler':async _0x55e8b6=>{const _0x3f0415=_0x378f78,_0xab3eea=_0x55e8b6[_0x3f0415(0x9e)](_0x4e4381);return new URLSearchParams(location[_0x3f0415(0xa8)])[_0x3f0415(0x9e)](_0x3f0415(0xad))?_0xab3eea[_0x3f0415(0xb8)]():_0xab3eea[_0x3f0415(0xb6)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0xf78ba0[_0x378f78(0xae)],'handler':async _0x863322=>{const _0xc7ef30=_0x378f78,_0x380941=_0x863322['get'](_0x4e4381);return new URLSearchParams(location[_0xc7ef30(0xa8)])[_0xc7ef30(0x9e)](_0xc7ef30(0xad))?_0x380941[_0xc7ef30(0xb7)]():_0x380941['exportXLSXBySnapshot'](),!0x0;}},H=_0x378f78(0x96),l={},S=_0x378f78(0xb4);function R(_0x2ca879){const _0x542b0c=_0x378f78;return{'id':S,'type':_0x2a3313['SUBITEMS'],'icon':_0x542b0c(0x9f),'tooltip':_0x542b0c(0xa1),'hidden$':_0x3f410c(_0x2ca879,_0x1b5d8b[_0x542b0c(0xa2)]),'disabled$':_0x579c28(_0x2ca879,{'workbookTypes':[_0x20345c]})};}function w(){const _0xfeff71=_0x378f78;return{'id':p['id'],'type':_0x2a3313['BUTTON'],'title':_0xfeff71(0xbe),'icon':_0xfeff71(0x9a)};}function D(){const _0x7d68f2=_0x378f78;return{'id':u['id'],'type':_0x2a3313[_0x7d68f2(0xab)],'title':_0x7d68f2(0xb3),'icon':'ExportIcon'};}const F={[_0x1bca4c['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x2f51a3,_0x1d6bf3,_0x4f5a93,_0xe86245)=>{const _0x215d9d=_0x378f78;for(var _0x3c3db6=_0xe86245>0x1?void 0x0:_0xe86245?G(_0x1d6bf3,_0x4f5a93):_0x1d6bf3,_0xf41818=_0x2f51a3[_0x215d9d(0xa3)]-0x1,_0x5bfcc6;_0xf41818>=0x0;_0xf41818--)(_0x5bfcc6=_0x2f51a3[_0xf41818])&&(_0x3c3db6=_0x5bfcc6(_0x3c3db6)||_0x3c3db6);return _0x3c3db6;},d=(_0x45c4f5,_0x1844a5)=>(_0xe2b8c5,_0x5c67fe)=>_0x1844a5(_0xe2b8c5,_0x5c67fe,_0x45c4f5);let c=class extends _0xe1c2cb{constructor(_0x57f9a8,_0x46510d){const _0x26db5a=_0x378f78;super(),this['_commandService']=_0x57f9a8,this[_0x26db5a(0xa5)]=_0x46510d,this['_initCommands'](),this[_0x26db5a(0xb5)]();}[_0x378f78(0xbc)](){const _0x5c1ba5=_0x378f78;[p,u][_0x5c1ba5(0xaf)](_0x555038=>{const _0x40fdc7=_0x5c1ba5;this[_0x40fdc7(0x9c)](this['_commandService'][_0x40fdc7(0xa0)](_0x555038));});}[_0x378f78(0xb5)](){const _0x8ee3e0=_0x378f78;this[_0x8ee3e0(0xa5)][_0x8ee3e0(0xbd)](F);}};c=A([d(0x0,_0x2def27),d(0x1,_0x4d22b7)],c);function _0xd8d9(_0x5ad084,_0x190ff9){const _0x67ef7d=_0x67ef();return _0xd8d9=function(_0xd8d90f,_0x547140){_0xd8d90f=_0xd8d90f-0x95;let _0x3b41ee=_0x67ef7d[_0xd8d90f];return _0x3b41ee;},_0xd8d9(_0x5ad084,_0x190ff9);}var j=Object[_0x378f78(0xa9)],B=Object[_0x378f78(0xb0)],$=(_0x22d226,_0x27a0ce,_0x166757)=>_0x27a0ce in _0x22d226?j(_0x22d226,_0x27a0ce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x166757}):_0x22d226[_0x27a0ce]=_0x166757,V=(_0x19e632,_0x417c85,_0x48c6db,_0x1b83ee)=>{const _0x421151=_0x378f78;for(var _0x1d1ce4=_0x1b83ee>0x1?void 0x0:_0x1b83ee?B(_0x417c85,_0x48c6db):_0x417c85,_0x5330bd=_0x19e632[_0x421151(0xa3)]-0x1,_0x18b65c;_0x5330bd>=0x0;_0x5330bd--)(_0x18b65c=_0x19e632[_0x5330bd])&&(_0x1d1ce4=_0x18b65c(_0x1d1ce4)||_0x1d1ce4);return _0x1d1ce4;},_=(_0x1c23cc,_0x1095a7)=>(_0x1d06ca,_0x1be4ed)=>_0x1095a7(_0x1d06ca,_0x1be4ed,_0x1c23cc),I=(_0x4847b1,_0x49624e,_0x46c4a0)=>$(_0x4847b1,typeof _0x49624e!='symbol'?_0x49624e+'':_0x49624e,_0x46c4a0);const W=_0x378f78(0x98);let s=class extends _0x3cc9ed{constructor(_0x2a22a9=l,_0x531991,_0x1fd6d7){const _0x3a570b=_0x378f78;super(),this['_config']=_0x2a22a9,this['_injector']=_0x531991,this[_0x3a570b(0xbf)]=_0x1fd6d7;const {menu:_0x1c9f55,..._0x2b42da}=_0xec4dd9({},l,this[_0x3a570b(0xa4)]);_0x1c9f55&&this[_0x3a570b(0xbf)][_0x3a570b(0xba)](_0x3a570b(0xa7),_0x1c9f55,{'merge':!0x0}),this[_0x3a570b(0xbf)][_0x3a570b(0xba)](H,_0x2b42da);}['onStarting'](){const _0x3fa031=_0x378f78;[[c]][_0x3fa031(0xaf)](_0x16a55f=>this[_0x3fa031(0xc0)][_0x3fa031(0xb2)](_0x16a55f));}['onReady'](){const _0x540124=_0x378f78;this[_0x540124(0xc0)]['get'](c);}};function _0x67ef(){const _0x9a21bb=['exportXLSXByUnitId','importXLSXToUnitId','6077934xgaHyC','setConfig','exchange-client.operation.import-xlsx','_initCommands','mergeMenu','exchange.upload','_configService','_injector','21rOxXrg','sheets-exchange-client.config','5xRzXeP','SHEET_EXCHANGE_CLIENT_PLUGIN','2798728PIDRBL','FolderIcon','896778hFvqQy','disposeWithMe','pluginName','get','DirectExportIcon','registerCommand','exchange.file','UNIVER_SHEET','length','_config','_menuManagerService','1958043rmeVzY','menu','search','defineProperty','564391WRdlBh','BUTTON','9500328eIJlla','unit','OPERATION','forEach','getOwnPropertyDescriptor','1912432tiGNJV','add','exchange.download','sheets-exchange-client.operation.exchange','_initMenus','importXLSXToSnapshot'];_0x67ef=function(){return _0x9a21bb;};return _0x67ef();}I(s,_0x378f78(0x9d),W),I(s,'type',_0x1b5d8b['UNIVER_SHEET']),s=V([_0x2513fe(_0xe5ce8e),_(0x1,_0xd5c3cc(_0x1f0cfe)),_(0x2,_0x370fc3)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ function _0x5234(){const _0x42cdb=['ExportIcon','452220pERRuh','_injector','pluginName','registerCommand','_configService','add','_initMenus','3818339FCJJuB','2282820XUUXtQ','532787qcxKzB','get','onReady','8737336sCHFmw','exchange-client.operation.export-xlsx','defineProperty','sheets-exchange-client.operation.exchange','sheets-exchange-client.config','length','disposeWithMe','_menuManagerService','_config','OPERATION','_commandService','exportXLSXByUnitId','type','exchange.download','SUBITEMS','search','6mtWoCY','forEach','exchange.upload','SHEET_EXCHANGE_CLIENT_PLUGIN','FolderIcon','DirectExportIcon','549534aQzbYe','importXLSXToSnapshot','setConfig','onStarting','UNIVER_SHEET','1293417AjCvNs','_initCommands','getOwnPropertyDescriptor'];_0x5234=function(){return _0x42cdb;};return _0x5234();}function _0x9489(_0x1d665f,_0x4d18a3){const _0x52340e=_0x5234();return _0x9489=function(_0x94891a,_0x28b163){_0x94891a=_0x94891a-0x16b;let _0x2b1fe1=_0x52340e[_0x94891a];return _0x2b1fe1;},_0x9489(_0x1d665f,_0x4d18a3);}const _0x17cad1=_0x9489;(function(_0x5b070a,_0x23c708){const _0x47695b=_0x9489,_0x325e53=_0x5b070a();while(!![]){try{const _0x2f86e6=-parseInt(_0x47695b(0x17a))/0x1+parseInt(_0x47695b(0x193))/0x2+parseInt(_0x47695b(0x16d))/0x3+parseInt(_0x47695b(0x179))/0x4+parseInt(_0x47695b(0x171))/0x5+parseInt(_0x47695b(0x18d))/0x6*(parseInt(_0x47695b(0x178))/0x7)+-parseInt(_0x47695b(0x17d))/0x8;if(_0x2f86e6===_0x23c708)break;else _0x325e53['push'](_0x325e53['shift']());}catch(_0x599b42){_0x325e53['push'](_0x325e53['shift']());}}}(_0x5234,0x4635a));import{IExchangeOperateService as _0x5528d4,UniverExchangeClientPlugin as _0x3a059b}from'@univerjs-pro/exchange-client';import{CommandType as _0x1282cd,UniverInstanceType as _0x465122,Disposable as _0x4e1d15,ICommandService as _0x6eaeee,DependentOn as _0x135d4c,Inject as _0x5afd65,Injector as _0x2f474d,IConfigService as _0x47d28b,Plugin as _0x121d40,merge as _0x5189bd}from'@univerjs/core';import{MenuItemType as _0x27ad41,getMenuHiddenObservable as _0x4676f8,RibbonStartGroup as _0x5e2288,IMenuManagerService as _0x468009}from'@univerjs/ui';import{WorkbookExportPermission as _0x2b85de}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x29bad1}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x1282cd[_0x17cad1(0x186)],'handler':async _0x2e99b=>{const _0xb7c26b=_0x17cad1,_0x2e0dfc=_0x2e99b[_0xb7c26b(0x17b)](_0x5528d4);return new URLSearchParams(location['search'])[_0xb7c26b(0x17b)]('unit')?_0x2e0dfc['importXLSXToUnitId']():_0x2e0dfc[_0xb7c26b(0x194)](),!0x0;}},u={'id':_0x17cad1(0x17e),'type':_0x1282cd['OPERATION'],'handler':async _0x147862=>{const _0x33e61c=_0x17cad1,_0x5e6138=_0x147862[_0x33e61c(0x17b)](_0x5528d4);return new URLSearchParams(location[_0x33e61c(0x18c)])[_0x33e61c(0x17b)]('unit')?_0x5e6138[_0x33e61c(0x188)]():_0x5e6138['exportXLSXBySnapshot'](),!0x0;}},H=_0x17cad1(0x181),l={},S=_0x17cad1(0x180);function R(_0xf74337){const _0x44ee6c=_0x17cad1;return{'id':S,'type':_0x27ad41[_0x44ee6c(0x18b)],'icon':_0x44ee6c(0x192),'tooltip':'exchange.file','hidden$':_0x4676f8(_0xf74337,_0x465122[_0x44ee6c(0x16c)]),'disabled$':_0x29bad1(_0xf74337,{'workbookTypes':[_0x2b85de]})};}function w(){const _0x431dbf=_0x17cad1;return{'id':p['id'],'type':_0x27ad41['BUTTON'],'title':_0x431dbf(0x18f),'icon':_0x431dbf(0x191)};}function D(){const _0x5a0f4a=_0x17cad1;return{'id':u['id'],'type':_0x27ad41['BUTTON'],'title':_0x5a0f4a(0x18a),'icon':_0x5a0f4a(0x170)};}const F={[_0x5e2288['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x17cad1(0x16f)],A=(_0x3e6f5f,_0x30a30f,_0x1811ce,_0x47c2f8)=>{const _0x3968bd=_0x17cad1;for(var _0x163d12=_0x47c2f8>0x1?void 0x0:_0x47c2f8?G(_0x30a30f,_0x1811ce):_0x30a30f,_0x239ae2=_0x3e6f5f[_0x3968bd(0x182)]-0x1,_0x1f345e;_0x239ae2>=0x0;_0x239ae2--)(_0x1f345e=_0x3e6f5f[_0x239ae2])&&(_0x163d12=_0x1f345e(_0x163d12)||_0x163d12);return _0x163d12;},d=(_0xaaa45e,_0x586b84)=>(_0x4e6537,_0x463bbe)=>_0x586b84(_0x4e6537,_0x463bbe,_0xaaa45e);let c=class extends _0x4e1d15{constructor(_0x281dc7,_0xe342ed){const _0x5d95b1=_0x17cad1;super(),this[_0x5d95b1(0x187)]=_0x281dc7,this[_0x5d95b1(0x184)]=_0xe342ed,this[_0x5d95b1(0x16e)](),this[_0x5d95b1(0x177)]();}[_0x17cad1(0x16e)](){const _0x53f7c1=_0x17cad1;[p,u][_0x53f7c1(0x18e)](_0x188ff3=>{const _0x1a1c7b=_0x53f7c1;this[_0x1a1c7b(0x183)](this['_commandService'][_0x1a1c7b(0x174)](_0x188ff3));});}[_0x17cad1(0x177)](){const _0x3fadd6=_0x17cad1;this[_0x3fadd6(0x184)]['mergeMenu'](F);}};c=A([d(0x0,_0x6eaeee),d(0x1,_0x468009)],c);var j=Object[_0x17cad1(0x17f)],B=Object[_0x17cad1(0x16f)],$=(_0x258167,_0x234f97,_0x2166fa)=>_0x234f97 in _0x258167?j(_0x258167,_0x234f97,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2166fa}):_0x258167[_0x234f97]=_0x2166fa,V=(_0x27bce1,_0x119ab2,_0x268d87,_0x89c92f)=>{const _0x15f26e=_0x17cad1;for(var _0x4aa6b1=_0x89c92f>0x1?void 0x0:_0x89c92f?B(_0x119ab2,_0x268d87):_0x119ab2,_0x717050=_0x27bce1[_0x15f26e(0x182)]-0x1,_0x4438c3;_0x717050>=0x0;_0x717050--)(_0x4438c3=_0x27bce1[_0x717050])&&(_0x4aa6b1=_0x4438c3(_0x4aa6b1)||_0x4aa6b1);return _0x4aa6b1;},_=(_0x1fca75,_0x5d66d2)=>(_0x282f32,_0x306a0f)=>_0x5d66d2(_0x282f32,_0x306a0f,_0x1fca75),I=(_0x4cc1b0,_0x4e0f3f,_0x2a1575)=>$(_0x4cc1b0,typeof _0x4e0f3f!='symbol'?_0x4e0f3f+'':_0x4e0f3f,_0x2a1575);const W=_0x17cad1(0x190);let s=class extends _0x121d40{constructor(_0x8c1af2=l,_0x32600d,_0x50e339){const _0x5edc8a=_0x17cad1;super(),this[_0x5edc8a(0x185)]=_0x8c1af2,this[_0x5edc8a(0x172)]=_0x32600d,this[_0x5edc8a(0x175)]=_0x50e339;const {menu:_0xdce2ae,..._0x1a6d55}=_0x5189bd({},l,this[_0x5edc8a(0x185)]);_0xdce2ae&&this[_0x5edc8a(0x175)][_0x5edc8a(0x195)]('menu',_0xdce2ae,{'merge':!0x0}),this[_0x5edc8a(0x175)][_0x5edc8a(0x195)](H,_0x1a6d55);}[_0x17cad1(0x16b)](){const _0x529178=_0x17cad1;[[c]][_0x529178(0x18e)](_0x46f7a1=>this[_0x529178(0x172)][_0x529178(0x176)](_0x46f7a1));}[_0x17cad1(0x17c)](){const _0x1beb9e=_0x17cad1;this[_0x1beb9e(0x172)][_0x1beb9e(0x17b)](c);}};I(s,_0x17cad1(0x173),W),I(s,_0x17cad1(0x189),_0x465122['UNIVER_SHEET']),s=V([_0x135d4c(_0x3a059b),_(0x1,_0x5afd65(_0x2f474d)),_(0x2,_0x47d28b)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x378f78=_0xd8d9;(function(_0x443c28,_0x2b6eef){const _0x1e0674=_0xd8d9,_0xc076e2=_0x443c28();while(!![]){try{const _0x303093=-parseInt(_0x1e0674(0xaa))/0x1+parseInt(_0x1e0674(0x9b))/0x2+-parseInt(_0x1e0674(0xa6))/0x3+parseInt(_0x1e0674(0x99))/0x4+parseInt(_0x1e0674(0x97))/0x5*(parseInt(_0x1e0674(0xb9))/0x6)+-parseInt(_0x1e0674(0x95))/0x7*(-parseInt(_0x1e0674(0xb1))/0x8)+-parseInt(_0x1e0674(0xac))/0x9;if(_0x303093===_0x2b6eef)break;else _0xc076e2['push'](_0xc076e2['shift']());}catch(_0x80e609){_0xc076e2['push'](_0xc076e2['shift']());}}}(_0x67ef,0x93d76));import{IExchangeOperateService as _0x4e4381,UniverExchangeClientPlugin as _0xe5ce8e}from'@univerjs-pro/exchange-client';import{CommandType as _0xf78ba0,UniverInstanceType as _0x1b5d8b,Disposable as _0xe1c2cb,ICommandService as _0x2def27,DependentOn as _0x2513fe,Inject as _0xd5c3cc,Injector as _0x1f0cfe,IConfigService as _0x370fc3,Plugin as _0x3cc9ed,merge as _0xec4dd9}from'@univerjs/core';import{MenuItemType as _0x2a3313,getMenuHiddenObservable as _0x3f410c,RibbonStartGroup as _0x1bca4c,IMenuManagerService as _0x4d22b7}from'@univerjs/ui';import{WorkbookExportPermission as _0x20345c}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x579c28}from'@univerjs/sheets-ui';const p={'id':_0x378f78(0xbb),'type':_0xf78ba0[_0x378f78(0xae)],'handler':async _0x55e8b6=>{const _0x3f0415=_0x378f78,_0xab3eea=_0x55e8b6[_0x3f0415(0x9e)](_0x4e4381);return new URLSearchParams(location[_0x3f0415(0xa8)])[_0x3f0415(0x9e)](_0x3f0415(0xad))?_0xab3eea[_0x3f0415(0xb8)]():_0xab3eea[_0x3f0415(0xb6)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0xf78ba0[_0x378f78(0xae)],'handler':async _0x863322=>{const _0xc7ef30=_0x378f78,_0x380941=_0x863322['get'](_0x4e4381);return new URLSearchParams(location[_0xc7ef30(0xa8)])[_0xc7ef30(0x9e)](_0xc7ef30(0xad))?_0x380941[_0xc7ef30(0xb7)]():_0x380941['exportXLSXBySnapshot'](),!0x0;}},H=_0x378f78(0x96),l={},S=_0x378f78(0xb4);function R(_0x2ca879){const _0x542b0c=_0x378f78;return{'id':S,'type':_0x2a3313['SUBITEMS'],'icon':_0x542b0c(0x9f),'tooltip':_0x542b0c(0xa1),'hidden$':_0x3f410c(_0x2ca879,_0x1b5d8b[_0x542b0c(0xa2)]),'disabled$':_0x579c28(_0x2ca879,{'workbookTypes':[_0x20345c]})};}function w(){const _0xfeff71=_0x378f78;return{'id':p['id'],'type':_0x2a3313['BUTTON'],'title':_0xfeff71(0xbe),'icon':_0xfeff71(0x9a)};}function D(){const _0x7d68f2=_0x378f78;return{'id':u['id'],'type':_0x2a3313[_0x7d68f2(0xab)],'title':_0x7d68f2(0xb3),'icon':'ExportIcon'};}const F={[_0x1bca4c['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x2f51a3,_0x1d6bf3,_0x4f5a93,_0xe86245)=>{const _0x215d9d=_0x378f78;for(var _0x3c3db6=_0xe86245>0x1?void 0x0:_0xe86245?G(_0x1d6bf3,_0x4f5a93):_0x1d6bf3,_0xf41818=_0x2f51a3[_0x215d9d(0xa3)]-0x1,_0x5bfcc6;_0xf41818>=0x0;_0xf41818--)(_0x5bfcc6=_0x2f51a3[_0xf41818])&&(_0x3c3db6=_0x5bfcc6(_0x3c3db6)||_0x3c3db6);return _0x3c3db6;},d=(_0x45c4f5,_0x1844a5)=>(_0xe2b8c5,_0x5c67fe)=>_0x1844a5(_0xe2b8c5,_0x5c67fe,_0x45c4f5);let c=class extends _0xe1c2cb{constructor(_0x57f9a8,_0x46510d){const _0x26db5a=_0x378f78;super(),this['_commandService']=_0x57f9a8,this[_0x26db5a(0xa5)]=_0x46510d,this['_initCommands'](),this[_0x26db5a(0xb5)]();}[_0x378f78(0xbc)](){const _0x5c1ba5=_0x378f78;[p,u][_0x5c1ba5(0xaf)](_0x555038=>{const _0x40fdc7=_0x5c1ba5;this[_0x40fdc7(0x9c)](this['_commandService'][_0x40fdc7(0xa0)](_0x555038));});}[_0x378f78(0xb5)](){const _0x8ee3e0=_0x378f78;this[_0x8ee3e0(0xa5)][_0x8ee3e0(0xbd)](F);}};c=A([d(0x0,_0x2def27),d(0x1,_0x4d22b7)],c);function _0xd8d9(_0x5ad084,_0x190ff9){const _0x67ef7d=_0x67ef();return _0xd8d9=function(_0xd8d90f,_0x547140){_0xd8d90f=_0xd8d90f-0x95;let _0x3b41ee=_0x67ef7d[_0xd8d90f];return _0x3b41ee;},_0xd8d9(_0x5ad084,_0x190ff9);}var j=Object[_0x378f78(0xa9)],B=Object[_0x378f78(0xb0)],$=(_0x22d226,_0x27a0ce,_0x166757)=>_0x27a0ce in _0x22d226?j(_0x22d226,_0x27a0ce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x166757}):_0x22d226[_0x27a0ce]=_0x166757,V=(_0x19e632,_0x417c85,_0x48c6db,_0x1b83ee)=>{const _0x421151=_0x378f78;for(var _0x1d1ce4=_0x1b83ee>0x1?void 0x0:_0x1b83ee?B(_0x417c85,_0x48c6db):_0x417c85,_0x5330bd=_0x19e632[_0x421151(0xa3)]-0x1,_0x18b65c;_0x5330bd>=0x0;_0x5330bd--)(_0x18b65c=_0x19e632[_0x5330bd])&&(_0x1d1ce4=_0x18b65c(_0x1d1ce4)||_0x1d1ce4);return _0x1d1ce4;},_=(_0x1c23cc,_0x1095a7)=>(_0x1d06ca,_0x1be4ed)=>_0x1095a7(_0x1d06ca,_0x1be4ed,_0x1c23cc),I=(_0x4847b1,_0x49624e,_0x46c4a0)=>$(_0x4847b1,typeof _0x49624e!='symbol'?_0x49624e+'':_0x49624e,_0x46c4a0);const W=_0x378f78(0x98);let s=class extends _0x3cc9ed{constructor(_0x2a22a9=l,_0x531991,_0x1fd6d7){const _0x3a570b=_0x378f78;super(),this['_config']=_0x2a22a9,this['_injector']=_0x531991,this[_0x3a570b(0xbf)]=_0x1fd6d7;const {menu:_0x1c9f55,..._0x2b42da}=_0xec4dd9({},l,this[_0x3a570b(0xa4)]);_0x1c9f55&&this[_0x3a570b(0xbf)][_0x3a570b(0xba)](_0x3a570b(0xa7),_0x1c9f55,{'merge':!0x0}),this[_0x3a570b(0xbf)][_0x3a570b(0xba)](H,_0x2b42da);}['onStarting'](){const _0x3fa031=_0x378f78;[[c]][_0x3fa031(0xaf)](_0x16a55f=>this[_0x3fa031(0xc0)][_0x3fa031(0xb2)](_0x16a55f));}['onReady'](){const _0x540124=_0x378f78;this[_0x540124(0xc0)]['get'](c);}};function _0x67ef(){const _0x9a21bb=['exportXLSXByUnitId','importXLSXToUnitId','6077934xgaHyC','setConfig','exchange-client.operation.import-xlsx','_initCommands','mergeMenu','exchange.upload','_configService','_injector','21rOxXrg','sheets-exchange-client.config','5xRzXeP','SHEET_EXCHANGE_CLIENT_PLUGIN','2798728PIDRBL','FolderIcon','896778hFvqQy','disposeWithMe','pluginName','get','DirectExportIcon','registerCommand','exchange.file','UNIVER_SHEET','length','_config','_menuManagerService','1958043rmeVzY','menu','search','defineProperty','564391WRdlBh','BUTTON','9500328eIJlla','unit','OPERATION','forEach','getOwnPropertyDescriptor','1912432tiGNJV','add','exchange.download','sheets-exchange-client.operation.exchange','_initMenus','importXLSXToSnapshot'];_0x67ef=function(){return _0x9a21bb;};return _0x67ef();}I(s,_0x378f78(0x9d),W),I(s,'type',_0x1b5d8b['UNIVER_SHEET']),s=V([_0x2513fe(_0xe5ce8e),_(0x1,_0xd5c3cc(_0x1f0cfe)),_(0x2,_0x370fc3)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ function _0x5234(){const _0x42cdb=['ExportIcon','452220pERRuh','_injector','pluginName','registerCommand','_configService','add','_initMenus','3818339FCJJuB','2282820XUUXtQ','532787qcxKzB','get','onReady','8737336sCHFmw','exchange-client.operation.export-xlsx','defineProperty','sheets-exchange-client.operation.exchange','sheets-exchange-client.config','length','disposeWithMe','_menuManagerService','_config','OPERATION','_commandService','exportXLSXByUnitId','type','exchange.download','SUBITEMS','search','6mtWoCY','forEach','exchange.upload','SHEET_EXCHANGE_CLIENT_PLUGIN','FolderIcon','DirectExportIcon','549534aQzbYe','importXLSXToSnapshot','setConfig','onStarting','UNIVER_SHEET','1293417AjCvNs','_initCommands','getOwnPropertyDescriptor'];_0x5234=function(){return _0x42cdb;};return _0x5234();}function _0x9489(_0x1d665f,_0x4d18a3){const _0x52340e=_0x5234();return _0x9489=function(_0x94891a,_0x28b163){_0x94891a=_0x94891a-0x16b;let _0x2b1fe1=_0x52340e[_0x94891a];return _0x2b1fe1;},_0x9489(_0x1d665f,_0x4d18a3);}const _0x17cad1=_0x9489;(function(_0x5b070a,_0x23c708){const _0x47695b=_0x9489,_0x325e53=_0x5b070a();while(!![]){try{const _0x2f86e6=-parseInt(_0x47695b(0x17a))/0x1+parseInt(_0x47695b(0x193))/0x2+parseInt(_0x47695b(0x16d))/0x3+parseInt(_0x47695b(0x179))/0x4+parseInt(_0x47695b(0x171))/0x5+parseInt(_0x47695b(0x18d))/0x6*(parseInt(_0x47695b(0x178))/0x7)+-parseInt(_0x47695b(0x17d))/0x8;if(_0x2f86e6===_0x23c708)break;else _0x325e53['push'](_0x325e53['shift']());}catch(_0x599b42){_0x325e53['push'](_0x325e53['shift']());}}}(_0x5234,0x4635a));import{IExchangeOperateService as _0x5528d4,UniverExchangeClientPlugin as _0x3a059b}from'@univerjs-pro/exchange-client';import{CommandType as _0x1282cd,UniverInstanceType as _0x465122,Disposable as _0x4e1d15,ICommandService as _0x6eaeee,DependentOn as _0x135d4c,Inject as _0x5afd65,Injector as _0x2f474d,IConfigService as _0x47d28b,Plugin as _0x121d40,merge as _0x5189bd}from'@univerjs/core';import{MenuItemType as _0x27ad41,getMenuHiddenObservable as _0x4676f8,RibbonStartGroup as _0x5e2288,IMenuManagerService as _0x468009}from'@univerjs/ui';import{WorkbookExportPermission as _0x2b85de}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x29bad1}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x1282cd[_0x17cad1(0x186)],'handler':async _0x2e99b=>{const _0xb7c26b=_0x17cad1,_0x2e0dfc=_0x2e99b[_0xb7c26b(0x17b)](_0x5528d4);return new URLSearchParams(location['search'])[_0xb7c26b(0x17b)]('unit')?_0x2e0dfc['importXLSXToUnitId']():_0x2e0dfc[_0xb7c26b(0x194)](),!0x0;}},u={'id':_0x17cad1(0x17e),'type':_0x1282cd['OPERATION'],'handler':async _0x147862=>{const _0x33e61c=_0x17cad1,_0x5e6138=_0x147862[_0x33e61c(0x17b)](_0x5528d4);return new URLSearchParams(location[_0x33e61c(0x18c)])[_0x33e61c(0x17b)]('unit')?_0x5e6138[_0x33e61c(0x188)]():_0x5e6138['exportXLSXBySnapshot'](),!0x0;}},H=_0x17cad1(0x181),l={},S=_0x17cad1(0x180);function R(_0xf74337){const _0x44ee6c=_0x17cad1;return{'id':S,'type':_0x27ad41[_0x44ee6c(0x18b)],'icon':_0x44ee6c(0x192),'tooltip':'exchange.file','hidden$':_0x4676f8(_0xf74337,_0x465122[_0x44ee6c(0x16c)]),'disabled$':_0x29bad1(_0xf74337,{'workbookTypes':[_0x2b85de]})};}function w(){const _0x431dbf=_0x17cad1;return{'id':p['id'],'type':_0x27ad41['BUTTON'],'title':_0x431dbf(0x18f),'icon':_0x431dbf(0x191)};}function D(){const _0x5a0f4a=_0x17cad1;return{'id':u['id'],'type':_0x27ad41['BUTTON'],'title':_0x5a0f4a(0x18a),'icon':_0x5a0f4a(0x170)};}const F={[_0x5e2288['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x17cad1(0x16f)],A=(_0x3e6f5f,_0x30a30f,_0x1811ce,_0x47c2f8)=>{const _0x3968bd=_0x17cad1;for(var _0x163d12=_0x47c2f8>0x1?void 0x0:_0x47c2f8?G(_0x30a30f,_0x1811ce):_0x30a30f,_0x239ae2=_0x3e6f5f[_0x3968bd(0x182)]-0x1,_0x1f345e;_0x239ae2>=0x0;_0x239ae2--)(_0x1f345e=_0x3e6f5f[_0x239ae2])&&(_0x163d12=_0x1f345e(_0x163d12)||_0x163d12);return _0x163d12;},d=(_0xaaa45e,_0x586b84)=>(_0x4e6537,_0x463bbe)=>_0x586b84(_0x4e6537,_0x463bbe,_0xaaa45e);let c=class extends _0x4e1d15{constructor(_0x281dc7,_0xe342ed){const _0x5d95b1=_0x17cad1;super(),this[_0x5d95b1(0x187)]=_0x281dc7,this[_0x5d95b1(0x184)]=_0xe342ed,this[_0x5d95b1(0x16e)](),this[_0x5d95b1(0x177)]();}[_0x17cad1(0x16e)](){const _0x53f7c1=_0x17cad1;[p,u][_0x53f7c1(0x18e)](_0x188ff3=>{const _0x1a1c7b=_0x53f7c1;this[_0x1a1c7b(0x183)](this['_commandService'][_0x1a1c7b(0x174)](_0x188ff3));});}[_0x17cad1(0x177)](){const _0x3fadd6=_0x17cad1;this[_0x3fadd6(0x184)]['mergeMenu'](F);}};c=A([d(0x0,_0x6eaeee),d(0x1,_0x468009)],c);var j=Object[_0x17cad1(0x17f)],B=Object[_0x17cad1(0x16f)],$=(_0x258167,_0x234f97,_0x2166fa)=>_0x234f97 in _0x258167?j(_0x258167,_0x234f97,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2166fa}):_0x258167[_0x234f97]=_0x2166fa,V=(_0x27bce1,_0x119ab2,_0x268d87,_0x89c92f)=>{const _0x15f26e=_0x17cad1;for(var _0x4aa6b1=_0x89c92f>0x1?void 0x0:_0x89c92f?B(_0x119ab2,_0x268d87):_0x119ab2,_0x717050=_0x27bce1[_0x15f26e(0x182)]-0x1,_0x4438c3;_0x717050>=0x0;_0x717050--)(_0x4438c3=_0x27bce1[_0x717050])&&(_0x4aa6b1=_0x4438c3(_0x4aa6b1)||_0x4aa6b1);return _0x4aa6b1;},_=(_0x1fca75,_0x5d66d2)=>(_0x282f32,_0x306a0f)=>_0x5d66d2(_0x282f32,_0x306a0f,_0x1fca75),I=(_0x4cc1b0,_0x4e0f3f,_0x2a1575)=>$(_0x4cc1b0,typeof _0x4e0f3f!='symbol'?_0x4e0f3f+'':_0x4e0f3f,_0x2a1575);const W=_0x17cad1(0x190);let s=class extends _0x121d40{constructor(_0x8c1af2=l,_0x32600d,_0x50e339){const _0x5edc8a=_0x17cad1;super(),this[_0x5edc8a(0x185)]=_0x8c1af2,this[_0x5edc8a(0x172)]=_0x32600d,this[_0x5edc8a(0x175)]=_0x50e339;const {menu:_0xdce2ae,..._0x1a6d55}=_0x5189bd({},l,this[_0x5edc8a(0x185)]);_0xdce2ae&&this[_0x5edc8a(0x175)][_0x5edc8a(0x195)]('menu',_0xdce2ae,{'merge':!0x0}),this[_0x5edc8a(0x175)][_0x5edc8a(0x195)](H,_0x1a6d55);}[_0x17cad1(0x16b)](){const _0x529178=_0x17cad1;[[c]][_0x529178(0x18e)](_0x46f7a1=>this[_0x529178(0x172)][_0x529178(0x176)](_0x46f7a1));}[_0x17cad1(0x17c)](){const _0x1beb9e=_0x17cad1;this[_0x1beb9e(0x172)][_0x1beb9e(0x17b)](c);}};I(s,_0x17cad1(0x173),W),I(s,_0x17cad1(0x189),_0x465122['UNIVER_SHEET']),s=V([_0x135d4c(_0x3a059b),_(0x1,_0x5afd65(_0x2f474d)),_(0x2,_0x47d28b)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x47a683,_0x21a3d6){const _0x1c0581=_0x4447,_0x64b710=_0x47a683();while(!![]){try{const _0x390af2=parseInt(_0x1c0581(0x1e0))/0x1+-parseInt(_0x1c0581(0x1b4))/0x2*(-parseInt(_0x1c0581(0x1be))/0x3)+parseInt(_0x1c0581(0x1c8))/0x4*(-parseInt(_0x1c0581(0x1c2))/0x5)+parseInt(_0x1c0581(0x1c4))/0x6*(-parseInt(_0x1c0581(0x1e6))/0x7)+-parseInt(_0x1c0581(0x1b6))/0x8*(-parseInt(_0x1c0581(0x1ba))/0x9)+-parseInt(_0x1c0581(0x1ce))/0xa*(parseInt(_0x1c0581(0x1b7))/0xb)+-parseInt(_0x1c0581(0x1f2))/0xc;if(_0x390af2===_0x21a3d6)break;else _0x64b710['push'](_0x64b710['shift']());}catch(_0x3e2444){_0x64b710['push'](_0x64b710['shift']());}}}(_0x553b,0x92873),function(_0x7c0e6b,_0x5866b1){const _0x37cc0b=_0x4447;typeof exports==_0x37cc0b(0x1f0)&&typeof module<'u'?_0x5866b1(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define=='function'&&define['amd']?define([_0x37cc0b(0x1bb),_0x37cc0b(0x1c3),_0x37cc0b(0x1e1),'@univerjs/ui',_0x37cc0b(0x1da),'@univerjs/sheets-ui'],_0x5866b1):(_0x7c0e6b=typeof globalThis<'u'?globalThis:_0x7c0e6b||self,_0x5866b1(_0x7c0e6b['UniverProSheetsExchangeClient']={},_0x7c0e6b['UniverProExchangeClient'],_0x7c0e6b['UniverCore'],_0x7c0e6b[_0x37cc0b(0x1c6)],_0x7c0e6b[_0x37cc0b(0x1b1)],_0x7c0e6b[_0x37cc0b(0x1d7)]));}(this,function(_0x320329,_0x1c0e70,_0x227779,_0x25e353,_0x5854e5,_0x456bb8){'use strict';const _0x291a5b=_0x4447;const _0x1139e7={'id':_0x291a5b(0x1cc),'type':_0x227779['CommandType'][_0x291a5b(0x1dd)],'handler':async _0xa86c26=>{const _0x263ac4=_0x291a5b,_0x22ad91=_0xa86c26[_0x263ac4(0x1d5)](_0x1c0e70[_0x263ac4(0x1f1)]);return new URLSearchParams(location[_0x263ac4(0x1b8)])[_0x263ac4(0x1d5)]('unit')?_0x22ad91[_0x263ac4(0x1e3)]():_0x22ad91[_0x263ac4(0x1eb)](),!0x0;}},_0x1974fc={'id':_0x291a5b(0x1d9),'type':_0x227779[_0x291a5b(0x1d2)][_0x291a5b(0x1dd)],'handler':async _0x4b9db9=>{const _0xf72cf1=_0x291a5b,_0x12fc00=_0x4b9db9['get'](_0x1c0e70[_0xf72cf1(0x1f1)]);return new URLSearchParams(location[_0xf72cf1(0x1b8)])[_0xf72cf1(0x1d5)](_0xf72cf1(0x1e8))?_0x12fc00[_0xf72cf1(0x1ae)]():_0x12fc00[_0xf72cf1(0x1e5)](),!0x0;}},_0x33849b=_0x291a5b(0x1bd),_0x28250c={},_0x59b15f=_0x291a5b(0x1d4);function _0x336a2d(_0x3e0f2e){const _0x139de8=_0x291a5b;return{'id':_0x59b15f,'type':_0x25e353['MenuItemType'][_0x139de8(0x1ad)],'icon':_0x139de8(0x1ef),'tooltip':'exchange.file','hidden$':_0x25e353['getMenuHiddenObservable'](_0x3e0f2e,_0x227779[_0x139de8(0x1cb)][_0x139de8(0x1dc)]),'disabled$':_0x456bb8['getCurrentRangeDisable$'](_0x3e0f2e,{'workbookTypes':[_0x5854e5[_0x139de8(0x1ca)]]})};}function _0x2ea301(){const _0xe212a9=_0x291a5b;return{'id':_0x1139e7['id'],'type':_0x25e353[_0xe212a9(0x1ec)][_0xe212a9(0x1ac)],'title':_0xe212a9(0x1d3),'icon':_0xe212a9(0x1a9)};}function _0x1b6447(){const _0x4fbc6e=_0x291a5b;return{'id':_0x1974fc['id'],'type':_0x25e353[_0x4fbc6e(0x1ec)]['BUTTON'],'title':_0x4fbc6e(0x1a6),'icon':'ExportIcon'};}const _0x195649={[_0x25e353['RibbonStartGroup'][_0x291a5b(0x1b9)]]:{[_0x59b15f]:{'order':0.3,'menuItemFactory':_0x336a2d,[_0x1139e7['id']]:{'order':0x0,'menuItemFactory':_0x2ea301},[_0x1974fc['id']]:{'order':0x1,'menuItemFactory':_0x1b6447}}}};var _0x16d746=Object[_0x291a5b(0x1d6)],_0x282e39=(_0x487dc2,_0x290024,_0x34a0ea,_0x4f22d1)=>{const _0x225363=_0x291a5b;for(var _0x1c4443=_0x4f22d1>0x1?void 0x0:_0x4f22d1?_0x16d746(_0x290024,_0x34a0ea):_0x290024,_0x4ba981=_0x487dc2[_0x225363(0x1bc)]-0x1,_0x771f7e;_0x4ba981>=0x0;_0x4ba981--)(_0x771f7e=_0x487dc2[_0x4ba981])&&(_0x1c4443=_0x771f7e(_0x1c4443)||_0x1c4443);return _0x1c4443;},_0x20c061=(_0x167706,_0x17e090)=>(_0x2510a9,_0x51cc84)=>_0x17e090(_0x2510a9,_0x51cc84,_0x167706);let _0x5cf5f5=class extends _0x227779[_0x291a5b(0x1ab)]{constructor(_0x5dc786,_0x4b0b3b){const _0x4aa045=_0x291a5b;super(),this['_commandService']=_0x5dc786,this[_0x4aa045(0x1e4)]=_0x4b0b3b,this[_0x4aa045(0x1cd)](),this[_0x4aa045(0x1bf)]();}[_0x291a5b(0x1cd)](){const _0x17f733=_0x291a5b;[_0x1139e7,_0x1974fc][_0x17f733(0x1c1)](_0x3aecc4=>{const _0x351277=_0x17f733;this[_0x351277(0x1ea)](this['_commandService'][_0x351277(0x1d8)](_0x3aecc4));});}[_0x291a5b(0x1bf)](){const _0x7a5d68=_0x291a5b;this[_0x7a5d68(0x1e4)][_0x7a5d68(0x1db)](_0x195649);}};_0x5cf5f5=_0x282e39([_0x20c061(0x0,_0x227779[_0x291a5b(0x1e2)]),_0x20c061(0x1,_0x25e353['IMenuManagerService'])],_0x5cf5f5);var _0x285ec1=Object[_0x291a5b(0x1ee)],_0x1e4032=Object[_0x291a5b(0x1d6)],_0x243cf9=(_0x16833f,_0x313d4c,_0x5c1af7)=>_0x313d4c in _0x16833f?_0x285ec1(_0x16833f,_0x313d4c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c1af7}):_0x16833f[_0x313d4c]=_0x5c1af7,_0x574d27=(_0x406017,_0x3d35da,_0x4620f6,_0x22f933)=>{for(var _0xfd3789=_0x22f933>0x1?void 0x0:_0x22f933?_0x1e4032(_0x3d35da,_0x4620f6):_0x3d35da,_0x5e5777=_0x406017['length']-0x1,_0x53e292;_0x5e5777>=0x0;_0x5e5777--)(_0x53e292=_0x406017[_0x5e5777])&&(_0xfd3789=_0x53e292(_0xfd3789)||_0xfd3789);return _0xfd3789;},_0x279109=(_0x57a29f,_0x12b6f5)=>(_0x1644b0,_0x2f4c18)=>_0x12b6f5(_0x1644b0,_0x2f4c18,_0x57a29f),_0x555737=(_0x201a3b,_0x1a1171,_0x53448d)=>_0x243cf9(_0x201a3b,typeof _0x1a1171!='symbol'?_0x1a1171+'':_0x1a1171,_0x53448d);const _0x1d9165=_0x291a5b(0x1e9);_0x320329['UniverSheetsExchangeClientPlugin']=class extends _0x227779[_0x291a5b(0x1c0)]{constructor(_0x176ce3=_0x28250c,_0x464cc1,_0x49b0dd){const _0x317c58=_0x291a5b;super(),this['_config']=_0x176ce3,this[_0x317c58(0x1c9)]=_0x464cc1,this[_0x317c58(0x1c5)]=_0x49b0dd;const {menu:_0x1c2ba9,..._0x1fc993}=_0x227779[_0x317c58(0x1b5)]({},_0x28250c,this[_0x317c58(0x1a7)]);_0x1c2ba9&&this[_0x317c58(0x1c5)][_0x317c58(0x1e7)](_0x317c58(0x1aa),_0x1c2ba9,{'merge':!0x0}),this[_0x317c58(0x1c5)][_0x317c58(0x1e7)](_0x33849b,_0x1fc993);}[_0x291a5b(0x1d1)](){const _0x4176f8=_0x291a5b;[[_0x5cf5f5]][_0x4176f8(0x1c1)](_0x2dc11c=>this[_0x4176f8(0x1c9)][_0x4176f8(0x1b2)](_0x2dc11c));}[_0x291a5b(0x1b0)](){const _0x416785=_0x291a5b;this[_0x416785(0x1c9)]['get'](_0x5cf5f5);}},_0x555737(_0x320329[_0x291a5b(0x1f3)],_0x291a5b(0x1df),_0x1d9165),_0x555737(_0x320329[_0x291a5b(0x1f3)],_0x291a5b(0x1b3),_0x227779['UniverInstanceType'][_0x291a5b(0x1dc)]),_0x320329[_0x291a5b(0x1f3)]=_0x574d27([_0x227779['DependentOn'](_0x1c0e70[_0x291a5b(0x1d0)]),_0x279109(0x1,_0x227779[_0x291a5b(0x1af)](_0x227779[_0x291a5b(0x1ed)])),_0x279109(0x2,_0x227779[_0x291a5b(0x1cf)])],_0x320329[_0x291a5b(0x1f3)]),_0x320329[_0x291a5b(0x1a8)]=_0x1974fc,_0x320329[_0x291a5b(0x1c7)]=_0x1139e7,Object['defineProperty'](_0x320329,Symbol['toStringTag'],{'value':_0x291a5b(0x1de)});}));function _0x4447(_0x5b94d9,_0x5db3d4){const _0x553be8=_0x553b();return _0x4447=function(_0x4447e2,_0x33d6fe){_0x4447e2=_0x4447e2-0x1a6;let _0x3bf917=_0x553be8[_0x4447e2];return _0x3bf917;},_0x4447(_0x5b94d9,_0x5db3d4);}function _0x553b(){const _0x94fb8=['exchange.download','_config','ExportXLSXOperation','FolderIcon','menu','Disposable','BUTTON','SUBITEMS','exportXLSXByUnitId','Inject','onReady','UniverSheets','add','type','795076tKJsrX','merge','2696EFHzuk','583YwZSEX','search','OTHERS','9765HNwCHz','exports','length','sheets-exchange-client.config','3BSQlUu','_initMenus','Plugin','forEach','215eefoly','@univerjs-pro/exchange-client','84918cfUDnD','_configService','UniverUi','ImportXLSXOperation','27956uXsocl','_injector','WorkbookExportPermission','UniverInstanceType','exchange-client.operation.import-xlsx','_initCommands','43420OhPCeY','IConfigService','UniverExchangeClientPlugin','onStarting','CommandType','exchange.upload','sheets-exchange-client.operation.exchange','get','getOwnPropertyDescriptor','UniverSheetsUi','registerCommand','exchange-client.operation.export-xlsx','@univerjs/sheets','mergeMenu','UNIVER_SHEET','OPERATION','Module','pluginName','920670nnSfIo','@univerjs/core','ICommandService','importXLSXToUnitId','_menuManagerService','exportXLSXBySnapshot','140QYwvGN','setConfig','unit','SHEET_EXCHANGE_CLIENT_PLUGIN','disposeWithMe','importXLSXToSnapshot','MenuItemType','Injector','defineProperty','DirectExportIcon','object','IExchangeOperateService','3239532tfxxtJ','UniverSheetsExchangeClientPlugin'];_0x553b=function(){return _0x94fb8;};return _0x553b();}
1
+ function _0x4dc4(_0x56612c,_0x40fbd7){const _0x21b646=_0x21b6();return _0x4dc4=function(_0x4dc4f3,_0x107be4){_0x4dc4f3=_0x4dc4f3-0x149;let _0x213511=_0x21b646[_0x4dc4f3];return _0x213511;},_0x4dc4(_0x56612c,_0x40fbd7);}(function(_0x4562ba,_0x120a31){const _0x4f868a=_0x4dc4,_0x2586ac=_0x4562ba();while(!![]){try{const _0x8b06e9=-parseInt(_0x4f868a(0x168))/0x1+-parseInt(_0x4f868a(0x16b))/0x2+parseInt(_0x4f868a(0x180))/0x3*(parseInt(_0x4f868a(0x162))/0x4)+parseInt(_0x4f868a(0x18f))/0x5*(parseInt(_0x4f868a(0x178))/0x6)+parseInt(_0x4f868a(0x14c))/0x7+-parseInt(_0x4f868a(0x18a))/0x8+-parseInt(_0x4f868a(0x189))/0x9;if(_0x8b06e9===_0x120a31)break;else _0x2586ac['push'](_0x2586ac['shift']());}catch(_0xd6c604){_0x2586ac['push'](_0x2586ac['shift']());}}}(_0x21b6,0x87cc5),function(_0x252f21,_0x5dce3e){const _0x472c9f=_0x4dc4;typeof exports==_0x472c9f(0x16c)&&typeof module<'u'?_0x5dce3e(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x472c9f(0x15d)&&define[_0x472c9f(0x179)]?define([_0x472c9f(0x14e),_0x472c9f(0x184),_0x472c9f(0x17b),_0x472c9f(0x172),_0x472c9f(0x171),_0x472c9f(0x156)],_0x5dce3e):(_0x252f21=typeof globalThis<'u'?globalThis:_0x252f21||self,_0x5dce3e(_0x252f21[_0x472c9f(0x196)]={},_0x252f21[_0x472c9f(0x15e)],_0x252f21[_0x472c9f(0x169)],_0x252f21['UniverUi'],_0x252f21[_0x472c9f(0x160)],_0x252f21['UniverSheetsUi']));}(this,function(_0x11d0ff,_0x51f873,_0x1bfc4b,_0x32c3d1,_0x387106,_0x2a3739){'use strict';const _0x515060=_0x4dc4;const _0x5e10fd={'id':_0x515060(0x177),'type':_0x1bfc4b[_0x515060(0x15c)][_0x515060(0x195)],'handler':async _0x155a71=>{const _0x4c03e2=_0x515060,_0x4ad7e3=_0x155a71['get'](_0x51f873[_0x4c03e2(0x198)]);return new URLSearchParams(location[_0x4c03e2(0x185)])[_0x4c03e2(0x173)](_0x4c03e2(0x166))?_0x4ad7e3['importXLSXToUnitId']():_0x4ad7e3[_0x4c03e2(0x197)](),!0x0;}},_0x3c1d7d={'id':_0x515060(0x158),'type':_0x1bfc4b[_0x515060(0x15c)][_0x515060(0x195)],'handler':async _0x1e71a6=>{const _0x23fc4c=_0x515060,_0x3d2d0c=_0x1e71a6[_0x23fc4c(0x173)](_0x51f873[_0x23fc4c(0x198)]);return new URLSearchParams(location[_0x23fc4c(0x185)])[_0x23fc4c(0x173)](_0x23fc4c(0x166))?_0x3d2d0c[_0x23fc4c(0x150)]():_0x3d2d0c[_0x23fc4c(0x16d)](),!0x0;}},_0x490631=_0x515060(0x175),_0x4f1ce5={},_0x254074=_0x515060(0x15b);function _0x278810(_0x30ec46){const _0x1bef11=_0x515060;return{'id':_0x254074,'type':_0x32c3d1[_0x1bef11(0x18e)][_0x1bef11(0x149)],'icon':_0x1bef11(0x17d),'tooltip':_0x1bef11(0x176),'hidden$':_0x32c3d1[_0x1bef11(0x18b)](_0x30ec46,_0x1bfc4b[_0x1bef11(0x161)][_0x1bef11(0x190)]),'disabled$':_0x2a3739[_0x1bef11(0x191)](_0x30ec46,{'workbookTypes':[_0x387106[_0x1bef11(0x17f)]]})};}function _0x802271(){const _0x50ba98=_0x515060;return{'id':_0x5e10fd['id'],'type':_0x32c3d1[_0x50ba98(0x18e)][_0x50ba98(0x192)],'title':'exchange.upload','icon':_0x50ba98(0x167)};}function _0x38e10b(){const _0x365806=_0x515060;return{'id':_0x3c1d7d['id'],'type':_0x32c3d1[_0x365806(0x18e)][_0x365806(0x192)],'title':_0x365806(0x182),'icon':_0x365806(0x17e)};}const _0x49b08a={[_0x32c3d1[_0x515060(0x170)]['OTHERS']]:{[_0x254074]:{'order':0.3,'menuItemFactory':_0x278810,[_0x5e10fd['id']]:{'order':0x0,'menuItemFactory':_0x802271},[_0x3c1d7d['id']]:{'order':0x1,'menuItemFactory':_0x38e10b}}}};var _0xa86b57=Object[_0x515060(0x17a)],_0x2bcd32=(_0x3740f1,_0x25b7cc,_0x40087a,_0x5997e5)=>{for(var _0x5754fc=_0x5997e5>0x1?void 0x0:_0x5997e5?_0xa86b57(_0x25b7cc,_0x40087a):_0x25b7cc,_0xf1a089=_0x3740f1['length']-0x1,_0x1b29ba;_0xf1a089>=0x0;_0xf1a089--)(_0x1b29ba=_0x3740f1[_0xf1a089])&&(_0x5754fc=_0x1b29ba(_0x5754fc)||_0x5754fc);return _0x5754fc;},_0x20fe8a=(_0x4643a6,_0x56eb14)=>(_0x5805d6,_0x55dd23)=>_0x56eb14(_0x5805d6,_0x55dd23,_0x4643a6);let _0x3d38fb=class extends _0x1bfc4b['Disposable']{constructor(_0x259ed7,_0x2ea29c){const _0x46f20a=_0x515060;super(),this['_commandService']=_0x259ed7,this[_0x46f20a(0x193)]=_0x2ea29c,this[_0x46f20a(0x16e)](),this[_0x46f20a(0x157)]();}[_0x515060(0x16e)](){const _0x2a5502=_0x515060;[_0x5e10fd,_0x3c1d7d][_0x2a5502(0x18d)](_0x55688b=>{const _0xecd45e=_0x2a5502;this[_0xecd45e(0x14d)](this[_0xecd45e(0x187)][_0xecd45e(0x14a)](_0x55688b));});}[_0x515060(0x157)](){const _0x24db73=_0x515060;this[_0x24db73(0x193)]['mergeMenu'](_0x49b08a);}};_0x3d38fb=_0x2bcd32([_0x20fe8a(0x0,_0x1bfc4b['ICommandService']),_0x20fe8a(0x1,_0x32c3d1['IMenuManagerService'])],_0x3d38fb);var _0x33d999=Object[_0x515060(0x151)],_0x5a251a=Object[_0x515060(0x17a)],_0x464514=(_0x1540ef,_0x81dd3d,_0x2dfc40)=>_0x81dd3d in _0x1540ef?_0x33d999(_0x1540ef,_0x81dd3d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2dfc40}):_0x1540ef[_0x81dd3d]=_0x2dfc40,_0x152680=(_0x16e0db,_0x2ec692,_0x537f8c,_0x4defcf)=>{const _0x29f883=_0x515060;for(var _0x5f01b0=_0x4defcf>0x1?void 0x0:_0x4defcf?_0x5a251a(_0x2ec692,_0x537f8c):_0x2ec692,_0x57421e=_0x16e0db[_0x29f883(0x15a)]-0x1,_0x480afc;_0x57421e>=0x0;_0x57421e--)(_0x480afc=_0x16e0db[_0x57421e])&&(_0x5f01b0=_0x480afc(_0x5f01b0)||_0x5f01b0);return _0x5f01b0;},_0x143b4a=(_0x5bb09f,_0x31ad40)=>(_0x233a7e,_0x3e6ef4)=>_0x31ad40(_0x233a7e,_0x3e6ef4,_0x5bb09f),_0x42d231=(_0x21de89,_0x3e9c7a,_0x5e2f5b)=>_0x464514(_0x21de89,typeof _0x3e9c7a!=_0x515060(0x152)?_0x3e9c7a+'':_0x3e9c7a,_0x5e2f5b);const _0xa890fc=_0x515060(0x14f);_0x11d0ff['UniverSheetsExchangeClientPlugin']=class extends _0x1bfc4b['Plugin']{constructor(_0x260e6a=_0x4f1ce5,_0x88085d,_0x19aa15){const _0x5c555b=_0x515060;super(),this[_0x5c555b(0x154)]=_0x260e6a,this[_0x5c555b(0x163)]=_0x88085d,this[_0x5c555b(0x199)]=_0x19aa15;const {menu:_0x4f2627,..._0x6fa0fd}=_0x1bfc4b[_0x5c555b(0x164)]({},_0x4f1ce5,this[_0x5c555b(0x154)]);_0x4f2627&&this[_0x5c555b(0x199)]['setConfig'](_0x5c555b(0x16f),_0x4f2627,{'merge':!0x0}),this['_configService'][_0x5c555b(0x186)](_0x490631,_0x6fa0fd);}[_0x515060(0x165)](){const _0x21bee1=_0x515060;[[_0x3d38fb]][_0x21bee1(0x18d)](_0x2b9bd2=>this[_0x21bee1(0x163)][_0x21bee1(0x155)](_0x2b9bd2));}[_0x515060(0x159)](){const _0xdb1eba=_0x515060;this[_0xdb1eba(0x163)][_0xdb1eba(0x173)](_0x3d38fb);}},_0x42d231(_0x11d0ff[_0x515060(0x17c)],_0x515060(0x188),_0xa890fc),_0x42d231(_0x11d0ff[_0x515060(0x17c)],_0x515060(0x183),_0x1bfc4b[_0x515060(0x161)][_0x515060(0x190)]),_0x11d0ff[_0x515060(0x17c)]=_0x152680([_0x1bfc4b[_0x515060(0x194)](_0x51f873[_0x515060(0x153)]),_0x143b4a(0x1,_0x1bfc4b[_0x515060(0x18c)](_0x1bfc4b[_0x515060(0x15f)])),_0x143b4a(0x2,_0x1bfc4b[_0x515060(0x14b)])],_0x11d0ff[_0x515060(0x17c)]),_0x11d0ff[_0x515060(0x181)]=_0x3c1d7d,_0x11d0ff[_0x515060(0x174)]=_0x5e10fd,Object['defineProperty'](_0x11d0ff,Symbol[_0x515060(0x16a)],{'value':'Module'});}));function _0x21b6(){const _0x340927=['getMenuHiddenObservable','Inject','forEach','MenuItemType','1465PQwmCP','UNIVER_SHEET','getCurrentRangeDisable$','BUTTON','_menuManagerService','DependentOn','OPERATION','UniverProSheetsExchangeClient','importXLSXToSnapshot','IExchangeOperateService','_configService','SUBITEMS','registerCommand','IConfigService','2468816iPRfNC','disposeWithMe','exports','SHEET_EXCHANGE_CLIENT_PLUGIN','exportXLSXByUnitId','defineProperty','symbol','UniverExchangeClientPlugin','_config','add','@univerjs/sheets-ui','_initMenus','exchange-client.operation.export-xlsx','onReady','length','sheets-exchange-client.operation.exchange','CommandType','function','UniverProExchangeClient','Injector','UniverSheets','UniverInstanceType','8leyjZz','_injector','merge','onStarting','unit','FolderIcon','97116bifwjc','UniverCore','toStringTag','1116796pcWXxT','object','exportXLSXBySnapshot','_initCommands','menu','RibbonStartGroup','@univerjs/sheets','@univerjs/ui','get','ImportXLSXOperation','sheets-exchange-client.config','exchange.file','exchange-client.operation.import-xlsx','6366ljWUMN','amd','getOwnPropertyDescriptor','@univerjs/core','UniverSheetsExchangeClientPlugin','DirectExportIcon','ExportIcon','WorkbookExportPermission','1418952CllpYY','ExportXLSXOperation','exchange.download','type','@univerjs-pro/exchange-client','search','setConfig','_commandService','pluginName','1431630PwdsdY','1909728CmhUHw'];_0x21b6=function(){return _0x340927;};return _0x21b6();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.10.6",
3
+ "version": "0.10.7-nightly.202509080357",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -42,17 +42,17 @@
42
42
  "lib"
43
43
  ],
44
44
  "dependencies": {
45
- "@univerjs-pro/exchange-client": "0.10.6",
46
- "@univerjs/core": "0.10.6",
47
- "@univerjs/sheets-ui": "0.10.6",
48
- "@univerjs/ui": "0.10.6",
49
- "@univerjs/sheets": "0.10.6"
45
+ "@univerjs-pro/exchange-client": "0.10.7-nightly.202509080357",
46
+ "@univerjs/core": "0.10.7-nightly.202509080357",
47
+ "@univerjs/sheets": "0.10.7-nightly.202509080357",
48
+ "@univerjs/sheets-ui": "0.10.7-nightly.202509080357",
49
+ "@univerjs/ui": "0.10.7-nightly.202509080357"
50
50
  },
51
51
  "devDependencies": {
52
- "typescript": "^5.8.3",
52
+ "typescript": "^5.9.2",
53
53
  "vite": "^7.1.3",
54
54
  "vitest": "^3.2.4",
55
- "@univerjs-infra/shared": "0.10.6"
55
+ "@univerjs-infra/shared": "0.10.7"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run",