@univerjs-pro/sheets-exchange-client 0.15.2 → 0.15.3-insiders.20260131-cbd5fac

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 _0x10e9ff=_0x5b47;(function(_0x165ebb,_0x18c718){const _0x86c0fd=_0x5b47,_0xdd1019=_0x165ebb();while(!![]){try{const _0x447faa=parseInt(_0x86c0fd(0x1a0))/0x1+-parseInt(_0x86c0fd(0x192))/0x2*(parseInt(_0x86c0fd(0x1a2))/0x3)+parseInt(_0x86c0fd(0x1ae))/0x4*(-parseInt(_0x86c0fd(0x183))/0x5)+parseInt(_0x86c0fd(0x1b1))/0x6+-parseInt(_0x86c0fd(0x1a9))/0x7*(parseInt(_0x86c0fd(0x18f))/0x8)+-parseInt(_0x86c0fd(0x17e))/0x9*(parseInt(_0x86c0fd(0x195))/0xa)+-parseInt(_0x86c0fd(0x1ac))/0xb*(-parseInt(_0x86c0fd(0x19c))/0xc);if(_0x447faa===_0x18c718)break;else _0xdd1019['push'](_0xdd1019['shift']());}catch(_0x35e7cb){_0xdd1019['push'](_0xdd1019['shift']());}}}(_0x337b,0xa505c));function _0x337b(){const _0x2ad26d=['138780VHNFab','type','onReady','getMenuHiddenObservable','136663mdBiBL','_configService','2199378ZPduDb','exchange.file','defineProperty','search','ExportXLSXOperation','Plugin','IConfigService','14wVIxzB','ExportIcon','_config','2101oQIcCk','UNIVER_SHEET','172EyffBx','WorkbookExportPermission','menu','5591076MyeKOS','UniverExchangeClientPlugin','Inject','_injector','registerCommand','DirectExportIcon','getOwnPropertyDescriptor','sheets-exchange-client.config','length','get','toStringTag','9dHzwRd','mergeMenu','importXLSXToSnapshot','exchange.download','forEach','153385JMplzM','UniverInstanceType','_initCommands','_initMenus','getCurrentRangeDisable$','_commandService','_menuManagerService','CommandType','DependentOn','BUTTON','IMenuManagerService','Disposable','1612984mqszaS','ICommandService','UniverSheetsExchangeClientPlugin','2wKbPPb','setConfig','exchange-client.operation.import-xlsx','1460090kucDPi','disposeWithMe','importXLSXToUnitId','exchange-client.operation.export-xlsx','RibbonStartGroup','unit','symbol'];_0x337b=function(){return _0x2ad26d;};return _0x337b();}Object[_0x10e9ff(0x1a4)](exports,Symbol[_0x10e9ff(0x17d)],{'value':'Module'});function _0x5b47(_0x40a9c1,_0x267dd9){_0x40a9c1=_0x40a9c1-0x17b;const _0x337b70=_0x337b();let _0x5b47f5=_0x337b70[_0x40a9c1];return _0x5b47f5;}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':_0x10e9ff(0x194),'type':i[_0x10e9ff(0x18a)]['OPERATION'],'handler':async _0x367142=>{const _0x23f308=_0x10e9ff,_0x28ad8f=_0x367142['get'](g['IExchangeOperateService']);return new URLSearchParams(location[_0x23f308(0x1a5)])[_0x23f308(0x17c)](_0x23f308(0x19a))?_0x28ad8f[_0x23f308(0x197)]():_0x28ad8f[_0x23f308(0x180)](),!0x0;}},p={'id':_0x10e9ff(0x198),'type':i['CommandType']['OPERATION'],'handler':async _0x17c576=>{const _0x5ace48=_0x10e9ff,_0x2b25b0=_0x17c576[_0x5ace48(0x17c)](g['IExchangeOperateService']);return new URLSearchParams(location['search'])[_0x5ace48(0x17c)](_0x5ace48(0x19a))?_0x2b25b0['exportXLSXByUnitId']():_0x2b25b0['exportXLSXBySnapshot'](),!0x0;}},v=_0x10e9ff(0x1b8),h={},S='sheets-exchange-client.operation.exchange';function x(_0x2f0875){const _0x18b997=_0x10e9ff;return{'id':S,'type':c['MenuItemType']['SUBITEMS'],'icon':_0x18b997(0x1b6),'tooltip':_0x18b997(0x1a3),'hidden$':c[_0x18b997(0x19f)](_0x2f0875,i[_0x18b997(0x184)][_0x18b997(0x1ad)]),'disabled$':I[_0x18b997(0x187)](_0x2f0875,{'workbookTypes':[_[_0x18b997(0x1af)]]})};}function P(){const _0x2f653e=_0x10e9ff;return{'id':l['id'],'type':c['MenuItemType'][_0x2f653e(0x18c)],'title':'exchange.upload','icon':'FolderIcon'};}function C(){const _0x370432=_0x10e9ff;return{'id':p['id'],'type':c['MenuItemType'][_0x370432(0x18c)],'title':_0x370432(0x181),'icon':_0x370432(0x1aa)};}const f={[c[_0x10e9ff(0x199)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x2a0d7f,_0x36f632,_0xe609aa,_0x1bc003)=>{const _0x238e1a=_0x10e9ff;for(var _0x446add=_0x1bc003>0x1?void 0x0:_0x1bc003?T(_0x36f632,_0xe609aa):_0x36f632,_0x25110c=_0x2a0d7f[_0x238e1a(0x17b)]-0x1,_0x4a668d;_0x25110c>=0x0;_0x25110c--)(_0x4a668d=_0x2a0d7f[_0x25110c])&&(_0x446add=_0x4a668d(_0x446add)||_0x446add);return _0x446add;},m=(_0x46b9b5,_0x33899a)=>(_0x3a86a0,_0x128591)=>_0x33899a(_0x3a86a0,_0x128591,_0x46b9b5);let u=class extends i[_0x10e9ff(0x18e)]{constructor(_0x3a722d,_0x55b5a0){const _0x39c6ad=_0x10e9ff;super(),this[_0x39c6ad(0x188)]=_0x3a722d,this[_0x39c6ad(0x189)]=_0x55b5a0,this[_0x39c6ad(0x185)](),this[_0x39c6ad(0x186)]();}[_0x10e9ff(0x185)](){const _0x382aab=_0x10e9ff;[l,p][_0x382aab(0x182)](_0x358144=>{const _0x3c61e0=_0x382aab;this[_0x3c61e0(0x196)](this[_0x3c61e0(0x188)][_0x3c61e0(0x1b5)](_0x358144));});}[_0x10e9ff(0x186)](){const _0x393158=_0x10e9ff;this[_0x393158(0x189)][_0x393158(0x17f)](f);}};u=y([m(0x0,i[_0x10e9ff(0x190)]),m(0x1,c[_0x10e9ff(0x18d)])],u);var O=Object['defineProperty'],U=Object[_0x10e9ff(0x1b7)],X=(_0x20fcea,_0x2710df,_0xcc7c17)=>_0x2710df in _0x20fcea?O(_0x20fcea,_0x2710df,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xcc7c17}):_0x20fcea[_0x2710df]=_0xcc7c17,N=(_0x4e3ced,_0x3e8a7c,_0x162c8e,_0x4a6a32)=>{const _0x5fb9d4=_0x10e9ff;for(var _0x4e006b=_0x4a6a32>0x1?void 0x0:_0x4a6a32?U(_0x3e8a7c,_0x162c8e):_0x3e8a7c,_0x15a2a6=_0x4e3ced[_0x5fb9d4(0x17b)]-0x1,_0x34cd6b;_0x15a2a6>=0x0;_0x15a2a6--)(_0x34cd6b=_0x4e3ced[_0x15a2a6])&&(_0x4e006b=_0x34cd6b(_0x4e006b)||_0x4e006b);return _0x4e006b;},d=(_0x24114c,_0x2ba8ec)=>(_0x11b9e8,_0x47d852)=>_0x2ba8ec(_0x11b9e8,_0x47d852,_0x24114c),E=(_0x2492e4,_0x5514bd,_0x302d81)=>X(_0x2492e4,typeof _0x5514bd!=_0x10e9ff(0x19b)?_0x5514bd+'':_0x5514bd,_0x302d81);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports['UniverSheetsExchangeClientPlugin']=class extends i[_0x10e9ff(0x1a7)]{constructor(_0x4ace98=h,_0x32ad8e,_0xeb6262){const _0x428021=_0x10e9ff;super(),this[_0x428021(0x1ab)]=_0x4ace98,this[_0x428021(0x1b4)]=_0x32ad8e,this[_0x428021(0x1a1)]=_0xeb6262;const {menu:_0x363da4,..._0x4034d7}=i['merge']({},h,this[_0x428021(0x1ab)]);_0x363da4&&this[_0x428021(0x1a1)][_0x428021(0x193)](_0x428021(0x1b0),_0x363da4,{'merge':!0x0}),this['_configService'][_0x428021(0x193)](v,_0x4034d7);}['onStarting'](){const _0x16cc47=_0x10e9ff;[[u]][_0x16cc47(0x182)](_0x1c4a16=>this[_0x16cc47(0x1b4)]['add'](_0x1c4a16));}[_0x10e9ff(0x19e)](){const _0xfd22bf=_0x10e9ff;this['_injector'][_0xfd22bf(0x17c)](u);}},E(exports[_0x10e9ff(0x191)],'pluginName',L),E(exports[_0x10e9ff(0x191)],_0x10e9ff(0x19d),i[_0x10e9ff(0x184)][_0x10e9ff(0x1ad)]),exports[_0x10e9ff(0x191)]=N([i[_0x10e9ff(0x18b)](g[_0x10e9ff(0x1b2)]),d(0x1,i[_0x10e9ff(0x1b3)](i['Injector'])),d(0x2,i[_0x10e9ff(0x1a8)])],exports[_0x10e9ff(0x191)]),exports[_0x10e9ff(0x1a6)]=p,exports['ImportXLSXOperation']=l;
1
+ 'use strict';function _0x5336(_0x1e7abd,_0x5a6ad3){_0x1e7abd=_0x1e7abd-0x117;const _0x32fc31=_0x32fc();let _0x533659=_0x32fc31[_0x1e7abd];return _0x533659;}const _0x2daf80=_0x5336;(function(_0x241dac,_0x20d728){const _0x716f17=_0x5336,_0x47278a=_0x241dac();while(!![]){try{const _0x4e7e13=-parseInt(_0x716f17(0x11a))/0x1*(-parseInt(_0x716f17(0x11b))/0x2)+-parseInt(_0x716f17(0x14c))/0x3*(parseInt(_0x716f17(0x137))/0x4)+parseInt(_0x716f17(0x118))/0x5+-parseInt(_0x716f17(0x129))/0x6*(-parseInt(_0x716f17(0x12a))/0x7)+-parseInt(_0x716f17(0x132))/0x8*(-parseInt(_0x716f17(0x127))/0x9)+-parseInt(_0x716f17(0x157))/0xa*(-parseInt(_0x716f17(0x119))/0xb)+-parseInt(_0x716f17(0x11d))/0xc;if(_0x4e7e13===_0x20d728)break;else _0x47278a['push'](_0x47278a['shift']());}catch(_0x15fb5a){_0x47278a['push'](_0x47278a['shift']());}}}(_0x32fc,0xe45c2));Object['defineProperty'](exports,Symbol[_0x2daf80(0x131)],{'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':_0x2daf80(0x156),'type':i[_0x2daf80(0x11f)][_0x2daf80(0x13f)],'handler':async _0x3db9ca=>{const _0x4e7b63=_0x2daf80,_0x3b3304=_0x3db9ca[_0x4e7b63(0x147)](g[_0x4e7b63(0x155)]);return new URLSearchParams(location['search'])['get'](_0x4e7b63(0x14a))?_0x3b3304[_0x4e7b63(0x136)]():_0x3b3304[_0x4e7b63(0x159)](),!0x0;}},p={'id':_0x2daf80(0x11c),'type':i['CommandType']['OPERATION'],'handler':async _0x8837a6=>{const _0xc8b930=_0x2daf80,_0x16d0c9=_0x8837a6[_0xc8b930(0x147)](g[_0xc8b930(0x155)]);return new URLSearchParams(location['search'])[_0xc8b930(0x147)]('unit')?_0x16d0c9['exportXLSXByUnitId']():_0x16d0c9[_0xc8b930(0x134)](),!0x0;}},v=_0x2daf80(0x13b),h={},S='sheets-exchange-client.operation.exchange';function x(_0x232d99){const _0x2c25c2=_0x2daf80;return{'id':S,'type':c[_0x2c25c2(0x14b)][_0x2c25c2(0x125)],'icon':_0x2c25c2(0x12c),'tooltip':_0x2c25c2(0x12e),'hidden$':c[_0x2c25c2(0x143)](_0x232d99,i[_0x2c25c2(0x11e)][_0x2c25c2(0x141)]),'disabled$':I[_0x2c25c2(0x135)](_0x232d99,{'workbookTypes':[_[_0x2c25c2(0x145)]]})};}function P(){const _0x24c6d3=_0x2daf80;return{'id':l['id'],'type':c[_0x24c6d3(0x14b)][_0x24c6d3(0x130)],'title':_0x24c6d3(0x154),'icon':_0x24c6d3(0x121)};}function C(){const _0x53855a=_0x2daf80;return{'id':p['id'],'type':c['MenuItemType'][_0x53855a(0x130)],'title':_0x53855a(0x13c),'icon':'ExportIcon'};}const f={[c[_0x2daf80(0x120)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};function _0x32fc(){const _0x30538f=['ImportXLSXOperation','UniverExchangeClientPlugin','DependentOn','_injector','exchange.upload','IExchangeOperateService','exchange-client.operation.import-xlsx','20stdFOF','menu','importXLSXToSnapshot','symbol','3890660ynXhGh','4458817mqgaEo','9aFKCix','277658aVStBj','exchange-client.operation.export-xlsx','24734256SahPLr','UniverInstanceType','CommandType','RibbonStartGroup','FolderIcon','Inject','_commandService','_initMenus','SUBITEMS','getOwnPropertyDescriptor','666whaeLg','_config','25614bzhQWB','217hMtfnz','_configService','DirectExportIcon','forEach','exchange.file','setConfig','BUTTON','toStringTag','143064WOUJRl','defineProperty','exportXLSXBySnapshot','getCurrentRangeDisable$','importXLSXToUnitId','8ugBpWp','Disposable','onStarting','UniverSheetsExchangeClientPlugin','sheets-exchange-client.config','exchange.download','Injector','IConfigService','OPERATION','ExportXLSXOperation','UNIVER_SHEET','mergeMenu','getMenuHiddenObservable','length','WorkbookExportPermission','merge','get','disposeWithMe','Plugin','unit','MenuItemType','1946127FUFixl','add','SHEET_EXCHANGE_CLIENT_PLUGIN','type'];_0x32fc=function(){return _0x30538f;};return _0x32fc();}var T=Object[_0x2daf80(0x126)],y=(_0x2254bb,_0xd9f97,_0x2c1b2a,_0x24e507)=>{for(var _0x14058a=_0x24e507>0x1?void 0x0:_0x24e507?T(_0xd9f97,_0x2c1b2a):_0xd9f97,_0x37cba5=_0x2254bb['length']-0x1,_0x2928bb;_0x37cba5>=0x0;_0x37cba5--)(_0x2928bb=_0x2254bb[_0x37cba5])&&(_0x14058a=_0x2928bb(_0x14058a)||_0x14058a);return _0x14058a;},m=(_0x341e58,_0x4540a4)=>(_0x276774,_0x4604d0)=>_0x4540a4(_0x276774,_0x4604d0,_0x341e58);let u=class extends i[_0x2daf80(0x138)]{constructor(_0x528eb3,_0x41d9c1){const _0x1fc0bb=_0x2daf80;super(),this[_0x1fc0bb(0x123)]=_0x528eb3,this['_menuManagerService']=_0x41d9c1,this['_initCommands'](),this[_0x1fc0bb(0x124)]();}['_initCommands'](){[l,p]['forEach'](_0x3f6b26=>{const _0x3f6647=_0x5336;this[_0x3f6647(0x148)](this[_0x3f6647(0x123)]['registerCommand'](_0x3f6b26));});}[_0x2daf80(0x124)](){const _0x2d60a8=_0x2daf80;this['_menuManagerService'][_0x2d60a8(0x142)](f);}};u=y([m(0x0,i['ICommandService']),m(0x1,c['IMenuManagerService'])],u);var O=Object[_0x2daf80(0x133)],U=Object[_0x2daf80(0x126)],X=(_0x4ccc43,_0x440ed8,_0x3d54ef)=>_0x440ed8 in _0x4ccc43?O(_0x4ccc43,_0x440ed8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d54ef}):_0x4ccc43[_0x440ed8]=_0x3d54ef,N=(_0x5568db,_0x580957,_0x544826,_0x16bc79)=>{const _0x16ab0a=_0x2daf80;for(var _0x2b83fa=_0x16bc79>0x1?void 0x0:_0x16bc79?U(_0x580957,_0x544826):_0x580957,_0x27599d=_0x5568db[_0x16ab0a(0x144)]-0x1,_0x264c8a;_0x27599d>=0x0;_0x27599d--)(_0x264c8a=_0x5568db[_0x27599d])&&(_0x2b83fa=_0x264c8a(_0x2b83fa)||_0x2b83fa);return _0x2b83fa;},d=(_0xac279b,_0x565b45)=>(_0x3f0814,_0x47739a)=>_0x565b45(_0x3f0814,_0x47739a,_0xac279b),E=(_0x4199a6,_0x24192e,_0x4a7f54)=>X(_0x4199a6,typeof _0x24192e!=_0x2daf80(0x117)?_0x24192e+'':_0x24192e,_0x4a7f54);const L=_0x2daf80(0x14e);exports['UniverSheetsExchangeClientPlugin']=class extends i[_0x2daf80(0x149)]{constructor(_0x2647ae=h,_0x51e729,_0x5b94d7){const _0x55d2c2=_0x2daf80;super(),this[_0x55d2c2(0x128)]=_0x2647ae,this['_injector']=_0x51e729,this[_0x55d2c2(0x12b)]=_0x5b94d7;const {menu:_0x1b5299,..._0x28f921}=i[_0x55d2c2(0x146)]({},h,this['_config']);_0x1b5299&&this[_0x55d2c2(0x12b)]['setConfig'](_0x55d2c2(0x158),_0x1b5299,{'merge':!0x0}),this[_0x55d2c2(0x12b)][_0x55d2c2(0x12f)](v,_0x28f921);}[_0x2daf80(0x139)](){const _0x54ddae=_0x2daf80;[[u]][_0x54ddae(0x12d)](_0x2da2bf=>this[_0x54ddae(0x153)][_0x54ddae(0x14d)](_0x2da2bf));}['onReady'](){const _0x3818d8=_0x2daf80;this[_0x3818d8(0x153)][_0x3818d8(0x147)](u);}},E(exports[_0x2daf80(0x13a)],'pluginName',L),E(exports[_0x2daf80(0x13a)],_0x2daf80(0x14f),i[_0x2daf80(0x11e)][_0x2daf80(0x141)]),exports['UniverSheetsExchangeClientPlugin']=N([i[_0x2daf80(0x152)](g[_0x2daf80(0x151)]),d(0x1,i[_0x2daf80(0x122)](i[_0x2daf80(0x13d)])),d(0x2,i[_0x2daf80(0x13e)])],exports[_0x2daf80(0x13a)]),exports[_0x2daf80(0x140)]=p,exports[_0x2daf80(0x150)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0xdea4ca=_0xfbd8;(function(_0x35fc48,_0xec658c){const _0x5619ad=_0xfbd8,_0x197ff6=_0x35fc48();while(!![]){try{const _0x424bc8=-parseInt(_0x5619ad(0x79))/0x1+-parseInt(_0x5619ad(0x7a))/0x2*(parseInt(_0x5619ad(0x69))/0x3)+-parseInt(_0x5619ad(0x92))/0x4+-parseInt(_0x5619ad(0x68))/0x5*(parseInt(_0x5619ad(0x6e))/0x6)+-parseInt(_0x5619ad(0x90))/0x7+-parseInt(_0x5619ad(0x7f))/0x8+-parseInt(_0x5619ad(0x8f))/0x9*(-parseInt(_0x5619ad(0x72))/0xa);if(_0x424bc8===_0xec658c)break;else _0x197ff6['push'](_0x197ff6['shift']());}catch(_0x15cbfb){_0x197ff6['push'](_0x197ff6['shift']());}}}(_0x2403,0x20ac9));import{IExchangeOperateService as _0x165cf5,UniverExchangeClientPlugin as _0x5be9b7}from'@univerjs-pro/exchange-client';import{CommandType as _0x5b8b48,UniverInstanceType as _0x2e0fb7,Disposable as _0x5bc8cd,ICommandService as _0xe75cde,DependentOn as _0x336aa2,Inject as _0x1fa967,Injector as _0x59e6eb,IConfigService as _0x19ce22,Plugin as _0x5711d2,merge as _0x52a3f6}from'@univerjs/core';import{MenuItemType as _0x5d712b,getMenuHiddenObservable as _0x3d5fd3,RibbonStartGroup as _0x43341c,IMenuManagerService as _0x27dd3d}from'@univerjs/ui';import{WorkbookExportPermission as _0xd8a53c}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x556846}from'@univerjs/sheets-ui';const p={'id':_0xdea4ca(0x8d),'type':_0x5b8b48[_0xdea4ca(0x83)],'handler':async _0x52d7fa=>{const _0x1d383c=_0xdea4ca,_0x3273a4=_0x52d7fa[_0x1d383c(0x82)](_0x165cf5);return new URLSearchParams(location[_0x1d383c(0x67)])[_0x1d383c(0x82)](_0x1d383c(0x6d))?_0x3273a4[_0x1d383c(0x6b)]():_0x3273a4[_0x1d383c(0x73)](),!0x0;}},u={'id':_0xdea4ca(0x86),'type':_0x5b8b48['OPERATION'],'handler':async _0x44c9c0=>{const _0x2d87bd=_0xdea4ca,_0x385592=_0x44c9c0[_0x2d87bd(0x82)](_0x165cf5);return new URLSearchParams(location[_0x2d87bd(0x67)])['get'](_0x2d87bd(0x6d))?_0x385592[_0x2d87bd(0x70)]():_0x385592[_0x2d87bd(0x95)](),!0x0;}},H=_0xdea4ca(0x87),l={},S=_0xdea4ca(0x6f);function R(_0x361644){const _0x30656e=_0xdea4ca;return{'id':S,'type':_0x5d712b[_0x30656e(0x88)],'icon':'DirectExportIcon','tooltip':_0x30656e(0x8a),'hidden$':_0x3d5fd3(_0x361644,_0x2e0fb7['UNIVER_SHEET']),'disabled$':_0x556846(_0x361644,{'workbookTypes':[_0xd8a53c]})};}function w(){const _0x1c3693=_0xdea4ca;return{'id':p['id'],'type':_0x5d712b[_0x1c3693(0x8e)],'title':_0x1c3693(0x77),'icon':_0x1c3693(0x7c)};}function D(){const _0x5aef69=_0xdea4ca;return{'id':u['id'],'type':_0x5d712b[_0x5aef69(0x8e)],'title':'exchange.download','icon':_0x5aef69(0x84)};}const F={[_0x43341c[_0xdea4ca(0x76)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0xdea4ca(0x78)],A=(_0x165bd8,_0x2e80d1,_0x32f88c,_0x11eb0f)=>{const _0x2bad36=_0xdea4ca;for(var _0x3a4102=_0x11eb0f>0x1?void 0x0:_0x11eb0f?G(_0x2e80d1,_0x32f88c):_0x2e80d1,_0x1d4b49=_0x165bd8[_0x2bad36(0x80)]-0x1,_0xb0a7fe;_0x1d4b49>=0x0;_0x1d4b49--)(_0xb0a7fe=_0x165bd8[_0x1d4b49])&&(_0x3a4102=_0xb0a7fe(_0x3a4102)||_0x3a4102);return _0x3a4102;},d=(_0xd8a213,_0x3a4ffc)=>(_0x2ff01c,_0x58ce5e)=>_0x3a4ffc(_0x2ff01c,_0x58ce5e,_0xd8a213);let c=class extends _0x5bc8cd{constructor(_0x27b075,_0x2ca528){const _0x108015=_0xdea4ca;super(),this[_0x108015(0x8b)]=_0x27b075,this[_0x108015(0x93)]=_0x2ca528,this[_0x108015(0x81)](),this[_0x108015(0x85)]();}[_0xdea4ca(0x81)](){[p,u]['forEach'](_0x30c2d4=>{const _0x222c52=_0xfbd8;this[_0x222c52(0x74)](this['_commandService'][_0x222c52(0x94)](_0x30c2d4));});}[_0xdea4ca(0x85)](){const _0x1d3e5a=_0xdea4ca;this['_menuManagerService'][_0x1d3e5a(0x75)](F);}};c=A([d(0x0,_0xe75cde),d(0x1,_0x27dd3d)],c);function _0xfbd8(_0x10ba0a,_0x3089a9){_0x10ba0a=_0x10ba0a-0x67;const _0x24038b=_0x2403();let _0xfbd814=_0x24038b[_0x10ba0a];return _0xfbd814;}var j=Object[_0xdea4ca(0x7b)],B=Object[_0xdea4ca(0x78)],$=(_0x522ba1,_0x5e4bb9,_0x149f04)=>_0x5e4bb9 in _0x522ba1?j(_0x522ba1,_0x5e4bb9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x149f04}):_0x522ba1[_0x5e4bb9]=_0x149f04,V=(_0x143f5b,_0x3b0f7c,_0x3bb9c6,_0x52b85b)=>{const _0x2b3dcd=_0xdea4ca;for(var _0x141059=_0x52b85b>0x1?void 0x0:_0x52b85b?B(_0x3b0f7c,_0x3bb9c6):_0x3b0f7c,_0xd95e7e=_0x143f5b[_0x2b3dcd(0x80)]-0x1,_0x44cce3;_0xd95e7e>=0x0;_0xd95e7e--)(_0x44cce3=_0x143f5b[_0xd95e7e])&&(_0x141059=_0x44cce3(_0x141059)||_0x141059);return _0x141059;},_=(_0x55ca0f,_0x2c9693)=>(_0x146a16,_0x1ca35f)=>_0x2c9693(_0x146a16,_0x1ca35f,_0x55ca0f),I=(_0x4e0929,_0x11d972,_0x1d2183)=>$(_0x4e0929,typeof _0x11d972!=_0xdea4ca(0x71)?_0x11d972+'':_0x11d972,_0x1d2183);const W=_0xdea4ca(0x7d);let s=class extends _0x5711d2{constructor(_0x4eaa88=l,_0x139369,_0x5f1315){const _0xc9967=_0xdea4ca;super(),this[_0xc9967(0x99)]=_0x4eaa88,this[_0xc9967(0x6c)]=_0x139369,this[_0xc9967(0x7e)]=_0x5f1315;const {menu:_0x38d86d,..._0xd59cea}=_0x52a3f6({},l,this[_0xc9967(0x99)]);_0x38d86d&&this[_0xc9967(0x7e)][_0xc9967(0x8c)]('menu',_0x38d86d,{'merge':!0x0}),this[_0xc9967(0x7e)]['setConfig'](H,_0xd59cea);}[_0xdea4ca(0x6a)](){const _0x3bc7fc=_0xdea4ca;[[c]][_0x3bc7fc(0x98)](_0x519a95=>this[_0x3bc7fc(0x6c)]['add'](_0x519a95));}[_0xdea4ca(0x89)](){const _0x3ca6fb=_0xdea4ca;this[_0x3ca6fb(0x6c)][_0x3ca6fb(0x82)](c);}};I(s,_0xdea4ca(0x91),W),I(s,_0xdea4ca(0x97),_0x2e0fb7[_0xdea4ca(0x96)]),s=V([_0x336aa2(_0x5be9b7),_(0x1,_0x1fa967(_0x59e6eb)),_(0x2,_0x19ce22)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};function _0x2403(){const _0x5931a=['SHEET_EXCHANGE_CLIENT_PLUGIN','_configService','2122368cWBwdd','length','_initCommands','get','OPERATION','ExportIcon','_initMenus','exchange-client.operation.export-xlsx','sheets-exchange-client.config','SUBITEMS','onReady','exchange.file','_commandService','setConfig','exchange-client.operation.import-xlsx','BUTTON','66519RmGcGH','1837262IHiNkI','pluginName','827084ieffnb','_menuManagerService','registerCommand','exportXLSXBySnapshot','UNIVER_SHEET','type','forEach','_config','search','980335nSzbTO','279MsVCnp','onStarting','importXLSXToUnitId','_injector','unit','6bZZkml','sheets-exchange-client.operation.exchange','exportXLSXByUnitId','symbol','1850YGtUJV','importXLSXToSnapshot','disposeWithMe','mergeMenu','OTHERS','exchange.upload','getOwnPropertyDescriptor','121831FUdQmx','3894KrrcAi','defineProperty','FolderIcon'];_0x2403=function(){return _0x5931a;};return _0x2403();}
1
+ const _0x22f696=_0x4615;(function(_0x8d5ff5,_0x43a5b2){const _0xd4f93e=_0x4615,_0x4a5926=_0x8d5ff5();while(!![]){try{const _0xf3bf27=parseInt(_0xd4f93e(0x193))/0x1*(parseInt(_0xd4f93e(0x175))/0x2)+parseInt(_0xd4f93e(0x198))/0x3+-parseInt(_0xd4f93e(0x17d))/0x4*(-parseInt(_0xd4f93e(0x189))/0x5)+parseInt(_0xd4f93e(0x17b))/0x6*(-parseInt(_0xd4f93e(0x199))/0x7)+parseInt(_0xd4f93e(0x17c))/0x8*(parseInt(_0xd4f93e(0x194))/0x9)+parseInt(_0xd4f93e(0x1a0))/0xa*(parseInt(_0xd4f93e(0x19c))/0xb)+-parseInt(_0xd4f93e(0x18f))/0xc*(parseInt(_0xd4f93e(0x187))/0xd);if(_0xf3bf27===_0x43a5b2)break;else _0x4a5926['push'](_0x4a5926['shift']());}catch(_0x42307e){_0x4a5926['push'](_0x4a5926['shift']());}}}(_0x239f,0x6c328));import{IExchangeOperateService as _0x2b5f36,UniverExchangeClientPlugin as _0x2b3b48}from'@univerjs-pro/exchange-client';import{CommandType as _0x5cdde4,UniverInstanceType as _0x11e6b5,Disposable as _0x551078,ICommandService as _0x3a7bae,DependentOn as _0x3ac469,Inject as _0x9ab8f9,Injector as _0x2b5944,Plugin as _0x48a035,merge as _0x4b165f,IConfigService as _0x984c7e}from'@univerjs/core';import{MenuItemType as _0x57947c,getMenuHiddenObservable as _0x36f560,RibbonStartGroup as _0x1e3ab5,IMenuManagerService as _0x5c0f15}from'@univerjs/ui';import{WorkbookExportPermission as _0x3b9f88}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x17a45b}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x5cdde4[_0x22f696(0x184)],'handler':async _0x49dec1=>{const _0x36765b=_0x22f696,_0x4e4f5c=_0x49dec1[_0x36765b(0x195)](_0x2b5f36);return new URLSearchParams(location['search'])[_0x36765b(0x195)](_0x36765b(0x19b))?_0x4e4f5c[_0x36765b(0x185)]():_0x4e4f5c['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x22f696(0x1a2),'type':_0x5cdde4['OPERATION'],'handler':async _0x5a5d8b=>{const _0xaa991f=_0x22f696,_0x5c10f5=_0x5a5d8b[_0xaa991f(0x195)](_0x2b5f36);return new URLSearchParams(location[_0xaa991f(0x1a6)])[_0xaa991f(0x195)]('unit')?_0x5c10f5[_0xaa991f(0x178)]():_0x5c10f5[_0xaa991f(0x1a4)](),!0x0;}},H=_0x22f696(0x1a8),l={},S=_0x22f696(0x179);function R(_0x5b37d9){const _0x4c7352=_0x22f696;return{'id':S,'type':_0x57947c[_0x4c7352(0x17e)],'icon':_0x4c7352(0x192),'tooltip':_0x4c7352(0x18e),'hidden$':_0x36f560(_0x5b37d9,_0x11e6b5[_0x4c7352(0x190)]),'disabled$':_0x17a45b(_0x5b37d9,{'workbookTypes':[_0x3b9f88]})};}function w(){const _0x56b04e=_0x22f696;return{'id':p['id'],'type':_0x57947c['BUTTON'],'title':'exchange.upload','icon':_0x56b04e(0x18d)};}function D(){const _0x2436e5=_0x22f696;return{'id':u['id'],'type':_0x57947c['BUTTON'],'title':_0x2436e5(0x188),'icon':'ExportIcon'};}const F={[_0x1e3ab5[_0x22f696(0x18b)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x22f696(0x1a7)],A=(_0x561c19,_0x5defa3,_0x5d1771,_0x29612e)=>{const _0x52bf67=_0x22f696;for(var _0x467da7=_0x29612e>0x1?void 0x0:_0x29612e?G(_0x5defa3,_0x5d1771):_0x5defa3,_0x21f7ed=_0x561c19[_0x52bf67(0x191)]-0x1,_0x110c6f;_0x21f7ed>=0x0;_0x21f7ed--)(_0x110c6f=_0x561c19[_0x21f7ed])&&(_0x467da7=_0x110c6f(_0x467da7)||_0x467da7);return _0x467da7;},d=(_0x509e45,_0x1f9c4e)=>(_0xb26973,_0x339567)=>_0x1f9c4e(_0xb26973,_0x339567,_0x509e45);function _0x239f(){const _0x1b54c2=['_initMenus','_initCommands','OPERATION','importXLSXToUnitId','mergeMenu','6019481ZXzoAG','exchange.download','173155GUNtxm','type','OTHERS','_configService','FolderIcon','exchange.file','12QhnfpS','UNIVER_SHEET','length','DirectExportIcon','2sBCDcd','3141405EBiolr','get','setConfig','add','296862KVmspq','444633ntDqby','menu','unit','312917qSeqwN','onStarting','disposeWithMe','registerCommand','20CBKHWs','_menuManagerService','exchange-client.operation.export-xlsx','onReady','exportXLSXBySnapshot','_config','search','getOwnPropertyDescriptor','sheets-exchange-client.config','436124xXObSI','_injector','_commandService','exportXLSXByUnitId','sheets-exchange-client.operation.exchange','defineProperty','36VNAUpk','8LDVSiX','40lNWhlE','SUBITEMS','pluginName','SHEET_EXCHANGE_CLIENT_PLUGIN','forEach'];_0x239f=function(){return _0x1b54c2;};return _0x239f();}let c=class extends _0x551078{constructor(_0x11b865,_0x581801){const _0x641e38=_0x22f696;super(),this['_commandService']=_0x11b865,this['_menuManagerService']=_0x581801,this[_0x641e38(0x183)](),this[_0x641e38(0x182)]();}['_initCommands'](){const _0x3c8422=_0x22f696;[p,u][_0x3c8422(0x181)](_0x238adb=>{const _0x8a800e=_0x3c8422;this[_0x8a800e(0x19e)](this[_0x8a800e(0x177)][_0x8a800e(0x19f)](_0x238adb));});}[_0x22f696(0x182)](){const _0x19d216=_0x22f696;this[_0x19d216(0x1a1)][_0x19d216(0x186)](F);}};c=A([d(0x0,_0x3a7bae),d(0x1,_0x5c0f15)],c);var j=Object[_0x22f696(0x17a)],B=Object['getOwnPropertyDescriptor'],$=(_0x434f6a,_0x5d184c,_0x558b58)=>_0x5d184c in _0x434f6a?j(_0x434f6a,_0x5d184c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x558b58}):_0x434f6a[_0x5d184c]=_0x558b58,V=(_0x17289c,_0x408def,_0x1a397a,_0xabd1bd)=>{for(var _0x17bb65=_0xabd1bd>0x1?void 0x0:_0xabd1bd?B(_0x408def,_0x1a397a):_0x408def,_0xfd8848=_0x17289c['length']-0x1,_0x1b65b4;_0xfd8848>=0x0;_0xfd8848--)(_0x1b65b4=_0x17289c[_0xfd8848])&&(_0x17bb65=_0x1b65b4(_0x17bb65)||_0x17bb65);return _0x17bb65;},_=(_0x1baa92,_0x28a1d8)=>(_0x1f23a3,_0x31585f)=>_0x28a1d8(_0x1f23a3,_0x31585f,_0x1baa92),I=(_0x22f04f,_0x53e156,_0x3296ba)=>$(_0x22f04f,typeof _0x53e156!='symbol'?_0x53e156+'':_0x53e156,_0x3296ba);const W=_0x22f696(0x180);let s=class extends _0x48a035{constructor(_0x560c82=l,_0x20a48c,_0x771ff2){const _0x373de8=_0x22f696;super(),this[_0x373de8(0x1a5)]=_0x560c82,this[_0x373de8(0x176)]=_0x20a48c,this['_configService']=_0x771ff2;const {menu:_0xf80566,..._0x25e7c7}=_0x4b165f({},l,this['_config']);_0xf80566&&this[_0x373de8(0x18c)][_0x373de8(0x196)](_0x373de8(0x19a),_0xf80566,{'merge':!0x0}),this['_configService'][_0x373de8(0x196)](H,_0x25e7c7);}[_0x22f696(0x19d)](){const _0x445805=_0x22f696;[[c]][_0x445805(0x181)](_0x3e19f9=>this[_0x445805(0x176)][_0x445805(0x197)](_0x3e19f9));}[_0x22f696(0x1a3)](){const _0x50c8b4=_0x22f696;this[_0x50c8b4(0x176)][_0x50c8b4(0x195)](c);}};function _0x4615(_0x1dacf2,_0x3e02ba){_0x1dacf2=_0x1dacf2-0x175;const _0x239f6a=_0x239f();let _0x4615fa=_0x239f6a[_0x1dacf2];return _0x4615fa;}I(s,_0x22f696(0x17f),W),I(s,_0x22f696(0x18a),_0x11e6b5[_0x22f696(0x190)]),s=V([_0x3ac469(_0x2b3b48),_(0x1,_0x9ab8f9(_0x2b5944)),_(0x2,_0x984c7e)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0xdea4ca=_0xfbd8;(function(_0x35fc48,_0xec658c){const _0x5619ad=_0xfbd8,_0x197ff6=_0x35fc48();while(!![]){try{const _0x424bc8=-parseInt(_0x5619ad(0x79))/0x1+-parseInt(_0x5619ad(0x7a))/0x2*(parseInt(_0x5619ad(0x69))/0x3)+-parseInt(_0x5619ad(0x92))/0x4+-parseInt(_0x5619ad(0x68))/0x5*(parseInt(_0x5619ad(0x6e))/0x6)+-parseInt(_0x5619ad(0x90))/0x7+-parseInt(_0x5619ad(0x7f))/0x8+-parseInt(_0x5619ad(0x8f))/0x9*(-parseInt(_0x5619ad(0x72))/0xa);if(_0x424bc8===_0xec658c)break;else _0x197ff6['push'](_0x197ff6['shift']());}catch(_0x15cbfb){_0x197ff6['push'](_0x197ff6['shift']());}}}(_0x2403,0x20ac9));import{IExchangeOperateService as _0x165cf5,UniverExchangeClientPlugin as _0x5be9b7}from'@univerjs-pro/exchange-client';import{CommandType as _0x5b8b48,UniverInstanceType as _0x2e0fb7,Disposable as _0x5bc8cd,ICommandService as _0xe75cde,DependentOn as _0x336aa2,Inject as _0x1fa967,Injector as _0x59e6eb,IConfigService as _0x19ce22,Plugin as _0x5711d2,merge as _0x52a3f6}from'@univerjs/core';import{MenuItemType as _0x5d712b,getMenuHiddenObservable as _0x3d5fd3,RibbonStartGroup as _0x43341c,IMenuManagerService as _0x27dd3d}from'@univerjs/ui';import{WorkbookExportPermission as _0xd8a53c}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x556846}from'@univerjs/sheets-ui';const p={'id':_0xdea4ca(0x8d),'type':_0x5b8b48[_0xdea4ca(0x83)],'handler':async _0x52d7fa=>{const _0x1d383c=_0xdea4ca,_0x3273a4=_0x52d7fa[_0x1d383c(0x82)](_0x165cf5);return new URLSearchParams(location[_0x1d383c(0x67)])[_0x1d383c(0x82)](_0x1d383c(0x6d))?_0x3273a4[_0x1d383c(0x6b)]():_0x3273a4[_0x1d383c(0x73)](),!0x0;}},u={'id':_0xdea4ca(0x86),'type':_0x5b8b48['OPERATION'],'handler':async _0x44c9c0=>{const _0x2d87bd=_0xdea4ca,_0x385592=_0x44c9c0[_0x2d87bd(0x82)](_0x165cf5);return new URLSearchParams(location[_0x2d87bd(0x67)])['get'](_0x2d87bd(0x6d))?_0x385592[_0x2d87bd(0x70)]():_0x385592[_0x2d87bd(0x95)](),!0x0;}},H=_0xdea4ca(0x87),l={},S=_0xdea4ca(0x6f);function R(_0x361644){const _0x30656e=_0xdea4ca;return{'id':S,'type':_0x5d712b[_0x30656e(0x88)],'icon':'DirectExportIcon','tooltip':_0x30656e(0x8a),'hidden$':_0x3d5fd3(_0x361644,_0x2e0fb7['UNIVER_SHEET']),'disabled$':_0x556846(_0x361644,{'workbookTypes':[_0xd8a53c]})};}function w(){const _0x1c3693=_0xdea4ca;return{'id':p['id'],'type':_0x5d712b[_0x1c3693(0x8e)],'title':_0x1c3693(0x77),'icon':_0x1c3693(0x7c)};}function D(){const _0x5aef69=_0xdea4ca;return{'id':u['id'],'type':_0x5d712b[_0x5aef69(0x8e)],'title':'exchange.download','icon':_0x5aef69(0x84)};}const F={[_0x43341c[_0xdea4ca(0x76)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0xdea4ca(0x78)],A=(_0x165bd8,_0x2e80d1,_0x32f88c,_0x11eb0f)=>{const _0x2bad36=_0xdea4ca;for(var _0x3a4102=_0x11eb0f>0x1?void 0x0:_0x11eb0f?G(_0x2e80d1,_0x32f88c):_0x2e80d1,_0x1d4b49=_0x165bd8[_0x2bad36(0x80)]-0x1,_0xb0a7fe;_0x1d4b49>=0x0;_0x1d4b49--)(_0xb0a7fe=_0x165bd8[_0x1d4b49])&&(_0x3a4102=_0xb0a7fe(_0x3a4102)||_0x3a4102);return _0x3a4102;},d=(_0xd8a213,_0x3a4ffc)=>(_0x2ff01c,_0x58ce5e)=>_0x3a4ffc(_0x2ff01c,_0x58ce5e,_0xd8a213);let c=class extends _0x5bc8cd{constructor(_0x27b075,_0x2ca528){const _0x108015=_0xdea4ca;super(),this[_0x108015(0x8b)]=_0x27b075,this[_0x108015(0x93)]=_0x2ca528,this[_0x108015(0x81)](),this[_0x108015(0x85)]();}[_0xdea4ca(0x81)](){[p,u]['forEach'](_0x30c2d4=>{const _0x222c52=_0xfbd8;this[_0x222c52(0x74)](this['_commandService'][_0x222c52(0x94)](_0x30c2d4));});}[_0xdea4ca(0x85)](){const _0x1d3e5a=_0xdea4ca;this['_menuManagerService'][_0x1d3e5a(0x75)](F);}};c=A([d(0x0,_0xe75cde),d(0x1,_0x27dd3d)],c);function _0xfbd8(_0x10ba0a,_0x3089a9){_0x10ba0a=_0x10ba0a-0x67;const _0x24038b=_0x2403();let _0xfbd814=_0x24038b[_0x10ba0a];return _0xfbd814;}var j=Object[_0xdea4ca(0x7b)],B=Object[_0xdea4ca(0x78)],$=(_0x522ba1,_0x5e4bb9,_0x149f04)=>_0x5e4bb9 in _0x522ba1?j(_0x522ba1,_0x5e4bb9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x149f04}):_0x522ba1[_0x5e4bb9]=_0x149f04,V=(_0x143f5b,_0x3b0f7c,_0x3bb9c6,_0x52b85b)=>{const _0x2b3dcd=_0xdea4ca;for(var _0x141059=_0x52b85b>0x1?void 0x0:_0x52b85b?B(_0x3b0f7c,_0x3bb9c6):_0x3b0f7c,_0xd95e7e=_0x143f5b[_0x2b3dcd(0x80)]-0x1,_0x44cce3;_0xd95e7e>=0x0;_0xd95e7e--)(_0x44cce3=_0x143f5b[_0xd95e7e])&&(_0x141059=_0x44cce3(_0x141059)||_0x141059);return _0x141059;},_=(_0x55ca0f,_0x2c9693)=>(_0x146a16,_0x1ca35f)=>_0x2c9693(_0x146a16,_0x1ca35f,_0x55ca0f),I=(_0x4e0929,_0x11d972,_0x1d2183)=>$(_0x4e0929,typeof _0x11d972!=_0xdea4ca(0x71)?_0x11d972+'':_0x11d972,_0x1d2183);const W=_0xdea4ca(0x7d);let s=class extends _0x5711d2{constructor(_0x4eaa88=l,_0x139369,_0x5f1315){const _0xc9967=_0xdea4ca;super(),this[_0xc9967(0x99)]=_0x4eaa88,this[_0xc9967(0x6c)]=_0x139369,this[_0xc9967(0x7e)]=_0x5f1315;const {menu:_0x38d86d,..._0xd59cea}=_0x52a3f6({},l,this[_0xc9967(0x99)]);_0x38d86d&&this[_0xc9967(0x7e)][_0xc9967(0x8c)]('menu',_0x38d86d,{'merge':!0x0}),this[_0xc9967(0x7e)]['setConfig'](H,_0xd59cea);}[_0xdea4ca(0x6a)](){const _0x3bc7fc=_0xdea4ca;[[c]][_0x3bc7fc(0x98)](_0x519a95=>this[_0x3bc7fc(0x6c)]['add'](_0x519a95));}[_0xdea4ca(0x89)](){const _0x3ca6fb=_0xdea4ca;this[_0x3ca6fb(0x6c)][_0x3ca6fb(0x82)](c);}};I(s,_0xdea4ca(0x91),W),I(s,_0xdea4ca(0x97),_0x2e0fb7[_0xdea4ca(0x96)]),s=V([_0x336aa2(_0x5be9b7),_(0x1,_0x1fa967(_0x59e6eb)),_(0x2,_0x19ce22)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};function _0x2403(){const _0x5931a=['SHEET_EXCHANGE_CLIENT_PLUGIN','_configService','2122368cWBwdd','length','_initCommands','get','OPERATION','ExportIcon','_initMenus','exchange-client.operation.export-xlsx','sheets-exchange-client.config','SUBITEMS','onReady','exchange.file','_commandService','setConfig','exchange-client.operation.import-xlsx','BUTTON','66519RmGcGH','1837262IHiNkI','pluginName','827084ieffnb','_menuManagerService','registerCommand','exportXLSXBySnapshot','UNIVER_SHEET','type','forEach','_config','search','980335nSzbTO','279MsVCnp','onStarting','importXLSXToUnitId','_injector','unit','6bZZkml','sheets-exchange-client.operation.exchange','exportXLSXByUnitId','symbol','1850YGtUJV','importXLSXToSnapshot','disposeWithMe','mergeMenu','OTHERS','exchange.upload','getOwnPropertyDescriptor','121831FUdQmx','3894KrrcAi','defineProperty','FolderIcon'];_0x2403=function(){return _0x5931a;};return _0x2403();}
1
+ const _0x22f696=_0x4615;(function(_0x8d5ff5,_0x43a5b2){const _0xd4f93e=_0x4615,_0x4a5926=_0x8d5ff5();while(!![]){try{const _0xf3bf27=parseInt(_0xd4f93e(0x193))/0x1*(parseInt(_0xd4f93e(0x175))/0x2)+parseInt(_0xd4f93e(0x198))/0x3+-parseInt(_0xd4f93e(0x17d))/0x4*(-parseInt(_0xd4f93e(0x189))/0x5)+parseInt(_0xd4f93e(0x17b))/0x6*(-parseInt(_0xd4f93e(0x199))/0x7)+parseInt(_0xd4f93e(0x17c))/0x8*(parseInt(_0xd4f93e(0x194))/0x9)+parseInt(_0xd4f93e(0x1a0))/0xa*(parseInt(_0xd4f93e(0x19c))/0xb)+-parseInt(_0xd4f93e(0x18f))/0xc*(parseInt(_0xd4f93e(0x187))/0xd);if(_0xf3bf27===_0x43a5b2)break;else _0x4a5926['push'](_0x4a5926['shift']());}catch(_0x42307e){_0x4a5926['push'](_0x4a5926['shift']());}}}(_0x239f,0x6c328));import{IExchangeOperateService as _0x2b5f36,UniverExchangeClientPlugin as _0x2b3b48}from'@univerjs-pro/exchange-client';import{CommandType as _0x5cdde4,UniverInstanceType as _0x11e6b5,Disposable as _0x551078,ICommandService as _0x3a7bae,DependentOn as _0x3ac469,Inject as _0x9ab8f9,Injector as _0x2b5944,Plugin as _0x48a035,merge as _0x4b165f,IConfigService as _0x984c7e}from'@univerjs/core';import{MenuItemType as _0x57947c,getMenuHiddenObservable as _0x36f560,RibbonStartGroup as _0x1e3ab5,IMenuManagerService as _0x5c0f15}from'@univerjs/ui';import{WorkbookExportPermission as _0x3b9f88}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x17a45b}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x5cdde4[_0x22f696(0x184)],'handler':async _0x49dec1=>{const _0x36765b=_0x22f696,_0x4e4f5c=_0x49dec1[_0x36765b(0x195)](_0x2b5f36);return new URLSearchParams(location['search'])[_0x36765b(0x195)](_0x36765b(0x19b))?_0x4e4f5c[_0x36765b(0x185)]():_0x4e4f5c['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x22f696(0x1a2),'type':_0x5cdde4['OPERATION'],'handler':async _0x5a5d8b=>{const _0xaa991f=_0x22f696,_0x5c10f5=_0x5a5d8b[_0xaa991f(0x195)](_0x2b5f36);return new URLSearchParams(location[_0xaa991f(0x1a6)])[_0xaa991f(0x195)]('unit')?_0x5c10f5[_0xaa991f(0x178)]():_0x5c10f5[_0xaa991f(0x1a4)](),!0x0;}},H=_0x22f696(0x1a8),l={},S=_0x22f696(0x179);function R(_0x5b37d9){const _0x4c7352=_0x22f696;return{'id':S,'type':_0x57947c[_0x4c7352(0x17e)],'icon':_0x4c7352(0x192),'tooltip':_0x4c7352(0x18e),'hidden$':_0x36f560(_0x5b37d9,_0x11e6b5[_0x4c7352(0x190)]),'disabled$':_0x17a45b(_0x5b37d9,{'workbookTypes':[_0x3b9f88]})};}function w(){const _0x56b04e=_0x22f696;return{'id':p['id'],'type':_0x57947c['BUTTON'],'title':'exchange.upload','icon':_0x56b04e(0x18d)};}function D(){const _0x2436e5=_0x22f696;return{'id':u['id'],'type':_0x57947c['BUTTON'],'title':_0x2436e5(0x188),'icon':'ExportIcon'};}const F={[_0x1e3ab5[_0x22f696(0x18b)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x22f696(0x1a7)],A=(_0x561c19,_0x5defa3,_0x5d1771,_0x29612e)=>{const _0x52bf67=_0x22f696;for(var _0x467da7=_0x29612e>0x1?void 0x0:_0x29612e?G(_0x5defa3,_0x5d1771):_0x5defa3,_0x21f7ed=_0x561c19[_0x52bf67(0x191)]-0x1,_0x110c6f;_0x21f7ed>=0x0;_0x21f7ed--)(_0x110c6f=_0x561c19[_0x21f7ed])&&(_0x467da7=_0x110c6f(_0x467da7)||_0x467da7);return _0x467da7;},d=(_0x509e45,_0x1f9c4e)=>(_0xb26973,_0x339567)=>_0x1f9c4e(_0xb26973,_0x339567,_0x509e45);function _0x239f(){const _0x1b54c2=['_initMenus','_initCommands','OPERATION','importXLSXToUnitId','mergeMenu','6019481ZXzoAG','exchange.download','173155GUNtxm','type','OTHERS','_configService','FolderIcon','exchange.file','12QhnfpS','UNIVER_SHEET','length','DirectExportIcon','2sBCDcd','3141405EBiolr','get','setConfig','add','296862KVmspq','444633ntDqby','menu','unit','312917qSeqwN','onStarting','disposeWithMe','registerCommand','20CBKHWs','_menuManagerService','exchange-client.operation.export-xlsx','onReady','exportXLSXBySnapshot','_config','search','getOwnPropertyDescriptor','sheets-exchange-client.config','436124xXObSI','_injector','_commandService','exportXLSXByUnitId','sheets-exchange-client.operation.exchange','defineProperty','36VNAUpk','8LDVSiX','40lNWhlE','SUBITEMS','pluginName','SHEET_EXCHANGE_CLIENT_PLUGIN','forEach'];_0x239f=function(){return _0x1b54c2;};return _0x239f();}let c=class extends _0x551078{constructor(_0x11b865,_0x581801){const _0x641e38=_0x22f696;super(),this['_commandService']=_0x11b865,this['_menuManagerService']=_0x581801,this[_0x641e38(0x183)](),this[_0x641e38(0x182)]();}['_initCommands'](){const _0x3c8422=_0x22f696;[p,u][_0x3c8422(0x181)](_0x238adb=>{const _0x8a800e=_0x3c8422;this[_0x8a800e(0x19e)](this[_0x8a800e(0x177)][_0x8a800e(0x19f)](_0x238adb));});}[_0x22f696(0x182)](){const _0x19d216=_0x22f696;this[_0x19d216(0x1a1)][_0x19d216(0x186)](F);}};c=A([d(0x0,_0x3a7bae),d(0x1,_0x5c0f15)],c);var j=Object[_0x22f696(0x17a)],B=Object['getOwnPropertyDescriptor'],$=(_0x434f6a,_0x5d184c,_0x558b58)=>_0x5d184c in _0x434f6a?j(_0x434f6a,_0x5d184c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x558b58}):_0x434f6a[_0x5d184c]=_0x558b58,V=(_0x17289c,_0x408def,_0x1a397a,_0xabd1bd)=>{for(var _0x17bb65=_0xabd1bd>0x1?void 0x0:_0xabd1bd?B(_0x408def,_0x1a397a):_0x408def,_0xfd8848=_0x17289c['length']-0x1,_0x1b65b4;_0xfd8848>=0x0;_0xfd8848--)(_0x1b65b4=_0x17289c[_0xfd8848])&&(_0x17bb65=_0x1b65b4(_0x17bb65)||_0x17bb65);return _0x17bb65;},_=(_0x1baa92,_0x28a1d8)=>(_0x1f23a3,_0x31585f)=>_0x28a1d8(_0x1f23a3,_0x31585f,_0x1baa92),I=(_0x22f04f,_0x53e156,_0x3296ba)=>$(_0x22f04f,typeof _0x53e156!='symbol'?_0x53e156+'':_0x53e156,_0x3296ba);const W=_0x22f696(0x180);let s=class extends _0x48a035{constructor(_0x560c82=l,_0x20a48c,_0x771ff2){const _0x373de8=_0x22f696;super(),this[_0x373de8(0x1a5)]=_0x560c82,this[_0x373de8(0x176)]=_0x20a48c,this['_configService']=_0x771ff2;const {menu:_0xf80566,..._0x25e7c7}=_0x4b165f({},l,this['_config']);_0xf80566&&this[_0x373de8(0x18c)][_0x373de8(0x196)](_0x373de8(0x19a),_0xf80566,{'merge':!0x0}),this['_configService'][_0x373de8(0x196)](H,_0x25e7c7);}[_0x22f696(0x19d)](){const _0x445805=_0x22f696;[[c]][_0x445805(0x181)](_0x3e19f9=>this[_0x445805(0x176)][_0x445805(0x197)](_0x3e19f9));}[_0x22f696(0x1a3)](){const _0x50c8b4=_0x22f696;this[_0x50c8b4(0x176)][_0x50c8b4(0x195)](c);}};function _0x4615(_0x1dacf2,_0x3e02ba){_0x1dacf2=_0x1dacf2-0x175;const _0x239f6a=_0x239f();let _0x4615fa=_0x239f6a[_0x1dacf2];return _0x4615fa;}I(s,_0x22f696(0x17f),W),I(s,_0x22f696(0x18a),_0x11e6b5[_0x22f696(0x190)]),s=V([_0x3ac469(_0x2b3b48),_(0x1,_0x9ab8f9(_0x2b5944)),_(0x2,_0x984c7e)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x561c(_0x2598a2,_0x28d3dc){_0x2598a2=_0x2598a2-0x19d;const _0x34c216=_0x34c2();let _0x561cb4=_0x34c216[_0x2598a2];return _0x561cb4;}function _0x34c2(){const _0x45d2df=['_menuManagerService','menu','get','UniverExchangeClientPlugin','length','object','UniverSheetsExchangeClientPlugin','@univerjs/sheets-ui','1299150zoMlCg','MenuItemType','disposeWithMe','@univerjs/core','type','getCurrentRangeDisable$','search','37597zDbZEj','DependentOn','exchange.upload','toStringTag','_initCommands','IExchangeOperateService','sheets-exchange-client.operation.exchange','exchange.file','@univerjs/ui','SUBITEMS','UNIVER_SHEET','893320SEmzcp','ExportXLSXOperation','setConfig','UniverSheets','_commandService','UniverProSheetsExchangeClient','unit','Plugin','DirectExportIcon','exchange-client.operation.import-xlsx','_config','exportXLSXBySnapshot','_injector','7725132wYAokz','24590nMepfF','_configService','registerCommand','BUTTON','amd','42tKJXHm','ImportXLSXOperation','62401mfXkND','88GGvcOT','defineProperty','importXLSXToSnapshot','@univerjs-pro/exchange-client','onStarting','IConfigService','ExportIcon','_initMenus','ICommandService','Inject','UniverInstanceType','function','16848NSnBdI','getOwnPropertyDescriptor','WorkbookExportPermission','UniverSheetsUi','forEach','OPERATION','FolderIcon','Disposable','CommandType','UniverUi','exportXLSXByUnitId','Injector','Module','onReady'];_0x34c2=function(){return _0x45d2df;};return _0x34c2();}(function(_0x2b0244,_0x1de9aa){const _0x422cd8=_0x561c,_0x16b858=_0x2b0244();while(!![]){try{const _0x259f12=-parseInt(_0x422cd8(0x1c5))/0x1+-parseInt(_0x422cd8(0x1be))/0x2*(parseInt(_0x422cd8(0x1c3))/0x3)+-parseInt(_0x422cd8(0x1b0))/0x4+-parseInt(_0x422cd8(0x19e))/0x5+parseInt(_0x422cd8(0x1d2))/0x6+-parseInt(_0x422cd8(0x1a5))/0x7*(-parseInt(_0x422cd8(0x1c6))/0x8)+parseInt(_0x422cd8(0x1bd))/0x9;if(_0x259f12===_0x1de9aa)break;else _0x16b858['push'](_0x16b858['shift']());}catch(_0x1d8969){_0x16b858['push'](_0x16b858['shift']());}}}(_0x34c2,0x31732),function(_0x13f0ba,_0x30a725){const _0x12a4b6=_0x561c;typeof exports==_0x12a4b6(0x1e5)&&typeof module<'u'?_0x30a725(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x12a4b6(0x1d1)&&define[_0x12a4b6(0x1c2)]?define(['exports',_0x12a4b6(0x1c9),_0x12a4b6(0x1a1),_0x12a4b6(0x1ad),'@univerjs/sheets',_0x12a4b6(0x19d)],_0x30a725):(_0x13f0ba=typeof globalThis<'u'?globalThis:_0x13f0ba||self,_0x30a725(_0x13f0ba[_0x12a4b6(0x1b5)]={},_0x13f0ba['UniverProExchangeClient'],_0x13f0ba['UniverCore'],_0x13f0ba[_0x12a4b6(0x1db)],_0x13f0ba[_0x12a4b6(0x1b3)],_0x13f0ba[_0x12a4b6(0x1d5)]));}(this,function(_0x61556,_0x3678e5,_0x3bd20b,_0xa7fcc4,_0x558458,_0xdfbdb2){'use strict';const _0x178ef0=_0x561c;const _0x18a71b={'id':_0x178ef0(0x1b9),'type':_0x3bd20b[_0x178ef0(0x1da)][_0x178ef0(0x1d7)],'handler':async _0x1d320a=>{const _0x1092bb=_0x178ef0,_0x11129a=_0x1d320a['get'](_0x3678e5[_0x1092bb(0x1aa)]);return new URLSearchParams(location[_0x1092bb(0x1a4)])[_0x1092bb(0x1e2)](_0x1092bb(0x1b6))?_0x11129a['importXLSXToUnitId']():_0x11129a[_0x1092bb(0x1c8)](),!0x0;}},_0x32ba2a={'id':'exchange-client.operation.export-xlsx','type':_0x3bd20b[_0x178ef0(0x1da)]['OPERATION'],'handler':async _0x20e7ab=>{const _0x153e6f=_0x178ef0,_0x2852fb=_0x20e7ab[_0x153e6f(0x1e2)](_0x3678e5['IExchangeOperateService']);return new URLSearchParams(location[_0x153e6f(0x1a4)])[_0x153e6f(0x1e2)](_0x153e6f(0x1b6))?_0x2852fb[_0x153e6f(0x1dc)]():_0x2852fb[_0x153e6f(0x1bb)](),!0x0;}},_0x32428f='sheets-exchange-client.config',_0x5d72d9={},_0x3d2b56=_0x178ef0(0x1ab);function _0x49893a(_0x2eb209){const _0x5e1513=_0x178ef0;return{'id':_0x3d2b56,'type':_0xa7fcc4[_0x5e1513(0x19f)][_0x5e1513(0x1ae)],'icon':_0x5e1513(0x1b8),'tooltip':_0x5e1513(0x1ac),'hidden$':_0xa7fcc4['getMenuHiddenObservable'](_0x2eb209,_0x3bd20b['UniverInstanceType'][_0x5e1513(0x1af)]),'disabled$':_0xdfbdb2[_0x5e1513(0x1a3)](_0x2eb209,{'workbookTypes':[_0x558458[_0x5e1513(0x1d4)]]})};}function _0x3b1428(){const _0x2bffe0=_0x178ef0;return{'id':_0x18a71b['id'],'type':_0xa7fcc4['MenuItemType']['BUTTON'],'title':_0x2bffe0(0x1a7),'icon':_0x2bffe0(0x1d8)};}function _0x8eae10(){const _0x378a51=_0x178ef0;return{'id':_0x32ba2a['id'],'type':_0xa7fcc4[_0x378a51(0x19f)][_0x378a51(0x1c1)],'title':'exchange.download','icon':_0x378a51(0x1cc)};}const _0x209d2e={[_0xa7fcc4['RibbonStartGroup']['OTHERS']]:{[_0x3d2b56]:{'order':0.3,'menuItemFactory':_0x49893a,[_0x18a71b['id']]:{'order':0x0,'menuItemFactory':_0x3b1428},[_0x32ba2a['id']]:{'order':0x1,'menuItemFactory':_0x8eae10}}}};var _0x109f9d=Object[_0x178ef0(0x1d3)],_0x2855ff=(_0x5c8b33,_0x21acda,_0xc823a6,_0x17c0f6)=>{const _0x6056c0=_0x178ef0;for(var _0x48604f=_0x17c0f6>0x1?void 0x0:_0x17c0f6?_0x109f9d(_0x21acda,_0xc823a6):_0x21acda,_0x56e52b=_0x5c8b33[_0x6056c0(0x1e4)]-0x1,_0x453627;_0x56e52b>=0x0;_0x56e52b--)(_0x453627=_0x5c8b33[_0x56e52b])&&(_0x48604f=_0x453627(_0x48604f)||_0x48604f);return _0x48604f;},_0x25dd26=(_0x46206a,_0x1f3aef)=>(_0x5c5c24,_0x5a2dbd)=>_0x1f3aef(_0x5c5c24,_0x5a2dbd,_0x46206a);let _0x381806=class extends _0x3bd20b[_0x178ef0(0x1d9)]{constructor(_0x53e428,_0x317db1){const _0x230ecd=_0x178ef0;super(),this['_commandService']=_0x53e428,this[_0x230ecd(0x1e0)]=_0x317db1,this[_0x230ecd(0x1a9)](),this[_0x230ecd(0x1cd)]();}[_0x178ef0(0x1a9)](){const _0xead1bf=_0x178ef0;[_0x18a71b,_0x32ba2a][_0xead1bf(0x1d6)](_0xc4aca5=>{const _0x1ddc15=_0xead1bf;this[_0x1ddc15(0x1a0)](this[_0x1ddc15(0x1b4)][_0x1ddc15(0x1c0)](_0xc4aca5));});}[_0x178ef0(0x1cd)](){const _0x4fbffe=_0x178ef0;this[_0x4fbffe(0x1e0)]['mergeMenu'](_0x209d2e);}};_0x381806=_0x2855ff([_0x25dd26(0x0,_0x3bd20b[_0x178ef0(0x1ce)]),_0x25dd26(0x1,_0xa7fcc4['IMenuManagerService'])],_0x381806);var _0x17301a=Object[_0x178ef0(0x1c7)],_0x2a93e2=Object['getOwnPropertyDescriptor'],_0x1609fa=(_0x5924c0,_0x47df42,_0x480f92)=>_0x47df42 in _0x5924c0?_0x17301a(_0x5924c0,_0x47df42,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x480f92}):_0x5924c0[_0x47df42]=_0x480f92,_0x3c351e=(_0x26b969,_0x40bb96,_0x57c1b7,_0x418d29)=>{const _0x433548=_0x178ef0;for(var _0x2e5702=_0x418d29>0x1?void 0x0:_0x418d29?_0x2a93e2(_0x40bb96,_0x57c1b7):_0x40bb96,_0x50cee7=_0x26b969[_0x433548(0x1e4)]-0x1,_0x240b92;_0x50cee7>=0x0;_0x50cee7--)(_0x240b92=_0x26b969[_0x50cee7])&&(_0x2e5702=_0x240b92(_0x2e5702)||_0x2e5702);return _0x2e5702;},_0x3a4e24=(_0x23fe20,_0x473d6f)=>(_0xf69286,_0x500a2b)=>_0x473d6f(_0xf69286,_0x500a2b,_0x23fe20),_0x35eaeb=(_0x373d7c,_0x1d7c9e,_0x4d6d0c)=>_0x1609fa(_0x373d7c,typeof _0x1d7c9e!='symbol'?_0x1d7c9e+'':_0x1d7c9e,_0x4d6d0c);const _0x4c7ac9='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x61556[_0x178ef0(0x1e6)]=class extends _0x3bd20b[_0x178ef0(0x1b7)]{constructor(_0x1ddc65=_0x5d72d9,_0x319362,_0x7ba326){const _0x40c15e=_0x178ef0;super(),this[_0x40c15e(0x1ba)]=_0x1ddc65,this[_0x40c15e(0x1bc)]=_0x319362,this[_0x40c15e(0x1bf)]=_0x7ba326;const {menu:_0x2becd0,..._0x231931}=_0x3bd20b['merge']({},_0x5d72d9,this[_0x40c15e(0x1ba)]);_0x2becd0&&this[_0x40c15e(0x1bf)]['setConfig'](_0x40c15e(0x1e1),_0x2becd0,{'merge':!0x0}),this['_configService'][_0x40c15e(0x1b2)](_0x32428f,_0x231931);}[_0x178ef0(0x1ca)](){const _0x31ada6=_0x178ef0;[[_0x381806]][_0x31ada6(0x1d6)](_0x38c522=>this[_0x31ada6(0x1bc)]['add'](_0x38c522));}[_0x178ef0(0x1df)](){this['_injector']['get'](_0x381806);}},_0x35eaeb(_0x61556['UniverSheetsExchangeClientPlugin'],'pluginName',_0x4c7ac9),_0x35eaeb(_0x61556[_0x178ef0(0x1e6)],_0x178ef0(0x1a2),_0x3bd20b[_0x178ef0(0x1d0)][_0x178ef0(0x1af)]),_0x61556[_0x178ef0(0x1e6)]=_0x3c351e([_0x3bd20b[_0x178ef0(0x1a6)](_0x3678e5[_0x178ef0(0x1e3)]),_0x3a4e24(0x1,_0x3bd20b[_0x178ef0(0x1cf)](_0x3bd20b[_0x178ef0(0x1dd)])),_0x3a4e24(0x2,_0x3bd20b[_0x178ef0(0x1cb)])],_0x61556[_0x178ef0(0x1e6)]),_0x61556[_0x178ef0(0x1b1)]=_0x32ba2a,_0x61556[_0x178ef0(0x1c4)]=_0x18a71b,Object[_0x178ef0(0x1c7)](_0x61556,Symbol[_0x178ef0(0x1a8)],{'value':_0x178ef0(0x1de)});}));
1
+ function _0x5dfd(){const _0x510068=['IExchangeOperateService','disposeWithMe','search','UniverCore','RibbonStartGroup','add','UniverSheetsExchangeClientPlugin','_configService','merge','exchange.file','OTHERS','amd','sheets-exchange-client.operation.exchange','WorkbookExportPermission','@univerjs-pro/exchange-client','mergeMenu','_commandService','exportXLSXBySnapshot','exchange.upload','symbol','UniverProSheetsExchangeClient','@univerjs/core','_config','_injector','ImportXLSXOperation','UniverUi','UniverSheets','207300QhMwlJ','33780YHYpvX','setConfig','getOwnPropertyDescriptor','pluginName','SUBITEMS','_initMenus','4705160PpqKmO','UniverExchangeClientPlugin','5243588qmMCMK','importXLSXToUnitId','function','object','5998855IyFVpI','@univerjs/sheets','IConfigService','Module','FolderIcon','get','length','480DsOivP','toStringTag','getMenuHiddenObservable','unit','UNIVER_SHEET','menu','type','35757gdUYQE','onReady','ExportIcon','@univerjs/sheets-ui','9340GzFxYt','exchange.download','6NrYuJl','UniverInstanceType','6834924PMOvMb','DirectExportIcon','forEach','exchange-client.operation.import-xlsx','OPERATION','Plugin','_menuManagerService','importXLSXToSnapshot','@univerjs/ui','defineProperty','_initCommands','IMenuManagerService','ExportXLSXOperation','CommandType','MenuItemType','UniverProExchangeClient','BUTTON'];_0x5dfd=function(){return _0x510068;};return _0x5dfd();}function _0x93b3(_0xa4000c,_0x3ed428){_0xa4000c=_0xa4000c-0x147;const _0x5dfdf1=_0x5dfd();let _0x93b36a=_0x5dfdf1[_0xa4000c];return _0x93b36a;}(function(_0x17e394,_0x3785cb){const _0x27a7ec=_0x93b3,_0x3aa74f=_0x17e394();while(!![]){try{const _0x37f86e=parseInt(_0x27a7ec(0x173))/0x1*(parseInt(_0x27a7ec(0x194))/0x2)+-parseInt(_0x27a7ec(0x174))/0x3*(-parseInt(_0x27a7ec(0x187))/0x4)+parseInt(_0x27a7ec(0x180))/0x5+parseInt(_0x27a7ec(0x147))/0x6+parseInt(_0x27a7ec(0x17c))/0x7+-parseInt(_0x27a7ec(0x17a))/0x8+-parseInt(_0x27a7ec(0x18e))/0x9*(parseInt(_0x27a7ec(0x192))/0xa);if(_0x37f86e===_0x3785cb)break;else _0x3aa74f['push'](_0x3aa74f['shift']());}catch(_0x3a6de1){_0x3aa74f['push'](_0x3aa74f['shift']());}}}(_0x5dfd,0xba146),function(_0x4e5792,_0x104853){const _0x3faabf=_0x93b3;typeof exports==_0x3faabf(0x17f)&&typeof module<'u'?_0x104853(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x3faabf(0x17e)&&define[_0x3faabf(0x163)]?define(['exports',_0x3faabf(0x166),_0x3faabf(0x16d),_0x3faabf(0x14f),_0x3faabf(0x181),_0x3faabf(0x191)],_0x104853):(_0x4e5792=typeof globalThis<'u'?globalThis:_0x4e5792||self,_0x104853(_0x4e5792[_0x3faabf(0x16c)]={},_0x4e5792[_0x3faabf(0x156)],_0x4e5792[_0x3faabf(0x15b)],_0x4e5792[_0x3faabf(0x171)],_0x4e5792[_0x3faabf(0x172)],_0x4e5792['UniverSheetsUi']));}(this,function(_0x5a9b9d,_0x2eaa92,_0x38f797,_0x3418a2,_0x113adf,_0x45489b){'use strict';const _0x5f0372=_0x93b3;const _0x517579={'id':_0x5f0372(0x14a),'type':_0x38f797[_0x5f0372(0x154)][_0x5f0372(0x14b)],'handler':async _0x18bac5=>{const _0x1fb9ef=_0x5f0372,_0x5e97c3=_0x18bac5[_0x1fb9ef(0x185)](_0x2eaa92[_0x1fb9ef(0x158)]);return new URLSearchParams(location[_0x1fb9ef(0x15a)])['get'](_0x1fb9ef(0x18a))?_0x5e97c3[_0x1fb9ef(0x17d)]():_0x5e97c3[_0x1fb9ef(0x14e)](),!0x0;}},_0x2925c5={'id':'exchange-client.operation.export-xlsx','type':_0x38f797[_0x5f0372(0x154)]['OPERATION'],'handler':async _0x4beef1=>{const _0x38bfed=_0x5f0372,_0x83a84a=_0x4beef1[_0x38bfed(0x185)](_0x2eaa92[_0x38bfed(0x158)]);return new URLSearchParams(location[_0x38bfed(0x15a)])[_0x38bfed(0x185)](_0x38bfed(0x18a))?_0x83a84a['exportXLSXByUnitId']():_0x83a84a[_0x38bfed(0x169)](),!0x0;}},_0x93dad='sheets-exchange-client.config',_0x3720f7={},_0x516b4f=_0x5f0372(0x164);function _0xb00f6e(_0x5cdc43){const _0x45d6c9=_0x5f0372;return{'id':_0x516b4f,'type':_0x3418a2[_0x45d6c9(0x155)][_0x45d6c9(0x178)],'icon':_0x45d6c9(0x148),'tooltip':_0x45d6c9(0x161),'hidden$':_0x3418a2[_0x45d6c9(0x189)](_0x5cdc43,_0x38f797[_0x45d6c9(0x195)]['UNIVER_SHEET']),'disabled$':_0x45489b['getCurrentRangeDisable$'](_0x5cdc43,{'workbookTypes':[_0x113adf[_0x45d6c9(0x165)]]})};}function _0x234660(){const _0xe947a8=_0x5f0372;return{'id':_0x517579['id'],'type':_0x3418a2[_0xe947a8(0x155)][_0xe947a8(0x157)],'title':_0xe947a8(0x16a),'icon':_0xe947a8(0x184)};}function _0x1983da(){const _0x6fa3a3=_0x5f0372;return{'id':_0x2925c5['id'],'type':_0x3418a2[_0x6fa3a3(0x155)][_0x6fa3a3(0x157)],'title':_0x6fa3a3(0x193),'icon':_0x6fa3a3(0x190)};}const _0x427b2c={[_0x3418a2[_0x5f0372(0x15c)][_0x5f0372(0x162)]]:{[_0x516b4f]:{'order':0.3,'menuItemFactory':_0xb00f6e,[_0x517579['id']]:{'order':0x0,'menuItemFactory':_0x234660},[_0x2925c5['id']]:{'order':0x1,'menuItemFactory':_0x1983da}}}};var _0x4ff34d=Object[_0x5f0372(0x176)],_0x4ea9dd=(_0x299dcd,_0x250215,_0x28a415,_0x9d5df4)=>{const _0x2cec6a=_0x5f0372;for(var _0x35a4ae=_0x9d5df4>0x1?void 0x0:_0x9d5df4?_0x4ff34d(_0x250215,_0x28a415):_0x250215,_0x1ec114=_0x299dcd[_0x2cec6a(0x186)]-0x1,_0x4695cc;_0x1ec114>=0x0;_0x1ec114--)(_0x4695cc=_0x299dcd[_0x1ec114])&&(_0x35a4ae=_0x4695cc(_0x35a4ae)||_0x35a4ae);return _0x35a4ae;},_0x45b764=(_0x152b62,_0x39e3d8)=>(_0x4d8c5d,_0xc6cdc5)=>_0x39e3d8(_0x4d8c5d,_0xc6cdc5,_0x152b62);let _0x2f3837=class extends _0x38f797['Disposable']{constructor(_0x25d8be,_0x2f3689){const _0x2f101a=_0x5f0372;super(),this['_commandService']=_0x25d8be,this[_0x2f101a(0x14d)]=_0x2f3689,this[_0x2f101a(0x151)](),this[_0x2f101a(0x179)]();}[_0x5f0372(0x151)](){const _0x23ac12=_0x5f0372;[_0x517579,_0x2925c5][_0x23ac12(0x149)](_0x4b459e=>{const _0x372d61=_0x23ac12;this[_0x372d61(0x159)](this[_0x372d61(0x168)]['registerCommand'](_0x4b459e));});}['_initMenus'](){const _0x171569=_0x5f0372;this[_0x171569(0x14d)][_0x171569(0x167)](_0x427b2c);}};_0x2f3837=_0x4ea9dd([_0x45b764(0x0,_0x38f797['ICommandService']),_0x45b764(0x1,_0x3418a2[_0x5f0372(0x152)])],_0x2f3837);var _0x4bd057=Object[_0x5f0372(0x150)],_0x41a93d=Object['getOwnPropertyDescriptor'],_0x454b2c=(_0x1950fb,_0x34f512,_0x235fe8)=>_0x34f512 in _0x1950fb?_0x4bd057(_0x1950fb,_0x34f512,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x235fe8}):_0x1950fb[_0x34f512]=_0x235fe8,_0x3a6f3d=(_0x46fa7f,_0x46d070,_0x51fab7,_0x12e881)=>{const _0x170fdc=_0x5f0372;for(var _0x492ad8=_0x12e881>0x1?void 0x0:_0x12e881?_0x41a93d(_0x46d070,_0x51fab7):_0x46d070,_0x48219c=_0x46fa7f[_0x170fdc(0x186)]-0x1,_0x2e6bb4;_0x48219c>=0x0;_0x48219c--)(_0x2e6bb4=_0x46fa7f[_0x48219c])&&(_0x492ad8=_0x2e6bb4(_0x492ad8)||_0x492ad8);return _0x492ad8;},_0x279dba=(_0x4a1b70,_0x4d7d6a)=>(_0x3509b6,_0x1ddd2f)=>_0x4d7d6a(_0x3509b6,_0x1ddd2f,_0x4a1b70),_0x10c201=(_0x528984,_0x527509,_0x123591)=>_0x454b2c(_0x528984,typeof _0x527509!=_0x5f0372(0x16b)?_0x527509+'':_0x527509,_0x123591);const _0x46fa8e='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x5a9b9d[_0x5f0372(0x15e)]=class extends _0x38f797[_0x5f0372(0x14c)]{constructor(_0x3909e9=_0x3720f7,_0x2e420d,_0x13d6e5){const _0x121f1=_0x5f0372;super(),this['_config']=_0x3909e9,this[_0x121f1(0x16f)]=_0x2e420d,this[_0x121f1(0x15f)]=_0x13d6e5;const {menu:_0xa9b9c,..._0x2f74da}=_0x38f797[_0x121f1(0x160)]({},_0x3720f7,this[_0x121f1(0x16e)]);_0xa9b9c&&this['_configService'][_0x121f1(0x175)](_0x121f1(0x18c),_0xa9b9c,{'merge':!0x0}),this[_0x121f1(0x15f)]['setConfig'](_0x93dad,_0x2f74da);}['onStarting'](){const _0x3aea45=_0x5f0372;[[_0x2f3837]][_0x3aea45(0x149)](_0x15ebe4=>this['_injector'][_0x3aea45(0x15d)](_0x15ebe4));}[_0x5f0372(0x18f)](){const _0x4320c4=_0x5f0372;this['_injector'][_0x4320c4(0x185)](_0x2f3837);}},_0x10c201(_0x5a9b9d[_0x5f0372(0x15e)],_0x5f0372(0x177),_0x46fa8e),_0x10c201(_0x5a9b9d[_0x5f0372(0x15e)],_0x5f0372(0x18d),_0x38f797[_0x5f0372(0x195)][_0x5f0372(0x18b)]),_0x5a9b9d[_0x5f0372(0x15e)]=_0x3a6f3d([_0x38f797['DependentOn'](_0x2eaa92[_0x5f0372(0x17b)]),_0x279dba(0x1,_0x38f797['Inject'](_0x38f797['Injector'])),_0x279dba(0x2,_0x38f797[_0x5f0372(0x182)])],_0x5a9b9d[_0x5f0372(0x15e)]),_0x5a9b9d[_0x5f0372(0x153)]=_0x2925c5,_0x5a9b9d[_0x5f0372(0x170)]=_0x517579,Object[_0x5f0372(0x150)](_0x5a9b9d,Symbol[_0x5f0372(0x188)],{'value':_0x5f0372(0x183)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.15.2",
3
+ "version": "0.15.3-insiders.20260131-cbd5fac",
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.2",
46
- "@univerjs/core": "0.15.2",
47
- "@univerjs/sheets-ui": "0.15.2",
48
- "@univerjs/sheets": "0.15.2",
49
- "@univerjs/ui": "0.15.2"
45
+ "@univerjs-pro/exchange-client": "0.15.3-insiders.20260131-cbd5fac",
46
+ "@univerjs/core": "0.15.3-insiders.20260131-cbd5fac",
47
+ "@univerjs/sheets": "0.15.3-insiders.20260131-cbd5fac",
48
+ "@univerjs/sheets-ui": "0.15.3-insiders.20260131-cbd5fac",
49
+ "@univerjs/ui": "0.15.3-insiders.20260131-cbd5fac"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",
53
53
  "vite": "^7.3.1",
54
- "vitest": "^4.0.16",
55
- "@univerjs-infra/shared": "0.15.2"
54
+ "vitest": "^4.0.18",
55
+ "@univerjs-infra/shared": "0.15.3"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run",