@univerjs-pro/sheets-exchange-client 0.15.1 → 0.15.2-insiders.20260119-edc718c

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 _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;
1
+ 'use strict';const _0x56773b=_0xf976;(function(_0xfefd5f,_0x51771b){const _0x1f8adf=_0xf976,_0x16007=_0xfefd5f();while(!![]){try{const _0x506974=-parseInt(_0x1f8adf(0x1fb))/0x1*(parseInt(_0x1f8adf(0x20a))/0x2)+-parseInt(_0x1f8adf(0x1da))/0x3+parseInt(_0x1f8adf(0x1fe))/0x4+parseInt(_0x1f8adf(0x214))/0x5+-parseInt(_0x1f8adf(0x200))/0x6+-parseInt(_0x1f8adf(0x1ed))/0x7+parseInt(_0x1f8adf(0x1e7))/0x8;if(_0x506974===_0x51771b)break;else _0x16007['push'](_0x16007['shift']());}catch(_0x31ed83){_0x16007['push'](_0x16007['shift']());}}}(_0x4a5e,0x90c51));Object[_0x56773b(0x202)](exports,Symbol[_0x56773b(0x1e1)],{'value':_0x56773b(0x212)});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':_0x56773b(0x207),'type':i[_0x56773b(0x1f5)][_0x56773b(0x1ee)],'handler':async _0x16e468=>{const _0x3d22cc=_0x56773b,_0x2577c5=_0x16e468[_0x3d22cc(0x1dc)](g[_0x3d22cc(0x1f6)]);return new URLSearchParams(location['search'])[_0x3d22cc(0x1dc)](_0x3d22cc(0x203))?_0x2577c5['importXLSXToUnitId']():_0x2577c5[_0x3d22cc(0x1f2)](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i[_0x56773b(0x1f5)][_0x56773b(0x1ee)],'handler':async _0x5979a2=>{const _0x219f78=_0x56773b,_0x1368d1=_0x5979a2[_0x219f78(0x1dc)](g['IExchangeOperateService']);return new URLSearchParams(location[_0x219f78(0x201)])[_0x219f78(0x1dc)](_0x219f78(0x203))?_0x1368d1['exportXLSXByUnitId']():_0x1368d1['exportXLSXBySnapshot'](),!0x0;}},v='sheets-exchange-client.config',h={},S=_0x56773b(0x210);function x(_0x4cb8f9){const _0xfbf698=_0x56773b;return{'id':S,'type':c['MenuItemType'][_0xfbf698(0x1e6)],'icon':'DirectExportIcon','tooltip':'exchange.file','hidden$':c[_0xfbf698(0x1f0)](_0x4cb8f9,i[_0xfbf698(0x204)][_0xfbf698(0x20c)]),'disabled$':I['getCurrentRangeDisable$'](_0x4cb8f9,{'workbookTypes':[_[_0xfbf698(0x211)]]})};}function P(){const _0x161aa7=_0x56773b;return{'id':l['id'],'type':c[_0x161aa7(0x20e)]['BUTTON'],'title':_0x161aa7(0x1f1),'icon':_0x161aa7(0x1dd)};}function C(){const _0x4d2115=_0x56773b;return{'id':p['id'],'type':c[_0x4d2115(0x20e)][_0x4d2115(0x20b)],'title':'exchange.download','icon':'ExportIcon'};}const f={[c[_0x56773b(0x1de)][_0x56773b(0x1f7)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};function _0x4a5e(){const _0x363876=['importXLSXToSnapshot','UniverSheetsExchangeClientPlugin','ICommandService','CommandType','IExchangeOperateService','OTHERS','length','_configService','DependentOn','846667bqrqRG','ExportXLSXOperation','forEach','3960772FpvGHr','menu','5789040VqzymV','search','defineProperty','unit','UniverInstanceType','_config','Inject','exchange-client.operation.import-xlsx','setConfig','SHEET_EXCHANGE_CLIENT_PLUGIN','2wbEzNb','BUTTON','UNIVER_SHEET','Disposable','MenuItemType','symbol','sheets-exchange-client.operation.exchange','WorkbookExportPermission','Module','onStarting','4295810rZtoCZ','_commandService','_initMenus','3423351FfMkoE','Plugin','get','FolderIcon','RibbonStartGroup','_menuManagerService','_injector','toStringTag','Injector','pluginName','ImportXLSXOperation','_initCommands','SUBITEMS','14904600ucJYJx','mergeMenu','IMenuManagerService','merge','onReady','registerCommand','1167803CyKnmX','OPERATION','IConfigService','getMenuHiddenObservable','exchange.upload'];_0x4a5e=function(){return _0x363876;};return _0x4a5e();}var T=Object['getOwnPropertyDescriptor'],y=(_0x182e37,_0x262bd4,_0x5b0143,_0x16201f)=>{const _0x55ba93=_0x56773b;for(var _0xb06bf8=_0x16201f>0x1?void 0x0:_0x16201f?T(_0x262bd4,_0x5b0143):_0x262bd4,_0x317c3c=_0x182e37[_0x55ba93(0x1f8)]-0x1,_0x384e02;_0x317c3c>=0x0;_0x317c3c--)(_0x384e02=_0x182e37[_0x317c3c])&&(_0xb06bf8=_0x384e02(_0xb06bf8)||_0xb06bf8);return _0xb06bf8;},m=(_0x3c6e59,_0x2fcf9e)=>(_0x2e6b5a,_0x1211f4)=>_0x2fcf9e(_0x2e6b5a,_0x1211f4,_0x3c6e59);let u=class extends i[_0x56773b(0x20d)]{constructor(_0xf85997,_0x1d29b9){const _0x3b71d6=_0x56773b;super(),this[_0x3b71d6(0x215)]=_0xf85997,this[_0x3b71d6(0x1df)]=_0x1d29b9,this[_0x3b71d6(0x1e5)](),this[_0x3b71d6(0x216)]();}[_0x56773b(0x1e5)](){const _0x174262=_0x56773b;[l,p][_0x174262(0x1fd)](_0x4156df=>{const _0x51aea2=_0x174262;this['disposeWithMe'](this[_0x51aea2(0x215)][_0x51aea2(0x1ec)](_0x4156df));});}[_0x56773b(0x216)](){const _0x525a2e=_0x56773b;this['_menuManagerService'][_0x525a2e(0x1e8)](f);}};u=y([m(0x0,i[_0x56773b(0x1f4)]),m(0x1,c[_0x56773b(0x1e9)])],u);function _0xf976(_0x277617,_0x27332f){_0x277617=_0x277617-0x1da;const _0x4a5e4e=_0x4a5e();let _0xf97645=_0x4a5e4e[_0x277617];return _0xf97645;}var O=Object[_0x56773b(0x202)],U=Object['getOwnPropertyDescriptor'],X=(_0x3c0743,_0x19c183,_0x255961)=>_0x19c183 in _0x3c0743?O(_0x3c0743,_0x19c183,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x255961}):_0x3c0743[_0x19c183]=_0x255961,N=(_0x363b16,_0x9b59c4,_0x300839,_0x59fad6)=>{for(var _0x583cac=_0x59fad6>0x1?void 0x0:_0x59fad6?U(_0x9b59c4,_0x300839):_0x9b59c4,_0x275d83=_0x363b16['length']-0x1,_0x231826;_0x275d83>=0x0;_0x275d83--)(_0x231826=_0x363b16[_0x275d83])&&(_0x583cac=_0x231826(_0x583cac)||_0x583cac);return _0x583cac;},d=(_0x6df1d3,_0x3e0aa4)=>(_0x19a631,_0x3562e0)=>_0x3e0aa4(_0x19a631,_0x3562e0,_0x6df1d3),E=(_0x97699e,_0x41b787,_0xc8aab7)=>X(_0x97699e,typeof _0x41b787!=_0x56773b(0x20f)?_0x41b787+'':_0x41b787,_0xc8aab7);const L=_0x56773b(0x209);exports[_0x56773b(0x1f3)]=class extends i[_0x56773b(0x1db)]{constructor(_0x33f341=h,_0x21a0f1,_0x58a018){const _0x5a9704=_0x56773b;super(),this[_0x5a9704(0x205)]=_0x33f341,this['_injector']=_0x21a0f1,this[_0x5a9704(0x1f9)]=_0x58a018;const {menu:_0x589034,..._0x442991}=i[_0x5a9704(0x1ea)]({},h,this['_config']);_0x589034&&this[_0x5a9704(0x1f9)][_0x5a9704(0x208)](_0x5a9704(0x1ff),_0x589034,{'merge':!0x0}),this[_0x5a9704(0x1f9)][_0x5a9704(0x208)](v,_0x442991);}[_0x56773b(0x213)](){const _0x39adeb=_0x56773b;[[u]]['forEach'](_0x173331=>this[_0x39adeb(0x1e0)]['add'](_0x173331));}[_0x56773b(0x1eb)](){const _0x4dfa8e=_0x56773b;this[_0x4dfa8e(0x1e0)][_0x4dfa8e(0x1dc)](u);}},E(exports[_0x56773b(0x1f3)],_0x56773b(0x1e3),L),E(exports[_0x56773b(0x1f3)],'type',i[_0x56773b(0x204)][_0x56773b(0x20c)]),exports['UniverSheetsExchangeClientPlugin']=N([i[_0x56773b(0x1fa)](g['UniverExchangeClientPlugin']),d(0x1,i[_0x56773b(0x206)](i[_0x56773b(0x1e2)])),d(0x2,i[_0x56773b(0x1ef)])],exports['UniverSheetsExchangeClientPlugin']),exports[_0x56773b(0x1fc)]=p,exports[_0x56773b(0x1e4)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
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};
1
+ const _0x447b8f=_0x5d9b;(function(_0x3645f5,_0x2f7359){const _0x21b1dc=_0x5d9b,_0x30cd6a=_0x3645f5();while(!![]){try{const _0x1e97d7=parseInt(_0x21b1dc(0x1ee))/0x1+parseInt(_0x21b1dc(0x1ca))/0x2+parseInt(_0x21b1dc(0x1eb))/0x3*(-parseInt(_0x21b1dc(0x1d0))/0x4)+-parseInt(_0x21b1dc(0x1cb))/0x5+parseInt(_0x21b1dc(0x1c7))/0x6+-parseInt(_0x21b1dc(0x1c2))/0x7*(parseInt(_0x21b1dc(0x1d4))/0x8)+-parseInt(_0x21b1dc(0x1e0))/0x9;if(_0x1e97d7===_0x2f7359)break;else _0x30cd6a['push'](_0x30cd6a['shift']());}catch(_0x42ea9b){_0x30cd6a['push'](_0x30cd6a['shift']());}}}(_0x3dde,0xecbcc));function _0x5d9b(_0x115816,_0x4a3691){_0x115816=_0x115816-0x1c1;const _0x3dde22=_0x3dde();let _0x5d9bf8=_0x3dde22[_0x115816];return _0x5d9bf8;}import{IExchangeOperateService as _0x468ec8,UniverExchangeClientPlugin as _0x3ac643}from'@univerjs-pro/exchange-client';import{CommandType as _0x4b3bbd,UniverInstanceType as _0x34299d,Disposable as _0x53fb17,ICommandService as _0x4e612f,DependentOn as _0x5b7723,Inject as _0x1e8193,Injector as _0x1a5a37,IConfigService as _0x3af90d,Plugin as _0x332cfc,merge as _0x2dd9f3}from'@univerjs/core';import{MenuItemType as _0x542b65,getMenuHiddenObservable as _0x2e1ec0,RibbonStartGroup as _0x5609af,IMenuManagerService as _0x46214f}from'@univerjs/ui';import{WorkbookExportPermission as _0x4012da}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x383952}from'@univerjs/sheets-ui';const p={'id':_0x447b8f(0x1e2),'type':_0x4b3bbd['OPERATION'],'handler':async _0x2d9988=>{const _0x782e01=_0x447b8f,_0x270c63=_0x2d9988[_0x782e01(0x1e3)](_0x468ec8);return new URLSearchParams(location[_0x782e01(0x1e8)])[_0x782e01(0x1e3)](_0x782e01(0x1c1))?_0x270c63['importXLSXToUnitId']():_0x270c63[_0x782e01(0x1dd)](),!0x0;}},u={'id':_0x447b8f(0x1df),'type':_0x4b3bbd['OPERATION'],'handler':async _0x41a78b=>{const _0x3be166=_0x447b8f,_0x71f2f7=_0x41a78b[_0x3be166(0x1e3)](_0x468ec8);return new URLSearchParams(location[_0x3be166(0x1e8)])[_0x3be166(0x1e3)](_0x3be166(0x1c1))?_0x71f2f7[_0x3be166(0x1cd)]():_0x71f2f7[_0x3be166(0x1dc)](),!0x0;}},H='sheets-exchange-client.config',l={},S=_0x447b8f(0x1da);function R(_0x27a4b9){const _0x12bb7f=_0x447b8f;return{'id':S,'type':_0x542b65[_0x12bb7f(0x1de)],'icon':_0x12bb7f(0x1ed),'tooltip':_0x12bb7f(0x1e1),'hidden$':_0x2e1ec0(_0x27a4b9,_0x34299d[_0x12bb7f(0x1d3)]),'disabled$':_0x383952(_0x27a4b9,{'workbookTypes':[_0x4012da]})};}function w(){const _0x1f1009=_0x447b8f;return{'id':p['id'],'type':_0x542b65[_0x1f1009(0x1ce)],'title':_0x1f1009(0x1d7),'icon':_0x1f1009(0x1d2)};}function _0x3dde(){const _0x475132=['length','setConfig','getOwnPropertyDescriptor','8313714hLuGCa','_initMenus','OTHERS','2742032LsyNVc','2296660wzeHBT','_config','exportXLSXByUnitId','BUTTON','forEach','230196MfKExB','type','FolderIcon','UNIVER_SHEET','96tltigK','defineProperty','menu','exchange.upload','_menuManagerService','pluginName','sheets-exchange-client.operation.exchange','_commandService','exportXLSXBySnapshot','importXLSXToSnapshot','SUBITEMS','exchange-client.operation.export-xlsx','924975sNpkGN','exchange.file','exchange-client.operation.import-xlsx','get','mergeMenu','_configService','symbol','ExportIcon','search','add','onReady','87JCjGbR','exchange.download','DirectExportIcon','567273HAGCAX','_injector','registerCommand','unit','71869XyoIMK','disposeWithMe'];_0x3dde=function(){return _0x475132;};return _0x3dde();}function D(){const _0x3d0d9e=_0x447b8f;return{'id':u['id'],'type':_0x542b65[_0x3d0d9e(0x1ce)],'title':_0x3d0d9e(0x1ec),'icon':_0x3d0d9e(0x1e7)};}const F={[_0x5609af[_0x447b8f(0x1c9)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x447b8f(0x1c6)],A=(_0x549d2e,_0x25a73e,_0x2670a2,_0x2d69e1)=>{const _0x366bb5=_0x447b8f;for(var _0x537572=_0x2d69e1>0x1?void 0x0:_0x2d69e1?G(_0x25a73e,_0x2670a2):_0x25a73e,_0x51c023=_0x549d2e[_0x366bb5(0x1c4)]-0x1,_0x2022bf;_0x51c023>=0x0;_0x51c023--)(_0x2022bf=_0x549d2e[_0x51c023])&&(_0x537572=_0x2022bf(_0x537572)||_0x537572);return _0x537572;},d=(_0x341799,_0x1f7df0)=>(_0x74f504,_0x533bc3)=>_0x1f7df0(_0x74f504,_0x533bc3,_0x341799);let c=class extends _0x53fb17{constructor(_0x5c79e0,_0x30c812){const _0x5014a2=_0x447b8f;super(),this['_commandService']=_0x5c79e0,this[_0x5014a2(0x1d8)]=_0x30c812,this['_initCommands'](),this['_initMenus']();}['_initCommands'](){const _0x3bb65b=_0x447b8f;[p,u][_0x3bb65b(0x1cf)](_0x930ab1=>{const _0x2d9fa7=_0x3bb65b;this[_0x2d9fa7(0x1c3)](this[_0x2d9fa7(0x1db)][_0x2d9fa7(0x1f0)](_0x930ab1));});}[_0x447b8f(0x1c8)](){const _0x6007f5=_0x447b8f;this[_0x6007f5(0x1d8)][_0x6007f5(0x1e4)](F);}};c=A([d(0x0,_0x4e612f),d(0x1,_0x46214f)],c);var j=Object[_0x447b8f(0x1d5)],B=Object['getOwnPropertyDescriptor'],$=(_0x3b7aef,_0x396ea5,_0x15b6d6)=>_0x396ea5 in _0x3b7aef?j(_0x3b7aef,_0x396ea5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x15b6d6}):_0x3b7aef[_0x396ea5]=_0x15b6d6,V=(_0x275956,_0x5d8653,_0x58cfe0,_0x5581df)=>{for(var _0x4cb395=_0x5581df>0x1?void 0x0:_0x5581df?B(_0x5d8653,_0x58cfe0):_0x5d8653,_0x1a8c73=_0x275956['length']-0x1,_0x129af4;_0x1a8c73>=0x0;_0x1a8c73--)(_0x129af4=_0x275956[_0x1a8c73])&&(_0x4cb395=_0x129af4(_0x4cb395)||_0x4cb395);return _0x4cb395;},_=(_0x373c4e,_0x10739e)=>(_0x351aef,_0x1ae86b)=>_0x10739e(_0x351aef,_0x1ae86b,_0x373c4e),I=(_0x42b4f7,_0x5597d9,_0x4f7b8c)=>$(_0x42b4f7,typeof _0x5597d9!=_0x447b8f(0x1e6)?_0x5597d9+'':_0x5597d9,_0x4f7b8c);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x332cfc{constructor(_0x34451e=l,_0x36271c,_0x9faf8f){const _0x5d5b46=_0x447b8f;super(),this['_config']=_0x34451e,this[_0x5d5b46(0x1ef)]=_0x36271c,this[_0x5d5b46(0x1e5)]=_0x9faf8f;const {menu:_0x35d21b,..._0x4e9e55}=_0x2dd9f3({},l,this[_0x5d5b46(0x1cc)]);_0x35d21b&&this[_0x5d5b46(0x1e5)]['setConfig'](_0x5d5b46(0x1d6),_0x35d21b,{'merge':!0x0}),this[_0x5d5b46(0x1e5)][_0x5d5b46(0x1c5)](H,_0x4e9e55);}['onStarting'](){const _0x42ae0a=_0x447b8f;[[c]][_0x42ae0a(0x1cf)](_0x3aa0d9=>this[_0x42ae0a(0x1ef)][_0x42ae0a(0x1e9)](_0x3aa0d9));}[_0x447b8f(0x1ea)](){const _0x1fa0e6=_0x447b8f;this[_0x1fa0e6(0x1ef)][_0x1fa0e6(0x1e3)](c);}};I(s,_0x447b8f(0x1d9),W),I(s,_0x447b8f(0x1d1),_0x34299d[_0x447b8f(0x1d3)]),s=V([_0x5b7723(_0x3ac643),_(0x1,_0x1e8193(_0x1a5a37)),_(0x2,_0x3af90d)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
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};
1
+ const _0x447b8f=_0x5d9b;(function(_0x3645f5,_0x2f7359){const _0x21b1dc=_0x5d9b,_0x30cd6a=_0x3645f5();while(!![]){try{const _0x1e97d7=parseInt(_0x21b1dc(0x1ee))/0x1+parseInt(_0x21b1dc(0x1ca))/0x2+parseInt(_0x21b1dc(0x1eb))/0x3*(-parseInt(_0x21b1dc(0x1d0))/0x4)+-parseInt(_0x21b1dc(0x1cb))/0x5+parseInt(_0x21b1dc(0x1c7))/0x6+-parseInt(_0x21b1dc(0x1c2))/0x7*(parseInt(_0x21b1dc(0x1d4))/0x8)+-parseInt(_0x21b1dc(0x1e0))/0x9;if(_0x1e97d7===_0x2f7359)break;else _0x30cd6a['push'](_0x30cd6a['shift']());}catch(_0x42ea9b){_0x30cd6a['push'](_0x30cd6a['shift']());}}}(_0x3dde,0xecbcc));function _0x5d9b(_0x115816,_0x4a3691){_0x115816=_0x115816-0x1c1;const _0x3dde22=_0x3dde();let _0x5d9bf8=_0x3dde22[_0x115816];return _0x5d9bf8;}import{IExchangeOperateService as _0x468ec8,UniverExchangeClientPlugin as _0x3ac643}from'@univerjs-pro/exchange-client';import{CommandType as _0x4b3bbd,UniverInstanceType as _0x34299d,Disposable as _0x53fb17,ICommandService as _0x4e612f,DependentOn as _0x5b7723,Inject as _0x1e8193,Injector as _0x1a5a37,IConfigService as _0x3af90d,Plugin as _0x332cfc,merge as _0x2dd9f3}from'@univerjs/core';import{MenuItemType as _0x542b65,getMenuHiddenObservable as _0x2e1ec0,RibbonStartGroup as _0x5609af,IMenuManagerService as _0x46214f}from'@univerjs/ui';import{WorkbookExportPermission as _0x4012da}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x383952}from'@univerjs/sheets-ui';const p={'id':_0x447b8f(0x1e2),'type':_0x4b3bbd['OPERATION'],'handler':async _0x2d9988=>{const _0x782e01=_0x447b8f,_0x270c63=_0x2d9988[_0x782e01(0x1e3)](_0x468ec8);return new URLSearchParams(location[_0x782e01(0x1e8)])[_0x782e01(0x1e3)](_0x782e01(0x1c1))?_0x270c63['importXLSXToUnitId']():_0x270c63[_0x782e01(0x1dd)](),!0x0;}},u={'id':_0x447b8f(0x1df),'type':_0x4b3bbd['OPERATION'],'handler':async _0x41a78b=>{const _0x3be166=_0x447b8f,_0x71f2f7=_0x41a78b[_0x3be166(0x1e3)](_0x468ec8);return new URLSearchParams(location[_0x3be166(0x1e8)])[_0x3be166(0x1e3)](_0x3be166(0x1c1))?_0x71f2f7[_0x3be166(0x1cd)]():_0x71f2f7[_0x3be166(0x1dc)](),!0x0;}},H='sheets-exchange-client.config',l={},S=_0x447b8f(0x1da);function R(_0x27a4b9){const _0x12bb7f=_0x447b8f;return{'id':S,'type':_0x542b65[_0x12bb7f(0x1de)],'icon':_0x12bb7f(0x1ed),'tooltip':_0x12bb7f(0x1e1),'hidden$':_0x2e1ec0(_0x27a4b9,_0x34299d[_0x12bb7f(0x1d3)]),'disabled$':_0x383952(_0x27a4b9,{'workbookTypes':[_0x4012da]})};}function w(){const _0x1f1009=_0x447b8f;return{'id':p['id'],'type':_0x542b65[_0x1f1009(0x1ce)],'title':_0x1f1009(0x1d7),'icon':_0x1f1009(0x1d2)};}function _0x3dde(){const _0x475132=['length','setConfig','getOwnPropertyDescriptor','8313714hLuGCa','_initMenus','OTHERS','2742032LsyNVc','2296660wzeHBT','_config','exportXLSXByUnitId','BUTTON','forEach','230196MfKExB','type','FolderIcon','UNIVER_SHEET','96tltigK','defineProperty','menu','exchange.upload','_menuManagerService','pluginName','sheets-exchange-client.operation.exchange','_commandService','exportXLSXBySnapshot','importXLSXToSnapshot','SUBITEMS','exchange-client.operation.export-xlsx','924975sNpkGN','exchange.file','exchange-client.operation.import-xlsx','get','mergeMenu','_configService','symbol','ExportIcon','search','add','onReady','87JCjGbR','exchange.download','DirectExportIcon','567273HAGCAX','_injector','registerCommand','unit','71869XyoIMK','disposeWithMe'];_0x3dde=function(){return _0x475132;};return _0x3dde();}function D(){const _0x3d0d9e=_0x447b8f;return{'id':u['id'],'type':_0x542b65[_0x3d0d9e(0x1ce)],'title':_0x3d0d9e(0x1ec),'icon':_0x3d0d9e(0x1e7)};}const F={[_0x5609af[_0x447b8f(0x1c9)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x447b8f(0x1c6)],A=(_0x549d2e,_0x25a73e,_0x2670a2,_0x2d69e1)=>{const _0x366bb5=_0x447b8f;for(var _0x537572=_0x2d69e1>0x1?void 0x0:_0x2d69e1?G(_0x25a73e,_0x2670a2):_0x25a73e,_0x51c023=_0x549d2e[_0x366bb5(0x1c4)]-0x1,_0x2022bf;_0x51c023>=0x0;_0x51c023--)(_0x2022bf=_0x549d2e[_0x51c023])&&(_0x537572=_0x2022bf(_0x537572)||_0x537572);return _0x537572;},d=(_0x341799,_0x1f7df0)=>(_0x74f504,_0x533bc3)=>_0x1f7df0(_0x74f504,_0x533bc3,_0x341799);let c=class extends _0x53fb17{constructor(_0x5c79e0,_0x30c812){const _0x5014a2=_0x447b8f;super(),this['_commandService']=_0x5c79e0,this[_0x5014a2(0x1d8)]=_0x30c812,this['_initCommands'](),this['_initMenus']();}['_initCommands'](){const _0x3bb65b=_0x447b8f;[p,u][_0x3bb65b(0x1cf)](_0x930ab1=>{const _0x2d9fa7=_0x3bb65b;this[_0x2d9fa7(0x1c3)](this[_0x2d9fa7(0x1db)][_0x2d9fa7(0x1f0)](_0x930ab1));});}[_0x447b8f(0x1c8)](){const _0x6007f5=_0x447b8f;this[_0x6007f5(0x1d8)][_0x6007f5(0x1e4)](F);}};c=A([d(0x0,_0x4e612f),d(0x1,_0x46214f)],c);var j=Object[_0x447b8f(0x1d5)],B=Object['getOwnPropertyDescriptor'],$=(_0x3b7aef,_0x396ea5,_0x15b6d6)=>_0x396ea5 in _0x3b7aef?j(_0x3b7aef,_0x396ea5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x15b6d6}):_0x3b7aef[_0x396ea5]=_0x15b6d6,V=(_0x275956,_0x5d8653,_0x58cfe0,_0x5581df)=>{for(var _0x4cb395=_0x5581df>0x1?void 0x0:_0x5581df?B(_0x5d8653,_0x58cfe0):_0x5d8653,_0x1a8c73=_0x275956['length']-0x1,_0x129af4;_0x1a8c73>=0x0;_0x1a8c73--)(_0x129af4=_0x275956[_0x1a8c73])&&(_0x4cb395=_0x129af4(_0x4cb395)||_0x4cb395);return _0x4cb395;},_=(_0x373c4e,_0x10739e)=>(_0x351aef,_0x1ae86b)=>_0x10739e(_0x351aef,_0x1ae86b,_0x373c4e),I=(_0x42b4f7,_0x5597d9,_0x4f7b8c)=>$(_0x42b4f7,typeof _0x5597d9!=_0x447b8f(0x1e6)?_0x5597d9+'':_0x5597d9,_0x4f7b8c);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x332cfc{constructor(_0x34451e=l,_0x36271c,_0x9faf8f){const _0x5d5b46=_0x447b8f;super(),this['_config']=_0x34451e,this[_0x5d5b46(0x1ef)]=_0x36271c,this[_0x5d5b46(0x1e5)]=_0x9faf8f;const {menu:_0x35d21b,..._0x4e9e55}=_0x2dd9f3({},l,this[_0x5d5b46(0x1cc)]);_0x35d21b&&this[_0x5d5b46(0x1e5)]['setConfig'](_0x5d5b46(0x1d6),_0x35d21b,{'merge':!0x0}),this[_0x5d5b46(0x1e5)][_0x5d5b46(0x1c5)](H,_0x4e9e55);}['onStarting'](){const _0x42ae0a=_0x447b8f;[[c]][_0x42ae0a(0x1cf)](_0x3aa0d9=>this[_0x42ae0a(0x1ef)][_0x42ae0a(0x1e9)](_0x3aa0d9));}[_0x447b8f(0x1ea)](){const _0x1fa0e6=_0x447b8f;this[_0x1fa0e6(0x1ef)][_0x1fa0e6(0x1e3)](c);}};I(s,_0x447b8f(0x1d9),W),I(s,_0x447b8f(0x1d1),_0x34299d[_0x447b8f(0x1d3)]),s=V([_0x5b7723(_0x3ac643),_(0x1,_0x1e8193(_0x1a5a37)),_(0x2,_0x3af90d)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
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();}
1
+ function _0x17fe(_0x289ad9,_0x5b911e){_0x289ad9=_0x289ad9-0xd0;const _0x154911=_0x1549();let _0x17feae=_0x154911[_0x289ad9];return _0x17feae;}function _0x1549(){const _0x26cb29=['@univerjs/sheets','_configService','registerCommand','UniverInstanceType','IConfigService','Inject','CommandType','15cCjTKu','_injector','UniverSheetsUi','exchange-client.operation.export-xlsx','BUTTON','@univerjs/sheets-ui','237708vEaomf','exchange.file','sheets-exchange-client.config','_commandService','_initCommands','DirectExportIcon','Module','90159Iwburr','type','onStarting','menu','OTHERS','@univerjs/ui','object','ExportIcon','setConfig','IMenuManagerService','forEach','UniverProExchangeClient','SHEET_EXCHANGE_CLIENT_PLUGIN','get','exports','mergeMenu','importXLSXToUnitId','FolderIcon','getOwnPropertyDescriptor','disposeWithMe','symbol','importXLSXToSnapshot','UniverSheets','unit','UniverSheetsExchangeClientPlugin','exportXLSXByUnitId','function','ICommandService','18gvUysj','pluginName','WorkbookExportPermission','merge','exchange.download','OPERATION','length','_menuManagerService','defineProperty','exchange-client.operation.import-xlsx','UniverCore','search','1235304Ptvivi','sheets-exchange-client.operation.exchange','ImportXLSXOperation','DependentOn','170256sHHfKm','_config','getCurrentRangeDisable$','7lhvMuY','Injector','SUBITEMS','ExportXLSXOperation','73204gvsPZG','2058050FnYORU','UNIVER_SHEET','@univerjs-pro/exchange-client','37768eflBXg','_initMenus','MenuItemType','UniverProSheetsExchangeClient'];_0x1549=function(){return _0x26cb29;};return _0x1549();}(function(_0x427e4b,_0x237aac){const _0x54c72c=_0x17fe,_0x6c3889=_0x427e4b();while(!![]){try{const _0x4b725b=-parseInt(_0x54c72c(0xd5))/0x1+-parseInt(_0x54c72c(0x108))/0x2+-parseInt(_0x54c72c(0xdc))/0x3+parseInt(_0x54c72c(0x10f))/0x4*(-parseInt(_0x54c72c(0x11e))/0x5)+parseInt(_0x54c72c(0x104))/0x6+-parseInt(_0x54c72c(0x10b))/0x7*(parseInt(_0x54c72c(0x113))/0x8)+parseInt(_0x54c72c(0xf8))/0x9*(parseInt(_0x54c72c(0x110))/0xa);if(_0x4b725b===_0x237aac)break;else _0x6c3889['push'](_0x6c3889['shift']());}catch(_0xed3b3c){_0x6c3889['push'](_0x6c3889['shift']());}}}(_0x1549,0x320b5),function(_0x4d5958,_0x2e1263){const _0x38247d=_0x17fe;typeof exports==_0x38247d(0xe2)&&typeof module<'u'?_0x2e1263(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x38247d(0xf6)&&define['amd']?define([_0x38247d(0xea),_0x38247d(0x112),'@univerjs/core',_0x38247d(0xe1),_0x38247d(0x117),_0x38247d(0xd4)],_0x2e1263):(_0x4d5958=typeof globalThis<'u'?globalThis:_0x4d5958||self,_0x2e1263(_0x4d5958[_0x38247d(0x116)]={},_0x4d5958[_0x38247d(0xe7)],_0x4d5958[_0x38247d(0x102)],_0x4d5958['UniverUi'],_0x4d5958[_0x38247d(0xf2)],_0x4d5958[_0x38247d(0xd1)]));}(this,function(_0x48e412,_0x38ed10,_0xfc1689,_0x34ec10,_0x4ad498,_0x5e3447){'use strict';const _0x2de70b=_0x17fe;const _0x5e012a={'id':_0x2de70b(0x101),'type':_0xfc1689[_0x2de70b(0x11d)][_0x2de70b(0xfd)],'handler':async _0x47485a=>{const _0x3bc668=_0x2de70b,_0x56f320=_0x47485a[_0x3bc668(0xe9)](_0x38ed10['IExchangeOperateService']);return new URLSearchParams(location[_0x3bc668(0x103)])[_0x3bc668(0xe9)](_0x3bc668(0xf3))?_0x56f320[_0x3bc668(0xec)]():_0x56f320[_0x3bc668(0xf1)](),!0x0;}},_0x12ff25={'id':_0x2de70b(0xd2),'type':_0xfc1689[_0x2de70b(0x11d)][_0x2de70b(0xfd)],'handler':async _0x558ae8=>{const _0x225762=_0x2de70b,_0x96125d=_0x558ae8[_0x225762(0xe9)](_0x38ed10['IExchangeOperateService']);return new URLSearchParams(location[_0x225762(0x103)])[_0x225762(0xe9)]('unit')?_0x96125d[_0x225762(0xf5)]():_0x96125d['exportXLSXBySnapshot'](),!0x0;}},_0x4cafdd=_0x2de70b(0xd7),_0x51bba4={},_0x4caeb5=_0x2de70b(0x105);function _0x33ab8b(_0x71f10a){const _0x1d779f=_0x2de70b;return{'id':_0x4caeb5,'type':_0x34ec10[_0x1d779f(0x115)][_0x1d779f(0x10d)],'icon':_0x1d779f(0xda),'tooltip':_0x1d779f(0xd6),'hidden$':_0x34ec10['getMenuHiddenObservable'](_0x71f10a,_0xfc1689[_0x1d779f(0x11a)][_0x1d779f(0x111)]),'disabled$':_0x5e3447[_0x1d779f(0x10a)](_0x71f10a,{'workbookTypes':[_0x4ad498[_0x1d779f(0xfa)]]})};}function _0x5d6f4c(){const _0x4cafe8=_0x2de70b;return{'id':_0x5e012a['id'],'type':_0x34ec10[_0x4cafe8(0x115)]['BUTTON'],'title':'exchange.upload','icon':_0x4cafe8(0xed)};}function _0x41186e(){const _0x5e1bc4=_0x2de70b;return{'id':_0x12ff25['id'],'type':_0x34ec10[_0x5e1bc4(0x115)][_0x5e1bc4(0xd3)],'title':_0x5e1bc4(0xfc),'icon':_0x5e1bc4(0xe3)};}const _0x22309d={[_0x34ec10['RibbonStartGroup'][_0x2de70b(0xe0)]]:{[_0x4caeb5]:{'order':0.3,'menuItemFactory':_0x33ab8b,[_0x5e012a['id']]:{'order':0x0,'menuItemFactory':_0x5d6f4c},[_0x12ff25['id']]:{'order':0x1,'menuItemFactory':_0x41186e}}}};var _0x12f630=Object[_0x2de70b(0xee)],_0x4ae244=(_0x51cb95,_0xc8bfc1,_0x4c57ed,_0x1137cb)=>{const _0x5e4549=_0x2de70b;for(var _0x33a4f8=_0x1137cb>0x1?void 0x0:_0x1137cb?_0x12f630(_0xc8bfc1,_0x4c57ed):_0xc8bfc1,_0x2c56cb=_0x51cb95[_0x5e4549(0xfe)]-0x1,_0x2d9a7d;_0x2c56cb>=0x0;_0x2c56cb--)(_0x2d9a7d=_0x51cb95[_0x2c56cb])&&(_0x33a4f8=_0x2d9a7d(_0x33a4f8)||_0x33a4f8);return _0x33a4f8;},_0x2fe538=(_0x501987,_0x2968b9)=>(_0x267a8e,_0x111997)=>_0x2968b9(_0x267a8e,_0x111997,_0x501987);let _0x3ef600=class extends _0xfc1689['Disposable']{constructor(_0x38ccb1,_0x321245){const _0x4b8f98=_0x2de70b;super(),this[_0x4b8f98(0xd8)]=_0x38ccb1,this['_menuManagerService']=_0x321245,this['_initCommands'](),this[_0x4b8f98(0x114)]();}[_0x2de70b(0xd9)](){const _0x2fc677=_0x2de70b;[_0x5e012a,_0x12ff25][_0x2fc677(0xe6)](_0x24e2c8=>{const _0x3068e5=_0x2fc677;this[_0x3068e5(0xef)](this['_commandService'][_0x3068e5(0x119)](_0x24e2c8));});}[_0x2de70b(0x114)](){const _0x1850fe=_0x2de70b;this[_0x1850fe(0xff)][_0x1850fe(0xeb)](_0x22309d);}};_0x3ef600=_0x4ae244([_0x2fe538(0x0,_0xfc1689[_0x2de70b(0xf7)]),_0x2fe538(0x1,_0x34ec10[_0x2de70b(0xe5)])],_0x3ef600);var _0x3dcbf5=Object[_0x2de70b(0x100)],_0x33ac9d=Object[_0x2de70b(0xee)],_0x4eb98b=(_0x3fab15,_0x3a3f51,_0x340959)=>_0x3a3f51 in _0x3fab15?_0x3dcbf5(_0x3fab15,_0x3a3f51,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x340959}):_0x3fab15[_0x3a3f51]=_0x340959,_0x4f2d6b=(_0x30ce6a,_0x53da6e,_0x3290b7,_0x2eac0f)=>{for(var _0x1ca25e=_0x2eac0f>0x1?void 0x0:_0x2eac0f?_0x33ac9d(_0x53da6e,_0x3290b7):_0x53da6e,_0x7bd353=_0x30ce6a['length']-0x1,_0x257b29;_0x7bd353>=0x0;_0x7bd353--)(_0x257b29=_0x30ce6a[_0x7bd353])&&(_0x1ca25e=_0x257b29(_0x1ca25e)||_0x1ca25e);return _0x1ca25e;},_0x44a961=(_0x336220,_0xb03596)=>(_0x57207a,_0x1e3f98)=>_0xb03596(_0x57207a,_0x1e3f98,_0x336220),_0x57b5c8=(_0x1ddfd4,_0x2db33b,_0x18ef3b)=>_0x4eb98b(_0x1ddfd4,typeof _0x2db33b!=_0x2de70b(0xf0)?_0x2db33b+'':_0x2db33b,_0x18ef3b);const _0x3787eb=_0x2de70b(0xe8);_0x48e412[_0x2de70b(0xf4)]=class extends _0xfc1689['Plugin']{constructor(_0x21b062=_0x51bba4,_0xbe1aa,_0x59d808){const _0x4d3c1e=_0x2de70b;super(),this['_config']=_0x21b062,this[_0x4d3c1e(0xd0)]=_0xbe1aa,this[_0x4d3c1e(0x118)]=_0x59d808;const {menu:_0x12d0c7,..._0x11c3cc}=_0xfc1689[_0x4d3c1e(0xfb)]({},_0x51bba4,this[_0x4d3c1e(0x109)]);_0x12d0c7&&this[_0x4d3c1e(0x118)][_0x4d3c1e(0xe4)](_0x4d3c1e(0xdf),_0x12d0c7,{'merge':!0x0}),this[_0x4d3c1e(0x118)][_0x4d3c1e(0xe4)](_0x4cafdd,_0x11c3cc);}[_0x2de70b(0xde)](){const _0x57b520=_0x2de70b;[[_0x3ef600]]['forEach'](_0x1f98be=>this[_0x57b520(0xd0)]['add'](_0x1f98be));}['onReady'](){const _0x45dbbe=_0x2de70b;this[_0x45dbbe(0xd0)][_0x45dbbe(0xe9)](_0x3ef600);}},_0x57b5c8(_0x48e412[_0x2de70b(0xf4)],_0x2de70b(0xf9),_0x3787eb),_0x57b5c8(_0x48e412[_0x2de70b(0xf4)],_0x2de70b(0xdd),_0xfc1689['UniverInstanceType'][_0x2de70b(0x111)]),_0x48e412['UniverSheetsExchangeClientPlugin']=_0x4f2d6b([_0xfc1689[_0x2de70b(0x107)](_0x38ed10['UniverExchangeClientPlugin']),_0x44a961(0x1,_0xfc1689[_0x2de70b(0x11c)](_0xfc1689[_0x2de70b(0x10c)])),_0x44a961(0x2,_0xfc1689[_0x2de70b(0x11b)])],_0x48e412[_0x2de70b(0xf4)]),_0x48e412[_0x2de70b(0x10e)]=_0x12ff25,_0x48e412[_0x2de70b(0x106)]=_0x5e012a,Object[_0x2de70b(0x100)](_0x48e412,Symbol['toStringTag'],{'value':_0x2de70b(0xdb)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.15.1",
3
+ "version": "0.15.2-insiders.20260119-edc718c",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -42,17 +42,17 @@
42
42
  "lib"
43
43
  ],
44
44
  "dependencies": {
45
- "@univerjs-pro/exchange-client": "0.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"
45
+ "@univerjs-pro/exchange-client": "0.15.2-insiders.20260119-edc718c",
46
+ "@univerjs/core": "0.15.2-insiders.20260119-edc718c",
47
+ "@univerjs/sheets-ui": "0.15.2-insiders.20260119-edc718c",
48
+ "@univerjs/sheets": "0.15.2-insiders.20260119-edc718c",
49
+ "@univerjs/ui": "0.15.2-insiders.20260119-edc718c"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",
53
53
  "vite": "^7.3.1",
54
54
  "vitest": "^4.0.16",
55
- "@univerjs-infra/shared": "0.15.1"
55
+ "@univerjs-infra/shared": "0.15.2"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run",