@univerjs-pro/sheets-exchange-client 0.10.9 → 0.10.10-experimental.20251016-33b0941

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 _0x1017d4=_0x525c;(function(_0x2ca806,_0x243349){const _0x3737f4=_0x525c,_0xfcdb70=_0x2ca806();while(!![]){try{const _0x3443c3=parseInt(_0x3737f4(0x14e))/0x1+parseInt(_0x3737f4(0x161))/0x2+-parseInt(_0x3737f4(0x13a))/0x3*(-parseInt(_0x3737f4(0x162))/0x4)+parseInt(_0x3737f4(0x140))/0x5+parseInt(_0x3737f4(0x147))/0x6*(-parseInt(_0x3737f4(0x166))/0x7)+-parseInt(_0x3737f4(0x12c))/0x8*(parseInt(_0x3737f4(0x146))/0x9)+-parseInt(_0x3737f4(0x12a))/0xa;if(_0x3443c3===_0x243349)break;else _0xfcdb70['push'](_0xfcdb70['shift']());}catch(_0x2e17e){_0xfcdb70['push'](_0xfcdb70['shift']());}}}(_0x95fb,0x70598));Object[_0x1017d4(0x138)](exports,Symbol[_0x1017d4(0x151)],{'value':_0x1017d4(0x157)});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':_0x1017d4(0x164),'type':i[_0x1017d4(0x156)]['OPERATION'],'handler':async _0x32787e=>{const _0x48b8b4=_0x1017d4,_0x58f51a=_0x32787e[_0x48b8b4(0x13c)](g['IExchangeOperateService']);return new URLSearchParams(location[_0x48b8b4(0x12b)])['get'](_0x48b8b4(0x14b))?_0x58f51a[_0x48b8b4(0x131)]():_0x58f51a[_0x48b8b4(0x15e)](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i['CommandType'][_0x1017d4(0x12d)],'handler':async _0x1c7ccf=>{const _0xbfd1be=_0x1017d4,_0x2f42bd=_0x1c7ccf[_0xbfd1be(0x13c)](g[_0xbfd1be(0x134)]);return new URLSearchParams(location[_0xbfd1be(0x12b)])[_0xbfd1be(0x13c)](_0xbfd1be(0x14b))?_0x2f42bd[_0xbfd1be(0x150)]():_0x2f42bd[_0xbfd1be(0x142)](),!0x0;}},v=_0x1017d4(0x149),h={},S=_0x1017d4(0x15f);function x(_0x1de3fc){const _0x1e06d6=_0x1017d4;return{'id':S,'type':c[_0x1e06d6(0x13f)][_0x1e06d6(0x129)],'icon':_0x1e06d6(0x141),'tooltip':_0x1e06d6(0x136),'hidden$':c[_0x1e06d6(0x13e)](_0x1de3fc,i[_0x1e06d6(0x14a)][_0x1e06d6(0x154)]),'disabled$':I[_0x1e06d6(0x15c)](_0x1de3fc,{'workbookTypes':[_[_0x1e06d6(0x133)]]})};}function P(){const _0xc32a34=_0x1017d4;return{'id':l['id'],'type':c[_0xc32a34(0x13f)][_0xc32a34(0x130)],'title':_0xc32a34(0x155),'icon':_0xc32a34(0x13d)};}function C(){const _0x4a8d01=_0x1017d4;return{'id':p['id'],'type':c[_0x4a8d01(0x13f)]['BUTTON'],'title':_0x4a8d01(0x15d),'icon':_0x4a8d01(0x169)};}const f={[c['RibbonStartGroup'][_0x1017d4(0x128)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x1017d4(0x163)],y=(_0x30d059,_0x4aaa96,_0x23d347,_0x55073a)=>{const _0x3c35c4=_0x1017d4;for(var _0x5a33e7=_0x55073a>0x1?void 0x0:_0x55073a?T(_0x4aaa96,_0x23d347):_0x4aaa96,_0x357241=_0x30d059[_0x3c35c4(0x13b)]-0x1,_0x63e385;_0x357241>=0x0;_0x357241--)(_0x63e385=_0x30d059[_0x357241])&&(_0x5a33e7=_0x63e385(_0x5a33e7)||_0x5a33e7);return _0x5a33e7;},m=(_0x4df5a4,_0x32cb1a)=>(_0x417ce3,_0x487dc7)=>_0x32cb1a(_0x417ce3,_0x487dc7,_0x4df5a4);let u=class extends i['Disposable']{constructor(_0x78fcc7,_0x3f3e57){const _0x12608d=_0x1017d4;super(),this[_0x12608d(0x12e)]=_0x78fcc7,this[_0x12608d(0x165)]=_0x3f3e57,this['_initCommands'](),this[_0x12608d(0x15a)]();}[_0x1017d4(0x14f)](){const _0xe87e7b=_0x1017d4;[l,p][_0xe87e7b(0x139)](_0x265a13=>{const _0x14a775=_0xe87e7b;this[_0x14a775(0x144)](this[_0x14a775(0x12e)][_0x14a775(0x148)](_0x265a13));});}[_0x1017d4(0x15a)](){const _0xb8b7ab=_0x1017d4;this[_0xb8b7ab(0x165)]['mergeMenu'](f);}};u=y([m(0x0,i[_0x1017d4(0x16a)]),m(0x1,c['IMenuManagerService'])],u);var O=Object['defineProperty'],U=Object['getOwnPropertyDescriptor'],X=(_0x4e330e,_0x42ab51,_0x2700c9)=>_0x42ab51 in _0x4e330e?O(_0x4e330e,_0x42ab51,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2700c9}):_0x4e330e[_0x42ab51]=_0x2700c9,N=(_0x261f70,_0x2de1ea,_0x517e1e,_0x272503)=>{const _0x1e8919=_0x1017d4;for(var _0x536d67=_0x272503>0x1?void 0x0:_0x272503?U(_0x2de1ea,_0x517e1e):_0x2de1ea,_0x5b11ff=_0x261f70[_0x1e8919(0x13b)]-0x1,_0x2997fb;_0x5b11ff>=0x0;_0x5b11ff--)(_0x2997fb=_0x261f70[_0x5b11ff])&&(_0x536d67=_0x2997fb(_0x536d67)||_0x536d67);return _0x536d67;},d=(_0x229bec,_0x2b0fb8)=>(_0x827242,_0x1598c3)=>_0x2b0fb8(_0x827242,_0x1598c3,_0x229bec),E=(_0x34e108,_0x1c5a9e,_0x99093c)=>X(_0x34e108,typeof _0x1c5a9e!=_0x1017d4(0x167)?_0x1c5a9e+'':_0x1c5a9e,_0x99093c);function _0x95fb(){const _0x391ec0=['toStringTag','Inject','DependentOn','UNIVER_SHEET','exchange.upload','CommandType','Module','onReady','pluginName','_initMenus','UniverExchangeClientPlugin','getCurrentRangeDisable$','exchange.download','importXLSXToSnapshot','sheets-exchange-client.operation.exchange','Injector','1232306OWliht','36rIFpMS','getOwnPropertyDescriptor','exchange-client.operation.import-xlsx','_menuManagerService','21jXbvhf','symbol','type','ExportIcon','ICommandService','_config','ImportXLSXOperation','OTHERS','SUBITEMS','14297460EHrRHI','search','2472baPevF','OPERATION','_commandService','UniverSheetsExchangeClientPlugin','BUTTON','importXLSXToUnitId','menu','WorkbookExportPermission','IExchangeOperateService','onStarting','exchange.file','merge','defineProperty','forEach','8607MrFEKo','length','get','FolderIcon','getMenuHiddenObservable','MenuItemType','3860660vzlSyE','DirectExportIcon','exportXLSXBySnapshot','add','disposeWithMe','SHEET_EXCHANGE_CLIENT_PLUGIN','990mphLlk','301362uczHsE','registerCommand','sheets-exchange-client.config','UniverInstanceType','unit','_configService','_injector','660495pDRmCz','_initCommands','exportXLSXByUnitId'];_0x95fb=function(){return _0x391ec0;};return _0x95fb();}function _0x525c(_0x116d22,_0x497f55){const _0x95fb4f=_0x95fb();return _0x525c=function(_0x525cb9,_0x3c6fd9){_0x525cb9=_0x525cb9-0x126;let _0x3fb4c0=_0x95fb4f[_0x525cb9];return _0x3fb4c0;},_0x525c(_0x116d22,_0x497f55);}const L=_0x1017d4(0x145);exports['UniverSheetsExchangeClientPlugin']=class extends i['Plugin']{constructor(_0x40a1cf=h,_0x446646,_0x47c70f){const _0x340317=_0x1017d4;super(),this[_0x340317(0x126)]=_0x40a1cf,this[_0x340317(0x14d)]=_0x446646,this[_0x340317(0x14c)]=_0x47c70f;const {menu:_0x425b6b,..._0x562d57}=i[_0x340317(0x137)]({},h,this[_0x340317(0x126)]);_0x425b6b&&this[_0x340317(0x14c)]['setConfig'](_0x340317(0x132),_0x425b6b,{'merge':!0x0}),this['_configService']['setConfig'](v,_0x562d57);}[_0x1017d4(0x135)](){const _0x3ac4d7=_0x1017d4;[[u]][_0x3ac4d7(0x139)](_0x1c22d5=>this['_injector'][_0x3ac4d7(0x143)](_0x1c22d5));}[_0x1017d4(0x158)](){const _0x1dae82=_0x1017d4;this[_0x1dae82(0x14d)][_0x1dae82(0x13c)](u);}},E(exports[_0x1017d4(0x12f)],_0x1017d4(0x159),L),E(exports[_0x1017d4(0x12f)],_0x1017d4(0x168),i[_0x1017d4(0x14a)][_0x1017d4(0x154)]),exports['UniverSheetsExchangeClientPlugin']=N([i[_0x1017d4(0x153)](g[_0x1017d4(0x15b)]),d(0x1,i[_0x1017d4(0x152)](i[_0x1017d4(0x160)])),d(0x2,i['IConfigService'])],exports[_0x1017d4(0x12f)]),exports['ExportXLSXOperation']=p,exports[_0x1017d4(0x127)]=l;
1
+ 'use strict';const _0x1d4f2f=_0xa130;(function(_0x49c488,_0x387f1c){const _0x576cda=_0xa130,_0x4227e5=_0x49c488();while(!![]){try{const _0x1df5e8=-parseInt(_0x576cda(0x1fd))/0x1+-parseInt(_0x576cda(0x21e))/0x2+parseInt(_0x576cda(0x225))/0x3+-parseInt(_0x576cda(0x21d))/0x4*(-parseInt(_0x576cda(0x21c))/0x5)+-parseInt(_0x576cda(0x204))/0x6+parseInt(_0x576cda(0x20c))/0x7*(-parseInt(_0x576cda(0x1fa))/0x8)+parseInt(_0x576cda(0x21a))/0x9;if(_0x1df5e8===_0x387f1c)break;else _0x4227e5['push'](_0x4227e5['shift']());}catch(_0x117248){_0x4227e5['push'](_0x4227e5['shift']());}}}(_0x12cd,0xdb30b));function _0xa130(_0x19cb7c,_0x864b3){const _0x12cdc4=_0x12cd();return _0xa130=function(_0xa13051,_0x52025e){_0xa13051=_0xa13051-0x1e4;let _0x3ce867=_0x12cdc4[_0xa13051];return _0x3ce867;},_0xa130(_0x19cb7c,_0x864b3);}Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x1d4f2f(0x21f)});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':_0x1d4f2f(0x21b),'type':i[_0x1d4f2f(0x1ee)][_0x1d4f2f(0x1ff)],'handler':async _0xf1c28=>{const _0x23d93a=_0x1d4f2f,_0x2d59bd=_0xf1c28['get'](g[_0x23d93a(0x200)]);return new URLSearchParams(location[_0x23d93a(0x205)])['get']('unit')?_0x2d59bd[_0x23d93a(0x1e7)]():_0x2d59bd['importXLSXToSnapshot'](),!0x0;}},p={'id':_0x1d4f2f(0x219),'type':i[_0x1d4f2f(0x1ee)][_0x1d4f2f(0x1ff)],'handler':async _0x21c161=>{const _0x2109a5=_0x1d4f2f,_0x1020f2=_0x21c161[_0x2109a5(0x1ef)](g[_0x2109a5(0x200)]);return new URLSearchParams(location[_0x2109a5(0x205)])[_0x2109a5(0x1ef)](_0x2109a5(0x1f5))?_0x1020f2[_0x2109a5(0x206)]():_0x1020f2[_0x2109a5(0x1ea)](),!0x0;}},v='sheets-exchange-client.config',h={},S='sheets-exchange-client.operation.exchange';function _0x12cd(){const _0x33a948=['UniverSheetsExchangeClientPlugin','merge','menu','DependentOn','ExportXLSXOperation','UniverInstanceType','onStarting','exchange-client.operation.export-xlsx','20822130UnKFVJ','exchange-client.operation.import-xlsx','5KgSZnJ','4535468keDbwZ','1541770waDucd','Module','length','disposeWithMe','ICommandService','ImportXLSXOperation','pluginName','2506668PYnXDU','UniverExchangeClientPlugin','Plugin','Disposable','getCurrentRangeDisable$','importXLSXToUnitId','MenuItemType','_config','exportXLSXBySnapshot','exchange.file','getOwnPropertyDescriptor','UNIVER_SHEET','CommandType','get','exchange.download','BUTTON','Injector','FolderIcon','_injector','unit','_configService','add','_menuManagerService','getMenuHiddenObservable','1192kIcwCw','OTHERS','Inject','545426iPqoNi','setConfig','OPERATION','IExchangeOperateService','symbol','type','mergeMenu','8439444fGLxAR','search','exportXLSXByUnitId','_commandService','SUBITEMS','DirectExportIcon','_initCommands','forEach','31115ENrbtV','exchange.upload','_initMenus','registerCommand','ExportIcon','IConfigService'];_0x12cd=function(){return _0x33a948;};return _0x12cd();}function x(_0x57e864){const _0x3213bb=_0x1d4f2f;return{'id':S,'type':c[_0x3213bb(0x1e8)][_0x3213bb(0x208)],'icon':_0x3213bb(0x209),'tooltip':_0x3213bb(0x1eb),'hidden$':c[_0x3213bb(0x1f9)](_0x57e864,i['UniverInstanceType'][_0x3213bb(0x1ed)]),'disabled$':I[_0x3213bb(0x1e6)](_0x57e864,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x2102d1=_0x1d4f2f;return{'id':l['id'],'type':c['MenuItemType'][_0x2102d1(0x1f1)],'title':_0x2102d1(0x20d),'icon':_0x2102d1(0x1f3)};}function C(){const _0x3bbd50=_0x1d4f2f;return{'id':p['id'],'type':c[_0x3bbd50(0x1e8)][_0x3bbd50(0x1f1)],'title':_0x3bbd50(0x1f0),'icon':_0x3bbd50(0x210)};}const f={[c['RibbonStartGroup'][_0x1d4f2f(0x1fb)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x232ce4,_0x1a724a,_0x3a6208,_0x264feb)=>{const _0x383494=_0x1d4f2f;for(var _0x125c96=_0x264feb>0x1?void 0x0:_0x264feb?T(_0x1a724a,_0x3a6208):_0x1a724a,_0x40753f=_0x232ce4[_0x383494(0x220)]-0x1,_0x3d772b;_0x40753f>=0x0;_0x40753f--)(_0x3d772b=_0x232ce4[_0x40753f])&&(_0x125c96=_0x3d772b(_0x125c96)||_0x125c96);return _0x125c96;},m=(_0x6c80e2,_0x2e6b3a)=>(_0x172a5d,_0x100613)=>_0x2e6b3a(_0x172a5d,_0x100613,_0x6c80e2);let u=class extends i[_0x1d4f2f(0x1e5)]{constructor(_0x23b42e,_0x1892df){const _0x3e5cf4=_0x1d4f2f;super(),this[_0x3e5cf4(0x207)]=_0x23b42e,this['_menuManagerService']=_0x1892df,this[_0x3e5cf4(0x20a)](),this[_0x3e5cf4(0x20e)]();}[_0x1d4f2f(0x20a)](){const _0x424f51=_0x1d4f2f;[l,p][_0x424f51(0x20b)](_0x57c136=>{const _0x1d03cb=_0x424f51;this[_0x1d03cb(0x221)](this['_commandService'][_0x1d03cb(0x20f)](_0x57c136));});}[_0x1d4f2f(0x20e)](){const _0x13a258=_0x1d4f2f;this[_0x13a258(0x1f8)][_0x13a258(0x203)](f);}};u=y([m(0x0,i[_0x1d4f2f(0x222)]),m(0x1,c['IMenuManagerService'])],u);var O=Object['defineProperty'],U=Object[_0x1d4f2f(0x1ec)],X=(_0x28138e,_0x3ad8ae,_0x472dec)=>_0x3ad8ae in _0x28138e?O(_0x28138e,_0x3ad8ae,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x472dec}):_0x28138e[_0x3ad8ae]=_0x472dec,N=(_0x26db1a,_0x49afac,_0x45d23c,_0x22469b)=>{const _0x17b1bc=_0x1d4f2f;for(var _0x89a192=_0x22469b>0x1?void 0x0:_0x22469b?U(_0x49afac,_0x45d23c):_0x49afac,_0x10004f=_0x26db1a[_0x17b1bc(0x220)]-0x1,_0x30547e;_0x10004f>=0x0;_0x10004f--)(_0x30547e=_0x26db1a[_0x10004f])&&(_0x89a192=_0x30547e(_0x89a192)||_0x89a192);return _0x89a192;},d=(_0x2af11d,_0x327710)=>(_0xc199bb,_0x5140dd)=>_0x327710(_0xc199bb,_0x5140dd,_0x2af11d),E=(_0x11a36a,_0x3dced5,_0x17ed75)=>X(_0x11a36a,typeof _0x3dced5!=_0x1d4f2f(0x201)?_0x3dced5+'':_0x3dced5,_0x17ed75);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports[_0x1d4f2f(0x212)]=class extends i[_0x1d4f2f(0x1e4)]{constructor(_0x364ab9=h,_0xe98b1d,_0x512737){const _0x546b90=_0x1d4f2f;super(),this[_0x546b90(0x1e9)]=_0x364ab9,this[_0x546b90(0x1f4)]=_0xe98b1d,this['_configService']=_0x512737;const {menu:_0x25bdd1,..._0x30a2b9}=i[_0x546b90(0x213)]({},h,this[_0x546b90(0x1e9)]);_0x25bdd1&&this[_0x546b90(0x1f6)]['setConfig'](_0x546b90(0x214),_0x25bdd1,{'merge':!0x0}),this['_configService'][_0x546b90(0x1fe)](v,_0x30a2b9);}[_0x1d4f2f(0x218)](){const _0x1eed59=_0x1d4f2f;[[u]][_0x1eed59(0x20b)](_0x1ef874=>this[_0x1eed59(0x1f4)][_0x1eed59(0x1f7)](_0x1ef874));}['onReady'](){const _0x6b95d8=_0x1d4f2f;this[_0x6b95d8(0x1f4)]['get'](u);}},E(exports['UniverSheetsExchangeClientPlugin'],_0x1d4f2f(0x224),L),E(exports[_0x1d4f2f(0x212)],_0x1d4f2f(0x202),i[_0x1d4f2f(0x217)][_0x1d4f2f(0x1ed)]),exports[_0x1d4f2f(0x212)]=N([i[_0x1d4f2f(0x215)](g[_0x1d4f2f(0x226)]),d(0x1,i[_0x1d4f2f(0x1fc)](i[_0x1d4f2f(0x1f2)])),d(0x2,i[_0x1d4f2f(0x211)])],exports[_0x1d4f2f(0x212)]),exports[_0x1d4f2f(0x216)]=p,exports[_0x1d4f2f(0x223)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x279d9e=_0x97b7;(function(_0x461e0e,_0xb77871){const _0x9d6bf7=_0x97b7,_0x4dffcb=_0x461e0e();while(!![]){try{const _0x4b42a6=parseInt(_0x9d6bf7(0xf4))/0x1*(-parseInt(_0x9d6bf7(0xe6))/0x2)+parseInt(_0x9d6bf7(0x101))/0x3+-parseInt(_0x9d6bf7(0xe7))/0x4+-parseInt(_0x9d6bf7(0xf7))/0x5+parseInt(_0x9d6bf7(0xf2))/0x6*(parseInt(_0x9d6bf7(0xf5))/0x7)+-parseInt(_0x9d6bf7(0xed))/0x8*(-parseInt(_0x9d6bf7(0x106))/0x9)+parseInt(_0x9d6bf7(0xfe))/0xa*(parseInt(_0x9d6bf7(0xef))/0xb);if(_0x4b42a6===_0xb77871)break;else _0x4dffcb['push'](_0x4dffcb['shift']());}catch(_0x171c2a){_0x4dffcb['push'](_0x4dffcb['shift']());}}}(_0x3c4a,0xa8434));import{IExchangeOperateService as _0x418c02,UniverExchangeClientPlugin as _0x569ed}from'@univerjs-pro/exchange-client';import{CommandType as _0x51d34c,UniverInstanceType as _0x4f08b0,Disposable as _0x187dfa,ICommandService as _0x31a09b,DependentOn as _0x3cc9e2,Inject as _0x50a231,Injector as _0x2fdebb,IConfigService as _0x308072,Plugin as _0x27a212,merge as _0x4aab5d}from'@univerjs/core';import{MenuItemType as _0x5c9fc8,getMenuHiddenObservable as _0x5af1c8,RibbonStartGroup as _0x767869,IMenuManagerService as _0x193aee}from'@univerjs/ui';import{WorkbookExportPermission as _0x2e808c}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x447054}from'@univerjs/sheets-ui';const p={'id':_0x279d9e(0xfc),'type':_0x51d34c[_0x279d9e(0xf0)],'handler':async _0x27aa65=>{const _0x64e30c=_0x279d9e,_0x49838c=_0x27aa65[_0x64e30c(0x10b)](_0x418c02);return new URLSearchParams(location[_0x64e30c(0x108)])[_0x64e30c(0x10b)](_0x64e30c(0x104))?_0x49838c['importXLSXToUnitId']():_0x49838c[_0x64e30c(0x102)](),!0x0;}},u={'id':_0x279d9e(0xee),'type':_0x51d34c[_0x279d9e(0xf0)],'handler':async _0x50395e=>{const _0x1281a6=_0x279d9e,_0x52d782=_0x50395e[_0x1281a6(0x10b)](_0x418c02);return new URLSearchParams(location[_0x1281a6(0x108)])[_0x1281a6(0x10b)]('unit')?_0x52d782[_0x1281a6(0xf3)]():_0x52d782[_0x1281a6(0xfb)](),!0x0;}},H='sheets-exchange-client.config',l={},S=_0x279d9e(0xe8);function R(_0x60c94c){const _0x29f632=_0x279d9e;return{'id':S,'type':_0x5c9fc8['SUBITEMS'],'icon':_0x29f632(0x105),'tooltip':_0x29f632(0x103),'hidden$':_0x5af1c8(_0x60c94c,_0x4f08b0[_0x29f632(0xe1)]),'disabled$':_0x447054(_0x60c94c,{'workbookTypes':[_0x2e808c]})};}function w(){const _0x33ac89=_0x279d9e;return{'id':p['id'],'type':_0x5c9fc8[_0x33ac89(0xeb)],'title':_0x33ac89(0x109),'icon':_0x33ac89(0xe4)};}function D(){const _0x28de6d=_0x279d9e;return{'id':u['id'],'type':_0x5c9fc8[_0x28de6d(0xeb)],'title':_0x28de6d(0xfd),'icon':_0x28de6d(0xf1)};}const F={[_0x767869[_0x279d9e(0xec)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};function _0x97b7(_0x3d46fd,_0x1590e2){const _0x3c4a8e=_0x3c4a();return _0x97b7=function(_0x97b75d,_0x573d6d){_0x97b75d=_0x97b75d-0xe1;let _0x2c5a5d=_0x3c4a8e[_0x97b75d];return _0x2c5a5d;},_0x97b7(_0x3d46fd,_0x1590e2);}function _0x3c4a(){const _0x5f3cf9=['14SGrBiI','defineProperty','94705xAXLzO','_initCommands','length','_injector','exportXLSXBySnapshot','exchange-client.operation.import-xlsx','exchange.download','150140AHDGco','_initMenus','getOwnPropertyDescriptor','1237008cNJIRB','importXLSXToSnapshot','exchange.file','unit','DirectExportIcon','171zuwndg','onStarting','search','exchange.upload','_config','get','_menuManagerService','_configService','UNIVER_SHEET','disposeWithMe','symbol','FolderIcon','forEach','436omqSLu','5436196BZrWAA','sheets-exchange-client.operation.exchange','onReady','_commandService','BUTTON','OTHERS','330864mqTBpl','exchange-client.operation.export-xlsx','1254sffFue','OPERATION','ExportIcon','1114506KPKOcP','exportXLSXByUnitId','5569hQPWln'];_0x3c4a=function(){return _0x5f3cf9;};return _0x3c4a();}var G=Object[_0x279d9e(0x100)],A=(_0x301bf3,_0x119197,_0x458507,_0x18407d)=>{const _0x61d307=_0x279d9e;for(var _0x21608e=_0x18407d>0x1?void 0x0:_0x18407d?G(_0x119197,_0x458507):_0x119197,_0x20a84e=_0x301bf3[_0x61d307(0xf9)]-0x1,_0x349850;_0x20a84e>=0x0;_0x20a84e--)(_0x349850=_0x301bf3[_0x20a84e])&&(_0x21608e=_0x349850(_0x21608e)||_0x21608e);return _0x21608e;},d=(_0x196c07,_0x1afe93)=>(_0x4de671,_0x3b0723)=>_0x1afe93(_0x4de671,_0x3b0723,_0x196c07);let c=class extends _0x187dfa{constructor(_0x34d51a,_0x1e4955){const _0x3881db=_0x279d9e;super(),this[_0x3881db(0xea)]=_0x34d51a,this['_menuManagerService']=_0x1e4955,this[_0x3881db(0xf8)](),this[_0x3881db(0xff)]();}[_0x279d9e(0xf8)](){const _0x3ba4f4=_0x279d9e;[p,u][_0x3ba4f4(0xe5)](_0x3f3c7f=>{const _0x9a5f5a=_0x3ba4f4;this[_0x9a5f5a(0xe2)](this[_0x9a5f5a(0xea)]['registerCommand'](_0x3f3c7f));});}[_0x279d9e(0xff)](){const _0x29c62d=_0x279d9e;this[_0x29c62d(0x10c)]['mergeMenu'](F);}};c=A([d(0x0,_0x31a09b),d(0x1,_0x193aee)],c);var j=Object[_0x279d9e(0xf6)],B=Object[_0x279d9e(0x100)],$=(_0x81dbda,_0x20323a,_0x4b78c5)=>_0x20323a in _0x81dbda?j(_0x81dbda,_0x20323a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b78c5}):_0x81dbda[_0x20323a]=_0x4b78c5,V=(_0x2ca8a5,_0x1a70a8,_0x370265,_0x4a56bc)=>{const _0x311c52=_0x279d9e;for(var _0x3f8962=_0x4a56bc>0x1?void 0x0:_0x4a56bc?B(_0x1a70a8,_0x370265):_0x1a70a8,_0x8e684b=_0x2ca8a5[_0x311c52(0xf9)]-0x1,_0x14eead;_0x8e684b>=0x0;_0x8e684b--)(_0x14eead=_0x2ca8a5[_0x8e684b])&&(_0x3f8962=_0x14eead(_0x3f8962)||_0x3f8962);return _0x3f8962;},_=(_0x32d84b,_0x133382)=>(_0x1c7890,_0x5c8c7b)=>_0x133382(_0x1c7890,_0x5c8c7b,_0x32d84b),I=(_0x20abca,_0x168039,_0x1ece7c)=>$(_0x20abca,typeof _0x168039!=_0x279d9e(0xe3)?_0x168039+'':_0x168039,_0x1ece7c);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x27a212{constructor(_0x265286=l,_0x32bab8,_0x4a3f9a){const _0x5cd1b7=_0x279d9e;super(),this[_0x5cd1b7(0x10a)]=_0x265286,this[_0x5cd1b7(0xfa)]=_0x32bab8,this[_0x5cd1b7(0x10d)]=_0x4a3f9a;const {menu:_0x5eb4e0,..._0x38b7ed}=_0x4aab5d({},l,this[_0x5cd1b7(0x10a)]);_0x5eb4e0&&this[_0x5cd1b7(0x10d)]['setConfig']('menu',_0x5eb4e0,{'merge':!0x0}),this[_0x5cd1b7(0x10d)]['setConfig'](H,_0x38b7ed);}[_0x279d9e(0x107)](){const _0x17bae8=_0x279d9e;[[c]][_0x17bae8(0xe5)](_0x3bcd8f=>this[_0x17bae8(0xfa)]['add'](_0x3bcd8f));}[_0x279d9e(0xe9)](){const _0xa0963c=_0x279d9e;this['_injector'][_0xa0963c(0x10b)](c);}};I(s,'pluginName',W),I(s,'type',_0x4f08b0[_0x279d9e(0xe1)]),s=V([_0x3cc9e2(_0x569ed),_(0x1,_0x50a231(_0x2fdebb)),_(0x2,_0x308072)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0xfdf680=_0x3571;(function(_0x375b90,_0x341f52){const _0x467c81=_0x3571,_0x5e86ec=_0x375b90();while(!![]){try{const _0x11b65f=parseInt(_0x467c81(0xb7))/0x1*(-parseInt(_0x467c81(0xcd))/0x2)+-parseInt(_0x467c81(0xa6))/0x3+parseInt(_0x467c81(0xd5))/0x4*(parseInt(_0x467c81(0xb4))/0x5)+parseInt(_0x467c81(0xa9))/0x6+parseInt(_0x467c81(0xc2))/0x7+parseInt(_0x467c81(0xb8))/0x8*(parseInt(_0x467c81(0xb9))/0x9)+-parseInt(_0x467c81(0xbf))/0xa*(parseInt(_0x467c81(0xad))/0xb);if(_0x11b65f===_0x341f52)break;else _0x5e86ec['push'](_0x5e86ec['shift']());}catch(_0x1c8d95){_0x5e86ec['push'](_0x5e86ec['shift']());}}}(_0x56da,0x78066));import{IExchangeOperateService as _0x146752,UniverExchangeClientPlugin as _0x3b6be4}from'@univerjs-pro/exchange-client';import{CommandType as _0x5a70f3,UniverInstanceType as _0x4e4d14,Disposable as _0x163634,ICommandService as _0x6643a1,DependentOn as _0xecbde9,Inject as _0x1801e8,Injector as _0x10dddd,IConfigService as _0x43c9be,Plugin as _0x157efa,merge as _0x161a24}from'@univerjs/core';function _0x3571(_0x19d963,_0x39b296){const _0x56daa0=_0x56da();return _0x3571=function(_0x357113,_0x388cdd){_0x357113=_0x357113-0xa6;let _0x5ac6e7=_0x56daa0[_0x357113];return _0x5ac6e7;},_0x3571(_0x19d963,_0x39b296);}import{MenuItemType as _0x39b3d7,getMenuHiddenObservable as _0x2026f8,RibbonStartGroup as _0x45aaa7,IMenuManagerService as _0x2d7b69}from'@univerjs/ui';function _0x56da(){const _0x211964=['_configService','exchange.file','555682bIllUi','exchange.upload','OPERATION','exchange-client.operation.export-xlsx','search','_initCommands','FolderIcon','UNIVER_SHEET','253076npkpMq','1078674tIaVnP','exportXLSXByUnitId','disposeWithMe','2493402BuSkLN','onStarting','SUBITEMS','onReady','4723939zcgFRD','_initMenus','forEach','menu','_menuManagerService','registerCommand','SHEET_EXCHANGE_CLIENT_PLUGIN','55awjNsw','getOwnPropertyDescriptor','OTHERS','3qwzEei','16OGxkBe','3576042VfnouL','_injector','importXLSXToSnapshot','pluginName','importXLSXToUnitId','type','10IqtDct','mergeMenu','ExportIcon','1455650uNaJNY','add','sheets-exchange-client.config','_commandService','symbol','get','_config','exportXLSXBySnapshot','length'];_0x56da=function(){return _0x211964;};return _0x56da();}import{WorkbookExportPermission as _0x4afc30}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x14dbbb}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x5a70f3[_0xfdf680(0xcf)],'handler':async _0x17a051=>{const _0x3853ba=_0xfdf680,_0x619edb=_0x17a051['get'](_0x146752);return new URLSearchParams(location['search'])['get']('unit')?_0x619edb[_0x3853ba(0xbd)]():_0x619edb[_0x3853ba(0xbb)](),!0x0;}},u={'id':_0xfdf680(0xd0),'type':_0x5a70f3[_0xfdf680(0xcf)],'handler':async _0x1e8d58=>{const _0x163ee5=_0xfdf680,_0x4749d1=_0x1e8d58[_0x163ee5(0xc7)](_0x146752);return new URLSearchParams(location[_0x163ee5(0xd1)])[_0x163ee5(0xc7)]('unit')?_0x4749d1[_0x163ee5(0xa7)]():_0x4749d1[_0x163ee5(0xc9)](),!0x0;}},H=_0xfdf680(0xc4),l={},S='sheets-exchange-client.operation.exchange';function R(_0x4cfaee){const _0x19cfb2=_0xfdf680;return{'id':S,'type':_0x39b3d7[_0x19cfb2(0xab)],'icon':'DirectExportIcon','tooltip':_0x19cfb2(0xcc),'hidden$':_0x2026f8(_0x4cfaee,_0x4e4d14[_0x19cfb2(0xd4)]),'disabled$':_0x14dbbb(_0x4cfaee,{'workbookTypes':[_0x4afc30]})};}function w(){const _0x5c7ad1=_0xfdf680;return{'id':p['id'],'type':_0x39b3d7['BUTTON'],'title':_0x5c7ad1(0xce),'icon':_0x5c7ad1(0xd3)};}function D(){const _0x3f9993=_0xfdf680;return{'id':u['id'],'type':_0x39b3d7['BUTTON'],'title':'exchange.download','icon':_0x3f9993(0xc1)};}const F={[_0x45aaa7[_0xfdf680(0xb6)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0xfdf680(0xb5)],A=(_0x405603,_0x27f54c,_0x48b708,_0x2e8193)=>{const _0x342ad3=_0xfdf680;for(var _0x47ed96=_0x2e8193>0x1?void 0x0:_0x2e8193?G(_0x27f54c,_0x48b708):_0x27f54c,_0x75bef9=_0x405603[_0x342ad3(0xca)]-0x1,_0xe950f5;_0x75bef9>=0x0;_0x75bef9--)(_0xe950f5=_0x405603[_0x75bef9])&&(_0x47ed96=_0xe950f5(_0x47ed96)||_0x47ed96);return _0x47ed96;},d=(_0xb9196f,_0x5a9459)=>(_0x5d55e8,_0x5c64a4)=>_0x5a9459(_0x5d55e8,_0x5c64a4,_0xb9196f);let c=class extends _0x163634{constructor(_0x252ec7,_0xbd0780){const _0x4312d2=_0xfdf680;super(),this[_0x4312d2(0xc5)]=_0x252ec7,this[_0x4312d2(0xb1)]=_0xbd0780,this[_0x4312d2(0xd2)](),this['_initMenus']();}[_0xfdf680(0xd2)](){const _0x37abbf=_0xfdf680;[p,u][_0x37abbf(0xaf)](_0x22ff1c=>{const _0x2d48d5=_0x37abbf;this[_0x2d48d5(0xa8)](this['_commandService'][_0x2d48d5(0xb2)](_0x22ff1c));});}[_0xfdf680(0xae)](){const _0x3b9819=_0xfdf680;this[_0x3b9819(0xb1)][_0x3b9819(0xc0)](F);}};c=A([d(0x0,_0x6643a1),d(0x1,_0x2d7b69)],c);var j=Object['defineProperty'],B=Object['getOwnPropertyDescriptor'],$=(_0x3d9abb,_0x449d55,_0x58178e)=>_0x449d55 in _0x3d9abb?j(_0x3d9abb,_0x449d55,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58178e}):_0x3d9abb[_0x449d55]=_0x58178e,V=(_0x174b63,_0x298344,_0x271239,_0x1b9cd9)=>{const _0x1cdf3f=_0xfdf680;for(var _0x351805=_0x1b9cd9>0x1?void 0x0:_0x1b9cd9?B(_0x298344,_0x271239):_0x298344,_0x2cef0e=_0x174b63[_0x1cdf3f(0xca)]-0x1,_0x2a4ffd;_0x2cef0e>=0x0;_0x2cef0e--)(_0x2a4ffd=_0x174b63[_0x2cef0e])&&(_0x351805=_0x2a4ffd(_0x351805)||_0x351805);return _0x351805;},_=(_0x2b9853,_0x2a6e9b)=>(_0x1b506b,_0x5c6a71)=>_0x2a6e9b(_0x1b506b,_0x5c6a71,_0x2b9853),I=(_0x21e7cd,_0x45102d,_0x462677)=>$(_0x21e7cd,typeof _0x45102d!=_0xfdf680(0xc6)?_0x45102d+'':_0x45102d,_0x462677);const W=_0xfdf680(0xb3);let s=class extends _0x157efa{constructor(_0x506c2e=l,_0x19d145,_0x502d00){const _0x365dc4=_0xfdf680;super(),this[_0x365dc4(0xc8)]=_0x506c2e,this[_0x365dc4(0xba)]=_0x19d145,this['_configService']=_0x502d00;const {menu:_0x3123c9,..._0x2061a7}=_0x161a24({},l,this[_0x365dc4(0xc8)]);_0x3123c9&&this[_0x365dc4(0xcb)]['setConfig'](_0x365dc4(0xb0),_0x3123c9,{'merge':!0x0}),this[_0x365dc4(0xcb)]['setConfig'](H,_0x2061a7);}[_0xfdf680(0xaa)](){const _0x2bb905=_0xfdf680;[[c]][_0x2bb905(0xaf)](_0x44a9c3=>this[_0x2bb905(0xba)][_0x2bb905(0xc3)](_0x44a9c3));}[_0xfdf680(0xac)](){const _0x1c8df1=_0xfdf680;this[_0x1c8df1(0xba)][_0x1c8df1(0xc7)](c);}};I(s,_0xfdf680(0xbc),W),I(s,_0xfdf680(0xbe),_0x4e4d14[_0xfdf680(0xd4)]),s=V([_0xecbde9(_0x3b6be4),_(0x1,_0x1801e8(_0x10dddd)),_(0x2,_0x43c9be)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x279d9e=_0x97b7;(function(_0x461e0e,_0xb77871){const _0x9d6bf7=_0x97b7,_0x4dffcb=_0x461e0e();while(!![]){try{const _0x4b42a6=parseInt(_0x9d6bf7(0xf4))/0x1*(-parseInt(_0x9d6bf7(0xe6))/0x2)+parseInt(_0x9d6bf7(0x101))/0x3+-parseInt(_0x9d6bf7(0xe7))/0x4+-parseInt(_0x9d6bf7(0xf7))/0x5+parseInt(_0x9d6bf7(0xf2))/0x6*(parseInt(_0x9d6bf7(0xf5))/0x7)+-parseInt(_0x9d6bf7(0xed))/0x8*(-parseInt(_0x9d6bf7(0x106))/0x9)+parseInt(_0x9d6bf7(0xfe))/0xa*(parseInt(_0x9d6bf7(0xef))/0xb);if(_0x4b42a6===_0xb77871)break;else _0x4dffcb['push'](_0x4dffcb['shift']());}catch(_0x171c2a){_0x4dffcb['push'](_0x4dffcb['shift']());}}}(_0x3c4a,0xa8434));import{IExchangeOperateService as _0x418c02,UniverExchangeClientPlugin as _0x569ed}from'@univerjs-pro/exchange-client';import{CommandType as _0x51d34c,UniverInstanceType as _0x4f08b0,Disposable as _0x187dfa,ICommandService as _0x31a09b,DependentOn as _0x3cc9e2,Inject as _0x50a231,Injector as _0x2fdebb,IConfigService as _0x308072,Plugin as _0x27a212,merge as _0x4aab5d}from'@univerjs/core';import{MenuItemType as _0x5c9fc8,getMenuHiddenObservable as _0x5af1c8,RibbonStartGroup as _0x767869,IMenuManagerService as _0x193aee}from'@univerjs/ui';import{WorkbookExportPermission as _0x2e808c}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x447054}from'@univerjs/sheets-ui';const p={'id':_0x279d9e(0xfc),'type':_0x51d34c[_0x279d9e(0xf0)],'handler':async _0x27aa65=>{const _0x64e30c=_0x279d9e,_0x49838c=_0x27aa65[_0x64e30c(0x10b)](_0x418c02);return new URLSearchParams(location[_0x64e30c(0x108)])[_0x64e30c(0x10b)](_0x64e30c(0x104))?_0x49838c['importXLSXToUnitId']():_0x49838c[_0x64e30c(0x102)](),!0x0;}},u={'id':_0x279d9e(0xee),'type':_0x51d34c[_0x279d9e(0xf0)],'handler':async _0x50395e=>{const _0x1281a6=_0x279d9e,_0x52d782=_0x50395e[_0x1281a6(0x10b)](_0x418c02);return new URLSearchParams(location[_0x1281a6(0x108)])[_0x1281a6(0x10b)]('unit')?_0x52d782[_0x1281a6(0xf3)]():_0x52d782[_0x1281a6(0xfb)](),!0x0;}},H='sheets-exchange-client.config',l={},S=_0x279d9e(0xe8);function R(_0x60c94c){const _0x29f632=_0x279d9e;return{'id':S,'type':_0x5c9fc8['SUBITEMS'],'icon':_0x29f632(0x105),'tooltip':_0x29f632(0x103),'hidden$':_0x5af1c8(_0x60c94c,_0x4f08b0[_0x29f632(0xe1)]),'disabled$':_0x447054(_0x60c94c,{'workbookTypes':[_0x2e808c]})};}function w(){const _0x33ac89=_0x279d9e;return{'id':p['id'],'type':_0x5c9fc8[_0x33ac89(0xeb)],'title':_0x33ac89(0x109),'icon':_0x33ac89(0xe4)};}function D(){const _0x28de6d=_0x279d9e;return{'id':u['id'],'type':_0x5c9fc8[_0x28de6d(0xeb)],'title':_0x28de6d(0xfd),'icon':_0x28de6d(0xf1)};}const F={[_0x767869[_0x279d9e(0xec)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};function _0x97b7(_0x3d46fd,_0x1590e2){const _0x3c4a8e=_0x3c4a();return _0x97b7=function(_0x97b75d,_0x573d6d){_0x97b75d=_0x97b75d-0xe1;let _0x2c5a5d=_0x3c4a8e[_0x97b75d];return _0x2c5a5d;},_0x97b7(_0x3d46fd,_0x1590e2);}function _0x3c4a(){const _0x5f3cf9=['14SGrBiI','defineProperty','94705xAXLzO','_initCommands','length','_injector','exportXLSXBySnapshot','exchange-client.operation.import-xlsx','exchange.download','150140AHDGco','_initMenus','getOwnPropertyDescriptor','1237008cNJIRB','importXLSXToSnapshot','exchange.file','unit','DirectExportIcon','171zuwndg','onStarting','search','exchange.upload','_config','get','_menuManagerService','_configService','UNIVER_SHEET','disposeWithMe','symbol','FolderIcon','forEach','436omqSLu','5436196BZrWAA','sheets-exchange-client.operation.exchange','onReady','_commandService','BUTTON','OTHERS','330864mqTBpl','exchange-client.operation.export-xlsx','1254sffFue','OPERATION','ExportIcon','1114506KPKOcP','exportXLSXByUnitId','5569hQPWln'];_0x3c4a=function(){return _0x5f3cf9;};return _0x3c4a();}var G=Object[_0x279d9e(0x100)],A=(_0x301bf3,_0x119197,_0x458507,_0x18407d)=>{const _0x61d307=_0x279d9e;for(var _0x21608e=_0x18407d>0x1?void 0x0:_0x18407d?G(_0x119197,_0x458507):_0x119197,_0x20a84e=_0x301bf3[_0x61d307(0xf9)]-0x1,_0x349850;_0x20a84e>=0x0;_0x20a84e--)(_0x349850=_0x301bf3[_0x20a84e])&&(_0x21608e=_0x349850(_0x21608e)||_0x21608e);return _0x21608e;},d=(_0x196c07,_0x1afe93)=>(_0x4de671,_0x3b0723)=>_0x1afe93(_0x4de671,_0x3b0723,_0x196c07);let c=class extends _0x187dfa{constructor(_0x34d51a,_0x1e4955){const _0x3881db=_0x279d9e;super(),this[_0x3881db(0xea)]=_0x34d51a,this['_menuManagerService']=_0x1e4955,this[_0x3881db(0xf8)](),this[_0x3881db(0xff)]();}[_0x279d9e(0xf8)](){const _0x3ba4f4=_0x279d9e;[p,u][_0x3ba4f4(0xe5)](_0x3f3c7f=>{const _0x9a5f5a=_0x3ba4f4;this[_0x9a5f5a(0xe2)](this[_0x9a5f5a(0xea)]['registerCommand'](_0x3f3c7f));});}[_0x279d9e(0xff)](){const _0x29c62d=_0x279d9e;this[_0x29c62d(0x10c)]['mergeMenu'](F);}};c=A([d(0x0,_0x31a09b),d(0x1,_0x193aee)],c);var j=Object[_0x279d9e(0xf6)],B=Object[_0x279d9e(0x100)],$=(_0x81dbda,_0x20323a,_0x4b78c5)=>_0x20323a in _0x81dbda?j(_0x81dbda,_0x20323a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b78c5}):_0x81dbda[_0x20323a]=_0x4b78c5,V=(_0x2ca8a5,_0x1a70a8,_0x370265,_0x4a56bc)=>{const _0x311c52=_0x279d9e;for(var _0x3f8962=_0x4a56bc>0x1?void 0x0:_0x4a56bc?B(_0x1a70a8,_0x370265):_0x1a70a8,_0x8e684b=_0x2ca8a5[_0x311c52(0xf9)]-0x1,_0x14eead;_0x8e684b>=0x0;_0x8e684b--)(_0x14eead=_0x2ca8a5[_0x8e684b])&&(_0x3f8962=_0x14eead(_0x3f8962)||_0x3f8962);return _0x3f8962;},_=(_0x32d84b,_0x133382)=>(_0x1c7890,_0x5c8c7b)=>_0x133382(_0x1c7890,_0x5c8c7b,_0x32d84b),I=(_0x20abca,_0x168039,_0x1ece7c)=>$(_0x20abca,typeof _0x168039!=_0x279d9e(0xe3)?_0x168039+'':_0x168039,_0x1ece7c);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x27a212{constructor(_0x265286=l,_0x32bab8,_0x4a3f9a){const _0x5cd1b7=_0x279d9e;super(),this[_0x5cd1b7(0x10a)]=_0x265286,this[_0x5cd1b7(0xfa)]=_0x32bab8,this[_0x5cd1b7(0x10d)]=_0x4a3f9a;const {menu:_0x5eb4e0,..._0x38b7ed}=_0x4aab5d({},l,this[_0x5cd1b7(0x10a)]);_0x5eb4e0&&this[_0x5cd1b7(0x10d)]['setConfig']('menu',_0x5eb4e0,{'merge':!0x0}),this[_0x5cd1b7(0x10d)]['setConfig'](H,_0x38b7ed);}[_0x279d9e(0x107)](){const _0x17bae8=_0x279d9e;[[c]][_0x17bae8(0xe5)](_0x3bcd8f=>this[_0x17bae8(0xfa)]['add'](_0x3bcd8f));}[_0x279d9e(0xe9)](){const _0xa0963c=_0x279d9e;this['_injector'][_0xa0963c(0x10b)](c);}};I(s,'pluginName',W),I(s,'type',_0x4f08b0[_0x279d9e(0xe1)]),s=V([_0x3cc9e2(_0x569ed),_(0x1,_0x50a231(_0x2fdebb)),_(0x2,_0x308072)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0xfdf680=_0x3571;(function(_0x375b90,_0x341f52){const _0x467c81=_0x3571,_0x5e86ec=_0x375b90();while(!![]){try{const _0x11b65f=parseInt(_0x467c81(0xb7))/0x1*(-parseInt(_0x467c81(0xcd))/0x2)+-parseInt(_0x467c81(0xa6))/0x3+parseInt(_0x467c81(0xd5))/0x4*(parseInt(_0x467c81(0xb4))/0x5)+parseInt(_0x467c81(0xa9))/0x6+parseInt(_0x467c81(0xc2))/0x7+parseInt(_0x467c81(0xb8))/0x8*(parseInt(_0x467c81(0xb9))/0x9)+-parseInt(_0x467c81(0xbf))/0xa*(parseInt(_0x467c81(0xad))/0xb);if(_0x11b65f===_0x341f52)break;else _0x5e86ec['push'](_0x5e86ec['shift']());}catch(_0x1c8d95){_0x5e86ec['push'](_0x5e86ec['shift']());}}}(_0x56da,0x78066));import{IExchangeOperateService as _0x146752,UniverExchangeClientPlugin as _0x3b6be4}from'@univerjs-pro/exchange-client';import{CommandType as _0x5a70f3,UniverInstanceType as _0x4e4d14,Disposable as _0x163634,ICommandService as _0x6643a1,DependentOn as _0xecbde9,Inject as _0x1801e8,Injector as _0x10dddd,IConfigService as _0x43c9be,Plugin as _0x157efa,merge as _0x161a24}from'@univerjs/core';function _0x3571(_0x19d963,_0x39b296){const _0x56daa0=_0x56da();return _0x3571=function(_0x357113,_0x388cdd){_0x357113=_0x357113-0xa6;let _0x5ac6e7=_0x56daa0[_0x357113];return _0x5ac6e7;},_0x3571(_0x19d963,_0x39b296);}import{MenuItemType as _0x39b3d7,getMenuHiddenObservable as _0x2026f8,RibbonStartGroup as _0x45aaa7,IMenuManagerService as _0x2d7b69}from'@univerjs/ui';function _0x56da(){const _0x211964=['_configService','exchange.file','555682bIllUi','exchange.upload','OPERATION','exchange-client.operation.export-xlsx','search','_initCommands','FolderIcon','UNIVER_SHEET','253076npkpMq','1078674tIaVnP','exportXLSXByUnitId','disposeWithMe','2493402BuSkLN','onStarting','SUBITEMS','onReady','4723939zcgFRD','_initMenus','forEach','menu','_menuManagerService','registerCommand','SHEET_EXCHANGE_CLIENT_PLUGIN','55awjNsw','getOwnPropertyDescriptor','OTHERS','3qwzEei','16OGxkBe','3576042VfnouL','_injector','importXLSXToSnapshot','pluginName','importXLSXToUnitId','type','10IqtDct','mergeMenu','ExportIcon','1455650uNaJNY','add','sheets-exchange-client.config','_commandService','symbol','get','_config','exportXLSXBySnapshot','length'];_0x56da=function(){return _0x211964;};return _0x56da();}import{WorkbookExportPermission as _0x4afc30}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x14dbbb}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x5a70f3[_0xfdf680(0xcf)],'handler':async _0x17a051=>{const _0x3853ba=_0xfdf680,_0x619edb=_0x17a051['get'](_0x146752);return new URLSearchParams(location['search'])['get']('unit')?_0x619edb[_0x3853ba(0xbd)]():_0x619edb[_0x3853ba(0xbb)](),!0x0;}},u={'id':_0xfdf680(0xd0),'type':_0x5a70f3[_0xfdf680(0xcf)],'handler':async _0x1e8d58=>{const _0x163ee5=_0xfdf680,_0x4749d1=_0x1e8d58[_0x163ee5(0xc7)](_0x146752);return new URLSearchParams(location[_0x163ee5(0xd1)])[_0x163ee5(0xc7)]('unit')?_0x4749d1[_0x163ee5(0xa7)]():_0x4749d1[_0x163ee5(0xc9)](),!0x0;}},H=_0xfdf680(0xc4),l={},S='sheets-exchange-client.operation.exchange';function R(_0x4cfaee){const _0x19cfb2=_0xfdf680;return{'id':S,'type':_0x39b3d7[_0x19cfb2(0xab)],'icon':'DirectExportIcon','tooltip':_0x19cfb2(0xcc),'hidden$':_0x2026f8(_0x4cfaee,_0x4e4d14[_0x19cfb2(0xd4)]),'disabled$':_0x14dbbb(_0x4cfaee,{'workbookTypes':[_0x4afc30]})};}function w(){const _0x5c7ad1=_0xfdf680;return{'id':p['id'],'type':_0x39b3d7['BUTTON'],'title':_0x5c7ad1(0xce),'icon':_0x5c7ad1(0xd3)};}function D(){const _0x3f9993=_0xfdf680;return{'id':u['id'],'type':_0x39b3d7['BUTTON'],'title':'exchange.download','icon':_0x3f9993(0xc1)};}const F={[_0x45aaa7[_0xfdf680(0xb6)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0xfdf680(0xb5)],A=(_0x405603,_0x27f54c,_0x48b708,_0x2e8193)=>{const _0x342ad3=_0xfdf680;for(var _0x47ed96=_0x2e8193>0x1?void 0x0:_0x2e8193?G(_0x27f54c,_0x48b708):_0x27f54c,_0x75bef9=_0x405603[_0x342ad3(0xca)]-0x1,_0xe950f5;_0x75bef9>=0x0;_0x75bef9--)(_0xe950f5=_0x405603[_0x75bef9])&&(_0x47ed96=_0xe950f5(_0x47ed96)||_0x47ed96);return _0x47ed96;},d=(_0xb9196f,_0x5a9459)=>(_0x5d55e8,_0x5c64a4)=>_0x5a9459(_0x5d55e8,_0x5c64a4,_0xb9196f);let c=class extends _0x163634{constructor(_0x252ec7,_0xbd0780){const _0x4312d2=_0xfdf680;super(),this[_0x4312d2(0xc5)]=_0x252ec7,this[_0x4312d2(0xb1)]=_0xbd0780,this[_0x4312d2(0xd2)](),this['_initMenus']();}[_0xfdf680(0xd2)](){const _0x37abbf=_0xfdf680;[p,u][_0x37abbf(0xaf)](_0x22ff1c=>{const _0x2d48d5=_0x37abbf;this[_0x2d48d5(0xa8)](this['_commandService'][_0x2d48d5(0xb2)](_0x22ff1c));});}[_0xfdf680(0xae)](){const _0x3b9819=_0xfdf680;this[_0x3b9819(0xb1)][_0x3b9819(0xc0)](F);}};c=A([d(0x0,_0x6643a1),d(0x1,_0x2d7b69)],c);var j=Object['defineProperty'],B=Object['getOwnPropertyDescriptor'],$=(_0x3d9abb,_0x449d55,_0x58178e)=>_0x449d55 in _0x3d9abb?j(_0x3d9abb,_0x449d55,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58178e}):_0x3d9abb[_0x449d55]=_0x58178e,V=(_0x174b63,_0x298344,_0x271239,_0x1b9cd9)=>{const _0x1cdf3f=_0xfdf680;for(var _0x351805=_0x1b9cd9>0x1?void 0x0:_0x1b9cd9?B(_0x298344,_0x271239):_0x298344,_0x2cef0e=_0x174b63[_0x1cdf3f(0xca)]-0x1,_0x2a4ffd;_0x2cef0e>=0x0;_0x2cef0e--)(_0x2a4ffd=_0x174b63[_0x2cef0e])&&(_0x351805=_0x2a4ffd(_0x351805)||_0x351805);return _0x351805;},_=(_0x2b9853,_0x2a6e9b)=>(_0x1b506b,_0x5c6a71)=>_0x2a6e9b(_0x1b506b,_0x5c6a71,_0x2b9853),I=(_0x21e7cd,_0x45102d,_0x462677)=>$(_0x21e7cd,typeof _0x45102d!=_0xfdf680(0xc6)?_0x45102d+'':_0x45102d,_0x462677);const W=_0xfdf680(0xb3);let s=class extends _0x157efa{constructor(_0x506c2e=l,_0x19d145,_0x502d00){const _0x365dc4=_0xfdf680;super(),this[_0x365dc4(0xc8)]=_0x506c2e,this[_0x365dc4(0xba)]=_0x19d145,this['_configService']=_0x502d00;const {menu:_0x3123c9,..._0x2061a7}=_0x161a24({},l,this[_0x365dc4(0xc8)]);_0x3123c9&&this[_0x365dc4(0xcb)]['setConfig'](_0x365dc4(0xb0),_0x3123c9,{'merge':!0x0}),this[_0x365dc4(0xcb)]['setConfig'](H,_0x2061a7);}[_0xfdf680(0xaa)](){const _0x2bb905=_0xfdf680;[[c]][_0x2bb905(0xaf)](_0x44a9c3=>this[_0x2bb905(0xba)][_0x2bb905(0xc3)](_0x44a9c3));}[_0xfdf680(0xac)](){const _0x1c8df1=_0xfdf680;this[_0x1c8df1(0xba)][_0x1c8df1(0xc7)](c);}};I(s,_0xfdf680(0xbc),W),I(s,_0xfdf680(0xbe),_0x4e4d14[_0xfdf680(0xd4)]),s=V([_0xecbde9(_0x3b6be4),_(0x1,_0x1801e8(_0x10dddd)),_(0x2,_0x43c9be)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x98a411,_0x4d82c9){const _0x20a00e=_0x17e7,_0x4b9a80=_0x98a411();while(!![]){try{const _0xd4e813=-parseInt(_0x20a00e(0x157))/0x1*(parseInt(_0x20a00e(0x18d))/0x2)+parseInt(_0x20a00e(0x19c))/0x3*(parseInt(_0x20a00e(0x199))/0x4)+-parseInt(_0x20a00e(0x194))/0x5*(-parseInt(_0x20a00e(0x19e))/0x6)+-parseInt(_0x20a00e(0x183))/0x7+-parseInt(_0x20a00e(0x19d))/0x8*(-parseInt(_0x20a00e(0x15c))/0x9)+-parseInt(_0x20a00e(0x174))/0xa*(parseInt(_0x20a00e(0x158))/0xb)+parseInt(_0x20a00e(0x162))/0xc*(parseInt(_0x20a00e(0x192))/0xd);if(_0xd4e813===_0x4d82c9)break;else _0x4b9a80['push'](_0x4b9a80['shift']());}catch(_0x4b0672){_0x4b9a80['push'](_0x4b9a80['shift']());}}}(_0x2a1f,0xa6d9e),function(_0x45e01c,_0x3c3d7a){const _0x10629b=_0x17e7;typeof exports==_0x10629b(0x172)&&typeof module<'u'?_0x3c3d7a(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x10629b(0x163)&&define[_0x10629b(0x176)]?define([_0x10629b(0x17a),'@univerjs-pro/exchange-client',_0x10629b(0x177),_0x10629b(0x188),_0x10629b(0x18e),'@univerjs/sheets-ui'],_0x3c3d7a):(_0x45e01c=typeof globalThis<'u'?globalThis:_0x45e01c||self,_0x3c3d7a(_0x45e01c[_0x10629b(0x195)]={},_0x45e01c[_0x10629b(0x15a)],_0x45e01c[_0x10629b(0x159)],_0x45e01c[_0x10629b(0x186)],_0x45e01c[_0x10629b(0x16f)],_0x45e01c[_0x10629b(0x169)]));}(this,function(_0x4a34af,_0x4b4e88,_0x30ee7b,_0x5b8c94,_0x452c3c,_0x19b382){'use strict';const _0x7c3fde=_0x17e7;const _0x1f826d={'id':_0x7c3fde(0x168),'type':_0x30ee7b[_0x7c3fde(0x181)]['OPERATION'],'handler':async _0x4bfda9=>{const _0x5cfe7b=_0x7c3fde,_0x1a3892=_0x4bfda9[_0x5cfe7b(0x193)](_0x4b4e88['IExchangeOperateService']);return new URLSearchParams(location[_0x5cfe7b(0x170)])[_0x5cfe7b(0x193)]('unit')?_0x1a3892['importXLSXToUnitId']():_0x1a3892['importXLSXToSnapshot'](),!0x0;}},_0x366153={'id':_0x7c3fde(0x187),'type':_0x30ee7b[_0x7c3fde(0x181)]['OPERATION'],'handler':async _0x1193e1=>{const _0x4e3c7a=_0x7c3fde,_0x4aa19a=_0x1193e1[_0x4e3c7a(0x193)](_0x4b4e88[_0x4e3c7a(0x166)]);return new URLSearchParams(location[_0x4e3c7a(0x170)])['get'](_0x4e3c7a(0x19f))?_0x4aa19a[_0x4e3c7a(0x17c)]():_0x4aa19a[_0x4e3c7a(0x18b)](),!0x0;}},_0x48e708=_0x7c3fde(0x171),_0x4dbcda={},_0x447d05=_0x7c3fde(0x198);function _0x439109(_0x42c77a){const _0x5af6af=_0x7c3fde;return{'id':_0x447d05,'type':_0x5b8c94['MenuItemType'][_0x5af6af(0x190)],'icon':_0x5af6af(0x196),'tooltip':_0x5af6af(0x1a4),'hidden$':_0x5b8c94[_0x5af6af(0x167)](_0x42c77a,_0x30ee7b[_0x5af6af(0x18c)][_0x5af6af(0x1a5)]),'disabled$':_0x19b382[_0x5af6af(0x18a)](_0x42c77a,{'workbookTypes':[_0x452c3c['WorkbookExportPermission']]})};}function _0x67f1e5(){const _0x6ca8e6=_0x7c3fde;return{'id':_0x1f826d['id'],'type':_0x5b8c94[_0x6ca8e6(0x160)][_0x6ca8e6(0x15e)],'title':'exchange.upload','icon':_0x6ca8e6(0x16e)};}function _0x4de4f6(){const _0x405157=_0x7c3fde;return{'id':_0x366153['id'],'type':_0x5b8c94[_0x405157(0x160)][_0x405157(0x15e)],'title':'exchange.download','icon':_0x405157(0x1a0)};}const _0x4725f7={[_0x5b8c94['RibbonStartGroup'][_0x7c3fde(0x16d)]]:{[_0x447d05]:{'order':0.3,'menuItemFactory':_0x439109,[_0x1f826d['id']]:{'order':0x0,'menuItemFactory':_0x67f1e5},[_0x366153['id']]:{'order':0x1,'menuItemFactory':_0x4de4f6}}}};var _0x3b9e7e=Object[_0x7c3fde(0x185)],_0x51042f=(_0x59bb3c,_0x34742a,_0x5e3fe7,_0x1384f8)=>{for(var _0x5215eb=_0x1384f8>0x1?void 0x0:_0x1384f8?_0x3b9e7e(_0x34742a,_0x5e3fe7):_0x34742a,_0x28754c=_0x59bb3c['length']-0x1,_0x8f7e65;_0x28754c>=0x0;_0x28754c--)(_0x8f7e65=_0x59bb3c[_0x28754c])&&(_0x5215eb=_0x8f7e65(_0x5215eb)||_0x5215eb);return _0x5215eb;},_0x123e51=(_0x33d3fd,_0x1f392a)=>(_0x47b3b0,_0xc82e4)=>_0x1f392a(_0x47b3b0,_0xc82e4,_0x33d3fd);let _0x5ae2f6=class extends _0x30ee7b[_0x7c3fde(0x182)]{constructor(_0x25e1df,_0xd4e069){const _0x1531b2=_0x7c3fde;super(),this[_0x1531b2(0x1a3)]=_0x25e1df,this[_0x1531b2(0x1a1)]=_0xd4e069,this['_initCommands'](),this['_initMenus']();}[_0x7c3fde(0x175)](){const _0x5556fb=_0x7c3fde;[_0x1f826d,_0x366153][_0x5556fb(0x15b)](_0x571188=>{const _0x13b5c1=_0x5556fb;this[_0x13b5c1(0x1a2)](this[_0x13b5c1(0x1a3)][_0x13b5c1(0x189)](_0x571188));});}['_initMenus'](){const _0x214214=_0x7c3fde;this[_0x214214(0x1a1)]['mergeMenu'](_0x4725f7);}};_0x5ae2f6=_0x51042f([_0x123e51(0x0,_0x30ee7b[_0x7c3fde(0x17e)]),_0x123e51(0x1,_0x5b8c94[_0x7c3fde(0x173)])],_0x5ae2f6);var _0x5321c2=Object['defineProperty'],_0x5ac5c9=Object[_0x7c3fde(0x185)],_0x2520f7=(_0x3b3407,_0x1e4111,_0x5c210e)=>_0x1e4111 in _0x3b3407?_0x5321c2(_0x3b3407,_0x1e4111,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c210e}):_0x3b3407[_0x1e4111]=_0x5c210e,_0x12720d=(_0x32cad3,_0x46f8a4,_0x850416,_0x371e3d)=>{for(var _0x51623e=_0x371e3d>0x1?void 0x0:_0x371e3d?_0x5ac5c9(_0x46f8a4,_0x850416):_0x46f8a4,_0x42c830=_0x32cad3['length']-0x1,_0x1e104c;_0x42c830>=0x0;_0x42c830--)(_0x1e104c=_0x32cad3[_0x42c830])&&(_0x51623e=_0x1e104c(_0x51623e)||_0x51623e);return _0x51623e;},_0x474317=(_0x78844,_0x3a074e)=>(_0x45e977,_0x27a123)=>_0x3a074e(_0x45e977,_0x27a123,_0x78844),_0x3d0c98=(_0x67dafa,_0x6a7e7c,_0x17059a)=>_0x2520f7(_0x67dafa,typeof _0x6a7e7c!=_0x7c3fde(0x197)?_0x6a7e7c+'':_0x6a7e7c,_0x17059a);const _0x5e904d=_0x7c3fde(0x16c);_0x4a34af[_0x7c3fde(0x165)]=class extends _0x30ee7b[_0x7c3fde(0x15f)]{constructor(_0x5cb8cf=_0x4dbcda,_0x3c6a89,_0xac7bc2){const _0x265b37=_0x7c3fde;super(),this[_0x265b37(0x19a)]=_0x5cb8cf,this['_injector']=_0x3c6a89,this[_0x265b37(0x15d)]=_0xac7bc2;const {menu:_0x5439c8,..._0x49b3f9}=_0x30ee7b['merge']({},_0x4dbcda,this[_0x265b37(0x19a)]);_0x5439c8&&this[_0x265b37(0x15d)]['setConfig'](_0x265b37(0x17f),_0x5439c8,{'merge':!0x0}),this[_0x265b37(0x15d)][_0x265b37(0x179)](_0x48e708,_0x49b3f9);}[_0x7c3fde(0x17b)](){const _0x47193c=_0x7c3fde;[[_0x5ae2f6]][_0x47193c(0x15b)](_0x126388=>this[_0x47193c(0x16b)][_0x47193c(0x18f)](_0x126388));}[_0x7c3fde(0x191)](){const _0x19d6f6=_0x7c3fde;this[_0x19d6f6(0x16b)][_0x19d6f6(0x193)](_0x5ae2f6);}},_0x3d0c98(_0x4a34af[_0x7c3fde(0x165)],'pluginName',_0x5e904d),_0x3d0c98(_0x4a34af['UniverSheetsExchangeClientPlugin'],_0x7c3fde(0x164),_0x30ee7b[_0x7c3fde(0x18c)][_0x7c3fde(0x1a5)]),_0x4a34af[_0x7c3fde(0x165)]=_0x12720d([_0x30ee7b[_0x7c3fde(0x161)](_0x4b4e88['UniverExchangeClientPlugin']),_0x474317(0x1,_0x30ee7b[_0x7c3fde(0x17d)](_0x30ee7b['Injector'])),_0x474317(0x2,_0x30ee7b[_0x7c3fde(0x16a)])],_0x4a34af[_0x7c3fde(0x165)]),_0x4a34af['ExportXLSXOperation']=_0x366153,_0x4a34af[_0x7c3fde(0x184)]=_0x1f826d,Object[_0x7c3fde(0x19b)](_0x4a34af,Symbol[_0x7c3fde(0x180)],{'value':_0x7c3fde(0x178)});}));function _0x17e7(_0x1df289,_0x5c3a83){const _0x2a1f2c=_0x2a1f();return _0x17e7=function(_0x17e78a,_0x4947b5){_0x17e78a=_0x17e78a-0x157;let _0x26ebe1=_0x2a1f2c[_0x17e78a];return _0x26ebe1;},_0x17e7(_0x1df289,_0x5c3a83);}function _0x2a1f(){const _0x4cb014=['DependentOn','12cdNfUF','function','type','UniverSheetsExchangeClientPlugin','IExchangeOperateService','getMenuHiddenObservable','exchange-client.operation.import-xlsx','UniverSheetsUi','IConfigService','_injector','SHEET_EXCHANGE_CLIENT_PLUGIN','OTHERS','FolderIcon','UniverSheets','search','sheets-exchange-client.config','object','IMenuManagerService','2090yQuqmu','_initCommands','amd','@univerjs/core','Module','setConfig','exports','onStarting','exportXLSXByUnitId','Inject','ICommandService','menu','toStringTag','CommandType','Disposable','1478743BphEis','ImportXLSXOperation','getOwnPropertyDescriptor','UniverUi','exchange-client.operation.export-xlsx','@univerjs/ui','registerCommand','getCurrentRangeDisable$','exportXLSXBySnapshot','UniverInstanceType','6ktsIBq','@univerjs/sheets','add','SUBITEMS','onReady','6712706yTKhhv','get','853055PYczTv','UniverProSheetsExchangeClient','DirectExportIcon','symbol','sheets-exchange-client.operation.exchange','84HnGbSc','_config','defineProperty','34716lXAfhh','5888040OGLqwQ','30vLIJZg','unit','ExportIcon','_menuManagerService','disposeWithMe','_commandService','exchange.file','UNIVER_SHEET','287222uUzajb','31163XAgGyP','UniverCore','UniverProExchangeClient','forEach','9KyKSJx','_configService','BUTTON','Plugin','MenuItemType'];_0x2a1f=function(){return _0x4cb014;};return _0x2a1f();}
1
+ (function(_0x422a38,_0x475a72){const _0x5d0156=_0x1008,_0xa40aff=_0x422a38();while(!![]){try{const _0x16d0e4=-parseInt(_0x5d0156(0x1b3))/0x1+-parseInt(_0x5d0156(0x1d1))/0x2*(parseInt(_0x5d0156(0x1c2))/0x3)+parseInt(_0x5d0156(0x1d3))/0x4+-parseInt(_0x5d0156(0x1c4))/0x5*(parseInt(_0x5d0156(0x1f8))/0x6)+-parseInt(_0x5d0156(0x1e3))/0x7*(-parseInt(_0x5d0156(0x1b9))/0x8)+-parseInt(_0x5d0156(0x1f4))/0x9+parseInt(_0x5d0156(0x1c6))/0xa;if(_0x16d0e4===_0x475a72)break;else _0xa40aff['push'](_0xa40aff['shift']());}catch(_0xc02541){_0xa40aff['push'](_0xa40aff['shift']());}}}(_0x21b4,0x4997a),function(_0x3574f7,_0x1aa2cb){const _0x1a0bcb=_0x1008;typeof exports=='object'&&typeof module<'u'?_0x1aa2cb(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x1a0bcb(0x1cd)&&define[_0x1a0bcb(0x1dd)]?define(['exports',_0x1a0bcb(0x1d7),'@univerjs/core','@univerjs/ui',_0x1a0bcb(0x1ef),_0x1a0bcb(0x1d8)],_0x1aa2cb):(_0x3574f7=typeof globalThis<'u'?globalThis:_0x3574f7||self,_0x1aa2cb(_0x3574f7[_0x1a0bcb(0x1c8)]={},_0x3574f7[_0x1a0bcb(0x1f0)],_0x3574f7['UniverCore'],_0x3574f7['UniverUi'],_0x3574f7[_0x1a0bcb(0x1b7)],_0x3574f7[_0x1a0bcb(0x1f3)]));}(this,function(_0x3f5d90,_0x33d98b,_0x319a3e,_0x45f4cf,_0x71fd62,_0x5f143e){'use strict';const _0x5eb843=_0x1008;const _0x168093={'id':_0x5eb843(0x1ff),'type':_0x319a3e[_0x5eb843(0x1ec)][_0x5eb843(0x1be)],'handler':async _0x12d116=>{const _0x47182a=_0x5eb843,_0x1d2c8d=_0x12d116['get'](_0x33d98b[_0x47182a(0x1cb)]);return new URLSearchParams(location[_0x47182a(0x1df)])[_0x47182a(0x1e2)]('unit')?_0x1d2c8d[_0x47182a(0x1cf)]():_0x1d2c8d[_0x47182a(0x1fe)](),!0x0;}},_0x99682={'id':_0x5eb843(0x1e0),'type':_0x319a3e[_0x5eb843(0x1ec)]['OPERATION'],'handler':async _0x4569a5=>{const _0x314793=_0x5eb843,_0x2cf347=_0x4569a5['get'](_0x33d98b[_0x314793(0x1cb)]);return new URLSearchParams(location[_0x314793(0x1df)])[_0x314793(0x1e2)](_0x314793(0x1d0))?_0x2cf347[_0x314793(0x1ba)]():_0x2cf347['exportXLSXBySnapshot'](),!0x0;}},_0x4a5191='sheets-exchange-client.config',_0x3ec617={},_0x3eb9d3='sheets-exchange-client.operation.exchange';function _0x1cab14(_0x54b8f1){const _0x2ac7ed=_0x5eb843;return{'id':_0x3eb9d3,'type':_0x45f4cf[_0x2ac7ed(0x1b8)][_0x2ac7ed(0x1e8)],'icon':_0x2ac7ed(0x1b4),'tooltip':_0x2ac7ed(0x1e4),'hidden$':_0x45f4cf[_0x2ac7ed(0x1d2)](_0x54b8f1,_0x319a3e[_0x2ac7ed(0x1f6)]['UNIVER_SHEET']),'disabled$':_0x5f143e[_0x2ac7ed(0x1c3)](_0x54b8f1,{'workbookTypes':[_0x71fd62['WorkbookExportPermission']]})};}function _0x56d90(){const _0x4d2053=_0x5eb843;return{'id':_0x168093['id'],'type':_0x45f4cf[_0x4d2053(0x1b8)][_0x4d2053(0x1f9)],'title':_0x4d2053(0x1bc),'icon':_0x4d2053(0x1fb)};}function _0x5db1cd(){const _0x145cd3=_0x5eb843;return{'id':_0x99682['id'],'type':_0x45f4cf[_0x145cd3(0x1b8)][_0x145cd3(0x1f9)],'title':_0x145cd3(0x1e7),'icon':'ExportIcon'};}const _0x453c01={[_0x45f4cf[_0x5eb843(0x1dc)]['OTHERS']]:{[_0x3eb9d3]:{'order':0.3,'menuItemFactory':_0x1cab14,[_0x168093['id']]:{'order':0x0,'menuItemFactory':_0x56d90},[_0x99682['id']]:{'order':0x1,'menuItemFactory':_0x5db1cd}}}};var _0x554043=Object[_0x5eb843(0x1d4)],_0x4411d2=(_0x297d0c,_0x570946,_0x324d4e,_0x4c4d62)=>{const _0x3e62b5=_0x5eb843;for(var _0x40ad29=_0x4c4d62>0x1?void 0x0:_0x4c4d62?_0x554043(_0x570946,_0x324d4e):_0x570946,_0x36ca7e=_0x297d0c[_0x3e62b5(0x1c5)]-0x1,_0x4b76b6;_0x36ca7e>=0x0;_0x36ca7e--)(_0x4b76b6=_0x297d0c[_0x36ca7e])&&(_0x40ad29=_0x4b76b6(_0x40ad29)||_0x40ad29);return _0x40ad29;},_0xf4966a=(_0x53631b,_0x66166d)=>(_0x140333,_0x31acaf)=>_0x66166d(_0x140333,_0x31acaf,_0x53631b);let _0x4fb606=class extends _0x319a3e[_0x5eb843(0x1bd)]{constructor(_0x1646be,_0x370346){const _0x5ce61b=_0x5eb843;super(),this[_0x5ce61b(0x1e9)]=_0x1646be,this[_0x5ce61b(0x1de)]=_0x370346,this[_0x5ce61b(0x1f7)](),this[_0x5ce61b(0x1ed)]();}[_0x5eb843(0x1f7)](){const _0x729e0b=_0x5eb843;[_0x168093,_0x99682][_0x729e0b(0x1b6)](_0x4f88f3=>{const _0x3c066e=_0x729e0b;this[_0x3c066e(0x1db)](this[_0x3c066e(0x1e9)][_0x3c066e(0x1ce)](_0x4f88f3));});}[_0x5eb843(0x1ed)](){const _0x22c535=_0x5eb843;this['_menuManagerService'][_0x22c535(0x1cc)](_0x453c01);}};_0x4fb606=_0x4411d2([_0xf4966a(0x0,_0x319a3e[_0x5eb843(0x1da)]),_0xf4966a(0x1,_0x45f4cf['IMenuManagerService'])],_0x4fb606);var _0x1d301b=Object[_0x5eb843(0x1f5)],_0x5e2f6d=Object[_0x5eb843(0x1d4)],_0x279747=(_0x26d97d,_0x5cc6b3,_0x2f720d)=>_0x5cc6b3 in _0x26d97d?_0x1d301b(_0x26d97d,_0x5cc6b3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f720d}):_0x26d97d[_0x5cc6b3]=_0x2f720d,_0x51bdf0=(_0x26dd6b,_0x24151e,_0x440bfd,_0x3b06f9)=>{for(var _0x179e44=_0x3b06f9>0x1?void 0x0:_0x3b06f9?_0x5e2f6d(_0x24151e,_0x440bfd):_0x24151e,_0x1ca807=_0x26dd6b['length']-0x1,_0x247fc6;_0x1ca807>=0x0;_0x1ca807--)(_0x247fc6=_0x26dd6b[_0x1ca807])&&(_0x179e44=_0x247fc6(_0x179e44)||_0x179e44);return _0x179e44;},_0x4c383c=(_0x51e17c,_0x5f3ef4)=>(_0x1ae748,_0x568ed4)=>_0x5f3ef4(_0x1ae748,_0x568ed4,_0x51e17c),_0x26e03f=(_0x4d22dc,_0x328196,_0x318ace)=>_0x279747(_0x4d22dc,typeof _0x328196!=_0x5eb843(0x1eb)?_0x328196+'':_0x328196,_0x318ace);const _0x45b86d=_0x5eb843(0x1c9);_0x3f5d90[_0x5eb843(0x1d9)]=class extends _0x319a3e[_0x5eb843(0x1fc)]{constructor(_0x3596ef=_0x3ec617,_0x481369,_0x1929ed){const _0x289a5f=_0x5eb843;super(),this['_config']=_0x3596ef,this[_0x289a5f(0x1fa)]=_0x481369,this[_0x289a5f(0x1d5)]=_0x1929ed;const {menu:_0x5f0f12,..._0x25721a}=_0x319a3e[_0x289a5f(0x1fd)]({},_0x3ec617,this[_0x289a5f(0x1bf)]);_0x5f0f12&&this[_0x289a5f(0x1d5)][_0x289a5f(0x1ca)]('menu',_0x5f0f12,{'merge':!0x0}),this[_0x289a5f(0x1d5)][_0x289a5f(0x1ca)](_0x4a5191,_0x25721a);}[_0x5eb843(0x1e5)](){const _0x475337=_0x5eb843;[[_0x4fb606]]['forEach'](_0xf5468d=>this[_0x475337(0x1fa)][_0x475337(0x1f1)](_0xf5468d));}[_0x5eb843(0x1d6)](){const _0x5a108d=_0x5eb843;this[_0x5a108d(0x1fa)][_0x5a108d(0x1e2)](_0x4fb606);}},_0x26e03f(_0x3f5d90[_0x5eb843(0x1d9)],_0x5eb843(0x1ea),_0x45b86d),_0x26e03f(_0x3f5d90[_0x5eb843(0x1d9)],_0x5eb843(0x1c7),_0x319a3e[_0x5eb843(0x1f6)][_0x5eb843(0x1c0)]),_0x3f5d90[_0x5eb843(0x1d9)]=_0x51bdf0([_0x319a3e[_0x5eb843(0x1bb)](_0x33d98b['UniverExchangeClientPlugin']),_0x4c383c(0x1,_0x319a3e[_0x5eb843(0x1c1)](_0x319a3e[_0x5eb843(0x1f2)])),_0x4c383c(0x2,_0x319a3e['IConfigService'])],_0x3f5d90['UniverSheetsExchangeClientPlugin']),_0x3f5d90[_0x5eb843(0x1b5)]=_0x99682,_0x3f5d90[_0x5eb843(0x1ee)]=_0x168093,Object['defineProperty'](_0x3f5d90,Symbol[_0x5eb843(0x1e6)],{'value':_0x5eb843(0x1e1)});}));function _0x1008(_0x48506e,_0x3b1266){const _0x21b404=_0x21b4();return _0x1008=function(_0x1008ec,_0x507fcd){_0x1008ec=_0x1008ec-0x1b3;let _0x294591=_0x21b404[_0x1008ec];return _0x294591;},_0x1008(_0x48506e,_0x3b1266);}function _0x21b4(){const _0xd88fe1=['MenuItemType','776jjFszo','exportXLSXByUnitId','DependentOn','exchange.upload','Disposable','OPERATION','_config','UNIVER_SHEET','Inject','318WYOYGB','getCurrentRangeDisable$','89275pfdOUV','length','6315820EtGuVp','type','UniverProSheetsExchangeClient','SHEET_EXCHANGE_CLIENT_PLUGIN','setConfig','IExchangeOperateService','mergeMenu','function','registerCommand','importXLSXToUnitId','unit','6854qtRbRG','getMenuHiddenObservable','224748BdgqmO','getOwnPropertyDescriptor','_configService','onReady','@univerjs-pro/exchange-client','@univerjs/sheets-ui','UniverSheetsExchangeClientPlugin','ICommandService','disposeWithMe','RibbonStartGroup','amd','_menuManagerService','search','exchange-client.operation.export-xlsx','Module','get','28854lqHtFR','exchange.file','onStarting','toStringTag','exchange.download','SUBITEMS','_commandService','pluginName','symbol','CommandType','_initMenus','ImportXLSXOperation','@univerjs/sheets','UniverProExchangeClient','add','Injector','UniverSheetsUi','1359072yCaqRa','defineProperty','UniverInstanceType','_initCommands','6bOWqrK','BUTTON','_injector','FolderIcon','Plugin','merge','importXLSXToSnapshot','exchange-client.operation.import-xlsx','254044JhtQTL','DirectExportIcon','ExportXLSXOperation','forEach','UniverSheets'];_0x21b4=function(){return _0xd88fe1;};return _0x21b4();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.10.9",
3
+ "version": "0.10.10-experimental.20251016-33b0941",
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.10.9",
46
- "@univerjs/core": "0.10.9",
47
- "@univerjs/sheets": "0.10.9",
48
- "@univerjs/sheets-ui": "0.10.9",
49
- "@univerjs/ui": "0.10.9"
45
+ "@univerjs-pro/exchange-client": "0.10.10-experimental.20251016-33b0941",
46
+ "@univerjs/sheets": "0.10.10-experimental.20251016-33b0941",
47
+ "@univerjs/sheets-ui": "0.10.10-experimental.20251016-33b0941",
48
+ "@univerjs/core": "0.10.10-experimental.20251016-33b0941",
49
+ "@univerjs/ui": "0.10.10-experimental.20251016-33b0941"
50
50
  },
51
51
  "devDependencies": {
52
- "typescript": "^5.9.2",
53
- "vite": "^7.1.3",
52
+ "typescript": "^5.9.3",
53
+ "vite": "^7.1.10",
54
54
  "vitest": "^3.2.4",
55
- "@univerjs-infra/shared": "0.10.9"
55
+ "@univerjs-infra/shared": "0.10.10"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run",