@univerjs-pro/sheets-exchange-client 0.10.5 → 0.10.6-experimental.20250904-44da50e

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 _0x5ed94b=_0x3d5d;(function(_0x28ee43,_0x11116f){const _0xd8ee45=_0x3d5d,_0xe92231=_0x28ee43();while(!![]){try{const _0x258cbe=parseInt(_0xd8ee45(0x122))/0x1+-parseInt(_0xd8ee45(0x103))/0x2+-parseInt(_0xd8ee45(0x113))/0x3+parseInt(_0xd8ee45(0x109))/0x4+parseInt(_0xd8ee45(0x12a))/0x5*(parseInt(_0xd8ee45(0x11c))/0x6)+-parseInt(_0xd8ee45(0xfc))/0x7*(parseInt(_0xd8ee45(0x105))/0x8)+parseInt(_0xd8ee45(0x119))/0x9*(parseInt(_0xd8ee45(0x106))/0xa);if(_0x258cbe===_0x11116f)break;else _0xe92231['push'](_0xe92231['shift']());}catch(_0x5db68e){_0xe92231['push'](_0xe92231['shift']());}}}(_0x30c4,0x3bace));Object['defineProperty'](exports,Symbol[_0x5ed94b(0xfe)],{'value':_0x5ed94b(0x107)});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':_0x5ed94b(0x10d),'type':i[_0x5ed94b(0x120)][_0x5ed94b(0x10f)],'handler':async _0x355b9b=>{const _0x22ff3d=_0x5ed94b,_0x1f9f00=_0x355b9b[_0x22ff3d(0x124)](g[_0x22ff3d(0x11b)]);return new URLSearchParams(location[_0x22ff3d(0x112)])[_0x22ff3d(0x124)](_0x22ff3d(0x12b))?_0x1f9f00[_0x22ff3d(0x104)]():_0x1f9f00[_0x22ff3d(0x136)](),!0x0;}},p={'id':_0x5ed94b(0x134),'type':i[_0x5ed94b(0x120)][_0x5ed94b(0x10f)],'handler':async _0x517f1a=>{const _0x2eded4=_0x5ed94b,_0x5f08ac=_0x517f1a['get'](g[_0x2eded4(0x11b)]);return new URLSearchParams(location[_0x2eded4(0x112)])[_0x2eded4(0x124)]('unit')?_0x5f08ac['exportXLSXByUnitId']():_0x5f08ac[_0x2eded4(0xf8)](),!0x0;}},v=_0x5ed94b(0x128),h={},S=_0x5ed94b(0x115);function x(_0x1bc855){const _0x4ac9d8=_0x5ed94b;return{'id':S,'type':c[_0x4ac9d8(0x118)][_0x4ac9d8(0x135)],'icon':_0x4ac9d8(0x127),'tooltip':_0x4ac9d8(0x133),'hidden$':c[_0x4ac9d8(0x12f)](_0x1bc855,i[_0x4ac9d8(0x12e)][_0x4ac9d8(0x11f)]),'disabled$':I[_0x4ac9d8(0xfa)](_0x1bc855,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x3d17c4=_0x5ed94b;return{'id':l['id'],'type':c['MenuItemType'][_0x3d17c4(0x137)],'title':_0x3d17c4(0x110),'icon':_0x3d17c4(0x117)};}function _0x3d5d(_0x2640e4,_0x3a5471){const _0x30c470=_0x30c4();return _0x3d5d=function(_0x3d5d01,_0x207f58){_0x3d5d01=_0x3d5d01-0xf6;let _0x10c9df=_0x30c470[_0x3d5d01];return _0x10c9df;},_0x3d5d(_0x2640e4,_0x3a5471);}function C(){const _0x1ab7c5=_0x5ed94b;return{'id':p['id'],'type':c[_0x1ab7c5(0x118)][_0x1ab7c5(0x137)],'title':_0x1ab7c5(0xf6),'icon':_0x1ab7c5(0x130)};}const f={[c[_0x5ed94b(0x126)][_0x5ed94b(0xf7)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x59fbf9,_0xd10499,_0x6bfd1a,_0x4c6ec)=>{const _0x1a633c=_0x5ed94b;for(var _0x115306=_0x4c6ec>0x1?void 0x0:_0x4c6ec?T(_0xd10499,_0x6bfd1a):_0xd10499,_0x14f33f=_0x59fbf9[_0x1a633c(0x10c)]-0x1,_0x33bfb4;_0x14f33f>=0x0;_0x14f33f--)(_0x33bfb4=_0x59fbf9[_0x14f33f])&&(_0x115306=_0x33bfb4(_0x115306)||_0x115306);return _0x115306;},m=(_0x50ce41,_0x431abb)=>(_0x2f01da,_0x3b11c0)=>_0x431abb(_0x2f01da,_0x3b11c0,_0x50ce41);let u=class extends i[_0x5ed94b(0xf9)]{constructor(_0x2588c3,_0x197e67){const _0x596249=_0x5ed94b;super(),this[_0x596249(0x10b)]=_0x2588c3,this[_0x596249(0x125)]=_0x197e67,this['_initCommands'](),this[_0x596249(0x132)]();}[_0x5ed94b(0x108)](){const _0x554c3e=_0x5ed94b;[l,p][_0x554c3e(0x131)](_0x187c38=>{const _0x53ad9d=_0x554c3e;this['disposeWithMe'](this[_0x53ad9d(0x10b)]['registerCommand'](_0x187c38));});}['_initMenus'](){const _0x4e18ae=_0x5ed94b;this['_menuManagerService'][_0x4e18ae(0x12d)](f);}};u=y([m(0x0,i[_0x5ed94b(0xff)]),m(0x1,c['IMenuManagerService'])],u);function _0x30c4(){const _0x3c84d1=['toStringTag','ICommandService','_config','merge','menu','289762XkDrFe','importXLSXToUnitId','25288hHeJXc','2707610rrvyOu','Module','_initCommands','1699148TddHZW','add','_commandService','length','exchange-client.operation.import-xlsx','onReady','OPERATION','exchange.upload','DependentOn','search','1076238lBPmVv','setConfig','sheets-exchange-client.operation.exchange','_configService','FolderIcon','MenuItemType','9ilvnTQ','ImportXLSXOperation','IExchangeOperateService','1110xlHjJG','Inject','UniverSheetsExchangeClientPlugin','UNIVER_SHEET','CommandType','IConfigService','50325COVAjA','onStarting','get','_menuManagerService','RibbonStartGroup','DirectExportIcon','sheets-exchange-client.config','Plugin','12105oLWyjx','unit','getOwnPropertyDescriptor','mergeMenu','UniverInstanceType','getMenuHiddenObservable','ExportIcon','forEach','_initMenus','exchange.file','exchange-client.operation.export-xlsx','SUBITEMS','importXLSXToSnapshot','BUTTON','_injector','exchange.download','OTHERS','exportXLSXBySnapshot','Disposable','getCurrentRangeDisable$','ExportXLSXOperation','987YGGusZ','pluginName'];_0x30c4=function(){return _0x3c84d1;};return _0x30c4();}var O=Object['defineProperty'],U=Object[_0x5ed94b(0x12c)],X=(_0x394b3c,_0x89caa2,_0x5c03d8)=>_0x89caa2 in _0x394b3c?O(_0x394b3c,_0x89caa2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c03d8}):_0x394b3c[_0x89caa2]=_0x5c03d8,N=(_0x16de95,_0x519915,_0x280eb2,_0x441102)=>{const _0x4700ce=_0x5ed94b;for(var _0x29619f=_0x441102>0x1?void 0x0:_0x441102?U(_0x519915,_0x280eb2):_0x519915,_0x1bf91b=_0x16de95[_0x4700ce(0x10c)]-0x1,_0x54d6d2;_0x1bf91b>=0x0;_0x1bf91b--)(_0x54d6d2=_0x16de95[_0x1bf91b])&&(_0x29619f=_0x54d6d2(_0x29619f)||_0x29619f);return _0x29619f;},d=(_0x3c9cd1,_0x4690c1)=>(_0x3bf8b7,_0x260c30)=>_0x4690c1(_0x3bf8b7,_0x260c30,_0x3c9cd1),E=(_0x4f4aec,_0x95b582,_0x377d6f)=>X(_0x4f4aec,typeof _0x95b582!='symbol'?_0x95b582+'':_0x95b582,_0x377d6f);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports['UniverSheetsExchangeClientPlugin']=class extends i[_0x5ed94b(0x129)]{constructor(_0x5439fe=h,_0xfbed85,_0x540672){const _0x219900=_0x5ed94b;super(),this[_0x219900(0x100)]=_0x5439fe,this[_0x219900(0x138)]=_0xfbed85,this[_0x219900(0x116)]=_0x540672;const {menu:_0x119657,..._0x56f03d}=i[_0x219900(0x101)]({},h,this[_0x219900(0x100)]);_0x119657&&this[_0x219900(0x116)][_0x219900(0x114)](_0x219900(0x102),_0x119657,{'merge':!0x0}),this['_configService'][_0x219900(0x114)](v,_0x56f03d);}[_0x5ed94b(0x123)](){const _0x2c7f5a=_0x5ed94b;[[u]][_0x2c7f5a(0x131)](_0x2e8ea2=>this['_injector'][_0x2c7f5a(0x10a)](_0x2e8ea2));}[_0x5ed94b(0x10e)](){const _0x790f12=_0x5ed94b;this[_0x790f12(0x138)][_0x790f12(0x124)](u);}},E(exports['UniverSheetsExchangeClientPlugin'],_0x5ed94b(0xfd),L),E(exports[_0x5ed94b(0x11e)],'type',i[_0x5ed94b(0x12e)][_0x5ed94b(0x11f)]),exports['UniverSheetsExchangeClientPlugin']=N([i[_0x5ed94b(0x111)](g['UniverExchangeClientPlugin']),d(0x1,i[_0x5ed94b(0x11d)](i['Injector'])),d(0x2,i[_0x5ed94b(0x121)])],exports[_0x5ed94b(0x11e)]),exports[_0x5ed94b(0xfb)]=p,exports[_0x5ed94b(0x11a)]=l;
1
+ 'use strict';const _0x225c53=_0x8798;(function(_0xb95e97,_0x1252f4){const _0x3af456=_0x8798,_0x1f5fa1=_0xb95e97();while(!![]){try{const _0x14121a=parseInt(_0x3af456(0x12c))/0x1*(-parseInt(_0x3af456(0x13a))/0x2)+-parseInt(_0x3af456(0x131))/0x3+parseInt(_0x3af456(0x14a))/0x4*(parseInt(_0x3af456(0x146))/0x5)+-parseInt(_0x3af456(0x135))/0x6*(parseInt(_0x3af456(0x136))/0x7)+parseInt(_0x3af456(0x12f))/0x8*(parseInt(_0x3af456(0x120))/0x9)+-parseInt(_0x3af456(0x148))/0xa*(-parseInt(_0x3af456(0x134))/0xb)+parseInt(_0x3af456(0x14e))/0xc;if(_0x14121a===_0x1252f4)break;else _0x1f5fa1['push'](_0x1f5fa1['shift']());}catch(_0x13ef4d){_0x1f5fa1['push'](_0x1f5fa1['shift']());}}}(_0x3344,0x3ef2a));Object[_0x225c53(0x142)](exports,Symbol[_0x225c53(0x150)],{'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':_0x225c53(0x139),'type':i[_0x225c53(0x144)][_0x225c53(0x123)],'handler':async _0x213ef3=>{const _0x270225=_0x225c53,_0x30ff36=_0x213ef3['get'](g[_0x270225(0x140)]);return new URLSearchParams(location['search'])[_0x270225(0x133)](_0x270225(0x127))?_0x30ff36['importXLSXToUnitId']():_0x30ff36[_0x270225(0x143)](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i[_0x225c53(0x144)][_0x225c53(0x123)],'handler':async _0x1956b0=>{const _0x5f407f=_0x225c53,_0x117f7c=_0x1956b0[_0x5f407f(0x133)](g[_0x5f407f(0x140)]);return new URLSearchParams(location['search'])[_0x5f407f(0x133)]('unit')?_0x117f7c['exportXLSXByUnitId']():_0x117f7c[_0x5f407f(0x124)](),!0x0;}},v=_0x225c53(0x11d),h={},S=_0x225c53(0x145);function x(_0x902299){const _0x502c1b=_0x225c53;return{'id':S,'type':c[_0x502c1b(0x154)]['SUBITEMS'],'icon':_0x502c1b(0x152),'tooltip':_0x502c1b(0x13f),'hidden$':c[_0x502c1b(0x137)](_0x902299,i[_0x502c1b(0x13d)][_0x502c1b(0x132)]),'disabled$':I['getCurrentRangeDisable$'](_0x902299,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x467ab2=_0x225c53;return{'id':l['id'],'type':c[_0x467ab2(0x154)][_0x467ab2(0x14b)],'title':_0x467ab2(0x116),'icon':_0x467ab2(0x118)};}function _0x3344(){const _0xe67eed=['26008AeDGIv','exchange.download','1177884LjDZrV','UNIVER_SHEET','get','7997fXdlvC','1365942WBLgzv','7azglFU','getMenuHiddenObservable','IConfigService','exchange-client.operation.import-xlsx','22468seCWGE','add','mergeMenu','UniverInstanceType','symbol','exchange.file','IExchangeOperateService','menu','defineProperty','importXLSXToSnapshot','CommandType','sheets-exchange-client.operation.exchange','5BBqFFx','_menuManagerService','240KwUhvB','forEach','1404056adItNJ','BUTTON','UniverSheetsExchangeClientPlugin','setConfig','2765184FnLnxE','OTHERS','toStringTag','onStarting','DirectExportIcon','type','MenuItemType','RibbonStartGroup','Inject','exchange.upload','_config','FolderIcon','_injector','ImportXLSXOperation','pluginName','UniverExchangeClientPlugin','sheets-exchange-client.config','ExportIcon','IMenuManagerService','1395SXnrlI','_initCommands','_commandService','OPERATION','exportXLSXBySnapshot','Injector','ICommandService','unit','_initMenus','Disposable','getOwnPropertyDescriptor','_configService','20uDDzCL','onReady','DependentOn'];_0x3344=function(){return _0xe67eed;};return _0x3344();}function C(){const _0x171862=_0x225c53;return{'id':p['id'],'type':c[_0x171862(0x154)][_0x171862(0x14b)],'title':_0x171862(0x130),'icon':_0x171862(0x11e)};}function _0x8798(_0x2761a0,_0x5d65d1){const _0x334430=_0x3344();return _0x8798=function(_0x87982d,_0x5000af){_0x87982d=_0x87982d-0x116;let _0x57a723=_0x334430[_0x87982d];return _0x57a723;},_0x8798(_0x2761a0,_0x5d65d1);}const f={[c[_0x225c53(0x155)][_0x225c53(0x14f)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x225c53(0x12a)],y=(_0x3fe8b0,_0x2ce0d9,_0xdd221a,_0x2dfca5)=>{for(var _0x43d08f=_0x2dfca5>0x1?void 0x0:_0x2dfca5?T(_0x2ce0d9,_0xdd221a):_0x2ce0d9,_0x5408e6=_0x3fe8b0['length']-0x1,_0x2a28c9;_0x5408e6>=0x0;_0x5408e6--)(_0x2a28c9=_0x3fe8b0[_0x5408e6])&&(_0x43d08f=_0x2a28c9(_0x43d08f)||_0x43d08f);return _0x43d08f;},m=(_0x36d02f,_0x2478c7)=>(_0x41fd8d,_0x53cb73)=>_0x2478c7(_0x41fd8d,_0x53cb73,_0x36d02f);let u=class extends i[_0x225c53(0x129)]{constructor(_0x373d9a,_0x4c77bc){const _0x323c36=_0x225c53;super(),this[_0x323c36(0x122)]=_0x373d9a,this[_0x323c36(0x147)]=_0x4c77bc,this[_0x323c36(0x121)](),this[_0x323c36(0x128)]();}[_0x225c53(0x121)](){const _0x3cd49c=_0x225c53;[l,p][_0x3cd49c(0x149)](_0x8f571f=>{const _0x50379d=_0x3cd49c;this['disposeWithMe'](this[_0x50379d(0x122)]['registerCommand'](_0x8f571f));});}[_0x225c53(0x128)](){const _0x3d4bfb=_0x225c53;this['_menuManagerService'][_0x3d4bfb(0x13c)](f);}};u=y([m(0x0,i[_0x225c53(0x126)]),m(0x1,c[_0x225c53(0x11f)])],u);var O=Object[_0x225c53(0x142)],U=Object[_0x225c53(0x12a)],X=(_0x28e9b8,_0xbba831,_0x31edb3)=>_0xbba831 in _0x28e9b8?O(_0x28e9b8,_0xbba831,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x31edb3}):_0x28e9b8[_0xbba831]=_0x31edb3,N=(_0x3f1693,_0x28b9cf,_0x37910f,_0x46b872)=>{for(var _0x486894=_0x46b872>0x1?void 0x0:_0x46b872?U(_0x28b9cf,_0x37910f):_0x28b9cf,_0x3766c4=_0x3f1693['length']-0x1,_0x1ce298;_0x3766c4>=0x0;_0x3766c4--)(_0x1ce298=_0x3f1693[_0x3766c4])&&(_0x486894=_0x1ce298(_0x486894)||_0x486894);return _0x486894;},d=(_0x559914,_0x188959)=>(_0x3af9a9,_0x36077a)=>_0x188959(_0x3af9a9,_0x36077a,_0x559914),E=(_0x44510b,_0x176a3b,_0x5e0fbd)=>X(_0x44510b,typeof _0x176a3b!=_0x225c53(0x13e)?_0x176a3b+'':_0x176a3b,_0x5e0fbd);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports[_0x225c53(0x14c)]=class extends i['Plugin']{constructor(_0x28a7f3=h,_0x41eb78,_0x2d4a62){const _0x5d9412=_0x225c53;super(),this[_0x5d9412(0x117)]=_0x28a7f3,this['_injector']=_0x41eb78,this['_configService']=_0x2d4a62;const {menu:_0x3ee78d,..._0x32df59}=i['merge']({},h,this[_0x5d9412(0x117)]);_0x3ee78d&&this[_0x5d9412(0x12b)][_0x5d9412(0x14d)](_0x5d9412(0x141),_0x3ee78d,{'merge':!0x0}),this[_0x5d9412(0x12b)]['setConfig'](v,_0x32df59);}[_0x225c53(0x151)](){const _0x2db3b3=_0x225c53;[[u]][_0x2db3b3(0x149)](_0x120b1a=>this[_0x2db3b3(0x119)][_0x2db3b3(0x13b)](_0x120b1a));}[_0x225c53(0x12d)](){const _0x3f8d84=_0x225c53;this[_0x3f8d84(0x119)][_0x3f8d84(0x133)](u);}},E(exports[_0x225c53(0x14c)],_0x225c53(0x11b),L),E(exports[_0x225c53(0x14c)],_0x225c53(0x153),i[_0x225c53(0x13d)][_0x225c53(0x132)]),exports[_0x225c53(0x14c)]=N([i[_0x225c53(0x12e)](g[_0x225c53(0x11c)]),d(0x1,i[_0x225c53(0x156)](i[_0x225c53(0x125)])),d(0x2,i[_0x225c53(0x138)])],exports['UniverSheetsExchangeClientPlugin']),exports['ExportXLSXOperation']=p,exports[_0x225c53(0x11a)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3d206d=_0x5abb;function _0x529c(){const _0x4b6219=['_commandService','ExportIcon','get','28lOxonY','_config','369hAZGzY','onStarting','forEach','522UxTPPy','555102sUBiqw','5642aRHuUT','_initMenus','3833543RRRsIy','menu','12548tdeRQO','add','_injector','2288985BAiClM','6rwDqfE','unit','DirectExportIcon','pluginName','getOwnPropertyDescriptor','_configService','9942119hBKqOO','length','type','12HFKjhh','search','exportXLSXByUnitId','BUTTON','disposeWithMe','UNIVER_SHEET','130AJkeJA','importXLSXToSnapshot','3546322NqWuKt','8ozzvBD','sheets-exchange-client.config','_menuManagerService','_initCommands','defineProperty','onReady','OTHERS','OPERATION','setConfig','importXLSXToUnitId'];_0x529c=function(){return _0x4b6219;};return _0x529c();}(function(_0x4ba37a,_0x1d0fdf){const _0x4e72d8=_0x5abb,_0x471cb3=_0x4ba37a();while(!![]){try{const _0x48d861=parseInt(_0x4e72d8(0x89))/0x1*(-parseInt(_0x4e72d8(0x8e))/0x2)+-parseInt(_0x4e72d8(0x8c))/0x3*(parseInt(_0x4e72d8(0x92))/0x4)+-parseInt(_0x4e72d8(0x95))/0x5*(-parseInt(_0x4e72d8(0x96))/0x6)+parseInt(_0x4e72d8(0x90))/0x7*(parseInt(_0x4e72d8(0x7a))/0x8)+parseInt(_0x4e72d8(0x8d))/0x9*(parseInt(_0x4e72d8(0x77))/0xa)+parseInt(_0x4e72d8(0x9c))/0xb*(parseInt(_0x4e72d8(0x71))/0xc)+-parseInt(_0x4e72d8(0x79))/0xd*(parseInt(_0x4e72d8(0x87))/0xe);if(_0x48d861===_0x1d0fdf)break;else _0x471cb3['push'](_0x471cb3['shift']());}catch(_0x454159){_0x471cb3['push'](_0x471cb3['shift']());}}}(_0x529c,0x8d49a));import{IExchangeOperateService as _0x2094b9,UniverExchangeClientPlugin as _0x505b29}from'@univerjs-pro/exchange-client';import{CommandType as _0x46f36c,UniverInstanceType as _0x53dccb,Disposable as _0x175cf5,ICommandService as _0x1b9aff,DependentOn as _0x5725ad,Inject as _0x442815,Injector as _0x57f3db,IConfigService as _0x5ae4e4,Plugin as _0x5e1268,merge as _0x117084}from'@univerjs/core';import{MenuItemType as _0xfaa2df,getMenuHiddenObservable as _0x5e8991,RibbonStartGroup as _0x2638a9,IMenuManagerService as _0x2bc2ff}from'@univerjs/ui';import{WorkbookExportPermission as _0x73d059}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x4ec167}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x46f36c['OPERATION'],'handler':async _0x241c76=>{const _0x2600e6=_0x5abb,_0x153dad=_0x241c76['get'](_0x2094b9);return new URLSearchParams(location[_0x2600e6(0x72)])[_0x2600e6(0x86)]('unit')?_0x153dad[_0x2600e6(0x83)]():_0x153dad[_0x2600e6(0x78)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x46f36c[_0x3d206d(0x81)],'handler':async _0x21fad1=>{const _0x337758=_0x3d206d,_0x15d7b7=_0x21fad1['get'](_0x2094b9);return new URLSearchParams(location[_0x337758(0x72)])[_0x337758(0x86)](_0x337758(0x97))?_0x15d7b7[_0x337758(0x73)]():_0x15d7b7['exportXLSXBySnapshot'](),!0x0;}},H=_0x3d206d(0x7b),l={},S='sheets-exchange-client.operation.exchange';function R(_0x191da3){const _0x103cce=_0x3d206d;return{'id':S,'type':_0xfaa2df['SUBITEMS'],'icon':_0x103cce(0x98),'tooltip':'exchange.file','hidden$':_0x5e8991(_0x191da3,_0x53dccb[_0x103cce(0x76)]),'disabled$':_0x4ec167(_0x191da3,{'workbookTypes':[_0x73d059]})};}function w(){const _0x2b64df=_0x3d206d;return{'id':p['id'],'type':_0xfaa2df[_0x2b64df(0x74)],'title':'exchange.upload','icon':'FolderIcon'};}function D(){const _0x2b67ac=_0x3d206d;return{'id':u['id'],'type':_0xfaa2df['BUTTON'],'title':'exchange.download','icon':_0x2b67ac(0x85)};}const F={[_0x2638a9[_0x3d206d(0x80)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};function _0x5abb(_0x1c4b66,_0x243c12){const _0x529c57=_0x529c();return _0x5abb=function(_0x5abbf0,_0x490746){_0x5abbf0=_0x5abbf0-0x71;let _0x5a3b13=_0x529c57[_0x5abbf0];return _0x5a3b13;},_0x5abb(_0x1c4b66,_0x243c12);}var G=Object[_0x3d206d(0x9a)],A=(_0x2ff1a1,_0x1a2d21,_0x452680,_0x58ed9e)=>{const _0x908069=_0x3d206d;for(var _0x3f5e79=_0x58ed9e>0x1?void 0x0:_0x58ed9e?G(_0x1a2d21,_0x452680):_0x1a2d21,_0x361018=_0x2ff1a1[_0x908069(0x9d)]-0x1,_0x25259b;_0x361018>=0x0;_0x361018--)(_0x25259b=_0x2ff1a1[_0x361018])&&(_0x3f5e79=_0x25259b(_0x3f5e79)||_0x3f5e79);return _0x3f5e79;},d=(_0x5a7ad8,_0x3b754b)=>(_0x2b74be,_0x59e498)=>_0x3b754b(_0x2b74be,_0x59e498,_0x5a7ad8);let c=class extends _0x175cf5{constructor(_0x5db76a,_0x2db777){const _0x1f28ea=_0x3d206d;super(),this[_0x1f28ea(0x84)]=_0x5db76a,this['_menuManagerService']=_0x2db777,this[_0x1f28ea(0x7d)](),this[_0x1f28ea(0x8f)]();}[_0x3d206d(0x7d)](){const _0x367975=_0x3d206d;[p,u][_0x367975(0x8b)](_0x22e11b=>{const _0x11f09a=_0x367975;this[_0x11f09a(0x75)](this[_0x11f09a(0x84)]['registerCommand'](_0x22e11b));});}[_0x3d206d(0x8f)](){const _0x39165a=_0x3d206d;this[_0x39165a(0x7c)]['mergeMenu'](F);}};c=A([d(0x0,_0x1b9aff),d(0x1,_0x2bc2ff)],c);var j=Object[_0x3d206d(0x7e)],B=Object[_0x3d206d(0x9a)],$=(_0x57a5d5,_0x357ad2,_0x43c044)=>_0x357ad2 in _0x57a5d5?j(_0x57a5d5,_0x357ad2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43c044}):_0x57a5d5[_0x357ad2]=_0x43c044,V=(_0x5d22b5,_0x27f8a8,_0x2ee1a7,_0x56d952)=>{const _0x23913c=_0x3d206d;for(var _0x233258=_0x56d952>0x1?void 0x0:_0x56d952?B(_0x27f8a8,_0x2ee1a7):_0x27f8a8,_0x1201cc=_0x5d22b5[_0x23913c(0x9d)]-0x1,_0x76c9eb;_0x1201cc>=0x0;_0x1201cc--)(_0x76c9eb=_0x5d22b5[_0x1201cc])&&(_0x233258=_0x76c9eb(_0x233258)||_0x233258);return _0x233258;},_=(_0x1888d6,_0x122b2d)=>(_0x48a644,_0x3986ef)=>_0x122b2d(_0x48a644,_0x3986ef,_0x1888d6),I=(_0x19e5ad,_0x197a94,_0x2c4742)=>$(_0x19e5ad,typeof _0x197a94!='symbol'?_0x197a94+'':_0x197a94,_0x2c4742);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x5e1268{constructor(_0x3797d9=l,_0x50d07a,_0x33cd8c){const _0xa007ca=_0x3d206d;super(),this['_config']=_0x3797d9,this['_injector']=_0x50d07a,this[_0xa007ca(0x9b)]=_0x33cd8c;const {menu:_0xf99026,..._0x276fb3}=_0x117084({},l,this[_0xa007ca(0x88)]);_0xf99026&&this['_configService'][_0xa007ca(0x82)](_0xa007ca(0x91),_0xf99026,{'merge':!0x0}),this[_0xa007ca(0x9b)][_0xa007ca(0x82)](H,_0x276fb3);}[_0x3d206d(0x8a)](){const _0x581695=_0x3d206d;[[c]]['forEach'](_0x443e57=>this['_injector'][_0x581695(0x93)](_0x443e57));}[_0x3d206d(0x7f)](){const _0x56401a=_0x3d206d;this[_0x56401a(0x94)][_0x56401a(0x86)](c);}};I(s,_0x3d206d(0x99),W),I(s,_0x3d206d(0x9e),_0x53dccb['UNIVER_SHEET']),s=V([_0x5725ad(_0x505b29),_(0x1,_0x442815(_0x57f3db)),_(0x2,_0x5ae4e4)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x46516d=_0x1d6b;(function(_0x13049c,_0x2aa5e1){const _0x24ba6f=_0x1d6b,_0x22df04=_0x13049c();while(!![]){try{const _0x75adff=-parseInt(_0x24ba6f(0x86))/0x1+parseInt(_0x24ba6f(0xa2))/0x2+-parseInt(_0x24ba6f(0x81))/0x3+parseInt(_0x24ba6f(0x99))/0x4*(parseInt(_0x24ba6f(0x93))/0x5)+parseInt(_0x24ba6f(0x77))/0x6+-parseInt(_0x24ba6f(0x9d))/0x7*(-parseInt(_0x24ba6f(0x87))/0x8)+-parseInt(_0x24ba6f(0x73))/0x9*(parseInt(_0x24ba6f(0x96))/0xa);if(_0x75adff===_0x2aa5e1)break;else _0x22df04['push'](_0x22df04['shift']());}catch(_0x399538){_0x22df04['push'](_0x22df04['shift']());}}}(_0x5a55,0x34888));import{IExchangeOperateService as _0x2351f0,UniverExchangeClientPlugin as _0x29df53}from'@univerjs-pro/exchange-client';import{CommandType as _0xec4b91,UniverInstanceType as _0x3f0a8d,Disposable as _0x8ca61c,ICommandService as _0x3d3c78,DependentOn as _0x35f6dc,Inject as _0x4a4fd7,Injector as _0x549174,IConfigService as _0x217e11,Plugin as _0x5e433a,merge as _0x1defc3}from'@univerjs/core';import{MenuItemType as _0x207661,getMenuHiddenObservable as _0x49372d,RibbonStartGroup as _0x3bc4e9,IMenuManagerService as _0x5543e3}from'@univerjs/ui';import{WorkbookExportPermission as _0x5eabd1}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x561f7f}from'@univerjs/sheets-ui';const p={'id':_0x46516d(0x91),'type':_0xec4b91['OPERATION'],'handler':async _0x2aa067=>{const _0x3e824a=_0x46516d,_0x214fd6=_0x2aa067[_0x3e824a(0x84)](_0x2351f0);return new URLSearchParams(location['search'])[_0x3e824a(0x84)](_0x3e824a(0x74))?_0x214fd6[_0x3e824a(0x8f)]():_0x214fd6[_0x3e824a(0x85)](),!0x0;}},u={'id':_0x46516d(0x83),'type':_0xec4b91[_0x46516d(0x76)],'handler':async _0x37eb32=>{const _0x4cf278=_0x46516d,_0x17fa6d=_0x37eb32[_0x4cf278(0x84)](_0x2351f0);return new URLSearchParams(location['search'])[_0x4cf278(0x84)](_0x4cf278(0x74))?_0x17fa6d['exportXLSXByUnitId']():_0x17fa6d[_0x4cf278(0x7c)](),!0x0;}},H=_0x46516d(0x8b),l={},S=_0x46516d(0x79);function R(_0x3581c5){const _0x2eecaf=_0x46516d;return{'id':S,'type':_0x207661[_0x2eecaf(0x9e)],'icon':_0x2eecaf(0x8c),'tooltip':_0x2eecaf(0x80),'hidden$':_0x49372d(_0x3581c5,_0x3f0a8d[_0x2eecaf(0x9a)]),'disabled$':_0x561f7f(_0x3581c5,{'workbookTypes':[_0x5eabd1]})};}function w(){const _0x510d3a=_0x46516d;return{'id':p['id'],'type':_0x207661[_0x510d3a(0x8a)],'title':_0x510d3a(0x90),'icon':_0x510d3a(0x94)};}function _0x5a55(){const _0x253571=['defineProperty','exchange.file','12699vpUAlr','mergeMenu','exchange-client.operation.export-xlsx','get','importXLSXToSnapshot','424591VEboEJ','116728jsqxYN','_commandService','_injector','BUTTON','sheets-exchange-client.config','DirectExportIcon','length','getOwnPropertyDescriptor','importXLSXToUnitId','exchange.upload','exchange-client.operation.import-xlsx','onReady','1127215ciBOhM','FolderIcon','setConfig','10dbsxtJ','disposeWithMe','_configService','4lRtoad','UNIVER_SHEET','pluginName','_config','119FUxwgp','SUBITEMS','_initCommands','SHEET_EXCHANGE_CLIENT_PLUGIN','ExportIcon','180336cWPTlJ','forEach','1709091QmaETY','unit','registerCommand','OPERATION','1621446wdaNGM','_menuManagerService','sheets-exchange-client.operation.exchange','exchange.download','_initMenus','exportXLSXBySnapshot','OTHERS','symbol'];_0x5a55=function(){return _0x253571;};return _0x5a55();}function D(){const _0x414d3e=_0x46516d;return{'id':u['id'],'type':_0x207661['BUTTON'],'title':_0x414d3e(0x7a),'icon':_0x414d3e(0xa1)};}const F={[_0x3bc4e9[_0x46516d(0x7d)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x46516d(0x8e)],A=(_0x2658ec,_0x1950f9,_0x386137,_0x589c9c)=>{const _0x45d512=_0x46516d;for(var _0x473c72=_0x589c9c>0x1?void 0x0:_0x589c9c?G(_0x1950f9,_0x386137):_0x1950f9,_0x58d6c6=_0x2658ec[_0x45d512(0x8d)]-0x1,_0x2bbfe1;_0x58d6c6>=0x0;_0x58d6c6--)(_0x2bbfe1=_0x2658ec[_0x58d6c6])&&(_0x473c72=_0x2bbfe1(_0x473c72)||_0x473c72);return _0x473c72;},d=(_0x11215d,_0x4a22be)=>(_0x215096,_0x6adff)=>_0x4a22be(_0x215096,_0x6adff,_0x11215d);let c=class extends _0x8ca61c{constructor(_0x2fc902,_0x18d413){const _0x4123d0=_0x46516d;super(),this[_0x4123d0(0x88)]=_0x2fc902,this[_0x4123d0(0x78)]=_0x18d413,this[_0x4123d0(0x9f)](),this['_initMenus']();}[_0x46516d(0x9f)](){const _0x23e740=_0x46516d;[p,u][_0x23e740(0x72)](_0x163b65=>{const _0x3eb2a7=_0x23e740;this[_0x3eb2a7(0x97)](this[_0x3eb2a7(0x88)][_0x3eb2a7(0x75)](_0x163b65));});}[_0x46516d(0x7b)](){const _0x34fcf5=_0x46516d;this[_0x34fcf5(0x78)][_0x34fcf5(0x82)](F);}};c=A([d(0x0,_0x3d3c78),d(0x1,_0x5543e3)],c);var j=Object[_0x46516d(0x7f)],B=Object[_0x46516d(0x8e)],$=(_0x530718,_0x1007ac,_0x5174f4)=>_0x1007ac in _0x530718?j(_0x530718,_0x1007ac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5174f4}):_0x530718[_0x1007ac]=_0x5174f4,V=(_0xce364e,_0x5e5e87,_0x37a6f1,_0x62e9e1)=>{for(var _0x5ce13d=_0x62e9e1>0x1?void 0x0:_0x62e9e1?B(_0x5e5e87,_0x37a6f1):_0x5e5e87,_0x5cad16=_0xce364e['length']-0x1,_0x18f763;_0x5cad16>=0x0;_0x5cad16--)(_0x18f763=_0xce364e[_0x5cad16])&&(_0x5ce13d=_0x18f763(_0x5ce13d)||_0x5ce13d);return _0x5ce13d;},_=(_0x283dae,_0x4d13a8)=>(_0x4f5039,_0x5205b3)=>_0x4d13a8(_0x4f5039,_0x5205b3,_0x283dae),I=(_0x31aecb,_0x293614,_0x34d16b)=>$(_0x31aecb,typeof _0x293614!=_0x46516d(0x7e)?_0x293614+'':_0x293614,_0x34d16b);function _0x1d6b(_0xd49d68,_0x407156){const _0x5a554a=_0x5a55();return _0x1d6b=function(_0x1d6bc2,_0x338959){_0x1d6bc2=_0x1d6bc2-0x72;let _0x1e0ed7=_0x5a554a[_0x1d6bc2];return _0x1e0ed7;},_0x1d6b(_0xd49d68,_0x407156);}const W=_0x46516d(0xa0);let s=class extends _0x5e433a{constructor(_0x4df0a5=l,_0x4409b0,_0x3242c9){const _0xa30c98=_0x46516d;super(),this[_0xa30c98(0x9c)]=_0x4df0a5,this[_0xa30c98(0x89)]=_0x4409b0,this[_0xa30c98(0x98)]=_0x3242c9;const {menu:_0x6cce6a,..._0x4c5c43}=_0x1defc3({},l,this[_0xa30c98(0x9c)]);_0x6cce6a&&this[_0xa30c98(0x98)]['setConfig']('menu',_0x6cce6a,{'merge':!0x0}),this[_0xa30c98(0x98)][_0xa30c98(0x95)](H,_0x4c5c43);}['onStarting'](){[[c]]['forEach'](_0x1ec40b=>this['_injector']['add'](_0x1ec40b));}[_0x46516d(0x92)](){const _0x18fe57=_0x46516d;this['_injector'][_0x18fe57(0x84)](c);}};I(s,_0x46516d(0x9b),W),I(s,'type',_0x3f0a8d['UNIVER_SHEET']),s=V([_0x35f6dc(_0x29df53),_(0x1,_0x4a4fd7(_0x549174)),_(0x2,_0x217e11)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3d206d=_0x5abb;function _0x529c(){const _0x4b6219=['_commandService','ExportIcon','get','28lOxonY','_config','369hAZGzY','onStarting','forEach','522UxTPPy','555102sUBiqw','5642aRHuUT','_initMenus','3833543RRRsIy','menu','12548tdeRQO','add','_injector','2288985BAiClM','6rwDqfE','unit','DirectExportIcon','pluginName','getOwnPropertyDescriptor','_configService','9942119hBKqOO','length','type','12HFKjhh','search','exportXLSXByUnitId','BUTTON','disposeWithMe','UNIVER_SHEET','130AJkeJA','importXLSXToSnapshot','3546322NqWuKt','8ozzvBD','sheets-exchange-client.config','_menuManagerService','_initCommands','defineProperty','onReady','OTHERS','OPERATION','setConfig','importXLSXToUnitId'];_0x529c=function(){return _0x4b6219;};return _0x529c();}(function(_0x4ba37a,_0x1d0fdf){const _0x4e72d8=_0x5abb,_0x471cb3=_0x4ba37a();while(!![]){try{const _0x48d861=parseInt(_0x4e72d8(0x89))/0x1*(-parseInt(_0x4e72d8(0x8e))/0x2)+-parseInt(_0x4e72d8(0x8c))/0x3*(parseInt(_0x4e72d8(0x92))/0x4)+-parseInt(_0x4e72d8(0x95))/0x5*(-parseInt(_0x4e72d8(0x96))/0x6)+parseInt(_0x4e72d8(0x90))/0x7*(parseInt(_0x4e72d8(0x7a))/0x8)+parseInt(_0x4e72d8(0x8d))/0x9*(parseInt(_0x4e72d8(0x77))/0xa)+parseInt(_0x4e72d8(0x9c))/0xb*(parseInt(_0x4e72d8(0x71))/0xc)+-parseInt(_0x4e72d8(0x79))/0xd*(parseInt(_0x4e72d8(0x87))/0xe);if(_0x48d861===_0x1d0fdf)break;else _0x471cb3['push'](_0x471cb3['shift']());}catch(_0x454159){_0x471cb3['push'](_0x471cb3['shift']());}}}(_0x529c,0x8d49a));import{IExchangeOperateService as _0x2094b9,UniverExchangeClientPlugin as _0x505b29}from'@univerjs-pro/exchange-client';import{CommandType as _0x46f36c,UniverInstanceType as _0x53dccb,Disposable as _0x175cf5,ICommandService as _0x1b9aff,DependentOn as _0x5725ad,Inject as _0x442815,Injector as _0x57f3db,IConfigService as _0x5ae4e4,Plugin as _0x5e1268,merge as _0x117084}from'@univerjs/core';import{MenuItemType as _0xfaa2df,getMenuHiddenObservable as _0x5e8991,RibbonStartGroup as _0x2638a9,IMenuManagerService as _0x2bc2ff}from'@univerjs/ui';import{WorkbookExportPermission as _0x73d059}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x4ec167}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x46f36c['OPERATION'],'handler':async _0x241c76=>{const _0x2600e6=_0x5abb,_0x153dad=_0x241c76['get'](_0x2094b9);return new URLSearchParams(location[_0x2600e6(0x72)])[_0x2600e6(0x86)]('unit')?_0x153dad[_0x2600e6(0x83)]():_0x153dad[_0x2600e6(0x78)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x46f36c[_0x3d206d(0x81)],'handler':async _0x21fad1=>{const _0x337758=_0x3d206d,_0x15d7b7=_0x21fad1['get'](_0x2094b9);return new URLSearchParams(location[_0x337758(0x72)])[_0x337758(0x86)](_0x337758(0x97))?_0x15d7b7[_0x337758(0x73)]():_0x15d7b7['exportXLSXBySnapshot'](),!0x0;}},H=_0x3d206d(0x7b),l={},S='sheets-exchange-client.operation.exchange';function R(_0x191da3){const _0x103cce=_0x3d206d;return{'id':S,'type':_0xfaa2df['SUBITEMS'],'icon':_0x103cce(0x98),'tooltip':'exchange.file','hidden$':_0x5e8991(_0x191da3,_0x53dccb[_0x103cce(0x76)]),'disabled$':_0x4ec167(_0x191da3,{'workbookTypes':[_0x73d059]})};}function w(){const _0x2b64df=_0x3d206d;return{'id':p['id'],'type':_0xfaa2df[_0x2b64df(0x74)],'title':'exchange.upload','icon':'FolderIcon'};}function D(){const _0x2b67ac=_0x3d206d;return{'id':u['id'],'type':_0xfaa2df['BUTTON'],'title':'exchange.download','icon':_0x2b67ac(0x85)};}const F={[_0x2638a9[_0x3d206d(0x80)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};function _0x5abb(_0x1c4b66,_0x243c12){const _0x529c57=_0x529c();return _0x5abb=function(_0x5abbf0,_0x490746){_0x5abbf0=_0x5abbf0-0x71;let _0x5a3b13=_0x529c57[_0x5abbf0];return _0x5a3b13;},_0x5abb(_0x1c4b66,_0x243c12);}var G=Object[_0x3d206d(0x9a)],A=(_0x2ff1a1,_0x1a2d21,_0x452680,_0x58ed9e)=>{const _0x908069=_0x3d206d;for(var _0x3f5e79=_0x58ed9e>0x1?void 0x0:_0x58ed9e?G(_0x1a2d21,_0x452680):_0x1a2d21,_0x361018=_0x2ff1a1[_0x908069(0x9d)]-0x1,_0x25259b;_0x361018>=0x0;_0x361018--)(_0x25259b=_0x2ff1a1[_0x361018])&&(_0x3f5e79=_0x25259b(_0x3f5e79)||_0x3f5e79);return _0x3f5e79;},d=(_0x5a7ad8,_0x3b754b)=>(_0x2b74be,_0x59e498)=>_0x3b754b(_0x2b74be,_0x59e498,_0x5a7ad8);let c=class extends _0x175cf5{constructor(_0x5db76a,_0x2db777){const _0x1f28ea=_0x3d206d;super(),this[_0x1f28ea(0x84)]=_0x5db76a,this['_menuManagerService']=_0x2db777,this[_0x1f28ea(0x7d)](),this[_0x1f28ea(0x8f)]();}[_0x3d206d(0x7d)](){const _0x367975=_0x3d206d;[p,u][_0x367975(0x8b)](_0x22e11b=>{const _0x11f09a=_0x367975;this[_0x11f09a(0x75)](this[_0x11f09a(0x84)]['registerCommand'](_0x22e11b));});}[_0x3d206d(0x8f)](){const _0x39165a=_0x3d206d;this[_0x39165a(0x7c)]['mergeMenu'](F);}};c=A([d(0x0,_0x1b9aff),d(0x1,_0x2bc2ff)],c);var j=Object[_0x3d206d(0x7e)],B=Object[_0x3d206d(0x9a)],$=(_0x57a5d5,_0x357ad2,_0x43c044)=>_0x357ad2 in _0x57a5d5?j(_0x57a5d5,_0x357ad2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43c044}):_0x57a5d5[_0x357ad2]=_0x43c044,V=(_0x5d22b5,_0x27f8a8,_0x2ee1a7,_0x56d952)=>{const _0x23913c=_0x3d206d;for(var _0x233258=_0x56d952>0x1?void 0x0:_0x56d952?B(_0x27f8a8,_0x2ee1a7):_0x27f8a8,_0x1201cc=_0x5d22b5[_0x23913c(0x9d)]-0x1,_0x76c9eb;_0x1201cc>=0x0;_0x1201cc--)(_0x76c9eb=_0x5d22b5[_0x1201cc])&&(_0x233258=_0x76c9eb(_0x233258)||_0x233258);return _0x233258;},_=(_0x1888d6,_0x122b2d)=>(_0x48a644,_0x3986ef)=>_0x122b2d(_0x48a644,_0x3986ef,_0x1888d6),I=(_0x19e5ad,_0x197a94,_0x2c4742)=>$(_0x19e5ad,typeof _0x197a94!='symbol'?_0x197a94+'':_0x197a94,_0x2c4742);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x5e1268{constructor(_0x3797d9=l,_0x50d07a,_0x33cd8c){const _0xa007ca=_0x3d206d;super(),this['_config']=_0x3797d9,this['_injector']=_0x50d07a,this[_0xa007ca(0x9b)]=_0x33cd8c;const {menu:_0xf99026,..._0x276fb3}=_0x117084({},l,this[_0xa007ca(0x88)]);_0xf99026&&this['_configService'][_0xa007ca(0x82)](_0xa007ca(0x91),_0xf99026,{'merge':!0x0}),this[_0xa007ca(0x9b)][_0xa007ca(0x82)](H,_0x276fb3);}[_0x3d206d(0x8a)](){const _0x581695=_0x3d206d;[[c]]['forEach'](_0x443e57=>this['_injector'][_0x581695(0x93)](_0x443e57));}[_0x3d206d(0x7f)](){const _0x56401a=_0x3d206d;this[_0x56401a(0x94)][_0x56401a(0x86)](c);}};I(s,_0x3d206d(0x99),W),I(s,_0x3d206d(0x9e),_0x53dccb['UNIVER_SHEET']),s=V([_0x5725ad(_0x505b29),_(0x1,_0x442815(_0x57f3db)),_(0x2,_0x5ae4e4)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x46516d=_0x1d6b;(function(_0x13049c,_0x2aa5e1){const _0x24ba6f=_0x1d6b,_0x22df04=_0x13049c();while(!![]){try{const _0x75adff=-parseInt(_0x24ba6f(0x86))/0x1+parseInt(_0x24ba6f(0xa2))/0x2+-parseInt(_0x24ba6f(0x81))/0x3+parseInt(_0x24ba6f(0x99))/0x4*(parseInt(_0x24ba6f(0x93))/0x5)+parseInt(_0x24ba6f(0x77))/0x6+-parseInt(_0x24ba6f(0x9d))/0x7*(-parseInt(_0x24ba6f(0x87))/0x8)+-parseInt(_0x24ba6f(0x73))/0x9*(parseInt(_0x24ba6f(0x96))/0xa);if(_0x75adff===_0x2aa5e1)break;else _0x22df04['push'](_0x22df04['shift']());}catch(_0x399538){_0x22df04['push'](_0x22df04['shift']());}}}(_0x5a55,0x34888));import{IExchangeOperateService as _0x2351f0,UniverExchangeClientPlugin as _0x29df53}from'@univerjs-pro/exchange-client';import{CommandType as _0xec4b91,UniverInstanceType as _0x3f0a8d,Disposable as _0x8ca61c,ICommandService as _0x3d3c78,DependentOn as _0x35f6dc,Inject as _0x4a4fd7,Injector as _0x549174,IConfigService as _0x217e11,Plugin as _0x5e433a,merge as _0x1defc3}from'@univerjs/core';import{MenuItemType as _0x207661,getMenuHiddenObservable as _0x49372d,RibbonStartGroup as _0x3bc4e9,IMenuManagerService as _0x5543e3}from'@univerjs/ui';import{WorkbookExportPermission as _0x5eabd1}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x561f7f}from'@univerjs/sheets-ui';const p={'id':_0x46516d(0x91),'type':_0xec4b91['OPERATION'],'handler':async _0x2aa067=>{const _0x3e824a=_0x46516d,_0x214fd6=_0x2aa067[_0x3e824a(0x84)](_0x2351f0);return new URLSearchParams(location['search'])[_0x3e824a(0x84)](_0x3e824a(0x74))?_0x214fd6[_0x3e824a(0x8f)]():_0x214fd6[_0x3e824a(0x85)](),!0x0;}},u={'id':_0x46516d(0x83),'type':_0xec4b91[_0x46516d(0x76)],'handler':async _0x37eb32=>{const _0x4cf278=_0x46516d,_0x17fa6d=_0x37eb32[_0x4cf278(0x84)](_0x2351f0);return new URLSearchParams(location['search'])[_0x4cf278(0x84)](_0x4cf278(0x74))?_0x17fa6d['exportXLSXByUnitId']():_0x17fa6d[_0x4cf278(0x7c)](),!0x0;}},H=_0x46516d(0x8b),l={},S=_0x46516d(0x79);function R(_0x3581c5){const _0x2eecaf=_0x46516d;return{'id':S,'type':_0x207661[_0x2eecaf(0x9e)],'icon':_0x2eecaf(0x8c),'tooltip':_0x2eecaf(0x80),'hidden$':_0x49372d(_0x3581c5,_0x3f0a8d[_0x2eecaf(0x9a)]),'disabled$':_0x561f7f(_0x3581c5,{'workbookTypes':[_0x5eabd1]})};}function w(){const _0x510d3a=_0x46516d;return{'id':p['id'],'type':_0x207661[_0x510d3a(0x8a)],'title':_0x510d3a(0x90),'icon':_0x510d3a(0x94)};}function _0x5a55(){const _0x253571=['defineProperty','exchange.file','12699vpUAlr','mergeMenu','exchange-client.operation.export-xlsx','get','importXLSXToSnapshot','424591VEboEJ','116728jsqxYN','_commandService','_injector','BUTTON','sheets-exchange-client.config','DirectExportIcon','length','getOwnPropertyDescriptor','importXLSXToUnitId','exchange.upload','exchange-client.operation.import-xlsx','onReady','1127215ciBOhM','FolderIcon','setConfig','10dbsxtJ','disposeWithMe','_configService','4lRtoad','UNIVER_SHEET','pluginName','_config','119FUxwgp','SUBITEMS','_initCommands','SHEET_EXCHANGE_CLIENT_PLUGIN','ExportIcon','180336cWPTlJ','forEach','1709091QmaETY','unit','registerCommand','OPERATION','1621446wdaNGM','_menuManagerService','sheets-exchange-client.operation.exchange','exchange.download','_initMenus','exportXLSXBySnapshot','OTHERS','symbol'];_0x5a55=function(){return _0x253571;};return _0x5a55();}function D(){const _0x414d3e=_0x46516d;return{'id':u['id'],'type':_0x207661['BUTTON'],'title':_0x414d3e(0x7a),'icon':_0x414d3e(0xa1)};}const F={[_0x3bc4e9[_0x46516d(0x7d)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x46516d(0x8e)],A=(_0x2658ec,_0x1950f9,_0x386137,_0x589c9c)=>{const _0x45d512=_0x46516d;for(var _0x473c72=_0x589c9c>0x1?void 0x0:_0x589c9c?G(_0x1950f9,_0x386137):_0x1950f9,_0x58d6c6=_0x2658ec[_0x45d512(0x8d)]-0x1,_0x2bbfe1;_0x58d6c6>=0x0;_0x58d6c6--)(_0x2bbfe1=_0x2658ec[_0x58d6c6])&&(_0x473c72=_0x2bbfe1(_0x473c72)||_0x473c72);return _0x473c72;},d=(_0x11215d,_0x4a22be)=>(_0x215096,_0x6adff)=>_0x4a22be(_0x215096,_0x6adff,_0x11215d);let c=class extends _0x8ca61c{constructor(_0x2fc902,_0x18d413){const _0x4123d0=_0x46516d;super(),this[_0x4123d0(0x88)]=_0x2fc902,this[_0x4123d0(0x78)]=_0x18d413,this[_0x4123d0(0x9f)](),this['_initMenus']();}[_0x46516d(0x9f)](){const _0x23e740=_0x46516d;[p,u][_0x23e740(0x72)](_0x163b65=>{const _0x3eb2a7=_0x23e740;this[_0x3eb2a7(0x97)](this[_0x3eb2a7(0x88)][_0x3eb2a7(0x75)](_0x163b65));});}[_0x46516d(0x7b)](){const _0x34fcf5=_0x46516d;this[_0x34fcf5(0x78)][_0x34fcf5(0x82)](F);}};c=A([d(0x0,_0x3d3c78),d(0x1,_0x5543e3)],c);var j=Object[_0x46516d(0x7f)],B=Object[_0x46516d(0x8e)],$=(_0x530718,_0x1007ac,_0x5174f4)=>_0x1007ac in _0x530718?j(_0x530718,_0x1007ac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5174f4}):_0x530718[_0x1007ac]=_0x5174f4,V=(_0xce364e,_0x5e5e87,_0x37a6f1,_0x62e9e1)=>{for(var _0x5ce13d=_0x62e9e1>0x1?void 0x0:_0x62e9e1?B(_0x5e5e87,_0x37a6f1):_0x5e5e87,_0x5cad16=_0xce364e['length']-0x1,_0x18f763;_0x5cad16>=0x0;_0x5cad16--)(_0x18f763=_0xce364e[_0x5cad16])&&(_0x5ce13d=_0x18f763(_0x5ce13d)||_0x5ce13d);return _0x5ce13d;},_=(_0x283dae,_0x4d13a8)=>(_0x4f5039,_0x5205b3)=>_0x4d13a8(_0x4f5039,_0x5205b3,_0x283dae),I=(_0x31aecb,_0x293614,_0x34d16b)=>$(_0x31aecb,typeof _0x293614!=_0x46516d(0x7e)?_0x293614+'':_0x293614,_0x34d16b);function _0x1d6b(_0xd49d68,_0x407156){const _0x5a554a=_0x5a55();return _0x1d6b=function(_0x1d6bc2,_0x338959){_0x1d6bc2=_0x1d6bc2-0x72;let _0x1e0ed7=_0x5a554a[_0x1d6bc2];return _0x1e0ed7;},_0x1d6b(_0xd49d68,_0x407156);}const W=_0x46516d(0xa0);let s=class extends _0x5e433a{constructor(_0x4df0a5=l,_0x4409b0,_0x3242c9){const _0xa30c98=_0x46516d;super(),this[_0xa30c98(0x9c)]=_0x4df0a5,this[_0xa30c98(0x89)]=_0x4409b0,this[_0xa30c98(0x98)]=_0x3242c9;const {menu:_0x6cce6a,..._0x4c5c43}=_0x1defc3({},l,this[_0xa30c98(0x9c)]);_0x6cce6a&&this[_0xa30c98(0x98)]['setConfig']('menu',_0x6cce6a,{'merge':!0x0}),this[_0xa30c98(0x98)][_0xa30c98(0x95)](H,_0x4c5c43);}['onStarting'](){[[c]]['forEach'](_0x1ec40b=>this['_injector']['add'](_0x1ec40b));}[_0x46516d(0x92)](){const _0x18fe57=_0x46516d;this['_injector'][_0x18fe57(0x84)](c);}};I(s,_0x46516d(0x9b),W),I(s,'type',_0x3f0a8d['UNIVER_SHEET']),s=V([_0x35f6dc(_0x29df53),_(0x1,_0x4a4fd7(_0x549174)),_(0x2,_0x217e11)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x8dba(_0x2bf47e,_0x40b631){const _0xfc7022=_0xfc70();return _0x8dba=function(_0x8dbae5,_0xc2c057){_0x8dbae5=_0x8dbae5-0xcc;let _0x3d7225=_0xfc7022[_0x8dbae5];return _0x3d7225;},_0x8dba(_0x2bf47e,_0x40b631);}function _0xfc70(){const _0xf54935=['exchange-client.operation.import-xlsx','OPERATION','unit','UniverCore','@univerjs/ui','93105piRhQM','pluginName','CommandType','ICommandService','ExportXLSXOperation','importXLSXToSnapshot','importXLSXToUnitId','UniverExchangeClientPlugin','_configService','138TKYdnj','_config','UniverProSheetsExchangeClient','UniverSheetsExchangeClientPlugin','get','@univerjs/core','exchange-client.operation.export-xlsx','1016NRZRnf','amd','_initCommands','_menuManagerService','sheets-exchange-client.operation.exchange','getCurrentRangeDisable$','sheets-exchange-client.config','ImportXLSXOperation','exportXLSXBySnapshot','MenuItemType','toStringTag','object','UNIVER_SHEET','4368520Arsgpv','registerCommand','@univerjs-pro/exchange-client','IExchangeOperateService','onReady','defineProperty','disposeWithMe','exports','Module','type','_injector','402920QARjTu','68dEKhdn','_initMenus','BUTTON','IConfigService','_commandService','merge','mergeMenu','function','@univerjs/sheets','515832XuiIWl','exchange.download','Disposable','RibbonStartGroup','search','length','WorkbookExportPermission','exchange.file','14485420CoVfLW','UniverProExchangeClient','IMenuManagerService','getOwnPropertyDescriptor','UniverSheets','67652QwGLQP','5812owIOEF','setConfig','UniverInstanceType','onStarting','SHEET_EXCHANGE_CLIENT_PLUGIN'];_0xfc70=function(){return _0xf54935;};return _0xfc70();}(function(_0x2f4cd3,_0x32940b){const _0x46e7bc=_0x8dba,_0x5d28d8=_0x2f4cd3();while(!![]){try{const _0x321c5d=-parseInt(_0x46e7bc(0xe5))/0x1*(-parseInt(_0x46e7bc(0xce))/0x2)+parseInt(_0x46e7bc(0xd7))/0x3+parseInt(_0x46e7bc(0xe4))/0x4+-parseInt(_0x46e7bc(0x10c))/0x5+-parseInt(_0x46e7bc(0xf8))/0x6*(-parseInt(_0x46e7bc(0xcd))/0x7)+-parseInt(_0x46e7bc(0xff))/0x8*(-parseInt(_0x46e7bc(0xef))/0x9)+-parseInt(_0x46e7bc(0xdf))/0xa;if(_0x321c5d===_0x32940b)break;else _0x5d28d8['push'](_0x5d28d8['shift']());}catch(_0x436020){_0x5d28d8['push'](_0x5d28d8['shift']());}}}(_0xfc70,0xab5da),function(_0x21a630,_0x11a859){const _0x399940=_0x8dba;typeof exports==_0x399940(0x10a)&&typeof module<'u'?_0x11a859(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x399940(0xd5)&&define[_0x399940(0x100)]?define([_0x399940(0x113),_0x399940(0x10e),_0x399940(0xfd),_0x399940(0xee),_0x399940(0xd6),'@univerjs/sheets-ui'],_0x11a859):(_0x21a630=typeof globalThis<'u'?globalThis:_0x21a630||self,_0x11a859(_0x21a630[_0x399940(0xfa)]={},_0x21a630[_0x399940(0xe0)],_0x21a630[_0x399940(0xed)],_0x21a630['UniverUi'],_0x21a630[_0x399940(0xe3)],_0x21a630['UniverSheetsUi']));}(this,function(_0x3a22d6,_0x26d0d2,_0xedf630,_0x4f2b48,_0x43a578,_0x353463){'use strict';const _0x4b628d=_0x8dba;const _0x3a0541={'id':_0x4b628d(0xea),'type':_0xedf630[_0x4b628d(0xf1)][_0x4b628d(0xeb)],'handler':async _0x636baf=>{const _0xd105e5=_0x4b628d,_0x43b74b=_0x636baf['get'](_0x26d0d2[_0xd105e5(0x10f)]);return new URLSearchParams(location[_0xd105e5(0xdb)])[_0xd105e5(0xfc)](_0xd105e5(0xec))?_0x43b74b[_0xd105e5(0xf5)]():_0x43b74b[_0xd105e5(0xf4)](),!0x0;}},_0x180879={'id':_0x4b628d(0xfe),'type':_0xedf630[_0x4b628d(0xf1)][_0x4b628d(0xeb)],'handler':async _0x192cf8=>{const _0x519844=_0x4b628d,_0x4a78a2=_0x192cf8['get'](_0x26d0d2['IExchangeOperateService']);return new URLSearchParams(location[_0x519844(0xdb)])[_0x519844(0xfc)](_0x519844(0xec))?_0x4a78a2['exportXLSXByUnitId']():_0x4a78a2[_0x519844(0x107)](),!0x0;}},_0x2af327=_0x4b628d(0x105),_0x3732ed={},_0x5c2b00=_0x4b628d(0x103);function _0x3c0956(_0x4419f9){const _0x32c9b5=_0x4b628d;return{'id':_0x5c2b00,'type':_0x4f2b48[_0x32c9b5(0x108)]['SUBITEMS'],'icon':'DirectExportIcon','tooltip':_0x32c9b5(0xde),'hidden$':_0x4f2b48['getMenuHiddenObservable'](_0x4419f9,_0xedf630[_0x32c9b5(0xe7)][_0x32c9b5(0x10b)]),'disabled$':_0x353463[_0x32c9b5(0x104)](_0x4419f9,{'workbookTypes':[_0x43a578[_0x32c9b5(0xdd)]]})};}function _0x5755ca(){const _0x180382=_0x4b628d;return{'id':_0x3a0541['id'],'type':_0x4f2b48[_0x180382(0x108)][_0x180382(0xd0)],'title':'exchange.upload','icon':'FolderIcon'};}function _0x46eee8(){const _0x338fd4=_0x4b628d;return{'id':_0x180879['id'],'type':_0x4f2b48[_0x338fd4(0x108)][_0x338fd4(0xd0)],'title':_0x338fd4(0xd8),'icon':'ExportIcon'};}const _0x2ac402={[_0x4f2b48[_0x4b628d(0xda)]['OTHERS']]:{[_0x5c2b00]:{'order':0.3,'menuItemFactory':_0x3c0956,[_0x3a0541['id']]:{'order':0x0,'menuItemFactory':_0x5755ca},[_0x180879['id']]:{'order':0x1,'menuItemFactory':_0x46eee8}}}};var _0x4c8766=Object['getOwnPropertyDescriptor'],_0x460e0b=(_0x47fce2,_0x22cdad,_0x873c32,_0x2c3f47)=>{const _0xbd121b=_0x4b628d;for(var _0x3d9a38=_0x2c3f47>0x1?void 0x0:_0x2c3f47?_0x4c8766(_0x22cdad,_0x873c32):_0x22cdad,_0x2926e2=_0x47fce2[_0xbd121b(0xdc)]-0x1,_0x535933;_0x2926e2>=0x0;_0x2926e2--)(_0x535933=_0x47fce2[_0x2926e2])&&(_0x3d9a38=_0x535933(_0x3d9a38)||_0x3d9a38);return _0x3d9a38;},_0x28df09=(_0x4d425c,_0x18ff9d)=>(_0x1b68ed,_0x544db2)=>_0x18ff9d(_0x1b68ed,_0x544db2,_0x4d425c);let _0xed742e=class extends _0xedf630[_0x4b628d(0xd9)]{constructor(_0x3d0ae2,_0x23154b){const _0x2abe12=_0x4b628d;super(),this[_0x2abe12(0xd2)]=_0x3d0ae2,this[_0x2abe12(0x102)]=_0x23154b,this['_initCommands'](),this[_0x2abe12(0xcf)]();}[_0x4b628d(0x101)](){[_0x3a0541,_0x180879]['forEach'](_0x2fbda9=>{const _0x1600b4=_0x8dba;this[_0x1600b4(0x112)](this[_0x1600b4(0xd2)][_0x1600b4(0x10d)](_0x2fbda9));});}[_0x4b628d(0xcf)](){const _0x3e8f15=_0x4b628d;this['_menuManagerService'][_0x3e8f15(0xd4)](_0x2ac402);}};_0xed742e=_0x460e0b([_0x28df09(0x0,_0xedf630[_0x4b628d(0xf2)]),_0x28df09(0x1,_0x4f2b48[_0x4b628d(0xe1)])],_0xed742e);var _0x4dcf30=Object[_0x4b628d(0x111)],_0x42f426=Object[_0x4b628d(0xe2)],_0x4bb03f=(_0x302258,_0x22b615,_0x535b7a)=>_0x22b615 in _0x302258?_0x4dcf30(_0x302258,_0x22b615,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x535b7a}):_0x302258[_0x22b615]=_0x535b7a,_0xa1456=(_0x4cda32,_0x49c861,_0x2ebccb,_0x20c361)=>{const _0x4eb4b9=_0x4b628d;for(var _0xaaa69d=_0x20c361>0x1?void 0x0:_0x20c361?_0x42f426(_0x49c861,_0x2ebccb):_0x49c861,_0x5d68ab=_0x4cda32[_0x4eb4b9(0xdc)]-0x1,_0x412c60;_0x5d68ab>=0x0;_0x5d68ab--)(_0x412c60=_0x4cda32[_0x5d68ab])&&(_0xaaa69d=_0x412c60(_0xaaa69d)||_0xaaa69d);return _0xaaa69d;},_0x31222b=(_0xcf175c,_0x1b2d71)=>(_0x2b60f3,_0x3191da)=>_0x1b2d71(_0x2b60f3,_0x3191da,_0xcf175c),_0x3a6c23=(_0x105b1a,_0x918c7a,_0x353af8)=>_0x4bb03f(_0x105b1a,typeof _0x918c7a!='symbol'?_0x918c7a+'':_0x918c7a,_0x353af8);const _0x41f0c4=_0x4b628d(0xe9);_0x3a22d6['UniverSheetsExchangeClientPlugin']=class extends _0xedf630['Plugin']{constructor(_0x5c953a=_0x3732ed,_0x23e70c,_0x59a31d){const _0x15f192=_0x4b628d;super(),this[_0x15f192(0xf9)]=_0x5c953a,this[_0x15f192(0xcc)]=_0x23e70c,this['_configService']=_0x59a31d;const {menu:_0x19a5fd,..._0x36d2ca}=_0xedf630[_0x15f192(0xd3)]({},_0x3732ed,this[_0x15f192(0xf9)]);_0x19a5fd&&this[_0x15f192(0xf7)][_0x15f192(0xe6)]('menu',_0x19a5fd,{'merge':!0x0}),this[_0x15f192(0xf7)]['setConfig'](_0x2af327,_0x36d2ca);}[_0x4b628d(0xe8)](){[[_0xed742e]]['forEach'](_0x169cb1=>this['_injector']['add'](_0x169cb1));}[_0x4b628d(0x110)](){const _0x385265=_0x4b628d;this['_injector'][_0x385265(0xfc)](_0xed742e);}},_0x3a6c23(_0x3a22d6['UniverSheetsExchangeClientPlugin'],_0x4b628d(0xf0),_0x41f0c4),_0x3a6c23(_0x3a22d6[_0x4b628d(0xfb)],_0x4b628d(0x115),_0xedf630[_0x4b628d(0xe7)]['UNIVER_SHEET']),_0x3a22d6[_0x4b628d(0xfb)]=_0xa1456([_0xedf630['DependentOn'](_0x26d0d2[_0x4b628d(0xf6)]),_0x31222b(0x1,_0xedf630['Inject'](_0xedf630['Injector'])),_0x31222b(0x2,_0xedf630[_0x4b628d(0xd1)])],_0x3a22d6[_0x4b628d(0xfb)]),_0x3a22d6[_0x4b628d(0xf3)]=_0x180879,_0x3a22d6[_0x4b628d(0x106)]=_0x3a0541,Object['defineProperty'](_0x3a22d6,Symbol[_0x4b628d(0x109)],{'value':_0x4b628d(0x114)});}));
1
+ (function(_0x2b0609,_0x3084c7){const _0x3b911b=_0x1205,_0x34e040=_0x2b0609();while(!![]){try{const _0x2db8eb=-parseInt(_0x3b911b(0x123))/0x1*(-parseInt(_0x3b911b(0x120))/0x2)+-parseInt(_0x3b911b(0x106))/0x3*(parseInt(_0x3b911b(0x11d))/0x4)+-parseInt(_0x3b911b(0x14e))/0x5*(parseInt(_0x3b911b(0x12e))/0x6)+parseInt(_0x3b911b(0x132))/0x7*(parseInt(_0x3b911b(0x122))/0x8)+-parseInt(_0x3b911b(0xfe))/0x9*(-parseInt(_0x3b911b(0x150))/0xa)+parseInt(_0x3b911b(0x10e))/0xb+parseInt(_0x3b911b(0xfc))/0xc*(parseInt(_0x3b911b(0x10f))/0xd);if(_0x2db8eb===_0x3084c7)break;else _0x34e040['push'](_0x34e040['shift']());}catch(_0x55c674){_0x34e040['push'](_0x34e040['shift']());}}}(_0x5f23,0x394f4),function(_0x5ad86a,_0x1680d8){const _0xcf466d=_0x1205;typeof exports==_0xcf466d(0x115)&&typeof module<'u'?_0x1680d8(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0xcf466d(0x136)&&define[_0xcf466d(0x11f)]?define([_0xcf466d(0x129),_0xcf466d(0x143),_0xcf466d(0x144),_0xcf466d(0x135),_0xcf466d(0x12d),_0xcf466d(0x149)],_0x1680d8):(_0x5ad86a=typeof globalThis<'u'?globalThis:_0x5ad86a||self,_0x1680d8(_0x5ad86a['UniverProSheetsExchangeClient']={},_0x5ad86a[_0xcf466d(0x128)],_0x5ad86a[_0xcf466d(0x14a)],_0x5ad86a[_0xcf466d(0x111)],_0x5ad86a[_0xcf466d(0x11c)],_0x5ad86a[_0xcf466d(0x103)]));}(this,function(_0x48963a,_0x418980,_0x4def5d,_0xe0afa0,_0x8b33fe,_0x5107ec){'use strict';const _0x3a6e3a=_0x1205;const _0x3f7ff2={'id':_0x3a6e3a(0x102),'type':_0x4def5d['CommandType'][_0x3a6e3a(0x108)],'handler':async _0x51188c=>{const _0x15b28c=_0x3a6e3a,_0x59b051=_0x51188c[_0x15b28c(0x10a)](_0x418980[_0x15b28c(0x107)]);return new URLSearchParams(location[_0x15b28c(0x137)])[_0x15b28c(0x10a)](_0x15b28c(0x134))?_0x59b051[_0x15b28c(0x124)]():_0x59b051[_0x15b28c(0x133)](),!0x0;}},_0x518b1f={'id':_0x3a6e3a(0x121),'type':_0x4def5d['CommandType'][_0x3a6e3a(0x108)],'handler':async _0x3424bf=>{const _0x5a90a8=_0x3a6e3a,_0x379dc8=_0x3424bf[_0x5a90a8(0x10a)](_0x418980[_0x5a90a8(0x107)]);return new URLSearchParams(location['search'])[_0x5a90a8(0x10a)](_0x5a90a8(0x134))?_0x379dc8[_0x5a90a8(0x14d)]():_0x379dc8[_0x5a90a8(0x138)](),!0x0;}},_0x4e1df1=_0x3a6e3a(0x12b),_0x3bd6e2={},_0x56e0b1=_0x3a6e3a(0x10b);function _0x3f44ef(_0x546443){const _0x4d0049=_0x3a6e3a;return{'id':_0x56e0b1,'type':_0xe0afa0[_0x4d0049(0x101)][_0x4d0049(0x110)],'icon':_0x4d0049(0x12a),'tooltip':_0x4d0049(0x148),'hidden$':_0xe0afa0[_0x4d0049(0x126)](_0x546443,_0x4def5d['UniverInstanceType']['UNIVER_SHEET']),'disabled$':_0x5107ec[_0x4d0049(0x14b)](_0x546443,{'workbookTypes':[_0x8b33fe['WorkbookExportPermission']]})};}function _0x34a020(){const _0x27d504=_0x3a6e3a;return{'id':_0x3f7ff2['id'],'type':_0xe0afa0[_0x27d504(0x101)][_0x27d504(0x145)],'title':_0x27d504(0x10c),'icon':_0x27d504(0xfb)};}function _0x50ce6a(){const _0x4287d6=_0x3a6e3a;return{'id':_0x518b1f['id'],'type':_0xe0afa0[_0x4287d6(0x101)][_0x4287d6(0x145)],'title':'exchange.download','icon':_0x4287d6(0xfd)};}const _0x563c19={[_0xe0afa0['RibbonStartGroup'][_0x3a6e3a(0x116)]]:{[_0x56e0b1]:{'order':0.3,'menuItemFactory':_0x3f44ef,[_0x3f7ff2['id']]:{'order':0x0,'menuItemFactory':_0x34a020},[_0x518b1f['id']]:{'order':0x1,'menuItemFactory':_0x50ce6a}}}};var _0x258d8e=Object[_0x3a6e3a(0x11a)],_0x5bbd75=(_0x534a37,_0xedf939,_0x3a7e2f,_0x46757c)=>{const _0x52eb4c=_0x3a6e3a;for(var _0x2ecdd2=_0x46757c>0x1?void 0x0:_0x46757c?_0x258d8e(_0xedf939,_0x3a7e2f):_0xedf939,_0x180610=_0x534a37[_0x52eb4c(0x131)]-0x1,_0x1fd1a9;_0x180610>=0x0;_0x180610--)(_0x1fd1a9=_0x534a37[_0x180610])&&(_0x2ecdd2=_0x1fd1a9(_0x2ecdd2)||_0x2ecdd2);return _0x2ecdd2;},_0x2f980f=(_0x199957,_0x12836d)=>(_0x4ce22f,_0x4d5747)=>_0x12836d(_0x4ce22f,_0x4d5747,_0x199957);let _0x55b93a=class extends _0x4def5d['Disposable']{constructor(_0x4d8ed3,_0x2c19e2){const _0x4fbf00=_0x3a6e3a;super(),this[_0x4fbf00(0x14c)]=_0x4d8ed3,this[_0x4fbf00(0x104)]=_0x2c19e2,this[_0x4fbf00(0x142)](),this[_0x4fbf00(0x117)]();}[_0x3a6e3a(0x142)](){const _0x5657c2=_0x3a6e3a;[_0x3f7ff2,_0x518b1f][_0x5657c2(0x14f)](_0x15ee0b=>{this['disposeWithMe'](this['_commandService']['registerCommand'](_0x15ee0b));});}[_0x3a6e3a(0x117)](){const _0x220a37=_0x3a6e3a;this[_0x220a37(0x104)][_0x220a37(0x140)](_0x563c19);}};_0x55b93a=_0x5bbd75([_0x2f980f(0x0,_0x4def5d[_0x3a6e3a(0x127)]),_0x2f980f(0x1,_0xe0afa0[_0x3a6e3a(0x12f)])],_0x55b93a);var _0xf70f93=Object[_0x3a6e3a(0x130)],_0x323d38=Object[_0x3a6e3a(0x11a)],_0x2fcdd6=(_0x3101d0,_0x5ec27c,_0x6252ba)=>_0x5ec27c in _0x3101d0?_0xf70f93(_0x3101d0,_0x5ec27c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x6252ba}):_0x3101d0[_0x5ec27c]=_0x6252ba,_0x23e1d2=(_0x2bfb53,_0x4307ec,_0x51e14a,_0x4e7158)=>{const _0x33cf09=_0x3a6e3a;for(var _0x550566=_0x4e7158>0x1?void 0x0:_0x4e7158?_0x323d38(_0x4307ec,_0x51e14a):_0x4307ec,_0x47c259=_0x2bfb53[_0x33cf09(0x131)]-0x1,_0x31b84c;_0x47c259>=0x0;_0x47c259--)(_0x31b84c=_0x2bfb53[_0x47c259])&&(_0x550566=_0x31b84c(_0x550566)||_0x550566);return _0x550566;},_0x338386=(_0x4dd497,_0x4c44e9)=>(_0x4b7e71,_0xd53d18)=>_0x4c44e9(_0x4b7e71,_0xd53d18,_0x4dd497),_0x5cb122=(_0x1b52e3,_0x11c826,_0x499da8)=>_0x2fcdd6(_0x1b52e3,typeof _0x11c826!=_0x3a6e3a(0x13a)?_0x11c826+'':_0x11c826,_0x499da8);const _0x48bd13=_0x3a6e3a(0x147);_0x48963a[_0x3a6e3a(0x13b)]=class extends _0x4def5d[_0x3a6e3a(0x13c)]{constructor(_0x232b40=_0x3bd6e2,_0x1c8386,_0x18a6e7){const _0x1e246c=_0x3a6e3a;super(),this[_0x1e246c(0x13f)]=_0x232b40,this[_0x1e246c(0x119)]=_0x1c8386,this[_0x1e246c(0x100)]=_0x18a6e7;const {menu:_0x444310,..._0x304dc5}=_0x4def5d[_0x1e246c(0x139)]({},_0x3bd6e2,this[_0x1e246c(0x13f)]);_0x444310&&this[_0x1e246c(0x100)][_0x1e246c(0x141)](_0x1e246c(0x114),_0x444310,{'merge':!0x0}),this[_0x1e246c(0x100)][_0x1e246c(0x141)](_0x4e1df1,_0x304dc5);}[_0x3a6e3a(0x13d)](){const _0x30216b=_0x3a6e3a;[[_0x55b93a]][_0x30216b(0x14f)](_0x332344=>this[_0x30216b(0x119)]['add'](_0x332344));}['onReady'](){const _0x53afb1=_0x3a6e3a;this[_0x53afb1(0x119)][_0x53afb1(0x10a)](_0x55b93a);}},_0x5cb122(_0x48963a['UniverSheetsExchangeClientPlugin'],_0x3a6e3a(0x118),_0x48bd13),_0x5cb122(_0x48963a[_0x3a6e3a(0x13b)],_0x3a6e3a(0x112),_0x4def5d[_0x3a6e3a(0x10d)][_0x3a6e3a(0x12c)]),_0x48963a[_0x3a6e3a(0x13b)]=_0x23e1d2([_0x4def5d[_0x3a6e3a(0x105)](_0x418980[_0x3a6e3a(0x11e)]),_0x338386(0x1,_0x4def5d[_0x3a6e3a(0x11b)](_0x4def5d[_0x3a6e3a(0x125)])),_0x338386(0x2,_0x4def5d[_0x3a6e3a(0x13e)])],_0x48963a[_0x3a6e3a(0x13b)]),_0x48963a[_0x3a6e3a(0x113)]=_0x518b1f,_0x48963a[_0x3a6e3a(0x109)]=_0x3f7ff2,Object[_0x3a6e3a(0x130)](_0x48963a,Symbol[_0x3a6e3a(0xff)],{'value':_0x3a6e3a(0x146)});}));function _0x1205(_0x156189,_0x1aedcc){const _0x5f2306=_0x5f23();return _0x1205=function(_0x120522,_0x749a77){_0x120522=_0x120522-0xfb;let _0x53fcb3=_0x5f2306[_0x120522];return _0x53fcb3;},_0x1205(_0x156189,_0x1aedcc);}function _0x5f23(){const _0xecc56e=['get','sheets-exchange-client.operation.exchange','exchange.upload','UniverInstanceType','2466145shxHcv','356993fNuYSo','SUBITEMS','UniverUi','type','ExportXLSXOperation','menu','object','OTHERS','_initMenus','pluginName','_injector','getOwnPropertyDescriptor','Inject','UniverSheets','92lrgffo','UniverExchangeClientPlugin','amd','203020zfxgpr','exchange-client.operation.export-xlsx','247864sYDRDD','1EWrsDp','importXLSXToUnitId','Injector','getMenuHiddenObservable','ICommandService','UniverProExchangeClient','exports','DirectExportIcon','sheets-exchange-client.config','UNIVER_SHEET','@univerjs/sheets','36zpaAFs','IMenuManagerService','defineProperty','length','7uBcahk','importXLSXToSnapshot','unit','@univerjs/ui','function','search','exportXLSXBySnapshot','merge','symbol','UniverSheetsExchangeClientPlugin','Plugin','onStarting','IConfigService','_config','mergeMenu','setConfig','_initCommands','@univerjs-pro/exchange-client','@univerjs/core','BUTTON','Module','SHEET_EXCHANGE_CLIENT_PLUGIN','exchange.file','@univerjs/sheets-ui','UniverCore','getCurrentRangeDisable$','_commandService','exportXLSXByUnitId','311095sMwxZC','forEach','30DDLtzr','FolderIcon','168LBnmhO','ExportIcon','183303twLbpZ','toStringTag','_configService','MenuItemType','exchange-client.operation.import-xlsx','UniverSheetsUi','_menuManagerService','DependentOn','25329BjUPaX','IExchangeOperateService','OPERATION','ImportXLSXOperation'];_0x5f23=function(){return _0xecc56e;};return _0x5f23();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.10.5",
3
+ "version": "0.10.6-experimental.20250904-44da50e",
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.5",
46
- "@univerjs/core": "0.10.5",
47
- "@univerjs/sheets": "0.10.5",
48
- "@univerjs/sheets-ui": "0.10.5",
49
- "@univerjs/ui": "0.10.5"
45
+ "@univerjs/core": "0.10.6-experimental.20250904-44da50e",
46
+ "@univerjs/sheets-ui": "0.10.6-experimental.20250904-44da50e",
47
+ "@univerjs/ui": "0.10.6-experimental.20250904-44da50e",
48
+ "@univerjs-pro/exchange-client": "0.10.6-experimental.20250904-44da50e",
49
+ "@univerjs/sheets": "0.10.6-experimental.20250904-44da50e"
50
50
  },
51
51
  "devDependencies": {
52
- "typescript": "^5.8.3",
52
+ "typescript": "^5.9.2",
53
53
  "vite": "^7.1.3",
54
54
  "vitest": "^3.2.4",
55
- "@univerjs-infra/shared": "0.10.5"
55
+ "@univerjs-infra/shared": "0.10.6"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run",