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

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 _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;
1
+ 'use strict';const _0x739105=_0x25f7;(function(_0x422b17,_0xedde35){const _0x2ea8fb=_0x25f7,_0x2db83a=_0x422b17();while(!![]){try{const _0x51306f=parseInt(_0x2ea8fb(0x115))/0x1+parseInt(_0x2ea8fb(0xea))/0x2*(parseInt(_0x2ea8fb(0xf5))/0x3)+-parseInt(_0x2ea8fb(0x11c))/0x4+-parseInt(_0x2ea8fb(0xec))/0x5*(-parseInt(_0x2ea8fb(0xe0))/0x6)+parseInt(_0x2ea8fb(0x108))/0x7+parseInt(_0x2ea8fb(0x116))/0x8*(parseInt(_0x2ea8fb(0xe1))/0x9)+parseInt(_0x2ea8fb(0x10c))/0xa*(-parseInt(_0x2ea8fb(0xf9))/0xb);if(_0x51306f===_0xedde35)break;else _0x2db83a['push'](_0x2db83a['shift']());}catch(_0xcc514e){_0x2db83a['push'](_0x2db83a['shift']());}}}(_0x4189,0xd9d14));Object[_0x739105(0x10f)](exports,Symbol[_0x739105(0x11b)],{'value':_0x739105(0xfc)});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':_0x739105(0x10e),'type':i['CommandType']['OPERATION'],'handler':async _0x5505a6=>{const _0x4d6743=_0x739105,_0x245035=_0x5505a6['get'](g[_0x4d6743(0xe5)]);return new URLSearchParams(location[_0x4d6743(0x102)])[_0x4d6743(0xf6)](_0x4d6743(0x110))?_0x245035[_0x4d6743(0x105)]():_0x245035[_0x4d6743(0x106)](),!0x0;}},p={'id':_0x739105(0xfd),'type':i[_0x739105(0xf0)]['OPERATION'],'handler':async _0x47a823=>{const _0xc85e8e=_0x739105,_0xade15f=_0x47a823['get'](g['IExchangeOperateService']);return new URLSearchParams(location[_0xc85e8e(0x102)])[_0xc85e8e(0xf6)](_0xc85e8e(0x110))?_0xade15f[_0xc85e8e(0x111)]():_0xade15f[_0xc85e8e(0xe6)](),!0x0;}},v=_0x739105(0x100),h={},S=_0x739105(0x112);function x(_0xf56499){const _0x3d3457=_0x739105;return{'id':S,'type':c[_0x3d3457(0xef)][_0x3d3457(0x10a)],'icon':'DirectExportIcon','tooltip':_0x3d3457(0x120),'hidden$':c[_0x3d3457(0x11a)](_0xf56499,i[_0x3d3457(0xe9)][_0x3d3457(0x103)]),'disabled$':I[_0x3d3457(0xf2)](_0xf56499,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x2633c8=_0x739105;return{'id':l['id'],'type':c['MenuItemType'][_0x2633c8(0x11f)],'title':_0x2633c8(0x11e),'icon':_0x2633c8(0xfa)};}function C(){const _0x1e7200=_0x739105;return{'id':p['id'],'type':c[_0x1e7200(0xef)][_0x1e7200(0x11f)],'title':'exchange.download','icon':_0x1e7200(0xff)};}const f={[c[_0x739105(0x119)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};function _0x4189(){const _0x354a33=['exchange-client.operation.import-xlsx','defineProperty','unit','exportXLSXByUnitId','sheets-exchange-client.operation.exchange','Disposable','forEach','1418729FaFaKU','9818632GZMAid','_initCommands','type','RibbonStartGroup','getMenuHiddenObservable','toStringTag','6679588xOZJeu','IMenuManagerService','exchange.upload','BUTTON','exchange.file','Inject','SHEET_EXCHANGE_CLIENT_PLUGIN','24eALcJc','9EflOzV','_configService','ICommandService','UniverSheetsExchangeClientPlugin','IExchangeOperateService','exportXLSXBySnapshot','ImportXLSXOperation','_menuManagerService','UniverInstanceType','408fozOEX','_commandService','572990UAgAjZ','symbol','ExportXLSXOperation','MenuItemType','CommandType','_initMenus','getCurrentRangeDisable$','pluginName','_config','15447GpiIsr','get','add','_injector','11ECwCos','FolderIcon','length','Module','exchange-client.operation.export-xlsx','getOwnPropertyDescriptor','ExportIcon','sheets-exchange-client.config','onReady','search','UNIVER_SHEET','setConfig','importXLSXToUnitId','importXLSXToSnapshot','merge','8224300TLaIgj','UniverExchangeClientPlugin','SUBITEMS','DependentOn','27676690uHKIrR','registerCommand'];_0x4189=function(){return _0x354a33;};return _0x4189();}var T=Object[_0x739105(0xfe)],y=(_0x45a10d,_0x389561,_0x2eacc8,_0x119f45)=>{const _0xbd0772=_0x739105;for(var _0xe43a5e=_0x119f45>0x1?void 0x0:_0x119f45?T(_0x389561,_0x2eacc8):_0x389561,_0x552be0=_0x45a10d[_0xbd0772(0xfb)]-0x1,_0x427595;_0x552be0>=0x0;_0x552be0--)(_0x427595=_0x45a10d[_0x552be0])&&(_0xe43a5e=_0x427595(_0xe43a5e)||_0xe43a5e);return _0xe43a5e;},m=(_0x260c85,_0x43acbe)=>(_0x4771f1,_0x224524)=>_0x43acbe(_0x4771f1,_0x224524,_0x260c85);let u=class extends i[_0x739105(0x113)]{constructor(_0x22ce9a,_0x31ce3c){const _0x2074e4=_0x739105;super(),this[_0x2074e4(0xeb)]=_0x22ce9a,this[_0x2074e4(0xe8)]=_0x31ce3c,this[_0x2074e4(0x117)](),this[_0x2074e4(0xf1)]();}[_0x739105(0x117)](){const _0x209ebc=_0x739105;[l,p][_0x209ebc(0x114)](_0x2ff022=>{const _0x545550=_0x209ebc;this['disposeWithMe'](this[_0x545550(0xeb)][_0x545550(0x10d)](_0x2ff022));});}[_0x739105(0xf1)](){const _0x2cadfe=_0x739105;this[_0x2cadfe(0xe8)]['mergeMenu'](f);}};u=y([m(0x0,i[_0x739105(0xe3)]),m(0x1,c[_0x739105(0x11d)])],u);var O=Object[_0x739105(0x10f)],U=Object[_0x739105(0xfe)],X=(_0x22427b,_0x42acce,_0x50573d)=>_0x42acce in _0x22427b?O(_0x22427b,_0x42acce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x50573d}):_0x22427b[_0x42acce]=_0x50573d,N=(_0x5c78c9,_0x22845a,_0x2fa286,_0x4087c4)=>{const _0x5cac2d=_0x739105;for(var _0x47abfe=_0x4087c4>0x1?void 0x0:_0x4087c4?U(_0x22845a,_0x2fa286):_0x22845a,_0x2e2792=_0x5c78c9[_0x5cac2d(0xfb)]-0x1,_0x272077;_0x2e2792>=0x0;_0x2e2792--)(_0x272077=_0x5c78c9[_0x2e2792])&&(_0x47abfe=_0x272077(_0x47abfe)||_0x47abfe);return _0x47abfe;},d=(_0xe0394b,_0x275f46)=>(_0x240ab8,_0x56c54f)=>_0x275f46(_0x240ab8,_0x56c54f,_0xe0394b),E=(_0x87fe95,_0x24d1c8,_0x58ceb5)=>X(_0x87fe95,typeof _0x24d1c8!=_0x739105(0xed)?_0x24d1c8+'':_0x24d1c8,_0x58ceb5);const L=_0x739105(0xdf);function _0x25f7(_0x19cafe,_0x5912fb){const _0x4189fb=_0x4189();return _0x25f7=function(_0x25f7d0,_0x551114){_0x25f7d0=_0x25f7d0-0xde;let _0x33edbb=_0x4189fb[_0x25f7d0];return _0x33edbb;},_0x25f7(_0x19cafe,_0x5912fb);}exports['UniverSheetsExchangeClientPlugin']=class extends i['Plugin']{constructor(_0x2b2d45=h,_0x265e75,_0x26ce57){const _0x9248b2=_0x739105;super(),this[_0x9248b2(0xf4)]=_0x2b2d45,this['_injector']=_0x265e75,this[_0x9248b2(0xe2)]=_0x26ce57;const {menu:_0x13b238,..._0x3b9da4}=i[_0x9248b2(0x107)]({},h,this['_config']);_0x13b238&&this[_0x9248b2(0xe2)][_0x9248b2(0x104)]('menu',_0x13b238,{'merge':!0x0}),this[_0x9248b2(0xe2)][_0x9248b2(0x104)](v,_0x3b9da4);}['onStarting'](){const _0x16a023=_0x739105;[[u]][_0x16a023(0x114)](_0x8d7c20=>this[_0x16a023(0xf8)][_0x16a023(0xf7)](_0x8d7c20));}[_0x739105(0x101)](){const _0x20d3d2=_0x739105;this['_injector'][_0x20d3d2(0xf6)](u);}},E(exports['UniverSheetsExchangeClientPlugin'],_0x739105(0xf3),L),E(exports[_0x739105(0xe4)],_0x739105(0x118),i[_0x739105(0xe9)][_0x739105(0x103)]),exports['UniverSheetsExchangeClientPlugin']=N([i[_0x739105(0x10b)](g[_0x739105(0x109)]),d(0x1,i[_0x739105(0xde)](i['Injector'])),d(0x2,i['IConfigService'])],exports['UniverSheetsExchangeClientPlugin']),exports[_0x739105(0xee)]=p,exports[_0x739105(0xe7)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
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};
1
+ const _0x8080a3=_0x3e08;(function(_0x33078f,_0x34865f){const _0x49505e=_0x3e08,_0x1f7930=_0x33078f();while(!![]){try{const _0x3bc08f=parseInt(_0x49505e(0xb6))/0x1+parseInt(_0x49505e(0x91))/0x2+-parseInt(_0x49505e(0xa7))/0x3+-parseInt(_0x49505e(0xb3))/0x4+-parseInt(_0x49505e(0xb8))/0x5+-parseInt(_0x49505e(0x9c))/0x6+-parseInt(_0x49505e(0x98))/0x7*(-parseInt(_0x49505e(0xa5))/0x8);if(_0x3bc08f===_0x34865f)break;else _0x1f7930['push'](_0x1f7930['shift']());}catch(_0x564170){_0x1f7930['push'](_0x1f7930['shift']());}}}(_0xa0d5,0x71b82));import{IExchangeOperateService as _0x21b515,UniverExchangeClientPlugin as _0x154b9c}from'@univerjs-pro/exchange-client';function _0xa0d5(){const _0x1f7132=['DirectExportIcon','exchange.upload','unit','_commandService','7QxyJKK','OPERATION','symbol','menu','3224574gItWbO','exchange-client.operation.export-xlsx','get','BUTTON','ExportIcon','length','_injector','_config','getOwnPropertyDescriptor','11695576mETSXW','exchange.file','2544405hGegJL','sheets-exchange-client.operation.exchange','UNIVER_SHEET','registerCommand','importXLSXToUnitId','importXLSXToSnapshot','pluginName','_configService','forEach','exportXLSXByUnitId','mergeMenu','onStarting','1592048veeaHV','search','exchange-client.operation.import-xlsx','904037dGsVjA','OTHERS','2756940dIheCv','SUBITEMS','_menuManagerService','FolderIcon','exchange.download','869548eMuKuc','_initMenus','SHEET_EXCHANGE_CLIENT_PLUGIN'];_0xa0d5=function(){return _0x1f7132;};return _0xa0d5();}import{CommandType as _0x1c6e7d,UniverInstanceType as _0x533d8c,Disposable as _0x5113a7,ICommandService as _0x2d9c5f,DependentOn as _0xb226,Inject as _0x5f214c,Injector as _0x233b56,IConfigService as _0x2d739c,Plugin as _0x423999,merge as _0x13a2a6}from'@univerjs/core';function _0x3e08(_0x49fd88,_0x1e9bcf){const _0xa0d5dc=_0xa0d5();return _0x3e08=function(_0x3e08f8,_0x4d60de){_0x3e08f8=_0x3e08f8-0x8f;let _0x6a2050=_0xa0d5dc[_0x3e08f8];return _0x6a2050;},_0x3e08(_0x49fd88,_0x1e9bcf);}import{MenuItemType as _0x5052e1,getMenuHiddenObservable as _0x3d9e82,RibbonStartGroup as _0x5ca561,IMenuManagerService as _0x1e5793}from'@univerjs/ui';import{WorkbookExportPermission as _0x167bde}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x3af80b}from'@univerjs/sheets-ui';const p={'id':_0x8080a3(0xb5),'type':_0x1c6e7d[_0x8080a3(0x99)],'handler':async _0x771297=>{const _0x56f176=_0x8080a3,_0x2280c2=_0x771297[_0x56f176(0x9e)](_0x21b515);return new URLSearchParams(location['search'])[_0x56f176(0x9e)](_0x56f176(0x96))?_0x2280c2[_0x56f176(0xab)]():_0x2280c2[_0x56f176(0xac)](),!0x0;}},u={'id':_0x8080a3(0x9d),'type':_0x1c6e7d[_0x8080a3(0x99)],'handler':async _0x15fd8b=>{const _0x229c25=_0x8080a3,_0x524490=_0x15fd8b[_0x229c25(0x9e)](_0x21b515);return new URLSearchParams(location[_0x229c25(0xb4)])['get'](_0x229c25(0x96))?_0x524490[_0x229c25(0xb0)]():_0x524490['exportXLSXBySnapshot'](),!0x0;}},H='sheets-exchange-client.config',l={},S=_0x8080a3(0xa8);function R(_0x1591d1){const _0xf6419b=_0x8080a3;return{'id':S,'type':_0x5052e1[_0xf6419b(0xb9)],'icon':_0xf6419b(0x94),'tooltip':_0xf6419b(0xa6),'hidden$':_0x3d9e82(_0x1591d1,_0x533d8c[_0xf6419b(0xa9)]),'disabled$':_0x3af80b(_0x1591d1,{'workbookTypes':[_0x167bde]})};}function w(){const _0x330527=_0x8080a3;return{'id':p['id'],'type':_0x5052e1[_0x330527(0x9f)],'title':_0x330527(0x95),'icon':_0x330527(0x8f)};}function D(){const _0x2ad954=_0x8080a3;return{'id':u['id'],'type':_0x5052e1[_0x2ad954(0x9f)],'title':_0x2ad954(0x90),'icon':_0x2ad954(0xa0)};}const F={[_0x5ca561[_0x8080a3(0xb7)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x8080a3(0xa4)],A=(_0x65c3b6,_0x17a2b3,_0x4d5118,_0xcbf9b0)=>{const _0x3d6f8c=_0x8080a3;for(var _0x19f7b4=_0xcbf9b0>0x1?void 0x0:_0xcbf9b0?G(_0x17a2b3,_0x4d5118):_0x17a2b3,_0xc0bda8=_0x65c3b6[_0x3d6f8c(0xa1)]-0x1,_0x3c0cdd;_0xc0bda8>=0x0;_0xc0bda8--)(_0x3c0cdd=_0x65c3b6[_0xc0bda8])&&(_0x19f7b4=_0x3c0cdd(_0x19f7b4)||_0x19f7b4);return _0x19f7b4;},d=(_0x1e0fac,_0x1f3ac9)=>(_0x457e8e,_0x57f398)=>_0x1f3ac9(_0x457e8e,_0x57f398,_0x1e0fac);let c=class extends _0x5113a7{constructor(_0x2e82ad,_0x4de726){const _0x485b53=_0x8080a3;super(),this[_0x485b53(0x97)]=_0x2e82ad,this[_0x485b53(0xba)]=_0x4de726,this['_initCommands'](),this[_0x485b53(0x92)]();}['_initCommands'](){const _0x3b3f8c=_0x8080a3;[p,u][_0x3b3f8c(0xaf)](_0x5a95bf=>{const _0x1b239b=_0x3b3f8c;this['disposeWithMe'](this[_0x1b239b(0x97)][_0x1b239b(0xaa)](_0x5a95bf));});}[_0x8080a3(0x92)](){const _0x300cdf=_0x8080a3;this[_0x300cdf(0xba)][_0x300cdf(0xb1)](F);}};c=A([d(0x0,_0x2d9c5f),d(0x1,_0x1e5793)],c);var j=Object['defineProperty'],B=Object[_0x8080a3(0xa4)],$=(_0x523c1b,_0x72e52,_0x333567)=>_0x72e52 in _0x523c1b?j(_0x523c1b,_0x72e52,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x333567}):_0x523c1b[_0x72e52]=_0x333567,V=(_0x645560,_0x4f54d6,_0x482965,_0x163fcd)=>{for(var _0x263a11=_0x163fcd>0x1?void 0x0:_0x163fcd?B(_0x4f54d6,_0x482965):_0x4f54d6,_0x58d966=_0x645560['length']-0x1,_0x1e0953;_0x58d966>=0x0;_0x58d966--)(_0x1e0953=_0x645560[_0x58d966])&&(_0x263a11=_0x1e0953(_0x263a11)||_0x263a11);return _0x263a11;},_=(_0xca2751,_0xca8bbf)=>(_0xb8ebc6,_0x305018)=>_0xca8bbf(_0xb8ebc6,_0x305018,_0xca2751),I=(_0x5ae809,_0x4a8521,_0x29027b)=>$(_0x5ae809,typeof _0x4a8521!=_0x8080a3(0x9a)?_0x4a8521+'':_0x4a8521,_0x29027b);const W=_0x8080a3(0x93);let s=class extends _0x423999{constructor(_0x335991=l,_0x51fbcf,_0x26a5cd){const _0x45d6cb=_0x8080a3;super(),this['_config']=_0x335991,this[_0x45d6cb(0xa2)]=_0x51fbcf,this[_0x45d6cb(0xae)]=_0x26a5cd;const {menu:_0x4d65fc,..._0x34a004}=_0x13a2a6({},l,this[_0x45d6cb(0xa3)]);_0x4d65fc&&this[_0x45d6cb(0xae)]['setConfig'](_0x45d6cb(0x9b),_0x4d65fc,{'merge':!0x0}),this[_0x45d6cb(0xae)]['setConfig'](H,_0x34a004);}[_0x8080a3(0xb2)](){const _0x4acdf5=_0x8080a3;[[c]][_0x4acdf5(0xaf)](_0x592689=>this['_injector']['add'](_0x592689));}['onReady'](){const _0x10f573=_0x8080a3;this[_0x10f573(0xa2)][_0x10f573(0x9e)](c);}};I(s,_0x8080a3(0xad),W),I(s,'type',_0x533d8c['UNIVER_SHEET']),s=V([_0xb226(_0x154b9c),_(0x1,_0x5f214c(_0x233b56)),_(0x2,_0x2d739c)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
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};
1
+ const _0x8080a3=_0x3e08;(function(_0x33078f,_0x34865f){const _0x49505e=_0x3e08,_0x1f7930=_0x33078f();while(!![]){try{const _0x3bc08f=parseInt(_0x49505e(0xb6))/0x1+parseInt(_0x49505e(0x91))/0x2+-parseInt(_0x49505e(0xa7))/0x3+-parseInt(_0x49505e(0xb3))/0x4+-parseInt(_0x49505e(0xb8))/0x5+-parseInt(_0x49505e(0x9c))/0x6+-parseInt(_0x49505e(0x98))/0x7*(-parseInt(_0x49505e(0xa5))/0x8);if(_0x3bc08f===_0x34865f)break;else _0x1f7930['push'](_0x1f7930['shift']());}catch(_0x564170){_0x1f7930['push'](_0x1f7930['shift']());}}}(_0xa0d5,0x71b82));import{IExchangeOperateService as _0x21b515,UniverExchangeClientPlugin as _0x154b9c}from'@univerjs-pro/exchange-client';function _0xa0d5(){const _0x1f7132=['DirectExportIcon','exchange.upload','unit','_commandService','7QxyJKK','OPERATION','symbol','menu','3224574gItWbO','exchange-client.operation.export-xlsx','get','BUTTON','ExportIcon','length','_injector','_config','getOwnPropertyDescriptor','11695576mETSXW','exchange.file','2544405hGegJL','sheets-exchange-client.operation.exchange','UNIVER_SHEET','registerCommand','importXLSXToUnitId','importXLSXToSnapshot','pluginName','_configService','forEach','exportXLSXByUnitId','mergeMenu','onStarting','1592048veeaHV','search','exchange-client.operation.import-xlsx','904037dGsVjA','OTHERS','2756940dIheCv','SUBITEMS','_menuManagerService','FolderIcon','exchange.download','869548eMuKuc','_initMenus','SHEET_EXCHANGE_CLIENT_PLUGIN'];_0xa0d5=function(){return _0x1f7132;};return _0xa0d5();}import{CommandType as _0x1c6e7d,UniverInstanceType as _0x533d8c,Disposable as _0x5113a7,ICommandService as _0x2d9c5f,DependentOn as _0xb226,Inject as _0x5f214c,Injector as _0x233b56,IConfigService as _0x2d739c,Plugin as _0x423999,merge as _0x13a2a6}from'@univerjs/core';function _0x3e08(_0x49fd88,_0x1e9bcf){const _0xa0d5dc=_0xa0d5();return _0x3e08=function(_0x3e08f8,_0x4d60de){_0x3e08f8=_0x3e08f8-0x8f;let _0x6a2050=_0xa0d5dc[_0x3e08f8];return _0x6a2050;},_0x3e08(_0x49fd88,_0x1e9bcf);}import{MenuItemType as _0x5052e1,getMenuHiddenObservable as _0x3d9e82,RibbonStartGroup as _0x5ca561,IMenuManagerService as _0x1e5793}from'@univerjs/ui';import{WorkbookExportPermission as _0x167bde}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x3af80b}from'@univerjs/sheets-ui';const p={'id':_0x8080a3(0xb5),'type':_0x1c6e7d[_0x8080a3(0x99)],'handler':async _0x771297=>{const _0x56f176=_0x8080a3,_0x2280c2=_0x771297[_0x56f176(0x9e)](_0x21b515);return new URLSearchParams(location['search'])[_0x56f176(0x9e)](_0x56f176(0x96))?_0x2280c2[_0x56f176(0xab)]():_0x2280c2[_0x56f176(0xac)](),!0x0;}},u={'id':_0x8080a3(0x9d),'type':_0x1c6e7d[_0x8080a3(0x99)],'handler':async _0x15fd8b=>{const _0x229c25=_0x8080a3,_0x524490=_0x15fd8b[_0x229c25(0x9e)](_0x21b515);return new URLSearchParams(location[_0x229c25(0xb4)])['get'](_0x229c25(0x96))?_0x524490[_0x229c25(0xb0)]():_0x524490['exportXLSXBySnapshot'](),!0x0;}},H='sheets-exchange-client.config',l={},S=_0x8080a3(0xa8);function R(_0x1591d1){const _0xf6419b=_0x8080a3;return{'id':S,'type':_0x5052e1[_0xf6419b(0xb9)],'icon':_0xf6419b(0x94),'tooltip':_0xf6419b(0xa6),'hidden$':_0x3d9e82(_0x1591d1,_0x533d8c[_0xf6419b(0xa9)]),'disabled$':_0x3af80b(_0x1591d1,{'workbookTypes':[_0x167bde]})};}function w(){const _0x330527=_0x8080a3;return{'id':p['id'],'type':_0x5052e1[_0x330527(0x9f)],'title':_0x330527(0x95),'icon':_0x330527(0x8f)};}function D(){const _0x2ad954=_0x8080a3;return{'id':u['id'],'type':_0x5052e1[_0x2ad954(0x9f)],'title':_0x2ad954(0x90),'icon':_0x2ad954(0xa0)};}const F={[_0x5ca561[_0x8080a3(0xb7)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x8080a3(0xa4)],A=(_0x65c3b6,_0x17a2b3,_0x4d5118,_0xcbf9b0)=>{const _0x3d6f8c=_0x8080a3;for(var _0x19f7b4=_0xcbf9b0>0x1?void 0x0:_0xcbf9b0?G(_0x17a2b3,_0x4d5118):_0x17a2b3,_0xc0bda8=_0x65c3b6[_0x3d6f8c(0xa1)]-0x1,_0x3c0cdd;_0xc0bda8>=0x0;_0xc0bda8--)(_0x3c0cdd=_0x65c3b6[_0xc0bda8])&&(_0x19f7b4=_0x3c0cdd(_0x19f7b4)||_0x19f7b4);return _0x19f7b4;},d=(_0x1e0fac,_0x1f3ac9)=>(_0x457e8e,_0x57f398)=>_0x1f3ac9(_0x457e8e,_0x57f398,_0x1e0fac);let c=class extends _0x5113a7{constructor(_0x2e82ad,_0x4de726){const _0x485b53=_0x8080a3;super(),this[_0x485b53(0x97)]=_0x2e82ad,this[_0x485b53(0xba)]=_0x4de726,this['_initCommands'](),this[_0x485b53(0x92)]();}['_initCommands'](){const _0x3b3f8c=_0x8080a3;[p,u][_0x3b3f8c(0xaf)](_0x5a95bf=>{const _0x1b239b=_0x3b3f8c;this['disposeWithMe'](this[_0x1b239b(0x97)][_0x1b239b(0xaa)](_0x5a95bf));});}[_0x8080a3(0x92)](){const _0x300cdf=_0x8080a3;this[_0x300cdf(0xba)][_0x300cdf(0xb1)](F);}};c=A([d(0x0,_0x2d9c5f),d(0x1,_0x1e5793)],c);var j=Object['defineProperty'],B=Object[_0x8080a3(0xa4)],$=(_0x523c1b,_0x72e52,_0x333567)=>_0x72e52 in _0x523c1b?j(_0x523c1b,_0x72e52,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x333567}):_0x523c1b[_0x72e52]=_0x333567,V=(_0x645560,_0x4f54d6,_0x482965,_0x163fcd)=>{for(var _0x263a11=_0x163fcd>0x1?void 0x0:_0x163fcd?B(_0x4f54d6,_0x482965):_0x4f54d6,_0x58d966=_0x645560['length']-0x1,_0x1e0953;_0x58d966>=0x0;_0x58d966--)(_0x1e0953=_0x645560[_0x58d966])&&(_0x263a11=_0x1e0953(_0x263a11)||_0x263a11);return _0x263a11;},_=(_0xca2751,_0xca8bbf)=>(_0xb8ebc6,_0x305018)=>_0xca8bbf(_0xb8ebc6,_0x305018,_0xca2751),I=(_0x5ae809,_0x4a8521,_0x29027b)=>$(_0x5ae809,typeof _0x4a8521!=_0x8080a3(0x9a)?_0x4a8521+'':_0x4a8521,_0x29027b);const W=_0x8080a3(0x93);let s=class extends _0x423999{constructor(_0x335991=l,_0x51fbcf,_0x26a5cd){const _0x45d6cb=_0x8080a3;super(),this['_config']=_0x335991,this[_0x45d6cb(0xa2)]=_0x51fbcf,this[_0x45d6cb(0xae)]=_0x26a5cd;const {menu:_0x4d65fc,..._0x34a004}=_0x13a2a6({},l,this[_0x45d6cb(0xa3)]);_0x4d65fc&&this[_0x45d6cb(0xae)]['setConfig'](_0x45d6cb(0x9b),_0x4d65fc,{'merge':!0x0}),this[_0x45d6cb(0xae)]['setConfig'](H,_0x34a004);}[_0x8080a3(0xb2)](){const _0x4acdf5=_0x8080a3;[[c]][_0x4acdf5(0xaf)](_0x592689=>this['_injector']['add'](_0x592689));}['onReady'](){const _0x10f573=_0x8080a3;this[_0x10f573(0xa2)][_0x10f573(0x9e)](c);}};I(s,_0x8080a3(0xad),W),I(s,'type',_0x533d8c['UNIVER_SHEET']),s=V([_0xb226(_0x154b9c),_(0x1,_0x5f214c(_0x233b56)),_(0x2,_0x2d739c)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
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();}
1
+ function _0x1d92(_0x4495ab,_0x1a24a5){const _0x253a0f=_0x253a();return _0x1d92=function(_0x1d9267,_0xb40554){_0x1d9267=_0x1d9267-0x1a8;let _0x54ab81=_0x253a0f[_0x1d9267];return _0x54ab81;},_0x1d92(_0x4495ab,_0x1a24a5);}function _0x253a(){const _0x293bf9=['merge','UniverProExchangeClient','getOwnPropertyDescriptor','Inject','_injector','exchange-client.operation.export-xlsx','onReady','1674110eekhow','24706869xxTNsD','_configService','1LFZvnM','get','1669164IqLSnc','exportXLSXByUnitId','length','onStarting','exchange.download','getMenuHiddenObservable','Module','exports','UniverInstanceType','UniverProSheetsExchangeClient','ICommandService','27YHByly','UniverUi','26832nFsOyq','DependentOn','object','sheets-exchange-client.config','UNIVER_SHEET','_menuManagerService','sheets-exchange-client.operation.exchange','importXLSXToUnitId','_commandService','setConfig','unit','exchange-client.operation.import-xlsx','MenuItemType','OPERATION','WorkbookExportPermission','menu','OTHERS','UniverExchangeClientPlugin','ExportIcon','_config','disposeWithMe','exportXLSXBySnapshot','CommandType','IConfigService','@univerjs/core','14394qdhzCO','@univerjs/sheets-ui','UniverSheetsExchangeClientPlugin','ImportXLSXOperation','add','@univerjs/sheets','registerCommand','amd','forEach','1480290ePSYPF','toStringTag','712YAWHKG','Injector','ExportXLSXOperation','search','UniverSheets','UniverSheetsUi','3433400qUBUPu','_initMenus','18ppQjDe','importXLSXToSnapshot','function','Plugin','SHEET_EXCHANGE_CLIENT_PLUGIN','IMenuManagerService'];_0x253a=function(){return _0x293bf9;};return _0x253a();}(function(_0x557566,_0x42110c){const _0xaaa249=_0x1d92,_0x4268c2=_0x557566();while(!![]){try{const _0x91727d=parseInt(_0xaaa249(0x1d0))/0x1*(-parseInt(_0xaaa249(0x1b6))/0x2)+parseInt(_0xaaa249(0x1ad))/0x3*(-parseInt(_0xaaa249(0x1b8))/0x4)+parseInt(_0xaaa249(0x1be))/0x5+-parseInt(_0xaaa249(0x1c0))/0x6*(parseInt(_0xaaa249(0x1d2))/0x7)+parseInt(_0xaaa249(0x1df))/0x8*(-parseInt(_0xaaa249(0x1dd))/0x9)+-parseInt(_0xaaa249(0x1cd))/0xa+parseInt(_0xaaa249(0x1ce))/0xb;if(_0x91727d===_0x42110c)break;else _0x4268c2['push'](_0x4268c2['shift']());}catch(_0x4fa52a){_0x4268c2['push'](_0x4268c2['shift']());}}}(_0x253a,0x6cd2d),function(_0x4924d3,_0x42a527){const _0x38abc1=_0x1d92;typeof exports==_0x38abc1(0x1e1)&&typeof module<'u'?_0x42a527(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x38abc1(0x1c2)&&define[_0x38abc1(0x1b4)]?define([_0x38abc1(0x1d9),'@univerjs-pro/exchange-client',_0x38abc1(0x1ac),'@univerjs/ui',_0x38abc1(0x1b2),_0x38abc1(0x1ae)],_0x42a527):(_0x4924d3=typeof globalThis<'u'?globalThis:_0x4924d3||self,_0x42a527(_0x4924d3[_0x38abc1(0x1db)]={},_0x4924d3[_0x38abc1(0x1c7)],_0x4924d3['UniverCore'],_0x4924d3[_0x38abc1(0x1de)],_0x4924d3[_0x38abc1(0x1bc)],_0x4924d3[_0x38abc1(0x1bd)]));}(this,function(_0x22d992,_0x25f36b,_0x3597db,_0x10662e,_0x5d3735,_0x1cee62){'use strict';const _0x436e3b=_0x1d92;const _0x48f70f={'id':_0x436e3b(0x1ea),'type':_0x3597db[_0x436e3b(0x1aa)][_0x436e3b(0x1ec)],'handler':async _0x26eab8=>{const _0x2762f4=_0x436e3b,_0x1092da=_0x26eab8[_0x2762f4(0x1d1)](_0x25f36b['IExchangeOperateService']);return new URLSearchParams(location[_0x2762f4(0x1bb)])[_0x2762f4(0x1d1)](_0x2762f4(0x1e9))?_0x1092da[_0x2762f4(0x1e6)]():_0x1092da[_0x2762f4(0x1c1)](),!0x0;}},_0x1bfeed={'id':_0x436e3b(0x1cb),'type':_0x3597db[_0x436e3b(0x1aa)][_0x436e3b(0x1ec)],'handler':async _0x376ac9=>{const _0x4f2791=_0x436e3b,_0x263b6e=_0x376ac9[_0x4f2791(0x1d1)](_0x25f36b['IExchangeOperateService']);return new URLSearchParams(location[_0x4f2791(0x1bb)])['get'](_0x4f2791(0x1e9))?_0x263b6e[_0x4f2791(0x1d3)]():_0x263b6e[_0x4f2791(0x1a9)](),!0x0;}},_0x4d6cc6=_0x436e3b(0x1e2),_0x2bae3c={},_0x5e4e23=_0x436e3b(0x1e5);function _0x5d4f77(_0x2ed287){const _0x1a67ed=_0x436e3b;return{'id':_0x5e4e23,'type':_0x10662e[_0x1a67ed(0x1eb)]['SUBITEMS'],'icon':'DirectExportIcon','tooltip':'exchange.file','hidden$':_0x10662e[_0x1a67ed(0x1d7)](_0x2ed287,_0x3597db[_0x1a67ed(0x1da)][_0x1a67ed(0x1e3)]),'disabled$':_0x1cee62['getCurrentRangeDisable$'](_0x2ed287,{'workbookTypes':[_0x5d3735[_0x1a67ed(0x1ed)]]})};}function _0x39b44f(){const _0x8f48ea=_0x436e3b;return{'id':_0x48f70f['id'],'type':_0x10662e[_0x8f48ea(0x1eb)]['BUTTON'],'title':'exchange.upload','icon':'FolderIcon'};}function _0x460269(){const _0x28bd42=_0x436e3b;return{'id':_0x1bfeed['id'],'type':_0x10662e[_0x28bd42(0x1eb)]['BUTTON'],'title':_0x28bd42(0x1d6),'icon':_0x28bd42(0x1f1)};}const _0x2b2874={[_0x10662e['RibbonStartGroup'][_0x436e3b(0x1ef)]]:{[_0x5e4e23]:{'order':0.3,'menuItemFactory':_0x5d4f77,[_0x48f70f['id']]:{'order':0x0,'menuItemFactory':_0x39b44f},[_0x1bfeed['id']]:{'order':0x1,'menuItemFactory':_0x460269}}}};var _0x84957d=Object['getOwnPropertyDescriptor'],_0x146dcb=(_0x76dff2,_0x398ea4,_0x34a4f9,_0x4f27fb)=>{const _0xf46a1c=_0x436e3b;for(var _0x1d1fa9=_0x4f27fb>0x1?void 0x0:_0x4f27fb?_0x84957d(_0x398ea4,_0x34a4f9):_0x398ea4,_0x5dda52=_0x76dff2[_0xf46a1c(0x1d4)]-0x1,_0x2a0c28;_0x5dda52>=0x0;_0x5dda52--)(_0x2a0c28=_0x76dff2[_0x5dda52])&&(_0x1d1fa9=_0x2a0c28(_0x1d1fa9)||_0x1d1fa9);return _0x1d1fa9;},_0x32e89a=(_0x27a448,_0x2af3d9)=>(_0x4bf255,_0x164117)=>_0x2af3d9(_0x4bf255,_0x164117,_0x27a448);let _0xe56d1b=class extends _0x3597db['Disposable']{constructor(_0x58399c,_0x4f135b){const _0x59d866=_0x436e3b;super(),this[_0x59d866(0x1e7)]=_0x58399c,this[_0x59d866(0x1e4)]=_0x4f135b,this['_initCommands'](),this[_0x59d866(0x1bf)]();}['_initCommands'](){const _0x3249e9=_0x436e3b;[_0x48f70f,_0x1bfeed][_0x3249e9(0x1b5)](_0x65ab00=>{const _0x5584fe=_0x3249e9;this[_0x5584fe(0x1a8)](this[_0x5584fe(0x1e7)][_0x5584fe(0x1b3)](_0x65ab00));});}[_0x436e3b(0x1bf)](){const _0xdb63ae=_0x436e3b;this[_0xdb63ae(0x1e4)]['mergeMenu'](_0x2b2874);}};_0xe56d1b=_0x146dcb([_0x32e89a(0x0,_0x3597db[_0x436e3b(0x1dc)]),_0x32e89a(0x1,_0x10662e[_0x436e3b(0x1c5)])],_0xe56d1b);var _0x44f820=Object['defineProperty'],_0x4964bf=Object[_0x436e3b(0x1c8)],_0x4a68c8=(_0x275334,_0x20c3db,_0x2daec4)=>_0x20c3db in _0x275334?_0x44f820(_0x275334,_0x20c3db,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2daec4}):_0x275334[_0x20c3db]=_0x2daec4,_0x1a4d7f=(_0x97dec5,_0x59d7a1,_0x3bc674,_0x11241e)=>{for(var _0x1aa1e1=_0x11241e>0x1?void 0x0:_0x11241e?_0x4964bf(_0x59d7a1,_0x3bc674):_0x59d7a1,_0x3fbf25=_0x97dec5['length']-0x1,_0x38b29e;_0x3fbf25>=0x0;_0x3fbf25--)(_0x38b29e=_0x97dec5[_0x3fbf25])&&(_0x1aa1e1=_0x38b29e(_0x1aa1e1)||_0x1aa1e1);return _0x1aa1e1;},_0x182f7d=(_0xbf968d,_0x2f68dd)=>(_0x433c22,_0x534b3e)=>_0x2f68dd(_0x433c22,_0x534b3e,_0xbf968d),_0x5561b2=(_0x37c419,_0x1315a6,_0xb71986)=>_0x4a68c8(_0x37c419,typeof _0x1315a6!='symbol'?_0x1315a6+'':_0x1315a6,_0xb71986);const _0x4825e2=_0x436e3b(0x1c4);_0x22d992[_0x436e3b(0x1af)]=class extends _0x3597db[_0x436e3b(0x1c3)]{constructor(_0x4d533b=_0x2bae3c,_0x4c8931,_0x1db299){const _0x2d8927=_0x436e3b;super(),this['_config']=_0x4d533b,this[_0x2d8927(0x1ca)]=_0x4c8931,this[_0x2d8927(0x1cf)]=_0x1db299;const {menu:_0x619603,..._0x52661d}=_0x3597db[_0x2d8927(0x1c6)]({},_0x2bae3c,this[_0x2d8927(0x1f2)]);_0x619603&&this[_0x2d8927(0x1cf)][_0x2d8927(0x1e8)](_0x2d8927(0x1ee),_0x619603,{'merge':!0x0}),this[_0x2d8927(0x1cf)][_0x2d8927(0x1e8)](_0x4d6cc6,_0x52661d);}[_0x436e3b(0x1d5)](){const _0x206a2a=_0x436e3b;[[_0xe56d1b]][_0x206a2a(0x1b5)](_0x5aca89=>this[_0x206a2a(0x1ca)][_0x206a2a(0x1b1)](_0x5aca89));}[_0x436e3b(0x1cc)](){const _0x548878=_0x436e3b;this[_0x548878(0x1ca)]['get'](_0xe56d1b);}},_0x5561b2(_0x22d992[_0x436e3b(0x1af)],'pluginName',_0x4825e2),_0x5561b2(_0x22d992[_0x436e3b(0x1af)],'type',_0x3597db[_0x436e3b(0x1da)][_0x436e3b(0x1e3)]),_0x22d992['UniverSheetsExchangeClientPlugin']=_0x1a4d7f([_0x3597db[_0x436e3b(0x1e0)](_0x25f36b[_0x436e3b(0x1f0)]),_0x182f7d(0x1,_0x3597db[_0x436e3b(0x1c9)](_0x3597db[_0x436e3b(0x1b9)])),_0x182f7d(0x2,_0x3597db[_0x436e3b(0x1ab)])],_0x22d992['UniverSheetsExchangeClientPlugin']),_0x22d992[_0x436e3b(0x1ba)]=_0x1bfeed,_0x22d992[_0x436e3b(0x1b0)]=_0x48f70f,Object['defineProperty'](_0x22d992,Symbol[_0x436e3b(0x1b7)],{'value':_0x436e3b(0x1d8)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.10.6-experimental.20250904-44da50e",
3
+ "version": "0.10.6-nightly.202509060614",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -42,11 +42,11 @@
42
42
  "lib"
43
43
  ],
44
44
  "dependencies": {
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"
45
+ "@univerjs/core": "0.10.6-nightly.202509060614",
46
+ "@univerjs/sheets": "0.10.6-nightly.202509060614",
47
+ "@univerjs/ui": "0.10.6-nightly.202509060614",
48
+ "@univerjs-pro/exchange-client": "0.10.6-nightly.202509060614",
49
+ "@univerjs/sheets-ui": "0.10.6-nightly.202509060614"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.2",