@univerjs-pro/sheets-exchange-client 0.15.3-insiders.20260131-cbd5fac → 0.15.4

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';function _0x5336(_0x1e7abd,_0x5a6ad3){_0x1e7abd=_0x1e7abd-0x117;const _0x32fc31=_0x32fc();let _0x533659=_0x32fc31[_0x1e7abd];return _0x533659;}const _0x2daf80=_0x5336;(function(_0x241dac,_0x20d728){const _0x716f17=_0x5336,_0x47278a=_0x241dac();while(!![]){try{const _0x4e7e13=-parseInt(_0x716f17(0x11a))/0x1*(-parseInt(_0x716f17(0x11b))/0x2)+-parseInt(_0x716f17(0x14c))/0x3*(parseInt(_0x716f17(0x137))/0x4)+parseInt(_0x716f17(0x118))/0x5+-parseInt(_0x716f17(0x129))/0x6*(-parseInt(_0x716f17(0x12a))/0x7)+-parseInt(_0x716f17(0x132))/0x8*(-parseInt(_0x716f17(0x127))/0x9)+-parseInt(_0x716f17(0x157))/0xa*(-parseInt(_0x716f17(0x119))/0xb)+-parseInt(_0x716f17(0x11d))/0xc;if(_0x4e7e13===_0x20d728)break;else _0x47278a['push'](_0x47278a['shift']());}catch(_0x15fb5a){_0x47278a['push'](_0x47278a['shift']());}}}(_0x32fc,0xe45c2));Object['defineProperty'](exports,Symbol[_0x2daf80(0x131)],{'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':_0x2daf80(0x156),'type':i[_0x2daf80(0x11f)][_0x2daf80(0x13f)],'handler':async _0x3db9ca=>{const _0x4e7b63=_0x2daf80,_0x3b3304=_0x3db9ca[_0x4e7b63(0x147)](g[_0x4e7b63(0x155)]);return new URLSearchParams(location['search'])['get'](_0x4e7b63(0x14a))?_0x3b3304[_0x4e7b63(0x136)]():_0x3b3304[_0x4e7b63(0x159)](),!0x0;}},p={'id':_0x2daf80(0x11c),'type':i['CommandType']['OPERATION'],'handler':async _0x8837a6=>{const _0xc8b930=_0x2daf80,_0x16d0c9=_0x8837a6[_0xc8b930(0x147)](g[_0xc8b930(0x155)]);return new URLSearchParams(location['search'])[_0xc8b930(0x147)]('unit')?_0x16d0c9['exportXLSXByUnitId']():_0x16d0c9[_0xc8b930(0x134)](),!0x0;}},v=_0x2daf80(0x13b),h={},S='sheets-exchange-client.operation.exchange';function x(_0x232d99){const _0x2c25c2=_0x2daf80;return{'id':S,'type':c[_0x2c25c2(0x14b)][_0x2c25c2(0x125)],'icon':_0x2c25c2(0x12c),'tooltip':_0x2c25c2(0x12e),'hidden$':c[_0x2c25c2(0x143)](_0x232d99,i[_0x2c25c2(0x11e)][_0x2c25c2(0x141)]),'disabled$':I[_0x2c25c2(0x135)](_0x232d99,{'workbookTypes':[_[_0x2c25c2(0x145)]]})};}function P(){const _0x24c6d3=_0x2daf80;return{'id':l['id'],'type':c[_0x24c6d3(0x14b)][_0x24c6d3(0x130)],'title':_0x24c6d3(0x154),'icon':_0x24c6d3(0x121)};}function C(){const _0x53855a=_0x2daf80;return{'id':p['id'],'type':c['MenuItemType'][_0x53855a(0x130)],'title':_0x53855a(0x13c),'icon':'ExportIcon'};}const f={[c[_0x2daf80(0x120)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};function _0x32fc(){const _0x30538f=['ImportXLSXOperation','UniverExchangeClientPlugin','DependentOn','_injector','exchange.upload','IExchangeOperateService','exchange-client.operation.import-xlsx','20stdFOF','menu','importXLSXToSnapshot','symbol','3890660ynXhGh','4458817mqgaEo','9aFKCix','277658aVStBj','exchange-client.operation.export-xlsx','24734256SahPLr','UniverInstanceType','CommandType','RibbonStartGroup','FolderIcon','Inject','_commandService','_initMenus','SUBITEMS','getOwnPropertyDescriptor','666whaeLg','_config','25614bzhQWB','217hMtfnz','_configService','DirectExportIcon','forEach','exchange.file','setConfig','BUTTON','toStringTag','143064WOUJRl','defineProperty','exportXLSXBySnapshot','getCurrentRangeDisable$','importXLSXToUnitId','8ugBpWp','Disposable','onStarting','UniverSheetsExchangeClientPlugin','sheets-exchange-client.config','exchange.download','Injector','IConfigService','OPERATION','ExportXLSXOperation','UNIVER_SHEET','mergeMenu','getMenuHiddenObservable','length','WorkbookExportPermission','merge','get','disposeWithMe','Plugin','unit','MenuItemType','1946127FUFixl','add','SHEET_EXCHANGE_CLIENT_PLUGIN','type'];_0x32fc=function(){return _0x30538f;};return _0x32fc();}var T=Object[_0x2daf80(0x126)],y=(_0x2254bb,_0xd9f97,_0x2c1b2a,_0x24e507)=>{for(var _0x14058a=_0x24e507>0x1?void 0x0:_0x24e507?T(_0xd9f97,_0x2c1b2a):_0xd9f97,_0x37cba5=_0x2254bb['length']-0x1,_0x2928bb;_0x37cba5>=0x0;_0x37cba5--)(_0x2928bb=_0x2254bb[_0x37cba5])&&(_0x14058a=_0x2928bb(_0x14058a)||_0x14058a);return _0x14058a;},m=(_0x341e58,_0x4540a4)=>(_0x276774,_0x4604d0)=>_0x4540a4(_0x276774,_0x4604d0,_0x341e58);let u=class extends i[_0x2daf80(0x138)]{constructor(_0x528eb3,_0x41d9c1){const _0x1fc0bb=_0x2daf80;super(),this[_0x1fc0bb(0x123)]=_0x528eb3,this['_menuManagerService']=_0x41d9c1,this['_initCommands'](),this[_0x1fc0bb(0x124)]();}['_initCommands'](){[l,p]['forEach'](_0x3f6b26=>{const _0x3f6647=_0x5336;this[_0x3f6647(0x148)](this[_0x3f6647(0x123)]['registerCommand'](_0x3f6b26));});}[_0x2daf80(0x124)](){const _0x2d60a8=_0x2daf80;this['_menuManagerService'][_0x2d60a8(0x142)](f);}};u=y([m(0x0,i['ICommandService']),m(0x1,c['IMenuManagerService'])],u);var O=Object[_0x2daf80(0x133)],U=Object[_0x2daf80(0x126)],X=(_0x4ccc43,_0x440ed8,_0x3d54ef)=>_0x440ed8 in _0x4ccc43?O(_0x4ccc43,_0x440ed8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d54ef}):_0x4ccc43[_0x440ed8]=_0x3d54ef,N=(_0x5568db,_0x580957,_0x544826,_0x16bc79)=>{const _0x16ab0a=_0x2daf80;for(var _0x2b83fa=_0x16bc79>0x1?void 0x0:_0x16bc79?U(_0x580957,_0x544826):_0x580957,_0x27599d=_0x5568db[_0x16ab0a(0x144)]-0x1,_0x264c8a;_0x27599d>=0x0;_0x27599d--)(_0x264c8a=_0x5568db[_0x27599d])&&(_0x2b83fa=_0x264c8a(_0x2b83fa)||_0x2b83fa);return _0x2b83fa;},d=(_0xac279b,_0x565b45)=>(_0x3f0814,_0x47739a)=>_0x565b45(_0x3f0814,_0x47739a,_0xac279b),E=(_0x4199a6,_0x24192e,_0x4a7f54)=>X(_0x4199a6,typeof _0x24192e!=_0x2daf80(0x117)?_0x24192e+'':_0x24192e,_0x4a7f54);const L=_0x2daf80(0x14e);exports['UniverSheetsExchangeClientPlugin']=class extends i[_0x2daf80(0x149)]{constructor(_0x2647ae=h,_0x51e729,_0x5b94d7){const _0x55d2c2=_0x2daf80;super(),this[_0x55d2c2(0x128)]=_0x2647ae,this['_injector']=_0x51e729,this[_0x55d2c2(0x12b)]=_0x5b94d7;const {menu:_0x1b5299,..._0x28f921}=i[_0x55d2c2(0x146)]({},h,this['_config']);_0x1b5299&&this[_0x55d2c2(0x12b)]['setConfig'](_0x55d2c2(0x158),_0x1b5299,{'merge':!0x0}),this[_0x55d2c2(0x12b)][_0x55d2c2(0x12f)](v,_0x28f921);}[_0x2daf80(0x139)](){const _0x54ddae=_0x2daf80;[[u]][_0x54ddae(0x12d)](_0x2da2bf=>this[_0x54ddae(0x153)][_0x54ddae(0x14d)](_0x2da2bf));}['onReady'](){const _0x3818d8=_0x2daf80;this[_0x3818d8(0x153)][_0x3818d8(0x147)](u);}},E(exports[_0x2daf80(0x13a)],'pluginName',L),E(exports[_0x2daf80(0x13a)],_0x2daf80(0x14f),i[_0x2daf80(0x11e)][_0x2daf80(0x141)]),exports['UniverSheetsExchangeClientPlugin']=N([i[_0x2daf80(0x152)](g[_0x2daf80(0x151)]),d(0x1,i[_0x2daf80(0x122)](i[_0x2daf80(0x13d)])),d(0x2,i[_0x2daf80(0x13e)])],exports[_0x2daf80(0x13a)]),exports[_0x2daf80(0x140)]=p,exports[_0x2daf80(0x150)]=l;
1
+ 'use strict';const _0x2ef219=_0x5dd5;(function(_0x441457,_0x2e3d3d){const _0x5dd09f=_0x5dd5,_0x461d67=_0x441457();while(!![]){try{const _0x73abc3=-parseInt(_0x5dd09f(0x119))/0x1+-parseInt(_0x5dd09f(0x11b))/0x2+-parseInt(_0x5dd09f(0x133))/0x3+-parseInt(_0x5dd09f(0x12c))/0x4+-parseInt(_0x5dd09f(0x153))/0x5*(parseInt(_0x5dd09f(0x121))/0x6)+parseInt(_0x5dd09f(0x13c))/0x7*(-parseInt(_0x5dd09f(0x122))/0x8)+-parseInt(_0x5dd09f(0x134))/0x9*(-parseInt(_0x5dd09f(0x131))/0xa);if(_0x73abc3===_0x2e3d3d)break;else _0x461d67['push'](_0x461d67['shift']());}catch(_0x19363c){_0x461d67['push'](_0x461d67['shift']());}}}(_0x2e19,0x846d2));Object[_0x2ef219(0x143)](exports,Symbol[_0x2ef219(0x139)],{'value':'Module'});function _0x5dd5(_0x5ec638,_0x206259){_0x5ec638=_0x5ec638-0x118;const _0x2e19ca=_0x2e19();let _0x5dd565=_0x2e19ca[_0x5ec638];return _0x5dd565;}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':_0x2ef219(0x129),'type':i[_0x2ef219(0x157)][_0x2ef219(0x12e)],'handler':async _0x534b7c=>{const _0x53a6ab=_0x2ef219,_0x1feb4b=_0x534b7c[_0x53a6ab(0x15d)](g[_0x53a6ab(0x144)]);return new URLSearchParams(location[_0x53a6ab(0x126)])[_0x53a6ab(0x15d)](_0x53a6ab(0x120))?_0x1feb4b['importXLSXToUnitId']():_0x1feb4b[_0x53a6ab(0x149)](),!0x0;}},p={'id':_0x2ef219(0x140),'type':i[_0x2ef219(0x157)][_0x2ef219(0x12e)],'handler':async _0x5aa220=>{const _0x48bb9b=_0x2ef219,_0x53a99b=_0x5aa220[_0x48bb9b(0x15d)](g[_0x48bb9b(0x144)]);return new URLSearchParams(location['search'])[_0x48bb9b(0x15d)]('unit')?_0x53a99b[_0x48bb9b(0x11c)]():_0x53a99b[_0x48bb9b(0x146)](),!0x0;}},v=_0x2ef219(0x152),h={},S=_0x2ef219(0x12b);function x(_0x3a0b66){const _0x4c54ea=_0x2ef219;return{'id':S,'type':c[_0x4c54ea(0x14f)][_0x4c54ea(0x158)],'icon':_0x4c54ea(0x14a),'tooltip':_0x4c54ea(0x118),'hidden$':c[_0x4c54ea(0x130)](_0x3a0b66,i[_0x4c54ea(0x147)][_0x4c54ea(0x11f)]),'disabled$':I[_0x4c54ea(0x125)](_0x3a0b66,{'workbookTypes':[_[_0x4c54ea(0x135)]]})};}function _0x2e19(){const _0x24d325=['_initMenus','Injector','get','UniverExchangeClientPlugin','exchange.file','36205RypFdT','Inject','1214276ppuCca','exportXLSXByUnitId','symbol','_configService','UNIVER_SHEET','unit','396JNFyMi','3343688FVuARp','OTHERS','merge','getCurrentRangeDisable$','search','ImportXLSXOperation','_commandService','exchange-client.operation.import-xlsx','disposeWithMe','sheets-exchange-client.operation.exchange','3130448XwusFu','_config','OPERATION','ICommandService','getMenuHiddenObservable','50TLyeZZ','menu','171621zfhvPI','5772771mDauHS','WorkbookExportPermission','DependentOn','IMenuManagerService','registerCommand','toStringTag','exchange.upload','FolderIcon','7vgrnMN','ExportXLSXOperation','ExportIcon','add','exchange-client.operation.export-xlsx','onStarting','length','defineProperty','IExchangeOperateService','BUTTON','exportXLSXBySnapshot','UniverInstanceType','forEach','importXLSXToSnapshot','DirectExportIcon','_injector','SHEET_EXCHANGE_CLIENT_PLUGIN','RibbonStartGroup','Disposable','MenuItemType','pluginName','mergeMenu','sheets-exchange-client.config','57845hDPXHR','getOwnPropertyDescriptor','_initCommands','UniverSheetsExchangeClientPlugin','CommandType','SUBITEMS','onReady','_menuManagerService'];_0x2e19=function(){return _0x24d325;};return _0x2e19();}function P(){const _0x355c12=_0x2ef219;return{'id':l['id'],'type':c['MenuItemType']['BUTTON'],'title':_0x355c12(0x13a),'icon':_0x355c12(0x13b)};}function C(){const _0x53047a=_0x2ef219;return{'id':p['id'],'type':c['MenuItemType'][_0x53047a(0x145)],'title':'exchange.download','icon':_0x53047a(0x13e)};}const f={[c[_0x2ef219(0x14d)][_0x2ef219(0x123)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x321e55,_0x18a24e,_0x296dbc,_0x4f0734)=>{const _0x26a74a=_0x2ef219;for(var _0x40041d=_0x4f0734>0x1?void 0x0:_0x4f0734?T(_0x18a24e,_0x296dbc):_0x18a24e,_0x333ce8=_0x321e55[_0x26a74a(0x142)]-0x1,_0xc5506c;_0x333ce8>=0x0;_0x333ce8--)(_0xc5506c=_0x321e55[_0x333ce8])&&(_0x40041d=_0xc5506c(_0x40041d)||_0x40041d);return _0x40041d;},m=(_0x5b0cf8,_0x4024f4)=>(_0x4f3b6a,_0x367d40)=>_0x4024f4(_0x4f3b6a,_0x367d40,_0x5b0cf8);let u=class extends i[_0x2ef219(0x14e)]{constructor(_0x3e1089,_0x2ce16c){const _0x5308b1=_0x2ef219;super(),this[_0x5308b1(0x128)]=_0x3e1089,this[_0x5308b1(0x15a)]=_0x2ce16c,this[_0x5308b1(0x155)](),this[_0x5308b1(0x15b)]();}['_initCommands'](){const _0x5a1629=_0x2ef219;[l,p][_0x5a1629(0x148)](_0x59ae7c=>{const _0x2e537b=_0x5a1629;this[_0x2e537b(0x12a)](this[_0x2e537b(0x128)][_0x2e537b(0x138)](_0x59ae7c));});}['_initMenus'](){const _0x4ee6dc=_0x2ef219;this[_0x4ee6dc(0x15a)][_0x4ee6dc(0x151)](f);}};u=y([m(0x0,i[_0x2ef219(0x12f)]),m(0x1,c[_0x2ef219(0x137)])],u);var O=Object['defineProperty'],U=Object[_0x2ef219(0x154)],X=(_0x267c2f,_0x4f2e45,_0x4bca0e)=>_0x4f2e45 in _0x267c2f?O(_0x267c2f,_0x4f2e45,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4bca0e}):_0x267c2f[_0x4f2e45]=_0x4bca0e,N=(_0x291b73,_0x43043a,_0x4f0c46,_0x303b0a)=>{const _0x250b9f=_0x2ef219;for(var _0x406703=_0x303b0a>0x1?void 0x0:_0x303b0a?U(_0x43043a,_0x4f0c46):_0x43043a,_0x28bedb=_0x291b73[_0x250b9f(0x142)]-0x1,_0x45ca8e;_0x28bedb>=0x0;_0x28bedb--)(_0x45ca8e=_0x291b73[_0x28bedb])&&(_0x406703=_0x45ca8e(_0x406703)||_0x406703);return _0x406703;},d=(_0x1d1587,_0x514af9)=>(_0x3c46a8,_0x30f21d)=>_0x514af9(_0x3c46a8,_0x30f21d,_0x1d1587),E=(_0x3e5c32,_0x545663,_0x50fd64)=>X(_0x3e5c32,typeof _0x545663!=_0x2ef219(0x11d)?_0x545663+'':_0x545663,_0x50fd64);const L=_0x2ef219(0x14c);exports[_0x2ef219(0x156)]=class extends i['Plugin']{constructor(_0x15845d=h,_0x29dc47,_0x26394c){const _0x6d2f13=_0x2ef219;super(),this[_0x6d2f13(0x12d)]=_0x15845d,this[_0x6d2f13(0x14b)]=_0x29dc47,this[_0x6d2f13(0x11e)]=_0x26394c;const {menu:_0xd8061f,..._0x4b1be0}=i[_0x6d2f13(0x124)]({},h,this[_0x6d2f13(0x12d)]);_0xd8061f&&this['_configService']['setConfig'](_0x6d2f13(0x132),_0xd8061f,{'merge':!0x0}),this['_configService']['setConfig'](v,_0x4b1be0);}[_0x2ef219(0x141)](){const _0x34c8bf=_0x2ef219;[[u]][_0x34c8bf(0x148)](_0x23e256=>this['_injector'][_0x34c8bf(0x13f)](_0x23e256));}[_0x2ef219(0x159)](){const _0x36b22e=_0x2ef219;this[_0x36b22e(0x14b)][_0x36b22e(0x15d)](u);}},E(exports['UniverSheetsExchangeClientPlugin'],_0x2ef219(0x150),L),E(exports[_0x2ef219(0x156)],'type',i['UniverInstanceType'][_0x2ef219(0x11f)]),exports[_0x2ef219(0x156)]=N([i[_0x2ef219(0x136)](g[_0x2ef219(0x15e)]),d(0x1,i[_0x2ef219(0x11a)](i[_0x2ef219(0x15c)])),d(0x2,i['IConfigService'])],exports[_0x2ef219(0x156)]),exports[_0x2ef219(0x13d)]=p,exports[_0x2ef219(0x127)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x22f696=_0x4615;(function(_0x8d5ff5,_0x43a5b2){const _0xd4f93e=_0x4615,_0x4a5926=_0x8d5ff5();while(!![]){try{const _0xf3bf27=parseInt(_0xd4f93e(0x193))/0x1*(parseInt(_0xd4f93e(0x175))/0x2)+parseInt(_0xd4f93e(0x198))/0x3+-parseInt(_0xd4f93e(0x17d))/0x4*(-parseInt(_0xd4f93e(0x189))/0x5)+parseInt(_0xd4f93e(0x17b))/0x6*(-parseInt(_0xd4f93e(0x199))/0x7)+parseInt(_0xd4f93e(0x17c))/0x8*(parseInt(_0xd4f93e(0x194))/0x9)+parseInt(_0xd4f93e(0x1a0))/0xa*(parseInt(_0xd4f93e(0x19c))/0xb)+-parseInt(_0xd4f93e(0x18f))/0xc*(parseInt(_0xd4f93e(0x187))/0xd);if(_0xf3bf27===_0x43a5b2)break;else _0x4a5926['push'](_0x4a5926['shift']());}catch(_0x42307e){_0x4a5926['push'](_0x4a5926['shift']());}}}(_0x239f,0x6c328));import{IExchangeOperateService as _0x2b5f36,UniverExchangeClientPlugin as _0x2b3b48}from'@univerjs-pro/exchange-client';import{CommandType as _0x5cdde4,UniverInstanceType as _0x11e6b5,Disposable as _0x551078,ICommandService as _0x3a7bae,DependentOn as _0x3ac469,Inject as _0x9ab8f9,Injector as _0x2b5944,Plugin as _0x48a035,merge as _0x4b165f,IConfigService as _0x984c7e}from'@univerjs/core';import{MenuItemType as _0x57947c,getMenuHiddenObservable as _0x36f560,RibbonStartGroup as _0x1e3ab5,IMenuManagerService as _0x5c0f15}from'@univerjs/ui';import{WorkbookExportPermission as _0x3b9f88}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x17a45b}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x5cdde4[_0x22f696(0x184)],'handler':async _0x49dec1=>{const _0x36765b=_0x22f696,_0x4e4f5c=_0x49dec1[_0x36765b(0x195)](_0x2b5f36);return new URLSearchParams(location['search'])[_0x36765b(0x195)](_0x36765b(0x19b))?_0x4e4f5c[_0x36765b(0x185)]():_0x4e4f5c['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x22f696(0x1a2),'type':_0x5cdde4['OPERATION'],'handler':async _0x5a5d8b=>{const _0xaa991f=_0x22f696,_0x5c10f5=_0x5a5d8b[_0xaa991f(0x195)](_0x2b5f36);return new URLSearchParams(location[_0xaa991f(0x1a6)])[_0xaa991f(0x195)]('unit')?_0x5c10f5[_0xaa991f(0x178)]():_0x5c10f5[_0xaa991f(0x1a4)](),!0x0;}},H=_0x22f696(0x1a8),l={},S=_0x22f696(0x179);function R(_0x5b37d9){const _0x4c7352=_0x22f696;return{'id':S,'type':_0x57947c[_0x4c7352(0x17e)],'icon':_0x4c7352(0x192),'tooltip':_0x4c7352(0x18e),'hidden$':_0x36f560(_0x5b37d9,_0x11e6b5[_0x4c7352(0x190)]),'disabled$':_0x17a45b(_0x5b37d9,{'workbookTypes':[_0x3b9f88]})};}function w(){const _0x56b04e=_0x22f696;return{'id':p['id'],'type':_0x57947c['BUTTON'],'title':'exchange.upload','icon':_0x56b04e(0x18d)};}function D(){const _0x2436e5=_0x22f696;return{'id':u['id'],'type':_0x57947c['BUTTON'],'title':_0x2436e5(0x188),'icon':'ExportIcon'};}const F={[_0x1e3ab5[_0x22f696(0x18b)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x22f696(0x1a7)],A=(_0x561c19,_0x5defa3,_0x5d1771,_0x29612e)=>{const _0x52bf67=_0x22f696;for(var _0x467da7=_0x29612e>0x1?void 0x0:_0x29612e?G(_0x5defa3,_0x5d1771):_0x5defa3,_0x21f7ed=_0x561c19[_0x52bf67(0x191)]-0x1,_0x110c6f;_0x21f7ed>=0x0;_0x21f7ed--)(_0x110c6f=_0x561c19[_0x21f7ed])&&(_0x467da7=_0x110c6f(_0x467da7)||_0x467da7);return _0x467da7;},d=(_0x509e45,_0x1f9c4e)=>(_0xb26973,_0x339567)=>_0x1f9c4e(_0xb26973,_0x339567,_0x509e45);function _0x239f(){const _0x1b54c2=['_initMenus','_initCommands','OPERATION','importXLSXToUnitId','mergeMenu','6019481ZXzoAG','exchange.download','173155GUNtxm','type','OTHERS','_configService','FolderIcon','exchange.file','12QhnfpS','UNIVER_SHEET','length','DirectExportIcon','2sBCDcd','3141405EBiolr','get','setConfig','add','296862KVmspq','444633ntDqby','menu','unit','312917qSeqwN','onStarting','disposeWithMe','registerCommand','20CBKHWs','_menuManagerService','exchange-client.operation.export-xlsx','onReady','exportXLSXBySnapshot','_config','search','getOwnPropertyDescriptor','sheets-exchange-client.config','436124xXObSI','_injector','_commandService','exportXLSXByUnitId','sheets-exchange-client.operation.exchange','defineProperty','36VNAUpk','8LDVSiX','40lNWhlE','SUBITEMS','pluginName','SHEET_EXCHANGE_CLIENT_PLUGIN','forEach'];_0x239f=function(){return _0x1b54c2;};return _0x239f();}let c=class extends _0x551078{constructor(_0x11b865,_0x581801){const _0x641e38=_0x22f696;super(),this['_commandService']=_0x11b865,this['_menuManagerService']=_0x581801,this[_0x641e38(0x183)](),this[_0x641e38(0x182)]();}['_initCommands'](){const _0x3c8422=_0x22f696;[p,u][_0x3c8422(0x181)](_0x238adb=>{const _0x8a800e=_0x3c8422;this[_0x8a800e(0x19e)](this[_0x8a800e(0x177)][_0x8a800e(0x19f)](_0x238adb));});}[_0x22f696(0x182)](){const _0x19d216=_0x22f696;this[_0x19d216(0x1a1)][_0x19d216(0x186)](F);}};c=A([d(0x0,_0x3a7bae),d(0x1,_0x5c0f15)],c);var j=Object[_0x22f696(0x17a)],B=Object['getOwnPropertyDescriptor'],$=(_0x434f6a,_0x5d184c,_0x558b58)=>_0x5d184c in _0x434f6a?j(_0x434f6a,_0x5d184c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x558b58}):_0x434f6a[_0x5d184c]=_0x558b58,V=(_0x17289c,_0x408def,_0x1a397a,_0xabd1bd)=>{for(var _0x17bb65=_0xabd1bd>0x1?void 0x0:_0xabd1bd?B(_0x408def,_0x1a397a):_0x408def,_0xfd8848=_0x17289c['length']-0x1,_0x1b65b4;_0xfd8848>=0x0;_0xfd8848--)(_0x1b65b4=_0x17289c[_0xfd8848])&&(_0x17bb65=_0x1b65b4(_0x17bb65)||_0x17bb65);return _0x17bb65;},_=(_0x1baa92,_0x28a1d8)=>(_0x1f23a3,_0x31585f)=>_0x28a1d8(_0x1f23a3,_0x31585f,_0x1baa92),I=(_0x22f04f,_0x53e156,_0x3296ba)=>$(_0x22f04f,typeof _0x53e156!='symbol'?_0x53e156+'':_0x53e156,_0x3296ba);const W=_0x22f696(0x180);let s=class extends _0x48a035{constructor(_0x560c82=l,_0x20a48c,_0x771ff2){const _0x373de8=_0x22f696;super(),this[_0x373de8(0x1a5)]=_0x560c82,this[_0x373de8(0x176)]=_0x20a48c,this['_configService']=_0x771ff2;const {menu:_0xf80566,..._0x25e7c7}=_0x4b165f({},l,this['_config']);_0xf80566&&this[_0x373de8(0x18c)][_0x373de8(0x196)](_0x373de8(0x19a),_0xf80566,{'merge':!0x0}),this['_configService'][_0x373de8(0x196)](H,_0x25e7c7);}[_0x22f696(0x19d)](){const _0x445805=_0x22f696;[[c]][_0x445805(0x181)](_0x3e19f9=>this[_0x445805(0x176)][_0x445805(0x197)](_0x3e19f9));}[_0x22f696(0x1a3)](){const _0x50c8b4=_0x22f696;this[_0x50c8b4(0x176)][_0x50c8b4(0x195)](c);}};function _0x4615(_0x1dacf2,_0x3e02ba){_0x1dacf2=_0x1dacf2-0x175;const _0x239f6a=_0x239f();let _0x4615fa=_0x239f6a[_0x1dacf2];return _0x4615fa;}I(s,_0x22f696(0x17f),W),I(s,_0x22f696(0x18a),_0x11e6b5[_0x22f696(0x190)]),s=V([_0x3ac469(_0x2b3b48),_(0x1,_0x9ab8f9(_0x2b5944)),_(0x2,_0x984c7e)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x6208ca=_0x1671;(function(_0x4f51bf,_0x4552ee){const _0x5b41ca=_0x1671,_0x4649da=_0x4f51bf();while(!![]){try{const _0x16a973=-parseInt(_0x5b41ca(0x1aa))/0x1+parseInt(_0x5b41ca(0x19d))/0x2+parseInt(_0x5b41ca(0x1a5))/0x3+parseInt(_0x5b41ca(0x1a4))/0x4*(parseInt(_0x5b41ca(0x1b4))/0x5)+-parseInt(_0x5b41ca(0x1b7))/0x6*(-parseInt(_0x5b41ca(0x1bd))/0x7)+-parseInt(_0x5b41ca(0x19a))/0x8+parseInt(_0x5b41ca(0x1b2))/0x9*(-parseInt(_0x5b41ca(0x194))/0xa);if(_0x16a973===_0x4552ee)break;else _0x4649da['push'](_0x4649da['shift']());}catch(_0x3ba5b1){_0x4649da['push'](_0x4649da['shift']());}}}(_0x1358,0xe1e8a));import{IExchangeOperateService as _0x1bc7d5,UniverExchangeClientPlugin as _0x225b01}from'@univerjs-pro/exchange-client';import{CommandType as _0x2b482b,UniverInstanceType as _0x546e8e,Disposable as _0x3dfbc5,ICommandService as _0x3d6382,DependentOn as _0x45bcb8,Inject as _0x5c4a82,Injector as _0x50b37e,Plugin as _0xd5a59,merge as _0x158326,IConfigService as _0x3ceb33}from'@univerjs/core';import{MenuItemType as _0x26860a,getMenuHiddenObservable as _0x4beada,RibbonStartGroup as _0x52be37,IMenuManagerService as _0x55864f}from'@univerjs/ui';import{WorkbookExportPermission as _0x245f03}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x5bfe65}from'@univerjs/sheets-ui';const p={'id':_0x6208ca(0x199),'type':_0x2b482b[_0x6208ca(0x1af)],'handler':async _0x88e1f7=>{const _0x407258=_0x6208ca,_0x25956c=_0x88e1f7['get'](_0x1bc7d5);return new URLSearchParams(location[_0x407258(0x1ba)])['get'](_0x407258(0x1a0))?_0x25956c[_0x407258(0x1b5)]():_0x25956c[_0x407258(0x19b)](),!0x0;}},u={'id':_0x6208ca(0x1b6),'type':_0x2b482b[_0x6208ca(0x1af)],'handler':async _0x38dda7=>{const _0x113eee=_0x6208ca,_0x4c740a=_0x38dda7['get'](_0x1bc7d5);return new URLSearchParams(location[_0x113eee(0x1ba)])[_0x113eee(0x1bb)]('unit')?_0x4c740a['exportXLSXByUnitId']():_0x4c740a['exportXLSXBySnapshot'](),!0x0;}},H=_0x6208ca(0x1a8),l={},S=_0x6208ca(0x1a1);function R(_0x3bfbdf){const _0x11acd0=_0x6208ca;return{'id':S,'type':_0x26860a['SUBITEMS'],'icon':_0x11acd0(0x1a6),'tooltip':_0x11acd0(0x19c),'hidden$':_0x4beada(_0x3bfbdf,_0x546e8e[_0x11acd0(0x191)]),'disabled$':_0x5bfe65(_0x3bfbdf,{'workbookTypes':[_0x245f03]})};}function w(){const _0x3d0cce=_0x6208ca;return{'id':p['id'],'type':_0x26860a[_0x3d0cce(0x1ab)],'title':'exchange.upload','icon':_0x3d0cce(0x1b9)};}function _0x1671(_0x28b50f,_0x368e97){_0x28b50f=_0x28b50f-0x18f;const _0x135860=_0x1358();let _0x167185=_0x135860[_0x28b50f];return _0x167185;}function D(){const _0x19d1bc=_0x6208ca;return{'id':u['id'],'type':_0x26860a[_0x19d1bc(0x1ab)],'title':_0x19d1bc(0x1a3),'icon':_0x19d1bc(0x19e)};}const F={[_0x52be37[_0x6208ca(0x1b8)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x6208ca(0x1ae)],A=(_0x4522f6,_0x299ea1,_0x3f1169,_0x131339)=>{for(var _0x41c333=_0x131339>0x1?void 0x0:_0x131339?G(_0x299ea1,_0x3f1169):_0x299ea1,_0x10f4cc=_0x4522f6['length']-0x1,_0x3b9709;_0x10f4cc>=0x0;_0x10f4cc--)(_0x3b9709=_0x4522f6[_0x10f4cc])&&(_0x41c333=_0x3b9709(_0x41c333)||_0x41c333);return _0x41c333;},d=(_0x47eb21,_0xa4896e)=>(_0x288bbe,_0xa2ad24)=>_0xa4896e(_0x288bbe,_0xa2ad24,_0x47eb21);let c=class extends _0x3dfbc5{constructor(_0x5d204f,_0xe61ef0){const _0x4897bb=_0x6208ca;super(),this[_0x4897bb(0x1bc)]=_0x5d204f,this['_menuManagerService']=_0xe61ef0,this[_0x4897bb(0x196)](),this[_0x4897bb(0x1b0)]();}[_0x6208ca(0x196)](){[p,u]['forEach'](_0x32130a=>{const _0x4e23e3=_0x1671;this[_0x4e23e3(0x1ac)](this[_0x4e23e3(0x1bc)][_0x4e23e3(0x193)](_0x32130a));});}['_initMenus'](){const _0x46e455=_0x6208ca;this[_0x46e455(0x197)]['mergeMenu'](F);}};c=A([d(0x0,_0x3d6382),d(0x1,_0x55864f)],c);function _0x1358(){const _0x4fe11b=['length','exchange.download','3111484OizVxp','1736184DOOiFu','DirectExportIcon','symbol','sheets-exchange-client.config','_injector','515656biiKao','BUTTON','disposeWithMe','_config','getOwnPropertyDescriptor','OPERATION','_initMenus','add','9WZYKQl','setConfig','10OwOUsI','importXLSXToUnitId','exchange-client.operation.export-xlsx','358278sclqcj','OTHERS','FolderIcon','search','get','_commandService','77UTWvFO','defineProperty','SHEET_EXCHANGE_CLIENT_PLUGIN','UNIVER_SHEET','forEach','registerCommand','14441150YomzCL','_configService','_initCommands','_menuManagerService','pluginName','exchange-client.operation.import-xlsx','2518112wFGECh','importXLSXToSnapshot','exchange.file','817088GBLcvC','ExportIcon','onStarting','unit','sheets-exchange-client.operation.exchange'];_0x1358=function(){return _0x4fe11b;};return _0x1358();}var j=Object[_0x6208ca(0x18f)],B=Object['getOwnPropertyDescriptor'],$=(_0x68352,_0x2f9666,_0x56ae27)=>_0x2f9666 in _0x68352?j(_0x68352,_0x2f9666,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56ae27}):_0x68352[_0x2f9666]=_0x56ae27,V=(_0x2f2978,_0x1dc1ec,_0x5a48a5,_0x260ae5)=>{const _0x3df2f6=_0x6208ca;for(var _0x436fba=_0x260ae5>0x1?void 0x0:_0x260ae5?B(_0x1dc1ec,_0x5a48a5):_0x1dc1ec,_0x1951b6=_0x2f2978[_0x3df2f6(0x1a2)]-0x1,_0x544031;_0x1951b6>=0x0;_0x1951b6--)(_0x544031=_0x2f2978[_0x1951b6])&&(_0x436fba=_0x544031(_0x436fba)||_0x436fba);return _0x436fba;},_=(_0x4ceb4a,_0x5a1a23)=>(_0x4c5fdb,_0x27fba4)=>_0x5a1a23(_0x4c5fdb,_0x27fba4,_0x4ceb4a),I=(_0x2ee1d3,_0xf0b6c6,_0x49967a)=>$(_0x2ee1d3,typeof _0xf0b6c6!=_0x6208ca(0x1a7)?_0xf0b6c6+'':_0xf0b6c6,_0x49967a);const W=_0x6208ca(0x190);let s=class extends _0xd5a59{constructor(_0x1c32ae=l,_0xebf2c4,_0x1d847a){const _0xd7a432=_0x6208ca;super(),this[_0xd7a432(0x1ad)]=_0x1c32ae,this[_0xd7a432(0x1a9)]=_0xebf2c4,this[_0xd7a432(0x195)]=_0x1d847a;const {menu:_0x2c73ad,..._0x421cfc}=_0x158326({},l,this[_0xd7a432(0x1ad)]);_0x2c73ad&&this[_0xd7a432(0x195)][_0xd7a432(0x1b3)]('menu',_0x2c73ad,{'merge':!0x0}),this['_configService'][_0xd7a432(0x1b3)](H,_0x421cfc);}[_0x6208ca(0x19f)](){const _0x5b494f=_0x6208ca;[[c]][_0x5b494f(0x192)](_0x287fa5=>this[_0x5b494f(0x1a9)][_0x5b494f(0x1b1)](_0x287fa5));}['onReady'](){const _0x5d9ebd=_0x6208ca;this['_injector'][_0x5d9ebd(0x1bb)](c);}};I(s,_0x6208ca(0x198),W),I(s,'type',_0x546e8e['UNIVER_SHEET']),s=V([_0x45bcb8(_0x225b01),_(0x1,_0x5c4a82(_0x50b37e)),_(0x2,_0x3ceb33)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x22f696=_0x4615;(function(_0x8d5ff5,_0x43a5b2){const _0xd4f93e=_0x4615,_0x4a5926=_0x8d5ff5();while(!![]){try{const _0xf3bf27=parseInt(_0xd4f93e(0x193))/0x1*(parseInt(_0xd4f93e(0x175))/0x2)+parseInt(_0xd4f93e(0x198))/0x3+-parseInt(_0xd4f93e(0x17d))/0x4*(-parseInt(_0xd4f93e(0x189))/0x5)+parseInt(_0xd4f93e(0x17b))/0x6*(-parseInt(_0xd4f93e(0x199))/0x7)+parseInt(_0xd4f93e(0x17c))/0x8*(parseInt(_0xd4f93e(0x194))/0x9)+parseInt(_0xd4f93e(0x1a0))/0xa*(parseInt(_0xd4f93e(0x19c))/0xb)+-parseInt(_0xd4f93e(0x18f))/0xc*(parseInt(_0xd4f93e(0x187))/0xd);if(_0xf3bf27===_0x43a5b2)break;else _0x4a5926['push'](_0x4a5926['shift']());}catch(_0x42307e){_0x4a5926['push'](_0x4a5926['shift']());}}}(_0x239f,0x6c328));import{IExchangeOperateService as _0x2b5f36,UniverExchangeClientPlugin as _0x2b3b48}from'@univerjs-pro/exchange-client';import{CommandType as _0x5cdde4,UniverInstanceType as _0x11e6b5,Disposable as _0x551078,ICommandService as _0x3a7bae,DependentOn as _0x3ac469,Inject as _0x9ab8f9,Injector as _0x2b5944,Plugin as _0x48a035,merge as _0x4b165f,IConfigService as _0x984c7e}from'@univerjs/core';import{MenuItemType as _0x57947c,getMenuHiddenObservable as _0x36f560,RibbonStartGroup as _0x1e3ab5,IMenuManagerService as _0x5c0f15}from'@univerjs/ui';import{WorkbookExportPermission as _0x3b9f88}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x17a45b}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x5cdde4[_0x22f696(0x184)],'handler':async _0x49dec1=>{const _0x36765b=_0x22f696,_0x4e4f5c=_0x49dec1[_0x36765b(0x195)](_0x2b5f36);return new URLSearchParams(location['search'])[_0x36765b(0x195)](_0x36765b(0x19b))?_0x4e4f5c[_0x36765b(0x185)]():_0x4e4f5c['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x22f696(0x1a2),'type':_0x5cdde4['OPERATION'],'handler':async _0x5a5d8b=>{const _0xaa991f=_0x22f696,_0x5c10f5=_0x5a5d8b[_0xaa991f(0x195)](_0x2b5f36);return new URLSearchParams(location[_0xaa991f(0x1a6)])[_0xaa991f(0x195)]('unit')?_0x5c10f5[_0xaa991f(0x178)]():_0x5c10f5[_0xaa991f(0x1a4)](),!0x0;}},H=_0x22f696(0x1a8),l={},S=_0x22f696(0x179);function R(_0x5b37d9){const _0x4c7352=_0x22f696;return{'id':S,'type':_0x57947c[_0x4c7352(0x17e)],'icon':_0x4c7352(0x192),'tooltip':_0x4c7352(0x18e),'hidden$':_0x36f560(_0x5b37d9,_0x11e6b5[_0x4c7352(0x190)]),'disabled$':_0x17a45b(_0x5b37d9,{'workbookTypes':[_0x3b9f88]})};}function w(){const _0x56b04e=_0x22f696;return{'id':p['id'],'type':_0x57947c['BUTTON'],'title':'exchange.upload','icon':_0x56b04e(0x18d)};}function D(){const _0x2436e5=_0x22f696;return{'id':u['id'],'type':_0x57947c['BUTTON'],'title':_0x2436e5(0x188),'icon':'ExportIcon'};}const F={[_0x1e3ab5[_0x22f696(0x18b)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x22f696(0x1a7)],A=(_0x561c19,_0x5defa3,_0x5d1771,_0x29612e)=>{const _0x52bf67=_0x22f696;for(var _0x467da7=_0x29612e>0x1?void 0x0:_0x29612e?G(_0x5defa3,_0x5d1771):_0x5defa3,_0x21f7ed=_0x561c19[_0x52bf67(0x191)]-0x1,_0x110c6f;_0x21f7ed>=0x0;_0x21f7ed--)(_0x110c6f=_0x561c19[_0x21f7ed])&&(_0x467da7=_0x110c6f(_0x467da7)||_0x467da7);return _0x467da7;},d=(_0x509e45,_0x1f9c4e)=>(_0xb26973,_0x339567)=>_0x1f9c4e(_0xb26973,_0x339567,_0x509e45);function _0x239f(){const _0x1b54c2=['_initMenus','_initCommands','OPERATION','importXLSXToUnitId','mergeMenu','6019481ZXzoAG','exchange.download','173155GUNtxm','type','OTHERS','_configService','FolderIcon','exchange.file','12QhnfpS','UNIVER_SHEET','length','DirectExportIcon','2sBCDcd','3141405EBiolr','get','setConfig','add','296862KVmspq','444633ntDqby','menu','unit','312917qSeqwN','onStarting','disposeWithMe','registerCommand','20CBKHWs','_menuManagerService','exchange-client.operation.export-xlsx','onReady','exportXLSXBySnapshot','_config','search','getOwnPropertyDescriptor','sheets-exchange-client.config','436124xXObSI','_injector','_commandService','exportXLSXByUnitId','sheets-exchange-client.operation.exchange','defineProperty','36VNAUpk','8LDVSiX','40lNWhlE','SUBITEMS','pluginName','SHEET_EXCHANGE_CLIENT_PLUGIN','forEach'];_0x239f=function(){return _0x1b54c2;};return _0x239f();}let c=class extends _0x551078{constructor(_0x11b865,_0x581801){const _0x641e38=_0x22f696;super(),this['_commandService']=_0x11b865,this['_menuManagerService']=_0x581801,this[_0x641e38(0x183)](),this[_0x641e38(0x182)]();}['_initCommands'](){const _0x3c8422=_0x22f696;[p,u][_0x3c8422(0x181)](_0x238adb=>{const _0x8a800e=_0x3c8422;this[_0x8a800e(0x19e)](this[_0x8a800e(0x177)][_0x8a800e(0x19f)](_0x238adb));});}[_0x22f696(0x182)](){const _0x19d216=_0x22f696;this[_0x19d216(0x1a1)][_0x19d216(0x186)](F);}};c=A([d(0x0,_0x3a7bae),d(0x1,_0x5c0f15)],c);var j=Object[_0x22f696(0x17a)],B=Object['getOwnPropertyDescriptor'],$=(_0x434f6a,_0x5d184c,_0x558b58)=>_0x5d184c in _0x434f6a?j(_0x434f6a,_0x5d184c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x558b58}):_0x434f6a[_0x5d184c]=_0x558b58,V=(_0x17289c,_0x408def,_0x1a397a,_0xabd1bd)=>{for(var _0x17bb65=_0xabd1bd>0x1?void 0x0:_0xabd1bd?B(_0x408def,_0x1a397a):_0x408def,_0xfd8848=_0x17289c['length']-0x1,_0x1b65b4;_0xfd8848>=0x0;_0xfd8848--)(_0x1b65b4=_0x17289c[_0xfd8848])&&(_0x17bb65=_0x1b65b4(_0x17bb65)||_0x17bb65);return _0x17bb65;},_=(_0x1baa92,_0x28a1d8)=>(_0x1f23a3,_0x31585f)=>_0x28a1d8(_0x1f23a3,_0x31585f,_0x1baa92),I=(_0x22f04f,_0x53e156,_0x3296ba)=>$(_0x22f04f,typeof _0x53e156!='symbol'?_0x53e156+'':_0x53e156,_0x3296ba);const W=_0x22f696(0x180);let s=class extends _0x48a035{constructor(_0x560c82=l,_0x20a48c,_0x771ff2){const _0x373de8=_0x22f696;super(),this[_0x373de8(0x1a5)]=_0x560c82,this[_0x373de8(0x176)]=_0x20a48c,this['_configService']=_0x771ff2;const {menu:_0xf80566,..._0x25e7c7}=_0x4b165f({},l,this['_config']);_0xf80566&&this[_0x373de8(0x18c)][_0x373de8(0x196)](_0x373de8(0x19a),_0xf80566,{'merge':!0x0}),this['_configService'][_0x373de8(0x196)](H,_0x25e7c7);}[_0x22f696(0x19d)](){const _0x445805=_0x22f696;[[c]][_0x445805(0x181)](_0x3e19f9=>this[_0x445805(0x176)][_0x445805(0x197)](_0x3e19f9));}[_0x22f696(0x1a3)](){const _0x50c8b4=_0x22f696;this[_0x50c8b4(0x176)][_0x50c8b4(0x195)](c);}};function _0x4615(_0x1dacf2,_0x3e02ba){_0x1dacf2=_0x1dacf2-0x175;const _0x239f6a=_0x239f();let _0x4615fa=_0x239f6a[_0x1dacf2];return _0x4615fa;}I(s,_0x22f696(0x17f),W),I(s,_0x22f696(0x18a),_0x11e6b5[_0x22f696(0x190)]),s=V([_0x3ac469(_0x2b3b48),_(0x1,_0x9ab8f9(_0x2b5944)),_(0x2,_0x984c7e)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x6208ca=_0x1671;(function(_0x4f51bf,_0x4552ee){const _0x5b41ca=_0x1671,_0x4649da=_0x4f51bf();while(!![]){try{const _0x16a973=-parseInt(_0x5b41ca(0x1aa))/0x1+parseInt(_0x5b41ca(0x19d))/0x2+parseInt(_0x5b41ca(0x1a5))/0x3+parseInt(_0x5b41ca(0x1a4))/0x4*(parseInt(_0x5b41ca(0x1b4))/0x5)+-parseInt(_0x5b41ca(0x1b7))/0x6*(-parseInt(_0x5b41ca(0x1bd))/0x7)+-parseInt(_0x5b41ca(0x19a))/0x8+parseInt(_0x5b41ca(0x1b2))/0x9*(-parseInt(_0x5b41ca(0x194))/0xa);if(_0x16a973===_0x4552ee)break;else _0x4649da['push'](_0x4649da['shift']());}catch(_0x3ba5b1){_0x4649da['push'](_0x4649da['shift']());}}}(_0x1358,0xe1e8a));import{IExchangeOperateService as _0x1bc7d5,UniverExchangeClientPlugin as _0x225b01}from'@univerjs-pro/exchange-client';import{CommandType as _0x2b482b,UniverInstanceType as _0x546e8e,Disposable as _0x3dfbc5,ICommandService as _0x3d6382,DependentOn as _0x45bcb8,Inject as _0x5c4a82,Injector as _0x50b37e,Plugin as _0xd5a59,merge as _0x158326,IConfigService as _0x3ceb33}from'@univerjs/core';import{MenuItemType as _0x26860a,getMenuHiddenObservable as _0x4beada,RibbonStartGroup as _0x52be37,IMenuManagerService as _0x55864f}from'@univerjs/ui';import{WorkbookExportPermission as _0x245f03}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x5bfe65}from'@univerjs/sheets-ui';const p={'id':_0x6208ca(0x199),'type':_0x2b482b[_0x6208ca(0x1af)],'handler':async _0x88e1f7=>{const _0x407258=_0x6208ca,_0x25956c=_0x88e1f7['get'](_0x1bc7d5);return new URLSearchParams(location[_0x407258(0x1ba)])['get'](_0x407258(0x1a0))?_0x25956c[_0x407258(0x1b5)]():_0x25956c[_0x407258(0x19b)](),!0x0;}},u={'id':_0x6208ca(0x1b6),'type':_0x2b482b[_0x6208ca(0x1af)],'handler':async _0x38dda7=>{const _0x113eee=_0x6208ca,_0x4c740a=_0x38dda7['get'](_0x1bc7d5);return new URLSearchParams(location[_0x113eee(0x1ba)])[_0x113eee(0x1bb)]('unit')?_0x4c740a['exportXLSXByUnitId']():_0x4c740a['exportXLSXBySnapshot'](),!0x0;}},H=_0x6208ca(0x1a8),l={},S=_0x6208ca(0x1a1);function R(_0x3bfbdf){const _0x11acd0=_0x6208ca;return{'id':S,'type':_0x26860a['SUBITEMS'],'icon':_0x11acd0(0x1a6),'tooltip':_0x11acd0(0x19c),'hidden$':_0x4beada(_0x3bfbdf,_0x546e8e[_0x11acd0(0x191)]),'disabled$':_0x5bfe65(_0x3bfbdf,{'workbookTypes':[_0x245f03]})};}function w(){const _0x3d0cce=_0x6208ca;return{'id':p['id'],'type':_0x26860a[_0x3d0cce(0x1ab)],'title':'exchange.upload','icon':_0x3d0cce(0x1b9)};}function _0x1671(_0x28b50f,_0x368e97){_0x28b50f=_0x28b50f-0x18f;const _0x135860=_0x1358();let _0x167185=_0x135860[_0x28b50f];return _0x167185;}function D(){const _0x19d1bc=_0x6208ca;return{'id':u['id'],'type':_0x26860a[_0x19d1bc(0x1ab)],'title':_0x19d1bc(0x1a3),'icon':_0x19d1bc(0x19e)};}const F={[_0x52be37[_0x6208ca(0x1b8)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x6208ca(0x1ae)],A=(_0x4522f6,_0x299ea1,_0x3f1169,_0x131339)=>{for(var _0x41c333=_0x131339>0x1?void 0x0:_0x131339?G(_0x299ea1,_0x3f1169):_0x299ea1,_0x10f4cc=_0x4522f6['length']-0x1,_0x3b9709;_0x10f4cc>=0x0;_0x10f4cc--)(_0x3b9709=_0x4522f6[_0x10f4cc])&&(_0x41c333=_0x3b9709(_0x41c333)||_0x41c333);return _0x41c333;},d=(_0x47eb21,_0xa4896e)=>(_0x288bbe,_0xa2ad24)=>_0xa4896e(_0x288bbe,_0xa2ad24,_0x47eb21);let c=class extends _0x3dfbc5{constructor(_0x5d204f,_0xe61ef0){const _0x4897bb=_0x6208ca;super(),this[_0x4897bb(0x1bc)]=_0x5d204f,this['_menuManagerService']=_0xe61ef0,this[_0x4897bb(0x196)](),this[_0x4897bb(0x1b0)]();}[_0x6208ca(0x196)](){[p,u]['forEach'](_0x32130a=>{const _0x4e23e3=_0x1671;this[_0x4e23e3(0x1ac)](this[_0x4e23e3(0x1bc)][_0x4e23e3(0x193)](_0x32130a));});}['_initMenus'](){const _0x46e455=_0x6208ca;this[_0x46e455(0x197)]['mergeMenu'](F);}};c=A([d(0x0,_0x3d6382),d(0x1,_0x55864f)],c);function _0x1358(){const _0x4fe11b=['length','exchange.download','3111484OizVxp','1736184DOOiFu','DirectExportIcon','symbol','sheets-exchange-client.config','_injector','515656biiKao','BUTTON','disposeWithMe','_config','getOwnPropertyDescriptor','OPERATION','_initMenus','add','9WZYKQl','setConfig','10OwOUsI','importXLSXToUnitId','exchange-client.operation.export-xlsx','358278sclqcj','OTHERS','FolderIcon','search','get','_commandService','77UTWvFO','defineProperty','SHEET_EXCHANGE_CLIENT_PLUGIN','UNIVER_SHEET','forEach','registerCommand','14441150YomzCL','_configService','_initCommands','_menuManagerService','pluginName','exchange-client.operation.import-xlsx','2518112wFGECh','importXLSXToSnapshot','exchange.file','817088GBLcvC','ExportIcon','onStarting','unit','sheets-exchange-client.operation.exchange'];_0x1358=function(){return _0x4fe11b;};return _0x1358();}var j=Object[_0x6208ca(0x18f)],B=Object['getOwnPropertyDescriptor'],$=(_0x68352,_0x2f9666,_0x56ae27)=>_0x2f9666 in _0x68352?j(_0x68352,_0x2f9666,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56ae27}):_0x68352[_0x2f9666]=_0x56ae27,V=(_0x2f2978,_0x1dc1ec,_0x5a48a5,_0x260ae5)=>{const _0x3df2f6=_0x6208ca;for(var _0x436fba=_0x260ae5>0x1?void 0x0:_0x260ae5?B(_0x1dc1ec,_0x5a48a5):_0x1dc1ec,_0x1951b6=_0x2f2978[_0x3df2f6(0x1a2)]-0x1,_0x544031;_0x1951b6>=0x0;_0x1951b6--)(_0x544031=_0x2f2978[_0x1951b6])&&(_0x436fba=_0x544031(_0x436fba)||_0x436fba);return _0x436fba;},_=(_0x4ceb4a,_0x5a1a23)=>(_0x4c5fdb,_0x27fba4)=>_0x5a1a23(_0x4c5fdb,_0x27fba4,_0x4ceb4a),I=(_0x2ee1d3,_0xf0b6c6,_0x49967a)=>$(_0x2ee1d3,typeof _0xf0b6c6!=_0x6208ca(0x1a7)?_0xf0b6c6+'':_0xf0b6c6,_0x49967a);const W=_0x6208ca(0x190);let s=class extends _0xd5a59{constructor(_0x1c32ae=l,_0xebf2c4,_0x1d847a){const _0xd7a432=_0x6208ca;super(),this[_0xd7a432(0x1ad)]=_0x1c32ae,this[_0xd7a432(0x1a9)]=_0xebf2c4,this[_0xd7a432(0x195)]=_0x1d847a;const {menu:_0x2c73ad,..._0x421cfc}=_0x158326({},l,this[_0xd7a432(0x1ad)]);_0x2c73ad&&this[_0xd7a432(0x195)][_0xd7a432(0x1b3)]('menu',_0x2c73ad,{'merge':!0x0}),this['_configService'][_0xd7a432(0x1b3)](H,_0x421cfc);}[_0x6208ca(0x19f)](){const _0x5b494f=_0x6208ca;[[c]][_0x5b494f(0x192)](_0x287fa5=>this[_0x5b494f(0x1a9)][_0x5b494f(0x1b1)](_0x287fa5));}['onReady'](){const _0x5d9ebd=_0x6208ca;this['_injector'][_0x5d9ebd(0x1bb)](c);}};I(s,_0x6208ca(0x198),W),I(s,'type',_0x546e8e['UNIVER_SHEET']),s=V([_0x45bcb8(_0x225b01),_(0x1,_0x5c4a82(_0x50b37e)),_(0x2,_0x3ceb33)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x5dfd(){const _0x510068=['IExchangeOperateService','disposeWithMe','search','UniverCore','RibbonStartGroup','add','UniverSheetsExchangeClientPlugin','_configService','merge','exchange.file','OTHERS','amd','sheets-exchange-client.operation.exchange','WorkbookExportPermission','@univerjs-pro/exchange-client','mergeMenu','_commandService','exportXLSXBySnapshot','exchange.upload','symbol','UniverProSheetsExchangeClient','@univerjs/core','_config','_injector','ImportXLSXOperation','UniverUi','UniverSheets','207300QhMwlJ','33780YHYpvX','setConfig','getOwnPropertyDescriptor','pluginName','SUBITEMS','_initMenus','4705160PpqKmO','UniverExchangeClientPlugin','5243588qmMCMK','importXLSXToUnitId','function','object','5998855IyFVpI','@univerjs/sheets','IConfigService','Module','FolderIcon','get','length','480DsOivP','toStringTag','getMenuHiddenObservable','unit','UNIVER_SHEET','menu','type','35757gdUYQE','onReady','ExportIcon','@univerjs/sheets-ui','9340GzFxYt','exchange.download','6NrYuJl','UniverInstanceType','6834924PMOvMb','DirectExportIcon','forEach','exchange-client.operation.import-xlsx','OPERATION','Plugin','_menuManagerService','importXLSXToSnapshot','@univerjs/ui','defineProperty','_initCommands','IMenuManagerService','ExportXLSXOperation','CommandType','MenuItemType','UniverProExchangeClient','BUTTON'];_0x5dfd=function(){return _0x510068;};return _0x5dfd();}function _0x93b3(_0xa4000c,_0x3ed428){_0xa4000c=_0xa4000c-0x147;const _0x5dfdf1=_0x5dfd();let _0x93b36a=_0x5dfdf1[_0xa4000c];return _0x93b36a;}(function(_0x17e394,_0x3785cb){const _0x27a7ec=_0x93b3,_0x3aa74f=_0x17e394();while(!![]){try{const _0x37f86e=parseInt(_0x27a7ec(0x173))/0x1*(parseInt(_0x27a7ec(0x194))/0x2)+-parseInt(_0x27a7ec(0x174))/0x3*(-parseInt(_0x27a7ec(0x187))/0x4)+parseInt(_0x27a7ec(0x180))/0x5+parseInt(_0x27a7ec(0x147))/0x6+parseInt(_0x27a7ec(0x17c))/0x7+-parseInt(_0x27a7ec(0x17a))/0x8+-parseInt(_0x27a7ec(0x18e))/0x9*(parseInt(_0x27a7ec(0x192))/0xa);if(_0x37f86e===_0x3785cb)break;else _0x3aa74f['push'](_0x3aa74f['shift']());}catch(_0x3a6de1){_0x3aa74f['push'](_0x3aa74f['shift']());}}}(_0x5dfd,0xba146),function(_0x4e5792,_0x104853){const _0x3faabf=_0x93b3;typeof exports==_0x3faabf(0x17f)&&typeof module<'u'?_0x104853(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x3faabf(0x17e)&&define[_0x3faabf(0x163)]?define(['exports',_0x3faabf(0x166),_0x3faabf(0x16d),_0x3faabf(0x14f),_0x3faabf(0x181),_0x3faabf(0x191)],_0x104853):(_0x4e5792=typeof globalThis<'u'?globalThis:_0x4e5792||self,_0x104853(_0x4e5792[_0x3faabf(0x16c)]={},_0x4e5792[_0x3faabf(0x156)],_0x4e5792[_0x3faabf(0x15b)],_0x4e5792[_0x3faabf(0x171)],_0x4e5792[_0x3faabf(0x172)],_0x4e5792['UniverSheetsUi']));}(this,function(_0x5a9b9d,_0x2eaa92,_0x38f797,_0x3418a2,_0x113adf,_0x45489b){'use strict';const _0x5f0372=_0x93b3;const _0x517579={'id':_0x5f0372(0x14a),'type':_0x38f797[_0x5f0372(0x154)][_0x5f0372(0x14b)],'handler':async _0x18bac5=>{const _0x1fb9ef=_0x5f0372,_0x5e97c3=_0x18bac5[_0x1fb9ef(0x185)](_0x2eaa92[_0x1fb9ef(0x158)]);return new URLSearchParams(location[_0x1fb9ef(0x15a)])['get'](_0x1fb9ef(0x18a))?_0x5e97c3[_0x1fb9ef(0x17d)]():_0x5e97c3[_0x1fb9ef(0x14e)](),!0x0;}},_0x2925c5={'id':'exchange-client.operation.export-xlsx','type':_0x38f797[_0x5f0372(0x154)]['OPERATION'],'handler':async _0x4beef1=>{const _0x38bfed=_0x5f0372,_0x83a84a=_0x4beef1[_0x38bfed(0x185)](_0x2eaa92[_0x38bfed(0x158)]);return new URLSearchParams(location[_0x38bfed(0x15a)])[_0x38bfed(0x185)](_0x38bfed(0x18a))?_0x83a84a['exportXLSXByUnitId']():_0x83a84a[_0x38bfed(0x169)](),!0x0;}},_0x93dad='sheets-exchange-client.config',_0x3720f7={},_0x516b4f=_0x5f0372(0x164);function _0xb00f6e(_0x5cdc43){const _0x45d6c9=_0x5f0372;return{'id':_0x516b4f,'type':_0x3418a2[_0x45d6c9(0x155)][_0x45d6c9(0x178)],'icon':_0x45d6c9(0x148),'tooltip':_0x45d6c9(0x161),'hidden$':_0x3418a2[_0x45d6c9(0x189)](_0x5cdc43,_0x38f797[_0x45d6c9(0x195)]['UNIVER_SHEET']),'disabled$':_0x45489b['getCurrentRangeDisable$'](_0x5cdc43,{'workbookTypes':[_0x113adf[_0x45d6c9(0x165)]]})};}function _0x234660(){const _0xe947a8=_0x5f0372;return{'id':_0x517579['id'],'type':_0x3418a2[_0xe947a8(0x155)][_0xe947a8(0x157)],'title':_0xe947a8(0x16a),'icon':_0xe947a8(0x184)};}function _0x1983da(){const _0x6fa3a3=_0x5f0372;return{'id':_0x2925c5['id'],'type':_0x3418a2[_0x6fa3a3(0x155)][_0x6fa3a3(0x157)],'title':_0x6fa3a3(0x193),'icon':_0x6fa3a3(0x190)};}const _0x427b2c={[_0x3418a2[_0x5f0372(0x15c)][_0x5f0372(0x162)]]:{[_0x516b4f]:{'order':0.3,'menuItemFactory':_0xb00f6e,[_0x517579['id']]:{'order':0x0,'menuItemFactory':_0x234660},[_0x2925c5['id']]:{'order':0x1,'menuItemFactory':_0x1983da}}}};var _0x4ff34d=Object[_0x5f0372(0x176)],_0x4ea9dd=(_0x299dcd,_0x250215,_0x28a415,_0x9d5df4)=>{const _0x2cec6a=_0x5f0372;for(var _0x35a4ae=_0x9d5df4>0x1?void 0x0:_0x9d5df4?_0x4ff34d(_0x250215,_0x28a415):_0x250215,_0x1ec114=_0x299dcd[_0x2cec6a(0x186)]-0x1,_0x4695cc;_0x1ec114>=0x0;_0x1ec114--)(_0x4695cc=_0x299dcd[_0x1ec114])&&(_0x35a4ae=_0x4695cc(_0x35a4ae)||_0x35a4ae);return _0x35a4ae;},_0x45b764=(_0x152b62,_0x39e3d8)=>(_0x4d8c5d,_0xc6cdc5)=>_0x39e3d8(_0x4d8c5d,_0xc6cdc5,_0x152b62);let _0x2f3837=class extends _0x38f797['Disposable']{constructor(_0x25d8be,_0x2f3689){const _0x2f101a=_0x5f0372;super(),this['_commandService']=_0x25d8be,this[_0x2f101a(0x14d)]=_0x2f3689,this[_0x2f101a(0x151)](),this[_0x2f101a(0x179)]();}[_0x5f0372(0x151)](){const _0x23ac12=_0x5f0372;[_0x517579,_0x2925c5][_0x23ac12(0x149)](_0x4b459e=>{const _0x372d61=_0x23ac12;this[_0x372d61(0x159)](this[_0x372d61(0x168)]['registerCommand'](_0x4b459e));});}['_initMenus'](){const _0x171569=_0x5f0372;this[_0x171569(0x14d)][_0x171569(0x167)](_0x427b2c);}};_0x2f3837=_0x4ea9dd([_0x45b764(0x0,_0x38f797['ICommandService']),_0x45b764(0x1,_0x3418a2[_0x5f0372(0x152)])],_0x2f3837);var _0x4bd057=Object[_0x5f0372(0x150)],_0x41a93d=Object['getOwnPropertyDescriptor'],_0x454b2c=(_0x1950fb,_0x34f512,_0x235fe8)=>_0x34f512 in _0x1950fb?_0x4bd057(_0x1950fb,_0x34f512,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x235fe8}):_0x1950fb[_0x34f512]=_0x235fe8,_0x3a6f3d=(_0x46fa7f,_0x46d070,_0x51fab7,_0x12e881)=>{const _0x170fdc=_0x5f0372;for(var _0x492ad8=_0x12e881>0x1?void 0x0:_0x12e881?_0x41a93d(_0x46d070,_0x51fab7):_0x46d070,_0x48219c=_0x46fa7f[_0x170fdc(0x186)]-0x1,_0x2e6bb4;_0x48219c>=0x0;_0x48219c--)(_0x2e6bb4=_0x46fa7f[_0x48219c])&&(_0x492ad8=_0x2e6bb4(_0x492ad8)||_0x492ad8);return _0x492ad8;},_0x279dba=(_0x4a1b70,_0x4d7d6a)=>(_0x3509b6,_0x1ddd2f)=>_0x4d7d6a(_0x3509b6,_0x1ddd2f,_0x4a1b70),_0x10c201=(_0x528984,_0x527509,_0x123591)=>_0x454b2c(_0x528984,typeof _0x527509!=_0x5f0372(0x16b)?_0x527509+'':_0x527509,_0x123591);const _0x46fa8e='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x5a9b9d[_0x5f0372(0x15e)]=class extends _0x38f797[_0x5f0372(0x14c)]{constructor(_0x3909e9=_0x3720f7,_0x2e420d,_0x13d6e5){const _0x121f1=_0x5f0372;super(),this['_config']=_0x3909e9,this[_0x121f1(0x16f)]=_0x2e420d,this[_0x121f1(0x15f)]=_0x13d6e5;const {menu:_0xa9b9c,..._0x2f74da}=_0x38f797[_0x121f1(0x160)]({},_0x3720f7,this[_0x121f1(0x16e)]);_0xa9b9c&&this['_configService'][_0x121f1(0x175)](_0x121f1(0x18c),_0xa9b9c,{'merge':!0x0}),this[_0x121f1(0x15f)]['setConfig'](_0x93dad,_0x2f74da);}['onStarting'](){const _0x3aea45=_0x5f0372;[[_0x2f3837]][_0x3aea45(0x149)](_0x15ebe4=>this['_injector'][_0x3aea45(0x15d)](_0x15ebe4));}[_0x5f0372(0x18f)](){const _0x4320c4=_0x5f0372;this['_injector'][_0x4320c4(0x185)](_0x2f3837);}},_0x10c201(_0x5a9b9d[_0x5f0372(0x15e)],_0x5f0372(0x177),_0x46fa8e),_0x10c201(_0x5a9b9d[_0x5f0372(0x15e)],_0x5f0372(0x18d),_0x38f797[_0x5f0372(0x195)][_0x5f0372(0x18b)]),_0x5a9b9d[_0x5f0372(0x15e)]=_0x3a6f3d([_0x38f797['DependentOn'](_0x2eaa92[_0x5f0372(0x17b)]),_0x279dba(0x1,_0x38f797['Inject'](_0x38f797['Injector'])),_0x279dba(0x2,_0x38f797[_0x5f0372(0x182)])],_0x5a9b9d[_0x5f0372(0x15e)]),_0x5a9b9d[_0x5f0372(0x153)]=_0x2925c5,_0x5a9b9d[_0x5f0372(0x170)]=_0x517579,Object[_0x5f0372(0x150)](_0x5a9b9d,Symbol[_0x5f0372(0x188)],{'value':_0x5f0372(0x183)});}));
1
+ function _0x3030(){const _0x1a936c=['IExchangeOperateService','getMenuHiddenObservable','_menuManagerService','amd','add','pluginName','exchange-client.operation.import-xlsx','DirectExportIcon','@univerjs/sheets','ICommandService','UNIVER_SHEET','importXLSXToSnapshot','UniverSheets','DependentOn','ExportIcon','exchange-client.operation.export-xlsx','7335216cFCOvT','BUTTON','OPERATION','Injector','onReady','UniverInstanceType','unit','@univerjs-pro/exchange-client','function','80Fhicym','_configService','forEach','@univerjs/sheets-ui','exportXLSXBySnapshot','ExportXLSXOperation','_initMenus','7StCMoB','MenuItemType','object','_initCommands','WorkbookExportPermission','UniverSheetsUi','2787651hSgIVH','onStarting','Plugin','IMenuManagerService','UniverProExchangeClient','ImportXLSXOperation','registerCommand','11WuOcMx','importXLSXToUnitId','_config','OTHERS','SUBITEMS','getOwnPropertyDescriptor','FolderIcon','2401952iuupqC','CommandType','symbol','367014qRrBIw','@univerjs/core','4422vSPYWe','setConfig','10FKwcnm','20415444zRwobE','Module','3HltjSp','UniverSheetsExchangeClientPlugin','search','IConfigService','type','menu','UniverProSheetsExchangeClient','get','188017lkpBVS','merge','exchange.upload','SHEET_EXCHANGE_CLIENT_PLUGIN','mergeMenu','RibbonStartGroup','UniverExchangeClientPlugin','_commandService','defineProperty','length'];_0x3030=function(){return _0x1a936c;};return _0x3030();}function _0x120a(_0x4c7af2,_0x3fd746){_0x4c7af2=_0x4c7af2-0xd5;const _0x303005=_0x3030();let _0x120a86=_0x303005[_0x4c7af2];return _0x120a86;}(function(_0xb5d152,_0x11e686){const _0x5e6488=_0x120a,_0x5e39c3=_0xb5d152();while(!![]){try{const _0x46855b=-parseInt(_0x5e6488(0xf5))/0x1+-parseInt(_0x5e6488(0xe6))/0x2*(-parseInt(_0x5e6488(0xed))/0x3)+-parseInt(_0x5e6488(0xe3))/0x4+-parseInt(_0x5e6488(0x118))/0x5*(parseInt(_0x5e6488(0xe8))/0x6)+-parseInt(_0x5e6488(0x11f))/0x7*(parseInt(_0x5e6488(0x10f))/0x8)+-parseInt(_0x5e6488(0xd5))/0x9*(-parseInt(_0x5e6488(0xea))/0xa)+parseInt(_0x5e6488(0xdc))/0xb*(parseInt(_0x5e6488(0xeb))/0xc);if(_0x46855b===_0x11e686)break;else _0x5e39c3['push'](_0x5e39c3['shift']());}catch(_0x4a6a48){_0x5e39c3['push'](_0x5e39c3['shift']());}}}(_0x3030,0x74896),function(_0x3ee48f,_0x276a7f){const _0x29f677=_0x120a;typeof exports==_0x29f677(0x121)&&typeof module<'u'?_0x276a7f(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x29f677(0x117)&&define[_0x29f677(0x102)]?define(['exports',_0x29f677(0x116),_0x29f677(0xe7),'@univerjs/ui',_0x29f677(0x107),_0x29f677(0x11b)],_0x276a7f):(_0x3ee48f=typeof globalThis<'u'?globalThis:_0x3ee48f||self,_0x276a7f(_0x3ee48f[_0x29f677(0xf3)]={},_0x3ee48f[_0x29f677(0xd9)],_0x3ee48f['UniverCore'],_0x3ee48f['UniverUi'],_0x3ee48f[_0x29f677(0x10b)],_0x3ee48f[_0x29f677(0x124)]));}(this,function(_0xa38644,_0x32d0d6,_0x34fd0f,_0x1b8fe7,_0x35860d,_0x4e752e){'use strict';const _0x1014e4=_0x120a;const _0x69f71c={'id':_0x1014e4(0x105),'type':_0x34fd0f[_0x1014e4(0xe4)][_0x1014e4(0x111)],'handler':async _0x4a1f4e=>{const _0x286b36=_0x1014e4,_0x51e47c=_0x4a1f4e[_0x286b36(0xf4)](_0x32d0d6[_0x286b36(0xff)]);return new URLSearchParams(location[_0x286b36(0xef)])[_0x286b36(0xf4)]('unit')?_0x51e47c[_0x286b36(0xdd)]():_0x51e47c[_0x286b36(0x10a)](),!0x0;}},_0x5be516={'id':_0x1014e4(0x10e),'type':_0x34fd0f[_0x1014e4(0xe4)][_0x1014e4(0x111)],'handler':async _0x4e4cb2=>{const _0x28f8cd=_0x1014e4,_0x1461e0=_0x4e4cb2[_0x28f8cd(0xf4)](_0x32d0d6['IExchangeOperateService']);return new URLSearchParams(location[_0x28f8cd(0xef)])[_0x28f8cd(0xf4)](_0x28f8cd(0x115))?_0x1461e0['exportXLSXByUnitId']():_0x1461e0[_0x28f8cd(0x11c)](),!0x0;}},_0x145114='sheets-exchange-client.config',_0x3c5b2e={},_0x38333e='sheets-exchange-client.operation.exchange';function _0x229b88(_0x2dc5a9){const _0x62216b=_0x1014e4;return{'id':_0x38333e,'type':_0x1b8fe7[_0x62216b(0x120)][_0x62216b(0xe0)],'icon':_0x62216b(0x106),'tooltip':'exchange.file','hidden$':_0x1b8fe7[_0x62216b(0x100)](_0x2dc5a9,_0x34fd0f[_0x62216b(0x114)][_0x62216b(0x109)]),'disabled$':_0x4e752e['getCurrentRangeDisable$'](_0x2dc5a9,{'workbookTypes':[_0x35860d[_0x62216b(0x123)]]})};}function _0x15744e(){const _0x27eb63=_0x1014e4;return{'id':_0x69f71c['id'],'type':_0x1b8fe7[_0x27eb63(0x120)][_0x27eb63(0x110)],'title':_0x27eb63(0xf7),'icon':_0x27eb63(0xe2)};}function _0x29bf04(){const _0x489389=_0x1014e4;return{'id':_0x5be516['id'],'type':_0x1b8fe7[_0x489389(0x120)][_0x489389(0x110)],'title':'exchange.download','icon':_0x489389(0x10d)};}const _0x441007={[_0x1b8fe7[_0x1014e4(0xfa)][_0x1014e4(0xdf)]]:{[_0x38333e]:{'order':0.3,'menuItemFactory':_0x229b88,[_0x69f71c['id']]:{'order':0x0,'menuItemFactory':_0x15744e},[_0x5be516['id']]:{'order':0x1,'menuItemFactory':_0x29bf04}}}};var _0x27476c=Object[_0x1014e4(0xe1)],_0x2963c8=(_0x53c7a0,_0x5812d5,_0x129524,_0x5892f2)=>{const _0x5789ff=_0x1014e4;for(var _0x872f22=_0x5892f2>0x1?void 0x0:_0x5892f2?_0x27476c(_0x5812d5,_0x129524):_0x5812d5,_0x501b74=_0x53c7a0[_0x5789ff(0xfe)]-0x1,_0x398132;_0x501b74>=0x0;_0x501b74--)(_0x398132=_0x53c7a0[_0x501b74])&&(_0x872f22=_0x398132(_0x872f22)||_0x872f22);return _0x872f22;},_0x441559=(_0x3452c5,_0x415c1e)=>(_0x569624,_0x512b37)=>_0x415c1e(_0x569624,_0x512b37,_0x3452c5);let _0x82847f=class extends _0x34fd0f['Disposable']{constructor(_0x51fa20,_0x12a9c1){const _0xcdb16f=_0x1014e4;super(),this['_commandService']=_0x51fa20,this[_0xcdb16f(0x101)]=_0x12a9c1,this['_initCommands'](),this[_0xcdb16f(0x11e)]();}[_0x1014e4(0x122)](){const _0x5cf67f=_0x1014e4;[_0x69f71c,_0x5be516][_0x5cf67f(0x11a)](_0x4b4c19=>{const _0x170702=_0x5cf67f;this['disposeWithMe'](this[_0x170702(0xfc)][_0x170702(0xdb)](_0x4b4c19));});}[_0x1014e4(0x11e)](){const _0x4d86fe=_0x1014e4;this['_menuManagerService'][_0x4d86fe(0xf9)](_0x441007);}};_0x82847f=_0x2963c8([_0x441559(0x0,_0x34fd0f[_0x1014e4(0x108)]),_0x441559(0x1,_0x1b8fe7[_0x1014e4(0xd8)])],_0x82847f);var _0x1e02ba=Object[_0x1014e4(0xfd)],_0x3f1a09=Object[_0x1014e4(0xe1)],_0x387748=(_0x36bd3a,_0x4cde8b,_0x5a5e6c)=>_0x4cde8b in _0x36bd3a?_0x1e02ba(_0x36bd3a,_0x4cde8b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a5e6c}):_0x36bd3a[_0x4cde8b]=_0x5a5e6c,_0x72f55d=(_0x289a92,_0x48ac6b,_0x18220c,_0x148040)=>{for(var _0x30fe44=_0x148040>0x1?void 0x0:_0x148040?_0x3f1a09(_0x48ac6b,_0x18220c):_0x48ac6b,_0x492871=_0x289a92['length']-0x1,_0x3a9922;_0x492871>=0x0;_0x492871--)(_0x3a9922=_0x289a92[_0x492871])&&(_0x30fe44=_0x3a9922(_0x30fe44)||_0x30fe44);return _0x30fe44;},_0x517382=(_0xf850b0,_0x317c6c)=>(_0xc17737,_0x24737c)=>_0x317c6c(_0xc17737,_0x24737c,_0xf850b0),_0x12dd8f=(_0x52f66a,_0x3634b2,_0x407382)=>_0x387748(_0x52f66a,typeof _0x3634b2!=_0x1014e4(0xe5)?_0x3634b2+'':_0x3634b2,_0x407382);const _0x209a1b=_0x1014e4(0xf8);_0xa38644['UniverSheetsExchangeClientPlugin']=class extends _0x34fd0f[_0x1014e4(0xd7)]{constructor(_0x1a582e=_0x3c5b2e,_0x245672,_0x55ccb5){const _0x4579a8=_0x1014e4;super(),this[_0x4579a8(0xde)]=_0x1a582e,this['_injector']=_0x245672,this[_0x4579a8(0x119)]=_0x55ccb5;const {menu:_0xcfe32b,..._0x42a81b}=_0x34fd0f[_0x4579a8(0xf6)]({},_0x3c5b2e,this['_config']);_0xcfe32b&&this[_0x4579a8(0x119)][_0x4579a8(0xe9)](_0x4579a8(0xf2),_0xcfe32b,{'merge':!0x0}),this['_configService'][_0x4579a8(0xe9)](_0x145114,_0x42a81b);}[_0x1014e4(0xd6)](){const _0x196169=_0x1014e4;[[_0x82847f]][_0x196169(0x11a)](_0xcd4b6b=>this['_injector'][_0x196169(0x103)](_0xcd4b6b));}[_0x1014e4(0x113)](){const _0x476abc=_0x1014e4;this['_injector'][_0x476abc(0xf4)](_0x82847f);}},_0x12dd8f(_0xa38644['UniverSheetsExchangeClientPlugin'],_0x1014e4(0x104),_0x209a1b),_0x12dd8f(_0xa38644[_0x1014e4(0xee)],_0x1014e4(0xf1),_0x34fd0f[_0x1014e4(0x114)][_0x1014e4(0x109)]),_0xa38644['UniverSheetsExchangeClientPlugin']=_0x72f55d([_0x34fd0f[_0x1014e4(0x10c)](_0x32d0d6[_0x1014e4(0xfb)]),_0x517382(0x1,_0x34fd0f['Inject'](_0x34fd0f[_0x1014e4(0x112)])),_0x517382(0x2,_0x34fd0f[_0x1014e4(0xf0)])],_0xa38644['UniverSheetsExchangeClientPlugin']),_0xa38644[_0x1014e4(0x11d)]=_0x5be516,_0xa38644[_0x1014e4(0xda)]=_0x69f71c,Object[_0x1014e4(0xfd)](_0xa38644,Symbol['toStringTag'],{'value':_0x1014e4(0xec)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.15.3-insiders.20260131-cbd5fac",
3
+ "version": "0.15.4",
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.3-insiders.20260131-cbd5fac",
46
- "@univerjs/core": "0.15.3-insiders.20260131-cbd5fac",
47
- "@univerjs/sheets": "0.15.3-insiders.20260131-cbd5fac",
48
- "@univerjs/sheets-ui": "0.15.3-insiders.20260131-cbd5fac",
49
- "@univerjs/ui": "0.15.3-insiders.20260131-cbd5fac"
45
+ "@univerjs-pro/exchange-client": "0.15.4",
46
+ "@univerjs/sheets": "0.15.4",
47
+ "@univerjs/sheets-ui": "0.15.4",
48
+ "@univerjs/ui": "0.15.4",
49
+ "@univerjs/core": "0.15.4"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",
53
53
  "vite": "^7.3.1",
54
54
  "vitest": "^4.0.18",
55
- "@univerjs-infra/shared": "0.15.3"
55
+ "@univerjs-infra/shared": "0.15.4"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run",