@univerjs-pro/sheets-exchange-client 0.15.0-insiders.20260108-47c73e3 → 0.15.0-insiders.20260110-48b77c8

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 _0x237f18=_0x5d64;(function(_0x42e992,_0x1de241){const _0x4e13d4=_0x5d64,_0x322235=_0x42e992();while(!![]){try{const _0x50fe27=-parseInt(_0x4e13d4(0x13b))/0x1+-parseInt(_0x4e13d4(0x15b))/0x2*(-parseInt(_0x4e13d4(0x150))/0x3)+-parseInt(_0x4e13d4(0x16b))/0x4*(-parseInt(_0x4e13d4(0x142))/0x5)+-parseInt(_0x4e13d4(0x169))/0x6*(-parseInt(_0x4e13d4(0x154))/0x7)+-parseInt(_0x4e13d4(0x136))/0x8+-parseInt(_0x4e13d4(0x17a))/0x9*(-parseInt(_0x4e13d4(0x17b))/0xa)+-parseInt(_0x4e13d4(0x158))/0xb*(-parseInt(_0x4e13d4(0x16c))/0xc);if(_0x50fe27===_0x1de241)break;else _0x322235['push'](_0x322235['shift']());}catch(_0x10a370){_0x322235['push'](_0x322235['shift']());}}}(_0x1948,0xd15d7));function _0x1948(){const _0x206e48=['Disposable','120EuNucV','importXLSXToSnapshot','6392524kkCpEX','140124JbPdEz','OPERATION','RibbonStartGroup','pluginName','IConfigService','DependentOn','sheets-exchange-client.config','UniverSheetsExchangeClientPlugin','defineProperty','DirectExportIcon','get','_injector','Inject','Module','7011KuDDLT','3670HHAOKp','_configService','11282760JBzfdb','search','ExportIcon','BUTTON','ICommandService','1401473kSAPmO','IMenuManagerService','MenuItemType','getOwnPropertyDescriptor','WorkbookExportPermission','_config','OTHERS','5uJSuzu','disposeWithMe','mergeMenu','unit','exportXLSXBySnapshot','add','Injector','_initCommands','IExchangeOperateService','exchange.download','registerCommand','onReady','UniverInstanceType','getCurrentRangeDisable$','24XeooGx','ImportXLSXOperation','exchange-client.operation.import-xlsx','exchange-client.operation.export-xlsx','430269ptYsZa','exchange.upload','getMenuHiddenObservable','UNIVER_SHEET','99fJqFYv','toStringTag','FolderIcon','112730gVWIgx','_initMenus','SHEET_EXCHANGE_CLIENT_PLUGIN','exchange.file','_commandService','_menuManagerService','CommandType','forEach','Plugin','setConfig','type','sheets-exchange-client.operation.exchange','length'];_0x1948=function(){return _0x206e48;};return _0x1948();}Object['defineProperty'](exports,Symbol[_0x237f18(0x159)],{'value':_0x237f18(0x179)});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':_0x237f18(0x152),'type':i[_0x237f18(0x161)][_0x237f18(0x16d)],'handler':async _0x221945=>{const _0x288c45=_0x237f18,_0x5c9141=_0x221945['get'](g[_0x288c45(0x14a)]);return new URLSearchParams(location['search'])[_0x288c45(0x176)](_0x288c45(0x145))?_0x5c9141['importXLSXToUnitId']():_0x5c9141[_0x288c45(0x16a)](),!0x0;}},p={'id':_0x237f18(0x153),'type':i[_0x237f18(0x161)][_0x237f18(0x16d)],'handler':async _0x5e4962=>{const _0xa29440=_0x237f18,_0x577ef7=_0x5e4962['get'](g[_0xa29440(0x14a)]);return new URLSearchParams(location[_0xa29440(0x137)])[_0xa29440(0x176)](_0xa29440(0x145))?_0x577ef7['exportXLSXByUnitId']():_0x577ef7[_0xa29440(0x146)](),!0x0;}},v=_0x237f18(0x172),h={},S=_0x237f18(0x166);function x(_0x1cea62){const _0x44038f=_0x237f18;return{'id':S,'type':c[_0x44038f(0x13d)]['SUBITEMS'],'icon':_0x44038f(0x175),'tooltip':_0x44038f(0x15e),'hidden$':c[_0x44038f(0x156)](_0x1cea62,i[_0x44038f(0x14e)]['UNIVER_SHEET']),'disabled$':I[_0x44038f(0x14f)](_0x1cea62,{'workbookTypes':[_[_0x44038f(0x13f)]]})};}function _0x5d64(_0x3bd539,_0xea92f4){_0x3bd539=_0x3bd539-0x136;const _0x1948fd=_0x1948();let _0x5d6428=_0x1948fd[_0x3bd539];return _0x5d6428;}function P(){const _0x2783f2=_0x237f18;return{'id':l['id'],'type':c[_0x2783f2(0x13d)][_0x2783f2(0x139)],'title':_0x2783f2(0x155),'icon':_0x2783f2(0x15a)};}function C(){const _0x1bac1f=_0x237f18;return{'id':p['id'],'type':c['MenuItemType'][_0x1bac1f(0x139)],'title':_0x1bac1f(0x14b),'icon':_0x1bac1f(0x138)};}const f={[c[_0x237f18(0x16e)][_0x237f18(0x141)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x4563e5,_0x496197,_0x36ad30,_0x50bdfb)=>{const _0x58b742=_0x237f18;for(var _0x260a36=_0x50bdfb>0x1?void 0x0:_0x50bdfb?T(_0x496197,_0x36ad30):_0x496197,_0x4b66aa=_0x4563e5[_0x58b742(0x167)]-0x1,_0x272f6f;_0x4b66aa>=0x0;_0x4b66aa--)(_0x272f6f=_0x4563e5[_0x4b66aa])&&(_0x260a36=_0x272f6f(_0x260a36)||_0x260a36);return _0x260a36;},m=(_0xc7ba1e,_0x292be2)=>(_0x271a19,_0x37c1ed)=>_0x292be2(_0x271a19,_0x37c1ed,_0xc7ba1e);let u=class extends i[_0x237f18(0x168)]{constructor(_0x44fa3a,_0x33e450){const _0x2c384d=_0x237f18;super(),this[_0x2c384d(0x15f)]=_0x44fa3a,this[_0x2c384d(0x160)]=_0x33e450,this[_0x2c384d(0x149)](),this[_0x2c384d(0x15c)]();}['_initCommands'](){const _0x4cf262=_0x237f18;[l,p][_0x4cf262(0x162)](_0x60007=>{const _0x45bd18=_0x4cf262;this[_0x45bd18(0x143)](this['_commandService'][_0x45bd18(0x14c)](_0x60007));});}[_0x237f18(0x15c)](){const _0x110e75=_0x237f18;this[_0x110e75(0x160)][_0x110e75(0x144)](f);}};u=y([m(0x0,i[_0x237f18(0x13a)]),m(0x1,c[_0x237f18(0x13c)])],u);var O=Object[_0x237f18(0x174)],U=Object[_0x237f18(0x13e)],X=(_0x41d5b2,_0x55e9be,_0x2a15ac)=>_0x55e9be in _0x41d5b2?O(_0x41d5b2,_0x55e9be,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a15ac}):_0x41d5b2[_0x55e9be]=_0x2a15ac,N=(_0x3878ea,_0x3c41a8,_0x3783e6,_0xfc1abe)=>{const _0x5bd762=_0x237f18;for(var _0x2b234a=_0xfc1abe>0x1?void 0x0:_0xfc1abe?U(_0x3c41a8,_0x3783e6):_0x3c41a8,_0x13d253=_0x3878ea[_0x5bd762(0x167)]-0x1,_0x5908c1;_0x13d253>=0x0;_0x13d253--)(_0x5908c1=_0x3878ea[_0x13d253])&&(_0x2b234a=_0x5908c1(_0x2b234a)||_0x2b234a);return _0x2b234a;},d=(_0x21a601,_0x1fdea6)=>(_0x4e78c3,_0x548541)=>_0x1fdea6(_0x4e78c3,_0x548541,_0x21a601),E=(_0x5d6032,_0x1c650c,_0x362eeb)=>X(_0x5d6032,typeof _0x1c650c!='symbol'?_0x1c650c+'':_0x1c650c,_0x362eeb);const L=_0x237f18(0x15d);exports[_0x237f18(0x173)]=class extends i[_0x237f18(0x163)]{constructor(_0x112c26=h,_0x9cacb8,_0xc98f0e){const _0x18efd0=_0x237f18;super(),this[_0x18efd0(0x140)]=_0x112c26,this[_0x18efd0(0x177)]=_0x9cacb8,this[_0x18efd0(0x17c)]=_0xc98f0e;const {menu:_0x360c81,..._0x1687cc}=i['merge']({},h,this[_0x18efd0(0x140)]);_0x360c81&&this[_0x18efd0(0x17c)][_0x18efd0(0x164)]('menu',_0x360c81,{'merge':!0x0}),this[_0x18efd0(0x17c)][_0x18efd0(0x164)](v,_0x1687cc);}['onStarting'](){const _0x5eec3a=_0x237f18;[[u]][_0x5eec3a(0x162)](_0x16249f=>this[_0x5eec3a(0x177)][_0x5eec3a(0x147)](_0x16249f));}[_0x237f18(0x14d)](){const _0x47c826=_0x237f18;this['_injector'][_0x47c826(0x176)](u);}},E(exports[_0x237f18(0x173)],_0x237f18(0x16f),L),E(exports['UniverSheetsExchangeClientPlugin'],_0x237f18(0x165),i['UniverInstanceType'][_0x237f18(0x157)]),exports[_0x237f18(0x173)]=N([i[_0x237f18(0x171)](g['UniverExchangeClientPlugin']),d(0x1,i[_0x237f18(0x178)](i[_0x237f18(0x148)])),d(0x2,i[_0x237f18(0x170)])],exports[_0x237f18(0x173)]),exports['ExportXLSXOperation']=p,exports[_0x237f18(0x151)]=l;
1
+ 'use strict';const _0x398628=_0x14f3;(function(_0x341eff,_0x27384f){const _0x5c4398=_0x14f3,_0x2b3252=_0x341eff();while(!![]){try{const _0x30a484=-parseInt(_0x5c4398(0x1a9))/0x1*(parseInt(_0x5c4398(0x1dc))/0x2)+-parseInt(_0x5c4398(0x1a1))/0x3+parseInt(_0x5c4398(0x1b1))/0x4*(-parseInt(_0x5c4398(0x1cf))/0x5)+-parseInt(_0x5c4398(0x1b9))/0x6+parseInt(_0x5c4398(0x1a5))/0x7+-parseInt(_0x5c4398(0x1c5))/0x8*(parseInt(_0x5c4398(0x1be))/0x9)+parseInt(_0x5c4398(0x1d2))/0xa*(parseInt(_0x5c4398(0x1dd))/0xb);if(_0x30a484===_0x27384f)break;else _0x2b3252['push'](_0x2b3252['shift']());}catch(_0x16b7cd){_0x2b3252['push'](_0x2b3252['shift']());}}}(_0x12fa,0x35f56));function _0x12fa(){const _0x27ccea=['sheets-exchange-client.config','sheets-exchange-client.operation.exchange','unit','UniverInstanceType','defineProperty','_menuManagerService','mergeMenu','2467110BjpIkx','toStringTag','CommandType','onStarting','Plugin','782343AtWljF','get','disposeWithMe','UNIVER_SHEET','menu','exportXLSXByUnitId','forEach','24eCCroB','Injector','Inject','_initCommands','_config','importXLSXToSnapshot','getCurrentRangeDisable$','exchange.file','registerCommand','length','14095BGhOaX','ExportIcon','DependentOn','2000bSagns','_configService','symbol','exchange.upload','pluginName','exchange.download','getOwnPropertyDescriptor','OPERATION','IExchangeOperateService','merge','2OLDmTi','94116DsavfX','UniverSheetsExchangeClientPlugin','RibbonStartGroup','459258LxeEba','OTHERS','FolderIcon','importXLSXToUnitId','356321pmZTUr','IConfigService','add','BUTTON','355205lPGKqg','search','Disposable','MenuItemType','_injector','UniverExchangeClientPlugin','DirectExportIcon','_commandService','512noHpEc'];_0x12fa=function(){return _0x27ccea;};return _0x12fa();}Object['defineProperty'](exports,Symbol[_0x398628(0x1ba)],{'value':'Module'});const g=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),c=require('@univerjs/ui'),_=require('@univerjs/sheets'),I=require('@univerjs/sheets-ui'),l={'id':'exchange-client.operation.import-xlsx','type':i[_0x398628(0x1bb)][_0x398628(0x1d9)],'handler':async _0x419698=>{const _0x1d2f7d=_0x398628,_0x1c56ac=_0x419698['get'](g[_0x1d2f7d(0x1da)]);return new URLSearchParams(location[_0x1d2f7d(0x1aa)])[_0x1d2f7d(0x1bf)]('unit')?_0x1c56ac[_0x1d2f7d(0x1a4)]():_0x1c56ac[_0x1d2f7d(0x1ca)](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i['CommandType'][_0x398628(0x1d9)],'handler':async _0x5d5790=>{const _0x5bac45=_0x398628,_0x1ab7fe=_0x5d5790[_0x5bac45(0x1bf)](g[_0x5bac45(0x1da)]);return new URLSearchParams(location['search'])[_0x5bac45(0x1bf)](_0x5bac45(0x1b4))?_0x1ab7fe[_0x5bac45(0x1c3)]():_0x1ab7fe['exportXLSXBySnapshot'](),!0x0;}},v=_0x398628(0x1b2),h={},S=_0x398628(0x1b3);function x(_0x391c3e){const _0x46768d=_0x398628;return{'id':S,'type':c[_0x46768d(0x1ac)]['SUBITEMS'],'icon':_0x46768d(0x1af),'tooltip':_0x46768d(0x1cc),'hidden$':c['getMenuHiddenObservable'](_0x391c3e,i[_0x46768d(0x1b5)][_0x46768d(0x1c1)]),'disabled$':I[_0x46768d(0x1cb)](_0x391c3e,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x573d80=_0x398628;return{'id':l['id'],'type':c[_0x573d80(0x1ac)]['BUTTON'],'title':_0x573d80(0x1d5),'icon':_0x573d80(0x1a3)};}function C(){const _0x3b64dd=_0x398628;return{'id':p['id'],'type':c[_0x3b64dd(0x1ac)][_0x3b64dd(0x1a8)],'title':_0x3b64dd(0x1d7),'icon':_0x3b64dd(0x1d0)};}const f={[c[_0x398628(0x1a0)][_0x398628(0x1a2)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};function _0x14f3(_0x50de52,_0x1efb67){_0x50de52=_0x50de52-0x1a0;const _0x12fa2e=_0x12fa();let _0x14f3c6=_0x12fa2e[_0x50de52];return _0x14f3c6;}var T=Object[_0x398628(0x1d8)],y=(_0x6a2889,_0x196efb,_0x46b0c4,_0x3fae34)=>{const _0x552fe1=_0x398628;for(var _0x674999=_0x3fae34>0x1?void 0x0:_0x3fae34?T(_0x196efb,_0x46b0c4):_0x196efb,_0x407fd8=_0x6a2889[_0x552fe1(0x1ce)]-0x1,_0x1755ff;_0x407fd8>=0x0;_0x407fd8--)(_0x1755ff=_0x6a2889[_0x407fd8])&&(_0x674999=_0x1755ff(_0x674999)||_0x674999);return _0x674999;},m=(_0x26e514,_0x4d96c5)=>(_0x436620,_0xbda5ec)=>_0x4d96c5(_0x436620,_0xbda5ec,_0x26e514);let u=class extends i[_0x398628(0x1ab)]{constructor(_0x571929,_0x330262){const _0x4becea=_0x398628;super(),this['_commandService']=_0x571929,this[_0x4becea(0x1b7)]=_0x330262,this[_0x4becea(0x1c8)](),this['_initMenus']();}[_0x398628(0x1c8)](){const _0x21fd7f=_0x398628;[l,p][_0x21fd7f(0x1c4)](_0x4c0340=>{const _0x43cfe8=_0x21fd7f;this[_0x43cfe8(0x1c0)](this[_0x43cfe8(0x1b0)][_0x43cfe8(0x1cd)](_0x4c0340));});}['_initMenus'](){const _0x3e77a9=_0x398628;this['_menuManagerService'][_0x3e77a9(0x1b8)](f);}};u=y([m(0x0,i['ICommandService']),m(0x1,c['IMenuManagerService'])],u);var O=Object[_0x398628(0x1b6)],U=Object[_0x398628(0x1d8)],X=(_0x2093f6,_0x1a0498,_0x4e5c95)=>_0x1a0498 in _0x2093f6?O(_0x2093f6,_0x1a0498,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e5c95}):_0x2093f6[_0x1a0498]=_0x4e5c95,N=(_0x442668,_0x1d2a77,_0x20ae0d,_0x27a155)=>{const _0x5e548d=_0x398628;for(var _0x53f442=_0x27a155>0x1?void 0x0:_0x27a155?U(_0x1d2a77,_0x20ae0d):_0x1d2a77,_0x3a99ea=_0x442668[_0x5e548d(0x1ce)]-0x1,_0x5d246b;_0x3a99ea>=0x0;_0x3a99ea--)(_0x5d246b=_0x442668[_0x3a99ea])&&(_0x53f442=_0x5d246b(_0x53f442)||_0x53f442);return _0x53f442;},d=(_0x3786ad,_0x114d5c)=>(_0x54b8b9,_0x2eda59)=>_0x114d5c(_0x54b8b9,_0x2eda59,_0x3786ad),E=(_0x29a7cb,_0x2e304a,_0x28ed62)=>X(_0x29a7cb,typeof _0x2e304a!=_0x398628(0x1d4)?_0x2e304a+'':_0x2e304a,_0x28ed62);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports[_0x398628(0x1de)]=class extends i[_0x398628(0x1bd)]{constructor(_0x56990e=h,_0x1269f1,_0x44f6bb){const _0x427ad6=_0x398628;super(),this['_config']=_0x56990e,this['_injector']=_0x1269f1,this[_0x427ad6(0x1d3)]=_0x44f6bb;const {menu:_0x529245,..._0x734c93}=i[_0x427ad6(0x1db)]({},h,this[_0x427ad6(0x1c9)]);_0x529245&&this[_0x427ad6(0x1d3)]['setConfig'](_0x427ad6(0x1c2),_0x529245,{'merge':!0x0}),this[_0x427ad6(0x1d3)]['setConfig'](v,_0x734c93);}[_0x398628(0x1bc)](){const _0xde355d=_0x398628;[[u]][_0xde355d(0x1c4)](_0x4ca180=>this[_0xde355d(0x1ad)][_0xde355d(0x1a7)](_0x4ca180));}['onReady'](){const _0x421ef5=_0x398628;this[_0x421ef5(0x1ad)][_0x421ef5(0x1bf)](u);}},E(exports[_0x398628(0x1de)],_0x398628(0x1d6),L),E(exports[_0x398628(0x1de)],'type',i[_0x398628(0x1b5)][_0x398628(0x1c1)]),exports[_0x398628(0x1de)]=N([i[_0x398628(0x1d1)](g[_0x398628(0x1ae)]),d(0x1,i[_0x398628(0x1c7)](i[_0x398628(0x1c6)])),d(0x2,i[_0x398628(0x1a6)])],exports['UniverSheetsExchangeClientPlugin']),exports['ExportXLSXOperation']=p,exports['ImportXLSXOperation']=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x143e4e=_0x5957;(function(_0x5b0232,_0x415dec){const _0x29a161=_0x5957,_0x301ad2=_0x5b0232();while(!![]){try{const _0x2ae2ff=-parseInt(_0x29a161(0x10c))/0x1*(-parseInt(_0x29a161(0x10a))/0x2)+-parseInt(_0x29a161(0x128))/0x3*(parseInt(_0x29a161(0x118))/0x4)+parseInt(_0x29a161(0x115))/0x5+-parseInt(_0x29a161(0x112))/0x6+-parseInt(_0x29a161(0x11c))/0x7*(parseInt(_0x29a161(0x123))/0x8)+-parseInt(_0x29a161(0x12b))/0x9*(parseInt(_0x29a161(0x127))/0xa)+-parseInt(_0x29a161(0x10b))/0xb*(-parseInt(_0x29a161(0x10f))/0xc);if(_0x2ae2ff===_0x415dec)break;else _0x301ad2['push'](_0x301ad2['shift']());}catch(_0x3d1e14){_0x301ad2['push'](_0x301ad2['shift']());}}}(_0x2033,0xeef64));import{IExchangeOperateService as _0x5821e7,UniverExchangeClientPlugin as _0x2c2d41}from'@univerjs-pro/exchange-client';import{CommandType as _0x4d2eb2,UniverInstanceType as _0x107c8d,Disposable as _0x52b49c,ICommandService as _0x5f1e60,DependentOn as _0x416156,Inject as _0x37eccd,Injector as _0x23e00e,IConfigService as _0x90f810,Plugin as _0x5e4a9e,merge as _0x54651e}from'@univerjs/core';import{MenuItemType as _0xf7d999,getMenuHiddenObservable as _0x3a1fcd,RibbonStartGroup as _0x6335e9,IMenuManagerService as _0x2b3d22}from'@univerjs/ui';import{WorkbookExportPermission as _0x264728}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x449f39}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x4d2eb2['OPERATION'],'handler':async _0x43bedc=>{const _0x58ef87=_0x5957,_0x5c0075=_0x43bedc[_0x58ef87(0x122)](_0x5821e7);return new URLSearchParams(location[_0x58ef87(0x129)])['get'](_0x58ef87(0x11e))?_0x5c0075[_0x58ef87(0x12e)]():_0x5c0075[_0x58ef87(0x12c)](),!0x0;}},u={'id':_0x143e4e(0x12a),'type':_0x4d2eb2['OPERATION'],'handler':async _0x34df74=>{const _0xeb966d=_0x143e4e,_0x45218e=_0x34df74[_0xeb966d(0x122)](_0x5821e7);return new URLSearchParams(location[_0xeb966d(0x129)])[_0xeb966d(0x122)](_0xeb966d(0x11e))?_0x45218e[_0xeb966d(0x125)]():_0x45218e[_0xeb966d(0x10e)](),!0x0;}},H='sheets-exchange-client.config',l={},S='sheets-exchange-client.operation.exchange';function R(_0x44797d){const _0x27ff67=_0x143e4e;return{'id':S,'type':_0xf7d999[_0x27ff67(0x12f)],'icon':_0x27ff67(0x11d),'tooltip':'exchange.file','hidden$':_0x3a1fcd(_0x44797d,_0x107c8d[_0x27ff67(0x114)]),'disabled$':_0x449f39(_0x44797d,{'workbookTypes':[_0x264728]})};}function _0x2033(){const _0x16a4a2=['registerCommand','3491754aiGygz','DirectExportIcon','unit','setConfig','BUTTON','getOwnPropertyDescriptor','get','24xUzaDU','onReady','exportXLSXByUnitId','_config','30DJwGsg','12BiaQOn','search','exchange-client.operation.export-xlsx','4138074JFvwRS','importXLSXToSnapshot','_injector','importXLSXToUnitId','SUBITEMS','_initMenus','OTHERS','_initCommands','length','333282EZWUKs','22MDmUSP','6SODhmf','SHEET_EXCHANGE_CLIENT_PLUGIN','exportXLSXBySnapshot','23249232vsewiU','symbol','FolderIcon','7463052nBuWeD','forEach','UNIVER_SHEET','9039540vKngZC','_configService','exchange.upload','1584172wEKChy','disposeWithMe','defineProperty'];_0x2033=function(){return _0x16a4a2;};return _0x2033();}function w(){const _0x347081=_0x143e4e;return{'id':p['id'],'type':_0xf7d999['BUTTON'],'title':_0x347081(0x117),'icon':_0x347081(0x111)};}function D(){const _0x4a4e43=_0x143e4e;return{'id':u['id'],'type':_0xf7d999[_0x4a4e43(0x120)],'title':'exchange.download','icon':'ExportIcon'};}const F={[_0x6335e9[_0x143e4e(0x131)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x143e4e(0x121)],A=(_0x311fc6,_0x491a6e,_0x1293ce,_0x116810)=>{for(var _0x22287b=_0x116810>0x1?void 0x0:_0x116810?G(_0x491a6e,_0x1293ce):_0x491a6e,_0x4da5c4=_0x311fc6['length']-0x1,_0x1eadcc;_0x4da5c4>=0x0;_0x4da5c4--)(_0x1eadcc=_0x311fc6[_0x4da5c4])&&(_0x22287b=_0x1eadcc(_0x22287b)||_0x22287b);return _0x22287b;},d=(_0x63b632,_0x3ba843)=>(_0x4fa300,_0x5a5767)=>_0x3ba843(_0x4fa300,_0x5a5767,_0x63b632);let c=class extends _0x52b49c{constructor(_0x1a9bcf,_0x3219a4){const _0x176236=_0x143e4e;super(),this['_commandService']=_0x1a9bcf,this['_menuManagerService']=_0x3219a4,this[_0x176236(0x108)](),this[_0x176236(0x130)]();}[_0x143e4e(0x108)](){const _0x129412=_0x143e4e;[p,u][_0x129412(0x113)](_0x4b09a8=>{const _0x48b343=_0x129412;this[_0x48b343(0x119)](this['_commandService'][_0x48b343(0x11b)](_0x4b09a8));});}[_0x143e4e(0x130)](){this['_menuManagerService']['mergeMenu'](F);}};c=A([d(0x0,_0x5f1e60),d(0x1,_0x2b3d22)],c);var j=Object[_0x143e4e(0x11a)],B=Object[_0x143e4e(0x121)],$=(_0x4703d7,_0xa5f14e,_0x6b816f)=>_0xa5f14e in _0x4703d7?j(_0x4703d7,_0xa5f14e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x6b816f}):_0x4703d7[_0xa5f14e]=_0x6b816f,V=(_0x4a4c25,_0x204fcc,_0x32bc58,_0x57d2c2)=>{const _0x5c27e1=_0x143e4e;for(var _0xd54bb=_0x57d2c2>0x1?void 0x0:_0x57d2c2?B(_0x204fcc,_0x32bc58):_0x204fcc,_0x2afeed=_0x4a4c25[_0x5c27e1(0x109)]-0x1,_0x51bcd7;_0x2afeed>=0x0;_0x2afeed--)(_0x51bcd7=_0x4a4c25[_0x2afeed])&&(_0xd54bb=_0x51bcd7(_0xd54bb)||_0xd54bb);return _0xd54bb;},_=(_0x188933,_0x17987a)=>(_0x5d2c8c,_0xc1a669)=>_0x17987a(_0x5d2c8c,_0xc1a669,_0x188933),I=(_0x588504,_0x550d8a,_0x57cb9)=>$(_0x588504,typeof _0x550d8a!=_0x143e4e(0x110)?_0x550d8a+'':_0x550d8a,_0x57cb9);const W=_0x143e4e(0x10d);function _0x5957(_0x287594,_0x8309cf){_0x287594=_0x287594-0x108;const _0x20337d=_0x2033();let _0x595757=_0x20337d[_0x287594];return _0x595757;}let s=class extends _0x5e4a9e{constructor(_0x352942=l,_0x876e02,_0x3a6430){const _0x572daa=_0x143e4e;super(),this[_0x572daa(0x126)]=_0x352942,this[_0x572daa(0x12d)]=_0x876e02,this['_configService']=_0x3a6430;const {menu:_0x3cb355,..._0x337c32}=_0x54651e({},l,this[_0x572daa(0x126)]);_0x3cb355&&this[_0x572daa(0x116)][_0x572daa(0x11f)]('menu',_0x3cb355,{'merge':!0x0}),this[_0x572daa(0x116)]['setConfig'](H,_0x337c32);}['onStarting'](){const _0x35821c=_0x143e4e;[[c]][_0x35821c(0x113)](_0x4ea7ab=>this['_injector']['add'](_0x4ea7ab));}[_0x143e4e(0x124)](){const _0x2c4c57=_0x143e4e;this['_injector'][_0x2c4c57(0x122)](c);}};I(s,'pluginName',W),I(s,'type',_0x107c8d[_0x143e4e(0x114)]),s=V([_0x416156(_0x2c2d41),_(0x1,_0x37eccd(_0x23e00e)),_(0x2,_0x90f810)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x140a9e=_0xb9d5;(function(_0x2ba63c,_0x11d8d9){const _0x407b2e=_0xb9d5,_0x26c4b5=_0x2ba63c();while(!![]){try{const _0x379f5c=-parseInt(_0x407b2e(0x11b))/0x1*(-parseInt(_0x407b2e(0x126))/0x2)+parseInt(_0x407b2e(0x127))/0x3+parseInt(_0x407b2e(0x11c))/0x4*(-parseInt(_0x407b2e(0x12d))/0x5)+-parseInt(_0x407b2e(0x117))/0x6+-parseInt(_0x407b2e(0x122))/0x7+-parseInt(_0x407b2e(0x12a))/0x8*(-parseInt(_0x407b2e(0x130))/0x9)+parseInt(_0x407b2e(0x12e))/0xa;if(_0x379f5c===_0x11d8d9)break;else _0x26c4b5['push'](_0x26c4b5['shift']());}catch(_0x131470){_0x26c4b5['push'](_0x26c4b5['shift']());}}}(_0x59f3,0x8e1df));import{IExchangeOperateService as _0x169537,UniverExchangeClientPlugin as _0x46fad2}from'@univerjs-pro/exchange-client';import{CommandType as _0x409cab,UniverInstanceType as _0x48c8cd,Disposable as _0x2a87ee,ICommandService as _0x4b6f9a,DependentOn as _0x1b1535,Inject as _0x397a3d,Injector as _0x17efa1,IConfigService as _0x30ba0d,Plugin as _0x2c556a,merge as _0x14c5f7}from'@univerjs/core';import{MenuItemType as _0xf31bad,getMenuHiddenObservable as _0xb68088,RibbonStartGroup as _0x591d2b,IMenuManagerService as _0x4a6e70}from'@univerjs/ui';import{WorkbookExportPermission as _0x57e506}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x1e1ff6}from'@univerjs/sheets-ui';const p={'id':_0x140a9e(0x112),'type':_0x409cab[_0x140a9e(0x10e)],'handler':async _0x13da04=>{const _0xcaaef8=_0x140a9e,_0x4e8027=_0x13da04['get'](_0x169537);return new URLSearchParams(location['search'])[_0xcaaef8(0x129)](_0xcaaef8(0x111))?_0x4e8027['importXLSXToUnitId']():_0x4e8027[_0xcaaef8(0x118)](),!0x0;}},u={'id':_0x140a9e(0x119),'type':_0x409cab[_0x140a9e(0x10e)],'handler':async _0x124255=>{const _0x505a2c=_0x140a9e,_0x165ecd=_0x124255[_0x505a2c(0x129)](_0x169537);return new URLSearchParams(location['search'])['get'](_0x505a2c(0x111))?_0x165ecd[_0x505a2c(0x114)]():_0x165ecd['exportXLSXBySnapshot'](),!0x0;}},H=_0x140a9e(0x131),l={},S='sheets-exchange-client.operation.exchange';function R(_0x296b65){const _0x1482ef=_0x140a9e;return{'id':S,'type':_0xf31bad['SUBITEMS'],'icon':_0x1482ef(0x123),'tooltip':_0x1482ef(0x135),'hidden$':_0xb68088(_0x296b65,_0x48c8cd[_0x1482ef(0x10f)]),'disabled$':_0x1e1ff6(_0x296b65,{'workbookTypes':[_0x57e506]})};}function w(){const _0x5334bb=_0x140a9e;return{'id':p['id'],'type':_0xf31bad[_0x5334bb(0x11a)],'title':_0x5334bb(0x115),'icon':_0x5334bb(0x132)};}function D(){const _0x457e3c=_0x140a9e;return{'id':u['id'],'type':_0xf31bad['BUTTON'],'title':_0x457e3c(0x124),'icon':'ExportIcon'};}const F={[_0x591d2b[_0x140a9e(0x10c)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x140a9e(0x11d)],A=(_0x171b22,_0x2dc032,_0x129b26,_0x515959)=>{const _0x54b996=_0x140a9e;for(var _0x477c9b=_0x515959>0x1?void 0x0:_0x515959?G(_0x2dc032,_0x129b26):_0x2dc032,_0x41f446=_0x171b22[_0x54b996(0x120)]-0x1,_0x2ed872;_0x41f446>=0x0;_0x41f446--)(_0x2ed872=_0x171b22[_0x41f446])&&(_0x477c9b=_0x2ed872(_0x477c9b)||_0x477c9b);return _0x477c9b;},d=(_0x40abb2,_0x1450c3)=>(_0x19c5db,_0x40fcd3)=>_0x1450c3(_0x19c5db,_0x40fcd3,_0x40abb2);let c=class extends _0x2a87ee{constructor(_0x45f053,_0x399541){const _0x2bc779=_0x140a9e;super(),this['_commandService']=_0x45f053,this['_menuManagerService']=_0x399541,this[_0x2bc779(0x125)](),this[_0x2bc779(0x136)]();}['_initCommands'](){[p,u]['forEach'](_0x559ca7=>{const _0x5b4ef5=_0xb9d5;this[_0x5b4ef5(0x116)](this[_0x5b4ef5(0x110)][_0x5b4ef5(0x137)](_0x559ca7));});}[_0x140a9e(0x136)](){const _0x1f67e7=_0x140a9e;this[_0x1f67e7(0x12f)]['mergeMenu'](F);}};c=A([d(0x0,_0x4b6f9a),d(0x1,_0x4a6e70)],c);var j=Object[_0x140a9e(0x128)],B=Object[_0x140a9e(0x11d)],$=(_0x15b87e,_0x1cda90,_0x2b58cf)=>_0x1cda90 in _0x15b87e?j(_0x15b87e,_0x1cda90,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b58cf}):_0x15b87e[_0x1cda90]=_0x2b58cf,V=(_0x37a686,_0x54e02c,_0x1821be,_0x106bf2)=>{const _0x47d74d=_0x140a9e;for(var _0x168916=_0x106bf2>0x1?void 0x0:_0x106bf2?B(_0x54e02c,_0x1821be):_0x54e02c,_0x30d5fc=_0x37a686[_0x47d74d(0x120)]-0x1,_0x2d4500;_0x30d5fc>=0x0;_0x30d5fc--)(_0x2d4500=_0x37a686[_0x30d5fc])&&(_0x168916=_0x2d4500(_0x168916)||_0x168916);return _0x168916;},_=(_0xf28425,_0x5e16f3)=>(_0x1a5fdb,_0x27e6a3)=>_0x5e16f3(_0x1a5fdb,_0x27e6a3,_0xf28425),I=(_0x59612f,_0x68bab9,_0xd02921)=>$(_0x59612f,typeof _0x68bab9!='symbol'?_0x68bab9+'':_0x68bab9,_0xd02921);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x2c556a{constructor(_0x2c52db=l,_0x3e580c,_0x39234b){const _0x29c685=_0x140a9e;super(),this[_0x29c685(0x121)]=_0x2c52db,this[_0x29c685(0x133)]=_0x3e580c,this[_0x29c685(0x10d)]=_0x39234b;const {menu:_0x1516bd,..._0x440b5a}=_0x14c5f7({},l,this[_0x29c685(0x121)]);_0x1516bd&&this['_configService'][_0x29c685(0x12c)]('menu',_0x1516bd,{'merge':!0x0}),this[_0x29c685(0x10d)][_0x29c685(0x12c)](H,_0x440b5a);}[_0x140a9e(0x12b)](){const _0x9c3e5d=_0x140a9e;[[c]][_0x9c3e5d(0x134)](_0x402565=>this[_0x9c3e5d(0x133)]['add'](_0x402565));}[_0x140a9e(0x11e)](){const _0x2d3f0d=_0x140a9e;this[_0x2d3f0d(0x133)][_0x2d3f0d(0x129)](c);}};I(s,_0x140a9e(0x11f),W),I(s,_0x140a9e(0x113),_0x48c8cd[_0x140a9e(0x10f)]),s=V([_0x1b1535(_0x46fad2),_(0x1,_0x397a3d(_0x17efa1)),_(0x2,_0x30ba0d)],s);function _0x59f3(){const _0x272232=['exportXLSXByUnitId','exchange.upload','disposeWithMe','5878854cDBMWb','importXLSXToSnapshot','exchange-client.operation.export-xlsx','BUTTON','7847JpXTNe','212Jtdapx','getOwnPropertyDescriptor','onReady','pluginName','length','_config','2600899KWZqhi','DirectExportIcon','exchange.download','_initCommands','190rImPJJ','1645140QyulPA','defineProperty','get','10648fzBOFC','onStarting','setConfig','70795VBlGOZ','2706880AGBuFH','_menuManagerService','7569xvCqkB','sheets-exchange-client.config','FolderIcon','_injector','forEach','exchange.file','_initMenus','registerCommand','OTHERS','_configService','OPERATION','UNIVER_SHEET','_commandService','unit','exchange-client.operation.import-xlsx','type'];_0x59f3=function(){return _0x272232;};return _0x59f3();}function _0xb9d5(_0x32eb41,_0x46ee20){_0x32eb41=_0x32eb41-0x10c;const _0x59f32d=_0x59f3();let _0xb9d563=_0x59f32d[_0x32eb41];return _0xb9d563;}export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x143e4e=_0x5957;(function(_0x5b0232,_0x415dec){const _0x29a161=_0x5957,_0x301ad2=_0x5b0232();while(!![]){try{const _0x2ae2ff=-parseInt(_0x29a161(0x10c))/0x1*(-parseInt(_0x29a161(0x10a))/0x2)+-parseInt(_0x29a161(0x128))/0x3*(parseInt(_0x29a161(0x118))/0x4)+parseInt(_0x29a161(0x115))/0x5+-parseInt(_0x29a161(0x112))/0x6+-parseInt(_0x29a161(0x11c))/0x7*(parseInt(_0x29a161(0x123))/0x8)+-parseInt(_0x29a161(0x12b))/0x9*(parseInt(_0x29a161(0x127))/0xa)+-parseInt(_0x29a161(0x10b))/0xb*(-parseInt(_0x29a161(0x10f))/0xc);if(_0x2ae2ff===_0x415dec)break;else _0x301ad2['push'](_0x301ad2['shift']());}catch(_0x3d1e14){_0x301ad2['push'](_0x301ad2['shift']());}}}(_0x2033,0xeef64));import{IExchangeOperateService as _0x5821e7,UniverExchangeClientPlugin as _0x2c2d41}from'@univerjs-pro/exchange-client';import{CommandType as _0x4d2eb2,UniverInstanceType as _0x107c8d,Disposable as _0x52b49c,ICommandService as _0x5f1e60,DependentOn as _0x416156,Inject as _0x37eccd,Injector as _0x23e00e,IConfigService as _0x90f810,Plugin as _0x5e4a9e,merge as _0x54651e}from'@univerjs/core';import{MenuItemType as _0xf7d999,getMenuHiddenObservable as _0x3a1fcd,RibbonStartGroup as _0x6335e9,IMenuManagerService as _0x2b3d22}from'@univerjs/ui';import{WorkbookExportPermission as _0x264728}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x449f39}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x4d2eb2['OPERATION'],'handler':async _0x43bedc=>{const _0x58ef87=_0x5957,_0x5c0075=_0x43bedc[_0x58ef87(0x122)](_0x5821e7);return new URLSearchParams(location[_0x58ef87(0x129)])['get'](_0x58ef87(0x11e))?_0x5c0075[_0x58ef87(0x12e)]():_0x5c0075[_0x58ef87(0x12c)](),!0x0;}},u={'id':_0x143e4e(0x12a),'type':_0x4d2eb2['OPERATION'],'handler':async _0x34df74=>{const _0xeb966d=_0x143e4e,_0x45218e=_0x34df74[_0xeb966d(0x122)](_0x5821e7);return new URLSearchParams(location[_0xeb966d(0x129)])[_0xeb966d(0x122)](_0xeb966d(0x11e))?_0x45218e[_0xeb966d(0x125)]():_0x45218e[_0xeb966d(0x10e)](),!0x0;}},H='sheets-exchange-client.config',l={},S='sheets-exchange-client.operation.exchange';function R(_0x44797d){const _0x27ff67=_0x143e4e;return{'id':S,'type':_0xf7d999[_0x27ff67(0x12f)],'icon':_0x27ff67(0x11d),'tooltip':'exchange.file','hidden$':_0x3a1fcd(_0x44797d,_0x107c8d[_0x27ff67(0x114)]),'disabled$':_0x449f39(_0x44797d,{'workbookTypes':[_0x264728]})};}function _0x2033(){const _0x16a4a2=['registerCommand','3491754aiGygz','DirectExportIcon','unit','setConfig','BUTTON','getOwnPropertyDescriptor','get','24xUzaDU','onReady','exportXLSXByUnitId','_config','30DJwGsg','12BiaQOn','search','exchange-client.operation.export-xlsx','4138074JFvwRS','importXLSXToSnapshot','_injector','importXLSXToUnitId','SUBITEMS','_initMenus','OTHERS','_initCommands','length','333282EZWUKs','22MDmUSP','6SODhmf','SHEET_EXCHANGE_CLIENT_PLUGIN','exportXLSXBySnapshot','23249232vsewiU','symbol','FolderIcon','7463052nBuWeD','forEach','UNIVER_SHEET','9039540vKngZC','_configService','exchange.upload','1584172wEKChy','disposeWithMe','defineProperty'];_0x2033=function(){return _0x16a4a2;};return _0x2033();}function w(){const _0x347081=_0x143e4e;return{'id':p['id'],'type':_0xf7d999['BUTTON'],'title':_0x347081(0x117),'icon':_0x347081(0x111)};}function D(){const _0x4a4e43=_0x143e4e;return{'id':u['id'],'type':_0xf7d999[_0x4a4e43(0x120)],'title':'exchange.download','icon':'ExportIcon'};}const F={[_0x6335e9[_0x143e4e(0x131)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x143e4e(0x121)],A=(_0x311fc6,_0x491a6e,_0x1293ce,_0x116810)=>{for(var _0x22287b=_0x116810>0x1?void 0x0:_0x116810?G(_0x491a6e,_0x1293ce):_0x491a6e,_0x4da5c4=_0x311fc6['length']-0x1,_0x1eadcc;_0x4da5c4>=0x0;_0x4da5c4--)(_0x1eadcc=_0x311fc6[_0x4da5c4])&&(_0x22287b=_0x1eadcc(_0x22287b)||_0x22287b);return _0x22287b;},d=(_0x63b632,_0x3ba843)=>(_0x4fa300,_0x5a5767)=>_0x3ba843(_0x4fa300,_0x5a5767,_0x63b632);let c=class extends _0x52b49c{constructor(_0x1a9bcf,_0x3219a4){const _0x176236=_0x143e4e;super(),this['_commandService']=_0x1a9bcf,this['_menuManagerService']=_0x3219a4,this[_0x176236(0x108)](),this[_0x176236(0x130)]();}[_0x143e4e(0x108)](){const _0x129412=_0x143e4e;[p,u][_0x129412(0x113)](_0x4b09a8=>{const _0x48b343=_0x129412;this[_0x48b343(0x119)](this['_commandService'][_0x48b343(0x11b)](_0x4b09a8));});}[_0x143e4e(0x130)](){this['_menuManagerService']['mergeMenu'](F);}};c=A([d(0x0,_0x5f1e60),d(0x1,_0x2b3d22)],c);var j=Object[_0x143e4e(0x11a)],B=Object[_0x143e4e(0x121)],$=(_0x4703d7,_0xa5f14e,_0x6b816f)=>_0xa5f14e in _0x4703d7?j(_0x4703d7,_0xa5f14e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x6b816f}):_0x4703d7[_0xa5f14e]=_0x6b816f,V=(_0x4a4c25,_0x204fcc,_0x32bc58,_0x57d2c2)=>{const _0x5c27e1=_0x143e4e;for(var _0xd54bb=_0x57d2c2>0x1?void 0x0:_0x57d2c2?B(_0x204fcc,_0x32bc58):_0x204fcc,_0x2afeed=_0x4a4c25[_0x5c27e1(0x109)]-0x1,_0x51bcd7;_0x2afeed>=0x0;_0x2afeed--)(_0x51bcd7=_0x4a4c25[_0x2afeed])&&(_0xd54bb=_0x51bcd7(_0xd54bb)||_0xd54bb);return _0xd54bb;},_=(_0x188933,_0x17987a)=>(_0x5d2c8c,_0xc1a669)=>_0x17987a(_0x5d2c8c,_0xc1a669,_0x188933),I=(_0x588504,_0x550d8a,_0x57cb9)=>$(_0x588504,typeof _0x550d8a!=_0x143e4e(0x110)?_0x550d8a+'':_0x550d8a,_0x57cb9);const W=_0x143e4e(0x10d);function _0x5957(_0x287594,_0x8309cf){_0x287594=_0x287594-0x108;const _0x20337d=_0x2033();let _0x595757=_0x20337d[_0x287594];return _0x595757;}let s=class extends _0x5e4a9e{constructor(_0x352942=l,_0x876e02,_0x3a6430){const _0x572daa=_0x143e4e;super(),this[_0x572daa(0x126)]=_0x352942,this[_0x572daa(0x12d)]=_0x876e02,this['_configService']=_0x3a6430;const {menu:_0x3cb355,..._0x337c32}=_0x54651e({},l,this[_0x572daa(0x126)]);_0x3cb355&&this[_0x572daa(0x116)][_0x572daa(0x11f)]('menu',_0x3cb355,{'merge':!0x0}),this[_0x572daa(0x116)]['setConfig'](H,_0x337c32);}['onStarting'](){const _0x35821c=_0x143e4e;[[c]][_0x35821c(0x113)](_0x4ea7ab=>this['_injector']['add'](_0x4ea7ab));}[_0x143e4e(0x124)](){const _0x2c4c57=_0x143e4e;this['_injector'][_0x2c4c57(0x122)](c);}};I(s,'pluginName',W),I(s,'type',_0x107c8d[_0x143e4e(0x114)]),s=V([_0x416156(_0x2c2d41),_(0x1,_0x37eccd(_0x23e00e)),_(0x2,_0x90f810)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x140a9e=_0xb9d5;(function(_0x2ba63c,_0x11d8d9){const _0x407b2e=_0xb9d5,_0x26c4b5=_0x2ba63c();while(!![]){try{const _0x379f5c=-parseInt(_0x407b2e(0x11b))/0x1*(-parseInt(_0x407b2e(0x126))/0x2)+parseInt(_0x407b2e(0x127))/0x3+parseInt(_0x407b2e(0x11c))/0x4*(-parseInt(_0x407b2e(0x12d))/0x5)+-parseInt(_0x407b2e(0x117))/0x6+-parseInt(_0x407b2e(0x122))/0x7+-parseInt(_0x407b2e(0x12a))/0x8*(-parseInt(_0x407b2e(0x130))/0x9)+parseInt(_0x407b2e(0x12e))/0xa;if(_0x379f5c===_0x11d8d9)break;else _0x26c4b5['push'](_0x26c4b5['shift']());}catch(_0x131470){_0x26c4b5['push'](_0x26c4b5['shift']());}}}(_0x59f3,0x8e1df));import{IExchangeOperateService as _0x169537,UniverExchangeClientPlugin as _0x46fad2}from'@univerjs-pro/exchange-client';import{CommandType as _0x409cab,UniverInstanceType as _0x48c8cd,Disposable as _0x2a87ee,ICommandService as _0x4b6f9a,DependentOn as _0x1b1535,Inject as _0x397a3d,Injector as _0x17efa1,IConfigService as _0x30ba0d,Plugin as _0x2c556a,merge as _0x14c5f7}from'@univerjs/core';import{MenuItemType as _0xf31bad,getMenuHiddenObservable as _0xb68088,RibbonStartGroup as _0x591d2b,IMenuManagerService as _0x4a6e70}from'@univerjs/ui';import{WorkbookExportPermission as _0x57e506}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x1e1ff6}from'@univerjs/sheets-ui';const p={'id':_0x140a9e(0x112),'type':_0x409cab[_0x140a9e(0x10e)],'handler':async _0x13da04=>{const _0xcaaef8=_0x140a9e,_0x4e8027=_0x13da04['get'](_0x169537);return new URLSearchParams(location['search'])[_0xcaaef8(0x129)](_0xcaaef8(0x111))?_0x4e8027['importXLSXToUnitId']():_0x4e8027[_0xcaaef8(0x118)](),!0x0;}},u={'id':_0x140a9e(0x119),'type':_0x409cab[_0x140a9e(0x10e)],'handler':async _0x124255=>{const _0x505a2c=_0x140a9e,_0x165ecd=_0x124255[_0x505a2c(0x129)](_0x169537);return new URLSearchParams(location['search'])['get'](_0x505a2c(0x111))?_0x165ecd[_0x505a2c(0x114)]():_0x165ecd['exportXLSXBySnapshot'](),!0x0;}},H=_0x140a9e(0x131),l={},S='sheets-exchange-client.operation.exchange';function R(_0x296b65){const _0x1482ef=_0x140a9e;return{'id':S,'type':_0xf31bad['SUBITEMS'],'icon':_0x1482ef(0x123),'tooltip':_0x1482ef(0x135),'hidden$':_0xb68088(_0x296b65,_0x48c8cd[_0x1482ef(0x10f)]),'disabled$':_0x1e1ff6(_0x296b65,{'workbookTypes':[_0x57e506]})};}function w(){const _0x5334bb=_0x140a9e;return{'id':p['id'],'type':_0xf31bad[_0x5334bb(0x11a)],'title':_0x5334bb(0x115),'icon':_0x5334bb(0x132)};}function D(){const _0x457e3c=_0x140a9e;return{'id':u['id'],'type':_0xf31bad['BUTTON'],'title':_0x457e3c(0x124),'icon':'ExportIcon'};}const F={[_0x591d2b[_0x140a9e(0x10c)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x140a9e(0x11d)],A=(_0x171b22,_0x2dc032,_0x129b26,_0x515959)=>{const _0x54b996=_0x140a9e;for(var _0x477c9b=_0x515959>0x1?void 0x0:_0x515959?G(_0x2dc032,_0x129b26):_0x2dc032,_0x41f446=_0x171b22[_0x54b996(0x120)]-0x1,_0x2ed872;_0x41f446>=0x0;_0x41f446--)(_0x2ed872=_0x171b22[_0x41f446])&&(_0x477c9b=_0x2ed872(_0x477c9b)||_0x477c9b);return _0x477c9b;},d=(_0x40abb2,_0x1450c3)=>(_0x19c5db,_0x40fcd3)=>_0x1450c3(_0x19c5db,_0x40fcd3,_0x40abb2);let c=class extends _0x2a87ee{constructor(_0x45f053,_0x399541){const _0x2bc779=_0x140a9e;super(),this['_commandService']=_0x45f053,this['_menuManagerService']=_0x399541,this[_0x2bc779(0x125)](),this[_0x2bc779(0x136)]();}['_initCommands'](){[p,u]['forEach'](_0x559ca7=>{const _0x5b4ef5=_0xb9d5;this[_0x5b4ef5(0x116)](this[_0x5b4ef5(0x110)][_0x5b4ef5(0x137)](_0x559ca7));});}[_0x140a9e(0x136)](){const _0x1f67e7=_0x140a9e;this[_0x1f67e7(0x12f)]['mergeMenu'](F);}};c=A([d(0x0,_0x4b6f9a),d(0x1,_0x4a6e70)],c);var j=Object[_0x140a9e(0x128)],B=Object[_0x140a9e(0x11d)],$=(_0x15b87e,_0x1cda90,_0x2b58cf)=>_0x1cda90 in _0x15b87e?j(_0x15b87e,_0x1cda90,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b58cf}):_0x15b87e[_0x1cda90]=_0x2b58cf,V=(_0x37a686,_0x54e02c,_0x1821be,_0x106bf2)=>{const _0x47d74d=_0x140a9e;for(var _0x168916=_0x106bf2>0x1?void 0x0:_0x106bf2?B(_0x54e02c,_0x1821be):_0x54e02c,_0x30d5fc=_0x37a686[_0x47d74d(0x120)]-0x1,_0x2d4500;_0x30d5fc>=0x0;_0x30d5fc--)(_0x2d4500=_0x37a686[_0x30d5fc])&&(_0x168916=_0x2d4500(_0x168916)||_0x168916);return _0x168916;},_=(_0xf28425,_0x5e16f3)=>(_0x1a5fdb,_0x27e6a3)=>_0x5e16f3(_0x1a5fdb,_0x27e6a3,_0xf28425),I=(_0x59612f,_0x68bab9,_0xd02921)=>$(_0x59612f,typeof _0x68bab9!='symbol'?_0x68bab9+'':_0x68bab9,_0xd02921);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x2c556a{constructor(_0x2c52db=l,_0x3e580c,_0x39234b){const _0x29c685=_0x140a9e;super(),this[_0x29c685(0x121)]=_0x2c52db,this[_0x29c685(0x133)]=_0x3e580c,this[_0x29c685(0x10d)]=_0x39234b;const {menu:_0x1516bd,..._0x440b5a}=_0x14c5f7({},l,this[_0x29c685(0x121)]);_0x1516bd&&this['_configService'][_0x29c685(0x12c)]('menu',_0x1516bd,{'merge':!0x0}),this[_0x29c685(0x10d)][_0x29c685(0x12c)](H,_0x440b5a);}[_0x140a9e(0x12b)](){const _0x9c3e5d=_0x140a9e;[[c]][_0x9c3e5d(0x134)](_0x402565=>this[_0x9c3e5d(0x133)]['add'](_0x402565));}[_0x140a9e(0x11e)](){const _0x2d3f0d=_0x140a9e;this[_0x2d3f0d(0x133)][_0x2d3f0d(0x129)](c);}};I(s,_0x140a9e(0x11f),W),I(s,_0x140a9e(0x113),_0x48c8cd[_0x140a9e(0x10f)]),s=V([_0x1b1535(_0x46fad2),_(0x1,_0x397a3d(_0x17efa1)),_(0x2,_0x30ba0d)],s);function _0x59f3(){const _0x272232=['exportXLSXByUnitId','exchange.upload','disposeWithMe','5878854cDBMWb','importXLSXToSnapshot','exchange-client.operation.export-xlsx','BUTTON','7847JpXTNe','212Jtdapx','getOwnPropertyDescriptor','onReady','pluginName','length','_config','2600899KWZqhi','DirectExportIcon','exchange.download','_initCommands','190rImPJJ','1645140QyulPA','defineProperty','get','10648fzBOFC','onStarting','setConfig','70795VBlGOZ','2706880AGBuFH','_menuManagerService','7569xvCqkB','sheets-exchange-client.config','FolderIcon','_injector','forEach','exchange.file','_initMenus','registerCommand','OTHERS','_configService','OPERATION','UNIVER_SHEET','_commandService','unit','exchange-client.operation.import-xlsx','type'];_0x59f3=function(){return _0x272232;};return _0x59f3();}function _0xb9d5(_0x32eb41,_0x46ee20){_0x32eb41=_0x32eb41-0x10c;const _0x59f32d=_0x59f3();let _0xb9d563=_0x59f32d[_0x32eb41];return _0xb9d563;}export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x5633c4,_0x52aad0){const _0x2d555f=_0x570f,_0x34def0=_0x5633c4();while(!![]){try{const _0x2d6094=-parseInt(_0x2d555f(0x1db))/0x1*(parseInt(_0x2d555f(0x1ef))/0x2)+-parseInt(_0x2d555f(0x1cc))/0x3+-parseInt(_0x2d555f(0x1e9))/0x4*(-parseInt(_0x2d555f(0x1f1))/0x5)+parseInt(_0x2d555f(0x1df))/0x6*(parseInt(_0x2d555f(0x1e4))/0x7)+-parseInt(_0x2d555f(0x1ec))/0x8+parseInt(_0x2d555f(0x1d7))/0x9*(parseInt(_0x2d555f(0x208))/0xa)+-parseInt(_0x2d555f(0x1ee))/0xb*(-parseInt(_0x2d555f(0x1c4))/0xc);if(_0x2d6094===_0x52aad0)break;else _0x34def0['push'](_0x34def0['shift']());}catch(_0x3bf478){_0x34def0['push'](_0x34def0['shift']());}}}(_0x4942,0xd318b),function(_0x1c1d28,_0x493305){const _0x38f5b9=_0x570f;typeof exports==_0x38f5b9(0x203)&&typeof module<'u'?_0x493305(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define=='function'&&define['amd']?define([_0x38f5b9(0x20d),'@univerjs-pro/exchange-client',_0x38f5b9(0x20a),_0x38f5b9(0x1f6),_0x38f5b9(0x1d4),_0x38f5b9(0x20c)],_0x493305):(_0x1c1d28=typeof globalThis<'u'?globalThis:_0x1c1d28||self,_0x493305(_0x1c1d28[_0x38f5b9(0x1fa)]={},_0x1c1d28[_0x38f5b9(0x1fc)],_0x1c1d28[_0x38f5b9(0x1cf)],_0x1c1d28[_0x38f5b9(0x1fb)],_0x1c1d28[_0x38f5b9(0x1e5)],_0x1c1d28[_0x38f5b9(0x1fd)]));}(this,function(_0x37cc,_0x2a03fc,_0x3b1865,_0x548af3,_0x9aab0d,_0x1f77c2){'use strict';const _0x1d2182=_0x570f;const _0x1c396d={'id':_0x1d2182(0x1eb),'type':_0x3b1865[_0x1d2182(0x1ed)][_0x1d2182(0x201)],'handler':async _0xafcfad=>{const _0x148874=_0x1d2182,_0x550da9=_0xafcfad['get'](_0x2a03fc[_0x148874(0x1e1)]);return new URLSearchParams(location['search'])[_0x148874(0x1d6)](_0x148874(0x1d8))?_0x550da9[_0x148874(0x1c3)]():_0x550da9[_0x148874(0x1d2)](),!0x0;}},_0x4f6827={'id':'exchange-client.operation.export-xlsx','type':_0x3b1865[_0x1d2182(0x1ed)][_0x1d2182(0x201)],'handler':async _0x3efea4=>{const _0x4852bf=_0x1d2182,_0x1825fb=_0x3efea4[_0x4852bf(0x1d6)](_0x2a03fc[_0x4852bf(0x1e1)]);return new URLSearchParams(location[_0x4852bf(0x1c5)])['get']('unit')?_0x1825fb[_0x4852bf(0x1ea)]():_0x1825fb[_0x4852bf(0x204)](),!0x0;}},_0x46f030='sheets-exchange-client.config',_0x2d555b={},_0x2d5ea5=_0x1d2182(0x1ff);function _0x4064fd(_0x56309a){const _0x34391a=_0x1d2182;return{'id':_0x2d5ea5,'type':_0x548af3[_0x34391a(0x1d0)][_0x34391a(0x1f8)],'icon':_0x34391a(0x202),'tooltip':_0x34391a(0x1ce),'hidden$':_0x548af3[_0x34391a(0x209)](_0x56309a,_0x3b1865['UniverInstanceType']['UNIVER_SHEET']),'disabled$':_0x1f77c2[_0x34391a(0x1f7)](_0x56309a,{'workbookTypes':[_0x9aab0d['WorkbookExportPermission']]})};}function _0xaa105f(){const _0x138e72=_0x1d2182;return{'id':_0x1c396d['id'],'type':_0x548af3[_0x138e72(0x1d0)][_0x138e72(0x1f2)],'title':_0x138e72(0x1ca),'icon':_0x138e72(0x1e6)};}function _0x452ffd(){const _0x321c12=_0x1d2182;return{'id':_0x4f6827['id'],'type':_0x548af3[_0x321c12(0x1d0)][_0x321c12(0x1f2)],'title':'exchange.download','icon':_0x321c12(0x207)};}const _0x4c4b9f={[_0x548af3[_0x1d2182(0x1e0)][_0x1d2182(0x1e2)]]:{[_0x2d5ea5]:{'order':0.3,'menuItemFactory':_0x4064fd,[_0x1c396d['id']]:{'order':0x0,'menuItemFactory':_0xaa105f},[_0x4f6827['id']]:{'order':0x1,'menuItemFactory':_0x452ffd}}}};var _0x18a7b3=Object['getOwnPropertyDescriptor'],_0x313918=(_0x4fa28f,_0x3b081a,_0x3a6ae6,_0x393a7c)=>{for(var _0x4847fc=_0x393a7c>0x1?void 0x0:_0x393a7c?_0x18a7b3(_0x3b081a,_0x3a6ae6):_0x3b081a,_0x4beae2=_0x4fa28f['length']-0x1,_0x5108e7;_0x4beae2>=0x0;_0x4beae2--)(_0x5108e7=_0x4fa28f[_0x4beae2])&&(_0x4847fc=_0x5108e7(_0x4847fc)||_0x4847fc);return _0x4847fc;},_0x4e392b=(_0x32c3ad,_0x5b460f)=>(_0x1e7c48,_0x50c496)=>_0x5b460f(_0x1e7c48,_0x50c496,_0x32c3ad);let _0x22e1d9=class extends _0x3b1865['Disposable']{constructor(_0x5ae397,_0x2bf772){const _0x2ffae7=_0x1d2182;super(),this[_0x2ffae7(0x1e8)]=_0x5ae397,this[_0x2ffae7(0x1de)]=_0x2bf772,this[_0x2ffae7(0x205)](),this[_0x2ffae7(0x1e3)]();}['_initCommands'](){const _0x2166aa=_0x1d2182;[_0x1c396d,_0x4f6827][_0x2166aa(0x20e)](_0x265a00=>{const _0xf9f0e8=_0x2166aa;this[_0xf9f0e8(0x1d9)](this[_0xf9f0e8(0x1e8)][_0xf9f0e8(0x1d3)](_0x265a00));});}['_initMenus'](){this['_menuManagerService']['mergeMenu'](_0x4c4b9f);}};_0x22e1d9=_0x313918([_0x4e392b(0x0,_0x3b1865[_0x1d2182(0x1cd)]),_0x4e392b(0x1,_0x548af3[_0x1d2182(0x1f3)])],_0x22e1d9);var _0x4c91b4=Object[_0x1d2182(0x1c7)],_0x1dcc84=Object['getOwnPropertyDescriptor'],_0x43038f=(_0x4325c5,_0x33da2e,_0x47da69)=>_0x33da2e in _0x4325c5?_0x4c91b4(_0x4325c5,_0x33da2e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x47da69}):_0x4325c5[_0x33da2e]=_0x47da69,_0x5eebc0=(_0x5ead09,_0x478541,_0x3e3100,_0x2aeafa)=>{const _0x38ef2c=_0x1d2182;for(var _0x51ffb2=_0x2aeafa>0x1?void 0x0:_0x2aeafa?_0x1dcc84(_0x478541,_0x3e3100):_0x478541,_0x8c0318=_0x5ead09[_0x38ef2c(0x1f5)]-0x1,_0x44eff8;_0x8c0318>=0x0;_0x8c0318--)(_0x44eff8=_0x5ead09[_0x8c0318])&&(_0x51ffb2=_0x44eff8(_0x51ffb2)||_0x51ffb2);return _0x51ffb2;},_0x569c00=(_0x1c1c99,_0x583d03)=>(_0x409515,_0x271213)=>_0x583d03(_0x409515,_0x271213,_0x1c1c99),_0x1d83eb=(_0x310119,_0x362db2,_0x171d52)=>_0x43038f(_0x310119,typeof _0x362db2!=_0x1d2182(0x1d1)?_0x362db2+'':_0x362db2,_0x171d52);const _0x135c9a=_0x1d2182(0x20f);_0x37cc[_0x1d2182(0x1fe)]=class extends _0x3b1865['Plugin']{constructor(_0x2e1dbf=_0x2d555b,_0x532497,_0x2efef9){const _0x30ce35=_0x1d2182;super(),this[_0x30ce35(0x200)]=_0x2e1dbf,this[_0x30ce35(0x1dd)]=_0x532497,this[_0x30ce35(0x1f4)]=_0x2efef9;const {menu:_0x1863d3,..._0x204b82}=_0x3b1865[_0x30ce35(0x1da)]({},_0x2d555b,this[_0x30ce35(0x200)]);_0x1863d3&&this[_0x30ce35(0x1f4)]['setConfig']('menu',_0x1863d3,{'merge':!0x0}),this['_configService'][_0x30ce35(0x1d5)](_0x46f030,_0x204b82);}[_0x1d2182(0x206)](){const _0x3513a6=_0x1d2182;[[_0x22e1d9]][_0x3513a6(0x20e)](_0x51869e=>this[_0x3513a6(0x1dd)][_0x3513a6(0x1dc)](_0x51869e));}[_0x1d2182(0x1f9)](){const _0x16f4a8=_0x1d2182;this[_0x16f4a8(0x1dd)]['get'](_0x22e1d9);}},_0x1d83eb(_0x37cc[_0x1d2182(0x1fe)],'pluginName',_0x135c9a),_0x1d83eb(_0x37cc[_0x1d2182(0x1fe)],'type',_0x3b1865[_0x1d2182(0x20b)]['UNIVER_SHEET']),_0x37cc[_0x1d2182(0x1fe)]=_0x5eebc0([_0x3b1865[_0x1d2182(0x1e7)](_0x2a03fc['UniverExchangeClientPlugin']),_0x569c00(0x1,_0x3b1865[_0x1d2182(0x1cb)](_0x3b1865[_0x1d2182(0x210)])),_0x569c00(0x2,_0x3b1865[_0x1d2182(0x1c8)])],_0x37cc['UniverSheetsExchangeClientPlugin']),_0x37cc[_0x1d2182(0x1f0)]=_0x4f6827,_0x37cc[_0x1d2182(0x1c9)]=_0x1c396d,Object[_0x1d2182(0x1c7)](_0x37cc,Symbol['toStringTag'],{'value':_0x1d2182(0x1c6)});}));function _0x570f(_0x26a147,_0x5e4b05){_0x26a147=_0x26a147-0x1c3;const _0x494235=_0x4942();let _0x570f93=_0x494235[_0x26a147];return _0x570f93;}function _0x4942(){const _0x9dedfe=['Inject','3340842sxXizn','ICommandService','exchange.file','UniverCore','MenuItemType','symbol','importXLSXToSnapshot','registerCommand','@univerjs/sheets','setConfig','get','27jcEgZh','unit','disposeWithMe','merge','95857jICsVq','add','_injector','_menuManagerService','627132mtvSCF','RibbonStartGroup','IExchangeOperateService','OTHERS','_initMenus','7AeXeEY','UniverSheets','FolderIcon','DependentOn','_commandService','99608gEcQpb','exportXLSXByUnitId','exchange-client.operation.import-xlsx','6511328PmZQQX','CommandType','11YOsaAN','2hYjJSn','ExportXLSXOperation','85BoWNWF','BUTTON','IMenuManagerService','_configService','length','@univerjs/ui','getCurrentRangeDisable$','SUBITEMS','onReady','UniverProSheetsExchangeClient','UniverUi','UniverProExchangeClient','UniverSheetsUi','UniverSheetsExchangeClientPlugin','sheets-exchange-client.operation.exchange','_config','OPERATION','DirectExportIcon','object','exportXLSXBySnapshot','_initCommands','onStarting','ExportIcon','2928410VPkkWz','getMenuHiddenObservable','@univerjs/core','UniverInstanceType','@univerjs/sheets-ui','exports','forEach','SHEET_EXCHANGE_CLIENT_PLUGIN','Injector','importXLSXToUnitId','17779908aKhcDv','search','Module','defineProperty','IConfigService','ImportXLSXOperation','exchange.upload'];_0x4942=function(){return _0x9dedfe;};return _0x4942();}
1
+ function _0x12fa(){const _0x215fbc=['UniverUi','onReady','FolderIcon','WorkbookExportPermission','10085jmxNCO','exchange.file','exports','getMenuHiddenObservable','length','exportXLSXBySnapshot','exportXLSXByUnitId','_initCommands','symbol','IConfigService','importXLSXToSnapshot','sheets-exchange-client.config','forEach','BUTTON','unit','CommandType','get','UniverSheets','3607665JyUidB','ExportIcon','@univerjs-pro/exchange-client','disposeWithMe','_initMenus','sheets-exchange-client.operation.exchange','Disposable','923055dqPjSF','MenuItemType','OPERATION','Module','_injector','22912590jhZMNI','DependentOn','8713103ZXlKXx','SHEET_EXCHANGE_CLIENT_PLUGIN','5256456wxNaYx','OTHERS','exchange-client.operation.import-xlsx','UniverProSheetsExchangeClient','2916LaBxCU','IMenuManagerService','add','amd','_configService','onStarting','UNIVER_SHEET','_commandService','type','UniverSheetsExchangeClientPlugin','9IYbxof','4ugZvvM','_menuManagerService','exchange-client.operation.export-xlsx','UniverInstanceType','defineProperty','search','815114ZSinIW','UniverCore','UniverProExchangeClient','Inject','exchange.download','getOwnPropertyDescriptor','Plugin','getCurrentRangeDisable$','merge','Injector','DirectExportIcon','_config','setConfig'];_0x12fa=function(){return _0x215fbc;};return _0x12fa();}function _0x335f(_0x1f0f89,_0x3d4a45){_0x1f0f89=_0x1f0f89-0x162;const _0x12faed=_0x12fa();let _0x335f1c=_0x12faed[_0x1f0f89];return _0x335f1c;}(function(_0x4b7a22,_0x25afd8){const _0x213ffc=_0x335f,_0x239f9a=_0x4b7a22();while(!![]){try{const _0x41f151=parseInt(_0x213ffc(0x174))/0x1+parseInt(_0x213ffc(0x192))/0x2+-parseInt(_0x213ffc(0x16d))/0x3*(parseInt(_0x213ffc(0x18c))/0x4)+-parseInt(_0x213ffc(0x1a3))/0x5*(parseInt(_0x213ffc(0x181))/0x6)+-parseInt(_0x213ffc(0x17b))/0x7+-parseInt(_0x213ffc(0x17d))/0x8*(-parseInt(_0x213ffc(0x18b))/0x9)+parseInt(_0x213ffc(0x179))/0xa;if(_0x41f151===_0x25afd8)break;else _0x239f9a['push'](_0x239f9a['shift']());}catch(_0x3e043d){_0x239f9a['push'](_0x239f9a['shift']());}}}(_0x12fa,0xcfdb6),function(_0x5b2644,_0x18f7c0){const _0x520d60=_0x335f;typeof exports=='object'&&typeof module<'u'?_0x18f7c0(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x520d60(0x184)]?define([_0x520d60(0x1a5),_0x520d60(0x16f),'@univerjs/core','@univerjs/ui','@univerjs/sheets','@univerjs/sheets-ui'],_0x18f7c0):(_0x5b2644=typeof globalThis<'u'?globalThis:_0x5b2644||self,_0x18f7c0(_0x5b2644[_0x520d60(0x180)]={},_0x5b2644[_0x520d60(0x194)],_0x5b2644[_0x520d60(0x193)],_0x5b2644[_0x520d60(0x19f)],_0x5b2644[_0x520d60(0x16c)],_0x5b2644['UniverSheetsUi']));}(this,function(_0x35d790,_0x385246,_0x6cbf80,_0x4f1c71,_0x4820a3,_0x35ce1d){'use strict';const _0x2c26be=_0x335f;const _0x4a5190={'id':_0x2c26be(0x17f),'type':_0x6cbf80['CommandType'][_0x2c26be(0x176)],'handler':async _0x41fdbc=>{const _0x47fb53=_0x2c26be,_0x55f762=_0x41fdbc[_0x47fb53(0x16b)](_0x385246['IExchangeOperateService']);return new URLSearchParams(location[_0x47fb53(0x191)])['get'](_0x47fb53(0x169))?_0x55f762['importXLSXToUnitId']():_0x55f762[_0x47fb53(0x165)](),!0x0;}},_0x5f4d7f={'id':_0x2c26be(0x18e),'type':_0x6cbf80[_0x2c26be(0x16a)][_0x2c26be(0x176)],'handler':async _0x1999ec=>{const _0x4cb8a8=_0x2c26be,_0x18db24=_0x1999ec['get'](_0x385246['IExchangeOperateService']);return new URLSearchParams(location[_0x4cb8a8(0x191)])[_0x4cb8a8(0x16b)](_0x4cb8a8(0x169))?_0x18db24[_0x4cb8a8(0x1a9)]():_0x18db24[_0x4cb8a8(0x1a8)](),!0x0;}},_0x474f65=_0x2c26be(0x166),_0x56f54b={},_0x13072d=_0x2c26be(0x172);function _0x343829(_0x21003c){const _0x3bd0e6=_0x2c26be;return{'id':_0x13072d,'type':_0x4f1c71[_0x3bd0e6(0x175)]['SUBITEMS'],'icon':_0x3bd0e6(0x19c),'tooltip':_0x3bd0e6(0x1a4),'hidden$':_0x4f1c71[_0x3bd0e6(0x1a6)](_0x21003c,_0x6cbf80['UniverInstanceType'][_0x3bd0e6(0x187)]),'disabled$':_0x35ce1d[_0x3bd0e6(0x199)](_0x21003c,{'workbookTypes':[_0x4820a3[_0x3bd0e6(0x1a2)]]})};}function _0x339b6e(){const _0x5a976f=_0x2c26be;return{'id':_0x4a5190['id'],'type':_0x4f1c71[_0x5a976f(0x175)][_0x5a976f(0x168)],'title':'exchange.upload','icon':_0x5a976f(0x1a1)};}function _0x17a93b(){const _0x17e54a=_0x2c26be;return{'id':_0x5f4d7f['id'],'type':_0x4f1c71[_0x17e54a(0x175)][_0x17e54a(0x168)],'title':_0x17e54a(0x196),'icon':_0x17e54a(0x16e)};}const _0x14de25={[_0x4f1c71['RibbonStartGroup'][_0x2c26be(0x17e)]]:{[_0x13072d]:{'order':0.3,'menuItemFactory':_0x343829,[_0x4a5190['id']]:{'order':0x0,'menuItemFactory':_0x339b6e},[_0x5f4d7f['id']]:{'order':0x1,'menuItemFactory':_0x17a93b}}}};var _0x291842=Object[_0x2c26be(0x197)],_0x1c7b97=(_0x3b545b,_0x1523bf,_0x2cf834,_0xc01f2e)=>{const _0x3e5562=_0x2c26be;for(var _0x45bd5d=_0xc01f2e>0x1?void 0x0:_0xc01f2e?_0x291842(_0x1523bf,_0x2cf834):_0x1523bf,_0x67b26d=_0x3b545b[_0x3e5562(0x1a7)]-0x1,_0x59e73a;_0x67b26d>=0x0;_0x67b26d--)(_0x59e73a=_0x3b545b[_0x67b26d])&&(_0x45bd5d=_0x59e73a(_0x45bd5d)||_0x45bd5d);return _0x45bd5d;},_0x4b6b4d=(_0x4cfb43,_0x563534)=>(_0x37cde7,_0xa18fd6)=>_0x563534(_0x37cde7,_0xa18fd6,_0x4cfb43);let _0x27c4ff=class extends _0x6cbf80[_0x2c26be(0x173)]{constructor(_0x340d70,_0x105190){const _0x53331e=_0x2c26be;super(),this[_0x53331e(0x188)]=_0x340d70,this['_menuManagerService']=_0x105190,this['_initCommands'](),this[_0x53331e(0x171)]();}[_0x2c26be(0x162)](){[_0x4a5190,_0x5f4d7f]['forEach'](_0x1667be=>{const _0x4c2eff=_0x335f;this[_0x4c2eff(0x170)](this['_commandService']['registerCommand'](_0x1667be));});}[_0x2c26be(0x171)](){const _0x296e83=_0x2c26be;this[_0x296e83(0x18d)]['mergeMenu'](_0x14de25);}};_0x27c4ff=_0x1c7b97([_0x4b6b4d(0x0,_0x6cbf80['ICommandService']),_0x4b6b4d(0x1,_0x4f1c71[_0x2c26be(0x182)])],_0x27c4ff);var _0x40201a=Object[_0x2c26be(0x190)],_0x24a82a=Object[_0x2c26be(0x197)],_0x4d425e=(_0x28925e,_0x1911ab,_0x2d8b75)=>_0x1911ab in _0x28925e?_0x40201a(_0x28925e,_0x1911ab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d8b75}):_0x28925e[_0x1911ab]=_0x2d8b75,_0x5c9809=(_0x1ee9aa,_0x2873ee,_0x23215c,_0x1d1514)=>{for(var _0x58c977=_0x1d1514>0x1?void 0x0:_0x1d1514?_0x24a82a(_0x2873ee,_0x23215c):_0x2873ee,_0x44dd26=_0x1ee9aa['length']-0x1,_0x30949c;_0x44dd26>=0x0;_0x44dd26--)(_0x30949c=_0x1ee9aa[_0x44dd26])&&(_0x58c977=_0x30949c(_0x58c977)||_0x58c977);return _0x58c977;},_0x458d72=(_0x516ba8,_0x38ebe2)=>(_0x37267e,_0x3c312d)=>_0x38ebe2(_0x37267e,_0x3c312d,_0x516ba8),_0x5d0431=(_0x4076cf,_0x119121,_0x372dff)=>_0x4d425e(_0x4076cf,typeof _0x119121!=_0x2c26be(0x163)?_0x119121+'':_0x119121,_0x372dff);const _0x355e3a=_0x2c26be(0x17c);_0x35d790[_0x2c26be(0x18a)]=class extends _0x6cbf80[_0x2c26be(0x198)]{constructor(_0x473705=_0x56f54b,_0x7efeae,_0x44f0b7){const _0x1718aa=_0x2c26be;super(),this['_config']=_0x473705,this[_0x1718aa(0x178)]=_0x7efeae,this[_0x1718aa(0x185)]=_0x44f0b7;const {menu:_0x4af49c,..._0xa918b}=_0x6cbf80[_0x1718aa(0x19a)]({},_0x56f54b,this[_0x1718aa(0x19d)]);_0x4af49c&&this[_0x1718aa(0x185)]['setConfig']('menu',_0x4af49c,{'merge':!0x0}),this[_0x1718aa(0x185)][_0x1718aa(0x19e)](_0x474f65,_0xa918b);}[_0x2c26be(0x186)](){const _0x44aceb=_0x2c26be;[[_0x27c4ff]][_0x44aceb(0x167)](_0xa711f5=>this[_0x44aceb(0x178)][_0x44aceb(0x183)](_0xa711f5));}[_0x2c26be(0x1a0)](){const _0x57ef76=_0x2c26be;this[_0x57ef76(0x178)][_0x57ef76(0x16b)](_0x27c4ff);}},_0x5d0431(_0x35d790['UniverSheetsExchangeClientPlugin'],'pluginName',_0x355e3a),_0x5d0431(_0x35d790['UniverSheetsExchangeClientPlugin'],_0x2c26be(0x189),_0x6cbf80[_0x2c26be(0x18f)]['UNIVER_SHEET']),_0x35d790[_0x2c26be(0x18a)]=_0x5c9809([_0x6cbf80[_0x2c26be(0x17a)](_0x385246['UniverExchangeClientPlugin']),_0x458d72(0x1,_0x6cbf80[_0x2c26be(0x195)](_0x6cbf80[_0x2c26be(0x19b)])),_0x458d72(0x2,_0x6cbf80[_0x2c26be(0x164)])],_0x35d790[_0x2c26be(0x18a)]),_0x35d790['ExportXLSXOperation']=_0x5f4d7f,_0x35d790['ImportXLSXOperation']=_0x4a5190,Object[_0x2c26be(0x190)](_0x35d790,Symbol['toStringTag'],{'value':_0x2c26be(0x177)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.15.0-insiders.20260108-47c73e3",
3
+ "version": "0.15.0-insiders.20260110-48b77c8",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -42,11 +42,11 @@
42
42
  "lib"
43
43
  ],
44
44
  "dependencies": {
45
- "@univerjs-pro/exchange-client": "0.15.0-insiders.20260108-47c73e3",
46
- "@univerjs/sheets-ui": "0.15.0-insiders.20260108-47c73e3",
47
- "@univerjs/sheets": "0.15.0-insiders.20260108-47c73e3",
48
- "@univerjs/ui": "0.15.0-insiders.20260108-47c73e3",
49
- "@univerjs/core": "0.15.0-insiders.20260108-47c73e3"
45
+ "@univerjs-pro/exchange-client": "0.15.0-insiders.20260110-48b77c8",
46
+ "@univerjs/sheets": "0.15.0-insiders.20260110-48b77c8",
47
+ "@univerjs/core": "0.15.0-insiders.20260110-48b77c8",
48
+ "@univerjs/sheets-ui": "0.15.0-insiders.20260110-48b77c8",
49
+ "@univerjs/ui": "0.15.0-insiders.20260110-48b77c8"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",