@univerjs-pro/sheets-exchange-client 0.10.12-nightly.202510251119 → 0.10.13

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 _0x1961ff=_0x523c;(function(_0x464b15,_0x26d6aa){const _0x578902=_0x523c,_0x1909c9=_0x464b15();while(!![]){try{const _0x24cd4b=-parseInt(_0x578902(0x126))/0x1+parseInt(_0x578902(0x122))/0x2+parseInt(_0x578902(0x13a))/0x3*(parseInt(_0x578902(0x110))/0x4)+parseInt(_0x578902(0x149))/0x5*(-parseInt(_0x578902(0x11c))/0x6)+parseInt(_0x578902(0x117))/0x7+-parseInt(_0x578902(0x14b))/0x8+-parseInt(_0x578902(0x13b))/0x9*(-parseInt(_0x578902(0x150))/0xa);if(_0x24cd4b===_0x26d6aa)break;else _0x1909c9['push'](_0x1909c9['shift']());}catch(_0x1ec76d){_0x1909c9['push'](_0x1909c9['shift']());}}}(_0x559d,0x69350));Object[_0x1961ff(0x134)](exports,Symbol[_0x1961ff(0x143)],{'value':_0x1961ff(0x113)});function _0x523c(_0x4ea519,_0x4bd0f7){const _0x559de2=_0x559d();return _0x523c=function(_0x523cf8,_0x29b86f){_0x523cf8=_0x523cf8-0x10d;let _0x2b23d1=_0x559de2[_0x523cf8];return _0x2b23d1;},_0x523c(_0x4ea519,_0x4bd0f7);}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':_0x1961ff(0x11f),'type':i['CommandType'][_0x1961ff(0x141)],'handler':async _0x5c1e98=>{const _0x15a681=_0x1961ff,_0x22dc3f=_0x5c1e98['get'](g['IExchangeOperateService']);return new URLSearchParams(location[_0x15a681(0x11e)])['get'](_0x15a681(0x112))?_0x22dc3f[_0x15a681(0x14e)]():_0x22dc3f['importXLSXToSnapshot'](),!0x0;}},p={'id':_0x1961ff(0x14d),'type':i[_0x1961ff(0x137)][_0x1961ff(0x141)],'handler':async _0x8f0bbd=>{const _0x2f0040=_0x1961ff,_0xe7bfe0=_0x8f0bbd['get'](g['IExchangeOperateService']);return new URLSearchParams(location['search'])['get']('unit')?_0xe7bfe0[_0x2f0040(0x116)]():_0xe7bfe0[_0x2f0040(0x131)](),!0x0;}},v=_0x1961ff(0x142),h={},S=_0x1961ff(0x111);function x(_0x3d2814){const _0x56e5b3=_0x1961ff;return{'id':S,'type':c['MenuItemType']['SUBITEMS'],'icon':_0x56e5b3(0x140),'tooltip':'exchange.file','hidden$':c[_0x56e5b3(0x12b)](_0x3d2814,i[_0x56e5b3(0x123)]['UNIVER_SHEET']),'disabled$':I[_0x56e5b3(0x13e)](_0x3d2814,{'workbookTypes':[_[_0x56e5b3(0x12c)]]})};}function P(){const _0x6902de=_0x1961ff;return{'id':l['id'],'type':c[_0x6902de(0x10d)]['BUTTON'],'title':_0x6902de(0x115),'icon':_0x6902de(0x120)};}function C(){const _0x24eeb7=_0x1961ff;return{'id':p['id'],'type':c[_0x24eeb7(0x10d)][_0x24eeb7(0x10f)],'title':_0x24eeb7(0x14a),'icon':_0x24eeb7(0x147)};}const f={[c[_0x1961ff(0x12a)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x1a2b33,_0x43acdb,_0x3ce580,_0x465036)=>{for(var _0x28f449=_0x465036>0x1?void 0x0:_0x465036?T(_0x43acdb,_0x3ce580):_0x43acdb,_0x1f27c7=_0x1a2b33['length']-0x1,_0x1b1610;_0x1f27c7>=0x0;_0x1f27c7--)(_0x1b1610=_0x1a2b33[_0x1f27c7])&&(_0x28f449=_0x1b1610(_0x28f449)||_0x28f449);return _0x28f449;},m=(_0x1ce564,_0x269aca)=>(_0x3f8c38,_0x3286e1)=>_0x269aca(_0x3f8c38,_0x3286e1,_0x1ce564);function _0x559d(){const _0x19b484=['exchange-client.operation.export-xlsx','importXLSXToUnitId','_config','215100ToZVVn','IConfigService','MenuItemType','add','BUTTON','1256Tmiqgp','sheets-exchange-client.operation.exchange','unit','Module','SHEET_EXCHANGE_CLIENT_PLUGIN','exchange.upload','exportXLSXByUnitId','3109470sQpecu','_commandService','setConfig','onStarting','UniverExchangeClientPlugin','6CAcsfl','menu','search','exchange-client.operation.import-xlsx','FolderIcon','mergeMenu','1478636ISKxwd','UniverInstanceType','get','type','786076ZgcjTD','Inject','merge','Injector','RibbonStartGroup','getMenuHiddenObservable','WorkbookExportPermission','_injector','Plugin','ICommandService','length','exportXLSXBySnapshot','registerCommand','_initCommands','defineProperty','ImportXLSXOperation','onReady','CommandType','ExportXLSXOperation','_menuManagerService','2406GCLQSJ','387lZFQhh','_configService','UniverSheetsExchangeClientPlugin','getCurrentRangeDisable$','_initMenus','DirectExportIcon','OPERATION','sheets-exchange-client.config','toStringTag','forEach','Disposable','getOwnPropertyDescriptor','ExportIcon','UNIVER_SHEET','1788785BZTGCq','exchange.download','6284200KJzgLC','DependentOn'];_0x559d=function(){return _0x19b484;};return _0x559d();}let u=class extends i[_0x1961ff(0x145)]{constructor(_0x5e6d1f,_0x5b1c4b){const _0x295a30=_0x1961ff;super(),this['_commandService']=_0x5e6d1f,this[_0x295a30(0x139)]=_0x5b1c4b,this[_0x295a30(0x133)](),this[_0x295a30(0x13f)]();}[_0x1961ff(0x133)](){const _0x2cee67=_0x1961ff;[l,p][_0x2cee67(0x144)](_0x2f9f40=>{const _0x356a8c=_0x2cee67;this['disposeWithMe'](this[_0x356a8c(0x118)][_0x356a8c(0x132)](_0x2f9f40));});}[_0x1961ff(0x13f)](){const _0x56abd7=_0x1961ff;this[_0x56abd7(0x139)][_0x56abd7(0x121)](f);}};u=y([m(0x0,i[_0x1961ff(0x12f)]),m(0x1,c['IMenuManagerService'])],u);var O=Object['defineProperty'],U=Object[_0x1961ff(0x146)],X=(_0x13514f,_0x36769e,_0x1d8a7d)=>_0x36769e in _0x13514f?O(_0x13514f,_0x36769e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d8a7d}):_0x13514f[_0x36769e]=_0x1d8a7d,N=(_0x511968,_0x5b24b1,_0x2d8194,_0x1f6352)=>{const _0x16495a=_0x1961ff;for(var _0x18b745=_0x1f6352>0x1?void 0x0:_0x1f6352?U(_0x5b24b1,_0x2d8194):_0x5b24b1,_0x17d867=_0x511968[_0x16495a(0x130)]-0x1,_0x4b841d;_0x17d867>=0x0;_0x17d867--)(_0x4b841d=_0x511968[_0x17d867])&&(_0x18b745=_0x4b841d(_0x18b745)||_0x18b745);return _0x18b745;},d=(_0x4558b1,_0xaa50b9)=>(_0x17cf37,_0x241326)=>_0xaa50b9(_0x17cf37,_0x241326,_0x4558b1),E=(_0x1fb3e5,_0x53f99f,_0x301799)=>X(_0x1fb3e5,typeof _0x53f99f!='symbol'?_0x53f99f+'':_0x53f99f,_0x301799);const L=_0x1961ff(0x114);exports[_0x1961ff(0x13d)]=class extends i[_0x1961ff(0x12e)]{constructor(_0x584731=h,_0x4eb1cb,_0x114339){const _0x24cf0c=_0x1961ff;super(),this[_0x24cf0c(0x14f)]=_0x584731,this['_injector']=_0x4eb1cb,this[_0x24cf0c(0x13c)]=_0x114339;const {menu:_0x4cd925,..._0x5226b5}=i[_0x24cf0c(0x128)]({},h,this[_0x24cf0c(0x14f)]);_0x4cd925&&this[_0x24cf0c(0x13c)][_0x24cf0c(0x119)](_0x24cf0c(0x11d),_0x4cd925,{'merge':!0x0}),this['_configService'][_0x24cf0c(0x119)](v,_0x5226b5);}[_0x1961ff(0x11a)](){const _0x2796c3=_0x1961ff;[[u]][_0x2796c3(0x144)](_0x31055c=>this['_injector'][_0x2796c3(0x10e)](_0x31055c));}[_0x1961ff(0x136)](){const _0x3cc196=_0x1961ff;this[_0x3cc196(0x12d)][_0x3cc196(0x124)](u);}},E(exports[_0x1961ff(0x13d)],'pluginName',L),E(exports[_0x1961ff(0x13d)],_0x1961ff(0x125),i[_0x1961ff(0x123)][_0x1961ff(0x148)]),exports[_0x1961ff(0x13d)]=N([i[_0x1961ff(0x14c)](g[_0x1961ff(0x11b)]),d(0x1,i[_0x1961ff(0x127)](i[_0x1961ff(0x129)])),d(0x2,i[_0x1961ff(0x151)])],exports[_0x1961ff(0x13d)]),exports[_0x1961ff(0x138)]=p,exports[_0x1961ff(0x135)]=l;
1
+ 'use strict';const _0x58f09e=_0xbd5c;(function(_0x329f22,_0x509ceb){const _0x1f2544=_0xbd5c,_0x1c16ec=_0x329f22();while(!![]){try{const _0x43e617=-parseInt(_0x1f2544(0x194))/0x1+parseInt(_0x1f2544(0x171))/0x2*(parseInt(_0x1f2544(0x169))/0x3)+-parseInt(_0x1f2544(0x15a))/0x4*(-parseInt(_0x1f2544(0x172))/0x5)+-parseInt(_0x1f2544(0x18a))/0x6*(-parseInt(_0x1f2544(0x163))/0x7)+parseInt(_0x1f2544(0x197))/0x8+parseInt(_0x1f2544(0x16b))/0x9*(parseInt(_0x1f2544(0x168))/0xa)+-parseInt(_0x1f2544(0x16d))/0xb*(parseInt(_0x1f2544(0x18d))/0xc);if(_0x43e617===_0x509ceb)break;else _0x1c16ec['push'](_0x1c16ec['shift']());}catch(_0x501f92){_0x1c16ec['push'](_0x1c16ec['shift']());}}}(_0x144b,0xe31a4));Object[_0x58f09e(0x157)](exports,Symbol[_0x58f09e(0x182)],{'value':'Module'});function _0x144b(){const _0x55ae7a=['15JTHoAs','UNIVER_SHEET','9FwMFPl','_injector','28765385rkhBDe','menu','search','_configService','124410XQTGBs','15545JcpxEu','mergeMenu','forEach','OTHERS','SUBITEMS','ExportXLSXOperation','_config','BUTTON','unit','exchange-client.operation.export-xlsx','onReady','SHEET_EXCHANGE_CLIENT_PLUGIN','ImportXLSXOperation','OPERATION','Inject','_initMenus','toStringTag','UniverExchangeClientPlugin','Disposable','getMenuHiddenObservable','get','exchange.file','sheets-exchange-client.operation.exchange','ICommandService','120090vkbOYg','UniverSheetsExchangeClientPlugin','DependentOn','12ZxSxSd','pluginName','IExchangeOperateService','_initCommands','symbol','MenuItemType','UniverInstanceType','733726FSSxxe','disposeWithMe','CommandType','9942168DdjzTz','IConfigService','exchange.download','_menuManagerService','defineProperty','exportXLSXBySnapshot','getOwnPropertyDescriptor','1844IJwFSL','FolderIcon','length','importXLSXToUnitId','Injector','_commandService','onStarting','add','setConfig','427kWtYMr','WorkbookExportPermission','sheets-exchange-client.config','DirectExportIcon','merge','710130LKUHFq'];_0x144b=function(){return _0x55ae7a;};return _0x144b();}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[_0x58f09e(0x196)][_0x58f09e(0x17f)],'handler':async _0x2cfc5b=>{const _0x32f8ca=_0x58f09e,_0x49e23e=_0x2cfc5b['get'](g[_0x32f8ca(0x18f)]);return new URLSearchParams(location['search'])['get'](_0x32f8ca(0x17a))?_0x49e23e[_0x32f8ca(0x15d)]():_0x49e23e['importXLSXToSnapshot'](),!0x0;}},p={'id':_0x58f09e(0x17b),'type':i[_0x58f09e(0x196)][_0x58f09e(0x17f)],'handler':async _0x4b9291=>{const _0xdde954=_0x58f09e,_0x4d855d=_0x4b9291[_0xdde954(0x186)](g[_0xdde954(0x18f)]);return new URLSearchParams(location[_0xdde954(0x16f)])['get'](_0xdde954(0x17a))?_0x4d855d['exportXLSXByUnitId']():_0x4d855d[_0xdde954(0x158)](),!0x0;}},v=_0x58f09e(0x165),h={},S=_0x58f09e(0x188);function x(_0x4b9e6a){const _0x1c9288=_0x58f09e;return{'id':S,'type':c[_0x1c9288(0x192)][_0x1c9288(0x176)],'icon':_0x1c9288(0x166),'tooltip':_0x1c9288(0x187),'hidden$':c[_0x1c9288(0x185)](_0x4b9e6a,i['UniverInstanceType'][_0x1c9288(0x16a)]),'disabled$':I['getCurrentRangeDisable$'](_0x4b9e6a,{'workbookTypes':[_[_0x1c9288(0x164)]]})};}function P(){const _0x5c7f73=_0x58f09e;return{'id':l['id'],'type':c[_0x5c7f73(0x192)]['BUTTON'],'title':'exchange.upload','icon':_0x5c7f73(0x15b)};}function C(){const _0x501ddb=_0x58f09e;return{'id':p['id'],'type':c['MenuItemType'][_0x501ddb(0x179)],'title':_0x501ddb(0x155),'icon':'ExportIcon'};}const f={[c['RibbonStartGroup'][_0x58f09e(0x175)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x58f09e(0x159)],y=(_0x100584,_0x41305a,_0x9f2d21,_0x1266d5)=>{const _0x3ac986=_0x58f09e;for(var _0x475511=_0x1266d5>0x1?void 0x0:_0x1266d5?T(_0x41305a,_0x9f2d21):_0x41305a,_0x5a2e51=_0x100584[_0x3ac986(0x15c)]-0x1,_0xfc25d2;_0x5a2e51>=0x0;_0x5a2e51--)(_0xfc25d2=_0x100584[_0x5a2e51])&&(_0x475511=_0xfc25d2(_0x475511)||_0x475511);return _0x475511;},m=(_0x3d1102,_0x144153)=>(_0x289905,_0x39f04b)=>_0x144153(_0x289905,_0x39f04b,_0x3d1102);let u=class extends i[_0x58f09e(0x184)]{constructor(_0x5e8a1f,_0x400995){const _0x1abeb1=_0x58f09e;super(),this[_0x1abeb1(0x15f)]=_0x5e8a1f,this[_0x1abeb1(0x156)]=_0x400995,this[_0x1abeb1(0x190)](),this['_initMenus']();}['_initCommands'](){const _0x3a1bb0=_0x58f09e;[l,p][_0x3a1bb0(0x174)](_0x4315a2=>{const _0x5d1ca3=_0x3a1bb0;this[_0x5d1ca3(0x195)](this[_0x5d1ca3(0x15f)]['registerCommand'](_0x4315a2));});}[_0x58f09e(0x181)](){const _0x472f5e=_0x58f09e;this[_0x472f5e(0x156)][_0x472f5e(0x173)](f);}};function _0xbd5c(_0x3f75c4,_0x268b5c){const _0x144b7a=_0x144b();return _0xbd5c=function(_0xbd5c20,_0x4e6326){_0xbd5c20=_0xbd5c20-0x155;let _0x3b35da=_0x144b7a[_0xbd5c20];return _0x3b35da;},_0xbd5c(_0x3f75c4,_0x268b5c);}u=y([m(0x0,i[_0x58f09e(0x189)]),m(0x1,c['IMenuManagerService'])],u);var O=Object[_0x58f09e(0x157)],U=Object[_0x58f09e(0x159)],X=(_0x4e50a0,_0x4602fb,_0x2e8220)=>_0x4602fb in _0x4e50a0?O(_0x4e50a0,_0x4602fb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2e8220}):_0x4e50a0[_0x4602fb]=_0x2e8220,N=(_0x23465c,_0x5aebd3,_0x4813a9,_0x15b8d4)=>{const _0x30a1c9=_0x58f09e;for(var _0x15b75b=_0x15b8d4>0x1?void 0x0:_0x15b8d4?U(_0x5aebd3,_0x4813a9):_0x5aebd3,_0x1880c9=_0x23465c[_0x30a1c9(0x15c)]-0x1,_0x177927;_0x1880c9>=0x0;_0x1880c9--)(_0x177927=_0x23465c[_0x1880c9])&&(_0x15b75b=_0x177927(_0x15b75b)||_0x15b75b);return _0x15b75b;},d=(_0x1364a3,_0x6ee38d)=>(_0x552183,_0x44f473)=>_0x6ee38d(_0x552183,_0x44f473,_0x1364a3),E=(_0x474ea1,_0x340f37,_0x43ed8d)=>X(_0x474ea1,typeof _0x340f37!=_0x58f09e(0x191)?_0x340f37+'':_0x340f37,_0x43ed8d);const L=_0x58f09e(0x17d);exports[_0x58f09e(0x18b)]=class extends i['Plugin']{constructor(_0x5409b8=h,_0x4962c7,_0x3e8d57){const _0x38670e=_0x58f09e;super(),this[_0x38670e(0x178)]=_0x5409b8,this[_0x38670e(0x16c)]=_0x4962c7,this[_0x38670e(0x170)]=_0x3e8d57;const {menu:_0x470019,..._0x597ebd}=i[_0x38670e(0x167)]({},h,this[_0x38670e(0x178)]);_0x470019&&this['_configService'][_0x38670e(0x162)](_0x38670e(0x16e),_0x470019,{'merge':!0x0}),this[_0x38670e(0x170)][_0x38670e(0x162)](v,_0x597ebd);}[_0x58f09e(0x160)](){const _0x562f04=_0x58f09e;[[u]][_0x562f04(0x174)](_0x529389=>this[_0x562f04(0x16c)][_0x562f04(0x161)](_0x529389));}[_0x58f09e(0x17c)](){const _0x2ef702=_0x58f09e;this['_injector'][_0x2ef702(0x186)](u);}},E(exports[_0x58f09e(0x18b)],_0x58f09e(0x18e),L),E(exports[_0x58f09e(0x18b)],'type',i[_0x58f09e(0x193)][_0x58f09e(0x16a)]),exports[_0x58f09e(0x18b)]=N([i[_0x58f09e(0x18c)](g[_0x58f09e(0x183)]),d(0x1,i[_0x58f09e(0x180)](i[_0x58f09e(0x15e)])),d(0x2,i[_0x58f09e(0x198)])],exports[_0x58f09e(0x18b)]),exports[_0x58f09e(0x177)]=p,exports[_0x58f09e(0x17e)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1bf2bf=_0x4978;(function(_0x2aecd9,_0x5026ad){const _0x306c44=_0x4978,_0x4d7da7=_0x2aecd9();while(!![]){try{const _0x24c00c=-parseInt(_0x306c44(0x17e))/0x1+parseInt(_0x306c44(0x181))/0x2+-parseInt(_0x306c44(0x1a7))/0x3*(-parseInt(_0x306c44(0x178))/0x4)+parseInt(_0x306c44(0x196))/0x5*(parseInt(_0x306c44(0x198))/0x6)+parseInt(_0x306c44(0x1a3))/0x7*(parseInt(_0x306c44(0x19c))/0x8)+parseInt(_0x306c44(0x1a5))/0x9*(-parseInt(_0x306c44(0x19f))/0xa)+-parseInt(_0x306c44(0x179))/0xb*(parseInt(_0x306c44(0x193))/0xc);if(_0x24c00c===_0x5026ad)break;else _0x4d7da7['push'](_0x4d7da7['shift']());}catch(_0x2cf173){_0x4d7da7['push'](_0x4d7da7['shift']());}}}(_0x39d9,0x488ff));import{IExchangeOperateService as _0x9ca5c3,UniverExchangeClientPlugin as _0x4853ba}from'@univerjs-pro/exchange-client';import{CommandType as _0x284387,UniverInstanceType as _0x1c81b3,Disposable as _0x3b351e,ICommandService as _0x298c1b,DependentOn as _0x47143c,Inject as _0x5e964f,Injector as _0x32cc60,IConfigService as _0x273036,Plugin as _0x524aa4,merge as _0x407e03}from'@univerjs/core';import{MenuItemType as _0x36ef97,getMenuHiddenObservable as _0x2899da,RibbonStartGroup as _0x451e08,IMenuManagerService as _0x1452df}from'@univerjs/ui';function _0x4978(_0x418995,_0x121f41){const _0x39d9fd=_0x39d9();return _0x4978=function(_0x497847,_0x7701d3){_0x497847=_0x497847-0x174;let _0x250e2a=_0x39d9fd[_0x497847];return _0x250e2a;},_0x4978(_0x418995,_0x121f41);}import{WorkbookExportPermission as _0x2052a4}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x44462e}from'@univerjs/sheets-ui';const p={'id':_0x1bf2bf(0x19b),'type':_0x284387[_0x1bf2bf(0x18f)],'handler':async _0x3d1ba7=>{const _0x1f1cc3=_0x1bf2bf,_0x317832=_0x3d1ba7['get'](_0x9ca5c3);return new URLSearchParams(location[_0x1f1cc3(0x17c)])['get'](_0x1f1cc3(0x189))?_0x317832[_0x1f1cc3(0x18c)]():_0x317832[_0x1f1cc3(0x183)](),!0x0;}},u={'id':_0x1bf2bf(0x1a4),'type':_0x284387[_0x1bf2bf(0x18f)],'handler':async _0x5d43f7=>{const _0x107d04=_0x1bf2bf,_0x2ff54a=_0x5d43f7[_0x107d04(0x1a2)](_0x9ca5c3);return new URLSearchParams(location[_0x107d04(0x17c)])['get']('unit')?_0x2ff54a[_0x107d04(0x182)]():_0x2ff54a['exportXLSXBySnapshot'](),!0x0;}},H='sheets-exchange-client.config',l={},S=_0x1bf2bf(0x18a);function R(_0x38889d){const _0x1d45bd=_0x1bf2bf;return{'id':S,'type':_0x36ef97[_0x1d45bd(0x184)],'icon':_0x1d45bd(0x186),'tooltip':_0x1d45bd(0x180),'hidden$':_0x2899da(_0x38889d,_0x1c81b3[_0x1d45bd(0x190)]),'disabled$':_0x44462e(_0x38889d,{'workbookTypes':[_0x2052a4]})};}function w(){const _0x34d8a7=_0x1bf2bf;return{'id':p['id'],'type':_0x36ef97['BUTTON'],'title':'exchange.upload','icon':_0x34d8a7(0x185)};}function D(){const _0x7e2793=_0x1bf2bf;return{'id':u['id'],'type':_0x36ef97[_0x7e2793(0x18b)],'title':_0x7e2793(0x194),'icon':_0x7e2793(0x197)};}function _0x39d9(){const _0x25a0d3=['803ZXgouu','_menuManagerService','length','search','_injector','251416fMtbNT','_initMenus','exchange.file','137778hwlohS','exportXLSXByUnitId','importXLSXToSnapshot','SUBITEMS','FolderIcon','DirectExportIcon','symbol','_config','unit','sheets-exchange-client.operation.exchange','BUTTON','importXLSXToUnitId','add','OTHERS','OPERATION','UNIVER_SHEET','SHEET_EXCHANGE_CLIENT_PLUGIN','mergeMenu','20652WCkuSL','exchange.download','defineProperty','1333815ihTIYJ','ExportIcon','6rHUbKw','onReady','pluginName','exchange-client.operation.import-xlsx','16sNIiAE','onStarting','_configService','10kqgpMZ','getOwnPropertyDescriptor','_commandService','get','1346611vinYQX','exchange-client.operation.export-xlsx','3058974VQvvOH','type','440628YqqECU','forEach','disposeWithMe','_initCommands','setConfig','8GYXApD'];_0x39d9=function(){return _0x25a0d3;};return _0x39d9();}const F={[_0x451e08[_0x1bf2bf(0x18e)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0xe9f88e,_0x588a8b,_0x2e452c,_0x1c8307)=>{const _0x119c74=_0x1bf2bf;for(var _0x28e8c7=_0x1c8307>0x1?void 0x0:_0x1c8307?G(_0x588a8b,_0x2e452c):_0x588a8b,_0x5a70f7=_0xe9f88e[_0x119c74(0x17b)]-0x1,_0x2c5160;_0x5a70f7>=0x0;_0x5a70f7--)(_0x2c5160=_0xe9f88e[_0x5a70f7])&&(_0x28e8c7=_0x2c5160(_0x28e8c7)||_0x28e8c7);return _0x28e8c7;},d=(_0x29475b,_0x46b1ee)=>(_0x3cc58c,_0x54e178)=>_0x46b1ee(_0x3cc58c,_0x54e178,_0x29475b);let c=class extends _0x3b351e{constructor(_0x2f02b2,_0x1ee553){const _0x2c4148=_0x1bf2bf;super(),this[_0x2c4148(0x1a1)]=_0x2f02b2,this[_0x2c4148(0x17a)]=_0x1ee553,this[_0x2c4148(0x176)](),this[_0x2c4148(0x17f)]();}[_0x1bf2bf(0x176)](){const _0x1908ae=_0x1bf2bf;[p,u][_0x1908ae(0x174)](_0x209d97=>{const _0x18a27e=_0x1908ae;this[_0x18a27e(0x175)](this[_0x18a27e(0x1a1)]['registerCommand'](_0x209d97));});}[_0x1bf2bf(0x17f)](){const _0x302cba=_0x1bf2bf;this[_0x302cba(0x17a)][_0x302cba(0x192)](F);}};c=A([d(0x0,_0x298c1b),d(0x1,_0x1452df)],c);var j=Object[_0x1bf2bf(0x195)],B=Object[_0x1bf2bf(0x1a0)],$=(_0xb2373b,_0x2f2bc0,_0x355694)=>_0x2f2bc0 in _0xb2373b?j(_0xb2373b,_0x2f2bc0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x355694}):_0xb2373b[_0x2f2bc0]=_0x355694,V=(_0x4ec285,_0x1daf99,_0x5739a7,_0x467868)=>{for(var _0xbe4187=_0x467868>0x1?void 0x0:_0x467868?B(_0x1daf99,_0x5739a7):_0x1daf99,_0x5ec027=_0x4ec285['length']-0x1,_0x6dacb4;_0x5ec027>=0x0;_0x5ec027--)(_0x6dacb4=_0x4ec285[_0x5ec027])&&(_0xbe4187=_0x6dacb4(_0xbe4187)||_0xbe4187);return _0xbe4187;},_=(_0x5d0c50,_0x1b014)=>(_0x50eac4,_0x1eb3ad)=>_0x1b014(_0x50eac4,_0x1eb3ad,_0x5d0c50),I=(_0x2de09f,_0x3c37e5,_0x5c1ffb)=>$(_0x2de09f,typeof _0x3c37e5!=_0x1bf2bf(0x187)?_0x3c37e5+'':_0x3c37e5,_0x5c1ffb);const W=_0x1bf2bf(0x191);let s=class extends _0x524aa4{constructor(_0x295518=l,_0x1ddfc6,_0x351f69){const _0x455bcf=_0x1bf2bf;super(),this['_config']=_0x295518,this['_injector']=_0x1ddfc6,this[_0x455bcf(0x19e)]=_0x351f69;const {menu:_0x2a4f74,..._0x4b5d90}=_0x407e03({},l,this[_0x455bcf(0x188)]);_0x2a4f74&&this[_0x455bcf(0x19e)][_0x455bcf(0x177)]('menu',_0x2a4f74,{'merge':!0x0}),this['_configService'][_0x455bcf(0x177)](H,_0x4b5d90);}[_0x1bf2bf(0x19d)](){const _0x252564=_0x1bf2bf;[[c]][_0x252564(0x174)](_0x5dbb44=>this[_0x252564(0x17d)][_0x252564(0x18d)](_0x5dbb44));}[_0x1bf2bf(0x199)](){const _0x2bd023=_0x1bf2bf;this[_0x2bd023(0x17d)]['get'](c);}};I(s,_0x1bf2bf(0x19a),W),I(s,_0x1bf2bf(0x1a6),_0x1c81b3['UNIVER_SHEET']),s=V([_0x47143c(_0x4853ba),_(0x1,_0x5e964f(_0x32cc60)),_(0x2,_0x273036)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x2c45e2=_0x4693;(function(_0x4c9184,_0x4883c9){const _0x1ee40d=_0x4693,_0x4aa7a7=_0x4c9184();while(!![]){try{const _0x5c2742=parseInt(_0x1ee40d(0xdd))/0x1*(parseInt(_0x1ee40d(0x101))/0x2)+-parseInt(_0x1ee40d(0x100))/0x3+parseInt(_0x1ee40d(0xf1))/0x4*(-parseInt(_0x1ee40d(0xf2))/0x5)+-parseInt(_0x1ee40d(0xe5))/0x6*(parseInt(_0x1ee40d(0xfb))/0x7)+parseInt(_0x1ee40d(0xe3))/0x8*(-parseInt(_0x1ee40d(0xdc))/0x9)+-parseInt(_0x1ee40d(0xf7))/0xa+parseInt(_0x1ee40d(0xfa))/0xb*(parseInt(_0x1ee40d(0xe9))/0xc);if(_0x5c2742===_0x4883c9)break;else _0x4aa7a7['push'](_0x4aa7a7['shift']());}catch(_0x312ed6){_0x4aa7a7['push'](_0x4aa7a7['shift']());}}}(_0x2f77,0x793cc));import{IExchangeOperateService as _0x3091ab,UniverExchangeClientPlugin as _0x478206}from'@univerjs-pro/exchange-client';import{CommandType as _0x122fe7,UniverInstanceType as _0x572d21,Disposable as _0x495e2c,ICommandService as _0x5393fb,DependentOn as _0x43b200,Inject as _0x52268b,Injector as _0x130680,IConfigService as _0x3f84d3,Plugin as _0x1bdf5f,merge as _0x194ec5}from'@univerjs/core';import{MenuItemType as _0x319cdb,getMenuHiddenObservable as _0x34a524,RibbonStartGroup as _0xadc37b,IMenuManagerService as _0x1b905d}from'@univerjs/ui';import{WorkbookExportPermission as _0x2fe93c}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x16139f}from'@univerjs/sheets-ui';const p={'id':_0x2c45e2(0xed),'type':_0x122fe7[_0x2c45e2(0x104)],'handler':async _0x215ad2=>{const _0x57630b=_0x2c45e2,_0xb159f1=_0x215ad2[_0x57630b(0xe6)](_0x3091ab);return new URLSearchParams(location['search'])[_0x57630b(0xe6)](_0x57630b(0xf6))?_0xb159f1['importXLSXToUnitId']():_0xb159f1['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x2c45e2(0xf3),'type':_0x122fe7[_0x2c45e2(0x104)],'handler':async _0x4e6250=>{const _0x3a9459=_0x2c45e2,_0x129bbc=_0x4e6250[_0x3a9459(0xe6)](_0x3091ab);return new URLSearchParams(location['search'])['get'](_0x3a9459(0xf6))?_0x129bbc['exportXLSXByUnitId']():_0x129bbc['exportXLSXBySnapshot'](),!0x0;}},H=_0x2c45e2(0xfc),l={},S='sheets-exchange-client.operation.exchange';function R(_0x5ac00b){const _0x5771a7=_0x2c45e2;return{'id':S,'type':_0x319cdb[_0x5771a7(0xee)],'icon':_0x5771a7(0xef),'tooltip':'exchange.file','hidden$':_0x34a524(_0x5ac00b,_0x572d21[_0x5771a7(0xf9)]),'disabled$':_0x16139f(_0x5ac00b,{'workbookTypes':[_0x2fe93c]})};}function w(){const _0x2a61cf=_0x2c45e2;return{'id':p['id'],'type':_0x319cdb[_0x2a61cf(0xe2)],'title':_0x2a61cf(0x105),'icon':_0x2a61cf(0xf4)};}function D(){const _0x4b6002=_0x2c45e2;return{'id':u['id'],'type':_0x319cdb[_0x4b6002(0xe2)],'title':_0x4b6002(0xdf),'icon':'ExportIcon'};}const F={[_0xadc37b[_0x2c45e2(0xfd)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x2c45e2(0xeb)],A=(_0x12a792,_0x3c1628,_0x513be7,_0x57f92c)=>{const _0x15280a=_0x2c45e2;for(var _0x838fda=_0x57f92c>0x1?void 0x0:_0x57f92c?G(_0x3c1628,_0x513be7):_0x3c1628,_0x3d6988=_0x12a792[_0x15280a(0x103)]-0x1,_0x1346fe;_0x3d6988>=0x0;_0x3d6988--)(_0x1346fe=_0x12a792[_0x3d6988])&&(_0x838fda=_0x1346fe(_0x838fda)||_0x838fda);return _0x838fda;},d=(_0x172deb,_0x28fbcb)=>(_0x3d22b3,_0x3a8106)=>_0x28fbcb(_0x3d22b3,_0x3a8106,_0x172deb);let c=class extends _0x495e2c{constructor(_0x13137b,_0xc4f540){const _0x58a015=_0x2c45e2;super(),this[_0x58a015(0xf8)]=_0x13137b,this[_0x58a015(0xf0)]=_0xc4f540,this[_0x58a015(0xea)](),this['_initMenus']();}[_0x2c45e2(0xea)](){const _0x378713=_0x2c45e2;[p,u][_0x378713(0xe1)](_0x11afe3=>{const _0x30c832=_0x378713;this['disposeWithMe'](this['_commandService'][_0x30c832(0x102)](_0x11afe3));});}['_initMenus'](){const _0x4c325b=_0x2c45e2;this[_0x4c325b(0xf0)][_0x4c325b(0xff)](F);}};c=A([d(0x0,_0x5393fb),d(0x1,_0x1b905d)],c);var j=Object[_0x2c45e2(0xfe)],B=Object[_0x2c45e2(0xeb)],$=(_0x33f455,_0x5dcfd1,_0x2342e0)=>_0x5dcfd1 in _0x33f455?j(_0x33f455,_0x5dcfd1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2342e0}):_0x33f455[_0x5dcfd1]=_0x2342e0,V=(_0x2be116,_0x2edece,_0x36a2e9,_0x44a704)=>{const _0x583458=_0x2c45e2;for(var _0x11059b=_0x44a704>0x1?void 0x0:_0x44a704?B(_0x2edece,_0x36a2e9):_0x2edece,_0x24f221=_0x2be116[_0x583458(0x103)]-0x1,_0x1ac8ad;_0x24f221>=0x0;_0x24f221--)(_0x1ac8ad=_0x2be116[_0x24f221])&&(_0x11059b=_0x1ac8ad(_0x11059b)||_0x11059b);return _0x11059b;},_=(_0x4729d1,_0x90f540)=>(_0x4a98eb,_0x1ed0e5)=>_0x90f540(_0x4a98eb,_0x1ed0e5,_0x4729d1),I=(_0x164524,_0x577796,_0x1923a9)=>$(_0x164524,typeof _0x577796!=_0x2c45e2(0xe8)?_0x577796+'':_0x577796,_0x1923a9);const W=_0x2c45e2(0xde);let s=class extends _0x1bdf5f{constructor(_0x1be9c6=l,_0x10c9a9,_0x5fb078){const _0xa426b6=_0x2c45e2;super(),this[_0xa426b6(0xe0)]=_0x1be9c6,this[_0xa426b6(0xe4)]=_0x10c9a9,this[_0xa426b6(0xdb)]=_0x5fb078;const {menu:_0x2ee028,..._0x743346}=_0x194ec5({},l,this[_0xa426b6(0xe0)]);_0x2ee028&&this[_0xa426b6(0xdb)][_0xa426b6(0xec)](_0xa426b6(0xe7),_0x2ee028,{'merge':!0x0}),this[_0xa426b6(0xdb)][_0xa426b6(0xec)](H,_0x743346);}['onStarting'](){const _0x305366=_0x2c45e2;[[c]]['forEach'](_0x37fff2=>this[_0x305366(0xe4)]['add'](_0x37fff2));}['onReady'](){const _0x2cc646=_0x2c45e2;this[_0x2cc646(0xe4)][_0x2cc646(0xe6)](c);}};function _0x2f77(){const _0x3d7d28=['410781ONJjDP','sheets-exchange-client.config','OTHERS','defineProperty','mergeMenu','2629665NQbQGy','60446VCpDYY','registerCommand','length','OPERATION','exchange.upload','_configService','1244088VHtEOF','26reYqQt','SHEET_EXCHANGE_CLIENT_PLUGIN','exchange.download','_config','forEach','BUTTON','40ZJsqoO','_injector','66DyymkY','get','menu','symbol','2941224hlxcLm','_initCommands','getOwnPropertyDescriptor','setConfig','exchange-client.operation.import-xlsx','SUBITEMS','DirectExportIcon','_menuManagerService','11412QULhcU','65NBjlZH','exchange-client.operation.export-xlsx','FolderIcon','pluginName','unit','4899130pDfhrD','_commandService','UNIVER_SHEET','110riwRTk'];_0x2f77=function(){return _0x3d7d28;};return _0x2f77();}function _0x4693(_0x4542cf,_0x5d1a9b){const _0x2f77ea=_0x2f77();return _0x4693=function(_0x46936f,_0x3dc1f3){_0x46936f=_0x46936f-0xdb;let _0x28175a=_0x2f77ea[_0x46936f];return _0x28175a;},_0x4693(_0x4542cf,_0x5d1a9b);}I(s,_0x2c45e2(0xf5),W),I(s,'type',_0x572d21[_0x2c45e2(0xf9)]),s=V([_0x43b200(_0x478206),_(0x1,_0x52268b(_0x130680)),_(0x2,_0x3f84d3)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1bf2bf=_0x4978;(function(_0x2aecd9,_0x5026ad){const _0x306c44=_0x4978,_0x4d7da7=_0x2aecd9();while(!![]){try{const _0x24c00c=-parseInt(_0x306c44(0x17e))/0x1+parseInt(_0x306c44(0x181))/0x2+-parseInt(_0x306c44(0x1a7))/0x3*(-parseInt(_0x306c44(0x178))/0x4)+parseInt(_0x306c44(0x196))/0x5*(parseInt(_0x306c44(0x198))/0x6)+parseInt(_0x306c44(0x1a3))/0x7*(parseInt(_0x306c44(0x19c))/0x8)+parseInt(_0x306c44(0x1a5))/0x9*(-parseInt(_0x306c44(0x19f))/0xa)+-parseInt(_0x306c44(0x179))/0xb*(parseInt(_0x306c44(0x193))/0xc);if(_0x24c00c===_0x5026ad)break;else _0x4d7da7['push'](_0x4d7da7['shift']());}catch(_0x2cf173){_0x4d7da7['push'](_0x4d7da7['shift']());}}}(_0x39d9,0x488ff));import{IExchangeOperateService as _0x9ca5c3,UniverExchangeClientPlugin as _0x4853ba}from'@univerjs-pro/exchange-client';import{CommandType as _0x284387,UniverInstanceType as _0x1c81b3,Disposable as _0x3b351e,ICommandService as _0x298c1b,DependentOn as _0x47143c,Inject as _0x5e964f,Injector as _0x32cc60,IConfigService as _0x273036,Plugin as _0x524aa4,merge as _0x407e03}from'@univerjs/core';import{MenuItemType as _0x36ef97,getMenuHiddenObservable as _0x2899da,RibbonStartGroup as _0x451e08,IMenuManagerService as _0x1452df}from'@univerjs/ui';function _0x4978(_0x418995,_0x121f41){const _0x39d9fd=_0x39d9();return _0x4978=function(_0x497847,_0x7701d3){_0x497847=_0x497847-0x174;let _0x250e2a=_0x39d9fd[_0x497847];return _0x250e2a;},_0x4978(_0x418995,_0x121f41);}import{WorkbookExportPermission as _0x2052a4}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x44462e}from'@univerjs/sheets-ui';const p={'id':_0x1bf2bf(0x19b),'type':_0x284387[_0x1bf2bf(0x18f)],'handler':async _0x3d1ba7=>{const _0x1f1cc3=_0x1bf2bf,_0x317832=_0x3d1ba7['get'](_0x9ca5c3);return new URLSearchParams(location[_0x1f1cc3(0x17c)])['get'](_0x1f1cc3(0x189))?_0x317832[_0x1f1cc3(0x18c)]():_0x317832[_0x1f1cc3(0x183)](),!0x0;}},u={'id':_0x1bf2bf(0x1a4),'type':_0x284387[_0x1bf2bf(0x18f)],'handler':async _0x5d43f7=>{const _0x107d04=_0x1bf2bf,_0x2ff54a=_0x5d43f7[_0x107d04(0x1a2)](_0x9ca5c3);return new URLSearchParams(location[_0x107d04(0x17c)])['get']('unit')?_0x2ff54a[_0x107d04(0x182)]():_0x2ff54a['exportXLSXBySnapshot'](),!0x0;}},H='sheets-exchange-client.config',l={},S=_0x1bf2bf(0x18a);function R(_0x38889d){const _0x1d45bd=_0x1bf2bf;return{'id':S,'type':_0x36ef97[_0x1d45bd(0x184)],'icon':_0x1d45bd(0x186),'tooltip':_0x1d45bd(0x180),'hidden$':_0x2899da(_0x38889d,_0x1c81b3[_0x1d45bd(0x190)]),'disabled$':_0x44462e(_0x38889d,{'workbookTypes':[_0x2052a4]})};}function w(){const _0x34d8a7=_0x1bf2bf;return{'id':p['id'],'type':_0x36ef97['BUTTON'],'title':'exchange.upload','icon':_0x34d8a7(0x185)};}function D(){const _0x7e2793=_0x1bf2bf;return{'id':u['id'],'type':_0x36ef97[_0x7e2793(0x18b)],'title':_0x7e2793(0x194),'icon':_0x7e2793(0x197)};}function _0x39d9(){const _0x25a0d3=['803ZXgouu','_menuManagerService','length','search','_injector','251416fMtbNT','_initMenus','exchange.file','137778hwlohS','exportXLSXByUnitId','importXLSXToSnapshot','SUBITEMS','FolderIcon','DirectExportIcon','symbol','_config','unit','sheets-exchange-client.operation.exchange','BUTTON','importXLSXToUnitId','add','OTHERS','OPERATION','UNIVER_SHEET','SHEET_EXCHANGE_CLIENT_PLUGIN','mergeMenu','20652WCkuSL','exchange.download','defineProperty','1333815ihTIYJ','ExportIcon','6rHUbKw','onReady','pluginName','exchange-client.operation.import-xlsx','16sNIiAE','onStarting','_configService','10kqgpMZ','getOwnPropertyDescriptor','_commandService','get','1346611vinYQX','exchange-client.operation.export-xlsx','3058974VQvvOH','type','440628YqqECU','forEach','disposeWithMe','_initCommands','setConfig','8GYXApD'];_0x39d9=function(){return _0x25a0d3;};return _0x39d9();}const F={[_0x451e08[_0x1bf2bf(0x18e)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0xe9f88e,_0x588a8b,_0x2e452c,_0x1c8307)=>{const _0x119c74=_0x1bf2bf;for(var _0x28e8c7=_0x1c8307>0x1?void 0x0:_0x1c8307?G(_0x588a8b,_0x2e452c):_0x588a8b,_0x5a70f7=_0xe9f88e[_0x119c74(0x17b)]-0x1,_0x2c5160;_0x5a70f7>=0x0;_0x5a70f7--)(_0x2c5160=_0xe9f88e[_0x5a70f7])&&(_0x28e8c7=_0x2c5160(_0x28e8c7)||_0x28e8c7);return _0x28e8c7;},d=(_0x29475b,_0x46b1ee)=>(_0x3cc58c,_0x54e178)=>_0x46b1ee(_0x3cc58c,_0x54e178,_0x29475b);let c=class extends _0x3b351e{constructor(_0x2f02b2,_0x1ee553){const _0x2c4148=_0x1bf2bf;super(),this[_0x2c4148(0x1a1)]=_0x2f02b2,this[_0x2c4148(0x17a)]=_0x1ee553,this[_0x2c4148(0x176)](),this[_0x2c4148(0x17f)]();}[_0x1bf2bf(0x176)](){const _0x1908ae=_0x1bf2bf;[p,u][_0x1908ae(0x174)](_0x209d97=>{const _0x18a27e=_0x1908ae;this[_0x18a27e(0x175)](this[_0x18a27e(0x1a1)]['registerCommand'](_0x209d97));});}[_0x1bf2bf(0x17f)](){const _0x302cba=_0x1bf2bf;this[_0x302cba(0x17a)][_0x302cba(0x192)](F);}};c=A([d(0x0,_0x298c1b),d(0x1,_0x1452df)],c);var j=Object[_0x1bf2bf(0x195)],B=Object[_0x1bf2bf(0x1a0)],$=(_0xb2373b,_0x2f2bc0,_0x355694)=>_0x2f2bc0 in _0xb2373b?j(_0xb2373b,_0x2f2bc0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x355694}):_0xb2373b[_0x2f2bc0]=_0x355694,V=(_0x4ec285,_0x1daf99,_0x5739a7,_0x467868)=>{for(var _0xbe4187=_0x467868>0x1?void 0x0:_0x467868?B(_0x1daf99,_0x5739a7):_0x1daf99,_0x5ec027=_0x4ec285['length']-0x1,_0x6dacb4;_0x5ec027>=0x0;_0x5ec027--)(_0x6dacb4=_0x4ec285[_0x5ec027])&&(_0xbe4187=_0x6dacb4(_0xbe4187)||_0xbe4187);return _0xbe4187;},_=(_0x5d0c50,_0x1b014)=>(_0x50eac4,_0x1eb3ad)=>_0x1b014(_0x50eac4,_0x1eb3ad,_0x5d0c50),I=(_0x2de09f,_0x3c37e5,_0x5c1ffb)=>$(_0x2de09f,typeof _0x3c37e5!=_0x1bf2bf(0x187)?_0x3c37e5+'':_0x3c37e5,_0x5c1ffb);const W=_0x1bf2bf(0x191);let s=class extends _0x524aa4{constructor(_0x295518=l,_0x1ddfc6,_0x351f69){const _0x455bcf=_0x1bf2bf;super(),this['_config']=_0x295518,this['_injector']=_0x1ddfc6,this[_0x455bcf(0x19e)]=_0x351f69;const {menu:_0x2a4f74,..._0x4b5d90}=_0x407e03({},l,this[_0x455bcf(0x188)]);_0x2a4f74&&this[_0x455bcf(0x19e)][_0x455bcf(0x177)]('menu',_0x2a4f74,{'merge':!0x0}),this['_configService'][_0x455bcf(0x177)](H,_0x4b5d90);}[_0x1bf2bf(0x19d)](){const _0x252564=_0x1bf2bf;[[c]][_0x252564(0x174)](_0x5dbb44=>this[_0x252564(0x17d)][_0x252564(0x18d)](_0x5dbb44));}[_0x1bf2bf(0x199)](){const _0x2bd023=_0x1bf2bf;this[_0x2bd023(0x17d)]['get'](c);}};I(s,_0x1bf2bf(0x19a),W),I(s,_0x1bf2bf(0x1a6),_0x1c81b3['UNIVER_SHEET']),s=V([_0x47143c(_0x4853ba),_(0x1,_0x5e964f(_0x32cc60)),_(0x2,_0x273036)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x2c45e2=_0x4693;(function(_0x4c9184,_0x4883c9){const _0x1ee40d=_0x4693,_0x4aa7a7=_0x4c9184();while(!![]){try{const _0x5c2742=parseInt(_0x1ee40d(0xdd))/0x1*(parseInt(_0x1ee40d(0x101))/0x2)+-parseInt(_0x1ee40d(0x100))/0x3+parseInt(_0x1ee40d(0xf1))/0x4*(-parseInt(_0x1ee40d(0xf2))/0x5)+-parseInt(_0x1ee40d(0xe5))/0x6*(parseInt(_0x1ee40d(0xfb))/0x7)+parseInt(_0x1ee40d(0xe3))/0x8*(-parseInt(_0x1ee40d(0xdc))/0x9)+-parseInt(_0x1ee40d(0xf7))/0xa+parseInt(_0x1ee40d(0xfa))/0xb*(parseInt(_0x1ee40d(0xe9))/0xc);if(_0x5c2742===_0x4883c9)break;else _0x4aa7a7['push'](_0x4aa7a7['shift']());}catch(_0x312ed6){_0x4aa7a7['push'](_0x4aa7a7['shift']());}}}(_0x2f77,0x793cc));import{IExchangeOperateService as _0x3091ab,UniverExchangeClientPlugin as _0x478206}from'@univerjs-pro/exchange-client';import{CommandType as _0x122fe7,UniverInstanceType as _0x572d21,Disposable as _0x495e2c,ICommandService as _0x5393fb,DependentOn as _0x43b200,Inject as _0x52268b,Injector as _0x130680,IConfigService as _0x3f84d3,Plugin as _0x1bdf5f,merge as _0x194ec5}from'@univerjs/core';import{MenuItemType as _0x319cdb,getMenuHiddenObservable as _0x34a524,RibbonStartGroup as _0xadc37b,IMenuManagerService as _0x1b905d}from'@univerjs/ui';import{WorkbookExportPermission as _0x2fe93c}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x16139f}from'@univerjs/sheets-ui';const p={'id':_0x2c45e2(0xed),'type':_0x122fe7[_0x2c45e2(0x104)],'handler':async _0x215ad2=>{const _0x57630b=_0x2c45e2,_0xb159f1=_0x215ad2[_0x57630b(0xe6)](_0x3091ab);return new URLSearchParams(location['search'])[_0x57630b(0xe6)](_0x57630b(0xf6))?_0xb159f1['importXLSXToUnitId']():_0xb159f1['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x2c45e2(0xf3),'type':_0x122fe7[_0x2c45e2(0x104)],'handler':async _0x4e6250=>{const _0x3a9459=_0x2c45e2,_0x129bbc=_0x4e6250[_0x3a9459(0xe6)](_0x3091ab);return new URLSearchParams(location['search'])['get'](_0x3a9459(0xf6))?_0x129bbc['exportXLSXByUnitId']():_0x129bbc['exportXLSXBySnapshot'](),!0x0;}},H=_0x2c45e2(0xfc),l={},S='sheets-exchange-client.operation.exchange';function R(_0x5ac00b){const _0x5771a7=_0x2c45e2;return{'id':S,'type':_0x319cdb[_0x5771a7(0xee)],'icon':_0x5771a7(0xef),'tooltip':'exchange.file','hidden$':_0x34a524(_0x5ac00b,_0x572d21[_0x5771a7(0xf9)]),'disabled$':_0x16139f(_0x5ac00b,{'workbookTypes':[_0x2fe93c]})};}function w(){const _0x2a61cf=_0x2c45e2;return{'id':p['id'],'type':_0x319cdb[_0x2a61cf(0xe2)],'title':_0x2a61cf(0x105),'icon':_0x2a61cf(0xf4)};}function D(){const _0x4b6002=_0x2c45e2;return{'id':u['id'],'type':_0x319cdb[_0x4b6002(0xe2)],'title':_0x4b6002(0xdf),'icon':'ExportIcon'};}const F={[_0xadc37b[_0x2c45e2(0xfd)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x2c45e2(0xeb)],A=(_0x12a792,_0x3c1628,_0x513be7,_0x57f92c)=>{const _0x15280a=_0x2c45e2;for(var _0x838fda=_0x57f92c>0x1?void 0x0:_0x57f92c?G(_0x3c1628,_0x513be7):_0x3c1628,_0x3d6988=_0x12a792[_0x15280a(0x103)]-0x1,_0x1346fe;_0x3d6988>=0x0;_0x3d6988--)(_0x1346fe=_0x12a792[_0x3d6988])&&(_0x838fda=_0x1346fe(_0x838fda)||_0x838fda);return _0x838fda;},d=(_0x172deb,_0x28fbcb)=>(_0x3d22b3,_0x3a8106)=>_0x28fbcb(_0x3d22b3,_0x3a8106,_0x172deb);let c=class extends _0x495e2c{constructor(_0x13137b,_0xc4f540){const _0x58a015=_0x2c45e2;super(),this[_0x58a015(0xf8)]=_0x13137b,this[_0x58a015(0xf0)]=_0xc4f540,this[_0x58a015(0xea)](),this['_initMenus']();}[_0x2c45e2(0xea)](){const _0x378713=_0x2c45e2;[p,u][_0x378713(0xe1)](_0x11afe3=>{const _0x30c832=_0x378713;this['disposeWithMe'](this['_commandService'][_0x30c832(0x102)](_0x11afe3));});}['_initMenus'](){const _0x4c325b=_0x2c45e2;this[_0x4c325b(0xf0)][_0x4c325b(0xff)](F);}};c=A([d(0x0,_0x5393fb),d(0x1,_0x1b905d)],c);var j=Object[_0x2c45e2(0xfe)],B=Object[_0x2c45e2(0xeb)],$=(_0x33f455,_0x5dcfd1,_0x2342e0)=>_0x5dcfd1 in _0x33f455?j(_0x33f455,_0x5dcfd1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2342e0}):_0x33f455[_0x5dcfd1]=_0x2342e0,V=(_0x2be116,_0x2edece,_0x36a2e9,_0x44a704)=>{const _0x583458=_0x2c45e2;for(var _0x11059b=_0x44a704>0x1?void 0x0:_0x44a704?B(_0x2edece,_0x36a2e9):_0x2edece,_0x24f221=_0x2be116[_0x583458(0x103)]-0x1,_0x1ac8ad;_0x24f221>=0x0;_0x24f221--)(_0x1ac8ad=_0x2be116[_0x24f221])&&(_0x11059b=_0x1ac8ad(_0x11059b)||_0x11059b);return _0x11059b;},_=(_0x4729d1,_0x90f540)=>(_0x4a98eb,_0x1ed0e5)=>_0x90f540(_0x4a98eb,_0x1ed0e5,_0x4729d1),I=(_0x164524,_0x577796,_0x1923a9)=>$(_0x164524,typeof _0x577796!=_0x2c45e2(0xe8)?_0x577796+'':_0x577796,_0x1923a9);const W=_0x2c45e2(0xde);let s=class extends _0x1bdf5f{constructor(_0x1be9c6=l,_0x10c9a9,_0x5fb078){const _0xa426b6=_0x2c45e2;super(),this[_0xa426b6(0xe0)]=_0x1be9c6,this[_0xa426b6(0xe4)]=_0x10c9a9,this[_0xa426b6(0xdb)]=_0x5fb078;const {menu:_0x2ee028,..._0x743346}=_0x194ec5({},l,this[_0xa426b6(0xe0)]);_0x2ee028&&this[_0xa426b6(0xdb)][_0xa426b6(0xec)](_0xa426b6(0xe7),_0x2ee028,{'merge':!0x0}),this[_0xa426b6(0xdb)][_0xa426b6(0xec)](H,_0x743346);}['onStarting'](){const _0x305366=_0x2c45e2;[[c]]['forEach'](_0x37fff2=>this[_0x305366(0xe4)]['add'](_0x37fff2));}['onReady'](){const _0x2cc646=_0x2c45e2;this[_0x2cc646(0xe4)][_0x2cc646(0xe6)](c);}};function _0x2f77(){const _0x3d7d28=['410781ONJjDP','sheets-exchange-client.config','OTHERS','defineProperty','mergeMenu','2629665NQbQGy','60446VCpDYY','registerCommand','length','OPERATION','exchange.upload','_configService','1244088VHtEOF','26reYqQt','SHEET_EXCHANGE_CLIENT_PLUGIN','exchange.download','_config','forEach','BUTTON','40ZJsqoO','_injector','66DyymkY','get','menu','symbol','2941224hlxcLm','_initCommands','getOwnPropertyDescriptor','setConfig','exchange-client.operation.import-xlsx','SUBITEMS','DirectExportIcon','_menuManagerService','11412QULhcU','65NBjlZH','exchange-client.operation.export-xlsx','FolderIcon','pluginName','unit','4899130pDfhrD','_commandService','UNIVER_SHEET','110riwRTk'];_0x2f77=function(){return _0x3d7d28;};return _0x2f77();}function _0x4693(_0x4542cf,_0x5d1a9b){const _0x2f77ea=_0x2f77();return _0x4693=function(_0x46936f,_0x3dc1f3){_0x46936f=_0x46936f-0xdb;let _0x28175a=_0x2f77ea[_0x46936f];return _0x28175a;},_0x4693(_0x4542cf,_0x5d1a9b);}I(s,_0x2c45e2(0xf5),W),I(s,'type',_0x572d21[_0x2c45e2(0xf9)]),s=V([_0x43b200(_0x478206),_(0x1,_0x52268b(_0x130680)),_(0x2,_0x3f84d3)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x4159a9,_0x4671fb){const _0x1db0fc=_0xe2cb,_0x1d78e5=_0x4159a9();while(!![]){try{const _0x10ebb6=-parseInt(_0x1db0fc(0x1b8))/0x1+parseInt(_0x1db0fc(0x1cc))/0x2+-parseInt(_0x1db0fc(0x1e3))/0x3*(parseInt(_0x1db0fc(0x1dc))/0x4)+parseInt(_0x1db0fc(0x1d1))/0x5*(-parseInt(_0x1db0fc(0x1a6))/0x6)+-parseInt(_0x1db0fc(0x1ca))/0x7*(-parseInt(_0x1db0fc(0x1da))/0x8)+parseInt(_0x1db0fc(0x1de))/0x9+parseInt(_0x1db0fc(0x1e1))/0xa*(parseInt(_0x1db0fc(0x1b3))/0xb);if(_0x10ebb6===_0x4671fb)break;else _0x1d78e5['push'](_0x1d78e5['shift']());}catch(_0x36a482){_0x1d78e5['push'](_0x1d78e5['shift']());}}}(_0x5959,0x464dd),function(_0xeb00d8,_0x35aad1){const _0x3969bd=_0xe2cb;typeof exports==_0x3969bd(0x1e6)&&typeof module<'u'?_0x35aad1(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x3969bd(0x1c4)&&define[_0x3969bd(0x1e0)]?define([_0x3969bd(0x1d3),_0x3969bd(0x1bc),_0x3969bd(0x19b),'@univerjs/ui',_0x3969bd(0x1b5),_0x3969bd(0x1b7)],_0x35aad1):(_0xeb00d8=typeof globalThis<'u'?globalThis:_0xeb00d8||self,_0x35aad1(_0xeb00d8[_0x3969bd(0x1a9)]={},_0xeb00d8[_0x3969bd(0x1c2)],_0xeb00d8[_0x3969bd(0x1d8)],_0xeb00d8[_0x3969bd(0x1a4)],_0xeb00d8[_0x3969bd(0x1ce)],_0xeb00d8['UniverSheetsUi']));}(this,function(_0x1dac04,_0x4959fe,_0x59d24d,_0x2dce6d,_0x348022,_0x2dc96){'use strict';const _0x2d8d72=_0xe2cb;const _0xe88795={'id':'exchange-client.operation.import-xlsx','type':_0x59d24d[_0x2d8d72(0x1c3)][_0x2d8d72(0x19e)],'handler':async _0x3c843f=>{const _0x548a01=_0x2d8d72,_0xeb8056=_0x3c843f[_0x548a01(0x1d7)](_0x4959fe[_0x548a01(0x1a7)]);return new URLSearchParams(location[_0x548a01(0x1e7)])[_0x548a01(0x1d7)](_0x548a01(0x1b9))?_0xeb8056[_0x548a01(0x1d9)]():_0xeb8056[_0x548a01(0x1b0)](),!0x0;}},_0x30f362={'id':_0x2d8d72(0x1b6),'type':_0x59d24d[_0x2d8d72(0x1c3)][_0x2d8d72(0x19e)],'handler':async _0x1bd01c=>{const _0xaab8ee=_0x2d8d72,_0x1cf5ca=_0x1bd01c['get'](_0x4959fe[_0xaab8ee(0x1a7)]);return new URLSearchParams(location[_0xaab8ee(0x1e7)])[_0xaab8ee(0x1d7)](_0xaab8ee(0x1b9))?_0x1cf5ca[_0xaab8ee(0x1ac)]():_0x1cf5ca[_0xaab8ee(0x19f)](),!0x0;}},_0x17faee='sheets-exchange-client.config',_0x188ae0={},_0x106d65=_0x2d8d72(0x1c0);function _0x287b4f(_0x3ac80a){const _0xca69bb=_0x2d8d72;return{'id':_0x106d65,'type':_0x2dce6d['MenuItemType'][_0xca69bb(0x1a1)],'icon':_0xca69bb(0x1cd),'tooltip':_0xca69bb(0x1b1),'hidden$':_0x2dce6d[_0xca69bb(0x1a2)](_0x3ac80a,_0x59d24d[_0xca69bb(0x1ab)][_0xca69bb(0x1af)]),'disabled$':_0x2dc96[_0xca69bb(0x1cb)](_0x3ac80a,{'workbookTypes':[_0x348022[_0xca69bb(0x1b4)]]})};}function _0x261180(){const _0x16e85e=_0x2d8d72;return{'id':_0xe88795['id'],'type':_0x2dce6d[_0x16e85e(0x1d6)][_0x16e85e(0x1df)],'title':_0x16e85e(0x1c6),'icon':_0x16e85e(0x1e8)};}function _0x5ddfb7(){const _0x46e199=_0x2d8d72;return{'id':_0x30f362['id'],'type':_0x2dce6d[_0x46e199(0x1d6)][_0x46e199(0x1df)],'title':_0x46e199(0x199),'icon':_0x46e199(0x1ae)};}const _0x323aba={[_0x2dce6d[_0x2d8d72(0x1c9)][_0x2d8d72(0x1db)]]:{[_0x106d65]:{'order':0.3,'menuItemFactory':_0x287b4f,[_0xe88795['id']]:{'order':0x0,'menuItemFactory':_0x261180},[_0x30f362['id']]:{'order':0x1,'menuItemFactory':_0x5ddfb7}}}};var _0x1452cb=Object[_0x2d8d72(0x1c1)],_0x3e8ce6=(_0x5d7a7b,_0x3ab632,_0x3e147f,_0x1c9639)=>{const _0x139c21=_0x2d8d72;for(var _0x201453=_0x1c9639>0x1?void 0x0:_0x1c9639?_0x1452cb(_0x3ab632,_0x3e147f):_0x3ab632,_0x332c4f=_0x5d7a7b[_0x139c21(0x1d5)]-0x1,_0x362c37;_0x332c4f>=0x0;_0x332c4f--)(_0x362c37=_0x5d7a7b[_0x332c4f])&&(_0x201453=_0x362c37(_0x201453)||_0x201453);return _0x201453;},_0x232a4f=(_0x278700,_0x30aa77)=>(_0x4a1366,_0x35ef42)=>_0x30aa77(_0x4a1366,_0x35ef42,_0x278700);let _0x17171d=class extends _0x59d24d[_0x2d8d72(0x1c8)]{constructor(_0xafe66a,_0x4ed1cb){const _0xa68fef=_0x2d8d72;super(),this[_0xa68fef(0x1a5)]=_0xafe66a,this[_0xa68fef(0x19c)]=_0x4ed1cb,this['_initCommands'](),this[_0xa68fef(0x1e2)]();}['_initCommands'](){const _0x564cf6=_0x2d8d72;[_0xe88795,_0x30f362][_0x564cf6(0x1ba)](_0x5b8221=>{const _0x431d4d=_0x564cf6;this[_0x431d4d(0x1a0)](this[_0x431d4d(0x1a5)][_0x431d4d(0x1a8)](_0x5b8221));});}[_0x2d8d72(0x1e2)](){const _0x4a17ce=_0x2d8d72;this['_menuManagerService'][_0x4a17ce(0x1dd)](_0x323aba);}};_0x17171d=_0x3e8ce6([_0x232a4f(0x0,_0x59d24d[_0x2d8d72(0x1a3)]),_0x232a4f(0x1,_0x2dce6d[_0x2d8d72(0x1d0)])],_0x17171d);var _0x399975=Object['defineProperty'],_0x13c999=Object['getOwnPropertyDescriptor'],_0x362db6=(_0x156838,_0x3b1ace,_0x3943fa)=>_0x3b1ace in _0x156838?_0x399975(_0x156838,_0x3b1ace,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3943fa}):_0x156838[_0x3b1ace]=_0x3943fa,_0x5a793c=(_0x1234b7,_0x3c50f2,_0x19b709,_0x3c1569)=>{const _0x58ed6b=_0x2d8d72;for(var _0x3d33d3=_0x3c1569>0x1?void 0x0:_0x3c1569?_0x13c999(_0x3c50f2,_0x19b709):_0x3c50f2,_0x175c04=_0x1234b7[_0x58ed6b(0x1d5)]-0x1,_0x3d1ff3;_0x175c04>=0x0;_0x175c04--)(_0x3d1ff3=_0x1234b7[_0x175c04])&&(_0x3d33d3=_0x3d1ff3(_0x3d33d3)||_0x3d33d3);return _0x3d33d3;},_0x386b61=(_0x403c5e,_0x2134e7)=>(_0x25d513,_0x38ee65)=>_0x2134e7(_0x25d513,_0x38ee65,_0x403c5e),_0x5a78d9=(_0x337cbf,_0xe6a47a,_0x2ea67c)=>_0x362db6(_0x337cbf,typeof _0xe6a47a!=_0x2d8d72(0x1c5)?_0xe6a47a+'':_0xe6a47a,_0x2ea67c);const _0x45aaf0='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x1dac04[_0x2d8d72(0x1e4)]=class extends _0x59d24d[_0x2d8d72(0x1b2)]{constructor(_0x54bbe4=_0x188ae0,_0x59cd71,_0x16a231){const _0x4b329c=_0x2d8d72;super(),this[_0x4b329c(0x1e5)]=_0x54bbe4,this[_0x4b329c(0x1c7)]=_0x59cd71,this[_0x4b329c(0x1d4)]=_0x16a231;const {menu:_0x450d84,..._0x3099c3}=_0x59d24d['merge']({},_0x188ae0,this[_0x4b329c(0x1e5)]);_0x450d84&&this[_0x4b329c(0x1d4)]['setConfig'](_0x4b329c(0x1bd),_0x450d84,{'merge':!0x0}),this['_configService'][_0x4b329c(0x1be)](_0x17faee,_0x3099c3);}['onStarting'](){const _0x4993b8=_0x2d8d72;[[_0x17171d]][_0x4993b8(0x1ba)](_0x2ebc13=>this[_0x4993b8(0x1c7)]['add'](_0x2ebc13));}['onReady'](){const _0x9f56e9=_0x2d8d72;this['_injector'][_0x9f56e9(0x1d7)](_0x17171d);}},_0x5a78d9(_0x1dac04[_0x2d8d72(0x1e4)],_0x2d8d72(0x19a),_0x45aaf0),_0x5a78d9(_0x1dac04[_0x2d8d72(0x1e4)],'type',_0x59d24d[_0x2d8d72(0x1ab)][_0x2d8d72(0x1af)]),_0x1dac04['UniverSheetsExchangeClientPlugin']=_0x5a793c([_0x59d24d[_0x2d8d72(0x1d2)](_0x4959fe['UniverExchangeClientPlugin']),_0x386b61(0x1,_0x59d24d['Inject'](_0x59d24d['Injector'])),_0x386b61(0x2,_0x59d24d[_0x2d8d72(0x1bf)])],_0x1dac04[_0x2d8d72(0x1e4)]),_0x1dac04[_0x2d8d72(0x1bb)]=_0x30f362,_0x1dac04[_0x2d8d72(0x1ad)]=_0xe88795,Object[_0x2d8d72(0x1aa)](_0x1dac04,Symbol[_0x2d8d72(0x19d)],{'value':_0x2d8d72(0x1cf)});}));function _0xe2cb(_0x468875,_0x4691ae){const _0x595940=_0x5959();return _0xe2cb=function(_0xe2cb5e,_0x6c342){_0xe2cb5e=_0xe2cb5e-0x199;let _0xaed196=_0x595940[_0xe2cb5e];return _0xaed196;},_0xe2cb(_0x468875,_0x4691ae);}function _0x5959(){const _0x41b1fa=['Plugin','3977534dpQJCF','WorkbookExportPermission','@univerjs/sheets','exchange-client.operation.export-xlsx','@univerjs/sheets-ui','36191tLrRVZ','unit','forEach','ExportXLSXOperation','@univerjs-pro/exchange-client','menu','setConfig','IConfigService','sheets-exchange-client.operation.exchange','getOwnPropertyDescriptor','UniverProExchangeClient','CommandType','function','symbol','exchange.upload','_injector','Disposable','RibbonStartGroup','147iHjaHu','getCurrentRangeDisable$','560358BRCTPT','DirectExportIcon','UniverSheets','Module','IMenuManagerService','2698665RajQCy','DependentOn','exports','_configService','length','MenuItemType','get','UniverCore','importXLSXToUnitId','26632JHDczR','OTHERS','819404WsETeO','mergeMenu','3213522fUXkUF','BUTTON','amd','10tfXYVr','_initMenus','3nBRCYE','UniverSheetsExchangeClientPlugin','_config','object','search','FolderIcon','exchange.download','pluginName','@univerjs/core','_menuManagerService','toStringTag','OPERATION','exportXLSXBySnapshot','disposeWithMe','SUBITEMS','getMenuHiddenObservable','ICommandService','UniverUi','_commandService','6RXekwi','IExchangeOperateService','registerCommand','UniverProSheetsExchangeClient','defineProperty','UniverInstanceType','exportXLSXByUnitId','ImportXLSXOperation','ExportIcon','UNIVER_SHEET','importXLSXToSnapshot','exchange.file'];_0x5959=function(){return _0x41b1fa;};return _0x5959();}
1
+ (function(_0x355489,_0x399b70){const _0x4c37c5=_0x5ac5,_0x33e4a4=_0x355489();while(!![]){try{const _0x2d91e3=-parseInt(_0x4c37c5(0x16a))/0x1*(-parseInt(_0x4c37c5(0x148))/0x2)+-parseInt(_0x4c37c5(0x151))/0x3*(parseInt(_0x4c37c5(0x144))/0x4)+-parseInt(_0x4c37c5(0x13d))/0x5*(-parseInt(_0x4c37c5(0x17d))/0x6)+-parseInt(_0x4c37c5(0x15e))/0x7*(-parseInt(_0x4c37c5(0x16b))/0x8)+parseInt(_0x4c37c5(0x14e))/0x9+parseInt(_0x4c37c5(0x176))/0xa+parseInt(_0x4c37c5(0x131))/0xb*(-parseInt(_0x4c37c5(0x155))/0xc);if(_0x2d91e3===_0x399b70)break;else _0x33e4a4['push'](_0x33e4a4['shift']());}catch(_0x97555){_0x33e4a4['push'](_0x33e4a4['shift']());}}}(_0x3024,0x3e1de),function(_0x48bc01,_0x4374eb){const _0x1ffd3e=_0x5ac5;typeof exports==_0x1ffd3e(0x173)&&typeof module<'u'?_0x4374eb(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x1ffd3e(0x170)&&define[_0x1ffd3e(0x15b)]?define([_0x1ffd3e(0x168),'@univerjs-pro/exchange-client','@univerjs/core','@univerjs/ui',_0x1ffd3e(0x140),'@univerjs/sheets-ui'],_0x4374eb):(_0x48bc01=typeof globalThis<'u'?globalThis:_0x48bc01||self,_0x4374eb(_0x48bc01[_0x1ffd3e(0x178)]={},_0x48bc01['UniverProExchangeClient'],_0x48bc01[_0x1ffd3e(0x169)],_0x48bc01[_0x1ffd3e(0x13e)],_0x48bc01[_0x1ffd3e(0x177)],_0x48bc01[_0x1ffd3e(0x143)]));}(this,function(_0x5a8605,_0x3c923a,_0x241855,_0x113722,_0x3f6f0c,_0x22a0ed){'use strict';const _0x514688=_0x5ac5;const _0x3a5b4f={'id':'exchange-client.operation.import-xlsx','type':_0x241855[_0x514688(0x152)][_0x514688(0x15a)],'handler':async _0x25e07d=>{const _0x45f8e7=_0x514688,_0x11d427=_0x25e07d[_0x45f8e7(0x142)](_0x3c923a[_0x45f8e7(0x164)]);return new URLSearchParams(location[_0x45f8e7(0x150)])[_0x45f8e7(0x142)](_0x45f8e7(0x13f))?_0x11d427['importXLSXToUnitId']():_0x11d427[_0x45f8e7(0x14c)](),!0x0;}},_0x4003fd={'id':_0x514688(0x14b),'type':_0x241855['CommandType']['OPERATION'],'handler':async _0x5d2fd6=>{const _0x165280=_0x514688,_0x192a01=_0x5d2fd6[_0x165280(0x142)](_0x3c923a[_0x165280(0x164)]);return new URLSearchParams(location[_0x165280(0x150)])['get'](_0x165280(0x13f))?_0x192a01[_0x165280(0x14a)]():_0x192a01[_0x165280(0x137)](),!0x0;}},_0x2bb41c=_0x514688(0x149),_0x1110db={},_0x36ed44=_0x514688(0x167);function _0x4415dd(_0x52e722){const _0x289d34=_0x514688;return{'id':_0x36ed44,'type':_0x113722[_0x289d34(0x16c)][_0x289d34(0x139)],'icon':_0x289d34(0x14f),'tooltip':'exchange.file','hidden$':_0x113722[_0x289d34(0x147)](_0x52e722,_0x241855['UniverInstanceType'][_0x289d34(0x163)]),'disabled$':_0x22a0ed[_0x289d34(0x171)](_0x52e722,{'workbookTypes':[_0x3f6f0c[_0x289d34(0x166)]]})};}function _0x20ea33(){const _0x19d0d1=_0x514688;return{'id':_0x3a5b4f['id'],'type':_0x113722['MenuItemType'][_0x19d0d1(0x16f)],'title':_0x19d0d1(0x17b),'icon':_0x19d0d1(0x132)};}function _0x51e669(){const _0x20099a=_0x514688;return{'id':_0x4003fd['id'],'type':_0x113722[_0x20099a(0x16c)][_0x20099a(0x16f)],'title':_0x20099a(0x158),'icon':_0x20099a(0x17e)};}const _0x1aac28={[_0x113722['RibbonStartGroup'][_0x514688(0x145)]]:{[_0x36ed44]:{'order':0.3,'menuItemFactory':_0x4415dd,[_0x3a5b4f['id']]:{'order':0x0,'menuItemFactory':_0x20ea33},[_0x4003fd['id']]:{'order':0x1,'menuItemFactory':_0x51e669}}}};var _0x1ee3a3=Object[_0x514688(0x16e)],_0x134843=(_0x5a3d3b,_0xc1000c,_0x49d445,_0x24bf96)=>{const _0xdb2b78=_0x514688;for(var _0xd52782=_0x24bf96>0x1?void 0x0:_0x24bf96?_0x1ee3a3(_0xc1000c,_0x49d445):_0xc1000c,_0x132e0f=_0x5a3d3b[_0xdb2b78(0x15f)]-0x1,_0xebb23f;_0x132e0f>=0x0;_0x132e0f--)(_0xebb23f=_0x5a3d3b[_0x132e0f])&&(_0xd52782=_0xebb23f(_0xd52782)||_0xd52782);return _0xd52782;},_0x13603c=(_0x5733c5,_0x4e726d)=>(_0x358b47,_0x11a1fc)=>_0x4e726d(_0x358b47,_0x11a1fc,_0x5733c5);let _0x41222d=class extends _0x241855[_0x514688(0x136)]{constructor(_0x43f607,_0x1a0cd9){const _0x392e0a=_0x514688;super(),this[_0x392e0a(0x146)]=_0x43f607,this[_0x392e0a(0x138)]=_0x1a0cd9,this[_0x392e0a(0x133)](),this['_initMenus']();}[_0x514688(0x133)](){const _0x5d0e1c=_0x514688;[_0x3a5b4f,_0x4003fd][_0x5d0e1c(0x17a)](_0x3cadba=>{const _0x528b5a=_0x5d0e1c;this['disposeWithMe'](this['_commandService'][_0x528b5a(0x13b)](_0x3cadba));});}[_0x514688(0x160)](){const _0x180292=_0x514688;this[_0x180292(0x138)][_0x180292(0x15c)](_0x1aac28);}};_0x41222d=_0x134843([_0x13603c(0x0,_0x241855[_0x514688(0x13c)]),_0x13603c(0x1,_0x113722[_0x514688(0x174)])],_0x41222d);var _0x433400=Object[_0x514688(0x161)],_0x346c4c=Object[_0x514688(0x16e)],_0x5a491c=(_0xfcc0fa,_0xa07615,_0x595901)=>_0xa07615 in _0xfcc0fa?_0x433400(_0xfcc0fa,_0xa07615,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x595901}):_0xfcc0fa[_0xa07615]=_0x595901,_0x553623=(_0x34b571,_0x1de087,_0x1a73a7,_0x47920a)=>{for(var _0x117739=_0x47920a>0x1?void 0x0:_0x47920a?_0x346c4c(_0x1de087,_0x1a73a7):_0x1de087,_0x5ebcd0=_0x34b571['length']-0x1,_0x1ca1fa;_0x5ebcd0>=0x0;_0x5ebcd0--)(_0x1ca1fa=_0x34b571[_0x5ebcd0])&&(_0x117739=_0x1ca1fa(_0x117739)||_0x117739);return _0x117739;},_0x23cd97=(_0x2f413a,_0x539ae0)=>(_0x59bed4,_0x3199e0)=>_0x539ae0(_0x59bed4,_0x3199e0,_0x2f413a),_0x232806=(_0x5019fd,_0x54062a,_0x17aeaa)=>_0x5a491c(_0x5019fd,typeof _0x54062a!=_0x514688(0x172)?_0x54062a+'':_0x54062a,_0x17aeaa);const _0x101721=_0x514688(0x16d);_0x5a8605['UniverSheetsExchangeClientPlugin']=class extends _0x241855[_0x514688(0x165)]{constructor(_0x439baa=_0x1110db,_0x566343,_0x18e822){const _0x16bd54=_0x514688;super(),this[_0x16bd54(0x130)]=_0x439baa,this['_injector']=_0x566343,this['_configService']=_0x18e822;const {menu:_0x2d10f0,..._0x28b910}=_0x241855[_0x16bd54(0x156)]({},_0x1110db,this[_0x16bd54(0x130)]);_0x2d10f0&&this[_0x16bd54(0x179)][_0x16bd54(0x17c)](_0x16bd54(0x159),_0x2d10f0,{'merge':!0x0}),this['_configService'][_0x16bd54(0x17c)](_0x2bb41c,_0x28b910);}['onStarting'](){const _0x5219b1=_0x514688;[[_0x41222d]][_0x5219b1(0x17a)](_0x986248=>this['_injector'][_0x5219b1(0x141)](_0x986248));}[_0x514688(0x153)](){const _0x3fcd58=_0x514688;this[_0x3fcd58(0x134)][_0x3fcd58(0x142)](_0x41222d);}},_0x232806(_0x5a8605[_0x514688(0x135)],_0x514688(0x175),_0x101721),_0x232806(_0x5a8605[_0x514688(0x135)],'type',_0x241855[_0x514688(0x154)][_0x514688(0x163)]),_0x5a8605['UniverSheetsExchangeClientPlugin']=_0x553623([_0x241855[_0x514688(0x14d)](_0x3c923a[_0x514688(0x13a)]),_0x23cd97(0x1,_0x241855['Inject'](_0x241855['Injector'])),_0x23cd97(0x2,_0x241855['IConfigService'])],_0x5a8605[_0x514688(0x135)]),_0x5a8605[_0x514688(0x15d)]=_0x4003fd,_0x5a8605['ImportXLSXOperation']=_0x3a5b4f,Object[_0x514688(0x161)](_0x5a8605,Symbol[_0x514688(0x157)],{'value':_0x514688(0x162)});}));function _0x5ac5(_0x5c8dba,_0x5aa907){const _0x3024b4=_0x3024();return _0x5ac5=function(_0x5ac58c,_0x36672e){_0x5ac58c=_0x5ac58c-0x130;let _0x5915e7=_0x3024b4[_0x5ac58c];return _0x5915e7;},_0x5ac5(_0x5c8dba,_0x5aa907);}function _0x3024(){const _0x32bf50=['36qRwJoP','ExportIcon','_config','22TulkIB','FolderIcon','_initCommands','_injector','UniverSheetsExchangeClientPlugin','Disposable','exportXLSXBySnapshot','_menuManagerService','SUBITEMS','UniverExchangeClientPlugin','registerCommand','ICommandService','352955CHbLHx','UniverUi','unit','@univerjs/sheets','add','get','UniverSheetsUi','2220gainkn','OTHERS','_commandService','getMenuHiddenObservable','1758CEYIMG','sheets-exchange-client.config','exportXLSXByUnitId','exchange-client.operation.export-xlsx','importXLSXToSnapshot','DependentOn','3412458sBUFPX','DirectExportIcon','search','2703aXWMzd','CommandType','onReady','UniverInstanceType','2710344KECsLQ','merge','toStringTag','exchange.download','menu','OPERATION','amd','mergeMenu','ExportXLSXOperation','7vmRPCz','length','_initMenus','defineProperty','Module','UNIVER_SHEET','IExchangeOperateService','Plugin','WorkbookExportPermission','sheets-exchange-client.operation.exchange','exports','UniverCore','29GgmCba','370096mHfrjP','MenuItemType','SHEET_EXCHANGE_CLIENT_PLUGIN','getOwnPropertyDescriptor','BUTTON','function','getCurrentRangeDisable$','symbol','object','IMenuManagerService','pluginName','3317480NwpaBn','UniverSheets','UniverProSheetsExchangeClient','_configService','forEach','exchange.upload','setConfig'];_0x3024=function(){return _0x32bf50;};return _0x3024();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.10.12-nightly.202510251119",
3
+ "version": "0.10.13",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -42,17 +42,17 @@
42
42
  "lib"
43
43
  ],
44
44
  "dependencies": {
45
- "@univerjs-pro/exchange-client": "0.10.12-nightly.202510251119",
46
- "@univerjs/sheets-ui": "0.10.12-nightly.202510251119",
47
- "@univerjs/ui": "0.10.12-nightly.202510251119",
48
- "@univerjs/core": "0.10.12-nightly.202510251119",
49
- "@univerjs/sheets": "0.10.12-nightly.202510251119"
45
+ "@univerjs-pro/exchange-client": "0.10.13",
46
+ "@univerjs/core": "0.10.13",
47
+ "@univerjs/sheets": "0.10.13",
48
+ "@univerjs/ui": "0.10.13",
49
+ "@univerjs/sheets-ui": "0.10.13"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",
53
53
  "vite": "^7.1.10",
54
54
  "vitest": "^3.2.4",
55
- "@univerjs-infra/shared": "0.10.12"
55
+ "@univerjs-infra/shared": "0.10.13"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run",