@univerjs-pro/sheets-exchange-client 0.12.2-experimental.20251129-0fa20cd → 0.12.2-experimental.20251202-45172c6

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 _0x25a6c8=_0x1459;(function(_0x3e65aa,_0x4e5732){const _0x5bccb3=_0x1459,_0x1f4655=_0x3e65aa();while(!![]){try{const _0x235408=-parseInt(_0x5bccb3(0x1df))/0x1*(-parseInt(_0x5bccb3(0x1e4))/0x2)+parseInt(_0x5bccb3(0x1ef))/0x3*(-parseInt(_0x5bccb3(0x1d8))/0x4)+-parseInt(_0x5bccb3(0x1c0))/0x5+parseInt(_0x5bccb3(0x1e7))/0x6*(-parseInt(_0x5bccb3(0x1bf))/0x7)+-parseInt(_0x5bccb3(0x1ba))/0x8*(-parseInt(_0x5bccb3(0x1b1))/0x9)+-parseInt(_0x5bccb3(0x1e9))/0xa*(parseInt(_0x5bccb3(0x1e6))/0xb)+parseInt(_0x5bccb3(0x1d4))/0xc*(parseInt(_0x5bccb3(0x1ce))/0xd);if(_0x235408===_0x4e5732)break;else _0x1f4655['push'](_0x1f4655['shift']());}catch(_0x4306fa){_0x1f4655['push'](_0x1f4655['shift']());}}}(_0x13c1,0x27fa7));function _0x13c1(){const _0x2d5123=['defineProperty','sheets-exchange-client.config','setConfig','IMenuManagerService','getCurrentRangeDisable$','_menuManagerService','UniverSheetsExchangeClientPlugin','MenuItemType','UniverInstanceType','symbol','add','importXLSXToSnapshot','pluginName','1079eJigEz','OPERATION','RibbonStartGroup','ImportXLSXOperation','exchange-client.operation.import-xlsx','type','104496BNcClc','Plugin','_initMenus','toStringTag','4POqMDZ','exchange.download','onStarting','_initCommands','sheets-exchange-client.operation.exchange','BUTTON','importXLSXToUnitId','3SRjFTe','get','CommandType','ExportIcon','exportXLSXBySnapshot','51542ziJXOV','exchange-client.operation.export-xlsx','11IMqgKJ','455394MTHvNA','Disposable','2284270txWlhr','IExchangeOperateService','exchange.upload','search','onReady','merge','834303XWoeYv','disposeWithMe','OTHERS','exportXLSXByUnitId','mergeMenu','9vTLBhR','_commandService','_config','forEach','Injector','Inject','length','_injector','SUBITEMS','1331664oemMmg','getOwnPropertyDescriptor','_configService','getMenuHiddenObservable','unit','14yYkYdP','722290fJhRrq'];_0x13c1=function(){return _0x2d5123;};return _0x13c1();}Object[_0x25a6c8(0x1c1)](exports,Symbol[_0x25a6c8(0x1d7)],{'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':_0x25a6c8(0x1d2),'type':i['CommandType'][_0x25a6c8(0x1cf)],'handler':async _0x3ae8e7=>{const _0x1d1347=_0x25a6c8,_0x1f980b=_0x3ae8e7['get'](g['IExchangeOperateService']);return new URLSearchParams(location[_0x1d1347(0x1ec)])[_0x1d1347(0x1e0)]('unit')?_0x1f980b[_0x1d1347(0x1de)]():_0x1f980b[_0x1d1347(0x1cc)](),!0x0;}},p={'id':_0x25a6c8(0x1e5),'type':i[_0x25a6c8(0x1e1)][_0x25a6c8(0x1cf)],'handler':async _0x97b034=>{const _0x218c3e=_0x25a6c8,_0x324288=_0x97b034[_0x218c3e(0x1e0)](g[_0x218c3e(0x1ea)]);return new URLSearchParams(location['search'])[_0x218c3e(0x1e0)](_0x218c3e(0x1be))?_0x324288[_0x218c3e(0x1af)]():_0x324288[_0x218c3e(0x1e3)](),!0x0;}},v=_0x25a6c8(0x1c2),h={},S=_0x25a6c8(0x1dc);function x(_0x4ce655){const _0x418957=_0x25a6c8;return{'id':S,'type':c[_0x418957(0x1c8)][_0x418957(0x1b9)],'icon':'DirectExportIcon','tooltip':'exchange.file','hidden$':c[_0x418957(0x1bd)](_0x4ce655,i['UniverInstanceType']['UNIVER_SHEET']),'disabled$':I[_0x418957(0x1c5)](_0x4ce655,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x2ea85d=_0x25a6c8;return{'id':l['id'],'type':c[_0x2ea85d(0x1c8)]['BUTTON'],'title':_0x2ea85d(0x1eb),'icon':'FolderIcon'};}function C(){const _0x1c01d3=_0x25a6c8;return{'id':p['id'],'type':c['MenuItemType'][_0x1c01d3(0x1dd)],'title':_0x1c01d3(0x1d9),'icon':_0x1c01d3(0x1e2)};}const f={[c[_0x25a6c8(0x1d0)][_0x25a6c8(0x1ae)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x25a6c8(0x1bb)],y=(_0x758a69,_0x3215a4,_0x475120,_0x5b1ce6)=>{const _0x5b418a=_0x25a6c8;for(var _0x5f5983=_0x5b1ce6>0x1?void 0x0:_0x5b1ce6?T(_0x3215a4,_0x475120):_0x3215a4,_0x3e6b74=_0x758a69[_0x5b418a(0x1b7)]-0x1,_0x3a2a87;_0x3e6b74>=0x0;_0x3e6b74--)(_0x3a2a87=_0x758a69[_0x3e6b74])&&(_0x5f5983=_0x3a2a87(_0x5f5983)||_0x5f5983);return _0x5f5983;},m=(_0x3714c8,_0x4b8b9c)=>(_0x356639,_0x347d30)=>_0x4b8b9c(_0x356639,_0x347d30,_0x3714c8);let u=class extends i[_0x25a6c8(0x1e8)]{constructor(_0x5dd8ae,_0x23c745){const _0x25c200=_0x25a6c8;super(),this[_0x25c200(0x1b2)]=_0x5dd8ae,this[_0x25c200(0x1c6)]=_0x23c745,this['_initCommands'](),this[_0x25c200(0x1d6)]();}[_0x25a6c8(0x1db)](){const _0x676bd=_0x25a6c8;[l,p][_0x676bd(0x1b4)](_0x2301a4=>{const _0x735b95=_0x676bd;this[_0x735b95(0x1ad)](this[_0x735b95(0x1b2)]['registerCommand'](_0x2301a4));});}['_initMenus'](){const _0x10c61e=_0x25a6c8;this['_menuManagerService'][_0x10c61e(0x1b0)](f);}};u=y([m(0x0,i['ICommandService']),m(0x1,c[_0x25a6c8(0x1c4)])],u);var O=Object[_0x25a6c8(0x1c1)],U=Object[_0x25a6c8(0x1bb)],X=(_0x579f13,_0x2e57de,_0xb30491)=>_0x2e57de in _0x579f13?O(_0x579f13,_0x2e57de,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb30491}):_0x579f13[_0x2e57de]=_0xb30491,N=(_0x557764,_0x43c325,_0x2edd8f,_0x36681b)=>{for(var _0x3ed466=_0x36681b>0x1?void 0x0:_0x36681b?U(_0x43c325,_0x2edd8f):_0x43c325,_0xa0636f=_0x557764['length']-0x1,_0x5519e;_0xa0636f>=0x0;_0xa0636f--)(_0x5519e=_0x557764[_0xa0636f])&&(_0x3ed466=_0x5519e(_0x3ed466)||_0x3ed466);return _0x3ed466;},d=(_0x246e93,_0xc2b287)=>(_0x1321fb,_0x466065)=>_0xc2b287(_0x1321fb,_0x466065,_0x246e93),E=(_0x28a337,_0x19266b,_0x3dceb1)=>X(_0x28a337,typeof _0x19266b!=_0x25a6c8(0x1ca)?_0x19266b+'':_0x19266b,_0x3dceb1);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';function _0x1459(_0x2566cf,_0x133e1c){const _0x13c176=_0x13c1();return _0x1459=function(_0x14591b,_0x29a345){_0x14591b=_0x14591b-0x1ad;let _0xc1fcd1=_0x13c176[_0x14591b];return _0xc1fcd1;},_0x1459(_0x2566cf,_0x133e1c);}exports['UniverSheetsExchangeClientPlugin']=class extends i[_0x25a6c8(0x1d5)]{constructor(_0x22bce0=h,_0x175666,_0x4380c0){const _0x2c6069=_0x25a6c8;super(),this[_0x2c6069(0x1b3)]=_0x22bce0,this[_0x2c6069(0x1b8)]=_0x175666,this['_configService']=_0x4380c0;const {menu:_0x349701,..._0x36340f}=i[_0x2c6069(0x1ee)]({},h,this['_config']);_0x349701&&this[_0x2c6069(0x1bc)]['setConfig']('menu',_0x349701,{'merge':!0x0}),this[_0x2c6069(0x1bc)][_0x2c6069(0x1c3)](v,_0x36340f);}[_0x25a6c8(0x1da)](){const _0x18b584=_0x25a6c8;[[u]][_0x18b584(0x1b4)](_0x1b422f=>this['_injector'][_0x18b584(0x1cb)](_0x1b422f));}[_0x25a6c8(0x1ed)](){const _0x59cbdf=_0x25a6c8;this[_0x59cbdf(0x1b8)][_0x59cbdf(0x1e0)](u);}},E(exports[_0x25a6c8(0x1c7)],_0x25a6c8(0x1cd),L),E(exports[_0x25a6c8(0x1c7)],_0x25a6c8(0x1d3),i[_0x25a6c8(0x1c9)]['UNIVER_SHEET']),exports[_0x25a6c8(0x1c7)]=N([i['DependentOn'](g['UniverExchangeClientPlugin']),d(0x1,i[_0x25a6c8(0x1b6)](i[_0x25a6c8(0x1b5)])),d(0x2,i['IConfigService'])],exports[_0x25a6c8(0x1c7)]),exports['ExportXLSXOperation']=p,exports[_0x25a6c8(0x1d1)]=l;
1
+ 'use strict';const _0x47546d=_0x3a6d;function _0x58e7(){const _0x424ab9=['SUBITEMS','BUTTON','_injector','915340TnNrDN','31828BMwwef','exchange.upload','type','_initMenus','merge','_initCommands','add','ImportXLSXOperation','MenuItemType','UniverInstanceType','get','2055160gJIFpr','UniverExchangeClientPlugin','316344HdeNVv','unit','setConfig','_commandService','Plugin','WorkbookExportPermission','toStringTag','Module','_configService','8ZhDhDJ','getOwnPropertyDescriptor','pluginName','Injector','symbol','exchange-client.operation.export-xlsx','UniverSheetsExchangeClientPlugin','registerCommand','IMenuManagerService','4108936qFnqxT','exportXLSXByUnitId','582kajpIB','exportXLSXBySnapshot','UNIVER_SHEET','exchange.download','importXLSXToUnitId','mergeMenu','OTHERS','CommandType','ICommandService','DependentOn','_menuManagerService','OPERATION','getCurrentRangeDisable$','onStarting','sheets-exchange-client.operation.exchange','1057WNEPWr','1248355iuRtLJ','forEach','Inject','length','exchange.file','defineProperty','getMenuHiddenObservable','ExportXLSXOperation','menu','9mhnump','IExchangeOperateService','FolderIcon'];_0x58e7=function(){return _0x424ab9;};return _0x58e7();}(function(_0x57a12e,_0x3aedc1){const _0xeb2fb=_0x3a6d,_0x94003a=_0x57a12e();while(!![]){try{const _0x3f96b5=parseInt(_0xeb2fb(0xae))/0x1*(parseInt(_0xeb2fb(0xc4))/0x2)+parseInt(_0xeb2fb(0xbb))/0x3+-parseInt(_0xeb2fb(0xb9))/0x4+parseInt(_0xeb2fb(0x9e))/0x5+-parseInt(_0xeb2fb(0x8e))/0x6*(parseInt(_0xeb2fb(0x9d))/0x7)+parseInt(_0xeb2fb(0x8c))/0x8+parseInt(_0xeb2fb(0xa7))/0x9*(-parseInt(_0xeb2fb(0xad))/0xa);if(_0x3f96b5===_0x3aedc1)break;else _0x94003a['push'](_0x94003a['shift']());}catch(_0x341ca8){_0x94003a['push'](_0x94003a['shift']());}}}(_0x58e7,0x5bd0d));function _0x3a6d(_0x1b43c7,_0x4a389e){const _0x58e7d2=_0x58e7();return _0x3a6d=function(_0x3a6d38,_0x50a84b){_0x3a6d38=_0x3a6d38-0x85;let _0x2a60ea=_0x58e7d2[_0x3a6d38];return _0x2a60ea;},_0x3a6d(_0x1b43c7,_0x4a389e);}Object[_0x47546d(0xa3)](exports,Symbol[_0x47546d(0xc1)],{'value':_0x47546d(0xc2)});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[_0x47546d(0x95)][_0x47546d(0x99)],'handler':async _0x4e7655=>{const _0x316291=_0x47546d,_0x4b18e4=_0x4e7655['get'](g[_0x316291(0xa8)]);return new URLSearchParams(location['search'])['get'](_0x316291(0xbc))?_0x4b18e4[_0x316291(0x92)]():_0x4b18e4['importXLSXToSnapshot'](),!0x0;}},p={'id':_0x47546d(0x88),'type':i[_0x47546d(0x95)][_0x47546d(0x99)],'handler':async _0x1b042e=>{const _0x54e7c4=_0x47546d,_0x36db11=_0x1b042e[_0x54e7c4(0xb8)](g[_0x54e7c4(0xa8)]);return new URLSearchParams(location['search'])[_0x54e7c4(0xb8)](_0x54e7c4(0xbc))?_0x36db11[_0x54e7c4(0x8d)]():_0x36db11[_0x54e7c4(0x8f)](),!0x0;}},v='sheets-exchange-client.config',h={},S=_0x47546d(0x9c);function x(_0xbdb69d){const _0x2b8363=_0x47546d;return{'id':S,'type':c[_0x2b8363(0xb6)][_0x2b8363(0xaa)],'icon':'DirectExportIcon','tooltip':_0x2b8363(0xa2),'hidden$':c[_0x2b8363(0xa4)](_0xbdb69d,i[_0x2b8363(0xb7)][_0x2b8363(0x90)]),'disabled$':I[_0x2b8363(0x9a)](_0xbdb69d,{'workbookTypes':[_[_0x2b8363(0xc0)]]})};}function P(){const _0x49e1c3=_0x47546d;return{'id':l['id'],'type':c['MenuItemType'][_0x49e1c3(0xab)],'title':_0x49e1c3(0xaf),'icon':_0x49e1c3(0xa9)};}function C(){const _0x544219=_0x47546d;return{'id':p['id'],'type':c['MenuItemType'][_0x544219(0xab)],'title':_0x544219(0x91),'icon':'ExportIcon'};}const f={[c['RibbonStartGroup'][_0x47546d(0x94)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x3f4aac,_0x2a0462,_0x1ac5d4,_0x44b341)=>{for(var _0x15c8c6=_0x44b341>0x1?void 0x0:_0x44b341?T(_0x2a0462,_0x1ac5d4):_0x2a0462,_0x953c90=_0x3f4aac['length']-0x1,_0x2edba1;_0x953c90>=0x0;_0x953c90--)(_0x2edba1=_0x3f4aac[_0x953c90])&&(_0x15c8c6=_0x2edba1(_0x15c8c6)||_0x15c8c6);return _0x15c8c6;},m=(_0x9390fc,_0x415ef1)=>(_0x369e5a,_0x51b338)=>_0x415ef1(_0x369e5a,_0x51b338,_0x9390fc);let u=class extends i['Disposable']{constructor(_0x2c5889,_0x1ec23d){const _0x2e76be=_0x47546d;super(),this['_commandService']=_0x2c5889,this[_0x2e76be(0x98)]=_0x1ec23d,this[_0x2e76be(0xb3)](),this[_0x2e76be(0xb1)]();}[_0x47546d(0xb3)](){const _0x513524=_0x47546d;[l,p][_0x513524(0x9f)](_0x420a41=>{const _0x301178=_0x513524;this['disposeWithMe'](this[_0x301178(0xbe)][_0x301178(0x8a)](_0x420a41));});}[_0x47546d(0xb1)](){const _0x1bb0ff=_0x47546d;this[_0x1bb0ff(0x98)][_0x1bb0ff(0x93)](f);}};u=y([m(0x0,i[_0x47546d(0x96)]),m(0x1,c[_0x47546d(0x8b)])],u);var O=Object['defineProperty'],U=Object[_0x47546d(0xc5)],X=(_0x1c9548,_0x164b9a,_0x43ef33)=>_0x164b9a in _0x1c9548?O(_0x1c9548,_0x164b9a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43ef33}):_0x1c9548[_0x164b9a]=_0x43ef33,N=(_0x24614c,_0x4740b6,_0x25500a,_0x4ea307)=>{const _0x1beab1=_0x47546d;for(var _0x2358c4=_0x4ea307>0x1?void 0x0:_0x4ea307?U(_0x4740b6,_0x25500a):_0x4740b6,_0x2987d0=_0x24614c[_0x1beab1(0xa1)]-0x1,_0xbabba4;_0x2987d0>=0x0;_0x2987d0--)(_0xbabba4=_0x24614c[_0x2987d0])&&(_0x2358c4=_0xbabba4(_0x2358c4)||_0x2358c4);return _0x2358c4;},d=(_0x4700d0,_0x574726)=>(_0x572286,_0x2da16b)=>_0x574726(_0x572286,_0x2da16b,_0x4700d0),E=(_0x183285,_0x1e33ce,_0x4d91d2)=>X(_0x183285,typeof _0x1e33ce!=_0x47546d(0x87)?_0x1e33ce+'':_0x1e33ce,_0x4d91d2);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports[_0x47546d(0x89)]=class extends i[_0x47546d(0xbf)]{constructor(_0x2d6d5e=h,_0x408481,_0x1a2942){const _0x5c7fd4=_0x47546d;super(),this['_config']=_0x2d6d5e,this[_0x5c7fd4(0xac)]=_0x408481,this[_0x5c7fd4(0xc3)]=_0x1a2942;const {menu:_0x7042c6,..._0x1afdb3}=i[_0x5c7fd4(0xb2)]({},h,this['_config']);_0x7042c6&&this[_0x5c7fd4(0xc3)][_0x5c7fd4(0xbd)](_0x5c7fd4(0xa6),_0x7042c6,{'merge':!0x0}),this[_0x5c7fd4(0xc3)][_0x5c7fd4(0xbd)](v,_0x1afdb3);}[_0x47546d(0x9b)](){const _0x2f396a=_0x47546d;[[u]]['forEach'](_0xa5c292=>this[_0x2f396a(0xac)][_0x2f396a(0xb4)](_0xa5c292));}['onReady'](){const _0x6dc19e=_0x47546d;this[_0x6dc19e(0xac)][_0x6dc19e(0xb8)](u);}},E(exports[_0x47546d(0x89)],_0x47546d(0x85),L),E(exports[_0x47546d(0x89)],_0x47546d(0xb0),i[_0x47546d(0xb7)][_0x47546d(0x90)]),exports[_0x47546d(0x89)]=N([i[_0x47546d(0x97)](g[_0x47546d(0xba)]),d(0x1,i[_0x47546d(0xa0)](i[_0x47546d(0x86)])),d(0x2,i['IConfigService'])],exports[_0x47546d(0x89)]),exports[_0x47546d(0xa5)]=p,exports[_0x47546d(0xb5)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x53e9af=_0x2af0;(function(_0x4368d4,_0x4a8dcb){const _0x26e623=_0x2af0,_0x405a38=_0x4368d4();while(!![]){try{const _0x694eb4=parseInt(_0x26e623(0x153))/0x1+parseInt(_0x26e623(0x158))/0x2+parseInt(_0x26e623(0x165))/0x3*(-parseInt(_0x26e623(0x16b))/0x4)+parseInt(_0x26e623(0x162))/0x5*(-parseInt(_0x26e623(0x155))/0x6)+parseInt(_0x26e623(0x14e))/0x7+-parseInt(_0x26e623(0x149))/0x8+-parseInt(_0x26e623(0x146))/0x9*(-parseInt(_0x26e623(0x163))/0xa);if(_0x694eb4===_0x4a8dcb)break;else _0x405a38['push'](_0x405a38['shift']());}catch(_0x4d03fb){_0x405a38['push'](_0x405a38['shift']());}}}(_0x2ac6,0x59d95));import{IExchangeOperateService as _0x366261,UniverExchangeClientPlugin as _0x4b5ac0}from'@univerjs-pro/exchange-client';import{CommandType as _0x3ecf03,UniverInstanceType as _0x17561a,Disposable as _0x59f134,ICommandService as _0xe00d98,DependentOn as _0x2dd2f9,Inject as _0x58cf63,Injector as _0x3b72a0,IConfigService as _0x424122,Plugin as _0x27f4af,merge as _0x5317b8}from'@univerjs/core';import{MenuItemType as _0x538574,getMenuHiddenObservable as _0x257c1f,RibbonStartGroup as _0x111bfa,IMenuManagerService as _0x2a313c}from'@univerjs/ui';function _0x2af0(_0x1c60dc,_0x586304){const _0x2ac67b=_0x2ac6();return _0x2af0=function(_0x2af0ad,_0x579e98){_0x2af0ad=_0x2af0ad-0x13f;let _0x4be549=_0x2ac67b[_0x2af0ad];return _0x4be549;},_0x2af0(_0x1c60dc,_0x586304);}import{WorkbookExportPermission as _0x1989ca}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0xbeb9e5}from'@univerjs/sheets-ui';const p={'id':_0x53e9af(0x147),'type':_0x3ecf03[_0x53e9af(0x15e)],'handler':async _0xaa0bec=>{const _0x56083a=_0x53e9af,_0x2e3c3e=_0xaa0bec['get'](_0x366261);return new URLSearchParams(location[_0x56083a(0x14b)])[_0x56083a(0x14c)]('unit')?_0x2e3c3e[_0x56083a(0x166)]():_0x2e3c3e['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x53e9af(0x16e),'type':_0x3ecf03[_0x53e9af(0x15e)],'handler':async _0x59a230=>{const _0x5b4830=_0x53e9af,_0x4b9679=_0x59a230[_0x5b4830(0x14c)](_0x366261);return new URLSearchParams(location[_0x5b4830(0x14b)])['get'](_0x5b4830(0x164))?_0x4b9679[_0x5b4830(0x157)]():_0x4b9679['exportXLSXBySnapshot'](),!0x0;}},H='sheets-exchange-client.config',l={},S='sheets-exchange-client.operation.exchange';function R(_0x453179){const _0x3ff5b=_0x53e9af;return{'id':S,'type':_0x538574[_0x3ff5b(0x161)],'icon':_0x3ff5b(0x151),'tooltip':_0x3ff5b(0x15a),'hidden$':_0x257c1f(_0x453179,_0x17561a['UNIVER_SHEET']),'disabled$':_0xbeb9e5(_0x453179,{'workbookTypes':[_0x1989ca]})};}function w(){const _0x44a09d=_0x53e9af;return{'id':p['id'],'type':_0x538574['BUTTON'],'title':_0x44a09d(0x16a),'icon':_0x44a09d(0x143)};}function D(){const _0x3da78f=_0x53e9af;return{'id':u['id'],'type':_0x538574['BUTTON'],'title':_0x3da78f(0x14a),'icon':_0x3da78f(0x156)};}const F={[_0x111bfa[_0x53e9af(0x142)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x4b8c7d,_0x11eb8f,_0x1ba10b,_0x2fdf18)=>{const _0x2ad013=_0x53e9af;for(var _0x616140=_0x2fdf18>0x1?void 0x0:_0x2fdf18?G(_0x11eb8f,_0x1ba10b):_0x11eb8f,_0x3ccf85=_0x4b8c7d[_0x2ad013(0x141)]-0x1,_0x35c437;_0x3ccf85>=0x0;_0x3ccf85--)(_0x35c437=_0x4b8c7d[_0x3ccf85])&&(_0x616140=_0x35c437(_0x616140)||_0x616140);return _0x616140;},d=(_0x3ba12b,_0x32d2d3)=>(_0x34868d,_0x5b6df3)=>_0x32d2d3(_0x34868d,_0x5b6df3,_0x3ba12b);let c=class extends _0x59f134{constructor(_0x552cbd,_0x290ab3){const _0x213ddc=_0x53e9af;super(),this[_0x213ddc(0x14d)]=_0x552cbd,this[_0x213ddc(0x159)]=_0x290ab3,this[_0x213ddc(0x152)](),this[_0x213ddc(0x140)]();}[_0x53e9af(0x152)](){const _0x50f1ad=_0x53e9af;[p,u][_0x50f1ad(0x15c)](_0x162ed8=>{const _0x21b140=_0x50f1ad;this[_0x21b140(0x13f)](this[_0x21b140(0x14d)]['registerCommand'](_0x162ed8));});}[_0x53e9af(0x140)](){const _0x551a95=_0x53e9af;this[_0x551a95(0x159)][_0x551a95(0x148)](F);}};c=A([d(0x0,_0xe00d98),d(0x1,_0x2a313c)],c);var j=Object[_0x53e9af(0x15b)],B=Object['getOwnPropertyDescriptor'],$=(_0x3e0c21,_0x5d4c91,_0x46ebe3)=>_0x5d4c91 in _0x3e0c21?j(_0x3e0c21,_0x5d4c91,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x46ebe3}):_0x3e0c21[_0x5d4c91]=_0x46ebe3,V=(_0x3c266a,_0xcc84de,_0x499759,_0x1a2765)=>{const _0x5563f2=_0x53e9af;for(var _0x26b633=_0x1a2765>0x1?void 0x0:_0x1a2765?B(_0xcc84de,_0x499759):_0xcc84de,_0x350310=_0x3c266a[_0x5563f2(0x141)]-0x1,_0x162362;_0x350310>=0x0;_0x350310--)(_0x162362=_0x3c266a[_0x350310])&&(_0x26b633=_0x162362(_0x26b633)||_0x26b633);return _0x26b633;},_=(_0x2facbb,_0x158cf8)=>(_0x45f4aa,_0x5d6872)=>_0x158cf8(_0x45f4aa,_0x5d6872,_0x2facbb),I=(_0x2a50f6,_0x193d1a,_0x40f972)=>$(_0x2a50f6,typeof _0x193d1a!=_0x53e9af(0x144)?_0x193d1a+'':_0x193d1a,_0x40f972);const W=_0x53e9af(0x150);function _0x2ac6(){const _0x38b5ac=['add','exchange.upload','4IlGzsP','_config','type','exchange-client.operation.export-xlsx','disposeWithMe','_initMenus','length','OTHERS','FolderIcon','symbol','UNIVER_SHEET','9HrEoll','exchange-client.operation.import-xlsx','mergeMenu','3262688KTOWEE','exchange.download','search','get','_commandService','1036189UesTxm','pluginName','SHEET_EXCHANGE_CLIENT_PLUGIN','DirectExportIcon','_initCommands','725790RusxUW','_injector','3852nWxiJA','ExportIcon','exportXLSXByUnitId','280148LvErcK','_menuManagerService','exchange.file','defineProperty','forEach','onStarting','OPERATION','setConfig','onReady','SUBITEMS','3455GiGnXH','3069060EHfzSl','unit','303954KGpgcE','importXLSXToUnitId','menu','_configService'];_0x2ac6=function(){return _0x38b5ac;};return _0x2ac6();}let s=class extends _0x27f4af{constructor(_0x156fc4=l,_0x50b6d0,_0xec9588){const _0x498f4f=_0x53e9af;super(),this['_config']=_0x156fc4,this[_0x498f4f(0x154)]=_0x50b6d0,this[_0x498f4f(0x168)]=_0xec9588;const {menu:_0x1e42f0,..._0x410813}=_0x5317b8({},l,this[_0x498f4f(0x16c)]);_0x1e42f0&&this[_0x498f4f(0x168)][_0x498f4f(0x15f)](_0x498f4f(0x167),_0x1e42f0,{'merge':!0x0}),this[_0x498f4f(0x168)][_0x498f4f(0x15f)](H,_0x410813);}[_0x53e9af(0x15d)](){const _0x54a365=_0x53e9af;[[c]]['forEach'](_0x39b267=>this[_0x54a365(0x154)][_0x54a365(0x169)](_0x39b267));}[_0x53e9af(0x160)](){const _0x5e6b10=_0x53e9af;this[_0x5e6b10(0x154)]['get'](c);}};I(s,_0x53e9af(0x14f),W),I(s,_0x53e9af(0x16d),_0x17561a[_0x53e9af(0x145)]),s=V([_0x2dd2f9(_0x4b5ac0),_(0x1,_0x58cf63(_0x3b72a0)),_(0x2,_0x424122)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x42844a=_0x13d6;(function(_0x177aa7,_0x5a242e){const _0x55bcfb=_0x13d6,_0x5c4852=_0x177aa7();while(!![]){try{const _0x37bf25=parseInt(_0x55bcfb(0x122))/0x1*(-parseInt(_0x55bcfb(0x10d))/0x2)+-parseInt(_0x55bcfb(0x128))/0x3+-parseInt(_0x55bcfb(0x111))/0x4*(-parseInt(_0x55bcfb(0x138))/0x5)+parseInt(_0x55bcfb(0x11f))/0x6+-parseInt(_0x55bcfb(0x10a))/0x7+-parseInt(_0x55bcfb(0x12a))/0x8+-parseInt(_0x55bcfb(0x10c))/0x9*(-parseInt(_0x55bcfb(0x12d))/0xa);if(_0x37bf25===_0x5a242e)break;else _0x5c4852['push'](_0x5c4852['shift']());}catch(_0x492b12){_0x5c4852['push'](_0x5c4852['shift']());}}}(_0xc024,0xb7a85));import{IExchangeOperateService as _0x211354,UniverExchangeClientPlugin as _0x258a62}from'@univerjs-pro/exchange-client';import{CommandType as _0x4e00e3,UniverInstanceType as _0x276017,Disposable as _0xb69218,ICommandService as _0x5655b8,DependentOn as _0x2be2e1,Inject as _0x1f4761,Injector as _0x546e5f,IConfigService as _0x35b37b,Plugin as _0x1ec136,merge as _0x2044dd}from'@univerjs/core';import{MenuItemType as _0x536ed1,getMenuHiddenObservable as _0xa1199f,RibbonStartGroup as _0x12c1f3,IMenuManagerService as _0x34d264}from'@univerjs/ui';import{WorkbookExportPermission as _0x3f7494}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x590d25}from'@univerjs/sheets-ui';const p={'id':_0x42844a(0x12c),'type':_0x4e00e3[_0x42844a(0x119)],'handler':async _0x40f041=>{const _0x116226=_0x42844a,_0x2fb80b=_0x40f041['get'](_0x211354);return new URLSearchParams(location[_0x116226(0x133)])['get'](_0x116226(0x135))?_0x2fb80b[_0x116226(0x109)]():_0x2fb80b[_0x116226(0x113)](),!0x0;}},u={'id':_0x42844a(0x115),'type':_0x4e00e3['OPERATION'],'handler':async _0x2aea1b=>{const _0x3cd407=_0x42844a,_0x53dd2c=_0x2aea1b[_0x3cd407(0x118)](_0x211354);return new URLSearchParams(location[_0x3cd407(0x133)])[_0x3cd407(0x118)](_0x3cd407(0x135))?_0x53dd2c[_0x3cd407(0x114)]():_0x53dd2c[_0x3cd407(0x124)](),!0x0;}},H=_0x42844a(0x112),l={},S='sheets-exchange-client.operation.exchange';function R(_0x25c586){const _0x32ff12=_0x42844a;return{'id':S,'type':_0x536ed1[_0x32ff12(0x131)],'icon':_0x32ff12(0x110),'tooltip':'exchange.file','hidden$':_0xa1199f(_0x25c586,_0x276017[_0x32ff12(0x136)]),'disabled$':_0x590d25(_0x25c586,{'workbookTypes':[_0x3f7494]})};}function w(){const _0x19f264=_0x42844a;return{'id':p['id'],'type':_0x536ed1[_0x19f264(0x10b)],'title':'exchange.upload','icon':'FolderIcon'};}function D(){const _0x2af0a0=_0x42844a;return{'id':u['id'],'type':_0x536ed1[_0x2af0a0(0x10b)],'title':_0x2af0a0(0x121),'icon':_0x2af0a0(0x11a)};}const F={[_0x12c1f3[_0x42844a(0x10e)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x42844a(0x11d)],A=(_0x4e5dbb,_0x3164f8,_0x471972,_0x22c8fd)=>{const _0x4b9e10=_0x42844a;for(var _0x52bec9=_0x22c8fd>0x1?void 0x0:_0x22c8fd?G(_0x3164f8,_0x471972):_0x3164f8,_0x2e8e0f=_0x4e5dbb[_0x4b9e10(0x10f)]-0x1,_0x4c140f;_0x2e8e0f>=0x0;_0x2e8e0f--)(_0x4c140f=_0x4e5dbb[_0x2e8e0f])&&(_0x52bec9=_0x4c140f(_0x52bec9)||_0x52bec9);return _0x52bec9;},d=(_0x1a6806,_0x365aaf)=>(_0x196e40,_0x1c4d72)=>_0x365aaf(_0x196e40,_0x1c4d72,_0x1a6806);function _0x13d6(_0x21b94a,_0x307e48){const _0xc0244e=_0xc024();return _0x13d6=function(_0x13d68c,_0x34e298){_0x13d68c=_0x13d68c-0x109;let _0x2a253a=_0xc0244e[_0x13d68c];return _0x2a253a;},_0x13d6(_0x21b94a,_0x307e48);}let c=class extends _0xb69218{constructor(_0x1c7b11,_0x62ef){const _0x54044e=_0x42844a;super(),this[_0x54044e(0x117)]=_0x1c7b11,this[_0x54044e(0x123)]=_0x62ef,this[_0x54044e(0x132)](),this[_0x54044e(0x116)]();}[_0x42844a(0x132)](){[p,u]['forEach'](_0x2d50d0=>{const _0x17408c=_0x13d6;this[_0x17408c(0x129)](this[_0x17408c(0x117)][_0x17408c(0x125)](_0x2d50d0));});}[_0x42844a(0x116)](){const _0x25ccee=_0x42844a;this['_menuManagerService'][_0x25ccee(0x11b)](F);}};c=A([d(0x0,_0x5655b8),d(0x1,_0x34d264)],c);var j=Object['defineProperty'],B=Object['getOwnPropertyDescriptor'],$=(_0xf83f17,_0x1dde92,_0xc577ea)=>_0x1dde92 in _0xf83f17?j(_0xf83f17,_0x1dde92,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc577ea}):_0xf83f17[_0x1dde92]=_0xc577ea,V=(_0x399baf,_0xeee2c0,_0x195ad3,_0x501fab)=>{const _0x30e838=_0x42844a;for(var _0x47001c=_0x501fab>0x1?void 0x0:_0x501fab?B(_0xeee2c0,_0x195ad3):_0xeee2c0,_0xf75a99=_0x399baf[_0x30e838(0x10f)]-0x1,_0x44b0c7;_0xf75a99>=0x0;_0xf75a99--)(_0x44b0c7=_0x399baf[_0xf75a99])&&(_0x47001c=_0x44b0c7(_0x47001c)||_0x47001c);return _0x47001c;},_=(_0x3ef819,_0x10e9dd)=>(_0xc1d30e,_0x48c1c0)=>_0x10e9dd(_0xc1d30e,_0x48c1c0,_0x3ef819),I=(_0x21a556,_0x2fe2eb,_0x402317)=>$(_0x21a556,typeof _0x2fe2eb!=_0x42844a(0x127)?_0x2fe2eb+'':_0x2fe2eb,_0x402317);const W=_0x42844a(0x12f);let s=class extends _0x1ec136{constructor(_0x1de6df=l,_0x345d0d,_0x33e474){const _0x4dfe60=_0x42844a;super(),this[_0x4dfe60(0x137)]=_0x1de6df,this[_0x4dfe60(0x126)]=_0x345d0d,this[_0x4dfe60(0x12b)]=_0x33e474;const {menu:_0x1344cb,..._0x1c5ee6}=_0x2044dd({},l,this[_0x4dfe60(0x137)]);_0x1344cb&&this['_configService'][_0x4dfe60(0x134)](_0x4dfe60(0x130),_0x1344cb,{'merge':!0x0}),this[_0x4dfe60(0x12b)][_0x4dfe60(0x134)](H,_0x1c5ee6);}['onStarting'](){const _0x322693=_0x42844a;[[c]][_0x322693(0x11c)](_0x2533c8=>this[_0x322693(0x126)][_0x322693(0x120)](_0x2533c8));}[_0x42844a(0x11e)](){const _0x34eb64=_0x42844a;this['_injector'][_0x34eb64(0x118)](c);}};function _0xc024(){const _0x628e91=['SHEET_EXCHANGE_CLIENT_PLUGIN','menu','SUBITEMS','_initCommands','search','setConfig','unit','UNIVER_SHEET','_config','35PUwsBp','importXLSXToUnitId','9073603LNXdsz','BUTTON','207zSnRsP','4172IurXqO','OTHERS','length','DirectExportIcon','300644dDgeSE','sheets-exchange-client.config','importXLSXToSnapshot','exportXLSXByUnitId','exchange-client.operation.export-xlsx','_initMenus','_commandService','get','OPERATION','ExportIcon','mergeMenu','forEach','getOwnPropertyDescriptor','onReady','811260sQnepA','add','exchange.download','407mVxyFL','_menuManagerService','exportXLSXBySnapshot','registerCommand','_injector','symbol','74019aHbTWw','disposeWithMe','9457992oputLN','_configService','exchange-client.operation.import-xlsx','1496990dsGDhu','type'];_0xc024=function(){return _0x628e91;};return _0xc024();}I(s,'pluginName',W),I(s,_0x42844a(0x12e),_0x276017[_0x42844a(0x136)]),s=V([_0x2be2e1(_0x258a62),_(0x1,_0x1f4761(_0x546e5f)),_(0x2,_0x35b37b)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x53e9af=_0x2af0;(function(_0x4368d4,_0x4a8dcb){const _0x26e623=_0x2af0,_0x405a38=_0x4368d4();while(!![]){try{const _0x694eb4=parseInt(_0x26e623(0x153))/0x1+parseInt(_0x26e623(0x158))/0x2+parseInt(_0x26e623(0x165))/0x3*(-parseInt(_0x26e623(0x16b))/0x4)+parseInt(_0x26e623(0x162))/0x5*(-parseInt(_0x26e623(0x155))/0x6)+parseInt(_0x26e623(0x14e))/0x7+-parseInt(_0x26e623(0x149))/0x8+-parseInt(_0x26e623(0x146))/0x9*(-parseInt(_0x26e623(0x163))/0xa);if(_0x694eb4===_0x4a8dcb)break;else _0x405a38['push'](_0x405a38['shift']());}catch(_0x4d03fb){_0x405a38['push'](_0x405a38['shift']());}}}(_0x2ac6,0x59d95));import{IExchangeOperateService as _0x366261,UniverExchangeClientPlugin as _0x4b5ac0}from'@univerjs-pro/exchange-client';import{CommandType as _0x3ecf03,UniverInstanceType as _0x17561a,Disposable as _0x59f134,ICommandService as _0xe00d98,DependentOn as _0x2dd2f9,Inject as _0x58cf63,Injector as _0x3b72a0,IConfigService as _0x424122,Plugin as _0x27f4af,merge as _0x5317b8}from'@univerjs/core';import{MenuItemType as _0x538574,getMenuHiddenObservable as _0x257c1f,RibbonStartGroup as _0x111bfa,IMenuManagerService as _0x2a313c}from'@univerjs/ui';function _0x2af0(_0x1c60dc,_0x586304){const _0x2ac67b=_0x2ac6();return _0x2af0=function(_0x2af0ad,_0x579e98){_0x2af0ad=_0x2af0ad-0x13f;let _0x4be549=_0x2ac67b[_0x2af0ad];return _0x4be549;},_0x2af0(_0x1c60dc,_0x586304);}import{WorkbookExportPermission as _0x1989ca}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0xbeb9e5}from'@univerjs/sheets-ui';const p={'id':_0x53e9af(0x147),'type':_0x3ecf03[_0x53e9af(0x15e)],'handler':async _0xaa0bec=>{const _0x56083a=_0x53e9af,_0x2e3c3e=_0xaa0bec['get'](_0x366261);return new URLSearchParams(location[_0x56083a(0x14b)])[_0x56083a(0x14c)]('unit')?_0x2e3c3e[_0x56083a(0x166)]():_0x2e3c3e['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x53e9af(0x16e),'type':_0x3ecf03[_0x53e9af(0x15e)],'handler':async _0x59a230=>{const _0x5b4830=_0x53e9af,_0x4b9679=_0x59a230[_0x5b4830(0x14c)](_0x366261);return new URLSearchParams(location[_0x5b4830(0x14b)])['get'](_0x5b4830(0x164))?_0x4b9679[_0x5b4830(0x157)]():_0x4b9679['exportXLSXBySnapshot'](),!0x0;}},H='sheets-exchange-client.config',l={},S='sheets-exchange-client.operation.exchange';function R(_0x453179){const _0x3ff5b=_0x53e9af;return{'id':S,'type':_0x538574[_0x3ff5b(0x161)],'icon':_0x3ff5b(0x151),'tooltip':_0x3ff5b(0x15a),'hidden$':_0x257c1f(_0x453179,_0x17561a['UNIVER_SHEET']),'disabled$':_0xbeb9e5(_0x453179,{'workbookTypes':[_0x1989ca]})};}function w(){const _0x44a09d=_0x53e9af;return{'id':p['id'],'type':_0x538574['BUTTON'],'title':_0x44a09d(0x16a),'icon':_0x44a09d(0x143)};}function D(){const _0x3da78f=_0x53e9af;return{'id':u['id'],'type':_0x538574['BUTTON'],'title':_0x3da78f(0x14a),'icon':_0x3da78f(0x156)};}const F={[_0x111bfa[_0x53e9af(0x142)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x4b8c7d,_0x11eb8f,_0x1ba10b,_0x2fdf18)=>{const _0x2ad013=_0x53e9af;for(var _0x616140=_0x2fdf18>0x1?void 0x0:_0x2fdf18?G(_0x11eb8f,_0x1ba10b):_0x11eb8f,_0x3ccf85=_0x4b8c7d[_0x2ad013(0x141)]-0x1,_0x35c437;_0x3ccf85>=0x0;_0x3ccf85--)(_0x35c437=_0x4b8c7d[_0x3ccf85])&&(_0x616140=_0x35c437(_0x616140)||_0x616140);return _0x616140;},d=(_0x3ba12b,_0x32d2d3)=>(_0x34868d,_0x5b6df3)=>_0x32d2d3(_0x34868d,_0x5b6df3,_0x3ba12b);let c=class extends _0x59f134{constructor(_0x552cbd,_0x290ab3){const _0x213ddc=_0x53e9af;super(),this[_0x213ddc(0x14d)]=_0x552cbd,this[_0x213ddc(0x159)]=_0x290ab3,this[_0x213ddc(0x152)](),this[_0x213ddc(0x140)]();}[_0x53e9af(0x152)](){const _0x50f1ad=_0x53e9af;[p,u][_0x50f1ad(0x15c)](_0x162ed8=>{const _0x21b140=_0x50f1ad;this[_0x21b140(0x13f)](this[_0x21b140(0x14d)]['registerCommand'](_0x162ed8));});}[_0x53e9af(0x140)](){const _0x551a95=_0x53e9af;this[_0x551a95(0x159)][_0x551a95(0x148)](F);}};c=A([d(0x0,_0xe00d98),d(0x1,_0x2a313c)],c);var j=Object[_0x53e9af(0x15b)],B=Object['getOwnPropertyDescriptor'],$=(_0x3e0c21,_0x5d4c91,_0x46ebe3)=>_0x5d4c91 in _0x3e0c21?j(_0x3e0c21,_0x5d4c91,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x46ebe3}):_0x3e0c21[_0x5d4c91]=_0x46ebe3,V=(_0x3c266a,_0xcc84de,_0x499759,_0x1a2765)=>{const _0x5563f2=_0x53e9af;for(var _0x26b633=_0x1a2765>0x1?void 0x0:_0x1a2765?B(_0xcc84de,_0x499759):_0xcc84de,_0x350310=_0x3c266a[_0x5563f2(0x141)]-0x1,_0x162362;_0x350310>=0x0;_0x350310--)(_0x162362=_0x3c266a[_0x350310])&&(_0x26b633=_0x162362(_0x26b633)||_0x26b633);return _0x26b633;},_=(_0x2facbb,_0x158cf8)=>(_0x45f4aa,_0x5d6872)=>_0x158cf8(_0x45f4aa,_0x5d6872,_0x2facbb),I=(_0x2a50f6,_0x193d1a,_0x40f972)=>$(_0x2a50f6,typeof _0x193d1a!=_0x53e9af(0x144)?_0x193d1a+'':_0x193d1a,_0x40f972);const W=_0x53e9af(0x150);function _0x2ac6(){const _0x38b5ac=['add','exchange.upload','4IlGzsP','_config','type','exchange-client.operation.export-xlsx','disposeWithMe','_initMenus','length','OTHERS','FolderIcon','symbol','UNIVER_SHEET','9HrEoll','exchange-client.operation.import-xlsx','mergeMenu','3262688KTOWEE','exchange.download','search','get','_commandService','1036189UesTxm','pluginName','SHEET_EXCHANGE_CLIENT_PLUGIN','DirectExportIcon','_initCommands','725790RusxUW','_injector','3852nWxiJA','ExportIcon','exportXLSXByUnitId','280148LvErcK','_menuManagerService','exchange.file','defineProperty','forEach','onStarting','OPERATION','setConfig','onReady','SUBITEMS','3455GiGnXH','3069060EHfzSl','unit','303954KGpgcE','importXLSXToUnitId','menu','_configService'];_0x2ac6=function(){return _0x38b5ac;};return _0x2ac6();}let s=class extends _0x27f4af{constructor(_0x156fc4=l,_0x50b6d0,_0xec9588){const _0x498f4f=_0x53e9af;super(),this['_config']=_0x156fc4,this[_0x498f4f(0x154)]=_0x50b6d0,this[_0x498f4f(0x168)]=_0xec9588;const {menu:_0x1e42f0,..._0x410813}=_0x5317b8({},l,this[_0x498f4f(0x16c)]);_0x1e42f0&&this[_0x498f4f(0x168)][_0x498f4f(0x15f)](_0x498f4f(0x167),_0x1e42f0,{'merge':!0x0}),this[_0x498f4f(0x168)][_0x498f4f(0x15f)](H,_0x410813);}[_0x53e9af(0x15d)](){const _0x54a365=_0x53e9af;[[c]]['forEach'](_0x39b267=>this[_0x54a365(0x154)][_0x54a365(0x169)](_0x39b267));}[_0x53e9af(0x160)](){const _0x5e6b10=_0x53e9af;this[_0x5e6b10(0x154)]['get'](c);}};I(s,_0x53e9af(0x14f),W),I(s,_0x53e9af(0x16d),_0x17561a[_0x53e9af(0x145)]),s=V([_0x2dd2f9(_0x4b5ac0),_(0x1,_0x58cf63(_0x3b72a0)),_(0x2,_0x424122)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x42844a=_0x13d6;(function(_0x177aa7,_0x5a242e){const _0x55bcfb=_0x13d6,_0x5c4852=_0x177aa7();while(!![]){try{const _0x37bf25=parseInt(_0x55bcfb(0x122))/0x1*(-parseInt(_0x55bcfb(0x10d))/0x2)+-parseInt(_0x55bcfb(0x128))/0x3+-parseInt(_0x55bcfb(0x111))/0x4*(-parseInt(_0x55bcfb(0x138))/0x5)+parseInt(_0x55bcfb(0x11f))/0x6+-parseInt(_0x55bcfb(0x10a))/0x7+-parseInt(_0x55bcfb(0x12a))/0x8+-parseInt(_0x55bcfb(0x10c))/0x9*(-parseInt(_0x55bcfb(0x12d))/0xa);if(_0x37bf25===_0x5a242e)break;else _0x5c4852['push'](_0x5c4852['shift']());}catch(_0x492b12){_0x5c4852['push'](_0x5c4852['shift']());}}}(_0xc024,0xb7a85));import{IExchangeOperateService as _0x211354,UniverExchangeClientPlugin as _0x258a62}from'@univerjs-pro/exchange-client';import{CommandType as _0x4e00e3,UniverInstanceType as _0x276017,Disposable as _0xb69218,ICommandService as _0x5655b8,DependentOn as _0x2be2e1,Inject as _0x1f4761,Injector as _0x546e5f,IConfigService as _0x35b37b,Plugin as _0x1ec136,merge as _0x2044dd}from'@univerjs/core';import{MenuItemType as _0x536ed1,getMenuHiddenObservable as _0xa1199f,RibbonStartGroup as _0x12c1f3,IMenuManagerService as _0x34d264}from'@univerjs/ui';import{WorkbookExportPermission as _0x3f7494}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x590d25}from'@univerjs/sheets-ui';const p={'id':_0x42844a(0x12c),'type':_0x4e00e3[_0x42844a(0x119)],'handler':async _0x40f041=>{const _0x116226=_0x42844a,_0x2fb80b=_0x40f041['get'](_0x211354);return new URLSearchParams(location[_0x116226(0x133)])['get'](_0x116226(0x135))?_0x2fb80b[_0x116226(0x109)]():_0x2fb80b[_0x116226(0x113)](),!0x0;}},u={'id':_0x42844a(0x115),'type':_0x4e00e3['OPERATION'],'handler':async _0x2aea1b=>{const _0x3cd407=_0x42844a,_0x53dd2c=_0x2aea1b[_0x3cd407(0x118)](_0x211354);return new URLSearchParams(location[_0x3cd407(0x133)])[_0x3cd407(0x118)](_0x3cd407(0x135))?_0x53dd2c[_0x3cd407(0x114)]():_0x53dd2c[_0x3cd407(0x124)](),!0x0;}},H=_0x42844a(0x112),l={},S='sheets-exchange-client.operation.exchange';function R(_0x25c586){const _0x32ff12=_0x42844a;return{'id':S,'type':_0x536ed1[_0x32ff12(0x131)],'icon':_0x32ff12(0x110),'tooltip':'exchange.file','hidden$':_0xa1199f(_0x25c586,_0x276017[_0x32ff12(0x136)]),'disabled$':_0x590d25(_0x25c586,{'workbookTypes':[_0x3f7494]})};}function w(){const _0x19f264=_0x42844a;return{'id':p['id'],'type':_0x536ed1[_0x19f264(0x10b)],'title':'exchange.upload','icon':'FolderIcon'};}function D(){const _0x2af0a0=_0x42844a;return{'id':u['id'],'type':_0x536ed1[_0x2af0a0(0x10b)],'title':_0x2af0a0(0x121),'icon':_0x2af0a0(0x11a)};}const F={[_0x12c1f3[_0x42844a(0x10e)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x42844a(0x11d)],A=(_0x4e5dbb,_0x3164f8,_0x471972,_0x22c8fd)=>{const _0x4b9e10=_0x42844a;for(var _0x52bec9=_0x22c8fd>0x1?void 0x0:_0x22c8fd?G(_0x3164f8,_0x471972):_0x3164f8,_0x2e8e0f=_0x4e5dbb[_0x4b9e10(0x10f)]-0x1,_0x4c140f;_0x2e8e0f>=0x0;_0x2e8e0f--)(_0x4c140f=_0x4e5dbb[_0x2e8e0f])&&(_0x52bec9=_0x4c140f(_0x52bec9)||_0x52bec9);return _0x52bec9;},d=(_0x1a6806,_0x365aaf)=>(_0x196e40,_0x1c4d72)=>_0x365aaf(_0x196e40,_0x1c4d72,_0x1a6806);function _0x13d6(_0x21b94a,_0x307e48){const _0xc0244e=_0xc024();return _0x13d6=function(_0x13d68c,_0x34e298){_0x13d68c=_0x13d68c-0x109;let _0x2a253a=_0xc0244e[_0x13d68c];return _0x2a253a;},_0x13d6(_0x21b94a,_0x307e48);}let c=class extends _0xb69218{constructor(_0x1c7b11,_0x62ef){const _0x54044e=_0x42844a;super(),this[_0x54044e(0x117)]=_0x1c7b11,this[_0x54044e(0x123)]=_0x62ef,this[_0x54044e(0x132)](),this[_0x54044e(0x116)]();}[_0x42844a(0x132)](){[p,u]['forEach'](_0x2d50d0=>{const _0x17408c=_0x13d6;this[_0x17408c(0x129)](this[_0x17408c(0x117)][_0x17408c(0x125)](_0x2d50d0));});}[_0x42844a(0x116)](){const _0x25ccee=_0x42844a;this['_menuManagerService'][_0x25ccee(0x11b)](F);}};c=A([d(0x0,_0x5655b8),d(0x1,_0x34d264)],c);var j=Object['defineProperty'],B=Object['getOwnPropertyDescriptor'],$=(_0xf83f17,_0x1dde92,_0xc577ea)=>_0x1dde92 in _0xf83f17?j(_0xf83f17,_0x1dde92,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc577ea}):_0xf83f17[_0x1dde92]=_0xc577ea,V=(_0x399baf,_0xeee2c0,_0x195ad3,_0x501fab)=>{const _0x30e838=_0x42844a;for(var _0x47001c=_0x501fab>0x1?void 0x0:_0x501fab?B(_0xeee2c0,_0x195ad3):_0xeee2c0,_0xf75a99=_0x399baf[_0x30e838(0x10f)]-0x1,_0x44b0c7;_0xf75a99>=0x0;_0xf75a99--)(_0x44b0c7=_0x399baf[_0xf75a99])&&(_0x47001c=_0x44b0c7(_0x47001c)||_0x47001c);return _0x47001c;},_=(_0x3ef819,_0x10e9dd)=>(_0xc1d30e,_0x48c1c0)=>_0x10e9dd(_0xc1d30e,_0x48c1c0,_0x3ef819),I=(_0x21a556,_0x2fe2eb,_0x402317)=>$(_0x21a556,typeof _0x2fe2eb!=_0x42844a(0x127)?_0x2fe2eb+'':_0x2fe2eb,_0x402317);const W=_0x42844a(0x12f);let s=class extends _0x1ec136{constructor(_0x1de6df=l,_0x345d0d,_0x33e474){const _0x4dfe60=_0x42844a;super(),this[_0x4dfe60(0x137)]=_0x1de6df,this[_0x4dfe60(0x126)]=_0x345d0d,this[_0x4dfe60(0x12b)]=_0x33e474;const {menu:_0x1344cb,..._0x1c5ee6}=_0x2044dd({},l,this[_0x4dfe60(0x137)]);_0x1344cb&&this['_configService'][_0x4dfe60(0x134)](_0x4dfe60(0x130),_0x1344cb,{'merge':!0x0}),this[_0x4dfe60(0x12b)][_0x4dfe60(0x134)](H,_0x1c5ee6);}['onStarting'](){const _0x322693=_0x42844a;[[c]][_0x322693(0x11c)](_0x2533c8=>this[_0x322693(0x126)][_0x322693(0x120)](_0x2533c8));}[_0x42844a(0x11e)](){const _0x34eb64=_0x42844a;this['_injector'][_0x34eb64(0x118)](c);}};function _0xc024(){const _0x628e91=['SHEET_EXCHANGE_CLIENT_PLUGIN','menu','SUBITEMS','_initCommands','search','setConfig','unit','UNIVER_SHEET','_config','35PUwsBp','importXLSXToUnitId','9073603LNXdsz','BUTTON','207zSnRsP','4172IurXqO','OTHERS','length','DirectExportIcon','300644dDgeSE','sheets-exchange-client.config','importXLSXToSnapshot','exportXLSXByUnitId','exchange-client.operation.export-xlsx','_initMenus','_commandService','get','OPERATION','ExportIcon','mergeMenu','forEach','getOwnPropertyDescriptor','onReady','811260sQnepA','add','exchange.download','407mVxyFL','_menuManagerService','exportXLSXBySnapshot','registerCommand','_injector','symbol','74019aHbTWw','disposeWithMe','9457992oputLN','_configService','exchange-client.operation.import-xlsx','1496990dsGDhu','type'];_0xc024=function(){return _0x628e91;};return _0xc024();}I(s,'pluginName',W),I(s,_0x42844a(0x12e),_0x276017[_0x42844a(0x136)]),s=V([_0x2be2e1(_0x258a62),_(0x1,_0x1f4761(_0x546e5f)),_(0x2,_0x35b37b)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x2ce7(_0x11c57a,_0x4a24ad){const _0x2398d4=_0x2398();return _0x2ce7=function(_0x2ce786,_0x318267){_0x2ce786=_0x2ce786-0x9e;let _0x2fdd97=_0x2398d4[_0x2ce786];return _0x2fdd97;},_0x2ce7(_0x11c57a,_0x4a24ad);}function _0x2398(){const _0x418e62=['function','Injector','IConfigService','_commandService','defineProperty','exports','UniverProExchangeClient','exchange.file','858476iAxxLz','340386vSczgU','@univerjs/sheets-ui','forEach','getMenuHiddenObservable','BUTTON','toStringTag','IExchangeOperateService','DirectExportIcon','onStarting','UniverInstanceType','length','SHEET_EXCHANGE_CLIENT_PLUGIN','OPERATION','UniverExchangeClientPlugin','5090TEPTrX','UniverUi','Plugin','603DxvjbX','2105403dJQnFp','registerCommand','3470761pHzYhC','Inject','exchange-client.operation.export-xlsx','OTHERS','@univerjs/sheets','ExportIcon','Module','202856TiERgq','exchange-client.operation.import-xlsx','_initMenus','merge','_injector','@univerjs/core','importXLSXToSnapshot','_menuManagerService','exchange.download','search','UniverProSheetsExchangeClient','_config','disposeWithMe','UniverSheetsExchangeClientPlugin','@univerjs-pro/exchange-client','CommandType','MenuItemType','unit','getOwnPropertyDescriptor','UniverCore','ImportXLSXOperation','WorkbookExportPermission','ExportXLSXOperation','get','sheets-exchange-client.config','DependentOn','SUBITEMS','setConfig','_configService','pluginName','120wAZMGP','FolderIcon','19456nWsQib','IMenuManagerService','@univerjs/ui','amd','sheets-exchange-client.operation.exchange','_initCommands','importXLSXToUnitId'];_0x2398=function(){return _0x418e62;};return _0x2398();}(function(_0x35dde2,_0x2e9beb){const _0x5443c7=_0x2ce7,_0x55ecd8=_0x35dde2();while(!![]){try{const _0xefa491=parseInt(_0x5443c7(0xb6))/0x1+parseInt(_0x5443c7(0xb7))/0x2+parseInt(_0x5443c7(0xc9))/0x3+parseInt(_0x5443c7(0xa7))/0x4+-parseInt(_0x5443c7(0xc5))/0x5*(parseInt(_0x5443c7(0xa5))/0x6)+parseInt(_0x5443c7(0xcb))/0x7+parseInt(_0x5443c7(0xd2))/0x8*(-parseInt(_0x5443c7(0xc8))/0x9);if(_0xefa491===_0x2e9beb)break;else _0x55ecd8['push'](_0x55ecd8['shift']());}catch(_0x9e2f49){_0x55ecd8['push'](_0x55ecd8['shift']());}}}(_0x2398,0x7cf86),function(_0x2f19c8,_0x46af6f){const _0x11172a=_0x2ce7;typeof exports=='object'&&typeof module<'u'?_0x46af6f(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x11172a(0xae)&&define[_0x11172a(0xaa)]?define([_0x11172a(0xb3),_0x11172a(0xe0),_0x11172a(0xd7),_0x11172a(0xa9),_0x11172a(0xcf),_0x11172a(0xb8)],_0x46af6f):(_0x2f19c8=typeof globalThis<'u'?globalThis:_0x2f19c8||self,_0x46af6f(_0x2f19c8[_0x11172a(0xdc)]={},_0x2f19c8[_0x11172a(0xb4)],_0x2f19c8[_0x11172a(0xe5)],_0x2f19c8[_0x11172a(0xc6)],_0x2f19c8['UniverSheets'],_0x2f19c8['UniverSheetsUi']));}(this,function(_0x3ec282,_0x6f0bb0,_0x3d9de0,_0xd5c096,_0x47c9f8,_0x51fffd){'use strict';const _0x49f8ca=_0x2ce7;const _0x1ed973={'id':_0x49f8ca(0xd3),'type':_0x3d9de0[_0x49f8ca(0xe1)][_0x49f8ca(0xc3)],'handler':async _0x5c5c04=>{const _0x20ffc1=_0x49f8ca,_0x5303cf=_0x5c5c04[_0x20ffc1(0x9e)](_0x6f0bb0['IExchangeOperateService']);return new URLSearchParams(location[_0x20ffc1(0xdb)])[_0x20ffc1(0x9e)](_0x20ffc1(0xe3))?_0x5303cf[_0x20ffc1(0xad)]():_0x5303cf[_0x20ffc1(0xd8)](),!0x0;}},_0x3df6e7={'id':_0x49f8ca(0xcd),'type':_0x3d9de0['CommandType'][_0x49f8ca(0xc3)],'handler':async _0x259f1d=>{const _0x1fb579=_0x49f8ca,_0x486dd9=_0x259f1d[_0x1fb579(0x9e)](_0x6f0bb0[_0x1fb579(0xbd)]);return new URLSearchParams(location[_0x1fb579(0xdb)])[_0x1fb579(0x9e)](_0x1fb579(0xe3))?_0x486dd9['exportXLSXByUnitId']():_0x486dd9['exportXLSXBySnapshot'](),!0x0;}},_0xbecb16=_0x49f8ca(0x9f),_0x41af74={},_0x1a3c0e=_0x49f8ca(0xab);function _0x7b7d5b(_0x53a1ea){const _0xb768d1=_0x49f8ca;return{'id':_0x1a3c0e,'type':_0xd5c096[_0xb768d1(0xe2)][_0xb768d1(0xa1)],'icon':_0xb768d1(0xbe),'tooltip':_0xb768d1(0xb5),'hidden$':_0xd5c096[_0xb768d1(0xba)](_0x53a1ea,_0x3d9de0[_0xb768d1(0xc0)]['UNIVER_SHEET']),'disabled$':_0x51fffd['getCurrentRangeDisable$'](_0x53a1ea,{'workbookTypes':[_0x47c9f8[_0xb768d1(0xe7)]]})};}function _0x2be828(){const _0x42d4a1=_0x49f8ca;return{'id':_0x1ed973['id'],'type':_0xd5c096[_0x42d4a1(0xe2)][_0x42d4a1(0xbb)],'title':'exchange.upload','icon':_0x42d4a1(0xa6)};}function _0x59393e(){const _0x220d2b=_0x49f8ca;return{'id':_0x3df6e7['id'],'type':_0xd5c096[_0x220d2b(0xe2)][_0x220d2b(0xbb)],'title':_0x220d2b(0xda),'icon':_0x220d2b(0xd0)};}const _0x281c48={[_0xd5c096['RibbonStartGroup'][_0x49f8ca(0xce)]]:{[_0x1a3c0e]:{'order':0.3,'menuItemFactory':_0x7b7d5b,[_0x1ed973['id']]:{'order':0x0,'menuItemFactory':_0x2be828},[_0x3df6e7['id']]:{'order':0x1,'menuItemFactory':_0x59393e}}}};var _0x461569=Object[_0x49f8ca(0xe4)],_0x2fa916=(_0x258d20,_0x1c5660,_0x646cff,_0x1252df)=>{for(var _0x5a684e=_0x1252df>0x1?void 0x0:_0x1252df?_0x461569(_0x1c5660,_0x646cff):_0x1c5660,_0x2eb588=_0x258d20['length']-0x1,_0x2c3aa9;_0x2eb588>=0x0;_0x2eb588--)(_0x2c3aa9=_0x258d20[_0x2eb588])&&(_0x5a684e=_0x2c3aa9(_0x5a684e)||_0x5a684e);return _0x5a684e;},_0x339f87=(_0x477a9b,_0x5747dc)=>(_0x2eeee0,_0x1b7e82)=>_0x5747dc(_0x2eeee0,_0x1b7e82,_0x477a9b);let _0x2852cc=class extends _0x3d9de0['Disposable']{constructor(_0x2ceb95,_0x497d1f){const _0x9ea2b1=_0x49f8ca;super(),this['_commandService']=_0x2ceb95,this[_0x9ea2b1(0xd9)]=_0x497d1f,this[_0x9ea2b1(0xac)](),this['_initMenus']();}[_0x49f8ca(0xac)](){const _0x5d0e48=_0x49f8ca;[_0x1ed973,_0x3df6e7][_0x5d0e48(0xb9)](_0x5cd305=>{const _0x505f33=_0x5d0e48;this[_0x505f33(0xde)](this[_0x505f33(0xb1)][_0x505f33(0xca)](_0x5cd305));});}[_0x49f8ca(0xd4)](){const _0x4019d9=_0x49f8ca;this[_0x4019d9(0xd9)]['mergeMenu'](_0x281c48);}};_0x2852cc=_0x2fa916([_0x339f87(0x0,_0x3d9de0['ICommandService']),_0x339f87(0x1,_0xd5c096[_0x49f8ca(0xa8)])],_0x2852cc);var _0x1ef390=Object['defineProperty'],_0x26f165=Object[_0x49f8ca(0xe4)],_0x29da8c=(_0x964808,_0x343b66,_0x17301b)=>_0x343b66 in _0x964808?_0x1ef390(_0x964808,_0x343b66,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x17301b}):_0x964808[_0x343b66]=_0x17301b,_0x29ea1d=(_0x1caa31,_0x28bced,_0x1bc9c7,_0x25b73a)=>{const _0x297b8a=_0x49f8ca;for(var _0x55dbb3=_0x25b73a>0x1?void 0x0:_0x25b73a?_0x26f165(_0x28bced,_0x1bc9c7):_0x28bced,_0xd92924=_0x1caa31[_0x297b8a(0xc1)]-0x1,_0x2a1f61;_0xd92924>=0x0;_0xd92924--)(_0x2a1f61=_0x1caa31[_0xd92924])&&(_0x55dbb3=_0x2a1f61(_0x55dbb3)||_0x55dbb3);return _0x55dbb3;},_0x5a4710=(_0x2b81c9,_0x5d44f9)=>(_0x251032,_0x2cf5e8)=>_0x5d44f9(_0x251032,_0x2cf5e8,_0x2b81c9),_0x1a3c75=(_0x30c832,_0x548410,_0x104a01)=>_0x29da8c(_0x30c832,typeof _0x548410!='symbol'?_0x548410+'':_0x548410,_0x104a01);const _0x27940b=_0x49f8ca(0xc2);_0x3ec282[_0x49f8ca(0xdf)]=class extends _0x3d9de0[_0x49f8ca(0xc7)]{constructor(_0x126568=_0x41af74,_0x2d12c5,_0x48d9fa){const _0x2e0df4=_0x49f8ca;super(),this[_0x2e0df4(0xdd)]=_0x126568,this[_0x2e0df4(0xd6)]=_0x2d12c5,this[_0x2e0df4(0xa3)]=_0x48d9fa;const {menu:_0x313751,..._0x175dac}=_0x3d9de0[_0x2e0df4(0xd5)]({},_0x41af74,this[_0x2e0df4(0xdd)]);_0x313751&&this['_configService'][_0x2e0df4(0xa2)]('menu',_0x313751,{'merge':!0x0}),this[_0x2e0df4(0xa3)][_0x2e0df4(0xa2)](_0xbecb16,_0x175dac);}[_0x49f8ca(0xbf)](){[[_0x2852cc]]['forEach'](_0x301d55=>this['_injector']['add'](_0x301d55));}['onReady'](){const _0x112f84=_0x49f8ca;this[_0x112f84(0xd6)][_0x112f84(0x9e)](_0x2852cc);}},_0x1a3c75(_0x3ec282[_0x49f8ca(0xdf)],_0x49f8ca(0xa4),_0x27940b),_0x1a3c75(_0x3ec282['UniverSheetsExchangeClientPlugin'],'type',_0x3d9de0['UniverInstanceType']['UNIVER_SHEET']),_0x3ec282[_0x49f8ca(0xdf)]=_0x29ea1d([_0x3d9de0[_0x49f8ca(0xa0)](_0x6f0bb0[_0x49f8ca(0xc4)]),_0x5a4710(0x1,_0x3d9de0[_0x49f8ca(0xcc)](_0x3d9de0[_0x49f8ca(0xaf)])),_0x5a4710(0x2,_0x3d9de0[_0x49f8ca(0xb0)])],_0x3ec282[_0x49f8ca(0xdf)]),_0x3ec282[_0x49f8ca(0xe8)]=_0x3df6e7,_0x3ec282[_0x49f8ca(0xe6)]=_0x1ed973,Object[_0x49f8ca(0xb2)](_0x3ec282,Symbol[_0x49f8ca(0xbc)],{'value':_0x49f8ca(0xd1)});}));
1
+ function _0x1a00(_0x35f861,_0x50db1c){const _0x1e6fdb=_0x1e6f();return _0x1a00=function(_0x1a00cb,_0x1ea19f){_0x1a00cb=_0x1a00cb-0x1a8;let _0xfd7019=_0x1e6fdb[_0x1a00cb];return _0xfd7019;},_0x1a00(_0x35f861,_0x50db1c);}(function(_0x400648,_0x521fe3){const _0x5e0037=_0x1a00,_0x916ece=_0x400648();while(!![]){try{const _0x1b3127=parseInt(_0x5e0037(0x1df))/0x1+-parseInt(_0x5e0037(0x1e7))/0x2*(parseInt(_0x5e0037(0x1db))/0x3)+-parseInt(_0x5e0037(0x1f1))/0x4*(parseInt(_0x5e0037(0x1af))/0x5)+parseInt(_0x5e0037(0x1d3))/0x6+-parseInt(_0x5e0037(0x1b2))/0x7+-parseInt(_0x5e0037(0x1c7))/0x8*(parseInt(_0x5e0037(0x1b1))/0x9)+parseInt(_0x5e0037(0x1d6))/0xa*(parseInt(_0x5e0037(0x1c6))/0xb);if(_0x1b3127===_0x521fe3)break;else _0x916ece['push'](_0x916ece['shift']());}catch(_0x27178e){_0x916ece['push'](_0x916ece['shift']());}}}(_0x1e6f,0x6ce84),function(_0x5cb195,_0x2b55e5){const _0x15845a=_0x1a00;typeof exports==_0x15845a(0x1ec)&&typeof module<'u'?_0x2b55e5(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x15845a(0x1e3)&&define[_0x15845a(0x1aa)]?define([_0x15845a(0x1ef),'@univerjs-pro/exchange-client','@univerjs/core','@univerjs/ui',_0x15845a(0x1c2),_0x15845a(0x1c3)],_0x2b55e5):(_0x5cb195=typeof globalThis<'u'?globalThis:_0x5cb195||self,_0x2b55e5(_0x5cb195[_0x15845a(0x1ad)]={},_0x5cb195[_0x15845a(0x1f5)],_0x5cb195['UniverCore'],_0x5cb195[_0x15845a(0x1e0)],_0x5cb195[_0x15845a(0x1b0)],_0x5cb195[_0x15845a(0x1d1)]));}(this,function(_0x29c301,_0x5d7f11,_0x476d6b,_0x235da8,_0xbcd8d9,_0x5a073b){'use strict';const _0xec36ab=_0x1a00;const _0x43ac41={'id':_0xec36ab(0x1c5),'type':_0x476d6b[_0xec36ab(0x1d2)]['OPERATION'],'handler':async _0x2e4fd9=>{const _0x2c0a0b=_0xec36ab,_0x5f5e0b=_0x2e4fd9[_0x2c0a0b(0x1d5)](_0x5d7f11[_0x2c0a0b(0x1ba)]);return new URLSearchParams(location[_0x2c0a0b(0x1f6)])[_0x2c0a0b(0x1d5)](_0x2c0a0b(0x1b8))?_0x5f5e0b[_0x2c0a0b(0x1e6)]():_0x5f5e0b['importXLSXToSnapshot'](),!0x0;}},_0x553d44={'id':_0xec36ab(0x1cb),'type':_0x476d6b['CommandType'][_0xec36ab(0x1be)],'handler':async _0x2c302b=>{const _0xeff2d=_0xec36ab,_0xdac9e4=_0x2c302b[_0xeff2d(0x1d5)](_0x5d7f11[_0xeff2d(0x1ba)]);return new URLSearchParams(location[_0xeff2d(0x1f6)])[_0xeff2d(0x1d5)](_0xeff2d(0x1b8))?_0xdac9e4[_0xeff2d(0x1bb)]():_0xdac9e4[_0xeff2d(0x1ac)](),!0x0;}},_0x3c3bde=_0xec36ab(0x1ca),_0x53b716={},_0x22b455=_0xec36ab(0x1e2);function _0x4863b1(_0x18b3fd){const _0xae99c3=_0xec36ab;return{'id':_0x22b455,'type':_0x235da8[_0xae99c3(0x1da)][_0xae99c3(0x1d0)],'icon':_0xae99c3(0x1a9),'tooltip':'exchange.file','hidden$':_0x235da8[_0xae99c3(0x1cf)](_0x18b3fd,_0x476d6b[_0xae99c3(0x1ed)][_0xae99c3(0x1eb)]),'disabled$':_0x5a073b['getCurrentRangeDisable$'](_0x18b3fd,{'workbookTypes':[_0xbcd8d9[_0xae99c3(0x1b6)]]})};}function _0x3e4e56(){const _0x3e2625=_0xec36ab;return{'id':_0x43ac41['id'],'type':_0x235da8['MenuItemType'][_0x3e2625(0x1b7)],'title':'exchange.upload','icon':'FolderIcon'};}function _0x2b531b(){const _0x4af0f7=_0xec36ab;return{'id':_0x553d44['id'],'type':_0x235da8[_0x4af0f7(0x1da)][_0x4af0f7(0x1b7)],'title':_0x4af0f7(0x1c1),'icon':_0x4af0f7(0x1b9)};}const _0x1be456={[_0x235da8[_0xec36ab(0x1e9)]['OTHERS']]:{[_0x22b455]:{'order':0.3,'menuItemFactory':_0x4863b1,[_0x43ac41['id']]:{'order':0x0,'menuItemFactory':_0x3e4e56},[_0x553d44['id']]:{'order':0x1,'menuItemFactory':_0x2b531b}}}};var _0x1fd5b4=Object[_0xec36ab(0x1f0)],_0x2730f0=(_0x1daf45,_0x17b680,_0x189298,_0x3f4c48)=>{const _0xae2e4a=_0xec36ab;for(var _0x34053e=_0x3f4c48>0x1?void 0x0:_0x3f4c48?_0x1fd5b4(_0x17b680,_0x189298):_0x17b680,_0x21db45=_0x1daf45[_0xae2e4a(0x1ab)]-0x1,_0x1f9abf;_0x21db45>=0x0;_0x21db45--)(_0x1f9abf=_0x1daf45[_0x21db45])&&(_0x34053e=_0x1f9abf(_0x34053e)||_0x34053e);return _0x34053e;},_0x3cf4f6=(_0x260761,_0x19c26e)=>(_0x299c2d,_0x50566f)=>_0x19c26e(_0x299c2d,_0x50566f,_0x260761);let _0x39d126=class extends _0x476d6b[_0xec36ab(0x1cd)]{constructor(_0x3a5368,_0x41622a){const _0x15b0f9=_0xec36ab;super(),this['_commandService']=_0x3a5368,this[_0x15b0f9(0x1ea)]=_0x41622a,this[_0x15b0f9(0x1e1)](),this[_0x15b0f9(0x1d9)]();}[_0xec36ab(0x1e1)](){[_0x43ac41,_0x553d44]['forEach'](_0x1c59b5=>{const _0x25d1fb=_0x1a00;this[_0x25d1fb(0x1c8)](this[_0x25d1fb(0x1b3)][_0x25d1fb(0x1d7)](_0x1c59b5));});}['_initMenus'](){const _0x5b7c40=_0xec36ab;this[_0x5b7c40(0x1ea)][_0x5b7c40(0x1c0)](_0x1be456);}};_0x39d126=_0x2730f0([_0x3cf4f6(0x0,_0x476d6b[_0xec36ab(0x1ee)]),_0x3cf4f6(0x1,_0x235da8[_0xec36ab(0x1a8)])],_0x39d126);var _0x35c134=Object['defineProperty'],_0x485346=Object[_0xec36ab(0x1f0)],_0x398cd0=(_0x11d88c,_0x4c20b7,_0x20f8b3)=>_0x4c20b7 in _0x11d88c?_0x35c134(_0x11d88c,_0x4c20b7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20f8b3}):_0x11d88c[_0x4c20b7]=_0x20f8b3,_0x3cfbc8=(_0x2328a7,_0x25a2ac,_0x4d6637,_0x4a5db7)=>{for(var _0x4a7b3f=_0x4a5db7>0x1?void 0x0:_0x4a5db7?_0x485346(_0x25a2ac,_0x4d6637):_0x25a2ac,_0x401b52=_0x2328a7['length']-0x1,_0x2e45d2;_0x401b52>=0x0;_0x401b52--)(_0x2e45d2=_0x2328a7[_0x401b52])&&(_0x4a7b3f=_0x2e45d2(_0x4a7b3f)||_0x4a7b3f);return _0x4a7b3f;},_0x151ac4=(_0x3e6fdb,_0x2e17ff)=>(_0x3f7bd0,_0x274890)=>_0x2e17ff(_0x3f7bd0,_0x274890,_0x3e6fdb),_0x35a78c=(_0x21fea6,_0xe36639,_0x363c66)=>_0x398cd0(_0x21fea6,typeof _0xe36639!=_0xec36ab(0x1e4)?_0xe36639+'':_0xe36639,_0x363c66);const _0x5ee714='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x29c301['UniverSheetsExchangeClientPlugin']=class extends _0x476d6b[_0xec36ab(0x1c9)]{constructor(_0x4006e3=_0x53b716,_0x5b2d70,_0x444db3){const _0x5470e9=_0xec36ab;super(),this['_config']=_0x4006e3,this[_0x5470e9(0x1bf)]=_0x5b2d70,this[_0x5470e9(0x1ce)]=_0x444db3;const {menu:_0x4ac744,..._0x3310a9}=_0x476d6b['merge']({},_0x53b716,this[_0x5470e9(0x1d8)]);_0x4ac744&&this[_0x5470e9(0x1ce)][_0x5470e9(0x1d4)](_0x5470e9(0x1ae),_0x4ac744,{'merge':!0x0}),this[_0x5470e9(0x1ce)]['setConfig'](_0x3c3bde,_0x3310a9);}[_0xec36ab(0x1f3)](){const _0x555e13=_0xec36ab;[[_0x39d126]][_0x555e13(0x1b5)](_0x1758a2=>this['_injector'][_0x555e13(0x1f2)](_0x1758a2));}[_0xec36ab(0x1cc)](){const _0x5831ec=_0xec36ab;this['_injector'][_0x5831ec(0x1d5)](_0x39d126);}},_0x35a78c(_0x29c301[_0xec36ab(0x1b4)],'pluginName',_0x5ee714),_0x35a78c(_0x29c301['UniverSheetsExchangeClientPlugin'],_0xec36ab(0x1bc),_0x476d6b['UniverInstanceType']['UNIVER_SHEET']),_0x29c301[_0xec36ab(0x1b4)]=_0x3cfbc8([_0x476d6b['DependentOn'](_0x5d7f11[_0xec36ab(0x1dc)]),_0x151ac4(0x1,_0x476d6b[_0xec36ab(0x1e8)](_0x476d6b[_0xec36ab(0x1e5)])),_0x151ac4(0x2,_0x476d6b['IConfigService'])],_0x29c301[_0xec36ab(0x1b4)]),_0x29c301[_0xec36ab(0x1c4)]=_0x553d44,_0x29c301[_0xec36ab(0x1bd)]=_0x43ac41,Object[_0xec36ab(0x1de)](_0x29c301,Symbol[_0xec36ab(0x1dd)],{'value':_0xec36ab(0x1f4)});}));function _0x1e6f(){const _0x3f503d=['exportXLSXByUnitId','type','ImportXLSXOperation','OPERATION','_injector','mergeMenu','exchange.download','@univerjs/sheets','@univerjs/sheets-ui','ExportXLSXOperation','exchange-client.operation.import-xlsx','3168gohLke','2027504Hkcnsp','disposeWithMe','Plugin','sheets-exchange-client.config','exchange-client.operation.export-xlsx','onReady','Disposable','_configService','getMenuHiddenObservable','SUBITEMS','UniverSheetsUi','CommandType','5009916cHiNvY','setConfig','get','67030CJxnOn','registerCommand','_config','_initMenus','MenuItemType','24IrYAUc','UniverExchangeClientPlugin','toStringTag','defineProperty','117652wfYynP','UniverUi','_initCommands','sheets-exchange-client.operation.exchange','function','symbol','Injector','importXLSXToUnitId','163862jfnqza','Inject','RibbonStartGroup','_menuManagerService','UNIVER_SHEET','object','UniverInstanceType','ICommandService','exports','getOwnPropertyDescriptor','2930524ROpdLp','add','onStarting','Module','UniverProExchangeClient','search','IMenuManagerService','DirectExportIcon','amd','length','exportXLSXBySnapshot','UniverProSheetsExchangeClient','menu','5yUqMPe','UniverSheets','18JQGYjf','3794441nXOSSy','_commandService','UniverSheetsExchangeClientPlugin','forEach','WorkbookExportPermission','BUTTON','unit','ExportIcon','IExchangeOperateService'];_0x1e6f=function(){return _0x3f503d;};return _0x1e6f();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.12.2-experimental.20251129-0fa20cd",
3
+ "version": "0.12.2-experimental.20251202-45172c6",
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.12.2-experimental.20251129-0fa20cd",
46
- "@univerjs/core": "0.12.2-experimental.20251129-0fa20cd",
47
- "@univerjs/sheets": "0.12.2-experimental.20251129-0fa20cd",
48
- "@univerjs/ui": "0.12.2-experimental.20251129-0fa20cd",
49
- "@univerjs/sheets-ui": "0.12.2-experimental.20251129-0fa20cd"
45
+ "@univerjs/core": "0.12.2-experimental.20251202-45172c6",
46
+ "@univerjs-pro/exchange-client": "0.12.2-experimental.20251202-45172c6",
47
+ "@univerjs/sheets": "0.12.2-experimental.20251202-45172c6",
48
+ "@univerjs/sheets-ui": "0.12.2-experimental.20251202-45172c6",
49
+ "@univerjs/ui": "0.12.2-experimental.20251202-45172c6"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",