@univerjs-pro/sheets-exchange-client 0.15.0-insiders.20251227-c108ce3 → 0.15.0-insiders.20260107-3441c7a

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 _0x132eb7=_0x143f;(function(_0x162c33,_0x5677a5){const _0x467628=_0x143f,_0x121bcc=_0x162c33();while(!![]){try{const _0x3b0971=parseInt(_0x467628(0x1fb))/0x1*(parseInt(_0x467628(0x1e3))/0x2)+parseInt(_0x467628(0x1bf))/0x3*(-parseInt(_0x467628(0x1ff))/0x4)+parseInt(_0x467628(0x1d4))/0x5+-parseInt(_0x467628(0x1c1))/0x6+parseInt(_0x467628(0x1bc))/0x7*(-parseInt(_0x467628(0x1c9))/0x8)+-parseInt(_0x467628(0x1bd))/0x9*(-parseInt(_0x467628(0x1f3))/0xa)+parseInt(_0x467628(0x1fe))/0xb*(parseInt(_0x467628(0x1e5))/0xc);if(_0x3b0971===_0x5677a5)break;else _0x121bcc['push'](_0x121bcc['shift']());}catch(_0x52ad32){_0x121bcc['push'](_0x121bcc['shift']());}}}(_0x2b68,0xe9898));Object[_0x132eb7(0x1d3)](exports,Symbol[_0x132eb7(0x1fc)],{'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':_0x132eb7(0x1da),'type':i[_0x132eb7(0x1c5)]['OPERATION'],'handler':async _0x81ea2=>{const _0x566722=_0x132eb7,_0x1569a2=_0x81ea2[_0x566722(0x1d9)](g['IExchangeOperateService']);return new URLSearchParams(location[_0x566722(0x1e8)])['get'](_0x566722(0x1cb))?_0x1569a2[_0x566722(0x1bb)]():_0x1569a2[_0x566722(0x1ba)](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i[_0x132eb7(0x1c5)][_0x132eb7(0x1df)],'handler':async _0x23cacc=>{const _0x28197b=_0x132eb7,_0x43cbb1=_0x23cacc['get'](g[_0x28197b(0x1cc)]);return new URLSearchParams(location['search'])[_0x28197b(0x1d9)]('unit')?_0x43cbb1['exportXLSXByUnitId']():_0x43cbb1[_0x28197b(0x1c4)](),!0x0;}},v='sheets-exchange-client.config',h={},S=_0x132eb7(0x1f6);function _0x143f(_0x4c265d,_0x38cddb){_0x4c265d=_0x4c265d-0x1b9;const _0x2b687a=_0x2b68();let _0x143fef=_0x2b687a[_0x4c265d];return _0x143fef;}function x(_0x932475){const _0x417464=_0x132eb7;return{'id':S,'type':c[_0x417464(0x1db)][_0x417464(0x1d6)],'icon':_0x417464(0x1e9),'tooltip':'exchange.file','hidden$':c['getMenuHiddenObservable'](_0x932475,i[_0x417464(0x1eb)][_0x417464(0x1c8)]),'disabled$':I[_0x417464(0x1f9)](_0x932475,{'workbookTypes':[_[_0x417464(0x1c7)]]})};}function P(){const _0x47f677=_0x132eb7;return{'id':l['id'],'type':c[_0x47f677(0x1db)][_0x47f677(0x1ee)],'title':_0x47f677(0x1f5),'icon':_0x47f677(0x1ce)};}function C(){const _0x36e95f=_0x132eb7;return{'id':p['id'],'type':c[_0x36e95f(0x1db)][_0x36e95f(0x1ee)],'title':_0x36e95f(0x1c2),'icon':_0x36e95f(0x1e0)};}const f={[c[_0x132eb7(0x1fd)][_0x132eb7(0x1f1)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x132eb7(0x1f8)],y=(_0x5b86d1,_0xef2ee5,_0xc92395,_0x559b75)=>{const _0x311130=_0x132eb7;for(var _0x2da27d=_0x559b75>0x1?void 0x0:_0x559b75?T(_0xef2ee5,_0xc92395):_0xef2ee5,_0x1ad206=_0x5b86d1[_0x311130(0x1be)]-0x1,_0x59e3fd;_0x1ad206>=0x0;_0x1ad206--)(_0x59e3fd=_0x5b86d1[_0x1ad206])&&(_0x2da27d=_0x59e3fd(_0x2da27d)||_0x2da27d);return _0x2da27d;},m=(_0x4e97c8,_0x56b844)=>(_0x33a863,_0x5ede90)=>_0x56b844(_0x33a863,_0x5ede90,_0x4e97c8);let u=class extends i[_0x132eb7(0x1d1)]{constructor(_0x1d01de,_0x3fe0ca){const _0x5297ea=_0x132eb7;super(),this[_0x5297ea(0x1ec)]=_0x1d01de,this[_0x5297ea(0x1f0)]=_0x3fe0ca,this['_initCommands'](),this[_0x5297ea(0x1d8)]();}[_0x132eb7(0x1dc)](){const _0x4de531=_0x132eb7;[l,p][_0x4de531(0x1e7)](_0x1aa8b=>{const _0x4de8a6=_0x4de531;this[_0x4de8a6(0x1d7)](this[_0x4de8a6(0x1ec)]['registerCommand'](_0x1aa8b));});}[_0x132eb7(0x1d8)](){const _0x267e0a=_0x132eb7;this[_0x267e0a(0x1f0)][_0x267e0a(0x1fa)](f);}};u=y([m(0x0,i[_0x132eb7(0x1f7)]),m(0x1,c[_0x132eb7(0x1e2)])],u);var O=Object[_0x132eb7(0x1d3)],U=Object[_0x132eb7(0x1f8)],X=(_0x49fa42,_0x126db5,_0x48dcc2)=>_0x126db5 in _0x49fa42?O(_0x49fa42,_0x126db5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48dcc2}):_0x49fa42[_0x126db5]=_0x48dcc2,N=(_0x38e064,_0x158bf8,_0x2da390,_0x23ebd6)=>{const _0x3a7bcf=_0x132eb7;for(var _0x54d420=_0x23ebd6>0x1?void 0x0:_0x23ebd6?U(_0x158bf8,_0x2da390):_0x158bf8,_0x2f9420=_0x38e064[_0x3a7bcf(0x1be)]-0x1,_0x42fda6;_0x2f9420>=0x0;_0x2f9420--)(_0x42fda6=_0x38e064[_0x2f9420])&&(_0x54d420=_0x42fda6(_0x54d420)||_0x54d420);return _0x54d420;},d=(_0x555ad4,_0x2d26f2)=>(_0x51ab5e,_0x34afa6)=>_0x2d26f2(_0x51ab5e,_0x34afa6,_0x555ad4),E=(_0x4a0d44,_0x4c28f9,_0x3be90e)=>X(_0x4a0d44,typeof _0x4c28f9!='symbol'?_0x4c28f9+'':_0x4c28f9,_0x3be90e);const L=_0x132eb7(0x1ef);exports[_0x132eb7(0x1cd)]=class extends i[_0x132eb7(0x1dd)]{constructor(_0x512c96=h,_0x28bac4,_0x40f01b){const _0x163477=_0x132eb7;super(),this['_config']=_0x512c96,this[_0x163477(0x1b9)]=_0x28bac4,this[_0x163477(0x1d2)]=_0x40f01b;const {menu:_0x1b8992,..._0x3b20b0}=i[_0x163477(0x1ea)]({},h,this[_0x163477(0x1d0)]);_0x1b8992&&this[_0x163477(0x1d2)][_0x163477(0x1cf)](_0x163477(0x1f2),_0x1b8992,{'merge':!0x0}),this[_0x163477(0x1d2)][_0x163477(0x1cf)](v,_0x3b20b0);}[_0x132eb7(0x1e4)](){const _0x123e16=_0x132eb7;[[u]][_0x123e16(0x1e7)](_0xca2728=>this[_0x123e16(0x1b9)][_0x123e16(0x1ed)](_0xca2728));}[_0x132eb7(0x1e1)](){const _0x34d91c=_0x132eb7;this[_0x34d91c(0x1b9)][_0x34d91c(0x1d9)](u);}},E(exports[_0x132eb7(0x1cd)],_0x132eb7(0x1d5),L),E(exports[_0x132eb7(0x1cd)],_0x132eb7(0x1de),i[_0x132eb7(0x1eb)][_0x132eb7(0x1c8)]),exports[_0x132eb7(0x1cd)]=N([i[_0x132eb7(0x1c0)](g[_0x132eb7(0x1ca)]),d(0x1,i[_0x132eb7(0x1f4)](i[_0x132eb7(0x1e6)])),d(0x2,i[_0x132eb7(0x1c6)])],exports['UniverSheetsExchangeClientPlugin']),exports['ExportXLSXOperation']=p,exports[_0x132eb7(0x1c3)]=l;function _0x2b68(){const _0x2a7336=['importXLSXToUnitId','7VZiPZz','283779bnIPqj','length','3112269rEeRcb','DependentOn','11478654IudQzk','exchange.download','ImportXLSXOperation','exportXLSXBySnapshot','CommandType','IConfigService','WorkbookExportPermission','UNIVER_SHEET','12873824AoQKnd','UniverExchangeClientPlugin','unit','IExchangeOperateService','UniverSheetsExchangeClientPlugin','FolderIcon','setConfig','_config','Disposable','_configService','defineProperty','4159875AAodNI','pluginName','SUBITEMS','disposeWithMe','_initMenus','get','exchange-client.operation.import-xlsx','MenuItemType','_initCommands','Plugin','type','OPERATION','ExportIcon','onReady','IMenuManagerService','2iBixoL','onStarting','17001816yGEHGD','Injector','forEach','search','DirectExportIcon','merge','UniverInstanceType','_commandService','add','BUTTON','SHEET_EXCHANGE_CLIENT_PLUGIN','_menuManagerService','OTHERS','menu','30ECsPte','Inject','exchange.upload','sheets-exchange-client.operation.exchange','ICommandService','getOwnPropertyDescriptor','getCurrentRangeDisable$','mergeMenu','1756124DdijEy','toStringTag','RibbonStartGroup','22xSfeMl','4ZiPDzy','_injector','importXLSXToSnapshot'];_0x2b68=function(){return _0x2a7336;};return _0x2b68();}
1
+ 'use strict';const _0x3e11df=_0x11e3;(function(_0x42ae85,_0x6f7d70){const _0x167d4a=_0x11e3,_0x30e480=_0x42ae85();while(!![]){try{const _0x2b8c4f=-parseInt(_0x167d4a(0xbd))/0x1+parseInt(_0x167d4a(0xab))/0x2+parseInt(_0x167d4a(0xbc))/0x3*(-parseInt(_0x167d4a(0xcb))/0x4)+-parseInt(_0x167d4a(0xca))/0x5+parseInt(_0x167d4a(0xb2))/0x6+-parseInt(_0x167d4a(0xc3))/0x7*(-parseInt(_0x167d4a(0xd1))/0x8)+-parseInt(_0x167d4a(0xb9))/0x9;if(_0x2b8c4f===_0x6f7d70)break;else _0x30e480['push'](_0x30e480['shift']());}catch(_0x2d6b56){_0x30e480['push'](_0x30e480['shift']());}}}(_0x22d2,0x92ef7));function _0x11e3(_0x14e0c0,_0x2610a8){_0x14e0c0=_0x14e0c0-0xa0;const _0x22d209=_0x22d2();let _0x11e3c3=_0x22d209[_0x14e0c0];return _0x11e3c3;}Object[_0x3e11df(0xcc)](exports,Symbol['toStringTag'],{'value':_0x3e11df(0xda)});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':_0x3e11df(0xa6),'type':i[_0x3e11df(0xc4)][_0x3e11df(0xbf)],'handler':async _0x6bacb3=>{const _0x58e0d9=_0x3e11df,_0x38853b=_0x6bacb3[_0x58e0d9(0xb6)](g[_0x58e0d9(0xa4)]);return new URLSearchParams(location[_0x58e0d9(0xac)])[_0x58e0d9(0xb6)](_0x58e0d9(0xe1))?_0x38853b['importXLSXToUnitId']():_0x38853b[_0x58e0d9(0xe2)](),!0x0;}},p={'id':_0x3e11df(0xad),'type':i[_0x3e11df(0xc4)][_0x3e11df(0xbf)],'handler':async _0x55de71=>{const _0xba5fee=_0x3e11df,_0x4795a2=_0x55de71[_0xba5fee(0xb6)](g[_0xba5fee(0xa4)]);return new URLSearchParams(location[_0xba5fee(0xac)])[_0xba5fee(0xb6)]('unit')?_0x4795a2[_0xba5fee(0xe0)]():_0x4795a2['exportXLSXBySnapshot'](),!0x0;}},v=_0x3e11df(0xb1),h={},S=_0x3e11df(0xb4);function x(_0x3cf3d3){const _0x482b09=_0x3e11df;return{'id':S,'type':c['MenuItemType'][_0x482b09(0xd5)],'icon':_0x482b09(0xa3),'tooltip':_0x482b09(0xcd),'hidden$':c['getMenuHiddenObservable'](_0x3cf3d3,i[_0x482b09(0xd2)]['UNIVER_SHEET']),'disabled$':I[_0x482b09(0xae)](_0x3cf3d3,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x5041bc=_0x3e11df;return{'id':l['id'],'type':c['MenuItemType'][_0x5041bc(0xdd)],'title':_0x5041bc(0xb5),'icon':_0x5041bc(0xb7)};}function C(){const _0x4f0c8d=_0x3e11df;return{'id':p['id'],'type':c[_0x4f0c8d(0xd6)][_0x4f0c8d(0xdd)],'title':_0x4f0c8d(0xd7),'icon':_0x4f0c8d(0xa8)};}const f={[c['RibbonStartGroup'][_0x3e11df(0xdb)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x3e11df(0xc8)],y=(_0x3d346d,_0x29d40a,_0x41ccbe,_0x328cf4)=>{for(var _0x71d785=_0x328cf4>0x1?void 0x0:_0x328cf4?T(_0x29d40a,_0x41ccbe):_0x29d40a,_0x42e8cb=_0x3d346d['length']-0x1,_0x3bc3c6;_0x42e8cb>=0x0;_0x42e8cb--)(_0x3bc3c6=_0x3d346d[_0x42e8cb])&&(_0x71d785=_0x3bc3c6(_0x71d785)||_0x71d785);return _0x71d785;},m=(_0x338561,_0xde9f02)=>(_0x5a9adb,_0x26a62d)=>_0xde9f02(_0x5a9adb,_0x26a62d,_0x338561);let u=class extends i[_0x3e11df(0xdc)]{constructor(_0x27e4bd,_0x24a05a){const _0x134865=_0x3e11df;super(),this[_0x134865(0xce)]=_0x27e4bd,this['_menuManagerService']=_0x24a05a,this[_0x134865(0xc7)](),this[_0x134865(0xaa)]();}[_0x3e11df(0xc7)](){const _0x5001b9=_0x3e11df;[l,p][_0x5001b9(0xa5)](_0x3e9b32=>{const _0x5278da=_0x5001b9;this[_0x5278da(0xd4)](this[_0x5278da(0xce)][_0x5278da(0xcf)](_0x3e9b32));});}[_0x3e11df(0xaa)](){const _0x1726da=_0x3e11df;this[_0x1726da(0xb3)][_0x1726da(0xe3)](f);}};u=y([m(0x0,i['ICommandService']),m(0x1,c['IMenuManagerService'])],u);var O=Object['defineProperty'],U=Object[_0x3e11df(0xc8)],X=(_0x3e6b69,_0x5ba2ca,_0x472880)=>_0x5ba2ca in _0x3e6b69?O(_0x3e6b69,_0x5ba2ca,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x472880}):_0x3e6b69[_0x5ba2ca]=_0x472880,N=(_0x1e62d0,_0x3abbdb,_0x3af5a6,_0x2b2f28)=>{const _0x31c6f2=_0x3e11df;for(var _0x306e0b=_0x2b2f28>0x1?void 0x0:_0x2b2f28?U(_0x3abbdb,_0x3af5a6):_0x3abbdb,_0x1af1f2=_0x1e62d0[_0x31c6f2(0xc6)]-0x1,_0x342bd6;_0x1af1f2>=0x0;_0x1af1f2--)(_0x342bd6=_0x1e62d0[_0x1af1f2])&&(_0x306e0b=_0x342bd6(_0x306e0b)||_0x306e0b);return _0x306e0b;},d=(_0x309927,_0x52c76b)=>(_0x213a4d,_0x41fd1f)=>_0x52c76b(_0x213a4d,_0x41fd1f,_0x309927),E=(_0x122fc1,_0x18e19b,_0x451b5a)=>X(_0x122fc1,typeof _0x18e19b!=_0x3e11df(0xd0)?_0x18e19b+'':_0x18e19b,_0x451b5a);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';function _0x22d2(){const _0x1e54c3=['9312ThmGiU','_configService','OPERATION','setConfig','_config','IConfigService','63DrBTQY','CommandType','add','length','_initCommands','getOwnPropertyDescriptor','UNIVER_SHEET','1208845pShMmz','8YLqWKT','defineProperty','exchange.file','_commandService','registerCommand','symbol','679584fHkTOc','UniverInstanceType','UniverExchangeClientPlugin','disposeWithMe','SUBITEMS','MenuItemType','exchange.download','ExportXLSXOperation','pluginName','Module','OTHERS','Disposable','BUTTON','ImportXLSXOperation','DependentOn','exportXLSXByUnitId','unit','importXLSXToSnapshot','mergeMenu','Plugin','onReady','Inject','DirectExportIcon','IExchangeOperateService','forEach','exchange-client.operation.import-xlsx','menu','ExportIcon','onStarting','_initMenus','1747424RGwmZz','search','exchange-client.operation.export-xlsx','getCurrentRangeDisable$','merge','UniverSheetsExchangeClientPlugin','sheets-exchange-client.config','1842258PAPDfS','_menuManagerService','sheets-exchange-client.operation.exchange','exchange.upload','get','FolderIcon','_injector','2317689QjlCAC','Injector','type','1252257zxvoHq'];_0x22d2=function(){return _0x1e54c3;};return _0x22d2();}exports[_0x3e11df(0xb0)]=class extends i[_0x3e11df(0xa0)]{constructor(_0x2844e9=h,_0x4d0903,_0xd332de){const _0x2aa89c=_0x3e11df;super(),this[_0x2aa89c(0xc1)]=_0x2844e9,this[_0x2aa89c(0xb8)]=_0x4d0903,this[_0x2aa89c(0xbe)]=_0xd332de;const {menu:_0x23319d,..._0x3701b3}=i[_0x2aa89c(0xaf)]({},h,this[_0x2aa89c(0xc1)]);_0x23319d&&this[_0x2aa89c(0xbe)][_0x2aa89c(0xc0)](_0x2aa89c(0xa7),_0x23319d,{'merge':!0x0}),this[_0x2aa89c(0xbe)]['setConfig'](v,_0x3701b3);}[_0x3e11df(0xa9)](){const _0x4c6e1d=_0x3e11df;[[u]][_0x4c6e1d(0xa5)](_0xca3dfa=>this[_0x4c6e1d(0xb8)][_0x4c6e1d(0xc5)](_0xca3dfa));}[_0x3e11df(0xa1)](){const _0x529aa9=_0x3e11df;this[_0x529aa9(0xb8)]['get'](u);}},E(exports[_0x3e11df(0xb0)],_0x3e11df(0xd9),L),E(exports[_0x3e11df(0xb0)],_0x3e11df(0xbb),i[_0x3e11df(0xd2)][_0x3e11df(0xc9)]),exports[_0x3e11df(0xb0)]=N([i[_0x3e11df(0xdf)](g[_0x3e11df(0xd3)]),d(0x1,i[_0x3e11df(0xa2)](i[_0x3e11df(0xba)])),d(0x2,i[_0x3e11df(0xc2)])],exports['UniverSheetsExchangeClientPlugin']),exports[_0x3e11df(0xd8)]=p,exports[_0x3e11df(0xde)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x18b725=_0x4f12;(function(_0x88cd5,_0x174f76){const _0x3bc735=_0x4f12,_0x50bd68=_0x88cd5();while(!![]){try{const _0x2c630f=parseInt(_0x3bc735(0xb4))/0x1+parseInt(_0x3bc735(0x95))/0x2+-parseInt(_0x3bc735(0xa7))/0x3+parseInt(_0x3bc735(0xa3))/0x4*(parseInt(_0x3bc735(0xb8))/0x5)+parseInt(_0x3bc735(0xb9))/0x6+-parseInt(_0x3bc735(0xb6))/0x7+parseInt(_0x3bc735(0xa0))/0x8;if(_0x2c630f===_0x174f76)break;else _0x50bd68['push'](_0x50bd68['shift']());}catch(_0x46afe8){_0x50bd68['push'](_0x50bd68['shift']());}}}(_0x288d,0x8f225));import{IExchangeOperateService as _0x5dfd71,UniverExchangeClientPlugin as _0x1d3d3d}from'@univerjs-pro/exchange-client';import{CommandType as _0x44bc98,UniverInstanceType as _0x1debd6,Disposable as _0x59ab5e,ICommandService as _0x1172be,DependentOn as _0x51b982,Inject as _0x10d50c,Injector as _0x36a6ae,IConfigService as _0x4d7164,Plugin as _0x31c291,merge as _0x3170ec}from'@univerjs/core';function _0x288d(){const _0x38f44c=['length','5555137jhCuWD','SUBITEMS','5nuGnLU','78996uIuhhS','importXLSXToSnapshot','pluginName','symbol','_initCommands','importXLSXToUnitId','exchange-client.operation.import-xlsx','_config','onStarting','exchange.download','OPERATION','1033076MYDgij','_configService','menu','setConfig','sheets-exchange-client.operation.exchange','BUTTON','forEach','_menuManagerService','search','exportXLSXByUnitId','UNIVER_SHEET','3341536udbKJZ','add','unit','817260gdePim','_commandService','DirectExportIcon','exchange.file','287751wljYBf','getOwnPropertyDescriptor','FolderIcon','get','type','ExportIcon','OTHERS','defineProperty','sheets-exchange-client.config','exchange.upload','_injector','exchange-client.operation.export-xlsx','mergeMenu','324074Pdzoti'];_0x288d=function(){return _0x38f44c;};return _0x288d();}import{MenuItemType as _0x16ca83,getMenuHiddenObservable as _0x561c7d,RibbonStartGroup as _0x2404ef,IMenuManagerService as _0x37d916}from'@univerjs/ui';import{WorkbookExportPermission as _0x13638e}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x3acd12}from'@univerjs/sheets-ui';const p={'id':_0x18b725(0xbf),'type':_0x44bc98[_0x18b725(0xc3)],'handler':async _0x1cca90=>{const _0x3e5703=_0x18b725,_0xc3030f=_0x1cca90['get'](_0x5dfd71);return new URLSearchParams(location['search'])['get']('unit')?_0xc3030f[_0x3e5703(0xbe)]():_0xc3030f[_0x3e5703(0xba)](),!0x0;}},u={'id':_0x18b725(0xb2),'type':_0x44bc98['OPERATION'],'handler':async _0x1dba26=>{const _0x1ba304=_0x18b725,_0xaffb89=_0x1dba26['get'](_0x5dfd71);return new URLSearchParams(location[_0x1ba304(0x9d)])[_0x1ba304(0xaa)](_0x1ba304(0xa2))?_0xaffb89[_0x1ba304(0x9e)]():_0xaffb89['exportXLSXBySnapshot'](),!0x0;}},H=_0x18b725(0xaf),l={},S=_0x18b725(0x99);function _0x4f12(_0x5cef52,_0x2039f5){_0x5cef52=_0x5cef52-0x95;const _0x288d3f=_0x288d();let _0x4f1238=_0x288d3f[_0x5cef52];return _0x4f1238;}function R(_0x2a5a87){const _0x33cb31=_0x18b725;return{'id':S,'type':_0x16ca83[_0x33cb31(0xb7)],'icon':_0x33cb31(0xa5),'tooltip':_0x33cb31(0xa6),'hidden$':_0x561c7d(_0x2a5a87,_0x1debd6[_0x33cb31(0x9f)]),'disabled$':_0x3acd12(_0x2a5a87,{'workbookTypes':[_0x13638e]})};}function w(){const _0x5b515e=_0x18b725;return{'id':p['id'],'type':_0x16ca83[_0x5b515e(0x9a)],'title':_0x5b515e(0xb0),'icon':_0x5b515e(0xa9)};}function D(){const _0x5acbdb=_0x18b725;return{'id':u['id'],'type':_0x16ca83[_0x5acbdb(0x9a)],'title':_0x5acbdb(0xc2),'icon':_0x5acbdb(0xac)};}const F={[_0x2404ef[_0x18b725(0xad)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x18b725(0xa8)],A=(_0x17073f,_0x19e471,_0x4e0fe5,_0x5a9cf8)=>{const _0x14bb07=_0x18b725;for(var _0x1fcaf8=_0x5a9cf8>0x1?void 0x0:_0x5a9cf8?G(_0x19e471,_0x4e0fe5):_0x19e471,_0x33cf97=_0x17073f[_0x14bb07(0xb5)]-0x1,_0x4e19ac;_0x33cf97>=0x0;_0x33cf97--)(_0x4e19ac=_0x17073f[_0x33cf97])&&(_0x1fcaf8=_0x4e19ac(_0x1fcaf8)||_0x1fcaf8);return _0x1fcaf8;},d=(_0x29d97d,_0x145835)=>(_0x343f14,_0x1ffa54)=>_0x145835(_0x343f14,_0x1ffa54,_0x29d97d);let c=class extends _0x59ab5e{constructor(_0x45b427,_0x374305){const _0x59ccc2=_0x18b725;super(),this[_0x59ccc2(0xa4)]=_0x45b427,this[_0x59ccc2(0x9c)]=_0x374305,this[_0x59ccc2(0xbd)](),this['_initMenus']();}[_0x18b725(0xbd)](){const _0x6b1cc2=_0x18b725;[p,u][_0x6b1cc2(0x9b)](_0x54f55f=>{const _0x6623cb=_0x6b1cc2;this['disposeWithMe'](this[_0x6623cb(0xa4)]['registerCommand'](_0x54f55f));});}['_initMenus'](){const _0x10d9fc=_0x18b725;this[_0x10d9fc(0x9c)][_0x10d9fc(0xb3)](F);}};c=A([d(0x0,_0x1172be),d(0x1,_0x37d916)],c);var j=Object[_0x18b725(0xae)],B=Object[_0x18b725(0xa8)],$=(_0x39c7ef,_0x4d6098,_0x6404d)=>_0x4d6098 in _0x39c7ef?j(_0x39c7ef,_0x4d6098,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x6404d}):_0x39c7ef[_0x4d6098]=_0x6404d,V=(_0x473a77,_0x262c4c,_0x4faba6,_0x3ab3c4)=>{const _0x447aab=_0x18b725;for(var _0x3616df=_0x3ab3c4>0x1?void 0x0:_0x3ab3c4?B(_0x262c4c,_0x4faba6):_0x262c4c,_0x55a084=_0x473a77[_0x447aab(0xb5)]-0x1,_0x25f1c1;_0x55a084>=0x0;_0x55a084--)(_0x25f1c1=_0x473a77[_0x55a084])&&(_0x3616df=_0x25f1c1(_0x3616df)||_0x3616df);return _0x3616df;},_=(_0x4e6352,_0x148d42)=>(_0x534fde,_0x1e8c40)=>_0x148d42(_0x534fde,_0x1e8c40,_0x4e6352),I=(_0x37d8c2,_0x41d77b,_0x14653f)=>$(_0x37d8c2,typeof _0x41d77b!=_0x18b725(0xbc)?_0x41d77b+'':_0x41d77b,_0x14653f);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x31c291{constructor(_0x448414=l,_0x39cd8f,_0x1b87b0){const _0x215d4e=_0x18b725;super(),this[_0x215d4e(0xc0)]=_0x448414,this[_0x215d4e(0xb1)]=_0x39cd8f,this[_0x215d4e(0x96)]=_0x1b87b0;const {menu:_0x4ce850,..._0x56520d}=_0x3170ec({},l,this[_0x215d4e(0xc0)]);_0x4ce850&&this['_configService'][_0x215d4e(0x98)](_0x215d4e(0x97),_0x4ce850,{'merge':!0x0}),this['_configService']['setConfig'](H,_0x56520d);}[_0x18b725(0xc1)](){const _0x1ff9ea=_0x18b725;[[c]][_0x1ff9ea(0x9b)](_0x52effb=>this['_injector'][_0x1ff9ea(0xa1)](_0x52effb));}['onReady'](){const _0x4d9de0=_0x18b725;this[_0x4d9de0(0xb1)][_0x4d9de0(0xaa)](c);}};I(s,_0x18b725(0xbb),W),I(s,_0x18b725(0xab),_0x1debd6[_0x18b725(0x9f)]),s=V([_0x51b982(_0x1d3d3d),_(0x1,_0x10d50c(_0x36a6ae)),_(0x2,_0x4d7164)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x5d591c=_0x3293;(function(_0x37f626,_0x30f328){const _0x5266bc=_0x3293,_0x267ce7=_0x37f626();while(!![]){try{const _0x5bbbe4=parseInt(_0x5266bc(0x13c))/0x1*(-parseInt(_0x5266bc(0x112))/0x2)+parseInt(_0x5266bc(0x131))/0x3+parseInt(_0x5266bc(0x134))/0x4*(-parseInt(_0x5266bc(0x116))/0x5)+-parseInt(_0x5266bc(0x12a))/0x6+parseInt(_0x5266bc(0x128))/0x7*(parseInt(_0x5266bc(0x113))/0x8)+parseInt(_0x5266bc(0x11f))/0x9+-parseInt(_0x5266bc(0x12b))/0xa*(-parseInt(_0x5266bc(0x11e))/0xb);if(_0x5bbbe4===_0x30f328)break;else _0x267ce7['push'](_0x267ce7['shift']());}catch(_0x5a5783){_0x267ce7['push'](_0x267ce7['shift']());}}}(_0x54b5,0x90c8c));import{IExchangeOperateService as _0x1f35d7,UniverExchangeClientPlugin as _0x30f8a8}from'@univerjs-pro/exchange-client';import{CommandType as _0x39aef8,UniverInstanceType as _0x28fc2a,Disposable as _0x18b44e,ICommandService as _0x2d3d94,DependentOn as _0x3e9ffa,Inject as _0x1078cd,Injector as _0x2a92b0,IConfigService as _0x4a3db4,Plugin as _0x28c0ce,merge as _0x26fdfe}from'@univerjs/core';function _0x54b5(){const _0x226a79=['search','5690178PeZtCY','123260ofcByg','exchange-client.operation.export-xlsx','_config','exchange-client.operation.import-xlsx','sheets-exchange-client.operation.exchange','_commandService','844371jqpbcH','onStarting','_injector','3573932VlRbUW','setConfig','_menuManagerService','pluginName','forEach','_initCommands','unit','importXLSXToUnitId','13odGvhd','DirectExportIcon','defineProperty','SHEET_EXCHANGE_CLIENT_PLUGIN','OPERATION','sheets-exchange-client.config','127890tfMdUr','7435184opfCqq','OTHERS','getOwnPropertyDescriptor','5cVNlQN','get','_configService','symbol','disposeWithMe','mergeMenu','exchange.download','UNIVER_SHEET','792prVgsx','10510560oaKuzC','BUTTON','exchange.upload','_initMenus','onReady','registerCommand','importXLSXToSnapshot','exportXLSXBySnapshot','length','7YWjVAJ'];_0x54b5=function(){return _0x226a79;};return _0x54b5();}import{MenuItemType as _0x5a9451,getMenuHiddenObservable as _0x53ee9e,RibbonStartGroup as _0x14123d,IMenuManagerService as _0x2899d2}from'@univerjs/ui';import{WorkbookExportPermission as _0x572188}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x1d5bf1}from'@univerjs/sheets-ui';const p={'id':_0x5d591c(0x12e),'type':_0x39aef8[_0x5d591c(0x110)],'handler':async _0x2c92fd=>{const _0x152fb9=_0x5d591c,_0x2c51=_0x2c92fd[_0x152fb9(0x117)](_0x1f35d7);return new URLSearchParams(location['search'])[_0x152fb9(0x117)]('unit')?_0x2c51[_0x152fb9(0x13b)]():_0x2c51[_0x152fb9(0x125)](),!0x0;}},u={'id':_0x5d591c(0x12c),'type':_0x39aef8[_0x5d591c(0x110)],'handler':async _0x30cadd=>{const _0x20168c=_0x5d591c,_0x2b6e1f=_0x30cadd[_0x20168c(0x117)](_0x1f35d7);return new URLSearchParams(location[_0x20168c(0x129)])[_0x20168c(0x117)](_0x20168c(0x13a))?_0x2b6e1f['exportXLSXByUnitId']():_0x2b6e1f[_0x20168c(0x126)](),!0x0;}},H=_0x5d591c(0x111),l={},S=_0x5d591c(0x12f);function R(_0x7c124e){const _0x275cf0=_0x5d591c;return{'id':S,'type':_0x5a9451['SUBITEMS'],'icon':_0x275cf0(0x13d),'tooltip':'exchange.file','hidden$':_0x53ee9e(_0x7c124e,_0x28fc2a['UNIVER_SHEET']),'disabled$':_0x1d5bf1(_0x7c124e,{'workbookTypes':[_0x572188]})};}function w(){const _0x37b6b4=_0x5d591c;return{'id':p['id'],'type':_0x5a9451[_0x37b6b4(0x120)],'title':_0x37b6b4(0x121),'icon':'FolderIcon'};}function D(){const _0x599e49=_0x5d591c;return{'id':u['id'],'type':_0x5a9451[_0x599e49(0x120)],'title':_0x599e49(0x11c),'icon':'ExportIcon'};}const F={[_0x14123d[_0x5d591c(0x114)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x5d591c(0x115)],A=(_0x259a62,_0xe0d3ca,_0xd142c8,_0x30b880)=>{const _0x36709=_0x5d591c;for(var _0x431cc2=_0x30b880>0x1?void 0x0:_0x30b880?G(_0xe0d3ca,_0xd142c8):_0xe0d3ca,_0x3151cc=_0x259a62[_0x36709(0x127)]-0x1,_0x55e18b;_0x3151cc>=0x0;_0x3151cc--)(_0x55e18b=_0x259a62[_0x3151cc])&&(_0x431cc2=_0x55e18b(_0x431cc2)||_0x431cc2);return _0x431cc2;},d=(_0x13f938,_0x54ea47)=>(_0x32f375,_0x5d0d5b)=>_0x54ea47(_0x32f375,_0x5d0d5b,_0x13f938);let c=class extends _0x18b44e{constructor(_0x4580d1,_0x2f8f78){const _0x52bff0=_0x5d591c;super(),this[_0x52bff0(0x130)]=_0x4580d1,this['_menuManagerService']=_0x2f8f78,this[_0x52bff0(0x139)](),this['_initMenus']();}[_0x5d591c(0x139)](){const _0x4574d2=_0x5d591c;[p,u][_0x4574d2(0x138)](_0x4b35e2=>{const _0x482863=_0x4574d2;this[_0x482863(0x11a)](this[_0x482863(0x130)][_0x482863(0x124)](_0x4b35e2));});}[_0x5d591c(0x122)](){const _0x1b014d=_0x5d591c;this[_0x1b014d(0x136)][_0x1b014d(0x11b)](F);}};c=A([d(0x0,_0x2d3d94),d(0x1,_0x2899d2)],c);var j=Object[_0x5d591c(0x13e)],B=Object['getOwnPropertyDescriptor'],$=(_0x157530,_0x34e029,_0x28141b)=>_0x34e029 in _0x157530?j(_0x157530,_0x34e029,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28141b}):_0x157530[_0x34e029]=_0x28141b,V=(_0x480974,_0x3c3a0d,_0xf310a7,_0x3b84a5)=>{const _0x4a3f18=_0x5d591c;for(var _0x1608f0=_0x3b84a5>0x1?void 0x0:_0x3b84a5?B(_0x3c3a0d,_0xf310a7):_0x3c3a0d,_0x9caecb=_0x480974[_0x4a3f18(0x127)]-0x1,_0x233b6c;_0x9caecb>=0x0;_0x9caecb--)(_0x233b6c=_0x480974[_0x9caecb])&&(_0x1608f0=_0x233b6c(_0x1608f0)||_0x1608f0);return _0x1608f0;},_=(_0x494dfb,_0x3432e4)=>(_0x542798,_0xdc55a3)=>_0x3432e4(_0x542798,_0xdc55a3,_0x494dfb),I=(_0x5c9693,_0xf8fc94,_0x30e8d8)=>$(_0x5c9693,typeof _0xf8fc94!=_0x5d591c(0x119)?_0xf8fc94+'':_0xf8fc94,_0x30e8d8);const W=_0x5d591c(0x10f);function _0x3293(_0x4644ee,_0x1a39bf){_0x4644ee=_0x4644ee-0x10f;const _0x54b588=_0x54b5();let _0x3293d3=_0x54b588[_0x4644ee];return _0x3293d3;}let s=class extends _0x28c0ce{constructor(_0x3bf845=l,_0x4d4e8d,_0x519c77){const _0x354b2b=_0x5d591c;super(),this[_0x354b2b(0x12d)]=_0x3bf845,this[_0x354b2b(0x133)]=_0x4d4e8d,this[_0x354b2b(0x118)]=_0x519c77;const {menu:_0x1cfba9,..._0x186838}=_0x26fdfe({},l,this[_0x354b2b(0x12d)]);_0x1cfba9&&this[_0x354b2b(0x118)][_0x354b2b(0x135)]('menu',_0x1cfba9,{'merge':!0x0}),this[_0x354b2b(0x118)][_0x354b2b(0x135)](H,_0x186838);}[_0x5d591c(0x132)](){const _0xcba137=_0x5d591c;[[c]][_0xcba137(0x138)](_0x4b9609=>this[_0xcba137(0x133)]['add'](_0x4b9609));}[_0x5d591c(0x123)](){const _0x59d9f6=_0x5d591c;this[_0x59d9f6(0x133)][_0x59d9f6(0x117)](c);}};I(s,_0x5d591c(0x137),W),I(s,'type',_0x28fc2a[_0x5d591c(0x11d)]),s=V([_0x3e9ffa(_0x30f8a8),_(0x1,_0x1078cd(_0x2a92b0)),_(0x2,_0x4a3db4)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x18b725=_0x4f12;(function(_0x88cd5,_0x174f76){const _0x3bc735=_0x4f12,_0x50bd68=_0x88cd5();while(!![]){try{const _0x2c630f=parseInt(_0x3bc735(0xb4))/0x1+parseInt(_0x3bc735(0x95))/0x2+-parseInt(_0x3bc735(0xa7))/0x3+parseInt(_0x3bc735(0xa3))/0x4*(parseInt(_0x3bc735(0xb8))/0x5)+parseInt(_0x3bc735(0xb9))/0x6+-parseInt(_0x3bc735(0xb6))/0x7+parseInt(_0x3bc735(0xa0))/0x8;if(_0x2c630f===_0x174f76)break;else _0x50bd68['push'](_0x50bd68['shift']());}catch(_0x46afe8){_0x50bd68['push'](_0x50bd68['shift']());}}}(_0x288d,0x8f225));import{IExchangeOperateService as _0x5dfd71,UniverExchangeClientPlugin as _0x1d3d3d}from'@univerjs-pro/exchange-client';import{CommandType as _0x44bc98,UniverInstanceType as _0x1debd6,Disposable as _0x59ab5e,ICommandService as _0x1172be,DependentOn as _0x51b982,Inject as _0x10d50c,Injector as _0x36a6ae,IConfigService as _0x4d7164,Plugin as _0x31c291,merge as _0x3170ec}from'@univerjs/core';function _0x288d(){const _0x38f44c=['length','5555137jhCuWD','SUBITEMS','5nuGnLU','78996uIuhhS','importXLSXToSnapshot','pluginName','symbol','_initCommands','importXLSXToUnitId','exchange-client.operation.import-xlsx','_config','onStarting','exchange.download','OPERATION','1033076MYDgij','_configService','menu','setConfig','sheets-exchange-client.operation.exchange','BUTTON','forEach','_menuManagerService','search','exportXLSXByUnitId','UNIVER_SHEET','3341536udbKJZ','add','unit','817260gdePim','_commandService','DirectExportIcon','exchange.file','287751wljYBf','getOwnPropertyDescriptor','FolderIcon','get','type','ExportIcon','OTHERS','defineProperty','sheets-exchange-client.config','exchange.upload','_injector','exchange-client.operation.export-xlsx','mergeMenu','324074Pdzoti'];_0x288d=function(){return _0x38f44c;};return _0x288d();}import{MenuItemType as _0x16ca83,getMenuHiddenObservable as _0x561c7d,RibbonStartGroup as _0x2404ef,IMenuManagerService as _0x37d916}from'@univerjs/ui';import{WorkbookExportPermission as _0x13638e}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x3acd12}from'@univerjs/sheets-ui';const p={'id':_0x18b725(0xbf),'type':_0x44bc98[_0x18b725(0xc3)],'handler':async _0x1cca90=>{const _0x3e5703=_0x18b725,_0xc3030f=_0x1cca90['get'](_0x5dfd71);return new URLSearchParams(location['search'])['get']('unit')?_0xc3030f[_0x3e5703(0xbe)]():_0xc3030f[_0x3e5703(0xba)](),!0x0;}},u={'id':_0x18b725(0xb2),'type':_0x44bc98['OPERATION'],'handler':async _0x1dba26=>{const _0x1ba304=_0x18b725,_0xaffb89=_0x1dba26['get'](_0x5dfd71);return new URLSearchParams(location[_0x1ba304(0x9d)])[_0x1ba304(0xaa)](_0x1ba304(0xa2))?_0xaffb89[_0x1ba304(0x9e)]():_0xaffb89['exportXLSXBySnapshot'](),!0x0;}},H=_0x18b725(0xaf),l={},S=_0x18b725(0x99);function _0x4f12(_0x5cef52,_0x2039f5){_0x5cef52=_0x5cef52-0x95;const _0x288d3f=_0x288d();let _0x4f1238=_0x288d3f[_0x5cef52];return _0x4f1238;}function R(_0x2a5a87){const _0x33cb31=_0x18b725;return{'id':S,'type':_0x16ca83[_0x33cb31(0xb7)],'icon':_0x33cb31(0xa5),'tooltip':_0x33cb31(0xa6),'hidden$':_0x561c7d(_0x2a5a87,_0x1debd6[_0x33cb31(0x9f)]),'disabled$':_0x3acd12(_0x2a5a87,{'workbookTypes':[_0x13638e]})};}function w(){const _0x5b515e=_0x18b725;return{'id':p['id'],'type':_0x16ca83[_0x5b515e(0x9a)],'title':_0x5b515e(0xb0),'icon':_0x5b515e(0xa9)};}function D(){const _0x5acbdb=_0x18b725;return{'id':u['id'],'type':_0x16ca83[_0x5acbdb(0x9a)],'title':_0x5acbdb(0xc2),'icon':_0x5acbdb(0xac)};}const F={[_0x2404ef[_0x18b725(0xad)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x18b725(0xa8)],A=(_0x17073f,_0x19e471,_0x4e0fe5,_0x5a9cf8)=>{const _0x14bb07=_0x18b725;for(var _0x1fcaf8=_0x5a9cf8>0x1?void 0x0:_0x5a9cf8?G(_0x19e471,_0x4e0fe5):_0x19e471,_0x33cf97=_0x17073f[_0x14bb07(0xb5)]-0x1,_0x4e19ac;_0x33cf97>=0x0;_0x33cf97--)(_0x4e19ac=_0x17073f[_0x33cf97])&&(_0x1fcaf8=_0x4e19ac(_0x1fcaf8)||_0x1fcaf8);return _0x1fcaf8;},d=(_0x29d97d,_0x145835)=>(_0x343f14,_0x1ffa54)=>_0x145835(_0x343f14,_0x1ffa54,_0x29d97d);let c=class extends _0x59ab5e{constructor(_0x45b427,_0x374305){const _0x59ccc2=_0x18b725;super(),this[_0x59ccc2(0xa4)]=_0x45b427,this[_0x59ccc2(0x9c)]=_0x374305,this[_0x59ccc2(0xbd)](),this['_initMenus']();}[_0x18b725(0xbd)](){const _0x6b1cc2=_0x18b725;[p,u][_0x6b1cc2(0x9b)](_0x54f55f=>{const _0x6623cb=_0x6b1cc2;this['disposeWithMe'](this[_0x6623cb(0xa4)]['registerCommand'](_0x54f55f));});}['_initMenus'](){const _0x10d9fc=_0x18b725;this[_0x10d9fc(0x9c)][_0x10d9fc(0xb3)](F);}};c=A([d(0x0,_0x1172be),d(0x1,_0x37d916)],c);var j=Object[_0x18b725(0xae)],B=Object[_0x18b725(0xa8)],$=(_0x39c7ef,_0x4d6098,_0x6404d)=>_0x4d6098 in _0x39c7ef?j(_0x39c7ef,_0x4d6098,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x6404d}):_0x39c7ef[_0x4d6098]=_0x6404d,V=(_0x473a77,_0x262c4c,_0x4faba6,_0x3ab3c4)=>{const _0x447aab=_0x18b725;for(var _0x3616df=_0x3ab3c4>0x1?void 0x0:_0x3ab3c4?B(_0x262c4c,_0x4faba6):_0x262c4c,_0x55a084=_0x473a77[_0x447aab(0xb5)]-0x1,_0x25f1c1;_0x55a084>=0x0;_0x55a084--)(_0x25f1c1=_0x473a77[_0x55a084])&&(_0x3616df=_0x25f1c1(_0x3616df)||_0x3616df);return _0x3616df;},_=(_0x4e6352,_0x148d42)=>(_0x534fde,_0x1e8c40)=>_0x148d42(_0x534fde,_0x1e8c40,_0x4e6352),I=(_0x37d8c2,_0x41d77b,_0x14653f)=>$(_0x37d8c2,typeof _0x41d77b!=_0x18b725(0xbc)?_0x41d77b+'':_0x41d77b,_0x14653f);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x31c291{constructor(_0x448414=l,_0x39cd8f,_0x1b87b0){const _0x215d4e=_0x18b725;super(),this[_0x215d4e(0xc0)]=_0x448414,this[_0x215d4e(0xb1)]=_0x39cd8f,this[_0x215d4e(0x96)]=_0x1b87b0;const {menu:_0x4ce850,..._0x56520d}=_0x3170ec({},l,this[_0x215d4e(0xc0)]);_0x4ce850&&this['_configService'][_0x215d4e(0x98)](_0x215d4e(0x97),_0x4ce850,{'merge':!0x0}),this['_configService']['setConfig'](H,_0x56520d);}[_0x18b725(0xc1)](){const _0x1ff9ea=_0x18b725;[[c]][_0x1ff9ea(0x9b)](_0x52effb=>this['_injector'][_0x1ff9ea(0xa1)](_0x52effb));}['onReady'](){const _0x4d9de0=_0x18b725;this[_0x4d9de0(0xb1)][_0x4d9de0(0xaa)](c);}};I(s,_0x18b725(0xbb),W),I(s,_0x18b725(0xab),_0x1debd6[_0x18b725(0x9f)]),s=V([_0x51b982(_0x1d3d3d),_(0x1,_0x10d50c(_0x36a6ae)),_(0x2,_0x4d7164)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x5d591c=_0x3293;(function(_0x37f626,_0x30f328){const _0x5266bc=_0x3293,_0x267ce7=_0x37f626();while(!![]){try{const _0x5bbbe4=parseInt(_0x5266bc(0x13c))/0x1*(-parseInt(_0x5266bc(0x112))/0x2)+parseInt(_0x5266bc(0x131))/0x3+parseInt(_0x5266bc(0x134))/0x4*(-parseInt(_0x5266bc(0x116))/0x5)+-parseInt(_0x5266bc(0x12a))/0x6+parseInt(_0x5266bc(0x128))/0x7*(parseInt(_0x5266bc(0x113))/0x8)+parseInt(_0x5266bc(0x11f))/0x9+-parseInt(_0x5266bc(0x12b))/0xa*(-parseInt(_0x5266bc(0x11e))/0xb);if(_0x5bbbe4===_0x30f328)break;else _0x267ce7['push'](_0x267ce7['shift']());}catch(_0x5a5783){_0x267ce7['push'](_0x267ce7['shift']());}}}(_0x54b5,0x90c8c));import{IExchangeOperateService as _0x1f35d7,UniverExchangeClientPlugin as _0x30f8a8}from'@univerjs-pro/exchange-client';import{CommandType as _0x39aef8,UniverInstanceType as _0x28fc2a,Disposable as _0x18b44e,ICommandService as _0x2d3d94,DependentOn as _0x3e9ffa,Inject as _0x1078cd,Injector as _0x2a92b0,IConfigService as _0x4a3db4,Plugin as _0x28c0ce,merge as _0x26fdfe}from'@univerjs/core';function _0x54b5(){const _0x226a79=['search','5690178PeZtCY','123260ofcByg','exchange-client.operation.export-xlsx','_config','exchange-client.operation.import-xlsx','sheets-exchange-client.operation.exchange','_commandService','844371jqpbcH','onStarting','_injector','3573932VlRbUW','setConfig','_menuManagerService','pluginName','forEach','_initCommands','unit','importXLSXToUnitId','13odGvhd','DirectExportIcon','defineProperty','SHEET_EXCHANGE_CLIENT_PLUGIN','OPERATION','sheets-exchange-client.config','127890tfMdUr','7435184opfCqq','OTHERS','getOwnPropertyDescriptor','5cVNlQN','get','_configService','symbol','disposeWithMe','mergeMenu','exchange.download','UNIVER_SHEET','792prVgsx','10510560oaKuzC','BUTTON','exchange.upload','_initMenus','onReady','registerCommand','importXLSXToSnapshot','exportXLSXBySnapshot','length','7YWjVAJ'];_0x54b5=function(){return _0x226a79;};return _0x54b5();}import{MenuItemType as _0x5a9451,getMenuHiddenObservable as _0x53ee9e,RibbonStartGroup as _0x14123d,IMenuManagerService as _0x2899d2}from'@univerjs/ui';import{WorkbookExportPermission as _0x572188}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x1d5bf1}from'@univerjs/sheets-ui';const p={'id':_0x5d591c(0x12e),'type':_0x39aef8[_0x5d591c(0x110)],'handler':async _0x2c92fd=>{const _0x152fb9=_0x5d591c,_0x2c51=_0x2c92fd[_0x152fb9(0x117)](_0x1f35d7);return new URLSearchParams(location['search'])[_0x152fb9(0x117)]('unit')?_0x2c51[_0x152fb9(0x13b)]():_0x2c51[_0x152fb9(0x125)](),!0x0;}},u={'id':_0x5d591c(0x12c),'type':_0x39aef8[_0x5d591c(0x110)],'handler':async _0x30cadd=>{const _0x20168c=_0x5d591c,_0x2b6e1f=_0x30cadd[_0x20168c(0x117)](_0x1f35d7);return new URLSearchParams(location[_0x20168c(0x129)])[_0x20168c(0x117)](_0x20168c(0x13a))?_0x2b6e1f['exportXLSXByUnitId']():_0x2b6e1f[_0x20168c(0x126)](),!0x0;}},H=_0x5d591c(0x111),l={},S=_0x5d591c(0x12f);function R(_0x7c124e){const _0x275cf0=_0x5d591c;return{'id':S,'type':_0x5a9451['SUBITEMS'],'icon':_0x275cf0(0x13d),'tooltip':'exchange.file','hidden$':_0x53ee9e(_0x7c124e,_0x28fc2a['UNIVER_SHEET']),'disabled$':_0x1d5bf1(_0x7c124e,{'workbookTypes':[_0x572188]})};}function w(){const _0x37b6b4=_0x5d591c;return{'id':p['id'],'type':_0x5a9451[_0x37b6b4(0x120)],'title':_0x37b6b4(0x121),'icon':'FolderIcon'};}function D(){const _0x599e49=_0x5d591c;return{'id':u['id'],'type':_0x5a9451[_0x599e49(0x120)],'title':_0x599e49(0x11c),'icon':'ExportIcon'};}const F={[_0x14123d[_0x5d591c(0x114)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x5d591c(0x115)],A=(_0x259a62,_0xe0d3ca,_0xd142c8,_0x30b880)=>{const _0x36709=_0x5d591c;for(var _0x431cc2=_0x30b880>0x1?void 0x0:_0x30b880?G(_0xe0d3ca,_0xd142c8):_0xe0d3ca,_0x3151cc=_0x259a62[_0x36709(0x127)]-0x1,_0x55e18b;_0x3151cc>=0x0;_0x3151cc--)(_0x55e18b=_0x259a62[_0x3151cc])&&(_0x431cc2=_0x55e18b(_0x431cc2)||_0x431cc2);return _0x431cc2;},d=(_0x13f938,_0x54ea47)=>(_0x32f375,_0x5d0d5b)=>_0x54ea47(_0x32f375,_0x5d0d5b,_0x13f938);let c=class extends _0x18b44e{constructor(_0x4580d1,_0x2f8f78){const _0x52bff0=_0x5d591c;super(),this[_0x52bff0(0x130)]=_0x4580d1,this['_menuManagerService']=_0x2f8f78,this[_0x52bff0(0x139)](),this['_initMenus']();}[_0x5d591c(0x139)](){const _0x4574d2=_0x5d591c;[p,u][_0x4574d2(0x138)](_0x4b35e2=>{const _0x482863=_0x4574d2;this[_0x482863(0x11a)](this[_0x482863(0x130)][_0x482863(0x124)](_0x4b35e2));});}[_0x5d591c(0x122)](){const _0x1b014d=_0x5d591c;this[_0x1b014d(0x136)][_0x1b014d(0x11b)](F);}};c=A([d(0x0,_0x2d3d94),d(0x1,_0x2899d2)],c);var j=Object[_0x5d591c(0x13e)],B=Object['getOwnPropertyDescriptor'],$=(_0x157530,_0x34e029,_0x28141b)=>_0x34e029 in _0x157530?j(_0x157530,_0x34e029,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28141b}):_0x157530[_0x34e029]=_0x28141b,V=(_0x480974,_0x3c3a0d,_0xf310a7,_0x3b84a5)=>{const _0x4a3f18=_0x5d591c;for(var _0x1608f0=_0x3b84a5>0x1?void 0x0:_0x3b84a5?B(_0x3c3a0d,_0xf310a7):_0x3c3a0d,_0x9caecb=_0x480974[_0x4a3f18(0x127)]-0x1,_0x233b6c;_0x9caecb>=0x0;_0x9caecb--)(_0x233b6c=_0x480974[_0x9caecb])&&(_0x1608f0=_0x233b6c(_0x1608f0)||_0x1608f0);return _0x1608f0;},_=(_0x494dfb,_0x3432e4)=>(_0x542798,_0xdc55a3)=>_0x3432e4(_0x542798,_0xdc55a3,_0x494dfb),I=(_0x5c9693,_0xf8fc94,_0x30e8d8)=>$(_0x5c9693,typeof _0xf8fc94!=_0x5d591c(0x119)?_0xf8fc94+'':_0xf8fc94,_0x30e8d8);const W=_0x5d591c(0x10f);function _0x3293(_0x4644ee,_0x1a39bf){_0x4644ee=_0x4644ee-0x10f;const _0x54b588=_0x54b5();let _0x3293d3=_0x54b588[_0x4644ee];return _0x3293d3;}let s=class extends _0x28c0ce{constructor(_0x3bf845=l,_0x4d4e8d,_0x519c77){const _0x354b2b=_0x5d591c;super(),this[_0x354b2b(0x12d)]=_0x3bf845,this[_0x354b2b(0x133)]=_0x4d4e8d,this[_0x354b2b(0x118)]=_0x519c77;const {menu:_0x1cfba9,..._0x186838}=_0x26fdfe({},l,this[_0x354b2b(0x12d)]);_0x1cfba9&&this[_0x354b2b(0x118)][_0x354b2b(0x135)]('menu',_0x1cfba9,{'merge':!0x0}),this[_0x354b2b(0x118)][_0x354b2b(0x135)](H,_0x186838);}[_0x5d591c(0x132)](){const _0xcba137=_0x5d591c;[[c]][_0xcba137(0x138)](_0x4b9609=>this[_0xcba137(0x133)]['add'](_0x4b9609));}[_0x5d591c(0x123)](){const _0x59d9f6=_0x5d591c;this[_0x59d9f6(0x133)][_0x59d9f6(0x117)](c);}};I(s,_0x5d591c(0x137),W),I(s,'type',_0x28fc2a[_0x5d591c(0x11d)]),s=V([_0x3e9ffa(_0x30f8a8),_(0x1,_0x1078cd(_0x2a92b0)),_(0x2,_0x4a3db4)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x3050(_0x59e80b,_0x52f2f5){_0x59e80b=_0x59e80b-0x1a9;const _0xc0e94c=_0xc0e9();let _0x3050c1=_0xc0e94c[_0x59e80b];return _0x3050c1;}function _0xc0e9(){const _0x599a73=['sheets-exchange-client.operation.exchange','getOwnPropertyDescriptor','UniverInstanceType','IMenuManagerService','toStringTag','getMenuHiddenObservable','_configService','_menuManagerService','UniverSheetsExchangeClientPlugin','exchange.upload','exports','IExchangeOperateService','MenuItemType','2292058xFkwEI','117vcGSPk','exportXLSXBySnapshot','Module','BUTTON','symbol','Plugin','SHEET_EXCHANGE_CLIENT_PLUGIN','search','sheets-exchange-client.config','WorkbookExportPermission','7GJyknG','type','IConfigService','get','@univerjs/core','forEach','_config','DirectExportIcon','2645145SYwJWO','4651800SgaXsG','setConfig','RibbonStartGroup','Disposable','9708xuqnjv','UniverSheets','_commandService','@univerjs-pro/exchange-client','Injector','5383965QTBCxG','unit','defineProperty','UniverCore','1775896lnwYoq','function','object','_injector','merge','_initMenus','onReady','UniverExchangeClientPlugin','length','add','ExportXLSXOperation','@univerjs/sheets','ICommandService','UniverUi','exchange.file','menu','amd','UniverSheetsUi','importXLSXToSnapshot','@univerjs/sheets-ui','15074vNZmOs','CommandType','SUBITEMS','_initCommands','UNIVER_SHEET','mergeMenu','exchange-client.operation.import-xlsx'];_0xc0e9=function(){return _0x599a73;};return _0xc0e9();}(function(_0x119dbd,_0x3b1879){const _0x3decef=_0x3050,_0x5e3c4f=_0x119dbd();while(!![]){try{const _0xee8fdc=-parseInt(_0x3decef(0x1c9))/0x1+-parseInt(_0x3decef(0x1dd))/0x2+-parseInt(_0x3decef(0x1f0))/0x3+-parseInt(_0x3decef(0x1f1))/0x4+parseInt(_0x3decef(0x1b1))/0x5+-parseInt(_0x3decef(0x1ac))/0x6*(-parseInt(_0x3decef(0x1e8))/0x7)+-parseInt(_0x3decef(0x1b5))/0x8*(-parseInt(_0x3decef(0x1de))/0x9);if(_0xee8fdc===_0x3b1879)break;else _0x5e3c4f['push'](_0x5e3c4f['shift']());}catch(_0x579dea){_0x5e3c4f['push'](_0x5e3c4f['shift']());}}}(_0xc0e9,0xb92ca),function(_0x4e09cd,_0x1bce9a){const _0x2f6abe=_0x3050;typeof exports==_0x2f6abe(0x1b7)&&typeof module<'u'?_0x1bce9a(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x2f6abe(0x1b6)&&define[_0x2f6abe(0x1c5)]?define([_0x2f6abe(0x1da),_0x2f6abe(0x1af),_0x2f6abe(0x1ec),'@univerjs/ui',_0x2f6abe(0x1c0),_0x2f6abe(0x1c8)],_0x1bce9a):(_0x4e09cd=typeof globalThis<'u'?globalThis:_0x4e09cd||self,_0x1bce9a(_0x4e09cd['UniverProSheetsExchangeClient']={},_0x4e09cd['UniverProExchangeClient'],_0x4e09cd[_0x2f6abe(0x1b4)],_0x4e09cd[_0x2f6abe(0x1c2)],_0x4e09cd[_0x2f6abe(0x1ad)],_0x4e09cd[_0x2f6abe(0x1c6)]));}(this,function(_0x4f889b,_0x355075,_0x256ea,_0x2e2b06,_0x145b2d,_0x3a8997){'use strict';const _0x50a96f=_0x3050;const _0x175f63={'id':_0x50a96f(0x1cf),'type':_0x256ea[_0x50a96f(0x1ca)]['OPERATION'],'handler':async _0x3d3f17=>{const _0x2e5dc8=_0x50a96f,_0x1e7d4e=_0x3d3f17[_0x2e5dc8(0x1eb)](_0x355075[_0x2e5dc8(0x1db)]);return new URLSearchParams(location[_0x2e5dc8(0x1e5)])['get'](_0x2e5dc8(0x1b2))?_0x1e7d4e['importXLSXToUnitId']():_0x1e7d4e[_0x2e5dc8(0x1c7)](),!0x0;}},_0x1ddb6f={'id':'exchange-client.operation.export-xlsx','type':_0x256ea[_0x50a96f(0x1ca)]['OPERATION'],'handler':async _0x2e417f=>{const _0x424ffd=_0x50a96f,_0x4a5561=_0x2e417f['get'](_0x355075[_0x424ffd(0x1db)]);return new URLSearchParams(location[_0x424ffd(0x1e5)])['get']('unit')?_0x4a5561['exportXLSXByUnitId']():_0x4a5561[_0x424ffd(0x1df)](),!0x0;}},_0x5be052=_0x50a96f(0x1e6),_0x15db3d={},_0x355214=_0x50a96f(0x1d0);function _0x4f2fde(_0x5dee7e){const _0x3471c4=_0x50a96f;return{'id':_0x355214,'type':_0x2e2b06[_0x3471c4(0x1dc)][_0x3471c4(0x1cb)],'icon':_0x3471c4(0x1ef),'tooltip':_0x3471c4(0x1c3),'hidden$':_0x2e2b06[_0x3471c4(0x1d5)](_0x5dee7e,_0x256ea[_0x3471c4(0x1d2)][_0x3471c4(0x1cd)]),'disabled$':_0x3a8997['getCurrentRangeDisable$'](_0x5dee7e,{'workbookTypes':[_0x145b2d[_0x3471c4(0x1e7)]]})};}function _0x2225e2(){const _0x1e7564=_0x50a96f;return{'id':_0x175f63['id'],'type':_0x2e2b06[_0x1e7564(0x1dc)]['BUTTON'],'title':_0x1e7564(0x1d9),'icon':'FolderIcon'};}function _0x575852(){const _0x9be324=_0x50a96f;return{'id':_0x1ddb6f['id'],'type':_0x2e2b06[_0x9be324(0x1dc)][_0x9be324(0x1e1)],'title':'exchange.download','icon':'ExportIcon'};}const _0x5240b5={[_0x2e2b06[_0x50a96f(0x1aa)]['OTHERS']]:{[_0x355214]:{'order':0.3,'menuItemFactory':_0x4f2fde,[_0x175f63['id']]:{'order':0x0,'menuItemFactory':_0x2225e2},[_0x1ddb6f['id']]:{'order':0x1,'menuItemFactory':_0x575852}}}};var _0x4fa971=Object[_0x50a96f(0x1d1)],_0x2fbcfe=(_0x3a7069,_0x262247,_0x1c726b,_0x582d68)=>{const _0x36b964=_0x50a96f;for(var _0x4fdfd4=_0x582d68>0x1?void 0x0:_0x582d68?_0x4fa971(_0x262247,_0x1c726b):_0x262247,_0x164fa1=_0x3a7069[_0x36b964(0x1bd)]-0x1,_0x308fa3;_0x164fa1>=0x0;_0x164fa1--)(_0x308fa3=_0x3a7069[_0x164fa1])&&(_0x4fdfd4=_0x308fa3(_0x4fdfd4)||_0x4fdfd4);return _0x4fdfd4;},_0x578216=(_0x562017,_0x4a564a)=>(_0x1e5ac3,_0x34427c)=>_0x4a564a(_0x1e5ac3,_0x34427c,_0x562017);let _0x164bf3=class extends _0x256ea[_0x50a96f(0x1ab)]{constructor(_0x331a35,_0x969491){const _0x3bc860=_0x50a96f;super(),this[_0x3bc860(0x1ae)]=_0x331a35,this[_0x3bc860(0x1d7)]=_0x969491,this[_0x3bc860(0x1cc)](),this['_initMenus']();}['_initCommands'](){[_0x175f63,_0x1ddb6f]['forEach'](_0x508c97=>{const _0xc31ae2=_0x3050;this['disposeWithMe'](this[_0xc31ae2(0x1ae)]['registerCommand'](_0x508c97));});}[_0x50a96f(0x1ba)](){const _0x269ebb=_0x50a96f;this['_menuManagerService'][_0x269ebb(0x1ce)](_0x5240b5);}};_0x164bf3=_0x2fbcfe([_0x578216(0x0,_0x256ea[_0x50a96f(0x1c1)]),_0x578216(0x1,_0x2e2b06[_0x50a96f(0x1d3)])],_0x164bf3);var _0x451ce5=Object[_0x50a96f(0x1b3)],_0x51e683=Object[_0x50a96f(0x1d1)],_0x196471=(_0x4467da,_0x519a84,_0x3752e0)=>_0x519a84 in _0x4467da?_0x451ce5(_0x4467da,_0x519a84,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3752e0}):_0x4467da[_0x519a84]=_0x3752e0,_0x4deb6a=(_0x4b9be9,_0x360fee,_0x13d442,_0x5474c0)=>{const _0x2384a4=_0x50a96f;for(var _0x3cd6d0=_0x5474c0>0x1?void 0x0:_0x5474c0?_0x51e683(_0x360fee,_0x13d442):_0x360fee,_0x5b138b=_0x4b9be9[_0x2384a4(0x1bd)]-0x1,_0x439e09;_0x5b138b>=0x0;_0x5b138b--)(_0x439e09=_0x4b9be9[_0x5b138b])&&(_0x3cd6d0=_0x439e09(_0x3cd6d0)||_0x3cd6d0);return _0x3cd6d0;},_0x2493cc=(_0x768f7,_0x3d8b15)=>(_0x3bac4c,_0xb196e1)=>_0x3d8b15(_0x3bac4c,_0xb196e1,_0x768f7),_0x140842=(_0x246cee,_0x46bcfd,_0x4e6620)=>_0x196471(_0x246cee,typeof _0x46bcfd!=_0x50a96f(0x1e2)?_0x46bcfd+'':_0x46bcfd,_0x4e6620);const _0x2e2d29=_0x50a96f(0x1e4);_0x4f889b['UniverSheetsExchangeClientPlugin']=class extends _0x256ea[_0x50a96f(0x1e3)]{constructor(_0xa09f37=_0x15db3d,_0x216c86,_0x15a8d9){const _0x46fb0c=_0x50a96f;super(),this[_0x46fb0c(0x1ee)]=_0xa09f37,this[_0x46fb0c(0x1b8)]=_0x216c86,this[_0x46fb0c(0x1d6)]=_0x15a8d9;const {menu:_0x21fd71,..._0x3b2f34}=_0x256ea[_0x46fb0c(0x1b9)]({},_0x15db3d,this[_0x46fb0c(0x1ee)]);_0x21fd71&&this['_configService'][_0x46fb0c(0x1a9)](_0x46fb0c(0x1c4),_0x21fd71,{'merge':!0x0}),this[_0x46fb0c(0x1d6)][_0x46fb0c(0x1a9)](_0x5be052,_0x3b2f34);}['onStarting'](){const _0x1e6644=_0x50a96f;[[_0x164bf3]][_0x1e6644(0x1ed)](_0x59145c=>this['_injector'][_0x1e6644(0x1be)](_0x59145c));}[_0x50a96f(0x1bb)](){const _0x394da6=_0x50a96f;this[_0x394da6(0x1b8)][_0x394da6(0x1eb)](_0x164bf3);}},_0x140842(_0x4f889b[_0x50a96f(0x1d8)],'pluginName',_0x2e2d29),_0x140842(_0x4f889b['UniverSheetsExchangeClientPlugin'],_0x50a96f(0x1e9),_0x256ea[_0x50a96f(0x1d2)]['UNIVER_SHEET']),_0x4f889b[_0x50a96f(0x1d8)]=_0x4deb6a([_0x256ea['DependentOn'](_0x355075[_0x50a96f(0x1bc)]),_0x2493cc(0x1,_0x256ea['Inject'](_0x256ea[_0x50a96f(0x1b0)])),_0x2493cc(0x2,_0x256ea[_0x50a96f(0x1ea)])],_0x4f889b[_0x50a96f(0x1d8)]),_0x4f889b[_0x50a96f(0x1bf)]=_0x1ddb6f,_0x4f889b['ImportXLSXOperation']=_0x175f63,Object[_0x50a96f(0x1b3)](_0x4f889b,Symbol[_0x50a96f(0x1d4)],{'value':_0x50a96f(0x1e0)});}));
1
+ function _0x4fbe(_0x1a7884,_0x3e8535){_0x1a7884=_0x1a7884-0xc5;const _0x5ded9f=_0x5ded();let _0x4fbea4=_0x5ded9f[_0x1a7884];return _0x4fbea4;}function _0x5ded(){const _0x25a41d=['RibbonStartGroup','UniverInstanceType','type','_menuManagerService','14763612rLlmlA','_commandService','sheets-exchange-client.config','add','11PdmtCt','12MHBAuV','WorkbookExportPermission','exchange.file','UniverProExchangeClient','@univerjs/core','unit','434041oaSyZu','_configService','setConfig','UniverSheetsUi','disposeWithMe','OTHERS','importXLSXToSnapshot','length','@univerjs/ui','registerCommand','getOwnPropertyDescriptor','Injector','ImportXLSXOperation','14229PWPcgd','@univerjs-pro/exchange-client','1627700COJwrk','BUTTON','sheets-exchange-client.operation.exchange','exchange.upload','exports','IMenuManagerService','exchange.download','exchange-client.operation.export-xlsx','exportXLSXBySnapshot','UniverSheets','importXLSXToUnitId','search','forEach','defineProperty','DependentOn','2450mwRKMK','165930PZlzhh','get','2ILGVrl','exchange-client.operation.import-xlsx','UNIVER_SHEET','Disposable','menu','toStringTag','OPERATION','CommandType','mergeMenu','UniverSheetsExchangeClientPlugin','IConfigService','amd','getMenuHiddenObservable','pluginName','MenuItemType','ExportXLSXOperation','100376wNMiHm','_initMenus','_initCommands','Module','@univerjs/sheets-ui','ExportIcon','1090850DLmOor','SHEET_EXCHANGE_CLIENT_PLUGIN','object','91NJcuAR','UniverCore','SUBITEMS','function'];_0x5ded=function(){return _0x25a41d;};return _0x5ded();}(function(_0x2c1bfe,_0x2c9579){const _0x4727ca=_0x4fbe,_0x2848d7=_0x2c1bfe();while(!![]){try{const _0x52117d=-parseInt(_0x4727ca(0xd7))/0x1+parseInt(_0x4727ca(0xf8))/0x2*(-parseInt(_0x4727ca(0xf6))/0x3)+-parseInt(_0x4727ca(0xe6))/0x4+parseInt(_0x4727ca(0x10e))/0x5*(parseInt(_0x4727ca(0xd1))/0x6)+parseInt(_0x4727ca(0x111))/0x7*(-parseInt(_0x4727ca(0x108))/0x8)+parseInt(_0x4727ca(0xe4))/0x9*(-parseInt(_0x4727ca(0xf5))/0xa)+-parseInt(_0x4727ca(0xd0))/0xb*(-parseInt(_0x4727ca(0xcc))/0xc);if(_0x52117d===_0x2c9579)break;else _0x2848d7['push'](_0x2848d7['shift']());}catch(_0x437e1e){_0x2848d7['push'](_0x2848d7['shift']());}}}(_0x5ded,0x35b05),function(_0x204ff4,_0x3db87d){const _0x2b77c3=_0x4fbe;typeof exports==_0x2b77c3(0x110)&&typeof module<'u'?_0x3db87d(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x2b77c3(0xc7)&&define[_0x2b77c3(0x103)]?define([_0x2b77c3(0xea),_0x2b77c3(0xe5),_0x2b77c3(0xd5),_0x2b77c3(0xdf),'@univerjs/sheets',_0x2b77c3(0x10c)],_0x3db87d):(_0x204ff4=typeof globalThis<'u'?globalThis:_0x204ff4||self,_0x3db87d(_0x204ff4['UniverProSheetsExchangeClient']={},_0x204ff4[_0x2b77c3(0xd4)],_0x204ff4[_0x2b77c3(0xc5)],_0x204ff4['UniverUi'],_0x204ff4[_0x2b77c3(0xef)],_0x204ff4[_0x2b77c3(0xda)]));}(this,function(_0x2a238a,_0x2b14d2,_0x2cc84e,_0xc8b8c5,_0x284592,_0x515e28){'use strict';const _0x991ce3=_0x4fbe;const _0x520168={'id':_0x991ce3(0xf9),'type':_0x2cc84e[_0x991ce3(0xff)][_0x991ce3(0xfe)],'handler':async _0x1f6609=>{const _0xc603e2=_0x991ce3,_0x2259a2=_0x1f6609['get'](_0x2b14d2['IExchangeOperateService']);return new URLSearchParams(location[_0xc603e2(0xf1)])[_0xc603e2(0xf7)](_0xc603e2(0xd6))?_0x2259a2[_0xc603e2(0xf0)]():_0x2259a2[_0xc603e2(0xdd)](),!0x0;}},_0x4f59be={'id':_0x991ce3(0xed),'type':_0x2cc84e['CommandType'][_0x991ce3(0xfe)],'handler':async _0x131e9d=>{const _0x1718da=_0x991ce3,_0x12ad4e=_0x131e9d['get'](_0x2b14d2['IExchangeOperateService']);return new URLSearchParams(location['search'])['get']('unit')?_0x12ad4e['exportXLSXByUnitId']():_0x12ad4e[_0x1718da(0xee)](),!0x0;}},_0x117082=_0x991ce3(0xce),_0x2c7787={},_0x338288=_0x991ce3(0xe8);function _0x4b6c01(_0x20744a){const _0xa6907b=_0x991ce3;return{'id':_0x338288,'type':_0xc8b8c5['MenuItemType'][_0xa6907b(0xc6)],'icon':'DirectExportIcon','tooltip':_0xa6907b(0xd3),'hidden$':_0xc8b8c5[_0xa6907b(0x104)](_0x20744a,_0x2cc84e[_0xa6907b(0xc9)][_0xa6907b(0xfa)]),'disabled$':_0x515e28['getCurrentRangeDisable$'](_0x20744a,{'workbookTypes':[_0x284592[_0xa6907b(0xd2)]]})};}function _0x664c8a(){const _0x2a3ae2=_0x991ce3;return{'id':_0x520168['id'],'type':_0xc8b8c5[_0x2a3ae2(0x106)]['BUTTON'],'title':_0x2a3ae2(0xe9),'icon':'FolderIcon'};}function _0x5e3eb9(){const _0x1f4148=_0x991ce3;return{'id':_0x4f59be['id'],'type':_0xc8b8c5['MenuItemType'][_0x1f4148(0xe7)],'title':_0x1f4148(0xec),'icon':_0x1f4148(0x10d)};}const _0x457a1b={[_0xc8b8c5[_0x991ce3(0xc8)][_0x991ce3(0xdc)]]:{[_0x338288]:{'order':0.3,'menuItemFactory':_0x4b6c01,[_0x520168['id']]:{'order':0x0,'menuItemFactory':_0x664c8a},[_0x4f59be['id']]:{'order':0x1,'menuItemFactory':_0x5e3eb9}}}};var _0x554798=Object[_0x991ce3(0xe1)],_0x51c213=(_0x56d117,_0x38e85f,_0x2e834b,_0x2a9a29)=>{for(var _0x1695fd=_0x2a9a29>0x1?void 0x0:_0x2a9a29?_0x554798(_0x38e85f,_0x2e834b):_0x38e85f,_0x3cbefd=_0x56d117['length']-0x1,_0x51f67d;_0x3cbefd>=0x0;_0x3cbefd--)(_0x51f67d=_0x56d117[_0x3cbefd])&&(_0x1695fd=_0x51f67d(_0x1695fd)||_0x1695fd);return _0x1695fd;},_0x2dc6f8=(_0x37168d,_0x1c8c69)=>(_0x380304,_0x509408)=>_0x1c8c69(_0x380304,_0x509408,_0x37168d);let _0x59e09c=class extends _0x2cc84e[_0x991ce3(0xfb)]{constructor(_0x25d497,_0x4d14c3){const _0x2f24d1=_0x991ce3;super(),this[_0x2f24d1(0xcd)]=_0x25d497,this[_0x2f24d1(0xcb)]=_0x4d14c3,this[_0x2f24d1(0x10a)](),this[_0x2f24d1(0x109)]();}[_0x991ce3(0x10a)](){[_0x520168,_0x4f59be]['forEach'](_0x35e5e5=>{const _0x5a7cd5=_0x4fbe;this[_0x5a7cd5(0xdb)](this['_commandService'][_0x5a7cd5(0xe0)](_0x35e5e5));});}[_0x991ce3(0x109)](){const _0x57568e=_0x991ce3;this[_0x57568e(0xcb)][_0x57568e(0x100)](_0x457a1b);}};_0x59e09c=_0x51c213([_0x2dc6f8(0x0,_0x2cc84e['ICommandService']),_0x2dc6f8(0x1,_0xc8b8c5[_0x991ce3(0xeb)])],_0x59e09c);var _0x288084=Object[_0x991ce3(0xf3)],_0x16bac1=Object[_0x991ce3(0xe1)],_0x4d89d9=(_0x5bf406,_0x309845,_0x5697d4)=>_0x309845 in _0x5bf406?_0x288084(_0x5bf406,_0x309845,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5697d4}):_0x5bf406[_0x309845]=_0x5697d4,_0x4f26fd=(_0x1dc3db,_0x130585,_0x3d5402,_0x44491d)=>{const _0x22d35f=_0x991ce3;for(var _0x33aca8=_0x44491d>0x1?void 0x0:_0x44491d?_0x16bac1(_0x130585,_0x3d5402):_0x130585,_0x7106ac=_0x1dc3db[_0x22d35f(0xde)]-0x1,_0x3b0f6d;_0x7106ac>=0x0;_0x7106ac--)(_0x3b0f6d=_0x1dc3db[_0x7106ac])&&(_0x33aca8=_0x3b0f6d(_0x33aca8)||_0x33aca8);return _0x33aca8;},_0x1d2444=(_0x335e95,_0x1f6603)=>(_0x2a897a,_0x2a0462)=>_0x1f6603(_0x2a897a,_0x2a0462,_0x335e95),_0x168d0c=(_0x27158a,_0x44623d,_0x2617f0)=>_0x4d89d9(_0x27158a,typeof _0x44623d!='symbol'?_0x44623d+'':_0x44623d,_0x2617f0);const _0x55c640=_0x991ce3(0x10f);_0x2a238a[_0x991ce3(0x101)]=class extends _0x2cc84e['Plugin']{constructor(_0x31f9f3=_0x2c7787,_0x52df15,_0x236c75){const _0x3ff5b6=_0x991ce3;super(),this['_config']=_0x31f9f3,this['_injector']=_0x52df15,this[_0x3ff5b6(0xd8)]=_0x236c75;const {menu:_0x47df19,..._0x4fe4b8}=_0x2cc84e['merge']({},_0x2c7787,this['_config']);_0x47df19&&this[_0x3ff5b6(0xd8)][_0x3ff5b6(0xd9)](_0x3ff5b6(0xfc),_0x47df19,{'merge':!0x0}),this[_0x3ff5b6(0xd8)]['setConfig'](_0x117082,_0x4fe4b8);}['onStarting'](){const _0x46926d=_0x991ce3;[[_0x59e09c]][_0x46926d(0xf2)](_0x2a6050=>this['_injector'][_0x46926d(0xcf)](_0x2a6050));}['onReady'](){const _0x14bdca=_0x991ce3;this['_injector'][_0x14bdca(0xf7)](_0x59e09c);}},_0x168d0c(_0x2a238a['UniverSheetsExchangeClientPlugin'],_0x991ce3(0x105),_0x55c640),_0x168d0c(_0x2a238a['UniverSheetsExchangeClientPlugin'],_0x991ce3(0xca),_0x2cc84e[_0x991ce3(0xc9)][_0x991ce3(0xfa)]),_0x2a238a[_0x991ce3(0x101)]=_0x4f26fd([_0x2cc84e[_0x991ce3(0xf4)](_0x2b14d2['UniverExchangeClientPlugin']),_0x1d2444(0x1,_0x2cc84e['Inject'](_0x2cc84e[_0x991ce3(0xe2)])),_0x1d2444(0x2,_0x2cc84e[_0x991ce3(0x102)])],_0x2a238a[_0x991ce3(0x101)]),_0x2a238a[_0x991ce3(0x107)]=_0x4f59be,_0x2a238a[_0x991ce3(0xe3)]=_0x520168,Object[_0x991ce3(0xf3)](_0x2a238a,Symbol[_0x991ce3(0xfd)],{'value':_0x991ce3(0x10b)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.15.0-insiders.20251227-c108ce3",
3
+ "version": "0.15.0-insiders.20260107-3441c7a",
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.0-insiders.20251227-c108ce3",
46
- "@univerjs/core": "0.15.0-insiders.20251227-c108ce3",
47
- "@univerjs/sheets": "0.15.0-insiders.20251227-c108ce3",
48
- "@univerjs/sheets-ui": "0.15.0-insiders.20251227-c108ce3",
49
- "@univerjs/ui": "0.15.0-insiders.20251227-c108ce3"
45
+ "@univerjs-pro/exchange-client": "0.15.0-insiders.20260107-3441c7a",
46
+ "@univerjs/core": "0.15.0-insiders.20260107-3441c7a",
47
+ "@univerjs/sheets": "0.15.0-insiders.20260107-3441c7a",
48
+ "@univerjs/sheets-ui": "0.15.0-insiders.20260107-3441c7a",
49
+ "@univerjs/ui": "0.15.0-insiders.20260107-3441c7a"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",