@univerjs-pro/sheets-exchange-client 0.15.0-insiders.20260106-79b11f9 → 0.15.0-insiders.20260107-3441c7a

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 _0x549042=_0x2945;(function(_0x1538fd,_0x219a01){const _0x4bd65a=_0x2945,_0x25950c=_0x1538fd();while(!![]){try{const _0xb8fcf3=-parseInt(_0x4bd65a(0xba))/0x1*(parseInt(_0x4bd65a(0xb4))/0x2)+-parseInt(_0x4bd65a(0x9e))/0x3+-parseInt(_0x4bd65a(0xaa))/0x4*(parseInt(_0x4bd65a(0x9c))/0x5)+parseInt(_0x4bd65a(0x8f))/0x6+-parseInt(_0x4bd65a(0x8a))/0x7*(parseInt(_0x4bd65a(0xa8))/0x8)+parseInt(_0x4bd65a(0xb0))/0x9*(-parseInt(_0x4bd65a(0x94))/0xa)+parseInt(_0x4bd65a(0xae))/0xb;if(_0xb8fcf3===_0x219a01)break;else _0x25950c['push'](_0x25950c['shift']());}catch(_0x54d05c){_0x25950c['push'](_0x25950c['shift']());}}}(_0x20ee,0xc02fe));function _0x2945(_0xa1968f,_0x337d44){_0xa1968f=_0xa1968f-0x7b;const _0x20eedb=_0x20ee();let _0x2945fb=_0x20eedb[_0xa1968f];return _0x2945fb;}Object[_0x549042(0x88)](exports,Symbol[_0x549042(0xa0)],{'value':_0x549042(0xb2)});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':_0x549042(0xa3),'type':i[_0x549042(0x81)]['OPERATION'],'handler':async _0x252866=>{const _0x4735dd=_0x549042,_0x1c3f2f=_0x252866[_0x4735dd(0x90)](g['IExchangeOperateService']);return new URLSearchParams(location[_0x4735dd(0x85)])['get'](_0x4735dd(0xa6))?_0x1c3f2f[_0x4735dd(0x98)]():_0x1c3f2f[_0x4735dd(0x9a)](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i[_0x549042(0x81)]['OPERATION'],'handler':async _0x38c6f6=>{const _0x285155=_0x549042,_0x1c6a67=_0x38c6f6[_0x285155(0x90)](g[_0x285155(0x97)]);return new URLSearchParams(location[_0x285155(0x85)])['get'](_0x285155(0xa6))?_0x1c6a67[_0x285155(0xab)]():_0x1c6a67['exportXLSXBySnapshot'](),!0x0;}},v=_0x549042(0x99),h={},S=_0x549042(0x7d);function x(_0x166215){const _0x4e0af8=_0x549042;return{'id':S,'type':c[_0x4e0af8(0x7e)][_0x4e0af8(0x86)],'icon':'DirectExportIcon','tooltip':_0x4e0af8(0x96),'hidden$':c['getMenuHiddenObservable'](_0x166215,i[_0x4e0af8(0x8d)][_0x4e0af8(0x95)]),'disabled$':I[_0x4e0af8(0xac)](_0x166215,{'workbookTypes':[_[_0x4e0af8(0x83)]]})};}function P(){const _0x1b0e0c=_0x549042;return{'id':l['id'],'type':c['MenuItemType'][_0x1b0e0c(0xbb)],'title':'exchange.upload','icon':_0x1b0e0c(0xb6)};}function C(){const _0x107e3f=_0x549042;return{'id':p['id'],'type':c[_0x107e3f(0x7e)][_0x107e3f(0xbb)],'title':_0x107e3f(0xaf),'icon':_0x107e3f(0x7b)};}function _0x20ee(){const _0x274767=['14085910JyttSk','UNIVER_SHEET','exchange.file','IExchangeOperateService','importXLSXToUnitId','sheets-exchange-client.config','importXLSXToSnapshot','disposeWithMe','410LkSNcl','UniverExchangeClientPlugin','2287767yhIkHq','UniverSheetsExchangeClientPlugin','toStringTag','DependentOn','ImportXLSXOperation','exchange-client.operation.import-xlsx','Disposable','_injector','unit','forEach','3768aMBARb','_menuManagerService','43864MQDtXJ','exportXLSXByUnitId','getCurrentRangeDisable$','pluginName','48897882DoAmwV','exchange.download','9SxUhat','length','Module','ICommandService','230JVxJSP','SHEET_EXCHANGE_CLIENT_PLUGIN','FolderIcon','IMenuManagerService','_configService','Injector','2011YpwCxs','BUTTON','Inject','ExportXLSXOperation','ExportIcon','setConfig','sheets-exchange-client.operation.exchange','MenuItemType','_config','getOwnPropertyDescriptor','CommandType','symbol','WorkbookExportPermission','_commandService','search','SUBITEMS','menu','defineProperty','onStarting','19929OgJUXo','IConfigService','_initMenus','UniverInstanceType','merge','5907180lZFchW','get','registerCommand','_initCommands','RibbonStartGroup'];_0x20ee=function(){return _0x274767;};return _0x20ee();}const f={[c[_0x549042(0x93)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x549042(0x80)],y=(_0x4fe7b6,_0x15ec85,_0x2dc7b9,_0x2215d2)=>{const _0xafcc3a=_0x549042;for(var _0x5bf992=_0x2215d2>0x1?void 0x0:_0x2215d2?T(_0x15ec85,_0x2dc7b9):_0x15ec85,_0x45a02d=_0x4fe7b6[_0xafcc3a(0xb1)]-0x1,_0x732ab6;_0x45a02d>=0x0;_0x45a02d--)(_0x732ab6=_0x4fe7b6[_0x45a02d])&&(_0x5bf992=_0x732ab6(_0x5bf992)||_0x5bf992);return _0x5bf992;},m=(_0x25d1cb,_0x3538)=>(_0x3cb81e,_0x34cc77)=>_0x3538(_0x3cb81e,_0x34cc77,_0x25d1cb);let u=class extends i[_0x549042(0xa4)]{constructor(_0x27600d,_0x526c1f){const _0xf99ae8=_0x549042;super(),this[_0xf99ae8(0x84)]=_0x27600d,this[_0xf99ae8(0xa9)]=_0x526c1f,this[_0xf99ae8(0x92)](),this[_0xf99ae8(0x8c)]();}['_initCommands'](){const _0x3a9045=_0x549042;[l,p][_0x3a9045(0xa7)](_0x543489=>{const _0x5062a5=_0x3a9045;this[_0x5062a5(0x9b)](this[_0x5062a5(0x84)][_0x5062a5(0x91)](_0x543489));});}[_0x549042(0x8c)](){this['_menuManagerService']['mergeMenu'](f);}};u=y([m(0x0,i[_0x549042(0xb3)]),m(0x1,c[_0x549042(0xb7)])],u);var O=Object[_0x549042(0x88)],U=Object[_0x549042(0x80)],X=(_0x155a50,_0x5e56f5,_0x117513)=>_0x5e56f5 in _0x155a50?O(_0x155a50,_0x5e56f5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x117513}):_0x155a50[_0x5e56f5]=_0x117513,N=(_0x1b0d6c,_0x1a6f41,_0x1e438b,_0x36bea2)=>{const _0xf4a16d=_0x549042;for(var _0x5b121e=_0x36bea2>0x1?void 0x0:_0x36bea2?U(_0x1a6f41,_0x1e438b):_0x1a6f41,_0x3dac97=_0x1b0d6c[_0xf4a16d(0xb1)]-0x1,_0x17b194;_0x3dac97>=0x0;_0x3dac97--)(_0x17b194=_0x1b0d6c[_0x3dac97])&&(_0x5b121e=_0x17b194(_0x5b121e)||_0x5b121e);return _0x5b121e;},d=(_0xf44370,_0x37f896)=>(_0x4d3027,_0x32e5a9)=>_0x37f896(_0x4d3027,_0x32e5a9,_0xf44370),E=(_0x5f590f,_0x58a03f,_0x442428)=>X(_0x5f590f,typeof _0x58a03f!=_0x549042(0x82)?_0x58a03f+'':_0x58a03f,_0x442428);const L=_0x549042(0xb5);exports[_0x549042(0x9f)]=class extends i['Plugin']{constructor(_0x2d8229=h,_0x8de91c,_0x5e9920){const _0x508c66=_0x549042;super(),this[_0x508c66(0x7f)]=_0x2d8229,this[_0x508c66(0xa5)]=_0x8de91c,this[_0x508c66(0xb8)]=_0x5e9920;const {menu:_0x48a645,..._0x423ffe}=i[_0x508c66(0x8e)]({},h,this['_config']);_0x48a645&&this[_0x508c66(0xb8)][_0x508c66(0x7c)](_0x508c66(0x87),_0x48a645,{'merge':!0x0}),this[_0x508c66(0xb8)][_0x508c66(0x7c)](v,_0x423ffe);}[_0x549042(0x89)](){const _0x266557=_0x549042;[[u]][_0x266557(0xa7)](_0x5cfdc0=>this[_0x266557(0xa5)]['add'](_0x5cfdc0));}['onReady'](){const _0xc90e56=_0x549042;this[_0xc90e56(0xa5)]['get'](u);}},E(exports['UniverSheetsExchangeClientPlugin'],_0x549042(0xad),L),E(exports[_0x549042(0x9f)],'type',i[_0x549042(0x8d)][_0x549042(0x95)]),exports[_0x549042(0x9f)]=N([i[_0x549042(0xa1)](g[_0x549042(0x9d)]),d(0x1,i[_0x549042(0xbc)](i[_0x549042(0xb9)])),d(0x2,i[_0x549042(0x8b)])],exports['UniverSheetsExchangeClientPlugin']),exports[_0x549042(0xbd)]=p,exports[_0x549042(0xa2)]=l;
1
+ 'use strict';const _0x3e11df=_0x11e3;(function(_0x42ae85,_0x6f7d70){const _0x167d4a=_0x11e3,_0x30e480=_0x42ae85();while(!![]){try{const _0x2b8c4f=-parseInt(_0x167d4a(0xbd))/0x1+parseInt(_0x167d4a(0xab))/0x2+parseInt(_0x167d4a(0xbc))/0x3*(-parseInt(_0x167d4a(0xcb))/0x4)+-parseInt(_0x167d4a(0xca))/0x5+parseInt(_0x167d4a(0xb2))/0x6+-parseInt(_0x167d4a(0xc3))/0x7*(-parseInt(_0x167d4a(0xd1))/0x8)+-parseInt(_0x167d4a(0xb9))/0x9;if(_0x2b8c4f===_0x6f7d70)break;else _0x30e480['push'](_0x30e480['shift']());}catch(_0x2d6b56){_0x30e480['push'](_0x30e480['shift']());}}}(_0x22d2,0x92ef7));function _0x11e3(_0x14e0c0,_0x2610a8){_0x14e0c0=_0x14e0c0-0xa0;const _0x22d209=_0x22d2();let _0x11e3c3=_0x22d209[_0x14e0c0];return _0x11e3c3;}Object[_0x3e11df(0xcc)](exports,Symbol['toStringTag'],{'value':_0x3e11df(0xda)});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':_0x3e11df(0xa6),'type':i[_0x3e11df(0xc4)][_0x3e11df(0xbf)],'handler':async _0x6bacb3=>{const _0x58e0d9=_0x3e11df,_0x38853b=_0x6bacb3[_0x58e0d9(0xb6)](g[_0x58e0d9(0xa4)]);return new URLSearchParams(location[_0x58e0d9(0xac)])[_0x58e0d9(0xb6)](_0x58e0d9(0xe1))?_0x38853b['importXLSXToUnitId']():_0x38853b[_0x58e0d9(0xe2)](),!0x0;}},p={'id':_0x3e11df(0xad),'type':i[_0x3e11df(0xc4)][_0x3e11df(0xbf)],'handler':async _0x55de71=>{const _0xba5fee=_0x3e11df,_0x4795a2=_0x55de71[_0xba5fee(0xb6)](g[_0xba5fee(0xa4)]);return new URLSearchParams(location[_0xba5fee(0xac)])[_0xba5fee(0xb6)]('unit')?_0x4795a2[_0xba5fee(0xe0)]():_0x4795a2['exportXLSXBySnapshot'](),!0x0;}},v=_0x3e11df(0xb1),h={},S=_0x3e11df(0xb4);function x(_0x3cf3d3){const _0x482b09=_0x3e11df;return{'id':S,'type':c['MenuItemType'][_0x482b09(0xd5)],'icon':_0x482b09(0xa3),'tooltip':_0x482b09(0xcd),'hidden$':c['getMenuHiddenObservable'](_0x3cf3d3,i[_0x482b09(0xd2)]['UNIVER_SHEET']),'disabled$':I[_0x482b09(0xae)](_0x3cf3d3,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x5041bc=_0x3e11df;return{'id':l['id'],'type':c['MenuItemType'][_0x5041bc(0xdd)],'title':_0x5041bc(0xb5),'icon':_0x5041bc(0xb7)};}function C(){const _0x4f0c8d=_0x3e11df;return{'id':p['id'],'type':c[_0x4f0c8d(0xd6)][_0x4f0c8d(0xdd)],'title':_0x4f0c8d(0xd7),'icon':_0x4f0c8d(0xa8)};}const f={[c['RibbonStartGroup'][_0x3e11df(0xdb)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x3e11df(0xc8)],y=(_0x3d346d,_0x29d40a,_0x41ccbe,_0x328cf4)=>{for(var _0x71d785=_0x328cf4>0x1?void 0x0:_0x328cf4?T(_0x29d40a,_0x41ccbe):_0x29d40a,_0x42e8cb=_0x3d346d['length']-0x1,_0x3bc3c6;_0x42e8cb>=0x0;_0x42e8cb--)(_0x3bc3c6=_0x3d346d[_0x42e8cb])&&(_0x71d785=_0x3bc3c6(_0x71d785)||_0x71d785);return _0x71d785;},m=(_0x338561,_0xde9f02)=>(_0x5a9adb,_0x26a62d)=>_0xde9f02(_0x5a9adb,_0x26a62d,_0x338561);let u=class extends i[_0x3e11df(0xdc)]{constructor(_0x27e4bd,_0x24a05a){const _0x134865=_0x3e11df;super(),this[_0x134865(0xce)]=_0x27e4bd,this['_menuManagerService']=_0x24a05a,this[_0x134865(0xc7)](),this[_0x134865(0xaa)]();}[_0x3e11df(0xc7)](){const _0x5001b9=_0x3e11df;[l,p][_0x5001b9(0xa5)](_0x3e9b32=>{const _0x5278da=_0x5001b9;this[_0x5278da(0xd4)](this[_0x5278da(0xce)][_0x5278da(0xcf)](_0x3e9b32));});}[_0x3e11df(0xaa)](){const _0x1726da=_0x3e11df;this[_0x1726da(0xb3)][_0x1726da(0xe3)](f);}};u=y([m(0x0,i['ICommandService']),m(0x1,c['IMenuManagerService'])],u);var O=Object['defineProperty'],U=Object[_0x3e11df(0xc8)],X=(_0x3e6b69,_0x5ba2ca,_0x472880)=>_0x5ba2ca in _0x3e6b69?O(_0x3e6b69,_0x5ba2ca,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x472880}):_0x3e6b69[_0x5ba2ca]=_0x472880,N=(_0x1e62d0,_0x3abbdb,_0x3af5a6,_0x2b2f28)=>{const _0x31c6f2=_0x3e11df;for(var _0x306e0b=_0x2b2f28>0x1?void 0x0:_0x2b2f28?U(_0x3abbdb,_0x3af5a6):_0x3abbdb,_0x1af1f2=_0x1e62d0[_0x31c6f2(0xc6)]-0x1,_0x342bd6;_0x1af1f2>=0x0;_0x1af1f2--)(_0x342bd6=_0x1e62d0[_0x1af1f2])&&(_0x306e0b=_0x342bd6(_0x306e0b)||_0x306e0b);return _0x306e0b;},d=(_0x309927,_0x52c76b)=>(_0x213a4d,_0x41fd1f)=>_0x52c76b(_0x213a4d,_0x41fd1f,_0x309927),E=(_0x122fc1,_0x18e19b,_0x451b5a)=>X(_0x122fc1,typeof _0x18e19b!=_0x3e11df(0xd0)?_0x18e19b+'':_0x18e19b,_0x451b5a);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';function _0x22d2(){const _0x1e54c3=['9312ThmGiU','_configService','OPERATION','setConfig','_config','IConfigService','63DrBTQY','CommandType','add','length','_initCommands','getOwnPropertyDescriptor','UNIVER_SHEET','1208845pShMmz','8YLqWKT','defineProperty','exchange.file','_commandService','registerCommand','symbol','679584fHkTOc','UniverInstanceType','UniverExchangeClientPlugin','disposeWithMe','SUBITEMS','MenuItemType','exchange.download','ExportXLSXOperation','pluginName','Module','OTHERS','Disposable','BUTTON','ImportXLSXOperation','DependentOn','exportXLSXByUnitId','unit','importXLSXToSnapshot','mergeMenu','Plugin','onReady','Inject','DirectExportIcon','IExchangeOperateService','forEach','exchange-client.operation.import-xlsx','menu','ExportIcon','onStarting','_initMenus','1747424RGwmZz','search','exchange-client.operation.export-xlsx','getCurrentRangeDisable$','merge','UniverSheetsExchangeClientPlugin','sheets-exchange-client.config','1842258PAPDfS','_menuManagerService','sheets-exchange-client.operation.exchange','exchange.upload','get','FolderIcon','_injector','2317689QjlCAC','Injector','type','1252257zxvoHq'];_0x22d2=function(){return _0x1e54c3;};return _0x22d2();}exports[_0x3e11df(0xb0)]=class extends i[_0x3e11df(0xa0)]{constructor(_0x2844e9=h,_0x4d0903,_0xd332de){const _0x2aa89c=_0x3e11df;super(),this[_0x2aa89c(0xc1)]=_0x2844e9,this[_0x2aa89c(0xb8)]=_0x4d0903,this[_0x2aa89c(0xbe)]=_0xd332de;const {menu:_0x23319d,..._0x3701b3}=i[_0x2aa89c(0xaf)]({},h,this[_0x2aa89c(0xc1)]);_0x23319d&&this[_0x2aa89c(0xbe)][_0x2aa89c(0xc0)](_0x2aa89c(0xa7),_0x23319d,{'merge':!0x0}),this[_0x2aa89c(0xbe)]['setConfig'](v,_0x3701b3);}[_0x3e11df(0xa9)](){const _0x4c6e1d=_0x3e11df;[[u]][_0x4c6e1d(0xa5)](_0xca3dfa=>this[_0x4c6e1d(0xb8)][_0x4c6e1d(0xc5)](_0xca3dfa));}[_0x3e11df(0xa1)](){const _0x529aa9=_0x3e11df;this[_0x529aa9(0xb8)]['get'](u);}},E(exports[_0x3e11df(0xb0)],_0x3e11df(0xd9),L),E(exports[_0x3e11df(0xb0)],_0x3e11df(0xbb),i[_0x3e11df(0xd2)][_0x3e11df(0xc9)]),exports[_0x3e11df(0xb0)]=N([i[_0x3e11df(0xdf)](g[_0x3e11df(0xd3)]),d(0x1,i[_0x3e11df(0xa2)](i[_0x3e11df(0xba)])),d(0x2,i[_0x3e11df(0xc2)])],exports['UniverSheetsExchangeClientPlugin']),exports[_0x3e11df(0xd8)]=p,exports[_0x3e11df(0xde)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x277311=_0x3ebf;(function(_0x35b0bc,_0x1bc8ae){const _0x5d9602=_0x3ebf,_0x7a619c=_0x35b0bc();while(!![]){try{const _0x2e1d6b=-parseInt(_0x5d9602(0x82))/0x1+-parseInt(_0x5d9602(0x7e))/0x2+parseInt(_0x5d9602(0x7d))/0x3+parseInt(_0x5d9602(0x7c))/0x4*(parseInt(_0x5d9602(0x94))/0x5)+parseInt(_0x5d9602(0x77))/0x6*(-parseInt(_0x5d9602(0x73))/0x7)+-parseInt(_0x5d9602(0x8d))/0x8+-parseInt(_0x5d9602(0x98))/0x9*(-parseInt(_0x5d9602(0x6e))/0xa);if(_0x2e1d6b===_0x1bc8ae)break;else _0x7a619c['push'](_0x7a619c['shift']());}catch(_0x4a02cd){_0x7a619c['push'](_0x7a619c['shift']());}}}(_0x28a1,0x2aa59));import{IExchangeOperateService as _0x4217e8,UniverExchangeClientPlugin as _0x431b3a}from'@univerjs-pro/exchange-client';import{CommandType as _0x180f1d,UniverInstanceType as _0x5542ad,Disposable as _0x474e06,ICommandService as _0x199266,DependentOn as _0x541246,Inject as _0x577258,Injector as _0x237614,IConfigService as _0x26f257,Plugin as _0x52d0b1,merge as _0x3dc581}from'@univerjs/core';import{MenuItemType as _0x2a92e1,getMenuHiddenObservable as _0x532e74,RibbonStartGroup as _0x39b6cc,IMenuManagerService as _0x521405}from'@univerjs/ui';import{WorkbookExportPermission as _0x42a1ef}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x1f4cf3}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x180f1d[_0x277311(0x6d)],'handler':async _0x197a24=>{const _0x183ebb=_0x277311,_0x104c9d=_0x197a24['get'](_0x4217e8);return new URLSearchParams(location[_0x183ebb(0x84)])[_0x183ebb(0x71)](_0x183ebb(0x88))?_0x104c9d[_0x183ebb(0x96)]():_0x104c9d['importXLSXToSnapshot'](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x180f1d[_0x277311(0x6d)],'handler':async _0xc65ce0=>{const _0x5f190f=_0x277311,_0x4a173e=_0xc65ce0[_0x5f190f(0x71)](_0x4217e8);return new URLSearchParams(location[_0x5f190f(0x84)])[_0x5f190f(0x71)]('unit')?_0x4a173e[_0x5f190f(0x76)]():_0x4a173e[_0x5f190f(0x83)](),!0x0;}},H=_0x277311(0x79),l={},S=_0x277311(0x6f);function R(_0x3a8f8d){const _0x1d6c32=_0x277311;return{'id':S,'type':_0x2a92e1[_0x1d6c32(0x90)],'icon':_0x1d6c32(0x91),'tooltip':_0x1d6c32(0x92),'hidden$':_0x532e74(_0x3a8f8d,_0x5542ad['UNIVER_SHEET']),'disabled$':_0x1f4cf3(_0x3a8f8d,{'workbookTypes':[_0x42a1ef]})};}function w(){const _0x3abce9=_0x277311;return{'id':p['id'],'type':_0x2a92e1['BUTTON'],'title':_0x3abce9(0x72),'icon':_0x3abce9(0x8a)};}function D(){const _0x4a5b36=_0x277311;return{'id':u['id'],'type':_0x2a92e1['BUTTON'],'title':'exchange.download','icon':_0x4a5b36(0x7b)};}const F={[_0x39b6cc[_0x277311(0x95)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x254a4d,_0x1d6383,_0x43bb5e,_0x35eda1)=>{for(var _0x58caa8=_0x35eda1>0x1?void 0x0:_0x35eda1?G(_0x1d6383,_0x43bb5e):_0x1d6383,_0x49b188=_0x254a4d['length']-0x1,_0x39dbb3;_0x49b188>=0x0;_0x49b188--)(_0x39dbb3=_0x254a4d[_0x49b188])&&(_0x58caa8=_0x39dbb3(_0x58caa8)||_0x58caa8);return _0x58caa8;},d=(_0x1d5b29,_0x164f3c)=>(_0x264c3d,_0x4b2201)=>_0x164f3c(_0x264c3d,_0x4b2201,_0x1d5b29);let c=class extends _0x474e06{constructor(_0xe2bb7c,_0x59a19a){const _0x3ae734=_0x277311;super(),this[_0x3ae734(0x8b)]=_0xe2bb7c,this[_0x3ae734(0x80)]=_0x59a19a,this[_0x3ae734(0x75)](),this[_0x3ae734(0x70)]();}[_0x277311(0x75)](){[p,u]['forEach'](_0x429082=>{const _0x12d59e=_0x3ebf;this[_0x12d59e(0x97)](this[_0x12d59e(0x8b)][_0x12d59e(0x87)](_0x429082));});}[_0x277311(0x70)](){const _0x5d9cd2=_0x277311;this[_0x5d9cd2(0x80)][_0x5d9cd2(0x81)](F);}};c=A([d(0x0,_0x199266),d(0x1,_0x521405)],c);var j=Object[_0x277311(0x86)],B=Object[_0x277311(0x7a)],$=(_0x2ddaeb,_0xbaa83a,_0x44eb52)=>_0xbaa83a in _0x2ddaeb?j(_0x2ddaeb,_0xbaa83a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x44eb52}):_0x2ddaeb[_0xbaa83a]=_0x44eb52,V=(_0x4c2c7f,_0x500a76,_0x4946e7,_0x211688)=>{const _0x374593=_0x277311;for(var _0x10b94a=_0x211688>0x1?void 0x0:_0x211688?B(_0x500a76,_0x4946e7):_0x500a76,_0x150b5f=_0x4c2c7f[_0x374593(0x89)]-0x1,_0x369433;_0x150b5f>=0x0;_0x150b5f--)(_0x369433=_0x4c2c7f[_0x150b5f])&&(_0x10b94a=_0x369433(_0x10b94a)||_0x10b94a);return _0x10b94a;},_=(_0x1387bf,_0x885eb0)=>(_0x27c6b2,_0x13eca6)=>_0x885eb0(_0x27c6b2,_0x13eca6,_0x1387bf),I=(_0x329bdb,_0x8447ea,_0x59e320)=>$(_0x329bdb,typeof _0x8447ea!='symbol'?_0x8447ea+'':_0x8447ea,_0x59e320);const W=_0x277311(0x74);let s=class extends _0x52d0b1{constructor(_0x5e5fbe=l,_0x4fae54,_0x567416){const _0x5d36e2=_0x277311;super(),this[_0x5d36e2(0x99)]=_0x5e5fbe,this['_injector']=_0x4fae54,this[_0x5d36e2(0x93)]=_0x567416;const {menu:_0x1d745c,..._0x11a512}=_0x3dc581({},l,this[_0x5d36e2(0x99)]);_0x1d745c&&this['_configService']['setConfig'](_0x5d36e2(0x8c),_0x1d745c,{'merge':!0x0}),this[_0x5d36e2(0x93)][_0x5d36e2(0x78)](H,_0x11a512);}[_0x277311(0x8f)](){const _0x39c98a=_0x277311;[[c]][_0x39c98a(0x85)](_0x1bdcb2=>this['_injector'][_0x39c98a(0x7f)](_0x1bdcb2));}['onReady'](){const _0x3f3c6d=_0x277311;this[_0x3f3c6d(0x8e)][_0x3f3c6d(0x71)](c);}};function _0x28a1(){const _0x29fe1d=['DirectExportIcon','exchange.file','_configService','5plBnBg','OTHERS','importXLSXToUnitId','disposeWithMe','315rRIeSr','_config','UNIVER_SHEET','OPERATION','229090yCIFDT','sheets-exchange-client.operation.exchange','_initMenus','get','exchange.upload','63zLInVN','SHEET_EXCHANGE_CLIENT_PLUGIN','_initCommands','exportXLSXByUnitId','150222vayXej','setConfig','sheets-exchange-client.config','getOwnPropertyDescriptor','ExportIcon','483612KiltcO','628293koAqNz','331304NSkByD','add','_menuManagerService','mergeMenu','268578NVOXJi','exportXLSXBySnapshot','search','forEach','defineProperty','registerCommand','unit','length','FolderIcon','_commandService','menu','2383240wVQkyE','_injector','onStarting','SUBITEMS'];_0x28a1=function(){return _0x29fe1d;};return _0x28a1();}I(s,'pluginName',W),I(s,'type',_0x5542ad[_0x277311(0x6c)]),s=V([_0x541246(_0x431b3a),_(0x1,_0x577258(_0x237614)),_(0x2,_0x26f257)],s);function _0x3ebf(_0x1f92a3,_0x59acb1){_0x1f92a3=_0x1f92a3-0x6c;const _0x28a17d=_0x28a1();let _0x3ebfd=_0x28a17d[_0x1f92a3];return _0x3ebfd;}export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x5d591c=_0x3293;(function(_0x37f626,_0x30f328){const _0x5266bc=_0x3293,_0x267ce7=_0x37f626();while(!![]){try{const _0x5bbbe4=parseInt(_0x5266bc(0x13c))/0x1*(-parseInt(_0x5266bc(0x112))/0x2)+parseInt(_0x5266bc(0x131))/0x3+parseInt(_0x5266bc(0x134))/0x4*(-parseInt(_0x5266bc(0x116))/0x5)+-parseInt(_0x5266bc(0x12a))/0x6+parseInt(_0x5266bc(0x128))/0x7*(parseInt(_0x5266bc(0x113))/0x8)+parseInt(_0x5266bc(0x11f))/0x9+-parseInt(_0x5266bc(0x12b))/0xa*(-parseInt(_0x5266bc(0x11e))/0xb);if(_0x5bbbe4===_0x30f328)break;else _0x267ce7['push'](_0x267ce7['shift']());}catch(_0x5a5783){_0x267ce7['push'](_0x267ce7['shift']());}}}(_0x54b5,0x90c8c));import{IExchangeOperateService as _0x1f35d7,UniverExchangeClientPlugin as _0x30f8a8}from'@univerjs-pro/exchange-client';import{CommandType as _0x39aef8,UniverInstanceType as _0x28fc2a,Disposable as _0x18b44e,ICommandService as _0x2d3d94,DependentOn as _0x3e9ffa,Inject as _0x1078cd,Injector as _0x2a92b0,IConfigService as _0x4a3db4,Plugin as _0x28c0ce,merge as _0x26fdfe}from'@univerjs/core';function _0x54b5(){const _0x226a79=['search','5690178PeZtCY','123260ofcByg','exchange-client.operation.export-xlsx','_config','exchange-client.operation.import-xlsx','sheets-exchange-client.operation.exchange','_commandService','844371jqpbcH','onStarting','_injector','3573932VlRbUW','setConfig','_menuManagerService','pluginName','forEach','_initCommands','unit','importXLSXToUnitId','13odGvhd','DirectExportIcon','defineProperty','SHEET_EXCHANGE_CLIENT_PLUGIN','OPERATION','sheets-exchange-client.config','127890tfMdUr','7435184opfCqq','OTHERS','getOwnPropertyDescriptor','5cVNlQN','get','_configService','symbol','disposeWithMe','mergeMenu','exchange.download','UNIVER_SHEET','792prVgsx','10510560oaKuzC','BUTTON','exchange.upload','_initMenus','onReady','registerCommand','importXLSXToSnapshot','exportXLSXBySnapshot','length','7YWjVAJ'];_0x54b5=function(){return _0x226a79;};return _0x54b5();}import{MenuItemType as _0x5a9451,getMenuHiddenObservable as _0x53ee9e,RibbonStartGroup as _0x14123d,IMenuManagerService as _0x2899d2}from'@univerjs/ui';import{WorkbookExportPermission as _0x572188}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x1d5bf1}from'@univerjs/sheets-ui';const p={'id':_0x5d591c(0x12e),'type':_0x39aef8[_0x5d591c(0x110)],'handler':async _0x2c92fd=>{const _0x152fb9=_0x5d591c,_0x2c51=_0x2c92fd[_0x152fb9(0x117)](_0x1f35d7);return new URLSearchParams(location['search'])[_0x152fb9(0x117)]('unit')?_0x2c51[_0x152fb9(0x13b)]():_0x2c51[_0x152fb9(0x125)](),!0x0;}},u={'id':_0x5d591c(0x12c),'type':_0x39aef8[_0x5d591c(0x110)],'handler':async _0x30cadd=>{const _0x20168c=_0x5d591c,_0x2b6e1f=_0x30cadd[_0x20168c(0x117)](_0x1f35d7);return new URLSearchParams(location[_0x20168c(0x129)])[_0x20168c(0x117)](_0x20168c(0x13a))?_0x2b6e1f['exportXLSXByUnitId']():_0x2b6e1f[_0x20168c(0x126)](),!0x0;}},H=_0x5d591c(0x111),l={},S=_0x5d591c(0x12f);function R(_0x7c124e){const _0x275cf0=_0x5d591c;return{'id':S,'type':_0x5a9451['SUBITEMS'],'icon':_0x275cf0(0x13d),'tooltip':'exchange.file','hidden$':_0x53ee9e(_0x7c124e,_0x28fc2a['UNIVER_SHEET']),'disabled$':_0x1d5bf1(_0x7c124e,{'workbookTypes':[_0x572188]})};}function w(){const _0x37b6b4=_0x5d591c;return{'id':p['id'],'type':_0x5a9451[_0x37b6b4(0x120)],'title':_0x37b6b4(0x121),'icon':'FolderIcon'};}function D(){const _0x599e49=_0x5d591c;return{'id':u['id'],'type':_0x5a9451[_0x599e49(0x120)],'title':_0x599e49(0x11c),'icon':'ExportIcon'};}const F={[_0x14123d[_0x5d591c(0x114)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x5d591c(0x115)],A=(_0x259a62,_0xe0d3ca,_0xd142c8,_0x30b880)=>{const _0x36709=_0x5d591c;for(var _0x431cc2=_0x30b880>0x1?void 0x0:_0x30b880?G(_0xe0d3ca,_0xd142c8):_0xe0d3ca,_0x3151cc=_0x259a62[_0x36709(0x127)]-0x1,_0x55e18b;_0x3151cc>=0x0;_0x3151cc--)(_0x55e18b=_0x259a62[_0x3151cc])&&(_0x431cc2=_0x55e18b(_0x431cc2)||_0x431cc2);return _0x431cc2;},d=(_0x13f938,_0x54ea47)=>(_0x32f375,_0x5d0d5b)=>_0x54ea47(_0x32f375,_0x5d0d5b,_0x13f938);let c=class extends _0x18b44e{constructor(_0x4580d1,_0x2f8f78){const _0x52bff0=_0x5d591c;super(),this[_0x52bff0(0x130)]=_0x4580d1,this['_menuManagerService']=_0x2f8f78,this[_0x52bff0(0x139)](),this['_initMenus']();}[_0x5d591c(0x139)](){const _0x4574d2=_0x5d591c;[p,u][_0x4574d2(0x138)](_0x4b35e2=>{const _0x482863=_0x4574d2;this[_0x482863(0x11a)](this[_0x482863(0x130)][_0x482863(0x124)](_0x4b35e2));});}[_0x5d591c(0x122)](){const _0x1b014d=_0x5d591c;this[_0x1b014d(0x136)][_0x1b014d(0x11b)](F);}};c=A([d(0x0,_0x2d3d94),d(0x1,_0x2899d2)],c);var j=Object[_0x5d591c(0x13e)],B=Object['getOwnPropertyDescriptor'],$=(_0x157530,_0x34e029,_0x28141b)=>_0x34e029 in _0x157530?j(_0x157530,_0x34e029,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28141b}):_0x157530[_0x34e029]=_0x28141b,V=(_0x480974,_0x3c3a0d,_0xf310a7,_0x3b84a5)=>{const _0x4a3f18=_0x5d591c;for(var _0x1608f0=_0x3b84a5>0x1?void 0x0:_0x3b84a5?B(_0x3c3a0d,_0xf310a7):_0x3c3a0d,_0x9caecb=_0x480974[_0x4a3f18(0x127)]-0x1,_0x233b6c;_0x9caecb>=0x0;_0x9caecb--)(_0x233b6c=_0x480974[_0x9caecb])&&(_0x1608f0=_0x233b6c(_0x1608f0)||_0x1608f0);return _0x1608f0;},_=(_0x494dfb,_0x3432e4)=>(_0x542798,_0xdc55a3)=>_0x3432e4(_0x542798,_0xdc55a3,_0x494dfb),I=(_0x5c9693,_0xf8fc94,_0x30e8d8)=>$(_0x5c9693,typeof _0xf8fc94!=_0x5d591c(0x119)?_0xf8fc94+'':_0xf8fc94,_0x30e8d8);const W=_0x5d591c(0x10f);function _0x3293(_0x4644ee,_0x1a39bf){_0x4644ee=_0x4644ee-0x10f;const _0x54b588=_0x54b5();let _0x3293d3=_0x54b588[_0x4644ee];return _0x3293d3;}let s=class extends _0x28c0ce{constructor(_0x3bf845=l,_0x4d4e8d,_0x519c77){const _0x354b2b=_0x5d591c;super(),this[_0x354b2b(0x12d)]=_0x3bf845,this[_0x354b2b(0x133)]=_0x4d4e8d,this[_0x354b2b(0x118)]=_0x519c77;const {menu:_0x1cfba9,..._0x186838}=_0x26fdfe({},l,this[_0x354b2b(0x12d)]);_0x1cfba9&&this[_0x354b2b(0x118)][_0x354b2b(0x135)]('menu',_0x1cfba9,{'merge':!0x0}),this[_0x354b2b(0x118)][_0x354b2b(0x135)](H,_0x186838);}[_0x5d591c(0x132)](){const _0xcba137=_0x5d591c;[[c]][_0xcba137(0x138)](_0x4b9609=>this[_0xcba137(0x133)]['add'](_0x4b9609));}[_0x5d591c(0x123)](){const _0x59d9f6=_0x5d591c;this[_0x59d9f6(0x133)][_0x59d9f6(0x117)](c);}};I(s,_0x5d591c(0x137),W),I(s,'type',_0x28fc2a[_0x5d591c(0x11d)]),s=V([_0x3e9ffa(_0x30f8a8),_(0x1,_0x1078cd(_0x2a92b0)),_(0x2,_0x4a3db4)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x277311=_0x3ebf;(function(_0x35b0bc,_0x1bc8ae){const _0x5d9602=_0x3ebf,_0x7a619c=_0x35b0bc();while(!![]){try{const _0x2e1d6b=-parseInt(_0x5d9602(0x82))/0x1+-parseInt(_0x5d9602(0x7e))/0x2+parseInt(_0x5d9602(0x7d))/0x3+parseInt(_0x5d9602(0x7c))/0x4*(parseInt(_0x5d9602(0x94))/0x5)+parseInt(_0x5d9602(0x77))/0x6*(-parseInt(_0x5d9602(0x73))/0x7)+-parseInt(_0x5d9602(0x8d))/0x8+-parseInt(_0x5d9602(0x98))/0x9*(-parseInt(_0x5d9602(0x6e))/0xa);if(_0x2e1d6b===_0x1bc8ae)break;else _0x7a619c['push'](_0x7a619c['shift']());}catch(_0x4a02cd){_0x7a619c['push'](_0x7a619c['shift']());}}}(_0x28a1,0x2aa59));import{IExchangeOperateService as _0x4217e8,UniverExchangeClientPlugin as _0x431b3a}from'@univerjs-pro/exchange-client';import{CommandType as _0x180f1d,UniverInstanceType as _0x5542ad,Disposable as _0x474e06,ICommandService as _0x199266,DependentOn as _0x541246,Inject as _0x577258,Injector as _0x237614,IConfigService as _0x26f257,Plugin as _0x52d0b1,merge as _0x3dc581}from'@univerjs/core';import{MenuItemType as _0x2a92e1,getMenuHiddenObservable as _0x532e74,RibbonStartGroup as _0x39b6cc,IMenuManagerService as _0x521405}from'@univerjs/ui';import{WorkbookExportPermission as _0x42a1ef}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x1f4cf3}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x180f1d[_0x277311(0x6d)],'handler':async _0x197a24=>{const _0x183ebb=_0x277311,_0x104c9d=_0x197a24['get'](_0x4217e8);return new URLSearchParams(location[_0x183ebb(0x84)])[_0x183ebb(0x71)](_0x183ebb(0x88))?_0x104c9d[_0x183ebb(0x96)]():_0x104c9d['importXLSXToSnapshot'](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x180f1d[_0x277311(0x6d)],'handler':async _0xc65ce0=>{const _0x5f190f=_0x277311,_0x4a173e=_0xc65ce0[_0x5f190f(0x71)](_0x4217e8);return new URLSearchParams(location[_0x5f190f(0x84)])[_0x5f190f(0x71)]('unit')?_0x4a173e[_0x5f190f(0x76)]():_0x4a173e[_0x5f190f(0x83)](),!0x0;}},H=_0x277311(0x79),l={},S=_0x277311(0x6f);function R(_0x3a8f8d){const _0x1d6c32=_0x277311;return{'id':S,'type':_0x2a92e1[_0x1d6c32(0x90)],'icon':_0x1d6c32(0x91),'tooltip':_0x1d6c32(0x92),'hidden$':_0x532e74(_0x3a8f8d,_0x5542ad['UNIVER_SHEET']),'disabled$':_0x1f4cf3(_0x3a8f8d,{'workbookTypes':[_0x42a1ef]})};}function w(){const _0x3abce9=_0x277311;return{'id':p['id'],'type':_0x2a92e1['BUTTON'],'title':_0x3abce9(0x72),'icon':_0x3abce9(0x8a)};}function D(){const _0x4a5b36=_0x277311;return{'id':u['id'],'type':_0x2a92e1['BUTTON'],'title':'exchange.download','icon':_0x4a5b36(0x7b)};}const F={[_0x39b6cc[_0x277311(0x95)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x254a4d,_0x1d6383,_0x43bb5e,_0x35eda1)=>{for(var _0x58caa8=_0x35eda1>0x1?void 0x0:_0x35eda1?G(_0x1d6383,_0x43bb5e):_0x1d6383,_0x49b188=_0x254a4d['length']-0x1,_0x39dbb3;_0x49b188>=0x0;_0x49b188--)(_0x39dbb3=_0x254a4d[_0x49b188])&&(_0x58caa8=_0x39dbb3(_0x58caa8)||_0x58caa8);return _0x58caa8;},d=(_0x1d5b29,_0x164f3c)=>(_0x264c3d,_0x4b2201)=>_0x164f3c(_0x264c3d,_0x4b2201,_0x1d5b29);let c=class extends _0x474e06{constructor(_0xe2bb7c,_0x59a19a){const _0x3ae734=_0x277311;super(),this[_0x3ae734(0x8b)]=_0xe2bb7c,this[_0x3ae734(0x80)]=_0x59a19a,this[_0x3ae734(0x75)](),this[_0x3ae734(0x70)]();}[_0x277311(0x75)](){[p,u]['forEach'](_0x429082=>{const _0x12d59e=_0x3ebf;this[_0x12d59e(0x97)](this[_0x12d59e(0x8b)][_0x12d59e(0x87)](_0x429082));});}[_0x277311(0x70)](){const _0x5d9cd2=_0x277311;this[_0x5d9cd2(0x80)][_0x5d9cd2(0x81)](F);}};c=A([d(0x0,_0x199266),d(0x1,_0x521405)],c);var j=Object[_0x277311(0x86)],B=Object[_0x277311(0x7a)],$=(_0x2ddaeb,_0xbaa83a,_0x44eb52)=>_0xbaa83a in _0x2ddaeb?j(_0x2ddaeb,_0xbaa83a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x44eb52}):_0x2ddaeb[_0xbaa83a]=_0x44eb52,V=(_0x4c2c7f,_0x500a76,_0x4946e7,_0x211688)=>{const _0x374593=_0x277311;for(var _0x10b94a=_0x211688>0x1?void 0x0:_0x211688?B(_0x500a76,_0x4946e7):_0x500a76,_0x150b5f=_0x4c2c7f[_0x374593(0x89)]-0x1,_0x369433;_0x150b5f>=0x0;_0x150b5f--)(_0x369433=_0x4c2c7f[_0x150b5f])&&(_0x10b94a=_0x369433(_0x10b94a)||_0x10b94a);return _0x10b94a;},_=(_0x1387bf,_0x885eb0)=>(_0x27c6b2,_0x13eca6)=>_0x885eb0(_0x27c6b2,_0x13eca6,_0x1387bf),I=(_0x329bdb,_0x8447ea,_0x59e320)=>$(_0x329bdb,typeof _0x8447ea!='symbol'?_0x8447ea+'':_0x8447ea,_0x59e320);const W=_0x277311(0x74);let s=class extends _0x52d0b1{constructor(_0x5e5fbe=l,_0x4fae54,_0x567416){const _0x5d36e2=_0x277311;super(),this[_0x5d36e2(0x99)]=_0x5e5fbe,this['_injector']=_0x4fae54,this[_0x5d36e2(0x93)]=_0x567416;const {menu:_0x1d745c,..._0x11a512}=_0x3dc581({},l,this[_0x5d36e2(0x99)]);_0x1d745c&&this['_configService']['setConfig'](_0x5d36e2(0x8c),_0x1d745c,{'merge':!0x0}),this[_0x5d36e2(0x93)][_0x5d36e2(0x78)](H,_0x11a512);}[_0x277311(0x8f)](){const _0x39c98a=_0x277311;[[c]][_0x39c98a(0x85)](_0x1bdcb2=>this['_injector'][_0x39c98a(0x7f)](_0x1bdcb2));}['onReady'](){const _0x3f3c6d=_0x277311;this[_0x3f3c6d(0x8e)][_0x3f3c6d(0x71)](c);}};function _0x28a1(){const _0x29fe1d=['DirectExportIcon','exchange.file','_configService','5plBnBg','OTHERS','importXLSXToUnitId','disposeWithMe','315rRIeSr','_config','UNIVER_SHEET','OPERATION','229090yCIFDT','sheets-exchange-client.operation.exchange','_initMenus','get','exchange.upload','63zLInVN','SHEET_EXCHANGE_CLIENT_PLUGIN','_initCommands','exportXLSXByUnitId','150222vayXej','setConfig','sheets-exchange-client.config','getOwnPropertyDescriptor','ExportIcon','483612KiltcO','628293koAqNz','331304NSkByD','add','_menuManagerService','mergeMenu','268578NVOXJi','exportXLSXBySnapshot','search','forEach','defineProperty','registerCommand','unit','length','FolderIcon','_commandService','menu','2383240wVQkyE','_injector','onStarting','SUBITEMS'];_0x28a1=function(){return _0x29fe1d;};return _0x28a1();}I(s,'pluginName',W),I(s,'type',_0x5542ad[_0x277311(0x6c)]),s=V([_0x541246(_0x431b3a),_(0x1,_0x577258(_0x237614)),_(0x2,_0x26f257)],s);function _0x3ebf(_0x1f92a3,_0x59acb1){_0x1f92a3=_0x1f92a3-0x6c;const _0x28a17d=_0x28a1();let _0x3ebfd=_0x28a17d[_0x1f92a3];return _0x3ebfd;}export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x5d591c=_0x3293;(function(_0x37f626,_0x30f328){const _0x5266bc=_0x3293,_0x267ce7=_0x37f626();while(!![]){try{const _0x5bbbe4=parseInt(_0x5266bc(0x13c))/0x1*(-parseInt(_0x5266bc(0x112))/0x2)+parseInt(_0x5266bc(0x131))/0x3+parseInt(_0x5266bc(0x134))/0x4*(-parseInt(_0x5266bc(0x116))/0x5)+-parseInt(_0x5266bc(0x12a))/0x6+parseInt(_0x5266bc(0x128))/0x7*(parseInt(_0x5266bc(0x113))/0x8)+parseInt(_0x5266bc(0x11f))/0x9+-parseInt(_0x5266bc(0x12b))/0xa*(-parseInt(_0x5266bc(0x11e))/0xb);if(_0x5bbbe4===_0x30f328)break;else _0x267ce7['push'](_0x267ce7['shift']());}catch(_0x5a5783){_0x267ce7['push'](_0x267ce7['shift']());}}}(_0x54b5,0x90c8c));import{IExchangeOperateService as _0x1f35d7,UniverExchangeClientPlugin as _0x30f8a8}from'@univerjs-pro/exchange-client';import{CommandType as _0x39aef8,UniverInstanceType as _0x28fc2a,Disposable as _0x18b44e,ICommandService as _0x2d3d94,DependentOn as _0x3e9ffa,Inject as _0x1078cd,Injector as _0x2a92b0,IConfigService as _0x4a3db4,Plugin as _0x28c0ce,merge as _0x26fdfe}from'@univerjs/core';function _0x54b5(){const _0x226a79=['search','5690178PeZtCY','123260ofcByg','exchange-client.operation.export-xlsx','_config','exchange-client.operation.import-xlsx','sheets-exchange-client.operation.exchange','_commandService','844371jqpbcH','onStarting','_injector','3573932VlRbUW','setConfig','_menuManagerService','pluginName','forEach','_initCommands','unit','importXLSXToUnitId','13odGvhd','DirectExportIcon','defineProperty','SHEET_EXCHANGE_CLIENT_PLUGIN','OPERATION','sheets-exchange-client.config','127890tfMdUr','7435184opfCqq','OTHERS','getOwnPropertyDescriptor','5cVNlQN','get','_configService','symbol','disposeWithMe','mergeMenu','exchange.download','UNIVER_SHEET','792prVgsx','10510560oaKuzC','BUTTON','exchange.upload','_initMenus','onReady','registerCommand','importXLSXToSnapshot','exportXLSXBySnapshot','length','7YWjVAJ'];_0x54b5=function(){return _0x226a79;};return _0x54b5();}import{MenuItemType as _0x5a9451,getMenuHiddenObservable as _0x53ee9e,RibbonStartGroup as _0x14123d,IMenuManagerService as _0x2899d2}from'@univerjs/ui';import{WorkbookExportPermission as _0x572188}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x1d5bf1}from'@univerjs/sheets-ui';const p={'id':_0x5d591c(0x12e),'type':_0x39aef8[_0x5d591c(0x110)],'handler':async _0x2c92fd=>{const _0x152fb9=_0x5d591c,_0x2c51=_0x2c92fd[_0x152fb9(0x117)](_0x1f35d7);return new URLSearchParams(location['search'])[_0x152fb9(0x117)]('unit')?_0x2c51[_0x152fb9(0x13b)]():_0x2c51[_0x152fb9(0x125)](),!0x0;}},u={'id':_0x5d591c(0x12c),'type':_0x39aef8[_0x5d591c(0x110)],'handler':async _0x30cadd=>{const _0x20168c=_0x5d591c,_0x2b6e1f=_0x30cadd[_0x20168c(0x117)](_0x1f35d7);return new URLSearchParams(location[_0x20168c(0x129)])[_0x20168c(0x117)](_0x20168c(0x13a))?_0x2b6e1f['exportXLSXByUnitId']():_0x2b6e1f[_0x20168c(0x126)](),!0x0;}},H=_0x5d591c(0x111),l={},S=_0x5d591c(0x12f);function R(_0x7c124e){const _0x275cf0=_0x5d591c;return{'id':S,'type':_0x5a9451['SUBITEMS'],'icon':_0x275cf0(0x13d),'tooltip':'exchange.file','hidden$':_0x53ee9e(_0x7c124e,_0x28fc2a['UNIVER_SHEET']),'disabled$':_0x1d5bf1(_0x7c124e,{'workbookTypes':[_0x572188]})};}function w(){const _0x37b6b4=_0x5d591c;return{'id':p['id'],'type':_0x5a9451[_0x37b6b4(0x120)],'title':_0x37b6b4(0x121),'icon':'FolderIcon'};}function D(){const _0x599e49=_0x5d591c;return{'id':u['id'],'type':_0x5a9451[_0x599e49(0x120)],'title':_0x599e49(0x11c),'icon':'ExportIcon'};}const F={[_0x14123d[_0x5d591c(0x114)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x5d591c(0x115)],A=(_0x259a62,_0xe0d3ca,_0xd142c8,_0x30b880)=>{const _0x36709=_0x5d591c;for(var _0x431cc2=_0x30b880>0x1?void 0x0:_0x30b880?G(_0xe0d3ca,_0xd142c8):_0xe0d3ca,_0x3151cc=_0x259a62[_0x36709(0x127)]-0x1,_0x55e18b;_0x3151cc>=0x0;_0x3151cc--)(_0x55e18b=_0x259a62[_0x3151cc])&&(_0x431cc2=_0x55e18b(_0x431cc2)||_0x431cc2);return _0x431cc2;},d=(_0x13f938,_0x54ea47)=>(_0x32f375,_0x5d0d5b)=>_0x54ea47(_0x32f375,_0x5d0d5b,_0x13f938);let c=class extends _0x18b44e{constructor(_0x4580d1,_0x2f8f78){const _0x52bff0=_0x5d591c;super(),this[_0x52bff0(0x130)]=_0x4580d1,this['_menuManagerService']=_0x2f8f78,this[_0x52bff0(0x139)](),this['_initMenus']();}[_0x5d591c(0x139)](){const _0x4574d2=_0x5d591c;[p,u][_0x4574d2(0x138)](_0x4b35e2=>{const _0x482863=_0x4574d2;this[_0x482863(0x11a)](this[_0x482863(0x130)][_0x482863(0x124)](_0x4b35e2));});}[_0x5d591c(0x122)](){const _0x1b014d=_0x5d591c;this[_0x1b014d(0x136)][_0x1b014d(0x11b)](F);}};c=A([d(0x0,_0x2d3d94),d(0x1,_0x2899d2)],c);var j=Object[_0x5d591c(0x13e)],B=Object['getOwnPropertyDescriptor'],$=(_0x157530,_0x34e029,_0x28141b)=>_0x34e029 in _0x157530?j(_0x157530,_0x34e029,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28141b}):_0x157530[_0x34e029]=_0x28141b,V=(_0x480974,_0x3c3a0d,_0xf310a7,_0x3b84a5)=>{const _0x4a3f18=_0x5d591c;for(var _0x1608f0=_0x3b84a5>0x1?void 0x0:_0x3b84a5?B(_0x3c3a0d,_0xf310a7):_0x3c3a0d,_0x9caecb=_0x480974[_0x4a3f18(0x127)]-0x1,_0x233b6c;_0x9caecb>=0x0;_0x9caecb--)(_0x233b6c=_0x480974[_0x9caecb])&&(_0x1608f0=_0x233b6c(_0x1608f0)||_0x1608f0);return _0x1608f0;},_=(_0x494dfb,_0x3432e4)=>(_0x542798,_0xdc55a3)=>_0x3432e4(_0x542798,_0xdc55a3,_0x494dfb),I=(_0x5c9693,_0xf8fc94,_0x30e8d8)=>$(_0x5c9693,typeof _0xf8fc94!=_0x5d591c(0x119)?_0xf8fc94+'':_0xf8fc94,_0x30e8d8);const W=_0x5d591c(0x10f);function _0x3293(_0x4644ee,_0x1a39bf){_0x4644ee=_0x4644ee-0x10f;const _0x54b588=_0x54b5();let _0x3293d3=_0x54b588[_0x4644ee];return _0x3293d3;}let s=class extends _0x28c0ce{constructor(_0x3bf845=l,_0x4d4e8d,_0x519c77){const _0x354b2b=_0x5d591c;super(),this[_0x354b2b(0x12d)]=_0x3bf845,this[_0x354b2b(0x133)]=_0x4d4e8d,this[_0x354b2b(0x118)]=_0x519c77;const {menu:_0x1cfba9,..._0x186838}=_0x26fdfe({},l,this[_0x354b2b(0x12d)]);_0x1cfba9&&this[_0x354b2b(0x118)][_0x354b2b(0x135)]('menu',_0x1cfba9,{'merge':!0x0}),this[_0x354b2b(0x118)][_0x354b2b(0x135)](H,_0x186838);}[_0x5d591c(0x132)](){const _0xcba137=_0x5d591c;[[c]][_0xcba137(0x138)](_0x4b9609=>this[_0xcba137(0x133)]['add'](_0x4b9609));}[_0x5d591c(0x123)](){const _0x59d9f6=_0x5d591c;this[_0x59d9f6(0x133)][_0x59d9f6(0x117)](c);}};I(s,_0x5d591c(0x137),W),I(s,'type',_0x28fc2a[_0x5d591c(0x11d)]),s=V([_0x3e9ffa(_0x30f8a8),_(0x1,_0x1078cd(_0x2a92b0)),_(0x2,_0x4a3db4)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x2fec(_0x2c2bab,_0xcda7b4){_0x2c2bab=_0x2c2bab-0x143;const _0x2c6a38=_0x2c6a();let _0x2fecad=_0x2c6a38[_0x2c2bab];return _0x2fecad;}(function(_0x50a67e,_0x5174b2){const _0x62220b=_0x2fec,_0x535e05=_0x50a67e();while(!![]){try{const _0x4a5766=-parseInt(_0x62220b(0x18f))/0x1*(parseInt(_0x62220b(0x163))/0x2)+-parseInt(_0x62220b(0x153))/0x3*(parseInt(_0x62220b(0x192))/0x4)+-parseInt(_0x62220b(0x186))/0x5+-parseInt(_0x62220b(0x170))/0x6+-parseInt(_0x62220b(0x148))/0x7*(parseInt(_0x62220b(0x180))/0x8)+-parseInt(_0x62220b(0x143))/0x9*(-parseInt(_0x62220b(0x166))/0xa)+parseInt(_0x62220b(0x191))/0xb;if(_0x4a5766===_0x5174b2)break;else _0x535e05['push'](_0x535e05['shift']());}catch(_0x527808){_0x535e05['push'](_0x535e05['shift']());}}}(_0x2c6a,0xd9de3),function(_0x497bec,_0x29caf3){const _0x4420ac=_0x2fec;typeof exports==_0x4420ac(0x16b)&&typeof module<'u'?_0x29caf3(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x4420ac(0x162)&&define[_0x4420ac(0x188)]?define([_0x4420ac(0x14e),'@univerjs-pro/exchange-client','@univerjs/core',_0x4420ac(0x145),_0x4420ac(0x17b),_0x4420ac(0x152)],_0x29caf3):(_0x497bec=typeof globalThis<'u'?globalThis:_0x497bec||self,_0x29caf3(_0x497bec[_0x4420ac(0x156)]={},_0x497bec[_0x4420ac(0x155)],_0x497bec[_0x4420ac(0x149)],_0x497bec['UniverUi'],_0x497bec[_0x4420ac(0x169)],_0x497bec[_0x4420ac(0x15c)]));}(this,function(_0x407237,_0x245393,_0xc1c231,_0x22ce32,_0x1592a9,_0x5a2847){'use strict';const _0x1403f2=_0x2fec;const _0x292195={'id':'exchange-client.operation.import-xlsx','type':_0xc1c231[_0x1403f2(0x158)]['OPERATION'],'handler':async _0x5df689=>{const _0x2bd901=_0x1403f2,_0xe00343=_0x5df689[_0x2bd901(0x17e)](_0x245393['IExchangeOperateService']);return new URLSearchParams(location[_0x2bd901(0x185)])['get'](_0x2bd901(0x16c))?_0xe00343['importXLSXToUnitId']():_0xe00343[_0x2bd901(0x18b)](),!0x0;}},_0x526a2a={'id':_0x1403f2(0x161),'type':_0xc1c231[_0x1403f2(0x158)][_0x1403f2(0x173)],'handler':async _0x5ba038=>{const _0x1d3b00=_0x1403f2,_0x58cac4=_0x5ba038['get'](_0x245393[_0x1d3b00(0x179)]);return new URLSearchParams(location[_0x1d3b00(0x185)])[_0x1d3b00(0x17e)](_0x1d3b00(0x16c))?_0x58cac4[_0x1d3b00(0x168)]():_0x58cac4[_0x1d3b00(0x160)](),!0x0;}},_0x51fd5b=_0x1403f2(0x14a),_0x428866={},_0x4c447f=_0x1403f2(0x177);function _0x53df62(_0x566a7c){const _0x1c184b=_0x1403f2;return{'id':_0x4c447f,'type':_0x22ce32[_0x1c184b(0x183)][_0x1c184b(0x175)],'icon':_0x1c184b(0x151),'tooltip':_0x1c184b(0x16f),'hidden$':_0x22ce32[_0x1c184b(0x144)](_0x566a7c,_0xc1c231[_0x1c184b(0x190)]['UNIVER_SHEET']),'disabled$':_0x5a2847[_0x1c184b(0x14d)](_0x566a7c,{'workbookTypes':[_0x1592a9[_0x1c184b(0x159)]]})};}function _0x529a09(){const _0x2e462d=_0x1403f2;return{'id':_0x292195['id'],'type':_0x22ce32[_0x2e462d(0x183)][_0x2e462d(0x171)],'title':'exchange.upload','icon':_0x2e462d(0x18d)};}function _0x311a91(){const _0x5c50bc=_0x1403f2;return{'id':_0x526a2a['id'],'type':_0x22ce32['MenuItemType']['BUTTON'],'title':'exchange.download','icon':_0x5c50bc(0x157)};}const _0x3e3dc6={[_0x22ce32[_0x1403f2(0x189)]['OTHERS']]:{[_0x4c447f]:{'order':0.3,'menuItemFactory':_0x53df62,[_0x292195['id']]:{'order':0x0,'menuItemFactory':_0x529a09},[_0x526a2a['id']]:{'order':0x1,'menuItemFactory':_0x311a91}}}};var _0x212094=Object[_0x1403f2(0x150)],_0x24e330=(_0x540a1e,_0x505748,_0x4820e5,_0x1ea382)=>{const _0x537664=_0x1403f2;for(var _0x21a239=_0x1ea382>0x1?void 0x0:_0x1ea382?_0x212094(_0x505748,_0x4820e5):_0x505748,_0x2abdd2=_0x540a1e[_0x537664(0x17c)]-0x1,_0x26d4a4;_0x2abdd2>=0x0;_0x2abdd2--)(_0x26d4a4=_0x540a1e[_0x2abdd2])&&(_0x21a239=_0x26d4a4(_0x21a239)||_0x21a239);return _0x21a239;},_0x3aadf9=(_0x5e3f66,_0x433291)=>(_0x24c8c5,_0x432406)=>_0x433291(_0x24c8c5,_0x432406,_0x5e3f66);let _0x4c5c0c=class extends _0xc1c231[_0x1403f2(0x16e)]{constructor(_0x378ad6,_0x277595){const _0x1d63eb=_0x1403f2;super(),this['_commandService']=_0x378ad6,this[_0x1d63eb(0x15f)]=_0x277595,this[_0x1d63eb(0x14c)](),this[_0x1d63eb(0x17a)]();}[_0x1403f2(0x14c)](){const _0x42938d=_0x1403f2;[_0x292195,_0x526a2a][_0x42938d(0x154)](_0x1bddca=>{const _0x35507a=_0x42938d;this[_0x35507a(0x184)](this[_0x35507a(0x15d)][_0x35507a(0x18e)](_0x1bddca));});}[_0x1403f2(0x17a)](){const _0x546a9b=_0x1403f2;this['_menuManagerService'][_0x546a9b(0x14b)](_0x3e3dc6);}};_0x4c5c0c=_0x24e330([_0x3aadf9(0x0,_0xc1c231[_0x1403f2(0x16a)]),_0x3aadf9(0x1,_0x22ce32[_0x1403f2(0x178)])],_0x4c5c0c);var _0x499244=Object[_0x1403f2(0x172)],_0x133f4c=Object[_0x1403f2(0x150)],_0x18549d=(_0x5dc77a,_0x4ccf4e,_0x4fa67d)=>_0x4ccf4e in _0x5dc77a?_0x499244(_0x5dc77a,_0x4ccf4e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4fa67d}):_0x5dc77a[_0x4ccf4e]=_0x4fa67d,_0x22b7b4=(_0x3f1f4d,_0x4f26fe,_0xe037a1,_0x1727a1)=>{for(var _0x211d2b=_0x1727a1>0x1?void 0x0:_0x1727a1?_0x133f4c(_0x4f26fe,_0xe037a1):_0x4f26fe,_0x43b3c1=_0x3f1f4d['length']-0x1,_0x530c65;_0x43b3c1>=0x0;_0x43b3c1--)(_0x530c65=_0x3f1f4d[_0x43b3c1])&&(_0x211d2b=_0x530c65(_0x211d2b)||_0x211d2b);return _0x211d2b;},_0x43d3f2=(_0x192052,_0x621b9f)=>(_0x2582d1,_0xebd320)=>_0x621b9f(_0x2582d1,_0xebd320,_0x192052),_0x3324e8=(_0x53add9,_0x32c4ac,_0x2032b7)=>_0x18549d(_0x53add9,typeof _0x32c4ac!=_0x1403f2(0x174)?_0x32c4ac+'':_0x32c4ac,_0x2032b7);const _0x5bcac2=_0x1403f2(0x195);_0x407237[_0x1403f2(0x15a)]=class extends _0xc1c231[_0x1403f2(0x15b)]{constructor(_0x407937=_0x428866,_0x5558a0,_0xe9cef8){const _0x5d9273=_0x1403f2;super(),this[_0x5d9273(0x16d)]=_0x407937,this['_injector']=_0x5558a0,this[_0x5d9273(0x17d)]=_0xe9cef8;const {menu:_0x9cf383,..._0x357c86}=_0xc1c231['merge']({},_0x428866,this[_0x5d9273(0x16d)]);_0x9cf383&&this[_0x5d9273(0x17d)][_0x5d9273(0x18c)](_0x5d9273(0x164),_0x9cf383,{'merge':!0x0}),this['_configService'][_0x5d9273(0x18c)](_0x51fd5b,_0x357c86);}['onStarting'](){const _0x3ea88b=_0x1403f2;[[_0x4c5c0c]][_0x3ea88b(0x154)](_0x5798c7=>this['_injector'][_0x3ea88b(0x146)](_0x5798c7));}[_0x1403f2(0x14f)](){const _0x3372f9=_0x1403f2;this[_0x3372f9(0x181)][_0x3372f9(0x17e)](_0x4c5c0c);}},_0x3324e8(_0x407237['UniverSheetsExchangeClientPlugin'],_0x1403f2(0x176),_0x5bcac2),_0x3324e8(_0x407237[_0x1403f2(0x15a)],_0x1403f2(0x147),_0xc1c231[_0x1403f2(0x190)][_0x1403f2(0x17f)]),_0x407237[_0x1403f2(0x15a)]=_0x22b7b4([_0xc1c231[_0x1403f2(0x165)](_0x245393[_0x1403f2(0x194)]),_0x43d3f2(0x1,_0xc1c231['Inject'](_0xc1c231[_0x1403f2(0x18a)])),_0x43d3f2(0x2,_0xc1c231[_0x1403f2(0x187)])],_0x407237['UniverSheetsExchangeClientPlugin']),_0x407237[_0x1403f2(0x167)]=_0x526a2a,_0x407237[_0x1403f2(0x15e)]=_0x292195,Object[_0x1403f2(0x172)](_0x407237,Symbol[_0x1403f2(0x193)],{'value':_0x1403f2(0x182)});}));function _0x2c6a(){const _0x56a96d=['defineProperty','OPERATION','symbol','SUBITEMS','pluginName','sheets-exchange-client.operation.exchange','IMenuManagerService','IExchangeOperateService','_initMenus','@univerjs/sheets','length','_configService','get','UNIVER_SHEET','8xKZrnG','_injector','Module','MenuItemType','disposeWithMe','search','4746815qySdBa','IConfigService','amd','RibbonStartGroup','Injector','importXLSXToSnapshot','setConfig','FolderIcon','registerCommand','375267idzFir','UniverInstanceType','62112908NXHeKu','108ndyNpX','toStringTag','UniverExchangeClientPlugin','SHEET_EXCHANGE_CLIENT_PLUGIN','5688FJUmdC','getMenuHiddenObservable','@univerjs/ui','add','type','11917101BxsxDa','UniverCore','sheets-exchange-client.config','mergeMenu','_initCommands','getCurrentRangeDisable$','exports','onReady','getOwnPropertyDescriptor','DirectExportIcon','@univerjs/sheets-ui','154821BCnlfo','forEach','UniverProExchangeClient','UniverProSheetsExchangeClient','ExportIcon','CommandType','WorkbookExportPermission','UniverSheetsExchangeClientPlugin','Plugin','UniverSheetsUi','_commandService','ImportXLSXOperation','_menuManagerService','exportXLSXBySnapshot','exchange-client.operation.export-xlsx','function','2yyIelU','menu','DependentOn','21430fRwNrC','ExportXLSXOperation','exportXLSXByUnitId','UniverSheets','ICommandService','object','unit','_config','Disposable','exchange.file','10128930VtRhjK','BUTTON'];_0x2c6a=function(){return _0x56a96d;};return _0x2c6a();}
1
+ function _0x4fbe(_0x1a7884,_0x3e8535){_0x1a7884=_0x1a7884-0xc5;const _0x5ded9f=_0x5ded();let _0x4fbea4=_0x5ded9f[_0x1a7884];return _0x4fbea4;}function _0x5ded(){const _0x25a41d=['RibbonStartGroup','UniverInstanceType','type','_menuManagerService','14763612rLlmlA','_commandService','sheets-exchange-client.config','add','11PdmtCt','12MHBAuV','WorkbookExportPermission','exchange.file','UniverProExchangeClient','@univerjs/core','unit','434041oaSyZu','_configService','setConfig','UniverSheetsUi','disposeWithMe','OTHERS','importXLSXToSnapshot','length','@univerjs/ui','registerCommand','getOwnPropertyDescriptor','Injector','ImportXLSXOperation','14229PWPcgd','@univerjs-pro/exchange-client','1627700COJwrk','BUTTON','sheets-exchange-client.operation.exchange','exchange.upload','exports','IMenuManagerService','exchange.download','exchange-client.operation.export-xlsx','exportXLSXBySnapshot','UniverSheets','importXLSXToUnitId','search','forEach','defineProperty','DependentOn','2450mwRKMK','165930PZlzhh','get','2ILGVrl','exchange-client.operation.import-xlsx','UNIVER_SHEET','Disposable','menu','toStringTag','OPERATION','CommandType','mergeMenu','UniverSheetsExchangeClientPlugin','IConfigService','amd','getMenuHiddenObservable','pluginName','MenuItemType','ExportXLSXOperation','100376wNMiHm','_initMenus','_initCommands','Module','@univerjs/sheets-ui','ExportIcon','1090850DLmOor','SHEET_EXCHANGE_CLIENT_PLUGIN','object','91NJcuAR','UniverCore','SUBITEMS','function'];_0x5ded=function(){return _0x25a41d;};return _0x5ded();}(function(_0x2c1bfe,_0x2c9579){const _0x4727ca=_0x4fbe,_0x2848d7=_0x2c1bfe();while(!![]){try{const _0x52117d=-parseInt(_0x4727ca(0xd7))/0x1+parseInt(_0x4727ca(0xf8))/0x2*(-parseInt(_0x4727ca(0xf6))/0x3)+-parseInt(_0x4727ca(0xe6))/0x4+parseInt(_0x4727ca(0x10e))/0x5*(parseInt(_0x4727ca(0xd1))/0x6)+parseInt(_0x4727ca(0x111))/0x7*(-parseInt(_0x4727ca(0x108))/0x8)+parseInt(_0x4727ca(0xe4))/0x9*(-parseInt(_0x4727ca(0xf5))/0xa)+-parseInt(_0x4727ca(0xd0))/0xb*(-parseInt(_0x4727ca(0xcc))/0xc);if(_0x52117d===_0x2c9579)break;else _0x2848d7['push'](_0x2848d7['shift']());}catch(_0x437e1e){_0x2848d7['push'](_0x2848d7['shift']());}}}(_0x5ded,0x35b05),function(_0x204ff4,_0x3db87d){const _0x2b77c3=_0x4fbe;typeof exports==_0x2b77c3(0x110)&&typeof module<'u'?_0x3db87d(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x2b77c3(0xc7)&&define[_0x2b77c3(0x103)]?define([_0x2b77c3(0xea),_0x2b77c3(0xe5),_0x2b77c3(0xd5),_0x2b77c3(0xdf),'@univerjs/sheets',_0x2b77c3(0x10c)],_0x3db87d):(_0x204ff4=typeof globalThis<'u'?globalThis:_0x204ff4||self,_0x3db87d(_0x204ff4['UniverProSheetsExchangeClient']={},_0x204ff4[_0x2b77c3(0xd4)],_0x204ff4[_0x2b77c3(0xc5)],_0x204ff4['UniverUi'],_0x204ff4[_0x2b77c3(0xef)],_0x204ff4[_0x2b77c3(0xda)]));}(this,function(_0x2a238a,_0x2b14d2,_0x2cc84e,_0xc8b8c5,_0x284592,_0x515e28){'use strict';const _0x991ce3=_0x4fbe;const _0x520168={'id':_0x991ce3(0xf9),'type':_0x2cc84e[_0x991ce3(0xff)][_0x991ce3(0xfe)],'handler':async _0x1f6609=>{const _0xc603e2=_0x991ce3,_0x2259a2=_0x1f6609['get'](_0x2b14d2['IExchangeOperateService']);return new URLSearchParams(location[_0xc603e2(0xf1)])[_0xc603e2(0xf7)](_0xc603e2(0xd6))?_0x2259a2[_0xc603e2(0xf0)]():_0x2259a2[_0xc603e2(0xdd)](),!0x0;}},_0x4f59be={'id':_0x991ce3(0xed),'type':_0x2cc84e['CommandType'][_0x991ce3(0xfe)],'handler':async _0x131e9d=>{const _0x1718da=_0x991ce3,_0x12ad4e=_0x131e9d['get'](_0x2b14d2['IExchangeOperateService']);return new URLSearchParams(location['search'])['get']('unit')?_0x12ad4e['exportXLSXByUnitId']():_0x12ad4e[_0x1718da(0xee)](),!0x0;}},_0x117082=_0x991ce3(0xce),_0x2c7787={},_0x338288=_0x991ce3(0xe8);function _0x4b6c01(_0x20744a){const _0xa6907b=_0x991ce3;return{'id':_0x338288,'type':_0xc8b8c5['MenuItemType'][_0xa6907b(0xc6)],'icon':'DirectExportIcon','tooltip':_0xa6907b(0xd3),'hidden$':_0xc8b8c5[_0xa6907b(0x104)](_0x20744a,_0x2cc84e[_0xa6907b(0xc9)][_0xa6907b(0xfa)]),'disabled$':_0x515e28['getCurrentRangeDisable$'](_0x20744a,{'workbookTypes':[_0x284592[_0xa6907b(0xd2)]]})};}function _0x664c8a(){const _0x2a3ae2=_0x991ce3;return{'id':_0x520168['id'],'type':_0xc8b8c5[_0x2a3ae2(0x106)]['BUTTON'],'title':_0x2a3ae2(0xe9),'icon':'FolderIcon'};}function _0x5e3eb9(){const _0x1f4148=_0x991ce3;return{'id':_0x4f59be['id'],'type':_0xc8b8c5['MenuItemType'][_0x1f4148(0xe7)],'title':_0x1f4148(0xec),'icon':_0x1f4148(0x10d)};}const _0x457a1b={[_0xc8b8c5[_0x991ce3(0xc8)][_0x991ce3(0xdc)]]:{[_0x338288]:{'order':0.3,'menuItemFactory':_0x4b6c01,[_0x520168['id']]:{'order':0x0,'menuItemFactory':_0x664c8a},[_0x4f59be['id']]:{'order':0x1,'menuItemFactory':_0x5e3eb9}}}};var _0x554798=Object[_0x991ce3(0xe1)],_0x51c213=(_0x56d117,_0x38e85f,_0x2e834b,_0x2a9a29)=>{for(var _0x1695fd=_0x2a9a29>0x1?void 0x0:_0x2a9a29?_0x554798(_0x38e85f,_0x2e834b):_0x38e85f,_0x3cbefd=_0x56d117['length']-0x1,_0x51f67d;_0x3cbefd>=0x0;_0x3cbefd--)(_0x51f67d=_0x56d117[_0x3cbefd])&&(_0x1695fd=_0x51f67d(_0x1695fd)||_0x1695fd);return _0x1695fd;},_0x2dc6f8=(_0x37168d,_0x1c8c69)=>(_0x380304,_0x509408)=>_0x1c8c69(_0x380304,_0x509408,_0x37168d);let _0x59e09c=class extends _0x2cc84e[_0x991ce3(0xfb)]{constructor(_0x25d497,_0x4d14c3){const _0x2f24d1=_0x991ce3;super(),this[_0x2f24d1(0xcd)]=_0x25d497,this[_0x2f24d1(0xcb)]=_0x4d14c3,this[_0x2f24d1(0x10a)](),this[_0x2f24d1(0x109)]();}[_0x991ce3(0x10a)](){[_0x520168,_0x4f59be]['forEach'](_0x35e5e5=>{const _0x5a7cd5=_0x4fbe;this[_0x5a7cd5(0xdb)](this['_commandService'][_0x5a7cd5(0xe0)](_0x35e5e5));});}[_0x991ce3(0x109)](){const _0x57568e=_0x991ce3;this[_0x57568e(0xcb)][_0x57568e(0x100)](_0x457a1b);}};_0x59e09c=_0x51c213([_0x2dc6f8(0x0,_0x2cc84e['ICommandService']),_0x2dc6f8(0x1,_0xc8b8c5[_0x991ce3(0xeb)])],_0x59e09c);var _0x288084=Object[_0x991ce3(0xf3)],_0x16bac1=Object[_0x991ce3(0xe1)],_0x4d89d9=(_0x5bf406,_0x309845,_0x5697d4)=>_0x309845 in _0x5bf406?_0x288084(_0x5bf406,_0x309845,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5697d4}):_0x5bf406[_0x309845]=_0x5697d4,_0x4f26fd=(_0x1dc3db,_0x130585,_0x3d5402,_0x44491d)=>{const _0x22d35f=_0x991ce3;for(var _0x33aca8=_0x44491d>0x1?void 0x0:_0x44491d?_0x16bac1(_0x130585,_0x3d5402):_0x130585,_0x7106ac=_0x1dc3db[_0x22d35f(0xde)]-0x1,_0x3b0f6d;_0x7106ac>=0x0;_0x7106ac--)(_0x3b0f6d=_0x1dc3db[_0x7106ac])&&(_0x33aca8=_0x3b0f6d(_0x33aca8)||_0x33aca8);return _0x33aca8;},_0x1d2444=(_0x335e95,_0x1f6603)=>(_0x2a897a,_0x2a0462)=>_0x1f6603(_0x2a897a,_0x2a0462,_0x335e95),_0x168d0c=(_0x27158a,_0x44623d,_0x2617f0)=>_0x4d89d9(_0x27158a,typeof _0x44623d!='symbol'?_0x44623d+'':_0x44623d,_0x2617f0);const _0x55c640=_0x991ce3(0x10f);_0x2a238a[_0x991ce3(0x101)]=class extends _0x2cc84e['Plugin']{constructor(_0x31f9f3=_0x2c7787,_0x52df15,_0x236c75){const _0x3ff5b6=_0x991ce3;super(),this['_config']=_0x31f9f3,this['_injector']=_0x52df15,this[_0x3ff5b6(0xd8)]=_0x236c75;const {menu:_0x47df19,..._0x4fe4b8}=_0x2cc84e['merge']({},_0x2c7787,this['_config']);_0x47df19&&this[_0x3ff5b6(0xd8)][_0x3ff5b6(0xd9)](_0x3ff5b6(0xfc),_0x47df19,{'merge':!0x0}),this[_0x3ff5b6(0xd8)]['setConfig'](_0x117082,_0x4fe4b8);}['onStarting'](){const _0x46926d=_0x991ce3;[[_0x59e09c]][_0x46926d(0xf2)](_0x2a6050=>this['_injector'][_0x46926d(0xcf)](_0x2a6050));}['onReady'](){const _0x14bdca=_0x991ce3;this['_injector'][_0x14bdca(0xf7)](_0x59e09c);}},_0x168d0c(_0x2a238a['UniverSheetsExchangeClientPlugin'],_0x991ce3(0x105),_0x55c640),_0x168d0c(_0x2a238a['UniverSheetsExchangeClientPlugin'],_0x991ce3(0xca),_0x2cc84e[_0x991ce3(0xc9)][_0x991ce3(0xfa)]),_0x2a238a[_0x991ce3(0x101)]=_0x4f26fd([_0x2cc84e[_0x991ce3(0xf4)](_0x2b14d2['UniverExchangeClientPlugin']),_0x1d2444(0x1,_0x2cc84e['Inject'](_0x2cc84e[_0x991ce3(0xe2)])),_0x1d2444(0x2,_0x2cc84e[_0x991ce3(0x102)])],_0x2a238a[_0x991ce3(0x101)]),_0x2a238a[_0x991ce3(0x107)]=_0x4f59be,_0x2a238a[_0x991ce3(0xe3)]=_0x520168,Object[_0x991ce3(0xf3)](_0x2a238a,Symbol[_0x991ce3(0xfd)],{'value':_0x991ce3(0x10b)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.15.0-insiders.20260106-79b11f9",
3
+ "version": "0.15.0-insiders.20260107-3441c7a",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -42,11 +42,11 @@
42
42
  "lib"
43
43
  ],
44
44
  "dependencies": {
45
- "@univerjs-pro/exchange-client": "0.15.0-insiders.20260106-79b11f9",
46
- "@univerjs/core": "0.15.0-insiders.20260106-79b11f9",
47
- "@univerjs/sheets": "0.15.0-insiders.20260106-79b11f9",
48
- "@univerjs/sheets-ui": "0.15.0-insiders.20260106-79b11f9",
49
- "@univerjs/ui": "0.15.0-insiders.20260106-79b11f9"
45
+ "@univerjs-pro/exchange-client": "0.15.0-insiders.20260107-3441c7a",
46
+ "@univerjs/core": "0.15.0-insiders.20260107-3441c7a",
47
+ "@univerjs/sheets": "0.15.0-insiders.20260107-3441c7a",
48
+ "@univerjs/sheets-ui": "0.15.0-insiders.20260107-3441c7a",
49
+ "@univerjs/ui": "0.15.0-insiders.20260107-3441c7a"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",