@univerjs-pro/sheets-exchange-client 0.12.0-nightly.202511220628 → 0.12.1-nightly.202511221011

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 _0x4cf5f3=_0xaa54;(function(_0x79d441,_0x1f94c9){const _0x439179=_0xaa54,_0x404ff6=_0x79d441();while(!![]){try{const _0x5748fa=-parseInt(_0x439179(0x11a))/0x1*(parseInt(_0x439179(0x14b))/0x2)+parseInt(_0x439179(0x128))/0x3*(parseInt(_0x439179(0x112))/0x4)+parseInt(_0x439179(0x144))/0x5*(-parseInt(_0x439179(0x135))/0x6)+-parseInt(_0x439179(0x14e))/0x7*(parseInt(_0x439179(0x152))/0x8)+-parseInt(_0x439179(0x10f))/0x9+-parseInt(_0x439179(0x146))/0xa*(-parseInt(_0x439179(0x11f))/0xb)+parseInt(_0x439179(0x13a))/0xc*(parseInt(_0x439179(0x118))/0xd);if(_0x5748fa===_0x1f94c9)break;else _0x404ff6['push'](_0x404ff6['shift']());}catch(_0xadfaca){_0x404ff6['push'](_0x404ff6['shift']());}}}(_0x2ca5,0x420cf));Object[_0x4cf5f3(0x14f)](exports,Symbol[_0x4cf5f3(0x149)],{'value':_0x4cf5f3(0x13f)});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':_0x4cf5f3(0x12c),'type':i['CommandType']['OPERATION'],'handler':async _0x34a0c5=>{const _0x4b25a2=_0x4cf5f3,_0xf17226=_0x34a0c5[_0x4b25a2(0x131)](g[_0x4b25a2(0x12a)]);return new URLSearchParams(location[_0x4b25a2(0x13c)])[_0x4b25a2(0x131)]('unit')?_0xf17226[_0x4b25a2(0x13e)]():_0xf17226[_0x4b25a2(0x154)](),!0x0;}},p={'id':_0x4cf5f3(0x138),'type':i[_0x4cf5f3(0x137)][_0x4cf5f3(0x136)],'handler':async _0xd4cbb0=>{const _0x42f135=_0x4cf5f3,_0x5bb25a=_0xd4cbb0[_0x42f135(0x131)](g[_0x42f135(0x12a)]);return new URLSearchParams(location[_0x42f135(0x13c)])['get']('unit')?_0x5bb25a[_0x42f135(0x111)]():_0x5bb25a['exportXLSXBySnapshot'](),!0x0;}},v=_0x4cf5f3(0x119),h={},S=_0x4cf5f3(0x116);function x(_0x2ba26d){const _0x214902=_0x4cf5f3;return{'id':S,'type':c[_0x214902(0x11c)][_0x214902(0x150)],'icon':_0x214902(0x130),'tooltip':'exchange.file','hidden$':c[_0x214902(0x145)](_0x2ba26d,i[_0x214902(0x12b)][_0x214902(0x14d)]),'disabled$':I[_0x214902(0x142)](_0x2ba26d,{'workbookTypes':[_[_0x214902(0x153)]]})};}function P(){const _0x4a3a52=_0x4cf5f3;return{'id':l['id'],'type':c[_0x4a3a52(0x11c)]['BUTTON'],'title':_0x4a3a52(0x123),'icon':_0x4a3a52(0x14c)};}function C(){const _0x2e11fc=_0x4cf5f3;return{'id':p['id'],'type':c[_0x2e11fc(0x11c)][_0x2e11fc(0x114)],'title':_0x2e11fc(0x140),'icon':_0x2e11fc(0x11d)};}function _0x2ca5(){const _0x2cbbd6=['SHEET_EXCHANGE_CLIENT_PLUGIN','sheets-exchange-client.operation.exchange','getOwnPropertyDescriptor','221zzCdUx','sheets-exchange-client.config','159876zbuZLk','forEach','MenuItemType','ExportIcon','_injector','319AKeCNG','ICommandService','add','onStarting','exchange.upload','RibbonStartGroup','IConfigService','_initCommands','registerCommand','420258XjvYXm','Inject','IExchangeOperateService','UniverInstanceType','exchange-client.operation.import-xlsx','DependentOn','ImportXLSXOperation','_initMenus','DirectExportIcon','get','Disposable','ExportXLSXOperation','UniverSheetsExchangeClientPlugin','2951874fSXLYD','OPERATION','CommandType','exchange-client.operation.export-xlsx','Injector','175596GkEptC','type','search','_config','importXLSXToUnitId','Module','exchange.download','length','getCurrentRangeDisable$','pluginName','5LvIYlK','getMenuHiddenObservable','167470NUMctI','IMenuManagerService','_configService','toStringTag','symbol','2RAKroG','FolderIcon','UNIVER_SHEET','175ckvAqm','defineProperty','SUBITEMS','_commandService','48336Chktbp','WorkbookExportPermission','importXLSXToSnapshot','731106uppmXX','menu','exportXLSXByUnitId','12SAgSvJ','setConfig','BUTTON'];_0x2ca5=function(){return _0x2cbbd6;};return _0x2ca5();}function _0xaa54(_0x2696fc,_0x4f102d){const _0x2ca58b=_0x2ca5();return _0xaa54=function(_0xaa5471,_0x4ea7d6){_0xaa5471=_0xaa5471-0x10f;let _0x5275dd=_0x2ca58b[_0xaa5471];return _0x5275dd;},_0xaa54(_0x2696fc,_0x4f102d);}const f={[c[_0x4cf5f3(0x124)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x4cf5f3(0x117)],y=(_0x43caa4,_0x2871eb,_0x3170fa,_0x1a5d48)=>{const _0x38e518=_0x4cf5f3;for(var _0x57af09=_0x1a5d48>0x1?void 0x0:_0x1a5d48?T(_0x2871eb,_0x3170fa):_0x2871eb,_0x306621=_0x43caa4[_0x38e518(0x141)]-0x1,_0x328959;_0x306621>=0x0;_0x306621--)(_0x328959=_0x43caa4[_0x306621])&&(_0x57af09=_0x328959(_0x57af09)||_0x57af09);return _0x57af09;},m=(_0x167307,_0x474e4e)=>(_0x746ad9,_0x5487fb)=>_0x474e4e(_0x746ad9,_0x5487fb,_0x167307);let u=class extends i[_0x4cf5f3(0x132)]{constructor(_0x2f91b6,_0xe8f6f0){const _0x37a8d8=_0x4cf5f3;super(),this[_0x37a8d8(0x151)]=_0x2f91b6,this['_menuManagerService']=_0xe8f6f0,this[_0x37a8d8(0x126)](),this[_0x37a8d8(0x12f)]();}['_initCommands'](){const _0x8a3ce=_0x4cf5f3;[l,p][_0x8a3ce(0x11b)](_0x1e3674=>{const _0x38a964=_0x8a3ce;this['disposeWithMe'](this[_0x38a964(0x151)][_0x38a964(0x127)](_0x1e3674));});}[_0x4cf5f3(0x12f)](){this['_menuManagerService']['mergeMenu'](f);}};u=y([m(0x0,i[_0x4cf5f3(0x120)]),m(0x1,c[_0x4cf5f3(0x147)])],u);var O=Object[_0x4cf5f3(0x14f)],U=Object[_0x4cf5f3(0x117)],X=(_0x5599c5,_0x1755c7,_0x48fd1e)=>_0x1755c7 in _0x5599c5?O(_0x5599c5,_0x1755c7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48fd1e}):_0x5599c5[_0x1755c7]=_0x48fd1e,N=(_0x54a297,_0x5be576,_0x10c29b,_0x1cf3da)=>{for(var _0x29a6cd=_0x1cf3da>0x1?void 0x0:_0x1cf3da?U(_0x5be576,_0x10c29b):_0x5be576,_0x2423ec=_0x54a297['length']-0x1,_0x4b84e6;_0x2423ec>=0x0;_0x2423ec--)(_0x4b84e6=_0x54a297[_0x2423ec])&&(_0x29a6cd=_0x4b84e6(_0x29a6cd)||_0x29a6cd);return _0x29a6cd;},d=(_0x432919,_0x5ebf27)=>(_0x6fcce1,_0x41188a)=>_0x5ebf27(_0x6fcce1,_0x41188a,_0x432919),E=(_0x3de02d,_0x28da03,_0x498ade)=>X(_0x3de02d,typeof _0x28da03!=_0x4cf5f3(0x14a)?_0x28da03+'':_0x28da03,_0x498ade);const L=_0x4cf5f3(0x115);exports['UniverSheetsExchangeClientPlugin']=class extends i['Plugin']{constructor(_0x1bba37=h,_0x187df2,_0x2f8527){const _0x3ee572=_0x4cf5f3;super(),this[_0x3ee572(0x13d)]=_0x1bba37,this[_0x3ee572(0x11e)]=_0x187df2,this[_0x3ee572(0x148)]=_0x2f8527;const {menu:_0x36166d,..._0x277da7}=i['merge']({},h,this['_config']);_0x36166d&&this[_0x3ee572(0x148)][_0x3ee572(0x113)](_0x3ee572(0x110),_0x36166d,{'merge':!0x0}),this[_0x3ee572(0x148)]['setConfig'](v,_0x277da7);}[_0x4cf5f3(0x122)](){const _0x209fbd=_0x4cf5f3;[[u]][_0x209fbd(0x11b)](_0x27c2e5=>this[_0x209fbd(0x11e)][_0x209fbd(0x121)](_0x27c2e5));}['onReady'](){const _0x51da1b=_0x4cf5f3;this[_0x51da1b(0x11e)]['get'](u);}},E(exports[_0x4cf5f3(0x134)],_0x4cf5f3(0x143),L),E(exports[_0x4cf5f3(0x134)],_0x4cf5f3(0x13b),i[_0x4cf5f3(0x12b)]['UNIVER_SHEET']),exports[_0x4cf5f3(0x134)]=N([i[_0x4cf5f3(0x12d)](g['UniverExchangeClientPlugin']),d(0x1,i[_0x4cf5f3(0x129)](i[_0x4cf5f3(0x139)])),d(0x2,i[_0x4cf5f3(0x125)])],exports[_0x4cf5f3(0x134)]),exports[_0x4cf5f3(0x133)]=p,exports[_0x4cf5f3(0x12e)]=l;
1
+ 'use strict';const _0x427768=_0x2ac5;(function(_0x1c4870,_0x36f582){const _0x5cd2ad=_0x2ac5,_0x12ba2b=_0x1c4870();while(!![]){try{const _0x2d5cb8=-parseInt(_0x5cd2ad(0xe1))/0x1+-parseInt(_0x5cd2ad(0xc2))/0x2*(parseInt(_0x5cd2ad(0xbe))/0x3)+parseInt(_0x5cd2ad(0xc7))/0x4*(-parseInt(_0x5cd2ad(0xb0))/0x5)+parseInt(_0x5cd2ad(0xd6))/0x6+-parseInt(_0x5cd2ad(0xb9))/0x7+parseInt(_0x5cd2ad(0xad))/0x8*(-parseInt(_0x5cd2ad(0xd0))/0x9)+parseInt(_0x5cd2ad(0xdb))/0xa;if(_0x2d5cb8===_0x36f582)break;else _0x12ba2b['push'](_0x12ba2b['shift']());}catch(_0x1a8b3b){_0x12ba2b['push'](_0x12ba2b['shift']());}}}(_0x1b29,0x1fd1f));function _0x2ac5(_0x2a473d,_0xa216a5){const _0x1b29a3=_0x1b29();return _0x2ac5=function(_0x2ac525,_0x3ebecb){_0x2ac525=_0x2ac525-0xa6;let _0x51af3d=_0x1b29a3[_0x2ac525];return _0x51af3d;},_0x2ac5(_0x2a473d,_0xa216a5);}Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x427768(0xcb)});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':_0x427768(0xca),'type':i[_0x427768(0xbd)]['OPERATION'],'handler':async _0x2c68f2=>{const _0x4135ee=_0x427768,_0xac075b=_0x2c68f2[_0x4135ee(0xc6)](g[_0x4135ee(0xd1)]);return new URLSearchParams(location[_0x4135ee(0xb5)])[_0x4135ee(0xc6)](_0x4135ee(0xb2))?_0xac075b[_0x4135ee(0xd4)]():_0xac075b[_0x4135ee(0xdc)](),!0x0;}},p={'id':_0x427768(0xb7),'type':i[_0x427768(0xbd)][_0x427768(0xc5)],'handler':async _0x4e663b=>{const _0x129114=_0x427768,_0x27dc33=_0x4e663b['get'](g['IExchangeOperateService']);return new URLSearchParams(location[_0x129114(0xb5)])['get'](_0x129114(0xb2))?_0x27dc33['exportXLSXByUnitId']():_0x27dc33[_0x129114(0xc0)](),!0x0;}},v=_0x427768(0xd5),h={},S='sheets-exchange-client.operation.exchange';function x(_0x5511d2){const _0x2de32e=_0x427768;return{'id':S,'type':c['MenuItemType']['SUBITEMS'],'icon':_0x2de32e(0xb4),'tooltip':_0x2de32e(0xdf),'hidden$':c[_0x2de32e(0xda)](_0x5511d2,i[_0x2de32e(0xb1)]['UNIVER_SHEET']),'disabled$':I[_0x2de32e(0xba)](_0x5511d2,{'workbookTypes':[_[_0x2de32e(0xd7)]]})};}function P(){const _0x253062=_0x427768;return{'id':l['id'],'type':c['MenuItemType'][_0x253062(0xcc)],'title':_0x253062(0xd8),'icon':'FolderIcon'};}function C(){const _0x5d752a=_0x427768;return{'id':p['id'],'type':c['MenuItemType'][_0x5d752a(0xcc)],'title':'exchange.download','icon':_0x5d752a(0xbc)};}const f={[c[_0x427768(0xbf)][_0x427768(0xac)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x6f6005,_0x672170,_0x5a6423,_0x39d71d)=>{const _0x3c71a9=_0x427768;for(var _0x156ae8=_0x39d71d>0x1?void 0x0:_0x39d71d?T(_0x672170,_0x5a6423):_0x672170,_0x6b9eda=_0x6f6005[_0x3c71a9(0xa6)]-0x1,_0x2d1c9f;_0x6b9eda>=0x0;_0x6b9eda--)(_0x2d1c9f=_0x6f6005[_0x6b9eda])&&(_0x156ae8=_0x2d1c9f(_0x156ae8)||_0x156ae8);return _0x156ae8;},m=(_0x33dcc3,_0x2a4091)=>(_0x47e245,_0x3fc9d7)=>_0x2a4091(_0x47e245,_0x3fc9d7,_0x33dcc3);let u=class extends i[_0x427768(0xaa)]{constructor(_0x59345a,_0x164c20){const _0x39a334=_0x427768;super(),this[_0x39a334(0xc1)]=_0x59345a,this[_0x39a334(0xae)]=_0x164c20,this['_initCommands'](),this[_0x39a334(0xa8)]();}[_0x427768(0xaf)](){const _0x241117=_0x427768;[l,p][_0x241117(0xc9)](_0x3272ed=>{const _0x12ce5d=_0x241117;this[_0x12ce5d(0xc4)](this['_commandService'][_0x12ce5d(0xcd)](_0x3272ed));});}[_0x427768(0xa8)](){const _0xd096b5=_0x427768;this[_0xd096b5(0xae)]['mergeMenu'](f);}};u=y([m(0x0,i[_0x427768(0xa7)]),m(0x1,c[_0x427768(0xde)])],u);var O=Object[_0x427768(0xd3)],U=Object[_0x427768(0xb6)],X=(_0x36b878,_0x53735a,_0x382fa9)=>_0x53735a in _0x36b878?O(_0x36b878,_0x53735a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x382fa9}):_0x36b878[_0x53735a]=_0x382fa9,N=(_0x11069d,_0x222807,_0x13a183,_0x47eaaf)=>{for(var _0x363d1d=_0x47eaaf>0x1?void 0x0:_0x47eaaf?U(_0x222807,_0x13a183):_0x222807,_0x313e48=_0x11069d['length']-0x1,_0x3fb238;_0x313e48>=0x0;_0x313e48--)(_0x3fb238=_0x11069d[_0x313e48])&&(_0x363d1d=_0x3fb238(_0x363d1d)||_0x363d1d);return _0x363d1d;},d=(_0x2e78ff,_0x2aeea2)=>(_0x4dcaeb,_0x156bd3)=>_0x2aeea2(_0x4dcaeb,_0x156bd3,_0x2e78ff),E=(_0x5ac142,_0x4379e6,_0x52e39b)=>X(_0x5ac142,typeof _0x4379e6!=_0x427768(0xab)?_0x4379e6+'':_0x4379e6,_0x52e39b);const L=_0x427768(0xbb);function _0x1b29(){const _0x3c86a6=['search','getOwnPropertyDescriptor','exchange-client.operation.export-xlsx','_config','1765470YgMBgo','getCurrentRangeDisable$','SHEET_EXCHANGE_CLIENT_PLUGIN','ExportIcon','CommandType','5976iknSFx','RibbonStartGroup','exportXLSXBySnapshot','_commandService','94eDmpjJ','Plugin','disposeWithMe','OPERATION','get','64772auifYW','add','forEach','exchange-client.operation.import-xlsx','Module','BUTTON','registerCommand','setConfig','_configService','342702BpfHHW','IExchangeOperateService','_injector','defineProperty','importXLSXToUnitId','sheets-exchange-client.config','982632kdszot','WorkbookExportPermission','exchange.upload','ExportXLSXOperation','getMenuHiddenObservable','6384250zeyDgg','importXLSXToSnapshot','Injector','IMenuManagerService','exchange.file','UniverSheetsExchangeClientPlugin','255564TwrDDy','menu','pluginName','length','ICommandService','_initMenus','ImportXLSXOperation','Disposable','symbol','OTHERS','8bGnrxb','_menuManagerService','_initCommands','10jILwDa','UniverInstanceType','unit','IConfigService','DirectExportIcon'];_0x1b29=function(){return _0x3c86a6;};return _0x1b29();}exports[_0x427768(0xe0)]=class extends i[_0x427768(0xc3)]{constructor(_0x12bfe3=h,_0x8e6a7b,_0x71ccd5){const _0xd1504d=_0x427768;super(),this[_0xd1504d(0xb8)]=_0x12bfe3,this[_0xd1504d(0xd2)]=_0x8e6a7b,this[_0xd1504d(0xcf)]=_0x71ccd5;const {menu:_0x3184b8,..._0x5d3444}=i['merge']({},h,this[_0xd1504d(0xb8)]);_0x3184b8&&this['_configService'][_0xd1504d(0xce)](_0xd1504d(0xe2),_0x3184b8,{'merge':!0x0}),this['_configService'][_0xd1504d(0xce)](v,_0x5d3444);}['onStarting'](){const _0x55e251=_0x427768;[[u]]['forEach'](_0x440329=>this[_0x55e251(0xd2)][_0x55e251(0xc8)](_0x440329));}['onReady'](){this['_injector']['get'](u);}},E(exports[_0x427768(0xe0)],_0x427768(0xe3),L),E(exports[_0x427768(0xe0)],'type',i['UniverInstanceType']['UNIVER_SHEET']),exports[_0x427768(0xe0)]=N([i['DependentOn'](g['UniverExchangeClientPlugin']),d(0x1,i['Inject'](i[_0x427768(0xdd)])),d(0x2,i[_0x427768(0xb3)])],exports[_0x427768(0xe0)]),exports[_0x427768(0xd9)]=p,exports[_0x427768(0xa9)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- function _0x19f5(_0x65325b,_0x4b35ba){const _0x22530d=_0x2253();return _0x19f5=function(_0x19f52f,_0x117549){_0x19f52f=_0x19f52f-0x137;let _0x4a99a3=_0x22530d[_0x19f52f];return _0x4a99a3;},_0x19f5(_0x65325b,_0x4b35ba);}const _0x43e009=_0x19f5;(function(_0x46d7a4,_0x56de52){const _0x53f7be=_0x19f5,_0x58ce30=_0x46d7a4();while(!![]){try{const _0x2af4f7=-parseInt(_0x53f7be(0x137))/0x1*(-parseInt(_0x53f7be(0x15a))/0x2)+-parseInt(_0x53f7be(0x14b))/0x3+-parseInt(_0x53f7be(0x168))/0x4*(parseInt(_0x53f7be(0x151))/0x5)+parseInt(_0x53f7be(0x146))/0x6+parseInt(_0x53f7be(0x15f))/0x7*(-parseInt(_0x53f7be(0x13a))/0x8)+parseInt(_0x53f7be(0x164))/0x9+parseInt(_0x53f7be(0x147))/0xa*(parseInt(_0x53f7be(0x153))/0xb);if(_0x2af4f7===_0x56de52)break;else _0x58ce30['push'](_0x58ce30['shift']());}catch(_0x3b6eff){_0x58ce30['push'](_0x58ce30['shift']());}}}(_0x2253,0xa5164));import{IExchangeOperateService as _0x16c259,UniverExchangeClientPlugin as _0x2ea5db}from'@univerjs-pro/exchange-client';import{CommandType as _0x5ed01c,UniverInstanceType as _0x26fbc8,Disposable as _0x4b5be7,ICommandService as _0x5b11b2,DependentOn as _0x423266,Inject as _0x2e64d4,Injector as _0x1f4042,IConfigService as _0x2022f6,Plugin as _0x267487,merge as _0x37a5fb}from'@univerjs/core';import{MenuItemType as _0x48b5e0,getMenuHiddenObservable as _0x4fd24a,RibbonStartGroup as _0xc8ee8c,IMenuManagerService as _0x1c351b}from'@univerjs/ui';import{WorkbookExportPermission as _0x53080e}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x56771d}from'@univerjs/sheets-ui';const p={'id':_0x43e009(0x166),'type':_0x5ed01c['OPERATION'],'handler':async _0x1920f9=>{const _0x1bbb9a=_0x43e009,_0x3c4d47=_0x1920f9[_0x1bbb9a(0x142)](_0x16c259);return new URLSearchParams(location[_0x1bbb9a(0x161)])['get'](_0x1bbb9a(0x154))?_0x3c4d47[_0x1bbb9a(0x14e)]():_0x3c4d47[_0x1bbb9a(0x15c)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x5ed01c[_0x43e009(0x14d)],'handler':async _0x270e76=>{const _0x5260bb=_0x43e009,_0x3dc1ac=_0x270e76[_0x5260bb(0x142)](_0x16c259);return new URLSearchParams(location['search'])[_0x5260bb(0x142)](_0x5260bb(0x154))?_0x3dc1ac[_0x5260bb(0x140)]():_0x3dc1ac[_0x5260bb(0x138)](),!0x0;}},H='sheets-exchange-client.config',l={},S='sheets-exchange-client.operation.exchange';function R(_0x420221){const _0x2ed777=_0x43e009;return{'id':S,'type':_0x48b5e0[_0x2ed777(0x144)],'icon':_0x2ed777(0x15d),'tooltip':_0x2ed777(0x157),'hidden$':_0x4fd24a(_0x420221,_0x26fbc8[_0x2ed777(0x159)]),'disabled$':_0x56771d(_0x420221,{'workbookTypes':[_0x53080e]})};}function w(){const _0x343230=_0x43e009;return{'id':p['id'],'type':_0x48b5e0['BUTTON'],'title':_0x343230(0x13d),'icon':_0x343230(0x13e)};}function D(){const _0x36e72d=_0x43e009;return{'id':u['id'],'type':_0x48b5e0[_0x36e72d(0x162)],'title':_0x36e72d(0x141),'icon':_0x36e72d(0x15b)};}const F={[_0xc8ee8c[_0x43e009(0x163)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x43e009(0x167)],A=(_0x5e4db5,_0x35900a,_0x1105e0,_0x31dee0)=>{for(var _0x39f636=_0x31dee0>0x1?void 0x0:_0x31dee0?G(_0x35900a,_0x1105e0):_0x35900a,_0x59fe29=_0x5e4db5['length']-0x1,_0xabad62;_0x59fe29>=0x0;_0x59fe29--)(_0xabad62=_0x5e4db5[_0x59fe29])&&(_0x39f636=_0xabad62(_0x39f636)||_0x39f636);return _0x39f636;},d=(_0x370f0e,_0x1c1c9e)=>(_0x5b8f5b,_0x3e07c5)=>_0x1c1c9e(_0x5b8f5b,_0x3e07c5,_0x370f0e);function _0x2253(){const _0x22dfd1=['_injector','257560ilFEEG','SHEET_EXCHANGE_CLIENT_PLUGIN','11NaTXRD','unit','_initMenus','registerCommand','exchange.file','_config','UNIVER_SHEET','6368KvJufx','ExportIcon','importXLSXToSnapshot','DirectExportIcon','forEach','14AqanaD','_initCommands','search','BUTTON','OTHERS','1400319cghWBe','length','exchange-client.operation.import-xlsx','getOwnPropertyDescriptor','20pZKHeq','331NOoeEh','exportXLSXBySnapshot','setConfig','834768zYzeDv','onStarting','disposeWithMe','exchange.upload','FolderIcon','add','exportXLSXByUnitId','exchange.download','get','onReady','SUBITEMS','type','844890cmFZpt','6503110NNHXBj','_commandService','mergeMenu','symbol','2574519ySLLEn','_configService','OPERATION','importXLSXToUnitId','_menuManagerService'];_0x2253=function(){return _0x22dfd1;};return _0x2253();}let c=class extends _0x4b5be7{constructor(_0x1838fd,_0x546789){const _0x1d691f=_0x43e009;super(),this[_0x1d691f(0x148)]=_0x1838fd,this[_0x1d691f(0x14f)]=_0x546789,this['_initCommands'](),this[_0x1d691f(0x155)]();}[_0x43e009(0x160)](){const _0x28dd8f=_0x43e009;[p,u][_0x28dd8f(0x15e)](_0x48a589=>{const _0x42e24b=_0x28dd8f;this[_0x42e24b(0x13c)](this[_0x42e24b(0x148)][_0x42e24b(0x156)](_0x48a589));});}['_initMenus'](){const _0x1ea011=_0x43e009;this[_0x1ea011(0x14f)][_0x1ea011(0x149)](F);}};c=A([d(0x0,_0x5b11b2),d(0x1,_0x1c351b)],c);var j=Object['defineProperty'],B=Object['getOwnPropertyDescriptor'],$=(_0x3cd1d3,_0x3cf53c,_0x2973aa)=>_0x3cf53c in _0x3cd1d3?j(_0x3cd1d3,_0x3cf53c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2973aa}):_0x3cd1d3[_0x3cf53c]=_0x2973aa,V=(_0x18f002,_0x19b8f9,_0x3115d1,_0xf48720)=>{const _0x424114=_0x43e009;for(var _0x40e955=_0xf48720>0x1?void 0x0:_0xf48720?B(_0x19b8f9,_0x3115d1):_0x19b8f9,_0x26f3dd=_0x18f002[_0x424114(0x165)]-0x1,_0x42f22c;_0x26f3dd>=0x0;_0x26f3dd--)(_0x42f22c=_0x18f002[_0x26f3dd])&&(_0x40e955=_0x42f22c(_0x40e955)||_0x40e955);return _0x40e955;},_=(_0xcae568,_0x226231)=>(_0x1fdd9c,_0xccd9c5)=>_0x226231(_0x1fdd9c,_0xccd9c5,_0xcae568),I=(_0x35e859,_0x4b1b44,_0x1bb03e)=>$(_0x35e859,typeof _0x4b1b44!=_0x43e009(0x14a)?_0x4b1b44+'':_0x4b1b44,_0x1bb03e);const W=_0x43e009(0x152);let s=class extends _0x267487{constructor(_0xfcdf15=l,_0x5a7dda,_0x2eca41){const _0x2013c7=_0x43e009;super(),this['_config']=_0xfcdf15,this['_injector']=_0x5a7dda,this[_0x2013c7(0x14c)]=_0x2eca41;const {menu:_0x3af81a,..._0x5661ee}=_0x37a5fb({},l,this[_0x2013c7(0x158)]);_0x3af81a&&this[_0x2013c7(0x14c)][_0x2013c7(0x139)]('menu',_0x3af81a,{'merge':!0x0}),this['_configService']['setConfig'](H,_0x5661ee);}[_0x43e009(0x13b)](){const _0x570805=_0x43e009;[[c]][_0x570805(0x15e)](_0xb1783e=>this[_0x570805(0x150)][_0x570805(0x13f)](_0xb1783e));}[_0x43e009(0x143)](){const _0xa664ea=_0x43e009;this[_0xa664ea(0x150)][_0xa664ea(0x142)](c);}};I(s,'pluginName',W),I(s,_0x43e009(0x145),_0x26fbc8[_0x43e009(0x159)]),s=V([_0x423266(_0x2ea5db),_(0x1,_0x2e64d4(_0x1f4042)),_(0x2,_0x2022f6)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ function _0x264b(_0x1a3439,_0x2da591){const _0x283c2f=_0x283c();return _0x264b=function(_0x264b30,_0x25686b){_0x264b30=_0x264b30-0x176;let _0x259e02=_0x283c2f[_0x264b30];return _0x259e02;},_0x264b(_0x1a3439,_0x2da591);}const _0x3d71e0=_0x264b;(function(_0x52b8cf,_0x573918){const _0x58c2b2=_0x264b,_0x5c32f7=_0x52b8cf();while(!![]){try{const _0x5d19dc=-parseInt(_0x58c2b2(0x18b))/0x1*(-parseInt(_0x58c2b2(0x18e))/0x2)+-parseInt(_0x58c2b2(0x190))/0x3+-parseInt(_0x58c2b2(0x185))/0x4*(parseInt(_0x58c2b2(0x191))/0x5)+parseInt(_0x58c2b2(0x1a1))/0x6*(-parseInt(_0x58c2b2(0x178))/0x7)+-parseInt(_0x58c2b2(0x18f))/0x8*(parseInt(_0x58c2b2(0x189))/0x9)+-parseInt(_0x58c2b2(0x17f))/0xa*(parseInt(_0x58c2b2(0x19d))/0xb)+parseInt(_0x58c2b2(0x194))/0xc*(parseInt(_0x58c2b2(0x1a2))/0xd);if(_0x5d19dc===_0x573918)break;else _0x5c32f7['push'](_0x5c32f7['shift']());}catch(_0x220ba0){_0x5c32f7['push'](_0x5c32f7['shift']());}}}(_0x283c,0xc6a33));import{IExchangeOperateService as _0xc375a,UniverExchangeClientPlugin as _0x50c43e}from'@univerjs-pro/exchange-client';import{CommandType as _0x51e433,UniverInstanceType as _0x234cd2,Disposable as _0x5d1134,ICommandService as _0x37f15b,DependentOn as _0x535b9b,Inject as _0x231357,Injector as _0x7391d5,IConfigService as _0x37185b,Plugin as _0xf0fdf5,merge as _0x1ab2a5}from'@univerjs/core';import{MenuItemType as _0x5ef7c6,getMenuHiddenObservable as _0x2fc4d2,RibbonStartGroup as _0x1c5665,IMenuManagerService as _0x53f4c6}from'@univerjs/ui';import{WorkbookExportPermission as _0x4bf932}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x23f73c}from'@univerjs/sheets-ui';const p={'id':_0x3d71e0(0x17e),'type':_0x51e433['OPERATION'],'handler':async _0x2ca39b=>{const _0x5f055b=_0x3d71e0,_0xaeb77d=_0x2ca39b[_0x5f055b(0x18c)](_0xc375a);return new URLSearchParams(location[_0x5f055b(0x195)])[_0x5f055b(0x18c)](_0x5f055b(0x1a0))?_0xaeb77d[_0x5f055b(0x1a4)]():_0xaeb77d[_0x5f055b(0x17b)](),!0x0;}},u={'id':_0x3d71e0(0x180),'type':_0x51e433[_0x3d71e0(0x199)],'handler':async _0x2bcf04=>{const _0x4b8591=_0x3d71e0,_0x3b98fd=_0x2bcf04[_0x4b8591(0x18c)](_0xc375a);return new URLSearchParams(location['search'])[_0x4b8591(0x18c)](_0x4b8591(0x1a0))?_0x3b98fd['exportXLSXByUnitId']():_0x3b98fd['exportXLSXBySnapshot'](),!0x0;}},H='sheets-exchange-client.config',l={},S=_0x3d71e0(0x1a7);function R(_0x2502cb){const _0x5426a9=_0x3d71e0;return{'id':S,'type':_0x5ef7c6[_0x5426a9(0x188)],'icon':_0x5426a9(0x183),'tooltip':_0x5426a9(0x19a),'hidden$':_0x2fc4d2(_0x2502cb,_0x234cd2[_0x5426a9(0x181)]),'disabled$':_0x23f73c(_0x2502cb,{'workbookTypes':[_0x4bf932]})};}function w(){const _0x58e7d9=_0x3d71e0;return{'id':p['id'],'type':_0x5ef7c6[_0x58e7d9(0x179)],'title':_0x58e7d9(0x17a),'icon':_0x58e7d9(0x17c)};}function D(){const _0x287825=_0x3d71e0;return{'id':u['id'],'type':_0x5ef7c6[_0x287825(0x179)],'title':'exchange.download','icon':_0x287825(0x1a6)};}const F={[_0x1c5665[_0x3d71e0(0x177)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x3d71e0(0x18d)],A=(_0x37c649,_0x67e90b,_0x346d84,_0x3474b6)=>{const _0x43ebb2=_0x3d71e0;for(var _0x138c37=_0x3474b6>0x1?void 0x0:_0x3474b6?G(_0x67e90b,_0x346d84):_0x67e90b,_0x31bc33=_0x37c649[_0x43ebb2(0x1a3)]-0x1,_0x2fbb8a;_0x31bc33>=0x0;_0x31bc33--)(_0x2fbb8a=_0x37c649[_0x31bc33])&&(_0x138c37=_0x2fbb8a(_0x138c37)||_0x138c37);return _0x138c37;},d=(_0x21f65e,_0x46456c)=>(_0x2a66f1,_0x42bbcc)=>_0x46456c(_0x2a66f1,_0x42bbcc,_0x21f65e);let c=class extends _0x5d1134{constructor(_0x141041,_0x178ee6){const _0x1157ea=_0x3d71e0;super(),this[_0x1157ea(0x192)]=_0x141041,this['_menuManagerService']=_0x178ee6,this[_0x1157ea(0x197)](),this['_initMenus']();}[_0x3d71e0(0x197)](){const _0x209ae5=_0x3d71e0;[p,u][_0x209ae5(0x1a5)](_0x13c7ac=>{const _0x132772=_0x209ae5;this[_0x132772(0x184)](this[_0x132772(0x192)][_0x132772(0x19e)](_0x13c7ac));});}[_0x3d71e0(0x18a)](){const _0x2ee1cc=_0x3d71e0;this['_menuManagerService'][_0x2ee1cc(0x19f)](F);}};c=A([d(0x0,_0x37f15b),d(0x1,_0x53f4c6)],c);var j=Object[_0x3d71e0(0x182)],B=Object[_0x3d71e0(0x18d)],$=(_0x5935cd,_0x4f8dec,_0x115975)=>_0x4f8dec in _0x5935cd?j(_0x5935cd,_0x4f8dec,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x115975}):_0x5935cd[_0x4f8dec]=_0x115975,V=(_0x453398,_0x37fe34,_0x424048,_0x1d9146)=>{for(var _0x405cd3=_0x1d9146>0x1?void 0x0:_0x1d9146?B(_0x37fe34,_0x424048):_0x37fe34,_0x499112=_0x453398['length']-0x1,_0x1b47a1;_0x499112>=0x0;_0x499112--)(_0x1b47a1=_0x453398[_0x499112])&&(_0x405cd3=_0x1b47a1(_0x405cd3)||_0x405cd3);return _0x405cd3;},_=(_0x1976a2,_0x10109a)=>(_0x454d9e,_0x245e80)=>_0x10109a(_0x454d9e,_0x245e80,_0x1976a2),I=(_0x1928c4,_0x30f9c4,_0x5daf06)=>$(_0x1928c4,typeof _0x30f9c4!=_0x3d71e0(0x198)?_0x30f9c4+'':_0x30f9c4,_0x5daf06);const W=_0x3d71e0(0x193);let s=class extends _0xf0fdf5{constructor(_0xa2b3e=l,_0x271bd9,_0x402490){const _0x505171=_0x3d71e0;super(),this['_config']=_0xa2b3e,this[_0x505171(0x196)]=_0x271bd9,this[_0x505171(0x187)]=_0x402490;const {menu:_0x47abe8,..._0xc649e4}=_0x1ab2a5({},l,this[_0x505171(0x176)]);_0x47abe8&&this[_0x505171(0x187)][_0x505171(0x19c)](_0x505171(0x19b),_0x47abe8,{'merge':!0x0}),this[_0x505171(0x187)]['setConfig'](H,_0xc649e4);}[_0x3d71e0(0x17d)](){const _0x591c7c=_0x3d71e0;[[c]][_0x591c7c(0x1a5)](_0x1c586d=>this[_0x591c7c(0x196)]['add'](_0x1c586d));}[_0x3d71e0(0x186)](){const _0x3ba8c4=_0x3d71e0;this['_injector'][_0x3ba8c4(0x18c)](c);}};I(s,'pluginName',W),I(s,'type',_0x234cd2[_0x3d71e0(0x181)]),s=V([_0x535b9b(_0x50c43e),_(0x1,_0x231357(_0x7391d5)),_(0x2,_0x37185b)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};function _0x283c(){const _0x39d3e5=['_initCommands','symbol','OPERATION','exchange.file','menu','setConfig','11UzJLOi','registerCommand','mergeMenu','unit','10242FnGhbv','39fjPzwS','length','importXLSXToUnitId','forEach','ExportIcon','sheets-exchange-client.operation.exchange','_config','OTHERS','4039CZgaVw','BUTTON','exchange.upload','importXLSXToSnapshot','FolderIcon','onStarting','exchange-client.operation.import-xlsx','9268150NndkLf','exchange-client.operation.export-xlsx','UNIVER_SHEET','defineProperty','DirectExportIcon','disposeWithMe','11368fEuUHW','onReady','_configService','SUBITEMS','534186pTpLVJ','_initMenus','318959GuVDfH','get','getOwnPropertyDescriptor','2JPisZA','8zkfhgW','1481793OrQyfj','1195slxPCf','_commandService','SHEET_EXCHANGE_CLIENT_PLUGIN','14555748yGMbOW','search','_injector'];_0x283c=function(){return _0x39d3e5;};return _0x283c();}
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- function _0x19f5(_0x65325b,_0x4b35ba){const _0x22530d=_0x2253();return _0x19f5=function(_0x19f52f,_0x117549){_0x19f52f=_0x19f52f-0x137;let _0x4a99a3=_0x22530d[_0x19f52f];return _0x4a99a3;},_0x19f5(_0x65325b,_0x4b35ba);}const _0x43e009=_0x19f5;(function(_0x46d7a4,_0x56de52){const _0x53f7be=_0x19f5,_0x58ce30=_0x46d7a4();while(!![]){try{const _0x2af4f7=-parseInt(_0x53f7be(0x137))/0x1*(-parseInt(_0x53f7be(0x15a))/0x2)+-parseInt(_0x53f7be(0x14b))/0x3+-parseInt(_0x53f7be(0x168))/0x4*(parseInt(_0x53f7be(0x151))/0x5)+parseInt(_0x53f7be(0x146))/0x6+parseInt(_0x53f7be(0x15f))/0x7*(-parseInt(_0x53f7be(0x13a))/0x8)+parseInt(_0x53f7be(0x164))/0x9+parseInt(_0x53f7be(0x147))/0xa*(parseInt(_0x53f7be(0x153))/0xb);if(_0x2af4f7===_0x56de52)break;else _0x58ce30['push'](_0x58ce30['shift']());}catch(_0x3b6eff){_0x58ce30['push'](_0x58ce30['shift']());}}}(_0x2253,0xa5164));import{IExchangeOperateService as _0x16c259,UniverExchangeClientPlugin as _0x2ea5db}from'@univerjs-pro/exchange-client';import{CommandType as _0x5ed01c,UniverInstanceType as _0x26fbc8,Disposable as _0x4b5be7,ICommandService as _0x5b11b2,DependentOn as _0x423266,Inject as _0x2e64d4,Injector as _0x1f4042,IConfigService as _0x2022f6,Plugin as _0x267487,merge as _0x37a5fb}from'@univerjs/core';import{MenuItemType as _0x48b5e0,getMenuHiddenObservable as _0x4fd24a,RibbonStartGroup as _0xc8ee8c,IMenuManagerService as _0x1c351b}from'@univerjs/ui';import{WorkbookExportPermission as _0x53080e}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x56771d}from'@univerjs/sheets-ui';const p={'id':_0x43e009(0x166),'type':_0x5ed01c['OPERATION'],'handler':async _0x1920f9=>{const _0x1bbb9a=_0x43e009,_0x3c4d47=_0x1920f9[_0x1bbb9a(0x142)](_0x16c259);return new URLSearchParams(location[_0x1bbb9a(0x161)])['get'](_0x1bbb9a(0x154))?_0x3c4d47[_0x1bbb9a(0x14e)]():_0x3c4d47[_0x1bbb9a(0x15c)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x5ed01c[_0x43e009(0x14d)],'handler':async _0x270e76=>{const _0x5260bb=_0x43e009,_0x3dc1ac=_0x270e76[_0x5260bb(0x142)](_0x16c259);return new URLSearchParams(location['search'])[_0x5260bb(0x142)](_0x5260bb(0x154))?_0x3dc1ac[_0x5260bb(0x140)]():_0x3dc1ac[_0x5260bb(0x138)](),!0x0;}},H='sheets-exchange-client.config',l={},S='sheets-exchange-client.operation.exchange';function R(_0x420221){const _0x2ed777=_0x43e009;return{'id':S,'type':_0x48b5e0[_0x2ed777(0x144)],'icon':_0x2ed777(0x15d),'tooltip':_0x2ed777(0x157),'hidden$':_0x4fd24a(_0x420221,_0x26fbc8[_0x2ed777(0x159)]),'disabled$':_0x56771d(_0x420221,{'workbookTypes':[_0x53080e]})};}function w(){const _0x343230=_0x43e009;return{'id':p['id'],'type':_0x48b5e0['BUTTON'],'title':_0x343230(0x13d),'icon':_0x343230(0x13e)};}function D(){const _0x36e72d=_0x43e009;return{'id':u['id'],'type':_0x48b5e0[_0x36e72d(0x162)],'title':_0x36e72d(0x141),'icon':_0x36e72d(0x15b)};}const F={[_0xc8ee8c[_0x43e009(0x163)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x43e009(0x167)],A=(_0x5e4db5,_0x35900a,_0x1105e0,_0x31dee0)=>{for(var _0x39f636=_0x31dee0>0x1?void 0x0:_0x31dee0?G(_0x35900a,_0x1105e0):_0x35900a,_0x59fe29=_0x5e4db5['length']-0x1,_0xabad62;_0x59fe29>=0x0;_0x59fe29--)(_0xabad62=_0x5e4db5[_0x59fe29])&&(_0x39f636=_0xabad62(_0x39f636)||_0x39f636);return _0x39f636;},d=(_0x370f0e,_0x1c1c9e)=>(_0x5b8f5b,_0x3e07c5)=>_0x1c1c9e(_0x5b8f5b,_0x3e07c5,_0x370f0e);function _0x2253(){const _0x22dfd1=['_injector','257560ilFEEG','SHEET_EXCHANGE_CLIENT_PLUGIN','11NaTXRD','unit','_initMenus','registerCommand','exchange.file','_config','UNIVER_SHEET','6368KvJufx','ExportIcon','importXLSXToSnapshot','DirectExportIcon','forEach','14AqanaD','_initCommands','search','BUTTON','OTHERS','1400319cghWBe','length','exchange-client.operation.import-xlsx','getOwnPropertyDescriptor','20pZKHeq','331NOoeEh','exportXLSXBySnapshot','setConfig','834768zYzeDv','onStarting','disposeWithMe','exchange.upload','FolderIcon','add','exportXLSXByUnitId','exchange.download','get','onReady','SUBITEMS','type','844890cmFZpt','6503110NNHXBj','_commandService','mergeMenu','symbol','2574519ySLLEn','_configService','OPERATION','importXLSXToUnitId','_menuManagerService'];_0x2253=function(){return _0x22dfd1;};return _0x2253();}let c=class extends _0x4b5be7{constructor(_0x1838fd,_0x546789){const _0x1d691f=_0x43e009;super(),this[_0x1d691f(0x148)]=_0x1838fd,this[_0x1d691f(0x14f)]=_0x546789,this['_initCommands'](),this[_0x1d691f(0x155)]();}[_0x43e009(0x160)](){const _0x28dd8f=_0x43e009;[p,u][_0x28dd8f(0x15e)](_0x48a589=>{const _0x42e24b=_0x28dd8f;this[_0x42e24b(0x13c)](this[_0x42e24b(0x148)][_0x42e24b(0x156)](_0x48a589));});}['_initMenus'](){const _0x1ea011=_0x43e009;this[_0x1ea011(0x14f)][_0x1ea011(0x149)](F);}};c=A([d(0x0,_0x5b11b2),d(0x1,_0x1c351b)],c);var j=Object['defineProperty'],B=Object['getOwnPropertyDescriptor'],$=(_0x3cd1d3,_0x3cf53c,_0x2973aa)=>_0x3cf53c in _0x3cd1d3?j(_0x3cd1d3,_0x3cf53c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2973aa}):_0x3cd1d3[_0x3cf53c]=_0x2973aa,V=(_0x18f002,_0x19b8f9,_0x3115d1,_0xf48720)=>{const _0x424114=_0x43e009;for(var _0x40e955=_0xf48720>0x1?void 0x0:_0xf48720?B(_0x19b8f9,_0x3115d1):_0x19b8f9,_0x26f3dd=_0x18f002[_0x424114(0x165)]-0x1,_0x42f22c;_0x26f3dd>=0x0;_0x26f3dd--)(_0x42f22c=_0x18f002[_0x26f3dd])&&(_0x40e955=_0x42f22c(_0x40e955)||_0x40e955);return _0x40e955;},_=(_0xcae568,_0x226231)=>(_0x1fdd9c,_0xccd9c5)=>_0x226231(_0x1fdd9c,_0xccd9c5,_0xcae568),I=(_0x35e859,_0x4b1b44,_0x1bb03e)=>$(_0x35e859,typeof _0x4b1b44!=_0x43e009(0x14a)?_0x4b1b44+'':_0x4b1b44,_0x1bb03e);const W=_0x43e009(0x152);let s=class extends _0x267487{constructor(_0xfcdf15=l,_0x5a7dda,_0x2eca41){const _0x2013c7=_0x43e009;super(),this['_config']=_0xfcdf15,this['_injector']=_0x5a7dda,this[_0x2013c7(0x14c)]=_0x2eca41;const {menu:_0x3af81a,..._0x5661ee}=_0x37a5fb({},l,this[_0x2013c7(0x158)]);_0x3af81a&&this[_0x2013c7(0x14c)][_0x2013c7(0x139)]('menu',_0x3af81a,{'merge':!0x0}),this['_configService']['setConfig'](H,_0x5661ee);}[_0x43e009(0x13b)](){const _0x570805=_0x43e009;[[c]][_0x570805(0x15e)](_0xb1783e=>this[_0x570805(0x150)][_0x570805(0x13f)](_0xb1783e));}[_0x43e009(0x143)](){const _0xa664ea=_0x43e009;this[_0xa664ea(0x150)][_0xa664ea(0x142)](c);}};I(s,'pluginName',W),I(s,_0x43e009(0x145),_0x26fbc8[_0x43e009(0x159)]),s=V([_0x423266(_0x2ea5db),_(0x1,_0x2e64d4(_0x1f4042)),_(0x2,_0x2022f6)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ function _0x264b(_0x1a3439,_0x2da591){const _0x283c2f=_0x283c();return _0x264b=function(_0x264b30,_0x25686b){_0x264b30=_0x264b30-0x176;let _0x259e02=_0x283c2f[_0x264b30];return _0x259e02;},_0x264b(_0x1a3439,_0x2da591);}const _0x3d71e0=_0x264b;(function(_0x52b8cf,_0x573918){const _0x58c2b2=_0x264b,_0x5c32f7=_0x52b8cf();while(!![]){try{const _0x5d19dc=-parseInt(_0x58c2b2(0x18b))/0x1*(-parseInt(_0x58c2b2(0x18e))/0x2)+-parseInt(_0x58c2b2(0x190))/0x3+-parseInt(_0x58c2b2(0x185))/0x4*(parseInt(_0x58c2b2(0x191))/0x5)+parseInt(_0x58c2b2(0x1a1))/0x6*(-parseInt(_0x58c2b2(0x178))/0x7)+-parseInt(_0x58c2b2(0x18f))/0x8*(parseInt(_0x58c2b2(0x189))/0x9)+-parseInt(_0x58c2b2(0x17f))/0xa*(parseInt(_0x58c2b2(0x19d))/0xb)+parseInt(_0x58c2b2(0x194))/0xc*(parseInt(_0x58c2b2(0x1a2))/0xd);if(_0x5d19dc===_0x573918)break;else _0x5c32f7['push'](_0x5c32f7['shift']());}catch(_0x220ba0){_0x5c32f7['push'](_0x5c32f7['shift']());}}}(_0x283c,0xc6a33));import{IExchangeOperateService as _0xc375a,UniverExchangeClientPlugin as _0x50c43e}from'@univerjs-pro/exchange-client';import{CommandType as _0x51e433,UniverInstanceType as _0x234cd2,Disposable as _0x5d1134,ICommandService as _0x37f15b,DependentOn as _0x535b9b,Inject as _0x231357,Injector as _0x7391d5,IConfigService as _0x37185b,Plugin as _0xf0fdf5,merge as _0x1ab2a5}from'@univerjs/core';import{MenuItemType as _0x5ef7c6,getMenuHiddenObservable as _0x2fc4d2,RibbonStartGroup as _0x1c5665,IMenuManagerService as _0x53f4c6}from'@univerjs/ui';import{WorkbookExportPermission as _0x4bf932}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x23f73c}from'@univerjs/sheets-ui';const p={'id':_0x3d71e0(0x17e),'type':_0x51e433['OPERATION'],'handler':async _0x2ca39b=>{const _0x5f055b=_0x3d71e0,_0xaeb77d=_0x2ca39b[_0x5f055b(0x18c)](_0xc375a);return new URLSearchParams(location[_0x5f055b(0x195)])[_0x5f055b(0x18c)](_0x5f055b(0x1a0))?_0xaeb77d[_0x5f055b(0x1a4)]():_0xaeb77d[_0x5f055b(0x17b)](),!0x0;}},u={'id':_0x3d71e0(0x180),'type':_0x51e433[_0x3d71e0(0x199)],'handler':async _0x2bcf04=>{const _0x4b8591=_0x3d71e0,_0x3b98fd=_0x2bcf04[_0x4b8591(0x18c)](_0xc375a);return new URLSearchParams(location['search'])[_0x4b8591(0x18c)](_0x4b8591(0x1a0))?_0x3b98fd['exportXLSXByUnitId']():_0x3b98fd['exportXLSXBySnapshot'](),!0x0;}},H='sheets-exchange-client.config',l={},S=_0x3d71e0(0x1a7);function R(_0x2502cb){const _0x5426a9=_0x3d71e0;return{'id':S,'type':_0x5ef7c6[_0x5426a9(0x188)],'icon':_0x5426a9(0x183),'tooltip':_0x5426a9(0x19a),'hidden$':_0x2fc4d2(_0x2502cb,_0x234cd2[_0x5426a9(0x181)]),'disabled$':_0x23f73c(_0x2502cb,{'workbookTypes':[_0x4bf932]})};}function w(){const _0x58e7d9=_0x3d71e0;return{'id':p['id'],'type':_0x5ef7c6[_0x58e7d9(0x179)],'title':_0x58e7d9(0x17a),'icon':_0x58e7d9(0x17c)};}function D(){const _0x287825=_0x3d71e0;return{'id':u['id'],'type':_0x5ef7c6[_0x287825(0x179)],'title':'exchange.download','icon':_0x287825(0x1a6)};}const F={[_0x1c5665[_0x3d71e0(0x177)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x3d71e0(0x18d)],A=(_0x37c649,_0x67e90b,_0x346d84,_0x3474b6)=>{const _0x43ebb2=_0x3d71e0;for(var _0x138c37=_0x3474b6>0x1?void 0x0:_0x3474b6?G(_0x67e90b,_0x346d84):_0x67e90b,_0x31bc33=_0x37c649[_0x43ebb2(0x1a3)]-0x1,_0x2fbb8a;_0x31bc33>=0x0;_0x31bc33--)(_0x2fbb8a=_0x37c649[_0x31bc33])&&(_0x138c37=_0x2fbb8a(_0x138c37)||_0x138c37);return _0x138c37;},d=(_0x21f65e,_0x46456c)=>(_0x2a66f1,_0x42bbcc)=>_0x46456c(_0x2a66f1,_0x42bbcc,_0x21f65e);let c=class extends _0x5d1134{constructor(_0x141041,_0x178ee6){const _0x1157ea=_0x3d71e0;super(),this[_0x1157ea(0x192)]=_0x141041,this['_menuManagerService']=_0x178ee6,this[_0x1157ea(0x197)](),this['_initMenus']();}[_0x3d71e0(0x197)](){const _0x209ae5=_0x3d71e0;[p,u][_0x209ae5(0x1a5)](_0x13c7ac=>{const _0x132772=_0x209ae5;this[_0x132772(0x184)](this[_0x132772(0x192)][_0x132772(0x19e)](_0x13c7ac));});}[_0x3d71e0(0x18a)](){const _0x2ee1cc=_0x3d71e0;this['_menuManagerService'][_0x2ee1cc(0x19f)](F);}};c=A([d(0x0,_0x37f15b),d(0x1,_0x53f4c6)],c);var j=Object[_0x3d71e0(0x182)],B=Object[_0x3d71e0(0x18d)],$=(_0x5935cd,_0x4f8dec,_0x115975)=>_0x4f8dec in _0x5935cd?j(_0x5935cd,_0x4f8dec,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x115975}):_0x5935cd[_0x4f8dec]=_0x115975,V=(_0x453398,_0x37fe34,_0x424048,_0x1d9146)=>{for(var _0x405cd3=_0x1d9146>0x1?void 0x0:_0x1d9146?B(_0x37fe34,_0x424048):_0x37fe34,_0x499112=_0x453398['length']-0x1,_0x1b47a1;_0x499112>=0x0;_0x499112--)(_0x1b47a1=_0x453398[_0x499112])&&(_0x405cd3=_0x1b47a1(_0x405cd3)||_0x405cd3);return _0x405cd3;},_=(_0x1976a2,_0x10109a)=>(_0x454d9e,_0x245e80)=>_0x10109a(_0x454d9e,_0x245e80,_0x1976a2),I=(_0x1928c4,_0x30f9c4,_0x5daf06)=>$(_0x1928c4,typeof _0x30f9c4!=_0x3d71e0(0x198)?_0x30f9c4+'':_0x30f9c4,_0x5daf06);const W=_0x3d71e0(0x193);let s=class extends _0xf0fdf5{constructor(_0xa2b3e=l,_0x271bd9,_0x402490){const _0x505171=_0x3d71e0;super(),this['_config']=_0xa2b3e,this[_0x505171(0x196)]=_0x271bd9,this[_0x505171(0x187)]=_0x402490;const {menu:_0x47abe8,..._0xc649e4}=_0x1ab2a5({},l,this[_0x505171(0x176)]);_0x47abe8&&this[_0x505171(0x187)][_0x505171(0x19c)](_0x505171(0x19b),_0x47abe8,{'merge':!0x0}),this[_0x505171(0x187)]['setConfig'](H,_0xc649e4);}[_0x3d71e0(0x17d)](){const _0x591c7c=_0x3d71e0;[[c]][_0x591c7c(0x1a5)](_0x1c586d=>this[_0x591c7c(0x196)]['add'](_0x1c586d));}[_0x3d71e0(0x186)](){const _0x3ba8c4=_0x3d71e0;this['_injector'][_0x3ba8c4(0x18c)](c);}};I(s,'pluginName',W),I(s,'type',_0x234cd2[_0x3d71e0(0x181)]),s=V([_0x535b9b(_0x50c43e),_(0x1,_0x231357(_0x7391d5)),_(0x2,_0x37185b)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};function _0x283c(){const _0x39d3e5=['_initCommands','symbol','OPERATION','exchange.file','menu','setConfig','11UzJLOi','registerCommand','mergeMenu','unit','10242FnGhbv','39fjPzwS','length','importXLSXToUnitId','forEach','ExportIcon','sheets-exchange-client.operation.exchange','_config','OTHERS','4039CZgaVw','BUTTON','exchange.upload','importXLSXToSnapshot','FolderIcon','onStarting','exchange-client.operation.import-xlsx','9268150NndkLf','exchange-client.operation.export-xlsx','UNIVER_SHEET','defineProperty','DirectExportIcon','disposeWithMe','11368fEuUHW','onReady','_configService','SUBITEMS','534186pTpLVJ','_initMenus','318959GuVDfH','get','getOwnPropertyDescriptor','2JPisZA','8zkfhgW','1481793OrQyfj','1195slxPCf','_commandService','SHEET_EXCHANGE_CLIENT_PLUGIN','14555748yGMbOW','search','_injector'];_0x283c=function(){return _0x39d3e5;};return _0x283c();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x1dab(){const _0x221436=['UniverProSheetsExchangeClient','OPERATION','657JyfMlM','UniverExchangeClientPlugin','search','@univerjs/sheets-ui','exports','defineProperty','BUTTON','OTHERS','MenuItemType','_injector','getOwnPropertyDescriptor','ICommandService','_menuManagerService','importXLSXToUnitId','onStarting','importXLSXToSnapshot','@univerjs-pro/exchange-client','sheets-exchange-client.config','length','RibbonStartGroup','menu','15233416MFEvna','getCurrentRangeDisable$','exchange-client.operation.import-xlsx','CommandType','@univerjs/core','@univerjs/ui','add','onReady','registerCommand','Injector','37954bxiGFK','forEach','_commandService','object','_configService','2461708piuWqH','2912268zYkwGB','5QmPtiO','2691384ihfjSz','10gjMfry','_config','disposeWithMe','UniverProExchangeClient','UniverInstanceType','_initMenus','exchange.file','exchange.download','Inject','1074gQVJym','IMenuManagerService','543666CyjsOJ','ExportIcon','exportXLSXByUnitId','getMenuHiddenObservable','DirectExportIcon','unit','UniverSheetsExchangeClientPlugin','UniverSheetsUi','ExportXLSXOperation','exchange.upload','SHEET_EXCHANGE_CLIENT_PLUGIN','Module','_initCommands','type','DependentOn','FolderIcon','IExchangeOperateService','94936QGBdaw','pluginName','merge','WorkbookExportPermission','SUBITEMS','get','UniverSheets','exportXLSXBySnapshot','2rRqjcf'];_0x1dab=function(){return _0x221436;};return _0x1dab();}function _0x2810(_0xb5da0c,_0x291479){const _0x1dab01=_0x1dab();return _0x2810=function(_0x281007,_0x5ccf34){_0x281007=_0x281007-0x12f;let _0x512659=_0x1dab01[_0x281007];return _0x512659;},_0x2810(_0xb5da0c,_0x291479);}(function(_0x330fbf,_0x2d897e){const _0x12e13b=_0x2810,_0x1af260=_0x330fbf();while(!![]){try{const _0x32a552=-parseInt(_0x12e13b(0x134))/0x1*(parseInt(_0x12e13b(0x16a))/0x2)+-parseInt(_0x12e13b(0x15c))/0x3+parseInt(_0x12e13b(0x15b))/0x4*(-parseInt(_0x12e13b(0x15d))/0x5)+-parseInt(_0x12e13b(0x168))/0x6*(-parseInt(_0x12e13b(0x156))/0x7)+-parseInt(_0x12e13b(0x17b))/0x8*(-parseInt(_0x12e13b(0x137))/0x9)+parseInt(_0x12e13b(0x15f))/0xa*(parseInt(_0x12e13b(0x14c))/0xb)+-parseInt(_0x12e13b(0x15e))/0xc;if(_0x32a552===_0x2d897e)break;else _0x1af260['push'](_0x1af260['shift']());}catch(_0x1c9205){_0x1af260['push'](_0x1af260['shift']());}}}(_0x1dab,0xd3ce2),function(_0x3bf6e5,_0x5a2f9a){const _0x1fc96b=_0x2810;typeof exports==_0x1fc96b(0x159)&&typeof module<'u'?_0x5a2f9a(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([_0x1fc96b(0x13b),_0x1fc96b(0x147),_0x1fc96b(0x150),_0x1fc96b(0x151),'@univerjs/sheets',_0x1fc96b(0x13a)],_0x5a2f9a):(_0x3bf6e5=typeof globalThis<'u'?globalThis:_0x3bf6e5||self,_0x5a2f9a(_0x3bf6e5[_0x1fc96b(0x135)]={},_0x3bf6e5[_0x1fc96b(0x162)],_0x3bf6e5['UniverCore'],_0x3bf6e5['UniverUi'],_0x3bf6e5[_0x1fc96b(0x132)],_0x3bf6e5[_0x1fc96b(0x171)]));}(this,function(_0x2f3cbe,_0x3c7a00,_0x58f40d,_0x4d88e2,_0x549644,_0x56f31e){'use strict';const _0x24ecba=_0x2810;const _0x312b2b={'id':_0x24ecba(0x14e),'type':_0x58f40d[_0x24ecba(0x14f)][_0x24ecba(0x136)],'handler':async _0x43bf82=>{const _0xf81b1f=_0x24ecba,_0x1d528b=_0x43bf82[_0xf81b1f(0x131)](_0x3c7a00[_0xf81b1f(0x17a)]);return new URLSearchParams(location['search'])[_0xf81b1f(0x131)](_0xf81b1f(0x16f))?_0x1d528b[_0xf81b1f(0x144)]():_0x1d528b[_0xf81b1f(0x146)](),!0x0;}},_0x3b7083={'id':'exchange-client.operation.export-xlsx','type':_0x58f40d[_0x24ecba(0x14f)]['OPERATION'],'handler':async _0x4ce3ae=>{const _0x562f9a=_0x24ecba,_0x10d275=_0x4ce3ae[_0x562f9a(0x131)](_0x3c7a00[_0x562f9a(0x17a)]);return new URLSearchParams(location[_0x562f9a(0x139)])[_0x562f9a(0x131)](_0x562f9a(0x16f))?_0x10d275[_0x562f9a(0x16c)]():_0x10d275[_0x562f9a(0x133)](),!0x0;}},_0x39fff3=_0x24ecba(0x148),_0x2192b8={},_0x4218b1='sheets-exchange-client.operation.exchange';function _0x2126b0(_0x48bdee){const _0x28bc39=_0x24ecba;return{'id':_0x4218b1,'type':_0x4d88e2[_0x28bc39(0x13f)][_0x28bc39(0x130)],'icon':_0x28bc39(0x16e),'tooltip':_0x28bc39(0x165),'hidden$':_0x4d88e2[_0x28bc39(0x16d)](_0x48bdee,_0x58f40d[_0x28bc39(0x163)]['UNIVER_SHEET']),'disabled$':_0x56f31e[_0x28bc39(0x14d)](_0x48bdee,{'workbookTypes':[_0x549644[_0x28bc39(0x12f)]]})};}function _0x1eca85(){const _0x20e4c1=_0x24ecba;return{'id':_0x312b2b['id'],'type':_0x4d88e2[_0x20e4c1(0x13f)][_0x20e4c1(0x13d)],'title':_0x20e4c1(0x173),'icon':_0x20e4c1(0x179)};}function _0x4ac7b9(){const _0x41877d=_0x24ecba;return{'id':_0x3b7083['id'],'type':_0x4d88e2['MenuItemType'][_0x41877d(0x13d)],'title':_0x41877d(0x166),'icon':_0x41877d(0x16b)};}const _0x4c0892={[_0x4d88e2[_0x24ecba(0x14a)][_0x24ecba(0x13e)]]:{[_0x4218b1]:{'order':0.3,'menuItemFactory':_0x2126b0,[_0x312b2b['id']]:{'order':0x0,'menuItemFactory':_0x1eca85},[_0x3b7083['id']]:{'order':0x1,'menuItemFactory':_0x4ac7b9}}}};var _0x4d2146=Object[_0x24ecba(0x141)],_0x2ce49a=(_0x49d94f,_0xe6f459,_0x24153c,_0x25e4e8)=>{const _0x42c66a=_0x24ecba;for(var _0x20cdb0=_0x25e4e8>0x1?void 0x0:_0x25e4e8?_0x4d2146(_0xe6f459,_0x24153c):_0xe6f459,_0x3c0f3b=_0x49d94f[_0x42c66a(0x149)]-0x1,_0x4328b8;_0x3c0f3b>=0x0;_0x3c0f3b--)(_0x4328b8=_0x49d94f[_0x3c0f3b])&&(_0x20cdb0=_0x4328b8(_0x20cdb0)||_0x20cdb0);return _0x20cdb0;},_0x7d9bb9=(_0x4e7541,_0x342986)=>(_0x43c491,_0x4278ff)=>_0x342986(_0x43c491,_0x4278ff,_0x4e7541);let _0x567d2b=class extends _0x58f40d['Disposable']{constructor(_0x2ecb0e,_0x195362){const _0x30a96e=_0x24ecba;super(),this[_0x30a96e(0x158)]=_0x2ecb0e,this['_menuManagerService']=_0x195362,this[_0x30a96e(0x176)](),this[_0x30a96e(0x164)]();}['_initCommands'](){const _0x41fcdd=_0x24ecba;[_0x312b2b,_0x3b7083][_0x41fcdd(0x157)](_0x33f948=>{const _0x473c4c=_0x41fcdd;this[_0x473c4c(0x161)](this[_0x473c4c(0x158)][_0x473c4c(0x154)](_0x33f948));});}[_0x24ecba(0x164)](){const _0x142330=_0x24ecba;this[_0x142330(0x143)]['mergeMenu'](_0x4c0892);}};_0x567d2b=_0x2ce49a([_0x7d9bb9(0x0,_0x58f40d[_0x24ecba(0x142)]),_0x7d9bb9(0x1,_0x4d88e2[_0x24ecba(0x169)])],_0x567d2b);var _0x56e6fd=Object[_0x24ecba(0x13c)],_0x36c527=Object['getOwnPropertyDescriptor'],_0x113da9=(_0x38f450,_0x4af628,_0x24d8d7)=>_0x4af628 in _0x38f450?_0x56e6fd(_0x38f450,_0x4af628,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x24d8d7}):_0x38f450[_0x4af628]=_0x24d8d7,_0x5bb8c2=(_0x5e0767,_0x140c5e,_0x31ec77,_0x4aa45f)=>{for(var _0x5ad5d5=_0x4aa45f>0x1?void 0x0:_0x4aa45f?_0x36c527(_0x140c5e,_0x31ec77):_0x140c5e,_0x3e23d2=_0x5e0767['length']-0x1,_0x30f45d;_0x3e23d2>=0x0;_0x3e23d2--)(_0x30f45d=_0x5e0767[_0x3e23d2])&&(_0x5ad5d5=_0x30f45d(_0x5ad5d5)||_0x5ad5d5);return _0x5ad5d5;},_0x438a6a=(_0x5d7e42,_0x611853)=>(_0x4948f2,_0x55fe69)=>_0x611853(_0x4948f2,_0x55fe69,_0x5d7e42),_0x3504ca=(_0x4269f0,_0x2d40fc,_0x1ead9a)=>_0x113da9(_0x4269f0,typeof _0x2d40fc!='symbol'?_0x2d40fc+'':_0x2d40fc,_0x1ead9a);const _0xc134e6=_0x24ecba(0x174);_0x2f3cbe['UniverSheetsExchangeClientPlugin']=class extends _0x58f40d['Plugin']{constructor(_0x5475ff=_0x2192b8,_0x3de5b5,_0x4b867b){const _0x1de8de=_0x24ecba;super(),this['_config']=_0x5475ff,this[_0x1de8de(0x140)]=_0x3de5b5,this[_0x1de8de(0x15a)]=_0x4b867b;const {menu:_0x1b0959,..._0x2207f0}=_0x58f40d[_0x1de8de(0x17d)]({},_0x2192b8,this[_0x1de8de(0x160)]);_0x1b0959&&this[_0x1de8de(0x15a)]['setConfig'](_0x1de8de(0x14b),_0x1b0959,{'merge':!0x0}),this[_0x1de8de(0x15a)]['setConfig'](_0x39fff3,_0x2207f0);}[_0x24ecba(0x145)](){const _0x54183a=_0x24ecba;[[_0x567d2b]]['forEach'](_0x577cd4=>this[_0x54183a(0x140)][_0x54183a(0x152)](_0x577cd4));}[_0x24ecba(0x153)](){const _0x29526f=_0x24ecba;this[_0x29526f(0x140)]['get'](_0x567d2b);}},_0x3504ca(_0x2f3cbe[_0x24ecba(0x170)],_0x24ecba(0x17c),_0xc134e6),_0x3504ca(_0x2f3cbe['UniverSheetsExchangeClientPlugin'],_0x24ecba(0x177),_0x58f40d[_0x24ecba(0x163)]['UNIVER_SHEET']),_0x2f3cbe[_0x24ecba(0x170)]=_0x5bb8c2([_0x58f40d[_0x24ecba(0x178)](_0x3c7a00[_0x24ecba(0x138)]),_0x438a6a(0x1,_0x58f40d[_0x24ecba(0x167)](_0x58f40d[_0x24ecba(0x155)])),_0x438a6a(0x2,_0x58f40d['IConfigService'])],_0x2f3cbe[_0x24ecba(0x170)]),_0x2f3cbe[_0x24ecba(0x172)]=_0x3b7083,_0x2f3cbe['ImportXLSXOperation']=_0x312b2b,Object[_0x24ecba(0x13c)](_0x2f3cbe,Symbol['toStringTag'],{'value':_0x24ecba(0x175)});}));
1
+ function _0x22d2(_0x5047f7,_0x37df67){const _0x995065=_0x9950();return _0x22d2=function(_0x22d289,_0xdef5f5){_0x22d289=_0x22d289-0xb5;let _0x390c4e=_0x995065[_0x22d289];return _0x390c4e;},_0x22d2(_0x5047f7,_0x37df67);}(function(_0x2181a8,_0x5d0016){const _0x23d339=_0x22d2,_0x25857e=_0x2181a8();while(!![]){try{const _0xcf8e24=parseInt(_0x23d339(0xe9))/0x1*(-parseInt(_0x23d339(0xc0))/0x2)+parseInt(_0x23d339(0xc8))/0x3+parseInt(_0x23d339(0xd7))/0x4*(parseInt(_0x23d339(0xc5))/0x5)+parseInt(_0x23d339(0xd3))/0x6+-parseInt(_0x23d339(0xba))/0x7*(parseInt(_0x23d339(0xc1))/0x8)+-parseInt(_0x23d339(0xea))/0x9*(-parseInt(_0x23d339(0xe1))/0xa)+parseInt(_0x23d339(0xca))/0xb;if(_0xcf8e24===_0x5d0016)break;else _0x25857e['push'](_0x25857e['shift']());}catch(_0x26ac52){_0x25857e['push'](_0x25857e['shift']());}}}(_0x9950,0x4df8f),function(_0x1318a7,_0x503f33){const _0x27e570=_0x22d2;typeof exports=='object'&&typeof module<'u'?_0x503f33(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x27e570(0xfc)&&define[_0x27e570(0xe7)]?define(['exports',_0x27e570(0xdc),_0x27e570(0xc4),_0x27e570(0xe3),_0x27e570(0xcb),_0x27e570(0xe8)],_0x503f33):(_0x1318a7=typeof globalThis<'u'?globalThis:_0x1318a7||self,_0x503f33(_0x1318a7['UniverProSheetsExchangeClient']={},_0x1318a7[_0x27e570(0xc6)],_0x1318a7[_0x27e570(0xb6)],_0x1318a7[_0x27e570(0xe6)],_0x1318a7[_0x27e570(0xb5)],_0x1318a7[_0x27e570(0xda)]));}(this,function(_0x294b59,_0x40f5a7,_0x4598ad,_0x2604bd,_0x450871,_0x12b46a){'use strict';const _0x23e679=_0x22d2;const _0x148aa9={'id':_0x23e679(0xf1),'type':_0x4598ad[_0x23e679(0xf2)][_0x23e679(0xfa)],'handler':async _0x28df4a=>{const _0x5adfb1=_0x23e679,_0x42c3b2=_0x28df4a[_0x5adfb1(0xc7)](_0x40f5a7['IExchangeOperateService']);return new URLSearchParams(location[_0x5adfb1(0xee)])['get'](_0x5adfb1(0xfe))?_0x42c3b2['importXLSXToUnitId']():_0x42c3b2[_0x5adfb1(0xf9)](),!0x0;}},_0x1f6249={'id':_0x23e679(0xc3),'type':_0x4598ad[_0x23e679(0xf2)]['OPERATION'],'handler':async _0x246695=>{const _0x18b310=_0x23e679,_0x3e1d3e=_0x246695[_0x18b310(0xc7)](_0x40f5a7[_0x18b310(0xb7)]);return new URLSearchParams(location[_0x18b310(0xee)])[_0x18b310(0xc7)]('unit')?_0x3e1d3e['exportXLSXByUnitId']():_0x3e1d3e[_0x18b310(0xbe)](),!0x0;}},_0x8e8052=_0x23e679(0xf7),_0x288b5b={},_0x314201='sheets-exchange-client.operation.exchange';function _0x352846(_0x56fc4b){const _0x44679a=_0x23e679;return{'id':_0x314201,'type':_0x2604bd['MenuItemType'][_0x44679a(0xd2)],'icon':_0x44679a(0xcd),'tooltip':_0x44679a(0xed),'hidden$':_0x2604bd[_0x44679a(0xdf)](_0x56fc4b,_0x4598ad[_0x44679a(0xe5)]['UNIVER_SHEET']),'disabled$':_0x12b46a[_0x44679a(0xd5)](_0x56fc4b,{'workbookTypes':[_0x450871['WorkbookExportPermission']]})};}function _0x1e9b59(){const _0x593045=_0x23e679;return{'id':_0x148aa9['id'],'type':_0x2604bd[_0x593045(0xd9)][_0x593045(0xd1)],'title':_0x593045(0xf6),'icon':_0x593045(0xb9)};}function _0x1abbcf(){const _0x5c7653=_0x23e679;return{'id':_0x1f6249['id'],'type':_0x2604bd[_0x5c7653(0xd9)][_0x5c7653(0xd1)],'title':_0x5c7653(0xdd),'icon':_0x5c7653(0xbb)};}const _0x6f82df={[_0x2604bd[_0x23e679(0xf4)]['OTHERS']]:{[_0x314201]:{'order':0.3,'menuItemFactory':_0x352846,[_0x148aa9['id']]:{'order':0x0,'menuItemFactory':_0x1e9b59},[_0x1f6249['id']]:{'order':0x1,'menuItemFactory':_0x1abbcf}}}};var _0x4ab35d=Object[_0x23e679(0xb8)],_0x4b9fdd=(_0x5aeed1,_0x197afe,_0x47558c,_0x4d8973)=>{const _0x335f3d=_0x23e679;for(var _0x534fd8=_0x4d8973>0x1?void 0x0:_0x4d8973?_0x4ab35d(_0x197afe,_0x47558c):_0x197afe,_0x1d8a68=_0x5aeed1[_0x335f3d(0xf0)]-0x1,_0x331a49;_0x1d8a68>=0x0;_0x1d8a68--)(_0x331a49=_0x5aeed1[_0x1d8a68])&&(_0x534fd8=_0x331a49(_0x534fd8)||_0x534fd8);return _0x534fd8;},_0x1837d7=(_0x3f73dc,_0x382ace)=>(_0x8b9e93,_0x516c57)=>_0x382ace(_0x8b9e93,_0x516c57,_0x3f73dc);let _0x3c5471=class extends _0x4598ad['Disposable']{constructor(_0x36c01e,_0x563575){const _0x2bae1a=_0x23e679;super(),this[_0x2bae1a(0xde)]=_0x36c01e,this[_0x2bae1a(0xe4)]=_0x563575,this['_initCommands'](),this['_initMenus']();}['_initCommands'](){const _0x530adc=_0x23e679;[_0x148aa9,_0x1f6249][_0x530adc(0xd6)](_0x293f1f=>{const _0x4781f5=_0x530adc;this[_0x4781f5(0xf8)](this[_0x4781f5(0xde)][_0x4781f5(0xcc)](_0x293f1f));});}['_initMenus'](){const _0x4230e0=_0x23e679;this[_0x4230e0(0xe4)]['mergeMenu'](_0x6f82df);}};_0x3c5471=_0x4b9fdd([_0x1837d7(0x0,_0x4598ad[_0x23e679(0xce)]),_0x1837d7(0x1,_0x2604bd[_0x23e679(0xd8)])],_0x3c5471);var _0x200ee8=Object[_0x23e679(0xd4)],_0x3daf26=Object['getOwnPropertyDescriptor'],_0x44de12=(_0x116e7c,_0xa027d8,_0x385d0e)=>_0xa027d8 in _0x116e7c?_0x200ee8(_0x116e7c,_0xa027d8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x385d0e}):_0x116e7c[_0xa027d8]=_0x385d0e,_0x42d7b8=(_0x2bd81e,_0x509dac,_0x584822,_0x5502ee)=>{for(var _0x362014=_0x5502ee>0x1?void 0x0:_0x5502ee?_0x3daf26(_0x509dac,_0x584822):_0x509dac,_0x18e63b=_0x2bd81e['length']-0x1,_0x2cb21d;_0x18e63b>=0x0;_0x18e63b--)(_0x2cb21d=_0x2bd81e[_0x18e63b])&&(_0x362014=_0x2cb21d(_0x362014)||_0x362014);return _0x362014;},_0x30782a=(_0x4ccc98,_0x2244b1)=>(_0xcca64a,_0x2f8de1)=>_0x2244b1(_0xcca64a,_0x2f8de1,_0x4ccc98),_0x570583=(_0x1a4ca3,_0x39855f,_0x3b3daa)=>_0x44de12(_0x1a4ca3,typeof _0x39855f!=_0x23e679(0xd0)?_0x39855f+'':_0x39855f,_0x3b3daa);const _0x297c64=_0x23e679(0xeb);_0x294b59[_0x23e679(0xc2)]=class extends _0x4598ad[_0x23e679(0xdb)]{constructor(_0x283bbd=_0x288b5b,_0x58c76a,_0x3d8438){const _0x23c3bd=_0x23e679;super(),this[_0x23c3bd(0xef)]=_0x283bbd,this[_0x23c3bd(0xc9)]=_0x58c76a,this[_0x23c3bd(0xf3)]=_0x3d8438;const {menu:_0x7db822,..._0x5b4862}=_0x4598ad['merge']({},_0x288b5b,this[_0x23c3bd(0xef)]);_0x7db822&&this['_configService']['setConfig']('menu',_0x7db822,{'merge':!0x0}),this[_0x23c3bd(0xf3)][_0x23c3bd(0xe0)](_0x8e8052,_0x5b4862);}[_0x23e679(0xcf)](){const _0x4f72f8=_0x23e679;[[_0x3c5471]][_0x4f72f8(0xd6)](_0x2d4aae=>this[_0x4f72f8(0xc9)]['add'](_0x2d4aae));}['onReady'](){const _0x1d4e71=_0x23e679;this[_0x1d4e71(0xc9)][_0x1d4e71(0xc7)](_0x3c5471);}},_0x570583(_0x294b59[_0x23e679(0xc2)],_0x23e679(0xfd),_0x297c64),_0x570583(_0x294b59[_0x23e679(0xc2)],_0x23e679(0xbd),_0x4598ad[_0x23e679(0xe5)][_0x23e679(0xbf)]),_0x294b59['UniverSheetsExchangeClientPlugin']=_0x42d7b8([_0x4598ad['DependentOn'](_0x40f5a7[_0x23e679(0xf5)]),_0x30782a(0x1,_0x4598ad[_0x23e679(0xec)](_0x4598ad['Injector'])),_0x30782a(0x2,_0x4598ad[_0x23e679(0xfb)])],_0x294b59[_0x23e679(0xc2)]),_0x294b59[_0x23e679(0xbc)]=_0x1f6249,_0x294b59[_0x23e679(0xe2)]=_0x148aa9,Object['defineProperty'](_0x294b59,Symbol['toStringTag'],{'value':'Module'});}));function _0x9950(){const _0x3d206f=['search','_config','length','exchange-client.operation.import-xlsx','CommandType','_configService','RibbonStartGroup','UniverExchangeClientPlugin','exchange.upload','sheets-exchange-client.config','disposeWithMe','importXLSXToSnapshot','OPERATION','IConfigService','function','pluginName','unit','UniverSheets','UniverCore','IExchangeOperateService','getOwnPropertyDescriptor','FolderIcon','4215421rGkqKv','ExportIcon','ExportXLSXOperation','type','exportXLSXBySnapshot','UNIVER_SHEET','275902dQKVHg','8FpIeFf','UniverSheetsExchangeClientPlugin','exchange-client.operation.export-xlsx','@univerjs/core','50KtVaEQ','UniverProExchangeClient','get','178290iNByUr','_injector','4109292Lhixzv','@univerjs/sheets','registerCommand','DirectExportIcon','ICommandService','onStarting','symbol','BUTTON','SUBITEMS','2133162mjqHEL','defineProperty','getCurrentRangeDisable$','forEach','19608CVIwFD','IMenuManagerService','MenuItemType','UniverSheetsUi','Plugin','@univerjs-pro/exchange-client','exchange.download','_commandService','getMenuHiddenObservable','setConfig','50450SdfWEz','ImportXLSXOperation','@univerjs/ui','_menuManagerService','UniverInstanceType','UniverUi','amd','@univerjs/sheets-ui','1bJeBhU','396YFGQKu','SHEET_EXCHANGE_CLIENT_PLUGIN','Inject','exchange.file'];_0x9950=function(){return _0x3d206f;};return _0x9950();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.12.0-nightly.202511220628",
3
+ "version": "0.12.1-nightly.202511221011",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -42,17 +42,17 @@
42
42
  "lib"
43
43
  ],
44
44
  "dependencies": {
45
- "@univerjs-pro/exchange-client": "0.12.0-nightly.202511220628",
46
- "@univerjs/sheets-ui": "0.12.0-nightly.202511220628",
47
- "@univerjs/core": "0.12.0-nightly.202511220628",
48
- "@univerjs/sheets": "0.12.0-nightly.202511220628",
49
- "@univerjs/ui": "0.12.0-nightly.202511220628"
45
+ "@univerjs-pro/exchange-client": "0.12.1-nightly.202511221011",
46
+ "@univerjs/sheets": "0.12.1-nightly.202511221011",
47
+ "@univerjs/ui": "0.12.1-nightly.202511221011",
48
+ "@univerjs/sheets-ui": "0.12.1-nightly.202511221011",
49
+ "@univerjs/core": "0.12.1-nightly.202511221011"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",
53
53
  "vite": "^7.2.2",
54
54
  "vitest": "^3.2.4",
55
- "@univerjs-infra/shared": "0.12.0"
55
+ "@univerjs-infra/shared": "0.12.1"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run",