@univerjs-pro/sheets-exchange-client 0.14.0-insiders.20251222-4efcfbb → 0.14.0-insiders.20251227-b250a8d

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 _0x1985a2=_0x5658;(function(_0x4d3f59,_0x37c0eb){const _0x3a5e4c=_0x5658,_0xb8ac61=_0x4d3f59();while(!![]){try{const _0xe40482=parseInt(_0x3a5e4c(0x160))/0x1+parseInt(_0x3a5e4c(0x140))/0x2*(-parseInt(_0x3a5e4c(0x145))/0x3)+parseInt(_0x3a5e4c(0x16d))/0x4+-parseInt(_0x3a5e4c(0x156))/0x5+-parseInt(_0x3a5e4c(0x164))/0x6+-parseInt(_0x3a5e4c(0x13e))/0x7+parseInt(_0x3a5e4c(0x158))/0x8;if(_0xe40482===_0x37c0eb)break;else _0xb8ac61['push'](_0xb8ac61['shift']());}catch(_0x553abe){_0xb8ac61['push'](_0xb8ac61['shift']());}}}(_0x3033,0xd6222));Object[_0x1985a2(0x14b)](exports,Symbol['toStringTag'],{'value':'Module'});function _0x5658(_0x4a1ad0,_0xf3930e){_0x4a1ad0=_0x4a1ad0-0x135;const _0x303345=_0x3033();let _0x56582b=_0x303345[_0x4a1ad0];return _0x56582b;}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':_0x1985a2(0x14f),'type':i['CommandType']['OPERATION'],'handler':async _0x119183=>{const _0x86659c=_0x1985a2,_0x5b9f2e=_0x119183[_0x86659c(0x15d)](g[_0x86659c(0x172)]);return new URLSearchParams(location['search'])[_0x86659c(0x15d)]('unit')?_0x5b9f2e[_0x86659c(0x15e)]():_0x5b9f2e[_0x86659c(0x165)](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i[_0x1985a2(0x16a)]['OPERATION'],'handler':async _0x36500c=>{const _0xf13711=_0x1985a2,_0x3acf0e=_0x36500c['get'](g['IExchangeOperateService']);return new URLSearchParams(location['search'])[_0xf13711(0x15d)]('unit')?_0x3acf0e['exportXLSXByUnitId']():_0x3acf0e[_0xf13711(0x169)](),!0x0;}},v=_0x1985a2(0x16e),h={},S='sheets-exchange-client.operation.exchange';function x(_0x544dbd){const _0x53d3b5=_0x1985a2;return{'id':S,'type':c[_0x53d3b5(0x147)][_0x53d3b5(0x14a)],'icon':_0x53d3b5(0x163),'tooltip':_0x53d3b5(0x150),'hidden$':c[_0x53d3b5(0x159)](_0x544dbd,i[_0x53d3b5(0x162)]['UNIVER_SHEET']),'disabled$':I[_0x53d3b5(0x171)](_0x544dbd,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x32b97f=_0x1985a2;return{'id':l['id'],'type':c['MenuItemType'][_0x32b97f(0x14d)],'title':'exchange.upload','icon':_0x32b97f(0x146)};}function C(){const _0x205ea0=_0x1985a2;return{'id':p['id'],'type':c[_0x205ea0(0x147)][_0x205ea0(0x14d)],'title':_0x205ea0(0x170),'icon':_0x205ea0(0x13a)};}const f={[c[_0x1985a2(0x16c)][_0x1985a2(0x154)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x1985a2(0x137)],y=(_0x1bb581,_0x50695c,_0xcdd0da,_0x2bd838)=>{const _0x2333bc=_0x1985a2;for(var _0x466988=_0x2bd838>0x1?void 0x0:_0x2bd838?T(_0x50695c,_0xcdd0da):_0x50695c,_0x57e656=_0x1bb581[_0x2333bc(0x149)]-0x1,_0x9e3416;_0x57e656>=0x0;_0x57e656--)(_0x9e3416=_0x1bb581[_0x57e656])&&(_0x466988=_0x9e3416(_0x466988)||_0x466988);return _0x466988;},m=(_0x1c42c1,_0x1de963)=>(_0x431df0,_0x15631c)=>_0x1de963(_0x431df0,_0x15631c,_0x1c42c1);let u=class extends i[_0x1985a2(0x14c)]{constructor(_0x57a9b4,_0x4c0280){const _0xaa7afc=_0x1985a2;super(),this[_0xaa7afc(0x16f)]=_0x57a9b4,this[_0xaa7afc(0x161)]=_0x4c0280,this[_0xaa7afc(0x136)](),this[_0xaa7afc(0x13d)]();}[_0x1985a2(0x136)](){const _0x2b3600=_0x1985a2;[l,p][_0x2b3600(0x13c)](_0x523a65=>{const _0x2e6381=_0x2b3600;this[_0x2e6381(0x135)](this[_0x2e6381(0x16f)][_0x2e6381(0x142)](_0x523a65));});}[_0x1985a2(0x13d)](){const _0x30fa49=_0x1985a2;this[_0x30fa49(0x161)][_0x30fa49(0x141)](f);}};u=y([m(0x0,i[_0x1985a2(0x166)]),m(0x1,c[_0x1985a2(0x152)])],u);var O=Object[_0x1985a2(0x14b)],U=Object[_0x1985a2(0x137)],X=(_0x335090,_0x36894e,_0x2bd00c)=>_0x36894e in _0x335090?O(_0x335090,_0x36894e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2bd00c}):_0x335090[_0x36894e]=_0x2bd00c,N=(_0x2b012c,_0x19b929,_0x4f20db,_0xbd5f92)=>{const _0x27428a=_0x1985a2;for(var _0x5ac964=_0xbd5f92>0x1?void 0x0:_0xbd5f92?U(_0x19b929,_0x4f20db):_0x19b929,_0x13df36=_0x2b012c[_0x27428a(0x149)]-0x1,_0x117114;_0x13df36>=0x0;_0x13df36--)(_0x117114=_0x2b012c[_0x13df36])&&(_0x5ac964=_0x117114(_0x5ac964)||_0x5ac964);return _0x5ac964;},d=(_0x6ed628,_0x452ab5)=>(_0x4461dd,_0x318adc)=>_0x452ab5(_0x4461dd,_0x318adc,_0x6ed628),E=(_0x471e52,_0x4b30df,_0x447fee)=>X(_0x471e52,typeof _0x4b30df!=_0x1985a2(0x139)?_0x4b30df+'':_0x4b30df,_0x447fee);const L=_0x1985a2(0x157);function _0x3033(){const _0x5a4bc1=['exportXLSXBySnapshot','CommandType','add','RibbonStartGroup','1246040HKJQEq','sheets-exchange-client.config','_commandService','exchange.download','getCurrentRangeDisable$','IExchangeOperateService','disposeWithMe','_initCommands','getOwnPropertyDescriptor','onStarting','symbol','ExportIcon','onReady','forEach','_initMenus','6006784VnRNrV','merge','1446548dNzrTI','mergeMenu','registerCommand','_configService','type','6xKAQOL','FolderIcon','MenuItemType','pluginName','length','SUBITEMS','defineProperty','Disposable','BUTTON','UniverExchangeClientPlugin','exchange-client.operation.import-xlsx','exchange.file','ImportXLSXOperation','IMenuManagerService','UniverSheetsExchangeClientPlugin','OTHERS','UNIVER_SHEET','992090oAbXPU','SHEET_EXCHANGE_CLIENT_PLUGIN','25651960UHoEua','getMenuHiddenObservable','Inject','Injector','_injector','get','importXLSXToUnitId','ExportXLSXOperation','366838KyuaKe','_menuManagerService','UniverInstanceType','DirectExportIcon','3028050ciHMXC','importXLSXToSnapshot','ICommandService','Plugin','setConfig'];_0x3033=function(){return _0x5a4bc1;};return _0x3033();}exports[_0x1985a2(0x153)]=class extends i[_0x1985a2(0x167)]{constructor(_0x17799d=h,_0x4d79e7,_0x28bf7c){const _0x24a96f=_0x1985a2;super(),this['_config']=_0x17799d,this[_0x24a96f(0x15c)]=_0x4d79e7,this['_configService']=_0x28bf7c;const {menu:_0x5cee20,..._0x56ad75}=i[_0x24a96f(0x13f)]({},h,this['_config']);_0x5cee20&&this[_0x24a96f(0x143)][_0x24a96f(0x168)]('menu',_0x5cee20,{'merge':!0x0}),this[_0x24a96f(0x143)][_0x24a96f(0x168)](v,_0x56ad75);}[_0x1985a2(0x138)](){const _0x201eba=_0x1985a2;[[u]][_0x201eba(0x13c)](_0x25c21c=>this[_0x201eba(0x15c)][_0x201eba(0x16b)](_0x25c21c));}[_0x1985a2(0x13b)](){const _0x438f96=_0x1985a2;this[_0x438f96(0x15c)][_0x438f96(0x15d)](u);}},E(exports['UniverSheetsExchangeClientPlugin'],_0x1985a2(0x148),L),E(exports[_0x1985a2(0x153)],_0x1985a2(0x144),i[_0x1985a2(0x162)][_0x1985a2(0x155)]),exports['UniverSheetsExchangeClientPlugin']=N([i['DependentOn'](g[_0x1985a2(0x14e)]),d(0x1,i[_0x1985a2(0x15a)](i[_0x1985a2(0x15b)])),d(0x2,i['IConfigService'])],exports['UniverSheetsExchangeClientPlugin']),exports[_0x1985a2(0x15f)]=p,exports[_0x1985a2(0x151)]=l;
1
+ 'use strict';function _0xd92a(){const _0x5e03a6=['_menuManagerService','search','OPERATION','IConfigService','exchange.upload','forEach','Disposable','disposeWithMe','defineProperty','exchange.file','MenuItemType','_commandService','370935cgpPhm','_injector','_config','4vJzKTr','210578ZjvfHG','exchange.download','Inject','22HuJYYJ','1325772lKSrMm','IExchangeOperateService','_initMenus','exportXLSXBySnapshot','mergeMenu','RibbonStartGroup','1671464BSQmMH','IMenuManagerService','3OBTXKs','942174DTdEqx','getOwnPropertyDescriptor','30717XVDXNy','UniverInstanceType','102060nVgTdd','UniverExchangeClientPlugin','BUTTON','importXLSXToUnitId','FolderIcon','OTHERS','unit','UNIVER_SHEET','onReady','getCurrentRangeDisable$','_initCommands','Plugin','importXLSXToSnapshot','length','UniverSheetsExchangeClientPlugin','type','get','exchange-client.operation.import-xlsx','registerCommand','onStarting','WorkbookExportPermission','setConfig','pluginName','toStringTag','7scfQGu','getMenuHiddenObservable','symbol','_configService','9kNzYQr','sheets-exchange-client.operation.exchange','CommandType','exportXLSXByUnitId','ImportXLSXOperation','exchange-client.operation.export-xlsx','add','ICommandService'];_0xd92a=function(){return _0x5e03a6;};return _0xd92a();}const _0xcde0d0=_0x1f39;(function(_0x5566ce,_0x7d70da){const _0x1308c2=_0x1f39,_0x1e7dd9=_0x5566ce();while(!![]){try{const _0x178b29=-parseInt(_0x1308c2(0x19f))/0x1*(-parseInt(_0x1308c2(0x193))/0x2)+-parseInt(_0x1308c2(0x1a2))/0x3+-parseInt(_0x1308c2(0x192))/0x4*(parseInt(_0x1308c2(0x18f))/0x5)+-parseInt(_0x1308c2(0x1a0))/0x6*(parseInt(_0x1308c2(0x177))/0x7)+parseInt(_0x1308c2(0x19d))/0x8*(parseInt(_0x1308c2(0x17b))/0x9)+parseInt(_0x1308c2(0x1a4))/0xa*(parseInt(_0x1308c2(0x196))/0xb)+-parseInt(_0x1308c2(0x197))/0xc;if(_0x178b29===_0x7d70da)break;else _0x1e7dd9['push'](_0x1e7dd9['shift']());}catch(_0x3a6a28){_0x1e7dd9['push'](_0x1e7dd9['shift']());}}}(_0xd92a,0x2f2fc));Object[_0xcde0d0(0x18b)](exports,Symbol[_0xcde0d0(0x176)],{'value':'Module'});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':_0xcde0d0(0x170),'type':i[_0xcde0d0(0x17d)][_0xcde0d0(0x185)],'handler':async _0x3de068=>{const _0x3a39db=_0xcde0d0,_0xf6283d=_0x3de068[_0x3a39db(0x16f)](g[_0x3a39db(0x198)]);return new URLSearchParams(location[_0x3a39db(0x184)])['get'](_0x3a39db(0x165))?_0xf6283d[_0x3a39db(0x162)]():_0xf6283d[_0x3a39db(0x16b)](),!0x0;}},p={'id':_0xcde0d0(0x180),'type':i['CommandType'][_0xcde0d0(0x185)],'handler':async _0x2ae1bb=>{const _0x5caab8=_0xcde0d0,_0x8c874f=_0x2ae1bb[_0x5caab8(0x16f)](g[_0x5caab8(0x198)]);return new URLSearchParams(location[_0x5caab8(0x184)])[_0x5caab8(0x16f)]('unit')?_0x8c874f[_0x5caab8(0x17e)]():_0x8c874f[_0x5caab8(0x19a)](),!0x0;}},v='sheets-exchange-client.config',h={},S=_0xcde0d0(0x17c);function x(_0x284da4){const _0x45660b=_0xcde0d0;return{'id':S,'type':c[_0x45660b(0x18d)]['SUBITEMS'],'icon':'DirectExportIcon','tooltip':_0x45660b(0x18c),'hidden$':c[_0x45660b(0x178)](_0x284da4,i[_0x45660b(0x1a3)][_0x45660b(0x166)]),'disabled$':I[_0x45660b(0x168)](_0x284da4,{'workbookTypes':[_[_0x45660b(0x173)]]})};}function P(){const _0x2cf203=_0xcde0d0;return{'id':l['id'],'type':c[_0x2cf203(0x18d)]['BUTTON'],'title':_0x2cf203(0x187),'icon':_0x2cf203(0x163)};}function C(){const _0x4cadf2=_0xcde0d0;return{'id':p['id'],'type':c['MenuItemType'][_0x4cadf2(0x161)],'title':_0x4cadf2(0x194),'icon':'ExportIcon'};}const f={[c[_0xcde0d0(0x19c)][_0xcde0d0(0x164)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0xcde0d0(0x1a1)],y=(_0x1f669c,_0x425d4b,_0x5c4a69,_0x92402b)=>{const _0x60e706=_0xcde0d0;for(var _0x5233f7=_0x92402b>0x1?void 0x0:_0x92402b?T(_0x425d4b,_0x5c4a69):_0x425d4b,_0x34a53c=_0x1f669c[_0x60e706(0x16c)]-0x1,_0x55b631;_0x34a53c>=0x0;_0x34a53c--)(_0x55b631=_0x1f669c[_0x34a53c])&&(_0x5233f7=_0x55b631(_0x5233f7)||_0x5233f7);return _0x5233f7;},m=(_0x106360,_0x37c109)=>(_0x4e622a,_0x460575)=>_0x37c109(_0x4e622a,_0x460575,_0x106360);let u=class extends i[_0xcde0d0(0x189)]{constructor(_0x1d45d5,_0x4086fc){const _0x3a1d24=_0xcde0d0;super(),this[_0x3a1d24(0x18e)]=_0x1d45d5,this[_0x3a1d24(0x183)]=_0x4086fc,this[_0x3a1d24(0x169)](),this[_0x3a1d24(0x199)]();}[_0xcde0d0(0x169)](){const _0x416f92=_0xcde0d0;[l,p][_0x416f92(0x188)](_0x1211a7=>{const _0x51ec52=_0x416f92;this[_0x51ec52(0x18a)](this[_0x51ec52(0x18e)][_0x51ec52(0x171)](_0x1211a7));});}[_0xcde0d0(0x199)](){const _0xd0aeb4=_0xcde0d0;this[_0xd0aeb4(0x183)][_0xd0aeb4(0x19b)](f);}};u=y([m(0x0,i[_0xcde0d0(0x182)]),m(0x1,c[_0xcde0d0(0x19e)])],u);function _0x1f39(_0x5d6cf1,_0x534594){_0x5d6cf1=_0x5d6cf1-0x160;const _0xd92abe=_0xd92a();let _0x1f39e4=_0xd92abe[_0x5d6cf1];return _0x1f39e4;}var O=Object[_0xcde0d0(0x18b)],U=Object[_0xcde0d0(0x1a1)],X=(_0x345e49,_0x3d070c,_0x3f6f49)=>_0x3d070c in _0x345e49?O(_0x345e49,_0x3d070c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3f6f49}):_0x345e49[_0x3d070c]=_0x3f6f49,N=(_0x448119,_0x2ae62b,_0x5e7f52,_0x7e608f)=>{for(var _0x37cade=_0x7e608f>0x1?void 0x0:_0x7e608f?U(_0x2ae62b,_0x5e7f52):_0x2ae62b,_0x123c7f=_0x448119['length']-0x1,_0x7382ce;_0x123c7f>=0x0;_0x123c7f--)(_0x7382ce=_0x448119[_0x123c7f])&&(_0x37cade=_0x7382ce(_0x37cade)||_0x37cade);return _0x37cade;},d=(_0x184a1f,_0x44c151)=>(_0x54c366,_0x21f89b)=>_0x44c151(_0x54c366,_0x21f89b,_0x184a1f),E=(_0x4a37fe,_0x3d12a4,_0x375cef)=>X(_0x4a37fe,typeof _0x3d12a4!=_0xcde0d0(0x179)?_0x3d12a4+'':_0x3d12a4,_0x375cef);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports[_0xcde0d0(0x16d)]=class extends i[_0xcde0d0(0x16a)]{constructor(_0x239cf9=h,_0x3962bb,_0x1fe666){const _0x23a43b=_0xcde0d0;super(),this[_0x23a43b(0x191)]=_0x239cf9,this[_0x23a43b(0x190)]=_0x3962bb,this['_configService']=_0x1fe666;const {menu:_0x1f14e6,..._0x296964}=i['merge']({},h,this[_0x23a43b(0x191)]);_0x1f14e6&&this[_0x23a43b(0x17a)][_0x23a43b(0x174)]('menu',_0x1f14e6,{'merge':!0x0}),this[_0x23a43b(0x17a)][_0x23a43b(0x174)](v,_0x296964);}[_0xcde0d0(0x172)](){const _0x4ffc2a=_0xcde0d0;[[u]]['forEach'](_0x310176=>this[_0x4ffc2a(0x190)][_0x4ffc2a(0x181)](_0x310176));}[_0xcde0d0(0x167)](){const _0x1f6402=_0xcde0d0;this[_0x1f6402(0x190)][_0x1f6402(0x16f)](u);}},E(exports[_0xcde0d0(0x16d)],_0xcde0d0(0x175),L),E(exports[_0xcde0d0(0x16d)],_0xcde0d0(0x16e),i[_0xcde0d0(0x1a3)]['UNIVER_SHEET']),exports[_0xcde0d0(0x16d)]=N([i['DependentOn'](g[_0xcde0d0(0x160)]),d(0x1,i[_0xcde0d0(0x195)](i['Injector'])),d(0x2,i[_0xcde0d0(0x186)])],exports[_0xcde0d0(0x16d)]),exports['ExportXLSXOperation']=p,exports[_0xcde0d0(0x17f)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4db81c=_0x5bc7;(function(_0x2d6d38,_0x4b2c2b){const _0x233b24=_0x5bc7,_0x436502=_0x2d6d38();while(!![]){try{const _0x5127eb=-parseInt(_0x233b24(0x202))/0x1*(parseInt(_0x233b24(0x1e8))/0x2)+-parseInt(_0x233b24(0x20e))/0x3+-parseInt(_0x233b24(0x209))/0x4+parseInt(_0x233b24(0x1ef))/0x5*(-parseInt(_0x233b24(0x1e2))/0x6)+-parseInt(_0x233b24(0x1e4))/0x7+-parseInt(_0x233b24(0x1e6))/0x8+parseInt(_0x233b24(0x20d))/0x9*(parseInt(_0x233b24(0x204))/0xa);if(_0x5127eb===_0x4b2c2b)break;else _0x436502['push'](_0x436502['shift']());}catch(_0x559149){_0x436502['push'](_0x436502['shift']());}}}(_0x2211,0xd3f58));import{IExchangeOperateService as _0x2e6b68,UniverExchangeClientPlugin as _0x40cf7f}from'@univerjs-pro/exchange-client';function _0x5bc7(_0x1d0bab,_0x3b8e15){_0x1d0bab=_0x1d0bab-0x1de;const _0x2211a7=_0x2211();let _0x5bc794=_0x2211a7[_0x1d0bab];return _0x5bc794;}import{CommandType as _0x17b4ac,UniverInstanceType as _0x517340,Disposable as _0x3d08ec,ICommandService as _0x32f1c7,DependentOn as _0x3fffa4,Inject as _0x195adf,Injector as _0x2d8093,IConfigService as _0xc364f7,Plugin as _0x2935ce,merge as _0x4ad856}from'@univerjs/core';import{MenuItemType as _0x3d73cd,getMenuHiddenObservable as _0x501014,RibbonStartGroup as _0x28c2b2,IMenuManagerService as _0x1f4e21}from'@univerjs/ui';import{WorkbookExportPermission as _0x530f52}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x2cb04b}from'@univerjs/sheets-ui';const p={'id':_0x4db81c(0x200),'type':_0x17b4ac['OPERATION'],'handler':async _0x437dfd=>{const _0x2dc23c=_0x4db81c,_0x1f9fb7=_0x437dfd['get'](_0x2e6b68);return new URLSearchParams(location['search'])[_0x2dc23c(0x1f2)](_0x2dc23c(0x20b))?_0x1f9fb7[_0x2dc23c(0x1e7)]():_0x1f9fb7[_0x2dc23c(0x1ff)](),!0x0;}},u={'id':_0x4db81c(0x1f1),'type':_0x17b4ac[_0x4db81c(0x1ed)],'handler':async _0x1f4259=>{const _0x525b6e=_0x4db81c,_0x125fcf=_0x1f4259['get'](_0x2e6b68);return new URLSearchParams(location['search'])[_0x525b6e(0x1f2)]('unit')?_0x125fcf['exportXLSXByUnitId']():_0x125fcf[_0x525b6e(0x1f6)](),!0x0;}},H=_0x4db81c(0x206),l={},S=_0x4db81c(0x1f8);function R(_0x1440be){const _0x23228f=_0x4db81c;return{'id':S,'type':_0x3d73cd[_0x23228f(0x1e5)],'icon':_0x23228f(0x1f5),'tooltip':_0x23228f(0x1fa),'hidden$':_0x501014(_0x1440be,_0x517340[_0x23228f(0x1ea)]),'disabled$':_0x2cb04b(_0x1440be,{'workbookTypes':[_0x530f52]})};}function w(){const _0x380b7d=_0x4db81c;return{'id':p['id'],'type':_0x3d73cd[_0x380b7d(0x1f3)],'title':_0x380b7d(0x1f4),'icon':_0x380b7d(0x1fb)};}function D(){const _0x35dc50=_0x4db81c;return{'id':u['id'],'type':_0x3d73cd[_0x35dc50(0x1f3)],'title':_0x35dc50(0x1e9),'icon':_0x35dc50(0x1de)};}const F={[_0x28c2b2['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x4db81c(0x1fc)],A=(_0x49a7ca,_0x27b079,_0x42aa06,_0x59eeb8)=>{const _0x1c8dc0=_0x4db81c;for(var _0x984fbe=_0x59eeb8>0x1?void 0x0:_0x59eeb8?G(_0x27b079,_0x42aa06):_0x27b079,_0x5c13dc=_0x49a7ca[_0x1c8dc0(0x1e1)]-0x1,_0x177f11;_0x5c13dc>=0x0;_0x5c13dc--)(_0x177f11=_0x49a7ca[_0x5c13dc])&&(_0x984fbe=_0x177f11(_0x984fbe)||_0x984fbe);return _0x984fbe;},d=(_0x2760e9,_0x490841)=>(_0x4aa7d1,_0x44975f)=>_0x490841(_0x4aa7d1,_0x44975f,_0x2760e9);let c=class extends _0x3d08ec{constructor(_0x49d527,_0x409b1e){const _0x4861ca=_0x4db81c;super(),this[_0x4861ca(0x1eb)]=_0x49d527,this[_0x4861ca(0x208)]=_0x409b1e,this[_0x4861ca(0x1e0)](),this[_0x4861ca(0x207)]();}[_0x4db81c(0x1e0)](){const _0x2164a3=_0x4db81c;[p,u][_0x2164a3(0x1f9)](_0x543239=>{const _0x3af195=_0x2164a3;this['disposeWithMe'](this[_0x3af195(0x1eb)][_0x3af195(0x1ee)](_0x543239));});}[_0x4db81c(0x207)](){const _0x56de81=_0x4db81c;this[_0x56de81(0x208)][_0x56de81(0x20c)](F);}};c=A([d(0x0,_0x32f1c7),d(0x1,_0x1f4e21)],c);var j=Object[_0x4db81c(0x20a)],B=Object[_0x4db81c(0x1fc)],$=(_0x5e6235,_0xc5e373,_0x1d431c)=>_0xc5e373 in _0x5e6235?j(_0x5e6235,_0xc5e373,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d431c}):_0x5e6235[_0xc5e373]=_0x1d431c,V=(_0x41bfdb,_0x543827,_0x40473a,_0x12ba7d)=>{for(var _0x23b387=_0x12ba7d>0x1?void 0x0:_0x12ba7d?B(_0x543827,_0x40473a):_0x543827,_0x1fc279=_0x41bfdb['length']-0x1,_0x453faf;_0x1fc279>=0x0;_0x1fc279--)(_0x453faf=_0x41bfdb[_0x1fc279])&&(_0x23b387=_0x453faf(_0x23b387)||_0x23b387);return _0x23b387;},_=(_0x5978a9,_0x19353e)=>(_0x3126a4,_0x10873b)=>_0x19353e(_0x3126a4,_0x10873b,_0x5978a9),I=(_0x670cca,_0x597819,_0x521f70)=>$(_0x670cca,typeof _0x597819!=_0x4db81c(0x1fd)?_0x597819+'':_0x597819,_0x521f70);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x2935ce{constructor(_0x5cbe52=l,_0x5d5b4b,_0x298340){const _0x54a803=_0x4db81c;super(),this[_0x54a803(0x1ec)]=_0x5cbe52,this[_0x54a803(0x1e3)]=_0x5d5b4b,this[_0x54a803(0x1f0)]=_0x298340;const {menu:_0x76cc26,..._0x218991}=_0x4ad856({},l,this['_config']);_0x76cc26&&this[_0x54a803(0x1f0)][_0x54a803(0x205)](_0x54a803(0x203),_0x76cc26,{'merge':!0x0}),this['_configService']['setConfig'](H,_0x218991);}[_0x4db81c(0x201)](){const _0x4ce23a=_0x4db81c;[[c]]['forEach'](_0x393130=>this[_0x4ce23a(0x1e3)][_0x4ce23a(0x1df)](_0x393130));}[_0x4db81c(0x1fe)](){const _0x2a854d=_0x4db81c;this[_0x2a854d(0x1e3)][_0x2a854d(0x1f2)](c);}};function _0x2211(){const _0x511752=['exchange-client.operation.import-xlsx','onStarting','8237DSRqmJ','menu','125770xtBSwu','setConfig','sheets-exchange-client.config','_initMenus','_menuManagerService','2251696vpMLhN','defineProperty','unit','mergeMenu','3690ZFZMFG','1945452Jhwirk','ExportIcon','add','_initCommands','length','1496016qwJUGE','_injector','10499979YCViwX','SUBITEMS','4127736ijQUKV','importXLSXToUnitId','76vyNBED','exchange.download','UNIVER_SHEET','_commandService','_config','OPERATION','registerCommand','15zmRJfv','_configService','exchange-client.operation.export-xlsx','get','BUTTON','exchange.upload','DirectExportIcon','exportXLSXBySnapshot','pluginName','sheets-exchange-client.operation.exchange','forEach','exchange.file','FolderIcon','getOwnPropertyDescriptor','symbol','onReady','importXLSXToSnapshot'];_0x2211=function(){return _0x511752;};return _0x2211();}I(s,_0x4db81c(0x1f7),W),I(s,'type',_0x517340[_0x4db81c(0x1ea)]),s=V([_0x3fffa4(_0x40cf7f),_(0x1,_0x195adf(_0x2d8093)),_(0x2,_0xc364f7)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x4086b2=_0x190f;function _0x190f(_0x306550,_0x2b3905){_0x306550=_0x306550-0x179;const _0x10876d=_0x1087();let _0x190f0e=_0x10876d[_0x306550];return _0x190f0e;}(function(_0x292502,_0x1aff8b){const _0x5dd90d=_0x190f,_0x734931=_0x292502();while(!![]){try{const _0xb335e6=parseInt(_0x5dd90d(0x18c))/0x1*(parseInt(_0x5dd90d(0x1a4))/0x2)+parseInt(_0x5dd90d(0x187))/0x3+-parseInt(_0x5dd90d(0x199))/0x4+-parseInt(_0x5dd90d(0x183))/0x5+parseInt(_0x5dd90d(0x1a8))/0x6+parseInt(_0x5dd90d(0x195))/0x7*(parseInt(_0x5dd90d(0x17a))/0x8)+-parseInt(_0x5dd90d(0x1ab))/0x9*(parseInt(_0x5dd90d(0x17b))/0xa);if(_0xb335e6===_0x1aff8b)break;else _0x734931['push'](_0x734931['shift']());}catch(_0x355e8d){_0x734931['push'](_0x734931['shift']());}}}(_0x1087,0x8384a));import{IExchangeOperateService as _0x4828fa,UniverExchangeClientPlugin as _0x10a9e5}from'@univerjs-pro/exchange-client';import{CommandType as _0x15f7be,UniverInstanceType as _0x114671,Disposable as _0x169be0,ICommandService as _0x660239,DependentOn as _0x3dfd4d,Inject as _0x354c12,Injector as _0x1d7d91,IConfigService as _0x118fba,Plugin as _0x510b90,merge as _0x5af304}from'@univerjs/core';import{MenuItemType as _0x23e236,getMenuHiddenObservable as _0x1dcf82,RibbonStartGroup as _0x4012e3,IMenuManagerService as _0x407990}from'@univerjs/ui';import{WorkbookExportPermission as _0x37992d}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x29827d}from'@univerjs/sheets-ui';const p={'id':_0x4086b2(0x1a5),'type':_0x15f7be[_0x4086b2(0x19c)],'handler':async _0x3f2c6e=>{const _0x1a47e0=_0x4086b2,_0x8fcc9f=_0x3f2c6e[_0x1a47e0(0x1a7)](_0x4828fa);return new URLSearchParams(location['search'])['get'](_0x1a47e0(0x185))?_0x8fcc9f[_0x1a47e0(0x196)]():_0x8fcc9f[_0x1a47e0(0x18a)](),!0x0;}},u={'id':_0x4086b2(0x1ad),'type':_0x15f7be[_0x4086b2(0x19c)],'handler':async _0x5605ed=>{const _0x1a6928=_0x4086b2,_0x3c8eda=_0x5605ed[_0x1a6928(0x1a7)](_0x4828fa);return new URLSearchParams(location[_0x1a6928(0x18f)])[_0x1a6928(0x1a7)](_0x1a6928(0x185))?_0x3c8eda[_0x1a6928(0x1a9)]():_0x3c8eda[_0x1a6928(0x1a6)](),!0x0;}},H=_0x4086b2(0x184),l={},S=_0x4086b2(0x191);function R(_0x25fbe7){const _0x3daa9b=_0x4086b2;return{'id':S,'type':_0x23e236[_0x3daa9b(0x19d)],'icon':_0x3daa9b(0x188),'tooltip':_0x3daa9b(0x19f),'hidden$':_0x1dcf82(_0x25fbe7,_0x114671[_0x3daa9b(0x19e)]),'disabled$':_0x29827d(_0x25fbe7,{'workbookTypes':[_0x37992d]})};}function w(){const _0x1631ce=_0x4086b2;return{'id':p['id'],'type':_0x23e236[_0x1631ce(0x181)],'title':_0x1631ce(0x193),'icon':_0x1631ce(0x18d)};}function D(){const _0x3f679b=_0x4086b2;return{'id':u['id'],'type':_0x23e236[_0x3f679b(0x181)],'title':_0x3f679b(0x19a),'icon':_0x3f679b(0x180)};}const F={[_0x4012e3[_0x4086b2(0x192)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x4086b2(0x194)],A=(_0x14e39c,_0x3f9e0f,_0x2aef3e,_0x49b9df)=>{for(var _0x445a75=_0x49b9df>0x1?void 0x0:_0x49b9df?G(_0x3f9e0f,_0x2aef3e):_0x3f9e0f,_0x794f8a=_0x14e39c['length']-0x1,_0x1f2374;_0x794f8a>=0x0;_0x794f8a--)(_0x1f2374=_0x14e39c[_0x794f8a])&&(_0x445a75=_0x1f2374(_0x445a75)||_0x445a75);return _0x445a75;},d=(_0x5ea378,_0x4a8a0f)=>(_0x218207,_0x526ea6)=>_0x4a8a0f(_0x218207,_0x526ea6,_0x5ea378);let c=class extends _0x169be0{constructor(_0x1a7982,_0x212b72){const _0x4e9c02=_0x4086b2;super(),this[_0x4e9c02(0x17f)]=_0x1a7982,this[_0x4e9c02(0x198)]=_0x212b72,this[_0x4e9c02(0x18e)](),this[_0x4e9c02(0x179)]();}[_0x4086b2(0x18e)](){const _0x554c78=_0x4086b2;[p,u][_0x554c78(0x1a2)](_0x195d64=>{const _0x1c9326=_0x554c78;this[_0x1c9326(0x1ac)](this[_0x1c9326(0x17f)][_0x1c9326(0x17e)](_0x195d64));});}[_0x4086b2(0x179)](){const _0x4267b5=_0x4086b2;this[_0x4267b5(0x198)][_0x4267b5(0x189)](F);}};c=A([d(0x0,_0x660239),d(0x1,_0x407990)],c);var j=Object[_0x4086b2(0x17d)],B=Object[_0x4086b2(0x194)],$=(_0xc3e4bf,_0x235599,_0x245f09)=>_0x235599 in _0xc3e4bf?j(_0xc3e4bf,_0x235599,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x245f09}):_0xc3e4bf[_0x235599]=_0x245f09,V=(_0x3d2c5d,_0x24eec6,_0x5ba33e,_0xcb192e)=>{const _0x2d48f1=_0x4086b2;for(var _0x3258e3=_0xcb192e>0x1?void 0x0:_0xcb192e?B(_0x24eec6,_0x5ba33e):_0x24eec6,_0x37d45f=_0x3d2c5d[_0x2d48f1(0x18b)]-0x1,_0x1fefa2;_0x37d45f>=0x0;_0x37d45f--)(_0x1fefa2=_0x3d2c5d[_0x37d45f])&&(_0x3258e3=_0x1fefa2(_0x3258e3)||_0x3258e3);return _0x3258e3;},_=(_0x20ff5d,_0x24c0db)=>(_0x151adf,_0x3fa59a)=>_0x24c0db(_0x151adf,_0x3fa59a,_0x20ff5d),I=(_0x3751aa,_0x4b1e87,_0x2baf2d)=>$(_0x3751aa,typeof _0x4b1e87!=_0x4086b2(0x190)?_0x4b1e87+'':_0x4b1e87,_0x2baf2d);function _0x1087(){const _0x1362b0=['onReady','defineProperty','registerCommand','_commandService','ExportIcon','BUTTON','_config','3402615zFeGpz','sheets-exchange-client.config','unit','_configService','749196SGKdKa','DirectExportIcon','mergeMenu','importXLSXToSnapshot','length','10708ODZsem','FolderIcon','_initCommands','search','symbol','sheets-exchange-client.operation.exchange','OTHERS','exchange.upload','getOwnPropertyDescriptor','371tdymSA','importXLSXToUnitId','onStarting','_menuManagerService','148356cZfSkQ','exchange.download','type','OPERATION','SUBITEMS','UNIVER_SHEET','exchange.file','setConfig','_injector','forEach','add','2vbWpUx','exchange-client.operation.import-xlsx','exportXLSXBySnapshot','get','5968350VpzWou','exportXLSXByUnitId','menu','9UwkKhC','disposeWithMe','exchange-client.operation.export-xlsx','_initMenus','68088tBcRwP','4499380daPXGF'];_0x1087=function(){return _0x1362b0;};return _0x1087();}const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x510b90{constructor(_0x4b93a1=l,_0x30d619,_0x5b05ce){const _0x1c5f0d=_0x4086b2;super(),this[_0x1c5f0d(0x182)]=_0x4b93a1,this[_0x1c5f0d(0x1a1)]=_0x30d619,this['_configService']=_0x5b05ce;const {menu:_0xfd624b,..._0x50b939}=_0x5af304({},l,this[_0x1c5f0d(0x182)]);_0xfd624b&&this[_0x1c5f0d(0x186)][_0x1c5f0d(0x1a0)](_0x1c5f0d(0x1aa),_0xfd624b,{'merge':!0x0}),this[_0x1c5f0d(0x186)]['setConfig'](H,_0x50b939);}[_0x4086b2(0x197)](){const _0x1a4331=_0x4086b2;[[c]][_0x1a4331(0x1a2)](_0x4023f4=>this['_injector'][_0x1a4331(0x1a3)](_0x4023f4));}[_0x4086b2(0x17c)](){const _0x3a632c=_0x4086b2;this[_0x3a632c(0x1a1)][_0x3a632c(0x1a7)](c);}};I(s,'pluginName',W),I(s,_0x4086b2(0x19b),_0x114671[_0x4086b2(0x19e)]),s=V([_0x3dfd4d(_0x10a9e5),_(0x1,_0x354c12(_0x1d7d91)),_(0x2,_0x118fba)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4db81c=_0x5bc7;(function(_0x2d6d38,_0x4b2c2b){const _0x233b24=_0x5bc7,_0x436502=_0x2d6d38();while(!![]){try{const _0x5127eb=-parseInt(_0x233b24(0x202))/0x1*(parseInt(_0x233b24(0x1e8))/0x2)+-parseInt(_0x233b24(0x20e))/0x3+-parseInt(_0x233b24(0x209))/0x4+parseInt(_0x233b24(0x1ef))/0x5*(-parseInt(_0x233b24(0x1e2))/0x6)+-parseInt(_0x233b24(0x1e4))/0x7+-parseInt(_0x233b24(0x1e6))/0x8+parseInt(_0x233b24(0x20d))/0x9*(parseInt(_0x233b24(0x204))/0xa);if(_0x5127eb===_0x4b2c2b)break;else _0x436502['push'](_0x436502['shift']());}catch(_0x559149){_0x436502['push'](_0x436502['shift']());}}}(_0x2211,0xd3f58));import{IExchangeOperateService as _0x2e6b68,UniverExchangeClientPlugin as _0x40cf7f}from'@univerjs-pro/exchange-client';function _0x5bc7(_0x1d0bab,_0x3b8e15){_0x1d0bab=_0x1d0bab-0x1de;const _0x2211a7=_0x2211();let _0x5bc794=_0x2211a7[_0x1d0bab];return _0x5bc794;}import{CommandType as _0x17b4ac,UniverInstanceType as _0x517340,Disposable as _0x3d08ec,ICommandService as _0x32f1c7,DependentOn as _0x3fffa4,Inject as _0x195adf,Injector as _0x2d8093,IConfigService as _0xc364f7,Plugin as _0x2935ce,merge as _0x4ad856}from'@univerjs/core';import{MenuItemType as _0x3d73cd,getMenuHiddenObservable as _0x501014,RibbonStartGroup as _0x28c2b2,IMenuManagerService as _0x1f4e21}from'@univerjs/ui';import{WorkbookExportPermission as _0x530f52}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x2cb04b}from'@univerjs/sheets-ui';const p={'id':_0x4db81c(0x200),'type':_0x17b4ac['OPERATION'],'handler':async _0x437dfd=>{const _0x2dc23c=_0x4db81c,_0x1f9fb7=_0x437dfd['get'](_0x2e6b68);return new URLSearchParams(location['search'])[_0x2dc23c(0x1f2)](_0x2dc23c(0x20b))?_0x1f9fb7[_0x2dc23c(0x1e7)]():_0x1f9fb7[_0x2dc23c(0x1ff)](),!0x0;}},u={'id':_0x4db81c(0x1f1),'type':_0x17b4ac[_0x4db81c(0x1ed)],'handler':async _0x1f4259=>{const _0x525b6e=_0x4db81c,_0x125fcf=_0x1f4259['get'](_0x2e6b68);return new URLSearchParams(location['search'])[_0x525b6e(0x1f2)]('unit')?_0x125fcf['exportXLSXByUnitId']():_0x125fcf[_0x525b6e(0x1f6)](),!0x0;}},H=_0x4db81c(0x206),l={},S=_0x4db81c(0x1f8);function R(_0x1440be){const _0x23228f=_0x4db81c;return{'id':S,'type':_0x3d73cd[_0x23228f(0x1e5)],'icon':_0x23228f(0x1f5),'tooltip':_0x23228f(0x1fa),'hidden$':_0x501014(_0x1440be,_0x517340[_0x23228f(0x1ea)]),'disabled$':_0x2cb04b(_0x1440be,{'workbookTypes':[_0x530f52]})};}function w(){const _0x380b7d=_0x4db81c;return{'id':p['id'],'type':_0x3d73cd[_0x380b7d(0x1f3)],'title':_0x380b7d(0x1f4),'icon':_0x380b7d(0x1fb)};}function D(){const _0x35dc50=_0x4db81c;return{'id':u['id'],'type':_0x3d73cd[_0x35dc50(0x1f3)],'title':_0x35dc50(0x1e9),'icon':_0x35dc50(0x1de)};}const F={[_0x28c2b2['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x4db81c(0x1fc)],A=(_0x49a7ca,_0x27b079,_0x42aa06,_0x59eeb8)=>{const _0x1c8dc0=_0x4db81c;for(var _0x984fbe=_0x59eeb8>0x1?void 0x0:_0x59eeb8?G(_0x27b079,_0x42aa06):_0x27b079,_0x5c13dc=_0x49a7ca[_0x1c8dc0(0x1e1)]-0x1,_0x177f11;_0x5c13dc>=0x0;_0x5c13dc--)(_0x177f11=_0x49a7ca[_0x5c13dc])&&(_0x984fbe=_0x177f11(_0x984fbe)||_0x984fbe);return _0x984fbe;},d=(_0x2760e9,_0x490841)=>(_0x4aa7d1,_0x44975f)=>_0x490841(_0x4aa7d1,_0x44975f,_0x2760e9);let c=class extends _0x3d08ec{constructor(_0x49d527,_0x409b1e){const _0x4861ca=_0x4db81c;super(),this[_0x4861ca(0x1eb)]=_0x49d527,this[_0x4861ca(0x208)]=_0x409b1e,this[_0x4861ca(0x1e0)](),this[_0x4861ca(0x207)]();}[_0x4db81c(0x1e0)](){const _0x2164a3=_0x4db81c;[p,u][_0x2164a3(0x1f9)](_0x543239=>{const _0x3af195=_0x2164a3;this['disposeWithMe'](this[_0x3af195(0x1eb)][_0x3af195(0x1ee)](_0x543239));});}[_0x4db81c(0x207)](){const _0x56de81=_0x4db81c;this[_0x56de81(0x208)][_0x56de81(0x20c)](F);}};c=A([d(0x0,_0x32f1c7),d(0x1,_0x1f4e21)],c);var j=Object[_0x4db81c(0x20a)],B=Object[_0x4db81c(0x1fc)],$=(_0x5e6235,_0xc5e373,_0x1d431c)=>_0xc5e373 in _0x5e6235?j(_0x5e6235,_0xc5e373,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d431c}):_0x5e6235[_0xc5e373]=_0x1d431c,V=(_0x41bfdb,_0x543827,_0x40473a,_0x12ba7d)=>{for(var _0x23b387=_0x12ba7d>0x1?void 0x0:_0x12ba7d?B(_0x543827,_0x40473a):_0x543827,_0x1fc279=_0x41bfdb['length']-0x1,_0x453faf;_0x1fc279>=0x0;_0x1fc279--)(_0x453faf=_0x41bfdb[_0x1fc279])&&(_0x23b387=_0x453faf(_0x23b387)||_0x23b387);return _0x23b387;},_=(_0x5978a9,_0x19353e)=>(_0x3126a4,_0x10873b)=>_0x19353e(_0x3126a4,_0x10873b,_0x5978a9),I=(_0x670cca,_0x597819,_0x521f70)=>$(_0x670cca,typeof _0x597819!=_0x4db81c(0x1fd)?_0x597819+'':_0x597819,_0x521f70);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x2935ce{constructor(_0x5cbe52=l,_0x5d5b4b,_0x298340){const _0x54a803=_0x4db81c;super(),this[_0x54a803(0x1ec)]=_0x5cbe52,this[_0x54a803(0x1e3)]=_0x5d5b4b,this[_0x54a803(0x1f0)]=_0x298340;const {menu:_0x76cc26,..._0x218991}=_0x4ad856({},l,this['_config']);_0x76cc26&&this[_0x54a803(0x1f0)][_0x54a803(0x205)](_0x54a803(0x203),_0x76cc26,{'merge':!0x0}),this['_configService']['setConfig'](H,_0x218991);}[_0x4db81c(0x201)](){const _0x4ce23a=_0x4db81c;[[c]]['forEach'](_0x393130=>this[_0x4ce23a(0x1e3)][_0x4ce23a(0x1df)](_0x393130));}[_0x4db81c(0x1fe)](){const _0x2a854d=_0x4db81c;this[_0x2a854d(0x1e3)][_0x2a854d(0x1f2)](c);}};function _0x2211(){const _0x511752=['exchange-client.operation.import-xlsx','onStarting','8237DSRqmJ','menu','125770xtBSwu','setConfig','sheets-exchange-client.config','_initMenus','_menuManagerService','2251696vpMLhN','defineProperty','unit','mergeMenu','3690ZFZMFG','1945452Jhwirk','ExportIcon','add','_initCommands','length','1496016qwJUGE','_injector','10499979YCViwX','SUBITEMS','4127736ijQUKV','importXLSXToUnitId','76vyNBED','exchange.download','UNIVER_SHEET','_commandService','_config','OPERATION','registerCommand','15zmRJfv','_configService','exchange-client.operation.export-xlsx','get','BUTTON','exchange.upload','DirectExportIcon','exportXLSXBySnapshot','pluginName','sheets-exchange-client.operation.exchange','forEach','exchange.file','FolderIcon','getOwnPropertyDescriptor','symbol','onReady','importXLSXToSnapshot'];_0x2211=function(){return _0x511752;};return _0x2211();}I(s,_0x4db81c(0x1f7),W),I(s,'type',_0x517340[_0x4db81c(0x1ea)]),s=V([_0x3fffa4(_0x40cf7f),_(0x1,_0x195adf(_0x2d8093)),_(0x2,_0xc364f7)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x4086b2=_0x190f;function _0x190f(_0x306550,_0x2b3905){_0x306550=_0x306550-0x179;const _0x10876d=_0x1087();let _0x190f0e=_0x10876d[_0x306550];return _0x190f0e;}(function(_0x292502,_0x1aff8b){const _0x5dd90d=_0x190f,_0x734931=_0x292502();while(!![]){try{const _0xb335e6=parseInt(_0x5dd90d(0x18c))/0x1*(parseInt(_0x5dd90d(0x1a4))/0x2)+parseInt(_0x5dd90d(0x187))/0x3+-parseInt(_0x5dd90d(0x199))/0x4+-parseInt(_0x5dd90d(0x183))/0x5+parseInt(_0x5dd90d(0x1a8))/0x6+parseInt(_0x5dd90d(0x195))/0x7*(parseInt(_0x5dd90d(0x17a))/0x8)+-parseInt(_0x5dd90d(0x1ab))/0x9*(parseInt(_0x5dd90d(0x17b))/0xa);if(_0xb335e6===_0x1aff8b)break;else _0x734931['push'](_0x734931['shift']());}catch(_0x355e8d){_0x734931['push'](_0x734931['shift']());}}}(_0x1087,0x8384a));import{IExchangeOperateService as _0x4828fa,UniverExchangeClientPlugin as _0x10a9e5}from'@univerjs-pro/exchange-client';import{CommandType as _0x15f7be,UniverInstanceType as _0x114671,Disposable as _0x169be0,ICommandService as _0x660239,DependentOn as _0x3dfd4d,Inject as _0x354c12,Injector as _0x1d7d91,IConfigService as _0x118fba,Plugin as _0x510b90,merge as _0x5af304}from'@univerjs/core';import{MenuItemType as _0x23e236,getMenuHiddenObservable as _0x1dcf82,RibbonStartGroup as _0x4012e3,IMenuManagerService as _0x407990}from'@univerjs/ui';import{WorkbookExportPermission as _0x37992d}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x29827d}from'@univerjs/sheets-ui';const p={'id':_0x4086b2(0x1a5),'type':_0x15f7be[_0x4086b2(0x19c)],'handler':async _0x3f2c6e=>{const _0x1a47e0=_0x4086b2,_0x8fcc9f=_0x3f2c6e[_0x1a47e0(0x1a7)](_0x4828fa);return new URLSearchParams(location['search'])['get'](_0x1a47e0(0x185))?_0x8fcc9f[_0x1a47e0(0x196)]():_0x8fcc9f[_0x1a47e0(0x18a)](),!0x0;}},u={'id':_0x4086b2(0x1ad),'type':_0x15f7be[_0x4086b2(0x19c)],'handler':async _0x5605ed=>{const _0x1a6928=_0x4086b2,_0x3c8eda=_0x5605ed[_0x1a6928(0x1a7)](_0x4828fa);return new URLSearchParams(location[_0x1a6928(0x18f)])[_0x1a6928(0x1a7)](_0x1a6928(0x185))?_0x3c8eda[_0x1a6928(0x1a9)]():_0x3c8eda[_0x1a6928(0x1a6)](),!0x0;}},H=_0x4086b2(0x184),l={},S=_0x4086b2(0x191);function R(_0x25fbe7){const _0x3daa9b=_0x4086b2;return{'id':S,'type':_0x23e236[_0x3daa9b(0x19d)],'icon':_0x3daa9b(0x188),'tooltip':_0x3daa9b(0x19f),'hidden$':_0x1dcf82(_0x25fbe7,_0x114671[_0x3daa9b(0x19e)]),'disabled$':_0x29827d(_0x25fbe7,{'workbookTypes':[_0x37992d]})};}function w(){const _0x1631ce=_0x4086b2;return{'id':p['id'],'type':_0x23e236[_0x1631ce(0x181)],'title':_0x1631ce(0x193),'icon':_0x1631ce(0x18d)};}function D(){const _0x3f679b=_0x4086b2;return{'id':u['id'],'type':_0x23e236[_0x3f679b(0x181)],'title':_0x3f679b(0x19a),'icon':_0x3f679b(0x180)};}const F={[_0x4012e3[_0x4086b2(0x192)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x4086b2(0x194)],A=(_0x14e39c,_0x3f9e0f,_0x2aef3e,_0x49b9df)=>{for(var _0x445a75=_0x49b9df>0x1?void 0x0:_0x49b9df?G(_0x3f9e0f,_0x2aef3e):_0x3f9e0f,_0x794f8a=_0x14e39c['length']-0x1,_0x1f2374;_0x794f8a>=0x0;_0x794f8a--)(_0x1f2374=_0x14e39c[_0x794f8a])&&(_0x445a75=_0x1f2374(_0x445a75)||_0x445a75);return _0x445a75;},d=(_0x5ea378,_0x4a8a0f)=>(_0x218207,_0x526ea6)=>_0x4a8a0f(_0x218207,_0x526ea6,_0x5ea378);let c=class extends _0x169be0{constructor(_0x1a7982,_0x212b72){const _0x4e9c02=_0x4086b2;super(),this[_0x4e9c02(0x17f)]=_0x1a7982,this[_0x4e9c02(0x198)]=_0x212b72,this[_0x4e9c02(0x18e)](),this[_0x4e9c02(0x179)]();}[_0x4086b2(0x18e)](){const _0x554c78=_0x4086b2;[p,u][_0x554c78(0x1a2)](_0x195d64=>{const _0x1c9326=_0x554c78;this[_0x1c9326(0x1ac)](this[_0x1c9326(0x17f)][_0x1c9326(0x17e)](_0x195d64));});}[_0x4086b2(0x179)](){const _0x4267b5=_0x4086b2;this[_0x4267b5(0x198)][_0x4267b5(0x189)](F);}};c=A([d(0x0,_0x660239),d(0x1,_0x407990)],c);var j=Object[_0x4086b2(0x17d)],B=Object[_0x4086b2(0x194)],$=(_0xc3e4bf,_0x235599,_0x245f09)=>_0x235599 in _0xc3e4bf?j(_0xc3e4bf,_0x235599,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x245f09}):_0xc3e4bf[_0x235599]=_0x245f09,V=(_0x3d2c5d,_0x24eec6,_0x5ba33e,_0xcb192e)=>{const _0x2d48f1=_0x4086b2;for(var _0x3258e3=_0xcb192e>0x1?void 0x0:_0xcb192e?B(_0x24eec6,_0x5ba33e):_0x24eec6,_0x37d45f=_0x3d2c5d[_0x2d48f1(0x18b)]-0x1,_0x1fefa2;_0x37d45f>=0x0;_0x37d45f--)(_0x1fefa2=_0x3d2c5d[_0x37d45f])&&(_0x3258e3=_0x1fefa2(_0x3258e3)||_0x3258e3);return _0x3258e3;},_=(_0x20ff5d,_0x24c0db)=>(_0x151adf,_0x3fa59a)=>_0x24c0db(_0x151adf,_0x3fa59a,_0x20ff5d),I=(_0x3751aa,_0x4b1e87,_0x2baf2d)=>$(_0x3751aa,typeof _0x4b1e87!=_0x4086b2(0x190)?_0x4b1e87+'':_0x4b1e87,_0x2baf2d);function _0x1087(){const _0x1362b0=['onReady','defineProperty','registerCommand','_commandService','ExportIcon','BUTTON','_config','3402615zFeGpz','sheets-exchange-client.config','unit','_configService','749196SGKdKa','DirectExportIcon','mergeMenu','importXLSXToSnapshot','length','10708ODZsem','FolderIcon','_initCommands','search','symbol','sheets-exchange-client.operation.exchange','OTHERS','exchange.upload','getOwnPropertyDescriptor','371tdymSA','importXLSXToUnitId','onStarting','_menuManagerService','148356cZfSkQ','exchange.download','type','OPERATION','SUBITEMS','UNIVER_SHEET','exchange.file','setConfig','_injector','forEach','add','2vbWpUx','exchange-client.operation.import-xlsx','exportXLSXBySnapshot','get','5968350VpzWou','exportXLSXByUnitId','menu','9UwkKhC','disposeWithMe','exchange-client.operation.export-xlsx','_initMenus','68088tBcRwP','4499380daPXGF'];_0x1087=function(){return _0x1362b0;};return _0x1087();}const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x510b90{constructor(_0x4b93a1=l,_0x30d619,_0x5b05ce){const _0x1c5f0d=_0x4086b2;super(),this[_0x1c5f0d(0x182)]=_0x4b93a1,this[_0x1c5f0d(0x1a1)]=_0x30d619,this['_configService']=_0x5b05ce;const {menu:_0xfd624b,..._0x50b939}=_0x5af304({},l,this[_0x1c5f0d(0x182)]);_0xfd624b&&this[_0x1c5f0d(0x186)][_0x1c5f0d(0x1a0)](_0x1c5f0d(0x1aa),_0xfd624b,{'merge':!0x0}),this[_0x1c5f0d(0x186)]['setConfig'](H,_0x50b939);}[_0x4086b2(0x197)](){const _0x1a4331=_0x4086b2;[[c]][_0x1a4331(0x1a2)](_0x4023f4=>this['_injector'][_0x1a4331(0x1a3)](_0x4023f4));}[_0x4086b2(0x17c)](){const _0x3a632c=_0x4086b2;this[_0x3a632c(0x1a1)][_0x3a632c(0x1a7)](c);}};I(s,'pluginName',W),I(s,_0x4086b2(0x19b),_0x114671[_0x4086b2(0x19e)]),s=V([_0x3dfd4d(_0x10a9e5),_(0x1,_0x354c12(_0x1d7d91)),_(0x2,_0x118fba)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x396d(){const _0x2e6fd5=['exchange.file','function','1232259otjcpZ','UniverSheetsUi','UniverProExchangeClient','getMenuHiddenObservable','amd','forEach','_config','unit','UNIVER_SHEET','exportXLSXBySnapshot','disposeWithMe','OPERATION','menu','15538RTamGQ','@univerjs/core','exports','UniverUi','_menuManagerService','3016710QUBtDu','defineProperty','ICommandService','importXLSXToUnitId','CommandType','4642356ryfZUI','FolderIcon','Disposable','OTHERS','3847370rAFgmu','BUTTON','ExportIcon','onStarting','WorkbookExportPermission','RibbonStartGroup','5pgbcln','1211492BWXlDD','exchange.download','UniverSheetsExchangeClientPlugin','exportXLSXByUnitId','type','exchange-client.operation.export-xlsx','sheets-exchange-client.operation.exchange','IExchangeOperateService','_injector','setConfig','IMenuManagerService','pluginName','exchange.upload','Inject','@univerjs-pro/exchange-client','Plugin','40kzELVe','get','DependentOn','object','55EyBHaS','search','UniverProSheetsExchangeClient','toStringTag','sheets-exchange-client.config','MenuItemType','_configService','2840244IJYAdX','@univerjs/sheets','length','_commandService','106kMcIfF','_initMenus','DirectExportIcon','merge','importXLSXToSnapshot','UniverInstanceType','getOwnPropertyDescriptor'];_0x396d=function(){return _0x2e6fd5;};return _0x396d();}function _0x45de(_0x48b2bd,_0x111773){_0x48b2bd=_0x48b2bd-0x184;const _0x396d96=_0x396d();let _0x45de0a=_0x396d96[_0x48b2bd];return _0x45de0a;}(function(_0x273f41,_0x3147de){const _0x4f4498=_0x45de,_0xf602e3=_0x273f41();while(!![]){try{const _0x38fe81=parseInt(_0x4f4498(0x1bb))/0x1*(-parseInt(_0x4f4498(0x1a5))/0x2)+parseInt(_0x4f4498(0x1a1))/0x3+parseInt(_0x4f4498(0x186))/0x4+-parseInt(_0x4f4498(0x185))/0x5*(-parseInt(_0x4f4498(0x1c5))/0x6)+parseInt(_0x4f4498(0x1ae))/0x7*(parseInt(_0x4f4498(0x196))/0x8)+parseInt(_0x4f4498(0x1c0))/0x9+parseInt(_0x4f4498(0x1c9))/0xa*(-parseInt(_0x4f4498(0x19a))/0xb);if(_0x38fe81===_0x3147de)break;else _0xf602e3['push'](_0xf602e3['shift']());}catch(_0x2214d7){_0xf602e3['push'](_0xf602e3['shift']());}}}(_0x396d,0x78003),function(_0x18b044,_0x3561e1){const _0x21ebd2=_0x45de;typeof exports==_0x21ebd2(0x199)&&typeof module<'u'?_0x3561e1(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x21ebd2(0x1ad)&&define[_0x21ebd2(0x1b2)]?define([_0x21ebd2(0x1bd),_0x21ebd2(0x194),_0x21ebd2(0x1bc),'@univerjs/ui',_0x21ebd2(0x1a2),'@univerjs/sheets-ui'],_0x3561e1):(_0x18b044=typeof globalThis<'u'?globalThis:_0x18b044||self,_0x3561e1(_0x18b044[_0x21ebd2(0x19c)]={},_0x18b044[_0x21ebd2(0x1b0)],_0x18b044['UniverCore'],_0x18b044[_0x21ebd2(0x1be)],_0x18b044['UniverSheets'],_0x18b044[_0x21ebd2(0x1af)]));}(this,function(_0x4da18a,_0x5639ff,_0x2e48e2,_0x5076b6,_0x3b6f2c,_0x19b20b){'use strict';const _0x2a6dc6=_0x45de;const _0x1d577c={'id':'exchange-client.operation.import-xlsx','type':_0x2e48e2[_0x2a6dc6(0x1c4)][_0x2a6dc6(0x1b9)],'handler':async _0x16951b=>{const _0x1ad4c7=_0x2a6dc6,_0x5d2830=_0x16951b[_0x1ad4c7(0x197)](_0x5639ff[_0x1ad4c7(0x18d)]);return new URLSearchParams(location[_0x1ad4c7(0x19b)])[_0x1ad4c7(0x197)](_0x1ad4c7(0x1b5))?_0x5d2830[_0x1ad4c7(0x1c3)]():_0x5d2830[_0x1ad4c7(0x1a9)](),!0x0;}},_0x16b8e0={'id':_0x2a6dc6(0x18b),'type':_0x2e48e2[_0x2a6dc6(0x1c4)]['OPERATION'],'handler':async _0x1816f2=>{const _0xcbb3f9=_0x2a6dc6,_0x570f1b=_0x1816f2[_0xcbb3f9(0x197)](_0x5639ff['IExchangeOperateService']);return new URLSearchParams(location[_0xcbb3f9(0x19b)])[_0xcbb3f9(0x197)](_0xcbb3f9(0x1b5))?_0x570f1b[_0xcbb3f9(0x189)]():_0x570f1b[_0xcbb3f9(0x1b7)](),!0x0;}},_0x5126c3=_0x2a6dc6(0x19e),_0x53bfdf={},_0x5a7e8e=_0x2a6dc6(0x18c);function _0xa88a7f(_0x59b459){const _0x3c36cc=_0x2a6dc6;return{'id':_0x5a7e8e,'type':_0x5076b6[_0x3c36cc(0x19f)]['SUBITEMS'],'icon':_0x3c36cc(0x1a7),'tooltip':_0x3c36cc(0x1ac),'hidden$':_0x5076b6[_0x3c36cc(0x1b1)](_0x59b459,_0x2e48e2[_0x3c36cc(0x1aa)][_0x3c36cc(0x1b6)]),'disabled$':_0x19b20b['getCurrentRangeDisable$'](_0x59b459,{'workbookTypes':[_0x3b6f2c[_0x3c36cc(0x1cd)]]})};}function _0x412214(){const _0x355adc=_0x2a6dc6;return{'id':_0x1d577c['id'],'type':_0x5076b6[_0x355adc(0x19f)][_0x355adc(0x1ca)],'title':_0x355adc(0x192),'icon':_0x355adc(0x1c6)};}function _0x5ee365(){const _0x19e3c9=_0x2a6dc6;return{'id':_0x16b8e0['id'],'type':_0x5076b6[_0x19e3c9(0x19f)][_0x19e3c9(0x1ca)],'title':_0x19e3c9(0x187),'icon':_0x19e3c9(0x1cb)};}const _0x191c6d={[_0x5076b6[_0x2a6dc6(0x184)][_0x2a6dc6(0x1c8)]]:{[_0x5a7e8e]:{'order':0.3,'menuItemFactory':_0xa88a7f,[_0x1d577c['id']]:{'order':0x0,'menuItemFactory':_0x412214},[_0x16b8e0['id']]:{'order':0x1,'menuItemFactory':_0x5ee365}}}};var _0x3076b5=Object['getOwnPropertyDescriptor'],_0x14bb5a=(_0x53d012,_0x743e31,_0x2af84b,_0x23b28f)=>{const _0x4d53c5=_0x2a6dc6;for(var _0x16d88f=_0x23b28f>0x1?void 0x0:_0x23b28f?_0x3076b5(_0x743e31,_0x2af84b):_0x743e31,_0x2a56de=_0x53d012[_0x4d53c5(0x1a3)]-0x1,_0x58d66b;_0x2a56de>=0x0;_0x2a56de--)(_0x58d66b=_0x53d012[_0x2a56de])&&(_0x16d88f=_0x58d66b(_0x16d88f)||_0x16d88f);return _0x16d88f;},_0x250020=(_0x529cbb,_0x152306)=>(_0x3e0b69,_0x963577)=>_0x152306(_0x3e0b69,_0x963577,_0x529cbb);let _0x213e9d=class extends _0x2e48e2[_0x2a6dc6(0x1c7)]{constructor(_0x1d3f53,_0x23cadc){const _0x1fece9=_0x2a6dc6;super(),this['_commandService']=_0x1d3f53,this[_0x1fece9(0x1bf)]=_0x23cadc,this['_initCommands'](),this[_0x1fece9(0x1a6)]();}['_initCommands'](){const _0x50bae0=_0x2a6dc6;[_0x1d577c,_0x16b8e0][_0x50bae0(0x1b3)](_0x1a6be7=>{const _0xa98869=_0x50bae0;this[_0xa98869(0x1b8)](this[_0xa98869(0x1a4)]['registerCommand'](_0x1a6be7));});}[_0x2a6dc6(0x1a6)](){this['_menuManagerService']['mergeMenu'](_0x191c6d);}};_0x213e9d=_0x14bb5a([_0x250020(0x0,_0x2e48e2[_0x2a6dc6(0x1c2)]),_0x250020(0x1,_0x5076b6[_0x2a6dc6(0x190)])],_0x213e9d);var _0x276862=Object[_0x2a6dc6(0x1c1)],_0x194b53=Object[_0x2a6dc6(0x1ab)],_0x5bb53e=(_0x43f9cd,_0x550901,_0x5f04b5)=>_0x550901 in _0x43f9cd?_0x276862(_0x43f9cd,_0x550901,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5f04b5}):_0x43f9cd[_0x550901]=_0x5f04b5,_0x357b09=(_0x5eda8f,_0x2f5d68,_0x384895,_0x4af031)=>{const _0xa2e859=_0x2a6dc6;for(var _0x27d36b=_0x4af031>0x1?void 0x0:_0x4af031?_0x194b53(_0x2f5d68,_0x384895):_0x2f5d68,_0x11a8af=_0x5eda8f[_0xa2e859(0x1a3)]-0x1,_0x5926b0;_0x11a8af>=0x0;_0x11a8af--)(_0x5926b0=_0x5eda8f[_0x11a8af])&&(_0x27d36b=_0x5926b0(_0x27d36b)||_0x27d36b);return _0x27d36b;},_0x1e7167=(_0x310bfe,_0xac3f2a)=>(_0x4c4fe1,_0x475a79)=>_0xac3f2a(_0x4c4fe1,_0x475a79,_0x310bfe),_0x3b16c2=(_0x2e49b9,_0x5608d4,_0x4d405a)=>_0x5bb53e(_0x2e49b9,typeof _0x5608d4!='symbol'?_0x5608d4+'':_0x5608d4,_0x4d405a);const _0x15613d='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x4da18a[_0x2a6dc6(0x188)]=class extends _0x2e48e2[_0x2a6dc6(0x195)]{constructor(_0xdb6d4f=_0x53bfdf,_0x599e60,_0x45934d){const _0x138d39=_0x2a6dc6;super(),this[_0x138d39(0x1b4)]=_0xdb6d4f,this[_0x138d39(0x18e)]=_0x599e60,this[_0x138d39(0x1a0)]=_0x45934d;const {menu:_0x594cf1,..._0x257a2c}=_0x2e48e2[_0x138d39(0x1a8)]({},_0x53bfdf,this[_0x138d39(0x1b4)]);_0x594cf1&&this[_0x138d39(0x1a0)]['setConfig'](_0x138d39(0x1ba),_0x594cf1,{'merge':!0x0}),this[_0x138d39(0x1a0)][_0x138d39(0x18f)](_0x5126c3,_0x257a2c);}[_0x2a6dc6(0x1cc)](){const _0x1aa462=_0x2a6dc6;[[_0x213e9d]][_0x1aa462(0x1b3)](_0x5f3e71=>this[_0x1aa462(0x18e)]['add'](_0x5f3e71));}['onReady'](){const _0x5685e4=_0x2a6dc6;this['_injector'][_0x5685e4(0x197)](_0x213e9d);}},_0x3b16c2(_0x4da18a['UniverSheetsExchangeClientPlugin'],_0x2a6dc6(0x191),_0x15613d),_0x3b16c2(_0x4da18a[_0x2a6dc6(0x188)],_0x2a6dc6(0x18a),_0x2e48e2['UniverInstanceType'][_0x2a6dc6(0x1b6)]),_0x4da18a[_0x2a6dc6(0x188)]=_0x357b09([_0x2e48e2[_0x2a6dc6(0x198)](_0x5639ff['UniverExchangeClientPlugin']),_0x1e7167(0x1,_0x2e48e2[_0x2a6dc6(0x193)](_0x2e48e2['Injector'])),_0x1e7167(0x2,_0x2e48e2['IConfigService'])],_0x4da18a['UniverSheetsExchangeClientPlugin']),_0x4da18a['ExportXLSXOperation']=_0x16b8e0,_0x4da18a['ImportXLSXOperation']=_0x1d577c,Object[_0x2a6dc6(0x1c1)](_0x4da18a,Symbol[_0x2a6dc6(0x19d)],{'value':'Module'});}));
1
+ function _0x3726(_0x2e700f,_0x317c00){_0x2e700f=_0x2e700f-0x7e;const _0x5c5e86=_0x5c5e();let _0x372677=_0x5c5e86[_0x2e700f];return _0x372677;}function _0x5c5e(){const _0x505b2a=['Inject','amd','282906CVfRtM','@univerjs/sheets','getCurrentRangeDisable$','MenuItemType','menu','OPERATION','SUBITEMS','1370936JMskoc','importXLSXToSnapshot','5646570fGvYMv','UniverProExchangeClient','exchange-client.operation.export-xlsx','UniverSheetsUi','registerCommand','1232136gsinOi','disposeWithMe','DependentOn','exchange.upload','UniverSheetsExchangeClientPlugin','search','@univerjs/sheets-ui','5zKLNUo','sheets-exchange-client.config','BUTTON','4304KsFmBz','get','toStringTag','setConfig','DirectExportIcon','_commandService','Plugin','exchange.download','Injector','WorkbookExportPermission','ICommandService','@univerjs/ui','pluginName','ExportIcon','2385SFvrlu','type','@univerjs-pro/exchange-client','11UMJGGQ','RibbonStartGroup','length','UniverSheets','defineProperty','importXLSXToUnitId','exchange.file','UniverCore','getOwnPropertyDescriptor','exportXLSXBySnapshot','forEach','ExportXLSXOperation','exchange-client.operation.import-xlsx','ImportXLSXOperation','UniverProSheetsExchangeClient','OTHERS','_configService','symbol','CommandType','UniverInstanceType','sheets-exchange-client.operation.exchange','IConfigService','add','UniverExchangeClientPlugin','merge','IExchangeOperateService','exports','1089148PloRdg','_config','FolderIcon','_initCommands','UniverUi','27QycxHb','mergeMenu','onStarting','_injector','_initMenus','onReady','1056Vgrbpf','_menuManagerService'];_0x5c5e=function(){return _0x505b2a;};return _0x5c5e();}(function(_0x55ac0e,_0x216bd7){const _0x2fe8fd=_0x3726,_0x424730=_0x55ac0e();while(!![]){try{const _0x583179=-parseInt(_0x2fe8fd(0x8a))/0x1*(parseInt(_0x2fe8fd(0x90))/0x2)+-parseInt(_0x2fe8fd(0xa2))/0x3+parseInt(_0x2fe8fd(0x85))/0x4*(-parseInt(_0x2fe8fd(0xa9))/0x5)+parseInt(_0x2fe8fd(0x94))/0x6+parseInt(_0x2fe8fd(0x9b))/0x7+-parseInt(_0x2fe8fd(0xac))/0x8*(-parseInt(_0x2fe8fd(0xba))/0x9)+-parseInt(_0x2fe8fd(0x9d))/0xa*(-parseInt(_0x2fe8fd(0xbd))/0xb);if(_0x583179===_0x216bd7)break;else _0x424730['push'](_0x424730['shift']());}catch(_0xc67b13){_0x424730['push'](_0x424730['shift']());}}}(_0x5c5e,0x3dc2b),function(_0x19daa2,_0x4857fd){const _0x418579=_0x3726;typeof exports=='object'&&typeof module<'u'?_0x4857fd(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x418579(0x93)]?define([_0x418579(0x84),_0x418579(0xbc),'@univerjs/core',_0x418579(0xb7),_0x418579(0x95),_0x418579(0xa8)],_0x4857fd):(_0x19daa2=typeof globalThis<'u'?globalThis:_0x19daa2||self,_0x4857fd(_0x19daa2[_0x418579(0xcb)]={},_0x19daa2[_0x418579(0x9e)],_0x19daa2[_0x418579(0xc4)],_0x19daa2[_0x418579(0x89)],_0x19daa2[_0x418579(0xc0)],_0x19daa2[_0x418579(0xa0)]));}(this,function(_0x271bce,_0x489091,_0x50aae0,_0x12d776,_0x58266a,_0x64abcd){'use strict';const _0x536248=_0x3726;const _0x3348bd={'id':_0x536248(0xc9),'type':_0x50aae0[_0x536248(0xcf)][_0x536248(0x99)],'handler':async _0x59bc7b=>{const _0x16e429=_0x536248,_0x1aea13=_0x59bc7b['get'](_0x489091['IExchangeOperateService']);return new URLSearchParams(location[_0x16e429(0xa7)])[_0x16e429(0xad)]('unit')?_0x1aea13[_0x16e429(0xc2)]():_0x1aea13[_0x16e429(0x9c)](),!0x0;}},_0x393d58={'id':_0x536248(0x9f),'type':_0x50aae0[_0x536248(0xcf)][_0x536248(0x99)],'handler':async _0xf17559=>{const _0x191e77=_0x536248,_0xee0787=_0xf17559[_0x191e77(0xad)](_0x489091[_0x191e77(0x83)]);return new URLSearchParams(location['search'])['get']('unit')?_0xee0787['exportXLSXByUnitId']():_0xee0787[_0x191e77(0xc6)](),!0x0;}},_0x3a251a=_0x536248(0xaa),_0x43b2de={},_0x3b2270=_0x536248(0x7e);function _0x22a482(_0x1f4959){const _0x47a6eb=_0x536248;return{'id':_0x3b2270,'type':_0x12d776['MenuItemType'][_0x47a6eb(0x9a)],'icon':_0x47a6eb(0xb0),'tooltip':_0x47a6eb(0xc3),'hidden$':_0x12d776['getMenuHiddenObservable'](_0x1f4959,_0x50aae0[_0x47a6eb(0xd0)]['UNIVER_SHEET']),'disabled$':_0x64abcd[_0x47a6eb(0x96)](_0x1f4959,{'workbookTypes':[_0x58266a[_0x47a6eb(0xb5)]]})};}function _0x4e2452(){const _0x52972f=_0x536248;return{'id':_0x3348bd['id'],'type':_0x12d776[_0x52972f(0x97)][_0x52972f(0xab)],'title':_0x52972f(0xa5),'icon':_0x52972f(0x87)};}function _0x579e8b(){const _0x8fb204=_0x536248;return{'id':_0x393d58['id'],'type':_0x12d776[_0x8fb204(0x97)]['BUTTON'],'title':_0x8fb204(0xb3),'icon':_0x8fb204(0xb9)};}const _0x2a57d6={[_0x12d776[_0x536248(0xbe)][_0x536248(0xcc)]]:{[_0x3b2270]:{'order':0.3,'menuItemFactory':_0x22a482,[_0x3348bd['id']]:{'order':0x0,'menuItemFactory':_0x4e2452},[_0x393d58['id']]:{'order':0x1,'menuItemFactory':_0x579e8b}}}};var _0x19f4f2=Object[_0x536248(0xc5)],_0x2a93f9=(_0x23392c,_0xcf0d56,_0x2e7239,_0x39793b)=>{for(var _0x4216e2=_0x39793b>0x1?void 0x0:_0x39793b?_0x19f4f2(_0xcf0d56,_0x2e7239):_0xcf0d56,_0x108600=_0x23392c['length']-0x1,_0x35becd;_0x108600>=0x0;_0x108600--)(_0x35becd=_0x23392c[_0x108600])&&(_0x4216e2=_0x35becd(_0x4216e2)||_0x4216e2);return _0x4216e2;},_0x3de808=(_0x267001,_0x8657ac)=>(_0x4607ea,_0x3d0822)=>_0x8657ac(_0x4607ea,_0x3d0822,_0x267001);let _0x2ddb20=class extends _0x50aae0['Disposable']{constructor(_0x550a7f,_0x508c10){const _0x355b2d=_0x536248;super(),this[_0x355b2d(0xb1)]=_0x550a7f,this[_0x355b2d(0x91)]=_0x508c10,this[_0x355b2d(0x88)](),this[_0x355b2d(0x8e)]();}[_0x536248(0x88)](){const _0x3826b1=_0x536248;[_0x3348bd,_0x393d58][_0x3826b1(0xc7)](_0x22d30a=>{const _0xaa2c28=_0x3826b1;this[_0xaa2c28(0xa3)](this['_commandService'][_0xaa2c28(0xa1)](_0x22d30a));});}['_initMenus'](){const _0x238e4e=_0x536248;this[_0x238e4e(0x91)][_0x238e4e(0x8b)](_0x2a57d6);}};_0x2ddb20=_0x2a93f9([_0x3de808(0x0,_0x50aae0[_0x536248(0xb6)]),_0x3de808(0x1,_0x12d776['IMenuManagerService'])],_0x2ddb20);var _0x3c0fc6=Object[_0x536248(0xc1)],_0x2a70bd=Object[_0x536248(0xc5)],_0x21285b=(_0x1e142f,_0x255f27,_0x4023fb)=>_0x255f27 in _0x1e142f?_0x3c0fc6(_0x1e142f,_0x255f27,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4023fb}):_0x1e142f[_0x255f27]=_0x4023fb,_0x36592c=(_0x363b3e,_0x5441af,_0xd787d4,_0x284eb1)=>{const _0x553bff=_0x536248;for(var _0x56dcf8=_0x284eb1>0x1?void 0x0:_0x284eb1?_0x2a70bd(_0x5441af,_0xd787d4):_0x5441af,_0x1a9ebf=_0x363b3e[_0x553bff(0xbf)]-0x1,_0x2dfc6b;_0x1a9ebf>=0x0;_0x1a9ebf--)(_0x2dfc6b=_0x363b3e[_0x1a9ebf])&&(_0x56dcf8=_0x2dfc6b(_0x56dcf8)||_0x56dcf8);return _0x56dcf8;},_0x38bce9=(_0x5b3795,_0x2ffb10)=>(_0x57e5c2,_0x37d05d)=>_0x2ffb10(_0x57e5c2,_0x37d05d,_0x5b3795),_0x1957bf=(_0x71c3c7,_0x5d2cfb,_0x49baa0)=>_0x21285b(_0x71c3c7,typeof _0x5d2cfb!=_0x536248(0xce)?_0x5d2cfb+'':_0x5d2cfb,_0x49baa0);const _0x507061='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x271bce[_0x536248(0xa6)]=class extends _0x50aae0[_0x536248(0xb2)]{constructor(_0x58e931=_0x43b2de,_0x468301,_0x356233){const _0x4bd45a=_0x536248;super(),this[_0x4bd45a(0x86)]=_0x58e931,this[_0x4bd45a(0x8d)]=_0x468301,this[_0x4bd45a(0xcd)]=_0x356233;const {menu:_0x53a9bd,..._0x2dace8}=_0x50aae0[_0x4bd45a(0x82)]({},_0x43b2de,this[_0x4bd45a(0x86)]);_0x53a9bd&&this[_0x4bd45a(0xcd)][_0x4bd45a(0xaf)](_0x4bd45a(0x98),_0x53a9bd,{'merge':!0x0}),this[_0x4bd45a(0xcd)]['setConfig'](_0x3a251a,_0x2dace8);}[_0x536248(0x8c)](){const _0x526b8b=_0x536248;[[_0x2ddb20]][_0x526b8b(0xc7)](_0x175687=>this[_0x526b8b(0x8d)][_0x526b8b(0x80)](_0x175687));}[_0x536248(0x8f)](){const _0x2c52e8=_0x536248;this[_0x2c52e8(0x8d)][_0x2c52e8(0xad)](_0x2ddb20);}},_0x1957bf(_0x271bce[_0x536248(0xa6)],_0x536248(0xb8),_0x507061),_0x1957bf(_0x271bce[_0x536248(0xa6)],_0x536248(0xbb),_0x50aae0[_0x536248(0xd0)]['UNIVER_SHEET']),_0x271bce[_0x536248(0xa6)]=_0x36592c([_0x50aae0[_0x536248(0xa4)](_0x489091[_0x536248(0x81)]),_0x38bce9(0x1,_0x50aae0[_0x536248(0x92)](_0x50aae0[_0x536248(0xb4)])),_0x38bce9(0x2,_0x50aae0[_0x536248(0x7f)])],_0x271bce[_0x536248(0xa6)]),_0x271bce[_0x536248(0xc8)]=_0x393d58,_0x271bce[_0x536248(0xca)]=_0x3348bd,Object[_0x536248(0xc1)](_0x271bce,Symbol[_0x536248(0xae)],{'value':'Module'});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.14.0-insiders.20251222-4efcfbb",
3
+ "version": "0.14.0-insiders.20251227-b250a8d",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -42,16 +42,16 @@
42
42
  "lib"
43
43
  ],
44
44
  "dependencies": {
45
- "@univerjs-pro/exchange-client": "0.14.0-insiders.20251222-4efcfbb",
46
- "@univerjs/core": "0.14.0-insiders.20251222-4efcfbb",
47
- "@univerjs/ui": "0.14.0-insiders.20251222-4efcfbb",
48
- "@univerjs/sheets-ui": "0.14.0-insiders.20251222-4efcfbb",
49
- "@univerjs/sheets": "0.14.0-insiders.20251222-4efcfbb"
45
+ "@univerjs-pro/exchange-client": "0.14.0-insiders.20251227-b250a8d",
46
+ "@univerjs/sheets-ui": "0.14.0-insiders.20251227-b250a8d",
47
+ "@univerjs/sheets": "0.14.0-insiders.20251227-b250a8d",
48
+ "@univerjs/ui": "0.14.0-insiders.20251227-b250a8d",
49
+ "@univerjs/core": "0.14.0-insiders.20251227-b250a8d"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",
53
- "vite": "^7.2.7",
54
- "vitest": "^4.0.15",
53
+ "vite": "^7.3.0",
54
+ "vitest": "^4.0.16",
55
55
  "@univerjs-infra/shared": "0.14.0"
56
56
  },
57
57
  "scripts": {