@univerjs-pro/sheets-exchange-client 0.15.0-insiders.20260107-3d1cfdf → 0.15.0-insiders.20260108-47c73e3

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 _0xffeec6=_0x156c;(function(_0x4c0ca8,_0x53bbbe){const _0xce687b=_0x156c,_0x289418=_0x4c0ca8();while(!![]){try{const _0x28389e=-parseInt(_0xce687b(0xa3))/0x1*(-parseInt(_0xce687b(0xad))/0x2)+parseInt(_0xce687b(0xc3))/0x3+parseInt(_0xce687b(0xac))/0x4+parseInt(_0xce687b(0xb5))/0x5+-parseInt(_0xce687b(0xa9))/0x6*(parseInt(_0xce687b(0x9a))/0x7)+parseInt(_0xce687b(0x8c))/0x8*(-parseInt(_0xce687b(0xb4))/0x9)+-parseInt(_0xce687b(0x8d))/0xa*(parseInt(_0xce687b(0x8b))/0xb);if(_0x28389e===_0x53bbbe)break;else _0x289418['push'](_0x289418['shift']());}catch(_0x206f13){_0x289418['push'](_0x289418['shift']());}}}(_0x42d1,0x766b5));Object['defineProperty'](exports,Symbol[_0xffeec6(0xaa)],{'value':_0xffeec6(0x88)});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':_0xffeec6(0xa0),'type':i[_0xffeec6(0xbd)][_0xffeec6(0xa6)],'handler':async _0x4a1ac5=>{const _0x435bcf=_0xffeec6,_0x4f4d5d=_0x4a1ac5[_0x435bcf(0x97)](g['IExchangeOperateService']);return new URLSearchParams(location['search'])[_0x435bcf(0x97)](_0x435bcf(0x92))?_0x4f4d5d['importXLSXToUnitId']():_0x4f4d5d[_0x435bcf(0x94)](),!0x0;}},p={'id':_0xffeec6(0x90),'type':i[_0xffeec6(0xbd)]['OPERATION'],'handler':async _0x4ce49d=>{const _0x4fdd9e=_0xffeec6,_0x52d4f3=_0x4ce49d[_0x4fdd9e(0x97)](g['IExchangeOperateService']);return new URLSearchParams(location[_0x4fdd9e(0x9d)])[_0x4fdd9e(0x97)](_0x4fdd9e(0x92))?_0x52d4f3['exportXLSXByUnitId']():_0x52d4f3[_0x4fdd9e(0xa2)](),!0x0;}},v='sheets-exchange-client.config',h={},S=_0xffeec6(0xc0);function x(_0x4d575c){const _0x1cfd18=_0xffeec6;return{'id':S,'type':c[_0x1cfd18(0xb3)][_0x1cfd18(0xbe)],'icon':_0x1cfd18(0xae),'tooltip':_0x1cfd18(0xb1),'hidden$':c[_0x1cfd18(0xb2)](_0x4d575c,i[_0x1cfd18(0xc4)]['UNIVER_SHEET']),'disabled$':I[_0x1cfd18(0xa8)](_0x4d575c,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x401932=_0xffeec6;return{'id':l['id'],'type':c[_0x401932(0xb3)][_0x401932(0xbc)],'title':'exchange.upload','icon':_0x401932(0xbf)};}function C(){const _0x1604d9=_0xffeec6;return{'id':p['id'],'type':c[_0x1604d9(0xb3)][_0x1604d9(0xbc)],'title':_0x1604d9(0xb8),'icon':_0x1604d9(0xc2)};}function _0x42d1(){const _0x3b0e51=['3965275rGdzkc','ICommandService','add','exchange.download','IMenuManagerService','onStarting','mergeMenu','BUTTON','CommandType','SUBITEMS','FolderIcon','sheets-exchange-client.operation.exchange','OTHERS','ExportIcon','2613744QKfumS','UniverInstanceType','onReady','SHEET_EXCHANGE_CLIENT_PLUGIN','setConfig','Module','Plugin','DependentOn','957iYqVwq','4376DpEgHk','134460pzmyaW','_menuManagerService','ExportXLSXOperation','exchange-client.operation.export-xlsx','_injector','unit','pluginName','importXLSXToSnapshot','registerCommand','getOwnPropertyDescriptor','get','length','_configService','70tulpXL','defineProperty','_initCommands','search','merge','type','exchange-client.operation.import-xlsx','Injector','exportXLSXBySnapshot','401179YFwmAc','UniverSheetsExchangeClientPlugin','_config','OPERATION','disposeWithMe','getCurrentRangeDisable$','257154GlrRua','toStringTag','menu','1699692eMTmcc','2eTPkbG','DirectExportIcon','UniverExchangeClientPlugin','_commandService','exchange.file','getMenuHiddenObservable','MenuItemType','6696oOCSRo'];_0x42d1=function(){return _0x3b0e51;};return _0x42d1();}const f={[c['RibbonStartGroup'][_0xffeec6(0xc1)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x429665,_0xc26c3b,_0x32d289,_0x391eaa)=>{const _0x228128=_0xffeec6;for(var _0x55139e=_0x391eaa>0x1?void 0x0:_0x391eaa?T(_0xc26c3b,_0x32d289):_0xc26c3b,_0x11d36b=_0x429665[_0x228128(0x98)]-0x1,_0x390829;_0x11d36b>=0x0;_0x11d36b--)(_0x390829=_0x429665[_0x11d36b])&&(_0x55139e=_0x390829(_0x55139e)||_0x55139e);return _0x55139e;},m=(_0x179323,_0xdb8e2a)=>(_0x1e673b,_0x55b400)=>_0xdb8e2a(_0x1e673b,_0x55b400,_0x179323);function _0x156c(_0x6618c7,_0x3e13c1){_0x6618c7=_0x6618c7-0x88;const _0x42d1de=_0x42d1();let _0x156c41=_0x42d1de[_0x6618c7];return _0x156c41;}let u=class extends i['Disposable']{constructor(_0x47a46a,_0x4710ae){const _0x223eab=_0xffeec6;super(),this[_0x223eab(0xb0)]=_0x47a46a,this['_menuManagerService']=_0x4710ae,this['_initCommands'](),this['_initMenus']();}[_0xffeec6(0x9c)](){[l,p]['forEach'](_0x14e20e=>{const _0x1f802e=_0x156c;this[_0x1f802e(0xa7)](this[_0x1f802e(0xb0)][_0x1f802e(0x95)](_0x14e20e));});}['_initMenus'](){const _0x2d232f=_0xffeec6;this[_0x2d232f(0x8e)][_0x2d232f(0xbb)](f);}};u=y([m(0x0,i[_0xffeec6(0xb6)]),m(0x1,c[_0xffeec6(0xb9)])],u);var O=Object[_0xffeec6(0x9b)],U=Object[_0xffeec6(0x96)],X=(_0x5bc6bb,_0x12bed0,_0x1f370e)=>_0x12bed0 in _0x5bc6bb?O(_0x5bc6bb,_0x12bed0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f370e}):_0x5bc6bb[_0x12bed0]=_0x1f370e,N=(_0x2d1e2a,_0x47ffc8,_0x3b46cd,_0x57fc49)=>{const _0x1e4d26=_0xffeec6;for(var _0x12a0d4=_0x57fc49>0x1?void 0x0:_0x57fc49?U(_0x47ffc8,_0x3b46cd):_0x47ffc8,_0x3071b4=_0x2d1e2a[_0x1e4d26(0x98)]-0x1,_0x38c3bb;_0x3071b4>=0x0;_0x3071b4--)(_0x38c3bb=_0x2d1e2a[_0x3071b4])&&(_0x12a0d4=_0x38c3bb(_0x12a0d4)||_0x12a0d4);return _0x12a0d4;},d=(_0x3b949e,_0x41da92)=>(_0x3a2f0a,_0x215d7c)=>_0x41da92(_0x3a2f0a,_0x215d7c,_0x3b949e),E=(_0xa06851,_0x2d1be8,_0x4b8120)=>X(_0xa06851,typeof _0x2d1be8!='symbol'?_0x2d1be8+'':_0x2d1be8,_0x4b8120);const L=_0xffeec6(0xc6);exports[_0xffeec6(0xa4)]=class extends i[_0xffeec6(0x89)]{constructor(_0x34c392=h,_0x1bffaa,_0x2f336b){const _0x50b706=_0xffeec6;super(),this[_0x50b706(0xa5)]=_0x34c392,this[_0x50b706(0x91)]=_0x1bffaa,this['_configService']=_0x2f336b;const {menu:_0x1ce342,..._0x43a2ee}=i[_0x50b706(0x9e)]({},h,this[_0x50b706(0xa5)]);_0x1ce342&&this[_0x50b706(0x99)][_0x50b706(0xc7)](_0x50b706(0xab),_0x1ce342,{'merge':!0x0}),this[_0x50b706(0x99)][_0x50b706(0xc7)](v,_0x43a2ee);}[_0xffeec6(0xba)](){const _0x21c155=_0xffeec6;[[u]]['forEach'](_0x4166c2=>this['_injector'][_0x21c155(0xb7)](_0x4166c2));}[_0xffeec6(0xc5)](){const _0x37dea5=_0xffeec6;this[_0x37dea5(0x91)][_0x37dea5(0x97)](u);}},E(exports[_0xffeec6(0xa4)],_0xffeec6(0x93),L),E(exports[_0xffeec6(0xa4)],_0xffeec6(0x9f),i[_0xffeec6(0xc4)]['UNIVER_SHEET']),exports[_0xffeec6(0xa4)]=N([i[_0xffeec6(0x8a)](g[_0xffeec6(0xaf)]),d(0x1,i['Inject'](i[_0xffeec6(0xa1)])),d(0x2,i['IConfigService'])],exports[_0xffeec6(0xa4)]),exports[_0xffeec6(0x8f)]=p,exports['ImportXLSXOperation']=l;
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;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x7efa23=_0x2013;function _0xdb3c(){const _0x495e02=['add','SHEET_EXCHANGE_CLIENT_PLUGIN','forEach','get','_initMenus','importXLSXToUnitId','_commandService','setConfig','22RrmcwM','onReady','importXLSXToSnapshot','7950bfhqWY','_injector','length','onStarting','3429630lhlglu','2461228VEoulk','2105580RJvWSW','OPERATION','search','38824wViThZ','registerCommand','exchange-client.operation.import-xlsx','6225VQOwdq','sheets-exchange-client.config','_config','exchange.download','exchange.upload','FolderIcon','symbol','DirectExportIcon','UNIVER_SHEET','getOwnPropertyDescriptor','disposeWithMe','_menuManagerService','2867193RIOlBE','BUTTON','2436Knzzcs','ExportIcon','type','_initCommands','menu','exchange-client.operation.export-xlsx','_configService','mergeMenu','exportXLSXByUnitId','pluginName','1141ObGMBe','14NlqmUH'];_0xdb3c=function(){return _0x495e02;};return _0xdb3c();}(function(_0x25348b,_0x30d137){const _0x5283b6=_0x2013,_0x147dbf=_0x25348b();while(!![]){try{const _0x5a5c1d=parseInt(_0x5283b6(0xc0))/0x1*(-parseInt(_0x5283b6(0xe5))/0x2)+parseInt(_0x5283b6(0xd8))/0x3+-parseInt(_0x5283b6(0xc5))/0x4+-parseInt(_0x5283b6(0xcc))/0x5*(parseInt(_0x5283b6(0xda))/0x6)+-parseInt(_0x5283b6(0xe4))/0x7*(-parseInt(_0x5283b6(0xc9))/0x8)+parseInt(_0x5283b6(0xc4))/0x9+-parseInt(_0x5283b6(0xc6))/0xa*(parseInt(_0x5283b6(0xee))/0xb);if(_0x5a5c1d===_0x30d137)break;else _0x147dbf['push'](_0x147dbf['shift']());}catch(_0x3e4aca){_0x147dbf['push'](_0x147dbf['shift']());}}}(_0xdb3c,0x81779));import{IExchangeOperateService as _0x471f54,UniverExchangeClientPlugin as _0x2a21f9}from'@univerjs-pro/exchange-client';import{CommandType as _0x197161,UniverInstanceType as _0x1d5be8,Disposable as _0x3f93d7,ICommandService as _0x443501,DependentOn as _0x516041,Inject as _0x53032f,Injector as _0x399950,IConfigService as _0x4e9e23,Plugin as _0x4c6a89,merge as _0x4eef97}from'@univerjs/core';import{MenuItemType as _0xfe0217,getMenuHiddenObservable as _0x1332c6,RibbonStartGroup as _0x2a8772,IMenuManagerService as _0x48117e}from'@univerjs/ui';import{WorkbookExportPermission as _0x3506a7}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x23cf8b}from'@univerjs/sheets-ui';const p={'id':_0x7efa23(0xcb),'type':_0x197161[_0x7efa23(0xc7)],'handler':async _0x589946=>{const _0xbb5774=_0x7efa23,_0x364065=_0x589946[_0xbb5774(0xe9)](_0x471f54);return new URLSearchParams(location[_0xbb5774(0xc8)])[_0xbb5774(0xe9)]('unit')?_0x364065[_0xbb5774(0xeb)]():_0x364065[_0xbb5774(0xf0)](),!0x0;}},u={'id':_0x7efa23(0xdf),'type':_0x197161[_0x7efa23(0xc7)],'handler':async _0x4a7660=>{const _0x5f2a63=_0x7efa23,_0xd723a2=_0x4a7660['get'](_0x471f54);return new URLSearchParams(location[_0x5f2a63(0xc8)])['get']('unit')?_0xd723a2[_0x5f2a63(0xe2)]():_0xd723a2['exportXLSXBySnapshot'](),!0x0;}},H=_0x7efa23(0xcd),l={},S='sheets-exchange-client.operation.exchange';function R(_0xeb3c33){const _0x27dcfc=_0x7efa23;return{'id':S,'type':_0xfe0217['SUBITEMS'],'icon':_0x27dcfc(0xd3),'tooltip':'exchange.file','hidden$':_0x1332c6(_0xeb3c33,_0x1d5be8['UNIVER_SHEET']),'disabled$':_0x23cf8b(_0xeb3c33,{'workbookTypes':[_0x3506a7]})};}function _0x2013(_0xc473f8,_0x5895e4){_0xc473f8=_0xc473f8-0xc0;const _0xdb3c1c=_0xdb3c();let _0x20135f=_0xdb3c1c[_0xc473f8];return _0x20135f;}function w(){const _0x414d5e=_0x7efa23;return{'id':p['id'],'type':_0xfe0217[_0x414d5e(0xd9)],'title':_0x414d5e(0xd0),'icon':_0x414d5e(0xd1)};}function D(){const _0x47b3fb=_0x7efa23;return{'id':u['id'],'type':_0xfe0217['BUTTON'],'title':_0x47b3fb(0xcf),'icon':_0x47b3fb(0xdb)};}const F={[_0x2a8772['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x1f4fb9,_0x4bd1e1,_0x52dedc,_0xad196d)=>{const _0xb43729=_0x7efa23;for(var _0x5e3b20=_0xad196d>0x1?void 0x0:_0xad196d?G(_0x4bd1e1,_0x52dedc):_0x4bd1e1,_0x3c127d=_0x1f4fb9[_0xb43729(0xc2)]-0x1,_0x565a1e;_0x3c127d>=0x0;_0x3c127d--)(_0x565a1e=_0x1f4fb9[_0x3c127d])&&(_0x5e3b20=_0x565a1e(_0x5e3b20)||_0x5e3b20);return _0x5e3b20;},d=(_0x2bd593,_0x540fa5)=>(_0x27bf59,_0x50004d)=>_0x540fa5(_0x27bf59,_0x50004d,_0x2bd593);let c=class extends _0x3f93d7{constructor(_0x5398ee,_0x4b9884){const _0x54295d=_0x7efa23;super(),this[_0x54295d(0xec)]=_0x5398ee,this['_menuManagerService']=_0x4b9884,this[_0x54295d(0xdd)](),this[_0x54295d(0xea)]();}[_0x7efa23(0xdd)](){const _0x4203d5=_0x7efa23;[p,u][_0x4203d5(0xe8)](_0x1705df=>{const _0x548d08=_0x4203d5;this[_0x548d08(0xd6)](this[_0x548d08(0xec)][_0x548d08(0xca)](_0x1705df));});}[_0x7efa23(0xea)](){const _0x14be45=_0x7efa23;this[_0x14be45(0xd7)][_0x14be45(0xe1)](F);}};c=A([d(0x0,_0x443501),d(0x1,_0x48117e)],c);var j=Object['defineProperty'],B=Object[_0x7efa23(0xd5)],$=(_0x34122a,_0x538219,_0x458d72)=>_0x538219 in _0x34122a?j(_0x34122a,_0x538219,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x458d72}):_0x34122a[_0x538219]=_0x458d72,V=(_0x473c03,_0x26ea79,_0x329ac3,_0x3c649b)=>{const _0x20dfd7=_0x7efa23;for(var _0x7fed3=_0x3c649b>0x1?void 0x0:_0x3c649b?B(_0x26ea79,_0x329ac3):_0x26ea79,_0x36408e=_0x473c03[_0x20dfd7(0xc2)]-0x1,_0x3b8409;_0x36408e>=0x0;_0x36408e--)(_0x3b8409=_0x473c03[_0x36408e])&&(_0x7fed3=_0x3b8409(_0x7fed3)||_0x7fed3);return _0x7fed3;},_=(_0x3ec029,_0x515d29)=>(_0x41166a,_0x2a39f5)=>_0x515d29(_0x41166a,_0x2a39f5,_0x3ec029),I=(_0x10eece,_0x3474b7,_0x301b32)=>$(_0x10eece,typeof _0x3474b7!=_0x7efa23(0xd2)?_0x3474b7+'':_0x3474b7,_0x301b32);const W=_0x7efa23(0xe7);let s=class extends _0x4c6a89{constructor(_0x451601=l,_0x38ca42,_0x1e88a5){const _0x3cbb9f=_0x7efa23;super(),this[_0x3cbb9f(0xce)]=_0x451601,this['_injector']=_0x38ca42,this['_configService']=_0x1e88a5;const {menu:_0x5e74fb,..._0x4427f1}=_0x4eef97({},l,this[_0x3cbb9f(0xce)]);_0x5e74fb&&this[_0x3cbb9f(0xe0)][_0x3cbb9f(0xed)](_0x3cbb9f(0xde),_0x5e74fb,{'merge':!0x0}),this[_0x3cbb9f(0xe0)][_0x3cbb9f(0xed)](H,_0x4427f1);}[_0x7efa23(0xc3)](){const _0x829b2a=_0x7efa23;[[c]][_0x829b2a(0xe8)](_0x27079a=>this['_injector'][_0x829b2a(0xe6)](_0x27079a));}[_0x7efa23(0xef)](){const _0x382087=_0x7efa23;this[_0x382087(0xc1)][_0x382087(0xe9)](c);}};I(s,_0x7efa23(0xe3),W),I(s,_0x7efa23(0xdc),_0x1d5be8[_0x7efa23(0xd4)]),s=V([_0x516041(_0x2a21f9),_(0x1,_0x53032f(_0x399950)),_(0x2,_0x4e9e23)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
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};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x7efa23=_0x2013;function _0xdb3c(){const _0x495e02=['add','SHEET_EXCHANGE_CLIENT_PLUGIN','forEach','get','_initMenus','importXLSXToUnitId','_commandService','setConfig','22RrmcwM','onReady','importXLSXToSnapshot','7950bfhqWY','_injector','length','onStarting','3429630lhlglu','2461228VEoulk','2105580RJvWSW','OPERATION','search','38824wViThZ','registerCommand','exchange-client.operation.import-xlsx','6225VQOwdq','sheets-exchange-client.config','_config','exchange.download','exchange.upload','FolderIcon','symbol','DirectExportIcon','UNIVER_SHEET','getOwnPropertyDescriptor','disposeWithMe','_menuManagerService','2867193RIOlBE','BUTTON','2436Knzzcs','ExportIcon','type','_initCommands','menu','exchange-client.operation.export-xlsx','_configService','mergeMenu','exportXLSXByUnitId','pluginName','1141ObGMBe','14NlqmUH'];_0xdb3c=function(){return _0x495e02;};return _0xdb3c();}(function(_0x25348b,_0x30d137){const _0x5283b6=_0x2013,_0x147dbf=_0x25348b();while(!![]){try{const _0x5a5c1d=parseInt(_0x5283b6(0xc0))/0x1*(-parseInt(_0x5283b6(0xe5))/0x2)+parseInt(_0x5283b6(0xd8))/0x3+-parseInt(_0x5283b6(0xc5))/0x4+-parseInt(_0x5283b6(0xcc))/0x5*(parseInt(_0x5283b6(0xda))/0x6)+-parseInt(_0x5283b6(0xe4))/0x7*(-parseInt(_0x5283b6(0xc9))/0x8)+parseInt(_0x5283b6(0xc4))/0x9+-parseInt(_0x5283b6(0xc6))/0xa*(parseInt(_0x5283b6(0xee))/0xb);if(_0x5a5c1d===_0x30d137)break;else _0x147dbf['push'](_0x147dbf['shift']());}catch(_0x3e4aca){_0x147dbf['push'](_0x147dbf['shift']());}}}(_0xdb3c,0x81779));import{IExchangeOperateService as _0x471f54,UniverExchangeClientPlugin as _0x2a21f9}from'@univerjs-pro/exchange-client';import{CommandType as _0x197161,UniverInstanceType as _0x1d5be8,Disposable as _0x3f93d7,ICommandService as _0x443501,DependentOn as _0x516041,Inject as _0x53032f,Injector as _0x399950,IConfigService as _0x4e9e23,Plugin as _0x4c6a89,merge as _0x4eef97}from'@univerjs/core';import{MenuItemType as _0xfe0217,getMenuHiddenObservable as _0x1332c6,RibbonStartGroup as _0x2a8772,IMenuManagerService as _0x48117e}from'@univerjs/ui';import{WorkbookExportPermission as _0x3506a7}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x23cf8b}from'@univerjs/sheets-ui';const p={'id':_0x7efa23(0xcb),'type':_0x197161[_0x7efa23(0xc7)],'handler':async _0x589946=>{const _0xbb5774=_0x7efa23,_0x364065=_0x589946[_0xbb5774(0xe9)](_0x471f54);return new URLSearchParams(location[_0xbb5774(0xc8)])[_0xbb5774(0xe9)]('unit')?_0x364065[_0xbb5774(0xeb)]():_0x364065[_0xbb5774(0xf0)](),!0x0;}},u={'id':_0x7efa23(0xdf),'type':_0x197161[_0x7efa23(0xc7)],'handler':async _0x4a7660=>{const _0x5f2a63=_0x7efa23,_0xd723a2=_0x4a7660['get'](_0x471f54);return new URLSearchParams(location[_0x5f2a63(0xc8)])['get']('unit')?_0xd723a2[_0x5f2a63(0xe2)]():_0xd723a2['exportXLSXBySnapshot'](),!0x0;}},H=_0x7efa23(0xcd),l={},S='sheets-exchange-client.operation.exchange';function R(_0xeb3c33){const _0x27dcfc=_0x7efa23;return{'id':S,'type':_0xfe0217['SUBITEMS'],'icon':_0x27dcfc(0xd3),'tooltip':'exchange.file','hidden$':_0x1332c6(_0xeb3c33,_0x1d5be8['UNIVER_SHEET']),'disabled$':_0x23cf8b(_0xeb3c33,{'workbookTypes':[_0x3506a7]})};}function _0x2013(_0xc473f8,_0x5895e4){_0xc473f8=_0xc473f8-0xc0;const _0xdb3c1c=_0xdb3c();let _0x20135f=_0xdb3c1c[_0xc473f8];return _0x20135f;}function w(){const _0x414d5e=_0x7efa23;return{'id':p['id'],'type':_0xfe0217[_0x414d5e(0xd9)],'title':_0x414d5e(0xd0),'icon':_0x414d5e(0xd1)};}function D(){const _0x47b3fb=_0x7efa23;return{'id':u['id'],'type':_0xfe0217['BUTTON'],'title':_0x47b3fb(0xcf),'icon':_0x47b3fb(0xdb)};}const F={[_0x2a8772['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x1f4fb9,_0x4bd1e1,_0x52dedc,_0xad196d)=>{const _0xb43729=_0x7efa23;for(var _0x5e3b20=_0xad196d>0x1?void 0x0:_0xad196d?G(_0x4bd1e1,_0x52dedc):_0x4bd1e1,_0x3c127d=_0x1f4fb9[_0xb43729(0xc2)]-0x1,_0x565a1e;_0x3c127d>=0x0;_0x3c127d--)(_0x565a1e=_0x1f4fb9[_0x3c127d])&&(_0x5e3b20=_0x565a1e(_0x5e3b20)||_0x5e3b20);return _0x5e3b20;},d=(_0x2bd593,_0x540fa5)=>(_0x27bf59,_0x50004d)=>_0x540fa5(_0x27bf59,_0x50004d,_0x2bd593);let c=class extends _0x3f93d7{constructor(_0x5398ee,_0x4b9884){const _0x54295d=_0x7efa23;super(),this[_0x54295d(0xec)]=_0x5398ee,this['_menuManagerService']=_0x4b9884,this[_0x54295d(0xdd)](),this[_0x54295d(0xea)]();}[_0x7efa23(0xdd)](){const _0x4203d5=_0x7efa23;[p,u][_0x4203d5(0xe8)](_0x1705df=>{const _0x548d08=_0x4203d5;this[_0x548d08(0xd6)](this[_0x548d08(0xec)][_0x548d08(0xca)](_0x1705df));});}[_0x7efa23(0xea)](){const _0x14be45=_0x7efa23;this[_0x14be45(0xd7)][_0x14be45(0xe1)](F);}};c=A([d(0x0,_0x443501),d(0x1,_0x48117e)],c);var j=Object['defineProperty'],B=Object[_0x7efa23(0xd5)],$=(_0x34122a,_0x538219,_0x458d72)=>_0x538219 in _0x34122a?j(_0x34122a,_0x538219,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x458d72}):_0x34122a[_0x538219]=_0x458d72,V=(_0x473c03,_0x26ea79,_0x329ac3,_0x3c649b)=>{const _0x20dfd7=_0x7efa23;for(var _0x7fed3=_0x3c649b>0x1?void 0x0:_0x3c649b?B(_0x26ea79,_0x329ac3):_0x26ea79,_0x36408e=_0x473c03[_0x20dfd7(0xc2)]-0x1,_0x3b8409;_0x36408e>=0x0;_0x36408e--)(_0x3b8409=_0x473c03[_0x36408e])&&(_0x7fed3=_0x3b8409(_0x7fed3)||_0x7fed3);return _0x7fed3;},_=(_0x3ec029,_0x515d29)=>(_0x41166a,_0x2a39f5)=>_0x515d29(_0x41166a,_0x2a39f5,_0x3ec029),I=(_0x10eece,_0x3474b7,_0x301b32)=>$(_0x10eece,typeof _0x3474b7!=_0x7efa23(0xd2)?_0x3474b7+'':_0x3474b7,_0x301b32);const W=_0x7efa23(0xe7);let s=class extends _0x4c6a89{constructor(_0x451601=l,_0x38ca42,_0x1e88a5){const _0x3cbb9f=_0x7efa23;super(),this[_0x3cbb9f(0xce)]=_0x451601,this['_injector']=_0x38ca42,this['_configService']=_0x1e88a5;const {menu:_0x5e74fb,..._0x4427f1}=_0x4eef97({},l,this[_0x3cbb9f(0xce)]);_0x5e74fb&&this[_0x3cbb9f(0xe0)][_0x3cbb9f(0xed)](_0x3cbb9f(0xde),_0x5e74fb,{'merge':!0x0}),this[_0x3cbb9f(0xe0)][_0x3cbb9f(0xed)](H,_0x4427f1);}[_0x7efa23(0xc3)](){const _0x829b2a=_0x7efa23;[[c]][_0x829b2a(0xe8)](_0x27079a=>this['_injector'][_0x829b2a(0xe6)](_0x27079a));}[_0x7efa23(0xef)](){const _0x382087=_0x7efa23;this[_0x382087(0xc1)][_0x382087(0xe9)](c);}};I(s,_0x7efa23(0xe3),W),I(s,_0x7efa23(0xdc),_0x1d5be8[_0x7efa23(0xd4)]),s=V([_0x516041(_0x2a21f9),_(0x1,_0x53032f(_0x399950)),_(0x2,_0x4e9e23)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
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};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x54fbd,_0x34733d){const _0x1201ed=_0x22c1,_0x48a6db=_0x54fbd();while(!![]){try{const _0x388746=parseInt(_0x1201ed(0x8d))/0x1*(-parseInt(_0x1201ed(0xa5))/0x2)+-parseInt(_0x1201ed(0xb3))/0x3+parseInt(_0x1201ed(0xb8))/0x4+parseInt(_0x1201ed(0x9d))/0x5+parseInt(_0x1201ed(0xb6))/0x6+-parseInt(_0x1201ed(0xbd))/0x7*(parseInt(_0x1201ed(0xc0))/0x8)+parseInt(_0x1201ed(0x8b))/0x9;if(_0x388746===_0x34733d)break;else _0x48a6db['push'](_0x48a6db['shift']());}catch(_0x1ce653){_0x48a6db['push'](_0x48a6db['shift']());}}}(_0x6d46,0x96dae),function(_0x17793c,_0x16a881){const _0x372bd4=_0x22c1;typeof exports==_0x372bd4(0xc1)&&typeof module<'u'?_0x16a881(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x372bd4(0xcd)&&define[_0x372bd4(0x9b)]?define([_0x372bd4(0x9f),'@univerjs-pro/exchange-client',_0x372bd4(0xb2),'@univerjs/ui',_0x372bd4(0x88),_0x372bd4(0x8e)],_0x16a881):(_0x17793c=typeof globalThis<'u'?globalThis:_0x17793c||self,_0x16a881(_0x17793c['UniverProSheetsExchangeClient']={},_0x17793c[_0x372bd4(0xad)],_0x17793c[_0x372bd4(0xc4)],_0x17793c[_0x372bd4(0xb9)],_0x17793c['UniverSheets'],_0x17793c[_0x372bd4(0x99)]));}(this,function(_0x293460,_0x589879,_0x29ef7d,_0x203997,_0x6360c6,_0x3cda3d){'use strict';const _0x2db6db=_0x22c1;const _0x368bcf={'id':_0x2db6db(0xcc),'type':_0x29ef7d[_0x2db6db(0xbb)]['OPERATION'],'handler':async _0x260b9f=>{const _0x4a5858=_0x2db6db,_0x350426=_0x260b9f[_0x4a5858(0xa9)](_0x589879[_0x4a5858(0x9e)]);return new URLSearchParams(location[_0x4a5858(0x92)])['get'](_0x4a5858(0xbc))?_0x350426['importXLSXToUnitId']():_0x350426[_0x4a5858(0xab)](),!0x0;}},_0x24bf2e={'id':_0x2db6db(0xaf),'type':_0x29ef7d['CommandType']['OPERATION'],'handler':async _0x8a0562=>{const _0x513e21=_0x2db6db,_0xd15b06=_0x8a0562['get'](_0x589879[_0x513e21(0x9e)]);return new URLSearchParams(location[_0x513e21(0x92)])['get'](_0x513e21(0xbc))?_0xd15b06[_0x513e21(0x94)]():_0xd15b06[_0x513e21(0xca)](),!0x0;}},_0x9ed9b8=_0x2db6db(0x97),_0x3f36b6={},_0x4cb98e=_0x2db6db(0xa4);function _0x33c185(_0x3747a9){const _0x3baf4a=_0x2db6db;return{'id':_0x4cb98e,'type':_0x203997[_0x3baf4a(0xb7)]['SUBITEMS'],'icon':_0x3baf4a(0x95),'tooltip':'exchange.file','hidden$':_0x203997[_0x3baf4a(0x8f)](_0x3747a9,_0x29ef7d[_0x3baf4a(0xb1)][_0x3baf4a(0xac)]),'disabled$':_0x3cda3d[_0x3baf4a(0xc7)](_0x3747a9,{'workbookTypes':[_0x6360c6[_0x3baf4a(0xc3)]]})};}function _0xc505f6(){const _0x4fb451=_0x2db6db;return{'id':_0x368bcf['id'],'type':_0x203997[_0x4fb451(0xb7)][_0x4fb451(0x90)],'title':_0x4fb451(0xbf),'icon':_0x4fb451(0x9a)};}function _0x13a28b(){const _0x5d889b=_0x2db6db;return{'id':_0x24bf2e['id'],'type':_0x203997[_0x5d889b(0xb7)][_0x5d889b(0x90)],'title':_0x5d889b(0xc5),'icon':'ExportIcon'};}const _0x590973={[_0x203997['RibbonStartGroup'][_0x2db6db(0xc6)]]:{[_0x4cb98e]:{'order':0.3,'menuItemFactory':_0x33c185,[_0x368bcf['id']]:{'order':0x0,'menuItemFactory':_0xc505f6},[_0x24bf2e['id']]:{'order':0x1,'menuItemFactory':_0x13a28b}}}};var _0x3eb5dd=Object[_0x2db6db(0xc8)],_0x3cbead=(_0x1c72cf,_0x215c25,_0x30bb12,_0x34733b)=>{const _0x5a24b0=_0x2db6db;for(var _0x56def6=_0x34733b>0x1?void 0x0:_0x34733b?_0x3eb5dd(_0x215c25,_0x30bb12):_0x215c25,_0x4bb5a2=_0x1c72cf[_0x5a24b0(0x93)]-0x1,_0x23b407;_0x4bb5a2>=0x0;_0x4bb5a2--)(_0x23b407=_0x1c72cf[_0x4bb5a2])&&(_0x56def6=_0x23b407(_0x56def6)||_0x56def6);return _0x56def6;},_0x1b002e=(_0x294bac,_0x32cde3)=>(_0x3a2dcf,_0x2811ce)=>_0x32cde3(_0x3a2dcf,_0x2811ce,_0x294bac);let _0x4c362b=class extends _0x29ef7d[_0x2db6db(0xba)]{constructor(_0xb39640,_0x3fa038){const _0x381cf6=_0x2db6db;super(),this[_0x381cf6(0xc9)]=_0xb39640,this[_0x381cf6(0x96)]=_0x3fa038,this[_0x381cf6(0xa6)](),this[_0x381cf6(0x91)]();}[_0x2db6db(0xa6)](){const _0x60b647=_0x2db6db;[_0x368bcf,_0x24bf2e][_0x60b647(0x8c)](_0xba99a3=>{const _0x184cbf=_0x60b647;this[_0x184cbf(0xaa)](this[_0x184cbf(0xc9)]['registerCommand'](_0xba99a3));});}[_0x2db6db(0x91)](){this['_menuManagerService']['mergeMenu'](_0x590973);}};_0x4c362b=_0x3cbead([_0x1b002e(0x0,_0x29ef7d['ICommandService']),_0x1b002e(0x1,_0x203997[_0x2db6db(0xcb)])],_0x4c362b);var _0x7ff815=Object[_0x2db6db(0xae)],_0x15b5cc=Object['getOwnPropertyDescriptor'],_0x1c52d9=(_0x5dccb7,_0x1c3467,_0xa0c012)=>_0x1c3467 in _0x5dccb7?_0x7ff815(_0x5dccb7,_0x1c3467,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa0c012}):_0x5dccb7[_0x1c3467]=_0xa0c012,_0x18d3a5=(_0x4491bb,_0x42206b,_0x5b65b3,_0x643591)=>{for(var _0x110002=_0x643591>0x1?void 0x0:_0x643591?_0x15b5cc(_0x42206b,_0x5b65b3):_0x42206b,_0x1abe87=_0x4491bb['length']-0x1,_0x4819b2;_0x1abe87>=0x0;_0x1abe87--)(_0x4819b2=_0x4491bb[_0x1abe87])&&(_0x110002=_0x4819b2(_0x110002)||_0x110002);return _0x110002;},_0xd4a26b=(_0x59e025,_0x4d02bb)=>(_0x5e5bd6,_0x58e006)=>_0x4d02bb(_0x5e5bd6,_0x58e006,_0x59e025),_0xab677e=(_0x213c19,_0x1b39ba,_0x3c2e0d)=>_0x1c52d9(_0x213c19,typeof _0x1b39ba!='symbol'?_0x1b39ba+'':_0x1b39ba,_0x3c2e0d);const _0x3f92bc='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x293460[_0x2db6db(0x87)]=class extends _0x29ef7d['Plugin']{constructor(_0x1305ac=_0x3f36b6,_0x4e8941,_0x10fb6c){const _0x2a58e6=_0x2db6db;super(),this[_0x2a58e6(0xa8)]=_0x1305ac,this['_injector']=_0x4e8941,this[_0x2a58e6(0x8a)]=_0x10fb6c;const {menu:_0x1d0768,..._0x4b4525}=_0x29ef7d[_0x2a58e6(0xbe)]({},_0x3f36b6,this[_0x2a58e6(0xa8)]);_0x1d0768&&this[_0x2a58e6(0x8a)]['setConfig']('menu',_0x1d0768,{'merge':!0x0}),this['_configService'][_0x2a58e6(0xa7)](_0x9ed9b8,_0x4b4525);}[_0x2db6db(0xb5)](){const _0x65fee9=_0x2db6db;[[_0x4c362b]][_0x65fee9(0x8c)](_0x5477b4=>this[_0x65fee9(0xb4)][_0x65fee9(0x9c)](_0x5477b4));}['onReady'](){const _0x449ab4=_0x2db6db;this[_0x449ab4(0xb4)][_0x449ab4(0xa9)](_0x4c362b);}},_0xab677e(_0x293460[_0x2db6db(0x87)],_0x2db6db(0xa1),_0x3f92bc),_0xab677e(_0x293460['UniverSheetsExchangeClientPlugin'],_0x2db6db(0xa3),_0x29ef7d['UniverInstanceType']['UNIVER_SHEET']),_0x293460['UniverSheetsExchangeClientPlugin']=_0x18d3a5([_0x29ef7d[_0x2db6db(0xc2)](_0x589879[_0x2db6db(0xa2)]),_0xd4a26b(0x1,_0x29ef7d[_0x2db6db(0x98)](_0x29ef7d[_0x2db6db(0x89)])),_0xd4a26b(0x2,_0x29ef7d['IConfigService'])],_0x293460[_0x2db6db(0x87)]),_0x293460['ExportXLSXOperation']=_0x24bf2e,_0x293460[_0x2db6db(0xb0)]=_0x368bcf,Object['defineProperty'](_0x293460,Symbol['toStringTag'],{'value':_0x2db6db(0xa0)});}));function _0x22c1(_0x11144c,_0x5f4830){_0x11144c=_0x11144c-0x87;const _0x6d462f=_0x6d46();let _0x22c1a5=_0x6d462f[_0x11144c];return _0x22c1a5;}function _0x6d46(){const _0x523933=['length','exportXLSXByUnitId','DirectExportIcon','_menuManagerService','sheets-exchange-client.config','Inject','UniverSheetsUi','FolderIcon','amd','add','1671495YiqqBn','IExchangeOperateService','exports','Module','pluginName','UniverExchangeClientPlugin','type','sheets-exchange-client.operation.exchange','2UJyMRw','_initCommands','setConfig','_config','get','disposeWithMe','importXLSXToSnapshot','UNIVER_SHEET','UniverProExchangeClient','defineProperty','exchange-client.operation.export-xlsx','ImportXLSXOperation','UniverInstanceType','@univerjs/core','2594745qVRhoY','_injector','onStarting','790308UMQakf','MenuItemType','4238340enhOdH','UniverUi','Disposable','CommandType','unit','14kMTSlV','merge','exchange.upload','2531216TxAIRW','object','DependentOn','WorkbookExportPermission','UniverCore','exchange.download','OTHERS','getCurrentRangeDisable$','getOwnPropertyDescriptor','_commandService','exportXLSXBySnapshot','IMenuManagerService','exchange-client.operation.import-xlsx','function','UniverSheetsExchangeClientPlugin','@univerjs/sheets','Injector','_configService','13526334LfzyUH','forEach','912907lLcwDV','@univerjs/sheets-ui','getMenuHiddenObservable','BUTTON','_initMenus','search'];_0x6d46=function(){return _0x523933;};return _0x6d46();}
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();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.15.0-insiders.20260107-3d1cfdf",
3
+ "version": "0.15.0-insiders.20260108-47c73e3",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -42,15 +42,15 @@
42
42
  "lib"
43
43
  ],
44
44
  "dependencies": {
45
- "@univerjs-pro/exchange-client": "0.15.0-insiders.20260107-3d1cfdf",
46
- "@univerjs/core": "0.15.0-insiders.20260107-3d1cfdf",
47
- "@univerjs/sheets": "0.15.0-insiders.20260107-3d1cfdf",
48
- "@univerjs/sheets-ui": "0.15.0-insiders.20260107-3d1cfdf",
49
- "@univerjs/ui": "0.15.0-insiders.20260107-3d1cfdf"
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"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",
53
- "vite": "^7.3.0",
53
+ "vite": "^7.3.1",
54
54
  "vitest": "^4.0.16",
55
55
  "@univerjs-infra/shared": "0.15.0"
56
56
  },