@univerjs-pro/sheets-exchange-client 0.12.4-experimental.20251211-e01e32a → 0.12.4-insiders.20251211-c28f914

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 _0x431581=_0x3fa6;(function(_0x5edbb9,_0x351bc0){const _0x1133c5=_0x3fa6,_0x3c116d=_0x5edbb9();while(!![]){try{const _0x295c13=-parseInt(_0x1133c5(0x1a4))/0x1+-parseInt(_0x1133c5(0x1a6))/0x2*(parseInt(_0x1133c5(0x1a3))/0x3)+parseInt(_0x1133c5(0x173))/0x4*(-parseInt(_0x1133c5(0x199))/0x5)+parseInt(_0x1133c5(0x19e))/0x6+parseInt(_0x1133c5(0x19c))/0x7*(-parseInt(_0x1133c5(0x196))/0x8)+-parseInt(_0x1133c5(0x198))/0x9+parseInt(_0x1133c5(0x187))/0xa;if(_0x295c13===_0x351bc0)break;else _0x3c116d['push'](_0x3c116d['shift']());}catch(_0x5d04da){_0x3c116d['push'](_0x3c116d['shift']());}}}(_0x8193,0x48ff5));Object['defineProperty'](exports,Symbol[_0x431581(0x18e)],{'value':_0x431581(0x16b)});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':_0x431581(0x1a5),'type':i['CommandType']['OPERATION'],'handler':async _0x2995ae=>{const _0x5e19ad=_0x431581,_0x1a7ebe=_0x2995ae[_0x5e19ad(0x174)](g['IExchangeOperateService']);return new URLSearchParams(location['search'])['get'](_0x5e19ad(0x17a))?_0x1a7ebe[_0x5e19ad(0x192)]():_0x1a7ebe[_0x5e19ad(0x188)](),!0x0;}},p={'id':_0x431581(0x1ac),'type':i[_0x431581(0x19b)][_0x431581(0x18a)],'handler':async _0xbc073e=>{const _0xbe99dc=_0x431581,_0x23ad60=_0xbc073e[_0xbe99dc(0x174)](g['IExchangeOperateService']);return new URLSearchParams(location[_0xbe99dc(0x17f)])[_0xbe99dc(0x174)](_0xbe99dc(0x17a))?_0x23ad60[_0xbe99dc(0x171)]():_0x23ad60[_0xbe99dc(0x185)](),!0x0;}},v='sheets-exchange-client.config',h={},S='sheets-exchange-client.operation.exchange';function x(_0x6608a8){const _0x48ef97=_0x431581;return{'id':S,'type':c[_0x48ef97(0x1a1)][_0x48ef97(0x176)],'icon':_0x48ef97(0x170),'tooltip':'exchange.file','hidden$':c[_0x48ef97(0x16d)](_0x6608a8,i[_0x48ef97(0x189)][_0x48ef97(0x18b)]),'disabled$':I[_0x48ef97(0x175)](_0x6608a8,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x2fe3e2=_0x431581;return{'id':l['id'],'type':c[_0x2fe3e2(0x1a1)][_0x2fe3e2(0x179)],'title':_0x2fe3e2(0x19d),'icon':'FolderIcon'};}function _0x3fa6(_0x3bc325,_0x2b201a){_0x3bc325=_0x3bc325-0x16b;const _0x8193a8=_0x8193();let _0x3fa6b5=_0x8193a8[_0x3bc325];return _0x3fa6b5;}function C(){const _0x6a40ac=_0x431581;return{'id':p['id'],'type':c[_0x6a40ac(0x1a1)][_0x6a40ac(0x179)],'title':'exchange.download','icon':_0x6a40ac(0x183)};}const f={[c[_0x431581(0x178)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x431581(0x1a2)],y=(_0x5f3d2a,_0x50268d,_0x5b7234,_0x55be60)=>{for(var _0x589bad=_0x55be60>0x1?void 0x0:_0x55be60?T(_0x50268d,_0x5b7234):_0x50268d,_0x1cc868=_0x5f3d2a['length']-0x1,_0x14289c;_0x1cc868>=0x0;_0x1cc868--)(_0x14289c=_0x5f3d2a[_0x1cc868])&&(_0x589bad=_0x14289c(_0x589bad)||_0x589bad);return _0x589bad;},m=(_0x2100ab,_0x272496)=>(_0x314aad,_0x786ef)=>_0x272496(_0x314aad,_0x786ef,_0x2100ab);let u=class extends i[_0x431581(0x1a8)]{constructor(_0x3089f0,_0x21c61c){const _0x5f093d=_0x431581;super(),this[_0x5f093d(0x186)]=_0x3089f0,this[_0x5f093d(0x181)]=_0x21c61c,this[_0x5f093d(0x19a)](),this[_0x5f093d(0x17e)]();}['_initCommands'](){const _0x5748bd=_0x431581;[l,p][_0x5748bd(0x1ab)](_0x3a874e=>{const _0x32d757=_0x5748bd;this[_0x32d757(0x177)](this[_0x32d757(0x186)]['registerCommand'](_0x3a874e));});}[_0x431581(0x17e)](){const _0x4a5663=_0x431581;this[_0x4a5663(0x181)][_0x4a5663(0x191)](f);}};function _0x8193(){const _0x5bebca=['ICommandService','toStringTag','setConfig','menu','mergeMenu','importXLSXToUnitId','add','IMenuManagerService','ImportXLSXOperation','3062736zOOQEa','length','4451877KgxcKb','2930855BQlxme','_initCommands','CommandType','7wFSMDq','exchange.upload','2260164SQOAcb','SHEET_EXCHANGE_CLIENT_PLUGIN','Injector','MenuItemType','getOwnPropertyDescriptor','523674aNVfQs','354455SruBxa','exchange-client.operation.import-xlsx','6dWmACa','_configService','Disposable','UniverSheetsExchangeClientPlugin','pluginName','forEach','exchange-client.operation.export-xlsx','defineProperty','onStarting','Module','ExportXLSXOperation','getMenuHiddenObservable','Inject','Plugin','DirectExportIcon','exportXLSXByUnitId','UniverExchangeClientPlugin','4VdihQk','get','getCurrentRangeDisable$','SUBITEMS','disposeWithMe','RibbonStartGroup','BUTTON','unit','type','_config','DependentOn','_initMenus','search','symbol','_menuManagerService','onReady','ExportIcon','merge','exportXLSXBySnapshot','_commandService','22640980BKJsIn','importXLSXToSnapshot','UniverInstanceType','OPERATION','UNIVER_SHEET','_injector'];_0x8193=function(){return _0x5bebca;};return _0x8193();}u=y([m(0x0,i[_0x431581(0x18d)]),m(0x1,c[_0x431581(0x194)])],u);var O=Object[_0x431581(0x1ad)],U=Object['getOwnPropertyDescriptor'],X=(_0x41fd0b,_0x52f82f,_0x1b0eea)=>_0x52f82f in _0x41fd0b?O(_0x41fd0b,_0x52f82f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b0eea}):_0x41fd0b[_0x52f82f]=_0x1b0eea,N=(_0x35aade,_0x5a5399,_0xd0c491,_0x2b1eaf)=>{const _0x33c9b4=_0x431581;for(var _0x2b9685=_0x2b1eaf>0x1?void 0x0:_0x2b1eaf?U(_0x5a5399,_0xd0c491):_0x5a5399,_0x1f2f13=_0x35aade[_0x33c9b4(0x197)]-0x1,_0x3cc18b;_0x1f2f13>=0x0;_0x1f2f13--)(_0x3cc18b=_0x35aade[_0x1f2f13])&&(_0x2b9685=_0x3cc18b(_0x2b9685)||_0x2b9685);return _0x2b9685;},d=(_0x28e61c,_0x5f16da)=>(_0x2edcc0,_0x230247)=>_0x5f16da(_0x2edcc0,_0x230247,_0x28e61c),E=(_0x3387f3,_0x17ce09,_0x22a2b9)=>X(_0x3387f3,typeof _0x17ce09!=_0x431581(0x180)?_0x17ce09+'':_0x17ce09,_0x22a2b9);const L=_0x431581(0x19f);exports[_0x431581(0x1a9)]=class extends i[_0x431581(0x16f)]{constructor(_0x1b4ec2=h,_0x2ee5d8,_0x10408d){const _0x3884b2=_0x431581;super(),this[_0x3884b2(0x17c)]=_0x1b4ec2,this['_injector']=_0x2ee5d8,this[_0x3884b2(0x1a7)]=_0x10408d;const {menu:_0x31732a,..._0x3d0fca}=i[_0x3884b2(0x184)]({},h,this['_config']);_0x31732a&&this['_configService'][_0x3884b2(0x18f)](_0x3884b2(0x190),_0x31732a,{'merge':!0x0}),this[_0x3884b2(0x1a7)]['setConfig'](v,_0x3d0fca);}[_0x431581(0x1ae)](){const _0x5eaca8=_0x431581;[[u]][_0x5eaca8(0x1ab)](_0x16f6b7=>this[_0x5eaca8(0x18c)][_0x5eaca8(0x193)](_0x16f6b7));}[_0x431581(0x182)](){const _0x9a5a41=_0x431581;this[_0x9a5a41(0x18c)][_0x9a5a41(0x174)](u);}},E(exports[_0x431581(0x1a9)],_0x431581(0x1aa),L),E(exports[_0x431581(0x1a9)],_0x431581(0x17b),i[_0x431581(0x189)][_0x431581(0x18b)]),exports['UniverSheetsExchangeClientPlugin']=N([i[_0x431581(0x17d)](g[_0x431581(0x172)]),d(0x1,i[_0x431581(0x16e)](i[_0x431581(0x1a0)])),d(0x2,i['IConfigService'])],exports[_0x431581(0x1a9)]),exports[_0x431581(0x16c)]=p,exports[_0x431581(0x195)]=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 _0x453270=_0x281a;(function(_0x3747aa,_0x4ed556){const _0x2d36fd=_0x281a,_0x3d0e35=_0x3747aa();while(!![]){try{const _0x4c8467=-parseInt(_0x2d36fd(0x1a2))/0x1+parseInt(_0x2d36fd(0x18d))/0x2*(-parseInt(_0x2d36fd(0x183))/0x3)+-parseInt(_0x2d36fd(0x19e))/0x4*(parseInt(_0x2d36fd(0x181))/0x5)+parseInt(_0x2d36fd(0x18c))/0x6*(parseInt(_0x2d36fd(0x19a))/0x7)+-parseInt(_0x2d36fd(0x1a5))/0x8+-parseInt(_0x2d36fd(0x196))/0x9+parseInt(_0x2d36fd(0x187))/0xa*(parseInt(_0x2d36fd(0x191))/0xb);if(_0x4c8467===_0x4ed556)break;else _0x3d0e35['push'](_0x3d0e35['shift']());}catch(_0x284713){_0x3d0e35['push'](_0x3d0e35['shift']());}}}(_0x5598,0x7f16b));function _0x281a(_0x2b63c5,_0x5bafb9){_0x2b63c5=_0x2b63c5-0x178;const _0x5598a9=_0x5598();let _0x281a41=_0x5598a9[_0x2b63c5];return _0x281a41;}import{IExchangeOperateService as _0x18968f,UniverExchangeClientPlugin as _0xf7816a}from'@univerjs-pro/exchange-client';import{CommandType as _0x333b92,UniverInstanceType as _0x285752,Disposable as _0x563ebc,ICommandService as _0x39a748,DependentOn as _0x28bbf9,Inject as _0x3fe341,Injector as _0x1bcf59,IConfigService as _0x8c8fff,Plugin as _0x20e790,merge as _0x11ee9a}from'@univerjs/core';import{MenuItemType as _0x2be2a5,getMenuHiddenObservable as _0x48eced,RibbonStartGroup as _0x4868b1,IMenuManagerService as _0x1d7949}from'@univerjs/ui';import{WorkbookExportPermission as _0x5e8fa6}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0xfc52f0}from'@univerjs/sheets-ui';const p={'id':_0x453270(0x18e),'type':_0x333b92[_0x453270(0x18b)],'handler':async _0x8395b6=>{const _0x49e12a=_0x453270,_0x1d366d=_0x8395b6[_0x49e12a(0x182)](_0x18968f);return new URLSearchParams(location['search'])[_0x49e12a(0x182)]('unit')?_0x1d366d[_0x49e12a(0x194)]():_0x1d366d['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x453270(0x18a),'type':_0x333b92[_0x453270(0x18b)],'handler':async _0x5b6819=>{const _0x47b1ba=_0x453270,_0x39c6d5=_0x5b6819['get'](_0x18968f);return new URLSearchParams(location[_0x47b1ba(0x188)])[_0x47b1ba(0x182)](_0x47b1ba(0x17b))?_0x39c6d5['exportXLSXByUnitId']():_0x39c6d5[_0x47b1ba(0x189)](),!0x0;}},H=_0x453270(0x17c),l={},S=_0x453270(0x199);function R(_0x327509){const _0x2d45e6=_0x453270;return{'id':S,'type':_0x2be2a5[_0x2d45e6(0x1a4)],'icon':_0x2d45e6(0x1a3),'tooltip':_0x2d45e6(0x1a7),'hidden$':_0x48eced(_0x327509,_0x285752[_0x2d45e6(0x17f)]),'disabled$':_0xfc52f0(_0x327509,{'workbookTypes':[_0x5e8fa6]})};}function w(){const _0x551daf=_0x453270;return{'id':p['id'],'type':_0x2be2a5['BUTTON'],'title':_0x551daf(0x180),'icon':'FolderIcon'};}function D(){const _0x5d505f=_0x453270;return{'id':u['id'],'type':_0x2be2a5[_0x5d505f(0x1a6)],'title':_0x5d505f(0x1a1),'icon':'ExportIcon'};}const F={[_0x4868b1[_0x453270(0x198)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};function _0x5598(){const _0x3eb44c=['onReady','_configService','unit','sheets-exchange-client.config','registerCommand','_initCommands','UNIVER_SHEET','exchange.upload','5FuTJow','get','12FRiyOU','forEach','type','mergeMenu','883790EILapa','search','exportXLSXBySnapshot','exchange-client.operation.export-xlsx','OPERATION','2328276RBigNH','140736pwYDJn','exchange-client.operation.import-xlsx','_commandService','_config','66wJMrDt','defineProperty','_initMenus','importXLSXToUnitId','setConfig','191340peCDlc','add','OTHERS','sheets-exchange-client.operation.exchange','14Tvgyya','_injector','_menuManagerService','length','940972nVsJqZ','onStarting','symbol','exchange.download','47695xWhKnH','DirectExportIcon','SUBITEMS','1601128fJadvm','BUTTON','exchange.file','getOwnPropertyDescriptor'];_0x5598=function(){return _0x3eb44c;};return _0x5598();}var G=Object[_0x453270(0x178)],A=(_0x45ec2b,_0x466a3c,_0x25ba51,_0x42e89b)=>{const _0x5d534e=_0x453270;for(var _0x29060f=_0x42e89b>0x1?void 0x0:_0x42e89b?G(_0x466a3c,_0x25ba51):_0x466a3c,_0x538a70=_0x45ec2b[_0x5d534e(0x19d)]-0x1,_0x3eec93;_0x538a70>=0x0;_0x538a70--)(_0x3eec93=_0x45ec2b[_0x538a70])&&(_0x29060f=_0x3eec93(_0x29060f)||_0x29060f);return _0x29060f;},d=(_0xdbc5a3,_0x21f288)=>(_0x32b666,_0x1dc488)=>_0x21f288(_0x32b666,_0x1dc488,_0xdbc5a3);let c=class extends _0x563ebc{constructor(_0x476d82,_0x5f10c3){const _0x3afb0c=_0x453270;super(),this[_0x3afb0c(0x18f)]=_0x476d82,this[_0x3afb0c(0x19c)]=_0x5f10c3,this[_0x3afb0c(0x17e)](),this[_0x3afb0c(0x193)]();}[_0x453270(0x17e)](){const _0x54790c=_0x453270;[p,u][_0x54790c(0x184)](_0xdafeef=>{const _0x21e361=_0x54790c;this['disposeWithMe'](this[_0x21e361(0x18f)][_0x21e361(0x17d)](_0xdafeef));});}['_initMenus'](){const _0x1c41cf=_0x453270;this['_menuManagerService'][_0x1c41cf(0x186)](F);}};c=A([d(0x0,_0x39a748),d(0x1,_0x1d7949)],c);var j=Object[_0x453270(0x192)],B=Object[_0x453270(0x178)],$=(_0x4ae85d,_0x55e711,_0x43a6ae)=>_0x55e711 in _0x4ae85d?j(_0x4ae85d,_0x55e711,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43a6ae}):_0x4ae85d[_0x55e711]=_0x43a6ae,V=(_0x5840cf,_0x3ee5c1,_0x4c6771,_0x577dd9)=>{for(var _0x2d0c7a=_0x577dd9>0x1?void 0x0:_0x577dd9?B(_0x3ee5c1,_0x4c6771):_0x3ee5c1,_0x2ccdfa=_0x5840cf['length']-0x1,_0x2ac4fc;_0x2ccdfa>=0x0;_0x2ccdfa--)(_0x2ac4fc=_0x5840cf[_0x2ccdfa])&&(_0x2d0c7a=_0x2ac4fc(_0x2d0c7a)||_0x2d0c7a);return _0x2d0c7a;},_=(_0x5f3038,_0x466b95)=>(_0x178e93,_0x13a819)=>_0x466b95(_0x178e93,_0x13a819,_0x5f3038),I=(_0x2cbafd,_0x27a9a2,_0x3bce26)=>$(_0x2cbafd,typeof _0x27a9a2!=_0x453270(0x1a0)?_0x27a9a2+'':_0x27a9a2,_0x3bce26);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x20e790{constructor(_0x567587=l,_0x1dbc20,_0x332754){const _0x4a50f3=_0x453270;super(),this[_0x4a50f3(0x190)]=_0x567587,this['_injector']=_0x1dbc20,this[_0x4a50f3(0x17a)]=_0x332754;const {menu:_0x2d72bd,..._0x369fda}=_0x11ee9a({},l,this[_0x4a50f3(0x190)]);_0x2d72bd&&this['_configService'][_0x4a50f3(0x195)]('menu',_0x2d72bd,{'merge':!0x0}),this['_configService']['setConfig'](H,_0x369fda);}[_0x453270(0x19f)](){const _0x4d1eba=_0x453270;[[c]][_0x4d1eba(0x184)](_0x7f26ce=>this[_0x4d1eba(0x19b)][_0x4d1eba(0x197)](_0x7f26ce));}[_0x453270(0x179)](){const _0xea6b0=_0x453270;this[_0xea6b0(0x19b)][_0xea6b0(0x182)](c);}};I(s,'pluginName',W),I(s,_0x453270(0x185),_0x285752['UNIVER_SHEET']),s=V([_0x28bbf9(_0xf7816a),_(0x1,_0x3fe341(_0x1bcf59)),_(0x2,_0x8c8fff)],s);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 _0x453270=_0x281a;(function(_0x3747aa,_0x4ed556){const _0x2d36fd=_0x281a,_0x3d0e35=_0x3747aa();while(!![]){try{const _0x4c8467=-parseInt(_0x2d36fd(0x1a2))/0x1+parseInt(_0x2d36fd(0x18d))/0x2*(-parseInt(_0x2d36fd(0x183))/0x3)+-parseInt(_0x2d36fd(0x19e))/0x4*(parseInt(_0x2d36fd(0x181))/0x5)+parseInt(_0x2d36fd(0x18c))/0x6*(parseInt(_0x2d36fd(0x19a))/0x7)+-parseInt(_0x2d36fd(0x1a5))/0x8+-parseInt(_0x2d36fd(0x196))/0x9+parseInt(_0x2d36fd(0x187))/0xa*(parseInt(_0x2d36fd(0x191))/0xb);if(_0x4c8467===_0x4ed556)break;else _0x3d0e35['push'](_0x3d0e35['shift']());}catch(_0x284713){_0x3d0e35['push'](_0x3d0e35['shift']());}}}(_0x5598,0x7f16b));function _0x281a(_0x2b63c5,_0x5bafb9){_0x2b63c5=_0x2b63c5-0x178;const _0x5598a9=_0x5598();let _0x281a41=_0x5598a9[_0x2b63c5];return _0x281a41;}import{IExchangeOperateService as _0x18968f,UniverExchangeClientPlugin as _0xf7816a}from'@univerjs-pro/exchange-client';import{CommandType as _0x333b92,UniverInstanceType as _0x285752,Disposable as _0x563ebc,ICommandService as _0x39a748,DependentOn as _0x28bbf9,Inject as _0x3fe341,Injector as _0x1bcf59,IConfigService as _0x8c8fff,Plugin as _0x20e790,merge as _0x11ee9a}from'@univerjs/core';import{MenuItemType as _0x2be2a5,getMenuHiddenObservable as _0x48eced,RibbonStartGroup as _0x4868b1,IMenuManagerService as _0x1d7949}from'@univerjs/ui';import{WorkbookExportPermission as _0x5e8fa6}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0xfc52f0}from'@univerjs/sheets-ui';const p={'id':_0x453270(0x18e),'type':_0x333b92[_0x453270(0x18b)],'handler':async _0x8395b6=>{const _0x49e12a=_0x453270,_0x1d366d=_0x8395b6[_0x49e12a(0x182)](_0x18968f);return new URLSearchParams(location['search'])[_0x49e12a(0x182)]('unit')?_0x1d366d[_0x49e12a(0x194)]():_0x1d366d['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x453270(0x18a),'type':_0x333b92[_0x453270(0x18b)],'handler':async _0x5b6819=>{const _0x47b1ba=_0x453270,_0x39c6d5=_0x5b6819['get'](_0x18968f);return new URLSearchParams(location[_0x47b1ba(0x188)])[_0x47b1ba(0x182)](_0x47b1ba(0x17b))?_0x39c6d5['exportXLSXByUnitId']():_0x39c6d5[_0x47b1ba(0x189)](),!0x0;}},H=_0x453270(0x17c),l={},S=_0x453270(0x199);function R(_0x327509){const _0x2d45e6=_0x453270;return{'id':S,'type':_0x2be2a5[_0x2d45e6(0x1a4)],'icon':_0x2d45e6(0x1a3),'tooltip':_0x2d45e6(0x1a7),'hidden$':_0x48eced(_0x327509,_0x285752[_0x2d45e6(0x17f)]),'disabled$':_0xfc52f0(_0x327509,{'workbookTypes':[_0x5e8fa6]})};}function w(){const _0x551daf=_0x453270;return{'id':p['id'],'type':_0x2be2a5['BUTTON'],'title':_0x551daf(0x180),'icon':'FolderIcon'};}function D(){const _0x5d505f=_0x453270;return{'id':u['id'],'type':_0x2be2a5[_0x5d505f(0x1a6)],'title':_0x5d505f(0x1a1),'icon':'ExportIcon'};}const F={[_0x4868b1[_0x453270(0x198)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};function _0x5598(){const _0x3eb44c=['onReady','_configService','unit','sheets-exchange-client.config','registerCommand','_initCommands','UNIVER_SHEET','exchange.upload','5FuTJow','get','12FRiyOU','forEach','type','mergeMenu','883790EILapa','search','exportXLSXBySnapshot','exchange-client.operation.export-xlsx','OPERATION','2328276RBigNH','140736pwYDJn','exchange-client.operation.import-xlsx','_commandService','_config','66wJMrDt','defineProperty','_initMenus','importXLSXToUnitId','setConfig','191340peCDlc','add','OTHERS','sheets-exchange-client.operation.exchange','14Tvgyya','_injector','_menuManagerService','length','940972nVsJqZ','onStarting','symbol','exchange.download','47695xWhKnH','DirectExportIcon','SUBITEMS','1601128fJadvm','BUTTON','exchange.file','getOwnPropertyDescriptor'];_0x5598=function(){return _0x3eb44c;};return _0x5598();}var G=Object[_0x453270(0x178)],A=(_0x45ec2b,_0x466a3c,_0x25ba51,_0x42e89b)=>{const _0x5d534e=_0x453270;for(var _0x29060f=_0x42e89b>0x1?void 0x0:_0x42e89b?G(_0x466a3c,_0x25ba51):_0x466a3c,_0x538a70=_0x45ec2b[_0x5d534e(0x19d)]-0x1,_0x3eec93;_0x538a70>=0x0;_0x538a70--)(_0x3eec93=_0x45ec2b[_0x538a70])&&(_0x29060f=_0x3eec93(_0x29060f)||_0x29060f);return _0x29060f;},d=(_0xdbc5a3,_0x21f288)=>(_0x32b666,_0x1dc488)=>_0x21f288(_0x32b666,_0x1dc488,_0xdbc5a3);let c=class extends _0x563ebc{constructor(_0x476d82,_0x5f10c3){const _0x3afb0c=_0x453270;super(),this[_0x3afb0c(0x18f)]=_0x476d82,this[_0x3afb0c(0x19c)]=_0x5f10c3,this[_0x3afb0c(0x17e)](),this[_0x3afb0c(0x193)]();}[_0x453270(0x17e)](){const _0x54790c=_0x453270;[p,u][_0x54790c(0x184)](_0xdafeef=>{const _0x21e361=_0x54790c;this['disposeWithMe'](this[_0x21e361(0x18f)][_0x21e361(0x17d)](_0xdafeef));});}['_initMenus'](){const _0x1c41cf=_0x453270;this['_menuManagerService'][_0x1c41cf(0x186)](F);}};c=A([d(0x0,_0x39a748),d(0x1,_0x1d7949)],c);var j=Object[_0x453270(0x192)],B=Object[_0x453270(0x178)],$=(_0x4ae85d,_0x55e711,_0x43a6ae)=>_0x55e711 in _0x4ae85d?j(_0x4ae85d,_0x55e711,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43a6ae}):_0x4ae85d[_0x55e711]=_0x43a6ae,V=(_0x5840cf,_0x3ee5c1,_0x4c6771,_0x577dd9)=>{for(var _0x2d0c7a=_0x577dd9>0x1?void 0x0:_0x577dd9?B(_0x3ee5c1,_0x4c6771):_0x3ee5c1,_0x2ccdfa=_0x5840cf['length']-0x1,_0x2ac4fc;_0x2ccdfa>=0x0;_0x2ccdfa--)(_0x2ac4fc=_0x5840cf[_0x2ccdfa])&&(_0x2d0c7a=_0x2ac4fc(_0x2d0c7a)||_0x2d0c7a);return _0x2d0c7a;},_=(_0x5f3038,_0x466b95)=>(_0x178e93,_0x13a819)=>_0x466b95(_0x178e93,_0x13a819,_0x5f3038),I=(_0x2cbafd,_0x27a9a2,_0x3bce26)=>$(_0x2cbafd,typeof _0x27a9a2!=_0x453270(0x1a0)?_0x27a9a2+'':_0x27a9a2,_0x3bce26);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x20e790{constructor(_0x567587=l,_0x1dbc20,_0x332754){const _0x4a50f3=_0x453270;super(),this[_0x4a50f3(0x190)]=_0x567587,this['_injector']=_0x1dbc20,this[_0x4a50f3(0x17a)]=_0x332754;const {menu:_0x2d72bd,..._0x369fda}=_0x11ee9a({},l,this[_0x4a50f3(0x190)]);_0x2d72bd&&this['_configService'][_0x4a50f3(0x195)]('menu',_0x2d72bd,{'merge':!0x0}),this['_configService']['setConfig'](H,_0x369fda);}[_0x453270(0x19f)](){const _0x4d1eba=_0x453270;[[c]][_0x4d1eba(0x184)](_0x7f26ce=>this[_0x4d1eba(0x19b)][_0x4d1eba(0x197)](_0x7f26ce));}[_0x453270(0x179)](){const _0xea6b0=_0x453270;this[_0xea6b0(0x19b)][_0xea6b0(0x182)](c);}};I(s,'pluginName',W),I(s,_0x453270(0x185),_0x285752['UNIVER_SHEET']),s=V([_0x28bbf9(_0xf7816a),_(0x1,_0x3fe341(_0x1bcf59)),_(0x2,_0x8c8fff)],s);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 _0x5b7d(_0x26e1e2,_0x2adf4d){_0x26e1e2=_0x26e1e2-0xf0;const _0x447a8d=_0x447a();let _0x5b7ddd=_0x447a8d[_0x26e1e2];return _0x5b7ddd;}function _0x447a(){const _0x4002d9=['type','BUTTON','SHEET_EXCHANGE_CLIENT_PLUGIN','get','MenuItemType','UniverInstanceType','@univerjs-pro/exchange-client','Inject','getOwnPropertyDescriptor','unit','exchange-client.operation.import-xlsx','onReady','CommandType','UNIVER_SHEET','_config','@univerjs/sheets-ui','_configService','merge','symbol','mergeMenu','10837026PFoCwZ','IMenuManagerService','ExportIcon','registerCommand','UniverProSheetsExchangeClient','getCurrentRangeDisable$','getMenuHiddenObservable','object','@univerjs/ui','exchange-client.operation.export-xlsx','ExportXLSXOperation','1854165vuZRrO','IExchangeOperateService','128632hRFrLG','2830LxPzTM','amd','menu','exchange.file','ImportXLSXOperation','DependentOn','450MlaQfQ','UniverSheets','exchange.upload','importXLSXToSnapshot','@univerjs/sheets','@univerjs/core','UniverCore','UniverSheetsExchangeClientPlugin','Injector','_menuManagerService','add','_initMenus','WorkbookExportPermission','ICommandService','9110696dzbWvZ','defineProperty','pluginName','FolderIcon','7851CzZUGK','UniverProExchangeClient','35079aXFDSs','SUBITEMS','_commandService','46lZULle','_injector','function','search','toStringTag','IConfigService','_initCommands','onStarting','importXLSXToUnitId','3232444sEbzmB','length','5DInowq','sheets-exchange-client.config','Disposable'];_0x447a=function(){return _0x4002d9;};return _0x447a();}(function(_0x2822a6,_0x1f0b55){const _0x11caa2=_0x5b7d,_0x3d8cfc=_0x2822a6();while(!![]){try{const _0x55f23c=parseInt(_0x11caa2(0x105))/0x1*(-parseInt(_0x11caa2(0x10a))/0x2)+parseInt(_0x11caa2(0x137))/0x3+parseInt(_0x11caa2(0x113))/0x4*(parseInt(_0x11caa2(0x115))/0x5)+parseInt(_0x11caa2(0xf3))/0x6*(-parseInt(_0x11caa2(0x139))/0x7)+-parseInt(_0x11caa2(0x101))/0x8+parseInt(_0x11caa2(0x12c))/0x9+-parseInt(_0x11caa2(0x13a))/0xa*(-parseInt(_0x11caa2(0x107))/0xb);if(_0x55f23c===_0x1f0b55)break;else _0x3d8cfc['push'](_0x3d8cfc['shift']());}catch(_0x1fc3d4){_0x3d8cfc['push'](_0x3d8cfc['shift']());}}}(_0x447a,0xcbe55),function(_0x5c1128,_0x2eaa50){const _0x482a5d=_0x5b7d;typeof exports==_0x482a5d(0x133)&&typeof module<'u'?_0x2eaa50(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x482a5d(0x10c)&&define[_0x482a5d(0x13b)]?define(['exports',_0x482a5d(0x11e),_0x482a5d(0xf8),_0x482a5d(0x134),_0x482a5d(0xf7),_0x482a5d(0x127)],_0x2eaa50):(_0x5c1128=typeof globalThis<'u'?globalThis:_0x5c1128||self,_0x2eaa50(_0x5c1128[_0x482a5d(0x130)]={},_0x5c1128[_0x482a5d(0x106)],_0x5c1128[_0x482a5d(0xf9)],_0x5c1128['UniverUi'],_0x5c1128[_0x482a5d(0xf4)],_0x5c1128['UniverSheetsUi']));}(this,function(_0x5ded0a,_0x570aad,_0x155e4d,_0x544484,_0x29e98b,_0x2c2e65){'use strict';const _0x4b011d=_0x5b7d;const _0x4dcde5={'id':_0x4b011d(0x122),'type':_0x155e4d[_0x4b011d(0x124)]['OPERATION'],'handler':async _0x593492=>{const _0x4a1a25=_0x4b011d,_0x2b7279=_0x593492[_0x4a1a25(0x11b)](_0x570aad[_0x4a1a25(0x138)]);return new URLSearchParams(location[_0x4a1a25(0x10d)])[_0x4a1a25(0x11b)](_0x4a1a25(0x121))?_0x2b7279[_0x4a1a25(0x112)]():_0x2b7279[_0x4a1a25(0xf6)](),!0x0;}},_0x14a4cf={'id':_0x4b011d(0x135),'type':_0x155e4d[_0x4b011d(0x124)]['OPERATION'],'handler':async _0x4caf4b=>{const _0x7f7155=_0x4b011d,_0x97da68=_0x4caf4b[_0x7f7155(0x11b)](_0x570aad[_0x7f7155(0x138)]);return new URLSearchParams(location[_0x7f7155(0x10d)])[_0x7f7155(0x11b)](_0x7f7155(0x121))?_0x97da68['exportXLSXByUnitId']():_0x97da68['exportXLSXBySnapshot'](),!0x0;}},_0x4cfaa5=_0x4b011d(0x116),_0x5b914d={},_0x469f8d='sheets-exchange-client.operation.exchange';function _0x432dbc(_0x32bb4f){const _0x4668a6=_0x4b011d;return{'id':_0x469f8d,'type':_0x544484[_0x4668a6(0x11c)][_0x4668a6(0x108)],'icon':'DirectExportIcon','tooltip':_0x4668a6(0xf0),'hidden$':_0x544484[_0x4668a6(0x132)](_0x32bb4f,_0x155e4d[_0x4668a6(0x11d)][_0x4668a6(0x125)]),'disabled$':_0x2c2e65[_0x4668a6(0x131)](_0x32bb4f,{'workbookTypes':[_0x29e98b[_0x4668a6(0xff)]]})};}function _0x1e1777(){const _0x44f15d=_0x4b011d;return{'id':_0x4dcde5['id'],'type':_0x544484[_0x44f15d(0x11c)][_0x44f15d(0x119)],'title':_0x44f15d(0xf5),'icon':_0x44f15d(0x104)};}function _0x252eb3(){const _0x3e70ea=_0x4b011d;return{'id':_0x14a4cf['id'],'type':_0x544484[_0x3e70ea(0x11c)]['BUTTON'],'title':'exchange.download','icon':_0x3e70ea(0x12e)};}const _0x267348={[_0x544484['RibbonStartGroup']['OTHERS']]:{[_0x469f8d]:{'order':0.3,'menuItemFactory':_0x432dbc,[_0x4dcde5['id']]:{'order':0x0,'menuItemFactory':_0x1e1777},[_0x14a4cf['id']]:{'order':0x1,'menuItemFactory':_0x252eb3}}}};var _0x4b2e23=Object[_0x4b011d(0x120)],_0x5b6dac=(_0x3949a5,_0x3860f1,_0x4d41cf,_0x45f43b)=>{const _0x1d5dc2=_0x4b011d;for(var _0x31fc29=_0x45f43b>0x1?void 0x0:_0x45f43b?_0x4b2e23(_0x3860f1,_0x4d41cf):_0x3860f1,_0x2ff237=_0x3949a5[_0x1d5dc2(0x114)]-0x1,_0x7ec1fe;_0x2ff237>=0x0;_0x2ff237--)(_0x7ec1fe=_0x3949a5[_0x2ff237])&&(_0x31fc29=_0x7ec1fe(_0x31fc29)||_0x31fc29);return _0x31fc29;},_0x18d37e=(_0x10f6de,_0x4d07e8)=>(_0x543bff,_0x39dd4d)=>_0x4d07e8(_0x543bff,_0x39dd4d,_0x10f6de);let _0x5c412b=class extends _0x155e4d[_0x4b011d(0x117)]{constructor(_0x3f9a54,_0x413e9f){const _0x5b240f=_0x4b011d;super(),this[_0x5b240f(0x109)]=_0x3f9a54,this[_0x5b240f(0xfc)]=_0x413e9f,this[_0x5b240f(0x110)](),this[_0x5b240f(0xfe)]();}[_0x4b011d(0x110)](){[_0x4dcde5,_0x14a4cf]['forEach'](_0x3c5316=>{const _0x3698a2=_0x5b7d;this['disposeWithMe'](this[_0x3698a2(0x109)][_0x3698a2(0x12f)](_0x3c5316));});}[_0x4b011d(0xfe)](){const _0x31ea77=_0x4b011d;this[_0x31ea77(0xfc)][_0x31ea77(0x12b)](_0x267348);}};_0x5c412b=_0x5b6dac([_0x18d37e(0x0,_0x155e4d[_0x4b011d(0x100)]),_0x18d37e(0x1,_0x544484[_0x4b011d(0x12d)])],_0x5c412b);var _0x3f6cd9=Object[_0x4b011d(0x102)],_0x239ffe=Object[_0x4b011d(0x120)],_0xb52d7=(_0x5aefb4,_0x4ee7ce,_0x3774f8)=>_0x4ee7ce in _0x5aefb4?_0x3f6cd9(_0x5aefb4,_0x4ee7ce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3774f8}):_0x5aefb4[_0x4ee7ce]=_0x3774f8,_0x10f14c=(_0x1786ee,_0x10c204,_0x489a0d,_0x1af261)=>{const _0x5eac90=_0x4b011d;for(var _0x2a9337=_0x1af261>0x1?void 0x0:_0x1af261?_0x239ffe(_0x10c204,_0x489a0d):_0x10c204,_0x2d8b19=_0x1786ee[_0x5eac90(0x114)]-0x1,_0x5a136b;_0x2d8b19>=0x0;_0x2d8b19--)(_0x5a136b=_0x1786ee[_0x2d8b19])&&(_0x2a9337=_0x5a136b(_0x2a9337)||_0x2a9337);return _0x2a9337;},_0x418b5c=(_0x32d47e,_0x1d03f5)=>(_0x5d559c,_0x137c11)=>_0x1d03f5(_0x5d559c,_0x137c11,_0x32d47e),_0x2dd0ab=(_0x38f19f,_0x53674e,_0x4e549f)=>_0xb52d7(_0x38f19f,typeof _0x53674e!=_0x4b011d(0x12a)?_0x53674e+'':_0x53674e,_0x4e549f);const _0x5abe77=_0x4b011d(0x11a);_0x5ded0a[_0x4b011d(0xfa)]=class extends _0x155e4d['Plugin']{constructor(_0x3dc582=_0x5b914d,_0x289392,_0xfaf4e8){const _0x4852b2=_0x4b011d;super(),this[_0x4852b2(0x126)]=_0x3dc582,this[_0x4852b2(0x10b)]=_0x289392,this[_0x4852b2(0x128)]=_0xfaf4e8;const {menu:_0x284ae7,..._0x50f466}=_0x155e4d[_0x4852b2(0x129)]({},_0x5b914d,this[_0x4852b2(0x126)]);_0x284ae7&&this['_configService']['setConfig'](_0x4852b2(0x13c),_0x284ae7,{'merge':!0x0}),this[_0x4852b2(0x128)]['setConfig'](_0x4cfaa5,_0x50f466);}[_0x4b011d(0x111)](){const _0x2e3650=_0x4b011d;[[_0x5c412b]]['forEach'](_0x37232c=>this[_0x2e3650(0x10b)][_0x2e3650(0xfd)](_0x37232c));}[_0x4b011d(0x123)](){const _0x466490=_0x4b011d;this[_0x466490(0x10b)][_0x466490(0x11b)](_0x5c412b);}},_0x2dd0ab(_0x5ded0a[_0x4b011d(0xfa)],_0x4b011d(0x103),_0x5abe77),_0x2dd0ab(_0x5ded0a[_0x4b011d(0xfa)],_0x4b011d(0x118),_0x155e4d[_0x4b011d(0x11d)][_0x4b011d(0x125)]),_0x5ded0a[_0x4b011d(0xfa)]=_0x10f14c([_0x155e4d[_0x4b011d(0xf2)](_0x570aad['UniverExchangeClientPlugin']),_0x418b5c(0x1,_0x155e4d[_0x4b011d(0x11f)](_0x155e4d[_0x4b011d(0xfb)])),_0x418b5c(0x2,_0x155e4d[_0x4b011d(0x10f)])],_0x5ded0a[_0x4b011d(0xfa)]),_0x5ded0a[_0x4b011d(0x136)]=_0x14a4cf,_0x5ded0a[_0x4b011d(0xf1)]=_0x4dcde5,Object[_0x4b011d(0x102)](_0x5ded0a,Symbol[_0x4b011d(0x10e)],{'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.20251211-c28f914",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -42,11 +42,11 @@
42
42
  "lib"
43
43
  ],
44
44
  "dependencies": {
45
- "@univerjs-pro/exchange-client": "0.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/core": "0.12.4-insiders.20251211-c28f914",
46
+ "@univerjs/sheets-ui": "0.12.4-insiders.20251211-c28f914",
47
+ "@univerjs-pro/exchange-client": "0.12.4-insiders.20251211-c28f914",
48
+ "@univerjs/sheets": "0.12.4-insiders.20251211-c28f914",
49
+ "@univerjs/ui": "0.12.4-insiders.20251211-c28f914"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",