@univerjs-pro/sheets-exchange-client 0.12.3-experimental.20251204-1549a8e → 0.12.3-experimental.20251205-71d07c3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x16f7(_0x1ac185,_0x402217){_0x1ac185=_0x1ac185-0xde;const _0x4cad03=_0x4cad();let _0x16f7c8=_0x4cad03[_0x1ac185];return _0x16f7c8;}const _0xa719fd=_0x16f7;(function(_0xda5082,_0x2d549c){const _0x1e8dba=_0x16f7,_0x3820c0=_0xda5082();while(!![]){try{const _0xdf11c5=parseInt(_0x1e8dba(0x109))/0x1+parseInt(_0x1e8dba(0x115))/0x2*(-parseInt(_0x1e8dba(0xf5))/0x3)+-parseInt(_0x1e8dba(0xee))/0x4+-parseInt(_0x1e8dba(0xe9))/0x5+-parseInt(_0x1e8dba(0xe0))/0x6*(-parseInt(_0x1e8dba(0xe2))/0x7)+parseInt(_0x1e8dba(0xfc))/0x8+parseInt(_0x1e8dba(0x110))/0x9;if(_0xdf11c5===_0x2d549c)break;else _0x3820c0['push'](_0x3820c0['shift']());}catch(_0xfc0c71){_0x3820c0['push'](_0x3820c0['shift']());}}}(_0x4cad,0x2ed5f));Object['defineProperty'](exports,Symbol[_0xa719fd(0x100)],{'value':'Module'});const g=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),c=require('@univerjs/ui'),_=require('@univerjs/sheets'),I=require('@univerjs/sheets-ui'),l={'id':'exchange-client.operation.import-xlsx','type':i['CommandType'][_0xa719fd(0x113)],'handler':async _0x532905=>{const _0x4f3af6=_0xa719fd,_0x39f355=_0x532905[_0x4f3af6(0x116)](g[_0x4f3af6(0x108)]);return new URLSearchParams(location[_0x4f3af6(0xe6)])[_0x4f3af6(0x116)](_0x4f3af6(0xdf))?_0x39f355[_0x4f3af6(0x112)]():_0x39f355[_0x4f3af6(0xff)](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i[_0xa719fd(0x11d)][_0xa719fd(0x113)],'handler':async _0x1fdc84=>{const _0x3a772e=_0xa719fd,_0x1874e3=_0x1fdc84[_0x3a772e(0x116)](g[_0x3a772e(0x108)]);return new URLSearchParams(location[_0x3a772e(0xe6)])['get'](_0x3a772e(0xdf))?_0x1874e3[_0x3a772e(0x106)]():_0x1874e3[_0x3a772e(0xfb)](),!0x0;}},v=_0xa719fd(0xec),h={},S=_0xa719fd(0x101);function x(_0x41f2fa){const _0x3fefe3=_0xa719fd;return{'id':S,'type':c[_0x3fefe3(0xde)][_0x3fefe3(0x10b)],'icon':_0x3fefe3(0x10f),'tooltip':_0x3fefe3(0xf1),'hidden$':c[_0x3fefe3(0x11b)](_0x41f2fa,i['UniverInstanceType'][_0x3fefe3(0xfa)]),'disabled$':I[_0x3fefe3(0xeb)](_0x41f2fa,{'workbookTypes':[_[_0x3fefe3(0x10a)]]})};}function P(){const _0x464559=_0xa719fd;return{'id':l['id'],'type':c[_0x464559(0xde)][_0x464559(0xf9)],'title':_0x464559(0xf0),'icon':_0x464559(0xe7)};}function C(){const _0x34f170=_0xa719fd;return{'id':p['id'],'type':c[_0x34f170(0xde)][_0x34f170(0xf9)],'title':_0x34f170(0xe4),'icon':'ExportIcon'};}const f={[c[_0xa719fd(0xf2)][_0xa719fd(0xf6)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x2b0d5c,_0x5bc6ab,_0xb2de96,_0x35d97b)=>{const _0x578834=_0xa719fd;for(var _0x53862b=_0x35d97b>0x1?void 0x0:_0x35d97b?T(_0x5bc6ab,_0xb2de96):_0x5bc6ab,_0x3622a5=_0x2b0d5c[_0x578834(0xed)]-0x1,_0x25a556;_0x3622a5>=0x0;_0x3622a5--)(_0x25a556=_0x2b0d5c[_0x3622a5])&&(_0x53862b=_0x25a556(_0x53862b)||_0x53862b);return _0x53862b;},m=(_0x32700a,_0x108651)=>(_0x22b347,_0x4e3c34)=>_0x108651(_0x22b347,_0x4e3c34,_0x32700a);function _0x4cad(){const _0x3df77a=['_initMenus','_configService','IConfigService','setConfig','exportXLSXByUnitId','add','IExchangeOperateService','165353PsNwHi','WorkbookExportPermission','SUBITEMS','pluginName','Plugin','ImportXLSXOperation','DirectExportIcon','4916160iNvdcP','ICommandService','importXLSXToUnitId','OPERATION','_config','2aOtxOs','get','mergeMenu','_commandService','DependentOn','SHEET_EXCHANGE_CLIENT_PLUGIN','getMenuHiddenObservable','Disposable','CommandType','MenuItemType','unit','1410uRcokE','_injector','6769agwvAg','onReady','exchange.download','_menuManagerService','search','FolderIcon','UniverSheetsExchangeClientPlugin','1691130bmiFoX','disposeWithMe','getCurrentRangeDisable$','sheets-exchange-client.config','length','623216kwKfRB','UniverInstanceType','exchange.upload','exchange.file','RibbonStartGroup','merge','forEach','791241RQsPBS','OTHERS','getOwnPropertyDescriptor','UniverExchangeClientPlugin','BUTTON','UNIVER_SHEET','exportXLSXBySnapshot','86224JBgwGb','_initCommands','IMenuManagerService','importXLSXToSnapshot','toStringTag','sheets-exchange-client.operation.exchange'];_0x4cad=function(){return _0x3df77a;};return _0x4cad();}let u=class extends i[_0xa719fd(0x11c)]{constructor(_0x495e01,_0xd117a5){const _0x23a428=_0xa719fd;super(),this[_0x23a428(0x118)]=_0x495e01,this[_0x23a428(0xe5)]=_0xd117a5,this['_initCommands'](),this[_0x23a428(0x102)]();}[_0xa719fd(0xfd)](){const _0x26950f=_0xa719fd;[l,p][_0x26950f(0xf4)](_0x19f400=>{const _0x4dbf68=_0x26950f;this[_0x4dbf68(0xea)](this[_0x4dbf68(0x118)]['registerCommand'](_0x19f400));});}[_0xa719fd(0x102)](){const _0x10d0ac=_0xa719fd;this['_menuManagerService'][_0x10d0ac(0x117)](f);}};u=y([m(0x0,i[_0xa719fd(0x111)]),m(0x1,c[_0xa719fd(0xfe)])],u);var O=Object['defineProperty'],U=Object[_0xa719fd(0xf7)],X=(_0x4df2e1,_0x26cf81,_0x23afb4)=>_0x26cf81 in _0x4df2e1?O(_0x4df2e1,_0x26cf81,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23afb4}):_0x4df2e1[_0x26cf81]=_0x23afb4,N=(_0x372bc1,_0x7335e2,_0x3eeff4,_0x27f5ed)=>{for(var _0x4ae75c=_0x27f5ed>0x1?void 0x0:_0x27f5ed?U(_0x7335e2,_0x3eeff4):_0x7335e2,_0x276f50=_0x372bc1['length']-0x1,_0x478202;_0x276f50>=0x0;_0x276f50--)(_0x478202=_0x372bc1[_0x276f50])&&(_0x4ae75c=_0x478202(_0x4ae75c)||_0x4ae75c);return _0x4ae75c;},d=(_0x2ee2bb,_0x23ce8e)=>(_0x919e67,_0x227a7e)=>_0x23ce8e(_0x919e67,_0x227a7e,_0x2ee2bb),E=(_0x2b45a5,_0x37af86,_0x2d6a15)=>X(_0x2b45a5,typeof _0x37af86!='symbol'?_0x37af86+'':_0x37af86,_0x2d6a15);const L=_0xa719fd(0x11a);exports[_0xa719fd(0xe8)]=class extends i[_0xa719fd(0x10d)]{constructor(_0x2c524d=h,_0x2c363e,_0x3ffaa0){const _0x40a95d=_0xa719fd;super(),this[_0x40a95d(0x114)]=_0x2c524d,this[_0x40a95d(0xe1)]=_0x2c363e,this['_configService']=_0x3ffaa0;const {menu:_0xf61078,..._0x5682a8}=i[_0x40a95d(0xf3)]({},h,this['_config']);_0xf61078&&this[_0x40a95d(0x103)]['setConfig']('menu',_0xf61078,{'merge':!0x0}),this[_0x40a95d(0x103)][_0x40a95d(0x105)](v,_0x5682a8);}['onStarting'](){const _0x1f627e=_0xa719fd;[[u]]['forEach'](_0x5683ac=>this['_injector'][_0x1f627e(0x107)](_0x5683ac));}[_0xa719fd(0xe3)](){const _0xca2194=_0xa719fd;this[_0xca2194(0xe1)][_0xca2194(0x116)](u);}},E(exports[_0xa719fd(0xe8)],_0xa719fd(0x10c),L),E(exports[_0xa719fd(0xe8)],'type',i[_0xa719fd(0xef)]['UNIVER_SHEET']),exports['UniverSheetsExchangeClientPlugin']=N([i[_0xa719fd(0x119)](g[_0xa719fd(0xf8)]),d(0x1,i['Inject'](i['Injector'])),d(0x2,i[_0xa719fd(0x104)])],exports[_0xa719fd(0xe8)]),exports['ExportXLSXOperation']=p,exports[_0xa719fd(0x10e)]=l;
1
+ 'use strict';function _0x3076(_0x353415,_0x516d70){_0x353415=_0x353415-0xf2;const _0x20bfd6=_0x20bf();let _0x3076f2=_0x20bfd6[_0x353415];return _0x3076f2;}const _0x574586=_0x3076;(function(_0x52c19f,_0x5194b4){const _0x359277=_0x3076,_0x480eae=_0x52c19f();while(!![]){try{const _0x34385d=parseInt(_0x359277(0x129))/0x1*(parseInt(_0x359277(0x12c))/0x2)+-parseInt(_0x359277(0x110))/0x3*(-parseInt(_0x359277(0x120))/0x4)+-parseInt(_0x359277(0x127))/0x5*(-parseInt(_0x359277(0x101))/0x6)+parseInt(_0x359277(0x131))/0x7*(-parseInt(_0x359277(0x11f))/0x8)+-parseInt(_0x359277(0x112))/0x9+-parseInt(_0x359277(0x121))/0xa*(-parseInt(_0x359277(0xf4))/0xb)+-parseInt(_0x359277(0x118))/0xc;if(_0x34385d===_0x5194b4)break;else _0x480eae['push'](_0x480eae['shift']());}catch(_0x4abbd4){_0x480eae['push'](_0x480eae['shift']());}}}(_0x20bf,0x9c689));Object[_0x574586(0x125)](exports,Symbol['toStringTag'],{'value':'Module'});const g=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),c=require('@univerjs/ui'),_=require('@univerjs/sheets'),I=require('@univerjs/sheets-ui'),l={'id':'exchange-client.operation.import-xlsx','type':i[_0x574586(0xf8)][_0x574586(0x115)],'handler':async _0x19554c=>{const _0x1824e2=_0x574586,_0x3a6da5=_0x19554c[_0x1824e2(0x11b)](g[_0x1824e2(0x116)]);return new URLSearchParams(location['search'])[_0x1824e2(0x11b)](_0x1824e2(0x12f))?_0x3a6da5[_0x1824e2(0x10b)]():_0x3a6da5[_0x1824e2(0x105)](),!0x0;}},p={'id':_0x574586(0x11c),'type':i[_0x574586(0xf8)][_0x574586(0x115)],'handler':async _0x40fdc9=>{const _0x4c0111=_0x574586,_0x2f6319=_0x40fdc9['get'](g['IExchangeOperateService']);return new URLSearchParams(location['search'])[_0x4c0111(0x11b)](_0x4c0111(0x12f))?_0x2f6319[_0x4c0111(0x124)]():_0x2f6319['exportXLSXBySnapshot'](),!0x0;}},v='sheets-exchange-client.config',h={},S=_0x574586(0x103);function x(_0x46cb3e){const _0x296c4a=_0x574586;return{'id':S,'type':c['MenuItemType']['SUBITEMS'],'icon':_0x296c4a(0xf3),'tooltip':_0x296c4a(0x11a),'hidden$':c[_0x296c4a(0x111)](_0x46cb3e,i[_0x296c4a(0x113)][_0x296c4a(0x10e)]),'disabled$':I['getCurrentRangeDisable$'](_0x46cb3e,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x36a443=_0x574586;return{'id':l['id'],'type':c[_0x36a443(0xfa)][_0x36a443(0x12d)],'title':_0x36a443(0xf5),'icon':_0x36a443(0x12a)};}function C(){const _0x2b5707=_0x574586;return{'id':p['id'],'type':c[_0x2b5707(0xfa)][_0x2b5707(0x12d)],'title':_0x2b5707(0xff),'icon':'ExportIcon'};}const f={[c[_0x574586(0xfd)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x574586(0x122)],y=(_0x4df90e,_0x5dd38a,_0x5b2acd,_0x1e3af4)=>{const _0x20776e=_0x574586;for(var _0x3112e5=_0x1e3af4>0x1?void 0x0:_0x1e3af4?T(_0x5dd38a,_0x5b2acd):_0x5dd38a,_0x590dac=_0x4df90e[_0x20776e(0x12b)]-0x1,_0x33eca6;_0x590dac>=0x0;_0x590dac--)(_0x33eca6=_0x4df90e[_0x590dac])&&(_0x3112e5=_0x33eca6(_0x3112e5)||_0x3112e5);return _0x3112e5;},m=(_0x3564d2,_0x9efc)=>(_0x2d8027,_0x9ef70b)=>_0x9efc(_0x2d8027,_0x9ef70b,_0x3564d2);function _0x20bf(){const _0x255b42=['IExchangeOperateService','pluginName','11320428MJVoVr','_initCommands','exchange.file','get','exchange-client.operation.export-xlsx','Injector','SHEET_EXCHANGE_CLIENT_PLUGIN','3610472eAslRm','36nvbxJr','2933110GzJuKP','getOwnPropertyDescriptor','merge','exportXLSXByUnitId','defineProperty','Disposable','1400885gskywz','mergeMenu','1HDdpNU','FolderIcon','length','1877902qECxlH','BUTTON','Inject','unit','onStarting','7qWUzmq','IConfigService','DirectExportIcon','33UAOukO','exchange.upload','_initMenus','_commandService','CommandType','symbol','MenuItemType','DependentOn','type','RibbonStartGroup','UniverExchangeClientPlugin','exchange.download','IMenuManagerService','6xZVWZU','_configService','sheets-exchange-client.operation.exchange','_injector','importXLSXToSnapshot','disposeWithMe','forEach','Plugin','_menuManagerService','_config','importXLSXToUnitId','ImportXLSXOperation','add','UNIVER_SHEET','ExportXLSXOperation','329499sNfyEJ','getMenuHiddenObservable','9470079NZejLg','UniverInstanceType','UniverSheetsExchangeClientPlugin','OPERATION'];_0x20bf=function(){return _0x255b42;};return _0x20bf();}let u=class extends i[_0x574586(0x126)]{constructor(_0x56648e,_0x3d5b2b){const _0x1e9aea=_0x574586;super(),this[_0x1e9aea(0xf7)]=_0x56648e,this[_0x1e9aea(0x109)]=_0x3d5b2b,this['_initCommands'](),this[_0x1e9aea(0xf6)]();}[_0x574586(0x119)](){const _0x3a2c97=_0x574586;[l,p][_0x3a2c97(0x107)](_0x184f62=>{const _0x967d2c=_0x3a2c97;this[_0x967d2c(0x106)](this[_0x967d2c(0xf7)]['registerCommand'](_0x184f62));});}[_0x574586(0xf6)](){const _0x9bdf29=_0x574586;this[_0x9bdf29(0x109)][_0x9bdf29(0x128)](f);}};u=y([m(0x0,i['ICommandService']),m(0x1,c[_0x574586(0x100)])],u);var O=Object[_0x574586(0x125)],U=Object[_0x574586(0x122)],X=(_0x2621c8,_0x49707a,_0x508ed3)=>_0x49707a in _0x2621c8?O(_0x2621c8,_0x49707a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x508ed3}):_0x2621c8[_0x49707a]=_0x508ed3,N=(_0x334f6f,_0x1d09bf,_0x2e129b,_0x348ce5)=>{for(var _0x4036a5=_0x348ce5>0x1?void 0x0:_0x348ce5?U(_0x1d09bf,_0x2e129b):_0x1d09bf,_0x21ae7f=_0x334f6f['length']-0x1,_0x2252da;_0x21ae7f>=0x0;_0x21ae7f--)(_0x2252da=_0x334f6f[_0x21ae7f])&&(_0x4036a5=_0x2252da(_0x4036a5)||_0x4036a5);return _0x4036a5;},d=(_0x421fd4,_0x371647)=>(_0x55b56c,_0x1aee0a)=>_0x371647(_0x55b56c,_0x1aee0a,_0x421fd4),E=(_0x3ccf35,_0x4df912,_0x8c6482)=>X(_0x3ccf35,typeof _0x4df912!=_0x574586(0xf9)?_0x4df912+'':_0x4df912,_0x8c6482);const L=_0x574586(0x11e);exports[_0x574586(0x114)]=class extends i[_0x574586(0x108)]{constructor(_0x4ad718=h,_0x24730b,_0x4839d7){const _0x23b6fb=_0x574586;super(),this[_0x23b6fb(0x10a)]=_0x4ad718,this['_injector']=_0x24730b,this[_0x23b6fb(0x102)]=_0x4839d7;const {menu:_0x29d522,..._0x377fcb}=i[_0x23b6fb(0x123)]({},h,this[_0x23b6fb(0x10a)]);_0x29d522&&this[_0x23b6fb(0x102)]['setConfig']('menu',_0x29d522,{'merge':!0x0}),this['_configService']['setConfig'](v,_0x377fcb);}[_0x574586(0x130)](){const _0x4d7c8b=_0x574586;[[u]][_0x4d7c8b(0x107)](_0x3df1d1=>this['_injector'][_0x4d7c8b(0x10d)](_0x3df1d1));}['onReady'](){const _0x240592=_0x574586;this[_0x240592(0x104)][_0x240592(0x11b)](u);}},E(exports[_0x574586(0x114)],_0x574586(0x117),L),E(exports[_0x574586(0x114)],_0x574586(0xfc),i['UniverInstanceType'][_0x574586(0x10e)]),exports[_0x574586(0x114)]=N([i[_0x574586(0xfb)](g[_0x574586(0xfe)]),d(0x1,i[_0x574586(0x12e)](i[_0x574586(0x11d)])),d(0x2,i[_0x574586(0xf2)])],exports[_0x574586(0x114)]),exports[_0x574586(0x10f)]=p,exports[_0x574586(0x10c)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x42ef18=_0x2387;(function(_0x18af55,_0x2d92d6){const _0x3b3a5c=_0x2387,_0x54da0d=_0x18af55();while(!![]){try{const _0x53db92=-parseInt(_0x3b3a5c(0xe2))/0x1+-parseInt(_0x3b3a5c(0xe6))/0x2+parseInt(_0x3b3a5c(0xeb))/0x3*(parseInt(_0x3b3a5c(0xf0))/0x4)+-parseInt(_0x3b3a5c(0xe9))/0x5+parseInt(_0x3b3a5c(0xe1))/0x6+-parseInt(_0x3b3a5c(0xe5))/0x7*(parseInt(_0x3b3a5c(0xdd))/0x8)+parseInt(_0x3b3a5c(0xd2))/0x9;if(_0x53db92===_0x2d92d6)break;else _0x54da0d['push'](_0x54da0d['shift']());}catch(_0xbdc79c){_0x54da0d['push'](_0x54da0d['shift']());}}}(_0x41e0,0xaafc2));function _0x41e0(){const _0x555f07=['ExportIcon','exchange.upload','_menuManagerService','exchange-client.operation.import-xlsx','sheets-exchange-client.operation.exchange','OTHERS','exportXLSXBySnapshot','importXLSXToUnitId','81344CGJAFB','get','SHEET_EXCHANGE_CLIENT_PLUGIN','_injector','7088550bnTQLd','693272kpwdww','DirectExportIcon','_initCommands','819AKpDmp','2208444ooAegQ','length','_initMenus','6908745bIUNro','BUTTON','4659vxPmSj','registerCommand','sheets-exchange-client.config','exchange.download','setConfig','2960eelugr','forEach','_commandService','exchange-client.operation.export-xlsx','_config','unit','menu','search','importXLSXToSnapshot','mergeMenu','getOwnPropertyDescriptor','type','onStarting','_configService','FolderIcon','24647472OPWnoU','UNIVER_SHEET','pluginName'];_0x41e0=function(){return _0x555f07;};return _0x41e0();}import{IExchangeOperateService as _0xcea39e,UniverExchangeClientPlugin as _0x3e5bee}from'@univerjs-pro/exchange-client';import{CommandType as _0x2effa6,UniverInstanceType as _0x37d0fb,Disposable as _0x1068e3,ICommandService as _0x2f75f1,DependentOn as _0x568f62,Inject as _0x272747,Injector as _0x568478,IConfigService as _0x49a49d,Plugin as _0x2e3404,merge as _0x19387d}from'@univerjs/core';import{MenuItemType as _0x185f6a,getMenuHiddenObservable as _0x807822,RibbonStartGroup as _0x25fcc1,IMenuManagerService as _0x5054ab}from'@univerjs/ui';import{WorkbookExportPermission as _0x2eb492}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x14d3e4}from'@univerjs/sheets-ui';const p={'id':_0x42ef18(0xd8),'type':_0x2effa6['OPERATION'],'handler':async _0x5785d7=>{const _0x21b1e1=_0x42ef18,_0x3a8f81=_0x5785d7[_0x21b1e1(0xde)](_0xcea39e);return new URLSearchParams(location[_0x21b1e1(0xca)])[_0x21b1e1(0xde)]('unit')?_0x3a8f81[_0x21b1e1(0xdc)]():_0x3a8f81[_0x21b1e1(0xcb)](),!0x0;}},u={'id':_0x42ef18(0xf3),'type':_0x2effa6['OPERATION'],'handler':async _0x17afcb=>{const _0xec395a=_0x42ef18,_0xd65dfd=_0x17afcb[_0xec395a(0xde)](_0xcea39e);return new URLSearchParams(location['search'])[_0xec395a(0xde)](_0xec395a(0xf5))?_0xd65dfd['exportXLSXByUnitId']():_0xd65dfd[_0xec395a(0xdb)](),!0x0;}},H=_0x42ef18(0xed),l={},S=_0x42ef18(0xd9);function R(_0x459cb3){const _0x34c96b=_0x42ef18;return{'id':S,'type':_0x185f6a['SUBITEMS'],'icon':_0x34c96b(0xe3),'tooltip':'exchange.file','hidden$':_0x807822(_0x459cb3,_0x37d0fb[_0x34c96b(0xd3)]),'disabled$':_0x14d3e4(_0x459cb3,{'workbookTypes':[_0x2eb492]})};}function w(){const _0x5442b7=_0x42ef18;return{'id':p['id'],'type':_0x185f6a['BUTTON'],'title':_0x5442b7(0xd6),'icon':_0x5442b7(0xd1)};}function D(){const _0x3b6342=_0x42ef18;return{'id':u['id'],'type':_0x185f6a[_0x3b6342(0xea)],'title':_0x3b6342(0xee),'icon':_0x3b6342(0xd5)};}const F={[_0x25fcc1[_0x42ef18(0xda)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x42ef18(0xcd)],A=(_0x2b1f06,_0x4618b6,_0x51808a,_0x2ca42f)=>{const _0x45c503=_0x42ef18;for(var _0x5c2bd7=_0x2ca42f>0x1?void 0x0:_0x2ca42f?G(_0x4618b6,_0x51808a):_0x4618b6,_0x4e8589=_0x2b1f06[_0x45c503(0xe7)]-0x1,_0x1a7cb8;_0x4e8589>=0x0;_0x4e8589--)(_0x1a7cb8=_0x2b1f06[_0x4e8589])&&(_0x5c2bd7=_0x1a7cb8(_0x5c2bd7)||_0x5c2bd7);return _0x5c2bd7;},d=(_0x4e0337,_0x5c3cb9)=>(_0x5706f9,_0x32ceb3)=>_0x5c3cb9(_0x5706f9,_0x32ceb3,_0x4e0337);let c=class extends _0x1068e3{constructor(_0x3a1215,_0x137c3d){const _0x3c161a=_0x42ef18;super(),this[_0x3c161a(0xf2)]=_0x3a1215,this[_0x3c161a(0xd7)]=_0x137c3d,this[_0x3c161a(0xe4)](),this[_0x3c161a(0xe8)]();}['_initCommands'](){const _0x5a13fe=_0x42ef18;[p,u][_0x5a13fe(0xf1)](_0x269163=>{const _0x50eed8=_0x5a13fe;this['disposeWithMe'](this[_0x50eed8(0xf2)][_0x50eed8(0xec)](_0x269163));});}[_0x42ef18(0xe8)](){const _0x2da916=_0x42ef18;this[_0x2da916(0xd7)][_0x2da916(0xcc)](F);}};c=A([d(0x0,_0x2f75f1),d(0x1,_0x5054ab)],c);var j=Object['defineProperty'],B=Object['getOwnPropertyDescriptor'],$=(_0x554f59,_0x176319,_0x2dbcf4)=>_0x176319 in _0x554f59?j(_0x554f59,_0x176319,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2dbcf4}):_0x554f59[_0x176319]=_0x2dbcf4,V=(_0x55ddfe,_0x1ee406,_0x1a220c,_0x2ca23e)=>{const _0x2beed4=_0x42ef18;for(var _0x256d0d=_0x2ca23e>0x1?void 0x0:_0x2ca23e?B(_0x1ee406,_0x1a220c):_0x1ee406,_0x4bfeea=_0x55ddfe[_0x2beed4(0xe7)]-0x1,_0x3b9ab0;_0x4bfeea>=0x0;_0x4bfeea--)(_0x3b9ab0=_0x55ddfe[_0x4bfeea])&&(_0x256d0d=_0x3b9ab0(_0x256d0d)||_0x256d0d);return _0x256d0d;},_=(_0x428c40,_0x5c1056)=>(_0x46f42c,_0x2ca6f3)=>_0x5c1056(_0x46f42c,_0x2ca6f3,_0x428c40),I=(_0x40d654,_0x4a1f1c,_0x45b834)=>$(_0x40d654,typeof _0x4a1f1c!='symbol'?_0x4a1f1c+'':_0x4a1f1c,_0x45b834);const W=_0x42ef18(0xdf);let s=class extends _0x2e3404{constructor(_0x38f079=l,_0x5793f3,_0x2d121c){const _0x383045=_0x42ef18;super(),this['_config']=_0x38f079,this[_0x383045(0xe0)]=_0x5793f3,this[_0x383045(0xd0)]=_0x2d121c;const {menu:_0x20d386,..._0x4ff1f4}=_0x19387d({},l,this[_0x383045(0xf4)]);_0x20d386&&this['_configService']['setConfig'](_0x383045(0xc9),_0x20d386,{'merge':!0x0}),this[_0x383045(0xd0)][_0x383045(0xef)](H,_0x4ff1f4);}[_0x42ef18(0xcf)](){const _0x371177=_0x42ef18;[[c]][_0x371177(0xf1)](_0x47212b=>this[_0x371177(0xe0)]['add'](_0x47212b));}['onReady'](){this['_injector']['get'](c);}};I(s,_0x42ef18(0xd4),W),I(s,_0x42ef18(0xce),_0x37d0fb[_0x42ef18(0xd3)]),s=V([_0x568f62(_0x3e5bee),_(0x1,_0x272747(_0x568478)),_(0x2,_0x49a49d)],s);function _0x2387(_0x2fa108,_0xd5977f){_0x2fa108=_0x2fa108-0xc9;const _0x41e0a2=_0x41e0();let _0x238701=_0x41e0a2[_0x2fa108];return _0x238701;}export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x5f182d=_0x20a3;(function(_0x463905,_0x352c85){const _0x19337e=_0x20a3,_0x33edb7=_0x463905();while(!![]){try{const _0x536568=-parseInt(_0x19337e(0x137))/0x1*(-parseInt(_0x19337e(0x12d))/0x2)+-parseInt(_0x19337e(0x139))/0x3*(-parseInt(_0x19337e(0x11f))/0x4)+parseInt(_0x19337e(0x12b))/0x5+-parseInt(_0x19337e(0x138))/0x6*(-parseInt(_0x19337e(0x12a))/0x7)+-parseInt(_0x19337e(0x13c))/0x8+parseInt(_0x19337e(0x141))/0x9+-parseInt(_0x19337e(0x127))/0xa;if(_0x536568===_0x352c85)break;else _0x33edb7['push'](_0x33edb7['shift']());}catch(_0x37fc3f){_0x33edb7['push'](_0x33edb7['shift']());}}}(_0x1f42,0x6d1c4));function _0x1f42(){const _0x55db70=['mergeMenu','get','type','_menuManagerService','16924KWNYpe','UNIVER_SHEET','getOwnPropertyDescriptor','_initCommands','defineProperty','unit','importXLSXToSnapshot','onStarting','14413190VmaooW','add','length','245OtFqsH','3719700ghzrdY','exportXLSXByUnitId','2mBLpDI','menu','_commandService','DirectExportIcon','_injector','SHEET_EXCHANGE_CLIENT_PLUGIN','importXLSXToUnitId','SUBITEMS','_initMenus','exchange-client.operation.export-xlsx','349214JCTAla','119886DPNTSq','84sVZurj','exchange-client.operation.import-xlsx','_config','5242928xGOyaH','onReady','search','OTHERS','disposeWithMe','5693796AxvyDJ','setConfig','OPERATION','BUTTON','registerCommand','exchange.upload','sheets-exchange-client.config','symbol','exchange.file','_configService','forEach','exportXLSXBySnapshot'];_0x1f42=function(){return _0x55db70;};return _0x1f42();}import{IExchangeOperateService as _0x3e87ec,UniverExchangeClientPlugin as _0x21ab9c}from'@univerjs-pro/exchange-client';import{CommandType as _0x53777b,UniverInstanceType as _0x23cff1,Disposable as _0x16df32,ICommandService as _0x116ee8,DependentOn as _0x34e077,Inject as _0x2a3ed3,Injector as _0x520f29,IConfigService as _0x43c6eb,Plugin as _0xd50bb1,merge as _0x52d11c}from'@univerjs/core';import{MenuItemType as _0x32555a,getMenuHiddenObservable as _0xff2e62,RibbonStartGroup as _0x2d2598,IMenuManagerService as _0x12ce9e}from'@univerjs/ui';import{WorkbookExportPermission as _0x56bf59}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x19f174}from'@univerjs/sheets-ui';const p={'id':_0x5f182d(0x13a),'type':_0x53777b[_0x5f182d(0x111)],'handler':async _0x561871=>{const _0x26cda1=_0x5f182d,_0x33b1ee=_0x561871[_0x26cda1(0x11c)](_0x3e87ec);return new URLSearchParams(location[_0x26cda1(0x13e)])[_0x26cda1(0x11c)](_0x26cda1(0x124))?_0x33b1ee[_0x26cda1(0x133)]():_0x33b1ee[_0x26cda1(0x125)](),!0x0;}},u={'id':_0x5f182d(0x136),'type':_0x53777b[_0x5f182d(0x111)],'handler':async _0x202134=>{const _0x427d06=_0x5f182d,_0x2dba56=_0x202134['get'](_0x3e87ec);return new URLSearchParams(location[_0x427d06(0x13e)])[_0x427d06(0x11c)](_0x427d06(0x124))?_0x2dba56[_0x427d06(0x12c)]():_0x2dba56[_0x427d06(0x11a)](),!0x0;}},H=_0x5f182d(0x115),l={},S='sheets-exchange-client.operation.exchange';function R(_0x344ec6){const _0x4c954e=_0x5f182d;return{'id':S,'type':_0x32555a[_0x4c954e(0x134)],'icon':_0x4c954e(0x130),'tooltip':_0x4c954e(0x117),'hidden$':_0xff2e62(_0x344ec6,_0x23cff1[_0x4c954e(0x120)]),'disabled$':_0x19f174(_0x344ec6,{'workbookTypes':[_0x56bf59]})};}function w(){const _0x1a17b4=_0x5f182d;return{'id':p['id'],'type':_0x32555a['BUTTON'],'title':_0x1a17b4(0x114),'icon':'FolderIcon'};}function D(){const _0x58122e=_0x5f182d;return{'id':u['id'],'type':_0x32555a[_0x58122e(0x112)],'title':'exchange.download','icon':'ExportIcon'};}const F={[_0x2d2598[_0x5f182d(0x13f)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x5f182d(0x121)],A=(_0x3ebf83,_0x39abae,_0x582807,_0x4fd38b)=>{const _0x474ada=_0x5f182d;for(var _0x4712b2=_0x4fd38b>0x1?void 0x0:_0x4fd38b?G(_0x39abae,_0x582807):_0x39abae,_0x364824=_0x3ebf83[_0x474ada(0x129)]-0x1,_0x39802e;_0x364824>=0x0;_0x364824--)(_0x39802e=_0x3ebf83[_0x364824])&&(_0x4712b2=_0x39802e(_0x4712b2)||_0x4712b2);return _0x4712b2;},d=(_0x9fb12a,_0xa1d461)=>(_0x63f3ab,_0x3c73f1)=>_0xa1d461(_0x63f3ab,_0x3c73f1,_0x9fb12a);let c=class extends _0x16df32{constructor(_0x194414,_0x2f0915){const _0x47d9fc=_0x5f182d;super(),this[_0x47d9fc(0x12f)]=_0x194414,this[_0x47d9fc(0x11e)]=_0x2f0915,this[_0x47d9fc(0x122)](),this[_0x47d9fc(0x135)]();}['_initCommands'](){const _0x14d4f6=_0x5f182d;[p,u][_0x14d4f6(0x119)](_0x24361d=>{const _0x52b43e=_0x14d4f6;this[_0x52b43e(0x140)](this['_commandService'][_0x52b43e(0x113)](_0x24361d));});}['_initMenus'](){const _0x21dfaf=_0x5f182d;this[_0x21dfaf(0x11e)][_0x21dfaf(0x11b)](F);}};c=A([d(0x0,_0x116ee8),d(0x1,_0x12ce9e)],c);var j=Object[_0x5f182d(0x123)],B=Object[_0x5f182d(0x121)],$=(_0x4f98bb,_0x42702c,_0x3a13f4)=>_0x42702c in _0x4f98bb?j(_0x4f98bb,_0x42702c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a13f4}):_0x4f98bb[_0x42702c]=_0x3a13f4,V=(_0x2a3775,_0x2e26c3,_0x14a5e8,_0x2cd5d0)=>{for(var _0x1b92a4=_0x2cd5d0>0x1?void 0x0:_0x2cd5d0?B(_0x2e26c3,_0x14a5e8):_0x2e26c3,_0xe67085=_0x2a3775['length']-0x1,_0x411794;_0xe67085>=0x0;_0xe67085--)(_0x411794=_0x2a3775[_0xe67085])&&(_0x1b92a4=_0x411794(_0x1b92a4)||_0x1b92a4);return _0x1b92a4;},_=(_0x4102b9,_0x105d97)=>(_0x28ad99,_0x40a5d6)=>_0x105d97(_0x28ad99,_0x40a5d6,_0x4102b9),I=(_0x576e37,_0x2a9cbb,_0x259f19)=>$(_0x576e37,typeof _0x2a9cbb!=_0x5f182d(0x116)?_0x2a9cbb+'':_0x2a9cbb,_0x259f19);const W=_0x5f182d(0x132);let s=class extends _0xd50bb1{constructor(_0x1b5510=l,_0x2e4bc8,_0x1345e5){const _0x1860b2=_0x5f182d;super(),this[_0x1860b2(0x13b)]=_0x1b5510,this[_0x1860b2(0x131)]=_0x2e4bc8,this[_0x1860b2(0x118)]=_0x1345e5;const {menu:_0x301823,..._0x10398b}=_0x52d11c({},l,this[_0x1860b2(0x13b)]);_0x301823&&this[_0x1860b2(0x118)][_0x1860b2(0x142)](_0x1860b2(0x12e),_0x301823,{'merge':!0x0}),this[_0x1860b2(0x118)][_0x1860b2(0x142)](H,_0x10398b);}[_0x5f182d(0x126)](){const _0x59dcb9=_0x5f182d;[[c]][_0x59dcb9(0x119)](_0x37416c=>this[_0x59dcb9(0x131)][_0x59dcb9(0x128)](_0x37416c));}[_0x5f182d(0x13d)](){this['_injector']['get'](c);}};function _0x20a3(_0x5154ae,_0x57d92b){_0x5154ae=_0x5154ae-0x111;const _0x1f42ef=_0x1f42();let _0x20a37b=_0x1f42ef[_0x5154ae];return _0x20a37b;}I(s,'pluginName',W),I(s,_0x5f182d(0x11d),_0x23cff1['UNIVER_SHEET']),s=V([_0x34e077(_0x21ab9c),_(0x1,_0x2a3ed3(_0x520f29)),_(0x2,_0x43c6eb)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x42ef18=_0x2387;(function(_0x18af55,_0x2d92d6){const _0x3b3a5c=_0x2387,_0x54da0d=_0x18af55();while(!![]){try{const _0x53db92=-parseInt(_0x3b3a5c(0xe2))/0x1+-parseInt(_0x3b3a5c(0xe6))/0x2+parseInt(_0x3b3a5c(0xeb))/0x3*(parseInt(_0x3b3a5c(0xf0))/0x4)+-parseInt(_0x3b3a5c(0xe9))/0x5+parseInt(_0x3b3a5c(0xe1))/0x6+-parseInt(_0x3b3a5c(0xe5))/0x7*(parseInt(_0x3b3a5c(0xdd))/0x8)+parseInt(_0x3b3a5c(0xd2))/0x9;if(_0x53db92===_0x2d92d6)break;else _0x54da0d['push'](_0x54da0d['shift']());}catch(_0xbdc79c){_0x54da0d['push'](_0x54da0d['shift']());}}}(_0x41e0,0xaafc2));function _0x41e0(){const _0x555f07=['ExportIcon','exchange.upload','_menuManagerService','exchange-client.operation.import-xlsx','sheets-exchange-client.operation.exchange','OTHERS','exportXLSXBySnapshot','importXLSXToUnitId','81344CGJAFB','get','SHEET_EXCHANGE_CLIENT_PLUGIN','_injector','7088550bnTQLd','693272kpwdww','DirectExportIcon','_initCommands','819AKpDmp','2208444ooAegQ','length','_initMenus','6908745bIUNro','BUTTON','4659vxPmSj','registerCommand','sheets-exchange-client.config','exchange.download','setConfig','2960eelugr','forEach','_commandService','exchange-client.operation.export-xlsx','_config','unit','menu','search','importXLSXToSnapshot','mergeMenu','getOwnPropertyDescriptor','type','onStarting','_configService','FolderIcon','24647472OPWnoU','UNIVER_SHEET','pluginName'];_0x41e0=function(){return _0x555f07;};return _0x41e0();}import{IExchangeOperateService as _0xcea39e,UniverExchangeClientPlugin as _0x3e5bee}from'@univerjs-pro/exchange-client';import{CommandType as _0x2effa6,UniverInstanceType as _0x37d0fb,Disposable as _0x1068e3,ICommandService as _0x2f75f1,DependentOn as _0x568f62,Inject as _0x272747,Injector as _0x568478,IConfigService as _0x49a49d,Plugin as _0x2e3404,merge as _0x19387d}from'@univerjs/core';import{MenuItemType as _0x185f6a,getMenuHiddenObservable as _0x807822,RibbonStartGroup as _0x25fcc1,IMenuManagerService as _0x5054ab}from'@univerjs/ui';import{WorkbookExportPermission as _0x2eb492}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x14d3e4}from'@univerjs/sheets-ui';const p={'id':_0x42ef18(0xd8),'type':_0x2effa6['OPERATION'],'handler':async _0x5785d7=>{const _0x21b1e1=_0x42ef18,_0x3a8f81=_0x5785d7[_0x21b1e1(0xde)](_0xcea39e);return new URLSearchParams(location[_0x21b1e1(0xca)])[_0x21b1e1(0xde)]('unit')?_0x3a8f81[_0x21b1e1(0xdc)]():_0x3a8f81[_0x21b1e1(0xcb)](),!0x0;}},u={'id':_0x42ef18(0xf3),'type':_0x2effa6['OPERATION'],'handler':async _0x17afcb=>{const _0xec395a=_0x42ef18,_0xd65dfd=_0x17afcb[_0xec395a(0xde)](_0xcea39e);return new URLSearchParams(location['search'])[_0xec395a(0xde)](_0xec395a(0xf5))?_0xd65dfd['exportXLSXByUnitId']():_0xd65dfd[_0xec395a(0xdb)](),!0x0;}},H=_0x42ef18(0xed),l={},S=_0x42ef18(0xd9);function R(_0x459cb3){const _0x34c96b=_0x42ef18;return{'id':S,'type':_0x185f6a['SUBITEMS'],'icon':_0x34c96b(0xe3),'tooltip':'exchange.file','hidden$':_0x807822(_0x459cb3,_0x37d0fb[_0x34c96b(0xd3)]),'disabled$':_0x14d3e4(_0x459cb3,{'workbookTypes':[_0x2eb492]})};}function w(){const _0x5442b7=_0x42ef18;return{'id':p['id'],'type':_0x185f6a['BUTTON'],'title':_0x5442b7(0xd6),'icon':_0x5442b7(0xd1)};}function D(){const _0x3b6342=_0x42ef18;return{'id':u['id'],'type':_0x185f6a[_0x3b6342(0xea)],'title':_0x3b6342(0xee),'icon':_0x3b6342(0xd5)};}const F={[_0x25fcc1[_0x42ef18(0xda)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x42ef18(0xcd)],A=(_0x2b1f06,_0x4618b6,_0x51808a,_0x2ca42f)=>{const _0x45c503=_0x42ef18;for(var _0x5c2bd7=_0x2ca42f>0x1?void 0x0:_0x2ca42f?G(_0x4618b6,_0x51808a):_0x4618b6,_0x4e8589=_0x2b1f06[_0x45c503(0xe7)]-0x1,_0x1a7cb8;_0x4e8589>=0x0;_0x4e8589--)(_0x1a7cb8=_0x2b1f06[_0x4e8589])&&(_0x5c2bd7=_0x1a7cb8(_0x5c2bd7)||_0x5c2bd7);return _0x5c2bd7;},d=(_0x4e0337,_0x5c3cb9)=>(_0x5706f9,_0x32ceb3)=>_0x5c3cb9(_0x5706f9,_0x32ceb3,_0x4e0337);let c=class extends _0x1068e3{constructor(_0x3a1215,_0x137c3d){const _0x3c161a=_0x42ef18;super(),this[_0x3c161a(0xf2)]=_0x3a1215,this[_0x3c161a(0xd7)]=_0x137c3d,this[_0x3c161a(0xe4)](),this[_0x3c161a(0xe8)]();}['_initCommands'](){const _0x5a13fe=_0x42ef18;[p,u][_0x5a13fe(0xf1)](_0x269163=>{const _0x50eed8=_0x5a13fe;this['disposeWithMe'](this[_0x50eed8(0xf2)][_0x50eed8(0xec)](_0x269163));});}[_0x42ef18(0xe8)](){const _0x2da916=_0x42ef18;this[_0x2da916(0xd7)][_0x2da916(0xcc)](F);}};c=A([d(0x0,_0x2f75f1),d(0x1,_0x5054ab)],c);var j=Object['defineProperty'],B=Object['getOwnPropertyDescriptor'],$=(_0x554f59,_0x176319,_0x2dbcf4)=>_0x176319 in _0x554f59?j(_0x554f59,_0x176319,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2dbcf4}):_0x554f59[_0x176319]=_0x2dbcf4,V=(_0x55ddfe,_0x1ee406,_0x1a220c,_0x2ca23e)=>{const _0x2beed4=_0x42ef18;for(var _0x256d0d=_0x2ca23e>0x1?void 0x0:_0x2ca23e?B(_0x1ee406,_0x1a220c):_0x1ee406,_0x4bfeea=_0x55ddfe[_0x2beed4(0xe7)]-0x1,_0x3b9ab0;_0x4bfeea>=0x0;_0x4bfeea--)(_0x3b9ab0=_0x55ddfe[_0x4bfeea])&&(_0x256d0d=_0x3b9ab0(_0x256d0d)||_0x256d0d);return _0x256d0d;},_=(_0x428c40,_0x5c1056)=>(_0x46f42c,_0x2ca6f3)=>_0x5c1056(_0x46f42c,_0x2ca6f3,_0x428c40),I=(_0x40d654,_0x4a1f1c,_0x45b834)=>$(_0x40d654,typeof _0x4a1f1c!='symbol'?_0x4a1f1c+'':_0x4a1f1c,_0x45b834);const W=_0x42ef18(0xdf);let s=class extends _0x2e3404{constructor(_0x38f079=l,_0x5793f3,_0x2d121c){const _0x383045=_0x42ef18;super(),this['_config']=_0x38f079,this[_0x383045(0xe0)]=_0x5793f3,this[_0x383045(0xd0)]=_0x2d121c;const {menu:_0x20d386,..._0x4ff1f4}=_0x19387d({},l,this[_0x383045(0xf4)]);_0x20d386&&this['_configService']['setConfig'](_0x383045(0xc9),_0x20d386,{'merge':!0x0}),this[_0x383045(0xd0)][_0x383045(0xef)](H,_0x4ff1f4);}[_0x42ef18(0xcf)](){const _0x371177=_0x42ef18;[[c]][_0x371177(0xf1)](_0x47212b=>this[_0x371177(0xe0)]['add'](_0x47212b));}['onReady'](){this['_injector']['get'](c);}};I(s,_0x42ef18(0xd4),W),I(s,_0x42ef18(0xce),_0x37d0fb[_0x42ef18(0xd3)]),s=V([_0x568f62(_0x3e5bee),_(0x1,_0x272747(_0x568478)),_(0x2,_0x49a49d)],s);function _0x2387(_0x2fa108,_0xd5977f){_0x2fa108=_0x2fa108-0xc9;const _0x41e0a2=_0x41e0();let _0x238701=_0x41e0a2[_0x2fa108];return _0x238701;}export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x5f182d=_0x20a3;(function(_0x463905,_0x352c85){const _0x19337e=_0x20a3,_0x33edb7=_0x463905();while(!![]){try{const _0x536568=-parseInt(_0x19337e(0x137))/0x1*(-parseInt(_0x19337e(0x12d))/0x2)+-parseInt(_0x19337e(0x139))/0x3*(-parseInt(_0x19337e(0x11f))/0x4)+parseInt(_0x19337e(0x12b))/0x5+-parseInt(_0x19337e(0x138))/0x6*(-parseInt(_0x19337e(0x12a))/0x7)+-parseInt(_0x19337e(0x13c))/0x8+parseInt(_0x19337e(0x141))/0x9+-parseInt(_0x19337e(0x127))/0xa;if(_0x536568===_0x352c85)break;else _0x33edb7['push'](_0x33edb7['shift']());}catch(_0x37fc3f){_0x33edb7['push'](_0x33edb7['shift']());}}}(_0x1f42,0x6d1c4));function _0x1f42(){const _0x55db70=['mergeMenu','get','type','_menuManagerService','16924KWNYpe','UNIVER_SHEET','getOwnPropertyDescriptor','_initCommands','defineProperty','unit','importXLSXToSnapshot','onStarting','14413190VmaooW','add','length','245OtFqsH','3719700ghzrdY','exportXLSXByUnitId','2mBLpDI','menu','_commandService','DirectExportIcon','_injector','SHEET_EXCHANGE_CLIENT_PLUGIN','importXLSXToUnitId','SUBITEMS','_initMenus','exchange-client.operation.export-xlsx','349214JCTAla','119886DPNTSq','84sVZurj','exchange-client.operation.import-xlsx','_config','5242928xGOyaH','onReady','search','OTHERS','disposeWithMe','5693796AxvyDJ','setConfig','OPERATION','BUTTON','registerCommand','exchange.upload','sheets-exchange-client.config','symbol','exchange.file','_configService','forEach','exportXLSXBySnapshot'];_0x1f42=function(){return _0x55db70;};return _0x1f42();}import{IExchangeOperateService as _0x3e87ec,UniverExchangeClientPlugin as _0x21ab9c}from'@univerjs-pro/exchange-client';import{CommandType as _0x53777b,UniverInstanceType as _0x23cff1,Disposable as _0x16df32,ICommandService as _0x116ee8,DependentOn as _0x34e077,Inject as _0x2a3ed3,Injector as _0x520f29,IConfigService as _0x43c6eb,Plugin as _0xd50bb1,merge as _0x52d11c}from'@univerjs/core';import{MenuItemType as _0x32555a,getMenuHiddenObservable as _0xff2e62,RibbonStartGroup as _0x2d2598,IMenuManagerService as _0x12ce9e}from'@univerjs/ui';import{WorkbookExportPermission as _0x56bf59}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x19f174}from'@univerjs/sheets-ui';const p={'id':_0x5f182d(0x13a),'type':_0x53777b[_0x5f182d(0x111)],'handler':async _0x561871=>{const _0x26cda1=_0x5f182d,_0x33b1ee=_0x561871[_0x26cda1(0x11c)](_0x3e87ec);return new URLSearchParams(location[_0x26cda1(0x13e)])[_0x26cda1(0x11c)](_0x26cda1(0x124))?_0x33b1ee[_0x26cda1(0x133)]():_0x33b1ee[_0x26cda1(0x125)](),!0x0;}},u={'id':_0x5f182d(0x136),'type':_0x53777b[_0x5f182d(0x111)],'handler':async _0x202134=>{const _0x427d06=_0x5f182d,_0x2dba56=_0x202134['get'](_0x3e87ec);return new URLSearchParams(location[_0x427d06(0x13e)])[_0x427d06(0x11c)](_0x427d06(0x124))?_0x2dba56[_0x427d06(0x12c)]():_0x2dba56[_0x427d06(0x11a)](),!0x0;}},H=_0x5f182d(0x115),l={},S='sheets-exchange-client.operation.exchange';function R(_0x344ec6){const _0x4c954e=_0x5f182d;return{'id':S,'type':_0x32555a[_0x4c954e(0x134)],'icon':_0x4c954e(0x130),'tooltip':_0x4c954e(0x117),'hidden$':_0xff2e62(_0x344ec6,_0x23cff1[_0x4c954e(0x120)]),'disabled$':_0x19f174(_0x344ec6,{'workbookTypes':[_0x56bf59]})};}function w(){const _0x1a17b4=_0x5f182d;return{'id':p['id'],'type':_0x32555a['BUTTON'],'title':_0x1a17b4(0x114),'icon':'FolderIcon'};}function D(){const _0x58122e=_0x5f182d;return{'id':u['id'],'type':_0x32555a[_0x58122e(0x112)],'title':'exchange.download','icon':'ExportIcon'};}const F={[_0x2d2598[_0x5f182d(0x13f)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x5f182d(0x121)],A=(_0x3ebf83,_0x39abae,_0x582807,_0x4fd38b)=>{const _0x474ada=_0x5f182d;for(var _0x4712b2=_0x4fd38b>0x1?void 0x0:_0x4fd38b?G(_0x39abae,_0x582807):_0x39abae,_0x364824=_0x3ebf83[_0x474ada(0x129)]-0x1,_0x39802e;_0x364824>=0x0;_0x364824--)(_0x39802e=_0x3ebf83[_0x364824])&&(_0x4712b2=_0x39802e(_0x4712b2)||_0x4712b2);return _0x4712b2;},d=(_0x9fb12a,_0xa1d461)=>(_0x63f3ab,_0x3c73f1)=>_0xa1d461(_0x63f3ab,_0x3c73f1,_0x9fb12a);let c=class extends _0x16df32{constructor(_0x194414,_0x2f0915){const _0x47d9fc=_0x5f182d;super(),this[_0x47d9fc(0x12f)]=_0x194414,this[_0x47d9fc(0x11e)]=_0x2f0915,this[_0x47d9fc(0x122)](),this[_0x47d9fc(0x135)]();}['_initCommands'](){const _0x14d4f6=_0x5f182d;[p,u][_0x14d4f6(0x119)](_0x24361d=>{const _0x52b43e=_0x14d4f6;this[_0x52b43e(0x140)](this['_commandService'][_0x52b43e(0x113)](_0x24361d));});}['_initMenus'](){const _0x21dfaf=_0x5f182d;this[_0x21dfaf(0x11e)][_0x21dfaf(0x11b)](F);}};c=A([d(0x0,_0x116ee8),d(0x1,_0x12ce9e)],c);var j=Object[_0x5f182d(0x123)],B=Object[_0x5f182d(0x121)],$=(_0x4f98bb,_0x42702c,_0x3a13f4)=>_0x42702c in _0x4f98bb?j(_0x4f98bb,_0x42702c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a13f4}):_0x4f98bb[_0x42702c]=_0x3a13f4,V=(_0x2a3775,_0x2e26c3,_0x14a5e8,_0x2cd5d0)=>{for(var _0x1b92a4=_0x2cd5d0>0x1?void 0x0:_0x2cd5d0?B(_0x2e26c3,_0x14a5e8):_0x2e26c3,_0xe67085=_0x2a3775['length']-0x1,_0x411794;_0xe67085>=0x0;_0xe67085--)(_0x411794=_0x2a3775[_0xe67085])&&(_0x1b92a4=_0x411794(_0x1b92a4)||_0x1b92a4);return _0x1b92a4;},_=(_0x4102b9,_0x105d97)=>(_0x28ad99,_0x40a5d6)=>_0x105d97(_0x28ad99,_0x40a5d6,_0x4102b9),I=(_0x576e37,_0x2a9cbb,_0x259f19)=>$(_0x576e37,typeof _0x2a9cbb!=_0x5f182d(0x116)?_0x2a9cbb+'':_0x2a9cbb,_0x259f19);const W=_0x5f182d(0x132);let s=class extends _0xd50bb1{constructor(_0x1b5510=l,_0x2e4bc8,_0x1345e5){const _0x1860b2=_0x5f182d;super(),this[_0x1860b2(0x13b)]=_0x1b5510,this[_0x1860b2(0x131)]=_0x2e4bc8,this[_0x1860b2(0x118)]=_0x1345e5;const {menu:_0x301823,..._0x10398b}=_0x52d11c({},l,this[_0x1860b2(0x13b)]);_0x301823&&this[_0x1860b2(0x118)][_0x1860b2(0x142)](_0x1860b2(0x12e),_0x301823,{'merge':!0x0}),this[_0x1860b2(0x118)][_0x1860b2(0x142)](H,_0x10398b);}[_0x5f182d(0x126)](){const _0x59dcb9=_0x5f182d;[[c]][_0x59dcb9(0x119)](_0x37416c=>this[_0x59dcb9(0x131)][_0x59dcb9(0x128)](_0x37416c));}[_0x5f182d(0x13d)](){this['_injector']['get'](c);}};function _0x20a3(_0x5154ae,_0x57d92b){_0x5154ae=_0x5154ae-0x111;const _0x1f42ef=_0x1f42();let _0x20a37b=_0x1f42ef[_0x5154ae];return _0x20a37b;}I(s,'pluginName',W),I(s,_0x5f182d(0x11d),_0x23cff1['UNIVER_SHEET']),s=V([_0x34e077(_0x21ab9c),_(0x1,_0x2a3ed3(_0x520f29)),_(0x2,_0x43c6eb)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x2fff5a,_0x1e8e0f){const _0x301133=_0x545c,_0x516136=_0x2fff5a();while(!![]){try{const _0x3afe3c=-parseInt(_0x301133(0x1da))/0x1*(-parseInt(_0x301133(0x1dd))/0x2)+parseInt(_0x301133(0x1e2))/0x3*(parseInt(_0x301133(0x1c3))/0x4)+parseInt(_0x301133(0x1c4))/0x5+parseInt(_0x301133(0x1d0))/0x6*(parseInt(_0x301133(0x1dc))/0x7)+-parseInt(_0x301133(0x204))/0x8*(parseInt(_0x301133(0x1cc))/0x9)+-parseInt(_0x301133(0x1eb))/0xa+parseInt(_0x301133(0x1f4))/0xb;if(_0x3afe3c===_0x1e8e0f)break;else _0x516136['push'](_0x516136['shift']());}catch(_0x1aa7c8){_0x516136['push'](_0x516136['shift']());}}}(_0xc807,0x9fef7),function(_0x4682d4,_0x2de138){const _0x4d4a0f=_0x545c;typeof exports==_0x4d4a0f(0x200)&&typeof module<'u'?_0x2de138(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x4d4a0f(0x1ca)&&define[_0x4d4a0f(0x1c9)]?define(['exports',_0x4d4a0f(0x1b9),_0x4d4a0f(0x1d7),_0x4d4a0f(0x1c0),'@univerjs/sheets',_0x4d4a0f(0x1d2)],_0x2de138):(_0x4682d4=typeof globalThis<'u'?globalThis:_0x4682d4||self,_0x2de138(_0x4682d4[_0x4d4a0f(0x1ba)]={},_0x4682d4['UniverProExchangeClient'],_0x4682d4['UniverCore'],_0x4682d4[_0x4d4a0f(0x1f6)],_0x4682d4[_0x4d4a0f(0x1cb)],_0x4682d4['UniverSheetsUi']));}(this,function(_0x5d1681,_0x133e1a,_0xe64366,_0x2f4452,_0x4fc2d0,_0xf69521){'use strict';const _0x5aec55=_0x545c;const _0x1497d3={'id':'exchange-client.operation.import-xlsx','type':_0xe64366[_0x5aec55(0x1f9)][_0x5aec55(0x1f0)],'handler':async _0xd900a1=>{const _0x2cc124=_0x5aec55,_0x2dbb8f=_0xd900a1[_0x2cc124(0x1e9)](_0x133e1a['IExchangeOperateService']);return new URLSearchParams(location[_0x2cc124(0x1f8)])['get']('unit')?_0x2dbb8f['importXLSXToUnitId']():_0x2dbb8f[_0x2cc124(0x202)](),!0x0;}},_0x10cf17={'id':_0x5aec55(0x1f1),'type':_0xe64366[_0x5aec55(0x1f9)]['OPERATION'],'handler':async _0x3373e7=>{const _0x5bb4a4=_0x5aec55,_0x1a13fc=_0x3373e7['get'](_0x133e1a[_0x5bb4a4(0x1bb)]);return new URLSearchParams(location[_0x5bb4a4(0x1f8)])['get'](_0x5bb4a4(0x1ee))?_0x1a13fc['exportXLSXByUnitId']():_0x1a13fc[_0x5bb4a4(0x1c7)](),!0x0;}},_0x4a892b='sheets-exchange-client.config',_0x4da497={},_0x3ad486=_0x5aec55(0x1c6);function _0x154c29(_0x475a6a){const _0x23c6ce=_0x5aec55;return{'id':_0x3ad486,'type':_0x2f4452[_0x23c6ce(0x1e6)][_0x23c6ce(0x1f3)],'icon':_0x23c6ce(0x1ec),'tooltip':_0x23c6ce(0x1fd),'hidden$':_0x2f4452[_0x23c6ce(0x1e3)](_0x475a6a,_0xe64366['UniverInstanceType']['UNIVER_SHEET']),'disabled$':_0xf69521['getCurrentRangeDisable$'](_0x475a6a,{'workbookTypes':[_0x4fc2d0[_0x23c6ce(0x1d5)]]})};}function _0x1e3bb8(){const _0x144ff0=_0x5aec55;return{'id':_0x1497d3['id'],'type':_0x2f4452[_0x144ff0(0x1e6)][_0x144ff0(0x1d8)],'title':_0x144ff0(0x1e5),'icon':_0x144ff0(0x1c1)};}function _0x4e049b(){const _0x509ee8=_0x5aec55;return{'id':_0x10cf17['id'],'type':_0x2f4452[_0x509ee8(0x1e6)][_0x509ee8(0x1d8)],'title':_0x509ee8(0x1cf),'icon':_0x509ee8(0x1ff)};}const _0x34d33c={[_0x2f4452[_0x5aec55(0x1ed)][_0x5aec55(0x1cd)]]:{[_0x3ad486]:{'order':0.3,'menuItemFactory':_0x154c29,[_0x1497d3['id']]:{'order':0x0,'menuItemFactory':_0x1e3bb8},[_0x10cf17['id']]:{'order':0x1,'menuItemFactory':_0x4e049b}}}};var _0x587cb0=Object['getOwnPropertyDescriptor'],_0x3ddbda=(_0xae9ebe,_0x560166,_0x41c597,_0x12e190)=>{const _0x1491d6=_0x5aec55;for(var _0x546bca=_0x12e190>0x1?void 0x0:_0x12e190?_0x587cb0(_0x560166,_0x41c597):_0x560166,_0x51da26=_0xae9ebe[_0x1491d6(0x1c8)]-0x1,_0x5efc7c;_0x51da26>=0x0;_0x51da26--)(_0x5efc7c=_0xae9ebe[_0x51da26])&&(_0x546bca=_0x5efc7c(_0x546bca)||_0x546bca);return _0x546bca;},_0x3aef8f=(_0x38f31e,_0x42bf31)=>(_0x1e0583,_0x2b926a)=>_0x42bf31(_0x1e0583,_0x2b926a,_0x38f31e);let _0x4edf2a=class extends _0xe64366[_0x5aec55(0x203)]{constructor(_0x5865f6,_0x3c669e){const _0x10c927=_0x5aec55;super(),this[_0x10c927(0x1d6)]=_0x5865f6,this['_menuManagerService']=_0x3c669e,this[_0x10c927(0x1fa)](),this['_initMenus']();}[_0x5aec55(0x1fa)](){const _0x37a3fd=_0x5aec55;[_0x1497d3,_0x10cf17][_0x37a3fd(0x1f2)](_0x443e9f=>{const _0x2f01ff=_0x37a3fd;this[_0x2f01ff(0x1bd)](this['_commandService']['registerCommand'](_0x443e9f));});}[_0x5aec55(0x1de)](){const _0x4f32a3=_0x5aec55;this[_0x4f32a3(0x1c5)][_0x4f32a3(0x1e7)](_0x34d33c);}};_0x4edf2a=_0x3ddbda([_0x3aef8f(0x0,_0xe64366[_0x5aec55(0x1df)]),_0x3aef8f(0x1,_0x2f4452[_0x5aec55(0x1ef)])],_0x4edf2a);var _0x32cb3e=Object[_0x5aec55(0x1e1)],_0x5b2174=Object[_0x5aec55(0x1d3)],_0x45015a=(_0x4302f3,_0x460408,_0x4f6829)=>_0x460408 in _0x4302f3?_0x32cb3e(_0x4302f3,_0x460408,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4f6829}):_0x4302f3[_0x460408]=_0x4f6829,_0x5a2de3=(_0x5caebe,_0x3a38a2,_0x2da870,_0x1958dc)=>{for(var _0x414e4a=_0x1958dc>0x1?void 0x0:_0x1958dc?_0x5b2174(_0x3a38a2,_0x2da870):_0x3a38a2,_0x4a14c9=_0x5caebe['length']-0x1,_0x1cdd1b;_0x4a14c9>=0x0;_0x4a14c9--)(_0x1cdd1b=_0x5caebe[_0x4a14c9])&&(_0x414e4a=_0x1cdd1b(_0x414e4a)||_0x414e4a);return _0x414e4a;},_0x409b5c=(_0x5d3f0a,_0x330229)=>(_0x59f32b,_0x4793dd)=>_0x330229(_0x59f32b,_0x4793dd,_0x5d3f0a),_0x40cff7=(_0x2564e0,_0x4a95f6,_0x191f27)=>_0x45015a(_0x2564e0,typeof _0x4a95f6!='symbol'?_0x4a95f6+'':_0x4a95f6,_0x191f27);const _0x7cff4f=_0x5aec55(0x205);_0x5d1681['UniverSheetsExchangeClientPlugin']=class extends _0xe64366[_0x5aec55(0x1d4)]{constructor(_0x46d11f=_0x4da497,_0x296f82,_0x5ce7e1){const _0x1cd59a=_0x5aec55;super(),this[_0x1cd59a(0x1b8)]=_0x46d11f,this['_injector']=_0x296f82,this['_configService']=_0x5ce7e1;const {menu:_0x4b16a7,..._0x160dc2}=_0xe64366[_0x1cd59a(0x1fb)]({},_0x4da497,this[_0x1cd59a(0x1b8)]);_0x4b16a7&&this['_configService'][_0x1cd59a(0x1ea)]('menu',_0x4b16a7,{'merge':!0x0}),this['_configService']['setConfig'](_0x4a892b,_0x160dc2);}[_0x5aec55(0x1be)](){const _0xd41956=_0x5aec55;[[_0x4edf2a]][_0xd41956(0x1f2)](_0x341667=>this['_injector'][_0xd41956(0x1d9)](_0x341667));}[_0x5aec55(0x1e4)](){const _0x5ac8ca=_0x5aec55;this[_0x5ac8ca(0x1e8)]['get'](_0x4edf2a);}},_0x40cff7(_0x5d1681[_0x5aec55(0x1bc)],_0x5aec55(0x201),_0x7cff4f),_0x40cff7(_0x5d1681[_0x5aec55(0x1bc)],_0x5aec55(0x1fe),_0xe64366[_0x5aec55(0x1e0)][_0x5aec55(0x1fc)]),_0x5d1681[_0x5aec55(0x1bc)]=_0x5a2de3([_0xe64366['DependentOn'](_0x133e1a[_0x5aec55(0x1f7)]),_0x409b5c(0x1,_0xe64366[_0x5aec55(0x1db)](_0xe64366['Injector'])),_0x409b5c(0x2,_0xe64366[_0x5aec55(0x1bf)])],_0x5d1681[_0x5aec55(0x1bc)]),_0x5d1681[_0x5aec55(0x1f5)]=_0x10cf17,_0x5d1681[_0x5aec55(0x1c2)]=_0x1497d3,Object['defineProperty'](_0x5d1681,Symbol[_0x5aec55(0x1d1)],{'value':_0x5aec55(0x1ce)});}));function _0x545c(_0x239444,_0x134aa9){_0x239444=_0x239444-0x1b8;const _0xc807bb=_0xc807();let _0x545cda=_0xc807bb[_0x239444];return _0x545cda;}function _0xc807(){const _0x1fd0c3=['object','pluginName','importXLSXToSnapshot','Disposable','143384GlqAHS','SHEET_EXCHANGE_CLIENT_PLUGIN','_config','@univerjs-pro/exchange-client','UniverProSheetsExchangeClient','IExchangeOperateService','UniverSheetsExchangeClientPlugin','disposeWithMe','onStarting','IConfigService','@univerjs/ui','FolderIcon','ImportXLSXOperation','63220YkVnDd','1117880aAwxLM','_menuManagerService','sheets-exchange-client.operation.exchange','exportXLSXBySnapshot','length','amd','function','UniverSheets','252JiVFly','OTHERS','Module','exchange.download','738IoZsxm','toStringTag','@univerjs/sheets-ui','getOwnPropertyDescriptor','Plugin','WorkbookExportPermission','_commandService','@univerjs/core','BUTTON','add','153949DsbDJV','Inject','5502tzMJCw','8mcpulH','_initMenus','ICommandService','UniverInstanceType','defineProperty','114eVEGJz','getMenuHiddenObservable','onReady','exchange.upload','MenuItemType','mergeMenu','_injector','get','setConfig','7411700ujZcwQ','DirectExportIcon','RibbonStartGroup','unit','IMenuManagerService','OPERATION','exchange-client.operation.export-xlsx','forEach','SUBITEMS','3976159GuGUIF','ExportXLSXOperation','UniverUi','UniverExchangeClientPlugin','search','CommandType','_initCommands','merge','UNIVER_SHEET','exchange.file','type','ExportIcon'];_0xc807=function(){return _0x1fd0c3;};return _0xc807();}
1
+ (function(_0x2e1c9d,_0x54150c){const _0x1923b1=_0x3635,_0x287da8=_0x2e1c9d();while(!![]){try{const _0x486a2a=-parseInt(_0x1923b1(0x9f))/0x1*(-parseInt(_0x1923b1(0x9b))/0x2)+parseInt(_0x1923b1(0xa7))/0x3+parseInt(_0x1923b1(0xad))/0x4+parseInt(_0x1923b1(0xba))/0x5+-parseInt(_0x1923b1(0x88))/0x6+-parseInt(_0x1923b1(0xb4))/0x7+-parseInt(_0x1923b1(0xac))/0x8;if(_0x486a2a===_0x54150c)break;else _0x287da8['push'](_0x287da8['shift']());}catch(_0x50d9ba){_0x287da8['push'](_0x287da8['shift']());}}}(_0xbe52,0x1b2b0),function(_0x157644,_0xd36d66){const _0x635169=_0x3635;typeof exports==_0x635169(0x93)&&typeof module<'u'?_0xd36d66(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x635169(0xa9)]?define([_0x635169(0x8a),'@univerjs-pro/exchange-client',_0x635169(0xc6),_0x635169(0xa1),'@univerjs/sheets',_0x635169(0x87)],_0xd36d66):(_0x157644=typeof globalThis<'u'?globalThis:_0x157644||self,_0xd36d66(_0x157644['UniverProSheetsExchangeClient']={},_0x157644[_0x635169(0x98)],_0x157644['UniverCore'],_0x157644['UniverUi'],_0x157644[_0x635169(0xc2)],_0x157644[_0x635169(0x9d)]));}(this,function(_0x3d7098,_0x48a075,_0x167483,_0x299aaf,_0x189b1b,_0x47145f){'use strict';const _0x5c8758=_0x3635;const _0x2fa08d={'id':'exchange-client.operation.import-xlsx','type':_0x167483['CommandType'][_0x5c8758(0xbb)],'handler':async _0x45635c=>{const _0x474b26=_0x5c8758,_0x3378de=_0x45635c[_0x474b26(0x94)](_0x48a075[_0x474b26(0x92)]);return new URLSearchParams(location[_0x474b26(0x91)])[_0x474b26(0x94)]('unit')?_0x3378de['importXLSXToUnitId']():_0x3378de[_0x474b26(0xa8)](),!0x0;}},_0x4bae93={'id':'exchange-client.operation.export-xlsx','type':_0x167483[_0x5c8758(0xc3)][_0x5c8758(0xbb)],'handler':async _0x2520b7=>{const _0x36cee9=_0x5c8758,_0x548082=_0x2520b7[_0x36cee9(0x94)](_0x48a075[_0x36cee9(0x92)]);return new URLSearchParams(location[_0x36cee9(0x91)])[_0x36cee9(0x94)](_0x36cee9(0xa5))?_0x548082['exportXLSXByUnitId']():_0x548082['exportXLSXBySnapshot'](),!0x0;}},_0x13f5f7=_0x5c8758(0xc1),_0x54fbf6={},_0x409294='sheets-exchange-client.operation.exchange';function _0x2720e1(_0x2691e7){const _0x139e70=_0x5c8758;return{'id':_0x409294,'type':_0x299aaf[_0x139e70(0x95)][_0x139e70(0xb9)],'icon':_0x139e70(0xb2),'tooltip':_0x139e70(0x97),'hidden$':_0x299aaf['getMenuHiddenObservable'](_0x2691e7,_0x167483[_0x139e70(0x90)][_0x139e70(0xaf)]),'disabled$':_0x47145f[_0x139e70(0xb5)](_0x2691e7,{'workbookTypes':[_0x189b1b[_0x139e70(0x84)]]})};}function _0xb77e97(){const _0x3fa96f=_0x5c8758;return{'id':_0x2fa08d['id'],'type':_0x299aaf['MenuItemType'][_0x3fa96f(0x8b)],'title':_0x3fa96f(0xb8),'icon':_0x3fa96f(0xbe)};}function _0x595db2(){const _0x24c75f=_0x5c8758;return{'id':_0x4bae93['id'],'type':_0x299aaf[_0x24c75f(0x95)][_0x24c75f(0x8b)],'title':'exchange.download','icon':_0x24c75f(0xb6)};}const _0x4b0f1e={[_0x299aaf[_0x5c8758(0xb1)]['OTHERS']]:{[_0x409294]:{'order':0.3,'menuItemFactory':_0x2720e1,[_0x2fa08d['id']]:{'order':0x0,'menuItemFactory':_0xb77e97},[_0x4bae93['id']]:{'order':0x1,'menuItemFactory':_0x595db2}}}};var _0x1ae10b=Object[_0x5c8758(0x8c)],_0x53a48a=(_0x202ebd,_0x233e0d,_0x1bd795,_0x4b394a)=>{const _0x441bd3=_0x5c8758;for(var _0x47805c=_0x4b394a>0x1?void 0x0:_0x4b394a?_0x1ae10b(_0x233e0d,_0x1bd795):_0x233e0d,_0x266187=_0x202ebd[_0x441bd3(0xc0)]-0x1,_0x34bc4e;_0x266187>=0x0;_0x266187--)(_0x34bc4e=_0x202ebd[_0x266187])&&(_0x47805c=_0x34bc4e(_0x47805c)||_0x47805c);return _0x47805c;},_0x1f11a7=(_0x3c9c1c,_0x5bbf77)=>(_0x52f4bd,_0x4af979)=>_0x5bbf77(_0x52f4bd,_0x4af979,_0x3c9c1c);let _0x40ab62=class extends _0x167483[_0x5c8758(0xb7)]{constructor(_0x47b591,_0x1243aa){const _0x32c2d5=_0x5c8758;super(),this[_0x32c2d5(0xa4)]=_0x47b591,this['_menuManagerService']=_0x1243aa,this[_0x32c2d5(0x85)](),this[_0x32c2d5(0x96)]();}['_initCommands'](){[_0x2fa08d,_0x4bae93]['forEach'](_0xcba131=>{const _0x27df46=_0x3635;this[_0x27df46(0xc7)](this['_commandService'][_0x27df46(0x9c)](_0xcba131));});}[_0x5c8758(0x96)](){const _0x2c38b1=_0x5c8758;this[_0x2c38b1(0x8f)][_0x2c38b1(0x8e)](_0x4b0f1e);}};_0x40ab62=_0x53a48a([_0x1f11a7(0x0,_0x167483[_0x5c8758(0x99)]),_0x1f11a7(0x1,_0x299aaf[_0x5c8758(0xab)])],_0x40ab62);var _0x478a26=Object[_0x5c8758(0xbc)],_0x383388=Object['getOwnPropertyDescriptor'],_0xcf1e84=(_0x435009,_0x4eef0c,_0x14773d)=>_0x4eef0c in _0x435009?_0x478a26(_0x435009,_0x4eef0c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14773d}):_0x435009[_0x4eef0c]=_0x14773d,_0x560e52=(_0x5010c,_0x1e4985,_0x52e88c,_0x486d96)=>{const _0x36c8e9=_0x5c8758;for(var _0x4aeccd=_0x486d96>0x1?void 0x0:_0x486d96?_0x383388(_0x1e4985,_0x52e88c):_0x1e4985,_0x183049=_0x5010c[_0x36c8e9(0xc0)]-0x1,_0xfabaa6;_0x183049>=0x0;_0x183049--)(_0xfabaa6=_0x5010c[_0x183049])&&(_0x4aeccd=_0xfabaa6(_0x4aeccd)||_0x4aeccd);return _0x4aeccd;},_0x49fbb1=(_0x26b9ba,_0x19d51c)=>(_0x4c326f,_0x465745)=>_0x19d51c(_0x4c326f,_0x465745,_0x26b9ba),_0x556d7f=(_0x17b744,_0x593235,_0x238c4d)=>_0xcf1e84(_0x17b744,typeof _0x593235!=_0x5c8758(0xbd)?_0x593235+'':_0x593235,_0x238c4d);const _0x3c7693='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x3d7098['UniverSheetsExchangeClientPlugin']=class extends _0x167483[_0x5c8758(0xa3)]{constructor(_0xf31a54=_0x54fbf6,_0x27e90d,_0x26d1f3){const _0x53c977=_0x5c8758;super(),this[_0x53c977(0xb0)]=_0xf31a54,this[_0x53c977(0xa6)]=_0x27e90d,this[_0x53c977(0xc5)]=_0x26d1f3;const {menu:_0x3f5622,..._0x5a1524}=_0x167483['merge']({},_0x54fbf6,this['_config']);_0x3f5622&&this['_configService'][_0x53c977(0xc4)](_0x53c977(0xae),_0x3f5622,{'merge':!0x0}),this[_0x53c977(0xc5)]['setConfig'](_0x13f5f7,_0x5a1524);}[_0x5c8758(0xbf)](){const _0x513136=_0x5c8758;[[_0x40ab62]]['forEach'](_0x17e448=>this[_0x513136(0xa6)][_0x513136(0xaa)](_0x17e448));}[_0x5c8758(0x9a)](){const _0x279dc1=_0x5c8758;this[_0x279dc1(0xa6)]['get'](_0x40ab62);}},_0x556d7f(_0x3d7098[_0x5c8758(0xc9)],_0x5c8758(0xa2),_0x3c7693),_0x556d7f(_0x3d7098[_0x5c8758(0xc9)],_0x5c8758(0x86),_0x167483[_0x5c8758(0x90)][_0x5c8758(0xaf)]),_0x3d7098[_0x5c8758(0xc9)]=_0x560e52([_0x167483['DependentOn'](_0x48a075[_0x5c8758(0xb3)]),_0x49fbb1(0x1,_0x167483[_0x5c8758(0xc8)](_0x167483[_0x5c8758(0x8d)])),_0x49fbb1(0x2,_0x167483[_0x5c8758(0xa0)])],_0x3d7098['UniverSheetsExchangeClientPlugin']),_0x3d7098['ExportXLSXOperation']=_0x4bae93,_0x3d7098['ImportXLSXOperation']=_0x2fa08d,Object[_0x5c8758(0xbc)](_0x3d7098,Symbol[_0x5c8758(0x89)],{'value':_0x5c8758(0x9e)});}));function _0x3635(_0x2f6219,_0x6b6aed){_0x2f6219=_0x2f6219-0x84;const _0xbe525d=_0xbe52();let _0x3635bb=_0xbe525d[_0x2f6219];return _0x3635bb;}function _0xbe52(){const _0x2d6a70=['UniverProExchangeClient','ICommandService','onReady','206IkIhMp','registerCommand','UniverSheetsUi','Module','1191CIVGlF','IConfigService','@univerjs/ui','pluginName','Plugin','_commandService','unit','_injector','231315awgCqm','importXLSXToSnapshot','amd','add','IMenuManagerService','322360FibKli','814520rWKvZH','menu','UNIVER_SHEET','_config','RibbonStartGroup','DirectExportIcon','UniverExchangeClientPlugin','1445766sVoqzO','getCurrentRangeDisable$','ExportIcon','Disposable','exchange.upload','SUBITEMS','604920xReCzf','OPERATION','defineProperty','symbol','FolderIcon','onStarting','length','sheets-exchange-client.config','UniverSheets','CommandType','setConfig','_configService','@univerjs/core','disposeWithMe','Inject','UniverSheetsExchangeClientPlugin','WorkbookExportPermission','_initCommands','type','@univerjs/sheets-ui','997674BuMMjg','toStringTag','exports','BUTTON','getOwnPropertyDescriptor','Injector','mergeMenu','_menuManagerService','UniverInstanceType','search','IExchangeOperateService','object','get','MenuItemType','_initMenus','exchange.file'];_0xbe52=function(){return _0x2d6a70;};return _0xbe52();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.12.3-experimental.20251204-1549a8e",
3
+ "version": "0.12.3-experimental.20251205-71d07c3",
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.12.3-experimental.20251204-1549a8e",
46
- "@univerjs-pro/exchange-client": "0.12.3-experimental.20251204-1549a8e",
47
- "@univerjs/sheets": "0.12.3-experimental.20251204-1549a8e",
48
- "@univerjs/sheets-ui": "0.12.3-experimental.20251204-1549a8e",
49
- "@univerjs/ui": "0.12.3-experimental.20251204-1549a8e"
45
+ "@univerjs-pro/exchange-client": "0.12.3-experimental.20251205-71d07c3",
46
+ "@univerjs/sheets-ui": "0.12.3-experimental.20251205-71d07c3",
47
+ "@univerjs/core": "0.12.3-experimental.20251205-71d07c3",
48
+ "@univerjs/sheets": "0.12.3-experimental.20251205-71d07c3",
49
+ "@univerjs/ui": "0.12.3-experimental.20251205-71d07c3"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",