@univerjs-pro/sheets-exchange-client 0.11.0-nightly.202511151013 → 0.12.0-nightly.202511220628

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 _0x3db5d1=_0xa46f;function _0x2c45(){const _0x2c0cef=['_config','5687GVKMqI','_configService','MenuItemType','merge','exchange-client.operation.import-xlsx','WorkbookExportPermission','forEach','registerCommand','OTHERS','BUTTON','RibbonStartGroup','IMenuManagerService','_initCommands','_commandService','length','getMenuHiddenObservable','ICommandService','IExchangeOperateService','IConfigService','_initMenus','_injector','sheets-exchange-client.config','type','sheets-exchange-client.operation.exchange','SHEET_EXCHANGE_CLIENT_PLUGIN','OPERATION','UNIVER_SHEET','get','defineProperty','UniverExchangeClientPlugin','Inject','Disposable','1054503WxTWtD','add','getCurrentRangeDisable$','setConfig','SUBITEMS','_menuManagerService','unit','symbol','24LSAyob','search','337727BrkAgA','Module','13512SULTAQ','40XaWYmA','ExportIcon','importXLSXToSnapshot','CommandType','UniverSheetsExchangeClientPlugin','Injector','Plugin','menu','DependentOn','disposeWithMe','getOwnPropertyDescriptor','exchange-client.operation.export-xlsx','12BtRBEh','1608509dzInXU','492920uZeepX','2736395XTdYme','UniverInstanceType','importXLSXToUnitId','2442386uggTcu','70xiMoSd','DirectExportIcon','FolderIcon','toStringTag','exportXLSXBySnapshot'];_0x2c45=function(){return _0x2c0cef;};return _0x2c45();}(function(_0x2ea1f3,_0x36b147){const _0x52dd54=_0xa46f,_0x4d623d=_0x2ea1f3();while(!![]){try{const _0x39fc45=-parseInt(_0x52dd54(0xc6))/0x1+-parseInt(_0x52dd54(0xdb))/0x2+parseInt(_0x52dd54(0xc4))/0x3*(parseInt(_0x52dd54(0xd7))/0x4)+-parseInt(_0x52dd54(0xd8))/0x5*(-parseInt(_0x52dd54(0xd5))/0x6)+parseInt(_0x52dd54(0xd6))/0x7*(-parseInt(_0x52dd54(0xc9))/0x8)+parseInt(_0x52dd54(0xbc))/0x9*(parseInt(_0x52dd54(0xdc))/0xa)+parseInt(_0x52dd54(0x9c))/0xb*(parseInt(_0x52dd54(0xc8))/0xc);if(_0x39fc45===_0x36b147)break;else _0x4d623d['push'](_0x4d623d['shift']());}catch(_0x13a741){_0x4d623d['push'](_0x4d623d['shift']());}}}(_0x2c45,0xbd2c6));Object[_0x3db5d1(0xb8)](exports,Symbol[_0x3db5d1(0xdf)],{'value':_0x3db5d1(0xc7)});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':_0x3db5d1(0xa0),'type':i[_0x3db5d1(0xcc)]['OPERATION'],'handler':async _0x4f122f=>{const _0x1ab03d=_0x3db5d1,_0x2904eb=_0x4f122f[_0x1ab03d(0xb7)](g['IExchangeOperateService']);return new URLSearchParams(location[_0x1ab03d(0xc5)])[_0x1ab03d(0xb7)](_0x1ab03d(0xc2))?_0x2904eb[_0x1ab03d(0xda)]():_0x2904eb[_0x1ab03d(0xcb)](),!0x0;}},p={'id':_0x3db5d1(0xd4),'type':i[_0x3db5d1(0xcc)][_0x3db5d1(0xb5)],'handler':async _0x697543=>{const _0x3286c6=_0x3db5d1,_0x340bef=_0x697543[_0x3286c6(0xb7)](g[_0x3286c6(0xad)]);return new URLSearchParams(location[_0x3286c6(0xc5)])[_0x3286c6(0xb7)](_0x3286c6(0xc2))?_0x340bef['exportXLSXByUnitId']():_0x340bef[_0x3286c6(0xe0)](),!0x0;}},v=_0x3db5d1(0xb1),h={},S=_0x3db5d1(0xb3);function x(_0x33e8da){const _0x504bd7=_0x3db5d1;return{'id':S,'type':c[_0x504bd7(0x9e)][_0x504bd7(0xc0)],'icon':_0x504bd7(0xdd),'tooltip':'exchange.file','hidden$':c[_0x504bd7(0xab)](_0x33e8da,i[_0x504bd7(0xd9)][_0x504bd7(0xb6)]),'disabled$':I[_0x504bd7(0xbe)](_0x33e8da,{'workbookTypes':[_[_0x504bd7(0xa1)]]})};}function P(){const _0x5cef9c=_0x3db5d1;return{'id':l['id'],'type':c['MenuItemType'][_0x5cef9c(0xa5)],'title':'exchange.upload','icon':_0x5cef9c(0xde)};}function C(){const _0x506636=_0x3db5d1;return{'id':p['id'],'type':c[_0x506636(0x9e)]['BUTTON'],'title':'exchange.download','icon':_0x506636(0xca)};}const f={[c[_0x3db5d1(0xa6)][_0x3db5d1(0xa4)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x578bc2,_0x3dcd3b,_0x4eb926,_0x23571a)=>{const _0x589be1=_0x3db5d1;for(var _0xb210ab=_0x23571a>0x1?void 0x0:_0x23571a?T(_0x3dcd3b,_0x4eb926):_0x3dcd3b,_0x489e5f=_0x578bc2[_0x589be1(0xaa)]-0x1,_0x412ca2;_0x489e5f>=0x0;_0x489e5f--)(_0x412ca2=_0x578bc2[_0x489e5f])&&(_0xb210ab=_0x412ca2(_0xb210ab)||_0xb210ab);return _0xb210ab;},m=(_0x537dc9,_0x99be1b)=>(_0x31e04b,_0x4ceb3a)=>_0x99be1b(_0x31e04b,_0x4ceb3a,_0x537dc9);let u=class extends i[_0x3db5d1(0xbb)]{constructor(_0x30ea56,_0xf317f8){const _0x5752bb=_0x3db5d1;super(),this[_0x5752bb(0xa9)]=_0x30ea56,this[_0x5752bb(0xc1)]=_0xf317f8,this['_initCommands'](),this[_0x5752bb(0xaf)]();}[_0x3db5d1(0xa8)](){const _0xa9bea7=_0x3db5d1;[l,p][_0xa9bea7(0xa2)](_0x92fcbb=>{const _0x6411b3=_0xa9bea7;this[_0x6411b3(0xd2)](this[_0x6411b3(0xa9)][_0x6411b3(0xa3)](_0x92fcbb));});}[_0x3db5d1(0xaf)](){const _0xcf8847=_0x3db5d1;this[_0xcf8847(0xc1)]['mergeMenu'](f);}};u=y([m(0x0,i[_0x3db5d1(0xac)]),m(0x1,c[_0x3db5d1(0xa7)])],u);function _0xa46f(_0x1fefcd,_0x3818a4){const _0x2c4576=_0x2c45();return _0xa46f=function(_0xa46fc6,_0x2b5f43){_0xa46fc6=_0xa46fc6-0x9c;let _0x9546cd=_0x2c4576[_0xa46fc6];return _0x9546cd;},_0xa46f(_0x1fefcd,_0x3818a4);}var O=Object[_0x3db5d1(0xb8)],U=Object[_0x3db5d1(0xd3)],X=(_0x5d6429,_0x1400fc,_0x21250b)=>_0x1400fc in _0x5d6429?O(_0x5d6429,_0x1400fc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21250b}):_0x5d6429[_0x1400fc]=_0x21250b,N=(_0x14547d,_0x4bb629,_0x345a7c,_0x291d9a)=>{const _0x8ef1fd=_0x3db5d1;for(var _0x5f4f83=_0x291d9a>0x1?void 0x0:_0x291d9a?U(_0x4bb629,_0x345a7c):_0x4bb629,_0xff257c=_0x14547d[_0x8ef1fd(0xaa)]-0x1,_0x1a72d9;_0xff257c>=0x0;_0xff257c--)(_0x1a72d9=_0x14547d[_0xff257c])&&(_0x5f4f83=_0x1a72d9(_0x5f4f83)||_0x5f4f83);return _0x5f4f83;},d=(_0x5abbf5,_0x941ce9)=>(_0xd5d976,_0x474317)=>_0x941ce9(_0xd5d976,_0x474317,_0x5abbf5),E=(_0x397e32,_0xd2c1e9,_0x5641d5)=>X(_0x397e32,typeof _0xd2c1e9!=_0x3db5d1(0xc3)?_0xd2c1e9+'':_0xd2c1e9,_0x5641d5);const L=_0x3db5d1(0xb4);exports[_0x3db5d1(0xcd)]=class extends i[_0x3db5d1(0xcf)]{constructor(_0x25a705=h,_0x50ca7b,_0x4b21d0){const _0x231fd7=_0x3db5d1;super(),this[_0x231fd7(0xe1)]=_0x25a705,this[_0x231fd7(0xb0)]=_0x50ca7b,this[_0x231fd7(0x9d)]=_0x4b21d0;const {menu:_0x3c1c9d,..._0x95c53b}=i[_0x231fd7(0x9f)]({},h,this['_config']);_0x3c1c9d&&this[_0x231fd7(0x9d)][_0x231fd7(0xbf)](_0x231fd7(0xd0),_0x3c1c9d,{'merge':!0x0}),this[_0x231fd7(0x9d)][_0x231fd7(0xbf)](v,_0x95c53b);}['onStarting'](){const _0x1ae8a4=_0x3db5d1;[[u]][_0x1ae8a4(0xa2)](_0x57312b=>this[_0x1ae8a4(0xb0)][_0x1ae8a4(0xbd)](_0x57312b));}['onReady'](){const _0x243655=_0x3db5d1;this[_0x243655(0xb0)][_0x243655(0xb7)](u);}},E(exports[_0x3db5d1(0xcd)],'pluginName',L),E(exports[_0x3db5d1(0xcd)],_0x3db5d1(0xb2),i[_0x3db5d1(0xd9)][_0x3db5d1(0xb6)]),exports[_0x3db5d1(0xcd)]=N([i[_0x3db5d1(0xd1)](g[_0x3db5d1(0xb9)]),d(0x1,i[_0x3db5d1(0xba)](i[_0x3db5d1(0xce)])),d(0x2,i[_0x3db5d1(0xae)])],exports['UniverSheetsExchangeClientPlugin']),exports['ExportXLSXOperation']=p,exports['ImportXLSXOperation']=l;
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;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3f0c82=_0x1fbc;(function(_0x4f9158,_0xc11724){const _0x47f664=_0x1fbc,_0x49e2fe=_0x4f9158();while(!![]){try{const _0x281125=-parseInt(_0x47f664(0x1ae))/0x1*(parseInt(_0x47f664(0x1c7))/0x2)+parseInt(_0x47f664(0x1d8))/0x3+parseInt(_0x47f664(0x1c0))/0x4+parseInt(_0x47f664(0x1ad))/0x5*(-parseInt(_0x47f664(0x1d7))/0x6)+parseInt(_0x47f664(0x1d0))/0x7+-parseInt(_0x47f664(0x1d2))/0x8+parseInt(_0x47f664(0x1cf))/0x9*(parseInt(_0x47f664(0x1c8))/0xa);if(_0x281125===_0xc11724)break;else _0x49e2fe['push'](_0x49e2fe['shift']());}catch(_0x4fd60e){_0x49e2fe['push'](_0x49e2fe['shift']());}}}(_0x177c,0x5f09f));import{IExchangeOperateService as _0x153e80,UniverExchangeClientPlugin as _0x3731d3}from'@univerjs-pro/exchange-client';import{CommandType as _0x241c02,UniverInstanceType as _0x152e55,Disposable as _0x2652b4,ICommandService as _0x264723,DependentOn as _0xd6bc3d,Inject as _0x3d5b2d,Injector as _0xa972c2,IConfigService as _0xd42323,Plugin as _0x144904,merge as _0x5be981}from'@univerjs/core';import{MenuItemType as _0x216a26,getMenuHiddenObservable as _0x5aca1c,RibbonStartGroup as _0x50d750,IMenuManagerService as _0x481310}from'@univerjs/ui';import{WorkbookExportPermission as _0x4ee434}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0xa433ac}from'@univerjs/sheets-ui';const p={'id':_0x3f0c82(0x1c1),'type':_0x241c02[_0x3f0c82(0x1b6)],'handler':async _0x446af8=>{const _0x460774=_0x3f0c82,_0x54ab9d=_0x446af8[_0x460774(0x1d6)](_0x153e80);return new URLSearchParams(location[_0x460774(0x1c4)])[_0x460774(0x1d6)](_0x460774(0x1b8))?_0x54ab9d[_0x460774(0x1c2)]():_0x54ab9d[_0x460774(0x1b3)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x241c02[_0x3f0c82(0x1b6)],'handler':async _0x1d63b6=>{const _0x515b5b=_0x3f0c82,_0x345168=_0x1d63b6[_0x515b5b(0x1d6)](_0x153e80);return new URLSearchParams(location['search'])['get']('unit')?_0x345168[_0x515b5b(0x1d1)]():_0x345168[_0x515b5b(0x1c5)](),!0x0;}},H=_0x3f0c82(0x1d9),l={},S=_0x3f0c82(0x1cd);function R(_0x4cb089){const _0x56572b=_0x3f0c82;return{'id':S,'type':_0x216a26[_0x56572b(0x1d5)],'icon':'DirectExportIcon','tooltip':_0x56572b(0x1b4),'hidden$':_0x5aca1c(_0x4cb089,_0x152e55[_0x56572b(0x1ce)]),'disabled$':_0xa433ac(_0x4cb089,{'workbookTypes':[_0x4ee434]})};}function _0x177c(){const _0x20b150=['exchange.upload','setConfig','2427652anplKO','exchange-client.operation.import-xlsx','importXLSXToUnitId','symbol','search','exportXLSXBySnapshot','_initMenus','46pYzTsQ','20WCCrBZ','_initCommands','_menuManagerService','registerCommand','OTHERS','sheets-exchange-client.operation.exchange','UNIVER_SHEET','1118862NoLvuz','379204koxsii','exportXLSXByUnitId','2236776OLeQGu','_commandService','menu','SUBITEMS','get','1364394PusPkC','424377XztTtI','sheets-exchange-client.config','forEach','onStarting','5KyBQzD','6735pFZZHm','SHEET_EXCHANGE_CLIENT_PLUGIN','_configService','_injector','BUTTON','importXLSXToSnapshot','exchange.file','defineProperty','OPERATION','getOwnPropertyDescriptor','unit','_config','length','mergeMenu','add','type'];_0x177c=function(){return _0x20b150;};return _0x177c();}function w(){const _0x5b6e5c=_0x3f0c82;return{'id':p['id'],'type':_0x216a26[_0x5b6e5c(0x1b2)],'title':_0x5b6e5c(0x1be),'icon':'FolderIcon'};}function D(){const _0x1fcece=_0x3f0c82;return{'id':u['id'],'type':_0x216a26[_0x1fcece(0x1b2)],'title':'exchange.download','icon':'ExportIcon'};}function _0x1fbc(_0x346ff0,_0x4fca90){const _0x177cf0=_0x177c();return _0x1fbc=function(_0x1fbce2,_0x593cd2){_0x1fbce2=_0x1fbce2-0x1ad;let _0xa873f3=_0x177cf0[_0x1fbce2];return _0xa873f3;},_0x1fbc(_0x346ff0,_0x4fca90);}const F={[_0x50d750[_0x3f0c82(0x1cc)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x3f0c82(0x1b7)],A=(_0x3b1d0d,_0x84c4da,_0x280f7d,_0x1112b5)=>{const _0x177e9d=_0x3f0c82;for(var _0x43347c=_0x1112b5>0x1?void 0x0:_0x1112b5?G(_0x84c4da,_0x280f7d):_0x84c4da,_0x3a45e5=_0x3b1d0d[_0x177e9d(0x1ba)]-0x1,_0x435662;_0x3a45e5>=0x0;_0x3a45e5--)(_0x435662=_0x3b1d0d[_0x3a45e5])&&(_0x43347c=_0x435662(_0x43347c)||_0x43347c);return _0x43347c;},d=(_0x491bd5,_0x448b5c)=>(_0x57446a,_0x5059ee)=>_0x448b5c(_0x57446a,_0x5059ee,_0x491bd5);let c=class extends _0x2652b4{constructor(_0x48de77,_0x42d95c){const _0x252e49=_0x3f0c82;super(),this['_commandService']=_0x48de77,this[_0x252e49(0x1ca)]=_0x42d95c,this[_0x252e49(0x1c9)](),this['_initMenus']();}[_0x3f0c82(0x1c9)](){const _0x2f04de=_0x3f0c82;[p,u][_0x2f04de(0x1da)](_0x2894c4=>{const _0x5da9c4=_0x2f04de;this['disposeWithMe'](this[_0x5da9c4(0x1d3)][_0x5da9c4(0x1cb)](_0x2894c4));});}[_0x3f0c82(0x1c6)](){const _0x229cca=_0x3f0c82;this['_menuManagerService'][_0x229cca(0x1bb)](F);}};c=A([d(0x0,_0x264723),d(0x1,_0x481310)],c);var j=Object[_0x3f0c82(0x1b5)],B=Object['getOwnPropertyDescriptor'],$=(_0x11a4bb,_0x6d0863,_0x23cfbb)=>_0x6d0863 in _0x11a4bb?j(_0x11a4bb,_0x6d0863,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23cfbb}):_0x11a4bb[_0x6d0863]=_0x23cfbb,V=(_0x538ff3,_0x2c9cc0,_0x3400ae,_0x13124e)=>{const _0x820cb6=_0x3f0c82;for(var _0x4c10ee=_0x13124e>0x1?void 0x0:_0x13124e?B(_0x2c9cc0,_0x3400ae):_0x2c9cc0,_0x2f5959=_0x538ff3[_0x820cb6(0x1ba)]-0x1,_0x42ae39;_0x2f5959>=0x0;_0x2f5959--)(_0x42ae39=_0x538ff3[_0x2f5959])&&(_0x4c10ee=_0x42ae39(_0x4c10ee)||_0x4c10ee);return _0x4c10ee;},_=(_0x353010,_0x5da422)=>(_0x4dbac8,_0x3fcab0)=>_0x5da422(_0x4dbac8,_0x3fcab0,_0x353010),I=(_0xf8e4f1,_0x395ba8,_0x13861f)=>$(_0xf8e4f1,typeof _0x395ba8!=_0x3f0c82(0x1c3)?_0x395ba8+'':_0x395ba8,_0x13861f);const W=_0x3f0c82(0x1af);let s=class extends _0x144904{constructor(_0x476e91=l,_0xdb2e9a,_0x1ed3bc){const _0x1950f5=_0x3f0c82;super(),this[_0x1950f5(0x1b9)]=_0x476e91,this[_0x1950f5(0x1b1)]=_0xdb2e9a,this['_configService']=_0x1ed3bc;const {menu:_0x369e95,..._0x502c12}=_0x5be981({},l,this[_0x1950f5(0x1b9)]);_0x369e95&&this[_0x1950f5(0x1b0)][_0x1950f5(0x1bf)](_0x1950f5(0x1d4),_0x369e95,{'merge':!0x0}),this[_0x1950f5(0x1b0)]['setConfig'](H,_0x502c12);}[_0x3f0c82(0x1db)](){const _0x16dec5=_0x3f0c82;[[c]][_0x16dec5(0x1da)](_0x5cd8c9=>this[_0x16dec5(0x1b1)][_0x16dec5(0x1bc)](_0x5cd8c9));}['onReady'](){const _0x3ff223=_0x3f0c82;this[_0x3ff223(0x1b1)][_0x3ff223(0x1d6)](c);}};I(s,'pluginName',W),I(s,_0x3f0c82(0x1bd),_0x152e55[_0x3f0c82(0x1ce)]),s=V([_0xd6bc3d(_0x3731d3),_(0x1,_0x3d5b2d(_0xa972c2)),_(0x2,_0xd42323)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
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};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3f0c82=_0x1fbc;(function(_0x4f9158,_0xc11724){const _0x47f664=_0x1fbc,_0x49e2fe=_0x4f9158();while(!![]){try{const _0x281125=-parseInt(_0x47f664(0x1ae))/0x1*(parseInt(_0x47f664(0x1c7))/0x2)+parseInt(_0x47f664(0x1d8))/0x3+parseInt(_0x47f664(0x1c0))/0x4+parseInt(_0x47f664(0x1ad))/0x5*(-parseInt(_0x47f664(0x1d7))/0x6)+parseInt(_0x47f664(0x1d0))/0x7+-parseInt(_0x47f664(0x1d2))/0x8+parseInt(_0x47f664(0x1cf))/0x9*(parseInt(_0x47f664(0x1c8))/0xa);if(_0x281125===_0xc11724)break;else _0x49e2fe['push'](_0x49e2fe['shift']());}catch(_0x4fd60e){_0x49e2fe['push'](_0x49e2fe['shift']());}}}(_0x177c,0x5f09f));import{IExchangeOperateService as _0x153e80,UniverExchangeClientPlugin as _0x3731d3}from'@univerjs-pro/exchange-client';import{CommandType as _0x241c02,UniverInstanceType as _0x152e55,Disposable as _0x2652b4,ICommandService as _0x264723,DependentOn as _0xd6bc3d,Inject as _0x3d5b2d,Injector as _0xa972c2,IConfigService as _0xd42323,Plugin as _0x144904,merge as _0x5be981}from'@univerjs/core';import{MenuItemType as _0x216a26,getMenuHiddenObservable as _0x5aca1c,RibbonStartGroup as _0x50d750,IMenuManagerService as _0x481310}from'@univerjs/ui';import{WorkbookExportPermission as _0x4ee434}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0xa433ac}from'@univerjs/sheets-ui';const p={'id':_0x3f0c82(0x1c1),'type':_0x241c02[_0x3f0c82(0x1b6)],'handler':async _0x446af8=>{const _0x460774=_0x3f0c82,_0x54ab9d=_0x446af8[_0x460774(0x1d6)](_0x153e80);return new URLSearchParams(location[_0x460774(0x1c4)])[_0x460774(0x1d6)](_0x460774(0x1b8))?_0x54ab9d[_0x460774(0x1c2)]():_0x54ab9d[_0x460774(0x1b3)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x241c02[_0x3f0c82(0x1b6)],'handler':async _0x1d63b6=>{const _0x515b5b=_0x3f0c82,_0x345168=_0x1d63b6[_0x515b5b(0x1d6)](_0x153e80);return new URLSearchParams(location['search'])['get']('unit')?_0x345168[_0x515b5b(0x1d1)]():_0x345168[_0x515b5b(0x1c5)](),!0x0;}},H=_0x3f0c82(0x1d9),l={},S=_0x3f0c82(0x1cd);function R(_0x4cb089){const _0x56572b=_0x3f0c82;return{'id':S,'type':_0x216a26[_0x56572b(0x1d5)],'icon':'DirectExportIcon','tooltip':_0x56572b(0x1b4),'hidden$':_0x5aca1c(_0x4cb089,_0x152e55[_0x56572b(0x1ce)]),'disabled$':_0xa433ac(_0x4cb089,{'workbookTypes':[_0x4ee434]})};}function _0x177c(){const _0x20b150=['exchange.upload','setConfig','2427652anplKO','exchange-client.operation.import-xlsx','importXLSXToUnitId','symbol','search','exportXLSXBySnapshot','_initMenus','46pYzTsQ','20WCCrBZ','_initCommands','_menuManagerService','registerCommand','OTHERS','sheets-exchange-client.operation.exchange','UNIVER_SHEET','1118862NoLvuz','379204koxsii','exportXLSXByUnitId','2236776OLeQGu','_commandService','menu','SUBITEMS','get','1364394PusPkC','424377XztTtI','sheets-exchange-client.config','forEach','onStarting','5KyBQzD','6735pFZZHm','SHEET_EXCHANGE_CLIENT_PLUGIN','_configService','_injector','BUTTON','importXLSXToSnapshot','exchange.file','defineProperty','OPERATION','getOwnPropertyDescriptor','unit','_config','length','mergeMenu','add','type'];_0x177c=function(){return _0x20b150;};return _0x177c();}function w(){const _0x5b6e5c=_0x3f0c82;return{'id':p['id'],'type':_0x216a26[_0x5b6e5c(0x1b2)],'title':_0x5b6e5c(0x1be),'icon':'FolderIcon'};}function D(){const _0x1fcece=_0x3f0c82;return{'id':u['id'],'type':_0x216a26[_0x1fcece(0x1b2)],'title':'exchange.download','icon':'ExportIcon'};}function _0x1fbc(_0x346ff0,_0x4fca90){const _0x177cf0=_0x177c();return _0x1fbc=function(_0x1fbce2,_0x593cd2){_0x1fbce2=_0x1fbce2-0x1ad;let _0xa873f3=_0x177cf0[_0x1fbce2];return _0xa873f3;},_0x1fbc(_0x346ff0,_0x4fca90);}const F={[_0x50d750[_0x3f0c82(0x1cc)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x3f0c82(0x1b7)],A=(_0x3b1d0d,_0x84c4da,_0x280f7d,_0x1112b5)=>{const _0x177e9d=_0x3f0c82;for(var _0x43347c=_0x1112b5>0x1?void 0x0:_0x1112b5?G(_0x84c4da,_0x280f7d):_0x84c4da,_0x3a45e5=_0x3b1d0d[_0x177e9d(0x1ba)]-0x1,_0x435662;_0x3a45e5>=0x0;_0x3a45e5--)(_0x435662=_0x3b1d0d[_0x3a45e5])&&(_0x43347c=_0x435662(_0x43347c)||_0x43347c);return _0x43347c;},d=(_0x491bd5,_0x448b5c)=>(_0x57446a,_0x5059ee)=>_0x448b5c(_0x57446a,_0x5059ee,_0x491bd5);let c=class extends _0x2652b4{constructor(_0x48de77,_0x42d95c){const _0x252e49=_0x3f0c82;super(),this['_commandService']=_0x48de77,this[_0x252e49(0x1ca)]=_0x42d95c,this[_0x252e49(0x1c9)](),this['_initMenus']();}[_0x3f0c82(0x1c9)](){const _0x2f04de=_0x3f0c82;[p,u][_0x2f04de(0x1da)](_0x2894c4=>{const _0x5da9c4=_0x2f04de;this['disposeWithMe'](this[_0x5da9c4(0x1d3)][_0x5da9c4(0x1cb)](_0x2894c4));});}[_0x3f0c82(0x1c6)](){const _0x229cca=_0x3f0c82;this['_menuManagerService'][_0x229cca(0x1bb)](F);}};c=A([d(0x0,_0x264723),d(0x1,_0x481310)],c);var j=Object[_0x3f0c82(0x1b5)],B=Object['getOwnPropertyDescriptor'],$=(_0x11a4bb,_0x6d0863,_0x23cfbb)=>_0x6d0863 in _0x11a4bb?j(_0x11a4bb,_0x6d0863,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23cfbb}):_0x11a4bb[_0x6d0863]=_0x23cfbb,V=(_0x538ff3,_0x2c9cc0,_0x3400ae,_0x13124e)=>{const _0x820cb6=_0x3f0c82;for(var _0x4c10ee=_0x13124e>0x1?void 0x0:_0x13124e?B(_0x2c9cc0,_0x3400ae):_0x2c9cc0,_0x2f5959=_0x538ff3[_0x820cb6(0x1ba)]-0x1,_0x42ae39;_0x2f5959>=0x0;_0x2f5959--)(_0x42ae39=_0x538ff3[_0x2f5959])&&(_0x4c10ee=_0x42ae39(_0x4c10ee)||_0x4c10ee);return _0x4c10ee;},_=(_0x353010,_0x5da422)=>(_0x4dbac8,_0x3fcab0)=>_0x5da422(_0x4dbac8,_0x3fcab0,_0x353010),I=(_0xf8e4f1,_0x395ba8,_0x13861f)=>$(_0xf8e4f1,typeof _0x395ba8!=_0x3f0c82(0x1c3)?_0x395ba8+'':_0x395ba8,_0x13861f);const W=_0x3f0c82(0x1af);let s=class extends _0x144904{constructor(_0x476e91=l,_0xdb2e9a,_0x1ed3bc){const _0x1950f5=_0x3f0c82;super(),this[_0x1950f5(0x1b9)]=_0x476e91,this[_0x1950f5(0x1b1)]=_0xdb2e9a,this['_configService']=_0x1ed3bc;const {menu:_0x369e95,..._0x502c12}=_0x5be981({},l,this[_0x1950f5(0x1b9)]);_0x369e95&&this[_0x1950f5(0x1b0)][_0x1950f5(0x1bf)](_0x1950f5(0x1d4),_0x369e95,{'merge':!0x0}),this[_0x1950f5(0x1b0)]['setConfig'](H,_0x502c12);}[_0x3f0c82(0x1db)](){const _0x16dec5=_0x3f0c82;[[c]][_0x16dec5(0x1da)](_0x5cd8c9=>this[_0x16dec5(0x1b1)][_0x16dec5(0x1bc)](_0x5cd8c9));}['onReady'](){const _0x3ff223=_0x3f0c82;this[_0x3ff223(0x1b1)][_0x3ff223(0x1d6)](c);}};I(s,'pluginName',W),I(s,_0x3f0c82(0x1bd),_0x152e55[_0x3f0c82(0x1ce)]),s=V([_0xd6bc3d(_0x3731d3),_(0x1,_0x3d5b2d(_0xa972c2)),_(0x2,_0xd42323)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
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};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x1a2c(_0xdf41ae,_0x30dc2e){const _0x59649f=_0x5964();return _0x1a2c=function(_0x1a2c52,_0x4f5a20){_0x1a2c52=_0x1a2c52-0x123;let _0x497321=_0x59649f[_0x1a2c52];return _0x497321;},_0x1a2c(_0xdf41ae,_0x30dc2e);}(function(_0x10f1bd,_0x1c5df2){const _0x28942e=_0x1a2c,_0x21a7ea=_0x10f1bd();while(!![]){try{const _0x3447e6=-parseInt(_0x28942e(0x134))/0x1+parseInt(_0x28942e(0x146))/0x2+parseInt(_0x28942e(0x145))/0x3+parseInt(_0x28942e(0x128))/0x4+-parseInt(_0x28942e(0x159))/0x5+-parseInt(_0x28942e(0x123))/0x6*(parseInt(_0x28942e(0x154))/0x7)+parseInt(_0x28942e(0x15d))/0x8*(-parseInt(_0x28942e(0x127))/0x9);if(_0x3447e6===_0x1c5df2)break;else _0x21a7ea['push'](_0x21a7ea['shift']());}catch(_0x4de4c0){_0x21a7ea['push'](_0x21a7ea['shift']());}}}(_0x5964,0x30e4d),function(_0x17d775,_0x488e1e){const _0x3595c8=_0x1a2c;typeof exports==_0x3595c8(0x136)&&typeof module<'u'?_0x488e1e(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x3595c8(0x147)&&define['amd']?define([_0x3595c8(0x12b),'@univerjs-pro/exchange-client','@univerjs/core',_0x3595c8(0x152),_0x3595c8(0x168),'@univerjs/sheets-ui'],_0x488e1e):(_0x17d775=typeof globalThis<'u'?globalThis:_0x17d775||self,_0x488e1e(_0x17d775[_0x3595c8(0x155)]={},_0x17d775[_0x3595c8(0x13c)],_0x17d775[_0x3595c8(0x163)],_0x17d775[_0x3595c8(0x148)],_0x17d775['UniverSheets'],_0x17d775[_0x3595c8(0x153)]));}(this,function(_0x4aced6,_0x3d38a6,_0x2ae101,_0x4d2862,_0x1ba5a0,_0x37aa93){'use strict';const _0xad953b=_0x1a2c;const _0x389f5b={'id':_0xad953b(0x14b),'type':_0x2ae101[_0xad953b(0x144)][_0xad953b(0x135)],'handler':async _0x8205da=>{const _0x42f37a=_0xad953b,_0x994054=_0x8205da[_0x42f37a(0x130)](_0x3d38a6[_0x42f37a(0x15c)]);return new URLSearchParams(location[_0x42f37a(0x124)])[_0x42f37a(0x130)](_0x42f37a(0x132))?_0x994054['importXLSXToUnitId']():_0x994054[_0x42f37a(0x165)](),!0x0;}},_0x22038b={'id':_0xad953b(0x142),'type':_0x2ae101[_0xad953b(0x144)][_0xad953b(0x135)],'handler':async _0x4a642a=>{const _0x5105c8=_0xad953b,_0x1060a3=_0x4a642a['get'](_0x3d38a6['IExchangeOperateService']);return new URLSearchParams(location[_0x5105c8(0x124)])['get'](_0x5105c8(0x132))?_0x1060a3['exportXLSXByUnitId']():_0x1060a3[_0x5105c8(0x140)](),!0x0;}},_0x47b893=_0xad953b(0x131),_0x3d957a={},_0x1de9e9=_0xad953b(0x151);function _0x3bfffc(_0x40b27c){const _0x1b2511=_0xad953b;return{'id':_0x1de9e9,'type':_0x4d2862['MenuItemType'][_0x1b2511(0x129)],'icon':'DirectExportIcon','tooltip':_0x1b2511(0x167),'hidden$':_0x4d2862['getMenuHiddenObservable'](_0x40b27c,_0x2ae101[_0x1b2511(0x161)][_0x1b2511(0x158)]),'disabled$':_0x37aa93['getCurrentRangeDisable$'](_0x40b27c,{'workbookTypes':[_0x1ba5a0[_0x1b2511(0x133)]]})};}function _0x53df45(){const _0x457a5d=_0xad953b;return{'id':_0x389f5b['id'],'type':_0x4d2862[_0x457a5d(0x143)]['BUTTON'],'title':'exchange.upload','icon':_0x457a5d(0x137)};}function _0x4c9438(){const _0x13e057=_0xad953b;return{'id':_0x22038b['id'],'type':_0x4d2862[_0x13e057(0x143)][_0x13e057(0x12f)],'title':'exchange.download','icon':_0x13e057(0x138)};}const _0x27a46c={[_0x4d2862['RibbonStartGroup']['OTHERS']]:{[_0x1de9e9]:{'order':0.3,'menuItemFactory':_0x3bfffc,[_0x389f5b['id']]:{'order':0x0,'menuItemFactory':_0x53df45},[_0x22038b['id']]:{'order':0x1,'menuItemFactory':_0x4c9438}}}};var _0x2b9411=Object[_0xad953b(0x15a)],_0x5947a7=(_0x4b5736,_0x556d09,_0x4823db,_0xef5307)=>{const _0x536d10=_0xad953b;for(var _0x1c36ce=_0xef5307>0x1?void 0x0:_0xef5307?_0x2b9411(_0x556d09,_0x4823db):_0x556d09,_0x3ffac3=_0x4b5736[_0x536d10(0x125)]-0x1,_0x4e2dde;_0x3ffac3>=0x0;_0x3ffac3--)(_0x4e2dde=_0x4b5736[_0x3ffac3])&&(_0x1c36ce=_0x4e2dde(_0x1c36ce)||_0x1c36ce);return _0x1c36ce;},_0x320270=(_0x38baf9,_0x388c50)=>(_0x21127b,_0x2009e8)=>_0x388c50(_0x21127b,_0x2009e8,_0x38baf9);let _0x559f21=class extends _0x2ae101[_0xad953b(0x13e)]{constructor(_0x400e93,_0x4897f7){const _0x4f5302=_0xad953b;super(),this['_commandService']=_0x400e93,this['_menuManagerService']=_0x4897f7,this['_initCommands'](),this[_0x4f5302(0x164)]();}[_0xad953b(0x149)](){const _0x43c6f0=_0xad953b;[_0x389f5b,_0x22038b][_0x43c6f0(0x162)](_0x117170=>{const _0xd1dde5=_0x43c6f0;this[_0xd1dde5(0x15f)](this[_0xd1dde5(0x150)][_0xd1dde5(0x157)](_0x117170));});}[_0xad953b(0x164)](){const _0x40c679=_0xad953b;this[_0x40c679(0x156)][_0x40c679(0x13f)](_0x27a46c);}};_0x559f21=_0x5947a7([_0x320270(0x0,_0x2ae101['ICommandService']),_0x320270(0x1,_0x4d2862[_0xad953b(0x12e)])],_0x559f21);var _0x232b67=Object[_0xad953b(0x15b)],_0x2e54e9=Object[_0xad953b(0x15a)],_0x30817a=(_0x599b32,_0x268986,_0x47662c)=>_0x268986 in _0x599b32?_0x232b67(_0x599b32,_0x268986,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x47662c}):_0x599b32[_0x268986]=_0x47662c,_0x1a6877=(_0x5a6633,_0x4cb09a,_0xc91ca2,_0x50c8db)=>{const _0x1304ae=_0xad953b;for(var _0x42afec=_0x50c8db>0x1?void 0x0:_0x50c8db?_0x2e54e9(_0x4cb09a,_0xc91ca2):_0x4cb09a,_0x5133a8=_0x5a6633[_0x1304ae(0x125)]-0x1,_0x49f0f3;_0x5133a8>=0x0;_0x5133a8--)(_0x49f0f3=_0x5a6633[_0x5133a8])&&(_0x42afec=_0x49f0f3(_0x42afec)||_0x42afec);return _0x42afec;},_0x5b6a0d=(_0x1f2a40,_0x13186b)=>(_0x6d37af,_0x2ef290)=>_0x13186b(_0x6d37af,_0x2ef290,_0x1f2a40),_0x1b554a=(_0x45ddda,_0x4b06cf,_0xf4712a)=>_0x30817a(_0x45ddda,typeof _0x4b06cf!=_0xad953b(0x14e)?_0x4b06cf+'':_0x4b06cf,_0xf4712a);const _0x1b1929='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x4aced6[_0xad953b(0x14d)]=class extends _0x2ae101['Plugin']{constructor(_0x230e71=_0x3d957a,_0x374505,_0x248e8a){const _0x422b5a=_0xad953b;super(),this[_0x422b5a(0x126)]=_0x230e71,this[_0x422b5a(0x12c)]=_0x374505,this[_0x422b5a(0x14c)]=_0x248e8a;const {menu:_0x4c8821,..._0x337f98}=_0x2ae101['merge']({},_0x3d957a,this[_0x422b5a(0x126)]);_0x4c8821&&this['_configService'][_0x422b5a(0x141)](_0x422b5a(0x14f),_0x4c8821,{'merge':!0x0}),this['_configService'][_0x422b5a(0x141)](_0x47b893,_0x337f98);}[_0xad953b(0x13a)](){const _0xf913e4=_0xad953b;[[_0x559f21]][_0xf913e4(0x162)](_0x46bec0=>this[_0xf913e4(0x12c)]['add'](_0x46bec0));}['onReady'](){const _0x304d57=_0xad953b;this[_0x304d57(0x12c)]['get'](_0x559f21);}},_0x1b554a(_0x4aced6['UniverSheetsExchangeClientPlugin'],_0xad953b(0x139),_0x1b1929),_0x1b554a(_0x4aced6[_0xad953b(0x14d)],_0xad953b(0x15e),_0x2ae101['UniverInstanceType'][_0xad953b(0x158)]),_0x4aced6[_0xad953b(0x14d)]=_0x1a6877([_0x2ae101[_0xad953b(0x12d)](_0x3d38a6[_0xad953b(0x12a)]),_0x5b6a0d(0x1,_0x2ae101[_0xad953b(0x166)](_0x2ae101['Injector'])),_0x5b6a0d(0x2,_0x2ae101[_0xad953b(0x160)])],_0x4aced6[_0xad953b(0x14d)]),_0x4aced6['ExportXLSXOperation']=_0x22038b,_0x4aced6[_0xad953b(0x13b)]=_0x389f5b,Object[_0xad953b(0x15b)](_0x4aced6,Symbol[_0xad953b(0x13d)],{'value':_0xad953b(0x14a)});}));function _0x5964(){const _0x264e71=['DependentOn','IMenuManagerService','BUTTON','get','sheets-exchange-client.config','unit','WorkbookExportPermission','192078KUipBD','OPERATION','object','FolderIcon','ExportIcon','pluginName','onStarting','ImportXLSXOperation','UniverProExchangeClient','toStringTag','Disposable','mergeMenu','exportXLSXBySnapshot','setConfig','exchange-client.operation.export-xlsx','MenuItemType','CommandType','835602bcwArO','352856qxJhsK','function','UniverUi','_initCommands','Module','exchange-client.operation.import-xlsx','_configService','UniverSheetsExchangeClientPlugin','symbol','menu','_commandService','sheets-exchange-client.operation.exchange','@univerjs/ui','UniverSheetsUi','7apkwnL','UniverProSheetsExchangeClient','_menuManagerService','registerCommand','UNIVER_SHEET','241460KVCLML','getOwnPropertyDescriptor','defineProperty','IExchangeOperateService','500728gDjseY','type','disposeWithMe','IConfigService','UniverInstanceType','forEach','UniverCore','_initMenus','importXLSXToSnapshot','Inject','exchange.file','@univerjs/sheets','611598nNxNgM','search','length','_config','9SxysVd','600804OrKXiG','SUBITEMS','UniverExchangeClientPlugin','exports','_injector'];_0x5964=function(){return _0x264e71;};return _0x5964();}
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)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.11.0-nightly.202511151013",
3
+ "version": "0.12.0-nightly.202511220628",
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/sheets": "0.11.0-nightly.202511151013",
46
- "@univerjs/sheets-ui": "0.11.0-nightly.202511151013",
47
- "@univerjs-pro/exchange-client": "0.11.0-nightly.202511151013",
48
- "@univerjs/ui": "0.11.0-nightly.202511151013",
49
- "@univerjs/core": "0.11.0-nightly.202511151013"
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"
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.11.0"
55
+ "@univerjs-infra/shared": "0.12.0"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run",