@univerjs-pro/sheets-exchange-client 0.16.0 → 0.16.1-insiders.20260311-074e8ca

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x18c2da=_0x326d;function _0x1469(){const _0x2c4d53=['IMenuManagerService','sheets-exchange-client.operation.exchange','WorkbookExportPermission','search','_initMenus','exchange-client.operation.export-xlsx','menu','add','116016zJlylJ','OPERATION','_config','getMenuHiddenObservable','FolderIcon','1994500fxLqhQ','3150135THMUOf','onStarting','exchange.file','CommandType','getOwnPropertyDescriptor','importXLSXToSnapshot','OTHERS','Injector','BUTTON','_configService','_menuManagerService','ICommandService','registerCommand','UniverInstanceType','unit','importXLSXToUnitId','_initCommands','length','DirectExportIcon','100842dLmPtK','MenuItemType','toStringTag','IExchangeOperateService','471294cWpDRI','exchange.upload','271104isUUSC','defineProperty','Disposable','setConfig','get','mergeMenu','813021JJIVxP','DependentOn','sheets-exchange-client.config','Module','forEach','Plugin','SUBITEMS','5aQBjyZ','ExportXLSXOperation','UniverSheetsExchangeClientPlugin','Inject','onReady','42qiLXeI','UNIVER_SHEET','_injector','RibbonStartGroup','exportXLSXBySnapshot','_commandService'];_0x1469=function(){return _0x2c4d53;};return _0x1469();}(function(_0x14a050,_0x220478){const _0x3cc86f=_0x326d,_0x38b843=_0x14a050();while(!![]){try{const _0xbff3af=parseInt(_0x3cc86f(0x15d))/0x1+-parseInt(_0x3cc86f(0x15b))/0x2+parseInt(_0x3cc86f(0x163))/0x3+-parseInt(_0x3cc86f(0x143))/0x4*(parseInt(_0x3cc86f(0x16a))/0x5)+parseInt(_0x3cc86f(0x157))/0x6+-parseInt(_0x3cc86f(0x16f))/0x7*(-parseInt(_0x3cc86f(0x17d))/0x8)+parseInt(_0x3cc86f(0x144))/0x9;if(_0xbff3af===_0x220478)break;else _0x38b843['push'](_0x38b843['shift']());}catch(_0x599835){_0x38b843['push'](_0x38b843['shift']());}}}(_0x1469,0x3fe29));Object[_0x18c2da(0x15e)](exports,Symbol[_0x18c2da(0x159)],{'value':_0x18c2da(0x166)});const g=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),c=require('@univerjs/ui'),_=require('@univerjs/sheets'),I=require('@univerjs/sheets-ui'),l={'id':'exchange-client.operation.import-xlsx','type':i['CommandType'][_0x18c2da(0x17e)],'handler':async _0x5824bf=>{const _0x5ed69b=_0x18c2da,_0x4d278c=_0x5824bf['get'](g[_0x5ed69b(0x15a)]);return new URLSearchParams(location[_0x5ed69b(0x178)])[_0x5ed69b(0x161)](_0x5ed69b(0x152))?_0x4d278c[_0x5ed69b(0x153)]():_0x4d278c[_0x5ed69b(0x149)](),!0x0;}},p={'id':_0x18c2da(0x17a),'type':i[_0x18c2da(0x147)][_0x18c2da(0x17e)],'handler':async _0x20cd61=>{const _0x2afb05=_0x18c2da,_0x4a9f1a=_0x20cd61['get'](g['IExchangeOperateService']);return new URLSearchParams(location[_0x2afb05(0x178)])['get'](_0x2afb05(0x152))?_0x4a9f1a['exportXLSXByUnitId']():_0x4a9f1a[_0x2afb05(0x173)](),!0x0;}},v=_0x18c2da(0x165),h={},S=_0x18c2da(0x176);function x(_0x3a9ecb){const _0x5b201f=_0x18c2da;return{'id':S,'type':c[_0x5b201f(0x158)][_0x5b201f(0x169)],'icon':_0x5b201f(0x156),'tooltip':_0x5b201f(0x146),'hidden$':c[_0x5b201f(0x180)](_0x3a9ecb,i[_0x5b201f(0x151)][_0x5b201f(0x170)]),'disabled$':I['getCurrentRangeDisable$'](_0x3a9ecb,{'workbookTypes':[_[_0x5b201f(0x177)]]})};}function P(){const _0xe19ade=_0x18c2da;return{'id':l['id'],'type':c[_0xe19ade(0x158)]['BUTTON'],'title':_0xe19ade(0x15c),'icon':_0xe19ade(0x181)};}function C(){const _0x281742=_0x18c2da;return{'id':p['id'],'type':c['MenuItemType'][_0x281742(0x14c)],'title':'exchange.download','icon':'ExportIcon'};}const f={[c[_0x18c2da(0x172)][_0x18c2da(0x14a)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x18c2da(0x148)],y=(_0x59a15c,_0x622eb5,_0x17ab5d,_0x35a504)=>{const _0x1cb829=_0x18c2da;for(var _0x3c881d=_0x35a504>0x1?void 0x0:_0x35a504?T(_0x622eb5,_0x17ab5d):_0x622eb5,_0x2c1fcc=_0x59a15c[_0x1cb829(0x155)]-0x1,_0x525167;_0x2c1fcc>=0x0;_0x2c1fcc--)(_0x525167=_0x59a15c[_0x2c1fcc])&&(_0x3c881d=_0x525167(_0x3c881d)||_0x3c881d);return _0x3c881d;},m=(_0x171b4e,_0xd4fc1)=>(_0x5262d3,_0x4b27ff)=>_0xd4fc1(_0x5262d3,_0x4b27ff,_0x171b4e);let u=class extends i[_0x18c2da(0x15f)]{constructor(_0x1c5ee6,_0x4bc8bd){const _0x5ece38=_0x18c2da;super(),this[_0x5ece38(0x174)]=_0x1c5ee6,this[_0x5ece38(0x14e)]=_0x4bc8bd,this[_0x5ece38(0x154)](),this[_0x5ece38(0x179)]();}[_0x18c2da(0x154)](){const _0x44e708=_0x18c2da;[l,p][_0x44e708(0x167)](_0x1d0caa=>{const _0x1e27af=_0x44e708;this['disposeWithMe'](this[_0x1e27af(0x174)][_0x1e27af(0x150)](_0x1d0caa));});}[_0x18c2da(0x179)](){const _0x26f500=_0x18c2da;this[_0x26f500(0x14e)][_0x26f500(0x162)](f);}};u=y([m(0x0,i[_0x18c2da(0x14f)]),m(0x1,c[_0x18c2da(0x175)])],u);var O=Object['defineProperty'],U=Object[_0x18c2da(0x148)],X=(_0x482d58,_0xc3368c,_0x3265af)=>_0xc3368c in _0x482d58?O(_0x482d58,_0xc3368c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3265af}):_0x482d58[_0xc3368c]=_0x3265af,N=(_0x514be1,_0x5b39dd,_0x58bdb7,_0x2b4805)=>{const _0x3c1103=_0x18c2da;for(var _0x13734a=_0x2b4805>0x1?void 0x0:_0x2b4805?U(_0x5b39dd,_0x58bdb7):_0x5b39dd,_0x4f4b45=_0x514be1[_0x3c1103(0x155)]-0x1,_0x4f7fbf;_0x4f4b45>=0x0;_0x4f4b45--)(_0x4f7fbf=_0x514be1[_0x4f4b45])&&(_0x13734a=_0x4f7fbf(_0x13734a)||_0x13734a);return _0x13734a;},d=(_0x5ea397,_0x51a81e)=>(_0x1a1d82,_0x3e398b)=>_0x51a81e(_0x1a1d82,_0x3e398b,_0x5ea397),E=(_0x447a5b,_0x2aeb9d,_0x24e8e0)=>X(_0x447a5b,typeof _0x2aeb9d!='symbol'?_0x2aeb9d+'':_0x2aeb9d,_0x24e8e0);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';function _0x326d(_0x42485a,_0x49c890){_0x42485a=_0x42485a-0x143;const _0x1469de=_0x1469();let _0x326df1=_0x1469de[_0x42485a];return _0x326df1;}exports[_0x18c2da(0x16c)]=class extends i[_0x18c2da(0x168)]{constructor(_0x345bca=h,_0x5ad588,_0x2a7d85){const _0x2f481a=_0x18c2da;super(),this[_0x2f481a(0x17f)]=_0x345bca,this['_injector']=_0x5ad588,this[_0x2f481a(0x14d)]=_0x2a7d85;const {menu:_0xca425f,..._0x1ef7f9}=i['merge']({},h,this[_0x2f481a(0x17f)]);_0xca425f&&this['_configService'][_0x2f481a(0x160)](_0x2f481a(0x17b),_0xca425f,{'merge':!0x0}),this[_0x2f481a(0x14d)][_0x2f481a(0x160)](v,_0x1ef7f9);}[_0x18c2da(0x145)](){const _0x3969f6=_0x18c2da;[[u]][_0x3969f6(0x167)](_0x50cf60=>this[_0x3969f6(0x171)][_0x3969f6(0x17c)](_0x50cf60));}[_0x18c2da(0x16e)](){const _0x581114=_0x18c2da;this[_0x581114(0x171)][_0x581114(0x161)](u);}},E(exports[_0x18c2da(0x16c)],'pluginName',L),E(exports[_0x18c2da(0x16c)],'type',i[_0x18c2da(0x151)]['UNIVER_SHEET']),exports['UniverSheetsExchangeClientPlugin']=N([i[_0x18c2da(0x164)](g['UniverExchangeClientPlugin']),d(0x1,i[_0x18c2da(0x16d)](i[_0x18c2da(0x14b)])),d(0x2,i['IConfigService'])],exports['UniverSheetsExchangeClientPlugin']),exports[_0x18c2da(0x16b)]=p,exports['ImportXLSXOperation']=l;
1
+ 'use strict';const _0xb1d557=_0x74ac;(function(_0x3812be,_0xb0d3f0){const _0x3da9bf=_0x74ac,_0x4006b9=_0x3812be();while(!![]){try{const _0x5d37d8=parseInt(_0x3da9bf(0x10d))/0x1+-parseInt(_0x3da9bf(0x120))/0x2+parseInt(_0x3da9bf(0xeb))/0x3+-parseInt(_0x3da9bf(0x105))/0x4*(parseInt(_0x3da9bf(0x114))/0x5)+parseInt(_0x3da9bf(0x119))/0x6+-parseInt(_0x3da9bf(0xfc))/0x7*(-parseInt(_0x3da9bf(0x104))/0x8)+-parseInt(_0x3da9bf(0xe6))/0x9*(parseInt(_0x3da9bf(0x109))/0xa);if(_0x5d37d8===_0xb0d3f0)break;else _0x4006b9['push'](_0x4006b9['shift']());}catch(_0x4b02fd){_0x4006b9['push'](_0x4006b9['shift']());}}}(_0xc345,0x5b9db));Object[_0xb1d557(0x121)](exports,Symbol[_0xb1d557(0xf4)],{'value':'Module'});const p=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),c=require('@univerjs/ui'),v=require('@univerjs/sheets'),I=require('@univerjs/sheets-ui'),l={'id':'exchange-client.operation.import-xlsx','type':i[_0xb1d557(0xdf)][_0xb1d557(0x11a)],'handler':async _0x5d0db3=>{const _0x1ea5b4=_0xb1d557,_0x5985a9=_0x5d0db3['get'](p[_0x1ea5b4(0xe7)]);return new URLSearchParams(location[_0x1ea5b4(0xe4)])[_0x1ea5b4(0x102)](_0x1ea5b4(0xef))?_0x5985a9[_0x1ea5b4(0xec)]():_0x5985a9[_0x1ea5b4(0x117)](),!0x0;}},g={'id':_0xb1d557(0xf5),'type':i[_0xb1d557(0xdf)]['OPERATION'],'handler':async _0x2d1617=>{const _0x2958f0=_0xb1d557,_0x900e2b=_0x2d1617[_0x2958f0(0x102)](p[_0x2958f0(0xe7)]);return new URLSearchParams(location[_0x2958f0(0xe4)])[_0x2958f0(0x102)](_0x2958f0(0xef))?_0x900e2b['exportXLSXByUnitId']():_0x900e2b['exportXLSXBySnapshot'](),!0x0;}},x=_0xb1d557(0xf2),P='0.16.1-insiders.20260311-074e8ca',E={'name':x,'version':P},C=_0xb1d557(0xe8),m={},_=_0xb1d557(0xfd);function f(_0x52bbb1){const _0x2266cd=_0xb1d557;return{'id':_,'type':c[_0x2266cd(0xf0)][_0x2266cd(0xfb)],'icon':_0x2266cd(0xf7),'tooltip':_0x2266cd(0x116),'hidden$':c['getMenuHiddenObservable'](_0x52bbb1,i[_0x2266cd(0xee)][_0x2266cd(0xf8)]),'disabled$':I['getCurrentRangeDisable$'](_0x52bbb1,{'workbookTypes':[v[_0x2266cd(0x11c)]]})};}function y(){const _0x44b76c=_0xb1d557;return{'id':l['id'],'type':c[_0x44b76c(0xf0)][_0x44b76c(0x113)],'title':'exchange.upload','icon':_0x44b76c(0x11b)};}function _0x74ac(_0xa3f628,_0x5c94d5){_0xa3f628=_0xa3f628-0xdd;const _0xc3450=_0xc345();let _0x74ac82=_0xc3450[_0xa3f628];return _0x74ac82;}function T(){const _0xbc51ed=_0xb1d557;return{'id':g['id'],'type':c['MenuItemType']['BUTTON'],'title':_0xbc51ed(0x124),'icon':_0xbc51ed(0x115)};}function _0xc345(){const _0x424afd=['toStringTag','exchange-client.operation.export-xlsx','registerCommand','DirectExportIcon','UNIVER_SHEET','UniverSheetsExchangeClientPlugin','_menuManagerService','SUBITEMS','7KuGjJi','sheets-exchange-client.operation.exchange','onStarting','_config','disposeWithMe','forEach','get','DependentOn','4918152jHqtEA','2932dAGROF','IConfigService','SHEET_EXCHANGE_CLIENT_PLUGIN','ExportXLSXOperation','50990zyekZP','symbol','pluginName','Disposable','633110HvWktY','_configService','ImportXLSXOperation','version','merge','_initMenus','BUTTON','240iiMiQm','ExportIcon','exchange.file','importXLSXToSnapshot','add','1427868TgnMvy','OPERATION','FolderIcon','WorkbookExportPermission','ICommandService','RibbonStartGroup','_commandService','410524zinFEK','defineProperty','OTHERS','setConfig','exchange.download','type','_injector','menu','CommandType','Injector','name','_initCommands','mergeMenu','search','packageName','1971tXSyCU','IExchangeOperateService','sheets-exchange-client.config','onReady','IMenuManagerService','739587TrIodB','importXLSXToUnitId','getOwnPropertyDescriptor','UniverInstanceType','unit','MenuItemType','length','@univerjs-pro/sheets-exchange-client','Plugin'];_0xc345=function(){return _0x424afd;};return _0xc345();}const O={[c[_0xb1d557(0x11e)][_0xb1d557(0x122)]]:{[_]:{'order':0.3,'menuItemFactory':f,[l['id']]:{'order':0x0,'menuItemFactory':y},[g['id']]:{'order':0x1,'menuItemFactory':T}}}};var U=Object[_0xb1d557(0xed)],X=(_0x5327cd,_0x5aeaf2,_0x31a0c3,_0x31b370)=>{const _0x1e016a=_0xb1d557;for(var _0x5f25ea=_0x31b370>0x1?void 0x0:_0x31b370?U(_0x5aeaf2,_0x31a0c3):_0x5aeaf2,_0x2bfebe=_0x5327cd[_0x1e016a(0xf1)]-0x1,_0x349667;_0x2bfebe>=0x0;_0x2bfebe--)(_0x349667=_0x5327cd[_0x2bfebe])&&(_0x5f25ea=_0x349667(_0x5f25ea)||_0x5f25ea);return _0x5f25ea;},d=(_0x4d68d8,_0xb3a6ab)=>(_0x21fdc6,_0x46e697)=>_0xb3a6ab(_0x21fdc6,_0x46e697,_0x4d68d8);let u=class extends i[_0xb1d557(0x10c)]{constructor(_0x50b496,_0x4c8c5c){const _0x4e4a54=_0xb1d557;super(),this[_0x4e4a54(0x11f)]=_0x50b496,this[_0x4e4a54(0xfa)]=_0x4c8c5c,this[_0x4e4a54(0xe2)](),this[_0x4e4a54(0x112)]();}[_0xb1d557(0xe2)](){const _0x43ba25=_0xb1d557;[l,g][_0x43ba25(0x101)](_0x333032=>{const _0x18ea82=_0x43ba25;this[_0x18ea82(0x100)](this[_0x18ea82(0x11f)][_0x18ea82(0xf6)](_0x333032));});}[_0xb1d557(0x112)](){const _0x38d1a2=_0xb1d557;this[_0x38d1a2(0xfa)][_0x38d1a2(0xe3)](O);}};u=X([d(0x0,i[_0xb1d557(0x11d)]),d(0x1,c[_0xb1d557(0xea)])],u);var N=Object[_0xb1d557(0x121)],b=Object['getOwnPropertyDescriptor'],M=(_0x4503f2,_0x47b6fa,_0x4ffaba)=>_0x47b6fa in _0x4503f2?N(_0x4503f2,_0x47b6fa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ffaba}):_0x4503f2[_0x47b6fa]=_0x4ffaba,L=(_0x3b6110,_0x33f446,_0x8a19ef,_0x24ca19)=>{const _0x1523d8=_0xb1d557;for(var _0x20d0b5=_0x24ca19>0x1?void 0x0:_0x24ca19?b(_0x33f446,_0x8a19ef):_0x33f446,_0x55e118=_0x3b6110[_0x1523d8(0xf1)]-0x1,_0x5052db;_0x55e118>=0x0;_0x55e118--)(_0x5052db=_0x3b6110[_0x55e118])&&(_0x20d0b5=_0x5052db(_0x20d0b5)||_0x20d0b5);return _0x20d0b5;},S=(_0x1462c6,_0x90fa72)=>(_0x10d96d,_0x5435d9)=>_0x90fa72(_0x10d96d,_0x5435d9,_0x1462c6),h=(_0x273ed9,_0x2ad4b8,_0x2223c1)=>M(_0x273ed9,typeof _0x2ad4b8!=_0xb1d557(0x10a)?_0x2ad4b8+'':_0x2ad4b8,_0x2223c1);exports[_0xb1d557(0xf9)]=class extends i[_0xb1d557(0xf3)]{constructor(_0x540f7c=m,_0x49d7d2,_0x328893){const _0x54859d=_0xb1d557;super(),this[_0x54859d(0xff)]=_0x540f7c,this[_0x54859d(0xdd)]=_0x49d7d2,this[_0x54859d(0x10e)]=_0x328893;const {menu:_0x2ca987,..._0x12d20b}=i[_0x54859d(0x111)]({},m,this[_0x54859d(0xff)]);_0x2ca987&&this[_0x54859d(0x10e)]['setConfig'](_0x54859d(0xde),_0x2ca987,{'merge':!0x0}),this['_configService'][_0x54859d(0x123)](C,_0x12d20b);}[_0xb1d557(0xfe)](){const _0x20abdd=_0xb1d557;[[u]][_0x20abdd(0x101)](_0x3dbb58=>this[_0x20abdd(0xdd)][_0x20abdd(0x118)](_0x3dbb58));}[_0xb1d557(0xe9)](){const _0x329fef=_0xb1d557;this[_0x329fef(0xdd)][_0x329fef(0x102)](u);}},h(exports['UniverSheetsExchangeClientPlugin'],_0xb1d557(0x10b),_0xb1d557(0x107)),h(exports[_0xb1d557(0xf9)],_0xb1d557(0xe5),E[_0xb1d557(0xe1)]),h(exports[_0xb1d557(0xf9)],'version',E[_0xb1d557(0x110)]),h(exports[_0xb1d557(0xf9)],_0xb1d557(0x125),i[_0xb1d557(0xee)][_0xb1d557(0xf8)]),exports['UniverSheetsExchangeClientPlugin']=L([i[_0xb1d557(0x103)](p['UniverExchangeClientPlugin']),S(0x1,i['Inject'](i[_0xb1d557(0xe0)])),S(0x2,i[_0xb1d557(0x106)])],exports[_0xb1d557(0xf9)]),exports[_0xb1d557(0x108)]=g,exports[_0xb1d557(0x10f)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0xbf616c=_0x5a0d;(function(_0x4abdb5,_0x522da8){const _0x243b0a=_0x5a0d,_0x25aee1=_0x4abdb5();while(!![]){try{const _0x29314f=parseInt(_0x243b0a(0x1ae))/0x1*(parseInt(_0x243b0a(0x1a4))/0x2)+parseInt(_0x243b0a(0x198))/0x3+parseInt(_0x243b0a(0x1b3))/0x4+-parseInt(_0x243b0a(0x1ba))/0x5*(-parseInt(_0x243b0a(0x19d))/0x6)+-parseInt(_0x243b0a(0x1b4))/0x7+-parseInt(_0x243b0a(0x1a9))/0x8*(-parseInt(_0x243b0a(0x1bc))/0x9)+-parseInt(_0x243b0a(0x1b2))/0xa;if(_0x29314f===_0x522da8)break;else _0x25aee1['push'](_0x25aee1['shift']());}catch(_0x32b8dc){_0x25aee1['push'](_0x25aee1['shift']());}}}(_0x275a,0xcf950));import{IExchangeOperateService as _0x326668,UniverExchangeClientPlugin as _0x1d066c}from'@univerjs-pro/exchange-client';import{CommandType as _0x2689a3,UniverInstanceType as _0x13b7e2,Disposable as _0xa1640f,ICommandService as _0x14e85b,DependentOn as _0x18a2f5,Inject as _0x2dbe5d,Injector as _0x247dbc,Plugin as _0x111c89,merge as _0x563f71,IConfigService as _0x16341d}from'@univerjs/core';import{MenuItemType as _0x379259,getMenuHiddenObservable as _0x3ab569,RibbonStartGroup as _0x4ab08a,IMenuManagerService as _0x58f3ca}from'@univerjs/ui';import{WorkbookExportPermission as _0x447e76}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x51c338}from'@univerjs/sheets-ui';const p={'id':_0xbf616c(0x19c),'type':_0x2689a3[_0xbf616c(0x1b1)],'handler':async _0x46f46f=>{const _0x9fc45d=_0xbf616c,_0x2c1abd=_0x46f46f[_0x9fc45d(0x1b5)](_0x326668);return new URLSearchParams(location[_0x9fc45d(0x1a6)])['get'](_0x9fc45d(0x1b9))?_0x2c1abd[_0x9fc45d(0x1a3)]():_0x2c1abd[_0x9fc45d(0x1a0)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x2689a3[_0xbf616c(0x1b1)],'handler':async _0x10011e=>{const _0x21ea07=_0xbf616c,_0x4bea4e=_0x10011e[_0x21ea07(0x1b5)](_0x326668);return new URLSearchParams(location[_0x21ea07(0x1a6)])[_0x21ea07(0x1b5)](_0x21ea07(0x1b9))?_0x4bea4e[_0x21ea07(0x1b0)]():_0x4bea4e[_0x21ea07(0x19b)](),!0x0;}},H=_0xbf616c(0x1a1),l={},S=_0xbf616c(0x1a5);function R(_0x55930c){const _0x1c7879=_0xbf616c;return{'id':S,'type':_0x379259['SUBITEMS'],'icon':_0x1c7879(0x197),'tooltip':_0x1c7879(0x196),'hidden$':_0x3ab569(_0x55930c,_0x13b7e2[_0x1c7879(0x1b6)]),'disabled$':_0x51c338(_0x55930c,{'workbookTypes':[_0x447e76]})};}function w(){const _0x37f43d=_0xbf616c;return{'id':p['id'],'type':_0x379259[_0x37f43d(0x1a2)],'title':_0x37f43d(0x19e),'icon':_0x37f43d(0x190)};}function D(){const _0x470106=_0xbf616c;return{'id':u['id'],'type':_0x379259[_0x470106(0x1a2)],'title':'exchange.download','icon':_0x470106(0x1ad)};}const F={[_0x4ab08a[_0xbf616c(0x1af)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x573957,_0x3dec8d,_0x41d508,_0x232028)=>{for(var _0x121eb7=_0x232028>0x1?void 0x0:_0x232028?G(_0x3dec8d,_0x41d508):_0x3dec8d,_0x5d9f84=_0x573957['length']-0x1,_0x3dea3f;_0x5d9f84>=0x0;_0x5d9f84--)(_0x3dea3f=_0x573957[_0x5d9f84])&&(_0x121eb7=_0x3dea3f(_0x121eb7)||_0x121eb7);return _0x121eb7;},d=(_0x333466,_0x116213)=>(_0x3e5b5b,_0x3301da)=>_0x116213(_0x3e5b5b,_0x3301da,_0x333466);let c=class extends _0xa1640f{constructor(_0x3f1140,_0x1c2739){const _0x322eb3=_0xbf616c;super(),this[_0x322eb3(0x191)]=_0x3f1140,this[_0x322eb3(0x1ab)]=_0x1c2739,this['_initCommands'](),this[_0x322eb3(0x1b8)]();}['_initCommands'](){[p,u]['forEach'](_0x2111ad=>{const _0x23f13a=_0x5a0d;this[_0x23f13a(0x199)](this[_0x23f13a(0x191)]['registerCommand'](_0x2111ad));});}['_initMenus'](){const _0x397b38=_0xbf616c;this['_menuManagerService'][_0x397b38(0x1ac)](F);}};c=A([d(0x0,_0x14e85b),d(0x1,_0x58f3ca)],c);function _0x5a0d(_0x4a5487,_0x49795d){_0x4a5487=_0x4a5487-0x190;const _0x275a5a=_0x275a();let _0x5a0d30=_0x275a5a[_0x4a5487];return _0x5a0d30;}function _0x275a(){const _0x168494=['_commandService','onReady','_injector','length','_configService','exchange.file','DirectExportIcon','4359696bDVsQU','disposeWithMe','forEach','exportXLSXBySnapshot','exchange-client.operation.import-xlsx','1542EDcMFN','exchange.upload','type','importXLSXToSnapshot','sheets-exchange-client.config','BUTTON','importXLSXToUnitId','1079674XIyuqd','sheets-exchange-client.operation.exchange','search','getOwnPropertyDescriptor','setConfig','2125512KezbTw','onStarting','_menuManagerService','mergeMenu','ExportIcon','1UIewHh','OTHERS','exportXLSXByUnitId','OPERATION','30125080FkhwMA','4524864nunrOr','4915155mtjaHL','get','UNIVER_SHEET','add','_initMenus','unit','17690RRKLkH','pluginName','18uTHDrS','_config','FolderIcon'];_0x275a=function(){return _0x168494;};return _0x275a();}var j=Object['defineProperty'],B=Object[_0xbf616c(0x1a7)],$=(_0x41d293,_0x5768dc,_0xc4813)=>_0x5768dc in _0x41d293?j(_0x41d293,_0x5768dc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc4813}):_0x41d293[_0x5768dc]=_0xc4813,V=(_0x26e2fd,_0x473a47,_0x9c3558,_0x53aa42)=>{const _0x34471c=_0xbf616c;for(var _0x59b706=_0x53aa42>0x1?void 0x0:_0x53aa42?B(_0x473a47,_0x9c3558):_0x473a47,_0x1c9e41=_0x26e2fd[_0x34471c(0x194)]-0x1,_0x206503;_0x1c9e41>=0x0;_0x1c9e41--)(_0x206503=_0x26e2fd[_0x1c9e41])&&(_0x59b706=_0x206503(_0x59b706)||_0x59b706);return _0x59b706;},_=(_0x118908,_0x2adacf)=>(_0x2364cb,_0xbb783)=>_0x2adacf(_0x2364cb,_0xbb783,_0x118908),I=(_0x547cc8,_0x186dc7,_0x46a6c3)=>$(_0x547cc8,typeof _0x186dc7!='symbol'?_0x186dc7+'':_0x186dc7,_0x46a6c3);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x111c89{constructor(_0x4dbc39=l,_0x2f9ed0,_0x3e5939){const _0x185e1d=_0xbf616c;super(),this[_0x185e1d(0x1bd)]=_0x4dbc39,this[_0x185e1d(0x193)]=_0x2f9ed0,this[_0x185e1d(0x195)]=_0x3e5939;const {menu:_0x931e45,..._0xddfe7e}=_0x563f71({},l,this[_0x185e1d(0x1bd)]);_0x931e45&&this[_0x185e1d(0x195)][_0x185e1d(0x1a8)]('menu',_0x931e45,{'merge':!0x0}),this[_0x185e1d(0x195)][_0x185e1d(0x1a8)](H,_0xddfe7e);}[_0xbf616c(0x1aa)](){const _0x2d362f=_0xbf616c;[[c]][_0x2d362f(0x19a)](_0x321ca6=>this['_injector'][_0x2d362f(0x1b7)](_0x321ca6));}[_0xbf616c(0x192)](){const _0x1008c9=_0xbf616c;this[_0x1008c9(0x193)][_0x1008c9(0x1b5)](c);}};I(s,_0xbf616c(0x1bb),W),I(s,_0xbf616c(0x19f),_0x13b7e2['UNIVER_SHEET']),s=V([_0x18a2f5(_0x1d066c),_(0x1,_0x2dbe5d(_0x247dbc)),_(0x2,_0x16341d)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x45e85f=_0x16a2;(function(_0x195024,_0x26aae4){const _0x473e4c=_0x16a2,_0x2de2ad=_0x195024();while(!![]){try{const _0x203391=parseInt(_0x473e4c(0x138))/0x1+-parseInt(_0x473e4c(0x145))/0x2+-parseInt(_0x473e4c(0x134))/0x3+parseInt(_0x473e4c(0x118))/0x4*(-parseInt(_0x473e4c(0x122))/0x5)+parseInt(_0x473e4c(0x125))/0x6+parseInt(_0x473e4c(0x148))/0x7*(-parseInt(_0x473e4c(0x127))/0x8)+parseInt(_0x473e4c(0x137))/0x9*(parseInt(_0x473e4c(0x128))/0xa);if(_0x203391===_0x26aae4)break;else _0x2de2ad['push'](_0x2de2ad['shift']());}catch(_0x527330){_0x2de2ad['push'](_0x2de2ad['shift']());}}}(_0x48dd,0xea5a5));import{IExchangeOperateService as _0x28b166,UniverExchangeClientPlugin as _0x49a298}from'@univerjs-pro/exchange-client';import{CommandType as _0x129444,UniverInstanceType as _0x1df46f,Disposable as _0x4336c4,ICommandService as _0x33e9f7,DependentOn as _0x4bf1c9,Inject as _0x3ba88b,Injector as _0x30b157,Plugin as _0xede220,merge as _0xc93ffa,IConfigService as _0x209a56}from'@univerjs/core';import{MenuItemType as _0x113e38,getMenuHiddenObservable as _0x2a71f9,RibbonStartGroup as _0x2e5caf,IMenuManagerService as _0x421b36}from'@univerjs/ui';import{WorkbookExportPermission as _0x3c0bbb}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x514c93}from'@univerjs/sheets-ui';const u={'id':_0x45e85f(0x13b),'type':_0x129444[_0x45e85f(0x139)],'handler':async _0x39f604=>{const _0x46502f=_0x45e85f,_0x33d8da=_0x39f604[_0x46502f(0x121)](_0x28b166);return new URLSearchParams(location['search'])['get'](_0x46502f(0x124))?_0x33d8da[_0x46502f(0x143)]():_0x33d8da[_0x46502f(0x126)](),!0x0;}},l={'id':_0x45e85f(0x119),'type':_0x129444['OPERATION'],'handler':async _0xa6348d=>{const _0x237a79=_0x45e85f,_0x1fd981=_0xa6348d[_0x237a79(0x121)](_0x28b166);return new URLSearchParams(location[_0x237a79(0x132)])[_0x237a79(0x121)]('unit')?_0x1fd981[_0x237a79(0x13c)]():_0x1fd981[_0x237a79(0x149)](),!0x0;}},H=_0x45e85f(0x142),w=_0x45e85f(0x133),v={'name':H,'version':w},D=_0x45e85f(0x11c),d={},I=_0x45e85f(0x131);function F(_0x2c971d){const _0x4f210f=_0x45e85f;return{'id':I,'type':_0x113e38[_0x4f210f(0x11a)],'icon':_0x4f210f(0x12c),'tooltip':_0x4f210f(0x12b),'hidden$':_0x2a71f9(_0x2c971d,_0x1df46f[_0x4f210f(0x11d)]),'disabled$':_0x514c93(_0x2c971d,{'workbookTypes':[_0x3c0bbb]})};}function j(){const _0x4071a9=_0x45e85f;return{'id':u['id'],'type':_0x113e38[_0x4071a9(0x11b)],'title':_0x4071a9(0x13f),'icon':_0x4071a9(0x12a)};}function _0x16a2(_0x54d5d0,_0x5c75da){_0x54d5d0=_0x54d5d0-0x117;const _0x48dde9=_0x48dd();let _0x16a231=_0x48dde9[_0x54d5d0];return _0x16a231;}function G(){const _0x3ef173=_0x45e85f;return{'id':l['id'],'type':_0x113e38['BUTTON'],'title':'exchange.download','icon':_0x3ef173(0x13e)};}const A={[_0x2e5caf[_0x45e85f(0x13d)]]:{[I]:{'order':0.3,'menuItemFactory':F,[u['id']]:{'order':0x0,'menuItemFactory':j},[l['id']]:{'order':0x1,'menuItemFactory':G}}}};function _0x48dd(){const _0x2aafdc=['importXLSXToUnitId','_injector','181190sUtuJX','_initMenus','mergeMenu','119cRFlFG','exportXLSXBySnapshot','menu','defineProperty','4288408hZOIWI','exchange-client.operation.export-xlsx','SUBITEMS','BUTTON','sheets-exchange-client.config','UNIVER_SHEET','setConfig','version','_configService','get','5NQtGCR','_commandService','unit','6682434PNNMQM','importXLSXToSnapshot','749928iVbePF','22971230HRyQxF','_menuManagerService','FolderIcon','exchange.file','DirectExportIcon','add','getOwnPropertyDescriptor','_initCommands','forEach','sheets-exchange-client.operation.exchange','search','0.16.1-insiders.20260311-074e8ca','2082093mSgBKU','onStarting','symbol','9cYAuoF','999372AyatzU','OPERATION','length','exchange-client.operation.import-xlsx','exportXLSXByUnitId','OTHERS','ExportIcon','exchange.upload','packageName','_config','@univerjs-pro/sheets-exchange-client'];_0x48dd=function(){return _0x2aafdc;};return _0x48dd();}var B=Object[_0x45e85f(0x12e)],$=(_0x36ff72,_0x503ded,_0x938e94,_0x216522)=>{for(var _0x42fc69=_0x216522>0x1?void 0x0:_0x216522?B(_0x503ded,_0x938e94):_0x503ded,_0x3b7c4f=_0x36ff72['length']-0x1,_0x4d17d9;_0x3b7c4f>=0x0;_0x3b7c4f--)(_0x4d17d9=_0x36ff72[_0x3b7c4f])&&(_0x42fc69=_0x4d17d9(_0x42fc69)||_0x42fc69);return _0x42fc69;},g=(_0x2eda0d,_0x428a43)=>(_0x29c255,_0x3a965a)=>_0x428a43(_0x29c255,_0x3a965a,_0x2eda0d);let s=class extends _0x4336c4{constructor(_0xfcdafe,_0x38b08c){const _0x56a699=_0x45e85f;super(),this['_commandService']=_0xfcdafe,this[_0x56a699(0x129)]=_0x38b08c,this[_0x56a699(0x12f)](),this[_0x56a699(0x146)]();}[_0x45e85f(0x12f)](){const _0x1cd24a=_0x45e85f;[u,l][_0x1cd24a(0x130)](_0x462e37=>{const _0x14be12=_0x1cd24a;this['disposeWithMe'](this[_0x14be12(0x123)]['registerCommand'](_0x462e37));});}['_initMenus'](){const _0x3d7a3b=_0x45e85f;this[_0x3d7a3b(0x129)][_0x3d7a3b(0x147)](A);}};s=$([g(0x0,_0x33e9f7),g(0x1,_0x421b36)],s);var V=Object[_0x45e85f(0x117)],W=Object[_0x45e85f(0x12e)],K=(_0x202ffd,_0x1c1f4b,_0x5540a2)=>_0x1c1f4b in _0x202ffd?V(_0x202ffd,_0x1c1f4b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5540a2}):_0x202ffd[_0x1c1f4b]=_0x5540a2,Y=(_0x524c27,_0x30c368,_0x206b9,_0x268bf6)=>{const _0x59827a=_0x45e85f;for(var _0x3216f2=_0x268bf6>0x1?void 0x0:_0x268bf6?W(_0x30c368,_0x206b9):_0x30c368,_0x420e5b=_0x524c27[_0x59827a(0x13a)]-0x1,_0x5bfb0d;_0x420e5b>=0x0;_0x420e5b--)(_0x5bfb0d=_0x524c27[_0x420e5b])&&(_0x3216f2=_0x5bfb0d(_0x3216f2)||_0x3216f2);return _0x3216f2;},h=(_0x2d9ae1,_0x5bbb23)=>(_0x43339a,_0x57104b)=>_0x5bbb23(_0x43339a,_0x57104b,_0x2d9ae1),m=(_0x47129e,_0xc28c09,_0x3731d7)=>K(_0x47129e,typeof _0xc28c09!=_0x45e85f(0x136)?_0xc28c09+'':_0xc28c09,_0x3731d7);let a=class extends _0xede220{constructor(_0x557480=d,_0x156b1e,_0x15ba7f){const _0x436171=_0x45e85f;super(),this[_0x436171(0x141)]=_0x557480,this[_0x436171(0x144)]=_0x156b1e,this[_0x436171(0x120)]=_0x15ba7f;const {menu:_0x21610c,..._0x907bd9}=_0xc93ffa({},d,this['_config']);_0x21610c&&this[_0x436171(0x120)][_0x436171(0x11e)](_0x436171(0x14a),_0x21610c,{'merge':!0x0}),this[_0x436171(0x120)][_0x436171(0x11e)](D,_0x907bd9);}[_0x45e85f(0x135)](){const _0x356938=_0x45e85f;[[s]][_0x356938(0x130)](_0x6fe66=>this[_0x356938(0x144)][_0x356938(0x12d)](_0x6fe66));}['onReady'](){const _0xead069=_0x45e85f;this['_injector'][_0xead069(0x121)](s);}};m(a,'pluginName','SHEET_EXCHANGE_CLIENT_PLUGIN'),m(a,_0x45e85f(0x140),v['name']),m(a,_0x45e85f(0x11f),v[_0x45e85f(0x11f)]),m(a,'type',_0x1df46f[_0x45e85f(0x11d)]),a=Y([_0x4bf1c9(_0x49a298),h(0x1,_0x3ba88b(_0x30b157)),h(0x2,_0x209a56)],a);export{l as ExportXLSXOperation,u as ImportXLSXOperation,a as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0xbf616c=_0x5a0d;(function(_0x4abdb5,_0x522da8){const _0x243b0a=_0x5a0d,_0x25aee1=_0x4abdb5();while(!![]){try{const _0x29314f=parseInt(_0x243b0a(0x1ae))/0x1*(parseInt(_0x243b0a(0x1a4))/0x2)+parseInt(_0x243b0a(0x198))/0x3+parseInt(_0x243b0a(0x1b3))/0x4+-parseInt(_0x243b0a(0x1ba))/0x5*(-parseInt(_0x243b0a(0x19d))/0x6)+-parseInt(_0x243b0a(0x1b4))/0x7+-parseInt(_0x243b0a(0x1a9))/0x8*(-parseInt(_0x243b0a(0x1bc))/0x9)+-parseInt(_0x243b0a(0x1b2))/0xa;if(_0x29314f===_0x522da8)break;else _0x25aee1['push'](_0x25aee1['shift']());}catch(_0x32b8dc){_0x25aee1['push'](_0x25aee1['shift']());}}}(_0x275a,0xcf950));import{IExchangeOperateService as _0x326668,UniverExchangeClientPlugin as _0x1d066c}from'@univerjs-pro/exchange-client';import{CommandType as _0x2689a3,UniverInstanceType as _0x13b7e2,Disposable as _0xa1640f,ICommandService as _0x14e85b,DependentOn as _0x18a2f5,Inject as _0x2dbe5d,Injector as _0x247dbc,Plugin as _0x111c89,merge as _0x563f71,IConfigService as _0x16341d}from'@univerjs/core';import{MenuItemType as _0x379259,getMenuHiddenObservable as _0x3ab569,RibbonStartGroup as _0x4ab08a,IMenuManagerService as _0x58f3ca}from'@univerjs/ui';import{WorkbookExportPermission as _0x447e76}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x51c338}from'@univerjs/sheets-ui';const p={'id':_0xbf616c(0x19c),'type':_0x2689a3[_0xbf616c(0x1b1)],'handler':async _0x46f46f=>{const _0x9fc45d=_0xbf616c,_0x2c1abd=_0x46f46f[_0x9fc45d(0x1b5)](_0x326668);return new URLSearchParams(location[_0x9fc45d(0x1a6)])['get'](_0x9fc45d(0x1b9))?_0x2c1abd[_0x9fc45d(0x1a3)]():_0x2c1abd[_0x9fc45d(0x1a0)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x2689a3[_0xbf616c(0x1b1)],'handler':async _0x10011e=>{const _0x21ea07=_0xbf616c,_0x4bea4e=_0x10011e[_0x21ea07(0x1b5)](_0x326668);return new URLSearchParams(location[_0x21ea07(0x1a6)])[_0x21ea07(0x1b5)](_0x21ea07(0x1b9))?_0x4bea4e[_0x21ea07(0x1b0)]():_0x4bea4e[_0x21ea07(0x19b)](),!0x0;}},H=_0xbf616c(0x1a1),l={},S=_0xbf616c(0x1a5);function R(_0x55930c){const _0x1c7879=_0xbf616c;return{'id':S,'type':_0x379259['SUBITEMS'],'icon':_0x1c7879(0x197),'tooltip':_0x1c7879(0x196),'hidden$':_0x3ab569(_0x55930c,_0x13b7e2[_0x1c7879(0x1b6)]),'disabled$':_0x51c338(_0x55930c,{'workbookTypes':[_0x447e76]})};}function w(){const _0x37f43d=_0xbf616c;return{'id':p['id'],'type':_0x379259[_0x37f43d(0x1a2)],'title':_0x37f43d(0x19e),'icon':_0x37f43d(0x190)};}function D(){const _0x470106=_0xbf616c;return{'id':u['id'],'type':_0x379259[_0x470106(0x1a2)],'title':'exchange.download','icon':_0x470106(0x1ad)};}const F={[_0x4ab08a[_0xbf616c(0x1af)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x573957,_0x3dec8d,_0x41d508,_0x232028)=>{for(var _0x121eb7=_0x232028>0x1?void 0x0:_0x232028?G(_0x3dec8d,_0x41d508):_0x3dec8d,_0x5d9f84=_0x573957['length']-0x1,_0x3dea3f;_0x5d9f84>=0x0;_0x5d9f84--)(_0x3dea3f=_0x573957[_0x5d9f84])&&(_0x121eb7=_0x3dea3f(_0x121eb7)||_0x121eb7);return _0x121eb7;},d=(_0x333466,_0x116213)=>(_0x3e5b5b,_0x3301da)=>_0x116213(_0x3e5b5b,_0x3301da,_0x333466);let c=class extends _0xa1640f{constructor(_0x3f1140,_0x1c2739){const _0x322eb3=_0xbf616c;super(),this[_0x322eb3(0x191)]=_0x3f1140,this[_0x322eb3(0x1ab)]=_0x1c2739,this['_initCommands'](),this[_0x322eb3(0x1b8)]();}['_initCommands'](){[p,u]['forEach'](_0x2111ad=>{const _0x23f13a=_0x5a0d;this[_0x23f13a(0x199)](this[_0x23f13a(0x191)]['registerCommand'](_0x2111ad));});}['_initMenus'](){const _0x397b38=_0xbf616c;this['_menuManagerService'][_0x397b38(0x1ac)](F);}};c=A([d(0x0,_0x14e85b),d(0x1,_0x58f3ca)],c);function _0x5a0d(_0x4a5487,_0x49795d){_0x4a5487=_0x4a5487-0x190;const _0x275a5a=_0x275a();let _0x5a0d30=_0x275a5a[_0x4a5487];return _0x5a0d30;}function _0x275a(){const _0x168494=['_commandService','onReady','_injector','length','_configService','exchange.file','DirectExportIcon','4359696bDVsQU','disposeWithMe','forEach','exportXLSXBySnapshot','exchange-client.operation.import-xlsx','1542EDcMFN','exchange.upload','type','importXLSXToSnapshot','sheets-exchange-client.config','BUTTON','importXLSXToUnitId','1079674XIyuqd','sheets-exchange-client.operation.exchange','search','getOwnPropertyDescriptor','setConfig','2125512KezbTw','onStarting','_menuManagerService','mergeMenu','ExportIcon','1UIewHh','OTHERS','exportXLSXByUnitId','OPERATION','30125080FkhwMA','4524864nunrOr','4915155mtjaHL','get','UNIVER_SHEET','add','_initMenus','unit','17690RRKLkH','pluginName','18uTHDrS','_config','FolderIcon'];_0x275a=function(){return _0x168494;};return _0x275a();}var j=Object['defineProperty'],B=Object[_0xbf616c(0x1a7)],$=(_0x41d293,_0x5768dc,_0xc4813)=>_0x5768dc in _0x41d293?j(_0x41d293,_0x5768dc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc4813}):_0x41d293[_0x5768dc]=_0xc4813,V=(_0x26e2fd,_0x473a47,_0x9c3558,_0x53aa42)=>{const _0x34471c=_0xbf616c;for(var _0x59b706=_0x53aa42>0x1?void 0x0:_0x53aa42?B(_0x473a47,_0x9c3558):_0x473a47,_0x1c9e41=_0x26e2fd[_0x34471c(0x194)]-0x1,_0x206503;_0x1c9e41>=0x0;_0x1c9e41--)(_0x206503=_0x26e2fd[_0x1c9e41])&&(_0x59b706=_0x206503(_0x59b706)||_0x59b706);return _0x59b706;},_=(_0x118908,_0x2adacf)=>(_0x2364cb,_0xbb783)=>_0x2adacf(_0x2364cb,_0xbb783,_0x118908),I=(_0x547cc8,_0x186dc7,_0x46a6c3)=>$(_0x547cc8,typeof _0x186dc7!='symbol'?_0x186dc7+'':_0x186dc7,_0x46a6c3);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x111c89{constructor(_0x4dbc39=l,_0x2f9ed0,_0x3e5939){const _0x185e1d=_0xbf616c;super(),this[_0x185e1d(0x1bd)]=_0x4dbc39,this[_0x185e1d(0x193)]=_0x2f9ed0,this[_0x185e1d(0x195)]=_0x3e5939;const {menu:_0x931e45,..._0xddfe7e}=_0x563f71({},l,this[_0x185e1d(0x1bd)]);_0x931e45&&this[_0x185e1d(0x195)][_0x185e1d(0x1a8)]('menu',_0x931e45,{'merge':!0x0}),this[_0x185e1d(0x195)][_0x185e1d(0x1a8)](H,_0xddfe7e);}[_0xbf616c(0x1aa)](){const _0x2d362f=_0xbf616c;[[c]][_0x2d362f(0x19a)](_0x321ca6=>this['_injector'][_0x2d362f(0x1b7)](_0x321ca6));}[_0xbf616c(0x192)](){const _0x1008c9=_0xbf616c;this[_0x1008c9(0x193)][_0x1008c9(0x1b5)](c);}};I(s,_0xbf616c(0x1bb),W),I(s,_0xbf616c(0x19f),_0x13b7e2['UNIVER_SHEET']),s=V([_0x18a2f5(_0x1d066c),_(0x1,_0x2dbe5d(_0x247dbc)),_(0x2,_0x16341d)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x45e85f=_0x16a2;(function(_0x195024,_0x26aae4){const _0x473e4c=_0x16a2,_0x2de2ad=_0x195024();while(!![]){try{const _0x203391=parseInt(_0x473e4c(0x138))/0x1+-parseInt(_0x473e4c(0x145))/0x2+-parseInt(_0x473e4c(0x134))/0x3+parseInt(_0x473e4c(0x118))/0x4*(-parseInt(_0x473e4c(0x122))/0x5)+parseInt(_0x473e4c(0x125))/0x6+parseInt(_0x473e4c(0x148))/0x7*(-parseInt(_0x473e4c(0x127))/0x8)+parseInt(_0x473e4c(0x137))/0x9*(parseInt(_0x473e4c(0x128))/0xa);if(_0x203391===_0x26aae4)break;else _0x2de2ad['push'](_0x2de2ad['shift']());}catch(_0x527330){_0x2de2ad['push'](_0x2de2ad['shift']());}}}(_0x48dd,0xea5a5));import{IExchangeOperateService as _0x28b166,UniverExchangeClientPlugin as _0x49a298}from'@univerjs-pro/exchange-client';import{CommandType as _0x129444,UniverInstanceType as _0x1df46f,Disposable as _0x4336c4,ICommandService as _0x33e9f7,DependentOn as _0x4bf1c9,Inject as _0x3ba88b,Injector as _0x30b157,Plugin as _0xede220,merge as _0xc93ffa,IConfigService as _0x209a56}from'@univerjs/core';import{MenuItemType as _0x113e38,getMenuHiddenObservable as _0x2a71f9,RibbonStartGroup as _0x2e5caf,IMenuManagerService as _0x421b36}from'@univerjs/ui';import{WorkbookExportPermission as _0x3c0bbb}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x514c93}from'@univerjs/sheets-ui';const u={'id':_0x45e85f(0x13b),'type':_0x129444[_0x45e85f(0x139)],'handler':async _0x39f604=>{const _0x46502f=_0x45e85f,_0x33d8da=_0x39f604[_0x46502f(0x121)](_0x28b166);return new URLSearchParams(location['search'])['get'](_0x46502f(0x124))?_0x33d8da[_0x46502f(0x143)]():_0x33d8da[_0x46502f(0x126)](),!0x0;}},l={'id':_0x45e85f(0x119),'type':_0x129444['OPERATION'],'handler':async _0xa6348d=>{const _0x237a79=_0x45e85f,_0x1fd981=_0xa6348d[_0x237a79(0x121)](_0x28b166);return new URLSearchParams(location[_0x237a79(0x132)])[_0x237a79(0x121)]('unit')?_0x1fd981[_0x237a79(0x13c)]():_0x1fd981[_0x237a79(0x149)](),!0x0;}},H=_0x45e85f(0x142),w=_0x45e85f(0x133),v={'name':H,'version':w},D=_0x45e85f(0x11c),d={},I=_0x45e85f(0x131);function F(_0x2c971d){const _0x4f210f=_0x45e85f;return{'id':I,'type':_0x113e38[_0x4f210f(0x11a)],'icon':_0x4f210f(0x12c),'tooltip':_0x4f210f(0x12b),'hidden$':_0x2a71f9(_0x2c971d,_0x1df46f[_0x4f210f(0x11d)]),'disabled$':_0x514c93(_0x2c971d,{'workbookTypes':[_0x3c0bbb]})};}function j(){const _0x4071a9=_0x45e85f;return{'id':u['id'],'type':_0x113e38[_0x4071a9(0x11b)],'title':_0x4071a9(0x13f),'icon':_0x4071a9(0x12a)};}function _0x16a2(_0x54d5d0,_0x5c75da){_0x54d5d0=_0x54d5d0-0x117;const _0x48dde9=_0x48dd();let _0x16a231=_0x48dde9[_0x54d5d0];return _0x16a231;}function G(){const _0x3ef173=_0x45e85f;return{'id':l['id'],'type':_0x113e38['BUTTON'],'title':'exchange.download','icon':_0x3ef173(0x13e)};}const A={[_0x2e5caf[_0x45e85f(0x13d)]]:{[I]:{'order':0.3,'menuItemFactory':F,[u['id']]:{'order':0x0,'menuItemFactory':j},[l['id']]:{'order':0x1,'menuItemFactory':G}}}};function _0x48dd(){const _0x2aafdc=['importXLSXToUnitId','_injector','181190sUtuJX','_initMenus','mergeMenu','119cRFlFG','exportXLSXBySnapshot','menu','defineProperty','4288408hZOIWI','exchange-client.operation.export-xlsx','SUBITEMS','BUTTON','sheets-exchange-client.config','UNIVER_SHEET','setConfig','version','_configService','get','5NQtGCR','_commandService','unit','6682434PNNMQM','importXLSXToSnapshot','749928iVbePF','22971230HRyQxF','_menuManagerService','FolderIcon','exchange.file','DirectExportIcon','add','getOwnPropertyDescriptor','_initCommands','forEach','sheets-exchange-client.operation.exchange','search','0.16.1-insiders.20260311-074e8ca','2082093mSgBKU','onStarting','symbol','9cYAuoF','999372AyatzU','OPERATION','length','exchange-client.operation.import-xlsx','exportXLSXByUnitId','OTHERS','ExportIcon','exchange.upload','packageName','_config','@univerjs-pro/sheets-exchange-client'];_0x48dd=function(){return _0x2aafdc;};return _0x48dd();}var B=Object[_0x45e85f(0x12e)],$=(_0x36ff72,_0x503ded,_0x938e94,_0x216522)=>{for(var _0x42fc69=_0x216522>0x1?void 0x0:_0x216522?B(_0x503ded,_0x938e94):_0x503ded,_0x3b7c4f=_0x36ff72['length']-0x1,_0x4d17d9;_0x3b7c4f>=0x0;_0x3b7c4f--)(_0x4d17d9=_0x36ff72[_0x3b7c4f])&&(_0x42fc69=_0x4d17d9(_0x42fc69)||_0x42fc69);return _0x42fc69;},g=(_0x2eda0d,_0x428a43)=>(_0x29c255,_0x3a965a)=>_0x428a43(_0x29c255,_0x3a965a,_0x2eda0d);let s=class extends _0x4336c4{constructor(_0xfcdafe,_0x38b08c){const _0x56a699=_0x45e85f;super(),this['_commandService']=_0xfcdafe,this[_0x56a699(0x129)]=_0x38b08c,this[_0x56a699(0x12f)](),this[_0x56a699(0x146)]();}[_0x45e85f(0x12f)](){const _0x1cd24a=_0x45e85f;[u,l][_0x1cd24a(0x130)](_0x462e37=>{const _0x14be12=_0x1cd24a;this['disposeWithMe'](this[_0x14be12(0x123)]['registerCommand'](_0x462e37));});}['_initMenus'](){const _0x3d7a3b=_0x45e85f;this[_0x3d7a3b(0x129)][_0x3d7a3b(0x147)](A);}};s=$([g(0x0,_0x33e9f7),g(0x1,_0x421b36)],s);var V=Object[_0x45e85f(0x117)],W=Object[_0x45e85f(0x12e)],K=(_0x202ffd,_0x1c1f4b,_0x5540a2)=>_0x1c1f4b in _0x202ffd?V(_0x202ffd,_0x1c1f4b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5540a2}):_0x202ffd[_0x1c1f4b]=_0x5540a2,Y=(_0x524c27,_0x30c368,_0x206b9,_0x268bf6)=>{const _0x59827a=_0x45e85f;for(var _0x3216f2=_0x268bf6>0x1?void 0x0:_0x268bf6?W(_0x30c368,_0x206b9):_0x30c368,_0x420e5b=_0x524c27[_0x59827a(0x13a)]-0x1,_0x5bfb0d;_0x420e5b>=0x0;_0x420e5b--)(_0x5bfb0d=_0x524c27[_0x420e5b])&&(_0x3216f2=_0x5bfb0d(_0x3216f2)||_0x3216f2);return _0x3216f2;},h=(_0x2d9ae1,_0x5bbb23)=>(_0x43339a,_0x57104b)=>_0x5bbb23(_0x43339a,_0x57104b,_0x2d9ae1),m=(_0x47129e,_0xc28c09,_0x3731d7)=>K(_0x47129e,typeof _0xc28c09!=_0x45e85f(0x136)?_0xc28c09+'':_0xc28c09,_0x3731d7);let a=class extends _0xede220{constructor(_0x557480=d,_0x156b1e,_0x15ba7f){const _0x436171=_0x45e85f;super(),this[_0x436171(0x141)]=_0x557480,this[_0x436171(0x144)]=_0x156b1e,this[_0x436171(0x120)]=_0x15ba7f;const {menu:_0x21610c,..._0x907bd9}=_0xc93ffa({},d,this['_config']);_0x21610c&&this[_0x436171(0x120)][_0x436171(0x11e)](_0x436171(0x14a),_0x21610c,{'merge':!0x0}),this[_0x436171(0x120)][_0x436171(0x11e)](D,_0x907bd9);}[_0x45e85f(0x135)](){const _0x356938=_0x45e85f;[[s]][_0x356938(0x130)](_0x6fe66=>this[_0x356938(0x144)][_0x356938(0x12d)](_0x6fe66));}['onReady'](){const _0xead069=_0x45e85f;this['_injector'][_0xead069(0x121)](s);}};m(a,'pluginName','SHEET_EXCHANGE_CLIENT_PLUGIN'),m(a,_0x45e85f(0x140),v['name']),m(a,_0x45e85f(0x11f),v[_0x45e85f(0x11f)]),m(a,'type',_0x1df46f[_0x45e85f(0x11d)]),a=Y([_0x4bf1c9(_0x49a298),h(0x1,_0x3ba88b(_0x30b157)),h(0x2,_0x209a56)],a);export{l as ExportXLSXOperation,u as ImportXLSXOperation,a as UniverSheetsExchangeClientPlugin};
@@ -5,6 +5,8 @@ export declare class UniverSheetsExchangeClientPlugin extends Plugin {
5
5
  readonly _injector: Injector;
6
6
  private readonly _configService;
7
7
  static pluginName: string;
8
+ static packageName: string;
9
+ static version: string;
8
10
  static type: UniverInstanceType;
9
11
  constructor(_config: Partial<IUniverSheetsExchangeClientConfig> | undefined, _injector: Injector, _configService: IConfigService);
10
12
  onStarting(): void;
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x4976(_0x278932,_0x67dcfc){_0x278932=_0x278932-0xd7;const _0x288c6d=_0x288c();let _0x4976c4=_0x288c6d[_0x278932];return _0x4976c4;}(function(_0x274af7,_0x234068){const _0x2bd1bd=_0x4976,_0x5a3f6d=_0x274af7();while(!![]){try{const _0x2f75f8=parseInt(_0x2bd1bd(0xe5))/0x1+-parseInt(_0x2bd1bd(0xfc))/0x2+-parseInt(_0x2bd1bd(0x118))/0x3*(-parseInt(_0x2bd1bd(0xf3))/0x4)+parseInt(_0x2bd1bd(0xfa))/0x5*(-parseInt(_0x2bd1bd(0x117))/0x6)+-parseInt(_0x2bd1bd(0x11f))/0x7+-parseInt(_0x2bd1bd(0x113))/0x8*(parseInt(_0x2bd1bd(0x123))/0x9)+parseInt(_0x2bd1bd(0x110))/0xa;if(_0x2f75f8===_0x234068)break;else _0x5a3f6d['push'](_0x5a3f6d['shift']());}catch(_0x2046ca){_0x5a3f6d['push'](_0x5a3f6d['shift']());}}}(_0x288c,0x47fce),function(_0x48a7c7,_0xd9f91e){const _0x3d20dc=_0x4976;typeof exports==_0x3d20dc(0xf4)&&typeof module<'u'?_0xd9f91e(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x3d20dc(0x119)&&define[_0x3d20dc(0x101)]?define([_0x3d20dc(0xf1),_0x3d20dc(0xe1),_0x3d20dc(0x12c),_0x3d20dc(0xf9),'@univerjs/sheets',_0x3d20dc(0xe9)],_0xd9f91e):(_0x48a7c7=typeof globalThis<'u'?globalThis:_0x48a7c7||self,_0xd9f91e(_0x48a7c7[_0x3d20dc(0xdc)]={},_0x48a7c7[_0x3d20dc(0x125)],_0x48a7c7[_0x3d20dc(0xdb)],_0x48a7c7[_0x3d20dc(0xf2)],_0x48a7c7[_0x3d20dc(0xec)],_0x48a7c7[_0x3d20dc(0xf7)]));}(this,function(_0x21af04,_0xf14c0d,_0x2b7a3f,_0x562869,_0x2148b4,_0x1864a5){'use strict';const _0x2df911=_0x4976;const _0x1d42e7={'id':_0x2df911(0x124),'type':_0x2b7a3f[_0x2df911(0x126)][_0x2df911(0xf5)],'handler':async _0x3cf75f=>{const _0x1bf8bf=_0x2df911,_0x3069ba=_0x3cf75f[_0x1bf8bf(0x12b)](_0xf14c0d[_0x1bf8bf(0x11b)]);return new URLSearchParams(location[_0x1bf8bf(0x120)])[_0x1bf8bf(0x12b)](_0x1bf8bf(0x109))?_0x3069ba[_0x1bf8bf(0x102)]():_0x3069ba[_0x1bf8bf(0x10a)](),!0x0;}},_0x87d039={'id':_0x2df911(0x121),'type':_0x2b7a3f[_0x2df911(0x126)][_0x2df911(0xf5)],'handler':async _0x23b2c2=>{const _0x320b40=_0x2df911,_0x391c58=_0x23b2c2[_0x320b40(0x12b)](_0xf14c0d[_0x320b40(0x11b)]);return new URLSearchParams(location[_0x320b40(0x120)])['get'](_0x320b40(0x109))?_0x391c58[_0x320b40(0x11e)]():_0x391c58[_0x320b40(0xe2)](),!0x0;}},_0x171e93=_0x2df911(0x107),_0x590b06={},_0x5e1140=_0x2df911(0x116);function _0x23a892(_0x4f82a0){const _0x52f68f=_0x2df911;return{'id':_0x5e1140,'type':_0x562869['MenuItemType'][_0x52f68f(0x10e)],'icon':_0x52f68f(0xe8),'tooltip':_0x52f68f(0xfe),'hidden$':_0x562869[_0x52f68f(0xd9)](_0x4f82a0,_0x2b7a3f[_0x52f68f(0x129)][_0x52f68f(0xe4)]),'disabled$':_0x1864a5[_0x52f68f(0xdf)](_0x4f82a0,{'workbookTypes':[_0x2148b4[_0x52f68f(0x128)]]})};}function _0x2481fc(){const _0x5b3c11=_0x2df911;return{'id':_0x1d42e7['id'],'type':_0x562869[_0x5b3c11(0x103)][_0x5b3c11(0xef)],'title':_0x5b3c11(0xea),'icon':_0x5b3c11(0xd8)};}function _0x414999(){const _0xd9cecb=_0x2df911;return{'id':_0x87d039['id'],'type':_0x562869[_0xd9cecb(0x103)][_0xd9cecb(0xef)],'title':_0xd9cecb(0x10d),'icon':_0xd9cecb(0x111)};}const _0x43726d={[_0x562869[_0x2df911(0xe6)][_0x2df911(0xd7)]]:{[_0x5e1140]:{'order':0.3,'menuItemFactory':_0x23a892,[_0x1d42e7['id']]:{'order':0x0,'menuItemFactory':_0x2481fc},[_0x87d039['id']]:{'order':0x1,'menuItemFactory':_0x414999}}}};var _0x32eba2=Object[_0x2df911(0x12a)],_0x1fa620=(_0x1e4736,_0x4a1121,_0x596469,_0x10af26)=>{const _0x699aac=_0x2df911;for(var _0x1dff62=_0x10af26>0x1?void 0x0:_0x10af26?_0x32eba2(_0x4a1121,_0x596469):_0x4a1121,_0x3f3b3b=_0x1e4736[_0x699aac(0xf8)]-0x1,_0x18a56a;_0x3f3b3b>=0x0;_0x3f3b3b--)(_0x18a56a=_0x1e4736[_0x3f3b3b])&&(_0x1dff62=_0x18a56a(_0x1dff62)||_0x1dff62);return _0x1dff62;},_0x146b18=(_0x29e4c7,_0x380899)=>(_0x47c45f,_0x3db7b3)=>_0x380899(_0x47c45f,_0x3db7b3,_0x29e4c7);let _0x383059=class extends _0x2b7a3f[_0x2df911(0x11a)]{constructor(_0x46d4d0,_0x234d4c){const _0x19c383=_0x2df911;super(),this[_0x19c383(0xe0)]=_0x46d4d0,this[_0x19c383(0x10f)]=_0x234d4c,this['_initCommands'](),this['_initMenus']();}['_initCommands'](){const _0x1b2b08=_0x2df911;[_0x1d42e7,_0x87d039][_0x1b2b08(0xfd)](_0x2aa119=>{const _0x10d26f=_0x1b2b08;this[_0x10d26f(0x11d)](this[_0x10d26f(0xe0)][_0x10d26f(0xfb)](_0x2aa119));});}['_initMenus'](){const _0x4c6384=_0x2df911;this[_0x4c6384(0x10f)]['mergeMenu'](_0x43726d);}};_0x383059=_0x1fa620([_0x146b18(0x0,_0x2b7a3f[_0x2df911(0x11c)]),_0x146b18(0x1,_0x562869[_0x2df911(0xe7)])],_0x383059);var _0x466387=Object[_0x2df911(0xdd)],_0x529925=Object[_0x2df911(0x12a)],_0x5c1379=(_0x1051dc,_0x3078d1,_0x5a8659)=>_0x3078d1 in _0x1051dc?_0x466387(_0x1051dc,_0x3078d1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a8659}):_0x1051dc[_0x3078d1]=_0x5a8659,_0x190ba1=(_0x37ef02,_0xf27ed5,_0x9a4dea,_0x53acd7)=>{const _0x26ced0=_0x2df911;for(var _0x284678=_0x53acd7>0x1?void 0x0:_0x53acd7?_0x529925(_0xf27ed5,_0x9a4dea):_0xf27ed5,_0x4d5f09=_0x37ef02[_0x26ced0(0xf8)]-0x1,_0x1dad86;_0x4d5f09>=0x0;_0x4d5f09--)(_0x1dad86=_0x37ef02[_0x4d5f09])&&(_0x284678=_0x1dad86(_0x284678)||_0x284678);return _0x284678;},_0x3424d3=(_0x255f98,_0x15648f)=>(_0x1e90e5,_0x4bc734)=>_0x15648f(_0x1e90e5,_0x4bc734,_0x255f98),_0x51154c=(_0x2cb754,_0x380f29,_0xcf7503)=>_0x5c1379(_0x2cb754,typeof _0x380f29!=_0x2df911(0x114)?_0x380f29+'':_0x380f29,_0xcf7503);const _0x3c782e=_0x2df911(0x127);_0x21af04[_0x2df911(0xde)]=class extends _0x2b7a3f[_0x2df911(0x112)]{constructor(_0x378036=_0x590b06,_0x3487a3,_0x169037){const _0x353633=_0x2df911;super(),this[_0x353633(0x10b)]=_0x378036,this[_0x353633(0x10c)]=_0x3487a3,this['_configService']=_0x169037;const {menu:_0x2d656e,..._0x263fe6}=_0x2b7a3f[_0x353633(0xe3)]({},_0x590b06,this[_0x353633(0x10b)]);_0x2d656e&&this[_0x353633(0xda)][_0x353633(0x104)](_0x353633(0x108),_0x2d656e,{'merge':!0x0}),this['_configService'][_0x353633(0x104)](_0x171e93,_0x263fe6);}[_0x2df911(0x105)](){const _0x2fc869=_0x2df911;[[_0x383059]]['forEach'](_0x176811=>this['_injector'][_0x2fc869(0x100)](_0x176811));}[_0x2df911(0x106)](){this['_injector']['get'](_0x383059);}},_0x51154c(_0x21af04[_0x2df911(0xde)],'pluginName',_0x3c782e),_0x51154c(_0x21af04['UniverSheetsExchangeClientPlugin'],'type',_0x2b7a3f[_0x2df911(0x129)][_0x2df911(0xe4)]),_0x21af04[_0x2df911(0xde)]=_0x190ba1([_0x2b7a3f[_0x2df911(0xed)](_0xf14c0d[_0x2df911(0xff)]),_0x3424d3(0x1,_0x2b7a3f[_0x2df911(0xeb)](_0x2b7a3f[_0x2df911(0xf0)])),_0x3424d3(0x2,_0x2b7a3f[_0x2df911(0x122)])],_0x21af04['UniverSheetsExchangeClientPlugin']),_0x21af04[_0x2df911(0xee)]=_0x87d039,_0x21af04[_0x2df911(0xf6)]=_0x1d42e7,Object[_0x2df911(0xdd)](_0x21af04,Symbol[_0x2df911(0x115)],{'value':'Module'});}));function _0x288c(){const _0x438300=['exchange-client.operation.export-xlsx','IConfigService','81lFhUiH','exchange-client.operation.import-xlsx','UniverProExchangeClient','CommandType','SHEET_EXCHANGE_CLIENT_PLUGIN','WorkbookExportPermission','UniverInstanceType','getOwnPropertyDescriptor','get','@univerjs/core','OTHERS','FolderIcon','getMenuHiddenObservable','_configService','UniverCore','UniverProSheetsExchangeClient','defineProperty','UniverSheetsExchangeClientPlugin','getCurrentRangeDisable$','_commandService','@univerjs-pro/exchange-client','exportXLSXBySnapshot','merge','UNIVER_SHEET','84028QMGIVg','RibbonStartGroup','IMenuManagerService','DirectExportIcon','@univerjs/sheets-ui','exchange.upload','Inject','UniverSheets','DependentOn','ExportXLSXOperation','BUTTON','Injector','exports','UniverUi','834132RvgzSs','object','OPERATION','ImportXLSXOperation','UniverSheetsUi','length','@univerjs/ui','1032580oWflbr','registerCommand','967336WlNUxS','forEach','exchange.file','UniverExchangeClientPlugin','add','amd','importXLSXToUnitId','MenuItemType','setConfig','onStarting','onReady','sheets-exchange-client.config','menu','unit','importXLSXToSnapshot','_config','_injector','exchange.download','SUBITEMS','_menuManagerService','12803410VHxciN','ExportIcon','Plugin','272760JDgKXG','symbol','toStringTag','sheets-exchange-client.operation.exchange','6pArVAc','3wnwKfp','function','Disposable','IExchangeOperateService','ICommandService','disposeWithMe','exportXLSXByUnitId','1967007ifkhkP','search'];_0x288c=function(){return _0x438300;};return _0x288c();}
1
+ function _0x1954(_0x282880,_0x305b93){_0x282880=_0x282880-0x1c3;const _0x1f7914=_0x1f79();let _0x195401=_0x1f7914[_0x282880];return _0x195401;}(function(_0x5412a6,_0x39f8b4){const _0x5f25a1=_0x1954,_0x129ec0=_0x5412a6();while(!![]){try{const _0xc3bc57=-parseInt(_0x5f25a1(0x1f1))/0x1+parseInt(_0x5f25a1(0x1e4))/0x2+-parseInt(_0x5f25a1(0x1fd))/0x3*(parseInt(_0x5f25a1(0x1e8))/0x4)+parseInt(_0x5f25a1(0x20c))/0x5+parseInt(_0x5f25a1(0x1eb))/0x6+-parseInt(_0x5f25a1(0x1df))/0x7+parseInt(_0x5f25a1(0x1de))/0x8;if(_0xc3bc57===_0x39f8b4)break;else _0x129ec0['push'](_0x129ec0['shift']());}catch(_0x54bcd9){_0x129ec0['push'](_0x129ec0['shift']());}}}(_0x1f79,0xecb96),function(_0x4dbf02,_0x3405f5){const _0x3c7427=_0x1954;typeof exports==_0x3c7427(0x1d2)&&typeof module<'u'?_0x3405f5(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x3c7427(0x1c6)&&define['amd']?define([_0x3c7427(0x1d4),'@univerjs-pro/exchange-client',_0x3c7427(0x1f9),_0x3c7427(0x208),_0x3c7427(0x1d5),_0x3c7427(0x1c5)],_0x3405f5):(_0x4dbf02=typeof globalThis<'u'?globalThis:_0x4dbf02||self,_0x3405f5(_0x4dbf02[_0x3c7427(0x1d6)]={},_0x4dbf02[_0x3c7427(0x207)],_0x4dbf02[_0x3c7427(0x20a)],_0x4dbf02[_0x3c7427(0x1c9)],_0x4dbf02[_0x3c7427(0x1fa)],_0x4dbf02[_0x3c7427(0x214)]));}(this,function(_0x1cd23f,_0x339f4e,_0x507e11,_0x20370c,_0x3819d4,_0x2edc0b){'use strict';const _0x366c2a=_0x1954;const _0x133c70={'id':_0x366c2a(0x1cd),'type':_0x507e11[_0x366c2a(0x212)][_0x366c2a(0x1db)],'handler':async _0x9607be=>{const _0x494683=_0x366c2a,_0x5dc891=_0x9607be[_0x494683(0x1ea)](_0x339f4e['IExchangeOperateService']);return new URLSearchParams(location['search'])[_0x494683(0x1ea)](_0x494683(0x1ed))?_0x5dc891[_0x494683(0x1d0)]():_0x5dc891['importXLSXToSnapshot'](),!0x0;}},_0x224251={'id':_0x366c2a(0x1d9),'type':_0x507e11[_0x366c2a(0x212)][_0x366c2a(0x1db)],'handler':async _0xa0a2cb=>{const _0x3cd8f0=_0x366c2a,_0x202a3f=_0xa0a2cb[_0x3cd8f0(0x1ea)](_0x339f4e[_0x3cd8f0(0x1fe)]);return new URLSearchParams(location[_0x3cd8f0(0x206)])['get'](_0x3cd8f0(0x1ed))?_0x202a3f[_0x3cd8f0(0x1d8)]():_0x202a3f[_0x3cd8f0(0x210)](),!0x0;}},_0x2044a9={'name':_0x366c2a(0x1c8),'version':_0x366c2a(0x1e5)},_0x4d5eee='sheets-exchange-client.config',_0x4fa8a7={},_0x5b243d=_0x366c2a(0x204);function _0x16c00c(_0xa8fca8){const _0x4e41b6=_0x366c2a;return{'id':_0x5b243d,'type':_0x20370c[_0x4e41b6(0x1e3)][_0x4e41b6(0x1fc)],'icon':'DirectExportIcon','tooltip':_0x4e41b6(0x20b),'hidden$':_0x20370c[_0x4e41b6(0x1ce)](_0xa8fca8,_0x507e11['UniverInstanceType'][_0x4e41b6(0x205)]),'disabled$':_0x2edc0b[_0x4e41b6(0x1f2)](_0xa8fca8,{'workbookTypes':[_0x3819d4[_0x4e41b6(0x1da)]]})};}function _0x1e03d2(){const _0x885f4a=_0x366c2a;return{'id':_0x133c70['id'],'type':_0x20370c[_0x885f4a(0x1e3)][_0x885f4a(0x1e1)],'title':_0x885f4a(0x1f0),'icon':_0x885f4a(0x1ee)};}function _0x141911(){const _0x451267=_0x366c2a;return{'id':_0x224251['id'],'type':_0x20370c['MenuItemType'][_0x451267(0x1e1)],'title':'exchange.download','icon':_0x451267(0x211)};}const _0x59ca18={[_0x20370c['RibbonStartGroup'][_0x366c2a(0x200)]]:{[_0x5b243d]:{'order':0.3,'menuItemFactory':_0x16c00c,[_0x133c70['id']]:{'order':0x0,'menuItemFactory':_0x1e03d2},[_0x224251['id']]:{'order':0x1,'menuItemFactory':_0x141911}}}};var _0x8d3b7b=Object[_0x366c2a(0x20e)],_0x26daf7=(_0x495061,_0x252e56,_0x4b49ce,_0x31eeba)=>{const _0x2151b2=_0x366c2a;for(var _0x3497e4=_0x31eeba>0x1?void 0x0:_0x31eeba?_0x8d3b7b(_0x252e56,_0x4b49ce):_0x252e56,_0x3cfba3=_0x495061[_0x2151b2(0x1f8)]-0x1,_0x530cda;_0x3cfba3>=0x0;_0x3cfba3--)(_0x530cda=_0x495061[_0x3cfba3])&&(_0x3497e4=_0x530cda(_0x3497e4)||_0x3497e4);return _0x3497e4;},_0x42e3d9=(_0x302a0e,_0xf36a10)=>(_0x4dd123,_0x2157e7)=>_0xf36a10(_0x4dd123,_0x2157e7,_0x302a0e);let _0x1e822e=class extends _0x507e11[_0x366c2a(0x1cf)]{constructor(_0x4774da,_0x4fcdfa){const _0x5058bc=_0x366c2a;super(),this['_commandService']=_0x4774da,this['_menuManagerService']=_0x4fcdfa,this[_0x5058bc(0x1c7)](),this[_0x5058bc(0x1ff)]();}[_0x366c2a(0x1c7)](){const _0x55d102=_0x366c2a;[_0x133c70,_0x224251][_0x55d102(0x20d)](_0x34aac=>{const _0x3dfbd9=_0x55d102;this[_0x3dfbd9(0x209)](this[_0x3dfbd9(0x1d7)]['registerCommand'](_0x34aac));});}[_0x366c2a(0x1ff)](){const _0x40e8ae=_0x366c2a;this[_0x40e8ae(0x1dc)]['mergeMenu'](_0x59ca18);}};_0x1e822e=_0x26daf7([_0x42e3d9(0x0,_0x507e11['ICommandService']),_0x42e3d9(0x1,_0x20370c[_0x366c2a(0x1dd)])],_0x1e822e);var _0x5e2121=Object[_0x366c2a(0x20f)],_0x54272c=Object[_0x366c2a(0x20e)],_0x14ca54=(_0x3dfc34,_0x82de5a,_0x21e7d4)=>_0x82de5a in _0x3dfc34?_0x5e2121(_0x3dfc34,_0x82de5a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21e7d4}):_0x3dfc34[_0x82de5a]=_0x21e7d4,_0x1d3114=(_0x1d4732,_0x21c790,_0x2d38cf,_0x345d02)=>{const _0xb8000a=_0x366c2a;for(var _0x46553a=_0x345d02>0x1?void 0x0:_0x345d02?_0x54272c(_0x21c790,_0x2d38cf):_0x21c790,_0x478c2b=_0x1d4732[_0xb8000a(0x1f8)]-0x1,_0x5a1635;_0x478c2b>=0x0;_0x478c2b--)(_0x5a1635=_0x1d4732[_0x478c2b])&&(_0x46553a=_0x5a1635(_0x46553a)||_0x46553a);return _0x46553a;},_0x2bce04=(_0x2f6051,_0x93da3a)=>(_0xd1d18a,_0x2f0d3c)=>_0x93da3a(_0xd1d18a,_0x2f0d3c,_0x2f6051),_0x5a2415=(_0x2e61c9,_0x10c12c,_0x4f9942)=>_0x14ca54(_0x2e61c9,typeof _0x10c12c!=_0x366c2a(0x1ec)?_0x10c12c+'':_0x10c12c,_0x4f9942);_0x1cd23f[_0x366c2a(0x1e7)]=class extends _0x507e11[_0x366c2a(0x1e9)]{constructor(_0x3c6d40=_0x4fa8a7,_0x17ec30,_0x278593){const _0x1b446f=_0x366c2a;super(),this[_0x1b446f(0x1d3)]=_0x3c6d40,this['_injector']=_0x17ec30,this[_0x1b446f(0x1c3)]=_0x278593;const {menu:_0x329736,..._0x3312d4}=_0x507e11[_0x1b446f(0x1ca)]({},_0x4fa8a7,this[_0x1b446f(0x1d3)]);_0x329736&&this['_configService'][_0x1b446f(0x1f7)](_0x1b446f(0x1cc),_0x329736,{'merge':!0x0}),this[_0x1b446f(0x1c3)][_0x1b446f(0x1f7)](_0x4d5eee,_0x3312d4);}[_0x366c2a(0x201)](){const _0x270660=_0x366c2a;[[_0x1e822e]]['forEach'](_0x3b853c=>this[_0x270660(0x1c4)][_0x270660(0x1cb)](_0x3b853c));}[_0x366c2a(0x1f4)](){const _0x5cd991=_0x366c2a;this[_0x5cd991(0x1c4)][_0x5cd991(0x1ea)](_0x1e822e);}},_0x5a2415(_0x1cd23f[_0x366c2a(0x1e7)],_0x366c2a(0x203),_0x366c2a(0x1e6)),_0x5a2415(_0x1cd23f[_0x366c2a(0x1e7)],_0x366c2a(0x202),_0x2044a9['name']),_0x5a2415(_0x1cd23f[_0x366c2a(0x1e7)],'version',_0x2044a9[_0x366c2a(0x1f6)]),_0x5a2415(_0x1cd23f[_0x366c2a(0x1e7)],'type',_0x507e11[_0x366c2a(0x213)][_0x366c2a(0x205)]),_0x1cd23f['UniverSheetsExchangeClientPlugin']=_0x1d3114([_0x507e11[_0x366c2a(0x1fb)](_0x339f4e[_0x366c2a(0x1f5)]),_0x2bce04(0x1,_0x507e11['Inject'](_0x507e11[_0x366c2a(0x1f3)])),_0x2bce04(0x2,_0x507e11['IConfigService'])],_0x1cd23f[_0x366c2a(0x1e7)]),_0x1cd23f[_0x366c2a(0x1ef)]=_0x224251,_0x1cd23f[_0x366c2a(0x1e0)]=_0x133c70,Object[_0x366c2a(0x20f)](_0x1cd23f,Symbol[_0x366c2a(0x1d1)],{'value':_0x366c2a(0x1e2)});}));function _0x1f79(){const _0x4b0c87=['9418647UaIFDy','ImportXLSXOperation','BUTTON','Module','MenuItemType','1657330oUpZfN','0.16.1-insiders.20260311-074e8ca','SHEET_EXCHANGE_CLIENT_PLUGIN','UniverSheetsExchangeClientPlugin','3795508yJDXQL','Plugin','get','3477252kDlHyB','symbol','unit','FolderIcon','ExportXLSXOperation','exchange.upload','1840332YWqsWM','getCurrentRangeDisable$','Injector','onReady','UniverExchangeClientPlugin','version','setConfig','length','@univerjs/core','UniverSheets','DependentOn','SUBITEMS','6Cmtwjx','IExchangeOperateService','_initMenus','OTHERS','onStarting','packageName','pluginName','sheets-exchange-client.operation.exchange','UNIVER_SHEET','search','UniverProExchangeClient','@univerjs/ui','disposeWithMe','UniverCore','exchange.file','1259685yiTXqY','forEach','getOwnPropertyDescriptor','defineProperty','exportXLSXBySnapshot','ExportIcon','CommandType','UniverInstanceType','UniverSheetsUi','_configService','_injector','@univerjs/sheets-ui','function','_initCommands','@univerjs-pro/sheets-exchange-client','UniverUi','merge','add','menu','exchange-client.operation.import-xlsx','getMenuHiddenObservable','Disposable','importXLSXToUnitId','toStringTag','object','_config','exports','@univerjs/sheets','UniverProSheetsExchangeClient','_commandService','exportXLSXByUnitId','exchange-client.operation.export-xlsx','WorkbookExportPermission','OPERATION','_menuManagerService','IMenuManagerService','35144680sDhRNV'];_0x1f79=function(){return _0x4b0c87;};return _0x1f79();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.16.0",
3
+ "version": "0.16.1-insiders.20260311-074e8ca",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -42,17 +42,17 @@
42
42
  "lib"
43
43
  ],
44
44
  "dependencies": {
45
- "@univerjs-pro/exchange-client": "0.16.0",
46
- "@univerjs/ui": "0.16.0",
47
- "@univerjs/core": "0.16.0",
48
- "@univerjs/sheets-ui": "0.16.0",
49
- "@univerjs/sheets": "0.16.0"
45
+ "@univerjs-pro/exchange-client": "0.16.1-insiders.20260311-074e8ca",
46
+ "@univerjs/core": "0.16.1-insiders.20260311-074e8ca",
47
+ "@univerjs/ui": "0.16.1-insiders.20260311-074e8ca",
48
+ "@univerjs/sheets": "0.16.1-insiders.20260311-074e8ca",
49
+ "@univerjs/sheets-ui": "0.16.1-insiders.20260311-074e8ca"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",
53
53
  "vite": "^7.3.1",
54
54
  "vitest": "^4.0.18",
55
- "@univerjs-infra/shared": "0.16.0"
55
+ "@univerjs-infra/shared": "0.16.1"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run",