@univerjs-pro/sheets-exchange-client 0.10.6 → 0.10.7

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 _0x4ef4a1=_0x502e;(function(_0x44a49f,_0x1ac69e){const _0xe61b45=_0x502e,_0x5bdd04=_0x44a49f();while(!![]){try{const _0x20360d=-parseInt(_0xe61b45(0x1fa))/0x1*(parseInt(_0xe61b45(0x1ce))/0x2)+parseInt(_0xe61b45(0x1e5))/0x3+-parseInt(_0xe61b45(0x1f9))/0x4*(parseInt(_0xe61b45(0x1d6))/0x5)+-parseInt(_0xe61b45(0x1eb))/0x6*(parseInt(_0xe61b45(0x1be))/0x7)+parseInt(_0xe61b45(0x1e8))/0x8*(-parseInt(_0xe61b45(0x1cf))/0x9)+-parseInt(_0xe61b45(0x1c0))/0xa+parseInt(_0xe61b45(0x1dc))/0xb;if(_0x20360d===_0x1ac69e)break;else _0x5bdd04['push'](_0x5bdd04['shift']());}catch(_0x17c6eb){_0x5bdd04['push'](_0x5bdd04['shift']());}}}(_0x4a6d,0x48516));Object['defineProperty'](exports,Symbol[_0x4ef4a1(0x1fe)],{'value':_0x4ef4a1(0x1d8)});function _0x502e(_0x426d23,_0x24b1f4){const _0x4a6d7d=_0x4a6d();return _0x502e=function(_0x502e5f,_0x4beeb0){_0x502e5f=_0x502e5f-0x1bc;let _0x55f326=_0x4a6d7d[_0x502e5f];return _0x55f326;},_0x502e(_0x426d23,_0x24b1f4);}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':_0x4ef4a1(0x1ef),'type':i[_0x4ef4a1(0x1f8)][_0x4ef4a1(0x1cb)],'handler':async _0x2471b3=>{const _0x59051e=_0x4ef4a1,_0x373d09=_0x2471b3['get'](g['IExchangeOperateService']);return new URLSearchParams(location[_0x59051e(0x1f4)])['get']('unit')?_0x373d09[_0x59051e(0x1e1)]():_0x373d09['importXLSXToSnapshot'](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i['CommandType'][_0x4ef4a1(0x1cb)],'handler':async _0xfe4563=>{const _0x5e6994=_0x4ef4a1,_0x413bc9=_0xfe4563[_0x5e6994(0x1c2)](g[_0x5e6994(0x1db)]);return new URLSearchParams(location['search'])['get'](_0x5e6994(0x1df))?_0x413bc9[_0x5e6994(0x1c4)]():_0x413bc9[_0x5e6994(0x1c3)](),!0x0;}},v=_0x4ef4a1(0x1c5),h={},S=_0x4ef4a1(0x1d0);function x(_0x4c6468){const _0x27849a=_0x4ef4a1;return{'id':S,'type':c[_0x27849a(0x1cd)][_0x27849a(0x1f1)],'icon':_0x27849a(0x1bc),'tooltip':_0x27849a(0x1ec),'hidden$':c[_0x27849a(0x1e6)](_0x4c6468,i[_0x27849a(0x1c7)]['UNIVER_SHEET']),'disabled$':I['getCurrentRangeDisable$'](_0x4c6468,{'workbookTypes':[_[_0x27849a(0x1e0)]]})};}function P(){const _0x915e5d=_0x4ef4a1;return{'id':l['id'],'type':c[_0x915e5d(0x1cd)]['BUTTON'],'title':_0x915e5d(0x1d7),'icon':_0x915e5d(0x1e9)};}function _0x4a6d(){const _0x5c5744=['_initMenus','ExportIcon','symbol','CommandType','1487892nCEgnR','71tOUJLl','UNIVER_SHEET','_injector','Injector','toStringTag','DirectExportIcon','onReady','14ebASrP','merge','1104640KespwC','Disposable','get','exportXLSXBySnapshot','exportXLSXByUnitId','sheets-exchange-client.config','add','UniverInstanceType','onStarting','_initCommands','menu','OPERATION','OTHERS','MenuItemType','11878DcKnWD','2565Yhnfdc','sheets-exchange-client.operation.exchange','getOwnPropertyDescriptor','setConfig','exchange.download','ExportXLSXOperation','_menuManagerService','5QEAIJX','exchange.upload','Module','UniverSheetsExchangeClientPlugin','BUTTON','IExchangeOperateService','16224087pjnvgT','length','_configService','unit','WorkbookExportPermission','importXLSXToUnitId','ICommandService','UniverExchangeClientPlugin','pluginName','926310YCSieE','getMenuHiddenObservable','mergeMenu','12888mWlVxz','FolderIcon','Plugin','372696AxSmTU','exchange.file','IMenuManagerService','_commandService','exchange-client.operation.import-xlsx','registerCommand','SUBITEMS','_config','forEach','search'];_0x4a6d=function(){return _0x5c5744;};return _0x4a6d();}function C(){const _0x3ebe2e=_0x4ef4a1;return{'id':p['id'],'type':c['MenuItemType'][_0x3ebe2e(0x1da)],'title':_0x3ebe2e(0x1d3),'icon':_0x3ebe2e(0x1f6)};}const f={[c['RibbonStartGroup'][_0x4ef4a1(0x1cc)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x4ef4a1(0x1d1)],y=(_0x13e9a3,_0x5d0c9a,_0x528aff,_0x587bac)=>{const _0x152b85=_0x4ef4a1;for(var _0x4949d8=_0x587bac>0x1?void 0x0:_0x587bac?T(_0x5d0c9a,_0x528aff):_0x5d0c9a,_0x358d81=_0x13e9a3[_0x152b85(0x1dd)]-0x1,_0x427ac5;_0x358d81>=0x0;_0x358d81--)(_0x427ac5=_0x13e9a3[_0x358d81])&&(_0x4949d8=_0x427ac5(_0x4949d8)||_0x4949d8);return _0x4949d8;},m=(_0x25dfce,_0x5f238f)=>(_0x124004,_0x10423e)=>_0x5f238f(_0x124004,_0x10423e,_0x25dfce);let u=class extends i[_0x4ef4a1(0x1c1)]{constructor(_0x397ace,_0x402290){const _0x44f3d0=_0x4ef4a1;super(),this[_0x44f3d0(0x1ee)]=_0x397ace,this[_0x44f3d0(0x1d5)]=_0x402290,this[_0x44f3d0(0x1c9)](),this[_0x44f3d0(0x1f5)]();}[_0x4ef4a1(0x1c9)](){[l,p]['forEach'](_0x214b5e=>{const _0x3443fc=_0x502e;this['disposeWithMe'](this[_0x3443fc(0x1ee)][_0x3443fc(0x1f0)](_0x214b5e));});}[_0x4ef4a1(0x1f5)](){const _0x591a5a=_0x4ef4a1;this[_0x591a5a(0x1d5)][_0x591a5a(0x1e7)](f);}};u=y([m(0x0,i[_0x4ef4a1(0x1e2)]),m(0x1,c[_0x4ef4a1(0x1ed)])],u);var O=Object['defineProperty'],U=Object[_0x4ef4a1(0x1d1)],X=(_0x244adb,_0x49ee28,_0x3fbaf5)=>_0x49ee28 in _0x244adb?O(_0x244adb,_0x49ee28,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3fbaf5}):_0x244adb[_0x49ee28]=_0x3fbaf5,N=(_0x349373,_0x310c94,_0x18af0b,_0x94a617)=>{const _0x541149=_0x4ef4a1;for(var _0x428766=_0x94a617>0x1?void 0x0:_0x94a617?U(_0x310c94,_0x18af0b):_0x310c94,_0x5968c1=_0x349373[_0x541149(0x1dd)]-0x1,_0x59b631;_0x5968c1>=0x0;_0x5968c1--)(_0x59b631=_0x349373[_0x5968c1])&&(_0x428766=_0x59b631(_0x428766)||_0x428766);return _0x428766;},d=(_0x50a978,_0x707463)=>(_0x26e40c,_0x20ca02)=>_0x707463(_0x26e40c,_0x20ca02,_0x50a978),E=(_0x2f496c,_0x4d2ee2,_0x11e9d6)=>X(_0x2f496c,typeof _0x4d2ee2!=_0x4ef4a1(0x1f7)?_0x4d2ee2+'':_0x4d2ee2,_0x11e9d6);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports[_0x4ef4a1(0x1d9)]=class extends i[_0x4ef4a1(0x1ea)]{constructor(_0x2ed63f=h,_0x14ff96,_0xc2cd0b){const _0x39d6f7=_0x4ef4a1;super(),this[_0x39d6f7(0x1f2)]=_0x2ed63f,this[_0x39d6f7(0x1fc)]=_0x14ff96,this[_0x39d6f7(0x1de)]=_0xc2cd0b;const {menu:_0x114fa9,..._0x5729bd}=i[_0x39d6f7(0x1bf)]({},h,this[_0x39d6f7(0x1f2)]);_0x114fa9&&this['_configService'][_0x39d6f7(0x1d2)](_0x39d6f7(0x1ca),_0x114fa9,{'merge':!0x0}),this[_0x39d6f7(0x1de)][_0x39d6f7(0x1d2)](v,_0x5729bd);}[_0x4ef4a1(0x1c8)](){const _0x252153=_0x4ef4a1;[[u]][_0x252153(0x1f3)](_0x1e398e=>this[_0x252153(0x1fc)][_0x252153(0x1c6)](_0x1e398e));}[_0x4ef4a1(0x1bd)](){const _0x194213=_0x4ef4a1;this[_0x194213(0x1fc)]['get'](u);}},E(exports['UniverSheetsExchangeClientPlugin'],_0x4ef4a1(0x1e4),L),E(exports[_0x4ef4a1(0x1d9)],'type',i['UniverInstanceType'][_0x4ef4a1(0x1fb)]),exports[_0x4ef4a1(0x1d9)]=N([i['DependentOn'](g[_0x4ef4a1(0x1e3)]),d(0x1,i['Inject'](i[_0x4ef4a1(0x1fd)])),d(0x2,i['IConfigService'])],exports[_0x4ef4a1(0x1d9)]),exports[_0x4ef4a1(0x1d4)]=p,exports['ImportXLSXOperation']=l;
1
+ 'use strict';const _0x38d428=_0x2535;(function(_0x9705fa,_0x105c29){const _0x309948=_0x2535,_0x326d0d=_0x9705fa();while(!![]){try{const _0x10483e=-parseInt(_0x309948(0x178))/0x1+-parseInt(_0x309948(0x15b))/0x2+parseInt(_0x309948(0x17c))/0x3+-parseInt(_0x309948(0x159))/0x4+parseInt(_0x309948(0x180))/0x5*(parseInt(_0x309948(0x185))/0x6)+parseInt(_0x309948(0x18e))/0x7*(parseInt(_0x309948(0x198))/0x8)+parseInt(_0x309948(0x184))/0x9;if(_0x10483e===_0x105c29)break;else _0x326d0d['push'](_0x326d0d['shift']());}catch(_0x3cf17a){_0x326d0d['push'](_0x326d0d['shift']());}}}(_0x54f5,0xad030));Object['defineProperty'](exports,Symbol[_0x38d428(0x18b)],{'value':_0x38d428(0x182)});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':_0x38d428(0x161),'type':i['CommandType'][_0x38d428(0x18f)],'handler':async _0x3186d8=>{const _0x161f1c=_0x38d428,_0xd20095=_0x3186d8['get'](g[_0x161f1c(0x162)]);return new URLSearchParams(location[_0x161f1c(0x194)])[_0x161f1c(0x168)](_0x161f1c(0x169))?_0xd20095[_0x161f1c(0x187)]():_0xd20095['importXLSXToSnapshot'](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i[_0x38d428(0x190)][_0x38d428(0x18f)],'handler':async _0x1dda0e=>{const _0x3cc1e4=_0x38d428,_0x2a1b14=_0x1dda0e[_0x3cc1e4(0x168)](g[_0x3cc1e4(0x162)]);return new URLSearchParams(location[_0x3cc1e4(0x194)])['get'](_0x3cc1e4(0x169))?_0x2a1b14[_0x3cc1e4(0x197)]():_0x2a1b14[_0x3cc1e4(0x18c)](),!0x0;}},v='sheets-exchange-client.config',h={},S=_0x38d428(0x15f);function x(_0x3342e8){const _0x514d84=_0x38d428;return{'id':S,'type':c['MenuItemType'][_0x514d84(0x189)],'icon':_0x514d84(0x191),'tooltip':_0x514d84(0x19a),'hidden$':c[_0x514d84(0x196)](_0x3342e8,i[_0x514d84(0x186)]['UNIVER_SHEET']),'disabled$':I[_0x514d84(0x17d)](_0x3342e8,{'workbookTypes':[_[_0x514d84(0x18d)]]})};}function P(){const _0x7605d4=_0x38d428;return{'id':l['id'],'type':c[_0x7605d4(0x17e)]['BUTTON'],'title':'exchange.upload','icon':'FolderIcon'};}function C(){const _0x572781=_0x38d428;return{'id':p['id'],'type':c['MenuItemType'][_0x572781(0x15c)],'title':_0x572781(0x174),'icon':_0x572781(0x15d)};}const f={[c[_0x38d428(0x16c)][_0x38d428(0x16d)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};function _0x54f5(){const _0x22e7e6=['MenuItemType','_injector','1841245VkvNQp','Disposable','Module','_config','8191548RVeTWn','6KmbqSs','UniverInstanceType','importXLSXToUnitId','symbol','SUBITEMS','onReady','toStringTag','exportXLSXBySnapshot','WorkbookExportPermission','35JVRfFH','OPERATION','CommandType','DirectExportIcon','IConfigService','_initCommands','search','IMenuManagerService','getMenuHiddenObservable','exportXLSXByUnitId','1032616rgplXC','getOwnPropertyDescriptor','exchange.file','3177224DxgclO','menu','1010340jUjFLf','BUTTON','ExportIcon','Inject','sheets-exchange-client.operation.exchange','UNIVER_SHEET','exchange-client.operation.import-xlsx','IExchangeOperateService','_initMenus','pluginName','merge','forEach','onStarting','get','unit','ICommandService','mergeMenu','RibbonStartGroup','OTHERS','DependentOn','SHEET_EXCHANGE_CLIENT_PLUGIN','_commandService','setConfig','UniverSheetsExchangeClientPlugin','_configService','exchange.download','defineProperty','ExportXLSXOperation','length','87137gkZopo','ImportXLSXOperation','disposeWithMe','UniverExchangeClientPlugin','514389NvXKoH','getCurrentRangeDisable$'];_0x54f5=function(){return _0x22e7e6;};return _0x54f5();}var T=Object[_0x38d428(0x199)],y=(_0x1a524d,_0xfb514f,_0x45d461,_0x216a96)=>{for(var _0x204bce=_0x216a96>0x1?void 0x0:_0x216a96?T(_0xfb514f,_0x45d461):_0xfb514f,_0x56ee98=_0x1a524d['length']-0x1,_0x1f8f10;_0x56ee98>=0x0;_0x56ee98--)(_0x1f8f10=_0x1a524d[_0x56ee98])&&(_0x204bce=_0x1f8f10(_0x204bce)||_0x204bce);return _0x204bce;},m=(_0x55e351,_0xbf9d96)=>(_0x414802,_0x3e5b5e)=>_0xbf9d96(_0x414802,_0x3e5b5e,_0x55e351);let u=class extends i[_0x38d428(0x181)]{constructor(_0x4df541,_0x45eaa9){const _0x33a03f=_0x38d428;super(),this[_0x33a03f(0x170)]=_0x4df541,this['_menuManagerService']=_0x45eaa9,this['_initCommands'](),this[_0x33a03f(0x163)]();}[_0x38d428(0x193)](){const _0x49ebf0=_0x38d428;[l,p][_0x49ebf0(0x166)](_0x186c28=>{const _0x2a2b69=_0x49ebf0;this[_0x2a2b69(0x17a)](this[_0x2a2b69(0x170)]['registerCommand'](_0x186c28));});}[_0x38d428(0x163)](){const _0x465c42=_0x38d428;this['_menuManagerService'][_0x465c42(0x16b)](f);}};u=y([m(0x0,i[_0x38d428(0x16a)]),m(0x1,c[_0x38d428(0x195)])],u);function _0x2535(_0x5b11c3,_0x487f65){const _0x54f57c=_0x54f5();return _0x2535=function(_0x2535d6,_0xce260){_0x2535d6=_0x2535d6-0x159;let _0x2f40b1=_0x54f57c[_0x2535d6];return _0x2f40b1;},_0x2535(_0x5b11c3,_0x487f65);}var O=Object[_0x38d428(0x175)],U=Object[_0x38d428(0x199)],X=(_0x253eab,_0xee0cbc,_0x9b5014)=>_0xee0cbc in _0x253eab?O(_0x253eab,_0xee0cbc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x9b5014}):_0x253eab[_0xee0cbc]=_0x9b5014,N=(_0x2a46c7,_0x1b9284,_0x8072bb,_0x2be344)=>{const _0x35bc21=_0x38d428;for(var _0x7d2885=_0x2be344>0x1?void 0x0:_0x2be344?U(_0x1b9284,_0x8072bb):_0x1b9284,_0x23f829=_0x2a46c7[_0x35bc21(0x177)]-0x1,_0x33bb11;_0x23f829>=0x0;_0x23f829--)(_0x33bb11=_0x2a46c7[_0x23f829])&&(_0x7d2885=_0x33bb11(_0x7d2885)||_0x7d2885);return _0x7d2885;},d=(_0x5d6522,_0x5564d3)=>(_0x274f6b,_0x2920c3)=>_0x5564d3(_0x274f6b,_0x2920c3,_0x5d6522),E=(_0x59a1c6,_0x43ac22,_0x2512ed)=>X(_0x59a1c6,typeof _0x43ac22!=_0x38d428(0x188)?_0x43ac22+'':_0x43ac22,_0x2512ed);const L=_0x38d428(0x16f);exports[_0x38d428(0x172)]=class extends i['Plugin']{constructor(_0x4956d2=h,_0x155338,_0x5578ee){const _0x57fcd2=_0x38d428;super(),this[_0x57fcd2(0x183)]=_0x4956d2,this[_0x57fcd2(0x17f)]=_0x155338,this['_configService']=_0x5578ee;const {menu:_0x44995e,..._0x4ea6d3}=i[_0x57fcd2(0x165)]({},h,this['_config']);_0x44995e&&this[_0x57fcd2(0x173)][_0x57fcd2(0x171)](_0x57fcd2(0x15a),_0x44995e,{'merge':!0x0}),this['_configService']['setConfig'](v,_0x4ea6d3);}[_0x38d428(0x167)](){const _0x1018e6=_0x38d428;[[u]][_0x1018e6(0x166)](_0x38ad13=>this['_injector']['add'](_0x38ad13));}[_0x38d428(0x18a)](){const _0x56f007=_0x38d428;this[_0x56f007(0x17f)][_0x56f007(0x168)](u);}},E(exports[_0x38d428(0x172)],_0x38d428(0x164),L),E(exports['UniverSheetsExchangeClientPlugin'],'type',i[_0x38d428(0x186)][_0x38d428(0x160)]),exports['UniverSheetsExchangeClientPlugin']=N([i[_0x38d428(0x16e)](g[_0x38d428(0x17b)]),d(0x1,i[_0x38d428(0x15e)](i['Injector'])),d(0x2,i[_0x38d428(0x192)])],exports[_0x38d428(0x172)]),exports[_0x38d428(0x176)]=p,exports[_0x38d428(0x179)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x378f78=_0xd8d9;(function(_0x443c28,_0x2b6eef){const _0x1e0674=_0xd8d9,_0xc076e2=_0x443c28();while(!![]){try{const _0x303093=-parseInt(_0x1e0674(0xaa))/0x1+parseInt(_0x1e0674(0x9b))/0x2+-parseInt(_0x1e0674(0xa6))/0x3+parseInt(_0x1e0674(0x99))/0x4+parseInt(_0x1e0674(0x97))/0x5*(parseInt(_0x1e0674(0xb9))/0x6)+-parseInt(_0x1e0674(0x95))/0x7*(-parseInt(_0x1e0674(0xb1))/0x8)+-parseInt(_0x1e0674(0xac))/0x9;if(_0x303093===_0x2b6eef)break;else _0xc076e2['push'](_0xc076e2['shift']());}catch(_0x80e609){_0xc076e2['push'](_0xc076e2['shift']());}}}(_0x67ef,0x93d76));import{IExchangeOperateService as _0x4e4381,UniverExchangeClientPlugin as _0xe5ce8e}from'@univerjs-pro/exchange-client';import{CommandType as _0xf78ba0,UniverInstanceType as _0x1b5d8b,Disposable as _0xe1c2cb,ICommandService as _0x2def27,DependentOn as _0x2513fe,Inject as _0xd5c3cc,Injector as _0x1f0cfe,IConfigService as _0x370fc3,Plugin as _0x3cc9ed,merge as _0xec4dd9}from'@univerjs/core';import{MenuItemType as _0x2a3313,getMenuHiddenObservable as _0x3f410c,RibbonStartGroup as _0x1bca4c,IMenuManagerService as _0x4d22b7}from'@univerjs/ui';import{WorkbookExportPermission as _0x20345c}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x579c28}from'@univerjs/sheets-ui';const p={'id':_0x378f78(0xbb),'type':_0xf78ba0[_0x378f78(0xae)],'handler':async _0x55e8b6=>{const _0x3f0415=_0x378f78,_0xab3eea=_0x55e8b6[_0x3f0415(0x9e)](_0x4e4381);return new URLSearchParams(location[_0x3f0415(0xa8)])[_0x3f0415(0x9e)](_0x3f0415(0xad))?_0xab3eea[_0x3f0415(0xb8)]():_0xab3eea[_0x3f0415(0xb6)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0xf78ba0[_0x378f78(0xae)],'handler':async _0x863322=>{const _0xc7ef30=_0x378f78,_0x380941=_0x863322['get'](_0x4e4381);return new URLSearchParams(location[_0xc7ef30(0xa8)])[_0xc7ef30(0x9e)](_0xc7ef30(0xad))?_0x380941[_0xc7ef30(0xb7)]():_0x380941['exportXLSXBySnapshot'](),!0x0;}},H=_0x378f78(0x96),l={},S=_0x378f78(0xb4);function R(_0x2ca879){const _0x542b0c=_0x378f78;return{'id':S,'type':_0x2a3313['SUBITEMS'],'icon':_0x542b0c(0x9f),'tooltip':_0x542b0c(0xa1),'hidden$':_0x3f410c(_0x2ca879,_0x1b5d8b[_0x542b0c(0xa2)]),'disabled$':_0x579c28(_0x2ca879,{'workbookTypes':[_0x20345c]})};}function w(){const _0xfeff71=_0x378f78;return{'id':p['id'],'type':_0x2a3313['BUTTON'],'title':_0xfeff71(0xbe),'icon':_0xfeff71(0x9a)};}function D(){const _0x7d68f2=_0x378f78;return{'id':u['id'],'type':_0x2a3313[_0x7d68f2(0xab)],'title':_0x7d68f2(0xb3),'icon':'ExportIcon'};}const F={[_0x1bca4c['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x2f51a3,_0x1d6bf3,_0x4f5a93,_0xe86245)=>{const _0x215d9d=_0x378f78;for(var _0x3c3db6=_0xe86245>0x1?void 0x0:_0xe86245?G(_0x1d6bf3,_0x4f5a93):_0x1d6bf3,_0xf41818=_0x2f51a3[_0x215d9d(0xa3)]-0x1,_0x5bfcc6;_0xf41818>=0x0;_0xf41818--)(_0x5bfcc6=_0x2f51a3[_0xf41818])&&(_0x3c3db6=_0x5bfcc6(_0x3c3db6)||_0x3c3db6);return _0x3c3db6;},d=(_0x45c4f5,_0x1844a5)=>(_0xe2b8c5,_0x5c67fe)=>_0x1844a5(_0xe2b8c5,_0x5c67fe,_0x45c4f5);let c=class extends _0xe1c2cb{constructor(_0x57f9a8,_0x46510d){const _0x26db5a=_0x378f78;super(),this['_commandService']=_0x57f9a8,this[_0x26db5a(0xa5)]=_0x46510d,this['_initCommands'](),this[_0x26db5a(0xb5)]();}[_0x378f78(0xbc)](){const _0x5c1ba5=_0x378f78;[p,u][_0x5c1ba5(0xaf)](_0x555038=>{const _0x40fdc7=_0x5c1ba5;this[_0x40fdc7(0x9c)](this['_commandService'][_0x40fdc7(0xa0)](_0x555038));});}[_0x378f78(0xb5)](){const _0x8ee3e0=_0x378f78;this[_0x8ee3e0(0xa5)][_0x8ee3e0(0xbd)](F);}};c=A([d(0x0,_0x2def27),d(0x1,_0x4d22b7)],c);function _0xd8d9(_0x5ad084,_0x190ff9){const _0x67ef7d=_0x67ef();return _0xd8d9=function(_0xd8d90f,_0x547140){_0xd8d90f=_0xd8d90f-0x95;let _0x3b41ee=_0x67ef7d[_0xd8d90f];return _0x3b41ee;},_0xd8d9(_0x5ad084,_0x190ff9);}var j=Object[_0x378f78(0xa9)],B=Object[_0x378f78(0xb0)],$=(_0x22d226,_0x27a0ce,_0x166757)=>_0x27a0ce in _0x22d226?j(_0x22d226,_0x27a0ce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x166757}):_0x22d226[_0x27a0ce]=_0x166757,V=(_0x19e632,_0x417c85,_0x48c6db,_0x1b83ee)=>{const _0x421151=_0x378f78;for(var _0x1d1ce4=_0x1b83ee>0x1?void 0x0:_0x1b83ee?B(_0x417c85,_0x48c6db):_0x417c85,_0x5330bd=_0x19e632[_0x421151(0xa3)]-0x1,_0x18b65c;_0x5330bd>=0x0;_0x5330bd--)(_0x18b65c=_0x19e632[_0x5330bd])&&(_0x1d1ce4=_0x18b65c(_0x1d1ce4)||_0x1d1ce4);return _0x1d1ce4;},_=(_0x1c23cc,_0x1095a7)=>(_0x1d06ca,_0x1be4ed)=>_0x1095a7(_0x1d06ca,_0x1be4ed,_0x1c23cc),I=(_0x4847b1,_0x49624e,_0x46c4a0)=>$(_0x4847b1,typeof _0x49624e!='symbol'?_0x49624e+'':_0x49624e,_0x46c4a0);const W=_0x378f78(0x98);let s=class extends _0x3cc9ed{constructor(_0x2a22a9=l,_0x531991,_0x1fd6d7){const _0x3a570b=_0x378f78;super(),this['_config']=_0x2a22a9,this['_injector']=_0x531991,this[_0x3a570b(0xbf)]=_0x1fd6d7;const {menu:_0x1c9f55,..._0x2b42da}=_0xec4dd9({},l,this[_0x3a570b(0xa4)]);_0x1c9f55&&this[_0x3a570b(0xbf)][_0x3a570b(0xba)](_0x3a570b(0xa7),_0x1c9f55,{'merge':!0x0}),this[_0x3a570b(0xbf)][_0x3a570b(0xba)](H,_0x2b42da);}['onStarting'](){const _0x3fa031=_0x378f78;[[c]][_0x3fa031(0xaf)](_0x16a55f=>this[_0x3fa031(0xc0)][_0x3fa031(0xb2)](_0x16a55f));}['onReady'](){const _0x540124=_0x378f78;this[_0x540124(0xc0)]['get'](c);}};function _0x67ef(){const _0x9a21bb=['exportXLSXByUnitId','importXLSXToUnitId','6077934xgaHyC','setConfig','exchange-client.operation.import-xlsx','_initCommands','mergeMenu','exchange.upload','_configService','_injector','21rOxXrg','sheets-exchange-client.config','5xRzXeP','SHEET_EXCHANGE_CLIENT_PLUGIN','2798728PIDRBL','FolderIcon','896778hFvqQy','disposeWithMe','pluginName','get','DirectExportIcon','registerCommand','exchange.file','UNIVER_SHEET','length','_config','_menuManagerService','1958043rmeVzY','menu','search','defineProperty','564391WRdlBh','BUTTON','9500328eIJlla','unit','OPERATION','forEach','getOwnPropertyDescriptor','1912432tiGNJV','add','exchange.download','sheets-exchange-client.operation.exchange','_initMenus','importXLSXToSnapshot'];_0x67ef=function(){return _0x9a21bb;};return _0x67ef();}I(s,_0x378f78(0x9d),W),I(s,'type',_0x1b5d8b['UNIVER_SHEET']),s=V([_0x2513fe(_0xe5ce8e),_(0x1,_0xd5c3cc(_0x1f0cfe)),_(0x2,_0x370fc3)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x14f6c9=_0x1d88;(function(_0x523436,_0x206a2b){const _0x29ec16=_0x1d88,_0x3f182e=_0x523436();while(!![]){try{const _0x303691=-parseInt(_0x29ec16(0xb4))/0x1*(-parseInt(_0x29ec16(0xc5))/0x2)+-parseInt(_0x29ec16(0xcd))/0x3*(parseInt(_0x29ec16(0xa7))/0x4)+-parseInt(_0x29ec16(0xc8))/0x5+-parseInt(_0x29ec16(0xd1))/0x6+parseInt(_0x29ec16(0xbc))/0x7*(-parseInt(_0x29ec16(0xab))/0x8)+parseInt(_0x29ec16(0xd2))/0x9*(parseInt(_0x29ec16(0xc3))/0xa)+parseInt(_0x29ec16(0xa5))/0xb*(parseInt(_0x29ec16(0xcf))/0xc);if(_0x303691===_0x206a2b)break;else _0x3f182e['push'](_0x3f182e['shift']());}catch(_0x45c007){_0x3f182e['push'](_0x3f182e['shift']());}}}(_0x44c5,0x464a8));function _0x44c5(){const _0x216c77=['exportXLSXByUnitId','SUBITEMS','1RmgKJs','_menuManagerService','_configService','search','get','exchange-client.operation.export-xlsx','menu','DirectExportIcon','856443neTKeX','FolderIcon','importXLSXToSnapshot','unit','UNIVER_SHEET','_injector','_initCommands','10GRbUqV','mergeMenu','576006SiYcuS','sheets-exchange-client.config','exchange.download','1378550wFDEXA','getOwnPropertyDescriptor','_config','exchange-client.operation.import-xlsx','BUTTON','33jGkjJN','setConfig','12RUPzVF','forEach','2673060WRpRLK','2624229IkEJeC','exchange.upload','OPERATION','12035078RsZrvw','symbol','197164uMmMEM','length','_commandService','exportXLSXBySnapshot','8RsUfgn','pluginName','type','sheets-exchange-client.operation.exchange','_initMenus','disposeWithMe','onStarting'];_0x44c5=function(){return _0x216c77;};return _0x44c5();}import{IExchangeOperateService as _0x5d8cd3,UniverExchangeClientPlugin as _0x37b85f}from'@univerjs-pro/exchange-client';import{CommandType as _0x4c1b14,UniverInstanceType as _0x1c0512,Disposable as _0x272660,ICommandService as _0xb97fac,DependentOn as _0x456071,Inject as _0x1c82f1,Injector as _0x6613ad,IConfigService as _0x2974f4,Plugin as _0x1e8f44,merge as _0x4ef205}from'@univerjs/core';import{MenuItemType as _0x15930a,getMenuHiddenObservable as _0x216185,RibbonStartGroup as _0x33963b,IMenuManagerService as _0x30b4da}from'@univerjs/ui';import{WorkbookExportPermission as _0x141246}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x1e9323}from'@univerjs/sheets-ui';const p={'id':_0x14f6c9(0xcb),'type':_0x4c1b14[_0x14f6c9(0xa4)],'handler':async _0x2668ba=>{const _0x5e6b79=_0x14f6c9,_0x4559cd=_0x2668ba[_0x5e6b79(0xb8)](_0x5d8cd3);return new URLSearchParams(location['search'])[_0x5e6b79(0xb8)](_0x5e6b79(0xbf))?_0x4559cd['importXLSXToUnitId']():_0x4559cd[_0x5e6b79(0xbe)](),!0x0;}},u={'id':_0x14f6c9(0xb9),'type':_0x4c1b14['OPERATION'],'handler':async _0x4ff87e=>{const _0x5be7de=_0x14f6c9,_0x626fee=_0x4ff87e[_0x5be7de(0xb8)](_0x5d8cd3);return new URLSearchParams(location[_0x5be7de(0xb7)])[_0x5be7de(0xb8)](_0x5be7de(0xbf))?_0x626fee[_0x5be7de(0xb2)]():_0x626fee[_0x5be7de(0xaa)](),!0x0;}},H=_0x14f6c9(0xc6),l={},S=_0x14f6c9(0xae);function R(_0x2b38fc){const _0x39b356=_0x14f6c9;return{'id':S,'type':_0x15930a[_0x39b356(0xb3)],'icon':_0x39b356(0xbb),'tooltip':'exchange.file','hidden$':_0x216185(_0x2b38fc,_0x1c0512[_0x39b356(0xc0)]),'disabled$':_0x1e9323(_0x2b38fc,{'workbookTypes':[_0x141246]})};}function w(){const _0x180449=_0x14f6c9;return{'id':p['id'],'type':_0x15930a[_0x180449(0xcc)],'title':_0x180449(0xa3),'icon':_0x180449(0xbd)};}function D(){const _0x476de2=_0x14f6c9;return{'id':u['id'],'type':_0x15930a[_0x476de2(0xcc)],'title':_0x476de2(0xc7),'icon':'ExportIcon'};}const F={[_0x33963b['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x14f6c9(0xc9)],A=(_0x4a30e3,_0x536dc3,_0x496f43,_0x23f08d)=>{const _0x3228ae=_0x14f6c9;for(var _0x2d3744=_0x23f08d>0x1?void 0x0:_0x23f08d?G(_0x536dc3,_0x496f43):_0x536dc3,_0x4eafd4=_0x4a30e3[_0x3228ae(0xa8)]-0x1,_0x44365d;_0x4eafd4>=0x0;_0x4eafd4--)(_0x44365d=_0x4a30e3[_0x4eafd4])&&(_0x2d3744=_0x44365d(_0x2d3744)||_0x2d3744);return _0x2d3744;},d=(_0x145228,_0x5b0386)=>(_0x49243e,_0x4283bf)=>_0x5b0386(_0x49243e,_0x4283bf,_0x145228);let c=class extends _0x272660{constructor(_0x20c858,_0x49f0d7){const _0x211368=_0x14f6c9;super(),this[_0x211368(0xa9)]=_0x20c858,this[_0x211368(0xb5)]=_0x49f0d7,this[_0x211368(0xc2)](),this[_0x211368(0xaf)]();}[_0x14f6c9(0xc2)](){const _0xa95674=_0x14f6c9;[p,u][_0xa95674(0xd0)](_0x4a853e=>{const _0x4d3cf6=_0xa95674;this[_0x4d3cf6(0xb0)](this['_commandService']['registerCommand'](_0x4a853e));});}[_0x14f6c9(0xaf)](){const _0x1623c7=_0x14f6c9;this[_0x1623c7(0xb5)][_0x1623c7(0xc4)](F);}};function _0x1d88(_0x566009,_0x6ac0fb){const _0x44c585=_0x44c5();return _0x1d88=function(_0x1d8834,_0xe9dde5){_0x1d8834=_0x1d8834-0xa3;let _0x3f5e65=_0x44c585[_0x1d8834];return _0x3f5e65;},_0x1d88(_0x566009,_0x6ac0fb);}c=A([d(0x0,_0xb97fac),d(0x1,_0x30b4da)],c);var j=Object['defineProperty'],B=Object[_0x14f6c9(0xc9)],$=(_0x231935,_0x485cc9,_0x29fda6)=>_0x485cc9 in _0x231935?j(_0x231935,_0x485cc9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29fda6}):_0x231935[_0x485cc9]=_0x29fda6,V=(_0x2d81ff,_0x41afbe,_0x1e2f21,_0x79caa8)=>{const _0x32e477=_0x14f6c9;for(var _0x5363c6=_0x79caa8>0x1?void 0x0:_0x79caa8?B(_0x41afbe,_0x1e2f21):_0x41afbe,_0x14b460=_0x2d81ff[_0x32e477(0xa8)]-0x1,_0x5a56a6;_0x14b460>=0x0;_0x14b460--)(_0x5a56a6=_0x2d81ff[_0x14b460])&&(_0x5363c6=_0x5a56a6(_0x5363c6)||_0x5363c6);return _0x5363c6;},_=(_0x2d5abd,_0x3135f3)=>(_0x19615c,_0x4c6112)=>_0x3135f3(_0x19615c,_0x4c6112,_0x2d5abd),I=(_0x5d5fac,_0x1bdd32,_0x1486ae)=>$(_0x5d5fac,typeof _0x1bdd32!=_0x14f6c9(0xa6)?_0x1bdd32+'':_0x1bdd32,_0x1486ae);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x1e8f44{constructor(_0x3744bd=l,_0x35944f,_0x2b664e){const _0x58350f=_0x14f6c9;super(),this['_config']=_0x3744bd,this[_0x58350f(0xc1)]=_0x35944f,this[_0x58350f(0xb6)]=_0x2b664e;const {menu:_0x567035,..._0x42001b}=_0x4ef205({},l,this[_0x58350f(0xca)]);_0x567035&&this[_0x58350f(0xb6)][_0x58350f(0xce)](_0x58350f(0xba),_0x567035,{'merge':!0x0}),this[_0x58350f(0xb6)][_0x58350f(0xce)](H,_0x42001b);}[_0x14f6c9(0xb1)](){const _0x207c9f=_0x14f6c9;[[c]][_0x207c9f(0xd0)](_0x524196=>this['_injector']['add'](_0x524196));}['onReady'](){this['_injector']['get'](c);}};I(s,_0x14f6c9(0xac),W),I(s,_0x14f6c9(0xad),_0x1c0512['UNIVER_SHEET']),s=V([_0x456071(_0x37b85f),_(0x1,_0x1c82f1(_0x6613ad)),_(0x2,_0x2974f4)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x378f78=_0xd8d9;(function(_0x443c28,_0x2b6eef){const _0x1e0674=_0xd8d9,_0xc076e2=_0x443c28();while(!![]){try{const _0x303093=-parseInt(_0x1e0674(0xaa))/0x1+parseInt(_0x1e0674(0x9b))/0x2+-parseInt(_0x1e0674(0xa6))/0x3+parseInt(_0x1e0674(0x99))/0x4+parseInt(_0x1e0674(0x97))/0x5*(parseInt(_0x1e0674(0xb9))/0x6)+-parseInt(_0x1e0674(0x95))/0x7*(-parseInt(_0x1e0674(0xb1))/0x8)+-parseInt(_0x1e0674(0xac))/0x9;if(_0x303093===_0x2b6eef)break;else _0xc076e2['push'](_0xc076e2['shift']());}catch(_0x80e609){_0xc076e2['push'](_0xc076e2['shift']());}}}(_0x67ef,0x93d76));import{IExchangeOperateService as _0x4e4381,UniverExchangeClientPlugin as _0xe5ce8e}from'@univerjs-pro/exchange-client';import{CommandType as _0xf78ba0,UniverInstanceType as _0x1b5d8b,Disposable as _0xe1c2cb,ICommandService as _0x2def27,DependentOn as _0x2513fe,Inject as _0xd5c3cc,Injector as _0x1f0cfe,IConfigService as _0x370fc3,Plugin as _0x3cc9ed,merge as _0xec4dd9}from'@univerjs/core';import{MenuItemType as _0x2a3313,getMenuHiddenObservable as _0x3f410c,RibbonStartGroup as _0x1bca4c,IMenuManagerService as _0x4d22b7}from'@univerjs/ui';import{WorkbookExportPermission as _0x20345c}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x579c28}from'@univerjs/sheets-ui';const p={'id':_0x378f78(0xbb),'type':_0xf78ba0[_0x378f78(0xae)],'handler':async _0x55e8b6=>{const _0x3f0415=_0x378f78,_0xab3eea=_0x55e8b6[_0x3f0415(0x9e)](_0x4e4381);return new URLSearchParams(location[_0x3f0415(0xa8)])[_0x3f0415(0x9e)](_0x3f0415(0xad))?_0xab3eea[_0x3f0415(0xb8)]():_0xab3eea[_0x3f0415(0xb6)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0xf78ba0[_0x378f78(0xae)],'handler':async _0x863322=>{const _0xc7ef30=_0x378f78,_0x380941=_0x863322['get'](_0x4e4381);return new URLSearchParams(location[_0xc7ef30(0xa8)])[_0xc7ef30(0x9e)](_0xc7ef30(0xad))?_0x380941[_0xc7ef30(0xb7)]():_0x380941['exportXLSXBySnapshot'](),!0x0;}},H=_0x378f78(0x96),l={},S=_0x378f78(0xb4);function R(_0x2ca879){const _0x542b0c=_0x378f78;return{'id':S,'type':_0x2a3313['SUBITEMS'],'icon':_0x542b0c(0x9f),'tooltip':_0x542b0c(0xa1),'hidden$':_0x3f410c(_0x2ca879,_0x1b5d8b[_0x542b0c(0xa2)]),'disabled$':_0x579c28(_0x2ca879,{'workbookTypes':[_0x20345c]})};}function w(){const _0xfeff71=_0x378f78;return{'id':p['id'],'type':_0x2a3313['BUTTON'],'title':_0xfeff71(0xbe),'icon':_0xfeff71(0x9a)};}function D(){const _0x7d68f2=_0x378f78;return{'id':u['id'],'type':_0x2a3313[_0x7d68f2(0xab)],'title':_0x7d68f2(0xb3),'icon':'ExportIcon'};}const F={[_0x1bca4c['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x2f51a3,_0x1d6bf3,_0x4f5a93,_0xe86245)=>{const _0x215d9d=_0x378f78;for(var _0x3c3db6=_0xe86245>0x1?void 0x0:_0xe86245?G(_0x1d6bf3,_0x4f5a93):_0x1d6bf3,_0xf41818=_0x2f51a3[_0x215d9d(0xa3)]-0x1,_0x5bfcc6;_0xf41818>=0x0;_0xf41818--)(_0x5bfcc6=_0x2f51a3[_0xf41818])&&(_0x3c3db6=_0x5bfcc6(_0x3c3db6)||_0x3c3db6);return _0x3c3db6;},d=(_0x45c4f5,_0x1844a5)=>(_0xe2b8c5,_0x5c67fe)=>_0x1844a5(_0xe2b8c5,_0x5c67fe,_0x45c4f5);let c=class extends _0xe1c2cb{constructor(_0x57f9a8,_0x46510d){const _0x26db5a=_0x378f78;super(),this['_commandService']=_0x57f9a8,this[_0x26db5a(0xa5)]=_0x46510d,this['_initCommands'](),this[_0x26db5a(0xb5)]();}[_0x378f78(0xbc)](){const _0x5c1ba5=_0x378f78;[p,u][_0x5c1ba5(0xaf)](_0x555038=>{const _0x40fdc7=_0x5c1ba5;this[_0x40fdc7(0x9c)](this['_commandService'][_0x40fdc7(0xa0)](_0x555038));});}[_0x378f78(0xb5)](){const _0x8ee3e0=_0x378f78;this[_0x8ee3e0(0xa5)][_0x8ee3e0(0xbd)](F);}};c=A([d(0x0,_0x2def27),d(0x1,_0x4d22b7)],c);function _0xd8d9(_0x5ad084,_0x190ff9){const _0x67ef7d=_0x67ef();return _0xd8d9=function(_0xd8d90f,_0x547140){_0xd8d90f=_0xd8d90f-0x95;let _0x3b41ee=_0x67ef7d[_0xd8d90f];return _0x3b41ee;},_0xd8d9(_0x5ad084,_0x190ff9);}var j=Object[_0x378f78(0xa9)],B=Object[_0x378f78(0xb0)],$=(_0x22d226,_0x27a0ce,_0x166757)=>_0x27a0ce in _0x22d226?j(_0x22d226,_0x27a0ce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x166757}):_0x22d226[_0x27a0ce]=_0x166757,V=(_0x19e632,_0x417c85,_0x48c6db,_0x1b83ee)=>{const _0x421151=_0x378f78;for(var _0x1d1ce4=_0x1b83ee>0x1?void 0x0:_0x1b83ee?B(_0x417c85,_0x48c6db):_0x417c85,_0x5330bd=_0x19e632[_0x421151(0xa3)]-0x1,_0x18b65c;_0x5330bd>=0x0;_0x5330bd--)(_0x18b65c=_0x19e632[_0x5330bd])&&(_0x1d1ce4=_0x18b65c(_0x1d1ce4)||_0x1d1ce4);return _0x1d1ce4;},_=(_0x1c23cc,_0x1095a7)=>(_0x1d06ca,_0x1be4ed)=>_0x1095a7(_0x1d06ca,_0x1be4ed,_0x1c23cc),I=(_0x4847b1,_0x49624e,_0x46c4a0)=>$(_0x4847b1,typeof _0x49624e!='symbol'?_0x49624e+'':_0x49624e,_0x46c4a0);const W=_0x378f78(0x98);let s=class extends _0x3cc9ed{constructor(_0x2a22a9=l,_0x531991,_0x1fd6d7){const _0x3a570b=_0x378f78;super(),this['_config']=_0x2a22a9,this['_injector']=_0x531991,this[_0x3a570b(0xbf)]=_0x1fd6d7;const {menu:_0x1c9f55,..._0x2b42da}=_0xec4dd9({},l,this[_0x3a570b(0xa4)]);_0x1c9f55&&this[_0x3a570b(0xbf)][_0x3a570b(0xba)](_0x3a570b(0xa7),_0x1c9f55,{'merge':!0x0}),this[_0x3a570b(0xbf)][_0x3a570b(0xba)](H,_0x2b42da);}['onStarting'](){const _0x3fa031=_0x378f78;[[c]][_0x3fa031(0xaf)](_0x16a55f=>this[_0x3fa031(0xc0)][_0x3fa031(0xb2)](_0x16a55f));}['onReady'](){const _0x540124=_0x378f78;this[_0x540124(0xc0)]['get'](c);}};function _0x67ef(){const _0x9a21bb=['exportXLSXByUnitId','importXLSXToUnitId','6077934xgaHyC','setConfig','exchange-client.operation.import-xlsx','_initCommands','mergeMenu','exchange.upload','_configService','_injector','21rOxXrg','sheets-exchange-client.config','5xRzXeP','SHEET_EXCHANGE_CLIENT_PLUGIN','2798728PIDRBL','FolderIcon','896778hFvqQy','disposeWithMe','pluginName','get','DirectExportIcon','registerCommand','exchange.file','UNIVER_SHEET','length','_config','_menuManagerService','1958043rmeVzY','menu','search','defineProperty','564391WRdlBh','BUTTON','9500328eIJlla','unit','OPERATION','forEach','getOwnPropertyDescriptor','1912432tiGNJV','add','exchange.download','sheets-exchange-client.operation.exchange','_initMenus','importXLSXToSnapshot'];_0x67ef=function(){return _0x9a21bb;};return _0x67ef();}I(s,_0x378f78(0x9d),W),I(s,'type',_0x1b5d8b['UNIVER_SHEET']),s=V([_0x2513fe(_0xe5ce8e),_(0x1,_0xd5c3cc(_0x1f0cfe)),_(0x2,_0x370fc3)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x14f6c9=_0x1d88;(function(_0x523436,_0x206a2b){const _0x29ec16=_0x1d88,_0x3f182e=_0x523436();while(!![]){try{const _0x303691=-parseInt(_0x29ec16(0xb4))/0x1*(-parseInt(_0x29ec16(0xc5))/0x2)+-parseInt(_0x29ec16(0xcd))/0x3*(parseInt(_0x29ec16(0xa7))/0x4)+-parseInt(_0x29ec16(0xc8))/0x5+-parseInt(_0x29ec16(0xd1))/0x6+parseInt(_0x29ec16(0xbc))/0x7*(-parseInt(_0x29ec16(0xab))/0x8)+parseInt(_0x29ec16(0xd2))/0x9*(parseInt(_0x29ec16(0xc3))/0xa)+parseInt(_0x29ec16(0xa5))/0xb*(parseInt(_0x29ec16(0xcf))/0xc);if(_0x303691===_0x206a2b)break;else _0x3f182e['push'](_0x3f182e['shift']());}catch(_0x45c007){_0x3f182e['push'](_0x3f182e['shift']());}}}(_0x44c5,0x464a8));function _0x44c5(){const _0x216c77=['exportXLSXByUnitId','SUBITEMS','1RmgKJs','_menuManagerService','_configService','search','get','exchange-client.operation.export-xlsx','menu','DirectExportIcon','856443neTKeX','FolderIcon','importXLSXToSnapshot','unit','UNIVER_SHEET','_injector','_initCommands','10GRbUqV','mergeMenu','576006SiYcuS','sheets-exchange-client.config','exchange.download','1378550wFDEXA','getOwnPropertyDescriptor','_config','exchange-client.operation.import-xlsx','BUTTON','33jGkjJN','setConfig','12RUPzVF','forEach','2673060WRpRLK','2624229IkEJeC','exchange.upload','OPERATION','12035078RsZrvw','symbol','197164uMmMEM','length','_commandService','exportXLSXBySnapshot','8RsUfgn','pluginName','type','sheets-exchange-client.operation.exchange','_initMenus','disposeWithMe','onStarting'];_0x44c5=function(){return _0x216c77;};return _0x44c5();}import{IExchangeOperateService as _0x5d8cd3,UniverExchangeClientPlugin as _0x37b85f}from'@univerjs-pro/exchange-client';import{CommandType as _0x4c1b14,UniverInstanceType as _0x1c0512,Disposable as _0x272660,ICommandService as _0xb97fac,DependentOn as _0x456071,Inject as _0x1c82f1,Injector as _0x6613ad,IConfigService as _0x2974f4,Plugin as _0x1e8f44,merge as _0x4ef205}from'@univerjs/core';import{MenuItemType as _0x15930a,getMenuHiddenObservable as _0x216185,RibbonStartGroup as _0x33963b,IMenuManagerService as _0x30b4da}from'@univerjs/ui';import{WorkbookExportPermission as _0x141246}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x1e9323}from'@univerjs/sheets-ui';const p={'id':_0x14f6c9(0xcb),'type':_0x4c1b14[_0x14f6c9(0xa4)],'handler':async _0x2668ba=>{const _0x5e6b79=_0x14f6c9,_0x4559cd=_0x2668ba[_0x5e6b79(0xb8)](_0x5d8cd3);return new URLSearchParams(location['search'])[_0x5e6b79(0xb8)](_0x5e6b79(0xbf))?_0x4559cd['importXLSXToUnitId']():_0x4559cd[_0x5e6b79(0xbe)](),!0x0;}},u={'id':_0x14f6c9(0xb9),'type':_0x4c1b14['OPERATION'],'handler':async _0x4ff87e=>{const _0x5be7de=_0x14f6c9,_0x626fee=_0x4ff87e[_0x5be7de(0xb8)](_0x5d8cd3);return new URLSearchParams(location[_0x5be7de(0xb7)])[_0x5be7de(0xb8)](_0x5be7de(0xbf))?_0x626fee[_0x5be7de(0xb2)]():_0x626fee[_0x5be7de(0xaa)](),!0x0;}},H=_0x14f6c9(0xc6),l={},S=_0x14f6c9(0xae);function R(_0x2b38fc){const _0x39b356=_0x14f6c9;return{'id':S,'type':_0x15930a[_0x39b356(0xb3)],'icon':_0x39b356(0xbb),'tooltip':'exchange.file','hidden$':_0x216185(_0x2b38fc,_0x1c0512[_0x39b356(0xc0)]),'disabled$':_0x1e9323(_0x2b38fc,{'workbookTypes':[_0x141246]})};}function w(){const _0x180449=_0x14f6c9;return{'id':p['id'],'type':_0x15930a[_0x180449(0xcc)],'title':_0x180449(0xa3),'icon':_0x180449(0xbd)};}function D(){const _0x476de2=_0x14f6c9;return{'id':u['id'],'type':_0x15930a[_0x476de2(0xcc)],'title':_0x476de2(0xc7),'icon':'ExportIcon'};}const F={[_0x33963b['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x14f6c9(0xc9)],A=(_0x4a30e3,_0x536dc3,_0x496f43,_0x23f08d)=>{const _0x3228ae=_0x14f6c9;for(var _0x2d3744=_0x23f08d>0x1?void 0x0:_0x23f08d?G(_0x536dc3,_0x496f43):_0x536dc3,_0x4eafd4=_0x4a30e3[_0x3228ae(0xa8)]-0x1,_0x44365d;_0x4eafd4>=0x0;_0x4eafd4--)(_0x44365d=_0x4a30e3[_0x4eafd4])&&(_0x2d3744=_0x44365d(_0x2d3744)||_0x2d3744);return _0x2d3744;},d=(_0x145228,_0x5b0386)=>(_0x49243e,_0x4283bf)=>_0x5b0386(_0x49243e,_0x4283bf,_0x145228);let c=class extends _0x272660{constructor(_0x20c858,_0x49f0d7){const _0x211368=_0x14f6c9;super(),this[_0x211368(0xa9)]=_0x20c858,this[_0x211368(0xb5)]=_0x49f0d7,this[_0x211368(0xc2)](),this[_0x211368(0xaf)]();}[_0x14f6c9(0xc2)](){const _0xa95674=_0x14f6c9;[p,u][_0xa95674(0xd0)](_0x4a853e=>{const _0x4d3cf6=_0xa95674;this[_0x4d3cf6(0xb0)](this['_commandService']['registerCommand'](_0x4a853e));});}[_0x14f6c9(0xaf)](){const _0x1623c7=_0x14f6c9;this[_0x1623c7(0xb5)][_0x1623c7(0xc4)](F);}};function _0x1d88(_0x566009,_0x6ac0fb){const _0x44c585=_0x44c5();return _0x1d88=function(_0x1d8834,_0xe9dde5){_0x1d8834=_0x1d8834-0xa3;let _0x3f5e65=_0x44c585[_0x1d8834];return _0x3f5e65;},_0x1d88(_0x566009,_0x6ac0fb);}c=A([d(0x0,_0xb97fac),d(0x1,_0x30b4da)],c);var j=Object['defineProperty'],B=Object[_0x14f6c9(0xc9)],$=(_0x231935,_0x485cc9,_0x29fda6)=>_0x485cc9 in _0x231935?j(_0x231935,_0x485cc9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29fda6}):_0x231935[_0x485cc9]=_0x29fda6,V=(_0x2d81ff,_0x41afbe,_0x1e2f21,_0x79caa8)=>{const _0x32e477=_0x14f6c9;for(var _0x5363c6=_0x79caa8>0x1?void 0x0:_0x79caa8?B(_0x41afbe,_0x1e2f21):_0x41afbe,_0x14b460=_0x2d81ff[_0x32e477(0xa8)]-0x1,_0x5a56a6;_0x14b460>=0x0;_0x14b460--)(_0x5a56a6=_0x2d81ff[_0x14b460])&&(_0x5363c6=_0x5a56a6(_0x5363c6)||_0x5363c6);return _0x5363c6;},_=(_0x2d5abd,_0x3135f3)=>(_0x19615c,_0x4c6112)=>_0x3135f3(_0x19615c,_0x4c6112,_0x2d5abd),I=(_0x5d5fac,_0x1bdd32,_0x1486ae)=>$(_0x5d5fac,typeof _0x1bdd32!=_0x14f6c9(0xa6)?_0x1bdd32+'':_0x1bdd32,_0x1486ae);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x1e8f44{constructor(_0x3744bd=l,_0x35944f,_0x2b664e){const _0x58350f=_0x14f6c9;super(),this['_config']=_0x3744bd,this[_0x58350f(0xc1)]=_0x35944f,this[_0x58350f(0xb6)]=_0x2b664e;const {menu:_0x567035,..._0x42001b}=_0x4ef205({},l,this[_0x58350f(0xca)]);_0x567035&&this[_0x58350f(0xb6)][_0x58350f(0xce)](_0x58350f(0xba),_0x567035,{'merge':!0x0}),this[_0x58350f(0xb6)][_0x58350f(0xce)](H,_0x42001b);}[_0x14f6c9(0xb1)](){const _0x207c9f=_0x14f6c9;[[c]][_0x207c9f(0xd0)](_0x524196=>this['_injector']['add'](_0x524196));}['onReady'](){this['_injector']['get'](c);}};I(s,_0x14f6c9(0xac),W),I(s,_0x14f6c9(0xad),_0x1c0512['UNIVER_SHEET']),s=V([_0x456071(_0x37b85f),_(0x1,_0x1c82f1(_0x6613ad)),_(0x2,_0x2974f4)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x47a683,_0x21a3d6){const _0x1c0581=_0x4447,_0x64b710=_0x47a683();while(!![]){try{const _0x390af2=parseInt(_0x1c0581(0x1e0))/0x1+-parseInt(_0x1c0581(0x1b4))/0x2*(-parseInt(_0x1c0581(0x1be))/0x3)+parseInt(_0x1c0581(0x1c8))/0x4*(-parseInt(_0x1c0581(0x1c2))/0x5)+parseInt(_0x1c0581(0x1c4))/0x6*(-parseInt(_0x1c0581(0x1e6))/0x7)+-parseInt(_0x1c0581(0x1b6))/0x8*(-parseInt(_0x1c0581(0x1ba))/0x9)+-parseInt(_0x1c0581(0x1ce))/0xa*(parseInt(_0x1c0581(0x1b7))/0xb)+-parseInt(_0x1c0581(0x1f2))/0xc;if(_0x390af2===_0x21a3d6)break;else _0x64b710['push'](_0x64b710['shift']());}catch(_0x3e2444){_0x64b710['push'](_0x64b710['shift']());}}}(_0x553b,0x92873),function(_0x7c0e6b,_0x5866b1){const _0x37cc0b=_0x4447;typeof exports==_0x37cc0b(0x1f0)&&typeof module<'u'?_0x5866b1(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define=='function'&&define['amd']?define([_0x37cc0b(0x1bb),_0x37cc0b(0x1c3),_0x37cc0b(0x1e1),'@univerjs/ui',_0x37cc0b(0x1da),'@univerjs/sheets-ui'],_0x5866b1):(_0x7c0e6b=typeof globalThis<'u'?globalThis:_0x7c0e6b||self,_0x5866b1(_0x7c0e6b['UniverProSheetsExchangeClient']={},_0x7c0e6b['UniverProExchangeClient'],_0x7c0e6b['UniverCore'],_0x7c0e6b[_0x37cc0b(0x1c6)],_0x7c0e6b[_0x37cc0b(0x1b1)],_0x7c0e6b[_0x37cc0b(0x1d7)]));}(this,function(_0x320329,_0x1c0e70,_0x227779,_0x25e353,_0x5854e5,_0x456bb8){'use strict';const _0x291a5b=_0x4447;const _0x1139e7={'id':_0x291a5b(0x1cc),'type':_0x227779['CommandType'][_0x291a5b(0x1dd)],'handler':async _0xa86c26=>{const _0x263ac4=_0x291a5b,_0x22ad91=_0xa86c26[_0x263ac4(0x1d5)](_0x1c0e70[_0x263ac4(0x1f1)]);return new URLSearchParams(location[_0x263ac4(0x1b8)])[_0x263ac4(0x1d5)]('unit')?_0x22ad91[_0x263ac4(0x1e3)]():_0x22ad91[_0x263ac4(0x1eb)](),!0x0;}},_0x1974fc={'id':_0x291a5b(0x1d9),'type':_0x227779[_0x291a5b(0x1d2)][_0x291a5b(0x1dd)],'handler':async _0x4b9db9=>{const _0xf72cf1=_0x291a5b,_0x12fc00=_0x4b9db9['get'](_0x1c0e70[_0xf72cf1(0x1f1)]);return new URLSearchParams(location[_0xf72cf1(0x1b8)])[_0xf72cf1(0x1d5)](_0xf72cf1(0x1e8))?_0x12fc00[_0xf72cf1(0x1ae)]():_0x12fc00[_0xf72cf1(0x1e5)](),!0x0;}},_0x33849b=_0x291a5b(0x1bd),_0x28250c={},_0x59b15f=_0x291a5b(0x1d4);function _0x336a2d(_0x3e0f2e){const _0x139de8=_0x291a5b;return{'id':_0x59b15f,'type':_0x25e353['MenuItemType'][_0x139de8(0x1ad)],'icon':_0x139de8(0x1ef),'tooltip':'exchange.file','hidden$':_0x25e353['getMenuHiddenObservable'](_0x3e0f2e,_0x227779[_0x139de8(0x1cb)][_0x139de8(0x1dc)]),'disabled$':_0x456bb8['getCurrentRangeDisable$'](_0x3e0f2e,{'workbookTypes':[_0x5854e5[_0x139de8(0x1ca)]]})};}function _0x2ea301(){const _0xe212a9=_0x291a5b;return{'id':_0x1139e7['id'],'type':_0x25e353[_0xe212a9(0x1ec)][_0xe212a9(0x1ac)],'title':_0xe212a9(0x1d3),'icon':_0xe212a9(0x1a9)};}function _0x1b6447(){const _0x4fbc6e=_0x291a5b;return{'id':_0x1974fc['id'],'type':_0x25e353[_0x4fbc6e(0x1ec)]['BUTTON'],'title':_0x4fbc6e(0x1a6),'icon':'ExportIcon'};}const _0x195649={[_0x25e353['RibbonStartGroup'][_0x291a5b(0x1b9)]]:{[_0x59b15f]:{'order':0.3,'menuItemFactory':_0x336a2d,[_0x1139e7['id']]:{'order':0x0,'menuItemFactory':_0x2ea301},[_0x1974fc['id']]:{'order':0x1,'menuItemFactory':_0x1b6447}}}};var _0x16d746=Object[_0x291a5b(0x1d6)],_0x282e39=(_0x487dc2,_0x290024,_0x34a0ea,_0x4f22d1)=>{const _0x225363=_0x291a5b;for(var _0x1c4443=_0x4f22d1>0x1?void 0x0:_0x4f22d1?_0x16d746(_0x290024,_0x34a0ea):_0x290024,_0x4ba981=_0x487dc2[_0x225363(0x1bc)]-0x1,_0x771f7e;_0x4ba981>=0x0;_0x4ba981--)(_0x771f7e=_0x487dc2[_0x4ba981])&&(_0x1c4443=_0x771f7e(_0x1c4443)||_0x1c4443);return _0x1c4443;},_0x20c061=(_0x167706,_0x17e090)=>(_0x2510a9,_0x51cc84)=>_0x17e090(_0x2510a9,_0x51cc84,_0x167706);let _0x5cf5f5=class extends _0x227779[_0x291a5b(0x1ab)]{constructor(_0x5dc786,_0x4b0b3b){const _0x4aa045=_0x291a5b;super(),this['_commandService']=_0x5dc786,this[_0x4aa045(0x1e4)]=_0x4b0b3b,this[_0x4aa045(0x1cd)](),this[_0x4aa045(0x1bf)]();}[_0x291a5b(0x1cd)](){const _0x17f733=_0x291a5b;[_0x1139e7,_0x1974fc][_0x17f733(0x1c1)](_0x3aecc4=>{const _0x351277=_0x17f733;this[_0x351277(0x1ea)](this['_commandService'][_0x351277(0x1d8)](_0x3aecc4));});}[_0x291a5b(0x1bf)](){const _0x7a5d68=_0x291a5b;this[_0x7a5d68(0x1e4)][_0x7a5d68(0x1db)](_0x195649);}};_0x5cf5f5=_0x282e39([_0x20c061(0x0,_0x227779[_0x291a5b(0x1e2)]),_0x20c061(0x1,_0x25e353['IMenuManagerService'])],_0x5cf5f5);var _0x285ec1=Object[_0x291a5b(0x1ee)],_0x1e4032=Object[_0x291a5b(0x1d6)],_0x243cf9=(_0x16833f,_0x313d4c,_0x5c1af7)=>_0x313d4c in _0x16833f?_0x285ec1(_0x16833f,_0x313d4c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c1af7}):_0x16833f[_0x313d4c]=_0x5c1af7,_0x574d27=(_0x406017,_0x3d35da,_0x4620f6,_0x22f933)=>{for(var _0xfd3789=_0x22f933>0x1?void 0x0:_0x22f933?_0x1e4032(_0x3d35da,_0x4620f6):_0x3d35da,_0x5e5777=_0x406017['length']-0x1,_0x53e292;_0x5e5777>=0x0;_0x5e5777--)(_0x53e292=_0x406017[_0x5e5777])&&(_0xfd3789=_0x53e292(_0xfd3789)||_0xfd3789);return _0xfd3789;},_0x279109=(_0x57a29f,_0x12b6f5)=>(_0x1644b0,_0x2f4c18)=>_0x12b6f5(_0x1644b0,_0x2f4c18,_0x57a29f),_0x555737=(_0x201a3b,_0x1a1171,_0x53448d)=>_0x243cf9(_0x201a3b,typeof _0x1a1171!='symbol'?_0x1a1171+'':_0x1a1171,_0x53448d);const _0x1d9165=_0x291a5b(0x1e9);_0x320329['UniverSheetsExchangeClientPlugin']=class extends _0x227779[_0x291a5b(0x1c0)]{constructor(_0x176ce3=_0x28250c,_0x464cc1,_0x49b0dd){const _0x317c58=_0x291a5b;super(),this['_config']=_0x176ce3,this[_0x317c58(0x1c9)]=_0x464cc1,this[_0x317c58(0x1c5)]=_0x49b0dd;const {menu:_0x1c2ba9,..._0x1fc993}=_0x227779[_0x317c58(0x1b5)]({},_0x28250c,this[_0x317c58(0x1a7)]);_0x1c2ba9&&this[_0x317c58(0x1c5)][_0x317c58(0x1e7)](_0x317c58(0x1aa),_0x1c2ba9,{'merge':!0x0}),this[_0x317c58(0x1c5)][_0x317c58(0x1e7)](_0x33849b,_0x1fc993);}[_0x291a5b(0x1d1)](){const _0x4176f8=_0x291a5b;[[_0x5cf5f5]][_0x4176f8(0x1c1)](_0x2dc11c=>this[_0x4176f8(0x1c9)][_0x4176f8(0x1b2)](_0x2dc11c));}[_0x291a5b(0x1b0)](){const _0x416785=_0x291a5b;this[_0x416785(0x1c9)]['get'](_0x5cf5f5);}},_0x555737(_0x320329[_0x291a5b(0x1f3)],_0x291a5b(0x1df),_0x1d9165),_0x555737(_0x320329[_0x291a5b(0x1f3)],_0x291a5b(0x1b3),_0x227779['UniverInstanceType'][_0x291a5b(0x1dc)]),_0x320329[_0x291a5b(0x1f3)]=_0x574d27([_0x227779['DependentOn'](_0x1c0e70[_0x291a5b(0x1d0)]),_0x279109(0x1,_0x227779[_0x291a5b(0x1af)](_0x227779[_0x291a5b(0x1ed)])),_0x279109(0x2,_0x227779[_0x291a5b(0x1cf)])],_0x320329[_0x291a5b(0x1f3)]),_0x320329[_0x291a5b(0x1a8)]=_0x1974fc,_0x320329[_0x291a5b(0x1c7)]=_0x1139e7,Object['defineProperty'](_0x320329,Symbol['toStringTag'],{'value':_0x291a5b(0x1de)});}));function _0x4447(_0x5b94d9,_0x5db3d4){const _0x553be8=_0x553b();return _0x4447=function(_0x4447e2,_0x33d6fe){_0x4447e2=_0x4447e2-0x1a6;let _0x3bf917=_0x553be8[_0x4447e2];return _0x3bf917;},_0x4447(_0x5b94d9,_0x5db3d4);}function _0x553b(){const _0x94fb8=['exchange.download','_config','ExportXLSXOperation','FolderIcon','menu','Disposable','BUTTON','SUBITEMS','exportXLSXByUnitId','Inject','onReady','UniverSheets','add','type','795076tKJsrX','merge','2696EFHzuk','583YwZSEX','search','OTHERS','9765HNwCHz','exports','length','sheets-exchange-client.config','3BSQlUu','_initMenus','Plugin','forEach','215eefoly','@univerjs-pro/exchange-client','84918cfUDnD','_configService','UniverUi','ImportXLSXOperation','27956uXsocl','_injector','WorkbookExportPermission','UniverInstanceType','exchange-client.operation.import-xlsx','_initCommands','43420OhPCeY','IConfigService','UniverExchangeClientPlugin','onStarting','CommandType','exchange.upload','sheets-exchange-client.operation.exchange','get','getOwnPropertyDescriptor','UniverSheetsUi','registerCommand','exchange-client.operation.export-xlsx','@univerjs/sheets','mergeMenu','UNIVER_SHEET','OPERATION','Module','pluginName','920670nnSfIo','@univerjs/core','ICommandService','importXLSXToUnitId','_menuManagerService','exportXLSXBySnapshot','140QYwvGN','setConfig','unit','SHEET_EXCHANGE_CLIENT_PLUGIN','disposeWithMe','importXLSXToSnapshot','MenuItemType','Injector','defineProperty','DirectExportIcon','object','IExchangeOperateService','3239532tfxxtJ','UniverSheetsExchangeClientPlugin'];_0x553b=function(){return _0x94fb8;};return _0x553b();}
1
+ function _0x570b(_0x364ee8,_0x3bc901){const _0x31e88b=_0x31e8();return _0x570b=function(_0x570b62,_0x3d319e){_0x570b62=_0x570b62-0x177;let _0x388782=_0x31e88b[_0x570b62];return _0x388782;},_0x570b(_0x364ee8,_0x3bc901);}function _0x31e8(){const _0x574cf5=['_injector','OPERATION','_menuManagerService','ExportXLSXOperation','setConfig','@univerjs/ui','search','SUBITEMS','onReady','length','amd','ExportIcon','object','pluginName','DirectExportIcon','@univerjs/sheets-ui','getCurrentRangeDisable$','type','1342CDTMlB','toStringTag','exchange-client.operation.import-xlsx','28sfPMmk','onStarting','Injector','forEach','RibbonStartGroup','SHEET_EXCHANGE_CLIENT_PLUGIN','ICommandService','IConfigService','getMenuHiddenObservable','Plugin','UniverInstanceType','UniverSheetsExchangeClientPlugin','FolderIcon','308280CYcDli','_config','ImportXLSXOperation','UniverSheets','get','_initCommands','155bOqzik','Module','exportXLSXBySnapshot','5693fiRHUI','UniverExchangeClientPlugin','disposeWithMe','symbol','BUTTON','_initMenus','DependentOn','getOwnPropertyDescriptor','menu','Inject','801051ZYPxNZ','mergeMenu','UNIVER_SHEET','UniverProSheetsExchangeClient','42770bGaytD','UniverSheetsUi','unit','exchange.upload','UniverCore','exportXLSXByUnitId','exchange-client.operation.export-xlsx','50CxADif','_commandService','CommandType','exports','defineProperty','Disposable','15800HbuYqf','IMenuManagerService','MenuItemType','add','2554020eCCdoA','IExchangeOperateService','_configService','41704qXXVhe','WorkbookExportPermission','@univerjs-pro/exchange-client','exchange.download'];_0x31e8=function(){return _0x574cf5;};return _0x31e8();}(function(_0x258970,_0x3bdb7b){const _0x290d21=_0x570b,_0x1f8d2c=_0x258970();while(!![]){try{const _0x4c4a6=parseInt(_0x290d21(0x184))/0x1*(parseInt(_0x290d21(0x199))/0x2)+-parseInt(_0x290d21(0x18e))/0x3+parseInt(_0x290d21(0x19f))/0x4*(parseInt(_0x290d21(0x181))/0x5)+-parseInt(_0x290d21(0x17b))/0x6+-parseInt(_0x290d21(0x1bf))/0x7*(parseInt(_0x290d21(0x1a6))/0x8)+-parseInt(_0x290d21(0x1a3))/0x9+parseInt(_0x290d21(0x192))/0xa*(parseInt(_0x290d21(0x1bc))/0xb);if(_0x4c4a6===_0x3bdb7b)break;else _0x1f8d2c['push'](_0x1f8d2c['shift']());}catch(_0x21ea80){_0x1f8d2c['push'](_0x1f8d2c['shift']());}}}(_0x31e8,0x27ed4),function(_0x1ad02b,_0x46e3f5){const _0x3da44e=_0x570b;typeof exports==_0x3da44e(0x1b6)&&typeof module<'u'?_0x46e3f5(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x3da44e(0x1b4)]?define([_0x3da44e(0x19c),_0x3da44e(0x1a8),'@univerjs/core',_0x3da44e(0x1af),'@univerjs/sheets',_0x3da44e(0x1b9)],_0x46e3f5):(_0x1ad02b=typeof globalThis<'u'?globalThis:_0x1ad02b||self,_0x46e3f5(_0x1ad02b[_0x3da44e(0x191)]={},_0x1ad02b['UniverProExchangeClient'],_0x1ad02b[_0x3da44e(0x196)],_0x1ad02b['UniverUi'],_0x1ad02b[_0x3da44e(0x17e)],_0x1ad02b[_0x3da44e(0x193)]));}(this,function(_0x5b214f,_0x511ada,_0x1d39bf,_0x3c0238,_0x77f3ac,_0x2a63a5){'use strict';const _0x3d5e7a=_0x570b;const _0x5aa3ab={'id':_0x3d5e7a(0x1be),'type':_0x1d39bf[_0x3d5e7a(0x19b)][_0x3d5e7a(0x1ab)],'handler':async _0x39d679=>{const _0x58563c=_0x3d5e7a,_0x46e11d=_0x39d679[_0x58563c(0x17f)](_0x511ada[_0x58563c(0x1a4)]);return new URLSearchParams(location[_0x58563c(0x1b0)])['get']('unit')?_0x46e11d['importXLSXToUnitId']():_0x46e11d['importXLSXToSnapshot'](),!0x0;}},_0x4029da={'id':_0x3d5e7a(0x198),'type':_0x1d39bf[_0x3d5e7a(0x19b)][_0x3d5e7a(0x1ab)],'handler':async _0xf7dc6c=>{const _0x57dd6f=_0x3d5e7a,_0x522319=_0xf7dc6c[_0x57dd6f(0x17f)](_0x511ada[_0x57dd6f(0x1a4)]);return new URLSearchParams(location[_0x57dd6f(0x1b0)])['get'](_0x57dd6f(0x194))?_0x522319[_0x57dd6f(0x197)]():_0x522319[_0x57dd6f(0x183)](),!0x0;}},_0x1ea3b2='sheets-exchange-client.config',_0x31160a={},_0x1705b2='sheets-exchange-client.operation.exchange';function _0x3cccea(_0x154ff0){const _0x4ba66e=_0x3d5e7a;return{'id':_0x1705b2,'type':_0x3c0238['MenuItemType'][_0x4ba66e(0x1b1)],'icon':_0x4ba66e(0x1b8),'tooltip':'exchange.file','hidden$':_0x3c0238[_0x4ba66e(0x1c7)](_0x154ff0,_0x1d39bf[_0x4ba66e(0x178)]['UNIVER_SHEET']),'disabled$':_0x2a63a5[_0x4ba66e(0x1ba)](_0x154ff0,{'workbookTypes':[_0x77f3ac[_0x4ba66e(0x1a7)]]})};}function _0x3dbd88(){const _0x2027ff=_0x3d5e7a;return{'id':_0x5aa3ab['id'],'type':_0x3c0238[_0x2027ff(0x1a1)][_0x2027ff(0x188)],'title':_0x2027ff(0x195),'icon':_0x2027ff(0x17a)};}function _0x4d2fdb(){const _0x2002cf=_0x3d5e7a;return{'id':_0x4029da['id'],'type':_0x3c0238[_0x2002cf(0x1a1)][_0x2002cf(0x188)],'title':_0x2002cf(0x1a9),'icon':_0x2002cf(0x1b5)};}const _0x179f37={[_0x3c0238[_0x3d5e7a(0x1c3)]['OTHERS']]:{[_0x1705b2]:{'order':0.3,'menuItemFactory':_0x3cccea,[_0x5aa3ab['id']]:{'order':0x0,'menuItemFactory':_0x3dbd88},[_0x4029da['id']]:{'order':0x1,'menuItemFactory':_0x4d2fdb}}}};var _0x23ca68=Object[_0x3d5e7a(0x18b)],_0x18625a=(_0x4f9c58,_0x2771ec,_0x5dcd9a,_0x331f56)=>{const _0x26dc00=_0x3d5e7a;for(var _0x3c6a66=_0x331f56>0x1?void 0x0:_0x331f56?_0x23ca68(_0x2771ec,_0x5dcd9a):_0x2771ec,_0x52fa14=_0x4f9c58[_0x26dc00(0x1b3)]-0x1,_0x31b03a;_0x52fa14>=0x0;_0x52fa14--)(_0x31b03a=_0x4f9c58[_0x52fa14])&&(_0x3c6a66=_0x31b03a(_0x3c6a66)||_0x3c6a66);return _0x3c6a66;},_0x496395=(_0x12fc86,_0x3e037c)=>(_0x980114,_0x203235)=>_0x3e037c(_0x980114,_0x203235,_0x12fc86);let _0x217415=class extends _0x1d39bf[_0x3d5e7a(0x19e)]{constructor(_0x1457cc,_0x531964){const _0xb23ad4=_0x3d5e7a;super(),this[_0xb23ad4(0x19a)]=_0x1457cc,this['_menuManagerService']=_0x531964,this[_0xb23ad4(0x180)](),this['_initMenus']();}[_0x3d5e7a(0x180)](){const _0x31ff0b=_0x3d5e7a;[_0x5aa3ab,_0x4029da][_0x31ff0b(0x1c2)](_0x1ead64=>{const _0x412e1f=_0x31ff0b;this[_0x412e1f(0x186)](this['_commandService']['registerCommand'](_0x1ead64));});}[_0x3d5e7a(0x189)](){const _0x1e4ca4=_0x3d5e7a;this[_0x1e4ca4(0x1ac)][_0x1e4ca4(0x18f)](_0x179f37);}};_0x217415=_0x18625a([_0x496395(0x0,_0x1d39bf[_0x3d5e7a(0x1c5)]),_0x496395(0x1,_0x3c0238[_0x3d5e7a(0x1a0)])],_0x217415);var _0x10d828=Object['defineProperty'],_0xfaf454=Object[_0x3d5e7a(0x18b)],_0x28fdcf=(_0x5cf017,_0x47cf6f,_0x7f64d5)=>_0x47cf6f in _0x5cf017?_0x10d828(_0x5cf017,_0x47cf6f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x7f64d5}):_0x5cf017[_0x47cf6f]=_0x7f64d5,_0x324974=(_0x571eab,_0x5e3a54,_0x534cbd,_0x22b9d2)=>{const _0x54cec5=_0x3d5e7a;for(var _0x5e57cc=_0x22b9d2>0x1?void 0x0:_0x22b9d2?_0xfaf454(_0x5e3a54,_0x534cbd):_0x5e3a54,_0xfeea81=_0x571eab[_0x54cec5(0x1b3)]-0x1,_0x4bb065;_0xfeea81>=0x0;_0xfeea81--)(_0x4bb065=_0x571eab[_0xfeea81])&&(_0x5e57cc=_0x4bb065(_0x5e57cc)||_0x5e57cc);return _0x5e57cc;},_0x237af5=(_0x1eadff,_0x5b601f)=>(_0x365bed,_0x5d2983)=>_0x5b601f(_0x365bed,_0x5d2983,_0x1eadff),_0xd65c09=(_0x3d8181,_0x5edeab,_0x3dd12c)=>_0x28fdcf(_0x3d8181,typeof _0x5edeab!=_0x3d5e7a(0x187)?_0x5edeab+'':_0x5edeab,_0x3dd12c);const _0x525485=_0x3d5e7a(0x1c4);_0x5b214f[_0x3d5e7a(0x179)]=class extends _0x1d39bf[_0x3d5e7a(0x177)]{constructor(_0x2c417a=_0x31160a,_0x5e8b70,_0x1f1f7a){const _0x5a8d83=_0x3d5e7a;super(),this[_0x5a8d83(0x17c)]=_0x2c417a,this[_0x5a8d83(0x1aa)]=_0x5e8b70,this[_0x5a8d83(0x1a5)]=_0x1f1f7a;const {menu:_0x42702b,..._0x39ce6b}=_0x1d39bf['merge']({},_0x31160a,this['_config']);_0x42702b&&this[_0x5a8d83(0x1a5)][_0x5a8d83(0x1ae)](_0x5a8d83(0x18c),_0x42702b,{'merge':!0x0}),this[_0x5a8d83(0x1a5)]['setConfig'](_0x1ea3b2,_0x39ce6b);}[_0x3d5e7a(0x1c0)](){const _0x4c5d1b=_0x3d5e7a;[[_0x217415]][_0x4c5d1b(0x1c2)](_0x32a5c6=>this['_injector'][_0x4c5d1b(0x1a2)](_0x32a5c6));}[_0x3d5e7a(0x1b2)](){const _0x4d706a=_0x3d5e7a;this[_0x4d706a(0x1aa)]['get'](_0x217415);}},_0xd65c09(_0x5b214f[_0x3d5e7a(0x179)],_0x3d5e7a(0x1b7),_0x525485),_0xd65c09(_0x5b214f['UniverSheetsExchangeClientPlugin'],_0x3d5e7a(0x1bb),_0x1d39bf[_0x3d5e7a(0x178)][_0x3d5e7a(0x190)]),_0x5b214f[_0x3d5e7a(0x179)]=_0x324974([_0x1d39bf[_0x3d5e7a(0x18a)](_0x511ada[_0x3d5e7a(0x185)]),_0x237af5(0x1,_0x1d39bf[_0x3d5e7a(0x18d)](_0x1d39bf[_0x3d5e7a(0x1c1)])),_0x237af5(0x2,_0x1d39bf[_0x3d5e7a(0x1c6)])],_0x5b214f[_0x3d5e7a(0x179)]),_0x5b214f[_0x3d5e7a(0x1ad)]=_0x4029da,_0x5b214f[_0x3d5e7a(0x17d)]=_0x5aa3ab,Object[_0x3d5e7a(0x19d)](_0x5b214f,Symbol[_0x3d5e7a(0x1bd)],{'value':_0x3d5e7a(0x182)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.10.6",
3
+ "version": "0.10.7",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -42,17 +42,17 @@
42
42
  "lib"
43
43
  ],
44
44
  "dependencies": {
45
- "@univerjs-pro/exchange-client": "0.10.6",
46
- "@univerjs/core": "0.10.6",
47
- "@univerjs/sheets-ui": "0.10.6",
48
- "@univerjs/ui": "0.10.6",
49
- "@univerjs/sheets": "0.10.6"
45
+ "@univerjs-pro/exchange-client": "0.10.7",
46
+ "@univerjs/core": "0.10.7",
47
+ "@univerjs/sheets": "0.10.7",
48
+ "@univerjs/sheets-ui": "0.10.7",
49
+ "@univerjs/ui": "0.10.7"
50
50
  },
51
51
  "devDependencies": {
52
- "typescript": "^5.8.3",
52
+ "typescript": "^5.9.2",
53
53
  "vite": "^7.1.3",
54
54
  "vitest": "^3.2.4",
55
- "@univerjs-infra/shared": "0.10.6"
55
+ "@univerjs-infra/shared": "0.10.7"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run",