@univerjs-pro/sheets-exchange-client 0.10.10 → 0.10.11-nightly.202510220308

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';function _0x2d13(){const _0x2b4afe=['_commandService','exchange.download','IMenuManagerService','_injector','getMenuHiddenObservable','_initCommands','850waAHbN','_menuManagerService','ICommandService','exchange.file','exchange.upload','length','3563847AlJnyh','getCurrentRangeDisable$','1620MMQqCz','importXLSXToSnapshot','Injector','ExportIcon','UniverExchangeClientPlugin','unit','add','OPERATION','MenuItemType','mergeMenu','3736816xDmASS','_initMenus','_config','UniverSheetsExchangeClientPlugin','50vlxaAo','24297TdffvM','Plugin','defineProperty','exportXLSXByUnitId','RibbonStartGroup','2801871RmxcpN','search','sheets-exchange-client.config','UNIVER_SHEET','IExchangeOperateService','getOwnPropertyDescriptor','_configService','registerCommand','CommandType','type','OTHERS','onReady','BUTTON','19004BNFtux','exportXLSXBySnapshot','SUBITEMS','setConfig','942470FzbqCZ','exchange-client.operation.export-xlsx','get','ImportXLSXOperation','Inject','merge','DirectExportIcon','menu','forEach','importXLSXToUnitId','1128716tQOtPm','exchange-client.operation.import-xlsx','symbol','UniverInstanceType','FolderIcon'];_0x2d13=function(){return _0x2b4afe;};return _0x2d13();}const _0x53975e=_0x2fe1;function _0x2fe1(_0x2b885a,_0x265fba){const _0x2d138a=_0x2d13();return _0x2fe1=function(_0x2fe15f,_0x6aa949){_0x2fe15f=_0x2fe15f-0x1a5;let _0x2c6809=_0x2d138a[_0x2fe15f];return _0x2c6809;},_0x2fe1(_0x2b885a,_0x265fba);}(function(_0x46c8f7,_0x22f4c5){const _0x1824fe=_0x2fe1,_0x54f059=_0x46c8f7();while(!![]){try{const _0x16ec15=parseInt(_0x1824fe(0x1b3))/0x1+parseInt(_0x1824fe(0x1bd))/0x2+-parseInt(_0x1824fe(0x1ce))/0x3+-parseInt(_0x1824fe(0x1af))/0x4*(parseInt(_0x1824fe(0x1c8))/0x5)+-parseInt(_0x1824fe(0x1d0))/0x6*(parseInt(_0x1824fe(0x1df))/0x7)+parseInt(_0x1824fe(0x1da))/0x8+parseInt(_0x1824fe(0x1e4))/0x9*(parseInt(_0x1824fe(0x1de))/0xa);if(_0x16ec15===_0x22f4c5)break;else _0x54f059['push'](_0x54f059['shift']());}catch(_0x13ffab){_0x54f059['push'](_0x54f059['shift']());}}}(_0x2d13,0x91ee8));Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'});const g=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),c=require('@univerjs/ui'),_=require('@univerjs/sheets'),I=require('@univerjs/sheets-ui'),l={'id':_0x53975e(0x1be),'type':i['CommandType'][_0x53975e(0x1d7)],'handler':async _0x203e67=>{const _0x175c32=_0x53975e,_0x34f1ad=_0x203e67[_0x175c32(0x1b5)](g['IExchangeOperateService']);return new URLSearchParams(location[_0x175c32(0x1e5)])['get'](_0x175c32(0x1d5))?_0x34f1ad[_0x175c32(0x1bc)]():_0x34f1ad[_0x175c32(0x1d1)](),!0x0;}},p={'id':_0x53975e(0x1b4),'type':i[_0x53975e(0x1aa)]['OPERATION'],'handler':async _0x8d6c29=>{const _0xd9da76=_0x53975e,_0x58c90b=_0x8d6c29['get'](g[_0xd9da76(0x1a6)]);return new URLSearchParams(location['search'])[_0xd9da76(0x1b5)](_0xd9da76(0x1d5))?_0x58c90b[_0xd9da76(0x1e2)]():_0x58c90b[_0xd9da76(0x1b0)](),!0x0;}},v=_0x53975e(0x1e6),h={},S='sheets-exchange-client.operation.exchange';function x(_0xaa7390){const _0x372318=_0x53975e;return{'id':S,'type':c[_0x372318(0x1d8)][_0x372318(0x1b1)],'icon':_0x372318(0x1b9),'tooltip':_0x372318(0x1cb),'hidden$':c[_0x372318(0x1c6)](_0xaa7390,i['UniverInstanceType'][_0x372318(0x1a5)]),'disabled$':I[_0x372318(0x1cf)](_0xaa7390,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x5aa5e1=_0x53975e;return{'id':l['id'],'type':c[_0x5aa5e1(0x1d8)][_0x5aa5e1(0x1ae)],'title':_0x5aa5e1(0x1cc),'icon':_0x5aa5e1(0x1c1)};}function C(){const _0xc744ae=_0x53975e;return{'id':p['id'],'type':c['MenuItemType'][_0xc744ae(0x1ae)],'title':_0xc744ae(0x1c3),'icon':_0xc744ae(0x1d3)};}const f={[c[_0x53975e(0x1e3)][_0x53975e(0x1ac)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x53975e(0x1a7)],y=(_0x4baf84,_0x183244,_0x30e908,_0xc11c44)=>{for(var _0x19dc9f=_0xc11c44>0x1?void 0x0:_0xc11c44?T(_0x183244,_0x30e908):_0x183244,_0x5bfe41=_0x4baf84['length']-0x1,_0x47f09c;_0x5bfe41>=0x0;_0x5bfe41--)(_0x47f09c=_0x4baf84[_0x5bfe41])&&(_0x19dc9f=_0x47f09c(_0x19dc9f)||_0x19dc9f);return _0x19dc9f;},m=(_0x4db2c4,_0x367005)=>(_0x1072ec,_0x1465a5)=>_0x367005(_0x1072ec,_0x1465a5,_0x4db2c4);let u=class extends i['Disposable']{constructor(_0x5a504a,_0x3f4e93){const _0x7c14e3=_0x53975e;super(),this[_0x7c14e3(0x1c2)]=_0x5a504a,this[_0x7c14e3(0x1c9)]=_0x3f4e93,this[_0x7c14e3(0x1c7)](),this['_initMenus']();}[_0x53975e(0x1c7)](){const _0x1a4d85=_0x53975e;[l,p][_0x1a4d85(0x1bb)](_0x10b13b=>{const _0x104bc1=_0x1a4d85;this['disposeWithMe'](this['_commandService'][_0x104bc1(0x1a9)](_0x10b13b));});}[_0x53975e(0x1db)](){const _0x104e06=_0x53975e;this[_0x104e06(0x1c9)][_0x104e06(0x1d9)](f);}};u=y([m(0x0,i[_0x53975e(0x1ca)]),m(0x1,c[_0x53975e(0x1c4)])],u);var O=Object[_0x53975e(0x1e1)],U=Object['getOwnPropertyDescriptor'],X=(_0x3dda2a,_0x33f7ec,_0x5c2c0b)=>_0x33f7ec in _0x3dda2a?O(_0x3dda2a,_0x33f7ec,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c2c0b}):_0x3dda2a[_0x33f7ec]=_0x5c2c0b,N=(_0x3e1459,_0x1e256f,_0x246f83,_0xd3dca)=>{const _0x24e5b8=_0x53975e;for(var _0xa4c3a9=_0xd3dca>0x1?void 0x0:_0xd3dca?U(_0x1e256f,_0x246f83):_0x1e256f,_0x201bf4=_0x3e1459[_0x24e5b8(0x1cd)]-0x1,_0x3ba9f7;_0x201bf4>=0x0;_0x201bf4--)(_0x3ba9f7=_0x3e1459[_0x201bf4])&&(_0xa4c3a9=_0x3ba9f7(_0xa4c3a9)||_0xa4c3a9);return _0xa4c3a9;},d=(_0x20b188,_0x40d94c)=>(_0x186d86,_0x275f62)=>_0x40d94c(_0x186d86,_0x275f62,_0x20b188),E=(_0x53f713,_0x380cee,_0x590371)=>X(_0x53f713,typeof _0x380cee!=_0x53975e(0x1bf)?_0x380cee+'':_0x380cee,_0x590371);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports[_0x53975e(0x1dd)]=class extends i[_0x53975e(0x1e0)]{constructor(_0x4f3ca5=h,_0x1dca10,_0xff799b){const _0x1b63a1=_0x53975e;super(),this[_0x1b63a1(0x1dc)]=_0x4f3ca5,this[_0x1b63a1(0x1c5)]=_0x1dca10,this[_0x1b63a1(0x1a8)]=_0xff799b;const {menu:_0x409ef5,..._0x284ff1}=i[_0x1b63a1(0x1b8)]({},h,this[_0x1b63a1(0x1dc)]);_0x409ef5&&this[_0x1b63a1(0x1a8)][_0x1b63a1(0x1b2)](_0x1b63a1(0x1ba),_0x409ef5,{'merge':!0x0}),this['_configService'][_0x1b63a1(0x1b2)](v,_0x284ff1);}['onStarting'](){const _0x4aaa41=_0x53975e;[[u]]['forEach'](_0x32da71=>this[_0x4aaa41(0x1c5)][_0x4aaa41(0x1d6)](_0x32da71));}[_0x53975e(0x1ad)](){const _0x2c47ad=_0x53975e;this[_0x2c47ad(0x1c5)]['get'](u);}},E(exports['UniverSheetsExchangeClientPlugin'],'pluginName',L),E(exports[_0x53975e(0x1dd)],_0x53975e(0x1ab),i[_0x53975e(0x1c0)][_0x53975e(0x1a5)]),exports[_0x53975e(0x1dd)]=N([i['DependentOn'](g[_0x53975e(0x1d4)]),d(0x1,i[_0x53975e(0x1b7)](i[_0x53975e(0x1d2)])),d(0x2,i['IConfigService'])],exports['UniverSheetsExchangeClientPlugin']),exports['ExportXLSXOperation']=p,exports[_0x53975e(0x1b6)]=l;
1
+ 'use strict';const _0x1fbbcc=_0x1878;(function(_0x1284dd,_0x343548){const _0x1966fe=_0x1878,_0x5553b6=_0x1284dd();while(!![]){try{const _0x4231cb=-parseInt(_0x1966fe(0x1ad))/0x1*(-parseInt(_0x1966fe(0x1bf))/0x2)+parseInt(_0x1966fe(0x1b9))/0x3*(-parseInt(_0x1966fe(0x195))/0x4)+-parseInt(_0x1966fe(0x1c4))/0x5+parseInt(_0x1966fe(0x187))/0x6*(-parseInt(_0x1966fe(0x1ac))/0x7)+-parseInt(_0x1966fe(0x1c5))/0x8+-parseInt(_0x1966fe(0x19d))/0x9*(-parseInt(_0x1966fe(0x18b))/0xa)+-parseInt(_0x1966fe(0x199))/0xb*(-parseInt(_0x1966fe(0x1aa))/0xc);if(_0x4231cb===_0x343548)break;else _0x5553b6['push'](_0x5553b6['shift']());}catch(_0x5e3641){_0x5553b6['push'](_0x5553b6['shift']());}}}(_0x5b78,0x9b382));Object[_0x1fbbcc(0x1b7)](exports,Symbol[_0x1fbbcc(0x19f)],{'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[_0x1fbbcc(0x193)][_0x1fbbcc(0x194)],'handler':async _0x5ae0bb=>{const _0x4a499c=_0x1fbbcc,_0x3a188d=_0x5ae0bb['get'](g[_0x4a499c(0x1bd)]);return new URLSearchParams(location[_0x4a499c(0x1bb)])['get'](_0x4a499c(0x1af))?_0x3a188d[_0x4a499c(0x1a2)]():_0x3a188d[_0x4a499c(0x1a6)](),!0x0;}},p={'id':_0x1fbbcc(0x1a5),'type':i[_0x1fbbcc(0x193)][_0x1fbbcc(0x194)],'handler':async _0x50d79b=>{const _0x55c2a4=_0x1fbbcc,_0x404a8e=_0x50d79b[_0x55c2a4(0x1b2)](g['IExchangeOperateService']);return new URLSearchParams(location[_0x55c2a4(0x1bb)])['get'](_0x55c2a4(0x1af))?_0x404a8e[_0x55c2a4(0x1b1)]():_0x404a8e[_0x55c2a4(0x19b)](),!0x0;}},v=_0x1fbbcc(0x1ae),h={},S=_0x1fbbcc(0x18c);function x(_0x1a9ee5){const _0x1cfb58=_0x1fbbcc;return{'id':S,'type':c[_0x1cfb58(0x18e)][_0x1cfb58(0x1bc)],'icon':_0x1cfb58(0x1a9),'tooltip':_0x1cfb58(0x1b3),'hidden$':c[_0x1cfb58(0x18d)](_0x1a9ee5,i[_0x1cfb58(0x1ba)]['UNIVER_SHEET']),'disabled$':I[_0x1cfb58(0x191)](_0x1a9ee5,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x5afbd8=_0x1fbbcc;return{'id':l['id'],'type':c[_0x5afbd8(0x18e)]['BUTTON'],'title':_0x5afbd8(0x1a3),'icon':_0x5afbd8(0x185)};}function C(){const _0x4fee9c=_0x1fbbcc;return{'id':p['id'],'type':c[_0x4fee9c(0x18e)][_0x4fee9c(0x1c2)],'title':_0x4fee9c(0x188),'icon':_0x4fee9c(0x19e)};}const f={[c[_0x1fbbcc(0x1a4)][_0x1fbbcc(0x1be)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x53ceea,_0x10d69e,_0xa481fe,_0x2cfd0c)=>{const _0x2471d0=_0x1fbbcc;for(var _0x1bed15=_0x2cfd0c>0x1?void 0x0:_0x2cfd0c?T(_0x10d69e,_0xa481fe):_0x10d69e,_0x567ac4=_0x53ceea[_0x2471d0(0x190)]-0x1,_0x247e92;_0x567ac4>=0x0;_0x567ac4--)(_0x247e92=_0x53ceea[_0x567ac4])&&(_0x1bed15=_0x247e92(_0x1bed15)||_0x1bed15);return _0x1bed15;},m=(_0x1de4c6,_0x4d2b97)=>(_0x5166ed,_0x8b0a93)=>_0x4d2b97(_0x5166ed,_0x8b0a93,_0x1de4c6);function _0x5b78(){const _0x3ecbeb=['6xLWSFP','UniverInstanceType','search','SUBITEMS','IExchangeOperateService','OTHERS','3178nbnRvk','SHEET_EXCHANGE_CLIENT_PLUGIN','Inject','BUTTON','UniverSheetsExchangeClientPlugin','3830105SiPElP','9374056fZSUzq','IConfigService','Plugin','FolderIcon','_menuManagerService','3627786oBGNkI','exchange.download','_injector','Injector','10BrYzKd','sheets-exchange-client.operation.exchange','getMenuHiddenObservable','MenuItemType','menu','length','getCurrentRangeDisable$','add','CommandType','OPERATION','367100bNveVC','_commandService','Disposable','ImportXLSXOperation','11935TEcMfy','_config','exportXLSXBySnapshot','_configService','3466647fZbUYy','ExportIcon','toStringTag','forEach','pluginName','importXLSXToUnitId','exchange.upload','RibbonStartGroup','exchange-client.operation.export-xlsx','importXLSXToSnapshot','_initMenus','DependentOn','DirectExportIcon','29388drJxqi','IMenuManagerService','7LyXrtd','201xUHmCQ','sheets-exchange-client.config','unit','UniverExchangeClientPlugin','exportXLSXByUnitId','get','exchange.file','setConfig','onReady','disposeWithMe','defineProperty','_initCommands'];_0x5b78=function(){return _0x3ecbeb;};return _0x5b78();}function _0x1878(_0xd424d7,_0x128b50){const _0x5b78fa=_0x5b78();return _0x1878=function(_0x18784f,_0x543a2c){_0x18784f=_0x18784f-0x185;let _0x40f89c=_0x5b78fa[_0x18784f];return _0x40f89c;},_0x1878(_0xd424d7,_0x128b50);}let u=class extends i[_0x1fbbcc(0x197)]{constructor(_0x1cc48a,_0x117c9b){const _0x521e1=_0x1fbbcc;super(),this[_0x521e1(0x196)]=_0x1cc48a,this['_menuManagerService']=_0x117c9b,this[_0x521e1(0x1b8)](),this[_0x521e1(0x1a7)]();}[_0x1fbbcc(0x1b8)](){const _0x2d27ff=_0x1fbbcc;[l,p][_0x2d27ff(0x1a0)](_0x49ac2b=>{const _0x606264=_0x2d27ff;this[_0x606264(0x1b6)](this[_0x606264(0x196)]['registerCommand'](_0x49ac2b));});}[_0x1fbbcc(0x1a7)](){const _0x5f18fb=_0x1fbbcc;this[_0x5f18fb(0x186)]['mergeMenu'](f);}};u=y([m(0x0,i['ICommandService']),m(0x1,c[_0x1fbbcc(0x1ab)])],u);var O=Object[_0x1fbbcc(0x1b7)],U=Object['getOwnPropertyDescriptor'],X=(_0x28ca7f,_0x13033a,_0x37855f)=>_0x13033a in _0x28ca7f?O(_0x28ca7f,_0x13033a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37855f}):_0x28ca7f[_0x13033a]=_0x37855f,N=(_0xf895cc,_0x3a24e8,_0x312258,_0x1afdc7)=>{const _0x52b5f2=_0x1fbbcc;for(var _0x4cff83=_0x1afdc7>0x1?void 0x0:_0x1afdc7?U(_0x3a24e8,_0x312258):_0x3a24e8,_0x351a47=_0xf895cc[_0x52b5f2(0x190)]-0x1,_0x36e146;_0x351a47>=0x0;_0x351a47--)(_0x36e146=_0xf895cc[_0x351a47])&&(_0x4cff83=_0x36e146(_0x4cff83)||_0x4cff83);return _0x4cff83;},d=(_0x4601d3,_0x52709a)=>(_0x1c2d6f,_0x3e16dd)=>_0x52709a(_0x1c2d6f,_0x3e16dd,_0x4601d3),E=(_0x3fdcd3,_0x4e7ed6,_0x2214f0)=>X(_0x3fdcd3,typeof _0x4e7ed6!='symbol'?_0x4e7ed6+'':_0x4e7ed6,_0x2214f0);const L=_0x1fbbcc(0x1c0);exports[_0x1fbbcc(0x1c3)]=class extends i[_0x1fbbcc(0x1c7)]{constructor(_0x46c7df=h,_0x4a8977,_0x15803f){const _0x3c9ec9=_0x1fbbcc;super(),this[_0x3c9ec9(0x19a)]=_0x46c7df,this['_injector']=_0x4a8977,this[_0x3c9ec9(0x19c)]=_0x15803f;const {menu:_0xd3a08b,..._0x24dbc8}=i['merge']({},h,this['_config']);_0xd3a08b&&this[_0x3c9ec9(0x19c)][_0x3c9ec9(0x1b4)](_0x3c9ec9(0x18f),_0xd3a08b,{'merge':!0x0}),this[_0x3c9ec9(0x19c)]['setConfig'](v,_0x24dbc8);}['onStarting'](){const _0x39ada3=_0x1fbbcc;[[u]]['forEach'](_0x55eb4d=>this[_0x39ada3(0x189)][_0x39ada3(0x192)](_0x55eb4d));}[_0x1fbbcc(0x1b5)](){const _0x569329=_0x1fbbcc;this[_0x569329(0x189)]['get'](u);}},E(exports['UniverSheetsExchangeClientPlugin'],_0x1fbbcc(0x1a1),L),E(exports[_0x1fbbcc(0x1c3)],'type',i[_0x1fbbcc(0x1ba)]['UNIVER_SHEET']),exports[_0x1fbbcc(0x1c3)]=N([i[_0x1fbbcc(0x1a8)](g[_0x1fbbcc(0x1b0)]),d(0x1,i[_0x1fbbcc(0x1c1)](i[_0x1fbbcc(0x18a)])),d(0x2,i[_0x1fbbcc(0x1c6)])],exports[_0x1fbbcc(0x1c3)]),exports['ExportXLSXOperation']=p,exports[_0x1fbbcc(0x198)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x861267=_0x3be3;(function(_0x41142d,_0x1837ae){const _0x139aca=_0x3be3,_0x2ac066=_0x41142d();while(!![]){try{const _0x115a8f=-parseInt(_0x139aca(0x206))/0x1+parseInt(_0x139aca(0x1f7))/0x2+parseInt(_0x139aca(0x1fa))/0x3*(-parseInt(_0x139aca(0x1fe))/0x4)+-parseInt(_0x139aca(0x208))/0x5+-parseInt(_0x139aca(0x1fd))/0x6*(-parseInt(_0x139aca(0x20a))/0x7)+parseInt(_0x139aca(0x211))/0x8+parseInt(_0x139aca(0x1f6))/0x9;if(_0x115a8f===_0x1837ae)break;else _0x2ac066['push'](_0x2ac066['shift']());}catch(_0xfb2b48){_0x2ac066['push'](_0x2ac066['shift']());}}}(_0x3f63,0x761f1));function _0x3be3(_0xa83e66,_0x230e9a){const _0x3f63d3=_0x3f63();return _0x3be3=function(_0x3be386,_0xf81693){_0x3be386=_0x3be386-0x1e5;let _0x7be76c=_0x3f63d3[_0x3be386];return _0x7be76c;},_0x3be3(_0xa83e66,_0x230e9a);}import{IExchangeOperateService as _0x3199bf,UniverExchangeClientPlugin as _0x62eddf}from'@univerjs-pro/exchange-client';import{CommandType as _0x1564fb,UniverInstanceType as _0x3b20d2,Disposable as _0x58a3dc,ICommandService as _0x3a2479,DependentOn as _0x4c3999,Inject as _0x1450d2,Injector as _0x39d4fb,IConfigService as _0x1c45d6,Plugin as _0x579270,merge as _0x230065}from'@univerjs/core';import{MenuItemType as _0x216b6b,getMenuHiddenObservable as _0x1d55bf,RibbonStartGroup as _0x5da0f2,IMenuManagerService as _0x172a4b}from'@univerjs/ui';import{WorkbookExportPermission as _0x336922}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x5cd884}from'@univerjs/sheets-ui';const p={'id':_0x861267(0x210),'type':_0x1564fb[_0x861267(0x1f2)],'handler':async _0x22c2e6=>{const _0x547ff1=_0x861267,_0x1064c5=_0x22c2e6[_0x547ff1(0x1f1)](_0x3199bf);return new URLSearchParams(location[_0x547ff1(0x20c)])[_0x547ff1(0x1f1)]('unit')?_0x1064c5[_0x547ff1(0x20e)]():_0x1064c5[_0x547ff1(0x1ea)](),!0x0;}},u={'id':_0x861267(0x214),'type':_0x1564fb['OPERATION'],'handler':async _0x23946f=>{const _0xdc1311=_0x861267,_0x14123d=_0x23946f['get'](_0x3199bf);return new URLSearchParams(location[_0xdc1311(0x20c)])['get']('unit')?_0x14123d[_0xdc1311(0x1ee)]():_0x14123d[_0xdc1311(0x1ef)](),!0x0;}},H=_0x861267(0x1f3),l={},S=_0x861267(0x207);function R(_0x46a44f){const _0xd27272=_0x861267;return{'id':S,'type':_0x216b6b['SUBITEMS'],'icon':'DirectExportIcon','tooltip':'exchange.file','hidden$':_0x1d55bf(_0x46a44f,_0x3b20d2[_0xd27272(0x1e9)]),'disabled$':_0x5cd884(_0x46a44f,{'workbookTypes':[_0x336922]})};}function w(){const _0x239cdd=_0x861267;return{'id':p['id'],'type':_0x216b6b[_0x239cdd(0x1f5)],'title':_0x239cdd(0x1ff),'icon':'FolderIcon'};}function D(){const _0x481ec1=_0x861267;return{'id':u['id'],'type':_0x216b6b['BUTTON'],'title':_0x481ec1(0x1f4),'icon':_0x481ec1(0x204)};}const F={[_0x5da0f2[_0x861267(0x212)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x861267(0x1eb)],A=(_0x1bd52e,_0x2a2567,_0x3facb5,_0x3d5ff8)=>{for(var _0x4c787d=_0x3d5ff8>0x1?void 0x0:_0x3d5ff8?G(_0x2a2567,_0x3facb5):_0x2a2567,_0x44de06=_0x1bd52e['length']-0x1,_0x286a54;_0x44de06>=0x0;_0x44de06--)(_0x286a54=_0x1bd52e[_0x44de06])&&(_0x4c787d=_0x286a54(_0x4c787d)||_0x4c787d);return _0x4c787d;},d=(_0x8a5b51,_0x1f7df9)=>(_0x208975,_0x46c648)=>_0x1f7df9(_0x208975,_0x46c648,_0x8a5b51);let c=class extends _0x58a3dc{constructor(_0x533fa3,_0x5118e5){const _0x2ee0b1=_0x861267;super(),this['_commandService']=_0x533fa3,this['_menuManagerService']=_0x5118e5,this[_0x2ee0b1(0x202)](),this[_0x2ee0b1(0x1f8)]();}[_0x861267(0x202)](){const _0x43c2e8=_0x861267;[p,u][_0x43c2e8(0x1e7)](_0x22be54=>{const _0x544f24=_0x43c2e8;this[_0x544f24(0x209)](this[_0x544f24(0x1e8)][_0x544f24(0x213)](_0x22be54));});}[_0x861267(0x1f8)](){const _0x583657=_0x861267;this[_0x583657(0x1e6)][_0x583657(0x20f)](F);}};c=A([d(0x0,_0x3a2479),d(0x1,_0x172a4b)],c);var j=Object[_0x861267(0x1ec)],B=Object[_0x861267(0x1eb)],$=(_0x25eccf,_0x37f69f,_0x404bf0)=>_0x37f69f in _0x25eccf?j(_0x25eccf,_0x37f69f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x404bf0}):_0x25eccf[_0x37f69f]=_0x404bf0,V=(_0x4f91a9,_0x1cc355,_0xf1e29,_0x79b962)=>{const _0x5723f4=_0x861267;for(var _0x1a965f=_0x79b962>0x1?void 0x0:_0x79b962?B(_0x1cc355,_0xf1e29):_0x1cc355,_0x2e5fec=_0x4f91a9[_0x5723f4(0x205)]-0x1,_0x13f3d1;_0x2e5fec>=0x0;_0x2e5fec--)(_0x13f3d1=_0x4f91a9[_0x2e5fec])&&(_0x1a965f=_0x13f3d1(_0x1a965f)||_0x1a965f);return _0x1a965f;},_=(_0x58c2b7,_0x17f19e)=>(_0x491502,_0x1565ff)=>_0x17f19e(_0x491502,_0x1565ff,_0x58c2b7),I=(_0x5e1705,_0x2d5766,_0x3d7bd3)=>$(_0x5e1705,typeof _0x2d5766!=_0x861267(0x20b)?_0x2d5766+'':_0x2d5766,_0x3d7bd3);const W=_0x861267(0x20d);let s=class extends _0x579270{constructor(_0x394c9d=l,_0x4dfec9,_0x4a5409){const _0x300a5c=_0x861267;super(),this[_0x300a5c(0x201)]=_0x394c9d,this['_injector']=_0x4dfec9,this[_0x300a5c(0x1f9)]=_0x4a5409;const {menu:_0x50e14d,..._0x5d513d}=_0x230065({},l,this[_0x300a5c(0x201)]);_0x50e14d&&this[_0x300a5c(0x1f9)][_0x300a5c(0x1e5)](_0x300a5c(0x203),_0x50e14d,{'merge':!0x0}),this[_0x300a5c(0x1f9)]['setConfig'](H,_0x5d513d);}[_0x861267(0x1ed)](){const _0x2a8233=_0x861267;[[c]][_0x2a8233(0x1e7)](_0x3390e6=>this['_injector'][_0x2a8233(0x215)](_0x3390e6));}[_0x861267(0x1fc)](){const _0x39db02=_0x861267;this[_0x39db02(0x1fb)][_0x39db02(0x1f1)](c);}};I(s,_0x861267(0x200),W),I(s,_0x861267(0x1f0),_0x3b20d2[_0x861267(0x1e9)]),s=V([_0x4c3999(_0x62eddf),_(0x1,_0x1450d2(_0x39d4fb)),_(0x2,_0x1c45d6)],s);function _0x3f63(){const _0x72c21d=['add','setConfig','_menuManagerService','forEach','_commandService','UNIVER_SHEET','importXLSXToSnapshot','getOwnPropertyDescriptor','defineProperty','onStarting','exportXLSXByUnitId','exportXLSXBySnapshot','type','get','OPERATION','sheets-exchange-client.config','exchange.download','BUTTON','2432637vRWabo','1635990mkNybD','_initMenus','_configService','15CRySOb','_injector','onReady','2100234PIPnkj','212136AgnuDu','exchange.upload','pluginName','_config','_initCommands','menu','ExportIcon','length','635373hWIoFG','sheets-exchange-client.operation.exchange','870755FYHMgl','disposeWithMe','7ZYoJpw','symbol','search','SHEET_EXCHANGE_CLIENT_PLUGIN','importXLSXToUnitId','mergeMenu','exchange-client.operation.import-xlsx','961536MutgmD','OTHERS','registerCommand','exchange-client.operation.export-xlsx'];_0x3f63=function(){return _0x72c21d;};return _0x3f63();}export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ function _0x3842(_0x491b72,_0x10e8c4){const _0x127d5f=_0x127d();return _0x3842=function(_0x384206,_0x649ae1){_0x384206=_0x384206-0x198;let _0x39d29f=_0x127d5f[_0x384206];return _0x39d29f;},_0x3842(_0x491b72,_0x10e8c4);}const _0x4ed97b=_0x3842;(function(_0x189428,_0x2488cd){const _0x6564ce=_0x3842,_0xad10bb=_0x189428();while(!![]){try{const _0xcbb72=-parseInt(_0x6564ce(0x1be))/0x1+-parseInt(_0x6564ce(0x1a0))/0x2*(-parseInt(_0x6564ce(0x198))/0x3)+-parseInt(_0x6564ce(0x1c4))/0x4*(-parseInt(_0x6564ce(0x1a4))/0x5)+-parseInt(_0x6564ce(0x1a2))/0x6+parseInt(_0x6564ce(0x19f))/0x7+-parseInt(_0x6564ce(0x1bf))/0x8*(parseInt(_0x6564ce(0x1c3))/0x9)+-parseInt(_0x6564ce(0x1b8))/0xa;if(_0xcbb72===_0x2488cd)break;else _0xad10bb['push'](_0xad10bb['shift']());}catch(_0x567178){_0xad10bb['push'](_0xad10bb['shift']());}}}(_0x127d,0xe0ecd));import{IExchangeOperateService as _0x352ced,UniverExchangeClientPlugin as _0x5cded7}from'@univerjs-pro/exchange-client';function _0x127d(){const _0x4a2b9d=['defineProperty','_configService','exchange.download','_initMenus','mergeMenu','sheets-exchange-client.operation.exchange','_config','6298160WZqeek','get','exchange-client.operation.import-xlsx','search','DirectExportIcon','UNIVER_SHEET','1535358pFnyYI','40KbxvJY','importXLSXToSnapshot','OTHERS','getOwnPropertyDescriptor','1634193zJZqqE','4ZJbzVo','onReady','_initCommands','4223553fWjKSC','setConfig','forEach','type','onStarting','disposeWithMe','exportXLSXBySnapshot','11032700nJLEuz','2tWahCf','ExportIcon','2540532hGHubv','menu','7169115ncuQiH','registerCommand','sheets-exchange-client.config','_menuManagerService','BUTTON','exchange.file','unit','exportXLSXByUnitId','_commandService','pluginName','SHEET_EXCHANGE_CLIENT_PLUGIN','length','_injector'];_0x127d=function(){return _0x4a2b9d;};return _0x127d();}import{CommandType as _0x5f167e,UniverInstanceType as _0x3b215c,Disposable as _0x24adcd,ICommandService as _0x3d5587,DependentOn as _0x1207c7,Inject as _0x48dbe6,Injector as _0x51f937,IConfigService as _0x255071,Plugin as _0x52cf6b,merge as _0x589410}from'@univerjs/core';import{MenuItemType as _0x48df5f,getMenuHiddenObservable as _0x3256b4,RibbonStartGroup as _0x3116c0,IMenuManagerService as _0x231d0b}from'@univerjs/ui';import{WorkbookExportPermission as _0x1232db}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x215c75}from'@univerjs/sheets-ui';const p={'id':_0x4ed97b(0x1ba),'type':_0x5f167e['OPERATION'],'handler':async _0x5945c0=>{const _0x47ea3d=_0x4ed97b,_0x287cea=_0x5945c0[_0x47ea3d(0x1b9)](_0x352ced);return new URLSearchParams(location[_0x47ea3d(0x1bb)])[_0x47ea3d(0x1b9)](_0x47ea3d(0x1aa))?_0x287cea['importXLSXToUnitId']():_0x287cea[_0x47ea3d(0x1c0)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x5f167e['OPERATION'],'handler':async _0xb61a20=>{const _0x4ebfb8=_0x4ed97b,_0x1a332c=_0xb61a20[_0x4ebfb8(0x1b9)](_0x352ced);return new URLSearchParams(location['search'])['get']('unit')?_0x1a332c[_0x4ebfb8(0x1ab)]():_0x1a332c[_0x4ebfb8(0x19e)](),!0x0;}},H=_0x4ed97b(0x1a6),l={},S=_0x4ed97b(0x1b6);function R(_0x5c48d0){const _0x46ff13=_0x4ed97b;return{'id':S,'type':_0x48df5f['SUBITEMS'],'icon':_0x46ff13(0x1bc),'tooltip':_0x46ff13(0x1a9),'hidden$':_0x3256b4(_0x5c48d0,_0x3b215c[_0x46ff13(0x1bd)]),'disabled$':_0x215c75(_0x5c48d0,{'workbookTypes':[_0x1232db]})};}function w(){const _0x5718ea=_0x4ed97b;return{'id':p['id'],'type':_0x48df5f[_0x5718ea(0x1a8)],'title':'exchange.upload','icon':'FolderIcon'};}function D(){const _0xcb2e74=_0x4ed97b;return{'id':u['id'],'type':_0x48df5f[_0xcb2e74(0x1a8)],'title':_0xcb2e74(0x1b3),'icon':_0xcb2e74(0x1a1)};}const F={[_0x3116c0[_0x4ed97b(0x1c1)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x4ed97b(0x1c2)],A=(_0x5bca88,_0x5011ea,_0x45c382,_0x2b494d)=>{for(var _0x8f3ef3=_0x2b494d>0x1?void 0x0:_0x2b494d?G(_0x5011ea,_0x45c382):_0x5011ea,_0x213950=_0x5bca88['length']-0x1,_0x4fd040;_0x213950>=0x0;_0x213950--)(_0x4fd040=_0x5bca88[_0x213950])&&(_0x8f3ef3=_0x4fd040(_0x8f3ef3)||_0x8f3ef3);return _0x8f3ef3;},d=(_0x128ccc,_0x36ab11)=>(_0x4bd098,_0x57da3e)=>_0x36ab11(_0x4bd098,_0x57da3e,_0x128ccc);let c=class extends _0x24adcd{constructor(_0xb45ee8,_0x274aa9){const _0x51490a=_0x4ed97b;super(),this['_commandService']=_0xb45ee8,this[_0x51490a(0x1a7)]=_0x274aa9,this[_0x51490a(0x1c6)](),this[_0x51490a(0x1b4)]();}[_0x4ed97b(0x1c6)](){[p,u]['forEach'](_0x382f23=>{const _0x5b4ba6=_0x3842;this[_0x5b4ba6(0x19d)](this[_0x5b4ba6(0x1ac)][_0x5b4ba6(0x1a5)](_0x382f23));});}[_0x4ed97b(0x1b4)](){const _0x14db98=_0x4ed97b;this[_0x14db98(0x1a7)][_0x14db98(0x1b5)](F);}};c=A([d(0x0,_0x3d5587),d(0x1,_0x231d0b)],c);var j=Object[_0x4ed97b(0x1b1)],B=Object['getOwnPropertyDescriptor'],$=(_0x138a21,_0x3a0453,_0x3ce731)=>_0x3a0453 in _0x138a21?j(_0x138a21,_0x3a0453,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ce731}):_0x138a21[_0x3a0453]=_0x3ce731,V=(_0x4ed8cc,_0x1a9767,_0xfd022,_0x312730)=>{const _0x2d2dab=_0x4ed97b;for(var _0x28a276=_0x312730>0x1?void 0x0:_0x312730?B(_0x1a9767,_0xfd022):_0x1a9767,_0x441b63=_0x4ed8cc[_0x2d2dab(0x1af)]-0x1,_0x4966e6;_0x441b63>=0x0;_0x441b63--)(_0x4966e6=_0x4ed8cc[_0x441b63])&&(_0x28a276=_0x4966e6(_0x28a276)||_0x28a276);return _0x28a276;},_=(_0x4b228e,_0x19e289)=>(_0x1e7d1d,_0x80b3e9)=>_0x19e289(_0x1e7d1d,_0x80b3e9,_0x4b228e),I=(_0x4b928d,_0x2201dc,_0x3d6fb3)=>$(_0x4b928d,typeof _0x2201dc!='symbol'?_0x2201dc+'':_0x2201dc,_0x3d6fb3);const W=_0x4ed97b(0x1ae);let s=class extends _0x52cf6b{constructor(_0x361171=l,_0x693a87,_0x3747a7){const _0x2812c0=_0x4ed97b;super(),this[_0x2812c0(0x1b7)]=_0x361171,this[_0x2812c0(0x1b0)]=_0x693a87,this[_0x2812c0(0x1b2)]=_0x3747a7;const {menu:_0x4dc7e7,..._0x3f02db}=_0x589410({},l,this[_0x2812c0(0x1b7)]);_0x4dc7e7&&this[_0x2812c0(0x1b2)][_0x2812c0(0x199)](_0x2812c0(0x1a3),_0x4dc7e7,{'merge':!0x0}),this[_0x2812c0(0x1b2)]['setConfig'](H,_0x3f02db);}[_0x4ed97b(0x19c)](){const _0x3e1805=_0x4ed97b;[[c]][_0x3e1805(0x19a)](_0x3ed6a4=>this[_0x3e1805(0x1b0)]['add'](_0x3ed6a4));}[_0x4ed97b(0x1c5)](){const _0x158c0b=_0x4ed97b;this[_0x158c0b(0x1b0)][_0x158c0b(0x1b9)](c);}};I(s,_0x4ed97b(0x1ad),W),I(s,_0x4ed97b(0x19b),_0x3b215c[_0x4ed97b(0x1bd)]),s=V([_0x1207c7(_0x5cded7),_(0x1,_0x48dbe6(_0x51f937)),_(0x2,_0x255071)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x861267=_0x3be3;(function(_0x41142d,_0x1837ae){const _0x139aca=_0x3be3,_0x2ac066=_0x41142d();while(!![]){try{const _0x115a8f=-parseInt(_0x139aca(0x206))/0x1+parseInt(_0x139aca(0x1f7))/0x2+parseInt(_0x139aca(0x1fa))/0x3*(-parseInt(_0x139aca(0x1fe))/0x4)+-parseInt(_0x139aca(0x208))/0x5+-parseInt(_0x139aca(0x1fd))/0x6*(-parseInt(_0x139aca(0x20a))/0x7)+parseInt(_0x139aca(0x211))/0x8+parseInt(_0x139aca(0x1f6))/0x9;if(_0x115a8f===_0x1837ae)break;else _0x2ac066['push'](_0x2ac066['shift']());}catch(_0xfb2b48){_0x2ac066['push'](_0x2ac066['shift']());}}}(_0x3f63,0x761f1));function _0x3be3(_0xa83e66,_0x230e9a){const _0x3f63d3=_0x3f63();return _0x3be3=function(_0x3be386,_0xf81693){_0x3be386=_0x3be386-0x1e5;let _0x7be76c=_0x3f63d3[_0x3be386];return _0x7be76c;},_0x3be3(_0xa83e66,_0x230e9a);}import{IExchangeOperateService as _0x3199bf,UniverExchangeClientPlugin as _0x62eddf}from'@univerjs-pro/exchange-client';import{CommandType as _0x1564fb,UniverInstanceType as _0x3b20d2,Disposable as _0x58a3dc,ICommandService as _0x3a2479,DependentOn as _0x4c3999,Inject as _0x1450d2,Injector as _0x39d4fb,IConfigService as _0x1c45d6,Plugin as _0x579270,merge as _0x230065}from'@univerjs/core';import{MenuItemType as _0x216b6b,getMenuHiddenObservable as _0x1d55bf,RibbonStartGroup as _0x5da0f2,IMenuManagerService as _0x172a4b}from'@univerjs/ui';import{WorkbookExportPermission as _0x336922}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x5cd884}from'@univerjs/sheets-ui';const p={'id':_0x861267(0x210),'type':_0x1564fb[_0x861267(0x1f2)],'handler':async _0x22c2e6=>{const _0x547ff1=_0x861267,_0x1064c5=_0x22c2e6[_0x547ff1(0x1f1)](_0x3199bf);return new URLSearchParams(location[_0x547ff1(0x20c)])[_0x547ff1(0x1f1)]('unit')?_0x1064c5[_0x547ff1(0x20e)]():_0x1064c5[_0x547ff1(0x1ea)](),!0x0;}},u={'id':_0x861267(0x214),'type':_0x1564fb['OPERATION'],'handler':async _0x23946f=>{const _0xdc1311=_0x861267,_0x14123d=_0x23946f['get'](_0x3199bf);return new URLSearchParams(location[_0xdc1311(0x20c)])['get']('unit')?_0x14123d[_0xdc1311(0x1ee)]():_0x14123d[_0xdc1311(0x1ef)](),!0x0;}},H=_0x861267(0x1f3),l={},S=_0x861267(0x207);function R(_0x46a44f){const _0xd27272=_0x861267;return{'id':S,'type':_0x216b6b['SUBITEMS'],'icon':'DirectExportIcon','tooltip':'exchange.file','hidden$':_0x1d55bf(_0x46a44f,_0x3b20d2[_0xd27272(0x1e9)]),'disabled$':_0x5cd884(_0x46a44f,{'workbookTypes':[_0x336922]})};}function w(){const _0x239cdd=_0x861267;return{'id':p['id'],'type':_0x216b6b[_0x239cdd(0x1f5)],'title':_0x239cdd(0x1ff),'icon':'FolderIcon'};}function D(){const _0x481ec1=_0x861267;return{'id':u['id'],'type':_0x216b6b['BUTTON'],'title':_0x481ec1(0x1f4),'icon':_0x481ec1(0x204)};}const F={[_0x5da0f2[_0x861267(0x212)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x861267(0x1eb)],A=(_0x1bd52e,_0x2a2567,_0x3facb5,_0x3d5ff8)=>{for(var _0x4c787d=_0x3d5ff8>0x1?void 0x0:_0x3d5ff8?G(_0x2a2567,_0x3facb5):_0x2a2567,_0x44de06=_0x1bd52e['length']-0x1,_0x286a54;_0x44de06>=0x0;_0x44de06--)(_0x286a54=_0x1bd52e[_0x44de06])&&(_0x4c787d=_0x286a54(_0x4c787d)||_0x4c787d);return _0x4c787d;},d=(_0x8a5b51,_0x1f7df9)=>(_0x208975,_0x46c648)=>_0x1f7df9(_0x208975,_0x46c648,_0x8a5b51);let c=class extends _0x58a3dc{constructor(_0x533fa3,_0x5118e5){const _0x2ee0b1=_0x861267;super(),this['_commandService']=_0x533fa3,this['_menuManagerService']=_0x5118e5,this[_0x2ee0b1(0x202)](),this[_0x2ee0b1(0x1f8)]();}[_0x861267(0x202)](){const _0x43c2e8=_0x861267;[p,u][_0x43c2e8(0x1e7)](_0x22be54=>{const _0x544f24=_0x43c2e8;this[_0x544f24(0x209)](this[_0x544f24(0x1e8)][_0x544f24(0x213)](_0x22be54));});}[_0x861267(0x1f8)](){const _0x583657=_0x861267;this[_0x583657(0x1e6)][_0x583657(0x20f)](F);}};c=A([d(0x0,_0x3a2479),d(0x1,_0x172a4b)],c);var j=Object[_0x861267(0x1ec)],B=Object[_0x861267(0x1eb)],$=(_0x25eccf,_0x37f69f,_0x404bf0)=>_0x37f69f in _0x25eccf?j(_0x25eccf,_0x37f69f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x404bf0}):_0x25eccf[_0x37f69f]=_0x404bf0,V=(_0x4f91a9,_0x1cc355,_0xf1e29,_0x79b962)=>{const _0x5723f4=_0x861267;for(var _0x1a965f=_0x79b962>0x1?void 0x0:_0x79b962?B(_0x1cc355,_0xf1e29):_0x1cc355,_0x2e5fec=_0x4f91a9[_0x5723f4(0x205)]-0x1,_0x13f3d1;_0x2e5fec>=0x0;_0x2e5fec--)(_0x13f3d1=_0x4f91a9[_0x2e5fec])&&(_0x1a965f=_0x13f3d1(_0x1a965f)||_0x1a965f);return _0x1a965f;},_=(_0x58c2b7,_0x17f19e)=>(_0x491502,_0x1565ff)=>_0x17f19e(_0x491502,_0x1565ff,_0x58c2b7),I=(_0x5e1705,_0x2d5766,_0x3d7bd3)=>$(_0x5e1705,typeof _0x2d5766!=_0x861267(0x20b)?_0x2d5766+'':_0x2d5766,_0x3d7bd3);const W=_0x861267(0x20d);let s=class extends _0x579270{constructor(_0x394c9d=l,_0x4dfec9,_0x4a5409){const _0x300a5c=_0x861267;super(),this[_0x300a5c(0x201)]=_0x394c9d,this['_injector']=_0x4dfec9,this[_0x300a5c(0x1f9)]=_0x4a5409;const {menu:_0x50e14d,..._0x5d513d}=_0x230065({},l,this[_0x300a5c(0x201)]);_0x50e14d&&this[_0x300a5c(0x1f9)][_0x300a5c(0x1e5)](_0x300a5c(0x203),_0x50e14d,{'merge':!0x0}),this[_0x300a5c(0x1f9)]['setConfig'](H,_0x5d513d);}[_0x861267(0x1ed)](){const _0x2a8233=_0x861267;[[c]][_0x2a8233(0x1e7)](_0x3390e6=>this['_injector'][_0x2a8233(0x215)](_0x3390e6));}[_0x861267(0x1fc)](){const _0x39db02=_0x861267;this[_0x39db02(0x1fb)][_0x39db02(0x1f1)](c);}};I(s,_0x861267(0x200),W),I(s,_0x861267(0x1f0),_0x3b20d2[_0x861267(0x1e9)]),s=V([_0x4c3999(_0x62eddf),_(0x1,_0x1450d2(_0x39d4fb)),_(0x2,_0x1c45d6)],s);function _0x3f63(){const _0x72c21d=['add','setConfig','_menuManagerService','forEach','_commandService','UNIVER_SHEET','importXLSXToSnapshot','getOwnPropertyDescriptor','defineProperty','onStarting','exportXLSXByUnitId','exportXLSXBySnapshot','type','get','OPERATION','sheets-exchange-client.config','exchange.download','BUTTON','2432637vRWabo','1635990mkNybD','_initMenus','_configService','15CRySOb','_injector','onReady','2100234PIPnkj','212136AgnuDu','exchange.upload','pluginName','_config','_initCommands','menu','ExportIcon','length','635373hWIoFG','sheets-exchange-client.operation.exchange','870755FYHMgl','disposeWithMe','7ZYoJpw','symbol','search','SHEET_EXCHANGE_CLIENT_PLUGIN','importXLSXToUnitId','mergeMenu','exchange-client.operation.import-xlsx','961536MutgmD','OTHERS','registerCommand','exchange-client.operation.export-xlsx'];_0x3f63=function(){return _0x72c21d;};return _0x3f63();}export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ function _0x3842(_0x491b72,_0x10e8c4){const _0x127d5f=_0x127d();return _0x3842=function(_0x384206,_0x649ae1){_0x384206=_0x384206-0x198;let _0x39d29f=_0x127d5f[_0x384206];return _0x39d29f;},_0x3842(_0x491b72,_0x10e8c4);}const _0x4ed97b=_0x3842;(function(_0x189428,_0x2488cd){const _0x6564ce=_0x3842,_0xad10bb=_0x189428();while(!![]){try{const _0xcbb72=-parseInt(_0x6564ce(0x1be))/0x1+-parseInt(_0x6564ce(0x1a0))/0x2*(-parseInt(_0x6564ce(0x198))/0x3)+-parseInt(_0x6564ce(0x1c4))/0x4*(-parseInt(_0x6564ce(0x1a4))/0x5)+-parseInt(_0x6564ce(0x1a2))/0x6+parseInt(_0x6564ce(0x19f))/0x7+-parseInt(_0x6564ce(0x1bf))/0x8*(parseInt(_0x6564ce(0x1c3))/0x9)+-parseInt(_0x6564ce(0x1b8))/0xa;if(_0xcbb72===_0x2488cd)break;else _0xad10bb['push'](_0xad10bb['shift']());}catch(_0x567178){_0xad10bb['push'](_0xad10bb['shift']());}}}(_0x127d,0xe0ecd));import{IExchangeOperateService as _0x352ced,UniverExchangeClientPlugin as _0x5cded7}from'@univerjs-pro/exchange-client';function _0x127d(){const _0x4a2b9d=['defineProperty','_configService','exchange.download','_initMenus','mergeMenu','sheets-exchange-client.operation.exchange','_config','6298160WZqeek','get','exchange-client.operation.import-xlsx','search','DirectExportIcon','UNIVER_SHEET','1535358pFnyYI','40KbxvJY','importXLSXToSnapshot','OTHERS','getOwnPropertyDescriptor','1634193zJZqqE','4ZJbzVo','onReady','_initCommands','4223553fWjKSC','setConfig','forEach','type','onStarting','disposeWithMe','exportXLSXBySnapshot','11032700nJLEuz','2tWahCf','ExportIcon','2540532hGHubv','menu','7169115ncuQiH','registerCommand','sheets-exchange-client.config','_menuManagerService','BUTTON','exchange.file','unit','exportXLSXByUnitId','_commandService','pluginName','SHEET_EXCHANGE_CLIENT_PLUGIN','length','_injector'];_0x127d=function(){return _0x4a2b9d;};return _0x127d();}import{CommandType as _0x5f167e,UniverInstanceType as _0x3b215c,Disposable as _0x24adcd,ICommandService as _0x3d5587,DependentOn as _0x1207c7,Inject as _0x48dbe6,Injector as _0x51f937,IConfigService as _0x255071,Plugin as _0x52cf6b,merge as _0x589410}from'@univerjs/core';import{MenuItemType as _0x48df5f,getMenuHiddenObservable as _0x3256b4,RibbonStartGroup as _0x3116c0,IMenuManagerService as _0x231d0b}from'@univerjs/ui';import{WorkbookExportPermission as _0x1232db}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x215c75}from'@univerjs/sheets-ui';const p={'id':_0x4ed97b(0x1ba),'type':_0x5f167e['OPERATION'],'handler':async _0x5945c0=>{const _0x47ea3d=_0x4ed97b,_0x287cea=_0x5945c0[_0x47ea3d(0x1b9)](_0x352ced);return new URLSearchParams(location[_0x47ea3d(0x1bb)])[_0x47ea3d(0x1b9)](_0x47ea3d(0x1aa))?_0x287cea['importXLSXToUnitId']():_0x287cea[_0x47ea3d(0x1c0)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x5f167e['OPERATION'],'handler':async _0xb61a20=>{const _0x4ebfb8=_0x4ed97b,_0x1a332c=_0xb61a20[_0x4ebfb8(0x1b9)](_0x352ced);return new URLSearchParams(location['search'])['get']('unit')?_0x1a332c[_0x4ebfb8(0x1ab)]():_0x1a332c[_0x4ebfb8(0x19e)](),!0x0;}},H=_0x4ed97b(0x1a6),l={},S=_0x4ed97b(0x1b6);function R(_0x5c48d0){const _0x46ff13=_0x4ed97b;return{'id':S,'type':_0x48df5f['SUBITEMS'],'icon':_0x46ff13(0x1bc),'tooltip':_0x46ff13(0x1a9),'hidden$':_0x3256b4(_0x5c48d0,_0x3b215c[_0x46ff13(0x1bd)]),'disabled$':_0x215c75(_0x5c48d0,{'workbookTypes':[_0x1232db]})};}function w(){const _0x5718ea=_0x4ed97b;return{'id':p['id'],'type':_0x48df5f[_0x5718ea(0x1a8)],'title':'exchange.upload','icon':'FolderIcon'};}function D(){const _0xcb2e74=_0x4ed97b;return{'id':u['id'],'type':_0x48df5f[_0xcb2e74(0x1a8)],'title':_0xcb2e74(0x1b3),'icon':_0xcb2e74(0x1a1)};}const F={[_0x3116c0[_0x4ed97b(0x1c1)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x4ed97b(0x1c2)],A=(_0x5bca88,_0x5011ea,_0x45c382,_0x2b494d)=>{for(var _0x8f3ef3=_0x2b494d>0x1?void 0x0:_0x2b494d?G(_0x5011ea,_0x45c382):_0x5011ea,_0x213950=_0x5bca88['length']-0x1,_0x4fd040;_0x213950>=0x0;_0x213950--)(_0x4fd040=_0x5bca88[_0x213950])&&(_0x8f3ef3=_0x4fd040(_0x8f3ef3)||_0x8f3ef3);return _0x8f3ef3;},d=(_0x128ccc,_0x36ab11)=>(_0x4bd098,_0x57da3e)=>_0x36ab11(_0x4bd098,_0x57da3e,_0x128ccc);let c=class extends _0x24adcd{constructor(_0xb45ee8,_0x274aa9){const _0x51490a=_0x4ed97b;super(),this['_commandService']=_0xb45ee8,this[_0x51490a(0x1a7)]=_0x274aa9,this[_0x51490a(0x1c6)](),this[_0x51490a(0x1b4)]();}[_0x4ed97b(0x1c6)](){[p,u]['forEach'](_0x382f23=>{const _0x5b4ba6=_0x3842;this[_0x5b4ba6(0x19d)](this[_0x5b4ba6(0x1ac)][_0x5b4ba6(0x1a5)](_0x382f23));});}[_0x4ed97b(0x1b4)](){const _0x14db98=_0x4ed97b;this[_0x14db98(0x1a7)][_0x14db98(0x1b5)](F);}};c=A([d(0x0,_0x3d5587),d(0x1,_0x231d0b)],c);var j=Object[_0x4ed97b(0x1b1)],B=Object['getOwnPropertyDescriptor'],$=(_0x138a21,_0x3a0453,_0x3ce731)=>_0x3a0453 in _0x138a21?j(_0x138a21,_0x3a0453,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ce731}):_0x138a21[_0x3a0453]=_0x3ce731,V=(_0x4ed8cc,_0x1a9767,_0xfd022,_0x312730)=>{const _0x2d2dab=_0x4ed97b;for(var _0x28a276=_0x312730>0x1?void 0x0:_0x312730?B(_0x1a9767,_0xfd022):_0x1a9767,_0x441b63=_0x4ed8cc[_0x2d2dab(0x1af)]-0x1,_0x4966e6;_0x441b63>=0x0;_0x441b63--)(_0x4966e6=_0x4ed8cc[_0x441b63])&&(_0x28a276=_0x4966e6(_0x28a276)||_0x28a276);return _0x28a276;},_=(_0x4b228e,_0x19e289)=>(_0x1e7d1d,_0x80b3e9)=>_0x19e289(_0x1e7d1d,_0x80b3e9,_0x4b228e),I=(_0x4b928d,_0x2201dc,_0x3d6fb3)=>$(_0x4b928d,typeof _0x2201dc!='symbol'?_0x2201dc+'':_0x2201dc,_0x3d6fb3);const W=_0x4ed97b(0x1ae);let s=class extends _0x52cf6b{constructor(_0x361171=l,_0x693a87,_0x3747a7){const _0x2812c0=_0x4ed97b;super(),this[_0x2812c0(0x1b7)]=_0x361171,this[_0x2812c0(0x1b0)]=_0x693a87,this[_0x2812c0(0x1b2)]=_0x3747a7;const {menu:_0x4dc7e7,..._0x3f02db}=_0x589410({},l,this[_0x2812c0(0x1b7)]);_0x4dc7e7&&this[_0x2812c0(0x1b2)][_0x2812c0(0x199)](_0x2812c0(0x1a3),_0x4dc7e7,{'merge':!0x0}),this[_0x2812c0(0x1b2)]['setConfig'](H,_0x3f02db);}[_0x4ed97b(0x19c)](){const _0x3e1805=_0x4ed97b;[[c]][_0x3e1805(0x19a)](_0x3ed6a4=>this[_0x3e1805(0x1b0)]['add'](_0x3ed6a4));}[_0x4ed97b(0x1c5)](){const _0x158c0b=_0x4ed97b;this[_0x158c0b(0x1b0)][_0x158c0b(0x1b9)](c);}};I(s,_0x4ed97b(0x1ad),W),I(s,_0x4ed97b(0x19b),_0x3b215c[_0x4ed97b(0x1bd)]),s=V([_0x1207c7(_0x5cded7),_(0x1,_0x48dbe6(_0x51f937)),_(0x2,_0x255071)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x5ed0(_0x467918,_0x5eed54){const _0x3e0cf4=_0x3e0c();return _0x5ed0=function(_0x5ed095,_0x1849e5){_0x5ed095=_0x5ed095-0xe3;let _0x39425b=_0x3e0cf4[_0x5ed095];return _0x39425b;},_0x5ed0(_0x467918,_0x5eed54);}function _0x3e0c(){const _0x1debf4=['UniverSheetsExchangeClientPlugin','exchange-client.operation.export-xlsx','6585655aHXYAb','@univerjs/sheets-ui','importXLSXToUnitId','UniverExchangeClientPlugin','Module','1704477LSioKZ','2468090jwiSye','unit','exportXLSXByUnitId','OPERATION','amd','UniverCore','@univerjs/core','symbol','add','sheets-exchange-client.config','_commandService','BUTTON','sheets-exchange-client.operation.exchange','exports','ExportIcon','UniverSheets','89094NVdxWm','CommandType','217017SkMUGY','RibbonStartGroup','getMenuHiddenObservable','exchange-client.operation.import-xlsx','_config','toStringTag','SUBITEMS','ICommandService','length','_configService','UniverInstanceType','1926492mkDjJu','UniverSheetsUi','type','4gwTvEz','_initCommands','get','@univerjs/ui','registerCommand','9130065uGqTOv','UniverUi','_injector','merge','forEach','UNIVER_SHEET','function','IMenuManagerService','disposeWithMe','search','FolderIcon','IExchangeOperateService','importXLSXToSnapshot','@univerjs/sheets','WorkbookExportPermission','getOwnPropertyDescriptor','getCurrentRangeDisable$','exchange.upload','defineProperty','menu','SHEET_EXCHANGE_CLIENT_PLUGIN','setConfig','@univerjs-pro/exchange-client','UniverProSheetsExchangeClient','OTHERS','MenuItemType','136aCNVdc','DependentOn'];_0x3e0c=function(){return _0x1debf4;};return _0x3e0c();}(function(_0x157375,_0x2f0cee){const _0x1b2296=_0x5ed0,_0x154392=_0x157375();while(!![]){try{const _0x2435f6=parseInt(_0x1b2296(0x122))/0x1+-parseInt(_0x1b2296(0x112))/0x2+-parseInt(_0x1b2296(0x111))/0x3+parseInt(_0x1b2296(0xe9))/0x4*(parseInt(_0x1b2296(0x10c))/0x5)+parseInt(_0x1b2296(0xe6))/0x6+parseInt(_0x1b2296(0xee))/0x7+parseInt(_0x1b2296(0x108))/0x8*(-parseInt(_0x1b2296(0x124))/0x9);if(_0x2435f6===_0x2f0cee)break;else _0x154392['push'](_0x154392['shift']());}catch(_0xb87aa){_0x154392['push'](_0x154392['shift']());}}}(_0x3e0c,0xc8115),function(_0x28c108,_0x12cede){const _0x27c36b=_0x5ed0;typeof exports=='object'&&typeof module<'u'?_0x12cede(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x27c36b(0xf4)&&define[_0x27c36b(0x116)]?define([_0x27c36b(0x11f),_0x27c36b(0x104),_0x27c36b(0x118),_0x27c36b(0xec),_0x27c36b(0xfb),_0x27c36b(0x10d)],_0x12cede):(_0x28c108=typeof globalThis<'u'?globalThis:_0x28c108||self,_0x12cede(_0x28c108[_0x27c36b(0x105)]={},_0x28c108['UniverProExchangeClient'],_0x28c108[_0x27c36b(0x117)],_0x28c108[_0x27c36b(0xef)],_0x28c108[_0x27c36b(0x121)],_0x28c108[_0x27c36b(0xe7)]));}(this,function(_0x31fefc,_0x381030,_0x564d7d,_0x7d5695,_0x20141e,_0x446302){'use strict';const _0x2fe283=_0x5ed0;const _0x4a5e91={'id':_0x2fe283(0x127),'type':_0x564d7d[_0x2fe283(0x123)]['OPERATION'],'handler':async _0x1025c8=>{const _0x505a63=_0x2fe283,_0x43667a=_0x1025c8['get'](_0x381030[_0x505a63(0xf9)]);return new URLSearchParams(location[_0x505a63(0xf7)])[_0x505a63(0xeb)](_0x505a63(0x113))?_0x43667a[_0x505a63(0x10e)]():_0x43667a[_0x505a63(0xfa)](),!0x0;}},_0x54d616={'id':_0x2fe283(0x10b),'type':_0x564d7d[_0x2fe283(0x123)][_0x2fe283(0x115)],'handler':async _0x5e38bc=>{const _0x5be83b=_0x2fe283,_0x3eb5b9=_0x5e38bc[_0x5be83b(0xeb)](_0x381030[_0x5be83b(0xf9)]);return new URLSearchParams(location['search'])[_0x5be83b(0xeb)](_0x5be83b(0x113))?_0x3eb5b9[_0x5be83b(0x114)]():_0x3eb5b9['exportXLSXBySnapshot'](),!0x0;}},_0x986193=_0x2fe283(0x11b),_0x555131={},_0x39d636=_0x2fe283(0x11e);function _0x3fc673(_0x2b5d4a){const _0x50289e=_0x2fe283;return{'id':_0x39d636,'type':_0x7d5695['MenuItemType'][_0x50289e(0x12a)],'icon':'DirectExportIcon','tooltip':'exchange.file','hidden$':_0x7d5695[_0x50289e(0x126)](_0x2b5d4a,_0x564d7d[_0x50289e(0xe5)][_0x50289e(0xf3)]),'disabled$':_0x446302[_0x50289e(0xfe)](_0x2b5d4a,{'workbookTypes':[_0x20141e[_0x50289e(0xfc)]]})};}function _0xe03d91(){const _0x48e208=_0x2fe283;return{'id':_0x4a5e91['id'],'type':_0x7d5695[_0x48e208(0x107)][_0x48e208(0x11d)],'title':_0x48e208(0xff),'icon':_0x48e208(0xf8)};}function _0x498ce8(){const _0x37f037=_0x2fe283;return{'id':_0x54d616['id'],'type':_0x7d5695[_0x37f037(0x107)][_0x37f037(0x11d)],'title':'exchange.download','icon':_0x37f037(0x120)};}const _0xd838de={[_0x7d5695[_0x2fe283(0x125)][_0x2fe283(0x106)]]:{[_0x39d636]:{'order':0.3,'menuItemFactory':_0x3fc673,[_0x4a5e91['id']]:{'order':0x0,'menuItemFactory':_0xe03d91},[_0x54d616['id']]:{'order':0x1,'menuItemFactory':_0x498ce8}}}};var _0x79c357=Object[_0x2fe283(0xfd)],_0x1b539e=(_0x2737b1,_0x559a47,_0x3a4ddd,_0x2b0eac)=>{const _0x3f4140=_0x2fe283;for(var _0x895efd=_0x2b0eac>0x1?void 0x0:_0x2b0eac?_0x79c357(_0x559a47,_0x3a4ddd):_0x559a47,_0x5b116b=_0x2737b1[_0x3f4140(0xe3)]-0x1,_0x2e7245;_0x5b116b>=0x0;_0x5b116b--)(_0x2e7245=_0x2737b1[_0x5b116b])&&(_0x895efd=_0x2e7245(_0x895efd)||_0x895efd);return _0x895efd;},_0x154393=(_0x34c583,_0x442818)=>(_0x255e14,_0x3686ac)=>_0x442818(_0x255e14,_0x3686ac,_0x34c583);let _0x289885=class extends _0x564d7d['Disposable']{constructor(_0x513201,_0x1c7211){const _0x3121e3=_0x2fe283;super(),this[_0x3121e3(0x11c)]=_0x513201,this['_menuManagerService']=_0x1c7211,this[_0x3121e3(0xea)](),this['_initMenus']();}[_0x2fe283(0xea)](){const _0x2d9454=_0x2fe283;[_0x4a5e91,_0x54d616][_0x2d9454(0xf2)](_0x5c52e8=>{const _0x386578=_0x2d9454;this[_0x386578(0xf6)](this['_commandService'][_0x386578(0xed)](_0x5c52e8));});}['_initMenus'](){this['_menuManagerService']['mergeMenu'](_0xd838de);}};_0x289885=_0x1b539e([_0x154393(0x0,_0x564d7d[_0x2fe283(0x12b)]),_0x154393(0x1,_0x7d5695[_0x2fe283(0xf5)])],_0x289885);var _0x27cdfa=Object[_0x2fe283(0x100)],_0x5b93f2=Object[_0x2fe283(0xfd)],_0x2fe666=(_0x79d64e,_0xaecf27,_0xf281f7)=>_0xaecf27 in _0x79d64e?_0x27cdfa(_0x79d64e,_0xaecf27,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf281f7}):_0x79d64e[_0xaecf27]=_0xf281f7,_0x4d8f19=(_0x30534f,_0x1b32c2,_0x51802e,_0x37a9ad)=>{const _0x2f2c78=_0x2fe283;for(var _0x404099=_0x37a9ad>0x1?void 0x0:_0x37a9ad?_0x5b93f2(_0x1b32c2,_0x51802e):_0x1b32c2,_0x5313bf=_0x30534f[_0x2f2c78(0xe3)]-0x1,_0x22fce0;_0x5313bf>=0x0;_0x5313bf--)(_0x22fce0=_0x30534f[_0x5313bf])&&(_0x404099=_0x22fce0(_0x404099)||_0x404099);return _0x404099;},_0x11a075=(_0x2c4892,_0x42e904)=>(_0x6911c0,_0x4c14e5)=>_0x42e904(_0x6911c0,_0x4c14e5,_0x2c4892),_0x108a2c=(_0x32f893,_0x4af1f4,_0xf645f5)=>_0x2fe666(_0x32f893,typeof _0x4af1f4!=_0x2fe283(0x119)?_0x4af1f4+'':_0x4af1f4,_0xf645f5);const _0x3afc3b=_0x2fe283(0x102);_0x31fefc['UniverSheetsExchangeClientPlugin']=class extends _0x564d7d['Plugin']{constructor(_0x493e41=_0x555131,_0x4493be,_0x46e235){const _0x2fdfd4=_0x2fe283;super(),this[_0x2fdfd4(0x128)]=_0x493e41,this[_0x2fdfd4(0xf0)]=_0x4493be,this[_0x2fdfd4(0xe4)]=_0x46e235;const {menu:_0x5dab62,..._0x3200ad}=_0x564d7d[_0x2fdfd4(0xf1)]({},_0x555131,this[_0x2fdfd4(0x128)]);_0x5dab62&&this[_0x2fdfd4(0xe4)][_0x2fdfd4(0x103)](_0x2fdfd4(0x101),_0x5dab62,{'merge':!0x0}),this[_0x2fdfd4(0xe4)][_0x2fdfd4(0x103)](_0x986193,_0x3200ad);}['onStarting'](){const _0x90a2df=_0x2fe283;[[_0x289885]][_0x90a2df(0xf2)](_0x35675d=>this[_0x90a2df(0xf0)][_0x90a2df(0x11a)](_0x35675d));}['onReady'](){const _0x45407b=_0x2fe283;this[_0x45407b(0xf0)]['get'](_0x289885);}},_0x108a2c(_0x31fefc[_0x2fe283(0x10a)],'pluginName',_0x3afc3b),_0x108a2c(_0x31fefc[_0x2fe283(0x10a)],_0x2fe283(0xe8),_0x564d7d[_0x2fe283(0xe5)][_0x2fe283(0xf3)]),_0x31fefc[_0x2fe283(0x10a)]=_0x4d8f19([_0x564d7d[_0x2fe283(0x109)](_0x381030[_0x2fe283(0x10f)]),_0x11a075(0x1,_0x564d7d['Inject'](_0x564d7d['Injector'])),_0x11a075(0x2,_0x564d7d['IConfigService'])],_0x31fefc[_0x2fe283(0x10a)]),_0x31fefc['ExportXLSXOperation']=_0x54d616,_0x31fefc['ImportXLSXOperation']=_0x4a5e91,Object[_0x2fe283(0x100)](_0x31fefc,Symbol[_0x2fe283(0x129)],{'value':_0x2fe283(0x110)});}));
1
+ (function(_0x31cc2c,_0x26b8ea){const _0x29de90=_0x4f05,_0x19b52d=_0x31cc2c();while(!![]){try{const _0x265021=parseInt(_0x29de90(0x1af))/0x1+parseInt(_0x29de90(0x196))/0x2*(parseInt(_0x29de90(0x190))/0x3)+parseInt(_0x29de90(0x19e))/0x4*(parseInt(_0x29de90(0x18e))/0x5)+parseInt(_0x29de90(0x191))/0x6+parseInt(_0x29de90(0x1a6))/0x7*(parseInt(_0x29de90(0x19c))/0x8)+-parseInt(_0x29de90(0x18b))/0x9*(parseInt(_0x29de90(0x179))/0xa)+-parseInt(_0x29de90(0x1b2))/0xb;if(_0x265021===_0x26b8ea)break;else _0x19b52d['push'](_0x19b52d['shift']());}catch(_0x1cdc7d){_0x19b52d['push'](_0x19b52d['shift']());}}}(_0x5663,0x72aa6),function(_0x13be67,_0x3e82b){const _0x1e7806=_0x4f05;typeof exports==_0x1e7806(0x192)&&typeof module<'u'?_0x3e82b(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x1e7806(0x1ba)&&define[_0x1e7806(0x17b)]?define(['exports',_0x1e7806(0x197),_0x1e7806(0x1ae),_0x1e7806(0x1a1),'@univerjs/sheets',_0x1e7806(0x182)],_0x3e82b):(_0x13be67=typeof globalThis<'u'?globalThis:_0x13be67||self,_0x3e82b(_0x13be67[_0x1e7806(0x1b7)]={},_0x13be67[_0x1e7806(0x187)],_0x13be67['UniverCore'],_0x13be67[_0x1e7806(0x1b5)],_0x13be67['UniverSheets'],_0x13be67[_0x1e7806(0x18d)]));}(this,function(_0x3be4f6,_0xadce82,_0x2728c2,_0x42ff4f,_0x30c7d7,_0x36a2c8){'use strict';const _0x119e63=_0x4f05;const _0x59ae15={'id':'exchange-client.operation.import-xlsx','type':_0x2728c2[_0x119e63(0x183)][_0x119e63(0x172)],'handler':async _0x2a9764=>{const _0x2e5fc6=_0x119e63,_0x91d24f=_0x2a9764[_0x2e5fc6(0x1b6)](_0xadce82[_0x2e5fc6(0x171)]);return new URLSearchParams(location[_0x2e5fc6(0x170)])['get'](_0x2e5fc6(0x1b4))?_0x91d24f['importXLSXToUnitId']():_0x91d24f[_0x2e5fc6(0x177)](),!0x0;}},_0x1713d5={'id':_0x119e63(0x1a0),'type':_0x2728c2['CommandType'][_0x119e63(0x172)],'handler':async _0x30b376=>{const _0x1060e7=_0x119e63,_0x2fe33b=_0x30b376[_0x1060e7(0x1b6)](_0xadce82[_0x1060e7(0x171)]);return new URLSearchParams(location['search'])[_0x1060e7(0x1b6)](_0x1060e7(0x1b4))?_0x2fe33b[_0x1060e7(0x1a9)]():_0x2fe33b[_0x1060e7(0x1a8)](),!0x0;}},_0x58e70e='sheets-exchange-client.config',_0x28325e={},_0x38cc8d=_0x119e63(0x175);function _0x5c919b(_0x34102f){const _0x541949=_0x119e63;return{'id':_0x38cc8d,'type':_0x42ff4f[_0x541949(0x198)][_0x541949(0x1b0)],'icon':_0x541949(0x1b3),'tooltip':_0x541949(0x189),'hidden$':_0x42ff4f['getMenuHiddenObservable'](_0x34102f,_0x2728c2[_0x541949(0x18c)]['UNIVER_SHEET']),'disabled$':_0x36a2c8[_0x541949(0x173)](_0x34102f,{'workbookTypes':[_0x30c7d7['WorkbookExportPermission']]})};}function _0x562aad(){const _0x53e772=_0x119e63;return{'id':_0x59ae15['id'],'type':_0x42ff4f[_0x53e772(0x198)]['BUTTON'],'title':_0x53e772(0x1ad),'icon':_0x53e772(0x178)};}function _0x39c267(){const _0x5e56c7=_0x119e63;return{'id':_0x1713d5['id'],'type':_0x42ff4f[_0x5e56c7(0x198)][_0x5e56c7(0x1a4)],'title':'exchange.download','icon':_0x5e56c7(0x17f)};}const _0x4cebd1={[_0x42ff4f[_0x119e63(0x195)][_0x119e63(0x1b1)]]:{[_0x38cc8d]:{'order':0.3,'menuItemFactory':_0x5c919b,[_0x59ae15['id']]:{'order':0x0,'menuItemFactory':_0x562aad},[_0x1713d5['id']]:{'order':0x1,'menuItemFactory':_0x39c267}}}};var _0x3e5f0f=Object[_0x119e63(0x17c)],_0x5bcc60=(_0x594c24,_0x4e54c8,_0x47c9d2,_0x464d47)=>{const _0x54f6b0=_0x119e63;for(var _0xf32d98=_0x464d47>0x1?void 0x0:_0x464d47?_0x3e5f0f(_0x4e54c8,_0x47c9d2):_0x4e54c8,_0x264105=_0x594c24[_0x54f6b0(0x17a)]-0x1,_0x2990cd;_0x264105>=0x0;_0x264105--)(_0x2990cd=_0x594c24[_0x264105])&&(_0xf32d98=_0x2990cd(_0xf32d98)||_0xf32d98);return _0xf32d98;},_0x2c1a97=(_0xb3d32f,_0xb5e63b)=>(_0x190531,_0x1994cf)=>_0xb5e63b(_0x190531,_0x1994cf,_0xb3d32f);let _0x109b10=class extends _0x2728c2[_0x119e63(0x19d)]{constructor(_0x29a505,_0x49fd54){const _0x502fab=_0x119e63;super(),this[_0x502fab(0x1b9)]=_0x29a505,this['_menuManagerService']=_0x49fd54,this['_initCommands'](),this[_0x502fab(0x1a3)]();}[_0x119e63(0x186)](){const _0x1be43d=_0x119e63;[_0x59ae15,_0x1713d5][_0x1be43d(0x17e)](_0x4c84aa=>{const _0x1e1763=_0x1be43d;this['disposeWithMe'](this[_0x1e1763(0x1b9)][_0x1e1763(0x174)](_0x4c84aa));});}[_0x119e63(0x1a3)](){const _0x4d2217=_0x119e63;this[_0x4d2217(0x1ab)][_0x4d2217(0x199)](_0x4cebd1);}};_0x109b10=_0x5bcc60([_0x2c1a97(0x0,_0x2728c2[_0x119e63(0x184)]),_0x2c1a97(0x1,_0x42ff4f[_0x119e63(0x1b8)])],_0x109b10);var _0x41f43c=Object[_0x119e63(0x180)],_0x215bc9=Object[_0x119e63(0x17c)],_0x23021a=(_0x3419f5,_0x332e18,_0x2bde5c)=>_0x332e18 in _0x3419f5?_0x41f43c(_0x3419f5,_0x332e18,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2bde5c}):_0x3419f5[_0x332e18]=_0x2bde5c,_0x369df9=(_0x30fa28,_0x2034d3,_0x2c9e73,_0x26cce7)=>{const _0x10dfe6=_0x119e63;for(var _0x32ffb6=_0x26cce7>0x1?void 0x0:_0x26cce7?_0x215bc9(_0x2034d3,_0x2c9e73):_0x2034d3,_0x585163=_0x30fa28[_0x10dfe6(0x17a)]-0x1,_0x36a7c2;_0x585163>=0x0;_0x585163--)(_0x36a7c2=_0x30fa28[_0x585163])&&(_0x32ffb6=_0x36a7c2(_0x32ffb6)||_0x32ffb6);return _0x32ffb6;},_0x256f46=(_0xdd3072,_0x32b341)=>(_0x16a407,_0x544517)=>_0x32b341(_0x16a407,_0x544517,_0xdd3072),_0x4bad14=(_0x2d72ac,_0x21acd9,_0x182e0f)=>_0x23021a(_0x2d72ac,typeof _0x21acd9!='symbol'?_0x21acd9+'':_0x21acd9,_0x182e0f);const _0x2cb0e1=_0x119e63(0x1a5);_0x3be4f6['UniverSheetsExchangeClientPlugin']=class extends _0x2728c2[_0x119e63(0x185)]{constructor(_0x2623e5=_0x28325e,_0x335e89,_0x5eacb5){const _0x1e4552=_0x119e63;super(),this[_0x1e4552(0x17d)]=_0x2623e5,this[_0x1e4552(0x176)]=_0x335e89,this[_0x1e4552(0x1bb)]=_0x5eacb5;const {menu:_0x558eb7,..._0x2e09fa}=_0x2728c2[_0x1e4552(0x18a)]({},_0x28325e,this['_config']);_0x558eb7&&this[_0x1e4552(0x1bb)][_0x1e4552(0x1a7)]('menu',_0x558eb7,{'merge':!0x0}),this[_0x1e4552(0x1bb)]['setConfig'](_0x58e70e,_0x2e09fa);}['onStarting'](){const _0x33871b=_0x119e63;[[_0x109b10]]['forEach'](_0x22ce7f=>this[_0x33871b(0x176)][_0x33871b(0x194)](_0x22ce7f));}[_0x119e63(0x193)](){const _0x162af2=_0x119e63;this[_0x162af2(0x176)][_0x162af2(0x1b6)](_0x109b10);}},_0x4bad14(_0x3be4f6[_0x119e63(0x19f)],_0x119e63(0x188),_0x2cb0e1),_0x4bad14(_0x3be4f6[_0x119e63(0x19f)],'type',_0x2728c2[_0x119e63(0x18c)][_0x119e63(0x1ac)]),_0x3be4f6['UniverSheetsExchangeClientPlugin']=_0x369df9([_0x2728c2[_0x119e63(0x1a2)](_0xadce82['UniverExchangeClientPlugin']),_0x256f46(0x1,_0x2728c2[_0x119e63(0x181)](_0x2728c2[_0x119e63(0x19a)])),_0x256f46(0x2,_0x2728c2[_0x119e63(0x1aa)])],_0x3be4f6[_0x119e63(0x19f)]),_0x3be4f6['ExportXLSXOperation']=_0x1713d5,_0x3be4f6['ImportXLSXOperation']=_0x59ae15,Object[_0x119e63(0x180)](_0x3be4f6,Symbol[_0x119e63(0x18f)],{'value':_0x119e63(0x19b)});}));function _0x4f05(_0x63ccf9,_0x11a603){const _0x5663f8=_0x5663();return _0x4f05=function(_0x4f0585,_0x46083a){_0x4f0585=_0x4f0585-0x170;let _0x420c8c=_0x5663f8[_0x4f0585];return _0x420c8c;},_0x4f05(_0x63ccf9,_0x11a603);}function _0x5663(){const _0x1c1b74=['pluginName','exchange.file','merge','2152179NxGDOp','UniverInstanceType','UniverSheetsUi','5bMFfOc','toStringTag','96aknVtj','3754482EXzmrM','object','onReady','add','RibbonStartGroup','38746JBthTh','@univerjs-pro/exchange-client','MenuItemType','mergeMenu','Injector','Module','7432XLVyNR','Disposable','311500bEpllZ','UniverSheetsExchangeClientPlugin','exchange-client.operation.export-xlsx','@univerjs/ui','DependentOn','_initMenus','BUTTON','SHEET_EXCHANGE_CLIENT_PLUGIN','1505UHtGuB','setConfig','exportXLSXBySnapshot','exportXLSXByUnitId','IConfigService','_menuManagerService','UNIVER_SHEET','exchange.upload','@univerjs/core','583985LTguhE','SUBITEMS','OTHERS','15383247pffsIq','DirectExportIcon','unit','UniverUi','get','UniverProSheetsExchangeClient','IMenuManagerService','_commandService','function','_configService','search','IExchangeOperateService','OPERATION','getCurrentRangeDisable$','registerCommand','sheets-exchange-client.operation.exchange','_injector','importXLSXToSnapshot','FolderIcon','10dZNOdk','length','amd','getOwnPropertyDescriptor','_config','forEach','ExportIcon','defineProperty','Inject','@univerjs/sheets-ui','CommandType','ICommandService','Plugin','_initCommands','UniverProExchangeClient'];_0x5663=function(){return _0x1c1b74;};return _0x5663();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.10.10",
3
+ "version": "0.10.11-nightly.202510220308",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -42,17 +42,17 @@
42
42
  "lib"
43
43
  ],
44
44
  "dependencies": {
45
- "@univerjs-pro/exchange-client": "0.10.10",
46
- "@univerjs/core": "0.10.10",
47
- "@univerjs/ui": "0.10.10",
48
- "@univerjs/sheets": "0.10.10",
49
- "@univerjs/sheets-ui": "0.10.10"
45
+ "@univerjs-pro/exchange-client": "0.10.11-nightly.202510220308",
46
+ "@univerjs/core": "0.10.11-nightly.202510220308",
47
+ "@univerjs/sheets": "0.10.11-nightly.202510220308",
48
+ "@univerjs/sheets-ui": "0.10.11-nightly.202510220308",
49
+ "@univerjs/ui": "0.10.11-nightly.202510220308"
50
50
  },
51
51
  "devDependencies": {
52
- "typescript": "^5.9.2",
53
- "vite": "^7.1.3",
52
+ "typescript": "^5.9.3",
53
+ "vite": "^7.1.10",
54
54
  "vitest": "^3.2.4",
55
- "@univerjs-infra/shared": "0.10.10"
55
+ "@univerjs-infra/shared": "0.10.11"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run",