@univerjs-pro/sheets-exchange-client 0.12.4-experimental.20251211-e01e32a → 0.12.4-insiders.20251212-6c41730

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 _0xbc587c=_0x24bb;(function(_0x476b63,_0x22c4ee){const _0xf00772=_0x24bb,_0xaac3a8=_0x476b63();while(!![]){try{const _0x49decb=parseInt(_0xf00772(0xfe))/0x1*(-parseInt(_0xf00772(0x112))/0x2)+-parseInt(_0xf00772(0xfb))/0x3+-parseInt(_0xf00772(0x10c))/0x4*(parseInt(_0xf00772(0x105))/0x5)+parseInt(_0xf00772(0xf2))/0x6*(-parseInt(_0xf00772(0xf6))/0x7)+-parseInt(_0xf00772(0xf5))/0x8+-parseInt(_0xf00772(0xf7))/0x9+parseInt(_0xf00772(0x123))/0xa;if(_0x49decb===_0x22c4ee)break;else _0xaac3a8['push'](_0xaac3a8['shift']());}catch(_0x53997d){_0xaac3a8['push'](_0xaac3a8['shift']());}}}(_0xc01d,0x5ba47));Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0xbc587c(0xff)});function _0x24bb(_0x2b718b,_0x363e8f){_0x2b718b=_0x2b718b-0xeb;const _0xc01dbc=_0xc01d();let _0x24bbaf=_0xc01dbc[_0x2b718b];return _0x24bbaf;}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':_0xbc587c(0x102),'type':i[_0xbc587c(0x120)][_0xbc587c(0xef)],'handler':async _0x29c12e=>{const _0x7bbd47=_0xbc587c,_0x49e25b=_0x29c12e[_0x7bbd47(0xfc)](g[_0x7bbd47(0xfa)]);return new URLSearchParams(location[_0x7bbd47(0x107)])[_0x7bbd47(0xfc)]('unit')?_0x49e25b['importXLSXToUnitId']():_0x49e25b[_0x7bbd47(0x11b)](),!0x0;}},p={'id':_0xbc587c(0x10f),'type':i[_0xbc587c(0x120)][_0xbc587c(0xef)],'handler':async _0x135a48=>{const _0x4f1708=_0xbc587c,_0x2625f=_0x135a48[_0x4f1708(0xfc)](g[_0x4f1708(0xfa)]);return new URLSearchParams(location['search'])[_0x4f1708(0xfc)](_0x4f1708(0x116))?_0x2625f[_0x4f1708(0xf8)]():_0x2625f[_0x4f1708(0x114)](),!0x0;}},v=_0xbc587c(0xf9),h={},S='sheets-exchange-client.operation.exchange';function x(_0x1e8d13){const _0x2de472=_0xbc587c;return{'id':S,'type':c[_0x2de472(0xee)][_0x2de472(0x115)],'icon':'DirectExportIcon','tooltip':_0x2de472(0x121),'hidden$':c[_0x2de472(0xfd)](_0x1e8d13,i[_0x2de472(0xec)]['UNIVER_SHEET']),'disabled$':I[_0x2de472(0x104)](_0x1e8d13,{'workbookTypes':[_[_0x2de472(0xed)]]})};}function P(){const _0xdc6d0c=_0xbc587c;return{'id':l['id'],'type':c[_0xdc6d0c(0xee)][_0xdc6d0c(0x11d)],'title':_0xdc6d0c(0x101),'icon':_0xdc6d0c(0x10a)};}function C(){const _0x1a1aff=_0xbc587c;return{'id':p['id'],'type':c[_0x1a1aff(0xee)][_0x1a1aff(0x11d)],'title':'exchange.download','icon':_0x1a1aff(0x122)};}const f={[c['RibbonStartGroup']['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};function _0xc01d(){const _0x202e03=['length','onReady','UniverSheetsExchangeClientPlugin','UniverInstanceType','WorkbookExportPermission','MenuItemType','OPERATION','symbol','_menuManagerService','51294rxDUPj','_config','IConfigService','5203408KRXGXS','581HlnetD','1743399vAsteq','exportXLSXByUnitId','sheets-exchange-client.config','IExchangeOperateService','1400421HXJPzc','get','getMenuHiddenObservable','239lARLgY','Module','_configService','exchange.upload','exchange-client.operation.import-xlsx','Plugin','getCurrentRangeDisable$','5wJBGbM','pluginName','search','disposeWithMe','ExportXLSXOperation','FolderIcon','_commandService','1486172VlKYVK','ImportXLSXOperation','type','exchange-client.operation.export-xlsx','_injector','mergeMenu','3158PNAMZQ','_initCommands','exportXLSXBySnapshot','SUBITEMS','unit','_initMenus','UniverExchangeClientPlugin','forEach','IMenuManagerService','importXLSXToSnapshot','getOwnPropertyDescriptor','BUTTON','DependentOn','setConfig','CommandType','exchange.file','ExportIcon','31448020sQOQSY','Inject'];_0xc01d=function(){return _0x202e03;};return _0xc01d();}var T=Object[_0xbc587c(0x11c)],y=(_0x13f528,_0x3ad958,_0x4e6060,_0x27a1ed)=>{for(var _0x56470c=_0x27a1ed>0x1?void 0x0:_0x27a1ed?T(_0x3ad958,_0x4e6060):_0x3ad958,_0x4d3859=_0x13f528['length']-0x1,_0x6166f7;_0x4d3859>=0x0;_0x4d3859--)(_0x6166f7=_0x13f528[_0x4d3859])&&(_0x56470c=_0x6166f7(_0x56470c)||_0x56470c);return _0x56470c;},m=(_0x234be3,_0x4c6839)=>(_0x26452,_0x5ee8cf)=>_0x4c6839(_0x26452,_0x5ee8cf,_0x234be3);let u=class extends i['Disposable']{constructor(_0x578cb6,_0x58d27c){const _0x1d1514=_0xbc587c;super(),this[_0x1d1514(0x10b)]=_0x578cb6,this[_0x1d1514(0xf1)]=_0x58d27c,this[_0x1d1514(0x113)](),this[_0x1d1514(0x117)]();}[_0xbc587c(0x113)](){const _0xd911c8=_0xbc587c;[l,p][_0xd911c8(0x119)](_0x28f63f=>{const _0x1790ac=_0xd911c8;this[_0x1790ac(0x108)](this[_0x1790ac(0x10b)]['registerCommand'](_0x28f63f));});}[_0xbc587c(0x117)](){const _0x34b94e=_0xbc587c;this[_0x34b94e(0xf1)][_0x34b94e(0x111)](f);}};u=y([m(0x0,i['ICommandService']),m(0x1,c[_0xbc587c(0x11a)])],u);var O=Object['defineProperty'],U=Object[_0xbc587c(0x11c)],X=(_0x164ce3,_0x345442,_0x56602f)=>_0x345442 in _0x164ce3?O(_0x164ce3,_0x345442,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56602f}):_0x164ce3[_0x345442]=_0x56602f,N=(_0x2203db,_0xbc190b,_0x369905,_0x4ccd3e)=>{const _0x584a0e=_0xbc587c;for(var _0x16e790=_0x4ccd3e>0x1?void 0x0:_0x4ccd3e?U(_0xbc190b,_0x369905):_0xbc190b,_0x158a44=_0x2203db[_0x584a0e(0x125)]-0x1,_0x24b380;_0x158a44>=0x0;_0x158a44--)(_0x24b380=_0x2203db[_0x158a44])&&(_0x16e790=_0x24b380(_0x16e790)||_0x16e790);return _0x16e790;},d=(_0x351d50,_0x83ba4f)=>(_0x38f058,_0x398f6d)=>_0x83ba4f(_0x38f058,_0x398f6d,_0x351d50),E=(_0x5bde3d,_0x432ae0,_0x811551)=>X(_0x5bde3d,typeof _0x432ae0!=_0xbc587c(0xf0)?_0x432ae0+'':_0x432ae0,_0x811551);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports[_0xbc587c(0xeb)]=class extends i[_0xbc587c(0x103)]{constructor(_0x1dba77=h,_0x447ee9,_0x1068b2){const _0x240acd=_0xbc587c;super(),this['_config']=_0x1dba77,this['_injector']=_0x447ee9,this[_0x240acd(0x100)]=_0x1068b2;const {menu:_0x13db2e,..._0x2edfc8}=i['merge']({},h,this[_0x240acd(0xf3)]);_0x13db2e&&this[_0x240acd(0x100)][_0x240acd(0x11f)]('menu',_0x13db2e,{'merge':!0x0}),this[_0x240acd(0x100)][_0x240acd(0x11f)](v,_0x2edfc8);}['onStarting'](){const _0xbe02fb=_0xbc587c;[[u]][_0xbe02fb(0x119)](_0x4adf3c=>this[_0xbe02fb(0x110)]['add'](_0x4adf3c));}[_0xbc587c(0x126)](){const _0x284aed=_0xbc587c;this[_0x284aed(0x110)][_0x284aed(0xfc)](u);}},E(exports[_0xbc587c(0xeb)],_0xbc587c(0x106),L),E(exports[_0xbc587c(0xeb)],_0xbc587c(0x10e),i['UniverInstanceType']['UNIVER_SHEET']),exports[_0xbc587c(0xeb)]=N([i[_0xbc587c(0x11e)](g[_0xbc587c(0x118)]),d(0x1,i[_0xbc587c(0x124)](i['Injector'])),d(0x2,i[_0xbc587c(0xf4)])],exports['UniverSheetsExchangeClientPlugin']),exports[_0xbc587c(0x109)]=p,exports[_0xbc587c(0x10d)]=l;
1
+ 'use strict';const _0x55f798=_0x1b33;(function(_0x7a46b5,_0x2e1868){const _0x411b80=_0x1b33,_0x5d1a94=_0x7a46b5();while(!![]){try{const _0x23d7f9=-parseInt(_0x411b80(0xa1))/0x1+-parseInt(_0x411b80(0x90))/0x2+parseInt(_0x411b80(0x87))/0x3*(parseInt(_0x411b80(0x7b))/0x4)+-parseInt(_0x411b80(0x7d))/0x5+-parseInt(_0x411b80(0x8e))/0x6*(-parseInt(_0x411b80(0x80))/0x7)+-parseInt(_0x411b80(0x91))/0x8+-parseInt(_0x411b80(0x7c))/0x9*(-parseInt(_0x411b80(0xab))/0xa);if(_0x23d7f9===_0x2e1868)break;else _0x5d1a94['push'](_0x5d1a94['shift']());}catch(_0x469b72){_0x5d1a94['push'](_0x5d1a94['shift']());}}}(_0x3fae,0xe33e5));Object[_0x55f798(0x9a)](exports,Symbol[_0x55f798(0xb0)],{'value':_0x55f798(0xa6)});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[_0x55f798(0x83)][_0x55f798(0x96)],'handler':async _0x285059=>{const _0x4c85cd=_0x55f798,_0x29d4e0=_0x285059[_0x4c85cd(0xb6)](g[_0x4c85cd(0x79)]);return new URLSearchParams(location['search'])[_0x4c85cd(0xb6)](_0x4c85cd(0x7a))?_0x29d4e0[_0x4c85cd(0xaf)]():_0x29d4e0[_0x4c85cd(0x9c)](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i[_0x55f798(0x83)][_0x55f798(0x96)],'handler':async _0xe5ab11=>{const _0x24f9d6=_0x55f798,_0x9b96c4=_0xe5ab11['get'](g[_0x24f9d6(0x79)]);return new URLSearchParams(location['search'])[_0x24f9d6(0xb6)]('unit')?_0x9b96c4[_0x24f9d6(0x85)]():_0x9b96c4[_0x24f9d6(0xa8)](),!0x0;}},v=_0x55f798(0xb4),h={},S='sheets-exchange-client.operation.exchange';function x(_0x1eab54){const _0x45bbe8=_0x55f798;return{'id':S,'type':c[_0x45bbe8(0x9f)][_0x45bbe8(0xa4)],'icon':'DirectExportIcon','tooltip':'exchange.file','hidden$':c[_0x45bbe8(0x8f)](_0x1eab54,i['UniverInstanceType'][_0x45bbe8(0x8b)]),'disabled$':I[_0x45bbe8(0xac)](_0x1eab54,{'workbookTypes':[_[_0x45bbe8(0x95)]]})};}function P(){const _0x11bb92=_0x55f798;return{'id':l['id'],'type':c[_0x11bb92(0x9f)][_0x11bb92(0xb5)],'title':_0x11bb92(0x86),'icon':_0x11bb92(0x94)};}function _0x3fae(){const _0x3b424f=['Injector','1221322WpbKGw','onStarting','ImportXLSXOperation','SUBITEMS','ExportXLSXOperation','Module','forEach','exportXLSXBySnapshot','length','UniverExchangeClientPlugin','130uPLhty','getCurrentRangeDisable$','_initMenus','Inject','importXLSXToUnitId','toStringTag','_injector','_commandService','_initCommands','sheets-exchange-client.config','BUTTON','get','menu','_configService','UniverSheetsExchangeClientPlugin','type','IExchangeOperateService','unit','14664TgDDsW','2110743dbsNZD','907205noNfYb','IMenuManagerService','add','238jLPWIW','getOwnPropertyDescriptor','_config','CommandType','mergeMenu','exportXLSXByUnitId','exchange.upload','762PfEniQ','_menuManagerService','RibbonStartGroup','symbol','UNIVER_SHEET','registerCommand','IConfigService','89730SvcGbl','getMenuHiddenObservable','3042238xDDJQo','5070512LQidgj','OTHERS','merge','FolderIcon','WorkbookExportPermission','OPERATION','Plugin','ICommandService','onReady','defineProperty','setConfig','importXLSXToSnapshot','exchange.download','DependentOn','MenuItemType'];_0x3fae=function(){return _0x3b424f;};return _0x3fae();}function C(){const _0x31bb5a=_0x55f798;return{'id':p['id'],'type':c['MenuItemType']['BUTTON'],'title':_0x31bb5a(0x9d),'icon':'ExportIcon'};}const f={[c[_0x55f798(0x89)][_0x55f798(0x92)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x55f798(0x81)],y=(_0x516867,_0x5b3786,_0x3ad509,_0x4c2efe)=>{const _0x166924=_0x55f798;for(var _0x304933=_0x4c2efe>0x1?void 0x0:_0x4c2efe?T(_0x5b3786,_0x3ad509):_0x5b3786,_0x363632=_0x516867[_0x166924(0xa9)]-0x1,_0x13aaf3;_0x363632>=0x0;_0x363632--)(_0x13aaf3=_0x516867[_0x363632])&&(_0x304933=_0x13aaf3(_0x304933)||_0x304933);return _0x304933;},m=(_0x1a136c,_0x354d17)=>(_0x44a3b0,_0x14ee31)=>_0x354d17(_0x44a3b0,_0x14ee31,_0x1a136c);let u=class extends i['Disposable']{constructor(_0x2fc969,_0x578bc0){const _0xc80740=_0x55f798;super(),this['_commandService']=_0x2fc969,this[_0xc80740(0x88)]=_0x578bc0,this['_initCommands'](),this[_0xc80740(0xad)]();}[_0x55f798(0xb3)](){const _0x2f8aaf=_0x55f798;[l,p][_0x2f8aaf(0xa7)](_0x310299=>{const _0x5b9e56=_0x2f8aaf;this['disposeWithMe'](this[_0x5b9e56(0xb2)][_0x5b9e56(0x8c)](_0x310299));});}['_initMenus'](){const _0x17e795=_0x55f798;this[_0x17e795(0x88)][_0x17e795(0x84)](f);}};u=y([m(0x0,i[_0x55f798(0x98)]),m(0x1,c[_0x55f798(0x7e)])],u);var O=Object[_0x55f798(0x9a)],U=Object[_0x55f798(0x81)],X=(_0x28c1d4,_0x5dc80e,_0x3f967a)=>_0x5dc80e in _0x28c1d4?O(_0x28c1d4,_0x5dc80e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3f967a}):_0x28c1d4[_0x5dc80e]=_0x3f967a,N=(_0x48edbf,_0x4f1ce6,_0x532c3a,_0x4e78e0)=>{for(var _0x14e2ce=_0x4e78e0>0x1?void 0x0:_0x4e78e0?U(_0x4f1ce6,_0x532c3a):_0x4f1ce6,_0x4a30eb=_0x48edbf['length']-0x1,_0x250fa7;_0x4a30eb>=0x0;_0x4a30eb--)(_0x250fa7=_0x48edbf[_0x4a30eb])&&(_0x14e2ce=_0x250fa7(_0x14e2ce)||_0x14e2ce);return _0x14e2ce;},d=(_0x1c2fda,_0x360a93)=>(_0x1cd41f,_0x113eec)=>_0x360a93(_0x1cd41f,_0x113eec,_0x1c2fda),E=(_0x5c1c76,_0x8d310a,_0x1a0825)=>X(_0x5c1c76,typeof _0x8d310a!=_0x55f798(0x8a)?_0x8d310a+'':_0x8d310a,_0x1a0825);function _0x1b33(_0x1c23a1,_0x4148fd){_0x1c23a1=_0x1c23a1-0x79;const _0x3fae94=_0x3fae();let _0x1b33b3=_0x3fae94[_0x1c23a1];return _0x1b33b3;}const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports[_0x55f798(0xb9)]=class extends i[_0x55f798(0x97)]{constructor(_0x374bb4=h,_0x3133b6,_0x99dfde){const _0x371437=_0x55f798;super(),this[_0x371437(0x82)]=_0x374bb4,this[_0x371437(0xb1)]=_0x3133b6,this['_configService']=_0x99dfde;const {menu:_0x42d0d1,..._0x2e7b74}=i[_0x371437(0x93)]({},h,this[_0x371437(0x82)]);_0x42d0d1&&this['_configService']['setConfig'](_0x371437(0xb7),_0x42d0d1,{'merge':!0x0}),this[_0x371437(0xb8)][_0x371437(0x9b)](v,_0x2e7b74);}[_0x55f798(0xa2)](){const _0x20aea5=_0x55f798;[[u]][_0x20aea5(0xa7)](_0x2c03c1=>this['_injector'][_0x20aea5(0x7f)](_0x2c03c1));}[_0x55f798(0x99)](){const _0x4c0909=_0x55f798;this[_0x4c0909(0xb1)][_0x4c0909(0xb6)](u);}},E(exports['UniverSheetsExchangeClientPlugin'],'pluginName',L),E(exports[_0x55f798(0xb9)],_0x55f798(0xba),i['UniverInstanceType']['UNIVER_SHEET']),exports[_0x55f798(0xb9)]=N([i[_0x55f798(0x9e)](g[_0x55f798(0xaa)]),d(0x1,i[_0x55f798(0xae)](i[_0x55f798(0xa0)])),d(0x2,i[_0x55f798(0x8d)])],exports[_0x55f798(0xb9)]),exports[_0x55f798(0xa5)]=p,exports[_0x55f798(0xa3)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x14014b=_0x34f8;(function(_0x4372d8,_0x49d5b4){const _0xd0ff90=_0x34f8,_0x40598b=_0x4372d8();while(!![]){try{const _0x49455e=-parseInt(_0xd0ff90(0xab))/0x1+-parseInt(_0xd0ff90(0x89))/0x2+parseInt(_0xd0ff90(0xa9))/0x3+parseInt(_0xd0ff90(0xa4))/0x4+parseInt(_0xd0ff90(0x9f))/0x5*(parseInt(_0xd0ff90(0xaa))/0x6)+-parseInt(_0xd0ff90(0xa8))/0x7*(parseInt(_0xd0ff90(0x95))/0x8)+-parseInt(_0xd0ff90(0x9d))/0x9*(-parseInt(_0xd0ff90(0x94))/0xa);if(_0x49455e===_0x49d5b4)break;else _0x40598b['push'](_0x40598b['shift']());}catch(_0x1eee83){_0x40598b['push'](_0x40598b['shift']());}}}(_0x553c,0xad6f1));function _0x34f8(_0x4a71c5,_0x5b1fc8){_0x4a71c5=_0x4a71c5-0x84;const _0x553c9d=_0x553c();let _0x34f8f8=_0x553c9d[_0x4a71c5];return _0x34f8f8;}import{IExchangeOperateService as _0x42aab8,UniverExchangeClientPlugin as _0x5b5602}from'@univerjs-pro/exchange-client';import{CommandType as _0x148758,UniverInstanceType as _0x30b124,Disposable as _0x23b397,ICommandService as _0x22e33f,DependentOn as _0x360bdd,Inject as _0x387914,Injector as _0x4b7ab4,IConfigService as _0x1ef633,Plugin as _0x3d8b31,merge as _0x19732c}from'@univerjs/core';import{MenuItemType as _0x2cd933,getMenuHiddenObservable as _0x4d77af,RibbonStartGroup as _0x37f686,IMenuManagerService as _0x3e6bf8}from'@univerjs/ui';import{WorkbookExportPermission as _0x263876}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x47de92}from'@univerjs/sheets-ui';const p={'id':_0x14014b(0x85),'type':_0x148758[_0x14014b(0x99)],'handler':async _0x1e8535=>{const _0x3b35e2=_0x14014b,_0x53c32c=_0x1e8535[_0x3b35e2(0xac)](_0x42aab8);return new URLSearchParams(location[_0x3b35e2(0xad)])['get'](_0x3b35e2(0x87))?_0x53c32c[_0x3b35e2(0x8c)]():_0x53c32c[_0x3b35e2(0x8e)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x148758['OPERATION'],'handler':async _0x1f39d5=>{const _0x55c6b7=_0x14014b,_0x4aaf04=_0x1f39d5[_0x55c6b7(0xac)](_0x42aab8);return new URLSearchParams(location[_0x55c6b7(0xad)])['get']('unit')?_0x4aaf04[_0x55c6b7(0x90)]():_0x4aaf04[_0x55c6b7(0xa1)](),!0x0;}},H=_0x14014b(0x86),l={},S=_0x14014b(0x97);function R(_0x4fc121){const _0x48aa76=_0x14014b;return{'id':S,'type':_0x2cd933['SUBITEMS'],'icon':_0x48aa76(0xa5),'tooltip':_0x48aa76(0x98),'hidden$':_0x4d77af(_0x4fc121,_0x30b124[_0x48aa76(0x96)]),'disabled$':_0x47de92(_0x4fc121,{'workbookTypes':[_0x263876]})};}function w(){const _0x50db48=_0x14014b;return{'id':p['id'],'type':_0x2cd933['BUTTON'],'title':'exchange.upload','icon':_0x50db48(0xa7)};}function D(){const _0x505eb2=_0x14014b;return{'id':u['id'],'type':_0x2cd933['BUTTON'],'title':'exchange.download','icon':_0x505eb2(0x9c)};}const F={[_0x37f686[_0x14014b(0xa6)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x14014b(0x93)],A=(_0x51da17,_0x612375,_0x1d04d1,_0x149d02)=>{for(var _0x3b43e9=_0x149d02>0x1?void 0x0:_0x149d02?G(_0x612375,_0x1d04d1):_0x612375,_0x41c7a4=_0x51da17['length']-0x1,_0x35d0e7;_0x41c7a4>=0x0;_0x41c7a4--)(_0x35d0e7=_0x51da17[_0x41c7a4])&&(_0x3b43e9=_0x35d0e7(_0x3b43e9)||_0x3b43e9);return _0x3b43e9;},d=(_0x38249f,_0x1687ea)=>(_0x5f4261,_0x3e5c04)=>_0x1687ea(_0x5f4261,_0x3e5c04,_0x38249f);function _0x553c(){const _0x251458=['importXLSXToUnitId','disposeWithMe','importXLSXToSnapshot','_initCommands','exportXLSXByUnitId','menu','_config','getOwnPropertyDescriptor','11496340dGcVmR','2616NvCINO','UNIVER_SHEET','sheets-exchange-client.operation.exchange','exchange.file','OPERATION','symbol','_configService','ExportIcon','9KkSHvN','registerCommand','220ndHIiw','_menuManagerService','exportXLSXBySnapshot','forEach','_commandService','3230208KkXeMX','DirectExportIcon','OTHERS','FolderIcon','9793cFtevZ','2606505kennaC','101472WrZizV','1267195eCqJAU','get','search','_initMenus','defineProperty','exchange-client.operation.import-xlsx','sheets-exchange-client.config','unit','setConfig','2270192hzsnjX','pluginName','_injector'];_0x553c=function(){return _0x251458;};return _0x553c();}let c=class extends _0x23b397{constructor(_0x5e1924,_0x591b99){const _0x1f96e1=_0x14014b;super(),this['_commandService']=_0x5e1924,this['_menuManagerService']=_0x591b99,this[_0x1f96e1(0x8f)](),this[_0x1f96e1(0xae)]();}[_0x14014b(0x8f)](){const _0xfd874c=_0x14014b;[p,u][_0xfd874c(0xa2)](_0x181e5a=>{const _0x19931e=_0xfd874c;this[_0x19931e(0x8d)](this[_0x19931e(0xa3)][_0x19931e(0x9e)](_0x181e5a));});}[_0x14014b(0xae)](){const _0x1b59cf=_0x14014b;this[_0x1b59cf(0xa0)]['mergeMenu'](F);}};c=A([d(0x0,_0x22e33f),d(0x1,_0x3e6bf8)],c);var j=Object[_0x14014b(0x84)],B=Object[_0x14014b(0x93)],$=(_0x36864a,_0x21a6ce,_0x22d655)=>_0x21a6ce in _0x36864a?j(_0x36864a,_0x21a6ce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22d655}):_0x36864a[_0x21a6ce]=_0x22d655,V=(_0x3ef945,_0xef0647,_0x201580,_0x3215dc)=>{for(var _0x46449f=_0x3215dc>0x1?void 0x0:_0x3215dc?B(_0xef0647,_0x201580):_0xef0647,_0x242b4b=_0x3ef945['length']-0x1,_0x362383;_0x242b4b>=0x0;_0x242b4b--)(_0x362383=_0x3ef945[_0x242b4b])&&(_0x46449f=_0x362383(_0x46449f)||_0x46449f);return _0x46449f;},_=(_0x419ba5,_0x1b3748)=>(_0x583c64,_0x203aa7)=>_0x1b3748(_0x583c64,_0x203aa7,_0x419ba5),I=(_0x396d02,_0x23a67c,_0x21fa17)=>$(_0x396d02,typeof _0x23a67c!=_0x14014b(0x9a)?_0x23a67c+'':_0x23a67c,_0x21fa17);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x3d8b31{constructor(_0x5cf7ce=l,_0x5cf91d,_0x134dac){const _0x3f3861=_0x14014b;super(),this[_0x3f3861(0x92)]=_0x5cf7ce,this[_0x3f3861(0x8b)]=_0x5cf91d,this[_0x3f3861(0x9b)]=_0x134dac;const {menu:_0x548894,..._0xcea528}=_0x19732c({},l,this['_config']);_0x548894&&this[_0x3f3861(0x9b)][_0x3f3861(0x88)](_0x3f3861(0x91),_0x548894,{'merge':!0x0}),this['_configService'][_0x3f3861(0x88)](H,_0xcea528);}['onStarting'](){const _0x21384b=_0x14014b;[[c]][_0x21384b(0xa2)](_0x12137c=>this[_0x21384b(0x8b)]['add'](_0x12137c));}['onReady'](){const _0x3914f2=_0x14014b;this[_0x3914f2(0x8b)][_0x3914f2(0xac)](c);}};I(s,_0x14014b(0x8a),W),I(s,'type',_0x30b124['UNIVER_SHEET']),s=V([_0x360bdd(_0x5b5602),_(0x1,_0x387914(_0x4b7ab4)),_(0x2,_0x1ef633)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x17ba35=_0x111d;(function(_0x3dd41b,_0x125daf){const _0x29f4c1=_0x111d,_0x3c1ef2=_0x3dd41b();while(!![]){try{const _0x44318b=-parseInt(_0x29f4c1(0x1fe))/0x1*(-parseInt(_0x29f4c1(0x205))/0x2)+parseInt(_0x29f4c1(0x1e1))/0x3*(-parseInt(_0x29f4c1(0x1ed))/0x4)+parseInt(_0x29f4c1(0x202))/0x5*(parseInt(_0x29f4c1(0x1f7))/0x6)+-parseInt(_0x29f4c1(0x1f0))/0x7+parseInt(_0x29f4c1(0x1fa))/0x8+parseInt(_0x29f4c1(0x203))/0x9*(parseInt(_0x29f4c1(0x1fd))/0xa)+-parseInt(_0x29f4c1(0x207))/0xb;if(_0x44318b===_0x125daf)break;else _0x3c1ef2['push'](_0x3c1ef2['shift']());}catch(_0x5802e8){_0x3c1ef2['push'](_0x3c1ef2['shift']());}}}(_0x5035,0x19045));import{IExchangeOperateService as _0x405acd,UniverExchangeClientPlugin as _0x1236f5}from'@univerjs-pro/exchange-client';import{CommandType as _0x547f4f,UniverInstanceType as _0x549460,Disposable as _0x4a15af,ICommandService as _0x325846,DependentOn as _0x48dcc6,Inject as _0x4c543f,Injector as _0x1d4b0c,IConfigService as _0x27c921,Plugin as _0x3bc5c6,merge as _0x1fb311}from'@univerjs/core';import{MenuItemType as _0x3f0e3e,getMenuHiddenObservable as _0xea7179,RibbonStartGroup as _0x2d98c5,IMenuManagerService as _0x25af90}from'@univerjs/ui';import{WorkbookExportPermission as _0x202fb8}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0xf34c4}from'@univerjs/sheets-ui';function _0x5035(){const _0x2d46d9=['_initMenus','60CTBrQn','length','_injector','596330EIvEvM','importXLSXToUnitId','add','onReady','forEach','onStarting','BUTTON','893664JkoBRI','get','SHEET_EXCHANGE_CLIENT_PLUGIN','1565040uHhaJn','exchange.download','pluginName','20cvDgfv','86JkhzNW','UNIVER_SHEET','getOwnPropertyDescriptor','menu','5tHErru','665793UWOrtn','defineProperty','2904LdREWc','_commandService','3123186sMYVUY','mergeMenu','search','type','FolderIcon','setConfig','exchange.file','_config','_menuManagerService','29163kkVbAf','_configService','exchange-client.operation.import-xlsx','unit','disposeWithMe','OPERATION','symbol','registerCommand','exportXLSXByUnitId','SUBITEMS','exchange.upload'];_0x5035=function(){return _0x2d46d9;};return _0x5035();}const p={'id':_0x17ba35(0x1e3),'type':_0x547f4f[_0x17ba35(0x1e6)],'handler':async _0x1a226d=>{const _0x109c28=_0x17ba35,_0x4ba56b=_0x1a226d[_0x109c28(0x1f8)](_0x405acd);return new URLSearchParams(location[_0x109c28(0x209)])[_0x109c28(0x1f8)]('unit')?_0x4ba56b[_0x109c28(0x1f1)]():_0x4ba56b['importXLSXToSnapshot'](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x547f4f[_0x17ba35(0x1e6)],'handler':async _0xb29122=>{const _0x236b1a=_0x17ba35,_0x3f6bab=_0xb29122[_0x236b1a(0x1f8)](_0x405acd);return new URLSearchParams(location[_0x236b1a(0x209)])[_0x236b1a(0x1f8)](_0x236b1a(0x1e4))?_0x3f6bab[_0x236b1a(0x1e9)]():_0x3f6bab['exportXLSXBySnapshot'](),!0x0;}},H='sheets-exchange-client.config',l={},S='sheets-exchange-client.operation.exchange';function R(_0x4ca9a5){const _0x2aa49a=_0x17ba35;return{'id':S,'type':_0x3f0e3e[_0x2aa49a(0x1ea)],'icon':'DirectExportIcon','tooltip':_0x2aa49a(0x1de),'hidden$':_0xea7179(_0x4ca9a5,_0x549460['UNIVER_SHEET']),'disabled$':_0xf34c4(_0x4ca9a5,{'workbookTypes':[_0x202fb8]})};}function w(){const _0x2287c2=_0x17ba35;return{'id':p['id'],'type':_0x3f0e3e['BUTTON'],'title':_0x2287c2(0x1eb),'icon':_0x2287c2(0x20b)};}function D(){const _0x487187=_0x17ba35;return{'id':u['id'],'type':_0x3f0e3e[_0x487187(0x1f6)],'title':_0x487187(0x1fb),'icon':'ExportIcon'};}const F={[_0x2d98c5['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x17ba35(0x200)],A=(_0x4c870f,_0x2a2040,_0x48d126,_0x51be65)=>{const _0x2d5d37=_0x17ba35;for(var _0x4633d0=_0x51be65>0x1?void 0x0:_0x51be65?G(_0x2a2040,_0x48d126):_0x2a2040,_0x1f91db=_0x4c870f[_0x2d5d37(0x1ee)]-0x1,_0x46d4a0;_0x1f91db>=0x0;_0x1f91db--)(_0x46d4a0=_0x4c870f[_0x1f91db])&&(_0x4633d0=_0x46d4a0(_0x4633d0)||_0x4633d0);return _0x4633d0;},d=(_0x48262b,_0x3e0b28)=>(_0x154248,_0x5bc1df)=>_0x3e0b28(_0x154248,_0x5bc1df,_0x48262b);let c=class extends _0x4a15af{constructor(_0x57f764,_0x50a9c0){const _0x29f30e=_0x17ba35;super(),this[_0x29f30e(0x206)]=_0x57f764,this[_0x29f30e(0x1e0)]=_0x50a9c0,this['_initCommands'](),this[_0x29f30e(0x1ec)]();}['_initCommands'](){const _0x344b0c=_0x17ba35;[p,u][_0x344b0c(0x1f4)](_0x2afaf0=>{const _0x39a531=_0x344b0c;this[_0x39a531(0x1e5)](this[_0x39a531(0x206)][_0x39a531(0x1e8)](_0x2afaf0));});}['_initMenus'](){const _0x1333cb=_0x17ba35;this[_0x1333cb(0x1e0)][_0x1333cb(0x208)](F);}};c=A([d(0x0,_0x325846),d(0x1,_0x25af90)],c);var j=Object[_0x17ba35(0x204)],B=Object[_0x17ba35(0x200)],$=(_0x5a0864,_0x3b9f18,_0x1f6ac6)=>_0x3b9f18 in _0x5a0864?j(_0x5a0864,_0x3b9f18,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f6ac6}):_0x5a0864[_0x3b9f18]=_0x1f6ac6,V=(_0xe0c592,_0x428c4c,_0x479206,_0x1a5310)=>{const _0x43e48f=_0x17ba35;for(var _0x3290f8=_0x1a5310>0x1?void 0x0:_0x1a5310?B(_0x428c4c,_0x479206):_0x428c4c,_0x413ab2=_0xe0c592[_0x43e48f(0x1ee)]-0x1,_0x3d8f62;_0x413ab2>=0x0;_0x413ab2--)(_0x3d8f62=_0xe0c592[_0x413ab2])&&(_0x3290f8=_0x3d8f62(_0x3290f8)||_0x3290f8);return _0x3290f8;},_=(_0x2b720a,_0x3c06d6)=>(_0x18ee6b,_0x1d1a8e)=>_0x3c06d6(_0x18ee6b,_0x1d1a8e,_0x2b720a),I=(_0x2ddfb9,_0x365fda,_0x4ce445)=>$(_0x2ddfb9,typeof _0x365fda!=_0x17ba35(0x1e7)?_0x365fda+'':_0x365fda,_0x4ce445);const W=_0x17ba35(0x1f9);let s=class extends _0x3bc5c6{constructor(_0x542eb9=l,_0x5aeeb6,_0x446e39){const _0x377bfe=_0x17ba35;super(),this[_0x377bfe(0x1df)]=_0x542eb9,this[_0x377bfe(0x1ef)]=_0x5aeeb6,this['_configService']=_0x446e39;const {menu:_0x4d200d,..._0x5cb211}=_0x1fb311({},l,this[_0x377bfe(0x1df)]);_0x4d200d&&this[_0x377bfe(0x1e2)][_0x377bfe(0x1dd)](_0x377bfe(0x201),_0x4d200d,{'merge':!0x0}),this['_configService'][_0x377bfe(0x1dd)](H,_0x5cb211);}[_0x17ba35(0x1f5)](){const _0x189eab=_0x17ba35;[[c]][_0x189eab(0x1f4)](_0x1ba533=>this[_0x189eab(0x1ef)][_0x189eab(0x1f2)](_0x1ba533));}[_0x17ba35(0x1f3)](){const _0x39c78f=_0x17ba35;this[_0x39c78f(0x1ef)]['get'](c);}};I(s,_0x17ba35(0x1fc),W),I(s,_0x17ba35(0x20a),_0x549460[_0x17ba35(0x1ff)]),s=V([_0x48dcc6(_0x1236f5),_(0x1,_0x4c543f(_0x1d4b0c)),_(0x2,_0x27c921)],s);function _0x111d(_0x36f070,_0x276d06){_0x36f070=_0x36f070-0x1dd;const _0x503569=_0x5035();let _0x111d54=_0x503569[_0x36f070];return _0x111d54;}export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x14014b=_0x34f8;(function(_0x4372d8,_0x49d5b4){const _0xd0ff90=_0x34f8,_0x40598b=_0x4372d8();while(!![]){try{const _0x49455e=-parseInt(_0xd0ff90(0xab))/0x1+-parseInt(_0xd0ff90(0x89))/0x2+parseInt(_0xd0ff90(0xa9))/0x3+parseInt(_0xd0ff90(0xa4))/0x4+parseInt(_0xd0ff90(0x9f))/0x5*(parseInt(_0xd0ff90(0xaa))/0x6)+-parseInt(_0xd0ff90(0xa8))/0x7*(parseInt(_0xd0ff90(0x95))/0x8)+-parseInt(_0xd0ff90(0x9d))/0x9*(-parseInt(_0xd0ff90(0x94))/0xa);if(_0x49455e===_0x49d5b4)break;else _0x40598b['push'](_0x40598b['shift']());}catch(_0x1eee83){_0x40598b['push'](_0x40598b['shift']());}}}(_0x553c,0xad6f1));function _0x34f8(_0x4a71c5,_0x5b1fc8){_0x4a71c5=_0x4a71c5-0x84;const _0x553c9d=_0x553c();let _0x34f8f8=_0x553c9d[_0x4a71c5];return _0x34f8f8;}import{IExchangeOperateService as _0x42aab8,UniverExchangeClientPlugin as _0x5b5602}from'@univerjs-pro/exchange-client';import{CommandType as _0x148758,UniverInstanceType as _0x30b124,Disposable as _0x23b397,ICommandService as _0x22e33f,DependentOn as _0x360bdd,Inject as _0x387914,Injector as _0x4b7ab4,IConfigService as _0x1ef633,Plugin as _0x3d8b31,merge as _0x19732c}from'@univerjs/core';import{MenuItemType as _0x2cd933,getMenuHiddenObservable as _0x4d77af,RibbonStartGroup as _0x37f686,IMenuManagerService as _0x3e6bf8}from'@univerjs/ui';import{WorkbookExportPermission as _0x263876}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x47de92}from'@univerjs/sheets-ui';const p={'id':_0x14014b(0x85),'type':_0x148758[_0x14014b(0x99)],'handler':async _0x1e8535=>{const _0x3b35e2=_0x14014b,_0x53c32c=_0x1e8535[_0x3b35e2(0xac)](_0x42aab8);return new URLSearchParams(location[_0x3b35e2(0xad)])['get'](_0x3b35e2(0x87))?_0x53c32c[_0x3b35e2(0x8c)]():_0x53c32c[_0x3b35e2(0x8e)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x148758['OPERATION'],'handler':async _0x1f39d5=>{const _0x55c6b7=_0x14014b,_0x4aaf04=_0x1f39d5[_0x55c6b7(0xac)](_0x42aab8);return new URLSearchParams(location[_0x55c6b7(0xad)])['get']('unit')?_0x4aaf04[_0x55c6b7(0x90)]():_0x4aaf04[_0x55c6b7(0xa1)](),!0x0;}},H=_0x14014b(0x86),l={},S=_0x14014b(0x97);function R(_0x4fc121){const _0x48aa76=_0x14014b;return{'id':S,'type':_0x2cd933['SUBITEMS'],'icon':_0x48aa76(0xa5),'tooltip':_0x48aa76(0x98),'hidden$':_0x4d77af(_0x4fc121,_0x30b124[_0x48aa76(0x96)]),'disabled$':_0x47de92(_0x4fc121,{'workbookTypes':[_0x263876]})};}function w(){const _0x50db48=_0x14014b;return{'id':p['id'],'type':_0x2cd933['BUTTON'],'title':'exchange.upload','icon':_0x50db48(0xa7)};}function D(){const _0x505eb2=_0x14014b;return{'id':u['id'],'type':_0x2cd933['BUTTON'],'title':'exchange.download','icon':_0x505eb2(0x9c)};}const F={[_0x37f686[_0x14014b(0xa6)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x14014b(0x93)],A=(_0x51da17,_0x612375,_0x1d04d1,_0x149d02)=>{for(var _0x3b43e9=_0x149d02>0x1?void 0x0:_0x149d02?G(_0x612375,_0x1d04d1):_0x612375,_0x41c7a4=_0x51da17['length']-0x1,_0x35d0e7;_0x41c7a4>=0x0;_0x41c7a4--)(_0x35d0e7=_0x51da17[_0x41c7a4])&&(_0x3b43e9=_0x35d0e7(_0x3b43e9)||_0x3b43e9);return _0x3b43e9;},d=(_0x38249f,_0x1687ea)=>(_0x5f4261,_0x3e5c04)=>_0x1687ea(_0x5f4261,_0x3e5c04,_0x38249f);function _0x553c(){const _0x251458=['importXLSXToUnitId','disposeWithMe','importXLSXToSnapshot','_initCommands','exportXLSXByUnitId','menu','_config','getOwnPropertyDescriptor','11496340dGcVmR','2616NvCINO','UNIVER_SHEET','sheets-exchange-client.operation.exchange','exchange.file','OPERATION','symbol','_configService','ExportIcon','9KkSHvN','registerCommand','220ndHIiw','_menuManagerService','exportXLSXBySnapshot','forEach','_commandService','3230208KkXeMX','DirectExportIcon','OTHERS','FolderIcon','9793cFtevZ','2606505kennaC','101472WrZizV','1267195eCqJAU','get','search','_initMenus','defineProperty','exchange-client.operation.import-xlsx','sheets-exchange-client.config','unit','setConfig','2270192hzsnjX','pluginName','_injector'];_0x553c=function(){return _0x251458;};return _0x553c();}let c=class extends _0x23b397{constructor(_0x5e1924,_0x591b99){const _0x1f96e1=_0x14014b;super(),this['_commandService']=_0x5e1924,this['_menuManagerService']=_0x591b99,this[_0x1f96e1(0x8f)](),this[_0x1f96e1(0xae)]();}[_0x14014b(0x8f)](){const _0xfd874c=_0x14014b;[p,u][_0xfd874c(0xa2)](_0x181e5a=>{const _0x19931e=_0xfd874c;this[_0x19931e(0x8d)](this[_0x19931e(0xa3)][_0x19931e(0x9e)](_0x181e5a));});}[_0x14014b(0xae)](){const _0x1b59cf=_0x14014b;this[_0x1b59cf(0xa0)]['mergeMenu'](F);}};c=A([d(0x0,_0x22e33f),d(0x1,_0x3e6bf8)],c);var j=Object[_0x14014b(0x84)],B=Object[_0x14014b(0x93)],$=(_0x36864a,_0x21a6ce,_0x22d655)=>_0x21a6ce in _0x36864a?j(_0x36864a,_0x21a6ce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22d655}):_0x36864a[_0x21a6ce]=_0x22d655,V=(_0x3ef945,_0xef0647,_0x201580,_0x3215dc)=>{for(var _0x46449f=_0x3215dc>0x1?void 0x0:_0x3215dc?B(_0xef0647,_0x201580):_0xef0647,_0x242b4b=_0x3ef945['length']-0x1,_0x362383;_0x242b4b>=0x0;_0x242b4b--)(_0x362383=_0x3ef945[_0x242b4b])&&(_0x46449f=_0x362383(_0x46449f)||_0x46449f);return _0x46449f;},_=(_0x419ba5,_0x1b3748)=>(_0x583c64,_0x203aa7)=>_0x1b3748(_0x583c64,_0x203aa7,_0x419ba5),I=(_0x396d02,_0x23a67c,_0x21fa17)=>$(_0x396d02,typeof _0x23a67c!=_0x14014b(0x9a)?_0x23a67c+'':_0x23a67c,_0x21fa17);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x3d8b31{constructor(_0x5cf7ce=l,_0x5cf91d,_0x134dac){const _0x3f3861=_0x14014b;super(),this[_0x3f3861(0x92)]=_0x5cf7ce,this[_0x3f3861(0x8b)]=_0x5cf91d,this[_0x3f3861(0x9b)]=_0x134dac;const {menu:_0x548894,..._0xcea528}=_0x19732c({},l,this['_config']);_0x548894&&this[_0x3f3861(0x9b)][_0x3f3861(0x88)](_0x3f3861(0x91),_0x548894,{'merge':!0x0}),this['_configService'][_0x3f3861(0x88)](H,_0xcea528);}['onStarting'](){const _0x21384b=_0x14014b;[[c]][_0x21384b(0xa2)](_0x12137c=>this[_0x21384b(0x8b)]['add'](_0x12137c));}['onReady'](){const _0x3914f2=_0x14014b;this[_0x3914f2(0x8b)][_0x3914f2(0xac)](c);}};I(s,_0x14014b(0x8a),W),I(s,'type',_0x30b124['UNIVER_SHEET']),s=V([_0x360bdd(_0x5b5602),_(0x1,_0x387914(_0x4b7ab4)),_(0x2,_0x1ef633)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x17ba35=_0x111d;(function(_0x3dd41b,_0x125daf){const _0x29f4c1=_0x111d,_0x3c1ef2=_0x3dd41b();while(!![]){try{const _0x44318b=-parseInt(_0x29f4c1(0x1fe))/0x1*(-parseInt(_0x29f4c1(0x205))/0x2)+parseInt(_0x29f4c1(0x1e1))/0x3*(-parseInt(_0x29f4c1(0x1ed))/0x4)+parseInt(_0x29f4c1(0x202))/0x5*(parseInt(_0x29f4c1(0x1f7))/0x6)+-parseInt(_0x29f4c1(0x1f0))/0x7+parseInt(_0x29f4c1(0x1fa))/0x8+parseInt(_0x29f4c1(0x203))/0x9*(parseInt(_0x29f4c1(0x1fd))/0xa)+-parseInt(_0x29f4c1(0x207))/0xb;if(_0x44318b===_0x125daf)break;else _0x3c1ef2['push'](_0x3c1ef2['shift']());}catch(_0x5802e8){_0x3c1ef2['push'](_0x3c1ef2['shift']());}}}(_0x5035,0x19045));import{IExchangeOperateService as _0x405acd,UniverExchangeClientPlugin as _0x1236f5}from'@univerjs-pro/exchange-client';import{CommandType as _0x547f4f,UniverInstanceType as _0x549460,Disposable as _0x4a15af,ICommandService as _0x325846,DependentOn as _0x48dcc6,Inject as _0x4c543f,Injector as _0x1d4b0c,IConfigService as _0x27c921,Plugin as _0x3bc5c6,merge as _0x1fb311}from'@univerjs/core';import{MenuItemType as _0x3f0e3e,getMenuHiddenObservable as _0xea7179,RibbonStartGroup as _0x2d98c5,IMenuManagerService as _0x25af90}from'@univerjs/ui';import{WorkbookExportPermission as _0x202fb8}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0xf34c4}from'@univerjs/sheets-ui';function _0x5035(){const _0x2d46d9=['_initMenus','60CTBrQn','length','_injector','596330EIvEvM','importXLSXToUnitId','add','onReady','forEach','onStarting','BUTTON','893664JkoBRI','get','SHEET_EXCHANGE_CLIENT_PLUGIN','1565040uHhaJn','exchange.download','pluginName','20cvDgfv','86JkhzNW','UNIVER_SHEET','getOwnPropertyDescriptor','menu','5tHErru','665793UWOrtn','defineProperty','2904LdREWc','_commandService','3123186sMYVUY','mergeMenu','search','type','FolderIcon','setConfig','exchange.file','_config','_menuManagerService','29163kkVbAf','_configService','exchange-client.operation.import-xlsx','unit','disposeWithMe','OPERATION','symbol','registerCommand','exportXLSXByUnitId','SUBITEMS','exchange.upload'];_0x5035=function(){return _0x2d46d9;};return _0x5035();}const p={'id':_0x17ba35(0x1e3),'type':_0x547f4f[_0x17ba35(0x1e6)],'handler':async _0x1a226d=>{const _0x109c28=_0x17ba35,_0x4ba56b=_0x1a226d[_0x109c28(0x1f8)](_0x405acd);return new URLSearchParams(location[_0x109c28(0x209)])[_0x109c28(0x1f8)]('unit')?_0x4ba56b[_0x109c28(0x1f1)]():_0x4ba56b['importXLSXToSnapshot'](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x547f4f[_0x17ba35(0x1e6)],'handler':async _0xb29122=>{const _0x236b1a=_0x17ba35,_0x3f6bab=_0xb29122[_0x236b1a(0x1f8)](_0x405acd);return new URLSearchParams(location[_0x236b1a(0x209)])[_0x236b1a(0x1f8)](_0x236b1a(0x1e4))?_0x3f6bab[_0x236b1a(0x1e9)]():_0x3f6bab['exportXLSXBySnapshot'](),!0x0;}},H='sheets-exchange-client.config',l={},S='sheets-exchange-client.operation.exchange';function R(_0x4ca9a5){const _0x2aa49a=_0x17ba35;return{'id':S,'type':_0x3f0e3e[_0x2aa49a(0x1ea)],'icon':'DirectExportIcon','tooltip':_0x2aa49a(0x1de),'hidden$':_0xea7179(_0x4ca9a5,_0x549460['UNIVER_SHEET']),'disabled$':_0xf34c4(_0x4ca9a5,{'workbookTypes':[_0x202fb8]})};}function w(){const _0x2287c2=_0x17ba35;return{'id':p['id'],'type':_0x3f0e3e['BUTTON'],'title':_0x2287c2(0x1eb),'icon':_0x2287c2(0x20b)};}function D(){const _0x487187=_0x17ba35;return{'id':u['id'],'type':_0x3f0e3e[_0x487187(0x1f6)],'title':_0x487187(0x1fb),'icon':'ExportIcon'};}const F={[_0x2d98c5['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x17ba35(0x200)],A=(_0x4c870f,_0x2a2040,_0x48d126,_0x51be65)=>{const _0x2d5d37=_0x17ba35;for(var _0x4633d0=_0x51be65>0x1?void 0x0:_0x51be65?G(_0x2a2040,_0x48d126):_0x2a2040,_0x1f91db=_0x4c870f[_0x2d5d37(0x1ee)]-0x1,_0x46d4a0;_0x1f91db>=0x0;_0x1f91db--)(_0x46d4a0=_0x4c870f[_0x1f91db])&&(_0x4633d0=_0x46d4a0(_0x4633d0)||_0x4633d0);return _0x4633d0;},d=(_0x48262b,_0x3e0b28)=>(_0x154248,_0x5bc1df)=>_0x3e0b28(_0x154248,_0x5bc1df,_0x48262b);let c=class extends _0x4a15af{constructor(_0x57f764,_0x50a9c0){const _0x29f30e=_0x17ba35;super(),this[_0x29f30e(0x206)]=_0x57f764,this[_0x29f30e(0x1e0)]=_0x50a9c0,this['_initCommands'](),this[_0x29f30e(0x1ec)]();}['_initCommands'](){const _0x344b0c=_0x17ba35;[p,u][_0x344b0c(0x1f4)](_0x2afaf0=>{const _0x39a531=_0x344b0c;this[_0x39a531(0x1e5)](this[_0x39a531(0x206)][_0x39a531(0x1e8)](_0x2afaf0));});}['_initMenus'](){const _0x1333cb=_0x17ba35;this[_0x1333cb(0x1e0)][_0x1333cb(0x208)](F);}};c=A([d(0x0,_0x325846),d(0x1,_0x25af90)],c);var j=Object[_0x17ba35(0x204)],B=Object[_0x17ba35(0x200)],$=(_0x5a0864,_0x3b9f18,_0x1f6ac6)=>_0x3b9f18 in _0x5a0864?j(_0x5a0864,_0x3b9f18,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f6ac6}):_0x5a0864[_0x3b9f18]=_0x1f6ac6,V=(_0xe0c592,_0x428c4c,_0x479206,_0x1a5310)=>{const _0x43e48f=_0x17ba35;for(var _0x3290f8=_0x1a5310>0x1?void 0x0:_0x1a5310?B(_0x428c4c,_0x479206):_0x428c4c,_0x413ab2=_0xe0c592[_0x43e48f(0x1ee)]-0x1,_0x3d8f62;_0x413ab2>=0x0;_0x413ab2--)(_0x3d8f62=_0xe0c592[_0x413ab2])&&(_0x3290f8=_0x3d8f62(_0x3290f8)||_0x3290f8);return _0x3290f8;},_=(_0x2b720a,_0x3c06d6)=>(_0x18ee6b,_0x1d1a8e)=>_0x3c06d6(_0x18ee6b,_0x1d1a8e,_0x2b720a),I=(_0x2ddfb9,_0x365fda,_0x4ce445)=>$(_0x2ddfb9,typeof _0x365fda!=_0x17ba35(0x1e7)?_0x365fda+'':_0x365fda,_0x4ce445);const W=_0x17ba35(0x1f9);let s=class extends _0x3bc5c6{constructor(_0x542eb9=l,_0x5aeeb6,_0x446e39){const _0x377bfe=_0x17ba35;super(),this[_0x377bfe(0x1df)]=_0x542eb9,this[_0x377bfe(0x1ef)]=_0x5aeeb6,this['_configService']=_0x446e39;const {menu:_0x4d200d,..._0x5cb211}=_0x1fb311({},l,this[_0x377bfe(0x1df)]);_0x4d200d&&this[_0x377bfe(0x1e2)][_0x377bfe(0x1dd)](_0x377bfe(0x201),_0x4d200d,{'merge':!0x0}),this['_configService'][_0x377bfe(0x1dd)](H,_0x5cb211);}[_0x17ba35(0x1f5)](){const _0x189eab=_0x17ba35;[[c]][_0x189eab(0x1f4)](_0x1ba533=>this[_0x189eab(0x1ef)][_0x189eab(0x1f2)](_0x1ba533));}[_0x17ba35(0x1f3)](){const _0x39c78f=_0x17ba35;this[_0x39c78f(0x1ef)]['get'](c);}};I(s,_0x17ba35(0x1fc),W),I(s,_0x17ba35(0x20a),_0x549460[_0x17ba35(0x1ff)]),s=V([_0x48dcc6(_0x1236f5),_(0x1,_0x4c543f(_0x1d4b0c)),_(0x2,_0x27c921)],s);function _0x111d(_0x36f070,_0x276d06){_0x36f070=_0x36f070-0x1dd;const _0x503569=_0x5035();let _0x111d54=_0x503569[_0x36f070];return _0x111d54;}export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x4b5f(_0x7d32a0,_0x3370a7){_0x7d32a0=_0x7d32a0-0x8a;const _0x50349d=_0x5034();let _0x4b5fee=_0x50349d[_0x7d32a0];return _0x4b5fee;}function _0x5034(){const _0x253c04=['IConfigService','ICommandService','IExchangeOperateService','ExportXLSXOperation','UniverExchangeClientPlugin','UniverSheetsExchangeClientPlugin','object','exchange-client.operation.export-xlsx','toStringTag','mergeMenu','UniverProExchangeClient','@univerjs/ui','_commandService','UNIVER_SHEET','@univerjs/core','MenuItemType','@univerjs/sheets-ui','length','onReady','get','OPERATION','getMenuHiddenObservable','forEach','_initMenus','setConfig','merge','Injector','_injector','33136uSFdYi','sheets-exchange-client.operation.exchange','11KnNmDI','IMenuManagerService','RibbonStartGroup','exchange.download','OTHERS','symbol','UniverCore','626510YYrptv','amd','menu','Module','16Dhhxng','disposeWithMe','_configService','88sGoqXH','915294TnudZw','8958oLpVFI','exports','exportXLSXByUnitId','registerCommand','importXLSXToUnitId','add','UniverSheetsUi','Disposable','defineProperty','_initCommands','DependentOn','search','pluginName','35649apiXeS','onStarting','UniverInstanceType','@univerjs-pro/exchange-client','WorkbookExportPermission','Inject','_menuManagerService','@univerjs/sheets','_config','7126690nmYSBU','1687ynpPcu','exportXLSXBySnapshot','365793aXVGfF','BUTTON','sheets-exchange-client.config','UniverSheets','exchange-client.operation.import-xlsx','ImportXLSXOperation','CommandType','unit','UniverUi','function','exchange.file'];_0x5034=function(){return _0x253c04;};return _0x5034();}(function(_0xb0051b,_0x3666bf){const _0xcb885d=_0x4b5f,_0x316e69=_0xb0051b();while(!![]){try{const _0x3810e1=-parseInt(_0xcb885d(0x93))/0x1+-parseInt(_0xcb885d(0xa4))/0x2+parseInt(_0xcb885d(0xbe))/0x3*(-parseInt(_0xcb885d(0xa0))/0x4)+parseInt(_0xcb885d(0x9c))/0x5+-parseInt(_0xcb885d(0xa5))/0x6*(-parseInt(_0xcb885d(0xbc))/0x7)+-parseInt(_0xcb885d(0xa3))/0x8*(-parseInt(_0xcb885d(0xb2))/0x9)+parseInt(_0xcb885d(0xbb))/0xa*(parseInt(_0xcb885d(0x95))/0xb);if(_0x3810e1===_0x3666bf)break;else _0x316e69['push'](_0x316e69['shift']());}catch(_0x985755){_0x316e69['push'](_0x316e69['shift']());}}}(_0x5034,0x402c0),function(_0x300877,_0x54d003){const _0x2da481=_0x4b5f;typeof exports==_0x2da481(0xcf)&&typeof module<'u'?_0x54d003(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x2da481(0xc7)&&define[_0x2da481(0x9d)]?define([_0x2da481(0xa6),_0x2da481(0xb5),_0x2da481(0xd7),_0x2da481(0xd4),_0x2da481(0xb9),_0x2da481(0xd9)],_0x54d003):(_0x300877=typeof globalThis<'u'?globalThis:_0x300877||self,_0x54d003(_0x300877['UniverProSheetsExchangeClient']={},_0x300877[_0x2da481(0xd3)],_0x300877[_0x2da481(0x9b)],_0x300877[_0x2da481(0xc6)],_0x300877[_0x2da481(0xc1)],_0x300877[_0x2da481(0xab)]));}(this,function(_0x6062bb,_0x33dad3,_0x1186de,_0x4c7bfa,_0x2609fb,_0x313d6c){'use strict';const _0x29140e=_0x4b5f;const _0x2e35ac={'id':_0x29140e(0xc2),'type':_0x1186de[_0x29140e(0xc4)][_0x29140e(0x8b)],'handler':async _0x189c5f=>{const _0x54ef66=_0x29140e,_0x527082=_0x189c5f['get'](_0x33dad3[_0x54ef66(0xcb)]);return new URLSearchParams(location['search'])[_0x54ef66(0x8a)](_0x54ef66(0xc5))?_0x527082[_0x54ef66(0xa9)]():_0x527082['importXLSXToSnapshot'](),!0x0;}},_0x5b73f9={'id':_0x29140e(0xd0),'type':_0x1186de[_0x29140e(0xc4)][_0x29140e(0x8b)],'handler':async _0x198a99=>{const _0x22e8c0=_0x29140e,_0x303b5e=_0x198a99['get'](_0x33dad3[_0x22e8c0(0xcb)]);return new URLSearchParams(location[_0x22e8c0(0xb0)])[_0x22e8c0(0x8a)](_0x22e8c0(0xc5))?_0x303b5e[_0x22e8c0(0xa7)]():_0x303b5e[_0x22e8c0(0xbd)](),!0x0;}},_0x56969b=_0x29140e(0xc0),_0x7740e0={},_0x353155=_0x29140e(0x94);function _0x289382(_0x428fde){const _0x334e83=_0x29140e;return{'id':_0x353155,'type':_0x4c7bfa[_0x334e83(0xd8)]['SUBITEMS'],'icon':'DirectExportIcon','tooltip':_0x334e83(0xc8),'hidden$':_0x4c7bfa[_0x334e83(0x8c)](_0x428fde,_0x1186de[_0x334e83(0xb4)][_0x334e83(0xd6)]),'disabled$':_0x313d6c['getCurrentRangeDisable$'](_0x428fde,{'workbookTypes':[_0x2609fb[_0x334e83(0xb6)]]})};}function _0x511e45(){const _0x189456=_0x29140e;return{'id':_0x2e35ac['id'],'type':_0x4c7bfa[_0x189456(0xd8)][_0x189456(0xbf)],'title':'exchange.upload','icon':'FolderIcon'};}function _0x24aead(){const _0x437d5d=_0x29140e;return{'id':_0x5b73f9['id'],'type':_0x4c7bfa['MenuItemType']['BUTTON'],'title':_0x437d5d(0x98),'icon':'ExportIcon'};}const _0x140a2b={[_0x4c7bfa[_0x29140e(0x97)][_0x29140e(0x99)]]:{[_0x353155]:{'order':0.3,'menuItemFactory':_0x289382,[_0x2e35ac['id']]:{'order':0x0,'menuItemFactory':_0x511e45},[_0x5b73f9['id']]:{'order':0x1,'menuItemFactory':_0x24aead}}}};var _0x1d76b3=Object['getOwnPropertyDescriptor'],_0x590f0a=(_0x3511c4,_0x5805ba,_0x4f5ec8,_0x31ad43)=>{const _0x101fa1=_0x29140e;for(var _0x96621b=_0x31ad43>0x1?void 0x0:_0x31ad43?_0x1d76b3(_0x5805ba,_0x4f5ec8):_0x5805ba,_0x3b8dc6=_0x3511c4[_0x101fa1(0xda)]-0x1,_0x1aae00;_0x3b8dc6>=0x0;_0x3b8dc6--)(_0x1aae00=_0x3511c4[_0x3b8dc6])&&(_0x96621b=_0x1aae00(_0x96621b)||_0x96621b);return _0x96621b;},_0x4bf8c5=(_0x4e9ed8,_0x236f7e)=>(_0x50f650,_0x161ee0)=>_0x236f7e(_0x50f650,_0x161ee0,_0x4e9ed8);let _0x3c23c8=class extends _0x1186de[_0x29140e(0xac)]{constructor(_0x180672,_0x32db61){const _0x49fc77=_0x29140e;super(),this['_commandService']=_0x180672,this[_0x49fc77(0xb8)]=_0x32db61,this[_0x49fc77(0xae)](),this['_initMenus']();}[_0x29140e(0xae)](){const _0x10bfd7=_0x29140e;[_0x2e35ac,_0x5b73f9][_0x10bfd7(0x8d)](_0x533bdd=>{const _0x3a9997=_0x10bfd7;this[_0x3a9997(0xa1)](this[_0x3a9997(0xd5)][_0x3a9997(0xa8)](_0x533bdd));});}[_0x29140e(0x8e)](){const _0x193790=_0x29140e;this[_0x193790(0xb8)][_0x193790(0xd2)](_0x140a2b);}};_0x3c23c8=_0x590f0a([_0x4bf8c5(0x0,_0x1186de[_0x29140e(0xca)]),_0x4bf8c5(0x1,_0x4c7bfa[_0x29140e(0x96)])],_0x3c23c8);var _0x579b7b=Object[_0x29140e(0xad)],_0x4c07f1=Object['getOwnPropertyDescriptor'],_0x506c70=(_0x267f81,_0x1a878c,_0x4d11ba)=>_0x1a878c in _0x267f81?_0x579b7b(_0x267f81,_0x1a878c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4d11ba}):_0x267f81[_0x1a878c]=_0x4d11ba,_0x29e6f8=(_0x3abb91,_0x52d27e,_0x1eb8b2,_0x440950)=>{for(var _0x5ecc97=_0x440950>0x1?void 0x0:_0x440950?_0x4c07f1(_0x52d27e,_0x1eb8b2):_0x52d27e,_0x58b66d=_0x3abb91['length']-0x1,_0x2e9574;_0x58b66d>=0x0;_0x58b66d--)(_0x2e9574=_0x3abb91[_0x58b66d])&&(_0x5ecc97=_0x2e9574(_0x5ecc97)||_0x5ecc97);return _0x5ecc97;},_0x304485=(_0xebb426,_0x3e2eb9)=>(_0x269e45,_0x5123c1)=>_0x3e2eb9(_0x269e45,_0x5123c1,_0xebb426),_0x4deaf9=(_0x5974cb,_0x42c5b9,_0x2e6daf)=>_0x506c70(_0x5974cb,typeof _0x42c5b9!=_0x29140e(0x9a)?_0x42c5b9+'':_0x42c5b9,_0x2e6daf);const _0x1939d2='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x6062bb[_0x29140e(0xce)]=class extends _0x1186de['Plugin']{constructor(_0x2533b7=_0x7740e0,_0x3fd42d,_0xc4d264){const _0x4a8bc5=_0x29140e;super(),this[_0x4a8bc5(0xba)]=_0x2533b7,this['_injector']=_0x3fd42d,this[_0x4a8bc5(0xa2)]=_0xc4d264;const {menu:_0xfabe29,..._0x49e9e2}=_0x1186de[_0x4a8bc5(0x90)]({},_0x7740e0,this['_config']);_0xfabe29&&this[_0x4a8bc5(0xa2)][_0x4a8bc5(0x8f)](_0x4a8bc5(0x9e),_0xfabe29,{'merge':!0x0}),this[_0x4a8bc5(0xa2)][_0x4a8bc5(0x8f)](_0x56969b,_0x49e9e2);}[_0x29140e(0xb3)](){const _0x2df7e8=_0x29140e;[[_0x3c23c8]]['forEach'](_0x28f402=>this['_injector'][_0x2df7e8(0xaa)](_0x28f402));}[_0x29140e(0xdb)](){const _0x369b6a=_0x29140e;this[_0x369b6a(0x92)]['get'](_0x3c23c8);}},_0x4deaf9(_0x6062bb[_0x29140e(0xce)],_0x29140e(0xb1),_0x1939d2),_0x4deaf9(_0x6062bb[_0x29140e(0xce)],'type',_0x1186de[_0x29140e(0xb4)][_0x29140e(0xd6)]),_0x6062bb['UniverSheetsExchangeClientPlugin']=_0x29e6f8([_0x1186de[_0x29140e(0xaf)](_0x33dad3[_0x29140e(0xcd)]),_0x304485(0x1,_0x1186de[_0x29140e(0xb7)](_0x1186de[_0x29140e(0x91)])),_0x304485(0x2,_0x1186de[_0x29140e(0xc9)])],_0x6062bb[_0x29140e(0xce)]),_0x6062bb[_0x29140e(0xcc)]=_0x5b73f9,_0x6062bb[_0x29140e(0xc3)]=_0x2e35ac,Object[_0x29140e(0xad)](_0x6062bb,Symbol[_0x29140e(0xd1)],{'value':_0x29140e(0x9f)});}));
1
+ function _0x5e19(_0x293cda,_0x13ab39){_0x293cda=_0x293cda-0xbd;const _0x55d887=_0x55d8();let _0x5e19ae=_0x55d887[_0x293cda];return _0x5e19ae;}function _0x55d8(){const _0x278d1c=['@univerjs/sheets','IMenuManagerService','Disposable','add','UniverSheetsExchangeClientPlugin','defineProperty','_injector','FolderIcon','symbol','_initCommands','254011kteqsn','getMenuHiddenObservable','IExchangeOperateService','WorkbookExportPermission','UniverSheetsUi','_config','Plugin','_configService','get','search','sheets-exchange-client.config','UniverSheets','object','menu','SHEET_EXCHANGE_CLIENT_PLUGIN','OTHERS','MenuItemType','length','98QSZWiO','exchange.download','22188UgxeIR','UniverProSheetsExchangeClient','9tAMyPb','sheets-exchange-client.operation.exchange','47148VuYLLt','getCurrentRangeDisable$','_menuManagerService','forEach','UniverProExchangeClient','setConfig','function','143gCSqYe','IConfigService','SUBITEMS','@univerjs/sheets-ui','toStringTag','getOwnPropertyDescriptor','4811543eFBhrH','exports','2IBXwko','exportXLSXBySnapshot','Inject','@univerjs/core','OPERATION','onStarting','UniverUi','CommandType','UniverInstanceType','unit','@univerjs-pro/exchange-client','_initMenus','_commandService','4145SQFsqY','mergeMenu','265203HobUQy','exchange.file','2568632CjtrGk','10JFanbI','exchange.upload','exportXLSXByUnitId','UniverCore','Injector','ImportXLSXOperation','registerCommand','BUTTON','exchange-client.operation.export-xlsx','328xOWEgW'];_0x55d8=function(){return _0x278d1c;};return _0x55d8();}(function(_0x415c7e,_0x5d3b1f){const _0x56bdc8=_0x5e19,_0x56ace7=_0x415c7e();while(!![]){try{const _0x557edf=-parseInt(_0x56bdc8(0x107))/0x1*(-parseInt(_0x56bdc8(0xe1))/0x2)+-parseInt(_0x56bdc8(0xf0))/0x3+parseInt(_0x56bdc8(0xfc))/0x4*(-parseInt(_0x56bdc8(0xee))/0x5)+-parseInt(_0x56bdc8(0xce))/0x6*(-parseInt(_0x56bdc8(0xcc))/0x7)+parseInt(_0x56bdc8(0xf2))/0x8*(-parseInt(_0x56bdc8(0xd0))/0x9)+-parseInt(_0x56bdc8(0xf3))/0xa*(-parseInt(_0x56bdc8(0xdf))/0xb)+-parseInt(_0x56bdc8(0xd2))/0xc*(parseInt(_0x56bdc8(0xd9))/0xd);if(_0x557edf===_0x5d3b1f)break;else _0x56ace7['push'](_0x56ace7['shift']());}catch(_0x25bce5){_0x56ace7['push'](_0x56ace7['shift']());}}}(_0x55d8,0x36537),function(_0x9a11e3,_0x3826f2){const _0xf1d30f=_0x5e19;typeof exports==_0xf1d30f(0xc6)&&typeof module<'u'?_0x3826f2(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0xf1d30f(0xd8)&&define['amd']?define([_0xf1d30f(0xe0),_0xf1d30f(0xeb),_0xf1d30f(0xe4),'@univerjs/ui',_0xf1d30f(0xfd),_0xf1d30f(0xdc)],_0x3826f2):(_0x9a11e3=typeof globalThis<'u'?globalThis:_0x9a11e3||self,_0x3826f2(_0x9a11e3[_0xf1d30f(0xcf)]={},_0x9a11e3[_0xf1d30f(0xd6)],_0x9a11e3[_0xf1d30f(0xf6)],_0x9a11e3[_0xf1d30f(0xe7)],_0x9a11e3[_0xf1d30f(0xc5)],_0x9a11e3[_0xf1d30f(0xbe)]));}(this,function(_0x20d976,_0x14e13c,_0x187e92,_0x12d449,_0x31f9ce,_0x122eb2){'use strict';const _0x339ccc=_0x5e19;const _0x5024f9={'id':'exchange-client.operation.import-xlsx','type':_0x187e92[_0x339ccc(0xe8)][_0x339ccc(0xe5)],'handler':async _0x2b6f59=>{const _0x26c678=_0x339ccc,_0x922dda=_0x2b6f59[_0x26c678(0xc2)](_0x14e13c[_0x26c678(0x109)]);return new URLSearchParams(location[_0x26c678(0xc3)])['get'](_0x26c678(0xea))?_0x922dda['importXLSXToUnitId']():_0x922dda['importXLSXToSnapshot'](),!0x0;}},_0x1aa200={'id':_0x339ccc(0xfb),'type':_0x187e92[_0x339ccc(0xe8)][_0x339ccc(0xe5)],'handler':async _0x48bdac=>{const _0x4166b4=_0x339ccc,_0x22e54e=_0x48bdac[_0x4166b4(0xc2)](_0x14e13c[_0x4166b4(0x109)]);return new URLSearchParams(location['search'])['get'](_0x4166b4(0xea))?_0x22e54e[_0x4166b4(0xf5)]():_0x22e54e[_0x4166b4(0xe2)](),!0x0;}},_0x41c7d8=_0x339ccc(0xc4),_0x54a8b1={},_0x5f095d=_0x339ccc(0xd1);function _0x112f73(_0x215cf3){const _0x5656bc=_0x339ccc;return{'id':_0x5f095d,'type':_0x12d449[_0x5656bc(0xca)][_0x5656bc(0xdb)],'icon':'DirectExportIcon','tooltip':_0x5656bc(0xf1),'hidden$':_0x12d449[_0x5656bc(0x108)](_0x215cf3,_0x187e92[_0x5656bc(0xe9)]['UNIVER_SHEET']),'disabled$':_0x122eb2[_0x5656bc(0xd3)](_0x215cf3,{'workbookTypes':[_0x31f9ce[_0x5656bc(0xbd)]]})};}function _0x1c609f(){const _0x2676e0=_0x339ccc;return{'id':_0x5024f9['id'],'type':_0x12d449[_0x2676e0(0xca)][_0x2676e0(0xfa)],'title':_0x2676e0(0xf4),'icon':_0x2676e0(0x104)};}function _0x50cfee(){const _0x4ac121=_0x339ccc;return{'id':_0x1aa200['id'],'type':_0x12d449[_0x4ac121(0xca)]['BUTTON'],'title':_0x4ac121(0xcd),'icon':'ExportIcon'};}const _0x457795={[_0x12d449['RibbonStartGroup'][_0x339ccc(0xc9)]]:{[_0x5f095d]:{'order':0.3,'menuItemFactory':_0x112f73,[_0x5024f9['id']]:{'order':0x0,'menuItemFactory':_0x1c609f},[_0x1aa200['id']]:{'order':0x1,'menuItemFactory':_0x50cfee}}}};var _0x54dbca=Object[_0x339ccc(0xde)],_0x1106e0=(_0x5a6c8c,_0x35b1b7,_0x3c8a42,_0x17f1b5)=>{const _0x4ebc8c=_0x339ccc;for(var _0x3b0584=_0x17f1b5>0x1?void 0x0:_0x17f1b5?_0x54dbca(_0x35b1b7,_0x3c8a42):_0x35b1b7,_0x174590=_0x5a6c8c[_0x4ebc8c(0xcb)]-0x1,_0x4f58f7;_0x174590>=0x0;_0x174590--)(_0x4f58f7=_0x5a6c8c[_0x174590])&&(_0x3b0584=_0x4f58f7(_0x3b0584)||_0x3b0584);return _0x3b0584;},_0x38fcf3=(_0xda202c,_0x3c11fa)=>(_0x25d4cc,_0x1b5382)=>_0x3c11fa(_0x25d4cc,_0x1b5382,_0xda202c);let _0x1e689a=class extends _0x187e92[_0x339ccc(0xff)]{constructor(_0x2abb84,_0x350560){const _0x481064=_0x339ccc;super(),this[_0x481064(0xed)]=_0x2abb84,this[_0x481064(0xd4)]=_0x350560,this[_0x481064(0x106)](),this[_0x481064(0xec)]();}['_initCommands'](){const _0x154d3b=_0x339ccc;[_0x5024f9,_0x1aa200][_0x154d3b(0xd5)](_0x581b7a=>{const _0x221c43=_0x154d3b;this['disposeWithMe'](this[_0x221c43(0xed)][_0x221c43(0xf9)](_0x581b7a));});}[_0x339ccc(0xec)](){const _0x3e8910=_0x339ccc;this[_0x3e8910(0xd4)][_0x3e8910(0xef)](_0x457795);}};_0x1e689a=_0x1106e0([_0x38fcf3(0x0,_0x187e92['ICommandService']),_0x38fcf3(0x1,_0x12d449[_0x339ccc(0xfe)])],_0x1e689a);var _0x381b20=Object['defineProperty'],_0x187420=Object[_0x339ccc(0xde)],_0x1508b3=(_0x500d2e,_0x44a1de,_0x5239dd)=>_0x44a1de in _0x500d2e?_0x381b20(_0x500d2e,_0x44a1de,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5239dd}):_0x500d2e[_0x44a1de]=_0x5239dd,_0xfbb32b=(_0x3c84da,_0x14fbb6,_0x4b88b2,_0x1ee223)=>{for(var _0x4262d1=_0x1ee223>0x1?void 0x0:_0x1ee223?_0x187420(_0x14fbb6,_0x4b88b2):_0x14fbb6,_0x5c2520=_0x3c84da['length']-0x1,_0x389742;_0x5c2520>=0x0;_0x5c2520--)(_0x389742=_0x3c84da[_0x5c2520])&&(_0x4262d1=_0x389742(_0x4262d1)||_0x4262d1);return _0x4262d1;},_0x379c0f=(_0x2cd0a0,_0x2b81ee)=>(_0x2a5f29,_0x5ba580)=>_0x2b81ee(_0x2a5f29,_0x5ba580,_0x2cd0a0),_0x13588d=(_0xc72977,_0x524ccf,_0xecaaa0)=>_0x1508b3(_0xc72977,typeof _0x524ccf!=_0x339ccc(0x105)?_0x524ccf+'':_0x524ccf,_0xecaaa0);const _0x126465=_0x339ccc(0xc8);_0x20d976[_0x339ccc(0x101)]=class extends _0x187e92[_0x339ccc(0xc0)]{constructor(_0x39da7c=_0x54a8b1,_0x414d75,_0x3a2a6d){const _0x21ad99=_0x339ccc;super(),this[_0x21ad99(0xbf)]=_0x39da7c,this[_0x21ad99(0x103)]=_0x414d75,this[_0x21ad99(0xc1)]=_0x3a2a6d;const {menu:_0x579162,..._0x4981d0}=_0x187e92['merge']({},_0x54a8b1,this[_0x21ad99(0xbf)]);_0x579162&&this['_configService'][_0x21ad99(0xd7)](_0x21ad99(0xc7),_0x579162,{'merge':!0x0}),this[_0x21ad99(0xc1)][_0x21ad99(0xd7)](_0x41c7d8,_0x4981d0);}[_0x339ccc(0xe6)](){const _0x11ce73=_0x339ccc;[[_0x1e689a]]['forEach'](_0x485d78=>this['_injector'][_0x11ce73(0x100)](_0x485d78));}['onReady'](){const _0x2d7b9f=_0x339ccc;this['_injector'][_0x2d7b9f(0xc2)](_0x1e689a);}},_0x13588d(_0x20d976[_0x339ccc(0x101)],'pluginName',_0x126465),_0x13588d(_0x20d976[_0x339ccc(0x101)],'type',_0x187e92[_0x339ccc(0xe9)]['UNIVER_SHEET']),_0x20d976[_0x339ccc(0x101)]=_0xfbb32b([_0x187e92['DependentOn'](_0x14e13c['UniverExchangeClientPlugin']),_0x379c0f(0x1,_0x187e92[_0x339ccc(0xe3)](_0x187e92[_0x339ccc(0xf7)])),_0x379c0f(0x2,_0x187e92[_0x339ccc(0xda)])],_0x20d976['UniverSheetsExchangeClientPlugin']),_0x20d976['ExportXLSXOperation']=_0x1aa200,_0x20d976[_0x339ccc(0xf8)]=_0x5024f9,Object[_0x339ccc(0x102)](_0x20d976,Symbol[_0x339ccc(0xdd)],{'value':'Module'});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.12.4-experimental.20251211-e01e32a",
3
+ "version": "0.12.4-insiders.20251212-6c41730",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -42,15 +42,15 @@
42
42
  "lib"
43
43
  ],
44
44
  "dependencies": {
45
- "@univerjs-pro/exchange-client": "0.12.4-experimental.20251211-e01e32a",
46
- "@univerjs/core": "0.12.4-experimental.20251211-e01e32a",
47
- "@univerjs/sheets-ui": "0.12.4-experimental.20251211-e01e32a",
48
- "@univerjs/ui": "0.12.4-experimental.20251211-e01e32a",
49
- "@univerjs/sheets": "0.12.4-experimental.20251211-e01e32a"
45
+ "@univerjs-pro/exchange-client": "0.12.4-insiders.20251212-6c41730",
46
+ "@univerjs/sheets": "0.12.4-insiders.20251212-6c41730",
47
+ "@univerjs/core": "0.12.4-insiders.20251212-6c41730",
48
+ "@univerjs/sheets-ui": "0.12.4-insiders.20251212-6c41730",
49
+ "@univerjs/ui": "0.12.4-insiders.20251212-6c41730"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",
53
- "vite": "^7.2.6",
53
+ "vite": "^7.2.7",
54
54
  "vitest": "^4.0.15",
55
55
  "@univerjs-infra/shared": "0.12.4"
56
56
  },