@univerjs-pro/sheets-exchange-client 0.15.2-insiders.20260119-edc718c → 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 _0x56773b=_0xf976;(function(_0xfefd5f,_0x51771b){const _0x1f8adf=_0xf976,_0x16007=_0xfefd5f();while(!![]){try{const _0x506974=-parseInt(_0x1f8adf(0x1fb))/0x1*(parseInt(_0x1f8adf(0x20a))/0x2)+-parseInt(_0x1f8adf(0x1da))/0x3+parseInt(_0x1f8adf(0x1fe))/0x4+parseInt(_0x1f8adf(0x214))/0x5+-parseInt(_0x1f8adf(0x200))/0x6+-parseInt(_0x1f8adf(0x1ed))/0x7+parseInt(_0x1f8adf(0x1e7))/0x8;if(_0x506974===_0x51771b)break;else _0x16007['push'](_0x16007['shift']());}catch(_0x31ed83){_0x16007['push'](_0x16007['shift']());}}}(_0x4a5e,0x90c51));Object[_0x56773b(0x202)](exports,Symbol[_0x56773b(0x1e1)],{'value':_0x56773b(0x212)});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':_0x56773b(0x207),'type':i[_0x56773b(0x1f5)][_0x56773b(0x1ee)],'handler':async _0x16e468=>{const _0x3d22cc=_0x56773b,_0x2577c5=_0x16e468[_0x3d22cc(0x1dc)](g[_0x3d22cc(0x1f6)]);return new URLSearchParams(location['search'])[_0x3d22cc(0x1dc)](_0x3d22cc(0x203))?_0x2577c5['importXLSXToUnitId']():_0x2577c5[_0x3d22cc(0x1f2)](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i[_0x56773b(0x1f5)][_0x56773b(0x1ee)],'handler':async _0x5979a2=>{const _0x219f78=_0x56773b,_0x1368d1=_0x5979a2[_0x219f78(0x1dc)](g['IExchangeOperateService']);return new URLSearchParams(location[_0x219f78(0x201)])[_0x219f78(0x1dc)](_0x219f78(0x203))?_0x1368d1['exportXLSXByUnitId']():_0x1368d1['exportXLSXBySnapshot'](),!0x0;}},v='sheets-exchange-client.config',h={},S=_0x56773b(0x210);function x(_0x4cb8f9){const _0xfbf698=_0x56773b;return{'id':S,'type':c['MenuItemType'][_0xfbf698(0x1e6)],'icon':'DirectExportIcon','tooltip':'exchange.file','hidden$':c[_0xfbf698(0x1f0)](_0x4cb8f9,i[_0xfbf698(0x204)][_0xfbf698(0x20c)]),'disabled$':I['getCurrentRangeDisable$'](_0x4cb8f9,{'workbookTypes':[_[_0xfbf698(0x211)]]})};}function P(){const _0x161aa7=_0x56773b;return{'id':l['id'],'type':c[_0x161aa7(0x20e)]['BUTTON'],'title':_0x161aa7(0x1f1),'icon':_0x161aa7(0x1dd)};}function C(){const _0x4d2115=_0x56773b;return{'id':p['id'],'type':c[_0x4d2115(0x20e)][_0x4d2115(0x20b)],'title':'exchange.download','icon':'ExportIcon'};}const f={[c[_0x56773b(0x1de)][_0x56773b(0x1f7)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};function _0x4a5e(){const _0x363876=['importXLSXToSnapshot','UniverSheetsExchangeClientPlugin','ICommandService','CommandType','IExchangeOperateService','OTHERS','length','_configService','DependentOn','846667bqrqRG','ExportXLSXOperation','forEach','3960772FpvGHr','menu','5789040VqzymV','search','defineProperty','unit','UniverInstanceType','_config','Inject','exchange-client.operation.import-xlsx','setConfig','SHEET_EXCHANGE_CLIENT_PLUGIN','2wbEzNb','BUTTON','UNIVER_SHEET','Disposable','MenuItemType','symbol','sheets-exchange-client.operation.exchange','WorkbookExportPermission','Module','onStarting','4295810rZtoCZ','_commandService','_initMenus','3423351FfMkoE','Plugin','get','FolderIcon','RibbonStartGroup','_menuManagerService','_injector','toStringTag','Injector','pluginName','ImportXLSXOperation','_initCommands','SUBITEMS','14904600ucJYJx','mergeMenu','IMenuManagerService','merge','onReady','registerCommand','1167803CyKnmX','OPERATION','IConfigService','getMenuHiddenObservable','exchange.upload'];_0x4a5e=function(){return _0x363876;};return _0x4a5e();}var T=Object['getOwnPropertyDescriptor'],y=(_0x182e37,_0x262bd4,_0x5b0143,_0x16201f)=>{const _0x55ba93=_0x56773b;for(var _0xb06bf8=_0x16201f>0x1?void 0x0:_0x16201f?T(_0x262bd4,_0x5b0143):_0x262bd4,_0x317c3c=_0x182e37[_0x55ba93(0x1f8)]-0x1,_0x384e02;_0x317c3c>=0x0;_0x317c3c--)(_0x384e02=_0x182e37[_0x317c3c])&&(_0xb06bf8=_0x384e02(_0xb06bf8)||_0xb06bf8);return _0xb06bf8;},m=(_0x3c6e59,_0x2fcf9e)=>(_0x2e6b5a,_0x1211f4)=>_0x2fcf9e(_0x2e6b5a,_0x1211f4,_0x3c6e59);let u=class extends i[_0x56773b(0x20d)]{constructor(_0xf85997,_0x1d29b9){const _0x3b71d6=_0x56773b;super(),this[_0x3b71d6(0x215)]=_0xf85997,this[_0x3b71d6(0x1df)]=_0x1d29b9,this[_0x3b71d6(0x1e5)](),this[_0x3b71d6(0x216)]();}[_0x56773b(0x1e5)](){const _0x174262=_0x56773b;[l,p][_0x174262(0x1fd)](_0x4156df=>{const _0x51aea2=_0x174262;this['disposeWithMe'](this[_0x51aea2(0x215)][_0x51aea2(0x1ec)](_0x4156df));});}[_0x56773b(0x216)](){const _0x525a2e=_0x56773b;this['_menuManagerService'][_0x525a2e(0x1e8)](f);}};u=y([m(0x0,i[_0x56773b(0x1f4)]),m(0x1,c[_0x56773b(0x1e9)])],u);function _0xf976(_0x277617,_0x27332f){_0x277617=_0x277617-0x1da;const _0x4a5e4e=_0x4a5e();let _0xf97645=_0x4a5e4e[_0x277617];return _0xf97645;}var O=Object[_0x56773b(0x202)],U=Object['getOwnPropertyDescriptor'],X=(_0x3c0743,_0x19c183,_0x255961)=>_0x19c183 in _0x3c0743?O(_0x3c0743,_0x19c183,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x255961}):_0x3c0743[_0x19c183]=_0x255961,N=(_0x363b16,_0x9b59c4,_0x300839,_0x59fad6)=>{for(var _0x583cac=_0x59fad6>0x1?void 0x0:_0x59fad6?U(_0x9b59c4,_0x300839):_0x9b59c4,_0x275d83=_0x363b16['length']-0x1,_0x231826;_0x275d83>=0x0;_0x275d83--)(_0x231826=_0x363b16[_0x275d83])&&(_0x583cac=_0x231826(_0x583cac)||_0x583cac);return _0x583cac;},d=(_0x6df1d3,_0x3e0aa4)=>(_0x19a631,_0x3562e0)=>_0x3e0aa4(_0x19a631,_0x3562e0,_0x6df1d3),E=(_0x97699e,_0x41b787,_0xc8aab7)=>X(_0x97699e,typeof _0x41b787!=_0x56773b(0x20f)?_0x41b787+'':_0x41b787,_0xc8aab7);const L=_0x56773b(0x209);exports[_0x56773b(0x1f3)]=class extends i[_0x56773b(0x1db)]{constructor(_0x33f341=h,_0x21a0f1,_0x58a018){const _0x5a9704=_0x56773b;super(),this[_0x5a9704(0x205)]=_0x33f341,this['_injector']=_0x21a0f1,this[_0x5a9704(0x1f9)]=_0x58a018;const {menu:_0x589034,..._0x442991}=i[_0x5a9704(0x1ea)]({},h,this['_config']);_0x589034&&this[_0x5a9704(0x1f9)][_0x5a9704(0x208)](_0x5a9704(0x1ff),_0x589034,{'merge':!0x0}),this[_0x5a9704(0x1f9)][_0x5a9704(0x208)](v,_0x442991);}[_0x56773b(0x213)](){const _0x39adeb=_0x56773b;[[u]]['forEach'](_0x173331=>this[_0x39adeb(0x1e0)]['add'](_0x173331));}[_0x56773b(0x1eb)](){const _0x4dfa8e=_0x56773b;this[_0x4dfa8e(0x1e0)][_0x4dfa8e(0x1dc)](u);}},E(exports[_0x56773b(0x1f3)],_0x56773b(0x1e3),L),E(exports[_0x56773b(0x1f3)],'type',i[_0x56773b(0x204)][_0x56773b(0x20c)]),exports['UniverSheetsExchangeClientPlugin']=N([i[_0x56773b(0x1fa)](g['UniverExchangeClientPlugin']),d(0x1,i[_0x56773b(0x206)](i[_0x56773b(0x1e2)])),d(0x2,i[_0x56773b(0x1ef)])],exports['UniverSheetsExchangeClientPlugin']),exports[_0x56773b(0x1fc)]=p,exports[_0x56773b(0x1e4)]=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 _0x447b8f=_0x5d9b;(function(_0x3645f5,_0x2f7359){const _0x21b1dc=_0x5d9b,_0x30cd6a=_0x3645f5();while(!![]){try{const _0x1e97d7=parseInt(_0x21b1dc(0x1ee))/0x1+parseInt(_0x21b1dc(0x1ca))/0x2+parseInt(_0x21b1dc(0x1eb))/0x3*(-parseInt(_0x21b1dc(0x1d0))/0x4)+-parseInt(_0x21b1dc(0x1cb))/0x5+parseInt(_0x21b1dc(0x1c7))/0x6+-parseInt(_0x21b1dc(0x1c2))/0x7*(parseInt(_0x21b1dc(0x1d4))/0x8)+-parseInt(_0x21b1dc(0x1e0))/0x9;if(_0x1e97d7===_0x2f7359)break;else _0x30cd6a['push'](_0x30cd6a['shift']());}catch(_0x42ea9b){_0x30cd6a['push'](_0x30cd6a['shift']());}}}(_0x3dde,0xecbcc));function _0x5d9b(_0x115816,_0x4a3691){_0x115816=_0x115816-0x1c1;const _0x3dde22=_0x3dde();let _0x5d9bf8=_0x3dde22[_0x115816];return _0x5d9bf8;}import{IExchangeOperateService as _0x468ec8,UniverExchangeClientPlugin as _0x3ac643}from'@univerjs-pro/exchange-client';import{CommandType as _0x4b3bbd,UniverInstanceType as _0x34299d,Disposable as _0x53fb17,ICommandService as _0x4e612f,DependentOn as _0x5b7723,Inject as _0x1e8193,Injector as _0x1a5a37,IConfigService as _0x3af90d,Plugin as _0x332cfc,merge as _0x2dd9f3}from'@univerjs/core';import{MenuItemType as _0x542b65,getMenuHiddenObservable as _0x2e1ec0,RibbonStartGroup as _0x5609af,IMenuManagerService as _0x46214f}from'@univerjs/ui';import{WorkbookExportPermission as _0x4012da}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x383952}from'@univerjs/sheets-ui';const p={'id':_0x447b8f(0x1e2),'type':_0x4b3bbd['OPERATION'],'handler':async _0x2d9988=>{const _0x782e01=_0x447b8f,_0x270c63=_0x2d9988[_0x782e01(0x1e3)](_0x468ec8);return new URLSearchParams(location[_0x782e01(0x1e8)])[_0x782e01(0x1e3)](_0x782e01(0x1c1))?_0x270c63['importXLSXToUnitId']():_0x270c63[_0x782e01(0x1dd)](),!0x0;}},u={'id':_0x447b8f(0x1df),'type':_0x4b3bbd['OPERATION'],'handler':async _0x41a78b=>{const _0x3be166=_0x447b8f,_0x71f2f7=_0x41a78b[_0x3be166(0x1e3)](_0x468ec8);return new URLSearchParams(location[_0x3be166(0x1e8)])[_0x3be166(0x1e3)](_0x3be166(0x1c1))?_0x71f2f7[_0x3be166(0x1cd)]():_0x71f2f7[_0x3be166(0x1dc)](),!0x0;}},H='sheets-exchange-client.config',l={},S=_0x447b8f(0x1da);function R(_0x27a4b9){const _0x12bb7f=_0x447b8f;return{'id':S,'type':_0x542b65[_0x12bb7f(0x1de)],'icon':_0x12bb7f(0x1ed),'tooltip':_0x12bb7f(0x1e1),'hidden$':_0x2e1ec0(_0x27a4b9,_0x34299d[_0x12bb7f(0x1d3)]),'disabled$':_0x383952(_0x27a4b9,{'workbookTypes':[_0x4012da]})};}function w(){const _0x1f1009=_0x447b8f;return{'id':p['id'],'type':_0x542b65[_0x1f1009(0x1ce)],'title':_0x1f1009(0x1d7),'icon':_0x1f1009(0x1d2)};}function _0x3dde(){const _0x475132=['length','setConfig','getOwnPropertyDescriptor','8313714hLuGCa','_initMenus','OTHERS','2742032LsyNVc','2296660wzeHBT','_config','exportXLSXByUnitId','BUTTON','forEach','230196MfKExB','type','FolderIcon','UNIVER_SHEET','96tltigK','defineProperty','menu','exchange.upload','_menuManagerService','pluginName','sheets-exchange-client.operation.exchange','_commandService','exportXLSXBySnapshot','importXLSXToSnapshot','SUBITEMS','exchange-client.operation.export-xlsx','924975sNpkGN','exchange.file','exchange-client.operation.import-xlsx','get','mergeMenu','_configService','symbol','ExportIcon','search','add','onReady','87JCjGbR','exchange.download','DirectExportIcon','567273HAGCAX','_injector','registerCommand','unit','71869XyoIMK','disposeWithMe'];_0x3dde=function(){return _0x475132;};return _0x3dde();}function D(){const _0x3d0d9e=_0x447b8f;return{'id':u['id'],'type':_0x542b65[_0x3d0d9e(0x1ce)],'title':_0x3d0d9e(0x1ec),'icon':_0x3d0d9e(0x1e7)};}const F={[_0x5609af[_0x447b8f(0x1c9)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x447b8f(0x1c6)],A=(_0x549d2e,_0x25a73e,_0x2670a2,_0x2d69e1)=>{const _0x366bb5=_0x447b8f;for(var _0x537572=_0x2d69e1>0x1?void 0x0:_0x2d69e1?G(_0x25a73e,_0x2670a2):_0x25a73e,_0x51c023=_0x549d2e[_0x366bb5(0x1c4)]-0x1,_0x2022bf;_0x51c023>=0x0;_0x51c023--)(_0x2022bf=_0x549d2e[_0x51c023])&&(_0x537572=_0x2022bf(_0x537572)||_0x537572);return _0x537572;},d=(_0x341799,_0x1f7df0)=>(_0x74f504,_0x533bc3)=>_0x1f7df0(_0x74f504,_0x533bc3,_0x341799);let c=class extends _0x53fb17{constructor(_0x5c79e0,_0x30c812){const _0x5014a2=_0x447b8f;super(),this['_commandService']=_0x5c79e0,this[_0x5014a2(0x1d8)]=_0x30c812,this['_initCommands'](),this['_initMenus']();}['_initCommands'](){const _0x3bb65b=_0x447b8f;[p,u][_0x3bb65b(0x1cf)](_0x930ab1=>{const _0x2d9fa7=_0x3bb65b;this[_0x2d9fa7(0x1c3)](this[_0x2d9fa7(0x1db)][_0x2d9fa7(0x1f0)](_0x930ab1));});}[_0x447b8f(0x1c8)](){const _0x6007f5=_0x447b8f;this[_0x6007f5(0x1d8)][_0x6007f5(0x1e4)](F);}};c=A([d(0x0,_0x4e612f),d(0x1,_0x46214f)],c);var j=Object[_0x447b8f(0x1d5)],B=Object['getOwnPropertyDescriptor'],$=(_0x3b7aef,_0x396ea5,_0x15b6d6)=>_0x396ea5 in _0x3b7aef?j(_0x3b7aef,_0x396ea5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x15b6d6}):_0x3b7aef[_0x396ea5]=_0x15b6d6,V=(_0x275956,_0x5d8653,_0x58cfe0,_0x5581df)=>{for(var _0x4cb395=_0x5581df>0x1?void 0x0:_0x5581df?B(_0x5d8653,_0x58cfe0):_0x5d8653,_0x1a8c73=_0x275956['length']-0x1,_0x129af4;_0x1a8c73>=0x0;_0x1a8c73--)(_0x129af4=_0x275956[_0x1a8c73])&&(_0x4cb395=_0x129af4(_0x4cb395)||_0x4cb395);return _0x4cb395;},_=(_0x373c4e,_0x10739e)=>(_0x351aef,_0x1ae86b)=>_0x10739e(_0x351aef,_0x1ae86b,_0x373c4e),I=(_0x42b4f7,_0x5597d9,_0x4f7b8c)=>$(_0x42b4f7,typeof _0x5597d9!=_0x447b8f(0x1e6)?_0x5597d9+'':_0x5597d9,_0x4f7b8c);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x332cfc{constructor(_0x34451e=l,_0x36271c,_0x9faf8f){const _0x5d5b46=_0x447b8f;super(),this['_config']=_0x34451e,this[_0x5d5b46(0x1ef)]=_0x36271c,this[_0x5d5b46(0x1e5)]=_0x9faf8f;const {menu:_0x35d21b,..._0x4e9e55}=_0x2dd9f3({},l,this[_0x5d5b46(0x1cc)]);_0x35d21b&&this[_0x5d5b46(0x1e5)]['setConfig'](_0x5d5b46(0x1d6),_0x35d21b,{'merge':!0x0}),this[_0x5d5b46(0x1e5)][_0x5d5b46(0x1c5)](H,_0x4e9e55);}['onStarting'](){const _0x42ae0a=_0x447b8f;[[c]][_0x42ae0a(0x1cf)](_0x3aa0d9=>this[_0x42ae0a(0x1ef)][_0x42ae0a(0x1e9)](_0x3aa0d9));}[_0x447b8f(0x1ea)](){const _0x1fa0e6=_0x447b8f;this[_0x1fa0e6(0x1ef)][_0x1fa0e6(0x1e3)](c);}};I(s,_0x447b8f(0x1d9),W),I(s,_0x447b8f(0x1d1),_0x34299d[_0x447b8f(0x1d3)]),s=V([_0x5b7723(_0x3ac643),_(0x1,_0x1e8193(_0x1a5a37)),_(0x2,_0x3af90d)],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 _0x447b8f=_0x5d9b;(function(_0x3645f5,_0x2f7359){const _0x21b1dc=_0x5d9b,_0x30cd6a=_0x3645f5();while(!![]){try{const _0x1e97d7=parseInt(_0x21b1dc(0x1ee))/0x1+parseInt(_0x21b1dc(0x1ca))/0x2+parseInt(_0x21b1dc(0x1eb))/0x3*(-parseInt(_0x21b1dc(0x1d0))/0x4)+-parseInt(_0x21b1dc(0x1cb))/0x5+parseInt(_0x21b1dc(0x1c7))/0x6+-parseInt(_0x21b1dc(0x1c2))/0x7*(parseInt(_0x21b1dc(0x1d4))/0x8)+-parseInt(_0x21b1dc(0x1e0))/0x9;if(_0x1e97d7===_0x2f7359)break;else _0x30cd6a['push'](_0x30cd6a['shift']());}catch(_0x42ea9b){_0x30cd6a['push'](_0x30cd6a['shift']());}}}(_0x3dde,0xecbcc));function _0x5d9b(_0x115816,_0x4a3691){_0x115816=_0x115816-0x1c1;const _0x3dde22=_0x3dde();let _0x5d9bf8=_0x3dde22[_0x115816];return _0x5d9bf8;}import{IExchangeOperateService as _0x468ec8,UniverExchangeClientPlugin as _0x3ac643}from'@univerjs-pro/exchange-client';import{CommandType as _0x4b3bbd,UniverInstanceType as _0x34299d,Disposable as _0x53fb17,ICommandService as _0x4e612f,DependentOn as _0x5b7723,Inject as _0x1e8193,Injector as _0x1a5a37,IConfigService as _0x3af90d,Plugin as _0x332cfc,merge as _0x2dd9f3}from'@univerjs/core';import{MenuItemType as _0x542b65,getMenuHiddenObservable as _0x2e1ec0,RibbonStartGroup as _0x5609af,IMenuManagerService as _0x46214f}from'@univerjs/ui';import{WorkbookExportPermission as _0x4012da}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x383952}from'@univerjs/sheets-ui';const p={'id':_0x447b8f(0x1e2),'type':_0x4b3bbd['OPERATION'],'handler':async _0x2d9988=>{const _0x782e01=_0x447b8f,_0x270c63=_0x2d9988[_0x782e01(0x1e3)](_0x468ec8);return new URLSearchParams(location[_0x782e01(0x1e8)])[_0x782e01(0x1e3)](_0x782e01(0x1c1))?_0x270c63['importXLSXToUnitId']():_0x270c63[_0x782e01(0x1dd)](),!0x0;}},u={'id':_0x447b8f(0x1df),'type':_0x4b3bbd['OPERATION'],'handler':async _0x41a78b=>{const _0x3be166=_0x447b8f,_0x71f2f7=_0x41a78b[_0x3be166(0x1e3)](_0x468ec8);return new URLSearchParams(location[_0x3be166(0x1e8)])[_0x3be166(0x1e3)](_0x3be166(0x1c1))?_0x71f2f7[_0x3be166(0x1cd)]():_0x71f2f7[_0x3be166(0x1dc)](),!0x0;}},H='sheets-exchange-client.config',l={},S=_0x447b8f(0x1da);function R(_0x27a4b9){const _0x12bb7f=_0x447b8f;return{'id':S,'type':_0x542b65[_0x12bb7f(0x1de)],'icon':_0x12bb7f(0x1ed),'tooltip':_0x12bb7f(0x1e1),'hidden$':_0x2e1ec0(_0x27a4b9,_0x34299d[_0x12bb7f(0x1d3)]),'disabled$':_0x383952(_0x27a4b9,{'workbookTypes':[_0x4012da]})};}function w(){const _0x1f1009=_0x447b8f;return{'id':p['id'],'type':_0x542b65[_0x1f1009(0x1ce)],'title':_0x1f1009(0x1d7),'icon':_0x1f1009(0x1d2)};}function _0x3dde(){const _0x475132=['length','setConfig','getOwnPropertyDescriptor','8313714hLuGCa','_initMenus','OTHERS','2742032LsyNVc','2296660wzeHBT','_config','exportXLSXByUnitId','BUTTON','forEach','230196MfKExB','type','FolderIcon','UNIVER_SHEET','96tltigK','defineProperty','menu','exchange.upload','_menuManagerService','pluginName','sheets-exchange-client.operation.exchange','_commandService','exportXLSXBySnapshot','importXLSXToSnapshot','SUBITEMS','exchange-client.operation.export-xlsx','924975sNpkGN','exchange.file','exchange-client.operation.import-xlsx','get','mergeMenu','_configService','symbol','ExportIcon','search','add','onReady','87JCjGbR','exchange.download','DirectExportIcon','567273HAGCAX','_injector','registerCommand','unit','71869XyoIMK','disposeWithMe'];_0x3dde=function(){return _0x475132;};return _0x3dde();}function D(){const _0x3d0d9e=_0x447b8f;return{'id':u['id'],'type':_0x542b65[_0x3d0d9e(0x1ce)],'title':_0x3d0d9e(0x1ec),'icon':_0x3d0d9e(0x1e7)};}const F={[_0x5609af[_0x447b8f(0x1c9)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x447b8f(0x1c6)],A=(_0x549d2e,_0x25a73e,_0x2670a2,_0x2d69e1)=>{const _0x366bb5=_0x447b8f;for(var _0x537572=_0x2d69e1>0x1?void 0x0:_0x2d69e1?G(_0x25a73e,_0x2670a2):_0x25a73e,_0x51c023=_0x549d2e[_0x366bb5(0x1c4)]-0x1,_0x2022bf;_0x51c023>=0x0;_0x51c023--)(_0x2022bf=_0x549d2e[_0x51c023])&&(_0x537572=_0x2022bf(_0x537572)||_0x537572);return _0x537572;},d=(_0x341799,_0x1f7df0)=>(_0x74f504,_0x533bc3)=>_0x1f7df0(_0x74f504,_0x533bc3,_0x341799);let c=class extends _0x53fb17{constructor(_0x5c79e0,_0x30c812){const _0x5014a2=_0x447b8f;super(),this['_commandService']=_0x5c79e0,this[_0x5014a2(0x1d8)]=_0x30c812,this['_initCommands'](),this['_initMenus']();}['_initCommands'](){const _0x3bb65b=_0x447b8f;[p,u][_0x3bb65b(0x1cf)](_0x930ab1=>{const _0x2d9fa7=_0x3bb65b;this[_0x2d9fa7(0x1c3)](this[_0x2d9fa7(0x1db)][_0x2d9fa7(0x1f0)](_0x930ab1));});}[_0x447b8f(0x1c8)](){const _0x6007f5=_0x447b8f;this[_0x6007f5(0x1d8)][_0x6007f5(0x1e4)](F);}};c=A([d(0x0,_0x4e612f),d(0x1,_0x46214f)],c);var j=Object[_0x447b8f(0x1d5)],B=Object['getOwnPropertyDescriptor'],$=(_0x3b7aef,_0x396ea5,_0x15b6d6)=>_0x396ea5 in _0x3b7aef?j(_0x3b7aef,_0x396ea5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x15b6d6}):_0x3b7aef[_0x396ea5]=_0x15b6d6,V=(_0x275956,_0x5d8653,_0x58cfe0,_0x5581df)=>{for(var _0x4cb395=_0x5581df>0x1?void 0x0:_0x5581df?B(_0x5d8653,_0x58cfe0):_0x5d8653,_0x1a8c73=_0x275956['length']-0x1,_0x129af4;_0x1a8c73>=0x0;_0x1a8c73--)(_0x129af4=_0x275956[_0x1a8c73])&&(_0x4cb395=_0x129af4(_0x4cb395)||_0x4cb395);return _0x4cb395;},_=(_0x373c4e,_0x10739e)=>(_0x351aef,_0x1ae86b)=>_0x10739e(_0x351aef,_0x1ae86b,_0x373c4e),I=(_0x42b4f7,_0x5597d9,_0x4f7b8c)=>$(_0x42b4f7,typeof _0x5597d9!=_0x447b8f(0x1e6)?_0x5597d9+'':_0x5597d9,_0x4f7b8c);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x332cfc{constructor(_0x34451e=l,_0x36271c,_0x9faf8f){const _0x5d5b46=_0x447b8f;super(),this['_config']=_0x34451e,this[_0x5d5b46(0x1ef)]=_0x36271c,this[_0x5d5b46(0x1e5)]=_0x9faf8f;const {menu:_0x35d21b,..._0x4e9e55}=_0x2dd9f3({},l,this[_0x5d5b46(0x1cc)]);_0x35d21b&&this[_0x5d5b46(0x1e5)]['setConfig'](_0x5d5b46(0x1d6),_0x35d21b,{'merge':!0x0}),this[_0x5d5b46(0x1e5)][_0x5d5b46(0x1c5)](H,_0x4e9e55);}['onStarting'](){const _0x42ae0a=_0x447b8f;[[c]][_0x42ae0a(0x1cf)](_0x3aa0d9=>this[_0x42ae0a(0x1ef)][_0x42ae0a(0x1e9)](_0x3aa0d9));}[_0x447b8f(0x1ea)](){const _0x1fa0e6=_0x447b8f;this[_0x1fa0e6(0x1ef)][_0x1fa0e6(0x1e3)](c);}};I(s,_0x447b8f(0x1d9),W),I(s,_0x447b8f(0x1d1),_0x34299d[_0x447b8f(0x1d3)]),s=V([_0x5b7723(_0x3ac643),_(0x1,_0x1e8193(_0x1a5a37)),_(0x2,_0x3af90d)],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 _0x17fe(_0x289ad9,_0x5b911e){_0x289ad9=_0x289ad9-0xd0;const _0x154911=_0x1549();let _0x17feae=_0x154911[_0x289ad9];return _0x17feae;}function _0x1549(){const _0x26cb29=['@univerjs/sheets','_configService','registerCommand','UniverInstanceType','IConfigService','Inject','CommandType','15cCjTKu','_injector','UniverSheetsUi','exchange-client.operation.export-xlsx','BUTTON','@univerjs/sheets-ui','237708vEaomf','exchange.file','sheets-exchange-client.config','_commandService','_initCommands','DirectExportIcon','Module','90159Iwburr','type','onStarting','menu','OTHERS','@univerjs/ui','object','ExportIcon','setConfig','IMenuManagerService','forEach','UniverProExchangeClient','SHEET_EXCHANGE_CLIENT_PLUGIN','get','exports','mergeMenu','importXLSXToUnitId','FolderIcon','getOwnPropertyDescriptor','disposeWithMe','symbol','importXLSXToSnapshot','UniverSheets','unit','UniverSheetsExchangeClientPlugin','exportXLSXByUnitId','function','ICommandService','18gvUysj','pluginName','WorkbookExportPermission','merge','exchange.download','OPERATION','length','_menuManagerService','defineProperty','exchange-client.operation.import-xlsx','UniverCore','search','1235304Ptvivi','sheets-exchange-client.operation.exchange','ImportXLSXOperation','DependentOn','170256sHHfKm','_config','getCurrentRangeDisable$','7lhvMuY','Injector','SUBITEMS','ExportXLSXOperation','73204gvsPZG','2058050FnYORU','UNIVER_SHEET','@univerjs-pro/exchange-client','37768eflBXg','_initMenus','MenuItemType','UniverProSheetsExchangeClient'];_0x1549=function(){return _0x26cb29;};return _0x1549();}(function(_0x427e4b,_0x237aac){const _0x54c72c=_0x17fe,_0x6c3889=_0x427e4b();while(!![]){try{const _0x4b725b=-parseInt(_0x54c72c(0xd5))/0x1+-parseInt(_0x54c72c(0x108))/0x2+-parseInt(_0x54c72c(0xdc))/0x3+parseInt(_0x54c72c(0x10f))/0x4*(-parseInt(_0x54c72c(0x11e))/0x5)+parseInt(_0x54c72c(0x104))/0x6+-parseInt(_0x54c72c(0x10b))/0x7*(parseInt(_0x54c72c(0x113))/0x8)+parseInt(_0x54c72c(0xf8))/0x9*(parseInt(_0x54c72c(0x110))/0xa);if(_0x4b725b===_0x237aac)break;else _0x6c3889['push'](_0x6c3889['shift']());}catch(_0xed3b3c){_0x6c3889['push'](_0x6c3889['shift']());}}}(_0x1549,0x320b5),function(_0x4d5958,_0x2e1263){const _0x38247d=_0x17fe;typeof exports==_0x38247d(0xe2)&&typeof module<'u'?_0x2e1263(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x38247d(0xf6)&&define['amd']?define([_0x38247d(0xea),_0x38247d(0x112),'@univerjs/core',_0x38247d(0xe1),_0x38247d(0x117),_0x38247d(0xd4)],_0x2e1263):(_0x4d5958=typeof globalThis<'u'?globalThis:_0x4d5958||self,_0x2e1263(_0x4d5958[_0x38247d(0x116)]={},_0x4d5958[_0x38247d(0xe7)],_0x4d5958[_0x38247d(0x102)],_0x4d5958['UniverUi'],_0x4d5958[_0x38247d(0xf2)],_0x4d5958[_0x38247d(0xd1)]));}(this,function(_0x48e412,_0x38ed10,_0xfc1689,_0x34ec10,_0x4ad498,_0x5e3447){'use strict';const _0x2de70b=_0x17fe;const _0x5e012a={'id':_0x2de70b(0x101),'type':_0xfc1689[_0x2de70b(0x11d)][_0x2de70b(0xfd)],'handler':async _0x47485a=>{const _0x3bc668=_0x2de70b,_0x56f320=_0x47485a[_0x3bc668(0xe9)](_0x38ed10['IExchangeOperateService']);return new URLSearchParams(location[_0x3bc668(0x103)])[_0x3bc668(0xe9)](_0x3bc668(0xf3))?_0x56f320[_0x3bc668(0xec)]():_0x56f320[_0x3bc668(0xf1)](),!0x0;}},_0x12ff25={'id':_0x2de70b(0xd2),'type':_0xfc1689[_0x2de70b(0x11d)][_0x2de70b(0xfd)],'handler':async _0x558ae8=>{const _0x225762=_0x2de70b,_0x96125d=_0x558ae8[_0x225762(0xe9)](_0x38ed10['IExchangeOperateService']);return new URLSearchParams(location[_0x225762(0x103)])[_0x225762(0xe9)]('unit')?_0x96125d[_0x225762(0xf5)]():_0x96125d['exportXLSXBySnapshot'](),!0x0;}},_0x4cafdd=_0x2de70b(0xd7),_0x51bba4={},_0x4caeb5=_0x2de70b(0x105);function _0x33ab8b(_0x71f10a){const _0x1d779f=_0x2de70b;return{'id':_0x4caeb5,'type':_0x34ec10[_0x1d779f(0x115)][_0x1d779f(0x10d)],'icon':_0x1d779f(0xda),'tooltip':_0x1d779f(0xd6),'hidden$':_0x34ec10['getMenuHiddenObservable'](_0x71f10a,_0xfc1689[_0x1d779f(0x11a)][_0x1d779f(0x111)]),'disabled$':_0x5e3447[_0x1d779f(0x10a)](_0x71f10a,{'workbookTypes':[_0x4ad498[_0x1d779f(0xfa)]]})};}function _0x5d6f4c(){const _0x4cafe8=_0x2de70b;return{'id':_0x5e012a['id'],'type':_0x34ec10[_0x4cafe8(0x115)]['BUTTON'],'title':'exchange.upload','icon':_0x4cafe8(0xed)};}function _0x41186e(){const _0x5e1bc4=_0x2de70b;return{'id':_0x12ff25['id'],'type':_0x34ec10[_0x5e1bc4(0x115)][_0x5e1bc4(0xd3)],'title':_0x5e1bc4(0xfc),'icon':_0x5e1bc4(0xe3)};}const _0x22309d={[_0x34ec10['RibbonStartGroup'][_0x2de70b(0xe0)]]:{[_0x4caeb5]:{'order':0.3,'menuItemFactory':_0x33ab8b,[_0x5e012a['id']]:{'order':0x0,'menuItemFactory':_0x5d6f4c},[_0x12ff25['id']]:{'order':0x1,'menuItemFactory':_0x41186e}}}};var _0x12f630=Object[_0x2de70b(0xee)],_0x4ae244=(_0x51cb95,_0xc8bfc1,_0x4c57ed,_0x1137cb)=>{const _0x5e4549=_0x2de70b;for(var _0x33a4f8=_0x1137cb>0x1?void 0x0:_0x1137cb?_0x12f630(_0xc8bfc1,_0x4c57ed):_0xc8bfc1,_0x2c56cb=_0x51cb95[_0x5e4549(0xfe)]-0x1,_0x2d9a7d;_0x2c56cb>=0x0;_0x2c56cb--)(_0x2d9a7d=_0x51cb95[_0x2c56cb])&&(_0x33a4f8=_0x2d9a7d(_0x33a4f8)||_0x33a4f8);return _0x33a4f8;},_0x2fe538=(_0x501987,_0x2968b9)=>(_0x267a8e,_0x111997)=>_0x2968b9(_0x267a8e,_0x111997,_0x501987);let _0x3ef600=class extends _0xfc1689['Disposable']{constructor(_0x38ccb1,_0x321245){const _0x4b8f98=_0x2de70b;super(),this[_0x4b8f98(0xd8)]=_0x38ccb1,this['_menuManagerService']=_0x321245,this['_initCommands'](),this[_0x4b8f98(0x114)]();}[_0x2de70b(0xd9)](){const _0x2fc677=_0x2de70b;[_0x5e012a,_0x12ff25][_0x2fc677(0xe6)](_0x24e2c8=>{const _0x3068e5=_0x2fc677;this[_0x3068e5(0xef)](this['_commandService'][_0x3068e5(0x119)](_0x24e2c8));});}[_0x2de70b(0x114)](){const _0x1850fe=_0x2de70b;this[_0x1850fe(0xff)][_0x1850fe(0xeb)](_0x22309d);}};_0x3ef600=_0x4ae244([_0x2fe538(0x0,_0xfc1689[_0x2de70b(0xf7)]),_0x2fe538(0x1,_0x34ec10[_0x2de70b(0xe5)])],_0x3ef600);var _0x3dcbf5=Object[_0x2de70b(0x100)],_0x33ac9d=Object[_0x2de70b(0xee)],_0x4eb98b=(_0x3fab15,_0x3a3f51,_0x340959)=>_0x3a3f51 in _0x3fab15?_0x3dcbf5(_0x3fab15,_0x3a3f51,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x340959}):_0x3fab15[_0x3a3f51]=_0x340959,_0x4f2d6b=(_0x30ce6a,_0x53da6e,_0x3290b7,_0x2eac0f)=>{for(var _0x1ca25e=_0x2eac0f>0x1?void 0x0:_0x2eac0f?_0x33ac9d(_0x53da6e,_0x3290b7):_0x53da6e,_0x7bd353=_0x30ce6a['length']-0x1,_0x257b29;_0x7bd353>=0x0;_0x7bd353--)(_0x257b29=_0x30ce6a[_0x7bd353])&&(_0x1ca25e=_0x257b29(_0x1ca25e)||_0x1ca25e);return _0x1ca25e;},_0x44a961=(_0x336220,_0xb03596)=>(_0x57207a,_0x1e3f98)=>_0xb03596(_0x57207a,_0x1e3f98,_0x336220),_0x57b5c8=(_0x1ddfd4,_0x2db33b,_0x18ef3b)=>_0x4eb98b(_0x1ddfd4,typeof _0x2db33b!=_0x2de70b(0xf0)?_0x2db33b+'':_0x2db33b,_0x18ef3b);const _0x3787eb=_0x2de70b(0xe8);_0x48e412[_0x2de70b(0xf4)]=class extends _0xfc1689['Plugin']{constructor(_0x21b062=_0x51bba4,_0xbe1aa,_0x59d808){const _0x4d3c1e=_0x2de70b;super(),this['_config']=_0x21b062,this[_0x4d3c1e(0xd0)]=_0xbe1aa,this[_0x4d3c1e(0x118)]=_0x59d808;const {menu:_0x12d0c7,..._0x11c3cc}=_0xfc1689[_0x4d3c1e(0xfb)]({},_0x51bba4,this[_0x4d3c1e(0x109)]);_0x12d0c7&&this[_0x4d3c1e(0x118)][_0x4d3c1e(0xe4)](_0x4d3c1e(0xdf),_0x12d0c7,{'merge':!0x0}),this[_0x4d3c1e(0x118)][_0x4d3c1e(0xe4)](_0x4cafdd,_0x11c3cc);}[_0x2de70b(0xde)](){const _0x57b520=_0x2de70b;[[_0x3ef600]]['forEach'](_0x1f98be=>this[_0x57b520(0xd0)]['add'](_0x1f98be));}['onReady'](){const _0x45dbbe=_0x2de70b;this[_0x45dbbe(0xd0)][_0x45dbbe(0xe9)](_0x3ef600);}},_0x57b5c8(_0x48e412[_0x2de70b(0xf4)],_0x2de70b(0xf9),_0x3787eb),_0x57b5c8(_0x48e412[_0x2de70b(0xf4)],_0x2de70b(0xdd),_0xfc1689['UniverInstanceType'][_0x2de70b(0x111)]),_0x48e412['UniverSheetsExchangeClientPlugin']=_0x4f2d6b([_0xfc1689[_0x2de70b(0x107)](_0x38ed10['UniverExchangeClientPlugin']),_0x44a961(0x1,_0xfc1689[_0x2de70b(0x11c)](_0xfc1689[_0x2de70b(0x10c)])),_0x44a961(0x2,_0xfc1689[_0x2de70b(0x11b)])],_0x48e412[_0x2de70b(0xf4)]),_0x48e412[_0x2de70b(0x10e)]=_0x12ff25,_0x48e412[_0x2de70b(0x106)]=_0x5e012a,Object[_0x2de70b(0x100)](_0x48e412,Symbol['toStringTag'],{'value':_0x2de70b(0xdb)});}));
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.20260119-edc718c",
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.20260119-edc718c",
46
- "@univerjs/core": "0.15.2-insiders.20260119-edc718c",
47
- "@univerjs/sheets-ui": "0.15.2-insiders.20260119-edc718c",
48
- "@univerjs/sheets": "0.15.2-insiders.20260119-edc718c",
49
- "@univerjs/ui": "0.15.2-insiders.20260119-edc718c"
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",