@univerjs-pro/sheets-exchange-client 0.15.0-insiders.20260110-48b77c8 → 0.15.1

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 _0x398628=_0x14f3;(function(_0x341eff,_0x27384f){const _0x5c4398=_0x14f3,_0x2b3252=_0x341eff();while(!![]){try{const _0x30a484=-parseInt(_0x5c4398(0x1a9))/0x1*(parseInt(_0x5c4398(0x1dc))/0x2)+-parseInt(_0x5c4398(0x1a1))/0x3+parseInt(_0x5c4398(0x1b1))/0x4*(-parseInt(_0x5c4398(0x1cf))/0x5)+-parseInt(_0x5c4398(0x1b9))/0x6+parseInt(_0x5c4398(0x1a5))/0x7+-parseInt(_0x5c4398(0x1c5))/0x8*(parseInt(_0x5c4398(0x1be))/0x9)+parseInt(_0x5c4398(0x1d2))/0xa*(parseInt(_0x5c4398(0x1dd))/0xb);if(_0x30a484===_0x27384f)break;else _0x2b3252['push'](_0x2b3252['shift']());}catch(_0x16b7cd){_0x2b3252['push'](_0x2b3252['shift']());}}}(_0x12fa,0x35f56));function _0x12fa(){const _0x27ccea=['sheets-exchange-client.config','sheets-exchange-client.operation.exchange','unit','UniverInstanceType','defineProperty','_menuManagerService','mergeMenu','2467110BjpIkx','toStringTag','CommandType','onStarting','Plugin','782343AtWljF','get','disposeWithMe','UNIVER_SHEET','menu','exportXLSXByUnitId','forEach','24eCCroB','Injector','Inject','_initCommands','_config','importXLSXToSnapshot','getCurrentRangeDisable$','exchange.file','registerCommand','length','14095BGhOaX','ExportIcon','DependentOn','2000bSagns','_configService','symbol','exchange.upload','pluginName','exchange.download','getOwnPropertyDescriptor','OPERATION','IExchangeOperateService','merge','2OLDmTi','94116DsavfX','UniverSheetsExchangeClientPlugin','RibbonStartGroup','459258LxeEba','OTHERS','FolderIcon','importXLSXToUnitId','356321pmZTUr','IConfigService','add','BUTTON','355205lPGKqg','search','Disposable','MenuItemType','_injector','UniverExchangeClientPlugin','DirectExportIcon','_commandService','512noHpEc'];_0x12fa=function(){return _0x27ccea;};return _0x12fa();}Object['defineProperty'](exports,Symbol[_0x398628(0x1ba)],{'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':'exchange-client.operation.import-xlsx','type':i[_0x398628(0x1bb)][_0x398628(0x1d9)],'handler':async _0x419698=>{const _0x1d2f7d=_0x398628,_0x1c56ac=_0x419698['get'](g[_0x1d2f7d(0x1da)]);return new URLSearchParams(location[_0x1d2f7d(0x1aa)])[_0x1d2f7d(0x1bf)]('unit')?_0x1c56ac[_0x1d2f7d(0x1a4)]():_0x1c56ac[_0x1d2f7d(0x1ca)](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i['CommandType'][_0x398628(0x1d9)],'handler':async _0x5d5790=>{const _0x5bac45=_0x398628,_0x1ab7fe=_0x5d5790[_0x5bac45(0x1bf)](g[_0x5bac45(0x1da)]);return new URLSearchParams(location['search'])[_0x5bac45(0x1bf)](_0x5bac45(0x1b4))?_0x1ab7fe[_0x5bac45(0x1c3)]():_0x1ab7fe['exportXLSXBySnapshot'](),!0x0;}},v=_0x398628(0x1b2),h={},S=_0x398628(0x1b3);function x(_0x391c3e){const _0x46768d=_0x398628;return{'id':S,'type':c[_0x46768d(0x1ac)]['SUBITEMS'],'icon':_0x46768d(0x1af),'tooltip':_0x46768d(0x1cc),'hidden$':c['getMenuHiddenObservable'](_0x391c3e,i[_0x46768d(0x1b5)][_0x46768d(0x1c1)]),'disabled$':I[_0x46768d(0x1cb)](_0x391c3e,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x573d80=_0x398628;return{'id':l['id'],'type':c[_0x573d80(0x1ac)]['BUTTON'],'title':_0x573d80(0x1d5),'icon':_0x573d80(0x1a3)};}function C(){const _0x3b64dd=_0x398628;return{'id':p['id'],'type':c[_0x3b64dd(0x1ac)][_0x3b64dd(0x1a8)],'title':_0x3b64dd(0x1d7),'icon':_0x3b64dd(0x1d0)};}const f={[c[_0x398628(0x1a0)][_0x398628(0x1a2)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};function _0x14f3(_0x50de52,_0x1efb67){_0x50de52=_0x50de52-0x1a0;const _0x12fa2e=_0x12fa();let _0x14f3c6=_0x12fa2e[_0x50de52];return _0x14f3c6;}var T=Object[_0x398628(0x1d8)],y=(_0x6a2889,_0x196efb,_0x46b0c4,_0x3fae34)=>{const _0x552fe1=_0x398628;for(var _0x674999=_0x3fae34>0x1?void 0x0:_0x3fae34?T(_0x196efb,_0x46b0c4):_0x196efb,_0x407fd8=_0x6a2889[_0x552fe1(0x1ce)]-0x1,_0x1755ff;_0x407fd8>=0x0;_0x407fd8--)(_0x1755ff=_0x6a2889[_0x407fd8])&&(_0x674999=_0x1755ff(_0x674999)||_0x674999);return _0x674999;},m=(_0x26e514,_0x4d96c5)=>(_0x436620,_0xbda5ec)=>_0x4d96c5(_0x436620,_0xbda5ec,_0x26e514);let u=class extends i[_0x398628(0x1ab)]{constructor(_0x571929,_0x330262){const _0x4becea=_0x398628;super(),this['_commandService']=_0x571929,this[_0x4becea(0x1b7)]=_0x330262,this[_0x4becea(0x1c8)](),this['_initMenus']();}[_0x398628(0x1c8)](){const _0x21fd7f=_0x398628;[l,p][_0x21fd7f(0x1c4)](_0x4c0340=>{const _0x43cfe8=_0x21fd7f;this[_0x43cfe8(0x1c0)](this[_0x43cfe8(0x1b0)][_0x43cfe8(0x1cd)](_0x4c0340));});}['_initMenus'](){const _0x3e77a9=_0x398628;this['_menuManagerService'][_0x3e77a9(0x1b8)](f);}};u=y([m(0x0,i['ICommandService']),m(0x1,c['IMenuManagerService'])],u);var O=Object[_0x398628(0x1b6)],U=Object[_0x398628(0x1d8)],X=(_0x2093f6,_0x1a0498,_0x4e5c95)=>_0x1a0498 in _0x2093f6?O(_0x2093f6,_0x1a0498,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e5c95}):_0x2093f6[_0x1a0498]=_0x4e5c95,N=(_0x442668,_0x1d2a77,_0x20ae0d,_0x27a155)=>{const _0x5e548d=_0x398628;for(var _0x53f442=_0x27a155>0x1?void 0x0:_0x27a155?U(_0x1d2a77,_0x20ae0d):_0x1d2a77,_0x3a99ea=_0x442668[_0x5e548d(0x1ce)]-0x1,_0x5d246b;_0x3a99ea>=0x0;_0x3a99ea--)(_0x5d246b=_0x442668[_0x3a99ea])&&(_0x53f442=_0x5d246b(_0x53f442)||_0x53f442);return _0x53f442;},d=(_0x3786ad,_0x114d5c)=>(_0x54b8b9,_0x2eda59)=>_0x114d5c(_0x54b8b9,_0x2eda59,_0x3786ad),E=(_0x29a7cb,_0x2e304a,_0x28ed62)=>X(_0x29a7cb,typeof _0x2e304a!=_0x398628(0x1d4)?_0x2e304a+'':_0x2e304a,_0x28ed62);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports[_0x398628(0x1de)]=class extends i[_0x398628(0x1bd)]{constructor(_0x56990e=h,_0x1269f1,_0x44f6bb){const _0x427ad6=_0x398628;super(),this['_config']=_0x56990e,this['_injector']=_0x1269f1,this[_0x427ad6(0x1d3)]=_0x44f6bb;const {menu:_0x529245,..._0x734c93}=i[_0x427ad6(0x1db)]({},h,this[_0x427ad6(0x1c9)]);_0x529245&&this[_0x427ad6(0x1d3)]['setConfig'](_0x427ad6(0x1c2),_0x529245,{'merge':!0x0}),this[_0x427ad6(0x1d3)]['setConfig'](v,_0x734c93);}[_0x398628(0x1bc)](){const _0xde355d=_0x398628;[[u]][_0xde355d(0x1c4)](_0x4ca180=>this[_0xde355d(0x1ad)][_0xde355d(0x1a7)](_0x4ca180));}['onReady'](){const _0x421ef5=_0x398628;this[_0x421ef5(0x1ad)][_0x421ef5(0x1bf)](u);}},E(exports[_0x398628(0x1de)],_0x398628(0x1d6),L),E(exports[_0x398628(0x1de)],'type',i[_0x398628(0x1b5)][_0x398628(0x1c1)]),exports[_0x398628(0x1de)]=N([i[_0x398628(0x1d1)](g[_0x398628(0x1ae)]),d(0x1,i[_0x398628(0x1c7)](i[_0x398628(0x1c6)])),d(0x2,i[_0x398628(0x1a6)])],exports['UniverSheetsExchangeClientPlugin']),exports['ExportXLSXOperation']=p,exports['ImportXLSXOperation']=l;
1
+ 'use strict';const _0x396984=_0x4b9d;(function(_0x2ea6ae,_0xa3b678){const _0x45dcaa=_0x4b9d,_0x1c9709=_0x2ea6ae();while(!![]){try{const _0x248cbf=-parseInt(_0x45dcaa(0xa4))/0x1+-parseInt(_0x45dcaa(0x90))/0x2*(parseInt(_0x45dcaa(0xb8))/0x3)+-parseInt(_0x45dcaa(0xba))/0x4*(-parseInt(_0x45dcaa(0x98))/0x5)+-parseInt(_0x45dcaa(0xbf))/0x6*(parseInt(_0x45dcaa(0xb1))/0x7)+parseInt(_0x45dcaa(0x99))/0x8+-parseInt(_0x45dcaa(0xab))/0x9+parseInt(_0x45dcaa(0xa5))/0xa;if(_0x248cbf===_0xa3b678)break;else _0x1c9709['push'](_0x1c9709['shift']());}catch(_0x14aac3){_0x1c9709['push'](_0x1c9709['shift']());}}}(_0x7e1b,0x61816));function _0x7e1b(){const _0x4333b9=['CommandType','length','importXLSXToSnapshot','setConfig','42kKGqoR','FolderIcon','forEach','Disposable','sheets-exchange-client.config','OPERATION','_config','unit','UniverInstanceType','exportXLSXByUnitId','registerCommand','_initMenus','disposeWithMe','168052EvZvAe','exportXLSXBySnapshot','RibbonStartGroup','symbol','ExportXLSXOperation','type','UniverExchangeClientPlugin','Injector','2120CxkyZf','2431848pMZRsl','Plugin','exchange.upload','UNIVER_SHEET','UniverSheetsExchangeClientPlugin','get','toStringTag','defineProperty','MenuItemType','_commandService','WorkbookExportPermission','670739BdzvoA','14308310hqTRyn','merge','IExchangeOperateService','SHEET_EXCHANGE_CLIENT_PLUGIN','BUTTON','ICommandService','4346784IOTwKX','exchange.download','SUBITEMS','exchange.file','Module','exchange-client.operation.import-xlsx','546833sCzOsR','exchange-client.operation.export-xlsx','_injector','pluginName','onStarting','getCurrentRangeDisable$','getOwnPropertyDescriptor','15SmqLam','onReady','7408GuIbTl'];_0x7e1b=function(){return _0x4333b9;};return _0x7e1b();}Object[_0x396984(0xa0)](exports,Symbol[_0x396984(0x9f)],{'value':_0x396984(0xaf)});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':_0x396984(0xb0),'type':i[_0x396984(0xbb)]['OPERATION'],'handler':async _0x2f235e=>{const _0x1cd456=_0x396984,_0x522fb5=_0x2f235e[_0x1cd456(0x9e)](g[_0x1cd456(0xa7)]);return new URLSearchParams(location['search'])[_0x1cd456(0x9e)]('unit')?_0x522fb5['importXLSXToUnitId']():_0x522fb5[_0x1cd456(0xbd)](),!0x0;}},p={'id':_0x396984(0xb2),'type':i['CommandType'][_0x396984(0xc4)],'handler':async _0x9ce546=>{const _0x1ef0ba=_0x396984,_0x15bc62=_0x9ce546[_0x1ef0ba(0x9e)](g[_0x1ef0ba(0xa7)]);return new URLSearchParams(location['search'])[_0x1ef0ba(0x9e)](_0x1ef0ba(0xc6))?_0x15bc62[_0x1ef0ba(0xc8)]():_0x15bc62[_0x1ef0ba(0x91)](),!0x0;}},v=_0x396984(0xc3),h={},S='sheets-exchange-client.operation.exchange';function x(_0x529306){const _0x4eaace=_0x396984;return{'id':S,'type':c[_0x4eaace(0xa1)][_0x4eaace(0xad)],'icon':'DirectExportIcon','tooltip':_0x4eaace(0xae),'hidden$':c['getMenuHiddenObservable'](_0x529306,i[_0x4eaace(0xc7)][_0x4eaace(0x9c)]),'disabled$':I[_0x4eaace(0xb6)](_0x529306,{'workbookTypes':[_[_0x4eaace(0xa3)]]})};}function P(){const _0x1bdd3d=_0x396984;return{'id':l['id'],'type':c['MenuItemType']['BUTTON'],'title':_0x1bdd3d(0x9b),'icon':_0x1bdd3d(0xc0)};}function C(){const _0xbc8756=_0x396984;return{'id':p['id'],'type':c[_0xbc8756(0xa1)][_0xbc8756(0xa9)],'title':_0xbc8756(0xac),'icon':'ExportIcon'};}const f={[c[_0x396984(0x92)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x396984(0xb7)],y=(_0x402c81,_0x3f2b10,_0x4b4806,_0x91e811)=>{const _0x1005c4=_0x396984;for(var _0x42ae9d=_0x91e811>0x1?void 0x0:_0x91e811?T(_0x3f2b10,_0x4b4806):_0x3f2b10,_0x6e55c6=_0x402c81[_0x1005c4(0xbc)]-0x1,_0x18c3d1;_0x6e55c6>=0x0;_0x6e55c6--)(_0x18c3d1=_0x402c81[_0x6e55c6])&&(_0x42ae9d=_0x18c3d1(_0x42ae9d)||_0x42ae9d);return _0x42ae9d;},m=(_0x49eea7,_0x2d655c)=>(_0x8d2dbc,_0x5388a0)=>_0x2d655c(_0x8d2dbc,_0x5388a0,_0x49eea7);let u=class extends i[_0x396984(0xc2)]{constructor(_0x620c0a,_0x1a1c27){const _0x28f978=_0x396984;super(),this['_commandService']=_0x620c0a,this['_menuManagerService']=_0x1a1c27,this['_initCommands'](),this[_0x28f978(0xca)]();}['_initCommands'](){[l,p]['forEach'](_0x5e86fb=>{const _0x5e9e36=_0x4b9d;this[_0x5e9e36(0xcb)](this[_0x5e9e36(0xa2)][_0x5e9e36(0xc9)](_0x5e86fb));});}[_0x396984(0xca)](){this['_menuManagerService']['mergeMenu'](f);}};u=y([m(0x0,i[_0x396984(0xaa)]),m(0x1,c['IMenuManagerService'])],u);function _0x4b9d(_0x5a9f79,_0x4e27ed){_0x5a9f79=_0x5a9f79-0x90;const _0x7e1bb2=_0x7e1b();let _0x4b9d39=_0x7e1bb2[_0x5a9f79];return _0x4b9d39;}var O=Object['defineProperty'],U=Object['getOwnPropertyDescriptor'],X=(_0x3243a2,_0x5e3aba,_0x22d2da)=>_0x5e3aba in _0x3243a2?O(_0x3243a2,_0x5e3aba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22d2da}):_0x3243a2[_0x5e3aba]=_0x22d2da,N=(_0x5acd36,_0x5b5e05,_0x19937c,_0x28fc1f)=>{const _0x1bb43b=_0x396984;for(var _0x1ff4ef=_0x28fc1f>0x1?void 0x0:_0x28fc1f?U(_0x5b5e05,_0x19937c):_0x5b5e05,_0x1f102d=_0x5acd36[_0x1bb43b(0xbc)]-0x1,_0x353362;_0x1f102d>=0x0;_0x1f102d--)(_0x353362=_0x5acd36[_0x1f102d])&&(_0x1ff4ef=_0x353362(_0x1ff4ef)||_0x1ff4ef);return _0x1ff4ef;},d=(_0x494d30,_0xd6fbe3)=>(_0x13efc6,_0x476707)=>_0xd6fbe3(_0x13efc6,_0x476707,_0x494d30),E=(_0x17bffb,_0x5c07d5,_0x35cc44)=>X(_0x17bffb,typeof _0x5c07d5!=_0x396984(0x93)?_0x5c07d5+'':_0x5c07d5,_0x35cc44);const L=_0x396984(0xa8);exports[_0x396984(0x9d)]=class extends i[_0x396984(0x9a)]{constructor(_0x325490=h,_0x2f66e4,_0x4d6546){const _0x352fd7=_0x396984;super(),this[_0x352fd7(0xc5)]=_0x325490,this['_injector']=_0x2f66e4,this['_configService']=_0x4d6546;const {menu:_0x1ab3b4,..._0x66cbb6}=i[_0x352fd7(0xa6)]({},h,this[_0x352fd7(0xc5)]);_0x1ab3b4&&this['_configService'][_0x352fd7(0xbe)]('menu',_0x1ab3b4,{'merge':!0x0}),this['_configService']['setConfig'](v,_0x66cbb6);}[_0x396984(0xb5)](){const _0x12d0d6=_0x396984;[[u]][_0x12d0d6(0xc1)](_0x133fec=>this['_injector']['add'](_0x133fec));}[_0x396984(0xb9)](){const _0x44b8de=_0x396984;this[_0x44b8de(0xb3)]['get'](u);}},E(exports['UniverSheetsExchangeClientPlugin'],_0x396984(0xb4),L),E(exports[_0x396984(0x9d)],_0x396984(0x95),i[_0x396984(0xc7)]['UNIVER_SHEET']),exports['UniverSheetsExchangeClientPlugin']=N([i['DependentOn'](g[_0x396984(0x96)]),d(0x1,i['Inject'](i[_0x396984(0x97)])),d(0x2,i['IConfigService'])],exports[_0x396984(0x9d)]),exports[_0x396984(0x94)]=p,exports['ImportXLSXOperation']=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x140a9e=_0xb9d5;(function(_0x2ba63c,_0x11d8d9){const _0x407b2e=_0xb9d5,_0x26c4b5=_0x2ba63c();while(!![]){try{const _0x379f5c=-parseInt(_0x407b2e(0x11b))/0x1*(-parseInt(_0x407b2e(0x126))/0x2)+parseInt(_0x407b2e(0x127))/0x3+parseInt(_0x407b2e(0x11c))/0x4*(-parseInt(_0x407b2e(0x12d))/0x5)+-parseInt(_0x407b2e(0x117))/0x6+-parseInt(_0x407b2e(0x122))/0x7+-parseInt(_0x407b2e(0x12a))/0x8*(-parseInt(_0x407b2e(0x130))/0x9)+parseInt(_0x407b2e(0x12e))/0xa;if(_0x379f5c===_0x11d8d9)break;else _0x26c4b5['push'](_0x26c4b5['shift']());}catch(_0x131470){_0x26c4b5['push'](_0x26c4b5['shift']());}}}(_0x59f3,0x8e1df));import{IExchangeOperateService as _0x169537,UniverExchangeClientPlugin as _0x46fad2}from'@univerjs-pro/exchange-client';import{CommandType as _0x409cab,UniverInstanceType as _0x48c8cd,Disposable as _0x2a87ee,ICommandService as _0x4b6f9a,DependentOn as _0x1b1535,Inject as _0x397a3d,Injector as _0x17efa1,IConfigService as _0x30ba0d,Plugin as _0x2c556a,merge as _0x14c5f7}from'@univerjs/core';import{MenuItemType as _0xf31bad,getMenuHiddenObservable as _0xb68088,RibbonStartGroup as _0x591d2b,IMenuManagerService as _0x4a6e70}from'@univerjs/ui';import{WorkbookExportPermission as _0x57e506}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x1e1ff6}from'@univerjs/sheets-ui';const p={'id':_0x140a9e(0x112),'type':_0x409cab[_0x140a9e(0x10e)],'handler':async _0x13da04=>{const _0xcaaef8=_0x140a9e,_0x4e8027=_0x13da04['get'](_0x169537);return new URLSearchParams(location['search'])[_0xcaaef8(0x129)](_0xcaaef8(0x111))?_0x4e8027['importXLSXToUnitId']():_0x4e8027[_0xcaaef8(0x118)](),!0x0;}},u={'id':_0x140a9e(0x119),'type':_0x409cab[_0x140a9e(0x10e)],'handler':async _0x124255=>{const _0x505a2c=_0x140a9e,_0x165ecd=_0x124255[_0x505a2c(0x129)](_0x169537);return new URLSearchParams(location['search'])['get'](_0x505a2c(0x111))?_0x165ecd[_0x505a2c(0x114)]():_0x165ecd['exportXLSXBySnapshot'](),!0x0;}},H=_0x140a9e(0x131),l={},S='sheets-exchange-client.operation.exchange';function R(_0x296b65){const _0x1482ef=_0x140a9e;return{'id':S,'type':_0xf31bad['SUBITEMS'],'icon':_0x1482ef(0x123),'tooltip':_0x1482ef(0x135),'hidden$':_0xb68088(_0x296b65,_0x48c8cd[_0x1482ef(0x10f)]),'disabled$':_0x1e1ff6(_0x296b65,{'workbookTypes':[_0x57e506]})};}function w(){const _0x5334bb=_0x140a9e;return{'id':p['id'],'type':_0xf31bad[_0x5334bb(0x11a)],'title':_0x5334bb(0x115),'icon':_0x5334bb(0x132)};}function D(){const _0x457e3c=_0x140a9e;return{'id':u['id'],'type':_0xf31bad['BUTTON'],'title':_0x457e3c(0x124),'icon':'ExportIcon'};}const F={[_0x591d2b[_0x140a9e(0x10c)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x140a9e(0x11d)],A=(_0x171b22,_0x2dc032,_0x129b26,_0x515959)=>{const _0x54b996=_0x140a9e;for(var _0x477c9b=_0x515959>0x1?void 0x0:_0x515959?G(_0x2dc032,_0x129b26):_0x2dc032,_0x41f446=_0x171b22[_0x54b996(0x120)]-0x1,_0x2ed872;_0x41f446>=0x0;_0x41f446--)(_0x2ed872=_0x171b22[_0x41f446])&&(_0x477c9b=_0x2ed872(_0x477c9b)||_0x477c9b);return _0x477c9b;},d=(_0x40abb2,_0x1450c3)=>(_0x19c5db,_0x40fcd3)=>_0x1450c3(_0x19c5db,_0x40fcd3,_0x40abb2);let c=class extends _0x2a87ee{constructor(_0x45f053,_0x399541){const _0x2bc779=_0x140a9e;super(),this['_commandService']=_0x45f053,this['_menuManagerService']=_0x399541,this[_0x2bc779(0x125)](),this[_0x2bc779(0x136)]();}['_initCommands'](){[p,u]['forEach'](_0x559ca7=>{const _0x5b4ef5=_0xb9d5;this[_0x5b4ef5(0x116)](this[_0x5b4ef5(0x110)][_0x5b4ef5(0x137)](_0x559ca7));});}[_0x140a9e(0x136)](){const _0x1f67e7=_0x140a9e;this[_0x1f67e7(0x12f)]['mergeMenu'](F);}};c=A([d(0x0,_0x4b6f9a),d(0x1,_0x4a6e70)],c);var j=Object[_0x140a9e(0x128)],B=Object[_0x140a9e(0x11d)],$=(_0x15b87e,_0x1cda90,_0x2b58cf)=>_0x1cda90 in _0x15b87e?j(_0x15b87e,_0x1cda90,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b58cf}):_0x15b87e[_0x1cda90]=_0x2b58cf,V=(_0x37a686,_0x54e02c,_0x1821be,_0x106bf2)=>{const _0x47d74d=_0x140a9e;for(var _0x168916=_0x106bf2>0x1?void 0x0:_0x106bf2?B(_0x54e02c,_0x1821be):_0x54e02c,_0x30d5fc=_0x37a686[_0x47d74d(0x120)]-0x1,_0x2d4500;_0x30d5fc>=0x0;_0x30d5fc--)(_0x2d4500=_0x37a686[_0x30d5fc])&&(_0x168916=_0x2d4500(_0x168916)||_0x168916);return _0x168916;},_=(_0xf28425,_0x5e16f3)=>(_0x1a5fdb,_0x27e6a3)=>_0x5e16f3(_0x1a5fdb,_0x27e6a3,_0xf28425),I=(_0x59612f,_0x68bab9,_0xd02921)=>$(_0x59612f,typeof _0x68bab9!='symbol'?_0x68bab9+'':_0x68bab9,_0xd02921);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x2c556a{constructor(_0x2c52db=l,_0x3e580c,_0x39234b){const _0x29c685=_0x140a9e;super(),this[_0x29c685(0x121)]=_0x2c52db,this[_0x29c685(0x133)]=_0x3e580c,this[_0x29c685(0x10d)]=_0x39234b;const {menu:_0x1516bd,..._0x440b5a}=_0x14c5f7({},l,this[_0x29c685(0x121)]);_0x1516bd&&this['_configService'][_0x29c685(0x12c)]('menu',_0x1516bd,{'merge':!0x0}),this[_0x29c685(0x10d)][_0x29c685(0x12c)](H,_0x440b5a);}[_0x140a9e(0x12b)](){const _0x9c3e5d=_0x140a9e;[[c]][_0x9c3e5d(0x134)](_0x402565=>this[_0x9c3e5d(0x133)]['add'](_0x402565));}[_0x140a9e(0x11e)](){const _0x2d3f0d=_0x140a9e;this[_0x2d3f0d(0x133)][_0x2d3f0d(0x129)](c);}};I(s,_0x140a9e(0x11f),W),I(s,_0x140a9e(0x113),_0x48c8cd[_0x140a9e(0x10f)]),s=V([_0x1b1535(_0x46fad2),_(0x1,_0x397a3d(_0x17efa1)),_(0x2,_0x30ba0d)],s);function _0x59f3(){const _0x272232=['exportXLSXByUnitId','exchange.upload','disposeWithMe','5878854cDBMWb','importXLSXToSnapshot','exchange-client.operation.export-xlsx','BUTTON','7847JpXTNe','212Jtdapx','getOwnPropertyDescriptor','onReady','pluginName','length','_config','2600899KWZqhi','DirectExportIcon','exchange.download','_initCommands','190rImPJJ','1645140QyulPA','defineProperty','get','10648fzBOFC','onStarting','setConfig','70795VBlGOZ','2706880AGBuFH','_menuManagerService','7569xvCqkB','sheets-exchange-client.config','FolderIcon','_injector','forEach','exchange.file','_initMenus','registerCommand','OTHERS','_configService','OPERATION','UNIVER_SHEET','_commandService','unit','exchange-client.operation.import-xlsx','type'];_0x59f3=function(){return _0x272232;};return _0x59f3();}function _0xb9d5(_0x32eb41,_0x46ee20){_0x32eb41=_0x32eb41-0x10c;const _0x59f32d=_0x59f3();let _0xb9d563=_0x59f32d[_0x32eb41];return _0xb9d563;}export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x12cee0=_0x4590;(function(_0x3315d6,_0x4cea44){const _0x2c4575=_0x4590,_0x5d77fb=_0x3315d6();while(!![]){try{const _0x1ac665=parseInt(_0x2c4575(0x1d2))/0x1*(parseInt(_0x2c4575(0x1d0))/0x2)+parseInt(_0x2c4575(0x1cd))/0x3*(parseInt(_0x2c4575(0x1e2))/0x4)+-parseInt(_0x2c4575(0x1f0))/0x5*(-parseInt(_0x2c4575(0x1c1))/0x6)+parseInt(_0x2c4575(0x1f3))/0x7+parseInt(_0x2c4575(0x1d9))/0x8*(parseInt(_0x2c4575(0x1dc))/0x9)+parseInt(_0x2c4575(0x1ef))/0xa*(parseInt(_0x2c4575(0x1c8))/0xb)+parseInt(_0x2c4575(0x1c9))/0xc*(-parseInt(_0x2c4575(0x1d5))/0xd);if(_0x1ac665===_0x4cea44)break;else _0x5d77fb['push'](_0x5d77fb['shift']());}catch(_0x333b45){_0x5d77fb['push'](_0x5d77fb['shift']());}}}(_0x534b,0x6ed9a));import{IExchangeOperateService as _0x461c5a,UniverExchangeClientPlugin as _0x4022a3}from'@univerjs-pro/exchange-client';import{CommandType as _0x559989,UniverInstanceType as _0x2e97da,Disposable as _0x36a821,ICommandService as _0x5502ae,DependentOn as _0x352846,Inject as _0x2ec430,Injector as _0x4d9353,IConfigService as _0x37e567,Plugin as _0x3dc41f,merge as _0x32b5c6}from'@univerjs/core';import{MenuItemType as _0x4bdfa0,getMenuHiddenObservable as _0x3e7d3d,RibbonStartGroup as _0x4f33bf,IMenuManagerService as _0xaf057d}from'@univerjs/ui';import{WorkbookExportPermission as _0x11e1bc}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x3ac9d0}from'@univerjs/sheets-ui';const p={'id':_0x12cee0(0x1ce),'type':_0x559989[_0x12cee0(0x1ea)],'handler':async _0x18b255=>{const _0x410cf4=_0x12cee0,_0x14ac00=_0x18b255[_0x410cf4(0x1c2)](_0x461c5a);return new URLSearchParams(location[_0x410cf4(0x1bf)])[_0x410cf4(0x1c2)](_0x410cf4(0x1f2))?_0x14ac00['importXLSXToUnitId']():_0x14ac00[_0x410cf4(0x1df)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x559989['OPERATION'],'handler':async _0x498d01=>{const _0x7cacc7=_0x12cee0,_0x4fa820=_0x498d01[_0x7cacc7(0x1c2)](_0x461c5a);return new URLSearchParams(location[_0x7cacc7(0x1bf)])[_0x7cacc7(0x1c2)](_0x7cacc7(0x1f2))?_0x4fa820[_0x7cacc7(0x1db)]():_0x4fa820[_0x7cacc7(0x1c3)](),!0x0;}},H='sheets-exchange-client.config',l={},S='sheets-exchange-client.operation.exchange';function R(_0x517224){const _0x560cb2=_0x12cee0;return{'id':S,'type':_0x4bdfa0[_0x560cb2(0x1c0)],'icon':_0x560cb2(0x1cf),'tooltip':_0x560cb2(0x1d8),'hidden$':_0x3e7d3d(_0x517224,_0x2e97da[_0x560cb2(0x1e0)]),'disabled$':_0x3ac9d0(_0x517224,{'workbookTypes':[_0x11e1bc]})};}function w(){const _0x2eb821=_0x12cee0;return{'id':p['id'],'type':_0x4bdfa0[_0x2eb821(0x1d7)],'title':_0x2eb821(0x1ec),'icon':_0x2eb821(0x1e3)};}function D(){const _0x3b980c=_0x12cee0;return{'id':u['id'],'type':_0x4bdfa0[_0x3b980c(0x1d7)],'title':_0x3b980c(0x1e4),'icon':_0x3b980c(0x1c7)};}const F={[_0x4f33bf['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};function _0x4590(_0x50cf3f,_0x181edc){_0x50cf3f=_0x50cf3f-0x1bf;const _0x534b2c=_0x534b();let _0x459074=_0x534b2c[_0x50cf3f];return _0x459074;}function _0x534b(){const _0x3c8ba4=['118856GofbQD','_injector','exportXLSXByUnitId','351NKFref','menu','_initMenus','importXLSXToSnapshot','UNIVER_SHEET','_commandService','532388HOmzpB','FolderIcon','exchange.download','SHEET_EXCHANGE_CLIENT_PLUGIN','add','type','_configService','defineProperty','OPERATION','_menuManagerService','exchange.upload','length','symbol','10ePfRNp','485JTOmnd','forEach','unit','5272414EwbPPz','search','SUBITEMS','2172tJvDLK','get','exportXLSXBySnapshot','pluginName','registerCommand','disposeWithMe','ExportIcon','1663673XpNCuJ','24397044XFTdzN','onReady','getOwnPropertyDescriptor','mergeMenu','3nfJTbn','exchange-client.operation.import-xlsx','DirectExportIcon','22268iNIpeI','_config','75HJGIIO','setConfig','_initCommands','13xAGbzs','onStarting','BUTTON','exchange.file'];_0x534b=function(){return _0x3c8ba4;};return _0x534b();}var G=Object['getOwnPropertyDescriptor'],A=(_0x1b8ef1,_0x3e1b26,_0x57ad44,_0x4983c6)=>{const _0x5a7113=_0x12cee0;for(var _0x3ddc1c=_0x4983c6>0x1?void 0x0:_0x4983c6?G(_0x3e1b26,_0x57ad44):_0x3e1b26,_0x46e012=_0x1b8ef1[_0x5a7113(0x1ed)]-0x1,_0x4bccb1;_0x46e012>=0x0;_0x46e012--)(_0x4bccb1=_0x1b8ef1[_0x46e012])&&(_0x3ddc1c=_0x4bccb1(_0x3ddc1c)||_0x3ddc1c);return _0x3ddc1c;},d=(_0x3ce801,_0x150987)=>(_0x2705f9,_0x49df4a)=>_0x150987(_0x2705f9,_0x49df4a,_0x3ce801);let c=class extends _0x36a821{constructor(_0x3c01f8,_0x5339ba){const _0x15a5a8=_0x12cee0;super(),this[_0x15a5a8(0x1e1)]=_0x3c01f8,this[_0x15a5a8(0x1eb)]=_0x5339ba,this['_initCommands'](),this[_0x15a5a8(0x1de)]();}[_0x12cee0(0x1d4)](){const _0x22a5a8=_0x12cee0;[p,u][_0x22a5a8(0x1f1)](_0x2586c5=>{const _0x5c4dcf=_0x22a5a8;this[_0x5c4dcf(0x1c6)](this[_0x5c4dcf(0x1e1)][_0x5c4dcf(0x1c5)](_0x2586c5));});}[_0x12cee0(0x1de)](){const _0x28e703=_0x12cee0;this[_0x28e703(0x1eb)][_0x28e703(0x1cc)](F);}};c=A([d(0x0,_0x5502ae),d(0x1,_0xaf057d)],c);var j=Object[_0x12cee0(0x1e9)],B=Object[_0x12cee0(0x1cb)],$=(_0x54d3e0,_0x4b0cb6,_0x4247eb)=>_0x4b0cb6 in _0x54d3e0?j(_0x54d3e0,_0x4b0cb6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4247eb}):_0x54d3e0[_0x4b0cb6]=_0x4247eb,V=(_0x347308,_0x5d208f,_0x42a988,_0x10eeb7)=>{const _0x1b1aed=_0x12cee0;for(var _0x30368d=_0x10eeb7>0x1?void 0x0:_0x10eeb7?B(_0x5d208f,_0x42a988):_0x5d208f,_0x50ef59=_0x347308[_0x1b1aed(0x1ed)]-0x1,_0x1e01f3;_0x50ef59>=0x0;_0x50ef59--)(_0x1e01f3=_0x347308[_0x50ef59])&&(_0x30368d=_0x1e01f3(_0x30368d)||_0x30368d);return _0x30368d;},_=(_0x277e30,_0x5ad228)=>(_0x975e8f,_0x4ff4d9)=>_0x5ad228(_0x975e8f,_0x4ff4d9,_0x277e30),I=(_0xbdf75c,_0x502503,_0x187e18)=>$(_0xbdf75c,typeof _0x502503!=_0x12cee0(0x1ee)?_0x502503+'':_0x502503,_0x187e18);const W=_0x12cee0(0x1e5);let s=class extends _0x3dc41f{constructor(_0x534d33=l,_0x6114b1,_0x2c635a){const _0x794614=_0x12cee0;super(),this['_config']=_0x534d33,this[_0x794614(0x1da)]=_0x6114b1,this['_configService']=_0x2c635a;const {menu:_0xe2abf0,..._0x3790e2}=_0x32b5c6({},l,this[_0x794614(0x1d1)]);_0xe2abf0&&this[_0x794614(0x1e8)]['setConfig'](_0x794614(0x1dd),_0xe2abf0,{'merge':!0x0}),this[_0x794614(0x1e8)][_0x794614(0x1d3)](H,_0x3790e2);}[_0x12cee0(0x1d6)](){const _0x5782c5=_0x12cee0;[[c]][_0x5782c5(0x1f1)](_0x1590ee=>this['_injector'][_0x5782c5(0x1e6)](_0x1590ee));}[_0x12cee0(0x1ca)](){this['_injector']['get'](c);}};I(s,_0x12cee0(0x1c4),W),I(s,_0x12cee0(0x1e7),_0x2e97da['UNIVER_SHEET']),s=V([_0x352846(_0x4022a3),_(0x1,_0x2ec430(_0x4d9353)),_(0x2,_0x37e567)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x140a9e=_0xb9d5;(function(_0x2ba63c,_0x11d8d9){const _0x407b2e=_0xb9d5,_0x26c4b5=_0x2ba63c();while(!![]){try{const _0x379f5c=-parseInt(_0x407b2e(0x11b))/0x1*(-parseInt(_0x407b2e(0x126))/0x2)+parseInt(_0x407b2e(0x127))/0x3+parseInt(_0x407b2e(0x11c))/0x4*(-parseInt(_0x407b2e(0x12d))/0x5)+-parseInt(_0x407b2e(0x117))/0x6+-parseInt(_0x407b2e(0x122))/0x7+-parseInt(_0x407b2e(0x12a))/0x8*(-parseInt(_0x407b2e(0x130))/0x9)+parseInt(_0x407b2e(0x12e))/0xa;if(_0x379f5c===_0x11d8d9)break;else _0x26c4b5['push'](_0x26c4b5['shift']());}catch(_0x131470){_0x26c4b5['push'](_0x26c4b5['shift']());}}}(_0x59f3,0x8e1df));import{IExchangeOperateService as _0x169537,UniverExchangeClientPlugin as _0x46fad2}from'@univerjs-pro/exchange-client';import{CommandType as _0x409cab,UniverInstanceType as _0x48c8cd,Disposable as _0x2a87ee,ICommandService as _0x4b6f9a,DependentOn as _0x1b1535,Inject as _0x397a3d,Injector as _0x17efa1,IConfigService as _0x30ba0d,Plugin as _0x2c556a,merge as _0x14c5f7}from'@univerjs/core';import{MenuItemType as _0xf31bad,getMenuHiddenObservable as _0xb68088,RibbonStartGroup as _0x591d2b,IMenuManagerService as _0x4a6e70}from'@univerjs/ui';import{WorkbookExportPermission as _0x57e506}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x1e1ff6}from'@univerjs/sheets-ui';const p={'id':_0x140a9e(0x112),'type':_0x409cab[_0x140a9e(0x10e)],'handler':async _0x13da04=>{const _0xcaaef8=_0x140a9e,_0x4e8027=_0x13da04['get'](_0x169537);return new URLSearchParams(location['search'])[_0xcaaef8(0x129)](_0xcaaef8(0x111))?_0x4e8027['importXLSXToUnitId']():_0x4e8027[_0xcaaef8(0x118)](),!0x0;}},u={'id':_0x140a9e(0x119),'type':_0x409cab[_0x140a9e(0x10e)],'handler':async _0x124255=>{const _0x505a2c=_0x140a9e,_0x165ecd=_0x124255[_0x505a2c(0x129)](_0x169537);return new URLSearchParams(location['search'])['get'](_0x505a2c(0x111))?_0x165ecd[_0x505a2c(0x114)]():_0x165ecd['exportXLSXBySnapshot'](),!0x0;}},H=_0x140a9e(0x131),l={},S='sheets-exchange-client.operation.exchange';function R(_0x296b65){const _0x1482ef=_0x140a9e;return{'id':S,'type':_0xf31bad['SUBITEMS'],'icon':_0x1482ef(0x123),'tooltip':_0x1482ef(0x135),'hidden$':_0xb68088(_0x296b65,_0x48c8cd[_0x1482ef(0x10f)]),'disabled$':_0x1e1ff6(_0x296b65,{'workbookTypes':[_0x57e506]})};}function w(){const _0x5334bb=_0x140a9e;return{'id':p['id'],'type':_0xf31bad[_0x5334bb(0x11a)],'title':_0x5334bb(0x115),'icon':_0x5334bb(0x132)};}function D(){const _0x457e3c=_0x140a9e;return{'id':u['id'],'type':_0xf31bad['BUTTON'],'title':_0x457e3c(0x124),'icon':'ExportIcon'};}const F={[_0x591d2b[_0x140a9e(0x10c)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x140a9e(0x11d)],A=(_0x171b22,_0x2dc032,_0x129b26,_0x515959)=>{const _0x54b996=_0x140a9e;for(var _0x477c9b=_0x515959>0x1?void 0x0:_0x515959?G(_0x2dc032,_0x129b26):_0x2dc032,_0x41f446=_0x171b22[_0x54b996(0x120)]-0x1,_0x2ed872;_0x41f446>=0x0;_0x41f446--)(_0x2ed872=_0x171b22[_0x41f446])&&(_0x477c9b=_0x2ed872(_0x477c9b)||_0x477c9b);return _0x477c9b;},d=(_0x40abb2,_0x1450c3)=>(_0x19c5db,_0x40fcd3)=>_0x1450c3(_0x19c5db,_0x40fcd3,_0x40abb2);let c=class extends _0x2a87ee{constructor(_0x45f053,_0x399541){const _0x2bc779=_0x140a9e;super(),this['_commandService']=_0x45f053,this['_menuManagerService']=_0x399541,this[_0x2bc779(0x125)](),this[_0x2bc779(0x136)]();}['_initCommands'](){[p,u]['forEach'](_0x559ca7=>{const _0x5b4ef5=_0xb9d5;this[_0x5b4ef5(0x116)](this[_0x5b4ef5(0x110)][_0x5b4ef5(0x137)](_0x559ca7));});}[_0x140a9e(0x136)](){const _0x1f67e7=_0x140a9e;this[_0x1f67e7(0x12f)]['mergeMenu'](F);}};c=A([d(0x0,_0x4b6f9a),d(0x1,_0x4a6e70)],c);var j=Object[_0x140a9e(0x128)],B=Object[_0x140a9e(0x11d)],$=(_0x15b87e,_0x1cda90,_0x2b58cf)=>_0x1cda90 in _0x15b87e?j(_0x15b87e,_0x1cda90,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b58cf}):_0x15b87e[_0x1cda90]=_0x2b58cf,V=(_0x37a686,_0x54e02c,_0x1821be,_0x106bf2)=>{const _0x47d74d=_0x140a9e;for(var _0x168916=_0x106bf2>0x1?void 0x0:_0x106bf2?B(_0x54e02c,_0x1821be):_0x54e02c,_0x30d5fc=_0x37a686[_0x47d74d(0x120)]-0x1,_0x2d4500;_0x30d5fc>=0x0;_0x30d5fc--)(_0x2d4500=_0x37a686[_0x30d5fc])&&(_0x168916=_0x2d4500(_0x168916)||_0x168916);return _0x168916;},_=(_0xf28425,_0x5e16f3)=>(_0x1a5fdb,_0x27e6a3)=>_0x5e16f3(_0x1a5fdb,_0x27e6a3,_0xf28425),I=(_0x59612f,_0x68bab9,_0xd02921)=>$(_0x59612f,typeof _0x68bab9!='symbol'?_0x68bab9+'':_0x68bab9,_0xd02921);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x2c556a{constructor(_0x2c52db=l,_0x3e580c,_0x39234b){const _0x29c685=_0x140a9e;super(),this[_0x29c685(0x121)]=_0x2c52db,this[_0x29c685(0x133)]=_0x3e580c,this[_0x29c685(0x10d)]=_0x39234b;const {menu:_0x1516bd,..._0x440b5a}=_0x14c5f7({},l,this[_0x29c685(0x121)]);_0x1516bd&&this['_configService'][_0x29c685(0x12c)]('menu',_0x1516bd,{'merge':!0x0}),this[_0x29c685(0x10d)][_0x29c685(0x12c)](H,_0x440b5a);}[_0x140a9e(0x12b)](){const _0x9c3e5d=_0x140a9e;[[c]][_0x9c3e5d(0x134)](_0x402565=>this[_0x9c3e5d(0x133)]['add'](_0x402565));}[_0x140a9e(0x11e)](){const _0x2d3f0d=_0x140a9e;this[_0x2d3f0d(0x133)][_0x2d3f0d(0x129)](c);}};I(s,_0x140a9e(0x11f),W),I(s,_0x140a9e(0x113),_0x48c8cd[_0x140a9e(0x10f)]),s=V([_0x1b1535(_0x46fad2),_(0x1,_0x397a3d(_0x17efa1)),_(0x2,_0x30ba0d)],s);function _0x59f3(){const _0x272232=['exportXLSXByUnitId','exchange.upload','disposeWithMe','5878854cDBMWb','importXLSXToSnapshot','exchange-client.operation.export-xlsx','BUTTON','7847JpXTNe','212Jtdapx','getOwnPropertyDescriptor','onReady','pluginName','length','_config','2600899KWZqhi','DirectExportIcon','exchange.download','_initCommands','190rImPJJ','1645140QyulPA','defineProperty','get','10648fzBOFC','onStarting','setConfig','70795VBlGOZ','2706880AGBuFH','_menuManagerService','7569xvCqkB','sheets-exchange-client.config','FolderIcon','_injector','forEach','exchange.file','_initMenus','registerCommand','OTHERS','_configService','OPERATION','UNIVER_SHEET','_commandService','unit','exchange-client.operation.import-xlsx','type'];_0x59f3=function(){return _0x272232;};return _0x59f3();}function _0xb9d5(_0x32eb41,_0x46ee20){_0x32eb41=_0x32eb41-0x10c;const _0x59f32d=_0x59f3();let _0xb9d563=_0x59f32d[_0x32eb41];return _0xb9d563;}export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x12cee0=_0x4590;(function(_0x3315d6,_0x4cea44){const _0x2c4575=_0x4590,_0x5d77fb=_0x3315d6();while(!![]){try{const _0x1ac665=parseInt(_0x2c4575(0x1d2))/0x1*(parseInt(_0x2c4575(0x1d0))/0x2)+parseInt(_0x2c4575(0x1cd))/0x3*(parseInt(_0x2c4575(0x1e2))/0x4)+-parseInt(_0x2c4575(0x1f0))/0x5*(-parseInt(_0x2c4575(0x1c1))/0x6)+parseInt(_0x2c4575(0x1f3))/0x7+parseInt(_0x2c4575(0x1d9))/0x8*(parseInt(_0x2c4575(0x1dc))/0x9)+parseInt(_0x2c4575(0x1ef))/0xa*(parseInt(_0x2c4575(0x1c8))/0xb)+parseInt(_0x2c4575(0x1c9))/0xc*(-parseInt(_0x2c4575(0x1d5))/0xd);if(_0x1ac665===_0x4cea44)break;else _0x5d77fb['push'](_0x5d77fb['shift']());}catch(_0x333b45){_0x5d77fb['push'](_0x5d77fb['shift']());}}}(_0x534b,0x6ed9a));import{IExchangeOperateService as _0x461c5a,UniverExchangeClientPlugin as _0x4022a3}from'@univerjs-pro/exchange-client';import{CommandType as _0x559989,UniverInstanceType as _0x2e97da,Disposable as _0x36a821,ICommandService as _0x5502ae,DependentOn as _0x352846,Inject as _0x2ec430,Injector as _0x4d9353,IConfigService as _0x37e567,Plugin as _0x3dc41f,merge as _0x32b5c6}from'@univerjs/core';import{MenuItemType as _0x4bdfa0,getMenuHiddenObservable as _0x3e7d3d,RibbonStartGroup as _0x4f33bf,IMenuManagerService as _0xaf057d}from'@univerjs/ui';import{WorkbookExportPermission as _0x11e1bc}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x3ac9d0}from'@univerjs/sheets-ui';const p={'id':_0x12cee0(0x1ce),'type':_0x559989[_0x12cee0(0x1ea)],'handler':async _0x18b255=>{const _0x410cf4=_0x12cee0,_0x14ac00=_0x18b255[_0x410cf4(0x1c2)](_0x461c5a);return new URLSearchParams(location[_0x410cf4(0x1bf)])[_0x410cf4(0x1c2)](_0x410cf4(0x1f2))?_0x14ac00['importXLSXToUnitId']():_0x14ac00[_0x410cf4(0x1df)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x559989['OPERATION'],'handler':async _0x498d01=>{const _0x7cacc7=_0x12cee0,_0x4fa820=_0x498d01[_0x7cacc7(0x1c2)](_0x461c5a);return new URLSearchParams(location[_0x7cacc7(0x1bf)])[_0x7cacc7(0x1c2)](_0x7cacc7(0x1f2))?_0x4fa820[_0x7cacc7(0x1db)]():_0x4fa820[_0x7cacc7(0x1c3)](),!0x0;}},H='sheets-exchange-client.config',l={},S='sheets-exchange-client.operation.exchange';function R(_0x517224){const _0x560cb2=_0x12cee0;return{'id':S,'type':_0x4bdfa0[_0x560cb2(0x1c0)],'icon':_0x560cb2(0x1cf),'tooltip':_0x560cb2(0x1d8),'hidden$':_0x3e7d3d(_0x517224,_0x2e97da[_0x560cb2(0x1e0)]),'disabled$':_0x3ac9d0(_0x517224,{'workbookTypes':[_0x11e1bc]})};}function w(){const _0x2eb821=_0x12cee0;return{'id':p['id'],'type':_0x4bdfa0[_0x2eb821(0x1d7)],'title':_0x2eb821(0x1ec),'icon':_0x2eb821(0x1e3)};}function D(){const _0x3b980c=_0x12cee0;return{'id':u['id'],'type':_0x4bdfa0[_0x3b980c(0x1d7)],'title':_0x3b980c(0x1e4),'icon':_0x3b980c(0x1c7)};}const F={[_0x4f33bf['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};function _0x4590(_0x50cf3f,_0x181edc){_0x50cf3f=_0x50cf3f-0x1bf;const _0x534b2c=_0x534b();let _0x459074=_0x534b2c[_0x50cf3f];return _0x459074;}function _0x534b(){const _0x3c8ba4=['118856GofbQD','_injector','exportXLSXByUnitId','351NKFref','menu','_initMenus','importXLSXToSnapshot','UNIVER_SHEET','_commandService','532388HOmzpB','FolderIcon','exchange.download','SHEET_EXCHANGE_CLIENT_PLUGIN','add','type','_configService','defineProperty','OPERATION','_menuManagerService','exchange.upload','length','symbol','10ePfRNp','485JTOmnd','forEach','unit','5272414EwbPPz','search','SUBITEMS','2172tJvDLK','get','exportXLSXBySnapshot','pluginName','registerCommand','disposeWithMe','ExportIcon','1663673XpNCuJ','24397044XFTdzN','onReady','getOwnPropertyDescriptor','mergeMenu','3nfJTbn','exchange-client.operation.import-xlsx','DirectExportIcon','22268iNIpeI','_config','75HJGIIO','setConfig','_initCommands','13xAGbzs','onStarting','BUTTON','exchange.file'];_0x534b=function(){return _0x3c8ba4;};return _0x534b();}var G=Object['getOwnPropertyDescriptor'],A=(_0x1b8ef1,_0x3e1b26,_0x57ad44,_0x4983c6)=>{const _0x5a7113=_0x12cee0;for(var _0x3ddc1c=_0x4983c6>0x1?void 0x0:_0x4983c6?G(_0x3e1b26,_0x57ad44):_0x3e1b26,_0x46e012=_0x1b8ef1[_0x5a7113(0x1ed)]-0x1,_0x4bccb1;_0x46e012>=0x0;_0x46e012--)(_0x4bccb1=_0x1b8ef1[_0x46e012])&&(_0x3ddc1c=_0x4bccb1(_0x3ddc1c)||_0x3ddc1c);return _0x3ddc1c;},d=(_0x3ce801,_0x150987)=>(_0x2705f9,_0x49df4a)=>_0x150987(_0x2705f9,_0x49df4a,_0x3ce801);let c=class extends _0x36a821{constructor(_0x3c01f8,_0x5339ba){const _0x15a5a8=_0x12cee0;super(),this[_0x15a5a8(0x1e1)]=_0x3c01f8,this[_0x15a5a8(0x1eb)]=_0x5339ba,this['_initCommands'](),this[_0x15a5a8(0x1de)]();}[_0x12cee0(0x1d4)](){const _0x22a5a8=_0x12cee0;[p,u][_0x22a5a8(0x1f1)](_0x2586c5=>{const _0x5c4dcf=_0x22a5a8;this[_0x5c4dcf(0x1c6)](this[_0x5c4dcf(0x1e1)][_0x5c4dcf(0x1c5)](_0x2586c5));});}[_0x12cee0(0x1de)](){const _0x28e703=_0x12cee0;this[_0x28e703(0x1eb)][_0x28e703(0x1cc)](F);}};c=A([d(0x0,_0x5502ae),d(0x1,_0xaf057d)],c);var j=Object[_0x12cee0(0x1e9)],B=Object[_0x12cee0(0x1cb)],$=(_0x54d3e0,_0x4b0cb6,_0x4247eb)=>_0x4b0cb6 in _0x54d3e0?j(_0x54d3e0,_0x4b0cb6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4247eb}):_0x54d3e0[_0x4b0cb6]=_0x4247eb,V=(_0x347308,_0x5d208f,_0x42a988,_0x10eeb7)=>{const _0x1b1aed=_0x12cee0;for(var _0x30368d=_0x10eeb7>0x1?void 0x0:_0x10eeb7?B(_0x5d208f,_0x42a988):_0x5d208f,_0x50ef59=_0x347308[_0x1b1aed(0x1ed)]-0x1,_0x1e01f3;_0x50ef59>=0x0;_0x50ef59--)(_0x1e01f3=_0x347308[_0x50ef59])&&(_0x30368d=_0x1e01f3(_0x30368d)||_0x30368d);return _0x30368d;},_=(_0x277e30,_0x5ad228)=>(_0x975e8f,_0x4ff4d9)=>_0x5ad228(_0x975e8f,_0x4ff4d9,_0x277e30),I=(_0xbdf75c,_0x502503,_0x187e18)=>$(_0xbdf75c,typeof _0x502503!=_0x12cee0(0x1ee)?_0x502503+'':_0x502503,_0x187e18);const W=_0x12cee0(0x1e5);let s=class extends _0x3dc41f{constructor(_0x534d33=l,_0x6114b1,_0x2c635a){const _0x794614=_0x12cee0;super(),this['_config']=_0x534d33,this[_0x794614(0x1da)]=_0x6114b1,this['_configService']=_0x2c635a;const {menu:_0xe2abf0,..._0x3790e2}=_0x32b5c6({},l,this[_0x794614(0x1d1)]);_0xe2abf0&&this[_0x794614(0x1e8)]['setConfig'](_0x794614(0x1dd),_0xe2abf0,{'merge':!0x0}),this[_0x794614(0x1e8)][_0x794614(0x1d3)](H,_0x3790e2);}[_0x12cee0(0x1d6)](){const _0x5782c5=_0x12cee0;[[c]][_0x5782c5(0x1f1)](_0x1590ee=>this['_injector'][_0x5782c5(0x1e6)](_0x1590ee));}[_0x12cee0(0x1ca)](){this['_injector']['get'](c);}};I(s,_0x12cee0(0x1c4),W),I(s,_0x12cee0(0x1e7),_0x2e97da['UNIVER_SHEET']),s=V([_0x352846(_0x4022a3),_(0x1,_0x2ec430(_0x4d9353)),_(0x2,_0x37e567)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x12fa(){const _0x215fbc=['UniverUi','onReady','FolderIcon','WorkbookExportPermission','10085jmxNCO','exchange.file','exports','getMenuHiddenObservable','length','exportXLSXBySnapshot','exportXLSXByUnitId','_initCommands','symbol','IConfigService','importXLSXToSnapshot','sheets-exchange-client.config','forEach','BUTTON','unit','CommandType','get','UniverSheets','3607665JyUidB','ExportIcon','@univerjs-pro/exchange-client','disposeWithMe','_initMenus','sheets-exchange-client.operation.exchange','Disposable','923055dqPjSF','MenuItemType','OPERATION','Module','_injector','22912590jhZMNI','DependentOn','8713103ZXlKXx','SHEET_EXCHANGE_CLIENT_PLUGIN','5256456wxNaYx','OTHERS','exchange-client.operation.import-xlsx','UniverProSheetsExchangeClient','2916LaBxCU','IMenuManagerService','add','amd','_configService','onStarting','UNIVER_SHEET','_commandService','type','UniverSheetsExchangeClientPlugin','9IYbxof','4ugZvvM','_menuManagerService','exchange-client.operation.export-xlsx','UniverInstanceType','defineProperty','search','815114ZSinIW','UniverCore','UniverProExchangeClient','Inject','exchange.download','getOwnPropertyDescriptor','Plugin','getCurrentRangeDisable$','merge','Injector','DirectExportIcon','_config','setConfig'];_0x12fa=function(){return _0x215fbc;};return _0x12fa();}function _0x335f(_0x1f0f89,_0x3d4a45){_0x1f0f89=_0x1f0f89-0x162;const _0x12faed=_0x12fa();let _0x335f1c=_0x12faed[_0x1f0f89];return _0x335f1c;}(function(_0x4b7a22,_0x25afd8){const _0x213ffc=_0x335f,_0x239f9a=_0x4b7a22();while(!![]){try{const _0x41f151=parseInt(_0x213ffc(0x174))/0x1+parseInt(_0x213ffc(0x192))/0x2+-parseInt(_0x213ffc(0x16d))/0x3*(parseInt(_0x213ffc(0x18c))/0x4)+-parseInt(_0x213ffc(0x1a3))/0x5*(parseInt(_0x213ffc(0x181))/0x6)+-parseInt(_0x213ffc(0x17b))/0x7+-parseInt(_0x213ffc(0x17d))/0x8*(-parseInt(_0x213ffc(0x18b))/0x9)+parseInt(_0x213ffc(0x179))/0xa;if(_0x41f151===_0x25afd8)break;else _0x239f9a['push'](_0x239f9a['shift']());}catch(_0x3e043d){_0x239f9a['push'](_0x239f9a['shift']());}}}(_0x12fa,0xcfdb6),function(_0x5b2644,_0x18f7c0){const _0x520d60=_0x335f;typeof exports=='object'&&typeof module<'u'?_0x18f7c0(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x520d60(0x184)]?define([_0x520d60(0x1a5),_0x520d60(0x16f),'@univerjs/core','@univerjs/ui','@univerjs/sheets','@univerjs/sheets-ui'],_0x18f7c0):(_0x5b2644=typeof globalThis<'u'?globalThis:_0x5b2644||self,_0x18f7c0(_0x5b2644[_0x520d60(0x180)]={},_0x5b2644[_0x520d60(0x194)],_0x5b2644[_0x520d60(0x193)],_0x5b2644[_0x520d60(0x19f)],_0x5b2644[_0x520d60(0x16c)],_0x5b2644['UniverSheetsUi']));}(this,function(_0x35d790,_0x385246,_0x6cbf80,_0x4f1c71,_0x4820a3,_0x35ce1d){'use strict';const _0x2c26be=_0x335f;const _0x4a5190={'id':_0x2c26be(0x17f),'type':_0x6cbf80['CommandType'][_0x2c26be(0x176)],'handler':async _0x41fdbc=>{const _0x47fb53=_0x2c26be,_0x55f762=_0x41fdbc[_0x47fb53(0x16b)](_0x385246['IExchangeOperateService']);return new URLSearchParams(location[_0x47fb53(0x191)])['get'](_0x47fb53(0x169))?_0x55f762['importXLSXToUnitId']():_0x55f762[_0x47fb53(0x165)](),!0x0;}},_0x5f4d7f={'id':_0x2c26be(0x18e),'type':_0x6cbf80[_0x2c26be(0x16a)][_0x2c26be(0x176)],'handler':async _0x1999ec=>{const _0x4cb8a8=_0x2c26be,_0x18db24=_0x1999ec['get'](_0x385246['IExchangeOperateService']);return new URLSearchParams(location[_0x4cb8a8(0x191)])[_0x4cb8a8(0x16b)](_0x4cb8a8(0x169))?_0x18db24[_0x4cb8a8(0x1a9)]():_0x18db24[_0x4cb8a8(0x1a8)](),!0x0;}},_0x474f65=_0x2c26be(0x166),_0x56f54b={},_0x13072d=_0x2c26be(0x172);function _0x343829(_0x21003c){const _0x3bd0e6=_0x2c26be;return{'id':_0x13072d,'type':_0x4f1c71[_0x3bd0e6(0x175)]['SUBITEMS'],'icon':_0x3bd0e6(0x19c),'tooltip':_0x3bd0e6(0x1a4),'hidden$':_0x4f1c71[_0x3bd0e6(0x1a6)](_0x21003c,_0x6cbf80['UniverInstanceType'][_0x3bd0e6(0x187)]),'disabled$':_0x35ce1d[_0x3bd0e6(0x199)](_0x21003c,{'workbookTypes':[_0x4820a3[_0x3bd0e6(0x1a2)]]})};}function _0x339b6e(){const _0x5a976f=_0x2c26be;return{'id':_0x4a5190['id'],'type':_0x4f1c71[_0x5a976f(0x175)][_0x5a976f(0x168)],'title':'exchange.upload','icon':_0x5a976f(0x1a1)};}function _0x17a93b(){const _0x17e54a=_0x2c26be;return{'id':_0x5f4d7f['id'],'type':_0x4f1c71[_0x17e54a(0x175)][_0x17e54a(0x168)],'title':_0x17e54a(0x196),'icon':_0x17e54a(0x16e)};}const _0x14de25={[_0x4f1c71['RibbonStartGroup'][_0x2c26be(0x17e)]]:{[_0x13072d]:{'order':0.3,'menuItemFactory':_0x343829,[_0x4a5190['id']]:{'order':0x0,'menuItemFactory':_0x339b6e},[_0x5f4d7f['id']]:{'order':0x1,'menuItemFactory':_0x17a93b}}}};var _0x291842=Object[_0x2c26be(0x197)],_0x1c7b97=(_0x3b545b,_0x1523bf,_0x2cf834,_0xc01f2e)=>{const _0x3e5562=_0x2c26be;for(var _0x45bd5d=_0xc01f2e>0x1?void 0x0:_0xc01f2e?_0x291842(_0x1523bf,_0x2cf834):_0x1523bf,_0x67b26d=_0x3b545b[_0x3e5562(0x1a7)]-0x1,_0x59e73a;_0x67b26d>=0x0;_0x67b26d--)(_0x59e73a=_0x3b545b[_0x67b26d])&&(_0x45bd5d=_0x59e73a(_0x45bd5d)||_0x45bd5d);return _0x45bd5d;},_0x4b6b4d=(_0x4cfb43,_0x563534)=>(_0x37cde7,_0xa18fd6)=>_0x563534(_0x37cde7,_0xa18fd6,_0x4cfb43);let _0x27c4ff=class extends _0x6cbf80[_0x2c26be(0x173)]{constructor(_0x340d70,_0x105190){const _0x53331e=_0x2c26be;super(),this[_0x53331e(0x188)]=_0x340d70,this['_menuManagerService']=_0x105190,this['_initCommands'](),this[_0x53331e(0x171)]();}[_0x2c26be(0x162)](){[_0x4a5190,_0x5f4d7f]['forEach'](_0x1667be=>{const _0x4c2eff=_0x335f;this[_0x4c2eff(0x170)](this['_commandService']['registerCommand'](_0x1667be));});}[_0x2c26be(0x171)](){const _0x296e83=_0x2c26be;this[_0x296e83(0x18d)]['mergeMenu'](_0x14de25);}};_0x27c4ff=_0x1c7b97([_0x4b6b4d(0x0,_0x6cbf80['ICommandService']),_0x4b6b4d(0x1,_0x4f1c71[_0x2c26be(0x182)])],_0x27c4ff);var _0x40201a=Object[_0x2c26be(0x190)],_0x24a82a=Object[_0x2c26be(0x197)],_0x4d425e=(_0x28925e,_0x1911ab,_0x2d8b75)=>_0x1911ab in _0x28925e?_0x40201a(_0x28925e,_0x1911ab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d8b75}):_0x28925e[_0x1911ab]=_0x2d8b75,_0x5c9809=(_0x1ee9aa,_0x2873ee,_0x23215c,_0x1d1514)=>{for(var _0x58c977=_0x1d1514>0x1?void 0x0:_0x1d1514?_0x24a82a(_0x2873ee,_0x23215c):_0x2873ee,_0x44dd26=_0x1ee9aa['length']-0x1,_0x30949c;_0x44dd26>=0x0;_0x44dd26--)(_0x30949c=_0x1ee9aa[_0x44dd26])&&(_0x58c977=_0x30949c(_0x58c977)||_0x58c977);return _0x58c977;},_0x458d72=(_0x516ba8,_0x38ebe2)=>(_0x37267e,_0x3c312d)=>_0x38ebe2(_0x37267e,_0x3c312d,_0x516ba8),_0x5d0431=(_0x4076cf,_0x119121,_0x372dff)=>_0x4d425e(_0x4076cf,typeof _0x119121!=_0x2c26be(0x163)?_0x119121+'':_0x119121,_0x372dff);const _0x355e3a=_0x2c26be(0x17c);_0x35d790[_0x2c26be(0x18a)]=class extends _0x6cbf80[_0x2c26be(0x198)]{constructor(_0x473705=_0x56f54b,_0x7efeae,_0x44f0b7){const _0x1718aa=_0x2c26be;super(),this['_config']=_0x473705,this[_0x1718aa(0x178)]=_0x7efeae,this[_0x1718aa(0x185)]=_0x44f0b7;const {menu:_0x4af49c,..._0xa918b}=_0x6cbf80[_0x1718aa(0x19a)]({},_0x56f54b,this[_0x1718aa(0x19d)]);_0x4af49c&&this[_0x1718aa(0x185)]['setConfig']('menu',_0x4af49c,{'merge':!0x0}),this[_0x1718aa(0x185)][_0x1718aa(0x19e)](_0x474f65,_0xa918b);}[_0x2c26be(0x186)](){const _0x44aceb=_0x2c26be;[[_0x27c4ff]][_0x44aceb(0x167)](_0xa711f5=>this[_0x44aceb(0x178)][_0x44aceb(0x183)](_0xa711f5));}[_0x2c26be(0x1a0)](){const _0x57ef76=_0x2c26be;this[_0x57ef76(0x178)][_0x57ef76(0x16b)](_0x27c4ff);}},_0x5d0431(_0x35d790['UniverSheetsExchangeClientPlugin'],'pluginName',_0x355e3a),_0x5d0431(_0x35d790['UniverSheetsExchangeClientPlugin'],_0x2c26be(0x189),_0x6cbf80[_0x2c26be(0x18f)]['UNIVER_SHEET']),_0x35d790[_0x2c26be(0x18a)]=_0x5c9809([_0x6cbf80[_0x2c26be(0x17a)](_0x385246['UniverExchangeClientPlugin']),_0x458d72(0x1,_0x6cbf80[_0x2c26be(0x195)](_0x6cbf80[_0x2c26be(0x19b)])),_0x458d72(0x2,_0x6cbf80[_0x2c26be(0x164)])],_0x35d790[_0x2c26be(0x18a)]),_0x35d790['ExportXLSXOperation']=_0x5f4d7f,_0x35d790['ImportXLSXOperation']=_0x4a5190,Object[_0x2c26be(0x190)](_0x35d790,Symbol['toStringTag'],{'value':_0x2c26be(0x177)});}));
1
+ (function(_0x46c708,_0xf5b113){const _0x5dc3df=_0x5ad2,_0x35dba6=_0x46c708();while(!![]){try{const _0x4db649=-parseInt(_0x5dc3df(0xc7))/0x1*(parseInt(_0x5dc3df(0x9e))/0x2)+-parseInt(_0x5dc3df(0x9b))/0x3+-parseInt(_0x5dc3df(0xd6))/0x4+-parseInt(_0x5dc3df(0xaa))/0x5+parseInt(_0x5dc3df(0x8f))/0x6*(-parseInt(_0x5dc3df(0x8d))/0x7)+parseInt(_0x5dc3df(0xc8))/0x8+parseInt(_0x5dc3df(0xa7))/0x9;if(_0x4db649===_0xf5b113)break;else _0x35dba6['push'](_0x35dba6['shift']());}catch(_0x181db2){_0x35dba6['push'](_0x35dba6['shift']());}}}(_0x5b32,0x32b30),function(_0x31beaa,_0x2e2b9d){const _0x4a2f5e=_0x5ad2;typeof exports==_0x4a2f5e(0xb9)&&typeof module<'u'?_0x2e2b9d(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x4a2f5e(0xa6)&&define[_0x4a2f5e(0x91)]?define([_0x4a2f5e(0x93),_0x4a2f5e(0xb8),'@univerjs/core','@univerjs/ui',_0x4a2f5e(0xbd),_0x4a2f5e(0xa5)],_0x2e2b9d):(_0x31beaa=typeof globalThis<'u'?globalThis:_0x31beaa||self,_0x2e2b9d(_0x31beaa[_0x4a2f5e(0x9a)]={},_0x31beaa['UniverProExchangeClient'],_0x31beaa[_0x4a2f5e(0xa1)],_0x31beaa[_0x4a2f5e(0xc4)],_0x31beaa[_0x4a2f5e(0xd2)],_0x31beaa['UniverSheetsUi']));}(this,function(_0x2347e9,_0x1e7b8f,_0x57f6fa,_0x2b36e0,_0x315b83,_0x578059){'use strict';const _0x389597=_0x5ad2;const _0x24c4bb={'id':_0x389597(0xbf),'type':_0x57f6fa['CommandType']['OPERATION'],'handler':async _0x35b04f=>{const _0x30a111=_0x389597,_0x54a8af=_0x35b04f[_0x30a111(0x96)](_0x1e7b8f[_0x30a111(0xbe)]);return new URLSearchParams(location[_0x30a111(0x97)])['get']('unit')?_0x54a8af[_0x30a111(0xb2)]():_0x54a8af[_0x30a111(0x9d)](),!0x0;}},_0x4a6a99={'id':_0x389597(0xad),'type':_0x57f6fa['CommandType'][_0x389597(0x99)],'handler':async _0x157b56=>{const _0x496878=_0x389597,_0x49b088=_0x157b56[_0x496878(0x96)](_0x1e7b8f[_0x496878(0xbe)]);return new URLSearchParams(location[_0x496878(0x97)])[_0x496878(0x96)](_0x496878(0x8e))?_0x49b088[_0x496878(0xd1)]():_0x49b088[_0x496878(0xac)](),!0x0;}},_0x43692e=_0x389597(0xae),_0x26bc6c={},_0x96086e=_0x389597(0xc3);function _0x3906b6(_0x4498b9){const _0x41d46c=_0x389597;return{'id':_0x96086e,'type':_0x2b36e0[_0x41d46c(0xd0)]['SUBITEMS'],'icon':_0x41d46c(0xc9),'tooltip':_0x41d46c(0x9f),'hidden$':_0x2b36e0['getMenuHiddenObservable'](_0x4498b9,_0x57f6fa[_0x41d46c(0xcd)]['UNIVER_SHEET']),'disabled$':_0x578059[_0x41d46c(0x92)](_0x4498b9,{'workbookTypes':[_0x315b83[_0x41d46c(0xba)]]})};}function _0x1a0219(){const _0x57c1f3=_0x389597;return{'id':_0x24c4bb['id'],'type':_0x2b36e0['MenuItemType'][_0x57c1f3(0xbc)],'title':_0x57c1f3(0xb7),'icon':_0x57c1f3(0xa8)};}function _0x5afe1e(){const _0x2e2871=_0x389597;return{'id':_0x4a6a99['id'],'type':_0x2b36e0[_0x2e2871(0xd0)][_0x2e2871(0xbc)],'title':_0x2e2871(0xd3),'icon':_0x2e2871(0xd4)};}const _0x43d0b9={[_0x2b36e0[_0x389597(0xcc)]['OTHERS']]:{[_0x96086e]:{'order':0.3,'menuItemFactory':_0x3906b6,[_0x24c4bb['id']]:{'order':0x0,'menuItemFactory':_0x1a0219},[_0x4a6a99['id']]:{'order':0x1,'menuItemFactory':_0x5afe1e}}}};var _0x2ec22d=Object['getOwnPropertyDescriptor'],_0x2e015a=(_0x32ba77,_0xa7f5a7,_0x5a523e,_0x3e3e55)=>{for(var _0x5dd297=_0x3e3e55>0x1?void 0x0:_0x3e3e55?_0x2ec22d(_0xa7f5a7,_0x5a523e):_0xa7f5a7,_0x526768=_0x32ba77['length']-0x1,_0x125fb;_0x526768>=0x0;_0x526768--)(_0x125fb=_0x32ba77[_0x526768])&&(_0x5dd297=_0x125fb(_0x5dd297)||_0x5dd297);return _0x5dd297;},_0x2484c6=(_0x4bd7b1,_0x1c9b79)=>(_0x5ba757,_0x5bfcb4)=>_0x1c9b79(_0x5ba757,_0x5bfcb4,_0x4bd7b1);let _0x12e788=class extends _0x57f6fa[_0x389597(0x8c)]{constructor(_0x4bb361,_0x27c512){const _0x294069=_0x389597;super(),this[_0x294069(0xcb)]=_0x4bb361,this[_0x294069(0xc1)]=_0x27c512,this[_0x294069(0xc0)](),this[_0x294069(0xb4)]();}['_initCommands'](){const _0x691847=_0x389597;[_0x24c4bb,_0x4a6a99][_0x691847(0xa3)](_0x1c6011=>{const _0x356b34=_0x691847;this[_0x356b34(0xa0)](this[_0x356b34(0xcb)][_0x356b34(0x90)](_0x1c6011));});}[_0x389597(0xb4)](){const _0xbd4e0e=_0x389597;this[_0xbd4e0e(0xc1)][_0xbd4e0e(0xa9)](_0x43d0b9);}};_0x12e788=_0x2e015a([_0x2484c6(0x0,_0x57f6fa['ICommandService']),_0x2484c6(0x1,_0x2b36e0[_0x389597(0xab)])],_0x12e788);var _0x10f5e5=Object[_0x389597(0xaf)],_0x410047=Object[_0x389597(0x98)],_0x536c87=(_0x2fb75e,_0x59f792,_0xe2583b)=>_0x59f792 in _0x2fb75e?_0x10f5e5(_0x2fb75e,_0x59f792,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe2583b}):_0x2fb75e[_0x59f792]=_0xe2583b,_0x564e55=(_0x1d106b,_0x9aab3a,_0x5efa5a,_0x4c2241)=>{for(var _0x2ffe5a=_0x4c2241>0x1?void 0x0:_0x4c2241?_0x410047(_0x9aab3a,_0x5efa5a):_0x9aab3a,_0x412dfd=_0x1d106b['length']-0x1,_0x11399e;_0x412dfd>=0x0;_0x412dfd--)(_0x11399e=_0x1d106b[_0x412dfd])&&(_0x2ffe5a=_0x11399e(_0x2ffe5a)||_0x2ffe5a);return _0x2ffe5a;},_0x3af996=(_0x463752,_0x59b2f6)=>(_0x167fa7,_0x1fd856)=>_0x59b2f6(_0x167fa7,_0x1fd856,_0x463752),_0x30d67c=(_0x1800e7,_0x5653eb,_0xcd94a4)=>_0x536c87(_0x1800e7,typeof _0x5653eb!=_0x389597(0xd7)?_0x5653eb+'':_0x5653eb,_0xcd94a4);const _0x42ffd6='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x2347e9[_0x389597(0xb5)]=class extends _0x57f6fa[_0x389597(0xb6)]{constructor(_0x1bed53=_0x26bc6c,_0x55799a,_0x3bf574){const _0x2f088a=_0x389597;super(),this[_0x2f088a(0xb0)]=_0x1bed53,this[_0x2f088a(0xa4)]=_0x55799a,this[_0x2f088a(0x9c)]=_0x3bf574;const {menu:_0x2e40e6,..._0x50ad5d}=_0x57f6fa[_0x2f088a(0xb1)]({},_0x26bc6c,this[_0x2f088a(0xb0)]);_0x2e40e6&&this['_configService']['setConfig']('menu',_0x2e40e6,{'merge':!0x0}),this[_0x2f088a(0x9c)][_0x2f088a(0x95)](_0x43692e,_0x50ad5d);}[_0x389597(0xcf)](){const _0x32398e=_0x389597;[[_0x12e788]][_0x32398e(0xa3)](_0x8ca205=>this['_injector'][_0x32398e(0xa2)](_0x8ca205));}[_0x389597(0xd5)](){const _0x5710c8=_0x389597;this['_injector'][_0x5710c8(0x96)](_0x12e788);}},_0x30d67c(_0x2347e9[_0x389597(0xb5)],'pluginName',_0x42ffd6),_0x30d67c(_0x2347e9[_0x389597(0xb5)],_0x389597(0xc5),_0x57f6fa[_0x389597(0xcd)][_0x389597(0xb3)]),_0x2347e9[_0x389597(0xb5)]=_0x564e55([_0x57f6fa['DependentOn'](_0x1e7b8f['UniverExchangeClientPlugin']),_0x3af996(0x1,_0x57f6fa[_0x389597(0xc6)](_0x57f6fa[_0x389597(0xc2)])),_0x3af996(0x2,_0x57f6fa[_0x389597(0x94)])],_0x2347e9[_0x389597(0xb5)]),_0x2347e9[_0x389597(0xce)]=_0x4a6a99,_0x2347e9[_0x389597(0xca)]=_0x24c4bb,Object[_0x389597(0xaf)](_0x2347e9,Symbol['toStringTag'],{'value':_0x389597(0xbb)});}));function _0x5ad2(_0x3d9bc1,_0x2f3843){_0x3d9bc1=_0x3d9bc1-0x8c;const _0x5b320b=_0x5b32();let _0x5ad25b=_0x5b320b[_0x3d9bc1];return _0x5ad25b;}function _0x5b32(){const _0x76aa89=['exchange.upload','@univerjs-pro/exchange-client','object','WorkbookExportPermission','Module','BUTTON','@univerjs/sheets','IExchangeOperateService','exchange-client.operation.import-xlsx','_initCommands','_menuManagerService','Injector','sheets-exchange-client.operation.exchange','UniverUi','type','Inject','1vFlzRm','96048jgBVgv','DirectExportIcon','ImportXLSXOperation','_commandService','RibbonStartGroup','UniverInstanceType','ExportXLSXOperation','onStarting','MenuItemType','exportXLSXByUnitId','UniverSheets','exchange.download','ExportIcon','onReady','11116vuhAcJ','symbol','Disposable','2886331tpQVfU','unit','6ezofSI','registerCommand','amd','getCurrentRangeDisable$','exports','IConfigService','setConfig','get','search','getOwnPropertyDescriptor','OPERATION','UniverProSheetsExchangeClient','501651DBLGUq','_configService','importXLSXToSnapshot','723038XsMGqw','exchange.file','disposeWithMe','UniverCore','add','forEach','_injector','@univerjs/sheets-ui','function','11577663UPjyRr','FolderIcon','mergeMenu','734505vjhupO','IMenuManagerService','exportXLSXBySnapshot','exchange-client.operation.export-xlsx','sheets-exchange-client.config','defineProperty','_config','merge','importXLSXToUnitId','UNIVER_SHEET','_initMenus','UniverSheetsExchangeClientPlugin','Plugin'];_0x5b32=function(){return _0x76aa89;};return _0x5b32();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.15.0-insiders.20260110-48b77c8",
3
+ "version": "0.15.1",
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.15.0-insiders.20260110-48b77c8",
46
- "@univerjs/sheets": "0.15.0-insiders.20260110-48b77c8",
47
- "@univerjs/core": "0.15.0-insiders.20260110-48b77c8",
48
- "@univerjs/sheets-ui": "0.15.0-insiders.20260110-48b77c8",
49
- "@univerjs/ui": "0.15.0-insiders.20260110-48b77c8"
45
+ "@univerjs-pro/exchange-client": "0.15.1",
46
+ "@univerjs/core": "0.15.1",
47
+ "@univerjs/sheets": "0.15.1",
48
+ "@univerjs/sheets-ui": "0.15.1",
49
+ "@univerjs/ui": "0.15.1"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",
53
53
  "vite": "^7.3.1",
54
54
  "vitest": "^4.0.16",
55
- "@univerjs-infra/shared": "0.15.0"
55
+ "@univerjs-infra/shared": "0.15.1"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run",