@univerjs-pro/sheets-exchange-client 0.12.2-nightly.202511290732 → 0.12.2-nightly.202511290905

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 _0x23d74b=_0x11a2;(function(_0x3dfe0e,_0x1a990b){const _0x3ed596=_0x11a2,_0x3a0472=_0x3dfe0e();while(!![]){try{const _0x5360d7=parseInt(_0x3ed596(0x1d0))/0x1+parseInt(_0x3ed596(0x1b7))/0x2*(parseInt(_0x3ed596(0x1d7))/0x3)+parseInt(_0x3ed596(0x1e1))/0x4+-parseInt(_0x3ed596(0x1e6))/0x5*(-parseInt(_0x3ed596(0x1ba))/0x6)+parseInt(_0x3ed596(0x1e0))/0x7*(-parseInt(_0x3ed596(0x1cc))/0x8)+parseInt(_0x3ed596(0x1dc))/0x9+-parseInt(_0x3ed596(0x1d2))/0xa;if(_0x5360d7===_0x1a990b)break;else _0x3a0472['push'](_0x3a0472['shift']());}catch(_0x189aec){_0x3a0472['push'](_0x3a0472['shift']());}}}(_0xd140,0xc94ac));Object[_0x23d74b(0x1c8)](exports,Symbol[_0x23d74b(0x1b9)],{'value':_0x23d74b(0x1ae)});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':_0x23d74b(0x1bc),'type':i['CommandType'][_0x23d74b(0x1d5)],'handler':async _0x206512=>{const _0x3bc451=_0x23d74b,_0x10c38d=_0x206512[_0x3bc451(0x1dd)](g[_0x3bc451(0x1af)]);return new URLSearchParams(location[_0x3bc451(0x1e5)])[_0x3bc451(0x1dd)](_0x3bc451(0x1d1))?_0x10c38d['importXLSXToUnitId']():_0x10c38d['importXLSXToSnapshot'](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i[_0x23d74b(0x1b1)][_0x23d74b(0x1d5)],'handler':async _0x36de9e=>{const _0x36413=_0x23d74b,_0x2794ea=_0x36de9e[_0x36413(0x1dd)](g[_0x36413(0x1af)]);return new URLSearchParams(location[_0x36413(0x1e5)])['get'](_0x36413(0x1d1))?_0x2794ea[_0x36413(0x1c2)]():_0x2794ea[_0x36413(0x1d3)](),!0x0;}},v=_0x23d74b(0x1b0),h={},S='sheets-exchange-client.operation.exchange';function x(_0x4dd50a){const _0x2a0c67=_0x23d74b;return{'id':S,'type':c['MenuItemType'][_0x2a0c67(0x1bb)],'icon':'DirectExportIcon','tooltip':_0x2a0c67(0x1e3),'hidden$':c[_0x2a0c67(0x1ce)](_0x4dd50a,i[_0x2a0c67(0x1db)]['UNIVER_SHEET']),'disabled$':I[_0x2a0c67(0x1df)](_0x4dd50a,{'workbookTypes':[_['WorkbookExportPermission']]})};}function _0x11a2(_0x2f7085,_0x1d1744){const _0xd14050=_0xd140();return _0x11a2=function(_0x11a2aa,_0x49b33f){_0x11a2aa=_0x11a2aa-0x1ad;let _0x5533d4=_0xd14050[_0x11a2aa];return _0x5533d4;},_0x11a2(_0x2f7085,_0x1d1744);}function P(){const _0x15baca=_0x23d74b;return{'id':l['id'],'type':c[_0x15baca(0x1bd)][_0x15baca(0x1d9)],'title':_0x15baca(0x1cd),'icon':'FolderIcon'};}function C(){const _0x317347=_0x23d74b;return{'id':p['id'],'type':c['MenuItemType'][_0x317347(0x1d9)],'title':_0x317347(0x1b3),'icon':_0x317347(0x1c9)};}const f={[c[_0x23d74b(0x1c3)][_0x23d74b(0x1cb)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x23d74b(0x1e4)],y=(_0x4227f9,_0x9dba,_0x35b7a3,_0x2fa3bd)=>{for(var _0x45b7b2=_0x2fa3bd>0x1?void 0x0:_0x2fa3bd?T(_0x9dba,_0x35b7a3):_0x9dba,_0x280fd9=_0x4227f9['length']-0x1,_0x238fc1;_0x280fd9>=0x0;_0x280fd9--)(_0x238fc1=_0x4227f9[_0x280fd9])&&(_0x45b7b2=_0x238fc1(_0x45b7b2)||_0x45b7b2);return _0x45b7b2;},m=(_0x281460,_0x50ec3a)=>(_0x1e3f63,_0xe8d01b)=>_0x50ec3a(_0x1e3f63,_0xe8d01b,_0x281460);let u=class extends i[_0x23d74b(0x1b5)]{constructor(_0x248df7,_0x961f57){const _0x50c6fa=_0x23d74b;super(),this[_0x50c6fa(0x1c0)]=_0x248df7,this[_0x50c6fa(0x1c5)]=_0x961f57,this[_0x50c6fa(0x1ca)](),this[_0x50c6fa(0x1c4)]();}[_0x23d74b(0x1ca)](){[l,p]['forEach'](_0x1d9a8b=>{const _0x415a29=_0x11a2;this[_0x415a29(0x1bf)](this[_0x415a29(0x1c0)][_0x415a29(0x1da)](_0x1d9a8b));});}['_initMenus'](){const _0x1bed6e=_0x23d74b;this[_0x1bed6e(0x1c5)]['mergeMenu'](f);}};function _0xd140(){const _0x2f2936=['exportXLSXBySnapshot','Plugin','OPERATION','_configService','158142Beocgj','_config','BUTTON','registerCommand','UniverInstanceType','13696740icZtfl','get','setConfig','getCurrentRangeDisable$','1318835iVbkjB','2598368GrTBGA','onStarting','exchange.file','getOwnPropertyDescriptor','search','1110HkFSpS','type','menu','UNIVER_SHEET','length','Module','IExchangeOperateService','sheets-exchange-client.config','CommandType','ExportXLSXOperation','exchange.download','_injector','Disposable','add','44pEWJoc','UniverSheetsExchangeClientPlugin','toStringTag','37428mXZUhD','SUBITEMS','exchange-client.operation.import-xlsx','MenuItemType','ICommandService','disposeWithMe','_commandService','Injector','exportXLSXByUnitId','RibbonStartGroup','_initMenus','_menuManagerService','onReady','IMenuManagerService','defineProperty','ExportIcon','_initCommands','OTHERS','56eyQWuw','exchange.upload','getMenuHiddenObservable','IConfigService','1069878UjzrPa','unit','36425470pGszqt'];_0xd140=function(){return _0x2f2936;};return _0xd140();}u=y([m(0x0,i[_0x23d74b(0x1be)]),m(0x1,c[_0x23d74b(0x1c7)])],u);var O=Object['defineProperty'],U=Object['getOwnPropertyDescriptor'],X=(_0x1c7d16,_0x3ea02e,_0x1b5f0c)=>_0x3ea02e in _0x1c7d16?O(_0x1c7d16,_0x3ea02e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b5f0c}):_0x1c7d16[_0x3ea02e]=_0x1b5f0c,N=(_0xf43ed6,_0x17b02a,_0x2b2972,_0x50e185)=>{const _0x3a99fd=_0x23d74b;for(var _0x3830c9=_0x50e185>0x1?void 0x0:_0x50e185?U(_0x17b02a,_0x2b2972):_0x17b02a,_0x88e11c=_0xf43ed6[_0x3a99fd(0x1ad)]-0x1,_0x1f55dc;_0x88e11c>=0x0;_0x88e11c--)(_0x1f55dc=_0xf43ed6[_0x88e11c])&&(_0x3830c9=_0x1f55dc(_0x3830c9)||_0x3830c9);return _0x3830c9;},d=(_0x29ab4d,_0x591db5)=>(_0x453f9a,_0x55f28d)=>_0x591db5(_0x453f9a,_0x55f28d,_0x29ab4d),E=(_0x1b0933,_0x3a52b7,_0x4ebbb7)=>X(_0x1b0933,typeof _0x3a52b7!='symbol'?_0x3a52b7+'':_0x3a52b7,_0x4ebbb7);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports['UniverSheetsExchangeClientPlugin']=class extends i[_0x23d74b(0x1d4)]{constructor(_0x17a62f=h,_0xbfc7b7,_0x5e86d2){const _0x2bf926=_0x23d74b;super(),this[_0x2bf926(0x1d8)]=_0x17a62f,this['_injector']=_0xbfc7b7,this['_configService']=_0x5e86d2;const {menu:_0xb08c4b,..._0x54fbcc}=i['merge']({},h,this[_0x2bf926(0x1d8)]);_0xb08c4b&&this[_0x2bf926(0x1d6)][_0x2bf926(0x1de)](_0x2bf926(0x1e8),_0xb08c4b,{'merge':!0x0}),this[_0x2bf926(0x1d6)][_0x2bf926(0x1de)](v,_0x54fbcc);}[_0x23d74b(0x1e2)](){const _0xf01560=_0x23d74b;[[u]]['forEach'](_0x2164c9=>this[_0xf01560(0x1b4)][_0xf01560(0x1b6)](_0x2164c9));}[_0x23d74b(0x1c6)](){const _0x638f4=_0x23d74b;this['_injector'][_0x638f4(0x1dd)](u);}},E(exports[_0x23d74b(0x1b8)],'pluginName',L),E(exports[_0x23d74b(0x1b8)],_0x23d74b(0x1e7),i[_0x23d74b(0x1db)][_0x23d74b(0x1e9)]),exports[_0x23d74b(0x1b8)]=N([i['DependentOn'](g['UniverExchangeClientPlugin']),d(0x1,i['Inject'](i[_0x23d74b(0x1c1)])),d(0x2,i[_0x23d74b(0x1cf)])],exports[_0x23d74b(0x1b8)]),exports[_0x23d74b(0x1b2)]=p,exports['ImportXLSXOperation']=l;
1
+ 'use strict';const _0x40f142=_0x2c6c;(function(_0x3211bf,_0x5ed13f){const _0x44c656=_0x2c6c,_0x11ef1e=_0x3211bf();while(!![]){try{const _0x142f28=-parseInt(_0x44c656(0x9f))/0x1+-parseInt(_0x44c656(0xbb))/0x2*(parseInt(_0x44c656(0xab))/0x3)+-parseInt(_0x44c656(0xc6))/0x4*(-parseInt(_0x44c656(0xa1))/0x5)+parseInt(_0x44c656(0x93))/0x6+parseInt(_0x44c656(0xc8))/0x7+-parseInt(_0x44c656(0x8a))/0x8+parseInt(_0x44c656(0xa7))/0x9;if(_0x142f28===_0x5ed13f)break;else _0x11ef1e['push'](_0x11ef1e['shift']());}catch(_0x5abd5e){_0x11ef1e['push'](_0x11ef1e['shift']());}}}(_0x1792,0x1cdeb));Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x40f142(0xb7)});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':_0x40f142(0xa6),'type':i['CommandType'][_0x40f142(0xc0)],'handler':async _0xf1e23f=>{const _0xc2c317=_0x40f142,_0x3a5d32=_0xf1e23f[_0xc2c317(0xc1)](g[_0xc2c317(0xad)]);return new URLSearchParams(location['search'])[_0xc2c317(0xc1)]('unit')?_0x3a5d32['importXLSXToUnitId']():_0x3a5d32['importXLSXToSnapshot'](),!0x0;}},p={'id':_0x40f142(0xb1),'type':i[_0x40f142(0xb4)][_0x40f142(0xc0)],'handler':async _0x23574b=>{const _0x327688=_0x40f142,_0x509f6b=_0x23574b[_0x327688(0xc1)](g[_0x327688(0xad)]);return new URLSearchParams(location[_0x327688(0xc3)])[_0x327688(0xc1)](_0x327688(0x8f))?_0x509f6b[_0x327688(0xc2)]():_0x509f6b[_0x327688(0xba)](),!0x0;}},v='sheets-exchange-client.config',h={},S=_0x40f142(0x97);function x(_0x5149a5){const _0x1c93ab=_0x40f142;return{'id':S,'type':c[_0x1c93ab(0xae)][_0x1c93ab(0xbf)],'icon':_0x1c93ab(0x9b),'tooltip':'exchange.file','hidden$':c[_0x1c93ab(0xb0)](_0x5149a5,i[_0x1c93ab(0x99)][_0x1c93ab(0x9d)]),'disabled$':I[_0x1c93ab(0x8c)](_0x5149a5,{'workbookTypes':[_[_0x1c93ab(0xa3)]]})};}function _0x2c6c(_0x20bbdb,_0x192070){const _0x17927d=_0x1792();return _0x2c6c=function(_0x2c6c72,_0x17ad60){_0x2c6c72=_0x2c6c72-0x8a;let _0xd0e295=_0x17927d[_0x2c6c72];return _0xd0e295;},_0x2c6c(_0x20bbdb,_0x192070);}function P(){const _0x17ae62=_0x40f142;return{'id':l['id'],'type':c[_0x17ae62(0xae)][_0x17ae62(0x9c)],'title':'exchange.upload','icon':_0x17ae62(0xbe)};}function C(){const _0x3a2671=_0x40f142;return{'id':p['id'],'type':c[_0x3a2671(0xae)][_0x3a2671(0x9c)],'title':'exchange.download','icon':_0x3a2671(0x98)};}function _0x1792(){const _0x52e731=['ImportXLSXOperation','exportXLSXBySnapshot','54sNIgBK','_config','ExportXLSXOperation','FolderIcon','SUBITEMS','OPERATION','get','exportXLSXByUnitId','search','merge','type','139852YEzYWo','disposeWithMe','171514aQBLcR','1267376ieWhxI','UniverExchangeClientPlugin','getCurrentRangeDisable$','getOwnPropertyDescriptor','forEach','unit','IConfigService','_injector','menu','709002pqesSi','Plugin','Disposable','_menuManagerService','sheets-exchange-client.operation.exchange','ExportIcon','UniverInstanceType','mergeMenu','DirectExportIcon','BUTTON','UNIVER_SHEET','RibbonStartGroup','93618uVFuUN','ICommandService','5KOOZey','_configService','WorkbookExportPermission','_commandService','UniverSheetsExchangeClientPlugin','exchange-client.operation.import-xlsx','2494278lBwgZb','onStarting','_initMenus','onReady','9387xmThqq','setConfig','IExchangeOperateService','MenuItemType','registerCommand','getMenuHiddenObservable','exchange-client.operation.export-xlsx','SHEET_EXCHANGE_CLIENT_PLUGIN','_initCommands','CommandType','DependentOn','add','Module','IMenuManagerService'];_0x1792=function(){return _0x52e731;};return _0x1792();}const f={[c[_0x40f142(0x9e)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x40f142(0x8d)],y=(_0x5ed24f,_0x185f1e,_0x5c1f53,_0x38a933)=>{for(var _0x3d2eee=_0x38a933>0x1?void 0x0:_0x38a933?T(_0x185f1e,_0x5c1f53):_0x185f1e,_0x1cdf22=_0x5ed24f['length']-0x1,_0x5dcc46;_0x1cdf22>=0x0;_0x1cdf22--)(_0x5dcc46=_0x5ed24f[_0x1cdf22])&&(_0x3d2eee=_0x5dcc46(_0x3d2eee)||_0x3d2eee);return _0x3d2eee;},m=(_0x567d51,_0x335a09)=>(_0x2f9c7c,_0x439322)=>_0x335a09(_0x2f9c7c,_0x439322,_0x567d51);let u=class extends i[_0x40f142(0x95)]{constructor(_0x3628f5,_0x5ed873){const _0x22006a=_0x40f142;super(),this[_0x22006a(0xa4)]=_0x3628f5,this['_menuManagerService']=_0x5ed873,this[_0x22006a(0xb3)](),this[_0x22006a(0xa9)]();}[_0x40f142(0xb3)](){const _0x17840c=_0x40f142;[l,p][_0x17840c(0x8e)](_0x28f977=>{const _0x2f7b0f=_0x17840c;this[_0x2f7b0f(0xc7)](this[_0x2f7b0f(0xa4)][_0x2f7b0f(0xaf)](_0x28f977));});}[_0x40f142(0xa9)](){const _0x2d4bfb=_0x40f142;this[_0x2d4bfb(0x96)][_0x2d4bfb(0x9a)](f);}};u=y([m(0x0,i[_0x40f142(0xa0)]),m(0x1,c[_0x40f142(0xb8)])],u);var O=Object['defineProperty'],U=Object['getOwnPropertyDescriptor'],X=(_0x13ae35,_0x42b23d,_0x4f5d99)=>_0x42b23d in _0x13ae35?O(_0x13ae35,_0x42b23d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4f5d99}):_0x13ae35[_0x42b23d]=_0x4f5d99,N=(_0x40f2ab,_0x132986,_0x535d75,_0x5a1311)=>{for(var _0x3c5f50=_0x5a1311>0x1?void 0x0:_0x5a1311?U(_0x132986,_0x535d75):_0x132986,_0xa9ef53=_0x40f2ab['length']-0x1,_0x59a69f;_0xa9ef53>=0x0;_0xa9ef53--)(_0x59a69f=_0x40f2ab[_0xa9ef53])&&(_0x3c5f50=_0x59a69f(_0x3c5f50)||_0x3c5f50);return _0x3c5f50;},d=(_0x4a2899,_0x5424a6)=>(_0x16b98d,_0x557eb4)=>_0x5424a6(_0x16b98d,_0x557eb4,_0x4a2899),E=(_0x8e7d15,_0x4cf367,_0x57e21e)=>X(_0x8e7d15,typeof _0x4cf367!='symbol'?_0x4cf367+'':_0x4cf367,_0x57e21e);const L=_0x40f142(0xb2);exports[_0x40f142(0xa5)]=class extends i[_0x40f142(0x94)]{constructor(_0x520a61=h,_0xbb3be1,_0x56bf12){const _0x26cba3=_0x40f142;super(),this['_config']=_0x520a61,this[_0x26cba3(0x91)]=_0xbb3be1,this[_0x26cba3(0xa2)]=_0x56bf12;const {menu:_0x15b286,..._0x4ab781}=i[_0x26cba3(0xc4)]({},h,this[_0x26cba3(0xbc)]);_0x15b286&&this[_0x26cba3(0xa2)]['setConfig'](_0x26cba3(0x92),_0x15b286,{'merge':!0x0}),this[_0x26cba3(0xa2)][_0x26cba3(0xac)](v,_0x4ab781);}[_0x40f142(0xa8)](){const _0x3e23e6=_0x40f142;[[u]]['forEach'](_0x8f8dd7=>this[_0x3e23e6(0x91)][_0x3e23e6(0xb6)](_0x8f8dd7));}[_0x40f142(0xaa)](){const _0x2b1db1=_0x40f142;this[_0x2b1db1(0x91)]['get'](u);}},E(exports[_0x40f142(0xa5)],'pluginName',L),E(exports['UniverSheetsExchangeClientPlugin'],_0x40f142(0xc5),i['UniverInstanceType'][_0x40f142(0x9d)]),exports[_0x40f142(0xa5)]=N([i[_0x40f142(0xb5)](g[_0x40f142(0x8b)]),d(0x1,i['Inject'](i['Injector'])),d(0x2,i[_0x40f142(0x90)])],exports['UniverSheetsExchangeClientPlugin']),exports[_0x40f142(0xbd)]=p,exports[_0x40f142(0xb9)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2b7992=_0x3767;(function(_0x51b2c8,_0x28ce4f){const _0x19f3d1=_0x3767,_0x4402b2=_0x51b2c8();while(!![]){try{const _0x6e510a=-parseInt(_0x19f3d1(0x136))/0x1+-parseInt(_0x19f3d1(0x123))/0x2+-parseInt(_0x19f3d1(0x11a))/0x3*(-parseInt(_0x19f3d1(0x11c))/0x4)+parseInt(_0x19f3d1(0x117))/0x5*(-parseInt(_0x19f3d1(0x12d))/0x6)+parseInt(_0x19f3d1(0x121))/0x7*(-parseInt(_0x19f3d1(0x13f))/0x8)+parseInt(_0x19f3d1(0x11f))/0x9*(parseInt(_0x19f3d1(0x134))/0xa)+parseInt(_0x19f3d1(0x13c))/0xb;if(_0x6e510a===_0x28ce4f)break;else _0x4402b2['push'](_0x4402b2['shift']());}catch(_0x1e3be7){_0x4402b2['push'](_0x4402b2['shift']());}}}(_0x5dd6,0x5eb21));import{IExchangeOperateService as _0x53988b,UniverExchangeClientPlugin as _0x338505}from'@univerjs-pro/exchange-client';import{CommandType as _0x4ad908,UniverInstanceType as _0xbfa663,Disposable as _0x170102,ICommandService as _0x2bf90a,DependentOn as _0x4ff593,Inject as _0xe2dd25,Injector as _0x4219fc,IConfigService as _0x4345c4,Plugin as _0xa1614,merge as _0x33f897}from'@univerjs/core';import{MenuItemType as _0x2972a7,getMenuHiddenObservable as _0x379c35,RibbonStartGroup as _0x1d0a53,IMenuManagerService as _0x1e2a0f}from'@univerjs/ui';import{WorkbookExportPermission as _0x3e39a7}from'@univerjs/sheets';function _0x5dd6(){const _0x330529=['exchange-client.operation.import-xlsx','getOwnPropertyDescriptor','exportXLSXBySnapshot','38810piWKXr','search','length','363LMRRRn','add','16292YTPXEP','registerCommand','_commandService','9jbgPkS','SUBITEMS','52451nScKmv','forEach','636120RXHXNb','_initMenus','onReady','pluginName','SHEET_EXCHANGE_CLIENT_PLUGIN','exchange-client.operation.export-xlsx','OTHERS','_menuManagerService','ExportIcon','type','306tBaaEA','sheets-exchange-client.config','_configService','_config','_initCommands','OPERATION','exchange.download','1235710cgqVpp','get','171192tqmUqy','defineProperty','setConfig','unit','exchange.file','BUTTON','9035719lThBHF','UNIVER_SHEET','importXLSXToSnapshot','176Uvlkik','mergeMenu','exchange.upload','_injector','FolderIcon'];_0x5dd6=function(){return _0x330529;};return _0x5dd6();}import{getCurrentRangeDisable$ as _0x291126}from'@univerjs/sheets-ui';function _0x3767(_0x347354,_0x53f586){const _0x5dd619=_0x5dd6();return _0x3767=function(_0x37674d,_0xd1d905){_0x37674d=_0x37674d-0x116;let _0x56fb3c=_0x5dd619[_0x37674d];return _0x56fb3c;},_0x3767(_0x347354,_0x53f586);}const p={'id':_0x2b7992(0x144),'type':_0x4ad908[_0x2b7992(0x132)],'handler':async _0x7ddf10=>{const _0x4f8034=_0x2b7992,_0x380e4e=_0x7ddf10[_0x4f8034(0x135)](_0x53988b);return new URLSearchParams(location[_0x4f8034(0x118)])['get'](_0x4f8034(0x139))?_0x380e4e['importXLSXToUnitId']():_0x380e4e[_0x4f8034(0x13e)](),!0x0;}},u={'id':_0x2b7992(0x128),'type':_0x4ad908['OPERATION'],'handler':async _0x2ebd8e=>{const _0x290f7b=_0x2b7992,_0x3c59ce=_0x2ebd8e[_0x290f7b(0x135)](_0x53988b);return new URLSearchParams(location[_0x290f7b(0x118)])[_0x290f7b(0x135)]('unit')?_0x3c59ce['exportXLSXByUnitId']():_0x3c59ce[_0x290f7b(0x116)](),!0x0;}},H=_0x2b7992(0x12e),l={},S='sheets-exchange-client.operation.exchange';function R(_0x281888){const _0x243046=_0x2b7992;return{'id':S,'type':_0x2972a7[_0x243046(0x120)],'icon':'DirectExportIcon','tooltip':_0x243046(0x13a),'hidden$':_0x379c35(_0x281888,_0xbfa663[_0x243046(0x13d)]),'disabled$':_0x291126(_0x281888,{'workbookTypes':[_0x3e39a7]})};}function w(){const _0x3ae208=_0x2b7992;return{'id':p['id'],'type':_0x2972a7[_0x3ae208(0x13b)],'title':_0x3ae208(0x141),'icon':_0x3ae208(0x143)};}function D(){const _0x3537eb=_0x2b7992;return{'id':u['id'],'type':_0x2972a7[_0x3537eb(0x13b)],'title':_0x3537eb(0x133),'icon':_0x3537eb(0x12b)};}const F={[_0x1d0a53[_0x2b7992(0x129)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x7a04b3,_0x35f2b2,_0x40411b,_0x22f91d)=>{const _0x23d8a1=_0x2b7992;for(var _0x4551a6=_0x22f91d>0x1?void 0x0:_0x22f91d?G(_0x35f2b2,_0x40411b):_0x35f2b2,_0x3309ff=_0x7a04b3[_0x23d8a1(0x119)]-0x1,_0x22fee7;_0x3309ff>=0x0;_0x3309ff--)(_0x22fee7=_0x7a04b3[_0x3309ff])&&(_0x4551a6=_0x22fee7(_0x4551a6)||_0x4551a6);return _0x4551a6;},d=(_0x3aaed9,_0x1b22d7)=>(_0x2d2b0a,_0x20a44b)=>_0x1b22d7(_0x2d2b0a,_0x20a44b,_0x3aaed9);let c=class extends _0x170102{constructor(_0x41c37a,_0x4fcf53){const _0x28f9d5=_0x2b7992;super(),this[_0x28f9d5(0x11e)]=_0x41c37a,this['_menuManagerService']=_0x4fcf53,this[_0x28f9d5(0x131)](),this[_0x28f9d5(0x124)]();}[_0x2b7992(0x131)](){const _0x1a0886=_0x2b7992;[p,u][_0x1a0886(0x122)](_0x48c9ef=>{const _0x5d399c=_0x1a0886;this['disposeWithMe'](this['_commandService'][_0x5d399c(0x11d)](_0x48c9ef));});}['_initMenus'](){const _0x33d036=_0x2b7992;this[_0x33d036(0x12a)][_0x33d036(0x140)](F);}};c=A([d(0x0,_0x2bf90a),d(0x1,_0x1e2a0f)],c);var j=Object[_0x2b7992(0x137)],B=Object[_0x2b7992(0x145)],$=(_0x5ae6c0,_0x2ba7ca,_0x29049e)=>_0x2ba7ca in _0x5ae6c0?j(_0x5ae6c0,_0x2ba7ca,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29049e}):_0x5ae6c0[_0x2ba7ca]=_0x29049e,V=(_0x497941,_0x17ce69,_0x282607,_0x116562)=>{for(var _0x385fcb=_0x116562>0x1?void 0x0:_0x116562?B(_0x17ce69,_0x282607):_0x17ce69,_0x59ea5f=_0x497941['length']-0x1,_0x4006cd;_0x59ea5f>=0x0;_0x59ea5f--)(_0x4006cd=_0x497941[_0x59ea5f])&&(_0x385fcb=_0x4006cd(_0x385fcb)||_0x385fcb);return _0x385fcb;},_=(_0x2a57e2,_0x40168b)=>(_0x17a0d5,_0x2dfdf2)=>_0x40168b(_0x17a0d5,_0x2dfdf2,_0x2a57e2),I=(_0x51ba28,_0x3e231f,_0x3b9262)=>$(_0x51ba28,typeof _0x3e231f!='symbol'?_0x3e231f+'':_0x3e231f,_0x3b9262);const W=_0x2b7992(0x127);let s=class extends _0xa1614{constructor(_0x44521f=l,_0x35c73a,_0x3837af){const _0x312e52=_0x2b7992;super(),this['_config']=_0x44521f,this[_0x312e52(0x142)]=_0x35c73a,this[_0x312e52(0x12f)]=_0x3837af;const {menu:_0x1ac89d,..._0x46e403}=_0x33f897({},l,this[_0x312e52(0x130)]);_0x1ac89d&&this[_0x312e52(0x12f)][_0x312e52(0x138)]('menu',_0x1ac89d,{'merge':!0x0}),this[_0x312e52(0x12f)]['setConfig'](H,_0x46e403);}['onStarting'](){const _0x3dc969=_0x2b7992;[[c]][_0x3dc969(0x122)](_0xd4416b=>this[_0x3dc969(0x142)][_0x3dc969(0x11b)](_0xd4416b));}[_0x2b7992(0x125)](){const _0xea47a3=_0x2b7992;this[_0xea47a3(0x142)][_0xea47a3(0x135)](c);}};I(s,_0x2b7992(0x126),W),I(s,_0x2b7992(0x12c),_0xbfa663['UNIVER_SHEET']),s=V([_0x4ff593(_0x338505),_(0x1,_0xe2dd25(_0x4219fc)),_(0x2,_0x4345c4)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0xf3ffb2=_0x35fa;(function(_0xf3f807,_0x2ca0dc){const _0x53d0de=_0x35fa,_0x3fde52=_0xf3f807();while(!![]){try{const _0x49f940=parseInt(_0x53d0de(0xe9))/0x1+parseInt(_0x53d0de(0xf9))/0x2+parseInt(_0x53d0de(0xe6))/0x3*(-parseInt(_0x53d0de(0x107))/0x4)+parseInt(_0x53d0de(0x102))/0x5*(parseInt(_0x53d0de(0x101))/0x6)+-parseInt(_0x53d0de(0xe4))/0x7+parseInt(_0x53d0de(0x104))/0x8*(parseInt(_0x53d0de(0xe2))/0x9)+-parseInt(_0x53d0de(0xff))/0xa;if(_0x49f940===_0x2ca0dc)break;else _0x3fde52['push'](_0x3fde52['shift']());}catch(_0x16037e){_0x3fde52['push'](_0x3fde52['shift']());}}}(_0x530c,0x9cfa4));import{IExchangeOperateService as _0x5bc4b2,UniverExchangeClientPlugin as _0x57c841}from'@univerjs-pro/exchange-client';import{CommandType as _0x1dce1f,UniverInstanceType as _0x56b84c,Disposable as _0x48bbce,ICommandService as _0x3e6c16,DependentOn as _0x863d94,Inject as _0x1a6738,Injector as _0x290128,IConfigService as _0x9e3174,Plugin as _0x156b35,merge as _0x340111}from'@univerjs/core';import{MenuItemType as _0x4ecf14,getMenuHiddenObservable as _0x345077,RibbonStartGroup as _0x5aaf7f,IMenuManagerService as _0x1da4df}from'@univerjs/ui';import{WorkbookExportPermission as _0x6772dd}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x425cab}from'@univerjs/sheets-ui';const p={'id':_0xf3ffb2(0xf3),'type':_0x1dce1f[_0xf3ffb2(0xe8)],'handler':async _0x2fd384=>{const _0x77cc37=_0xf3ffb2,_0x17ae98=_0x2fd384[_0x77cc37(0x106)](_0x5bc4b2);return new URLSearchParams(location[_0x77cc37(0x10d)])['get'](_0x77cc37(0xfa))?_0x17ae98['importXLSXToUnitId']():_0x17ae98[_0x77cc37(0xf5)](),!0x0;}},u={'id':_0xf3ffb2(0xe3),'type':_0x1dce1f[_0xf3ffb2(0xe8)],'handler':async _0x244edf=>{const _0x5e246f=_0xf3ffb2,_0x4b405b=_0x244edf[_0x5e246f(0x106)](_0x5bc4b2);return new URLSearchParams(location['search'])[_0x5e246f(0x106)]('unit')?_0x4b405b[_0x5e246f(0xf8)]():_0x4b405b['exportXLSXBySnapshot'](),!0x0;}},H=_0xf3ffb2(0xee),l={},S=_0xf3ffb2(0x10e);function R(_0x34aaaa){const _0x398106=_0xf3ffb2;return{'id':S,'type':_0x4ecf14[_0x398106(0xea)],'icon':_0x398106(0x110),'tooltip':_0x398106(0xf1),'hidden$':_0x345077(_0x34aaaa,_0x56b84c[_0x398106(0xf6)]),'disabled$':_0x425cab(_0x34aaaa,{'workbookTypes':[_0x6772dd]})};}function w(){const _0x551be3=_0xf3ffb2;return{'id':p['id'],'type':_0x4ecf14[_0x551be3(0xf7)],'title':'exchange.upload','icon':_0x551be3(0x10a)};}function D(){const _0x146c8e=_0xf3ffb2;return{'id':u['id'],'type':_0x4ecf14[_0x146c8e(0xf7)],'title':_0x146c8e(0x100),'icon':'ExportIcon'};}const F={[_0x5aaf7f[_0xf3ffb2(0x109)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0xf3ffb2(0xfc)],A=(_0x10ece6,_0xb5b192,_0x33e466,_0x2dd10d)=>{const _0x4aa44e=_0xf3ffb2;for(var _0x2a75b5=_0x2dd10d>0x1?void 0x0:_0x2dd10d?G(_0xb5b192,_0x33e466):_0xb5b192,_0x54c079=_0x10ece6[_0x4aa44e(0xf0)]-0x1,_0x290213;_0x54c079>=0x0;_0x54c079--)(_0x290213=_0x10ece6[_0x54c079])&&(_0x2a75b5=_0x290213(_0x2a75b5)||_0x2a75b5);return _0x2a75b5;},d=(_0xbba0da,_0x577c7f)=>(_0x459954,_0x4c0540)=>_0x577c7f(_0x459954,_0x4c0540,_0xbba0da);let c=class extends _0x48bbce{constructor(_0x3ba99c,_0x2c3977){const _0x2ead85=_0xf3ffb2;super(),this['_commandService']=_0x3ba99c,this[_0x2ead85(0x10f)]=_0x2c3977,this[_0x2ead85(0x10c)](),this[_0x2ead85(0x103)]();}['_initCommands'](){[p,u]['forEach'](_0x1d3bc8=>{const _0x1f13c5=_0x35fa;this[_0x1f13c5(0xf2)](this[_0x1f13c5(0xf4)][_0x1f13c5(0xfe)](_0x1d3bc8));});}['_initMenus'](){const _0x4d74bb=_0xf3ffb2;this[_0x4d74bb(0x10f)]['mergeMenu'](F);}};function _0x35fa(_0x175a86,_0x18f705){const _0x530ce5=_0x530c();return _0x35fa=function(_0x35fa37,_0x5d3196){_0x35fa37=_0x35fa37-0xe2;let _0xbace69=_0x530ce5[_0x35fa37];return _0xbace69;},_0x35fa(_0x175a86,_0x18f705);}c=A([d(0x0,_0x3e6c16),d(0x1,_0x1da4df)],c);var j=Object[_0xf3ffb2(0xed)],B=Object[_0xf3ffb2(0xfc)],$=(_0x561c20,_0x227038,_0x2d4182)=>_0x227038 in _0x561c20?j(_0x561c20,_0x227038,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d4182}):_0x561c20[_0x227038]=_0x2d4182,V=(_0xdff04b,_0x123cb9,_0x4be98b,_0x5c9a7e)=>{const _0x339612=_0xf3ffb2;for(var _0x250bc7=_0x5c9a7e>0x1?void 0x0:_0x5c9a7e?B(_0x123cb9,_0x4be98b):_0x123cb9,_0x5591c8=_0xdff04b[_0x339612(0xf0)]-0x1,_0x145ec7;_0x5591c8>=0x0;_0x5591c8--)(_0x145ec7=_0xdff04b[_0x5591c8])&&(_0x250bc7=_0x145ec7(_0x250bc7)||_0x250bc7);return _0x250bc7;},_=(_0x3ffb69,_0x2bced9)=>(_0x207f65,_0x1ffc8c)=>_0x2bced9(_0x207f65,_0x1ffc8c,_0x3ffb69),I=(_0x40b3d8,_0x11f5e3,_0x579ff0)=>$(_0x40b3d8,typeof _0x11f5e3!=_0xf3ffb2(0xfd)?_0x11f5e3+'':_0x11f5e3,_0x579ff0);const W=_0xf3ffb2(0xeb);let s=class extends _0x156b35{constructor(_0x5249a3=l,_0x371ace,_0x4bd10d){const _0x1a2013=_0xf3ffb2;super(),this['_config']=_0x5249a3,this[_0x1a2013(0xe5)]=_0x371ace,this[_0x1a2013(0xe7)]=_0x4bd10d;const {menu:_0x3e89ce,..._0x18b021}=_0x340111({},l,this[_0x1a2013(0x105)]);_0x3e89ce&&this[_0x1a2013(0xe7)]['setConfig'](_0x1a2013(0xfb),_0x3e89ce,{'merge':!0x0}),this[_0x1a2013(0xe7)]['setConfig'](H,_0x18b021);}[_0xf3ffb2(0x10b)](){const _0x4554ae=_0xf3ffb2;[[c]][_0x4554ae(0xec)](_0x472466=>this['_injector'][_0x4554ae(0xef)](_0x472466));}[_0xf3ffb2(0x108)](){const _0x248f23=_0xf3ffb2;this[_0x248f23(0xe5)]['get'](c);}};I(s,'pluginName',W),I(s,_0xf3ffb2(0x111),_0x56b84c[_0xf3ffb2(0xf6)]),s=V([_0x863d94(_0x57c841),_(0x1,_0x1a6738(_0x290128)),_(0x2,_0x9e3174)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};function _0x530c(){const _0x9e72f0=['exchange.file','disposeWithMe','exchange-client.operation.import-xlsx','_commandService','importXLSXToSnapshot','UNIVER_SHEET','BUTTON','exportXLSXByUnitId','1292982KVSwNY','unit','menu','getOwnPropertyDescriptor','symbol','registerCommand','17770760ulBbRT','exchange.download','6RzOhfn','3537005wmfDpA','_initMenus','2008024bppWyu','_config','get','8pDoyXQ','onReady','OTHERS','FolderIcon','onStarting','_initCommands','search','sheets-exchange-client.operation.exchange','_menuManagerService','DirectExportIcon','type','36SxRWgH','exchange-client.operation.export-xlsx','4730712eZDaYO','_injector','615744vOBiSU','_configService','OPERATION','1148464RCSMOS','SUBITEMS','SHEET_EXCHANGE_CLIENT_PLUGIN','forEach','defineProperty','sheets-exchange-client.config','add','length'];_0x530c=function(){return _0x9e72f0;};return _0x530c();}
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2b7992=_0x3767;(function(_0x51b2c8,_0x28ce4f){const _0x19f3d1=_0x3767,_0x4402b2=_0x51b2c8();while(!![]){try{const _0x6e510a=-parseInt(_0x19f3d1(0x136))/0x1+-parseInt(_0x19f3d1(0x123))/0x2+-parseInt(_0x19f3d1(0x11a))/0x3*(-parseInt(_0x19f3d1(0x11c))/0x4)+parseInt(_0x19f3d1(0x117))/0x5*(-parseInt(_0x19f3d1(0x12d))/0x6)+parseInt(_0x19f3d1(0x121))/0x7*(-parseInt(_0x19f3d1(0x13f))/0x8)+parseInt(_0x19f3d1(0x11f))/0x9*(parseInt(_0x19f3d1(0x134))/0xa)+parseInt(_0x19f3d1(0x13c))/0xb;if(_0x6e510a===_0x28ce4f)break;else _0x4402b2['push'](_0x4402b2['shift']());}catch(_0x1e3be7){_0x4402b2['push'](_0x4402b2['shift']());}}}(_0x5dd6,0x5eb21));import{IExchangeOperateService as _0x53988b,UniverExchangeClientPlugin as _0x338505}from'@univerjs-pro/exchange-client';import{CommandType as _0x4ad908,UniverInstanceType as _0xbfa663,Disposable as _0x170102,ICommandService as _0x2bf90a,DependentOn as _0x4ff593,Inject as _0xe2dd25,Injector as _0x4219fc,IConfigService as _0x4345c4,Plugin as _0xa1614,merge as _0x33f897}from'@univerjs/core';import{MenuItemType as _0x2972a7,getMenuHiddenObservable as _0x379c35,RibbonStartGroup as _0x1d0a53,IMenuManagerService as _0x1e2a0f}from'@univerjs/ui';import{WorkbookExportPermission as _0x3e39a7}from'@univerjs/sheets';function _0x5dd6(){const _0x330529=['exchange-client.operation.import-xlsx','getOwnPropertyDescriptor','exportXLSXBySnapshot','38810piWKXr','search','length','363LMRRRn','add','16292YTPXEP','registerCommand','_commandService','9jbgPkS','SUBITEMS','52451nScKmv','forEach','636120RXHXNb','_initMenus','onReady','pluginName','SHEET_EXCHANGE_CLIENT_PLUGIN','exchange-client.operation.export-xlsx','OTHERS','_menuManagerService','ExportIcon','type','306tBaaEA','sheets-exchange-client.config','_configService','_config','_initCommands','OPERATION','exchange.download','1235710cgqVpp','get','171192tqmUqy','defineProperty','setConfig','unit','exchange.file','BUTTON','9035719lThBHF','UNIVER_SHEET','importXLSXToSnapshot','176Uvlkik','mergeMenu','exchange.upload','_injector','FolderIcon'];_0x5dd6=function(){return _0x330529;};return _0x5dd6();}import{getCurrentRangeDisable$ as _0x291126}from'@univerjs/sheets-ui';function _0x3767(_0x347354,_0x53f586){const _0x5dd619=_0x5dd6();return _0x3767=function(_0x37674d,_0xd1d905){_0x37674d=_0x37674d-0x116;let _0x56fb3c=_0x5dd619[_0x37674d];return _0x56fb3c;},_0x3767(_0x347354,_0x53f586);}const p={'id':_0x2b7992(0x144),'type':_0x4ad908[_0x2b7992(0x132)],'handler':async _0x7ddf10=>{const _0x4f8034=_0x2b7992,_0x380e4e=_0x7ddf10[_0x4f8034(0x135)](_0x53988b);return new URLSearchParams(location[_0x4f8034(0x118)])['get'](_0x4f8034(0x139))?_0x380e4e['importXLSXToUnitId']():_0x380e4e[_0x4f8034(0x13e)](),!0x0;}},u={'id':_0x2b7992(0x128),'type':_0x4ad908['OPERATION'],'handler':async _0x2ebd8e=>{const _0x290f7b=_0x2b7992,_0x3c59ce=_0x2ebd8e[_0x290f7b(0x135)](_0x53988b);return new URLSearchParams(location[_0x290f7b(0x118)])[_0x290f7b(0x135)]('unit')?_0x3c59ce['exportXLSXByUnitId']():_0x3c59ce[_0x290f7b(0x116)](),!0x0;}},H=_0x2b7992(0x12e),l={},S='sheets-exchange-client.operation.exchange';function R(_0x281888){const _0x243046=_0x2b7992;return{'id':S,'type':_0x2972a7[_0x243046(0x120)],'icon':'DirectExportIcon','tooltip':_0x243046(0x13a),'hidden$':_0x379c35(_0x281888,_0xbfa663[_0x243046(0x13d)]),'disabled$':_0x291126(_0x281888,{'workbookTypes':[_0x3e39a7]})};}function w(){const _0x3ae208=_0x2b7992;return{'id':p['id'],'type':_0x2972a7[_0x3ae208(0x13b)],'title':_0x3ae208(0x141),'icon':_0x3ae208(0x143)};}function D(){const _0x3537eb=_0x2b7992;return{'id':u['id'],'type':_0x2972a7[_0x3537eb(0x13b)],'title':_0x3537eb(0x133),'icon':_0x3537eb(0x12b)};}const F={[_0x1d0a53[_0x2b7992(0x129)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x7a04b3,_0x35f2b2,_0x40411b,_0x22f91d)=>{const _0x23d8a1=_0x2b7992;for(var _0x4551a6=_0x22f91d>0x1?void 0x0:_0x22f91d?G(_0x35f2b2,_0x40411b):_0x35f2b2,_0x3309ff=_0x7a04b3[_0x23d8a1(0x119)]-0x1,_0x22fee7;_0x3309ff>=0x0;_0x3309ff--)(_0x22fee7=_0x7a04b3[_0x3309ff])&&(_0x4551a6=_0x22fee7(_0x4551a6)||_0x4551a6);return _0x4551a6;},d=(_0x3aaed9,_0x1b22d7)=>(_0x2d2b0a,_0x20a44b)=>_0x1b22d7(_0x2d2b0a,_0x20a44b,_0x3aaed9);let c=class extends _0x170102{constructor(_0x41c37a,_0x4fcf53){const _0x28f9d5=_0x2b7992;super(),this[_0x28f9d5(0x11e)]=_0x41c37a,this['_menuManagerService']=_0x4fcf53,this[_0x28f9d5(0x131)](),this[_0x28f9d5(0x124)]();}[_0x2b7992(0x131)](){const _0x1a0886=_0x2b7992;[p,u][_0x1a0886(0x122)](_0x48c9ef=>{const _0x5d399c=_0x1a0886;this['disposeWithMe'](this['_commandService'][_0x5d399c(0x11d)](_0x48c9ef));});}['_initMenus'](){const _0x33d036=_0x2b7992;this[_0x33d036(0x12a)][_0x33d036(0x140)](F);}};c=A([d(0x0,_0x2bf90a),d(0x1,_0x1e2a0f)],c);var j=Object[_0x2b7992(0x137)],B=Object[_0x2b7992(0x145)],$=(_0x5ae6c0,_0x2ba7ca,_0x29049e)=>_0x2ba7ca in _0x5ae6c0?j(_0x5ae6c0,_0x2ba7ca,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29049e}):_0x5ae6c0[_0x2ba7ca]=_0x29049e,V=(_0x497941,_0x17ce69,_0x282607,_0x116562)=>{for(var _0x385fcb=_0x116562>0x1?void 0x0:_0x116562?B(_0x17ce69,_0x282607):_0x17ce69,_0x59ea5f=_0x497941['length']-0x1,_0x4006cd;_0x59ea5f>=0x0;_0x59ea5f--)(_0x4006cd=_0x497941[_0x59ea5f])&&(_0x385fcb=_0x4006cd(_0x385fcb)||_0x385fcb);return _0x385fcb;},_=(_0x2a57e2,_0x40168b)=>(_0x17a0d5,_0x2dfdf2)=>_0x40168b(_0x17a0d5,_0x2dfdf2,_0x2a57e2),I=(_0x51ba28,_0x3e231f,_0x3b9262)=>$(_0x51ba28,typeof _0x3e231f!='symbol'?_0x3e231f+'':_0x3e231f,_0x3b9262);const W=_0x2b7992(0x127);let s=class extends _0xa1614{constructor(_0x44521f=l,_0x35c73a,_0x3837af){const _0x312e52=_0x2b7992;super(),this['_config']=_0x44521f,this[_0x312e52(0x142)]=_0x35c73a,this[_0x312e52(0x12f)]=_0x3837af;const {menu:_0x1ac89d,..._0x46e403}=_0x33f897({},l,this[_0x312e52(0x130)]);_0x1ac89d&&this[_0x312e52(0x12f)][_0x312e52(0x138)]('menu',_0x1ac89d,{'merge':!0x0}),this[_0x312e52(0x12f)]['setConfig'](H,_0x46e403);}['onStarting'](){const _0x3dc969=_0x2b7992;[[c]][_0x3dc969(0x122)](_0xd4416b=>this[_0x3dc969(0x142)][_0x3dc969(0x11b)](_0xd4416b));}[_0x2b7992(0x125)](){const _0xea47a3=_0x2b7992;this[_0xea47a3(0x142)][_0xea47a3(0x135)](c);}};I(s,_0x2b7992(0x126),W),I(s,_0x2b7992(0x12c),_0xbfa663['UNIVER_SHEET']),s=V([_0x4ff593(_0x338505),_(0x1,_0xe2dd25(_0x4219fc)),_(0x2,_0x4345c4)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0xf3ffb2=_0x35fa;(function(_0xf3f807,_0x2ca0dc){const _0x53d0de=_0x35fa,_0x3fde52=_0xf3f807();while(!![]){try{const _0x49f940=parseInt(_0x53d0de(0xe9))/0x1+parseInt(_0x53d0de(0xf9))/0x2+parseInt(_0x53d0de(0xe6))/0x3*(-parseInt(_0x53d0de(0x107))/0x4)+parseInt(_0x53d0de(0x102))/0x5*(parseInt(_0x53d0de(0x101))/0x6)+-parseInt(_0x53d0de(0xe4))/0x7+parseInt(_0x53d0de(0x104))/0x8*(parseInt(_0x53d0de(0xe2))/0x9)+-parseInt(_0x53d0de(0xff))/0xa;if(_0x49f940===_0x2ca0dc)break;else _0x3fde52['push'](_0x3fde52['shift']());}catch(_0x16037e){_0x3fde52['push'](_0x3fde52['shift']());}}}(_0x530c,0x9cfa4));import{IExchangeOperateService as _0x5bc4b2,UniverExchangeClientPlugin as _0x57c841}from'@univerjs-pro/exchange-client';import{CommandType as _0x1dce1f,UniverInstanceType as _0x56b84c,Disposable as _0x48bbce,ICommandService as _0x3e6c16,DependentOn as _0x863d94,Inject as _0x1a6738,Injector as _0x290128,IConfigService as _0x9e3174,Plugin as _0x156b35,merge as _0x340111}from'@univerjs/core';import{MenuItemType as _0x4ecf14,getMenuHiddenObservable as _0x345077,RibbonStartGroup as _0x5aaf7f,IMenuManagerService as _0x1da4df}from'@univerjs/ui';import{WorkbookExportPermission as _0x6772dd}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x425cab}from'@univerjs/sheets-ui';const p={'id':_0xf3ffb2(0xf3),'type':_0x1dce1f[_0xf3ffb2(0xe8)],'handler':async _0x2fd384=>{const _0x77cc37=_0xf3ffb2,_0x17ae98=_0x2fd384[_0x77cc37(0x106)](_0x5bc4b2);return new URLSearchParams(location[_0x77cc37(0x10d)])['get'](_0x77cc37(0xfa))?_0x17ae98['importXLSXToUnitId']():_0x17ae98[_0x77cc37(0xf5)](),!0x0;}},u={'id':_0xf3ffb2(0xe3),'type':_0x1dce1f[_0xf3ffb2(0xe8)],'handler':async _0x244edf=>{const _0x5e246f=_0xf3ffb2,_0x4b405b=_0x244edf[_0x5e246f(0x106)](_0x5bc4b2);return new URLSearchParams(location['search'])[_0x5e246f(0x106)]('unit')?_0x4b405b[_0x5e246f(0xf8)]():_0x4b405b['exportXLSXBySnapshot'](),!0x0;}},H=_0xf3ffb2(0xee),l={},S=_0xf3ffb2(0x10e);function R(_0x34aaaa){const _0x398106=_0xf3ffb2;return{'id':S,'type':_0x4ecf14[_0x398106(0xea)],'icon':_0x398106(0x110),'tooltip':_0x398106(0xf1),'hidden$':_0x345077(_0x34aaaa,_0x56b84c[_0x398106(0xf6)]),'disabled$':_0x425cab(_0x34aaaa,{'workbookTypes':[_0x6772dd]})};}function w(){const _0x551be3=_0xf3ffb2;return{'id':p['id'],'type':_0x4ecf14[_0x551be3(0xf7)],'title':'exchange.upload','icon':_0x551be3(0x10a)};}function D(){const _0x146c8e=_0xf3ffb2;return{'id':u['id'],'type':_0x4ecf14[_0x146c8e(0xf7)],'title':_0x146c8e(0x100),'icon':'ExportIcon'};}const F={[_0x5aaf7f[_0xf3ffb2(0x109)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0xf3ffb2(0xfc)],A=(_0x10ece6,_0xb5b192,_0x33e466,_0x2dd10d)=>{const _0x4aa44e=_0xf3ffb2;for(var _0x2a75b5=_0x2dd10d>0x1?void 0x0:_0x2dd10d?G(_0xb5b192,_0x33e466):_0xb5b192,_0x54c079=_0x10ece6[_0x4aa44e(0xf0)]-0x1,_0x290213;_0x54c079>=0x0;_0x54c079--)(_0x290213=_0x10ece6[_0x54c079])&&(_0x2a75b5=_0x290213(_0x2a75b5)||_0x2a75b5);return _0x2a75b5;},d=(_0xbba0da,_0x577c7f)=>(_0x459954,_0x4c0540)=>_0x577c7f(_0x459954,_0x4c0540,_0xbba0da);let c=class extends _0x48bbce{constructor(_0x3ba99c,_0x2c3977){const _0x2ead85=_0xf3ffb2;super(),this['_commandService']=_0x3ba99c,this[_0x2ead85(0x10f)]=_0x2c3977,this[_0x2ead85(0x10c)](),this[_0x2ead85(0x103)]();}['_initCommands'](){[p,u]['forEach'](_0x1d3bc8=>{const _0x1f13c5=_0x35fa;this[_0x1f13c5(0xf2)](this[_0x1f13c5(0xf4)][_0x1f13c5(0xfe)](_0x1d3bc8));});}['_initMenus'](){const _0x4d74bb=_0xf3ffb2;this[_0x4d74bb(0x10f)]['mergeMenu'](F);}};function _0x35fa(_0x175a86,_0x18f705){const _0x530ce5=_0x530c();return _0x35fa=function(_0x35fa37,_0x5d3196){_0x35fa37=_0x35fa37-0xe2;let _0xbace69=_0x530ce5[_0x35fa37];return _0xbace69;},_0x35fa(_0x175a86,_0x18f705);}c=A([d(0x0,_0x3e6c16),d(0x1,_0x1da4df)],c);var j=Object[_0xf3ffb2(0xed)],B=Object[_0xf3ffb2(0xfc)],$=(_0x561c20,_0x227038,_0x2d4182)=>_0x227038 in _0x561c20?j(_0x561c20,_0x227038,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d4182}):_0x561c20[_0x227038]=_0x2d4182,V=(_0xdff04b,_0x123cb9,_0x4be98b,_0x5c9a7e)=>{const _0x339612=_0xf3ffb2;for(var _0x250bc7=_0x5c9a7e>0x1?void 0x0:_0x5c9a7e?B(_0x123cb9,_0x4be98b):_0x123cb9,_0x5591c8=_0xdff04b[_0x339612(0xf0)]-0x1,_0x145ec7;_0x5591c8>=0x0;_0x5591c8--)(_0x145ec7=_0xdff04b[_0x5591c8])&&(_0x250bc7=_0x145ec7(_0x250bc7)||_0x250bc7);return _0x250bc7;},_=(_0x3ffb69,_0x2bced9)=>(_0x207f65,_0x1ffc8c)=>_0x2bced9(_0x207f65,_0x1ffc8c,_0x3ffb69),I=(_0x40b3d8,_0x11f5e3,_0x579ff0)=>$(_0x40b3d8,typeof _0x11f5e3!=_0xf3ffb2(0xfd)?_0x11f5e3+'':_0x11f5e3,_0x579ff0);const W=_0xf3ffb2(0xeb);let s=class extends _0x156b35{constructor(_0x5249a3=l,_0x371ace,_0x4bd10d){const _0x1a2013=_0xf3ffb2;super(),this['_config']=_0x5249a3,this[_0x1a2013(0xe5)]=_0x371ace,this[_0x1a2013(0xe7)]=_0x4bd10d;const {menu:_0x3e89ce,..._0x18b021}=_0x340111({},l,this[_0x1a2013(0x105)]);_0x3e89ce&&this[_0x1a2013(0xe7)]['setConfig'](_0x1a2013(0xfb),_0x3e89ce,{'merge':!0x0}),this[_0x1a2013(0xe7)]['setConfig'](H,_0x18b021);}[_0xf3ffb2(0x10b)](){const _0x4554ae=_0xf3ffb2;[[c]][_0x4554ae(0xec)](_0x472466=>this['_injector'][_0x4554ae(0xef)](_0x472466));}[_0xf3ffb2(0x108)](){const _0x248f23=_0xf3ffb2;this[_0x248f23(0xe5)]['get'](c);}};I(s,'pluginName',W),I(s,_0xf3ffb2(0x111),_0x56b84c[_0xf3ffb2(0xf6)]),s=V([_0x863d94(_0x57c841),_(0x1,_0x1a6738(_0x290128)),_(0x2,_0x9e3174)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};function _0x530c(){const _0x9e72f0=['exchange.file','disposeWithMe','exchange-client.operation.import-xlsx','_commandService','importXLSXToSnapshot','UNIVER_SHEET','BUTTON','exportXLSXByUnitId','1292982KVSwNY','unit','menu','getOwnPropertyDescriptor','symbol','registerCommand','17770760ulBbRT','exchange.download','6RzOhfn','3537005wmfDpA','_initMenus','2008024bppWyu','_config','get','8pDoyXQ','onReady','OTHERS','FolderIcon','onStarting','_initCommands','search','sheets-exchange-client.operation.exchange','_menuManagerService','DirectExportIcon','type','36SxRWgH','exchange-client.operation.export-xlsx','4730712eZDaYO','_injector','615744vOBiSU','_configService','OPERATION','1148464RCSMOS','SUBITEMS','SHEET_EXCHANGE_CLIENT_PLUGIN','forEach','defineProperty','sheets-exchange-client.config','add','length'];_0x530c=function(){return _0x9e72f0;};return _0x530c();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x59c1(_0x340fbc,_0xf1a918){const _0x59c1c5=_0xf813();return _0x59c1=function(_0x8777cd,_0xe3427f){_0x8777cd=_0x8777cd-0x128;let _0x5bc792=_0x59c1c5[_0x8777cd];return _0x5bc792;},_0x59c1(_0x340fbc,_0xf1a918);}(function(_0x394dbf,_0x440545){const _0x2ef129=_0x59c1,_0x1f0ca7=_0x394dbf();while(!![]){try{const _0x356358=-parseInt(_0x2ef129(0x177))/0x1*(-parseInt(_0x2ef129(0x160))/0x2)+parseInt(_0x2ef129(0x151))/0x3*(-parseInt(_0x2ef129(0x140))/0x4)+parseInt(_0x2ef129(0x169))/0x5+-parseInt(_0x2ef129(0x136))/0x6+parseInt(_0x2ef129(0x166))/0x7*(parseInt(_0x2ef129(0x148))/0x8)+-parseInt(_0x2ef129(0x173))/0x9+-parseInt(_0x2ef129(0x12d))/0xa*(-parseInt(_0x2ef129(0x163))/0xb);if(_0x356358===_0x440545)break;else _0x1f0ca7['push'](_0x1f0ca7['shift']());}catch(_0x50a3d1){_0x1f0ca7['push'](_0x1f0ca7['shift']());}}}(_0xf813,0xeff6d),function(_0x5230fc,_0x3a3e8a){const _0xe4c50=_0x59c1;typeof exports==_0xe4c50(0x162)&&typeof module<'u'?_0x3a3e8a(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0xe4c50(0x13f)&&define['amd']?define([_0xe4c50(0x12b),'@univerjs-pro/exchange-client',_0xe4c50(0x150),_0xe4c50(0x133),_0xe4c50(0x14a),_0xe4c50(0x167)],_0x3a3e8a):(_0x5230fc=typeof globalThis<'u'?globalThis:_0x5230fc||self,_0x3a3e8a(_0x5230fc[_0xe4c50(0x12c)]={},_0x5230fc[_0xe4c50(0x13e)],_0x5230fc[_0xe4c50(0x132)],_0x5230fc[_0xe4c50(0x138)],_0x5230fc[_0xe4c50(0x14c)],_0x5230fc[_0xe4c50(0x153)]));}(this,function(_0x39979c,_0x48a4c9,_0x21127a,_0x54ef7e,_0x37fb6d,_0x8bc9bc){'use strict';const _0x3c18be=_0x59c1;const _0x26fbdd={'id':_0x3c18be(0x15e),'type':_0x21127a[_0x3c18be(0x16a)][_0x3c18be(0x152)],'handler':async _0x21dc08=>{const _0x456201=_0x3c18be,_0x50b353=_0x21dc08[_0x456201(0x147)](_0x48a4c9[_0x456201(0x171)]);return new URLSearchParams(location[_0x456201(0x176)])['get'](_0x456201(0x142))?_0x50b353[_0x456201(0x143)]():_0x50b353[_0x456201(0x135)](),!0x0;}},_0x122eb0={'id':'exchange-client.operation.export-xlsx','type':_0x21127a[_0x3c18be(0x16a)][_0x3c18be(0x152)],'handler':async _0x2b7c3f=>{const _0x170dc9=_0x3c18be,_0x282501=_0x2b7c3f['get'](_0x48a4c9['IExchangeOperateService']);return new URLSearchParams(location[_0x170dc9(0x176)])[_0x170dc9(0x147)]('unit')?_0x282501[_0x170dc9(0x139)]():_0x282501[_0x170dc9(0x13d)](),!0x0;}},_0x4bb910='sheets-exchange-client.config',_0x25fd2d={},_0x16a293=_0x3c18be(0x13c);function _0x43034e(_0x44f165){const _0x3542c9=_0x3c18be;return{'id':_0x16a293,'type':_0x54ef7e['MenuItemType'][_0x3542c9(0x158)],'icon':_0x3542c9(0x13b),'tooltip':_0x3542c9(0x156),'hidden$':_0x54ef7e['getMenuHiddenObservable'](_0x44f165,_0x21127a[_0x3542c9(0x165)][_0x3542c9(0x159)]),'disabled$':_0x8bc9bc[_0x3542c9(0x155)](_0x44f165,{'workbookTypes':[_0x37fb6d[_0x3542c9(0x175)]]})};}function _0x25a713(){const _0x4b1209=_0x3c18be;return{'id':_0x26fbdd['id'],'type':_0x54ef7e['MenuItemType'][_0x4b1209(0x15c)],'title':_0x4b1209(0x154),'icon':_0x4b1209(0x14b)};}function _0xdea7eb(){const _0x3a9426=_0x3c18be;return{'id':_0x122eb0['id'],'type':_0x54ef7e[_0x3a9426(0x161)][_0x3a9426(0x15c)],'title':'exchange.download','icon':_0x3a9426(0x14d)};}const _0x44169e={[_0x54ef7e[_0x3c18be(0x16e)][_0x3c18be(0x131)]]:{[_0x16a293]:{'order':0.3,'menuItemFactory':_0x43034e,[_0x26fbdd['id']]:{'order':0x0,'menuItemFactory':_0x25a713},[_0x122eb0['id']]:{'order':0x1,'menuItemFactory':_0xdea7eb}}}};var _0x3a962c=Object[_0x3c18be(0x129)],_0x291133=(_0x2424e6,_0xc4b21a,_0x846678,_0x47a6d2)=>{for(var _0x2728d3=_0x47a6d2>0x1?void 0x0:_0x47a6d2?_0x3a962c(_0xc4b21a,_0x846678):_0xc4b21a,_0x426335=_0x2424e6['length']-0x1,_0xc1909d;_0x426335>=0x0;_0x426335--)(_0xc1909d=_0x2424e6[_0x426335])&&(_0x2728d3=_0xc1909d(_0x2728d3)||_0x2728d3);return _0x2728d3;},_0x5d2991=(_0x52a8a6,_0x1c089e)=>(_0x463cf8,_0x57be0b)=>_0x1c089e(_0x463cf8,_0x57be0b,_0x52a8a6);let _0x45668b=class extends _0x21127a[_0x3c18be(0x144)]{constructor(_0x273ffd,_0x372c70){const _0x5beafc=_0x3c18be;super(),this[_0x5beafc(0x12a)]=_0x273ffd,this[_0x5beafc(0x16b)]=_0x372c70,this[_0x5beafc(0x130)](),this[_0x5beafc(0x15b)]();}[_0x3c18be(0x130)](){const _0x35b03c=_0x3c18be;[_0x26fbdd,_0x122eb0][_0x35b03c(0x146)](_0x867b2b=>{const _0x1d84d4=_0x35b03c;this[_0x1d84d4(0x157)](this[_0x1d84d4(0x12a)]['registerCommand'](_0x867b2b));});}[_0x3c18be(0x15b)](){const _0x4723e2=_0x3c18be;this[_0x4723e2(0x16b)]['mergeMenu'](_0x44169e);}};_0x45668b=_0x291133([_0x5d2991(0x0,_0x21127a['ICommandService']),_0x5d2991(0x1,_0x54ef7e['IMenuManagerService'])],_0x45668b);var _0x3a3960=Object['defineProperty'],_0x5b2b63=Object[_0x3c18be(0x129)],_0x3590f7=(_0x22319b,_0x1e3ee4,_0x3503da)=>_0x1e3ee4 in _0x22319b?_0x3a3960(_0x22319b,_0x1e3ee4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3503da}):_0x22319b[_0x1e3ee4]=_0x3503da,_0x1d826f=(_0xec496b,_0x5cda7e,_0x52db03,_0x3ed508)=>{const _0x18fbf7=_0x3c18be;for(var _0x48951=_0x3ed508>0x1?void 0x0:_0x3ed508?_0x5b2b63(_0x5cda7e,_0x52db03):_0x5cda7e,_0x565f53=_0xec496b[_0x18fbf7(0x170)]-0x1,_0x3c4a6e;_0x565f53>=0x0;_0x565f53--)(_0x3c4a6e=_0xec496b[_0x565f53])&&(_0x48951=_0x3c4a6e(_0x48951)||_0x48951);return _0x48951;},_0x363af8=(_0x2fb985,_0x4a4cd9)=>(_0x396ff7,_0x49faeb)=>_0x4a4cd9(_0x396ff7,_0x49faeb,_0x2fb985),_0xff5db0=(_0x2c585c,_0x110cfd,_0x12c285)=>_0x3590f7(_0x2c585c,typeof _0x110cfd!=_0x3c18be(0x174)?_0x110cfd+'':_0x110cfd,_0x12c285);const _0x3488c8=_0x3c18be(0x15f);_0x39979c[_0x3c18be(0x15d)]=class extends _0x21127a[_0x3c18be(0x16c)]{constructor(_0x3cd054=_0x25fd2d,_0x2cb4ad,_0x3d10a7){const _0x3c1d0b=_0x3c18be;super(),this[_0x3c1d0b(0x141)]=_0x3cd054,this[_0x3c1d0b(0x168)]=_0x2cb4ad,this['_configService']=_0x3d10a7;const {menu:_0x4ff530,..._0x1178c9}=_0x21127a[_0x3c1d0b(0x16d)]({},_0x25fd2d,this[_0x3c1d0b(0x141)]);_0x4ff530&&this[_0x3c1d0b(0x149)][_0x3c1d0b(0x145)](_0x3c1d0b(0x14f),_0x4ff530,{'merge':!0x0}),this[_0x3c1d0b(0x149)][_0x3c1d0b(0x145)](_0x4bb910,_0x1178c9);}[_0x3c18be(0x164)](){const _0x17a81b=_0x3c18be;[[_0x45668b]][_0x17a81b(0x146)](_0x3c25fd=>this[_0x17a81b(0x168)][_0x17a81b(0x16f)](_0x3c25fd));}['onReady'](){const _0x46b46f=_0x3c18be;this[_0x46b46f(0x168)][_0x46b46f(0x147)](_0x45668b);}},_0xff5db0(_0x39979c['UniverSheetsExchangeClientPlugin'],'pluginName',_0x3488c8),_0xff5db0(_0x39979c['UniverSheetsExchangeClientPlugin'],_0x3c18be(0x137),_0x21127a['UniverInstanceType']['UNIVER_SHEET']),_0x39979c[_0x3c18be(0x15d)]=_0x1d826f([_0x21127a[_0x3c18be(0x12e)](_0x48a4c9['UniverExchangeClientPlugin']),_0x363af8(0x1,_0x21127a[_0x3c18be(0x14e)](_0x21127a['Injector'])),_0x363af8(0x2,_0x21127a[_0x3c18be(0x12f)])],_0x39979c[_0x3c18be(0x15d)]),_0x39979c[_0x3c18be(0x13a)]=_0x122eb0,_0x39979c[_0x3c18be(0x134)]=_0x26fbdd,Object[_0x3c18be(0x128)](_0x39979c,Symbol[_0x3c18be(0x15a)],{'value':_0x3c18be(0x172)});}));function _0xf813(){const _0x3a53fc=['disposeWithMe','SUBITEMS','UNIVER_SHEET','toStringTag','_initMenus','BUTTON','UniverSheetsExchangeClientPlugin','exchange-client.operation.import-xlsx','SHEET_EXCHANGE_CLIENT_PLUGIN','562DccvHE','MenuItemType','object','10243519DEsLxC','onStarting','UniverInstanceType','7emHoBh','@univerjs/sheets-ui','_injector','7062375bGzCiZ','CommandType','_menuManagerService','Plugin','merge','RibbonStartGroup','add','length','IExchangeOperateService','Module','11379375KiDCLI','symbol','WorkbookExportPermission','search','2199HNYTqe','defineProperty','getOwnPropertyDescriptor','_commandService','exports','UniverProSheetsExchangeClient','10pawBiJ','DependentOn','IConfigService','_initCommands','OTHERS','UniverCore','@univerjs/ui','ImportXLSXOperation','importXLSXToSnapshot','2371260diIWEP','type','UniverUi','exportXLSXByUnitId','ExportXLSXOperation','DirectExportIcon','sheets-exchange-client.operation.exchange','exportXLSXBySnapshot','UniverProExchangeClient','function','345476qgvQgs','_config','unit','importXLSXToUnitId','Disposable','setConfig','forEach','get','2974456DRhsGC','_configService','@univerjs/sheets','FolderIcon','UniverSheets','ExportIcon','Inject','menu','@univerjs/core','24nKzHGZ','OPERATION','UniverSheetsUi','exchange.upload','getCurrentRangeDisable$','exchange.file'];_0xf813=function(){return _0x3a53fc;};return _0xf813();}
1
+ function _0x3411(_0x542702,_0x495429){const _0x445a38=_0x445a();return _0x3411=function(_0x34110f,_0x179ce5){_0x34110f=_0x34110f-0xdf;let _0x5d9cf1=_0x445a38[_0x34110f];return _0x5d9cf1;},_0x3411(_0x542702,_0x495429);}(function(_0x4ada12,_0x17d152){const _0x175d38=_0x3411,_0x25e909=_0x4ada12();while(!![]){try{const _0xfa8311=parseInt(_0x175d38(0xe9))/0x1*(parseInt(_0x175d38(0x109))/0x2)+parseInt(_0x175d38(0xf0))/0x3*(-parseInt(_0x175d38(0xfd))/0x4)+parseInt(_0x175d38(0xf4))/0x5+parseInt(_0x175d38(0xea))/0x6+parseInt(_0x175d38(0x10d))/0x7*(parseInt(_0x175d38(0x11c))/0x8)+parseInt(_0x175d38(0xfb))/0x9+parseInt(_0x175d38(0xe6))/0xa*(-parseInt(_0x175d38(0xf3))/0xb);if(_0xfa8311===_0x17d152)break;else _0x25e909['push'](_0x25e909['shift']());}catch(_0x5ab662){_0x25e909['push'](_0x25e909['shift']());}}}(_0x445a,0x6e114),function(_0xcb86ac,_0x399c81){const _0x45e63e=_0x3411;typeof exports==_0x45e63e(0x101)&&typeof module<'u'?_0x399c81(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x45e63e(0xe3)&&define['amd']?define([_0x45e63e(0x115),_0x45e63e(0x106),'@univerjs/core',_0x45e63e(0x117),_0x45e63e(0xeb),_0x45e63e(0x128)],_0x399c81):(_0xcb86ac=typeof globalThis<'u'?globalThis:_0xcb86ac||self,_0x399c81(_0xcb86ac['UniverProSheetsExchangeClient']={},_0xcb86ac[_0x45e63e(0x10c)],_0xcb86ac[_0x45e63e(0xe8)],_0xcb86ac[_0x45e63e(0xf1)],_0xcb86ac[_0x45e63e(0xfa)],_0xcb86ac[_0x45e63e(0xe7)]));}(this,function(_0x16caba,_0x3d798b,_0x21ed30,_0x32e23f,_0x34cf52,_0x25d94c){'use strict';const _0x5b3156=_0x3411;const _0x238406={'id':'exchange-client.operation.import-xlsx','type':_0x21ed30[_0x5b3156(0x103)][_0x5b3156(0x118)],'handler':async _0x2590a3=>{const _0x31fe5a=_0x5b3156,_0x54eb12=_0x2590a3['get'](_0x3d798b[_0x31fe5a(0x113)]);return new URLSearchParams(location['search'])[_0x31fe5a(0xec)](_0x31fe5a(0x11d))?_0x54eb12[_0x31fe5a(0xef)]():_0x54eb12[_0x31fe5a(0xf6)](),!0x0;}},_0x49c1c4={'id':'exchange-client.operation.export-xlsx','type':_0x21ed30[_0x5b3156(0x103)][_0x5b3156(0x118)],'handler':async _0x882e65=>{const _0x4206c7=_0x5b3156,_0x57a040=_0x882e65['get'](_0x3d798b[_0x4206c7(0x113)]);return new URLSearchParams(location[_0x4206c7(0xf5)])[_0x4206c7(0xec)](_0x4206c7(0x11d))?_0x57a040[_0x4206c7(0xe2)]():_0x57a040[_0x4206c7(0x11b)](),!0x0;}},_0x452dbd=_0x5b3156(0x111),_0x5592e8={},_0x3afeba=_0x5b3156(0xee);function _0x42d077(_0x5caadd){const _0x478351=_0x5b3156;return{'id':_0x3afeba,'type':_0x32e23f[_0x478351(0x12c)]['SUBITEMS'],'icon':_0x478351(0x10a),'tooltip':_0x478351(0x122),'hidden$':_0x32e23f[_0x478351(0x112)](_0x5caadd,_0x21ed30[_0x478351(0x121)][_0x478351(0x10f)]),'disabled$':_0x25d94c[_0x478351(0xdf)](_0x5caadd,{'workbookTypes':[_0x34cf52['WorkbookExportPermission']]})};}function _0x1f26cc(){const _0x18031e=_0x5b3156;return{'id':_0x238406['id'],'type':_0x32e23f['MenuItemType'][_0x18031e(0x126)],'title':_0x18031e(0x123),'icon':_0x18031e(0x129)};}function _0x5126bf(){const _0x35ff4a=_0x5b3156;return{'id':_0x49c1c4['id'],'type':_0x32e23f[_0x35ff4a(0x12c)]['BUTTON'],'title':_0x35ff4a(0x107),'icon':_0x35ff4a(0x12d)};}const _0x4b8ec3={[_0x32e23f['RibbonStartGroup'][_0x5b3156(0x10e)]]:{[_0x3afeba]:{'order':0.3,'menuItemFactory':_0x42d077,[_0x238406['id']]:{'order':0x0,'menuItemFactory':_0x1f26cc},[_0x49c1c4['id']]:{'order':0x1,'menuItemFactory':_0x5126bf}}}};var _0x52ae2f=Object[_0x5b3156(0x11f)],_0x407175=(_0x25ef9d,_0x19f78e,_0x2f53b1,_0x1672e1)=>{const _0x1ecc0d=_0x5b3156;for(var _0x4a17aa=_0x1672e1>0x1?void 0x0:_0x1672e1?_0x52ae2f(_0x19f78e,_0x2f53b1):_0x19f78e,_0x5d0e70=_0x25ef9d[_0x1ecc0d(0x114)]-0x1,_0x4879d0;_0x5d0e70>=0x0;_0x5d0e70--)(_0x4879d0=_0x25ef9d[_0x5d0e70])&&(_0x4a17aa=_0x4879d0(_0x4a17aa)||_0x4a17aa);return _0x4a17aa;},_0x5ace5f=(_0x5113dd,_0x184ac0)=>(_0x142c3d,_0x212b2e)=>_0x184ac0(_0x142c3d,_0x212b2e,_0x5113dd);let _0x2436c4=class extends _0x21ed30[_0x5b3156(0x110)]{constructor(_0x405f52,_0xc002e5){const _0x516ee4=_0x5b3156;super(),this[_0x516ee4(0xe1)]=_0x405f52,this['_menuManagerService']=_0xc002e5,this[_0x516ee4(0x124)](),this[_0x516ee4(0xe4)]();}[_0x5b3156(0x124)](){[_0x238406,_0x49c1c4]['forEach'](_0x1d742b=>{const _0x57e8b6=_0x3411;this['disposeWithMe'](this[_0x57e8b6(0xe1)]['registerCommand'](_0x1d742b));});}[_0x5b3156(0xe4)](){const _0x42a3f8=_0x5b3156;this[_0x42a3f8(0xfc)]['mergeMenu'](_0x4b8ec3);}};_0x2436c4=_0x407175([_0x5ace5f(0x0,_0x21ed30[_0x5b3156(0x105)]),_0x5ace5f(0x1,_0x32e23f[_0x5b3156(0x120)])],_0x2436c4);var _0x31999b=Object[_0x5b3156(0x12a)],_0x19e8cc=Object[_0x5b3156(0x11f)],_0x20a763=(_0x32b9ff,_0x43bc0e,_0x31a1e7)=>_0x43bc0e in _0x32b9ff?_0x31999b(_0x32b9ff,_0x43bc0e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x31a1e7}):_0x32b9ff[_0x43bc0e]=_0x31a1e7,_0x9139ae=(_0x1c2ee1,_0x4a7808,_0x113147,_0x47dc81)=>{const _0xf96fa8=_0x5b3156;for(var _0x378508=_0x47dc81>0x1?void 0x0:_0x47dc81?_0x19e8cc(_0x4a7808,_0x113147):_0x4a7808,_0x2efaa7=_0x1c2ee1[_0xf96fa8(0x114)]-0x1,_0xf47d3c;_0x2efaa7>=0x0;_0x2efaa7--)(_0xf47d3c=_0x1c2ee1[_0x2efaa7])&&(_0x378508=_0xf47d3c(_0x378508)||_0x378508);return _0x378508;},_0x3560cf=(_0x5501fb,_0x59d3b0)=>(_0x590cc8,_0x45b936)=>_0x59d3b0(_0x590cc8,_0x45b936,_0x5501fb),_0x3ed105=(_0xac274f,_0x2da1ae,_0x1b3eb3)=>_0x20a763(_0xac274f,typeof _0x2da1ae!=_0x5b3156(0xf7)?_0x2da1ae+'':_0x2da1ae,_0x1b3eb3);const _0x2c4768=_0x5b3156(0x127);_0x16caba['UniverSheetsExchangeClientPlugin']=class extends _0x21ed30[_0x5b3156(0x10b)]{constructor(_0x7bf259=_0x5592e8,_0x2a3b75,_0x182b04){const _0x5b6465=_0x5b3156;super(),this[_0x5b6465(0xe0)]=_0x7bf259,this[_0x5b6465(0x104)]=_0x2a3b75,this[_0x5b6465(0x12b)]=_0x182b04;const {menu:_0x24b2f3,..._0x54aa55}=_0x21ed30['merge']({},_0x5592e8,this[_0x5b6465(0xe0)]);_0x24b2f3&&this[_0x5b6465(0x12b)][_0x5b6465(0xff)](_0x5b6465(0x11e),_0x24b2f3,{'merge':!0x0}),this[_0x5b6465(0x12b)][_0x5b6465(0xff)](_0x452dbd,_0x54aa55);}[_0x5b3156(0x116)](){const _0x5ae15f=_0x5b3156;[[_0x2436c4]][_0x5ae15f(0xf9)](_0x821f7b=>this[_0x5ae15f(0x104)][_0x5ae15f(0xf2)](_0x821f7b));}[_0x5b3156(0xed)](){const _0x12f228=_0x5b3156;this[_0x12f228(0x104)]['get'](_0x2436c4);}},_0x3ed105(_0x16caba[_0x5b3156(0x119)],_0x5b3156(0x125),_0x2c4768),_0x3ed105(_0x16caba[_0x5b3156(0x119)],'type',_0x21ed30[_0x5b3156(0x121)]['UNIVER_SHEET']),_0x16caba[_0x5b3156(0x119)]=_0x9139ae([_0x21ed30[_0x5b3156(0xf8)](_0x3d798b[_0x5b3156(0x102)]),_0x3560cf(0x1,_0x21ed30[_0x5b3156(0x108)](_0x21ed30[_0x5b3156(0x11a)])),_0x3560cf(0x2,_0x21ed30['IConfigService'])],_0x16caba[_0x5b3156(0x119)]),_0x16caba['ExportXLSXOperation']=_0x49c1c4,_0x16caba[_0x5b3156(0xe5)]=_0x238406,Object['defineProperty'](_0x16caba,Symbol[_0x5b3156(0xfe)],{'value':_0x5b3156(0x100)});}));function _0x445a(){const _0x2584f7=['menu','getOwnPropertyDescriptor','IMenuManagerService','UniverInstanceType','exchange.file','exchange.upload','_initCommands','pluginName','BUTTON','SHEET_EXCHANGE_CLIENT_PLUGIN','@univerjs/sheets-ui','FolderIcon','defineProperty','_configService','MenuItemType','ExportIcon','getCurrentRangeDisable$','_config','_commandService','exportXLSXByUnitId','function','_initMenus','ImportXLSXOperation','160YTRxrx','UniverSheetsUi','UniverCore','16ANYPAV','2267586eduGiM','@univerjs/sheets','get','onReady','sheets-exchange-client.operation.exchange','importXLSXToUnitId','6OqQLgs','UniverUi','add','1092817LRwYja','1145070iJbmEf','search','importXLSXToSnapshot','symbol','DependentOn','forEach','UniverSheets','1347876jtJDUz','_menuManagerService','21212bbAOMA','toStringTag','setConfig','Module','object','UniverExchangeClientPlugin','CommandType','_injector','ICommandService','@univerjs-pro/exchange-client','exchange.download','Inject','85324NmqHca','DirectExportIcon','Plugin','UniverProExchangeClient','4281851KPKCAU','OTHERS','UNIVER_SHEET','Disposable','sheets-exchange-client.config','getMenuHiddenObservable','IExchangeOperateService','length','exports','onStarting','@univerjs/ui','OPERATION','UniverSheetsExchangeClientPlugin','Injector','exportXLSXBySnapshot','8rlGYOs','unit'];_0x445a=function(){return _0x2584f7;};return _0x445a();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.12.2-nightly.202511290732",
3
+ "version": "0.12.2-nightly.202511290905",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -42,11 +42,11 @@
42
42
  "lib"
43
43
  ],
44
44
  "dependencies": {
45
- "@univerjs-pro/exchange-client": "0.12.2-nightly.202511290732",
46
- "@univerjs/core": "0.12.2-nightly.202511290732",
47
- "@univerjs/sheets-ui": "0.12.2-nightly.202511290732",
48
- "@univerjs/sheets": "0.12.2-nightly.202511290732",
49
- "@univerjs/ui": "0.12.2-nightly.202511290732"
45
+ "@univerjs-pro/exchange-client": "0.12.2-nightly.202511290905",
46
+ "@univerjs/core": "0.12.2-nightly.202511290905",
47
+ "@univerjs/sheets-ui": "0.12.2-nightly.202511290905",
48
+ "@univerjs/sheets": "0.12.2-nightly.202511290905",
49
+ "@univerjs/ui": "0.12.2-nightly.202511290905"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",