@univerjs-pro/sheets-exchange-client 0.10.10-experimental.20251016-33b0941 → 0.10.10-nightly.202510180256

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 _0x1d4f2f=_0xa130;(function(_0x49c488,_0x387f1c){const _0x576cda=_0xa130,_0x4227e5=_0x49c488();while(!![]){try{const _0x1df5e8=-parseInt(_0x576cda(0x1fd))/0x1+-parseInt(_0x576cda(0x21e))/0x2+parseInt(_0x576cda(0x225))/0x3+-parseInt(_0x576cda(0x21d))/0x4*(-parseInt(_0x576cda(0x21c))/0x5)+-parseInt(_0x576cda(0x204))/0x6+parseInt(_0x576cda(0x20c))/0x7*(-parseInt(_0x576cda(0x1fa))/0x8)+parseInt(_0x576cda(0x21a))/0x9;if(_0x1df5e8===_0x387f1c)break;else _0x4227e5['push'](_0x4227e5['shift']());}catch(_0x117248){_0x4227e5['push'](_0x4227e5['shift']());}}}(_0x12cd,0xdb30b));function _0xa130(_0x19cb7c,_0x864b3){const _0x12cdc4=_0x12cd();return _0xa130=function(_0xa13051,_0x52025e){_0xa13051=_0xa13051-0x1e4;let _0x3ce867=_0x12cdc4[_0xa13051];return _0x3ce867;},_0xa130(_0x19cb7c,_0x864b3);}Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x1d4f2f(0x21f)});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':_0x1d4f2f(0x21b),'type':i[_0x1d4f2f(0x1ee)][_0x1d4f2f(0x1ff)],'handler':async _0xf1c28=>{const _0x23d93a=_0x1d4f2f,_0x2d59bd=_0xf1c28['get'](g[_0x23d93a(0x200)]);return new URLSearchParams(location[_0x23d93a(0x205)])['get']('unit')?_0x2d59bd[_0x23d93a(0x1e7)]():_0x2d59bd['importXLSXToSnapshot'](),!0x0;}},p={'id':_0x1d4f2f(0x219),'type':i[_0x1d4f2f(0x1ee)][_0x1d4f2f(0x1ff)],'handler':async _0x21c161=>{const _0x2109a5=_0x1d4f2f,_0x1020f2=_0x21c161[_0x2109a5(0x1ef)](g[_0x2109a5(0x200)]);return new URLSearchParams(location[_0x2109a5(0x205)])[_0x2109a5(0x1ef)](_0x2109a5(0x1f5))?_0x1020f2[_0x2109a5(0x206)]():_0x1020f2[_0x2109a5(0x1ea)](),!0x0;}},v='sheets-exchange-client.config',h={},S='sheets-exchange-client.operation.exchange';function _0x12cd(){const _0x33a948=['UniverSheetsExchangeClientPlugin','merge','menu','DependentOn','ExportXLSXOperation','UniverInstanceType','onStarting','exchange-client.operation.export-xlsx','20822130UnKFVJ','exchange-client.operation.import-xlsx','5KgSZnJ','4535468keDbwZ','1541770waDucd','Module','length','disposeWithMe','ICommandService','ImportXLSXOperation','pluginName','2506668PYnXDU','UniverExchangeClientPlugin','Plugin','Disposable','getCurrentRangeDisable$','importXLSXToUnitId','MenuItemType','_config','exportXLSXBySnapshot','exchange.file','getOwnPropertyDescriptor','UNIVER_SHEET','CommandType','get','exchange.download','BUTTON','Injector','FolderIcon','_injector','unit','_configService','add','_menuManagerService','getMenuHiddenObservable','1192kIcwCw','OTHERS','Inject','545426iPqoNi','setConfig','OPERATION','IExchangeOperateService','symbol','type','mergeMenu','8439444fGLxAR','search','exportXLSXByUnitId','_commandService','SUBITEMS','DirectExportIcon','_initCommands','forEach','31115ENrbtV','exchange.upload','_initMenus','registerCommand','ExportIcon','IConfigService'];_0x12cd=function(){return _0x33a948;};return _0x12cd();}function x(_0x57e864){const _0x3213bb=_0x1d4f2f;return{'id':S,'type':c[_0x3213bb(0x1e8)][_0x3213bb(0x208)],'icon':_0x3213bb(0x209),'tooltip':_0x3213bb(0x1eb),'hidden$':c[_0x3213bb(0x1f9)](_0x57e864,i['UniverInstanceType'][_0x3213bb(0x1ed)]),'disabled$':I[_0x3213bb(0x1e6)](_0x57e864,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x2102d1=_0x1d4f2f;return{'id':l['id'],'type':c['MenuItemType'][_0x2102d1(0x1f1)],'title':_0x2102d1(0x20d),'icon':_0x2102d1(0x1f3)};}function C(){const _0x3bbd50=_0x1d4f2f;return{'id':p['id'],'type':c[_0x3bbd50(0x1e8)][_0x3bbd50(0x1f1)],'title':_0x3bbd50(0x1f0),'icon':_0x3bbd50(0x210)};}const f={[c['RibbonStartGroup'][_0x1d4f2f(0x1fb)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x232ce4,_0x1a724a,_0x3a6208,_0x264feb)=>{const _0x383494=_0x1d4f2f;for(var _0x125c96=_0x264feb>0x1?void 0x0:_0x264feb?T(_0x1a724a,_0x3a6208):_0x1a724a,_0x40753f=_0x232ce4[_0x383494(0x220)]-0x1,_0x3d772b;_0x40753f>=0x0;_0x40753f--)(_0x3d772b=_0x232ce4[_0x40753f])&&(_0x125c96=_0x3d772b(_0x125c96)||_0x125c96);return _0x125c96;},m=(_0x6c80e2,_0x2e6b3a)=>(_0x172a5d,_0x100613)=>_0x2e6b3a(_0x172a5d,_0x100613,_0x6c80e2);let u=class extends i[_0x1d4f2f(0x1e5)]{constructor(_0x23b42e,_0x1892df){const _0x3e5cf4=_0x1d4f2f;super(),this[_0x3e5cf4(0x207)]=_0x23b42e,this['_menuManagerService']=_0x1892df,this[_0x3e5cf4(0x20a)](),this[_0x3e5cf4(0x20e)]();}[_0x1d4f2f(0x20a)](){const _0x424f51=_0x1d4f2f;[l,p][_0x424f51(0x20b)](_0x57c136=>{const _0x1d03cb=_0x424f51;this[_0x1d03cb(0x221)](this['_commandService'][_0x1d03cb(0x20f)](_0x57c136));});}[_0x1d4f2f(0x20e)](){const _0x13a258=_0x1d4f2f;this[_0x13a258(0x1f8)][_0x13a258(0x203)](f);}};u=y([m(0x0,i[_0x1d4f2f(0x222)]),m(0x1,c['IMenuManagerService'])],u);var O=Object['defineProperty'],U=Object[_0x1d4f2f(0x1ec)],X=(_0x28138e,_0x3ad8ae,_0x472dec)=>_0x3ad8ae in _0x28138e?O(_0x28138e,_0x3ad8ae,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x472dec}):_0x28138e[_0x3ad8ae]=_0x472dec,N=(_0x26db1a,_0x49afac,_0x45d23c,_0x22469b)=>{const _0x17b1bc=_0x1d4f2f;for(var _0x89a192=_0x22469b>0x1?void 0x0:_0x22469b?U(_0x49afac,_0x45d23c):_0x49afac,_0x10004f=_0x26db1a[_0x17b1bc(0x220)]-0x1,_0x30547e;_0x10004f>=0x0;_0x10004f--)(_0x30547e=_0x26db1a[_0x10004f])&&(_0x89a192=_0x30547e(_0x89a192)||_0x89a192);return _0x89a192;},d=(_0x2af11d,_0x327710)=>(_0xc199bb,_0x5140dd)=>_0x327710(_0xc199bb,_0x5140dd,_0x2af11d),E=(_0x11a36a,_0x3dced5,_0x17ed75)=>X(_0x11a36a,typeof _0x3dced5!=_0x1d4f2f(0x201)?_0x3dced5+'':_0x3dced5,_0x17ed75);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports[_0x1d4f2f(0x212)]=class extends i[_0x1d4f2f(0x1e4)]{constructor(_0x364ab9=h,_0xe98b1d,_0x512737){const _0x546b90=_0x1d4f2f;super(),this[_0x546b90(0x1e9)]=_0x364ab9,this[_0x546b90(0x1f4)]=_0xe98b1d,this['_configService']=_0x512737;const {menu:_0x25bdd1,..._0x30a2b9}=i[_0x546b90(0x213)]({},h,this[_0x546b90(0x1e9)]);_0x25bdd1&&this[_0x546b90(0x1f6)]['setConfig'](_0x546b90(0x214),_0x25bdd1,{'merge':!0x0}),this['_configService'][_0x546b90(0x1fe)](v,_0x30a2b9);}[_0x1d4f2f(0x218)](){const _0x1eed59=_0x1d4f2f;[[u]][_0x1eed59(0x20b)](_0x1ef874=>this[_0x1eed59(0x1f4)][_0x1eed59(0x1f7)](_0x1ef874));}['onReady'](){const _0x6b95d8=_0x1d4f2f;this[_0x6b95d8(0x1f4)]['get'](u);}},E(exports['UniverSheetsExchangeClientPlugin'],_0x1d4f2f(0x224),L),E(exports[_0x1d4f2f(0x212)],_0x1d4f2f(0x202),i[_0x1d4f2f(0x217)][_0x1d4f2f(0x1ed)]),exports[_0x1d4f2f(0x212)]=N([i[_0x1d4f2f(0x215)](g[_0x1d4f2f(0x226)]),d(0x1,i[_0x1d4f2f(0x1fc)](i[_0x1d4f2f(0x1f2)])),d(0x2,i[_0x1d4f2f(0x211)])],exports[_0x1d4f2f(0x212)]),exports[_0x1d4f2f(0x216)]=p,exports[_0x1d4f2f(0x223)]=l;
1
+ 'use strict';const _0x527f45=_0x27f2;(function(_0x3af626,_0x513fae){const _0xeb7dd4=_0x27f2,_0x5a922e=_0x3af626();while(!![]){try{const _0x1c56c5=parseInt(_0xeb7dd4(0xd4))/0x1*(parseInt(_0xeb7dd4(0xed))/0x2)+-parseInt(_0xeb7dd4(0xe2))/0x3*(parseInt(_0xeb7dd4(0xe8))/0x4)+parseInt(_0xeb7dd4(0xbd))/0x5*(-parseInt(_0xeb7dd4(0xd9))/0x6)+parseInt(_0xeb7dd4(0xc2))/0x7+-parseInt(_0xeb7dd4(0xf3))/0x8+-parseInt(_0xeb7dd4(0xc9))/0x9+-parseInt(_0xeb7dd4(0xde))/0xa*(-parseInt(_0xeb7dd4(0xd7))/0xb);if(_0x1c56c5===_0x513fae)break;else _0x5a922e['push'](_0x5a922e['shift']());}catch(_0x155c86){_0x5a922e['push'](_0x5a922e['shift']());}}}(_0x1fa1,0x8af19));Object[_0x527f45(0xf8)](exports,Symbol['toStringTag'],{'value':_0x527f45(0xe9)});function _0x27f2(_0x27ee88,_0x1f93ee){const _0x1fa133=_0x1fa1();return _0x27f2=function(_0x27f235,_0x358b31){_0x27f235=_0x27f235-0xba;let _0x231816=_0x1fa133[_0x27f235];return _0x231816;},_0x27f2(_0x27ee88,_0x1f93ee);}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':_0x527f45(0xc3),'type':i['CommandType'][_0x527f45(0xc1)],'handler':async _0x7a45d5=>{const _0x14792e=_0x527f45,_0x269567=_0x7a45d5[_0x14792e(0xcb)](g['IExchangeOperateService']);return new URLSearchParams(location['search'])[_0x14792e(0xcb)]('unit')?_0x269567[_0x14792e(0xe4)]():_0x269567[_0x14792e(0xc0)](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i[_0x527f45(0xe1)][_0x527f45(0xc1)],'handler':async _0x1f52d0=>{const _0x372023=_0x527f45,_0x3c2c49=_0x1f52d0[_0x372023(0xcb)](g[_0x372023(0xcf)]);return new URLSearchParams(location['search'])[_0x372023(0xcb)](_0x372023(0xd6))?_0x3c2c49[_0x372023(0xf9)]():_0x3c2c49['exportXLSXBySnapshot'](),!0x0;}},v=_0x527f45(0xba),h={},S=_0x527f45(0xf1);function x(_0x3fa636){const _0x334549=_0x527f45;return{'id':S,'type':c[_0x334549(0xdb)][_0x334549(0xc8)],'icon':_0x334549(0xd5),'tooltip':_0x334549(0xee),'hidden$':c[_0x334549(0xe0)](_0x3fa636,i['UniverInstanceType']['UNIVER_SHEET']),'disabled$':I[_0x334549(0xe6)](_0x3fa636,{'workbookTypes':[_[_0x334549(0xcc)]]})};}function P(){const _0x5a1178=_0x527f45;return{'id':l['id'],'type':c[_0x5a1178(0xdb)][_0x5a1178(0xcd)],'title':'exchange.upload','icon':_0x5a1178(0xe7)};}function C(){const _0x4ea25d=_0x527f45;return{'id':p['id'],'type':c['MenuItemType']['BUTTON'],'title':_0x4ea25d(0xdd),'icon':'ExportIcon'};}const f={[c[_0x527f45(0xbc)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x527f45(0xd0)],y=(_0x35546c,_0x3b1830,_0x552bb7,_0x5c57b5)=>{const _0x3593ef=_0x527f45;for(var _0x20b39b=_0x5c57b5>0x1?void 0x0:_0x5c57b5?T(_0x3b1830,_0x552bb7):_0x3b1830,_0x3a556=_0x35546c[_0x3593ef(0xbf)]-0x1,_0x4a32a6;_0x3a556>=0x0;_0x3a556--)(_0x4a32a6=_0x35546c[_0x3a556])&&(_0x20b39b=_0x4a32a6(_0x20b39b)||_0x20b39b);return _0x20b39b;},m=(_0x399dd1,_0x1b6ce9)=>(_0x3c6cbc,_0x28ce8d)=>_0x1b6ce9(_0x3c6cbc,_0x28ce8d,_0x399dd1);let u=class extends i[_0x527f45(0xef)]{constructor(_0xa282a8,_0x3db236){const _0x27c6f0=_0x527f45;super(),this[_0x27c6f0(0xc6)]=_0xa282a8,this[_0x27c6f0(0xda)]=_0x3db236,this[_0x27c6f0(0xc4)](),this['_initMenus']();}[_0x527f45(0xc4)](){const _0xa66a2b=_0x527f45;[l,p][_0xa66a2b(0xc5)](_0xf061c6=>{const _0x24b911=_0xa66a2b;this[_0x24b911(0xe5)](this[_0x24b911(0xc6)][_0x24b911(0xf0)](_0xf061c6));});}[_0x527f45(0xdf)](){const _0x39f295=_0x527f45;this[_0x39f295(0xda)][_0x39f295(0xf6)](f);}};u=y([m(0x0,i[_0x527f45(0xf7)]),m(0x1,c[_0x527f45(0xe3)])],u);var O=Object[_0x527f45(0xf8)],U=Object[_0x527f45(0xd0)],X=(_0x222d3c,_0x5c7412,_0x12536b)=>_0x5c7412 in _0x222d3c?O(_0x222d3c,_0x5c7412,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x12536b}):_0x222d3c[_0x5c7412]=_0x12536b,N=(_0x58a81a,_0x3a28b7,_0x8257df,_0x57b4c6)=>{const _0x3ce854=_0x527f45;for(var _0x183d2b=_0x57b4c6>0x1?void 0x0:_0x57b4c6?U(_0x3a28b7,_0x8257df):_0x3a28b7,_0x3c7de3=_0x58a81a[_0x3ce854(0xbf)]-0x1,_0x24492a;_0x3c7de3>=0x0;_0x3c7de3--)(_0x24492a=_0x58a81a[_0x3c7de3])&&(_0x183d2b=_0x24492a(_0x183d2b)||_0x183d2b);return _0x183d2b;},d=(_0x58980c,_0x6a33c1)=>(_0x263c6b,_0x37fc8b)=>_0x6a33c1(_0x263c6b,_0x37fc8b,_0x58980c),E=(_0x559d34,_0x264288,_0x4b9426)=>X(_0x559d34,typeof _0x264288!='symbol'?_0x264288+'':_0x264288,_0x4b9426);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';function _0x1fa1(){const _0x356e6e=['exchange-client.operation.import-xlsx','_initCommands','forEach','_commandService','_configService','SUBITEMS','652284NYISTM','Inject','get','WorkbookExportPermission','BUTTON','add','IExchangeOperateService','getOwnPropertyDescriptor','setConfig','UNIVER_SHEET','DependentOn','68919ibmeDw','DirectExportIcon','unit','2853411qBHByn','merge','2766jfwJFO','_menuManagerService','MenuItemType','type','exchange.download','20jEVOwd','_initMenus','getMenuHiddenObservable','CommandType','3NfPTsh','IMenuManagerService','importXLSXToUnitId','disposeWithMe','getCurrentRangeDisable$','FolderIcon','1146692WKzYWo','Module','pluginName','UniverSheetsExchangeClientPlugin','IConfigService','14suGNtJ','exchange.file','Disposable','registerCommand','sheets-exchange-client.operation.exchange','_injector','20912xXgwdW','_config','onReady','mergeMenu','ICommandService','defineProperty','exportXLSXByUnitId','sheets-exchange-client.config','Plugin','RibbonStartGroup','10805ZbGcWY','ExportXLSXOperation','length','importXLSXToSnapshot','OPERATION','6481034tHGyOF'];_0x1fa1=function(){return _0x356e6e;};return _0x1fa1();}exports[_0x527f45(0xeb)]=class extends i[_0x527f45(0xbb)]{constructor(_0x2767af=h,_0x1a6c00,_0x37a5f8){const _0x6c3fcf=_0x527f45;super(),this[_0x6c3fcf(0xf4)]=_0x2767af,this['_injector']=_0x1a6c00,this['_configService']=_0x37a5f8;const {menu:_0x1d9d33,..._0x121992}=i[_0x6c3fcf(0xd8)]({},h,this[_0x6c3fcf(0xf4)]);_0x1d9d33&&this[_0x6c3fcf(0xc7)][_0x6c3fcf(0xd1)]('menu',_0x1d9d33,{'merge':!0x0}),this['_configService'][_0x6c3fcf(0xd1)](v,_0x121992);}['onStarting'](){const _0x21d469=_0x527f45;[[u]]['forEach'](_0x3d1b5f=>this[_0x21d469(0xf2)][_0x21d469(0xce)](_0x3d1b5f));}[_0x527f45(0xf5)](){const _0x17156a=_0x527f45;this['_injector'][_0x17156a(0xcb)](u);}},E(exports[_0x527f45(0xeb)],_0x527f45(0xea),L),E(exports[_0x527f45(0xeb)],_0x527f45(0xdc),i['UniverInstanceType'][_0x527f45(0xd2)]),exports[_0x527f45(0xeb)]=N([i[_0x527f45(0xd3)](g['UniverExchangeClientPlugin']),d(0x1,i[_0x527f45(0xca)](i['Injector'])),d(0x2,i[_0x527f45(0xec)])],exports['UniverSheetsExchangeClientPlugin']),exports[_0x527f45(0xbe)]=p,exports['ImportXLSXOperation']=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0xfdf680=_0x3571;(function(_0x375b90,_0x341f52){const _0x467c81=_0x3571,_0x5e86ec=_0x375b90();while(!![]){try{const _0x11b65f=parseInt(_0x467c81(0xb7))/0x1*(-parseInt(_0x467c81(0xcd))/0x2)+-parseInt(_0x467c81(0xa6))/0x3+parseInt(_0x467c81(0xd5))/0x4*(parseInt(_0x467c81(0xb4))/0x5)+parseInt(_0x467c81(0xa9))/0x6+parseInt(_0x467c81(0xc2))/0x7+parseInt(_0x467c81(0xb8))/0x8*(parseInt(_0x467c81(0xb9))/0x9)+-parseInt(_0x467c81(0xbf))/0xa*(parseInt(_0x467c81(0xad))/0xb);if(_0x11b65f===_0x341f52)break;else _0x5e86ec['push'](_0x5e86ec['shift']());}catch(_0x1c8d95){_0x5e86ec['push'](_0x5e86ec['shift']());}}}(_0x56da,0x78066));import{IExchangeOperateService as _0x146752,UniverExchangeClientPlugin as _0x3b6be4}from'@univerjs-pro/exchange-client';import{CommandType as _0x5a70f3,UniverInstanceType as _0x4e4d14,Disposable as _0x163634,ICommandService as _0x6643a1,DependentOn as _0xecbde9,Inject as _0x1801e8,Injector as _0x10dddd,IConfigService as _0x43c9be,Plugin as _0x157efa,merge as _0x161a24}from'@univerjs/core';function _0x3571(_0x19d963,_0x39b296){const _0x56daa0=_0x56da();return _0x3571=function(_0x357113,_0x388cdd){_0x357113=_0x357113-0xa6;let _0x5ac6e7=_0x56daa0[_0x357113];return _0x5ac6e7;},_0x3571(_0x19d963,_0x39b296);}import{MenuItemType as _0x39b3d7,getMenuHiddenObservable as _0x2026f8,RibbonStartGroup as _0x45aaa7,IMenuManagerService as _0x2d7b69}from'@univerjs/ui';function _0x56da(){const _0x211964=['_configService','exchange.file','555682bIllUi','exchange.upload','OPERATION','exchange-client.operation.export-xlsx','search','_initCommands','FolderIcon','UNIVER_SHEET','253076npkpMq','1078674tIaVnP','exportXLSXByUnitId','disposeWithMe','2493402BuSkLN','onStarting','SUBITEMS','onReady','4723939zcgFRD','_initMenus','forEach','menu','_menuManagerService','registerCommand','SHEET_EXCHANGE_CLIENT_PLUGIN','55awjNsw','getOwnPropertyDescriptor','OTHERS','3qwzEei','16OGxkBe','3576042VfnouL','_injector','importXLSXToSnapshot','pluginName','importXLSXToUnitId','type','10IqtDct','mergeMenu','ExportIcon','1455650uNaJNY','add','sheets-exchange-client.config','_commandService','symbol','get','_config','exportXLSXBySnapshot','length'];_0x56da=function(){return _0x211964;};return _0x56da();}import{WorkbookExportPermission as _0x4afc30}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x14dbbb}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x5a70f3[_0xfdf680(0xcf)],'handler':async _0x17a051=>{const _0x3853ba=_0xfdf680,_0x619edb=_0x17a051['get'](_0x146752);return new URLSearchParams(location['search'])['get']('unit')?_0x619edb[_0x3853ba(0xbd)]():_0x619edb[_0x3853ba(0xbb)](),!0x0;}},u={'id':_0xfdf680(0xd0),'type':_0x5a70f3[_0xfdf680(0xcf)],'handler':async _0x1e8d58=>{const _0x163ee5=_0xfdf680,_0x4749d1=_0x1e8d58[_0x163ee5(0xc7)](_0x146752);return new URLSearchParams(location[_0x163ee5(0xd1)])[_0x163ee5(0xc7)]('unit')?_0x4749d1[_0x163ee5(0xa7)]():_0x4749d1[_0x163ee5(0xc9)](),!0x0;}},H=_0xfdf680(0xc4),l={},S='sheets-exchange-client.operation.exchange';function R(_0x4cfaee){const _0x19cfb2=_0xfdf680;return{'id':S,'type':_0x39b3d7[_0x19cfb2(0xab)],'icon':'DirectExportIcon','tooltip':_0x19cfb2(0xcc),'hidden$':_0x2026f8(_0x4cfaee,_0x4e4d14[_0x19cfb2(0xd4)]),'disabled$':_0x14dbbb(_0x4cfaee,{'workbookTypes':[_0x4afc30]})};}function w(){const _0x5c7ad1=_0xfdf680;return{'id':p['id'],'type':_0x39b3d7['BUTTON'],'title':_0x5c7ad1(0xce),'icon':_0x5c7ad1(0xd3)};}function D(){const _0x3f9993=_0xfdf680;return{'id':u['id'],'type':_0x39b3d7['BUTTON'],'title':'exchange.download','icon':_0x3f9993(0xc1)};}const F={[_0x45aaa7[_0xfdf680(0xb6)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0xfdf680(0xb5)],A=(_0x405603,_0x27f54c,_0x48b708,_0x2e8193)=>{const _0x342ad3=_0xfdf680;for(var _0x47ed96=_0x2e8193>0x1?void 0x0:_0x2e8193?G(_0x27f54c,_0x48b708):_0x27f54c,_0x75bef9=_0x405603[_0x342ad3(0xca)]-0x1,_0xe950f5;_0x75bef9>=0x0;_0x75bef9--)(_0xe950f5=_0x405603[_0x75bef9])&&(_0x47ed96=_0xe950f5(_0x47ed96)||_0x47ed96);return _0x47ed96;},d=(_0xb9196f,_0x5a9459)=>(_0x5d55e8,_0x5c64a4)=>_0x5a9459(_0x5d55e8,_0x5c64a4,_0xb9196f);let c=class extends _0x163634{constructor(_0x252ec7,_0xbd0780){const _0x4312d2=_0xfdf680;super(),this[_0x4312d2(0xc5)]=_0x252ec7,this[_0x4312d2(0xb1)]=_0xbd0780,this[_0x4312d2(0xd2)](),this['_initMenus']();}[_0xfdf680(0xd2)](){const _0x37abbf=_0xfdf680;[p,u][_0x37abbf(0xaf)](_0x22ff1c=>{const _0x2d48d5=_0x37abbf;this[_0x2d48d5(0xa8)](this['_commandService'][_0x2d48d5(0xb2)](_0x22ff1c));});}[_0xfdf680(0xae)](){const _0x3b9819=_0xfdf680;this[_0x3b9819(0xb1)][_0x3b9819(0xc0)](F);}};c=A([d(0x0,_0x6643a1),d(0x1,_0x2d7b69)],c);var j=Object['defineProperty'],B=Object['getOwnPropertyDescriptor'],$=(_0x3d9abb,_0x449d55,_0x58178e)=>_0x449d55 in _0x3d9abb?j(_0x3d9abb,_0x449d55,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58178e}):_0x3d9abb[_0x449d55]=_0x58178e,V=(_0x174b63,_0x298344,_0x271239,_0x1b9cd9)=>{const _0x1cdf3f=_0xfdf680;for(var _0x351805=_0x1b9cd9>0x1?void 0x0:_0x1b9cd9?B(_0x298344,_0x271239):_0x298344,_0x2cef0e=_0x174b63[_0x1cdf3f(0xca)]-0x1,_0x2a4ffd;_0x2cef0e>=0x0;_0x2cef0e--)(_0x2a4ffd=_0x174b63[_0x2cef0e])&&(_0x351805=_0x2a4ffd(_0x351805)||_0x351805);return _0x351805;},_=(_0x2b9853,_0x2a6e9b)=>(_0x1b506b,_0x5c6a71)=>_0x2a6e9b(_0x1b506b,_0x5c6a71,_0x2b9853),I=(_0x21e7cd,_0x45102d,_0x462677)=>$(_0x21e7cd,typeof _0x45102d!=_0xfdf680(0xc6)?_0x45102d+'':_0x45102d,_0x462677);const W=_0xfdf680(0xb3);let s=class extends _0x157efa{constructor(_0x506c2e=l,_0x19d145,_0x502d00){const _0x365dc4=_0xfdf680;super(),this[_0x365dc4(0xc8)]=_0x506c2e,this[_0x365dc4(0xba)]=_0x19d145,this['_configService']=_0x502d00;const {menu:_0x3123c9,..._0x2061a7}=_0x161a24({},l,this[_0x365dc4(0xc8)]);_0x3123c9&&this[_0x365dc4(0xcb)]['setConfig'](_0x365dc4(0xb0),_0x3123c9,{'merge':!0x0}),this[_0x365dc4(0xcb)]['setConfig'](H,_0x2061a7);}[_0xfdf680(0xaa)](){const _0x2bb905=_0xfdf680;[[c]][_0x2bb905(0xaf)](_0x44a9c3=>this[_0x2bb905(0xba)][_0x2bb905(0xc3)](_0x44a9c3));}[_0xfdf680(0xac)](){const _0x1c8df1=_0xfdf680;this[_0x1c8df1(0xba)][_0x1c8df1(0xc7)](c);}};I(s,_0xfdf680(0xbc),W),I(s,_0xfdf680(0xbe),_0x4e4d14[_0xfdf680(0xd4)]),s=V([_0xecbde9(_0x3b6be4),_(0x1,_0x1801e8(_0x10dddd)),_(0x2,_0x43c9be)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x328574=_0x18a1;(function(_0x259263,_0x207ed6){const _0x5444dc=_0x18a1,_0xac228b=_0x259263();while(!![]){try{const _0x50bb53=-parseInt(_0x5444dc(0x8b))/0x1*(parseInt(_0x5444dc(0x7f))/0x2)+-parseInt(_0x5444dc(0x87))/0x3+parseInt(_0x5444dc(0x9b))/0x4+parseInt(_0x5444dc(0x95))/0x5+parseInt(_0x5444dc(0x7c))/0x6*(-parseInt(_0x5444dc(0x8e))/0x7)+-parseInt(_0x5444dc(0x85))/0x8+parseInt(_0x5444dc(0x7e))/0x9;if(_0x50bb53===_0x207ed6)break;else _0xac228b['push'](_0xac228b['shift']());}catch(_0x566965){_0xac228b['push'](_0xac228b['shift']());}}}(_0x1827,0x3fe99));import{IExchangeOperateService as _0x385e6c,UniverExchangeClientPlugin as _0x3b4ff5}from'@univerjs-pro/exchange-client';import{CommandType as _0xdd372a,UniverInstanceType as _0x2475d6,Disposable as _0x31ae78,ICommandService as _0x300193,DependentOn as _0xefeeee,Inject as _0x216ce8,Injector as _0x3962d3,IConfigService as _0x2da209,Plugin as _0x4b61f3,merge as _0x20a778}from'@univerjs/core';import{MenuItemType as _0x4acd45,getMenuHiddenObservable as _0x1aec7c,RibbonStartGroup as _0x2b94fc,IMenuManagerService as _0x40dd21}from'@univerjs/ui';import{WorkbookExportPermission as _0x3ad662}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x11fc40}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0xdd372a[_0x328574(0xa0)],'handler':async _0x3270d5=>{const _0x588d6b=_0x328574,_0x34ab6a=_0x3270d5[_0x588d6b(0x94)](_0x385e6c);return new URLSearchParams(location[_0x588d6b(0x7a)])['get'](_0x588d6b(0x7d))?_0x34ab6a[_0x588d6b(0x98)]():_0x34ab6a['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x328574(0x88),'type':_0xdd372a[_0x328574(0xa0)],'handler':async _0x4f18cd=>{const _0x3522b9=_0x328574,_0x9e0fc1=_0x4f18cd[_0x3522b9(0x94)](_0x385e6c);return new URLSearchParams(location['search'])[_0x3522b9(0x94)]('unit')?_0x9e0fc1[_0x3522b9(0x8f)]():_0x9e0fc1[_0x3522b9(0xa3)](),!0x0;}},H=_0x328574(0x7b),l={},S='sheets-exchange-client.operation.exchange';function R(_0x11f3db){const _0x35fa20=_0x328574;return{'id':S,'type':_0x4acd45[_0x35fa20(0xa5)],'icon':_0x35fa20(0xa6),'tooltip':_0x35fa20(0x8d),'hidden$':_0x1aec7c(_0x11f3db,_0x2475d6[_0x35fa20(0x99)]),'disabled$':_0x11fc40(_0x11f3db,{'workbookTypes':[_0x3ad662]})};}function _0x18a1(_0x34dc77,_0x5d5356){const _0x1827c1=_0x1827();return _0x18a1=function(_0x18a153,_0x522b37){_0x18a153=_0x18a153-0x7a;let _0x40aa96=_0x1827c1[_0x18a153];return _0x40aa96;},_0x18a1(_0x34dc77,_0x5d5356);}function w(){const _0xdc10c8=_0x328574;return{'id':p['id'],'type':_0x4acd45[_0xdc10c8(0x9e)],'title':_0xdc10c8(0x86),'icon':_0xdc10c8(0xa4)};}function D(){const _0xa875d4=_0x328574;return{'id':u['id'],'type':_0x4acd45['BUTTON'],'title':_0xa875d4(0x81),'icon':_0xa875d4(0x82)};}const F={[_0x2b94fc['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x5c38ee,_0x3a9563,_0x28dd99,_0x3c6260)=>{for(var _0x56c321=_0x3c6260>0x1?void 0x0:_0x3c6260?G(_0x3a9563,_0x28dd99):_0x3a9563,_0x4f9b9f=_0x5c38ee['length']-0x1,_0x18e2bc;_0x4f9b9f>=0x0;_0x4f9b9f--)(_0x18e2bc=_0x5c38ee[_0x4f9b9f])&&(_0x56c321=_0x18e2bc(_0x56c321)||_0x56c321);return _0x56c321;},d=(_0x44586c,_0x3a57a8)=>(_0x31e46b,_0x1e76bc)=>_0x3a57a8(_0x31e46b,_0x1e76bc,_0x44586c);let c=class extends _0x31ae78{constructor(_0x5df3fc,_0x5e97b7){const _0x7788a2=_0x328574;super(),this[_0x7788a2(0x91)]=_0x5df3fc,this[_0x7788a2(0x9d)]=_0x5e97b7,this[_0x7788a2(0x90)](),this['_initMenus']();}[_0x328574(0x90)](){const _0x1adc2d=_0x328574;[p,u][_0x1adc2d(0x83)](_0x524008=>{const _0x43e56c=_0x1adc2d;this['disposeWithMe'](this[_0x43e56c(0x91)]['registerCommand'](_0x524008));});}[_0x328574(0x80)](){const _0x4aa20b=_0x328574;this[_0x4aa20b(0x9d)][_0x4aa20b(0x93)](F);}};c=A([d(0x0,_0x300193),d(0x1,_0x40dd21)],c);var j=Object['defineProperty'],B=Object[_0x328574(0x84)],$=(_0x358aa6,_0x29fd84,_0x3baf62)=>_0x29fd84 in _0x358aa6?j(_0x358aa6,_0x29fd84,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3baf62}):_0x358aa6[_0x29fd84]=_0x3baf62,V=(_0xd20963,_0x19cf07,_0x292ed9,_0x241280)=>{const _0xcd7f1=_0x328574;for(var _0x43ac78=_0x241280>0x1?void 0x0:_0x241280?B(_0x19cf07,_0x292ed9):_0x19cf07,_0x456f23=_0xd20963[_0xcd7f1(0x89)]-0x1,_0x34ce16;_0x456f23>=0x0;_0x456f23--)(_0x34ce16=_0xd20963[_0x456f23])&&(_0x43ac78=_0x34ce16(_0x43ac78)||_0x43ac78);return _0x43ac78;},_=(_0x1698b1,_0x279fd6)=>(_0xf9592,_0x3297a1)=>_0x279fd6(_0xf9592,_0x3297a1,_0x1698b1),I=(_0x210df9,_0x3ed356,_0x3f95fb)=>$(_0x210df9,typeof _0x3ed356!=_0x328574(0x92)?_0x3ed356+'':_0x3ed356,_0x3f95fb);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x4b61f3{constructor(_0x22443c=l,_0x320786,_0x40009a){const _0x2be839=_0x328574;super(),this[_0x2be839(0x97)]=_0x22443c,this[_0x2be839(0x8c)]=_0x320786,this[_0x2be839(0xa1)]=_0x40009a;const {menu:_0x94e866,..._0x5bcf60}=_0x20a778({},l,this[_0x2be839(0x97)]);_0x94e866&&this[_0x2be839(0xa1)]['setConfig'](_0x2be839(0x8a),_0x94e866,{'merge':!0x0}),this[_0x2be839(0xa1)][_0x2be839(0x9a)](H,_0x5bcf60);}[_0x328574(0xa2)](){const _0x5371b2=_0x328574;[[c]][_0x5371b2(0x83)](_0x1e8e8b=>this[_0x5371b2(0x8c)][_0x5371b2(0x9c)](_0x1e8e8b));}['onReady'](){const _0x1b741e=_0x328574;this[_0x1b741e(0x8c)][_0x1b741e(0x94)](c);}};I(s,_0x328574(0x9f),W),I(s,_0x328574(0x96),_0x2475d6[_0x328574(0x99)]),s=V([_0xefeeee(_0x3b4ff5),_(0x1,_0x216ce8(_0x3962d3)),_(0x2,_0x2da209)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};function _0x1827(){const _0x56633e=['4867794LpcqUS','135182HWwUiv','_initMenus','exchange.download','ExportIcon','forEach','getOwnPropertyDescriptor','193416sSuUIc','exchange.upload','1487763MYSYoF','exchange-client.operation.export-xlsx','length','menu','1INxtwh','_injector','exchange.file','338597zMrdLY','exportXLSXByUnitId','_initCommands','_commandService','symbol','mergeMenu','get','781805xWuHQL','type','_config','importXLSXToUnitId','UNIVER_SHEET','setConfig','1576408rckQjc','add','_menuManagerService','BUTTON','pluginName','OPERATION','_configService','onStarting','exportXLSXBySnapshot','FolderIcon','SUBITEMS','DirectExportIcon','search','sheets-exchange-client.config','30lJBQPb','unit'];_0x1827=function(){return _0x56633e;};return _0x1827();}
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0xfdf680=_0x3571;(function(_0x375b90,_0x341f52){const _0x467c81=_0x3571,_0x5e86ec=_0x375b90();while(!![]){try{const _0x11b65f=parseInt(_0x467c81(0xb7))/0x1*(-parseInt(_0x467c81(0xcd))/0x2)+-parseInt(_0x467c81(0xa6))/0x3+parseInt(_0x467c81(0xd5))/0x4*(parseInt(_0x467c81(0xb4))/0x5)+parseInt(_0x467c81(0xa9))/0x6+parseInt(_0x467c81(0xc2))/0x7+parseInt(_0x467c81(0xb8))/0x8*(parseInt(_0x467c81(0xb9))/0x9)+-parseInt(_0x467c81(0xbf))/0xa*(parseInt(_0x467c81(0xad))/0xb);if(_0x11b65f===_0x341f52)break;else _0x5e86ec['push'](_0x5e86ec['shift']());}catch(_0x1c8d95){_0x5e86ec['push'](_0x5e86ec['shift']());}}}(_0x56da,0x78066));import{IExchangeOperateService as _0x146752,UniverExchangeClientPlugin as _0x3b6be4}from'@univerjs-pro/exchange-client';import{CommandType as _0x5a70f3,UniverInstanceType as _0x4e4d14,Disposable as _0x163634,ICommandService as _0x6643a1,DependentOn as _0xecbde9,Inject as _0x1801e8,Injector as _0x10dddd,IConfigService as _0x43c9be,Plugin as _0x157efa,merge as _0x161a24}from'@univerjs/core';function _0x3571(_0x19d963,_0x39b296){const _0x56daa0=_0x56da();return _0x3571=function(_0x357113,_0x388cdd){_0x357113=_0x357113-0xa6;let _0x5ac6e7=_0x56daa0[_0x357113];return _0x5ac6e7;},_0x3571(_0x19d963,_0x39b296);}import{MenuItemType as _0x39b3d7,getMenuHiddenObservable as _0x2026f8,RibbonStartGroup as _0x45aaa7,IMenuManagerService as _0x2d7b69}from'@univerjs/ui';function _0x56da(){const _0x211964=['_configService','exchange.file','555682bIllUi','exchange.upload','OPERATION','exchange-client.operation.export-xlsx','search','_initCommands','FolderIcon','UNIVER_SHEET','253076npkpMq','1078674tIaVnP','exportXLSXByUnitId','disposeWithMe','2493402BuSkLN','onStarting','SUBITEMS','onReady','4723939zcgFRD','_initMenus','forEach','menu','_menuManagerService','registerCommand','SHEET_EXCHANGE_CLIENT_PLUGIN','55awjNsw','getOwnPropertyDescriptor','OTHERS','3qwzEei','16OGxkBe','3576042VfnouL','_injector','importXLSXToSnapshot','pluginName','importXLSXToUnitId','type','10IqtDct','mergeMenu','ExportIcon','1455650uNaJNY','add','sheets-exchange-client.config','_commandService','symbol','get','_config','exportXLSXBySnapshot','length'];_0x56da=function(){return _0x211964;};return _0x56da();}import{WorkbookExportPermission as _0x4afc30}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x14dbbb}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x5a70f3[_0xfdf680(0xcf)],'handler':async _0x17a051=>{const _0x3853ba=_0xfdf680,_0x619edb=_0x17a051['get'](_0x146752);return new URLSearchParams(location['search'])['get']('unit')?_0x619edb[_0x3853ba(0xbd)]():_0x619edb[_0x3853ba(0xbb)](),!0x0;}},u={'id':_0xfdf680(0xd0),'type':_0x5a70f3[_0xfdf680(0xcf)],'handler':async _0x1e8d58=>{const _0x163ee5=_0xfdf680,_0x4749d1=_0x1e8d58[_0x163ee5(0xc7)](_0x146752);return new URLSearchParams(location[_0x163ee5(0xd1)])[_0x163ee5(0xc7)]('unit')?_0x4749d1[_0x163ee5(0xa7)]():_0x4749d1[_0x163ee5(0xc9)](),!0x0;}},H=_0xfdf680(0xc4),l={},S='sheets-exchange-client.operation.exchange';function R(_0x4cfaee){const _0x19cfb2=_0xfdf680;return{'id':S,'type':_0x39b3d7[_0x19cfb2(0xab)],'icon':'DirectExportIcon','tooltip':_0x19cfb2(0xcc),'hidden$':_0x2026f8(_0x4cfaee,_0x4e4d14[_0x19cfb2(0xd4)]),'disabled$':_0x14dbbb(_0x4cfaee,{'workbookTypes':[_0x4afc30]})};}function w(){const _0x5c7ad1=_0xfdf680;return{'id':p['id'],'type':_0x39b3d7['BUTTON'],'title':_0x5c7ad1(0xce),'icon':_0x5c7ad1(0xd3)};}function D(){const _0x3f9993=_0xfdf680;return{'id':u['id'],'type':_0x39b3d7['BUTTON'],'title':'exchange.download','icon':_0x3f9993(0xc1)};}const F={[_0x45aaa7[_0xfdf680(0xb6)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0xfdf680(0xb5)],A=(_0x405603,_0x27f54c,_0x48b708,_0x2e8193)=>{const _0x342ad3=_0xfdf680;for(var _0x47ed96=_0x2e8193>0x1?void 0x0:_0x2e8193?G(_0x27f54c,_0x48b708):_0x27f54c,_0x75bef9=_0x405603[_0x342ad3(0xca)]-0x1,_0xe950f5;_0x75bef9>=0x0;_0x75bef9--)(_0xe950f5=_0x405603[_0x75bef9])&&(_0x47ed96=_0xe950f5(_0x47ed96)||_0x47ed96);return _0x47ed96;},d=(_0xb9196f,_0x5a9459)=>(_0x5d55e8,_0x5c64a4)=>_0x5a9459(_0x5d55e8,_0x5c64a4,_0xb9196f);let c=class extends _0x163634{constructor(_0x252ec7,_0xbd0780){const _0x4312d2=_0xfdf680;super(),this[_0x4312d2(0xc5)]=_0x252ec7,this[_0x4312d2(0xb1)]=_0xbd0780,this[_0x4312d2(0xd2)](),this['_initMenus']();}[_0xfdf680(0xd2)](){const _0x37abbf=_0xfdf680;[p,u][_0x37abbf(0xaf)](_0x22ff1c=>{const _0x2d48d5=_0x37abbf;this[_0x2d48d5(0xa8)](this['_commandService'][_0x2d48d5(0xb2)](_0x22ff1c));});}[_0xfdf680(0xae)](){const _0x3b9819=_0xfdf680;this[_0x3b9819(0xb1)][_0x3b9819(0xc0)](F);}};c=A([d(0x0,_0x6643a1),d(0x1,_0x2d7b69)],c);var j=Object['defineProperty'],B=Object['getOwnPropertyDescriptor'],$=(_0x3d9abb,_0x449d55,_0x58178e)=>_0x449d55 in _0x3d9abb?j(_0x3d9abb,_0x449d55,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58178e}):_0x3d9abb[_0x449d55]=_0x58178e,V=(_0x174b63,_0x298344,_0x271239,_0x1b9cd9)=>{const _0x1cdf3f=_0xfdf680;for(var _0x351805=_0x1b9cd9>0x1?void 0x0:_0x1b9cd9?B(_0x298344,_0x271239):_0x298344,_0x2cef0e=_0x174b63[_0x1cdf3f(0xca)]-0x1,_0x2a4ffd;_0x2cef0e>=0x0;_0x2cef0e--)(_0x2a4ffd=_0x174b63[_0x2cef0e])&&(_0x351805=_0x2a4ffd(_0x351805)||_0x351805);return _0x351805;},_=(_0x2b9853,_0x2a6e9b)=>(_0x1b506b,_0x5c6a71)=>_0x2a6e9b(_0x1b506b,_0x5c6a71,_0x2b9853),I=(_0x21e7cd,_0x45102d,_0x462677)=>$(_0x21e7cd,typeof _0x45102d!=_0xfdf680(0xc6)?_0x45102d+'':_0x45102d,_0x462677);const W=_0xfdf680(0xb3);let s=class extends _0x157efa{constructor(_0x506c2e=l,_0x19d145,_0x502d00){const _0x365dc4=_0xfdf680;super(),this[_0x365dc4(0xc8)]=_0x506c2e,this[_0x365dc4(0xba)]=_0x19d145,this['_configService']=_0x502d00;const {menu:_0x3123c9,..._0x2061a7}=_0x161a24({},l,this[_0x365dc4(0xc8)]);_0x3123c9&&this[_0x365dc4(0xcb)]['setConfig'](_0x365dc4(0xb0),_0x3123c9,{'merge':!0x0}),this[_0x365dc4(0xcb)]['setConfig'](H,_0x2061a7);}[_0xfdf680(0xaa)](){const _0x2bb905=_0xfdf680;[[c]][_0x2bb905(0xaf)](_0x44a9c3=>this[_0x2bb905(0xba)][_0x2bb905(0xc3)](_0x44a9c3));}[_0xfdf680(0xac)](){const _0x1c8df1=_0xfdf680;this[_0x1c8df1(0xba)][_0x1c8df1(0xc7)](c);}};I(s,_0xfdf680(0xbc),W),I(s,_0xfdf680(0xbe),_0x4e4d14[_0xfdf680(0xd4)]),s=V([_0xecbde9(_0x3b6be4),_(0x1,_0x1801e8(_0x10dddd)),_(0x2,_0x43c9be)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x328574=_0x18a1;(function(_0x259263,_0x207ed6){const _0x5444dc=_0x18a1,_0xac228b=_0x259263();while(!![]){try{const _0x50bb53=-parseInt(_0x5444dc(0x8b))/0x1*(parseInt(_0x5444dc(0x7f))/0x2)+-parseInt(_0x5444dc(0x87))/0x3+parseInt(_0x5444dc(0x9b))/0x4+parseInt(_0x5444dc(0x95))/0x5+parseInt(_0x5444dc(0x7c))/0x6*(-parseInt(_0x5444dc(0x8e))/0x7)+-parseInt(_0x5444dc(0x85))/0x8+parseInt(_0x5444dc(0x7e))/0x9;if(_0x50bb53===_0x207ed6)break;else _0xac228b['push'](_0xac228b['shift']());}catch(_0x566965){_0xac228b['push'](_0xac228b['shift']());}}}(_0x1827,0x3fe99));import{IExchangeOperateService as _0x385e6c,UniverExchangeClientPlugin as _0x3b4ff5}from'@univerjs-pro/exchange-client';import{CommandType as _0xdd372a,UniverInstanceType as _0x2475d6,Disposable as _0x31ae78,ICommandService as _0x300193,DependentOn as _0xefeeee,Inject as _0x216ce8,Injector as _0x3962d3,IConfigService as _0x2da209,Plugin as _0x4b61f3,merge as _0x20a778}from'@univerjs/core';import{MenuItemType as _0x4acd45,getMenuHiddenObservable as _0x1aec7c,RibbonStartGroup as _0x2b94fc,IMenuManagerService as _0x40dd21}from'@univerjs/ui';import{WorkbookExportPermission as _0x3ad662}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x11fc40}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0xdd372a[_0x328574(0xa0)],'handler':async _0x3270d5=>{const _0x588d6b=_0x328574,_0x34ab6a=_0x3270d5[_0x588d6b(0x94)](_0x385e6c);return new URLSearchParams(location[_0x588d6b(0x7a)])['get'](_0x588d6b(0x7d))?_0x34ab6a[_0x588d6b(0x98)]():_0x34ab6a['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x328574(0x88),'type':_0xdd372a[_0x328574(0xa0)],'handler':async _0x4f18cd=>{const _0x3522b9=_0x328574,_0x9e0fc1=_0x4f18cd[_0x3522b9(0x94)](_0x385e6c);return new URLSearchParams(location['search'])[_0x3522b9(0x94)]('unit')?_0x9e0fc1[_0x3522b9(0x8f)]():_0x9e0fc1[_0x3522b9(0xa3)](),!0x0;}},H=_0x328574(0x7b),l={},S='sheets-exchange-client.operation.exchange';function R(_0x11f3db){const _0x35fa20=_0x328574;return{'id':S,'type':_0x4acd45[_0x35fa20(0xa5)],'icon':_0x35fa20(0xa6),'tooltip':_0x35fa20(0x8d),'hidden$':_0x1aec7c(_0x11f3db,_0x2475d6[_0x35fa20(0x99)]),'disabled$':_0x11fc40(_0x11f3db,{'workbookTypes':[_0x3ad662]})};}function _0x18a1(_0x34dc77,_0x5d5356){const _0x1827c1=_0x1827();return _0x18a1=function(_0x18a153,_0x522b37){_0x18a153=_0x18a153-0x7a;let _0x40aa96=_0x1827c1[_0x18a153];return _0x40aa96;},_0x18a1(_0x34dc77,_0x5d5356);}function w(){const _0xdc10c8=_0x328574;return{'id':p['id'],'type':_0x4acd45[_0xdc10c8(0x9e)],'title':_0xdc10c8(0x86),'icon':_0xdc10c8(0xa4)};}function D(){const _0xa875d4=_0x328574;return{'id':u['id'],'type':_0x4acd45['BUTTON'],'title':_0xa875d4(0x81),'icon':_0xa875d4(0x82)};}const F={[_0x2b94fc['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x5c38ee,_0x3a9563,_0x28dd99,_0x3c6260)=>{for(var _0x56c321=_0x3c6260>0x1?void 0x0:_0x3c6260?G(_0x3a9563,_0x28dd99):_0x3a9563,_0x4f9b9f=_0x5c38ee['length']-0x1,_0x18e2bc;_0x4f9b9f>=0x0;_0x4f9b9f--)(_0x18e2bc=_0x5c38ee[_0x4f9b9f])&&(_0x56c321=_0x18e2bc(_0x56c321)||_0x56c321);return _0x56c321;},d=(_0x44586c,_0x3a57a8)=>(_0x31e46b,_0x1e76bc)=>_0x3a57a8(_0x31e46b,_0x1e76bc,_0x44586c);let c=class extends _0x31ae78{constructor(_0x5df3fc,_0x5e97b7){const _0x7788a2=_0x328574;super(),this[_0x7788a2(0x91)]=_0x5df3fc,this[_0x7788a2(0x9d)]=_0x5e97b7,this[_0x7788a2(0x90)](),this['_initMenus']();}[_0x328574(0x90)](){const _0x1adc2d=_0x328574;[p,u][_0x1adc2d(0x83)](_0x524008=>{const _0x43e56c=_0x1adc2d;this['disposeWithMe'](this[_0x43e56c(0x91)]['registerCommand'](_0x524008));});}[_0x328574(0x80)](){const _0x4aa20b=_0x328574;this[_0x4aa20b(0x9d)][_0x4aa20b(0x93)](F);}};c=A([d(0x0,_0x300193),d(0x1,_0x40dd21)],c);var j=Object['defineProperty'],B=Object[_0x328574(0x84)],$=(_0x358aa6,_0x29fd84,_0x3baf62)=>_0x29fd84 in _0x358aa6?j(_0x358aa6,_0x29fd84,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3baf62}):_0x358aa6[_0x29fd84]=_0x3baf62,V=(_0xd20963,_0x19cf07,_0x292ed9,_0x241280)=>{const _0xcd7f1=_0x328574;for(var _0x43ac78=_0x241280>0x1?void 0x0:_0x241280?B(_0x19cf07,_0x292ed9):_0x19cf07,_0x456f23=_0xd20963[_0xcd7f1(0x89)]-0x1,_0x34ce16;_0x456f23>=0x0;_0x456f23--)(_0x34ce16=_0xd20963[_0x456f23])&&(_0x43ac78=_0x34ce16(_0x43ac78)||_0x43ac78);return _0x43ac78;},_=(_0x1698b1,_0x279fd6)=>(_0xf9592,_0x3297a1)=>_0x279fd6(_0xf9592,_0x3297a1,_0x1698b1),I=(_0x210df9,_0x3ed356,_0x3f95fb)=>$(_0x210df9,typeof _0x3ed356!=_0x328574(0x92)?_0x3ed356+'':_0x3ed356,_0x3f95fb);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x4b61f3{constructor(_0x22443c=l,_0x320786,_0x40009a){const _0x2be839=_0x328574;super(),this[_0x2be839(0x97)]=_0x22443c,this[_0x2be839(0x8c)]=_0x320786,this[_0x2be839(0xa1)]=_0x40009a;const {menu:_0x94e866,..._0x5bcf60}=_0x20a778({},l,this[_0x2be839(0x97)]);_0x94e866&&this[_0x2be839(0xa1)]['setConfig'](_0x2be839(0x8a),_0x94e866,{'merge':!0x0}),this[_0x2be839(0xa1)][_0x2be839(0x9a)](H,_0x5bcf60);}[_0x328574(0xa2)](){const _0x5371b2=_0x328574;[[c]][_0x5371b2(0x83)](_0x1e8e8b=>this[_0x5371b2(0x8c)][_0x5371b2(0x9c)](_0x1e8e8b));}['onReady'](){const _0x1b741e=_0x328574;this[_0x1b741e(0x8c)][_0x1b741e(0x94)](c);}};I(s,_0x328574(0x9f),W),I(s,_0x328574(0x96),_0x2475d6[_0x328574(0x99)]),s=V([_0xefeeee(_0x3b4ff5),_(0x1,_0x216ce8(_0x3962d3)),_(0x2,_0x2da209)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};function _0x1827(){const _0x56633e=['4867794LpcqUS','135182HWwUiv','_initMenus','exchange.download','ExportIcon','forEach','getOwnPropertyDescriptor','193416sSuUIc','exchange.upload','1487763MYSYoF','exchange-client.operation.export-xlsx','length','menu','1INxtwh','_injector','exchange.file','338597zMrdLY','exportXLSXByUnitId','_initCommands','_commandService','symbol','mergeMenu','get','781805xWuHQL','type','_config','importXLSXToUnitId','UNIVER_SHEET','setConfig','1576408rckQjc','add','_menuManagerService','BUTTON','pluginName','OPERATION','_configService','onStarting','exportXLSXBySnapshot','FolderIcon','SUBITEMS','DirectExportIcon','search','sheets-exchange-client.config','30lJBQPb','unit'];_0x1827=function(){return _0x56633e;};return _0x1827();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x422a38,_0x475a72){const _0x5d0156=_0x1008,_0xa40aff=_0x422a38();while(!![]){try{const _0x16d0e4=-parseInt(_0x5d0156(0x1b3))/0x1+-parseInt(_0x5d0156(0x1d1))/0x2*(parseInt(_0x5d0156(0x1c2))/0x3)+parseInt(_0x5d0156(0x1d3))/0x4+-parseInt(_0x5d0156(0x1c4))/0x5*(parseInt(_0x5d0156(0x1f8))/0x6)+-parseInt(_0x5d0156(0x1e3))/0x7*(-parseInt(_0x5d0156(0x1b9))/0x8)+-parseInt(_0x5d0156(0x1f4))/0x9+parseInt(_0x5d0156(0x1c6))/0xa;if(_0x16d0e4===_0x475a72)break;else _0xa40aff['push'](_0xa40aff['shift']());}catch(_0xc02541){_0xa40aff['push'](_0xa40aff['shift']());}}}(_0x21b4,0x4997a),function(_0x3574f7,_0x1aa2cb){const _0x1a0bcb=_0x1008;typeof exports=='object'&&typeof module<'u'?_0x1aa2cb(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x1a0bcb(0x1cd)&&define[_0x1a0bcb(0x1dd)]?define(['exports',_0x1a0bcb(0x1d7),'@univerjs/core','@univerjs/ui',_0x1a0bcb(0x1ef),_0x1a0bcb(0x1d8)],_0x1aa2cb):(_0x3574f7=typeof globalThis<'u'?globalThis:_0x3574f7||self,_0x1aa2cb(_0x3574f7[_0x1a0bcb(0x1c8)]={},_0x3574f7[_0x1a0bcb(0x1f0)],_0x3574f7['UniverCore'],_0x3574f7['UniverUi'],_0x3574f7[_0x1a0bcb(0x1b7)],_0x3574f7[_0x1a0bcb(0x1f3)]));}(this,function(_0x3f5d90,_0x33d98b,_0x319a3e,_0x45f4cf,_0x71fd62,_0x5f143e){'use strict';const _0x5eb843=_0x1008;const _0x168093={'id':_0x5eb843(0x1ff),'type':_0x319a3e[_0x5eb843(0x1ec)][_0x5eb843(0x1be)],'handler':async _0x12d116=>{const _0x47182a=_0x5eb843,_0x1d2c8d=_0x12d116['get'](_0x33d98b[_0x47182a(0x1cb)]);return new URLSearchParams(location[_0x47182a(0x1df)])[_0x47182a(0x1e2)]('unit')?_0x1d2c8d[_0x47182a(0x1cf)]():_0x1d2c8d[_0x47182a(0x1fe)](),!0x0;}},_0x99682={'id':_0x5eb843(0x1e0),'type':_0x319a3e[_0x5eb843(0x1ec)]['OPERATION'],'handler':async _0x4569a5=>{const _0x314793=_0x5eb843,_0x2cf347=_0x4569a5['get'](_0x33d98b[_0x314793(0x1cb)]);return new URLSearchParams(location[_0x314793(0x1df)])[_0x314793(0x1e2)](_0x314793(0x1d0))?_0x2cf347[_0x314793(0x1ba)]():_0x2cf347['exportXLSXBySnapshot'](),!0x0;}},_0x4a5191='sheets-exchange-client.config',_0x3ec617={},_0x3eb9d3='sheets-exchange-client.operation.exchange';function _0x1cab14(_0x54b8f1){const _0x2ac7ed=_0x5eb843;return{'id':_0x3eb9d3,'type':_0x45f4cf[_0x2ac7ed(0x1b8)][_0x2ac7ed(0x1e8)],'icon':_0x2ac7ed(0x1b4),'tooltip':_0x2ac7ed(0x1e4),'hidden$':_0x45f4cf[_0x2ac7ed(0x1d2)](_0x54b8f1,_0x319a3e[_0x2ac7ed(0x1f6)]['UNIVER_SHEET']),'disabled$':_0x5f143e[_0x2ac7ed(0x1c3)](_0x54b8f1,{'workbookTypes':[_0x71fd62['WorkbookExportPermission']]})};}function _0x56d90(){const _0x4d2053=_0x5eb843;return{'id':_0x168093['id'],'type':_0x45f4cf[_0x4d2053(0x1b8)][_0x4d2053(0x1f9)],'title':_0x4d2053(0x1bc),'icon':_0x4d2053(0x1fb)};}function _0x5db1cd(){const _0x145cd3=_0x5eb843;return{'id':_0x99682['id'],'type':_0x45f4cf[_0x145cd3(0x1b8)][_0x145cd3(0x1f9)],'title':_0x145cd3(0x1e7),'icon':'ExportIcon'};}const _0x453c01={[_0x45f4cf[_0x5eb843(0x1dc)]['OTHERS']]:{[_0x3eb9d3]:{'order':0.3,'menuItemFactory':_0x1cab14,[_0x168093['id']]:{'order':0x0,'menuItemFactory':_0x56d90},[_0x99682['id']]:{'order':0x1,'menuItemFactory':_0x5db1cd}}}};var _0x554043=Object[_0x5eb843(0x1d4)],_0x4411d2=(_0x297d0c,_0x570946,_0x324d4e,_0x4c4d62)=>{const _0x3e62b5=_0x5eb843;for(var _0x40ad29=_0x4c4d62>0x1?void 0x0:_0x4c4d62?_0x554043(_0x570946,_0x324d4e):_0x570946,_0x36ca7e=_0x297d0c[_0x3e62b5(0x1c5)]-0x1,_0x4b76b6;_0x36ca7e>=0x0;_0x36ca7e--)(_0x4b76b6=_0x297d0c[_0x36ca7e])&&(_0x40ad29=_0x4b76b6(_0x40ad29)||_0x40ad29);return _0x40ad29;},_0xf4966a=(_0x53631b,_0x66166d)=>(_0x140333,_0x31acaf)=>_0x66166d(_0x140333,_0x31acaf,_0x53631b);let _0x4fb606=class extends _0x319a3e[_0x5eb843(0x1bd)]{constructor(_0x1646be,_0x370346){const _0x5ce61b=_0x5eb843;super(),this[_0x5ce61b(0x1e9)]=_0x1646be,this[_0x5ce61b(0x1de)]=_0x370346,this[_0x5ce61b(0x1f7)](),this[_0x5ce61b(0x1ed)]();}[_0x5eb843(0x1f7)](){const _0x729e0b=_0x5eb843;[_0x168093,_0x99682][_0x729e0b(0x1b6)](_0x4f88f3=>{const _0x3c066e=_0x729e0b;this[_0x3c066e(0x1db)](this[_0x3c066e(0x1e9)][_0x3c066e(0x1ce)](_0x4f88f3));});}[_0x5eb843(0x1ed)](){const _0x22c535=_0x5eb843;this['_menuManagerService'][_0x22c535(0x1cc)](_0x453c01);}};_0x4fb606=_0x4411d2([_0xf4966a(0x0,_0x319a3e[_0x5eb843(0x1da)]),_0xf4966a(0x1,_0x45f4cf['IMenuManagerService'])],_0x4fb606);var _0x1d301b=Object[_0x5eb843(0x1f5)],_0x5e2f6d=Object[_0x5eb843(0x1d4)],_0x279747=(_0x26d97d,_0x5cc6b3,_0x2f720d)=>_0x5cc6b3 in _0x26d97d?_0x1d301b(_0x26d97d,_0x5cc6b3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f720d}):_0x26d97d[_0x5cc6b3]=_0x2f720d,_0x51bdf0=(_0x26dd6b,_0x24151e,_0x440bfd,_0x3b06f9)=>{for(var _0x179e44=_0x3b06f9>0x1?void 0x0:_0x3b06f9?_0x5e2f6d(_0x24151e,_0x440bfd):_0x24151e,_0x1ca807=_0x26dd6b['length']-0x1,_0x247fc6;_0x1ca807>=0x0;_0x1ca807--)(_0x247fc6=_0x26dd6b[_0x1ca807])&&(_0x179e44=_0x247fc6(_0x179e44)||_0x179e44);return _0x179e44;},_0x4c383c=(_0x51e17c,_0x5f3ef4)=>(_0x1ae748,_0x568ed4)=>_0x5f3ef4(_0x1ae748,_0x568ed4,_0x51e17c),_0x26e03f=(_0x4d22dc,_0x328196,_0x318ace)=>_0x279747(_0x4d22dc,typeof _0x328196!=_0x5eb843(0x1eb)?_0x328196+'':_0x328196,_0x318ace);const _0x45b86d=_0x5eb843(0x1c9);_0x3f5d90[_0x5eb843(0x1d9)]=class extends _0x319a3e[_0x5eb843(0x1fc)]{constructor(_0x3596ef=_0x3ec617,_0x481369,_0x1929ed){const _0x289a5f=_0x5eb843;super(),this['_config']=_0x3596ef,this[_0x289a5f(0x1fa)]=_0x481369,this[_0x289a5f(0x1d5)]=_0x1929ed;const {menu:_0x5f0f12,..._0x25721a}=_0x319a3e[_0x289a5f(0x1fd)]({},_0x3ec617,this[_0x289a5f(0x1bf)]);_0x5f0f12&&this[_0x289a5f(0x1d5)][_0x289a5f(0x1ca)]('menu',_0x5f0f12,{'merge':!0x0}),this[_0x289a5f(0x1d5)][_0x289a5f(0x1ca)](_0x4a5191,_0x25721a);}[_0x5eb843(0x1e5)](){const _0x475337=_0x5eb843;[[_0x4fb606]]['forEach'](_0xf5468d=>this[_0x475337(0x1fa)][_0x475337(0x1f1)](_0xf5468d));}[_0x5eb843(0x1d6)](){const _0x5a108d=_0x5eb843;this[_0x5a108d(0x1fa)][_0x5a108d(0x1e2)](_0x4fb606);}},_0x26e03f(_0x3f5d90[_0x5eb843(0x1d9)],_0x5eb843(0x1ea),_0x45b86d),_0x26e03f(_0x3f5d90[_0x5eb843(0x1d9)],_0x5eb843(0x1c7),_0x319a3e[_0x5eb843(0x1f6)][_0x5eb843(0x1c0)]),_0x3f5d90[_0x5eb843(0x1d9)]=_0x51bdf0([_0x319a3e[_0x5eb843(0x1bb)](_0x33d98b['UniverExchangeClientPlugin']),_0x4c383c(0x1,_0x319a3e[_0x5eb843(0x1c1)](_0x319a3e[_0x5eb843(0x1f2)])),_0x4c383c(0x2,_0x319a3e['IConfigService'])],_0x3f5d90['UniverSheetsExchangeClientPlugin']),_0x3f5d90[_0x5eb843(0x1b5)]=_0x99682,_0x3f5d90[_0x5eb843(0x1ee)]=_0x168093,Object['defineProperty'](_0x3f5d90,Symbol[_0x5eb843(0x1e6)],{'value':_0x5eb843(0x1e1)});}));function _0x1008(_0x48506e,_0x3b1266){const _0x21b404=_0x21b4();return _0x1008=function(_0x1008ec,_0x507fcd){_0x1008ec=_0x1008ec-0x1b3;let _0x294591=_0x21b404[_0x1008ec];return _0x294591;},_0x1008(_0x48506e,_0x3b1266);}function _0x21b4(){const _0xd88fe1=['MenuItemType','776jjFszo','exportXLSXByUnitId','DependentOn','exchange.upload','Disposable','OPERATION','_config','UNIVER_SHEET','Inject','318WYOYGB','getCurrentRangeDisable$','89275pfdOUV','length','6315820EtGuVp','type','UniverProSheetsExchangeClient','SHEET_EXCHANGE_CLIENT_PLUGIN','setConfig','IExchangeOperateService','mergeMenu','function','registerCommand','importXLSXToUnitId','unit','6854qtRbRG','getMenuHiddenObservable','224748BdgqmO','getOwnPropertyDescriptor','_configService','onReady','@univerjs-pro/exchange-client','@univerjs/sheets-ui','UniverSheetsExchangeClientPlugin','ICommandService','disposeWithMe','RibbonStartGroup','amd','_menuManagerService','search','exchange-client.operation.export-xlsx','Module','get','28854lqHtFR','exchange.file','onStarting','toStringTag','exchange.download','SUBITEMS','_commandService','pluginName','symbol','CommandType','_initMenus','ImportXLSXOperation','@univerjs/sheets','UniverProExchangeClient','add','Injector','UniverSheetsUi','1359072yCaqRa','defineProperty','UniverInstanceType','_initCommands','6bOWqrK','BUTTON','_injector','FolderIcon','Plugin','merge','importXLSXToSnapshot','exchange-client.operation.import-xlsx','254044JhtQTL','DirectExportIcon','ExportXLSXOperation','forEach','UniverSheets'];_0x21b4=function(){return _0xd88fe1;};return _0x21b4();}
1
+ (function(_0x3e84d3,_0x19a8ec){const _0x289e3e=_0x1e72,_0xc35532=_0x3e84d3();while(!![]){try{const _0x35b68e=-parseInt(_0x289e3e(0x156))/0x1+parseInt(_0x289e3e(0x135))/0x2*(parseInt(_0x289e3e(0x137))/0x3)+parseInt(_0x289e3e(0x15b))/0x4+-parseInt(_0x289e3e(0x15c))/0x5+-parseInt(_0x289e3e(0x16b))/0x6+parseInt(_0x289e3e(0x141))/0x7+parseInt(_0x289e3e(0x13c))/0x8;if(_0x35b68e===_0x19a8ec)break;else _0xc35532['push'](_0xc35532['shift']());}catch(_0x270ce0){_0xc35532['push'](_0xc35532['shift']());}}}(_0x27ac,0x4acc4),function(_0x54287f,_0x165c46){const _0x197d70=_0x1e72;typeof exports=='object'&&typeof module<'u'?_0x165c46(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x197d70(0x176)&&define[_0x197d70(0x162)]?define([_0x197d70(0x16a),_0x197d70(0x14c),_0x197d70(0x136),_0x197d70(0x167),'@univerjs/sheets',_0x197d70(0x150)],_0x165c46):(_0x54287f=typeof globalThis<'u'?globalThis:_0x54287f||self,_0x165c46(_0x54287f[_0x197d70(0x157)]={},_0x54287f[_0x197d70(0x142)],_0x54287f[_0x197d70(0x148)],_0x54287f[_0x197d70(0x13e)],_0x54287f['UniverSheets'],_0x54287f[_0x197d70(0x14e)]));}(this,function(_0x508996,_0x5750b1,_0x38828a,_0x1e1294,_0xfc014e,_0x212f09){'use strict';const _0x49eb7a=_0x1e72;const _0x4db7b7={'id':_0x49eb7a(0x153),'type':_0x38828a[_0x49eb7a(0x149)][_0x49eb7a(0x163)],'handler':async _0x58b986=>{const _0x279a6f=_0x49eb7a,_0x305bac=_0x58b986['get'](_0x5750b1[_0x279a6f(0x139)]);return new URLSearchParams(location[_0x279a6f(0x131)])['get'](_0x279a6f(0x144))?_0x305bac[_0x279a6f(0x174)]():_0x305bac['importXLSXToSnapshot'](),!0x0;}},_0x461b85={'id':_0x49eb7a(0x173),'type':_0x38828a['CommandType'][_0x49eb7a(0x163)],'handler':async _0x3b3da8=>{const _0x289361=_0x49eb7a,_0xb8bd67=_0x3b3da8['get'](_0x5750b1[_0x289361(0x139)]);return new URLSearchParams(location[_0x289361(0x131)])[_0x289361(0x161)](_0x289361(0x144))?_0xb8bd67[_0x289361(0x158)]():_0xb8bd67[_0x289361(0x13d)](),!0x0;}},_0x426aa0='sheets-exchange-client.config',_0x129234={},_0x18ebd5=_0x49eb7a(0x177);function _0xab9358(_0x163045){const _0x48e4ec=_0x49eb7a;return{'id':_0x18ebd5,'type':_0x1e1294[_0x48e4ec(0x172)][_0x48e4ec(0x13b)],'icon':_0x48e4ec(0x146),'tooltip':_0x48e4ec(0x138),'hidden$':_0x1e1294[_0x48e4ec(0x147)](_0x163045,_0x38828a['UniverInstanceType'][_0x48e4ec(0x14d)]),'disabled$':_0x212f09['getCurrentRangeDisable$'](_0x163045,{'workbookTypes':[_0xfc014e[_0x48e4ec(0x166)]]})};}function _0xd4f47b(){const _0x4bb6c8=_0x49eb7a;return{'id':_0x4db7b7['id'],'type':_0x1e1294[_0x4bb6c8(0x172)]['BUTTON'],'title':_0x4bb6c8(0x164),'icon':'FolderIcon'};}function _0x465b15(){const _0x16feee=_0x49eb7a;return{'id':_0x461b85['id'],'type':_0x1e1294[_0x16feee(0x172)][_0x16feee(0x13f)],'title':_0x16feee(0x151),'icon':_0x16feee(0x159)};}const _0x2a2aee={[_0x1e1294['RibbonStartGroup'][_0x49eb7a(0x134)]]:{[_0x18ebd5]:{'order':0.3,'menuItemFactory':_0xab9358,[_0x4db7b7['id']]:{'order':0x0,'menuItemFactory':_0xd4f47b},[_0x461b85['id']]:{'order':0x1,'menuItemFactory':_0x465b15}}}};var _0x42fb96=Object[_0x49eb7a(0x15e)],_0x99bf64=(_0x3ab3c9,_0xaf1f57,_0x2985b5,_0x49391f)=>{for(var _0x38349c=_0x49391f>0x1?void 0x0:_0x49391f?_0x42fb96(_0xaf1f57,_0x2985b5):_0xaf1f57,_0x35c4f4=_0x3ab3c9['length']-0x1,_0x5a7573;_0x35c4f4>=0x0;_0x35c4f4--)(_0x5a7573=_0x3ab3c9[_0x35c4f4])&&(_0x38349c=_0x5a7573(_0x38349c)||_0x38349c);return _0x38349c;},_0x1553d1=(_0x4d46b3,_0x53edd2)=>(_0x59ac5e,_0x186376)=>_0x53edd2(_0x59ac5e,_0x186376,_0x4d46b3);let _0x4551a6=class extends _0x38828a[_0x49eb7a(0x171)]{constructor(_0x55b228,_0x46e840){const _0x11aee1=_0x49eb7a;super(),this[_0x11aee1(0x16e)]=_0x55b228,this[_0x11aee1(0x178)]=_0x46e840,this['_initCommands'](),this[_0x11aee1(0x12e)]();}[_0x49eb7a(0x12f)](){const _0x5cec98=_0x49eb7a;[_0x4db7b7,_0x461b85][_0x5cec98(0x14b)](_0x5389d4=>{const _0x28eccb=_0x5cec98;this[_0x28eccb(0x145)](this[_0x28eccb(0x16e)][_0x28eccb(0x133)](_0x5389d4));});}[_0x49eb7a(0x12e)](){const _0xebc360=_0x49eb7a;this['_menuManagerService'][_0xebc360(0x15a)](_0x2a2aee);}};_0x4551a6=_0x99bf64([_0x1553d1(0x0,_0x38828a[_0x49eb7a(0x15f)]),_0x1553d1(0x1,_0x1e1294[_0x49eb7a(0x16f)])],_0x4551a6);var _0x128019=Object[_0x49eb7a(0x140)],_0x55b316=Object[_0x49eb7a(0x15e)],_0x4f4488=(_0x337bb6,_0x3809ee,_0x13c0c9)=>_0x3809ee in _0x337bb6?_0x128019(_0x337bb6,_0x3809ee,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x13c0c9}):_0x337bb6[_0x3809ee]=_0x13c0c9,_0x338c62=(_0x3b0644,_0x49cc97,_0x11c759,_0x3339bd)=>{const _0x473e66=_0x49eb7a;for(var _0xa5e4fd=_0x3339bd>0x1?void 0x0:_0x3339bd?_0x55b316(_0x49cc97,_0x11c759):_0x49cc97,_0xad8dce=_0x3b0644[_0x473e66(0x168)]-0x1,_0x4edbc9;_0xad8dce>=0x0;_0xad8dce--)(_0x4edbc9=_0x3b0644[_0xad8dce])&&(_0xa5e4fd=_0x4edbc9(_0xa5e4fd)||_0xa5e4fd);return _0xa5e4fd;},_0x52079f=(_0x5db625,_0x4e64cc)=>(_0x35ea30,_0x372c65)=>_0x4e64cc(_0x35ea30,_0x372c65,_0x5db625),_0xea7965=(_0x4161a9,_0x58266f,_0x5d004f)=>_0x4f4488(_0x4161a9,typeof _0x58266f!=_0x49eb7a(0x143)?_0x58266f+'':_0x58266f,_0x5d004f);const _0x839411='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x508996[_0x49eb7a(0x165)]=class extends _0x38828a['Plugin']{constructor(_0x3e4310=_0x129234,_0xa07f84,_0x4b4d16){const _0x18a770=_0x49eb7a;super(),this[_0x18a770(0x132)]=_0x3e4310,this[_0x18a770(0x16c)]=_0xa07f84,this[_0x18a770(0x13a)]=_0x4b4d16;const {menu:_0x57fadf,..._0x21921e}=_0x38828a[_0x18a770(0x160)]({},_0x129234,this[_0x18a770(0x132)]);_0x57fadf&&this[_0x18a770(0x13a)]['setConfig'](_0x18a770(0x179),_0x57fadf,{'merge':!0x0}),this[_0x18a770(0x13a)][_0x18a770(0x169)](_0x426aa0,_0x21921e);}['onStarting'](){const _0x3f154d=_0x49eb7a;[[_0x4551a6]]['forEach'](_0x5434ee=>this[_0x3f154d(0x16c)]['add'](_0x5434ee));}[_0x49eb7a(0x155)](){const _0xa45e4c=_0x49eb7a;this[_0xa45e4c(0x16c)][_0xa45e4c(0x161)](_0x4551a6);}},_0xea7965(_0x508996[_0x49eb7a(0x165)],_0x49eb7a(0x152),_0x839411),_0xea7965(_0x508996[_0x49eb7a(0x165)],_0x49eb7a(0x130),_0x38828a[_0x49eb7a(0x16d)][_0x49eb7a(0x14d)]),_0x508996[_0x49eb7a(0x165)]=_0x338c62([_0x38828a[_0x49eb7a(0x175)](_0x5750b1['UniverExchangeClientPlugin']),_0x52079f(0x1,_0x38828a[_0x49eb7a(0x154)](_0x38828a[_0x49eb7a(0x15d)])),_0x52079f(0x2,_0x38828a['IConfigService'])],_0x508996[_0x49eb7a(0x165)]),_0x508996[_0x49eb7a(0x170)]=_0x461b85,_0x508996[_0x49eb7a(0x14f)]=_0x4db7b7,Object[_0x49eb7a(0x140)](_0x508996,Symbol['toStringTag'],{'value':_0x49eb7a(0x14a)});}));function _0x1e72(_0x4f6ac1,_0x296f95){const _0x27ac0d=_0x27ac();return _0x1e72=function(_0x1e72d0,_0x521de4){_0x1e72d0=_0x1e72d0-0x12e;let _0x436ca5=_0x27ac0d[_0x1e72d0];return _0x436ca5;},_0x1e72(_0x4f6ac1,_0x296f95);}function _0x27ac(){const _0x29b3e7=['DependentOn','function','sheets-exchange-client.operation.exchange','_menuManagerService','menu','_initMenus','_initCommands','type','search','_config','registerCommand','OTHERS','317998yrkHTV','@univerjs/core','3bvivzH','exchange.file','IExchangeOperateService','_configService','SUBITEMS','4531608ICZjcq','exportXLSXBySnapshot','UniverUi','BUTTON','defineProperty','3632349HClMTY','UniverProExchangeClient','symbol','unit','disposeWithMe','DirectExportIcon','getMenuHiddenObservable','UniverCore','CommandType','Module','forEach','@univerjs-pro/exchange-client','UNIVER_SHEET','UniverSheetsUi','ImportXLSXOperation','@univerjs/sheets-ui','exchange.download','pluginName','exchange-client.operation.import-xlsx','Inject','onReady','436606XpAygJ','UniverProSheetsExchangeClient','exportXLSXByUnitId','ExportIcon','mergeMenu','1221396ewsZbL','3039865PWLOgx','Injector','getOwnPropertyDescriptor','ICommandService','merge','get','amd','OPERATION','exchange.upload','UniverSheetsExchangeClientPlugin','WorkbookExportPermission','@univerjs/ui','length','setConfig','exports','1192530puVCEr','_injector','UniverInstanceType','_commandService','IMenuManagerService','ExportXLSXOperation','Disposable','MenuItemType','exchange-client.operation.export-xlsx','importXLSXToUnitId'];_0x27ac=function(){return _0x29b3e7;};return _0x27ac();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.10.10-experimental.20251016-33b0941",
3
+ "version": "0.10.10-nightly.202510180256",
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-pro/exchange-client": "0.10.10-experimental.20251016-33b0941",
46
- "@univerjs/sheets": "0.10.10-experimental.20251016-33b0941",
47
- "@univerjs/sheets-ui": "0.10.10-experimental.20251016-33b0941",
48
- "@univerjs/core": "0.10.10-experimental.20251016-33b0941",
49
- "@univerjs/ui": "0.10.10-experimental.20251016-33b0941"
45
+ "@univerjs-pro/exchange-client": "0.10.10-nightly.202510180256",
46
+ "@univerjs/core": "0.10.10-nightly.202510180256",
47
+ "@univerjs/sheets": "0.10.10-nightly.202510180256",
48
+ "@univerjs/sheets-ui": "0.10.10-nightly.202510180256",
49
+ "@univerjs/ui": "0.10.10-nightly.202510180256"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",