@univerjs-pro/sheets-exchange-client 0.15.2-insiders.20260124-12fc7f0 → 0.15.3-insiders.20260131-b9b8805

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 _0x1b9acf=_0x2efc;(function(_0x34c85e,_0x2655cd){const _0x1f78ba=_0x2efc,_0x2e2d5f=_0x34c85e();while(!![]){try{const _0x75e0c5=parseInt(_0x1f78ba(0xf5))/0x1+-parseInt(_0x1f78ba(0xd7))/0x2+-parseInt(_0x1f78ba(0xe4))/0x3*(-parseInt(_0x1f78ba(0xc3))/0x4)+parseInt(_0x1f78ba(0xf6))/0x5*(parseInt(_0x1f78ba(0xf8))/0x6)+-parseInt(_0x1f78ba(0xcd))/0x7+parseInt(_0x1f78ba(0xc1))/0x8*(parseInt(_0x1f78ba(0xf1))/0x9)+-parseInt(_0x1f78ba(0xc8))/0xa*(parseInt(_0x1f78ba(0xe6))/0xb);if(_0x75e0c5===_0x2655cd)break;else _0x2e2d5f['push'](_0x2e2d5f['shift']());}catch(_0x189193){_0x2e2d5f['push'](_0x2e2d5f['shift']());}}}(_0x1ce0,0xa52e6));Object[_0x1b9acf(0xf3)](exports,Symbol[_0x1b9acf(0xd5)],{'value':_0x1b9acf(0xbe)});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[_0x1b9acf(0xff)]['OPERATION'],'handler':async _0x29503b=>{const _0x1bd819=_0x1b9acf,_0x261d9d=_0x29503b[_0x1bd819(0xc4)](g['IExchangeOperateService']);return new URLSearchParams(location['search'])[_0x1bd819(0xc4)](_0x1bd819(0xed))?_0x261d9d[_0x1bd819(0xcf)]():_0x261d9d[_0x1bd819(0xbd)](),!0x0;}},p={'id':_0x1b9acf(0xda),'type':i['CommandType']['OPERATION'],'handler':async _0x336cf1=>{const _0x3d2cc3=_0x1b9acf,_0x5b2a1a=_0x336cf1[_0x3d2cc3(0xc4)](g[_0x3d2cc3(0xfd)]);return new URLSearchParams(location[_0x3d2cc3(0xee)])['get'](_0x3d2cc3(0xed))?_0x5b2a1a[_0x3d2cc3(0xd4)]():_0x5b2a1a[_0x3d2cc3(0xe2)](),!0x0;}},v='sheets-exchange-client.config',h={},S='sheets-exchange-client.operation.exchange';function x(_0x390fc0){const _0x2f83f1=_0x1b9acf;return{'id':S,'type':c[_0x2f83f1(0xcb)][_0x2f83f1(0xd3)],'icon':_0x2f83f1(0xc0),'tooltip':_0x2f83f1(0xe5),'hidden$':c[_0x2f83f1(0xe9)](_0x390fc0,i['UniverInstanceType'][_0x2f83f1(0xe7)]),'disabled$':I['getCurrentRangeDisable$'](_0x390fc0,{'workbookTypes':[_[_0x2f83f1(0xec)]]})};}function P(){const _0x1a7887=_0x1b9acf;return{'id':l['id'],'type':c[_0x1a7887(0xcb)][_0x1a7887(0xf2)],'title':_0x1a7887(0xe3),'icon':_0x1a7887(0xd9)};}function C(){const _0x20c746=_0x1b9acf;return{'id':p['id'],'type':c['MenuItemType'][_0x20c746(0xf2)],'title':_0x20c746(0xea),'icon':_0x20c746(0xdd)};}const f={[c['RibbonStartGroup'][_0x1b9acf(0xd0)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x548614,_0x350609,_0x3f7d23,_0x10013a)=>{for(var _0x58f34a=_0x10013a>0x1?void 0x0:_0x10013a?T(_0x350609,_0x3f7d23):_0x350609,_0x25e364=_0x548614['length']-0x1,_0x2a0d93;_0x25e364>=0x0;_0x25e364--)(_0x2a0d93=_0x548614[_0x25e364])&&(_0x58f34a=_0x2a0d93(_0x58f34a)||_0x58f34a);return _0x58f34a;},m=(_0x376449,_0x152283)=>(_0x1e99bd,_0xc3ca2f)=>_0x152283(_0x1e99bd,_0xc3ca2f,_0x376449);let u=class extends i[_0x1b9acf(0xfa)]{constructor(_0x49d50a,_0x2b485f){const _0x58ed4a=_0x1b9acf;super(),this[_0x58ed4a(0xe1)]=_0x49d50a,this[_0x58ed4a(0xd2)]=_0x2b485f,this[_0x58ed4a(0xfc)](),this[_0x58ed4a(0xc9)]();}[_0x1b9acf(0xfc)](){const _0x58f12d=_0x1b9acf;[l,p][_0x58f12d(0xca)](_0x579a11=>{const _0x5bb92b=_0x58f12d;this[_0x5bb92b(0xeb)](this['_commandService'][_0x5bb92b(0xd6)](_0x579a11));});}[_0x1b9acf(0xc9)](){const _0x4c3021=_0x1b9acf;this[_0x4c3021(0xd2)][_0x4c3021(0xbf)](f);}};u=y([m(0x0,i[_0x1b9acf(0xc7)]),m(0x1,c[_0x1b9acf(0xc2)])],u);var O=Object[_0x1b9acf(0xf3)],U=Object[_0x1b9acf(0xf0)],X=(_0x541394,_0x1f80b4,_0x1829e7)=>_0x1f80b4 in _0x541394?O(_0x541394,_0x1f80b4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1829e7}):_0x541394[_0x1f80b4]=_0x1829e7,N=(_0x4141c0,_0x4724b8,_0x3b9eba,_0x53c316)=>{const _0x3c14bf=_0x1b9acf;for(var _0x266757=_0x53c316>0x1?void 0x0:_0x53c316?U(_0x4724b8,_0x3b9eba):_0x4724b8,_0x4d442c=_0x4141c0[_0x3c14bf(0xd8)]-0x1,_0x2afa54;_0x4d442c>=0x0;_0x4d442c--)(_0x2afa54=_0x4141c0[_0x4d442c])&&(_0x266757=_0x2afa54(_0x266757)||_0x266757);return _0x266757;},d=(_0x21efb9,_0xc50369)=>(_0xb97843,_0x6a541a)=>_0xc50369(_0xb97843,_0x6a541a,_0x21efb9),E=(_0x99e95a,_0x3fc22f,_0x1a80f8)=>X(_0x99e95a,typeof _0x3fc22f!=_0x1b9acf(0xcc)?_0x3fc22f+'':_0x3fc22f,_0x1a80f8);const L=_0x1b9acf(0xf9);function _0x1ce0(){const _0x27664d=['10iQxDeI','_initMenus','forEach','MenuItemType','symbol','1287097ChQfEZ','ImportXLSXOperation','importXLSXToUnitId','OTHERS','UniverSheetsExchangeClientPlugin','_menuManagerService','SUBITEMS','exportXLSXByUnitId','toStringTag','registerCommand','2539042gOaLLU','length','FolderIcon','exchange-client.operation.export-xlsx','onStarting','menu','ExportIcon','Inject','_injector','onReady','_commandService','exportXLSXBySnapshot','exchange.upload','948reMrzf','exchange.file','4732783ANCHQl','UNIVER_SHEET','UniverExchangeClientPlugin','getMenuHiddenObservable','exchange.download','disposeWithMe','WorkbookExportPermission','unit','search','IConfigService','getOwnPropertyDescriptor','154323jsCUyF','BUTTON','defineProperty','pluginName','541901LPfdWo','223105tiShRU','_configService','24TfktSf','SHEET_EXCHANGE_CLIENT_PLUGIN','Disposable','merge','_initCommands','IExchangeOperateService','Plugin','CommandType','importXLSXToSnapshot','Module','mergeMenu','DirectExportIcon','496TgOJWB','IMenuManagerService','9832dPxrSq','get','_config','UniverInstanceType','ICommandService'];_0x1ce0=function(){return _0x27664d;};return _0x1ce0();}function _0x2efc(_0x4fca99,_0x248ca0){_0x4fca99=_0x4fca99-0xbd;const _0x1ce0af=_0x1ce0();let _0x2efcbb=_0x1ce0af[_0x4fca99];return _0x2efcbb;}exports[_0x1b9acf(0xd1)]=class extends i[_0x1b9acf(0xfe)]{constructor(_0x24a55e=h,_0x4ddb2e,_0x491582){const _0x58eb7b=_0x1b9acf;super(),this[_0x58eb7b(0xc5)]=_0x24a55e,this[_0x58eb7b(0xdf)]=_0x4ddb2e,this[_0x58eb7b(0xf7)]=_0x491582;const {menu:_0x560f0e,..._0x3a6ca5}=i[_0x58eb7b(0xfb)]({},h,this[_0x58eb7b(0xc5)]);_0x560f0e&&this[_0x58eb7b(0xf7)]['setConfig'](_0x58eb7b(0xdc),_0x560f0e,{'merge':!0x0}),this['_configService']['setConfig'](v,_0x3a6ca5);}[_0x1b9acf(0xdb)](){const _0x53ec38=_0x1b9acf;[[u]]['forEach'](_0x1dc839=>this[_0x53ec38(0xdf)]['add'](_0x1dc839));}[_0x1b9acf(0xe0)](){const _0x5d17ab=_0x1b9acf;this[_0x5d17ab(0xdf)]['get'](u);}},E(exports[_0x1b9acf(0xd1)],_0x1b9acf(0xf4),L),E(exports[_0x1b9acf(0xd1)],'type',i[_0x1b9acf(0xc6)][_0x1b9acf(0xe7)]),exports[_0x1b9acf(0xd1)]=N([i['DependentOn'](g[_0x1b9acf(0xe8)]),d(0x1,i[_0x1b9acf(0xde)](i['Injector'])),d(0x2,i[_0x1b9acf(0xef)])],exports['UniverSheetsExchangeClientPlugin']),exports['ExportXLSXOperation']=p,exports[_0x1b9acf(0xce)]=l;
1
+ 'use strict';const _0x2177e2=_0x4788;(function(_0x55ec3e,_0x55d8bf){const _0xeeecb2=_0x4788,_0x291298=_0x55ec3e();while(!![]){try{const _0x27c352=parseInt(_0xeeecb2(0xcf))/0x1*(-parseInt(_0xeeecb2(0xb1))/0x2)+-parseInt(_0xeeecb2(0xc3))/0x3*(-parseInt(_0xeeecb2(0xa1))/0x4)+-parseInt(_0xeeecb2(0xbc))/0x5+parseInt(_0xeeecb2(0xba))/0x6+parseInt(_0xeeecb2(0xc1))/0x7+-parseInt(_0xeeecb2(0xc8))/0x8*(-parseInt(_0xeeecb2(0xdb))/0x9)+-parseInt(_0xeeecb2(0xb3))/0xa*(parseInt(_0xeeecb2(0xc6))/0xb);if(_0x27c352===_0x55d8bf)break;else _0x291298['push'](_0x291298['shift']());}catch(_0x29122f){_0x291298['push'](_0x291298['shift']());}}}(_0x4af5,0x3aff2));Object[_0x2177e2(0xbb)](exports,Symbol[_0x2177e2(0xb8)],{'value':_0x2177e2(0xd6)});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[_0x2177e2(0xc2)]['OPERATION'],'handler':async _0x4f42da=>{const _0x49da97=_0x2177e2,_0xe7ed12=_0x4f42da[_0x49da97(0xd5)](g[_0x49da97(0xd8)]);return new URLSearchParams(location[_0x49da97(0xda)])[_0x49da97(0xd5)](_0x49da97(0xd2))?_0xe7ed12[_0x49da97(0xb9)]():_0xe7ed12['importXLSXToSnapshot'](),!0x0;}},p={'id':_0x2177e2(0xce),'type':i[_0x2177e2(0xc2)][_0x2177e2(0xcd)],'handler':async _0x3ebe47=>{const _0x48846d=_0x2177e2,_0xe33e05=_0x3ebe47['get'](g[_0x48846d(0xd8)]);return new URLSearchParams(location['search'])[_0x48846d(0xd5)](_0x48846d(0xd2))?_0xe33e05[_0x48846d(0xa8)]():_0xe33e05['exportXLSXBySnapshot'](),!0x0;}},v=_0x2177e2(0xc4),h={},S=_0x2177e2(0xa0);function x(_0x1fcc0a){const _0x394d2b=_0x2177e2;return{'id':S,'type':c[_0x394d2b(0xdc)]['SUBITEMS'],'icon':_0x394d2b(0xa7),'tooltip':_0x394d2b(0xa4),'hidden$':c[_0x394d2b(0xb4)](_0x1fcc0a,i[_0x394d2b(0x9f)][_0x394d2b(0xaa)]),'disabled$':I[_0x394d2b(0xcb)](_0x1fcc0a,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x3fa774=_0x2177e2;return{'id':l['id'],'type':c['MenuItemType']['BUTTON'],'title':'exchange.upload','icon':_0x3fa774(0xc5)};}function C(){const _0x3efbf1=_0x2177e2;return{'id':p['id'],'type':c[_0x3efbf1(0xdc)]['BUTTON'],'title':'exchange.download','icon':_0x3efbf1(0xb2)};}const f={[c[_0x2177e2(0xd0)][_0x2177e2(0xa2)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x4dcf50,_0x34b571,_0xd1fe72,_0xb49dd3)=>{const _0x3ed683=_0x2177e2;for(var _0x2683f2=_0xb49dd3>0x1?void 0x0:_0xb49dd3?T(_0x34b571,_0xd1fe72):_0x34b571,_0x57b449=_0x4dcf50[_0x3ed683(0xb0)]-0x1,_0x5c52e6;_0x57b449>=0x0;_0x57b449--)(_0x5c52e6=_0x4dcf50[_0x57b449])&&(_0x2683f2=_0x5c52e6(_0x2683f2)||_0x2683f2);return _0x2683f2;},m=(_0x15e967,_0xfe18a5)=>(_0x2ffe67,_0x186b9e)=>_0xfe18a5(_0x2ffe67,_0x186b9e,_0x15e967);let u=class extends i['Disposable']{constructor(_0x4c2490,_0xc1af45){const _0x11cfdd=_0x2177e2;super(),this['_commandService']=_0x4c2490,this[_0x11cfdd(0xa3)]=_0xc1af45,this['_initCommands'](),this['_initMenus']();}[_0x2177e2(0xca)](){const _0x239224=_0x2177e2;[l,p][_0x239224(0xb7)](_0x48e0d9=>{const _0x690e3a=_0x239224;this[_0x690e3a(0xdf)](this[_0x690e3a(0xab)][_0x690e3a(0xd1)](_0x48e0d9));});}[_0x2177e2(0x9e)](){const _0x1fdf62=_0x2177e2;this[_0x1fdf62(0xa3)][_0x1fdf62(0xd7)](f);}};function _0x4af5(){const _0x3a4c0a=['4728NIVxmB','_injector','_initCommands','getCurrentRangeDisable$','getOwnPropertyDescriptor','OPERATION','exchange-client.operation.export-xlsx','4283hCqDFb','RibbonStartGroup','registerCommand','unit','_configService','type','get','Module','mergeMenu','IExchangeOperateService','menu','search','6624fdIxgM','MenuItemType','ImportXLSXOperation','DependentOn','disposeWithMe','IMenuManagerService','pluginName','_initMenus','UniverInstanceType','sheets-exchange-client.operation.exchange','196956ooRCGx','OTHERS','_menuManagerService','exchange.file','UniverExchangeClientPlugin','setConfig','DirectExportIcon','exportXLSXByUnitId','onReady','UNIVER_SHEET','_commandService','onStarting','IConfigService','symbol','Inject','length','194vdQckM','ExportIcon','48670ICosyY','getMenuHiddenObservable','UniverSheetsExchangeClientPlugin','add','forEach','toStringTag','importXLSXToUnitId','2849922lxfJtR','defineProperty','1543970UkdAcM','ExportXLSXOperation','SHEET_EXCHANGE_CLIENT_PLUGIN','Plugin','ICommandService','966714onEPiy','CommandType','3gvBubM','sheets-exchange-client.config','FolderIcon','297fPolRx','_config'];_0x4af5=function(){return _0x3a4c0a;};return _0x4af5();}u=y([m(0x0,i[_0x2177e2(0xc0)]),m(0x1,c[_0x2177e2(0xe0)])],u);function _0x4788(_0x783f08,_0x567a85){_0x783f08=_0x783f08-0x9e;const _0x4af5a7=_0x4af5();let _0x4788f7=_0x4af5a7[_0x783f08];return _0x4788f7;}var O=Object[_0x2177e2(0xbb)],U=Object[_0x2177e2(0xcc)],X=(_0x11a88c,_0xc85544,_0x4417f)=>_0xc85544 in _0x11a88c?O(_0x11a88c,_0xc85544,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4417f}):_0x11a88c[_0xc85544]=_0x4417f,N=(_0x368659,_0x59abf0,_0x2a34de,_0x27bed1)=>{for(var _0x1a02c6=_0x27bed1>0x1?void 0x0:_0x27bed1?U(_0x59abf0,_0x2a34de):_0x59abf0,_0x33b843=_0x368659['length']-0x1,_0x593e12;_0x33b843>=0x0;_0x33b843--)(_0x593e12=_0x368659[_0x33b843])&&(_0x1a02c6=_0x593e12(_0x1a02c6)||_0x1a02c6);return _0x1a02c6;},d=(_0x51d473,_0x38637c)=>(_0x19b2b5,_0x528729)=>_0x38637c(_0x19b2b5,_0x528729,_0x51d473),E=(_0x2d407f,_0x3a9b5f,_0xd6861e)=>X(_0x2d407f,typeof _0x3a9b5f!=_0x2177e2(0xae)?_0x3a9b5f+'':_0x3a9b5f,_0xd6861e);const L=_0x2177e2(0xbe);exports[_0x2177e2(0xb5)]=class extends i[_0x2177e2(0xbf)]{constructor(_0x35ea47=h,_0x379a80,_0x5e4f99){const _0x474d64=_0x2177e2;super(),this[_0x474d64(0xc7)]=_0x35ea47,this['_injector']=_0x379a80,this[_0x474d64(0xd3)]=_0x5e4f99;const {menu:_0x5a52bf,..._0x529661}=i['merge']({},h,this[_0x474d64(0xc7)]);_0x5a52bf&&this[_0x474d64(0xd3)]['setConfig'](_0x474d64(0xd9),_0x5a52bf,{'merge':!0x0}),this[_0x474d64(0xd3)][_0x474d64(0xa6)](v,_0x529661);}[_0x2177e2(0xac)](){const _0x48bd80=_0x2177e2;[[u]][_0x48bd80(0xb7)](_0x58e8a0=>this[_0x48bd80(0xc9)][_0x48bd80(0xb6)](_0x58e8a0));}[_0x2177e2(0xa9)](){const _0x4f5ab4=_0x2177e2;this[_0x4f5ab4(0xc9)][_0x4f5ab4(0xd5)](u);}},E(exports[_0x2177e2(0xb5)],_0x2177e2(0xe1),L),E(exports['UniverSheetsExchangeClientPlugin'],_0x2177e2(0xd4),i[_0x2177e2(0x9f)][_0x2177e2(0xaa)]),exports[_0x2177e2(0xb5)]=N([i[_0x2177e2(0xde)](g[_0x2177e2(0xa5)]),d(0x1,i[_0x2177e2(0xaf)](i['Injector'])),d(0x2,i[_0x2177e2(0xad)])],exports[_0x2177e2(0xb5)]),exports[_0x2177e2(0xbd)]=p,exports[_0x2177e2(0xdd)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x41e3ba=_0x1dad;(function(_0x1106e4,_0x3fd1a8){const _0x227909=_0x1dad,_0x59019d=_0x1106e4();while(!![]){try{const _0x42e845=parseInt(_0x227909(0x1e2))/0x1*(parseInt(_0x227909(0x1e6))/0x2)+-parseInt(_0x227909(0x1ee))/0x3+-parseInt(_0x227909(0x1eb))/0x4+parseInt(_0x227909(0x1f0))/0x5+-parseInt(_0x227909(0x1fb))/0x6*(-parseInt(_0x227909(0x1f4))/0x7)+parseInt(_0x227909(0x1d6))/0x8*(-parseInt(_0x227909(0x1e3))/0x9)+parseInt(_0x227909(0x1dc))/0xa;if(_0x42e845===_0x3fd1a8)break;else _0x59019d['push'](_0x59019d['shift']());}catch(_0x631d22){_0x59019d['push'](_0x59019d['shift']());}}}(_0xfe48,0x8e54e));import{IExchangeOperateService as _0x1c34e8,UniverExchangeClientPlugin as _0x265792}from'@univerjs-pro/exchange-client';import{CommandType as _0x41eb2e,UniverInstanceType as _0x1f527e,Disposable as _0x2d971c,ICommandService as _0x1728d1,DependentOn as _0x22647f,Inject as _0x53b43c,Injector as _0x52b5e7,IConfigService as _0x3e3500,Plugin as _0x1ebffd,merge as _0x6bc6c9}from'@univerjs/core';function _0x1dad(_0x3617be,_0x269040){_0x3617be=_0x3617be-0x1d6;const _0xfe4808=_0xfe48();let _0x1dadda=_0xfe4808[_0x3617be];return _0x1dadda;}import{MenuItemType as _0x291293,getMenuHiddenObservable as _0x4a3cf1,RibbonStartGroup as _0x202143,IMenuManagerService as _0x4cd612}from'@univerjs/ui';import{WorkbookExportPermission as _0x579be6}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x4842cd}from'@univerjs/sheets-ui';const p={'id':_0x41e3ba(0x1fa),'type':_0x41eb2e[_0x41e3ba(0x1db)],'handler':async _0x3f3729=>{const _0x540663=_0x41e3ba,_0x3300a2=_0x3f3729[_0x540663(0x1ef)](_0x1c34e8);return new URLSearchParams(location[_0x540663(0x1f2)])[_0x540663(0x1ef)](_0x540663(0x1dd))?_0x3300a2['importXLSXToUnitId']():_0x3300a2[_0x540663(0x1d8)](),!0x0;}},u={'id':_0x41e3ba(0x1e0),'type':_0x41eb2e[_0x41e3ba(0x1db)],'handler':async _0x83f8f9=>{const _0x4c6138=_0x41e3ba,_0x23846c=_0x83f8f9['get'](_0x1c34e8);return new URLSearchParams(location[_0x4c6138(0x1f2)])[_0x4c6138(0x1ef)](_0x4c6138(0x1dd))?_0x23846c['exportXLSXByUnitId']():_0x23846c[_0x4c6138(0x1f8)](),!0x0;}},H=_0x41e3ba(0x1fe),l={},S=_0x41e3ba(0x1d9);function R(_0x48a2b1){const _0x838a47=_0x41e3ba;return{'id':S,'type':_0x291293[_0x838a47(0x1e5)],'icon':_0x838a47(0x200),'tooltip':'exchange.file','hidden$':_0x4a3cf1(_0x48a2b1,_0x1f527e['UNIVER_SHEET']),'disabled$':_0x4842cd(_0x48a2b1,{'workbookTypes':[_0x579be6]})};}function w(){const _0x123223=_0x41e3ba;return{'id':p['id'],'type':_0x291293[_0x123223(0x1e4)],'title':_0x123223(0x1da),'icon':'FolderIcon'};}function D(){const _0x394ae6=_0x41e3ba;return{'id':u['id'],'type':_0x291293[_0x394ae6(0x1e4)],'title':_0x394ae6(0x1f5),'icon':_0x394ae6(0x1fc)};}const F={[_0x202143['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x41e3ba(0x201)],A=(_0x277769,_0x3f6a1e,_0x355e52,_0x5935c7)=>{const _0x16115d=_0x41e3ba;for(var _0x46267a=_0x5935c7>0x1?void 0x0:_0x5935c7?G(_0x3f6a1e,_0x355e52):_0x3f6a1e,_0x8ad94=_0x277769[_0x16115d(0x1e8)]-0x1,_0x4196dd;_0x8ad94>=0x0;_0x8ad94--)(_0x4196dd=_0x277769[_0x8ad94])&&(_0x46267a=_0x4196dd(_0x46267a)||_0x46267a);return _0x46267a;},d=(_0x35f6cb,_0x5cdafb)=>(_0x148ced,_0x4f1111)=>_0x5cdafb(_0x148ced,_0x4f1111,_0x35f6cb);let c=class extends _0x2d971c{constructor(_0x34df6e,_0x29ba58){const _0x27bcab=_0x41e3ba;super(),this['_commandService']=_0x34df6e,this['_menuManagerService']=_0x29ba58,this['_initCommands'](),this[_0x27bcab(0x202)]();}[_0x41e3ba(0x1de)](){const _0x507f18=_0x41e3ba;[p,u][_0x507f18(0x1e9)](_0x49491f=>{const _0x448118=_0x507f18;this[_0x448118(0x1d7)](this['_commandService'][_0x448118(0x1e1)](_0x49491f));});}[_0x41e3ba(0x202)](){const _0xdd139c=_0x41e3ba;this[_0xdd139c(0x203)]['mergeMenu'](F);}};c=A([d(0x0,_0x1728d1),d(0x1,_0x4cd612)],c);var j=Object['defineProperty'],B=Object[_0x41e3ba(0x201)],$=(_0x2e1735,_0x66ba31,_0x17f1aa)=>_0x66ba31 in _0x2e1735?j(_0x2e1735,_0x66ba31,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x17f1aa}):_0x2e1735[_0x66ba31]=_0x17f1aa,V=(_0x51f2a2,_0x1b66af,_0x133404,_0x1227f0)=>{const _0x4c2801=_0x41e3ba;for(var _0x5ca710=_0x1227f0>0x1?void 0x0:_0x1227f0?B(_0x1b66af,_0x133404):_0x1b66af,_0x59eccf=_0x51f2a2[_0x4c2801(0x1e8)]-0x1,_0x12dd72;_0x59eccf>=0x0;_0x59eccf--)(_0x12dd72=_0x51f2a2[_0x59eccf])&&(_0x5ca710=_0x12dd72(_0x5ca710)||_0x5ca710);return _0x5ca710;},_=(_0x2750a8,_0x1b718d)=>(_0x22680e,_0x11e6ac)=>_0x1b718d(_0x22680e,_0x11e6ac,_0x2750a8),I=(_0x1cd5b4,_0x92cc8,_0x8e6018)=>$(_0x1cd5b4,typeof _0x92cc8!=_0x41e3ba(0x1df)?_0x92cc8+'':_0x92cc8,_0x8e6018);const W=_0x41e3ba(0x1f1);let s=class extends _0x1ebffd{constructor(_0x390495=l,_0xadc7ba,_0x5935d6){const _0x279e28=_0x41e3ba;super(),this[_0x279e28(0x1f3)]=_0x390495,this[_0x279e28(0x1ea)]=_0xadc7ba,this[_0x279e28(0x1ec)]=_0x5935d6;const {menu:_0x27d884,..._0xc4ced6}=_0x6bc6c9({},l,this[_0x279e28(0x1f3)]);_0x27d884&&this[_0x279e28(0x1ec)][_0x279e28(0x1f6)](_0x279e28(0x1e7),_0x27d884,{'merge':!0x0}),this['_configService'][_0x279e28(0x1f6)](H,_0xc4ced6);}[_0x41e3ba(0x1f9)](){const _0x5bada9=_0x41e3ba;[[c]][_0x5bada9(0x1e9)](_0x270905=>this[_0x5bada9(0x1ea)]['add'](_0x270905));}[_0x41e3ba(0x1f7)](){const _0x3e630e=_0x41e3ba;this['_injector'][_0x3e630e(0x1ef)](c);}};function _0xfe48(){const _0x323ff9=['exchange-client.operation.import-xlsx','1528932qNASgj','ExportIcon','UNIVER_SHEET','sheets-exchange-client.config','type','DirectExportIcon','getOwnPropertyDescriptor','_initMenus','_menuManagerService','10088hrfFee','disposeWithMe','importXLSXToSnapshot','sheets-exchange-client.operation.exchange','exchange.upload','OPERATION','10084510hYaSoJ','unit','_initCommands','symbol','exchange-client.operation.export-xlsx','registerCommand','2Rhftck','2484JnWIkk','BUTTON','SUBITEMS','706506MwoUBS','menu','length','forEach','_injector','3962436hIZonV','_configService','pluginName','2004747MsIWcT','get','3100525KjFLwj','SHEET_EXCHANGE_CLIENT_PLUGIN','search','_config','7UPXNjI','exchange.download','setConfig','onReady','exportXLSXBySnapshot','onStarting'];_0xfe48=function(){return _0x323ff9;};return _0xfe48();}I(s,_0x41e3ba(0x1ed),W),I(s,_0x41e3ba(0x1ff),_0x1f527e[_0x41e3ba(0x1fd)]),s=V([_0x22647f(_0x265792),_(0x1,_0x53b43c(_0x52b5e7)),_(0x2,_0x3e3500)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x51e65d=_0x1cbf;(function(_0x44e1e7,_0x554870){const _0x4c5812=_0x1cbf,_0x23dfdf=_0x44e1e7();while(!![]){try{const _0x5256d5=-parseInt(_0x4c5812(0x1c3))/0x1+parseInt(_0x4c5812(0x1ca))/0x2+parseInt(_0x4c5812(0x1a6))/0x3*(parseInt(_0x4c5812(0x1c6))/0x4)+parseInt(_0x4c5812(0x1bf))/0x5*(parseInt(_0x4c5812(0x1c5))/0x6)+-parseInt(_0x4c5812(0x1c7))/0x7*(parseInt(_0x4c5812(0x1ab))/0x8)+parseInt(_0x4c5812(0x1cd))/0x9+-parseInt(_0x4c5812(0x1c8))/0xa;if(_0x5256d5===_0x554870)break;else _0x23dfdf['push'](_0x23dfdf['shift']());}catch(_0xb7da06){_0x23dfdf['push'](_0x23dfdf['shift']());}}}(_0x3c6c,0x54a79));import{IExchangeOperateService as _0x2bf989,UniverExchangeClientPlugin as _0x2ad91b}from'@univerjs-pro/exchange-client';function _0x3c6c(){const _0x79e90e=['pluginName','exchange.upload','_initCommands','unit','exportXLSXBySnapshot','defineProperty','search','OTHERS','2355455nggsxg','DirectExportIcon','exchange.file','length','289140ZPfbGX','sheets-exchange-client.config','6druWKY','148MyzeQU','992271gOngsT','5512100IsgpRL','exchange.download','538152fCuvaS','_config','symbol','3675861VtxrrI','_injector','BUTTON','getOwnPropertyDescriptor','OPERATION','onReady','setConfig','_menuManagerService','importXLSXToSnapshot','exchange-client.operation.export-xlsx','exchange-client.operation.import-xlsx','SUBITEMS','menu','add','37602xLuGKg','_initMenus','get','exportXLSXByUnitId','mergeMenu','24wOxYjg','ExportIcon','onStarting','FolderIcon','type','registerCommand','SHEET_EXCHANGE_CLIENT_PLUGIN','disposeWithMe','forEach','UNIVER_SHEET','_commandService','_configService'];_0x3c6c=function(){return _0x79e90e;};return _0x3c6c();}import{CommandType as _0x4b8fb8,UniverInstanceType as _0x5b58a3,Disposable as _0x16b32a,ICommandService as _0x4fcda2,DependentOn as _0x5c8fbb,Inject as _0x5649d6,Injector as _0x36d2bf,Plugin as _0x2d76a3,merge as _0x3f60dd,IConfigService as _0x2690f8}from'@univerjs/core';import{MenuItemType as _0x4a1abc,getMenuHiddenObservable as _0x242d33,RibbonStartGroup as _0x3e951a,IMenuManagerService as _0x278dfd}from'@univerjs/ui';import{WorkbookExportPermission as _0x4e4491}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x359648}from'@univerjs/sheets-ui';const p={'id':_0x51e65d(0x1d7),'type':_0x4b8fb8['OPERATION'],'handler':async _0x224910=>{const _0x16859e=_0x51e65d,_0x54cca5=_0x224910['get'](_0x2bf989);return new URLSearchParams(location['search'])[_0x16859e(0x1a8)](_0x16859e(0x1ba))?_0x54cca5['importXLSXToUnitId']():_0x54cca5[_0x16859e(0x1d5)](),!0x0;}},u={'id':_0x51e65d(0x1d6),'type':_0x4b8fb8[_0x51e65d(0x1d1)],'handler':async _0x54c711=>{const _0x58f39d=_0x51e65d,_0x511338=_0x54c711['get'](_0x2bf989);return new URLSearchParams(location[_0x58f39d(0x1bd)])['get'](_0x58f39d(0x1ba))?_0x511338[_0x58f39d(0x1a9)]():_0x511338[_0x58f39d(0x1bb)](),!0x0;}},H=_0x51e65d(0x1c4),l={},S='sheets-exchange-client.operation.exchange';function R(_0x9b5b84){const _0x2fe05c=_0x51e65d;return{'id':S,'type':_0x4a1abc[_0x2fe05c(0x1d8)],'icon':_0x2fe05c(0x1c0),'tooltip':_0x2fe05c(0x1c1),'hidden$':_0x242d33(_0x9b5b84,_0x5b58a3[_0x2fe05c(0x1b4)]),'disabled$':_0x359648(_0x9b5b84,{'workbookTypes':[_0x4e4491]})};}function w(){const _0x68835c=_0x51e65d;return{'id':p['id'],'type':_0x4a1abc[_0x68835c(0x1cf)],'title':_0x68835c(0x1b8),'icon':_0x68835c(0x1ae)};}function _0x1cbf(_0x159ce9,_0x10dfb0){_0x159ce9=_0x159ce9-0x1a5;const _0x3c6c13=_0x3c6c();let _0x1cbf82=_0x3c6c13[_0x159ce9];return _0x1cbf82;}function D(){const _0x251a45=_0x51e65d;return{'id':u['id'],'type':_0x4a1abc[_0x251a45(0x1cf)],'title':_0x251a45(0x1c9),'icon':_0x251a45(0x1ac)};}const F={[_0x3e951a[_0x51e65d(0x1be)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x51e65d(0x1d0)],A=(_0x498064,_0x50ad20,_0x428da1,_0x3898a5)=>{const _0x3a0fdd=_0x51e65d;for(var _0x4a4d72=_0x3898a5>0x1?void 0x0:_0x3898a5?G(_0x50ad20,_0x428da1):_0x50ad20,_0x575578=_0x498064[_0x3a0fdd(0x1c2)]-0x1,_0x3ace9c;_0x575578>=0x0;_0x575578--)(_0x3ace9c=_0x498064[_0x575578])&&(_0x4a4d72=_0x3ace9c(_0x4a4d72)||_0x4a4d72);return _0x4a4d72;},d=(_0x21533d,_0x1d0e9f)=>(_0x5b9f82,_0xeb9192)=>_0x1d0e9f(_0x5b9f82,_0xeb9192,_0x21533d);let c=class extends _0x16b32a{constructor(_0x28b193,_0x3ae9be){const _0x55bfd9=_0x51e65d;super(),this[_0x55bfd9(0x1b5)]=_0x28b193,this[_0x55bfd9(0x1d4)]=_0x3ae9be,this[_0x55bfd9(0x1b9)](),this[_0x55bfd9(0x1a7)]();}[_0x51e65d(0x1b9)](){[p,u]['forEach'](_0x203865=>{const _0x1d33c=_0x1cbf;this[_0x1d33c(0x1b2)](this[_0x1d33c(0x1b5)][_0x1d33c(0x1b0)](_0x203865));});}[_0x51e65d(0x1a7)](){const _0x392214=_0x51e65d;this[_0x392214(0x1d4)][_0x392214(0x1aa)](F);}};c=A([d(0x0,_0x4fcda2),d(0x1,_0x278dfd)],c);var j=Object[_0x51e65d(0x1bc)],B=Object[_0x51e65d(0x1d0)],$=(_0x42383a,_0x1f477b,_0x2739a7)=>_0x1f477b in _0x42383a?j(_0x42383a,_0x1f477b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2739a7}):_0x42383a[_0x1f477b]=_0x2739a7,V=(_0x245fa0,_0x31c857,_0x1047ed,_0x58941b)=>{const _0x464d70=_0x51e65d;for(var _0x590192=_0x58941b>0x1?void 0x0:_0x58941b?B(_0x31c857,_0x1047ed):_0x31c857,_0x427a4b=_0x245fa0[_0x464d70(0x1c2)]-0x1,_0x2b14ff;_0x427a4b>=0x0;_0x427a4b--)(_0x2b14ff=_0x245fa0[_0x427a4b])&&(_0x590192=_0x2b14ff(_0x590192)||_0x590192);return _0x590192;},_=(_0x33f3e4,_0x18ea02)=>(_0x294473,_0x480e36)=>_0x18ea02(_0x294473,_0x480e36,_0x33f3e4),I=(_0x34db02,_0x257423,_0x519110)=>$(_0x34db02,typeof _0x257423!=_0x51e65d(0x1cc)?_0x257423+'':_0x257423,_0x519110);const W=_0x51e65d(0x1b1);let s=class extends _0x2d76a3{constructor(_0x48c69a=l,_0x223e81,_0x21fdc7){const _0x1c7612=_0x51e65d;super(),this[_0x1c7612(0x1cb)]=_0x48c69a,this[_0x1c7612(0x1ce)]=_0x223e81,this[_0x1c7612(0x1b6)]=_0x21fdc7;const {menu:_0x266a03,..._0x58cfb1}=_0x3f60dd({},l,this[_0x1c7612(0x1cb)]);_0x266a03&&this[_0x1c7612(0x1b6)][_0x1c7612(0x1d3)](_0x1c7612(0x1d9),_0x266a03,{'merge':!0x0}),this[_0x1c7612(0x1b6)]['setConfig'](H,_0x58cfb1);}[_0x51e65d(0x1ad)](){const _0x522350=_0x51e65d;[[c]][_0x522350(0x1b3)](_0x4eb077=>this[_0x522350(0x1ce)][_0x522350(0x1a5)](_0x4eb077));}[_0x51e65d(0x1d2)](){const _0x14109b=_0x51e65d;this[_0x14109b(0x1ce)][_0x14109b(0x1a8)](c);}};I(s,_0x51e65d(0x1b7),W),I(s,_0x51e65d(0x1af),_0x5b58a3[_0x51e65d(0x1b4)]),s=V([_0x5c8fbb(_0x2ad91b),_(0x1,_0x5649d6(_0x36d2bf)),_(0x2,_0x2690f8)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x41e3ba=_0x1dad;(function(_0x1106e4,_0x3fd1a8){const _0x227909=_0x1dad,_0x59019d=_0x1106e4();while(!![]){try{const _0x42e845=parseInt(_0x227909(0x1e2))/0x1*(parseInt(_0x227909(0x1e6))/0x2)+-parseInt(_0x227909(0x1ee))/0x3+-parseInt(_0x227909(0x1eb))/0x4+parseInt(_0x227909(0x1f0))/0x5+-parseInt(_0x227909(0x1fb))/0x6*(-parseInt(_0x227909(0x1f4))/0x7)+parseInt(_0x227909(0x1d6))/0x8*(-parseInt(_0x227909(0x1e3))/0x9)+parseInt(_0x227909(0x1dc))/0xa;if(_0x42e845===_0x3fd1a8)break;else _0x59019d['push'](_0x59019d['shift']());}catch(_0x631d22){_0x59019d['push'](_0x59019d['shift']());}}}(_0xfe48,0x8e54e));import{IExchangeOperateService as _0x1c34e8,UniverExchangeClientPlugin as _0x265792}from'@univerjs-pro/exchange-client';import{CommandType as _0x41eb2e,UniverInstanceType as _0x1f527e,Disposable as _0x2d971c,ICommandService as _0x1728d1,DependentOn as _0x22647f,Inject as _0x53b43c,Injector as _0x52b5e7,IConfigService as _0x3e3500,Plugin as _0x1ebffd,merge as _0x6bc6c9}from'@univerjs/core';function _0x1dad(_0x3617be,_0x269040){_0x3617be=_0x3617be-0x1d6;const _0xfe4808=_0xfe48();let _0x1dadda=_0xfe4808[_0x3617be];return _0x1dadda;}import{MenuItemType as _0x291293,getMenuHiddenObservable as _0x4a3cf1,RibbonStartGroup as _0x202143,IMenuManagerService as _0x4cd612}from'@univerjs/ui';import{WorkbookExportPermission as _0x579be6}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x4842cd}from'@univerjs/sheets-ui';const p={'id':_0x41e3ba(0x1fa),'type':_0x41eb2e[_0x41e3ba(0x1db)],'handler':async _0x3f3729=>{const _0x540663=_0x41e3ba,_0x3300a2=_0x3f3729[_0x540663(0x1ef)](_0x1c34e8);return new URLSearchParams(location[_0x540663(0x1f2)])[_0x540663(0x1ef)](_0x540663(0x1dd))?_0x3300a2['importXLSXToUnitId']():_0x3300a2[_0x540663(0x1d8)](),!0x0;}},u={'id':_0x41e3ba(0x1e0),'type':_0x41eb2e[_0x41e3ba(0x1db)],'handler':async _0x83f8f9=>{const _0x4c6138=_0x41e3ba,_0x23846c=_0x83f8f9['get'](_0x1c34e8);return new URLSearchParams(location[_0x4c6138(0x1f2)])[_0x4c6138(0x1ef)](_0x4c6138(0x1dd))?_0x23846c['exportXLSXByUnitId']():_0x23846c[_0x4c6138(0x1f8)](),!0x0;}},H=_0x41e3ba(0x1fe),l={},S=_0x41e3ba(0x1d9);function R(_0x48a2b1){const _0x838a47=_0x41e3ba;return{'id':S,'type':_0x291293[_0x838a47(0x1e5)],'icon':_0x838a47(0x200),'tooltip':'exchange.file','hidden$':_0x4a3cf1(_0x48a2b1,_0x1f527e['UNIVER_SHEET']),'disabled$':_0x4842cd(_0x48a2b1,{'workbookTypes':[_0x579be6]})};}function w(){const _0x123223=_0x41e3ba;return{'id':p['id'],'type':_0x291293[_0x123223(0x1e4)],'title':_0x123223(0x1da),'icon':'FolderIcon'};}function D(){const _0x394ae6=_0x41e3ba;return{'id':u['id'],'type':_0x291293[_0x394ae6(0x1e4)],'title':_0x394ae6(0x1f5),'icon':_0x394ae6(0x1fc)};}const F={[_0x202143['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x41e3ba(0x201)],A=(_0x277769,_0x3f6a1e,_0x355e52,_0x5935c7)=>{const _0x16115d=_0x41e3ba;for(var _0x46267a=_0x5935c7>0x1?void 0x0:_0x5935c7?G(_0x3f6a1e,_0x355e52):_0x3f6a1e,_0x8ad94=_0x277769[_0x16115d(0x1e8)]-0x1,_0x4196dd;_0x8ad94>=0x0;_0x8ad94--)(_0x4196dd=_0x277769[_0x8ad94])&&(_0x46267a=_0x4196dd(_0x46267a)||_0x46267a);return _0x46267a;},d=(_0x35f6cb,_0x5cdafb)=>(_0x148ced,_0x4f1111)=>_0x5cdafb(_0x148ced,_0x4f1111,_0x35f6cb);let c=class extends _0x2d971c{constructor(_0x34df6e,_0x29ba58){const _0x27bcab=_0x41e3ba;super(),this['_commandService']=_0x34df6e,this['_menuManagerService']=_0x29ba58,this['_initCommands'](),this[_0x27bcab(0x202)]();}[_0x41e3ba(0x1de)](){const _0x507f18=_0x41e3ba;[p,u][_0x507f18(0x1e9)](_0x49491f=>{const _0x448118=_0x507f18;this[_0x448118(0x1d7)](this['_commandService'][_0x448118(0x1e1)](_0x49491f));});}[_0x41e3ba(0x202)](){const _0xdd139c=_0x41e3ba;this[_0xdd139c(0x203)]['mergeMenu'](F);}};c=A([d(0x0,_0x1728d1),d(0x1,_0x4cd612)],c);var j=Object['defineProperty'],B=Object[_0x41e3ba(0x201)],$=(_0x2e1735,_0x66ba31,_0x17f1aa)=>_0x66ba31 in _0x2e1735?j(_0x2e1735,_0x66ba31,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x17f1aa}):_0x2e1735[_0x66ba31]=_0x17f1aa,V=(_0x51f2a2,_0x1b66af,_0x133404,_0x1227f0)=>{const _0x4c2801=_0x41e3ba;for(var _0x5ca710=_0x1227f0>0x1?void 0x0:_0x1227f0?B(_0x1b66af,_0x133404):_0x1b66af,_0x59eccf=_0x51f2a2[_0x4c2801(0x1e8)]-0x1,_0x12dd72;_0x59eccf>=0x0;_0x59eccf--)(_0x12dd72=_0x51f2a2[_0x59eccf])&&(_0x5ca710=_0x12dd72(_0x5ca710)||_0x5ca710);return _0x5ca710;},_=(_0x2750a8,_0x1b718d)=>(_0x22680e,_0x11e6ac)=>_0x1b718d(_0x22680e,_0x11e6ac,_0x2750a8),I=(_0x1cd5b4,_0x92cc8,_0x8e6018)=>$(_0x1cd5b4,typeof _0x92cc8!=_0x41e3ba(0x1df)?_0x92cc8+'':_0x92cc8,_0x8e6018);const W=_0x41e3ba(0x1f1);let s=class extends _0x1ebffd{constructor(_0x390495=l,_0xadc7ba,_0x5935d6){const _0x279e28=_0x41e3ba;super(),this[_0x279e28(0x1f3)]=_0x390495,this[_0x279e28(0x1ea)]=_0xadc7ba,this[_0x279e28(0x1ec)]=_0x5935d6;const {menu:_0x27d884,..._0xc4ced6}=_0x6bc6c9({},l,this[_0x279e28(0x1f3)]);_0x27d884&&this[_0x279e28(0x1ec)][_0x279e28(0x1f6)](_0x279e28(0x1e7),_0x27d884,{'merge':!0x0}),this['_configService'][_0x279e28(0x1f6)](H,_0xc4ced6);}[_0x41e3ba(0x1f9)](){const _0x5bada9=_0x41e3ba;[[c]][_0x5bada9(0x1e9)](_0x270905=>this[_0x5bada9(0x1ea)]['add'](_0x270905));}[_0x41e3ba(0x1f7)](){const _0x3e630e=_0x41e3ba;this['_injector'][_0x3e630e(0x1ef)](c);}};function _0xfe48(){const _0x323ff9=['exchange-client.operation.import-xlsx','1528932qNASgj','ExportIcon','UNIVER_SHEET','sheets-exchange-client.config','type','DirectExportIcon','getOwnPropertyDescriptor','_initMenus','_menuManagerService','10088hrfFee','disposeWithMe','importXLSXToSnapshot','sheets-exchange-client.operation.exchange','exchange.upload','OPERATION','10084510hYaSoJ','unit','_initCommands','symbol','exchange-client.operation.export-xlsx','registerCommand','2Rhftck','2484JnWIkk','BUTTON','SUBITEMS','706506MwoUBS','menu','length','forEach','_injector','3962436hIZonV','_configService','pluginName','2004747MsIWcT','get','3100525KjFLwj','SHEET_EXCHANGE_CLIENT_PLUGIN','search','_config','7UPXNjI','exchange.download','setConfig','onReady','exportXLSXBySnapshot','onStarting'];_0xfe48=function(){return _0x323ff9;};return _0xfe48();}I(s,_0x41e3ba(0x1ed),W),I(s,_0x41e3ba(0x1ff),_0x1f527e[_0x41e3ba(0x1fd)]),s=V([_0x22647f(_0x265792),_(0x1,_0x53b43c(_0x52b5e7)),_(0x2,_0x3e3500)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x51e65d=_0x1cbf;(function(_0x44e1e7,_0x554870){const _0x4c5812=_0x1cbf,_0x23dfdf=_0x44e1e7();while(!![]){try{const _0x5256d5=-parseInt(_0x4c5812(0x1c3))/0x1+parseInt(_0x4c5812(0x1ca))/0x2+parseInt(_0x4c5812(0x1a6))/0x3*(parseInt(_0x4c5812(0x1c6))/0x4)+parseInt(_0x4c5812(0x1bf))/0x5*(parseInt(_0x4c5812(0x1c5))/0x6)+-parseInt(_0x4c5812(0x1c7))/0x7*(parseInt(_0x4c5812(0x1ab))/0x8)+parseInt(_0x4c5812(0x1cd))/0x9+-parseInt(_0x4c5812(0x1c8))/0xa;if(_0x5256d5===_0x554870)break;else _0x23dfdf['push'](_0x23dfdf['shift']());}catch(_0xb7da06){_0x23dfdf['push'](_0x23dfdf['shift']());}}}(_0x3c6c,0x54a79));import{IExchangeOperateService as _0x2bf989,UniverExchangeClientPlugin as _0x2ad91b}from'@univerjs-pro/exchange-client';function _0x3c6c(){const _0x79e90e=['pluginName','exchange.upload','_initCommands','unit','exportXLSXBySnapshot','defineProperty','search','OTHERS','2355455nggsxg','DirectExportIcon','exchange.file','length','289140ZPfbGX','sheets-exchange-client.config','6druWKY','148MyzeQU','992271gOngsT','5512100IsgpRL','exchange.download','538152fCuvaS','_config','symbol','3675861VtxrrI','_injector','BUTTON','getOwnPropertyDescriptor','OPERATION','onReady','setConfig','_menuManagerService','importXLSXToSnapshot','exchange-client.operation.export-xlsx','exchange-client.operation.import-xlsx','SUBITEMS','menu','add','37602xLuGKg','_initMenus','get','exportXLSXByUnitId','mergeMenu','24wOxYjg','ExportIcon','onStarting','FolderIcon','type','registerCommand','SHEET_EXCHANGE_CLIENT_PLUGIN','disposeWithMe','forEach','UNIVER_SHEET','_commandService','_configService'];_0x3c6c=function(){return _0x79e90e;};return _0x3c6c();}import{CommandType as _0x4b8fb8,UniverInstanceType as _0x5b58a3,Disposable as _0x16b32a,ICommandService as _0x4fcda2,DependentOn as _0x5c8fbb,Inject as _0x5649d6,Injector as _0x36d2bf,Plugin as _0x2d76a3,merge as _0x3f60dd,IConfigService as _0x2690f8}from'@univerjs/core';import{MenuItemType as _0x4a1abc,getMenuHiddenObservable as _0x242d33,RibbonStartGroup as _0x3e951a,IMenuManagerService as _0x278dfd}from'@univerjs/ui';import{WorkbookExportPermission as _0x4e4491}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x359648}from'@univerjs/sheets-ui';const p={'id':_0x51e65d(0x1d7),'type':_0x4b8fb8['OPERATION'],'handler':async _0x224910=>{const _0x16859e=_0x51e65d,_0x54cca5=_0x224910['get'](_0x2bf989);return new URLSearchParams(location['search'])[_0x16859e(0x1a8)](_0x16859e(0x1ba))?_0x54cca5['importXLSXToUnitId']():_0x54cca5[_0x16859e(0x1d5)](),!0x0;}},u={'id':_0x51e65d(0x1d6),'type':_0x4b8fb8[_0x51e65d(0x1d1)],'handler':async _0x54c711=>{const _0x58f39d=_0x51e65d,_0x511338=_0x54c711['get'](_0x2bf989);return new URLSearchParams(location[_0x58f39d(0x1bd)])['get'](_0x58f39d(0x1ba))?_0x511338[_0x58f39d(0x1a9)]():_0x511338[_0x58f39d(0x1bb)](),!0x0;}},H=_0x51e65d(0x1c4),l={},S='sheets-exchange-client.operation.exchange';function R(_0x9b5b84){const _0x2fe05c=_0x51e65d;return{'id':S,'type':_0x4a1abc[_0x2fe05c(0x1d8)],'icon':_0x2fe05c(0x1c0),'tooltip':_0x2fe05c(0x1c1),'hidden$':_0x242d33(_0x9b5b84,_0x5b58a3[_0x2fe05c(0x1b4)]),'disabled$':_0x359648(_0x9b5b84,{'workbookTypes':[_0x4e4491]})};}function w(){const _0x68835c=_0x51e65d;return{'id':p['id'],'type':_0x4a1abc[_0x68835c(0x1cf)],'title':_0x68835c(0x1b8),'icon':_0x68835c(0x1ae)};}function _0x1cbf(_0x159ce9,_0x10dfb0){_0x159ce9=_0x159ce9-0x1a5;const _0x3c6c13=_0x3c6c();let _0x1cbf82=_0x3c6c13[_0x159ce9];return _0x1cbf82;}function D(){const _0x251a45=_0x51e65d;return{'id':u['id'],'type':_0x4a1abc[_0x251a45(0x1cf)],'title':_0x251a45(0x1c9),'icon':_0x251a45(0x1ac)};}const F={[_0x3e951a[_0x51e65d(0x1be)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x51e65d(0x1d0)],A=(_0x498064,_0x50ad20,_0x428da1,_0x3898a5)=>{const _0x3a0fdd=_0x51e65d;for(var _0x4a4d72=_0x3898a5>0x1?void 0x0:_0x3898a5?G(_0x50ad20,_0x428da1):_0x50ad20,_0x575578=_0x498064[_0x3a0fdd(0x1c2)]-0x1,_0x3ace9c;_0x575578>=0x0;_0x575578--)(_0x3ace9c=_0x498064[_0x575578])&&(_0x4a4d72=_0x3ace9c(_0x4a4d72)||_0x4a4d72);return _0x4a4d72;},d=(_0x21533d,_0x1d0e9f)=>(_0x5b9f82,_0xeb9192)=>_0x1d0e9f(_0x5b9f82,_0xeb9192,_0x21533d);let c=class extends _0x16b32a{constructor(_0x28b193,_0x3ae9be){const _0x55bfd9=_0x51e65d;super(),this[_0x55bfd9(0x1b5)]=_0x28b193,this[_0x55bfd9(0x1d4)]=_0x3ae9be,this[_0x55bfd9(0x1b9)](),this[_0x55bfd9(0x1a7)]();}[_0x51e65d(0x1b9)](){[p,u]['forEach'](_0x203865=>{const _0x1d33c=_0x1cbf;this[_0x1d33c(0x1b2)](this[_0x1d33c(0x1b5)][_0x1d33c(0x1b0)](_0x203865));});}[_0x51e65d(0x1a7)](){const _0x392214=_0x51e65d;this[_0x392214(0x1d4)][_0x392214(0x1aa)](F);}};c=A([d(0x0,_0x4fcda2),d(0x1,_0x278dfd)],c);var j=Object[_0x51e65d(0x1bc)],B=Object[_0x51e65d(0x1d0)],$=(_0x42383a,_0x1f477b,_0x2739a7)=>_0x1f477b in _0x42383a?j(_0x42383a,_0x1f477b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2739a7}):_0x42383a[_0x1f477b]=_0x2739a7,V=(_0x245fa0,_0x31c857,_0x1047ed,_0x58941b)=>{const _0x464d70=_0x51e65d;for(var _0x590192=_0x58941b>0x1?void 0x0:_0x58941b?B(_0x31c857,_0x1047ed):_0x31c857,_0x427a4b=_0x245fa0[_0x464d70(0x1c2)]-0x1,_0x2b14ff;_0x427a4b>=0x0;_0x427a4b--)(_0x2b14ff=_0x245fa0[_0x427a4b])&&(_0x590192=_0x2b14ff(_0x590192)||_0x590192);return _0x590192;},_=(_0x33f3e4,_0x18ea02)=>(_0x294473,_0x480e36)=>_0x18ea02(_0x294473,_0x480e36,_0x33f3e4),I=(_0x34db02,_0x257423,_0x519110)=>$(_0x34db02,typeof _0x257423!=_0x51e65d(0x1cc)?_0x257423+'':_0x257423,_0x519110);const W=_0x51e65d(0x1b1);let s=class extends _0x2d76a3{constructor(_0x48c69a=l,_0x223e81,_0x21fdc7){const _0x1c7612=_0x51e65d;super(),this[_0x1c7612(0x1cb)]=_0x48c69a,this[_0x1c7612(0x1ce)]=_0x223e81,this[_0x1c7612(0x1b6)]=_0x21fdc7;const {menu:_0x266a03,..._0x58cfb1}=_0x3f60dd({},l,this[_0x1c7612(0x1cb)]);_0x266a03&&this[_0x1c7612(0x1b6)][_0x1c7612(0x1d3)](_0x1c7612(0x1d9),_0x266a03,{'merge':!0x0}),this[_0x1c7612(0x1b6)]['setConfig'](H,_0x58cfb1);}[_0x51e65d(0x1ad)](){const _0x522350=_0x51e65d;[[c]][_0x522350(0x1b3)](_0x4eb077=>this[_0x522350(0x1ce)][_0x522350(0x1a5)](_0x4eb077));}[_0x51e65d(0x1d2)](){const _0x14109b=_0x51e65d;this[_0x14109b(0x1ce)][_0x14109b(0x1a8)](c);}};I(s,_0x51e65d(0x1b7),W),I(s,_0x51e65d(0x1af),_0x5b58a3[_0x51e65d(0x1b4)]),s=V([_0x5c8fbb(_0x2ad91b),_(0x1,_0x5649d6(_0x36d2bf)),_(0x2,_0x2690f8)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x2c78(_0x354c02,_0x224d00){_0x354c02=_0x354c02-0x13d;const _0x3b97b5=_0x3b97();let _0x2c7825=_0x3b97b5[_0x354c02];return _0x2c7825;}function _0x3b97(){const _0x3bad07=['UniverUi','@univerjs/sheets','getOwnPropertyDescriptor','amd','875708yQXXQJ','UniverProSheetsExchangeClient','DependentOn','unit','get','29721xqqsJm','UniverSheetsExchangeClientPlugin','@univerjs-pro/exchange-client','_injector','UniverExchangeClientPlugin','FolderIcon','Plugin','Inject','4023153jiFdLw','153080CoPspw','_config','sheets-exchange-client.operation.exchange','defineProperty','exchange.upload','505099FdTDAz','SUBITEMS','ImportXLSXOperation','@univerjs/sheets-ui','type','sheets-exchange-client.config','exchange.file','_initCommands','_initMenus','CommandType','IExchangeOperateService','1139560jDGlVj','exports','RibbonStartGroup','_menuManagerService','merge','UNIVER_SHEET','onReady','mergeMenu','onStarting','WorkbookExportPermission','IConfigService','registerCommand','setConfig','OTHERS','UniverInstanceType','MenuItemType','Disposable','UniverSheets','BUTTON','413712eQDcEi','_configService','forEach','Module','object','exchange.download','length','function','@univerjs/ui','IMenuManagerService','symbol','search','6oTpzJV','exportXLSXByUnitId','ExportXLSXOperation','2SSRRRt','UniverProExchangeClient'];_0x3b97=function(){return _0x3bad07;};return _0x3b97();}(function(_0x2f1beb,_0x5b249a){const _0x7b7973=_0x2c78,_0x5b75b5=_0x2f1beb();while(!![]){try{const _0x154c9f=parseInt(_0x7b7973(0x16d))/0x1+-parseInt(_0x7b7973(0x159))/0x2*(parseInt(_0x7b7973(0x164))/0x3)+-parseInt(_0x7b7973(0x15f))/0x4+-parseInt(_0x7b7973(0x17d))/0x5*(parseInt(_0x7b7973(0x156))/0x6)+-parseInt(_0x7b7973(0x172))/0x7+parseInt(_0x7b7973(0x14a))/0x8+parseInt(_0x7b7973(0x16c))/0x9;if(_0x154c9f===_0x5b249a)break;else _0x5b75b5['push'](_0x5b75b5['shift']());}catch(_0x5d3b67){_0x5b75b5['push'](_0x5b75b5['shift']());}}}(_0x3b97,0x1e01c),function(_0x471ea9,_0xcca2c1){const _0x62e449=_0x2c78;typeof exports==_0x62e449(0x14e)&&typeof module<'u'?_0xcca2c1(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x62e449(0x151)&&define[_0x62e449(0x15e)]?define([_0x62e449(0x17e),_0x62e449(0x166),'@univerjs/core',_0x62e449(0x152),_0x62e449(0x15c),_0x62e449(0x175)],_0xcca2c1):(_0x471ea9=typeof globalThis<'u'?globalThis:_0x471ea9||self,_0xcca2c1(_0x471ea9[_0x62e449(0x160)]={},_0x471ea9[_0x62e449(0x15a)],_0x471ea9['UniverCore'],_0x471ea9[_0x62e449(0x15b)],_0x471ea9[_0x62e449(0x148)],_0x471ea9['UniverSheetsUi']));}(this,function(_0x10a323,_0x27d58a,_0xc474be,_0x41e92f,_0x39137f,_0x2ccd0b){'use strict';const _0xf9c41e=_0x2c78;const _0x344ad3={'id':'exchange-client.operation.import-xlsx','type':_0xc474be[_0xf9c41e(0x17b)]['OPERATION'],'handler':async _0x2e43e0=>{const _0x76fbaa=_0xf9c41e,_0x237682=_0x2e43e0[_0x76fbaa(0x163)](_0x27d58a[_0x76fbaa(0x17c)]);return new URLSearchParams(location['search'])[_0x76fbaa(0x163)](_0x76fbaa(0x162))?_0x237682['importXLSXToUnitId']():_0x237682['importXLSXToSnapshot'](),!0x0;}},_0x1243fb={'id':'exchange-client.operation.export-xlsx','type':_0xc474be[_0xf9c41e(0x17b)]['OPERATION'],'handler':async _0x2f91b7=>{const _0x178c0f=_0xf9c41e,_0x334b41=_0x2f91b7[_0x178c0f(0x163)](_0x27d58a[_0x178c0f(0x17c)]);return new URLSearchParams(location[_0x178c0f(0x155)])['get'](_0x178c0f(0x162))?_0x334b41[_0x178c0f(0x157)]():_0x334b41['exportXLSXBySnapshot'](),!0x0;}},_0x217f44=_0xf9c41e(0x177),_0x5c09b3={},_0xb1f7d0=_0xf9c41e(0x16f);function _0x739c55(_0x33d7c3){const _0x36ce84=_0xf9c41e;return{'id':_0xb1f7d0,'type':_0x41e92f['MenuItemType'][_0x36ce84(0x173)],'icon':'DirectExportIcon','tooltip':_0x36ce84(0x178),'hidden$':_0x41e92f['getMenuHiddenObservable'](_0x33d7c3,_0xc474be['UniverInstanceType'][_0x36ce84(0x182)]),'disabled$':_0x2ccd0b['getCurrentRangeDisable$'](_0x33d7c3,{'workbookTypes':[_0x39137f[_0x36ce84(0x140)]]})};}function _0x795919(){const _0x57a779=_0xf9c41e;return{'id':_0x344ad3['id'],'type':_0x41e92f['MenuItemType'][_0x57a779(0x149)],'title':_0x57a779(0x171),'icon':_0x57a779(0x169)};}function _0x3e6c71(){const _0x2849a8=_0xf9c41e;return{'id':_0x1243fb['id'],'type':_0x41e92f[_0x2849a8(0x146)][_0x2849a8(0x149)],'title':_0x2849a8(0x14f),'icon':'ExportIcon'};}const _0x440608={[_0x41e92f[_0xf9c41e(0x17f)][_0xf9c41e(0x144)]]:{[_0xb1f7d0]:{'order':0.3,'menuItemFactory':_0x739c55,[_0x344ad3['id']]:{'order':0x0,'menuItemFactory':_0x795919},[_0x1243fb['id']]:{'order':0x1,'menuItemFactory':_0x3e6c71}}}};var _0x1aaf95=Object[_0xf9c41e(0x15d)],_0x5a96a8=(_0x7894aa,_0x4f25be,_0x253934,_0x36a93a)=>{const _0x4a9fd3=_0xf9c41e;for(var _0x133abf=_0x36a93a>0x1?void 0x0:_0x36a93a?_0x1aaf95(_0x4f25be,_0x253934):_0x4f25be,_0x41d121=_0x7894aa[_0x4a9fd3(0x150)]-0x1,_0x453b06;_0x41d121>=0x0;_0x41d121--)(_0x453b06=_0x7894aa[_0x41d121])&&(_0x133abf=_0x453b06(_0x133abf)||_0x133abf);return _0x133abf;},_0x5b0b3b=(_0x1fad64,_0x441b61)=>(_0x336ae7,_0x433c7e)=>_0x441b61(_0x336ae7,_0x433c7e,_0x1fad64);let _0x313f6d=class extends _0xc474be[_0xf9c41e(0x147)]{constructor(_0xb2856d,_0x369b35){const _0x24ea0a=_0xf9c41e;super(),this['_commandService']=_0xb2856d,this[_0x24ea0a(0x180)]=_0x369b35,this[_0x24ea0a(0x179)](),this[_0x24ea0a(0x17a)]();}[_0xf9c41e(0x179)](){const _0xf15c99=_0xf9c41e;[_0x344ad3,_0x1243fb][_0xf15c99(0x14c)](_0x2b2a37=>{const _0x2c3b02=_0xf15c99;this['disposeWithMe'](this['_commandService'][_0x2c3b02(0x142)](_0x2b2a37));});}[_0xf9c41e(0x17a)](){const _0x2704d3=_0xf9c41e;this['_menuManagerService'][_0x2704d3(0x13e)](_0x440608);}};_0x313f6d=_0x5a96a8([_0x5b0b3b(0x0,_0xc474be['ICommandService']),_0x5b0b3b(0x1,_0x41e92f[_0xf9c41e(0x153)])],_0x313f6d);var _0x3e9651=Object[_0xf9c41e(0x170)],_0x367d26=Object[_0xf9c41e(0x15d)],_0x1016c9=(_0x287ace,_0x17ed37,_0x363f0d)=>_0x17ed37 in _0x287ace?_0x3e9651(_0x287ace,_0x17ed37,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x363f0d}):_0x287ace[_0x17ed37]=_0x363f0d,_0x1811ed=(_0x129177,_0x4217f9,_0x35b044,_0x1dffd6)=>{const _0x26576a=_0xf9c41e;for(var _0x11f9a3=_0x1dffd6>0x1?void 0x0:_0x1dffd6?_0x367d26(_0x4217f9,_0x35b044):_0x4217f9,_0x311019=_0x129177[_0x26576a(0x150)]-0x1,_0xbd69fa;_0x311019>=0x0;_0x311019--)(_0xbd69fa=_0x129177[_0x311019])&&(_0x11f9a3=_0xbd69fa(_0x11f9a3)||_0x11f9a3);return _0x11f9a3;},_0x5c6e16=(_0x220a14,_0x57c1f8)=>(_0x3efbba,_0x287cc5)=>_0x57c1f8(_0x3efbba,_0x287cc5,_0x220a14),_0x2e0f65=(_0x2a2f4e,_0x25b01,_0xeb5c49)=>_0x1016c9(_0x2a2f4e,typeof _0x25b01!=_0xf9c41e(0x154)?_0x25b01+'':_0x25b01,_0xeb5c49);const _0x1ace24='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x10a323[_0xf9c41e(0x165)]=class extends _0xc474be[_0xf9c41e(0x16a)]{constructor(_0x12b6b0=_0x5c09b3,_0xf549bb,_0x2f0400){const _0xd21df5=_0xf9c41e;super(),this[_0xd21df5(0x16e)]=_0x12b6b0,this['_injector']=_0xf549bb,this[_0xd21df5(0x14b)]=_0x2f0400;const {menu:_0x52934e,..._0x2c6ddd}=_0xc474be[_0xd21df5(0x181)]({},_0x5c09b3,this['_config']);_0x52934e&&this['_configService']['setConfig']('menu',_0x52934e,{'merge':!0x0}),this[_0xd21df5(0x14b)][_0xd21df5(0x143)](_0x217f44,_0x2c6ddd);}[_0xf9c41e(0x13f)](){const _0x4ad040=_0xf9c41e;[[_0x313f6d]][_0x4ad040(0x14c)](_0x6b9463=>this[_0x4ad040(0x167)]['add'](_0x6b9463));}[_0xf9c41e(0x13d)](){const _0x237985=_0xf9c41e;this['_injector'][_0x237985(0x163)](_0x313f6d);}},_0x2e0f65(_0x10a323[_0xf9c41e(0x165)],'pluginName',_0x1ace24),_0x2e0f65(_0x10a323['UniverSheetsExchangeClientPlugin'],_0xf9c41e(0x176),_0xc474be[_0xf9c41e(0x145)]['UNIVER_SHEET']),_0x10a323[_0xf9c41e(0x165)]=_0x1811ed([_0xc474be[_0xf9c41e(0x161)](_0x27d58a[_0xf9c41e(0x168)]),_0x5c6e16(0x1,_0xc474be[_0xf9c41e(0x16b)](_0xc474be['Injector'])),_0x5c6e16(0x2,_0xc474be[_0xf9c41e(0x141)])],_0x10a323['UniverSheetsExchangeClientPlugin']),_0x10a323[_0xf9c41e(0x158)]=_0x1243fb,_0x10a323[_0xf9c41e(0x174)]=_0x344ad3,Object['defineProperty'](_0x10a323,Symbol['toStringTag'],{'value':_0xf9c41e(0x14d)});}));
1
+ function _0x3e38(_0xf6acaa,_0x5d225b){_0xf6acaa=_0xf6acaa-0xb7;const _0x38fe4a=_0x38fe();let _0x3e38da=_0x38fe4a[_0xf6acaa];return _0x3e38da;}function _0x38fe(){const _0x25eeb4=['UniverInstanceType','Inject','ExportIcon','_initMenus','UniverSheetsExchangeClientPlugin','menu','pluginName','_initCommands','mergeMenu','sheets-exchange-client.operation.exchange','MenuItemType','amd','10mONSEA','exchange-client.operation.import-xlsx','exchange.file','toStringTag','forEach','IExchangeOperateService','35hbVnwS','setConfig','_menuManagerService','symbol','_configService','get','ExportXLSXOperation','@univerjs/sheets-ui','exportXLSXBySnapshot','FolderIcon','registerCommand','BUTTON','unit','UniverUi','_injector','SHEET_EXCHANGE_CLIENT_PLUGIN','SUBITEMS','onStarting','getMenuHiddenObservable','exportXLSXByUnitId','ICommandService','3464124FtTBef','325980nGSttn','12993318jXKudE','length','@univerjs/ui','UniverProExchangeClient','Plugin','exchange.upload','OTHERS','UniverSheetsUi','importXLSXToSnapshot','627522khXGUg','UniverProSheetsExchangeClient','4546952SNgdDq','type','sheets-exchange-client.config','add','161769AnqXNr','defineProperty','2167193ruePaM','CommandType','Injector','WorkbookExportPermission','IConfigService','_config','OPERATION','@univerjs-pro/exchange-client','importXLSXToUnitId','_commandService','UniverCore','DirectExportIcon','merge','UniverExchangeClientPlugin','getCurrentRangeDisable$','@univerjs/sheets','IMenuManagerService','search','disposeWithMe'];_0x38fe=function(){return _0x25eeb4;};return _0x38fe();}(function(_0x49e6c3,_0x509623){const _0x47cf7c=_0x3e38,_0xfd1d21=_0x49e6c3();while(!![]){try{const _0xb4a53c=parseInt(_0x47cf7c(0xe7))/0x1+parseInt(_0x47cf7c(0xc1))/0x2*(-parseInt(_0x47cf7c(0xed))/0x3)+parseInt(_0x47cf7c(0xdd))/0x4*(-parseInt(_0x47cf7c(0xc7))/0x5)+-parseInt(_0x47cf7c(0xdc))/0x6+parseInt(_0x47cf7c(0xef))/0x7+-parseInt(_0x47cf7c(0xe9))/0x8+parseInt(_0x47cf7c(0xde))/0x9;if(_0xb4a53c===_0x509623)break;else _0xfd1d21['push'](_0xfd1d21['shift']());}catch(_0x578edd){_0xfd1d21['push'](_0xfd1d21['shift']());}}}(_0x38fe,0x6070c),function(_0x5781c5,_0x49b07c){const _0x2b110b=_0x3e38;typeof exports=='object'&&typeof module<'u'?_0x49b07c(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x2b110b(0xc0)]?define(['exports',_0x2b110b(0xf6),'@univerjs/core',_0x2b110b(0xe0),_0x2b110b(0xfe),_0x2b110b(0xce)],_0x49b07c):(_0x5781c5=typeof globalThis<'u'?globalThis:_0x5781c5||self,_0x49b07c(_0x5781c5[_0x2b110b(0xe8)]={},_0x5781c5[_0x2b110b(0xe1)],_0x5781c5[_0x2b110b(0xf9)],_0x5781c5[_0x2b110b(0xd4)],_0x5781c5['UniverSheets'],_0x5781c5[_0x2b110b(0xe5)]));}(this,function(_0x141f0d,_0x52a735,_0x51c9b0,_0x1db30f,_0x386c2b,_0x40b5aa){'use strict';const _0x1cd62c=_0x3e38;const _0x56a8ea={'id':_0x1cd62c(0xc2),'type':_0x51c9b0['CommandType'][_0x1cd62c(0xf5)],'handler':async _0x5fc510=>{const _0x1fe6aa=_0x1cd62c,_0x35fb81=_0x5fc510['get'](_0x52a735['IExchangeOperateService']);return new URLSearchParams(location[_0x1fe6aa(0x100)])[_0x1fe6aa(0xcc)](_0x1fe6aa(0xd3))?_0x35fb81[_0x1fe6aa(0xf7)]():_0x35fb81[_0x1fe6aa(0xe6)](),!0x0;}},_0x5a8621={'id':'exchange-client.operation.export-xlsx','type':_0x51c9b0[_0x1cd62c(0xf0)]['OPERATION'],'handler':async _0x5178eb=>{const _0x1b63cf=_0x1cd62c,_0x31665e=_0x5178eb[_0x1b63cf(0xcc)](_0x52a735[_0x1b63cf(0xc6)]);return new URLSearchParams(location['search'])['get'](_0x1b63cf(0xd3))?_0x31665e[_0x1b63cf(0xda)]():_0x31665e[_0x1b63cf(0xcf)](),!0x0;}},_0x545b96=_0x1cd62c(0xeb),_0x53a325={},_0xc87d34=_0x1cd62c(0xbe);function _0x241fa6(_0x2f4fad){const _0x1b6e55=_0x1cd62c;return{'id':_0xc87d34,'type':_0x1db30f['MenuItemType'][_0x1b6e55(0xd7)],'icon':_0x1b6e55(0xfa),'tooltip':_0x1b6e55(0xc3),'hidden$':_0x1db30f[_0x1b6e55(0xd9)](_0x2f4fad,_0x51c9b0[_0x1b6e55(0x102)]['UNIVER_SHEET']),'disabled$':_0x40b5aa[_0x1b6e55(0xfd)](_0x2f4fad,{'workbookTypes':[_0x386c2b[_0x1b6e55(0xf2)]]})};}function _0x434ae(){const _0x2fe079=_0x1cd62c;return{'id':_0x56a8ea['id'],'type':_0x1db30f[_0x2fe079(0xbf)]['BUTTON'],'title':_0x2fe079(0xe3),'icon':_0x2fe079(0xd0)};}function _0x867b0b(){const _0x4d5453=_0x1cd62c;return{'id':_0x5a8621['id'],'type':_0x1db30f['MenuItemType'][_0x4d5453(0xd2)],'title':'exchange.download','icon':_0x4d5453(0xb7)};}const _0x1104fb={[_0x1db30f['RibbonStartGroup'][_0x1cd62c(0xe4)]]:{[_0xc87d34]:{'order':0.3,'menuItemFactory':_0x241fa6,[_0x56a8ea['id']]:{'order':0x0,'menuItemFactory':_0x434ae},[_0x5a8621['id']]:{'order':0x1,'menuItemFactory':_0x867b0b}}}};var _0xf0d253=Object['getOwnPropertyDescriptor'],_0x51a5e2=(_0x56bcf3,_0xddc034,_0x576d74,_0x46ffa3)=>{const _0xb9f7fd=_0x1cd62c;for(var _0x340d6f=_0x46ffa3>0x1?void 0x0:_0x46ffa3?_0xf0d253(_0xddc034,_0x576d74):_0xddc034,_0x7c4a51=_0x56bcf3[_0xb9f7fd(0xdf)]-0x1,_0x2c6e3f;_0x7c4a51>=0x0;_0x7c4a51--)(_0x2c6e3f=_0x56bcf3[_0x7c4a51])&&(_0x340d6f=_0x2c6e3f(_0x340d6f)||_0x340d6f);return _0x340d6f;},_0x514f58=(_0x3e783d,_0x282798)=>(_0x2d30ca,_0x2ec761)=>_0x282798(_0x2d30ca,_0x2ec761,_0x3e783d);let _0x4aa93c=class extends _0x51c9b0['Disposable']{constructor(_0x345024,_0x261e14){const _0x5d8691=_0x1cd62c;super(),this[_0x5d8691(0xf8)]=_0x345024,this[_0x5d8691(0xc9)]=_0x261e14,this[_0x5d8691(0xbc)](),this['_initMenus']();}[_0x1cd62c(0xbc)](){const _0x262fd2=_0x1cd62c;[_0x56a8ea,_0x5a8621][_0x262fd2(0xc5)](_0x570370=>{const _0x4e29bd=_0x262fd2;this[_0x4e29bd(0x101)](this['_commandService'][_0x4e29bd(0xd1)](_0x570370));});}[_0x1cd62c(0xb8)](){const _0x57b9c3=_0x1cd62c;this['_menuManagerService'][_0x57b9c3(0xbd)](_0x1104fb);}};_0x4aa93c=_0x51a5e2([_0x514f58(0x0,_0x51c9b0[_0x1cd62c(0xdb)]),_0x514f58(0x1,_0x1db30f[_0x1cd62c(0xff)])],_0x4aa93c);var _0x122b96=Object[_0x1cd62c(0xee)],_0x25eef3=Object['getOwnPropertyDescriptor'],_0x314313=(_0x50a9f8,_0x13d973,_0x8ebdf7)=>_0x13d973 in _0x50a9f8?_0x122b96(_0x50a9f8,_0x13d973,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x8ebdf7}):_0x50a9f8[_0x13d973]=_0x8ebdf7,_0x3dfd87=(_0x377307,_0x4eef6e,_0x55fbd7,_0x683727)=>{const _0x4ac44e=_0x1cd62c;for(var _0x23f486=_0x683727>0x1?void 0x0:_0x683727?_0x25eef3(_0x4eef6e,_0x55fbd7):_0x4eef6e,_0x94887=_0x377307[_0x4ac44e(0xdf)]-0x1,_0x52abb3;_0x94887>=0x0;_0x94887--)(_0x52abb3=_0x377307[_0x94887])&&(_0x23f486=_0x52abb3(_0x23f486)||_0x23f486);return _0x23f486;},_0x3caa13=(_0x2ec65c,_0x2695b6)=>(_0x155257,_0x92d45e)=>_0x2695b6(_0x155257,_0x92d45e,_0x2ec65c),_0x58cb3e=(_0x532c19,_0x48b460,_0x558d46)=>_0x314313(_0x532c19,typeof _0x48b460!=_0x1cd62c(0xca)?_0x48b460+'':_0x48b460,_0x558d46);const _0x31a033=_0x1cd62c(0xd6);_0x141f0d['UniverSheetsExchangeClientPlugin']=class extends _0x51c9b0[_0x1cd62c(0xe2)]{constructor(_0x552dd7=_0x53a325,_0xbb7d69,_0x2417d2){const _0x53181a=_0x1cd62c;super(),this[_0x53181a(0xf4)]=_0x552dd7,this[_0x53181a(0xd5)]=_0xbb7d69,this['_configService']=_0x2417d2;const {menu:_0x14bb5,..._0xd80639}=_0x51c9b0[_0x53181a(0xfb)]({},_0x53a325,this[_0x53181a(0xf4)]);_0x14bb5&&this[_0x53181a(0xcb)][_0x53181a(0xc8)](_0x53181a(0xba),_0x14bb5,{'merge':!0x0}),this['_configService'][_0x53181a(0xc8)](_0x545b96,_0xd80639);}[_0x1cd62c(0xd8)](){const _0x3f17b5=_0x1cd62c;[[_0x4aa93c]][_0x3f17b5(0xc5)](_0xdc96d9=>this[_0x3f17b5(0xd5)][_0x3f17b5(0xec)](_0xdc96d9));}['onReady'](){this['_injector']['get'](_0x4aa93c);}},_0x58cb3e(_0x141f0d[_0x1cd62c(0xb9)],_0x1cd62c(0xbb),_0x31a033),_0x58cb3e(_0x141f0d[_0x1cd62c(0xb9)],_0x1cd62c(0xea),_0x51c9b0[_0x1cd62c(0x102)]['UNIVER_SHEET']),_0x141f0d[_0x1cd62c(0xb9)]=_0x3dfd87([_0x51c9b0['DependentOn'](_0x52a735[_0x1cd62c(0xfc)]),_0x3caa13(0x1,_0x51c9b0[_0x1cd62c(0x103)](_0x51c9b0[_0x1cd62c(0xf1)])),_0x3caa13(0x2,_0x51c9b0[_0x1cd62c(0xf3)])],_0x141f0d[_0x1cd62c(0xb9)]),_0x141f0d[_0x1cd62c(0xcd)]=_0x5a8621,_0x141f0d['ImportXLSXOperation']=_0x56a8ea,Object[_0x1cd62c(0xee)](_0x141f0d,Symbol[_0x1cd62c(0xc4)],{'value':'Module'});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.15.2-insiders.20260124-12fc7f0",
3
+ "version": "0.15.3-insiders.20260131-b9b8805",
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.15.2-insiders.20260124-12fc7f0",
46
- "@univerjs/core": "0.15.2-insiders.20260124-12fc7f0",
47
- "@univerjs/sheets": "0.15.2-insiders.20260124-12fc7f0",
48
- "@univerjs/sheets-ui": "0.15.2-insiders.20260124-12fc7f0",
49
- "@univerjs/ui": "0.15.2-insiders.20260124-12fc7f0"
45
+ "@univerjs-pro/exchange-client": "0.15.3-insiders.20260131-b9b8805",
46
+ "@univerjs/core": "0.15.3-insiders.20260131-b9b8805",
47
+ "@univerjs/sheets": "0.15.3-insiders.20260131-b9b8805",
48
+ "@univerjs/sheets-ui": "0.15.3-insiders.20260131-b9b8805",
49
+ "@univerjs/ui": "0.15.3-insiders.20260131-b9b8805"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",
53
53
  "vite": "^7.3.1",
54
- "vitest": "^4.0.16",
55
- "@univerjs-infra/shared": "0.15.2"
54
+ "vitest": "^4.0.18",
55
+ "@univerjs-infra/shared": "0.15.3"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run",