@univerjs-pro/sheets-exchange-client 0.15.3-insiders.20260131-b9b8805 → 0.15.3-insiders.20260131-cbd5fac

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 _0x2177e2=_0x4788;(function(_0x55ec3e,_0x55d8bf){const _0xeeecb2=_0x4788,_0x291298=_0x55ec3e();while(!![]){try{const _0x27c352=parseInt(_0xeeecb2(0xcf))/0x1*(-parseInt(_0xeeecb2(0xb1))/0x2)+-parseInt(_0xeeecb2(0xc3))/0x3*(-parseInt(_0xeeecb2(0xa1))/0x4)+-parseInt(_0xeeecb2(0xbc))/0x5+parseInt(_0xeeecb2(0xba))/0x6+parseInt(_0xeeecb2(0xc1))/0x7+-parseInt(_0xeeecb2(0xc8))/0x8*(-parseInt(_0xeeecb2(0xdb))/0x9)+-parseInt(_0xeeecb2(0xb3))/0xa*(parseInt(_0xeeecb2(0xc6))/0xb);if(_0x27c352===_0x55d8bf)break;else _0x291298['push'](_0x291298['shift']());}catch(_0x29122f){_0x291298['push'](_0x291298['shift']());}}}(_0x4af5,0x3aff2));Object[_0x2177e2(0xbb)](exports,Symbol[_0x2177e2(0xb8)],{'value':_0x2177e2(0xd6)});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':'exchange-client.operation.import-xlsx','type':i[_0x2177e2(0xc2)]['OPERATION'],'handler':async _0x4f42da=>{const _0x49da97=_0x2177e2,_0xe7ed12=_0x4f42da[_0x49da97(0xd5)](g[_0x49da97(0xd8)]);return new URLSearchParams(location[_0x49da97(0xda)])[_0x49da97(0xd5)](_0x49da97(0xd2))?_0xe7ed12[_0x49da97(0xb9)]():_0xe7ed12['importXLSXToSnapshot'](),!0x0;}},p={'id':_0x2177e2(0xce),'type':i[_0x2177e2(0xc2)][_0x2177e2(0xcd)],'handler':async _0x3ebe47=>{const _0x48846d=_0x2177e2,_0xe33e05=_0x3ebe47['get'](g[_0x48846d(0xd8)]);return new URLSearchParams(location['search'])[_0x48846d(0xd5)](_0x48846d(0xd2))?_0xe33e05[_0x48846d(0xa8)]():_0xe33e05['exportXLSXBySnapshot'](),!0x0;}},v=_0x2177e2(0xc4),h={},S=_0x2177e2(0xa0);function x(_0x1fcc0a){const _0x394d2b=_0x2177e2;return{'id':S,'type':c[_0x394d2b(0xdc)]['SUBITEMS'],'icon':_0x394d2b(0xa7),'tooltip':_0x394d2b(0xa4),'hidden$':c[_0x394d2b(0xb4)](_0x1fcc0a,i[_0x394d2b(0x9f)][_0x394d2b(0xaa)]),'disabled$':I[_0x394d2b(0xcb)](_0x1fcc0a,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x3fa774=_0x2177e2;return{'id':l['id'],'type':c['MenuItemType']['BUTTON'],'title':'exchange.upload','icon':_0x3fa774(0xc5)};}function C(){const _0x3efbf1=_0x2177e2;return{'id':p['id'],'type':c[_0x3efbf1(0xdc)]['BUTTON'],'title':'exchange.download','icon':_0x3efbf1(0xb2)};}const f={[c[_0x2177e2(0xd0)][_0x2177e2(0xa2)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x4dcf50,_0x34b571,_0xd1fe72,_0xb49dd3)=>{const _0x3ed683=_0x2177e2;for(var _0x2683f2=_0xb49dd3>0x1?void 0x0:_0xb49dd3?T(_0x34b571,_0xd1fe72):_0x34b571,_0x57b449=_0x4dcf50[_0x3ed683(0xb0)]-0x1,_0x5c52e6;_0x57b449>=0x0;_0x57b449--)(_0x5c52e6=_0x4dcf50[_0x57b449])&&(_0x2683f2=_0x5c52e6(_0x2683f2)||_0x2683f2);return _0x2683f2;},m=(_0x15e967,_0xfe18a5)=>(_0x2ffe67,_0x186b9e)=>_0xfe18a5(_0x2ffe67,_0x186b9e,_0x15e967);let u=class extends i['Disposable']{constructor(_0x4c2490,_0xc1af45){const _0x11cfdd=_0x2177e2;super(),this['_commandService']=_0x4c2490,this[_0x11cfdd(0xa3)]=_0xc1af45,this['_initCommands'](),this['_initMenus']();}[_0x2177e2(0xca)](){const _0x239224=_0x2177e2;[l,p][_0x239224(0xb7)](_0x48e0d9=>{const _0x690e3a=_0x239224;this[_0x690e3a(0xdf)](this[_0x690e3a(0xab)][_0x690e3a(0xd1)](_0x48e0d9));});}[_0x2177e2(0x9e)](){const _0x1fdf62=_0x2177e2;this[_0x1fdf62(0xa3)][_0x1fdf62(0xd7)](f);}};function _0x4af5(){const _0x3a4c0a=['4728NIVxmB','_injector','_initCommands','getCurrentRangeDisable$','getOwnPropertyDescriptor','OPERATION','exchange-client.operation.export-xlsx','4283hCqDFb','RibbonStartGroup','registerCommand','unit','_configService','type','get','Module','mergeMenu','IExchangeOperateService','menu','search','6624fdIxgM','MenuItemType','ImportXLSXOperation','DependentOn','disposeWithMe','IMenuManagerService','pluginName','_initMenus','UniverInstanceType','sheets-exchange-client.operation.exchange','196956ooRCGx','OTHERS','_menuManagerService','exchange.file','UniverExchangeClientPlugin','setConfig','DirectExportIcon','exportXLSXByUnitId','onReady','UNIVER_SHEET','_commandService','onStarting','IConfigService','symbol','Inject','length','194vdQckM','ExportIcon','48670ICosyY','getMenuHiddenObservable','UniverSheetsExchangeClientPlugin','add','forEach','toStringTag','importXLSXToUnitId','2849922lxfJtR','defineProperty','1543970UkdAcM','ExportXLSXOperation','SHEET_EXCHANGE_CLIENT_PLUGIN','Plugin','ICommandService','966714onEPiy','CommandType','3gvBubM','sheets-exchange-client.config','FolderIcon','297fPolRx','_config'];_0x4af5=function(){return _0x3a4c0a;};return _0x4af5();}u=y([m(0x0,i[_0x2177e2(0xc0)]),m(0x1,c[_0x2177e2(0xe0)])],u);function _0x4788(_0x783f08,_0x567a85){_0x783f08=_0x783f08-0x9e;const _0x4af5a7=_0x4af5();let _0x4788f7=_0x4af5a7[_0x783f08];return _0x4788f7;}var O=Object[_0x2177e2(0xbb)],U=Object[_0x2177e2(0xcc)],X=(_0x11a88c,_0xc85544,_0x4417f)=>_0xc85544 in _0x11a88c?O(_0x11a88c,_0xc85544,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4417f}):_0x11a88c[_0xc85544]=_0x4417f,N=(_0x368659,_0x59abf0,_0x2a34de,_0x27bed1)=>{for(var _0x1a02c6=_0x27bed1>0x1?void 0x0:_0x27bed1?U(_0x59abf0,_0x2a34de):_0x59abf0,_0x33b843=_0x368659['length']-0x1,_0x593e12;_0x33b843>=0x0;_0x33b843--)(_0x593e12=_0x368659[_0x33b843])&&(_0x1a02c6=_0x593e12(_0x1a02c6)||_0x1a02c6);return _0x1a02c6;},d=(_0x51d473,_0x38637c)=>(_0x19b2b5,_0x528729)=>_0x38637c(_0x19b2b5,_0x528729,_0x51d473),E=(_0x2d407f,_0x3a9b5f,_0xd6861e)=>X(_0x2d407f,typeof _0x3a9b5f!=_0x2177e2(0xae)?_0x3a9b5f+'':_0x3a9b5f,_0xd6861e);const L=_0x2177e2(0xbe);exports[_0x2177e2(0xb5)]=class extends i[_0x2177e2(0xbf)]{constructor(_0x35ea47=h,_0x379a80,_0x5e4f99){const _0x474d64=_0x2177e2;super(),this[_0x474d64(0xc7)]=_0x35ea47,this['_injector']=_0x379a80,this[_0x474d64(0xd3)]=_0x5e4f99;const {menu:_0x5a52bf,..._0x529661}=i['merge']({},h,this[_0x474d64(0xc7)]);_0x5a52bf&&this[_0x474d64(0xd3)]['setConfig'](_0x474d64(0xd9),_0x5a52bf,{'merge':!0x0}),this[_0x474d64(0xd3)][_0x474d64(0xa6)](v,_0x529661);}[_0x2177e2(0xac)](){const _0x48bd80=_0x2177e2;[[u]][_0x48bd80(0xb7)](_0x58e8a0=>this[_0x48bd80(0xc9)][_0x48bd80(0xb6)](_0x58e8a0));}[_0x2177e2(0xa9)](){const _0x4f5ab4=_0x2177e2;this[_0x4f5ab4(0xc9)][_0x4f5ab4(0xd5)](u);}},E(exports[_0x2177e2(0xb5)],_0x2177e2(0xe1),L),E(exports['UniverSheetsExchangeClientPlugin'],_0x2177e2(0xd4),i[_0x2177e2(0x9f)][_0x2177e2(0xaa)]),exports[_0x2177e2(0xb5)]=N([i[_0x2177e2(0xde)](g[_0x2177e2(0xa5)]),d(0x1,i[_0x2177e2(0xaf)](i['Injector'])),d(0x2,i[_0x2177e2(0xad)])],exports[_0x2177e2(0xb5)]),exports[_0x2177e2(0xbd)]=p,exports[_0x2177e2(0xdd)]=l;
1
+ 'use strict';function _0x5336(_0x1e7abd,_0x5a6ad3){_0x1e7abd=_0x1e7abd-0x117;const _0x32fc31=_0x32fc();let _0x533659=_0x32fc31[_0x1e7abd];return _0x533659;}const _0x2daf80=_0x5336;(function(_0x241dac,_0x20d728){const _0x716f17=_0x5336,_0x47278a=_0x241dac();while(!![]){try{const _0x4e7e13=-parseInt(_0x716f17(0x11a))/0x1*(-parseInt(_0x716f17(0x11b))/0x2)+-parseInt(_0x716f17(0x14c))/0x3*(parseInt(_0x716f17(0x137))/0x4)+parseInt(_0x716f17(0x118))/0x5+-parseInt(_0x716f17(0x129))/0x6*(-parseInt(_0x716f17(0x12a))/0x7)+-parseInt(_0x716f17(0x132))/0x8*(-parseInt(_0x716f17(0x127))/0x9)+-parseInt(_0x716f17(0x157))/0xa*(-parseInt(_0x716f17(0x119))/0xb)+-parseInt(_0x716f17(0x11d))/0xc;if(_0x4e7e13===_0x20d728)break;else _0x47278a['push'](_0x47278a['shift']());}catch(_0x15fb5a){_0x47278a['push'](_0x47278a['shift']());}}}(_0x32fc,0xe45c2));Object['defineProperty'](exports,Symbol[_0x2daf80(0x131)],{'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':_0x2daf80(0x156),'type':i[_0x2daf80(0x11f)][_0x2daf80(0x13f)],'handler':async _0x3db9ca=>{const _0x4e7b63=_0x2daf80,_0x3b3304=_0x3db9ca[_0x4e7b63(0x147)](g[_0x4e7b63(0x155)]);return new URLSearchParams(location['search'])['get'](_0x4e7b63(0x14a))?_0x3b3304[_0x4e7b63(0x136)]():_0x3b3304[_0x4e7b63(0x159)](),!0x0;}},p={'id':_0x2daf80(0x11c),'type':i['CommandType']['OPERATION'],'handler':async _0x8837a6=>{const _0xc8b930=_0x2daf80,_0x16d0c9=_0x8837a6[_0xc8b930(0x147)](g[_0xc8b930(0x155)]);return new URLSearchParams(location['search'])[_0xc8b930(0x147)]('unit')?_0x16d0c9['exportXLSXByUnitId']():_0x16d0c9[_0xc8b930(0x134)](),!0x0;}},v=_0x2daf80(0x13b),h={},S='sheets-exchange-client.operation.exchange';function x(_0x232d99){const _0x2c25c2=_0x2daf80;return{'id':S,'type':c[_0x2c25c2(0x14b)][_0x2c25c2(0x125)],'icon':_0x2c25c2(0x12c),'tooltip':_0x2c25c2(0x12e),'hidden$':c[_0x2c25c2(0x143)](_0x232d99,i[_0x2c25c2(0x11e)][_0x2c25c2(0x141)]),'disabled$':I[_0x2c25c2(0x135)](_0x232d99,{'workbookTypes':[_[_0x2c25c2(0x145)]]})};}function P(){const _0x24c6d3=_0x2daf80;return{'id':l['id'],'type':c[_0x24c6d3(0x14b)][_0x24c6d3(0x130)],'title':_0x24c6d3(0x154),'icon':_0x24c6d3(0x121)};}function C(){const _0x53855a=_0x2daf80;return{'id':p['id'],'type':c['MenuItemType'][_0x53855a(0x130)],'title':_0x53855a(0x13c),'icon':'ExportIcon'};}const f={[c[_0x2daf80(0x120)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};function _0x32fc(){const _0x30538f=['ImportXLSXOperation','UniverExchangeClientPlugin','DependentOn','_injector','exchange.upload','IExchangeOperateService','exchange-client.operation.import-xlsx','20stdFOF','menu','importXLSXToSnapshot','symbol','3890660ynXhGh','4458817mqgaEo','9aFKCix','277658aVStBj','exchange-client.operation.export-xlsx','24734256SahPLr','UniverInstanceType','CommandType','RibbonStartGroup','FolderIcon','Inject','_commandService','_initMenus','SUBITEMS','getOwnPropertyDescriptor','666whaeLg','_config','25614bzhQWB','217hMtfnz','_configService','DirectExportIcon','forEach','exchange.file','setConfig','BUTTON','toStringTag','143064WOUJRl','defineProperty','exportXLSXBySnapshot','getCurrentRangeDisable$','importXLSXToUnitId','8ugBpWp','Disposable','onStarting','UniverSheetsExchangeClientPlugin','sheets-exchange-client.config','exchange.download','Injector','IConfigService','OPERATION','ExportXLSXOperation','UNIVER_SHEET','mergeMenu','getMenuHiddenObservable','length','WorkbookExportPermission','merge','get','disposeWithMe','Plugin','unit','MenuItemType','1946127FUFixl','add','SHEET_EXCHANGE_CLIENT_PLUGIN','type'];_0x32fc=function(){return _0x30538f;};return _0x32fc();}var T=Object[_0x2daf80(0x126)],y=(_0x2254bb,_0xd9f97,_0x2c1b2a,_0x24e507)=>{for(var _0x14058a=_0x24e507>0x1?void 0x0:_0x24e507?T(_0xd9f97,_0x2c1b2a):_0xd9f97,_0x37cba5=_0x2254bb['length']-0x1,_0x2928bb;_0x37cba5>=0x0;_0x37cba5--)(_0x2928bb=_0x2254bb[_0x37cba5])&&(_0x14058a=_0x2928bb(_0x14058a)||_0x14058a);return _0x14058a;},m=(_0x341e58,_0x4540a4)=>(_0x276774,_0x4604d0)=>_0x4540a4(_0x276774,_0x4604d0,_0x341e58);let u=class extends i[_0x2daf80(0x138)]{constructor(_0x528eb3,_0x41d9c1){const _0x1fc0bb=_0x2daf80;super(),this[_0x1fc0bb(0x123)]=_0x528eb3,this['_menuManagerService']=_0x41d9c1,this['_initCommands'](),this[_0x1fc0bb(0x124)]();}['_initCommands'](){[l,p]['forEach'](_0x3f6b26=>{const _0x3f6647=_0x5336;this[_0x3f6647(0x148)](this[_0x3f6647(0x123)]['registerCommand'](_0x3f6b26));});}[_0x2daf80(0x124)](){const _0x2d60a8=_0x2daf80;this['_menuManagerService'][_0x2d60a8(0x142)](f);}};u=y([m(0x0,i['ICommandService']),m(0x1,c['IMenuManagerService'])],u);var O=Object[_0x2daf80(0x133)],U=Object[_0x2daf80(0x126)],X=(_0x4ccc43,_0x440ed8,_0x3d54ef)=>_0x440ed8 in _0x4ccc43?O(_0x4ccc43,_0x440ed8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d54ef}):_0x4ccc43[_0x440ed8]=_0x3d54ef,N=(_0x5568db,_0x580957,_0x544826,_0x16bc79)=>{const _0x16ab0a=_0x2daf80;for(var _0x2b83fa=_0x16bc79>0x1?void 0x0:_0x16bc79?U(_0x580957,_0x544826):_0x580957,_0x27599d=_0x5568db[_0x16ab0a(0x144)]-0x1,_0x264c8a;_0x27599d>=0x0;_0x27599d--)(_0x264c8a=_0x5568db[_0x27599d])&&(_0x2b83fa=_0x264c8a(_0x2b83fa)||_0x2b83fa);return _0x2b83fa;},d=(_0xac279b,_0x565b45)=>(_0x3f0814,_0x47739a)=>_0x565b45(_0x3f0814,_0x47739a,_0xac279b),E=(_0x4199a6,_0x24192e,_0x4a7f54)=>X(_0x4199a6,typeof _0x24192e!=_0x2daf80(0x117)?_0x24192e+'':_0x24192e,_0x4a7f54);const L=_0x2daf80(0x14e);exports['UniverSheetsExchangeClientPlugin']=class extends i[_0x2daf80(0x149)]{constructor(_0x2647ae=h,_0x51e729,_0x5b94d7){const _0x55d2c2=_0x2daf80;super(),this[_0x55d2c2(0x128)]=_0x2647ae,this['_injector']=_0x51e729,this[_0x55d2c2(0x12b)]=_0x5b94d7;const {menu:_0x1b5299,..._0x28f921}=i[_0x55d2c2(0x146)]({},h,this['_config']);_0x1b5299&&this[_0x55d2c2(0x12b)]['setConfig'](_0x55d2c2(0x158),_0x1b5299,{'merge':!0x0}),this[_0x55d2c2(0x12b)][_0x55d2c2(0x12f)](v,_0x28f921);}[_0x2daf80(0x139)](){const _0x54ddae=_0x2daf80;[[u]][_0x54ddae(0x12d)](_0x2da2bf=>this[_0x54ddae(0x153)][_0x54ddae(0x14d)](_0x2da2bf));}['onReady'](){const _0x3818d8=_0x2daf80;this[_0x3818d8(0x153)][_0x3818d8(0x147)](u);}},E(exports[_0x2daf80(0x13a)],'pluginName',L),E(exports[_0x2daf80(0x13a)],_0x2daf80(0x14f),i[_0x2daf80(0x11e)][_0x2daf80(0x141)]),exports['UniverSheetsExchangeClientPlugin']=N([i[_0x2daf80(0x152)](g[_0x2daf80(0x151)]),d(0x1,i[_0x2daf80(0x122)](i[_0x2daf80(0x13d)])),d(0x2,i[_0x2daf80(0x13e)])],exports[_0x2daf80(0x13a)]),exports[_0x2daf80(0x140)]=p,exports[_0x2daf80(0x150)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x51e65d=_0x1cbf;(function(_0x44e1e7,_0x554870){const _0x4c5812=_0x1cbf,_0x23dfdf=_0x44e1e7();while(!![]){try{const _0x5256d5=-parseInt(_0x4c5812(0x1c3))/0x1+parseInt(_0x4c5812(0x1ca))/0x2+parseInt(_0x4c5812(0x1a6))/0x3*(parseInt(_0x4c5812(0x1c6))/0x4)+parseInt(_0x4c5812(0x1bf))/0x5*(parseInt(_0x4c5812(0x1c5))/0x6)+-parseInt(_0x4c5812(0x1c7))/0x7*(parseInt(_0x4c5812(0x1ab))/0x8)+parseInt(_0x4c5812(0x1cd))/0x9+-parseInt(_0x4c5812(0x1c8))/0xa;if(_0x5256d5===_0x554870)break;else _0x23dfdf['push'](_0x23dfdf['shift']());}catch(_0xb7da06){_0x23dfdf['push'](_0x23dfdf['shift']());}}}(_0x3c6c,0x54a79));import{IExchangeOperateService as _0x2bf989,UniverExchangeClientPlugin as _0x2ad91b}from'@univerjs-pro/exchange-client';function _0x3c6c(){const _0x79e90e=['pluginName','exchange.upload','_initCommands','unit','exportXLSXBySnapshot','defineProperty','search','OTHERS','2355455nggsxg','DirectExportIcon','exchange.file','length','289140ZPfbGX','sheets-exchange-client.config','6druWKY','148MyzeQU','992271gOngsT','5512100IsgpRL','exchange.download','538152fCuvaS','_config','symbol','3675861VtxrrI','_injector','BUTTON','getOwnPropertyDescriptor','OPERATION','onReady','setConfig','_menuManagerService','importXLSXToSnapshot','exchange-client.operation.export-xlsx','exchange-client.operation.import-xlsx','SUBITEMS','menu','add','37602xLuGKg','_initMenus','get','exportXLSXByUnitId','mergeMenu','24wOxYjg','ExportIcon','onStarting','FolderIcon','type','registerCommand','SHEET_EXCHANGE_CLIENT_PLUGIN','disposeWithMe','forEach','UNIVER_SHEET','_commandService','_configService'];_0x3c6c=function(){return _0x79e90e;};return _0x3c6c();}import{CommandType as _0x4b8fb8,UniverInstanceType as _0x5b58a3,Disposable as _0x16b32a,ICommandService as _0x4fcda2,DependentOn as _0x5c8fbb,Inject as _0x5649d6,Injector as _0x36d2bf,Plugin as _0x2d76a3,merge as _0x3f60dd,IConfigService as _0x2690f8}from'@univerjs/core';import{MenuItemType as _0x4a1abc,getMenuHiddenObservable as _0x242d33,RibbonStartGroup as _0x3e951a,IMenuManagerService as _0x278dfd}from'@univerjs/ui';import{WorkbookExportPermission as _0x4e4491}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x359648}from'@univerjs/sheets-ui';const p={'id':_0x51e65d(0x1d7),'type':_0x4b8fb8['OPERATION'],'handler':async _0x224910=>{const _0x16859e=_0x51e65d,_0x54cca5=_0x224910['get'](_0x2bf989);return new URLSearchParams(location['search'])[_0x16859e(0x1a8)](_0x16859e(0x1ba))?_0x54cca5['importXLSXToUnitId']():_0x54cca5[_0x16859e(0x1d5)](),!0x0;}},u={'id':_0x51e65d(0x1d6),'type':_0x4b8fb8[_0x51e65d(0x1d1)],'handler':async _0x54c711=>{const _0x58f39d=_0x51e65d,_0x511338=_0x54c711['get'](_0x2bf989);return new URLSearchParams(location[_0x58f39d(0x1bd)])['get'](_0x58f39d(0x1ba))?_0x511338[_0x58f39d(0x1a9)]():_0x511338[_0x58f39d(0x1bb)](),!0x0;}},H=_0x51e65d(0x1c4),l={},S='sheets-exchange-client.operation.exchange';function R(_0x9b5b84){const _0x2fe05c=_0x51e65d;return{'id':S,'type':_0x4a1abc[_0x2fe05c(0x1d8)],'icon':_0x2fe05c(0x1c0),'tooltip':_0x2fe05c(0x1c1),'hidden$':_0x242d33(_0x9b5b84,_0x5b58a3[_0x2fe05c(0x1b4)]),'disabled$':_0x359648(_0x9b5b84,{'workbookTypes':[_0x4e4491]})};}function w(){const _0x68835c=_0x51e65d;return{'id':p['id'],'type':_0x4a1abc[_0x68835c(0x1cf)],'title':_0x68835c(0x1b8),'icon':_0x68835c(0x1ae)};}function _0x1cbf(_0x159ce9,_0x10dfb0){_0x159ce9=_0x159ce9-0x1a5;const _0x3c6c13=_0x3c6c();let _0x1cbf82=_0x3c6c13[_0x159ce9];return _0x1cbf82;}function D(){const _0x251a45=_0x51e65d;return{'id':u['id'],'type':_0x4a1abc[_0x251a45(0x1cf)],'title':_0x251a45(0x1c9),'icon':_0x251a45(0x1ac)};}const F={[_0x3e951a[_0x51e65d(0x1be)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x51e65d(0x1d0)],A=(_0x498064,_0x50ad20,_0x428da1,_0x3898a5)=>{const _0x3a0fdd=_0x51e65d;for(var _0x4a4d72=_0x3898a5>0x1?void 0x0:_0x3898a5?G(_0x50ad20,_0x428da1):_0x50ad20,_0x575578=_0x498064[_0x3a0fdd(0x1c2)]-0x1,_0x3ace9c;_0x575578>=0x0;_0x575578--)(_0x3ace9c=_0x498064[_0x575578])&&(_0x4a4d72=_0x3ace9c(_0x4a4d72)||_0x4a4d72);return _0x4a4d72;},d=(_0x21533d,_0x1d0e9f)=>(_0x5b9f82,_0xeb9192)=>_0x1d0e9f(_0x5b9f82,_0xeb9192,_0x21533d);let c=class extends _0x16b32a{constructor(_0x28b193,_0x3ae9be){const _0x55bfd9=_0x51e65d;super(),this[_0x55bfd9(0x1b5)]=_0x28b193,this[_0x55bfd9(0x1d4)]=_0x3ae9be,this[_0x55bfd9(0x1b9)](),this[_0x55bfd9(0x1a7)]();}[_0x51e65d(0x1b9)](){[p,u]['forEach'](_0x203865=>{const _0x1d33c=_0x1cbf;this[_0x1d33c(0x1b2)](this[_0x1d33c(0x1b5)][_0x1d33c(0x1b0)](_0x203865));});}[_0x51e65d(0x1a7)](){const _0x392214=_0x51e65d;this[_0x392214(0x1d4)][_0x392214(0x1aa)](F);}};c=A([d(0x0,_0x4fcda2),d(0x1,_0x278dfd)],c);var j=Object[_0x51e65d(0x1bc)],B=Object[_0x51e65d(0x1d0)],$=(_0x42383a,_0x1f477b,_0x2739a7)=>_0x1f477b in _0x42383a?j(_0x42383a,_0x1f477b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2739a7}):_0x42383a[_0x1f477b]=_0x2739a7,V=(_0x245fa0,_0x31c857,_0x1047ed,_0x58941b)=>{const _0x464d70=_0x51e65d;for(var _0x590192=_0x58941b>0x1?void 0x0:_0x58941b?B(_0x31c857,_0x1047ed):_0x31c857,_0x427a4b=_0x245fa0[_0x464d70(0x1c2)]-0x1,_0x2b14ff;_0x427a4b>=0x0;_0x427a4b--)(_0x2b14ff=_0x245fa0[_0x427a4b])&&(_0x590192=_0x2b14ff(_0x590192)||_0x590192);return _0x590192;},_=(_0x33f3e4,_0x18ea02)=>(_0x294473,_0x480e36)=>_0x18ea02(_0x294473,_0x480e36,_0x33f3e4),I=(_0x34db02,_0x257423,_0x519110)=>$(_0x34db02,typeof _0x257423!=_0x51e65d(0x1cc)?_0x257423+'':_0x257423,_0x519110);const W=_0x51e65d(0x1b1);let s=class extends _0x2d76a3{constructor(_0x48c69a=l,_0x223e81,_0x21fdc7){const _0x1c7612=_0x51e65d;super(),this[_0x1c7612(0x1cb)]=_0x48c69a,this[_0x1c7612(0x1ce)]=_0x223e81,this[_0x1c7612(0x1b6)]=_0x21fdc7;const {menu:_0x266a03,..._0x58cfb1}=_0x3f60dd({},l,this[_0x1c7612(0x1cb)]);_0x266a03&&this[_0x1c7612(0x1b6)][_0x1c7612(0x1d3)](_0x1c7612(0x1d9),_0x266a03,{'merge':!0x0}),this[_0x1c7612(0x1b6)]['setConfig'](H,_0x58cfb1);}[_0x51e65d(0x1ad)](){const _0x522350=_0x51e65d;[[c]][_0x522350(0x1b3)](_0x4eb077=>this[_0x522350(0x1ce)][_0x522350(0x1a5)](_0x4eb077));}[_0x51e65d(0x1d2)](){const _0x14109b=_0x51e65d;this[_0x14109b(0x1ce)][_0x14109b(0x1a8)](c);}};I(s,_0x51e65d(0x1b7),W),I(s,_0x51e65d(0x1af),_0x5b58a3[_0x51e65d(0x1b4)]),s=V([_0x5c8fbb(_0x2ad91b),_(0x1,_0x5649d6(_0x36d2bf)),_(0x2,_0x2690f8)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x22f696=_0x4615;(function(_0x8d5ff5,_0x43a5b2){const _0xd4f93e=_0x4615,_0x4a5926=_0x8d5ff5();while(!![]){try{const _0xf3bf27=parseInt(_0xd4f93e(0x193))/0x1*(parseInt(_0xd4f93e(0x175))/0x2)+parseInt(_0xd4f93e(0x198))/0x3+-parseInt(_0xd4f93e(0x17d))/0x4*(-parseInt(_0xd4f93e(0x189))/0x5)+parseInt(_0xd4f93e(0x17b))/0x6*(-parseInt(_0xd4f93e(0x199))/0x7)+parseInt(_0xd4f93e(0x17c))/0x8*(parseInt(_0xd4f93e(0x194))/0x9)+parseInt(_0xd4f93e(0x1a0))/0xa*(parseInt(_0xd4f93e(0x19c))/0xb)+-parseInt(_0xd4f93e(0x18f))/0xc*(parseInt(_0xd4f93e(0x187))/0xd);if(_0xf3bf27===_0x43a5b2)break;else _0x4a5926['push'](_0x4a5926['shift']());}catch(_0x42307e){_0x4a5926['push'](_0x4a5926['shift']());}}}(_0x239f,0x6c328));import{IExchangeOperateService as _0x2b5f36,UniverExchangeClientPlugin as _0x2b3b48}from'@univerjs-pro/exchange-client';import{CommandType as _0x5cdde4,UniverInstanceType as _0x11e6b5,Disposable as _0x551078,ICommandService as _0x3a7bae,DependentOn as _0x3ac469,Inject as _0x9ab8f9,Injector as _0x2b5944,Plugin as _0x48a035,merge as _0x4b165f,IConfigService as _0x984c7e}from'@univerjs/core';import{MenuItemType as _0x57947c,getMenuHiddenObservable as _0x36f560,RibbonStartGroup as _0x1e3ab5,IMenuManagerService as _0x5c0f15}from'@univerjs/ui';import{WorkbookExportPermission as _0x3b9f88}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x17a45b}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x5cdde4[_0x22f696(0x184)],'handler':async _0x49dec1=>{const _0x36765b=_0x22f696,_0x4e4f5c=_0x49dec1[_0x36765b(0x195)](_0x2b5f36);return new URLSearchParams(location['search'])[_0x36765b(0x195)](_0x36765b(0x19b))?_0x4e4f5c[_0x36765b(0x185)]():_0x4e4f5c['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x22f696(0x1a2),'type':_0x5cdde4['OPERATION'],'handler':async _0x5a5d8b=>{const _0xaa991f=_0x22f696,_0x5c10f5=_0x5a5d8b[_0xaa991f(0x195)](_0x2b5f36);return new URLSearchParams(location[_0xaa991f(0x1a6)])[_0xaa991f(0x195)]('unit')?_0x5c10f5[_0xaa991f(0x178)]():_0x5c10f5[_0xaa991f(0x1a4)](),!0x0;}},H=_0x22f696(0x1a8),l={},S=_0x22f696(0x179);function R(_0x5b37d9){const _0x4c7352=_0x22f696;return{'id':S,'type':_0x57947c[_0x4c7352(0x17e)],'icon':_0x4c7352(0x192),'tooltip':_0x4c7352(0x18e),'hidden$':_0x36f560(_0x5b37d9,_0x11e6b5[_0x4c7352(0x190)]),'disabled$':_0x17a45b(_0x5b37d9,{'workbookTypes':[_0x3b9f88]})};}function w(){const _0x56b04e=_0x22f696;return{'id':p['id'],'type':_0x57947c['BUTTON'],'title':'exchange.upload','icon':_0x56b04e(0x18d)};}function D(){const _0x2436e5=_0x22f696;return{'id':u['id'],'type':_0x57947c['BUTTON'],'title':_0x2436e5(0x188),'icon':'ExportIcon'};}const F={[_0x1e3ab5[_0x22f696(0x18b)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x22f696(0x1a7)],A=(_0x561c19,_0x5defa3,_0x5d1771,_0x29612e)=>{const _0x52bf67=_0x22f696;for(var _0x467da7=_0x29612e>0x1?void 0x0:_0x29612e?G(_0x5defa3,_0x5d1771):_0x5defa3,_0x21f7ed=_0x561c19[_0x52bf67(0x191)]-0x1,_0x110c6f;_0x21f7ed>=0x0;_0x21f7ed--)(_0x110c6f=_0x561c19[_0x21f7ed])&&(_0x467da7=_0x110c6f(_0x467da7)||_0x467da7);return _0x467da7;},d=(_0x509e45,_0x1f9c4e)=>(_0xb26973,_0x339567)=>_0x1f9c4e(_0xb26973,_0x339567,_0x509e45);function _0x239f(){const _0x1b54c2=['_initMenus','_initCommands','OPERATION','importXLSXToUnitId','mergeMenu','6019481ZXzoAG','exchange.download','173155GUNtxm','type','OTHERS','_configService','FolderIcon','exchange.file','12QhnfpS','UNIVER_SHEET','length','DirectExportIcon','2sBCDcd','3141405EBiolr','get','setConfig','add','296862KVmspq','444633ntDqby','menu','unit','312917qSeqwN','onStarting','disposeWithMe','registerCommand','20CBKHWs','_menuManagerService','exchange-client.operation.export-xlsx','onReady','exportXLSXBySnapshot','_config','search','getOwnPropertyDescriptor','sheets-exchange-client.config','436124xXObSI','_injector','_commandService','exportXLSXByUnitId','sheets-exchange-client.operation.exchange','defineProperty','36VNAUpk','8LDVSiX','40lNWhlE','SUBITEMS','pluginName','SHEET_EXCHANGE_CLIENT_PLUGIN','forEach'];_0x239f=function(){return _0x1b54c2;};return _0x239f();}let c=class extends _0x551078{constructor(_0x11b865,_0x581801){const _0x641e38=_0x22f696;super(),this['_commandService']=_0x11b865,this['_menuManagerService']=_0x581801,this[_0x641e38(0x183)](),this[_0x641e38(0x182)]();}['_initCommands'](){const _0x3c8422=_0x22f696;[p,u][_0x3c8422(0x181)](_0x238adb=>{const _0x8a800e=_0x3c8422;this[_0x8a800e(0x19e)](this[_0x8a800e(0x177)][_0x8a800e(0x19f)](_0x238adb));});}[_0x22f696(0x182)](){const _0x19d216=_0x22f696;this[_0x19d216(0x1a1)][_0x19d216(0x186)](F);}};c=A([d(0x0,_0x3a7bae),d(0x1,_0x5c0f15)],c);var j=Object[_0x22f696(0x17a)],B=Object['getOwnPropertyDescriptor'],$=(_0x434f6a,_0x5d184c,_0x558b58)=>_0x5d184c in _0x434f6a?j(_0x434f6a,_0x5d184c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x558b58}):_0x434f6a[_0x5d184c]=_0x558b58,V=(_0x17289c,_0x408def,_0x1a397a,_0xabd1bd)=>{for(var _0x17bb65=_0xabd1bd>0x1?void 0x0:_0xabd1bd?B(_0x408def,_0x1a397a):_0x408def,_0xfd8848=_0x17289c['length']-0x1,_0x1b65b4;_0xfd8848>=0x0;_0xfd8848--)(_0x1b65b4=_0x17289c[_0xfd8848])&&(_0x17bb65=_0x1b65b4(_0x17bb65)||_0x17bb65);return _0x17bb65;},_=(_0x1baa92,_0x28a1d8)=>(_0x1f23a3,_0x31585f)=>_0x28a1d8(_0x1f23a3,_0x31585f,_0x1baa92),I=(_0x22f04f,_0x53e156,_0x3296ba)=>$(_0x22f04f,typeof _0x53e156!='symbol'?_0x53e156+'':_0x53e156,_0x3296ba);const W=_0x22f696(0x180);let s=class extends _0x48a035{constructor(_0x560c82=l,_0x20a48c,_0x771ff2){const _0x373de8=_0x22f696;super(),this[_0x373de8(0x1a5)]=_0x560c82,this[_0x373de8(0x176)]=_0x20a48c,this['_configService']=_0x771ff2;const {menu:_0xf80566,..._0x25e7c7}=_0x4b165f({},l,this['_config']);_0xf80566&&this[_0x373de8(0x18c)][_0x373de8(0x196)](_0x373de8(0x19a),_0xf80566,{'merge':!0x0}),this['_configService'][_0x373de8(0x196)](H,_0x25e7c7);}[_0x22f696(0x19d)](){const _0x445805=_0x22f696;[[c]][_0x445805(0x181)](_0x3e19f9=>this[_0x445805(0x176)][_0x445805(0x197)](_0x3e19f9));}[_0x22f696(0x1a3)](){const _0x50c8b4=_0x22f696;this[_0x50c8b4(0x176)][_0x50c8b4(0x195)](c);}};function _0x4615(_0x1dacf2,_0x3e02ba){_0x1dacf2=_0x1dacf2-0x175;const _0x239f6a=_0x239f();let _0x4615fa=_0x239f6a[_0x1dacf2];return _0x4615fa;}I(s,_0x22f696(0x17f),W),I(s,_0x22f696(0x18a),_0x11e6b5[_0x22f696(0x190)]),s=V([_0x3ac469(_0x2b3b48),_(0x1,_0x9ab8f9(_0x2b5944)),_(0x2,_0x984c7e)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x51e65d=_0x1cbf;(function(_0x44e1e7,_0x554870){const _0x4c5812=_0x1cbf,_0x23dfdf=_0x44e1e7();while(!![]){try{const _0x5256d5=-parseInt(_0x4c5812(0x1c3))/0x1+parseInt(_0x4c5812(0x1ca))/0x2+parseInt(_0x4c5812(0x1a6))/0x3*(parseInt(_0x4c5812(0x1c6))/0x4)+parseInt(_0x4c5812(0x1bf))/0x5*(parseInt(_0x4c5812(0x1c5))/0x6)+-parseInt(_0x4c5812(0x1c7))/0x7*(parseInt(_0x4c5812(0x1ab))/0x8)+parseInt(_0x4c5812(0x1cd))/0x9+-parseInt(_0x4c5812(0x1c8))/0xa;if(_0x5256d5===_0x554870)break;else _0x23dfdf['push'](_0x23dfdf['shift']());}catch(_0xb7da06){_0x23dfdf['push'](_0x23dfdf['shift']());}}}(_0x3c6c,0x54a79));import{IExchangeOperateService as _0x2bf989,UniverExchangeClientPlugin as _0x2ad91b}from'@univerjs-pro/exchange-client';function _0x3c6c(){const _0x79e90e=['pluginName','exchange.upload','_initCommands','unit','exportXLSXBySnapshot','defineProperty','search','OTHERS','2355455nggsxg','DirectExportIcon','exchange.file','length','289140ZPfbGX','sheets-exchange-client.config','6druWKY','148MyzeQU','992271gOngsT','5512100IsgpRL','exchange.download','538152fCuvaS','_config','symbol','3675861VtxrrI','_injector','BUTTON','getOwnPropertyDescriptor','OPERATION','onReady','setConfig','_menuManagerService','importXLSXToSnapshot','exchange-client.operation.export-xlsx','exchange-client.operation.import-xlsx','SUBITEMS','menu','add','37602xLuGKg','_initMenus','get','exportXLSXByUnitId','mergeMenu','24wOxYjg','ExportIcon','onStarting','FolderIcon','type','registerCommand','SHEET_EXCHANGE_CLIENT_PLUGIN','disposeWithMe','forEach','UNIVER_SHEET','_commandService','_configService'];_0x3c6c=function(){return _0x79e90e;};return _0x3c6c();}import{CommandType as _0x4b8fb8,UniverInstanceType as _0x5b58a3,Disposable as _0x16b32a,ICommandService as _0x4fcda2,DependentOn as _0x5c8fbb,Inject as _0x5649d6,Injector as _0x36d2bf,Plugin as _0x2d76a3,merge as _0x3f60dd,IConfigService as _0x2690f8}from'@univerjs/core';import{MenuItemType as _0x4a1abc,getMenuHiddenObservable as _0x242d33,RibbonStartGroup as _0x3e951a,IMenuManagerService as _0x278dfd}from'@univerjs/ui';import{WorkbookExportPermission as _0x4e4491}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x359648}from'@univerjs/sheets-ui';const p={'id':_0x51e65d(0x1d7),'type':_0x4b8fb8['OPERATION'],'handler':async _0x224910=>{const _0x16859e=_0x51e65d,_0x54cca5=_0x224910['get'](_0x2bf989);return new URLSearchParams(location['search'])[_0x16859e(0x1a8)](_0x16859e(0x1ba))?_0x54cca5['importXLSXToUnitId']():_0x54cca5[_0x16859e(0x1d5)](),!0x0;}},u={'id':_0x51e65d(0x1d6),'type':_0x4b8fb8[_0x51e65d(0x1d1)],'handler':async _0x54c711=>{const _0x58f39d=_0x51e65d,_0x511338=_0x54c711['get'](_0x2bf989);return new URLSearchParams(location[_0x58f39d(0x1bd)])['get'](_0x58f39d(0x1ba))?_0x511338[_0x58f39d(0x1a9)]():_0x511338[_0x58f39d(0x1bb)](),!0x0;}},H=_0x51e65d(0x1c4),l={},S='sheets-exchange-client.operation.exchange';function R(_0x9b5b84){const _0x2fe05c=_0x51e65d;return{'id':S,'type':_0x4a1abc[_0x2fe05c(0x1d8)],'icon':_0x2fe05c(0x1c0),'tooltip':_0x2fe05c(0x1c1),'hidden$':_0x242d33(_0x9b5b84,_0x5b58a3[_0x2fe05c(0x1b4)]),'disabled$':_0x359648(_0x9b5b84,{'workbookTypes':[_0x4e4491]})};}function w(){const _0x68835c=_0x51e65d;return{'id':p['id'],'type':_0x4a1abc[_0x68835c(0x1cf)],'title':_0x68835c(0x1b8),'icon':_0x68835c(0x1ae)};}function _0x1cbf(_0x159ce9,_0x10dfb0){_0x159ce9=_0x159ce9-0x1a5;const _0x3c6c13=_0x3c6c();let _0x1cbf82=_0x3c6c13[_0x159ce9];return _0x1cbf82;}function D(){const _0x251a45=_0x51e65d;return{'id':u['id'],'type':_0x4a1abc[_0x251a45(0x1cf)],'title':_0x251a45(0x1c9),'icon':_0x251a45(0x1ac)};}const F={[_0x3e951a[_0x51e65d(0x1be)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x51e65d(0x1d0)],A=(_0x498064,_0x50ad20,_0x428da1,_0x3898a5)=>{const _0x3a0fdd=_0x51e65d;for(var _0x4a4d72=_0x3898a5>0x1?void 0x0:_0x3898a5?G(_0x50ad20,_0x428da1):_0x50ad20,_0x575578=_0x498064[_0x3a0fdd(0x1c2)]-0x1,_0x3ace9c;_0x575578>=0x0;_0x575578--)(_0x3ace9c=_0x498064[_0x575578])&&(_0x4a4d72=_0x3ace9c(_0x4a4d72)||_0x4a4d72);return _0x4a4d72;},d=(_0x21533d,_0x1d0e9f)=>(_0x5b9f82,_0xeb9192)=>_0x1d0e9f(_0x5b9f82,_0xeb9192,_0x21533d);let c=class extends _0x16b32a{constructor(_0x28b193,_0x3ae9be){const _0x55bfd9=_0x51e65d;super(),this[_0x55bfd9(0x1b5)]=_0x28b193,this[_0x55bfd9(0x1d4)]=_0x3ae9be,this[_0x55bfd9(0x1b9)](),this[_0x55bfd9(0x1a7)]();}[_0x51e65d(0x1b9)](){[p,u]['forEach'](_0x203865=>{const _0x1d33c=_0x1cbf;this[_0x1d33c(0x1b2)](this[_0x1d33c(0x1b5)][_0x1d33c(0x1b0)](_0x203865));});}[_0x51e65d(0x1a7)](){const _0x392214=_0x51e65d;this[_0x392214(0x1d4)][_0x392214(0x1aa)](F);}};c=A([d(0x0,_0x4fcda2),d(0x1,_0x278dfd)],c);var j=Object[_0x51e65d(0x1bc)],B=Object[_0x51e65d(0x1d0)],$=(_0x42383a,_0x1f477b,_0x2739a7)=>_0x1f477b in _0x42383a?j(_0x42383a,_0x1f477b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2739a7}):_0x42383a[_0x1f477b]=_0x2739a7,V=(_0x245fa0,_0x31c857,_0x1047ed,_0x58941b)=>{const _0x464d70=_0x51e65d;for(var _0x590192=_0x58941b>0x1?void 0x0:_0x58941b?B(_0x31c857,_0x1047ed):_0x31c857,_0x427a4b=_0x245fa0[_0x464d70(0x1c2)]-0x1,_0x2b14ff;_0x427a4b>=0x0;_0x427a4b--)(_0x2b14ff=_0x245fa0[_0x427a4b])&&(_0x590192=_0x2b14ff(_0x590192)||_0x590192);return _0x590192;},_=(_0x33f3e4,_0x18ea02)=>(_0x294473,_0x480e36)=>_0x18ea02(_0x294473,_0x480e36,_0x33f3e4),I=(_0x34db02,_0x257423,_0x519110)=>$(_0x34db02,typeof _0x257423!=_0x51e65d(0x1cc)?_0x257423+'':_0x257423,_0x519110);const W=_0x51e65d(0x1b1);let s=class extends _0x2d76a3{constructor(_0x48c69a=l,_0x223e81,_0x21fdc7){const _0x1c7612=_0x51e65d;super(),this[_0x1c7612(0x1cb)]=_0x48c69a,this[_0x1c7612(0x1ce)]=_0x223e81,this[_0x1c7612(0x1b6)]=_0x21fdc7;const {menu:_0x266a03,..._0x58cfb1}=_0x3f60dd({},l,this[_0x1c7612(0x1cb)]);_0x266a03&&this[_0x1c7612(0x1b6)][_0x1c7612(0x1d3)](_0x1c7612(0x1d9),_0x266a03,{'merge':!0x0}),this[_0x1c7612(0x1b6)]['setConfig'](H,_0x58cfb1);}[_0x51e65d(0x1ad)](){const _0x522350=_0x51e65d;[[c]][_0x522350(0x1b3)](_0x4eb077=>this[_0x522350(0x1ce)][_0x522350(0x1a5)](_0x4eb077));}[_0x51e65d(0x1d2)](){const _0x14109b=_0x51e65d;this[_0x14109b(0x1ce)][_0x14109b(0x1a8)](c);}};I(s,_0x51e65d(0x1b7),W),I(s,_0x51e65d(0x1af),_0x5b58a3[_0x51e65d(0x1b4)]),s=V([_0x5c8fbb(_0x2ad91b),_(0x1,_0x5649d6(_0x36d2bf)),_(0x2,_0x2690f8)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x22f696=_0x4615;(function(_0x8d5ff5,_0x43a5b2){const _0xd4f93e=_0x4615,_0x4a5926=_0x8d5ff5();while(!![]){try{const _0xf3bf27=parseInt(_0xd4f93e(0x193))/0x1*(parseInt(_0xd4f93e(0x175))/0x2)+parseInt(_0xd4f93e(0x198))/0x3+-parseInt(_0xd4f93e(0x17d))/0x4*(-parseInt(_0xd4f93e(0x189))/0x5)+parseInt(_0xd4f93e(0x17b))/0x6*(-parseInt(_0xd4f93e(0x199))/0x7)+parseInt(_0xd4f93e(0x17c))/0x8*(parseInt(_0xd4f93e(0x194))/0x9)+parseInt(_0xd4f93e(0x1a0))/0xa*(parseInt(_0xd4f93e(0x19c))/0xb)+-parseInt(_0xd4f93e(0x18f))/0xc*(parseInt(_0xd4f93e(0x187))/0xd);if(_0xf3bf27===_0x43a5b2)break;else _0x4a5926['push'](_0x4a5926['shift']());}catch(_0x42307e){_0x4a5926['push'](_0x4a5926['shift']());}}}(_0x239f,0x6c328));import{IExchangeOperateService as _0x2b5f36,UniverExchangeClientPlugin as _0x2b3b48}from'@univerjs-pro/exchange-client';import{CommandType as _0x5cdde4,UniverInstanceType as _0x11e6b5,Disposable as _0x551078,ICommandService as _0x3a7bae,DependentOn as _0x3ac469,Inject as _0x9ab8f9,Injector as _0x2b5944,Plugin as _0x48a035,merge as _0x4b165f,IConfigService as _0x984c7e}from'@univerjs/core';import{MenuItemType as _0x57947c,getMenuHiddenObservable as _0x36f560,RibbonStartGroup as _0x1e3ab5,IMenuManagerService as _0x5c0f15}from'@univerjs/ui';import{WorkbookExportPermission as _0x3b9f88}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x17a45b}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x5cdde4[_0x22f696(0x184)],'handler':async _0x49dec1=>{const _0x36765b=_0x22f696,_0x4e4f5c=_0x49dec1[_0x36765b(0x195)](_0x2b5f36);return new URLSearchParams(location['search'])[_0x36765b(0x195)](_0x36765b(0x19b))?_0x4e4f5c[_0x36765b(0x185)]():_0x4e4f5c['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x22f696(0x1a2),'type':_0x5cdde4['OPERATION'],'handler':async _0x5a5d8b=>{const _0xaa991f=_0x22f696,_0x5c10f5=_0x5a5d8b[_0xaa991f(0x195)](_0x2b5f36);return new URLSearchParams(location[_0xaa991f(0x1a6)])[_0xaa991f(0x195)]('unit')?_0x5c10f5[_0xaa991f(0x178)]():_0x5c10f5[_0xaa991f(0x1a4)](),!0x0;}},H=_0x22f696(0x1a8),l={},S=_0x22f696(0x179);function R(_0x5b37d9){const _0x4c7352=_0x22f696;return{'id':S,'type':_0x57947c[_0x4c7352(0x17e)],'icon':_0x4c7352(0x192),'tooltip':_0x4c7352(0x18e),'hidden$':_0x36f560(_0x5b37d9,_0x11e6b5[_0x4c7352(0x190)]),'disabled$':_0x17a45b(_0x5b37d9,{'workbookTypes':[_0x3b9f88]})};}function w(){const _0x56b04e=_0x22f696;return{'id':p['id'],'type':_0x57947c['BUTTON'],'title':'exchange.upload','icon':_0x56b04e(0x18d)};}function D(){const _0x2436e5=_0x22f696;return{'id':u['id'],'type':_0x57947c['BUTTON'],'title':_0x2436e5(0x188),'icon':'ExportIcon'};}const F={[_0x1e3ab5[_0x22f696(0x18b)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x22f696(0x1a7)],A=(_0x561c19,_0x5defa3,_0x5d1771,_0x29612e)=>{const _0x52bf67=_0x22f696;for(var _0x467da7=_0x29612e>0x1?void 0x0:_0x29612e?G(_0x5defa3,_0x5d1771):_0x5defa3,_0x21f7ed=_0x561c19[_0x52bf67(0x191)]-0x1,_0x110c6f;_0x21f7ed>=0x0;_0x21f7ed--)(_0x110c6f=_0x561c19[_0x21f7ed])&&(_0x467da7=_0x110c6f(_0x467da7)||_0x467da7);return _0x467da7;},d=(_0x509e45,_0x1f9c4e)=>(_0xb26973,_0x339567)=>_0x1f9c4e(_0xb26973,_0x339567,_0x509e45);function _0x239f(){const _0x1b54c2=['_initMenus','_initCommands','OPERATION','importXLSXToUnitId','mergeMenu','6019481ZXzoAG','exchange.download','173155GUNtxm','type','OTHERS','_configService','FolderIcon','exchange.file','12QhnfpS','UNIVER_SHEET','length','DirectExportIcon','2sBCDcd','3141405EBiolr','get','setConfig','add','296862KVmspq','444633ntDqby','menu','unit','312917qSeqwN','onStarting','disposeWithMe','registerCommand','20CBKHWs','_menuManagerService','exchange-client.operation.export-xlsx','onReady','exportXLSXBySnapshot','_config','search','getOwnPropertyDescriptor','sheets-exchange-client.config','436124xXObSI','_injector','_commandService','exportXLSXByUnitId','sheets-exchange-client.operation.exchange','defineProperty','36VNAUpk','8LDVSiX','40lNWhlE','SUBITEMS','pluginName','SHEET_EXCHANGE_CLIENT_PLUGIN','forEach'];_0x239f=function(){return _0x1b54c2;};return _0x239f();}let c=class extends _0x551078{constructor(_0x11b865,_0x581801){const _0x641e38=_0x22f696;super(),this['_commandService']=_0x11b865,this['_menuManagerService']=_0x581801,this[_0x641e38(0x183)](),this[_0x641e38(0x182)]();}['_initCommands'](){const _0x3c8422=_0x22f696;[p,u][_0x3c8422(0x181)](_0x238adb=>{const _0x8a800e=_0x3c8422;this[_0x8a800e(0x19e)](this[_0x8a800e(0x177)][_0x8a800e(0x19f)](_0x238adb));});}[_0x22f696(0x182)](){const _0x19d216=_0x22f696;this[_0x19d216(0x1a1)][_0x19d216(0x186)](F);}};c=A([d(0x0,_0x3a7bae),d(0x1,_0x5c0f15)],c);var j=Object[_0x22f696(0x17a)],B=Object['getOwnPropertyDescriptor'],$=(_0x434f6a,_0x5d184c,_0x558b58)=>_0x5d184c in _0x434f6a?j(_0x434f6a,_0x5d184c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x558b58}):_0x434f6a[_0x5d184c]=_0x558b58,V=(_0x17289c,_0x408def,_0x1a397a,_0xabd1bd)=>{for(var _0x17bb65=_0xabd1bd>0x1?void 0x0:_0xabd1bd?B(_0x408def,_0x1a397a):_0x408def,_0xfd8848=_0x17289c['length']-0x1,_0x1b65b4;_0xfd8848>=0x0;_0xfd8848--)(_0x1b65b4=_0x17289c[_0xfd8848])&&(_0x17bb65=_0x1b65b4(_0x17bb65)||_0x17bb65);return _0x17bb65;},_=(_0x1baa92,_0x28a1d8)=>(_0x1f23a3,_0x31585f)=>_0x28a1d8(_0x1f23a3,_0x31585f,_0x1baa92),I=(_0x22f04f,_0x53e156,_0x3296ba)=>$(_0x22f04f,typeof _0x53e156!='symbol'?_0x53e156+'':_0x53e156,_0x3296ba);const W=_0x22f696(0x180);let s=class extends _0x48a035{constructor(_0x560c82=l,_0x20a48c,_0x771ff2){const _0x373de8=_0x22f696;super(),this[_0x373de8(0x1a5)]=_0x560c82,this[_0x373de8(0x176)]=_0x20a48c,this['_configService']=_0x771ff2;const {menu:_0xf80566,..._0x25e7c7}=_0x4b165f({},l,this['_config']);_0xf80566&&this[_0x373de8(0x18c)][_0x373de8(0x196)](_0x373de8(0x19a),_0xf80566,{'merge':!0x0}),this['_configService'][_0x373de8(0x196)](H,_0x25e7c7);}[_0x22f696(0x19d)](){const _0x445805=_0x22f696;[[c]][_0x445805(0x181)](_0x3e19f9=>this[_0x445805(0x176)][_0x445805(0x197)](_0x3e19f9));}[_0x22f696(0x1a3)](){const _0x50c8b4=_0x22f696;this[_0x50c8b4(0x176)][_0x50c8b4(0x195)](c);}};function _0x4615(_0x1dacf2,_0x3e02ba){_0x1dacf2=_0x1dacf2-0x175;const _0x239f6a=_0x239f();let _0x4615fa=_0x239f6a[_0x1dacf2];return _0x4615fa;}I(s,_0x22f696(0x17f),W),I(s,_0x22f696(0x18a),_0x11e6b5[_0x22f696(0x190)]),s=V([_0x3ac469(_0x2b3b48),_(0x1,_0x9ab8f9(_0x2b5944)),_(0x2,_0x984c7e)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x3e38(_0xf6acaa,_0x5d225b){_0xf6acaa=_0xf6acaa-0xb7;const _0x38fe4a=_0x38fe();let _0x3e38da=_0x38fe4a[_0xf6acaa];return _0x3e38da;}function _0x38fe(){const _0x25eeb4=['UniverInstanceType','Inject','ExportIcon','_initMenus','UniverSheetsExchangeClientPlugin','menu','pluginName','_initCommands','mergeMenu','sheets-exchange-client.operation.exchange','MenuItemType','amd','10mONSEA','exchange-client.operation.import-xlsx','exchange.file','toStringTag','forEach','IExchangeOperateService','35hbVnwS','setConfig','_menuManagerService','symbol','_configService','get','ExportXLSXOperation','@univerjs/sheets-ui','exportXLSXBySnapshot','FolderIcon','registerCommand','BUTTON','unit','UniverUi','_injector','SHEET_EXCHANGE_CLIENT_PLUGIN','SUBITEMS','onStarting','getMenuHiddenObservable','exportXLSXByUnitId','ICommandService','3464124FtTBef','325980nGSttn','12993318jXKudE','length','@univerjs/ui','UniverProExchangeClient','Plugin','exchange.upload','OTHERS','UniverSheetsUi','importXLSXToSnapshot','627522khXGUg','UniverProSheetsExchangeClient','4546952SNgdDq','type','sheets-exchange-client.config','add','161769AnqXNr','defineProperty','2167193ruePaM','CommandType','Injector','WorkbookExportPermission','IConfigService','_config','OPERATION','@univerjs-pro/exchange-client','importXLSXToUnitId','_commandService','UniverCore','DirectExportIcon','merge','UniverExchangeClientPlugin','getCurrentRangeDisable$','@univerjs/sheets','IMenuManagerService','search','disposeWithMe'];_0x38fe=function(){return _0x25eeb4;};return _0x38fe();}(function(_0x49e6c3,_0x509623){const _0x47cf7c=_0x3e38,_0xfd1d21=_0x49e6c3();while(!![]){try{const _0xb4a53c=parseInt(_0x47cf7c(0xe7))/0x1+parseInt(_0x47cf7c(0xc1))/0x2*(-parseInt(_0x47cf7c(0xed))/0x3)+parseInt(_0x47cf7c(0xdd))/0x4*(-parseInt(_0x47cf7c(0xc7))/0x5)+-parseInt(_0x47cf7c(0xdc))/0x6+parseInt(_0x47cf7c(0xef))/0x7+-parseInt(_0x47cf7c(0xe9))/0x8+parseInt(_0x47cf7c(0xde))/0x9;if(_0xb4a53c===_0x509623)break;else _0xfd1d21['push'](_0xfd1d21['shift']());}catch(_0x578edd){_0xfd1d21['push'](_0xfd1d21['shift']());}}}(_0x38fe,0x6070c),function(_0x5781c5,_0x49b07c){const _0x2b110b=_0x3e38;typeof exports=='object'&&typeof module<'u'?_0x49b07c(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x2b110b(0xc0)]?define(['exports',_0x2b110b(0xf6),'@univerjs/core',_0x2b110b(0xe0),_0x2b110b(0xfe),_0x2b110b(0xce)],_0x49b07c):(_0x5781c5=typeof globalThis<'u'?globalThis:_0x5781c5||self,_0x49b07c(_0x5781c5[_0x2b110b(0xe8)]={},_0x5781c5[_0x2b110b(0xe1)],_0x5781c5[_0x2b110b(0xf9)],_0x5781c5[_0x2b110b(0xd4)],_0x5781c5['UniverSheets'],_0x5781c5[_0x2b110b(0xe5)]));}(this,function(_0x141f0d,_0x52a735,_0x51c9b0,_0x1db30f,_0x386c2b,_0x40b5aa){'use strict';const _0x1cd62c=_0x3e38;const _0x56a8ea={'id':_0x1cd62c(0xc2),'type':_0x51c9b0['CommandType'][_0x1cd62c(0xf5)],'handler':async _0x5fc510=>{const _0x1fe6aa=_0x1cd62c,_0x35fb81=_0x5fc510['get'](_0x52a735['IExchangeOperateService']);return new URLSearchParams(location[_0x1fe6aa(0x100)])[_0x1fe6aa(0xcc)](_0x1fe6aa(0xd3))?_0x35fb81[_0x1fe6aa(0xf7)]():_0x35fb81[_0x1fe6aa(0xe6)](),!0x0;}},_0x5a8621={'id':'exchange-client.operation.export-xlsx','type':_0x51c9b0[_0x1cd62c(0xf0)]['OPERATION'],'handler':async _0x5178eb=>{const _0x1b63cf=_0x1cd62c,_0x31665e=_0x5178eb[_0x1b63cf(0xcc)](_0x52a735[_0x1b63cf(0xc6)]);return new URLSearchParams(location['search'])['get'](_0x1b63cf(0xd3))?_0x31665e[_0x1b63cf(0xda)]():_0x31665e[_0x1b63cf(0xcf)](),!0x0;}},_0x545b96=_0x1cd62c(0xeb),_0x53a325={},_0xc87d34=_0x1cd62c(0xbe);function _0x241fa6(_0x2f4fad){const _0x1b6e55=_0x1cd62c;return{'id':_0xc87d34,'type':_0x1db30f['MenuItemType'][_0x1b6e55(0xd7)],'icon':_0x1b6e55(0xfa),'tooltip':_0x1b6e55(0xc3),'hidden$':_0x1db30f[_0x1b6e55(0xd9)](_0x2f4fad,_0x51c9b0[_0x1b6e55(0x102)]['UNIVER_SHEET']),'disabled$':_0x40b5aa[_0x1b6e55(0xfd)](_0x2f4fad,{'workbookTypes':[_0x386c2b[_0x1b6e55(0xf2)]]})};}function _0x434ae(){const _0x2fe079=_0x1cd62c;return{'id':_0x56a8ea['id'],'type':_0x1db30f[_0x2fe079(0xbf)]['BUTTON'],'title':_0x2fe079(0xe3),'icon':_0x2fe079(0xd0)};}function _0x867b0b(){const _0x4d5453=_0x1cd62c;return{'id':_0x5a8621['id'],'type':_0x1db30f['MenuItemType'][_0x4d5453(0xd2)],'title':'exchange.download','icon':_0x4d5453(0xb7)};}const _0x1104fb={[_0x1db30f['RibbonStartGroup'][_0x1cd62c(0xe4)]]:{[_0xc87d34]:{'order':0.3,'menuItemFactory':_0x241fa6,[_0x56a8ea['id']]:{'order':0x0,'menuItemFactory':_0x434ae},[_0x5a8621['id']]:{'order':0x1,'menuItemFactory':_0x867b0b}}}};var _0xf0d253=Object['getOwnPropertyDescriptor'],_0x51a5e2=(_0x56bcf3,_0xddc034,_0x576d74,_0x46ffa3)=>{const _0xb9f7fd=_0x1cd62c;for(var _0x340d6f=_0x46ffa3>0x1?void 0x0:_0x46ffa3?_0xf0d253(_0xddc034,_0x576d74):_0xddc034,_0x7c4a51=_0x56bcf3[_0xb9f7fd(0xdf)]-0x1,_0x2c6e3f;_0x7c4a51>=0x0;_0x7c4a51--)(_0x2c6e3f=_0x56bcf3[_0x7c4a51])&&(_0x340d6f=_0x2c6e3f(_0x340d6f)||_0x340d6f);return _0x340d6f;},_0x514f58=(_0x3e783d,_0x282798)=>(_0x2d30ca,_0x2ec761)=>_0x282798(_0x2d30ca,_0x2ec761,_0x3e783d);let _0x4aa93c=class extends _0x51c9b0['Disposable']{constructor(_0x345024,_0x261e14){const _0x5d8691=_0x1cd62c;super(),this[_0x5d8691(0xf8)]=_0x345024,this[_0x5d8691(0xc9)]=_0x261e14,this[_0x5d8691(0xbc)](),this['_initMenus']();}[_0x1cd62c(0xbc)](){const _0x262fd2=_0x1cd62c;[_0x56a8ea,_0x5a8621][_0x262fd2(0xc5)](_0x570370=>{const _0x4e29bd=_0x262fd2;this[_0x4e29bd(0x101)](this['_commandService'][_0x4e29bd(0xd1)](_0x570370));});}[_0x1cd62c(0xb8)](){const _0x57b9c3=_0x1cd62c;this['_menuManagerService'][_0x57b9c3(0xbd)](_0x1104fb);}};_0x4aa93c=_0x51a5e2([_0x514f58(0x0,_0x51c9b0[_0x1cd62c(0xdb)]),_0x514f58(0x1,_0x1db30f[_0x1cd62c(0xff)])],_0x4aa93c);var _0x122b96=Object[_0x1cd62c(0xee)],_0x25eef3=Object['getOwnPropertyDescriptor'],_0x314313=(_0x50a9f8,_0x13d973,_0x8ebdf7)=>_0x13d973 in _0x50a9f8?_0x122b96(_0x50a9f8,_0x13d973,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x8ebdf7}):_0x50a9f8[_0x13d973]=_0x8ebdf7,_0x3dfd87=(_0x377307,_0x4eef6e,_0x55fbd7,_0x683727)=>{const _0x4ac44e=_0x1cd62c;for(var _0x23f486=_0x683727>0x1?void 0x0:_0x683727?_0x25eef3(_0x4eef6e,_0x55fbd7):_0x4eef6e,_0x94887=_0x377307[_0x4ac44e(0xdf)]-0x1,_0x52abb3;_0x94887>=0x0;_0x94887--)(_0x52abb3=_0x377307[_0x94887])&&(_0x23f486=_0x52abb3(_0x23f486)||_0x23f486);return _0x23f486;},_0x3caa13=(_0x2ec65c,_0x2695b6)=>(_0x155257,_0x92d45e)=>_0x2695b6(_0x155257,_0x92d45e,_0x2ec65c),_0x58cb3e=(_0x532c19,_0x48b460,_0x558d46)=>_0x314313(_0x532c19,typeof _0x48b460!=_0x1cd62c(0xca)?_0x48b460+'':_0x48b460,_0x558d46);const _0x31a033=_0x1cd62c(0xd6);_0x141f0d['UniverSheetsExchangeClientPlugin']=class extends _0x51c9b0[_0x1cd62c(0xe2)]{constructor(_0x552dd7=_0x53a325,_0xbb7d69,_0x2417d2){const _0x53181a=_0x1cd62c;super(),this[_0x53181a(0xf4)]=_0x552dd7,this[_0x53181a(0xd5)]=_0xbb7d69,this['_configService']=_0x2417d2;const {menu:_0x14bb5,..._0xd80639}=_0x51c9b0[_0x53181a(0xfb)]({},_0x53a325,this[_0x53181a(0xf4)]);_0x14bb5&&this[_0x53181a(0xcb)][_0x53181a(0xc8)](_0x53181a(0xba),_0x14bb5,{'merge':!0x0}),this['_configService'][_0x53181a(0xc8)](_0x545b96,_0xd80639);}[_0x1cd62c(0xd8)](){const _0x3f17b5=_0x1cd62c;[[_0x4aa93c]][_0x3f17b5(0xc5)](_0xdc96d9=>this[_0x3f17b5(0xd5)][_0x3f17b5(0xec)](_0xdc96d9));}['onReady'](){this['_injector']['get'](_0x4aa93c);}},_0x58cb3e(_0x141f0d[_0x1cd62c(0xb9)],_0x1cd62c(0xbb),_0x31a033),_0x58cb3e(_0x141f0d[_0x1cd62c(0xb9)],_0x1cd62c(0xea),_0x51c9b0[_0x1cd62c(0x102)]['UNIVER_SHEET']),_0x141f0d[_0x1cd62c(0xb9)]=_0x3dfd87([_0x51c9b0['DependentOn'](_0x52a735[_0x1cd62c(0xfc)]),_0x3caa13(0x1,_0x51c9b0[_0x1cd62c(0x103)](_0x51c9b0[_0x1cd62c(0xf1)])),_0x3caa13(0x2,_0x51c9b0[_0x1cd62c(0xf3)])],_0x141f0d[_0x1cd62c(0xb9)]),_0x141f0d[_0x1cd62c(0xcd)]=_0x5a8621,_0x141f0d['ImportXLSXOperation']=_0x56a8ea,Object[_0x1cd62c(0xee)](_0x141f0d,Symbol[_0x1cd62c(0xc4)],{'value':'Module'});}));
1
+ function _0x5dfd(){const _0x510068=['IExchangeOperateService','disposeWithMe','search','UniverCore','RibbonStartGroup','add','UniverSheetsExchangeClientPlugin','_configService','merge','exchange.file','OTHERS','amd','sheets-exchange-client.operation.exchange','WorkbookExportPermission','@univerjs-pro/exchange-client','mergeMenu','_commandService','exportXLSXBySnapshot','exchange.upload','symbol','UniverProSheetsExchangeClient','@univerjs/core','_config','_injector','ImportXLSXOperation','UniverUi','UniverSheets','207300QhMwlJ','33780YHYpvX','setConfig','getOwnPropertyDescriptor','pluginName','SUBITEMS','_initMenus','4705160PpqKmO','UniverExchangeClientPlugin','5243588qmMCMK','importXLSXToUnitId','function','object','5998855IyFVpI','@univerjs/sheets','IConfigService','Module','FolderIcon','get','length','480DsOivP','toStringTag','getMenuHiddenObservable','unit','UNIVER_SHEET','menu','type','35757gdUYQE','onReady','ExportIcon','@univerjs/sheets-ui','9340GzFxYt','exchange.download','6NrYuJl','UniverInstanceType','6834924PMOvMb','DirectExportIcon','forEach','exchange-client.operation.import-xlsx','OPERATION','Plugin','_menuManagerService','importXLSXToSnapshot','@univerjs/ui','defineProperty','_initCommands','IMenuManagerService','ExportXLSXOperation','CommandType','MenuItemType','UniverProExchangeClient','BUTTON'];_0x5dfd=function(){return _0x510068;};return _0x5dfd();}function _0x93b3(_0xa4000c,_0x3ed428){_0xa4000c=_0xa4000c-0x147;const _0x5dfdf1=_0x5dfd();let _0x93b36a=_0x5dfdf1[_0xa4000c];return _0x93b36a;}(function(_0x17e394,_0x3785cb){const _0x27a7ec=_0x93b3,_0x3aa74f=_0x17e394();while(!![]){try{const _0x37f86e=parseInt(_0x27a7ec(0x173))/0x1*(parseInt(_0x27a7ec(0x194))/0x2)+-parseInt(_0x27a7ec(0x174))/0x3*(-parseInt(_0x27a7ec(0x187))/0x4)+parseInt(_0x27a7ec(0x180))/0x5+parseInt(_0x27a7ec(0x147))/0x6+parseInt(_0x27a7ec(0x17c))/0x7+-parseInt(_0x27a7ec(0x17a))/0x8+-parseInt(_0x27a7ec(0x18e))/0x9*(parseInt(_0x27a7ec(0x192))/0xa);if(_0x37f86e===_0x3785cb)break;else _0x3aa74f['push'](_0x3aa74f['shift']());}catch(_0x3a6de1){_0x3aa74f['push'](_0x3aa74f['shift']());}}}(_0x5dfd,0xba146),function(_0x4e5792,_0x104853){const _0x3faabf=_0x93b3;typeof exports==_0x3faabf(0x17f)&&typeof module<'u'?_0x104853(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x3faabf(0x17e)&&define[_0x3faabf(0x163)]?define(['exports',_0x3faabf(0x166),_0x3faabf(0x16d),_0x3faabf(0x14f),_0x3faabf(0x181),_0x3faabf(0x191)],_0x104853):(_0x4e5792=typeof globalThis<'u'?globalThis:_0x4e5792||self,_0x104853(_0x4e5792[_0x3faabf(0x16c)]={},_0x4e5792[_0x3faabf(0x156)],_0x4e5792[_0x3faabf(0x15b)],_0x4e5792[_0x3faabf(0x171)],_0x4e5792[_0x3faabf(0x172)],_0x4e5792['UniverSheetsUi']));}(this,function(_0x5a9b9d,_0x2eaa92,_0x38f797,_0x3418a2,_0x113adf,_0x45489b){'use strict';const _0x5f0372=_0x93b3;const _0x517579={'id':_0x5f0372(0x14a),'type':_0x38f797[_0x5f0372(0x154)][_0x5f0372(0x14b)],'handler':async _0x18bac5=>{const _0x1fb9ef=_0x5f0372,_0x5e97c3=_0x18bac5[_0x1fb9ef(0x185)](_0x2eaa92[_0x1fb9ef(0x158)]);return new URLSearchParams(location[_0x1fb9ef(0x15a)])['get'](_0x1fb9ef(0x18a))?_0x5e97c3[_0x1fb9ef(0x17d)]():_0x5e97c3[_0x1fb9ef(0x14e)](),!0x0;}},_0x2925c5={'id':'exchange-client.operation.export-xlsx','type':_0x38f797[_0x5f0372(0x154)]['OPERATION'],'handler':async _0x4beef1=>{const _0x38bfed=_0x5f0372,_0x83a84a=_0x4beef1[_0x38bfed(0x185)](_0x2eaa92[_0x38bfed(0x158)]);return new URLSearchParams(location[_0x38bfed(0x15a)])[_0x38bfed(0x185)](_0x38bfed(0x18a))?_0x83a84a['exportXLSXByUnitId']():_0x83a84a[_0x38bfed(0x169)](),!0x0;}},_0x93dad='sheets-exchange-client.config',_0x3720f7={},_0x516b4f=_0x5f0372(0x164);function _0xb00f6e(_0x5cdc43){const _0x45d6c9=_0x5f0372;return{'id':_0x516b4f,'type':_0x3418a2[_0x45d6c9(0x155)][_0x45d6c9(0x178)],'icon':_0x45d6c9(0x148),'tooltip':_0x45d6c9(0x161),'hidden$':_0x3418a2[_0x45d6c9(0x189)](_0x5cdc43,_0x38f797[_0x45d6c9(0x195)]['UNIVER_SHEET']),'disabled$':_0x45489b['getCurrentRangeDisable$'](_0x5cdc43,{'workbookTypes':[_0x113adf[_0x45d6c9(0x165)]]})};}function _0x234660(){const _0xe947a8=_0x5f0372;return{'id':_0x517579['id'],'type':_0x3418a2[_0xe947a8(0x155)][_0xe947a8(0x157)],'title':_0xe947a8(0x16a),'icon':_0xe947a8(0x184)};}function _0x1983da(){const _0x6fa3a3=_0x5f0372;return{'id':_0x2925c5['id'],'type':_0x3418a2[_0x6fa3a3(0x155)][_0x6fa3a3(0x157)],'title':_0x6fa3a3(0x193),'icon':_0x6fa3a3(0x190)};}const _0x427b2c={[_0x3418a2[_0x5f0372(0x15c)][_0x5f0372(0x162)]]:{[_0x516b4f]:{'order':0.3,'menuItemFactory':_0xb00f6e,[_0x517579['id']]:{'order':0x0,'menuItemFactory':_0x234660},[_0x2925c5['id']]:{'order':0x1,'menuItemFactory':_0x1983da}}}};var _0x4ff34d=Object[_0x5f0372(0x176)],_0x4ea9dd=(_0x299dcd,_0x250215,_0x28a415,_0x9d5df4)=>{const _0x2cec6a=_0x5f0372;for(var _0x35a4ae=_0x9d5df4>0x1?void 0x0:_0x9d5df4?_0x4ff34d(_0x250215,_0x28a415):_0x250215,_0x1ec114=_0x299dcd[_0x2cec6a(0x186)]-0x1,_0x4695cc;_0x1ec114>=0x0;_0x1ec114--)(_0x4695cc=_0x299dcd[_0x1ec114])&&(_0x35a4ae=_0x4695cc(_0x35a4ae)||_0x35a4ae);return _0x35a4ae;},_0x45b764=(_0x152b62,_0x39e3d8)=>(_0x4d8c5d,_0xc6cdc5)=>_0x39e3d8(_0x4d8c5d,_0xc6cdc5,_0x152b62);let _0x2f3837=class extends _0x38f797['Disposable']{constructor(_0x25d8be,_0x2f3689){const _0x2f101a=_0x5f0372;super(),this['_commandService']=_0x25d8be,this[_0x2f101a(0x14d)]=_0x2f3689,this[_0x2f101a(0x151)](),this[_0x2f101a(0x179)]();}[_0x5f0372(0x151)](){const _0x23ac12=_0x5f0372;[_0x517579,_0x2925c5][_0x23ac12(0x149)](_0x4b459e=>{const _0x372d61=_0x23ac12;this[_0x372d61(0x159)](this[_0x372d61(0x168)]['registerCommand'](_0x4b459e));});}['_initMenus'](){const _0x171569=_0x5f0372;this[_0x171569(0x14d)][_0x171569(0x167)](_0x427b2c);}};_0x2f3837=_0x4ea9dd([_0x45b764(0x0,_0x38f797['ICommandService']),_0x45b764(0x1,_0x3418a2[_0x5f0372(0x152)])],_0x2f3837);var _0x4bd057=Object[_0x5f0372(0x150)],_0x41a93d=Object['getOwnPropertyDescriptor'],_0x454b2c=(_0x1950fb,_0x34f512,_0x235fe8)=>_0x34f512 in _0x1950fb?_0x4bd057(_0x1950fb,_0x34f512,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x235fe8}):_0x1950fb[_0x34f512]=_0x235fe8,_0x3a6f3d=(_0x46fa7f,_0x46d070,_0x51fab7,_0x12e881)=>{const _0x170fdc=_0x5f0372;for(var _0x492ad8=_0x12e881>0x1?void 0x0:_0x12e881?_0x41a93d(_0x46d070,_0x51fab7):_0x46d070,_0x48219c=_0x46fa7f[_0x170fdc(0x186)]-0x1,_0x2e6bb4;_0x48219c>=0x0;_0x48219c--)(_0x2e6bb4=_0x46fa7f[_0x48219c])&&(_0x492ad8=_0x2e6bb4(_0x492ad8)||_0x492ad8);return _0x492ad8;},_0x279dba=(_0x4a1b70,_0x4d7d6a)=>(_0x3509b6,_0x1ddd2f)=>_0x4d7d6a(_0x3509b6,_0x1ddd2f,_0x4a1b70),_0x10c201=(_0x528984,_0x527509,_0x123591)=>_0x454b2c(_0x528984,typeof _0x527509!=_0x5f0372(0x16b)?_0x527509+'':_0x527509,_0x123591);const _0x46fa8e='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x5a9b9d[_0x5f0372(0x15e)]=class extends _0x38f797[_0x5f0372(0x14c)]{constructor(_0x3909e9=_0x3720f7,_0x2e420d,_0x13d6e5){const _0x121f1=_0x5f0372;super(),this['_config']=_0x3909e9,this[_0x121f1(0x16f)]=_0x2e420d,this[_0x121f1(0x15f)]=_0x13d6e5;const {menu:_0xa9b9c,..._0x2f74da}=_0x38f797[_0x121f1(0x160)]({},_0x3720f7,this[_0x121f1(0x16e)]);_0xa9b9c&&this['_configService'][_0x121f1(0x175)](_0x121f1(0x18c),_0xa9b9c,{'merge':!0x0}),this[_0x121f1(0x15f)]['setConfig'](_0x93dad,_0x2f74da);}['onStarting'](){const _0x3aea45=_0x5f0372;[[_0x2f3837]][_0x3aea45(0x149)](_0x15ebe4=>this['_injector'][_0x3aea45(0x15d)](_0x15ebe4));}[_0x5f0372(0x18f)](){const _0x4320c4=_0x5f0372;this['_injector'][_0x4320c4(0x185)](_0x2f3837);}},_0x10c201(_0x5a9b9d[_0x5f0372(0x15e)],_0x5f0372(0x177),_0x46fa8e),_0x10c201(_0x5a9b9d[_0x5f0372(0x15e)],_0x5f0372(0x18d),_0x38f797[_0x5f0372(0x195)][_0x5f0372(0x18b)]),_0x5a9b9d[_0x5f0372(0x15e)]=_0x3a6f3d([_0x38f797['DependentOn'](_0x2eaa92[_0x5f0372(0x17b)]),_0x279dba(0x1,_0x38f797['Inject'](_0x38f797['Injector'])),_0x279dba(0x2,_0x38f797[_0x5f0372(0x182)])],_0x5a9b9d[_0x5f0372(0x15e)]),_0x5a9b9d[_0x5f0372(0x153)]=_0x2925c5,_0x5a9b9d[_0x5f0372(0x170)]=_0x517579,Object[_0x5f0372(0x150)](_0x5a9b9d,Symbol[_0x5f0372(0x188)],{'value':_0x5f0372(0x183)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.15.3-insiders.20260131-b9b8805",
3
+ "version": "0.15.3-insiders.20260131-cbd5fac",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -42,11 +42,11 @@
42
42
  "lib"
43
43
  ],
44
44
  "dependencies": {
45
- "@univerjs-pro/exchange-client": "0.15.3-insiders.20260131-b9b8805",
46
- "@univerjs/core": "0.15.3-insiders.20260131-b9b8805",
47
- "@univerjs/sheets": "0.15.3-insiders.20260131-b9b8805",
48
- "@univerjs/sheets-ui": "0.15.3-insiders.20260131-b9b8805",
49
- "@univerjs/ui": "0.15.3-insiders.20260131-b9b8805"
45
+ "@univerjs-pro/exchange-client": "0.15.3-insiders.20260131-cbd5fac",
46
+ "@univerjs/core": "0.15.3-insiders.20260131-cbd5fac",
47
+ "@univerjs/sheets": "0.15.3-insiders.20260131-cbd5fac",
48
+ "@univerjs/sheets-ui": "0.15.3-insiders.20260131-cbd5fac",
49
+ "@univerjs/ui": "0.15.3-insiders.20260131-cbd5fac"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",