@univerjs-pro/sheets-exchange-client 0.15.2-insiders.20260122-b1556b1 → 0.15.2-insiders.20260124-12fc7f0

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 _0x48131b=_0x46ef;(function(_0x5078f3,_0x23829e){const _0x156f8a=_0x46ef,_0x3891ea=_0x5078f3();while(!![]){try{const _0x5eaf93=parseInt(_0x156f8a(0x112))/0x1*(-parseInt(_0x156f8a(0x132))/0x2)+parseInt(_0x156f8a(0x14d))/0x3+-parseInt(_0x156f8a(0x127))/0x4*(parseInt(_0x156f8a(0x145))/0x5)+parseInt(_0x156f8a(0x111))/0x6*(parseInt(_0x156f8a(0x12d))/0x7)+parseInt(_0x156f8a(0x14c))/0x8+parseInt(_0x156f8a(0x113))/0x9*(-parseInt(_0x156f8a(0x119))/0xa)+-parseInt(_0x156f8a(0x137))/0xb*(-parseInt(_0x156f8a(0x12b))/0xc);if(_0x5eaf93===_0x23829e)break;else _0x3891ea['push'](_0x3891ea['shift']());}catch(_0xd574ec){_0x3891ea['push'](_0x3891ea['shift']());}}}(_0x26f1,0xf2884));Object[_0x48131b(0x12a)](exports,Symbol[_0x48131b(0x122)],{'value':_0x48131b(0x139)});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':_0x48131b(0x143),'type':i[_0x48131b(0x151)][_0x48131b(0x121)],'handler':async _0x49219c=>{const _0xf79221=_0x48131b,_0xf05386=_0x49219c['get'](g[_0xf79221(0x11c)]);return new URLSearchParams(location[_0xf79221(0x146)])[_0xf79221(0x131)]('unit')?_0xf05386[_0xf79221(0x13e)]():_0xf05386[_0xf79221(0x155)](),!0x0;}},p={'id':_0x48131b(0x14a),'type':i[_0x48131b(0x151)][_0x48131b(0x121)],'handler':async _0x90de8e=>{const _0x557099=_0x48131b,_0x1204e3=_0x90de8e[_0x557099(0x131)](g[_0x557099(0x11c)]);return new URLSearchParams(location[_0x557099(0x146)])[_0x557099(0x131)](_0x557099(0x133))?_0x1204e3[_0x557099(0x141)]():_0x1204e3[_0x557099(0x13c)](),!0x0;}},v='sheets-exchange-client.config',h={},S=_0x48131b(0x150);function _0x46ef(_0x28d36f,_0x40c3cf){_0x28d36f=_0x28d36f-0x10f;const _0x26f147=_0x26f1();let _0x46ef4b=_0x26f147[_0x28d36f];return _0x46ef4b;}function x(_0x53156b){const _0x160126=_0x48131b;return{'id':S,'type':c['MenuItemType']['SUBITEMS'],'icon':_0x160126(0x12c),'tooltip':_0x160126(0x144),'hidden$':c[_0x160126(0x142)](_0x53156b,i[_0x160126(0x156)][_0x160126(0x129)]),'disabled$':I[_0x160126(0x13f)](_0x53156b,{'workbookTypes':[_[_0x160126(0x117)]]})};}function P(){const _0x2af197=_0x48131b;return{'id':l['id'],'type':c[_0x2af197(0x14e)][_0x2af197(0x10f)],'title':'exchange.upload','icon':'FolderIcon'};}function C(){const _0x67b279=_0x48131b;return{'id':p['id'],'type':c['MenuItemType']['BUTTON'],'title':_0x67b279(0x152),'icon':_0x67b279(0x140)};}const f={[c[_0x48131b(0x114)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x48131b(0x12f)],y=(_0x1af5fc,_0x145443,_0x3246c8,_0x428e29)=>{const _0x44f88c=_0x48131b;for(var _0x34c147=_0x428e29>0x1?void 0x0:_0x428e29?T(_0x145443,_0x3246c8):_0x145443,_0x2eec7e=_0x1af5fc[_0x44f88c(0x130)]-0x1,_0x146735;_0x2eec7e>=0x0;_0x2eec7e--)(_0x146735=_0x1af5fc[_0x2eec7e])&&(_0x34c147=_0x146735(_0x34c147)||_0x34c147);return _0x34c147;},m=(_0x345918,_0x352c10)=>(_0x420ffc,_0x447c7f)=>_0x352c10(_0x420ffc,_0x447c7f,_0x345918);let u=class extends i[_0x48131b(0x13b)]{constructor(_0x509f7f,_0x5d5471){const _0x553409=_0x48131b;super(),this[_0x553409(0x147)]=_0x509f7f,this['_menuManagerService']=_0x5d5471,this[_0x553409(0x11b)](),this[_0x553409(0x14f)]();}[_0x48131b(0x11b)](){const _0xc08fdb=_0x48131b;[l,p][_0xc08fdb(0x136)](_0x52b0c=>{const _0x6a3a7=_0xc08fdb;this[_0x6a3a7(0x123)](this['_commandService'][_0x6a3a7(0x14b)](_0x52b0c));});}[_0x48131b(0x14f)](){const _0x3475ca=_0x48131b;this[_0x3475ca(0x116)][_0x3475ca(0x118)](f);}};u=y([m(0x0,i[_0x48131b(0x128)]),m(0x1,c[_0x48131b(0x11e)])],u);var O=Object[_0x48131b(0x12a)],U=Object[_0x48131b(0x12f)],X=(_0x2dbefc,_0xa75644,_0x455f25)=>_0xa75644 in _0x2dbefc?O(_0x2dbefc,_0xa75644,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x455f25}):_0x2dbefc[_0xa75644]=_0x455f25,N=(_0x4599d2,_0x1ead2f,_0x3eeb5c,_0x1eee93)=>{for(var _0x391d0d=_0x1eee93>0x1?void 0x0:_0x1eee93?U(_0x1ead2f,_0x3eeb5c):_0x1ead2f,_0x7d5483=_0x4599d2['length']-0x1,_0x4c757c;_0x7d5483>=0x0;_0x7d5483--)(_0x4c757c=_0x4599d2[_0x7d5483])&&(_0x391d0d=_0x4c757c(_0x391d0d)||_0x391d0d);return _0x391d0d;},d=(_0x3d80f9,_0x45c7e8)=>(_0x52533c,_0x5f32cf)=>_0x45c7e8(_0x52533c,_0x5f32cf,_0x3d80f9),E=(_0x45ed15,_0x11c5f6,_0x329ea9)=>X(_0x45ed15,typeof _0x11c5f6!=_0x48131b(0x110)?_0x11c5f6+'':_0x11c5f6,_0x329ea9);function _0x26f1(){const _0x467b40=['MenuItemType','_initMenus','sheets-exchange-client.operation.exchange','CommandType','exchange.download','_configService','Plugin','importXLSXToSnapshot','UniverInstanceType','BUTTON','symbol','6SSdnyH','5948oIfPuv','36bfjvGJ','RibbonStartGroup','_config','_menuManagerService','WorkbookExportPermission','mergeMenu','4887360BVrTBn','onStarting','_initCommands','IExchangeOperateService','type','IMenuManagerService','ImportXLSXOperation','UniverSheetsExchangeClientPlugin','OPERATION','toStringTag','disposeWithMe','DependentOn','merge','add','6083288Uebuyw','ICommandService','UNIVER_SHEET','defineProperty','52762308BVrKnh','DirectExportIcon','3240671lddYRw','_injector','getOwnPropertyDescriptor','length','get','454cmXjiC','unit','Inject','Injector','forEach','11gEDyFD','pluginName','Module','menu','Disposable','exportXLSXBySnapshot','ExportXLSXOperation','importXLSXToUnitId','getCurrentRangeDisable$','ExportIcon','exportXLSXByUnitId','getMenuHiddenObservable','exchange-client.operation.import-xlsx','exchange.file','5RkBKHc','search','_commandService','onReady','UniverExchangeClientPlugin','exchange-client.operation.export-xlsx','registerCommand','5063424sHhQmQ','979902wybBWr'];_0x26f1=function(){return _0x467b40;};return _0x26f1();}const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports[_0x48131b(0x120)]=class extends i[_0x48131b(0x154)]{constructor(_0x3ce37a=h,_0x3311fc,_0x5a45ce){const _0x5809db=_0x48131b;super(),this[_0x5809db(0x115)]=_0x3ce37a,this[_0x5809db(0x12e)]=_0x3311fc,this[_0x5809db(0x153)]=_0x5a45ce;const {menu:_0x532bb9,..._0x5c3dd9}=i[_0x5809db(0x125)]({},h,this['_config']);_0x532bb9&&this[_0x5809db(0x153)]['setConfig'](_0x5809db(0x13a),_0x532bb9,{'merge':!0x0}),this[_0x5809db(0x153)]['setConfig'](v,_0x5c3dd9);}[_0x48131b(0x11a)](){const _0x2fae2e=_0x48131b;[[u]][_0x2fae2e(0x136)](_0x32b2ad=>this['_injector'][_0x2fae2e(0x126)](_0x32b2ad));}[_0x48131b(0x148)](){const _0x563470=_0x48131b;this[_0x563470(0x12e)][_0x563470(0x131)](u);}},E(exports['UniverSheetsExchangeClientPlugin'],_0x48131b(0x138),L),E(exports[_0x48131b(0x120)],_0x48131b(0x11d),i[_0x48131b(0x156)][_0x48131b(0x129)]),exports[_0x48131b(0x120)]=N([i[_0x48131b(0x124)](g[_0x48131b(0x149)]),d(0x1,i[_0x48131b(0x134)](i[_0x48131b(0x135)])),d(0x2,i['IConfigService'])],exports[_0x48131b(0x120)]),exports[_0x48131b(0x13d)]=p,exports[_0x48131b(0x11f)]=l;
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;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x380c6d=_0x7efb;(function(_0x3b4ed3,_0x4da9d0){const _0x2839ec=_0x7efb,_0x217163=_0x3b4ed3();while(!![]){try{const _0x87b74d=-parseInt(_0x2839ec(0x1f6))/0x1*(parseInt(_0x2839ec(0x1e0))/0x2)+-parseInt(_0x2839ec(0x1fb))/0x3*(parseInt(_0x2839ec(0x1f9))/0x4)+parseInt(_0x2839ec(0x1e4))/0x5*(parseInt(_0x2839ec(0x1d9))/0x6)+-parseInt(_0x2839ec(0x1ff))/0x7+parseInt(_0x2839ec(0x1f2))/0x8*(-parseInt(_0x2839ec(0x1e7))/0x9)+parseInt(_0x2839ec(0x1f3))/0xa*(parseInt(_0x2839ec(0x1ea))/0xb)+parseInt(_0x2839ec(0x1dd))/0xc;if(_0x87b74d===_0x4da9d0)break;else _0x217163['push'](_0x217163['shift']());}catch(_0x257cbf){_0x217163['push'](_0x217163['shift']());}}}(_0x5620,0x77d15));import{IExchangeOperateService as _0xd0cc6c,UniverExchangeClientPlugin as _0x208f7e}from'@univerjs-pro/exchange-client';import{CommandType as _0x430201,UniverInstanceType as _0x3e815d,Disposable as _0x2c35f3,ICommandService as _0x108bec,DependentOn as _0x5084d9,Inject as _0x3a97c4,Injector as _0x2ea147,IConfigService as _0x2bfe98,Plugin as _0x137786,merge as _0x4e6609}from'@univerjs/core';function _0x5620(){const _0x37a927=['importXLSXToUnitId','forEach','176106Xwhjda','defineProperty','search','ExportIcon','_config','OTHERS','BUTTON','_menuManagerService','6udwZAU','getOwnPropertyDescriptor','_commandService','onReady','8956992nyiZSt','exchange.file','exchange.upload','9146rATONT','_configService','get','add','865730oMukFU','disposeWithMe','UNIVER_SHEET','52767mJsOfO','DirectExportIcon','_injector','44rNxiMf','setConfig','exchange-client.operation.export-xlsx','_initCommands','mergeMenu','SUBITEMS','registerCommand','SHEET_EXCHANGE_CLIENT_PLUGIN','232MXseGh','1163030qJwnHY','exportXLSXByUnitId','type','138yHHqUh','unit','_initMenus','270968pJolWv','OPERATION','3fWwHfZ','importXLSXToSnapshot'];_0x5620=function(){return _0x37a927;};return _0x5620();}import{MenuItemType as _0x4599ef,getMenuHiddenObservable as _0x4364a6,RibbonStartGroup as _0x49e70b,IMenuManagerService as _0x880199}from'@univerjs/ui';import{WorkbookExportPermission as _0x4d4067}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x12e83a}from'@univerjs/sheets-ui';function _0x7efb(_0x3ebad2,_0xc8226b){_0x3ebad2=_0x3ebad2-0x1d5;const _0x56207d=_0x5620();let _0x7efbad=_0x56207d[_0x3ebad2];return _0x7efbad;}const p={'id':'exchange-client.operation.import-xlsx','type':_0x430201[_0x380c6d(0x1fa)],'handler':async _0x851863=>{const _0x2b2adb=_0x380c6d,_0x1b8ca4=_0x851863[_0x2b2adb(0x1e2)](_0xd0cc6c);return new URLSearchParams(location['search'])['get'](_0x2b2adb(0x1f7))?_0x1b8ca4[_0x2b2adb(0x1fd)]():_0x1b8ca4[_0x2b2adb(0x1fc)](),!0x0;}},u={'id':_0x380c6d(0x1ec),'type':_0x430201[_0x380c6d(0x1fa)],'handler':async _0x4b6324=>{const _0x17286f=_0x380c6d,_0x44e2dd=_0x4b6324[_0x17286f(0x1e2)](_0xd0cc6c);return new URLSearchParams(location[_0x17286f(0x201)])['get'](_0x17286f(0x1f7))?_0x44e2dd[_0x17286f(0x1f4)]():_0x44e2dd['exportXLSXBySnapshot'](),!0x0;}},H='sheets-exchange-client.config',l={},S='sheets-exchange-client.operation.exchange';function R(_0x21a3d4){const _0x3aa744=_0x380c6d;return{'id':S,'type':_0x4599ef[_0x3aa744(0x1ef)],'icon':_0x3aa744(0x1e8),'tooltip':_0x3aa744(0x1de),'hidden$':_0x4364a6(_0x21a3d4,_0x3e815d['UNIVER_SHEET']),'disabled$':_0x12e83a(_0x21a3d4,{'workbookTypes':[_0x4d4067]})};}function w(){const _0x1d5680=_0x380c6d;return{'id':p['id'],'type':_0x4599ef['BUTTON'],'title':_0x1d5680(0x1df),'icon':'FolderIcon'};}function D(){const _0x5ba8b2=_0x380c6d;return{'id':u['id'],'type':_0x4599ef[_0x5ba8b2(0x1d7)],'title':'exchange.download','icon':_0x5ba8b2(0x202)};}const F={[_0x49e70b[_0x380c6d(0x1d6)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x20dea9,_0x201263,_0x50de8f,_0x1627fd)=>{for(var _0x299e71=_0x1627fd>0x1?void 0x0:_0x1627fd?G(_0x201263,_0x50de8f):_0x201263,_0x7c879f=_0x20dea9['length']-0x1,_0x712f40;_0x7c879f>=0x0;_0x7c879f--)(_0x712f40=_0x20dea9[_0x7c879f])&&(_0x299e71=_0x712f40(_0x299e71)||_0x299e71);return _0x299e71;},d=(_0x6e1efd,_0x160e48)=>(_0x425354,_0x44be0c)=>_0x160e48(_0x425354,_0x44be0c,_0x6e1efd);let c=class extends _0x2c35f3{constructor(_0x200315,_0x97d0ac){const _0x27cbcb=_0x380c6d;super(),this['_commandService']=_0x200315,this[_0x27cbcb(0x1d8)]=_0x97d0ac,this[_0x27cbcb(0x1ed)](),this[_0x27cbcb(0x1f8)]();}[_0x380c6d(0x1ed)](){const _0x419116=_0x380c6d;[p,u][_0x419116(0x1fe)](_0x9f1e94=>{const _0xa77999=_0x419116;this[_0xa77999(0x1e5)](this[_0xa77999(0x1db)][_0xa77999(0x1f0)](_0x9f1e94));});}[_0x380c6d(0x1f8)](){const _0x5a6167=_0x380c6d;this['_menuManagerService'][_0x5a6167(0x1ee)](F);}};c=A([d(0x0,_0x108bec),d(0x1,_0x880199)],c);var j=Object[_0x380c6d(0x200)],B=Object[_0x380c6d(0x1da)],$=(_0x2aa9f8,_0x2b72f0,_0x303905)=>_0x2b72f0 in _0x2aa9f8?j(_0x2aa9f8,_0x2b72f0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x303905}):_0x2aa9f8[_0x2b72f0]=_0x303905,V=(_0x1e303b,_0x5a3ce0,_0x3d66a4,_0x525dc3)=>{for(var _0x1d8a93=_0x525dc3>0x1?void 0x0:_0x525dc3?B(_0x5a3ce0,_0x3d66a4):_0x5a3ce0,_0x58129f=_0x1e303b['length']-0x1,_0x297f10;_0x58129f>=0x0;_0x58129f--)(_0x297f10=_0x1e303b[_0x58129f])&&(_0x1d8a93=_0x297f10(_0x1d8a93)||_0x1d8a93);return _0x1d8a93;},_=(_0x1ce03f,_0x58409e)=>(_0x40024c,_0x3e4d6e)=>_0x58409e(_0x40024c,_0x3e4d6e,_0x1ce03f),I=(_0x41f341,_0x59e75e,_0x575780)=>$(_0x41f341,typeof _0x59e75e!='symbol'?_0x59e75e+'':_0x59e75e,_0x575780);const W=_0x380c6d(0x1f1);let s=class extends _0x137786{constructor(_0x8d26c1=l,_0xd988dc,_0x48d421){const _0x3d8f4b=_0x380c6d;super(),this['_config']=_0x8d26c1,this['_injector']=_0xd988dc,this[_0x3d8f4b(0x1e1)]=_0x48d421;const {menu:_0x3df617,..._0x349a8c}=_0x4e6609({},l,this[_0x3d8f4b(0x1d5)]);_0x3df617&&this[_0x3d8f4b(0x1e1)][_0x3d8f4b(0x1eb)]('menu',_0x3df617,{'merge':!0x0}),this[_0x3d8f4b(0x1e1)][_0x3d8f4b(0x1eb)](H,_0x349a8c);}['onStarting'](){const _0x4e7b9a=_0x380c6d;[[c]][_0x4e7b9a(0x1fe)](_0x4a9977=>this[_0x4e7b9a(0x1e9)][_0x4e7b9a(0x1e3)](_0x4a9977));}[_0x380c6d(0x1dc)](){const _0x20eeed=_0x380c6d;this[_0x20eeed(0x1e9)]['get'](c);}};I(s,'pluginName',W),I(s,_0x380c6d(0x1f5),_0x3e815d[_0x380c6d(0x1e6)]),s=V([_0x5084d9(_0x208f7e),_(0x1,_0x3a97c4(_0x2ea147)),_(0x2,_0x2bfe98)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
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};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x380c6d=_0x7efb;(function(_0x3b4ed3,_0x4da9d0){const _0x2839ec=_0x7efb,_0x217163=_0x3b4ed3();while(!![]){try{const _0x87b74d=-parseInt(_0x2839ec(0x1f6))/0x1*(parseInt(_0x2839ec(0x1e0))/0x2)+-parseInt(_0x2839ec(0x1fb))/0x3*(parseInt(_0x2839ec(0x1f9))/0x4)+parseInt(_0x2839ec(0x1e4))/0x5*(parseInt(_0x2839ec(0x1d9))/0x6)+-parseInt(_0x2839ec(0x1ff))/0x7+parseInt(_0x2839ec(0x1f2))/0x8*(-parseInt(_0x2839ec(0x1e7))/0x9)+parseInt(_0x2839ec(0x1f3))/0xa*(parseInt(_0x2839ec(0x1ea))/0xb)+parseInt(_0x2839ec(0x1dd))/0xc;if(_0x87b74d===_0x4da9d0)break;else _0x217163['push'](_0x217163['shift']());}catch(_0x257cbf){_0x217163['push'](_0x217163['shift']());}}}(_0x5620,0x77d15));import{IExchangeOperateService as _0xd0cc6c,UniverExchangeClientPlugin as _0x208f7e}from'@univerjs-pro/exchange-client';import{CommandType as _0x430201,UniverInstanceType as _0x3e815d,Disposable as _0x2c35f3,ICommandService as _0x108bec,DependentOn as _0x5084d9,Inject as _0x3a97c4,Injector as _0x2ea147,IConfigService as _0x2bfe98,Plugin as _0x137786,merge as _0x4e6609}from'@univerjs/core';function _0x5620(){const _0x37a927=['importXLSXToUnitId','forEach','176106Xwhjda','defineProperty','search','ExportIcon','_config','OTHERS','BUTTON','_menuManagerService','6udwZAU','getOwnPropertyDescriptor','_commandService','onReady','8956992nyiZSt','exchange.file','exchange.upload','9146rATONT','_configService','get','add','865730oMukFU','disposeWithMe','UNIVER_SHEET','52767mJsOfO','DirectExportIcon','_injector','44rNxiMf','setConfig','exchange-client.operation.export-xlsx','_initCommands','mergeMenu','SUBITEMS','registerCommand','SHEET_EXCHANGE_CLIENT_PLUGIN','232MXseGh','1163030qJwnHY','exportXLSXByUnitId','type','138yHHqUh','unit','_initMenus','270968pJolWv','OPERATION','3fWwHfZ','importXLSXToSnapshot'];_0x5620=function(){return _0x37a927;};return _0x5620();}import{MenuItemType as _0x4599ef,getMenuHiddenObservable as _0x4364a6,RibbonStartGroup as _0x49e70b,IMenuManagerService as _0x880199}from'@univerjs/ui';import{WorkbookExportPermission as _0x4d4067}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x12e83a}from'@univerjs/sheets-ui';function _0x7efb(_0x3ebad2,_0xc8226b){_0x3ebad2=_0x3ebad2-0x1d5;const _0x56207d=_0x5620();let _0x7efbad=_0x56207d[_0x3ebad2];return _0x7efbad;}const p={'id':'exchange-client.operation.import-xlsx','type':_0x430201[_0x380c6d(0x1fa)],'handler':async _0x851863=>{const _0x2b2adb=_0x380c6d,_0x1b8ca4=_0x851863[_0x2b2adb(0x1e2)](_0xd0cc6c);return new URLSearchParams(location['search'])['get'](_0x2b2adb(0x1f7))?_0x1b8ca4[_0x2b2adb(0x1fd)]():_0x1b8ca4[_0x2b2adb(0x1fc)](),!0x0;}},u={'id':_0x380c6d(0x1ec),'type':_0x430201[_0x380c6d(0x1fa)],'handler':async _0x4b6324=>{const _0x17286f=_0x380c6d,_0x44e2dd=_0x4b6324[_0x17286f(0x1e2)](_0xd0cc6c);return new URLSearchParams(location[_0x17286f(0x201)])['get'](_0x17286f(0x1f7))?_0x44e2dd[_0x17286f(0x1f4)]():_0x44e2dd['exportXLSXBySnapshot'](),!0x0;}},H='sheets-exchange-client.config',l={},S='sheets-exchange-client.operation.exchange';function R(_0x21a3d4){const _0x3aa744=_0x380c6d;return{'id':S,'type':_0x4599ef[_0x3aa744(0x1ef)],'icon':_0x3aa744(0x1e8),'tooltip':_0x3aa744(0x1de),'hidden$':_0x4364a6(_0x21a3d4,_0x3e815d['UNIVER_SHEET']),'disabled$':_0x12e83a(_0x21a3d4,{'workbookTypes':[_0x4d4067]})};}function w(){const _0x1d5680=_0x380c6d;return{'id':p['id'],'type':_0x4599ef['BUTTON'],'title':_0x1d5680(0x1df),'icon':'FolderIcon'};}function D(){const _0x5ba8b2=_0x380c6d;return{'id':u['id'],'type':_0x4599ef[_0x5ba8b2(0x1d7)],'title':'exchange.download','icon':_0x5ba8b2(0x202)};}const F={[_0x49e70b[_0x380c6d(0x1d6)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x20dea9,_0x201263,_0x50de8f,_0x1627fd)=>{for(var _0x299e71=_0x1627fd>0x1?void 0x0:_0x1627fd?G(_0x201263,_0x50de8f):_0x201263,_0x7c879f=_0x20dea9['length']-0x1,_0x712f40;_0x7c879f>=0x0;_0x7c879f--)(_0x712f40=_0x20dea9[_0x7c879f])&&(_0x299e71=_0x712f40(_0x299e71)||_0x299e71);return _0x299e71;},d=(_0x6e1efd,_0x160e48)=>(_0x425354,_0x44be0c)=>_0x160e48(_0x425354,_0x44be0c,_0x6e1efd);let c=class extends _0x2c35f3{constructor(_0x200315,_0x97d0ac){const _0x27cbcb=_0x380c6d;super(),this['_commandService']=_0x200315,this[_0x27cbcb(0x1d8)]=_0x97d0ac,this[_0x27cbcb(0x1ed)](),this[_0x27cbcb(0x1f8)]();}[_0x380c6d(0x1ed)](){const _0x419116=_0x380c6d;[p,u][_0x419116(0x1fe)](_0x9f1e94=>{const _0xa77999=_0x419116;this[_0xa77999(0x1e5)](this[_0xa77999(0x1db)][_0xa77999(0x1f0)](_0x9f1e94));});}[_0x380c6d(0x1f8)](){const _0x5a6167=_0x380c6d;this['_menuManagerService'][_0x5a6167(0x1ee)](F);}};c=A([d(0x0,_0x108bec),d(0x1,_0x880199)],c);var j=Object[_0x380c6d(0x200)],B=Object[_0x380c6d(0x1da)],$=(_0x2aa9f8,_0x2b72f0,_0x303905)=>_0x2b72f0 in _0x2aa9f8?j(_0x2aa9f8,_0x2b72f0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x303905}):_0x2aa9f8[_0x2b72f0]=_0x303905,V=(_0x1e303b,_0x5a3ce0,_0x3d66a4,_0x525dc3)=>{for(var _0x1d8a93=_0x525dc3>0x1?void 0x0:_0x525dc3?B(_0x5a3ce0,_0x3d66a4):_0x5a3ce0,_0x58129f=_0x1e303b['length']-0x1,_0x297f10;_0x58129f>=0x0;_0x58129f--)(_0x297f10=_0x1e303b[_0x58129f])&&(_0x1d8a93=_0x297f10(_0x1d8a93)||_0x1d8a93);return _0x1d8a93;},_=(_0x1ce03f,_0x58409e)=>(_0x40024c,_0x3e4d6e)=>_0x58409e(_0x40024c,_0x3e4d6e,_0x1ce03f),I=(_0x41f341,_0x59e75e,_0x575780)=>$(_0x41f341,typeof _0x59e75e!='symbol'?_0x59e75e+'':_0x59e75e,_0x575780);const W=_0x380c6d(0x1f1);let s=class extends _0x137786{constructor(_0x8d26c1=l,_0xd988dc,_0x48d421){const _0x3d8f4b=_0x380c6d;super(),this['_config']=_0x8d26c1,this['_injector']=_0xd988dc,this[_0x3d8f4b(0x1e1)]=_0x48d421;const {menu:_0x3df617,..._0x349a8c}=_0x4e6609({},l,this[_0x3d8f4b(0x1d5)]);_0x3df617&&this[_0x3d8f4b(0x1e1)][_0x3d8f4b(0x1eb)]('menu',_0x3df617,{'merge':!0x0}),this[_0x3d8f4b(0x1e1)][_0x3d8f4b(0x1eb)](H,_0x349a8c);}['onStarting'](){const _0x4e7b9a=_0x380c6d;[[c]][_0x4e7b9a(0x1fe)](_0x4a9977=>this[_0x4e7b9a(0x1e9)][_0x4e7b9a(0x1e3)](_0x4a9977));}[_0x380c6d(0x1dc)](){const _0x20eeed=_0x380c6d;this[_0x20eeed(0x1e9)]['get'](c);}};I(s,'pluginName',W),I(s,_0x380c6d(0x1f5),_0x3e815d[_0x380c6d(0x1e6)]),s=V([_0x5084d9(_0x208f7e),_(0x1,_0x3a97c4(_0x2ea147)),_(0x2,_0x2bfe98)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
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};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x3071(_0xcc67e0,_0x5626c5){_0xcc67e0=_0xcc67e0-0x170;const _0x1bf02e=_0x1bf0();let _0x3071c7=_0x1bf02e[_0xcc67e0];return _0x3071c7;}(function(_0x24df1e,_0x921f60){const _0x467426=_0x3071,_0x3e6672=_0x24df1e();while(!![]){try{const _0xee621c=-parseInt(_0x467426(0x18f))/0x1+parseInt(_0x467426(0x19e))/0x2*(-parseInt(_0x467426(0x175))/0x3)+parseInt(_0x467426(0x1b7))/0x4+parseInt(_0x467426(0x18a))/0x5*(parseInt(_0x467426(0x185))/0x6)+parseInt(_0x467426(0x18c))/0x7+parseInt(_0x467426(0x1ad))/0x8+-parseInt(_0x467426(0x1b4))/0x9;if(_0xee621c===_0x921f60)break;else _0x3e6672['push'](_0x3e6672['shift']());}catch(_0xa0b79a){_0x3e6672['push'](_0x3e6672['shift']());}}}(_0x1bf0,0x8813b),function(_0x5065d8,_0x4a89c6){const _0x32bf28=_0x3071;typeof exports==_0x32bf28(0x1bd)&&typeof module<'u'?_0x4a89c6(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x32bf28(0x192)&&define[_0x32bf28(0x176)]?define([_0x32bf28(0x198),_0x32bf28(0x1a9),'@univerjs/core',_0x32bf28(0x17d),_0x32bf28(0x19d),_0x32bf28(0x197)],_0x4a89c6):(_0x5065d8=typeof globalThis<'u'?globalThis:_0x5065d8||self,_0x4a89c6(_0x5065d8[_0x32bf28(0x184)]={},_0x5065d8['UniverProExchangeClient'],_0x5065d8['UniverCore'],_0x5065d8['UniverUi'],_0x5065d8[_0x32bf28(0x1ac)],_0x5065d8[_0x32bf28(0x17c)]));}(this,function(_0x5cea58,_0x49eef8,_0x20a629,_0x1f9723,_0x5026de,_0x4cd2a2){'use strict';const _0x3d939d=_0x3071;const _0x2e3e0b={'id':_0x3d939d(0x196),'type':_0x20a629[_0x3d939d(0x18e)][_0x3d939d(0x1a5)],'handler':async _0x1b6510=>{const _0x331464=_0x3d939d,_0x2f81d0=_0x1b6510['get'](_0x49eef8[_0x331464(0x17e)]);return new URLSearchParams(location[_0x331464(0x1ba)])[_0x331464(0x1b9)](_0x331464(0x174))?_0x2f81d0[_0x331464(0x171)]():_0x2f81d0[_0x331464(0x19f)](),!0x0;}},_0x5756a7={'id':'exchange-client.operation.export-xlsx','type':_0x20a629[_0x3d939d(0x18e)][_0x3d939d(0x1a5)],'handler':async _0x3f612d=>{const _0x5e51ef=_0x3d939d,_0x424d27=_0x3f612d['get'](_0x49eef8[_0x5e51ef(0x17e)]);return new URLSearchParams(location['search'])['get'](_0x5e51ef(0x174))?_0x424d27[_0x5e51ef(0x191)]():_0x424d27[_0x5e51ef(0x179)](),!0x0;}},_0xf12295=_0x3d939d(0x17b),_0x493553={},_0x104dd4=_0x3d939d(0x193);function _0x209168(_0x23bb8b){const _0x1fb1db=_0x3d939d;return{'id':_0x104dd4,'type':_0x1f9723[_0x1fb1db(0x17f)][_0x1fb1db(0x1a0)],'icon':_0x1fb1db(0x19b),'tooltip':'exchange.file','hidden$':_0x1f9723[_0x1fb1db(0x199)](_0x23bb8b,_0x20a629['UniverInstanceType'][_0x1fb1db(0x1a6)]),'disabled$':_0x4cd2a2[_0x1fb1db(0x190)](_0x23bb8b,{'workbookTypes':[_0x5026de[_0x1fb1db(0x170)]]})};}function _0x527625(){const _0x4c6273=_0x3d939d;return{'id':_0x2e3e0b['id'],'type':_0x1f9723[_0x4c6273(0x17f)][_0x4c6273(0x17a)],'title':'exchange.upload','icon':_0x4c6273(0x1aa)};}function _0x559aa3(){const _0x423bd7=_0x3d939d;return{'id':_0x5756a7['id'],'type':_0x1f9723[_0x423bd7(0x17f)][_0x423bd7(0x17a)],'title':_0x423bd7(0x1a7),'icon':_0x423bd7(0x1a2)};}const _0x5d51ee={[_0x1f9723[_0x3d939d(0x172)][_0x3d939d(0x1a8)]]:{[_0x104dd4]:{'order':0.3,'menuItemFactory':_0x209168,[_0x2e3e0b['id']]:{'order':0x0,'menuItemFactory':_0x527625},[_0x5756a7['id']]:{'order':0x1,'menuItemFactory':_0x559aa3}}}};var _0x5f48b6=Object['getOwnPropertyDescriptor'],_0x383e93=(_0x29f230,_0x2d6d0c,_0x210ced,_0x11be96)=>{for(var _0x19dd80=_0x11be96>0x1?void 0x0:_0x11be96?_0x5f48b6(_0x2d6d0c,_0x210ced):_0x2d6d0c,_0x179d54=_0x29f230['length']-0x1,_0x206536;_0x179d54>=0x0;_0x179d54--)(_0x206536=_0x29f230[_0x179d54])&&(_0x19dd80=_0x206536(_0x19dd80)||_0x19dd80);return _0x19dd80;},_0x2430ec=(_0x1f0aba,_0x3bf8bb)=>(_0x4132b1,_0x1bee60)=>_0x3bf8bb(_0x4132b1,_0x1bee60,_0x1f0aba);let _0x5cdc64=class extends _0x20a629[_0x3d939d(0x19c)]{constructor(_0x1d93ca,_0x1107a6){const _0x4f0dc1=_0x3d939d;super(),this[_0x4f0dc1(0x1b2)]=_0x1d93ca,this[_0x4f0dc1(0x1a3)]=_0x1107a6,this[_0x4f0dc1(0x188)](),this[_0x4f0dc1(0x1a4)]();}[_0x3d939d(0x188)](){const _0x39ac4d=_0x3d939d;[_0x2e3e0b,_0x5756a7][_0x39ac4d(0x178)](_0x5c1347=>{const _0x79659b=_0x39ac4d;this[_0x79659b(0x173)](this[_0x79659b(0x1b2)][_0x79659b(0x1b8)](_0x5c1347));});}['_initMenus'](){const _0x3ca2b6=_0x3d939d;this['_menuManagerService'][_0x3ca2b6(0x18b)](_0x5d51ee);}};_0x5cdc64=_0x383e93([_0x2430ec(0x0,_0x20a629[_0x3d939d(0x186)]),_0x2430ec(0x1,_0x1f9723['IMenuManagerService'])],_0x5cdc64);var _0x2454e2=Object[_0x3d939d(0x1bc)],_0x1df6d8=Object['getOwnPropertyDescriptor'],_0x44351a=(_0x2ba96b,_0x5c3ecc,_0x4b3f1b)=>_0x5c3ecc in _0x2ba96b?_0x2454e2(_0x2ba96b,_0x5c3ecc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b3f1b}):_0x2ba96b[_0x5c3ecc]=_0x4b3f1b,_0x9f09e3=(_0x45ac41,_0x43b5a1,_0x4f0b86,_0x595383)=>{const _0x4d9953=_0x3d939d;for(var _0x4aca3e=_0x595383>0x1?void 0x0:_0x595383?_0x1df6d8(_0x43b5a1,_0x4f0b86):_0x43b5a1,_0x57604c=_0x45ac41[_0x4d9953(0x180)]-0x1,_0x4e2379;_0x57604c>=0x0;_0x57604c--)(_0x4e2379=_0x45ac41[_0x57604c])&&(_0x4aca3e=_0x4e2379(_0x4aca3e)||_0x4aca3e);return _0x4aca3e;},_0xe3c0ab=(_0x6b829b,_0x160af5)=>(_0x2265a3,_0x39a291)=>_0x160af5(_0x2265a3,_0x39a291,_0x6b829b),_0x3c88c3=(_0xd7a042,_0x4cb206,_0x22586f)=>_0x44351a(_0xd7a042,typeof _0x4cb206!=_0x3d939d(0x1af)?_0x4cb206+'':_0x4cb206,_0x22586f);const _0x5130b5='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x5cea58['UniverSheetsExchangeClientPlugin']=class extends _0x20a629[_0x3d939d(0x1ab)]{constructor(_0x4672ff=_0x493553,_0x583fd4,_0x145920){const _0x5552d3=_0x3d939d;super(),this[_0x5552d3(0x177)]=_0x4672ff,this['_injector']=_0x583fd4,this[_0x5552d3(0x1ae)]=_0x145920;const {menu:_0x341482,..._0x1c901f}=_0x20a629[_0x5552d3(0x1b0)]({},_0x493553,this['_config']);_0x341482&&this[_0x5552d3(0x1ae)][_0x5552d3(0x1b5)]('menu',_0x341482,{'merge':!0x0}),this[_0x5552d3(0x1ae)]['setConfig'](_0xf12295,_0x1c901f);}['onStarting'](){const _0x3d2be2=_0x3d939d;[[_0x5cdc64]][_0x3d2be2(0x178)](_0x6176a2=>this['_injector'][_0x3d2be2(0x1b1)](_0x6176a2));}[_0x3d939d(0x194)](){const _0x49db65=_0x3d939d;this[_0x49db65(0x1b6)][_0x49db65(0x1b9)](_0x5cdc64);}},_0x3c88c3(_0x5cea58[_0x3d939d(0x18d)],_0x3d939d(0x181),_0x5130b5),_0x3c88c3(_0x5cea58[_0x3d939d(0x18d)],'type',_0x20a629[_0x3d939d(0x1b3)][_0x3d939d(0x1a6)]),_0x5cea58['UniverSheetsExchangeClientPlugin']=_0x9f09e3([_0x20a629[_0x3d939d(0x183)](_0x49eef8[_0x3d939d(0x182)]),_0xe3c0ab(0x1,_0x20a629[_0x3d939d(0x195)](_0x20a629[_0x3d939d(0x187)])),_0xe3c0ab(0x2,_0x20a629[_0x3d939d(0x19a)])],_0x5cea58[_0x3d939d(0x18d)]),_0x5cea58[_0x3d939d(0x189)]=_0x5756a7,_0x5cea58['ImportXLSXOperation']=_0x2e3e0b,Object[_0x3d939d(0x1bc)](_0x5cea58,Symbol[_0x3d939d(0x1a1)],{'value':_0x3d939d(0x1bb)});}));function _0x1bf0(){const _0x32956c=['UniverExchangeClientPlugin','DependentOn','UniverProSheetsExchangeClient','2819364jQgCdW','ICommandService','Injector','_initCommands','ExportXLSXOperation','10Punyfx','mergeMenu','2718296fuhJjd','UniverSheetsExchangeClientPlugin','CommandType','195881CwoANy','getCurrentRangeDisable$','exportXLSXByUnitId','function','sheets-exchange-client.operation.exchange','onReady','Inject','exchange-client.operation.import-xlsx','@univerjs/sheets-ui','exports','getMenuHiddenObservable','IConfigService','DirectExportIcon','Disposable','@univerjs/sheets','87170ybetGg','importXLSXToSnapshot','SUBITEMS','toStringTag','ExportIcon','_menuManagerService','_initMenus','OPERATION','UNIVER_SHEET','exchange.download','OTHERS','@univerjs-pro/exchange-client','FolderIcon','Plugin','UniverSheets','1947808ooHUDY','_configService','symbol','merge','add','_commandService','UniverInstanceType','12420081uyCjsQ','setConfig','_injector','3467056wCIBxt','registerCommand','get','search','Module','defineProperty','object','WorkbookExportPermission','importXLSXToUnitId','RibbonStartGroup','disposeWithMe','unit','21FCHVRo','amd','_config','forEach','exportXLSXBySnapshot','BUTTON','sheets-exchange-client.config','UniverSheetsUi','@univerjs/ui','IExchangeOperateService','MenuItemType','length','pluginName'];_0x1bf0=function(){return _0x32956c;};return _0x1bf0();}
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)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.15.2-insiders.20260122-b1556b1",
3
+ "version": "0.15.2-insiders.20260124-12fc7f0",
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.15.2-insiders.20260122-b1556b1",
46
- "@univerjs/sheets": "0.15.2-insiders.20260122-b1556b1",
47
- "@univerjs/core": "0.15.2-insiders.20260122-b1556b1",
48
- "@univerjs/ui": "0.15.2-insiders.20260122-b1556b1",
49
- "@univerjs/sheets-ui": "0.15.2-insiders.20260122-b1556b1"
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"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",