@univerjs-pro/sheets-exchange-client 0.16.0 → 0.16.1

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 _0x18c2da=_0x326d;function _0x1469(){const _0x2c4d53=['IMenuManagerService','sheets-exchange-client.operation.exchange','WorkbookExportPermission','search','_initMenus','exchange-client.operation.export-xlsx','menu','add','116016zJlylJ','OPERATION','_config','getMenuHiddenObservable','FolderIcon','1994500fxLqhQ','3150135THMUOf','onStarting','exchange.file','CommandType','getOwnPropertyDescriptor','importXLSXToSnapshot','OTHERS','Injector','BUTTON','_configService','_menuManagerService','ICommandService','registerCommand','UniverInstanceType','unit','importXLSXToUnitId','_initCommands','length','DirectExportIcon','100842dLmPtK','MenuItemType','toStringTag','IExchangeOperateService','471294cWpDRI','exchange.upload','271104isUUSC','defineProperty','Disposable','setConfig','get','mergeMenu','813021JJIVxP','DependentOn','sheets-exchange-client.config','Module','forEach','Plugin','SUBITEMS','5aQBjyZ','ExportXLSXOperation','UniverSheetsExchangeClientPlugin','Inject','onReady','42qiLXeI','UNIVER_SHEET','_injector','RibbonStartGroup','exportXLSXBySnapshot','_commandService'];_0x1469=function(){return _0x2c4d53;};return _0x1469();}(function(_0x14a050,_0x220478){const _0x3cc86f=_0x326d,_0x38b843=_0x14a050();while(!![]){try{const _0xbff3af=parseInt(_0x3cc86f(0x15d))/0x1+-parseInt(_0x3cc86f(0x15b))/0x2+parseInt(_0x3cc86f(0x163))/0x3+-parseInt(_0x3cc86f(0x143))/0x4*(parseInt(_0x3cc86f(0x16a))/0x5)+parseInt(_0x3cc86f(0x157))/0x6+-parseInt(_0x3cc86f(0x16f))/0x7*(-parseInt(_0x3cc86f(0x17d))/0x8)+parseInt(_0x3cc86f(0x144))/0x9;if(_0xbff3af===_0x220478)break;else _0x38b843['push'](_0x38b843['shift']());}catch(_0x599835){_0x38b843['push'](_0x38b843['shift']());}}}(_0x1469,0x3fe29));Object[_0x18c2da(0x15e)](exports,Symbol[_0x18c2da(0x159)],{'value':_0x18c2da(0x166)});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['CommandType'][_0x18c2da(0x17e)],'handler':async _0x5824bf=>{const _0x5ed69b=_0x18c2da,_0x4d278c=_0x5824bf['get'](g[_0x5ed69b(0x15a)]);return new URLSearchParams(location[_0x5ed69b(0x178)])[_0x5ed69b(0x161)](_0x5ed69b(0x152))?_0x4d278c[_0x5ed69b(0x153)]():_0x4d278c[_0x5ed69b(0x149)](),!0x0;}},p={'id':_0x18c2da(0x17a),'type':i[_0x18c2da(0x147)][_0x18c2da(0x17e)],'handler':async _0x20cd61=>{const _0x2afb05=_0x18c2da,_0x4a9f1a=_0x20cd61['get'](g['IExchangeOperateService']);return new URLSearchParams(location[_0x2afb05(0x178)])['get'](_0x2afb05(0x152))?_0x4a9f1a['exportXLSXByUnitId']():_0x4a9f1a[_0x2afb05(0x173)](),!0x0;}},v=_0x18c2da(0x165),h={},S=_0x18c2da(0x176);function x(_0x3a9ecb){const _0x5b201f=_0x18c2da;return{'id':S,'type':c[_0x5b201f(0x158)][_0x5b201f(0x169)],'icon':_0x5b201f(0x156),'tooltip':_0x5b201f(0x146),'hidden$':c[_0x5b201f(0x180)](_0x3a9ecb,i[_0x5b201f(0x151)][_0x5b201f(0x170)]),'disabled$':I['getCurrentRangeDisable$'](_0x3a9ecb,{'workbookTypes':[_[_0x5b201f(0x177)]]})};}function P(){const _0xe19ade=_0x18c2da;return{'id':l['id'],'type':c[_0xe19ade(0x158)]['BUTTON'],'title':_0xe19ade(0x15c),'icon':_0xe19ade(0x181)};}function C(){const _0x281742=_0x18c2da;return{'id':p['id'],'type':c['MenuItemType'][_0x281742(0x14c)],'title':'exchange.download','icon':'ExportIcon'};}const f={[c[_0x18c2da(0x172)][_0x18c2da(0x14a)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x18c2da(0x148)],y=(_0x59a15c,_0x622eb5,_0x17ab5d,_0x35a504)=>{const _0x1cb829=_0x18c2da;for(var _0x3c881d=_0x35a504>0x1?void 0x0:_0x35a504?T(_0x622eb5,_0x17ab5d):_0x622eb5,_0x2c1fcc=_0x59a15c[_0x1cb829(0x155)]-0x1,_0x525167;_0x2c1fcc>=0x0;_0x2c1fcc--)(_0x525167=_0x59a15c[_0x2c1fcc])&&(_0x3c881d=_0x525167(_0x3c881d)||_0x3c881d);return _0x3c881d;},m=(_0x171b4e,_0xd4fc1)=>(_0x5262d3,_0x4b27ff)=>_0xd4fc1(_0x5262d3,_0x4b27ff,_0x171b4e);let u=class extends i[_0x18c2da(0x15f)]{constructor(_0x1c5ee6,_0x4bc8bd){const _0x5ece38=_0x18c2da;super(),this[_0x5ece38(0x174)]=_0x1c5ee6,this[_0x5ece38(0x14e)]=_0x4bc8bd,this[_0x5ece38(0x154)](),this[_0x5ece38(0x179)]();}[_0x18c2da(0x154)](){const _0x44e708=_0x18c2da;[l,p][_0x44e708(0x167)](_0x1d0caa=>{const _0x1e27af=_0x44e708;this['disposeWithMe'](this[_0x1e27af(0x174)][_0x1e27af(0x150)](_0x1d0caa));});}[_0x18c2da(0x179)](){const _0x26f500=_0x18c2da;this[_0x26f500(0x14e)][_0x26f500(0x162)](f);}};u=y([m(0x0,i[_0x18c2da(0x14f)]),m(0x1,c[_0x18c2da(0x175)])],u);var O=Object['defineProperty'],U=Object[_0x18c2da(0x148)],X=(_0x482d58,_0xc3368c,_0x3265af)=>_0xc3368c in _0x482d58?O(_0x482d58,_0xc3368c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3265af}):_0x482d58[_0xc3368c]=_0x3265af,N=(_0x514be1,_0x5b39dd,_0x58bdb7,_0x2b4805)=>{const _0x3c1103=_0x18c2da;for(var _0x13734a=_0x2b4805>0x1?void 0x0:_0x2b4805?U(_0x5b39dd,_0x58bdb7):_0x5b39dd,_0x4f4b45=_0x514be1[_0x3c1103(0x155)]-0x1,_0x4f7fbf;_0x4f4b45>=0x0;_0x4f4b45--)(_0x4f7fbf=_0x514be1[_0x4f4b45])&&(_0x13734a=_0x4f7fbf(_0x13734a)||_0x13734a);return _0x13734a;},d=(_0x5ea397,_0x51a81e)=>(_0x1a1d82,_0x3e398b)=>_0x51a81e(_0x1a1d82,_0x3e398b,_0x5ea397),E=(_0x447a5b,_0x2aeb9d,_0x24e8e0)=>X(_0x447a5b,typeof _0x2aeb9d!='symbol'?_0x2aeb9d+'':_0x2aeb9d,_0x24e8e0);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';function _0x326d(_0x42485a,_0x49c890){_0x42485a=_0x42485a-0x143;const _0x1469de=_0x1469();let _0x326df1=_0x1469de[_0x42485a];return _0x326df1;}exports[_0x18c2da(0x16c)]=class extends i[_0x18c2da(0x168)]{constructor(_0x345bca=h,_0x5ad588,_0x2a7d85){const _0x2f481a=_0x18c2da;super(),this[_0x2f481a(0x17f)]=_0x345bca,this['_injector']=_0x5ad588,this[_0x2f481a(0x14d)]=_0x2a7d85;const {menu:_0xca425f,..._0x1ef7f9}=i['merge']({},h,this[_0x2f481a(0x17f)]);_0xca425f&&this['_configService'][_0x2f481a(0x160)](_0x2f481a(0x17b),_0xca425f,{'merge':!0x0}),this[_0x2f481a(0x14d)][_0x2f481a(0x160)](v,_0x1ef7f9);}[_0x18c2da(0x145)](){const _0x3969f6=_0x18c2da;[[u]][_0x3969f6(0x167)](_0x50cf60=>this[_0x3969f6(0x171)][_0x3969f6(0x17c)](_0x50cf60));}[_0x18c2da(0x16e)](){const _0x581114=_0x18c2da;this[_0x581114(0x171)][_0x581114(0x161)](u);}},E(exports[_0x18c2da(0x16c)],'pluginName',L),E(exports[_0x18c2da(0x16c)],'type',i[_0x18c2da(0x151)]['UNIVER_SHEET']),exports['UniverSheetsExchangeClientPlugin']=N([i[_0x18c2da(0x164)](g['UniverExchangeClientPlugin']),d(0x1,i[_0x18c2da(0x16d)](i[_0x18c2da(0x14b)])),d(0x2,i['IConfigService'])],exports['UniverSheetsExchangeClientPlugin']),exports[_0x18c2da(0x16b)]=p,exports['ImportXLSXOperation']=l;
1
+ 'use strict';const _0x1a051d=_0x339a;(function(_0xff797e,_0x4629c8){const _0x49d281=_0x339a,_0x1f789f=_0xff797e();while(!![]){try{const _0x5ba326=-parseInt(_0x49d281(0xfc))/0x1*(parseInt(_0x49d281(0xd9))/0x2)+parseInt(_0x49d281(0x10e))/0x3*(parseInt(_0x49d281(0x101))/0x4)+-parseInt(_0x49d281(0x111))/0x5+parseInt(_0x49d281(0xe5))/0x6+parseInt(_0x49d281(0xd8))/0x7+-parseInt(_0x49d281(0x108))/0x8*(-parseInt(_0x49d281(0xdc))/0x9)+parseInt(_0x49d281(0xfd))/0xa*(parseInt(_0x49d281(0xfb))/0xb);if(_0x5ba326===_0x4629c8)break;else _0x1f789f['push'](_0x1f789f['shift']());}catch(_0x2e6e01){_0x1f789f['push'](_0x1f789f['shift']());}}}(_0x48b6,0x500aa));function _0x48b6(){const _0x277821=['UniverSheetsExchangeClientPlugin','sheets-exchange-client.config','getOwnPropertyDescriptor','942879ZDFqPW','22rZqYIK','onReady','BUTTON','1172961IZYMju','toStringTag','_initCommands','getCurrentRangeDisable$','SUBITEMS','unit','defineProperty','onStarting','IExchangeOperateService','3326046rdEabD','importXLSXToSnapshot','setConfig','ImportXLSXOperation','exchange.download','_commandService','MenuItemType','FolderIcon','Inject','Disposable','length','type','ICommandService','DependentOn','importXLSXToUnitId','pluginName','UNIVER_SHEET','_injector','_initMenus','SHEET_EXCHANGE_CLIENT_PLUGIN','WorkbookExportPermission','UniverInstanceType','2035FhdWHy','52667aQSSaq','7880zamkMj','UniverExchangeClientPlugin','exchange.file','forEach','2676BbXFZB','exportXLSXByUnitId','_menuManagerService','exportXLSXBySnapshot','sheets-exchange-client.operation.exchange','Plugin','OPERATION','16vECIVE','IConfigService','ExportXLSXOperation','exchange-client.operation.export-xlsx','RibbonStartGroup','get','48icxFfl','DirectExportIcon','exchange.upload','994965WKVnFm','symbol','search','Module','Injector','menu','disposeWithMe','ExportIcon','_configService','IMenuManagerService','OTHERS'];_0x48b6=function(){return _0x277821;};return _0x48b6();}Object[_0x1a051d(0xe2)](exports,Symbol[_0x1a051d(0xdd)],{'value':_0x1a051d(0x114)});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['CommandType'][_0x1a051d(0x107)],'handler':async _0x46afe2=>{const _0x167b8f=_0x1a051d,_0x23c547=_0x46afe2['get'](g['IExchangeOperateService']);return new URLSearchParams(location[_0x167b8f(0x113)])['get'](_0x167b8f(0xe1))?_0x23c547[_0x167b8f(0xf3)]():_0x23c547[_0x167b8f(0xe6)](),!0x0;}},p={'id':_0x1a051d(0x10b),'type':i['CommandType']['OPERATION'],'handler':async _0x391d67=>{const _0x13333f=_0x1a051d,_0x5ddece=_0x391d67[_0x13333f(0x10d)](g[_0x13333f(0xe4)]);return new URLSearchParams(location[_0x13333f(0x113)])[_0x13333f(0x10d)](_0x13333f(0xe1))?_0x5ddece[_0x13333f(0x102)]():_0x5ddece[_0x13333f(0x104)](),!0x0;}},v=_0x1a051d(0x11d),h={},S=_0x1a051d(0x105);function x(_0x42d75e){const _0x14bdd4=_0x1a051d;return{'id':S,'type':c[_0x14bdd4(0xeb)][_0x14bdd4(0xe0)],'icon':_0x14bdd4(0x10f),'tooltip':_0x14bdd4(0xff),'hidden$':c['getMenuHiddenObservable'](_0x42d75e,i[_0x14bdd4(0xfa)][_0x14bdd4(0xf5)]),'disabled$':I[_0x14bdd4(0xdf)](_0x42d75e,{'workbookTypes':[_[_0x14bdd4(0xf9)]]})};}function P(){const _0x376b89=_0x1a051d;return{'id':l['id'],'type':c['MenuItemType']['BUTTON'],'title':_0x376b89(0x110),'icon':_0x376b89(0xec)};}function C(){const _0x1d36c0=_0x1a051d;return{'id':p['id'],'type':c[_0x1d36c0(0xeb)][_0x1d36c0(0xdb)],'title':_0x1d36c0(0xe9),'icon':_0x1d36c0(0x118)};}const f={[c[_0x1a051d(0x10c)][_0x1a051d(0x11b)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x1a051d(0x11e)],y=(_0x3a489d,_0x4107c8,_0x1aaf3a,_0x1a9186)=>{const _0xfb6217=_0x1a051d;for(var _0x726a33=_0x1a9186>0x1?void 0x0:_0x1a9186?T(_0x4107c8,_0x1aaf3a):_0x4107c8,_0x34cf26=_0x3a489d[_0xfb6217(0xef)]-0x1,_0x32b4f2;_0x34cf26>=0x0;_0x34cf26--)(_0x32b4f2=_0x3a489d[_0x34cf26])&&(_0x726a33=_0x32b4f2(_0x726a33)||_0x726a33);return _0x726a33;},m=(_0x2145f4,_0x27d5f2)=>(_0x9d7c35,_0x384e54)=>_0x27d5f2(_0x9d7c35,_0x384e54,_0x2145f4);let u=class extends i[_0x1a051d(0xee)]{constructor(_0xace26f,_0x31e041){const _0x90948d=_0x1a051d;super(),this[_0x90948d(0xea)]=_0xace26f,this[_0x90948d(0x103)]=_0x31e041,this[_0x90948d(0xde)](),this[_0x90948d(0xf7)]();}[_0x1a051d(0xde)](){const _0x2eb008=_0x1a051d;[l,p][_0x2eb008(0x100)](_0x2f92c7=>{const _0x1f17fd=_0x2eb008;this[_0x1f17fd(0x117)](this[_0x1f17fd(0xea)]['registerCommand'](_0x2f92c7));});}[_0x1a051d(0xf7)](){const _0x2b34f2=_0x1a051d;this[_0x2b34f2(0x103)]['mergeMenu'](f);}};u=y([m(0x0,i[_0x1a051d(0xf1)]),m(0x1,c[_0x1a051d(0x11a)])],u);var O=Object[_0x1a051d(0xe2)],U=Object[_0x1a051d(0x11e)],X=(_0x37b088,_0x25e4c0,_0x13b0cd)=>_0x25e4c0 in _0x37b088?O(_0x37b088,_0x25e4c0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x13b0cd}):_0x37b088[_0x25e4c0]=_0x13b0cd,N=(_0xdb9cb5,_0x4d1d20,_0xe4b9c1,_0x3534eb)=>{const _0x3153c4=_0x1a051d;for(var _0x30d857=_0x3534eb>0x1?void 0x0:_0x3534eb?U(_0x4d1d20,_0xe4b9c1):_0x4d1d20,_0x1557ee=_0xdb9cb5[_0x3153c4(0xef)]-0x1,_0x295d16;_0x1557ee>=0x0;_0x1557ee--)(_0x295d16=_0xdb9cb5[_0x1557ee])&&(_0x30d857=_0x295d16(_0x30d857)||_0x30d857);return _0x30d857;},d=(_0x1fc510,_0x488c2f)=>(_0x1020bc,_0x3463c8)=>_0x488c2f(_0x1020bc,_0x3463c8,_0x1fc510),E=(_0x8b6bf7,_0x123ace,_0x598871)=>X(_0x8b6bf7,typeof _0x123ace!=_0x1a051d(0x112)?_0x123ace+'':_0x123ace,_0x598871);function _0x339a(_0x3c1b88,_0xff06ad){_0x3c1b88=_0x3c1b88-0xd8;const _0x48b68d=_0x48b6();let _0x339aa9=_0x48b68d[_0x3c1b88];return _0x339aa9;}const L=_0x1a051d(0xf8);exports[_0x1a051d(0x11c)]=class extends i[_0x1a051d(0x106)]{constructor(_0x510c34=h,_0x1a6412,_0xc4686c){const _0x3ebe44=_0x1a051d;super(),this['_config']=_0x510c34,this[_0x3ebe44(0xf6)]=_0x1a6412,this[_0x3ebe44(0x119)]=_0xc4686c;const {menu:_0x50552,..._0x2ace52}=i['merge']({},h,this['_config']);_0x50552&&this['_configService'][_0x3ebe44(0xe7)](_0x3ebe44(0x116),_0x50552,{'merge':!0x0}),this[_0x3ebe44(0x119)]['setConfig'](v,_0x2ace52);}[_0x1a051d(0xe3)](){const _0xfc8046=_0x1a051d;[[u]][_0xfc8046(0x100)](_0xe3aa77=>this[_0xfc8046(0xf6)]['add'](_0xe3aa77));}[_0x1a051d(0xda)](){const _0x472cac=_0x1a051d;this[_0x472cac(0xf6)][_0x472cac(0x10d)](u);}},E(exports[_0x1a051d(0x11c)],_0x1a051d(0xf4),L),E(exports[_0x1a051d(0x11c)],_0x1a051d(0xf0),i[_0x1a051d(0xfa)][_0x1a051d(0xf5)]),exports[_0x1a051d(0x11c)]=N([i[_0x1a051d(0xf2)](g[_0x1a051d(0xfe)]),d(0x1,i[_0x1a051d(0xed)](i[_0x1a051d(0x115)])),d(0x2,i[_0x1a051d(0x109)])],exports[_0x1a051d(0x11c)]),exports[_0x1a051d(0x10a)]=p,exports[_0x1a051d(0xe8)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0xbf616c=_0x5a0d;(function(_0x4abdb5,_0x522da8){const _0x243b0a=_0x5a0d,_0x25aee1=_0x4abdb5();while(!![]){try{const _0x29314f=parseInt(_0x243b0a(0x1ae))/0x1*(parseInt(_0x243b0a(0x1a4))/0x2)+parseInt(_0x243b0a(0x198))/0x3+parseInt(_0x243b0a(0x1b3))/0x4+-parseInt(_0x243b0a(0x1ba))/0x5*(-parseInt(_0x243b0a(0x19d))/0x6)+-parseInt(_0x243b0a(0x1b4))/0x7+-parseInt(_0x243b0a(0x1a9))/0x8*(-parseInt(_0x243b0a(0x1bc))/0x9)+-parseInt(_0x243b0a(0x1b2))/0xa;if(_0x29314f===_0x522da8)break;else _0x25aee1['push'](_0x25aee1['shift']());}catch(_0x32b8dc){_0x25aee1['push'](_0x25aee1['shift']());}}}(_0x275a,0xcf950));import{IExchangeOperateService as _0x326668,UniverExchangeClientPlugin as _0x1d066c}from'@univerjs-pro/exchange-client';import{CommandType as _0x2689a3,UniverInstanceType as _0x13b7e2,Disposable as _0xa1640f,ICommandService as _0x14e85b,DependentOn as _0x18a2f5,Inject as _0x2dbe5d,Injector as _0x247dbc,Plugin as _0x111c89,merge as _0x563f71,IConfigService as _0x16341d}from'@univerjs/core';import{MenuItemType as _0x379259,getMenuHiddenObservable as _0x3ab569,RibbonStartGroup as _0x4ab08a,IMenuManagerService as _0x58f3ca}from'@univerjs/ui';import{WorkbookExportPermission as _0x447e76}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x51c338}from'@univerjs/sheets-ui';const p={'id':_0xbf616c(0x19c),'type':_0x2689a3[_0xbf616c(0x1b1)],'handler':async _0x46f46f=>{const _0x9fc45d=_0xbf616c,_0x2c1abd=_0x46f46f[_0x9fc45d(0x1b5)](_0x326668);return new URLSearchParams(location[_0x9fc45d(0x1a6)])['get'](_0x9fc45d(0x1b9))?_0x2c1abd[_0x9fc45d(0x1a3)]():_0x2c1abd[_0x9fc45d(0x1a0)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x2689a3[_0xbf616c(0x1b1)],'handler':async _0x10011e=>{const _0x21ea07=_0xbf616c,_0x4bea4e=_0x10011e[_0x21ea07(0x1b5)](_0x326668);return new URLSearchParams(location[_0x21ea07(0x1a6)])[_0x21ea07(0x1b5)](_0x21ea07(0x1b9))?_0x4bea4e[_0x21ea07(0x1b0)]():_0x4bea4e[_0x21ea07(0x19b)](),!0x0;}},H=_0xbf616c(0x1a1),l={},S=_0xbf616c(0x1a5);function R(_0x55930c){const _0x1c7879=_0xbf616c;return{'id':S,'type':_0x379259['SUBITEMS'],'icon':_0x1c7879(0x197),'tooltip':_0x1c7879(0x196),'hidden$':_0x3ab569(_0x55930c,_0x13b7e2[_0x1c7879(0x1b6)]),'disabled$':_0x51c338(_0x55930c,{'workbookTypes':[_0x447e76]})};}function w(){const _0x37f43d=_0xbf616c;return{'id':p['id'],'type':_0x379259[_0x37f43d(0x1a2)],'title':_0x37f43d(0x19e),'icon':_0x37f43d(0x190)};}function D(){const _0x470106=_0xbf616c;return{'id':u['id'],'type':_0x379259[_0x470106(0x1a2)],'title':'exchange.download','icon':_0x470106(0x1ad)};}const F={[_0x4ab08a[_0xbf616c(0x1af)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x573957,_0x3dec8d,_0x41d508,_0x232028)=>{for(var _0x121eb7=_0x232028>0x1?void 0x0:_0x232028?G(_0x3dec8d,_0x41d508):_0x3dec8d,_0x5d9f84=_0x573957['length']-0x1,_0x3dea3f;_0x5d9f84>=0x0;_0x5d9f84--)(_0x3dea3f=_0x573957[_0x5d9f84])&&(_0x121eb7=_0x3dea3f(_0x121eb7)||_0x121eb7);return _0x121eb7;},d=(_0x333466,_0x116213)=>(_0x3e5b5b,_0x3301da)=>_0x116213(_0x3e5b5b,_0x3301da,_0x333466);let c=class extends _0xa1640f{constructor(_0x3f1140,_0x1c2739){const _0x322eb3=_0xbf616c;super(),this[_0x322eb3(0x191)]=_0x3f1140,this[_0x322eb3(0x1ab)]=_0x1c2739,this['_initCommands'](),this[_0x322eb3(0x1b8)]();}['_initCommands'](){[p,u]['forEach'](_0x2111ad=>{const _0x23f13a=_0x5a0d;this[_0x23f13a(0x199)](this[_0x23f13a(0x191)]['registerCommand'](_0x2111ad));});}['_initMenus'](){const _0x397b38=_0xbf616c;this['_menuManagerService'][_0x397b38(0x1ac)](F);}};c=A([d(0x0,_0x14e85b),d(0x1,_0x58f3ca)],c);function _0x5a0d(_0x4a5487,_0x49795d){_0x4a5487=_0x4a5487-0x190;const _0x275a5a=_0x275a();let _0x5a0d30=_0x275a5a[_0x4a5487];return _0x5a0d30;}function _0x275a(){const _0x168494=['_commandService','onReady','_injector','length','_configService','exchange.file','DirectExportIcon','4359696bDVsQU','disposeWithMe','forEach','exportXLSXBySnapshot','exchange-client.operation.import-xlsx','1542EDcMFN','exchange.upload','type','importXLSXToSnapshot','sheets-exchange-client.config','BUTTON','importXLSXToUnitId','1079674XIyuqd','sheets-exchange-client.operation.exchange','search','getOwnPropertyDescriptor','setConfig','2125512KezbTw','onStarting','_menuManagerService','mergeMenu','ExportIcon','1UIewHh','OTHERS','exportXLSXByUnitId','OPERATION','30125080FkhwMA','4524864nunrOr','4915155mtjaHL','get','UNIVER_SHEET','add','_initMenus','unit','17690RRKLkH','pluginName','18uTHDrS','_config','FolderIcon'];_0x275a=function(){return _0x168494;};return _0x275a();}var j=Object['defineProperty'],B=Object[_0xbf616c(0x1a7)],$=(_0x41d293,_0x5768dc,_0xc4813)=>_0x5768dc in _0x41d293?j(_0x41d293,_0x5768dc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc4813}):_0x41d293[_0x5768dc]=_0xc4813,V=(_0x26e2fd,_0x473a47,_0x9c3558,_0x53aa42)=>{const _0x34471c=_0xbf616c;for(var _0x59b706=_0x53aa42>0x1?void 0x0:_0x53aa42?B(_0x473a47,_0x9c3558):_0x473a47,_0x1c9e41=_0x26e2fd[_0x34471c(0x194)]-0x1,_0x206503;_0x1c9e41>=0x0;_0x1c9e41--)(_0x206503=_0x26e2fd[_0x1c9e41])&&(_0x59b706=_0x206503(_0x59b706)||_0x59b706);return _0x59b706;},_=(_0x118908,_0x2adacf)=>(_0x2364cb,_0xbb783)=>_0x2adacf(_0x2364cb,_0xbb783,_0x118908),I=(_0x547cc8,_0x186dc7,_0x46a6c3)=>$(_0x547cc8,typeof _0x186dc7!='symbol'?_0x186dc7+'':_0x186dc7,_0x46a6c3);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x111c89{constructor(_0x4dbc39=l,_0x2f9ed0,_0x3e5939){const _0x185e1d=_0xbf616c;super(),this[_0x185e1d(0x1bd)]=_0x4dbc39,this[_0x185e1d(0x193)]=_0x2f9ed0,this[_0x185e1d(0x195)]=_0x3e5939;const {menu:_0x931e45,..._0xddfe7e}=_0x563f71({},l,this[_0x185e1d(0x1bd)]);_0x931e45&&this[_0x185e1d(0x195)][_0x185e1d(0x1a8)]('menu',_0x931e45,{'merge':!0x0}),this[_0x185e1d(0x195)][_0x185e1d(0x1a8)](H,_0xddfe7e);}[_0xbf616c(0x1aa)](){const _0x2d362f=_0xbf616c;[[c]][_0x2d362f(0x19a)](_0x321ca6=>this['_injector'][_0x2d362f(0x1b7)](_0x321ca6));}[_0xbf616c(0x192)](){const _0x1008c9=_0xbf616c;this[_0x1008c9(0x193)][_0x1008c9(0x1b5)](c);}};I(s,_0xbf616c(0x1bb),W),I(s,_0xbf616c(0x19f),_0x13b7e2['UNIVER_SHEET']),s=V([_0x18a2f5(_0x1d066c),_(0x1,_0x2dbe5d(_0x247dbc)),_(0x2,_0x16341d)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x1a5940=_0x59fa;(function(_0x5449bb,_0x598710){const _0x9454a9=_0x59fa,_0x1a52fc=_0x5449bb();while(!![]){try{const _0x81796c=parseInt(_0x9454a9(0x114))/0x1*(parseInt(_0x9454a9(0x10b))/0x2)+-parseInt(_0x9454a9(0x121))/0x3+parseInt(_0x9454a9(0x119))/0x4+parseInt(_0x9454a9(0x104))/0x5*(-parseInt(_0x9454a9(0x10f))/0x6)+parseInt(_0x9454a9(0x11d))/0x7*(parseInt(_0x9454a9(0xff))/0x8)+parseInt(_0x9454a9(0xfc))/0x9+-parseInt(_0x9454a9(0x113))/0xa;if(_0x81796c===_0x598710)break;else _0x1a52fc['push'](_0x1a52fc['shift']());}catch(_0x1e8247){_0x1a52fc['push'](_0x1a52fc['shift']());}}}(_0x52ef,0xce6c5));import{IExchangeOperateService as _0x2ed0a2,UniverExchangeClientPlugin as _0x33479a}from'@univerjs-pro/exchange-client';import{CommandType as _0x36b7d8,UniverInstanceType as _0x5f2b11,Disposable as _0x532f04,ICommandService as _0x154aaa,DependentOn as _0x2bd8a7,Inject as _0x369ab3,Injector as _0xd786e0,Plugin as _0x736f1b,merge as _0x2b8816,IConfigService as _0x37313d}from'@univerjs/core';function _0x52ef(){const _0x45b2f9=['61mGMKsL','ExportIcon','setConfig','_initMenus','_commandService','5236312ZPIKIL','_initCommands','exportXLSXByUnitId','SHEET_EXCHANGE_CLIENT_PLUGIN','107758UUeSkf','exchange.file','length','type','2102520XBypRC','FolderIcon','exchange-client.operation.export-xlsx','10422351bVrpAm','OPERATION','forEach','776HkKHaJ','_injector','onReady','search','getOwnPropertyDescriptor','5iGKLnb','exchange.upload','exportXLSXBySnapshot','get','_configService','OTHERS','sheets-exchange-client.config','42472EliZDZ','sheets-exchange-client.operation.exchange','exchange-client.operation.import-xlsx','defineProperty','2756682snngyI','menu','_config','DirectExportIcon','32499350VoBTUJ'];_0x52ef=function(){return _0x45b2f9;};return _0x52ef();}import{MenuItemType as _0x42aa3a,getMenuHiddenObservable as _0xe441aa,RibbonStartGroup as _0x471a89,IMenuManagerService as _0x10b91f}from'@univerjs/ui';import{WorkbookExportPermission as _0x102fae}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0xba8b64}from'@univerjs/sheets-ui';const p={'id':_0x1a5940(0x10d),'type':_0x36b7d8[_0x1a5940(0xfd)],'handler':async _0x7ea5b6=>{const _0xe1403e=_0x1a5940,_0x3a99b3=_0x7ea5b6[_0xe1403e(0x107)](_0x2ed0a2);return new URLSearchParams(location['search'])['get']('unit')?_0x3a99b3['importXLSXToUnitId']():_0x3a99b3['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x1a5940(0xfb),'type':_0x36b7d8[_0x1a5940(0xfd)],'handler':async _0x2812b3=>{const _0x35a7de=_0x1a5940,_0x568377=_0x2812b3[_0x35a7de(0x107)](_0x2ed0a2);return new URLSearchParams(location[_0x35a7de(0x102)])[_0x35a7de(0x107)]('unit')?_0x568377[_0x35a7de(0x11b)]():_0x568377[_0x35a7de(0x106)](),!0x0;}},H=_0x1a5940(0x10a),l={},S=_0x1a5940(0x10c);function R(_0x360799){const _0xef06c9=_0x1a5940;return{'id':S,'type':_0x42aa3a['SUBITEMS'],'icon':_0xef06c9(0x112),'tooltip':_0xef06c9(0x11e),'hidden$':_0xe441aa(_0x360799,_0x5f2b11['UNIVER_SHEET']),'disabled$':_0xba8b64(_0x360799,{'workbookTypes':[_0x102fae]})};}function w(){const _0x27a7df=_0x1a5940;return{'id':p['id'],'type':_0x42aa3a['BUTTON'],'title':_0x27a7df(0x105),'icon':_0x27a7df(0x122)};}function D(){const _0x4404ed=_0x1a5940;return{'id':u['id'],'type':_0x42aa3a['BUTTON'],'title':'exchange.download','icon':_0x4404ed(0x115)};}const F={[_0x471a89[_0x1a5940(0x109)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x2dd3c3,_0x4146fa,_0x9644eb,_0x41f1e1)=>{for(var _0x6846c9=_0x41f1e1>0x1?void 0x0:_0x41f1e1?G(_0x4146fa,_0x9644eb):_0x4146fa,_0x5e2855=_0x2dd3c3['length']-0x1,_0x29a393;_0x5e2855>=0x0;_0x5e2855--)(_0x29a393=_0x2dd3c3[_0x5e2855])&&(_0x6846c9=_0x29a393(_0x6846c9)||_0x6846c9);return _0x6846c9;},d=(_0x54fd16,_0x3a3a51)=>(_0x50cd93,_0x505f78)=>_0x3a3a51(_0x50cd93,_0x505f78,_0x54fd16);let c=class extends _0x532f04{constructor(_0x26b853,_0x2a7c08){const _0x45506c=_0x1a5940;super(),this[_0x45506c(0x118)]=_0x26b853,this['_menuManagerService']=_0x2a7c08,this[_0x45506c(0x11a)](),this[_0x45506c(0x117)]();}['_initCommands'](){const _0x48a116=_0x1a5940;[p,u][_0x48a116(0xfe)](_0x50be85=>{const _0x561b2f=_0x48a116;this['disposeWithMe'](this[_0x561b2f(0x118)]['registerCommand'](_0x50be85));});}['_initMenus'](){this['_menuManagerService']['mergeMenu'](F);}};function _0x59fa(_0x2f3648,_0x418fba){_0x2f3648=_0x2f3648-0xfb;const _0x52ef02=_0x52ef();let _0x59fae6=_0x52ef02[_0x2f3648];return _0x59fae6;}c=A([d(0x0,_0x154aaa),d(0x1,_0x10b91f)],c);var j=Object[_0x1a5940(0x10e)],B=Object[_0x1a5940(0x103)],$=(_0x4db923,_0x10291e,_0x14222c)=>_0x10291e in _0x4db923?j(_0x4db923,_0x10291e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14222c}):_0x4db923[_0x10291e]=_0x14222c,V=(_0x525115,_0x171f7b,_0x4d240c,_0x491603)=>{const _0x40abf1=_0x1a5940;for(var _0x135fee=_0x491603>0x1?void 0x0:_0x491603?B(_0x171f7b,_0x4d240c):_0x171f7b,_0x2f3ca0=_0x525115[_0x40abf1(0x11f)]-0x1,_0x332ef0;_0x2f3ca0>=0x0;_0x2f3ca0--)(_0x332ef0=_0x525115[_0x2f3ca0])&&(_0x135fee=_0x332ef0(_0x135fee)||_0x135fee);return _0x135fee;},_=(_0x1105f7,_0x260e01)=>(_0x5e743d,_0x39223f)=>_0x260e01(_0x5e743d,_0x39223f,_0x1105f7),I=(_0x5359e8,_0x5c8573,_0x4129f9)=>$(_0x5359e8,typeof _0x5c8573!='symbol'?_0x5c8573+'':_0x5c8573,_0x4129f9);const W=_0x1a5940(0x11c);let s=class extends _0x736f1b{constructor(_0x26b476=l,_0xf6dd4,_0x325f08){const _0x253dc5=_0x1a5940;super(),this[_0x253dc5(0x111)]=_0x26b476,this[_0x253dc5(0x100)]=_0xf6dd4,this[_0x253dc5(0x108)]=_0x325f08;const {menu:_0x33fd69,..._0x493af9}=_0x2b8816({},l,this[_0x253dc5(0x111)]);_0x33fd69&&this[_0x253dc5(0x108)]['setConfig'](_0x253dc5(0x110),_0x33fd69,{'merge':!0x0}),this['_configService'][_0x253dc5(0x116)](H,_0x493af9);}['onStarting'](){const _0x3234b4=_0x1a5940;[[c]]['forEach'](_0x33c4f9=>this[_0x3234b4(0x100)]['add'](_0x33c4f9));}[_0x1a5940(0x101)](){const _0x4dfce5=_0x1a5940;this['_injector'][_0x4dfce5(0x107)](c);}};I(s,'pluginName',W),I(s,_0x1a5940(0x120),_0x5f2b11['UNIVER_SHEET']),s=V([_0x2bd8a7(_0x33479a),_(0x1,_0x369ab3(_0xd786e0)),_(0x2,_0x37313d)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0xbf616c=_0x5a0d;(function(_0x4abdb5,_0x522da8){const _0x243b0a=_0x5a0d,_0x25aee1=_0x4abdb5();while(!![]){try{const _0x29314f=parseInt(_0x243b0a(0x1ae))/0x1*(parseInt(_0x243b0a(0x1a4))/0x2)+parseInt(_0x243b0a(0x198))/0x3+parseInt(_0x243b0a(0x1b3))/0x4+-parseInt(_0x243b0a(0x1ba))/0x5*(-parseInt(_0x243b0a(0x19d))/0x6)+-parseInt(_0x243b0a(0x1b4))/0x7+-parseInt(_0x243b0a(0x1a9))/0x8*(-parseInt(_0x243b0a(0x1bc))/0x9)+-parseInt(_0x243b0a(0x1b2))/0xa;if(_0x29314f===_0x522da8)break;else _0x25aee1['push'](_0x25aee1['shift']());}catch(_0x32b8dc){_0x25aee1['push'](_0x25aee1['shift']());}}}(_0x275a,0xcf950));import{IExchangeOperateService as _0x326668,UniverExchangeClientPlugin as _0x1d066c}from'@univerjs-pro/exchange-client';import{CommandType as _0x2689a3,UniverInstanceType as _0x13b7e2,Disposable as _0xa1640f,ICommandService as _0x14e85b,DependentOn as _0x18a2f5,Inject as _0x2dbe5d,Injector as _0x247dbc,Plugin as _0x111c89,merge as _0x563f71,IConfigService as _0x16341d}from'@univerjs/core';import{MenuItemType as _0x379259,getMenuHiddenObservable as _0x3ab569,RibbonStartGroup as _0x4ab08a,IMenuManagerService as _0x58f3ca}from'@univerjs/ui';import{WorkbookExportPermission as _0x447e76}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x51c338}from'@univerjs/sheets-ui';const p={'id':_0xbf616c(0x19c),'type':_0x2689a3[_0xbf616c(0x1b1)],'handler':async _0x46f46f=>{const _0x9fc45d=_0xbf616c,_0x2c1abd=_0x46f46f[_0x9fc45d(0x1b5)](_0x326668);return new URLSearchParams(location[_0x9fc45d(0x1a6)])['get'](_0x9fc45d(0x1b9))?_0x2c1abd[_0x9fc45d(0x1a3)]():_0x2c1abd[_0x9fc45d(0x1a0)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x2689a3[_0xbf616c(0x1b1)],'handler':async _0x10011e=>{const _0x21ea07=_0xbf616c,_0x4bea4e=_0x10011e[_0x21ea07(0x1b5)](_0x326668);return new URLSearchParams(location[_0x21ea07(0x1a6)])[_0x21ea07(0x1b5)](_0x21ea07(0x1b9))?_0x4bea4e[_0x21ea07(0x1b0)]():_0x4bea4e[_0x21ea07(0x19b)](),!0x0;}},H=_0xbf616c(0x1a1),l={},S=_0xbf616c(0x1a5);function R(_0x55930c){const _0x1c7879=_0xbf616c;return{'id':S,'type':_0x379259['SUBITEMS'],'icon':_0x1c7879(0x197),'tooltip':_0x1c7879(0x196),'hidden$':_0x3ab569(_0x55930c,_0x13b7e2[_0x1c7879(0x1b6)]),'disabled$':_0x51c338(_0x55930c,{'workbookTypes':[_0x447e76]})};}function w(){const _0x37f43d=_0xbf616c;return{'id':p['id'],'type':_0x379259[_0x37f43d(0x1a2)],'title':_0x37f43d(0x19e),'icon':_0x37f43d(0x190)};}function D(){const _0x470106=_0xbf616c;return{'id':u['id'],'type':_0x379259[_0x470106(0x1a2)],'title':'exchange.download','icon':_0x470106(0x1ad)};}const F={[_0x4ab08a[_0xbf616c(0x1af)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x573957,_0x3dec8d,_0x41d508,_0x232028)=>{for(var _0x121eb7=_0x232028>0x1?void 0x0:_0x232028?G(_0x3dec8d,_0x41d508):_0x3dec8d,_0x5d9f84=_0x573957['length']-0x1,_0x3dea3f;_0x5d9f84>=0x0;_0x5d9f84--)(_0x3dea3f=_0x573957[_0x5d9f84])&&(_0x121eb7=_0x3dea3f(_0x121eb7)||_0x121eb7);return _0x121eb7;},d=(_0x333466,_0x116213)=>(_0x3e5b5b,_0x3301da)=>_0x116213(_0x3e5b5b,_0x3301da,_0x333466);let c=class extends _0xa1640f{constructor(_0x3f1140,_0x1c2739){const _0x322eb3=_0xbf616c;super(),this[_0x322eb3(0x191)]=_0x3f1140,this[_0x322eb3(0x1ab)]=_0x1c2739,this['_initCommands'](),this[_0x322eb3(0x1b8)]();}['_initCommands'](){[p,u]['forEach'](_0x2111ad=>{const _0x23f13a=_0x5a0d;this[_0x23f13a(0x199)](this[_0x23f13a(0x191)]['registerCommand'](_0x2111ad));});}['_initMenus'](){const _0x397b38=_0xbf616c;this['_menuManagerService'][_0x397b38(0x1ac)](F);}};c=A([d(0x0,_0x14e85b),d(0x1,_0x58f3ca)],c);function _0x5a0d(_0x4a5487,_0x49795d){_0x4a5487=_0x4a5487-0x190;const _0x275a5a=_0x275a();let _0x5a0d30=_0x275a5a[_0x4a5487];return _0x5a0d30;}function _0x275a(){const _0x168494=['_commandService','onReady','_injector','length','_configService','exchange.file','DirectExportIcon','4359696bDVsQU','disposeWithMe','forEach','exportXLSXBySnapshot','exchange-client.operation.import-xlsx','1542EDcMFN','exchange.upload','type','importXLSXToSnapshot','sheets-exchange-client.config','BUTTON','importXLSXToUnitId','1079674XIyuqd','sheets-exchange-client.operation.exchange','search','getOwnPropertyDescriptor','setConfig','2125512KezbTw','onStarting','_menuManagerService','mergeMenu','ExportIcon','1UIewHh','OTHERS','exportXLSXByUnitId','OPERATION','30125080FkhwMA','4524864nunrOr','4915155mtjaHL','get','UNIVER_SHEET','add','_initMenus','unit','17690RRKLkH','pluginName','18uTHDrS','_config','FolderIcon'];_0x275a=function(){return _0x168494;};return _0x275a();}var j=Object['defineProperty'],B=Object[_0xbf616c(0x1a7)],$=(_0x41d293,_0x5768dc,_0xc4813)=>_0x5768dc in _0x41d293?j(_0x41d293,_0x5768dc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc4813}):_0x41d293[_0x5768dc]=_0xc4813,V=(_0x26e2fd,_0x473a47,_0x9c3558,_0x53aa42)=>{const _0x34471c=_0xbf616c;for(var _0x59b706=_0x53aa42>0x1?void 0x0:_0x53aa42?B(_0x473a47,_0x9c3558):_0x473a47,_0x1c9e41=_0x26e2fd[_0x34471c(0x194)]-0x1,_0x206503;_0x1c9e41>=0x0;_0x1c9e41--)(_0x206503=_0x26e2fd[_0x1c9e41])&&(_0x59b706=_0x206503(_0x59b706)||_0x59b706);return _0x59b706;},_=(_0x118908,_0x2adacf)=>(_0x2364cb,_0xbb783)=>_0x2adacf(_0x2364cb,_0xbb783,_0x118908),I=(_0x547cc8,_0x186dc7,_0x46a6c3)=>$(_0x547cc8,typeof _0x186dc7!='symbol'?_0x186dc7+'':_0x186dc7,_0x46a6c3);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x111c89{constructor(_0x4dbc39=l,_0x2f9ed0,_0x3e5939){const _0x185e1d=_0xbf616c;super(),this[_0x185e1d(0x1bd)]=_0x4dbc39,this[_0x185e1d(0x193)]=_0x2f9ed0,this[_0x185e1d(0x195)]=_0x3e5939;const {menu:_0x931e45,..._0xddfe7e}=_0x563f71({},l,this[_0x185e1d(0x1bd)]);_0x931e45&&this[_0x185e1d(0x195)][_0x185e1d(0x1a8)]('menu',_0x931e45,{'merge':!0x0}),this[_0x185e1d(0x195)][_0x185e1d(0x1a8)](H,_0xddfe7e);}[_0xbf616c(0x1aa)](){const _0x2d362f=_0xbf616c;[[c]][_0x2d362f(0x19a)](_0x321ca6=>this['_injector'][_0x2d362f(0x1b7)](_0x321ca6));}[_0xbf616c(0x192)](){const _0x1008c9=_0xbf616c;this[_0x1008c9(0x193)][_0x1008c9(0x1b5)](c);}};I(s,_0xbf616c(0x1bb),W),I(s,_0xbf616c(0x19f),_0x13b7e2['UNIVER_SHEET']),s=V([_0x18a2f5(_0x1d066c),_(0x1,_0x2dbe5d(_0x247dbc)),_(0x2,_0x16341d)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x1a5940=_0x59fa;(function(_0x5449bb,_0x598710){const _0x9454a9=_0x59fa,_0x1a52fc=_0x5449bb();while(!![]){try{const _0x81796c=parseInt(_0x9454a9(0x114))/0x1*(parseInt(_0x9454a9(0x10b))/0x2)+-parseInt(_0x9454a9(0x121))/0x3+parseInt(_0x9454a9(0x119))/0x4+parseInt(_0x9454a9(0x104))/0x5*(-parseInt(_0x9454a9(0x10f))/0x6)+parseInt(_0x9454a9(0x11d))/0x7*(parseInt(_0x9454a9(0xff))/0x8)+parseInt(_0x9454a9(0xfc))/0x9+-parseInt(_0x9454a9(0x113))/0xa;if(_0x81796c===_0x598710)break;else _0x1a52fc['push'](_0x1a52fc['shift']());}catch(_0x1e8247){_0x1a52fc['push'](_0x1a52fc['shift']());}}}(_0x52ef,0xce6c5));import{IExchangeOperateService as _0x2ed0a2,UniverExchangeClientPlugin as _0x33479a}from'@univerjs-pro/exchange-client';import{CommandType as _0x36b7d8,UniverInstanceType as _0x5f2b11,Disposable as _0x532f04,ICommandService as _0x154aaa,DependentOn as _0x2bd8a7,Inject as _0x369ab3,Injector as _0xd786e0,Plugin as _0x736f1b,merge as _0x2b8816,IConfigService as _0x37313d}from'@univerjs/core';function _0x52ef(){const _0x45b2f9=['61mGMKsL','ExportIcon','setConfig','_initMenus','_commandService','5236312ZPIKIL','_initCommands','exportXLSXByUnitId','SHEET_EXCHANGE_CLIENT_PLUGIN','107758UUeSkf','exchange.file','length','type','2102520XBypRC','FolderIcon','exchange-client.operation.export-xlsx','10422351bVrpAm','OPERATION','forEach','776HkKHaJ','_injector','onReady','search','getOwnPropertyDescriptor','5iGKLnb','exchange.upload','exportXLSXBySnapshot','get','_configService','OTHERS','sheets-exchange-client.config','42472EliZDZ','sheets-exchange-client.operation.exchange','exchange-client.operation.import-xlsx','defineProperty','2756682snngyI','menu','_config','DirectExportIcon','32499350VoBTUJ'];_0x52ef=function(){return _0x45b2f9;};return _0x52ef();}import{MenuItemType as _0x42aa3a,getMenuHiddenObservable as _0xe441aa,RibbonStartGroup as _0x471a89,IMenuManagerService as _0x10b91f}from'@univerjs/ui';import{WorkbookExportPermission as _0x102fae}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0xba8b64}from'@univerjs/sheets-ui';const p={'id':_0x1a5940(0x10d),'type':_0x36b7d8[_0x1a5940(0xfd)],'handler':async _0x7ea5b6=>{const _0xe1403e=_0x1a5940,_0x3a99b3=_0x7ea5b6[_0xe1403e(0x107)](_0x2ed0a2);return new URLSearchParams(location['search'])['get']('unit')?_0x3a99b3['importXLSXToUnitId']():_0x3a99b3['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x1a5940(0xfb),'type':_0x36b7d8[_0x1a5940(0xfd)],'handler':async _0x2812b3=>{const _0x35a7de=_0x1a5940,_0x568377=_0x2812b3[_0x35a7de(0x107)](_0x2ed0a2);return new URLSearchParams(location[_0x35a7de(0x102)])[_0x35a7de(0x107)]('unit')?_0x568377[_0x35a7de(0x11b)]():_0x568377[_0x35a7de(0x106)](),!0x0;}},H=_0x1a5940(0x10a),l={},S=_0x1a5940(0x10c);function R(_0x360799){const _0xef06c9=_0x1a5940;return{'id':S,'type':_0x42aa3a['SUBITEMS'],'icon':_0xef06c9(0x112),'tooltip':_0xef06c9(0x11e),'hidden$':_0xe441aa(_0x360799,_0x5f2b11['UNIVER_SHEET']),'disabled$':_0xba8b64(_0x360799,{'workbookTypes':[_0x102fae]})};}function w(){const _0x27a7df=_0x1a5940;return{'id':p['id'],'type':_0x42aa3a['BUTTON'],'title':_0x27a7df(0x105),'icon':_0x27a7df(0x122)};}function D(){const _0x4404ed=_0x1a5940;return{'id':u['id'],'type':_0x42aa3a['BUTTON'],'title':'exchange.download','icon':_0x4404ed(0x115)};}const F={[_0x471a89[_0x1a5940(0x109)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x2dd3c3,_0x4146fa,_0x9644eb,_0x41f1e1)=>{for(var _0x6846c9=_0x41f1e1>0x1?void 0x0:_0x41f1e1?G(_0x4146fa,_0x9644eb):_0x4146fa,_0x5e2855=_0x2dd3c3['length']-0x1,_0x29a393;_0x5e2855>=0x0;_0x5e2855--)(_0x29a393=_0x2dd3c3[_0x5e2855])&&(_0x6846c9=_0x29a393(_0x6846c9)||_0x6846c9);return _0x6846c9;},d=(_0x54fd16,_0x3a3a51)=>(_0x50cd93,_0x505f78)=>_0x3a3a51(_0x50cd93,_0x505f78,_0x54fd16);let c=class extends _0x532f04{constructor(_0x26b853,_0x2a7c08){const _0x45506c=_0x1a5940;super(),this[_0x45506c(0x118)]=_0x26b853,this['_menuManagerService']=_0x2a7c08,this[_0x45506c(0x11a)](),this[_0x45506c(0x117)]();}['_initCommands'](){const _0x48a116=_0x1a5940;[p,u][_0x48a116(0xfe)](_0x50be85=>{const _0x561b2f=_0x48a116;this['disposeWithMe'](this[_0x561b2f(0x118)]['registerCommand'](_0x50be85));});}['_initMenus'](){this['_menuManagerService']['mergeMenu'](F);}};function _0x59fa(_0x2f3648,_0x418fba){_0x2f3648=_0x2f3648-0xfb;const _0x52ef02=_0x52ef();let _0x59fae6=_0x52ef02[_0x2f3648];return _0x59fae6;}c=A([d(0x0,_0x154aaa),d(0x1,_0x10b91f)],c);var j=Object[_0x1a5940(0x10e)],B=Object[_0x1a5940(0x103)],$=(_0x4db923,_0x10291e,_0x14222c)=>_0x10291e in _0x4db923?j(_0x4db923,_0x10291e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14222c}):_0x4db923[_0x10291e]=_0x14222c,V=(_0x525115,_0x171f7b,_0x4d240c,_0x491603)=>{const _0x40abf1=_0x1a5940;for(var _0x135fee=_0x491603>0x1?void 0x0:_0x491603?B(_0x171f7b,_0x4d240c):_0x171f7b,_0x2f3ca0=_0x525115[_0x40abf1(0x11f)]-0x1,_0x332ef0;_0x2f3ca0>=0x0;_0x2f3ca0--)(_0x332ef0=_0x525115[_0x2f3ca0])&&(_0x135fee=_0x332ef0(_0x135fee)||_0x135fee);return _0x135fee;},_=(_0x1105f7,_0x260e01)=>(_0x5e743d,_0x39223f)=>_0x260e01(_0x5e743d,_0x39223f,_0x1105f7),I=(_0x5359e8,_0x5c8573,_0x4129f9)=>$(_0x5359e8,typeof _0x5c8573!='symbol'?_0x5c8573+'':_0x5c8573,_0x4129f9);const W=_0x1a5940(0x11c);let s=class extends _0x736f1b{constructor(_0x26b476=l,_0xf6dd4,_0x325f08){const _0x253dc5=_0x1a5940;super(),this[_0x253dc5(0x111)]=_0x26b476,this[_0x253dc5(0x100)]=_0xf6dd4,this[_0x253dc5(0x108)]=_0x325f08;const {menu:_0x33fd69,..._0x493af9}=_0x2b8816({},l,this[_0x253dc5(0x111)]);_0x33fd69&&this[_0x253dc5(0x108)]['setConfig'](_0x253dc5(0x110),_0x33fd69,{'merge':!0x0}),this['_configService'][_0x253dc5(0x116)](H,_0x493af9);}['onStarting'](){const _0x3234b4=_0x1a5940;[[c]]['forEach'](_0x33c4f9=>this[_0x3234b4(0x100)]['add'](_0x33c4f9));}[_0x1a5940(0x101)](){const _0x4dfce5=_0x1a5940;this['_injector'][_0x4dfce5(0x107)](c);}};I(s,'pluginName',W),I(s,_0x1a5940(0x120),_0x5f2b11['UNIVER_SHEET']),s=V([_0x2bd8a7(_0x33479a),_(0x1,_0x369ab3(_0xd786e0)),_(0x2,_0x37313d)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x4976(_0x278932,_0x67dcfc){_0x278932=_0x278932-0xd7;const _0x288c6d=_0x288c();let _0x4976c4=_0x288c6d[_0x278932];return _0x4976c4;}(function(_0x274af7,_0x234068){const _0x2bd1bd=_0x4976,_0x5a3f6d=_0x274af7();while(!![]){try{const _0x2f75f8=parseInt(_0x2bd1bd(0xe5))/0x1+-parseInt(_0x2bd1bd(0xfc))/0x2+-parseInt(_0x2bd1bd(0x118))/0x3*(-parseInt(_0x2bd1bd(0xf3))/0x4)+parseInt(_0x2bd1bd(0xfa))/0x5*(-parseInt(_0x2bd1bd(0x117))/0x6)+-parseInt(_0x2bd1bd(0x11f))/0x7+-parseInt(_0x2bd1bd(0x113))/0x8*(parseInt(_0x2bd1bd(0x123))/0x9)+parseInt(_0x2bd1bd(0x110))/0xa;if(_0x2f75f8===_0x234068)break;else _0x5a3f6d['push'](_0x5a3f6d['shift']());}catch(_0x2046ca){_0x5a3f6d['push'](_0x5a3f6d['shift']());}}}(_0x288c,0x47fce),function(_0x48a7c7,_0xd9f91e){const _0x3d20dc=_0x4976;typeof exports==_0x3d20dc(0xf4)&&typeof module<'u'?_0xd9f91e(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x3d20dc(0x119)&&define[_0x3d20dc(0x101)]?define([_0x3d20dc(0xf1),_0x3d20dc(0xe1),_0x3d20dc(0x12c),_0x3d20dc(0xf9),'@univerjs/sheets',_0x3d20dc(0xe9)],_0xd9f91e):(_0x48a7c7=typeof globalThis<'u'?globalThis:_0x48a7c7||self,_0xd9f91e(_0x48a7c7[_0x3d20dc(0xdc)]={},_0x48a7c7[_0x3d20dc(0x125)],_0x48a7c7[_0x3d20dc(0xdb)],_0x48a7c7[_0x3d20dc(0xf2)],_0x48a7c7[_0x3d20dc(0xec)],_0x48a7c7[_0x3d20dc(0xf7)]));}(this,function(_0x21af04,_0xf14c0d,_0x2b7a3f,_0x562869,_0x2148b4,_0x1864a5){'use strict';const _0x2df911=_0x4976;const _0x1d42e7={'id':_0x2df911(0x124),'type':_0x2b7a3f[_0x2df911(0x126)][_0x2df911(0xf5)],'handler':async _0x3cf75f=>{const _0x1bf8bf=_0x2df911,_0x3069ba=_0x3cf75f[_0x1bf8bf(0x12b)](_0xf14c0d[_0x1bf8bf(0x11b)]);return new URLSearchParams(location[_0x1bf8bf(0x120)])[_0x1bf8bf(0x12b)](_0x1bf8bf(0x109))?_0x3069ba[_0x1bf8bf(0x102)]():_0x3069ba[_0x1bf8bf(0x10a)](),!0x0;}},_0x87d039={'id':_0x2df911(0x121),'type':_0x2b7a3f[_0x2df911(0x126)][_0x2df911(0xf5)],'handler':async _0x23b2c2=>{const _0x320b40=_0x2df911,_0x391c58=_0x23b2c2[_0x320b40(0x12b)](_0xf14c0d[_0x320b40(0x11b)]);return new URLSearchParams(location[_0x320b40(0x120)])['get'](_0x320b40(0x109))?_0x391c58[_0x320b40(0x11e)]():_0x391c58[_0x320b40(0xe2)](),!0x0;}},_0x171e93=_0x2df911(0x107),_0x590b06={},_0x5e1140=_0x2df911(0x116);function _0x23a892(_0x4f82a0){const _0x52f68f=_0x2df911;return{'id':_0x5e1140,'type':_0x562869['MenuItemType'][_0x52f68f(0x10e)],'icon':_0x52f68f(0xe8),'tooltip':_0x52f68f(0xfe),'hidden$':_0x562869[_0x52f68f(0xd9)](_0x4f82a0,_0x2b7a3f[_0x52f68f(0x129)][_0x52f68f(0xe4)]),'disabled$':_0x1864a5[_0x52f68f(0xdf)](_0x4f82a0,{'workbookTypes':[_0x2148b4[_0x52f68f(0x128)]]})};}function _0x2481fc(){const _0x5b3c11=_0x2df911;return{'id':_0x1d42e7['id'],'type':_0x562869[_0x5b3c11(0x103)][_0x5b3c11(0xef)],'title':_0x5b3c11(0xea),'icon':_0x5b3c11(0xd8)};}function _0x414999(){const _0xd9cecb=_0x2df911;return{'id':_0x87d039['id'],'type':_0x562869[_0xd9cecb(0x103)][_0xd9cecb(0xef)],'title':_0xd9cecb(0x10d),'icon':_0xd9cecb(0x111)};}const _0x43726d={[_0x562869[_0x2df911(0xe6)][_0x2df911(0xd7)]]:{[_0x5e1140]:{'order':0.3,'menuItemFactory':_0x23a892,[_0x1d42e7['id']]:{'order':0x0,'menuItemFactory':_0x2481fc},[_0x87d039['id']]:{'order':0x1,'menuItemFactory':_0x414999}}}};var _0x32eba2=Object[_0x2df911(0x12a)],_0x1fa620=(_0x1e4736,_0x4a1121,_0x596469,_0x10af26)=>{const _0x699aac=_0x2df911;for(var _0x1dff62=_0x10af26>0x1?void 0x0:_0x10af26?_0x32eba2(_0x4a1121,_0x596469):_0x4a1121,_0x3f3b3b=_0x1e4736[_0x699aac(0xf8)]-0x1,_0x18a56a;_0x3f3b3b>=0x0;_0x3f3b3b--)(_0x18a56a=_0x1e4736[_0x3f3b3b])&&(_0x1dff62=_0x18a56a(_0x1dff62)||_0x1dff62);return _0x1dff62;},_0x146b18=(_0x29e4c7,_0x380899)=>(_0x47c45f,_0x3db7b3)=>_0x380899(_0x47c45f,_0x3db7b3,_0x29e4c7);let _0x383059=class extends _0x2b7a3f[_0x2df911(0x11a)]{constructor(_0x46d4d0,_0x234d4c){const _0x19c383=_0x2df911;super(),this[_0x19c383(0xe0)]=_0x46d4d0,this[_0x19c383(0x10f)]=_0x234d4c,this['_initCommands'](),this['_initMenus']();}['_initCommands'](){const _0x1b2b08=_0x2df911;[_0x1d42e7,_0x87d039][_0x1b2b08(0xfd)](_0x2aa119=>{const _0x10d26f=_0x1b2b08;this[_0x10d26f(0x11d)](this[_0x10d26f(0xe0)][_0x10d26f(0xfb)](_0x2aa119));});}['_initMenus'](){const _0x4c6384=_0x2df911;this[_0x4c6384(0x10f)]['mergeMenu'](_0x43726d);}};_0x383059=_0x1fa620([_0x146b18(0x0,_0x2b7a3f[_0x2df911(0x11c)]),_0x146b18(0x1,_0x562869[_0x2df911(0xe7)])],_0x383059);var _0x466387=Object[_0x2df911(0xdd)],_0x529925=Object[_0x2df911(0x12a)],_0x5c1379=(_0x1051dc,_0x3078d1,_0x5a8659)=>_0x3078d1 in _0x1051dc?_0x466387(_0x1051dc,_0x3078d1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a8659}):_0x1051dc[_0x3078d1]=_0x5a8659,_0x190ba1=(_0x37ef02,_0xf27ed5,_0x9a4dea,_0x53acd7)=>{const _0x26ced0=_0x2df911;for(var _0x284678=_0x53acd7>0x1?void 0x0:_0x53acd7?_0x529925(_0xf27ed5,_0x9a4dea):_0xf27ed5,_0x4d5f09=_0x37ef02[_0x26ced0(0xf8)]-0x1,_0x1dad86;_0x4d5f09>=0x0;_0x4d5f09--)(_0x1dad86=_0x37ef02[_0x4d5f09])&&(_0x284678=_0x1dad86(_0x284678)||_0x284678);return _0x284678;},_0x3424d3=(_0x255f98,_0x15648f)=>(_0x1e90e5,_0x4bc734)=>_0x15648f(_0x1e90e5,_0x4bc734,_0x255f98),_0x51154c=(_0x2cb754,_0x380f29,_0xcf7503)=>_0x5c1379(_0x2cb754,typeof _0x380f29!=_0x2df911(0x114)?_0x380f29+'':_0x380f29,_0xcf7503);const _0x3c782e=_0x2df911(0x127);_0x21af04[_0x2df911(0xde)]=class extends _0x2b7a3f[_0x2df911(0x112)]{constructor(_0x378036=_0x590b06,_0x3487a3,_0x169037){const _0x353633=_0x2df911;super(),this[_0x353633(0x10b)]=_0x378036,this[_0x353633(0x10c)]=_0x3487a3,this['_configService']=_0x169037;const {menu:_0x2d656e,..._0x263fe6}=_0x2b7a3f[_0x353633(0xe3)]({},_0x590b06,this[_0x353633(0x10b)]);_0x2d656e&&this[_0x353633(0xda)][_0x353633(0x104)](_0x353633(0x108),_0x2d656e,{'merge':!0x0}),this['_configService'][_0x353633(0x104)](_0x171e93,_0x263fe6);}[_0x2df911(0x105)](){const _0x2fc869=_0x2df911;[[_0x383059]]['forEach'](_0x176811=>this['_injector'][_0x2fc869(0x100)](_0x176811));}[_0x2df911(0x106)](){this['_injector']['get'](_0x383059);}},_0x51154c(_0x21af04[_0x2df911(0xde)],'pluginName',_0x3c782e),_0x51154c(_0x21af04['UniverSheetsExchangeClientPlugin'],'type',_0x2b7a3f[_0x2df911(0x129)][_0x2df911(0xe4)]),_0x21af04[_0x2df911(0xde)]=_0x190ba1([_0x2b7a3f[_0x2df911(0xed)](_0xf14c0d[_0x2df911(0xff)]),_0x3424d3(0x1,_0x2b7a3f[_0x2df911(0xeb)](_0x2b7a3f[_0x2df911(0xf0)])),_0x3424d3(0x2,_0x2b7a3f[_0x2df911(0x122)])],_0x21af04['UniverSheetsExchangeClientPlugin']),_0x21af04[_0x2df911(0xee)]=_0x87d039,_0x21af04[_0x2df911(0xf6)]=_0x1d42e7,Object[_0x2df911(0xdd)](_0x21af04,Symbol[_0x2df911(0x115)],{'value':'Module'});}));function _0x288c(){const _0x438300=['exchange-client.operation.export-xlsx','IConfigService','81lFhUiH','exchange-client.operation.import-xlsx','UniverProExchangeClient','CommandType','SHEET_EXCHANGE_CLIENT_PLUGIN','WorkbookExportPermission','UniverInstanceType','getOwnPropertyDescriptor','get','@univerjs/core','OTHERS','FolderIcon','getMenuHiddenObservable','_configService','UniverCore','UniverProSheetsExchangeClient','defineProperty','UniverSheetsExchangeClientPlugin','getCurrentRangeDisable$','_commandService','@univerjs-pro/exchange-client','exportXLSXBySnapshot','merge','UNIVER_SHEET','84028QMGIVg','RibbonStartGroup','IMenuManagerService','DirectExportIcon','@univerjs/sheets-ui','exchange.upload','Inject','UniverSheets','DependentOn','ExportXLSXOperation','BUTTON','Injector','exports','UniverUi','834132RvgzSs','object','OPERATION','ImportXLSXOperation','UniverSheetsUi','length','@univerjs/ui','1032580oWflbr','registerCommand','967336WlNUxS','forEach','exchange.file','UniverExchangeClientPlugin','add','amd','importXLSXToUnitId','MenuItemType','setConfig','onStarting','onReady','sheets-exchange-client.config','menu','unit','importXLSXToSnapshot','_config','_injector','exchange.download','SUBITEMS','_menuManagerService','12803410VHxciN','ExportIcon','Plugin','272760JDgKXG','symbol','toStringTag','sheets-exchange-client.operation.exchange','6pArVAc','3wnwKfp','function','Disposable','IExchangeOperateService','ICommandService','disposeWithMe','exportXLSXByUnitId','1967007ifkhkP','search'];_0x288c=function(){return _0x438300;};return _0x288c();}
1
+ (function(_0x3e6dbc,_0x5a750a){const _0x2a56f3=_0x5303,_0x2549eb=_0x3e6dbc();while(!![]){try{const _0x5c9950=-parseInt(_0x2a56f3(0xe1))/0x1+parseInt(_0x2a56f3(0xd8))/0x2*(-parseInt(_0x2a56f3(0xae))/0x3)+-parseInt(_0x2a56f3(0xe0))/0x4+-parseInt(_0x2a56f3(0xf0))/0x5+parseInt(_0x2a56f3(0xc0))/0x6+-parseInt(_0x2a56f3(0xef))/0x7+parseInt(_0x2a56f3(0xcf))/0x8;if(_0x5c9950===_0x5a750a)break;else _0x2549eb['push'](_0x2549eb['shift']());}catch(_0x40813f){_0x2549eb['push'](_0x2549eb['shift']());}}}(_0x1cde,0x28ba2),function(_0x5cb89,_0x254dd9){const _0x10d6c3=_0x5303;typeof exports==_0x10d6c3(0xe7)&&typeof module<'u'?_0x254dd9(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x10d6c3(0xe2)&&define['amd']?define([_0x10d6c3(0xd3),'@univerjs-pro/exchange-client',_0x10d6c3(0xac),_0x10d6c3(0xb4),_0x10d6c3(0xec),_0x10d6c3(0xd0)],_0x254dd9):(_0x5cb89=typeof globalThis<'u'?globalThis:_0x5cb89||self,_0x254dd9(_0x5cb89[_0x10d6c3(0xbd)]={},_0x5cb89[_0x10d6c3(0xcb)],_0x5cb89[_0x10d6c3(0xba)],_0x5cb89['UniverUi'],_0x5cb89['UniverSheets'],_0x5cb89['UniverSheetsUi']));}(this,function(_0x230c19,_0x753599,_0x11c0b4,_0x52f6ab,_0x47e7de,_0x478431){'use strict';const _0x3dbed1=_0x5303;const _0x13a2c4={'id':_0x3dbed1(0xd1),'type':_0x11c0b4[_0x3dbed1(0xf3)][_0x3dbed1(0xe5)],'handler':async _0x4157a0=>{const _0x3c0c2e=_0x3dbed1,_0x253f75=_0x4157a0[_0x3c0c2e(0xb1)](_0x753599['IExchangeOperateService']);return new URLSearchParams(location[_0x3c0c2e(0xbe)])[_0x3c0c2e(0xb1)](_0x3c0c2e(0xbb))?_0x253f75[_0x3c0c2e(0xdf)]():_0x253f75[_0x3c0c2e(0xe6)](),!0x0;}},_0x42589c={'id':_0x3dbed1(0xb8),'type':_0x11c0b4[_0x3dbed1(0xf3)][_0x3dbed1(0xe5)],'handler':async _0x5495d1=>{const _0xaa5386=_0x3dbed1,_0x19aaca=_0x5495d1[_0xaa5386(0xb1)](_0x753599[_0xaa5386(0xbf)]);return new URLSearchParams(location[_0xaa5386(0xbe)])[_0xaa5386(0xb1)](_0xaa5386(0xbb))?_0x19aaca[_0xaa5386(0xca)]():_0x19aaca[_0xaa5386(0xe3)](),!0x0;}},_0xfb15f7=_0x3dbed1(0xde),_0x360d3f={},_0x3e03ec=_0x3dbed1(0xd7);function _0x46f042(_0x541dfa){const _0x327ba9=_0x3dbed1;return{'id':_0x3e03ec,'type':_0x52f6ab[_0x327ba9(0xc7)][_0x327ba9(0xd6)],'icon':_0x327ba9(0xf6),'tooltip':_0x327ba9(0xb2),'hidden$':_0x52f6ab[_0x327ba9(0xcd)](_0x541dfa,_0x11c0b4[_0x327ba9(0xb5)][_0x327ba9(0xea)]),'disabled$':_0x478431[_0x327ba9(0xc4)](_0x541dfa,{'workbookTypes':[_0x47e7de['WorkbookExportPermission']]})};}function _0x5876dc(){const _0xd2de25=_0x3dbed1;return{'id':_0x13a2c4['id'],'type':_0x52f6ab[_0xd2de25(0xc7)][_0xd2de25(0xf1)],'title':_0xd2de25(0xe4),'icon':_0xd2de25(0xab)};}function _0x520bf8(){const _0x25ff1e=_0x3dbed1;return{'id':_0x42589c['id'],'type':_0x52f6ab[_0x25ff1e(0xc7)][_0x25ff1e(0xf1)],'title':_0x25ff1e(0xf7),'icon':'ExportIcon'};}const _0x2ba838={[_0x52f6ab[_0x3dbed1(0xf4)][_0x3dbed1(0xe9)]]:{[_0x3e03ec]:{'order':0.3,'menuItemFactory':_0x46f042,[_0x13a2c4['id']]:{'order':0x0,'menuItemFactory':_0x5876dc},[_0x42589c['id']]:{'order':0x1,'menuItemFactory':_0x520bf8}}}};var _0x520fab=Object[_0x3dbed1(0xb9)],_0x1a7b44=(_0x4ec1bc,_0x3b70cd,_0x34764b,_0x54bf42)=>{const _0x376888=_0x3dbed1;for(var _0x3ac52c=_0x54bf42>0x1?void 0x0:_0x54bf42?_0x520fab(_0x3b70cd,_0x34764b):_0x3b70cd,_0x395f0b=_0x4ec1bc[_0x376888(0xaf)]-0x1,_0x44d649;_0x395f0b>=0x0;_0x395f0b--)(_0x44d649=_0x4ec1bc[_0x395f0b])&&(_0x3ac52c=_0x44d649(_0x3ac52c)||_0x3ac52c);return _0x3ac52c;},_0x23f5e9=(_0xe6ebcf,_0x577262)=>(_0x566f1c,_0x2d6d6f)=>_0x577262(_0x566f1c,_0x2d6d6f,_0xe6ebcf);let _0x1c207f=class extends _0x11c0b4[_0x3dbed1(0xeb)]{constructor(_0x361e02,_0x48ee0c){const _0x305420=_0x3dbed1;super(),this[_0x305420(0xc3)]=_0x361e02,this[_0x305420(0xe8)]=_0x48ee0c,this[_0x305420(0xf8)](),this[_0x305420(0xc5)]();}['_initCommands'](){[_0x13a2c4,_0x42589c]['forEach'](_0x357bd8=>{const _0x3d7e6f=_0x5303;this[_0x3d7e6f(0xb6)](this[_0x3d7e6f(0xc3)][_0x3d7e6f(0xed)](_0x357bd8));});}[_0x3dbed1(0xc5)](){const _0x4c3db2=_0x3dbed1;this[_0x4c3db2(0xe8)][_0x4c3db2(0xce)](_0x2ba838);}};_0x1c207f=_0x1a7b44([_0x23f5e9(0x0,_0x11c0b4[_0x3dbed1(0xb3)]),_0x23f5e9(0x1,_0x52f6ab['IMenuManagerService'])],_0x1c207f);var _0x49d828=Object[_0x3dbed1(0xad)],_0x3267c3=Object[_0x3dbed1(0xb9)],_0x2a8f60=(_0x1dd3d7,_0x251bbd,_0x5687ce)=>_0x251bbd in _0x1dd3d7?_0x49d828(_0x1dd3d7,_0x251bbd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5687ce}):_0x1dd3d7[_0x251bbd]=_0x5687ce,_0x4bd358=(_0x5c296b,_0x1a007a,_0x612472,_0x4959ae)=>{for(var _0x14ad7c=_0x4959ae>0x1?void 0x0:_0x4959ae?_0x3267c3(_0x1a007a,_0x612472):_0x1a007a,_0x256032=_0x5c296b['length']-0x1,_0x473974;_0x256032>=0x0;_0x256032--)(_0x473974=_0x5c296b[_0x256032])&&(_0x14ad7c=_0x473974(_0x14ad7c)||_0x14ad7c);return _0x14ad7c;},_0x3a9fc2=(_0x283418,_0x2cbbdd)=>(_0x4e4a67,_0x313289)=>_0x2cbbdd(_0x4e4a67,_0x313289,_0x283418),_0x13b562=(_0x49eca4,_0x3d5632,_0x59a266)=>_0x2a8f60(_0x49eca4,typeof _0x3d5632!=_0x3dbed1(0xdd)?_0x3d5632+'':_0x3d5632,_0x59a266);const _0x68373e=_0x3dbed1(0xc9);_0x230c19[_0x3dbed1(0xd2)]=class extends _0x11c0b4[_0x3dbed1(0xdc)]{constructor(_0xebcfb2=_0x360d3f,_0x4fc001,_0x40f9a8){const _0x2a8a2d=_0x3dbed1;super(),this[_0x2a8a2d(0xbc)]=_0xebcfb2,this[_0x2a8a2d(0xc6)]=_0x4fc001,this['_configService']=_0x40f9a8;const {menu:_0x43ef3b,..._0xb59a4b}=_0x11c0b4[_0x2a8a2d(0xb7)]({},_0x360d3f,this[_0x2a8a2d(0xbc)]);_0x43ef3b&&this[_0x2a8a2d(0xdb)][_0x2a8a2d(0xd5)]('menu',_0x43ef3b,{'merge':!0x0}),this['_configService']['setConfig'](_0xfb15f7,_0xb59a4b);}[_0x3dbed1(0xf2)](){const _0x18adfd=_0x3dbed1;[[_0x1c207f]]['forEach'](_0x440e22=>this['_injector'][_0x18adfd(0xd4)](_0x440e22));}[_0x3dbed1(0xc1)](){const _0xbf54d1=_0x3dbed1;this['_injector'][_0xbf54d1(0xb1)](_0x1c207f);}},_0x13b562(_0x230c19[_0x3dbed1(0xd2)],'pluginName',_0x68373e),_0x13b562(_0x230c19[_0x3dbed1(0xd2)],_0x3dbed1(0xda),_0x11c0b4['UniverInstanceType'][_0x3dbed1(0xea)]),_0x230c19[_0x3dbed1(0xd2)]=_0x4bd358([_0x11c0b4[_0x3dbed1(0xcc)](_0x753599['UniverExchangeClientPlugin']),_0x3a9fc2(0x1,_0x11c0b4['Inject'](_0x11c0b4[_0x3dbed1(0xc8)])),_0x3a9fc2(0x2,_0x11c0b4[_0x3dbed1(0xb0)])],_0x230c19[_0x3dbed1(0xd2)]),_0x230c19[_0x3dbed1(0xf5)]=_0x42589c,_0x230c19[_0x3dbed1(0xc2)]=_0x13a2c4,Object[_0x3dbed1(0xad)](_0x230c19,Symbol[_0x3dbed1(0xee)],{'value':_0x3dbed1(0xd9)});}));function _0x5303(_0x237239,_0x5a8d4d){_0x237239=_0x237239-0xab;const _0x1cde85=_0x1cde();let _0x530390=_0x1cde85[_0x237239];return _0x530390;}function _0x1cde(){const _0x30bf56=['UNIVER_SHEET','Disposable','@univerjs/sheets','registerCommand','toStringTag','1671915aZwUVb','1218940ftraqd','BUTTON','onStarting','CommandType','RibbonStartGroup','ExportXLSXOperation','DirectExportIcon','exchange.download','_initCommands','FolderIcon','@univerjs/core','defineProperty','155862TAsPZv','length','IConfigService','get','exchange.file','ICommandService','@univerjs/ui','UniverInstanceType','disposeWithMe','merge','exchange-client.operation.export-xlsx','getOwnPropertyDescriptor','UniverCore','unit','_config','UniverProSheetsExchangeClient','search','IExchangeOperateService','1633506SANuXo','onReady','ImportXLSXOperation','_commandService','getCurrentRangeDisable$','_initMenus','_injector','MenuItemType','Injector','SHEET_EXCHANGE_CLIENT_PLUGIN','exportXLSXByUnitId','UniverProExchangeClient','DependentOn','getMenuHiddenObservable','mergeMenu','7884640aGhJpD','@univerjs/sheets-ui','exchange-client.operation.import-xlsx','UniverSheetsExchangeClientPlugin','exports','add','setConfig','SUBITEMS','sheets-exchange-client.operation.exchange','10jmYAMp','Module','type','_configService','Plugin','symbol','sheets-exchange-client.config','importXLSXToUnitId','378464xQxJSt','253994alLHLn','function','exportXLSXBySnapshot','exchange.upload','OPERATION','importXLSXToSnapshot','object','_menuManagerService','OTHERS'];_0x1cde=function(){return _0x30bf56;};return _0x1cde();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -42,17 +42,17 @@
42
42
  "lib"
43
43
  ],
44
44
  "dependencies": {
45
- "@univerjs-pro/exchange-client": "0.16.0",
46
- "@univerjs/ui": "0.16.0",
47
- "@univerjs/core": "0.16.0",
48
- "@univerjs/sheets-ui": "0.16.0",
49
- "@univerjs/sheets": "0.16.0"
45
+ "@univerjs/core": "0.16.1",
46
+ "@univerjs/sheets": "0.16.1",
47
+ "@univerjs-pro/exchange-client": "0.16.1",
48
+ "@univerjs/ui": "0.16.1",
49
+ "@univerjs/sheets-ui": "0.16.1"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",
53
53
  "vite": "^7.3.1",
54
54
  "vitest": "^4.0.18",
55
- "@univerjs-infra/shared": "0.16.0"
55
+ "@univerjs-infra/shared": "0.16.1"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run",