@univerjs-pro/sheets-exchange-client 0.10.7-nightly.202509090319 → 0.10.7-nightly.202509130618

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 _0x5e796b=_0x52b7;(function(_0x308e08,_0x5250b9){const _0x28add3=_0x52b7,_0x4ce665=_0x308e08();while(!![]){try{const _0x46098e=-parseInt(_0x28add3(0x15a))/0x1*(parseInt(_0x28add3(0x12f))/0x2)+parseInt(_0x28add3(0x12d))/0x3+parseInt(_0x28add3(0x154))/0x4+parseInt(_0x28add3(0x145))/0x5*(-parseInt(_0x28add3(0x155))/0x6)+parseInt(_0x28add3(0x13e))/0x7*(parseInt(_0x28add3(0x140))/0x8)+parseInt(_0x28add3(0x158))/0x9*(parseInt(_0x28add3(0x125))/0xa)+parseInt(_0x28add3(0x152))/0xb;if(_0x46098e===_0x5250b9)break;else _0x4ce665['push'](_0x4ce665['shift']());}catch(_0x41f727){_0x4ce665['push'](_0x4ce665['shift']());}}}(_0xfe3f,0x8b56d));Object[_0x5e796b(0x12a)](exports,Symbol['toStringTag'],{'value':_0x5e796b(0x14d)});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['CommandType'][_0x5e796b(0x11e)],'handler':async _0x336b61=>{const _0x54b02d=_0x5e796b,_0x3ae688=_0x336b61[_0x54b02d(0x12b)](g[_0x54b02d(0x153)]);return new URLSearchParams(location[_0x54b02d(0x156)])['get'](_0x54b02d(0x130))?_0x3ae688[_0x54b02d(0x13b)]():_0x3ae688['importXLSXToSnapshot'](),!0x0;}},p={'id':_0x5e796b(0x149),'type':i[_0x5e796b(0x11f)][_0x5e796b(0x11e)],'handler':async _0x394c36=>{const _0x3d45ca=_0x5e796b,_0x2ea5cd=_0x394c36[_0x3d45ca(0x12b)](g[_0x3d45ca(0x153)]);return new URLSearchParams(location['search'])[_0x3d45ca(0x12b)](_0x3d45ca(0x130))?_0x2ea5cd[_0x3d45ca(0x13c)]():_0x2ea5cd[_0x3d45ca(0x14a)](),!0x0;}},v=_0x5e796b(0x11d),h={},S=_0x5e796b(0x137);function x(_0x2c0d57){const _0x2655bb=_0x5e796b;return{'id':S,'type':c[_0x2655bb(0x133)][_0x2655bb(0x129)],'icon':_0x2655bb(0x126),'tooltip':'exchange.file','hidden$':c[_0x2655bb(0x127)](_0x2c0d57,i['UniverInstanceType'][_0x2655bb(0x139)]),'disabled$':I['getCurrentRangeDisable$'](_0x2c0d57,{'workbookTypes':[_[_0x2655bb(0x13a)]]})};}function P(){const _0x231482=_0x5e796b;return{'id':l['id'],'type':c[_0x231482(0x133)]['BUTTON'],'title':'exchange.upload','icon':_0x231482(0x15c)};}function C(){const _0x130fde=_0x5e796b;return{'id':p['id'],'type':c[_0x130fde(0x133)]['BUTTON'],'title':_0x130fde(0x12c),'icon':'ExportIcon'};}const f={[c['RibbonStartGroup'][_0x5e796b(0x143)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x5e796b(0x159)],y=(_0x11a204,_0xcc8068,_0x5b93cc,_0x30e3c3)=>{const _0x36778f=_0x5e796b;for(var _0x32ba3a=_0x30e3c3>0x1?void 0x0:_0x30e3c3?T(_0xcc8068,_0x5b93cc):_0xcc8068,_0x17a0b2=_0x11a204[_0x36778f(0x148)]-0x1,_0x50f973;_0x17a0b2>=0x0;_0x17a0b2--)(_0x50f973=_0x11a204[_0x17a0b2])&&(_0x32ba3a=_0x50f973(_0x32ba3a)||_0x32ba3a);return _0x32ba3a;},m=(_0x16a0d0,_0x44cff7)=>(_0x1b2794,_0x4f40de)=>_0x44cff7(_0x1b2794,_0x4f40de,_0x16a0d0);let u=class extends i[_0x5e796b(0x124)]{constructor(_0x23a315,_0x50d6d8){const _0x5b3296=_0x5e796b;super(),this[_0x5b3296(0x11c)]=_0x23a315,this[_0x5b3296(0x146)]=_0x50d6d8,this['_initCommands'](),this[_0x5b3296(0x151)]();}[_0x5e796b(0x121)](){const _0x3941e1=_0x5e796b;[l,p][_0x3941e1(0x12e)](_0x183f2c=>{const _0x2ba10a=_0x3941e1;this['disposeWithMe'](this[_0x2ba10a(0x11c)][_0x2ba10a(0x14b)](_0x183f2c));});}[_0x5e796b(0x151)](){const _0x2c673d=_0x5e796b;this[_0x2c673d(0x146)][_0x2c673d(0x131)](f);}};function _0xfe3f(){const _0x35e431=['UNIVER_SHEET','WorkbookExportPermission','importXLSXToUnitId','exportXLSXByUnitId','ImportXLSXOperation','16975fxARVD','pluginName','64FPhLHH','Inject','_config','OTHERS','onReady','5GfVmqx','_menuManagerService','ICommandService','length','exchange-client.operation.export-xlsx','exportXLSXBySnapshot','registerCommand','ExportXLSXOperation','Module','Plugin','UniverInstanceType','merge','_initMenus','2493711aAVJrk','IExchangeOperateService','4349140xPVVmD','3586404YoWLbc','search','_injector','350964WtZYpT','getOwnPropertyDescriptor','7690HKjvqE','UniverSheetsExchangeClientPlugin','FolderIcon','UniverExchangeClientPlugin','_commandService','sheets-exchange-client.config','OPERATION','CommandType','DependentOn','_initCommands','type','onStarting','Disposable','40KOzakW','DirectExportIcon','getMenuHiddenObservable','_configService','SUBITEMS','defineProperty','get','exchange.download','582981BSKpvY','forEach','134fdrjEN','unit','mergeMenu','add','MenuItemType','setConfig','Injector','IMenuManagerService','sheets-exchange-client.operation.exchange','symbol'];_0xfe3f=function(){return _0x35e431;};return _0xfe3f();}u=y([m(0x0,i[_0x5e796b(0x147)]),m(0x1,c[_0x5e796b(0x136)])],u);var O=Object['defineProperty'],U=Object[_0x5e796b(0x159)],X=(_0x4e77c6,_0x365056,_0x36afde)=>_0x365056 in _0x4e77c6?O(_0x4e77c6,_0x365056,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x36afde}):_0x4e77c6[_0x365056]=_0x36afde,N=(_0x3c18a3,_0x22d145,_0x1eae49,_0x199c3b)=>{const _0x3c0f22=_0x5e796b;for(var _0x4b1baf=_0x199c3b>0x1?void 0x0:_0x199c3b?U(_0x22d145,_0x1eae49):_0x22d145,_0x5d2f43=_0x3c18a3[_0x3c0f22(0x148)]-0x1,_0x5334c0;_0x5d2f43>=0x0;_0x5d2f43--)(_0x5334c0=_0x3c18a3[_0x5d2f43])&&(_0x4b1baf=_0x5334c0(_0x4b1baf)||_0x4b1baf);return _0x4b1baf;},d=(_0x35dd3c,_0x8fe39b)=>(_0x30d68b,_0x223ed9)=>_0x8fe39b(_0x30d68b,_0x223ed9,_0x35dd3c),E=(_0x50f462,_0x261170,_0x3614fb)=>X(_0x50f462,typeof _0x261170!=_0x5e796b(0x138)?_0x261170+'':_0x261170,_0x3614fb);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';function _0x52b7(_0x7f25d8,_0x411223){const _0xfe3f50=_0xfe3f();return _0x52b7=function(_0x52b7fd,_0x1344e6){_0x52b7fd=_0x52b7fd-0x11b;let _0x27cd76=_0xfe3f50[_0x52b7fd];return _0x27cd76;},_0x52b7(_0x7f25d8,_0x411223);}exports[_0x5e796b(0x15b)]=class extends i[_0x5e796b(0x14e)]{constructor(_0x1b1e4a=h,_0x884575,_0x48b571){const _0x27af7a=_0x5e796b;super(),this[_0x27af7a(0x142)]=_0x1b1e4a,this['_injector']=_0x884575,this['_configService']=_0x48b571;const {menu:_0x905230,..._0x11d0c1}=i[_0x27af7a(0x150)]({},h,this[_0x27af7a(0x142)]);_0x905230&&this['_configService'][_0x27af7a(0x134)]('menu',_0x905230,{'merge':!0x0}),this[_0x27af7a(0x128)]['setConfig'](v,_0x11d0c1);}[_0x5e796b(0x123)](){const _0xb31b95=_0x5e796b;[[u]][_0xb31b95(0x12e)](_0xdbdd24=>this[_0xb31b95(0x157)][_0xb31b95(0x132)](_0xdbdd24));}[_0x5e796b(0x144)](){const _0x101747=_0x5e796b;this[_0x101747(0x157)]['get'](u);}},E(exports[_0x5e796b(0x15b)],_0x5e796b(0x13f),L),E(exports[_0x5e796b(0x15b)],_0x5e796b(0x122),i[_0x5e796b(0x14f)]['UNIVER_SHEET']),exports[_0x5e796b(0x15b)]=N([i[_0x5e796b(0x120)](g[_0x5e796b(0x11b)]),d(0x1,i[_0x5e796b(0x141)](i[_0x5e796b(0x135)])),d(0x2,i['IConfigService'])],exports[_0x5e796b(0x15b)]),exports[_0x5e796b(0x14c)]=p,exports[_0x5e796b(0x13d)]=l;
1
+ 'use strict';const _0x161315=_0x16b7;(function(_0x101241,_0x315d9c){const _0x244641=_0x16b7,_0x4980e2=_0x101241();while(!![]){try{const _0x2570d4=parseInt(_0x244641(0xda))/0x1*(parseInt(_0x244641(0xd7))/0x2)+-parseInt(_0x244641(0xce))/0x3+-parseInt(_0x244641(0xd2))/0x4*(parseInt(_0x244641(0xe0))/0x5)+-parseInt(_0x244641(0xf7))/0x6*(-parseInt(_0x244641(0xdc))/0x7)+parseInt(_0x244641(0x102))/0x8+parseInt(_0x244641(0xf4))/0x9+parseInt(_0x244641(0x109))/0xa;if(_0x2570d4===_0x315d9c)break;else _0x4980e2['push'](_0x4980e2['shift']());}catch(_0x82ac8d){_0x4980e2['push'](_0x4980e2['shift']());}}}(_0x47a9,0x5f049));Object['defineProperty'](exports,Symbol[_0x161315(0xd0)],{'value':_0x161315(0xde)});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':_0x161315(0xf1),'type':i[_0x161315(0xec)][_0x161315(0xe3)],'handler':async _0x500de6=>{const _0xd4418=_0x161315,_0x3259d9=_0x500de6[_0xd4418(0xdd)](g[_0xd4418(0xf8)]);return new URLSearchParams(location[_0xd4418(0xfb)])[_0xd4418(0xdd)](_0xd4418(0xd6))?_0x3259d9['importXLSXToUnitId']():_0x3259d9['importXLSXToSnapshot'](),!0x0;}},p={'id':_0x161315(0xe4),'type':i[_0x161315(0xec)][_0x161315(0xe3)],'handler':async _0x12dc25=>{const _0x4ba3bc=_0x161315,_0x492533=_0x12dc25['get'](g[_0x4ba3bc(0xf8)]);return new URLSearchParams(location[_0x4ba3bc(0xfb)])[_0x4ba3bc(0xdd)](_0x4ba3bc(0xd6))?_0x492533[_0x4ba3bc(0xe5)]():_0x492533['exportXLSXBySnapshot'](),!0x0;}},v=_0x161315(0xd5),h={},S=_0x161315(0xef);function x(_0x2256dc){const _0x4f711d=_0x161315;return{'id':S,'type':c[_0x4f711d(0xe1)]['SUBITEMS'],'icon':_0x4f711d(0xf0),'tooltip':'exchange.file','hidden$':c[_0x4f711d(0xf3)](_0x2256dc,i[_0x4f711d(0xd3)][_0x4f711d(0x107)]),'disabled$':I[_0x4f711d(0xcf)](_0x2256dc,{'workbookTypes':[_[_0x4f711d(0x101)]]})};}function P(){const _0x17eb11=_0x161315;return{'id':l['id'],'type':c[_0x17eb11(0xe1)][_0x17eb11(0xfd)],'title':'exchange.upload','icon':'FolderIcon'};}function C(){const _0xe7425f=_0x161315;return{'id':p['id'],'type':c[_0xe7425f(0xe1)][_0xe7425f(0xfd)],'title':'exchange.download','icon':_0xe7425f(0xdf)};}function _0x16b7(_0x1d63df,_0x1b0cd3){const _0x47a944=_0x47a9();return _0x16b7=function(_0x16b704,_0x1804b9){_0x16b704=_0x16b704-0xce;let _0x49cdc1=_0x47a944[_0x16b704];return _0x49cdc1;},_0x16b7(_0x1d63df,_0x1b0cd3);}const f={[c['RibbonStartGroup']['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x161315(0xff)],y=(_0x2014a4,_0x4eac0c,_0x370641,_0x12ae03)=>{const _0x5ce565=_0x161315;for(var _0x2c44a3=_0x12ae03>0x1?void 0x0:_0x12ae03?T(_0x4eac0c,_0x370641):_0x4eac0c,_0x3c4915=_0x2014a4[_0x5ce565(0xe8)]-0x1,_0x2955e4;_0x3c4915>=0x0;_0x3c4915--)(_0x2955e4=_0x2014a4[_0x3c4915])&&(_0x2c44a3=_0x2955e4(_0x2c44a3)||_0x2c44a3);return _0x2c44a3;},m=(_0x3037ae,_0x191978)=>(_0x22f885,_0x2a9ac5)=>_0x191978(_0x22f885,_0x2a9ac5,_0x3037ae);let u=class extends i['Disposable']{constructor(_0x3158ee,_0x3f9e21){const _0x13beee=_0x161315;super(),this[_0x13beee(0xfe)]=_0x3158ee,this['_menuManagerService']=_0x3f9e21,this['_initCommands'](),this[_0x13beee(0xea)]();}[_0x161315(0xfa)](){const _0x5a46ff=_0x161315;[l,p][_0x5a46ff(0xd9)](_0x5b93f2=>{const _0x4a7f21=_0x5a46ff;this[_0x4a7f21(0xf9)](this[_0x4a7f21(0xfe)][_0x4a7f21(0x104)](_0x5b93f2));});}[_0x161315(0xea)](){const _0x15f237=_0x161315;this[_0x15f237(0x10a)]['mergeMenu'](f);}};u=y([m(0x0,i[_0x161315(0xf6)]),m(0x1,c[_0x161315(0xed)])],u);var O=Object[_0x161315(0xd1)],U=Object[_0x161315(0xff)],X=(_0x1adab1,_0xc6c07b,_0x5746ec)=>_0xc6c07b in _0x1adab1?O(_0x1adab1,_0xc6c07b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5746ec}):_0x1adab1[_0xc6c07b]=_0x5746ec,N=(_0x114791,_0x4fcd6c,_0x437b9b,_0x164636)=>{for(var _0x5a7e91=_0x164636>0x1?void 0x0:_0x164636?U(_0x4fcd6c,_0x437b9b):_0x4fcd6c,_0x2e1519=_0x114791['length']-0x1,_0x436075;_0x2e1519>=0x0;_0x2e1519--)(_0x436075=_0x114791[_0x2e1519])&&(_0x5a7e91=_0x436075(_0x5a7e91)||_0x5a7e91);return _0x5a7e91;},d=(_0x5506ce,_0x23cca5)=>(_0x1f2bc5,_0x2a83b5)=>_0x23cca5(_0x1f2bc5,_0x2a83b5,_0x5506ce),E=(_0x46b8b7,_0x1fba4f,_0x1d15fe)=>X(_0x46b8b7,typeof _0x1fba4f!='symbol'?_0x1fba4f+'':_0x1fba4f,_0x1d15fe);function _0x47a9(){const _0x34916d=['disposeWithMe','_initCommands','search','onReady','BUTTON','_commandService','getOwnPropertyDescriptor','ExportXLSXOperation','WorkbookExportPermission','3779976FhxUPI','SHEET_EXCHANGE_CLIENT_PLUGIN','registerCommand','_config','IConfigService','UNIVER_SHEET','_injector','2385130nZazdO','_menuManagerService','2172351DsSRgm','getCurrentRangeDisable$','toStringTag','defineProperty','1337036umKkRy','UniverInstanceType','pluginName','sheets-exchange-client.config','unit','159108dRxhSw','_configService','forEach','3ycDoeW','onStarting','147ccktVB','get','Module','ExportIcon','5dFHsaU','MenuItemType','UniverSheetsExchangeClientPlugin','OPERATION','exchange-client.operation.export-xlsx','exportXLSXByUnitId','Injector','setConfig','length','Inject','_initMenus','UniverExchangeClientPlugin','CommandType','IMenuManagerService','ImportXLSXOperation','sheets-exchange-client.operation.exchange','DirectExportIcon','exchange-client.operation.import-xlsx','Plugin','getMenuHiddenObservable','2482776iRMOmZ','menu','ICommandService','63438mogycD','IExchangeOperateService'];_0x47a9=function(){return _0x34916d;};return _0x47a9();}const L=_0x161315(0x103);exports[_0x161315(0xe2)]=class extends i[_0x161315(0xf2)]{constructor(_0x546895=h,_0x317448,_0x334e46){const _0x3c6d33=_0x161315;super(),this[_0x3c6d33(0x105)]=_0x546895,this[_0x3c6d33(0x108)]=_0x317448,this['_configService']=_0x334e46;const {menu:_0x1f5a3b,..._0x51a6dc}=i['merge']({},h,this['_config']);_0x1f5a3b&&this[_0x3c6d33(0xd8)][_0x3c6d33(0xe7)](_0x3c6d33(0xf5),_0x1f5a3b,{'merge':!0x0}),this[_0x3c6d33(0xd8)][_0x3c6d33(0xe7)](v,_0x51a6dc);}[_0x161315(0xdb)](){const _0x5a00de=_0x161315;[[u]][_0x5a00de(0xd9)](_0x53c091=>this[_0x5a00de(0x108)]['add'](_0x53c091));}[_0x161315(0xfc)](){const _0x4dd65e=_0x161315;this[_0x4dd65e(0x108)][_0x4dd65e(0xdd)](u);}},E(exports['UniverSheetsExchangeClientPlugin'],_0x161315(0xd4),L),E(exports[_0x161315(0xe2)],'type',i['UniverInstanceType'][_0x161315(0x107)]),exports[_0x161315(0xe2)]=N([i['DependentOn'](g[_0x161315(0xeb)]),d(0x1,i[_0x161315(0xe9)](i[_0x161315(0xe6)])),d(0x2,i[_0x161315(0x106)])],exports['UniverSheetsExchangeClientPlugin']),exports[_0x161315(0x100)]=p,exports[_0x161315(0xee)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4721a7=_0x4ccd;function _0x1414(){const _0x24b8ad=['get','12487808kQyPsc','_configService','_injector','574825QhiEYR','_initMenus','255opROsg','SHEET_EXCHANGE_CLIENT_PLUGIN','add','search','SUBITEMS','forEach','BUTTON','importXLSXToUnitId','8572EAlRHm','registerCommand','getOwnPropertyDescriptor','exchange.upload','type','FolderIcon','sheets-exchange-client.config','exportXLSXByUnitId','_config','2299098tEyRiy','4753836diKrSj','mergeMenu','DirectExportIcon','OPERATION','exchange.download','exchange-client.operation.import-xlsx','defineProperty','UNIVER_SHEET','_commandService','OTHERS','exchange-client.operation.export-xlsx','535666NPjtcN','5972344PMmVtZ','menu','disposeWithMe','setConfig','onReady','unit','_menuManagerService','_initCommands'];_0x1414=function(){return _0x24b8ad;};return _0x1414();}(function(_0x44e4c6,_0x3cffe1){const _0x544850=_0x4ccd,_0x56db59=_0x44e4c6();while(!![]){try{const _0x31b22b=parseInt(_0x544850(0x85))/0x1+-parseInt(_0x544850(0x79))/0x2+-parseInt(_0x544850(0x68))/0x3*(parseInt(_0x544850(0x70))/0x4)+parseInt(_0x544850(0x66))/0x5+parseInt(_0x544850(0x7a))/0x6+-parseInt(_0x544850(0x86))/0x7+parseInt(_0x544850(0x8f))/0x8;if(_0x31b22b===_0x3cffe1)break;else _0x56db59['push'](_0x56db59['shift']());}catch(_0x2c5a7b){_0x56db59['push'](_0x56db59['shift']());}}}(_0x1414,0xc7f49));import{IExchangeOperateService as _0x4f4d79,UniverExchangeClientPlugin as _0x4e424e}from'@univerjs-pro/exchange-client';import{CommandType as _0x1bc901,UniverInstanceType as _0x22caf0,Disposable as _0x498fc8,ICommandService as _0x477b37,DependentOn as _0x3b5d64,Inject as _0x543d68,Injector as _0x4ad6b1,IConfigService as _0x191c1d,Plugin as _0x5f45cc,merge as _0xe74ba1}from'@univerjs/core';import{MenuItemType as _0x5e9502,getMenuHiddenObservable as _0x3e7422,RibbonStartGroup as _0x141274,IMenuManagerService as _0x38d2c1}from'@univerjs/ui';import{WorkbookExportPermission as _0x260489}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x23afe2}from'@univerjs/sheets-ui';const p={'id':_0x4721a7(0x7f),'type':_0x1bc901['OPERATION'],'handler':async _0x26f09c=>{const _0x148408=_0x4721a7,_0x314d0f=_0x26f09c[_0x148408(0x8e)](_0x4f4d79);return new URLSearchParams(location[_0x148408(0x6b)])['get']('unit')?_0x314d0f[_0x148408(0x6f)]():_0x314d0f['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x4721a7(0x84),'type':_0x1bc901[_0x4721a7(0x7d)],'handler':async _0x30a1f6=>{const _0x443b68=_0x4721a7,_0x3239a1=_0x30a1f6[_0x443b68(0x8e)](_0x4f4d79);return new URLSearchParams(location['search'])[_0x443b68(0x8e)](_0x443b68(0x8b))?_0x3239a1[_0x443b68(0x77)]():_0x3239a1['exportXLSXBySnapshot'](),!0x0;}},H=_0x4721a7(0x76),l={},S='sheets-exchange-client.operation.exchange';function R(_0x355be8){const _0x2b1e16=_0x4721a7;return{'id':S,'type':_0x5e9502[_0x2b1e16(0x6c)],'icon':_0x2b1e16(0x7c),'tooltip':'exchange.file','hidden$':_0x3e7422(_0x355be8,_0x22caf0[_0x2b1e16(0x81)]),'disabled$':_0x23afe2(_0x355be8,{'workbookTypes':[_0x260489]})};}function w(){const _0x110576=_0x4721a7;return{'id':p['id'],'type':_0x5e9502[_0x110576(0x6e)],'title':_0x110576(0x73),'icon':_0x110576(0x75)};}function D(){const _0x1a8caa=_0x4721a7;return{'id':u['id'],'type':_0x5e9502[_0x1a8caa(0x6e)],'title':_0x1a8caa(0x7e),'icon':'ExportIcon'};}const F={[_0x141274[_0x4721a7(0x83)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x4721a7(0x72)],A=(_0x1d61a0,_0x48d518,_0x34d58d,_0x253c2c)=>{for(var _0x397fbb=_0x253c2c>0x1?void 0x0:_0x253c2c?G(_0x48d518,_0x34d58d):_0x48d518,_0x947d44=_0x1d61a0['length']-0x1,_0x1de1a0;_0x947d44>=0x0;_0x947d44--)(_0x1de1a0=_0x1d61a0[_0x947d44])&&(_0x397fbb=_0x1de1a0(_0x397fbb)||_0x397fbb);return _0x397fbb;},d=(_0x4722ce,_0x3e07b3)=>(_0x58799a,_0x1ec800)=>_0x3e07b3(_0x58799a,_0x1ec800,_0x4722ce);let c=class extends _0x498fc8{constructor(_0x36b95e,_0x4a2d48){const _0x459f32=_0x4721a7;super(),this[_0x459f32(0x82)]=_0x36b95e,this[_0x459f32(0x8c)]=_0x4a2d48,this[_0x459f32(0x8d)](),this[_0x459f32(0x67)]();}[_0x4721a7(0x8d)](){const _0x31c848=_0x4721a7;[p,u][_0x31c848(0x6d)](_0x29bded=>{const _0x3d6378=_0x31c848;this[_0x3d6378(0x88)](this['_commandService'][_0x3d6378(0x71)](_0x29bded));});}['_initMenus'](){const _0x4ef7d2=_0x4721a7;this[_0x4ef7d2(0x8c)][_0x4ef7d2(0x7b)](F);}};c=A([d(0x0,_0x477b37),d(0x1,_0x38d2c1)],c);var j=Object[_0x4721a7(0x80)],B=Object[_0x4721a7(0x72)],$=(_0x587dcf,_0x39d691,_0x53786a)=>_0x39d691 in _0x587dcf?j(_0x587dcf,_0x39d691,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53786a}):_0x587dcf[_0x39d691]=_0x53786a,V=(_0x2d249a,_0x1ffd16,_0x42dfa6,_0x1a3f6d)=>{for(var _0x3f3cf5=_0x1a3f6d>0x1?void 0x0:_0x1a3f6d?B(_0x1ffd16,_0x42dfa6):_0x1ffd16,_0x44f356=_0x2d249a['length']-0x1,_0x49ab80;_0x44f356>=0x0;_0x44f356--)(_0x49ab80=_0x2d249a[_0x44f356])&&(_0x3f3cf5=_0x49ab80(_0x3f3cf5)||_0x3f3cf5);return _0x3f3cf5;},_=(_0x6e3b54,_0x422087)=>(_0x48ba71,_0x1fbfe7)=>_0x422087(_0x48ba71,_0x1fbfe7,_0x6e3b54),I=(_0xf74412,_0x527ea6,_0x1de4cd)=>$(_0xf74412,typeof _0x527ea6!='symbol'?_0x527ea6+'':_0x527ea6,_0x1de4cd);const W=_0x4721a7(0x69);let s=class extends _0x5f45cc{constructor(_0x4c3289=l,_0x57addf,_0x5468aa){const _0x4d8166=_0x4721a7;super(),this['_config']=_0x4c3289,this['_injector']=_0x57addf,this[_0x4d8166(0x90)]=_0x5468aa;const {menu:_0x2b804b,..._0x2dc977}=_0xe74ba1({},l,this[_0x4d8166(0x78)]);_0x2b804b&&this['_configService'][_0x4d8166(0x89)](_0x4d8166(0x87),_0x2b804b,{'merge':!0x0}),this[_0x4d8166(0x90)][_0x4d8166(0x89)](H,_0x2dc977);}['onStarting'](){const _0x147f31=_0x4721a7;[[c]][_0x147f31(0x6d)](_0x2f19eb=>this[_0x147f31(0x65)][_0x147f31(0x6a)](_0x2f19eb));}[_0x4721a7(0x8a)](){const _0x3196bc=_0x4721a7;this['_injector'][_0x3196bc(0x8e)](c);}};function _0x4ccd(_0x58cb9b,_0x3f33e1){const _0x14148d=_0x1414();return _0x4ccd=function(_0x4ccdb7,_0x357817){_0x4ccdb7=_0x4ccdb7-0x65;let _0x3f7a88=_0x14148d[_0x4ccdb7];return _0x3f7a88;},_0x4ccd(_0x58cb9b,_0x3f33e1);}I(s,'pluginName',W),I(s,_0x4721a7(0x74),_0x22caf0[_0x4721a7(0x81)]),s=V([_0x3b5d64(_0x4e424e),_(0x1,_0x543d68(_0x4ad6b1)),_(0x2,_0x191c1d)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x4b7d94=_0x1d8a;(function(_0x512976,_0x56aa26){const _0x3e4b17=_0x1d8a,_0xd187cd=_0x512976();while(!![]){try{const _0x6cbae4=-parseInt(_0x3e4b17(0xa2))/0x1+parseInt(_0x3e4b17(0xb0))/0x2*(-parseInt(_0x3e4b17(0xa3))/0x3)+parseInt(_0x3e4b17(0x99))/0x4*(-parseInt(_0x3e4b17(0xad))/0x5)+parseInt(_0x3e4b17(0xa0))/0x6+parseInt(_0x3e4b17(0x93))/0x7+-parseInt(_0x3e4b17(0x90))/0x8*(-parseInt(_0x3e4b17(0xa8))/0x9)+-parseInt(_0x3e4b17(0xb5))/0xa*(-parseInt(_0x3e4b17(0xaf))/0xb);if(_0x6cbae4===_0x56aa26)break;else _0xd187cd['push'](_0xd187cd['shift']());}catch(_0x404807){_0xd187cd['push'](_0xd187cd['shift']());}}}(_0x89e1,0x8f759));import{IExchangeOperateService as _0x3359ad,UniverExchangeClientPlugin as _0x15c687}from'@univerjs-pro/exchange-client';import{CommandType as _0x509d0e,UniverInstanceType as _0x5267e3,Disposable as _0x40822d,ICommandService as _0x50f260,DependentOn as _0xb26a63,Inject as _0x3c3aff,Injector as _0xf34d9,IConfigService as _0x176dc4,Plugin as _0xda70a5,merge as _0x77e175}from'@univerjs/core';import{MenuItemType as _0x43f7b1,getMenuHiddenObservable as _0x42847d,RibbonStartGroup as _0x2eb01e,IMenuManagerService as _0x44ee32}from'@univerjs/ui';import{WorkbookExportPermission as _0x46e3f3}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x5c665b}from'@univerjs/sheets-ui';function _0x89e1(){const _0x5c598c=['SUBITEMS','defineProperty','mergeMenu','onStarting','type','DirectExportIcon','exportXLSXBySnapshot','search','765664nsvBRW','getOwnPropertyDescriptor','unit','675598LSTaqz','exchange.file','sheets-exchange-client.operation.exchange','get','symbol','OTHERS','4600912OROYJf','SHEET_EXCHANGE_CLIENT_PLUGIN','OPERATION','_injector','BUTTON','_commandService','_initCommands','2793000hIgKUn','registerCommand','578435zGNlpa','12mYhiTj','exchange-client.operation.import-xlsx','exchange-client.operation.export-xlsx','importXLSXToSnapshot','onReady','27nSjBEX','FolderIcon','length','_initMenus','_menuManagerService','5YiYtUs','sheets-exchange-client.config','990jWsGYq','430538wsvNML','pluginName','setConfig','_config','importXLSXToUnitId','258690jsghdg','UNIVER_SHEET','exchange.upload','_configService','forEach'];_0x89e1=function(){return _0x5c598c;};return _0x89e1();}const p={'id':_0x4b7d94(0xa4),'type':_0x509d0e[_0x4b7d94(0x9b)],'handler':async _0x4a7de9=>{const _0x340b83=_0x4b7d94,_0x333bed=_0x4a7de9['get'](_0x3359ad);return new URLSearchParams(location['search'])[_0x340b83(0x96)](_0x340b83(0x92))?_0x333bed[_0x340b83(0xb4)]():_0x333bed[_0x340b83(0xa6)](),!0x0;}},u={'id':_0x4b7d94(0xa5),'type':_0x509d0e[_0x4b7d94(0x9b)],'handler':async _0x53c95f=>{const _0x150fd1=_0x4b7d94,_0x53b7bc=_0x53c95f[_0x150fd1(0x96)](_0x3359ad);return new URLSearchParams(location[_0x150fd1(0x8f)])[_0x150fd1(0x96)](_0x150fd1(0x92))?_0x53b7bc['exportXLSXByUnitId']():_0x53b7bc[_0x150fd1(0x8e)](),!0x0;}},H=_0x4b7d94(0xae),l={},S=_0x4b7d94(0x95);function R(_0x34aeb6){const _0x18eb4d=_0x4b7d94;return{'id':S,'type':_0x43f7b1[_0x18eb4d(0x88)],'icon':_0x18eb4d(0x8d),'tooltip':_0x18eb4d(0x94),'hidden$':_0x42847d(_0x34aeb6,_0x5267e3[_0x18eb4d(0xb6)]),'disabled$':_0x5c665b(_0x34aeb6,{'workbookTypes':[_0x46e3f3]})};}function w(){const _0x50ef32=_0x4b7d94;return{'id':p['id'],'type':_0x43f7b1[_0x50ef32(0x9d)],'title':_0x50ef32(0xb7),'icon':_0x50ef32(0xa9)};}function D(){return{'id':u['id'],'type':_0x43f7b1['BUTTON'],'title':'exchange.download','icon':'ExportIcon'};}const F={[_0x2eb01e[_0x4b7d94(0x98)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x4b7d94(0x91)],A=(_0x36cfeb,_0x49f722,_0x8a7712,_0x2a4f10)=>{const _0x30ad67=_0x4b7d94;for(var _0x51d2d4=_0x2a4f10>0x1?void 0x0:_0x2a4f10?G(_0x49f722,_0x8a7712):_0x49f722,_0x155757=_0x36cfeb[_0x30ad67(0xaa)]-0x1,_0x4e73e6;_0x155757>=0x0;_0x155757--)(_0x4e73e6=_0x36cfeb[_0x155757])&&(_0x51d2d4=_0x4e73e6(_0x51d2d4)||_0x51d2d4);return _0x51d2d4;},d=(_0x46976b,_0x4cff18)=>(_0x26937b,_0x416aa5)=>_0x4cff18(_0x26937b,_0x416aa5,_0x46976b);function _0x1d8a(_0x58bb57,_0x1fc49a){const _0x89e109=_0x89e1();return _0x1d8a=function(_0x1d8a0f,_0x20c4a1){_0x1d8a0f=_0x1d8a0f-0x88;let _0x3b6317=_0x89e109[_0x1d8a0f];return _0x3b6317;},_0x1d8a(_0x58bb57,_0x1fc49a);}let c=class extends _0x40822d{constructor(_0x5d6aca,_0x4501a5){const _0x332b31=_0x4b7d94;super(),this[_0x332b31(0x9e)]=_0x5d6aca,this[_0x332b31(0xac)]=_0x4501a5,this[_0x332b31(0x9f)](),this[_0x332b31(0xab)]();}[_0x4b7d94(0x9f)](){const _0x3d90ab=_0x4b7d94;[p,u][_0x3d90ab(0xb9)](_0x7d2ca7=>{const _0x33d672=_0x3d90ab;this['disposeWithMe'](this[_0x33d672(0x9e)][_0x33d672(0xa1)](_0x7d2ca7));});}[_0x4b7d94(0xab)](){const _0x5f429d=_0x4b7d94;this[_0x5f429d(0xac)][_0x5f429d(0x8a)](F);}};c=A([d(0x0,_0x50f260),d(0x1,_0x44ee32)],c);var j=Object[_0x4b7d94(0x89)],B=Object[_0x4b7d94(0x91)],$=(_0x958529,_0x1c9f9f,_0x658a4)=>_0x1c9f9f in _0x958529?j(_0x958529,_0x1c9f9f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x658a4}):_0x958529[_0x1c9f9f]=_0x658a4,V=(_0x4454b0,_0x15e5f0,_0x2b34c5,_0x541678)=>{const _0x94d2fe=_0x4b7d94;for(var _0x20efee=_0x541678>0x1?void 0x0:_0x541678?B(_0x15e5f0,_0x2b34c5):_0x15e5f0,_0x1aa20c=_0x4454b0[_0x94d2fe(0xaa)]-0x1,_0x1a528e;_0x1aa20c>=0x0;_0x1aa20c--)(_0x1a528e=_0x4454b0[_0x1aa20c])&&(_0x20efee=_0x1a528e(_0x20efee)||_0x20efee);return _0x20efee;},_=(_0x45bc35,_0x3a8093)=>(_0x5260fd,_0x4ac19b)=>_0x3a8093(_0x5260fd,_0x4ac19b,_0x45bc35),I=(_0x1ccbd2,_0x3be676,_0x300b70)=>$(_0x1ccbd2,typeof _0x3be676!=_0x4b7d94(0x97)?_0x3be676+'':_0x3be676,_0x300b70);const W=_0x4b7d94(0x9a);let s=class extends _0xda70a5{constructor(_0x70de5e=l,_0x41b90d,_0x679d70){const _0x181ea3=_0x4b7d94;super(),this['_config']=_0x70de5e,this[_0x181ea3(0x9c)]=_0x41b90d,this['_configService']=_0x679d70;const {menu:_0x2a0e5f,..._0x1b8c94}=_0x77e175({},l,this[_0x181ea3(0xb3)]);_0x2a0e5f&&this['_configService'][_0x181ea3(0xb2)]('menu',_0x2a0e5f,{'merge':!0x0}),this[_0x181ea3(0xb8)][_0x181ea3(0xb2)](H,_0x1b8c94);}[_0x4b7d94(0x8b)](){const _0x107367=_0x4b7d94;[[c]][_0x107367(0xb9)](_0x78c0bf=>this[_0x107367(0x9c)]['add'](_0x78c0bf));}[_0x4b7d94(0xa7)](){const _0x13571e=_0x4b7d94;this[_0x13571e(0x9c)][_0x13571e(0x96)](c);}};I(s,_0x4b7d94(0xb1),W),I(s,_0x4b7d94(0x8c),_0x5267e3[_0x4b7d94(0xb6)]),s=V([_0xb26a63(_0x15c687),_(0x1,_0x3c3aff(_0xf34d9)),_(0x2,_0x176dc4)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4721a7=_0x4ccd;function _0x1414(){const _0x24b8ad=['get','12487808kQyPsc','_configService','_injector','574825QhiEYR','_initMenus','255opROsg','SHEET_EXCHANGE_CLIENT_PLUGIN','add','search','SUBITEMS','forEach','BUTTON','importXLSXToUnitId','8572EAlRHm','registerCommand','getOwnPropertyDescriptor','exchange.upload','type','FolderIcon','sheets-exchange-client.config','exportXLSXByUnitId','_config','2299098tEyRiy','4753836diKrSj','mergeMenu','DirectExportIcon','OPERATION','exchange.download','exchange-client.operation.import-xlsx','defineProperty','UNIVER_SHEET','_commandService','OTHERS','exchange-client.operation.export-xlsx','535666NPjtcN','5972344PMmVtZ','menu','disposeWithMe','setConfig','onReady','unit','_menuManagerService','_initCommands'];_0x1414=function(){return _0x24b8ad;};return _0x1414();}(function(_0x44e4c6,_0x3cffe1){const _0x544850=_0x4ccd,_0x56db59=_0x44e4c6();while(!![]){try{const _0x31b22b=parseInt(_0x544850(0x85))/0x1+-parseInt(_0x544850(0x79))/0x2+-parseInt(_0x544850(0x68))/0x3*(parseInt(_0x544850(0x70))/0x4)+parseInt(_0x544850(0x66))/0x5+parseInt(_0x544850(0x7a))/0x6+-parseInt(_0x544850(0x86))/0x7+parseInt(_0x544850(0x8f))/0x8;if(_0x31b22b===_0x3cffe1)break;else _0x56db59['push'](_0x56db59['shift']());}catch(_0x2c5a7b){_0x56db59['push'](_0x56db59['shift']());}}}(_0x1414,0xc7f49));import{IExchangeOperateService as _0x4f4d79,UniverExchangeClientPlugin as _0x4e424e}from'@univerjs-pro/exchange-client';import{CommandType as _0x1bc901,UniverInstanceType as _0x22caf0,Disposable as _0x498fc8,ICommandService as _0x477b37,DependentOn as _0x3b5d64,Inject as _0x543d68,Injector as _0x4ad6b1,IConfigService as _0x191c1d,Plugin as _0x5f45cc,merge as _0xe74ba1}from'@univerjs/core';import{MenuItemType as _0x5e9502,getMenuHiddenObservable as _0x3e7422,RibbonStartGroup as _0x141274,IMenuManagerService as _0x38d2c1}from'@univerjs/ui';import{WorkbookExportPermission as _0x260489}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x23afe2}from'@univerjs/sheets-ui';const p={'id':_0x4721a7(0x7f),'type':_0x1bc901['OPERATION'],'handler':async _0x26f09c=>{const _0x148408=_0x4721a7,_0x314d0f=_0x26f09c[_0x148408(0x8e)](_0x4f4d79);return new URLSearchParams(location[_0x148408(0x6b)])['get']('unit')?_0x314d0f[_0x148408(0x6f)]():_0x314d0f['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x4721a7(0x84),'type':_0x1bc901[_0x4721a7(0x7d)],'handler':async _0x30a1f6=>{const _0x443b68=_0x4721a7,_0x3239a1=_0x30a1f6[_0x443b68(0x8e)](_0x4f4d79);return new URLSearchParams(location['search'])[_0x443b68(0x8e)](_0x443b68(0x8b))?_0x3239a1[_0x443b68(0x77)]():_0x3239a1['exportXLSXBySnapshot'](),!0x0;}},H=_0x4721a7(0x76),l={},S='sheets-exchange-client.operation.exchange';function R(_0x355be8){const _0x2b1e16=_0x4721a7;return{'id':S,'type':_0x5e9502[_0x2b1e16(0x6c)],'icon':_0x2b1e16(0x7c),'tooltip':'exchange.file','hidden$':_0x3e7422(_0x355be8,_0x22caf0[_0x2b1e16(0x81)]),'disabled$':_0x23afe2(_0x355be8,{'workbookTypes':[_0x260489]})};}function w(){const _0x110576=_0x4721a7;return{'id':p['id'],'type':_0x5e9502[_0x110576(0x6e)],'title':_0x110576(0x73),'icon':_0x110576(0x75)};}function D(){const _0x1a8caa=_0x4721a7;return{'id':u['id'],'type':_0x5e9502[_0x1a8caa(0x6e)],'title':_0x1a8caa(0x7e),'icon':'ExportIcon'};}const F={[_0x141274[_0x4721a7(0x83)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x4721a7(0x72)],A=(_0x1d61a0,_0x48d518,_0x34d58d,_0x253c2c)=>{for(var _0x397fbb=_0x253c2c>0x1?void 0x0:_0x253c2c?G(_0x48d518,_0x34d58d):_0x48d518,_0x947d44=_0x1d61a0['length']-0x1,_0x1de1a0;_0x947d44>=0x0;_0x947d44--)(_0x1de1a0=_0x1d61a0[_0x947d44])&&(_0x397fbb=_0x1de1a0(_0x397fbb)||_0x397fbb);return _0x397fbb;},d=(_0x4722ce,_0x3e07b3)=>(_0x58799a,_0x1ec800)=>_0x3e07b3(_0x58799a,_0x1ec800,_0x4722ce);let c=class extends _0x498fc8{constructor(_0x36b95e,_0x4a2d48){const _0x459f32=_0x4721a7;super(),this[_0x459f32(0x82)]=_0x36b95e,this[_0x459f32(0x8c)]=_0x4a2d48,this[_0x459f32(0x8d)](),this[_0x459f32(0x67)]();}[_0x4721a7(0x8d)](){const _0x31c848=_0x4721a7;[p,u][_0x31c848(0x6d)](_0x29bded=>{const _0x3d6378=_0x31c848;this[_0x3d6378(0x88)](this['_commandService'][_0x3d6378(0x71)](_0x29bded));});}['_initMenus'](){const _0x4ef7d2=_0x4721a7;this[_0x4ef7d2(0x8c)][_0x4ef7d2(0x7b)](F);}};c=A([d(0x0,_0x477b37),d(0x1,_0x38d2c1)],c);var j=Object[_0x4721a7(0x80)],B=Object[_0x4721a7(0x72)],$=(_0x587dcf,_0x39d691,_0x53786a)=>_0x39d691 in _0x587dcf?j(_0x587dcf,_0x39d691,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53786a}):_0x587dcf[_0x39d691]=_0x53786a,V=(_0x2d249a,_0x1ffd16,_0x42dfa6,_0x1a3f6d)=>{for(var _0x3f3cf5=_0x1a3f6d>0x1?void 0x0:_0x1a3f6d?B(_0x1ffd16,_0x42dfa6):_0x1ffd16,_0x44f356=_0x2d249a['length']-0x1,_0x49ab80;_0x44f356>=0x0;_0x44f356--)(_0x49ab80=_0x2d249a[_0x44f356])&&(_0x3f3cf5=_0x49ab80(_0x3f3cf5)||_0x3f3cf5);return _0x3f3cf5;},_=(_0x6e3b54,_0x422087)=>(_0x48ba71,_0x1fbfe7)=>_0x422087(_0x48ba71,_0x1fbfe7,_0x6e3b54),I=(_0xf74412,_0x527ea6,_0x1de4cd)=>$(_0xf74412,typeof _0x527ea6!='symbol'?_0x527ea6+'':_0x527ea6,_0x1de4cd);const W=_0x4721a7(0x69);let s=class extends _0x5f45cc{constructor(_0x4c3289=l,_0x57addf,_0x5468aa){const _0x4d8166=_0x4721a7;super(),this['_config']=_0x4c3289,this['_injector']=_0x57addf,this[_0x4d8166(0x90)]=_0x5468aa;const {menu:_0x2b804b,..._0x2dc977}=_0xe74ba1({},l,this[_0x4d8166(0x78)]);_0x2b804b&&this['_configService'][_0x4d8166(0x89)](_0x4d8166(0x87),_0x2b804b,{'merge':!0x0}),this[_0x4d8166(0x90)][_0x4d8166(0x89)](H,_0x2dc977);}['onStarting'](){const _0x147f31=_0x4721a7;[[c]][_0x147f31(0x6d)](_0x2f19eb=>this[_0x147f31(0x65)][_0x147f31(0x6a)](_0x2f19eb));}[_0x4721a7(0x8a)](){const _0x3196bc=_0x4721a7;this['_injector'][_0x3196bc(0x8e)](c);}};function _0x4ccd(_0x58cb9b,_0x3f33e1){const _0x14148d=_0x1414();return _0x4ccd=function(_0x4ccdb7,_0x357817){_0x4ccdb7=_0x4ccdb7-0x65;let _0x3f7a88=_0x14148d[_0x4ccdb7];return _0x3f7a88;},_0x4ccd(_0x58cb9b,_0x3f33e1);}I(s,'pluginName',W),I(s,_0x4721a7(0x74),_0x22caf0[_0x4721a7(0x81)]),s=V([_0x3b5d64(_0x4e424e),_(0x1,_0x543d68(_0x4ad6b1)),_(0x2,_0x191c1d)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x4b7d94=_0x1d8a;(function(_0x512976,_0x56aa26){const _0x3e4b17=_0x1d8a,_0xd187cd=_0x512976();while(!![]){try{const _0x6cbae4=-parseInt(_0x3e4b17(0xa2))/0x1+parseInt(_0x3e4b17(0xb0))/0x2*(-parseInt(_0x3e4b17(0xa3))/0x3)+parseInt(_0x3e4b17(0x99))/0x4*(-parseInt(_0x3e4b17(0xad))/0x5)+parseInt(_0x3e4b17(0xa0))/0x6+parseInt(_0x3e4b17(0x93))/0x7+-parseInt(_0x3e4b17(0x90))/0x8*(-parseInt(_0x3e4b17(0xa8))/0x9)+-parseInt(_0x3e4b17(0xb5))/0xa*(-parseInt(_0x3e4b17(0xaf))/0xb);if(_0x6cbae4===_0x56aa26)break;else _0xd187cd['push'](_0xd187cd['shift']());}catch(_0x404807){_0xd187cd['push'](_0xd187cd['shift']());}}}(_0x89e1,0x8f759));import{IExchangeOperateService as _0x3359ad,UniverExchangeClientPlugin as _0x15c687}from'@univerjs-pro/exchange-client';import{CommandType as _0x509d0e,UniverInstanceType as _0x5267e3,Disposable as _0x40822d,ICommandService as _0x50f260,DependentOn as _0xb26a63,Inject as _0x3c3aff,Injector as _0xf34d9,IConfigService as _0x176dc4,Plugin as _0xda70a5,merge as _0x77e175}from'@univerjs/core';import{MenuItemType as _0x43f7b1,getMenuHiddenObservable as _0x42847d,RibbonStartGroup as _0x2eb01e,IMenuManagerService as _0x44ee32}from'@univerjs/ui';import{WorkbookExportPermission as _0x46e3f3}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x5c665b}from'@univerjs/sheets-ui';function _0x89e1(){const _0x5c598c=['SUBITEMS','defineProperty','mergeMenu','onStarting','type','DirectExportIcon','exportXLSXBySnapshot','search','765664nsvBRW','getOwnPropertyDescriptor','unit','675598LSTaqz','exchange.file','sheets-exchange-client.operation.exchange','get','symbol','OTHERS','4600912OROYJf','SHEET_EXCHANGE_CLIENT_PLUGIN','OPERATION','_injector','BUTTON','_commandService','_initCommands','2793000hIgKUn','registerCommand','578435zGNlpa','12mYhiTj','exchange-client.operation.import-xlsx','exchange-client.operation.export-xlsx','importXLSXToSnapshot','onReady','27nSjBEX','FolderIcon','length','_initMenus','_menuManagerService','5YiYtUs','sheets-exchange-client.config','990jWsGYq','430538wsvNML','pluginName','setConfig','_config','importXLSXToUnitId','258690jsghdg','UNIVER_SHEET','exchange.upload','_configService','forEach'];_0x89e1=function(){return _0x5c598c;};return _0x89e1();}const p={'id':_0x4b7d94(0xa4),'type':_0x509d0e[_0x4b7d94(0x9b)],'handler':async _0x4a7de9=>{const _0x340b83=_0x4b7d94,_0x333bed=_0x4a7de9['get'](_0x3359ad);return new URLSearchParams(location['search'])[_0x340b83(0x96)](_0x340b83(0x92))?_0x333bed[_0x340b83(0xb4)]():_0x333bed[_0x340b83(0xa6)](),!0x0;}},u={'id':_0x4b7d94(0xa5),'type':_0x509d0e[_0x4b7d94(0x9b)],'handler':async _0x53c95f=>{const _0x150fd1=_0x4b7d94,_0x53b7bc=_0x53c95f[_0x150fd1(0x96)](_0x3359ad);return new URLSearchParams(location[_0x150fd1(0x8f)])[_0x150fd1(0x96)](_0x150fd1(0x92))?_0x53b7bc['exportXLSXByUnitId']():_0x53b7bc[_0x150fd1(0x8e)](),!0x0;}},H=_0x4b7d94(0xae),l={},S=_0x4b7d94(0x95);function R(_0x34aeb6){const _0x18eb4d=_0x4b7d94;return{'id':S,'type':_0x43f7b1[_0x18eb4d(0x88)],'icon':_0x18eb4d(0x8d),'tooltip':_0x18eb4d(0x94),'hidden$':_0x42847d(_0x34aeb6,_0x5267e3[_0x18eb4d(0xb6)]),'disabled$':_0x5c665b(_0x34aeb6,{'workbookTypes':[_0x46e3f3]})};}function w(){const _0x50ef32=_0x4b7d94;return{'id':p['id'],'type':_0x43f7b1[_0x50ef32(0x9d)],'title':_0x50ef32(0xb7),'icon':_0x50ef32(0xa9)};}function D(){return{'id':u['id'],'type':_0x43f7b1['BUTTON'],'title':'exchange.download','icon':'ExportIcon'};}const F={[_0x2eb01e[_0x4b7d94(0x98)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x4b7d94(0x91)],A=(_0x36cfeb,_0x49f722,_0x8a7712,_0x2a4f10)=>{const _0x30ad67=_0x4b7d94;for(var _0x51d2d4=_0x2a4f10>0x1?void 0x0:_0x2a4f10?G(_0x49f722,_0x8a7712):_0x49f722,_0x155757=_0x36cfeb[_0x30ad67(0xaa)]-0x1,_0x4e73e6;_0x155757>=0x0;_0x155757--)(_0x4e73e6=_0x36cfeb[_0x155757])&&(_0x51d2d4=_0x4e73e6(_0x51d2d4)||_0x51d2d4);return _0x51d2d4;},d=(_0x46976b,_0x4cff18)=>(_0x26937b,_0x416aa5)=>_0x4cff18(_0x26937b,_0x416aa5,_0x46976b);function _0x1d8a(_0x58bb57,_0x1fc49a){const _0x89e109=_0x89e1();return _0x1d8a=function(_0x1d8a0f,_0x20c4a1){_0x1d8a0f=_0x1d8a0f-0x88;let _0x3b6317=_0x89e109[_0x1d8a0f];return _0x3b6317;},_0x1d8a(_0x58bb57,_0x1fc49a);}let c=class extends _0x40822d{constructor(_0x5d6aca,_0x4501a5){const _0x332b31=_0x4b7d94;super(),this[_0x332b31(0x9e)]=_0x5d6aca,this[_0x332b31(0xac)]=_0x4501a5,this[_0x332b31(0x9f)](),this[_0x332b31(0xab)]();}[_0x4b7d94(0x9f)](){const _0x3d90ab=_0x4b7d94;[p,u][_0x3d90ab(0xb9)](_0x7d2ca7=>{const _0x33d672=_0x3d90ab;this['disposeWithMe'](this[_0x33d672(0x9e)][_0x33d672(0xa1)](_0x7d2ca7));});}[_0x4b7d94(0xab)](){const _0x5f429d=_0x4b7d94;this[_0x5f429d(0xac)][_0x5f429d(0x8a)](F);}};c=A([d(0x0,_0x50f260),d(0x1,_0x44ee32)],c);var j=Object[_0x4b7d94(0x89)],B=Object[_0x4b7d94(0x91)],$=(_0x958529,_0x1c9f9f,_0x658a4)=>_0x1c9f9f in _0x958529?j(_0x958529,_0x1c9f9f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x658a4}):_0x958529[_0x1c9f9f]=_0x658a4,V=(_0x4454b0,_0x15e5f0,_0x2b34c5,_0x541678)=>{const _0x94d2fe=_0x4b7d94;for(var _0x20efee=_0x541678>0x1?void 0x0:_0x541678?B(_0x15e5f0,_0x2b34c5):_0x15e5f0,_0x1aa20c=_0x4454b0[_0x94d2fe(0xaa)]-0x1,_0x1a528e;_0x1aa20c>=0x0;_0x1aa20c--)(_0x1a528e=_0x4454b0[_0x1aa20c])&&(_0x20efee=_0x1a528e(_0x20efee)||_0x20efee);return _0x20efee;},_=(_0x45bc35,_0x3a8093)=>(_0x5260fd,_0x4ac19b)=>_0x3a8093(_0x5260fd,_0x4ac19b,_0x45bc35),I=(_0x1ccbd2,_0x3be676,_0x300b70)=>$(_0x1ccbd2,typeof _0x3be676!=_0x4b7d94(0x97)?_0x3be676+'':_0x3be676,_0x300b70);const W=_0x4b7d94(0x9a);let s=class extends _0xda70a5{constructor(_0x70de5e=l,_0x41b90d,_0x679d70){const _0x181ea3=_0x4b7d94;super(),this['_config']=_0x70de5e,this[_0x181ea3(0x9c)]=_0x41b90d,this['_configService']=_0x679d70;const {menu:_0x2a0e5f,..._0x1b8c94}=_0x77e175({},l,this[_0x181ea3(0xb3)]);_0x2a0e5f&&this['_configService'][_0x181ea3(0xb2)]('menu',_0x2a0e5f,{'merge':!0x0}),this[_0x181ea3(0xb8)][_0x181ea3(0xb2)](H,_0x1b8c94);}[_0x4b7d94(0x8b)](){const _0x107367=_0x4b7d94;[[c]][_0x107367(0xb9)](_0x78c0bf=>this[_0x107367(0x9c)]['add'](_0x78c0bf));}[_0x4b7d94(0xa7)](){const _0x13571e=_0x4b7d94;this[_0x13571e(0x9c)][_0x13571e(0x96)](c);}};I(s,_0x4b7d94(0xb1),W),I(s,_0x4b7d94(0x8c),_0x5267e3[_0x4b7d94(0xb6)]),s=V([_0xb26a63(_0x15c687),_(0x1,_0x3c3aff(_0xf34d9)),_(0x2,_0x176dc4)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x26340f,_0x1cb729){const _0x438ce5=_0x1649,_0x55140f=_0x26340f();while(!![]){try{const _0x13c776=parseInt(_0x438ce5(0x19a))/0x1+parseInt(_0x438ce5(0x1ce))/0x2*(-parseInt(_0x438ce5(0x1bc))/0x3)+parseInt(_0x438ce5(0x1c7))/0x4+parseInt(_0x438ce5(0x1d2))/0x5*(parseInt(_0x438ce5(0x1b7))/0x6)+-parseInt(_0x438ce5(0x1c5))/0x7+parseInt(_0x438ce5(0x193))/0x8+-parseInt(_0x438ce5(0x1c0))/0x9;if(_0x13c776===_0x1cb729)break;else _0x55140f['push'](_0x55140f['shift']());}catch(_0x5edd2e){_0x55140f['push'](_0x55140f['shift']());}}}(_0x3833,0xcf563),function(_0x32716c,_0x39ac2e){const _0x3a8347=_0x1649;typeof exports=='object'&&typeof module<'u'?_0x39ac2e(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x3a8347(0x1ae)&&define['amd']?define([_0x3a8347(0x1a6),'@univerjs-pro/exchange-client','@univerjs/core','@univerjs/ui',_0x3a8347(0x194),_0x3a8347(0x1af)],_0x39ac2e):(_0x32716c=typeof globalThis<'u'?globalThis:_0x32716c||self,_0x39ac2e(_0x32716c[_0x3a8347(0x1aa)]={},_0x32716c[_0x3a8347(0x19b)],_0x32716c[_0x3a8347(0x1b1)],_0x32716c[_0x3a8347(0x19c)],_0x32716c[_0x3a8347(0x195)],_0x32716c[_0x3a8347(0x1c9)]));}(this,function(_0x1964b3,_0x16710e,_0xf199cb,_0x3c8463,_0x22fd9c,_0x540f2b){'use strict';const _0x2984fb=_0x1649;const _0x1d23cc={'id':_0x2984fb(0x1b3),'type':_0xf199cb[_0x2984fb(0x1a5)][_0x2984fb(0x1c8)],'handler':async _0x3c80a9=>{const _0x18fec5=_0x2984fb,_0x353fb3=_0x3c80a9['get'](_0x16710e[_0x18fec5(0x1d1)]);return new URLSearchParams(location['search'])[_0x18fec5(0x1ba)]('unit')?_0x353fb3['importXLSXToUnitId']():_0x353fb3[_0x18fec5(0x1ad)](),!0x0;}},_0x20ec92={'id':'exchange-client.operation.export-xlsx','type':_0xf199cb[_0x2984fb(0x1a5)][_0x2984fb(0x1c8)],'handler':async _0x1cff58=>{const _0x59e5d4=_0x2984fb,_0x31454f=_0x1cff58[_0x59e5d4(0x1ba)](_0x16710e[_0x59e5d4(0x1d1)]);return new URLSearchParams(location['search'])[_0x59e5d4(0x1ba)](_0x59e5d4(0x18d))?_0x31454f[_0x59e5d4(0x190)]():_0x31454f[_0x59e5d4(0x18f)](),!0x0;}},_0x4413a7=_0x2984fb(0x192),_0x16da60={},_0x351c7b=_0x2984fb(0x1cd);function _0x506fa7(_0x5e71d6){const _0x11c608=_0x2984fb;return{'id':_0x351c7b,'type':_0x3c8463[_0x11c608(0x199)]['SUBITEMS'],'icon':_0x11c608(0x1c6),'tooltip':'exchange.file','hidden$':_0x3c8463[_0x11c608(0x1b9)](_0x5e71d6,_0xf199cb[_0x11c608(0x18b)]['UNIVER_SHEET']),'disabled$':_0x540f2b[_0x11c608(0x1d0)](_0x5e71d6,{'workbookTypes':[_0x22fd9c['WorkbookExportPermission']]})};}function _0x56b3e0(){const _0x30bdb7=_0x2984fb;return{'id':_0x1d23cc['id'],'type':_0x3c8463['MenuItemType'][_0x30bdb7(0x1ab)],'title':_0x30bdb7(0x1bf),'icon':_0x30bdb7(0x1c2)};}function _0x3f5201(){const _0x28ade8=_0x2984fb;return{'id':_0x20ec92['id'],'type':_0x3c8463[_0x28ade8(0x199)][_0x28ade8(0x1ab)],'title':_0x28ade8(0x1a3),'icon':_0x28ade8(0x18e)};}const _0x4a3973={[_0x3c8463[_0x2984fb(0x198)][_0x2984fb(0x1a4)]]:{[_0x351c7b]:{'order':0.3,'menuItemFactory':_0x506fa7,[_0x1d23cc['id']]:{'order':0x0,'menuItemFactory':_0x56b3e0},[_0x20ec92['id']]:{'order':0x1,'menuItemFactory':_0x3f5201}}}};var _0x1e9686=Object['getOwnPropertyDescriptor'],_0x2ee56f=(_0x1de92b,_0x567b0b,_0x2c21f2,_0x47e442)=>{for(var _0x42fae2=_0x47e442>0x1?void 0x0:_0x47e442?_0x1e9686(_0x567b0b,_0x2c21f2):_0x567b0b,_0x10f60f=_0x1de92b['length']-0x1,_0x5d919f;_0x10f60f>=0x0;_0x10f60f--)(_0x5d919f=_0x1de92b[_0x10f60f])&&(_0x42fae2=_0x5d919f(_0x42fae2)||_0x42fae2);return _0x42fae2;},_0x4c0366=(_0x5e1abc,_0x3d3688)=>(_0x21ea28,_0x1363a9)=>_0x3d3688(_0x21ea28,_0x1363a9,_0x5e1abc);let _0x4c8b35=class extends _0xf199cb['Disposable']{constructor(_0x570ef7,_0x194670){const _0x5e63cc=_0x2984fb;super(),this['_commandService']=_0x570ef7,this[_0x5e63cc(0x1cb)]=_0x194670,this[_0x5e63cc(0x1a2)](),this[_0x5e63cc(0x1ca)]();}[_0x2984fb(0x1a2)](){const _0x2ed345=_0x2984fb;[_0x1d23cc,_0x20ec92][_0x2ed345(0x1be)](_0x244f7b=>{const _0x3cb9ed=_0x2ed345;this[_0x3cb9ed(0x191)](this[_0x3cb9ed(0x197)][_0x3cb9ed(0x1b2)](_0x244f7b));});}[_0x2984fb(0x1ca)](){const _0x64a2d7=_0x2984fb;this[_0x64a2d7(0x1cb)]['mergeMenu'](_0x4a3973);}};_0x4c8b35=_0x2ee56f([_0x4c0366(0x0,_0xf199cb[_0x2984fb(0x19f)]),_0x4c0366(0x1,_0x3c8463['IMenuManagerService'])],_0x4c8b35);var _0x2657f0=Object['defineProperty'],_0x4c0bff=Object[_0x2984fb(0x1b6)],_0x1fb627=(_0x21a43e,_0x4548b7,_0x30b2a0)=>_0x4548b7 in _0x21a43e?_0x2657f0(_0x21a43e,_0x4548b7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x30b2a0}):_0x21a43e[_0x4548b7]=_0x30b2a0,_0x5c45bc=(_0x133f36,_0x3b3db2,_0x3eaa4f,_0x243c8e)=>{const _0x3a60d6=_0x2984fb;for(var _0x51821c=_0x243c8e>0x1?void 0x0:_0x243c8e?_0x4c0bff(_0x3b3db2,_0x3eaa4f):_0x3b3db2,_0x1077fa=_0x133f36[_0x3a60d6(0x1cc)]-0x1,_0x548ea9;_0x1077fa>=0x0;_0x1077fa--)(_0x548ea9=_0x133f36[_0x1077fa])&&(_0x51821c=_0x548ea9(_0x51821c)||_0x51821c);return _0x51821c;},_0xa4e978=(_0x390e26,_0x22dd30)=>(_0x1d827a,_0x4fe3e5)=>_0x22dd30(_0x1d827a,_0x4fe3e5,_0x390e26),_0x1cb812=(_0x322a49,_0x58440d,_0x4933a9)=>_0x1fb627(_0x322a49,typeof _0x58440d!='symbol'?_0x58440d+'':_0x58440d,_0x4933a9);const _0x2291bf=_0x2984fb(0x1c1);_0x1964b3['UniverSheetsExchangeClientPlugin']=class extends _0xf199cb[_0x2984fb(0x1a0)]{constructor(_0x4d4a50=_0x16da60,_0x459985,_0x1baecb){const _0x21f626=_0x2984fb;super(),this[_0x21f626(0x1ac)]=_0x4d4a50,this[_0x21f626(0x18a)]=_0x459985,this[_0x21f626(0x1a1)]=_0x1baecb;const {menu:_0x1b9c83,..._0x351dfb}=_0xf199cb[_0x21f626(0x1b8)]({},_0x16da60,this[_0x21f626(0x1ac)]);_0x1b9c83&&this[_0x21f626(0x1a1)][_0x21f626(0x1bb)](_0x21f626(0x1b0),_0x1b9c83,{'merge':!0x0}),this[_0x21f626(0x1a1)][_0x21f626(0x1bb)](_0x4413a7,_0x351dfb);}[_0x2984fb(0x18c)](){const _0x260903=_0x2984fb;[[_0x4c8b35]][_0x260903(0x1be)](_0x333ae9=>this[_0x260903(0x18a)][_0x260903(0x1a9)](_0x333ae9));}[_0x2984fb(0x1c3)](){const _0x18ea62=_0x2984fb;this[_0x18ea62(0x18a)][_0x18ea62(0x1ba)](_0x4c8b35);}},_0x1cb812(_0x1964b3['UniverSheetsExchangeClientPlugin'],_0x2984fb(0x19e),_0x2291bf),_0x1cb812(_0x1964b3[_0x2984fb(0x1c4)],_0x2984fb(0x196),_0xf199cb['UniverInstanceType']['UNIVER_SHEET']),_0x1964b3[_0x2984fb(0x1c4)]=_0x5c45bc([_0xf199cb[_0x2984fb(0x1a8)](_0x16710e[_0x2984fb(0x1a7)]),_0xa4e978(0x1,_0xf199cb['Inject'](_0xf199cb[_0x2984fb(0x1b4)])),_0xa4e978(0x2,_0xf199cb[_0x2984fb(0x1b5)])],_0x1964b3[_0x2984fb(0x1c4)]),_0x1964b3[_0x2984fb(0x1bd)]=_0x20ec92,_0x1964b3[_0x2984fb(0x19d)]=_0x1d23cc,Object[_0x2984fb(0x1cf)](_0x1964b3,Symbol['toStringTag'],{'value':'Module'});}));function _0x1649(_0x304781,_0x118304){const _0x383379=_0x3833();return _0x1649=function(_0x164995,_0x5b6f32){_0x164995=_0x164995-0x18a;let _0x4adbca=_0x383379[_0x164995];return _0x4adbca;},_0x1649(_0x304781,_0x118304);}function _0x3833(){const _0x413151=['exportXLSXByUnitId','disposeWithMe','sheets-exchange-client.config','13353536EnLRgg','@univerjs/sheets','UniverSheets','type','_commandService','RibbonStartGroup','MenuItemType','1013398VOdwVQ','UniverProExchangeClient','UniverUi','ImportXLSXOperation','pluginName','ICommandService','Plugin','_configService','_initCommands','exchange.download','OTHERS','CommandType','exports','UniverExchangeClientPlugin','DependentOn','add','UniverProSheetsExchangeClient','BUTTON','_config','importXLSXToSnapshot','function','@univerjs/sheets-ui','menu','UniverCore','registerCommand','exchange-client.operation.import-xlsx','Injector','IConfigService','getOwnPropertyDescriptor','153942UPGDum','merge','getMenuHiddenObservable','get','setConfig','87EJzVpU','ExportXLSXOperation','forEach','exchange.upload','11772738wKELnP','SHEET_EXCHANGE_CLIENT_PLUGIN','FolderIcon','onReady','UniverSheetsExchangeClientPlugin','8995623GRpuwo','DirectExportIcon','5048304fljUEX','OPERATION','UniverSheetsUi','_initMenus','_menuManagerService','length','sheets-exchange-client.operation.exchange','103646AzfDbv','defineProperty','getCurrentRangeDisable$','IExchangeOperateService','195fLgzEZ','_injector','UniverInstanceType','onStarting','unit','ExportIcon','exportXLSXBySnapshot'];_0x3833=function(){return _0x413151;};return _0x3833();}
1
+ function _0x5577(_0xe077c2,_0x742cdc){const _0x3d1788=_0x3d17();return _0x5577=function(_0x557727,_0xfe8ad3){_0x557727=_0x557727-0x1e1;let _0x70ace2=_0x3d1788[_0x557727];return _0x70ace2;},_0x5577(_0xe077c2,_0x742cdc);}function _0x3d17(){const _0x165c5f=['onReady','exchange-client.operation.import-xlsx','amd','11389390Ftimpc','560846QMNtDl','RibbonStartGroup','UniverCore','1705584JVoVKn','UniverUi','getMenuHiddenObservable','onStarting','Injector','forEach','MenuItemType','length','WorkbookExportPermission','disposeWithMe','symbol','exchange.file','_configService','16309678PxilIH','importXLSXToUnitId','getCurrentRangeDisable$','UniverInstanceType','registerCommand','FolderIcon','UNIVER_SHEET','exchange-client.operation.export-xlsx','CommandType','UniverProSheetsExchangeClient','_initCommands','type','Disposable','3864NCxzoJ','172nVQgvb','_commandService','IExchangeOperateService','exportXLSXByUnitId','unit','_injector','ImportXLSXOperation','Inject','45rCohYI','IConfigService','BUTTON','getOwnPropertyDescriptor','238WoIpOY','merge','@univerjs/core','73805kdqxvD','OPERATION','add','ICommandService','UniverSheets','Module','OTHERS','get','sheets-exchange-client.config','Plugin','exportXLSXBySnapshot','search','UniverSheetsExchangeClientPlugin','@univerjs-pro/exchange-client','pluginName','12498fYHhAu','ExportXLSXOperation','DirectExportIcon','UniverSheetsUi','mergeMenu','function','exchange.download','menu','23697DuzNRB','IMenuManagerService','exchange.upload','importXLSXToSnapshot','@univerjs/ui','toStringTag','_initMenus','_menuManagerService'];_0x3d17=function(){return _0x165c5f;};return _0x3d17();}(function(_0x3a90ce,_0x5156af){const _0x2241a5=_0x5577,_0x53c93b=_0x3a90ce();while(!![]){try{const _0x1de0e9=-parseInt(_0x2241a5(0x201))/0x1+-parseInt(_0x2241a5(0x22b))/0x2*(-parseInt(_0x2241a5(0x1f5))/0x3)+parseInt(_0x2241a5(0x21f))/0x4*(parseInt(_0x2241a5(0x22e))/0x5)+parseInt(_0x2241a5(0x1ed))/0x6*(parseInt(_0x2241a5(0x21e))/0x7)+parseInt(_0x2241a5(0x204))/0x8*(parseInt(_0x2241a5(0x227))/0x9)+-parseInt(_0x2241a5(0x200))/0xa+-parseInt(_0x2241a5(0x211))/0xb;if(_0x1de0e9===_0x5156af)break;else _0x53c93b['push'](_0x53c93b['shift']());}catch(_0x2fa940){_0x53c93b['push'](_0x53c93b['shift']());}}}(_0x3d17,0x9471b),function(_0x16fa96,_0x29067b){const _0x5327c0=_0x5577;typeof exports=='object'&&typeof module<'u'?_0x29067b(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x5327c0(0x1f2)&&define[_0x5327c0(0x1ff)]?define(['exports',_0x5327c0(0x1eb),_0x5327c0(0x22d),_0x5327c0(0x1f9),'@univerjs/sheets','@univerjs/sheets-ui'],_0x29067b):(_0x16fa96=typeof globalThis<'u'?globalThis:_0x16fa96||self,_0x29067b(_0x16fa96[_0x5327c0(0x21a)]={},_0x16fa96['UniverProExchangeClient'],_0x16fa96[_0x5327c0(0x203)],_0x16fa96[_0x5327c0(0x205)],_0x16fa96[_0x5327c0(0x1e2)],_0x16fa96[_0x5327c0(0x1f0)]));}(this,function(_0x210f24,_0x40ae07,_0x3e4dd5,_0x4b80d0,_0x4137da,_0x236ad1){'use strict';const _0x3c798e=_0x5577;const _0x17271d={'id':_0x3c798e(0x1fe),'type':_0x3e4dd5[_0x3c798e(0x219)][_0x3c798e(0x22f)],'handler':async _0x3d3f18=>{const _0x59e99b=_0x3c798e,_0x1feda8=_0x3d3f18[_0x59e99b(0x1e5)](_0x40ae07[_0x59e99b(0x221)]);return new URLSearchParams(location[_0x59e99b(0x1e9)])['get'](_0x59e99b(0x223))?_0x1feda8[_0x59e99b(0x212)]():_0x1feda8[_0x59e99b(0x1f8)](),!0x0;}},_0x14edc9={'id':_0x3c798e(0x218),'type':_0x3e4dd5[_0x3c798e(0x219)][_0x3c798e(0x22f)],'handler':async _0x40195c=>{const _0x2dc774=_0x3c798e,_0x176d81=_0x40195c[_0x2dc774(0x1e5)](_0x40ae07['IExchangeOperateService']);return new URLSearchParams(location[_0x2dc774(0x1e9)])[_0x2dc774(0x1e5)]('unit')?_0x176d81[_0x2dc774(0x222)]():_0x176d81[_0x2dc774(0x1e8)](),!0x0;}},_0x4a68da=_0x3c798e(0x1e6),_0x1f28af={},_0x267a74='sheets-exchange-client.operation.exchange';function _0x3869bb(_0x1a6f97){const _0x2f38ea=_0x3c798e;return{'id':_0x267a74,'type':_0x4b80d0[_0x2f38ea(0x20a)]['SUBITEMS'],'icon':_0x2f38ea(0x1ef),'tooltip':_0x2f38ea(0x20f),'hidden$':_0x4b80d0[_0x2f38ea(0x206)](_0x1a6f97,_0x3e4dd5[_0x2f38ea(0x214)][_0x2f38ea(0x217)]),'disabled$':_0x236ad1[_0x2f38ea(0x213)](_0x1a6f97,{'workbookTypes':[_0x4137da[_0x2f38ea(0x20c)]]})};}function _0x2a4192(){const _0x530463=_0x3c798e;return{'id':_0x17271d['id'],'type':_0x4b80d0[_0x530463(0x20a)][_0x530463(0x229)],'title':_0x530463(0x1f7),'icon':_0x530463(0x216)};}function _0x439092(){const _0x2a8e8e=_0x3c798e;return{'id':_0x14edc9['id'],'type':_0x4b80d0['MenuItemType'][_0x2a8e8e(0x229)],'title':_0x2a8e8e(0x1f3),'icon':'ExportIcon'};}const _0x20f559={[_0x4b80d0[_0x3c798e(0x202)][_0x3c798e(0x1e4)]]:{[_0x267a74]:{'order':0.3,'menuItemFactory':_0x3869bb,[_0x17271d['id']]:{'order':0x0,'menuItemFactory':_0x2a4192},[_0x14edc9['id']]:{'order':0x1,'menuItemFactory':_0x439092}}}};var _0x1a96a8=Object[_0x3c798e(0x22a)],_0x10eead=(_0x7e2012,_0xff6a1d,_0x1a9fef,_0x51cbbb)=>{const _0x5dea86=_0x3c798e;for(var _0x66646=_0x51cbbb>0x1?void 0x0:_0x51cbbb?_0x1a96a8(_0xff6a1d,_0x1a9fef):_0xff6a1d,_0x587c55=_0x7e2012[_0x5dea86(0x20b)]-0x1,_0x63928a;_0x587c55>=0x0;_0x587c55--)(_0x63928a=_0x7e2012[_0x587c55])&&(_0x66646=_0x63928a(_0x66646)||_0x66646);return _0x66646;},_0x93d86f=(_0x5c5f45,_0x439a51)=>(_0x204a5a,_0x18f1c1)=>_0x439a51(_0x204a5a,_0x18f1c1,_0x5c5f45);let _0x20f973=class extends _0x3e4dd5[_0x3c798e(0x21d)]{constructor(_0x22ba4d,_0x53d9ec){const _0x12200c=_0x3c798e;super(),this['_commandService']=_0x22ba4d,this[_0x12200c(0x1fc)]=_0x53d9ec,this['_initCommands'](),this[_0x12200c(0x1fb)]();}[_0x3c798e(0x21b)](){const _0x5db290=_0x3c798e;[_0x17271d,_0x14edc9][_0x5db290(0x209)](_0x10f3e5=>{const _0x37f418=_0x5db290;this[_0x37f418(0x20d)](this[_0x37f418(0x220)][_0x37f418(0x215)](_0x10f3e5));});}['_initMenus'](){const _0x2ca987=_0x3c798e;this[_0x2ca987(0x1fc)][_0x2ca987(0x1f1)](_0x20f559);}};_0x20f973=_0x10eead([_0x93d86f(0x0,_0x3e4dd5[_0x3c798e(0x1e1)]),_0x93d86f(0x1,_0x4b80d0[_0x3c798e(0x1f6)])],_0x20f973);var _0x42b9d6=Object['defineProperty'],_0x286d6f=Object[_0x3c798e(0x22a)],_0xc17251=(_0x457acb,_0x2f7577,_0x2f3478)=>_0x2f7577 in _0x457acb?_0x42b9d6(_0x457acb,_0x2f7577,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f3478}):_0x457acb[_0x2f7577]=_0x2f3478,_0x17e495=(_0x20ba1d,_0x2eca0d,_0x22a60f,_0x1a49a4)=>{for(var _0x49e62e=_0x1a49a4>0x1?void 0x0:_0x1a49a4?_0x286d6f(_0x2eca0d,_0x22a60f):_0x2eca0d,_0x3f3e4a=_0x20ba1d['length']-0x1,_0x27851a;_0x3f3e4a>=0x0;_0x3f3e4a--)(_0x27851a=_0x20ba1d[_0x3f3e4a])&&(_0x49e62e=_0x27851a(_0x49e62e)||_0x49e62e);return _0x49e62e;},_0x1ac74c=(_0x6bc439,_0x543d53)=>(_0x302f4c,_0x84883a)=>_0x543d53(_0x302f4c,_0x84883a,_0x6bc439),_0x461e23=(_0x238563,_0x38ccf3,_0x53ffc6)=>_0xc17251(_0x238563,typeof _0x38ccf3!=_0x3c798e(0x20e)?_0x38ccf3+'':_0x38ccf3,_0x53ffc6);const _0x1bbde7='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x210f24[_0x3c798e(0x1ea)]=class extends _0x3e4dd5[_0x3c798e(0x1e7)]{constructor(_0x2a33a7=_0x1f28af,_0x762109,_0x372993){const _0xd2b675=_0x3c798e;super(),this['_config']=_0x2a33a7,this[_0xd2b675(0x224)]=_0x762109,this[_0xd2b675(0x210)]=_0x372993;const {menu:_0xc4027f,..._0x3a5095}=_0x3e4dd5[_0xd2b675(0x22c)]({},_0x1f28af,this['_config']);_0xc4027f&&this[_0xd2b675(0x210)]['setConfig'](_0xd2b675(0x1f4),_0xc4027f,{'merge':!0x0}),this[_0xd2b675(0x210)]['setConfig'](_0x4a68da,_0x3a5095);}[_0x3c798e(0x207)](){const _0x514213=_0x3c798e;[[_0x20f973]]['forEach'](_0x1b9179=>this[_0x514213(0x224)][_0x514213(0x230)](_0x1b9179));}[_0x3c798e(0x1fd)](){const _0xa92a45=_0x3c798e;this[_0xa92a45(0x224)]['get'](_0x20f973);}},_0x461e23(_0x210f24[_0x3c798e(0x1ea)],_0x3c798e(0x1ec),_0x1bbde7),_0x461e23(_0x210f24[_0x3c798e(0x1ea)],_0x3c798e(0x21c),_0x3e4dd5[_0x3c798e(0x214)][_0x3c798e(0x217)]),_0x210f24['UniverSheetsExchangeClientPlugin']=_0x17e495([_0x3e4dd5['DependentOn'](_0x40ae07['UniverExchangeClientPlugin']),_0x1ac74c(0x1,_0x3e4dd5[_0x3c798e(0x226)](_0x3e4dd5[_0x3c798e(0x208)])),_0x1ac74c(0x2,_0x3e4dd5[_0x3c798e(0x228)])],_0x210f24[_0x3c798e(0x1ea)]),_0x210f24[_0x3c798e(0x1ee)]=_0x14edc9,_0x210f24[_0x3c798e(0x225)]=_0x17271d,Object['defineProperty'](_0x210f24,Symbol[_0x3c798e(0x1fa)],{'value':_0x3c798e(0x1e3)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.10.7-nightly.202509090319",
3
+ "version": "0.10.7-nightly.202509130618",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -42,11 +42,11 @@
42
42
  "lib"
43
43
  ],
44
44
  "dependencies": {
45
- "@univerjs-pro/exchange-client": "0.10.7-nightly.202509090319",
46
- "@univerjs/sheets-ui": "0.10.7-nightly.202509090319",
47
- "@univerjs/sheets": "0.10.7-nightly.202509090319",
48
- "@univerjs/core": "0.10.7-nightly.202509090319",
49
- "@univerjs/ui": "0.10.7-nightly.202509090319"
45
+ "@univerjs/core": "0.10.7-nightly.202509130618",
46
+ "@univerjs-pro/exchange-client": "0.10.7-nightly.202509130618",
47
+ "@univerjs/sheets-ui": "0.10.7-nightly.202509130618",
48
+ "@univerjs/sheets": "0.10.7-nightly.202509130618",
49
+ "@univerjs/ui": "0.10.7-nightly.202509130618"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.2",