@univerjs-pro/sheets-exchange-client 0.10.12-nightly.202510221114 → 0.10.12-nightly.202510251119

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 _0x1750b6=_0x521e;(function(_0xcec87,_0x6d9bb5){const _0x1a9902=_0x521e,_0x53b1bf=_0xcec87();while(!![]){try{const _0x14d48e=-parseInt(_0x1a9902(0xc5))/0x1+parseInt(_0x1a9902(0xeb))/0x2*(parseInt(_0x1a9902(0xb3))/0x3)+parseInt(_0x1a9902(0xd0))/0x4+-parseInt(_0x1a9902(0xe2))/0x5+parseInt(_0x1a9902(0xd3))/0x6*(-parseInt(_0x1a9902(0xcc))/0x7)+-parseInt(_0x1a9902(0xbf))/0x8*(parseInt(_0x1a9902(0xd9))/0x9)+-parseInt(_0x1a9902(0xef))/0xa*(-parseInt(_0x1a9902(0xc0))/0xb);if(_0x14d48e===_0x6d9bb5)break;else _0x53b1bf['push'](_0x53b1bf['shift']());}catch(_0x2f1983){_0x53b1bf['push'](_0x53b1bf['shift']());}}}(_0x4da2,0x936b4));Object[_0x1750b6(0xae)](exports,Symbol[_0x1750b6(0xb4)],{'value':_0x1750b6(0xc9)});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':_0x1750b6(0xcb),'type':i[_0x1750b6(0xd1)][_0x1750b6(0xc6)],'handler':async _0xfa2e56=>{const _0x18c90e=_0x1750b6,_0x4e19fd=_0xfa2e56[_0x18c90e(0xaa)](g[_0x18c90e(0xe6)]);return new URLSearchParams(location['search'])[_0x18c90e(0xaa)](_0x18c90e(0xac))?_0x4e19fd[_0x18c90e(0xed)]():_0x4e19fd[_0x18c90e(0xe4)](),!0x0;}},p={'id':_0x1750b6(0xee),'type':i[_0x1750b6(0xd1)][_0x1750b6(0xc6)],'handler':async _0x4e9fc2=>{const _0x581051=_0x1750b6,_0x552715=_0x4e9fc2['get'](g[_0x581051(0xe6)]);return new URLSearchParams(location[_0x581051(0xf0)])[_0x581051(0xaa)](_0x581051(0xac))?_0x552715[_0x581051(0xb5)]():_0x552715[_0x581051(0xde)](),!0x0;}},v=_0x1750b6(0xd4),h={},S=_0x1750b6(0xdf);function x(_0x38f13e){const _0x5d27cf=_0x1750b6;return{'id':S,'type':c[_0x5d27cf(0xda)][_0x5d27cf(0xcd)],'icon':_0x5d27cf(0xca),'tooltip':_0x5d27cf(0xbe),'hidden$':c[_0x5d27cf(0xe8)](_0x38f13e,i['UniverInstanceType'][_0x5d27cf(0xd6)]),'disabled$':I[_0x5d27cf(0xa8)](_0x38f13e,{'workbookTypes':[_[_0x5d27cf(0xc1)]]})};}function _0x521e(_0xee3284,_0xe766ad){const _0x4da232=_0x4da2();return _0x521e=function(_0x521efe,_0xe063ef){_0x521efe=_0x521efe-0xa5;let _0x135ebf=_0x4da232[_0x521efe];return _0x135ebf;},_0x521e(_0xee3284,_0xe766ad);}function P(){const _0x675f8e=_0x1750b6;return{'id':l['id'],'type':c[_0x675f8e(0xda)][_0x675f8e(0xb1)],'title':_0x675f8e(0xdb),'icon':_0x675f8e(0xdd)};}function C(){const _0x154571=_0x1750b6;return{'id':p['id'],'type':c[_0x154571(0xda)][_0x154571(0xb1)],'title':'exchange.download','icon':_0x154571(0xc7)};}const f={[c[_0x1750b6(0xd7)][_0x1750b6(0xc4)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x2ae977,_0x209930,_0x1504c9,_0x57c6af)=>{const _0x213179=_0x1750b6;for(var _0x3594b4=_0x57c6af>0x1?void 0x0:_0x57c6af?T(_0x209930,_0x1504c9):_0x209930,_0x2cc303=_0x2ae977[_0x213179(0xec)]-0x1,_0x3868b7;_0x2cc303>=0x0;_0x2cc303--)(_0x3868b7=_0x2ae977[_0x2cc303])&&(_0x3594b4=_0x3868b7(_0x3594b4)||_0x3594b4);return _0x3594b4;},m=(_0xae688e,_0x35cb12)=>(_0x26ddef,_0x379cf6)=>_0x35cb12(_0x26ddef,_0x379cf6,_0xae688e);let u=class extends i[_0x1750b6(0xb7)]{constructor(_0x2471e5,_0x27d787){const _0x48b975=_0x1750b6;super(),this['_commandService']=_0x2471e5,this[_0x48b975(0xb8)]=_0x27d787,this[_0x48b975(0xd8)](),this[_0x48b975(0xea)]();}[_0x1750b6(0xd8)](){const _0x46e767=_0x1750b6;[l,p][_0x46e767(0xe0)](_0x40dd17=>{const _0x251047=_0x46e767;this[_0x251047(0xd2)](this[_0x251047(0xa6)][_0x251047(0xb2)](_0x40dd17));});}[_0x1750b6(0xea)](){const _0x19b755=_0x1750b6;this[_0x19b755(0xb8)][_0x19b755(0xbd)](f);}};function _0x4da2(){const _0x36aef1=['getOwnPropertyDescriptor','merge','_config','mergeMenu','exchange.file','2920DFfDRy','196097pvrLdy','WorkbookExportPermission','add','setConfig','OTHERS','736061beATuU','OPERATION','ExportIcon','UniverSheetsExchangeClientPlugin','Module','DirectExportIcon','exchange-client.operation.import-xlsx','7807331uXioEW','SUBITEMS','onReady','Inject','3275620AkLala','CommandType','disposeWithMe','6kbvNYd','sheets-exchange-client.config','ExportXLSXOperation','UNIVER_SHEET','RibbonStartGroup','_initCommands','2871fCwObm','MenuItemType','exchange.upload','UniverInstanceType','FolderIcon','exportXLSXBySnapshot','sheets-exchange-client.operation.exchange','forEach','Plugin','940100DskIBT','ImportXLSXOperation','importXLSXToSnapshot','symbol','IExchangeOperateService','Injector','getMenuHiddenObservable','IMenuManagerService','_initMenus','1492726bkVCWM','length','importXLSXToUnitId','exchange-client.operation.export-xlsx','670czEOHW','search','type','_commandService','ICommandService','getCurrentRangeDisable$','onStarting','get','menu','unit','_configService','defineProperty','_injector','pluginName','BUTTON','registerCommand','3etHxgN','toStringTag','exportXLSXByUnitId','UniverExchangeClientPlugin','Disposable','_menuManagerService','DependentOn'];_0x4da2=function(){return _0x36aef1;};return _0x4da2();}u=y([m(0x0,i[_0x1750b6(0xa7)]),m(0x1,c[_0x1750b6(0xe9)])],u);var O=Object[_0x1750b6(0xae)],U=Object[_0x1750b6(0xba)],X=(_0x5c49e9,_0x5876dc,_0x52a73f)=>_0x5876dc in _0x5c49e9?O(_0x5c49e9,_0x5876dc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x52a73f}):_0x5c49e9[_0x5876dc]=_0x52a73f,N=(_0x3b24a4,_0x5ef362,_0x14896e,_0x5b7c10)=>{const _0x35a260=_0x1750b6;for(var _0x47f8ac=_0x5b7c10>0x1?void 0x0:_0x5b7c10?U(_0x5ef362,_0x14896e):_0x5ef362,_0x2324f9=_0x3b24a4[_0x35a260(0xec)]-0x1,_0x4cacbb;_0x2324f9>=0x0;_0x2324f9--)(_0x4cacbb=_0x3b24a4[_0x2324f9])&&(_0x47f8ac=_0x4cacbb(_0x47f8ac)||_0x47f8ac);return _0x47f8ac;},d=(_0x29788e,_0x24391f)=>(_0x19a3ab,_0x73333d)=>_0x24391f(_0x19a3ab,_0x73333d,_0x29788e),E=(_0xead8bc,_0x2180f6,_0x692c18)=>X(_0xead8bc,typeof _0x2180f6!=_0x1750b6(0xe5)?_0x2180f6+'':_0x2180f6,_0x692c18);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports['UniverSheetsExchangeClientPlugin']=class extends i[_0x1750b6(0xe1)]{constructor(_0x354bab=h,_0x5629c0,_0x55d64e){const _0xe1a196=_0x1750b6;super(),this['_config']=_0x354bab,this[_0xe1a196(0xaf)]=_0x5629c0,this['_configService']=_0x55d64e;const {menu:_0x4b28b9,..._0x28ad77}=i[_0xe1a196(0xbb)]({},h,this[_0xe1a196(0xbc)]);_0x4b28b9&&this['_configService'][_0xe1a196(0xc3)](_0xe1a196(0xab),_0x4b28b9,{'merge':!0x0}),this[_0xe1a196(0xad)][_0xe1a196(0xc3)](v,_0x28ad77);}[_0x1750b6(0xa9)](){const _0xcc7e76=_0x1750b6;[[u]]['forEach'](_0x384162=>this[_0xcc7e76(0xaf)][_0xcc7e76(0xc2)](_0x384162));}[_0x1750b6(0xce)](){const _0x10e25b=_0x1750b6;this[_0x10e25b(0xaf)][_0x10e25b(0xaa)](u);}},E(exports[_0x1750b6(0xc8)],_0x1750b6(0xb0),L),E(exports['UniverSheetsExchangeClientPlugin'],_0x1750b6(0xa5),i[_0x1750b6(0xdc)][_0x1750b6(0xd6)]),exports['UniverSheetsExchangeClientPlugin']=N([i[_0x1750b6(0xb9)](g[_0x1750b6(0xb6)]),d(0x1,i[_0x1750b6(0xcf)](i[_0x1750b6(0xe7)])),d(0x2,i['IConfigService'])],exports[_0x1750b6(0xc8)]),exports[_0x1750b6(0xd5)]=p,exports[_0x1750b6(0xe3)]=l;
1
+ 'use strict';const _0x1961ff=_0x523c;(function(_0x464b15,_0x26d6aa){const _0x578902=_0x523c,_0x1909c9=_0x464b15();while(!![]){try{const _0x24cd4b=-parseInt(_0x578902(0x126))/0x1+parseInt(_0x578902(0x122))/0x2+parseInt(_0x578902(0x13a))/0x3*(parseInt(_0x578902(0x110))/0x4)+parseInt(_0x578902(0x149))/0x5*(-parseInt(_0x578902(0x11c))/0x6)+parseInt(_0x578902(0x117))/0x7+-parseInt(_0x578902(0x14b))/0x8+-parseInt(_0x578902(0x13b))/0x9*(-parseInt(_0x578902(0x150))/0xa);if(_0x24cd4b===_0x26d6aa)break;else _0x1909c9['push'](_0x1909c9['shift']());}catch(_0x1ec76d){_0x1909c9['push'](_0x1909c9['shift']());}}}(_0x559d,0x69350));Object[_0x1961ff(0x134)](exports,Symbol[_0x1961ff(0x143)],{'value':_0x1961ff(0x113)});function _0x523c(_0x4ea519,_0x4bd0f7){const _0x559de2=_0x559d();return _0x523c=function(_0x523cf8,_0x29b86f){_0x523cf8=_0x523cf8-0x10d;let _0x2b23d1=_0x559de2[_0x523cf8];return _0x2b23d1;},_0x523c(_0x4ea519,_0x4bd0f7);}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':_0x1961ff(0x11f),'type':i['CommandType'][_0x1961ff(0x141)],'handler':async _0x5c1e98=>{const _0x15a681=_0x1961ff,_0x22dc3f=_0x5c1e98['get'](g['IExchangeOperateService']);return new URLSearchParams(location[_0x15a681(0x11e)])['get'](_0x15a681(0x112))?_0x22dc3f[_0x15a681(0x14e)]():_0x22dc3f['importXLSXToSnapshot'](),!0x0;}},p={'id':_0x1961ff(0x14d),'type':i[_0x1961ff(0x137)][_0x1961ff(0x141)],'handler':async _0x8f0bbd=>{const _0x2f0040=_0x1961ff,_0xe7bfe0=_0x8f0bbd['get'](g['IExchangeOperateService']);return new URLSearchParams(location['search'])['get']('unit')?_0xe7bfe0[_0x2f0040(0x116)]():_0xe7bfe0[_0x2f0040(0x131)](),!0x0;}},v=_0x1961ff(0x142),h={},S=_0x1961ff(0x111);function x(_0x3d2814){const _0x56e5b3=_0x1961ff;return{'id':S,'type':c['MenuItemType']['SUBITEMS'],'icon':_0x56e5b3(0x140),'tooltip':'exchange.file','hidden$':c[_0x56e5b3(0x12b)](_0x3d2814,i[_0x56e5b3(0x123)]['UNIVER_SHEET']),'disabled$':I[_0x56e5b3(0x13e)](_0x3d2814,{'workbookTypes':[_[_0x56e5b3(0x12c)]]})};}function P(){const _0x6902de=_0x1961ff;return{'id':l['id'],'type':c[_0x6902de(0x10d)]['BUTTON'],'title':_0x6902de(0x115),'icon':_0x6902de(0x120)};}function C(){const _0x24eeb7=_0x1961ff;return{'id':p['id'],'type':c[_0x24eeb7(0x10d)][_0x24eeb7(0x10f)],'title':_0x24eeb7(0x14a),'icon':_0x24eeb7(0x147)};}const f={[c[_0x1961ff(0x12a)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x1a2b33,_0x43acdb,_0x3ce580,_0x465036)=>{for(var _0x28f449=_0x465036>0x1?void 0x0:_0x465036?T(_0x43acdb,_0x3ce580):_0x43acdb,_0x1f27c7=_0x1a2b33['length']-0x1,_0x1b1610;_0x1f27c7>=0x0;_0x1f27c7--)(_0x1b1610=_0x1a2b33[_0x1f27c7])&&(_0x28f449=_0x1b1610(_0x28f449)||_0x28f449);return _0x28f449;},m=(_0x1ce564,_0x269aca)=>(_0x3f8c38,_0x3286e1)=>_0x269aca(_0x3f8c38,_0x3286e1,_0x1ce564);function _0x559d(){const _0x19b484=['exchange-client.operation.export-xlsx','importXLSXToUnitId','_config','215100ToZVVn','IConfigService','MenuItemType','add','BUTTON','1256Tmiqgp','sheets-exchange-client.operation.exchange','unit','Module','SHEET_EXCHANGE_CLIENT_PLUGIN','exchange.upload','exportXLSXByUnitId','3109470sQpecu','_commandService','setConfig','onStarting','UniverExchangeClientPlugin','6CAcsfl','menu','search','exchange-client.operation.import-xlsx','FolderIcon','mergeMenu','1478636ISKxwd','UniverInstanceType','get','type','786076ZgcjTD','Inject','merge','Injector','RibbonStartGroup','getMenuHiddenObservable','WorkbookExportPermission','_injector','Plugin','ICommandService','length','exportXLSXBySnapshot','registerCommand','_initCommands','defineProperty','ImportXLSXOperation','onReady','CommandType','ExportXLSXOperation','_menuManagerService','2406GCLQSJ','387lZFQhh','_configService','UniverSheetsExchangeClientPlugin','getCurrentRangeDisable$','_initMenus','DirectExportIcon','OPERATION','sheets-exchange-client.config','toStringTag','forEach','Disposable','getOwnPropertyDescriptor','ExportIcon','UNIVER_SHEET','1788785BZTGCq','exchange.download','6284200KJzgLC','DependentOn'];_0x559d=function(){return _0x19b484;};return _0x559d();}let u=class extends i[_0x1961ff(0x145)]{constructor(_0x5e6d1f,_0x5b1c4b){const _0x295a30=_0x1961ff;super(),this['_commandService']=_0x5e6d1f,this[_0x295a30(0x139)]=_0x5b1c4b,this[_0x295a30(0x133)](),this[_0x295a30(0x13f)]();}[_0x1961ff(0x133)](){const _0x2cee67=_0x1961ff;[l,p][_0x2cee67(0x144)](_0x2f9f40=>{const _0x356a8c=_0x2cee67;this['disposeWithMe'](this[_0x356a8c(0x118)][_0x356a8c(0x132)](_0x2f9f40));});}[_0x1961ff(0x13f)](){const _0x56abd7=_0x1961ff;this[_0x56abd7(0x139)][_0x56abd7(0x121)](f);}};u=y([m(0x0,i[_0x1961ff(0x12f)]),m(0x1,c['IMenuManagerService'])],u);var O=Object['defineProperty'],U=Object[_0x1961ff(0x146)],X=(_0x13514f,_0x36769e,_0x1d8a7d)=>_0x36769e in _0x13514f?O(_0x13514f,_0x36769e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d8a7d}):_0x13514f[_0x36769e]=_0x1d8a7d,N=(_0x511968,_0x5b24b1,_0x2d8194,_0x1f6352)=>{const _0x16495a=_0x1961ff;for(var _0x18b745=_0x1f6352>0x1?void 0x0:_0x1f6352?U(_0x5b24b1,_0x2d8194):_0x5b24b1,_0x17d867=_0x511968[_0x16495a(0x130)]-0x1,_0x4b841d;_0x17d867>=0x0;_0x17d867--)(_0x4b841d=_0x511968[_0x17d867])&&(_0x18b745=_0x4b841d(_0x18b745)||_0x18b745);return _0x18b745;},d=(_0x4558b1,_0xaa50b9)=>(_0x17cf37,_0x241326)=>_0xaa50b9(_0x17cf37,_0x241326,_0x4558b1),E=(_0x1fb3e5,_0x53f99f,_0x301799)=>X(_0x1fb3e5,typeof _0x53f99f!='symbol'?_0x53f99f+'':_0x53f99f,_0x301799);const L=_0x1961ff(0x114);exports[_0x1961ff(0x13d)]=class extends i[_0x1961ff(0x12e)]{constructor(_0x584731=h,_0x4eb1cb,_0x114339){const _0x24cf0c=_0x1961ff;super(),this[_0x24cf0c(0x14f)]=_0x584731,this['_injector']=_0x4eb1cb,this[_0x24cf0c(0x13c)]=_0x114339;const {menu:_0x4cd925,..._0x5226b5}=i[_0x24cf0c(0x128)]({},h,this[_0x24cf0c(0x14f)]);_0x4cd925&&this[_0x24cf0c(0x13c)][_0x24cf0c(0x119)](_0x24cf0c(0x11d),_0x4cd925,{'merge':!0x0}),this['_configService'][_0x24cf0c(0x119)](v,_0x5226b5);}[_0x1961ff(0x11a)](){const _0x2796c3=_0x1961ff;[[u]][_0x2796c3(0x144)](_0x31055c=>this['_injector'][_0x2796c3(0x10e)](_0x31055c));}[_0x1961ff(0x136)](){const _0x3cc196=_0x1961ff;this[_0x3cc196(0x12d)][_0x3cc196(0x124)](u);}},E(exports[_0x1961ff(0x13d)],'pluginName',L),E(exports[_0x1961ff(0x13d)],_0x1961ff(0x125),i[_0x1961ff(0x123)][_0x1961ff(0x148)]),exports[_0x1961ff(0x13d)]=N([i[_0x1961ff(0x14c)](g[_0x1961ff(0x11b)]),d(0x1,i[_0x1961ff(0x127)](i[_0x1961ff(0x129)])),d(0x2,i[_0x1961ff(0x151)])],exports[_0x1961ff(0x13d)]),exports[_0x1961ff(0x138)]=p,exports[_0x1961ff(0x135)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x557a0a=_0x4b99;(function(_0x126023,_0xcaf004){const _0x477986=_0x4b99,_0x15c9a2=_0x126023();while(!![]){try{const _0x339e2a=parseInt(_0x477986(0x178))/0x1+parseInt(_0x477986(0x17b))/0x2+-parseInt(_0x477986(0x16e))/0x3*(-parseInt(_0x477986(0x181))/0x4)+-parseInt(_0x477986(0x17f))/0x5*(parseInt(_0x477986(0x15b))/0x6)+parseInt(_0x477986(0x188))/0x7+parseInt(_0x477986(0x183))/0x8*(-parseInt(_0x477986(0x184))/0x9)+-parseInt(_0x477986(0x176))/0xa;if(_0x339e2a===_0xcaf004)break;else _0x15c9a2['push'](_0x15c9a2['shift']());}catch(_0x434706){_0x15c9a2['push'](_0x15c9a2['shift']());}}}(_0x4232,0xece3e));import{IExchangeOperateService as _0x133d72,UniverExchangeClientPlugin as _0x594702}from'@univerjs-pro/exchange-client';import{CommandType as _0x7185d5,UniverInstanceType as _0x33b3f0,Disposable as _0x1d1a35,ICommandService as _0x16d8f5,DependentOn as _0x31ef0b,Inject as _0x226049,Injector as _0x1eee2f,IConfigService as _0x106d56,Plugin as _0x2cc34a,merge as _0x51db51}from'@univerjs/core';import{MenuItemType as _0x2dd209,getMenuHiddenObservable as _0x69414,RibbonStartGroup as _0x51f861,IMenuManagerService as _0x9d1e6e}from'@univerjs/ui';import{WorkbookExportPermission as _0x389cf0}from'@univerjs/sheets';function _0x4b99(_0x4c9833,_0x52dad8){const _0x42320c=_0x4232();return _0x4b99=function(_0x4b9990,_0x517064){_0x4b9990=_0x4b9990-0x15b;let _0x247e5e=_0x42320c[_0x4b9990];return _0x247e5e;},_0x4b99(_0x4c9833,_0x52dad8);}import{getCurrentRangeDisable$ as _0x3502b2}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x7185d5[_0x557a0a(0x15e)],'handler':async _0x2bc632=>{const _0x10bdb1=_0x557a0a,_0x4e41b3=_0x2bc632[_0x10bdb1(0x161)](_0x133d72);return new URLSearchParams(location['search'])[_0x10bdb1(0x161)](_0x10bdb1(0x16d))?_0x4e41b3[_0x10bdb1(0x171)]():_0x4e41b3[_0x10bdb1(0x16b)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x7185d5[_0x557a0a(0x15e)],'handler':async _0x198a60=>{const _0x2d0a80=_0x557a0a,_0x62e42=_0x198a60['get'](_0x133d72);return new URLSearchParams(location['search'])[_0x2d0a80(0x161)](_0x2d0a80(0x16d))?_0x62e42[_0x2d0a80(0x170)]():_0x62e42[_0x2d0a80(0x165)](),!0x0;}},H=_0x557a0a(0x18a),l={},S=_0x557a0a(0x180);function R(_0x19da25){const _0x184c1c=_0x557a0a;return{'id':S,'type':_0x2dd209[_0x184c1c(0x185)],'icon':_0x184c1c(0x17d),'tooltip':_0x184c1c(0x174),'hidden$':_0x69414(_0x19da25,_0x33b3f0[_0x184c1c(0x173)]),'disabled$':_0x3502b2(_0x19da25,{'workbookTypes':[_0x389cf0]})};}function w(){const _0x4c0594=_0x557a0a;return{'id':p['id'],'type':_0x2dd209[_0x4c0594(0x17c)],'title':_0x4c0594(0x187),'icon':_0x4c0594(0x16a)};}function D(){const _0x4890a2=_0x557a0a;return{'id':u['id'],'type':_0x2dd209[_0x4890a2(0x17c)],'title':'exchange.download','icon':_0x4890a2(0x166)};}const F={[_0x51f861[_0x557a0a(0x175)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};function _0x4232(){const _0x508f21=['180AYUBDf','setConfig','4941736uUugob','9Bjrtez','SUBITEMS','defineProperty','exchange.upload','9148363hUzJIf','_configService','sheets-exchange-client.config','36qZMrnt','mergeMenu','getOwnPropertyDescriptor','OPERATION','forEach','_initMenus','get','_menuManagerService','menu','length','exportXLSXBySnapshot','ExportIcon','onReady','_commandService','_injector','FolderIcon','importXLSXToSnapshot','_config','unit','4401BRybSI','symbol','exportXLSXByUnitId','importXLSXToUnitId','add','UNIVER_SHEET','exchange.file','OTHERS','15045120xuHhCp','SHEET_EXCHANGE_CLIENT_PLUGIN','1509344lXbabS','pluginName','_initCommands','3215134ZHIHlw','BUTTON','DirectExportIcon','type','1164420uIlNlk','sheets-exchange-client.operation.exchange'];_0x4232=function(){return _0x508f21;};return _0x4232();}var G=Object[_0x557a0a(0x15d)],A=(_0x4f16dc,_0x1aec53,_0x4fff16,_0x451e73)=>{for(var _0x293bd1=_0x451e73>0x1?void 0x0:_0x451e73?G(_0x1aec53,_0x4fff16):_0x1aec53,_0x13b034=_0x4f16dc['length']-0x1,_0x5623ff;_0x13b034>=0x0;_0x13b034--)(_0x5623ff=_0x4f16dc[_0x13b034])&&(_0x293bd1=_0x5623ff(_0x293bd1)||_0x293bd1);return _0x293bd1;},d=(_0x60369b,_0xcde0c3)=>(_0x2a45ff,_0x431578)=>_0xcde0c3(_0x2a45ff,_0x431578,_0x60369b);let c=class extends _0x1d1a35{constructor(_0x17bc56,_0x1f3460){const _0x26e49f=_0x557a0a;super(),this[_0x26e49f(0x168)]=_0x17bc56,this[_0x26e49f(0x162)]=_0x1f3460,this[_0x26e49f(0x17a)](),this[_0x26e49f(0x160)]();}[_0x557a0a(0x17a)](){[p,u]['forEach'](_0x4463b7=>{const _0x5b4074=_0x4b99;this['disposeWithMe'](this[_0x5b4074(0x168)]['registerCommand'](_0x4463b7));});}[_0x557a0a(0x160)](){const _0x3759ac=_0x557a0a;this['_menuManagerService'][_0x3759ac(0x15c)](F);}};c=A([d(0x0,_0x16d8f5),d(0x1,_0x9d1e6e)],c);var j=Object[_0x557a0a(0x186)],B=Object['getOwnPropertyDescriptor'],$=(_0x123382,_0x6328dd,_0x519c93)=>_0x6328dd in _0x123382?j(_0x123382,_0x6328dd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x519c93}):_0x123382[_0x6328dd]=_0x519c93,V=(_0x53b9c4,_0x4b3549,_0x1d6c50,_0x41a17b)=>{const _0x5cf1d9=_0x557a0a;for(var _0x316af5=_0x41a17b>0x1?void 0x0:_0x41a17b?B(_0x4b3549,_0x1d6c50):_0x4b3549,_0x2535eb=_0x53b9c4[_0x5cf1d9(0x164)]-0x1,_0x53add4;_0x2535eb>=0x0;_0x2535eb--)(_0x53add4=_0x53b9c4[_0x2535eb])&&(_0x316af5=_0x53add4(_0x316af5)||_0x316af5);return _0x316af5;},_=(_0x4d0a02,_0x16eaad)=>(_0x46fc13,_0x44ffde)=>_0x16eaad(_0x46fc13,_0x44ffde,_0x4d0a02),I=(_0x4b9c0d,_0x425861,_0x53c369)=>$(_0x4b9c0d,typeof _0x425861!=_0x557a0a(0x16f)?_0x425861+'':_0x425861,_0x53c369);const W=_0x557a0a(0x177);let s=class extends _0x2cc34a{constructor(_0x3b3c01=l,_0x58b1e9,_0x234f0f){const _0x3b8d9f=_0x557a0a;super(),this[_0x3b8d9f(0x16c)]=_0x3b3c01,this[_0x3b8d9f(0x169)]=_0x58b1e9,this[_0x3b8d9f(0x189)]=_0x234f0f;const {menu:_0x33c334,..._0xebd1dc}=_0x51db51({},l,this[_0x3b8d9f(0x16c)]);_0x33c334&&this[_0x3b8d9f(0x189)][_0x3b8d9f(0x182)](_0x3b8d9f(0x163),_0x33c334,{'merge':!0x0}),this[_0x3b8d9f(0x189)][_0x3b8d9f(0x182)](H,_0xebd1dc);}['onStarting'](){const _0xc7da99=_0x557a0a;[[c]][_0xc7da99(0x15f)](_0x5b4b75=>this['_injector'][_0xc7da99(0x172)](_0x5b4b75));}[_0x557a0a(0x167)](){const _0x3e820e=_0x557a0a;this[_0x3e820e(0x169)][_0x3e820e(0x161)](c);}};I(s,_0x557a0a(0x179),W),I(s,_0x557a0a(0x17e),_0x33b3f0['UNIVER_SHEET']),s=V([_0x31ef0b(_0x594702),_(0x1,_0x226049(_0x1eee2f)),_(0x2,_0x106d56)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x1bf2bf=_0x4978;(function(_0x2aecd9,_0x5026ad){const _0x306c44=_0x4978,_0x4d7da7=_0x2aecd9();while(!![]){try{const _0x24c00c=-parseInt(_0x306c44(0x17e))/0x1+parseInt(_0x306c44(0x181))/0x2+-parseInt(_0x306c44(0x1a7))/0x3*(-parseInt(_0x306c44(0x178))/0x4)+parseInt(_0x306c44(0x196))/0x5*(parseInt(_0x306c44(0x198))/0x6)+parseInt(_0x306c44(0x1a3))/0x7*(parseInt(_0x306c44(0x19c))/0x8)+parseInt(_0x306c44(0x1a5))/0x9*(-parseInt(_0x306c44(0x19f))/0xa)+-parseInt(_0x306c44(0x179))/0xb*(parseInt(_0x306c44(0x193))/0xc);if(_0x24c00c===_0x5026ad)break;else _0x4d7da7['push'](_0x4d7da7['shift']());}catch(_0x2cf173){_0x4d7da7['push'](_0x4d7da7['shift']());}}}(_0x39d9,0x488ff));import{IExchangeOperateService as _0x9ca5c3,UniverExchangeClientPlugin as _0x4853ba}from'@univerjs-pro/exchange-client';import{CommandType as _0x284387,UniverInstanceType as _0x1c81b3,Disposable as _0x3b351e,ICommandService as _0x298c1b,DependentOn as _0x47143c,Inject as _0x5e964f,Injector as _0x32cc60,IConfigService as _0x273036,Plugin as _0x524aa4,merge as _0x407e03}from'@univerjs/core';import{MenuItemType as _0x36ef97,getMenuHiddenObservable as _0x2899da,RibbonStartGroup as _0x451e08,IMenuManagerService as _0x1452df}from'@univerjs/ui';function _0x4978(_0x418995,_0x121f41){const _0x39d9fd=_0x39d9();return _0x4978=function(_0x497847,_0x7701d3){_0x497847=_0x497847-0x174;let _0x250e2a=_0x39d9fd[_0x497847];return _0x250e2a;},_0x4978(_0x418995,_0x121f41);}import{WorkbookExportPermission as _0x2052a4}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x44462e}from'@univerjs/sheets-ui';const p={'id':_0x1bf2bf(0x19b),'type':_0x284387[_0x1bf2bf(0x18f)],'handler':async _0x3d1ba7=>{const _0x1f1cc3=_0x1bf2bf,_0x317832=_0x3d1ba7['get'](_0x9ca5c3);return new URLSearchParams(location[_0x1f1cc3(0x17c)])['get'](_0x1f1cc3(0x189))?_0x317832[_0x1f1cc3(0x18c)]():_0x317832[_0x1f1cc3(0x183)](),!0x0;}},u={'id':_0x1bf2bf(0x1a4),'type':_0x284387[_0x1bf2bf(0x18f)],'handler':async _0x5d43f7=>{const _0x107d04=_0x1bf2bf,_0x2ff54a=_0x5d43f7[_0x107d04(0x1a2)](_0x9ca5c3);return new URLSearchParams(location[_0x107d04(0x17c)])['get']('unit')?_0x2ff54a[_0x107d04(0x182)]():_0x2ff54a['exportXLSXBySnapshot'](),!0x0;}},H='sheets-exchange-client.config',l={},S=_0x1bf2bf(0x18a);function R(_0x38889d){const _0x1d45bd=_0x1bf2bf;return{'id':S,'type':_0x36ef97[_0x1d45bd(0x184)],'icon':_0x1d45bd(0x186),'tooltip':_0x1d45bd(0x180),'hidden$':_0x2899da(_0x38889d,_0x1c81b3[_0x1d45bd(0x190)]),'disabled$':_0x44462e(_0x38889d,{'workbookTypes':[_0x2052a4]})};}function w(){const _0x34d8a7=_0x1bf2bf;return{'id':p['id'],'type':_0x36ef97['BUTTON'],'title':'exchange.upload','icon':_0x34d8a7(0x185)};}function D(){const _0x7e2793=_0x1bf2bf;return{'id':u['id'],'type':_0x36ef97[_0x7e2793(0x18b)],'title':_0x7e2793(0x194),'icon':_0x7e2793(0x197)};}function _0x39d9(){const _0x25a0d3=['803ZXgouu','_menuManagerService','length','search','_injector','251416fMtbNT','_initMenus','exchange.file','137778hwlohS','exportXLSXByUnitId','importXLSXToSnapshot','SUBITEMS','FolderIcon','DirectExportIcon','symbol','_config','unit','sheets-exchange-client.operation.exchange','BUTTON','importXLSXToUnitId','add','OTHERS','OPERATION','UNIVER_SHEET','SHEET_EXCHANGE_CLIENT_PLUGIN','mergeMenu','20652WCkuSL','exchange.download','defineProperty','1333815ihTIYJ','ExportIcon','6rHUbKw','onReady','pluginName','exchange-client.operation.import-xlsx','16sNIiAE','onStarting','_configService','10kqgpMZ','getOwnPropertyDescriptor','_commandService','get','1346611vinYQX','exchange-client.operation.export-xlsx','3058974VQvvOH','type','440628YqqECU','forEach','disposeWithMe','_initCommands','setConfig','8GYXApD'];_0x39d9=function(){return _0x25a0d3;};return _0x39d9();}const F={[_0x451e08[_0x1bf2bf(0x18e)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0xe9f88e,_0x588a8b,_0x2e452c,_0x1c8307)=>{const _0x119c74=_0x1bf2bf;for(var _0x28e8c7=_0x1c8307>0x1?void 0x0:_0x1c8307?G(_0x588a8b,_0x2e452c):_0x588a8b,_0x5a70f7=_0xe9f88e[_0x119c74(0x17b)]-0x1,_0x2c5160;_0x5a70f7>=0x0;_0x5a70f7--)(_0x2c5160=_0xe9f88e[_0x5a70f7])&&(_0x28e8c7=_0x2c5160(_0x28e8c7)||_0x28e8c7);return _0x28e8c7;},d=(_0x29475b,_0x46b1ee)=>(_0x3cc58c,_0x54e178)=>_0x46b1ee(_0x3cc58c,_0x54e178,_0x29475b);let c=class extends _0x3b351e{constructor(_0x2f02b2,_0x1ee553){const _0x2c4148=_0x1bf2bf;super(),this[_0x2c4148(0x1a1)]=_0x2f02b2,this[_0x2c4148(0x17a)]=_0x1ee553,this[_0x2c4148(0x176)](),this[_0x2c4148(0x17f)]();}[_0x1bf2bf(0x176)](){const _0x1908ae=_0x1bf2bf;[p,u][_0x1908ae(0x174)](_0x209d97=>{const _0x18a27e=_0x1908ae;this[_0x18a27e(0x175)](this[_0x18a27e(0x1a1)]['registerCommand'](_0x209d97));});}[_0x1bf2bf(0x17f)](){const _0x302cba=_0x1bf2bf;this[_0x302cba(0x17a)][_0x302cba(0x192)](F);}};c=A([d(0x0,_0x298c1b),d(0x1,_0x1452df)],c);var j=Object[_0x1bf2bf(0x195)],B=Object[_0x1bf2bf(0x1a0)],$=(_0xb2373b,_0x2f2bc0,_0x355694)=>_0x2f2bc0 in _0xb2373b?j(_0xb2373b,_0x2f2bc0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x355694}):_0xb2373b[_0x2f2bc0]=_0x355694,V=(_0x4ec285,_0x1daf99,_0x5739a7,_0x467868)=>{for(var _0xbe4187=_0x467868>0x1?void 0x0:_0x467868?B(_0x1daf99,_0x5739a7):_0x1daf99,_0x5ec027=_0x4ec285['length']-0x1,_0x6dacb4;_0x5ec027>=0x0;_0x5ec027--)(_0x6dacb4=_0x4ec285[_0x5ec027])&&(_0xbe4187=_0x6dacb4(_0xbe4187)||_0xbe4187);return _0xbe4187;},_=(_0x5d0c50,_0x1b014)=>(_0x50eac4,_0x1eb3ad)=>_0x1b014(_0x50eac4,_0x1eb3ad,_0x5d0c50),I=(_0x2de09f,_0x3c37e5,_0x5c1ffb)=>$(_0x2de09f,typeof _0x3c37e5!=_0x1bf2bf(0x187)?_0x3c37e5+'':_0x3c37e5,_0x5c1ffb);const W=_0x1bf2bf(0x191);let s=class extends _0x524aa4{constructor(_0x295518=l,_0x1ddfc6,_0x351f69){const _0x455bcf=_0x1bf2bf;super(),this['_config']=_0x295518,this['_injector']=_0x1ddfc6,this[_0x455bcf(0x19e)]=_0x351f69;const {menu:_0x2a4f74,..._0x4b5d90}=_0x407e03({},l,this[_0x455bcf(0x188)]);_0x2a4f74&&this[_0x455bcf(0x19e)][_0x455bcf(0x177)]('menu',_0x2a4f74,{'merge':!0x0}),this['_configService'][_0x455bcf(0x177)](H,_0x4b5d90);}[_0x1bf2bf(0x19d)](){const _0x252564=_0x1bf2bf;[[c]][_0x252564(0x174)](_0x5dbb44=>this[_0x252564(0x17d)][_0x252564(0x18d)](_0x5dbb44));}[_0x1bf2bf(0x199)](){const _0x2bd023=_0x1bf2bf;this[_0x2bd023(0x17d)]['get'](c);}};I(s,_0x1bf2bf(0x19a),W),I(s,_0x1bf2bf(0x1a6),_0x1c81b3['UNIVER_SHEET']),s=V([_0x47143c(_0x4853ba),_(0x1,_0x5e964f(_0x32cc60)),_(0x2,_0x273036)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x557a0a=_0x4b99;(function(_0x126023,_0xcaf004){const _0x477986=_0x4b99,_0x15c9a2=_0x126023();while(!![]){try{const _0x339e2a=parseInt(_0x477986(0x178))/0x1+parseInt(_0x477986(0x17b))/0x2+-parseInt(_0x477986(0x16e))/0x3*(-parseInt(_0x477986(0x181))/0x4)+-parseInt(_0x477986(0x17f))/0x5*(parseInt(_0x477986(0x15b))/0x6)+parseInt(_0x477986(0x188))/0x7+parseInt(_0x477986(0x183))/0x8*(-parseInt(_0x477986(0x184))/0x9)+-parseInt(_0x477986(0x176))/0xa;if(_0x339e2a===_0xcaf004)break;else _0x15c9a2['push'](_0x15c9a2['shift']());}catch(_0x434706){_0x15c9a2['push'](_0x15c9a2['shift']());}}}(_0x4232,0xece3e));import{IExchangeOperateService as _0x133d72,UniverExchangeClientPlugin as _0x594702}from'@univerjs-pro/exchange-client';import{CommandType as _0x7185d5,UniverInstanceType as _0x33b3f0,Disposable as _0x1d1a35,ICommandService as _0x16d8f5,DependentOn as _0x31ef0b,Inject as _0x226049,Injector as _0x1eee2f,IConfigService as _0x106d56,Plugin as _0x2cc34a,merge as _0x51db51}from'@univerjs/core';import{MenuItemType as _0x2dd209,getMenuHiddenObservable as _0x69414,RibbonStartGroup as _0x51f861,IMenuManagerService as _0x9d1e6e}from'@univerjs/ui';import{WorkbookExportPermission as _0x389cf0}from'@univerjs/sheets';function _0x4b99(_0x4c9833,_0x52dad8){const _0x42320c=_0x4232();return _0x4b99=function(_0x4b9990,_0x517064){_0x4b9990=_0x4b9990-0x15b;let _0x247e5e=_0x42320c[_0x4b9990];return _0x247e5e;},_0x4b99(_0x4c9833,_0x52dad8);}import{getCurrentRangeDisable$ as _0x3502b2}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x7185d5[_0x557a0a(0x15e)],'handler':async _0x2bc632=>{const _0x10bdb1=_0x557a0a,_0x4e41b3=_0x2bc632[_0x10bdb1(0x161)](_0x133d72);return new URLSearchParams(location['search'])[_0x10bdb1(0x161)](_0x10bdb1(0x16d))?_0x4e41b3[_0x10bdb1(0x171)]():_0x4e41b3[_0x10bdb1(0x16b)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x7185d5[_0x557a0a(0x15e)],'handler':async _0x198a60=>{const _0x2d0a80=_0x557a0a,_0x62e42=_0x198a60['get'](_0x133d72);return new URLSearchParams(location['search'])[_0x2d0a80(0x161)](_0x2d0a80(0x16d))?_0x62e42[_0x2d0a80(0x170)]():_0x62e42[_0x2d0a80(0x165)](),!0x0;}},H=_0x557a0a(0x18a),l={},S=_0x557a0a(0x180);function R(_0x19da25){const _0x184c1c=_0x557a0a;return{'id':S,'type':_0x2dd209[_0x184c1c(0x185)],'icon':_0x184c1c(0x17d),'tooltip':_0x184c1c(0x174),'hidden$':_0x69414(_0x19da25,_0x33b3f0[_0x184c1c(0x173)]),'disabled$':_0x3502b2(_0x19da25,{'workbookTypes':[_0x389cf0]})};}function w(){const _0x4c0594=_0x557a0a;return{'id':p['id'],'type':_0x2dd209[_0x4c0594(0x17c)],'title':_0x4c0594(0x187),'icon':_0x4c0594(0x16a)};}function D(){const _0x4890a2=_0x557a0a;return{'id':u['id'],'type':_0x2dd209[_0x4890a2(0x17c)],'title':'exchange.download','icon':_0x4890a2(0x166)};}const F={[_0x51f861[_0x557a0a(0x175)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};function _0x4232(){const _0x508f21=['180AYUBDf','setConfig','4941736uUugob','9Bjrtez','SUBITEMS','defineProperty','exchange.upload','9148363hUzJIf','_configService','sheets-exchange-client.config','36qZMrnt','mergeMenu','getOwnPropertyDescriptor','OPERATION','forEach','_initMenus','get','_menuManagerService','menu','length','exportXLSXBySnapshot','ExportIcon','onReady','_commandService','_injector','FolderIcon','importXLSXToSnapshot','_config','unit','4401BRybSI','symbol','exportXLSXByUnitId','importXLSXToUnitId','add','UNIVER_SHEET','exchange.file','OTHERS','15045120xuHhCp','SHEET_EXCHANGE_CLIENT_PLUGIN','1509344lXbabS','pluginName','_initCommands','3215134ZHIHlw','BUTTON','DirectExportIcon','type','1164420uIlNlk','sheets-exchange-client.operation.exchange'];_0x4232=function(){return _0x508f21;};return _0x4232();}var G=Object[_0x557a0a(0x15d)],A=(_0x4f16dc,_0x1aec53,_0x4fff16,_0x451e73)=>{for(var _0x293bd1=_0x451e73>0x1?void 0x0:_0x451e73?G(_0x1aec53,_0x4fff16):_0x1aec53,_0x13b034=_0x4f16dc['length']-0x1,_0x5623ff;_0x13b034>=0x0;_0x13b034--)(_0x5623ff=_0x4f16dc[_0x13b034])&&(_0x293bd1=_0x5623ff(_0x293bd1)||_0x293bd1);return _0x293bd1;},d=(_0x60369b,_0xcde0c3)=>(_0x2a45ff,_0x431578)=>_0xcde0c3(_0x2a45ff,_0x431578,_0x60369b);let c=class extends _0x1d1a35{constructor(_0x17bc56,_0x1f3460){const _0x26e49f=_0x557a0a;super(),this[_0x26e49f(0x168)]=_0x17bc56,this[_0x26e49f(0x162)]=_0x1f3460,this[_0x26e49f(0x17a)](),this[_0x26e49f(0x160)]();}[_0x557a0a(0x17a)](){[p,u]['forEach'](_0x4463b7=>{const _0x5b4074=_0x4b99;this['disposeWithMe'](this[_0x5b4074(0x168)]['registerCommand'](_0x4463b7));});}[_0x557a0a(0x160)](){const _0x3759ac=_0x557a0a;this['_menuManagerService'][_0x3759ac(0x15c)](F);}};c=A([d(0x0,_0x16d8f5),d(0x1,_0x9d1e6e)],c);var j=Object[_0x557a0a(0x186)],B=Object['getOwnPropertyDescriptor'],$=(_0x123382,_0x6328dd,_0x519c93)=>_0x6328dd in _0x123382?j(_0x123382,_0x6328dd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x519c93}):_0x123382[_0x6328dd]=_0x519c93,V=(_0x53b9c4,_0x4b3549,_0x1d6c50,_0x41a17b)=>{const _0x5cf1d9=_0x557a0a;for(var _0x316af5=_0x41a17b>0x1?void 0x0:_0x41a17b?B(_0x4b3549,_0x1d6c50):_0x4b3549,_0x2535eb=_0x53b9c4[_0x5cf1d9(0x164)]-0x1,_0x53add4;_0x2535eb>=0x0;_0x2535eb--)(_0x53add4=_0x53b9c4[_0x2535eb])&&(_0x316af5=_0x53add4(_0x316af5)||_0x316af5);return _0x316af5;},_=(_0x4d0a02,_0x16eaad)=>(_0x46fc13,_0x44ffde)=>_0x16eaad(_0x46fc13,_0x44ffde,_0x4d0a02),I=(_0x4b9c0d,_0x425861,_0x53c369)=>$(_0x4b9c0d,typeof _0x425861!=_0x557a0a(0x16f)?_0x425861+'':_0x425861,_0x53c369);const W=_0x557a0a(0x177);let s=class extends _0x2cc34a{constructor(_0x3b3c01=l,_0x58b1e9,_0x234f0f){const _0x3b8d9f=_0x557a0a;super(),this[_0x3b8d9f(0x16c)]=_0x3b3c01,this[_0x3b8d9f(0x169)]=_0x58b1e9,this[_0x3b8d9f(0x189)]=_0x234f0f;const {menu:_0x33c334,..._0xebd1dc}=_0x51db51({},l,this[_0x3b8d9f(0x16c)]);_0x33c334&&this[_0x3b8d9f(0x189)][_0x3b8d9f(0x182)](_0x3b8d9f(0x163),_0x33c334,{'merge':!0x0}),this[_0x3b8d9f(0x189)][_0x3b8d9f(0x182)](H,_0xebd1dc);}['onStarting'](){const _0xc7da99=_0x557a0a;[[c]][_0xc7da99(0x15f)](_0x5b4b75=>this['_injector'][_0xc7da99(0x172)](_0x5b4b75));}[_0x557a0a(0x167)](){const _0x3e820e=_0x557a0a;this[_0x3e820e(0x169)][_0x3e820e(0x161)](c);}};I(s,_0x557a0a(0x179),W),I(s,_0x557a0a(0x17e),_0x33b3f0['UNIVER_SHEET']),s=V([_0x31ef0b(_0x594702),_(0x1,_0x226049(_0x1eee2f)),_(0x2,_0x106d56)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x1bf2bf=_0x4978;(function(_0x2aecd9,_0x5026ad){const _0x306c44=_0x4978,_0x4d7da7=_0x2aecd9();while(!![]){try{const _0x24c00c=-parseInt(_0x306c44(0x17e))/0x1+parseInt(_0x306c44(0x181))/0x2+-parseInt(_0x306c44(0x1a7))/0x3*(-parseInt(_0x306c44(0x178))/0x4)+parseInt(_0x306c44(0x196))/0x5*(parseInt(_0x306c44(0x198))/0x6)+parseInt(_0x306c44(0x1a3))/0x7*(parseInt(_0x306c44(0x19c))/0x8)+parseInt(_0x306c44(0x1a5))/0x9*(-parseInt(_0x306c44(0x19f))/0xa)+-parseInt(_0x306c44(0x179))/0xb*(parseInt(_0x306c44(0x193))/0xc);if(_0x24c00c===_0x5026ad)break;else _0x4d7da7['push'](_0x4d7da7['shift']());}catch(_0x2cf173){_0x4d7da7['push'](_0x4d7da7['shift']());}}}(_0x39d9,0x488ff));import{IExchangeOperateService as _0x9ca5c3,UniverExchangeClientPlugin as _0x4853ba}from'@univerjs-pro/exchange-client';import{CommandType as _0x284387,UniverInstanceType as _0x1c81b3,Disposable as _0x3b351e,ICommandService as _0x298c1b,DependentOn as _0x47143c,Inject as _0x5e964f,Injector as _0x32cc60,IConfigService as _0x273036,Plugin as _0x524aa4,merge as _0x407e03}from'@univerjs/core';import{MenuItemType as _0x36ef97,getMenuHiddenObservable as _0x2899da,RibbonStartGroup as _0x451e08,IMenuManagerService as _0x1452df}from'@univerjs/ui';function _0x4978(_0x418995,_0x121f41){const _0x39d9fd=_0x39d9();return _0x4978=function(_0x497847,_0x7701d3){_0x497847=_0x497847-0x174;let _0x250e2a=_0x39d9fd[_0x497847];return _0x250e2a;},_0x4978(_0x418995,_0x121f41);}import{WorkbookExportPermission as _0x2052a4}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x44462e}from'@univerjs/sheets-ui';const p={'id':_0x1bf2bf(0x19b),'type':_0x284387[_0x1bf2bf(0x18f)],'handler':async _0x3d1ba7=>{const _0x1f1cc3=_0x1bf2bf,_0x317832=_0x3d1ba7['get'](_0x9ca5c3);return new URLSearchParams(location[_0x1f1cc3(0x17c)])['get'](_0x1f1cc3(0x189))?_0x317832[_0x1f1cc3(0x18c)]():_0x317832[_0x1f1cc3(0x183)](),!0x0;}},u={'id':_0x1bf2bf(0x1a4),'type':_0x284387[_0x1bf2bf(0x18f)],'handler':async _0x5d43f7=>{const _0x107d04=_0x1bf2bf,_0x2ff54a=_0x5d43f7[_0x107d04(0x1a2)](_0x9ca5c3);return new URLSearchParams(location[_0x107d04(0x17c)])['get']('unit')?_0x2ff54a[_0x107d04(0x182)]():_0x2ff54a['exportXLSXBySnapshot'](),!0x0;}},H='sheets-exchange-client.config',l={},S=_0x1bf2bf(0x18a);function R(_0x38889d){const _0x1d45bd=_0x1bf2bf;return{'id':S,'type':_0x36ef97[_0x1d45bd(0x184)],'icon':_0x1d45bd(0x186),'tooltip':_0x1d45bd(0x180),'hidden$':_0x2899da(_0x38889d,_0x1c81b3[_0x1d45bd(0x190)]),'disabled$':_0x44462e(_0x38889d,{'workbookTypes':[_0x2052a4]})};}function w(){const _0x34d8a7=_0x1bf2bf;return{'id':p['id'],'type':_0x36ef97['BUTTON'],'title':'exchange.upload','icon':_0x34d8a7(0x185)};}function D(){const _0x7e2793=_0x1bf2bf;return{'id':u['id'],'type':_0x36ef97[_0x7e2793(0x18b)],'title':_0x7e2793(0x194),'icon':_0x7e2793(0x197)};}function _0x39d9(){const _0x25a0d3=['803ZXgouu','_menuManagerService','length','search','_injector','251416fMtbNT','_initMenus','exchange.file','137778hwlohS','exportXLSXByUnitId','importXLSXToSnapshot','SUBITEMS','FolderIcon','DirectExportIcon','symbol','_config','unit','sheets-exchange-client.operation.exchange','BUTTON','importXLSXToUnitId','add','OTHERS','OPERATION','UNIVER_SHEET','SHEET_EXCHANGE_CLIENT_PLUGIN','mergeMenu','20652WCkuSL','exchange.download','defineProperty','1333815ihTIYJ','ExportIcon','6rHUbKw','onReady','pluginName','exchange-client.operation.import-xlsx','16sNIiAE','onStarting','_configService','10kqgpMZ','getOwnPropertyDescriptor','_commandService','get','1346611vinYQX','exchange-client.operation.export-xlsx','3058974VQvvOH','type','440628YqqECU','forEach','disposeWithMe','_initCommands','setConfig','8GYXApD'];_0x39d9=function(){return _0x25a0d3;};return _0x39d9();}const F={[_0x451e08[_0x1bf2bf(0x18e)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0xe9f88e,_0x588a8b,_0x2e452c,_0x1c8307)=>{const _0x119c74=_0x1bf2bf;for(var _0x28e8c7=_0x1c8307>0x1?void 0x0:_0x1c8307?G(_0x588a8b,_0x2e452c):_0x588a8b,_0x5a70f7=_0xe9f88e[_0x119c74(0x17b)]-0x1,_0x2c5160;_0x5a70f7>=0x0;_0x5a70f7--)(_0x2c5160=_0xe9f88e[_0x5a70f7])&&(_0x28e8c7=_0x2c5160(_0x28e8c7)||_0x28e8c7);return _0x28e8c7;},d=(_0x29475b,_0x46b1ee)=>(_0x3cc58c,_0x54e178)=>_0x46b1ee(_0x3cc58c,_0x54e178,_0x29475b);let c=class extends _0x3b351e{constructor(_0x2f02b2,_0x1ee553){const _0x2c4148=_0x1bf2bf;super(),this[_0x2c4148(0x1a1)]=_0x2f02b2,this[_0x2c4148(0x17a)]=_0x1ee553,this[_0x2c4148(0x176)](),this[_0x2c4148(0x17f)]();}[_0x1bf2bf(0x176)](){const _0x1908ae=_0x1bf2bf;[p,u][_0x1908ae(0x174)](_0x209d97=>{const _0x18a27e=_0x1908ae;this[_0x18a27e(0x175)](this[_0x18a27e(0x1a1)]['registerCommand'](_0x209d97));});}[_0x1bf2bf(0x17f)](){const _0x302cba=_0x1bf2bf;this[_0x302cba(0x17a)][_0x302cba(0x192)](F);}};c=A([d(0x0,_0x298c1b),d(0x1,_0x1452df)],c);var j=Object[_0x1bf2bf(0x195)],B=Object[_0x1bf2bf(0x1a0)],$=(_0xb2373b,_0x2f2bc0,_0x355694)=>_0x2f2bc0 in _0xb2373b?j(_0xb2373b,_0x2f2bc0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x355694}):_0xb2373b[_0x2f2bc0]=_0x355694,V=(_0x4ec285,_0x1daf99,_0x5739a7,_0x467868)=>{for(var _0xbe4187=_0x467868>0x1?void 0x0:_0x467868?B(_0x1daf99,_0x5739a7):_0x1daf99,_0x5ec027=_0x4ec285['length']-0x1,_0x6dacb4;_0x5ec027>=0x0;_0x5ec027--)(_0x6dacb4=_0x4ec285[_0x5ec027])&&(_0xbe4187=_0x6dacb4(_0xbe4187)||_0xbe4187);return _0xbe4187;},_=(_0x5d0c50,_0x1b014)=>(_0x50eac4,_0x1eb3ad)=>_0x1b014(_0x50eac4,_0x1eb3ad,_0x5d0c50),I=(_0x2de09f,_0x3c37e5,_0x5c1ffb)=>$(_0x2de09f,typeof _0x3c37e5!=_0x1bf2bf(0x187)?_0x3c37e5+'':_0x3c37e5,_0x5c1ffb);const W=_0x1bf2bf(0x191);let s=class extends _0x524aa4{constructor(_0x295518=l,_0x1ddfc6,_0x351f69){const _0x455bcf=_0x1bf2bf;super(),this['_config']=_0x295518,this['_injector']=_0x1ddfc6,this[_0x455bcf(0x19e)]=_0x351f69;const {menu:_0x2a4f74,..._0x4b5d90}=_0x407e03({},l,this[_0x455bcf(0x188)]);_0x2a4f74&&this[_0x455bcf(0x19e)][_0x455bcf(0x177)]('menu',_0x2a4f74,{'merge':!0x0}),this['_configService'][_0x455bcf(0x177)](H,_0x4b5d90);}[_0x1bf2bf(0x19d)](){const _0x252564=_0x1bf2bf;[[c]][_0x252564(0x174)](_0x5dbb44=>this[_0x252564(0x17d)][_0x252564(0x18d)](_0x5dbb44));}[_0x1bf2bf(0x199)](){const _0x2bd023=_0x1bf2bf;this[_0x2bd023(0x17d)]['get'](c);}};I(s,_0x1bf2bf(0x19a),W),I(s,_0x1bf2bf(0x1a6),_0x1c81b3['UNIVER_SHEET']),s=V([_0x47143c(_0x4853ba),_(0x1,_0x5e964f(_0x32cc60)),_(0x2,_0x273036)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x1859(_0x1017de,_0x39f975){const _0x2f45d6=_0x2f45();return _0x1859=function(_0x185963,_0x3888e4){_0x185963=_0x185963-0xb0;let _0x4df03a=_0x2f45d6[_0x185963];return _0x4df03a;},_0x1859(_0x1017de,_0x39f975);}function _0x2f45(){const _0x4bd57f=['OPERATION','1342564eWIlgt','get','mergeMenu','object','onStarting','_configService','@univerjs/ui','SHEET_EXCHANGE_CLIENT_PLUGIN','unit','1168335bDvNHz','UniverProExchangeClient','getCurrentRangeDisable$','Module','defineProperty','_injector','244440BkMSoQ','Plugin','importXLSXToUnitId','ExportXLSXOperation','pluginName','toStringTag','2129672qRsHdg','importXLSXToSnapshot','IConfigService','getOwnPropertyDescriptor','exchange.file','Injector','UniverInstanceType','forEach','exchange-client.operation.export-xlsx','_commandService','disposeWithMe','_config','1640412pWexue','ICommandService','UNIVER_SHEET','475366izQkGo','onReady','1lYIJdW','function','exportXLSXByUnitId','3sBJIDb','MenuItemType','@univerjs/core','WorkbookExportPermission','length','_initMenus','UniverSheetsExchangeClientPlugin','ImportXLSXOperation','_initCommands','menu','@univerjs/sheets','setConfig','exports','9304650QAsNpJ','sheets-exchange-client.operation.exchange','IExchangeOperateService','search','sheets-exchange-client.config','@univerjs/sheets-ui','_menuManagerService','BUTTON','add','exportXLSXBySnapshot','exchange.upload','Inject','CommandType','UniverUi','merge','UniverProSheetsExchangeClient'];_0x2f45=function(){return _0x4bd57f;};return _0x2f45();}(function(_0x33abb7,_0x5711d3){const _0x18361d=_0x1859,_0x537bea=_0x33abb7();while(!![]){try{const _0x3329c6=-parseInt(_0x18361d(0xdb))/0x1*(-parseInt(_0x18361d(0xd9))/0x2)+parseInt(_0x18361d(0xde))/0x3*(parseInt(_0x18361d(0xb5))/0x4)+-parseInt(_0x18361d(0xc4))/0x5+parseInt(_0x18361d(0xd6))/0x6+parseInt(_0x18361d(0xbe))/0x7+parseInt(_0x18361d(0xca))/0x8+-parseInt(_0x18361d(0xeb))/0x9;if(_0x3329c6===_0x5711d3)break;else _0x537bea['push'](_0x537bea['shift']());}catch(_0xe1d81f){_0x537bea['push'](_0x537bea['shift']());}}}(_0x2f45,0x301ee),function(_0x457032,_0x1fa541){const _0x25c64c=_0x1859;typeof exports==_0x25c64c(0xb8)&&typeof module<'u'?_0x1fa541(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x25c64c(0xdc)&&define['amd']?define([_0x25c64c(0xea),'@univerjs-pro/exchange-client',_0x25c64c(0xe0),_0x25c64c(0xbb),_0x25c64c(0xe8),_0x25c64c(0xf0)],_0x1fa541):(_0x457032=typeof globalThis<'u'?globalThis:_0x457032||self,_0x1fa541(_0x457032[_0x25c64c(0xb3)]={},_0x457032[_0x25c64c(0xbf)],_0x457032['UniverCore'],_0x457032[_0x25c64c(0xb1)],_0x457032['UniverSheets'],_0x457032['UniverSheetsUi']));}(this,function(_0x537e64,_0x542778,_0x2f6bf2,_0x1710b1,_0x2b7922,_0x1d6604){'use strict';const _0x17a89c=_0x1859;const _0xcca6e={'id':'exchange-client.operation.import-xlsx','type':_0x2f6bf2[_0x17a89c(0xb0)][_0x17a89c(0xb4)],'handler':async _0x3fd5b5=>{const _0x1f1237=_0x17a89c,_0x23546f=_0x3fd5b5['get'](_0x542778[_0x1f1237(0xed)]);return new URLSearchParams(location[_0x1f1237(0xee)])['get']('unit')?_0x23546f[_0x1f1237(0xc6)]():_0x23546f[_0x1f1237(0xcb)](),!0x0;}},_0x2f531f={'id':_0x17a89c(0xd2),'type':_0x2f6bf2[_0x17a89c(0xb0)][_0x17a89c(0xb4)],'handler':async _0x402ba0=>{const _0x442061=_0x17a89c,_0x2a2d2b=_0x402ba0['get'](_0x542778['IExchangeOperateService']);return new URLSearchParams(location[_0x442061(0xee)])[_0x442061(0xb6)](_0x442061(0xbd))?_0x2a2d2b[_0x442061(0xdd)]():_0x2a2d2b[_0x442061(0xf4)](),!0x0;}},_0x2c1f66=_0x17a89c(0xef),_0x5eed8c={},_0x1fd83f=_0x17a89c(0xec);function _0x340457(_0x5addb4){const _0xf07d83=_0x17a89c;return{'id':_0x1fd83f,'type':_0x1710b1[_0xf07d83(0xdf)]['SUBITEMS'],'icon':'DirectExportIcon','tooltip':_0xf07d83(0xce),'hidden$':_0x1710b1['getMenuHiddenObservable'](_0x5addb4,_0x2f6bf2[_0xf07d83(0xd0)][_0xf07d83(0xd8)]),'disabled$':_0x1d6604[_0xf07d83(0xc0)](_0x5addb4,{'workbookTypes':[_0x2b7922[_0xf07d83(0xe1)]]})};}function _0x242dea(){const _0x2dd0ae=_0x17a89c;return{'id':_0xcca6e['id'],'type':_0x1710b1[_0x2dd0ae(0xdf)][_0x2dd0ae(0xf2)],'title':_0x2dd0ae(0xf5),'icon':'FolderIcon'};}function _0x5e6d65(){const _0x1d960e=_0x17a89c;return{'id':_0x2f531f['id'],'type':_0x1710b1[_0x1d960e(0xdf)][_0x1d960e(0xf2)],'title':'exchange.download','icon':'ExportIcon'};}const _0x218d31={[_0x1710b1['RibbonStartGroup']['OTHERS']]:{[_0x1fd83f]:{'order':0.3,'menuItemFactory':_0x340457,[_0xcca6e['id']]:{'order':0x0,'menuItemFactory':_0x242dea},[_0x2f531f['id']]:{'order':0x1,'menuItemFactory':_0x5e6d65}}}};var _0x25a1f3=Object[_0x17a89c(0xcd)],_0x502e0a=(_0x54cf02,_0x2bdf68,_0x3bff88,_0x3f7b58)=>{const _0x34010a=_0x17a89c;for(var _0x263724=_0x3f7b58>0x1?void 0x0:_0x3f7b58?_0x25a1f3(_0x2bdf68,_0x3bff88):_0x2bdf68,_0x342cb1=_0x54cf02[_0x34010a(0xe2)]-0x1,_0x468057;_0x342cb1>=0x0;_0x342cb1--)(_0x468057=_0x54cf02[_0x342cb1])&&(_0x263724=_0x468057(_0x263724)||_0x263724);return _0x263724;},_0x5dea18=(_0x4bbc6b,_0x3409bb)=>(_0xa24207,_0x348482)=>_0x3409bb(_0xa24207,_0x348482,_0x4bbc6b);let _0xf4ee7c=class extends _0x2f6bf2['Disposable']{constructor(_0x3fe106,_0x18e5c8){const _0x40ca85=_0x17a89c;super(),this[_0x40ca85(0xd3)]=_0x3fe106,this['_menuManagerService']=_0x18e5c8,this['_initCommands'](),this[_0x40ca85(0xe3)]();}[_0x17a89c(0xe6)](){const _0x20585f=_0x17a89c;[_0xcca6e,_0x2f531f][_0x20585f(0xd1)](_0x28986a=>{const _0x4d949b=_0x20585f;this[_0x4d949b(0xd4)](this[_0x4d949b(0xd3)]['registerCommand'](_0x28986a));});}[_0x17a89c(0xe3)](){const _0x59cc61=_0x17a89c;this[_0x59cc61(0xf1)][_0x59cc61(0xb7)](_0x218d31);}};_0xf4ee7c=_0x502e0a([_0x5dea18(0x0,_0x2f6bf2[_0x17a89c(0xd7)]),_0x5dea18(0x1,_0x1710b1['IMenuManagerService'])],_0xf4ee7c);var _0x5d83e1=Object[_0x17a89c(0xc2)],_0x31d6df=Object[_0x17a89c(0xcd)],_0x18a429=(_0x5812cb,_0xade79c,_0x5217ff)=>_0xade79c in _0x5812cb?_0x5d83e1(_0x5812cb,_0xade79c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5217ff}):_0x5812cb[_0xade79c]=_0x5217ff,_0x5d48ff=(_0x5c6a3f,_0x4aaebd,_0x461930,_0x4a989e)=>{const _0x5dc2d6=_0x17a89c;for(var _0x26b162=_0x4a989e>0x1?void 0x0:_0x4a989e?_0x31d6df(_0x4aaebd,_0x461930):_0x4aaebd,_0x2840c8=_0x5c6a3f[_0x5dc2d6(0xe2)]-0x1,_0x19c01a;_0x2840c8>=0x0;_0x2840c8--)(_0x19c01a=_0x5c6a3f[_0x2840c8])&&(_0x26b162=_0x19c01a(_0x26b162)||_0x26b162);return _0x26b162;},_0x4cf361=(_0x28bdc4,_0x17bb29)=>(_0x1ac299,_0x2b2d54)=>_0x17bb29(_0x1ac299,_0x2b2d54,_0x28bdc4),_0x402d19=(_0xfe37f5,_0x15b5c2,_0x1186e6)=>_0x18a429(_0xfe37f5,typeof _0x15b5c2!='symbol'?_0x15b5c2+'':_0x15b5c2,_0x1186e6);const _0x389164=_0x17a89c(0xbc);_0x537e64[_0x17a89c(0xe4)]=class extends _0x2f6bf2[_0x17a89c(0xc5)]{constructor(_0xd34c22=_0x5eed8c,_0x4df944,_0x5a2d86){const _0x5d636d=_0x17a89c;super(),this[_0x5d636d(0xd5)]=_0xd34c22,this[_0x5d636d(0xc3)]=_0x4df944,this[_0x5d636d(0xba)]=_0x5a2d86;const {menu:_0x19823d,..._0xd6770a}=_0x2f6bf2[_0x5d636d(0xb2)]({},_0x5eed8c,this[_0x5d636d(0xd5)]);_0x19823d&&this[_0x5d636d(0xba)]['setConfig'](_0x5d636d(0xe7),_0x19823d,{'merge':!0x0}),this[_0x5d636d(0xba)][_0x5d636d(0xe9)](_0x2c1f66,_0xd6770a);}[_0x17a89c(0xb9)](){const _0x9433f7=_0x17a89c;[[_0xf4ee7c]][_0x9433f7(0xd1)](_0x3f9d72=>this[_0x9433f7(0xc3)][_0x9433f7(0xf3)](_0x3f9d72));}[_0x17a89c(0xda)](){const _0x1d2503=_0x17a89c;this[_0x1d2503(0xc3)]['get'](_0xf4ee7c);}},_0x402d19(_0x537e64[_0x17a89c(0xe4)],_0x17a89c(0xc8),_0x389164),_0x402d19(_0x537e64[_0x17a89c(0xe4)],'type',_0x2f6bf2['UniverInstanceType'][_0x17a89c(0xd8)]),_0x537e64['UniverSheetsExchangeClientPlugin']=_0x5d48ff([_0x2f6bf2['DependentOn'](_0x542778['UniverExchangeClientPlugin']),_0x4cf361(0x1,_0x2f6bf2[_0x17a89c(0xf6)](_0x2f6bf2[_0x17a89c(0xcf)])),_0x4cf361(0x2,_0x2f6bf2[_0x17a89c(0xcc)])],_0x537e64[_0x17a89c(0xe4)]),_0x537e64[_0x17a89c(0xc7)]=_0x2f531f,_0x537e64[_0x17a89c(0xe5)]=_0xcca6e,Object[_0x17a89c(0xc2)](_0x537e64,Symbol[_0x17a89c(0xc9)],{'value':_0x17a89c(0xc1)});}));
1
+ (function(_0x4159a9,_0x4671fb){const _0x1db0fc=_0xe2cb,_0x1d78e5=_0x4159a9();while(!![]){try{const _0x10ebb6=-parseInt(_0x1db0fc(0x1b8))/0x1+parseInt(_0x1db0fc(0x1cc))/0x2+-parseInt(_0x1db0fc(0x1e3))/0x3*(parseInt(_0x1db0fc(0x1dc))/0x4)+parseInt(_0x1db0fc(0x1d1))/0x5*(-parseInt(_0x1db0fc(0x1a6))/0x6)+-parseInt(_0x1db0fc(0x1ca))/0x7*(-parseInt(_0x1db0fc(0x1da))/0x8)+parseInt(_0x1db0fc(0x1de))/0x9+parseInt(_0x1db0fc(0x1e1))/0xa*(parseInt(_0x1db0fc(0x1b3))/0xb);if(_0x10ebb6===_0x4671fb)break;else _0x1d78e5['push'](_0x1d78e5['shift']());}catch(_0x36a482){_0x1d78e5['push'](_0x1d78e5['shift']());}}}(_0x5959,0x464dd),function(_0xeb00d8,_0x35aad1){const _0x3969bd=_0xe2cb;typeof exports==_0x3969bd(0x1e6)&&typeof module<'u'?_0x35aad1(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x3969bd(0x1c4)&&define[_0x3969bd(0x1e0)]?define([_0x3969bd(0x1d3),_0x3969bd(0x1bc),_0x3969bd(0x19b),'@univerjs/ui',_0x3969bd(0x1b5),_0x3969bd(0x1b7)],_0x35aad1):(_0xeb00d8=typeof globalThis<'u'?globalThis:_0xeb00d8||self,_0x35aad1(_0xeb00d8[_0x3969bd(0x1a9)]={},_0xeb00d8[_0x3969bd(0x1c2)],_0xeb00d8[_0x3969bd(0x1d8)],_0xeb00d8[_0x3969bd(0x1a4)],_0xeb00d8[_0x3969bd(0x1ce)],_0xeb00d8['UniverSheetsUi']));}(this,function(_0x1dac04,_0x4959fe,_0x59d24d,_0x2dce6d,_0x348022,_0x2dc96){'use strict';const _0x2d8d72=_0xe2cb;const _0xe88795={'id':'exchange-client.operation.import-xlsx','type':_0x59d24d[_0x2d8d72(0x1c3)][_0x2d8d72(0x19e)],'handler':async _0x3c843f=>{const _0x548a01=_0x2d8d72,_0xeb8056=_0x3c843f[_0x548a01(0x1d7)](_0x4959fe[_0x548a01(0x1a7)]);return new URLSearchParams(location[_0x548a01(0x1e7)])[_0x548a01(0x1d7)](_0x548a01(0x1b9))?_0xeb8056[_0x548a01(0x1d9)]():_0xeb8056[_0x548a01(0x1b0)](),!0x0;}},_0x30f362={'id':_0x2d8d72(0x1b6),'type':_0x59d24d[_0x2d8d72(0x1c3)][_0x2d8d72(0x19e)],'handler':async _0x1bd01c=>{const _0xaab8ee=_0x2d8d72,_0x1cf5ca=_0x1bd01c['get'](_0x4959fe[_0xaab8ee(0x1a7)]);return new URLSearchParams(location[_0xaab8ee(0x1e7)])[_0xaab8ee(0x1d7)](_0xaab8ee(0x1b9))?_0x1cf5ca[_0xaab8ee(0x1ac)]():_0x1cf5ca[_0xaab8ee(0x19f)](),!0x0;}},_0x17faee='sheets-exchange-client.config',_0x188ae0={},_0x106d65=_0x2d8d72(0x1c0);function _0x287b4f(_0x3ac80a){const _0xca69bb=_0x2d8d72;return{'id':_0x106d65,'type':_0x2dce6d['MenuItemType'][_0xca69bb(0x1a1)],'icon':_0xca69bb(0x1cd),'tooltip':_0xca69bb(0x1b1),'hidden$':_0x2dce6d[_0xca69bb(0x1a2)](_0x3ac80a,_0x59d24d[_0xca69bb(0x1ab)][_0xca69bb(0x1af)]),'disabled$':_0x2dc96[_0xca69bb(0x1cb)](_0x3ac80a,{'workbookTypes':[_0x348022[_0xca69bb(0x1b4)]]})};}function _0x261180(){const _0x16e85e=_0x2d8d72;return{'id':_0xe88795['id'],'type':_0x2dce6d[_0x16e85e(0x1d6)][_0x16e85e(0x1df)],'title':_0x16e85e(0x1c6),'icon':_0x16e85e(0x1e8)};}function _0x5ddfb7(){const _0x46e199=_0x2d8d72;return{'id':_0x30f362['id'],'type':_0x2dce6d[_0x46e199(0x1d6)][_0x46e199(0x1df)],'title':_0x46e199(0x199),'icon':_0x46e199(0x1ae)};}const _0x323aba={[_0x2dce6d[_0x2d8d72(0x1c9)][_0x2d8d72(0x1db)]]:{[_0x106d65]:{'order':0.3,'menuItemFactory':_0x287b4f,[_0xe88795['id']]:{'order':0x0,'menuItemFactory':_0x261180},[_0x30f362['id']]:{'order':0x1,'menuItemFactory':_0x5ddfb7}}}};var _0x1452cb=Object[_0x2d8d72(0x1c1)],_0x3e8ce6=(_0x5d7a7b,_0x3ab632,_0x3e147f,_0x1c9639)=>{const _0x139c21=_0x2d8d72;for(var _0x201453=_0x1c9639>0x1?void 0x0:_0x1c9639?_0x1452cb(_0x3ab632,_0x3e147f):_0x3ab632,_0x332c4f=_0x5d7a7b[_0x139c21(0x1d5)]-0x1,_0x362c37;_0x332c4f>=0x0;_0x332c4f--)(_0x362c37=_0x5d7a7b[_0x332c4f])&&(_0x201453=_0x362c37(_0x201453)||_0x201453);return _0x201453;},_0x232a4f=(_0x278700,_0x30aa77)=>(_0x4a1366,_0x35ef42)=>_0x30aa77(_0x4a1366,_0x35ef42,_0x278700);let _0x17171d=class extends _0x59d24d[_0x2d8d72(0x1c8)]{constructor(_0xafe66a,_0x4ed1cb){const _0xa68fef=_0x2d8d72;super(),this[_0xa68fef(0x1a5)]=_0xafe66a,this[_0xa68fef(0x19c)]=_0x4ed1cb,this['_initCommands'](),this[_0xa68fef(0x1e2)]();}['_initCommands'](){const _0x564cf6=_0x2d8d72;[_0xe88795,_0x30f362][_0x564cf6(0x1ba)](_0x5b8221=>{const _0x431d4d=_0x564cf6;this[_0x431d4d(0x1a0)](this[_0x431d4d(0x1a5)][_0x431d4d(0x1a8)](_0x5b8221));});}[_0x2d8d72(0x1e2)](){const _0x4a17ce=_0x2d8d72;this['_menuManagerService'][_0x4a17ce(0x1dd)](_0x323aba);}};_0x17171d=_0x3e8ce6([_0x232a4f(0x0,_0x59d24d[_0x2d8d72(0x1a3)]),_0x232a4f(0x1,_0x2dce6d[_0x2d8d72(0x1d0)])],_0x17171d);var _0x399975=Object['defineProperty'],_0x13c999=Object['getOwnPropertyDescriptor'],_0x362db6=(_0x156838,_0x3b1ace,_0x3943fa)=>_0x3b1ace in _0x156838?_0x399975(_0x156838,_0x3b1ace,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3943fa}):_0x156838[_0x3b1ace]=_0x3943fa,_0x5a793c=(_0x1234b7,_0x3c50f2,_0x19b709,_0x3c1569)=>{const _0x58ed6b=_0x2d8d72;for(var _0x3d33d3=_0x3c1569>0x1?void 0x0:_0x3c1569?_0x13c999(_0x3c50f2,_0x19b709):_0x3c50f2,_0x175c04=_0x1234b7[_0x58ed6b(0x1d5)]-0x1,_0x3d1ff3;_0x175c04>=0x0;_0x175c04--)(_0x3d1ff3=_0x1234b7[_0x175c04])&&(_0x3d33d3=_0x3d1ff3(_0x3d33d3)||_0x3d33d3);return _0x3d33d3;},_0x386b61=(_0x403c5e,_0x2134e7)=>(_0x25d513,_0x38ee65)=>_0x2134e7(_0x25d513,_0x38ee65,_0x403c5e),_0x5a78d9=(_0x337cbf,_0xe6a47a,_0x2ea67c)=>_0x362db6(_0x337cbf,typeof _0xe6a47a!=_0x2d8d72(0x1c5)?_0xe6a47a+'':_0xe6a47a,_0x2ea67c);const _0x45aaf0='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x1dac04[_0x2d8d72(0x1e4)]=class extends _0x59d24d[_0x2d8d72(0x1b2)]{constructor(_0x54bbe4=_0x188ae0,_0x59cd71,_0x16a231){const _0x4b329c=_0x2d8d72;super(),this[_0x4b329c(0x1e5)]=_0x54bbe4,this[_0x4b329c(0x1c7)]=_0x59cd71,this[_0x4b329c(0x1d4)]=_0x16a231;const {menu:_0x450d84,..._0x3099c3}=_0x59d24d['merge']({},_0x188ae0,this[_0x4b329c(0x1e5)]);_0x450d84&&this[_0x4b329c(0x1d4)]['setConfig'](_0x4b329c(0x1bd),_0x450d84,{'merge':!0x0}),this['_configService'][_0x4b329c(0x1be)](_0x17faee,_0x3099c3);}['onStarting'](){const _0x4993b8=_0x2d8d72;[[_0x17171d]][_0x4993b8(0x1ba)](_0x2ebc13=>this[_0x4993b8(0x1c7)]['add'](_0x2ebc13));}['onReady'](){const _0x9f56e9=_0x2d8d72;this['_injector'][_0x9f56e9(0x1d7)](_0x17171d);}},_0x5a78d9(_0x1dac04[_0x2d8d72(0x1e4)],_0x2d8d72(0x19a),_0x45aaf0),_0x5a78d9(_0x1dac04[_0x2d8d72(0x1e4)],'type',_0x59d24d[_0x2d8d72(0x1ab)][_0x2d8d72(0x1af)]),_0x1dac04['UniverSheetsExchangeClientPlugin']=_0x5a793c([_0x59d24d[_0x2d8d72(0x1d2)](_0x4959fe['UniverExchangeClientPlugin']),_0x386b61(0x1,_0x59d24d['Inject'](_0x59d24d['Injector'])),_0x386b61(0x2,_0x59d24d[_0x2d8d72(0x1bf)])],_0x1dac04[_0x2d8d72(0x1e4)]),_0x1dac04[_0x2d8d72(0x1bb)]=_0x30f362,_0x1dac04[_0x2d8d72(0x1ad)]=_0xe88795,Object[_0x2d8d72(0x1aa)](_0x1dac04,Symbol[_0x2d8d72(0x19d)],{'value':_0x2d8d72(0x1cf)});}));function _0xe2cb(_0x468875,_0x4691ae){const _0x595940=_0x5959();return _0xe2cb=function(_0xe2cb5e,_0x6c342){_0xe2cb5e=_0xe2cb5e-0x199;let _0xaed196=_0x595940[_0xe2cb5e];return _0xaed196;},_0xe2cb(_0x468875,_0x4691ae);}function _0x5959(){const _0x41b1fa=['Plugin','3977534dpQJCF','WorkbookExportPermission','@univerjs/sheets','exchange-client.operation.export-xlsx','@univerjs/sheets-ui','36191tLrRVZ','unit','forEach','ExportXLSXOperation','@univerjs-pro/exchange-client','menu','setConfig','IConfigService','sheets-exchange-client.operation.exchange','getOwnPropertyDescriptor','UniverProExchangeClient','CommandType','function','symbol','exchange.upload','_injector','Disposable','RibbonStartGroup','147iHjaHu','getCurrentRangeDisable$','560358BRCTPT','DirectExportIcon','UniverSheets','Module','IMenuManagerService','2698665RajQCy','DependentOn','exports','_configService','length','MenuItemType','get','UniverCore','importXLSXToUnitId','26632JHDczR','OTHERS','819404WsETeO','mergeMenu','3213522fUXkUF','BUTTON','amd','10tfXYVr','_initMenus','3nBRCYE','UniverSheetsExchangeClientPlugin','_config','object','search','FolderIcon','exchange.download','pluginName','@univerjs/core','_menuManagerService','toStringTag','OPERATION','exportXLSXBySnapshot','disposeWithMe','SUBITEMS','getMenuHiddenObservable','ICommandService','UniverUi','_commandService','6RXekwi','IExchangeOperateService','registerCommand','UniverProSheetsExchangeClient','defineProperty','UniverInstanceType','exportXLSXByUnitId','ImportXLSXOperation','ExportIcon','UNIVER_SHEET','importXLSXToSnapshot','exchange.file'];_0x5959=function(){return _0x41b1fa;};return _0x5959();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.10.12-nightly.202510221114",
3
+ "version": "0.10.12-nightly.202510251119",
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.12-nightly.202510221114",
46
- "@univerjs/sheets": "0.10.12-nightly.202510221114",
47
- "@univerjs/core": "0.10.12-nightly.202510221114",
48
- "@univerjs/ui": "0.10.12-nightly.202510221114",
49
- "@univerjs/sheets-ui": "0.10.12-nightly.202510221114"
45
+ "@univerjs-pro/exchange-client": "0.10.12-nightly.202510251119",
46
+ "@univerjs/sheets-ui": "0.10.12-nightly.202510251119",
47
+ "@univerjs/ui": "0.10.12-nightly.202510251119",
48
+ "@univerjs/core": "0.10.12-nightly.202510251119",
49
+ "@univerjs/sheets": "0.10.12-nightly.202510251119"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",