@univerjs-pro/sheets-exchange-client 0.10.14-nightly.202511070640 → 0.10.14-nightly.202511080715

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 _0xea7081=_0x34cc;function _0x34cc(_0x15027b,_0xd15fa1){const _0x26c75c=_0x26c7();return _0x34cc=function(_0x34ccc2,_0xee9602){_0x34ccc2=_0x34ccc2-0x1b4;let _0x212eb2=_0x26c75c[_0x34ccc2];return _0x212eb2;},_0x34cc(_0x15027b,_0xd15fa1);}(function(_0x36a5b5,_0x3a64e8){const _0x1cf14a=_0x34cc,_0x131a19=_0x36a5b5();while(!![]){try{const _0x156327=parseInt(_0x1cf14a(0x1cc))/0x1*(parseInt(_0x1cf14a(0x1b8))/0x2)+parseInt(_0x1cf14a(0x1e5))/0x3*(-parseInt(_0x1cf14a(0x1c5))/0x4)+-parseInt(_0x1cf14a(0x1d1))/0x5*(-parseInt(_0x1cf14a(0x1b7))/0x6)+-parseInt(_0x1cf14a(0x1c6))/0x7*(-parseInt(_0x1cf14a(0x1e0))/0x8)+parseInt(_0x1cf14a(0x1da))/0x9*(-parseInt(_0x1cf14a(0x1e7))/0xa)+parseInt(_0x1cf14a(0x1c1))/0xb+-parseInt(_0x1cf14a(0x1e6))/0xc;if(_0x156327===_0x3a64e8)break;else _0x131a19['push'](_0x131a19['shift']());}catch(_0x3d06b5){_0x131a19['push'](_0x131a19['shift']());}}}(_0x26c7,0x338d7));Object['defineProperty'](exports,Symbol[_0xea7081(0x1d6)],{'value':_0xea7081(0x1e9)});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':_0xea7081(0x1cb),'type':i[_0xea7081(0x1ed)]['OPERATION'],'handler':async _0x4457fb=>{const _0x42ecd1=_0xea7081,_0x11b18e=_0x4457fb[_0x42ecd1(0x1eb)](g['IExchangeOperateService']);return new URLSearchParams(location['search'])['get'](_0x42ecd1(0x1cf))?_0x11b18e[_0x42ecd1(0x1bb)]():_0x11b18e[_0x42ecd1(0x1bd)](),!0x0;}},p={'id':_0xea7081(0x1f0),'type':i[_0xea7081(0x1ed)][_0xea7081(0x1dd)],'handler':async _0x20c2f1=>{const _0x36a846=_0xea7081,_0x46b4a7=_0x20c2f1[_0x36a846(0x1eb)](g['IExchangeOperateService']);return new URLSearchParams(location[_0x36a846(0x1e1)])[_0x36a846(0x1eb)](_0x36a846(0x1cf))?_0x46b4a7['exportXLSXByUnitId']():_0x46b4a7['exportXLSXBySnapshot'](),!0x0;}},v='sheets-exchange-client.config',h={},S=_0xea7081(0x1c4);function _0x26c7(){const _0x17aef4=['315WelOQg','exchange.download','UniverInstanceType','OPERATION','IMenuManagerService','getMenuHiddenObservable','270472IPNfoh','search','MenuItemType','defineProperty','UNIVER_SHEET','138FPAefW','4615032UKEBOn','85750bCrqZO','_initMenus','Module','_commandService','get','length','CommandType','forEach','ExportXLSXOperation','exchange-client.operation.export-xlsx','ICommandService','getOwnPropertyDescriptor','symbol','ExportIcon','setConfig','ImportXLSXOperation','625254SwEKXF','4AbFXsN','exchange.file','type','importXLSXToUnitId','_injector','importXLSXToSnapshot','pluginName','WorkbookExportPermission','_menuManagerService','3565133QLWnDl','onReady','IConfigService','sheets-exchange-client.operation.exchange','28204eeORIn','84UjGsik','SUBITEMS','merge','Plugin','_configService','exchange-client.operation.import-xlsx','193098apBLpr','onStarting','DirectExportIcon','unit','RibbonStartGroup','5kuczJy','registerCommand','mergeMenu','_initCommands','Injector','toStringTag','UniverExchangeClientPlugin','UniverSheetsExchangeClientPlugin','disposeWithMe'];_0x26c7=function(){return _0x17aef4;};return _0x26c7();}function x(_0x35d5d8){const _0xff11ec=_0xea7081;return{'id':S,'type':c[_0xff11ec(0x1e2)][_0xff11ec(0x1c7)],'icon':_0xff11ec(0x1ce),'tooltip':_0xff11ec(0x1b9),'hidden$':c[_0xff11ec(0x1df)](_0x35d5d8,i[_0xff11ec(0x1dc)][_0xff11ec(0x1e4)]),'disabled$':I['getCurrentRangeDisable$'](_0x35d5d8,{'workbookTypes':[_[_0xff11ec(0x1bf)]]})};}function P(){return{'id':l['id'],'type':c['MenuItemType']['BUTTON'],'title':'exchange.upload','icon':'FolderIcon'};}function C(){const _0xf9e64f=_0xea7081;return{'id':p['id'],'type':c[_0xf9e64f(0x1e2)]['BUTTON'],'title':_0xf9e64f(0x1db),'icon':_0xf9e64f(0x1b4)};}const f={[c[_0xea7081(0x1d0)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0xea7081(0x1f2)],y=(_0x202593,_0x331c35,_0x1dda4e,_0x42d834)=>{for(var _0x589df5=_0x42d834>0x1?void 0x0:_0x42d834?T(_0x331c35,_0x1dda4e):_0x331c35,_0x1cfc2a=_0x202593['length']-0x1,_0x4f89ba;_0x1cfc2a>=0x0;_0x1cfc2a--)(_0x4f89ba=_0x202593[_0x1cfc2a])&&(_0x589df5=_0x4f89ba(_0x589df5)||_0x589df5);return _0x589df5;},m=(_0xe105ef,_0x243e8a)=>(_0x17d588,_0x230a95)=>_0x243e8a(_0x17d588,_0x230a95,_0xe105ef);let u=class extends i['Disposable']{constructor(_0x30a486,_0xfea6f){const _0x3aa902=_0xea7081;super(),this[_0x3aa902(0x1ea)]=_0x30a486,this['_menuManagerService']=_0xfea6f,this[_0x3aa902(0x1d4)](),this['_initMenus']();}['_initCommands'](){const _0x4fe3b0=_0xea7081;[l,p][_0x4fe3b0(0x1ee)](_0x798230=>{const _0x4f13b2=_0x4fe3b0;this[_0x4f13b2(0x1d9)](this[_0x4f13b2(0x1ea)][_0x4f13b2(0x1d2)](_0x798230));});}[_0xea7081(0x1e8)](){const _0x27ab94=_0xea7081;this[_0x27ab94(0x1c0)][_0x27ab94(0x1d3)](f);}};u=y([m(0x0,i[_0xea7081(0x1f1)]),m(0x1,c[_0xea7081(0x1de)])],u);var O=Object[_0xea7081(0x1e3)],U=Object[_0xea7081(0x1f2)],X=(_0x5ca9a0,_0x257ad8,_0x2a3f73)=>_0x257ad8 in _0x5ca9a0?O(_0x5ca9a0,_0x257ad8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a3f73}):_0x5ca9a0[_0x257ad8]=_0x2a3f73,N=(_0x1a7e14,_0x512994,_0x28aba1,_0xc7b549)=>{const _0x42de2e=_0xea7081;for(var _0x13c23a=_0xc7b549>0x1?void 0x0:_0xc7b549?U(_0x512994,_0x28aba1):_0x512994,_0x66f79c=_0x1a7e14[_0x42de2e(0x1ec)]-0x1,_0x4a83d1;_0x66f79c>=0x0;_0x66f79c--)(_0x4a83d1=_0x1a7e14[_0x66f79c])&&(_0x13c23a=_0x4a83d1(_0x13c23a)||_0x13c23a);return _0x13c23a;},d=(_0x40bd57,_0x44ab1e)=>(_0x59ea79,_0x3a7c01)=>_0x44ab1e(_0x59ea79,_0x3a7c01,_0x40bd57),E=(_0x19cf72,_0x274017,_0x1d5425)=>X(_0x19cf72,typeof _0x274017!=_0xea7081(0x1f3)?_0x274017+'':_0x274017,_0x1d5425);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports[_0xea7081(0x1d8)]=class extends i[_0xea7081(0x1c9)]{constructor(_0x458ae5=h,_0x20fc9c,_0x3c9a76){const _0x1d86e2=_0xea7081;super(),this['_config']=_0x458ae5,this[_0x1d86e2(0x1bc)]=_0x20fc9c,this[_0x1d86e2(0x1ca)]=_0x3c9a76;const {menu:_0x450e54,..._0x22a6b9}=i[_0x1d86e2(0x1c8)]({},h,this['_config']);_0x450e54&&this[_0x1d86e2(0x1ca)][_0x1d86e2(0x1b5)]('menu',_0x450e54,{'merge':!0x0}),this[_0x1d86e2(0x1ca)][_0x1d86e2(0x1b5)](v,_0x22a6b9);}[_0xea7081(0x1cd)](){const _0x1bfd2d=_0xea7081;[[u]][_0x1bfd2d(0x1ee)](_0x206043=>this[_0x1bfd2d(0x1bc)]['add'](_0x206043));}[_0xea7081(0x1c2)](){const _0x43ed53=_0xea7081;this[_0x43ed53(0x1bc)][_0x43ed53(0x1eb)](u);}},E(exports[_0xea7081(0x1d8)],_0xea7081(0x1be),L),E(exports[_0xea7081(0x1d8)],_0xea7081(0x1ba),i[_0xea7081(0x1dc)][_0xea7081(0x1e4)]),exports['UniverSheetsExchangeClientPlugin']=N([i['DependentOn'](g[_0xea7081(0x1d7)]),d(0x1,i['Inject'](i[_0xea7081(0x1d5)])),d(0x2,i[_0xea7081(0x1c3)])],exports[_0xea7081(0x1d8)]),exports[_0xea7081(0x1ef)]=p,exports[_0xea7081(0x1b6)]=l;
1
+ 'use strict';const _0x41d84f=_0x5843;(function(_0x3a02c3,_0x14f60d){const _0x5df30e=_0x5843,_0x27eb4c=_0x3a02c3();while(!![]){try{const _0x5ab593=parseInt(_0x5df30e(0x192))/0x1+-parseInt(_0x5df30e(0x19f))/0x2+parseInt(_0x5df30e(0x1a5))/0x3*(-parseInt(_0x5df30e(0x191))/0x4)+-parseInt(_0x5df30e(0x1a9))/0x5+-parseInt(_0x5df30e(0x19d))/0x6*(parseInt(_0x5df30e(0x1a2))/0x7)+parseInt(_0x5df30e(0x1cc))/0x8+-parseInt(_0x5df30e(0x1ba))/0x9;if(_0x5ab593===_0x14f60d)break;else _0x27eb4c['push'](_0x27eb4c['shift']());}catch(_0x261037){_0x27eb4c['push'](_0x27eb4c['shift']());}}}(_0x5a4b,0x6ea4b));Object[_0x41d84f(0x199)](exports,Symbol['toStringTag'],{'value':_0x41d84f(0x1c6)});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':_0x41d84f(0x196),'type':i['CommandType']['OPERATION'],'handler':async _0x286192=>{const _0x283559=_0x41d84f,_0x4011aa=_0x286192[_0x283559(0x1b4)](g['IExchangeOperateService']);return new URLSearchParams(location['search'])['get'](_0x283559(0x1c0))?_0x4011aa[_0x283559(0x1cf)]():_0x4011aa[_0x283559(0x1a1)](),!0x0;}},p={'id':_0x41d84f(0x1be),'type':i[_0x41d84f(0x1a6)][_0x41d84f(0x1a8)],'handler':async _0x483bc7=>{const _0x5cc97a=_0x41d84f,_0x473ca4=_0x483bc7[_0x5cc97a(0x1b4)](g[_0x5cc97a(0x19c)]);return new URLSearchParams(location['search'])[_0x5cc97a(0x1b4)](_0x5cc97a(0x1c0))?_0x473ca4[_0x5cc97a(0x19a)]():_0x473ca4['exportXLSXBySnapshot'](),!0x0;}},v=_0x41d84f(0x1ce),h={},S=_0x41d84f(0x1d2);function x(_0x1e10d3){const _0xa9a44c=_0x41d84f;return{'id':S,'type':c[_0xa9a44c(0x18d)][_0xa9a44c(0x1b2)],'icon':_0xa9a44c(0x1bb),'tooltip':_0xa9a44c(0x19b),'hidden$':c[_0xa9a44c(0x1b8)](_0x1e10d3,i[_0xa9a44c(0x193)][_0xa9a44c(0x1b3)]),'disabled$':I[_0xa9a44c(0x1ac)](_0x1e10d3,{'workbookTypes':[_[_0xa9a44c(0x1cd)]]})};}function P(){const _0x42981a=_0x41d84f;return{'id':l['id'],'type':c[_0x42981a(0x18d)]['BUTTON'],'title':_0x42981a(0x1d1),'icon':'FolderIcon'};}function _0x5a4b(){const _0x283439=['UNIVER_SHEET','get','SHEET_EXCHANGE_CLIENT_PLUGIN','symbol','setConfig','getMenuHiddenObservable','onReady','4109184CVgppb','DirectExportIcon','disposeWithMe','_initMenus','exchange-client.operation.export-xlsx','registerCommand','unit','onStarting','ExportIcon','Disposable','getOwnPropertyDescriptor','UniverExchangeClientPlugin','Module','IMenuManagerService','ImportXLSXOperation','UniverSheetsExchangeClientPlugin','add','menu','4412328kZxKrk','WorkbookExportPermission','sheets-exchange-client.config','importXLSXToUnitId','Inject','exchange.upload','sheets-exchange-client.operation.exchange','MenuItemType','RibbonStartGroup','IConfigService','length','96YanjUB','691053jaONTG','UniverInstanceType','type','_commandService','exchange-client.operation.import-xlsx','BUTTON','merge','defineProperty','exportXLSXByUnitId','exchange.file','IExchangeOperateService','144cHJBqz','ICommandService','409432yMLSFi','forEach','importXLSXToSnapshot','20888cJoLOJ','Injector','exchange.download','5625woyuAW','CommandType','_configService','OPERATION','57455oXGJKP','_config','_menuManagerService','getCurrentRangeDisable$','_initCommands','ExportXLSXOperation','mergeMenu','_injector','Plugin','SUBITEMS'];_0x5a4b=function(){return _0x283439;};return _0x5a4b();}function C(){const _0xe72a8e=_0x41d84f;return{'id':p['id'],'type':c[_0xe72a8e(0x18d)][_0xe72a8e(0x197)],'title':_0xe72a8e(0x1a4),'icon':_0xe72a8e(0x1c2)};}const f={[c[_0x41d84f(0x18e)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x41d84f(0x1c4)],y=(_0x32b78e,_0x3ce37b,_0x442e50,_0x49f1ee)=>{const _0x4241b2=_0x41d84f;for(var _0x28fc46=_0x49f1ee>0x1?void 0x0:_0x49f1ee?T(_0x3ce37b,_0x442e50):_0x3ce37b,_0x5a43c7=_0x32b78e[_0x4241b2(0x190)]-0x1,_0x5471ce;_0x5a43c7>=0x0;_0x5a43c7--)(_0x5471ce=_0x32b78e[_0x5a43c7])&&(_0x28fc46=_0x5471ce(_0x28fc46)||_0x28fc46);return _0x28fc46;},m=(_0x18b09c,_0x427133)=>(_0x512a3c,_0x46a612)=>_0x427133(_0x512a3c,_0x46a612,_0x18b09c);let u=class extends i[_0x41d84f(0x1c3)]{constructor(_0x585a60,_0x212483){const _0x272b8c=_0x41d84f;super(),this[_0x272b8c(0x195)]=_0x585a60,this['_menuManagerService']=_0x212483,this[_0x272b8c(0x1ad)](),this['_initMenus']();}['_initCommands'](){[l,p]['forEach'](_0x1d5241=>{const _0x23f1f6=_0x5843;this[_0x23f1f6(0x1bc)](this[_0x23f1f6(0x195)][_0x23f1f6(0x1bf)](_0x1d5241));});}[_0x41d84f(0x1bd)](){const _0x30e411=_0x41d84f;this[_0x30e411(0x1ab)][_0x30e411(0x1af)](f);}};u=y([m(0x0,i[_0x41d84f(0x19e)]),m(0x1,c[_0x41d84f(0x1c7)])],u);var O=Object['defineProperty'],U=Object[_0x41d84f(0x1c4)],X=(_0xc6f2c6,_0x55fe2d,_0x599cb7)=>_0x55fe2d in _0xc6f2c6?O(_0xc6f2c6,_0x55fe2d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x599cb7}):_0xc6f2c6[_0x55fe2d]=_0x599cb7,N=(_0x15b6ed,_0x3a0a7d,_0xe3880f,_0x56206c)=>{const _0x5ef19c=_0x41d84f;for(var _0x4aa5b7=_0x56206c>0x1?void 0x0:_0x56206c?U(_0x3a0a7d,_0xe3880f):_0x3a0a7d,_0x21b66f=_0x15b6ed[_0x5ef19c(0x190)]-0x1,_0x151e6b;_0x21b66f>=0x0;_0x21b66f--)(_0x151e6b=_0x15b6ed[_0x21b66f])&&(_0x4aa5b7=_0x151e6b(_0x4aa5b7)||_0x4aa5b7);return _0x4aa5b7;},d=(_0x454d2b,_0x48d0d8)=>(_0x39f199,_0xa53a68)=>_0x48d0d8(_0x39f199,_0xa53a68,_0x454d2b),E=(_0x1c3c22,_0x358d3a,_0x56ba4b)=>X(_0x1c3c22,typeof _0x358d3a!=_0x41d84f(0x1b6)?_0x358d3a+'':_0x358d3a,_0x56ba4b);const L=_0x41d84f(0x1b5);function _0x5843(_0x59b3a0,_0x164f3e){const _0x5a4bf2=_0x5a4b();return _0x5843=function(_0x584354,_0x935cc5){_0x584354=_0x584354-0x18d;let _0x19ad6f=_0x5a4bf2[_0x584354];return _0x19ad6f;},_0x5843(_0x59b3a0,_0x164f3e);}exports['UniverSheetsExchangeClientPlugin']=class extends i[_0x41d84f(0x1b1)]{constructor(_0x53abb2=h,_0x16aea5,_0x28e316){const _0x43db42=_0x41d84f;super(),this['_config']=_0x53abb2,this[_0x43db42(0x1b0)]=_0x16aea5,this[_0x43db42(0x1a7)]=_0x28e316;const {menu:_0x4bf2f6,..._0x37f5ab}=i[_0x43db42(0x198)]({},h,this[_0x43db42(0x1aa)]);_0x4bf2f6&&this[_0x43db42(0x1a7)][_0x43db42(0x1b7)](_0x43db42(0x1cb),_0x4bf2f6,{'merge':!0x0}),this[_0x43db42(0x1a7)][_0x43db42(0x1b7)](v,_0x37f5ab);}[_0x41d84f(0x1c1)](){const _0x574cbd=_0x41d84f;[[u]][_0x574cbd(0x1a0)](_0x313b68=>this[_0x574cbd(0x1b0)][_0x574cbd(0x1ca)](_0x313b68));}[_0x41d84f(0x1b9)](){const _0x409293=_0x41d84f;this[_0x409293(0x1b0)]['get'](u);}},E(exports[_0x41d84f(0x1c9)],'pluginName',L),E(exports[_0x41d84f(0x1c9)],_0x41d84f(0x194),i[_0x41d84f(0x193)]['UNIVER_SHEET']),exports['UniverSheetsExchangeClientPlugin']=N([i['DependentOn'](g[_0x41d84f(0x1c5)]),d(0x1,i[_0x41d84f(0x1d0)](i[_0x41d84f(0x1a3)])),d(0x2,i[_0x41d84f(0x18f)])],exports[_0x41d84f(0x1c9)]),exports[_0x41d84f(0x1ae)]=p,exports[_0x41d84f(0x1c8)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2aed27=_0x5b69;function _0x5b69(_0x3c4583,_0x82e390){const _0x38af6c=_0x38af();return _0x5b69=function(_0x5b691a,_0x249e9a){_0x5b691a=_0x5b691a-0x1a2;let _0x4aa889=_0x38af6c[_0x5b691a];return _0x4aa889;},_0x5b69(_0x3c4583,_0x82e390);}(function(_0x5ccf20,_0x9e9b7d){const _0x21313b=_0x5b69,_0x5d30a2=_0x5ccf20();while(!![]){try{const _0x31652a=-parseInt(_0x21313b(0x1b6))/0x1+-parseInt(_0x21313b(0x1be))/0x2+-parseInt(_0x21313b(0x1aa))/0x3+-parseInt(_0x21313b(0x1b3))/0x4*(-parseInt(_0x21313b(0x1c1))/0x5)+-parseInt(_0x21313b(0x1b1))/0x6*(parseInt(_0x21313b(0x1a3))/0x7)+-parseInt(_0x21313b(0x1d0))/0x8+parseInt(_0x21313b(0x1c4))/0x9;if(_0x31652a===_0x9e9b7d)break;else _0x5d30a2['push'](_0x5d30a2['shift']());}catch(_0xff62b8){_0x5d30a2['push'](_0x5d30a2['shift']());}}}(_0x38af,0x1aa87));import{IExchangeOperateService as _0x29b8ca,UniverExchangeClientPlugin as _0x5ea714}from'@univerjs-pro/exchange-client';import{CommandType as _0x4fa472,UniverInstanceType as _0x501c7a,Disposable as _0x58d6e9,ICommandService as _0x24aae8,DependentOn as _0x3d0811,Inject as _0x19573b,Injector as _0xab5044,IConfigService as _0x131da0,Plugin as _0x29f8e8,merge as _0x24f1e7}from'@univerjs/core';import{MenuItemType as _0x180d5f,getMenuHiddenObservable as _0x2df62b,RibbonStartGroup as _0x19c15e,IMenuManagerService as _0x27fbde}from'@univerjs/ui';function _0x38af(){const _0x25a85b=['SUBITEMS','length','exportXLSXByUnitId','BUTTON','91JMAYFs','mergeMenu','exchange-client.operation.export-xlsx','pluginName','exchange-client.operation.import-xlsx','onStarting','importXLSXToSnapshot','637776aoieRZ','defineProperty','_config','_commandService','symbol','SHEET_EXCHANGE_CLIENT_PLUGIN','disposeWithMe','55362PYusZn','_configService','316QSIgiz','sheets-exchange-client.config','exportXLSXBySnapshot','39963YRGOKS','_menuManagerService','importXLSXToUnitId','OTHERS','menu','exchange.file','getOwnPropertyDescriptor','setConfig','231526lvrban','get','DirectExportIcon','1305omGEkR','FolderIcon','_initMenus','5990472DJQKWD','_initCommands','unit','_injector','OPERATION','forEach','registerCommand','search','UNIVER_SHEET','add','exchange.upload','exchange.download','710136IGphNm'];_0x38af=function(){return _0x25a85b;};return _0x38af();}import{WorkbookExportPermission as _0x1308d5}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x205588}from'@univerjs/sheets-ui';const p={'id':_0x2aed27(0x1a7),'type':_0x4fa472[_0x2aed27(0x1c8)],'handler':async _0x1cf60d=>{const _0x33a5ce=_0x2aed27,_0xca31f3=_0x1cf60d[_0x33a5ce(0x1bf)](_0x29b8ca);return new URLSearchParams(location['search'])[_0x33a5ce(0x1bf)]('unit')?_0xca31f3[_0x33a5ce(0x1b8)]():_0xca31f3[_0x33a5ce(0x1a9)](),!0x0;}},u={'id':_0x2aed27(0x1a5),'type':_0x4fa472[_0x2aed27(0x1c8)],'handler':async _0x271dbf=>{const _0x4e0721=_0x2aed27,_0x4736ee=_0x271dbf[_0x4e0721(0x1bf)](_0x29b8ca);return new URLSearchParams(location[_0x4e0721(0x1cb)])[_0x4e0721(0x1bf)](_0x4e0721(0x1c6))?_0x4736ee[_0x4e0721(0x1d3)]():_0x4736ee[_0x4e0721(0x1b5)](),!0x0;}},H=_0x2aed27(0x1b4),l={},S='sheets-exchange-client.operation.exchange';function R(_0x5a90b1){const _0x4ab9f5=_0x2aed27;return{'id':S,'type':_0x180d5f[_0x4ab9f5(0x1d1)],'icon':_0x4ab9f5(0x1c0),'tooltip':_0x4ab9f5(0x1bb),'hidden$':_0x2df62b(_0x5a90b1,_0x501c7a['UNIVER_SHEET']),'disabled$':_0x205588(_0x5a90b1,{'workbookTypes':[_0x1308d5]})};}function w(){const _0x13e802=_0x2aed27;return{'id':p['id'],'type':_0x180d5f['BUTTON'],'title':_0x13e802(0x1ce),'icon':_0x13e802(0x1c2)};}function D(){const _0x1c6dbf=_0x2aed27;return{'id':u['id'],'type':_0x180d5f[_0x1c6dbf(0x1a2)],'title':_0x1c6dbf(0x1cf),'icon':'ExportIcon'};}const F={[_0x19c15e[_0x2aed27(0x1b9)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x2aed27(0x1bc)],A=(_0x53d3bd,_0x5cea3c,_0x101498,_0x9fc72)=>{for(var _0x1258fd=_0x9fc72>0x1?void 0x0:_0x9fc72?G(_0x5cea3c,_0x101498):_0x5cea3c,_0x49cf9a=_0x53d3bd['length']-0x1,_0xae135d;_0x49cf9a>=0x0;_0x49cf9a--)(_0xae135d=_0x53d3bd[_0x49cf9a])&&(_0x1258fd=_0xae135d(_0x1258fd)||_0x1258fd);return _0x1258fd;},d=(_0x17cba7,_0x45faeb)=>(_0x121914,_0x4030a5)=>_0x45faeb(_0x121914,_0x4030a5,_0x17cba7);let c=class extends _0x58d6e9{constructor(_0x29e0db,_0x5e2735){const _0x49af0a=_0x2aed27;super(),this[_0x49af0a(0x1ad)]=_0x29e0db,this['_menuManagerService']=_0x5e2735,this[_0x49af0a(0x1c5)](),this[_0x49af0a(0x1c3)]();}['_initCommands'](){const _0xf82e9f=_0x2aed27;[p,u][_0xf82e9f(0x1c9)](_0x4758e4=>{const _0x42ec6c=_0xf82e9f;this[_0x42ec6c(0x1b0)](this[_0x42ec6c(0x1ad)][_0x42ec6c(0x1ca)](_0x4758e4));});}[_0x2aed27(0x1c3)](){const _0x1b1193=_0x2aed27;this[_0x1b1193(0x1b7)][_0x1b1193(0x1a4)](F);}};c=A([d(0x0,_0x24aae8),d(0x1,_0x27fbde)],c);var j=Object[_0x2aed27(0x1ab)],B=Object[_0x2aed27(0x1bc)],$=(_0x419d47,_0x309481,_0x5c9832)=>_0x309481 in _0x419d47?j(_0x419d47,_0x309481,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c9832}):_0x419d47[_0x309481]=_0x5c9832,V=(_0x4901d8,_0x2c6b86,_0xb2d2b3,_0x43a1c4)=>{const _0x3b7ab5=_0x2aed27;for(var _0x3e2c33=_0x43a1c4>0x1?void 0x0:_0x43a1c4?B(_0x2c6b86,_0xb2d2b3):_0x2c6b86,_0x345476=_0x4901d8[_0x3b7ab5(0x1d2)]-0x1,_0x28f61b;_0x345476>=0x0;_0x345476--)(_0x28f61b=_0x4901d8[_0x345476])&&(_0x3e2c33=_0x28f61b(_0x3e2c33)||_0x3e2c33);return _0x3e2c33;},_=(_0x135ad2,_0xaf2e76)=>(_0x4d6d12,_0x54e7c3)=>_0xaf2e76(_0x4d6d12,_0x54e7c3,_0x135ad2),I=(_0x3e9ed5,_0x2b9e8d,_0x1c8d3d)=>$(_0x3e9ed5,typeof _0x2b9e8d!=_0x2aed27(0x1ae)?_0x2b9e8d+'':_0x2b9e8d,_0x1c8d3d);const W=_0x2aed27(0x1af);let s=class extends _0x29f8e8{constructor(_0x4762de=l,_0x105385,_0x274dab){const _0x479a1a=_0x2aed27;super(),this[_0x479a1a(0x1ac)]=_0x4762de,this['_injector']=_0x105385,this[_0x479a1a(0x1b2)]=_0x274dab;const {menu:_0x5555bd,..._0x1d5c91}=_0x24f1e7({},l,this[_0x479a1a(0x1ac)]);_0x5555bd&&this[_0x479a1a(0x1b2)]['setConfig'](_0x479a1a(0x1ba),_0x5555bd,{'merge':!0x0}),this[_0x479a1a(0x1b2)][_0x479a1a(0x1bd)](H,_0x1d5c91);}[_0x2aed27(0x1a8)](){const _0x113c19=_0x2aed27;[[c]][_0x113c19(0x1c9)](_0x46c1d8=>this['_injector'][_0x113c19(0x1cd)](_0x46c1d8));}['onReady'](){const _0x4ea40c=_0x2aed27;this[_0x4ea40c(0x1c7)]['get'](c);}};I(s,_0x2aed27(0x1a6),W),I(s,'type',_0x501c7a[_0x2aed27(0x1cc)]),s=V([_0x3d0811(_0x5ea714),_(0x1,_0x19573b(_0xab5044)),_(0x2,_0x131da0)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x506606=_0x3ee9;(function(_0x5acbdf,_0x3063cd){const _0x129108=_0x3ee9,_0x1a8752=_0x5acbdf();while(!![]){try{const _0x2cb1d5=-parseInt(_0x129108(0x10a))/0x1*(-parseInt(_0x129108(0x108))/0x2)+parseInt(_0x129108(0x10d))/0x3+-parseInt(_0x129108(0x101))/0x4*(-parseInt(_0x129108(0x111))/0x5)+parseInt(_0x129108(0xee))/0x6*(parseInt(_0x129108(0xf4))/0x7)+parseInt(_0x129108(0x100))/0x8*(parseInt(_0x129108(0xfc))/0x9)+parseInt(_0x129108(0xef))/0xa+-parseInt(_0x129108(0xe1))/0xb;if(_0x2cb1d5===_0x3063cd)break;else _0x1a8752['push'](_0x1a8752['shift']());}catch(_0x2b33d8){_0x1a8752['push'](_0x1a8752['shift']());}}}(_0x5d1a,0xec486));import{IExchangeOperateService as _0x3086e9,UniverExchangeClientPlugin as _0x459bbb}from'@univerjs-pro/exchange-client';function _0x3ee9(_0x56e761,_0x11b481){const _0x5d1a26=_0x5d1a();return _0x3ee9=function(_0x3ee9cb,_0x6e7626){_0x3ee9cb=_0x3ee9cb-0xe1;let _0x17a9d7=_0x5d1a26[_0x3ee9cb];return _0x17a9d7;},_0x3ee9(_0x56e761,_0x11b481);}import{CommandType as _0xc0791e,UniverInstanceType as _0x2bf470,Disposable as _0xe7d9ab,ICommandService as _0x374794,DependentOn as _0x3d9d63,Inject as _0x1b90d9,Injector as _0x574d54,IConfigService as _0x27c7ad,Plugin as _0x53f98a,merge as _0x499411}from'@univerjs/core';import{MenuItemType as _0x2c6ebf,getMenuHiddenObservable as _0x4ddb85,RibbonStartGroup as _0x1e87d9,IMenuManagerService as _0xe69a0}from'@univerjs/ui';import{WorkbookExportPermission as _0x161a8c}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x56761a}from'@univerjs/sheets-ui';function _0x5d1a(){const _0x306258=['sheets-exchange-client.config','OTHERS','DirectExportIcon','_menuManagerService','368811UylLAV','_commandService','unit','mergeMenu','152ItYpAJ','4VhObTn','disposeWithMe','SUBITEMS','BUTTON','search','add','FolderIcon','8450nMNSxG','get','238trbmvk','_config','exchange-client.operation.export-xlsx','3411333HqbHBj','ExportIcon','exportXLSXBySnapshot','exchange.file','2970455bFDlFo','61185333eYwEZW','_initMenus','_initCommands','sheets-exchange-client.operation.exchange','length','OPERATION','onStarting','exportXLSXByUnitId','_configService','type','menu','_injector','UNIVER_SHEET','66vBnctP','14742360elXxcp','registerCommand','defineProperty','onReady','setConfig','980336BDEvjD','importXLSXToUnitId','pluginName','SHEET_EXCHANGE_CLIENT_PLUGIN'];_0x5d1a=function(){return _0x306258;};return _0x5d1a();}const p={'id':'exchange-client.operation.import-xlsx','type':_0xc0791e[_0x506606(0xe6)],'handler':async _0x24abbe=>{const _0x5b5e2a=_0x506606,_0x5979e2=_0x24abbe[_0x5b5e2a(0x109)](_0x3086e9);return new URLSearchParams(location[_0x5b5e2a(0x105)])['get'](_0x5b5e2a(0xfe))?_0x5979e2[_0x5b5e2a(0xf5)]():_0x5979e2['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x506606(0x10c),'type':_0xc0791e[_0x506606(0xe6)],'handler':async _0x50a204=>{const _0xaf8c76=_0x506606,_0x2cc67f=_0x50a204[_0xaf8c76(0x109)](_0x3086e9);return new URLSearchParams(location[_0xaf8c76(0x105)])[_0xaf8c76(0x109)](_0xaf8c76(0xfe))?_0x2cc67f[_0xaf8c76(0xe8)]():_0x2cc67f[_0xaf8c76(0x10f)](),!0x0;}},H=_0x506606(0xf8),l={},S=_0x506606(0xe4);function R(_0x1bb9c7){const _0x27caf8=_0x506606;return{'id':S,'type':_0x2c6ebf[_0x27caf8(0x103)],'icon':_0x27caf8(0xfa),'tooltip':_0x27caf8(0x110),'hidden$':_0x4ddb85(_0x1bb9c7,_0x2bf470[_0x27caf8(0xed)]),'disabled$':_0x56761a(_0x1bb9c7,{'workbookTypes':[_0x161a8c]})};}function w(){const _0x373d6=_0x506606;return{'id':p['id'],'type':_0x2c6ebf[_0x373d6(0x104)],'title':'exchange.upload','icon':_0x373d6(0x107)};}function D(){const _0x13f718=_0x506606;return{'id':u['id'],'type':_0x2c6ebf[_0x13f718(0x104)],'title':'exchange.download','icon':_0x13f718(0x10e)};}const F={[_0x1e87d9[_0x506606(0xf9)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x3f4780,_0x48cba8,_0x3c08fa,_0x530504)=>{for(var _0x380329=_0x530504>0x1?void 0x0:_0x530504?G(_0x48cba8,_0x3c08fa):_0x48cba8,_0x1405e8=_0x3f4780['length']-0x1,_0x7ba8e0;_0x1405e8>=0x0;_0x1405e8--)(_0x7ba8e0=_0x3f4780[_0x1405e8])&&(_0x380329=_0x7ba8e0(_0x380329)||_0x380329);return _0x380329;},d=(_0x328a50,_0x170604)=>(_0x4321d0,_0x58d7c1)=>_0x170604(_0x4321d0,_0x58d7c1,_0x328a50);let c=class extends _0xe7d9ab{constructor(_0xed69e6,_0x2a0c8a){const _0x5f390a=_0x506606;super(),this[_0x5f390a(0xfd)]=_0xed69e6,this[_0x5f390a(0xfb)]=_0x2a0c8a,this[_0x5f390a(0xe3)](),this[_0x5f390a(0xe2)]();}['_initCommands'](){[p,u]['forEach'](_0xbea838=>{const _0x2dbde9=_0x3ee9;this[_0x2dbde9(0x102)](this['_commandService'][_0x2dbde9(0xf0)](_0xbea838));});}[_0x506606(0xe2)](){const _0x36ae5e=_0x506606;this[_0x36ae5e(0xfb)][_0x36ae5e(0xff)](F);}};c=A([d(0x0,_0x374794),d(0x1,_0xe69a0)],c);var j=Object[_0x506606(0xf1)],B=Object['getOwnPropertyDescriptor'],$=(_0x48a298,_0xadec93,_0x195d7f)=>_0xadec93 in _0x48a298?j(_0x48a298,_0xadec93,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x195d7f}):_0x48a298[_0xadec93]=_0x195d7f,V=(_0x1daef5,_0x36fab7,_0x588b63,_0x3bf55c)=>{const _0x4e76a1=_0x506606;for(var _0x239cbc=_0x3bf55c>0x1?void 0x0:_0x3bf55c?B(_0x36fab7,_0x588b63):_0x36fab7,_0x38cdd1=_0x1daef5[_0x4e76a1(0xe5)]-0x1,_0x49d44c;_0x38cdd1>=0x0;_0x38cdd1--)(_0x49d44c=_0x1daef5[_0x38cdd1])&&(_0x239cbc=_0x49d44c(_0x239cbc)||_0x239cbc);return _0x239cbc;},_=(_0x52c3a9,_0xf85811)=>(_0x2632e8,_0x85afde)=>_0xf85811(_0x2632e8,_0x85afde,_0x52c3a9),I=(_0xd2b379,_0x3d3376,_0x42ef53)=>$(_0xd2b379,typeof _0x3d3376!='symbol'?_0x3d3376+'':_0x3d3376,_0x42ef53);const W=_0x506606(0xf7);let s=class extends _0x53f98a{constructor(_0x4c00e4=l,_0x11995e,_0x450849){const _0x44896b=_0x506606;super(),this[_0x44896b(0x10b)]=_0x4c00e4,this[_0x44896b(0xec)]=_0x11995e,this[_0x44896b(0xe9)]=_0x450849;const {menu:_0x493052,..._0x248366}=_0x499411({},l,this[_0x44896b(0x10b)]);_0x493052&&this[_0x44896b(0xe9)][_0x44896b(0xf3)](_0x44896b(0xeb),_0x493052,{'merge':!0x0}),this['_configService'][_0x44896b(0xf3)](H,_0x248366);}[_0x506606(0xe7)](){const _0x59457d=_0x506606;[[c]]['forEach'](_0x14fdc1=>this[_0x59457d(0xec)][_0x59457d(0x106)](_0x14fdc1));}[_0x506606(0xf2)](){const _0x39bf0d=_0x506606;this[_0x39bf0d(0xec)][_0x39bf0d(0x109)](c);}};I(s,_0x506606(0xf6),W),I(s,_0x506606(0xea),_0x2bf470['UNIVER_SHEET']),s=V([_0x3d9d63(_0x459bbb),_(0x1,_0x1b90d9(_0x574d54)),_(0x2,_0x27c7ad)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2aed27=_0x5b69;function _0x5b69(_0x3c4583,_0x82e390){const _0x38af6c=_0x38af();return _0x5b69=function(_0x5b691a,_0x249e9a){_0x5b691a=_0x5b691a-0x1a2;let _0x4aa889=_0x38af6c[_0x5b691a];return _0x4aa889;},_0x5b69(_0x3c4583,_0x82e390);}(function(_0x5ccf20,_0x9e9b7d){const _0x21313b=_0x5b69,_0x5d30a2=_0x5ccf20();while(!![]){try{const _0x31652a=-parseInt(_0x21313b(0x1b6))/0x1+-parseInt(_0x21313b(0x1be))/0x2+-parseInt(_0x21313b(0x1aa))/0x3+-parseInt(_0x21313b(0x1b3))/0x4*(-parseInt(_0x21313b(0x1c1))/0x5)+-parseInt(_0x21313b(0x1b1))/0x6*(parseInt(_0x21313b(0x1a3))/0x7)+-parseInt(_0x21313b(0x1d0))/0x8+parseInt(_0x21313b(0x1c4))/0x9;if(_0x31652a===_0x9e9b7d)break;else _0x5d30a2['push'](_0x5d30a2['shift']());}catch(_0xff62b8){_0x5d30a2['push'](_0x5d30a2['shift']());}}}(_0x38af,0x1aa87));import{IExchangeOperateService as _0x29b8ca,UniverExchangeClientPlugin as _0x5ea714}from'@univerjs-pro/exchange-client';import{CommandType as _0x4fa472,UniverInstanceType as _0x501c7a,Disposable as _0x58d6e9,ICommandService as _0x24aae8,DependentOn as _0x3d0811,Inject as _0x19573b,Injector as _0xab5044,IConfigService as _0x131da0,Plugin as _0x29f8e8,merge as _0x24f1e7}from'@univerjs/core';import{MenuItemType as _0x180d5f,getMenuHiddenObservable as _0x2df62b,RibbonStartGroup as _0x19c15e,IMenuManagerService as _0x27fbde}from'@univerjs/ui';function _0x38af(){const _0x25a85b=['SUBITEMS','length','exportXLSXByUnitId','BUTTON','91JMAYFs','mergeMenu','exchange-client.operation.export-xlsx','pluginName','exchange-client.operation.import-xlsx','onStarting','importXLSXToSnapshot','637776aoieRZ','defineProperty','_config','_commandService','symbol','SHEET_EXCHANGE_CLIENT_PLUGIN','disposeWithMe','55362PYusZn','_configService','316QSIgiz','sheets-exchange-client.config','exportXLSXBySnapshot','39963YRGOKS','_menuManagerService','importXLSXToUnitId','OTHERS','menu','exchange.file','getOwnPropertyDescriptor','setConfig','231526lvrban','get','DirectExportIcon','1305omGEkR','FolderIcon','_initMenus','5990472DJQKWD','_initCommands','unit','_injector','OPERATION','forEach','registerCommand','search','UNIVER_SHEET','add','exchange.upload','exchange.download','710136IGphNm'];_0x38af=function(){return _0x25a85b;};return _0x38af();}import{WorkbookExportPermission as _0x1308d5}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x205588}from'@univerjs/sheets-ui';const p={'id':_0x2aed27(0x1a7),'type':_0x4fa472[_0x2aed27(0x1c8)],'handler':async _0x1cf60d=>{const _0x33a5ce=_0x2aed27,_0xca31f3=_0x1cf60d[_0x33a5ce(0x1bf)](_0x29b8ca);return new URLSearchParams(location['search'])[_0x33a5ce(0x1bf)]('unit')?_0xca31f3[_0x33a5ce(0x1b8)]():_0xca31f3[_0x33a5ce(0x1a9)](),!0x0;}},u={'id':_0x2aed27(0x1a5),'type':_0x4fa472[_0x2aed27(0x1c8)],'handler':async _0x271dbf=>{const _0x4e0721=_0x2aed27,_0x4736ee=_0x271dbf[_0x4e0721(0x1bf)](_0x29b8ca);return new URLSearchParams(location[_0x4e0721(0x1cb)])[_0x4e0721(0x1bf)](_0x4e0721(0x1c6))?_0x4736ee[_0x4e0721(0x1d3)]():_0x4736ee[_0x4e0721(0x1b5)](),!0x0;}},H=_0x2aed27(0x1b4),l={},S='sheets-exchange-client.operation.exchange';function R(_0x5a90b1){const _0x4ab9f5=_0x2aed27;return{'id':S,'type':_0x180d5f[_0x4ab9f5(0x1d1)],'icon':_0x4ab9f5(0x1c0),'tooltip':_0x4ab9f5(0x1bb),'hidden$':_0x2df62b(_0x5a90b1,_0x501c7a['UNIVER_SHEET']),'disabled$':_0x205588(_0x5a90b1,{'workbookTypes':[_0x1308d5]})};}function w(){const _0x13e802=_0x2aed27;return{'id':p['id'],'type':_0x180d5f['BUTTON'],'title':_0x13e802(0x1ce),'icon':_0x13e802(0x1c2)};}function D(){const _0x1c6dbf=_0x2aed27;return{'id':u['id'],'type':_0x180d5f[_0x1c6dbf(0x1a2)],'title':_0x1c6dbf(0x1cf),'icon':'ExportIcon'};}const F={[_0x19c15e[_0x2aed27(0x1b9)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x2aed27(0x1bc)],A=(_0x53d3bd,_0x5cea3c,_0x101498,_0x9fc72)=>{for(var _0x1258fd=_0x9fc72>0x1?void 0x0:_0x9fc72?G(_0x5cea3c,_0x101498):_0x5cea3c,_0x49cf9a=_0x53d3bd['length']-0x1,_0xae135d;_0x49cf9a>=0x0;_0x49cf9a--)(_0xae135d=_0x53d3bd[_0x49cf9a])&&(_0x1258fd=_0xae135d(_0x1258fd)||_0x1258fd);return _0x1258fd;},d=(_0x17cba7,_0x45faeb)=>(_0x121914,_0x4030a5)=>_0x45faeb(_0x121914,_0x4030a5,_0x17cba7);let c=class extends _0x58d6e9{constructor(_0x29e0db,_0x5e2735){const _0x49af0a=_0x2aed27;super(),this[_0x49af0a(0x1ad)]=_0x29e0db,this['_menuManagerService']=_0x5e2735,this[_0x49af0a(0x1c5)](),this[_0x49af0a(0x1c3)]();}['_initCommands'](){const _0xf82e9f=_0x2aed27;[p,u][_0xf82e9f(0x1c9)](_0x4758e4=>{const _0x42ec6c=_0xf82e9f;this[_0x42ec6c(0x1b0)](this[_0x42ec6c(0x1ad)][_0x42ec6c(0x1ca)](_0x4758e4));});}[_0x2aed27(0x1c3)](){const _0x1b1193=_0x2aed27;this[_0x1b1193(0x1b7)][_0x1b1193(0x1a4)](F);}};c=A([d(0x0,_0x24aae8),d(0x1,_0x27fbde)],c);var j=Object[_0x2aed27(0x1ab)],B=Object[_0x2aed27(0x1bc)],$=(_0x419d47,_0x309481,_0x5c9832)=>_0x309481 in _0x419d47?j(_0x419d47,_0x309481,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c9832}):_0x419d47[_0x309481]=_0x5c9832,V=(_0x4901d8,_0x2c6b86,_0xb2d2b3,_0x43a1c4)=>{const _0x3b7ab5=_0x2aed27;for(var _0x3e2c33=_0x43a1c4>0x1?void 0x0:_0x43a1c4?B(_0x2c6b86,_0xb2d2b3):_0x2c6b86,_0x345476=_0x4901d8[_0x3b7ab5(0x1d2)]-0x1,_0x28f61b;_0x345476>=0x0;_0x345476--)(_0x28f61b=_0x4901d8[_0x345476])&&(_0x3e2c33=_0x28f61b(_0x3e2c33)||_0x3e2c33);return _0x3e2c33;},_=(_0x135ad2,_0xaf2e76)=>(_0x4d6d12,_0x54e7c3)=>_0xaf2e76(_0x4d6d12,_0x54e7c3,_0x135ad2),I=(_0x3e9ed5,_0x2b9e8d,_0x1c8d3d)=>$(_0x3e9ed5,typeof _0x2b9e8d!=_0x2aed27(0x1ae)?_0x2b9e8d+'':_0x2b9e8d,_0x1c8d3d);const W=_0x2aed27(0x1af);let s=class extends _0x29f8e8{constructor(_0x4762de=l,_0x105385,_0x274dab){const _0x479a1a=_0x2aed27;super(),this[_0x479a1a(0x1ac)]=_0x4762de,this['_injector']=_0x105385,this[_0x479a1a(0x1b2)]=_0x274dab;const {menu:_0x5555bd,..._0x1d5c91}=_0x24f1e7({},l,this[_0x479a1a(0x1ac)]);_0x5555bd&&this[_0x479a1a(0x1b2)]['setConfig'](_0x479a1a(0x1ba),_0x5555bd,{'merge':!0x0}),this[_0x479a1a(0x1b2)][_0x479a1a(0x1bd)](H,_0x1d5c91);}[_0x2aed27(0x1a8)](){const _0x113c19=_0x2aed27;[[c]][_0x113c19(0x1c9)](_0x46c1d8=>this['_injector'][_0x113c19(0x1cd)](_0x46c1d8));}['onReady'](){const _0x4ea40c=_0x2aed27;this[_0x4ea40c(0x1c7)]['get'](c);}};I(s,_0x2aed27(0x1a6),W),I(s,'type',_0x501c7a[_0x2aed27(0x1cc)]),s=V([_0x3d0811(_0x5ea714),_(0x1,_0x19573b(_0xab5044)),_(0x2,_0x131da0)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x506606=_0x3ee9;(function(_0x5acbdf,_0x3063cd){const _0x129108=_0x3ee9,_0x1a8752=_0x5acbdf();while(!![]){try{const _0x2cb1d5=-parseInt(_0x129108(0x10a))/0x1*(-parseInt(_0x129108(0x108))/0x2)+parseInt(_0x129108(0x10d))/0x3+-parseInt(_0x129108(0x101))/0x4*(-parseInt(_0x129108(0x111))/0x5)+parseInt(_0x129108(0xee))/0x6*(parseInt(_0x129108(0xf4))/0x7)+parseInt(_0x129108(0x100))/0x8*(parseInt(_0x129108(0xfc))/0x9)+parseInt(_0x129108(0xef))/0xa+-parseInt(_0x129108(0xe1))/0xb;if(_0x2cb1d5===_0x3063cd)break;else _0x1a8752['push'](_0x1a8752['shift']());}catch(_0x2b33d8){_0x1a8752['push'](_0x1a8752['shift']());}}}(_0x5d1a,0xec486));import{IExchangeOperateService as _0x3086e9,UniverExchangeClientPlugin as _0x459bbb}from'@univerjs-pro/exchange-client';function _0x3ee9(_0x56e761,_0x11b481){const _0x5d1a26=_0x5d1a();return _0x3ee9=function(_0x3ee9cb,_0x6e7626){_0x3ee9cb=_0x3ee9cb-0xe1;let _0x17a9d7=_0x5d1a26[_0x3ee9cb];return _0x17a9d7;},_0x3ee9(_0x56e761,_0x11b481);}import{CommandType as _0xc0791e,UniverInstanceType as _0x2bf470,Disposable as _0xe7d9ab,ICommandService as _0x374794,DependentOn as _0x3d9d63,Inject as _0x1b90d9,Injector as _0x574d54,IConfigService as _0x27c7ad,Plugin as _0x53f98a,merge as _0x499411}from'@univerjs/core';import{MenuItemType as _0x2c6ebf,getMenuHiddenObservable as _0x4ddb85,RibbonStartGroup as _0x1e87d9,IMenuManagerService as _0xe69a0}from'@univerjs/ui';import{WorkbookExportPermission as _0x161a8c}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x56761a}from'@univerjs/sheets-ui';function _0x5d1a(){const _0x306258=['sheets-exchange-client.config','OTHERS','DirectExportIcon','_menuManagerService','368811UylLAV','_commandService','unit','mergeMenu','152ItYpAJ','4VhObTn','disposeWithMe','SUBITEMS','BUTTON','search','add','FolderIcon','8450nMNSxG','get','238trbmvk','_config','exchange-client.operation.export-xlsx','3411333HqbHBj','ExportIcon','exportXLSXBySnapshot','exchange.file','2970455bFDlFo','61185333eYwEZW','_initMenus','_initCommands','sheets-exchange-client.operation.exchange','length','OPERATION','onStarting','exportXLSXByUnitId','_configService','type','menu','_injector','UNIVER_SHEET','66vBnctP','14742360elXxcp','registerCommand','defineProperty','onReady','setConfig','980336BDEvjD','importXLSXToUnitId','pluginName','SHEET_EXCHANGE_CLIENT_PLUGIN'];_0x5d1a=function(){return _0x306258;};return _0x5d1a();}const p={'id':'exchange-client.operation.import-xlsx','type':_0xc0791e[_0x506606(0xe6)],'handler':async _0x24abbe=>{const _0x5b5e2a=_0x506606,_0x5979e2=_0x24abbe[_0x5b5e2a(0x109)](_0x3086e9);return new URLSearchParams(location[_0x5b5e2a(0x105)])['get'](_0x5b5e2a(0xfe))?_0x5979e2[_0x5b5e2a(0xf5)]():_0x5979e2['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x506606(0x10c),'type':_0xc0791e[_0x506606(0xe6)],'handler':async _0x50a204=>{const _0xaf8c76=_0x506606,_0x2cc67f=_0x50a204[_0xaf8c76(0x109)](_0x3086e9);return new URLSearchParams(location[_0xaf8c76(0x105)])[_0xaf8c76(0x109)](_0xaf8c76(0xfe))?_0x2cc67f[_0xaf8c76(0xe8)]():_0x2cc67f[_0xaf8c76(0x10f)](),!0x0;}},H=_0x506606(0xf8),l={},S=_0x506606(0xe4);function R(_0x1bb9c7){const _0x27caf8=_0x506606;return{'id':S,'type':_0x2c6ebf[_0x27caf8(0x103)],'icon':_0x27caf8(0xfa),'tooltip':_0x27caf8(0x110),'hidden$':_0x4ddb85(_0x1bb9c7,_0x2bf470[_0x27caf8(0xed)]),'disabled$':_0x56761a(_0x1bb9c7,{'workbookTypes':[_0x161a8c]})};}function w(){const _0x373d6=_0x506606;return{'id':p['id'],'type':_0x2c6ebf[_0x373d6(0x104)],'title':'exchange.upload','icon':_0x373d6(0x107)};}function D(){const _0x13f718=_0x506606;return{'id':u['id'],'type':_0x2c6ebf[_0x13f718(0x104)],'title':'exchange.download','icon':_0x13f718(0x10e)};}const F={[_0x1e87d9[_0x506606(0xf9)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x3f4780,_0x48cba8,_0x3c08fa,_0x530504)=>{for(var _0x380329=_0x530504>0x1?void 0x0:_0x530504?G(_0x48cba8,_0x3c08fa):_0x48cba8,_0x1405e8=_0x3f4780['length']-0x1,_0x7ba8e0;_0x1405e8>=0x0;_0x1405e8--)(_0x7ba8e0=_0x3f4780[_0x1405e8])&&(_0x380329=_0x7ba8e0(_0x380329)||_0x380329);return _0x380329;},d=(_0x328a50,_0x170604)=>(_0x4321d0,_0x58d7c1)=>_0x170604(_0x4321d0,_0x58d7c1,_0x328a50);let c=class extends _0xe7d9ab{constructor(_0xed69e6,_0x2a0c8a){const _0x5f390a=_0x506606;super(),this[_0x5f390a(0xfd)]=_0xed69e6,this[_0x5f390a(0xfb)]=_0x2a0c8a,this[_0x5f390a(0xe3)](),this[_0x5f390a(0xe2)]();}['_initCommands'](){[p,u]['forEach'](_0xbea838=>{const _0x2dbde9=_0x3ee9;this[_0x2dbde9(0x102)](this['_commandService'][_0x2dbde9(0xf0)](_0xbea838));});}[_0x506606(0xe2)](){const _0x36ae5e=_0x506606;this[_0x36ae5e(0xfb)][_0x36ae5e(0xff)](F);}};c=A([d(0x0,_0x374794),d(0x1,_0xe69a0)],c);var j=Object[_0x506606(0xf1)],B=Object['getOwnPropertyDescriptor'],$=(_0x48a298,_0xadec93,_0x195d7f)=>_0xadec93 in _0x48a298?j(_0x48a298,_0xadec93,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x195d7f}):_0x48a298[_0xadec93]=_0x195d7f,V=(_0x1daef5,_0x36fab7,_0x588b63,_0x3bf55c)=>{const _0x4e76a1=_0x506606;for(var _0x239cbc=_0x3bf55c>0x1?void 0x0:_0x3bf55c?B(_0x36fab7,_0x588b63):_0x36fab7,_0x38cdd1=_0x1daef5[_0x4e76a1(0xe5)]-0x1,_0x49d44c;_0x38cdd1>=0x0;_0x38cdd1--)(_0x49d44c=_0x1daef5[_0x38cdd1])&&(_0x239cbc=_0x49d44c(_0x239cbc)||_0x239cbc);return _0x239cbc;},_=(_0x52c3a9,_0xf85811)=>(_0x2632e8,_0x85afde)=>_0xf85811(_0x2632e8,_0x85afde,_0x52c3a9),I=(_0xd2b379,_0x3d3376,_0x42ef53)=>$(_0xd2b379,typeof _0x3d3376!='symbol'?_0x3d3376+'':_0x3d3376,_0x42ef53);const W=_0x506606(0xf7);let s=class extends _0x53f98a{constructor(_0x4c00e4=l,_0x11995e,_0x450849){const _0x44896b=_0x506606;super(),this[_0x44896b(0x10b)]=_0x4c00e4,this[_0x44896b(0xec)]=_0x11995e,this[_0x44896b(0xe9)]=_0x450849;const {menu:_0x493052,..._0x248366}=_0x499411({},l,this[_0x44896b(0x10b)]);_0x493052&&this[_0x44896b(0xe9)][_0x44896b(0xf3)](_0x44896b(0xeb),_0x493052,{'merge':!0x0}),this['_configService'][_0x44896b(0xf3)](H,_0x248366);}[_0x506606(0xe7)](){const _0x59457d=_0x506606;[[c]]['forEach'](_0x14fdc1=>this[_0x59457d(0xec)][_0x59457d(0x106)](_0x14fdc1));}[_0x506606(0xf2)](){const _0x39bf0d=_0x506606;this[_0x39bf0d(0xec)][_0x39bf0d(0x109)](c);}};I(s,_0x506606(0xf6),W),I(s,_0x506606(0xea),_0x2bf470['UNIVER_SHEET']),s=V([_0x3d9d63(_0x459bbb),_(0x1,_0x1b90d9(_0x574d54)),_(0x2,_0x27c7ad)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x45fa2c,_0x2a2848){const _0x1a9bf2=_0x4677,_0x122953=_0x45fa2c();while(!![]){try{const _0x48e810=-parseInt(_0x1a9bf2(0x123))/0x1+parseInt(_0x1a9bf2(0x132))/0x2+-parseInt(_0x1a9bf2(0x137))/0x3+parseInt(_0x1a9bf2(0xf0))/0x4*(parseInt(_0x1a9bf2(0xef))/0x5)+-parseInt(_0x1a9bf2(0xfe))/0x6+parseInt(_0x1a9bf2(0x104))/0x7*(parseInt(_0x1a9bf2(0x131))/0x8)+parseInt(_0x1a9bf2(0xf1))/0x9*(-parseInt(_0x1a9bf2(0x101))/0xa);if(_0x48e810===_0x2a2848)break;else _0x122953['push'](_0x122953['shift']());}catch(_0x4a1314){_0x122953['push'](_0x122953['shift']());}}}(_0x2f94,0x5ebd3),function(_0x216f97,_0xae6fb3){const _0x19495a=_0x4677;typeof exports=='object'&&typeof module<'u'?_0xae6fb3(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define=='function'&&define['amd']?define([_0x19495a(0x106),_0x19495a(0xf3),_0x19495a(0x11e),_0x19495a(0x110),'@univerjs/sheets',_0x19495a(0x12c)],_0xae6fb3):(_0x216f97=typeof globalThis<'u'?globalThis:_0x216f97||self,_0xae6fb3(_0x216f97[_0x19495a(0x138)]={},_0x216f97[_0x19495a(0x129)],_0x216f97[_0x19495a(0x125)],_0x216f97[_0x19495a(0xfc)],_0x216f97['UniverSheets'],_0x216f97['UniverSheetsUi']));}(this,function(_0x7f4cb0,_0x21e6bf,_0x53b685,_0x106794,_0x2152c7,_0x4cc2f1){'use strict';const _0x45430c=_0x4677;const _0x7bcdc0={'id':'exchange-client.operation.import-xlsx','type':_0x53b685['CommandType'][_0x45430c(0x105)],'handler':async _0x5e9280=>{const _0xf3e2ff=_0x45430c,_0x1cddca=_0x5e9280[_0xf3e2ff(0x11d)](_0x21e6bf['IExchangeOperateService']);return new URLSearchParams(location[_0xf3e2ff(0x119)])['get'](_0xf3e2ff(0xfa))?_0x1cddca[_0xf3e2ff(0x121)]():_0x1cddca[_0xf3e2ff(0x108)](),!0x0;}},_0x497151={'id':'exchange-client.operation.export-xlsx','type':_0x53b685[_0x45430c(0x128)][_0x45430c(0x105)],'handler':async _0x406841=>{const _0x29cf80=_0x45430c,_0x4cf73e=_0x406841[_0x29cf80(0x11d)](_0x21e6bf[_0x29cf80(0x130)]);return new URLSearchParams(location[_0x29cf80(0x119)])[_0x29cf80(0x11d)]('unit')?_0x4cf73e['exportXLSXByUnitId']():_0x4cf73e[_0x29cf80(0x112)](),!0x0;}},_0x1bc9fa='sheets-exchange-client.config',_0x4e6c76={},_0x41dfd7=_0x45430c(0x12f);function _0x16d673(_0x4c558a){const _0x1a0c60=_0x45430c;return{'id':_0x41dfd7,'type':_0x106794[_0x1a0c60(0x13a)][_0x1a0c60(0x12d)],'icon':_0x1a0c60(0xf7),'tooltip':_0x1a0c60(0x122),'hidden$':_0x106794[_0x1a0c60(0x120)](_0x4c558a,_0x53b685[_0x1a0c60(0x107)][_0x1a0c60(0x139)]),'disabled$':_0x4cc2f1[_0x1a0c60(0x118)](_0x4c558a,{'workbookTypes':[_0x2152c7[_0x1a0c60(0x10c)]]})};}function _0x1c6778(){const _0x2ca366=_0x45430c;return{'id':_0x7bcdc0['id'],'type':_0x106794[_0x2ca366(0x13a)][_0x2ca366(0x12a)],'title':_0x2ca366(0x10a),'icon':'FolderIcon'};}function _0x1f18f1(){const _0x4f069c=_0x45430c;return{'id':_0x497151['id'],'type':_0x106794[_0x4f069c(0x13a)][_0x4f069c(0x12a)],'title':_0x4f069c(0x11c),'icon':_0x4f069c(0x100)};}const _0x4a704b={[_0x106794[_0x45430c(0xf6)]['OTHERS']]:{[_0x41dfd7]:{'order':0.3,'menuItemFactory':_0x16d673,[_0x7bcdc0['id']]:{'order':0x0,'menuItemFactory':_0x1c6778},[_0x497151['id']]:{'order':0x1,'menuItemFactory':_0x1f18f1}}}};var _0x5064dd=Object[_0x45430c(0xfd)],_0x860395=(_0x56053c,_0x34faee,_0x328595,_0x5cebb7)=>{const _0x24393e=_0x45430c;for(var _0x5b2088=_0x5cebb7>0x1?void 0x0:_0x5cebb7?_0x5064dd(_0x34faee,_0x328595):_0x34faee,_0x4e13f8=_0x56053c[_0x24393e(0xff)]-0x1,_0x167ff9;_0x4e13f8>=0x0;_0x4e13f8--)(_0x167ff9=_0x56053c[_0x4e13f8])&&(_0x5b2088=_0x167ff9(_0x5b2088)||_0x5b2088);return _0x5b2088;},_0x25fc2a=(_0xd9e402,_0x536506)=>(_0x23bbf7,_0x318729)=>_0x536506(_0x23bbf7,_0x318729,_0xd9e402);let _0x4b3e38=class extends _0x53b685[_0x45430c(0x10b)]{constructor(_0x2540ee,_0x4185cf){const _0x318550=_0x45430c;super(),this[_0x318550(0x11f)]=_0x2540ee,this[_0x318550(0x116)]=_0x4185cf,this[_0x318550(0xf9)](),this[_0x318550(0x115)]();}[_0x45430c(0xf9)](){[_0x7bcdc0,_0x497151]['forEach'](_0x37c070=>{const _0x918594=_0x4677;this[_0x918594(0x12e)](this[_0x918594(0x11f)][_0x918594(0x13b)](_0x37c070));});}[_0x45430c(0x115)](){const _0x352ae3=_0x45430c;this[_0x352ae3(0x116)]['mergeMenu'](_0x4a704b);}};_0x4b3e38=_0x860395([_0x25fc2a(0x0,_0x53b685[_0x45430c(0x114)]),_0x25fc2a(0x1,_0x106794[_0x45430c(0x134)])],_0x4b3e38);var _0x14e658=Object[_0x45430c(0x113)],_0x444d5c=Object[_0x45430c(0xfd)],_0x44aebc=(_0x5bb2f8,_0x4c3860,_0x35bb2e)=>_0x4c3860 in _0x5bb2f8?_0x14e658(_0x5bb2f8,_0x4c3860,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x35bb2e}):_0x5bb2f8[_0x4c3860]=_0x35bb2e,_0x2e9092=(_0x4abf00,_0x1a6232,_0x542b10,_0xe7b2a2)=>{const _0x139572=_0x45430c;for(var _0x39686d=_0xe7b2a2>0x1?void 0x0:_0xe7b2a2?_0x444d5c(_0x1a6232,_0x542b10):_0x1a6232,_0x557232=_0x4abf00[_0x139572(0xff)]-0x1,_0xee70d;_0x557232>=0x0;_0x557232--)(_0xee70d=_0x4abf00[_0x557232])&&(_0x39686d=_0xee70d(_0x39686d)||_0x39686d);return _0x39686d;},_0x494d12=(_0x1a8694,_0x2c4e60)=>(_0x44189d,_0x22903b)=>_0x2c4e60(_0x44189d,_0x22903b,_0x1a8694),_0x262395=(_0x337a45,_0x10f6b3,_0x5e8ca7)=>_0x44aebc(_0x337a45,typeof _0x10f6b3!=_0x45430c(0x12b)?_0x10f6b3+'':_0x10f6b3,_0x5e8ca7);const _0x4d3cf5=_0x45430c(0x126);_0x7f4cb0['UniverSheetsExchangeClientPlugin']=class extends _0x53b685[_0x45430c(0x10f)]{constructor(_0x319b27=_0x4e6c76,_0x16b4ad,_0x1cc321){const _0x5ab481=_0x45430c;super(),this[_0x5ab481(0xf4)]=_0x319b27,this['_injector']=_0x16b4ad,this[_0x5ab481(0xf2)]=_0x1cc321;const {menu:_0x34fbf1,..._0x13e3b6}=_0x53b685[_0x5ab481(0x102)]({},_0x4e6c76,this[_0x5ab481(0xf4)]);_0x34fbf1&&this[_0x5ab481(0xf2)][_0x5ab481(0x10e)]('menu',_0x34fbf1,{'merge':!0x0}),this[_0x5ab481(0xf2)][_0x5ab481(0x10e)](_0x1bc9fa,_0x13e3b6);}[_0x45430c(0x11a)](){const _0x54c000=_0x45430c;[[_0x4b3e38]]['forEach'](_0x20aa9c=>this[_0x54c000(0xfb)][_0x54c000(0x109)](_0x20aa9c));}[_0x45430c(0x103)](){const _0x23b69b=_0x45430c;this[_0x23b69b(0xfb)][_0x23b69b(0x11d)](_0x4b3e38);}},_0x262395(_0x7f4cb0[_0x45430c(0x111)],_0x45430c(0xf5),_0x4d3cf5),_0x262395(_0x7f4cb0['UniverSheetsExchangeClientPlugin'],_0x45430c(0x117),_0x53b685[_0x45430c(0x107)][_0x45430c(0x139)]),_0x7f4cb0['UniverSheetsExchangeClientPlugin']=_0x2e9092([_0x53b685[_0x45430c(0x10d)](_0x21e6bf[_0x45430c(0x11b)]),_0x494d12(0x1,_0x53b685[_0x45430c(0x136)](_0x53b685[_0x45430c(0x133)])),_0x494d12(0x2,_0x53b685['IConfigService'])],_0x7f4cb0[_0x45430c(0x111)]),_0x7f4cb0[_0x45430c(0xf8)]=_0x497151,_0x7f4cb0[_0x45430c(0x127)]=_0x7bcdc0,Object[_0x45430c(0x113)](_0x7f4cb0,Symbol[_0x45430c(0x135)],{'value':_0x45430c(0x124)});}));function _0x4677(_0x36bc6d,_0x3d3545){const _0x2f9427=_0x2f94();return _0x4677=function(_0x4677f3,_0xd36693){_0x4677f3=_0x4677f3-0xef;let _0x1243ca=_0x2f9427[_0x4677f3];return _0x1243ca;},_0x4677(_0x36bc6d,_0x3d3545);}function _0x2f94(){const _0xe880f5=['exchange.download','get','@univerjs/core','_commandService','getMenuHiddenObservable','importXLSXToUnitId','exchange.file','174726TxObPH','Module','UniverCore','SHEET_EXCHANGE_CLIENT_PLUGIN','ImportXLSXOperation','CommandType','UniverProExchangeClient','BUTTON','symbol','@univerjs/sheets-ui','SUBITEMS','disposeWithMe','sheets-exchange-client.operation.exchange','IExchangeOperateService','32408aaSaxC','205010HJqRPI','Injector','IMenuManagerService','toStringTag','Inject','107436QvWdSK','UniverProSheetsExchangeClient','UNIVER_SHEET','MenuItemType','registerCommand','5Fouydn','1417704IgSbAz','144mIptlC','_configService','@univerjs-pro/exchange-client','_config','pluginName','RibbonStartGroup','DirectExportIcon','ExportXLSXOperation','_initCommands','unit','_injector','UniverUi','getOwnPropertyDescriptor','1982448XjDIGe','length','ExportIcon','84740qmyxiD','merge','onReady','1050UpYFnA','OPERATION','exports','UniverInstanceType','importXLSXToSnapshot','add','exchange.upload','Disposable','WorkbookExportPermission','DependentOn','setConfig','Plugin','@univerjs/ui','UniverSheetsExchangeClientPlugin','exportXLSXBySnapshot','defineProperty','ICommandService','_initMenus','_menuManagerService','type','getCurrentRangeDisable$','search','onStarting','UniverExchangeClientPlugin'];_0x2f94=function(){return _0xe880f5;};return _0x2f94();}
1
+ function _0x492d(){const _0x3438a6=['exportXLSXByUnitId','exchange.file','exportXLSXBySnapshot','@univerjs-pro/exchange-client','@univerjs/ui','get','ExportXLSXOperation','24987280rwwVVD','CommandType','merge','ImportXLSXOperation','DirectExportIcon','OTHERS','_menuManagerService','SHEET_EXCHANGE_CLIENT_PLUGIN','DependentOn','mergeMenu','2688790AbyPks','defineProperty','4255380LIpGUp','52194OmWGcB','UniverInstanceType','registerCommand','WorkbookExportPermission','search','7119490ccQgEU','Disposable','UniverSheetsExchangeClientPlugin','_injector','IMenuManagerService','3770937EiObgC','setConfig','onStarting','importXLSXToSnapshot','OPERATION','UniverProExchangeClient','menu','ICommandService','16EeEbwV','length','exports','onReady','RibbonStartGroup','unit','_initCommands','_commandService','16COkQhr','UniverExchangeClientPlugin','710841QGJQHj','@univerjs/sheets','BUTTON','add','function','Plugin','_config','forEach','exchange.download','object','exchange-client.operation.export-xlsx','Injector','ExportIcon','34PXgcgi','importXLSXToUnitId','MenuItemType','Module','IExchangeOperateService','UniverSheetsUi','_initMenus','IConfigService','@univerjs/core','_configService','UNIVER_SHEET','UniverCore','sheets-exchange-client.config','UniverUi','amd'];_0x492d=function(){return _0x3438a6;};return _0x492d();}function _0x3e25(_0x389d36,_0x5b6555){const _0x492de8=_0x492d();return _0x3e25=function(_0x3e25b8,_0x415b77){_0x3e25b8=_0x3e25b8-0x10f;let _0x361481=_0x492de8[_0x3e25b8];return _0x361481;},_0x3e25(_0x389d36,_0x5b6555);}(function(_0x189627,_0x117b7c){const _0x323463=_0x3e25,_0x45b6a4=_0x189627();while(!![]){try{const _0x583f7a=-parseInt(_0x323463(0x12c))/0x1*(parseInt(_0x323463(0x14f))/0x2)+-parseInt(_0x323463(0x11f))/0x3*(-parseInt(_0x323463(0x115))/0x4)+parseInt(_0x323463(0x14c))/0x5+parseInt(_0x323463(0x14e))/0x6+parseInt(_0x323463(0x154))/0x7+parseInt(_0x323463(0x11d))/0x8*(parseInt(_0x323463(0x159))/0x9)+-parseInt(_0x323463(0x142))/0xa;if(_0x583f7a===_0x117b7c)break;else _0x45b6a4['push'](_0x45b6a4['shift']());}catch(_0x1cef61){_0x45b6a4['push'](_0x45b6a4['shift']());}}}(_0x492d,0xa20fe),function(_0x39dcc2,_0x4e7cae){const _0x5c3f57=_0x3e25;typeof exports==_0x5c3f57(0x128)&&typeof module<'u'?_0x4e7cae(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x5c3f57(0x123)&&define[_0x5c3f57(0x13a)]?define([_0x5c3f57(0x117),_0x5c3f57(0x13e),_0x5c3f57(0x134),_0x5c3f57(0x13f),_0x5c3f57(0x120),'@univerjs/sheets-ui'],_0x4e7cae):(_0x39dcc2=typeof globalThis<'u'?globalThis:_0x39dcc2||self,_0x4e7cae(_0x39dcc2['UniverProSheetsExchangeClient']={},_0x39dcc2[_0x5c3f57(0x112)],_0x39dcc2[_0x5c3f57(0x137)],_0x39dcc2[_0x5c3f57(0x139)],_0x39dcc2['UniverSheets'],_0x39dcc2[_0x5c3f57(0x131)]));}(this,function(_0x3410e6,_0x177cbd,_0x38bc4a,_0x4ca3ca,_0x2b4ee0,_0x142c1e){'use strict';const _0xacce0a=_0x3e25;const _0x1d53a3={'id':'exchange-client.operation.import-xlsx','type':_0x38bc4a[_0xacce0a(0x143)][_0xacce0a(0x111)],'handler':async _0x104814=>{const _0x4efaaa=_0xacce0a,_0x54bc5e=_0x104814[_0x4efaaa(0x140)](_0x177cbd[_0x4efaaa(0x130)]);return new URLSearchParams(location[_0x4efaaa(0x153)])['get'](_0x4efaaa(0x11a))?_0x54bc5e[_0x4efaaa(0x12d)]():_0x54bc5e[_0x4efaaa(0x110)](),!0x0;}},_0x14ba27={'id':_0xacce0a(0x129),'type':_0x38bc4a[_0xacce0a(0x143)][_0xacce0a(0x111)],'handler':async _0x5825d5=>{const _0x18e1bd=_0xacce0a,_0x22d7f=_0x5825d5['get'](_0x177cbd[_0x18e1bd(0x130)]);return new URLSearchParams(location[_0x18e1bd(0x153)])[_0x18e1bd(0x140)](_0x18e1bd(0x11a))?_0x22d7f[_0x18e1bd(0x13b)]():_0x22d7f[_0x18e1bd(0x13d)](),!0x0;}},_0x4ae7b4=_0xacce0a(0x138),_0x2e3884={},_0x86a395='sheets-exchange-client.operation.exchange';function _0xe10a85(_0x1a3f8d){const _0x2a938b=_0xacce0a;return{'id':_0x86a395,'type':_0x4ca3ca[_0x2a938b(0x12e)]['SUBITEMS'],'icon':_0x2a938b(0x146),'tooltip':_0x2a938b(0x13c),'hidden$':_0x4ca3ca['getMenuHiddenObservable'](_0x1a3f8d,_0x38bc4a['UniverInstanceType'][_0x2a938b(0x136)]),'disabled$':_0x142c1e['getCurrentRangeDisable$'](_0x1a3f8d,{'workbookTypes':[_0x2b4ee0[_0x2a938b(0x152)]]})};}function _0x5180b2(){const _0xc7d598=_0xacce0a;return{'id':_0x1d53a3['id'],'type':_0x4ca3ca['MenuItemType'][_0xc7d598(0x121)],'title':'exchange.upload','icon':'FolderIcon'};}function _0x1e6091(){const _0x292b5c=_0xacce0a;return{'id':_0x14ba27['id'],'type':_0x4ca3ca[_0x292b5c(0x12e)][_0x292b5c(0x121)],'title':_0x292b5c(0x127),'icon':_0x292b5c(0x12b)};}const _0x79f91={[_0x4ca3ca[_0xacce0a(0x119)][_0xacce0a(0x147)]]:{[_0x86a395]:{'order':0.3,'menuItemFactory':_0xe10a85,[_0x1d53a3['id']]:{'order':0x0,'menuItemFactory':_0x5180b2},[_0x14ba27['id']]:{'order':0x1,'menuItemFactory':_0x1e6091}}}};var _0x18c6ef=Object['getOwnPropertyDescriptor'],_0x50d5b4=(_0x2a9d54,_0x4fddb4,_0x5ab196,_0x28279a)=>{const _0x4ae3a9=_0xacce0a;for(var _0x8623e9=_0x28279a>0x1?void 0x0:_0x28279a?_0x18c6ef(_0x4fddb4,_0x5ab196):_0x4fddb4,_0x3a645f=_0x2a9d54[_0x4ae3a9(0x116)]-0x1,_0x1591dc;_0x3a645f>=0x0;_0x3a645f--)(_0x1591dc=_0x2a9d54[_0x3a645f])&&(_0x8623e9=_0x1591dc(_0x8623e9)||_0x8623e9);return _0x8623e9;},_0x30db69=(_0x42fffe,_0x5ba969)=>(_0x454597,_0x57180a)=>_0x5ba969(_0x454597,_0x57180a,_0x42fffe);let _0xcc4aaf=class extends _0x38bc4a[_0xacce0a(0x155)]{constructor(_0xd78f86,_0x5b196b){const _0xff02c4=_0xacce0a;super(),this['_commandService']=_0xd78f86,this[_0xff02c4(0x148)]=_0x5b196b,this[_0xff02c4(0x11b)](),this[_0xff02c4(0x132)]();}[_0xacce0a(0x11b)](){const _0x4eab15=_0xacce0a;[_0x1d53a3,_0x14ba27][_0x4eab15(0x126)](_0x211f1c=>{const _0x2e44c1=_0x4eab15;this['disposeWithMe'](this[_0x2e44c1(0x11c)][_0x2e44c1(0x151)](_0x211f1c));});}['_initMenus'](){const _0x231ae2=_0xacce0a;this[_0x231ae2(0x148)][_0x231ae2(0x14b)](_0x79f91);}};_0xcc4aaf=_0x50d5b4([_0x30db69(0x0,_0x38bc4a[_0xacce0a(0x114)]),_0x30db69(0x1,_0x4ca3ca[_0xacce0a(0x158)])],_0xcc4aaf);var _0x52e875=Object[_0xacce0a(0x14d)],_0x42fb45=Object['getOwnPropertyDescriptor'],_0x48fde2=(_0x262ca5,_0x269354,_0xc4cc34)=>_0x269354 in _0x262ca5?_0x52e875(_0x262ca5,_0x269354,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc4cc34}):_0x262ca5[_0x269354]=_0xc4cc34,_0x569943=(_0x3483fd,_0x223992,_0x4f242a,_0xc15df6)=>{const _0x2e2cf4=_0xacce0a;for(var _0x40e76f=_0xc15df6>0x1?void 0x0:_0xc15df6?_0x42fb45(_0x223992,_0x4f242a):_0x223992,_0x547032=_0x3483fd[_0x2e2cf4(0x116)]-0x1,_0x34e3f5;_0x547032>=0x0;_0x547032--)(_0x34e3f5=_0x3483fd[_0x547032])&&(_0x40e76f=_0x34e3f5(_0x40e76f)||_0x40e76f);return _0x40e76f;},_0x13bb5d=(_0x588537,_0x183cee)=>(_0x1c2341,_0x495113)=>_0x183cee(_0x1c2341,_0x495113,_0x588537),_0x21aa46=(_0x55b388,_0x356e6d,_0xa3fff2)=>_0x48fde2(_0x55b388,typeof _0x356e6d!='symbol'?_0x356e6d+'':_0x356e6d,_0xa3fff2);const _0x1672f4=_0xacce0a(0x149);_0x3410e6['UniverSheetsExchangeClientPlugin']=class extends _0x38bc4a[_0xacce0a(0x124)]{constructor(_0x3d93a4=_0x2e3884,_0x2a4a03,_0x29d405){const _0x16431e=_0xacce0a;super(),this[_0x16431e(0x125)]=_0x3d93a4,this[_0x16431e(0x157)]=_0x2a4a03,this[_0x16431e(0x135)]=_0x29d405;const {menu:_0x2a94d2,..._0x130f0a}=_0x38bc4a[_0x16431e(0x144)]({},_0x2e3884,this[_0x16431e(0x125)]);_0x2a94d2&&this[_0x16431e(0x135)][_0x16431e(0x15a)](_0x16431e(0x113),_0x2a94d2,{'merge':!0x0}),this[_0x16431e(0x135)][_0x16431e(0x15a)](_0x4ae7b4,_0x130f0a);}[_0xacce0a(0x10f)](){const _0x443b88=_0xacce0a;[[_0xcc4aaf]][_0x443b88(0x126)](_0x14a949=>this['_injector'][_0x443b88(0x122)](_0x14a949));}[_0xacce0a(0x118)](){const _0x50f96b=_0xacce0a;this[_0x50f96b(0x157)]['get'](_0xcc4aaf);}},_0x21aa46(_0x3410e6[_0xacce0a(0x156)],'pluginName',_0x1672f4),_0x21aa46(_0x3410e6[_0xacce0a(0x156)],'type',_0x38bc4a[_0xacce0a(0x150)][_0xacce0a(0x136)]),_0x3410e6[_0xacce0a(0x156)]=_0x569943([_0x38bc4a[_0xacce0a(0x14a)](_0x177cbd[_0xacce0a(0x11e)]),_0x13bb5d(0x1,_0x38bc4a['Inject'](_0x38bc4a[_0xacce0a(0x12a)])),_0x13bb5d(0x2,_0x38bc4a[_0xacce0a(0x133)])],_0x3410e6[_0xacce0a(0x156)]),_0x3410e6[_0xacce0a(0x141)]=_0x14ba27,_0x3410e6[_0xacce0a(0x145)]=_0x1d53a3,Object[_0xacce0a(0x14d)](_0x3410e6,Symbol['toStringTag'],{'value':_0xacce0a(0x12f)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.10.14-nightly.202511070640",
3
+ "version": "0.10.14-nightly.202511080715",
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/core": "0.10.14-nightly.202511070640",
46
- "@univerjs/ui": "0.10.14-nightly.202511070640",
47
- "@univerjs/sheets": "0.10.14-nightly.202511070640",
48
- "@univerjs-pro/exchange-client": "0.10.14-nightly.202511070640",
49
- "@univerjs/sheets-ui": "0.10.14-nightly.202511070640"
45
+ "@univerjs-pro/exchange-client": "0.10.14-nightly.202511080715",
46
+ "@univerjs/core": "0.10.14-nightly.202511080715",
47
+ "@univerjs/sheets-ui": "0.10.14-nightly.202511080715",
48
+ "@univerjs/sheets": "0.10.14-nightly.202511080715",
49
+ "@univerjs/ui": "0.10.14-nightly.202511080715"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",