@univerjs-pro/sheets-exchange-client 0.12.2-nightly.202511241159 → 0.12.2-nightly.202511290732

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 _0x26abe0=_0x41c4;(function(_0x94ebaa,_0x40a27a){const _0x55741d=_0x41c4,_0x5a1360=_0x94ebaa();while(!![]){try{const _0x1cd927=parseInt(_0x55741d(0xfd))/0x1*(-parseInt(_0x55741d(0x10b))/0x2)+-parseInt(_0x55741d(0x121))/0x3*(-parseInt(_0x55741d(0x10a))/0x4)+parseInt(_0x55741d(0x108))/0x5*(-parseInt(_0x55741d(0x13a))/0x6)+parseInt(_0x55741d(0x12a))/0x7+parseInt(_0x55741d(0x123))/0x8*(-parseInt(_0x55741d(0x13b))/0x9)+parseInt(_0x55741d(0x115))/0xa*(-parseInt(_0x55741d(0x104))/0xb)+-parseInt(_0x55741d(0x134))/0xc*(-parseInt(_0x55741d(0x10f))/0xd);if(_0x1cd927===_0x40a27a)break;else _0x5a1360['push'](_0x5a1360['shift']());}catch(_0x422cbe){_0x5a1360['push'](_0x5a1360['shift']());}}}(_0x1b63,0x5a949));Object[_0x26abe0(0x114)](exports,Symbol[_0x26abe0(0x13c)],{'value':_0x26abe0(0x13d)});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':_0x26abe0(0x128),'type':i[_0x26abe0(0x10d)]['OPERATION'],'handler':async _0x2d0721=>{const _0x49970c=_0x26abe0,_0x3fb4ba=_0x2d0721[_0x49970c(0xfc)](g[_0x49970c(0x129)]);return new URLSearchParams(location[_0x49970c(0x133)])['get'](_0x49970c(0x112))?_0x3fb4ba['importXLSXToUnitId']():_0x3fb4ba[_0x49970c(0x116)](),!0x0;}},p={'id':_0x26abe0(0x12b),'type':i[_0x26abe0(0x10d)]['OPERATION'],'handler':async _0x1ccead=>{const _0xa11b64=_0x26abe0,_0x3828d3=_0x1ccead[_0xa11b64(0xfc)](g['IExchangeOperateService']);return new URLSearchParams(location[_0xa11b64(0x133)])[_0xa11b64(0xfc)](_0xa11b64(0x112))?_0x3828d3[_0xa11b64(0x11c)]():_0x3828d3[_0xa11b64(0x106)](),!0x0;}},v=_0x26abe0(0x11f),h={},S=_0x26abe0(0x132);function x(_0x5442cb){const _0x375381=_0x26abe0;return{'id':S,'type':c[_0x375381(0x103)][_0x375381(0x120)],'icon':_0x375381(0x125),'tooltip':'exchange.file','hidden$':c[_0x375381(0x117)](_0x5442cb,i['UniverInstanceType'][_0x375381(0x10e)]),'disabled$':I['getCurrentRangeDisable$'](_0x5442cb,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x33cd5c=_0x26abe0;return{'id':l['id'],'type':c[_0x33cd5c(0x103)][_0x33cd5c(0x12c)],'title':'exchange.upload','icon':_0x33cd5c(0x127)};}function _0x1b63(){const _0xa04a05=['SUBITEMS','398721EChIhe','_initMenus','233800CcbrNO','ExportIcon','DirectExportIcon','disposeWithMe','FolderIcon','exchange-client.operation.import-xlsx','IExchangeOperateService','3422188KDChtK','exchange-client.operation.export-xlsx','BUTTON','Injector','pluginName','IConfigService','exchange.download','menu','sheets-exchange-client.operation.exchange','search','11688tDPbOv','_config','IMenuManagerService','length','ExportXLSXOperation','_injector','716454GvbpUE','144UopjQu','toStringTag','Module','symbol','Inject','Disposable','OTHERS','ImportXLSXOperation','get','6546KanDUg','RibbonStartGroup','onStarting','add','UniverSheetsExchangeClientPlugin','forEach','MenuItemType','2937gcfwXX','_initCommands','exportXLSXBySnapshot','_commandService','15ZfkPyJ','UniverInstanceType','12QmzoyA','118ERNjZT','setConfig','CommandType','UNIVER_SHEET','11089PWKMNF','ICommandService','_menuManagerService','unit','_configService','defineProperty','5070FadVTZ','importXLSXToSnapshot','getMenuHiddenObservable','registerCommand','mergeMenu','getOwnPropertyDescriptor','SHEET_EXCHANGE_CLIENT_PLUGIN','exportXLSXByUnitId','onReady','Plugin','sheets-exchange-client.config'];_0x1b63=function(){return _0xa04a05;};return _0x1b63();}function C(){const _0x4284f8=_0x26abe0;return{'id':p['id'],'type':c[_0x4284f8(0x103)][_0x4284f8(0x12c)],'title':_0x4284f8(0x130),'icon':_0x4284f8(0x124)};}function _0x41c4(_0x3e02bb,_0x564470){const _0x1b63e6=_0x1b63();return _0x41c4=function(_0x41c490,_0x27b64b){_0x41c490=_0x41c490-0xfb;let _0x493c57=_0x1b63e6[_0x41c490];return _0x493c57;},_0x41c4(_0x3e02bb,_0x564470);}const f={[c[_0x26abe0(0xfe)][_0x26abe0(0x141)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x26abe0(0x11a)],y=(_0x5f36e4,_0x5f02e0,_0x15182d,_0x3a4878)=>{const _0x424e3c=_0x26abe0;for(var _0x7ca66f=_0x3a4878>0x1?void 0x0:_0x3a4878?T(_0x5f02e0,_0x15182d):_0x5f02e0,_0x3886f8=_0x5f36e4[_0x424e3c(0x137)]-0x1,_0x33ec7f;_0x3886f8>=0x0;_0x3886f8--)(_0x33ec7f=_0x5f36e4[_0x3886f8])&&(_0x7ca66f=_0x33ec7f(_0x7ca66f)||_0x7ca66f);return _0x7ca66f;},m=(_0x24e281,_0x5f04b2)=>(_0x37c696,_0x55ef56)=>_0x5f04b2(_0x37c696,_0x55ef56,_0x24e281);let u=class extends i[_0x26abe0(0x140)]{constructor(_0x5368fe,_0xc056ec){const _0x59dab4=_0x26abe0;super(),this[_0x59dab4(0x107)]=_0x5368fe,this['_menuManagerService']=_0xc056ec,this['_initCommands'](),this[_0x59dab4(0x122)]();}[_0x26abe0(0x105)](){const _0x186e30=_0x26abe0;[l,p][_0x186e30(0x102)](_0x3d2af2=>{const _0xd5df14=_0x186e30;this[_0xd5df14(0x126)](this[_0xd5df14(0x107)][_0xd5df14(0x118)](_0x3d2af2));});}[_0x26abe0(0x122)](){const _0x550975=_0x26abe0;this[_0x550975(0x111)][_0x550975(0x119)](f);}};u=y([m(0x0,i[_0x26abe0(0x110)]),m(0x1,c[_0x26abe0(0x136)])],u);var O=Object['defineProperty'],U=Object[_0x26abe0(0x11a)],X=(_0x4c9fbd,_0x3c9b5f,_0x2c13ff)=>_0x3c9b5f in _0x4c9fbd?O(_0x4c9fbd,_0x3c9b5f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c13ff}):_0x4c9fbd[_0x3c9b5f]=_0x2c13ff,N=(_0x164c1e,_0x46d363,_0x24c99e,_0x5644f4)=>{const _0xa5a3d=_0x26abe0;for(var _0x45583c=_0x5644f4>0x1?void 0x0:_0x5644f4?U(_0x46d363,_0x24c99e):_0x46d363,_0x15a611=_0x164c1e[_0xa5a3d(0x137)]-0x1,_0x11800c;_0x15a611>=0x0;_0x15a611--)(_0x11800c=_0x164c1e[_0x15a611])&&(_0x45583c=_0x11800c(_0x45583c)||_0x45583c);return _0x45583c;},d=(_0x380f76,_0x31e885)=>(_0x180f5c,_0x3ba273)=>_0x31e885(_0x180f5c,_0x3ba273,_0x380f76),E=(_0x4ff83d,_0x3b52f3,_0x483b6e)=>X(_0x4ff83d,typeof _0x3b52f3!=_0x26abe0(0x13e)?_0x3b52f3+'':_0x3b52f3,_0x483b6e);const L=_0x26abe0(0x11b);exports[_0x26abe0(0x101)]=class extends i[_0x26abe0(0x11e)]{constructor(_0x4a7b83=h,_0x182a13,_0x5b6131){const _0x55318b=_0x26abe0;super(),this[_0x55318b(0x135)]=_0x4a7b83,this[_0x55318b(0x139)]=_0x182a13,this[_0x55318b(0x113)]=_0x5b6131;const {menu:_0xa0e027,..._0x453af6}=i['merge']({},h,this['_config']);_0xa0e027&&this[_0x55318b(0x113)][_0x55318b(0x10c)](_0x55318b(0x131),_0xa0e027,{'merge':!0x0}),this[_0x55318b(0x113)][_0x55318b(0x10c)](v,_0x453af6);}[_0x26abe0(0xff)](){const _0x5156e1=_0x26abe0;[[u]][_0x5156e1(0x102)](_0x51a73a=>this[_0x5156e1(0x139)][_0x5156e1(0x100)](_0x51a73a));}[_0x26abe0(0x11d)](){this['_injector']['get'](u);}},E(exports[_0x26abe0(0x101)],_0x26abe0(0x12e),L),E(exports[_0x26abe0(0x101)],'type',i[_0x26abe0(0x109)][_0x26abe0(0x10e)]),exports['UniverSheetsExchangeClientPlugin']=N([i['DependentOn'](g['UniverExchangeClientPlugin']),d(0x1,i[_0x26abe0(0x13f)](i[_0x26abe0(0x12d)])),d(0x2,i[_0x26abe0(0x12f)])],exports['UniverSheetsExchangeClientPlugin']),exports[_0x26abe0(0x138)]=p,exports[_0x26abe0(0xfb)]=l;
1
+ 'use strict';const _0x23d74b=_0x11a2;(function(_0x3dfe0e,_0x1a990b){const _0x3ed596=_0x11a2,_0x3a0472=_0x3dfe0e();while(!![]){try{const _0x5360d7=parseInt(_0x3ed596(0x1d0))/0x1+parseInt(_0x3ed596(0x1b7))/0x2*(parseInt(_0x3ed596(0x1d7))/0x3)+parseInt(_0x3ed596(0x1e1))/0x4+-parseInt(_0x3ed596(0x1e6))/0x5*(-parseInt(_0x3ed596(0x1ba))/0x6)+parseInt(_0x3ed596(0x1e0))/0x7*(-parseInt(_0x3ed596(0x1cc))/0x8)+parseInt(_0x3ed596(0x1dc))/0x9+-parseInt(_0x3ed596(0x1d2))/0xa;if(_0x5360d7===_0x1a990b)break;else _0x3a0472['push'](_0x3a0472['shift']());}catch(_0x189aec){_0x3a0472['push'](_0x3a0472['shift']());}}}(_0xd140,0xc94ac));Object[_0x23d74b(0x1c8)](exports,Symbol[_0x23d74b(0x1b9)],{'value':_0x23d74b(0x1ae)});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':_0x23d74b(0x1bc),'type':i['CommandType'][_0x23d74b(0x1d5)],'handler':async _0x206512=>{const _0x3bc451=_0x23d74b,_0x10c38d=_0x206512[_0x3bc451(0x1dd)](g[_0x3bc451(0x1af)]);return new URLSearchParams(location[_0x3bc451(0x1e5)])[_0x3bc451(0x1dd)](_0x3bc451(0x1d1))?_0x10c38d['importXLSXToUnitId']():_0x10c38d['importXLSXToSnapshot'](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i[_0x23d74b(0x1b1)][_0x23d74b(0x1d5)],'handler':async _0x36de9e=>{const _0x36413=_0x23d74b,_0x2794ea=_0x36de9e[_0x36413(0x1dd)](g[_0x36413(0x1af)]);return new URLSearchParams(location[_0x36413(0x1e5)])['get'](_0x36413(0x1d1))?_0x2794ea[_0x36413(0x1c2)]():_0x2794ea[_0x36413(0x1d3)](),!0x0;}},v=_0x23d74b(0x1b0),h={},S='sheets-exchange-client.operation.exchange';function x(_0x4dd50a){const _0x2a0c67=_0x23d74b;return{'id':S,'type':c['MenuItemType'][_0x2a0c67(0x1bb)],'icon':'DirectExportIcon','tooltip':_0x2a0c67(0x1e3),'hidden$':c[_0x2a0c67(0x1ce)](_0x4dd50a,i[_0x2a0c67(0x1db)]['UNIVER_SHEET']),'disabled$':I[_0x2a0c67(0x1df)](_0x4dd50a,{'workbookTypes':[_['WorkbookExportPermission']]})};}function _0x11a2(_0x2f7085,_0x1d1744){const _0xd14050=_0xd140();return _0x11a2=function(_0x11a2aa,_0x49b33f){_0x11a2aa=_0x11a2aa-0x1ad;let _0x5533d4=_0xd14050[_0x11a2aa];return _0x5533d4;},_0x11a2(_0x2f7085,_0x1d1744);}function P(){const _0x15baca=_0x23d74b;return{'id':l['id'],'type':c[_0x15baca(0x1bd)][_0x15baca(0x1d9)],'title':_0x15baca(0x1cd),'icon':'FolderIcon'};}function C(){const _0x317347=_0x23d74b;return{'id':p['id'],'type':c['MenuItemType'][_0x317347(0x1d9)],'title':_0x317347(0x1b3),'icon':_0x317347(0x1c9)};}const f={[c[_0x23d74b(0x1c3)][_0x23d74b(0x1cb)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x23d74b(0x1e4)],y=(_0x4227f9,_0x9dba,_0x35b7a3,_0x2fa3bd)=>{for(var _0x45b7b2=_0x2fa3bd>0x1?void 0x0:_0x2fa3bd?T(_0x9dba,_0x35b7a3):_0x9dba,_0x280fd9=_0x4227f9['length']-0x1,_0x238fc1;_0x280fd9>=0x0;_0x280fd9--)(_0x238fc1=_0x4227f9[_0x280fd9])&&(_0x45b7b2=_0x238fc1(_0x45b7b2)||_0x45b7b2);return _0x45b7b2;},m=(_0x281460,_0x50ec3a)=>(_0x1e3f63,_0xe8d01b)=>_0x50ec3a(_0x1e3f63,_0xe8d01b,_0x281460);let u=class extends i[_0x23d74b(0x1b5)]{constructor(_0x248df7,_0x961f57){const _0x50c6fa=_0x23d74b;super(),this[_0x50c6fa(0x1c0)]=_0x248df7,this[_0x50c6fa(0x1c5)]=_0x961f57,this[_0x50c6fa(0x1ca)](),this[_0x50c6fa(0x1c4)]();}[_0x23d74b(0x1ca)](){[l,p]['forEach'](_0x1d9a8b=>{const _0x415a29=_0x11a2;this[_0x415a29(0x1bf)](this[_0x415a29(0x1c0)][_0x415a29(0x1da)](_0x1d9a8b));});}['_initMenus'](){const _0x1bed6e=_0x23d74b;this[_0x1bed6e(0x1c5)]['mergeMenu'](f);}};function _0xd140(){const _0x2f2936=['exportXLSXBySnapshot','Plugin','OPERATION','_configService','158142Beocgj','_config','BUTTON','registerCommand','UniverInstanceType','13696740icZtfl','get','setConfig','getCurrentRangeDisable$','1318835iVbkjB','2598368GrTBGA','onStarting','exchange.file','getOwnPropertyDescriptor','search','1110HkFSpS','type','menu','UNIVER_SHEET','length','Module','IExchangeOperateService','sheets-exchange-client.config','CommandType','ExportXLSXOperation','exchange.download','_injector','Disposable','add','44pEWJoc','UniverSheetsExchangeClientPlugin','toStringTag','37428mXZUhD','SUBITEMS','exchange-client.operation.import-xlsx','MenuItemType','ICommandService','disposeWithMe','_commandService','Injector','exportXLSXByUnitId','RibbonStartGroup','_initMenus','_menuManagerService','onReady','IMenuManagerService','defineProperty','ExportIcon','_initCommands','OTHERS','56eyQWuw','exchange.upload','getMenuHiddenObservable','IConfigService','1069878UjzrPa','unit','36425470pGszqt'];_0xd140=function(){return _0x2f2936;};return _0xd140();}u=y([m(0x0,i[_0x23d74b(0x1be)]),m(0x1,c[_0x23d74b(0x1c7)])],u);var O=Object['defineProperty'],U=Object['getOwnPropertyDescriptor'],X=(_0x1c7d16,_0x3ea02e,_0x1b5f0c)=>_0x3ea02e in _0x1c7d16?O(_0x1c7d16,_0x3ea02e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b5f0c}):_0x1c7d16[_0x3ea02e]=_0x1b5f0c,N=(_0xf43ed6,_0x17b02a,_0x2b2972,_0x50e185)=>{const _0x3a99fd=_0x23d74b;for(var _0x3830c9=_0x50e185>0x1?void 0x0:_0x50e185?U(_0x17b02a,_0x2b2972):_0x17b02a,_0x88e11c=_0xf43ed6[_0x3a99fd(0x1ad)]-0x1,_0x1f55dc;_0x88e11c>=0x0;_0x88e11c--)(_0x1f55dc=_0xf43ed6[_0x88e11c])&&(_0x3830c9=_0x1f55dc(_0x3830c9)||_0x3830c9);return _0x3830c9;},d=(_0x29ab4d,_0x591db5)=>(_0x453f9a,_0x55f28d)=>_0x591db5(_0x453f9a,_0x55f28d,_0x29ab4d),E=(_0x1b0933,_0x3a52b7,_0x4ebbb7)=>X(_0x1b0933,typeof _0x3a52b7!='symbol'?_0x3a52b7+'':_0x3a52b7,_0x4ebbb7);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports['UniverSheetsExchangeClientPlugin']=class extends i[_0x23d74b(0x1d4)]{constructor(_0x17a62f=h,_0xbfc7b7,_0x5e86d2){const _0x2bf926=_0x23d74b;super(),this[_0x2bf926(0x1d8)]=_0x17a62f,this['_injector']=_0xbfc7b7,this['_configService']=_0x5e86d2;const {menu:_0xb08c4b,..._0x54fbcc}=i['merge']({},h,this[_0x2bf926(0x1d8)]);_0xb08c4b&&this[_0x2bf926(0x1d6)][_0x2bf926(0x1de)](_0x2bf926(0x1e8),_0xb08c4b,{'merge':!0x0}),this[_0x2bf926(0x1d6)][_0x2bf926(0x1de)](v,_0x54fbcc);}[_0x23d74b(0x1e2)](){const _0xf01560=_0x23d74b;[[u]]['forEach'](_0x2164c9=>this[_0xf01560(0x1b4)][_0xf01560(0x1b6)](_0x2164c9));}[_0x23d74b(0x1c6)](){const _0x638f4=_0x23d74b;this['_injector'][_0x638f4(0x1dd)](u);}},E(exports[_0x23d74b(0x1b8)],'pluginName',L),E(exports[_0x23d74b(0x1b8)],_0x23d74b(0x1e7),i[_0x23d74b(0x1db)][_0x23d74b(0x1e9)]),exports[_0x23d74b(0x1b8)]=N([i['DependentOn'](g['UniverExchangeClientPlugin']),d(0x1,i['Inject'](i[_0x23d74b(0x1c1)])),d(0x2,i[_0x23d74b(0x1cf)])],exports[_0x23d74b(0x1b8)]),exports[_0x23d74b(0x1b2)]=p,exports['ImportXLSXOperation']=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x58fd37=_0x19a9;(function(_0x1c964f,_0x2ae4ae){const _0x26d23d=_0x19a9,_0x552977=_0x1c964f();while(!![]){try{const _0x5104c6=parseInt(_0x26d23d(0x109))/0x1*(-parseInt(_0x26d23d(0x104))/0x2)+parseInt(_0x26d23d(0x112))/0x3+parseInt(_0x26d23d(0xf7))/0x4*(parseInt(_0x26d23d(0x113))/0x5)+parseInt(_0x26d23d(0xf0))/0x6*(parseInt(_0x26d23d(0xf4))/0x7)+parseInt(_0x26d23d(0x111))/0x8+parseInt(_0x26d23d(0xfd))/0x9*(-parseInt(_0x26d23d(0x11f))/0xa)+-parseInt(_0x26d23d(0x110))/0xb*(parseInt(_0x26d23d(0xf6))/0xc);if(_0x5104c6===_0x2ae4ae)break;else _0x552977['push'](_0x552977['shift']());}catch(_0x58daa7){_0x552977['push'](_0x552977['shift']());}}}(_0x23cf,0x4b75e));import{IExchangeOperateService as _0x5a601a,UniverExchangeClientPlugin as _0x1535d1}from'@univerjs-pro/exchange-client';import{CommandType as _0xf0a975,UniverInstanceType as _0x32f097,Disposable as _0x172624,ICommandService as _0x232557,DependentOn as _0x408a14,Inject as _0x3b5a15,Injector as _0x905a6,IConfigService as _0x41babd,Plugin as _0x27cda5,merge as _0x54e945}from'@univerjs/core';import{MenuItemType as _0x4d3ca5,getMenuHiddenObservable as _0xf791e7,RibbonStartGroup as _0x1c893e,IMenuManagerService as _0x4fc025}from'@univerjs/ui';import{WorkbookExportPermission as _0x14d3dc}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x1a09d6}from'@univerjs/sheets-ui';const p={'id':_0x58fd37(0x10d),'type':_0xf0a975[_0x58fd37(0x115)],'handler':async _0x30a6db=>{const _0x3d0708=_0x58fd37,_0x6c5af7=_0x30a6db[_0x3d0708(0x11e)](_0x5a601a);return new URLSearchParams(location['search'])[_0x3d0708(0x11e)](_0x3d0708(0x119))?_0x6c5af7['importXLSXToUnitId']():_0x6c5af7[_0x3d0708(0xf8)](),!0x0;}},u={'id':_0x58fd37(0x102),'type':_0xf0a975[_0x58fd37(0x115)],'handler':async _0x38418a=>{const _0x2bc4ab=_0x58fd37,_0x44391f=_0x38418a[_0x2bc4ab(0x11e)](_0x5a601a);return new URLSearchParams(location[_0x2bc4ab(0x117)])[_0x2bc4ab(0x11e)](_0x2bc4ab(0x119))?_0x44391f[_0x2bc4ab(0xfc)]():_0x44391f[_0x2bc4ab(0x10c)](),!0x0;}},H=_0x58fd37(0x106),l={},S='sheets-exchange-client.operation.exchange';function R(_0x51bf91){const _0x234905=_0x58fd37;return{'id':S,'type':_0x4d3ca5['SUBITEMS'],'icon':_0x234905(0x11d),'tooltip':'exchange.file','hidden$':_0xf791e7(_0x51bf91,_0x32f097[_0x234905(0x105)]),'disabled$':_0x1a09d6(_0x51bf91,{'workbookTypes':[_0x14d3dc]})};}function _0x23cf(){const _0x1180eb=['5ipLuIe','onReady','OPERATION','exchange.download','search','pluginName','unit','BUTTON','add','exchange.upload','DirectExportIcon','get','20lzDafI','6aiseGk','_injector','FolderIcon','ExportIcon','2658649gxVimv','_commandService','3050364ZgehSk','1099772Fbwnte','importXLSXToSnapshot','type','menu','OTHERS','exportXLSXByUnitId','6084EOvcBe','disposeWithMe','length','setConfig','_initMenus','exchange-client.operation.export-xlsx','symbol','4CzWaYj','UNIVER_SHEET','sheets-exchange-client.config','_configService','_config','222064KYPQop','defineProperty','mergeMenu','exportXLSXBySnapshot','exchange-client.operation.import-xlsx','_initCommands','forEach','22LMavfQ','722640NypbzA','1553640oLbVQo'];_0x23cf=function(){return _0x1180eb;};return _0x23cf();}function w(){const _0x35ae9f=_0x58fd37;return{'id':p['id'],'type':_0x4d3ca5[_0x35ae9f(0x11a)],'title':_0x35ae9f(0x11c),'icon':_0x35ae9f(0xf2)};}function D(){const _0x418737=_0x58fd37;return{'id':u['id'],'type':_0x4d3ca5[_0x418737(0x11a)],'title':_0x418737(0x116),'icon':_0x418737(0xf3)};}const F={[_0x1c893e[_0x58fd37(0xfb)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x5691c5,_0x812428,_0x5ef626,_0x3b1c21)=>{const _0x3dadef=_0x58fd37;for(var _0x513945=_0x3b1c21>0x1?void 0x0:_0x3b1c21?G(_0x812428,_0x5ef626):_0x812428,_0x436c17=_0x5691c5[_0x3dadef(0xff)]-0x1,_0x10dfc2;_0x436c17>=0x0;_0x436c17--)(_0x10dfc2=_0x5691c5[_0x436c17])&&(_0x513945=_0x10dfc2(_0x513945)||_0x513945);return _0x513945;},d=(_0x1bac97,_0x55acc1)=>(_0x248c85,_0x57042a)=>_0x55acc1(_0x248c85,_0x57042a,_0x1bac97);let c=class extends _0x172624{constructor(_0x3dbdeb,_0x5adc0d){const _0x256349=_0x58fd37;super(),this['_commandService']=_0x3dbdeb,this['_menuManagerService']=_0x5adc0d,this['_initCommands'](),this[_0x256349(0x101)]();}[_0x58fd37(0x10e)](){const _0x342d34=_0x58fd37;[p,u][_0x342d34(0x10f)](_0x46c5e6=>{const _0x5dc0bf=_0x342d34;this[_0x5dc0bf(0xfe)](this[_0x5dc0bf(0xf5)]['registerCommand'](_0x46c5e6));});}[_0x58fd37(0x101)](){const _0x42fae5=_0x58fd37;this['_menuManagerService'][_0x42fae5(0x10b)](F);}};c=A([d(0x0,_0x232557),d(0x1,_0x4fc025)],c);function _0x19a9(_0x2f7648,_0x33e705){const _0x23cf41=_0x23cf();return _0x19a9=function(_0x19a9a8,_0x37f82c){_0x19a9a8=_0x19a9a8-0xf0;let _0x45268b=_0x23cf41[_0x19a9a8];return _0x45268b;},_0x19a9(_0x2f7648,_0x33e705);}var j=Object[_0x58fd37(0x10a)],B=Object['getOwnPropertyDescriptor'],$=(_0x498637,_0x4756b6,_0x82b87)=>_0x4756b6 in _0x498637?j(_0x498637,_0x4756b6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x82b87}):_0x498637[_0x4756b6]=_0x82b87,V=(_0x50b8a4,_0x2bee1e,_0x4b9c7a,_0x49e632)=>{const _0x294302=_0x58fd37;for(var _0x967f5d=_0x49e632>0x1?void 0x0:_0x49e632?B(_0x2bee1e,_0x4b9c7a):_0x2bee1e,_0x334f7f=_0x50b8a4[_0x294302(0xff)]-0x1,_0x37182c;_0x334f7f>=0x0;_0x334f7f--)(_0x37182c=_0x50b8a4[_0x334f7f])&&(_0x967f5d=_0x37182c(_0x967f5d)||_0x967f5d);return _0x967f5d;},_=(_0x1eae56,_0x48e666)=>(_0x239c05,_0x1c3cf2)=>_0x48e666(_0x239c05,_0x1c3cf2,_0x1eae56),I=(_0xeaea8b,_0x1c8a72,_0x3a7445)=>$(_0xeaea8b,typeof _0x1c8a72!=_0x58fd37(0x103)?_0x1c8a72+'':_0x1c8a72,_0x3a7445);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x27cda5{constructor(_0x28a9e2=l,_0x341f6c,_0x27698e){const _0x1ff156=_0x58fd37;super(),this[_0x1ff156(0x108)]=_0x28a9e2,this[_0x1ff156(0xf1)]=_0x341f6c,this[_0x1ff156(0x107)]=_0x27698e;const {menu:_0x3de8ff,..._0x3a239f}=_0x54e945({},l,this[_0x1ff156(0x108)]);_0x3de8ff&&this[_0x1ff156(0x107)][_0x1ff156(0x100)](_0x1ff156(0xfa),_0x3de8ff,{'merge':!0x0}),this[_0x1ff156(0x107)][_0x1ff156(0x100)](H,_0x3a239f);}['onStarting'](){const _0x405ad4=_0x58fd37;[[c]][_0x405ad4(0x10f)](_0x5b16ab=>this[_0x405ad4(0xf1)][_0x405ad4(0x11b)](_0x5b16ab));}[_0x58fd37(0x114)](){const _0x26c929=_0x58fd37;this[_0x26c929(0xf1)][_0x26c929(0x11e)](c);}};I(s,_0x58fd37(0x118),W),I(s,_0x58fd37(0xf9),_0x32f097[_0x58fd37(0x105)]),s=V([_0x408a14(_0x1535d1),_(0x1,_0x3b5a15(_0x905a6)),_(0x2,_0x41babd)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x2b7992=_0x3767;(function(_0x51b2c8,_0x28ce4f){const _0x19f3d1=_0x3767,_0x4402b2=_0x51b2c8();while(!![]){try{const _0x6e510a=-parseInt(_0x19f3d1(0x136))/0x1+-parseInt(_0x19f3d1(0x123))/0x2+-parseInt(_0x19f3d1(0x11a))/0x3*(-parseInt(_0x19f3d1(0x11c))/0x4)+parseInt(_0x19f3d1(0x117))/0x5*(-parseInt(_0x19f3d1(0x12d))/0x6)+parseInt(_0x19f3d1(0x121))/0x7*(-parseInt(_0x19f3d1(0x13f))/0x8)+parseInt(_0x19f3d1(0x11f))/0x9*(parseInt(_0x19f3d1(0x134))/0xa)+parseInt(_0x19f3d1(0x13c))/0xb;if(_0x6e510a===_0x28ce4f)break;else _0x4402b2['push'](_0x4402b2['shift']());}catch(_0x1e3be7){_0x4402b2['push'](_0x4402b2['shift']());}}}(_0x5dd6,0x5eb21));import{IExchangeOperateService as _0x53988b,UniverExchangeClientPlugin as _0x338505}from'@univerjs-pro/exchange-client';import{CommandType as _0x4ad908,UniverInstanceType as _0xbfa663,Disposable as _0x170102,ICommandService as _0x2bf90a,DependentOn as _0x4ff593,Inject as _0xe2dd25,Injector as _0x4219fc,IConfigService as _0x4345c4,Plugin as _0xa1614,merge as _0x33f897}from'@univerjs/core';import{MenuItemType as _0x2972a7,getMenuHiddenObservable as _0x379c35,RibbonStartGroup as _0x1d0a53,IMenuManagerService as _0x1e2a0f}from'@univerjs/ui';import{WorkbookExportPermission as _0x3e39a7}from'@univerjs/sheets';function _0x5dd6(){const _0x330529=['exchange-client.operation.import-xlsx','getOwnPropertyDescriptor','exportXLSXBySnapshot','38810piWKXr','search','length','363LMRRRn','add','16292YTPXEP','registerCommand','_commandService','9jbgPkS','SUBITEMS','52451nScKmv','forEach','636120RXHXNb','_initMenus','onReady','pluginName','SHEET_EXCHANGE_CLIENT_PLUGIN','exchange-client.operation.export-xlsx','OTHERS','_menuManagerService','ExportIcon','type','306tBaaEA','sheets-exchange-client.config','_configService','_config','_initCommands','OPERATION','exchange.download','1235710cgqVpp','get','171192tqmUqy','defineProperty','setConfig','unit','exchange.file','BUTTON','9035719lThBHF','UNIVER_SHEET','importXLSXToSnapshot','176Uvlkik','mergeMenu','exchange.upload','_injector','FolderIcon'];_0x5dd6=function(){return _0x330529;};return _0x5dd6();}import{getCurrentRangeDisable$ as _0x291126}from'@univerjs/sheets-ui';function _0x3767(_0x347354,_0x53f586){const _0x5dd619=_0x5dd6();return _0x3767=function(_0x37674d,_0xd1d905){_0x37674d=_0x37674d-0x116;let _0x56fb3c=_0x5dd619[_0x37674d];return _0x56fb3c;},_0x3767(_0x347354,_0x53f586);}const p={'id':_0x2b7992(0x144),'type':_0x4ad908[_0x2b7992(0x132)],'handler':async _0x7ddf10=>{const _0x4f8034=_0x2b7992,_0x380e4e=_0x7ddf10[_0x4f8034(0x135)](_0x53988b);return new URLSearchParams(location[_0x4f8034(0x118)])['get'](_0x4f8034(0x139))?_0x380e4e['importXLSXToUnitId']():_0x380e4e[_0x4f8034(0x13e)](),!0x0;}},u={'id':_0x2b7992(0x128),'type':_0x4ad908['OPERATION'],'handler':async _0x2ebd8e=>{const _0x290f7b=_0x2b7992,_0x3c59ce=_0x2ebd8e[_0x290f7b(0x135)](_0x53988b);return new URLSearchParams(location[_0x290f7b(0x118)])[_0x290f7b(0x135)]('unit')?_0x3c59ce['exportXLSXByUnitId']():_0x3c59ce[_0x290f7b(0x116)](),!0x0;}},H=_0x2b7992(0x12e),l={},S='sheets-exchange-client.operation.exchange';function R(_0x281888){const _0x243046=_0x2b7992;return{'id':S,'type':_0x2972a7[_0x243046(0x120)],'icon':'DirectExportIcon','tooltip':_0x243046(0x13a),'hidden$':_0x379c35(_0x281888,_0xbfa663[_0x243046(0x13d)]),'disabled$':_0x291126(_0x281888,{'workbookTypes':[_0x3e39a7]})};}function w(){const _0x3ae208=_0x2b7992;return{'id':p['id'],'type':_0x2972a7[_0x3ae208(0x13b)],'title':_0x3ae208(0x141),'icon':_0x3ae208(0x143)};}function D(){const _0x3537eb=_0x2b7992;return{'id':u['id'],'type':_0x2972a7[_0x3537eb(0x13b)],'title':_0x3537eb(0x133),'icon':_0x3537eb(0x12b)};}const F={[_0x1d0a53[_0x2b7992(0x129)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x7a04b3,_0x35f2b2,_0x40411b,_0x22f91d)=>{const _0x23d8a1=_0x2b7992;for(var _0x4551a6=_0x22f91d>0x1?void 0x0:_0x22f91d?G(_0x35f2b2,_0x40411b):_0x35f2b2,_0x3309ff=_0x7a04b3[_0x23d8a1(0x119)]-0x1,_0x22fee7;_0x3309ff>=0x0;_0x3309ff--)(_0x22fee7=_0x7a04b3[_0x3309ff])&&(_0x4551a6=_0x22fee7(_0x4551a6)||_0x4551a6);return _0x4551a6;},d=(_0x3aaed9,_0x1b22d7)=>(_0x2d2b0a,_0x20a44b)=>_0x1b22d7(_0x2d2b0a,_0x20a44b,_0x3aaed9);let c=class extends _0x170102{constructor(_0x41c37a,_0x4fcf53){const _0x28f9d5=_0x2b7992;super(),this[_0x28f9d5(0x11e)]=_0x41c37a,this['_menuManagerService']=_0x4fcf53,this[_0x28f9d5(0x131)](),this[_0x28f9d5(0x124)]();}[_0x2b7992(0x131)](){const _0x1a0886=_0x2b7992;[p,u][_0x1a0886(0x122)](_0x48c9ef=>{const _0x5d399c=_0x1a0886;this['disposeWithMe'](this['_commandService'][_0x5d399c(0x11d)](_0x48c9ef));});}['_initMenus'](){const _0x33d036=_0x2b7992;this[_0x33d036(0x12a)][_0x33d036(0x140)](F);}};c=A([d(0x0,_0x2bf90a),d(0x1,_0x1e2a0f)],c);var j=Object[_0x2b7992(0x137)],B=Object[_0x2b7992(0x145)],$=(_0x5ae6c0,_0x2ba7ca,_0x29049e)=>_0x2ba7ca in _0x5ae6c0?j(_0x5ae6c0,_0x2ba7ca,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29049e}):_0x5ae6c0[_0x2ba7ca]=_0x29049e,V=(_0x497941,_0x17ce69,_0x282607,_0x116562)=>{for(var _0x385fcb=_0x116562>0x1?void 0x0:_0x116562?B(_0x17ce69,_0x282607):_0x17ce69,_0x59ea5f=_0x497941['length']-0x1,_0x4006cd;_0x59ea5f>=0x0;_0x59ea5f--)(_0x4006cd=_0x497941[_0x59ea5f])&&(_0x385fcb=_0x4006cd(_0x385fcb)||_0x385fcb);return _0x385fcb;},_=(_0x2a57e2,_0x40168b)=>(_0x17a0d5,_0x2dfdf2)=>_0x40168b(_0x17a0d5,_0x2dfdf2,_0x2a57e2),I=(_0x51ba28,_0x3e231f,_0x3b9262)=>$(_0x51ba28,typeof _0x3e231f!='symbol'?_0x3e231f+'':_0x3e231f,_0x3b9262);const W=_0x2b7992(0x127);let s=class extends _0xa1614{constructor(_0x44521f=l,_0x35c73a,_0x3837af){const _0x312e52=_0x2b7992;super(),this['_config']=_0x44521f,this[_0x312e52(0x142)]=_0x35c73a,this[_0x312e52(0x12f)]=_0x3837af;const {menu:_0x1ac89d,..._0x46e403}=_0x33f897({},l,this[_0x312e52(0x130)]);_0x1ac89d&&this[_0x312e52(0x12f)][_0x312e52(0x138)]('menu',_0x1ac89d,{'merge':!0x0}),this[_0x312e52(0x12f)]['setConfig'](H,_0x46e403);}['onStarting'](){const _0x3dc969=_0x2b7992;[[c]][_0x3dc969(0x122)](_0xd4416b=>this[_0x3dc969(0x142)][_0x3dc969(0x11b)](_0xd4416b));}[_0x2b7992(0x125)](){const _0xea47a3=_0x2b7992;this[_0xea47a3(0x142)][_0xea47a3(0x135)](c);}};I(s,_0x2b7992(0x126),W),I(s,_0x2b7992(0x12c),_0xbfa663['UNIVER_SHEET']),s=V([_0x4ff593(_0x338505),_(0x1,_0xe2dd25(_0x4219fc)),_(0x2,_0x4345c4)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x58fd37=_0x19a9;(function(_0x1c964f,_0x2ae4ae){const _0x26d23d=_0x19a9,_0x552977=_0x1c964f();while(!![]){try{const _0x5104c6=parseInt(_0x26d23d(0x109))/0x1*(-parseInt(_0x26d23d(0x104))/0x2)+parseInt(_0x26d23d(0x112))/0x3+parseInt(_0x26d23d(0xf7))/0x4*(parseInt(_0x26d23d(0x113))/0x5)+parseInt(_0x26d23d(0xf0))/0x6*(parseInt(_0x26d23d(0xf4))/0x7)+parseInt(_0x26d23d(0x111))/0x8+parseInt(_0x26d23d(0xfd))/0x9*(-parseInt(_0x26d23d(0x11f))/0xa)+-parseInt(_0x26d23d(0x110))/0xb*(parseInt(_0x26d23d(0xf6))/0xc);if(_0x5104c6===_0x2ae4ae)break;else _0x552977['push'](_0x552977['shift']());}catch(_0x58daa7){_0x552977['push'](_0x552977['shift']());}}}(_0x23cf,0x4b75e));import{IExchangeOperateService as _0x5a601a,UniverExchangeClientPlugin as _0x1535d1}from'@univerjs-pro/exchange-client';import{CommandType as _0xf0a975,UniverInstanceType as _0x32f097,Disposable as _0x172624,ICommandService as _0x232557,DependentOn as _0x408a14,Inject as _0x3b5a15,Injector as _0x905a6,IConfigService as _0x41babd,Plugin as _0x27cda5,merge as _0x54e945}from'@univerjs/core';import{MenuItemType as _0x4d3ca5,getMenuHiddenObservable as _0xf791e7,RibbonStartGroup as _0x1c893e,IMenuManagerService as _0x4fc025}from'@univerjs/ui';import{WorkbookExportPermission as _0x14d3dc}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x1a09d6}from'@univerjs/sheets-ui';const p={'id':_0x58fd37(0x10d),'type':_0xf0a975[_0x58fd37(0x115)],'handler':async _0x30a6db=>{const _0x3d0708=_0x58fd37,_0x6c5af7=_0x30a6db[_0x3d0708(0x11e)](_0x5a601a);return new URLSearchParams(location['search'])[_0x3d0708(0x11e)](_0x3d0708(0x119))?_0x6c5af7['importXLSXToUnitId']():_0x6c5af7[_0x3d0708(0xf8)](),!0x0;}},u={'id':_0x58fd37(0x102),'type':_0xf0a975[_0x58fd37(0x115)],'handler':async _0x38418a=>{const _0x2bc4ab=_0x58fd37,_0x44391f=_0x38418a[_0x2bc4ab(0x11e)](_0x5a601a);return new URLSearchParams(location[_0x2bc4ab(0x117)])[_0x2bc4ab(0x11e)](_0x2bc4ab(0x119))?_0x44391f[_0x2bc4ab(0xfc)]():_0x44391f[_0x2bc4ab(0x10c)](),!0x0;}},H=_0x58fd37(0x106),l={},S='sheets-exchange-client.operation.exchange';function R(_0x51bf91){const _0x234905=_0x58fd37;return{'id':S,'type':_0x4d3ca5['SUBITEMS'],'icon':_0x234905(0x11d),'tooltip':'exchange.file','hidden$':_0xf791e7(_0x51bf91,_0x32f097[_0x234905(0x105)]),'disabled$':_0x1a09d6(_0x51bf91,{'workbookTypes':[_0x14d3dc]})};}function _0x23cf(){const _0x1180eb=['5ipLuIe','onReady','OPERATION','exchange.download','search','pluginName','unit','BUTTON','add','exchange.upload','DirectExportIcon','get','20lzDafI','6aiseGk','_injector','FolderIcon','ExportIcon','2658649gxVimv','_commandService','3050364ZgehSk','1099772Fbwnte','importXLSXToSnapshot','type','menu','OTHERS','exportXLSXByUnitId','6084EOvcBe','disposeWithMe','length','setConfig','_initMenus','exchange-client.operation.export-xlsx','symbol','4CzWaYj','UNIVER_SHEET','sheets-exchange-client.config','_configService','_config','222064KYPQop','defineProperty','mergeMenu','exportXLSXBySnapshot','exchange-client.operation.import-xlsx','_initCommands','forEach','22LMavfQ','722640NypbzA','1553640oLbVQo'];_0x23cf=function(){return _0x1180eb;};return _0x23cf();}function w(){const _0x35ae9f=_0x58fd37;return{'id':p['id'],'type':_0x4d3ca5[_0x35ae9f(0x11a)],'title':_0x35ae9f(0x11c),'icon':_0x35ae9f(0xf2)};}function D(){const _0x418737=_0x58fd37;return{'id':u['id'],'type':_0x4d3ca5[_0x418737(0x11a)],'title':_0x418737(0x116),'icon':_0x418737(0xf3)};}const F={[_0x1c893e[_0x58fd37(0xfb)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x5691c5,_0x812428,_0x5ef626,_0x3b1c21)=>{const _0x3dadef=_0x58fd37;for(var _0x513945=_0x3b1c21>0x1?void 0x0:_0x3b1c21?G(_0x812428,_0x5ef626):_0x812428,_0x436c17=_0x5691c5[_0x3dadef(0xff)]-0x1,_0x10dfc2;_0x436c17>=0x0;_0x436c17--)(_0x10dfc2=_0x5691c5[_0x436c17])&&(_0x513945=_0x10dfc2(_0x513945)||_0x513945);return _0x513945;},d=(_0x1bac97,_0x55acc1)=>(_0x248c85,_0x57042a)=>_0x55acc1(_0x248c85,_0x57042a,_0x1bac97);let c=class extends _0x172624{constructor(_0x3dbdeb,_0x5adc0d){const _0x256349=_0x58fd37;super(),this['_commandService']=_0x3dbdeb,this['_menuManagerService']=_0x5adc0d,this['_initCommands'](),this[_0x256349(0x101)]();}[_0x58fd37(0x10e)](){const _0x342d34=_0x58fd37;[p,u][_0x342d34(0x10f)](_0x46c5e6=>{const _0x5dc0bf=_0x342d34;this[_0x5dc0bf(0xfe)](this[_0x5dc0bf(0xf5)]['registerCommand'](_0x46c5e6));});}[_0x58fd37(0x101)](){const _0x42fae5=_0x58fd37;this['_menuManagerService'][_0x42fae5(0x10b)](F);}};c=A([d(0x0,_0x232557),d(0x1,_0x4fc025)],c);function _0x19a9(_0x2f7648,_0x33e705){const _0x23cf41=_0x23cf();return _0x19a9=function(_0x19a9a8,_0x37f82c){_0x19a9a8=_0x19a9a8-0xf0;let _0x45268b=_0x23cf41[_0x19a9a8];return _0x45268b;},_0x19a9(_0x2f7648,_0x33e705);}var j=Object[_0x58fd37(0x10a)],B=Object['getOwnPropertyDescriptor'],$=(_0x498637,_0x4756b6,_0x82b87)=>_0x4756b6 in _0x498637?j(_0x498637,_0x4756b6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x82b87}):_0x498637[_0x4756b6]=_0x82b87,V=(_0x50b8a4,_0x2bee1e,_0x4b9c7a,_0x49e632)=>{const _0x294302=_0x58fd37;for(var _0x967f5d=_0x49e632>0x1?void 0x0:_0x49e632?B(_0x2bee1e,_0x4b9c7a):_0x2bee1e,_0x334f7f=_0x50b8a4[_0x294302(0xff)]-0x1,_0x37182c;_0x334f7f>=0x0;_0x334f7f--)(_0x37182c=_0x50b8a4[_0x334f7f])&&(_0x967f5d=_0x37182c(_0x967f5d)||_0x967f5d);return _0x967f5d;},_=(_0x1eae56,_0x48e666)=>(_0x239c05,_0x1c3cf2)=>_0x48e666(_0x239c05,_0x1c3cf2,_0x1eae56),I=(_0xeaea8b,_0x1c8a72,_0x3a7445)=>$(_0xeaea8b,typeof _0x1c8a72!=_0x58fd37(0x103)?_0x1c8a72+'':_0x1c8a72,_0x3a7445);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x27cda5{constructor(_0x28a9e2=l,_0x341f6c,_0x27698e){const _0x1ff156=_0x58fd37;super(),this[_0x1ff156(0x108)]=_0x28a9e2,this[_0x1ff156(0xf1)]=_0x341f6c,this[_0x1ff156(0x107)]=_0x27698e;const {menu:_0x3de8ff,..._0x3a239f}=_0x54e945({},l,this[_0x1ff156(0x108)]);_0x3de8ff&&this[_0x1ff156(0x107)][_0x1ff156(0x100)](_0x1ff156(0xfa),_0x3de8ff,{'merge':!0x0}),this[_0x1ff156(0x107)][_0x1ff156(0x100)](H,_0x3a239f);}['onStarting'](){const _0x405ad4=_0x58fd37;[[c]][_0x405ad4(0x10f)](_0x5b16ab=>this[_0x405ad4(0xf1)][_0x405ad4(0x11b)](_0x5b16ab));}[_0x58fd37(0x114)](){const _0x26c929=_0x58fd37;this[_0x26c929(0xf1)][_0x26c929(0x11e)](c);}};I(s,_0x58fd37(0x118),W),I(s,_0x58fd37(0xf9),_0x32f097[_0x58fd37(0x105)]),s=V([_0x408a14(_0x1535d1),_(0x1,_0x3b5a15(_0x905a6)),_(0x2,_0x41babd)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x2b7992=_0x3767;(function(_0x51b2c8,_0x28ce4f){const _0x19f3d1=_0x3767,_0x4402b2=_0x51b2c8();while(!![]){try{const _0x6e510a=-parseInt(_0x19f3d1(0x136))/0x1+-parseInt(_0x19f3d1(0x123))/0x2+-parseInt(_0x19f3d1(0x11a))/0x3*(-parseInt(_0x19f3d1(0x11c))/0x4)+parseInt(_0x19f3d1(0x117))/0x5*(-parseInt(_0x19f3d1(0x12d))/0x6)+parseInt(_0x19f3d1(0x121))/0x7*(-parseInt(_0x19f3d1(0x13f))/0x8)+parseInt(_0x19f3d1(0x11f))/0x9*(parseInt(_0x19f3d1(0x134))/0xa)+parseInt(_0x19f3d1(0x13c))/0xb;if(_0x6e510a===_0x28ce4f)break;else _0x4402b2['push'](_0x4402b2['shift']());}catch(_0x1e3be7){_0x4402b2['push'](_0x4402b2['shift']());}}}(_0x5dd6,0x5eb21));import{IExchangeOperateService as _0x53988b,UniverExchangeClientPlugin as _0x338505}from'@univerjs-pro/exchange-client';import{CommandType as _0x4ad908,UniverInstanceType as _0xbfa663,Disposable as _0x170102,ICommandService as _0x2bf90a,DependentOn as _0x4ff593,Inject as _0xe2dd25,Injector as _0x4219fc,IConfigService as _0x4345c4,Plugin as _0xa1614,merge as _0x33f897}from'@univerjs/core';import{MenuItemType as _0x2972a7,getMenuHiddenObservable as _0x379c35,RibbonStartGroup as _0x1d0a53,IMenuManagerService as _0x1e2a0f}from'@univerjs/ui';import{WorkbookExportPermission as _0x3e39a7}from'@univerjs/sheets';function _0x5dd6(){const _0x330529=['exchange-client.operation.import-xlsx','getOwnPropertyDescriptor','exportXLSXBySnapshot','38810piWKXr','search','length','363LMRRRn','add','16292YTPXEP','registerCommand','_commandService','9jbgPkS','SUBITEMS','52451nScKmv','forEach','636120RXHXNb','_initMenus','onReady','pluginName','SHEET_EXCHANGE_CLIENT_PLUGIN','exchange-client.operation.export-xlsx','OTHERS','_menuManagerService','ExportIcon','type','306tBaaEA','sheets-exchange-client.config','_configService','_config','_initCommands','OPERATION','exchange.download','1235710cgqVpp','get','171192tqmUqy','defineProperty','setConfig','unit','exchange.file','BUTTON','9035719lThBHF','UNIVER_SHEET','importXLSXToSnapshot','176Uvlkik','mergeMenu','exchange.upload','_injector','FolderIcon'];_0x5dd6=function(){return _0x330529;};return _0x5dd6();}import{getCurrentRangeDisable$ as _0x291126}from'@univerjs/sheets-ui';function _0x3767(_0x347354,_0x53f586){const _0x5dd619=_0x5dd6();return _0x3767=function(_0x37674d,_0xd1d905){_0x37674d=_0x37674d-0x116;let _0x56fb3c=_0x5dd619[_0x37674d];return _0x56fb3c;},_0x3767(_0x347354,_0x53f586);}const p={'id':_0x2b7992(0x144),'type':_0x4ad908[_0x2b7992(0x132)],'handler':async _0x7ddf10=>{const _0x4f8034=_0x2b7992,_0x380e4e=_0x7ddf10[_0x4f8034(0x135)](_0x53988b);return new URLSearchParams(location[_0x4f8034(0x118)])['get'](_0x4f8034(0x139))?_0x380e4e['importXLSXToUnitId']():_0x380e4e[_0x4f8034(0x13e)](),!0x0;}},u={'id':_0x2b7992(0x128),'type':_0x4ad908['OPERATION'],'handler':async _0x2ebd8e=>{const _0x290f7b=_0x2b7992,_0x3c59ce=_0x2ebd8e[_0x290f7b(0x135)](_0x53988b);return new URLSearchParams(location[_0x290f7b(0x118)])[_0x290f7b(0x135)]('unit')?_0x3c59ce['exportXLSXByUnitId']():_0x3c59ce[_0x290f7b(0x116)](),!0x0;}},H=_0x2b7992(0x12e),l={},S='sheets-exchange-client.operation.exchange';function R(_0x281888){const _0x243046=_0x2b7992;return{'id':S,'type':_0x2972a7[_0x243046(0x120)],'icon':'DirectExportIcon','tooltip':_0x243046(0x13a),'hidden$':_0x379c35(_0x281888,_0xbfa663[_0x243046(0x13d)]),'disabled$':_0x291126(_0x281888,{'workbookTypes':[_0x3e39a7]})};}function w(){const _0x3ae208=_0x2b7992;return{'id':p['id'],'type':_0x2972a7[_0x3ae208(0x13b)],'title':_0x3ae208(0x141),'icon':_0x3ae208(0x143)};}function D(){const _0x3537eb=_0x2b7992;return{'id':u['id'],'type':_0x2972a7[_0x3537eb(0x13b)],'title':_0x3537eb(0x133),'icon':_0x3537eb(0x12b)};}const F={[_0x1d0a53[_0x2b7992(0x129)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x7a04b3,_0x35f2b2,_0x40411b,_0x22f91d)=>{const _0x23d8a1=_0x2b7992;for(var _0x4551a6=_0x22f91d>0x1?void 0x0:_0x22f91d?G(_0x35f2b2,_0x40411b):_0x35f2b2,_0x3309ff=_0x7a04b3[_0x23d8a1(0x119)]-0x1,_0x22fee7;_0x3309ff>=0x0;_0x3309ff--)(_0x22fee7=_0x7a04b3[_0x3309ff])&&(_0x4551a6=_0x22fee7(_0x4551a6)||_0x4551a6);return _0x4551a6;},d=(_0x3aaed9,_0x1b22d7)=>(_0x2d2b0a,_0x20a44b)=>_0x1b22d7(_0x2d2b0a,_0x20a44b,_0x3aaed9);let c=class extends _0x170102{constructor(_0x41c37a,_0x4fcf53){const _0x28f9d5=_0x2b7992;super(),this[_0x28f9d5(0x11e)]=_0x41c37a,this['_menuManagerService']=_0x4fcf53,this[_0x28f9d5(0x131)](),this[_0x28f9d5(0x124)]();}[_0x2b7992(0x131)](){const _0x1a0886=_0x2b7992;[p,u][_0x1a0886(0x122)](_0x48c9ef=>{const _0x5d399c=_0x1a0886;this['disposeWithMe'](this['_commandService'][_0x5d399c(0x11d)](_0x48c9ef));});}['_initMenus'](){const _0x33d036=_0x2b7992;this[_0x33d036(0x12a)][_0x33d036(0x140)](F);}};c=A([d(0x0,_0x2bf90a),d(0x1,_0x1e2a0f)],c);var j=Object[_0x2b7992(0x137)],B=Object[_0x2b7992(0x145)],$=(_0x5ae6c0,_0x2ba7ca,_0x29049e)=>_0x2ba7ca in _0x5ae6c0?j(_0x5ae6c0,_0x2ba7ca,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29049e}):_0x5ae6c0[_0x2ba7ca]=_0x29049e,V=(_0x497941,_0x17ce69,_0x282607,_0x116562)=>{for(var _0x385fcb=_0x116562>0x1?void 0x0:_0x116562?B(_0x17ce69,_0x282607):_0x17ce69,_0x59ea5f=_0x497941['length']-0x1,_0x4006cd;_0x59ea5f>=0x0;_0x59ea5f--)(_0x4006cd=_0x497941[_0x59ea5f])&&(_0x385fcb=_0x4006cd(_0x385fcb)||_0x385fcb);return _0x385fcb;},_=(_0x2a57e2,_0x40168b)=>(_0x17a0d5,_0x2dfdf2)=>_0x40168b(_0x17a0d5,_0x2dfdf2,_0x2a57e2),I=(_0x51ba28,_0x3e231f,_0x3b9262)=>$(_0x51ba28,typeof _0x3e231f!='symbol'?_0x3e231f+'':_0x3e231f,_0x3b9262);const W=_0x2b7992(0x127);let s=class extends _0xa1614{constructor(_0x44521f=l,_0x35c73a,_0x3837af){const _0x312e52=_0x2b7992;super(),this['_config']=_0x44521f,this[_0x312e52(0x142)]=_0x35c73a,this[_0x312e52(0x12f)]=_0x3837af;const {menu:_0x1ac89d,..._0x46e403}=_0x33f897({},l,this[_0x312e52(0x130)]);_0x1ac89d&&this[_0x312e52(0x12f)][_0x312e52(0x138)]('menu',_0x1ac89d,{'merge':!0x0}),this[_0x312e52(0x12f)]['setConfig'](H,_0x46e403);}['onStarting'](){const _0x3dc969=_0x2b7992;[[c]][_0x3dc969(0x122)](_0xd4416b=>this[_0x3dc969(0x142)][_0x3dc969(0x11b)](_0xd4416b));}[_0x2b7992(0x125)](){const _0xea47a3=_0x2b7992;this[_0xea47a3(0x142)][_0xea47a3(0x135)](c);}};I(s,_0x2b7992(0x126),W),I(s,_0x2b7992(0x12c),_0xbfa663['UNIVER_SHEET']),s=V([_0x4ff593(_0x338505),_(0x1,_0xe2dd25(_0x4219fc)),_(0x2,_0x4345c4)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x4745(){const _0x5ef182=['mergeMenu','WorkbookExportPermission','exportXLSXBySnapshot','defineProperty','@univerjs/core','CommandType','exchange.file','@univerjs/ui','_injector','RibbonStartGroup','get','function','pluginName','UniverProExchangeClient','setConfig','ExportIcon','Injector','IExchangeOperateService','UniverExchangeClientPlugin','MenuItemType','Plugin','amd','exports','49832GxJtIn','add','getMenuHiddenObservable','UniverSheetsExchangeClientPlugin','onStarting','SUBITEMS','ICommandService','ExportXLSXOperation','@univerjs-pro/exchange-client','Disposable','importXLSXToUnitId','BUTTON','sheets-exchange-client.config','OTHERS','importXLSXToSnapshot','_initMenus','ImportXLSXOperation','getCurrentRangeDisable$','forEach','IMenuManagerService','454476saEOac','_config','428196KbxzqS','190192CSDqrU','type','_menuManagerService','OPERATION','_commandService','@univerjs/sheets','8puoTRz','37550zjNJru','507759ZPuOED','SHEET_EXCHANGE_CLIENT_PLUGIN','51yVekuv','_configService','search','length','menu','exchange.download','UniverInstanceType','unit','DependentOn','sheets-exchange-client.operation.exchange','getOwnPropertyDescriptor','toStringTag','exportXLSXByUnitId','_initCommands','359784edYHhj','registerCommand','UniverCore','exchange-client.operation.import-xlsx','object','FolderIcon','UNIVER_SHEET','disposeWithMe','Inject'];_0x4745=function(){return _0x5ef182;};return _0x4745();}function _0x341c(_0x1eed70,_0x436ff1){const _0x4745df=_0x4745();return _0x341c=function(_0x341c5c,_0x32a06d){_0x341c5c=_0x341c5c-0x18a;let _0x27acc0=_0x4745df[_0x341c5c];return _0x27acc0;},_0x341c(_0x1eed70,_0x436ff1);}(function(_0x3b2bd0,_0x49d055){const _0x47b498=_0x341c,_0x4cd99a=_0x3b2bd0();while(!![]){try{const _0x2dae1d=parseInt(_0x47b498(0x1d0))/0x1+-parseInt(_0x47b498(0x1cd))/0x2+parseInt(_0x47b498(0x18b))/0x3*(parseInt(_0x47b498(0x1b9))/0x4)+-parseInt(_0x47b498(0x1d7))/0x5+parseInt(_0x47b498(0x1cf))/0x6+-parseInt(_0x47b498(0x1d8))/0x7+parseInt(_0x47b498(0x1d6))/0x8*(-parseInt(_0x47b498(0x199))/0x9);if(_0x2dae1d===_0x49d055)break;else _0x4cd99a['push'](_0x4cd99a['shift']());}catch(_0x59d45a){_0x4cd99a['push'](_0x4cd99a['shift']());}}}(_0x4745,0x1ec83),function(_0x23861d,_0x462ca7){const _0x14489c=_0x341c;typeof exports==_0x14489c(0x19d)&&typeof module<'u'?_0x462ca7(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x14489c(0x1ad)&&define[_0x14489c(0x1b7)]?define([_0x14489c(0x1b8),_0x14489c(0x1c1),_0x14489c(0x1a6),_0x14489c(0x1a9),_0x14489c(0x1d5),'@univerjs/sheets-ui'],_0x462ca7):(_0x23861d=typeof globalThis<'u'?globalThis:_0x23861d||self,_0x462ca7(_0x23861d['UniverProSheetsExchangeClient']={},_0x23861d[_0x14489c(0x1af)],_0x23861d[_0x14489c(0x19b)],_0x23861d['UniverUi'],_0x23861d['UniverSheets'],_0x23861d['UniverSheetsUi']));}(this,function(_0x2be4d8,_0x289071,_0x7458d0,_0x21454e,_0x26c277,_0x143eff){'use strict';const _0x33adc3=_0x341c;const _0x30cfdf={'id':_0x33adc3(0x19c),'type':_0x7458d0['CommandType'][_0x33adc3(0x1d3)],'handler':async _0xa86363=>{const _0x1e09e7=_0x33adc3,_0x13aa46=_0xa86363[_0x1e09e7(0x1ac)](_0x289071[_0x1e09e7(0x1b3)]);return new URLSearchParams(location[_0x1e09e7(0x18d)])[_0x1e09e7(0x1ac)](_0x1e09e7(0x192))?_0x13aa46[_0x1e09e7(0x1c3)]():_0x13aa46[_0x1e09e7(0x1c7)](),!0x0;}},_0x2ea63c={'id':'exchange-client.operation.export-xlsx','type':_0x7458d0[_0x33adc3(0x1a7)]['OPERATION'],'handler':async _0x47a90c=>{const _0x58d77f=_0x33adc3,_0x3aaae0=_0x47a90c[_0x58d77f(0x1ac)](_0x289071[_0x58d77f(0x1b3)]);return new URLSearchParams(location[_0x58d77f(0x18d)])[_0x58d77f(0x1ac)](_0x58d77f(0x192))?_0x3aaae0[_0x58d77f(0x197)]():_0x3aaae0[_0x58d77f(0x1a4)](),!0x0;}},_0x303874=_0x33adc3(0x1c5),_0x297f62={},_0x5a8bac=_0x33adc3(0x194);function _0x341962(_0x2585b9){const _0x250be2=_0x33adc3;return{'id':_0x5a8bac,'type':_0x21454e[_0x250be2(0x1b5)][_0x250be2(0x1be)],'icon':'DirectExportIcon','tooltip':_0x250be2(0x1a8),'hidden$':_0x21454e[_0x250be2(0x1bb)](_0x2585b9,_0x7458d0[_0x250be2(0x191)][_0x250be2(0x19f)]),'disabled$':_0x143eff[_0x250be2(0x1ca)](_0x2585b9,{'workbookTypes':[_0x26c277[_0x250be2(0x1a3)]]})};}function _0x4d6732(){const _0x14ebe3=_0x33adc3;return{'id':_0x30cfdf['id'],'type':_0x21454e[_0x14ebe3(0x1b5)]['BUTTON'],'title':'exchange.upload','icon':_0x14ebe3(0x19e)};}function _0x564ed5(){const _0x170476=_0x33adc3;return{'id':_0x2ea63c['id'],'type':_0x21454e[_0x170476(0x1b5)][_0x170476(0x1c4)],'title':_0x170476(0x190),'icon':_0x170476(0x1b1)};}const _0x16a0f4={[_0x21454e[_0x33adc3(0x1ab)][_0x33adc3(0x1c6)]]:{[_0x5a8bac]:{'order':0.3,'menuItemFactory':_0x341962,[_0x30cfdf['id']]:{'order':0x0,'menuItemFactory':_0x4d6732},[_0x2ea63c['id']]:{'order':0x1,'menuItemFactory':_0x564ed5}}}};var _0xe4b99d=Object[_0x33adc3(0x195)],_0xbc1744=(_0xc6b3b7,_0x42de2f,_0xaa506f,_0x2105ea)=>{const _0x8208f1=_0x33adc3;for(var _0x3730e5=_0x2105ea>0x1?void 0x0:_0x2105ea?_0xe4b99d(_0x42de2f,_0xaa506f):_0x42de2f,_0x15630d=_0xc6b3b7[_0x8208f1(0x18e)]-0x1,_0x1d4037;_0x15630d>=0x0;_0x15630d--)(_0x1d4037=_0xc6b3b7[_0x15630d])&&(_0x3730e5=_0x1d4037(_0x3730e5)||_0x3730e5);return _0x3730e5;},_0x43931a=(_0x3fda4f,_0x34adec)=>(_0x3923c8,_0x40da6d)=>_0x34adec(_0x3923c8,_0x40da6d,_0x3fda4f);let _0x4df7a5=class extends _0x7458d0[_0x33adc3(0x1c2)]{constructor(_0x4dec47,_0x576d05){const _0x7e5027=_0x33adc3;super(),this[_0x7e5027(0x1d4)]=_0x4dec47,this[_0x7e5027(0x1d2)]=_0x576d05,this['_initCommands'](),this['_initMenus']();}[_0x33adc3(0x198)](){const _0x35cd=_0x33adc3;[_0x30cfdf,_0x2ea63c][_0x35cd(0x1cb)](_0x2693dc=>{const _0x1c1ded=_0x35cd;this[_0x1c1ded(0x1a0)](this[_0x1c1ded(0x1d4)][_0x1c1ded(0x19a)](_0x2693dc));});}[_0x33adc3(0x1c8)](){const _0x55b042=_0x33adc3;this['_menuManagerService'][_0x55b042(0x1a2)](_0x16a0f4);}};_0x4df7a5=_0xbc1744([_0x43931a(0x0,_0x7458d0[_0x33adc3(0x1bf)]),_0x43931a(0x1,_0x21454e[_0x33adc3(0x1cc)])],_0x4df7a5);var _0x4f27dd=Object[_0x33adc3(0x1a5)],_0x2f8807=Object[_0x33adc3(0x195)],_0x9fb9b1=(_0x5e7ece,_0x5c1e70,_0x3060e9)=>_0x5c1e70 in _0x5e7ece?_0x4f27dd(_0x5e7ece,_0x5c1e70,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3060e9}):_0x5e7ece[_0x5c1e70]=_0x3060e9,_0x39a93b=(_0x5d7431,_0x1ecfc2,_0x5c61f5,_0x4c3ce8)=>{const _0x33efc4=_0x33adc3;for(var _0x41694b=_0x4c3ce8>0x1?void 0x0:_0x4c3ce8?_0x2f8807(_0x1ecfc2,_0x5c61f5):_0x1ecfc2,_0x3d97a2=_0x5d7431[_0x33efc4(0x18e)]-0x1,_0x51faef;_0x3d97a2>=0x0;_0x3d97a2--)(_0x51faef=_0x5d7431[_0x3d97a2])&&(_0x41694b=_0x51faef(_0x41694b)||_0x41694b);return _0x41694b;},_0x7f6941=(_0x7e88bb,_0x12a569)=>(_0x9e2020,_0x5a50f4)=>_0x12a569(_0x9e2020,_0x5a50f4,_0x7e88bb),_0x253b23=(_0x293c45,_0x10439f,_0x438754)=>_0x9fb9b1(_0x293c45,typeof _0x10439f!='symbol'?_0x10439f+'':_0x10439f,_0x438754);const _0x1237b0=_0x33adc3(0x18a);_0x2be4d8['UniverSheetsExchangeClientPlugin']=class extends _0x7458d0[_0x33adc3(0x1b6)]{constructor(_0x18f51e=_0x297f62,_0x3efbc8,_0x4c1091){const _0x387c81=_0x33adc3;super(),this[_0x387c81(0x1ce)]=_0x18f51e,this[_0x387c81(0x1aa)]=_0x3efbc8,this[_0x387c81(0x18c)]=_0x4c1091;const {menu:_0x33356b,..._0x41d172}=_0x7458d0['merge']({},_0x297f62,this['_config']);_0x33356b&&this['_configService'][_0x387c81(0x1b0)](_0x387c81(0x18f),_0x33356b,{'merge':!0x0}),this[_0x387c81(0x18c)][_0x387c81(0x1b0)](_0x303874,_0x41d172);}[_0x33adc3(0x1bd)](){const _0x811102=_0x33adc3;[[_0x4df7a5]][_0x811102(0x1cb)](_0x4f5c3f=>this['_injector'][_0x811102(0x1ba)](_0x4f5c3f));}['onReady'](){const _0x3dcd0a=_0x33adc3;this[_0x3dcd0a(0x1aa)][_0x3dcd0a(0x1ac)](_0x4df7a5);}},_0x253b23(_0x2be4d8[_0x33adc3(0x1bc)],_0x33adc3(0x1ae),_0x1237b0),_0x253b23(_0x2be4d8['UniverSheetsExchangeClientPlugin'],_0x33adc3(0x1d1),_0x7458d0[_0x33adc3(0x191)][_0x33adc3(0x19f)]),_0x2be4d8[_0x33adc3(0x1bc)]=_0x39a93b([_0x7458d0[_0x33adc3(0x193)](_0x289071[_0x33adc3(0x1b4)]),_0x7f6941(0x1,_0x7458d0[_0x33adc3(0x1a1)](_0x7458d0[_0x33adc3(0x1b2)])),_0x7f6941(0x2,_0x7458d0['IConfigService'])],_0x2be4d8[_0x33adc3(0x1bc)]),_0x2be4d8[_0x33adc3(0x1c0)]=_0x2ea63c,_0x2be4d8[_0x33adc3(0x1c9)]=_0x30cfdf,Object[_0x33adc3(0x1a5)](_0x2be4d8,Symbol[_0x33adc3(0x196)],{'value':'Module'});}));
1
+ function _0x59c1(_0x340fbc,_0xf1a918){const _0x59c1c5=_0xf813();return _0x59c1=function(_0x8777cd,_0xe3427f){_0x8777cd=_0x8777cd-0x128;let _0x5bc792=_0x59c1c5[_0x8777cd];return _0x5bc792;},_0x59c1(_0x340fbc,_0xf1a918);}(function(_0x394dbf,_0x440545){const _0x2ef129=_0x59c1,_0x1f0ca7=_0x394dbf();while(!![]){try{const _0x356358=-parseInt(_0x2ef129(0x177))/0x1*(-parseInt(_0x2ef129(0x160))/0x2)+parseInt(_0x2ef129(0x151))/0x3*(-parseInt(_0x2ef129(0x140))/0x4)+parseInt(_0x2ef129(0x169))/0x5+-parseInt(_0x2ef129(0x136))/0x6+parseInt(_0x2ef129(0x166))/0x7*(parseInt(_0x2ef129(0x148))/0x8)+-parseInt(_0x2ef129(0x173))/0x9+-parseInt(_0x2ef129(0x12d))/0xa*(-parseInt(_0x2ef129(0x163))/0xb);if(_0x356358===_0x440545)break;else _0x1f0ca7['push'](_0x1f0ca7['shift']());}catch(_0x50a3d1){_0x1f0ca7['push'](_0x1f0ca7['shift']());}}}(_0xf813,0xeff6d),function(_0x5230fc,_0x3a3e8a){const _0xe4c50=_0x59c1;typeof exports==_0xe4c50(0x162)&&typeof module<'u'?_0x3a3e8a(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0xe4c50(0x13f)&&define['amd']?define([_0xe4c50(0x12b),'@univerjs-pro/exchange-client',_0xe4c50(0x150),_0xe4c50(0x133),_0xe4c50(0x14a),_0xe4c50(0x167)],_0x3a3e8a):(_0x5230fc=typeof globalThis<'u'?globalThis:_0x5230fc||self,_0x3a3e8a(_0x5230fc[_0xe4c50(0x12c)]={},_0x5230fc[_0xe4c50(0x13e)],_0x5230fc[_0xe4c50(0x132)],_0x5230fc[_0xe4c50(0x138)],_0x5230fc[_0xe4c50(0x14c)],_0x5230fc[_0xe4c50(0x153)]));}(this,function(_0x39979c,_0x48a4c9,_0x21127a,_0x54ef7e,_0x37fb6d,_0x8bc9bc){'use strict';const _0x3c18be=_0x59c1;const _0x26fbdd={'id':_0x3c18be(0x15e),'type':_0x21127a[_0x3c18be(0x16a)][_0x3c18be(0x152)],'handler':async _0x21dc08=>{const _0x456201=_0x3c18be,_0x50b353=_0x21dc08[_0x456201(0x147)](_0x48a4c9[_0x456201(0x171)]);return new URLSearchParams(location[_0x456201(0x176)])['get'](_0x456201(0x142))?_0x50b353[_0x456201(0x143)]():_0x50b353[_0x456201(0x135)](),!0x0;}},_0x122eb0={'id':'exchange-client.operation.export-xlsx','type':_0x21127a[_0x3c18be(0x16a)][_0x3c18be(0x152)],'handler':async _0x2b7c3f=>{const _0x170dc9=_0x3c18be,_0x282501=_0x2b7c3f['get'](_0x48a4c9['IExchangeOperateService']);return new URLSearchParams(location[_0x170dc9(0x176)])[_0x170dc9(0x147)]('unit')?_0x282501[_0x170dc9(0x139)]():_0x282501[_0x170dc9(0x13d)](),!0x0;}},_0x4bb910='sheets-exchange-client.config',_0x25fd2d={},_0x16a293=_0x3c18be(0x13c);function _0x43034e(_0x44f165){const _0x3542c9=_0x3c18be;return{'id':_0x16a293,'type':_0x54ef7e['MenuItemType'][_0x3542c9(0x158)],'icon':_0x3542c9(0x13b),'tooltip':_0x3542c9(0x156),'hidden$':_0x54ef7e['getMenuHiddenObservable'](_0x44f165,_0x21127a[_0x3542c9(0x165)][_0x3542c9(0x159)]),'disabled$':_0x8bc9bc[_0x3542c9(0x155)](_0x44f165,{'workbookTypes':[_0x37fb6d[_0x3542c9(0x175)]]})};}function _0x25a713(){const _0x4b1209=_0x3c18be;return{'id':_0x26fbdd['id'],'type':_0x54ef7e['MenuItemType'][_0x4b1209(0x15c)],'title':_0x4b1209(0x154),'icon':_0x4b1209(0x14b)};}function _0xdea7eb(){const _0x3a9426=_0x3c18be;return{'id':_0x122eb0['id'],'type':_0x54ef7e[_0x3a9426(0x161)][_0x3a9426(0x15c)],'title':'exchange.download','icon':_0x3a9426(0x14d)};}const _0x44169e={[_0x54ef7e[_0x3c18be(0x16e)][_0x3c18be(0x131)]]:{[_0x16a293]:{'order':0.3,'menuItemFactory':_0x43034e,[_0x26fbdd['id']]:{'order':0x0,'menuItemFactory':_0x25a713},[_0x122eb0['id']]:{'order':0x1,'menuItemFactory':_0xdea7eb}}}};var _0x3a962c=Object[_0x3c18be(0x129)],_0x291133=(_0x2424e6,_0xc4b21a,_0x846678,_0x47a6d2)=>{for(var _0x2728d3=_0x47a6d2>0x1?void 0x0:_0x47a6d2?_0x3a962c(_0xc4b21a,_0x846678):_0xc4b21a,_0x426335=_0x2424e6['length']-0x1,_0xc1909d;_0x426335>=0x0;_0x426335--)(_0xc1909d=_0x2424e6[_0x426335])&&(_0x2728d3=_0xc1909d(_0x2728d3)||_0x2728d3);return _0x2728d3;},_0x5d2991=(_0x52a8a6,_0x1c089e)=>(_0x463cf8,_0x57be0b)=>_0x1c089e(_0x463cf8,_0x57be0b,_0x52a8a6);let _0x45668b=class extends _0x21127a[_0x3c18be(0x144)]{constructor(_0x273ffd,_0x372c70){const _0x5beafc=_0x3c18be;super(),this[_0x5beafc(0x12a)]=_0x273ffd,this[_0x5beafc(0x16b)]=_0x372c70,this[_0x5beafc(0x130)](),this[_0x5beafc(0x15b)]();}[_0x3c18be(0x130)](){const _0x35b03c=_0x3c18be;[_0x26fbdd,_0x122eb0][_0x35b03c(0x146)](_0x867b2b=>{const _0x1d84d4=_0x35b03c;this[_0x1d84d4(0x157)](this[_0x1d84d4(0x12a)]['registerCommand'](_0x867b2b));});}[_0x3c18be(0x15b)](){const _0x4723e2=_0x3c18be;this[_0x4723e2(0x16b)]['mergeMenu'](_0x44169e);}};_0x45668b=_0x291133([_0x5d2991(0x0,_0x21127a['ICommandService']),_0x5d2991(0x1,_0x54ef7e['IMenuManagerService'])],_0x45668b);var _0x3a3960=Object['defineProperty'],_0x5b2b63=Object[_0x3c18be(0x129)],_0x3590f7=(_0x22319b,_0x1e3ee4,_0x3503da)=>_0x1e3ee4 in _0x22319b?_0x3a3960(_0x22319b,_0x1e3ee4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3503da}):_0x22319b[_0x1e3ee4]=_0x3503da,_0x1d826f=(_0xec496b,_0x5cda7e,_0x52db03,_0x3ed508)=>{const _0x18fbf7=_0x3c18be;for(var _0x48951=_0x3ed508>0x1?void 0x0:_0x3ed508?_0x5b2b63(_0x5cda7e,_0x52db03):_0x5cda7e,_0x565f53=_0xec496b[_0x18fbf7(0x170)]-0x1,_0x3c4a6e;_0x565f53>=0x0;_0x565f53--)(_0x3c4a6e=_0xec496b[_0x565f53])&&(_0x48951=_0x3c4a6e(_0x48951)||_0x48951);return _0x48951;},_0x363af8=(_0x2fb985,_0x4a4cd9)=>(_0x396ff7,_0x49faeb)=>_0x4a4cd9(_0x396ff7,_0x49faeb,_0x2fb985),_0xff5db0=(_0x2c585c,_0x110cfd,_0x12c285)=>_0x3590f7(_0x2c585c,typeof _0x110cfd!=_0x3c18be(0x174)?_0x110cfd+'':_0x110cfd,_0x12c285);const _0x3488c8=_0x3c18be(0x15f);_0x39979c[_0x3c18be(0x15d)]=class extends _0x21127a[_0x3c18be(0x16c)]{constructor(_0x3cd054=_0x25fd2d,_0x2cb4ad,_0x3d10a7){const _0x3c1d0b=_0x3c18be;super(),this[_0x3c1d0b(0x141)]=_0x3cd054,this[_0x3c1d0b(0x168)]=_0x2cb4ad,this['_configService']=_0x3d10a7;const {menu:_0x4ff530,..._0x1178c9}=_0x21127a[_0x3c1d0b(0x16d)]({},_0x25fd2d,this[_0x3c1d0b(0x141)]);_0x4ff530&&this[_0x3c1d0b(0x149)][_0x3c1d0b(0x145)](_0x3c1d0b(0x14f),_0x4ff530,{'merge':!0x0}),this[_0x3c1d0b(0x149)][_0x3c1d0b(0x145)](_0x4bb910,_0x1178c9);}[_0x3c18be(0x164)](){const _0x17a81b=_0x3c18be;[[_0x45668b]][_0x17a81b(0x146)](_0x3c25fd=>this[_0x17a81b(0x168)][_0x17a81b(0x16f)](_0x3c25fd));}['onReady'](){const _0x46b46f=_0x3c18be;this[_0x46b46f(0x168)][_0x46b46f(0x147)](_0x45668b);}},_0xff5db0(_0x39979c['UniverSheetsExchangeClientPlugin'],'pluginName',_0x3488c8),_0xff5db0(_0x39979c['UniverSheetsExchangeClientPlugin'],_0x3c18be(0x137),_0x21127a['UniverInstanceType']['UNIVER_SHEET']),_0x39979c[_0x3c18be(0x15d)]=_0x1d826f([_0x21127a[_0x3c18be(0x12e)](_0x48a4c9['UniverExchangeClientPlugin']),_0x363af8(0x1,_0x21127a[_0x3c18be(0x14e)](_0x21127a['Injector'])),_0x363af8(0x2,_0x21127a[_0x3c18be(0x12f)])],_0x39979c[_0x3c18be(0x15d)]),_0x39979c[_0x3c18be(0x13a)]=_0x122eb0,_0x39979c[_0x3c18be(0x134)]=_0x26fbdd,Object[_0x3c18be(0x128)](_0x39979c,Symbol[_0x3c18be(0x15a)],{'value':_0x3c18be(0x172)});}));function _0xf813(){const _0x3a53fc=['disposeWithMe','SUBITEMS','UNIVER_SHEET','toStringTag','_initMenus','BUTTON','UniverSheetsExchangeClientPlugin','exchange-client.operation.import-xlsx','SHEET_EXCHANGE_CLIENT_PLUGIN','562DccvHE','MenuItemType','object','10243519DEsLxC','onStarting','UniverInstanceType','7emHoBh','@univerjs/sheets-ui','_injector','7062375bGzCiZ','CommandType','_menuManagerService','Plugin','merge','RibbonStartGroup','add','length','IExchangeOperateService','Module','11379375KiDCLI','symbol','WorkbookExportPermission','search','2199HNYTqe','defineProperty','getOwnPropertyDescriptor','_commandService','exports','UniverProSheetsExchangeClient','10pawBiJ','DependentOn','IConfigService','_initCommands','OTHERS','UniverCore','@univerjs/ui','ImportXLSXOperation','importXLSXToSnapshot','2371260diIWEP','type','UniverUi','exportXLSXByUnitId','ExportXLSXOperation','DirectExportIcon','sheets-exchange-client.operation.exchange','exportXLSXBySnapshot','UniverProExchangeClient','function','345476qgvQgs','_config','unit','importXLSXToUnitId','Disposable','setConfig','forEach','get','2974456DRhsGC','_configService','@univerjs/sheets','FolderIcon','UniverSheets','ExportIcon','Inject','menu','@univerjs/core','24nKzHGZ','OPERATION','UniverSheetsUi','exchange.upload','getCurrentRangeDisable$','exchange.file'];_0xf813=function(){return _0x3a53fc;};return _0xf813();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.12.2-nightly.202511241159",
3
+ "version": "0.12.2-nightly.202511290732",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -42,16 +42,16 @@
42
42
  "lib"
43
43
  ],
44
44
  "dependencies": {
45
- "@univerjs-pro/exchange-client": "0.12.2-nightly.202511241159",
46
- "@univerjs/core": "0.12.2-nightly.202511241159",
47
- "@univerjs/sheets": "0.12.2-nightly.202511241159",
48
- "@univerjs/sheets-ui": "0.12.2-nightly.202511241159",
49
- "@univerjs/ui": "0.12.2-nightly.202511241159"
45
+ "@univerjs-pro/exchange-client": "0.12.2-nightly.202511290732",
46
+ "@univerjs/core": "0.12.2-nightly.202511290732",
47
+ "@univerjs/sheets-ui": "0.12.2-nightly.202511290732",
48
+ "@univerjs/sheets": "0.12.2-nightly.202511290732",
49
+ "@univerjs/ui": "0.12.2-nightly.202511290732"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",
53
- "vite": "^7.2.2",
54
- "vitest": "^3.2.4",
53
+ "vite": "^7.2.4",
54
+ "vitest": "^4.0.14",
55
55
  "@univerjs-infra/shared": "0.12.2"
56
56
  },
57
57
  "scripts": {