@univerjs-pro/sheets-exchange-client 0.12.3-nightly.202512060617 → 0.12.4

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 _0x39687e=_0x1e5e;(function(_0x5c12b8,_0x3570be){const _0x27169a=_0x1e5e,_0x9b9fd2=_0x5c12b8();while(!![]){try{const _0x528575=parseInt(_0x27169a(0x15a))/0x1+-parseInt(_0x27169a(0x13b))/0x2*(-parseInt(_0x27169a(0x14d))/0x3)+parseInt(_0x27169a(0x16a))/0x4+parseInt(_0x27169a(0x171))/0x5*(-parseInt(_0x27169a(0x14a))/0x6)+-parseInt(_0x27169a(0x170))/0x7+parseInt(_0x27169a(0x152))/0x8+-parseInt(_0x27169a(0x167))/0x9;if(_0x528575===_0x3570be)break;else _0x9b9fd2['push'](_0x9b9fd2['shift']());}catch(_0x4eb443){_0x9b9fd2['push'](_0x9b9fd2['shift']());}}}(_0x2e73,0xe4d27));Object[_0x39687e(0x16d)](exports,Symbol['toStringTag'],{'value':_0x39687e(0x15e)});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':_0x39687e(0x13e),'type':i[_0x39687e(0x147)][_0x39687e(0x13f)],'handler':async _0x22697f=>{const _0x479bbf=_0x39687e,_0x3ed352=_0x22697f['get'](g[_0x479bbf(0x13d)]);return new URLSearchParams(location[_0x479bbf(0x166)])['get'](_0x479bbf(0x15c))?_0x3ed352[_0x479bbf(0x15f)]():_0x3ed352['importXLSXToSnapshot'](),!0x0;}},p={'id':_0x39687e(0x15d),'type':i[_0x39687e(0x147)]['OPERATION'],'handler':async _0x89a4e9=>{const _0x1f99bd=_0x39687e,_0x3fa06d=_0x89a4e9['get'](g[_0x1f99bd(0x13d)]);return new URLSearchParams(location[_0x1f99bd(0x166)])['get']('unit')?_0x3fa06d[_0x1f99bd(0x15b)]():_0x3fa06d[_0x1f99bd(0x14f)](),!0x0;}},v=_0x39687e(0x141),h={},S='sheets-exchange-client.operation.exchange';function x(_0x1afafa){const _0xaf74d8=_0x39687e;return{'id':S,'type':c['MenuItemType'][_0xaf74d8(0x159)],'icon':_0xaf74d8(0x176),'tooltip':_0xaf74d8(0x155),'hidden$':c[_0xaf74d8(0x172)](_0x1afafa,i['UniverInstanceType'][_0xaf74d8(0x151)]),'disabled$':I[_0xaf74d8(0x14e)](_0x1afafa,{'workbookTypes':[_[_0xaf74d8(0x174)]]})};}function P(){const _0x3daaf3=_0x39687e;return{'id':l['id'],'type':c[_0x3daaf3(0x157)][_0x3daaf3(0x164)],'title':_0x3daaf3(0x153),'icon':_0x3daaf3(0x143)};}function C(){const _0x194613=_0x39687e;return{'id':p['id'],'type':c['MenuItemType'][_0x194613(0x164)],'title':_0x194613(0x16b),'icon':_0x194613(0x16c)};}const f={[c[_0x39687e(0x16e)][_0x39687e(0x14b)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x39687e(0x168)],y=(_0x566ed2,_0x3f76d6,_0xb76010,_0x5b7d8f)=>{const _0x2973e4=_0x39687e;for(var _0x5b9e7a=_0x5b7d8f>0x1?void 0x0:_0x5b7d8f?T(_0x3f76d6,_0xb76010):_0x3f76d6,_0x2b4ba7=_0x566ed2[_0x2973e4(0x145)]-0x1,_0x2c8278;_0x2b4ba7>=0x0;_0x2b4ba7--)(_0x2c8278=_0x566ed2[_0x2b4ba7])&&(_0x5b9e7a=_0x2c8278(_0x5b9e7a)||_0x5b9e7a);return _0x5b9e7a;},m=(_0x3d5cf3,_0x3382ba)=>(_0x3450ec,_0x2115ac)=>_0x3382ba(_0x3450ec,_0x2115ac,_0x3d5cf3);function _0x2e73(){const _0x1f70e9=['onReady','BUTTON','_configService','search','13901013YJAJrv','getOwnPropertyDescriptor','Disposable','7221308POhtjh','exchange.download','ExportIcon','defineProperty','RibbonStartGroup','IMenuManagerService','4787622ZUnZfK','370730sTGQGY','getMenuHiddenObservable','_initMenus','WorkbookExportPermission','pluginName','DirectExportIcon','Plugin','4ycVRBm','forEach','IExchangeOperateService','exchange-client.operation.import-xlsx','OPERATION','UniverSheetsExchangeClientPlugin','sheets-exchange-client.config','Inject','FolderIcon','UniverExchangeClientPlugin','length','get','CommandType','_injector','type','6ejvkBL','OTHERS','menu','95217crLtPY','getCurrentRangeDisable$','exportXLSXBySnapshot','onStarting','UNIVER_SHEET','2919040RRVHxT','exchange.upload','DependentOn','exchange.file','_initCommands','MenuItemType','ICommandService','SUBITEMS','1006219EdDRAI','exportXLSXByUnitId','unit','exchange-client.operation.export-xlsx','Module','importXLSXToUnitId','ExportXLSXOperation','_menuManagerService','_config'];_0x2e73=function(){return _0x1f70e9;};return _0x2e73();}let u=class extends i[_0x39687e(0x169)]{constructor(_0xf1f4a,_0x4adcb4){const _0x339d20=_0x39687e;super(),this['_commandService']=_0xf1f4a,this[_0x339d20(0x161)]=_0x4adcb4,this[_0x339d20(0x156)](),this[_0x339d20(0x173)]();}[_0x39687e(0x156)](){[l,p]['forEach'](_0x5121a4=>{this['disposeWithMe'](this['_commandService']['registerCommand'](_0x5121a4));});}[_0x39687e(0x173)](){this['_menuManagerService']['mergeMenu'](f);}};u=y([m(0x0,i[_0x39687e(0x158)]),m(0x1,c[_0x39687e(0x16f)])],u);function _0x1e5e(_0x78034,_0x51ddae){_0x78034=_0x78034-0x13b;const _0x2e732f=_0x2e73();let _0x1e5e73=_0x2e732f[_0x78034];return _0x1e5e73;}var O=Object[_0x39687e(0x16d)],U=Object[_0x39687e(0x168)],X=(_0x1bfe09,_0x6fdccd,_0xc7f518)=>_0x6fdccd in _0x1bfe09?O(_0x1bfe09,_0x6fdccd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc7f518}):_0x1bfe09[_0x6fdccd]=_0xc7f518,N=(_0x23de81,_0x3eab58,_0x54ca3d,_0xbee359)=>{const _0x3cba45=_0x39687e;for(var _0x29f206=_0xbee359>0x1?void 0x0:_0xbee359?U(_0x3eab58,_0x54ca3d):_0x3eab58,_0x445763=_0x23de81[_0x3cba45(0x145)]-0x1,_0x2c1687;_0x445763>=0x0;_0x445763--)(_0x2c1687=_0x23de81[_0x445763])&&(_0x29f206=_0x2c1687(_0x29f206)||_0x29f206);return _0x29f206;},d=(_0xf79c98,_0x141cab)=>(_0x17afdb,_0x3f5c11)=>_0x141cab(_0x17afdb,_0x3f5c11,_0xf79c98),E=(_0x2eb5a8,_0x34c7df,_0x182dfd)=>X(_0x2eb5a8,typeof _0x34c7df!='symbol'?_0x34c7df+'':_0x34c7df,_0x182dfd);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports[_0x39687e(0x140)]=class extends i[_0x39687e(0x177)]{constructor(_0x9a5ab2=h,_0x46b363,_0x30b10f){const _0x1ebab6=_0x39687e;super(),this[_0x1ebab6(0x162)]=_0x9a5ab2,this[_0x1ebab6(0x148)]=_0x46b363,this['_configService']=_0x30b10f;const {menu:_0xedf731,..._0x460c1f}=i['merge']({},h,this['_config']);_0xedf731&&this[_0x1ebab6(0x165)]['setConfig'](_0x1ebab6(0x14c),_0xedf731,{'merge':!0x0}),this[_0x1ebab6(0x165)]['setConfig'](v,_0x460c1f);}[_0x39687e(0x150)](){const _0x2773ef=_0x39687e;[[u]][_0x2773ef(0x13c)](_0x836478=>this[_0x2773ef(0x148)]['add'](_0x836478));}[_0x39687e(0x163)](){const _0x242735=_0x39687e;this[_0x242735(0x148)][_0x242735(0x146)](u);}},E(exports['UniverSheetsExchangeClientPlugin'],_0x39687e(0x175),L),E(exports[_0x39687e(0x140)],_0x39687e(0x149),i['UniverInstanceType'][_0x39687e(0x151)]),exports['UniverSheetsExchangeClientPlugin']=N([i[_0x39687e(0x154)](g[_0x39687e(0x144)]),d(0x1,i[_0x39687e(0x142)](i['Injector'])),d(0x2,i['IConfigService'])],exports[_0x39687e(0x140)]),exports[_0x39687e(0x160)]=p,exports['ImportXLSXOperation']=l;
1
+ 'use strict';const _0xa5cb02=_0xd7d4;(function(_0x4e0a95,_0x22fdee){const _0x5a8ce3=_0xd7d4,_0x1f2122=_0x4e0a95();while(!![]){try{const _0x2f42d8=-parseInt(_0x5a8ce3(0x1ef))/0x1*(-parseInt(_0x5a8ce3(0x1e8))/0x2)+parseInt(_0x5a8ce3(0x1f0))/0x3+-parseInt(_0x5a8ce3(0x1fc))/0x4+parseInt(_0x5a8ce3(0x202))/0x5+parseInt(_0x5a8ce3(0x200))/0x6*(-parseInt(_0x5a8ce3(0x1e1))/0x7)+-parseInt(_0x5a8ce3(0x20d))/0x8+parseInt(_0x5a8ce3(0x1e0))/0x9;if(_0x2f42d8===_0x22fdee)break;else _0x1f2122['push'](_0x1f2122['shift']());}catch(_0x4ee040){_0x1f2122['push'](_0x1f2122['shift']());}}}(_0x2320,0x78606));Object['defineProperty'](exports,Symbol[_0xa5cb02(0x206)],{'value':_0xa5cb02(0x203)});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':_0xa5cb02(0x21b),'type':i['CommandType']['OPERATION'],'handler':async _0x1071b9=>{const _0x4d8ff5=_0xa5cb02,_0x5edba7=_0x1071b9['get'](g['IExchangeOperateService']);return new URLSearchParams(location[_0x4d8ff5(0x1f7)])[_0x4d8ff5(0x1f3)]('unit')?_0x5edba7[_0x4d8ff5(0x1f9)]():_0x5edba7[_0x4d8ff5(0x1e6)](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i[_0xa5cb02(0x1ff)]['OPERATION'],'handler':async _0x297b1b=>{const _0x205d6f=_0xa5cb02,_0x47135f=_0x297b1b[_0x205d6f(0x1f3)](g['IExchangeOperateService']);return new URLSearchParams(location[_0x205d6f(0x1f7)])[_0x205d6f(0x1f3)]('unit')?_0x47135f[_0x205d6f(0x1f6)]():_0x47135f[_0x205d6f(0x1f4)](),!0x0;}},v='sheets-exchange-client.config',h={},S=_0xa5cb02(0x219);function _0x2320(){const _0x477d99=['importXLSXToSnapshot','length','2xPiVTW','UniverSheetsExchangeClientPlugin','disposeWithMe','onReady','Injector','IMenuManagerService','getOwnPropertyDescriptor','584594gTUKmr','1378242pHOiwb','ExportIcon','_injector','get','exportXLSXBySnapshot','UniverExchangeClientPlugin','exportXLSXByUnitId','search','merge','importXLSXToUnitId','UNIVER_SHEET','onStarting','1929732RUvafH','symbol','exchange.upload','CommandType','6924CExwPs','_config','3993425UXIJAj','Module','UniverInstanceType','DirectExportIcon','toStringTag','menu','exchange.download','exchange.file','SHEET_EXCHANGE_CLIENT_PLUGIN','Inject','DependentOn','5654176iKbHSn','WorkbookExportPermission','add','_initCommands','setConfig','_commandService','ImportXLSXOperation','OTHERS','type','_configService','forEach','Disposable','sheets-exchange-client.operation.exchange','_menuManagerService','exchange-client.operation.import-xlsx','RibbonStartGroup','BUTTON','Plugin','FolderIcon','6179490zIiOOy','5138rTqpNY','ICommandService','registerCommand','SUBITEMS','MenuItemType'];_0x2320=function(){return _0x477d99;};return _0x2320();}function _0xd7d4(_0x5513b0,_0x1381ef){_0x5513b0=_0x5513b0-0x1dc;const _0x23201f=_0x2320();let _0xd7d4cf=_0x23201f[_0x5513b0];return _0xd7d4cf;}function x(_0x29dc91){const _0x15a81a=_0xa5cb02;return{'id':S,'type':c[_0x15a81a(0x1e5)][_0x15a81a(0x1e4)],'icon':_0x15a81a(0x205),'tooltip':_0x15a81a(0x209),'hidden$':c['getMenuHiddenObservable'](_0x29dc91,i[_0x15a81a(0x204)][_0x15a81a(0x1fa)]),'disabled$':I['getCurrentRangeDisable$'](_0x29dc91,{'workbookTypes':[_[_0x15a81a(0x20e)]]})};}function P(){const _0x50fa79=_0xa5cb02;return{'id':l['id'],'type':c[_0x50fa79(0x1e5)][_0x50fa79(0x1dd)],'title':_0x50fa79(0x1fe),'icon':_0x50fa79(0x1df)};}function C(){const _0x427cad=_0xa5cb02;return{'id':p['id'],'type':c['MenuItemType'][_0x427cad(0x1dd)],'title':_0x427cad(0x208),'icon':_0x427cad(0x1f1)};}const f={[c[_0xa5cb02(0x1dc)][_0xa5cb02(0x214)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0xa5cb02(0x1ee)],y=(_0x2e3e66,_0x381573,_0x3851f6,_0x909ec9)=>{const _0x2b91d7=_0xa5cb02;for(var _0x21ddb4=_0x909ec9>0x1?void 0x0:_0x909ec9?T(_0x381573,_0x3851f6):_0x381573,_0x40fe89=_0x2e3e66[_0x2b91d7(0x1e7)]-0x1,_0x334cbe;_0x40fe89>=0x0;_0x40fe89--)(_0x334cbe=_0x2e3e66[_0x40fe89])&&(_0x21ddb4=_0x334cbe(_0x21ddb4)||_0x21ddb4);return _0x21ddb4;},m=(_0x4460cb,_0x5ebaa2)=>(_0x3795a9,_0x129fa8)=>_0x5ebaa2(_0x3795a9,_0x129fa8,_0x4460cb);let u=class extends i[_0xa5cb02(0x218)]{constructor(_0x2512c4,_0x588a43){const _0x1d31a7=_0xa5cb02;super(),this[_0x1d31a7(0x212)]=_0x2512c4,this[_0x1d31a7(0x21a)]=_0x588a43,this[_0x1d31a7(0x210)](),this['_initMenus']();}[_0xa5cb02(0x210)](){const _0x190ad3=_0xa5cb02;[l,p][_0x190ad3(0x217)](_0x14fa29=>{const _0x112635=_0x190ad3;this[_0x112635(0x1ea)](this[_0x112635(0x212)][_0x112635(0x1e3)](_0x14fa29));});}['_initMenus'](){const _0x4d17e6=_0xa5cb02;this[_0x4d17e6(0x21a)]['mergeMenu'](f);}};u=y([m(0x0,i[_0xa5cb02(0x1e2)]),m(0x1,c[_0xa5cb02(0x1ed)])],u);var O=Object['defineProperty'],U=Object[_0xa5cb02(0x1ee)],X=(_0x70d181,_0x147dc9,_0x46c7a3)=>_0x147dc9 in _0x70d181?O(_0x70d181,_0x147dc9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x46c7a3}):_0x70d181[_0x147dc9]=_0x46c7a3,N=(_0x43825f,_0x1cbc09,_0x2f7ccf,_0x38dee4)=>{const _0x7e91ac=_0xa5cb02;for(var _0x1afa44=_0x38dee4>0x1?void 0x0:_0x38dee4?U(_0x1cbc09,_0x2f7ccf):_0x1cbc09,_0x899a27=_0x43825f[_0x7e91ac(0x1e7)]-0x1,_0x261d5b;_0x899a27>=0x0;_0x899a27--)(_0x261d5b=_0x43825f[_0x899a27])&&(_0x1afa44=_0x261d5b(_0x1afa44)||_0x1afa44);return _0x1afa44;},d=(_0x2bbb1d,_0x160be9)=>(_0x19ca45,_0x4c82f7)=>_0x160be9(_0x19ca45,_0x4c82f7,_0x2bbb1d),E=(_0x101661,_0x1ac0a0,_0x3241f9)=>X(_0x101661,typeof _0x1ac0a0!=_0xa5cb02(0x1fd)?_0x1ac0a0+'':_0x1ac0a0,_0x3241f9);const L=_0xa5cb02(0x20a);exports[_0xa5cb02(0x1e9)]=class extends i[_0xa5cb02(0x1de)]{constructor(_0x37cf9c=h,_0x29fdf3,_0xeb8d6){const _0x1ecb59=_0xa5cb02;super(),this[_0x1ecb59(0x201)]=_0x37cf9c,this[_0x1ecb59(0x1f2)]=_0x29fdf3,this[_0x1ecb59(0x216)]=_0xeb8d6;const {menu:_0x1fa9ac,..._0x3a7934}=i[_0x1ecb59(0x1f8)]({},h,this['_config']);_0x1fa9ac&&this['_configService'][_0x1ecb59(0x211)](_0x1ecb59(0x207),_0x1fa9ac,{'merge':!0x0}),this[_0x1ecb59(0x216)][_0x1ecb59(0x211)](v,_0x3a7934);}[_0xa5cb02(0x1fb)](){const _0x19dc7b=_0xa5cb02;[[u]]['forEach'](_0x436fb2=>this['_injector'][_0x19dc7b(0x20f)](_0x436fb2));}[_0xa5cb02(0x1eb)](){const _0x427b68=_0xa5cb02;this['_injector'][_0x427b68(0x1f3)](u);}},E(exports['UniverSheetsExchangeClientPlugin'],'pluginName',L),E(exports[_0xa5cb02(0x1e9)],_0xa5cb02(0x215),i[_0xa5cb02(0x204)]['UNIVER_SHEET']),exports[_0xa5cb02(0x1e9)]=N([i[_0xa5cb02(0x20c)](g[_0xa5cb02(0x1f5)]),d(0x1,i[_0xa5cb02(0x20b)](i[_0xa5cb02(0x1ec)])),d(0x2,i['IConfigService'])],exports[_0xa5cb02(0x1e9)]),exports['ExportXLSXOperation']=p,exports[_0xa5cb02(0x213)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1b4aa2=_0x4a71;(function(_0x252215,_0x43f960){const _0x313494=_0x4a71,_0x3cb6e5=_0x252215();while(!![]){try{const _0x5bf7cc=parseInt(_0x313494(0xb5))/0x1+-parseInt(_0x313494(0xbb))/0x2+parseInt(_0x313494(0xae))/0x3*(-parseInt(_0x313494(0xab))/0x4)+parseInt(_0x313494(0xb3))/0x5+parseInt(_0x313494(0xd0))/0x6*(parseInt(_0x313494(0xc2))/0x7)+-parseInt(_0x313494(0xb1))/0x8*(-parseInt(_0x313494(0xd1))/0x9)+parseInt(_0x313494(0xc7))/0xa;if(_0x5bf7cc===_0x43f960)break;else _0x3cb6e5['push'](_0x3cb6e5['shift']());}catch(_0x3c49fb){_0x3cb6e5['push'](_0x3cb6e5['shift']());}}}(_0x15ff,0x53f08));import{IExchangeOperateService as _0xb41ed5,UniverExchangeClientPlugin as _0x2314e8}from'@univerjs-pro/exchange-client';import{CommandType as _0x1d8dd3,UniverInstanceType as _0x5beb3c,Disposable as _0x370d81,ICommandService as _0x349c8d,DependentOn as _0x21fd4f,Inject as _0x913678,Injector as _0x84e45c,IConfigService as _0x309332,Plugin as _0x15008a,merge as _0x3c65a2}from'@univerjs/core';import{MenuItemType as _0x441471,getMenuHiddenObservable as _0x295d82,RibbonStartGroup as _0x417655,IMenuManagerService as _0x274c46}from'@univerjs/ui';import{WorkbookExportPermission as _0x4a74bf}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x162051}from'@univerjs/sheets-ui';const p={'id':_0x1b4aa2(0xb2),'type':_0x1d8dd3[_0x1b4aa2(0xac)],'handler':async _0x5667cd=>{const _0x149a92=_0x1b4aa2,_0x32ca4e=_0x5667cd[_0x149a92(0xc8)](_0xb41ed5);return new URLSearchParams(location[_0x149a92(0xc6)])[_0x149a92(0xc8)](_0x149a92(0xaf))?_0x32ca4e['importXLSXToUnitId']():_0x32ca4e['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x1b4aa2(0xa4),'type':_0x1d8dd3[_0x1b4aa2(0xac)],'handler':async _0x37d1b4=>{const _0xe6efc2=_0x1b4aa2,_0x1ef537=_0x37d1b4[_0xe6efc2(0xc8)](_0xb41ed5);return new URLSearchParams(location[_0xe6efc2(0xc6)])[_0xe6efc2(0xc8)](_0xe6efc2(0xaf))?_0x1ef537[_0xe6efc2(0xcf)]():_0x1ef537[_0xe6efc2(0xc5)](),!0x0;}},H=_0x1b4aa2(0xba),l={},S=_0x1b4aa2(0xbd);function _0x4a71(_0x26dc42,_0x478420){_0x26dc42=_0x26dc42-0xa4;const _0x15ff9b=_0x15ff();let _0x4a71eb=_0x15ff9b[_0x26dc42];return _0x4a71eb;}function R(_0x1249d0){const _0x19e227=_0x1b4aa2;return{'id':S,'type':_0x441471[_0x19e227(0xcd)],'icon':'DirectExportIcon','tooltip':'exchange.file','hidden$':_0x295d82(_0x1249d0,_0x5beb3c[_0x19e227(0xb0)]),'disabled$':_0x162051(_0x1249d0,{'workbookTypes':[_0x4a74bf]})};}function w(){const _0xf5c2d9=_0x1b4aa2;return{'id':p['id'],'type':_0x441471[_0xf5c2d9(0xb4)],'title':_0xf5c2d9(0xc4),'icon':_0xf5c2d9(0xbc)};}function D(){const _0x25b602=_0x1b4aa2;return{'id':u['id'],'type':_0x441471[_0x25b602(0xb4)],'title':_0x25b602(0xb7),'icon':_0x25b602(0xaa)};}const F={[_0x417655[_0x1b4aa2(0xce)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x506a0a,_0x230ca9,_0x33a7f2,_0x467a96)=>{const _0x340bc3=_0x1b4aa2;for(var _0x104d7e=_0x467a96>0x1?void 0x0:_0x467a96?G(_0x230ca9,_0x33a7f2):_0x230ca9,_0x3482b2=_0x506a0a[_0x340bc3(0xa9)]-0x1,_0x310af9;_0x3482b2>=0x0;_0x3482b2--)(_0x310af9=_0x506a0a[_0x3482b2])&&(_0x104d7e=_0x310af9(_0x104d7e)||_0x104d7e);return _0x104d7e;},d=(_0x14bcb4,_0x40a15a)=>(_0x409ba4,_0x15b30b)=>_0x40a15a(_0x409ba4,_0x15b30b,_0x14bcb4);let c=class extends _0x370d81{constructor(_0x51207f,_0x3e32ca){const _0x2cab1a=_0x1b4aa2;super(),this[_0x2cab1a(0xc3)]=_0x51207f,this[_0x2cab1a(0xc9)]=_0x3e32ca,this['_initCommands'](),this[_0x2cab1a(0xd3)]();}[_0x1b4aa2(0xa8)](){[p,u]['forEach'](_0xff28aa=>{const _0x9651b6=_0x4a71;this[_0x9651b6(0xad)](this[_0x9651b6(0xc3)][_0x9651b6(0xcb)](_0xff28aa));});}[_0x1b4aa2(0xd3)](){this['_menuManagerService']['mergeMenu'](F);}};c=A([d(0x0,_0x349c8d),d(0x1,_0x274c46)],c);function _0x15ff(){const _0x3cb870=['168232aFQWEq','add','exchange.download','defineProperty','type','sheets-exchange-client.config','631974Rdqkvu','FolderIcon','sheets-exchange-client.operation.exchange','pluginName','getOwnPropertyDescriptor','onStarting','onReady','23471MgZPPI','_commandService','exchange.upload','exportXLSXBySnapshot','search','7171330BtpQpO','get','_menuManagerService','symbol','registerCommand','SHEET_EXCHANGE_CLIENT_PLUGIN','SUBITEMS','OTHERS','exportXLSXByUnitId','288FYRdKh','9nxFMks','forEach','_initMenus','_injector','exchange-client.operation.export-xlsx','setConfig','_configService','_config','_initCommands','length','ExportIcon','64308otoODh','OPERATION','disposeWithMe','93qlFIJa','unit','UNIVER_SHEET','363296uhryUj','exchange-client.operation.import-xlsx','332345oIPxbY','BUTTON'];_0x15ff=function(){return _0x3cb870;};return _0x15ff();}var j=Object[_0x1b4aa2(0xb8)],B=Object[_0x1b4aa2(0xbf)],$=(_0x5d8453,_0x273f5e,_0x1c7811)=>_0x273f5e in _0x5d8453?j(_0x5d8453,_0x273f5e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c7811}):_0x5d8453[_0x273f5e]=_0x1c7811,V=(_0x2c0e70,_0x536206,_0x359953,_0x422e79)=>{for(var _0x57a20e=_0x422e79>0x1?void 0x0:_0x422e79?B(_0x536206,_0x359953):_0x536206,_0x3792ec=_0x2c0e70['length']-0x1,_0x181f2f;_0x3792ec>=0x0;_0x3792ec--)(_0x181f2f=_0x2c0e70[_0x3792ec])&&(_0x57a20e=_0x181f2f(_0x57a20e)||_0x57a20e);return _0x57a20e;},_=(_0x44d9db,_0x224a6e)=>(_0x34cfdc,_0x5de46e)=>_0x224a6e(_0x34cfdc,_0x5de46e,_0x44d9db),I=(_0x5f0ba2,_0x3dbed1,_0xd0c555)=>$(_0x5f0ba2,typeof _0x3dbed1!=_0x1b4aa2(0xca)?_0x3dbed1+'':_0x3dbed1,_0xd0c555);const W=_0x1b4aa2(0xcc);let s=class extends _0x15008a{constructor(_0x2483c6=l,_0x37e3,_0x3fb7b7){const _0xa2bb1d=_0x1b4aa2;super(),this[_0xa2bb1d(0xa7)]=_0x2483c6,this[_0xa2bb1d(0xd4)]=_0x37e3,this[_0xa2bb1d(0xa6)]=_0x3fb7b7;const {menu:_0x57ab24,..._0x20076d}=_0x3c65a2({},l,this[_0xa2bb1d(0xa7)]);_0x57ab24&&this['_configService']['setConfig']('menu',_0x57ab24,{'merge':!0x0}),this[_0xa2bb1d(0xa6)][_0xa2bb1d(0xa5)](H,_0x20076d);}[_0x1b4aa2(0xc0)](){const _0x49371a=_0x1b4aa2;[[c]][_0x49371a(0xd2)](_0x5c973c=>this[_0x49371a(0xd4)][_0x49371a(0xb6)](_0x5c973c));}[_0x1b4aa2(0xc1)](){const _0xa0d0a6=_0x1b4aa2;this[_0xa0d0a6(0xd4)][_0xa0d0a6(0xc8)](c);}};I(s,_0x1b4aa2(0xbe),W),I(s,_0x1b4aa2(0xb9),_0x5beb3c[_0x1b4aa2(0xb0)]),s=V([_0x21fd4f(_0x2314e8),_(0x1,_0x913678(_0x84e45c)),_(0x2,_0x309332)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x395220=_0x1eab;(function(_0x75f005,_0x2fb029){const _0x2bb362=_0x1eab,_0xc27da4=_0x75f005();while(!![]){try{const _0x2df840=parseInt(_0x2bb362(0x1cf))/0x1*(parseInt(_0x2bb362(0x1e1))/0x2)+parseInt(_0x2bb362(0x1d5))/0x3+parseInt(_0x2bb362(0x1f0))/0x4+parseInt(_0x2bb362(0x1e2))/0x5*(parseInt(_0x2bb362(0x1da))/0x6)+parseInt(_0x2bb362(0x1e6))/0x7+parseInt(_0x2bb362(0x1dc))/0x8+parseInt(_0x2bb362(0x1e9))/0x9*(-parseInt(_0x2bb362(0x1cc))/0xa);if(_0x2df840===_0x2fb029)break;else _0xc27da4['push'](_0xc27da4['shift']());}catch(_0x3a50e7){_0xc27da4['push'](_0xc27da4['shift']());}}}(_0xf9eb,0xa00d3));import{IExchangeOperateService as _0x4fc5b1,UniverExchangeClientPlugin as _0x5e0cba}from'@univerjs-pro/exchange-client';import{CommandType as _0x3e310a,UniverInstanceType as _0x133425,Disposable as _0x4c27cb,ICommandService as _0x5d8605,DependentOn as _0x3a1d3f,Inject as _0x4f5a61,Injector as _0x42dd95,IConfigService as _0x5297a7,Plugin as _0x436460,merge as _0x2ab837}from'@univerjs/core';import{MenuItemType as _0x401949,getMenuHiddenObservable as _0x514dae,RibbonStartGroup as _0x46decd,IMenuManagerService as _0x51401d}from'@univerjs/ui';import{WorkbookExportPermission as _0x25981c}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x319087}from'@univerjs/sheets-ui';const p={'id':_0x395220(0x1de),'type':_0x3e310a[_0x395220(0x1d9)],'handler':async _0x18495f=>{const _0x2f96a4=_0x395220,_0x44f95b=_0x18495f[_0x2f96a4(0x1ea)](_0x4fc5b1);return new URLSearchParams(location[_0x2f96a4(0x1e8)])[_0x2f96a4(0x1ea)](_0x2f96a4(0x1d2))?_0x44f95b[_0x2f96a4(0x1f6)]():_0x44f95b[_0x2f96a4(0x1d4)](),!0x0;}},u={'id':_0x395220(0x1d1),'type':_0x3e310a[_0x395220(0x1d9)],'handler':async _0x3dd04a=>{const _0xe0f575=_0x395220,_0x1cdc94=_0x3dd04a[_0xe0f575(0x1ea)](_0x4fc5b1);return new URLSearchParams(location['search'])[_0xe0f575(0x1ea)](_0xe0f575(0x1d2))?_0x1cdc94[_0xe0f575(0x1f4)]():_0x1cdc94[_0xe0f575(0x1d0)](),!0x0;}},H=_0x395220(0x1db),l={},S=_0x395220(0x1d3);function R(_0x28a221){const _0x3866c6=_0x395220;return{'id':S,'type':_0x401949[_0x3866c6(0x1cd)],'icon':'DirectExportIcon','tooltip':_0x3866c6(0x1e0),'hidden$':_0x514dae(_0x28a221,_0x133425[_0x3866c6(0x1ee)]),'disabled$':_0x319087(_0x28a221,{'workbookTypes':[_0x25981c]})};}function w(){const _0x24cea7=_0x395220;return{'id':p['id'],'type':_0x401949[_0x24cea7(0x1f8)],'title':_0x24cea7(0x1e4),'icon':'FolderIcon'};}function _0x1eab(_0x9a6f23,_0x372f26){_0x9a6f23=_0x9a6f23-0x1cc;const _0xf9eb37=_0xf9eb();let _0x1eab9e=_0xf9eb37[_0x9a6f23];return _0x1eab9e;}function D(){const _0x3a4666=_0x395220;return{'id':u['id'],'type':_0x401949[_0x3a4666(0x1f8)],'title':'exchange.download','icon':'ExportIcon'};}const F={[_0x46decd[_0x395220(0x1dd)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x395220(0x1e5)],A=(_0x1bfde2,_0xb5cf98,_0x51f91b,_0x5d8599)=>{for(var _0x1117b7=_0x5d8599>0x1?void 0x0:_0x5d8599?G(_0xb5cf98,_0x51f91b):_0xb5cf98,_0x5109f1=_0x1bfde2['length']-0x1,_0x203887;_0x5109f1>=0x0;_0x5109f1--)(_0x203887=_0x1bfde2[_0x5109f1])&&(_0x1117b7=_0x203887(_0x1117b7)||_0x1117b7);return _0x1117b7;},d=(_0x225183,_0x5cfa96)=>(_0x3a2f1a,_0x256b85)=>_0x5cfa96(_0x3a2f1a,_0x256b85,_0x225183);let c=class extends _0x4c27cb{constructor(_0x5c1f43,_0x516f9c){const _0x316c3b=_0x395220;super(),this['_commandService']=_0x5c1f43,this['_menuManagerService']=_0x516f9c,this[_0x316c3b(0x1ce)](),this[_0x316c3b(0x1e7)]();}[_0x395220(0x1ce)](){[p,u]['forEach'](_0x439147=>{const _0x12438e=_0x1eab;this[_0x12438e(0x1ef)](this[_0x12438e(0x1df)]['registerCommand'](_0x439147));});}[_0x395220(0x1e7)](){const _0x272639=_0x395220;this['_menuManagerService'][_0x272639(0x1f7)](F);}};c=A([d(0x0,_0x5d8605),d(0x1,_0x51401d)],c);var j=Object['defineProperty'],B=Object[_0x395220(0x1e5)],$=(_0x44882e,_0x1520d6,_0x1233f4)=>_0x1520d6 in _0x44882e?j(_0x44882e,_0x1520d6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1233f4}):_0x44882e[_0x1520d6]=_0x1233f4,V=(_0x1ce37e,_0x27be51,_0x2a9fa9,_0x2364f1)=>{const _0x4a4976=_0x395220;for(var _0x34ef9e=_0x2364f1>0x1?void 0x0:_0x2364f1?B(_0x27be51,_0x2a9fa9):_0x27be51,_0x5bebc5=_0x1ce37e[_0x4a4976(0x1eb)]-0x1,_0x1caae9;_0x5bebc5>=0x0;_0x5bebc5--)(_0x1caae9=_0x1ce37e[_0x5bebc5])&&(_0x34ef9e=_0x1caae9(_0x34ef9e)||_0x34ef9e);return _0x34ef9e;},_=(_0x4e2b2a,_0x38f042)=>(_0x32d9c1,_0x552597)=>_0x38f042(_0x32d9c1,_0x552597,_0x4e2b2a),I=(_0x1bed28,_0x4b9436,_0x540e73)=>$(_0x1bed28,typeof _0x4b9436!=_0x395220(0x1f2)?_0x4b9436+'':_0x4b9436,_0x540e73);function _0xf9eb(){const _0xe19370=['OPERATION','84mFAkKI','sheets-exchange-client.config','4135656NLzXoK','OTHERS','exchange-client.operation.import-xlsx','_commandService','exchange.file','36OIbyjM','143950YcSLtC','SHEET_EXCHANGE_CLIENT_PLUGIN','exchange.upload','getOwnPropertyDescriptor','3018715eHhNcF','_initMenus','search','3123tpDGsW','get','length','onReady','pluginName','UNIVER_SHEET','disposeWithMe','3749900xqKNgG','forEach','symbol','setConfig','exportXLSXByUnitId','_config','importXLSXToUnitId','mergeMenu','BUTTON','90030HBQKwG','SUBITEMS','_initCommands','26060VxVsPS','exportXLSXBySnapshot','exchange-client.operation.export-xlsx','unit','sheets-exchange-client.operation.exchange','importXLSXToSnapshot','3065385PSkcma','onStarting','type','_configService'];_0xf9eb=function(){return _0xe19370;};return _0xf9eb();}const W=_0x395220(0x1e3);let s=class extends _0x436460{constructor(_0x3755dd=l,_0x5eeaf9,_0x1b4c99){const _0x2f58ef=_0x395220;super(),this[_0x2f58ef(0x1f5)]=_0x3755dd,this['_injector']=_0x5eeaf9,this['_configService']=_0x1b4c99;const {menu:_0xc87c1f,..._0x48a25e}=_0x2ab837({},l,this[_0x2f58ef(0x1f5)]);_0xc87c1f&&this[_0x2f58ef(0x1d8)][_0x2f58ef(0x1f3)]('menu',_0xc87c1f,{'merge':!0x0}),this[_0x2f58ef(0x1d8)]['setConfig'](H,_0x48a25e);}[_0x395220(0x1d6)](){const _0x5952c2=_0x395220;[[c]][_0x5952c2(0x1f1)](_0xcd65e=>this['_injector']['add'](_0xcd65e));}[_0x395220(0x1ec)](){const _0xeca5ba=_0x395220;this['_injector'][_0xeca5ba(0x1ea)](c);}};I(s,_0x395220(0x1ed),W),I(s,_0x395220(0x1d7),_0x133425['UNIVER_SHEET']),s=V([_0x3a1d3f(_0x5e0cba),_(0x1,_0x4f5a61(_0x42dd95)),_(0x2,_0x5297a7)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1b4aa2=_0x4a71;(function(_0x252215,_0x43f960){const _0x313494=_0x4a71,_0x3cb6e5=_0x252215();while(!![]){try{const _0x5bf7cc=parseInt(_0x313494(0xb5))/0x1+-parseInt(_0x313494(0xbb))/0x2+parseInt(_0x313494(0xae))/0x3*(-parseInt(_0x313494(0xab))/0x4)+parseInt(_0x313494(0xb3))/0x5+parseInt(_0x313494(0xd0))/0x6*(parseInt(_0x313494(0xc2))/0x7)+-parseInt(_0x313494(0xb1))/0x8*(-parseInt(_0x313494(0xd1))/0x9)+parseInt(_0x313494(0xc7))/0xa;if(_0x5bf7cc===_0x43f960)break;else _0x3cb6e5['push'](_0x3cb6e5['shift']());}catch(_0x3c49fb){_0x3cb6e5['push'](_0x3cb6e5['shift']());}}}(_0x15ff,0x53f08));import{IExchangeOperateService as _0xb41ed5,UniverExchangeClientPlugin as _0x2314e8}from'@univerjs-pro/exchange-client';import{CommandType as _0x1d8dd3,UniverInstanceType as _0x5beb3c,Disposable as _0x370d81,ICommandService as _0x349c8d,DependentOn as _0x21fd4f,Inject as _0x913678,Injector as _0x84e45c,IConfigService as _0x309332,Plugin as _0x15008a,merge as _0x3c65a2}from'@univerjs/core';import{MenuItemType as _0x441471,getMenuHiddenObservable as _0x295d82,RibbonStartGroup as _0x417655,IMenuManagerService as _0x274c46}from'@univerjs/ui';import{WorkbookExportPermission as _0x4a74bf}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x162051}from'@univerjs/sheets-ui';const p={'id':_0x1b4aa2(0xb2),'type':_0x1d8dd3[_0x1b4aa2(0xac)],'handler':async _0x5667cd=>{const _0x149a92=_0x1b4aa2,_0x32ca4e=_0x5667cd[_0x149a92(0xc8)](_0xb41ed5);return new URLSearchParams(location[_0x149a92(0xc6)])[_0x149a92(0xc8)](_0x149a92(0xaf))?_0x32ca4e['importXLSXToUnitId']():_0x32ca4e['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x1b4aa2(0xa4),'type':_0x1d8dd3[_0x1b4aa2(0xac)],'handler':async _0x37d1b4=>{const _0xe6efc2=_0x1b4aa2,_0x1ef537=_0x37d1b4[_0xe6efc2(0xc8)](_0xb41ed5);return new URLSearchParams(location[_0xe6efc2(0xc6)])[_0xe6efc2(0xc8)](_0xe6efc2(0xaf))?_0x1ef537[_0xe6efc2(0xcf)]():_0x1ef537[_0xe6efc2(0xc5)](),!0x0;}},H=_0x1b4aa2(0xba),l={},S=_0x1b4aa2(0xbd);function _0x4a71(_0x26dc42,_0x478420){_0x26dc42=_0x26dc42-0xa4;const _0x15ff9b=_0x15ff();let _0x4a71eb=_0x15ff9b[_0x26dc42];return _0x4a71eb;}function R(_0x1249d0){const _0x19e227=_0x1b4aa2;return{'id':S,'type':_0x441471[_0x19e227(0xcd)],'icon':'DirectExportIcon','tooltip':'exchange.file','hidden$':_0x295d82(_0x1249d0,_0x5beb3c[_0x19e227(0xb0)]),'disabled$':_0x162051(_0x1249d0,{'workbookTypes':[_0x4a74bf]})};}function w(){const _0xf5c2d9=_0x1b4aa2;return{'id':p['id'],'type':_0x441471[_0xf5c2d9(0xb4)],'title':_0xf5c2d9(0xc4),'icon':_0xf5c2d9(0xbc)};}function D(){const _0x25b602=_0x1b4aa2;return{'id':u['id'],'type':_0x441471[_0x25b602(0xb4)],'title':_0x25b602(0xb7),'icon':_0x25b602(0xaa)};}const F={[_0x417655[_0x1b4aa2(0xce)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x506a0a,_0x230ca9,_0x33a7f2,_0x467a96)=>{const _0x340bc3=_0x1b4aa2;for(var _0x104d7e=_0x467a96>0x1?void 0x0:_0x467a96?G(_0x230ca9,_0x33a7f2):_0x230ca9,_0x3482b2=_0x506a0a[_0x340bc3(0xa9)]-0x1,_0x310af9;_0x3482b2>=0x0;_0x3482b2--)(_0x310af9=_0x506a0a[_0x3482b2])&&(_0x104d7e=_0x310af9(_0x104d7e)||_0x104d7e);return _0x104d7e;},d=(_0x14bcb4,_0x40a15a)=>(_0x409ba4,_0x15b30b)=>_0x40a15a(_0x409ba4,_0x15b30b,_0x14bcb4);let c=class extends _0x370d81{constructor(_0x51207f,_0x3e32ca){const _0x2cab1a=_0x1b4aa2;super(),this[_0x2cab1a(0xc3)]=_0x51207f,this[_0x2cab1a(0xc9)]=_0x3e32ca,this['_initCommands'](),this[_0x2cab1a(0xd3)]();}[_0x1b4aa2(0xa8)](){[p,u]['forEach'](_0xff28aa=>{const _0x9651b6=_0x4a71;this[_0x9651b6(0xad)](this[_0x9651b6(0xc3)][_0x9651b6(0xcb)](_0xff28aa));});}[_0x1b4aa2(0xd3)](){this['_menuManagerService']['mergeMenu'](F);}};c=A([d(0x0,_0x349c8d),d(0x1,_0x274c46)],c);function _0x15ff(){const _0x3cb870=['168232aFQWEq','add','exchange.download','defineProperty','type','sheets-exchange-client.config','631974Rdqkvu','FolderIcon','sheets-exchange-client.operation.exchange','pluginName','getOwnPropertyDescriptor','onStarting','onReady','23471MgZPPI','_commandService','exchange.upload','exportXLSXBySnapshot','search','7171330BtpQpO','get','_menuManagerService','symbol','registerCommand','SHEET_EXCHANGE_CLIENT_PLUGIN','SUBITEMS','OTHERS','exportXLSXByUnitId','288FYRdKh','9nxFMks','forEach','_initMenus','_injector','exchange-client.operation.export-xlsx','setConfig','_configService','_config','_initCommands','length','ExportIcon','64308otoODh','OPERATION','disposeWithMe','93qlFIJa','unit','UNIVER_SHEET','363296uhryUj','exchange-client.operation.import-xlsx','332345oIPxbY','BUTTON'];_0x15ff=function(){return _0x3cb870;};return _0x15ff();}var j=Object[_0x1b4aa2(0xb8)],B=Object[_0x1b4aa2(0xbf)],$=(_0x5d8453,_0x273f5e,_0x1c7811)=>_0x273f5e in _0x5d8453?j(_0x5d8453,_0x273f5e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c7811}):_0x5d8453[_0x273f5e]=_0x1c7811,V=(_0x2c0e70,_0x536206,_0x359953,_0x422e79)=>{for(var _0x57a20e=_0x422e79>0x1?void 0x0:_0x422e79?B(_0x536206,_0x359953):_0x536206,_0x3792ec=_0x2c0e70['length']-0x1,_0x181f2f;_0x3792ec>=0x0;_0x3792ec--)(_0x181f2f=_0x2c0e70[_0x3792ec])&&(_0x57a20e=_0x181f2f(_0x57a20e)||_0x57a20e);return _0x57a20e;},_=(_0x44d9db,_0x224a6e)=>(_0x34cfdc,_0x5de46e)=>_0x224a6e(_0x34cfdc,_0x5de46e,_0x44d9db),I=(_0x5f0ba2,_0x3dbed1,_0xd0c555)=>$(_0x5f0ba2,typeof _0x3dbed1!=_0x1b4aa2(0xca)?_0x3dbed1+'':_0x3dbed1,_0xd0c555);const W=_0x1b4aa2(0xcc);let s=class extends _0x15008a{constructor(_0x2483c6=l,_0x37e3,_0x3fb7b7){const _0xa2bb1d=_0x1b4aa2;super(),this[_0xa2bb1d(0xa7)]=_0x2483c6,this[_0xa2bb1d(0xd4)]=_0x37e3,this[_0xa2bb1d(0xa6)]=_0x3fb7b7;const {menu:_0x57ab24,..._0x20076d}=_0x3c65a2({},l,this[_0xa2bb1d(0xa7)]);_0x57ab24&&this['_configService']['setConfig']('menu',_0x57ab24,{'merge':!0x0}),this[_0xa2bb1d(0xa6)][_0xa2bb1d(0xa5)](H,_0x20076d);}[_0x1b4aa2(0xc0)](){const _0x49371a=_0x1b4aa2;[[c]][_0x49371a(0xd2)](_0x5c973c=>this[_0x49371a(0xd4)][_0x49371a(0xb6)](_0x5c973c));}[_0x1b4aa2(0xc1)](){const _0xa0d0a6=_0x1b4aa2;this[_0xa0d0a6(0xd4)][_0xa0d0a6(0xc8)](c);}};I(s,_0x1b4aa2(0xbe),W),I(s,_0x1b4aa2(0xb9),_0x5beb3c[_0x1b4aa2(0xb0)]),s=V([_0x21fd4f(_0x2314e8),_(0x1,_0x913678(_0x84e45c)),_(0x2,_0x309332)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x395220=_0x1eab;(function(_0x75f005,_0x2fb029){const _0x2bb362=_0x1eab,_0xc27da4=_0x75f005();while(!![]){try{const _0x2df840=parseInt(_0x2bb362(0x1cf))/0x1*(parseInt(_0x2bb362(0x1e1))/0x2)+parseInt(_0x2bb362(0x1d5))/0x3+parseInt(_0x2bb362(0x1f0))/0x4+parseInt(_0x2bb362(0x1e2))/0x5*(parseInt(_0x2bb362(0x1da))/0x6)+parseInt(_0x2bb362(0x1e6))/0x7+parseInt(_0x2bb362(0x1dc))/0x8+parseInt(_0x2bb362(0x1e9))/0x9*(-parseInt(_0x2bb362(0x1cc))/0xa);if(_0x2df840===_0x2fb029)break;else _0xc27da4['push'](_0xc27da4['shift']());}catch(_0x3a50e7){_0xc27da4['push'](_0xc27da4['shift']());}}}(_0xf9eb,0xa00d3));import{IExchangeOperateService as _0x4fc5b1,UniverExchangeClientPlugin as _0x5e0cba}from'@univerjs-pro/exchange-client';import{CommandType as _0x3e310a,UniverInstanceType as _0x133425,Disposable as _0x4c27cb,ICommandService as _0x5d8605,DependentOn as _0x3a1d3f,Inject as _0x4f5a61,Injector as _0x42dd95,IConfigService as _0x5297a7,Plugin as _0x436460,merge as _0x2ab837}from'@univerjs/core';import{MenuItemType as _0x401949,getMenuHiddenObservable as _0x514dae,RibbonStartGroup as _0x46decd,IMenuManagerService as _0x51401d}from'@univerjs/ui';import{WorkbookExportPermission as _0x25981c}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x319087}from'@univerjs/sheets-ui';const p={'id':_0x395220(0x1de),'type':_0x3e310a[_0x395220(0x1d9)],'handler':async _0x18495f=>{const _0x2f96a4=_0x395220,_0x44f95b=_0x18495f[_0x2f96a4(0x1ea)](_0x4fc5b1);return new URLSearchParams(location[_0x2f96a4(0x1e8)])[_0x2f96a4(0x1ea)](_0x2f96a4(0x1d2))?_0x44f95b[_0x2f96a4(0x1f6)]():_0x44f95b[_0x2f96a4(0x1d4)](),!0x0;}},u={'id':_0x395220(0x1d1),'type':_0x3e310a[_0x395220(0x1d9)],'handler':async _0x3dd04a=>{const _0xe0f575=_0x395220,_0x1cdc94=_0x3dd04a[_0xe0f575(0x1ea)](_0x4fc5b1);return new URLSearchParams(location['search'])[_0xe0f575(0x1ea)](_0xe0f575(0x1d2))?_0x1cdc94[_0xe0f575(0x1f4)]():_0x1cdc94[_0xe0f575(0x1d0)](),!0x0;}},H=_0x395220(0x1db),l={},S=_0x395220(0x1d3);function R(_0x28a221){const _0x3866c6=_0x395220;return{'id':S,'type':_0x401949[_0x3866c6(0x1cd)],'icon':'DirectExportIcon','tooltip':_0x3866c6(0x1e0),'hidden$':_0x514dae(_0x28a221,_0x133425[_0x3866c6(0x1ee)]),'disabled$':_0x319087(_0x28a221,{'workbookTypes':[_0x25981c]})};}function w(){const _0x24cea7=_0x395220;return{'id':p['id'],'type':_0x401949[_0x24cea7(0x1f8)],'title':_0x24cea7(0x1e4),'icon':'FolderIcon'};}function _0x1eab(_0x9a6f23,_0x372f26){_0x9a6f23=_0x9a6f23-0x1cc;const _0xf9eb37=_0xf9eb();let _0x1eab9e=_0xf9eb37[_0x9a6f23];return _0x1eab9e;}function D(){const _0x3a4666=_0x395220;return{'id':u['id'],'type':_0x401949[_0x3a4666(0x1f8)],'title':'exchange.download','icon':'ExportIcon'};}const F={[_0x46decd[_0x395220(0x1dd)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x395220(0x1e5)],A=(_0x1bfde2,_0xb5cf98,_0x51f91b,_0x5d8599)=>{for(var _0x1117b7=_0x5d8599>0x1?void 0x0:_0x5d8599?G(_0xb5cf98,_0x51f91b):_0xb5cf98,_0x5109f1=_0x1bfde2['length']-0x1,_0x203887;_0x5109f1>=0x0;_0x5109f1--)(_0x203887=_0x1bfde2[_0x5109f1])&&(_0x1117b7=_0x203887(_0x1117b7)||_0x1117b7);return _0x1117b7;},d=(_0x225183,_0x5cfa96)=>(_0x3a2f1a,_0x256b85)=>_0x5cfa96(_0x3a2f1a,_0x256b85,_0x225183);let c=class extends _0x4c27cb{constructor(_0x5c1f43,_0x516f9c){const _0x316c3b=_0x395220;super(),this['_commandService']=_0x5c1f43,this['_menuManagerService']=_0x516f9c,this[_0x316c3b(0x1ce)](),this[_0x316c3b(0x1e7)]();}[_0x395220(0x1ce)](){[p,u]['forEach'](_0x439147=>{const _0x12438e=_0x1eab;this[_0x12438e(0x1ef)](this[_0x12438e(0x1df)]['registerCommand'](_0x439147));});}[_0x395220(0x1e7)](){const _0x272639=_0x395220;this['_menuManagerService'][_0x272639(0x1f7)](F);}};c=A([d(0x0,_0x5d8605),d(0x1,_0x51401d)],c);var j=Object['defineProperty'],B=Object[_0x395220(0x1e5)],$=(_0x44882e,_0x1520d6,_0x1233f4)=>_0x1520d6 in _0x44882e?j(_0x44882e,_0x1520d6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1233f4}):_0x44882e[_0x1520d6]=_0x1233f4,V=(_0x1ce37e,_0x27be51,_0x2a9fa9,_0x2364f1)=>{const _0x4a4976=_0x395220;for(var _0x34ef9e=_0x2364f1>0x1?void 0x0:_0x2364f1?B(_0x27be51,_0x2a9fa9):_0x27be51,_0x5bebc5=_0x1ce37e[_0x4a4976(0x1eb)]-0x1,_0x1caae9;_0x5bebc5>=0x0;_0x5bebc5--)(_0x1caae9=_0x1ce37e[_0x5bebc5])&&(_0x34ef9e=_0x1caae9(_0x34ef9e)||_0x34ef9e);return _0x34ef9e;},_=(_0x4e2b2a,_0x38f042)=>(_0x32d9c1,_0x552597)=>_0x38f042(_0x32d9c1,_0x552597,_0x4e2b2a),I=(_0x1bed28,_0x4b9436,_0x540e73)=>$(_0x1bed28,typeof _0x4b9436!=_0x395220(0x1f2)?_0x4b9436+'':_0x4b9436,_0x540e73);function _0xf9eb(){const _0xe19370=['OPERATION','84mFAkKI','sheets-exchange-client.config','4135656NLzXoK','OTHERS','exchange-client.operation.import-xlsx','_commandService','exchange.file','36OIbyjM','143950YcSLtC','SHEET_EXCHANGE_CLIENT_PLUGIN','exchange.upload','getOwnPropertyDescriptor','3018715eHhNcF','_initMenus','search','3123tpDGsW','get','length','onReady','pluginName','UNIVER_SHEET','disposeWithMe','3749900xqKNgG','forEach','symbol','setConfig','exportXLSXByUnitId','_config','importXLSXToUnitId','mergeMenu','BUTTON','90030HBQKwG','SUBITEMS','_initCommands','26060VxVsPS','exportXLSXBySnapshot','exchange-client.operation.export-xlsx','unit','sheets-exchange-client.operation.exchange','importXLSXToSnapshot','3065385PSkcma','onStarting','type','_configService'];_0xf9eb=function(){return _0xe19370;};return _0xf9eb();}const W=_0x395220(0x1e3);let s=class extends _0x436460{constructor(_0x3755dd=l,_0x5eeaf9,_0x1b4c99){const _0x2f58ef=_0x395220;super(),this[_0x2f58ef(0x1f5)]=_0x3755dd,this['_injector']=_0x5eeaf9,this['_configService']=_0x1b4c99;const {menu:_0xc87c1f,..._0x48a25e}=_0x2ab837({},l,this[_0x2f58ef(0x1f5)]);_0xc87c1f&&this[_0x2f58ef(0x1d8)][_0x2f58ef(0x1f3)]('menu',_0xc87c1f,{'merge':!0x0}),this[_0x2f58ef(0x1d8)]['setConfig'](H,_0x48a25e);}[_0x395220(0x1d6)](){const _0x5952c2=_0x395220;[[c]][_0x5952c2(0x1f1)](_0xcd65e=>this['_injector']['add'](_0xcd65e));}[_0x395220(0x1ec)](){const _0xeca5ba=_0x395220;this['_injector'][_0xeca5ba(0x1ea)](c);}};I(s,_0x395220(0x1ed),W),I(s,_0x395220(0x1d7),_0x133425['UNIVER_SHEET']),s=V([_0x3a1d3f(_0x5e0cba),_(0x1,_0x4f5a61(_0x42dd95)),_(0x2,_0x5297a7)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x16e3(_0xced66,_0x469024){_0xced66=_0xced66-0xb3;const _0x15e1f7=_0x15e1();let _0x16e32f=_0x15e1f7[_0xced66];return _0x16e32f;}(function(_0xf5c59,_0x1b3e39){const _0x35fbb1=_0x16e3,_0x54a0cf=_0xf5c59();while(!![]){try{const _0xe583cb=-parseInt(_0x35fbb1(0xef))/0x1*(-parseInt(_0x35fbb1(0xd0))/0x2)+-parseInt(_0x35fbb1(0xe3))/0x3+-parseInt(_0x35fbb1(0xb4))/0x4*(-parseInt(_0x35fbb1(0xd2))/0x5)+-parseInt(_0x35fbb1(0xd4))/0x6+parseInt(_0x35fbb1(0xca))/0x7*(parseInt(_0x35fbb1(0xf5))/0x8)+-parseInt(_0x35fbb1(0xdd))/0x9*(parseInt(_0x35fbb1(0xe8))/0xa)+parseInt(_0x35fbb1(0xb5))/0xb;if(_0xe583cb===_0x1b3e39)break;else _0x54a0cf['push'](_0x54a0cf['shift']());}catch(_0x178932){_0x54a0cf['push'](_0x54a0cf['shift']());}}}(_0x15e1,0x547fc),function(_0xeda6fc,_0x334f04){const _0x116e5f=_0x16e3;typeof exports==_0x116e5f(0xbe)&&typeof module<'u'?_0x334f04(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x116e5f(0xd9)]?define([_0x116e5f(0xe7),_0x116e5f(0xb9),_0x116e5f(0xe5),_0x116e5f(0xdc),'@univerjs/sheets',_0x116e5f(0xc0)],_0x334f04):(_0xeda6fc=typeof globalThis<'u'?globalThis:_0xeda6fc||self,_0x334f04(_0xeda6fc['UniverProSheetsExchangeClient']={},_0xeda6fc[_0x116e5f(0xcf)],_0xeda6fc['UniverCore'],_0xeda6fc['UniverUi'],_0xeda6fc[_0x116e5f(0xdb)],_0xeda6fc[_0x116e5f(0xbb)]));}(this,function(_0x3ecdbc,_0x5b41c4,_0x13f012,_0x16fa3b,_0x281ba5,_0x1ad034){'use strict';const _0x303299=_0x16e3;const _0x270e78={'id':_0x303299(0xf1),'type':_0x13f012[_0x303299(0xc7)][_0x303299(0xbf)],'handler':async _0x715505=>{const _0x22bd99=_0x303299,_0x28ca46=_0x715505[_0x22bd99(0xe9)](_0x5b41c4[_0x22bd99(0xe1)]);return new URLSearchParams(location[_0x22bd99(0xf2)])[_0x22bd99(0xe9)](_0x22bd99(0xf9))?_0x28ca46[_0x22bd99(0xc8)]():_0x28ca46[_0x22bd99(0xea)](),!0x0;}},_0x4ca2ab={'id':'exchange-client.operation.export-xlsx','type':_0x13f012['CommandType'][_0x303299(0xbf)],'handler':async _0x12fec8=>{const _0x2d96e2=_0x303299,_0x4bdaaa=_0x12fec8[_0x2d96e2(0xe9)](_0x5b41c4[_0x2d96e2(0xe1)]);return new URLSearchParams(location[_0x2d96e2(0xf2)])['get'](_0x2d96e2(0xf9))?_0x4bdaaa[_0x2d96e2(0xc1)]():_0x4bdaaa[_0x2d96e2(0xf0)](),!0x0;}},_0xee1845=_0x303299(0xec),_0x3ad176={},_0x16fe88=_0x303299(0xd5);function _0x57e4f9(_0x1b9683){const _0xa49835=_0x303299;return{'id':_0x16fe88,'type':_0x16fa3b[_0xa49835(0xd1)]['SUBITEMS'],'icon':_0xa49835(0xbd),'tooltip':_0xa49835(0xb6),'hidden$':_0x16fa3b[_0xa49835(0xcc)](_0x1b9683,_0x13f012[_0xa49835(0xbc)][_0xa49835(0xe2)]),'disabled$':_0x1ad034['getCurrentRangeDisable$'](_0x1b9683,{'workbookTypes':[_0x281ba5[_0xa49835(0xe6)]]})};}function _0x49f0f5(){const _0x179719=_0x303299;return{'id':_0x270e78['id'],'type':_0x16fa3b[_0x179719(0xd1)][_0x179719(0xda)],'title':_0x179719(0xba),'icon':'FolderIcon'};}function _0xc1f931(){return{'id':_0x4ca2ab['id'],'type':_0x16fa3b['MenuItemType']['BUTTON'],'title':'exchange.download','icon':'ExportIcon'};}const _0x46da45={[_0x16fa3b[_0x303299(0xde)][_0x303299(0xb3)]]:{[_0x16fe88]:{'order':0.3,'menuItemFactory':_0x57e4f9,[_0x270e78['id']]:{'order':0x0,'menuItemFactory':_0x49f0f5},[_0x4ca2ab['id']]:{'order':0x1,'menuItemFactory':_0xc1f931}}}};var _0x4b520d=Object[_0x303299(0xe4)],_0xbbdcfb=(_0x1cb1c5,_0x5b100e,_0x306c7a,_0x33d079)=>{for(var _0x28251c=_0x33d079>0x1?void 0x0:_0x33d079?_0x4b520d(_0x5b100e,_0x306c7a):_0x5b100e,_0x16d615=_0x1cb1c5['length']-0x1,_0x511ac3;_0x16d615>=0x0;_0x16d615--)(_0x511ac3=_0x1cb1c5[_0x16d615])&&(_0x28251c=_0x511ac3(_0x28251c)||_0x28251c);return _0x28251c;},_0xadc67e=(_0x3ce379,_0x5b1148)=>(_0x316d96,_0x115db7)=>_0x5b1148(_0x316d96,_0x115db7,_0x3ce379);let _0x49c2d3=class extends _0x13f012[_0x303299(0xed)]{constructor(_0x581aae,_0x244411){const _0x544df1=_0x303299;super(),this[_0x544df1(0xb7)]=_0x581aae,this[_0x544df1(0xc6)]=_0x244411,this[_0x544df1(0xd7)](),this['_initMenus']();}[_0x303299(0xd7)](){const _0x4c7bc5=_0x303299;[_0x270e78,_0x4ca2ab][_0x4c7bc5(0xce)](_0x1eb88d=>{const _0x4a884b=_0x4c7bc5;this[_0x4a884b(0xdf)](this[_0x4a884b(0xb7)]['registerCommand'](_0x1eb88d));});}['_initMenus'](){const _0x4aca09=_0x303299;this[_0x4aca09(0xc6)][_0x4aca09(0xd8)](_0x46da45);}};_0x49c2d3=_0xbbdcfb([_0xadc67e(0x0,_0x13f012[_0x303299(0xb8)]),_0xadc67e(0x1,_0x16fa3b['IMenuManagerService'])],_0x49c2d3);var _0x12cf87=Object['defineProperty'],_0x4ffe02=Object[_0x303299(0xe4)],_0x5b63cc=(_0x4738f5,_0x5a820e,_0x3658aa)=>_0x5a820e in _0x4738f5?_0x12cf87(_0x4738f5,_0x5a820e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3658aa}):_0x4738f5[_0x5a820e]=_0x3658aa,_0x2a3478=(_0x217af7,_0x284714,_0x2c7f11,_0x19a793)=>{const _0x325a87=_0x303299;for(var _0x5a72c4=_0x19a793>0x1?void 0x0:_0x19a793?_0x4ffe02(_0x284714,_0x2c7f11):_0x284714,_0xf309a2=_0x217af7[_0x325a87(0xf6)]-0x1,_0x40b14c;_0xf309a2>=0x0;_0xf309a2--)(_0x40b14c=_0x217af7[_0xf309a2])&&(_0x5a72c4=_0x40b14c(_0x5a72c4)||_0x5a72c4);return _0x5a72c4;},_0x2394d3=(_0x302180,_0x294141)=>(_0x412f3e,_0x439f6e)=>_0x294141(_0x412f3e,_0x439f6e,_0x302180),_0xf826d4=(_0x52a19b,_0x461832,_0x34960a)=>_0x5b63cc(_0x52a19b,typeof _0x461832!='symbol'?_0x461832+'':_0x461832,_0x34960a);const _0x44dbc5=_0x303299(0xf4);_0x3ecdbc[_0x303299(0xc9)]=class extends _0x13f012[_0x303299(0xf7)]{constructor(_0x5d95fe=_0x3ad176,_0x48a324,_0x17ef16){const _0x5707f3=_0x303299;super(),this[_0x5707f3(0xee)]=_0x5d95fe,this[_0x5707f3(0xc5)]=_0x48a324,this[_0x5707f3(0xd6)]=_0x17ef16;const {menu:_0x18e6fc,..._0xe13d7f}=_0x13f012[_0x5707f3(0xcd)]({},_0x3ad176,this[_0x5707f3(0xee)]);_0x18e6fc&&this[_0x5707f3(0xd6)][_0x5707f3(0xeb)](_0x5707f3(0xe0),_0x18e6fc,{'merge':!0x0}),this['_configService'][_0x5707f3(0xeb)](_0xee1845,_0xe13d7f);}[_0x303299(0xc2)](){const _0x4ca06a=_0x303299;[[_0x49c2d3]][_0x4ca06a(0xce)](_0x4edd64=>this['_injector'][_0x4ca06a(0xfa)](_0x4edd64));}['onReady'](){const _0x18daad=_0x303299;this['_injector'][_0x18daad(0xe9)](_0x49c2d3);}},_0xf826d4(_0x3ecdbc[_0x303299(0xc9)],_0x303299(0xf3),_0x44dbc5),_0xf826d4(_0x3ecdbc[_0x303299(0xc9)],_0x303299(0xc4),_0x13f012['UniverInstanceType'][_0x303299(0xe2)]),_0x3ecdbc[_0x303299(0xc9)]=_0x2a3478([_0x13f012[_0x303299(0xf8)](_0x5b41c4['UniverExchangeClientPlugin']),_0x2394d3(0x1,_0x13f012['Inject'](_0x13f012['Injector'])),_0x2394d3(0x2,_0x13f012[_0x303299(0xcb)])],_0x3ecdbc['UniverSheetsExchangeClientPlugin']),_0x3ecdbc[_0x303299(0xd3)]=_0x4ca2ab,_0x3ecdbc['ImportXLSXOperation']=_0x270e78,Object['defineProperty'](_0x3ecdbc,Symbol[_0x303299(0xc3)],{'value':'Module'});}));function _0x15e1(){const _0x503b20=['amd','BUTTON','UniverSheets','@univerjs/ui','99YhRpvm','RibbonStartGroup','disposeWithMe','menu','IExchangeOperateService','UNIVER_SHEET','881262IGAkTW','getOwnPropertyDescriptor','@univerjs/core','WorkbookExportPermission','exports','121570UylMEr','get','importXLSXToSnapshot','setConfig','sheets-exchange-client.config','Disposable','_config','29546wgifkm','exportXLSXBySnapshot','exchange-client.operation.import-xlsx','search','pluginName','SHEET_EXCHANGE_CLIENT_PLUGIN','8pUtfcj','length','Plugin','DependentOn','unit','add','OTHERS','840796pRqulJ','4584074XtFmZp','exchange.file','_commandService','ICommandService','@univerjs-pro/exchange-client','exchange.upload','UniverSheetsUi','UniverInstanceType','DirectExportIcon','object','OPERATION','@univerjs/sheets-ui','exportXLSXByUnitId','onStarting','toStringTag','type','_injector','_menuManagerService','CommandType','importXLSXToUnitId','UniverSheetsExchangeClientPlugin','2678977nZPiib','IConfigService','getMenuHiddenObservable','merge','forEach','UniverProExchangeClient','30VGJRMD','MenuItemType','5TfHBDU','ExportXLSXOperation','4075470cmIdJu','sheets-exchange-client.operation.exchange','_configService','_initCommands','mergeMenu'];_0x15e1=function(){return _0x503b20;};return _0x15e1();}
1
+ function _0x81b7(_0x1948d4,_0x3a4592){_0x1948d4=_0x1948d4-0x7f;const _0x315119=_0x3151();let _0x81b7fc=_0x315119[_0x1948d4];return _0x81b7fc;}function _0x3151(){const _0x447e47=['ImportXLSXOperation','unit','DirectExportIcon','onReady','UniverSheetsExchangeClientPlugin','9423XrmrSi','setConfig','UniverSheets','onStarting','get','2105rXNDXi','_menuManagerService','ExportIcon','IExchangeOperateService','MenuItemType','importXLSXToUnitId','exportXLSXBySnapshot','1731520nyOvfK','UniverCore','pluginName','Inject','sheets-exchange-client.config','IMenuManagerService','@univerjs/core','_initCommands','_configService','mergeMenu','getCurrentRangeDisable$','exports','86736PXMlMI','function','_commandService','length','1364828uwhgYw','CommandType','search','SUBITEMS','_injector','BUTTON','RibbonStartGroup','symbol','importXLSXToSnapshot','add','toStringTag','UniverProExchangeClient','exchange.file','@univerjs/sheets','_config','registerCommand','defineProperty','type','getMenuHiddenObservable','458269fbPxtk','Plugin','Injector','@univerjs-pro/exchange-client','menu','853152JPiVAZ','sheets-exchange-client.operation.exchange','WorkbookExportPermission','SHEET_EXCHANGE_CLIENT_PLUGIN','ICommandService','UNIVER_SHEET','1686ATZTav','UniverInstanceType','OTHERS','forEach','UniverSheetsUi','@univerjs/sheets-ui','_initMenus','object','OPERATION','Module','getOwnPropertyDescriptor','UniverExchangeClientPlugin'];_0x3151=function(){return _0x447e47;};return _0x3151();}(function(_0x4d1c95,_0x59bc8d){const _0x412a07=_0x81b7,_0x24323b=_0x4d1c95();while(!![]){try{const _0x19a3f8=parseInt(_0x412a07(0xb7))/0x1+parseInt(_0x412a07(0xbb))/0x2+-parseInt(_0x412a07(0x9f))/0x3+-parseInt(_0x412a07(0xab))/0x4+-parseInt(_0x412a07(0xa4))/0x5*(parseInt(_0x412a07(0x8e))/0x6)+parseInt(_0x412a07(0x83))/0x7+parseInt(_0x412a07(0x88))/0x8;if(_0x19a3f8===_0x59bc8d)break;else _0x24323b['push'](_0x24323b['shift']());}catch(_0x109e7c){_0x24323b['push'](_0x24323b['shift']());}}}(_0x3151,0x5e77b),function(_0x32c0d0,_0xd4b7d5){const _0x4d29be=_0x81b7;typeof exports==_0x4d29be(0x95)&&typeof module<'u'?_0xd4b7d5(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x4d29be(0xb8)&&define['amd']?define([_0x4d29be(0xb6),_0x4d29be(0x86),_0x4d29be(0xb1),'@univerjs/ui',_0x4d29be(0xc8),_0x4d29be(0x93)],_0xd4b7d5):(_0x32c0d0=typeof globalThis<'u'?globalThis:_0x32c0d0||self,_0xd4b7d5(_0x32c0d0['UniverProSheetsExchangeClient']={},_0x32c0d0[_0x4d29be(0xc6)],_0x32c0d0[_0x4d29be(0xac)],_0x32c0d0['UniverUi'],_0x32c0d0[_0x4d29be(0xa1)],_0x32c0d0[_0x4d29be(0x92)]));}(this,function(_0x232b59,_0x29f27a,_0x53df17,_0x2976db,_0x18428d,_0x28fbfa){'use strict';const _0x411d92=_0x81b7;const _0x1c462a={'id':'exchange-client.operation.import-xlsx','type':_0x53df17[_0x411d92(0xbc)][_0x411d92(0x96)],'handler':async _0x4f7920=>{const _0x43db95=_0x411d92,_0x2feb61=_0x4f7920[_0x43db95(0xa3)](_0x29f27a[_0x43db95(0xa7)]);return new URLSearchParams(location[_0x43db95(0xbd)])[_0x43db95(0xa3)]('unit')?_0x2feb61[_0x43db95(0xa9)]():_0x2feb61[_0x43db95(0xc3)](),!0x0;}},_0x5f1085={'id':'exchange-client.operation.export-xlsx','type':_0x53df17[_0x411d92(0xbc)]['OPERATION'],'handler':async _0x568f7c=>{const _0x2542eb=_0x411d92,_0x1430a5=_0x568f7c[_0x2542eb(0xa3)](_0x29f27a[_0x2542eb(0xa7)]);return new URLSearchParams(location[_0x2542eb(0xbd)])['get'](_0x2542eb(0x9b))?_0x1430a5['exportXLSXByUnitId']():_0x1430a5[_0x2542eb(0xaa)](),!0x0;}},_0x5b89b0=_0x411d92(0xaf),_0x570402={},_0x49097f=_0x411d92(0x89);function _0x2896cf(_0x1d25ed){const _0x58cf70=_0x411d92;return{'id':_0x49097f,'type':_0x2976db['MenuItemType'][_0x58cf70(0xbe)],'icon':_0x58cf70(0x9c),'tooltip':_0x58cf70(0xc7),'hidden$':_0x2976db[_0x58cf70(0x82)](_0x1d25ed,_0x53df17[_0x58cf70(0x8f)]['UNIVER_SHEET']),'disabled$':_0x28fbfa[_0x58cf70(0xb5)](_0x1d25ed,{'workbookTypes':[_0x18428d[_0x58cf70(0x8a)]]})};}function _0x95e469(){const _0x43fadf=_0x411d92;return{'id':_0x1c462a['id'],'type':_0x2976db[_0x43fadf(0xa8)][_0x43fadf(0xc0)],'title':'exchange.upload','icon':'FolderIcon'};}function _0x5c73d3(){const _0x177a33=_0x411d92;return{'id':_0x5f1085['id'],'type':_0x2976db[_0x177a33(0xa8)][_0x177a33(0xc0)],'title':'exchange.download','icon':_0x177a33(0xa6)};}const _0x65eac5={[_0x2976db[_0x411d92(0xc1)][_0x411d92(0x90)]]:{[_0x49097f]:{'order':0.3,'menuItemFactory':_0x2896cf,[_0x1c462a['id']]:{'order':0x0,'menuItemFactory':_0x95e469},[_0x5f1085['id']]:{'order':0x1,'menuItemFactory':_0x5c73d3}}}};var _0xbf9383=Object[_0x411d92(0x98)],_0x5d1421=(_0x3ac127,_0x380d4c,_0x4c8ed9,_0x53c8e9)=>{for(var _0x346e5f=_0x53c8e9>0x1?void 0x0:_0x53c8e9?_0xbf9383(_0x380d4c,_0x4c8ed9):_0x380d4c,_0x3b6b98=_0x3ac127['length']-0x1,_0x43bb12;_0x3b6b98>=0x0;_0x3b6b98--)(_0x43bb12=_0x3ac127[_0x3b6b98])&&(_0x346e5f=_0x43bb12(_0x346e5f)||_0x346e5f);return _0x346e5f;},_0x1e9b24=(_0x3a7713,_0x4898f4)=>(_0x222b8c,_0x1db4ea)=>_0x4898f4(_0x222b8c,_0x1db4ea,_0x3a7713);let _0x11553=class extends _0x53df17['Disposable']{constructor(_0x1d2626,_0x573f19){const _0x41ce4a=_0x411d92;super(),this[_0x41ce4a(0xb9)]=_0x1d2626,this[_0x41ce4a(0xa5)]=_0x573f19,this['_initCommands'](),this['_initMenus']();}[_0x411d92(0xb2)](){const _0x4cb837=_0x411d92;[_0x1c462a,_0x5f1085][_0x4cb837(0x91)](_0x4e6b3e=>{const _0x525919=_0x4cb837;this['disposeWithMe'](this[_0x525919(0xb9)][_0x525919(0x7f)](_0x4e6b3e));});}[_0x411d92(0x94)](){const _0x2a7812=_0x411d92;this[_0x2a7812(0xa5)][_0x2a7812(0xb4)](_0x65eac5);}};_0x11553=_0x5d1421([_0x1e9b24(0x0,_0x53df17[_0x411d92(0x8c)]),_0x1e9b24(0x1,_0x2976db[_0x411d92(0xb0)])],_0x11553);var _0x143ff0=Object['defineProperty'],_0x1d8333=Object['getOwnPropertyDescriptor'],_0x367df6=(_0x40ea57,_0x4be77f,_0x5758f0)=>_0x4be77f in _0x40ea57?_0x143ff0(_0x40ea57,_0x4be77f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5758f0}):_0x40ea57[_0x4be77f]=_0x5758f0,_0x53859d=(_0x1787bf,_0xaaadcb,_0x25d29f,_0x5c0be0)=>{const _0x127392=_0x411d92;for(var _0x989799=_0x5c0be0>0x1?void 0x0:_0x5c0be0?_0x1d8333(_0xaaadcb,_0x25d29f):_0xaaadcb,_0x3f7b20=_0x1787bf[_0x127392(0xba)]-0x1,_0x56e5bc;_0x3f7b20>=0x0;_0x3f7b20--)(_0x56e5bc=_0x1787bf[_0x3f7b20])&&(_0x989799=_0x56e5bc(_0x989799)||_0x989799);return _0x989799;},_0x59e465=(_0x595ced,_0x40d85d)=>(_0x38c503,_0x4ce9c9)=>_0x40d85d(_0x38c503,_0x4ce9c9,_0x595ced),_0x3b4285=(_0x560095,_0x59e58c,_0x2099c8)=>_0x367df6(_0x560095,typeof _0x59e58c!=_0x411d92(0xc2)?_0x59e58c+'':_0x59e58c,_0x2099c8);const _0x549b68=_0x411d92(0x8b);_0x232b59[_0x411d92(0x9e)]=class extends _0x53df17[_0x411d92(0x84)]{constructor(_0x389a74=_0x570402,_0x52fd9c,_0x348419){const _0x43af82=_0x411d92;super(),this[_0x43af82(0xc9)]=_0x389a74,this[_0x43af82(0xbf)]=_0x52fd9c,this['_configService']=_0x348419;const {menu:_0x18e080,..._0x59d182}=_0x53df17['merge']({},_0x570402,this['_config']);_0x18e080&&this[_0x43af82(0xb3)]['setConfig'](_0x43af82(0x87),_0x18e080,{'merge':!0x0}),this[_0x43af82(0xb3)][_0x43af82(0xa0)](_0x5b89b0,_0x59d182);}[_0x411d92(0xa2)](){const _0x3bc5d6=_0x411d92;[[_0x11553]][_0x3bc5d6(0x91)](_0x5b368e=>this[_0x3bc5d6(0xbf)][_0x3bc5d6(0xc4)](_0x5b368e));}[_0x411d92(0x9d)](){this['_injector']['get'](_0x11553);}},_0x3b4285(_0x232b59[_0x411d92(0x9e)],_0x411d92(0xad),_0x549b68),_0x3b4285(_0x232b59[_0x411d92(0x9e)],_0x411d92(0x81),_0x53df17[_0x411d92(0x8f)][_0x411d92(0x8d)]),_0x232b59['UniverSheetsExchangeClientPlugin']=_0x53859d([_0x53df17['DependentOn'](_0x29f27a[_0x411d92(0x99)]),_0x59e465(0x1,_0x53df17[_0x411d92(0xae)](_0x53df17[_0x411d92(0x85)])),_0x59e465(0x2,_0x53df17['IConfigService'])],_0x232b59[_0x411d92(0x9e)]),_0x232b59['ExportXLSXOperation']=_0x5f1085,_0x232b59[_0x411d92(0x9a)]=_0x1c462a,Object[_0x411d92(0x80)](_0x232b59,Symbol[_0x411d92(0xc5)],{'value':_0x411d92(0x97)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.12.3-nightly.202512060617",
3
+ "version": "0.12.4",
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.12.3-nightly.202512060617",
46
- "@univerjs/core": "0.12.3-nightly.202512060617",
47
- "@univerjs/sheets-ui": "0.12.3-nightly.202512060617",
48
- "@univerjs/sheets": "0.12.3-nightly.202512060617",
49
- "@univerjs/ui": "0.12.3-nightly.202512060617"
45
+ "@univerjs/core": "0.12.4",
46
+ "@univerjs/sheets": "0.12.4",
47
+ "@univerjs/sheets-ui": "0.12.4",
48
+ "@univerjs/ui": "0.12.4",
49
+ "@univerjs-pro/exchange-client": "0.12.4"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",
53
53
  "vite": "^7.2.6",
54
54
  "vitest": "^4.0.15",
55
- "@univerjs-infra/shared": "0.12.3"
55
+ "@univerjs-infra/shared": "0.12.4"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run",