@univerjs-pro/sheets-exchange-client 0.15.0 → 0.15.1

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 _0x28607e=_0x4fe9;(function(_0x3ed2ed,_0x1641fc){const _0x416234=_0x4fe9,_0x85989b=_0x3ed2ed();while(!![]){try{const _0x4adb10=-parseInt(_0x416234(0x1b6))/0x1*(parseInt(_0x416234(0x1b5))/0x2)+-parseInt(_0x416234(0x1e5))/0x3+parseInt(_0x416234(0x1e6))/0x4+-parseInt(_0x416234(0x1bc))/0x5+parseInt(_0x416234(0x1b4))/0x6+-parseInt(_0x416234(0x1b3))/0x7*(parseInt(_0x416234(0x1d5))/0x8)+parseInt(_0x416234(0x1ce))/0x9;if(_0x4adb10===_0x1641fc)break;else _0x85989b['push'](_0x85989b['shift']());}catch(_0x3342fd){_0x85989b['push'](_0x85989b['shift']());}}}(_0x34b1,0xeaaf9));function _0x4fe9(_0x5481ee,_0x3b3ee2){_0x5481ee=_0x5481ee-0x1aa;const _0x34b188=_0x34b1();let _0x4fe901=_0x34b188[_0x5481ee];return _0x4fe901;}Object[_0x28607e(0x1b1)](exports,Symbol['toStringTag'],{'value':'Module'});const g=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),c=require('@univerjs/ui'),_=require('@univerjs/sheets'),I=require('@univerjs/sheets-ui'),l={'id':'exchange-client.operation.import-xlsx','type':i['CommandType']['OPERATION'],'handler':async _0x167fa9=>{const _0x34b8fe=_0x28607e,_0x5becf7=_0x167fa9['get'](g[_0x34b8fe(0x1b0)]);return new URLSearchParams(location[_0x34b8fe(0x1be)])[_0x34b8fe(0x1cc)](_0x34b8fe(0x1c5))?_0x5becf7[_0x34b8fe(0x1db)]():_0x5becf7[_0x34b8fe(0x1d7)](),!0x0;}},p={'id':_0x28607e(0x1ac),'type':i[_0x28607e(0x1c6)][_0x28607e(0x1bf)],'handler':async _0x365e18=>{const _0x5ec2f8=_0x28607e,_0x4c4929=_0x365e18[_0x5ec2f8(0x1cc)](g[_0x5ec2f8(0x1b0)]);return new URLSearchParams(location['search'])[_0x5ec2f8(0x1cc)](_0x5ec2f8(0x1c5))?_0x4c4929[_0x5ec2f8(0x1b9)]():_0x4c4929[_0x5ec2f8(0x1de)](),!0x0;}},v='sheets-exchange-client.config',h={},S=_0x28607e(0x1ca);function _0x34b1(){const _0x575485=['UniverSheetsExchangeClientPlugin','UniverExchangeClientPlugin','_injector','unit','CommandType','exchange.download','setConfig','exchange.file','sheets-exchange-client.operation.exchange','SHEET_EXCHANGE_CLIENT_PLUGIN','get','ImportXLSXOperation','20707839WPtQXd','getCurrentRangeDisable$','UNIVER_SHEET','_configService','DependentOn','length','_commandService','32NWNfpl','Plugin','importXLSXToSnapshot','getOwnPropertyDescriptor','disposeWithMe','Inject','importXLSXToUnitId','_initMenus','Disposable','exportXLSXBySnapshot','registerCommand','Injector','_initCommands','RibbonStartGroup','menu','SUBITEMS','1671726GVwGHp','2608308YcEYSN','BUTTON','IMenuManagerService','exchange-client.operation.export-xlsx','UniverInstanceType','IConfigService','_config','IExchangeOperateService','defineProperty','DirectExportIcon','459263FhoSIm','5648898fTuclu','2tpXIJP','426514rkTCTE','mergeMenu','MenuItemType','exportXLSXByUnitId','exchange.upload','forEach','8434830BRIOSh','onStarting','search','OPERATION','_menuManagerService','type'];_0x34b1=function(){return _0x575485;};return _0x34b1();}function x(_0x18154e){const _0x56a97c=_0x28607e;return{'id':S,'type':c['MenuItemType'][_0x56a97c(0x1e4)],'icon':_0x56a97c(0x1b2),'tooltip':_0x56a97c(0x1c9),'hidden$':c['getMenuHiddenObservable'](_0x18154e,i['UniverInstanceType'][_0x56a97c(0x1d0)]),'disabled$':I[_0x56a97c(0x1cf)](_0x18154e,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x3f5a6a=_0x28607e;return{'id':l['id'],'type':c[_0x3f5a6a(0x1b8)][_0x3f5a6a(0x1aa)],'title':_0x3f5a6a(0x1ba),'icon':'FolderIcon'};}function C(){const _0x357437=_0x28607e;return{'id':p['id'],'type':c[_0x357437(0x1b8)][_0x357437(0x1aa)],'title':_0x357437(0x1c7),'icon':'ExportIcon'};}const f={[c[_0x28607e(0x1e2)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x28607e(0x1d8)],y=(_0x58b14a,_0x4a3a00,_0xc15ec2,_0x229d99)=>{const _0x5d60e9=_0x28607e;for(var _0x4470a2=_0x229d99>0x1?void 0x0:_0x229d99?T(_0x4a3a00,_0xc15ec2):_0x4a3a00,_0x172c2f=_0x58b14a[_0x5d60e9(0x1d3)]-0x1,_0x419d87;_0x172c2f>=0x0;_0x172c2f--)(_0x419d87=_0x58b14a[_0x172c2f])&&(_0x4470a2=_0x419d87(_0x4470a2)||_0x4470a2);return _0x4470a2;},m=(_0x16faf4,_0x3ef1e9)=>(_0x4da4b0,_0x2c4f2f)=>_0x3ef1e9(_0x4da4b0,_0x2c4f2f,_0x16faf4);let u=class extends i[_0x28607e(0x1dd)]{constructor(_0x5a33ee,_0x569167){const _0x2b94bf=_0x28607e;super(),this[_0x2b94bf(0x1d4)]=_0x5a33ee,this[_0x2b94bf(0x1c0)]=_0x569167,this[_0x2b94bf(0x1e1)](),this[_0x2b94bf(0x1dc)]();}[_0x28607e(0x1e1)](){const _0x45d0cd=_0x28607e;[l,p][_0x45d0cd(0x1bb)](_0x2d60fe=>{const _0x290cfa=_0x45d0cd;this[_0x290cfa(0x1d9)](this['_commandService'][_0x290cfa(0x1df)](_0x2d60fe));});}[_0x28607e(0x1dc)](){const _0x185a05=_0x28607e;this[_0x185a05(0x1c0)][_0x185a05(0x1b7)](f);}};u=y([m(0x0,i['ICommandService']),m(0x1,c[_0x28607e(0x1ab)])],u);var O=Object[_0x28607e(0x1b1)],U=Object[_0x28607e(0x1d8)],X=(_0x2a8875,_0x3a6165,_0x301b91)=>_0x3a6165 in _0x2a8875?O(_0x2a8875,_0x3a6165,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x301b91}):_0x2a8875[_0x3a6165]=_0x301b91,N=(_0x594b00,_0x4b3224,_0x180db6,_0x463ef0)=>{for(var _0x54a157=_0x463ef0>0x1?void 0x0:_0x463ef0?U(_0x4b3224,_0x180db6):_0x4b3224,_0xbd06b6=_0x594b00['length']-0x1,_0x55ca71;_0xbd06b6>=0x0;_0xbd06b6--)(_0x55ca71=_0x594b00[_0xbd06b6])&&(_0x54a157=_0x55ca71(_0x54a157)||_0x54a157);return _0x54a157;},d=(_0x1a0a0a,_0x5cdbf8)=>(_0x3d5034,_0x4ad64e)=>_0x5cdbf8(_0x3d5034,_0x4ad64e,_0x1a0a0a),E=(_0x3d4c5d,_0x375ea9,_0x144996)=>X(_0x3d4c5d,typeof _0x375ea9!='symbol'?_0x375ea9+'':_0x375ea9,_0x144996);const L=_0x28607e(0x1cb);exports[_0x28607e(0x1c2)]=class extends i[_0x28607e(0x1d6)]{constructor(_0x37b00a=h,_0x5cd1c1,_0x36225f){const _0x20a88d=_0x28607e;super(),this[_0x20a88d(0x1af)]=_0x37b00a,this[_0x20a88d(0x1c4)]=_0x5cd1c1,this[_0x20a88d(0x1d1)]=_0x36225f;const {menu:_0x54401e,..._0x3516bc}=i['merge']({},h,this[_0x20a88d(0x1af)]);_0x54401e&&this['_configService']['setConfig'](_0x20a88d(0x1e3),_0x54401e,{'merge':!0x0}),this[_0x20a88d(0x1d1)][_0x20a88d(0x1c8)](v,_0x3516bc);}[_0x28607e(0x1bd)](){const _0x417b72=_0x28607e;[[u]][_0x417b72(0x1bb)](_0x291150=>this['_injector']['add'](_0x291150));}['onReady'](){const _0x2b2b45=_0x28607e;this['_injector'][_0x2b2b45(0x1cc)](u);}},E(exports[_0x28607e(0x1c2)],'pluginName',L),E(exports[_0x28607e(0x1c2)],_0x28607e(0x1c1),i[_0x28607e(0x1ad)][_0x28607e(0x1d0)]),exports[_0x28607e(0x1c2)]=N([i[_0x28607e(0x1d2)](g[_0x28607e(0x1c3)]),d(0x1,i[_0x28607e(0x1da)](i[_0x28607e(0x1e0)])),d(0x2,i[_0x28607e(0x1ae)])],exports[_0x28607e(0x1c2)]),exports['ExportXLSXOperation']=p,exports[_0x28607e(0x1cd)]=l;
1
+ 'use strict';const _0x396984=_0x4b9d;(function(_0x2ea6ae,_0xa3b678){const _0x45dcaa=_0x4b9d,_0x1c9709=_0x2ea6ae();while(!![]){try{const _0x248cbf=-parseInt(_0x45dcaa(0xa4))/0x1+-parseInt(_0x45dcaa(0x90))/0x2*(parseInt(_0x45dcaa(0xb8))/0x3)+-parseInt(_0x45dcaa(0xba))/0x4*(-parseInt(_0x45dcaa(0x98))/0x5)+-parseInt(_0x45dcaa(0xbf))/0x6*(parseInt(_0x45dcaa(0xb1))/0x7)+parseInt(_0x45dcaa(0x99))/0x8+-parseInt(_0x45dcaa(0xab))/0x9+parseInt(_0x45dcaa(0xa5))/0xa;if(_0x248cbf===_0xa3b678)break;else _0x1c9709['push'](_0x1c9709['shift']());}catch(_0x14aac3){_0x1c9709['push'](_0x1c9709['shift']());}}}(_0x7e1b,0x61816));function _0x7e1b(){const _0x4333b9=['CommandType','length','importXLSXToSnapshot','setConfig','42kKGqoR','FolderIcon','forEach','Disposable','sheets-exchange-client.config','OPERATION','_config','unit','UniverInstanceType','exportXLSXByUnitId','registerCommand','_initMenus','disposeWithMe','168052EvZvAe','exportXLSXBySnapshot','RibbonStartGroup','symbol','ExportXLSXOperation','type','UniverExchangeClientPlugin','Injector','2120CxkyZf','2431848pMZRsl','Plugin','exchange.upload','UNIVER_SHEET','UniverSheetsExchangeClientPlugin','get','toStringTag','defineProperty','MenuItemType','_commandService','WorkbookExportPermission','670739BdzvoA','14308310hqTRyn','merge','IExchangeOperateService','SHEET_EXCHANGE_CLIENT_PLUGIN','BUTTON','ICommandService','4346784IOTwKX','exchange.download','SUBITEMS','exchange.file','Module','exchange-client.operation.import-xlsx','546833sCzOsR','exchange-client.operation.export-xlsx','_injector','pluginName','onStarting','getCurrentRangeDisable$','getOwnPropertyDescriptor','15SmqLam','onReady','7408GuIbTl'];_0x7e1b=function(){return _0x4333b9;};return _0x7e1b();}Object[_0x396984(0xa0)](exports,Symbol[_0x396984(0x9f)],{'value':_0x396984(0xaf)});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':_0x396984(0xb0),'type':i[_0x396984(0xbb)]['OPERATION'],'handler':async _0x2f235e=>{const _0x1cd456=_0x396984,_0x522fb5=_0x2f235e[_0x1cd456(0x9e)](g[_0x1cd456(0xa7)]);return new URLSearchParams(location['search'])[_0x1cd456(0x9e)]('unit')?_0x522fb5['importXLSXToUnitId']():_0x522fb5[_0x1cd456(0xbd)](),!0x0;}},p={'id':_0x396984(0xb2),'type':i['CommandType'][_0x396984(0xc4)],'handler':async _0x9ce546=>{const _0x1ef0ba=_0x396984,_0x15bc62=_0x9ce546[_0x1ef0ba(0x9e)](g[_0x1ef0ba(0xa7)]);return new URLSearchParams(location['search'])[_0x1ef0ba(0x9e)](_0x1ef0ba(0xc6))?_0x15bc62[_0x1ef0ba(0xc8)]():_0x15bc62[_0x1ef0ba(0x91)](),!0x0;}},v=_0x396984(0xc3),h={},S='sheets-exchange-client.operation.exchange';function x(_0x529306){const _0x4eaace=_0x396984;return{'id':S,'type':c[_0x4eaace(0xa1)][_0x4eaace(0xad)],'icon':'DirectExportIcon','tooltip':_0x4eaace(0xae),'hidden$':c['getMenuHiddenObservable'](_0x529306,i[_0x4eaace(0xc7)][_0x4eaace(0x9c)]),'disabled$':I[_0x4eaace(0xb6)](_0x529306,{'workbookTypes':[_[_0x4eaace(0xa3)]]})};}function P(){const _0x1bdd3d=_0x396984;return{'id':l['id'],'type':c['MenuItemType']['BUTTON'],'title':_0x1bdd3d(0x9b),'icon':_0x1bdd3d(0xc0)};}function C(){const _0xbc8756=_0x396984;return{'id':p['id'],'type':c[_0xbc8756(0xa1)][_0xbc8756(0xa9)],'title':_0xbc8756(0xac),'icon':'ExportIcon'};}const f={[c[_0x396984(0x92)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x396984(0xb7)],y=(_0x402c81,_0x3f2b10,_0x4b4806,_0x91e811)=>{const _0x1005c4=_0x396984;for(var _0x42ae9d=_0x91e811>0x1?void 0x0:_0x91e811?T(_0x3f2b10,_0x4b4806):_0x3f2b10,_0x6e55c6=_0x402c81[_0x1005c4(0xbc)]-0x1,_0x18c3d1;_0x6e55c6>=0x0;_0x6e55c6--)(_0x18c3d1=_0x402c81[_0x6e55c6])&&(_0x42ae9d=_0x18c3d1(_0x42ae9d)||_0x42ae9d);return _0x42ae9d;},m=(_0x49eea7,_0x2d655c)=>(_0x8d2dbc,_0x5388a0)=>_0x2d655c(_0x8d2dbc,_0x5388a0,_0x49eea7);let u=class extends i[_0x396984(0xc2)]{constructor(_0x620c0a,_0x1a1c27){const _0x28f978=_0x396984;super(),this['_commandService']=_0x620c0a,this['_menuManagerService']=_0x1a1c27,this['_initCommands'](),this[_0x28f978(0xca)]();}['_initCommands'](){[l,p]['forEach'](_0x5e86fb=>{const _0x5e9e36=_0x4b9d;this[_0x5e9e36(0xcb)](this[_0x5e9e36(0xa2)][_0x5e9e36(0xc9)](_0x5e86fb));});}[_0x396984(0xca)](){this['_menuManagerService']['mergeMenu'](f);}};u=y([m(0x0,i[_0x396984(0xaa)]),m(0x1,c['IMenuManagerService'])],u);function _0x4b9d(_0x5a9f79,_0x4e27ed){_0x5a9f79=_0x5a9f79-0x90;const _0x7e1bb2=_0x7e1b();let _0x4b9d39=_0x7e1bb2[_0x5a9f79];return _0x4b9d39;}var O=Object['defineProperty'],U=Object['getOwnPropertyDescriptor'],X=(_0x3243a2,_0x5e3aba,_0x22d2da)=>_0x5e3aba in _0x3243a2?O(_0x3243a2,_0x5e3aba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22d2da}):_0x3243a2[_0x5e3aba]=_0x22d2da,N=(_0x5acd36,_0x5b5e05,_0x19937c,_0x28fc1f)=>{const _0x1bb43b=_0x396984;for(var _0x1ff4ef=_0x28fc1f>0x1?void 0x0:_0x28fc1f?U(_0x5b5e05,_0x19937c):_0x5b5e05,_0x1f102d=_0x5acd36[_0x1bb43b(0xbc)]-0x1,_0x353362;_0x1f102d>=0x0;_0x1f102d--)(_0x353362=_0x5acd36[_0x1f102d])&&(_0x1ff4ef=_0x353362(_0x1ff4ef)||_0x1ff4ef);return _0x1ff4ef;},d=(_0x494d30,_0xd6fbe3)=>(_0x13efc6,_0x476707)=>_0xd6fbe3(_0x13efc6,_0x476707,_0x494d30),E=(_0x17bffb,_0x5c07d5,_0x35cc44)=>X(_0x17bffb,typeof _0x5c07d5!=_0x396984(0x93)?_0x5c07d5+'':_0x5c07d5,_0x35cc44);const L=_0x396984(0xa8);exports[_0x396984(0x9d)]=class extends i[_0x396984(0x9a)]{constructor(_0x325490=h,_0x2f66e4,_0x4d6546){const _0x352fd7=_0x396984;super(),this[_0x352fd7(0xc5)]=_0x325490,this['_injector']=_0x2f66e4,this['_configService']=_0x4d6546;const {menu:_0x1ab3b4,..._0x66cbb6}=i[_0x352fd7(0xa6)]({},h,this[_0x352fd7(0xc5)]);_0x1ab3b4&&this['_configService'][_0x352fd7(0xbe)]('menu',_0x1ab3b4,{'merge':!0x0}),this['_configService']['setConfig'](v,_0x66cbb6);}[_0x396984(0xb5)](){const _0x12d0d6=_0x396984;[[u]][_0x12d0d6(0xc1)](_0x133fec=>this['_injector']['add'](_0x133fec));}[_0x396984(0xb9)](){const _0x44b8de=_0x396984;this[_0x44b8de(0xb3)]['get'](u);}},E(exports['UniverSheetsExchangeClientPlugin'],_0x396984(0xb4),L),E(exports[_0x396984(0x9d)],_0x396984(0x95),i[_0x396984(0xc7)]['UNIVER_SHEET']),exports['UniverSheetsExchangeClientPlugin']=N([i['DependentOn'](g[_0x396984(0x96)]),d(0x1,i['Inject'](i[_0x396984(0x97)])),d(0x2,i['IConfigService'])],exports[_0x396984(0x9d)]),exports[_0x396984(0x94)]=p,exports['ImportXLSXOperation']=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x552f05=_0x4470;(function(_0x4c72c2,_0x28ef06){const _0x49d707=_0x4470,_0x5a95f5=_0x4c72c2();while(!![]){try{const _0x51fd25=parseInt(_0x49d707(0x123))/0x1*(parseInt(_0x49d707(0x125))/0x2)+-parseInt(_0x49d707(0x108))/0x3+-parseInt(_0x49d707(0x112))/0x4*(parseInt(_0x49d707(0x115))/0x5)+-parseInt(_0x49d707(0xff))/0x6*(parseInt(_0x49d707(0x10c))/0x7)+-parseInt(_0x49d707(0x110))/0x8+parseInt(_0x49d707(0x11c))/0x9*(parseInt(_0x49d707(0x105))/0xa)+parseInt(_0x49d707(0x127))/0xb;if(_0x51fd25===_0x28ef06)break;else _0x5a95f5['push'](_0x5a95f5['shift']());}catch(_0x2214c9){_0x5a95f5['push'](_0x5a95f5['shift']());}}}(_0x5242,0xd9484));import{IExchangeOperateService as _0x4b29b1,UniverExchangeClientPlugin as _0x3388d5}from'@univerjs-pro/exchange-client';import{CommandType as _0x1ee1cc,UniverInstanceType as _0x50522d,Disposable as _0xcd3333,ICommandService as _0x24d2df,DependentOn as _0x471c06,Inject as _0x40037d,Injector as _0x7257c1,IConfigService as _0x20c626,Plugin as _0xa7b2bc,merge as _0xbf23a}from'@univerjs/core';import{MenuItemType as _0x2b020d,getMenuHiddenObservable as _0x3b9bc3,RibbonStartGroup as _0x13776f,IMenuManagerService as _0x389c05}from'@univerjs/ui';import{WorkbookExportPermission as _0x4e0d1b}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x40ea56}from'@univerjs/sheets-ui';const p={'id':_0x552f05(0x101),'type':_0x1ee1cc[_0x552f05(0x10e)],'handler':async _0x425f94=>{const _0x29e04d=_0x552f05,_0x4a8908=_0x425f94[_0x29e04d(0x104)](_0x4b29b1);return new URLSearchParams(location[_0x29e04d(0x10d)])[_0x29e04d(0x104)](_0x29e04d(0x103))?_0x4a8908[_0x29e04d(0x113)]():_0x4a8908['importXLSXToSnapshot'](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x1ee1cc[_0x552f05(0x10e)],'handler':async _0x30d399=>{const _0x12238e=_0x552f05,_0x105df3=_0x30d399['get'](_0x4b29b1);return new URLSearchParams(location[_0x12238e(0x10d)])['get']('unit')?_0x105df3[_0x12238e(0x11d)]():_0x105df3[_0x12238e(0x126)](),!0x0;}},H=_0x552f05(0xf8),l={},S=_0x552f05(0x119);function R(_0x50d755){const _0x2f06a5=_0x552f05;return{'id':S,'type':_0x2b020d[_0x2f06a5(0x11a)],'icon':_0x2f06a5(0x10b),'tooltip':'exchange.file','hidden$':_0x3b9bc3(_0x50d755,_0x50522d['UNIVER_SHEET']),'disabled$':_0x40ea56(_0x50d755,{'workbookTypes':[_0x4e0d1b]})};}function w(){const _0x119684=_0x552f05;return{'id':p['id'],'type':_0x2b020d[_0x119684(0x106)],'title':_0x119684(0x120),'icon':'FolderIcon'};}function D(){const _0x5d09ee=_0x552f05;return{'id':u['id'],'type':_0x2b020d[_0x5d09ee(0x106)],'title':_0x5d09ee(0xfc),'icon':'ExportIcon'};}const F={[_0x13776f[_0x552f05(0x121)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x552f05(0x100)],A=(_0x4887ea,_0x1f2768,_0x4db6ab,_0x3d245e)=>{for(var _0x483b3b=_0x3d245e>0x1?void 0x0:_0x3d245e?G(_0x1f2768,_0x4db6ab):_0x1f2768,_0x772485=_0x4887ea['length']-0x1,_0x176b91;_0x772485>=0x0;_0x772485--)(_0x176b91=_0x4887ea[_0x772485])&&(_0x483b3b=_0x176b91(_0x483b3b)||_0x483b3b);return _0x483b3b;},d=(_0x44d7bd,_0x52d5a6)=>(_0xe4f275,_0x475981)=>_0x52d5a6(_0xe4f275,_0x475981,_0x44d7bd);let c=class extends _0xcd3333{constructor(_0x45eb28,_0xcacbbf){const _0x566a08=_0x552f05;super(),this[_0x566a08(0xfd)]=_0x45eb28,this[_0x566a08(0x11f)]=_0xcacbbf,this[_0x566a08(0xfa)](),this[_0x566a08(0x10f)]();}['_initCommands'](){const _0x515479=_0x552f05;[p,u][_0x515479(0x117)](_0x1237c3=>{const _0x17cedb=_0x515479;this[_0x17cedb(0xf9)](this[_0x17cedb(0xfd)][_0x17cedb(0x118)](_0x1237c3));});}[_0x552f05(0x10f)](){const _0x37303f=_0x552f05;this['_menuManagerService'][_0x37303f(0x111)](F);}};c=A([d(0x0,_0x24d2df),d(0x1,_0x389c05)],c);var j=Object[_0x552f05(0xfe)],B=Object[_0x552f05(0x100)],$=(_0x436b5d,_0x4a6a11,_0xe30c91)=>_0x4a6a11 in _0x436b5d?j(_0x436b5d,_0x4a6a11,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe30c91}):_0x436b5d[_0x4a6a11]=_0xe30c91,V=(_0x272cb8,_0x45ded1,_0x5bb18d,_0x300529)=>{const _0x1cf1f7=_0x552f05;for(var _0x2d8459=_0x300529>0x1?void 0x0:_0x300529?B(_0x45ded1,_0x5bb18d):_0x45ded1,_0x1b38e1=_0x272cb8[_0x1cf1f7(0x124)]-0x1,_0x38b6f9;_0x1b38e1>=0x0;_0x1b38e1--)(_0x38b6f9=_0x272cb8[_0x1b38e1])&&(_0x2d8459=_0x38b6f9(_0x2d8459)||_0x2d8459);return _0x2d8459;},_=(_0x24bc1e,_0x57998e)=>(_0x17c4ca,_0x22f6ff)=>_0x57998e(_0x17c4ca,_0x22f6ff,_0x24bc1e),I=(_0x46a476,_0x28fcc3,_0x2df416)=>$(_0x46a476,typeof _0x28fcc3!='symbol'?_0x28fcc3+'':_0x28fcc3,_0x2df416);function _0x5242(){const _0x383c65=['830601ppBnhd','exportXLSXByUnitId','type','_menuManagerService','exchange.upload','OTHERS','_configService','1uuZgjH','length','1480532rKqPRT','exportXLSXBySnapshot','26307116vxkHFV','sheets-exchange-client.config','disposeWithMe','_initCommands','menu','exchange.download','_commandService','defineProperty','2762844uYTqTB','getOwnPropertyDescriptor','exchange-client.operation.import-xlsx','UNIVER_SHEET','unit','get','110hMYPQq','BUTTON','setConfig','435111cvhvaZ','onReady','SHEET_EXCHANGE_CLIENT_PLUGIN','DirectExportIcon','7CSHFwq','search','OPERATION','_initMenus','7312744FaTWhp','mergeMenu','187828gdZpOg','importXLSXToUnitId','pluginName','185JipeCd','_injector','forEach','registerCommand','sheets-exchange-client.operation.exchange','SUBITEMS','_config'];_0x5242=function(){return _0x383c65;};return _0x5242();}const W=_0x552f05(0x10a);function _0x4470(_0x417d52,_0x1ec540){_0x417d52=_0x417d52-0xf8;const _0x524245=_0x5242();let _0x4470c4=_0x524245[_0x417d52];return _0x4470c4;}let s=class extends _0xa7b2bc{constructor(_0x135fee=l,_0x242bdb,_0x779958){const _0x1868b1=_0x552f05;super(),this[_0x1868b1(0x11b)]=_0x135fee,this[_0x1868b1(0x116)]=_0x242bdb,this[_0x1868b1(0x122)]=_0x779958;const {menu:_0x1a7b24,..._0xc344d5}=_0xbf23a({},l,this[_0x1868b1(0x11b)]);_0x1a7b24&&this[_0x1868b1(0x122)][_0x1868b1(0x107)](_0x1868b1(0xfb),_0x1a7b24,{'merge':!0x0}),this[_0x1868b1(0x122)]['setConfig'](H,_0xc344d5);}['onStarting'](){const _0x32bd49=_0x552f05;[[c]]['forEach'](_0x2400fd=>this[_0x32bd49(0x116)]['add'](_0x2400fd));}[_0x552f05(0x109)](){const _0x2d582e=_0x552f05;this[_0x2d582e(0x116)][_0x2d582e(0x104)](c);}};I(s,_0x552f05(0x114),W),I(s,_0x552f05(0x11e),_0x50522d[_0x552f05(0x102)]),s=V([_0x471c06(_0x3388d5),_(0x1,_0x40037d(_0x7257c1)),_(0x2,_0x20c626)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x12cee0=_0x4590;(function(_0x3315d6,_0x4cea44){const _0x2c4575=_0x4590,_0x5d77fb=_0x3315d6();while(!![]){try{const _0x1ac665=parseInt(_0x2c4575(0x1d2))/0x1*(parseInt(_0x2c4575(0x1d0))/0x2)+parseInt(_0x2c4575(0x1cd))/0x3*(parseInt(_0x2c4575(0x1e2))/0x4)+-parseInt(_0x2c4575(0x1f0))/0x5*(-parseInt(_0x2c4575(0x1c1))/0x6)+parseInt(_0x2c4575(0x1f3))/0x7+parseInt(_0x2c4575(0x1d9))/0x8*(parseInt(_0x2c4575(0x1dc))/0x9)+parseInt(_0x2c4575(0x1ef))/0xa*(parseInt(_0x2c4575(0x1c8))/0xb)+parseInt(_0x2c4575(0x1c9))/0xc*(-parseInt(_0x2c4575(0x1d5))/0xd);if(_0x1ac665===_0x4cea44)break;else _0x5d77fb['push'](_0x5d77fb['shift']());}catch(_0x333b45){_0x5d77fb['push'](_0x5d77fb['shift']());}}}(_0x534b,0x6ed9a));import{IExchangeOperateService as _0x461c5a,UniverExchangeClientPlugin as _0x4022a3}from'@univerjs-pro/exchange-client';import{CommandType as _0x559989,UniverInstanceType as _0x2e97da,Disposable as _0x36a821,ICommandService as _0x5502ae,DependentOn as _0x352846,Inject as _0x2ec430,Injector as _0x4d9353,IConfigService as _0x37e567,Plugin as _0x3dc41f,merge as _0x32b5c6}from'@univerjs/core';import{MenuItemType as _0x4bdfa0,getMenuHiddenObservable as _0x3e7d3d,RibbonStartGroup as _0x4f33bf,IMenuManagerService as _0xaf057d}from'@univerjs/ui';import{WorkbookExportPermission as _0x11e1bc}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x3ac9d0}from'@univerjs/sheets-ui';const p={'id':_0x12cee0(0x1ce),'type':_0x559989[_0x12cee0(0x1ea)],'handler':async _0x18b255=>{const _0x410cf4=_0x12cee0,_0x14ac00=_0x18b255[_0x410cf4(0x1c2)](_0x461c5a);return new URLSearchParams(location[_0x410cf4(0x1bf)])[_0x410cf4(0x1c2)](_0x410cf4(0x1f2))?_0x14ac00['importXLSXToUnitId']():_0x14ac00[_0x410cf4(0x1df)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x559989['OPERATION'],'handler':async _0x498d01=>{const _0x7cacc7=_0x12cee0,_0x4fa820=_0x498d01[_0x7cacc7(0x1c2)](_0x461c5a);return new URLSearchParams(location[_0x7cacc7(0x1bf)])[_0x7cacc7(0x1c2)](_0x7cacc7(0x1f2))?_0x4fa820[_0x7cacc7(0x1db)]():_0x4fa820[_0x7cacc7(0x1c3)](),!0x0;}},H='sheets-exchange-client.config',l={},S='sheets-exchange-client.operation.exchange';function R(_0x517224){const _0x560cb2=_0x12cee0;return{'id':S,'type':_0x4bdfa0[_0x560cb2(0x1c0)],'icon':_0x560cb2(0x1cf),'tooltip':_0x560cb2(0x1d8),'hidden$':_0x3e7d3d(_0x517224,_0x2e97da[_0x560cb2(0x1e0)]),'disabled$':_0x3ac9d0(_0x517224,{'workbookTypes':[_0x11e1bc]})};}function w(){const _0x2eb821=_0x12cee0;return{'id':p['id'],'type':_0x4bdfa0[_0x2eb821(0x1d7)],'title':_0x2eb821(0x1ec),'icon':_0x2eb821(0x1e3)};}function D(){const _0x3b980c=_0x12cee0;return{'id':u['id'],'type':_0x4bdfa0[_0x3b980c(0x1d7)],'title':_0x3b980c(0x1e4),'icon':_0x3b980c(0x1c7)};}const F={[_0x4f33bf['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};function _0x4590(_0x50cf3f,_0x181edc){_0x50cf3f=_0x50cf3f-0x1bf;const _0x534b2c=_0x534b();let _0x459074=_0x534b2c[_0x50cf3f];return _0x459074;}function _0x534b(){const _0x3c8ba4=['118856GofbQD','_injector','exportXLSXByUnitId','351NKFref','menu','_initMenus','importXLSXToSnapshot','UNIVER_SHEET','_commandService','532388HOmzpB','FolderIcon','exchange.download','SHEET_EXCHANGE_CLIENT_PLUGIN','add','type','_configService','defineProperty','OPERATION','_menuManagerService','exchange.upload','length','symbol','10ePfRNp','485JTOmnd','forEach','unit','5272414EwbPPz','search','SUBITEMS','2172tJvDLK','get','exportXLSXBySnapshot','pluginName','registerCommand','disposeWithMe','ExportIcon','1663673XpNCuJ','24397044XFTdzN','onReady','getOwnPropertyDescriptor','mergeMenu','3nfJTbn','exchange-client.operation.import-xlsx','DirectExportIcon','22268iNIpeI','_config','75HJGIIO','setConfig','_initCommands','13xAGbzs','onStarting','BUTTON','exchange.file'];_0x534b=function(){return _0x3c8ba4;};return _0x534b();}var G=Object['getOwnPropertyDescriptor'],A=(_0x1b8ef1,_0x3e1b26,_0x57ad44,_0x4983c6)=>{const _0x5a7113=_0x12cee0;for(var _0x3ddc1c=_0x4983c6>0x1?void 0x0:_0x4983c6?G(_0x3e1b26,_0x57ad44):_0x3e1b26,_0x46e012=_0x1b8ef1[_0x5a7113(0x1ed)]-0x1,_0x4bccb1;_0x46e012>=0x0;_0x46e012--)(_0x4bccb1=_0x1b8ef1[_0x46e012])&&(_0x3ddc1c=_0x4bccb1(_0x3ddc1c)||_0x3ddc1c);return _0x3ddc1c;},d=(_0x3ce801,_0x150987)=>(_0x2705f9,_0x49df4a)=>_0x150987(_0x2705f9,_0x49df4a,_0x3ce801);let c=class extends _0x36a821{constructor(_0x3c01f8,_0x5339ba){const _0x15a5a8=_0x12cee0;super(),this[_0x15a5a8(0x1e1)]=_0x3c01f8,this[_0x15a5a8(0x1eb)]=_0x5339ba,this['_initCommands'](),this[_0x15a5a8(0x1de)]();}[_0x12cee0(0x1d4)](){const _0x22a5a8=_0x12cee0;[p,u][_0x22a5a8(0x1f1)](_0x2586c5=>{const _0x5c4dcf=_0x22a5a8;this[_0x5c4dcf(0x1c6)](this[_0x5c4dcf(0x1e1)][_0x5c4dcf(0x1c5)](_0x2586c5));});}[_0x12cee0(0x1de)](){const _0x28e703=_0x12cee0;this[_0x28e703(0x1eb)][_0x28e703(0x1cc)](F);}};c=A([d(0x0,_0x5502ae),d(0x1,_0xaf057d)],c);var j=Object[_0x12cee0(0x1e9)],B=Object[_0x12cee0(0x1cb)],$=(_0x54d3e0,_0x4b0cb6,_0x4247eb)=>_0x4b0cb6 in _0x54d3e0?j(_0x54d3e0,_0x4b0cb6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4247eb}):_0x54d3e0[_0x4b0cb6]=_0x4247eb,V=(_0x347308,_0x5d208f,_0x42a988,_0x10eeb7)=>{const _0x1b1aed=_0x12cee0;for(var _0x30368d=_0x10eeb7>0x1?void 0x0:_0x10eeb7?B(_0x5d208f,_0x42a988):_0x5d208f,_0x50ef59=_0x347308[_0x1b1aed(0x1ed)]-0x1,_0x1e01f3;_0x50ef59>=0x0;_0x50ef59--)(_0x1e01f3=_0x347308[_0x50ef59])&&(_0x30368d=_0x1e01f3(_0x30368d)||_0x30368d);return _0x30368d;},_=(_0x277e30,_0x5ad228)=>(_0x975e8f,_0x4ff4d9)=>_0x5ad228(_0x975e8f,_0x4ff4d9,_0x277e30),I=(_0xbdf75c,_0x502503,_0x187e18)=>$(_0xbdf75c,typeof _0x502503!=_0x12cee0(0x1ee)?_0x502503+'':_0x502503,_0x187e18);const W=_0x12cee0(0x1e5);let s=class extends _0x3dc41f{constructor(_0x534d33=l,_0x6114b1,_0x2c635a){const _0x794614=_0x12cee0;super(),this['_config']=_0x534d33,this[_0x794614(0x1da)]=_0x6114b1,this['_configService']=_0x2c635a;const {menu:_0xe2abf0,..._0x3790e2}=_0x32b5c6({},l,this[_0x794614(0x1d1)]);_0xe2abf0&&this[_0x794614(0x1e8)]['setConfig'](_0x794614(0x1dd),_0xe2abf0,{'merge':!0x0}),this[_0x794614(0x1e8)][_0x794614(0x1d3)](H,_0x3790e2);}[_0x12cee0(0x1d6)](){const _0x5782c5=_0x12cee0;[[c]][_0x5782c5(0x1f1)](_0x1590ee=>this['_injector'][_0x5782c5(0x1e6)](_0x1590ee));}[_0x12cee0(0x1ca)](){this['_injector']['get'](c);}};I(s,_0x12cee0(0x1c4),W),I(s,_0x12cee0(0x1e7),_0x2e97da['UNIVER_SHEET']),s=V([_0x352846(_0x4022a3),_(0x1,_0x2ec430(_0x4d9353)),_(0x2,_0x37e567)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x552f05=_0x4470;(function(_0x4c72c2,_0x28ef06){const _0x49d707=_0x4470,_0x5a95f5=_0x4c72c2();while(!![]){try{const _0x51fd25=parseInt(_0x49d707(0x123))/0x1*(parseInt(_0x49d707(0x125))/0x2)+-parseInt(_0x49d707(0x108))/0x3+-parseInt(_0x49d707(0x112))/0x4*(parseInt(_0x49d707(0x115))/0x5)+-parseInt(_0x49d707(0xff))/0x6*(parseInt(_0x49d707(0x10c))/0x7)+-parseInt(_0x49d707(0x110))/0x8+parseInt(_0x49d707(0x11c))/0x9*(parseInt(_0x49d707(0x105))/0xa)+parseInt(_0x49d707(0x127))/0xb;if(_0x51fd25===_0x28ef06)break;else _0x5a95f5['push'](_0x5a95f5['shift']());}catch(_0x2214c9){_0x5a95f5['push'](_0x5a95f5['shift']());}}}(_0x5242,0xd9484));import{IExchangeOperateService as _0x4b29b1,UniverExchangeClientPlugin as _0x3388d5}from'@univerjs-pro/exchange-client';import{CommandType as _0x1ee1cc,UniverInstanceType as _0x50522d,Disposable as _0xcd3333,ICommandService as _0x24d2df,DependentOn as _0x471c06,Inject as _0x40037d,Injector as _0x7257c1,IConfigService as _0x20c626,Plugin as _0xa7b2bc,merge as _0xbf23a}from'@univerjs/core';import{MenuItemType as _0x2b020d,getMenuHiddenObservable as _0x3b9bc3,RibbonStartGroup as _0x13776f,IMenuManagerService as _0x389c05}from'@univerjs/ui';import{WorkbookExportPermission as _0x4e0d1b}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x40ea56}from'@univerjs/sheets-ui';const p={'id':_0x552f05(0x101),'type':_0x1ee1cc[_0x552f05(0x10e)],'handler':async _0x425f94=>{const _0x29e04d=_0x552f05,_0x4a8908=_0x425f94[_0x29e04d(0x104)](_0x4b29b1);return new URLSearchParams(location[_0x29e04d(0x10d)])[_0x29e04d(0x104)](_0x29e04d(0x103))?_0x4a8908[_0x29e04d(0x113)]():_0x4a8908['importXLSXToSnapshot'](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x1ee1cc[_0x552f05(0x10e)],'handler':async _0x30d399=>{const _0x12238e=_0x552f05,_0x105df3=_0x30d399['get'](_0x4b29b1);return new URLSearchParams(location[_0x12238e(0x10d)])['get']('unit')?_0x105df3[_0x12238e(0x11d)]():_0x105df3[_0x12238e(0x126)](),!0x0;}},H=_0x552f05(0xf8),l={},S=_0x552f05(0x119);function R(_0x50d755){const _0x2f06a5=_0x552f05;return{'id':S,'type':_0x2b020d[_0x2f06a5(0x11a)],'icon':_0x2f06a5(0x10b),'tooltip':'exchange.file','hidden$':_0x3b9bc3(_0x50d755,_0x50522d['UNIVER_SHEET']),'disabled$':_0x40ea56(_0x50d755,{'workbookTypes':[_0x4e0d1b]})};}function w(){const _0x119684=_0x552f05;return{'id':p['id'],'type':_0x2b020d[_0x119684(0x106)],'title':_0x119684(0x120),'icon':'FolderIcon'};}function D(){const _0x5d09ee=_0x552f05;return{'id':u['id'],'type':_0x2b020d[_0x5d09ee(0x106)],'title':_0x5d09ee(0xfc),'icon':'ExportIcon'};}const F={[_0x13776f[_0x552f05(0x121)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x552f05(0x100)],A=(_0x4887ea,_0x1f2768,_0x4db6ab,_0x3d245e)=>{for(var _0x483b3b=_0x3d245e>0x1?void 0x0:_0x3d245e?G(_0x1f2768,_0x4db6ab):_0x1f2768,_0x772485=_0x4887ea['length']-0x1,_0x176b91;_0x772485>=0x0;_0x772485--)(_0x176b91=_0x4887ea[_0x772485])&&(_0x483b3b=_0x176b91(_0x483b3b)||_0x483b3b);return _0x483b3b;},d=(_0x44d7bd,_0x52d5a6)=>(_0xe4f275,_0x475981)=>_0x52d5a6(_0xe4f275,_0x475981,_0x44d7bd);let c=class extends _0xcd3333{constructor(_0x45eb28,_0xcacbbf){const _0x566a08=_0x552f05;super(),this[_0x566a08(0xfd)]=_0x45eb28,this[_0x566a08(0x11f)]=_0xcacbbf,this[_0x566a08(0xfa)](),this[_0x566a08(0x10f)]();}['_initCommands'](){const _0x515479=_0x552f05;[p,u][_0x515479(0x117)](_0x1237c3=>{const _0x17cedb=_0x515479;this[_0x17cedb(0xf9)](this[_0x17cedb(0xfd)][_0x17cedb(0x118)](_0x1237c3));});}[_0x552f05(0x10f)](){const _0x37303f=_0x552f05;this['_menuManagerService'][_0x37303f(0x111)](F);}};c=A([d(0x0,_0x24d2df),d(0x1,_0x389c05)],c);var j=Object[_0x552f05(0xfe)],B=Object[_0x552f05(0x100)],$=(_0x436b5d,_0x4a6a11,_0xe30c91)=>_0x4a6a11 in _0x436b5d?j(_0x436b5d,_0x4a6a11,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe30c91}):_0x436b5d[_0x4a6a11]=_0xe30c91,V=(_0x272cb8,_0x45ded1,_0x5bb18d,_0x300529)=>{const _0x1cf1f7=_0x552f05;for(var _0x2d8459=_0x300529>0x1?void 0x0:_0x300529?B(_0x45ded1,_0x5bb18d):_0x45ded1,_0x1b38e1=_0x272cb8[_0x1cf1f7(0x124)]-0x1,_0x38b6f9;_0x1b38e1>=0x0;_0x1b38e1--)(_0x38b6f9=_0x272cb8[_0x1b38e1])&&(_0x2d8459=_0x38b6f9(_0x2d8459)||_0x2d8459);return _0x2d8459;},_=(_0x24bc1e,_0x57998e)=>(_0x17c4ca,_0x22f6ff)=>_0x57998e(_0x17c4ca,_0x22f6ff,_0x24bc1e),I=(_0x46a476,_0x28fcc3,_0x2df416)=>$(_0x46a476,typeof _0x28fcc3!='symbol'?_0x28fcc3+'':_0x28fcc3,_0x2df416);function _0x5242(){const _0x383c65=['830601ppBnhd','exportXLSXByUnitId','type','_menuManagerService','exchange.upload','OTHERS','_configService','1uuZgjH','length','1480532rKqPRT','exportXLSXBySnapshot','26307116vxkHFV','sheets-exchange-client.config','disposeWithMe','_initCommands','menu','exchange.download','_commandService','defineProperty','2762844uYTqTB','getOwnPropertyDescriptor','exchange-client.operation.import-xlsx','UNIVER_SHEET','unit','get','110hMYPQq','BUTTON','setConfig','435111cvhvaZ','onReady','SHEET_EXCHANGE_CLIENT_PLUGIN','DirectExportIcon','7CSHFwq','search','OPERATION','_initMenus','7312744FaTWhp','mergeMenu','187828gdZpOg','importXLSXToUnitId','pluginName','185JipeCd','_injector','forEach','registerCommand','sheets-exchange-client.operation.exchange','SUBITEMS','_config'];_0x5242=function(){return _0x383c65;};return _0x5242();}const W=_0x552f05(0x10a);function _0x4470(_0x417d52,_0x1ec540){_0x417d52=_0x417d52-0xf8;const _0x524245=_0x5242();let _0x4470c4=_0x524245[_0x417d52];return _0x4470c4;}let s=class extends _0xa7b2bc{constructor(_0x135fee=l,_0x242bdb,_0x779958){const _0x1868b1=_0x552f05;super(),this[_0x1868b1(0x11b)]=_0x135fee,this[_0x1868b1(0x116)]=_0x242bdb,this[_0x1868b1(0x122)]=_0x779958;const {menu:_0x1a7b24,..._0xc344d5}=_0xbf23a({},l,this[_0x1868b1(0x11b)]);_0x1a7b24&&this[_0x1868b1(0x122)][_0x1868b1(0x107)](_0x1868b1(0xfb),_0x1a7b24,{'merge':!0x0}),this[_0x1868b1(0x122)]['setConfig'](H,_0xc344d5);}['onStarting'](){const _0x32bd49=_0x552f05;[[c]]['forEach'](_0x2400fd=>this[_0x32bd49(0x116)]['add'](_0x2400fd));}[_0x552f05(0x109)](){const _0x2d582e=_0x552f05;this[_0x2d582e(0x116)][_0x2d582e(0x104)](c);}};I(s,_0x552f05(0x114),W),I(s,_0x552f05(0x11e),_0x50522d[_0x552f05(0x102)]),s=V([_0x471c06(_0x3388d5),_(0x1,_0x40037d(_0x7257c1)),_(0x2,_0x20c626)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x12cee0=_0x4590;(function(_0x3315d6,_0x4cea44){const _0x2c4575=_0x4590,_0x5d77fb=_0x3315d6();while(!![]){try{const _0x1ac665=parseInt(_0x2c4575(0x1d2))/0x1*(parseInt(_0x2c4575(0x1d0))/0x2)+parseInt(_0x2c4575(0x1cd))/0x3*(parseInt(_0x2c4575(0x1e2))/0x4)+-parseInt(_0x2c4575(0x1f0))/0x5*(-parseInt(_0x2c4575(0x1c1))/0x6)+parseInt(_0x2c4575(0x1f3))/0x7+parseInt(_0x2c4575(0x1d9))/0x8*(parseInt(_0x2c4575(0x1dc))/0x9)+parseInt(_0x2c4575(0x1ef))/0xa*(parseInt(_0x2c4575(0x1c8))/0xb)+parseInt(_0x2c4575(0x1c9))/0xc*(-parseInt(_0x2c4575(0x1d5))/0xd);if(_0x1ac665===_0x4cea44)break;else _0x5d77fb['push'](_0x5d77fb['shift']());}catch(_0x333b45){_0x5d77fb['push'](_0x5d77fb['shift']());}}}(_0x534b,0x6ed9a));import{IExchangeOperateService as _0x461c5a,UniverExchangeClientPlugin as _0x4022a3}from'@univerjs-pro/exchange-client';import{CommandType as _0x559989,UniverInstanceType as _0x2e97da,Disposable as _0x36a821,ICommandService as _0x5502ae,DependentOn as _0x352846,Inject as _0x2ec430,Injector as _0x4d9353,IConfigService as _0x37e567,Plugin as _0x3dc41f,merge as _0x32b5c6}from'@univerjs/core';import{MenuItemType as _0x4bdfa0,getMenuHiddenObservable as _0x3e7d3d,RibbonStartGroup as _0x4f33bf,IMenuManagerService as _0xaf057d}from'@univerjs/ui';import{WorkbookExportPermission as _0x11e1bc}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x3ac9d0}from'@univerjs/sheets-ui';const p={'id':_0x12cee0(0x1ce),'type':_0x559989[_0x12cee0(0x1ea)],'handler':async _0x18b255=>{const _0x410cf4=_0x12cee0,_0x14ac00=_0x18b255[_0x410cf4(0x1c2)](_0x461c5a);return new URLSearchParams(location[_0x410cf4(0x1bf)])[_0x410cf4(0x1c2)](_0x410cf4(0x1f2))?_0x14ac00['importXLSXToUnitId']():_0x14ac00[_0x410cf4(0x1df)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x559989['OPERATION'],'handler':async _0x498d01=>{const _0x7cacc7=_0x12cee0,_0x4fa820=_0x498d01[_0x7cacc7(0x1c2)](_0x461c5a);return new URLSearchParams(location[_0x7cacc7(0x1bf)])[_0x7cacc7(0x1c2)](_0x7cacc7(0x1f2))?_0x4fa820[_0x7cacc7(0x1db)]():_0x4fa820[_0x7cacc7(0x1c3)](),!0x0;}},H='sheets-exchange-client.config',l={},S='sheets-exchange-client.operation.exchange';function R(_0x517224){const _0x560cb2=_0x12cee0;return{'id':S,'type':_0x4bdfa0[_0x560cb2(0x1c0)],'icon':_0x560cb2(0x1cf),'tooltip':_0x560cb2(0x1d8),'hidden$':_0x3e7d3d(_0x517224,_0x2e97da[_0x560cb2(0x1e0)]),'disabled$':_0x3ac9d0(_0x517224,{'workbookTypes':[_0x11e1bc]})};}function w(){const _0x2eb821=_0x12cee0;return{'id':p['id'],'type':_0x4bdfa0[_0x2eb821(0x1d7)],'title':_0x2eb821(0x1ec),'icon':_0x2eb821(0x1e3)};}function D(){const _0x3b980c=_0x12cee0;return{'id':u['id'],'type':_0x4bdfa0[_0x3b980c(0x1d7)],'title':_0x3b980c(0x1e4),'icon':_0x3b980c(0x1c7)};}const F={[_0x4f33bf['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};function _0x4590(_0x50cf3f,_0x181edc){_0x50cf3f=_0x50cf3f-0x1bf;const _0x534b2c=_0x534b();let _0x459074=_0x534b2c[_0x50cf3f];return _0x459074;}function _0x534b(){const _0x3c8ba4=['118856GofbQD','_injector','exportXLSXByUnitId','351NKFref','menu','_initMenus','importXLSXToSnapshot','UNIVER_SHEET','_commandService','532388HOmzpB','FolderIcon','exchange.download','SHEET_EXCHANGE_CLIENT_PLUGIN','add','type','_configService','defineProperty','OPERATION','_menuManagerService','exchange.upload','length','symbol','10ePfRNp','485JTOmnd','forEach','unit','5272414EwbPPz','search','SUBITEMS','2172tJvDLK','get','exportXLSXBySnapshot','pluginName','registerCommand','disposeWithMe','ExportIcon','1663673XpNCuJ','24397044XFTdzN','onReady','getOwnPropertyDescriptor','mergeMenu','3nfJTbn','exchange-client.operation.import-xlsx','DirectExportIcon','22268iNIpeI','_config','75HJGIIO','setConfig','_initCommands','13xAGbzs','onStarting','BUTTON','exchange.file'];_0x534b=function(){return _0x3c8ba4;};return _0x534b();}var G=Object['getOwnPropertyDescriptor'],A=(_0x1b8ef1,_0x3e1b26,_0x57ad44,_0x4983c6)=>{const _0x5a7113=_0x12cee0;for(var _0x3ddc1c=_0x4983c6>0x1?void 0x0:_0x4983c6?G(_0x3e1b26,_0x57ad44):_0x3e1b26,_0x46e012=_0x1b8ef1[_0x5a7113(0x1ed)]-0x1,_0x4bccb1;_0x46e012>=0x0;_0x46e012--)(_0x4bccb1=_0x1b8ef1[_0x46e012])&&(_0x3ddc1c=_0x4bccb1(_0x3ddc1c)||_0x3ddc1c);return _0x3ddc1c;},d=(_0x3ce801,_0x150987)=>(_0x2705f9,_0x49df4a)=>_0x150987(_0x2705f9,_0x49df4a,_0x3ce801);let c=class extends _0x36a821{constructor(_0x3c01f8,_0x5339ba){const _0x15a5a8=_0x12cee0;super(),this[_0x15a5a8(0x1e1)]=_0x3c01f8,this[_0x15a5a8(0x1eb)]=_0x5339ba,this['_initCommands'](),this[_0x15a5a8(0x1de)]();}[_0x12cee0(0x1d4)](){const _0x22a5a8=_0x12cee0;[p,u][_0x22a5a8(0x1f1)](_0x2586c5=>{const _0x5c4dcf=_0x22a5a8;this[_0x5c4dcf(0x1c6)](this[_0x5c4dcf(0x1e1)][_0x5c4dcf(0x1c5)](_0x2586c5));});}[_0x12cee0(0x1de)](){const _0x28e703=_0x12cee0;this[_0x28e703(0x1eb)][_0x28e703(0x1cc)](F);}};c=A([d(0x0,_0x5502ae),d(0x1,_0xaf057d)],c);var j=Object[_0x12cee0(0x1e9)],B=Object[_0x12cee0(0x1cb)],$=(_0x54d3e0,_0x4b0cb6,_0x4247eb)=>_0x4b0cb6 in _0x54d3e0?j(_0x54d3e0,_0x4b0cb6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4247eb}):_0x54d3e0[_0x4b0cb6]=_0x4247eb,V=(_0x347308,_0x5d208f,_0x42a988,_0x10eeb7)=>{const _0x1b1aed=_0x12cee0;for(var _0x30368d=_0x10eeb7>0x1?void 0x0:_0x10eeb7?B(_0x5d208f,_0x42a988):_0x5d208f,_0x50ef59=_0x347308[_0x1b1aed(0x1ed)]-0x1,_0x1e01f3;_0x50ef59>=0x0;_0x50ef59--)(_0x1e01f3=_0x347308[_0x50ef59])&&(_0x30368d=_0x1e01f3(_0x30368d)||_0x30368d);return _0x30368d;},_=(_0x277e30,_0x5ad228)=>(_0x975e8f,_0x4ff4d9)=>_0x5ad228(_0x975e8f,_0x4ff4d9,_0x277e30),I=(_0xbdf75c,_0x502503,_0x187e18)=>$(_0xbdf75c,typeof _0x502503!=_0x12cee0(0x1ee)?_0x502503+'':_0x502503,_0x187e18);const W=_0x12cee0(0x1e5);let s=class extends _0x3dc41f{constructor(_0x534d33=l,_0x6114b1,_0x2c635a){const _0x794614=_0x12cee0;super(),this['_config']=_0x534d33,this[_0x794614(0x1da)]=_0x6114b1,this['_configService']=_0x2c635a;const {menu:_0xe2abf0,..._0x3790e2}=_0x32b5c6({},l,this[_0x794614(0x1d1)]);_0xe2abf0&&this[_0x794614(0x1e8)]['setConfig'](_0x794614(0x1dd),_0xe2abf0,{'merge':!0x0}),this[_0x794614(0x1e8)][_0x794614(0x1d3)](H,_0x3790e2);}[_0x12cee0(0x1d6)](){const _0x5782c5=_0x12cee0;[[c]][_0x5782c5(0x1f1)](_0x1590ee=>this['_injector'][_0x5782c5(0x1e6)](_0x1590ee));}[_0x12cee0(0x1ca)](){this['_injector']['get'](c);}};I(s,_0x12cee0(0x1c4),W),I(s,_0x12cee0(0x1e7),_0x2e97da['UNIVER_SHEET']),s=V([_0x352846(_0x4022a3),_(0x1,_0x2ec430(_0x4d9353)),_(0x2,_0x37e567)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x377b50,_0x53c1a2){const _0x4370ad=_0x16be,_0x33a5a9=_0x377b50();while(!![]){try{const _0x4f840c=parseInt(_0x4370ad(0x1ea))/0x1+parseInt(_0x4370ad(0x1f2))/0x2+parseInt(_0x4370ad(0x1e6))/0x3*(-parseInt(_0x4370ad(0x1b2))/0x4)+parseInt(_0x4370ad(0x1c1))/0x5+parseInt(_0x4370ad(0x1e7))/0x6+parseInt(_0x4370ad(0x1c6))/0x7*(parseInt(_0x4370ad(0x1ef))/0x8)+parseInt(_0x4370ad(0x1ae))/0x9*(-parseInt(_0x4370ad(0x1d5))/0xa);if(_0x4f840c===_0x53c1a2)break;else _0x33a5a9['push'](_0x33a5a9['shift']());}catch(_0x5024a4){_0x33a5a9['push'](_0x33a5a9['shift']());}}}(_0x19a3,0xcd2bb),function(_0x5b06fc,_0x45273e){const _0x130c54=_0x16be;typeof exports=='object'&&typeof module<'u'?_0x45273e(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x130c54(0x1b5)&&define[_0x130c54(0x1ba)]?define([_0x130c54(0x1c0),'@univerjs-pro/exchange-client',_0x130c54(0x1ac),_0x130c54(0x1e0),_0x130c54(0x1ab),'@univerjs/sheets-ui'],_0x45273e):(_0x5b06fc=typeof globalThis<'u'?globalThis:_0x5b06fc||self,_0x45273e(_0x5b06fc[_0x130c54(0x1bb)]={},_0x5b06fc[_0x130c54(0x1b4)],_0x5b06fc[_0x130c54(0x1dd)],_0x5b06fc[_0x130c54(0x1cd)],_0x5b06fc[_0x130c54(0x1be)],_0x5b06fc[_0x130c54(0x1da)]));}(this,function(_0x1952d6,_0x13f51b,_0x31651e,_0x29973e,_0x3d7e81,_0x13d3fa){'use strict';const _0x2fca61=_0x16be;const _0x3a3684={'id':'exchange-client.operation.import-xlsx','type':_0x31651e[_0x2fca61(0x1b6)][_0x2fca61(0x1db)],'handler':async _0x3cfc38=>{const _0x207124=_0x2fca61,_0x3f314f=_0x3cfc38[_0x207124(0x1d1)](_0x13f51b['IExchangeOperateService']);return new URLSearchParams(location['search'])[_0x207124(0x1d1)]('unit')?_0x3f314f['importXLSXToUnitId']():_0x3f314f[_0x207124(0x1e9)](),!0x0;}},_0x4131e2={'id':_0x2fca61(0x1ad),'type':_0x31651e[_0x2fca61(0x1b6)][_0x2fca61(0x1db)],'handler':async _0xe67edd=>{const _0x6d41e4=_0x2fca61,_0x2d1517=_0xe67edd[_0x6d41e4(0x1d1)](_0x13f51b[_0x6d41e4(0x1d4)]);return new URLSearchParams(location[_0x6d41e4(0x1e8)])[_0x6d41e4(0x1d1)](_0x6d41e4(0x1cc))?_0x2d1517['exportXLSXByUnitId']():_0x2d1517[_0x6d41e4(0x1e2)](),!0x0;}},_0x147d72=_0x2fca61(0x1b0),_0x54e1b5={},_0x48c0bd='sheets-exchange-client.operation.exchange';function _0xa9025(_0x38ab8b){const _0x54b7c1=_0x2fca61;return{'id':_0x48c0bd,'type':_0x29973e['MenuItemType'][_0x54b7c1(0x1e5)],'icon':_0x54b7c1(0x1de),'tooltip':_0x54b7c1(0x1ec),'hidden$':_0x29973e[_0x54b7c1(0x1d6)](_0x38ab8b,_0x31651e[_0x54b7c1(0x1cf)][_0x54b7c1(0x1cb)]),'disabled$':_0x13d3fa[_0x54b7c1(0x1d2)](_0x38ab8b,{'workbookTypes':[_0x3d7e81['WorkbookExportPermission']]})};}function _0x4b1376(){const _0x201698=_0x2fca61;return{'id':_0x3a3684['id'],'type':_0x29973e[_0x201698(0x1bd)]['BUTTON'],'title':_0x201698(0x1f1),'icon':_0x201698(0x1df)};}function _0x1a6f15(){const _0x10dade=_0x2fca61;return{'id':_0x4131e2['id'],'type':_0x29973e[_0x10dade(0x1bd)][_0x10dade(0x1eb)],'title':_0x10dade(0x1c7),'icon':_0x10dade(0x1d9)};}const _0x4d836f={[_0x29973e[_0x2fca61(0x1d3)][_0x2fca61(0x1c5)]]:{[_0x48c0bd]:{'order':0.3,'menuItemFactory':_0xa9025,[_0x3a3684['id']]:{'order':0x0,'menuItemFactory':_0x4b1376},[_0x4131e2['id']]:{'order':0x1,'menuItemFactory':_0x1a6f15}}}};var _0x475b91=Object[_0x2fca61(0x1e4)],_0x2a5ef8=(_0x5b694e,_0x545a8f,_0x3aa57a,_0x8229f)=>{const _0x5b3f9b=_0x2fca61;for(var _0x1b62a4=_0x8229f>0x1?void 0x0:_0x8229f?_0x475b91(_0x545a8f,_0x3aa57a):_0x545a8f,_0x470821=_0x5b694e[_0x5b3f9b(0x1d0)]-0x1,_0x412ce6;_0x470821>=0x0;_0x470821--)(_0x412ce6=_0x5b694e[_0x470821])&&(_0x1b62a4=_0x412ce6(_0x1b62a4)||_0x1b62a4);return _0x1b62a4;},_0x511912=(_0x4bad3a,_0x4afd26)=>(_0x1429bf,_0x1941aa)=>_0x4afd26(_0x1429bf,_0x1941aa,_0x4bad3a);let _0x493685=class extends _0x31651e[_0x2fca61(0x1c8)]{constructor(_0x4d26e8,_0xd9ea9a){const _0x366b0f=_0x2fca61;super(),this[_0x366b0f(0x1bc)]=_0x4d26e8,this[_0x366b0f(0x1d8)]=_0xd9ea9a,this[_0x366b0f(0x1e3)](),this[_0x366b0f(0x1b7)]();}['_initCommands'](){[_0x3a3684,_0x4131e2]['forEach'](_0x16f59b=>{const _0xd38aaa=_0x16be;this['disposeWithMe'](this[_0xd38aaa(0x1bc)]['registerCommand'](_0x16f59b));});}[_0x2fca61(0x1b7)](){const _0x222f60=_0x2fca61;this[_0x222f60(0x1d8)]['mergeMenu'](_0x4d836f);}};_0x493685=_0x2a5ef8([_0x511912(0x0,_0x31651e[_0x2fca61(0x1a9)]),_0x511912(0x1,_0x29973e[_0x2fca61(0x1f0)])],_0x493685);var _0x2ccb6a=Object[_0x2fca61(0x1ce)],_0x1576e2=Object[_0x2fca61(0x1e4)],_0x10671f=(_0x198f3,_0x3d78d0,_0x3a2529)=>_0x3d78d0 in _0x198f3?_0x2ccb6a(_0x198f3,_0x3d78d0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a2529}):_0x198f3[_0x3d78d0]=_0x3a2529,_0x279918=(_0x9f028c,_0x35a084,_0x2c67fe,_0x5441f4)=>{const _0x1cbc13=_0x2fca61;for(var _0x2c60d6=_0x5441f4>0x1?void 0x0:_0x5441f4?_0x1576e2(_0x35a084,_0x2c67fe):_0x35a084,_0x310f=_0x9f028c[_0x1cbc13(0x1d0)]-0x1,_0x20342d;_0x310f>=0x0;_0x310f--)(_0x20342d=_0x9f028c[_0x310f])&&(_0x2c60d6=_0x20342d(_0x2c60d6)||_0x2c60d6);return _0x2c60d6;},_0x4340ef=(_0x1f5f76,_0x4a2b8a)=>(_0x317a06,_0x3c3900)=>_0x4a2b8a(_0x317a06,_0x3c3900,_0x1f5f76),_0x14fe1a=(_0x321c24,_0x33cc23,_0x1d07a2)=>_0x10671f(_0x321c24,typeof _0x33cc23!='symbol'?_0x33cc23+'':_0x33cc23,_0x1d07a2);const _0x323be1='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x1952d6['UniverSheetsExchangeClientPlugin']=class extends _0x31651e[_0x2fca61(0x1e1)]{constructor(_0x219e30=_0x54e1b5,_0x5a815e,_0x3184ff){const _0x4f4e88=_0x2fca61;super(),this[_0x4f4e88(0x1c4)]=_0x219e30,this[_0x4f4e88(0x1c3)]=_0x5a815e,this[_0x4f4e88(0x1d7)]=_0x3184ff;const {menu:_0x833b23,..._0x4c9608}=_0x31651e[_0x4f4e88(0x1bf)]({},_0x54e1b5,this[_0x4f4e88(0x1c4)]);_0x833b23&&this[_0x4f4e88(0x1d7)]['setConfig']('menu',_0x833b23,{'merge':!0x0}),this['_configService']['setConfig'](_0x147d72,_0x4c9608);}[_0x2fca61(0x1f3)](){const _0x308e78=_0x2fca61;[[_0x493685]][_0x308e78(0x1ee)](_0x26a479=>this[_0x308e78(0x1c3)]['add'](_0x26a479));}[_0x2fca61(0x1af)](){const _0x360599=_0x2fca61;this[_0x360599(0x1c3)][_0x360599(0x1d1)](_0x493685);}},_0x14fe1a(_0x1952d6['UniverSheetsExchangeClientPlugin'],'pluginName',_0x323be1),_0x14fe1a(_0x1952d6[_0x2fca61(0x1b3)],_0x2fca61(0x1ca),_0x31651e['UniverInstanceType'][_0x2fca61(0x1cb)]),_0x1952d6[_0x2fca61(0x1b3)]=_0x279918([_0x31651e[_0x2fca61(0x1b8)](_0x13f51b[_0x2fca61(0x1b9)]),_0x4340ef(0x1,_0x31651e[_0x2fca61(0x1aa)](_0x31651e[_0x2fca61(0x1dc)])),_0x4340ef(0x2,_0x31651e['IConfigService'])],_0x1952d6[_0x2fca61(0x1b3)]),_0x1952d6[_0x2fca61(0x1b1)]=_0x4131e2,_0x1952d6[_0x2fca61(0x1c9)]=_0x3a3684,Object[_0x2fca61(0x1ce)](_0x1952d6,Symbol[_0x2fca61(0x1ed)],{'value':_0x2fca61(0x1c2)});}));function _0x16be(_0x14250b,_0x15f5e1){_0x14250b=_0x14250b-0x1a9;const _0x19a38f=_0x19a3();let _0x16bef0=_0x19a38f[_0x14250b];return _0x16bef0;}function _0x19a3(){const _0x5cd9b5=['ExportXLSXOperation','24440PKkOWP','UniverSheetsExchangeClientPlugin','UniverProExchangeClient','function','CommandType','_initMenus','DependentOn','UniverExchangeClientPlugin','amd','UniverProSheetsExchangeClient','_commandService','MenuItemType','UniverSheets','merge','exports','3305770AoHIjn','Module','_injector','_config','OTHERS','7zSjQMX','exchange.download','Disposable','ImportXLSXOperation','type','UNIVER_SHEET','unit','UniverUi','defineProperty','UniverInstanceType','length','get','getCurrentRangeDisable$','RibbonStartGroup','IExchangeOperateService','5090GIgZQa','getMenuHiddenObservable','_configService','_menuManagerService','ExportIcon','UniverSheetsUi','OPERATION','Injector','UniverCore','DirectExportIcon','FolderIcon','@univerjs/ui','Plugin','exportXLSXBySnapshot','_initCommands','getOwnPropertyDescriptor','SUBITEMS','81aaRtPB','3931008nHaIUS','search','importXLSXToSnapshot','1200552eDHIJS','BUTTON','exchange.file','toStringTag','forEach','12661144FtBeKl','IMenuManagerService','exchange.upload','502978Qusmmn','onStarting','ICommandService','Inject','@univerjs/sheets','@univerjs/core','exchange-client.operation.export-xlsx','59157vVIxXa','onReady','sheets-exchange-client.config'];_0x19a3=function(){return _0x5cd9b5;};return _0x19a3();}
1
+ (function(_0x46c708,_0xf5b113){const _0x5dc3df=_0x5ad2,_0x35dba6=_0x46c708();while(!![]){try{const _0x4db649=-parseInt(_0x5dc3df(0xc7))/0x1*(parseInt(_0x5dc3df(0x9e))/0x2)+-parseInt(_0x5dc3df(0x9b))/0x3+-parseInt(_0x5dc3df(0xd6))/0x4+-parseInt(_0x5dc3df(0xaa))/0x5+parseInt(_0x5dc3df(0x8f))/0x6*(-parseInt(_0x5dc3df(0x8d))/0x7)+parseInt(_0x5dc3df(0xc8))/0x8+parseInt(_0x5dc3df(0xa7))/0x9;if(_0x4db649===_0xf5b113)break;else _0x35dba6['push'](_0x35dba6['shift']());}catch(_0x181db2){_0x35dba6['push'](_0x35dba6['shift']());}}}(_0x5b32,0x32b30),function(_0x31beaa,_0x2e2b9d){const _0x4a2f5e=_0x5ad2;typeof exports==_0x4a2f5e(0xb9)&&typeof module<'u'?_0x2e2b9d(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x4a2f5e(0xa6)&&define[_0x4a2f5e(0x91)]?define([_0x4a2f5e(0x93),_0x4a2f5e(0xb8),'@univerjs/core','@univerjs/ui',_0x4a2f5e(0xbd),_0x4a2f5e(0xa5)],_0x2e2b9d):(_0x31beaa=typeof globalThis<'u'?globalThis:_0x31beaa||self,_0x2e2b9d(_0x31beaa[_0x4a2f5e(0x9a)]={},_0x31beaa['UniverProExchangeClient'],_0x31beaa[_0x4a2f5e(0xa1)],_0x31beaa[_0x4a2f5e(0xc4)],_0x31beaa[_0x4a2f5e(0xd2)],_0x31beaa['UniverSheetsUi']));}(this,function(_0x2347e9,_0x1e7b8f,_0x57f6fa,_0x2b36e0,_0x315b83,_0x578059){'use strict';const _0x389597=_0x5ad2;const _0x24c4bb={'id':_0x389597(0xbf),'type':_0x57f6fa['CommandType']['OPERATION'],'handler':async _0x35b04f=>{const _0x30a111=_0x389597,_0x54a8af=_0x35b04f[_0x30a111(0x96)](_0x1e7b8f[_0x30a111(0xbe)]);return new URLSearchParams(location[_0x30a111(0x97)])['get']('unit')?_0x54a8af[_0x30a111(0xb2)]():_0x54a8af[_0x30a111(0x9d)](),!0x0;}},_0x4a6a99={'id':_0x389597(0xad),'type':_0x57f6fa['CommandType'][_0x389597(0x99)],'handler':async _0x157b56=>{const _0x496878=_0x389597,_0x49b088=_0x157b56[_0x496878(0x96)](_0x1e7b8f[_0x496878(0xbe)]);return new URLSearchParams(location[_0x496878(0x97)])[_0x496878(0x96)](_0x496878(0x8e))?_0x49b088[_0x496878(0xd1)]():_0x49b088[_0x496878(0xac)](),!0x0;}},_0x43692e=_0x389597(0xae),_0x26bc6c={},_0x96086e=_0x389597(0xc3);function _0x3906b6(_0x4498b9){const _0x41d46c=_0x389597;return{'id':_0x96086e,'type':_0x2b36e0[_0x41d46c(0xd0)]['SUBITEMS'],'icon':_0x41d46c(0xc9),'tooltip':_0x41d46c(0x9f),'hidden$':_0x2b36e0['getMenuHiddenObservable'](_0x4498b9,_0x57f6fa[_0x41d46c(0xcd)]['UNIVER_SHEET']),'disabled$':_0x578059[_0x41d46c(0x92)](_0x4498b9,{'workbookTypes':[_0x315b83[_0x41d46c(0xba)]]})};}function _0x1a0219(){const _0x57c1f3=_0x389597;return{'id':_0x24c4bb['id'],'type':_0x2b36e0['MenuItemType'][_0x57c1f3(0xbc)],'title':_0x57c1f3(0xb7),'icon':_0x57c1f3(0xa8)};}function _0x5afe1e(){const _0x2e2871=_0x389597;return{'id':_0x4a6a99['id'],'type':_0x2b36e0[_0x2e2871(0xd0)][_0x2e2871(0xbc)],'title':_0x2e2871(0xd3),'icon':_0x2e2871(0xd4)};}const _0x43d0b9={[_0x2b36e0[_0x389597(0xcc)]['OTHERS']]:{[_0x96086e]:{'order':0.3,'menuItemFactory':_0x3906b6,[_0x24c4bb['id']]:{'order':0x0,'menuItemFactory':_0x1a0219},[_0x4a6a99['id']]:{'order':0x1,'menuItemFactory':_0x5afe1e}}}};var _0x2ec22d=Object['getOwnPropertyDescriptor'],_0x2e015a=(_0x32ba77,_0xa7f5a7,_0x5a523e,_0x3e3e55)=>{for(var _0x5dd297=_0x3e3e55>0x1?void 0x0:_0x3e3e55?_0x2ec22d(_0xa7f5a7,_0x5a523e):_0xa7f5a7,_0x526768=_0x32ba77['length']-0x1,_0x125fb;_0x526768>=0x0;_0x526768--)(_0x125fb=_0x32ba77[_0x526768])&&(_0x5dd297=_0x125fb(_0x5dd297)||_0x5dd297);return _0x5dd297;},_0x2484c6=(_0x4bd7b1,_0x1c9b79)=>(_0x5ba757,_0x5bfcb4)=>_0x1c9b79(_0x5ba757,_0x5bfcb4,_0x4bd7b1);let _0x12e788=class extends _0x57f6fa[_0x389597(0x8c)]{constructor(_0x4bb361,_0x27c512){const _0x294069=_0x389597;super(),this[_0x294069(0xcb)]=_0x4bb361,this[_0x294069(0xc1)]=_0x27c512,this[_0x294069(0xc0)](),this[_0x294069(0xb4)]();}['_initCommands'](){const _0x691847=_0x389597;[_0x24c4bb,_0x4a6a99][_0x691847(0xa3)](_0x1c6011=>{const _0x356b34=_0x691847;this[_0x356b34(0xa0)](this[_0x356b34(0xcb)][_0x356b34(0x90)](_0x1c6011));});}[_0x389597(0xb4)](){const _0xbd4e0e=_0x389597;this[_0xbd4e0e(0xc1)][_0xbd4e0e(0xa9)](_0x43d0b9);}};_0x12e788=_0x2e015a([_0x2484c6(0x0,_0x57f6fa['ICommandService']),_0x2484c6(0x1,_0x2b36e0[_0x389597(0xab)])],_0x12e788);var _0x10f5e5=Object[_0x389597(0xaf)],_0x410047=Object[_0x389597(0x98)],_0x536c87=(_0x2fb75e,_0x59f792,_0xe2583b)=>_0x59f792 in _0x2fb75e?_0x10f5e5(_0x2fb75e,_0x59f792,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe2583b}):_0x2fb75e[_0x59f792]=_0xe2583b,_0x564e55=(_0x1d106b,_0x9aab3a,_0x5efa5a,_0x4c2241)=>{for(var _0x2ffe5a=_0x4c2241>0x1?void 0x0:_0x4c2241?_0x410047(_0x9aab3a,_0x5efa5a):_0x9aab3a,_0x412dfd=_0x1d106b['length']-0x1,_0x11399e;_0x412dfd>=0x0;_0x412dfd--)(_0x11399e=_0x1d106b[_0x412dfd])&&(_0x2ffe5a=_0x11399e(_0x2ffe5a)||_0x2ffe5a);return _0x2ffe5a;},_0x3af996=(_0x463752,_0x59b2f6)=>(_0x167fa7,_0x1fd856)=>_0x59b2f6(_0x167fa7,_0x1fd856,_0x463752),_0x30d67c=(_0x1800e7,_0x5653eb,_0xcd94a4)=>_0x536c87(_0x1800e7,typeof _0x5653eb!=_0x389597(0xd7)?_0x5653eb+'':_0x5653eb,_0xcd94a4);const _0x42ffd6='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x2347e9[_0x389597(0xb5)]=class extends _0x57f6fa[_0x389597(0xb6)]{constructor(_0x1bed53=_0x26bc6c,_0x55799a,_0x3bf574){const _0x2f088a=_0x389597;super(),this[_0x2f088a(0xb0)]=_0x1bed53,this[_0x2f088a(0xa4)]=_0x55799a,this[_0x2f088a(0x9c)]=_0x3bf574;const {menu:_0x2e40e6,..._0x50ad5d}=_0x57f6fa[_0x2f088a(0xb1)]({},_0x26bc6c,this[_0x2f088a(0xb0)]);_0x2e40e6&&this['_configService']['setConfig']('menu',_0x2e40e6,{'merge':!0x0}),this[_0x2f088a(0x9c)][_0x2f088a(0x95)](_0x43692e,_0x50ad5d);}[_0x389597(0xcf)](){const _0x32398e=_0x389597;[[_0x12e788]][_0x32398e(0xa3)](_0x8ca205=>this['_injector'][_0x32398e(0xa2)](_0x8ca205));}[_0x389597(0xd5)](){const _0x5710c8=_0x389597;this['_injector'][_0x5710c8(0x96)](_0x12e788);}},_0x30d67c(_0x2347e9[_0x389597(0xb5)],'pluginName',_0x42ffd6),_0x30d67c(_0x2347e9[_0x389597(0xb5)],_0x389597(0xc5),_0x57f6fa[_0x389597(0xcd)][_0x389597(0xb3)]),_0x2347e9[_0x389597(0xb5)]=_0x564e55([_0x57f6fa['DependentOn'](_0x1e7b8f['UniverExchangeClientPlugin']),_0x3af996(0x1,_0x57f6fa[_0x389597(0xc6)](_0x57f6fa[_0x389597(0xc2)])),_0x3af996(0x2,_0x57f6fa[_0x389597(0x94)])],_0x2347e9[_0x389597(0xb5)]),_0x2347e9[_0x389597(0xce)]=_0x4a6a99,_0x2347e9[_0x389597(0xca)]=_0x24c4bb,Object[_0x389597(0xaf)](_0x2347e9,Symbol['toStringTag'],{'value':_0x389597(0xbb)});}));function _0x5ad2(_0x3d9bc1,_0x2f3843){_0x3d9bc1=_0x3d9bc1-0x8c;const _0x5b320b=_0x5b32();let _0x5ad25b=_0x5b320b[_0x3d9bc1];return _0x5ad25b;}function _0x5b32(){const _0x76aa89=['exchange.upload','@univerjs-pro/exchange-client','object','WorkbookExportPermission','Module','BUTTON','@univerjs/sheets','IExchangeOperateService','exchange-client.operation.import-xlsx','_initCommands','_menuManagerService','Injector','sheets-exchange-client.operation.exchange','UniverUi','type','Inject','1vFlzRm','96048jgBVgv','DirectExportIcon','ImportXLSXOperation','_commandService','RibbonStartGroup','UniverInstanceType','ExportXLSXOperation','onStarting','MenuItemType','exportXLSXByUnitId','UniverSheets','exchange.download','ExportIcon','onReady','11116vuhAcJ','symbol','Disposable','2886331tpQVfU','unit','6ezofSI','registerCommand','amd','getCurrentRangeDisable$','exports','IConfigService','setConfig','get','search','getOwnPropertyDescriptor','OPERATION','UniverProSheetsExchangeClient','501651DBLGUq','_configService','importXLSXToSnapshot','723038XsMGqw','exchange.file','disposeWithMe','UniverCore','add','forEach','_injector','@univerjs/sheets-ui','function','11577663UPjyRr','FolderIcon','mergeMenu','734505vjhupO','IMenuManagerService','exportXLSXBySnapshot','exchange-client.operation.export-xlsx','sheets-exchange-client.config','defineProperty','_config','merge','importXLSXToUnitId','UNIVER_SHEET','_initMenus','UniverSheetsExchangeClientPlugin','Plugin'];_0x5b32=function(){return _0x76aa89;};return _0x5b32();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
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/core": "0.15.0",
46
- "@univerjs-pro/exchange-client": "0.15.0",
47
- "@univerjs/sheets": "0.15.0",
48
- "@univerjs/ui": "0.15.0",
49
- "@univerjs/sheets-ui": "0.15.0"
45
+ "@univerjs-pro/exchange-client": "0.15.1",
46
+ "@univerjs/core": "0.15.1",
47
+ "@univerjs/sheets": "0.15.1",
48
+ "@univerjs/sheets-ui": "0.15.1",
49
+ "@univerjs/ui": "0.15.1"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",
53
- "vite": "^7.3.0",
53
+ "vite": "^7.3.1",
54
54
  "vitest": "^4.0.16",
55
- "@univerjs-infra/shared": "0.15.0"
55
+ "@univerjs-infra/shared": "0.15.1"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run",