@univerjs-pro/sheets-exchange-client 0.12.3 → 0.12.4-experimental.20251208-c4b8a44

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 _0x38024b=_0x236d;(function(_0x5cceae,_0x592acb){const _0x46fbd=_0x236d,_0x3f77a4=_0x5cceae();while(!![]){try{const _0x4fb755=-parseInt(_0x46fbd(0x72))/0x1*(-parseInt(_0x46fbd(0x7b))/0x2)+-parseInt(_0x46fbd(0x97))/0x3*(-parseInt(_0x46fbd(0x8f))/0x4)+parseInt(_0x46fbd(0x80))/0x5*(-parseInt(_0x46fbd(0x8c))/0x6)+-parseInt(_0x46fbd(0xad))/0x7+parseInt(_0x46fbd(0x76))/0x8*(-parseInt(_0x46fbd(0x99))/0x9)+parseInt(_0x46fbd(0x9a))/0xa+-parseInt(_0x46fbd(0x88))/0xb*(-parseInt(_0x46fbd(0x9f))/0xc);if(_0x4fb755===_0x592acb)break;else _0x3f77a4['push'](_0x3f77a4['shift']());}catch(_0x4cf7fb){_0x3f77a4['push'](_0x3f77a4['shift']());}}}(_0x5797,0x1b3d1));Object[_0x38024b(0x82)](exports,Symbol[_0x38024b(0x7c)],{'value':_0x38024b(0xae)});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':_0x38024b(0xa2),'type':i['CommandType'][_0x38024b(0x73)],'handler':async _0x50a71d=>{const _0x5ea145=_0x38024b,_0x38746c=_0x50a71d[_0x5ea145(0x9b)](g[_0x5ea145(0x86)]);return new URLSearchParams(location[_0x5ea145(0x85)])['get'](_0x5ea145(0x81))?_0x38746c['importXLSXToUnitId']():_0x38746c['importXLSXToSnapshot'](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i[_0x38024b(0x95)]['OPERATION'],'handler':async _0x34a039=>{const _0x4baae7=_0x38024b,_0x3f0886=_0x34a039['get'](g[_0x4baae7(0x86)]);return new URLSearchParams(location[_0x4baae7(0x85)])['get']('unit')?_0x3f0886['exportXLSXByUnitId']():_0x3f0886[_0x4baae7(0x9d)](),!0x0;}},v=_0x38024b(0x79),h={},S=_0x38024b(0xa9);function x(_0x46b325){const _0x3c00e3=_0x38024b;return{'id':S,'type':c['MenuItemType']['SUBITEMS'],'icon':_0x3c00e3(0x94),'tooltip':_0x3c00e3(0x77),'hidden$':c[_0x3c00e3(0x7e)](_0x46b325,i[_0x3c00e3(0x9c)][_0x3c00e3(0xac)]),'disabled$':I['getCurrentRangeDisable$'](_0x46b325,{'workbookTypes':[_[_0x3c00e3(0xa0)]]})};}function P(){const _0x924451=_0x38024b;return{'id':l['id'],'type':c[_0x924451(0x7f)]['BUTTON'],'title':_0x924451(0x8e),'icon':_0x924451(0xa6)};}function C(){const _0x4d8179=_0x38024b;return{'id':p['id'],'type':c[_0x4d8179(0x7f)][_0x4d8179(0xa1)],'title':_0x4d8179(0x70),'icon':'ExportIcon'};}const f={[c[_0x38024b(0x71)][_0x38024b(0xa4)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x38024b(0x8a)],y=(_0x3ff452,_0x323fbf,_0x26dd82,_0x267b86)=>{const _0x418506=_0x38024b;for(var _0x501686=_0x267b86>0x1?void 0x0:_0x267b86?T(_0x323fbf,_0x26dd82):_0x323fbf,_0x5467d1=_0x3ff452[_0x418506(0x75)]-0x1,_0xc4cfcb;_0x5467d1>=0x0;_0x5467d1--)(_0xc4cfcb=_0x3ff452[_0x5467d1])&&(_0x501686=_0xc4cfcb(_0x501686)||_0x501686);return _0x501686;},m=(_0x1f3bf9,_0x3c0c67)=>(_0x2a685e,_0x3bd7a7)=>_0x3c0c67(_0x2a685e,_0x3bd7a7,_0x1f3bf9);function _0x5797(){const _0x13cdfd=['UniverInstanceType','exportXLSXBySnapshot','Disposable','626676XJwRqD','WorkbookExportPermission','BUTTON','exchange-client.operation.import-xlsx','UniverSheetsExchangeClientPlugin','OTHERS','_config','FolderIcon','UniverExchangeClientPlugin','Injector','sheets-exchange-client.operation.exchange','DependentOn','forEach','UNIVER_SHEET','1529178wprsJP','Module','ICommandService','exchange.download','RibbonStartGroup','1HjoGJD','OPERATION','setConfig','length','175168baExqy','exchange.file','onStarting','sheets-exchange-client.config','disposeWithMe','276314teXKhe','toStringTag','SHEET_EXCHANGE_CLIENT_PLUGIN','getMenuHiddenObservable','MenuItemType','90830qmElHj','unit','defineProperty','mergeMenu','_injector','search','IExchangeOperateService','_commandService','11epTRjo','menu','getOwnPropertyDescriptor','IMenuManagerService','12ewVArW','_initMenus','exchange.upload','150508ypbaxy','type','Plugin','registerCommand','_configService','DirectExportIcon','CommandType','_initCommands','3QHSIFK','_menuManagerService','18fCqeTt','1821400XdcgoR','get'];_0x5797=function(){return _0x13cdfd;};return _0x5797();}let u=class extends i[_0x38024b(0x9e)]{constructor(_0x1dafd6,_0x3e795f){const _0x5ddf9a=_0x38024b;super(),this[_0x5ddf9a(0x87)]=_0x1dafd6,this['_menuManagerService']=_0x3e795f,this[_0x5ddf9a(0x96)](),this[_0x5ddf9a(0x8d)]();}[_0x38024b(0x96)](){const _0x33ed2e=_0x38024b;[l,p][_0x33ed2e(0xab)](_0x3fb9f5=>{const _0x4c4f5e=_0x33ed2e;this[_0x4c4f5e(0x7a)](this['_commandService'][_0x4c4f5e(0x92)](_0x3fb9f5));});}[_0x38024b(0x8d)](){const _0x3ed443=_0x38024b;this[_0x3ed443(0x98)][_0x3ed443(0x83)](f);}};u=y([m(0x0,i[_0x38024b(0xaf)]),m(0x1,c[_0x38024b(0x8b)])],u);var O=Object['defineProperty'],U=Object[_0x38024b(0x8a)],X=(_0x5b09e8,_0x29643f,_0x1312ec)=>_0x29643f in _0x5b09e8?O(_0x5b09e8,_0x29643f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1312ec}):_0x5b09e8[_0x29643f]=_0x1312ec,N=(_0x408917,_0x436c1b,_0x33c1fa,_0x17e770)=>{const _0xac6941=_0x38024b;for(var _0x56ed87=_0x17e770>0x1?void 0x0:_0x17e770?U(_0x436c1b,_0x33c1fa):_0x436c1b,_0x3d5c02=_0x408917[_0xac6941(0x75)]-0x1,_0x31664e;_0x3d5c02>=0x0;_0x3d5c02--)(_0x31664e=_0x408917[_0x3d5c02])&&(_0x56ed87=_0x31664e(_0x56ed87)||_0x56ed87);return _0x56ed87;},d=(_0x4c66ce,_0x453df2)=>(_0x3851d1,_0x1bb419)=>_0x453df2(_0x3851d1,_0x1bb419,_0x4c66ce),E=(_0x303b0b,_0xfa9d4b,_0x1a8d1b)=>X(_0x303b0b,typeof _0xfa9d4b!='symbol'?_0xfa9d4b+'':_0xfa9d4b,_0x1a8d1b);function _0x236d(_0x27df43,_0x407a67){const _0x5797ad=_0x5797();return _0x236d=function(_0x236d64,_0x3f86af){_0x236d64=_0x236d64-0x70;let _0xa9f7b=_0x5797ad[_0x236d64];return _0xa9f7b;},_0x236d(_0x27df43,_0x407a67);}const L=_0x38024b(0x7d);exports[_0x38024b(0xa3)]=class extends i[_0x38024b(0x91)]{constructor(_0x8918b1=h,_0x2e2246,_0x3aa06e){const _0x50c74e=_0x38024b;super(),this[_0x50c74e(0xa5)]=_0x8918b1,this[_0x50c74e(0x84)]=_0x2e2246,this[_0x50c74e(0x93)]=_0x3aa06e;const {menu:_0x44522b,..._0x346bc4}=i['merge']({},h,this[_0x50c74e(0xa5)]);_0x44522b&&this[_0x50c74e(0x93)][_0x50c74e(0x74)](_0x50c74e(0x89),_0x44522b,{'merge':!0x0}),this[_0x50c74e(0x93)][_0x50c74e(0x74)](v,_0x346bc4);}[_0x38024b(0x78)](){const _0x448254=_0x38024b;[[u]][_0x448254(0xab)](_0x48f229=>this[_0x448254(0x84)]['add'](_0x48f229));}['onReady'](){const _0x469522=_0x38024b;this[_0x469522(0x84)]['get'](u);}},E(exports[_0x38024b(0xa3)],'pluginName',L),E(exports[_0x38024b(0xa3)],_0x38024b(0x90),i[_0x38024b(0x9c)]['UNIVER_SHEET']),exports['UniverSheetsExchangeClientPlugin']=N([i[_0x38024b(0xaa)](g[_0x38024b(0xa7)]),d(0x1,i['Inject'](i[_0x38024b(0xa8)])),d(0x2,i['IConfigService'])],exports[_0x38024b(0xa3)]),exports['ExportXLSXOperation']=p,exports['ImportXLSXOperation']=l;
1
+ 'use strict';const _0x512115=_0x4ec3;(function(_0xde439d,_0x2da1c7){const _0x46fee9=_0x4ec3,_0x39e99f=_0xde439d();while(!![]){try{const _0x27ef4f=-parseInt(_0x46fee9(0xd4))/0x1+parseInt(_0x46fee9(0xdc))/0x2+-parseInt(_0x46fee9(0xd3))/0x3+-parseInt(_0x46fee9(0xf1))/0x4+parseInt(_0x46fee9(0xea))/0x5+parseInt(_0x46fee9(0xed))/0x6+parseInt(_0x46fee9(0x110))/0x7;if(_0x27ef4f===_0x2da1c7)break;else _0x39e99f['push'](_0x39e99f['shift']());}catch(_0x1124f6){_0x39e99f['push'](_0x39e99f['shift']());}}}(_0x4e52,0x19e9c));function _0x4e52(){const _0x2839ad=['_initCommands','onStarting','_menuManagerService','exchange.download','sheets-exchange-client.operation.exchange','_configService','SHEET_EXCHANGE_CLIENT_PLUGIN','mergeMenu','exportXLSXBySnapshot','IExchangeOperateService','Disposable','exportXLSXByUnitId','_commandService','OPERATION','_injector','getMenuHiddenObservable','BUTTON','registerCommand','setConfig','defineProperty','WorkbookExportPermission','ExportXLSXOperation','UNIVER_SHEET','unit','1649543RxhWLq','_initMenus','287856abtBPN','163332JwGDHD','type','add','UniverExchangeClientPlugin','exchange.upload','importXLSXToUnitId','symbol','SUBITEMS','247534aRQrbj','onReady','_config','sheets-exchange-client.config','Inject','DependentOn','forEach','get','ImportXLSXOperation','MenuItemType','OTHERS','search','IMenuManagerService','FolderIcon','335945yqyrhJ','length','CommandType','839118mabdiV','merge','UniverSheetsExchangeClientPlugin','ExportIcon','804136WuEWsM','ICommandService','UniverInstanceType','getOwnPropertyDescriptor','IConfigService','Module','toStringTag'];_0x4e52=function(){return _0x2839ad;};return _0x4e52();}Object[_0x512115(0x10b)](exports,Symbol[_0x512115(0xf7)],{'value':_0x512115(0xf6)});const g=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),c=require('@univerjs/ui'),_=require('@univerjs/sheets'),I=require('@univerjs/sheets-ui'),l={'id':'exchange-client.operation.import-xlsx','type':i['CommandType'][_0x512115(0x105)],'handler':async _0x2dc3c2=>{const _0x17a74d=_0x512115,_0x205dc5=_0x2dc3c2[_0x17a74d(0xe3)](g[_0x17a74d(0x101)]);return new URLSearchParams(location[_0x17a74d(0xe7)])[_0x17a74d(0xe3)](_0x17a74d(0x10f))?_0x205dc5[_0x17a74d(0xd9)]():_0x205dc5['importXLSXToSnapshot'](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i[_0x512115(0xec)][_0x512115(0x105)],'handler':async _0x20228a=>{const _0x3d135d=_0x512115,_0xe131b0=_0x20228a[_0x3d135d(0xe3)](g[_0x3d135d(0x101)]);return new URLSearchParams(location[_0x3d135d(0xe7)])[_0x3d135d(0xe3)]('unit')?_0xe131b0[_0x3d135d(0x103)]():_0xe131b0[_0x3d135d(0x100)](),!0x0;}},v=_0x512115(0xdf),h={},S=_0x512115(0xfc);function x(_0x5d55b2){const _0x18e47b=_0x512115;return{'id':S,'type':c[_0x18e47b(0xe5)][_0x18e47b(0xdb)],'icon':'DirectExportIcon','tooltip':'exchange.file','hidden$':c[_0x18e47b(0x107)](_0x5d55b2,i[_0x18e47b(0xf3)][_0x18e47b(0x10e)]),'disabled$':I['getCurrentRangeDisable$'](_0x5d55b2,{'workbookTypes':[_[_0x18e47b(0x10c)]]})};}function P(){const _0x3a8a95=_0x512115;return{'id':l['id'],'type':c[_0x3a8a95(0xe5)][_0x3a8a95(0x108)],'title':_0x3a8a95(0xd8),'icon':_0x3a8a95(0xe9)};}function C(){const _0x141a1b=_0x512115;return{'id':p['id'],'type':c[_0x141a1b(0xe5)][_0x141a1b(0x108)],'title':_0x141a1b(0xfb),'icon':_0x141a1b(0xf0)};}const f={[c['RibbonStartGroup'][_0x512115(0xe6)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x512115(0xf4)],y=(_0x504d38,_0x32e988,_0x424bfa,_0x12b7cd)=>{const _0x5d5890=_0x512115;for(var _0x5638a4=_0x12b7cd>0x1?void 0x0:_0x12b7cd?T(_0x32e988,_0x424bfa):_0x32e988,_0x2c7866=_0x504d38[_0x5d5890(0xeb)]-0x1,_0x454917;_0x2c7866>=0x0;_0x2c7866--)(_0x454917=_0x504d38[_0x2c7866])&&(_0x5638a4=_0x454917(_0x5638a4)||_0x5638a4);return _0x5638a4;},m=(_0x438011,_0x56218f)=>(_0x2fbb3c,_0x588609)=>_0x56218f(_0x2fbb3c,_0x588609,_0x438011);let u=class extends i[_0x512115(0x102)]{constructor(_0x5a2d9d,_0x303b43){const _0x489532=_0x512115;super(),this[_0x489532(0x104)]=_0x5a2d9d,this['_menuManagerService']=_0x303b43,this[_0x489532(0xf8)](),this[_0x489532(0x111)]();}['_initCommands'](){const _0x59e42e=_0x512115;[l,p][_0x59e42e(0xe2)](_0x3d6441=>{const _0x259c43=_0x59e42e;this['disposeWithMe'](this[_0x259c43(0x104)][_0x259c43(0x109)](_0x3d6441));});}['_initMenus'](){const _0x4c0658=_0x512115;this[_0x4c0658(0xfa)][_0x4c0658(0xff)](f);}};u=y([m(0x0,i[_0x512115(0xf2)]),m(0x1,c[_0x512115(0xe8)])],u);var O=Object[_0x512115(0x10b)],U=Object[_0x512115(0xf4)],X=(_0x35f005,_0x28241e,_0x3e5dfd)=>_0x28241e in _0x35f005?O(_0x35f005,_0x28241e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e5dfd}):_0x35f005[_0x28241e]=_0x3e5dfd,N=(_0x292c4b,_0x4b15a7,_0x44558b,_0x56e376)=>{const _0x5dc776=_0x512115;for(var _0x37cfad=_0x56e376>0x1?void 0x0:_0x56e376?U(_0x4b15a7,_0x44558b):_0x4b15a7,_0x38a456=_0x292c4b[_0x5dc776(0xeb)]-0x1,_0x3b74ce;_0x38a456>=0x0;_0x38a456--)(_0x3b74ce=_0x292c4b[_0x38a456])&&(_0x37cfad=_0x3b74ce(_0x37cfad)||_0x37cfad);return _0x37cfad;},d=(_0x15d268,_0x42c5a8)=>(_0x2608e1,_0x34ab1b)=>_0x42c5a8(_0x2608e1,_0x34ab1b,_0x15d268),E=(_0x2cd384,_0x4d177e,_0xda5e89)=>X(_0x2cd384,typeof _0x4d177e!=_0x512115(0xda)?_0x4d177e+'':_0x4d177e,_0xda5e89);const L=_0x512115(0xfe);function _0x4ec3(_0x54b89d,_0x50395c){_0x54b89d=_0x54b89d-0xd3;const _0x4e52c8=_0x4e52();let _0x4ec319=_0x4e52c8[_0x54b89d];return _0x4ec319;}exports[_0x512115(0xef)]=class extends i['Plugin']{constructor(_0x1e8abd=h,_0x2c51cd,_0x4b2868){const _0x72229d=_0x512115;super(),this[_0x72229d(0xde)]=_0x1e8abd,this['_injector']=_0x2c51cd,this[_0x72229d(0xfd)]=_0x4b2868;const {menu:_0x41b381,..._0x2eb547}=i[_0x72229d(0xee)]({},h,this['_config']);_0x41b381&&this['_configService']['setConfig']('menu',_0x41b381,{'merge':!0x0}),this[_0x72229d(0xfd)][_0x72229d(0x10a)](v,_0x2eb547);}[_0x512115(0xf9)](){const _0x4ca24b=_0x512115;[[u]]['forEach'](_0x2f0e9d=>this[_0x4ca24b(0x106)][_0x4ca24b(0xd6)](_0x2f0e9d));}[_0x512115(0xdd)](){const _0xace807=_0x512115;this[_0xace807(0x106)][_0xace807(0xe3)](u);}},E(exports[_0x512115(0xef)],'pluginName',L),E(exports[_0x512115(0xef)],_0x512115(0xd5),i[_0x512115(0xf3)]['UNIVER_SHEET']),exports['UniverSheetsExchangeClientPlugin']=N([i[_0x512115(0xe1)](g[_0x512115(0xd7)]),d(0x1,i[_0x512115(0xe0)](i['Injector'])),d(0x2,i[_0x512115(0xf5)])],exports['UniverSheetsExchangeClientPlugin']),exports[_0x512115(0x10d)]=p,exports[_0x512115(0xe4)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5df3b0=_0x5eca;function _0xc90b(){const _0x411be9=['getOwnPropertyDescriptor','OPERATION','sheets-exchange-client.config','_initMenus','search','_config','SUBITEMS','109984lwcyML','exchange.download','_initCommands','ExportIcon','importXLSXToSnapshot','exchange.file','exchange-client.operation.export-xlsx','_injector','2508495UkAycH','248528vAdquC','type','registerCommand','_commandService','menu','onReady','exportXLSXByUnitId','9AcZkpm','_configService','exportXLSXBySnapshot','forEach','_menuManagerService','BUTTON','36gLYjNG','exchange-client.operation.import-xlsx','length','10gDamTf','67905XjzGGT','add','54QqphBd','500752oyWJaL','mergeMenu','119086tTrpni','3553104aYbOaV','pluginName','get','OTHERS','importXLSXToUnitId','6Xrcxxu','unit','DirectExportIcon','FolderIcon'];_0xc90b=function(){return _0x411be9;};return _0xc90b();}(function(_0x33d16a,_0x4bd4eb){const _0x2317e9=_0x5eca,_0x17b745=_0x33d16a();while(!![]){try{const _0xd58207=parseInt(_0x2317e9(0x1cf))/0x1+parseInt(_0x2317e9(0x1e5))/0x2*(-parseInt(_0x2317e9(0x1d6))/0x3)+-parseInt(_0x2317e9(0x1dc))/0x4*(-parseInt(_0x2317e9(0x1e0))/0x5)+parseInt(_0x2317e9(0x1bb))/0x6*(-parseInt(_0x2317e9(0x1e3))/0x7)+parseInt(_0x2317e9(0x1c6))/0x8*(parseInt(_0x2317e9(0x1e2))/0x9)+parseInt(_0x2317e9(0x1df))/0xa*(parseInt(_0x2317e9(0x1ce))/0xb)+-parseInt(_0x2317e9(0x1e6))/0xc;if(_0xd58207===_0x4bd4eb)break;else _0x17b745['push'](_0x17b745['shift']());}catch(_0x3c4dfb){_0x17b745['push'](_0x17b745['shift']());}}}(_0xc90b,0x20f79));import{IExchangeOperateService as _0x7ec56f,UniverExchangeClientPlugin as _0x1cd750}from'@univerjs-pro/exchange-client';import{CommandType as _0x244966,UniverInstanceType as _0x3e8cfa,Disposable as _0x25519a,ICommandService as _0x5eecb5,DependentOn as _0x4e0dd4,Inject as _0x557523,Injector as _0x2c4625,IConfigService as _0x4d7886,Plugin as _0xa3bdd7,merge as _0x519047}from'@univerjs/core';import{MenuItemType as _0x2c591a,getMenuHiddenObservable as _0x1626b2,RibbonStartGroup as _0x869a8d,IMenuManagerService as _0x25e034}from'@univerjs/ui';import{WorkbookExportPermission as _0xcab270}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x17d51c}from'@univerjs/sheets-ui';const p={'id':_0x5df3b0(0x1dd),'type':_0x244966[_0x5df3b0(0x1c0)],'handler':async _0x4e9ef3=>{const _0x3b0a14=_0x5df3b0,_0x5ba97c=_0x4e9ef3['get'](_0x7ec56f);return new URLSearchParams(location[_0x3b0a14(0x1c3)])[_0x3b0a14(0x1e8)](_0x3b0a14(0x1bc))?_0x5ba97c[_0x3b0a14(0x1ea)]():_0x5ba97c[_0x3b0a14(0x1ca)](),!0x0;}},u={'id':_0x5df3b0(0x1cc),'type':_0x244966[_0x5df3b0(0x1c0)],'handler':async _0x22e7e5=>{const _0x43afd7=_0x5df3b0,_0x131d61=_0x22e7e5['get'](_0x7ec56f);return new URLSearchParams(location[_0x43afd7(0x1c3)])['get']('unit')?_0x131d61[_0x43afd7(0x1d5)]():_0x131d61[_0x43afd7(0x1d8)](),!0x0;}},H=_0x5df3b0(0x1c1),l={},S='sheets-exchange-client.operation.exchange';function R(_0x59f970){const _0x41d326=_0x5df3b0;return{'id':S,'type':_0x2c591a[_0x41d326(0x1c5)],'icon':_0x41d326(0x1bd),'tooltip':_0x41d326(0x1cb),'hidden$':_0x1626b2(_0x59f970,_0x3e8cfa['UNIVER_SHEET']),'disabled$':_0x17d51c(_0x59f970,{'workbookTypes':[_0xcab270]})};}function w(){const _0x1e5df2=_0x5df3b0;return{'id':p['id'],'type':_0x2c591a[_0x1e5df2(0x1db)],'title':'exchange.upload','icon':_0x1e5df2(0x1be)};}function D(){const _0x32e499=_0x5df3b0;return{'id':u['id'],'type':_0x2c591a[_0x32e499(0x1db)],'title':_0x32e499(0x1c7),'icon':_0x32e499(0x1c9)};}const F={[_0x869a8d[_0x5df3b0(0x1e9)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x1417e0,_0xdbdc4b,_0x25b868,_0x3b167f)=>{const _0x53391b=_0x5df3b0;for(var _0x26844d=_0x3b167f>0x1?void 0x0:_0x3b167f?G(_0xdbdc4b,_0x25b868):_0xdbdc4b,_0x15287a=_0x1417e0[_0x53391b(0x1de)]-0x1,_0x721f0b;_0x15287a>=0x0;_0x15287a--)(_0x721f0b=_0x1417e0[_0x15287a])&&(_0x26844d=_0x721f0b(_0x26844d)||_0x26844d);return _0x26844d;},d=(_0x320f1f,_0x334d32)=>(_0x7fd37d,_0x470ad7)=>_0x334d32(_0x7fd37d,_0x470ad7,_0x320f1f);let c=class extends _0x25519a{constructor(_0x5cdb8b,_0x4b64dd){const _0x394fde=_0x5df3b0;super(),this['_commandService']=_0x5cdb8b,this[_0x394fde(0x1da)]=_0x4b64dd,this[_0x394fde(0x1c8)](),this[_0x394fde(0x1c2)]();}[_0x5df3b0(0x1c8)](){const _0x3571fd=_0x5df3b0;[p,u][_0x3571fd(0x1d9)](_0x4ed2c5=>{const _0x2ce3f0=_0x3571fd;this['disposeWithMe'](this[_0x2ce3f0(0x1d2)][_0x2ce3f0(0x1d1)](_0x4ed2c5));});}['_initMenus'](){const _0x565cee=_0x5df3b0;this[_0x565cee(0x1da)][_0x565cee(0x1e4)](F);}};c=A([d(0x0,_0x5eecb5),d(0x1,_0x25e034)],c);var j=Object['defineProperty'],B=Object[_0x5df3b0(0x1bf)],$=(_0x162b0c,_0x5977f8,_0x5019c0)=>_0x5977f8 in _0x162b0c?j(_0x162b0c,_0x5977f8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5019c0}):_0x162b0c[_0x5977f8]=_0x5019c0,V=(_0x38546f,_0xe6c42b,_0x13fde7,_0x2727cb)=>{const _0x2b1a46=_0x5df3b0;for(var _0x45aadc=_0x2727cb>0x1?void 0x0:_0x2727cb?B(_0xe6c42b,_0x13fde7):_0xe6c42b,_0x42edc8=_0x38546f[_0x2b1a46(0x1de)]-0x1,_0x2556d8;_0x42edc8>=0x0;_0x42edc8--)(_0x2556d8=_0x38546f[_0x42edc8])&&(_0x45aadc=_0x2556d8(_0x45aadc)||_0x45aadc);return _0x45aadc;},_=(_0x144e60,_0x562868)=>(_0x169e81,_0x13ea79)=>_0x562868(_0x169e81,_0x13ea79,_0x144e60),I=(_0x7221c6,_0x2e39ec,_0x2dbcf3)=>$(_0x7221c6,typeof _0x2e39ec!='symbol'?_0x2e39ec+'':_0x2e39ec,_0x2dbcf3);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';function _0x5eca(_0x4836bd,_0x4cb882){const _0xc90b37=_0xc90b();return _0x5eca=function(_0x5eca48,_0xc90374){_0x5eca48=_0x5eca48-0x1bb;let _0x401cb4=_0xc90b37[_0x5eca48];return _0x401cb4;},_0x5eca(_0x4836bd,_0x4cb882);}let s=class extends _0xa3bdd7{constructor(_0x348d13=l,_0x42efa1,_0x20d04b){const _0x4b1196=_0x5df3b0;super(),this[_0x4b1196(0x1c4)]=_0x348d13,this[_0x4b1196(0x1cd)]=_0x42efa1,this[_0x4b1196(0x1d7)]=_0x20d04b;const {menu:_0x12efea,..._0x820f8b}=_0x519047({},l,this[_0x4b1196(0x1c4)]);_0x12efea&&this[_0x4b1196(0x1d7)]['setConfig'](_0x4b1196(0x1d3),_0x12efea,{'merge':!0x0}),this['_configService']['setConfig'](H,_0x820f8b);}['onStarting'](){const _0x5090f7=_0x5df3b0;[[c]][_0x5090f7(0x1d9)](_0x593409=>this[_0x5090f7(0x1cd)][_0x5090f7(0x1e1)](_0x593409));}[_0x5df3b0(0x1d4)](){const _0x2d9777=_0x5df3b0;this[_0x2d9777(0x1cd)][_0x2d9777(0x1e8)](c);}};I(s,_0x5df3b0(0x1e7),W),I(s,_0x5df3b0(0x1d0),_0x3e8cfa['UNIVER_SHEET']),s=V([_0x4e0dd4(_0x1cd750),_(0x1,_0x557523(_0x2c4625)),_(0x2,_0x4d7886)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x4b96bd=_0x3637;(function(_0x128765,_0x307309){const _0x4b4306=_0x3637,_0x5c5a7b=_0x128765();while(!![]){try{const _0x479f3f=parseInt(_0x4b4306(0x1c4))/0x1+-parseInt(_0x4b4306(0x1c3))/0x2+parseInt(_0x4b4306(0x1d1))/0x3*(parseInt(_0x4b4306(0x1d5))/0x4)+-parseInt(_0x4b4306(0x1ca))/0x5*(-parseInt(_0x4b4306(0x1b4))/0x6)+parseInt(_0x4b4306(0x1c8))/0x7+-parseInt(_0x4b4306(0x1cf))/0x8+parseInt(_0x4b4306(0x1d8))/0x9*(-parseInt(_0x4b4306(0x1cd))/0xa);if(_0x479f3f===_0x307309)break;else _0x5c5a7b['push'](_0x5c5a7b['shift']());}catch(_0x1a678b){_0x5c5a7b['push'](_0x5c5a7b['shift']());}}}(_0x10ff,0x95f01));import{IExchangeOperateService as _0x43b3c4,UniverExchangeClientPlugin as _0x13bcc8}from'@univerjs-pro/exchange-client';import{CommandType as _0x360bce,UniverInstanceType as _0x4645b5,Disposable as _0x3793cc,ICommandService as _0x2731f1,DependentOn as _0x3020db,Inject as _0x3d5833,Injector as _0x730e15,IConfigService as _0x1c1095,Plugin as _0x2623c4,merge as _0x1ee393}from'@univerjs/core';import{MenuItemType as _0x5db716,getMenuHiddenObservable as _0x86772e,RibbonStartGroup as _0x2986a8,IMenuManagerService as _0x1da84a}from'@univerjs/ui';import{WorkbookExportPermission as _0x37fa01}from'@univerjs/sheets';function _0x10ff(){const _0x1d64f8=['_initCommands','_config','exportXLSXByUnitId','6pENwxj','onStarting','mergeMenu','unit','type','setConfig','_commandService','UNIVER_SHEET','_menuManagerService','_configService','_injector','DirectExportIcon','defineProperty','length','_initMenus','205894XxMCfh','800362xYzkxi','OTHERS','OPERATION','exchange.upload','6521333kiYAWW','disposeWithMe','4404045BPgdFv','exportXLSXBySnapshot','SHEET_EXCHANGE_CLIENT_PLUGIN','30uYXbTK','symbol','8632992cvMdDA','forEach','5901eWcRxS','getOwnPropertyDescriptor','SUBITEMS','exchange.file','2152iIhdNy','exchange-client.operation.import-xlsx','sheets-exchange-client.operation.exchange','5624460VWKbYF','importXLSXToUnitId','BUTTON','search','FolderIcon','onReady','get','exchange-client.operation.export-xlsx','pluginName'];_0x10ff=function(){return _0x1d64f8;};return _0x10ff();}function _0x3637(_0x464496,_0x1cbe23){_0x464496=_0x464496-0x1ae;const _0x10ffdf=_0x10ff();let _0x3637d7=_0x10ffdf[_0x464496];return _0x3637d7;}import{getCurrentRangeDisable$ as _0x5441bc}from'@univerjs/sheets-ui';const p={'id':_0x4b96bd(0x1d6),'type':_0x360bce['OPERATION'],'handler':async _0x48c4f3=>{const _0x49303a=_0x4b96bd,_0x724ed4=_0x48c4f3[_0x49303a(0x1ae)](_0x43b3c4);return new URLSearchParams(location[_0x49303a(0x1db)])[_0x49303a(0x1ae)](_0x49303a(0x1b7))?_0x724ed4[_0x49303a(0x1d9)]():_0x724ed4['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x4b96bd(0x1af),'type':_0x360bce[_0x4b96bd(0x1c6)],'handler':async _0x5ade7c=>{const _0x1af888=_0x4b96bd,_0x545364=_0x5ade7c[_0x1af888(0x1ae)](_0x43b3c4);return new URLSearchParams(location['search'])[_0x1af888(0x1ae)](_0x1af888(0x1b7))?_0x545364[_0x1af888(0x1b3)]():_0x545364[_0x1af888(0x1cb)](),!0x0;}},H='sheets-exchange-client.config',l={},S=_0x4b96bd(0x1d7);function R(_0xfb60bc){const _0x39996d=_0x4b96bd;return{'id':S,'type':_0x5db716[_0x39996d(0x1d3)],'icon':_0x39996d(0x1bf),'tooltip':_0x39996d(0x1d4),'hidden$':_0x86772e(_0xfb60bc,_0x4645b5[_0x39996d(0x1bb)]),'disabled$':_0x5441bc(_0xfb60bc,{'workbookTypes':[_0x37fa01]})};}function w(){const _0x4167c4=_0x4b96bd;return{'id':p['id'],'type':_0x5db716[_0x4167c4(0x1da)],'title':_0x4167c4(0x1c7),'icon':_0x4167c4(0x1dc)};}function D(){const _0x25c398=_0x4b96bd;return{'id':u['id'],'type':_0x5db716[_0x25c398(0x1da)],'title':'exchange.download','icon':'ExportIcon'};}const F={[_0x2986a8[_0x4b96bd(0x1c5)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x4b96bd(0x1d2)],A=(_0x21dc2a,_0x4f1302,_0x322699,_0x3f9f7c)=>{const _0x3006ff=_0x4b96bd;for(var _0x2175f3=_0x3f9f7c>0x1?void 0x0:_0x3f9f7c?G(_0x4f1302,_0x322699):_0x4f1302,_0x43bf89=_0x21dc2a[_0x3006ff(0x1c1)]-0x1,_0x2a7d4e;_0x43bf89>=0x0;_0x43bf89--)(_0x2a7d4e=_0x21dc2a[_0x43bf89])&&(_0x2175f3=_0x2a7d4e(_0x2175f3)||_0x2175f3);return _0x2175f3;},d=(_0x572e10,_0x35b323)=>(_0x511446,_0x3f805a)=>_0x35b323(_0x511446,_0x3f805a,_0x572e10);let c=class extends _0x3793cc{constructor(_0x4d3eec,_0xc5b6){const _0x4865dd=_0x4b96bd;super(),this[_0x4865dd(0x1ba)]=_0x4d3eec,this['_menuManagerService']=_0xc5b6,this[_0x4865dd(0x1b1)](),this[_0x4865dd(0x1c2)]();}['_initCommands'](){const _0x1b7360=_0x4b96bd;[p,u][_0x1b7360(0x1d0)](_0x220012=>{const _0x4da070=_0x1b7360;this[_0x4da070(0x1c9)](this[_0x4da070(0x1ba)]['registerCommand'](_0x220012));});}['_initMenus'](){const _0x2fa4bd=_0x4b96bd;this[_0x2fa4bd(0x1bc)][_0x2fa4bd(0x1b6)](F);}};c=A([d(0x0,_0x2731f1),d(0x1,_0x1da84a)],c);var j=Object[_0x4b96bd(0x1c0)],B=Object[_0x4b96bd(0x1d2)],$=(_0x54d196,_0xde5351,_0x1b94b0)=>_0xde5351 in _0x54d196?j(_0x54d196,_0xde5351,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b94b0}):_0x54d196[_0xde5351]=_0x1b94b0,V=(_0x356661,_0x39ddad,_0x354f66,_0x5bd38a)=>{const _0x566299=_0x4b96bd;for(var _0x564d5d=_0x5bd38a>0x1?void 0x0:_0x5bd38a?B(_0x39ddad,_0x354f66):_0x39ddad,_0x314691=_0x356661[_0x566299(0x1c1)]-0x1,_0x5c1ea4;_0x314691>=0x0;_0x314691--)(_0x5c1ea4=_0x356661[_0x314691])&&(_0x564d5d=_0x5c1ea4(_0x564d5d)||_0x564d5d);return _0x564d5d;},_=(_0x24b530,_0x5cb9b0)=>(_0x2fe84c,_0x258c06)=>_0x5cb9b0(_0x2fe84c,_0x258c06,_0x24b530),I=(_0x30d63d,_0x13576a,_0xaf1153)=>$(_0x30d63d,typeof _0x13576a!=_0x4b96bd(0x1ce)?_0x13576a+'':_0x13576a,_0xaf1153);const W=_0x4b96bd(0x1cc);let s=class extends _0x2623c4{constructor(_0x1c821f=l,_0x1003a7,_0x43f819){const _0x28239b=_0x4b96bd;super(),this[_0x28239b(0x1b2)]=_0x1c821f,this[_0x28239b(0x1be)]=_0x1003a7,this[_0x28239b(0x1bd)]=_0x43f819;const {menu:_0x1121e6,..._0x56bfb0}=_0x1ee393({},l,this['_config']);_0x1121e6&&this[_0x28239b(0x1bd)][_0x28239b(0x1b9)]('menu',_0x1121e6,{'merge':!0x0}),this[_0x28239b(0x1bd)][_0x28239b(0x1b9)](H,_0x56bfb0);}[_0x4b96bd(0x1b5)](){const _0x398016=_0x4b96bd;[[c]][_0x398016(0x1d0)](_0x2fcff0=>this[_0x398016(0x1be)]['add'](_0x2fcff0));}[_0x4b96bd(0x1dd)](){const _0x34e69f=_0x4b96bd;this['_injector'][_0x34e69f(0x1ae)](c);}};I(s,_0x4b96bd(0x1b0),W),I(s,_0x4b96bd(0x1b8),_0x4645b5[_0x4b96bd(0x1bb)]),s=V([_0x3020db(_0x13bcc8),_(0x1,_0x3d5833(_0x730e15)),_(0x2,_0x1c1095)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5df3b0=_0x5eca;function _0xc90b(){const _0x411be9=['getOwnPropertyDescriptor','OPERATION','sheets-exchange-client.config','_initMenus','search','_config','SUBITEMS','109984lwcyML','exchange.download','_initCommands','ExportIcon','importXLSXToSnapshot','exchange.file','exchange-client.operation.export-xlsx','_injector','2508495UkAycH','248528vAdquC','type','registerCommand','_commandService','menu','onReady','exportXLSXByUnitId','9AcZkpm','_configService','exportXLSXBySnapshot','forEach','_menuManagerService','BUTTON','36gLYjNG','exchange-client.operation.import-xlsx','length','10gDamTf','67905XjzGGT','add','54QqphBd','500752oyWJaL','mergeMenu','119086tTrpni','3553104aYbOaV','pluginName','get','OTHERS','importXLSXToUnitId','6Xrcxxu','unit','DirectExportIcon','FolderIcon'];_0xc90b=function(){return _0x411be9;};return _0xc90b();}(function(_0x33d16a,_0x4bd4eb){const _0x2317e9=_0x5eca,_0x17b745=_0x33d16a();while(!![]){try{const _0xd58207=parseInt(_0x2317e9(0x1cf))/0x1+parseInt(_0x2317e9(0x1e5))/0x2*(-parseInt(_0x2317e9(0x1d6))/0x3)+-parseInt(_0x2317e9(0x1dc))/0x4*(-parseInt(_0x2317e9(0x1e0))/0x5)+parseInt(_0x2317e9(0x1bb))/0x6*(-parseInt(_0x2317e9(0x1e3))/0x7)+parseInt(_0x2317e9(0x1c6))/0x8*(parseInt(_0x2317e9(0x1e2))/0x9)+parseInt(_0x2317e9(0x1df))/0xa*(parseInt(_0x2317e9(0x1ce))/0xb)+-parseInt(_0x2317e9(0x1e6))/0xc;if(_0xd58207===_0x4bd4eb)break;else _0x17b745['push'](_0x17b745['shift']());}catch(_0x3c4dfb){_0x17b745['push'](_0x17b745['shift']());}}}(_0xc90b,0x20f79));import{IExchangeOperateService as _0x7ec56f,UniverExchangeClientPlugin as _0x1cd750}from'@univerjs-pro/exchange-client';import{CommandType as _0x244966,UniverInstanceType as _0x3e8cfa,Disposable as _0x25519a,ICommandService as _0x5eecb5,DependentOn as _0x4e0dd4,Inject as _0x557523,Injector as _0x2c4625,IConfigService as _0x4d7886,Plugin as _0xa3bdd7,merge as _0x519047}from'@univerjs/core';import{MenuItemType as _0x2c591a,getMenuHiddenObservable as _0x1626b2,RibbonStartGroup as _0x869a8d,IMenuManagerService as _0x25e034}from'@univerjs/ui';import{WorkbookExportPermission as _0xcab270}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x17d51c}from'@univerjs/sheets-ui';const p={'id':_0x5df3b0(0x1dd),'type':_0x244966[_0x5df3b0(0x1c0)],'handler':async _0x4e9ef3=>{const _0x3b0a14=_0x5df3b0,_0x5ba97c=_0x4e9ef3['get'](_0x7ec56f);return new URLSearchParams(location[_0x3b0a14(0x1c3)])[_0x3b0a14(0x1e8)](_0x3b0a14(0x1bc))?_0x5ba97c[_0x3b0a14(0x1ea)]():_0x5ba97c[_0x3b0a14(0x1ca)](),!0x0;}},u={'id':_0x5df3b0(0x1cc),'type':_0x244966[_0x5df3b0(0x1c0)],'handler':async _0x22e7e5=>{const _0x43afd7=_0x5df3b0,_0x131d61=_0x22e7e5['get'](_0x7ec56f);return new URLSearchParams(location[_0x43afd7(0x1c3)])['get']('unit')?_0x131d61[_0x43afd7(0x1d5)]():_0x131d61[_0x43afd7(0x1d8)](),!0x0;}},H=_0x5df3b0(0x1c1),l={},S='sheets-exchange-client.operation.exchange';function R(_0x59f970){const _0x41d326=_0x5df3b0;return{'id':S,'type':_0x2c591a[_0x41d326(0x1c5)],'icon':_0x41d326(0x1bd),'tooltip':_0x41d326(0x1cb),'hidden$':_0x1626b2(_0x59f970,_0x3e8cfa['UNIVER_SHEET']),'disabled$':_0x17d51c(_0x59f970,{'workbookTypes':[_0xcab270]})};}function w(){const _0x1e5df2=_0x5df3b0;return{'id':p['id'],'type':_0x2c591a[_0x1e5df2(0x1db)],'title':'exchange.upload','icon':_0x1e5df2(0x1be)};}function D(){const _0x32e499=_0x5df3b0;return{'id':u['id'],'type':_0x2c591a[_0x32e499(0x1db)],'title':_0x32e499(0x1c7),'icon':_0x32e499(0x1c9)};}const F={[_0x869a8d[_0x5df3b0(0x1e9)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x1417e0,_0xdbdc4b,_0x25b868,_0x3b167f)=>{const _0x53391b=_0x5df3b0;for(var _0x26844d=_0x3b167f>0x1?void 0x0:_0x3b167f?G(_0xdbdc4b,_0x25b868):_0xdbdc4b,_0x15287a=_0x1417e0[_0x53391b(0x1de)]-0x1,_0x721f0b;_0x15287a>=0x0;_0x15287a--)(_0x721f0b=_0x1417e0[_0x15287a])&&(_0x26844d=_0x721f0b(_0x26844d)||_0x26844d);return _0x26844d;},d=(_0x320f1f,_0x334d32)=>(_0x7fd37d,_0x470ad7)=>_0x334d32(_0x7fd37d,_0x470ad7,_0x320f1f);let c=class extends _0x25519a{constructor(_0x5cdb8b,_0x4b64dd){const _0x394fde=_0x5df3b0;super(),this['_commandService']=_0x5cdb8b,this[_0x394fde(0x1da)]=_0x4b64dd,this[_0x394fde(0x1c8)](),this[_0x394fde(0x1c2)]();}[_0x5df3b0(0x1c8)](){const _0x3571fd=_0x5df3b0;[p,u][_0x3571fd(0x1d9)](_0x4ed2c5=>{const _0x2ce3f0=_0x3571fd;this['disposeWithMe'](this[_0x2ce3f0(0x1d2)][_0x2ce3f0(0x1d1)](_0x4ed2c5));});}['_initMenus'](){const _0x565cee=_0x5df3b0;this[_0x565cee(0x1da)][_0x565cee(0x1e4)](F);}};c=A([d(0x0,_0x5eecb5),d(0x1,_0x25e034)],c);var j=Object['defineProperty'],B=Object[_0x5df3b0(0x1bf)],$=(_0x162b0c,_0x5977f8,_0x5019c0)=>_0x5977f8 in _0x162b0c?j(_0x162b0c,_0x5977f8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5019c0}):_0x162b0c[_0x5977f8]=_0x5019c0,V=(_0x38546f,_0xe6c42b,_0x13fde7,_0x2727cb)=>{const _0x2b1a46=_0x5df3b0;for(var _0x45aadc=_0x2727cb>0x1?void 0x0:_0x2727cb?B(_0xe6c42b,_0x13fde7):_0xe6c42b,_0x42edc8=_0x38546f[_0x2b1a46(0x1de)]-0x1,_0x2556d8;_0x42edc8>=0x0;_0x42edc8--)(_0x2556d8=_0x38546f[_0x42edc8])&&(_0x45aadc=_0x2556d8(_0x45aadc)||_0x45aadc);return _0x45aadc;},_=(_0x144e60,_0x562868)=>(_0x169e81,_0x13ea79)=>_0x562868(_0x169e81,_0x13ea79,_0x144e60),I=(_0x7221c6,_0x2e39ec,_0x2dbcf3)=>$(_0x7221c6,typeof _0x2e39ec!='symbol'?_0x2e39ec+'':_0x2e39ec,_0x2dbcf3);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';function _0x5eca(_0x4836bd,_0x4cb882){const _0xc90b37=_0xc90b();return _0x5eca=function(_0x5eca48,_0xc90374){_0x5eca48=_0x5eca48-0x1bb;let _0x401cb4=_0xc90b37[_0x5eca48];return _0x401cb4;},_0x5eca(_0x4836bd,_0x4cb882);}let s=class extends _0xa3bdd7{constructor(_0x348d13=l,_0x42efa1,_0x20d04b){const _0x4b1196=_0x5df3b0;super(),this[_0x4b1196(0x1c4)]=_0x348d13,this[_0x4b1196(0x1cd)]=_0x42efa1,this[_0x4b1196(0x1d7)]=_0x20d04b;const {menu:_0x12efea,..._0x820f8b}=_0x519047({},l,this[_0x4b1196(0x1c4)]);_0x12efea&&this[_0x4b1196(0x1d7)]['setConfig'](_0x4b1196(0x1d3),_0x12efea,{'merge':!0x0}),this['_configService']['setConfig'](H,_0x820f8b);}['onStarting'](){const _0x5090f7=_0x5df3b0;[[c]][_0x5090f7(0x1d9)](_0x593409=>this[_0x5090f7(0x1cd)][_0x5090f7(0x1e1)](_0x593409));}[_0x5df3b0(0x1d4)](){const _0x2d9777=_0x5df3b0;this[_0x2d9777(0x1cd)][_0x2d9777(0x1e8)](c);}};I(s,_0x5df3b0(0x1e7),W),I(s,_0x5df3b0(0x1d0),_0x3e8cfa['UNIVER_SHEET']),s=V([_0x4e0dd4(_0x1cd750),_(0x1,_0x557523(_0x2c4625)),_(0x2,_0x4d7886)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x4b96bd=_0x3637;(function(_0x128765,_0x307309){const _0x4b4306=_0x3637,_0x5c5a7b=_0x128765();while(!![]){try{const _0x479f3f=parseInt(_0x4b4306(0x1c4))/0x1+-parseInt(_0x4b4306(0x1c3))/0x2+parseInt(_0x4b4306(0x1d1))/0x3*(parseInt(_0x4b4306(0x1d5))/0x4)+-parseInt(_0x4b4306(0x1ca))/0x5*(-parseInt(_0x4b4306(0x1b4))/0x6)+parseInt(_0x4b4306(0x1c8))/0x7+-parseInt(_0x4b4306(0x1cf))/0x8+parseInt(_0x4b4306(0x1d8))/0x9*(-parseInt(_0x4b4306(0x1cd))/0xa);if(_0x479f3f===_0x307309)break;else _0x5c5a7b['push'](_0x5c5a7b['shift']());}catch(_0x1a678b){_0x5c5a7b['push'](_0x5c5a7b['shift']());}}}(_0x10ff,0x95f01));import{IExchangeOperateService as _0x43b3c4,UniverExchangeClientPlugin as _0x13bcc8}from'@univerjs-pro/exchange-client';import{CommandType as _0x360bce,UniverInstanceType as _0x4645b5,Disposable as _0x3793cc,ICommandService as _0x2731f1,DependentOn as _0x3020db,Inject as _0x3d5833,Injector as _0x730e15,IConfigService as _0x1c1095,Plugin as _0x2623c4,merge as _0x1ee393}from'@univerjs/core';import{MenuItemType as _0x5db716,getMenuHiddenObservable as _0x86772e,RibbonStartGroup as _0x2986a8,IMenuManagerService as _0x1da84a}from'@univerjs/ui';import{WorkbookExportPermission as _0x37fa01}from'@univerjs/sheets';function _0x10ff(){const _0x1d64f8=['_initCommands','_config','exportXLSXByUnitId','6pENwxj','onStarting','mergeMenu','unit','type','setConfig','_commandService','UNIVER_SHEET','_menuManagerService','_configService','_injector','DirectExportIcon','defineProperty','length','_initMenus','205894XxMCfh','800362xYzkxi','OTHERS','OPERATION','exchange.upload','6521333kiYAWW','disposeWithMe','4404045BPgdFv','exportXLSXBySnapshot','SHEET_EXCHANGE_CLIENT_PLUGIN','30uYXbTK','symbol','8632992cvMdDA','forEach','5901eWcRxS','getOwnPropertyDescriptor','SUBITEMS','exchange.file','2152iIhdNy','exchange-client.operation.import-xlsx','sheets-exchange-client.operation.exchange','5624460VWKbYF','importXLSXToUnitId','BUTTON','search','FolderIcon','onReady','get','exchange-client.operation.export-xlsx','pluginName'];_0x10ff=function(){return _0x1d64f8;};return _0x10ff();}function _0x3637(_0x464496,_0x1cbe23){_0x464496=_0x464496-0x1ae;const _0x10ffdf=_0x10ff();let _0x3637d7=_0x10ffdf[_0x464496];return _0x3637d7;}import{getCurrentRangeDisable$ as _0x5441bc}from'@univerjs/sheets-ui';const p={'id':_0x4b96bd(0x1d6),'type':_0x360bce['OPERATION'],'handler':async _0x48c4f3=>{const _0x49303a=_0x4b96bd,_0x724ed4=_0x48c4f3[_0x49303a(0x1ae)](_0x43b3c4);return new URLSearchParams(location[_0x49303a(0x1db)])[_0x49303a(0x1ae)](_0x49303a(0x1b7))?_0x724ed4[_0x49303a(0x1d9)]():_0x724ed4['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x4b96bd(0x1af),'type':_0x360bce[_0x4b96bd(0x1c6)],'handler':async _0x5ade7c=>{const _0x1af888=_0x4b96bd,_0x545364=_0x5ade7c[_0x1af888(0x1ae)](_0x43b3c4);return new URLSearchParams(location['search'])[_0x1af888(0x1ae)](_0x1af888(0x1b7))?_0x545364[_0x1af888(0x1b3)]():_0x545364[_0x1af888(0x1cb)](),!0x0;}},H='sheets-exchange-client.config',l={},S=_0x4b96bd(0x1d7);function R(_0xfb60bc){const _0x39996d=_0x4b96bd;return{'id':S,'type':_0x5db716[_0x39996d(0x1d3)],'icon':_0x39996d(0x1bf),'tooltip':_0x39996d(0x1d4),'hidden$':_0x86772e(_0xfb60bc,_0x4645b5[_0x39996d(0x1bb)]),'disabled$':_0x5441bc(_0xfb60bc,{'workbookTypes':[_0x37fa01]})};}function w(){const _0x4167c4=_0x4b96bd;return{'id':p['id'],'type':_0x5db716[_0x4167c4(0x1da)],'title':_0x4167c4(0x1c7),'icon':_0x4167c4(0x1dc)};}function D(){const _0x25c398=_0x4b96bd;return{'id':u['id'],'type':_0x5db716[_0x25c398(0x1da)],'title':'exchange.download','icon':'ExportIcon'};}const F={[_0x2986a8[_0x4b96bd(0x1c5)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x4b96bd(0x1d2)],A=(_0x21dc2a,_0x4f1302,_0x322699,_0x3f9f7c)=>{const _0x3006ff=_0x4b96bd;for(var _0x2175f3=_0x3f9f7c>0x1?void 0x0:_0x3f9f7c?G(_0x4f1302,_0x322699):_0x4f1302,_0x43bf89=_0x21dc2a[_0x3006ff(0x1c1)]-0x1,_0x2a7d4e;_0x43bf89>=0x0;_0x43bf89--)(_0x2a7d4e=_0x21dc2a[_0x43bf89])&&(_0x2175f3=_0x2a7d4e(_0x2175f3)||_0x2175f3);return _0x2175f3;},d=(_0x572e10,_0x35b323)=>(_0x511446,_0x3f805a)=>_0x35b323(_0x511446,_0x3f805a,_0x572e10);let c=class extends _0x3793cc{constructor(_0x4d3eec,_0xc5b6){const _0x4865dd=_0x4b96bd;super(),this[_0x4865dd(0x1ba)]=_0x4d3eec,this['_menuManagerService']=_0xc5b6,this[_0x4865dd(0x1b1)](),this[_0x4865dd(0x1c2)]();}['_initCommands'](){const _0x1b7360=_0x4b96bd;[p,u][_0x1b7360(0x1d0)](_0x220012=>{const _0x4da070=_0x1b7360;this[_0x4da070(0x1c9)](this[_0x4da070(0x1ba)]['registerCommand'](_0x220012));});}['_initMenus'](){const _0x2fa4bd=_0x4b96bd;this[_0x2fa4bd(0x1bc)][_0x2fa4bd(0x1b6)](F);}};c=A([d(0x0,_0x2731f1),d(0x1,_0x1da84a)],c);var j=Object[_0x4b96bd(0x1c0)],B=Object[_0x4b96bd(0x1d2)],$=(_0x54d196,_0xde5351,_0x1b94b0)=>_0xde5351 in _0x54d196?j(_0x54d196,_0xde5351,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b94b0}):_0x54d196[_0xde5351]=_0x1b94b0,V=(_0x356661,_0x39ddad,_0x354f66,_0x5bd38a)=>{const _0x566299=_0x4b96bd;for(var _0x564d5d=_0x5bd38a>0x1?void 0x0:_0x5bd38a?B(_0x39ddad,_0x354f66):_0x39ddad,_0x314691=_0x356661[_0x566299(0x1c1)]-0x1,_0x5c1ea4;_0x314691>=0x0;_0x314691--)(_0x5c1ea4=_0x356661[_0x314691])&&(_0x564d5d=_0x5c1ea4(_0x564d5d)||_0x564d5d);return _0x564d5d;},_=(_0x24b530,_0x5cb9b0)=>(_0x2fe84c,_0x258c06)=>_0x5cb9b0(_0x2fe84c,_0x258c06,_0x24b530),I=(_0x30d63d,_0x13576a,_0xaf1153)=>$(_0x30d63d,typeof _0x13576a!=_0x4b96bd(0x1ce)?_0x13576a+'':_0x13576a,_0xaf1153);const W=_0x4b96bd(0x1cc);let s=class extends _0x2623c4{constructor(_0x1c821f=l,_0x1003a7,_0x43f819){const _0x28239b=_0x4b96bd;super(),this[_0x28239b(0x1b2)]=_0x1c821f,this[_0x28239b(0x1be)]=_0x1003a7,this[_0x28239b(0x1bd)]=_0x43f819;const {menu:_0x1121e6,..._0x56bfb0}=_0x1ee393({},l,this['_config']);_0x1121e6&&this[_0x28239b(0x1bd)][_0x28239b(0x1b9)]('menu',_0x1121e6,{'merge':!0x0}),this[_0x28239b(0x1bd)][_0x28239b(0x1b9)](H,_0x56bfb0);}[_0x4b96bd(0x1b5)](){const _0x398016=_0x4b96bd;[[c]][_0x398016(0x1d0)](_0x2fcff0=>this[_0x398016(0x1be)]['add'](_0x2fcff0));}[_0x4b96bd(0x1dd)](){const _0x34e69f=_0x4b96bd;this['_injector'][_0x34e69f(0x1ae)](c);}};I(s,_0x4b96bd(0x1b0),W),I(s,_0x4b96bd(0x1b8),_0x4645b5[_0x4b96bd(0x1bb)]),s=V([_0x3020db(_0x13bcc8),_(0x1,_0x3d5833(_0x730e15)),_(0x2,_0x1c1095)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x25b3c6,_0x34c7a8){const _0x315e5a=_0x9ff4,_0x54c6e2=_0x25b3c6();while(!![]){try{const _0x73ceb1=-parseInt(_0x315e5a(0x120))/0x1*(parseInt(_0x315e5a(0x110))/0x2)+parseInt(_0x315e5a(0x11a))/0x3+parseInt(_0x315e5a(0xfc))/0x4*(-parseInt(_0x315e5a(0xed))/0x5)+parseInt(_0x315e5a(0xd9))/0x6+-parseInt(_0x315e5a(0xf4))/0x7+-parseInt(_0x315e5a(0xfa))/0x8*(-parseInt(_0x315e5a(0x11d))/0x9)+parseInt(_0x315e5a(0x115))/0xa*(parseInt(_0x315e5a(0x107))/0xb);if(_0x73ceb1===_0x34c7a8)break;else _0x54c6e2['push'](_0x54c6e2['shift']());}catch(_0x589957){_0x54c6e2['push'](_0x54c6e2['shift']());}}}(_0x302c,0x79198),function(_0x1f1e89,_0x17c233){const _0x550522=_0x9ff4;typeof exports=='object'&&typeof module<'u'?_0x17c233(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x550522(0x11e)]?define([_0x550522(0x10d),'@univerjs-pro/exchange-client',_0x550522(0xeb),_0x550522(0xf0),_0x550522(0x101),_0x550522(0xe2)],_0x17c233):(_0x1f1e89=typeof globalThis<'u'?globalThis:_0x1f1e89||self,_0x17c233(_0x1f1e89[_0x550522(0x109)]={},_0x1f1e89[_0x550522(0x118)],_0x1f1e89[_0x550522(0x100)],_0x1f1e89[_0x550522(0x11b)],_0x1f1e89[_0x550522(0x119)],_0x1f1e89['UniverSheetsUi']));}(this,function(_0x3a14ea,_0x480483,_0x47204a,_0x302843,_0x3dee67,_0x2a869d){'use strict';const _0x2cf11f=_0x9ff4;const _0x5f0844={'id':_0x2cf11f(0xf7),'type':_0x47204a[_0x2cf11f(0xea)][_0x2cf11f(0xe9)],'handler':async _0x26c6e9=>{const _0x399882=_0x2cf11f,_0xb5bfc8=_0x26c6e9[_0x399882(0x106)](_0x480483[_0x399882(0xdf)]);return new URLSearchParams(location[_0x399882(0x11c)])[_0x399882(0x106)](_0x399882(0xee))?_0xb5bfc8['importXLSXToUnitId']():_0xb5bfc8['importXLSXToSnapshot'](),!0x0;}},_0x3ffd12={'id':_0x2cf11f(0xd8),'type':_0x47204a['CommandType'][_0x2cf11f(0xe9)],'handler':async _0x2d472b=>{const _0x22ca65=_0x2cf11f,_0x783f52=_0x2d472b['get'](_0x480483[_0x22ca65(0xdf)]);return new URLSearchParams(location[_0x22ca65(0x11c)])[_0x22ca65(0x106)](_0x22ca65(0xee))?_0x783f52[_0x22ca65(0x10c)]():_0x783f52[_0x22ca65(0xe4)](),!0x0;}},_0x5b3dbd='sheets-exchange-client.config',_0x43236f={},_0x43f79e=_0x2cf11f(0xf9);function _0x51d38b(_0x32031b){const _0x5ba450=_0x2cf11f;return{'id':_0x43f79e,'type':_0x302843['MenuItemType'][_0x5ba450(0x10a)],'icon':_0x5ba450(0xda),'tooltip':'exchange.file','hidden$':_0x302843[_0x5ba450(0x116)](_0x32031b,_0x47204a['UniverInstanceType'][_0x5ba450(0xde)]),'disabled$':_0x2a869d[_0x5ba450(0xf6)](_0x32031b,{'workbookTypes':[_0x3dee67[_0x5ba450(0x10e)]]})};}function _0x152c93(){const _0x3b11b4=_0x2cf11f;return{'id':_0x5f0844['id'],'type':_0x302843[_0x3b11b4(0x112)][_0x3b11b4(0xe0)],'title':_0x3b11b4(0xe3),'icon':_0x3b11b4(0x113)};}function _0x216e5a(){const _0x348f1c=_0x2cf11f;return{'id':_0x3ffd12['id'],'type':_0x302843[_0x348f1c(0x112)][_0x348f1c(0xe0)],'title':_0x348f1c(0x121),'icon':'ExportIcon'};}const _0x1f1846={[_0x302843[_0x2cf11f(0xdd)][_0x2cf11f(0x105)]]:{[_0x43f79e]:{'order':0.3,'menuItemFactory':_0x51d38b,[_0x5f0844['id']]:{'order':0x0,'menuItemFactory':_0x152c93},[_0x3ffd12['id']]:{'order':0x1,'menuItemFactory':_0x216e5a}}}};var _0x189785=Object[_0x2cf11f(0x11f)],_0x41c883=(_0x41ed66,_0x3a8965,_0x54e81e,_0x1d155b)=>{const _0x54dfbf=_0x2cf11f;for(var _0x541968=_0x1d155b>0x1?void 0x0:_0x1d155b?_0x189785(_0x3a8965,_0x54e81e):_0x3a8965,_0x20ba0f=_0x41ed66[_0x54dfbf(0x111)]-0x1,_0x1a0433;_0x20ba0f>=0x0;_0x20ba0f--)(_0x1a0433=_0x41ed66[_0x20ba0f])&&(_0x541968=_0x1a0433(_0x541968)||_0x541968);return _0x541968;},_0x32d506=(_0x56e1f0,_0x5dfe72)=>(_0x38aee2,_0x6ee180)=>_0x5dfe72(_0x38aee2,_0x6ee180,_0x56e1f0);let _0x55def6=class extends _0x47204a[_0x2cf11f(0x108)]{constructor(_0x1b8bf6,_0x5d43b6){const _0x314b42=_0x2cf11f;super(),this['_commandService']=_0x1b8bf6,this[_0x314b42(0x10f)]=_0x5d43b6,this['_initCommands'](),this[_0x314b42(0xdb)]();}[_0x2cf11f(0xec)](){const _0x4193a7=_0x2cf11f;[_0x5f0844,_0x3ffd12][_0x4193a7(0xf2)](_0x471e47=>{const _0x37ab67=_0x4193a7;this[_0x37ab67(0xe6)](this['_commandService'][_0x37ab67(0xff)](_0x471e47));});}[_0x2cf11f(0xdb)](){const _0x1ea0e6=_0x2cf11f;this['_menuManagerService'][_0x1ea0e6(0xdc)](_0x1f1846);}};_0x55def6=_0x41c883([_0x32d506(0x0,_0x47204a[_0x2cf11f(0xd7)]),_0x32d506(0x1,_0x302843[_0x2cf11f(0x10b)])],_0x55def6);var _0x20ac4a=Object[_0x2cf11f(0xf1)],_0x1ac131=Object['getOwnPropertyDescriptor'],_0x13c98c=(_0x105f1b,_0x1905ab,_0x56cc9c)=>_0x1905ab in _0x105f1b?_0x20ac4a(_0x105f1b,_0x1905ab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56cc9c}):_0x105f1b[_0x1905ab]=_0x56cc9c,_0x5510f1=(_0x2a8b6c,_0x4886bb,_0x1e0ea6,_0x46512c)=>{const _0x185424=_0x2cf11f;for(var _0x25cd1c=_0x46512c>0x1?void 0x0:_0x46512c?_0x1ac131(_0x4886bb,_0x1e0ea6):_0x4886bb,_0x152d1f=_0x2a8b6c[_0x185424(0x111)]-0x1,_0x5e95de;_0x152d1f>=0x0;_0x152d1f--)(_0x5e95de=_0x2a8b6c[_0x152d1f])&&(_0x25cd1c=_0x5e95de(_0x25cd1c)||_0x25cd1c);return _0x25cd1c;},_0x4a4d16=(_0x310574,_0x7bce21)=>(_0x4a6969,_0x5094d3)=>_0x7bce21(_0x4a6969,_0x5094d3,_0x310574),_0x29b41c=(_0x58d2ff,_0x3453cd,_0xa563fe)=>_0x13c98c(_0x58d2ff,typeof _0x3453cd!='symbol'?_0x3453cd+'':_0x3453cd,_0xa563fe);const _0x352d0d=_0x2cf11f(0xe5);_0x3a14ea[_0x2cf11f(0x104)]=class extends _0x47204a['Plugin']{constructor(_0x4fb555=_0x43236f,_0x5f055a,_0x55aaa4){const _0x44f574=_0x2cf11f;super(),this['_config']=_0x4fb555,this[_0x44f574(0x103)]=_0x5f055a,this[_0x44f574(0x102)]=_0x55aaa4;const {menu:_0x346ff1,..._0xcc20c7}=_0x47204a['merge']({},_0x43236f,this[_0x44f574(0x123)]);_0x346ff1&&this[_0x44f574(0x102)]['setConfig']('menu',_0x346ff1,{'merge':!0x0}),this[_0x44f574(0x102)][_0x44f574(0x122)](_0x5b3dbd,_0xcc20c7);}[_0x2cf11f(0xfd)](){const _0x21a420=_0x2cf11f;[[_0x55def6]]['forEach'](_0x5a8a1c=>this[_0x21a420(0x103)][_0x21a420(0xf3)](_0x5a8a1c));}[_0x2cf11f(0x114)](){const _0x773e22=_0x2cf11f;this[_0x773e22(0x103)][_0x773e22(0x106)](_0x55def6);}},_0x29b41c(_0x3a14ea[_0x2cf11f(0x104)],_0x2cf11f(0xfb),_0x352d0d),_0x29b41c(_0x3a14ea[_0x2cf11f(0x104)],'type',_0x47204a[_0x2cf11f(0xf8)][_0x2cf11f(0xde)]),_0x3a14ea[_0x2cf11f(0x104)]=_0x5510f1([_0x47204a[_0x2cf11f(0xef)](_0x480483[_0x2cf11f(0xe7)]),_0x4a4d16(0x1,_0x47204a[_0x2cf11f(0xf5)](_0x47204a['Injector'])),_0x4a4d16(0x2,_0x47204a[_0x2cf11f(0x117)])],_0x3a14ea['UniverSheetsExchangeClientPlugin']),_0x3a14ea[_0x2cf11f(0xe8)]=_0x3ffd12,_0x3a14ea[_0x2cf11f(0xe1)]=_0x5f0844,Object[_0x2cf11f(0xf1)](_0x3a14ea,Symbol[_0x2cf11f(0xfe)],{'value':'Module'});}));function _0x9ff4(_0x107848,_0x3dee8b){const _0x302cf7=_0x302c();return _0x9ff4=function(_0x9ff46f,_0x4e65ac){_0x9ff46f=_0x9ff46f-0xd7;let _0x588a56=_0x302cf7[_0x9ff46f];return _0x588a56;},_0x9ff4(_0x107848,_0x3dee8b);}function _0x302c(){const _0x26aa8e=['SHEET_EXCHANGE_CLIENT_PLUGIN','disposeWithMe','UniverExchangeClientPlugin','ExportXLSXOperation','OPERATION','CommandType','@univerjs/core','_initCommands','33045zDUuPX','unit','DependentOn','@univerjs/ui','defineProperty','forEach','add','53501YSrAEt','Inject','getCurrentRangeDisable$','exchange-client.operation.import-xlsx','UniverInstanceType','sheets-exchange-client.operation.exchange','568KipxsM','pluginName','472ebMgLL','onStarting','toStringTag','registerCommand','UniverCore','@univerjs/sheets','_configService','_injector','UniverSheetsExchangeClientPlugin','OTHERS','get','1607276lmYqdR','Disposable','UniverProSheetsExchangeClient','SUBITEMS','IMenuManagerService','exportXLSXByUnitId','exports','WorkbookExportPermission','_menuManagerService','2aaiqEo','length','MenuItemType','FolderIcon','onReady','80uaFLYZ','getMenuHiddenObservable','IConfigService','UniverProExchangeClient','UniverSheets','48924LIwJpW','UniverUi','search','12114IyqAbC','amd','getOwnPropertyDescriptor','729503CauPSG','exchange.download','setConfig','_config','ICommandService','exchange-client.operation.export-xlsx','4393380bgasFZ','DirectExportIcon','_initMenus','mergeMenu','RibbonStartGroup','UNIVER_SHEET','IExchangeOperateService','BUTTON','ImportXLSXOperation','@univerjs/sheets-ui','exchange.upload','exportXLSXBySnapshot'];_0x302c=function(){return _0x26aa8e;};return _0x302c();}
1
+ (function(_0x5618e0,_0x16e3d1){const _0x5c534b=_0x2f73,_0x272442=_0x5618e0();while(!![]){try{const _0x42b86e=parseInt(_0x5c534b(0x113))/0x1+parseInt(_0x5c534b(0x103))/0x2*(-parseInt(_0x5c534b(0x112))/0x3)+parseInt(_0x5c534b(0xe0))/0x4*(-parseInt(_0x5c534b(0xf7))/0x5)+-parseInt(_0x5c534b(0x115))/0x6*(parseInt(_0x5c534b(0xfd))/0x7)+-parseInt(_0x5c534b(0xdc))/0x8*(parseInt(_0x5c534b(0xe1))/0x9)+-parseInt(_0x5c534b(0xf9))/0xa*(parseInt(_0x5c534b(0xd9))/0xb)+-parseInt(_0x5c534b(0xd0))/0xc*(-parseInt(_0x5c534b(0x10e))/0xd);if(_0x42b86e===_0x16e3d1)break;else _0x272442['push'](_0x272442['shift']());}catch(_0x311d1e){_0x272442['push'](_0x272442['shift']());}}}(_0x4310,0x702fa),function(_0x80b91a,_0x2f0013){const _0x2dbd2f=_0x2f73;typeof exports==_0x2dbd2f(0xd3)&&typeof module<'u'?_0x2f0013(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x2dbd2f(0xe6)&&define[_0x2dbd2f(0xda)]?define([_0x2dbd2f(0xe2),'@univerjs-pro/exchange-client',_0x2dbd2f(0x109),'@univerjs/ui',_0x2dbd2f(0xd1),_0x2dbd2f(0x10a)],_0x2f0013):(_0x80b91a=typeof globalThis<'u'?globalThis:_0x80b91a||self,_0x2f0013(_0x80b91a['UniverProSheetsExchangeClient']={},_0x80b91a['UniverProExchangeClient'],_0x80b91a[_0x2dbd2f(0xcf)],_0x80b91a[_0x2dbd2f(0xdb)],_0x80b91a[_0x2dbd2f(0xee)],_0x80b91a[_0x2dbd2f(0x108)]));}(this,function(_0x3ad91b,_0x1c7520,_0x39c0d5,_0x1e7e13,_0x254837,_0x16535c){'use strict';const _0x3c13d3=_0x2f73;const _0xff9dd7={'id':_0x3c13d3(0xd4),'type':_0x39c0d5['CommandType']['OPERATION'],'handler':async _0x408615=>{const _0x2b5bc2=_0x3c13d3,_0x1d1f98=_0x408615[_0x2b5bc2(0xe7)](_0x1c7520[_0x2b5bc2(0x100)]);return new URLSearchParams(location[_0x2b5bc2(0x106)])[_0x2b5bc2(0xe7)](_0x2b5bc2(0xd2))?_0x1d1f98[_0x2b5bc2(0xfa)]():_0x1d1f98['importXLSXToSnapshot'](),!0x0;}},_0x4b2a46={'id':_0x3c13d3(0xf8),'type':_0x39c0d5[_0x3c13d3(0xce)][_0x3c13d3(0x107)],'handler':async _0x3ecce5=>{const _0x5df0b9=_0x3c13d3,_0x2f08d0=_0x3ecce5[_0x5df0b9(0xe7)](_0x1c7520[_0x5df0b9(0x100)]);return new URLSearchParams(location[_0x5df0b9(0x106)])[_0x5df0b9(0xe7)]('unit')?_0x2f08d0[_0x5df0b9(0x119)]():_0x2f08d0[_0x5df0b9(0x118)](),!0x0;}},_0x144110=_0x3c13d3(0x110),_0x530508={},_0x4f8cbd=_0x3c13d3(0xff);function _0x564567(_0x31e2c9){const _0x3abe18=_0x3c13d3;return{'id':_0x4f8cbd,'type':_0x1e7e13[_0x3abe18(0x11c)][_0x3abe18(0x10c)],'icon':_0x3abe18(0xf1),'tooltip':'exchange.file','hidden$':_0x1e7e13['getMenuHiddenObservable'](_0x31e2c9,_0x39c0d5[_0x3abe18(0x101)][_0x3abe18(0xec)]),'disabled$':_0x16535c[_0x3abe18(0x11a)](_0x31e2c9,{'workbookTypes':[_0x254837[_0x3abe18(0xe8)]]})};}function _0xe39b64(){const _0xcb0926=_0x3c13d3;return{'id':_0xff9dd7['id'],'type':_0x1e7e13['MenuItemType'][_0xcb0926(0xd6)],'title':'exchange.upload','icon':_0xcb0926(0xf3)};}function _0x28f757(){const _0x4269ce=_0x3c13d3;return{'id':_0x4b2a46['id'],'type':_0x1e7e13[_0x4269ce(0x11c)][_0x4269ce(0xd6)],'title':_0x4269ce(0xd8),'icon':_0x4269ce(0x10d)};}const _0x1a59a2={[_0x1e7e13[_0x3c13d3(0xfc)]['OTHERS']]:{[_0x4f8cbd]:{'order':0.3,'menuItemFactory':_0x564567,[_0xff9dd7['id']]:{'order':0x0,'menuItemFactory':_0xe39b64},[_0x4b2a46['id']]:{'order':0x1,'menuItemFactory':_0x28f757}}}};var _0x135580=Object[_0x3c13d3(0x114)],_0x1c0cb9=(_0x1f5639,_0x2a1fb8,_0x3b257c,_0x4b66af)=>{const _0x347d35=_0x3c13d3;for(var _0x5e156a=_0x4b66af>0x1?void 0x0:_0x4b66af?_0x135580(_0x2a1fb8,_0x3b257c):_0x2a1fb8,_0x31b035=_0x1f5639[_0x347d35(0x102)]-0x1,_0x37c7ef;_0x31b035>=0x0;_0x31b035--)(_0x37c7ef=_0x1f5639[_0x31b035])&&(_0x5e156a=_0x37c7ef(_0x5e156a)||_0x5e156a);return _0x5e156a;},_0x48a344=(_0x139bbd,_0xa4315c)=>(_0x39e6ab,_0x511d73)=>_0xa4315c(_0x39e6ab,_0x511d73,_0x139bbd);let _0x34cece=class extends _0x39c0d5[_0x3c13d3(0x117)]{constructor(_0x54e1dc,_0x4707f2){const _0x256c76=_0x3c13d3;super(),this[_0x256c76(0xf6)]=_0x54e1dc,this[_0x256c76(0xea)]=_0x4707f2,this[_0x256c76(0x116)](),this[_0x256c76(0x10b)]();}[_0x3c13d3(0x116)](){const _0x4e1c1a=_0x3c13d3;[_0xff9dd7,_0x4b2a46][_0x4e1c1a(0xf2)](_0x153392=>{const _0x25064c=_0x4e1c1a;this[_0x25064c(0xd5)](this[_0x25064c(0xf6)]['registerCommand'](_0x153392));});}[_0x3c13d3(0x10b)](){const _0x1514ef=_0x3c13d3;this[_0x1514ef(0xea)][_0x1514ef(0x11b)](_0x1a59a2);}};_0x34cece=_0x1c0cb9([_0x48a344(0x0,_0x39c0d5['ICommandService']),_0x48a344(0x1,_0x1e7e13[_0x3c13d3(0xcc)])],_0x34cece);var _0x1b5333=Object['defineProperty'],_0x4a6eca=Object[_0x3c13d3(0x114)],_0x12e964=(_0x334cfe,_0x98eca9,_0x5d16f3)=>_0x98eca9 in _0x334cfe?_0x1b5333(_0x334cfe,_0x98eca9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d16f3}):_0x334cfe[_0x98eca9]=_0x5d16f3,_0x28ac60=(_0x55f2eb,_0x434526,_0x463100,_0x3cd02a)=>{for(var _0x23e052=_0x3cd02a>0x1?void 0x0:_0x3cd02a?_0x4a6eca(_0x434526,_0x463100):_0x434526,_0x449cac=_0x55f2eb['length']-0x1,_0x648c20;_0x449cac>=0x0;_0x449cac--)(_0x648c20=_0x55f2eb[_0x449cac])&&(_0x23e052=_0x648c20(_0x23e052)||_0x23e052);return _0x23e052;},_0x448b73=(_0x1bc85c,_0x1ee956)=>(_0xe36a46,_0x378634)=>_0x1ee956(_0xe36a46,_0x378634,_0x1bc85c),_0xfaa6f3=(_0xc08265,_0x1939dc,_0x776acb)=>_0x12e964(_0xc08265,typeof _0x1939dc!=_0x3c13d3(0xdf)?_0x1939dc+'':_0x1939dc,_0x776acb);const _0x206f34=_0x3c13d3(0xdd);_0x3ad91b[_0x3c13d3(0x111)]=class extends _0x39c0d5['Plugin']{constructor(_0x2a3db7=_0x530508,_0x574002,_0x23594a){const _0x48bd58=_0x3c13d3;super(),this[_0x48bd58(0xde)]=_0x2a3db7,this[_0x48bd58(0x105)]=_0x574002,this[_0x48bd58(0xcd)]=_0x23594a;const {menu:_0x1a6e4e,..._0x38d4f6}=_0x39c0d5[_0x48bd58(0x104)]({},_0x530508,this[_0x48bd58(0xde)]);_0x1a6e4e&&this[_0x48bd58(0xcd)]['setConfig'](_0x48bd58(0xf5),_0x1a6e4e,{'merge':!0x0}),this['_configService'][_0x48bd58(0xeb)](_0x144110,_0x38d4f6);}[_0x3c13d3(0xe3)](){const _0x3c7191=_0x3c13d3;[[_0x34cece]][_0x3c7191(0xf2)](_0x30cc4e=>this['_injector'][_0x3c7191(0xf0)](_0x30cc4e));}[_0x3c13d3(0xed)](){const _0xc30cba=_0x3c13d3;this[_0xc30cba(0x105)]['get'](_0x34cece);}},_0xfaa6f3(_0x3ad91b[_0x3c13d3(0x111)],_0x3c13d3(0xf4),_0x206f34),_0xfaa6f3(_0x3ad91b['UniverSheetsExchangeClientPlugin'],_0x3c13d3(0x10f),_0x39c0d5[_0x3c13d3(0x101)][_0x3c13d3(0xec)]),_0x3ad91b[_0x3c13d3(0x111)]=_0x28ac60([_0x39c0d5['DependentOn'](_0x1c7520[_0x3c13d3(0xe9)]),_0x448b73(0x1,_0x39c0d5[_0x3c13d3(0xfb)](_0x39c0d5[_0x3c13d3(0xfe)])),_0x448b73(0x2,_0x39c0d5['IConfigService'])],_0x3ad91b[_0x3c13d3(0x111)]),_0x3ad91b[_0x3c13d3(0xd7)]=_0x4b2a46,_0x3ad91b['ImportXLSXOperation']=_0xff9dd7,Object[_0x3c13d3(0xe5)](_0x3ad91b,Symbol[_0x3c13d3(0xe4)],{'value':_0x3c13d3(0xef)});}));function _0x2f73(_0x24e623,_0x2cbd13){_0x24e623=_0x24e623-0xcc;const _0x431000=_0x4310();let _0x2f734e=_0x431000[_0x24e623];return _0x2f734e;}function _0x4310(){const _0x5e1f3a=['search','OPERATION','UniverSheetsUi','@univerjs/core','@univerjs/sheets-ui','_initMenus','SUBITEMS','ExportIcon','3762304tYspbK','type','sheets-exchange-client.config','UniverSheetsExchangeClientPlugin','3SlWqDt','46747iUMCdv','getOwnPropertyDescriptor','180492NujjtI','_initCommands','Disposable','exportXLSXBySnapshot','exportXLSXByUnitId','getCurrentRangeDisable$','mergeMenu','MenuItemType','IMenuManagerService','_configService','CommandType','UniverCore','156YiBsEy','@univerjs/sheets','unit','object','exchange-client.operation.import-xlsx','disposeWithMe','BUTTON','ExportXLSXOperation','exchange.download','725791GhLUlQ','amd','UniverUi','8MenZcx','SHEET_EXCHANGE_CLIENT_PLUGIN','_config','symbol','547224CmdFLx','3127473EnwdDa','exports','onStarting','toStringTag','defineProperty','function','get','WorkbookExportPermission','UniverExchangeClientPlugin','_menuManagerService','setConfig','UNIVER_SHEET','onReady','UniverSheets','Module','add','DirectExportIcon','forEach','FolderIcon','pluginName','menu','_commandService','30mytZWw','exchange-client.operation.export-xlsx','110QhrEqp','importXLSXToUnitId','Inject','RibbonStartGroup','182rezAOh','Injector','sheets-exchange-client.operation.exchange','IExchangeOperateService','UniverInstanceType','length','1346562PtZvBy','merge','_injector'];_0x4310=function(){return _0x5e1f3a;};return _0x4310();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.12.3",
3
+ "version": "0.12.4-experimental.20251208-c4b8a44",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -42,17 +42,17 @@
42
42
  "lib"
43
43
  ],
44
44
  "dependencies": {
45
- "@univerjs-pro/exchange-client": "0.12.3",
46
- "@univerjs/sheets": "0.12.3",
47
- "@univerjs/core": "0.12.3",
48
- "@univerjs/sheets-ui": "0.12.3",
49
- "@univerjs/ui": "0.12.3"
45
+ "@univerjs-pro/exchange-client": "0.12.4-experimental.20251208-c4b8a44",
46
+ "@univerjs/core": "0.12.4-experimental.20251208-c4b8a44",
47
+ "@univerjs/sheets-ui": "0.12.4-experimental.20251208-c4b8a44",
48
+ "@univerjs/sheets": "0.12.4-experimental.20251208-c4b8a44",
49
+ "@univerjs/ui": "0.12.4-experimental.20251208-c4b8a44"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",
53
- "vite": "^7.2.4",
54
- "vitest": "^4.0.14",
55
- "@univerjs-infra/shared": "0.12.3"
53
+ "vite": "^7.2.6",
54
+ "vitest": "^4.0.15",
55
+ "@univerjs-infra/shared": "0.12.4"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run",