@univerjs-pro/sheets-exchange-client 0.10.11-nightly.202510220308 → 0.10.12-nightly.202510221114

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 _0x1fbbcc=_0x1878;(function(_0x1284dd,_0x343548){const _0x1966fe=_0x1878,_0x5553b6=_0x1284dd();while(!![]){try{const _0x4231cb=-parseInt(_0x1966fe(0x1ad))/0x1*(-parseInt(_0x1966fe(0x1bf))/0x2)+parseInt(_0x1966fe(0x1b9))/0x3*(-parseInt(_0x1966fe(0x195))/0x4)+-parseInt(_0x1966fe(0x1c4))/0x5+parseInt(_0x1966fe(0x187))/0x6*(-parseInt(_0x1966fe(0x1ac))/0x7)+-parseInt(_0x1966fe(0x1c5))/0x8+-parseInt(_0x1966fe(0x19d))/0x9*(-parseInt(_0x1966fe(0x18b))/0xa)+-parseInt(_0x1966fe(0x199))/0xb*(-parseInt(_0x1966fe(0x1aa))/0xc);if(_0x4231cb===_0x343548)break;else _0x5553b6['push'](_0x5553b6['shift']());}catch(_0x5e3641){_0x5553b6['push'](_0x5553b6['shift']());}}}(_0x5b78,0x9b382));Object[_0x1fbbcc(0x1b7)](exports,Symbol[_0x1fbbcc(0x19f)],{'value':'Module'});const g=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),c=require('@univerjs/ui'),_=require('@univerjs/sheets'),I=require('@univerjs/sheets-ui'),l={'id':'exchange-client.operation.import-xlsx','type':i[_0x1fbbcc(0x193)][_0x1fbbcc(0x194)],'handler':async _0x5ae0bb=>{const _0x4a499c=_0x1fbbcc,_0x3a188d=_0x5ae0bb['get'](g[_0x4a499c(0x1bd)]);return new URLSearchParams(location[_0x4a499c(0x1bb)])['get'](_0x4a499c(0x1af))?_0x3a188d[_0x4a499c(0x1a2)]():_0x3a188d[_0x4a499c(0x1a6)](),!0x0;}},p={'id':_0x1fbbcc(0x1a5),'type':i[_0x1fbbcc(0x193)][_0x1fbbcc(0x194)],'handler':async _0x50d79b=>{const _0x55c2a4=_0x1fbbcc,_0x404a8e=_0x50d79b[_0x55c2a4(0x1b2)](g['IExchangeOperateService']);return new URLSearchParams(location[_0x55c2a4(0x1bb)])['get'](_0x55c2a4(0x1af))?_0x404a8e[_0x55c2a4(0x1b1)]():_0x404a8e[_0x55c2a4(0x19b)](),!0x0;}},v=_0x1fbbcc(0x1ae),h={},S=_0x1fbbcc(0x18c);function x(_0x1a9ee5){const _0x1cfb58=_0x1fbbcc;return{'id':S,'type':c[_0x1cfb58(0x18e)][_0x1cfb58(0x1bc)],'icon':_0x1cfb58(0x1a9),'tooltip':_0x1cfb58(0x1b3),'hidden$':c[_0x1cfb58(0x18d)](_0x1a9ee5,i[_0x1cfb58(0x1ba)]['UNIVER_SHEET']),'disabled$':I[_0x1cfb58(0x191)](_0x1a9ee5,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x5afbd8=_0x1fbbcc;return{'id':l['id'],'type':c[_0x5afbd8(0x18e)]['BUTTON'],'title':_0x5afbd8(0x1a3),'icon':_0x5afbd8(0x185)};}function C(){const _0x4fee9c=_0x1fbbcc;return{'id':p['id'],'type':c[_0x4fee9c(0x18e)][_0x4fee9c(0x1c2)],'title':_0x4fee9c(0x188),'icon':_0x4fee9c(0x19e)};}const f={[c[_0x1fbbcc(0x1a4)][_0x1fbbcc(0x1be)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x53ceea,_0x10d69e,_0xa481fe,_0x2cfd0c)=>{const _0x2471d0=_0x1fbbcc;for(var _0x1bed15=_0x2cfd0c>0x1?void 0x0:_0x2cfd0c?T(_0x10d69e,_0xa481fe):_0x10d69e,_0x567ac4=_0x53ceea[_0x2471d0(0x190)]-0x1,_0x247e92;_0x567ac4>=0x0;_0x567ac4--)(_0x247e92=_0x53ceea[_0x567ac4])&&(_0x1bed15=_0x247e92(_0x1bed15)||_0x1bed15);return _0x1bed15;},m=(_0x1de4c6,_0x4d2b97)=>(_0x5166ed,_0x8b0a93)=>_0x4d2b97(_0x5166ed,_0x8b0a93,_0x1de4c6);function _0x5b78(){const _0x3ecbeb=['6xLWSFP','UniverInstanceType','search','SUBITEMS','IExchangeOperateService','OTHERS','3178nbnRvk','SHEET_EXCHANGE_CLIENT_PLUGIN','Inject','BUTTON','UniverSheetsExchangeClientPlugin','3830105SiPElP','9374056fZSUzq','IConfigService','Plugin','FolderIcon','_menuManagerService','3627786oBGNkI','exchange.download','_injector','Injector','10BrYzKd','sheets-exchange-client.operation.exchange','getMenuHiddenObservable','MenuItemType','menu','length','getCurrentRangeDisable$','add','CommandType','OPERATION','367100bNveVC','_commandService','Disposable','ImportXLSXOperation','11935TEcMfy','_config','exportXLSXBySnapshot','_configService','3466647fZbUYy','ExportIcon','toStringTag','forEach','pluginName','importXLSXToUnitId','exchange.upload','RibbonStartGroup','exchange-client.operation.export-xlsx','importXLSXToSnapshot','_initMenus','DependentOn','DirectExportIcon','29388drJxqi','IMenuManagerService','7LyXrtd','201xUHmCQ','sheets-exchange-client.config','unit','UniverExchangeClientPlugin','exportXLSXByUnitId','get','exchange.file','setConfig','onReady','disposeWithMe','defineProperty','_initCommands'];_0x5b78=function(){return _0x3ecbeb;};return _0x5b78();}function _0x1878(_0xd424d7,_0x128b50){const _0x5b78fa=_0x5b78();return _0x1878=function(_0x18784f,_0x543a2c){_0x18784f=_0x18784f-0x185;let _0x40f89c=_0x5b78fa[_0x18784f];return _0x40f89c;},_0x1878(_0xd424d7,_0x128b50);}let u=class extends i[_0x1fbbcc(0x197)]{constructor(_0x1cc48a,_0x117c9b){const _0x521e1=_0x1fbbcc;super(),this[_0x521e1(0x196)]=_0x1cc48a,this['_menuManagerService']=_0x117c9b,this[_0x521e1(0x1b8)](),this[_0x521e1(0x1a7)]();}[_0x1fbbcc(0x1b8)](){const _0x2d27ff=_0x1fbbcc;[l,p][_0x2d27ff(0x1a0)](_0x49ac2b=>{const _0x606264=_0x2d27ff;this[_0x606264(0x1b6)](this[_0x606264(0x196)]['registerCommand'](_0x49ac2b));});}[_0x1fbbcc(0x1a7)](){const _0x5f18fb=_0x1fbbcc;this[_0x5f18fb(0x186)]['mergeMenu'](f);}};u=y([m(0x0,i['ICommandService']),m(0x1,c[_0x1fbbcc(0x1ab)])],u);var O=Object[_0x1fbbcc(0x1b7)],U=Object['getOwnPropertyDescriptor'],X=(_0x28ca7f,_0x13033a,_0x37855f)=>_0x13033a in _0x28ca7f?O(_0x28ca7f,_0x13033a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37855f}):_0x28ca7f[_0x13033a]=_0x37855f,N=(_0xf895cc,_0x3a24e8,_0x312258,_0x1afdc7)=>{const _0x52b5f2=_0x1fbbcc;for(var _0x4cff83=_0x1afdc7>0x1?void 0x0:_0x1afdc7?U(_0x3a24e8,_0x312258):_0x3a24e8,_0x351a47=_0xf895cc[_0x52b5f2(0x190)]-0x1,_0x36e146;_0x351a47>=0x0;_0x351a47--)(_0x36e146=_0xf895cc[_0x351a47])&&(_0x4cff83=_0x36e146(_0x4cff83)||_0x4cff83);return _0x4cff83;},d=(_0x4601d3,_0x52709a)=>(_0x1c2d6f,_0x3e16dd)=>_0x52709a(_0x1c2d6f,_0x3e16dd,_0x4601d3),E=(_0x3fdcd3,_0x4e7ed6,_0x2214f0)=>X(_0x3fdcd3,typeof _0x4e7ed6!='symbol'?_0x4e7ed6+'':_0x4e7ed6,_0x2214f0);const L=_0x1fbbcc(0x1c0);exports[_0x1fbbcc(0x1c3)]=class extends i[_0x1fbbcc(0x1c7)]{constructor(_0x46c7df=h,_0x4a8977,_0x15803f){const _0x3c9ec9=_0x1fbbcc;super(),this[_0x3c9ec9(0x19a)]=_0x46c7df,this['_injector']=_0x4a8977,this[_0x3c9ec9(0x19c)]=_0x15803f;const {menu:_0xd3a08b,..._0x24dbc8}=i['merge']({},h,this['_config']);_0xd3a08b&&this[_0x3c9ec9(0x19c)][_0x3c9ec9(0x1b4)](_0x3c9ec9(0x18f),_0xd3a08b,{'merge':!0x0}),this[_0x3c9ec9(0x19c)]['setConfig'](v,_0x24dbc8);}['onStarting'](){const _0x39ada3=_0x1fbbcc;[[u]]['forEach'](_0x55eb4d=>this[_0x39ada3(0x189)][_0x39ada3(0x192)](_0x55eb4d));}[_0x1fbbcc(0x1b5)](){const _0x569329=_0x1fbbcc;this[_0x569329(0x189)]['get'](u);}},E(exports['UniverSheetsExchangeClientPlugin'],_0x1fbbcc(0x1a1),L),E(exports[_0x1fbbcc(0x1c3)],'type',i[_0x1fbbcc(0x1ba)]['UNIVER_SHEET']),exports[_0x1fbbcc(0x1c3)]=N([i[_0x1fbbcc(0x1a8)](g[_0x1fbbcc(0x1b0)]),d(0x1,i[_0x1fbbcc(0x1c1)](i[_0x1fbbcc(0x18a)])),d(0x2,i[_0x1fbbcc(0x1c6)])],exports[_0x1fbbcc(0x1c3)]),exports['ExportXLSXOperation']=p,exports[_0x1fbbcc(0x198)]=l;
1
+ 'use strict';const _0x1750b6=_0x521e;(function(_0xcec87,_0x6d9bb5){const _0x1a9902=_0x521e,_0x53b1bf=_0xcec87();while(!![]){try{const _0x14d48e=-parseInt(_0x1a9902(0xc5))/0x1+parseInt(_0x1a9902(0xeb))/0x2*(parseInt(_0x1a9902(0xb3))/0x3)+parseInt(_0x1a9902(0xd0))/0x4+-parseInt(_0x1a9902(0xe2))/0x5+parseInt(_0x1a9902(0xd3))/0x6*(-parseInt(_0x1a9902(0xcc))/0x7)+-parseInt(_0x1a9902(0xbf))/0x8*(parseInt(_0x1a9902(0xd9))/0x9)+-parseInt(_0x1a9902(0xef))/0xa*(-parseInt(_0x1a9902(0xc0))/0xb);if(_0x14d48e===_0x6d9bb5)break;else _0x53b1bf['push'](_0x53b1bf['shift']());}catch(_0x2f1983){_0x53b1bf['push'](_0x53b1bf['shift']());}}}(_0x4da2,0x936b4));Object[_0x1750b6(0xae)](exports,Symbol[_0x1750b6(0xb4)],{'value':_0x1750b6(0xc9)});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':_0x1750b6(0xcb),'type':i[_0x1750b6(0xd1)][_0x1750b6(0xc6)],'handler':async _0xfa2e56=>{const _0x18c90e=_0x1750b6,_0x4e19fd=_0xfa2e56[_0x18c90e(0xaa)](g[_0x18c90e(0xe6)]);return new URLSearchParams(location['search'])[_0x18c90e(0xaa)](_0x18c90e(0xac))?_0x4e19fd[_0x18c90e(0xed)]():_0x4e19fd[_0x18c90e(0xe4)](),!0x0;}},p={'id':_0x1750b6(0xee),'type':i[_0x1750b6(0xd1)][_0x1750b6(0xc6)],'handler':async _0x4e9fc2=>{const _0x581051=_0x1750b6,_0x552715=_0x4e9fc2['get'](g[_0x581051(0xe6)]);return new URLSearchParams(location[_0x581051(0xf0)])[_0x581051(0xaa)](_0x581051(0xac))?_0x552715[_0x581051(0xb5)]():_0x552715[_0x581051(0xde)](),!0x0;}},v=_0x1750b6(0xd4),h={},S=_0x1750b6(0xdf);function x(_0x38f13e){const _0x5d27cf=_0x1750b6;return{'id':S,'type':c[_0x5d27cf(0xda)][_0x5d27cf(0xcd)],'icon':_0x5d27cf(0xca),'tooltip':_0x5d27cf(0xbe),'hidden$':c[_0x5d27cf(0xe8)](_0x38f13e,i['UniverInstanceType'][_0x5d27cf(0xd6)]),'disabled$':I[_0x5d27cf(0xa8)](_0x38f13e,{'workbookTypes':[_[_0x5d27cf(0xc1)]]})};}function _0x521e(_0xee3284,_0xe766ad){const _0x4da232=_0x4da2();return _0x521e=function(_0x521efe,_0xe063ef){_0x521efe=_0x521efe-0xa5;let _0x135ebf=_0x4da232[_0x521efe];return _0x135ebf;},_0x521e(_0xee3284,_0xe766ad);}function P(){const _0x675f8e=_0x1750b6;return{'id':l['id'],'type':c[_0x675f8e(0xda)][_0x675f8e(0xb1)],'title':_0x675f8e(0xdb),'icon':_0x675f8e(0xdd)};}function C(){const _0x154571=_0x1750b6;return{'id':p['id'],'type':c[_0x154571(0xda)][_0x154571(0xb1)],'title':'exchange.download','icon':_0x154571(0xc7)};}const f={[c[_0x1750b6(0xd7)][_0x1750b6(0xc4)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x2ae977,_0x209930,_0x1504c9,_0x57c6af)=>{const _0x213179=_0x1750b6;for(var _0x3594b4=_0x57c6af>0x1?void 0x0:_0x57c6af?T(_0x209930,_0x1504c9):_0x209930,_0x2cc303=_0x2ae977[_0x213179(0xec)]-0x1,_0x3868b7;_0x2cc303>=0x0;_0x2cc303--)(_0x3868b7=_0x2ae977[_0x2cc303])&&(_0x3594b4=_0x3868b7(_0x3594b4)||_0x3594b4);return _0x3594b4;},m=(_0xae688e,_0x35cb12)=>(_0x26ddef,_0x379cf6)=>_0x35cb12(_0x26ddef,_0x379cf6,_0xae688e);let u=class extends i[_0x1750b6(0xb7)]{constructor(_0x2471e5,_0x27d787){const _0x48b975=_0x1750b6;super(),this['_commandService']=_0x2471e5,this[_0x48b975(0xb8)]=_0x27d787,this[_0x48b975(0xd8)](),this[_0x48b975(0xea)]();}[_0x1750b6(0xd8)](){const _0x46e767=_0x1750b6;[l,p][_0x46e767(0xe0)](_0x40dd17=>{const _0x251047=_0x46e767;this[_0x251047(0xd2)](this[_0x251047(0xa6)][_0x251047(0xb2)](_0x40dd17));});}[_0x1750b6(0xea)](){const _0x19b755=_0x1750b6;this[_0x19b755(0xb8)][_0x19b755(0xbd)](f);}};function _0x4da2(){const _0x36aef1=['getOwnPropertyDescriptor','merge','_config','mergeMenu','exchange.file','2920DFfDRy','196097pvrLdy','WorkbookExportPermission','add','setConfig','OTHERS','736061beATuU','OPERATION','ExportIcon','UniverSheetsExchangeClientPlugin','Module','DirectExportIcon','exchange-client.operation.import-xlsx','7807331uXioEW','SUBITEMS','onReady','Inject','3275620AkLala','CommandType','disposeWithMe','6kbvNYd','sheets-exchange-client.config','ExportXLSXOperation','UNIVER_SHEET','RibbonStartGroup','_initCommands','2871fCwObm','MenuItemType','exchange.upload','UniverInstanceType','FolderIcon','exportXLSXBySnapshot','sheets-exchange-client.operation.exchange','forEach','Plugin','940100DskIBT','ImportXLSXOperation','importXLSXToSnapshot','symbol','IExchangeOperateService','Injector','getMenuHiddenObservable','IMenuManagerService','_initMenus','1492726bkVCWM','length','importXLSXToUnitId','exchange-client.operation.export-xlsx','670czEOHW','search','type','_commandService','ICommandService','getCurrentRangeDisable$','onStarting','get','menu','unit','_configService','defineProperty','_injector','pluginName','BUTTON','registerCommand','3etHxgN','toStringTag','exportXLSXByUnitId','UniverExchangeClientPlugin','Disposable','_menuManagerService','DependentOn'];_0x4da2=function(){return _0x36aef1;};return _0x4da2();}u=y([m(0x0,i[_0x1750b6(0xa7)]),m(0x1,c[_0x1750b6(0xe9)])],u);var O=Object[_0x1750b6(0xae)],U=Object[_0x1750b6(0xba)],X=(_0x5c49e9,_0x5876dc,_0x52a73f)=>_0x5876dc in _0x5c49e9?O(_0x5c49e9,_0x5876dc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x52a73f}):_0x5c49e9[_0x5876dc]=_0x52a73f,N=(_0x3b24a4,_0x5ef362,_0x14896e,_0x5b7c10)=>{const _0x35a260=_0x1750b6;for(var _0x47f8ac=_0x5b7c10>0x1?void 0x0:_0x5b7c10?U(_0x5ef362,_0x14896e):_0x5ef362,_0x2324f9=_0x3b24a4[_0x35a260(0xec)]-0x1,_0x4cacbb;_0x2324f9>=0x0;_0x2324f9--)(_0x4cacbb=_0x3b24a4[_0x2324f9])&&(_0x47f8ac=_0x4cacbb(_0x47f8ac)||_0x47f8ac);return _0x47f8ac;},d=(_0x29788e,_0x24391f)=>(_0x19a3ab,_0x73333d)=>_0x24391f(_0x19a3ab,_0x73333d,_0x29788e),E=(_0xead8bc,_0x2180f6,_0x692c18)=>X(_0xead8bc,typeof _0x2180f6!=_0x1750b6(0xe5)?_0x2180f6+'':_0x2180f6,_0x692c18);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports['UniverSheetsExchangeClientPlugin']=class extends i[_0x1750b6(0xe1)]{constructor(_0x354bab=h,_0x5629c0,_0x55d64e){const _0xe1a196=_0x1750b6;super(),this['_config']=_0x354bab,this[_0xe1a196(0xaf)]=_0x5629c0,this['_configService']=_0x55d64e;const {menu:_0x4b28b9,..._0x28ad77}=i[_0xe1a196(0xbb)]({},h,this[_0xe1a196(0xbc)]);_0x4b28b9&&this['_configService'][_0xe1a196(0xc3)](_0xe1a196(0xab),_0x4b28b9,{'merge':!0x0}),this[_0xe1a196(0xad)][_0xe1a196(0xc3)](v,_0x28ad77);}[_0x1750b6(0xa9)](){const _0xcc7e76=_0x1750b6;[[u]]['forEach'](_0x384162=>this[_0xcc7e76(0xaf)][_0xcc7e76(0xc2)](_0x384162));}[_0x1750b6(0xce)](){const _0x10e25b=_0x1750b6;this[_0x10e25b(0xaf)][_0x10e25b(0xaa)](u);}},E(exports[_0x1750b6(0xc8)],_0x1750b6(0xb0),L),E(exports['UniverSheetsExchangeClientPlugin'],_0x1750b6(0xa5),i[_0x1750b6(0xdc)][_0x1750b6(0xd6)]),exports['UniverSheetsExchangeClientPlugin']=N([i[_0x1750b6(0xb9)](g[_0x1750b6(0xb6)]),d(0x1,i[_0x1750b6(0xcf)](i[_0x1750b6(0xe7)])),d(0x2,i['IConfigService'])],exports[_0x1750b6(0xc8)]),exports[_0x1750b6(0xd5)]=p,exports[_0x1750b6(0xe3)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- function _0x3842(_0x491b72,_0x10e8c4){const _0x127d5f=_0x127d();return _0x3842=function(_0x384206,_0x649ae1){_0x384206=_0x384206-0x198;let _0x39d29f=_0x127d5f[_0x384206];return _0x39d29f;},_0x3842(_0x491b72,_0x10e8c4);}const _0x4ed97b=_0x3842;(function(_0x189428,_0x2488cd){const _0x6564ce=_0x3842,_0xad10bb=_0x189428();while(!![]){try{const _0xcbb72=-parseInt(_0x6564ce(0x1be))/0x1+-parseInt(_0x6564ce(0x1a0))/0x2*(-parseInt(_0x6564ce(0x198))/0x3)+-parseInt(_0x6564ce(0x1c4))/0x4*(-parseInt(_0x6564ce(0x1a4))/0x5)+-parseInt(_0x6564ce(0x1a2))/0x6+parseInt(_0x6564ce(0x19f))/0x7+-parseInt(_0x6564ce(0x1bf))/0x8*(parseInt(_0x6564ce(0x1c3))/0x9)+-parseInt(_0x6564ce(0x1b8))/0xa;if(_0xcbb72===_0x2488cd)break;else _0xad10bb['push'](_0xad10bb['shift']());}catch(_0x567178){_0xad10bb['push'](_0xad10bb['shift']());}}}(_0x127d,0xe0ecd));import{IExchangeOperateService as _0x352ced,UniverExchangeClientPlugin as _0x5cded7}from'@univerjs-pro/exchange-client';function _0x127d(){const _0x4a2b9d=['defineProperty','_configService','exchange.download','_initMenus','mergeMenu','sheets-exchange-client.operation.exchange','_config','6298160WZqeek','get','exchange-client.operation.import-xlsx','search','DirectExportIcon','UNIVER_SHEET','1535358pFnyYI','40KbxvJY','importXLSXToSnapshot','OTHERS','getOwnPropertyDescriptor','1634193zJZqqE','4ZJbzVo','onReady','_initCommands','4223553fWjKSC','setConfig','forEach','type','onStarting','disposeWithMe','exportXLSXBySnapshot','11032700nJLEuz','2tWahCf','ExportIcon','2540532hGHubv','menu','7169115ncuQiH','registerCommand','sheets-exchange-client.config','_menuManagerService','BUTTON','exchange.file','unit','exportXLSXByUnitId','_commandService','pluginName','SHEET_EXCHANGE_CLIENT_PLUGIN','length','_injector'];_0x127d=function(){return _0x4a2b9d;};return _0x127d();}import{CommandType as _0x5f167e,UniverInstanceType as _0x3b215c,Disposable as _0x24adcd,ICommandService as _0x3d5587,DependentOn as _0x1207c7,Inject as _0x48dbe6,Injector as _0x51f937,IConfigService as _0x255071,Plugin as _0x52cf6b,merge as _0x589410}from'@univerjs/core';import{MenuItemType as _0x48df5f,getMenuHiddenObservable as _0x3256b4,RibbonStartGroup as _0x3116c0,IMenuManagerService as _0x231d0b}from'@univerjs/ui';import{WorkbookExportPermission as _0x1232db}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x215c75}from'@univerjs/sheets-ui';const p={'id':_0x4ed97b(0x1ba),'type':_0x5f167e['OPERATION'],'handler':async _0x5945c0=>{const _0x47ea3d=_0x4ed97b,_0x287cea=_0x5945c0[_0x47ea3d(0x1b9)](_0x352ced);return new URLSearchParams(location[_0x47ea3d(0x1bb)])[_0x47ea3d(0x1b9)](_0x47ea3d(0x1aa))?_0x287cea['importXLSXToUnitId']():_0x287cea[_0x47ea3d(0x1c0)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x5f167e['OPERATION'],'handler':async _0xb61a20=>{const _0x4ebfb8=_0x4ed97b,_0x1a332c=_0xb61a20[_0x4ebfb8(0x1b9)](_0x352ced);return new URLSearchParams(location['search'])['get']('unit')?_0x1a332c[_0x4ebfb8(0x1ab)]():_0x1a332c[_0x4ebfb8(0x19e)](),!0x0;}},H=_0x4ed97b(0x1a6),l={},S=_0x4ed97b(0x1b6);function R(_0x5c48d0){const _0x46ff13=_0x4ed97b;return{'id':S,'type':_0x48df5f['SUBITEMS'],'icon':_0x46ff13(0x1bc),'tooltip':_0x46ff13(0x1a9),'hidden$':_0x3256b4(_0x5c48d0,_0x3b215c[_0x46ff13(0x1bd)]),'disabled$':_0x215c75(_0x5c48d0,{'workbookTypes':[_0x1232db]})};}function w(){const _0x5718ea=_0x4ed97b;return{'id':p['id'],'type':_0x48df5f[_0x5718ea(0x1a8)],'title':'exchange.upload','icon':'FolderIcon'};}function D(){const _0xcb2e74=_0x4ed97b;return{'id':u['id'],'type':_0x48df5f[_0xcb2e74(0x1a8)],'title':_0xcb2e74(0x1b3),'icon':_0xcb2e74(0x1a1)};}const F={[_0x3116c0[_0x4ed97b(0x1c1)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x4ed97b(0x1c2)],A=(_0x5bca88,_0x5011ea,_0x45c382,_0x2b494d)=>{for(var _0x8f3ef3=_0x2b494d>0x1?void 0x0:_0x2b494d?G(_0x5011ea,_0x45c382):_0x5011ea,_0x213950=_0x5bca88['length']-0x1,_0x4fd040;_0x213950>=0x0;_0x213950--)(_0x4fd040=_0x5bca88[_0x213950])&&(_0x8f3ef3=_0x4fd040(_0x8f3ef3)||_0x8f3ef3);return _0x8f3ef3;},d=(_0x128ccc,_0x36ab11)=>(_0x4bd098,_0x57da3e)=>_0x36ab11(_0x4bd098,_0x57da3e,_0x128ccc);let c=class extends _0x24adcd{constructor(_0xb45ee8,_0x274aa9){const _0x51490a=_0x4ed97b;super(),this['_commandService']=_0xb45ee8,this[_0x51490a(0x1a7)]=_0x274aa9,this[_0x51490a(0x1c6)](),this[_0x51490a(0x1b4)]();}[_0x4ed97b(0x1c6)](){[p,u]['forEach'](_0x382f23=>{const _0x5b4ba6=_0x3842;this[_0x5b4ba6(0x19d)](this[_0x5b4ba6(0x1ac)][_0x5b4ba6(0x1a5)](_0x382f23));});}[_0x4ed97b(0x1b4)](){const _0x14db98=_0x4ed97b;this[_0x14db98(0x1a7)][_0x14db98(0x1b5)](F);}};c=A([d(0x0,_0x3d5587),d(0x1,_0x231d0b)],c);var j=Object[_0x4ed97b(0x1b1)],B=Object['getOwnPropertyDescriptor'],$=(_0x138a21,_0x3a0453,_0x3ce731)=>_0x3a0453 in _0x138a21?j(_0x138a21,_0x3a0453,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ce731}):_0x138a21[_0x3a0453]=_0x3ce731,V=(_0x4ed8cc,_0x1a9767,_0xfd022,_0x312730)=>{const _0x2d2dab=_0x4ed97b;for(var _0x28a276=_0x312730>0x1?void 0x0:_0x312730?B(_0x1a9767,_0xfd022):_0x1a9767,_0x441b63=_0x4ed8cc[_0x2d2dab(0x1af)]-0x1,_0x4966e6;_0x441b63>=0x0;_0x441b63--)(_0x4966e6=_0x4ed8cc[_0x441b63])&&(_0x28a276=_0x4966e6(_0x28a276)||_0x28a276);return _0x28a276;},_=(_0x4b228e,_0x19e289)=>(_0x1e7d1d,_0x80b3e9)=>_0x19e289(_0x1e7d1d,_0x80b3e9,_0x4b228e),I=(_0x4b928d,_0x2201dc,_0x3d6fb3)=>$(_0x4b928d,typeof _0x2201dc!='symbol'?_0x2201dc+'':_0x2201dc,_0x3d6fb3);const W=_0x4ed97b(0x1ae);let s=class extends _0x52cf6b{constructor(_0x361171=l,_0x693a87,_0x3747a7){const _0x2812c0=_0x4ed97b;super(),this[_0x2812c0(0x1b7)]=_0x361171,this[_0x2812c0(0x1b0)]=_0x693a87,this[_0x2812c0(0x1b2)]=_0x3747a7;const {menu:_0x4dc7e7,..._0x3f02db}=_0x589410({},l,this[_0x2812c0(0x1b7)]);_0x4dc7e7&&this[_0x2812c0(0x1b2)][_0x2812c0(0x199)](_0x2812c0(0x1a3),_0x4dc7e7,{'merge':!0x0}),this[_0x2812c0(0x1b2)]['setConfig'](H,_0x3f02db);}[_0x4ed97b(0x19c)](){const _0x3e1805=_0x4ed97b;[[c]][_0x3e1805(0x19a)](_0x3ed6a4=>this[_0x3e1805(0x1b0)]['add'](_0x3ed6a4));}[_0x4ed97b(0x1c5)](){const _0x158c0b=_0x4ed97b;this[_0x158c0b(0x1b0)][_0x158c0b(0x1b9)](c);}};I(s,_0x4ed97b(0x1ad),W),I(s,_0x4ed97b(0x19b),_0x3b215c[_0x4ed97b(0x1bd)]),s=V([_0x1207c7(_0x5cded7),_(0x1,_0x48dbe6(_0x51f937)),_(0x2,_0x255071)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x557a0a=_0x4b99;(function(_0x126023,_0xcaf004){const _0x477986=_0x4b99,_0x15c9a2=_0x126023();while(!![]){try{const _0x339e2a=parseInt(_0x477986(0x178))/0x1+parseInt(_0x477986(0x17b))/0x2+-parseInt(_0x477986(0x16e))/0x3*(-parseInt(_0x477986(0x181))/0x4)+-parseInt(_0x477986(0x17f))/0x5*(parseInt(_0x477986(0x15b))/0x6)+parseInt(_0x477986(0x188))/0x7+parseInt(_0x477986(0x183))/0x8*(-parseInt(_0x477986(0x184))/0x9)+-parseInt(_0x477986(0x176))/0xa;if(_0x339e2a===_0xcaf004)break;else _0x15c9a2['push'](_0x15c9a2['shift']());}catch(_0x434706){_0x15c9a2['push'](_0x15c9a2['shift']());}}}(_0x4232,0xece3e));import{IExchangeOperateService as _0x133d72,UniverExchangeClientPlugin as _0x594702}from'@univerjs-pro/exchange-client';import{CommandType as _0x7185d5,UniverInstanceType as _0x33b3f0,Disposable as _0x1d1a35,ICommandService as _0x16d8f5,DependentOn as _0x31ef0b,Inject as _0x226049,Injector as _0x1eee2f,IConfigService as _0x106d56,Plugin as _0x2cc34a,merge as _0x51db51}from'@univerjs/core';import{MenuItemType as _0x2dd209,getMenuHiddenObservable as _0x69414,RibbonStartGroup as _0x51f861,IMenuManagerService as _0x9d1e6e}from'@univerjs/ui';import{WorkbookExportPermission as _0x389cf0}from'@univerjs/sheets';function _0x4b99(_0x4c9833,_0x52dad8){const _0x42320c=_0x4232();return _0x4b99=function(_0x4b9990,_0x517064){_0x4b9990=_0x4b9990-0x15b;let _0x247e5e=_0x42320c[_0x4b9990];return _0x247e5e;},_0x4b99(_0x4c9833,_0x52dad8);}import{getCurrentRangeDisable$ as _0x3502b2}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x7185d5[_0x557a0a(0x15e)],'handler':async _0x2bc632=>{const _0x10bdb1=_0x557a0a,_0x4e41b3=_0x2bc632[_0x10bdb1(0x161)](_0x133d72);return new URLSearchParams(location['search'])[_0x10bdb1(0x161)](_0x10bdb1(0x16d))?_0x4e41b3[_0x10bdb1(0x171)]():_0x4e41b3[_0x10bdb1(0x16b)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x7185d5[_0x557a0a(0x15e)],'handler':async _0x198a60=>{const _0x2d0a80=_0x557a0a,_0x62e42=_0x198a60['get'](_0x133d72);return new URLSearchParams(location['search'])[_0x2d0a80(0x161)](_0x2d0a80(0x16d))?_0x62e42[_0x2d0a80(0x170)]():_0x62e42[_0x2d0a80(0x165)](),!0x0;}},H=_0x557a0a(0x18a),l={},S=_0x557a0a(0x180);function R(_0x19da25){const _0x184c1c=_0x557a0a;return{'id':S,'type':_0x2dd209[_0x184c1c(0x185)],'icon':_0x184c1c(0x17d),'tooltip':_0x184c1c(0x174),'hidden$':_0x69414(_0x19da25,_0x33b3f0[_0x184c1c(0x173)]),'disabled$':_0x3502b2(_0x19da25,{'workbookTypes':[_0x389cf0]})};}function w(){const _0x4c0594=_0x557a0a;return{'id':p['id'],'type':_0x2dd209[_0x4c0594(0x17c)],'title':_0x4c0594(0x187),'icon':_0x4c0594(0x16a)};}function D(){const _0x4890a2=_0x557a0a;return{'id':u['id'],'type':_0x2dd209[_0x4890a2(0x17c)],'title':'exchange.download','icon':_0x4890a2(0x166)};}const F={[_0x51f861[_0x557a0a(0x175)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};function _0x4232(){const _0x508f21=['180AYUBDf','setConfig','4941736uUugob','9Bjrtez','SUBITEMS','defineProperty','exchange.upload','9148363hUzJIf','_configService','sheets-exchange-client.config','36qZMrnt','mergeMenu','getOwnPropertyDescriptor','OPERATION','forEach','_initMenus','get','_menuManagerService','menu','length','exportXLSXBySnapshot','ExportIcon','onReady','_commandService','_injector','FolderIcon','importXLSXToSnapshot','_config','unit','4401BRybSI','symbol','exportXLSXByUnitId','importXLSXToUnitId','add','UNIVER_SHEET','exchange.file','OTHERS','15045120xuHhCp','SHEET_EXCHANGE_CLIENT_PLUGIN','1509344lXbabS','pluginName','_initCommands','3215134ZHIHlw','BUTTON','DirectExportIcon','type','1164420uIlNlk','sheets-exchange-client.operation.exchange'];_0x4232=function(){return _0x508f21;};return _0x4232();}var G=Object[_0x557a0a(0x15d)],A=(_0x4f16dc,_0x1aec53,_0x4fff16,_0x451e73)=>{for(var _0x293bd1=_0x451e73>0x1?void 0x0:_0x451e73?G(_0x1aec53,_0x4fff16):_0x1aec53,_0x13b034=_0x4f16dc['length']-0x1,_0x5623ff;_0x13b034>=0x0;_0x13b034--)(_0x5623ff=_0x4f16dc[_0x13b034])&&(_0x293bd1=_0x5623ff(_0x293bd1)||_0x293bd1);return _0x293bd1;},d=(_0x60369b,_0xcde0c3)=>(_0x2a45ff,_0x431578)=>_0xcde0c3(_0x2a45ff,_0x431578,_0x60369b);let c=class extends _0x1d1a35{constructor(_0x17bc56,_0x1f3460){const _0x26e49f=_0x557a0a;super(),this[_0x26e49f(0x168)]=_0x17bc56,this[_0x26e49f(0x162)]=_0x1f3460,this[_0x26e49f(0x17a)](),this[_0x26e49f(0x160)]();}[_0x557a0a(0x17a)](){[p,u]['forEach'](_0x4463b7=>{const _0x5b4074=_0x4b99;this['disposeWithMe'](this[_0x5b4074(0x168)]['registerCommand'](_0x4463b7));});}[_0x557a0a(0x160)](){const _0x3759ac=_0x557a0a;this['_menuManagerService'][_0x3759ac(0x15c)](F);}};c=A([d(0x0,_0x16d8f5),d(0x1,_0x9d1e6e)],c);var j=Object[_0x557a0a(0x186)],B=Object['getOwnPropertyDescriptor'],$=(_0x123382,_0x6328dd,_0x519c93)=>_0x6328dd in _0x123382?j(_0x123382,_0x6328dd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x519c93}):_0x123382[_0x6328dd]=_0x519c93,V=(_0x53b9c4,_0x4b3549,_0x1d6c50,_0x41a17b)=>{const _0x5cf1d9=_0x557a0a;for(var _0x316af5=_0x41a17b>0x1?void 0x0:_0x41a17b?B(_0x4b3549,_0x1d6c50):_0x4b3549,_0x2535eb=_0x53b9c4[_0x5cf1d9(0x164)]-0x1,_0x53add4;_0x2535eb>=0x0;_0x2535eb--)(_0x53add4=_0x53b9c4[_0x2535eb])&&(_0x316af5=_0x53add4(_0x316af5)||_0x316af5);return _0x316af5;},_=(_0x4d0a02,_0x16eaad)=>(_0x46fc13,_0x44ffde)=>_0x16eaad(_0x46fc13,_0x44ffde,_0x4d0a02),I=(_0x4b9c0d,_0x425861,_0x53c369)=>$(_0x4b9c0d,typeof _0x425861!=_0x557a0a(0x16f)?_0x425861+'':_0x425861,_0x53c369);const W=_0x557a0a(0x177);let s=class extends _0x2cc34a{constructor(_0x3b3c01=l,_0x58b1e9,_0x234f0f){const _0x3b8d9f=_0x557a0a;super(),this[_0x3b8d9f(0x16c)]=_0x3b3c01,this[_0x3b8d9f(0x169)]=_0x58b1e9,this[_0x3b8d9f(0x189)]=_0x234f0f;const {menu:_0x33c334,..._0xebd1dc}=_0x51db51({},l,this[_0x3b8d9f(0x16c)]);_0x33c334&&this[_0x3b8d9f(0x189)][_0x3b8d9f(0x182)](_0x3b8d9f(0x163),_0x33c334,{'merge':!0x0}),this[_0x3b8d9f(0x189)][_0x3b8d9f(0x182)](H,_0xebd1dc);}['onStarting'](){const _0xc7da99=_0x557a0a;[[c]][_0xc7da99(0x15f)](_0x5b4b75=>this['_injector'][_0xc7da99(0x172)](_0x5b4b75));}[_0x557a0a(0x167)](){const _0x3e820e=_0x557a0a;this[_0x3e820e(0x169)][_0x3e820e(0x161)](c);}};I(s,_0x557a0a(0x179),W),I(s,_0x557a0a(0x17e),_0x33b3f0['UNIVER_SHEET']),s=V([_0x31ef0b(_0x594702),_(0x1,_0x226049(_0x1eee2f)),_(0x2,_0x106d56)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- function _0x3842(_0x491b72,_0x10e8c4){const _0x127d5f=_0x127d();return _0x3842=function(_0x384206,_0x649ae1){_0x384206=_0x384206-0x198;let _0x39d29f=_0x127d5f[_0x384206];return _0x39d29f;},_0x3842(_0x491b72,_0x10e8c4);}const _0x4ed97b=_0x3842;(function(_0x189428,_0x2488cd){const _0x6564ce=_0x3842,_0xad10bb=_0x189428();while(!![]){try{const _0xcbb72=-parseInt(_0x6564ce(0x1be))/0x1+-parseInt(_0x6564ce(0x1a0))/0x2*(-parseInt(_0x6564ce(0x198))/0x3)+-parseInt(_0x6564ce(0x1c4))/0x4*(-parseInt(_0x6564ce(0x1a4))/0x5)+-parseInt(_0x6564ce(0x1a2))/0x6+parseInt(_0x6564ce(0x19f))/0x7+-parseInt(_0x6564ce(0x1bf))/0x8*(parseInt(_0x6564ce(0x1c3))/0x9)+-parseInt(_0x6564ce(0x1b8))/0xa;if(_0xcbb72===_0x2488cd)break;else _0xad10bb['push'](_0xad10bb['shift']());}catch(_0x567178){_0xad10bb['push'](_0xad10bb['shift']());}}}(_0x127d,0xe0ecd));import{IExchangeOperateService as _0x352ced,UniverExchangeClientPlugin as _0x5cded7}from'@univerjs-pro/exchange-client';function _0x127d(){const _0x4a2b9d=['defineProperty','_configService','exchange.download','_initMenus','mergeMenu','sheets-exchange-client.operation.exchange','_config','6298160WZqeek','get','exchange-client.operation.import-xlsx','search','DirectExportIcon','UNIVER_SHEET','1535358pFnyYI','40KbxvJY','importXLSXToSnapshot','OTHERS','getOwnPropertyDescriptor','1634193zJZqqE','4ZJbzVo','onReady','_initCommands','4223553fWjKSC','setConfig','forEach','type','onStarting','disposeWithMe','exportXLSXBySnapshot','11032700nJLEuz','2tWahCf','ExportIcon','2540532hGHubv','menu','7169115ncuQiH','registerCommand','sheets-exchange-client.config','_menuManagerService','BUTTON','exchange.file','unit','exportXLSXByUnitId','_commandService','pluginName','SHEET_EXCHANGE_CLIENT_PLUGIN','length','_injector'];_0x127d=function(){return _0x4a2b9d;};return _0x127d();}import{CommandType as _0x5f167e,UniverInstanceType as _0x3b215c,Disposable as _0x24adcd,ICommandService as _0x3d5587,DependentOn as _0x1207c7,Inject as _0x48dbe6,Injector as _0x51f937,IConfigService as _0x255071,Plugin as _0x52cf6b,merge as _0x589410}from'@univerjs/core';import{MenuItemType as _0x48df5f,getMenuHiddenObservable as _0x3256b4,RibbonStartGroup as _0x3116c0,IMenuManagerService as _0x231d0b}from'@univerjs/ui';import{WorkbookExportPermission as _0x1232db}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x215c75}from'@univerjs/sheets-ui';const p={'id':_0x4ed97b(0x1ba),'type':_0x5f167e['OPERATION'],'handler':async _0x5945c0=>{const _0x47ea3d=_0x4ed97b,_0x287cea=_0x5945c0[_0x47ea3d(0x1b9)](_0x352ced);return new URLSearchParams(location[_0x47ea3d(0x1bb)])[_0x47ea3d(0x1b9)](_0x47ea3d(0x1aa))?_0x287cea['importXLSXToUnitId']():_0x287cea[_0x47ea3d(0x1c0)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x5f167e['OPERATION'],'handler':async _0xb61a20=>{const _0x4ebfb8=_0x4ed97b,_0x1a332c=_0xb61a20[_0x4ebfb8(0x1b9)](_0x352ced);return new URLSearchParams(location['search'])['get']('unit')?_0x1a332c[_0x4ebfb8(0x1ab)]():_0x1a332c[_0x4ebfb8(0x19e)](),!0x0;}},H=_0x4ed97b(0x1a6),l={},S=_0x4ed97b(0x1b6);function R(_0x5c48d0){const _0x46ff13=_0x4ed97b;return{'id':S,'type':_0x48df5f['SUBITEMS'],'icon':_0x46ff13(0x1bc),'tooltip':_0x46ff13(0x1a9),'hidden$':_0x3256b4(_0x5c48d0,_0x3b215c[_0x46ff13(0x1bd)]),'disabled$':_0x215c75(_0x5c48d0,{'workbookTypes':[_0x1232db]})};}function w(){const _0x5718ea=_0x4ed97b;return{'id':p['id'],'type':_0x48df5f[_0x5718ea(0x1a8)],'title':'exchange.upload','icon':'FolderIcon'};}function D(){const _0xcb2e74=_0x4ed97b;return{'id':u['id'],'type':_0x48df5f[_0xcb2e74(0x1a8)],'title':_0xcb2e74(0x1b3),'icon':_0xcb2e74(0x1a1)};}const F={[_0x3116c0[_0x4ed97b(0x1c1)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x4ed97b(0x1c2)],A=(_0x5bca88,_0x5011ea,_0x45c382,_0x2b494d)=>{for(var _0x8f3ef3=_0x2b494d>0x1?void 0x0:_0x2b494d?G(_0x5011ea,_0x45c382):_0x5011ea,_0x213950=_0x5bca88['length']-0x1,_0x4fd040;_0x213950>=0x0;_0x213950--)(_0x4fd040=_0x5bca88[_0x213950])&&(_0x8f3ef3=_0x4fd040(_0x8f3ef3)||_0x8f3ef3);return _0x8f3ef3;},d=(_0x128ccc,_0x36ab11)=>(_0x4bd098,_0x57da3e)=>_0x36ab11(_0x4bd098,_0x57da3e,_0x128ccc);let c=class extends _0x24adcd{constructor(_0xb45ee8,_0x274aa9){const _0x51490a=_0x4ed97b;super(),this['_commandService']=_0xb45ee8,this[_0x51490a(0x1a7)]=_0x274aa9,this[_0x51490a(0x1c6)](),this[_0x51490a(0x1b4)]();}[_0x4ed97b(0x1c6)](){[p,u]['forEach'](_0x382f23=>{const _0x5b4ba6=_0x3842;this[_0x5b4ba6(0x19d)](this[_0x5b4ba6(0x1ac)][_0x5b4ba6(0x1a5)](_0x382f23));});}[_0x4ed97b(0x1b4)](){const _0x14db98=_0x4ed97b;this[_0x14db98(0x1a7)][_0x14db98(0x1b5)](F);}};c=A([d(0x0,_0x3d5587),d(0x1,_0x231d0b)],c);var j=Object[_0x4ed97b(0x1b1)],B=Object['getOwnPropertyDescriptor'],$=(_0x138a21,_0x3a0453,_0x3ce731)=>_0x3a0453 in _0x138a21?j(_0x138a21,_0x3a0453,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ce731}):_0x138a21[_0x3a0453]=_0x3ce731,V=(_0x4ed8cc,_0x1a9767,_0xfd022,_0x312730)=>{const _0x2d2dab=_0x4ed97b;for(var _0x28a276=_0x312730>0x1?void 0x0:_0x312730?B(_0x1a9767,_0xfd022):_0x1a9767,_0x441b63=_0x4ed8cc[_0x2d2dab(0x1af)]-0x1,_0x4966e6;_0x441b63>=0x0;_0x441b63--)(_0x4966e6=_0x4ed8cc[_0x441b63])&&(_0x28a276=_0x4966e6(_0x28a276)||_0x28a276);return _0x28a276;},_=(_0x4b228e,_0x19e289)=>(_0x1e7d1d,_0x80b3e9)=>_0x19e289(_0x1e7d1d,_0x80b3e9,_0x4b228e),I=(_0x4b928d,_0x2201dc,_0x3d6fb3)=>$(_0x4b928d,typeof _0x2201dc!='symbol'?_0x2201dc+'':_0x2201dc,_0x3d6fb3);const W=_0x4ed97b(0x1ae);let s=class extends _0x52cf6b{constructor(_0x361171=l,_0x693a87,_0x3747a7){const _0x2812c0=_0x4ed97b;super(),this[_0x2812c0(0x1b7)]=_0x361171,this[_0x2812c0(0x1b0)]=_0x693a87,this[_0x2812c0(0x1b2)]=_0x3747a7;const {menu:_0x4dc7e7,..._0x3f02db}=_0x589410({},l,this[_0x2812c0(0x1b7)]);_0x4dc7e7&&this[_0x2812c0(0x1b2)][_0x2812c0(0x199)](_0x2812c0(0x1a3),_0x4dc7e7,{'merge':!0x0}),this[_0x2812c0(0x1b2)]['setConfig'](H,_0x3f02db);}[_0x4ed97b(0x19c)](){const _0x3e1805=_0x4ed97b;[[c]][_0x3e1805(0x19a)](_0x3ed6a4=>this[_0x3e1805(0x1b0)]['add'](_0x3ed6a4));}[_0x4ed97b(0x1c5)](){const _0x158c0b=_0x4ed97b;this[_0x158c0b(0x1b0)][_0x158c0b(0x1b9)](c);}};I(s,_0x4ed97b(0x1ad),W),I(s,_0x4ed97b(0x19b),_0x3b215c[_0x4ed97b(0x1bd)]),s=V([_0x1207c7(_0x5cded7),_(0x1,_0x48dbe6(_0x51f937)),_(0x2,_0x255071)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x557a0a=_0x4b99;(function(_0x126023,_0xcaf004){const _0x477986=_0x4b99,_0x15c9a2=_0x126023();while(!![]){try{const _0x339e2a=parseInt(_0x477986(0x178))/0x1+parseInt(_0x477986(0x17b))/0x2+-parseInt(_0x477986(0x16e))/0x3*(-parseInt(_0x477986(0x181))/0x4)+-parseInt(_0x477986(0x17f))/0x5*(parseInt(_0x477986(0x15b))/0x6)+parseInt(_0x477986(0x188))/0x7+parseInt(_0x477986(0x183))/0x8*(-parseInt(_0x477986(0x184))/0x9)+-parseInt(_0x477986(0x176))/0xa;if(_0x339e2a===_0xcaf004)break;else _0x15c9a2['push'](_0x15c9a2['shift']());}catch(_0x434706){_0x15c9a2['push'](_0x15c9a2['shift']());}}}(_0x4232,0xece3e));import{IExchangeOperateService as _0x133d72,UniverExchangeClientPlugin as _0x594702}from'@univerjs-pro/exchange-client';import{CommandType as _0x7185d5,UniverInstanceType as _0x33b3f0,Disposable as _0x1d1a35,ICommandService as _0x16d8f5,DependentOn as _0x31ef0b,Inject as _0x226049,Injector as _0x1eee2f,IConfigService as _0x106d56,Plugin as _0x2cc34a,merge as _0x51db51}from'@univerjs/core';import{MenuItemType as _0x2dd209,getMenuHiddenObservable as _0x69414,RibbonStartGroup as _0x51f861,IMenuManagerService as _0x9d1e6e}from'@univerjs/ui';import{WorkbookExportPermission as _0x389cf0}from'@univerjs/sheets';function _0x4b99(_0x4c9833,_0x52dad8){const _0x42320c=_0x4232();return _0x4b99=function(_0x4b9990,_0x517064){_0x4b9990=_0x4b9990-0x15b;let _0x247e5e=_0x42320c[_0x4b9990];return _0x247e5e;},_0x4b99(_0x4c9833,_0x52dad8);}import{getCurrentRangeDisable$ as _0x3502b2}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x7185d5[_0x557a0a(0x15e)],'handler':async _0x2bc632=>{const _0x10bdb1=_0x557a0a,_0x4e41b3=_0x2bc632[_0x10bdb1(0x161)](_0x133d72);return new URLSearchParams(location['search'])[_0x10bdb1(0x161)](_0x10bdb1(0x16d))?_0x4e41b3[_0x10bdb1(0x171)]():_0x4e41b3[_0x10bdb1(0x16b)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x7185d5[_0x557a0a(0x15e)],'handler':async _0x198a60=>{const _0x2d0a80=_0x557a0a,_0x62e42=_0x198a60['get'](_0x133d72);return new URLSearchParams(location['search'])[_0x2d0a80(0x161)](_0x2d0a80(0x16d))?_0x62e42[_0x2d0a80(0x170)]():_0x62e42[_0x2d0a80(0x165)](),!0x0;}},H=_0x557a0a(0x18a),l={},S=_0x557a0a(0x180);function R(_0x19da25){const _0x184c1c=_0x557a0a;return{'id':S,'type':_0x2dd209[_0x184c1c(0x185)],'icon':_0x184c1c(0x17d),'tooltip':_0x184c1c(0x174),'hidden$':_0x69414(_0x19da25,_0x33b3f0[_0x184c1c(0x173)]),'disabled$':_0x3502b2(_0x19da25,{'workbookTypes':[_0x389cf0]})};}function w(){const _0x4c0594=_0x557a0a;return{'id':p['id'],'type':_0x2dd209[_0x4c0594(0x17c)],'title':_0x4c0594(0x187),'icon':_0x4c0594(0x16a)};}function D(){const _0x4890a2=_0x557a0a;return{'id':u['id'],'type':_0x2dd209[_0x4890a2(0x17c)],'title':'exchange.download','icon':_0x4890a2(0x166)};}const F={[_0x51f861[_0x557a0a(0x175)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};function _0x4232(){const _0x508f21=['180AYUBDf','setConfig','4941736uUugob','9Bjrtez','SUBITEMS','defineProperty','exchange.upload','9148363hUzJIf','_configService','sheets-exchange-client.config','36qZMrnt','mergeMenu','getOwnPropertyDescriptor','OPERATION','forEach','_initMenus','get','_menuManagerService','menu','length','exportXLSXBySnapshot','ExportIcon','onReady','_commandService','_injector','FolderIcon','importXLSXToSnapshot','_config','unit','4401BRybSI','symbol','exportXLSXByUnitId','importXLSXToUnitId','add','UNIVER_SHEET','exchange.file','OTHERS','15045120xuHhCp','SHEET_EXCHANGE_CLIENT_PLUGIN','1509344lXbabS','pluginName','_initCommands','3215134ZHIHlw','BUTTON','DirectExportIcon','type','1164420uIlNlk','sheets-exchange-client.operation.exchange'];_0x4232=function(){return _0x508f21;};return _0x4232();}var G=Object[_0x557a0a(0x15d)],A=(_0x4f16dc,_0x1aec53,_0x4fff16,_0x451e73)=>{for(var _0x293bd1=_0x451e73>0x1?void 0x0:_0x451e73?G(_0x1aec53,_0x4fff16):_0x1aec53,_0x13b034=_0x4f16dc['length']-0x1,_0x5623ff;_0x13b034>=0x0;_0x13b034--)(_0x5623ff=_0x4f16dc[_0x13b034])&&(_0x293bd1=_0x5623ff(_0x293bd1)||_0x293bd1);return _0x293bd1;},d=(_0x60369b,_0xcde0c3)=>(_0x2a45ff,_0x431578)=>_0xcde0c3(_0x2a45ff,_0x431578,_0x60369b);let c=class extends _0x1d1a35{constructor(_0x17bc56,_0x1f3460){const _0x26e49f=_0x557a0a;super(),this[_0x26e49f(0x168)]=_0x17bc56,this[_0x26e49f(0x162)]=_0x1f3460,this[_0x26e49f(0x17a)](),this[_0x26e49f(0x160)]();}[_0x557a0a(0x17a)](){[p,u]['forEach'](_0x4463b7=>{const _0x5b4074=_0x4b99;this['disposeWithMe'](this[_0x5b4074(0x168)]['registerCommand'](_0x4463b7));});}[_0x557a0a(0x160)](){const _0x3759ac=_0x557a0a;this['_menuManagerService'][_0x3759ac(0x15c)](F);}};c=A([d(0x0,_0x16d8f5),d(0x1,_0x9d1e6e)],c);var j=Object[_0x557a0a(0x186)],B=Object['getOwnPropertyDescriptor'],$=(_0x123382,_0x6328dd,_0x519c93)=>_0x6328dd in _0x123382?j(_0x123382,_0x6328dd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x519c93}):_0x123382[_0x6328dd]=_0x519c93,V=(_0x53b9c4,_0x4b3549,_0x1d6c50,_0x41a17b)=>{const _0x5cf1d9=_0x557a0a;for(var _0x316af5=_0x41a17b>0x1?void 0x0:_0x41a17b?B(_0x4b3549,_0x1d6c50):_0x4b3549,_0x2535eb=_0x53b9c4[_0x5cf1d9(0x164)]-0x1,_0x53add4;_0x2535eb>=0x0;_0x2535eb--)(_0x53add4=_0x53b9c4[_0x2535eb])&&(_0x316af5=_0x53add4(_0x316af5)||_0x316af5);return _0x316af5;},_=(_0x4d0a02,_0x16eaad)=>(_0x46fc13,_0x44ffde)=>_0x16eaad(_0x46fc13,_0x44ffde,_0x4d0a02),I=(_0x4b9c0d,_0x425861,_0x53c369)=>$(_0x4b9c0d,typeof _0x425861!=_0x557a0a(0x16f)?_0x425861+'':_0x425861,_0x53c369);const W=_0x557a0a(0x177);let s=class extends _0x2cc34a{constructor(_0x3b3c01=l,_0x58b1e9,_0x234f0f){const _0x3b8d9f=_0x557a0a;super(),this[_0x3b8d9f(0x16c)]=_0x3b3c01,this[_0x3b8d9f(0x169)]=_0x58b1e9,this[_0x3b8d9f(0x189)]=_0x234f0f;const {menu:_0x33c334,..._0xebd1dc}=_0x51db51({},l,this[_0x3b8d9f(0x16c)]);_0x33c334&&this[_0x3b8d9f(0x189)][_0x3b8d9f(0x182)](_0x3b8d9f(0x163),_0x33c334,{'merge':!0x0}),this[_0x3b8d9f(0x189)][_0x3b8d9f(0x182)](H,_0xebd1dc);}['onStarting'](){const _0xc7da99=_0x557a0a;[[c]][_0xc7da99(0x15f)](_0x5b4b75=>this['_injector'][_0xc7da99(0x172)](_0x5b4b75));}[_0x557a0a(0x167)](){const _0x3e820e=_0x557a0a;this[_0x3e820e(0x169)][_0x3e820e(0x161)](c);}};I(s,_0x557a0a(0x179),W),I(s,_0x557a0a(0x17e),_0x33b3f0['UNIVER_SHEET']),s=V([_0x31ef0b(_0x594702),_(0x1,_0x226049(_0x1eee2f)),_(0x2,_0x106d56)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x31cc2c,_0x26b8ea){const _0x29de90=_0x4f05,_0x19b52d=_0x31cc2c();while(!![]){try{const _0x265021=parseInt(_0x29de90(0x1af))/0x1+parseInt(_0x29de90(0x196))/0x2*(parseInt(_0x29de90(0x190))/0x3)+parseInt(_0x29de90(0x19e))/0x4*(parseInt(_0x29de90(0x18e))/0x5)+parseInt(_0x29de90(0x191))/0x6+parseInt(_0x29de90(0x1a6))/0x7*(parseInt(_0x29de90(0x19c))/0x8)+-parseInt(_0x29de90(0x18b))/0x9*(parseInt(_0x29de90(0x179))/0xa)+-parseInt(_0x29de90(0x1b2))/0xb;if(_0x265021===_0x26b8ea)break;else _0x19b52d['push'](_0x19b52d['shift']());}catch(_0x1cdc7d){_0x19b52d['push'](_0x19b52d['shift']());}}}(_0x5663,0x72aa6),function(_0x13be67,_0x3e82b){const _0x1e7806=_0x4f05;typeof exports==_0x1e7806(0x192)&&typeof module<'u'?_0x3e82b(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x1e7806(0x1ba)&&define[_0x1e7806(0x17b)]?define(['exports',_0x1e7806(0x197),_0x1e7806(0x1ae),_0x1e7806(0x1a1),'@univerjs/sheets',_0x1e7806(0x182)],_0x3e82b):(_0x13be67=typeof globalThis<'u'?globalThis:_0x13be67||self,_0x3e82b(_0x13be67[_0x1e7806(0x1b7)]={},_0x13be67[_0x1e7806(0x187)],_0x13be67['UniverCore'],_0x13be67[_0x1e7806(0x1b5)],_0x13be67['UniverSheets'],_0x13be67[_0x1e7806(0x18d)]));}(this,function(_0x3be4f6,_0xadce82,_0x2728c2,_0x42ff4f,_0x30c7d7,_0x36a2c8){'use strict';const _0x119e63=_0x4f05;const _0x59ae15={'id':'exchange-client.operation.import-xlsx','type':_0x2728c2[_0x119e63(0x183)][_0x119e63(0x172)],'handler':async _0x2a9764=>{const _0x2e5fc6=_0x119e63,_0x91d24f=_0x2a9764[_0x2e5fc6(0x1b6)](_0xadce82[_0x2e5fc6(0x171)]);return new URLSearchParams(location[_0x2e5fc6(0x170)])['get'](_0x2e5fc6(0x1b4))?_0x91d24f['importXLSXToUnitId']():_0x91d24f[_0x2e5fc6(0x177)](),!0x0;}},_0x1713d5={'id':_0x119e63(0x1a0),'type':_0x2728c2['CommandType'][_0x119e63(0x172)],'handler':async _0x30b376=>{const _0x1060e7=_0x119e63,_0x2fe33b=_0x30b376[_0x1060e7(0x1b6)](_0xadce82[_0x1060e7(0x171)]);return new URLSearchParams(location['search'])[_0x1060e7(0x1b6)](_0x1060e7(0x1b4))?_0x2fe33b[_0x1060e7(0x1a9)]():_0x2fe33b[_0x1060e7(0x1a8)](),!0x0;}},_0x58e70e='sheets-exchange-client.config',_0x28325e={},_0x38cc8d=_0x119e63(0x175);function _0x5c919b(_0x34102f){const _0x541949=_0x119e63;return{'id':_0x38cc8d,'type':_0x42ff4f[_0x541949(0x198)][_0x541949(0x1b0)],'icon':_0x541949(0x1b3),'tooltip':_0x541949(0x189),'hidden$':_0x42ff4f['getMenuHiddenObservable'](_0x34102f,_0x2728c2[_0x541949(0x18c)]['UNIVER_SHEET']),'disabled$':_0x36a2c8[_0x541949(0x173)](_0x34102f,{'workbookTypes':[_0x30c7d7['WorkbookExportPermission']]})};}function _0x562aad(){const _0x53e772=_0x119e63;return{'id':_0x59ae15['id'],'type':_0x42ff4f[_0x53e772(0x198)]['BUTTON'],'title':_0x53e772(0x1ad),'icon':_0x53e772(0x178)};}function _0x39c267(){const _0x5e56c7=_0x119e63;return{'id':_0x1713d5['id'],'type':_0x42ff4f[_0x5e56c7(0x198)][_0x5e56c7(0x1a4)],'title':'exchange.download','icon':_0x5e56c7(0x17f)};}const _0x4cebd1={[_0x42ff4f[_0x119e63(0x195)][_0x119e63(0x1b1)]]:{[_0x38cc8d]:{'order':0.3,'menuItemFactory':_0x5c919b,[_0x59ae15['id']]:{'order':0x0,'menuItemFactory':_0x562aad},[_0x1713d5['id']]:{'order':0x1,'menuItemFactory':_0x39c267}}}};var _0x3e5f0f=Object[_0x119e63(0x17c)],_0x5bcc60=(_0x594c24,_0x4e54c8,_0x47c9d2,_0x464d47)=>{const _0x54f6b0=_0x119e63;for(var _0xf32d98=_0x464d47>0x1?void 0x0:_0x464d47?_0x3e5f0f(_0x4e54c8,_0x47c9d2):_0x4e54c8,_0x264105=_0x594c24[_0x54f6b0(0x17a)]-0x1,_0x2990cd;_0x264105>=0x0;_0x264105--)(_0x2990cd=_0x594c24[_0x264105])&&(_0xf32d98=_0x2990cd(_0xf32d98)||_0xf32d98);return _0xf32d98;},_0x2c1a97=(_0xb3d32f,_0xb5e63b)=>(_0x190531,_0x1994cf)=>_0xb5e63b(_0x190531,_0x1994cf,_0xb3d32f);let _0x109b10=class extends _0x2728c2[_0x119e63(0x19d)]{constructor(_0x29a505,_0x49fd54){const _0x502fab=_0x119e63;super(),this[_0x502fab(0x1b9)]=_0x29a505,this['_menuManagerService']=_0x49fd54,this['_initCommands'](),this[_0x502fab(0x1a3)]();}[_0x119e63(0x186)](){const _0x1be43d=_0x119e63;[_0x59ae15,_0x1713d5][_0x1be43d(0x17e)](_0x4c84aa=>{const _0x1e1763=_0x1be43d;this['disposeWithMe'](this[_0x1e1763(0x1b9)][_0x1e1763(0x174)](_0x4c84aa));});}[_0x119e63(0x1a3)](){const _0x4d2217=_0x119e63;this[_0x4d2217(0x1ab)][_0x4d2217(0x199)](_0x4cebd1);}};_0x109b10=_0x5bcc60([_0x2c1a97(0x0,_0x2728c2[_0x119e63(0x184)]),_0x2c1a97(0x1,_0x42ff4f[_0x119e63(0x1b8)])],_0x109b10);var _0x41f43c=Object[_0x119e63(0x180)],_0x215bc9=Object[_0x119e63(0x17c)],_0x23021a=(_0x3419f5,_0x332e18,_0x2bde5c)=>_0x332e18 in _0x3419f5?_0x41f43c(_0x3419f5,_0x332e18,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2bde5c}):_0x3419f5[_0x332e18]=_0x2bde5c,_0x369df9=(_0x30fa28,_0x2034d3,_0x2c9e73,_0x26cce7)=>{const _0x10dfe6=_0x119e63;for(var _0x32ffb6=_0x26cce7>0x1?void 0x0:_0x26cce7?_0x215bc9(_0x2034d3,_0x2c9e73):_0x2034d3,_0x585163=_0x30fa28[_0x10dfe6(0x17a)]-0x1,_0x36a7c2;_0x585163>=0x0;_0x585163--)(_0x36a7c2=_0x30fa28[_0x585163])&&(_0x32ffb6=_0x36a7c2(_0x32ffb6)||_0x32ffb6);return _0x32ffb6;},_0x256f46=(_0xdd3072,_0x32b341)=>(_0x16a407,_0x544517)=>_0x32b341(_0x16a407,_0x544517,_0xdd3072),_0x4bad14=(_0x2d72ac,_0x21acd9,_0x182e0f)=>_0x23021a(_0x2d72ac,typeof _0x21acd9!='symbol'?_0x21acd9+'':_0x21acd9,_0x182e0f);const _0x2cb0e1=_0x119e63(0x1a5);_0x3be4f6['UniverSheetsExchangeClientPlugin']=class extends _0x2728c2[_0x119e63(0x185)]{constructor(_0x2623e5=_0x28325e,_0x335e89,_0x5eacb5){const _0x1e4552=_0x119e63;super(),this[_0x1e4552(0x17d)]=_0x2623e5,this[_0x1e4552(0x176)]=_0x335e89,this[_0x1e4552(0x1bb)]=_0x5eacb5;const {menu:_0x558eb7,..._0x2e09fa}=_0x2728c2[_0x1e4552(0x18a)]({},_0x28325e,this['_config']);_0x558eb7&&this[_0x1e4552(0x1bb)][_0x1e4552(0x1a7)]('menu',_0x558eb7,{'merge':!0x0}),this[_0x1e4552(0x1bb)]['setConfig'](_0x58e70e,_0x2e09fa);}['onStarting'](){const _0x33871b=_0x119e63;[[_0x109b10]]['forEach'](_0x22ce7f=>this[_0x33871b(0x176)][_0x33871b(0x194)](_0x22ce7f));}[_0x119e63(0x193)](){const _0x162af2=_0x119e63;this[_0x162af2(0x176)][_0x162af2(0x1b6)](_0x109b10);}},_0x4bad14(_0x3be4f6[_0x119e63(0x19f)],_0x119e63(0x188),_0x2cb0e1),_0x4bad14(_0x3be4f6[_0x119e63(0x19f)],'type',_0x2728c2[_0x119e63(0x18c)][_0x119e63(0x1ac)]),_0x3be4f6['UniverSheetsExchangeClientPlugin']=_0x369df9([_0x2728c2[_0x119e63(0x1a2)](_0xadce82['UniverExchangeClientPlugin']),_0x256f46(0x1,_0x2728c2[_0x119e63(0x181)](_0x2728c2[_0x119e63(0x19a)])),_0x256f46(0x2,_0x2728c2[_0x119e63(0x1aa)])],_0x3be4f6[_0x119e63(0x19f)]),_0x3be4f6['ExportXLSXOperation']=_0x1713d5,_0x3be4f6['ImportXLSXOperation']=_0x59ae15,Object[_0x119e63(0x180)](_0x3be4f6,Symbol[_0x119e63(0x18f)],{'value':_0x119e63(0x19b)});}));function _0x4f05(_0x63ccf9,_0x11a603){const _0x5663f8=_0x5663();return _0x4f05=function(_0x4f0585,_0x46083a){_0x4f0585=_0x4f0585-0x170;let _0x420c8c=_0x5663f8[_0x4f0585];return _0x420c8c;},_0x4f05(_0x63ccf9,_0x11a603);}function _0x5663(){const _0x1c1b74=['pluginName','exchange.file','merge','2152179NxGDOp','UniverInstanceType','UniverSheetsUi','5bMFfOc','toStringTag','96aknVtj','3754482EXzmrM','object','onReady','add','RibbonStartGroup','38746JBthTh','@univerjs-pro/exchange-client','MenuItemType','mergeMenu','Injector','Module','7432XLVyNR','Disposable','311500bEpllZ','UniverSheetsExchangeClientPlugin','exchange-client.operation.export-xlsx','@univerjs/ui','DependentOn','_initMenus','BUTTON','SHEET_EXCHANGE_CLIENT_PLUGIN','1505UHtGuB','setConfig','exportXLSXBySnapshot','exportXLSXByUnitId','IConfigService','_menuManagerService','UNIVER_SHEET','exchange.upload','@univerjs/core','583985LTguhE','SUBITEMS','OTHERS','15383247pffsIq','DirectExportIcon','unit','UniverUi','get','UniverProSheetsExchangeClient','IMenuManagerService','_commandService','function','_configService','search','IExchangeOperateService','OPERATION','getCurrentRangeDisable$','registerCommand','sheets-exchange-client.operation.exchange','_injector','importXLSXToSnapshot','FolderIcon','10dZNOdk','length','amd','getOwnPropertyDescriptor','_config','forEach','ExportIcon','defineProperty','Inject','@univerjs/sheets-ui','CommandType','ICommandService','Plugin','_initCommands','UniverProExchangeClient'];_0x5663=function(){return _0x1c1b74;};return _0x5663();}
1
+ function _0x1859(_0x1017de,_0x39f975){const _0x2f45d6=_0x2f45();return _0x1859=function(_0x185963,_0x3888e4){_0x185963=_0x185963-0xb0;let _0x4df03a=_0x2f45d6[_0x185963];return _0x4df03a;},_0x1859(_0x1017de,_0x39f975);}function _0x2f45(){const _0x4bd57f=['OPERATION','1342564eWIlgt','get','mergeMenu','object','onStarting','_configService','@univerjs/ui','SHEET_EXCHANGE_CLIENT_PLUGIN','unit','1168335bDvNHz','UniverProExchangeClient','getCurrentRangeDisable$','Module','defineProperty','_injector','244440BkMSoQ','Plugin','importXLSXToUnitId','ExportXLSXOperation','pluginName','toStringTag','2129672qRsHdg','importXLSXToSnapshot','IConfigService','getOwnPropertyDescriptor','exchange.file','Injector','UniverInstanceType','forEach','exchange-client.operation.export-xlsx','_commandService','disposeWithMe','_config','1640412pWexue','ICommandService','UNIVER_SHEET','475366izQkGo','onReady','1lYIJdW','function','exportXLSXByUnitId','3sBJIDb','MenuItemType','@univerjs/core','WorkbookExportPermission','length','_initMenus','UniverSheetsExchangeClientPlugin','ImportXLSXOperation','_initCommands','menu','@univerjs/sheets','setConfig','exports','9304650QAsNpJ','sheets-exchange-client.operation.exchange','IExchangeOperateService','search','sheets-exchange-client.config','@univerjs/sheets-ui','_menuManagerService','BUTTON','add','exportXLSXBySnapshot','exchange.upload','Inject','CommandType','UniverUi','merge','UniverProSheetsExchangeClient'];_0x2f45=function(){return _0x4bd57f;};return _0x2f45();}(function(_0x33abb7,_0x5711d3){const _0x18361d=_0x1859,_0x537bea=_0x33abb7();while(!![]){try{const _0x3329c6=-parseInt(_0x18361d(0xdb))/0x1*(-parseInt(_0x18361d(0xd9))/0x2)+parseInt(_0x18361d(0xde))/0x3*(parseInt(_0x18361d(0xb5))/0x4)+-parseInt(_0x18361d(0xc4))/0x5+parseInt(_0x18361d(0xd6))/0x6+parseInt(_0x18361d(0xbe))/0x7+parseInt(_0x18361d(0xca))/0x8+-parseInt(_0x18361d(0xeb))/0x9;if(_0x3329c6===_0x5711d3)break;else _0x537bea['push'](_0x537bea['shift']());}catch(_0xe1d81f){_0x537bea['push'](_0x537bea['shift']());}}}(_0x2f45,0x301ee),function(_0x457032,_0x1fa541){const _0x25c64c=_0x1859;typeof exports==_0x25c64c(0xb8)&&typeof module<'u'?_0x1fa541(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x25c64c(0xdc)&&define['amd']?define([_0x25c64c(0xea),'@univerjs-pro/exchange-client',_0x25c64c(0xe0),_0x25c64c(0xbb),_0x25c64c(0xe8),_0x25c64c(0xf0)],_0x1fa541):(_0x457032=typeof globalThis<'u'?globalThis:_0x457032||self,_0x1fa541(_0x457032[_0x25c64c(0xb3)]={},_0x457032[_0x25c64c(0xbf)],_0x457032['UniverCore'],_0x457032[_0x25c64c(0xb1)],_0x457032['UniverSheets'],_0x457032['UniverSheetsUi']));}(this,function(_0x537e64,_0x542778,_0x2f6bf2,_0x1710b1,_0x2b7922,_0x1d6604){'use strict';const _0x17a89c=_0x1859;const _0xcca6e={'id':'exchange-client.operation.import-xlsx','type':_0x2f6bf2[_0x17a89c(0xb0)][_0x17a89c(0xb4)],'handler':async _0x3fd5b5=>{const _0x1f1237=_0x17a89c,_0x23546f=_0x3fd5b5['get'](_0x542778[_0x1f1237(0xed)]);return new URLSearchParams(location[_0x1f1237(0xee)])['get']('unit')?_0x23546f[_0x1f1237(0xc6)]():_0x23546f[_0x1f1237(0xcb)](),!0x0;}},_0x2f531f={'id':_0x17a89c(0xd2),'type':_0x2f6bf2[_0x17a89c(0xb0)][_0x17a89c(0xb4)],'handler':async _0x402ba0=>{const _0x442061=_0x17a89c,_0x2a2d2b=_0x402ba0['get'](_0x542778['IExchangeOperateService']);return new URLSearchParams(location[_0x442061(0xee)])[_0x442061(0xb6)](_0x442061(0xbd))?_0x2a2d2b[_0x442061(0xdd)]():_0x2a2d2b[_0x442061(0xf4)](),!0x0;}},_0x2c1f66=_0x17a89c(0xef),_0x5eed8c={},_0x1fd83f=_0x17a89c(0xec);function _0x340457(_0x5addb4){const _0xf07d83=_0x17a89c;return{'id':_0x1fd83f,'type':_0x1710b1[_0xf07d83(0xdf)]['SUBITEMS'],'icon':'DirectExportIcon','tooltip':_0xf07d83(0xce),'hidden$':_0x1710b1['getMenuHiddenObservable'](_0x5addb4,_0x2f6bf2[_0xf07d83(0xd0)][_0xf07d83(0xd8)]),'disabled$':_0x1d6604[_0xf07d83(0xc0)](_0x5addb4,{'workbookTypes':[_0x2b7922[_0xf07d83(0xe1)]]})};}function _0x242dea(){const _0x2dd0ae=_0x17a89c;return{'id':_0xcca6e['id'],'type':_0x1710b1[_0x2dd0ae(0xdf)][_0x2dd0ae(0xf2)],'title':_0x2dd0ae(0xf5),'icon':'FolderIcon'};}function _0x5e6d65(){const _0x1d960e=_0x17a89c;return{'id':_0x2f531f['id'],'type':_0x1710b1[_0x1d960e(0xdf)][_0x1d960e(0xf2)],'title':'exchange.download','icon':'ExportIcon'};}const _0x218d31={[_0x1710b1['RibbonStartGroup']['OTHERS']]:{[_0x1fd83f]:{'order':0.3,'menuItemFactory':_0x340457,[_0xcca6e['id']]:{'order':0x0,'menuItemFactory':_0x242dea},[_0x2f531f['id']]:{'order':0x1,'menuItemFactory':_0x5e6d65}}}};var _0x25a1f3=Object[_0x17a89c(0xcd)],_0x502e0a=(_0x54cf02,_0x2bdf68,_0x3bff88,_0x3f7b58)=>{const _0x34010a=_0x17a89c;for(var _0x263724=_0x3f7b58>0x1?void 0x0:_0x3f7b58?_0x25a1f3(_0x2bdf68,_0x3bff88):_0x2bdf68,_0x342cb1=_0x54cf02[_0x34010a(0xe2)]-0x1,_0x468057;_0x342cb1>=0x0;_0x342cb1--)(_0x468057=_0x54cf02[_0x342cb1])&&(_0x263724=_0x468057(_0x263724)||_0x263724);return _0x263724;},_0x5dea18=(_0x4bbc6b,_0x3409bb)=>(_0xa24207,_0x348482)=>_0x3409bb(_0xa24207,_0x348482,_0x4bbc6b);let _0xf4ee7c=class extends _0x2f6bf2['Disposable']{constructor(_0x3fe106,_0x18e5c8){const _0x40ca85=_0x17a89c;super(),this[_0x40ca85(0xd3)]=_0x3fe106,this['_menuManagerService']=_0x18e5c8,this['_initCommands'](),this[_0x40ca85(0xe3)]();}[_0x17a89c(0xe6)](){const _0x20585f=_0x17a89c;[_0xcca6e,_0x2f531f][_0x20585f(0xd1)](_0x28986a=>{const _0x4d949b=_0x20585f;this[_0x4d949b(0xd4)](this[_0x4d949b(0xd3)]['registerCommand'](_0x28986a));});}[_0x17a89c(0xe3)](){const _0x59cc61=_0x17a89c;this[_0x59cc61(0xf1)][_0x59cc61(0xb7)](_0x218d31);}};_0xf4ee7c=_0x502e0a([_0x5dea18(0x0,_0x2f6bf2[_0x17a89c(0xd7)]),_0x5dea18(0x1,_0x1710b1['IMenuManagerService'])],_0xf4ee7c);var _0x5d83e1=Object[_0x17a89c(0xc2)],_0x31d6df=Object[_0x17a89c(0xcd)],_0x18a429=(_0x5812cb,_0xade79c,_0x5217ff)=>_0xade79c in _0x5812cb?_0x5d83e1(_0x5812cb,_0xade79c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5217ff}):_0x5812cb[_0xade79c]=_0x5217ff,_0x5d48ff=(_0x5c6a3f,_0x4aaebd,_0x461930,_0x4a989e)=>{const _0x5dc2d6=_0x17a89c;for(var _0x26b162=_0x4a989e>0x1?void 0x0:_0x4a989e?_0x31d6df(_0x4aaebd,_0x461930):_0x4aaebd,_0x2840c8=_0x5c6a3f[_0x5dc2d6(0xe2)]-0x1,_0x19c01a;_0x2840c8>=0x0;_0x2840c8--)(_0x19c01a=_0x5c6a3f[_0x2840c8])&&(_0x26b162=_0x19c01a(_0x26b162)||_0x26b162);return _0x26b162;},_0x4cf361=(_0x28bdc4,_0x17bb29)=>(_0x1ac299,_0x2b2d54)=>_0x17bb29(_0x1ac299,_0x2b2d54,_0x28bdc4),_0x402d19=(_0xfe37f5,_0x15b5c2,_0x1186e6)=>_0x18a429(_0xfe37f5,typeof _0x15b5c2!='symbol'?_0x15b5c2+'':_0x15b5c2,_0x1186e6);const _0x389164=_0x17a89c(0xbc);_0x537e64[_0x17a89c(0xe4)]=class extends _0x2f6bf2[_0x17a89c(0xc5)]{constructor(_0xd34c22=_0x5eed8c,_0x4df944,_0x5a2d86){const _0x5d636d=_0x17a89c;super(),this[_0x5d636d(0xd5)]=_0xd34c22,this[_0x5d636d(0xc3)]=_0x4df944,this[_0x5d636d(0xba)]=_0x5a2d86;const {menu:_0x19823d,..._0xd6770a}=_0x2f6bf2[_0x5d636d(0xb2)]({},_0x5eed8c,this[_0x5d636d(0xd5)]);_0x19823d&&this[_0x5d636d(0xba)]['setConfig'](_0x5d636d(0xe7),_0x19823d,{'merge':!0x0}),this[_0x5d636d(0xba)][_0x5d636d(0xe9)](_0x2c1f66,_0xd6770a);}[_0x17a89c(0xb9)](){const _0x9433f7=_0x17a89c;[[_0xf4ee7c]][_0x9433f7(0xd1)](_0x3f9d72=>this[_0x9433f7(0xc3)][_0x9433f7(0xf3)](_0x3f9d72));}[_0x17a89c(0xda)](){const _0x1d2503=_0x17a89c;this[_0x1d2503(0xc3)]['get'](_0xf4ee7c);}},_0x402d19(_0x537e64[_0x17a89c(0xe4)],_0x17a89c(0xc8),_0x389164),_0x402d19(_0x537e64[_0x17a89c(0xe4)],'type',_0x2f6bf2['UniverInstanceType'][_0x17a89c(0xd8)]),_0x537e64['UniverSheetsExchangeClientPlugin']=_0x5d48ff([_0x2f6bf2['DependentOn'](_0x542778['UniverExchangeClientPlugin']),_0x4cf361(0x1,_0x2f6bf2[_0x17a89c(0xf6)](_0x2f6bf2[_0x17a89c(0xcf)])),_0x4cf361(0x2,_0x2f6bf2[_0x17a89c(0xcc)])],_0x537e64[_0x17a89c(0xe4)]),_0x537e64[_0x17a89c(0xc7)]=_0x2f531f,_0x537e64[_0x17a89c(0xe5)]=_0xcca6e,Object[_0x17a89c(0xc2)](_0x537e64,Symbol[_0x17a89c(0xc9)],{'value':_0x17a89c(0xc1)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.10.11-nightly.202510220308",
3
+ "version": "0.10.12-nightly.202510221114",
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.10.11-nightly.202510220308",
46
- "@univerjs/core": "0.10.11-nightly.202510220308",
47
- "@univerjs/sheets": "0.10.11-nightly.202510220308",
48
- "@univerjs/sheets-ui": "0.10.11-nightly.202510220308",
49
- "@univerjs/ui": "0.10.11-nightly.202510220308"
45
+ "@univerjs-pro/exchange-client": "0.10.12-nightly.202510221114",
46
+ "@univerjs/sheets": "0.10.12-nightly.202510221114",
47
+ "@univerjs/core": "0.10.12-nightly.202510221114",
48
+ "@univerjs/ui": "0.10.12-nightly.202510221114",
49
+ "@univerjs/sheets-ui": "0.10.12-nightly.202510221114"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",
53
53
  "vite": "^7.1.10",
54
54
  "vitest": "^3.2.4",
55
- "@univerjs-infra/shared": "0.10.11"
55
+ "@univerjs-infra/shared": "0.10.12"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run",