@univerjs-pro/sheets-exchange-client 0.15.0-insiders.20251227-dafc157 → 0.15.0-insiders.20251227-453e4ff

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 _0x79aeee=_0x16f5;function _0x16f5(_0x69b9d7,_0x303c95){_0x69b9d7=_0x69b9d7-0xe6;const _0x354c3a=_0x354c();let _0x16f5e7=_0x354c3a[_0x69b9d7];return _0x16f5e7;}(function(_0x27a046,_0x341b6e){const _0x4f3ce8=_0x16f5,_0x5c0ac3=_0x27a046();while(!![]){try{const _0x239b1b=-parseInt(_0x4f3ce8(0x109))/0x1+parseInt(_0x4f3ce8(0x111))/0x2*(parseInt(_0x4f3ce8(0xf1))/0x3)+parseInt(_0x4f3ce8(0x106))/0x4*(parseInt(_0x4f3ce8(0x11a))/0x5)+parseInt(_0x4f3ce8(0x117))/0x6+parseInt(_0x4f3ce8(0x114))/0x7+parseInt(_0x4f3ce8(0x113))/0x8+-parseInt(_0x4f3ce8(0x115))/0x9;if(_0x239b1b===_0x341b6e)break;else _0x5c0ac3['push'](_0x5c0ac3['shift']());}catch(_0x3e8a04){_0x5c0ac3['push'](_0x5c0ac3['shift']());}}}(_0x354c,0xeaa33));function _0x354c(){const _0x13a0b9=['WorkbookExportPermission','type','sheets-exchange-client.config','toStringTag','getCurrentRangeDisable$','exchange-client.operation.import-xlsx','_config','_initCommands','UniverExchangeClientPlugin','ExportIcon','IExchangeOperateService','Inject','_menuManagerService','disposeWithMe','ExportXLSXOperation','OPERATION','length','101512AJwdLW','getOwnPropertyDescriptor','BUTTON','331151eSMsFy','Plugin','_configService','UNIVER_SHEET','ICommandService','DirectExportIcon','ImportXLSXOperation','defineProperty','46URXzOU','get','8969440gKBUxT','7963879qpgEzQ','31817187ZtRYdZ','exportXLSXByUnitId','6490422RSHkBY','_initMenus','exchange.upload','75UViDLH','UniverSheetsExchangeClientPlugin','unit','Injector','RibbonStartGroup','sheets-exchange-client.operation.exchange','importXLSXToSnapshot','IMenuManagerService','_injector','registerCommand','exchange.download','importXLSXToUnitId','Disposable','exchange-client.operation.export-xlsx','MenuItemType','forEach','search','SHEET_EXCHANGE_CLIENT_PLUGIN','onReady','symbol','mergeMenu','menu','UniverInstanceType','144285urZiFv','CommandType','Module','add'];_0x354c=function(){return _0x13a0b9;};return _0x354c();}Object[_0x79aeee(0x110)](exports,Symbol[_0x79aeee(0xf8)],{'value':_0x79aeee(0xf3)});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':_0x79aeee(0xfa),'type':i[_0x79aeee(0xf2)][_0x79aeee(0x104)],'handler':async _0x1135fc=>{const _0x1f3b7c=_0x79aeee,_0x58afa6=_0x1135fc[_0x1f3b7c(0x112)](g[_0x1f3b7c(0xff)]);return new URLSearchParams(location[_0x1f3b7c(0xea)])[_0x1f3b7c(0x112)]('unit')?_0x58afa6[_0x1f3b7c(0x125)]():_0x58afa6[_0x1f3b7c(0x120)](),!0x0;}},p={'id':_0x79aeee(0xe7),'type':i[_0x79aeee(0xf2)]['OPERATION'],'handler':async _0xa0cb93=>{const _0x368c67=_0x79aeee,_0x193c37=_0xa0cb93['get'](g[_0x368c67(0xff)]);return new URLSearchParams(location['search'])[_0x368c67(0x112)](_0x368c67(0x11c))?_0x193c37[_0x368c67(0x116)]():_0x193c37['exportXLSXBySnapshot'](),!0x0;}},v=_0x79aeee(0xf7),h={},S=_0x79aeee(0x11f);function x(_0x238cb9){const _0x42dcf6=_0x79aeee;return{'id':S,'type':c['MenuItemType']['SUBITEMS'],'icon':_0x42dcf6(0x10e),'tooltip':'exchange.file','hidden$':c['getMenuHiddenObservable'](_0x238cb9,i[_0x42dcf6(0xf0)][_0x42dcf6(0x10c)]),'disabled$':I[_0x42dcf6(0xf9)](_0x238cb9,{'workbookTypes':[_[_0x42dcf6(0xf5)]]})};}function P(){const _0x300064=_0x79aeee;return{'id':l['id'],'type':c[_0x300064(0xe8)][_0x300064(0x108)],'title':_0x300064(0x119),'icon':'FolderIcon'};}function C(){const _0x3a8382=_0x79aeee;return{'id':p['id'],'type':c[_0x3a8382(0xe8)][_0x3a8382(0x108)],'title':_0x3a8382(0x124),'icon':_0x3a8382(0xfe)};}const f={[c[_0x79aeee(0x11e)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x50a7ee,_0x2da4d0,_0x1da2a8,_0x3ca59f)=>{const _0x2dfc1=_0x79aeee;for(var _0x4c5c75=_0x3ca59f>0x1?void 0x0:_0x3ca59f?T(_0x2da4d0,_0x1da2a8):_0x2da4d0,_0x561bca=_0x50a7ee[_0x2dfc1(0x105)]-0x1,_0x6bb641;_0x561bca>=0x0;_0x561bca--)(_0x6bb641=_0x50a7ee[_0x561bca])&&(_0x4c5c75=_0x6bb641(_0x4c5c75)||_0x4c5c75);return _0x4c5c75;},m=(_0x50b396,_0x45d929)=>(_0x2dae7a,_0x3e756c)=>_0x45d929(_0x2dae7a,_0x3e756c,_0x50b396);let u=class extends i[_0x79aeee(0xe6)]{constructor(_0x5eb32a,_0x2eec65){const _0x587b17=_0x79aeee;super(),this['_commandService']=_0x5eb32a,this[_0x587b17(0x101)]=_0x2eec65,this[_0x587b17(0xfc)](),this[_0x587b17(0x118)]();}['_initCommands'](){const _0x94d842=_0x79aeee;[l,p][_0x94d842(0xe9)](_0x515854=>{const _0x442232=_0x94d842;this[_0x442232(0x102)](this['_commandService'][_0x442232(0x123)](_0x515854));});}[_0x79aeee(0x118)](){const _0x32e306=_0x79aeee;this[_0x32e306(0x101)][_0x32e306(0xee)](f);}};u=y([m(0x0,i[_0x79aeee(0x10d)]),m(0x1,c[_0x79aeee(0x121)])],u);var O=Object['defineProperty'],U=Object[_0x79aeee(0x107)],X=(_0x5aaf11,_0x1c7877,_0x262e6b)=>_0x1c7877 in _0x5aaf11?O(_0x5aaf11,_0x1c7877,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x262e6b}):_0x5aaf11[_0x1c7877]=_0x262e6b,N=(_0x3d7afd,_0x468dcf,_0x17e2f1,_0x5f38b2)=>{const _0x23c57c=_0x79aeee;for(var _0x141e9e=_0x5f38b2>0x1?void 0x0:_0x5f38b2?U(_0x468dcf,_0x17e2f1):_0x468dcf,_0x43e2ef=_0x3d7afd[_0x23c57c(0x105)]-0x1,_0x51246e;_0x43e2ef>=0x0;_0x43e2ef--)(_0x51246e=_0x3d7afd[_0x43e2ef])&&(_0x141e9e=_0x51246e(_0x141e9e)||_0x141e9e);return _0x141e9e;},d=(_0x208db1,_0x338cd4)=>(_0x4e27ee,_0x50d777)=>_0x338cd4(_0x4e27ee,_0x50d777,_0x208db1),E=(_0x4b0b29,_0x46f0a2,_0x401cc2)=>X(_0x4b0b29,typeof _0x46f0a2!=_0x79aeee(0xed)?_0x46f0a2+'':_0x46f0a2,_0x401cc2);const L=_0x79aeee(0xeb);exports[_0x79aeee(0x11b)]=class extends i[_0x79aeee(0x10a)]{constructor(_0xfd09a6=h,_0x3fc76b,_0x51b3a3){const _0x4a7e8a=_0x79aeee;super(),this[_0x4a7e8a(0xfb)]=_0xfd09a6,this['_injector']=_0x3fc76b,this[_0x4a7e8a(0x10b)]=_0x51b3a3;const {menu:_0x157735,..._0x2daf03}=i['merge']({},h,this[_0x4a7e8a(0xfb)]);_0x157735&&this[_0x4a7e8a(0x10b)]['setConfig'](_0x4a7e8a(0xef),_0x157735,{'merge':!0x0}),this['_configService']['setConfig'](v,_0x2daf03);}['onStarting'](){const _0x29fad3=_0x79aeee;[[u]][_0x29fad3(0xe9)](_0x5861fe=>this[_0x29fad3(0x122)][_0x29fad3(0xf4)](_0x5861fe));}[_0x79aeee(0xec)](){const _0x4e4cbf=_0x79aeee;this[_0x4e4cbf(0x122)][_0x4e4cbf(0x112)](u);}},E(exports[_0x79aeee(0x11b)],'pluginName',L),E(exports[_0x79aeee(0x11b)],_0x79aeee(0xf6),i['UniverInstanceType'][_0x79aeee(0x10c)]),exports[_0x79aeee(0x11b)]=N([i['DependentOn'](g[_0x79aeee(0xfd)]),d(0x1,i[_0x79aeee(0x100)](i[_0x79aeee(0x11d)])),d(0x2,i['IConfigService'])],exports['UniverSheetsExchangeClientPlugin']),exports[_0x79aeee(0x103)]=p,exports[_0x79aeee(0x10f)]=l;
1
+ 'use strict';const _0x4e300b=_0x3a82;function _0x3a82(_0x5adb78,_0x39386f){_0x5adb78=_0x5adb78-0x101;const _0x39c28a=_0x39c2();let _0x3a829a=_0x39c28a[_0x5adb78];return _0x3a829a;}(function(_0x3618a9,_0x425728){const _0x4c00b5=_0x3a82,_0xd79d64=_0x3618a9();while(!![]){try{const _0x1e97f1=-parseInt(_0x4c00b5(0x11c))/0x1+-parseInt(_0x4c00b5(0x12f))/0x2*(-parseInt(_0x4c00b5(0x12b))/0x3)+parseInt(_0x4c00b5(0x132))/0x4+parseInt(_0x4c00b5(0x119))/0x5+parseInt(_0x4c00b5(0x102))/0x6+parseInt(_0x4c00b5(0x13c))/0x7*(-parseInt(_0x4c00b5(0x10d))/0x8)+-parseInt(_0x4c00b5(0x131))/0x9;if(_0x1e97f1===_0x425728)break;else _0xd79d64['push'](_0xd79d64['shift']());}catch(_0x556c30){_0xd79d64['push'](_0xd79d64['shift']());}}}(_0x39c2,0xc431e));Object[_0x4e300b(0x139)](exports,Symbol[_0x4e300b(0x11d)],{'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':_0x4e300b(0x121),'type':i['CommandType'][_0x4e300b(0x124)],'handler':async _0x4b4e25=>{const _0x4057b0=_0x4e300b,_0x21a3cb=_0x4b4e25['get'](g[_0x4057b0(0x11f)]);return new URLSearchParams(location['search'])['get'](_0x4057b0(0x101))?_0x21a3cb['importXLSXToUnitId']():_0x21a3cb[_0x4057b0(0x129)](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i['CommandType']['OPERATION'],'handler':async _0x558ba3=>{const _0x363e3f=_0x4e300b,_0x715681=_0x558ba3[_0x363e3f(0x10a)](g['IExchangeOperateService']);return new URLSearchParams(location[_0x363e3f(0x118)])[_0x363e3f(0x10a)](_0x363e3f(0x101))?_0x715681[_0x363e3f(0x12e)]():_0x715681['exportXLSXBySnapshot'](),!0x0;}},v='sheets-exchange-client.config',h={},S='sheets-exchange-client.operation.exchange';function x(_0x1868e8){const _0x37a1b0=_0x4e300b;return{'id':S,'type':c[_0x37a1b0(0x13a)][_0x37a1b0(0x134)],'icon':_0x37a1b0(0x125),'tooltip':_0x37a1b0(0x10c),'hidden$':c['getMenuHiddenObservable'](_0x1868e8,i[_0x37a1b0(0x136)]['UNIVER_SHEET']),'disabled$':I[_0x37a1b0(0x113)](_0x1868e8,{'workbookTypes':[_[_0x37a1b0(0x126)]]})};}function P(){const _0x264eed=_0x4e300b;return{'id':l['id'],'type':c[_0x264eed(0x13a)][_0x264eed(0x108)],'title':_0x264eed(0x110),'icon':_0x264eed(0x122)};}function C(){const _0x53078b=_0x4e300b;return{'id':p['id'],'type':c[_0x53078b(0x13a)]['BUTTON'],'title':'exchange.download','icon':_0x53078b(0x12d)};}const f={[c[_0x4e300b(0x111)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x4e300b(0x13b)],y=(_0x2bf1bc,_0x3b487b,_0x581739,_0x977361)=>{for(var _0x28229f=_0x977361>0x1?void 0x0:_0x977361?T(_0x3b487b,_0x581739):_0x3b487b,_0x10668d=_0x2bf1bc['length']-0x1,_0x5c5d1e;_0x10668d>=0x0;_0x10668d--)(_0x5c5d1e=_0x2bf1bc[_0x10668d])&&(_0x28229f=_0x5c5d1e(_0x28229f)||_0x28229f);return _0x28229f;},m=(_0x5c810f,_0x4b7aef)=>(_0x574249,_0x1a944e)=>_0x4b7aef(_0x574249,_0x1a944e,_0x5c810f);let u=class extends i[_0x4e300b(0x10b)]{constructor(_0xcf7c5d,_0x1397b9){const _0x57c841=_0x4e300b;super(),this['_commandService']=_0xcf7c5d,this[_0x57c841(0x135)]=_0x1397b9,this[_0x57c841(0x115)](),this[_0x57c841(0x13d)]();}[_0x4e300b(0x115)](){[l,p]['forEach'](_0x5de665=>{const _0x3b6211=_0x3a82;this[_0x3b6211(0x11e)](this[_0x3b6211(0x12a)][_0x3b6211(0x12c)](_0x5de665));});}[_0x4e300b(0x13d)](){const _0x2da384=_0x4e300b;this[_0x2da384(0x135)][_0x2da384(0x138)](f);}};u=y([m(0x0,i[_0x4e300b(0x106)]),m(0x1,c[_0x4e300b(0x10e)])],u);function _0x39c2(){const _0x4667cb=['UNIVER_SHEET','importXLSXToSnapshot','_commandService','357IFwUov','registerCommand','ExportIcon','exportXLSXByUnitId','12742qkCzyx','onReady','6722757oLoIaz','5919464TUQEJg','UniverSheetsExchangeClientPlugin','SUBITEMS','_menuManagerService','UniverInstanceType','SHEET_EXCHANGE_CLIENT_PLUGIN','mergeMenu','defineProperty','MenuItemType','getOwnPropertyDescriptor','11017594mluote','_initMenus','unit','5495166tzteSy','add','pluginName','_injector','ICommandService','setConfig','BUTTON','menu','get','Disposable','exchange.file','8VDWjbV','IMenuManagerService','UniverExchangeClientPlugin','exchange.upload','RibbonStartGroup','Injector','getCurrentRangeDisable$','merge','_initCommands','onStarting','_configService','search','6445975pkKyoG','_config','Inject','1318542URXHCg','toStringTag','disposeWithMe','IExchangeOperateService','ImportXLSXOperation','exchange-client.operation.import-xlsx','FolderIcon','length','OPERATION','DirectExportIcon','WorkbookExportPermission','DependentOn'];_0x39c2=function(){return _0x4667cb;};return _0x39c2();}var O=Object[_0x4e300b(0x139)],U=Object[_0x4e300b(0x13b)],X=(_0x10748c,_0x31df01,_0x1297d7)=>_0x31df01 in _0x10748c?O(_0x10748c,_0x31df01,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1297d7}):_0x10748c[_0x31df01]=_0x1297d7,N=(_0x502c2d,_0x4a4384,_0x32376b,_0x1edbad)=>{const _0x136e7d=_0x4e300b;for(var _0x23198c=_0x1edbad>0x1?void 0x0:_0x1edbad?U(_0x4a4384,_0x32376b):_0x4a4384,_0x1d7eab=_0x502c2d[_0x136e7d(0x123)]-0x1,_0x4e4fe9;_0x1d7eab>=0x0;_0x1d7eab--)(_0x4e4fe9=_0x502c2d[_0x1d7eab])&&(_0x23198c=_0x4e4fe9(_0x23198c)||_0x23198c);return _0x23198c;},d=(_0xa86d3e,_0x6a5588)=>(_0x19df30,_0x4d3dee)=>_0x6a5588(_0x19df30,_0x4d3dee,_0xa86d3e),E=(_0x4eddc7,_0x1e03e3,_0x11956e)=>X(_0x4eddc7,typeof _0x1e03e3!='symbol'?_0x1e03e3+'':_0x1e03e3,_0x11956e);const L=_0x4e300b(0x137);exports['UniverSheetsExchangeClientPlugin']=class extends i['Plugin']{constructor(_0x368b02=h,_0x36edb9,_0x1a6a48){const _0x10da2b=_0x4e300b;super(),this[_0x10da2b(0x11a)]=_0x368b02,this['_injector']=_0x36edb9,this[_0x10da2b(0x117)]=_0x1a6a48;const {menu:_0x225cdb,..._0xabc74a}=i[_0x10da2b(0x114)]({},h,this[_0x10da2b(0x11a)]);_0x225cdb&&this[_0x10da2b(0x117)]['setConfig'](_0x10da2b(0x109),_0x225cdb,{'merge':!0x0}),this[_0x10da2b(0x117)][_0x10da2b(0x107)](v,_0xabc74a);}[_0x4e300b(0x116)](){const _0x15232a=_0x4e300b;[[u]]['forEach'](_0x48c600=>this[_0x15232a(0x105)][_0x15232a(0x103)](_0x48c600));}[_0x4e300b(0x130)](){const _0x2c610c=_0x4e300b;this[_0x2c610c(0x105)][_0x2c610c(0x10a)](u);}},E(exports[_0x4e300b(0x133)],_0x4e300b(0x104),L),E(exports[_0x4e300b(0x133)],'type',i['UniverInstanceType'][_0x4e300b(0x128)]),exports['UniverSheetsExchangeClientPlugin']=N([i[_0x4e300b(0x127)](g[_0x4e300b(0x10f)]),d(0x1,i[_0x4e300b(0x11b)](i[_0x4e300b(0x112)])),d(0x2,i['IConfigService'])],exports[_0x4e300b(0x133)]),exports['ExportXLSXOperation']=p,exports[_0x4e300b(0x120)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x477711=_0x1a05;(function(_0x471bcf,_0x2e6983){const _0x4a78e7=_0x1a05,_0x5cf3da=_0x471bcf();while(!![]){try{const _0x213001=parseInt(_0x4a78e7(0x178))/0x1*(-parseInt(_0x4a78e7(0x169))/0x2)+-parseInt(_0x4a78e7(0x17d))/0x3+-parseInt(_0x4a78e7(0x171))/0x4*(-parseInt(_0x4a78e7(0x164))/0x5)+-parseInt(_0x4a78e7(0x158))/0x6*(parseInt(_0x4a78e7(0x175))/0x7)+-parseInt(_0x4a78e7(0x168))/0x8+-parseInt(_0x4a78e7(0x170))/0x9+parseInt(_0x4a78e7(0x16e))/0xa*(parseInt(_0x4a78e7(0x152))/0xb);if(_0x213001===_0x2e6983)break;else _0x5cf3da['push'](_0x5cf3da['shift']());}catch(_0x5b4d14){_0x5cf3da['push'](_0x5cf3da['shift']());}}}(_0x5197,0x8a868));import{IExchangeOperateService as _0x2c6aca,UniverExchangeClientPlugin as _0x53b7c3}from'@univerjs-pro/exchange-client';import{CommandType as _0x3b3be1,UniverInstanceType as _0x5ee927,Disposable as _0x1e8ac0,ICommandService as _0x260fe3,DependentOn as _0x2147d1,Inject as _0x4dfdee,Injector as _0x20615a,IConfigService as _0x21e44b,Plugin as _0x2abe10,merge as _0x7f1cbf}from'@univerjs/core';function _0x5197(){const _0x44128b=['type','sheets-exchange-client.config','6348558gMjNda','exchange.download','exchange.file','OPERATION','_initMenus','getOwnPropertyDescriptor','_menuManagerService','exchange.upload','BUTTON','exchange-client.operation.export-xlsx','_config','forEach','13875oJWWzP','_initCommands','exportXLSXBySnapshot','FolderIcon','7402368DUoNxh','6CmLCTs','setConfig','importXLSXToUnitId','importXLSXToSnapshot','exportXLSXByUnitId','49730GajpUb','_configService','10074303TAfYKw','964aaUUko','search','ExportIcon','disposeWithMe','7wCQhfA','UNIVER_SHEET','symbol','356899PiHXpz','unit','OTHERS','length','add','1703193xbkvdE','get','DirectExportIcon','SHEET_EXCHANGE_CLIENT_PLUGIN','10263gfLbFl','_commandService','onReady','_injector'];_0x5197=function(){return _0x44128b;};return _0x5197();}import{MenuItemType as _0x140cbc,getMenuHiddenObservable as _0x41f797,RibbonStartGroup as _0x1d3531,IMenuManagerService as _0x3a3206}from'@univerjs/ui';import{WorkbookExportPermission as _0x1fb4bf}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x1a57af}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x3b3be1['OPERATION'],'handler':async _0x4ac68d=>{const _0x11e09d=_0x1a05,_0x37e629=_0x4ac68d['get'](_0x2c6aca);return new URLSearchParams(location[_0x11e09d(0x172)])[_0x11e09d(0x17e)]('unit')?_0x37e629[_0x11e09d(0x16b)]():_0x37e629[_0x11e09d(0x16c)](),!0x0;}},u={'id':_0x477711(0x161),'type':_0x3b3be1[_0x477711(0x15b)],'handler':async _0x33ece8=>{const _0x169be5=_0x477711,_0x273afb=_0x33ece8['get'](_0x2c6aca);return new URLSearchParams(location[_0x169be5(0x172)])['get'](_0x169be5(0x179))?_0x273afb[_0x169be5(0x16d)]():_0x273afb[_0x169be5(0x166)](),!0x0;}},H=_0x477711(0x157),l={},S='sheets-exchange-client.operation.exchange';function R(_0x2881c6){const _0x172d25=_0x477711;return{'id':S,'type':_0x140cbc['SUBITEMS'],'icon':_0x172d25(0x17f),'tooltip':_0x172d25(0x15a),'hidden$':_0x41f797(_0x2881c6,_0x5ee927['UNIVER_SHEET']),'disabled$':_0x1a57af(_0x2881c6,{'workbookTypes':[_0x1fb4bf]})};}function w(){const _0x4682d1=_0x477711;return{'id':p['id'],'type':_0x140cbc[_0x4682d1(0x160)],'title':_0x4682d1(0x15f),'icon':_0x4682d1(0x167)};}function D(){const _0x2f84df=_0x477711;return{'id':u['id'],'type':_0x140cbc['BUTTON'],'title':_0x2f84df(0x159),'icon':_0x2f84df(0x173)};}const F={[_0x1d3531[_0x477711(0x17a)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x45f9c8,_0x1c2c50,_0xc6b8ed,_0x5ff96d)=>{const _0xcba6e7=_0x477711;for(var _0x128e4b=_0x5ff96d>0x1?void 0x0:_0x5ff96d?G(_0x1c2c50,_0xc6b8ed):_0x1c2c50,_0x3cd9c0=_0x45f9c8[_0xcba6e7(0x17b)]-0x1,_0x3cabde;_0x3cd9c0>=0x0;_0x3cd9c0--)(_0x3cabde=_0x45f9c8[_0x3cd9c0])&&(_0x128e4b=_0x3cabde(_0x128e4b)||_0x128e4b);return _0x128e4b;},d=(_0x5b1f80,_0xc37091)=>(_0x10646a,_0x8828)=>_0xc37091(_0x10646a,_0x8828,_0x5b1f80);function _0x1a05(_0x1d5a82,_0x1f1d9c){_0x1d5a82=_0x1d5a82-0x151;const _0x51976f=_0x5197();let _0x1a0514=_0x51976f[_0x1d5a82];return _0x1a0514;}let c=class extends _0x1e8ac0{constructor(_0x2a715a,_0x2d60fe){const _0x1fcac9=_0x477711;super(),this[_0x1fcac9(0x153)]=_0x2a715a,this[_0x1fcac9(0x15e)]=_0x2d60fe,this[_0x1fcac9(0x165)](),this['_initMenus']();}[_0x477711(0x165)](){const _0x2ee308=_0x477711;[p,u][_0x2ee308(0x163)](_0x48b231=>{const _0x7b31c=_0x2ee308;this[_0x7b31c(0x174)](this[_0x7b31c(0x153)]['registerCommand'](_0x48b231));});}[_0x477711(0x15c)](){const _0x436e86=_0x477711;this[_0x436e86(0x15e)]['mergeMenu'](F);}};c=A([d(0x0,_0x260fe3),d(0x1,_0x3a3206)],c);var j=Object['defineProperty'],B=Object[_0x477711(0x15d)],$=(_0x2a04b1,_0x32d73b,_0x9b7c16)=>_0x32d73b in _0x2a04b1?j(_0x2a04b1,_0x32d73b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x9b7c16}):_0x2a04b1[_0x32d73b]=_0x9b7c16,V=(_0x102840,_0x1e134a,_0x1d38bc,_0x2b344d)=>{for(var _0x44e6ae=_0x2b344d>0x1?void 0x0:_0x2b344d?B(_0x1e134a,_0x1d38bc):_0x1e134a,_0x41883c=_0x102840['length']-0x1,_0x52ffa0;_0x41883c>=0x0;_0x41883c--)(_0x52ffa0=_0x102840[_0x41883c])&&(_0x44e6ae=_0x52ffa0(_0x44e6ae)||_0x44e6ae);return _0x44e6ae;},_=(_0x579bd8,_0x39138f)=>(_0xf1c7ba,_0x1d40a5)=>_0x39138f(_0xf1c7ba,_0x1d40a5,_0x579bd8),I=(_0x2462fa,_0x9aa7d9,_0x2d1a87)=>$(_0x2462fa,typeof _0x9aa7d9!=_0x477711(0x177)?_0x9aa7d9+'':_0x9aa7d9,_0x2d1a87);const W=_0x477711(0x151);let s=class extends _0x2abe10{constructor(_0x5950a3=l,_0x44fe6e,_0x541d3f){const _0x1b7b91=_0x477711;super(),this[_0x1b7b91(0x162)]=_0x5950a3,this[_0x1b7b91(0x155)]=_0x44fe6e,this[_0x1b7b91(0x16f)]=_0x541d3f;const {menu:_0x102b72,..._0x2acb96}=_0x7f1cbf({},l,this[_0x1b7b91(0x162)]);_0x102b72&&this[_0x1b7b91(0x16f)][_0x1b7b91(0x16a)]('menu',_0x102b72,{'merge':!0x0}),this[_0x1b7b91(0x16f)][_0x1b7b91(0x16a)](H,_0x2acb96);}['onStarting'](){const _0x327d7c=_0x477711;[[c]][_0x327d7c(0x163)](_0x4acec2=>this['_injector'][_0x327d7c(0x17c)](_0x4acec2));}[_0x477711(0x154)](){const _0x57c6f9=_0x477711;this[_0x57c6f9(0x155)][_0x57c6f9(0x17e)](c);}};I(s,'pluginName',W),I(s,_0x477711(0x156),_0x5ee927[_0x477711(0x176)]),s=V([_0x2147d1(_0x53b7c3),_(0x1,_0x4dfdee(_0x20615a)),_(0x2,_0x21e44b)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x3447d5=_0xec03;(function(_0x305c6c,_0x4b9736){const _0x328235=_0xec03,_0x42a242=_0x305c6c();while(!![]){try{const _0x5e6e10=parseInt(_0x328235(0x137))/0x1+parseInt(_0x328235(0x140))/0x2+-parseInt(_0x328235(0x155))/0x3*(-parseInt(_0x328235(0x14b))/0x4)+-parseInt(_0x328235(0x12b))/0x5+-parseInt(_0x328235(0x13c))/0x6+-parseInt(_0x328235(0x14d))/0x7*(parseInt(_0x328235(0x144))/0x8)+parseInt(_0x328235(0x13b))/0x9;if(_0x5e6e10===_0x4b9736)break;else _0x42a242['push'](_0x42a242['shift']());}catch(_0x5d67d7){_0x42a242['push'](_0x42a242['shift']());}}}(_0x277b,0xdbd9f));import{IExchangeOperateService as _0x41124d,UniverExchangeClientPlugin as _0x23dd89}from'@univerjs-pro/exchange-client';import{CommandType as _0x2ea409,UniverInstanceType as _0x526314,Disposable as _0x1e57f6,ICommandService as _0x5ec630,DependentOn as _0x53fe33,Inject as _0x8b96a0,Injector as _0x4073d2,IConfigService as _0x15323f,Plugin as _0x5cd8a2,merge as _0x5e8e75}from'@univerjs/core';import{MenuItemType as _0x18b125,getMenuHiddenObservable as _0x228995,RibbonStartGroup as _0x2da5fd,IMenuManagerService as _0x491c17}from'@univerjs/ui';function _0x277b(){const _0x2ce32e=['2040801ukepnW','DirectExportIcon','add','exchange-client.operation.import-xlsx','ExportIcon','unit','OTHERS','FolderIcon','15HwIGqm','onStarting','sheets-exchange-client.config','type','965330hOYHLe','exchange.download','BUTTON','search','SUBITEMS','get','forEach','exchange.upload','_initCommands','_initMenus','_injector','onReady','172513mzzHdJ','setConfig','defineProperty','_commandService','8472996nqXWpn','806832yufLaO','_config','OPERATION','symbol','1732120QFFqMq','exportXLSXByUnitId','menu','registerCommand','48LuqlCd','disposeWithMe','pluginName','_menuManagerService','exportXLSXBySnapshot','SHEET_EXCHANGE_CLIENT_PLUGIN','getOwnPropertyDescriptor','797832drAfGS','sheets-exchange-client.operation.exchange'];_0x277b=function(){return _0x2ce32e;};return _0x277b();}import{WorkbookExportPermission as _0x3dec36}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x362404}from'@univerjs/sheets-ui';const p={'id':_0x3447d5(0x150),'type':_0x2ea409['OPERATION'],'handler':async _0x469b6e=>{const _0x283189=_0x3447d5,_0x2edabc=_0x469b6e[_0x283189(0x130)](_0x41124d);return new URLSearchParams(location[_0x283189(0x12e)])['get'](_0x283189(0x152))?_0x2edabc['importXLSXToUnitId']():_0x2edabc['importXLSXToSnapshot'](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x2ea409[_0x3447d5(0x13e)],'handler':async _0x482b35=>{const _0x6f8d2a=_0x3447d5,_0x39012b=_0x482b35[_0x6f8d2a(0x130)](_0x41124d);return new URLSearchParams(location[_0x6f8d2a(0x12e)])['get']('unit')?_0x39012b[_0x6f8d2a(0x141)]():_0x39012b[_0x6f8d2a(0x148)](),!0x0;}},H=_0x3447d5(0x157),l={},S=_0x3447d5(0x14c);function R(_0x4d0a84){const _0x553338=_0x3447d5;return{'id':S,'type':_0x18b125[_0x553338(0x12f)],'icon':_0x553338(0x14e),'tooltip':'exchange.file','hidden$':_0x228995(_0x4d0a84,_0x526314['UNIVER_SHEET']),'disabled$':_0x362404(_0x4d0a84,{'workbookTypes':[_0x3dec36]})};}function w(){const _0x3c06c3=_0x3447d5;return{'id':p['id'],'type':_0x18b125['BUTTON'],'title':_0x3c06c3(0x132),'icon':_0x3c06c3(0x154)};}function D(){const _0x324a6b=_0x3447d5;return{'id':u['id'],'type':_0x18b125[_0x324a6b(0x12d)],'title':_0x324a6b(0x12c),'icon':_0x324a6b(0x151)};}const F={[_0x2da5fd[_0x3447d5(0x153)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x19223e,_0x54b2be,_0x31dcf0,_0x503aea)=>{for(var _0x229681=_0x503aea>0x1?void 0x0:_0x503aea?G(_0x54b2be,_0x31dcf0):_0x54b2be,_0x580f33=_0x19223e['length']-0x1,_0x8ba6be;_0x580f33>=0x0;_0x580f33--)(_0x8ba6be=_0x19223e[_0x580f33])&&(_0x229681=_0x8ba6be(_0x229681)||_0x229681);return _0x229681;},d=(_0xea0e14,_0x175a12)=>(_0x41127d,_0x464ae7)=>_0x175a12(_0x41127d,_0x464ae7,_0xea0e14);let c=class extends _0x1e57f6{constructor(_0x52f76e,_0x39a033){const _0x42b514=_0x3447d5;super(),this[_0x42b514(0x13a)]=_0x52f76e,this[_0x42b514(0x147)]=_0x39a033,this[_0x42b514(0x133)](),this[_0x42b514(0x134)]();}['_initCommands'](){const _0xd945e3=_0x3447d5;[p,u][_0xd945e3(0x131)](_0xf2d821=>{const _0x14f3b8=_0xd945e3;this[_0x14f3b8(0x145)](this[_0x14f3b8(0x13a)][_0x14f3b8(0x143)](_0xf2d821));});}[_0x3447d5(0x134)](){const _0x5c3082=_0x3447d5;this[_0x5c3082(0x147)]['mergeMenu'](F);}};function _0xec03(_0x176f33,_0x584b6d){_0x176f33=_0x176f33-0x12a;const _0x277b05=_0x277b();let _0xec0371=_0x277b05[_0x176f33];return _0xec0371;}c=A([d(0x0,_0x5ec630),d(0x1,_0x491c17)],c);var j=Object[_0x3447d5(0x139)],B=Object[_0x3447d5(0x14a)],$=(_0x5ba12c,_0x4eba8c,_0x37e351)=>_0x4eba8c in _0x5ba12c?j(_0x5ba12c,_0x4eba8c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37e351}):_0x5ba12c[_0x4eba8c]=_0x37e351,V=(_0x503f4e,_0x2c5841,_0x1595cc,_0x34af7a)=>{for(var _0x32ce6c=_0x34af7a>0x1?void 0x0:_0x34af7a?B(_0x2c5841,_0x1595cc):_0x2c5841,_0x587f85=_0x503f4e['length']-0x1,_0x4a7272;_0x587f85>=0x0;_0x587f85--)(_0x4a7272=_0x503f4e[_0x587f85])&&(_0x32ce6c=_0x4a7272(_0x32ce6c)||_0x32ce6c);return _0x32ce6c;},_=(_0x3d8503,_0x4f3c3b)=>(_0xf29d40,_0x58e925)=>_0x4f3c3b(_0xf29d40,_0x58e925,_0x3d8503),I=(_0x4a013c,_0xa4cdaa,_0x4144fa)=>$(_0x4a013c,typeof _0xa4cdaa!=_0x3447d5(0x13f)?_0xa4cdaa+'':_0xa4cdaa,_0x4144fa);const W=_0x3447d5(0x149);let s=class extends _0x5cd8a2{constructor(_0x5b39d7=l,_0xde34a3,_0x112af1){const _0x4c5114=_0x3447d5;super(),this[_0x4c5114(0x13d)]=_0x5b39d7,this[_0x4c5114(0x135)]=_0xde34a3,this['_configService']=_0x112af1;const {menu:_0xe087d7,..._0x50188f}=_0x5e8e75({},l,this[_0x4c5114(0x13d)]);_0xe087d7&&this['_configService']['setConfig'](_0x4c5114(0x142),_0xe087d7,{'merge':!0x0}),this['_configService'][_0x4c5114(0x138)](H,_0x50188f);}[_0x3447d5(0x156)](){const _0x4462bd=_0x3447d5;[[c]][_0x4462bd(0x131)](_0x8d69ee=>this[_0x4462bd(0x135)][_0x4462bd(0x14f)](_0x8d69ee));}[_0x3447d5(0x136)](){const _0x1c2eb6=_0x3447d5;this[_0x1c2eb6(0x135)]['get'](c);}};I(s,_0x3447d5(0x146),W),I(s,_0x3447d5(0x12a),_0x526314['UNIVER_SHEET']),s=V([_0x53fe33(_0x23dd89),_(0x1,_0x8b96a0(_0x4073d2)),_(0x2,_0x15323f)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x477711=_0x1a05;(function(_0x471bcf,_0x2e6983){const _0x4a78e7=_0x1a05,_0x5cf3da=_0x471bcf();while(!![]){try{const _0x213001=parseInt(_0x4a78e7(0x178))/0x1*(-parseInt(_0x4a78e7(0x169))/0x2)+-parseInt(_0x4a78e7(0x17d))/0x3+-parseInt(_0x4a78e7(0x171))/0x4*(-parseInt(_0x4a78e7(0x164))/0x5)+-parseInt(_0x4a78e7(0x158))/0x6*(parseInt(_0x4a78e7(0x175))/0x7)+-parseInt(_0x4a78e7(0x168))/0x8+-parseInt(_0x4a78e7(0x170))/0x9+parseInt(_0x4a78e7(0x16e))/0xa*(parseInt(_0x4a78e7(0x152))/0xb);if(_0x213001===_0x2e6983)break;else _0x5cf3da['push'](_0x5cf3da['shift']());}catch(_0x5b4d14){_0x5cf3da['push'](_0x5cf3da['shift']());}}}(_0x5197,0x8a868));import{IExchangeOperateService as _0x2c6aca,UniverExchangeClientPlugin as _0x53b7c3}from'@univerjs-pro/exchange-client';import{CommandType as _0x3b3be1,UniverInstanceType as _0x5ee927,Disposable as _0x1e8ac0,ICommandService as _0x260fe3,DependentOn as _0x2147d1,Inject as _0x4dfdee,Injector as _0x20615a,IConfigService as _0x21e44b,Plugin as _0x2abe10,merge as _0x7f1cbf}from'@univerjs/core';function _0x5197(){const _0x44128b=['type','sheets-exchange-client.config','6348558gMjNda','exchange.download','exchange.file','OPERATION','_initMenus','getOwnPropertyDescriptor','_menuManagerService','exchange.upload','BUTTON','exchange-client.operation.export-xlsx','_config','forEach','13875oJWWzP','_initCommands','exportXLSXBySnapshot','FolderIcon','7402368DUoNxh','6CmLCTs','setConfig','importXLSXToUnitId','importXLSXToSnapshot','exportXLSXByUnitId','49730GajpUb','_configService','10074303TAfYKw','964aaUUko','search','ExportIcon','disposeWithMe','7wCQhfA','UNIVER_SHEET','symbol','356899PiHXpz','unit','OTHERS','length','add','1703193xbkvdE','get','DirectExportIcon','SHEET_EXCHANGE_CLIENT_PLUGIN','10263gfLbFl','_commandService','onReady','_injector'];_0x5197=function(){return _0x44128b;};return _0x5197();}import{MenuItemType as _0x140cbc,getMenuHiddenObservable as _0x41f797,RibbonStartGroup as _0x1d3531,IMenuManagerService as _0x3a3206}from'@univerjs/ui';import{WorkbookExportPermission as _0x1fb4bf}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x1a57af}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x3b3be1['OPERATION'],'handler':async _0x4ac68d=>{const _0x11e09d=_0x1a05,_0x37e629=_0x4ac68d['get'](_0x2c6aca);return new URLSearchParams(location[_0x11e09d(0x172)])[_0x11e09d(0x17e)]('unit')?_0x37e629[_0x11e09d(0x16b)]():_0x37e629[_0x11e09d(0x16c)](),!0x0;}},u={'id':_0x477711(0x161),'type':_0x3b3be1[_0x477711(0x15b)],'handler':async _0x33ece8=>{const _0x169be5=_0x477711,_0x273afb=_0x33ece8['get'](_0x2c6aca);return new URLSearchParams(location[_0x169be5(0x172)])['get'](_0x169be5(0x179))?_0x273afb[_0x169be5(0x16d)]():_0x273afb[_0x169be5(0x166)](),!0x0;}},H=_0x477711(0x157),l={},S='sheets-exchange-client.operation.exchange';function R(_0x2881c6){const _0x172d25=_0x477711;return{'id':S,'type':_0x140cbc['SUBITEMS'],'icon':_0x172d25(0x17f),'tooltip':_0x172d25(0x15a),'hidden$':_0x41f797(_0x2881c6,_0x5ee927['UNIVER_SHEET']),'disabled$':_0x1a57af(_0x2881c6,{'workbookTypes':[_0x1fb4bf]})};}function w(){const _0x4682d1=_0x477711;return{'id':p['id'],'type':_0x140cbc[_0x4682d1(0x160)],'title':_0x4682d1(0x15f),'icon':_0x4682d1(0x167)};}function D(){const _0x2f84df=_0x477711;return{'id':u['id'],'type':_0x140cbc['BUTTON'],'title':_0x2f84df(0x159),'icon':_0x2f84df(0x173)};}const F={[_0x1d3531[_0x477711(0x17a)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x45f9c8,_0x1c2c50,_0xc6b8ed,_0x5ff96d)=>{const _0xcba6e7=_0x477711;for(var _0x128e4b=_0x5ff96d>0x1?void 0x0:_0x5ff96d?G(_0x1c2c50,_0xc6b8ed):_0x1c2c50,_0x3cd9c0=_0x45f9c8[_0xcba6e7(0x17b)]-0x1,_0x3cabde;_0x3cd9c0>=0x0;_0x3cd9c0--)(_0x3cabde=_0x45f9c8[_0x3cd9c0])&&(_0x128e4b=_0x3cabde(_0x128e4b)||_0x128e4b);return _0x128e4b;},d=(_0x5b1f80,_0xc37091)=>(_0x10646a,_0x8828)=>_0xc37091(_0x10646a,_0x8828,_0x5b1f80);function _0x1a05(_0x1d5a82,_0x1f1d9c){_0x1d5a82=_0x1d5a82-0x151;const _0x51976f=_0x5197();let _0x1a0514=_0x51976f[_0x1d5a82];return _0x1a0514;}let c=class extends _0x1e8ac0{constructor(_0x2a715a,_0x2d60fe){const _0x1fcac9=_0x477711;super(),this[_0x1fcac9(0x153)]=_0x2a715a,this[_0x1fcac9(0x15e)]=_0x2d60fe,this[_0x1fcac9(0x165)](),this['_initMenus']();}[_0x477711(0x165)](){const _0x2ee308=_0x477711;[p,u][_0x2ee308(0x163)](_0x48b231=>{const _0x7b31c=_0x2ee308;this[_0x7b31c(0x174)](this[_0x7b31c(0x153)]['registerCommand'](_0x48b231));});}[_0x477711(0x15c)](){const _0x436e86=_0x477711;this[_0x436e86(0x15e)]['mergeMenu'](F);}};c=A([d(0x0,_0x260fe3),d(0x1,_0x3a3206)],c);var j=Object['defineProperty'],B=Object[_0x477711(0x15d)],$=(_0x2a04b1,_0x32d73b,_0x9b7c16)=>_0x32d73b in _0x2a04b1?j(_0x2a04b1,_0x32d73b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x9b7c16}):_0x2a04b1[_0x32d73b]=_0x9b7c16,V=(_0x102840,_0x1e134a,_0x1d38bc,_0x2b344d)=>{for(var _0x44e6ae=_0x2b344d>0x1?void 0x0:_0x2b344d?B(_0x1e134a,_0x1d38bc):_0x1e134a,_0x41883c=_0x102840['length']-0x1,_0x52ffa0;_0x41883c>=0x0;_0x41883c--)(_0x52ffa0=_0x102840[_0x41883c])&&(_0x44e6ae=_0x52ffa0(_0x44e6ae)||_0x44e6ae);return _0x44e6ae;},_=(_0x579bd8,_0x39138f)=>(_0xf1c7ba,_0x1d40a5)=>_0x39138f(_0xf1c7ba,_0x1d40a5,_0x579bd8),I=(_0x2462fa,_0x9aa7d9,_0x2d1a87)=>$(_0x2462fa,typeof _0x9aa7d9!=_0x477711(0x177)?_0x9aa7d9+'':_0x9aa7d9,_0x2d1a87);const W=_0x477711(0x151);let s=class extends _0x2abe10{constructor(_0x5950a3=l,_0x44fe6e,_0x541d3f){const _0x1b7b91=_0x477711;super(),this[_0x1b7b91(0x162)]=_0x5950a3,this[_0x1b7b91(0x155)]=_0x44fe6e,this[_0x1b7b91(0x16f)]=_0x541d3f;const {menu:_0x102b72,..._0x2acb96}=_0x7f1cbf({},l,this[_0x1b7b91(0x162)]);_0x102b72&&this[_0x1b7b91(0x16f)][_0x1b7b91(0x16a)]('menu',_0x102b72,{'merge':!0x0}),this[_0x1b7b91(0x16f)][_0x1b7b91(0x16a)](H,_0x2acb96);}['onStarting'](){const _0x327d7c=_0x477711;[[c]][_0x327d7c(0x163)](_0x4acec2=>this['_injector'][_0x327d7c(0x17c)](_0x4acec2));}[_0x477711(0x154)](){const _0x57c6f9=_0x477711;this[_0x57c6f9(0x155)][_0x57c6f9(0x17e)](c);}};I(s,'pluginName',W),I(s,_0x477711(0x156),_0x5ee927[_0x477711(0x176)]),s=V([_0x2147d1(_0x53b7c3),_(0x1,_0x4dfdee(_0x20615a)),_(0x2,_0x21e44b)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x3447d5=_0xec03;(function(_0x305c6c,_0x4b9736){const _0x328235=_0xec03,_0x42a242=_0x305c6c();while(!![]){try{const _0x5e6e10=parseInt(_0x328235(0x137))/0x1+parseInt(_0x328235(0x140))/0x2+-parseInt(_0x328235(0x155))/0x3*(-parseInt(_0x328235(0x14b))/0x4)+-parseInt(_0x328235(0x12b))/0x5+-parseInt(_0x328235(0x13c))/0x6+-parseInt(_0x328235(0x14d))/0x7*(parseInt(_0x328235(0x144))/0x8)+parseInt(_0x328235(0x13b))/0x9;if(_0x5e6e10===_0x4b9736)break;else _0x42a242['push'](_0x42a242['shift']());}catch(_0x5d67d7){_0x42a242['push'](_0x42a242['shift']());}}}(_0x277b,0xdbd9f));import{IExchangeOperateService as _0x41124d,UniverExchangeClientPlugin as _0x23dd89}from'@univerjs-pro/exchange-client';import{CommandType as _0x2ea409,UniverInstanceType as _0x526314,Disposable as _0x1e57f6,ICommandService as _0x5ec630,DependentOn as _0x53fe33,Inject as _0x8b96a0,Injector as _0x4073d2,IConfigService as _0x15323f,Plugin as _0x5cd8a2,merge as _0x5e8e75}from'@univerjs/core';import{MenuItemType as _0x18b125,getMenuHiddenObservable as _0x228995,RibbonStartGroup as _0x2da5fd,IMenuManagerService as _0x491c17}from'@univerjs/ui';function _0x277b(){const _0x2ce32e=['2040801ukepnW','DirectExportIcon','add','exchange-client.operation.import-xlsx','ExportIcon','unit','OTHERS','FolderIcon','15HwIGqm','onStarting','sheets-exchange-client.config','type','965330hOYHLe','exchange.download','BUTTON','search','SUBITEMS','get','forEach','exchange.upload','_initCommands','_initMenus','_injector','onReady','172513mzzHdJ','setConfig','defineProperty','_commandService','8472996nqXWpn','806832yufLaO','_config','OPERATION','symbol','1732120QFFqMq','exportXLSXByUnitId','menu','registerCommand','48LuqlCd','disposeWithMe','pluginName','_menuManagerService','exportXLSXBySnapshot','SHEET_EXCHANGE_CLIENT_PLUGIN','getOwnPropertyDescriptor','797832drAfGS','sheets-exchange-client.operation.exchange'];_0x277b=function(){return _0x2ce32e;};return _0x277b();}import{WorkbookExportPermission as _0x3dec36}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x362404}from'@univerjs/sheets-ui';const p={'id':_0x3447d5(0x150),'type':_0x2ea409['OPERATION'],'handler':async _0x469b6e=>{const _0x283189=_0x3447d5,_0x2edabc=_0x469b6e[_0x283189(0x130)](_0x41124d);return new URLSearchParams(location[_0x283189(0x12e)])['get'](_0x283189(0x152))?_0x2edabc['importXLSXToUnitId']():_0x2edabc['importXLSXToSnapshot'](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x2ea409[_0x3447d5(0x13e)],'handler':async _0x482b35=>{const _0x6f8d2a=_0x3447d5,_0x39012b=_0x482b35[_0x6f8d2a(0x130)](_0x41124d);return new URLSearchParams(location[_0x6f8d2a(0x12e)])['get']('unit')?_0x39012b[_0x6f8d2a(0x141)]():_0x39012b[_0x6f8d2a(0x148)](),!0x0;}},H=_0x3447d5(0x157),l={},S=_0x3447d5(0x14c);function R(_0x4d0a84){const _0x553338=_0x3447d5;return{'id':S,'type':_0x18b125[_0x553338(0x12f)],'icon':_0x553338(0x14e),'tooltip':'exchange.file','hidden$':_0x228995(_0x4d0a84,_0x526314['UNIVER_SHEET']),'disabled$':_0x362404(_0x4d0a84,{'workbookTypes':[_0x3dec36]})};}function w(){const _0x3c06c3=_0x3447d5;return{'id':p['id'],'type':_0x18b125['BUTTON'],'title':_0x3c06c3(0x132),'icon':_0x3c06c3(0x154)};}function D(){const _0x324a6b=_0x3447d5;return{'id':u['id'],'type':_0x18b125[_0x324a6b(0x12d)],'title':_0x324a6b(0x12c),'icon':_0x324a6b(0x151)};}const F={[_0x2da5fd[_0x3447d5(0x153)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x19223e,_0x54b2be,_0x31dcf0,_0x503aea)=>{for(var _0x229681=_0x503aea>0x1?void 0x0:_0x503aea?G(_0x54b2be,_0x31dcf0):_0x54b2be,_0x580f33=_0x19223e['length']-0x1,_0x8ba6be;_0x580f33>=0x0;_0x580f33--)(_0x8ba6be=_0x19223e[_0x580f33])&&(_0x229681=_0x8ba6be(_0x229681)||_0x229681);return _0x229681;},d=(_0xea0e14,_0x175a12)=>(_0x41127d,_0x464ae7)=>_0x175a12(_0x41127d,_0x464ae7,_0xea0e14);let c=class extends _0x1e57f6{constructor(_0x52f76e,_0x39a033){const _0x42b514=_0x3447d5;super(),this[_0x42b514(0x13a)]=_0x52f76e,this[_0x42b514(0x147)]=_0x39a033,this[_0x42b514(0x133)](),this[_0x42b514(0x134)]();}['_initCommands'](){const _0xd945e3=_0x3447d5;[p,u][_0xd945e3(0x131)](_0xf2d821=>{const _0x14f3b8=_0xd945e3;this[_0x14f3b8(0x145)](this[_0x14f3b8(0x13a)][_0x14f3b8(0x143)](_0xf2d821));});}[_0x3447d5(0x134)](){const _0x5c3082=_0x3447d5;this[_0x5c3082(0x147)]['mergeMenu'](F);}};function _0xec03(_0x176f33,_0x584b6d){_0x176f33=_0x176f33-0x12a;const _0x277b05=_0x277b();let _0xec0371=_0x277b05[_0x176f33];return _0xec0371;}c=A([d(0x0,_0x5ec630),d(0x1,_0x491c17)],c);var j=Object[_0x3447d5(0x139)],B=Object[_0x3447d5(0x14a)],$=(_0x5ba12c,_0x4eba8c,_0x37e351)=>_0x4eba8c in _0x5ba12c?j(_0x5ba12c,_0x4eba8c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37e351}):_0x5ba12c[_0x4eba8c]=_0x37e351,V=(_0x503f4e,_0x2c5841,_0x1595cc,_0x34af7a)=>{for(var _0x32ce6c=_0x34af7a>0x1?void 0x0:_0x34af7a?B(_0x2c5841,_0x1595cc):_0x2c5841,_0x587f85=_0x503f4e['length']-0x1,_0x4a7272;_0x587f85>=0x0;_0x587f85--)(_0x4a7272=_0x503f4e[_0x587f85])&&(_0x32ce6c=_0x4a7272(_0x32ce6c)||_0x32ce6c);return _0x32ce6c;},_=(_0x3d8503,_0x4f3c3b)=>(_0xf29d40,_0x58e925)=>_0x4f3c3b(_0xf29d40,_0x58e925,_0x3d8503),I=(_0x4a013c,_0xa4cdaa,_0x4144fa)=>$(_0x4a013c,typeof _0xa4cdaa!=_0x3447d5(0x13f)?_0xa4cdaa+'':_0xa4cdaa,_0x4144fa);const W=_0x3447d5(0x149);let s=class extends _0x5cd8a2{constructor(_0x5b39d7=l,_0xde34a3,_0x112af1){const _0x4c5114=_0x3447d5;super(),this[_0x4c5114(0x13d)]=_0x5b39d7,this[_0x4c5114(0x135)]=_0xde34a3,this['_configService']=_0x112af1;const {menu:_0xe087d7,..._0x50188f}=_0x5e8e75({},l,this[_0x4c5114(0x13d)]);_0xe087d7&&this['_configService']['setConfig'](_0x4c5114(0x142),_0xe087d7,{'merge':!0x0}),this['_configService'][_0x4c5114(0x138)](H,_0x50188f);}[_0x3447d5(0x156)](){const _0x4462bd=_0x3447d5;[[c]][_0x4462bd(0x131)](_0x8d69ee=>this[_0x4462bd(0x135)][_0x4462bd(0x14f)](_0x8d69ee));}[_0x3447d5(0x136)](){const _0x1c2eb6=_0x3447d5;this[_0x1c2eb6(0x135)]['get'](c);}};I(s,_0x3447d5(0x146),W),I(s,_0x3447d5(0x12a),_0x526314['UNIVER_SHEET']),s=V([_0x53fe33(_0x23dd89),_(0x1,_0x8b96a0(_0x4073d2)),_(0x2,_0x15323f)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x203e4e,_0x598a48){const _0x162265=_0x3966,_0x400b15=_0x203e4e();while(!![]){try{const _0x15248a=-parseInt(_0x162265(0x150))/0x1*(-parseInt(_0x162265(0x116))/0x2)+parseInt(_0x162265(0x108))/0x3+parseInt(_0x162265(0x137))/0x4*(parseInt(_0x162265(0x12f))/0x5)+parseInt(_0x162265(0x111))/0x6*(parseInt(_0x162265(0x12c))/0x7)+parseInt(_0x162265(0x13e))/0x8+-parseInt(_0x162265(0x11f))/0x9+parseInt(_0x162265(0x10f))/0xa*(-parseInt(_0x162265(0x131))/0xb);if(_0x15248a===_0x598a48)break;else _0x400b15['push'](_0x400b15['shift']());}catch(_0x304a75){_0x400b15['push'](_0x400b15['shift']());}}}(_0x1c2b,0xa96d5),function(_0x206c35,_0x1d5a16){const _0x5a06d0=_0x3966;typeof exports=='object'&&typeof module<'u'?_0x1d5a16(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x5a06d0(0x119)&&define[_0x5a06d0(0x149)]?define([_0x5a06d0(0x148),_0x5a06d0(0x103),_0x5a06d0(0x104),_0x5a06d0(0x139),_0x5a06d0(0x14d),'@univerjs/sheets-ui'],_0x1d5a16):(_0x206c35=typeof globalThis<'u'?globalThis:_0x206c35||self,_0x1d5a16(_0x206c35[_0x5a06d0(0x143)]={},_0x206c35[_0x5a06d0(0x109)],_0x206c35[_0x5a06d0(0x124)],_0x206c35[_0x5a06d0(0x147)],_0x206c35[_0x5a06d0(0x135)],_0x206c35[_0x5a06d0(0x130)]));}(this,function(_0x1d79a2,_0x1c211e,_0x95e674,_0x3a42cb,_0x35d0cd,_0x4b9feb){'use strict';const _0x63003c=_0x3966;const _0x4dfd8c={'id':_0x63003c(0x10d),'type':_0x95e674[_0x63003c(0x11d)]['OPERATION'],'handler':async _0x46cf76=>{const _0x28df6f=_0x63003c,_0x432170=_0x46cf76[_0x28df6f(0x126)](_0x1c211e[_0x28df6f(0x145)]);return new URLSearchParams(location['search'])[_0x28df6f(0x126)]('unit')?_0x432170[_0x28df6f(0x10b)]():_0x432170[_0x28df6f(0x142)](),!0x0;}},_0x369711={'id':_0x63003c(0x112),'type':_0x95e674['CommandType']['OPERATION'],'handler':async _0x254e7f=>{const _0x255629=_0x63003c,_0x55ff6d=_0x254e7f['get'](_0x1c211e[_0x255629(0x145)]);return new URLSearchParams(location[_0x255629(0x10c)])['get']('unit')?_0x55ff6d['exportXLSXByUnitId']():_0x55ff6d['exportXLSXBySnapshot'](),!0x0;}},_0x523e6b=_0x63003c(0x11c),_0x347208={},_0x3ef2a3=_0x63003c(0x133);function _0x5240f4(_0x36d034){const _0x3e4761=_0x63003c;return{'id':_0x3ef2a3,'type':_0x3a42cb[_0x3e4761(0x129)][_0x3e4761(0x127)],'icon':_0x3e4761(0x138),'tooltip':_0x3e4761(0x122),'hidden$':_0x3a42cb[_0x3e4761(0x14f)](_0x36d034,_0x95e674[_0x3e4761(0x136)]['UNIVER_SHEET']),'disabled$':_0x4b9feb['getCurrentRangeDisable$'](_0x36d034,{'workbookTypes':[_0x35d0cd['WorkbookExportPermission']]})};}function _0x19ca2a(){const _0x104fef=_0x63003c;return{'id':_0x4dfd8c['id'],'type':_0x3a42cb[_0x104fef(0x129)][_0x104fef(0x11a)],'title':_0x104fef(0x12a),'icon':_0x104fef(0x13d)};}function _0x2c97c3(){const _0x3706de=_0x63003c;return{'id':_0x369711['id'],'type':_0x3a42cb[_0x3706de(0x129)][_0x3706de(0x11a)],'title':'exchange.download','icon':_0x3706de(0x132)};}const _0x5da24a={[_0x3a42cb[_0x63003c(0x10e)]['OTHERS']]:{[_0x3ef2a3]:{'order':0.3,'menuItemFactory':_0x5240f4,[_0x4dfd8c['id']]:{'order':0x0,'menuItemFactory':_0x19ca2a},[_0x369711['id']]:{'order':0x1,'menuItemFactory':_0x2c97c3}}}};var _0x466f6f=Object[_0x63003c(0x113)],_0x5c73c2=(_0x54306b,_0x3d19a7,_0x130675,_0x588e97)=>{const _0x37bfc2=_0x63003c;for(var _0x23660d=_0x588e97>0x1?void 0x0:_0x588e97?_0x466f6f(_0x3d19a7,_0x130675):_0x3d19a7,_0x350bfd=_0x54306b[_0x37bfc2(0x12b)]-0x1,_0x18d3ba;_0x350bfd>=0x0;_0x350bfd--)(_0x18d3ba=_0x54306b[_0x350bfd])&&(_0x23660d=_0x18d3ba(_0x23660d)||_0x23660d);return _0x23660d;},_0x2d809d=(_0x39ffb9,_0x415795)=>(_0x54ed46,_0x94de4a)=>_0x415795(_0x54ed46,_0x94de4a,_0x39ffb9);let _0xad8033=class extends _0x95e674[_0x63003c(0x114)]{constructor(_0x3fcf2f,_0x20aeac){const _0x7991c3=_0x63003c;super(),this['_commandService']=_0x3fcf2f,this[_0x7991c3(0x146)]=_0x20aeac,this[_0x7991c3(0x115)](),this[_0x7991c3(0x13a)]();}['_initCommands'](){[_0x4dfd8c,_0x369711]['forEach'](_0x17b552=>{const _0x5afff2=_0x3966;this[_0x5afff2(0x12e)](this['_commandService'][_0x5afff2(0x118)](_0x17b552));});}[_0x63003c(0x13a)](){const _0x1f30bd=_0x63003c;this[_0x1f30bd(0x146)][_0x1f30bd(0x123)](_0x5da24a);}};_0xad8033=_0x5c73c2([_0x2d809d(0x0,_0x95e674[_0x63003c(0x107)]),_0x2d809d(0x1,_0x3a42cb['IMenuManagerService'])],_0xad8033);var _0x5e2213=Object[_0x63003c(0x106)],_0x2e160a=Object['getOwnPropertyDescriptor'],_0x46deb7=(_0x308b83,_0x3a2bcb,_0x46bcc2)=>_0x3a2bcb in _0x308b83?_0x5e2213(_0x308b83,_0x3a2bcb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x46bcc2}):_0x308b83[_0x3a2bcb]=_0x46bcc2,_0x47af33=(_0x39f0a2,_0x59faeb,_0x36010c,_0x53bd7e)=>{const _0x2d0957=_0x63003c;for(var _0x14bb47=_0x53bd7e>0x1?void 0x0:_0x53bd7e?_0x2e160a(_0x59faeb,_0x36010c):_0x59faeb,_0x3287ab=_0x39f0a2[_0x2d0957(0x12b)]-0x1,_0x1afbe6;_0x3287ab>=0x0;_0x3287ab--)(_0x1afbe6=_0x39f0a2[_0x3287ab])&&(_0x14bb47=_0x1afbe6(_0x14bb47)||_0x14bb47);return _0x14bb47;},_0x35400d=(_0x47638a,_0x5eee30)=>(_0x10b82d,_0x5a8ce9)=>_0x5eee30(_0x10b82d,_0x5a8ce9,_0x47638a),_0x4acc93=(_0x3ebc29,_0x85e04a,_0x3f588b)=>_0x46deb7(_0x3ebc29,typeof _0x85e04a!=_0x63003c(0x128)?_0x85e04a+'':_0x85e04a,_0x3f588b);const _0x1cf1e2=_0x63003c(0x134);_0x1d79a2[_0x63003c(0x120)]=class extends _0x95e674[_0x63003c(0x140)]{constructor(_0x2e496e=_0x347208,_0x219dde,_0x1869f0){const _0x52ce05=_0x63003c;super(),this['_config']=_0x2e496e,this[_0x52ce05(0x10a)]=_0x219dde,this['_configService']=_0x1869f0;const {menu:_0x55a8e1,..._0x2163aa}=_0x95e674[_0x52ce05(0x13b)]({},_0x347208,this[_0x52ce05(0x110)]);_0x55a8e1&&this['_configService'][_0x52ce05(0x11e)]('menu',_0x55a8e1,{'merge':!0x0}),this[_0x52ce05(0x121)][_0x52ce05(0x11e)](_0x523e6b,_0x2163aa);}[_0x63003c(0x12d)](){const _0x493d48=_0x63003c;[[_0xad8033]][_0x493d48(0x14b)](_0x384efb=>this[_0x493d48(0x10a)][_0x493d48(0x13c)](_0x384efb));}[_0x63003c(0x14a)](){const _0x14cd7e=_0x63003c;this['_injector'][_0x14cd7e(0x126)](_0xad8033);}},_0x4acc93(_0x1d79a2[_0x63003c(0x120)],_0x63003c(0x117),_0x1cf1e2),_0x4acc93(_0x1d79a2[_0x63003c(0x120)],_0x63003c(0x11b),_0x95e674['UniverInstanceType'][_0x63003c(0x141)]),_0x1d79a2['UniverSheetsExchangeClientPlugin']=_0x47af33([_0x95e674[_0x63003c(0x105)](_0x1c211e['UniverExchangeClientPlugin']),_0x35400d(0x1,_0x95e674[_0x63003c(0x14c)](_0x95e674[_0x63003c(0x125)])),_0x35400d(0x2,_0x95e674['IConfigService'])],_0x1d79a2[_0x63003c(0x120)]),_0x1d79a2[_0x63003c(0x144)]=_0x369711,_0x1d79a2[_0x63003c(0x13f)]=_0x4dfd8c,Object[_0x63003c(0x106)](_0x1d79a2,Symbol[_0x63003c(0x14e)],{'value':'Module'});}));function _0x3966(_0x12512a,_0x1ce150){_0x12512a=_0x12512a-0x103;const _0x1c2bd2=_0x1c2b();let _0x39666d=_0x1c2bd2[_0x12512a];return _0x39666d;}function _0x1c2b(){const _0x228c60=['302040FPnJNx','UniverProExchangeClient','_injector','importXLSXToUnitId','search','exchange-client.operation.import-xlsx','RibbonStartGroup','460xhBPIN','_config','12384kmyRBl','exchange-client.operation.export-xlsx','getOwnPropertyDescriptor','Disposable','_initCommands','14030TrLuQX','pluginName','registerCommand','function','BUTTON','type','sheets-exchange-client.config','CommandType','setConfig','4908492NiPDBh','UniverSheetsExchangeClientPlugin','_configService','exchange.file','mergeMenu','UniverCore','Injector','get','SUBITEMS','symbol','MenuItemType','exchange.upload','length','686XOHTeO','onStarting','disposeWithMe','50dxqfae','UniverSheetsUi','49687syczCy','ExportIcon','sheets-exchange-client.operation.exchange','SHEET_EXCHANGE_CLIENT_PLUGIN','UniverSheets','UniverInstanceType','238856FaceLk','DirectExportIcon','@univerjs/ui','_initMenus','merge','add','FolderIcon','616368VuDxUh','ImportXLSXOperation','Plugin','UNIVER_SHEET','importXLSXToSnapshot','UniverProSheetsExchangeClient','ExportXLSXOperation','IExchangeOperateService','_menuManagerService','UniverUi','exports','amd','onReady','forEach','Inject','@univerjs/sheets','toStringTag','getMenuHiddenObservable','67rtaoFf','@univerjs-pro/exchange-client','@univerjs/core','DependentOn','defineProperty','ICommandService'];_0x1c2b=function(){return _0x228c60;};return _0x1c2b();}
1
+ function _0x473f(_0x29201c,_0x42462e){_0x29201c=_0x29201c-0x1e1;const _0xcfdb94=_0xcfdb();let _0x473f8b=_0xcfdb94[_0x29201c];return _0x473f8b;}function _0xcfdb(){const _0x428f7d=['20ocVBqy','Injector','get','type','exchange-client.operation.import-xlsx','exchange-client.operation.export-xlsx','OPERATION','CommandType','importXLSXToUnitId','toStringTag','exchange.upload','getMenuHiddenObservable','Disposable','OTHERS','ExportXLSXOperation','unit','pluginName','exportXLSXBySnapshot','SUBITEMS','getCurrentRangeDisable$','BUTTON','_menuManagerService','UniverSheetsUi','@univerjs-pro/exchange-client','UniverExchangeClientPlugin','24SkoWRr','amd','UniverInstanceType','defineProperty','_initMenus','@univerjs/ui','UniverUi','onStarting','MenuItemType','length','96WZxjnd','DirectExportIcon','IExchangeOperateService','_injector','IConfigService','add','RibbonStartGroup','object','UniverSheetsExchangeClientPlugin','search','FolderIcon','symbol','sheets-exchange-client.config','setConfig','UniverProSheetsExchangeClient','exchange.download','2980142pVaMGq','13902YaiNjf','@univerjs/sheets','2dtZlVt','169397HSuXlp','_config','_configService','exports','51285tgXhdk','269927xDNvzH','_commandService','forEach','merge','sheets-exchange-client.operation.exchange','ExportIcon','getOwnPropertyDescriptor','function','2484391PeAxHo','_initCommands','disposeWithMe','exportXLSXByUnitId','696ibJotQ','UniverCore','@univerjs/sheets-ui','108xqCGep','WorkbookExportPermission','22455gvksve'];_0xcfdb=function(){return _0x428f7d;};return _0xcfdb();}(function(_0x5973c4,_0x44d392){const _0x157a6c=_0x473f,_0x31937e=_0x5973c4();while(!![]){try{const _0x564dde=-parseInt(_0x157a6c(0x1fe))/0x1+parseInt(_0x157a6c(0x1fd))/0x2*(parseInt(_0x157a6c(0x1fb))/0x3)+-parseInt(_0x157a6c(0x212))/0x4*(parseInt(_0x157a6c(0x202))/0x5)+-parseInt(_0x157a6c(0x22e))/0x6*(-parseInt(_0x157a6c(0x203))/0x7)+parseInt(_0x157a6c(0x20f))/0x8*(-parseInt(_0x157a6c(0x214))/0x9)+parseInt(_0x157a6c(0x215))/0xa*(-parseInt(_0x157a6c(0x1fa))/0xb)+-parseInt(_0x157a6c(0x1ea))/0xc*(-parseInt(_0x157a6c(0x20b))/0xd);if(_0x564dde===_0x44d392)break;else _0x31937e['push'](_0x31937e['shift']());}catch(_0x58bb40){_0x31937e['push'](_0x31937e['shift']());}}}(_0xcfdb,0x75cb9),function(_0x5203d3,_0x5285d7){const _0xf7f279=_0x473f;typeof exports==_0xf7f279(0x1f1)&&typeof module<'u'?_0x5285d7(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0xf7f279(0x20a)&&define[_0xf7f279(0x1e1)]?define([_0xf7f279(0x201),_0xf7f279(0x22c),'@univerjs/core',_0xf7f279(0x1e5),_0xf7f279(0x1fc),_0xf7f279(0x211)],_0x5285d7):(_0x5203d3=typeof globalThis<'u'?globalThis:_0x5203d3||self,_0x5285d7(_0x5203d3[_0xf7f279(0x1f8)]={},_0x5203d3['UniverProExchangeClient'],_0x5203d3[_0xf7f279(0x210)],_0x5203d3[_0xf7f279(0x1e6)],_0x5203d3['UniverSheets'],_0x5203d3[_0xf7f279(0x22b)]));}(this,function(_0x3627b8,_0x36c109,_0x4ee148,_0x64d095,_0xc5f714,_0x4c1594){'use strict';const _0x4d26ab=_0x473f;const _0x168307={'id':_0x4d26ab(0x219),'type':_0x4ee148[_0x4d26ab(0x21c)][_0x4d26ab(0x21b)],'handler':async _0x13fdeb=>{const _0x374d9d=_0x4d26ab,_0x1a0908=_0x13fdeb[_0x374d9d(0x217)](_0x36c109[_0x374d9d(0x1ec)]);return new URLSearchParams(location[_0x374d9d(0x1f3)])[_0x374d9d(0x217)](_0x374d9d(0x224))?_0x1a0908[_0x374d9d(0x21d)]():_0x1a0908['importXLSXToSnapshot'](),!0x0;}},_0x2d3744={'id':_0x4d26ab(0x21a),'type':_0x4ee148[_0x4d26ab(0x21c)][_0x4d26ab(0x21b)],'handler':async _0x259fb8=>{const _0x530051=_0x4d26ab,_0x132a6b=_0x259fb8[_0x530051(0x217)](_0x36c109[_0x530051(0x1ec)]);return new URLSearchParams(location[_0x530051(0x1f3)])[_0x530051(0x217)](_0x530051(0x224))?_0x132a6b[_0x530051(0x20e)]():_0x132a6b[_0x530051(0x226)](),!0x0;}},_0x306bbb=_0x4d26ab(0x1f6),_0x3c168a={},_0x23f462=_0x4d26ab(0x207);function _0x31b1ff(_0x26df21){const _0x442076=_0x4d26ab;return{'id':_0x23f462,'type':_0x64d095[_0x442076(0x1e8)][_0x442076(0x227)],'icon':_0x442076(0x1eb),'tooltip':'exchange.file','hidden$':_0x64d095[_0x442076(0x220)](_0x26df21,_0x4ee148[_0x442076(0x1e2)]['UNIVER_SHEET']),'disabled$':_0x4c1594[_0x442076(0x228)](_0x26df21,{'workbookTypes':[_0xc5f714[_0x442076(0x213)]]})};}function _0x1574b2(){const _0x474429=_0x4d26ab;return{'id':_0x168307['id'],'type':_0x64d095[_0x474429(0x1e8)]['BUTTON'],'title':_0x474429(0x21f),'icon':_0x474429(0x1f4)};}function _0x498706(){const _0x39d0f8=_0x4d26ab;return{'id':_0x2d3744['id'],'type':_0x64d095['MenuItemType'][_0x39d0f8(0x229)],'title':_0x39d0f8(0x1f9),'icon':_0x39d0f8(0x208)};}const _0xf7e170={[_0x64d095[_0x4d26ab(0x1f0)][_0x4d26ab(0x222)]]:{[_0x23f462]:{'order':0.3,'menuItemFactory':_0x31b1ff,[_0x168307['id']]:{'order':0x0,'menuItemFactory':_0x1574b2},[_0x2d3744['id']]:{'order':0x1,'menuItemFactory':_0x498706}}}};var _0x509029=Object[_0x4d26ab(0x209)],_0x14f5aa=(_0x211670,_0x52beff,_0x57a729,_0x10feba)=>{const _0x22d3c8=_0x4d26ab;for(var _0x5aa407=_0x10feba>0x1?void 0x0:_0x10feba?_0x509029(_0x52beff,_0x57a729):_0x52beff,_0x2229dd=_0x211670[_0x22d3c8(0x1e9)]-0x1,_0x18ac89;_0x2229dd>=0x0;_0x2229dd--)(_0x18ac89=_0x211670[_0x2229dd])&&(_0x5aa407=_0x18ac89(_0x5aa407)||_0x5aa407);return _0x5aa407;},_0x22a4b7=(_0x2cbb21,_0x477b73)=>(_0x31d5a6,_0x2b79a7)=>_0x477b73(_0x31d5a6,_0x2b79a7,_0x2cbb21);let _0x1097cd=class extends _0x4ee148[_0x4d26ab(0x221)]{constructor(_0x128a31,_0x316498){const _0x37ed83=_0x4d26ab;super(),this['_commandService']=_0x128a31,this[_0x37ed83(0x22a)]=_0x316498,this[_0x37ed83(0x20c)](),this[_0x37ed83(0x1e4)]();}['_initCommands'](){[_0x168307,_0x2d3744]['forEach'](_0x565c7d=>{const _0x346032=_0x473f;this[_0x346032(0x20d)](this[_0x346032(0x204)]['registerCommand'](_0x565c7d));});}[_0x4d26ab(0x1e4)](){const _0x5f3bea=_0x4d26ab;this[_0x5f3bea(0x22a)]['mergeMenu'](_0xf7e170);}};_0x1097cd=_0x14f5aa([_0x22a4b7(0x0,_0x4ee148['ICommandService']),_0x22a4b7(0x1,_0x64d095['IMenuManagerService'])],_0x1097cd);var _0x5efd13=Object[_0x4d26ab(0x1e3)],_0x39c300=Object[_0x4d26ab(0x209)],_0x4c070f=(_0x12d374,_0x1dd200,_0x11ddc2)=>_0x1dd200 in _0x12d374?_0x5efd13(_0x12d374,_0x1dd200,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x11ddc2}):_0x12d374[_0x1dd200]=_0x11ddc2,_0x5cdb16=(_0x2a0541,_0x3d123c,_0x303f15,_0x1e8105)=>{for(var _0x4e38ce=_0x1e8105>0x1?void 0x0:_0x1e8105?_0x39c300(_0x3d123c,_0x303f15):_0x3d123c,_0xb37ea6=_0x2a0541['length']-0x1,_0x3cf9d1;_0xb37ea6>=0x0;_0xb37ea6--)(_0x3cf9d1=_0x2a0541[_0xb37ea6])&&(_0x4e38ce=_0x3cf9d1(_0x4e38ce)||_0x4e38ce);return _0x4e38ce;},_0x137efb=(_0x44047f,_0x1ea2be)=>(_0x42ee31,_0x3a1a7e)=>_0x1ea2be(_0x42ee31,_0x3a1a7e,_0x44047f),_0x476bb0=(_0x30b2de,_0x3efd20,_0x2e7ac9)=>_0x4c070f(_0x30b2de,typeof _0x3efd20!=_0x4d26ab(0x1f5)?_0x3efd20+'':_0x3efd20,_0x2e7ac9);const _0x169d69='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x3627b8[_0x4d26ab(0x1f2)]=class extends _0x4ee148['Plugin']{constructor(_0xb1c0e0=_0x3c168a,_0x59ad25,_0x1a94d8){const _0x50fac8=_0x4d26ab;super(),this[_0x50fac8(0x1ff)]=_0xb1c0e0,this[_0x50fac8(0x1ed)]=_0x59ad25,this[_0x50fac8(0x200)]=_0x1a94d8;const {menu:_0x38d58f,..._0x126271}=_0x4ee148[_0x50fac8(0x206)]({},_0x3c168a,this[_0x50fac8(0x1ff)]);_0x38d58f&&this[_0x50fac8(0x200)]['setConfig']('menu',_0x38d58f,{'merge':!0x0}),this[_0x50fac8(0x200)][_0x50fac8(0x1f7)](_0x306bbb,_0x126271);}[_0x4d26ab(0x1e7)](){const _0x3a8968=_0x4d26ab;[[_0x1097cd]][_0x3a8968(0x205)](_0x457c6b=>this[_0x3a8968(0x1ed)][_0x3a8968(0x1ef)](_0x457c6b));}['onReady'](){const _0x6a6a3=_0x4d26ab;this[_0x6a6a3(0x1ed)]['get'](_0x1097cd);}},_0x476bb0(_0x3627b8[_0x4d26ab(0x1f2)],_0x4d26ab(0x225),_0x169d69),_0x476bb0(_0x3627b8[_0x4d26ab(0x1f2)],_0x4d26ab(0x218),_0x4ee148[_0x4d26ab(0x1e2)]['UNIVER_SHEET']),_0x3627b8[_0x4d26ab(0x1f2)]=_0x5cdb16([_0x4ee148['DependentOn'](_0x36c109[_0x4d26ab(0x22d)]),_0x137efb(0x1,_0x4ee148['Inject'](_0x4ee148[_0x4d26ab(0x216)])),_0x137efb(0x2,_0x4ee148[_0x4d26ab(0x1ee)])],_0x3627b8[_0x4d26ab(0x1f2)]),_0x3627b8[_0x4d26ab(0x223)]=_0x2d3744,_0x3627b8['ImportXLSXOperation']=_0x168307,Object[_0x4d26ab(0x1e3)](_0x3627b8,Symbol[_0x4d26ab(0x21e)],{'value':'Module'});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.15.0-insiders.20251227-dafc157",
3
+ "version": "0.15.0-insiders.20251227-453e4ff",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -42,17 +42,17 @@
42
42
  "lib"
43
43
  ],
44
44
  "dependencies": {
45
- "@univerjs-pro/exchange-client": "0.15.0-insiders.20251227-dafc157",
46
- "@univerjs/core": "0.15.0-insiders.20251227-dafc157",
47
- "@univerjs/sheets-ui": "0.15.0-insiders.20251227-dafc157",
48
- "@univerjs/ui": "0.15.0-insiders.20251227-dafc157",
49
- "@univerjs/sheets": "0.15.0-insiders.20251227-dafc157"
45
+ "@univerjs-pro/exchange-client": "0.15.0-insiders.20251227-453e4ff",
46
+ "@univerjs/core": "0.15.0-insiders.20251227-453e4ff",
47
+ "@univerjs/sheets-ui": "0.15.0-insiders.20251227-453e4ff",
48
+ "@univerjs/sheets": "0.15.0-insiders.20251227-453e4ff",
49
+ "@univerjs/ui": "0.15.0-insiders.20251227-453e4ff"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",
53
53
  "vite": "^7.3.0",
54
54
  "vitest": "^4.0.16",
55
- "@univerjs-infra/shared": "0.15.0"
55
+ "@univerjs-infra/shared": "0.14.0"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run",