@univerjs-pro/sheets-exchange-client 0.11.0 → 0.12.0-nightly.202511220628

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 _0x2f4149=_0x4fa5;(function(_0x56b729,_0x15a98f){const _0x3af382=_0x4fa5,_0x20fa9c=_0x56b729();while(!![]){try{const _0xaf7a68=-parseInt(_0x3af382(0x226))/0x1*(-parseInt(_0x3af382(0x1f0))/0x2)+parseInt(_0x3af382(0x216))/0x3*(parseInt(_0x3af382(0x1f4))/0x4)+parseInt(_0x3af382(0x20c))/0x5+parseInt(_0x3af382(0x214))/0x6+parseInt(_0x3af382(0x212))/0x7*(parseInt(_0x3af382(0x1e8))/0x8)+-parseInt(_0x3af382(0x1e9))/0x9+-parseInt(_0x3af382(0x21b))/0xa*(parseInt(_0x3af382(0x20f))/0xb);if(_0xaf7a68===_0x15a98f)break;else _0x20fa9c['push'](_0x20fa9c['shift']());}catch(_0x1a24ae){_0x20fa9c['push'](_0x20fa9c['shift']());}}}(_0x4aad,0x5698d));Object[_0x2f4149(0x208)](exports,Symbol[_0x2f4149(0x1f1)],{'value':_0x2f4149(0x1ed)});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':_0x2f4149(0x227),'type':i[_0x2f4149(0x1f6)]['OPERATION'],'handler':async _0x5003d0=>{const _0x783750=_0x2f4149,_0x241155=_0x5003d0[_0x783750(0x1ea)](g[_0x783750(0x1eb)]);return new URLSearchParams(location[_0x783750(0x20d)])[_0x783750(0x1ea)]('unit')?_0x241155[_0x783750(0x1fb)]():_0x241155[_0x783750(0x1ef)](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i['CommandType']['OPERATION'],'handler':async _0x3afe24=>{const _0x3d96d6=_0x2f4149,_0x3587cd=_0x3afe24['get'](g[_0x3d96d6(0x1eb)]);return new URLSearchParams(location['search'])[_0x3d96d6(0x1ea)](_0x3d96d6(0x223))?_0x3587cd[_0x3d96d6(0x1f5)]():_0x3587cd[_0x3d96d6(0x1f3)](),!0x0;}},v=_0x2f4149(0x210),h={},S='sheets-exchange-client.operation.exchange';function x(_0x446541){const _0xc7d08c=_0x2f4149;return{'id':S,'type':c[_0xc7d08c(0x201)][_0xc7d08c(0x1ec)],'icon':_0xc7d08c(0x21c),'tooltip':_0xc7d08c(0x20e),'hidden$':c['getMenuHiddenObservable'](_0x446541,i['UniverInstanceType'][_0xc7d08c(0x213)]),'disabled$':I[_0xc7d08c(0x1fa)](_0x446541,{'workbookTypes':[_[_0xc7d08c(0x1ee)]]})};}function _0x4aad(){const _0x65cbc2=['ExportXLSXOperation','unit','menu','OTHERS','17dEZgeo','exchange-client.operation.import-xlsx','BUTTON','Plugin','1361576CVsBHg','1004679iiCiJq','get','IExchangeOperateService','SUBITEMS','Module','WorkbookExportPermission','importXLSXToSnapshot','12326MLAEgX','toStringTag','getOwnPropertyDescriptor','exportXLSXBySnapshot','20nDvRDM','exportXLSXByUnitId','CommandType','setConfig','add','ICommandService','getCurrentRangeDisable$','importXLSXToUnitId','IConfigService','SHEET_EXCHANGE_CLIENT_PLUGIN','DependentOn','Injector','forEach','MenuItemType','FolderIcon','onReady','ExportIcon','mergeMenu','Disposable','RibbonStartGroup','defineProperty','_initCommands','merge','disposeWithMe','1118450PgBLNW','search','exchange.file','1005037nCimfc','sheets-exchange-client.config','exchange.download','21LIGIkM','UNIVER_SHEET','935166IwQvjH','_config','121413tfcTtt','_injector','Inject','_configService','UniverExchangeClientPlugin','80wZvyTB','DirectExportIcon','_menuManagerService','UniverSheetsExchangeClientPlugin','_commandService','type','exchange.upload'];_0x4aad=function(){return _0x65cbc2;};return _0x4aad();}function _0x4fa5(_0x548c55,_0x1812ed){const _0x4aad0b=_0x4aad();return _0x4fa5=function(_0x4fa5d7,_0x21bbdf){_0x4fa5d7=_0x4fa5d7-0x1e7;let _0x450900=_0x4aad0b[_0x4fa5d7];return _0x450900;},_0x4fa5(_0x548c55,_0x1812ed);}function P(){const _0x2f2990=_0x2f4149;return{'id':l['id'],'type':c['MenuItemType'][_0x2f2990(0x228)],'title':_0x2f2990(0x221),'icon':_0x2f2990(0x202)};}function C(){const _0x37b8c8=_0x2f4149;return{'id':p['id'],'type':c[_0x37b8c8(0x201)]['BUTTON'],'title':_0x37b8c8(0x211),'icon':_0x37b8c8(0x204)};}const f={[c[_0x2f4149(0x207)][_0x2f4149(0x225)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x2f4149(0x1f2)],y=(_0x1802a5,_0x2494b8,_0x4588d6,_0x58a9f7)=>{for(var _0x4953e5=_0x58a9f7>0x1?void 0x0:_0x58a9f7?T(_0x2494b8,_0x4588d6):_0x2494b8,_0xf5ac7d=_0x1802a5['length']-0x1,_0x8325f3;_0xf5ac7d>=0x0;_0xf5ac7d--)(_0x8325f3=_0x1802a5[_0xf5ac7d])&&(_0x4953e5=_0x8325f3(_0x4953e5)||_0x4953e5);return _0x4953e5;},m=(_0x32071f,_0x15c3d5)=>(_0x5b1d90,_0x1ba2a5)=>_0x15c3d5(_0x5b1d90,_0x1ba2a5,_0x32071f);let u=class extends i[_0x2f4149(0x206)]{constructor(_0x44d7b8,_0x44a892){const _0x1d8152=_0x2f4149;super(),this[_0x1d8152(0x21f)]=_0x44d7b8,this['_menuManagerService']=_0x44a892,this[_0x1d8152(0x209)](),this['_initMenus']();}[_0x2f4149(0x209)](){const _0x1b8698=_0x2f4149;[l,p][_0x1b8698(0x200)](_0x5e6f56=>{const _0x1332dd=_0x1b8698;this[_0x1332dd(0x20b)](this[_0x1332dd(0x21f)]['registerCommand'](_0x5e6f56));});}['_initMenus'](){const _0x145084=_0x2f4149;this[_0x145084(0x21d)][_0x145084(0x205)](f);}};u=y([m(0x0,i[_0x2f4149(0x1f9)]),m(0x1,c['IMenuManagerService'])],u);var O=Object[_0x2f4149(0x208)],U=Object[_0x2f4149(0x1f2)],X=(_0x3a5fcb,_0x5aca92,_0x1ce6e7)=>_0x5aca92 in _0x3a5fcb?O(_0x3a5fcb,_0x5aca92,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ce6e7}):_0x3a5fcb[_0x5aca92]=_0x1ce6e7,N=(_0x55a020,_0x15cc98,_0x31bf44,_0x4c22bd)=>{for(var _0x6b3443=_0x4c22bd>0x1?void 0x0:_0x4c22bd?U(_0x15cc98,_0x31bf44):_0x15cc98,_0x231388=_0x55a020['length']-0x1,_0x26b09a;_0x231388>=0x0;_0x231388--)(_0x26b09a=_0x55a020[_0x231388])&&(_0x6b3443=_0x26b09a(_0x6b3443)||_0x6b3443);return _0x6b3443;},d=(_0x2f3f42,_0x35eb5f)=>(_0x416f85,_0x57b24a)=>_0x35eb5f(_0x416f85,_0x57b24a,_0x2f3f42),E=(_0x31bd42,_0x3ec123,_0x53147d)=>X(_0x31bd42,typeof _0x3ec123!='symbol'?_0x3ec123+'':_0x3ec123,_0x53147d);const L=_0x2f4149(0x1fd);exports[_0x2f4149(0x21e)]=class extends i[_0x2f4149(0x1e7)]{constructor(_0x3ac23e=h,_0x562634,_0x242ff9){const _0x2d9659=_0x2f4149;super(),this[_0x2d9659(0x215)]=_0x3ac23e,this[_0x2d9659(0x217)]=_0x562634,this['_configService']=_0x242ff9;const {menu:_0x9910a8,..._0x58d006}=i[_0x2d9659(0x20a)]({},h,this[_0x2d9659(0x215)]);_0x9910a8&&this[_0x2d9659(0x219)][_0x2d9659(0x1f7)](_0x2d9659(0x224),_0x9910a8,{'merge':!0x0}),this[_0x2d9659(0x219)]['setConfig'](v,_0x58d006);}['onStarting'](){const _0x285c07=_0x2f4149;[[u]][_0x285c07(0x200)](_0x2b4361=>this[_0x285c07(0x217)][_0x285c07(0x1f8)](_0x2b4361));}[_0x2f4149(0x203)](){const _0x262373=_0x2f4149;this[_0x262373(0x217)][_0x262373(0x1ea)](u);}},E(exports[_0x2f4149(0x21e)],'pluginName',L),E(exports[_0x2f4149(0x21e)],_0x2f4149(0x220),i['UniverInstanceType'][_0x2f4149(0x213)]),exports[_0x2f4149(0x21e)]=N([i[_0x2f4149(0x1fe)](g[_0x2f4149(0x21a)]),d(0x1,i[_0x2f4149(0x218)](i[_0x2f4149(0x1ff)])),d(0x2,i[_0x2f4149(0x1fc)])],exports[_0x2f4149(0x21e)]),exports[_0x2f4149(0x222)]=p,exports['ImportXLSXOperation']=l;
1
+ 'use strict';const _0x4cf5f3=_0xaa54;(function(_0x79d441,_0x1f94c9){const _0x439179=_0xaa54,_0x404ff6=_0x79d441();while(!![]){try{const _0x5748fa=-parseInt(_0x439179(0x11a))/0x1*(parseInt(_0x439179(0x14b))/0x2)+parseInt(_0x439179(0x128))/0x3*(parseInt(_0x439179(0x112))/0x4)+parseInt(_0x439179(0x144))/0x5*(-parseInt(_0x439179(0x135))/0x6)+-parseInt(_0x439179(0x14e))/0x7*(parseInt(_0x439179(0x152))/0x8)+-parseInt(_0x439179(0x10f))/0x9+-parseInt(_0x439179(0x146))/0xa*(-parseInt(_0x439179(0x11f))/0xb)+parseInt(_0x439179(0x13a))/0xc*(parseInt(_0x439179(0x118))/0xd);if(_0x5748fa===_0x1f94c9)break;else _0x404ff6['push'](_0x404ff6['shift']());}catch(_0xadfaca){_0x404ff6['push'](_0x404ff6['shift']());}}}(_0x2ca5,0x420cf));Object[_0x4cf5f3(0x14f)](exports,Symbol[_0x4cf5f3(0x149)],{'value':_0x4cf5f3(0x13f)});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':_0x4cf5f3(0x12c),'type':i['CommandType']['OPERATION'],'handler':async _0x34a0c5=>{const _0x4b25a2=_0x4cf5f3,_0xf17226=_0x34a0c5[_0x4b25a2(0x131)](g[_0x4b25a2(0x12a)]);return new URLSearchParams(location[_0x4b25a2(0x13c)])[_0x4b25a2(0x131)]('unit')?_0xf17226[_0x4b25a2(0x13e)]():_0xf17226[_0x4b25a2(0x154)](),!0x0;}},p={'id':_0x4cf5f3(0x138),'type':i[_0x4cf5f3(0x137)][_0x4cf5f3(0x136)],'handler':async _0xd4cbb0=>{const _0x42f135=_0x4cf5f3,_0x5bb25a=_0xd4cbb0[_0x42f135(0x131)](g[_0x42f135(0x12a)]);return new URLSearchParams(location[_0x42f135(0x13c)])['get']('unit')?_0x5bb25a[_0x42f135(0x111)]():_0x5bb25a['exportXLSXBySnapshot'](),!0x0;}},v=_0x4cf5f3(0x119),h={},S=_0x4cf5f3(0x116);function x(_0x2ba26d){const _0x214902=_0x4cf5f3;return{'id':S,'type':c[_0x214902(0x11c)][_0x214902(0x150)],'icon':_0x214902(0x130),'tooltip':'exchange.file','hidden$':c[_0x214902(0x145)](_0x2ba26d,i[_0x214902(0x12b)][_0x214902(0x14d)]),'disabled$':I[_0x214902(0x142)](_0x2ba26d,{'workbookTypes':[_[_0x214902(0x153)]]})};}function P(){const _0x4a3a52=_0x4cf5f3;return{'id':l['id'],'type':c[_0x4a3a52(0x11c)]['BUTTON'],'title':_0x4a3a52(0x123),'icon':_0x4a3a52(0x14c)};}function C(){const _0x2e11fc=_0x4cf5f3;return{'id':p['id'],'type':c[_0x2e11fc(0x11c)][_0x2e11fc(0x114)],'title':_0x2e11fc(0x140),'icon':_0x2e11fc(0x11d)};}function _0x2ca5(){const _0x2cbbd6=['SHEET_EXCHANGE_CLIENT_PLUGIN','sheets-exchange-client.operation.exchange','getOwnPropertyDescriptor','221zzCdUx','sheets-exchange-client.config','159876zbuZLk','forEach','MenuItemType','ExportIcon','_injector','319AKeCNG','ICommandService','add','onStarting','exchange.upload','RibbonStartGroup','IConfigService','_initCommands','registerCommand','420258XjvYXm','Inject','IExchangeOperateService','UniverInstanceType','exchange-client.operation.import-xlsx','DependentOn','ImportXLSXOperation','_initMenus','DirectExportIcon','get','Disposable','ExportXLSXOperation','UniverSheetsExchangeClientPlugin','2951874fSXLYD','OPERATION','CommandType','exchange-client.operation.export-xlsx','Injector','175596GkEptC','type','search','_config','importXLSXToUnitId','Module','exchange.download','length','getCurrentRangeDisable$','pluginName','5LvIYlK','getMenuHiddenObservable','167470NUMctI','IMenuManagerService','_configService','toStringTag','symbol','2RAKroG','FolderIcon','UNIVER_SHEET','175ckvAqm','defineProperty','SUBITEMS','_commandService','48336Chktbp','WorkbookExportPermission','importXLSXToSnapshot','731106uppmXX','menu','exportXLSXByUnitId','12SAgSvJ','setConfig','BUTTON'];_0x2ca5=function(){return _0x2cbbd6;};return _0x2ca5();}function _0xaa54(_0x2696fc,_0x4f102d){const _0x2ca58b=_0x2ca5();return _0xaa54=function(_0xaa5471,_0x4ea7d6){_0xaa5471=_0xaa5471-0x10f;let _0x5275dd=_0x2ca58b[_0xaa5471];return _0x5275dd;},_0xaa54(_0x2696fc,_0x4f102d);}const f={[c[_0x4cf5f3(0x124)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x4cf5f3(0x117)],y=(_0x43caa4,_0x2871eb,_0x3170fa,_0x1a5d48)=>{const _0x38e518=_0x4cf5f3;for(var _0x57af09=_0x1a5d48>0x1?void 0x0:_0x1a5d48?T(_0x2871eb,_0x3170fa):_0x2871eb,_0x306621=_0x43caa4[_0x38e518(0x141)]-0x1,_0x328959;_0x306621>=0x0;_0x306621--)(_0x328959=_0x43caa4[_0x306621])&&(_0x57af09=_0x328959(_0x57af09)||_0x57af09);return _0x57af09;},m=(_0x167307,_0x474e4e)=>(_0x746ad9,_0x5487fb)=>_0x474e4e(_0x746ad9,_0x5487fb,_0x167307);let u=class extends i[_0x4cf5f3(0x132)]{constructor(_0x2f91b6,_0xe8f6f0){const _0x37a8d8=_0x4cf5f3;super(),this[_0x37a8d8(0x151)]=_0x2f91b6,this['_menuManagerService']=_0xe8f6f0,this[_0x37a8d8(0x126)](),this[_0x37a8d8(0x12f)]();}['_initCommands'](){const _0x8a3ce=_0x4cf5f3;[l,p][_0x8a3ce(0x11b)](_0x1e3674=>{const _0x38a964=_0x8a3ce;this['disposeWithMe'](this[_0x38a964(0x151)][_0x38a964(0x127)](_0x1e3674));});}[_0x4cf5f3(0x12f)](){this['_menuManagerService']['mergeMenu'](f);}};u=y([m(0x0,i[_0x4cf5f3(0x120)]),m(0x1,c[_0x4cf5f3(0x147)])],u);var O=Object[_0x4cf5f3(0x14f)],U=Object[_0x4cf5f3(0x117)],X=(_0x5599c5,_0x1755c7,_0x48fd1e)=>_0x1755c7 in _0x5599c5?O(_0x5599c5,_0x1755c7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48fd1e}):_0x5599c5[_0x1755c7]=_0x48fd1e,N=(_0x54a297,_0x5be576,_0x10c29b,_0x1cf3da)=>{for(var _0x29a6cd=_0x1cf3da>0x1?void 0x0:_0x1cf3da?U(_0x5be576,_0x10c29b):_0x5be576,_0x2423ec=_0x54a297['length']-0x1,_0x4b84e6;_0x2423ec>=0x0;_0x2423ec--)(_0x4b84e6=_0x54a297[_0x2423ec])&&(_0x29a6cd=_0x4b84e6(_0x29a6cd)||_0x29a6cd);return _0x29a6cd;},d=(_0x432919,_0x5ebf27)=>(_0x6fcce1,_0x41188a)=>_0x5ebf27(_0x6fcce1,_0x41188a,_0x432919),E=(_0x3de02d,_0x28da03,_0x498ade)=>X(_0x3de02d,typeof _0x28da03!=_0x4cf5f3(0x14a)?_0x28da03+'':_0x28da03,_0x498ade);const L=_0x4cf5f3(0x115);exports['UniverSheetsExchangeClientPlugin']=class extends i['Plugin']{constructor(_0x1bba37=h,_0x187df2,_0x2f8527){const _0x3ee572=_0x4cf5f3;super(),this[_0x3ee572(0x13d)]=_0x1bba37,this[_0x3ee572(0x11e)]=_0x187df2,this[_0x3ee572(0x148)]=_0x2f8527;const {menu:_0x36166d,..._0x277da7}=i['merge']({},h,this['_config']);_0x36166d&&this[_0x3ee572(0x148)][_0x3ee572(0x113)](_0x3ee572(0x110),_0x36166d,{'merge':!0x0}),this[_0x3ee572(0x148)]['setConfig'](v,_0x277da7);}[_0x4cf5f3(0x122)](){const _0x209fbd=_0x4cf5f3;[[u]][_0x209fbd(0x11b)](_0x27c2e5=>this[_0x209fbd(0x11e)][_0x209fbd(0x121)](_0x27c2e5));}['onReady'](){const _0x51da1b=_0x4cf5f3;this[_0x51da1b(0x11e)]['get'](u);}},E(exports[_0x4cf5f3(0x134)],_0x4cf5f3(0x143),L),E(exports[_0x4cf5f3(0x134)],_0x4cf5f3(0x13b),i[_0x4cf5f3(0x12b)]['UNIVER_SHEET']),exports[_0x4cf5f3(0x134)]=N([i[_0x4cf5f3(0x12d)](g['UniverExchangeClientPlugin']),d(0x1,i[_0x4cf5f3(0x129)](i[_0x4cf5f3(0x139)])),d(0x2,i[_0x4cf5f3(0x125)])],exports[_0x4cf5f3(0x134)]),exports[_0x4cf5f3(0x133)]=p,exports[_0x4cf5f3(0x12e)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0xb97ba0=_0x3554;(function(_0xfbc3a4,_0xb9da89){const _0x53eaac=_0x3554,_0x564eb0=_0xfbc3a4();while(!![]){try{const _0x59cc90=-parseInt(_0x53eaac(0x17c))/0x1+-parseInt(_0x53eaac(0x15f))/0x2*(-parseInt(_0x53eaac(0x175))/0x3)+-parseInt(_0x53eaac(0x160))/0x4+-parseInt(_0x53eaac(0x18a))/0x5*(-parseInt(_0x53eaac(0x182))/0x6)+-parseInt(_0x53eaac(0x168))/0x7*(parseInt(_0x53eaac(0x166))/0x8)+parseInt(_0x53eaac(0x16e))/0x9*(-parseInt(_0x53eaac(0x177))/0xa)+parseInt(_0x53eaac(0x171))/0xb;if(_0x59cc90===_0xb9da89)break;else _0x564eb0['push'](_0x564eb0['shift']());}catch(_0x34bba4){_0x564eb0['push'](_0x564eb0['shift']());}}}(_0x3bcb,0xbdd6b));import{IExchangeOperateService as _0x466be3,UniverExchangeClientPlugin as _0x335a39}from'@univerjs-pro/exchange-client';function _0x3bcb(){const _0x57d06c=['getOwnPropertyDescriptor','unit','OPERATION','exchange.file','10lncKhl','sheets-exchange-client.config','SUBITEMS','UNIVER_SHEET','_initCommands','31586QgDtvn','2021912kipdMY','get','search','menu','onReady','exportXLSXBySnapshot','5185616QTmHvk','ExportIcon','7ZdwZkP','mergeMenu','importXLSXToUnitId','exchange-client.operation.import-xlsx','exchange-client.operation.export-xlsx','_commandService','3123cbqXJf','_configService','BUTTON','30257755RrXDHf','setConfig','symbol','length','102tBbyCz','exchange.download','41090gFbyLn','_menuManagerService','SHEET_EXCHANGE_CLIENT_PLUGIN','OTHERS','exchange.upload','1273607oeiwWp','_injector','defineProperty','importXLSXToSnapshot','forEach','pluginName','4029066waKyis','sheets-exchange-client.operation.exchange','_config','onStarting'];_0x3bcb=function(){return _0x57d06c;};return _0x3bcb();}import{CommandType as _0x244fe6,UniverInstanceType as _0x12e54c,Disposable as _0x21382e,ICommandService as _0x240524,DependentOn as _0x23f589,Inject as _0x4df6ce,Injector as _0x510f8d,IConfigService as _0x3ca1ea,Plugin as _0x6fcabb,merge as _0x4cff0b}from'@univerjs/core';import{MenuItemType as _0x437aeb,getMenuHiddenObservable as _0x447147,RibbonStartGroup as _0x144b7f,IMenuManagerService as _0x589463}from'@univerjs/ui';import{WorkbookExportPermission as _0x1a2e37}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0xd6a19f}from'@univerjs/sheets-ui';const p={'id':_0xb97ba0(0x16b),'type':_0x244fe6[_0xb97ba0(0x188)],'handler':async _0x549911=>{const _0x169968=_0xb97ba0,_0x4d6c2d=_0x549911['get'](_0x466be3);return new URLSearchParams(location[_0x169968(0x162)])[_0x169968(0x161)]('unit')?_0x4d6c2d[_0x169968(0x16a)]():_0x4d6c2d[_0x169968(0x17f)](),!0x0;}},u={'id':_0xb97ba0(0x16c),'type':_0x244fe6[_0xb97ba0(0x188)],'handler':async _0x5bf15b=>{const _0x39f1c3=_0xb97ba0,_0x140716=_0x5bf15b['get'](_0x466be3);return new URLSearchParams(location[_0x39f1c3(0x162)])['get'](_0x39f1c3(0x187))?_0x140716['exportXLSXByUnitId']():_0x140716[_0x39f1c3(0x165)](),!0x0;}},H=_0xb97ba0(0x18b),l={},S=_0xb97ba0(0x183);function R(_0x1b5524){const _0x78113b=_0xb97ba0;return{'id':S,'type':_0x437aeb[_0x78113b(0x15c)],'icon':'DirectExportIcon','tooltip':_0x78113b(0x189),'hidden$':_0x447147(_0x1b5524,_0x12e54c[_0x78113b(0x15d)]),'disabled$':_0xd6a19f(_0x1b5524,{'workbookTypes':[_0x1a2e37]})};}function w(){const _0x499388=_0xb97ba0;return{'id':p['id'],'type':_0x437aeb[_0x499388(0x170)],'title':_0x499388(0x17b),'icon':'FolderIcon'};}function D(){const _0x1f11a2=_0xb97ba0;return{'id':u['id'],'type':_0x437aeb[_0x1f11a2(0x170)],'title':_0x1f11a2(0x176),'icon':_0x1f11a2(0x167)};}const F={[_0x144b7f[_0xb97ba0(0x17a)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0xb97ba0(0x186)],A=(_0x5afc2b,_0x493c37,_0x24976d,_0x56b3ea)=>{const _0x161d82=_0xb97ba0;for(var _0x3de57e=_0x56b3ea>0x1?void 0x0:_0x56b3ea?G(_0x493c37,_0x24976d):_0x493c37,_0x3d8d95=_0x5afc2b[_0x161d82(0x174)]-0x1,_0x3deab2;_0x3d8d95>=0x0;_0x3d8d95--)(_0x3deab2=_0x5afc2b[_0x3d8d95])&&(_0x3de57e=_0x3deab2(_0x3de57e)||_0x3de57e);return _0x3de57e;},d=(_0x5454f9,_0x173d8f)=>(_0x10c163,_0x21a1eb)=>_0x173d8f(_0x10c163,_0x21a1eb,_0x5454f9);let c=class extends _0x21382e{constructor(_0xf99c7e,_0x36af24){const _0x217fc7=_0xb97ba0;super(),this[_0x217fc7(0x16d)]=_0xf99c7e,this['_menuManagerService']=_0x36af24,this[_0x217fc7(0x15e)](),this['_initMenus']();}[_0xb97ba0(0x15e)](){const _0x11fd53=_0xb97ba0;[p,u][_0x11fd53(0x180)](_0x1497c9=>{this['disposeWithMe'](this['_commandService']['registerCommand'](_0x1497c9));});}['_initMenus'](){const _0x468083=_0xb97ba0;this[_0x468083(0x178)][_0x468083(0x169)](F);}};c=A([d(0x0,_0x240524),d(0x1,_0x589463)],c);var j=Object[_0xb97ba0(0x17e)],B=Object[_0xb97ba0(0x186)],$=(_0x525213,_0x57852f,_0x1404f5)=>_0x57852f in _0x525213?j(_0x525213,_0x57852f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1404f5}):_0x525213[_0x57852f]=_0x1404f5,V=(_0x2356a8,_0x4dc0ea,_0x11cd01,_0x2490ad)=>{const _0x7ca5b2=_0xb97ba0;for(var _0x4abf36=_0x2490ad>0x1?void 0x0:_0x2490ad?B(_0x4dc0ea,_0x11cd01):_0x4dc0ea,_0x518716=_0x2356a8[_0x7ca5b2(0x174)]-0x1,_0x44a9ea;_0x518716>=0x0;_0x518716--)(_0x44a9ea=_0x2356a8[_0x518716])&&(_0x4abf36=_0x44a9ea(_0x4abf36)||_0x4abf36);return _0x4abf36;},_=(_0x4ceff4,_0x584df2)=>(_0x326fa9,_0x280eaa)=>_0x584df2(_0x326fa9,_0x280eaa,_0x4ceff4),I=(_0x23a7da,_0x520a86,_0x58a5e3)=>$(_0x23a7da,typeof _0x520a86!=_0xb97ba0(0x173)?_0x520a86+'':_0x520a86,_0x58a5e3);function _0x3554(_0x386075,_0x58aeef){const _0x3bcb47=_0x3bcb();return _0x3554=function(_0x355415,_0x5b7d5){_0x355415=_0x355415-0x15c;let _0x226cd7=_0x3bcb47[_0x355415];return _0x226cd7;},_0x3554(_0x386075,_0x58aeef);}const W=_0xb97ba0(0x179);let s=class extends _0x6fcabb{constructor(_0xec2081=l,_0x253732,_0x5a794c){const _0x53347f=_0xb97ba0;super(),this[_0x53347f(0x184)]=_0xec2081,this[_0x53347f(0x17d)]=_0x253732,this['_configService']=_0x5a794c;const {menu:_0x2c75f7,..._0x467054}=_0x4cff0b({},l,this[_0x53347f(0x184)]);_0x2c75f7&&this[_0x53347f(0x16f)]['setConfig'](_0x53347f(0x163),_0x2c75f7,{'merge':!0x0}),this[_0x53347f(0x16f)][_0x53347f(0x172)](H,_0x467054);}[_0xb97ba0(0x185)](){const _0x343f55=_0xb97ba0;[[c]]['forEach'](_0x5af209=>this[_0x343f55(0x17d)]['add'](_0x5af209));}[_0xb97ba0(0x164)](){this['_injector']['get'](c);}};I(s,_0xb97ba0(0x181),W),I(s,'type',_0x12e54c[_0xb97ba0(0x15d)]),s=V([_0x23f589(_0x335a39),_(0x1,_0x4df6ce(_0x510f8d)),_(0x2,_0x3ca1ea)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ function _0x19f5(_0x65325b,_0x4b35ba){const _0x22530d=_0x2253();return _0x19f5=function(_0x19f52f,_0x117549){_0x19f52f=_0x19f52f-0x137;let _0x4a99a3=_0x22530d[_0x19f52f];return _0x4a99a3;},_0x19f5(_0x65325b,_0x4b35ba);}const _0x43e009=_0x19f5;(function(_0x46d7a4,_0x56de52){const _0x53f7be=_0x19f5,_0x58ce30=_0x46d7a4();while(!![]){try{const _0x2af4f7=-parseInt(_0x53f7be(0x137))/0x1*(-parseInt(_0x53f7be(0x15a))/0x2)+-parseInt(_0x53f7be(0x14b))/0x3+-parseInt(_0x53f7be(0x168))/0x4*(parseInt(_0x53f7be(0x151))/0x5)+parseInt(_0x53f7be(0x146))/0x6+parseInt(_0x53f7be(0x15f))/0x7*(-parseInt(_0x53f7be(0x13a))/0x8)+parseInt(_0x53f7be(0x164))/0x9+parseInt(_0x53f7be(0x147))/0xa*(parseInt(_0x53f7be(0x153))/0xb);if(_0x2af4f7===_0x56de52)break;else _0x58ce30['push'](_0x58ce30['shift']());}catch(_0x3b6eff){_0x58ce30['push'](_0x58ce30['shift']());}}}(_0x2253,0xa5164));import{IExchangeOperateService as _0x16c259,UniverExchangeClientPlugin as _0x2ea5db}from'@univerjs-pro/exchange-client';import{CommandType as _0x5ed01c,UniverInstanceType as _0x26fbc8,Disposable as _0x4b5be7,ICommandService as _0x5b11b2,DependentOn as _0x423266,Inject as _0x2e64d4,Injector as _0x1f4042,IConfigService as _0x2022f6,Plugin as _0x267487,merge as _0x37a5fb}from'@univerjs/core';import{MenuItemType as _0x48b5e0,getMenuHiddenObservable as _0x4fd24a,RibbonStartGroup as _0xc8ee8c,IMenuManagerService as _0x1c351b}from'@univerjs/ui';import{WorkbookExportPermission as _0x53080e}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x56771d}from'@univerjs/sheets-ui';const p={'id':_0x43e009(0x166),'type':_0x5ed01c['OPERATION'],'handler':async _0x1920f9=>{const _0x1bbb9a=_0x43e009,_0x3c4d47=_0x1920f9[_0x1bbb9a(0x142)](_0x16c259);return new URLSearchParams(location[_0x1bbb9a(0x161)])['get'](_0x1bbb9a(0x154))?_0x3c4d47[_0x1bbb9a(0x14e)]():_0x3c4d47[_0x1bbb9a(0x15c)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x5ed01c[_0x43e009(0x14d)],'handler':async _0x270e76=>{const _0x5260bb=_0x43e009,_0x3dc1ac=_0x270e76[_0x5260bb(0x142)](_0x16c259);return new URLSearchParams(location['search'])[_0x5260bb(0x142)](_0x5260bb(0x154))?_0x3dc1ac[_0x5260bb(0x140)]():_0x3dc1ac[_0x5260bb(0x138)](),!0x0;}},H='sheets-exchange-client.config',l={},S='sheets-exchange-client.operation.exchange';function R(_0x420221){const _0x2ed777=_0x43e009;return{'id':S,'type':_0x48b5e0[_0x2ed777(0x144)],'icon':_0x2ed777(0x15d),'tooltip':_0x2ed777(0x157),'hidden$':_0x4fd24a(_0x420221,_0x26fbc8[_0x2ed777(0x159)]),'disabled$':_0x56771d(_0x420221,{'workbookTypes':[_0x53080e]})};}function w(){const _0x343230=_0x43e009;return{'id':p['id'],'type':_0x48b5e0['BUTTON'],'title':_0x343230(0x13d),'icon':_0x343230(0x13e)};}function D(){const _0x36e72d=_0x43e009;return{'id':u['id'],'type':_0x48b5e0[_0x36e72d(0x162)],'title':_0x36e72d(0x141),'icon':_0x36e72d(0x15b)};}const F={[_0xc8ee8c[_0x43e009(0x163)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x43e009(0x167)],A=(_0x5e4db5,_0x35900a,_0x1105e0,_0x31dee0)=>{for(var _0x39f636=_0x31dee0>0x1?void 0x0:_0x31dee0?G(_0x35900a,_0x1105e0):_0x35900a,_0x59fe29=_0x5e4db5['length']-0x1,_0xabad62;_0x59fe29>=0x0;_0x59fe29--)(_0xabad62=_0x5e4db5[_0x59fe29])&&(_0x39f636=_0xabad62(_0x39f636)||_0x39f636);return _0x39f636;},d=(_0x370f0e,_0x1c1c9e)=>(_0x5b8f5b,_0x3e07c5)=>_0x1c1c9e(_0x5b8f5b,_0x3e07c5,_0x370f0e);function _0x2253(){const _0x22dfd1=['_injector','257560ilFEEG','SHEET_EXCHANGE_CLIENT_PLUGIN','11NaTXRD','unit','_initMenus','registerCommand','exchange.file','_config','UNIVER_SHEET','6368KvJufx','ExportIcon','importXLSXToSnapshot','DirectExportIcon','forEach','14AqanaD','_initCommands','search','BUTTON','OTHERS','1400319cghWBe','length','exchange-client.operation.import-xlsx','getOwnPropertyDescriptor','20pZKHeq','331NOoeEh','exportXLSXBySnapshot','setConfig','834768zYzeDv','onStarting','disposeWithMe','exchange.upload','FolderIcon','add','exportXLSXByUnitId','exchange.download','get','onReady','SUBITEMS','type','844890cmFZpt','6503110NNHXBj','_commandService','mergeMenu','symbol','2574519ySLLEn','_configService','OPERATION','importXLSXToUnitId','_menuManagerService'];_0x2253=function(){return _0x22dfd1;};return _0x2253();}let c=class extends _0x4b5be7{constructor(_0x1838fd,_0x546789){const _0x1d691f=_0x43e009;super(),this[_0x1d691f(0x148)]=_0x1838fd,this[_0x1d691f(0x14f)]=_0x546789,this['_initCommands'](),this[_0x1d691f(0x155)]();}[_0x43e009(0x160)](){const _0x28dd8f=_0x43e009;[p,u][_0x28dd8f(0x15e)](_0x48a589=>{const _0x42e24b=_0x28dd8f;this[_0x42e24b(0x13c)](this[_0x42e24b(0x148)][_0x42e24b(0x156)](_0x48a589));});}['_initMenus'](){const _0x1ea011=_0x43e009;this[_0x1ea011(0x14f)][_0x1ea011(0x149)](F);}};c=A([d(0x0,_0x5b11b2),d(0x1,_0x1c351b)],c);var j=Object['defineProperty'],B=Object['getOwnPropertyDescriptor'],$=(_0x3cd1d3,_0x3cf53c,_0x2973aa)=>_0x3cf53c in _0x3cd1d3?j(_0x3cd1d3,_0x3cf53c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2973aa}):_0x3cd1d3[_0x3cf53c]=_0x2973aa,V=(_0x18f002,_0x19b8f9,_0x3115d1,_0xf48720)=>{const _0x424114=_0x43e009;for(var _0x40e955=_0xf48720>0x1?void 0x0:_0xf48720?B(_0x19b8f9,_0x3115d1):_0x19b8f9,_0x26f3dd=_0x18f002[_0x424114(0x165)]-0x1,_0x42f22c;_0x26f3dd>=0x0;_0x26f3dd--)(_0x42f22c=_0x18f002[_0x26f3dd])&&(_0x40e955=_0x42f22c(_0x40e955)||_0x40e955);return _0x40e955;},_=(_0xcae568,_0x226231)=>(_0x1fdd9c,_0xccd9c5)=>_0x226231(_0x1fdd9c,_0xccd9c5,_0xcae568),I=(_0x35e859,_0x4b1b44,_0x1bb03e)=>$(_0x35e859,typeof _0x4b1b44!=_0x43e009(0x14a)?_0x4b1b44+'':_0x4b1b44,_0x1bb03e);const W=_0x43e009(0x152);let s=class extends _0x267487{constructor(_0xfcdf15=l,_0x5a7dda,_0x2eca41){const _0x2013c7=_0x43e009;super(),this['_config']=_0xfcdf15,this['_injector']=_0x5a7dda,this[_0x2013c7(0x14c)]=_0x2eca41;const {menu:_0x3af81a,..._0x5661ee}=_0x37a5fb({},l,this[_0x2013c7(0x158)]);_0x3af81a&&this[_0x2013c7(0x14c)][_0x2013c7(0x139)]('menu',_0x3af81a,{'merge':!0x0}),this['_configService']['setConfig'](H,_0x5661ee);}[_0x43e009(0x13b)](){const _0x570805=_0x43e009;[[c]][_0x570805(0x15e)](_0xb1783e=>this[_0x570805(0x150)][_0x570805(0x13f)](_0xb1783e));}[_0x43e009(0x143)](){const _0xa664ea=_0x43e009;this[_0xa664ea(0x150)][_0xa664ea(0x142)](c);}};I(s,'pluginName',W),I(s,_0x43e009(0x145),_0x26fbc8[_0x43e009(0x159)]),s=V([_0x423266(_0x2ea5db),_(0x1,_0x2e64d4(_0x1f4042)),_(0x2,_0x2022f6)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0xb97ba0=_0x3554;(function(_0xfbc3a4,_0xb9da89){const _0x53eaac=_0x3554,_0x564eb0=_0xfbc3a4();while(!![]){try{const _0x59cc90=-parseInt(_0x53eaac(0x17c))/0x1+-parseInt(_0x53eaac(0x15f))/0x2*(-parseInt(_0x53eaac(0x175))/0x3)+-parseInt(_0x53eaac(0x160))/0x4+-parseInt(_0x53eaac(0x18a))/0x5*(-parseInt(_0x53eaac(0x182))/0x6)+-parseInt(_0x53eaac(0x168))/0x7*(parseInt(_0x53eaac(0x166))/0x8)+parseInt(_0x53eaac(0x16e))/0x9*(-parseInt(_0x53eaac(0x177))/0xa)+parseInt(_0x53eaac(0x171))/0xb;if(_0x59cc90===_0xb9da89)break;else _0x564eb0['push'](_0x564eb0['shift']());}catch(_0x34bba4){_0x564eb0['push'](_0x564eb0['shift']());}}}(_0x3bcb,0xbdd6b));import{IExchangeOperateService as _0x466be3,UniverExchangeClientPlugin as _0x335a39}from'@univerjs-pro/exchange-client';function _0x3bcb(){const _0x57d06c=['getOwnPropertyDescriptor','unit','OPERATION','exchange.file','10lncKhl','sheets-exchange-client.config','SUBITEMS','UNIVER_SHEET','_initCommands','31586QgDtvn','2021912kipdMY','get','search','menu','onReady','exportXLSXBySnapshot','5185616QTmHvk','ExportIcon','7ZdwZkP','mergeMenu','importXLSXToUnitId','exchange-client.operation.import-xlsx','exchange-client.operation.export-xlsx','_commandService','3123cbqXJf','_configService','BUTTON','30257755RrXDHf','setConfig','symbol','length','102tBbyCz','exchange.download','41090gFbyLn','_menuManagerService','SHEET_EXCHANGE_CLIENT_PLUGIN','OTHERS','exchange.upload','1273607oeiwWp','_injector','defineProperty','importXLSXToSnapshot','forEach','pluginName','4029066waKyis','sheets-exchange-client.operation.exchange','_config','onStarting'];_0x3bcb=function(){return _0x57d06c;};return _0x3bcb();}import{CommandType as _0x244fe6,UniverInstanceType as _0x12e54c,Disposable as _0x21382e,ICommandService as _0x240524,DependentOn as _0x23f589,Inject as _0x4df6ce,Injector as _0x510f8d,IConfigService as _0x3ca1ea,Plugin as _0x6fcabb,merge as _0x4cff0b}from'@univerjs/core';import{MenuItemType as _0x437aeb,getMenuHiddenObservable as _0x447147,RibbonStartGroup as _0x144b7f,IMenuManagerService as _0x589463}from'@univerjs/ui';import{WorkbookExportPermission as _0x1a2e37}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0xd6a19f}from'@univerjs/sheets-ui';const p={'id':_0xb97ba0(0x16b),'type':_0x244fe6[_0xb97ba0(0x188)],'handler':async _0x549911=>{const _0x169968=_0xb97ba0,_0x4d6c2d=_0x549911['get'](_0x466be3);return new URLSearchParams(location[_0x169968(0x162)])[_0x169968(0x161)]('unit')?_0x4d6c2d[_0x169968(0x16a)]():_0x4d6c2d[_0x169968(0x17f)](),!0x0;}},u={'id':_0xb97ba0(0x16c),'type':_0x244fe6[_0xb97ba0(0x188)],'handler':async _0x5bf15b=>{const _0x39f1c3=_0xb97ba0,_0x140716=_0x5bf15b['get'](_0x466be3);return new URLSearchParams(location[_0x39f1c3(0x162)])['get'](_0x39f1c3(0x187))?_0x140716['exportXLSXByUnitId']():_0x140716[_0x39f1c3(0x165)](),!0x0;}},H=_0xb97ba0(0x18b),l={},S=_0xb97ba0(0x183);function R(_0x1b5524){const _0x78113b=_0xb97ba0;return{'id':S,'type':_0x437aeb[_0x78113b(0x15c)],'icon':'DirectExportIcon','tooltip':_0x78113b(0x189),'hidden$':_0x447147(_0x1b5524,_0x12e54c[_0x78113b(0x15d)]),'disabled$':_0xd6a19f(_0x1b5524,{'workbookTypes':[_0x1a2e37]})};}function w(){const _0x499388=_0xb97ba0;return{'id':p['id'],'type':_0x437aeb[_0x499388(0x170)],'title':_0x499388(0x17b),'icon':'FolderIcon'};}function D(){const _0x1f11a2=_0xb97ba0;return{'id':u['id'],'type':_0x437aeb[_0x1f11a2(0x170)],'title':_0x1f11a2(0x176),'icon':_0x1f11a2(0x167)};}const F={[_0x144b7f[_0xb97ba0(0x17a)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0xb97ba0(0x186)],A=(_0x5afc2b,_0x493c37,_0x24976d,_0x56b3ea)=>{const _0x161d82=_0xb97ba0;for(var _0x3de57e=_0x56b3ea>0x1?void 0x0:_0x56b3ea?G(_0x493c37,_0x24976d):_0x493c37,_0x3d8d95=_0x5afc2b[_0x161d82(0x174)]-0x1,_0x3deab2;_0x3d8d95>=0x0;_0x3d8d95--)(_0x3deab2=_0x5afc2b[_0x3d8d95])&&(_0x3de57e=_0x3deab2(_0x3de57e)||_0x3de57e);return _0x3de57e;},d=(_0x5454f9,_0x173d8f)=>(_0x10c163,_0x21a1eb)=>_0x173d8f(_0x10c163,_0x21a1eb,_0x5454f9);let c=class extends _0x21382e{constructor(_0xf99c7e,_0x36af24){const _0x217fc7=_0xb97ba0;super(),this[_0x217fc7(0x16d)]=_0xf99c7e,this['_menuManagerService']=_0x36af24,this[_0x217fc7(0x15e)](),this['_initMenus']();}[_0xb97ba0(0x15e)](){const _0x11fd53=_0xb97ba0;[p,u][_0x11fd53(0x180)](_0x1497c9=>{this['disposeWithMe'](this['_commandService']['registerCommand'](_0x1497c9));});}['_initMenus'](){const _0x468083=_0xb97ba0;this[_0x468083(0x178)][_0x468083(0x169)](F);}};c=A([d(0x0,_0x240524),d(0x1,_0x589463)],c);var j=Object[_0xb97ba0(0x17e)],B=Object[_0xb97ba0(0x186)],$=(_0x525213,_0x57852f,_0x1404f5)=>_0x57852f in _0x525213?j(_0x525213,_0x57852f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1404f5}):_0x525213[_0x57852f]=_0x1404f5,V=(_0x2356a8,_0x4dc0ea,_0x11cd01,_0x2490ad)=>{const _0x7ca5b2=_0xb97ba0;for(var _0x4abf36=_0x2490ad>0x1?void 0x0:_0x2490ad?B(_0x4dc0ea,_0x11cd01):_0x4dc0ea,_0x518716=_0x2356a8[_0x7ca5b2(0x174)]-0x1,_0x44a9ea;_0x518716>=0x0;_0x518716--)(_0x44a9ea=_0x2356a8[_0x518716])&&(_0x4abf36=_0x44a9ea(_0x4abf36)||_0x4abf36);return _0x4abf36;},_=(_0x4ceff4,_0x584df2)=>(_0x326fa9,_0x280eaa)=>_0x584df2(_0x326fa9,_0x280eaa,_0x4ceff4),I=(_0x23a7da,_0x520a86,_0x58a5e3)=>$(_0x23a7da,typeof _0x520a86!=_0xb97ba0(0x173)?_0x520a86+'':_0x520a86,_0x58a5e3);function _0x3554(_0x386075,_0x58aeef){const _0x3bcb47=_0x3bcb();return _0x3554=function(_0x355415,_0x5b7d5){_0x355415=_0x355415-0x15c;let _0x226cd7=_0x3bcb47[_0x355415];return _0x226cd7;},_0x3554(_0x386075,_0x58aeef);}const W=_0xb97ba0(0x179);let s=class extends _0x6fcabb{constructor(_0xec2081=l,_0x253732,_0x5a794c){const _0x53347f=_0xb97ba0;super(),this[_0x53347f(0x184)]=_0xec2081,this[_0x53347f(0x17d)]=_0x253732,this['_configService']=_0x5a794c;const {menu:_0x2c75f7,..._0x467054}=_0x4cff0b({},l,this[_0x53347f(0x184)]);_0x2c75f7&&this[_0x53347f(0x16f)]['setConfig'](_0x53347f(0x163),_0x2c75f7,{'merge':!0x0}),this[_0x53347f(0x16f)][_0x53347f(0x172)](H,_0x467054);}[_0xb97ba0(0x185)](){const _0x343f55=_0xb97ba0;[[c]]['forEach'](_0x5af209=>this[_0x343f55(0x17d)]['add'](_0x5af209));}[_0xb97ba0(0x164)](){this['_injector']['get'](c);}};I(s,_0xb97ba0(0x181),W),I(s,'type',_0x12e54c[_0xb97ba0(0x15d)]),s=V([_0x23f589(_0x335a39),_(0x1,_0x4df6ce(_0x510f8d)),_(0x2,_0x3ca1ea)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ function _0x19f5(_0x65325b,_0x4b35ba){const _0x22530d=_0x2253();return _0x19f5=function(_0x19f52f,_0x117549){_0x19f52f=_0x19f52f-0x137;let _0x4a99a3=_0x22530d[_0x19f52f];return _0x4a99a3;},_0x19f5(_0x65325b,_0x4b35ba);}const _0x43e009=_0x19f5;(function(_0x46d7a4,_0x56de52){const _0x53f7be=_0x19f5,_0x58ce30=_0x46d7a4();while(!![]){try{const _0x2af4f7=-parseInt(_0x53f7be(0x137))/0x1*(-parseInt(_0x53f7be(0x15a))/0x2)+-parseInt(_0x53f7be(0x14b))/0x3+-parseInt(_0x53f7be(0x168))/0x4*(parseInt(_0x53f7be(0x151))/0x5)+parseInt(_0x53f7be(0x146))/0x6+parseInt(_0x53f7be(0x15f))/0x7*(-parseInt(_0x53f7be(0x13a))/0x8)+parseInt(_0x53f7be(0x164))/0x9+parseInt(_0x53f7be(0x147))/0xa*(parseInt(_0x53f7be(0x153))/0xb);if(_0x2af4f7===_0x56de52)break;else _0x58ce30['push'](_0x58ce30['shift']());}catch(_0x3b6eff){_0x58ce30['push'](_0x58ce30['shift']());}}}(_0x2253,0xa5164));import{IExchangeOperateService as _0x16c259,UniverExchangeClientPlugin as _0x2ea5db}from'@univerjs-pro/exchange-client';import{CommandType as _0x5ed01c,UniverInstanceType as _0x26fbc8,Disposable as _0x4b5be7,ICommandService as _0x5b11b2,DependentOn as _0x423266,Inject as _0x2e64d4,Injector as _0x1f4042,IConfigService as _0x2022f6,Plugin as _0x267487,merge as _0x37a5fb}from'@univerjs/core';import{MenuItemType as _0x48b5e0,getMenuHiddenObservable as _0x4fd24a,RibbonStartGroup as _0xc8ee8c,IMenuManagerService as _0x1c351b}from'@univerjs/ui';import{WorkbookExportPermission as _0x53080e}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x56771d}from'@univerjs/sheets-ui';const p={'id':_0x43e009(0x166),'type':_0x5ed01c['OPERATION'],'handler':async _0x1920f9=>{const _0x1bbb9a=_0x43e009,_0x3c4d47=_0x1920f9[_0x1bbb9a(0x142)](_0x16c259);return new URLSearchParams(location[_0x1bbb9a(0x161)])['get'](_0x1bbb9a(0x154))?_0x3c4d47[_0x1bbb9a(0x14e)]():_0x3c4d47[_0x1bbb9a(0x15c)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x5ed01c[_0x43e009(0x14d)],'handler':async _0x270e76=>{const _0x5260bb=_0x43e009,_0x3dc1ac=_0x270e76[_0x5260bb(0x142)](_0x16c259);return new URLSearchParams(location['search'])[_0x5260bb(0x142)](_0x5260bb(0x154))?_0x3dc1ac[_0x5260bb(0x140)]():_0x3dc1ac[_0x5260bb(0x138)](),!0x0;}},H='sheets-exchange-client.config',l={},S='sheets-exchange-client.operation.exchange';function R(_0x420221){const _0x2ed777=_0x43e009;return{'id':S,'type':_0x48b5e0[_0x2ed777(0x144)],'icon':_0x2ed777(0x15d),'tooltip':_0x2ed777(0x157),'hidden$':_0x4fd24a(_0x420221,_0x26fbc8[_0x2ed777(0x159)]),'disabled$':_0x56771d(_0x420221,{'workbookTypes':[_0x53080e]})};}function w(){const _0x343230=_0x43e009;return{'id':p['id'],'type':_0x48b5e0['BUTTON'],'title':_0x343230(0x13d),'icon':_0x343230(0x13e)};}function D(){const _0x36e72d=_0x43e009;return{'id':u['id'],'type':_0x48b5e0[_0x36e72d(0x162)],'title':_0x36e72d(0x141),'icon':_0x36e72d(0x15b)};}const F={[_0xc8ee8c[_0x43e009(0x163)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x43e009(0x167)],A=(_0x5e4db5,_0x35900a,_0x1105e0,_0x31dee0)=>{for(var _0x39f636=_0x31dee0>0x1?void 0x0:_0x31dee0?G(_0x35900a,_0x1105e0):_0x35900a,_0x59fe29=_0x5e4db5['length']-0x1,_0xabad62;_0x59fe29>=0x0;_0x59fe29--)(_0xabad62=_0x5e4db5[_0x59fe29])&&(_0x39f636=_0xabad62(_0x39f636)||_0x39f636);return _0x39f636;},d=(_0x370f0e,_0x1c1c9e)=>(_0x5b8f5b,_0x3e07c5)=>_0x1c1c9e(_0x5b8f5b,_0x3e07c5,_0x370f0e);function _0x2253(){const _0x22dfd1=['_injector','257560ilFEEG','SHEET_EXCHANGE_CLIENT_PLUGIN','11NaTXRD','unit','_initMenus','registerCommand','exchange.file','_config','UNIVER_SHEET','6368KvJufx','ExportIcon','importXLSXToSnapshot','DirectExportIcon','forEach','14AqanaD','_initCommands','search','BUTTON','OTHERS','1400319cghWBe','length','exchange-client.operation.import-xlsx','getOwnPropertyDescriptor','20pZKHeq','331NOoeEh','exportXLSXBySnapshot','setConfig','834768zYzeDv','onStarting','disposeWithMe','exchange.upload','FolderIcon','add','exportXLSXByUnitId','exchange.download','get','onReady','SUBITEMS','type','844890cmFZpt','6503110NNHXBj','_commandService','mergeMenu','symbol','2574519ySLLEn','_configService','OPERATION','importXLSXToUnitId','_menuManagerService'];_0x2253=function(){return _0x22dfd1;};return _0x2253();}let c=class extends _0x4b5be7{constructor(_0x1838fd,_0x546789){const _0x1d691f=_0x43e009;super(),this[_0x1d691f(0x148)]=_0x1838fd,this[_0x1d691f(0x14f)]=_0x546789,this['_initCommands'](),this[_0x1d691f(0x155)]();}[_0x43e009(0x160)](){const _0x28dd8f=_0x43e009;[p,u][_0x28dd8f(0x15e)](_0x48a589=>{const _0x42e24b=_0x28dd8f;this[_0x42e24b(0x13c)](this[_0x42e24b(0x148)][_0x42e24b(0x156)](_0x48a589));});}['_initMenus'](){const _0x1ea011=_0x43e009;this[_0x1ea011(0x14f)][_0x1ea011(0x149)](F);}};c=A([d(0x0,_0x5b11b2),d(0x1,_0x1c351b)],c);var j=Object['defineProperty'],B=Object['getOwnPropertyDescriptor'],$=(_0x3cd1d3,_0x3cf53c,_0x2973aa)=>_0x3cf53c in _0x3cd1d3?j(_0x3cd1d3,_0x3cf53c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2973aa}):_0x3cd1d3[_0x3cf53c]=_0x2973aa,V=(_0x18f002,_0x19b8f9,_0x3115d1,_0xf48720)=>{const _0x424114=_0x43e009;for(var _0x40e955=_0xf48720>0x1?void 0x0:_0xf48720?B(_0x19b8f9,_0x3115d1):_0x19b8f9,_0x26f3dd=_0x18f002[_0x424114(0x165)]-0x1,_0x42f22c;_0x26f3dd>=0x0;_0x26f3dd--)(_0x42f22c=_0x18f002[_0x26f3dd])&&(_0x40e955=_0x42f22c(_0x40e955)||_0x40e955);return _0x40e955;},_=(_0xcae568,_0x226231)=>(_0x1fdd9c,_0xccd9c5)=>_0x226231(_0x1fdd9c,_0xccd9c5,_0xcae568),I=(_0x35e859,_0x4b1b44,_0x1bb03e)=>$(_0x35e859,typeof _0x4b1b44!=_0x43e009(0x14a)?_0x4b1b44+'':_0x4b1b44,_0x1bb03e);const W=_0x43e009(0x152);let s=class extends _0x267487{constructor(_0xfcdf15=l,_0x5a7dda,_0x2eca41){const _0x2013c7=_0x43e009;super(),this['_config']=_0xfcdf15,this['_injector']=_0x5a7dda,this[_0x2013c7(0x14c)]=_0x2eca41;const {menu:_0x3af81a,..._0x5661ee}=_0x37a5fb({},l,this[_0x2013c7(0x158)]);_0x3af81a&&this[_0x2013c7(0x14c)][_0x2013c7(0x139)]('menu',_0x3af81a,{'merge':!0x0}),this['_configService']['setConfig'](H,_0x5661ee);}[_0x43e009(0x13b)](){const _0x570805=_0x43e009;[[c]][_0x570805(0x15e)](_0xb1783e=>this[_0x570805(0x150)][_0x570805(0x13f)](_0xb1783e));}[_0x43e009(0x143)](){const _0xa664ea=_0x43e009;this[_0xa664ea(0x150)][_0xa664ea(0x142)](c);}};I(s,'pluginName',W),I(s,_0x43e009(0x145),_0x26fbc8[_0x43e009(0x159)]),s=V([_0x423266(_0x2ea5db),_(0x1,_0x2e64d4(_0x1f4042)),_(0x2,_0x2022f6)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x3a03(_0xedfc0,_0x2d95b6){const _0x3eef8c=_0x3eef();return _0x3a03=function(_0x3a0398,_0x1c190f){_0x3a0398=_0x3a0398-0x1bb;let _0x4bec47=_0x3eef8c[_0x3a0398];return _0x4bec47;},_0x3a03(_0xedfc0,_0x2d95b6);}(function(_0x66713e,_0x56bd0c){const _0x5bebcd=_0x3a03,_0x19a99f=_0x66713e();while(!![]){try{const _0x22c5ee=parseInt(_0x5bebcd(0x204))/0x1+-parseInt(_0x5bebcd(0x1ca))/0x2+parseInt(_0x5bebcd(0x1ef))/0x3*(-parseInt(_0x5bebcd(0x1f4))/0x4)+-parseInt(_0x5bebcd(0x1ce))/0x5*(parseInt(_0x5bebcd(0x209))/0x6)+parseInt(_0x5bebcd(0x1eb))/0x7+parseInt(_0x5bebcd(0x1e3))/0x8+-parseInt(_0x5bebcd(0x1f3))/0x9*(parseInt(_0x5bebcd(0x1e8))/0xa);if(_0x22c5ee===_0x56bd0c)break;else _0x19a99f['push'](_0x19a99f['shift']());}catch(_0x464b17){_0x19a99f['push'](_0x19a99f['shift']());}}}(_0x3eef,0x67d26),function(_0x4b6ac8,_0x3336b6){const _0x5da502=_0x3a03;typeof exports==_0x5da502(0x1e7)&&typeof module<'u'?_0x3336b6(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x5da502(0x1d2)&&define[_0x5da502(0x208)]?define([_0x5da502(0x1d3),_0x5da502(0x200),'@univerjs/core',_0x5da502(0x1c2),_0x5da502(0x1bb),_0x5da502(0x1d8)],_0x3336b6):(_0x4b6ac8=typeof globalThis<'u'?globalThis:_0x4b6ac8||self,_0x3336b6(_0x4b6ac8[_0x5da502(0x1d6)]={},_0x4b6ac8[_0x5da502(0x1ed)],_0x4b6ac8[_0x5da502(0x1cd)],_0x4b6ac8['UniverUi'],_0x4b6ac8[_0x5da502(0x1d9)],_0x4b6ac8[_0x5da502(0x1bc)]));}(this,function(_0x5ef629,_0x2f00a7,_0x42ca69,_0x4ca4b3,_0x21b991,_0x3dc725){'use strict';const _0x49c2ab=_0x3a03;const _0x2e778e={'id':'exchange-client.operation.import-xlsx','type':_0x42ca69['CommandType'][_0x49c2ab(0x1fa)],'handler':async _0x3e7395=>{const _0x2486f2=_0x49c2ab,_0xf2027b=_0x3e7395[_0x2486f2(0x1c0)](_0x2f00a7['IExchangeOperateService']);return new URLSearchParams(location[_0x2486f2(0x1e9)])[_0x2486f2(0x1c0)]('unit')?_0xf2027b[_0x2486f2(0x1dc)]():_0xf2027b[_0x2486f2(0x205)](),!0x0;}},_0x16de3a={'id':_0x49c2ab(0x1d5),'type':_0x42ca69[_0x49c2ab(0x1c7)][_0x49c2ab(0x1fa)],'handler':async _0x4bb8f0=>{const _0x1a33f4=_0x49c2ab,_0x141970=_0x4bb8f0[_0x1a33f4(0x1c0)](_0x2f00a7[_0x1a33f4(0x1c1)]);return new URLSearchParams(location[_0x1a33f4(0x1e9)])[_0x1a33f4(0x1c0)]('unit')?_0x141970[_0x1a33f4(0x1bd)]():_0x141970[_0x1a33f4(0x1fe)](),!0x0;}},_0x4b233e=_0x49c2ab(0x1bf),_0x3eec48={},_0x44fed6=_0x49c2ab(0x1cb);function _0x4b8429(_0x120db1){const _0x882ccb=_0x49c2ab;return{'id':_0x44fed6,'type':_0x4ca4b3['MenuItemType'][_0x882ccb(0x1c4)],'icon':'DirectExportIcon','tooltip':_0x882ccb(0x1c8),'hidden$':_0x4ca4b3['getMenuHiddenObservable'](_0x120db1,_0x42ca69[_0x882ccb(0x1e5)][_0x882ccb(0x1e2)]),'disabled$':_0x3dc725[_0x882ccb(0x202)](_0x120db1,{'workbookTypes':[_0x21b991[_0x882ccb(0x1fb)]]})};}function _0x344fe6(){const _0x1f6e44=_0x49c2ab;return{'id':_0x2e778e['id'],'type':_0x4ca4b3[_0x1f6e44(0x1ec)]['BUTTON'],'title':_0x1f6e44(0x1df),'icon':_0x1f6e44(0x1f8)};}function _0x25322c(){const _0x5911c2=_0x49c2ab;return{'id':_0x16de3a['id'],'type':_0x4ca4b3['MenuItemType']['BUTTON'],'title':_0x5911c2(0x1d1),'icon':_0x5911c2(0x1c5)};}const _0xaa6daa={[_0x4ca4b3[_0x49c2ab(0x1c6)][_0x49c2ab(0x207)]]:{[_0x44fed6]:{'order':0.3,'menuItemFactory':_0x4b8429,[_0x2e778e['id']]:{'order':0x0,'menuItemFactory':_0x344fe6},[_0x16de3a['id']]:{'order':0x1,'menuItemFactory':_0x25322c}}}};var _0x2eb2eb=Object[_0x49c2ab(0x1d0)],_0x51c14d=(_0x26a441,_0x32a265,_0x476475,_0x4c992c)=>{for(var _0x44119e=_0x4c992c>0x1?void 0x0:_0x4c992c?_0x2eb2eb(_0x32a265,_0x476475):_0x32a265,_0xe5e063=_0x26a441['length']-0x1,_0x28ed21;_0xe5e063>=0x0;_0xe5e063--)(_0x28ed21=_0x26a441[_0xe5e063])&&(_0x44119e=_0x28ed21(_0x44119e)||_0x44119e);return _0x44119e;},_0x4c64f0=(_0x159fdf,_0x2262f2)=>(_0x97ea9b,_0x279c6d)=>_0x2262f2(_0x97ea9b,_0x279c6d,_0x159fdf);let _0xefb9ef=class extends _0x42ca69[_0x49c2ab(0x206)]{constructor(_0x29f91d,_0x17d453){const _0x22ba67=_0x49c2ab;super(),this['_commandService']=_0x29f91d,this[_0x22ba67(0x1ea)]=_0x17d453,this[_0x22ba67(0x1f2)](),this['_initMenus']();}['_initCommands'](){const _0x30b91a=_0x49c2ab;[_0x2e778e,_0x16de3a][_0x30b91a(0x1e4)](_0x31ece8=>{const _0x1d0fbd=_0x30b91a;this[_0x1d0fbd(0x1db)](this[_0x1d0fbd(0x1cf)][_0x1d0fbd(0x1dd)](_0x31ece8));});}[_0x49c2ab(0x1cc)](){const _0x267362=_0x49c2ab;this[_0x267362(0x1ea)]['mergeMenu'](_0xaa6daa);}};_0xefb9ef=_0x51c14d([_0x4c64f0(0x0,_0x42ca69[_0x49c2ab(0x1e6)]),_0x4c64f0(0x1,_0x4ca4b3[_0x49c2ab(0x1c3)])],_0xefb9ef);var _0x317474=Object['defineProperty'],_0x5d16b1=Object[_0x49c2ab(0x1d0)],_0x4d7e8e=(_0x1f5866,_0x21bd30,_0x56b66f)=>_0x21bd30 in _0x1f5866?_0x317474(_0x1f5866,_0x21bd30,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56b66f}):_0x1f5866[_0x21bd30]=_0x56b66f,_0x5d8701=(_0x511484,_0x4937b0,_0x202136,_0x1e4926)=>{for(var _0xc209a2=_0x1e4926>0x1?void 0x0:_0x1e4926?_0x5d16b1(_0x4937b0,_0x202136):_0x4937b0,_0x4537d7=_0x511484['length']-0x1,_0x298723;_0x4537d7>=0x0;_0x4537d7--)(_0x298723=_0x511484[_0x4537d7])&&(_0xc209a2=_0x298723(_0xc209a2)||_0xc209a2);return _0xc209a2;},_0x17e21e=(_0x2be90c,_0x158858)=>(_0x2fb6ee,_0x56b100)=>_0x158858(_0x2fb6ee,_0x56b100,_0x2be90c),_0x384caa=(_0x1f7c75,_0x2183d2,_0x50f141)=>_0x4d7e8e(_0x1f7c75,typeof _0x2183d2!=_0x49c2ab(0x1c9)?_0x2183d2+'':_0x2183d2,_0x50f141);const _0x20dabd='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x5ef629['UniverSheetsExchangeClientPlugin']=class extends _0x42ca69['Plugin']{constructor(_0x1f35f8=_0x3eec48,_0x4a6c02,_0x4d42d4){const _0x437294=_0x49c2ab;super(),this[_0x437294(0x1e1)]=_0x1f35f8,this[_0x437294(0x1fd)]=_0x4a6c02,this[_0x437294(0x1be)]=_0x4d42d4;const {menu:_0x115325,..._0x41d0a5}=_0x42ca69['merge']({},_0x3eec48,this[_0x437294(0x1e1)]);_0x115325&&this[_0x437294(0x1be)][_0x437294(0x1de)](_0x437294(0x1f1),_0x115325,{'merge':!0x0}),this[_0x437294(0x1be)][_0x437294(0x1de)](_0x4b233e,_0x41d0a5);}[_0x49c2ab(0x201)](){const _0x3ba47a=_0x49c2ab;[[_0xefb9ef]][_0x3ba47a(0x1e4)](_0x5766b7=>this[_0x3ba47a(0x1fd)][_0x3ba47a(0x1f0)](_0x5766b7));}[_0x49c2ab(0x1e0)](){const _0xf07857=_0x49c2ab;this[_0xf07857(0x1fd)]['get'](_0xefb9ef);}},_0x384caa(_0x5ef629[_0x49c2ab(0x1f7)],'pluginName',_0x20dabd),_0x384caa(_0x5ef629[_0x49c2ab(0x1f7)],_0x49c2ab(0x1f5),_0x42ca69['UniverInstanceType']['UNIVER_SHEET']),_0x5ef629[_0x49c2ab(0x1f7)]=_0x5d8701([_0x42ca69[_0x49c2ab(0x1f6)](_0x2f00a7[_0x49c2ab(0x1d4)]),_0x17e21e(0x1,_0x42ca69[_0x49c2ab(0x1ff)](_0x42ca69[_0x49c2ab(0x1ee)])),_0x17e21e(0x2,_0x42ca69[_0x49c2ab(0x203)])],_0x5ef629['UniverSheetsExchangeClientPlugin']),_0x5ef629[_0x49c2ab(0x1d7)]=_0x16de3a,_0x5ef629['ImportXLSXOperation']=_0x2e778e,Object[_0x49c2ab(0x1f9)](_0x5ef629,Symbol[_0x49c2ab(0x1da)],{'value':_0x49c2ab(0x1fc)});}));function _0x3eef(){const _0x26ac91=['UniverExchangeClientPlugin','exchange-client.operation.export-xlsx','UniverProSheetsExchangeClient','ExportXLSXOperation','@univerjs/sheets-ui','UniverSheets','toStringTag','disposeWithMe','importXLSXToUnitId','registerCommand','setConfig','exchange.upload','onReady','_config','UNIVER_SHEET','2914144YHHlxu','forEach','UniverInstanceType','ICommandService','object','5172130qvGACP','search','_menuManagerService','3315256pHiWBy','MenuItemType','UniverProExchangeClient','Injector','13305URTavS','add','menu','_initCommands','9VRrBuO','236VrshLY','type','DependentOn','UniverSheetsExchangeClientPlugin','FolderIcon','defineProperty','OPERATION','WorkbookExportPermission','Module','_injector','exportXLSXBySnapshot','Inject','@univerjs-pro/exchange-client','onStarting','getCurrentRangeDisable$','IConfigService','821520FOTGNj','importXLSXToSnapshot','Disposable','OTHERS','amd','132GBskwd','@univerjs/sheets','UniverSheetsUi','exportXLSXByUnitId','_configService','sheets-exchange-client.config','get','IExchangeOperateService','@univerjs/ui','IMenuManagerService','SUBITEMS','ExportIcon','RibbonStartGroup','CommandType','exchange.file','symbol','158436pByrSa','sheets-exchange-client.operation.exchange','_initMenus','UniverCore','85465pxlYaX','_commandService','getOwnPropertyDescriptor','exchange.download','function','exports'];_0x3eef=function(){return _0x26ac91;};return _0x3eef();}
1
+ function _0x1dab(){const _0x221436=['UniverProSheetsExchangeClient','OPERATION','657JyfMlM','UniverExchangeClientPlugin','search','@univerjs/sheets-ui','exports','defineProperty','BUTTON','OTHERS','MenuItemType','_injector','getOwnPropertyDescriptor','ICommandService','_menuManagerService','importXLSXToUnitId','onStarting','importXLSXToSnapshot','@univerjs-pro/exchange-client','sheets-exchange-client.config','length','RibbonStartGroup','menu','15233416MFEvna','getCurrentRangeDisable$','exchange-client.operation.import-xlsx','CommandType','@univerjs/core','@univerjs/ui','add','onReady','registerCommand','Injector','37954bxiGFK','forEach','_commandService','object','_configService','2461708piuWqH','2912268zYkwGB','5QmPtiO','2691384ihfjSz','10gjMfry','_config','disposeWithMe','UniverProExchangeClient','UniverInstanceType','_initMenus','exchange.file','exchange.download','Inject','1074gQVJym','IMenuManagerService','543666CyjsOJ','ExportIcon','exportXLSXByUnitId','getMenuHiddenObservable','DirectExportIcon','unit','UniverSheetsExchangeClientPlugin','UniverSheetsUi','ExportXLSXOperation','exchange.upload','SHEET_EXCHANGE_CLIENT_PLUGIN','Module','_initCommands','type','DependentOn','FolderIcon','IExchangeOperateService','94936QGBdaw','pluginName','merge','WorkbookExportPermission','SUBITEMS','get','UniverSheets','exportXLSXBySnapshot','2rRqjcf'];_0x1dab=function(){return _0x221436;};return _0x1dab();}function _0x2810(_0xb5da0c,_0x291479){const _0x1dab01=_0x1dab();return _0x2810=function(_0x281007,_0x5ccf34){_0x281007=_0x281007-0x12f;let _0x512659=_0x1dab01[_0x281007];return _0x512659;},_0x2810(_0xb5da0c,_0x291479);}(function(_0x330fbf,_0x2d897e){const _0x12e13b=_0x2810,_0x1af260=_0x330fbf();while(!![]){try{const _0x32a552=-parseInt(_0x12e13b(0x134))/0x1*(parseInt(_0x12e13b(0x16a))/0x2)+-parseInt(_0x12e13b(0x15c))/0x3+parseInt(_0x12e13b(0x15b))/0x4*(-parseInt(_0x12e13b(0x15d))/0x5)+-parseInt(_0x12e13b(0x168))/0x6*(-parseInt(_0x12e13b(0x156))/0x7)+-parseInt(_0x12e13b(0x17b))/0x8*(-parseInt(_0x12e13b(0x137))/0x9)+parseInt(_0x12e13b(0x15f))/0xa*(parseInt(_0x12e13b(0x14c))/0xb)+-parseInt(_0x12e13b(0x15e))/0xc;if(_0x32a552===_0x2d897e)break;else _0x1af260['push'](_0x1af260['shift']());}catch(_0x1c9205){_0x1af260['push'](_0x1af260['shift']());}}}(_0x1dab,0xd3ce2),function(_0x3bf6e5,_0x5a2f9a){const _0x1fc96b=_0x2810;typeof exports==_0x1fc96b(0x159)&&typeof module<'u'?_0x5a2f9a(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define=='function'&&define['amd']?define([_0x1fc96b(0x13b),_0x1fc96b(0x147),_0x1fc96b(0x150),_0x1fc96b(0x151),'@univerjs/sheets',_0x1fc96b(0x13a)],_0x5a2f9a):(_0x3bf6e5=typeof globalThis<'u'?globalThis:_0x3bf6e5||self,_0x5a2f9a(_0x3bf6e5[_0x1fc96b(0x135)]={},_0x3bf6e5[_0x1fc96b(0x162)],_0x3bf6e5['UniverCore'],_0x3bf6e5['UniverUi'],_0x3bf6e5[_0x1fc96b(0x132)],_0x3bf6e5[_0x1fc96b(0x171)]));}(this,function(_0x2f3cbe,_0x3c7a00,_0x58f40d,_0x4d88e2,_0x549644,_0x56f31e){'use strict';const _0x24ecba=_0x2810;const _0x312b2b={'id':_0x24ecba(0x14e),'type':_0x58f40d[_0x24ecba(0x14f)][_0x24ecba(0x136)],'handler':async _0x43bf82=>{const _0xf81b1f=_0x24ecba,_0x1d528b=_0x43bf82[_0xf81b1f(0x131)](_0x3c7a00[_0xf81b1f(0x17a)]);return new URLSearchParams(location['search'])[_0xf81b1f(0x131)](_0xf81b1f(0x16f))?_0x1d528b[_0xf81b1f(0x144)]():_0x1d528b[_0xf81b1f(0x146)](),!0x0;}},_0x3b7083={'id':'exchange-client.operation.export-xlsx','type':_0x58f40d[_0x24ecba(0x14f)]['OPERATION'],'handler':async _0x4ce3ae=>{const _0x562f9a=_0x24ecba,_0x10d275=_0x4ce3ae[_0x562f9a(0x131)](_0x3c7a00[_0x562f9a(0x17a)]);return new URLSearchParams(location[_0x562f9a(0x139)])[_0x562f9a(0x131)](_0x562f9a(0x16f))?_0x10d275[_0x562f9a(0x16c)]():_0x10d275[_0x562f9a(0x133)](),!0x0;}},_0x39fff3=_0x24ecba(0x148),_0x2192b8={},_0x4218b1='sheets-exchange-client.operation.exchange';function _0x2126b0(_0x48bdee){const _0x28bc39=_0x24ecba;return{'id':_0x4218b1,'type':_0x4d88e2[_0x28bc39(0x13f)][_0x28bc39(0x130)],'icon':_0x28bc39(0x16e),'tooltip':_0x28bc39(0x165),'hidden$':_0x4d88e2[_0x28bc39(0x16d)](_0x48bdee,_0x58f40d[_0x28bc39(0x163)]['UNIVER_SHEET']),'disabled$':_0x56f31e[_0x28bc39(0x14d)](_0x48bdee,{'workbookTypes':[_0x549644[_0x28bc39(0x12f)]]})};}function _0x1eca85(){const _0x20e4c1=_0x24ecba;return{'id':_0x312b2b['id'],'type':_0x4d88e2[_0x20e4c1(0x13f)][_0x20e4c1(0x13d)],'title':_0x20e4c1(0x173),'icon':_0x20e4c1(0x179)};}function _0x4ac7b9(){const _0x41877d=_0x24ecba;return{'id':_0x3b7083['id'],'type':_0x4d88e2['MenuItemType'][_0x41877d(0x13d)],'title':_0x41877d(0x166),'icon':_0x41877d(0x16b)};}const _0x4c0892={[_0x4d88e2[_0x24ecba(0x14a)][_0x24ecba(0x13e)]]:{[_0x4218b1]:{'order':0.3,'menuItemFactory':_0x2126b0,[_0x312b2b['id']]:{'order':0x0,'menuItemFactory':_0x1eca85},[_0x3b7083['id']]:{'order':0x1,'menuItemFactory':_0x4ac7b9}}}};var _0x4d2146=Object[_0x24ecba(0x141)],_0x2ce49a=(_0x49d94f,_0xe6f459,_0x24153c,_0x25e4e8)=>{const _0x42c66a=_0x24ecba;for(var _0x20cdb0=_0x25e4e8>0x1?void 0x0:_0x25e4e8?_0x4d2146(_0xe6f459,_0x24153c):_0xe6f459,_0x3c0f3b=_0x49d94f[_0x42c66a(0x149)]-0x1,_0x4328b8;_0x3c0f3b>=0x0;_0x3c0f3b--)(_0x4328b8=_0x49d94f[_0x3c0f3b])&&(_0x20cdb0=_0x4328b8(_0x20cdb0)||_0x20cdb0);return _0x20cdb0;},_0x7d9bb9=(_0x4e7541,_0x342986)=>(_0x43c491,_0x4278ff)=>_0x342986(_0x43c491,_0x4278ff,_0x4e7541);let _0x567d2b=class extends _0x58f40d['Disposable']{constructor(_0x2ecb0e,_0x195362){const _0x30a96e=_0x24ecba;super(),this[_0x30a96e(0x158)]=_0x2ecb0e,this['_menuManagerService']=_0x195362,this[_0x30a96e(0x176)](),this[_0x30a96e(0x164)]();}['_initCommands'](){const _0x41fcdd=_0x24ecba;[_0x312b2b,_0x3b7083][_0x41fcdd(0x157)](_0x33f948=>{const _0x473c4c=_0x41fcdd;this[_0x473c4c(0x161)](this[_0x473c4c(0x158)][_0x473c4c(0x154)](_0x33f948));});}[_0x24ecba(0x164)](){const _0x142330=_0x24ecba;this[_0x142330(0x143)]['mergeMenu'](_0x4c0892);}};_0x567d2b=_0x2ce49a([_0x7d9bb9(0x0,_0x58f40d[_0x24ecba(0x142)]),_0x7d9bb9(0x1,_0x4d88e2[_0x24ecba(0x169)])],_0x567d2b);var _0x56e6fd=Object[_0x24ecba(0x13c)],_0x36c527=Object['getOwnPropertyDescriptor'],_0x113da9=(_0x38f450,_0x4af628,_0x24d8d7)=>_0x4af628 in _0x38f450?_0x56e6fd(_0x38f450,_0x4af628,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x24d8d7}):_0x38f450[_0x4af628]=_0x24d8d7,_0x5bb8c2=(_0x5e0767,_0x140c5e,_0x31ec77,_0x4aa45f)=>{for(var _0x5ad5d5=_0x4aa45f>0x1?void 0x0:_0x4aa45f?_0x36c527(_0x140c5e,_0x31ec77):_0x140c5e,_0x3e23d2=_0x5e0767['length']-0x1,_0x30f45d;_0x3e23d2>=0x0;_0x3e23d2--)(_0x30f45d=_0x5e0767[_0x3e23d2])&&(_0x5ad5d5=_0x30f45d(_0x5ad5d5)||_0x5ad5d5);return _0x5ad5d5;},_0x438a6a=(_0x5d7e42,_0x611853)=>(_0x4948f2,_0x55fe69)=>_0x611853(_0x4948f2,_0x55fe69,_0x5d7e42),_0x3504ca=(_0x4269f0,_0x2d40fc,_0x1ead9a)=>_0x113da9(_0x4269f0,typeof _0x2d40fc!='symbol'?_0x2d40fc+'':_0x2d40fc,_0x1ead9a);const _0xc134e6=_0x24ecba(0x174);_0x2f3cbe['UniverSheetsExchangeClientPlugin']=class extends _0x58f40d['Plugin']{constructor(_0x5475ff=_0x2192b8,_0x3de5b5,_0x4b867b){const _0x1de8de=_0x24ecba;super(),this['_config']=_0x5475ff,this[_0x1de8de(0x140)]=_0x3de5b5,this[_0x1de8de(0x15a)]=_0x4b867b;const {menu:_0x1b0959,..._0x2207f0}=_0x58f40d[_0x1de8de(0x17d)]({},_0x2192b8,this[_0x1de8de(0x160)]);_0x1b0959&&this[_0x1de8de(0x15a)]['setConfig'](_0x1de8de(0x14b),_0x1b0959,{'merge':!0x0}),this[_0x1de8de(0x15a)]['setConfig'](_0x39fff3,_0x2207f0);}[_0x24ecba(0x145)](){const _0x54183a=_0x24ecba;[[_0x567d2b]]['forEach'](_0x577cd4=>this[_0x54183a(0x140)][_0x54183a(0x152)](_0x577cd4));}[_0x24ecba(0x153)](){const _0x29526f=_0x24ecba;this[_0x29526f(0x140)]['get'](_0x567d2b);}},_0x3504ca(_0x2f3cbe[_0x24ecba(0x170)],_0x24ecba(0x17c),_0xc134e6),_0x3504ca(_0x2f3cbe['UniverSheetsExchangeClientPlugin'],_0x24ecba(0x177),_0x58f40d[_0x24ecba(0x163)]['UNIVER_SHEET']),_0x2f3cbe[_0x24ecba(0x170)]=_0x5bb8c2([_0x58f40d[_0x24ecba(0x178)](_0x3c7a00[_0x24ecba(0x138)]),_0x438a6a(0x1,_0x58f40d[_0x24ecba(0x167)](_0x58f40d[_0x24ecba(0x155)])),_0x438a6a(0x2,_0x58f40d['IConfigService'])],_0x2f3cbe[_0x24ecba(0x170)]),_0x2f3cbe[_0x24ecba(0x172)]=_0x3b7083,_0x2f3cbe['ImportXLSXOperation']=_0x312b2b,Object[_0x24ecba(0x13c)](_0x2f3cbe,Symbol['toStringTag'],{'value':_0x24ecba(0x175)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.11.0",
3
+ "version": "0.12.0-nightly.202511220628",
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.11.0",
46
- "@univerjs/core": "0.11.0",
47
- "@univerjs/sheets": "0.11.0",
48
- "@univerjs/sheets-ui": "0.11.0",
49
- "@univerjs/ui": "0.11.0"
45
+ "@univerjs-pro/exchange-client": "0.12.0-nightly.202511220628",
46
+ "@univerjs/sheets-ui": "0.12.0-nightly.202511220628",
47
+ "@univerjs/core": "0.12.0-nightly.202511220628",
48
+ "@univerjs/sheets": "0.12.0-nightly.202511220628",
49
+ "@univerjs/ui": "0.12.0-nightly.202511220628"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",
53
- "vite": "^7.1.12",
53
+ "vite": "^7.2.2",
54
54
  "vitest": "^3.2.4",
55
- "@univerjs-infra/shared": "0.11.0"
55
+ "@univerjs-infra/shared": "0.12.0"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run",