@univerjs-pro/sheets-exchange-client 0.10.9-nightly.202509260614 → 0.10.10

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 _0x7298f=_0x293f;(function(_0x575f37,_0x34113b){const _0x569a65=_0x293f,_0x4af2c8=_0x575f37();while(!![]){try{const _0x1d24f0=-parseInt(_0x569a65(0x21b))/0x1*(-parseInt(_0x569a65(0x214))/0x2)+parseInt(_0x569a65(0x21c))/0x3+parseInt(_0x569a65(0x211))/0x4+parseInt(_0x569a65(0x229))/0x5+-parseInt(_0x569a65(0x1f7))/0x6*(parseInt(_0x569a65(0x226))/0x7)+parseInt(_0x569a65(0x218))/0x8+-parseInt(_0x569a65(0x20a))/0x9*(parseInt(_0x569a65(0x1f8))/0xa);if(_0x1d24f0===_0x34113b)break;else _0x4af2c8['push'](_0x4af2c8['shift']());}catch(_0x37b0d6){_0x4af2c8['push'](_0x4af2c8['shift']());}}}(_0x1f5b,0x2c974));Object[_0x7298f(0x219)](exports,Symbol[_0x7298f(0x20d)],{'value':'Module'});const g=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),c=require('@univerjs/ui'),_=require('@univerjs/sheets'),I=require('@univerjs/sheets-ui'),l={'id':_0x7298f(0x22f),'type':i[_0x7298f(0x213)][_0x7298f(0x20e)],'handler':async _0x41000a=>{const _0x33a657=_0x7298f,_0x961d58=_0x41000a['get'](g[_0x33a657(0x1f9)]);return new URLSearchParams(location['search'])[_0x33a657(0x225)]('unit')?_0x961d58[_0x33a657(0x21a)]():_0x961d58['importXLSXToSnapshot'](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i[_0x7298f(0x213)][_0x7298f(0x20e)],'handler':async _0x5493ca=>{const _0x42a1b9=_0x7298f,_0x3c8e87=_0x5493ca[_0x42a1b9(0x225)](g[_0x42a1b9(0x1f9)]);return new URLSearchParams(location[_0x42a1b9(0x207)])[_0x42a1b9(0x225)](_0x42a1b9(0x206))?_0x3c8e87['exportXLSXByUnitId']():_0x3c8e87[_0x42a1b9(0x215)](),!0x0;}},v=_0x7298f(0x221),h={},S=_0x7298f(0x223);function x(_0x3beb70){const _0x19a388=_0x7298f;return{'id':S,'type':c['MenuItemType']['SUBITEMS'],'icon':'DirectExportIcon','tooltip':'exchange.file','hidden$':c['getMenuHiddenObservable'](_0x3beb70,i['UniverInstanceType'][_0x19a388(0x222)]),'disabled$':I['getCurrentRangeDisable$'](_0x3beb70,{'workbookTypes':[_[_0x19a388(0x1fd)]]})};}function _0x293f(_0x529505,_0x3343a9){const _0x1f5b31=_0x1f5b();return _0x293f=function(_0x293faa,_0x4a6fab){_0x293faa=_0x293faa-0x1f4;let _0x18a881=_0x1f5b31[_0x293faa];return _0x18a881;},_0x293f(_0x529505,_0x3343a9);}function P(){const _0x1db45b=_0x7298f;return{'id':l['id'],'type':c['MenuItemType'][_0x1db45b(0x227)],'title':'exchange.upload','icon':_0x1db45b(0x228)};}function C(){const _0x360737=_0x7298f;return{'id':p['id'],'type':c['MenuItemType'][_0x360737(0x227)],'title':_0x360737(0x220),'icon':'ExportIcon'};}const f={[c['RibbonStartGroup']['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x7298f(0x224)],y=(_0x26e353,_0x1b0283,_0x48dfdd,_0x58c78d)=>{const _0x3bf3df=_0x7298f;for(var _0x28ba38=_0x58c78d>0x1?void 0x0:_0x58c78d?T(_0x1b0283,_0x48dfdd):_0x1b0283,_0x1b44b8=_0x26e353[_0x3bf3df(0x21e)]-0x1,_0x1b0096;_0x1b44b8>=0x0;_0x1b44b8--)(_0x1b0096=_0x26e353[_0x1b44b8])&&(_0x28ba38=_0x1b0096(_0x28ba38)||_0x28ba38);return _0x28ba38;},m=(_0x3908aa,_0x45adad)=>(_0x437f03,_0x1d1ec9)=>_0x45adad(_0x437f03,_0x1d1ec9,_0x3908aa);function _0x1f5b(){const _0x3ed080=['importXLSXToUnitId','78601KhonET','902442fRtCNM','UniverExchangeClientPlugin','length','SHEET_EXCHANGE_CLIENT_PLUGIN','exchange.download','sheets-exchange-client.config','UNIVER_SHEET','sheets-exchange-client.operation.exchange','getOwnPropertyDescriptor','get','7xRWLyZ','BUTTON','FolderIcon','369440eyOptC','IConfigService','forEach','_injector','ICommandService','merge','exchange-client.operation.import-xlsx','menu','DependentOn','_menuManagerService','196428zZiAFx','25060PhwHXW','IExchangeOperateService','symbol','IMenuManagerService','_configService','WorkbookExportPermission','_initMenus','Disposable','Inject','disposeWithMe','_initCommands','UniverInstanceType','_config','ImportXLSXOperation','unit','search','UniverSheetsExchangeClientPlugin','onReady','4041ZclcNr','pluginName','setConfig','toStringTag','OPERATION','Plugin','add','1219884PmZzcn','_commandService','CommandType','8CzwsOm','exportXLSXBySnapshot','mergeMenu','onStarting','2771992bntavp','defineProperty'];_0x1f5b=function(){return _0x3ed080;};return _0x1f5b();}let u=class extends i[_0x7298f(0x1ff)]{constructor(_0x23b94d,_0xa37f7a){const _0x3419ba=_0x7298f;super(),this['_commandService']=_0x23b94d,this['_menuManagerService']=_0xa37f7a,this[_0x3419ba(0x202)](),this[_0x3419ba(0x1fe)]();}[_0x7298f(0x202)](){const _0x569dcd=_0x7298f;[l,p][_0x569dcd(0x22b)](_0x2c0ce1=>{const _0x4be975=_0x569dcd;this[_0x4be975(0x201)](this[_0x4be975(0x212)]['registerCommand'](_0x2c0ce1));});}[_0x7298f(0x1fe)](){const _0x3fec16=_0x7298f;this[_0x3fec16(0x1f6)][_0x3fec16(0x216)](f);}};u=y([m(0x0,i[_0x7298f(0x22d)]),m(0x1,c[_0x7298f(0x1fb)])],u);var O=Object[_0x7298f(0x219)],U=Object[_0x7298f(0x224)],X=(_0x469397,_0x449d73,_0x191356)=>_0x449d73 in _0x469397?O(_0x469397,_0x449d73,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x191356}):_0x469397[_0x449d73]=_0x191356,N=(_0x17a624,_0x4fec82,_0x2c214f,_0x5533ec)=>{const _0x22d826=_0x7298f;for(var _0x305986=_0x5533ec>0x1?void 0x0:_0x5533ec?U(_0x4fec82,_0x2c214f):_0x4fec82,_0x377f0c=_0x17a624[_0x22d826(0x21e)]-0x1,_0xfddf84;_0x377f0c>=0x0;_0x377f0c--)(_0xfddf84=_0x17a624[_0x377f0c])&&(_0x305986=_0xfddf84(_0x305986)||_0x305986);return _0x305986;},d=(_0x564532,_0x53c9ef)=>(_0x2aa744,_0x2d7291)=>_0x53c9ef(_0x2aa744,_0x2d7291,_0x564532),E=(_0x4081aa,_0x10dbe6,_0x194264)=>X(_0x4081aa,typeof _0x10dbe6!=_0x7298f(0x1fa)?_0x10dbe6+'':_0x10dbe6,_0x194264);const L=_0x7298f(0x21f);exports[_0x7298f(0x208)]=class extends i[_0x7298f(0x20f)]{constructor(_0xe11de0=h,_0x3fc8a5,_0x56a331){const _0x3b4c66=_0x7298f;super(),this[_0x3b4c66(0x204)]=_0xe11de0,this[_0x3b4c66(0x22c)]=_0x3fc8a5,this[_0x3b4c66(0x1fc)]=_0x56a331;const {menu:_0x101e32,..._0x515953}=i[_0x3b4c66(0x22e)]({},h,this[_0x3b4c66(0x204)]);_0x101e32&&this[_0x3b4c66(0x1fc)][_0x3b4c66(0x20c)](_0x3b4c66(0x1f4),_0x101e32,{'merge':!0x0}),this[_0x3b4c66(0x1fc)][_0x3b4c66(0x20c)](v,_0x515953);}[_0x7298f(0x217)](){const _0x34d708=_0x7298f;[[u]]['forEach'](_0x39debc=>this[_0x34d708(0x22c)][_0x34d708(0x210)](_0x39debc));}[_0x7298f(0x209)](){this['_injector']['get'](u);}},E(exports[_0x7298f(0x208)],_0x7298f(0x20b),L),E(exports[_0x7298f(0x208)],'type',i[_0x7298f(0x203)][_0x7298f(0x222)]),exports['UniverSheetsExchangeClientPlugin']=N([i[_0x7298f(0x1f5)](g[_0x7298f(0x21d)]),d(0x1,i[_0x7298f(0x200)](i['Injector'])),d(0x2,i[_0x7298f(0x22a)])],exports[_0x7298f(0x208)]),exports['ExportXLSXOperation']=p,exports[_0x7298f(0x205)]=l;
1
+ 'use strict';function _0x2d13(){const _0x2b4afe=['_commandService','exchange.download','IMenuManagerService','_injector','getMenuHiddenObservable','_initCommands','850waAHbN','_menuManagerService','ICommandService','exchange.file','exchange.upload','length','3563847AlJnyh','getCurrentRangeDisable$','1620MMQqCz','importXLSXToSnapshot','Injector','ExportIcon','UniverExchangeClientPlugin','unit','add','OPERATION','MenuItemType','mergeMenu','3736816xDmASS','_initMenus','_config','UniverSheetsExchangeClientPlugin','50vlxaAo','24297TdffvM','Plugin','defineProperty','exportXLSXByUnitId','RibbonStartGroup','2801871RmxcpN','search','sheets-exchange-client.config','UNIVER_SHEET','IExchangeOperateService','getOwnPropertyDescriptor','_configService','registerCommand','CommandType','type','OTHERS','onReady','BUTTON','19004BNFtux','exportXLSXBySnapshot','SUBITEMS','setConfig','942470FzbqCZ','exchange-client.operation.export-xlsx','get','ImportXLSXOperation','Inject','merge','DirectExportIcon','menu','forEach','importXLSXToUnitId','1128716tQOtPm','exchange-client.operation.import-xlsx','symbol','UniverInstanceType','FolderIcon'];_0x2d13=function(){return _0x2b4afe;};return _0x2d13();}const _0x53975e=_0x2fe1;function _0x2fe1(_0x2b885a,_0x265fba){const _0x2d138a=_0x2d13();return _0x2fe1=function(_0x2fe15f,_0x6aa949){_0x2fe15f=_0x2fe15f-0x1a5;let _0x2c6809=_0x2d138a[_0x2fe15f];return _0x2c6809;},_0x2fe1(_0x2b885a,_0x265fba);}(function(_0x46c8f7,_0x22f4c5){const _0x1824fe=_0x2fe1,_0x54f059=_0x46c8f7();while(!![]){try{const _0x16ec15=parseInt(_0x1824fe(0x1b3))/0x1+parseInt(_0x1824fe(0x1bd))/0x2+-parseInt(_0x1824fe(0x1ce))/0x3+-parseInt(_0x1824fe(0x1af))/0x4*(parseInt(_0x1824fe(0x1c8))/0x5)+-parseInt(_0x1824fe(0x1d0))/0x6*(parseInt(_0x1824fe(0x1df))/0x7)+parseInt(_0x1824fe(0x1da))/0x8+parseInt(_0x1824fe(0x1e4))/0x9*(parseInt(_0x1824fe(0x1de))/0xa);if(_0x16ec15===_0x22f4c5)break;else _0x54f059['push'](_0x54f059['shift']());}catch(_0x13ffab){_0x54f059['push'](_0x54f059['shift']());}}}(_0x2d13,0x91ee8));Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'});const g=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),c=require('@univerjs/ui'),_=require('@univerjs/sheets'),I=require('@univerjs/sheets-ui'),l={'id':_0x53975e(0x1be),'type':i['CommandType'][_0x53975e(0x1d7)],'handler':async _0x203e67=>{const _0x175c32=_0x53975e,_0x34f1ad=_0x203e67[_0x175c32(0x1b5)](g['IExchangeOperateService']);return new URLSearchParams(location[_0x175c32(0x1e5)])['get'](_0x175c32(0x1d5))?_0x34f1ad[_0x175c32(0x1bc)]():_0x34f1ad[_0x175c32(0x1d1)](),!0x0;}},p={'id':_0x53975e(0x1b4),'type':i[_0x53975e(0x1aa)]['OPERATION'],'handler':async _0x8d6c29=>{const _0xd9da76=_0x53975e,_0x58c90b=_0x8d6c29['get'](g[_0xd9da76(0x1a6)]);return new URLSearchParams(location['search'])[_0xd9da76(0x1b5)](_0xd9da76(0x1d5))?_0x58c90b[_0xd9da76(0x1e2)]():_0x58c90b[_0xd9da76(0x1b0)](),!0x0;}},v=_0x53975e(0x1e6),h={},S='sheets-exchange-client.operation.exchange';function x(_0xaa7390){const _0x372318=_0x53975e;return{'id':S,'type':c[_0x372318(0x1d8)][_0x372318(0x1b1)],'icon':_0x372318(0x1b9),'tooltip':_0x372318(0x1cb),'hidden$':c[_0x372318(0x1c6)](_0xaa7390,i['UniverInstanceType'][_0x372318(0x1a5)]),'disabled$':I[_0x372318(0x1cf)](_0xaa7390,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x5aa5e1=_0x53975e;return{'id':l['id'],'type':c[_0x5aa5e1(0x1d8)][_0x5aa5e1(0x1ae)],'title':_0x5aa5e1(0x1cc),'icon':_0x5aa5e1(0x1c1)};}function C(){const _0xc744ae=_0x53975e;return{'id':p['id'],'type':c['MenuItemType'][_0xc744ae(0x1ae)],'title':_0xc744ae(0x1c3),'icon':_0xc744ae(0x1d3)};}const f={[c[_0x53975e(0x1e3)][_0x53975e(0x1ac)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x53975e(0x1a7)],y=(_0x4baf84,_0x183244,_0x30e908,_0xc11c44)=>{for(var _0x19dc9f=_0xc11c44>0x1?void 0x0:_0xc11c44?T(_0x183244,_0x30e908):_0x183244,_0x5bfe41=_0x4baf84['length']-0x1,_0x47f09c;_0x5bfe41>=0x0;_0x5bfe41--)(_0x47f09c=_0x4baf84[_0x5bfe41])&&(_0x19dc9f=_0x47f09c(_0x19dc9f)||_0x19dc9f);return _0x19dc9f;},m=(_0x4db2c4,_0x367005)=>(_0x1072ec,_0x1465a5)=>_0x367005(_0x1072ec,_0x1465a5,_0x4db2c4);let u=class extends i['Disposable']{constructor(_0x5a504a,_0x3f4e93){const _0x7c14e3=_0x53975e;super(),this[_0x7c14e3(0x1c2)]=_0x5a504a,this[_0x7c14e3(0x1c9)]=_0x3f4e93,this[_0x7c14e3(0x1c7)](),this['_initMenus']();}[_0x53975e(0x1c7)](){const _0x1a4d85=_0x53975e;[l,p][_0x1a4d85(0x1bb)](_0x10b13b=>{const _0x104bc1=_0x1a4d85;this['disposeWithMe'](this['_commandService'][_0x104bc1(0x1a9)](_0x10b13b));});}[_0x53975e(0x1db)](){const _0x104e06=_0x53975e;this[_0x104e06(0x1c9)][_0x104e06(0x1d9)](f);}};u=y([m(0x0,i[_0x53975e(0x1ca)]),m(0x1,c[_0x53975e(0x1c4)])],u);var O=Object[_0x53975e(0x1e1)],U=Object['getOwnPropertyDescriptor'],X=(_0x3dda2a,_0x33f7ec,_0x5c2c0b)=>_0x33f7ec in _0x3dda2a?O(_0x3dda2a,_0x33f7ec,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c2c0b}):_0x3dda2a[_0x33f7ec]=_0x5c2c0b,N=(_0x3e1459,_0x1e256f,_0x246f83,_0xd3dca)=>{const _0x24e5b8=_0x53975e;for(var _0xa4c3a9=_0xd3dca>0x1?void 0x0:_0xd3dca?U(_0x1e256f,_0x246f83):_0x1e256f,_0x201bf4=_0x3e1459[_0x24e5b8(0x1cd)]-0x1,_0x3ba9f7;_0x201bf4>=0x0;_0x201bf4--)(_0x3ba9f7=_0x3e1459[_0x201bf4])&&(_0xa4c3a9=_0x3ba9f7(_0xa4c3a9)||_0xa4c3a9);return _0xa4c3a9;},d=(_0x20b188,_0x40d94c)=>(_0x186d86,_0x275f62)=>_0x40d94c(_0x186d86,_0x275f62,_0x20b188),E=(_0x53f713,_0x380cee,_0x590371)=>X(_0x53f713,typeof _0x380cee!=_0x53975e(0x1bf)?_0x380cee+'':_0x380cee,_0x590371);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports[_0x53975e(0x1dd)]=class extends i[_0x53975e(0x1e0)]{constructor(_0x4f3ca5=h,_0x1dca10,_0xff799b){const _0x1b63a1=_0x53975e;super(),this[_0x1b63a1(0x1dc)]=_0x4f3ca5,this[_0x1b63a1(0x1c5)]=_0x1dca10,this[_0x1b63a1(0x1a8)]=_0xff799b;const {menu:_0x409ef5,..._0x284ff1}=i[_0x1b63a1(0x1b8)]({},h,this[_0x1b63a1(0x1dc)]);_0x409ef5&&this[_0x1b63a1(0x1a8)][_0x1b63a1(0x1b2)](_0x1b63a1(0x1ba),_0x409ef5,{'merge':!0x0}),this['_configService'][_0x1b63a1(0x1b2)](v,_0x284ff1);}['onStarting'](){const _0x4aaa41=_0x53975e;[[u]]['forEach'](_0x32da71=>this[_0x4aaa41(0x1c5)][_0x4aaa41(0x1d6)](_0x32da71));}[_0x53975e(0x1ad)](){const _0x2c47ad=_0x53975e;this[_0x2c47ad(0x1c5)]['get'](u);}},E(exports['UniverSheetsExchangeClientPlugin'],'pluginName',L),E(exports[_0x53975e(0x1dd)],_0x53975e(0x1ab),i[_0x53975e(0x1c0)][_0x53975e(0x1a5)]),exports[_0x53975e(0x1dd)]=N([i['DependentOn'](g[_0x53975e(0x1d4)]),d(0x1,i[_0x53975e(0x1b7)](i[_0x53975e(0x1d2)])),d(0x2,i['IConfigService'])],exports['UniverSheetsExchangeClientPlugin']),exports['ExportXLSXOperation']=p,exports[_0x53975e(0x1b6)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x19ba0a=_0x25b5;(function(_0x61baad,_0x3486d0){const _0x442952=_0x25b5,_0x2dc487=_0x61baad();while(!![]){try{const _0x5bdd76=parseInt(_0x442952(0xec))/0x1+parseInt(_0x442952(0xd9))/0x2*(parseInt(_0x442952(0xd3))/0x3)+parseInt(_0x442952(0xc8))/0x4+parseInt(_0x442952(0xe7))/0x5*(-parseInt(_0x442952(0xdf))/0x6)+-parseInt(_0x442952(0xd4))/0x7+-parseInt(_0x442952(0xdc))/0x8+parseInt(_0x442952(0xe2))/0x9*(parseInt(_0x442952(0xc1))/0xa);if(_0x5bdd76===_0x3486d0)break;else _0x2dc487['push'](_0x2dc487['shift']());}catch(_0x58c82e){_0x2dc487['push'](_0x2dc487['shift']());}}}(_0x5ab5,0x7d6b0));function _0x5ab5(){const _0x5c6304=['sheets-exchange-client.config','BUTTON','_configService','SHEET_EXCHANGE_CLIENT_PLUGIN','onStarting','UNIVER_SHEET','SUBITEMS','exchange.download','pluginName','add','123lXLJlK','4630570vbpPCD','unit','mergeMenu','_initCommands','_initMenus','20174leQvZt','exchange.file','OPERATION','2503576jkAHPQ','menu','sheets-exchange-client.operation.exchange','366IpMnLL','registerCommand','DirectExportIcon','7117011BhVdwI','_config','ExportIcon','forEach','exportXLSXByUnitId','75515upLgoY','search','importXLSXToSnapshot','FolderIcon','defineProperty','950625upsgxj','get','onReady','10qlBadp','symbol','type','length','setConfig','_injector','getOwnPropertyDescriptor','1017924UIoYHU'];_0x5ab5=function(){return _0x5c6304;};return _0x5ab5();}import{IExchangeOperateService as _0xa3f6bb,UniverExchangeClientPlugin as _0x5cf96d}from'@univerjs-pro/exchange-client';import{CommandType as _0x296405,UniverInstanceType as _0x8c269a,Disposable as _0x3dc5f0,ICommandService as _0x15fa88,DependentOn as _0x39aca0,Inject as _0x194b6f,Injector as _0x3b4e9b,IConfigService as _0x311ae2,Plugin as _0x5d9e5f,merge as _0x283b3a}from'@univerjs/core';import{MenuItemType as _0x8785fa,getMenuHiddenObservable as _0x58b80d,RibbonStartGroup as _0x21239e,IMenuManagerService as _0x196344}from'@univerjs/ui';function _0x25b5(_0x4897ca,_0x556900){const _0x5ab5d9=_0x5ab5();return _0x25b5=function(_0x25b569,_0x3643d3){_0x25b569=_0x25b569-0xc0;let _0x4d35d9=_0x5ab5d9[_0x25b569];return _0x4d35d9;},_0x25b5(_0x4897ca,_0x556900);}import{WorkbookExportPermission as _0x15525d}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0xe061b6}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x296405[_0x19ba0a(0xdb)],'handler':async _0x5a5920=>{const _0x4d05c5=_0x19ba0a,_0x134b22=_0x5a5920['get'](_0xa3f6bb);return new URLSearchParams(location[_0x4d05c5(0xe8)])[_0x4d05c5(0xed)](_0x4d05c5(0xd5))?_0x134b22['importXLSXToUnitId']():_0x134b22[_0x4d05c5(0xe9)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x296405[_0x19ba0a(0xdb)],'handler':async _0x17ee14=>{const _0x2a9116=_0x19ba0a,_0x1d0b7e=_0x17ee14[_0x2a9116(0xed)](_0xa3f6bb);return new URLSearchParams(location[_0x2a9116(0xe8)])[_0x2a9116(0xed)](_0x2a9116(0xd5))?_0x1d0b7e[_0x2a9116(0xe6)]():_0x1d0b7e['exportXLSXBySnapshot'](),!0x0;}},H=_0x19ba0a(0xc9),l={},S=_0x19ba0a(0xde);function R(_0xb4a942){const _0x5513b7=_0x19ba0a;return{'id':S,'type':_0x8785fa[_0x5513b7(0xcf)],'icon':_0x5513b7(0xe1),'tooltip':_0x5513b7(0xda),'hidden$':_0x58b80d(_0xb4a942,_0x8c269a[_0x5513b7(0xce)]),'disabled$':_0xe061b6(_0xb4a942,{'workbookTypes':[_0x15525d]})};}function w(){const _0x2817b7=_0x19ba0a;return{'id':p['id'],'type':_0x8785fa['BUTTON'],'title':'exchange.upload','icon':_0x2817b7(0xea)};}function D(){const _0x956d33=_0x19ba0a;return{'id':u['id'],'type':_0x8785fa[_0x956d33(0xca)],'title':_0x956d33(0xd0),'icon':_0x956d33(0xe4)};}const F={[_0x21239e['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x19ba0a(0xc7)],A=(_0x29d66b,_0x1108bb,_0x2f1391,_0x1dde28)=>{const _0x124312=_0x19ba0a;for(var _0x29652d=_0x1dde28>0x1?void 0x0:_0x1dde28?G(_0x1108bb,_0x2f1391):_0x1108bb,_0x34e24a=_0x29d66b[_0x124312(0xc4)]-0x1,_0x4a4a2b;_0x34e24a>=0x0;_0x34e24a--)(_0x4a4a2b=_0x29d66b[_0x34e24a])&&(_0x29652d=_0x4a4a2b(_0x29652d)||_0x29652d);return _0x29652d;},d=(_0x23f8a4,_0x416f45)=>(_0x159730,_0x1d31b1)=>_0x416f45(_0x159730,_0x1d31b1,_0x23f8a4);let c=class extends _0x3dc5f0{constructor(_0x3631d9,_0x5d80a8){const _0x1c1ccf=_0x19ba0a;super(),this['_commandService']=_0x3631d9,this['_menuManagerService']=_0x5d80a8,this[_0x1c1ccf(0xd7)](),this[_0x1c1ccf(0xd8)]();}['_initCommands'](){const _0xfa01cb=_0x19ba0a;[p,u][_0xfa01cb(0xe5)](_0x1489e4=>{const _0xb5eb8b=_0xfa01cb;this['disposeWithMe'](this['_commandService'][_0xb5eb8b(0xe0)](_0x1489e4));});}['_initMenus'](){const _0x41d5ac=_0x19ba0a;this['_menuManagerService'][_0x41d5ac(0xd6)](F);}};c=A([d(0x0,_0x15fa88),d(0x1,_0x196344)],c);var j=Object[_0x19ba0a(0xeb)],B=Object[_0x19ba0a(0xc7)],$=(_0x129ab9,_0x574a8f,_0x2f5649)=>_0x574a8f in _0x129ab9?j(_0x129ab9,_0x574a8f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f5649}):_0x129ab9[_0x574a8f]=_0x2f5649,V=(_0x4c233d,_0x39b463,_0x4271ac,_0x322e40)=>{for(var _0x2e136c=_0x322e40>0x1?void 0x0:_0x322e40?B(_0x39b463,_0x4271ac):_0x39b463,_0x48eaff=_0x4c233d['length']-0x1,_0x244eae;_0x48eaff>=0x0;_0x48eaff--)(_0x244eae=_0x4c233d[_0x48eaff])&&(_0x2e136c=_0x244eae(_0x2e136c)||_0x2e136c);return _0x2e136c;},_=(_0x26a943,_0x5ee89b)=>(_0x2a7e68,_0x37c745)=>_0x5ee89b(_0x2a7e68,_0x37c745,_0x26a943),I=(_0x5aa1d7,_0x440aa7,_0x1f24fb)=>$(_0x5aa1d7,typeof _0x440aa7!=_0x19ba0a(0xc2)?_0x440aa7+'':_0x440aa7,_0x1f24fb);const W=_0x19ba0a(0xcc);let s=class extends _0x5d9e5f{constructor(_0x1a56f1=l,_0x48e17c,_0x4f8944){const _0xd1319=_0x19ba0a;super(),this[_0xd1319(0xe3)]=_0x1a56f1,this[_0xd1319(0xc6)]=_0x48e17c,this[_0xd1319(0xcb)]=_0x4f8944;const {menu:_0x1ced2f,..._0x448995}=_0x283b3a({},l,this['_config']);_0x1ced2f&&this[_0xd1319(0xcb)][_0xd1319(0xc5)](_0xd1319(0xdd),_0x1ced2f,{'merge':!0x0}),this['_configService'][_0xd1319(0xc5)](H,_0x448995);}[_0x19ba0a(0xcd)](){const _0x539fdb=_0x19ba0a;[[c]]['forEach'](_0x216e6f=>this[_0x539fdb(0xc6)][_0x539fdb(0xd2)](_0x216e6f));}[_0x19ba0a(0xc0)](){const _0x508d61=_0x19ba0a;this[_0x508d61(0xc6)][_0x508d61(0xed)](c);}};I(s,_0x19ba0a(0xd1),W),I(s,_0x19ba0a(0xc3),_0x8c269a[_0x19ba0a(0xce)]),s=V([_0x39aca0(_0x5cf96d),_(0x1,_0x194b6f(_0x3b4e9b)),_(0x2,_0x311ae2)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x861267=_0x3be3;(function(_0x41142d,_0x1837ae){const _0x139aca=_0x3be3,_0x2ac066=_0x41142d();while(!![]){try{const _0x115a8f=-parseInt(_0x139aca(0x206))/0x1+parseInt(_0x139aca(0x1f7))/0x2+parseInt(_0x139aca(0x1fa))/0x3*(-parseInt(_0x139aca(0x1fe))/0x4)+-parseInt(_0x139aca(0x208))/0x5+-parseInt(_0x139aca(0x1fd))/0x6*(-parseInt(_0x139aca(0x20a))/0x7)+parseInt(_0x139aca(0x211))/0x8+parseInt(_0x139aca(0x1f6))/0x9;if(_0x115a8f===_0x1837ae)break;else _0x2ac066['push'](_0x2ac066['shift']());}catch(_0xfb2b48){_0x2ac066['push'](_0x2ac066['shift']());}}}(_0x3f63,0x761f1));function _0x3be3(_0xa83e66,_0x230e9a){const _0x3f63d3=_0x3f63();return _0x3be3=function(_0x3be386,_0xf81693){_0x3be386=_0x3be386-0x1e5;let _0x7be76c=_0x3f63d3[_0x3be386];return _0x7be76c;},_0x3be3(_0xa83e66,_0x230e9a);}import{IExchangeOperateService as _0x3199bf,UniverExchangeClientPlugin as _0x62eddf}from'@univerjs-pro/exchange-client';import{CommandType as _0x1564fb,UniverInstanceType as _0x3b20d2,Disposable as _0x58a3dc,ICommandService as _0x3a2479,DependentOn as _0x4c3999,Inject as _0x1450d2,Injector as _0x39d4fb,IConfigService as _0x1c45d6,Plugin as _0x579270,merge as _0x230065}from'@univerjs/core';import{MenuItemType as _0x216b6b,getMenuHiddenObservable as _0x1d55bf,RibbonStartGroup as _0x5da0f2,IMenuManagerService as _0x172a4b}from'@univerjs/ui';import{WorkbookExportPermission as _0x336922}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x5cd884}from'@univerjs/sheets-ui';const p={'id':_0x861267(0x210),'type':_0x1564fb[_0x861267(0x1f2)],'handler':async _0x22c2e6=>{const _0x547ff1=_0x861267,_0x1064c5=_0x22c2e6[_0x547ff1(0x1f1)](_0x3199bf);return new URLSearchParams(location[_0x547ff1(0x20c)])[_0x547ff1(0x1f1)]('unit')?_0x1064c5[_0x547ff1(0x20e)]():_0x1064c5[_0x547ff1(0x1ea)](),!0x0;}},u={'id':_0x861267(0x214),'type':_0x1564fb['OPERATION'],'handler':async _0x23946f=>{const _0xdc1311=_0x861267,_0x14123d=_0x23946f['get'](_0x3199bf);return new URLSearchParams(location[_0xdc1311(0x20c)])['get']('unit')?_0x14123d[_0xdc1311(0x1ee)]():_0x14123d[_0xdc1311(0x1ef)](),!0x0;}},H=_0x861267(0x1f3),l={},S=_0x861267(0x207);function R(_0x46a44f){const _0xd27272=_0x861267;return{'id':S,'type':_0x216b6b['SUBITEMS'],'icon':'DirectExportIcon','tooltip':'exchange.file','hidden$':_0x1d55bf(_0x46a44f,_0x3b20d2[_0xd27272(0x1e9)]),'disabled$':_0x5cd884(_0x46a44f,{'workbookTypes':[_0x336922]})};}function w(){const _0x239cdd=_0x861267;return{'id':p['id'],'type':_0x216b6b[_0x239cdd(0x1f5)],'title':_0x239cdd(0x1ff),'icon':'FolderIcon'};}function D(){const _0x481ec1=_0x861267;return{'id':u['id'],'type':_0x216b6b['BUTTON'],'title':_0x481ec1(0x1f4),'icon':_0x481ec1(0x204)};}const F={[_0x5da0f2[_0x861267(0x212)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x861267(0x1eb)],A=(_0x1bd52e,_0x2a2567,_0x3facb5,_0x3d5ff8)=>{for(var _0x4c787d=_0x3d5ff8>0x1?void 0x0:_0x3d5ff8?G(_0x2a2567,_0x3facb5):_0x2a2567,_0x44de06=_0x1bd52e['length']-0x1,_0x286a54;_0x44de06>=0x0;_0x44de06--)(_0x286a54=_0x1bd52e[_0x44de06])&&(_0x4c787d=_0x286a54(_0x4c787d)||_0x4c787d);return _0x4c787d;},d=(_0x8a5b51,_0x1f7df9)=>(_0x208975,_0x46c648)=>_0x1f7df9(_0x208975,_0x46c648,_0x8a5b51);let c=class extends _0x58a3dc{constructor(_0x533fa3,_0x5118e5){const _0x2ee0b1=_0x861267;super(),this['_commandService']=_0x533fa3,this['_menuManagerService']=_0x5118e5,this[_0x2ee0b1(0x202)](),this[_0x2ee0b1(0x1f8)]();}[_0x861267(0x202)](){const _0x43c2e8=_0x861267;[p,u][_0x43c2e8(0x1e7)](_0x22be54=>{const _0x544f24=_0x43c2e8;this[_0x544f24(0x209)](this[_0x544f24(0x1e8)][_0x544f24(0x213)](_0x22be54));});}[_0x861267(0x1f8)](){const _0x583657=_0x861267;this[_0x583657(0x1e6)][_0x583657(0x20f)](F);}};c=A([d(0x0,_0x3a2479),d(0x1,_0x172a4b)],c);var j=Object[_0x861267(0x1ec)],B=Object[_0x861267(0x1eb)],$=(_0x25eccf,_0x37f69f,_0x404bf0)=>_0x37f69f in _0x25eccf?j(_0x25eccf,_0x37f69f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x404bf0}):_0x25eccf[_0x37f69f]=_0x404bf0,V=(_0x4f91a9,_0x1cc355,_0xf1e29,_0x79b962)=>{const _0x5723f4=_0x861267;for(var _0x1a965f=_0x79b962>0x1?void 0x0:_0x79b962?B(_0x1cc355,_0xf1e29):_0x1cc355,_0x2e5fec=_0x4f91a9[_0x5723f4(0x205)]-0x1,_0x13f3d1;_0x2e5fec>=0x0;_0x2e5fec--)(_0x13f3d1=_0x4f91a9[_0x2e5fec])&&(_0x1a965f=_0x13f3d1(_0x1a965f)||_0x1a965f);return _0x1a965f;},_=(_0x58c2b7,_0x17f19e)=>(_0x491502,_0x1565ff)=>_0x17f19e(_0x491502,_0x1565ff,_0x58c2b7),I=(_0x5e1705,_0x2d5766,_0x3d7bd3)=>$(_0x5e1705,typeof _0x2d5766!=_0x861267(0x20b)?_0x2d5766+'':_0x2d5766,_0x3d7bd3);const W=_0x861267(0x20d);let s=class extends _0x579270{constructor(_0x394c9d=l,_0x4dfec9,_0x4a5409){const _0x300a5c=_0x861267;super(),this[_0x300a5c(0x201)]=_0x394c9d,this['_injector']=_0x4dfec9,this[_0x300a5c(0x1f9)]=_0x4a5409;const {menu:_0x50e14d,..._0x5d513d}=_0x230065({},l,this[_0x300a5c(0x201)]);_0x50e14d&&this[_0x300a5c(0x1f9)][_0x300a5c(0x1e5)](_0x300a5c(0x203),_0x50e14d,{'merge':!0x0}),this[_0x300a5c(0x1f9)]['setConfig'](H,_0x5d513d);}[_0x861267(0x1ed)](){const _0x2a8233=_0x861267;[[c]][_0x2a8233(0x1e7)](_0x3390e6=>this['_injector'][_0x2a8233(0x215)](_0x3390e6));}[_0x861267(0x1fc)](){const _0x39db02=_0x861267;this[_0x39db02(0x1fb)][_0x39db02(0x1f1)](c);}};I(s,_0x861267(0x200),W),I(s,_0x861267(0x1f0),_0x3b20d2[_0x861267(0x1e9)]),s=V([_0x4c3999(_0x62eddf),_(0x1,_0x1450d2(_0x39d4fb)),_(0x2,_0x1c45d6)],s);function _0x3f63(){const _0x72c21d=['add','setConfig','_menuManagerService','forEach','_commandService','UNIVER_SHEET','importXLSXToSnapshot','getOwnPropertyDescriptor','defineProperty','onStarting','exportXLSXByUnitId','exportXLSXBySnapshot','type','get','OPERATION','sheets-exchange-client.config','exchange.download','BUTTON','2432637vRWabo','1635990mkNybD','_initMenus','_configService','15CRySOb','_injector','onReady','2100234PIPnkj','212136AgnuDu','exchange.upload','pluginName','_config','_initCommands','menu','ExportIcon','length','635373hWIoFG','sheets-exchange-client.operation.exchange','870755FYHMgl','disposeWithMe','7ZYoJpw','symbol','search','SHEET_EXCHANGE_CLIENT_PLUGIN','importXLSXToUnitId','mergeMenu','exchange-client.operation.import-xlsx','961536MutgmD','OTHERS','registerCommand','exchange-client.operation.export-xlsx'];_0x3f63=function(){return _0x72c21d;};return _0x3f63();}export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x19ba0a=_0x25b5;(function(_0x61baad,_0x3486d0){const _0x442952=_0x25b5,_0x2dc487=_0x61baad();while(!![]){try{const _0x5bdd76=parseInt(_0x442952(0xec))/0x1+parseInt(_0x442952(0xd9))/0x2*(parseInt(_0x442952(0xd3))/0x3)+parseInt(_0x442952(0xc8))/0x4+parseInt(_0x442952(0xe7))/0x5*(-parseInt(_0x442952(0xdf))/0x6)+-parseInt(_0x442952(0xd4))/0x7+-parseInt(_0x442952(0xdc))/0x8+parseInt(_0x442952(0xe2))/0x9*(parseInt(_0x442952(0xc1))/0xa);if(_0x5bdd76===_0x3486d0)break;else _0x2dc487['push'](_0x2dc487['shift']());}catch(_0x58c82e){_0x2dc487['push'](_0x2dc487['shift']());}}}(_0x5ab5,0x7d6b0));function _0x5ab5(){const _0x5c6304=['sheets-exchange-client.config','BUTTON','_configService','SHEET_EXCHANGE_CLIENT_PLUGIN','onStarting','UNIVER_SHEET','SUBITEMS','exchange.download','pluginName','add','123lXLJlK','4630570vbpPCD','unit','mergeMenu','_initCommands','_initMenus','20174leQvZt','exchange.file','OPERATION','2503576jkAHPQ','menu','sheets-exchange-client.operation.exchange','366IpMnLL','registerCommand','DirectExportIcon','7117011BhVdwI','_config','ExportIcon','forEach','exportXLSXByUnitId','75515upLgoY','search','importXLSXToSnapshot','FolderIcon','defineProperty','950625upsgxj','get','onReady','10qlBadp','symbol','type','length','setConfig','_injector','getOwnPropertyDescriptor','1017924UIoYHU'];_0x5ab5=function(){return _0x5c6304;};return _0x5ab5();}import{IExchangeOperateService as _0xa3f6bb,UniverExchangeClientPlugin as _0x5cf96d}from'@univerjs-pro/exchange-client';import{CommandType as _0x296405,UniverInstanceType as _0x8c269a,Disposable as _0x3dc5f0,ICommandService as _0x15fa88,DependentOn as _0x39aca0,Inject as _0x194b6f,Injector as _0x3b4e9b,IConfigService as _0x311ae2,Plugin as _0x5d9e5f,merge as _0x283b3a}from'@univerjs/core';import{MenuItemType as _0x8785fa,getMenuHiddenObservable as _0x58b80d,RibbonStartGroup as _0x21239e,IMenuManagerService as _0x196344}from'@univerjs/ui';function _0x25b5(_0x4897ca,_0x556900){const _0x5ab5d9=_0x5ab5();return _0x25b5=function(_0x25b569,_0x3643d3){_0x25b569=_0x25b569-0xc0;let _0x4d35d9=_0x5ab5d9[_0x25b569];return _0x4d35d9;},_0x25b5(_0x4897ca,_0x556900);}import{WorkbookExportPermission as _0x15525d}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0xe061b6}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x296405[_0x19ba0a(0xdb)],'handler':async _0x5a5920=>{const _0x4d05c5=_0x19ba0a,_0x134b22=_0x5a5920['get'](_0xa3f6bb);return new URLSearchParams(location[_0x4d05c5(0xe8)])[_0x4d05c5(0xed)](_0x4d05c5(0xd5))?_0x134b22['importXLSXToUnitId']():_0x134b22[_0x4d05c5(0xe9)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x296405[_0x19ba0a(0xdb)],'handler':async _0x17ee14=>{const _0x2a9116=_0x19ba0a,_0x1d0b7e=_0x17ee14[_0x2a9116(0xed)](_0xa3f6bb);return new URLSearchParams(location[_0x2a9116(0xe8)])[_0x2a9116(0xed)](_0x2a9116(0xd5))?_0x1d0b7e[_0x2a9116(0xe6)]():_0x1d0b7e['exportXLSXBySnapshot'](),!0x0;}},H=_0x19ba0a(0xc9),l={},S=_0x19ba0a(0xde);function R(_0xb4a942){const _0x5513b7=_0x19ba0a;return{'id':S,'type':_0x8785fa[_0x5513b7(0xcf)],'icon':_0x5513b7(0xe1),'tooltip':_0x5513b7(0xda),'hidden$':_0x58b80d(_0xb4a942,_0x8c269a[_0x5513b7(0xce)]),'disabled$':_0xe061b6(_0xb4a942,{'workbookTypes':[_0x15525d]})};}function w(){const _0x2817b7=_0x19ba0a;return{'id':p['id'],'type':_0x8785fa['BUTTON'],'title':'exchange.upload','icon':_0x2817b7(0xea)};}function D(){const _0x956d33=_0x19ba0a;return{'id':u['id'],'type':_0x8785fa[_0x956d33(0xca)],'title':_0x956d33(0xd0),'icon':_0x956d33(0xe4)};}const F={[_0x21239e['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x19ba0a(0xc7)],A=(_0x29d66b,_0x1108bb,_0x2f1391,_0x1dde28)=>{const _0x124312=_0x19ba0a;for(var _0x29652d=_0x1dde28>0x1?void 0x0:_0x1dde28?G(_0x1108bb,_0x2f1391):_0x1108bb,_0x34e24a=_0x29d66b[_0x124312(0xc4)]-0x1,_0x4a4a2b;_0x34e24a>=0x0;_0x34e24a--)(_0x4a4a2b=_0x29d66b[_0x34e24a])&&(_0x29652d=_0x4a4a2b(_0x29652d)||_0x29652d);return _0x29652d;},d=(_0x23f8a4,_0x416f45)=>(_0x159730,_0x1d31b1)=>_0x416f45(_0x159730,_0x1d31b1,_0x23f8a4);let c=class extends _0x3dc5f0{constructor(_0x3631d9,_0x5d80a8){const _0x1c1ccf=_0x19ba0a;super(),this['_commandService']=_0x3631d9,this['_menuManagerService']=_0x5d80a8,this[_0x1c1ccf(0xd7)](),this[_0x1c1ccf(0xd8)]();}['_initCommands'](){const _0xfa01cb=_0x19ba0a;[p,u][_0xfa01cb(0xe5)](_0x1489e4=>{const _0xb5eb8b=_0xfa01cb;this['disposeWithMe'](this['_commandService'][_0xb5eb8b(0xe0)](_0x1489e4));});}['_initMenus'](){const _0x41d5ac=_0x19ba0a;this['_menuManagerService'][_0x41d5ac(0xd6)](F);}};c=A([d(0x0,_0x15fa88),d(0x1,_0x196344)],c);var j=Object[_0x19ba0a(0xeb)],B=Object[_0x19ba0a(0xc7)],$=(_0x129ab9,_0x574a8f,_0x2f5649)=>_0x574a8f in _0x129ab9?j(_0x129ab9,_0x574a8f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f5649}):_0x129ab9[_0x574a8f]=_0x2f5649,V=(_0x4c233d,_0x39b463,_0x4271ac,_0x322e40)=>{for(var _0x2e136c=_0x322e40>0x1?void 0x0:_0x322e40?B(_0x39b463,_0x4271ac):_0x39b463,_0x48eaff=_0x4c233d['length']-0x1,_0x244eae;_0x48eaff>=0x0;_0x48eaff--)(_0x244eae=_0x4c233d[_0x48eaff])&&(_0x2e136c=_0x244eae(_0x2e136c)||_0x2e136c);return _0x2e136c;},_=(_0x26a943,_0x5ee89b)=>(_0x2a7e68,_0x37c745)=>_0x5ee89b(_0x2a7e68,_0x37c745,_0x26a943),I=(_0x5aa1d7,_0x440aa7,_0x1f24fb)=>$(_0x5aa1d7,typeof _0x440aa7!=_0x19ba0a(0xc2)?_0x440aa7+'':_0x440aa7,_0x1f24fb);const W=_0x19ba0a(0xcc);let s=class extends _0x5d9e5f{constructor(_0x1a56f1=l,_0x48e17c,_0x4f8944){const _0xd1319=_0x19ba0a;super(),this[_0xd1319(0xe3)]=_0x1a56f1,this[_0xd1319(0xc6)]=_0x48e17c,this[_0xd1319(0xcb)]=_0x4f8944;const {menu:_0x1ced2f,..._0x448995}=_0x283b3a({},l,this['_config']);_0x1ced2f&&this[_0xd1319(0xcb)][_0xd1319(0xc5)](_0xd1319(0xdd),_0x1ced2f,{'merge':!0x0}),this['_configService'][_0xd1319(0xc5)](H,_0x448995);}[_0x19ba0a(0xcd)](){const _0x539fdb=_0x19ba0a;[[c]]['forEach'](_0x216e6f=>this[_0x539fdb(0xc6)][_0x539fdb(0xd2)](_0x216e6f));}[_0x19ba0a(0xc0)](){const _0x508d61=_0x19ba0a;this[_0x508d61(0xc6)][_0x508d61(0xed)](c);}};I(s,_0x19ba0a(0xd1),W),I(s,_0x19ba0a(0xc3),_0x8c269a[_0x19ba0a(0xce)]),s=V([_0x39aca0(_0x5cf96d),_(0x1,_0x194b6f(_0x3b4e9b)),_(0x2,_0x311ae2)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x861267=_0x3be3;(function(_0x41142d,_0x1837ae){const _0x139aca=_0x3be3,_0x2ac066=_0x41142d();while(!![]){try{const _0x115a8f=-parseInt(_0x139aca(0x206))/0x1+parseInt(_0x139aca(0x1f7))/0x2+parseInt(_0x139aca(0x1fa))/0x3*(-parseInt(_0x139aca(0x1fe))/0x4)+-parseInt(_0x139aca(0x208))/0x5+-parseInt(_0x139aca(0x1fd))/0x6*(-parseInt(_0x139aca(0x20a))/0x7)+parseInt(_0x139aca(0x211))/0x8+parseInt(_0x139aca(0x1f6))/0x9;if(_0x115a8f===_0x1837ae)break;else _0x2ac066['push'](_0x2ac066['shift']());}catch(_0xfb2b48){_0x2ac066['push'](_0x2ac066['shift']());}}}(_0x3f63,0x761f1));function _0x3be3(_0xa83e66,_0x230e9a){const _0x3f63d3=_0x3f63();return _0x3be3=function(_0x3be386,_0xf81693){_0x3be386=_0x3be386-0x1e5;let _0x7be76c=_0x3f63d3[_0x3be386];return _0x7be76c;},_0x3be3(_0xa83e66,_0x230e9a);}import{IExchangeOperateService as _0x3199bf,UniverExchangeClientPlugin as _0x62eddf}from'@univerjs-pro/exchange-client';import{CommandType as _0x1564fb,UniverInstanceType as _0x3b20d2,Disposable as _0x58a3dc,ICommandService as _0x3a2479,DependentOn as _0x4c3999,Inject as _0x1450d2,Injector as _0x39d4fb,IConfigService as _0x1c45d6,Plugin as _0x579270,merge as _0x230065}from'@univerjs/core';import{MenuItemType as _0x216b6b,getMenuHiddenObservable as _0x1d55bf,RibbonStartGroup as _0x5da0f2,IMenuManagerService as _0x172a4b}from'@univerjs/ui';import{WorkbookExportPermission as _0x336922}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x5cd884}from'@univerjs/sheets-ui';const p={'id':_0x861267(0x210),'type':_0x1564fb[_0x861267(0x1f2)],'handler':async _0x22c2e6=>{const _0x547ff1=_0x861267,_0x1064c5=_0x22c2e6[_0x547ff1(0x1f1)](_0x3199bf);return new URLSearchParams(location[_0x547ff1(0x20c)])[_0x547ff1(0x1f1)]('unit')?_0x1064c5[_0x547ff1(0x20e)]():_0x1064c5[_0x547ff1(0x1ea)](),!0x0;}},u={'id':_0x861267(0x214),'type':_0x1564fb['OPERATION'],'handler':async _0x23946f=>{const _0xdc1311=_0x861267,_0x14123d=_0x23946f['get'](_0x3199bf);return new URLSearchParams(location[_0xdc1311(0x20c)])['get']('unit')?_0x14123d[_0xdc1311(0x1ee)]():_0x14123d[_0xdc1311(0x1ef)](),!0x0;}},H=_0x861267(0x1f3),l={},S=_0x861267(0x207);function R(_0x46a44f){const _0xd27272=_0x861267;return{'id':S,'type':_0x216b6b['SUBITEMS'],'icon':'DirectExportIcon','tooltip':'exchange.file','hidden$':_0x1d55bf(_0x46a44f,_0x3b20d2[_0xd27272(0x1e9)]),'disabled$':_0x5cd884(_0x46a44f,{'workbookTypes':[_0x336922]})};}function w(){const _0x239cdd=_0x861267;return{'id':p['id'],'type':_0x216b6b[_0x239cdd(0x1f5)],'title':_0x239cdd(0x1ff),'icon':'FolderIcon'};}function D(){const _0x481ec1=_0x861267;return{'id':u['id'],'type':_0x216b6b['BUTTON'],'title':_0x481ec1(0x1f4),'icon':_0x481ec1(0x204)};}const F={[_0x5da0f2[_0x861267(0x212)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x861267(0x1eb)],A=(_0x1bd52e,_0x2a2567,_0x3facb5,_0x3d5ff8)=>{for(var _0x4c787d=_0x3d5ff8>0x1?void 0x0:_0x3d5ff8?G(_0x2a2567,_0x3facb5):_0x2a2567,_0x44de06=_0x1bd52e['length']-0x1,_0x286a54;_0x44de06>=0x0;_0x44de06--)(_0x286a54=_0x1bd52e[_0x44de06])&&(_0x4c787d=_0x286a54(_0x4c787d)||_0x4c787d);return _0x4c787d;},d=(_0x8a5b51,_0x1f7df9)=>(_0x208975,_0x46c648)=>_0x1f7df9(_0x208975,_0x46c648,_0x8a5b51);let c=class extends _0x58a3dc{constructor(_0x533fa3,_0x5118e5){const _0x2ee0b1=_0x861267;super(),this['_commandService']=_0x533fa3,this['_menuManagerService']=_0x5118e5,this[_0x2ee0b1(0x202)](),this[_0x2ee0b1(0x1f8)]();}[_0x861267(0x202)](){const _0x43c2e8=_0x861267;[p,u][_0x43c2e8(0x1e7)](_0x22be54=>{const _0x544f24=_0x43c2e8;this[_0x544f24(0x209)](this[_0x544f24(0x1e8)][_0x544f24(0x213)](_0x22be54));});}[_0x861267(0x1f8)](){const _0x583657=_0x861267;this[_0x583657(0x1e6)][_0x583657(0x20f)](F);}};c=A([d(0x0,_0x3a2479),d(0x1,_0x172a4b)],c);var j=Object[_0x861267(0x1ec)],B=Object[_0x861267(0x1eb)],$=(_0x25eccf,_0x37f69f,_0x404bf0)=>_0x37f69f in _0x25eccf?j(_0x25eccf,_0x37f69f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x404bf0}):_0x25eccf[_0x37f69f]=_0x404bf0,V=(_0x4f91a9,_0x1cc355,_0xf1e29,_0x79b962)=>{const _0x5723f4=_0x861267;for(var _0x1a965f=_0x79b962>0x1?void 0x0:_0x79b962?B(_0x1cc355,_0xf1e29):_0x1cc355,_0x2e5fec=_0x4f91a9[_0x5723f4(0x205)]-0x1,_0x13f3d1;_0x2e5fec>=0x0;_0x2e5fec--)(_0x13f3d1=_0x4f91a9[_0x2e5fec])&&(_0x1a965f=_0x13f3d1(_0x1a965f)||_0x1a965f);return _0x1a965f;},_=(_0x58c2b7,_0x17f19e)=>(_0x491502,_0x1565ff)=>_0x17f19e(_0x491502,_0x1565ff,_0x58c2b7),I=(_0x5e1705,_0x2d5766,_0x3d7bd3)=>$(_0x5e1705,typeof _0x2d5766!=_0x861267(0x20b)?_0x2d5766+'':_0x2d5766,_0x3d7bd3);const W=_0x861267(0x20d);let s=class extends _0x579270{constructor(_0x394c9d=l,_0x4dfec9,_0x4a5409){const _0x300a5c=_0x861267;super(),this[_0x300a5c(0x201)]=_0x394c9d,this['_injector']=_0x4dfec9,this[_0x300a5c(0x1f9)]=_0x4a5409;const {menu:_0x50e14d,..._0x5d513d}=_0x230065({},l,this[_0x300a5c(0x201)]);_0x50e14d&&this[_0x300a5c(0x1f9)][_0x300a5c(0x1e5)](_0x300a5c(0x203),_0x50e14d,{'merge':!0x0}),this[_0x300a5c(0x1f9)]['setConfig'](H,_0x5d513d);}[_0x861267(0x1ed)](){const _0x2a8233=_0x861267;[[c]][_0x2a8233(0x1e7)](_0x3390e6=>this['_injector'][_0x2a8233(0x215)](_0x3390e6));}[_0x861267(0x1fc)](){const _0x39db02=_0x861267;this[_0x39db02(0x1fb)][_0x39db02(0x1f1)](c);}};I(s,_0x861267(0x200),W),I(s,_0x861267(0x1f0),_0x3b20d2[_0x861267(0x1e9)]),s=V([_0x4c3999(_0x62eddf),_(0x1,_0x1450d2(_0x39d4fb)),_(0x2,_0x1c45d6)],s);function _0x3f63(){const _0x72c21d=['add','setConfig','_menuManagerService','forEach','_commandService','UNIVER_SHEET','importXLSXToSnapshot','getOwnPropertyDescriptor','defineProperty','onStarting','exportXLSXByUnitId','exportXLSXBySnapshot','type','get','OPERATION','sheets-exchange-client.config','exchange.download','BUTTON','2432637vRWabo','1635990mkNybD','_initMenus','_configService','15CRySOb','_injector','onReady','2100234PIPnkj','212136AgnuDu','exchange.upload','pluginName','_config','_initCommands','menu','ExportIcon','length','635373hWIoFG','sheets-exchange-client.operation.exchange','870755FYHMgl','disposeWithMe','7ZYoJpw','symbol','search','SHEET_EXCHANGE_CLIENT_PLUGIN','importXLSXToUnitId','mergeMenu','exchange-client.operation.import-xlsx','961536MutgmD','OTHERS','registerCommand','exchange-client.operation.export-xlsx'];_0x3f63=function(){return _0x72c21d;};return _0x3f63();}export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x2bd7(){const _0x471aae=['3814036amnBSP','importXLSXToSnapshot','pluginName','sheets-exchange-client.config','amd','_initCommands','importXLSXToUnitId','ExportXLSXOperation','MenuItemType','SHEET_EXCHANGE_CLIENT_PLUGIN','onStarting','_commandService','UniverSheetsExchangeClientPlugin','46488IyleWE','type','merge','216PwfPhf','RibbonStartGroup','UniverUi','UniverInstanceType','exchange.file','Inject','exchange.upload','IConfigService','CommandType','OTHERS','object','add','SUBITEMS','UniverExchangeClientPlugin','@univerjs-pro/exchange-client','defineProperty','BUTTON','forEach','ICommandService','onReady','Plugin','getOwnPropertyDescriptor','@univerjs/sheets','length','UniverProExchangeClient','toStringTag','9653350dwwVID','UniverCore','exchange.download','exchange-client.operation.import-xlsx','_menuManagerService','_injector','registerCommand','Disposable','3YhYHtS','mergeMenu','setConfig','unit','IMenuManagerService','getCurrentRangeDisable$','OPERATION','_configService','DependentOn','Injector','_config','ImportXLSXOperation','@univerjs/sheets-ui','_initMenus','IExchangeOperateService','getMenuHiddenObservable','exportXLSXBySnapshot','get','UniverSheets','exchange-client.operation.export-xlsx','1272391PDktaI','exports','UNIVER_SHEET','WorkbookExportPermission','search','5180385BKWrKD','disposeWithMe','601962FSZWWY','exportXLSXByUnitId','function','6135126ZVdgIU'];_0x2bd7=function(){return _0x471aae;};return _0x2bd7();}function _0x1596(_0x38b33d,_0x3ce05c){const _0x2bd72e=_0x2bd7();return _0x1596=function(_0x1596bc,_0xe34579){_0x1596bc=_0x1596bc-0x142;let _0x38ba43=_0x2bd72e[_0x1596bc];return _0x38ba43;},_0x1596(_0x38b33d,_0x3ce05c);}(function(_0x163c7c,_0x34233e){const _0x2a32d1=_0x1596,_0x49f78f=_0x163c7c();while(!![]){try{const _0x1f0835=-parseInt(_0x2a32d1(0x146))/0x1+-parseInt(_0x2a32d1(0x14d))/0x2+-parseInt(_0x2a32d1(0x183))/0x3*(parseInt(_0x2a32d1(0x151))/0x4)+parseInt(_0x2a32d1(0x14b))/0x5+parseInt(_0x2a32d1(0x150))/0x6+parseInt(_0x2a32d1(0x17b))/0x7+-parseInt(_0x2a32d1(0x15e))/0x8*(parseInt(_0x2a32d1(0x161))/0x9);if(_0x1f0835===_0x34233e)break;else _0x49f78f['push'](_0x49f78f['shift']());}catch(_0x16ed75){_0x49f78f['push'](_0x49f78f['shift']());}}}(_0x2bd7,0xbc4e7),function(_0x1905da,_0x10e232){const _0x2a64d2=_0x1596;typeof exports==_0x2a64d2(0x16b)&&typeof module<'u'?_0x10e232(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x2a64d2(0x14f)&&define[_0x2a64d2(0x155)]?define([_0x2a64d2(0x147),_0x2a64d2(0x16f),'@univerjs/core','@univerjs/ui',_0x2a64d2(0x177),_0x2a64d2(0x18f)],_0x10e232):(_0x1905da=typeof globalThis<'u'?globalThis:_0x1905da||self,_0x10e232(_0x1905da['UniverProSheetsExchangeClient']={},_0x1905da[_0x2a64d2(0x179)],_0x1905da[_0x2a64d2(0x17c)],_0x1905da[_0x2a64d2(0x163)],_0x1905da[_0x2a64d2(0x144)],_0x1905da['UniverSheetsUi']));}(this,function(_0x2500ba,_0x3bd667,_0x23297f,_0x50c0f6,_0x26136d,_0x2f2af0){'use strict';const _0x2d4323=_0x1596;const _0x3b7ae1={'id':_0x2d4323(0x17e),'type':_0x23297f[_0x2d4323(0x169)][_0x2d4323(0x189)],'handler':async _0x3c51b9=>{const _0x558fff=_0x2d4323,_0x2db0c9=_0x3c51b9['get'](_0x3bd667[_0x558fff(0x191)]);return new URLSearchParams(location[_0x558fff(0x14a)])[_0x558fff(0x143)](_0x558fff(0x186))?_0x2db0c9[_0x558fff(0x157)]():_0x2db0c9[_0x558fff(0x152)](),!0x0;}},_0x5e4a13={'id':_0x2d4323(0x145),'type':_0x23297f['CommandType'][_0x2d4323(0x189)],'handler':async _0x1f4017=>{const _0xe23c17=_0x2d4323,_0x33adcf=_0x1f4017[_0xe23c17(0x143)](_0x3bd667[_0xe23c17(0x191)]);return new URLSearchParams(location[_0xe23c17(0x14a)])[_0xe23c17(0x143)]('unit')?_0x33adcf[_0xe23c17(0x14e)]():_0x33adcf[_0xe23c17(0x142)](),!0x0;}},_0x4b2716=_0x2d4323(0x154),_0x516e11={},_0xb53109='sheets-exchange-client.operation.exchange';function _0x19fa8a(_0x48b308){const _0x47b623=_0x2d4323;return{'id':_0xb53109,'type':_0x50c0f6['MenuItemType'][_0x47b623(0x16d)],'icon':'DirectExportIcon','tooltip':_0x47b623(0x165),'hidden$':_0x50c0f6[_0x47b623(0x192)](_0x48b308,_0x23297f['UniverInstanceType'][_0x47b623(0x148)]),'disabled$':_0x2f2af0[_0x47b623(0x188)](_0x48b308,{'workbookTypes':[_0x26136d[_0x47b623(0x149)]]})};}function _0xa5d971(){const _0x3d07ae=_0x2d4323;return{'id':_0x3b7ae1['id'],'type':_0x50c0f6[_0x3d07ae(0x159)][_0x3d07ae(0x171)],'title':_0x3d07ae(0x167),'icon':'FolderIcon'};}function _0x200b13(){const _0x17f2d2=_0x2d4323;return{'id':_0x5e4a13['id'],'type':_0x50c0f6[_0x17f2d2(0x159)][_0x17f2d2(0x171)],'title':_0x17f2d2(0x17d),'icon':'ExportIcon'};}const _0x3cdbf0={[_0x50c0f6[_0x2d4323(0x162)][_0x2d4323(0x16a)]]:{[_0xb53109]:{'order':0.3,'menuItemFactory':_0x19fa8a,[_0x3b7ae1['id']]:{'order':0x0,'menuItemFactory':_0xa5d971},[_0x5e4a13['id']]:{'order':0x1,'menuItemFactory':_0x200b13}}}};var _0x31b946=Object['getOwnPropertyDescriptor'],_0x5b89cb=(_0x197fe5,_0x4520dd,_0x120d8b,_0xcf6b40)=>{for(var _0x1a4a67=_0xcf6b40>0x1?void 0x0:_0xcf6b40?_0x31b946(_0x4520dd,_0x120d8b):_0x4520dd,_0x5e3ddd=_0x197fe5['length']-0x1,_0x531dcb;_0x5e3ddd>=0x0;_0x5e3ddd--)(_0x531dcb=_0x197fe5[_0x5e3ddd])&&(_0x1a4a67=_0x531dcb(_0x1a4a67)||_0x1a4a67);return _0x1a4a67;},_0x4ed99f=(_0x5ca1fd,_0x13a2f7)=>(_0x22fd17,_0x4527a5)=>_0x13a2f7(_0x22fd17,_0x4527a5,_0x5ca1fd);let _0x45cbd2=class extends _0x23297f[_0x2d4323(0x182)]{constructor(_0x5e33ad,_0x35bafe){const _0x47dc6e=_0x2d4323;super(),this[_0x47dc6e(0x15c)]=_0x5e33ad,this['_menuManagerService']=_0x35bafe,this['_initCommands'](),this[_0x47dc6e(0x190)]();}[_0x2d4323(0x156)](){const _0x1efb02=_0x2d4323;[_0x3b7ae1,_0x5e4a13][_0x1efb02(0x172)](_0x3d80be=>{const _0x1ccecb=_0x1efb02;this[_0x1ccecb(0x14c)](this[_0x1ccecb(0x15c)][_0x1ccecb(0x181)](_0x3d80be));});}[_0x2d4323(0x190)](){const _0x1b6ba2=_0x2d4323;this[_0x1b6ba2(0x17f)][_0x1b6ba2(0x184)](_0x3cdbf0);}};_0x45cbd2=_0x5b89cb([_0x4ed99f(0x0,_0x23297f[_0x2d4323(0x173)]),_0x4ed99f(0x1,_0x50c0f6[_0x2d4323(0x187)])],_0x45cbd2);var _0x7883f4=Object[_0x2d4323(0x170)],_0x29db69=Object[_0x2d4323(0x176)],_0x5bff68=(_0x3ed6dd,_0x35bed7,_0x36d865)=>_0x35bed7 in _0x3ed6dd?_0x7883f4(_0x3ed6dd,_0x35bed7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x36d865}):_0x3ed6dd[_0x35bed7]=_0x36d865,_0x4c2249=(_0x153652,_0x5600a4,_0x435dcf,_0x3bd43b)=>{const _0x1ccc9d=_0x2d4323;for(var _0x4de828=_0x3bd43b>0x1?void 0x0:_0x3bd43b?_0x29db69(_0x5600a4,_0x435dcf):_0x5600a4,_0x1b108b=_0x153652[_0x1ccc9d(0x178)]-0x1,_0x991bab;_0x1b108b>=0x0;_0x1b108b--)(_0x991bab=_0x153652[_0x1b108b])&&(_0x4de828=_0x991bab(_0x4de828)||_0x4de828);return _0x4de828;},_0x57865e=(_0x106bb9,_0x5c6d07)=>(_0x119db6,_0x4e2561)=>_0x5c6d07(_0x119db6,_0x4e2561,_0x106bb9),_0x5e86a3=(_0x17f6e4,_0x116ca6,_0x2ed322)=>_0x5bff68(_0x17f6e4,typeof _0x116ca6!='symbol'?_0x116ca6+'':_0x116ca6,_0x2ed322);const _0x3fad8c=_0x2d4323(0x15a);_0x2500ba[_0x2d4323(0x15d)]=class extends _0x23297f[_0x2d4323(0x175)]{constructor(_0x5da2b0=_0x516e11,_0x1d9025,_0x38a40b){const _0x655e60=_0x2d4323;super(),this[_0x655e60(0x18d)]=_0x5da2b0,this[_0x655e60(0x180)]=_0x1d9025,this[_0x655e60(0x18a)]=_0x38a40b;const {menu:_0x3295a1,..._0x378248}=_0x23297f[_0x655e60(0x160)]({},_0x516e11,this[_0x655e60(0x18d)]);_0x3295a1&&this[_0x655e60(0x18a)][_0x655e60(0x185)]('menu',_0x3295a1,{'merge':!0x0}),this[_0x655e60(0x18a)][_0x655e60(0x185)](_0x4b2716,_0x378248);}[_0x2d4323(0x15b)](){const _0x23f01a=_0x2d4323;[[_0x45cbd2]][_0x23f01a(0x172)](_0x1efaf1=>this[_0x23f01a(0x180)][_0x23f01a(0x16c)](_0x1efaf1));}[_0x2d4323(0x174)](){const _0x39432c=_0x2d4323;this[_0x39432c(0x180)][_0x39432c(0x143)](_0x45cbd2);}},_0x5e86a3(_0x2500ba[_0x2d4323(0x15d)],_0x2d4323(0x153),_0x3fad8c),_0x5e86a3(_0x2500ba['UniverSheetsExchangeClientPlugin'],_0x2d4323(0x15f),_0x23297f[_0x2d4323(0x164)][_0x2d4323(0x148)]),_0x2500ba[_0x2d4323(0x15d)]=_0x4c2249([_0x23297f[_0x2d4323(0x18b)](_0x3bd667[_0x2d4323(0x16e)]),_0x57865e(0x1,_0x23297f[_0x2d4323(0x166)](_0x23297f[_0x2d4323(0x18c)])),_0x57865e(0x2,_0x23297f[_0x2d4323(0x168)])],_0x2500ba[_0x2d4323(0x15d)]),_0x2500ba[_0x2d4323(0x158)]=_0x5e4a13,_0x2500ba[_0x2d4323(0x18e)]=_0x3b7ae1,Object[_0x2d4323(0x170)](_0x2500ba,Symbol[_0x2d4323(0x17a)],{'value':'Module'});}));
1
+ function _0x5ed0(_0x467918,_0x5eed54){const _0x3e0cf4=_0x3e0c();return _0x5ed0=function(_0x5ed095,_0x1849e5){_0x5ed095=_0x5ed095-0xe3;let _0x39425b=_0x3e0cf4[_0x5ed095];return _0x39425b;},_0x5ed0(_0x467918,_0x5eed54);}function _0x3e0c(){const _0x1debf4=['UniverSheetsExchangeClientPlugin','exchange-client.operation.export-xlsx','6585655aHXYAb','@univerjs/sheets-ui','importXLSXToUnitId','UniverExchangeClientPlugin','Module','1704477LSioKZ','2468090jwiSye','unit','exportXLSXByUnitId','OPERATION','amd','UniverCore','@univerjs/core','symbol','add','sheets-exchange-client.config','_commandService','BUTTON','sheets-exchange-client.operation.exchange','exports','ExportIcon','UniverSheets','89094NVdxWm','CommandType','217017SkMUGY','RibbonStartGroup','getMenuHiddenObservable','exchange-client.operation.import-xlsx','_config','toStringTag','SUBITEMS','ICommandService','length','_configService','UniverInstanceType','1926492mkDjJu','UniverSheetsUi','type','4gwTvEz','_initCommands','get','@univerjs/ui','registerCommand','9130065uGqTOv','UniverUi','_injector','merge','forEach','UNIVER_SHEET','function','IMenuManagerService','disposeWithMe','search','FolderIcon','IExchangeOperateService','importXLSXToSnapshot','@univerjs/sheets','WorkbookExportPermission','getOwnPropertyDescriptor','getCurrentRangeDisable$','exchange.upload','defineProperty','menu','SHEET_EXCHANGE_CLIENT_PLUGIN','setConfig','@univerjs-pro/exchange-client','UniverProSheetsExchangeClient','OTHERS','MenuItemType','136aCNVdc','DependentOn'];_0x3e0c=function(){return _0x1debf4;};return _0x3e0c();}(function(_0x157375,_0x2f0cee){const _0x1b2296=_0x5ed0,_0x154392=_0x157375();while(!![]){try{const _0x2435f6=parseInt(_0x1b2296(0x122))/0x1+-parseInt(_0x1b2296(0x112))/0x2+-parseInt(_0x1b2296(0x111))/0x3+parseInt(_0x1b2296(0xe9))/0x4*(parseInt(_0x1b2296(0x10c))/0x5)+parseInt(_0x1b2296(0xe6))/0x6+parseInt(_0x1b2296(0xee))/0x7+parseInt(_0x1b2296(0x108))/0x8*(-parseInt(_0x1b2296(0x124))/0x9);if(_0x2435f6===_0x2f0cee)break;else _0x154392['push'](_0x154392['shift']());}catch(_0xb87aa){_0x154392['push'](_0x154392['shift']());}}}(_0x3e0c,0xc8115),function(_0x28c108,_0x12cede){const _0x27c36b=_0x5ed0;typeof exports=='object'&&typeof module<'u'?_0x12cede(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x27c36b(0xf4)&&define[_0x27c36b(0x116)]?define([_0x27c36b(0x11f),_0x27c36b(0x104),_0x27c36b(0x118),_0x27c36b(0xec),_0x27c36b(0xfb),_0x27c36b(0x10d)],_0x12cede):(_0x28c108=typeof globalThis<'u'?globalThis:_0x28c108||self,_0x12cede(_0x28c108[_0x27c36b(0x105)]={},_0x28c108['UniverProExchangeClient'],_0x28c108[_0x27c36b(0x117)],_0x28c108[_0x27c36b(0xef)],_0x28c108[_0x27c36b(0x121)],_0x28c108[_0x27c36b(0xe7)]));}(this,function(_0x31fefc,_0x381030,_0x564d7d,_0x7d5695,_0x20141e,_0x446302){'use strict';const _0x2fe283=_0x5ed0;const _0x4a5e91={'id':_0x2fe283(0x127),'type':_0x564d7d[_0x2fe283(0x123)]['OPERATION'],'handler':async _0x1025c8=>{const _0x505a63=_0x2fe283,_0x43667a=_0x1025c8['get'](_0x381030[_0x505a63(0xf9)]);return new URLSearchParams(location[_0x505a63(0xf7)])[_0x505a63(0xeb)](_0x505a63(0x113))?_0x43667a[_0x505a63(0x10e)]():_0x43667a[_0x505a63(0xfa)](),!0x0;}},_0x54d616={'id':_0x2fe283(0x10b),'type':_0x564d7d[_0x2fe283(0x123)][_0x2fe283(0x115)],'handler':async _0x5e38bc=>{const _0x5be83b=_0x2fe283,_0x3eb5b9=_0x5e38bc[_0x5be83b(0xeb)](_0x381030[_0x5be83b(0xf9)]);return new URLSearchParams(location['search'])[_0x5be83b(0xeb)](_0x5be83b(0x113))?_0x3eb5b9[_0x5be83b(0x114)]():_0x3eb5b9['exportXLSXBySnapshot'](),!0x0;}},_0x986193=_0x2fe283(0x11b),_0x555131={},_0x39d636=_0x2fe283(0x11e);function _0x3fc673(_0x2b5d4a){const _0x50289e=_0x2fe283;return{'id':_0x39d636,'type':_0x7d5695['MenuItemType'][_0x50289e(0x12a)],'icon':'DirectExportIcon','tooltip':'exchange.file','hidden$':_0x7d5695[_0x50289e(0x126)](_0x2b5d4a,_0x564d7d[_0x50289e(0xe5)][_0x50289e(0xf3)]),'disabled$':_0x446302[_0x50289e(0xfe)](_0x2b5d4a,{'workbookTypes':[_0x20141e[_0x50289e(0xfc)]]})};}function _0xe03d91(){const _0x48e208=_0x2fe283;return{'id':_0x4a5e91['id'],'type':_0x7d5695[_0x48e208(0x107)][_0x48e208(0x11d)],'title':_0x48e208(0xff),'icon':_0x48e208(0xf8)};}function _0x498ce8(){const _0x37f037=_0x2fe283;return{'id':_0x54d616['id'],'type':_0x7d5695[_0x37f037(0x107)][_0x37f037(0x11d)],'title':'exchange.download','icon':_0x37f037(0x120)};}const _0xd838de={[_0x7d5695[_0x2fe283(0x125)][_0x2fe283(0x106)]]:{[_0x39d636]:{'order':0.3,'menuItemFactory':_0x3fc673,[_0x4a5e91['id']]:{'order':0x0,'menuItemFactory':_0xe03d91},[_0x54d616['id']]:{'order':0x1,'menuItemFactory':_0x498ce8}}}};var _0x79c357=Object[_0x2fe283(0xfd)],_0x1b539e=(_0x2737b1,_0x559a47,_0x3a4ddd,_0x2b0eac)=>{const _0x3f4140=_0x2fe283;for(var _0x895efd=_0x2b0eac>0x1?void 0x0:_0x2b0eac?_0x79c357(_0x559a47,_0x3a4ddd):_0x559a47,_0x5b116b=_0x2737b1[_0x3f4140(0xe3)]-0x1,_0x2e7245;_0x5b116b>=0x0;_0x5b116b--)(_0x2e7245=_0x2737b1[_0x5b116b])&&(_0x895efd=_0x2e7245(_0x895efd)||_0x895efd);return _0x895efd;},_0x154393=(_0x34c583,_0x442818)=>(_0x255e14,_0x3686ac)=>_0x442818(_0x255e14,_0x3686ac,_0x34c583);let _0x289885=class extends _0x564d7d['Disposable']{constructor(_0x513201,_0x1c7211){const _0x3121e3=_0x2fe283;super(),this[_0x3121e3(0x11c)]=_0x513201,this['_menuManagerService']=_0x1c7211,this[_0x3121e3(0xea)](),this['_initMenus']();}[_0x2fe283(0xea)](){const _0x2d9454=_0x2fe283;[_0x4a5e91,_0x54d616][_0x2d9454(0xf2)](_0x5c52e8=>{const _0x386578=_0x2d9454;this[_0x386578(0xf6)](this['_commandService'][_0x386578(0xed)](_0x5c52e8));});}['_initMenus'](){this['_menuManagerService']['mergeMenu'](_0xd838de);}};_0x289885=_0x1b539e([_0x154393(0x0,_0x564d7d[_0x2fe283(0x12b)]),_0x154393(0x1,_0x7d5695[_0x2fe283(0xf5)])],_0x289885);var _0x27cdfa=Object[_0x2fe283(0x100)],_0x5b93f2=Object[_0x2fe283(0xfd)],_0x2fe666=(_0x79d64e,_0xaecf27,_0xf281f7)=>_0xaecf27 in _0x79d64e?_0x27cdfa(_0x79d64e,_0xaecf27,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf281f7}):_0x79d64e[_0xaecf27]=_0xf281f7,_0x4d8f19=(_0x30534f,_0x1b32c2,_0x51802e,_0x37a9ad)=>{const _0x2f2c78=_0x2fe283;for(var _0x404099=_0x37a9ad>0x1?void 0x0:_0x37a9ad?_0x5b93f2(_0x1b32c2,_0x51802e):_0x1b32c2,_0x5313bf=_0x30534f[_0x2f2c78(0xe3)]-0x1,_0x22fce0;_0x5313bf>=0x0;_0x5313bf--)(_0x22fce0=_0x30534f[_0x5313bf])&&(_0x404099=_0x22fce0(_0x404099)||_0x404099);return _0x404099;},_0x11a075=(_0x2c4892,_0x42e904)=>(_0x6911c0,_0x4c14e5)=>_0x42e904(_0x6911c0,_0x4c14e5,_0x2c4892),_0x108a2c=(_0x32f893,_0x4af1f4,_0xf645f5)=>_0x2fe666(_0x32f893,typeof _0x4af1f4!=_0x2fe283(0x119)?_0x4af1f4+'':_0x4af1f4,_0xf645f5);const _0x3afc3b=_0x2fe283(0x102);_0x31fefc['UniverSheetsExchangeClientPlugin']=class extends _0x564d7d['Plugin']{constructor(_0x493e41=_0x555131,_0x4493be,_0x46e235){const _0x2fdfd4=_0x2fe283;super(),this[_0x2fdfd4(0x128)]=_0x493e41,this[_0x2fdfd4(0xf0)]=_0x4493be,this[_0x2fdfd4(0xe4)]=_0x46e235;const {menu:_0x5dab62,..._0x3200ad}=_0x564d7d[_0x2fdfd4(0xf1)]({},_0x555131,this[_0x2fdfd4(0x128)]);_0x5dab62&&this[_0x2fdfd4(0xe4)][_0x2fdfd4(0x103)](_0x2fdfd4(0x101),_0x5dab62,{'merge':!0x0}),this[_0x2fdfd4(0xe4)][_0x2fdfd4(0x103)](_0x986193,_0x3200ad);}['onStarting'](){const _0x90a2df=_0x2fe283;[[_0x289885]][_0x90a2df(0xf2)](_0x35675d=>this[_0x90a2df(0xf0)][_0x90a2df(0x11a)](_0x35675d));}['onReady'](){const _0x45407b=_0x2fe283;this[_0x45407b(0xf0)]['get'](_0x289885);}},_0x108a2c(_0x31fefc[_0x2fe283(0x10a)],'pluginName',_0x3afc3b),_0x108a2c(_0x31fefc[_0x2fe283(0x10a)],_0x2fe283(0xe8),_0x564d7d[_0x2fe283(0xe5)][_0x2fe283(0xf3)]),_0x31fefc[_0x2fe283(0x10a)]=_0x4d8f19([_0x564d7d[_0x2fe283(0x109)](_0x381030[_0x2fe283(0x10f)]),_0x11a075(0x1,_0x564d7d['Inject'](_0x564d7d['Injector'])),_0x11a075(0x2,_0x564d7d['IConfigService'])],_0x31fefc[_0x2fe283(0x10a)]),_0x31fefc['ExportXLSXOperation']=_0x54d616,_0x31fefc['ImportXLSXOperation']=_0x4a5e91,Object[_0x2fe283(0x100)](_0x31fefc,Symbol[_0x2fe283(0x129)],{'value':_0x2fe283(0x110)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.10.9-nightly.202509260614",
3
+ "version": "0.10.10",
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.9-nightly.202509260614",
46
- "@univerjs/core": "0.10.9-nightly.202509260614",
47
- "@univerjs/sheets": "0.10.9-nightly.202509260614",
48
- "@univerjs/sheets-ui": "0.10.9-nightly.202509260614",
49
- "@univerjs/ui": "0.10.9-nightly.202509260614"
45
+ "@univerjs-pro/exchange-client": "0.10.10",
46
+ "@univerjs/core": "0.10.10",
47
+ "@univerjs/ui": "0.10.10",
48
+ "@univerjs/sheets": "0.10.10",
49
+ "@univerjs/sheets-ui": "0.10.10"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.2",
53
53
  "vite": "^7.1.3",
54
54
  "vitest": "^3.2.4",
55
- "@univerjs-infra/shared": "0.10.9"
55
+ "@univerjs-infra/shared": "0.10.10"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run",