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

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 _0x526b25=_0x36f1;(function(_0x1a3ee8,_0x506a71){const _0x49a2d4=_0x36f1,_0x43395b=_0x1a3ee8();while(!![]){try{const _0x202a18=-parseInt(_0x49a2d4(0x134))/0x1*(parseInt(_0x49a2d4(0x14e))/0x2)+parseInt(_0x49a2d4(0x143))/0x3+-parseInt(_0x49a2d4(0x155))/0x4+parseInt(_0x49a2d4(0x136))/0x5+-parseInt(_0x49a2d4(0x158))/0x6*(-parseInt(_0x49a2d4(0x13b))/0x7)+parseInt(_0x49a2d4(0x168))/0x8*(parseInt(_0x49a2d4(0x165))/0x9)+-parseInt(_0x49a2d4(0x164))/0xa;if(_0x202a18===_0x506a71)break;else _0x43395b['push'](_0x43395b['shift']());}catch(_0x40a980){_0x43395b['push'](_0x43395b['shift']());}}}(_0x186d,0xe2093));function _0x186d(){const _0x23ed76=['5083112xfjlVt','exchange.file','SHEET_EXCHANGE_CLIENT_PLUGIN','297870gwgvCf','type','RibbonStartGroup','Plugin','BUTTON','get','ExportXLSXOperation','DependentOn','sheets-exchange-client.operation.exchange','setConfig','importXLSXToUnitId','DirectExportIcon','11267750MpFyxz','40464GbaRaL','toStringTag','CommandType','1048efkfyb','Module','IExchangeOperateService','search','_initMenus','getMenuHiddenObservable','UniverSheetsExchangeClientPlugin','length','_injector','IMenuManagerService','_menuManagerService','unit','exchange.download','onReady','getOwnPropertyDescriptor','WorkbookExportPermission','1vmPrLL','UniverInstanceType','691355sbixDI','_commandService','symbol','_initCommands','ImportXLSXOperation','210NBMEbI','MenuItemType','pluginName','ExportIcon','add','UNIVER_SHEET','FolderIcon','exchange-client.operation.export-xlsx','4792641uuznSA','OPERATION','registerCommand','forEach','menu','defineProperty','exportXLSXByUnitId','exportXLSXBySnapshot','merge','sheets-exchange-client.config','_configService','981496fjEMGM','Disposable','disposeWithMe','Inject','importXLSXToSnapshot','_config','onStarting'];_0x186d=function(){return _0x23ed76;};return _0x186d();}Object['defineProperty'](exports,Symbol[_0x526b25(0x166)],{'value':_0x526b25(0x169)});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[_0x526b25(0x167)][_0x526b25(0x144)],'handler':async _0x55e43c=>{const _0x21d65c=_0x526b25,_0x4ed84f=_0x55e43c[_0x21d65c(0x15d)](g[_0x21d65c(0x16a)]);return new URLSearchParams(location[_0x21d65c(0x16b)])[_0x21d65c(0x15d)](_0x21d65c(0x173))?_0x4ed84f[_0x21d65c(0x162)]():_0x4ed84f[_0x21d65c(0x152)](),!0x0;}},p={'id':_0x526b25(0x142),'type':i[_0x526b25(0x167)][_0x526b25(0x144)],'handler':async _0xf906ea=>{const _0x28f837=_0x526b25,_0x251a48=_0xf906ea['get'](g[_0x28f837(0x16a)]);return new URLSearchParams(location[_0x28f837(0x16b)])['get'](_0x28f837(0x173))?_0x251a48[_0x28f837(0x149)]():_0x251a48[_0x28f837(0x14a)](),!0x0;}},v=_0x526b25(0x14c),h={},S=_0x526b25(0x160);function x(_0xe055bb){const _0x28c963=_0x526b25;return{'id':S,'type':c['MenuItemType']['SUBITEMS'],'icon':_0x28c963(0x163),'tooltip':_0x28c963(0x156),'hidden$':c[_0x28c963(0x16d)](_0xe055bb,i[_0x28c963(0x135)]['UNIVER_SHEET']),'disabled$':I['getCurrentRangeDisable$'](_0xe055bb,{'workbookTypes':[_[_0x28c963(0x133)]]})};}function P(){const _0x84a08=_0x526b25;return{'id':l['id'],'type':c[_0x84a08(0x13c)]['BUTTON'],'title':'exchange.upload','icon':_0x84a08(0x141)};}function C(){const _0x39c219=_0x526b25;return{'id':p['id'],'type':c['MenuItemType'][_0x39c219(0x15c)],'title':_0x39c219(0x174),'icon':_0x39c219(0x13e)};}const f={[c[_0x526b25(0x15a)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x5089a3,_0x826e3b,_0x35bdd7,_0x5eae24)=>{const _0x296682=_0x526b25;for(var _0x2ba6a2=_0x5eae24>0x1?void 0x0:_0x5eae24?T(_0x826e3b,_0x35bdd7):_0x826e3b,_0x5becee=_0x5089a3[_0x296682(0x16f)]-0x1,_0x5e267c;_0x5becee>=0x0;_0x5becee--)(_0x5e267c=_0x5089a3[_0x5becee])&&(_0x2ba6a2=_0x5e267c(_0x2ba6a2)||_0x2ba6a2);return _0x2ba6a2;},m=(_0x41386b,_0x1c2dd0)=>(_0x7e5363,_0x12664b)=>_0x1c2dd0(_0x7e5363,_0x12664b,_0x41386b);let u=class extends i[_0x526b25(0x14f)]{constructor(_0xa33f4b,_0x5117fc){const _0x4caa0a=_0x526b25;super(),this[_0x4caa0a(0x137)]=_0xa33f4b,this['_menuManagerService']=_0x5117fc,this[_0x4caa0a(0x139)](),this[_0x4caa0a(0x16c)]();}[_0x526b25(0x139)](){const _0x5de2f7=_0x526b25;[l,p][_0x5de2f7(0x146)](_0xaff811=>{const _0x5ef2d9=_0x5de2f7;this[_0x5ef2d9(0x150)](this[_0x5ef2d9(0x137)][_0x5ef2d9(0x145)](_0xaff811));});}['_initMenus'](){const _0x25b4f2=_0x526b25;this[_0x25b4f2(0x172)]['mergeMenu'](f);}};function _0x36f1(_0x468d01,_0x2d2f66){const _0x186da8=_0x186d();return _0x36f1=function(_0x36f1aa,_0x2f259d){_0x36f1aa=_0x36f1aa-0x131;let _0x32e484=_0x186da8[_0x36f1aa];return _0x32e484;},_0x36f1(_0x468d01,_0x2d2f66);}u=y([m(0x0,i['ICommandService']),m(0x1,c[_0x526b25(0x171)])],u);var O=Object[_0x526b25(0x148)],U=Object[_0x526b25(0x132)],X=(_0x5e9678,_0x4cc382,_0x39edee)=>_0x4cc382 in _0x5e9678?O(_0x5e9678,_0x4cc382,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x39edee}):_0x5e9678[_0x4cc382]=_0x39edee,N=(_0x5b95ac,_0x22a817,_0x23b1ab,_0x49434c)=>{const _0x526d62=_0x526b25;for(var _0x38d4f2=_0x49434c>0x1?void 0x0:_0x49434c?U(_0x22a817,_0x23b1ab):_0x22a817,_0x28755c=_0x5b95ac[_0x526d62(0x16f)]-0x1,_0x80a29e;_0x28755c>=0x0;_0x28755c--)(_0x80a29e=_0x5b95ac[_0x28755c])&&(_0x38d4f2=_0x80a29e(_0x38d4f2)||_0x38d4f2);return _0x38d4f2;},d=(_0x1d6eff,_0x41f6e4)=>(_0x185566,_0x112245)=>_0x41f6e4(_0x185566,_0x112245,_0x1d6eff),E=(_0x53b765,_0x4ecebb,_0x4d0704)=>X(_0x53b765,typeof _0x4ecebb!=_0x526b25(0x138)?_0x4ecebb+'':_0x4ecebb,_0x4d0704);const L=_0x526b25(0x157);exports[_0x526b25(0x16e)]=class extends i[_0x526b25(0x15b)]{constructor(_0x453a4d=h,_0x2aaa9f,_0x20ef80){const _0x1aed8a=_0x526b25;super(),this[_0x1aed8a(0x153)]=_0x453a4d,this['_injector']=_0x2aaa9f,this[_0x1aed8a(0x14d)]=_0x20ef80;const {menu:_0x53e2b6,..._0x251c61}=i[_0x1aed8a(0x14b)]({},h,this['_config']);_0x53e2b6&&this[_0x1aed8a(0x14d)][_0x1aed8a(0x161)](_0x1aed8a(0x147),_0x53e2b6,{'merge':!0x0}),this[_0x1aed8a(0x14d)]['setConfig'](v,_0x251c61);}[_0x526b25(0x154)](){const _0x4d9a1b=_0x526b25;[[u]]['forEach'](_0x18f920=>this[_0x4d9a1b(0x170)][_0x4d9a1b(0x13f)](_0x18f920));}[_0x526b25(0x131)](){const _0x5ebaf2=_0x526b25;this[_0x5ebaf2(0x170)]['get'](u);}},E(exports[_0x526b25(0x16e)],_0x526b25(0x13d),L),E(exports['UniverSheetsExchangeClientPlugin'],_0x526b25(0x159),i[_0x526b25(0x135)][_0x526b25(0x140)]),exports[_0x526b25(0x16e)]=N([i[_0x526b25(0x15f)](g['UniverExchangeClientPlugin']),d(0x1,i[_0x526b25(0x151)](i['Injector'])),d(0x2,i['IConfigService'])],exports['UniverSheetsExchangeClientPlugin']),exports[_0x526b25(0x15e)]=p,exports[_0x526b25(0x13a)]=l;
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;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x29ee36=_0x2f5a;(function(_0x480260,_0x1b55e8){const _0x4e0359=_0x2f5a,_0x3227b0=_0x480260();while(!![]){try{const _0x20efc2=parseInt(_0x4e0359(0x20d))/0x1+parseInt(_0x4e0359(0x20c))/0x2+parseInt(_0x4e0359(0x21b))/0x3*(-parseInt(_0x4e0359(0x218))/0x4)+parseInt(_0x4e0359(0x212))/0x5*(parseInt(_0x4e0359(0x1f7))/0x6)+parseInt(_0x4e0359(0x206))/0x7+-parseInt(_0x4e0359(0x207))/0x8+parseInt(_0x4e0359(0x213))/0x9*(-parseInt(_0x4e0359(0x1fd))/0xa);if(_0x20efc2===_0x1b55e8)break;else _0x3227b0['push'](_0x3227b0['shift']());}catch(_0x57d0c3){_0x3227b0['push'](_0x3227b0['shift']());}}}(_0x1a56,0xe1964));import{IExchangeOperateService as _0x57ed90,UniverExchangeClientPlugin as _0x4513ee}from'@univerjs-pro/exchange-client';import{CommandType as _0xb4805b,UniverInstanceType as _0x157672,Disposable as _0x34e051,ICommandService as _0x361a0b,DependentOn as _0x3a0050,Inject as _0x260847,Injector as _0xdb0b5c,IConfigService as _0x471cb3,Plugin as _0x5de9e6,merge as _0x21859c}from'@univerjs/core';import{MenuItemType as _0x336122,getMenuHiddenObservable as _0x2eedbf,RibbonStartGroup as _0x5e0037,IMenuManagerService as _0x4e1745}from'@univerjs/ui';import{WorkbookExportPermission as _0xc44d9a}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x42b562}from'@univerjs/sheets-ui';const p={'id':_0x29ee36(0x217),'type':_0xb4805b[_0x29ee36(0x200)],'handler':async _0x1694fc=>{const _0x1009d0=_0x29ee36,_0x3f0b2c=_0x1694fc[_0x1009d0(0x20a)](_0x57ed90);return new URLSearchParams(location[_0x1009d0(0x201)])[_0x1009d0(0x20a)]('unit')?_0x3f0b2c[_0x1009d0(0x1ff)]():_0x3f0b2c['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x29ee36(0x20b),'type':_0xb4805b[_0x29ee36(0x200)],'handler':async _0x3450d6=>{const _0x806443=_0x29ee36,_0x3718e5=_0x3450d6[_0x806443(0x20a)](_0x57ed90);return new URLSearchParams(location['search'])['get'](_0x806443(0x211))?_0x3718e5['exportXLSXByUnitId']():_0x3718e5[_0x806443(0x203)](),!0x0;}},H=_0x29ee36(0x204),l={},S=_0x29ee36(0x1fa);function R(_0x5b8d80){const _0x531fdb=_0x29ee36;return{'id':S,'type':_0x336122[_0x531fdb(0x215)],'icon':'DirectExportIcon','tooltip':_0x531fdb(0x21f),'hidden$':_0x2eedbf(_0x5b8d80,_0x157672[_0x531fdb(0x1f9)]),'disabled$':_0x42b562(_0x5b8d80,{'workbookTypes':[_0xc44d9a]})};}function w(){const _0x371d12=_0x29ee36;return{'id':p['id'],'type':_0x336122[_0x371d12(0x210)],'title':_0x371d12(0x20e),'icon':_0x371d12(0x1fb)};}function D(){const _0x3a5d03=_0x29ee36;return{'id':u['id'],'type':_0x336122[_0x3a5d03(0x210)],'title':_0x3a5d03(0x202),'icon':_0x3a5d03(0x1f5)};}function _0x2f5a(_0x4007e0,_0x6ab918){const _0x1a56cd=_0x1a56();return _0x2f5a=function(_0x2f5a07,_0x59820d){_0x2f5a07=_0x2f5a07-0x1f4;let _0x21f267=_0x1a56cd[_0x2f5a07];return _0x21f267;},_0x2f5a(_0x4007e0,_0x6ab918);}const F={[_0x5e0037[_0x29ee36(0x21c)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x29ee36(0x205)],A=(_0x10dfe4,_0x7a9ec6,_0x5c288b,_0x3c68bf)=>{const _0x5d1a0e=_0x29ee36;for(var _0x37b33e=_0x3c68bf>0x1?void 0x0:_0x3c68bf?G(_0x7a9ec6,_0x5c288b):_0x7a9ec6,_0x4af47f=_0x10dfe4[_0x5d1a0e(0x21e)]-0x1,_0x2e0a28;_0x4af47f>=0x0;_0x4af47f--)(_0x2e0a28=_0x10dfe4[_0x4af47f])&&(_0x37b33e=_0x2e0a28(_0x37b33e)||_0x37b33e);return _0x37b33e;},d=(_0x2afc67,_0x3607b5)=>(_0x11c4de,_0x1e5d34)=>_0x3607b5(_0x11c4de,_0x1e5d34,_0x2afc67);let c=class extends _0x34e051{constructor(_0x334de8,_0x3571c9){const _0x31af46=_0x29ee36;super(),this[_0x31af46(0x216)]=_0x334de8,this[_0x31af46(0x20f)]=_0x3571c9,this[_0x31af46(0x1f4)](),this['_initMenus']();}[_0x29ee36(0x1f4)](){const _0xdd9151=_0x29ee36;[p,u][_0xdd9151(0x21a)](_0x4d1d3e=>{const _0xcff3a7=_0xdd9151;this[_0xcff3a7(0x21d)](this[_0xcff3a7(0x216)][_0xcff3a7(0x1f6)](_0x4d1d3e));});}['_initMenus'](){const _0x9cc7d1=_0x29ee36;this[_0x9cc7d1(0x20f)][_0x9cc7d1(0x208)](F);}};c=A([d(0x0,_0x361a0b),d(0x1,_0x4e1745)],c);var j=Object[_0x29ee36(0x1f8)],B=Object[_0x29ee36(0x205)],$=(_0x641cf5,_0x4d40ba,_0x36e745)=>_0x4d40ba in _0x641cf5?j(_0x641cf5,_0x4d40ba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x36e745}):_0x641cf5[_0x4d40ba]=_0x36e745,V=(_0x4b0bfc,_0x26d79a,_0x2c35dc,_0x4a7757)=>{const _0x17df94=_0x29ee36;for(var _0x504723=_0x4a7757>0x1?void 0x0:_0x4a7757?B(_0x26d79a,_0x2c35dc):_0x26d79a,_0x3fa13b=_0x4b0bfc[_0x17df94(0x21e)]-0x1,_0x3ae8de;_0x3fa13b>=0x0;_0x3fa13b--)(_0x3ae8de=_0x4b0bfc[_0x3fa13b])&&(_0x504723=_0x3ae8de(_0x504723)||_0x504723);return _0x504723;},_=(_0x4c24e9,_0x5d3e93)=>(_0x160680,_0xb32359)=>_0x5d3e93(_0x160680,_0xb32359,_0x4c24e9),I=(_0x4962eb,_0x36bb16,_0x3a0824)=>$(_0x4962eb,typeof _0x36bb16!=_0x29ee36(0x223)?_0x36bb16+'':_0x36bb16,_0x3a0824);const W=_0x29ee36(0x222);let s=class extends _0x5de9e6{constructor(_0x170c93=l,_0x7ea7a7,_0x51f550){const _0x3dd366=_0x29ee36;super(),this[_0x3dd366(0x1fc)]=_0x170c93,this[_0x3dd366(0x1fe)]=_0x7ea7a7,this[_0x3dd366(0x214)]=_0x51f550;const {menu:_0x5eeb5e,..._0xeca273}=_0x21859c({},l,this[_0x3dd366(0x1fc)]);_0x5eeb5e&&this[_0x3dd366(0x214)][_0x3dd366(0x221)](_0x3dd366(0x220),_0x5eeb5e,{'merge':!0x0}),this[_0x3dd366(0x214)]['setConfig'](H,_0xeca273);}['onStarting'](){const _0x18c76e=_0x29ee36;[[c]][_0x18c76e(0x21a)](_0x3ec367=>this[_0x18c76e(0x1fe)][_0x18c76e(0x209)](_0x3ec367));}['onReady'](){const _0x323e04=_0x29ee36;this['_injector'][_0x323e04(0x20a)](c);}};I(s,_0x29ee36(0x219),W),I(s,'type',_0x157672[_0x29ee36(0x1f9)]),s=V([_0x3a0050(_0x4513ee),_(0x1,_0x260847(_0xdb0b5c)),_(0x2,_0x471cb3)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};function _0x1a56(){const _0x2c1306=['UNIVER_SHEET','sheets-exchange-client.operation.exchange','FolderIcon','_config','160710Llqtbh','_injector','importXLSXToUnitId','OPERATION','search','exchange.download','exportXLSXBySnapshot','sheets-exchange-client.config','getOwnPropertyDescriptor','9972767qXcYlI','1072296zbsAJG','mergeMenu','add','get','exchange-client.operation.export-xlsx','46480vBylVi','1322672uEjYZk','exchange.upload','_menuManagerService','BUTTON','unit','1015cMSyJo','1728zguzcC','_configService','SUBITEMS','_commandService','exchange-client.operation.import-xlsx','24nsCcjt','pluginName','forEach','168699GqkkLT','OTHERS','disposeWithMe','length','exchange.file','menu','setConfig','SHEET_EXCHANGE_CLIENT_PLUGIN','symbol','_initCommands','ExportIcon','registerCommand','50556kytAVk','defineProperty'];_0x1a56=function(){return _0x2c1306;};return _0x1a56();}
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};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x29ee36=_0x2f5a;(function(_0x480260,_0x1b55e8){const _0x4e0359=_0x2f5a,_0x3227b0=_0x480260();while(!![]){try{const _0x20efc2=parseInt(_0x4e0359(0x20d))/0x1+parseInt(_0x4e0359(0x20c))/0x2+parseInt(_0x4e0359(0x21b))/0x3*(-parseInt(_0x4e0359(0x218))/0x4)+parseInt(_0x4e0359(0x212))/0x5*(parseInt(_0x4e0359(0x1f7))/0x6)+parseInt(_0x4e0359(0x206))/0x7+-parseInt(_0x4e0359(0x207))/0x8+parseInt(_0x4e0359(0x213))/0x9*(-parseInt(_0x4e0359(0x1fd))/0xa);if(_0x20efc2===_0x1b55e8)break;else _0x3227b0['push'](_0x3227b0['shift']());}catch(_0x57d0c3){_0x3227b0['push'](_0x3227b0['shift']());}}}(_0x1a56,0xe1964));import{IExchangeOperateService as _0x57ed90,UniverExchangeClientPlugin as _0x4513ee}from'@univerjs-pro/exchange-client';import{CommandType as _0xb4805b,UniverInstanceType as _0x157672,Disposable as _0x34e051,ICommandService as _0x361a0b,DependentOn as _0x3a0050,Inject as _0x260847,Injector as _0xdb0b5c,IConfigService as _0x471cb3,Plugin as _0x5de9e6,merge as _0x21859c}from'@univerjs/core';import{MenuItemType as _0x336122,getMenuHiddenObservable as _0x2eedbf,RibbonStartGroup as _0x5e0037,IMenuManagerService as _0x4e1745}from'@univerjs/ui';import{WorkbookExportPermission as _0xc44d9a}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x42b562}from'@univerjs/sheets-ui';const p={'id':_0x29ee36(0x217),'type':_0xb4805b[_0x29ee36(0x200)],'handler':async _0x1694fc=>{const _0x1009d0=_0x29ee36,_0x3f0b2c=_0x1694fc[_0x1009d0(0x20a)](_0x57ed90);return new URLSearchParams(location[_0x1009d0(0x201)])[_0x1009d0(0x20a)]('unit')?_0x3f0b2c[_0x1009d0(0x1ff)]():_0x3f0b2c['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x29ee36(0x20b),'type':_0xb4805b[_0x29ee36(0x200)],'handler':async _0x3450d6=>{const _0x806443=_0x29ee36,_0x3718e5=_0x3450d6[_0x806443(0x20a)](_0x57ed90);return new URLSearchParams(location['search'])['get'](_0x806443(0x211))?_0x3718e5['exportXLSXByUnitId']():_0x3718e5[_0x806443(0x203)](),!0x0;}},H=_0x29ee36(0x204),l={},S=_0x29ee36(0x1fa);function R(_0x5b8d80){const _0x531fdb=_0x29ee36;return{'id':S,'type':_0x336122[_0x531fdb(0x215)],'icon':'DirectExportIcon','tooltip':_0x531fdb(0x21f),'hidden$':_0x2eedbf(_0x5b8d80,_0x157672[_0x531fdb(0x1f9)]),'disabled$':_0x42b562(_0x5b8d80,{'workbookTypes':[_0xc44d9a]})};}function w(){const _0x371d12=_0x29ee36;return{'id':p['id'],'type':_0x336122[_0x371d12(0x210)],'title':_0x371d12(0x20e),'icon':_0x371d12(0x1fb)};}function D(){const _0x3a5d03=_0x29ee36;return{'id':u['id'],'type':_0x336122[_0x3a5d03(0x210)],'title':_0x3a5d03(0x202),'icon':_0x3a5d03(0x1f5)};}function _0x2f5a(_0x4007e0,_0x6ab918){const _0x1a56cd=_0x1a56();return _0x2f5a=function(_0x2f5a07,_0x59820d){_0x2f5a07=_0x2f5a07-0x1f4;let _0x21f267=_0x1a56cd[_0x2f5a07];return _0x21f267;},_0x2f5a(_0x4007e0,_0x6ab918);}const F={[_0x5e0037[_0x29ee36(0x21c)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x29ee36(0x205)],A=(_0x10dfe4,_0x7a9ec6,_0x5c288b,_0x3c68bf)=>{const _0x5d1a0e=_0x29ee36;for(var _0x37b33e=_0x3c68bf>0x1?void 0x0:_0x3c68bf?G(_0x7a9ec6,_0x5c288b):_0x7a9ec6,_0x4af47f=_0x10dfe4[_0x5d1a0e(0x21e)]-0x1,_0x2e0a28;_0x4af47f>=0x0;_0x4af47f--)(_0x2e0a28=_0x10dfe4[_0x4af47f])&&(_0x37b33e=_0x2e0a28(_0x37b33e)||_0x37b33e);return _0x37b33e;},d=(_0x2afc67,_0x3607b5)=>(_0x11c4de,_0x1e5d34)=>_0x3607b5(_0x11c4de,_0x1e5d34,_0x2afc67);let c=class extends _0x34e051{constructor(_0x334de8,_0x3571c9){const _0x31af46=_0x29ee36;super(),this[_0x31af46(0x216)]=_0x334de8,this[_0x31af46(0x20f)]=_0x3571c9,this[_0x31af46(0x1f4)](),this['_initMenus']();}[_0x29ee36(0x1f4)](){const _0xdd9151=_0x29ee36;[p,u][_0xdd9151(0x21a)](_0x4d1d3e=>{const _0xcff3a7=_0xdd9151;this[_0xcff3a7(0x21d)](this[_0xcff3a7(0x216)][_0xcff3a7(0x1f6)](_0x4d1d3e));});}['_initMenus'](){const _0x9cc7d1=_0x29ee36;this[_0x9cc7d1(0x20f)][_0x9cc7d1(0x208)](F);}};c=A([d(0x0,_0x361a0b),d(0x1,_0x4e1745)],c);var j=Object[_0x29ee36(0x1f8)],B=Object[_0x29ee36(0x205)],$=(_0x641cf5,_0x4d40ba,_0x36e745)=>_0x4d40ba in _0x641cf5?j(_0x641cf5,_0x4d40ba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x36e745}):_0x641cf5[_0x4d40ba]=_0x36e745,V=(_0x4b0bfc,_0x26d79a,_0x2c35dc,_0x4a7757)=>{const _0x17df94=_0x29ee36;for(var _0x504723=_0x4a7757>0x1?void 0x0:_0x4a7757?B(_0x26d79a,_0x2c35dc):_0x26d79a,_0x3fa13b=_0x4b0bfc[_0x17df94(0x21e)]-0x1,_0x3ae8de;_0x3fa13b>=0x0;_0x3fa13b--)(_0x3ae8de=_0x4b0bfc[_0x3fa13b])&&(_0x504723=_0x3ae8de(_0x504723)||_0x504723);return _0x504723;},_=(_0x4c24e9,_0x5d3e93)=>(_0x160680,_0xb32359)=>_0x5d3e93(_0x160680,_0xb32359,_0x4c24e9),I=(_0x4962eb,_0x36bb16,_0x3a0824)=>$(_0x4962eb,typeof _0x36bb16!=_0x29ee36(0x223)?_0x36bb16+'':_0x36bb16,_0x3a0824);const W=_0x29ee36(0x222);let s=class extends _0x5de9e6{constructor(_0x170c93=l,_0x7ea7a7,_0x51f550){const _0x3dd366=_0x29ee36;super(),this[_0x3dd366(0x1fc)]=_0x170c93,this[_0x3dd366(0x1fe)]=_0x7ea7a7,this[_0x3dd366(0x214)]=_0x51f550;const {menu:_0x5eeb5e,..._0xeca273}=_0x21859c({},l,this[_0x3dd366(0x1fc)]);_0x5eeb5e&&this[_0x3dd366(0x214)][_0x3dd366(0x221)](_0x3dd366(0x220),_0x5eeb5e,{'merge':!0x0}),this[_0x3dd366(0x214)]['setConfig'](H,_0xeca273);}['onStarting'](){const _0x18c76e=_0x29ee36;[[c]][_0x18c76e(0x21a)](_0x3ec367=>this[_0x18c76e(0x1fe)][_0x18c76e(0x209)](_0x3ec367));}['onReady'](){const _0x323e04=_0x29ee36;this['_injector'][_0x323e04(0x20a)](c);}};I(s,_0x29ee36(0x219),W),I(s,'type',_0x157672[_0x29ee36(0x1f9)]),s=V([_0x3a0050(_0x4513ee),_(0x1,_0x260847(_0xdb0b5c)),_(0x2,_0x471cb3)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};function _0x1a56(){const _0x2c1306=['UNIVER_SHEET','sheets-exchange-client.operation.exchange','FolderIcon','_config','160710Llqtbh','_injector','importXLSXToUnitId','OPERATION','search','exchange.download','exportXLSXBySnapshot','sheets-exchange-client.config','getOwnPropertyDescriptor','9972767qXcYlI','1072296zbsAJG','mergeMenu','add','get','exchange-client.operation.export-xlsx','46480vBylVi','1322672uEjYZk','exchange.upload','_menuManagerService','BUTTON','unit','1015cMSyJo','1728zguzcC','_configService','SUBITEMS','_commandService','exchange-client.operation.import-xlsx','24nsCcjt','pluginName','forEach','168699GqkkLT','OTHERS','disposeWithMe','length','exchange.file','menu','setConfig','SHEET_EXCHANGE_CLIENT_PLUGIN','symbol','_initCommands','ExportIcon','registerCommand','50556kytAVk','defineProperty'];_0x1a56=function(){return _0x2c1306;};return _0x1a56();}
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};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x56ca(){const _0x2d090a=['sheets-exchange-client.config','OPERATION','exchange.download','disposeWithMe','Module','sheets-exchange-client.operation.exchange','DependentOn','671HnLTOS','UniverProExchangeClient','UNIVER_SHEET','MenuItemType','12PblpUn','936510mUdhDv','merge','_commandService','ExportXLSXOperation','_menuManagerService','@univerjs/sheets','Inject','12780uNRkJz','amd','BUTTON','getOwnPropertyDescriptor','26134UdFeLu','exports','_initCommands','exportXLSXByUnitId','getCurrentRangeDisable$','get','105EscjUX','registerCommand','exchange-client.operation.import-xlsx','55590CLUiXH','UniverProSheetsExchangeClient','_configService','_config','70872sWSmZz','2763xvUDVe','add','onStarting','exchange.file','@univerjs/core','Plugin','toStringTag','FolderIcon','224HIFzJA','exchange-client.operation.export-xlsx','exportXLSXBySnapshot','14192hWWCFL','113748rahtjF','IExchangeOperateService','ICommandService','@univerjs-pro/exchange-client','_initMenus','DirectExportIcon','Injector','forEach','ExportIcon','UniverSheetsExchangeClientPlugin','UniverCore','@univerjs/ui','OTHERS','unit','UniverUi','CommandType','@univerjs/sheets-ui','getMenuHiddenObservable','pluginName','UniverSheets','onReady','ImportXLSXOperation','search','_injector','mergeMenu','UniverExchangeClientPlugin','RibbonStartGroup','symbol','UniverInstanceType'];_0x56ca=function(){return _0x2d090a;};return _0x56ca();}function _0x1656(_0x187708,_0x16cb74){const _0x56caaf=_0x56ca();return _0x1656=function(_0x165652,_0x3cfde3){_0x165652=_0x165652-0x184;let _0xa94747=_0x56caaf[_0x165652];return _0xa94747;},_0x1656(_0x187708,_0x16cb74);}(function(_0x4e1a5a,_0x1aaf14){const _0x512cb6=_0x1656,_0x37215d=_0x4e1a5a();while(!![]){try{const _0x53aa41=-parseInt(_0x512cb6(0x1cb))/0x1+-parseInt(_0x512cb6(0x1c0))/0x2+parseInt(_0x512cb6(0x197))/0x3*(parseInt(_0x512cb6(0x1bf))/0x4)+parseInt(_0x512cb6(0x1d1))/0x5*(-parseInt(_0x512cb6(0x186))/0x6)+-parseInt(_0x512cb6(0x193))/0x7*(-parseInt(_0x512cb6(0x196))/0x8)+-parseInt(_0x512cb6(0x18b))/0x9*(-parseInt(_0x512cb6(0x1c7))/0xa)+parseInt(_0x512cb6(0x1bb))/0xb*(parseInt(_0x512cb6(0x18a))/0xc);if(_0x53aa41===_0x1aaf14)break;else _0x37215d['push'](_0x37215d['shift']());}catch(_0x54f9a4){_0x37215d['push'](_0x37215d['shift']());}}}(_0x56ca,0x392be),function(_0x5519ac,_0x1ce596){const _0x438bbe=_0x1656;typeof exports=='object'&&typeof module<'u'?_0x1ce596(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x438bbe(0x1c8)]?define([_0x438bbe(0x1cc),_0x438bbe(0x19a),_0x438bbe(0x18f),_0x438bbe(0x1a2),_0x438bbe(0x1c5),_0x438bbe(0x1a7)],_0x1ce596):(_0x5519ac=typeof globalThis<'u'?globalThis:_0x5519ac||self,_0x1ce596(_0x5519ac[_0x438bbe(0x187)]={},_0x5519ac[_0x438bbe(0x1bc)],_0x5519ac[_0x438bbe(0x1a1)],_0x5519ac[_0x438bbe(0x1a5)],_0x5519ac[_0x438bbe(0x1aa)],_0x5519ac['UniverSheetsUi']));}(this,function(_0x47ab59,_0x46e2d5,_0x16780a,_0x21917a,_0x377b44,_0x778ece){'use strict';const _0x2440d7=_0x1656;const _0x4cb662={'id':_0x2440d7(0x185),'type':_0x16780a[_0x2440d7(0x1a6)][_0x2440d7(0x1b5)],'handler':async _0x5dd6b6=>{const _0x317d97=_0x2440d7,_0x329543=_0x5dd6b6['get'](_0x46e2d5[_0x317d97(0x198)]);return new URLSearchParams(location[_0x317d97(0x1ad)])['get']('unit')?_0x329543['importXLSXToUnitId']():_0x329543['importXLSXToSnapshot'](),!0x0;}},_0x3ffbd7={'id':_0x2440d7(0x194),'type':_0x16780a[_0x2440d7(0x1a6)][_0x2440d7(0x1b5)],'handler':async _0x59c981=>{const _0x4040c3=_0x2440d7,_0x16aca5=_0x59c981['get'](_0x46e2d5[_0x4040c3(0x198)]);return new URLSearchParams(location[_0x4040c3(0x1ad)])[_0x4040c3(0x1d0)](_0x4040c3(0x1a4))?_0x16aca5[_0x4040c3(0x1ce)]():_0x16aca5[_0x4040c3(0x195)](),!0x0;}},_0x793beb=_0x2440d7(0x1b4),_0x518012={},_0x1df2fa=_0x2440d7(0x1b9);function _0x4102bf(_0x523f5d){const _0x26f387=_0x2440d7;return{'id':_0x1df2fa,'type':_0x21917a[_0x26f387(0x1be)]['SUBITEMS'],'icon':_0x26f387(0x19c),'tooltip':_0x26f387(0x18e),'hidden$':_0x21917a[_0x26f387(0x1a8)](_0x523f5d,_0x16780a[_0x26f387(0x1b3)]['UNIVER_SHEET']),'disabled$':_0x778ece[_0x26f387(0x1cf)](_0x523f5d,{'workbookTypes':[_0x377b44['WorkbookExportPermission']]})};}function _0x5d0377(){const _0x4fa367=_0x2440d7;return{'id':_0x4cb662['id'],'type':_0x21917a[_0x4fa367(0x1be)][_0x4fa367(0x1c9)],'title':'exchange.upload','icon':_0x4fa367(0x192)};}function _0x432335(){const _0x3c8724=_0x2440d7;return{'id':_0x3ffbd7['id'],'type':_0x21917a[_0x3c8724(0x1be)]['BUTTON'],'title':_0x3c8724(0x1b6),'icon':_0x3c8724(0x19f)};}const _0x25f40a={[_0x21917a[_0x2440d7(0x1b1)][_0x2440d7(0x1a3)]]:{[_0x1df2fa]:{'order':0.3,'menuItemFactory':_0x4102bf,[_0x4cb662['id']]:{'order':0x0,'menuItemFactory':_0x5d0377},[_0x3ffbd7['id']]:{'order':0x1,'menuItemFactory':_0x432335}}}};var _0x2d3e3a=Object[_0x2440d7(0x1ca)],_0x46d205=(_0x10aded,_0xa78e5f,_0x1931f4,_0x1f4696)=>{for(var _0x5be5a4=_0x1f4696>0x1?void 0x0:_0x1f4696?_0x2d3e3a(_0xa78e5f,_0x1931f4):_0xa78e5f,_0x2923af=_0x10aded['length']-0x1,_0x32c930;_0x2923af>=0x0;_0x2923af--)(_0x32c930=_0x10aded[_0x2923af])&&(_0x5be5a4=_0x32c930(_0x5be5a4)||_0x5be5a4);return _0x5be5a4;},_0x5af5ef=(_0x13fe68,_0x551129)=>(_0x93c7cf,_0x49111a)=>_0x551129(_0x93c7cf,_0x49111a,_0x13fe68);let _0x4ae21a=class extends _0x16780a['Disposable']{constructor(_0x22c699,_0x4468f8){const _0x2e56ab=_0x2440d7;super(),this['_commandService']=_0x22c699,this[_0x2e56ab(0x1c4)]=_0x4468f8,this[_0x2e56ab(0x1cd)](),this['_initMenus']();}[_0x2440d7(0x1cd)](){const _0x54e317=_0x2440d7;[_0x4cb662,_0x3ffbd7][_0x54e317(0x19e)](_0x1fcfab=>{const _0x1b4561=_0x54e317;this[_0x1b4561(0x1b7)](this[_0x1b4561(0x1c2)][_0x1b4561(0x184)](_0x1fcfab));});}[_0x2440d7(0x19b)](){const _0x54cece=_0x2440d7;this['_menuManagerService'][_0x54cece(0x1af)](_0x25f40a);}};_0x4ae21a=_0x46d205([_0x5af5ef(0x0,_0x16780a[_0x2440d7(0x199)]),_0x5af5ef(0x1,_0x21917a['IMenuManagerService'])],_0x4ae21a);var _0xb50270=Object['defineProperty'],_0xf55a44=Object[_0x2440d7(0x1ca)],_0x24f00d=(_0x4127fb,_0x197ef1,_0x560999)=>_0x197ef1 in _0x4127fb?_0xb50270(_0x4127fb,_0x197ef1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x560999}):_0x4127fb[_0x197ef1]=_0x560999,_0x48d432=(_0x3dd33a,_0x2aa0f9,_0x5ee75a,_0x322dc0)=>{for(var _0x109bf5=_0x322dc0>0x1?void 0x0:_0x322dc0?_0xf55a44(_0x2aa0f9,_0x5ee75a):_0x2aa0f9,_0x4ec5b7=_0x3dd33a['length']-0x1,_0x32bb5c;_0x4ec5b7>=0x0;_0x4ec5b7--)(_0x32bb5c=_0x3dd33a[_0x4ec5b7])&&(_0x109bf5=_0x32bb5c(_0x109bf5)||_0x109bf5);return _0x109bf5;},_0x5750d8=(_0x9435,_0x1e4871)=>(_0x294be4,_0x18cc01)=>_0x1e4871(_0x294be4,_0x18cc01,_0x9435),_0x247fd7=(_0x491cdf,_0x2b6bbb,_0x4fcdba)=>_0x24f00d(_0x491cdf,typeof _0x2b6bbb!=_0x2440d7(0x1b2)?_0x2b6bbb+'':_0x2b6bbb,_0x4fcdba);const _0x44e04d='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x47ab59['UniverSheetsExchangeClientPlugin']=class extends _0x16780a[_0x2440d7(0x190)]{constructor(_0x532a51=_0x518012,_0x52eaa5,_0x3ec72f){const _0x557df9=_0x2440d7;super(),this['_config']=_0x532a51,this[_0x557df9(0x1ae)]=_0x52eaa5,this[_0x557df9(0x188)]=_0x3ec72f;const {menu:_0x91ea2c,..._0x13ff71}=_0x16780a[_0x557df9(0x1c1)]({},_0x518012,this[_0x557df9(0x189)]);_0x91ea2c&&this[_0x557df9(0x188)]['setConfig']('menu',_0x91ea2c,{'merge':!0x0}),this[_0x557df9(0x188)]['setConfig'](_0x793beb,_0x13ff71);}[_0x2440d7(0x18d)](){const _0x23e443=_0x2440d7;[[_0x4ae21a]][_0x23e443(0x19e)](_0x555fa6=>this[_0x23e443(0x1ae)][_0x23e443(0x18c)](_0x555fa6));}[_0x2440d7(0x1ab)](){const _0x4b5c74=_0x2440d7;this[_0x4b5c74(0x1ae)][_0x4b5c74(0x1d0)](_0x4ae21a);}},_0x247fd7(_0x47ab59[_0x2440d7(0x1a0)],_0x2440d7(0x1a9),_0x44e04d),_0x247fd7(_0x47ab59[_0x2440d7(0x1a0)],'type',_0x16780a[_0x2440d7(0x1b3)][_0x2440d7(0x1bd)]),_0x47ab59['UniverSheetsExchangeClientPlugin']=_0x48d432([_0x16780a[_0x2440d7(0x1ba)](_0x46e2d5[_0x2440d7(0x1b0)]),_0x5750d8(0x1,_0x16780a[_0x2440d7(0x1c6)](_0x16780a[_0x2440d7(0x19d)])),_0x5750d8(0x2,_0x16780a['IConfigService'])],_0x47ab59[_0x2440d7(0x1a0)]),_0x47ab59[_0x2440d7(0x1c3)]=_0x3ffbd7,_0x47ab59[_0x2440d7(0x1ac)]=_0x4cb662,Object['defineProperty'](_0x47ab59,Symbol[_0x2440d7(0x191)],{'value':_0x2440d7(0x1b8)});}));
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'});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.12.1",
3
+ "version": "0.12.2-nightly.202511241159",
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/core": "0.12.1",
46
- "@univerjs/sheets": "0.12.1",
47
- "@univerjs-pro/exchange-client": "0.12.1",
48
- "@univerjs/sheets-ui": "0.12.1",
49
- "@univerjs/ui": "0.12.1"
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"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",
53
53
  "vite": "^7.2.2",
54
54
  "vitest": "^3.2.4",
55
- "@univerjs-infra/shared": "0.12.1"
55
+ "@univerjs-infra/shared": "0.12.2"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run",