@univerjs-pro/sheets-exchange-client 0.12.4 → 0.13.0-insiders.20251216-1519cb7

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 _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;
1
+ 'use strict';const _0x530474=_0x18c7;(function(_0x554fa5,_0x187778){const _0x27bcc8=_0x18c7,_0x36ea8e=_0x554fa5();while(!![]){try{const _0x2029ef=-parseInt(_0x27bcc8(0x186))/0x1*(parseInt(_0x27bcc8(0x1a6))/0x2)+-parseInt(_0x27bcc8(0x18a))/0x3+parseInt(_0x27bcc8(0x19f))/0x4+-parseInt(_0x27bcc8(0x198))/0x5+parseInt(_0x27bcc8(0x1b4))/0x6*(parseInt(_0x27bcc8(0x1b0))/0x7)+parseInt(_0x27bcc8(0x1aa))/0x8*(-parseInt(_0x27bcc8(0x1a0))/0x9)+parseInt(_0x27bcc8(0x1a5))/0xa;if(_0x2029ef===_0x187778)break;else _0x36ea8e['push'](_0x36ea8e['shift']());}catch(_0x5238a2){_0x36ea8e['push'](_0x36ea8e['shift']());}}}(_0x514d,0xabd82));Object[_0x530474(0x19a)](exports,Symbol[_0x530474(0x197)],{'value':_0x530474(0x184)});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':_0x530474(0x194),'type':i[_0x530474(0x1a2)][_0x530474(0x183)],'handler':async _0x156e1e=>{const _0x627184=_0x530474,_0x192d3e=_0x156e1e[_0x627184(0x1b8)](g[_0x627184(0x1b6)]);return new URLSearchParams(location[_0x627184(0x18e)])['get']('unit')?_0x192d3e[_0x627184(0x192)]():_0x192d3e[_0x627184(0x193)](),!0x0;}},p={'id':_0x530474(0x196),'type':i[_0x530474(0x1a2)][_0x530474(0x183)],'handler':async _0x47e577=>{const _0x337496=_0x530474,_0x131b88=_0x47e577[_0x337496(0x1b8)](g[_0x337496(0x1b6)]);return new URLSearchParams(location[_0x337496(0x18e)])[_0x337496(0x1b8)]('unit')?_0x131b88[_0x337496(0x185)]():_0x131b88['exportXLSXBySnapshot'](),!0x0;}},v=_0x530474(0x1a9),h={},S=_0x530474(0x190);function x(_0x197282){const _0x573718=_0x530474;return{'id':S,'type':c[_0x573718(0x19b)]['SUBITEMS'],'icon':'DirectExportIcon','tooltip':_0x573718(0x1ab),'hidden$':c['getMenuHiddenObservable'](_0x197282,i['UniverInstanceType'][_0x573718(0x17e)]),'disabled$':I['getCurrentRangeDisable$'](_0x197282,{'workbookTypes':[_[_0x573718(0x1a7)]]})};}function _0x514d(){const _0x10a76f=['UniverInstanceType','UniverExchangeClientPlugin','setConfig','3517002VmULzD','ExportXLSXOperation','UniverSheetsExchangeClientPlugin','menu','search','onReady','sheets-exchange-client.operation.exchange','_config','importXLSXToUnitId','importXLSXToSnapshot','exchange-client.operation.import-xlsx','forEach','exchange-client.operation.export-xlsx','toStringTag','3980330yqYniE','Inject','defineProperty','MenuItemType','OTHERS','type','getOwnPropertyDescriptor','1008868kanGtk','9801vIsdVn','_initMenus','CommandType','pluginName','_initCommands','32241270MJmwpn','18TtKOQU','WorkbookExportPermission','symbol','sheets-exchange-client.config','10112llhYYL','exchange.file','_commandService','_injector','_configService','exchange.download','7883939zbdoTs','add','mergeMenu','IMenuManagerService','6hVSSFr','DependentOn','IExchangeOperateService','RibbonStartGroup','get','BUTTON','ImportXLSXOperation','merge','ExportIcon','UNIVER_SHEET','Disposable','length','SHEET_EXCHANGE_CLIENT_PLUGIN','IConfigService','OPERATION','Module','exportXLSXByUnitId','61539xFCfST'];_0x514d=function(){return _0x10a76f;};return _0x514d();}function P(){const _0x5dc49a=_0x530474;return{'id':l['id'],'type':c[_0x5dc49a(0x19b)][_0x5dc49a(0x17a)],'title':'exchange.upload','icon':'FolderIcon'};}function C(){const _0x37b093=_0x530474;return{'id':p['id'],'type':c['MenuItemType'][_0x37b093(0x17a)],'title':_0x37b093(0x1af),'icon':_0x37b093(0x17d)};}const f={[c[_0x530474(0x1b7)][_0x530474(0x19c)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x530474(0x19e)],y=(_0x14e105,_0xe8da63,_0x277211,_0x3d7c3d)=>{const _0x2dec21=_0x530474;for(var _0x5e9b1c=_0x3d7c3d>0x1?void 0x0:_0x3d7c3d?T(_0xe8da63,_0x277211):_0xe8da63,_0x38e35d=_0x14e105[_0x2dec21(0x180)]-0x1,_0x10efbc;_0x38e35d>=0x0;_0x38e35d--)(_0x10efbc=_0x14e105[_0x38e35d])&&(_0x5e9b1c=_0x10efbc(_0x5e9b1c)||_0x5e9b1c);return _0x5e9b1c;},m=(_0x3398e5,_0x56311f)=>(_0x2552e6,_0x3a874a)=>_0x56311f(_0x2552e6,_0x3a874a,_0x3398e5);let u=class extends i[_0x530474(0x17f)]{constructor(_0x4043ef,_0x4f4750){const _0x1263ba=_0x530474;super(),this[_0x1263ba(0x1ac)]=_0x4043ef,this['_menuManagerService']=_0x4f4750,this[_0x1263ba(0x1a4)](),this[_0x1263ba(0x1a1)]();}[_0x530474(0x1a4)](){const _0x1f0157=_0x530474;[l,p][_0x1f0157(0x195)](_0x122e00=>{this['disposeWithMe'](this['_commandService']['registerCommand'](_0x122e00));});}[_0x530474(0x1a1)](){const _0x585068=_0x530474;this['_menuManagerService'][_0x585068(0x1b2)](f);}};u=y([m(0x0,i['ICommandService']),m(0x1,c[_0x530474(0x1b3)])],u);var O=Object[_0x530474(0x19a)],U=Object['getOwnPropertyDescriptor'],X=(_0x3cb3f3,_0xf7b2f0,_0x5f119c)=>_0xf7b2f0 in _0x3cb3f3?O(_0x3cb3f3,_0xf7b2f0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5f119c}):_0x3cb3f3[_0xf7b2f0]=_0x5f119c,N=(_0x297e4e,_0x2f8672,_0x4bda0b,_0x382061)=>{for(var _0xe87a8f=_0x382061>0x1?void 0x0:_0x382061?U(_0x2f8672,_0x4bda0b):_0x2f8672,_0x5b327a=_0x297e4e['length']-0x1,_0x1a177a;_0x5b327a>=0x0;_0x5b327a--)(_0x1a177a=_0x297e4e[_0x5b327a])&&(_0xe87a8f=_0x1a177a(_0xe87a8f)||_0xe87a8f);return _0xe87a8f;},d=(_0x3ef824,_0x4bc25f)=>(_0x5ebf16,_0x5da221)=>_0x4bc25f(_0x5ebf16,_0x5da221,_0x3ef824),E=(_0x13ffd4,_0x401b30,_0x1ac8a7)=>X(_0x13ffd4,typeof _0x401b30!=_0x530474(0x1a8)?_0x401b30+'':_0x401b30,_0x1ac8a7);const L=_0x530474(0x181);function _0x18c7(_0xcc3ae8,_0x51ab95){_0xcc3ae8=_0xcc3ae8-0x17a;const _0x514dca=_0x514d();let _0x18c71e=_0x514dca[_0xcc3ae8];return _0x18c71e;}exports['UniverSheetsExchangeClientPlugin']=class extends i['Plugin']{constructor(_0x1e4c25=h,_0x1962be,_0x1c2e97){const _0x327a73=_0x530474;super(),this[_0x327a73(0x191)]=_0x1e4c25,this[_0x327a73(0x1ad)]=_0x1962be,this['_configService']=_0x1c2e97;const {menu:_0x24c3a1,..._0x1e3809}=i[_0x327a73(0x17c)]({},h,this[_0x327a73(0x191)]);_0x24c3a1&&this[_0x327a73(0x1ae)][_0x327a73(0x189)](_0x327a73(0x18d),_0x24c3a1,{'merge':!0x0}),this[_0x327a73(0x1ae)][_0x327a73(0x189)](v,_0x1e3809);}['onStarting'](){const _0x9cfd5c=_0x530474;[[u]]['forEach'](_0x56d7c6=>this[_0x9cfd5c(0x1ad)][_0x9cfd5c(0x1b1)](_0x56d7c6));}[_0x530474(0x18f)](){const _0x1ec295=_0x530474;this[_0x1ec295(0x1ad)][_0x1ec295(0x1b8)](u);}},E(exports[_0x530474(0x18c)],_0x530474(0x1a3),L),E(exports[_0x530474(0x18c)],_0x530474(0x19d),i[_0x530474(0x187)][_0x530474(0x17e)]),exports[_0x530474(0x18c)]=N([i[_0x530474(0x1b5)](g[_0x530474(0x188)]),d(0x1,i[_0x530474(0x199)](i['Injector'])),d(0x2,i[_0x530474(0x182)])],exports[_0x530474(0x18c)]),exports[_0x530474(0x18b)]=p,exports[_0x530474(0x17b)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
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};
1
+ const _0x4c89f1=_0x3d06;(function(_0x3a1d9c,_0x424e14){const _0x59af89=_0x3d06,_0x51cc50=_0x3a1d9c();while(!![]){try{const _0x1d021b=-parseInt(_0x59af89(0x1d5))/0x1+-parseInt(_0x59af89(0x1cd))/0x2*(-parseInt(_0x59af89(0x1dc))/0x3)+-parseInt(_0x59af89(0x1b5))/0x4*(parseInt(_0x59af89(0x1b6))/0x5)+parseInt(_0x59af89(0x1c6))/0x6+parseInt(_0x59af89(0x1d0))/0x7+-parseInt(_0x59af89(0x1db))/0x8+-parseInt(_0x59af89(0x1c8))/0x9;if(_0x1d021b===_0x424e14)break;else _0x51cc50['push'](_0x51cc50['shift']());}catch(_0x2caa29){_0x51cc50['push'](_0x51cc50['shift']());}}}(_0x3eec,0x921d8));import{IExchangeOperateService as _0x1e8496,UniverExchangeClientPlugin as _0x2a1a27}from'@univerjs-pro/exchange-client';import{CommandType as _0x2f6aa5,UniverInstanceType as _0x43e858,Disposable as _0x34909f,ICommandService as _0x2983ef,DependentOn as _0x11205e,Inject as _0x1b6225,Injector as _0x4369fc,IConfigService as _0x299f58,Plugin as _0x531524,merge as _0x1c3252}from'@univerjs/core';import{MenuItemType as _0x45c396,getMenuHiddenObservable as _0x45b7c5,RibbonStartGroup as _0x13aea5,IMenuManagerService as _0x3a4da5}from'@univerjs/ui';import{WorkbookExportPermission as _0x1884d1}from'@univerjs/sheets';function _0x3eec(){const _0x57a06f=['sheets-exchange-client.config','disposeWithMe','522658SkCKna','OPERATION','menu','get','_commandService','ExportIcon','4009000DbfIUt','3RtIerH','_injector','registerCommand','length','DirectExportIcon','search','SHEET_EXCHANGE_CLIENT_PLUGIN','exportXLSXBySnapshot','forEach','importXLSXToUnitId','unit','44740zVcgQR','165tvqUCo','FolderIcon','OTHERS','onReady','exchange-client.operation.import-xlsx','BUTTON','type','_initCommands','exchange.download','_menuManagerService','SUBITEMS','_config','getOwnPropertyDescriptor','add','exportXLSXByUnitId','symbol','7120230JZuYRn','importXLSXToSnapshot','6046938nhBbBk','onStarting','defineProperty','exchange.upload','_initMenus','969894lrEllB','setConfig','pluginName','6941242LcenJy','UNIVER_SHEET','_configService'];_0x3eec=function(){return _0x57a06f;};return _0x3eec();}import{getCurrentRangeDisable$ as _0x4ce1a2}from'@univerjs/sheets-ui';const p={'id':_0x4c89f1(0x1ba),'type':_0x2f6aa5[_0x4c89f1(0x1d6)],'handler':async _0x56a3ec=>{const _0x5d4bb4=_0x4c89f1,_0x1a03de=_0x56a3ec['get'](_0x1e8496);return new URLSearchParams(location['search'])[_0x5d4bb4(0x1d8)]('unit')?_0x1a03de[_0x5d4bb4(0x1b3)]():_0x1a03de[_0x5d4bb4(0x1c7)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x2f6aa5['OPERATION'],'handler':async _0x98e3b=>{const _0x119b5f=_0x4c89f1,_0x27c1ff=_0x98e3b[_0x119b5f(0x1d8)](_0x1e8496);return new URLSearchParams(location[_0x119b5f(0x1af)])['get'](_0x119b5f(0x1b4))?_0x27c1ff[_0x119b5f(0x1c4)]():_0x27c1ff[_0x119b5f(0x1b1)](),!0x0;}},H=_0x4c89f1(0x1d3),l={},S='sheets-exchange-client.operation.exchange';function R(_0x482023){const _0x353c17=_0x4c89f1;return{'id':S,'type':_0x45c396[_0x353c17(0x1c0)],'icon':_0x353c17(0x1ae),'tooltip':'exchange.file','hidden$':_0x45b7c5(_0x482023,_0x43e858['UNIVER_SHEET']),'disabled$':_0x4ce1a2(_0x482023,{'workbookTypes':[_0x1884d1]})};}function w(){const _0x139ea2=_0x4c89f1;return{'id':p['id'],'type':_0x45c396[_0x139ea2(0x1bb)],'title':_0x139ea2(0x1cb),'icon':_0x139ea2(0x1b7)};}function D(){const _0x2d5270=_0x4c89f1;return{'id':u['id'],'type':_0x45c396['BUTTON'],'title':_0x2d5270(0x1be),'icon':_0x2d5270(0x1da)};}const F={[_0x13aea5[_0x4c89f1(0x1b8)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x4c89f1(0x1c2)],A=(_0xb50aa6,_0x2bc3dc,_0x516352,_0x629ae7)=>{const _0x470c1c=_0x4c89f1;for(var _0x21a92d=_0x629ae7>0x1?void 0x0:_0x629ae7?G(_0x2bc3dc,_0x516352):_0x2bc3dc,_0x1a0637=_0xb50aa6[_0x470c1c(0x1ad)]-0x1,_0x3f8d06;_0x1a0637>=0x0;_0x1a0637--)(_0x3f8d06=_0xb50aa6[_0x1a0637])&&(_0x21a92d=_0x3f8d06(_0x21a92d)||_0x21a92d);return _0x21a92d;},d=(_0x5e0aa5,_0x195ec5)=>(_0x31a259,_0x36cbd8)=>_0x195ec5(_0x31a259,_0x36cbd8,_0x5e0aa5);let c=class extends _0x34909f{constructor(_0x1570fa,_0x4c899e){const _0x569057=_0x4c89f1;super(),this[_0x569057(0x1d9)]=_0x1570fa,this[_0x569057(0x1bf)]=_0x4c899e,this[_0x569057(0x1bd)](),this[_0x569057(0x1cc)]();}[_0x4c89f1(0x1bd)](){const _0x515216=_0x4c89f1;[p,u][_0x515216(0x1b2)](_0x3da2e1=>{const _0x26ca5f=_0x515216;this[_0x26ca5f(0x1d4)](this[_0x26ca5f(0x1d9)][_0x26ca5f(0x1de)](_0x3da2e1));});}[_0x4c89f1(0x1cc)](){this['_menuManagerService']['mergeMenu'](F);}};function _0x3d06(_0x4c0321,_0x474b74){_0x4c0321=_0x4c0321-0x1ad;const _0x3eec55=_0x3eec();let _0x3d0690=_0x3eec55[_0x4c0321];return _0x3d0690;}c=A([d(0x0,_0x2983ef),d(0x1,_0x3a4da5)],c);var j=Object[_0x4c89f1(0x1ca)],B=Object[_0x4c89f1(0x1c2)],$=(_0x5563be,_0x5ca69d,_0x2178d1)=>_0x5ca69d in _0x5563be?j(_0x5563be,_0x5ca69d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2178d1}):_0x5563be[_0x5ca69d]=_0x2178d1,V=(_0xe97f7b,_0x4ca389,_0x228771,_0x593e98)=>{for(var _0x2969eb=_0x593e98>0x1?void 0x0:_0x593e98?B(_0x4ca389,_0x228771):_0x4ca389,_0x37196a=_0xe97f7b['length']-0x1,_0x1c7e03;_0x37196a>=0x0;_0x37196a--)(_0x1c7e03=_0xe97f7b[_0x37196a])&&(_0x2969eb=_0x1c7e03(_0x2969eb)||_0x2969eb);return _0x2969eb;},_=(_0xdf3a79,_0x347492)=>(_0x480b04,_0x508db1)=>_0x347492(_0x480b04,_0x508db1,_0xdf3a79),I=(_0x3ffee9,_0x3a0787,_0x212798)=>$(_0x3ffee9,typeof _0x3a0787!=_0x4c89f1(0x1c5)?_0x3a0787+'':_0x3a0787,_0x212798);const W=_0x4c89f1(0x1b0);let s=class extends _0x531524{constructor(_0x58da2e=l,_0x22ff3d,_0x2d7b73){const _0xb86d6d=_0x4c89f1;super(),this[_0xb86d6d(0x1c1)]=_0x58da2e,this[_0xb86d6d(0x1dd)]=_0x22ff3d,this[_0xb86d6d(0x1d2)]=_0x2d7b73;const {menu:_0x5cab3a,..._0x57c0d9}=_0x1c3252({},l,this[_0xb86d6d(0x1c1)]);_0x5cab3a&&this[_0xb86d6d(0x1d2)][_0xb86d6d(0x1ce)](_0xb86d6d(0x1d7),_0x5cab3a,{'merge':!0x0}),this[_0xb86d6d(0x1d2)]['setConfig'](H,_0x57c0d9);}[_0x4c89f1(0x1c9)](){const _0x5a1bc7=_0x4c89f1;[[c]][_0x5a1bc7(0x1b2)](_0xac1cfd=>this[_0x5a1bc7(0x1dd)][_0x5a1bc7(0x1c3)](_0xac1cfd));}[_0x4c89f1(0x1b9)](){const _0x3e4d39=_0x4c89f1;this[_0x3e4d39(0x1dd)][_0x3e4d39(0x1d8)](c);}};I(s,_0x4c89f1(0x1cf),W),I(s,_0x4c89f1(0x1bc),_0x43e858[_0x4c89f1(0x1d1)]),s=V([_0x11205e(_0x2a1a27),_(0x1,_0x1b6225(_0x4369fc)),_(0x2,_0x299f58)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
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};
1
+ const _0x4c89f1=_0x3d06;(function(_0x3a1d9c,_0x424e14){const _0x59af89=_0x3d06,_0x51cc50=_0x3a1d9c();while(!![]){try{const _0x1d021b=-parseInt(_0x59af89(0x1d5))/0x1+-parseInt(_0x59af89(0x1cd))/0x2*(-parseInt(_0x59af89(0x1dc))/0x3)+-parseInt(_0x59af89(0x1b5))/0x4*(parseInt(_0x59af89(0x1b6))/0x5)+parseInt(_0x59af89(0x1c6))/0x6+parseInt(_0x59af89(0x1d0))/0x7+-parseInt(_0x59af89(0x1db))/0x8+-parseInt(_0x59af89(0x1c8))/0x9;if(_0x1d021b===_0x424e14)break;else _0x51cc50['push'](_0x51cc50['shift']());}catch(_0x2caa29){_0x51cc50['push'](_0x51cc50['shift']());}}}(_0x3eec,0x921d8));import{IExchangeOperateService as _0x1e8496,UniverExchangeClientPlugin as _0x2a1a27}from'@univerjs-pro/exchange-client';import{CommandType as _0x2f6aa5,UniverInstanceType as _0x43e858,Disposable as _0x34909f,ICommandService as _0x2983ef,DependentOn as _0x11205e,Inject as _0x1b6225,Injector as _0x4369fc,IConfigService as _0x299f58,Plugin as _0x531524,merge as _0x1c3252}from'@univerjs/core';import{MenuItemType as _0x45c396,getMenuHiddenObservable as _0x45b7c5,RibbonStartGroup as _0x13aea5,IMenuManagerService as _0x3a4da5}from'@univerjs/ui';import{WorkbookExportPermission as _0x1884d1}from'@univerjs/sheets';function _0x3eec(){const _0x57a06f=['sheets-exchange-client.config','disposeWithMe','522658SkCKna','OPERATION','menu','get','_commandService','ExportIcon','4009000DbfIUt','3RtIerH','_injector','registerCommand','length','DirectExportIcon','search','SHEET_EXCHANGE_CLIENT_PLUGIN','exportXLSXBySnapshot','forEach','importXLSXToUnitId','unit','44740zVcgQR','165tvqUCo','FolderIcon','OTHERS','onReady','exchange-client.operation.import-xlsx','BUTTON','type','_initCommands','exchange.download','_menuManagerService','SUBITEMS','_config','getOwnPropertyDescriptor','add','exportXLSXByUnitId','symbol','7120230JZuYRn','importXLSXToSnapshot','6046938nhBbBk','onStarting','defineProperty','exchange.upload','_initMenus','969894lrEllB','setConfig','pluginName','6941242LcenJy','UNIVER_SHEET','_configService'];_0x3eec=function(){return _0x57a06f;};return _0x3eec();}import{getCurrentRangeDisable$ as _0x4ce1a2}from'@univerjs/sheets-ui';const p={'id':_0x4c89f1(0x1ba),'type':_0x2f6aa5[_0x4c89f1(0x1d6)],'handler':async _0x56a3ec=>{const _0x5d4bb4=_0x4c89f1,_0x1a03de=_0x56a3ec['get'](_0x1e8496);return new URLSearchParams(location['search'])[_0x5d4bb4(0x1d8)]('unit')?_0x1a03de[_0x5d4bb4(0x1b3)]():_0x1a03de[_0x5d4bb4(0x1c7)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x2f6aa5['OPERATION'],'handler':async _0x98e3b=>{const _0x119b5f=_0x4c89f1,_0x27c1ff=_0x98e3b[_0x119b5f(0x1d8)](_0x1e8496);return new URLSearchParams(location[_0x119b5f(0x1af)])['get'](_0x119b5f(0x1b4))?_0x27c1ff[_0x119b5f(0x1c4)]():_0x27c1ff[_0x119b5f(0x1b1)](),!0x0;}},H=_0x4c89f1(0x1d3),l={},S='sheets-exchange-client.operation.exchange';function R(_0x482023){const _0x353c17=_0x4c89f1;return{'id':S,'type':_0x45c396[_0x353c17(0x1c0)],'icon':_0x353c17(0x1ae),'tooltip':'exchange.file','hidden$':_0x45b7c5(_0x482023,_0x43e858['UNIVER_SHEET']),'disabled$':_0x4ce1a2(_0x482023,{'workbookTypes':[_0x1884d1]})};}function w(){const _0x139ea2=_0x4c89f1;return{'id':p['id'],'type':_0x45c396[_0x139ea2(0x1bb)],'title':_0x139ea2(0x1cb),'icon':_0x139ea2(0x1b7)};}function D(){const _0x2d5270=_0x4c89f1;return{'id':u['id'],'type':_0x45c396['BUTTON'],'title':_0x2d5270(0x1be),'icon':_0x2d5270(0x1da)};}const F={[_0x13aea5[_0x4c89f1(0x1b8)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x4c89f1(0x1c2)],A=(_0xb50aa6,_0x2bc3dc,_0x516352,_0x629ae7)=>{const _0x470c1c=_0x4c89f1;for(var _0x21a92d=_0x629ae7>0x1?void 0x0:_0x629ae7?G(_0x2bc3dc,_0x516352):_0x2bc3dc,_0x1a0637=_0xb50aa6[_0x470c1c(0x1ad)]-0x1,_0x3f8d06;_0x1a0637>=0x0;_0x1a0637--)(_0x3f8d06=_0xb50aa6[_0x1a0637])&&(_0x21a92d=_0x3f8d06(_0x21a92d)||_0x21a92d);return _0x21a92d;},d=(_0x5e0aa5,_0x195ec5)=>(_0x31a259,_0x36cbd8)=>_0x195ec5(_0x31a259,_0x36cbd8,_0x5e0aa5);let c=class extends _0x34909f{constructor(_0x1570fa,_0x4c899e){const _0x569057=_0x4c89f1;super(),this[_0x569057(0x1d9)]=_0x1570fa,this[_0x569057(0x1bf)]=_0x4c899e,this[_0x569057(0x1bd)](),this[_0x569057(0x1cc)]();}[_0x4c89f1(0x1bd)](){const _0x515216=_0x4c89f1;[p,u][_0x515216(0x1b2)](_0x3da2e1=>{const _0x26ca5f=_0x515216;this[_0x26ca5f(0x1d4)](this[_0x26ca5f(0x1d9)][_0x26ca5f(0x1de)](_0x3da2e1));});}[_0x4c89f1(0x1cc)](){this['_menuManagerService']['mergeMenu'](F);}};function _0x3d06(_0x4c0321,_0x474b74){_0x4c0321=_0x4c0321-0x1ad;const _0x3eec55=_0x3eec();let _0x3d0690=_0x3eec55[_0x4c0321];return _0x3d0690;}c=A([d(0x0,_0x2983ef),d(0x1,_0x3a4da5)],c);var j=Object[_0x4c89f1(0x1ca)],B=Object[_0x4c89f1(0x1c2)],$=(_0x5563be,_0x5ca69d,_0x2178d1)=>_0x5ca69d in _0x5563be?j(_0x5563be,_0x5ca69d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2178d1}):_0x5563be[_0x5ca69d]=_0x2178d1,V=(_0xe97f7b,_0x4ca389,_0x228771,_0x593e98)=>{for(var _0x2969eb=_0x593e98>0x1?void 0x0:_0x593e98?B(_0x4ca389,_0x228771):_0x4ca389,_0x37196a=_0xe97f7b['length']-0x1,_0x1c7e03;_0x37196a>=0x0;_0x37196a--)(_0x1c7e03=_0xe97f7b[_0x37196a])&&(_0x2969eb=_0x1c7e03(_0x2969eb)||_0x2969eb);return _0x2969eb;},_=(_0xdf3a79,_0x347492)=>(_0x480b04,_0x508db1)=>_0x347492(_0x480b04,_0x508db1,_0xdf3a79),I=(_0x3ffee9,_0x3a0787,_0x212798)=>$(_0x3ffee9,typeof _0x3a0787!=_0x4c89f1(0x1c5)?_0x3a0787+'':_0x3a0787,_0x212798);const W=_0x4c89f1(0x1b0);let s=class extends _0x531524{constructor(_0x58da2e=l,_0x22ff3d,_0x2d7b73){const _0xb86d6d=_0x4c89f1;super(),this[_0xb86d6d(0x1c1)]=_0x58da2e,this[_0xb86d6d(0x1dd)]=_0x22ff3d,this[_0xb86d6d(0x1d2)]=_0x2d7b73;const {menu:_0x5cab3a,..._0x57c0d9}=_0x1c3252({},l,this[_0xb86d6d(0x1c1)]);_0x5cab3a&&this[_0xb86d6d(0x1d2)][_0xb86d6d(0x1ce)](_0xb86d6d(0x1d7),_0x5cab3a,{'merge':!0x0}),this[_0xb86d6d(0x1d2)]['setConfig'](H,_0x57c0d9);}[_0x4c89f1(0x1c9)](){const _0x5a1bc7=_0x4c89f1;[[c]][_0x5a1bc7(0x1b2)](_0xac1cfd=>this[_0x5a1bc7(0x1dd)][_0x5a1bc7(0x1c3)](_0xac1cfd));}[_0x4c89f1(0x1b9)](){const _0x3e4d39=_0x4c89f1;this[_0x3e4d39(0x1dd)][_0x3e4d39(0x1d8)](c);}};I(s,_0x4c89f1(0x1cf),W),I(s,_0x4c89f1(0x1bc),_0x43e858[_0x4c89f1(0x1d1)]),s=V([_0x11205e(_0x2a1a27),_(0x1,_0x1b6225(_0x4369fc)),_(0x2,_0x299f58)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
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)});}));
1
+ function _0x220e(_0x369891,_0x5ddb2d){_0x369891=_0x369891-0xe9;const _0x1f86c2=_0x1f86();let _0x220ea7=_0x1f86c2[_0x369891];return _0x220ea7;}function _0x1f86(){const _0x125487=['BUTTON','Inject','exchange.upload','IExchangeOperateService','1116sCYJYs','FolderIcon','UniverCore','ExportXLSXOperation','DirectExportIcon','UniverSheetsUi','_menuManagerService','_commandService','CommandType','ICommandService','593145caMqEM','OPERATION','21969yvlFMw','getCurrentRangeDisable$','@univerjs-pro/exchange-client','_initMenus','@univerjs/sheets','@univerjs/core','registerCommand','1639398oaWqVo','getMenuHiddenObservable','disposeWithMe','UniverSheets','_configService','unit','UniverInstanceType','exchange-client.operation.export-xlsx','RibbonStartGroup','setConfig','add','_config','15EFxPEc','search','function','UniverUi','DependentOn','UniverExchangeClientPlugin','importXLSXToUnitId','menu','UNIVER_SHEET','Disposable','sheets-exchange-client.operation.exchange','sheets-exchange-client.config','mergeMenu','exportXLSXBySnapshot','IConfigService','exchange.file','object','length','253ZdCQRg','type','exchange-client.operation.import-xlsx','UniverProSheetsExchangeClient','SHEET_EXCHANGE_CLIENT_PLUGIN','132873FNtUOL','ExportIcon','_injector','MenuItemType','forEach','554388nkecTM','IMenuManagerService','OTHERS','symbol','importXLSXToSnapshot','get','toStringTag','onReady','merge','Module','20kwNPbt','12442378dSgEQz','Plugin','defineProperty','@univerjs/ui','getOwnPropertyDescriptor','4310hJqSMb','exportXLSXByUnitId','9116MOXBQM','_initCommands','pluginName','amd','UniverSheetsExchangeClientPlugin','56UZftFW'];_0x1f86=function(){return _0x125487;};return _0x1f86();}(function(_0x2fb7c4,_0x2f4303){const _0x36e756=_0x220e,_0x50c06e=_0x2fb7c4();while(!![]){try{const _0xfd0d49=-parseInt(_0x36e756(0xf7))/0x1*(parseInt(_0x36e756(0x106))/0x2)+parseInt(_0x36e756(0x118))/0x3*(parseInt(_0x36e756(0x10e))/0x4)+-parseInt(_0x36e756(0x137))/0x5*(-parseInt(_0x36e756(0x12b))/0x6)+-parseInt(_0x36e756(0x122))/0x7*(parseInt(_0x36e756(0x113))/0x8)+-parseInt(_0x36e756(0x124))/0x9*(-parseInt(_0x36e756(0x10c))/0xa)+-parseInt(_0x36e756(0xf2))/0xb*(parseInt(_0x36e756(0xfc))/0xc)+parseInt(_0x36e756(0x107))/0xd;if(_0xfd0d49===_0x2f4303)break;else _0x50c06e['push'](_0x50c06e['shift']());}catch(_0x53a8a4){_0x50c06e['push'](_0x50c06e['shift']());}}}(_0x1f86,0xa8ff4),function(_0x34d585,_0x19e489){const _0x170fe7=_0x220e;typeof exports==_0x170fe7(0xf0)&&typeof module<'u'?_0x19e489(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x170fe7(0x139)&&define[_0x170fe7(0x111)]?define(['exports',_0x170fe7(0x126),_0x170fe7(0x129),_0x170fe7(0x10a),_0x170fe7(0x128),'@univerjs/sheets-ui'],_0x19e489):(_0x34d585=typeof globalThis<'u'?globalThis:_0x34d585||self,_0x19e489(_0x34d585[_0x170fe7(0xf5)]={},_0x34d585['UniverProExchangeClient'],_0x34d585[_0x170fe7(0x11a)],_0x34d585[_0x170fe7(0x13a)],_0x34d585[_0x170fe7(0x12e)],_0x34d585[_0x170fe7(0x11d)]));}(this,function(_0x3c9e3e,_0x2ab824,_0xe7e0b2,_0x2956df,_0x24cb5c,_0x1f9b13){'use strict';const _0x288ccb=_0x220e;const _0x50bb64={'id':_0x288ccb(0xf4),'type':_0xe7e0b2[_0x288ccb(0x120)][_0x288ccb(0x123)],'handler':async _0x1398be=>{const _0x3fb981=_0x288ccb,_0x404ce5=_0x1398be[_0x3fb981(0x101)](_0x2ab824['IExchangeOperateService']);return new URLSearchParams(location['search'])[_0x3fb981(0x101)](_0x3fb981(0x130))?_0x404ce5[_0x3fb981(0x13d)]():_0x404ce5[_0x3fb981(0x100)](),!0x0;}},_0x1165c7={'id':_0x288ccb(0x132),'type':_0xe7e0b2[_0x288ccb(0x120)][_0x288ccb(0x123)],'handler':async _0xb94bda=>{const _0x6de8ad=_0x288ccb,_0x4a1855=_0xb94bda['get'](_0x2ab824[_0x6de8ad(0x117)]);return new URLSearchParams(location[_0x6de8ad(0x138)])[_0x6de8ad(0x101)]('unit')?_0x4a1855[_0x6de8ad(0x10d)]():_0x4a1855[_0x6de8ad(0xed)](),!0x0;}},_0x318b21=_0x288ccb(0xeb),_0x34c4da={},_0x2855e9=_0x288ccb(0xea);function _0x4f26fb(_0x4cc6b4){const _0x1ca4f9=_0x288ccb;return{'id':_0x2855e9,'type':_0x2956df[_0x1ca4f9(0xfa)]['SUBITEMS'],'icon':_0x1ca4f9(0x11c),'tooltip':_0x1ca4f9(0xef),'hidden$':_0x2956df[_0x1ca4f9(0x12c)](_0x4cc6b4,_0xe7e0b2[_0x1ca4f9(0x131)]['UNIVER_SHEET']),'disabled$':_0x1f9b13[_0x1ca4f9(0x125)](_0x4cc6b4,{'workbookTypes':[_0x24cb5c['WorkbookExportPermission']]})};}function _0x455ec6(){const _0x43a061=_0x288ccb;return{'id':_0x50bb64['id'],'type':_0x2956df[_0x43a061(0xfa)][_0x43a061(0x114)],'title':_0x43a061(0x116),'icon':_0x43a061(0x119)};}function _0x4b071e(){const _0x52fbbd=_0x288ccb;return{'id':_0x1165c7['id'],'type':_0x2956df[_0x52fbbd(0xfa)][_0x52fbbd(0x114)],'title':'exchange.download','icon':_0x52fbbd(0xf8)};}const _0x556cef={[_0x2956df[_0x288ccb(0x133)][_0x288ccb(0xfe)]]:{[_0x2855e9]:{'order':0.3,'menuItemFactory':_0x4f26fb,[_0x50bb64['id']]:{'order':0x0,'menuItemFactory':_0x455ec6},[_0x1165c7['id']]:{'order':0x1,'menuItemFactory':_0x4b071e}}}};var _0x167840=Object[_0x288ccb(0x10b)],_0xe20571=(_0x542333,_0x359b73,_0x24c774,_0x656881)=>{const _0x24f0d8=_0x288ccb;for(var _0x4f73ce=_0x656881>0x1?void 0x0:_0x656881?_0x167840(_0x359b73,_0x24c774):_0x359b73,_0x5ce70d=_0x542333[_0x24f0d8(0xf1)]-0x1,_0x547ee0;_0x5ce70d>=0x0;_0x5ce70d--)(_0x547ee0=_0x542333[_0x5ce70d])&&(_0x4f73ce=_0x547ee0(_0x4f73ce)||_0x4f73ce);return _0x4f73ce;},_0x347ce3=(_0x4f1307,_0x25095c)=>(_0x457317,_0x41a094)=>_0x25095c(_0x457317,_0x41a094,_0x4f1307);let _0x46a32a=class extends _0xe7e0b2[_0x288ccb(0xe9)]{constructor(_0x2f8faf,_0x12bdfa){const _0x21a3c4=_0x288ccb;super(),this['_commandService']=_0x2f8faf,this[_0x21a3c4(0x11e)]=_0x12bdfa,this[_0x21a3c4(0x10f)](),this[_0x21a3c4(0x127)]();}[_0x288ccb(0x10f)](){const _0x55501c=_0x288ccb;[_0x50bb64,_0x1165c7][_0x55501c(0xfb)](_0x2d2d6c=>{const _0x128274=_0x55501c;this[_0x128274(0x12d)](this[_0x128274(0x11f)][_0x128274(0x12a)](_0x2d2d6c));});}['_initMenus'](){const _0x2bd70b=_0x288ccb;this[_0x2bd70b(0x11e)][_0x2bd70b(0xec)](_0x556cef);}};_0x46a32a=_0xe20571([_0x347ce3(0x0,_0xe7e0b2[_0x288ccb(0x121)]),_0x347ce3(0x1,_0x2956df[_0x288ccb(0xfd)])],_0x46a32a);var _0x5537d6=Object[_0x288ccb(0x109)],_0x260388=Object[_0x288ccb(0x10b)],_0x2dcc07=(_0x4e188a,_0x16ffb3,_0xd1c767)=>_0x16ffb3 in _0x4e188a?_0x5537d6(_0x4e188a,_0x16ffb3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd1c767}):_0x4e188a[_0x16ffb3]=_0xd1c767,_0x447cce=(_0x2a18b3,_0x590516,_0x1b6424,_0x469060)=>{for(var _0x337343=_0x469060>0x1?void 0x0:_0x469060?_0x260388(_0x590516,_0x1b6424):_0x590516,_0x33edff=_0x2a18b3['length']-0x1,_0x276e2a;_0x33edff>=0x0;_0x33edff--)(_0x276e2a=_0x2a18b3[_0x33edff])&&(_0x337343=_0x276e2a(_0x337343)||_0x337343);return _0x337343;},_0x1ce409=(_0x14b5ea,_0x2bf837)=>(_0x3f5cb0,_0x5119de)=>_0x2bf837(_0x3f5cb0,_0x5119de,_0x14b5ea),_0x409745=(_0x3e5df1,_0x375be9,_0x113cd7)=>_0x2dcc07(_0x3e5df1,typeof _0x375be9!=_0x288ccb(0xff)?_0x375be9+'':_0x375be9,_0x113cd7);const _0x377422=_0x288ccb(0xf6);_0x3c9e3e[_0x288ccb(0x112)]=class extends _0xe7e0b2[_0x288ccb(0x108)]{constructor(_0x34013d=_0x34c4da,_0x5b31cd,_0x3a39ee){const _0x3b65f8=_0x288ccb;super(),this[_0x3b65f8(0x136)]=_0x34013d,this[_0x3b65f8(0xf9)]=_0x5b31cd,this['_configService']=_0x3a39ee;const {menu:_0x4b0437,..._0x35cfb9}=_0xe7e0b2[_0x3b65f8(0x104)]({},_0x34c4da,this[_0x3b65f8(0x136)]);_0x4b0437&&this[_0x3b65f8(0x12f)][_0x3b65f8(0x134)](_0x3b65f8(0x13e),_0x4b0437,{'merge':!0x0}),this[_0x3b65f8(0x12f)][_0x3b65f8(0x134)](_0x318b21,_0x35cfb9);}['onStarting'](){const _0xe94875=_0x288ccb;[[_0x46a32a]][_0xe94875(0xfb)](_0x558038=>this[_0xe94875(0xf9)][_0xe94875(0x135)](_0x558038));}[_0x288ccb(0x103)](){const _0x165a05=_0x288ccb;this[_0x165a05(0xf9)]['get'](_0x46a32a);}},_0x409745(_0x3c9e3e[_0x288ccb(0x112)],_0x288ccb(0x110),_0x377422),_0x409745(_0x3c9e3e[_0x288ccb(0x112)],_0x288ccb(0xf3),_0xe7e0b2[_0x288ccb(0x131)][_0x288ccb(0x13f)]),_0x3c9e3e[_0x288ccb(0x112)]=_0x447cce([_0xe7e0b2[_0x288ccb(0x13b)](_0x2ab824[_0x288ccb(0x13c)]),_0x1ce409(0x1,_0xe7e0b2[_0x288ccb(0x115)](_0xe7e0b2['Injector'])),_0x1ce409(0x2,_0xe7e0b2[_0x288ccb(0xee)])],_0x3c9e3e['UniverSheetsExchangeClientPlugin']),_0x3c9e3e[_0x288ccb(0x11b)]=_0x1165c7,_0x3c9e3e['ImportXLSXOperation']=_0x50bb64,Object[_0x288ccb(0x109)](_0x3c9e3e,Symbol[_0x288ccb(0x102)],{'value':_0x288ccb(0x105)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.12.4",
3
+ "version": "0.13.0-insiders.20251216-1519cb7",
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/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"
45
+ "@univerjs/core": "0.13.0-insiders.20251216-1519cb7",
46
+ "@univerjs-pro/exchange-client": "0.13.0-insiders.20251216-1519cb7",
47
+ "@univerjs/sheets": "0.13.0-insiders.20251216-1519cb7",
48
+ "@univerjs/sheets-ui": "0.13.0-insiders.20251216-1519cb7",
49
+ "@univerjs/ui": "0.13.0-insiders.20251216-1519cb7"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",
53
- "vite": "^7.2.6",
53
+ "vite": "^7.2.7",
54
54
  "vitest": "^4.0.15",
55
- "@univerjs-infra/shared": "0.12.4"
55
+ "@univerjs-infra/shared": "0.13.0"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run",