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

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 _0xab9822=_0x463f;(function(_0x120cb3,_0x2d0105){const _0x1595f7=_0x463f,_0x2fb42a=_0x120cb3();while(!![]){try{const _0x55e677=parseInt(_0x1595f7(0x168))/0x1+parseInt(_0x1595f7(0x16b))/0x2+parseInt(_0x1595f7(0x14e))/0x3+parseInt(_0x1595f7(0x13d))/0x4+-parseInt(_0x1595f7(0x172))/0x5*(-parseInt(_0x1595f7(0x13b))/0x6)+parseInt(_0x1595f7(0x138))/0x7*(parseInt(_0x1595f7(0x155))/0x8)+-parseInt(_0x1595f7(0x16e))/0x9*(parseInt(_0x1595f7(0x16d))/0xa);if(_0x55e677===_0x2d0105)break;else _0x2fb42a['push'](_0x2fb42a['shift']());}catch(_0x23a920){_0x2fb42a['push'](_0x2fb42a['shift']());}}}(_0x3f36,0x67995));function _0x463f(_0x30fd0b,_0x1ca75f){const _0x3f368d=_0x3f36();return _0x463f=function(_0x463f45,_0x4eb652){_0x463f45=_0x463f45-0x131;let _0x1f61ba=_0x3f368d[_0x463f45];return _0x1f61ba;},_0x463f(_0x30fd0b,_0x1ca75f);}Object[_0xab9822(0x15f)](exports,Symbol['toStringTag'],{'value':_0xab9822(0x15e)});const g=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),c=require('@univerjs/ui'),_=require('@univerjs/sheets'),I=require('@univerjs/sheets-ui'),l={'id':'exchange-client.operation.import-xlsx','type':i[_0xab9822(0x140)][_0xab9822(0x170)],'handler':async _0x1441de=>{const _0xefa2d0=_0xab9822,_0x1d5998=_0x1441de[_0xefa2d0(0x14d)](g[_0xefa2d0(0x162)]);return new URLSearchParams(location['search'])[_0xefa2d0(0x14d)](_0xefa2d0(0x148))?_0x1d5998[_0xefa2d0(0x171)]():_0x1d5998['importXLSXToSnapshot'](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i[_0xab9822(0x140)]['OPERATION'],'handler':async _0x198bf3=>{const _0x45707a=_0xab9822,_0x2c776f=_0x198bf3[_0x45707a(0x14d)](g[_0x45707a(0x162)]);return new URLSearchParams(location['search'])[_0x45707a(0x14d)](_0x45707a(0x148))?_0x2c776f[_0x45707a(0x15b)]():_0x2c776f[_0x45707a(0x15a)](),!0x0;}},v='sheets-exchange-client.config',h={},S=_0xab9822(0x137);function x(_0x16d8d8){const _0x530a47=_0xab9822;return{'id':S,'type':c[_0x530a47(0x16f)]['SUBITEMS'],'icon':_0x530a47(0x164),'tooltip':_0x530a47(0x16c),'hidden$':c[_0x530a47(0x145)](_0x16d8d8,i[_0x530a47(0x13a)][_0x530a47(0x14a)]),'disabled$':I[_0x530a47(0x144)](_0x16d8d8,{'workbookTypes':[_[_0x530a47(0x149)]]})};}function P(){const _0x3fb706=_0xab9822;return{'id':l['id'],'type':c['MenuItemType'][_0x3fb706(0x151)],'title':_0x3fb706(0x173),'icon':_0x3fb706(0x160)};}function C(){const _0x6d3349=_0xab9822;return{'id':p['id'],'type':c[_0x6d3349(0x16f)][_0x6d3349(0x151)],'title':_0x6d3349(0x13c),'icon':_0x6d3349(0x133)};}const f={[c[_0xab9822(0x143)][_0xab9822(0x134)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0xab9822(0x163)],y=(_0x186d33,_0x2a1528,_0xfc5a92,_0x527c5e)=>{const _0x59c009=_0xab9822;for(var _0x3895f2=_0x527c5e>0x1?void 0x0:_0x527c5e?T(_0x2a1528,_0xfc5a92):_0x2a1528,_0x1afb70=_0x186d33[_0x59c009(0x166)]-0x1,_0xa47f0;_0x1afb70>=0x0;_0x1afb70--)(_0xa47f0=_0x186d33[_0x1afb70])&&(_0x3895f2=_0xa47f0(_0x3895f2)||_0x3895f2);return _0x3895f2;},m=(_0x35fc86,_0x558b16)=>(_0x13833b,_0x5e5d06)=>_0x558b16(_0x13833b,_0x5e5d06,_0x35fc86);let u=class extends i[_0xab9822(0x152)]{constructor(_0x285808,_0x486a68){const _0x1521ec=_0xab9822;super(),this[_0x1521ec(0x150)]=_0x285808,this['_menuManagerService']=_0x486a68,this['_initCommands'](),this[_0x1521ec(0x158)]();}[_0xab9822(0x169)](){const _0x20616b=_0xab9822;[l,p][_0x20616b(0x156)](_0x4099b7=>{const _0x1028ab=_0x20616b;this[_0x1028ab(0x16a)](this[_0x1028ab(0x150)][_0x1028ab(0x146)](_0x4099b7));});}[_0xab9822(0x158)](){const _0x27399f=_0xab9822;this[_0x27399f(0x14b)][_0x27399f(0x165)](f);}};u=y([m(0x0,i[_0xab9822(0x139)]),m(0x1,c[_0xab9822(0x136)])],u);function _0x3f36(){const _0xefdb93=['getOwnPropertyDescriptor','DirectExportIcon','mergeMenu','length','Injector','347937qbSFQR','_initCommands','disposeWithMe','757678XmfvhB','exchange.file','90LmfUHZ','2016882GyeEMH','MenuItemType','OPERATION','importXLSXToUnitId','1375vEDDxY','exchange.upload','IConfigService','Plugin','ExportIcon','OTHERS','UniverExchangeClientPlugin','IMenuManagerService','sheets-exchange-client.operation.exchange','7ZwFYgx','ICommandService','UniverInstanceType','4074MFunXd','exchange.download','2784688dQSIwt','UniverSheetsExchangeClientPlugin','symbol','CommandType','_config','_configService','RibbonStartGroup','getCurrentRangeDisable$','getMenuHiddenObservable','registerCommand','ImportXLSXOperation','unit','WorkbookExportPermission','UNIVER_SHEET','_menuManagerService','merge','get','418326klfcim','setConfig','_commandService','BUTTON','Disposable','type','add','5536864xLMzRw','forEach','onStarting','_initMenus','_injector','exportXLSXBySnapshot','exportXLSXByUnitId','Inject','onReady','Module','defineProperty','FolderIcon','SHEET_EXCHANGE_CLIENT_PLUGIN','IExchangeOperateService'];_0x3f36=function(){return _0xefdb93;};return _0x3f36();}var O=Object[_0xab9822(0x15f)],U=Object['getOwnPropertyDescriptor'],X=(_0x2f3b70,_0x5ec0f2,_0x3b3af0)=>_0x5ec0f2 in _0x2f3b70?O(_0x2f3b70,_0x5ec0f2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b3af0}):_0x2f3b70[_0x5ec0f2]=_0x3b3af0,N=(_0x1bb4cd,_0x35d9f6,_0x151c78,_0x25d1f2)=>{for(var _0x486a27=_0x25d1f2>0x1?void 0x0:_0x25d1f2?U(_0x35d9f6,_0x151c78):_0x35d9f6,_0x248960=_0x1bb4cd['length']-0x1,_0x3c45e2;_0x248960>=0x0;_0x248960--)(_0x3c45e2=_0x1bb4cd[_0x248960])&&(_0x486a27=_0x3c45e2(_0x486a27)||_0x486a27);return _0x486a27;},d=(_0x34667a,_0x2f95d8)=>(_0x273b90,_0x255760)=>_0x2f95d8(_0x273b90,_0x255760,_0x34667a),E=(_0x6ccdb9,_0x48ab29,_0x16272b)=>X(_0x6ccdb9,typeof _0x48ab29!=_0xab9822(0x13f)?_0x48ab29+'':_0x48ab29,_0x16272b);const L=_0xab9822(0x161);exports[_0xab9822(0x13e)]=class extends i[_0xab9822(0x132)]{constructor(_0x361ce5=h,_0x3ec335,_0x116197){const _0x54fcbf=_0xab9822;super(),this[_0x54fcbf(0x141)]=_0x361ce5,this[_0x54fcbf(0x159)]=_0x3ec335,this[_0x54fcbf(0x142)]=_0x116197;const {menu:_0x4a37ab,..._0x2992fc}=i[_0x54fcbf(0x14c)]({},h,this[_0x54fcbf(0x141)]);_0x4a37ab&&this['_configService']['setConfig']('menu',_0x4a37ab,{'merge':!0x0}),this[_0x54fcbf(0x142)][_0x54fcbf(0x14f)](v,_0x2992fc);}[_0xab9822(0x157)](){const _0x46953f=_0xab9822;[[u]][_0x46953f(0x156)](_0x42ecba=>this[_0x46953f(0x159)][_0x46953f(0x154)](_0x42ecba));}[_0xab9822(0x15d)](){const _0x33f572=_0xab9822;this['_injector'][_0x33f572(0x14d)](u);}},E(exports[_0xab9822(0x13e)],'pluginName',L),E(exports['UniverSheetsExchangeClientPlugin'],_0xab9822(0x153),i[_0xab9822(0x13a)][_0xab9822(0x14a)]),exports[_0xab9822(0x13e)]=N([i['DependentOn'](g[_0xab9822(0x135)]),d(0x1,i[_0xab9822(0x15c)](i[_0xab9822(0x167)])),d(0x2,i[_0xab9822(0x131)])],exports[_0xab9822(0x13e)]),exports['ExportXLSXOperation']=p,exports[_0xab9822(0x147)]=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 _0x24a681=_0xb2d2;(function(_0x4aec17,_0x5c2fd0){const _0x567d13=_0xb2d2,_0x59b54a=_0x4aec17();while(!![]){try{const _0x19653f=parseInt(_0x567d13(0x1d2))/0x1*(-parseInt(_0x567d13(0x1c6))/0x2)+-parseInt(_0x567d13(0x1dd))/0x3*(parseInt(_0x567d13(0x1e3))/0x4)+parseInt(_0x567d13(0x1e4))/0x5*(-parseInt(_0x567d13(0x1e7))/0x6)+parseInt(_0x567d13(0x1e9))/0x7*(-parseInt(_0x567d13(0x1c2))/0x8)+-parseInt(_0x567d13(0x1ca))/0x9+parseInt(_0x567d13(0x1ea))/0xa*(-parseInt(_0x567d13(0x1c0))/0xb)+-parseInt(_0x567d13(0x1cc))/0xc*(-parseInt(_0x567d13(0x1c1))/0xd);if(_0x19653f===_0x5c2fd0)break;else _0x59b54a['push'](_0x59b54a['shift']());}catch(_0x3d0e75){_0x59b54a['push'](_0x59b54a['shift']());}}}(_0x2926,0xc327f));import{IExchangeOperateService as _0x33ec26,UniverExchangeClientPlugin as _0x390c67}from'@univerjs-pro/exchange-client';function _0x2926(){const _0x1d8045=['exchange.file','type','onReady','get','_initCommands','FolderIcon','1346455hHmVdr','852878WzVZCd','445712ipLPUf','importXLSXToSnapshot','exchange.upload','setConfig','16DXhWhO','menu','getOwnPropertyDescriptor','pluginName','1551366agUnFX','forEach','1236PmXvJT','add','sheets-exchange-client.config','_initMenus','OTHERS','onStarting','151759OEWOVw','UNIVER_SHEET','length','search','mergeMenu','OPERATION','SUBITEMS','defineProperty','_configService','_commandService','_config','1802862pOyFxG','registerCommand','exchange-client.operation.import-xlsx','sheets-exchange-client.operation.exchange','BUTTON','_injector','4QwjZVQ','145JQURrc','symbol','unit','257034qObhZR','_menuManagerService','189GcGWEP','100pUNgeu'];_0x2926=function(){return _0x1d8045;};return _0x2926();}import{CommandType as _0x647d12,UniverInstanceType as _0x41c8b2,Disposable as _0x46e54c,ICommandService as _0xba43f2,DependentOn as _0x586edf,Inject as _0xac0c5b,Injector as _0x43be70,IConfigService as _0x1d7ddc,Plugin as _0xdab077,merge as _0x1ddccb}from'@univerjs/core';import{MenuItemType as _0x599e3f,getMenuHiddenObservable as _0x4dfdf4,RibbonStartGroup as _0xcdc9e1,IMenuManagerService as _0x371ca9}from'@univerjs/ui';import{WorkbookExportPermission as _0x2ae922}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x4fbb07}from'@univerjs/sheets-ui';const p={'id':_0x24a681(0x1df),'type':_0x647d12[_0x24a681(0x1d7)],'handler':async _0x1a286e=>{const _0x58b1bf=_0x24a681,_0x1d7842=_0x1a286e[_0x58b1bf(0x1bd)](_0x33ec26);return new URLSearchParams(location['search'])[_0x58b1bf(0x1bd)]('unit')?_0x1d7842['importXLSXToUnitId']():_0x1d7842[_0x58b1bf(0x1c3)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x647d12[_0x24a681(0x1d7)],'handler':async _0x2446c7=>{const _0x45c972=_0x24a681,_0x2f1848=_0x2446c7[_0x45c972(0x1bd)](_0x33ec26);return new URLSearchParams(location[_0x45c972(0x1d5)])['get'](_0x45c972(0x1e6))?_0x2f1848['exportXLSXByUnitId']():_0x2f1848['exportXLSXBySnapshot'](),!0x0;}},H=_0x24a681(0x1ce),l={},S=_0x24a681(0x1e0);function R(_0x3914d2){const _0x46079e=_0x24a681;return{'id':S,'type':_0x599e3f[_0x46079e(0x1d8)],'icon':'DirectExportIcon','tooltip':_0x46079e(0x1eb),'hidden$':_0x4dfdf4(_0x3914d2,_0x41c8b2[_0x46079e(0x1d3)]),'disabled$':_0x4fbb07(_0x3914d2,{'workbookTypes':[_0x2ae922]})};}function w(){const _0x19bd25=_0x24a681;return{'id':p['id'],'type':_0x599e3f[_0x19bd25(0x1e1)],'title':_0x19bd25(0x1c4),'icon':_0x19bd25(0x1bf)};}function D(){const _0x22aca4=_0x24a681;return{'id':u['id'],'type':_0x599e3f[_0x22aca4(0x1e1)],'title':'exchange.download','icon':'ExportIcon'};}const F={[_0xcdc9e1[_0x24a681(0x1d0)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x24a681(0x1c8)],A=(_0x455f04,_0x46886,_0x601f7c,_0x40980c)=>{const _0x196767=_0x24a681;for(var _0x58ed6d=_0x40980c>0x1?void 0x0:_0x40980c?G(_0x46886,_0x601f7c):_0x46886,_0x66a102=_0x455f04[_0x196767(0x1d4)]-0x1,_0x2ca7c0;_0x66a102>=0x0;_0x66a102--)(_0x2ca7c0=_0x455f04[_0x66a102])&&(_0x58ed6d=_0x2ca7c0(_0x58ed6d)||_0x58ed6d);return _0x58ed6d;},d=(_0x4f6cab,_0x27036b)=>(_0x5b08af,_0x1b8464)=>_0x27036b(_0x5b08af,_0x1b8464,_0x4f6cab);function _0xb2d2(_0x35c678,_0x43a9ba){const _0x2926a9=_0x2926();return _0xb2d2=function(_0xb2d2d9,_0x5c0247){_0xb2d2d9=_0xb2d2d9-0x1bd;let _0x5a747f=_0x2926a9[_0xb2d2d9];return _0x5a747f;},_0xb2d2(_0x35c678,_0x43a9ba);}let c=class extends _0x46e54c{constructor(_0x177216,_0x1cf87a){const _0x1f1efa=_0x24a681;super(),this[_0x1f1efa(0x1db)]=_0x177216,this[_0x1f1efa(0x1e8)]=_0x1cf87a,this[_0x1f1efa(0x1be)](),this['_initMenus']();}[_0x24a681(0x1be)](){const _0x133712=_0x24a681;[p,u][_0x133712(0x1cb)](_0x3f4db1=>{const _0x46d93d=_0x133712;this['disposeWithMe'](this['_commandService'][_0x46d93d(0x1de)](_0x3f4db1));});}[_0x24a681(0x1cf)](){const _0x3d62c6=_0x24a681;this[_0x3d62c6(0x1e8)][_0x3d62c6(0x1d6)](F);}};c=A([d(0x0,_0xba43f2),d(0x1,_0x371ca9)],c);var j=Object[_0x24a681(0x1d9)],B=Object[_0x24a681(0x1c8)],$=(_0x1ec8dc,_0x22eb49,_0x2ddb76)=>_0x22eb49 in _0x1ec8dc?j(_0x1ec8dc,_0x22eb49,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ddb76}):_0x1ec8dc[_0x22eb49]=_0x2ddb76,V=(_0x4ccb4a,_0x3ccc29,_0x14acfb,_0x7aa1ea)=>{const _0xddcc7e=_0x24a681;for(var _0x3fdd1b=_0x7aa1ea>0x1?void 0x0:_0x7aa1ea?B(_0x3ccc29,_0x14acfb):_0x3ccc29,_0x4f6c4e=_0x4ccb4a[_0xddcc7e(0x1d4)]-0x1,_0x31ee30;_0x4f6c4e>=0x0;_0x4f6c4e--)(_0x31ee30=_0x4ccb4a[_0x4f6c4e])&&(_0x3fdd1b=_0x31ee30(_0x3fdd1b)||_0x3fdd1b);return _0x3fdd1b;},_=(_0x36c5c2,_0x2b6f56)=>(_0xb1f7d,_0x69a7b5)=>_0x2b6f56(_0xb1f7d,_0x69a7b5,_0x36c5c2),I=(_0x3fd055,_0x43f83b,_0x35f38)=>$(_0x3fd055,typeof _0x43f83b!=_0x24a681(0x1e5)?_0x43f83b+'':_0x43f83b,_0x35f38);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0xdab077{constructor(_0x4314b2=l,_0x5e4c64,_0x2fe1de){const _0x31694e=_0x24a681;super(),this[_0x31694e(0x1dc)]=_0x4314b2,this[_0x31694e(0x1e2)]=_0x5e4c64,this[_0x31694e(0x1da)]=_0x2fe1de;const {menu:_0x4e375a,..._0x11de9e}=_0x1ddccb({},l,this[_0x31694e(0x1dc)]);_0x4e375a&&this[_0x31694e(0x1da)][_0x31694e(0x1c5)](_0x31694e(0x1c7),_0x4e375a,{'merge':!0x0}),this[_0x31694e(0x1da)][_0x31694e(0x1c5)](H,_0x11de9e);}[_0x24a681(0x1d1)](){const _0xfa81d3=_0x24a681;[[c]][_0xfa81d3(0x1cb)](_0x556587=>this[_0xfa81d3(0x1e2)][_0xfa81d3(0x1cd)](_0x556587));}[_0x24a681(0x1ed)](){const _0x1dc7f7=_0x24a681;this[_0x1dc7f7(0x1e2)][_0x1dc7f7(0x1bd)](c);}};I(s,_0x24a681(0x1c9),W),I(s,_0x24a681(0x1ec),_0x41c8b2[_0x24a681(0x1d3)]),s=V([_0x586edf(_0x390c67),_(0x1,_0xac0c5b(_0x43be70)),_(0x2,_0x1d7ddc)],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 _0x24a681=_0xb2d2;(function(_0x4aec17,_0x5c2fd0){const _0x567d13=_0xb2d2,_0x59b54a=_0x4aec17();while(!![]){try{const _0x19653f=parseInt(_0x567d13(0x1d2))/0x1*(-parseInt(_0x567d13(0x1c6))/0x2)+-parseInt(_0x567d13(0x1dd))/0x3*(parseInt(_0x567d13(0x1e3))/0x4)+parseInt(_0x567d13(0x1e4))/0x5*(-parseInt(_0x567d13(0x1e7))/0x6)+parseInt(_0x567d13(0x1e9))/0x7*(-parseInt(_0x567d13(0x1c2))/0x8)+-parseInt(_0x567d13(0x1ca))/0x9+parseInt(_0x567d13(0x1ea))/0xa*(-parseInt(_0x567d13(0x1c0))/0xb)+-parseInt(_0x567d13(0x1cc))/0xc*(-parseInt(_0x567d13(0x1c1))/0xd);if(_0x19653f===_0x5c2fd0)break;else _0x59b54a['push'](_0x59b54a['shift']());}catch(_0x3d0e75){_0x59b54a['push'](_0x59b54a['shift']());}}}(_0x2926,0xc327f));import{IExchangeOperateService as _0x33ec26,UniverExchangeClientPlugin as _0x390c67}from'@univerjs-pro/exchange-client';function _0x2926(){const _0x1d8045=['exchange.file','type','onReady','get','_initCommands','FolderIcon','1346455hHmVdr','852878WzVZCd','445712ipLPUf','importXLSXToSnapshot','exchange.upload','setConfig','16DXhWhO','menu','getOwnPropertyDescriptor','pluginName','1551366agUnFX','forEach','1236PmXvJT','add','sheets-exchange-client.config','_initMenus','OTHERS','onStarting','151759OEWOVw','UNIVER_SHEET','length','search','mergeMenu','OPERATION','SUBITEMS','defineProperty','_configService','_commandService','_config','1802862pOyFxG','registerCommand','exchange-client.operation.import-xlsx','sheets-exchange-client.operation.exchange','BUTTON','_injector','4QwjZVQ','145JQURrc','symbol','unit','257034qObhZR','_menuManagerService','189GcGWEP','100pUNgeu'];_0x2926=function(){return _0x1d8045;};return _0x2926();}import{CommandType as _0x647d12,UniverInstanceType as _0x41c8b2,Disposable as _0x46e54c,ICommandService as _0xba43f2,DependentOn as _0x586edf,Inject as _0xac0c5b,Injector as _0x43be70,IConfigService as _0x1d7ddc,Plugin as _0xdab077,merge as _0x1ddccb}from'@univerjs/core';import{MenuItemType as _0x599e3f,getMenuHiddenObservable as _0x4dfdf4,RibbonStartGroup as _0xcdc9e1,IMenuManagerService as _0x371ca9}from'@univerjs/ui';import{WorkbookExportPermission as _0x2ae922}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x4fbb07}from'@univerjs/sheets-ui';const p={'id':_0x24a681(0x1df),'type':_0x647d12[_0x24a681(0x1d7)],'handler':async _0x1a286e=>{const _0x58b1bf=_0x24a681,_0x1d7842=_0x1a286e[_0x58b1bf(0x1bd)](_0x33ec26);return new URLSearchParams(location['search'])[_0x58b1bf(0x1bd)]('unit')?_0x1d7842['importXLSXToUnitId']():_0x1d7842[_0x58b1bf(0x1c3)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x647d12[_0x24a681(0x1d7)],'handler':async _0x2446c7=>{const _0x45c972=_0x24a681,_0x2f1848=_0x2446c7[_0x45c972(0x1bd)](_0x33ec26);return new URLSearchParams(location[_0x45c972(0x1d5)])['get'](_0x45c972(0x1e6))?_0x2f1848['exportXLSXByUnitId']():_0x2f1848['exportXLSXBySnapshot'](),!0x0;}},H=_0x24a681(0x1ce),l={},S=_0x24a681(0x1e0);function R(_0x3914d2){const _0x46079e=_0x24a681;return{'id':S,'type':_0x599e3f[_0x46079e(0x1d8)],'icon':'DirectExportIcon','tooltip':_0x46079e(0x1eb),'hidden$':_0x4dfdf4(_0x3914d2,_0x41c8b2[_0x46079e(0x1d3)]),'disabled$':_0x4fbb07(_0x3914d2,{'workbookTypes':[_0x2ae922]})};}function w(){const _0x19bd25=_0x24a681;return{'id':p['id'],'type':_0x599e3f[_0x19bd25(0x1e1)],'title':_0x19bd25(0x1c4),'icon':_0x19bd25(0x1bf)};}function D(){const _0x22aca4=_0x24a681;return{'id':u['id'],'type':_0x599e3f[_0x22aca4(0x1e1)],'title':'exchange.download','icon':'ExportIcon'};}const F={[_0xcdc9e1[_0x24a681(0x1d0)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x24a681(0x1c8)],A=(_0x455f04,_0x46886,_0x601f7c,_0x40980c)=>{const _0x196767=_0x24a681;for(var _0x58ed6d=_0x40980c>0x1?void 0x0:_0x40980c?G(_0x46886,_0x601f7c):_0x46886,_0x66a102=_0x455f04[_0x196767(0x1d4)]-0x1,_0x2ca7c0;_0x66a102>=0x0;_0x66a102--)(_0x2ca7c0=_0x455f04[_0x66a102])&&(_0x58ed6d=_0x2ca7c0(_0x58ed6d)||_0x58ed6d);return _0x58ed6d;},d=(_0x4f6cab,_0x27036b)=>(_0x5b08af,_0x1b8464)=>_0x27036b(_0x5b08af,_0x1b8464,_0x4f6cab);function _0xb2d2(_0x35c678,_0x43a9ba){const _0x2926a9=_0x2926();return _0xb2d2=function(_0xb2d2d9,_0x5c0247){_0xb2d2d9=_0xb2d2d9-0x1bd;let _0x5a747f=_0x2926a9[_0xb2d2d9];return _0x5a747f;},_0xb2d2(_0x35c678,_0x43a9ba);}let c=class extends _0x46e54c{constructor(_0x177216,_0x1cf87a){const _0x1f1efa=_0x24a681;super(),this[_0x1f1efa(0x1db)]=_0x177216,this[_0x1f1efa(0x1e8)]=_0x1cf87a,this[_0x1f1efa(0x1be)](),this['_initMenus']();}[_0x24a681(0x1be)](){const _0x133712=_0x24a681;[p,u][_0x133712(0x1cb)](_0x3f4db1=>{const _0x46d93d=_0x133712;this['disposeWithMe'](this['_commandService'][_0x46d93d(0x1de)](_0x3f4db1));});}[_0x24a681(0x1cf)](){const _0x3d62c6=_0x24a681;this[_0x3d62c6(0x1e8)][_0x3d62c6(0x1d6)](F);}};c=A([d(0x0,_0xba43f2),d(0x1,_0x371ca9)],c);var j=Object[_0x24a681(0x1d9)],B=Object[_0x24a681(0x1c8)],$=(_0x1ec8dc,_0x22eb49,_0x2ddb76)=>_0x22eb49 in _0x1ec8dc?j(_0x1ec8dc,_0x22eb49,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ddb76}):_0x1ec8dc[_0x22eb49]=_0x2ddb76,V=(_0x4ccb4a,_0x3ccc29,_0x14acfb,_0x7aa1ea)=>{const _0xddcc7e=_0x24a681;for(var _0x3fdd1b=_0x7aa1ea>0x1?void 0x0:_0x7aa1ea?B(_0x3ccc29,_0x14acfb):_0x3ccc29,_0x4f6c4e=_0x4ccb4a[_0xddcc7e(0x1d4)]-0x1,_0x31ee30;_0x4f6c4e>=0x0;_0x4f6c4e--)(_0x31ee30=_0x4ccb4a[_0x4f6c4e])&&(_0x3fdd1b=_0x31ee30(_0x3fdd1b)||_0x3fdd1b);return _0x3fdd1b;},_=(_0x36c5c2,_0x2b6f56)=>(_0xb1f7d,_0x69a7b5)=>_0x2b6f56(_0xb1f7d,_0x69a7b5,_0x36c5c2),I=(_0x3fd055,_0x43f83b,_0x35f38)=>$(_0x3fd055,typeof _0x43f83b!=_0x24a681(0x1e5)?_0x43f83b+'':_0x43f83b,_0x35f38);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0xdab077{constructor(_0x4314b2=l,_0x5e4c64,_0x2fe1de){const _0x31694e=_0x24a681;super(),this[_0x31694e(0x1dc)]=_0x4314b2,this[_0x31694e(0x1e2)]=_0x5e4c64,this[_0x31694e(0x1da)]=_0x2fe1de;const {menu:_0x4e375a,..._0x11de9e}=_0x1ddccb({},l,this[_0x31694e(0x1dc)]);_0x4e375a&&this[_0x31694e(0x1da)][_0x31694e(0x1c5)](_0x31694e(0x1c7),_0x4e375a,{'merge':!0x0}),this[_0x31694e(0x1da)][_0x31694e(0x1c5)](H,_0x11de9e);}[_0x24a681(0x1d1)](){const _0xfa81d3=_0x24a681;[[c]][_0xfa81d3(0x1cb)](_0x556587=>this[_0xfa81d3(0x1e2)][_0xfa81d3(0x1cd)](_0x556587));}[_0x24a681(0x1ed)](){const _0x1dc7f7=_0x24a681;this[_0x1dc7f7(0x1e2)][_0x1dc7f7(0x1bd)](c);}};I(s,_0x24a681(0x1c9),W),I(s,_0x24a681(0x1ec),_0x41c8b2[_0x24a681(0x1d3)]),s=V([_0x586edf(_0x390c67),_(0x1,_0xac0c5b(_0x43be70)),_(0x2,_0x1d7ddc)],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 _0x493d(_0x48d1e4,_0x545b1f){const _0x1fbfec=_0x1fbf();return _0x493d=function(_0x493d61,_0x5dbb28){_0x493d61=_0x493d61-0x1cb;let _0x5813a6=_0x1fbfec[_0x493d61];return _0x5813a6;},_0x493d(_0x48d1e4,_0x545b1f);}function _0x1fbf(){const _0x27ad4b=['IExchangeOperateService','length','add','3995YbeaCl','_commandService','UniverProExchangeClient','CommandType','object','sheets-exchange-client.operation.exchange','FolderIcon','_initCommands','amd','RibbonStartGroup','WorkbookExportPermission','_menuManagerService','pluginName','exports','22648OCKsMm','ExportIcon','881820cLadAL','UniverProSheetsExchangeClient','search','11660fqqqoX','setConfig','importXLSXToSnapshot','15iOXLdV','get','@univerjs-pro/exchange-client','UniverSheetsExchangeClientPlugin','type','exchange.upload','defineProperty','SUBITEMS','BUTTON','importXLSXToUnitId','DependentOn','ICommandService','@univerjs/ui','ImportXLSXOperation','onStarting','Disposable','UniverSheetsUi','menu','DirectExportIcon','getOwnPropertyDescriptor','Injector','exportXLSXBySnapshot','getMenuHiddenObservable','onReady','OPERATION','26124hnuorX','UNIVER_SHEET','exchange-client.operation.import-xlsx','sheets-exchange-client.config','UniverCore','Plugin','Module','UniverExchangeClientPlugin','Inject','1034IVGyrd','_config','_configService','_injector','MenuItemType','63091WaVtAV','mergeMenu','SHEET_EXCHANGE_CLIENT_PLUGIN','exchange-client.operation.export-xlsx','UniverInstanceType','978lAfKju','6oNsOtO','toStringTag','symbol','registerCommand','OTHERS','_initMenus','206852stIaXg','3562YeCsRW','forEach','exchange.download','798crtpIW','getCurrentRangeDisable$','unit','function'];_0x1fbf=function(){return _0x27ad4b;};return _0x1fbf();}(function(_0x3eb470,_0x48517c){const _0x1a38ac=_0x493d,_0x209df4=_0x3eb470();while(!![]){try{const _0x56b1d4=-parseInt(_0x1a38ac(0x1ce))/0x1*(-parseInt(_0x1a38ac(0x1d4))/0x2)+parseInt(_0x1a38ac(0x1fb))/0x3*(parseInt(_0x1a38ac(0x1da))/0x4)+-parseInt(_0x1a38ac(0x1e5))/0x5*(parseInt(_0x1a38ac(0x1d3))/0x6)+-parseInt(_0x1a38ac(0x1de))/0x7*(-parseInt(_0x1a38ac(0x1f3))/0x8)+parseInt(_0x1a38ac(0x1f5))/0x9+parseInt(_0x1a38ac(0x1f8))/0xa*(parseInt(_0x1a38ac(0x21d))/0xb)+parseInt(_0x1a38ac(0x214))/0xc*(-parseInt(_0x1a38ac(0x1db))/0xd);if(_0x56b1d4===_0x48517c)break;else _0x209df4['push'](_0x209df4['shift']());}catch(_0x486519){_0x209df4['push'](_0x209df4['shift']());}}}(_0x1fbf,0x3d61d),function(_0x205731,_0x3813e1){const _0x56486e=_0x493d;typeof exports==_0x56486e(0x1e9)&&typeof module<'u'?_0x3813e1(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x56486e(0x1e1)&&define[_0x56486e(0x1ed)]?define([_0x56486e(0x1f2),_0x56486e(0x1fd),'@univerjs/core',_0x56486e(0x207),'@univerjs/sheets','@univerjs/sheets-ui'],_0x3813e1):(_0x205731=typeof globalThis<'u'?globalThis:_0x205731||self,_0x3813e1(_0x205731[_0x56486e(0x1f6)]={},_0x205731[_0x56486e(0x1e7)],_0x205731[_0x56486e(0x218)],_0x205731['UniverUi'],_0x205731['UniverSheets'],_0x205731[_0x56486e(0x20b)]));}(this,function(_0x10ad30,_0x2f1a6e,_0x180fb8,_0x47ddd9,_0x1ed9ad,_0x267c69){'use strict';const _0x41c946=_0x493d;const _0x217355={'id':_0x41c946(0x216),'type':_0x180fb8[_0x41c946(0x1e8)][_0x41c946(0x213)],'handler':async _0x41ca6c=>{const _0x3843d6=_0x41c946,_0x1de44a=_0x41ca6c['get'](_0x2f1a6e[_0x3843d6(0x1e2)]);return new URLSearchParams(location[_0x3843d6(0x1f7)])[_0x3843d6(0x1fc)](_0x3843d6(0x1e0))?_0x1de44a[_0x3843d6(0x204)]():_0x1de44a[_0x3843d6(0x1fa)](),!0x0;}},_0x2db3c0={'id':_0x41c946(0x1d1),'type':_0x180fb8[_0x41c946(0x1e8)][_0x41c946(0x213)],'handler':async _0x5e72db=>{const _0x41bebf=_0x41c946,_0x349c6a=_0x5e72db[_0x41bebf(0x1fc)](_0x2f1a6e[_0x41bebf(0x1e2)]);return new URLSearchParams(location[_0x41bebf(0x1f7)])[_0x41bebf(0x1fc)](_0x41bebf(0x1e0))?_0x349c6a['exportXLSXByUnitId']():_0x349c6a[_0x41bebf(0x210)](),!0x0;}},_0x14f749=_0x41c946(0x217),_0x36ed12={},_0x729312=_0x41c946(0x1ea);function _0x391631(_0x1f5148){const _0xcd592e=_0x41c946;return{'id':_0x729312,'type':_0x47ddd9[_0xcd592e(0x1cd)][_0xcd592e(0x202)],'icon':_0xcd592e(0x20d),'tooltip':'exchange.file','hidden$':_0x47ddd9[_0xcd592e(0x211)](_0x1f5148,_0x180fb8[_0xcd592e(0x1d2)][_0xcd592e(0x215)]),'disabled$':_0x267c69[_0xcd592e(0x1df)](_0x1f5148,{'workbookTypes':[_0x1ed9ad[_0xcd592e(0x1ef)]]})};}function _0x241bca(){const _0x9719bc=_0x41c946;return{'id':_0x217355['id'],'type':_0x47ddd9['MenuItemType'][_0x9719bc(0x203)],'title':_0x9719bc(0x200),'icon':_0x9719bc(0x1eb)};}function _0xaaf30e(){const _0x1a88f6=_0x41c946;return{'id':_0x2db3c0['id'],'type':_0x47ddd9[_0x1a88f6(0x1cd)][_0x1a88f6(0x203)],'title':_0x1a88f6(0x1dd),'icon':_0x1a88f6(0x1f4)};}const _0x3071c1={[_0x47ddd9[_0x41c946(0x1ee)][_0x41c946(0x1d8)]]:{[_0x729312]:{'order':0.3,'menuItemFactory':_0x391631,[_0x217355['id']]:{'order':0x0,'menuItemFactory':_0x241bca},[_0x2db3c0['id']]:{'order':0x1,'menuItemFactory':_0xaaf30e}}}};var _0x128f3f=Object[_0x41c946(0x20e)],_0x45224c=(_0x25b117,_0x3ca1dd,_0x361340,_0x2c5bcd)=>{const _0x1ace80=_0x41c946;for(var _0x551c01=_0x2c5bcd>0x1?void 0x0:_0x2c5bcd?_0x128f3f(_0x3ca1dd,_0x361340):_0x3ca1dd,_0x31f65a=_0x25b117[_0x1ace80(0x1e3)]-0x1,_0x3e144a;_0x31f65a>=0x0;_0x31f65a--)(_0x3e144a=_0x25b117[_0x31f65a])&&(_0x551c01=_0x3e144a(_0x551c01)||_0x551c01);return _0x551c01;},_0x2c16a0=(_0x13d128,_0x3a8579)=>(_0x34f521,_0x5e9eac)=>_0x3a8579(_0x34f521,_0x5e9eac,_0x13d128);let _0x2d3e9=class extends _0x180fb8[_0x41c946(0x20a)]{constructor(_0x3c9764,_0x1270e6){const _0x24f7e0=_0x41c946;super(),this[_0x24f7e0(0x1e6)]=_0x3c9764,this[_0x24f7e0(0x1f0)]=_0x1270e6,this[_0x24f7e0(0x1ec)](),this[_0x24f7e0(0x1d9)]();}['_initCommands'](){const _0x574f6e=_0x41c946;[_0x217355,_0x2db3c0][_0x574f6e(0x1dc)](_0x4f6973=>{const _0x5e9915=_0x574f6e;this['disposeWithMe'](this[_0x5e9915(0x1e6)][_0x5e9915(0x1d7)](_0x4f6973));});}[_0x41c946(0x1d9)](){const _0x1bd0ae=_0x41c946;this[_0x1bd0ae(0x1f0)][_0x1bd0ae(0x1cf)](_0x3071c1);}};_0x2d3e9=_0x45224c([_0x2c16a0(0x0,_0x180fb8[_0x41c946(0x206)]),_0x2c16a0(0x1,_0x47ddd9['IMenuManagerService'])],_0x2d3e9);var _0x5569ac=Object[_0x41c946(0x201)],_0xf05598=Object['getOwnPropertyDescriptor'],_0x2c1459=(_0x1599e1,_0x33272f,_0x1dcb24)=>_0x33272f in _0x1599e1?_0x5569ac(_0x1599e1,_0x33272f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1dcb24}):_0x1599e1[_0x33272f]=_0x1dcb24,_0x2edee4=(_0x5c89c3,_0x386e60,_0x497c3d,_0x494375)=>{const _0x8efa5a=_0x41c946;for(var _0x3b307a=_0x494375>0x1?void 0x0:_0x494375?_0xf05598(_0x386e60,_0x497c3d):_0x386e60,_0x4b3766=_0x5c89c3[_0x8efa5a(0x1e3)]-0x1,_0x30493b;_0x4b3766>=0x0;_0x4b3766--)(_0x30493b=_0x5c89c3[_0x4b3766])&&(_0x3b307a=_0x30493b(_0x3b307a)||_0x3b307a);return _0x3b307a;},_0xf88df9=(_0xce90de,_0x2a1ebc)=>(_0x55f8c4,_0x2735c1)=>_0x2a1ebc(_0x55f8c4,_0x2735c1,_0xce90de),_0x362131=(_0x8f2b45,_0x39fa6a,_0x351454)=>_0x2c1459(_0x8f2b45,typeof _0x39fa6a!=_0x41c946(0x1d6)?_0x39fa6a+'':_0x39fa6a,_0x351454);const _0x14147f=_0x41c946(0x1d0);_0x10ad30[_0x41c946(0x1fe)]=class extends _0x180fb8[_0x41c946(0x219)]{constructor(_0xa700d1=_0x36ed12,_0x2a1645,_0xbbae0b){const _0x54a3d9=_0x41c946;super(),this[_0x54a3d9(0x21e)]=_0xa700d1,this['_injector']=_0x2a1645,this[_0x54a3d9(0x1cb)]=_0xbbae0b;const {menu:_0x31636e,..._0x509a3c}=_0x180fb8['merge']({},_0x36ed12,this[_0x54a3d9(0x21e)]);_0x31636e&&this['_configService'][_0x54a3d9(0x1f9)](_0x54a3d9(0x20c),_0x31636e,{'merge':!0x0}),this[_0x54a3d9(0x1cb)][_0x54a3d9(0x1f9)](_0x14f749,_0x509a3c);}[_0x41c946(0x209)](){const _0x243a13=_0x41c946;[[_0x2d3e9]]['forEach'](_0x1c9c65=>this[_0x243a13(0x1cc)][_0x243a13(0x1e4)](_0x1c9c65));}[_0x41c946(0x212)](){const _0x1e9f0e=_0x41c946;this[_0x1e9f0e(0x1cc)]['get'](_0x2d3e9);}},_0x362131(_0x10ad30[_0x41c946(0x1fe)],_0x41c946(0x1f1),_0x14147f),_0x362131(_0x10ad30[_0x41c946(0x1fe)],_0x41c946(0x1ff),_0x180fb8[_0x41c946(0x1d2)][_0x41c946(0x215)]),_0x10ad30[_0x41c946(0x1fe)]=_0x2edee4([_0x180fb8[_0x41c946(0x205)](_0x2f1a6e[_0x41c946(0x21b)]),_0xf88df9(0x1,_0x180fb8[_0x41c946(0x21c)](_0x180fb8[_0x41c946(0x20f)])),_0xf88df9(0x2,_0x180fb8['IConfigService'])],_0x10ad30['UniverSheetsExchangeClientPlugin']),_0x10ad30['ExportXLSXOperation']=_0x2db3c0,_0x10ad30[_0x41c946(0x208)]=_0x217355,Object['defineProperty'](_0x10ad30,Symbol[_0x41c946(0x1d5)],{'value':_0x41c946(0x21a)});}));
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.202511070939",
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/core": "0.10.14-nightly.202511070939",
46
+ "@univerjs-pro/exchange-client": "0.10.14-nightly.202511070939",
47
+ "@univerjs/sheets": "0.10.14-nightly.202511070939",
48
+ "@univerjs/sheets-ui": "0.10.14-nightly.202511070939",
49
+ "@univerjs/ui": "0.10.14-nightly.202511070939"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",