@univerjs-pro/sheets-exchange-client 0.10.10-experimental.20251016-33b0941 → 0.10.10-nightly.202510170942

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 _0x1d4f2f=_0xa130;(function(_0x49c488,_0x387f1c){const _0x576cda=_0xa130,_0x4227e5=_0x49c488();while(!![]){try{const _0x1df5e8=-parseInt(_0x576cda(0x1fd))/0x1+-parseInt(_0x576cda(0x21e))/0x2+parseInt(_0x576cda(0x225))/0x3+-parseInt(_0x576cda(0x21d))/0x4*(-parseInt(_0x576cda(0x21c))/0x5)+-parseInt(_0x576cda(0x204))/0x6+parseInt(_0x576cda(0x20c))/0x7*(-parseInt(_0x576cda(0x1fa))/0x8)+parseInt(_0x576cda(0x21a))/0x9;if(_0x1df5e8===_0x387f1c)break;else _0x4227e5['push'](_0x4227e5['shift']());}catch(_0x117248){_0x4227e5['push'](_0x4227e5['shift']());}}}(_0x12cd,0xdb30b));function _0xa130(_0x19cb7c,_0x864b3){const _0x12cdc4=_0x12cd();return _0xa130=function(_0xa13051,_0x52025e){_0xa13051=_0xa13051-0x1e4;let _0x3ce867=_0x12cdc4[_0xa13051];return _0x3ce867;},_0xa130(_0x19cb7c,_0x864b3);}Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x1d4f2f(0x21f)});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':_0x1d4f2f(0x21b),'type':i[_0x1d4f2f(0x1ee)][_0x1d4f2f(0x1ff)],'handler':async _0xf1c28=>{const _0x23d93a=_0x1d4f2f,_0x2d59bd=_0xf1c28['get'](g[_0x23d93a(0x200)]);return new URLSearchParams(location[_0x23d93a(0x205)])['get']('unit')?_0x2d59bd[_0x23d93a(0x1e7)]():_0x2d59bd['importXLSXToSnapshot'](),!0x0;}},p={'id':_0x1d4f2f(0x219),'type':i[_0x1d4f2f(0x1ee)][_0x1d4f2f(0x1ff)],'handler':async _0x21c161=>{const _0x2109a5=_0x1d4f2f,_0x1020f2=_0x21c161[_0x2109a5(0x1ef)](g[_0x2109a5(0x200)]);return new URLSearchParams(location[_0x2109a5(0x205)])[_0x2109a5(0x1ef)](_0x2109a5(0x1f5))?_0x1020f2[_0x2109a5(0x206)]():_0x1020f2[_0x2109a5(0x1ea)](),!0x0;}},v='sheets-exchange-client.config',h={},S='sheets-exchange-client.operation.exchange';function _0x12cd(){const _0x33a948=['UniverSheetsExchangeClientPlugin','merge','menu','DependentOn','ExportXLSXOperation','UniverInstanceType','onStarting','exchange-client.operation.export-xlsx','20822130UnKFVJ','exchange-client.operation.import-xlsx','5KgSZnJ','4535468keDbwZ','1541770waDucd','Module','length','disposeWithMe','ICommandService','ImportXLSXOperation','pluginName','2506668PYnXDU','UniverExchangeClientPlugin','Plugin','Disposable','getCurrentRangeDisable$','importXLSXToUnitId','MenuItemType','_config','exportXLSXBySnapshot','exchange.file','getOwnPropertyDescriptor','UNIVER_SHEET','CommandType','get','exchange.download','BUTTON','Injector','FolderIcon','_injector','unit','_configService','add','_menuManagerService','getMenuHiddenObservable','1192kIcwCw','OTHERS','Inject','545426iPqoNi','setConfig','OPERATION','IExchangeOperateService','symbol','type','mergeMenu','8439444fGLxAR','search','exportXLSXByUnitId','_commandService','SUBITEMS','DirectExportIcon','_initCommands','forEach','31115ENrbtV','exchange.upload','_initMenus','registerCommand','ExportIcon','IConfigService'];_0x12cd=function(){return _0x33a948;};return _0x12cd();}function x(_0x57e864){const _0x3213bb=_0x1d4f2f;return{'id':S,'type':c[_0x3213bb(0x1e8)][_0x3213bb(0x208)],'icon':_0x3213bb(0x209),'tooltip':_0x3213bb(0x1eb),'hidden$':c[_0x3213bb(0x1f9)](_0x57e864,i['UniverInstanceType'][_0x3213bb(0x1ed)]),'disabled$':I[_0x3213bb(0x1e6)](_0x57e864,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x2102d1=_0x1d4f2f;return{'id':l['id'],'type':c['MenuItemType'][_0x2102d1(0x1f1)],'title':_0x2102d1(0x20d),'icon':_0x2102d1(0x1f3)};}function C(){const _0x3bbd50=_0x1d4f2f;return{'id':p['id'],'type':c[_0x3bbd50(0x1e8)][_0x3bbd50(0x1f1)],'title':_0x3bbd50(0x1f0),'icon':_0x3bbd50(0x210)};}const f={[c['RibbonStartGroup'][_0x1d4f2f(0x1fb)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x232ce4,_0x1a724a,_0x3a6208,_0x264feb)=>{const _0x383494=_0x1d4f2f;for(var _0x125c96=_0x264feb>0x1?void 0x0:_0x264feb?T(_0x1a724a,_0x3a6208):_0x1a724a,_0x40753f=_0x232ce4[_0x383494(0x220)]-0x1,_0x3d772b;_0x40753f>=0x0;_0x40753f--)(_0x3d772b=_0x232ce4[_0x40753f])&&(_0x125c96=_0x3d772b(_0x125c96)||_0x125c96);return _0x125c96;},m=(_0x6c80e2,_0x2e6b3a)=>(_0x172a5d,_0x100613)=>_0x2e6b3a(_0x172a5d,_0x100613,_0x6c80e2);let u=class extends i[_0x1d4f2f(0x1e5)]{constructor(_0x23b42e,_0x1892df){const _0x3e5cf4=_0x1d4f2f;super(),this[_0x3e5cf4(0x207)]=_0x23b42e,this['_menuManagerService']=_0x1892df,this[_0x3e5cf4(0x20a)](),this[_0x3e5cf4(0x20e)]();}[_0x1d4f2f(0x20a)](){const _0x424f51=_0x1d4f2f;[l,p][_0x424f51(0x20b)](_0x57c136=>{const _0x1d03cb=_0x424f51;this[_0x1d03cb(0x221)](this['_commandService'][_0x1d03cb(0x20f)](_0x57c136));});}[_0x1d4f2f(0x20e)](){const _0x13a258=_0x1d4f2f;this[_0x13a258(0x1f8)][_0x13a258(0x203)](f);}};u=y([m(0x0,i[_0x1d4f2f(0x222)]),m(0x1,c['IMenuManagerService'])],u);var O=Object['defineProperty'],U=Object[_0x1d4f2f(0x1ec)],X=(_0x28138e,_0x3ad8ae,_0x472dec)=>_0x3ad8ae in _0x28138e?O(_0x28138e,_0x3ad8ae,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x472dec}):_0x28138e[_0x3ad8ae]=_0x472dec,N=(_0x26db1a,_0x49afac,_0x45d23c,_0x22469b)=>{const _0x17b1bc=_0x1d4f2f;for(var _0x89a192=_0x22469b>0x1?void 0x0:_0x22469b?U(_0x49afac,_0x45d23c):_0x49afac,_0x10004f=_0x26db1a[_0x17b1bc(0x220)]-0x1,_0x30547e;_0x10004f>=0x0;_0x10004f--)(_0x30547e=_0x26db1a[_0x10004f])&&(_0x89a192=_0x30547e(_0x89a192)||_0x89a192);return _0x89a192;},d=(_0x2af11d,_0x327710)=>(_0xc199bb,_0x5140dd)=>_0x327710(_0xc199bb,_0x5140dd,_0x2af11d),E=(_0x11a36a,_0x3dced5,_0x17ed75)=>X(_0x11a36a,typeof _0x3dced5!=_0x1d4f2f(0x201)?_0x3dced5+'':_0x3dced5,_0x17ed75);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports[_0x1d4f2f(0x212)]=class extends i[_0x1d4f2f(0x1e4)]{constructor(_0x364ab9=h,_0xe98b1d,_0x512737){const _0x546b90=_0x1d4f2f;super(),this[_0x546b90(0x1e9)]=_0x364ab9,this[_0x546b90(0x1f4)]=_0xe98b1d,this['_configService']=_0x512737;const {menu:_0x25bdd1,..._0x30a2b9}=i[_0x546b90(0x213)]({},h,this[_0x546b90(0x1e9)]);_0x25bdd1&&this[_0x546b90(0x1f6)]['setConfig'](_0x546b90(0x214),_0x25bdd1,{'merge':!0x0}),this['_configService'][_0x546b90(0x1fe)](v,_0x30a2b9);}[_0x1d4f2f(0x218)](){const _0x1eed59=_0x1d4f2f;[[u]][_0x1eed59(0x20b)](_0x1ef874=>this[_0x1eed59(0x1f4)][_0x1eed59(0x1f7)](_0x1ef874));}['onReady'](){const _0x6b95d8=_0x1d4f2f;this[_0x6b95d8(0x1f4)]['get'](u);}},E(exports['UniverSheetsExchangeClientPlugin'],_0x1d4f2f(0x224),L),E(exports[_0x1d4f2f(0x212)],_0x1d4f2f(0x202),i[_0x1d4f2f(0x217)][_0x1d4f2f(0x1ed)]),exports[_0x1d4f2f(0x212)]=N([i[_0x1d4f2f(0x215)](g[_0x1d4f2f(0x226)]),d(0x1,i[_0x1d4f2f(0x1fc)](i[_0x1d4f2f(0x1f2)])),d(0x2,i[_0x1d4f2f(0x211)])],exports[_0x1d4f2f(0x212)]),exports[_0x1d4f2f(0x216)]=p,exports[_0x1d4f2f(0x223)]=l;
1
+ 'use strict';const _0x231fcb=_0x57cf;(function(_0x5a75d9,_0x543995){const _0x3c8779=_0x57cf,_0x3ab366=_0x5a75d9();while(!![]){try{const _0x5f4dab=parseInt(_0x3c8779(0x1d4))/0x1+parseInt(_0x3c8779(0x1e2))/0x2+-parseInt(_0x3c8779(0x1f2))/0x3*(-parseInt(_0x3c8779(0x1e7))/0x4)+-parseInt(_0x3c8779(0x1b4))/0x5+parseInt(_0x3c8779(0x1c1))/0x6*(parseInt(_0x3c8779(0x1c2))/0x7)+parseInt(_0x3c8779(0x1d7))/0x8*(parseInt(_0x3c8779(0x1eb))/0x9)+-parseInt(_0x3c8779(0x1c9))/0xa*(parseInt(_0x3c8779(0x1ce))/0xb);if(_0x5f4dab===_0x543995)break;else _0x3ab366['push'](_0x3ab366['shift']());}catch(_0x2584c0){_0x3ab366['push'](_0x3ab366['shift']());}}}(_0x4561,0x78d09));Object[_0x231fcb(0x1be)](exports,Symbol[_0x231fcb(0x1b7)],{'value':_0x231fcb(0x1f6)});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']['OPERATION'],'handler':async _0x3ab0de=>{const _0x32e3bd=_0x231fcb,_0x4754fa=_0x3ab0de[_0x32e3bd(0x1ef)](g[_0x32e3bd(0x1cf)]);return new URLSearchParams(location[_0x32e3bd(0x1d5)])[_0x32e3bd(0x1ef)](_0x32e3bd(0x1bf))?_0x4754fa['importXLSXToUnitId']():_0x4754fa[_0x32e3bd(0x1e6)](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i['CommandType'][_0x231fcb(0x1d0)],'handler':async _0x166ebc=>{const _0x39b045=_0x231fcb,_0x1f278e=_0x166ebc['get'](g[_0x39b045(0x1cf)]);return new URLSearchParams(location[_0x39b045(0x1d5)])[_0x39b045(0x1ef)](_0x39b045(0x1bf))?_0x1f278e[_0x39b045(0x1ba)]():_0x1f278e[_0x39b045(0x1e5)](),!0x0;}},v=_0x231fcb(0x1f1),h={},S='sheets-exchange-client.operation.exchange';function x(_0x3f7c2a){const _0x23a5aa=_0x231fcb;return{'id':S,'type':c[_0x23a5aa(0x1d9)][_0x23a5aa(0x1de)],'icon':_0x23a5aa(0x1df),'tooltip':_0x23a5aa(0x1e0),'hidden$':c[_0x23a5aa(0x1b8)](_0x3f7c2a,i[_0x23a5aa(0x1f0)][_0x23a5aa(0x1d6)]),'disabled$':I[_0x23a5aa(0x1cc)](_0x3f7c2a,{'workbookTypes':[_[_0x23a5aa(0x1b5)]]})};}function P(){const _0x3c88a1=_0x231fcb;return{'id':l['id'],'type':c[_0x3c88a1(0x1d9)][_0x3c88a1(0x1ec)],'title':_0x3c88a1(0x1f3),'icon':_0x3c88a1(0x1dd)};}function C(){const _0x10eeac=_0x231fcb;return{'id':p['id'],'type':c[_0x10eeac(0x1d9)]['BUTTON'],'title':_0x10eeac(0x1c7),'icon':_0x10eeac(0x1dc)};}const f={[c[_0x231fcb(0x1e9)][_0x231fcb(0x1b6)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x231fcb(0x1d2)],y=(_0x1ee269,_0x36ae21,_0x171c0a,_0x5d9a21)=>{const _0x3cc286=_0x231fcb;for(var _0x5d4a07=_0x5d9a21>0x1?void 0x0:_0x5d9a21?T(_0x36ae21,_0x171c0a):_0x36ae21,_0x43bfb1=_0x1ee269[_0x3cc286(0x1c4)]-0x1,_0x3670cb;_0x43bfb1>=0x0;_0x43bfb1--)(_0x3670cb=_0x1ee269[_0x43bfb1])&&(_0x5d4a07=_0x3670cb(_0x5d4a07)||_0x5d4a07);return _0x5d4a07;},m=(_0x4bd7d3,_0x54f771)=>(_0x5924cf,_0x535493)=>_0x54f771(_0x5924cf,_0x535493,_0x4bd7d3);let u=class extends i[_0x231fcb(0x1e1)]{constructor(_0x3f454a,_0x43318b){const _0x4d9330=_0x231fcb;super(),this[_0x4d9330(0x1ea)]=_0x3f454a,this[_0x4d9330(0x1ee)]=_0x43318b,this[_0x4d9330(0x1bd)](),this[_0x4d9330(0x1d8)]();}[_0x231fcb(0x1bd)](){const _0x5c3052=_0x231fcb;[l,p][_0x5c3052(0x1e8)](_0x519230=>{const _0x46fcf4=_0x5c3052;this[_0x46fcf4(0x1c6)](this[_0x46fcf4(0x1ea)]['registerCommand'](_0x519230));});}[_0x231fcb(0x1d8)](){const _0x1054c4=_0x231fcb;this[_0x1054c4(0x1ee)][_0x1054c4(0x1cb)](f);}};function _0x57cf(_0x2c6c72,_0x1fbc97){const _0x4561ac=_0x4561();return _0x57cf=function(_0x57cf3f,_0x2d8ed3){_0x57cf3f=_0x57cf3f-0x1b4;let _0x2f9a88=_0x4561ac[_0x57cf3f];return _0x2f9a88;},_0x57cf(_0x2c6c72,_0x1fbc97);}u=y([m(0x0,i[_0x231fcb(0x1ca)]),m(0x1,c[_0x231fcb(0x1e4)])],u);var O=Object[_0x231fcb(0x1be)],U=Object[_0x231fcb(0x1d2)],X=(_0x45650a,_0x4f37d7,_0xce3add)=>_0x4f37d7 in _0x45650a?O(_0x45650a,_0x4f37d7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xce3add}):_0x45650a[_0x4f37d7]=_0xce3add,N=(_0x5377b7,_0x1f412c,_0x439399,_0x55f8e6)=>{const _0x3d7a8a=_0x231fcb;for(var _0x1577b9=_0x55f8e6>0x1?void 0x0:_0x55f8e6?U(_0x1f412c,_0x439399):_0x1f412c,_0x2129fd=_0x5377b7[_0x3d7a8a(0x1c4)]-0x1,_0x28d781;_0x2129fd>=0x0;_0x2129fd--)(_0x28d781=_0x5377b7[_0x2129fd])&&(_0x1577b9=_0x28d781(_0x1577b9)||_0x1577b9);return _0x1577b9;},d=(_0x417afe,_0x38885d)=>(_0x4d3971,_0x42212a)=>_0x38885d(_0x4d3971,_0x42212a,_0x417afe),E=(_0x30ebc1,_0x19c2ad,_0xa4e274)=>X(_0x30ebc1,typeof _0x19c2ad!='symbol'?_0x19c2ad+'':_0x19c2ad,_0xa4e274);function _0x4561(){const _0x5b3917=['445596KhkCCK','type','IMenuManagerService','exportXLSXBySnapshot','importXLSXToSnapshot','1666172nHItDk','forEach','RibbonStartGroup','_commandService','68661YsplKY','BUTTON','setConfig','_menuManagerService','get','UniverInstanceType','sheets-exchange-client.config','3uCfDQm','exchange.upload','merge','_injector','Module','1564440gUiFoB','WorkbookExportPermission','OTHERS','toStringTag','getMenuHiddenObservable','onStarting','exportXLSXByUnitId','_configService','IConfigService','_initCommands','defineProperty','unit','onReady','3096DpfXVN','1253TLqnaa','UniverExchangeClientPlugin','length','UniverSheetsExchangeClientPlugin','disposeWithMe','exchange.download','SHEET_EXCHANGE_CLIENT_PLUGIN','10JqmcES','ICommandService','mergeMenu','getCurrentRangeDisable$','ImportXLSXOperation','973962sirbyb','IExchangeOperateService','OPERATION','_config','getOwnPropertyDescriptor','ExportXLSXOperation','156953hntvBn','search','UNIVER_SHEET','8RNSeuY','_initMenus','MenuItemType','Inject','menu','ExportIcon','FolderIcon','SUBITEMS','DirectExportIcon','exchange.file','Disposable'];_0x4561=function(){return _0x5b3917;};return _0x4561();}const L=_0x231fcb(0x1c8);exports['UniverSheetsExchangeClientPlugin']=class extends i['Plugin']{constructor(_0x467caa=h,_0x4560c4,_0x4ead25){const _0x3db9c2=_0x231fcb;super(),this['_config']=_0x467caa,this[_0x3db9c2(0x1f5)]=_0x4560c4,this[_0x3db9c2(0x1bb)]=_0x4ead25;const {menu:_0x13116a,..._0x168386}=i[_0x3db9c2(0x1f4)]({},h,this[_0x3db9c2(0x1d1)]);_0x13116a&&this['_configService'][_0x3db9c2(0x1ed)](_0x3db9c2(0x1db),_0x13116a,{'merge':!0x0}),this[_0x3db9c2(0x1bb)][_0x3db9c2(0x1ed)](v,_0x168386);}[_0x231fcb(0x1b9)](){const _0x37dfa3=_0x231fcb;[[u]][_0x37dfa3(0x1e8)](_0x245e08=>this['_injector']['add'](_0x245e08));}[_0x231fcb(0x1c0)](){const _0x22fc9d=_0x231fcb;this[_0x22fc9d(0x1f5)]['get'](u);}},E(exports[_0x231fcb(0x1c5)],'pluginName',L),E(exports[_0x231fcb(0x1c5)],_0x231fcb(0x1e3),i[_0x231fcb(0x1f0)][_0x231fcb(0x1d6)]),exports[_0x231fcb(0x1c5)]=N([i['DependentOn'](g[_0x231fcb(0x1c3)]),d(0x1,i[_0x231fcb(0x1da)](i['Injector'])),d(0x2,i[_0x231fcb(0x1bc)])],exports['UniverSheetsExchangeClientPlugin']),exports[_0x231fcb(0x1d3)]=p,exports[_0x231fcb(0x1cd)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0xfdf680=_0x3571;(function(_0x375b90,_0x341f52){const _0x467c81=_0x3571,_0x5e86ec=_0x375b90();while(!![]){try{const _0x11b65f=parseInt(_0x467c81(0xb7))/0x1*(-parseInt(_0x467c81(0xcd))/0x2)+-parseInt(_0x467c81(0xa6))/0x3+parseInt(_0x467c81(0xd5))/0x4*(parseInt(_0x467c81(0xb4))/0x5)+parseInt(_0x467c81(0xa9))/0x6+parseInt(_0x467c81(0xc2))/0x7+parseInt(_0x467c81(0xb8))/0x8*(parseInt(_0x467c81(0xb9))/0x9)+-parseInt(_0x467c81(0xbf))/0xa*(parseInt(_0x467c81(0xad))/0xb);if(_0x11b65f===_0x341f52)break;else _0x5e86ec['push'](_0x5e86ec['shift']());}catch(_0x1c8d95){_0x5e86ec['push'](_0x5e86ec['shift']());}}}(_0x56da,0x78066));import{IExchangeOperateService as _0x146752,UniverExchangeClientPlugin as _0x3b6be4}from'@univerjs-pro/exchange-client';import{CommandType as _0x5a70f3,UniverInstanceType as _0x4e4d14,Disposable as _0x163634,ICommandService as _0x6643a1,DependentOn as _0xecbde9,Inject as _0x1801e8,Injector as _0x10dddd,IConfigService as _0x43c9be,Plugin as _0x157efa,merge as _0x161a24}from'@univerjs/core';function _0x3571(_0x19d963,_0x39b296){const _0x56daa0=_0x56da();return _0x3571=function(_0x357113,_0x388cdd){_0x357113=_0x357113-0xa6;let _0x5ac6e7=_0x56daa0[_0x357113];return _0x5ac6e7;},_0x3571(_0x19d963,_0x39b296);}import{MenuItemType as _0x39b3d7,getMenuHiddenObservable as _0x2026f8,RibbonStartGroup as _0x45aaa7,IMenuManagerService as _0x2d7b69}from'@univerjs/ui';function _0x56da(){const _0x211964=['_configService','exchange.file','555682bIllUi','exchange.upload','OPERATION','exchange-client.operation.export-xlsx','search','_initCommands','FolderIcon','UNIVER_SHEET','253076npkpMq','1078674tIaVnP','exportXLSXByUnitId','disposeWithMe','2493402BuSkLN','onStarting','SUBITEMS','onReady','4723939zcgFRD','_initMenus','forEach','menu','_menuManagerService','registerCommand','SHEET_EXCHANGE_CLIENT_PLUGIN','55awjNsw','getOwnPropertyDescriptor','OTHERS','3qwzEei','16OGxkBe','3576042VfnouL','_injector','importXLSXToSnapshot','pluginName','importXLSXToUnitId','type','10IqtDct','mergeMenu','ExportIcon','1455650uNaJNY','add','sheets-exchange-client.config','_commandService','symbol','get','_config','exportXLSXBySnapshot','length'];_0x56da=function(){return _0x211964;};return _0x56da();}import{WorkbookExportPermission as _0x4afc30}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x14dbbb}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x5a70f3[_0xfdf680(0xcf)],'handler':async _0x17a051=>{const _0x3853ba=_0xfdf680,_0x619edb=_0x17a051['get'](_0x146752);return new URLSearchParams(location['search'])['get']('unit')?_0x619edb[_0x3853ba(0xbd)]():_0x619edb[_0x3853ba(0xbb)](),!0x0;}},u={'id':_0xfdf680(0xd0),'type':_0x5a70f3[_0xfdf680(0xcf)],'handler':async _0x1e8d58=>{const _0x163ee5=_0xfdf680,_0x4749d1=_0x1e8d58[_0x163ee5(0xc7)](_0x146752);return new URLSearchParams(location[_0x163ee5(0xd1)])[_0x163ee5(0xc7)]('unit')?_0x4749d1[_0x163ee5(0xa7)]():_0x4749d1[_0x163ee5(0xc9)](),!0x0;}},H=_0xfdf680(0xc4),l={},S='sheets-exchange-client.operation.exchange';function R(_0x4cfaee){const _0x19cfb2=_0xfdf680;return{'id':S,'type':_0x39b3d7[_0x19cfb2(0xab)],'icon':'DirectExportIcon','tooltip':_0x19cfb2(0xcc),'hidden$':_0x2026f8(_0x4cfaee,_0x4e4d14[_0x19cfb2(0xd4)]),'disabled$':_0x14dbbb(_0x4cfaee,{'workbookTypes':[_0x4afc30]})};}function w(){const _0x5c7ad1=_0xfdf680;return{'id':p['id'],'type':_0x39b3d7['BUTTON'],'title':_0x5c7ad1(0xce),'icon':_0x5c7ad1(0xd3)};}function D(){const _0x3f9993=_0xfdf680;return{'id':u['id'],'type':_0x39b3d7['BUTTON'],'title':'exchange.download','icon':_0x3f9993(0xc1)};}const F={[_0x45aaa7[_0xfdf680(0xb6)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0xfdf680(0xb5)],A=(_0x405603,_0x27f54c,_0x48b708,_0x2e8193)=>{const _0x342ad3=_0xfdf680;for(var _0x47ed96=_0x2e8193>0x1?void 0x0:_0x2e8193?G(_0x27f54c,_0x48b708):_0x27f54c,_0x75bef9=_0x405603[_0x342ad3(0xca)]-0x1,_0xe950f5;_0x75bef9>=0x0;_0x75bef9--)(_0xe950f5=_0x405603[_0x75bef9])&&(_0x47ed96=_0xe950f5(_0x47ed96)||_0x47ed96);return _0x47ed96;},d=(_0xb9196f,_0x5a9459)=>(_0x5d55e8,_0x5c64a4)=>_0x5a9459(_0x5d55e8,_0x5c64a4,_0xb9196f);let c=class extends _0x163634{constructor(_0x252ec7,_0xbd0780){const _0x4312d2=_0xfdf680;super(),this[_0x4312d2(0xc5)]=_0x252ec7,this[_0x4312d2(0xb1)]=_0xbd0780,this[_0x4312d2(0xd2)](),this['_initMenus']();}[_0xfdf680(0xd2)](){const _0x37abbf=_0xfdf680;[p,u][_0x37abbf(0xaf)](_0x22ff1c=>{const _0x2d48d5=_0x37abbf;this[_0x2d48d5(0xa8)](this['_commandService'][_0x2d48d5(0xb2)](_0x22ff1c));});}[_0xfdf680(0xae)](){const _0x3b9819=_0xfdf680;this[_0x3b9819(0xb1)][_0x3b9819(0xc0)](F);}};c=A([d(0x0,_0x6643a1),d(0x1,_0x2d7b69)],c);var j=Object['defineProperty'],B=Object['getOwnPropertyDescriptor'],$=(_0x3d9abb,_0x449d55,_0x58178e)=>_0x449d55 in _0x3d9abb?j(_0x3d9abb,_0x449d55,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58178e}):_0x3d9abb[_0x449d55]=_0x58178e,V=(_0x174b63,_0x298344,_0x271239,_0x1b9cd9)=>{const _0x1cdf3f=_0xfdf680;for(var _0x351805=_0x1b9cd9>0x1?void 0x0:_0x1b9cd9?B(_0x298344,_0x271239):_0x298344,_0x2cef0e=_0x174b63[_0x1cdf3f(0xca)]-0x1,_0x2a4ffd;_0x2cef0e>=0x0;_0x2cef0e--)(_0x2a4ffd=_0x174b63[_0x2cef0e])&&(_0x351805=_0x2a4ffd(_0x351805)||_0x351805);return _0x351805;},_=(_0x2b9853,_0x2a6e9b)=>(_0x1b506b,_0x5c6a71)=>_0x2a6e9b(_0x1b506b,_0x5c6a71,_0x2b9853),I=(_0x21e7cd,_0x45102d,_0x462677)=>$(_0x21e7cd,typeof _0x45102d!=_0xfdf680(0xc6)?_0x45102d+'':_0x45102d,_0x462677);const W=_0xfdf680(0xb3);let s=class extends _0x157efa{constructor(_0x506c2e=l,_0x19d145,_0x502d00){const _0x365dc4=_0xfdf680;super(),this[_0x365dc4(0xc8)]=_0x506c2e,this[_0x365dc4(0xba)]=_0x19d145,this['_configService']=_0x502d00;const {menu:_0x3123c9,..._0x2061a7}=_0x161a24({},l,this[_0x365dc4(0xc8)]);_0x3123c9&&this[_0x365dc4(0xcb)]['setConfig'](_0x365dc4(0xb0),_0x3123c9,{'merge':!0x0}),this[_0x365dc4(0xcb)]['setConfig'](H,_0x2061a7);}[_0xfdf680(0xaa)](){const _0x2bb905=_0xfdf680;[[c]][_0x2bb905(0xaf)](_0x44a9c3=>this[_0x2bb905(0xba)][_0x2bb905(0xc3)](_0x44a9c3));}[_0xfdf680(0xac)](){const _0x1c8df1=_0xfdf680;this[_0x1c8df1(0xba)][_0x1c8df1(0xc7)](c);}};I(s,_0xfdf680(0xbc),W),I(s,_0xfdf680(0xbe),_0x4e4d14[_0xfdf680(0xd4)]),s=V([_0xecbde9(_0x3b6be4),_(0x1,_0x1801e8(_0x10dddd)),_(0x2,_0x43c9be)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x5aab9a=_0xdab0;function _0xdab0(_0x17b81c,_0x54b974){const _0x3de07b=_0x3de0();return _0xdab0=function(_0xdab027,_0x43904d){_0xdab027=_0xdab027-0x94;let _0x2d0813=_0x3de07b[_0xdab027];return _0x2d0813;},_0xdab0(_0x17b81c,_0x54b974);}(function(_0x2bd751,_0x15d20a){const _0xb0551f=_0xdab0,_0x29404c=_0x2bd751();while(!![]){try{const _0x34103f=parseInt(_0xb0551f(0x96))/0x1*(-parseInt(_0xb0551f(0xb4))/0x2)+-parseInt(_0xb0551f(0xa2))/0x3+parseInt(_0xb0551f(0xa6))/0x4*(parseInt(_0xb0551f(0xb7))/0x5)+parseInt(_0xb0551f(0xb0))/0x6*(-parseInt(_0xb0551f(0x9a))/0x7)+parseInt(_0xb0551f(0xc0))/0x8*(parseInt(_0xb0551f(0xad))/0x9)+parseInt(_0xb0551f(0xc3))/0xa*(-parseInt(_0xb0551f(0xb9))/0xb)+parseInt(_0xb0551f(0xae))/0xc*(parseInt(_0xb0551f(0xc1))/0xd);if(_0x34103f===_0x15d20a)break;else _0x29404c['push'](_0x29404c['shift']());}catch(_0x320af0){_0x29404c['push'](_0x29404c['shift']());}}}(_0x3de0,0x86894));import{IExchangeOperateService as _0x48e722,UniverExchangeClientPlugin as _0x48643d}from'@univerjs-pro/exchange-client';import{CommandType as _0x184798,UniverInstanceType as _0x315f29,Disposable as _0x38278b,ICommandService as _0x5e9073,DependentOn as _0x5872a2,Inject as _0x10ca8f,Injector as _0x3bfcc9,IConfigService as _0x3b9732,Plugin as _0x11098a,merge as _0x3488c3}from'@univerjs/core';import{MenuItemType as _0x2ec8bd,getMenuHiddenObservable as _0x3cd124,RibbonStartGroup as _0x30f35d,IMenuManagerService as _0x9456df}from'@univerjs/ui';import{WorkbookExportPermission as _0x308297}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0xc7dcc3}from'@univerjs/sheets-ui';function _0x3de0(){const _0x4543cc=['exportXLSXBySnapshot','sheets-exchange-client.operation.exchange','type','importXLSXToUnitId','importXLSXToSnapshot','onStarting','2315346gBGacy','_menuManagerService','BUTTON','exchange-client.operation.import-xlsx','4arZGOG','get','FolderIcon','sheets-exchange-client.config','OPERATION','search','exchange.upload','251235xDTBzk','54372gIvNwf','onReady','6xoschs','UNIVER_SHEET','_initCommands','exchange.download','386bWpYDx','defineProperty','unit','4708215BuucWC','exchange.file','308704nRnsei','menu','registerCommand','_initMenus','add','pluginName','_injector','64FPJpeC','6461EUCWtG','_configService','260sokIoY','SUBITEMS','disposeWithMe','DirectExportIcon','_config','2621mKRsuj','ExportIcon','setConfig','length','6009577tjSLnN','getOwnPropertyDescriptor'];_0x3de0=function(){return _0x4543cc;};return _0x3de0();}const p={'id':_0x5aab9a(0xa5),'type':_0x184798[_0x5aab9a(0xaa)],'handler':async _0x39e5ec=>{const _0x20484f=_0x5aab9a,_0x42da61=_0x39e5ec[_0x20484f(0xa7)](_0x48e722);return new URLSearchParams(location[_0x20484f(0xab)])['get'](_0x20484f(0xb6))?_0x42da61[_0x20484f(0x9f)]():_0x42da61[_0x20484f(0xa0)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x184798[_0x5aab9a(0xaa)],'handler':async _0x212b41=>{const _0x3bb080=_0x5aab9a,_0x48c40e=_0x212b41[_0x3bb080(0xa7)](_0x48e722);return new URLSearchParams(location['search'])[_0x3bb080(0xa7)](_0x3bb080(0xb6))?_0x48c40e['exportXLSXByUnitId']():_0x48c40e[_0x3bb080(0x9c)](),!0x0;}},H=_0x5aab9a(0xa9),l={},S=_0x5aab9a(0x9d);function R(_0xb9df24){const _0x455b9b=_0x5aab9a;return{'id':S,'type':_0x2ec8bd[_0x455b9b(0xc4)],'icon':_0x455b9b(0x94),'tooltip':_0x455b9b(0xb8),'hidden$':_0x3cd124(_0xb9df24,_0x315f29[_0x455b9b(0xb1)]),'disabled$':_0xc7dcc3(_0xb9df24,{'workbookTypes':[_0x308297]})};}function w(){const _0x253e92=_0x5aab9a;return{'id':p['id'],'type':_0x2ec8bd[_0x253e92(0xa4)],'title':_0x253e92(0xac),'icon':_0x253e92(0xa8)};}function D(){const _0x2d06f3=_0x5aab9a;return{'id':u['id'],'type':_0x2ec8bd[_0x2d06f3(0xa4)],'title':_0x2d06f3(0xb3),'icon':_0x2d06f3(0x97)};}const F={[_0x30f35d['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x5aab9a(0x9b)],A=(_0x2a50fa,_0x35334c,_0xa4e4e6,_0x22ec0f)=>{const _0x14b373=_0x5aab9a;for(var _0x409f63=_0x22ec0f>0x1?void 0x0:_0x22ec0f?G(_0x35334c,_0xa4e4e6):_0x35334c,_0x468c26=_0x2a50fa[_0x14b373(0x99)]-0x1,_0x52ca63;_0x468c26>=0x0;_0x468c26--)(_0x52ca63=_0x2a50fa[_0x468c26])&&(_0x409f63=_0x52ca63(_0x409f63)||_0x409f63);return _0x409f63;},d=(_0x12c595,_0x6dec81)=>(_0xf60992,_0x12fd51)=>_0x6dec81(_0xf60992,_0x12fd51,_0x12c595);let c=class extends _0x38278b{constructor(_0x5dddab,_0x49a0c6){const _0x118524=_0x5aab9a;super(),this['_commandService']=_0x5dddab,this[_0x118524(0xa3)]=_0x49a0c6,this['_initCommands'](),this[_0x118524(0xbc)]();}[_0x5aab9a(0xb2)](){[p,u]['forEach'](_0x232a2b=>{const _0x5a4cfe=_0xdab0;this[_0x5a4cfe(0xc5)](this['_commandService'][_0x5a4cfe(0xbb)](_0x232a2b));});}[_0x5aab9a(0xbc)](){const _0x5e8288=_0x5aab9a;this[_0x5e8288(0xa3)]['mergeMenu'](F);}};c=A([d(0x0,_0x5e9073),d(0x1,_0x9456df)],c);var j=Object[_0x5aab9a(0xb5)],B=Object[_0x5aab9a(0x9b)],$=(_0x132b64,_0x1cb822,_0xd38dd9)=>_0x1cb822 in _0x132b64?j(_0x132b64,_0x1cb822,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd38dd9}):_0x132b64[_0x1cb822]=_0xd38dd9,V=(_0x3f4bac,_0x31efca,_0x55bc38,_0xbd7c8c)=>{const _0x62c169=_0x5aab9a;for(var _0x53a0f8=_0xbd7c8c>0x1?void 0x0:_0xbd7c8c?B(_0x31efca,_0x55bc38):_0x31efca,_0x25c1ab=_0x3f4bac[_0x62c169(0x99)]-0x1,_0x3a3a0f;_0x25c1ab>=0x0;_0x25c1ab--)(_0x3a3a0f=_0x3f4bac[_0x25c1ab])&&(_0x53a0f8=_0x3a3a0f(_0x53a0f8)||_0x53a0f8);return _0x53a0f8;},_=(_0x88c7c2,_0x54e9f8)=>(_0x57e60a,_0x34fcf7)=>_0x54e9f8(_0x57e60a,_0x34fcf7,_0x88c7c2),I=(_0x6ddc07,_0x34c8b4,_0x57fe29)=>$(_0x6ddc07,typeof _0x34c8b4!='symbol'?_0x34c8b4+'':_0x34c8b4,_0x57fe29);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x11098a{constructor(_0x2e47b0=l,_0x36b624,_0x36d026){const _0x2f963d=_0x5aab9a;super(),this[_0x2f963d(0x95)]=_0x2e47b0,this[_0x2f963d(0xbf)]=_0x36b624,this[_0x2f963d(0xc2)]=_0x36d026;const {menu:_0x3b10f7,..._0x2328e1}=_0x3488c3({},l,this[_0x2f963d(0x95)]);_0x3b10f7&&this[_0x2f963d(0xc2)][_0x2f963d(0x98)](_0x2f963d(0xba),_0x3b10f7,{'merge':!0x0}),this[_0x2f963d(0xc2)][_0x2f963d(0x98)](H,_0x2328e1);}[_0x5aab9a(0xa1)](){const _0x25e8f3=_0x5aab9a;[[c]]['forEach'](_0x552743=>this['_injector'][_0x25e8f3(0xbd)](_0x552743));}[_0x5aab9a(0xaf)](){const _0x3b9a75=_0x5aab9a;this[_0x3b9a75(0xbf)][_0x3b9a75(0xa7)](c);}};I(s,_0x5aab9a(0xbe),W),I(s,_0x5aab9a(0x9e),_0x315f29[_0x5aab9a(0xb1)]),s=V([_0x5872a2(_0x48643d),_(0x1,_0x10ca8f(_0x3bfcc9)),_(0x2,_0x3b9732)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0xfdf680=_0x3571;(function(_0x375b90,_0x341f52){const _0x467c81=_0x3571,_0x5e86ec=_0x375b90();while(!![]){try{const _0x11b65f=parseInt(_0x467c81(0xb7))/0x1*(-parseInt(_0x467c81(0xcd))/0x2)+-parseInt(_0x467c81(0xa6))/0x3+parseInt(_0x467c81(0xd5))/0x4*(parseInt(_0x467c81(0xb4))/0x5)+parseInt(_0x467c81(0xa9))/0x6+parseInt(_0x467c81(0xc2))/0x7+parseInt(_0x467c81(0xb8))/0x8*(parseInt(_0x467c81(0xb9))/0x9)+-parseInt(_0x467c81(0xbf))/0xa*(parseInt(_0x467c81(0xad))/0xb);if(_0x11b65f===_0x341f52)break;else _0x5e86ec['push'](_0x5e86ec['shift']());}catch(_0x1c8d95){_0x5e86ec['push'](_0x5e86ec['shift']());}}}(_0x56da,0x78066));import{IExchangeOperateService as _0x146752,UniverExchangeClientPlugin as _0x3b6be4}from'@univerjs-pro/exchange-client';import{CommandType as _0x5a70f3,UniverInstanceType as _0x4e4d14,Disposable as _0x163634,ICommandService as _0x6643a1,DependentOn as _0xecbde9,Inject as _0x1801e8,Injector as _0x10dddd,IConfigService as _0x43c9be,Plugin as _0x157efa,merge as _0x161a24}from'@univerjs/core';function _0x3571(_0x19d963,_0x39b296){const _0x56daa0=_0x56da();return _0x3571=function(_0x357113,_0x388cdd){_0x357113=_0x357113-0xa6;let _0x5ac6e7=_0x56daa0[_0x357113];return _0x5ac6e7;},_0x3571(_0x19d963,_0x39b296);}import{MenuItemType as _0x39b3d7,getMenuHiddenObservable as _0x2026f8,RibbonStartGroup as _0x45aaa7,IMenuManagerService as _0x2d7b69}from'@univerjs/ui';function _0x56da(){const _0x211964=['_configService','exchange.file','555682bIllUi','exchange.upload','OPERATION','exchange-client.operation.export-xlsx','search','_initCommands','FolderIcon','UNIVER_SHEET','253076npkpMq','1078674tIaVnP','exportXLSXByUnitId','disposeWithMe','2493402BuSkLN','onStarting','SUBITEMS','onReady','4723939zcgFRD','_initMenus','forEach','menu','_menuManagerService','registerCommand','SHEET_EXCHANGE_CLIENT_PLUGIN','55awjNsw','getOwnPropertyDescriptor','OTHERS','3qwzEei','16OGxkBe','3576042VfnouL','_injector','importXLSXToSnapshot','pluginName','importXLSXToUnitId','type','10IqtDct','mergeMenu','ExportIcon','1455650uNaJNY','add','sheets-exchange-client.config','_commandService','symbol','get','_config','exportXLSXBySnapshot','length'];_0x56da=function(){return _0x211964;};return _0x56da();}import{WorkbookExportPermission as _0x4afc30}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x14dbbb}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x5a70f3[_0xfdf680(0xcf)],'handler':async _0x17a051=>{const _0x3853ba=_0xfdf680,_0x619edb=_0x17a051['get'](_0x146752);return new URLSearchParams(location['search'])['get']('unit')?_0x619edb[_0x3853ba(0xbd)]():_0x619edb[_0x3853ba(0xbb)](),!0x0;}},u={'id':_0xfdf680(0xd0),'type':_0x5a70f3[_0xfdf680(0xcf)],'handler':async _0x1e8d58=>{const _0x163ee5=_0xfdf680,_0x4749d1=_0x1e8d58[_0x163ee5(0xc7)](_0x146752);return new URLSearchParams(location[_0x163ee5(0xd1)])[_0x163ee5(0xc7)]('unit')?_0x4749d1[_0x163ee5(0xa7)]():_0x4749d1[_0x163ee5(0xc9)](),!0x0;}},H=_0xfdf680(0xc4),l={},S='sheets-exchange-client.operation.exchange';function R(_0x4cfaee){const _0x19cfb2=_0xfdf680;return{'id':S,'type':_0x39b3d7[_0x19cfb2(0xab)],'icon':'DirectExportIcon','tooltip':_0x19cfb2(0xcc),'hidden$':_0x2026f8(_0x4cfaee,_0x4e4d14[_0x19cfb2(0xd4)]),'disabled$':_0x14dbbb(_0x4cfaee,{'workbookTypes':[_0x4afc30]})};}function w(){const _0x5c7ad1=_0xfdf680;return{'id':p['id'],'type':_0x39b3d7['BUTTON'],'title':_0x5c7ad1(0xce),'icon':_0x5c7ad1(0xd3)};}function D(){const _0x3f9993=_0xfdf680;return{'id':u['id'],'type':_0x39b3d7['BUTTON'],'title':'exchange.download','icon':_0x3f9993(0xc1)};}const F={[_0x45aaa7[_0xfdf680(0xb6)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0xfdf680(0xb5)],A=(_0x405603,_0x27f54c,_0x48b708,_0x2e8193)=>{const _0x342ad3=_0xfdf680;for(var _0x47ed96=_0x2e8193>0x1?void 0x0:_0x2e8193?G(_0x27f54c,_0x48b708):_0x27f54c,_0x75bef9=_0x405603[_0x342ad3(0xca)]-0x1,_0xe950f5;_0x75bef9>=0x0;_0x75bef9--)(_0xe950f5=_0x405603[_0x75bef9])&&(_0x47ed96=_0xe950f5(_0x47ed96)||_0x47ed96);return _0x47ed96;},d=(_0xb9196f,_0x5a9459)=>(_0x5d55e8,_0x5c64a4)=>_0x5a9459(_0x5d55e8,_0x5c64a4,_0xb9196f);let c=class extends _0x163634{constructor(_0x252ec7,_0xbd0780){const _0x4312d2=_0xfdf680;super(),this[_0x4312d2(0xc5)]=_0x252ec7,this[_0x4312d2(0xb1)]=_0xbd0780,this[_0x4312d2(0xd2)](),this['_initMenus']();}[_0xfdf680(0xd2)](){const _0x37abbf=_0xfdf680;[p,u][_0x37abbf(0xaf)](_0x22ff1c=>{const _0x2d48d5=_0x37abbf;this[_0x2d48d5(0xa8)](this['_commandService'][_0x2d48d5(0xb2)](_0x22ff1c));});}[_0xfdf680(0xae)](){const _0x3b9819=_0xfdf680;this[_0x3b9819(0xb1)][_0x3b9819(0xc0)](F);}};c=A([d(0x0,_0x6643a1),d(0x1,_0x2d7b69)],c);var j=Object['defineProperty'],B=Object['getOwnPropertyDescriptor'],$=(_0x3d9abb,_0x449d55,_0x58178e)=>_0x449d55 in _0x3d9abb?j(_0x3d9abb,_0x449d55,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58178e}):_0x3d9abb[_0x449d55]=_0x58178e,V=(_0x174b63,_0x298344,_0x271239,_0x1b9cd9)=>{const _0x1cdf3f=_0xfdf680;for(var _0x351805=_0x1b9cd9>0x1?void 0x0:_0x1b9cd9?B(_0x298344,_0x271239):_0x298344,_0x2cef0e=_0x174b63[_0x1cdf3f(0xca)]-0x1,_0x2a4ffd;_0x2cef0e>=0x0;_0x2cef0e--)(_0x2a4ffd=_0x174b63[_0x2cef0e])&&(_0x351805=_0x2a4ffd(_0x351805)||_0x351805);return _0x351805;},_=(_0x2b9853,_0x2a6e9b)=>(_0x1b506b,_0x5c6a71)=>_0x2a6e9b(_0x1b506b,_0x5c6a71,_0x2b9853),I=(_0x21e7cd,_0x45102d,_0x462677)=>$(_0x21e7cd,typeof _0x45102d!=_0xfdf680(0xc6)?_0x45102d+'':_0x45102d,_0x462677);const W=_0xfdf680(0xb3);let s=class extends _0x157efa{constructor(_0x506c2e=l,_0x19d145,_0x502d00){const _0x365dc4=_0xfdf680;super(),this[_0x365dc4(0xc8)]=_0x506c2e,this[_0x365dc4(0xba)]=_0x19d145,this['_configService']=_0x502d00;const {menu:_0x3123c9,..._0x2061a7}=_0x161a24({},l,this[_0x365dc4(0xc8)]);_0x3123c9&&this[_0x365dc4(0xcb)]['setConfig'](_0x365dc4(0xb0),_0x3123c9,{'merge':!0x0}),this[_0x365dc4(0xcb)]['setConfig'](H,_0x2061a7);}[_0xfdf680(0xaa)](){const _0x2bb905=_0xfdf680;[[c]][_0x2bb905(0xaf)](_0x44a9c3=>this[_0x2bb905(0xba)][_0x2bb905(0xc3)](_0x44a9c3));}[_0xfdf680(0xac)](){const _0x1c8df1=_0xfdf680;this[_0x1c8df1(0xba)][_0x1c8df1(0xc7)](c);}};I(s,_0xfdf680(0xbc),W),I(s,_0xfdf680(0xbe),_0x4e4d14[_0xfdf680(0xd4)]),s=V([_0xecbde9(_0x3b6be4),_(0x1,_0x1801e8(_0x10dddd)),_(0x2,_0x43c9be)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x5aab9a=_0xdab0;function _0xdab0(_0x17b81c,_0x54b974){const _0x3de07b=_0x3de0();return _0xdab0=function(_0xdab027,_0x43904d){_0xdab027=_0xdab027-0x94;let _0x2d0813=_0x3de07b[_0xdab027];return _0x2d0813;},_0xdab0(_0x17b81c,_0x54b974);}(function(_0x2bd751,_0x15d20a){const _0xb0551f=_0xdab0,_0x29404c=_0x2bd751();while(!![]){try{const _0x34103f=parseInt(_0xb0551f(0x96))/0x1*(-parseInt(_0xb0551f(0xb4))/0x2)+-parseInt(_0xb0551f(0xa2))/0x3+parseInt(_0xb0551f(0xa6))/0x4*(parseInt(_0xb0551f(0xb7))/0x5)+parseInt(_0xb0551f(0xb0))/0x6*(-parseInt(_0xb0551f(0x9a))/0x7)+parseInt(_0xb0551f(0xc0))/0x8*(parseInt(_0xb0551f(0xad))/0x9)+parseInt(_0xb0551f(0xc3))/0xa*(-parseInt(_0xb0551f(0xb9))/0xb)+parseInt(_0xb0551f(0xae))/0xc*(parseInt(_0xb0551f(0xc1))/0xd);if(_0x34103f===_0x15d20a)break;else _0x29404c['push'](_0x29404c['shift']());}catch(_0x320af0){_0x29404c['push'](_0x29404c['shift']());}}}(_0x3de0,0x86894));import{IExchangeOperateService as _0x48e722,UniverExchangeClientPlugin as _0x48643d}from'@univerjs-pro/exchange-client';import{CommandType as _0x184798,UniverInstanceType as _0x315f29,Disposable as _0x38278b,ICommandService as _0x5e9073,DependentOn as _0x5872a2,Inject as _0x10ca8f,Injector as _0x3bfcc9,IConfigService as _0x3b9732,Plugin as _0x11098a,merge as _0x3488c3}from'@univerjs/core';import{MenuItemType as _0x2ec8bd,getMenuHiddenObservable as _0x3cd124,RibbonStartGroup as _0x30f35d,IMenuManagerService as _0x9456df}from'@univerjs/ui';import{WorkbookExportPermission as _0x308297}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0xc7dcc3}from'@univerjs/sheets-ui';function _0x3de0(){const _0x4543cc=['exportXLSXBySnapshot','sheets-exchange-client.operation.exchange','type','importXLSXToUnitId','importXLSXToSnapshot','onStarting','2315346gBGacy','_menuManagerService','BUTTON','exchange-client.operation.import-xlsx','4arZGOG','get','FolderIcon','sheets-exchange-client.config','OPERATION','search','exchange.upload','251235xDTBzk','54372gIvNwf','onReady','6xoschs','UNIVER_SHEET','_initCommands','exchange.download','386bWpYDx','defineProperty','unit','4708215BuucWC','exchange.file','308704nRnsei','menu','registerCommand','_initMenus','add','pluginName','_injector','64FPJpeC','6461EUCWtG','_configService','260sokIoY','SUBITEMS','disposeWithMe','DirectExportIcon','_config','2621mKRsuj','ExportIcon','setConfig','length','6009577tjSLnN','getOwnPropertyDescriptor'];_0x3de0=function(){return _0x4543cc;};return _0x3de0();}const p={'id':_0x5aab9a(0xa5),'type':_0x184798[_0x5aab9a(0xaa)],'handler':async _0x39e5ec=>{const _0x20484f=_0x5aab9a,_0x42da61=_0x39e5ec[_0x20484f(0xa7)](_0x48e722);return new URLSearchParams(location[_0x20484f(0xab)])['get'](_0x20484f(0xb6))?_0x42da61[_0x20484f(0x9f)]():_0x42da61[_0x20484f(0xa0)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x184798[_0x5aab9a(0xaa)],'handler':async _0x212b41=>{const _0x3bb080=_0x5aab9a,_0x48c40e=_0x212b41[_0x3bb080(0xa7)](_0x48e722);return new URLSearchParams(location['search'])[_0x3bb080(0xa7)](_0x3bb080(0xb6))?_0x48c40e['exportXLSXByUnitId']():_0x48c40e[_0x3bb080(0x9c)](),!0x0;}},H=_0x5aab9a(0xa9),l={},S=_0x5aab9a(0x9d);function R(_0xb9df24){const _0x455b9b=_0x5aab9a;return{'id':S,'type':_0x2ec8bd[_0x455b9b(0xc4)],'icon':_0x455b9b(0x94),'tooltip':_0x455b9b(0xb8),'hidden$':_0x3cd124(_0xb9df24,_0x315f29[_0x455b9b(0xb1)]),'disabled$':_0xc7dcc3(_0xb9df24,{'workbookTypes':[_0x308297]})};}function w(){const _0x253e92=_0x5aab9a;return{'id':p['id'],'type':_0x2ec8bd[_0x253e92(0xa4)],'title':_0x253e92(0xac),'icon':_0x253e92(0xa8)};}function D(){const _0x2d06f3=_0x5aab9a;return{'id':u['id'],'type':_0x2ec8bd[_0x2d06f3(0xa4)],'title':_0x2d06f3(0xb3),'icon':_0x2d06f3(0x97)};}const F={[_0x30f35d['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x5aab9a(0x9b)],A=(_0x2a50fa,_0x35334c,_0xa4e4e6,_0x22ec0f)=>{const _0x14b373=_0x5aab9a;for(var _0x409f63=_0x22ec0f>0x1?void 0x0:_0x22ec0f?G(_0x35334c,_0xa4e4e6):_0x35334c,_0x468c26=_0x2a50fa[_0x14b373(0x99)]-0x1,_0x52ca63;_0x468c26>=0x0;_0x468c26--)(_0x52ca63=_0x2a50fa[_0x468c26])&&(_0x409f63=_0x52ca63(_0x409f63)||_0x409f63);return _0x409f63;},d=(_0x12c595,_0x6dec81)=>(_0xf60992,_0x12fd51)=>_0x6dec81(_0xf60992,_0x12fd51,_0x12c595);let c=class extends _0x38278b{constructor(_0x5dddab,_0x49a0c6){const _0x118524=_0x5aab9a;super(),this['_commandService']=_0x5dddab,this[_0x118524(0xa3)]=_0x49a0c6,this['_initCommands'](),this[_0x118524(0xbc)]();}[_0x5aab9a(0xb2)](){[p,u]['forEach'](_0x232a2b=>{const _0x5a4cfe=_0xdab0;this[_0x5a4cfe(0xc5)](this['_commandService'][_0x5a4cfe(0xbb)](_0x232a2b));});}[_0x5aab9a(0xbc)](){const _0x5e8288=_0x5aab9a;this[_0x5e8288(0xa3)]['mergeMenu'](F);}};c=A([d(0x0,_0x5e9073),d(0x1,_0x9456df)],c);var j=Object[_0x5aab9a(0xb5)],B=Object[_0x5aab9a(0x9b)],$=(_0x132b64,_0x1cb822,_0xd38dd9)=>_0x1cb822 in _0x132b64?j(_0x132b64,_0x1cb822,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd38dd9}):_0x132b64[_0x1cb822]=_0xd38dd9,V=(_0x3f4bac,_0x31efca,_0x55bc38,_0xbd7c8c)=>{const _0x62c169=_0x5aab9a;for(var _0x53a0f8=_0xbd7c8c>0x1?void 0x0:_0xbd7c8c?B(_0x31efca,_0x55bc38):_0x31efca,_0x25c1ab=_0x3f4bac[_0x62c169(0x99)]-0x1,_0x3a3a0f;_0x25c1ab>=0x0;_0x25c1ab--)(_0x3a3a0f=_0x3f4bac[_0x25c1ab])&&(_0x53a0f8=_0x3a3a0f(_0x53a0f8)||_0x53a0f8);return _0x53a0f8;},_=(_0x88c7c2,_0x54e9f8)=>(_0x57e60a,_0x34fcf7)=>_0x54e9f8(_0x57e60a,_0x34fcf7,_0x88c7c2),I=(_0x6ddc07,_0x34c8b4,_0x57fe29)=>$(_0x6ddc07,typeof _0x34c8b4!='symbol'?_0x34c8b4+'':_0x34c8b4,_0x57fe29);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x11098a{constructor(_0x2e47b0=l,_0x36b624,_0x36d026){const _0x2f963d=_0x5aab9a;super(),this[_0x2f963d(0x95)]=_0x2e47b0,this[_0x2f963d(0xbf)]=_0x36b624,this[_0x2f963d(0xc2)]=_0x36d026;const {menu:_0x3b10f7,..._0x2328e1}=_0x3488c3({},l,this[_0x2f963d(0x95)]);_0x3b10f7&&this[_0x2f963d(0xc2)][_0x2f963d(0x98)](_0x2f963d(0xba),_0x3b10f7,{'merge':!0x0}),this[_0x2f963d(0xc2)][_0x2f963d(0x98)](H,_0x2328e1);}[_0x5aab9a(0xa1)](){const _0x25e8f3=_0x5aab9a;[[c]]['forEach'](_0x552743=>this['_injector'][_0x25e8f3(0xbd)](_0x552743));}[_0x5aab9a(0xaf)](){const _0x3b9a75=_0x5aab9a;this[_0x3b9a75(0xbf)][_0x3b9a75(0xa7)](c);}};I(s,_0x5aab9a(0xbe),W),I(s,_0x5aab9a(0x9e),_0x315f29[_0x5aab9a(0xb1)]),s=V([_0x5872a2(_0x48643d),_(0x1,_0x10ca8f(_0x3bfcc9)),_(0x2,_0x3b9732)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x422a38,_0x475a72){const _0x5d0156=_0x1008,_0xa40aff=_0x422a38();while(!![]){try{const _0x16d0e4=-parseInt(_0x5d0156(0x1b3))/0x1+-parseInt(_0x5d0156(0x1d1))/0x2*(parseInt(_0x5d0156(0x1c2))/0x3)+parseInt(_0x5d0156(0x1d3))/0x4+-parseInt(_0x5d0156(0x1c4))/0x5*(parseInt(_0x5d0156(0x1f8))/0x6)+-parseInt(_0x5d0156(0x1e3))/0x7*(-parseInt(_0x5d0156(0x1b9))/0x8)+-parseInt(_0x5d0156(0x1f4))/0x9+parseInt(_0x5d0156(0x1c6))/0xa;if(_0x16d0e4===_0x475a72)break;else _0xa40aff['push'](_0xa40aff['shift']());}catch(_0xc02541){_0xa40aff['push'](_0xa40aff['shift']());}}}(_0x21b4,0x4997a),function(_0x3574f7,_0x1aa2cb){const _0x1a0bcb=_0x1008;typeof exports=='object'&&typeof module<'u'?_0x1aa2cb(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x1a0bcb(0x1cd)&&define[_0x1a0bcb(0x1dd)]?define(['exports',_0x1a0bcb(0x1d7),'@univerjs/core','@univerjs/ui',_0x1a0bcb(0x1ef),_0x1a0bcb(0x1d8)],_0x1aa2cb):(_0x3574f7=typeof globalThis<'u'?globalThis:_0x3574f7||self,_0x1aa2cb(_0x3574f7[_0x1a0bcb(0x1c8)]={},_0x3574f7[_0x1a0bcb(0x1f0)],_0x3574f7['UniverCore'],_0x3574f7['UniverUi'],_0x3574f7[_0x1a0bcb(0x1b7)],_0x3574f7[_0x1a0bcb(0x1f3)]));}(this,function(_0x3f5d90,_0x33d98b,_0x319a3e,_0x45f4cf,_0x71fd62,_0x5f143e){'use strict';const _0x5eb843=_0x1008;const _0x168093={'id':_0x5eb843(0x1ff),'type':_0x319a3e[_0x5eb843(0x1ec)][_0x5eb843(0x1be)],'handler':async _0x12d116=>{const _0x47182a=_0x5eb843,_0x1d2c8d=_0x12d116['get'](_0x33d98b[_0x47182a(0x1cb)]);return new URLSearchParams(location[_0x47182a(0x1df)])[_0x47182a(0x1e2)]('unit')?_0x1d2c8d[_0x47182a(0x1cf)]():_0x1d2c8d[_0x47182a(0x1fe)](),!0x0;}},_0x99682={'id':_0x5eb843(0x1e0),'type':_0x319a3e[_0x5eb843(0x1ec)]['OPERATION'],'handler':async _0x4569a5=>{const _0x314793=_0x5eb843,_0x2cf347=_0x4569a5['get'](_0x33d98b[_0x314793(0x1cb)]);return new URLSearchParams(location[_0x314793(0x1df)])[_0x314793(0x1e2)](_0x314793(0x1d0))?_0x2cf347[_0x314793(0x1ba)]():_0x2cf347['exportXLSXBySnapshot'](),!0x0;}},_0x4a5191='sheets-exchange-client.config',_0x3ec617={},_0x3eb9d3='sheets-exchange-client.operation.exchange';function _0x1cab14(_0x54b8f1){const _0x2ac7ed=_0x5eb843;return{'id':_0x3eb9d3,'type':_0x45f4cf[_0x2ac7ed(0x1b8)][_0x2ac7ed(0x1e8)],'icon':_0x2ac7ed(0x1b4),'tooltip':_0x2ac7ed(0x1e4),'hidden$':_0x45f4cf[_0x2ac7ed(0x1d2)](_0x54b8f1,_0x319a3e[_0x2ac7ed(0x1f6)]['UNIVER_SHEET']),'disabled$':_0x5f143e[_0x2ac7ed(0x1c3)](_0x54b8f1,{'workbookTypes':[_0x71fd62['WorkbookExportPermission']]})};}function _0x56d90(){const _0x4d2053=_0x5eb843;return{'id':_0x168093['id'],'type':_0x45f4cf[_0x4d2053(0x1b8)][_0x4d2053(0x1f9)],'title':_0x4d2053(0x1bc),'icon':_0x4d2053(0x1fb)};}function _0x5db1cd(){const _0x145cd3=_0x5eb843;return{'id':_0x99682['id'],'type':_0x45f4cf[_0x145cd3(0x1b8)][_0x145cd3(0x1f9)],'title':_0x145cd3(0x1e7),'icon':'ExportIcon'};}const _0x453c01={[_0x45f4cf[_0x5eb843(0x1dc)]['OTHERS']]:{[_0x3eb9d3]:{'order':0.3,'menuItemFactory':_0x1cab14,[_0x168093['id']]:{'order':0x0,'menuItemFactory':_0x56d90},[_0x99682['id']]:{'order':0x1,'menuItemFactory':_0x5db1cd}}}};var _0x554043=Object[_0x5eb843(0x1d4)],_0x4411d2=(_0x297d0c,_0x570946,_0x324d4e,_0x4c4d62)=>{const _0x3e62b5=_0x5eb843;for(var _0x40ad29=_0x4c4d62>0x1?void 0x0:_0x4c4d62?_0x554043(_0x570946,_0x324d4e):_0x570946,_0x36ca7e=_0x297d0c[_0x3e62b5(0x1c5)]-0x1,_0x4b76b6;_0x36ca7e>=0x0;_0x36ca7e--)(_0x4b76b6=_0x297d0c[_0x36ca7e])&&(_0x40ad29=_0x4b76b6(_0x40ad29)||_0x40ad29);return _0x40ad29;},_0xf4966a=(_0x53631b,_0x66166d)=>(_0x140333,_0x31acaf)=>_0x66166d(_0x140333,_0x31acaf,_0x53631b);let _0x4fb606=class extends _0x319a3e[_0x5eb843(0x1bd)]{constructor(_0x1646be,_0x370346){const _0x5ce61b=_0x5eb843;super(),this[_0x5ce61b(0x1e9)]=_0x1646be,this[_0x5ce61b(0x1de)]=_0x370346,this[_0x5ce61b(0x1f7)](),this[_0x5ce61b(0x1ed)]();}[_0x5eb843(0x1f7)](){const _0x729e0b=_0x5eb843;[_0x168093,_0x99682][_0x729e0b(0x1b6)](_0x4f88f3=>{const _0x3c066e=_0x729e0b;this[_0x3c066e(0x1db)](this[_0x3c066e(0x1e9)][_0x3c066e(0x1ce)](_0x4f88f3));});}[_0x5eb843(0x1ed)](){const _0x22c535=_0x5eb843;this['_menuManagerService'][_0x22c535(0x1cc)](_0x453c01);}};_0x4fb606=_0x4411d2([_0xf4966a(0x0,_0x319a3e[_0x5eb843(0x1da)]),_0xf4966a(0x1,_0x45f4cf['IMenuManagerService'])],_0x4fb606);var _0x1d301b=Object[_0x5eb843(0x1f5)],_0x5e2f6d=Object[_0x5eb843(0x1d4)],_0x279747=(_0x26d97d,_0x5cc6b3,_0x2f720d)=>_0x5cc6b3 in _0x26d97d?_0x1d301b(_0x26d97d,_0x5cc6b3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f720d}):_0x26d97d[_0x5cc6b3]=_0x2f720d,_0x51bdf0=(_0x26dd6b,_0x24151e,_0x440bfd,_0x3b06f9)=>{for(var _0x179e44=_0x3b06f9>0x1?void 0x0:_0x3b06f9?_0x5e2f6d(_0x24151e,_0x440bfd):_0x24151e,_0x1ca807=_0x26dd6b['length']-0x1,_0x247fc6;_0x1ca807>=0x0;_0x1ca807--)(_0x247fc6=_0x26dd6b[_0x1ca807])&&(_0x179e44=_0x247fc6(_0x179e44)||_0x179e44);return _0x179e44;},_0x4c383c=(_0x51e17c,_0x5f3ef4)=>(_0x1ae748,_0x568ed4)=>_0x5f3ef4(_0x1ae748,_0x568ed4,_0x51e17c),_0x26e03f=(_0x4d22dc,_0x328196,_0x318ace)=>_0x279747(_0x4d22dc,typeof _0x328196!=_0x5eb843(0x1eb)?_0x328196+'':_0x328196,_0x318ace);const _0x45b86d=_0x5eb843(0x1c9);_0x3f5d90[_0x5eb843(0x1d9)]=class extends _0x319a3e[_0x5eb843(0x1fc)]{constructor(_0x3596ef=_0x3ec617,_0x481369,_0x1929ed){const _0x289a5f=_0x5eb843;super(),this['_config']=_0x3596ef,this[_0x289a5f(0x1fa)]=_0x481369,this[_0x289a5f(0x1d5)]=_0x1929ed;const {menu:_0x5f0f12,..._0x25721a}=_0x319a3e[_0x289a5f(0x1fd)]({},_0x3ec617,this[_0x289a5f(0x1bf)]);_0x5f0f12&&this[_0x289a5f(0x1d5)][_0x289a5f(0x1ca)]('menu',_0x5f0f12,{'merge':!0x0}),this[_0x289a5f(0x1d5)][_0x289a5f(0x1ca)](_0x4a5191,_0x25721a);}[_0x5eb843(0x1e5)](){const _0x475337=_0x5eb843;[[_0x4fb606]]['forEach'](_0xf5468d=>this[_0x475337(0x1fa)][_0x475337(0x1f1)](_0xf5468d));}[_0x5eb843(0x1d6)](){const _0x5a108d=_0x5eb843;this[_0x5a108d(0x1fa)][_0x5a108d(0x1e2)](_0x4fb606);}},_0x26e03f(_0x3f5d90[_0x5eb843(0x1d9)],_0x5eb843(0x1ea),_0x45b86d),_0x26e03f(_0x3f5d90[_0x5eb843(0x1d9)],_0x5eb843(0x1c7),_0x319a3e[_0x5eb843(0x1f6)][_0x5eb843(0x1c0)]),_0x3f5d90[_0x5eb843(0x1d9)]=_0x51bdf0([_0x319a3e[_0x5eb843(0x1bb)](_0x33d98b['UniverExchangeClientPlugin']),_0x4c383c(0x1,_0x319a3e[_0x5eb843(0x1c1)](_0x319a3e[_0x5eb843(0x1f2)])),_0x4c383c(0x2,_0x319a3e['IConfigService'])],_0x3f5d90['UniverSheetsExchangeClientPlugin']),_0x3f5d90[_0x5eb843(0x1b5)]=_0x99682,_0x3f5d90[_0x5eb843(0x1ee)]=_0x168093,Object['defineProperty'](_0x3f5d90,Symbol[_0x5eb843(0x1e6)],{'value':_0x5eb843(0x1e1)});}));function _0x1008(_0x48506e,_0x3b1266){const _0x21b404=_0x21b4();return _0x1008=function(_0x1008ec,_0x507fcd){_0x1008ec=_0x1008ec-0x1b3;let _0x294591=_0x21b404[_0x1008ec];return _0x294591;},_0x1008(_0x48506e,_0x3b1266);}function _0x21b4(){const _0xd88fe1=['MenuItemType','776jjFszo','exportXLSXByUnitId','DependentOn','exchange.upload','Disposable','OPERATION','_config','UNIVER_SHEET','Inject','318WYOYGB','getCurrentRangeDisable$','89275pfdOUV','length','6315820EtGuVp','type','UniverProSheetsExchangeClient','SHEET_EXCHANGE_CLIENT_PLUGIN','setConfig','IExchangeOperateService','mergeMenu','function','registerCommand','importXLSXToUnitId','unit','6854qtRbRG','getMenuHiddenObservable','224748BdgqmO','getOwnPropertyDescriptor','_configService','onReady','@univerjs-pro/exchange-client','@univerjs/sheets-ui','UniverSheetsExchangeClientPlugin','ICommandService','disposeWithMe','RibbonStartGroup','amd','_menuManagerService','search','exchange-client.operation.export-xlsx','Module','get','28854lqHtFR','exchange.file','onStarting','toStringTag','exchange.download','SUBITEMS','_commandService','pluginName','symbol','CommandType','_initMenus','ImportXLSXOperation','@univerjs/sheets','UniverProExchangeClient','add','Injector','UniverSheetsUi','1359072yCaqRa','defineProperty','UniverInstanceType','_initCommands','6bOWqrK','BUTTON','_injector','FolderIcon','Plugin','merge','importXLSXToSnapshot','exchange-client.operation.import-xlsx','254044JhtQTL','DirectExportIcon','ExportXLSXOperation','forEach','UniverSheets'];_0x21b4=function(){return _0xd88fe1;};return _0x21b4();}
1
+ function _0xfac7(_0x493b4e,_0x3f3a3a){const _0x221142=_0x2211();return _0xfac7=function(_0xfac748,_0x3b0893){_0xfac748=_0xfac748-0x19d;let _0x211880=_0x221142[_0xfac748];return _0x211880;},_0xfac7(_0x493b4e,_0x3f3a3a);}(function(_0x44a74f,_0x25e530){const _0x58e554=_0xfac7,_0x486235=_0x44a74f();while(!![]){try{const _0x54f45c=-parseInt(_0x58e554(0x1bb))/0x1*(parseInt(_0x58e554(0x1ba))/0x2)+-parseInt(_0x58e554(0x1a8))/0x3*(-parseInt(_0x58e554(0x1cc))/0x4)+parseInt(_0x58e554(0x1bf))/0x5*(-parseInt(_0x58e554(0x1e5))/0x6)+-parseInt(_0x58e554(0x1aa))/0x7*(parseInt(_0x58e554(0x1c9))/0x8)+-parseInt(_0x58e554(0x1b5))/0x9+parseInt(_0x58e554(0x1c3))/0xa+parseInt(_0x58e554(0x1ad))/0xb*(parseInt(_0x58e554(0x1c4))/0xc);if(_0x54f45c===_0x25e530)break;else _0x486235['push'](_0x486235['shift']());}catch(_0x43f7e4){_0x486235['push'](_0x486235['shift']());}}}(_0x2211,0xb5856),function(_0xe4f93,_0x39852b){const _0x459aaf=_0xfac7;typeof exports==_0x459aaf(0x1de)&&typeof module<'u'?_0x39852b(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x459aaf(0x1cd)]?define([_0x459aaf(0x1e4),'@univerjs-pro/exchange-client',_0x459aaf(0x1d5),_0x459aaf(0x1b8),_0x459aaf(0x1e0),_0x459aaf(0x1b6)],_0x39852b):(_0xe4f93=typeof globalThis<'u'?globalThis:_0xe4f93||self,_0x39852b(_0xe4f93[_0x459aaf(0x1a4)]={},_0xe4f93[_0x459aaf(0x1b7)],_0xe4f93[_0x459aaf(0x1a3)],_0xe4f93[_0x459aaf(0x1d7)],_0xe4f93[_0x459aaf(0x1be)],_0xe4f93[_0x459aaf(0x19e)]));}(this,function(_0xdbab3e,_0xab0f99,_0x4162a0,_0xdbd0dd,_0xf05857,_0x2c251c){'use strict';const _0x507d03=_0xfac7;const _0x265f8e={'id':_0x507d03(0x1b4),'type':_0x4162a0[_0x507d03(0x1e7)][_0x507d03(0x1ac)],'handler':async _0x5bb63d=>{const _0x549bb7=_0x507d03,_0x3e4e50=_0x5bb63d['get'](_0xab0f99['IExchangeOperateService']);return new URLSearchParams(location[_0x549bb7(0x19d)])[_0x549bb7(0x1ce)]('unit')?_0x3e4e50['importXLSXToUnitId']():_0x3e4e50[_0x549bb7(0x1a0)](),!0x0;}},_0x4926b3={'id':_0x507d03(0x1d8),'type':_0x4162a0[_0x507d03(0x1e7)]['OPERATION'],'handler':async _0x5ba934=>{const _0x2ad8f0=_0x507d03,_0x492f4a=_0x5ba934[_0x2ad8f0(0x1ce)](_0xab0f99[_0x2ad8f0(0x1df)]);return new URLSearchParams(location[_0x2ad8f0(0x19d)])['get'](_0x2ad8f0(0x1cb))?_0x492f4a['exportXLSXByUnitId']():_0x492f4a['exportXLSXBySnapshot'](),!0x0;}},_0x281cc1=_0x507d03(0x1e2),_0x441dbf={},_0x39db92=_0x507d03(0x1dc);function _0x5e6769(_0x5d8cb5){const _0x24c147=_0x507d03;return{'id':_0x39db92,'type':_0xdbd0dd['MenuItemType']['SUBITEMS'],'icon':_0x24c147(0x1b2),'tooltip':_0x24c147(0x1c1),'hidden$':_0xdbd0dd[_0x24c147(0x1d2)](_0x5d8cb5,_0x4162a0[_0x24c147(0x1bd)][_0x24c147(0x1d3)]),'disabled$':_0x2c251c['getCurrentRangeDisable$'](_0x5d8cb5,{'workbookTypes':[_0xf05857['WorkbookExportPermission']]})};}function _0x549c4b(){const _0x1c16fe=_0x507d03;return{'id':_0x265f8e['id'],'type':_0xdbd0dd['MenuItemType'][_0x1c16fe(0x1b9)],'title':_0x1c16fe(0x1b3),'icon':'FolderIcon'};}function _0x4d5ee5(){const _0x3d0a6b=_0x507d03;return{'id':_0x4926b3['id'],'type':_0xdbd0dd[_0x3d0a6b(0x19f)][_0x3d0a6b(0x1b9)],'title':_0x3d0a6b(0x1e6),'icon':'ExportIcon'};}const _0x4764b5={[_0xdbd0dd[_0x507d03(0x1b1)][_0x507d03(0x1a7)]]:{[_0x39db92]:{'order':0.3,'menuItemFactory':_0x5e6769,[_0x265f8e['id']]:{'order':0x0,'menuItemFactory':_0x549c4b},[_0x4926b3['id']]:{'order':0x1,'menuItemFactory':_0x4d5ee5}}}};var _0x2e65d8=Object['getOwnPropertyDescriptor'],_0x2dac5a=(_0x1146a9,_0x50d290,_0x7c8866,_0xfe73d)=>{for(var _0x486c8b=_0xfe73d>0x1?void 0x0:_0xfe73d?_0x2e65d8(_0x50d290,_0x7c8866):_0x50d290,_0x1f3825=_0x1146a9['length']-0x1,_0x36381d;_0x1f3825>=0x0;_0x1f3825--)(_0x36381d=_0x1146a9[_0x1f3825])&&(_0x486c8b=_0x36381d(_0x486c8b)||_0x486c8b);return _0x486c8b;},_0xf0d83c=(_0xb0e7d7,_0x2caa52)=>(_0x2e68ba,_0x42636f)=>_0x2caa52(_0x2e68ba,_0x42636f,_0xb0e7d7);let _0x71611=class extends _0x4162a0[_0x507d03(0x1c2)]{constructor(_0x3b841b,_0x2f906b){const _0x47521f=_0x507d03;super(),this[_0x47521f(0x1a5)]=_0x3b841b,this[_0x47521f(0x1db)]=_0x2f906b,this[_0x47521f(0x1ae)](),this['_initMenus']();}[_0x507d03(0x1ae)](){const _0x50285e=_0x507d03;[_0x265f8e,_0x4926b3][_0x50285e(0x1a2)](_0x195c6e=>{const _0x68ffde=_0x50285e;this['disposeWithMe'](this[_0x68ffde(0x1a5)][_0x68ffde(0x1d1)](_0x195c6e));});}[_0x507d03(0x1bc)](){const _0x4fc1e8=_0x507d03;this[_0x4fc1e8(0x1db)]['mergeMenu'](_0x4764b5);}};_0x71611=_0x2dac5a([_0xf0d83c(0x0,_0x4162a0['ICommandService']),_0xf0d83c(0x1,_0xdbd0dd['IMenuManagerService'])],_0x71611);var _0x489475=Object['defineProperty'],_0x12e3e4=Object[_0x507d03(0x1cf)],_0x258c29=(_0x5dce04,_0x501b1e,_0x4ccc3a)=>_0x501b1e in _0x5dce04?_0x489475(_0x5dce04,_0x501b1e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ccc3a}):_0x5dce04[_0x501b1e]=_0x4ccc3a,_0x590c5f=(_0x13c027,_0x2bb821,_0x148e7b,_0x3ee7c5)=>{const _0x4c238f=_0x507d03;for(var _0x3c83e3=_0x3ee7c5>0x1?void 0x0:_0x3ee7c5?_0x12e3e4(_0x2bb821,_0x148e7b):_0x2bb821,_0x2c0e7b=_0x13c027[_0x4c238f(0x1dd)]-0x1,_0x561b2e;_0x2c0e7b>=0x0;_0x2c0e7b--)(_0x561b2e=_0x13c027[_0x2c0e7b])&&(_0x3c83e3=_0x561b2e(_0x3c83e3)||_0x3c83e3);return _0x3c83e3;},_0x38870b=(_0x5aee10,_0x1ab1b7)=>(_0x1fea2e,_0x16bb2f)=>_0x1ab1b7(_0x1fea2e,_0x16bb2f,_0x5aee10),_0x3f9b9d=(_0x120416,_0x34b608,_0x403335)=>_0x258c29(_0x120416,typeof _0x34b608!='symbol'?_0x34b608+'':_0x34b608,_0x403335);const _0x19dbde=_0x507d03(0x1e3);_0xdbab3e[_0x507d03(0x1a6)]=class extends _0x4162a0[_0x507d03(0x1ca)]{constructor(_0x2137f5=_0x441dbf,_0x409db4,_0x15d315){const _0x545f38=_0x507d03;super(),this[_0x545f38(0x1c0)]=_0x2137f5,this['_injector']=_0x409db4,this[_0x545f38(0x1d9)]=_0x15d315;const {menu:_0x241b1a,..._0x2e69e0}=_0x4162a0[_0x545f38(0x1c7)]({},_0x441dbf,this[_0x545f38(0x1c0)]);_0x241b1a&&this[_0x545f38(0x1d9)][_0x545f38(0x1c5)]('menu',_0x241b1a,{'merge':!0x0}),this[_0x545f38(0x1d9)][_0x545f38(0x1c5)](_0x281cc1,_0x2e69e0);}[_0x507d03(0x1a9)](){const _0x518576=_0x507d03;[[_0x71611]]['forEach'](_0x5e3c5c=>this[_0x518576(0x1d6)]['add'](_0x5e3c5c));}[_0x507d03(0x1e1)](){const _0x460d83=_0x507d03;this[_0x460d83(0x1d6)][_0x460d83(0x1ce)](_0x71611);}},_0x3f9b9d(_0xdbab3e[_0x507d03(0x1a6)],_0x507d03(0x1b0),_0x19dbde),_0x3f9b9d(_0xdbab3e['UniverSheetsExchangeClientPlugin'],_0x507d03(0x1d0),_0x4162a0[_0x507d03(0x1bd)]['UNIVER_SHEET']),_0xdbab3e[_0x507d03(0x1a6)]=_0x590c5f([_0x4162a0[_0x507d03(0x1da)](_0xab0f99[_0x507d03(0x1c8)]),_0x38870b(0x1,_0x4162a0['Inject'](_0x4162a0[_0x507d03(0x1af)])),_0x38870b(0x2,_0x4162a0[_0x507d03(0x1c6)])],_0xdbab3e['UniverSheetsExchangeClientPlugin']),_0xdbab3e[_0x507d03(0x1a1)]=_0x4926b3,_0xdbab3e['ImportXLSXOperation']=_0x265f8e,Object[_0x507d03(0x1ab)](_0xdbab3e,Symbol[_0x507d03(0x1e8)],{'value':_0x507d03(0x1d4)});}));function _0x2211(){const _0x5879df=['pluginName','RibbonStartGroup','DirectExportIcon','exchange.upload','exchange-client.operation.import-xlsx','12188133btmUds','@univerjs/sheets-ui','UniverProExchangeClient','@univerjs/ui','BUTTON','14gUVHLz','155871TVwJlQ','_initMenus','UniverInstanceType','UniverSheets','115NQkZdh','_config','exchange.file','Disposable','13441570LwPxLB','1332NjpSQB','setConfig','IConfigService','merge','UniverExchangeClientPlugin','2855504bYdfSB','Plugin','unit','2956knLuCe','amd','get','getOwnPropertyDescriptor','type','registerCommand','getMenuHiddenObservable','UNIVER_SHEET','Module','@univerjs/core','_injector','UniverUi','exchange-client.operation.export-xlsx','_configService','DependentOn','_menuManagerService','sheets-exchange-client.operation.exchange','length','object','IExchangeOperateService','@univerjs/sheets','onReady','sheets-exchange-client.config','SHEET_EXCHANGE_CLIENT_PLUGIN','exports','120966hoTCrD','exchange.download','CommandType','toStringTag','search','UniverSheetsUi','MenuItemType','importXLSXToSnapshot','ExportXLSXOperation','forEach','UniverCore','UniverProSheetsExchangeClient','_commandService','UniverSheetsExchangeClientPlugin','OTHERS','4119BnyKSN','onStarting','7lCiXox','defineProperty','OPERATION','163581ebjLtu','_initCommands','Injector'];_0x2211=function(){return _0x5879df;};return _0x2211();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.10.10-experimental.20251016-33b0941",
3
+ "version": "0.10.10-nightly.202510170942",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -42,11 +42,11 @@
42
42
  "lib"
43
43
  ],
44
44
  "dependencies": {
45
- "@univerjs-pro/exchange-client": "0.10.10-experimental.20251016-33b0941",
46
- "@univerjs/sheets": "0.10.10-experimental.20251016-33b0941",
47
- "@univerjs/sheets-ui": "0.10.10-experimental.20251016-33b0941",
48
- "@univerjs/core": "0.10.10-experimental.20251016-33b0941",
49
- "@univerjs/ui": "0.10.10-experimental.20251016-33b0941"
45
+ "@univerjs-pro/exchange-client": "0.10.10-nightly.202510170942",
46
+ "@univerjs/core": "0.10.10-nightly.202510170942",
47
+ "@univerjs/sheets-ui": "0.10.10-nightly.202510170942",
48
+ "@univerjs/ui": "0.10.10-nightly.202510170942",
49
+ "@univerjs/sheets": "0.10.10-nightly.202510170942"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",