@univerjs-pro/sheets-exchange-client 0.10.11 → 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 _0x3d9e9d=_0x4e1a;(function(_0x38f031,_0x32ae6a){const _0x1cfd08=_0x4e1a,_0x4d5da9=_0x38f031();while(!![]){try{const _0x54ca67=parseInt(_0x1cfd08(0x1b3))/0x1*(parseInt(_0x1cfd08(0x17a))/0x2)+-parseInt(_0x1cfd08(0x1a0))/0x3+parseInt(_0x1cfd08(0x185))/0x4*(parseInt(_0x1cfd08(0x19e))/0x5)+-parseInt(_0x1cfd08(0x1b0))/0x6*(parseInt(_0x1cfd08(0x19a))/0x7)+-parseInt(_0x1cfd08(0x1af))/0x8+parseInt(_0x1cfd08(0x194))/0x9*(parseInt(_0x1cfd08(0x195))/0xa)+-parseInt(_0x1cfd08(0x1b8))/0xb*(-parseInt(_0x1cfd08(0x1aa))/0xc);if(_0x54ca67===_0x32ae6a)break;else _0x4d5da9['push'](_0x4d5da9['shift']());}catch(_0x27c30e){_0x4d5da9['push'](_0x4d5da9['shift']());}}}(_0x4a9b,0x5128a));function _0x4e1a(_0x145f66,_0x5c915a){const _0x4a9bf0=_0x4a9b();return _0x4e1a=function(_0x4e1a8b,_0x5077db){_0x4e1a8b=_0x4e1a8b-0x177;let _0x38419e=_0x4a9bf0[_0x4e1a8b];return _0x38419e;},_0x4e1a(_0x145f66,_0x5c915a);}Object[_0x3d9e9d(0x1b9)](exports,Symbol['toStringTag'],{'value':_0x3d9e9d(0x188)});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':_0x3d9e9d(0x1b7),'type':i[_0x3d9e9d(0x17c)][_0x3d9e9d(0x189)],'handler':async _0x352462=>{const _0x4e3c45=_0x3d9e9d,_0x297697=_0x352462['get'](g[_0x4e3c45(0x193)]);return new URLSearchParams(location['search'])[_0x4e3c45(0x1b1)](_0x4e3c45(0x198))?_0x297697[_0x4e3c45(0x192)]():_0x297697[_0x4e3c45(0x180)](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i[_0x3d9e9d(0x17c)]['OPERATION'],'handler':async _0x1c974a=>{const _0x2ff2f6=_0x3d9e9d,_0x472423=_0x1c974a[_0x2ff2f6(0x1b1)](g[_0x2ff2f6(0x193)]);return new URLSearchParams(location[_0x2ff2f6(0x177)])[_0x2ff2f6(0x1b1)](_0x2ff2f6(0x198))?_0x472423[_0x2ff2f6(0x17e)]():_0x472423[_0x2ff2f6(0x1a4)](),!0x0;}},v='sheets-exchange-client.config',h={},S=_0x3d9e9d(0x18e);function x(_0x56d07f){const _0x4ae735=_0x3d9e9d;return{'id':S,'type':c['MenuItemType']['SUBITEMS'],'icon':'DirectExportIcon','tooltip':_0x4ae735(0x191),'hidden$':c[_0x4ae735(0x196)](_0x56d07f,i[_0x4ae735(0x1ac)][_0x4ae735(0x1b6)]),'disabled$':I[_0x4ae735(0x18a)](_0x56d07f,{'workbookTypes':[_[_0x4ae735(0x18c)]]})};}function P(){const _0x5bd682=_0x3d9e9d;return{'id':l['id'],'type':c[_0x5bd682(0x1a2)]['BUTTON'],'title':_0x5bd682(0x183),'icon':'FolderIcon'};}function C(){const _0x26f0ed=_0x3d9e9d;return{'id':p['id'],'type':c['MenuItemType'][_0x26f0ed(0x1a6)],'title':_0x26f0ed(0x1b2),'icon':_0x26f0ed(0x18f)};}function _0x4a9b(){const _0x505d78=['Injector','sheets-exchange-client.operation.exchange','ExportIcon','ImportXLSXOperation','exchange.file','importXLSXToUnitId','IExchangeOperateService','2090637BZmNbm','20kmPjxD','getMenuHiddenObservable','type','unit','UniverSheetsExchangeClientPlugin','307657oxpFAH','ExportXLSXOperation','menu','SHEET_EXCHANGE_CLIENT_PLUGIN','553805IqIVLr','_menuManagerService','1831521mxuZCv','OTHERS','MenuItemType','setConfig','exportXLSXBySnapshot','onReady','BUTTON','_configService','_initMenus','Plugin','24WrVqtk','_initCommands','UniverInstanceType','onStarting','RibbonStartGroup','1422728aJGkFQ','78XberwO','get','exchange.download','652rwdSSh','getOwnPropertyDescriptor','merge','UNIVER_SHEET','exchange-client.operation.import-xlsx','1019689betgfw','defineProperty','length','registerCommand','search','pluginName','mergeMenu','1498blbJOX','_commandService','CommandType','ICommandService','exportXLSXByUnitId','symbol','importXLSXToSnapshot','_injector','_config','exchange.upload','add','20igkuMB','disposeWithMe','UniverExchangeClientPlugin','Module','OPERATION','getCurrentRangeDisable$','DependentOn','WorkbookExportPermission'];_0x4a9b=function(){return _0x505d78;};return _0x4a9b();}const f={[c[_0x3d9e9d(0x1ae)][_0x3d9e9d(0x1a1)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x3d9e9d(0x1b4)],y=(_0x46bb03,_0x4a6b13,_0x4d67f0,_0xe9054a)=>{const _0x574345=_0x3d9e9d;for(var _0x26107b=_0xe9054a>0x1?void 0x0:_0xe9054a?T(_0x4a6b13,_0x4d67f0):_0x4a6b13,_0x2ccdb2=_0x46bb03[_0x574345(0x1ba)]-0x1,_0x436e13;_0x2ccdb2>=0x0;_0x2ccdb2--)(_0x436e13=_0x46bb03[_0x2ccdb2])&&(_0x26107b=_0x436e13(_0x26107b)||_0x26107b);return _0x26107b;},m=(_0x2ffda2,_0x274de7)=>(_0x40d4d2,_0x49c403)=>_0x274de7(_0x40d4d2,_0x49c403,_0x2ffda2);let u=class extends i['Disposable']{constructor(_0x2903c2,_0x2fcdb9){const _0x5c385d=_0x3d9e9d;super(),this[_0x5c385d(0x17b)]=_0x2903c2,this['_menuManagerService']=_0x2fcdb9,this[_0x5c385d(0x1ab)](),this[_0x5c385d(0x1a8)]();}[_0x3d9e9d(0x1ab)](){[l,p]['forEach'](_0x5d9e88=>{const _0x49961a=_0x4e1a;this[_0x49961a(0x186)](this['_commandService'][_0x49961a(0x1bb)](_0x5d9e88));});}['_initMenus'](){const _0x56ed0c=_0x3d9e9d;this[_0x56ed0c(0x19f)][_0x56ed0c(0x179)](f);}};u=y([m(0x0,i[_0x3d9e9d(0x17d)]),m(0x1,c['IMenuManagerService'])],u);var O=Object[_0x3d9e9d(0x1b9)],U=Object[_0x3d9e9d(0x1b4)],X=(_0x1e3916,_0xc551d1,_0xfcbe2c)=>_0xc551d1 in _0x1e3916?O(_0x1e3916,_0xc551d1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xfcbe2c}):_0x1e3916[_0xc551d1]=_0xfcbe2c,N=(_0x2f8967,_0x5a8d8e,_0x4aea26,_0x86af47)=>{const _0x52430a=_0x3d9e9d;for(var _0x2428d9=_0x86af47>0x1?void 0x0:_0x86af47?U(_0x5a8d8e,_0x4aea26):_0x5a8d8e,_0x342d40=_0x2f8967[_0x52430a(0x1ba)]-0x1,_0x33fd31;_0x342d40>=0x0;_0x342d40--)(_0x33fd31=_0x2f8967[_0x342d40])&&(_0x2428d9=_0x33fd31(_0x2428d9)||_0x2428d9);return _0x2428d9;},d=(_0x38883d,_0x2f7fdb)=>(_0x42d792,_0x22bfd0)=>_0x2f7fdb(_0x42d792,_0x22bfd0,_0x38883d),E=(_0x420247,_0x1b4ee8,_0x3fbdad)=>X(_0x420247,typeof _0x1b4ee8!=_0x3d9e9d(0x17f)?_0x1b4ee8+'':_0x1b4ee8,_0x3fbdad);const L=_0x3d9e9d(0x19d);exports[_0x3d9e9d(0x199)]=class extends i[_0x3d9e9d(0x1a9)]{constructor(_0x542a29=h,_0x3579f1,_0x465885){const _0xa6520f=_0x3d9e9d;super(),this['_config']=_0x542a29,this[_0xa6520f(0x181)]=_0x3579f1,this[_0xa6520f(0x1a7)]=_0x465885;const {menu:_0x1f889f,..._0x476104}=i[_0xa6520f(0x1b5)]({},h,this[_0xa6520f(0x182)]);_0x1f889f&&this[_0xa6520f(0x1a7)]['setConfig'](_0xa6520f(0x19c),_0x1f889f,{'merge':!0x0}),this[_0xa6520f(0x1a7)][_0xa6520f(0x1a3)](v,_0x476104);}[_0x3d9e9d(0x1ad)](){const _0x2a81b2=_0x3d9e9d;[[u]]['forEach'](_0x44b80d=>this[_0x2a81b2(0x181)][_0x2a81b2(0x184)](_0x44b80d));}[_0x3d9e9d(0x1a5)](){const _0x173e26=_0x3d9e9d;this['_injector'][_0x173e26(0x1b1)](u);}},E(exports[_0x3d9e9d(0x199)],_0x3d9e9d(0x178),L),E(exports[_0x3d9e9d(0x199)],_0x3d9e9d(0x197),i['UniverInstanceType'][_0x3d9e9d(0x1b6)]),exports['UniverSheetsExchangeClientPlugin']=N([i[_0x3d9e9d(0x18b)](g[_0x3d9e9d(0x187)]),d(0x1,i['Inject'](i[_0x3d9e9d(0x18d)])),d(0x2,i['IConfigService'])],exports[_0x3d9e9d(0x199)]),exports[_0x3d9e9d(0x19b)]=p,exports[_0x3d9e9d(0x190)]=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 _0x4f2936=_0x5e9a;(function(_0x5a0bd1,_0x4f2856){const _0x2ea174=_0x5e9a,_0x6fd07f=_0x5a0bd1();while(!![]){try{const _0x28507a=parseInt(_0x2ea174(0x18c))/0x1*(parseInt(_0x2ea174(0x176))/0x2)+parseInt(_0x2ea174(0x185))/0x3*(parseInt(_0x2ea174(0x166))/0x4)+-parseInt(_0x2ea174(0x17c))/0x5+parseInt(_0x2ea174(0x16c))/0x6+parseInt(_0x2ea174(0x195))/0x7*(parseInt(_0x2ea174(0x16a))/0x8)+-parseInt(_0x2ea174(0x17d))/0x9*(-parseInt(_0x2ea174(0x186))/0xa)+-parseInt(_0x2ea174(0x18a))/0xb*(parseInt(_0x2ea174(0x16d))/0xc);if(_0x28507a===_0x4f2856)break;else _0x6fd07f['push'](_0x6fd07f['shift']());}catch(_0x17e268){_0x6fd07f['push'](_0x6fd07f['shift']());}}}(_0x1b15,0x98abf));import{IExchangeOperateService as _0x30505c,UniverExchangeClientPlugin as _0x2665bf}from'@univerjs-pro/exchange-client';import{CommandType as _0x187810,UniverInstanceType as _0xc17854,Disposable as _0x3fade7,ICommandService as _0xebdc0,DependentOn as _0x556327,Inject as _0x3de847,Injector as _0x385e24,IConfigService as _0x3c77d5,Plugin as _0x357be5,merge as _0x32da24}from'@univerjs/core';import{MenuItemType as _0x4ed9a8,getMenuHiddenObservable as _0x18cb73,RibbonStartGroup as _0x57817e,IMenuManagerService as _0x440719}from'@univerjs/ui';import{WorkbookExportPermission as _0x586383}from'@univerjs/sheets';function _0x5e9a(_0x4ff703,_0x5b3b54){const _0x1b157a=_0x1b15();return _0x5e9a=function(_0x5e9a02,_0xbd17ac){_0x5e9a02=_0x5e9a02-0x163;let _0x3f5fc0=_0x1b157a[_0x5e9a02];return _0x3f5fc0;},_0x5e9a(_0x4ff703,_0x5b3b54);}import{getCurrentRangeDisable$ as _0x2a30cb}from'@univerjs/sheets-ui';const p={'id':_0x4f2936(0x164),'type':_0x187810[_0x4f2936(0x190)],'handler':async _0x4e9041=>{const _0x186d6b=_0x4f2936,_0x1bd251=_0x4e9041[_0x186d6b(0x173)](_0x30505c);return new URLSearchParams(location[_0x186d6b(0x17f)])['get']('unit')?_0x1bd251[_0x186d6b(0x17e)]():_0x1bd251['importXLSXToSnapshot'](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x187810[_0x4f2936(0x190)],'handler':async _0x183297=>{const _0x4ed676=_0x4f2936,_0x370592=_0x183297[_0x4ed676(0x173)](_0x30505c);return new URLSearchParams(location[_0x4ed676(0x17f)])[_0x4ed676(0x173)](_0x4ed676(0x169))?_0x370592[_0x4ed676(0x191)]():_0x370592[_0x4ed676(0x182)](),!0x0;}},H=_0x4f2936(0x18e),l={},S=_0x4f2936(0x17b);function R(_0x19fdc0){const _0x2d6ebd=_0x4f2936;return{'id':S,'type':_0x4ed9a8[_0x2d6ebd(0x165)],'icon':_0x2d6ebd(0x17a),'tooltip':_0x2d6ebd(0x192),'hidden$':_0x18cb73(_0x19fdc0,_0xc17854[_0x2d6ebd(0x16e)]),'disabled$':_0x2a30cb(_0x19fdc0,{'workbookTypes':[_0x586383]})};}function w(){const _0x120ec8=_0x4f2936;return{'id':p['id'],'type':_0x4ed9a8[_0x120ec8(0x16b)],'title':_0x120ec8(0x174),'icon':_0x120ec8(0x163)};}function D(){const _0x33bee3=_0x4f2936;return{'id':u['id'],'type':_0x4ed9a8[_0x33bee3(0x16b)],'title':_0x33bee3(0x194),'icon':_0x33bee3(0x18f)};}function _0x1b15(){const _0x59eff3=['24frSkNk','UNIVER_SHEET','onStarting','_injector','_config','_initCommands','get','exchange.upload','forEach','44ulCwSS','_configService','_commandService','defineProperty','DirectExportIcon','sheets-exchange-client.operation.exchange','2987930WMpQBW','1018431gPcvZw','importXLSXToUnitId','search','symbol','type','exportXLSXBySnapshot','OTHERS','SHEET_EXCHANGE_CLIENT_PLUGIN','9819jzkpyO','40LuftIq','onReady','_initMenus','length','9283637cUUJIZ','setConfig','6378VEIgZw','getOwnPropertyDescriptor','sheets-exchange-client.config','ExportIcon','OPERATION','exportXLSXByUnitId','exchange.file','pluginName','exchange.download','14dnSIPG','FolderIcon','exchange-client.operation.import-xlsx','SUBITEMS','764UjTKMO','_menuManagerService','menu','unit','3857992LJKzRm','BUTTON','4369620DLhFIw'];_0x1b15=function(){return _0x59eff3;};return _0x1b15();}const F={[_0x57817e[_0x4f2936(0x183)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x4f2936(0x18d)],A=(_0x1d12c3,_0xdee33d,_0x3be66c,_0x3883a5)=>{const _0xc03b4=_0x4f2936;for(var _0x2a53ce=_0x3883a5>0x1?void 0x0:_0x3883a5?G(_0xdee33d,_0x3be66c):_0xdee33d,_0x209524=_0x1d12c3[_0xc03b4(0x189)]-0x1,_0x208784;_0x209524>=0x0;_0x209524--)(_0x208784=_0x1d12c3[_0x209524])&&(_0x2a53ce=_0x208784(_0x2a53ce)||_0x2a53ce);return _0x2a53ce;},d=(_0x353d54,_0x164bcc)=>(_0xad147d,_0x12ce57)=>_0x164bcc(_0xad147d,_0x12ce57,_0x353d54);let c=class extends _0x3fade7{constructor(_0x3c6d54,_0xc1c1f8){const _0x15cbaf=_0x4f2936;super(),this[_0x15cbaf(0x178)]=_0x3c6d54,this[_0x15cbaf(0x167)]=_0xc1c1f8,this['_initCommands'](),this[_0x15cbaf(0x188)]();}[_0x4f2936(0x172)](){[p,u]['forEach'](_0x20e2b0=>{this['disposeWithMe'](this['_commandService']['registerCommand'](_0x20e2b0));});}['_initMenus'](){this['_menuManagerService']['mergeMenu'](F);}};c=A([d(0x0,_0xebdc0),d(0x1,_0x440719)],c);var j=Object[_0x4f2936(0x179)],B=Object[_0x4f2936(0x18d)],$=(_0x25589c,_0x38430b,_0x1b4ea0)=>_0x38430b in _0x25589c?j(_0x25589c,_0x38430b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b4ea0}):_0x25589c[_0x38430b]=_0x1b4ea0,V=(_0x267a6e,_0x94b663,_0x521271,_0x2847e6)=>{const _0x37a23e=_0x4f2936;for(var _0x665a21=_0x2847e6>0x1?void 0x0:_0x2847e6?B(_0x94b663,_0x521271):_0x94b663,_0x31c0d5=_0x267a6e[_0x37a23e(0x189)]-0x1,_0x4008e4;_0x31c0d5>=0x0;_0x31c0d5--)(_0x4008e4=_0x267a6e[_0x31c0d5])&&(_0x665a21=_0x4008e4(_0x665a21)||_0x665a21);return _0x665a21;},_=(_0x44d8a1,_0xcc06dd)=>(_0x2ef281,_0x868a44)=>_0xcc06dd(_0x2ef281,_0x868a44,_0x44d8a1),I=(_0x14a879,_0x13ce19,_0x404039)=>$(_0x14a879,typeof _0x13ce19!=_0x4f2936(0x180)?_0x13ce19+'':_0x13ce19,_0x404039);const W=_0x4f2936(0x184);let s=class extends _0x357be5{constructor(_0x1a9f71=l,_0x9b0d8e,_0x2a67f5){const _0x3798a7=_0x4f2936;super(),this['_config']=_0x1a9f71,this[_0x3798a7(0x170)]=_0x9b0d8e,this['_configService']=_0x2a67f5;const {menu:_0x37d355,..._0x591270}=_0x32da24({},l,this[_0x3798a7(0x171)]);_0x37d355&&this['_configService'][_0x3798a7(0x18b)](_0x3798a7(0x168),_0x37d355,{'merge':!0x0}),this[_0x3798a7(0x177)][_0x3798a7(0x18b)](H,_0x591270);}[_0x4f2936(0x16f)](){const _0x3346a4=_0x4f2936;[[c]][_0x3346a4(0x175)](_0x43a9dc=>this['_injector']['add'](_0x43a9dc));}[_0x4f2936(0x187)](){const _0xbac4ef=_0x4f2936;this['_injector'][_0xbac4ef(0x173)](c);}};I(s,_0x4f2936(0x193),W),I(s,_0x4f2936(0x181),_0xc17854['UNIVER_SHEET']),s=V([_0x556327(_0x2665bf),_(0x1,_0x3de847(_0x385e24)),_(0x2,_0x3c77d5)],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 _0x4f2936=_0x5e9a;(function(_0x5a0bd1,_0x4f2856){const _0x2ea174=_0x5e9a,_0x6fd07f=_0x5a0bd1();while(!![]){try{const _0x28507a=parseInt(_0x2ea174(0x18c))/0x1*(parseInt(_0x2ea174(0x176))/0x2)+parseInt(_0x2ea174(0x185))/0x3*(parseInt(_0x2ea174(0x166))/0x4)+-parseInt(_0x2ea174(0x17c))/0x5+parseInt(_0x2ea174(0x16c))/0x6+parseInt(_0x2ea174(0x195))/0x7*(parseInt(_0x2ea174(0x16a))/0x8)+-parseInt(_0x2ea174(0x17d))/0x9*(-parseInt(_0x2ea174(0x186))/0xa)+-parseInt(_0x2ea174(0x18a))/0xb*(parseInt(_0x2ea174(0x16d))/0xc);if(_0x28507a===_0x4f2856)break;else _0x6fd07f['push'](_0x6fd07f['shift']());}catch(_0x17e268){_0x6fd07f['push'](_0x6fd07f['shift']());}}}(_0x1b15,0x98abf));import{IExchangeOperateService as _0x30505c,UniverExchangeClientPlugin as _0x2665bf}from'@univerjs-pro/exchange-client';import{CommandType as _0x187810,UniverInstanceType as _0xc17854,Disposable as _0x3fade7,ICommandService as _0xebdc0,DependentOn as _0x556327,Inject as _0x3de847,Injector as _0x385e24,IConfigService as _0x3c77d5,Plugin as _0x357be5,merge as _0x32da24}from'@univerjs/core';import{MenuItemType as _0x4ed9a8,getMenuHiddenObservable as _0x18cb73,RibbonStartGroup as _0x57817e,IMenuManagerService as _0x440719}from'@univerjs/ui';import{WorkbookExportPermission as _0x586383}from'@univerjs/sheets';function _0x5e9a(_0x4ff703,_0x5b3b54){const _0x1b157a=_0x1b15();return _0x5e9a=function(_0x5e9a02,_0xbd17ac){_0x5e9a02=_0x5e9a02-0x163;let _0x3f5fc0=_0x1b157a[_0x5e9a02];return _0x3f5fc0;},_0x5e9a(_0x4ff703,_0x5b3b54);}import{getCurrentRangeDisable$ as _0x2a30cb}from'@univerjs/sheets-ui';const p={'id':_0x4f2936(0x164),'type':_0x187810[_0x4f2936(0x190)],'handler':async _0x4e9041=>{const _0x186d6b=_0x4f2936,_0x1bd251=_0x4e9041[_0x186d6b(0x173)](_0x30505c);return new URLSearchParams(location[_0x186d6b(0x17f)])['get']('unit')?_0x1bd251[_0x186d6b(0x17e)]():_0x1bd251['importXLSXToSnapshot'](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x187810[_0x4f2936(0x190)],'handler':async _0x183297=>{const _0x4ed676=_0x4f2936,_0x370592=_0x183297[_0x4ed676(0x173)](_0x30505c);return new URLSearchParams(location[_0x4ed676(0x17f)])[_0x4ed676(0x173)](_0x4ed676(0x169))?_0x370592[_0x4ed676(0x191)]():_0x370592[_0x4ed676(0x182)](),!0x0;}},H=_0x4f2936(0x18e),l={},S=_0x4f2936(0x17b);function R(_0x19fdc0){const _0x2d6ebd=_0x4f2936;return{'id':S,'type':_0x4ed9a8[_0x2d6ebd(0x165)],'icon':_0x2d6ebd(0x17a),'tooltip':_0x2d6ebd(0x192),'hidden$':_0x18cb73(_0x19fdc0,_0xc17854[_0x2d6ebd(0x16e)]),'disabled$':_0x2a30cb(_0x19fdc0,{'workbookTypes':[_0x586383]})};}function w(){const _0x120ec8=_0x4f2936;return{'id':p['id'],'type':_0x4ed9a8[_0x120ec8(0x16b)],'title':_0x120ec8(0x174),'icon':_0x120ec8(0x163)};}function D(){const _0x33bee3=_0x4f2936;return{'id':u['id'],'type':_0x4ed9a8[_0x33bee3(0x16b)],'title':_0x33bee3(0x194),'icon':_0x33bee3(0x18f)};}function _0x1b15(){const _0x59eff3=['24frSkNk','UNIVER_SHEET','onStarting','_injector','_config','_initCommands','get','exchange.upload','forEach','44ulCwSS','_configService','_commandService','defineProperty','DirectExportIcon','sheets-exchange-client.operation.exchange','2987930WMpQBW','1018431gPcvZw','importXLSXToUnitId','search','symbol','type','exportXLSXBySnapshot','OTHERS','SHEET_EXCHANGE_CLIENT_PLUGIN','9819jzkpyO','40LuftIq','onReady','_initMenus','length','9283637cUUJIZ','setConfig','6378VEIgZw','getOwnPropertyDescriptor','sheets-exchange-client.config','ExportIcon','OPERATION','exportXLSXByUnitId','exchange.file','pluginName','exchange.download','14dnSIPG','FolderIcon','exchange-client.operation.import-xlsx','SUBITEMS','764UjTKMO','_menuManagerService','menu','unit','3857992LJKzRm','BUTTON','4369620DLhFIw'];_0x1b15=function(){return _0x59eff3;};return _0x1b15();}const F={[_0x57817e[_0x4f2936(0x183)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x4f2936(0x18d)],A=(_0x1d12c3,_0xdee33d,_0x3be66c,_0x3883a5)=>{const _0xc03b4=_0x4f2936;for(var _0x2a53ce=_0x3883a5>0x1?void 0x0:_0x3883a5?G(_0xdee33d,_0x3be66c):_0xdee33d,_0x209524=_0x1d12c3[_0xc03b4(0x189)]-0x1,_0x208784;_0x209524>=0x0;_0x209524--)(_0x208784=_0x1d12c3[_0x209524])&&(_0x2a53ce=_0x208784(_0x2a53ce)||_0x2a53ce);return _0x2a53ce;},d=(_0x353d54,_0x164bcc)=>(_0xad147d,_0x12ce57)=>_0x164bcc(_0xad147d,_0x12ce57,_0x353d54);let c=class extends _0x3fade7{constructor(_0x3c6d54,_0xc1c1f8){const _0x15cbaf=_0x4f2936;super(),this[_0x15cbaf(0x178)]=_0x3c6d54,this[_0x15cbaf(0x167)]=_0xc1c1f8,this['_initCommands'](),this[_0x15cbaf(0x188)]();}[_0x4f2936(0x172)](){[p,u]['forEach'](_0x20e2b0=>{this['disposeWithMe'](this['_commandService']['registerCommand'](_0x20e2b0));});}['_initMenus'](){this['_menuManagerService']['mergeMenu'](F);}};c=A([d(0x0,_0xebdc0),d(0x1,_0x440719)],c);var j=Object[_0x4f2936(0x179)],B=Object[_0x4f2936(0x18d)],$=(_0x25589c,_0x38430b,_0x1b4ea0)=>_0x38430b in _0x25589c?j(_0x25589c,_0x38430b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b4ea0}):_0x25589c[_0x38430b]=_0x1b4ea0,V=(_0x267a6e,_0x94b663,_0x521271,_0x2847e6)=>{const _0x37a23e=_0x4f2936;for(var _0x665a21=_0x2847e6>0x1?void 0x0:_0x2847e6?B(_0x94b663,_0x521271):_0x94b663,_0x31c0d5=_0x267a6e[_0x37a23e(0x189)]-0x1,_0x4008e4;_0x31c0d5>=0x0;_0x31c0d5--)(_0x4008e4=_0x267a6e[_0x31c0d5])&&(_0x665a21=_0x4008e4(_0x665a21)||_0x665a21);return _0x665a21;},_=(_0x44d8a1,_0xcc06dd)=>(_0x2ef281,_0x868a44)=>_0xcc06dd(_0x2ef281,_0x868a44,_0x44d8a1),I=(_0x14a879,_0x13ce19,_0x404039)=>$(_0x14a879,typeof _0x13ce19!=_0x4f2936(0x180)?_0x13ce19+'':_0x13ce19,_0x404039);const W=_0x4f2936(0x184);let s=class extends _0x357be5{constructor(_0x1a9f71=l,_0x9b0d8e,_0x2a67f5){const _0x3798a7=_0x4f2936;super(),this['_config']=_0x1a9f71,this[_0x3798a7(0x170)]=_0x9b0d8e,this['_configService']=_0x2a67f5;const {menu:_0x37d355,..._0x591270}=_0x32da24({},l,this[_0x3798a7(0x171)]);_0x37d355&&this['_configService'][_0x3798a7(0x18b)](_0x3798a7(0x168),_0x37d355,{'merge':!0x0}),this[_0x3798a7(0x177)][_0x3798a7(0x18b)](H,_0x591270);}[_0x4f2936(0x16f)](){const _0x3346a4=_0x4f2936;[[c]][_0x3346a4(0x175)](_0x43a9dc=>this['_injector']['add'](_0x43a9dc));}[_0x4f2936(0x187)](){const _0xbac4ef=_0x4f2936;this['_injector'][_0xbac4ef(0x173)](c);}};I(s,_0x4f2936(0x193),W),I(s,_0x4f2936(0x181),_0xc17854['UNIVER_SHEET']),s=V([_0x556327(_0x2665bf),_(0x1,_0x3de847(_0x385e24)),_(0x2,_0x3c77d5)],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 _0x40c4(){const _0x55451b=['sheets-exchange-client.operation.exchange','exports','6311525weeuEB','@univerjs/ui','object','4607057PScbZW','UniverSheetsUi','registerCommand','_menuManagerService','_configService','WorkbookExportPermission','ExportXLSXOperation','UniverUi','6866884uaCeCj','search','exchange.upload','UniverExchangeClientPlugin','IConfigService','Inject','3GnkXzg','UNIVER_SHEET','merge','_commandService','OTHERS','CommandType','@univerjs-pro/exchange-client','defineProperty','25890248ZJkxPt','_initCommands','exchange-client.operation.export-xlsx','Module','SUBITEMS','UniverCore','SHEET_EXCHANGE_CLIENT_PLUGIN','exportXLSXByUnitId','_initMenus','get','type','_injector','@univerjs/sheets-ui','989844YOjejv','UniverSheetsExchangeClientPlugin','1655902FBWCKK','length','DependentOn','ExportIcon','disposeWithMe','importXLSXToSnapshot','MenuItemType','UniverProExchangeClient','sheets-exchange-client.config','IExchangeOperateService','UniverSheets','396416iRbssD','getOwnPropertyDescriptor','_config','9QyACJS','Disposable','UniverInstanceType','FolderIcon','onStarting','exportXLSXBySnapshot','BUTTON','onReady','function','@univerjs/core','importXLSXToUnitId','forEach','Injector','getMenuHiddenObservable','unit','OPERATION'];_0x40c4=function(){return _0x55451b;};return _0x40c4();}function _0x462b(_0x5ab6a1,_0x25ada1){const _0x40c40e=_0x40c4();return _0x462b=function(_0x462b52,_0x3f03e5){_0x462b52=_0x462b52-0x122;let _0x213955=_0x40c40e[_0x462b52];return _0x213955;},_0x462b(_0x5ab6a1,_0x25ada1);}(function(_0x5436f7,_0x765473){const _0x3c43de=_0x462b,_0x4f58dc=_0x5436f7();while(!![]){try{const _0x26fec6=-parseInt(_0x3c43de(0x153))/0x1+parseInt(_0x3c43de(0x148))/0x2+-parseInt(_0x3c43de(0x131))/0x3*(-parseInt(_0x3c43de(0x12b))/0x4)+parseInt(_0x3c43de(0x168))/0x5+parseInt(_0x3c43de(0x146))/0x6+parseInt(_0x3c43de(0x123))/0x7+parseInt(_0x3c43de(0x139))/0x8*(-parseInt(_0x3c43de(0x156))/0x9);if(_0x26fec6===_0x765473)break;else _0x4f58dc['push'](_0x4f58dc['shift']());}catch(_0x25e775){_0x4f58dc['push'](_0x4f58dc['shift']());}}}(_0x40c4,0xf381d),function(_0x1ff542,_0x4b2622){const _0x490207=_0x462b;typeof exports==_0x490207(0x122)&&typeof module<'u'?_0x4b2622(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x490207(0x15e)&&define['amd']?define([_0x490207(0x167),_0x490207(0x137),_0x490207(0x15f),_0x490207(0x169),'@univerjs/sheets',_0x490207(0x145)],_0x4b2622):(_0x1ff542=typeof globalThis<'u'?globalThis:_0x1ff542||self,_0x4b2622(_0x1ff542['UniverProSheetsExchangeClient']={},_0x1ff542[_0x490207(0x14f)],_0x1ff542[_0x490207(0x13e)],_0x1ff542[_0x490207(0x12a)],_0x1ff542[_0x490207(0x152)],_0x1ff542[_0x490207(0x124)]));}(this,function(_0x4eb858,_0x42c18f,_0x442890,_0x5a5beb,_0x1c9dbc,_0x533abc){'use strict';const _0x3be7fe=_0x462b;const _0x256840={'id':'exchange-client.operation.import-xlsx','type':_0x442890[_0x3be7fe(0x136)][_0x3be7fe(0x165)],'handler':async _0x41491d=>{const _0x21897d=_0x3be7fe,_0x233e9f=_0x41491d[_0x21897d(0x142)](_0x42c18f[_0x21897d(0x151)]);return new URLSearchParams(location[_0x21897d(0x12c)])[_0x21897d(0x142)](_0x21897d(0x164))?_0x233e9f[_0x21897d(0x160)]():_0x233e9f[_0x21897d(0x14d)](),!0x0;}},_0x462a0f={'id':_0x3be7fe(0x13b),'type':_0x442890[_0x3be7fe(0x136)]['OPERATION'],'handler':async _0x31c13f=>{const _0x260c1f=_0x3be7fe,_0x5b6de3=_0x31c13f[_0x260c1f(0x142)](_0x42c18f[_0x260c1f(0x151)]);return new URLSearchParams(location[_0x260c1f(0x12c)])['get'](_0x260c1f(0x164))?_0x5b6de3[_0x260c1f(0x140)]():_0x5b6de3[_0x260c1f(0x15b)](),!0x0;}},_0x2cfc6c=_0x3be7fe(0x150),_0x3067fd={},_0x181e1d=_0x3be7fe(0x166);function _0x15539b(_0x4fb82c){const _0xd8cb9c=_0x3be7fe;return{'id':_0x181e1d,'type':_0x5a5beb[_0xd8cb9c(0x14e)][_0xd8cb9c(0x13d)],'icon':'DirectExportIcon','tooltip':'exchange.file','hidden$':_0x5a5beb[_0xd8cb9c(0x163)](_0x4fb82c,_0x442890[_0xd8cb9c(0x158)][_0xd8cb9c(0x132)]),'disabled$':_0x533abc['getCurrentRangeDisable$'](_0x4fb82c,{'workbookTypes':[_0x1c9dbc[_0xd8cb9c(0x128)]]})};}function _0x52cf5c(){const _0x5acf2e=_0x3be7fe;return{'id':_0x256840['id'],'type':_0x5a5beb[_0x5acf2e(0x14e)][_0x5acf2e(0x15c)],'title':_0x5acf2e(0x12d),'icon':_0x5acf2e(0x159)};}function _0x2c9b12(){const _0x3a9f9e=_0x3be7fe;return{'id':_0x462a0f['id'],'type':_0x5a5beb['MenuItemType']['BUTTON'],'title':'exchange.download','icon':_0x3a9f9e(0x14b)};}const _0x393698={[_0x5a5beb['RibbonStartGroup'][_0x3be7fe(0x135)]]:{[_0x181e1d]:{'order':0.3,'menuItemFactory':_0x15539b,[_0x256840['id']]:{'order':0x0,'menuItemFactory':_0x52cf5c},[_0x462a0f['id']]:{'order':0x1,'menuItemFactory':_0x2c9b12}}}};var _0x256961=Object[_0x3be7fe(0x154)],_0x19c256=(_0x543a99,_0x59b827,_0x49c876,_0x20e13c)=>{for(var _0xe2bec8=_0x20e13c>0x1?void 0x0:_0x20e13c?_0x256961(_0x59b827,_0x49c876):_0x59b827,_0x2e310f=_0x543a99['length']-0x1,_0x42487a;_0x2e310f>=0x0;_0x2e310f--)(_0x42487a=_0x543a99[_0x2e310f])&&(_0xe2bec8=_0x42487a(_0xe2bec8)||_0xe2bec8);return _0xe2bec8;},_0x283f70=(_0x55af1a,_0x22ba34)=>(_0x5c38d1,_0x21829a)=>_0x22ba34(_0x5c38d1,_0x21829a,_0x55af1a);let _0x1e7aef=class extends _0x442890[_0x3be7fe(0x157)]{constructor(_0x567716,_0x5ca519){const _0x95a17=_0x3be7fe;super(),this[_0x95a17(0x134)]=_0x567716,this[_0x95a17(0x126)]=_0x5ca519,this[_0x95a17(0x13a)](),this['_initMenus']();}['_initCommands'](){const _0x237b58=_0x3be7fe;[_0x256840,_0x462a0f][_0x237b58(0x161)](_0x393ff0=>{const _0x3e0541=_0x237b58;this[_0x3e0541(0x14c)](this['_commandService'][_0x3e0541(0x125)](_0x393ff0));});}[_0x3be7fe(0x141)](){this['_menuManagerService']['mergeMenu'](_0x393698);}};_0x1e7aef=_0x19c256([_0x283f70(0x0,_0x442890['ICommandService']),_0x283f70(0x1,_0x5a5beb['IMenuManagerService'])],_0x1e7aef);var _0x350e14=Object['defineProperty'],_0x13f781=Object['getOwnPropertyDescriptor'],_0x38aff7=(_0x1b663e,_0x43b99d,_0x4d004d)=>_0x43b99d in _0x1b663e?_0x350e14(_0x1b663e,_0x43b99d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4d004d}):_0x1b663e[_0x43b99d]=_0x4d004d,_0x39ced9=(_0x13030c,_0x18f277,_0x216212,_0x414bc9)=>{const _0x3cb3a8=_0x3be7fe;for(var _0xe9f48e=_0x414bc9>0x1?void 0x0:_0x414bc9?_0x13f781(_0x18f277,_0x216212):_0x18f277,_0x2a8b61=_0x13030c[_0x3cb3a8(0x149)]-0x1,_0x7fc7af;_0x2a8b61>=0x0;_0x2a8b61--)(_0x7fc7af=_0x13030c[_0x2a8b61])&&(_0xe9f48e=_0x7fc7af(_0xe9f48e)||_0xe9f48e);return _0xe9f48e;},_0x5e096b=(_0x32a82f,_0x45ea4a)=>(_0x643dcb,_0x262477)=>_0x45ea4a(_0x643dcb,_0x262477,_0x32a82f),_0x5f3ddd=(_0x23c771,_0x1a9f65,_0x3751a7)=>_0x38aff7(_0x23c771,typeof _0x1a9f65!='symbol'?_0x1a9f65+'':_0x1a9f65,_0x3751a7);const _0x110830=_0x3be7fe(0x13f);_0x4eb858[_0x3be7fe(0x147)]=class extends _0x442890['Plugin']{constructor(_0x45f446=_0x3067fd,_0x42a818,_0x3cf4f4){const _0x162bd4=_0x3be7fe;super(),this[_0x162bd4(0x155)]=_0x45f446,this[_0x162bd4(0x144)]=_0x42a818,this[_0x162bd4(0x127)]=_0x3cf4f4;const {menu:_0x29c9a8,..._0x439edd}=_0x442890[_0x162bd4(0x133)]({},_0x3067fd,this[_0x162bd4(0x155)]);_0x29c9a8&&this[_0x162bd4(0x127)]['setConfig']('menu',_0x29c9a8,{'merge':!0x0}),this[_0x162bd4(0x127)]['setConfig'](_0x2cfc6c,_0x439edd);}[_0x3be7fe(0x15a)](){const _0x21c7df=_0x3be7fe;[[_0x1e7aef]]['forEach'](_0x17a5be=>this[_0x21c7df(0x144)]['add'](_0x17a5be));}[_0x3be7fe(0x15d)](){const _0x545562=_0x3be7fe;this[_0x545562(0x144)][_0x545562(0x142)](_0x1e7aef);}},_0x5f3ddd(_0x4eb858[_0x3be7fe(0x147)],'pluginName',_0x110830),_0x5f3ddd(_0x4eb858[_0x3be7fe(0x147)],_0x3be7fe(0x143),_0x442890[_0x3be7fe(0x158)][_0x3be7fe(0x132)]),_0x4eb858['UniverSheetsExchangeClientPlugin']=_0x39ced9([_0x442890[_0x3be7fe(0x14a)](_0x42c18f[_0x3be7fe(0x12e)]),_0x5e096b(0x1,_0x442890[_0x3be7fe(0x130)](_0x442890[_0x3be7fe(0x162)])),_0x5e096b(0x2,_0x442890[_0x3be7fe(0x12f)])],_0x4eb858['UniverSheetsExchangeClientPlugin']),_0x4eb858[_0x3be7fe(0x129)]=_0x462a0f,_0x4eb858['ImportXLSXOperation']=_0x256840,Object[_0x3be7fe(0x138)](_0x4eb858,Symbol['toStringTag'],{'value':_0x3be7fe(0x13c)});}));
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.11",
3
+ "version": "0.10.12-nightly.202510251119",
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.11",
46
- "@univerjs/core": "0.10.11",
47
- "@univerjs/sheets": "0.10.11",
48
- "@univerjs/ui": "0.10.11",
49
- "@univerjs/sheets-ui": "0.10.11"
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",
53
53
  "vite": "^7.1.10",
54
54
  "vitest": "^3.2.4",
55
- "@univerjs-infra/shared": "0.10.11"
55
+ "@univerjs-infra/shared": "0.10.12"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run",