@univerjs-pro/sheets-exchange-client 0.13.0-insiders.20251218-2062647 → 0.13.0-insiders.20251223-857805c

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';function _0x3c12(_0x21b531,_0x10f08c){_0x21b531=_0x21b531-0xa2;const _0x790939=_0x7909();let _0x3c128d=_0x790939[_0x21b531];return _0x3c128d;}const _0x563e1c=_0x3c12;(function(_0x43e1e8,_0x41787f){const _0x3c79bf=_0x3c12,_0x20f200=_0x43e1e8();while(!![]){try{const _0x5aaba4=-parseInt(_0x3c79bf(0xa7))/0x1+-parseInt(_0x3c79bf(0xb1))/0x2*(parseInt(_0x3c79bf(0xa6))/0x3)+parseInt(_0x3c79bf(0xb2))/0x4*(parseInt(_0x3c79bf(0xa9))/0x5)+-parseInt(_0x3c79bf(0xe6))/0x6+parseInt(_0x3c79bf(0xce))/0x7+parseInt(_0x3c79bf(0xaf))/0x8*(-parseInt(_0x3c79bf(0xcc))/0x9)+parseInt(_0x3c79bf(0xc1))/0xa;if(_0x5aaba4===_0x41787f)break;else _0x20f200['push'](_0x20f200['shift']());}catch(_0xbe9d3b){_0x20f200['push'](_0x20f200['shift']());}}}(_0x7909,0x4d151));function _0x7909(){const _0x3d8c62=['Plugin','28641TIPHOx','542464kKRZUz','UNIVER_SHEET','7850lqzSAe','exchange.file','menu','_injector','SHEET_EXCHANGE_CLIENT_PLUGIN','unit','8usInmZ','ExportXLSXOperation','106wMcIRz','872UpNBVe','get','defineProperty','_initMenus','sheets-exchange-client.config','importXLSXToUnitId','exportXLSXByUnitId','exchange.download','CommandType','IConfigService','disposeWithMe','add','search','forEach','symbol','11631530jAGVlz','getMenuHiddenObservable','ICommandService','IMenuManagerService','WorkbookExportPermission','registerCommand','merge','exchange-client.operation.export-xlsx','ImportXLSXOperation','pluginName','BUTTON','2202651HbEPtD','_menuManagerService','1265691tpiKzA','toStringTag','DependentOn','length','SUBITEMS','OPERATION','mergeMenu','exchange.upload','FolderIcon','getOwnPropertyDescriptor','RibbonStartGroup','DirectExportIcon','setConfig','OTHERS','_initCommands','importXLSXToSnapshot','_configService','onStarting','exportXLSXBySnapshot','_config','Module','_commandService','IExchangeOperateService','onReady','463818oQsNwl','UniverSheetsExchangeClientPlugin','MenuItemType','Injector'];_0x7909=function(){return _0x3d8c62;};return _0x7909();}Object[_0x563e1c(0xb4)](exports,Symbol[_0x563e1c(0xcf)],{'value':_0x563e1c(0xe2)});const g=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),c=require('@univerjs/ui'),_=require('@univerjs/sheets'),I=require('@univerjs/sheets-ui'),l={'id':'exchange-client.operation.import-xlsx','type':i[_0x563e1c(0xba)][_0x563e1c(0xd3)],'handler':async _0x220a6b=>{const _0xec6fad=_0x563e1c,_0x189495=_0x220a6b[_0xec6fad(0xb3)](g[_0xec6fad(0xe4)]);return new URLSearchParams(location[_0xec6fad(0xbe)])[_0xec6fad(0xb3)](_0xec6fad(0xae))?_0x189495[_0xec6fad(0xb7)]():_0x189495[_0xec6fad(0xdd)](),!0x0;}},p={'id':_0x563e1c(0xc8),'type':i[_0x563e1c(0xba)][_0x563e1c(0xd3)],'handler':async _0x4c6712=>{const _0x2add47=_0x563e1c,_0x399af8=_0x4c6712[_0x2add47(0xb3)](g[_0x2add47(0xe4)]);return new URLSearchParams(location['search'])[_0x2add47(0xb3)](_0x2add47(0xae))?_0x399af8[_0x2add47(0xb8)]():_0x399af8[_0x2add47(0xe0)](),!0x0;}},v=_0x563e1c(0xb6),h={},S='sheets-exchange-client.operation.exchange';function x(_0x443398){const _0x551b86=_0x563e1c;return{'id':S,'type':c[_0x551b86(0xa3)][_0x551b86(0xd2)],'icon':_0x551b86(0xd9),'tooltip':_0x551b86(0xaa),'hidden$':c[_0x551b86(0xc2)](_0x443398,i['UniverInstanceType']['UNIVER_SHEET']),'disabled$':I['getCurrentRangeDisable$'](_0x443398,{'workbookTypes':[_[_0x551b86(0xc5)]]})};}function P(){const _0x4b1513=_0x563e1c;return{'id':l['id'],'type':c['MenuItemType'][_0x4b1513(0xcb)],'title':_0x4b1513(0xd5),'icon':_0x4b1513(0xd6)};}function C(){const _0x15aeea=_0x563e1c;return{'id':p['id'],'type':c['MenuItemType'][_0x15aeea(0xcb)],'title':_0x15aeea(0xb9),'icon':'ExportIcon'};}const f={[c[_0x563e1c(0xd8)][_0x563e1c(0xdb)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x563e1c(0xd7)],y=(_0x2b6c06,_0x47d453,_0x3ad1b4,_0x15d8dd)=>{const _0x5976b9=_0x563e1c;for(var _0x4761ee=_0x15d8dd>0x1?void 0x0:_0x15d8dd?T(_0x47d453,_0x3ad1b4):_0x47d453,_0x17552e=_0x2b6c06[_0x5976b9(0xd1)]-0x1,_0x12469d;_0x17552e>=0x0;_0x17552e--)(_0x12469d=_0x2b6c06[_0x17552e])&&(_0x4761ee=_0x12469d(_0x4761ee)||_0x4761ee);return _0x4761ee;},m=(_0x5c1370,_0x567b51)=>(_0x43dcc6,_0x533110)=>_0x567b51(_0x43dcc6,_0x533110,_0x5c1370);let u=class extends i['Disposable']{constructor(_0x2e618e,_0x3504b7){const _0x115797=_0x563e1c;super(),this[_0x115797(0xe3)]=_0x2e618e,this['_menuManagerService']=_0x3504b7,this[_0x115797(0xdc)](),this[_0x115797(0xb5)]();}['_initCommands'](){const _0xf60b88=_0x563e1c;[l,p][_0xf60b88(0xbf)](_0x4ad9d4=>{const _0x41fbf6=_0xf60b88;this[_0x41fbf6(0xbc)](this[_0x41fbf6(0xe3)][_0x41fbf6(0xc6)](_0x4ad9d4));});}[_0x563e1c(0xb5)](){const _0xd6385a=_0x563e1c;this[_0xd6385a(0xcd)][_0xd6385a(0xd4)](f);}};u=y([m(0x0,i[_0x563e1c(0xc3)]),m(0x1,c[_0x563e1c(0xc4)])],u);var O=Object[_0x563e1c(0xb4)],U=Object[_0x563e1c(0xd7)],X=(_0x4d485d,_0xe2e823,_0x292d3d)=>_0xe2e823 in _0x4d485d?O(_0x4d485d,_0xe2e823,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x292d3d}):_0x4d485d[_0xe2e823]=_0x292d3d,N=(_0x5ea11b,_0x91c109,_0x281455,_0x3c38d7)=>{const _0x2c8e83=_0x563e1c;for(var _0x1d50cd=_0x3c38d7>0x1?void 0x0:_0x3c38d7?U(_0x91c109,_0x281455):_0x91c109,_0x194fce=_0x5ea11b[_0x2c8e83(0xd1)]-0x1,_0x23bf1d;_0x194fce>=0x0;_0x194fce--)(_0x23bf1d=_0x5ea11b[_0x194fce])&&(_0x1d50cd=_0x23bf1d(_0x1d50cd)||_0x1d50cd);return _0x1d50cd;},d=(_0x32ab70,_0x4bee22)=>(_0x488ab8,_0x35c92c)=>_0x4bee22(_0x488ab8,_0x35c92c,_0x32ab70),E=(_0xc6582a,_0x1212c3,_0x5b7293)=>X(_0xc6582a,typeof _0x1212c3!=_0x563e1c(0xc0)?_0x1212c3+'':_0x1212c3,_0x5b7293);const L=_0x563e1c(0xad);exports[_0x563e1c(0xa2)]=class extends i[_0x563e1c(0xa5)]{constructor(_0x24557a=h,_0x1ef205,_0x499b4d){const _0xba34f1=_0x563e1c;super(),this[_0xba34f1(0xe1)]=_0x24557a,this[_0xba34f1(0xac)]=_0x1ef205,this['_configService']=_0x499b4d;const {menu:_0x21985d,..._0xe1f68b}=i[_0xba34f1(0xc7)]({},h,this[_0xba34f1(0xe1)]);_0x21985d&&this[_0xba34f1(0xde)][_0xba34f1(0xda)](_0xba34f1(0xab),_0x21985d,{'merge':!0x0}),this[_0xba34f1(0xde)][_0xba34f1(0xda)](v,_0xe1f68b);}[_0x563e1c(0xdf)](){const _0x448843=_0x563e1c;[[u]][_0x448843(0xbf)](_0x1d4885=>this[_0x448843(0xac)][_0x448843(0xbd)](_0x1d4885));}[_0x563e1c(0xe5)](){const _0x2a033e=_0x563e1c;this['_injector'][_0x2a033e(0xb3)](u);}},E(exports[_0x563e1c(0xa2)],_0x563e1c(0xca),L),E(exports['UniverSheetsExchangeClientPlugin'],'type',i['UniverInstanceType'][_0x563e1c(0xa8)]),exports[_0x563e1c(0xa2)]=N([i[_0x563e1c(0xd0)](g['UniverExchangeClientPlugin']),d(0x1,i['Inject'](i[_0x563e1c(0xa4)])),d(0x2,i[_0x563e1c(0xbb)])],exports[_0x563e1c(0xa2)]),exports[_0x563e1c(0xb0)]=p,exports[_0x563e1c(0xc9)]=l;
1
+ 'use strict';const _0x1fdca1=_0x2f41;(function(_0x50c6e9,_0x3c8043){const _0x53915b=_0x2f41,_0x3f9e6e=_0x50c6e9();while(!![]){try{const _0x33ddd8=parseInt(_0x53915b(0x19e))/0x1*(-parseInt(_0x53915b(0x1b3))/0x2)+-parseInt(_0x53915b(0x17d))/0x3+parseInt(_0x53915b(0x19f))/0x4*(-parseInt(_0x53915b(0x175))/0x5)+parseInt(_0x53915b(0x187))/0x6+parseInt(_0x53915b(0x189))/0x7*(parseInt(_0x53915b(0x188))/0x8)+-parseInt(_0x53915b(0x176))/0x9+-parseInt(_0x53915b(0x17b))/0xa*(parseInt(_0x53915b(0x1a6))/0xb);if(_0x33ddd8===_0x3c8043)break;else _0x3f9e6e['push'](_0x3f9e6e['shift']());}catch(_0x2d6e92){_0x3f9e6e['push'](_0x3f9e6e['shift']());}}}(_0x1955,0x9b9d9));Object[_0x1fdca1(0x1af)](exports,Symbol[_0x1fdca1(0x1ae)],{'value':_0x1fdca1(0x170)});function _0x2f41(_0x50d3b1,_0x4426b7){_0x50d3b1=_0x50d3b1-0x170;const _0x195595=_0x1955();let _0x2f4187=_0x195595[_0x50d3b1];return _0x2f4187;}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':_0x1fdca1(0x18f),'type':i[_0x1fdca1(0x1a9)][_0x1fdca1(0x17c)],'handler':async _0x8683b=>{const _0x139118=_0x1fdca1,_0x27f898=_0x8683b[_0x139118(0x195)](g[_0x139118(0x185)]);return new URLSearchParams(location[_0x139118(0x190)])[_0x139118(0x195)](_0x139118(0x178))?_0x27f898[_0x139118(0x1a4)]():_0x27f898[_0x139118(0x19c)](),!0x0;}},p={'id':_0x1fdca1(0x192),'type':i['CommandType'][_0x1fdca1(0x17c)],'handler':async _0x5c1e65=>{const _0x136a11=_0x1fdca1,_0xb72dd=_0x5c1e65[_0x136a11(0x195)](g[_0x136a11(0x185)]);return new URLSearchParams(location[_0x136a11(0x190)])[_0x136a11(0x195)](_0x136a11(0x178))?_0xb72dd[_0x136a11(0x1b4)]():_0xb72dd[_0x136a11(0x18d)](),!0x0;}},v=_0x1fdca1(0x18e),h={},S=_0x1fdca1(0x1a0);function x(_0xc0c2e0){const _0x2f7fd4=_0x1fdca1;return{'id':S,'type':c[_0x2f7fd4(0x173)][_0x2f7fd4(0x1a5)],'icon':_0x2f7fd4(0x19b),'tooltip':_0x2f7fd4(0x1a1),'hidden$':c[_0x2f7fd4(0x1a8)](_0xc0c2e0,i[_0x2f7fd4(0x18a)][_0x2f7fd4(0x174)]),'disabled$':I[_0x2f7fd4(0x199)](_0xc0c2e0,{'workbookTypes':[_[_0x2f7fd4(0x17e)]]})};}function P(){const _0x22d9d8=_0x1fdca1;return{'id':l['id'],'type':c[_0x22d9d8(0x173)][_0x22d9d8(0x1b2)],'title':_0x22d9d8(0x1ad),'icon':'FolderIcon'};}function C(){const _0x3875e4=_0x1fdca1;return{'id':p['id'],'type':c['MenuItemType'][_0x3875e4(0x1b2)],'title':_0x3875e4(0x19a),'icon':_0x3875e4(0x18b)};}const f={[c[_0x1fdca1(0x1b0)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x1fdca1(0x184)],y=(_0x78d288,_0x4eacf4,_0x3a7a11,_0x5c86c7)=>{const _0x5bfcfd=_0x1fdca1;for(var _0x4b5d48=_0x5c86c7>0x1?void 0x0:_0x5c86c7?T(_0x4eacf4,_0x3a7a11):_0x4eacf4,_0x137a8c=_0x78d288[_0x5bfcfd(0x179)]-0x1,_0x52cef3;_0x137a8c>=0x0;_0x137a8c--)(_0x52cef3=_0x78d288[_0x137a8c])&&(_0x4b5d48=_0x52cef3(_0x4b5d48)||_0x4b5d48);return _0x4b5d48;},m=(_0x45564d,_0x3a3907)=>(_0x4b9911,_0x5f1754)=>_0x3a3907(_0x4b9911,_0x5f1754,_0x45564d);let u=class extends i[_0x1fdca1(0x197)]{constructor(_0x1ad0e7,_0x26fe10){const _0x3a6ef6=_0x1fdca1;super(),this[_0x3a6ef6(0x1b1)]=_0x1ad0e7,this[_0x3a6ef6(0x186)]=_0x26fe10,this[_0x3a6ef6(0x180)](),this[_0x3a6ef6(0x19d)]();}['_initCommands'](){const _0x363900=_0x1fdca1;[l,p][_0x363900(0x1b5)](_0x4ad984=>{const _0x44fe7b=_0x363900;this['disposeWithMe'](this[_0x44fe7b(0x1b1)][_0x44fe7b(0x198)](_0x4ad984));});}['_initMenus'](){this['_menuManagerService']['mergeMenu'](f);}};u=y([m(0x0,i[_0x1fdca1(0x193)]),m(0x1,c[_0x1fdca1(0x181)])],u);function _0x1955(){const _0x547e2a=['UniverSheetsExchangeClientPlugin','MenuItemType','UNIVER_SHEET','44765tbtuMH','1497141QHKzPl','ImportXLSXOperation','unit','length','_configService','1250260wcERuH','OPERATION','50334uVGdkL','WorkbookExportPermission','Inject','_initCommands','IMenuManagerService','_config','merge','getOwnPropertyDescriptor','IExchangeOperateService','_menuManagerService','4969182ammXfL','472xuocSj','130333YuETpz','UniverInstanceType','ExportIcon','onStarting','exportXLSXBySnapshot','sheets-exchange-client.config','exchange-client.operation.import-xlsx','search','onReady','exchange-client.operation.export-xlsx','ICommandService','symbol','get','UniverExchangeClientPlugin','Disposable','registerCommand','getCurrentRangeDisable$','exchange.download','DirectExportIcon','importXLSXToSnapshot','_initMenus','927446IfiEDT','24uzalyL','sheets-exchange-client.operation.exchange','exchange.file','ExportXLSXOperation','Plugin','importXLSXToUnitId','SUBITEMS','11KNrPvh','menu','getMenuHiddenObservable','CommandType','DependentOn','_injector','setConfig','exchange.upload','toStringTag','defineProperty','RibbonStartGroup','_commandService','BUTTON','2HMlGTz','exportXLSXByUnitId','forEach','Module','pluginName'];_0x1955=function(){return _0x547e2a;};return _0x1955();}var O=Object[_0x1fdca1(0x1af)],U=Object['getOwnPropertyDescriptor'],X=(_0x25f54e,_0x4515c9,_0x4ed0e4)=>_0x4515c9 in _0x25f54e?O(_0x25f54e,_0x4515c9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ed0e4}):_0x25f54e[_0x4515c9]=_0x4ed0e4,N=(_0x39e5c4,_0x55c1ca,_0x3ff7b2,_0x3f02be)=>{const _0x1aad53=_0x1fdca1;for(var _0x3da35e=_0x3f02be>0x1?void 0x0:_0x3f02be?U(_0x55c1ca,_0x3ff7b2):_0x55c1ca,_0x450b69=_0x39e5c4[_0x1aad53(0x179)]-0x1,_0x1bb9e7;_0x450b69>=0x0;_0x450b69--)(_0x1bb9e7=_0x39e5c4[_0x450b69])&&(_0x3da35e=_0x1bb9e7(_0x3da35e)||_0x3da35e);return _0x3da35e;},d=(_0x4fddc3,_0x2bca43)=>(_0x55860b,_0x2ef552)=>_0x2bca43(_0x55860b,_0x2ef552,_0x4fddc3),E=(_0x2f6426,_0x527ffb,_0x64fe8)=>X(_0x2f6426,typeof _0x527ffb!=_0x1fdca1(0x194)?_0x527ffb+'':_0x527ffb,_0x64fe8);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports[_0x1fdca1(0x172)]=class extends i[_0x1fdca1(0x1a3)]{constructor(_0x385215=h,_0x49dea0,_0x3b2022){const _0x1fa2e4=_0x1fdca1;super(),this['_config']=_0x385215,this[_0x1fa2e4(0x1ab)]=_0x49dea0,this[_0x1fa2e4(0x17a)]=_0x3b2022;const {menu:_0x2c11e1,..._0xf743cf}=i[_0x1fa2e4(0x183)]({},h,this[_0x1fa2e4(0x182)]);_0x2c11e1&&this[_0x1fa2e4(0x17a)][_0x1fa2e4(0x1ac)](_0x1fa2e4(0x1a7),_0x2c11e1,{'merge':!0x0}),this[_0x1fa2e4(0x17a)]['setConfig'](v,_0xf743cf);}[_0x1fdca1(0x18c)](){const _0x5b5ece=_0x1fdca1;[[u]][_0x5b5ece(0x1b5)](_0x4ec73f=>this['_injector']['add'](_0x4ec73f));}[_0x1fdca1(0x191)](){const _0x3444b9=_0x1fdca1;this[_0x3444b9(0x1ab)][_0x3444b9(0x195)](u);}},E(exports[_0x1fdca1(0x172)],_0x1fdca1(0x171),L),E(exports[_0x1fdca1(0x172)],'type',i[_0x1fdca1(0x18a)][_0x1fdca1(0x174)]),exports[_0x1fdca1(0x172)]=N([i[_0x1fdca1(0x1aa)](g[_0x1fdca1(0x196)]),d(0x1,i[_0x1fdca1(0x17f)](i['Injector'])),d(0x2,i['IConfigService'])],exports[_0x1fdca1(0x172)]),exports[_0x1fdca1(0x1a2)]=p,exports[_0x1fdca1(0x177)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x388ab9=_0xcdb7;(function(_0x4cf25b,_0x4039cc){const _0x58cafd=_0xcdb7,_0x56c49a=_0x4cf25b();while(!![]){try{const _0x14b5f7=-parseInt(_0x58cafd(0x178))/0x1+parseInt(_0x58cafd(0x17a))/0x2+parseInt(_0x58cafd(0x16c))/0x3+parseInt(_0x58cafd(0x175))/0x4*(-parseInt(_0x58cafd(0x17c))/0x5)+parseInt(_0x58cafd(0x194))/0x6+-parseInt(_0x58cafd(0x17d))/0x7+parseInt(_0x58cafd(0x18a))/0x8;if(_0x14b5f7===_0x4039cc)break;else _0x56c49a['push'](_0x56c49a['shift']());}catch(_0x595409){_0x56c49a['push'](_0x56c49a['shift']());}}}(_0x15c1,0x825a2));import{IExchangeOperateService as _0x308c34,UniverExchangeClientPlugin as _0x3db9ff}from'@univerjs-pro/exchange-client';function _0xcdb7(_0xbb1abb,_0x5b3d91){_0xbb1abb=_0xbb1abb-0x168;const _0x15c1b7=_0x15c1();let _0xcdb7b9=_0x15c1b7[_0xbb1abb];return _0xcdb7b9;}import{CommandType as _0x1f7664,UniverInstanceType as _0x3ca017,Disposable as _0x371407,ICommandService as _0xf35aee,DependentOn as _0xba9894,Inject as _0x999155,Injector as _0x285a90,IConfigService as _0x10247c,Plugin as _0x57006b,merge as _0x17b7d0}from'@univerjs/core';import{MenuItemType as _0x4ab82d,getMenuHiddenObservable as _0x18cfe0,RibbonStartGroup as _0x290b14,IMenuManagerService as _0x34abbb}from'@univerjs/ui';import{WorkbookExportPermission as _0x1d1dce}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x429e33}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x1f7664[_0x388ab9(0x16a)],'handler':async _0x53cd52=>{const _0x3164cd=_0x388ab9,_0x3d2078=_0x53cd52[_0x3164cd(0x189)](_0x308c34);return new URLSearchParams(location[_0x3164cd(0x195)])[_0x3164cd(0x189)]('unit')?_0x3d2078['importXLSXToUnitId']():_0x3d2078['importXLSXToSnapshot'](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x1f7664['OPERATION'],'handler':async _0x51965c=>{const _0x1502bd=_0x388ab9,_0x4b8214=_0x51965c[_0x1502bd(0x189)](_0x308c34);return new URLSearchParams(location['search'])[_0x1502bd(0x189)](_0x1502bd(0x196))?_0x4b8214[_0x1502bd(0x16e)]():_0x4b8214[_0x1502bd(0x177)](),!0x0;}},H=_0x388ab9(0x18c),l={},S=_0x388ab9(0x17e);function R(_0xa035eb){const _0x426235=_0x388ab9;return{'id':S,'type':_0x4ab82d[_0x426235(0x174)],'icon':_0x426235(0x168),'tooltip':_0x426235(0x16f),'hidden$':_0x18cfe0(_0xa035eb,_0x3ca017[_0x426235(0x18d)]),'disabled$':_0x429e33(_0xa035eb,{'workbookTypes':[_0x1d1dce]})};}function w(){const _0x5b13de=_0x388ab9;return{'id':p['id'],'type':_0x4ab82d[_0x5b13de(0x193)],'title':_0x5b13de(0x16d),'icon':_0x5b13de(0x183)};}function D(){const _0x12e1d3=_0x388ab9;return{'id':u['id'],'type':_0x4ab82d[_0x12e1d3(0x193)],'title':'exchange.download','icon':_0x12e1d3(0x181)};}const F={[_0x290b14[_0x388ab9(0x169)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};function _0x15c1(){const _0x12cb81=['625cNFNct','3463040keAXJJ','sheets-exchange-client.operation.exchange','length','pluginName','ExportIcon','menu','FolderIcon','getOwnPropertyDescriptor','symbol','_config','registerCommand','type','get','5685952qimzJi','_initMenus','sheets-exchange-client.config','UNIVER_SHEET','disposeWithMe','SHEET_EXCHANGE_CLIENT_PLUGIN','mergeMenu','forEach','_initCommands','BUTTON','851688QuPICg','search','unit','DirectExportIcon','OTHERS','OPERATION','_menuManagerService','744093QQSIKN','exchange.upload','exportXLSXByUnitId','exchange.file','_commandService','setConfig','add','defineProperty','SUBITEMS','14520LLrgkw','onReady','exportXLSXBySnapshot','676354PIXdTF','_injector','2116046eUyPHL','_configService'];_0x15c1=function(){return _0x12cb81;};return _0x15c1();}var G=Object[_0x388ab9(0x184)],A=(_0xf8d000,_0x22ca4e,_0x20e7b1,_0x2a99a9)=>{const _0x64f788=_0x388ab9;for(var _0xc396ee=_0x2a99a9>0x1?void 0x0:_0x2a99a9?G(_0x22ca4e,_0x20e7b1):_0x22ca4e,_0x204b66=_0xf8d000[_0x64f788(0x17f)]-0x1,_0x3ab3f9;_0x204b66>=0x0;_0x204b66--)(_0x3ab3f9=_0xf8d000[_0x204b66])&&(_0xc396ee=_0x3ab3f9(_0xc396ee)||_0xc396ee);return _0xc396ee;},d=(_0x113d8f,_0x542aba)=>(_0x1c5f8f,_0x3c395b)=>_0x542aba(_0x1c5f8f,_0x3c395b,_0x113d8f);let c=class extends _0x371407{constructor(_0x426447,_0x2f9be7){const _0x4350c3=_0x388ab9;super(),this[_0x4350c3(0x170)]=_0x426447,this['_menuManagerService']=_0x2f9be7,this[_0x4350c3(0x192)](),this[_0x4350c3(0x18b)]();}[_0x388ab9(0x192)](){const _0x2498d4=_0x388ab9;[p,u][_0x2498d4(0x191)](_0x25a722=>{const _0x2c83bc=_0x2498d4;this[_0x2c83bc(0x18e)](this[_0x2c83bc(0x170)][_0x2c83bc(0x187)](_0x25a722));});}[_0x388ab9(0x18b)](){const _0x25587f=_0x388ab9;this[_0x25587f(0x16b)][_0x25587f(0x190)](F);}};c=A([d(0x0,_0xf35aee),d(0x1,_0x34abbb)],c);var j=Object[_0x388ab9(0x173)],B=Object[_0x388ab9(0x184)],$=(_0x3a294c,_0x4c0b20,_0xe7c592)=>_0x4c0b20 in _0x3a294c?j(_0x3a294c,_0x4c0b20,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe7c592}):_0x3a294c[_0x4c0b20]=_0xe7c592,V=(_0x47cd79,_0xff9b0,_0x1889cd,_0x5d4c40)=>{const _0x3c4323=_0x388ab9;for(var _0x3cd93a=_0x5d4c40>0x1?void 0x0:_0x5d4c40?B(_0xff9b0,_0x1889cd):_0xff9b0,_0x25fe52=_0x47cd79[_0x3c4323(0x17f)]-0x1,_0x56782d;_0x25fe52>=0x0;_0x25fe52--)(_0x56782d=_0x47cd79[_0x25fe52])&&(_0x3cd93a=_0x56782d(_0x3cd93a)||_0x3cd93a);return _0x3cd93a;},_=(_0x479fad,_0x20e5fe)=>(_0x2c9713,_0x58d5a0)=>_0x20e5fe(_0x2c9713,_0x58d5a0,_0x479fad),I=(_0x4067f0,_0x4c434f,_0x1dde21)=>$(_0x4067f0,typeof _0x4c434f!=_0x388ab9(0x185)?_0x4c434f+'':_0x4c434f,_0x1dde21);const W=_0x388ab9(0x18f);let s=class extends _0x57006b{constructor(_0x4b6bbb=l,_0x403517,_0x5b3904){const _0x51ea96=_0x388ab9;super(),this['_config']=_0x4b6bbb,this[_0x51ea96(0x179)]=_0x403517,this['_configService']=_0x5b3904;const {menu:_0x14d743,..._0x44f737}=_0x17b7d0({},l,this[_0x51ea96(0x186)]);_0x14d743&&this[_0x51ea96(0x17b)][_0x51ea96(0x171)](_0x51ea96(0x182),_0x14d743,{'merge':!0x0}),this[_0x51ea96(0x17b)][_0x51ea96(0x171)](H,_0x44f737);}['onStarting'](){const _0x4b3537=_0x388ab9;[[c]]['forEach'](_0x5ac4ef=>this['_injector'][_0x4b3537(0x172)](_0x5ac4ef));}[_0x388ab9(0x176)](){const _0x126996=_0x388ab9;this['_injector'][_0x126996(0x189)](c);}};I(s,_0x388ab9(0x180),W),I(s,_0x388ab9(0x188),_0x3ca017[_0x388ab9(0x18d)]),s=V([_0xba9894(_0x3db9ff),_(0x1,_0x999155(_0x285a90)),_(0x2,_0x10247c)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x372cec=_0x4105;(function(_0x59333f,_0x1fd11c){const _0x5e73d6=_0x4105,_0x473d81=_0x59333f();while(!![]){try{const _0x3aaba9=parseInt(_0x5e73d6(0x1ac))/0x1*(parseInt(_0x5e73d6(0x1d8))/0x2)+-parseInt(_0x5e73d6(0x1b4))/0x3*(-parseInt(_0x5e73d6(0x1c8))/0x4)+parseInt(_0x5e73d6(0x1c0))/0x5+-parseInt(_0x5e73d6(0x1c4))/0x6+parseInt(_0x5e73d6(0x1d9))/0x7*(-parseInt(_0x5e73d6(0x1c5))/0x8)+parseInt(_0x5e73d6(0x1cb))/0x9+-parseInt(_0x5e73d6(0x1b2))/0xa*(parseInt(_0x5e73d6(0x1d7))/0xb);if(_0x3aaba9===_0x1fd11c)break;else _0x473d81['push'](_0x473d81['shift']());}catch(_0x24a7e7){_0x473d81['push'](_0x473d81['shift']());}}}(_0x3b35,0xbb6aa));import{IExchangeOperateService as _0x197611,UniverExchangeClientPlugin as _0x2dc2cc}from'@univerjs-pro/exchange-client';import{CommandType as _0x5aad29,UniverInstanceType as _0x4f7f7c,Disposable as _0x58bd06,ICommandService as _0x457e28,DependentOn as _0x4504a4,Inject as _0x12e82b,Injector as _0x68146e,IConfigService as _0x716a0e,Plugin as _0x30c9c9,merge as _0x46894d}from'@univerjs/core';import{MenuItemType as _0x12e2c2,getMenuHiddenObservable as _0x300090,RibbonStartGroup as _0x97aeaa,IMenuManagerService as _0x3106b7}from'@univerjs/ui';function _0x3b35(){const _0x4d95b8=['1572294aeoiWZ','888538kkNkZL','pluginName','onStarting','1eESWHX','defineProperty','BUTTON','_config','disposeWithMe','SUBITEMS','1888690gZOskC','sheets-exchange-client.operation.exchange','2166240CiLAYT','UNIVER_SHEET','FolderIcon','OPERATION','_configService','_initCommands','_commandService','OTHERS','importXLSXToUnitId','sheets-exchange-client.config','menu','add','1848380ZBAGyi','unit','onReady','exportXLSXByUnitId','8868342kxZjTE','64aPOcWv','setConfig','get','8LUVLWo','exchange.file','search','9350478CGFExX','registerCommand','exchange.download','length','_initMenus','exportXLSXBySnapshot','exchange-client.operation.export-xlsx','exchange-client.operation.import-xlsx','DirectExportIcon','symbol','getOwnPropertyDescriptor','forEach','22qZsGBw'];_0x3b35=function(){return _0x4d95b8;};return _0x3b35();}import{WorkbookExportPermission as _0x5809b4}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x2c4f24}from'@univerjs/sheets-ui';const p={'id':_0x372cec(0x1d2),'type':_0x5aad29[_0x372cec(0x1b7)],'handler':async _0x3a23e1=>{const _0x14a1a0=_0x372cec,_0x2a75e5=_0x3a23e1[_0x14a1a0(0x1c7)](_0x197611);return new URLSearchParams(location[_0x14a1a0(0x1ca)])['get'](_0x14a1a0(0x1c1))?_0x2a75e5[_0x14a1a0(0x1bc)]():_0x2a75e5['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x372cec(0x1d1),'type':_0x5aad29['OPERATION'],'handler':async _0xefbbee=>{const _0x3b7e9f=_0x372cec,_0x12b486=_0xefbbee[_0x3b7e9f(0x1c7)](_0x197611);return new URLSearchParams(location['search'])[_0x3b7e9f(0x1c7)]('unit')?_0x12b486[_0x3b7e9f(0x1c3)]():_0x12b486[_0x3b7e9f(0x1d0)](),!0x0;}},H=_0x372cec(0x1bd),l={},S=_0x372cec(0x1b3);function R(_0x1f9289){const _0x216e92=_0x372cec;return{'id':S,'type':_0x12e2c2[_0x216e92(0x1b1)],'icon':_0x216e92(0x1d3),'tooltip':_0x216e92(0x1c9),'hidden$':_0x300090(_0x1f9289,_0x4f7f7c[_0x216e92(0x1b5)]),'disabled$':_0x2c4f24(_0x1f9289,{'workbookTypes':[_0x5809b4]})};}function w(){const _0x405066=_0x372cec;return{'id':p['id'],'type':_0x12e2c2['BUTTON'],'title':'exchange.upload','icon':_0x405066(0x1b6)};}function D(){const _0x2a71ca=_0x372cec;return{'id':u['id'],'type':_0x12e2c2[_0x2a71ca(0x1ae)],'title':_0x2a71ca(0x1cd),'icon':'ExportIcon'};}const F={[_0x97aeaa[_0x372cec(0x1bb)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x372cec(0x1d5)],A=(_0x5145bb,_0x2dc2d4,_0x92fbd7,_0x99730)=>{const _0x4deac4=_0x372cec;for(var _0x3ea1f7=_0x99730>0x1?void 0x0:_0x99730?G(_0x2dc2d4,_0x92fbd7):_0x2dc2d4,_0x4f78f2=_0x5145bb[_0x4deac4(0x1ce)]-0x1,_0x53d508;_0x4f78f2>=0x0;_0x4f78f2--)(_0x53d508=_0x5145bb[_0x4f78f2])&&(_0x3ea1f7=_0x53d508(_0x3ea1f7)||_0x3ea1f7);return _0x3ea1f7;},d=(_0x170964,_0x306af2)=>(_0x1b8306,_0x5a3002)=>_0x306af2(_0x1b8306,_0x5a3002,_0x170964);let c=class extends _0x58bd06{constructor(_0x5ba9e6,_0x72ebfb){const _0x5a831e=_0x372cec;super(),this['_commandService']=_0x5ba9e6,this['_menuManagerService']=_0x72ebfb,this[_0x5a831e(0x1b9)](),this['_initMenus']();}['_initCommands'](){const _0x2b5393=_0x372cec;[p,u][_0x2b5393(0x1d6)](_0x1c6d21=>{const _0x2c9e55=_0x2b5393;this[_0x2c9e55(0x1b0)](this[_0x2c9e55(0x1ba)][_0x2c9e55(0x1cc)](_0x1c6d21));});}[_0x372cec(0x1cf)](){this['_menuManagerService']['mergeMenu'](F);}};c=A([d(0x0,_0x457e28),d(0x1,_0x3106b7)],c);var j=Object[_0x372cec(0x1ad)],B=Object['getOwnPropertyDescriptor'],$=(_0x57e5d0,_0x3ab451,_0xba7201)=>_0x3ab451 in _0x57e5d0?j(_0x57e5d0,_0x3ab451,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xba7201}):_0x57e5d0[_0x3ab451]=_0xba7201,V=(_0x49a3ee,_0x5add10,_0x4c6a20,_0x3179ce)=>{const _0x492f0d=_0x372cec;for(var _0x2d79cd=_0x3179ce>0x1?void 0x0:_0x3179ce?B(_0x5add10,_0x4c6a20):_0x5add10,_0x16074a=_0x49a3ee[_0x492f0d(0x1ce)]-0x1,_0x51afb8;_0x16074a>=0x0;_0x16074a--)(_0x51afb8=_0x49a3ee[_0x16074a])&&(_0x2d79cd=_0x51afb8(_0x2d79cd)||_0x2d79cd);return _0x2d79cd;},_=(_0x52f09d,_0x5d0d38)=>(_0x5c79b6,_0x351c59)=>_0x5d0d38(_0x5c79b6,_0x351c59,_0x52f09d),I=(_0x146f96,_0x211160,_0x41492d)=>$(_0x146f96,typeof _0x211160!=_0x372cec(0x1d4)?_0x211160+'':_0x211160,_0x41492d);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';function _0x4105(_0x5c974a,_0x5d5018){_0x5c974a=_0x5c974a-0x1ac;const _0x3b3598=_0x3b35();let _0x4105d8=_0x3b3598[_0x5c974a];return _0x4105d8;}let s=class extends _0x30c9c9{constructor(_0xd80499=l,_0x4dc67a,_0x55755a){const _0x1a852b=_0x372cec;super(),this[_0x1a852b(0x1af)]=_0xd80499,this['_injector']=_0x4dc67a,this[_0x1a852b(0x1b8)]=_0x55755a;const {menu:_0x44dd4e,..._0xa4e2fb}=_0x46894d({},l,this[_0x1a852b(0x1af)]);_0x44dd4e&&this[_0x1a852b(0x1b8)][_0x1a852b(0x1c6)](_0x1a852b(0x1be),_0x44dd4e,{'merge':!0x0}),this[_0x1a852b(0x1b8)][_0x1a852b(0x1c6)](H,_0xa4e2fb);}[_0x372cec(0x1db)](){const _0x988bec=_0x372cec;[[c]][_0x988bec(0x1d6)](_0x7fe6c2=>this['_injector'][_0x988bec(0x1bf)](_0x7fe6c2));}[_0x372cec(0x1c2)](){const _0x7bed9d=_0x372cec;this['_injector'][_0x7bed9d(0x1c7)](c);}};I(s,_0x372cec(0x1da),W),I(s,'type',_0x4f7f7c['UNIVER_SHEET']),s=V([_0x4504a4(_0x2dc2cc),_(0x1,_0x12e82b(_0x68146e)),_(0x2,_0x716a0e)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x388ab9=_0xcdb7;(function(_0x4cf25b,_0x4039cc){const _0x58cafd=_0xcdb7,_0x56c49a=_0x4cf25b();while(!![]){try{const _0x14b5f7=-parseInt(_0x58cafd(0x178))/0x1+parseInt(_0x58cafd(0x17a))/0x2+parseInt(_0x58cafd(0x16c))/0x3+parseInt(_0x58cafd(0x175))/0x4*(-parseInt(_0x58cafd(0x17c))/0x5)+parseInt(_0x58cafd(0x194))/0x6+-parseInt(_0x58cafd(0x17d))/0x7+parseInt(_0x58cafd(0x18a))/0x8;if(_0x14b5f7===_0x4039cc)break;else _0x56c49a['push'](_0x56c49a['shift']());}catch(_0x595409){_0x56c49a['push'](_0x56c49a['shift']());}}}(_0x15c1,0x825a2));import{IExchangeOperateService as _0x308c34,UniverExchangeClientPlugin as _0x3db9ff}from'@univerjs-pro/exchange-client';function _0xcdb7(_0xbb1abb,_0x5b3d91){_0xbb1abb=_0xbb1abb-0x168;const _0x15c1b7=_0x15c1();let _0xcdb7b9=_0x15c1b7[_0xbb1abb];return _0xcdb7b9;}import{CommandType as _0x1f7664,UniverInstanceType as _0x3ca017,Disposable as _0x371407,ICommandService as _0xf35aee,DependentOn as _0xba9894,Inject as _0x999155,Injector as _0x285a90,IConfigService as _0x10247c,Plugin as _0x57006b,merge as _0x17b7d0}from'@univerjs/core';import{MenuItemType as _0x4ab82d,getMenuHiddenObservable as _0x18cfe0,RibbonStartGroup as _0x290b14,IMenuManagerService as _0x34abbb}from'@univerjs/ui';import{WorkbookExportPermission as _0x1d1dce}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x429e33}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x1f7664[_0x388ab9(0x16a)],'handler':async _0x53cd52=>{const _0x3164cd=_0x388ab9,_0x3d2078=_0x53cd52[_0x3164cd(0x189)](_0x308c34);return new URLSearchParams(location[_0x3164cd(0x195)])[_0x3164cd(0x189)]('unit')?_0x3d2078['importXLSXToUnitId']():_0x3d2078['importXLSXToSnapshot'](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x1f7664['OPERATION'],'handler':async _0x51965c=>{const _0x1502bd=_0x388ab9,_0x4b8214=_0x51965c[_0x1502bd(0x189)](_0x308c34);return new URLSearchParams(location['search'])[_0x1502bd(0x189)](_0x1502bd(0x196))?_0x4b8214[_0x1502bd(0x16e)]():_0x4b8214[_0x1502bd(0x177)](),!0x0;}},H=_0x388ab9(0x18c),l={},S=_0x388ab9(0x17e);function R(_0xa035eb){const _0x426235=_0x388ab9;return{'id':S,'type':_0x4ab82d[_0x426235(0x174)],'icon':_0x426235(0x168),'tooltip':_0x426235(0x16f),'hidden$':_0x18cfe0(_0xa035eb,_0x3ca017[_0x426235(0x18d)]),'disabled$':_0x429e33(_0xa035eb,{'workbookTypes':[_0x1d1dce]})};}function w(){const _0x5b13de=_0x388ab9;return{'id':p['id'],'type':_0x4ab82d[_0x5b13de(0x193)],'title':_0x5b13de(0x16d),'icon':_0x5b13de(0x183)};}function D(){const _0x12e1d3=_0x388ab9;return{'id':u['id'],'type':_0x4ab82d[_0x12e1d3(0x193)],'title':'exchange.download','icon':_0x12e1d3(0x181)};}const F={[_0x290b14[_0x388ab9(0x169)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};function _0x15c1(){const _0x12cb81=['625cNFNct','3463040keAXJJ','sheets-exchange-client.operation.exchange','length','pluginName','ExportIcon','menu','FolderIcon','getOwnPropertyDescriptor','symbol','_config','registerCommand','type','get','5685952qimzJi','_initMenus','sheets-exchange-client.config','UNIVER_SHEET','disposeWithMe','SHEET_EXCHANGE_CLIENT_PLUGIN','mergeMenu','forEach','_initCommands','BUTTON','851688QuPICg','search','unit','DirectExportIcon','OTHERS','OPERATION','_menuManagerService','744093QQSIKN','exchange.upload','exportXLSXByUnitId','exchange.file','_commandService','setConfig','add','defineProperty','SUBITEMS','14520LLrgkw','onReady','exportXLSXBySnapshot','676354PIXdTF','_injector','2116046eUyPHL','_configService'];_0x15c1=function(){return _0x12cb81;};return _0x15c1();}var G=Object[_0x388ab9(0x184)],A=(_0xf8d000,_0x22ca4e,_0x20e7b1,_0x2a99a9)=>{const _0x64f788=_0x388ab9;for(var _0xc396ee=_0x2a99a9>0x1?void 0x0:_0x2a99a9?G(_0x22ca4e,_0x20e7b1):_0x22ca4e,_0x204b66=_0xf8d000[_0x64f788(0x17f)]-0x1,_0x3ab3f9;_0x204b66>=0x0;_0x204b66--)(_0x3ab3f9=_0xf8d000[_0x204b66])&&(_0xc396ee=_0x3ab3f9(_0xc396ee)||_0xc396ee);return _0xc396ee;},d=(_0x113d8f,_0x542aba)=>(_0x1c5f8f,_0x3c395b)=>_0x542aba(_0x1c5f8f,_0x3c395b,_0x113d8f);let c=class extends _0x371407{constructor(_0x426447,_0x2f9be7){const _0x4350c3=_0x388ab9;super(),this[_0x4350c3(0x170)]=_0x426447,this['_menuManagerService']=_0x2f9be7,this[_0x4350c3(0x192)](),this[_0x4350c3(0x18b)]();}[_0x388ab9(0x192)](){const _0x2498d4=_0x388ab9;[p,u][_0x2498d4(0x191)](_0x25a722=>{const _0x2c83bc=_0x2498d4;this[_0x2c83bc(0x18e)](this[_0x2c83bc(0x170)][_0x2c83bc(0x187)](_0x25a722));});}[_0x388ab9(0x18b)](){const _0x25587f=_0x388ab9;this[_0x25587f(0x16b)][_0x25587f(0x190)](F);}};c=A([d(0x0,_0xf35aee),d(0x1,_0x34abbb)],c);var j=Object[_0x388ab9(0x173)],B=Object[_0x388ab9(0x184)],$=(_0x3a294c,_0x4c0b20,_0xe7c592)=>_0x4c0b20 in _0x3a294c?j(_0x3a294c,_0x4c0b20,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe7c592}):_0x3a294c[_0x4c0b20]=_0xe7c592,V=(_0x47cd79,_0xff9b0,_0x1889cd,_0x5d4c40)=>{const _0x3c4323=_0x388ab9;for(var _0x3cd93a=_0x5d4c40>0x1?void 0x0:_0x5d4c40?B(_0xff9b0,_0x1889cd):_0xff9b0,_0x25fe52=_0x47cd79[_0x3c4323(0x17f)]-0x1,_0x56782d;_0x25fe52>=0x0;_0x25fe52--)(_0x56782d=_0x47cd79[_0x25fe52])&&(_0x3cd93a=_0x56782d(_0x3cd93a)||_0x3cd93a);return _0x3cd93a;},_=(_0x479fad,_0x20e5fe)=>(_0x2c9713,_0x58d5a0)=>_0x20e5fe(_0x2c9713,_0x58d5a0,_0x479fad),I=(_0x4067f0,_0x4c434f,_0x1dde21)=>$(_0x4067f0,typeof _0x4c434f!=_0x388ab9(0x185)?_0x4c434f+'':_0x4c434f,_0x1dde21);const W=_0x388ab9(0x18f);let s=class extends _0x57006b{constructor(_0x4b6bbb=l,_0x403517,_0x5b3904){const _0x51ea96=_0x388ab9;super(),this['_config']=_0x4b6bbb,this[_0x51ea96(0x179)]=_0x403517,this['_configService']=_0x5b3904;const {menu:_0x14d743,..._0x44f737}=_0x17b7d0({},l,this[_0x51ea96(0x186)]);_0x14d743&&this[_0x51ea96(0x17b)][_0x51ea96(0x171)](_0x51ea96(0x182),_0x14d743,{'merge':!0x0}),this[_0x51ea96(0x17b)][_0x51ea96(0x171)](H,_0x44f737);}['onStarting'](){const _0x4b3537=_0x388ab9;[[c]]['forEach'](_0x5ac4ef=>this['_injector'][_0x4b3537(0x172)](_0x5ac4ef));}[_0x388ab9(0x176)](){const _0x126996=_0x388ab9;this['_injector'][_0x126996(0x189)](c);}};I(s,_0x388ab9(0x180),W),I(s,_0x388ab9(0x188),_0x3ca017[_0x388ab9(0x18d)]),s=V([_0xba9894(_0x3db9ff),_(0x1,_0x999155(_0x285a90)),_(0x2,_0x10247c)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x372cec=_0x4105;(function(_0x59333f,_0x1fd11c){const _0x5e73d6=_0x4105,_0x473d81=_0x59333f();while(!![]){try{const _0x3aaba9=parseInt(_0x5e73d6(0x1ac))/0x1*(parseInt(_0x5e73d6(0x1d8))/0x2)+-parseInt(_0x5e73d6(0x1b4))/0x3*(-parseInt(_0x5e73d6(0x1c8))/0x4)+parseInt(_0x5e73d6(0x1c0))/0x5+-parseInt(_0x5e73d6(0x1c4))/0x6+parseInt(_0x5e73d6(0x1d9))/0x7*(-parseInt(_0x5e73d6(0x1c5))/0x8)+parseInt(_0x5e73d6(0x1cb))/0x9+-parseInt(_0x5e73d6(0x1b2))/0xa*(parseInt(_0x5e73d6(0x1d7))/0xb);if(_0x3aaba9===_0x1fd11c)break;else _0x473d81['push'](_0x473d81['shift']());}catch(_0x24a7e7){_0x473d81['push'](_0x473d81['shift']());}}}(_0x3b35,0xbb6aa));import{IExchangeOperateService as _0x197611,UniverExchangeClientPlugin as _0x2dc2cc}from'@univerjs-pro/exchange-client';import{CommandType as _0x5aad29,UniverInstanceType as _0x4f7f7c,Disposable as _0x58bd06,ICommandService as _0x457e28,DependentOn as _0x4504a4,Inject as _0x12e82b,Injector as _0x68146e,IConfigService as _0x716a0e,Plugin as _0x30c9c9,merge as _0x46894d}from'@univerjs/core';import{MenuItemType as _0x12e2c2,getMenuHiddenObservable as _0x300090,RibbonStartGroup as _0x97aeaa,IMenuManagerService as _0x3106b7}from'@univerjs/ui';function _0x3b35(){const _0x4d95b8=['1572294aeoiWZ','888538kkNkZL','pluginName','onStarting','1eESWHX','defineProperty','BUTTON','_config','disposeWithMe','SUBITEMS','1888690gZOskC','sheets-exchange-client.operation.exchange','2166240CiLAYT','UNIVER_SHEET','FolderIcon','OPERATION','_configService','_initCommands','_commandService','OTHERS','importXLSXToUnitId','sheets-exchange-client.config','menu','add','1848380ZBAGyi','unit','onReady','exportXLSXByUnitId','8868342kxZjTE','64aPOcWv','setConfig','get','8LUVLWo','exchange.file','search','9350478CGFExX','registerCommand','exchange.download','length','_initMenus','exportXLSXBySnapshot','exchange-client.operation.export-xlsx','exchange-client.operation.import-xlsx','DirectExportIcon','symbol','getOwnPropertyDescriptor','forEach','22qZsGBw'];_0x3b35=function(){return _0x4d95b8;};return _0x3b35();}import{WorkbookExportPermission as _0x5809b4}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x2c4f24}from'@univerjs/sheets-ui';const p={'id':_0x372cec(0x1d2),'type':_0x5aad29[_0x372cec(0x1b7)],'handler':async _0x3a23e1=>{const _0x14a1a0=_0x372cec,_0x2a75e5=_0x3a23e1[_0x14a1a0(0x1c7)](_0x197611);return new URLSearchParams(location[_0x14a1a0(0x1ca)])['get'](_0x14a1a0(0x1c1))?_0x2a75e5[_0x14a1a0(0x1bc)]():_0x2a75e5['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x372cec(0x1d1),'type':_0x5aad29['OPERATION'],'handler':async _0xefbbee=>{const _0x3b7e9f=_0x372cec,_0x12b486=_0xefbbee[_0x3b7e9f(0x1c7)](_0x197611);return new URLSearchParams(location['search'])[_0x3b7e9f(0x1c7)]('unit')?_0x12b486[_0x3b7e9f(0x1c3)]():_0x12b486[_0x3b7e9f(0x1d0)](),!0x0;}},H=_0x372cec(0x1bd),l={},S=_0x372cec(0x1b3);function R(_0x1f9289){const _0x216e92=_0x372cec;return{'id':S,'type':_0x12e2c2[_0x216e92(0x1b1)],'icon':_0x216e92(0x1d3),'tooltip':_0x216e92(0x1c9),'hidden$':_0x300090(_0x1f9289,_0x4f7f7c[_0x216e92(0x1b5)]),'disabled$':_0x2c4f24(_0x1f9289,{'workbookTypes':[_0x5809b4]})};}function w(){const _0x405066=_0x372cec;return{'id':p['id'],'type':_0x12e2c2['BUTTON'],'title':'exchange.upload','icon':_0x405066(0x1b6)};}function D(){const _0x2a71ca=_0x372cec;return{'id':u['id'],'type':_0x12e2c2[_0x2a71ca(0x1ae)],'title':_0x2a71ca(0x1cd),'icon':'ExportIcon'};}const F={[_0x97aeaa[_0x372cec(0x1bb)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x372cec(0x1d5)],A=(_0x5145bb,_0x2dc2d4,_0x92fbd7,_0x99730)=>{const _0x4deac4=_0x372cec;for(var _0x3ea1f7=_0x99730>0x1?void 0x0:_0x99730?G(_0x2dc2d4,_0x92fbd7):_0x2dc2d4,_0x4f78f2=_0x5145bb[_0x4deac4(0x1ce)]-0x1,_0x53d508;_0x4f78f2>=0x0;_0x4f78f2--)(_0x53d508=_0x5145bb[_0x4f78f2])&&(_0x3ea1f7=_0x53d508(_0x3ea1f7)||_0x3ea1f7);return _0x3ea1f7;},d=(_0x170964,_0x306af2)=>(_0x1b8306,_0x5a3002)=>_0x306af2(_0x1b8306,_0x5a3002,_0x170964);let c=class extends _0x58bd06{constructor(_0x5ba9e6,_0x72ebfb){const _0x5a831e=_0x372cec;super(),this['_commandService']=_0x5ba9e6,this['_menuManagerService']=_0x72ebfb,this[_0x5a831e(0x1b9)](),this['_initMenus']();}['_initCommands'](){const _0x2b5393=_0x372cec;[p,u][_0x2b5393(0x1d6)](_0x1c6d21=>{const _0x2c9e55=_0x2b5393;this[_0x2c9e55(0x1b0)](this[_0x2c9e55(0x1ba)][_0x2c9e55(0x1cc)](_0x1c6d21));});}[_0x372cec(0x1cf)](){this['_menuManagerService']['mergeMenu'](F);}};c=A([d(0x0,_0x457e28),d(0x1,_0x3106b7)],c);var j=Object[_0x372cec(0x1ad)],B=Object['getOwnPropertyDescriptor'],$=(_0x57e5d0,_0x3ab451,_0xba7201)=>_0x3ab451 in _0x57e5d0?j(_0x57e5d0,_0x3ab451,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xba7201}):_0x57e5d0[_0x3ab451]=_0xba7201,V=(_0x49a3ee,_0x5add10,_0x4c6a20,_0x3179ce)=>{const _0x492f0d=_0x372cec;for(var _0x2d79cd=_0x3179ce>0x1?void 0x0:_0x3179ce?B(_0x5add10,_0x4c6a20):_0x5add10,_0x16074a=_0x49a3ee[_0x492f0d(0x1ce)]-0x1,_0x51afb8;_0x16074a>=0x0;_0x16074a--)(_0x51afb8=_0x49a3ee[_0x16074a])&&(_0x2d79cd=_0x51afb8(_0x2d79cd)||_0x2d79cd);return _0x2d79cd;},_=(_0x52f09d,_0x5d0d38)=>(_0x5c79b6,_0x351c59)=>_0x5d0d38(_0x5c79b6,_0x351c59,_0x52f09d),I=(_0x146f96,_0x211160,_0x41492d)=>$(_0x146f96,typeof _0x211160!=_0x372cec(0x1d4)?_0x211160+'':_0x211160,_0x41492d);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';function _0x4105(_0x5c974a,_0x5d5018){_0x5c974a=_0x5c974a-0x1ac;const _0x3b3598=_0x3b35();let _0x4105d8=_0x3b3598[_0x5c974a];return _0x4105d8;}let s=class extends _0x30c9c9{constructor(_0xd80499=l,_0x4dc67a,_0x55755a){const _0x1a852b=_0x372cec;super(),this[_0x1a852b(0x1af)]=_0xd80499,this['_injector']=_0x4dc67a,this[_0x1a852b(0x1b8)]=_0x55755a;const {menu:_0x44dd4e,..._0xa4e2fb}=_0x46894d({},l,this[_0x1a852b(0x1af)]);_0x44dd4e&&this[_0x1a852b(0x1b8)][_0x1a852b(0x1c6)](_0x1a852b(0x1be),_0x44dd4e,{'merge':!0x0}),this[_0x1a852b(0x1b8)][_0x1a852b(0x1c6)](H,_0xa4e2fb);}[_0x372cec(0x1db)](){const _0x988bec=_0x372cec;[[c]][_0x988bec(0x1d6)](_0x7fe6c2=>this['_injector'][_0x988bec(0x1bf)](_0x7fe6c2));}[_0x372cec(0x1c2)](){const _0x7bed9d=_0x372cec;this['_injector'][_0x7bed9d(0x1c7)](c);}};I(s,_0x372cec(0x1da),W),I(s,'type',_0x4f7f7c['UNIVER_SHEET']),s=V([_0x4504a4(_0x2dc2cc),_(0x1,_0x12e82b(_0x68146e)),_(0x2,_0x716a0e)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x1c462e,_0x5d1966){const _0x1ed9a3=_0x33ea,_0x518f21=_0x1c462e();while(!![]){try{const _0x2be807=parseInt(_0x1ed9a3(0xc2))/0x1+parseInt(_0x1ed9a3(0xc9))/0x2+parseInt(_0x1ed9a3(0xb6))/0x3+parseInt(_0x1ed9a3(0x9e))/0x4*(parseInt(_0x1ed9a3(0x93))/0x5)+parseInt(_0x1ed9a3(0xc8))/0x6+parseInt(_0x1ed9a3(0xbc))/0x7*(-parseInt(_0x1ed9a3(0xb9))/0x8)+-parseInt(_0x1ed9a3(0xa1))/0x9*(parseInt(_0x1ed9a3(0x99))/0xa);if(_0x2be807===_0x5d1966)break;else _0x518f21['push'](_0x518f21['shift']());}catch(_0xedfe93){_0x518f21['push'](_0x518f21['shift']());}}}(_0x10d9,0xa573f),function(_0x5b1ccb,_0x2d0047){const _0x3925a7=_0x33ea;typeof exports=='object'&&typeof module<'u'?_0x2d0047(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x3925a7(0xbf)&&define[_0x3925a7(0xa5)]?define([_0x3925a7(0xb3),'@univerjs-pro/exchange-client',_0x3925a7(0xc4),_0x3925a7(0xb7),'@univerjs/sheets',_0x3925a7(0xab)],_0x2d0047):(_0x5b1ccb=typeof globalThis<'u'?globalThis:_0x5b1ccb||self,_0x2d0047(_0x5b1ccb[_0x3925a7(0xbd)]={},_0x5b1ccb[_0x3925a7(0x80)],_0x5b1ccb[_0x3925a7(0x7f)],_0x5b1ccb[_0x3925a7(0x84)],_0x5b1ccb['UniverSheets'],_0x5b1ccb['UniverSheetsUi']));}(this,function(_0x1b13db,_0x2ea75f,_0x1f4a7e,_0x5a8adc,_0x41a864,_0x32fd5a){'use strict';const _0x3e9570=_0x33ea;const _0x18ba58={'id':_0x3e9570(0x89),'type':_0x1f4a7e['CommandType'][_0x3e9570(0x88)],'handler':async _0xdae644=>{const _0x45ce1c=_0x3e9570,_0xbef784=_0xdae644[_0x45ce1c(0xa4)](_0x2ea75f['IExchangeOperateService']);return new URLSearchParams(location['search'])['get'](_0x45ce1c(0x9f))?_0xbef784['importXLSXToUnitId']():_0xbef784[_0x45ce1c(0xa3)](),!0x0;}},_0x199b28={'id':_0x3e9570(0xaa),'type':_0x1f4a7e[_0x3e9570(0x8e)]['OPERATION'],'handler':async _0x4e1250=>{const _0x2941da=_0x3e9570,_0x24b557=_0x4e1250[_0x2941da(0xa4)](_0x2ea75f[_0x2941da(0x94)]);return new URLSearchParams(location[_0x2941da(0x86)])[_0x2941da(0xa4)](_0x2941da(0x9f))?_0x24b557[_0x2941da(0x91)]():_0x24b557['exportXLSXBySnapshot'](),!0x0;}},_0x2cbfc8=_0x3e9570(0xbb),_0xb55b37={},_0x3ad69e=_0x3e9570(0xa6);function _0x44c5b1(_0x4612f5){const _0x155c16=_0x3e9570;return{'id':_0x3ad69e,'type':_0x5a8adc[_0x155c16(0x9d)][_0x155c16(0x90)],'icon':_0x155c16(0x96),'tooltip':_0x155c16(0x8f),'hidden$':_0x5a8adc['getMenuHiddenObservable'](_0x4612f5,_0x1f4a7e[_0x155c16(0xa9)][_0x155c16(0xad)]),'disabled$':_0x32fd5a[_0x155c16(0xac)](_0x4612f5,{'workbookTypes':[_0x41a864['WorkbookExportPermission']]})};}function _0x5b309f(){const _0x2ac5ca=_0x3e9570;return{'id':_0x18ba58['id'],'type':_0x5a8adc[_0x2ac5ca(0x9d)][_0x2ac5ca(0x97)],'title':_0x2ac5ca(0x98),'icon':_0x2ac5ca(0xb5)};}function _0x366038(){const _0x13c21b=_0x3e9570;return{'id':_0x199b28['id'],'type':_0x5a8adc[_0x13c21b(0x9d)][_0x13c21b(0x97)],'title':_0x13c21b(0xa7),'icon':_0x13c21b(0xa8)};}const _0x3aee03={[_0x5a8adc[_0x3e9570(0x81)][_0x3e9570(0xa2)]]:{[_0x3ad69e]:{'order':0.3,'menuItemFactory':_0x44c5b1,[_0x18ba58['id']]:{'order':0x0,'menuItemFactory':_0x5b309f},[_0x199b28['id']]:{'order':0x1,'menuItemFactory':_0x366038}}}};var _0x51dbd4=Object[_0x3e9570(0xb8)],_0x3c71d3=(_0x3c9518,_0x566c33,_0x1fc55d,_0x1be149)=>{const _0x3a0a5e=_0x3e9570;for(var _0x4f5754=_0x1be149>0x1?void 0x0:_0x1be149?_0x51dbd4(_0x566c33,_0x1fc55d):_0x566c33,_0x381264=_0x3c9518[_0x3a0a5e(0xc0)]-0x1,_0x30ffc8;_0x381264>=0x0;_0x381264--)(_0x30ffc8=_0x3c9518[_0x381264])&&(_0x4f5754=_0x30ffc8(_0x4f5754)||_0x4f5754);return _0x4f5754;},_0x39c2c3=(_0x48514f,_0x142d85)=>(_0x267095,_0x548c52)=>_0x142d85(_0x267095,_0x548c52,_0x48514f);let _0x2e50d2=class extends _0x1f4a7e[_0x3e9570(0x9b)]{constructor(_0x16eec3,_0x3343de){const _0x4cb27a=_0x3e9570;super(),this['_commandService']=_0x16eec3,this['_menuManagerService']=_0x3343de,this[_0x4cb27a(0xba)](),this[_0x4cb27a(0xa0)]();}['_initCommands'](){const _0x8bcefd=_0x3e9570;[_0x18ba58,_0x199b28][_0x8bcefd(0x85)](_0x46fa5a=>{const _0x5244f2=_0x8bcefd;this[_0x5244f2(0xaf)](this[_0x5244f2(0x7d)][_0x5244f2(0x7c)](_0x46fa5a));});}[_0x3e9570(0xa0)](){this['_menuManagerService']['mergeMenu'](_0x3aee03);}};_0x2e50d2=_0x3c71d3([_0x39c2c3(0x0,_0x1f4a7e[_0x3e9570(0x87)]),_0x39c2c3(0x1,_0x5a8adc[_0x3e9570(0xb1)])],_0x2e50d2);var _0x3b8bd8=Object[_0x3e9570(0xae)],_0x4646fb=Object[_0x3e9570(0xb8)],_0x1ee6ce=(_0x7dbe3,_0x59b0bb,_0x3a0a0f)=>_0x59b0bb in _0x7dbe3?_0x3b8bd8(_0x7dbe3,_0x59b0bb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a0a0f}):_0x7dbe3[_0x59b0bb]=_0x3a0a0f,_0x2423de=(_0x153a52,_0x3ec096,_0x1fa59c,_0x295b24)=>{const _0x205d27=_0x3e9570;for(var _0x2ad356=_0x295b24>0x1?void 0x0:_0x295b24?_0x4646fb(_0x3ec096,_0x1fa59c):_0x3ec096,_0x3353ea=_0x153a52[_0x205d27(0xc0)]-0x1,_0x5794be;_0x3353ea>=0x0;_0x3353ea--)(_0x5794be=_0x153a52[_0x3353ea])&&(_0x2ad356=_0x5794be(_0x2ad356)||_0x2ad356);return _0x2ad356;},_0x35f17d=(_0x401052,_0x4c30c3)=>(_0x1657bb,_0x521757)=>_0x4c30c3(_0x1657bb,_0x521757,_0x401052),_0x23cf16=(_0x4974ca,_0x28f104,_0x46f860)=>_0x1ee6ce(_0x4974ca,typeof _0x28f104!='symbol'?_0x28f104+'':_0x28f104,_0x46f860);const _0x4f4d41=_0x3e9570(0xb4);_0x1b13db[_0x3e9570(0x8b)]=class extends _0x1f4a7e[_0x3e9570(0x82)]{constructor(_0x82d263=_0xb55b37,_0x187906,_0xb2ed9){const _0x35806e=_0x3e9570;super(),this[_0x35806e(0x92)]=_0x82d263,this[_0x35806e(0xc1)]=_0x187906,this['_configService']=_0xb2ed9;const {menu:_0x13672e,..._0x21dab0}=_0x1f4a7e[_0x35806e(0xbe)]({},_0xb55b37,this['_config']);_0x13672e&&this['_configService'][_0x35806e(0x9a)]('menu',_0x13672e,{'merge':!0x0}),this[_0x35806e(0x83)][_0x35806e(0x9a)](_0x2cbfc8,_0x21dab0);}[_0x3e9570(0xc7)](){const _0x298ac4=_0x3e9570;[[_0x2e50d2]][_0x298ac4(0x85)](_0x103556=>this[_0x298ac4(0xc1)][_0x298ac4(0xc3)](_0x103556));}[_0x3e9570(0x9c)](){const _0x5254e4=_0x3e9570;this['_injector'][_0x5254e4(0xa4)](_0x2e50d2);}},_0x23cf16(_0x1b13db[_0x3e9570(0x8b)],_0x3e9570(0x8a),_0x4f4d41),_0x23cf16(_0x1b13db[_0x3e9570(0x8b)],_0x3e9570(0x95),_0x1f4a7e[_0x3e9570(0xa9)]['UNIVER_SHEET']),_0x1b13db[_0x3e9570(0x8b)]=_0x2423de([_0x1f4a7e[_0x3e9570(0x8d)](_0x2ea75f['UniverExchangeClientPlugin']),_0x35f17d(0x1,_0x1f4a7e[_0x3e9570(0xc5)](_0x1f4a7e[_0x3e9570(0xc6)])),_0x35f17d(0x2,_0x1f4a7e[_0x3e9570(0x7e)])],_0x1b13db[_0x3e9570(0x8b)]),_0x1b13db[_0x3e9570(0xb0)]=_0x199b28,_0x1b13db['ImportXLSXOperation']=_0x18ba58,Object['defineProperty'](_0x1b13db,Symbol[_0x3e9570(0xb2)],{'value':_0x3e9570(0x8c)});}));function _0x33ea(_0x348b73,_0x2b00b2){_0x348b73=_0x348b73-0x7c;const _0x10d910=_0x10d9();let _0x33eaef=_0x10d910[_0x348b73];return _0x33eaef;}function _0x10d9(){const _0xfbed85=['function','length','_injector','1023292GjvwEl','add','@univerjs/core','Inject','Injector','onStarting','1597704omnjrY','506798sfxrVq','registerCommand','_commandService','IConfigService','UniverCore','UniverProExchangeClient','RibbonStartGroup','Plugin','_configService','UniverUi','forEach','search','ICommandService','OPERATION','exchange-client.operation.import-xlsx','pluginName','UniverSheetsExchangeClientPlugin','Module','DependentOn','CommandType','exchange.file','SUBITEMS','exportXLSXByUnitId','_config','199625MDnzzu','IExchangeOperateService','type','DirectExportIcon','BUTTON','exchange.upload','47480YbikgS','setConfig','Disposable','onReady','MenuItemType','48YkOqoJ','unit','_initMenus','2754CBkjPK','OTHERS','importXLSXToSnapshot','get','amd','sheets-exchange-client.operation.exchange','exchange.download','ExportIcon','UniverInstanceType','exchange-client.operation.export-xlsx','@univerjs/sheets-ui','getCurrentRangeDisable$','UNIVER_SHEET','defineProperty','disposeWithMe','ExportXLSXOperation','IMenuManagerService','toStringTag','exports','SHEET_EXCHANGE_CLIENT_PLUGIN','FolderIcon','2846304ujaZEF','@univerjs/ui','getOwnPropertyDescriptor','40YRNRLQ','_initCommands','sheets-exchange-client.config','1176364UFqouA','UniverProSheetsExchangeClient','merge'];_0x10d9=function(){return _0xfbed85;};return _0x10d9();}
1
+ (function(_0x48880d,_0x179fb2){const _0x4f3863=_0xd723,_0x1412a9=_0x48880d();while(!![]){try{const _0x30c6b9=parseInt(_0x4f3863(0x1c8))/0x1+-parseInt(_0x4f3863(0x1d3))/0x2+parseInt(_0x4f3863(0x1fc))/0x3*(-parseInt(_0x4f3863(0x1fd))/0x4)+parseInt(_0x4f3863(0x200))/0x5*(parseInt(_0x4f3863(0x1e5))/0x6)+parseInt(_0x4f3863(0x1ce))/0x7+parseInt(_0x4f3863(0x209))/0x8*(parseInt(_0x4f3863(0x1de))/0x9)+-parseInt(_0x4f3863(0x207))/0xa;if(_0x30c6b9===_0x179fb2)break;else _0x1412a9['push'](_0x1412a9['shift']());}catch(_0x299089){_0x1412a9['push'](_0x1412a9['shift']());}}}(_0x5d1b,0x8b9a5),function(_0x1e1c24,_0x5df32f){const _0x4ff20d=_0xd723;typeof exports==_0x4ff20d(0x1e8)&&typeof module<'u'?_0x5df32f(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x4ff20d(0x1e1)&&define[_0x4ff20d(0x208)]?define(['exports','@univerjs-pro/exchange-client',_0x4ff20d(0x1d2),_0x4ff20d(0x1e3),_0x4ff20d(0x1fa),'@univerjs/sheets-ui'],_0x5df32f):(_0x1e1c24=typeof globalThis<'u'?globalThis:_0x1e1c24||self,_0x5df32f(_0x1e1c24['UniverProSheetsExchangeClient']={},_0x1e1c24[_0x4ff20d(0x1c6)],_0x1e1c24['UniverCore'],_0x1e1c24[_0x4ff20d(0x1ec)],_0x1e1c24[_0x4ff20d(0x1d8)],_0x1e1c24[_0x4ff20d(0x1ff)]));}(this,function(_0x2e0c38,_0x151fcb,_0x45366e,_0x5f0a57,_0x3feae2,_0x358c05){'use strict';const _0x374788=_0xd723;const _0x512b5a={'id':'exchange-client.operation.import-xlsx','type':_0x45366e[_0x374788(0x1d1)][_0x374788(0x1f6)],'handler':async _0x599437=>{const _0x430e2c=_0x374788,_0x2f9d2f=_0x599437[_0x430e2c(0x1f4)](_0x151fcb[_0x430e2c(0x1e9)]);return new URLSearchParams(location['search'])[_0x430e2c(0x1f4)](_0x430e2c(0x1c5))?_0x2f9d2f[_0x430e2c(0x1d6)]():_0x2f9d2f[_0x430e2c(0x1da)](),!0x0;}},_0x53d88f={'id':_0x374788(0x1f1),'type':_0x45366e['CommandType']['OPERATION'],'handler':async _0xa027c9=>{const _0x2d5334=_0x374788,_0x907124=_0xa027c9[_0x2d5334(0x1f4)](_0x151fcb[_0x2d5334(0x1e9)]);return new URLSearchParams(location[_0x2d5334(0x1d0)])[_0x2d5334(0x1f4)](_0x2d5334(0x1c5))?_0x907124[_0x2d5334(0x1e2)]():_0x907124['exportXLSXBySnapshot'](),!0x0;}},_0x4bccb1=_0x374788(0x1cb),_0x1f9d09={},_0x280abd=_0x374788(0x1d9);function _0x5e8c75(_0x20e57b){const _0x177fe0=_0x374788;return{'id':_0x280abd,'type':_0x5f0a57['MenuItemType']['SUBITEMS'],'icon':_0x177fe0(0x1e6),'tooltip':_0x177fe0(0x1ca),'hidden$':_0x5f0a57[_0x177fe0(0x1f5)](_0x20e57b,_0x45366e['UniverInstanceType'][_0x177fe0(0x1c9)]),'disabled$':_0x358c05[_0x177fe0(0x1d4)](_0x20e57b,{'workbookTypes':[_0x3feae2['WorkbookExportPermission']]})};}function _0x1746dc(){const _0x255277=_0x374788;return{'id':_0x512b5a['id'],'type':_0x5f0a57[_0x255277(0x1d7)][_0x255277(0x1f0)],'title':_0x255277(0x1dd),'icon':_0x255277(0x202)};}function _0xc6d318(){const _0x38f5c5=_0x374788;return{'id':_0x53d88f['id'],'type':_0x5f0a57['MenuItemType']['BUTTON'],'title':'exchange.download','icon':_0x38f5c5(0x1cc)};}const _0x3c8ce3={[_0x5f0a57[_0x374788(0x203)][_0x374788(0x201)]]:{[_0x280abd]:{'order':0.3,'menuItemFactory':_0x5e8c75,[_0x512b5a['id']]:{'order':0x0,'menuItemFactory':_0x1746dc},[_0x53d88f['id']]:{'order':0x1,'menuItemFactory':_0xc6d318}}}};var _0x24b212=Object[_0x374788(0x1ee)],_0x57cac2=(_0x407e8c,_0x37022b,_0x3dc08e,_0xb79653)=>{for(var _0x5143b6=_0xb79653>0x1?void 0x0:_0xb79653?_0x24b212(_0x37022b,_0x3dc08e):_0x37022b,_0x48238b=_0x407e8c['length']-0x1,_0x5328fd;_0x48238b>=0x0;_0x48238b--)(_0x5328fd=_0x407e8c[_0x48238b])&&(_0x5143b6=_0x5328fd(_0x5143b6)||_0x5143b6);return _0x5143b6;},_0x3fa447=(_0x1f5525,_0x393480)=>(_0x7acf58,_0x828d6)=>_0x393480(_0x7acf58,_0x828d6,_0x1f5525);let _0x47860c=class extends _0x45366e[_0x374788(0x1db)]{constructor(_0x2a1e6a,_0x3511de){const _0x25a992=_0x374788;super(),this[_0x25a992(0x1e7)]=_0x2a1e6a,this[_0x25a992(0x1c4)]=_0x3511de,this['_initCommands'](),this['_initMenus']();}[_0x374788(0x1eb)](){[_0x512b5a,_0x53d88f]['forEach'](_0x4d97bb=>{const _0x880c52=_0xd723;this[_0x880c52(0x1fb)](this[_0x880c52(0x1e7)]['registerCommand'](_0x4d97bb));});}['_initMenus'](){const _0x106da9=_0x374788;this['_menuManagerService'][_0x106da9(0x1e0)](_0x3c8ce3);}};_0x47860c=_0x57cac2([_0x3fa447(0x0,_0x45366e[_0x374788(0x1f9)]),_0x3fa447(0x1,_0x5f0a57[_0x374788(0x204)])],_0x47860c);var _0x375d19=Object[_0x374788(0x1c2)],_0x1cba19=Object[_0x374788(0x1ee)],_0x572c28=(_0x4bb0f2,_0x415e9f,_0x15e1a8)=>_0x415e9f in _0x4bb0f2?_0x375d19(_0x4bb0f2,_0x415e9f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x15e1a8}):_0x4bb0f2[_0x415e9f]=_0x15e1a8,_0xe121b4=(_0x177f44,_0x49d2ba,_0x3fc104,_0x499fcb)=>{const _0x21c633=_0x374788;for(var _0x3a5545=_0x499fcb>0x1?void 0x0:_0x499fcb?_0x1cba19(_0x49d2ba,_0x3fc104):_0x49d2ba,_0x4730db=_0x177f44[_0x21c633(0x1ef)]-0x1,_0x261bca;_0x4730db>=0x0;_0x4730db--)(_0x261bca=_0x177f44[_0x4730db])&&(_0x3a5545=_0x261bca(_0x3a5545)||_0x3a5545);return _0x3a5545;},_0x1d1dd9=(_0x3d6afa,_0x58e736)=>(_0x202160,_0x550134)=>_0x58e736(_0x202160,_0x550134,_0x3d6afa),_0x22b271=(_0x147c10,_0x3cc77a,_0x13b3d1)=>_0x572c28(_0x147c10,typeof _0x3cc77a!='symbol'?_0x3cc77a+'':_0x3cc77a,_0x13b3d1);const _0x3d0e9b='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x2e0c38[_0x374788(0x1df)]=class extends _0x45366e[_0x374788(0x1e4)]{constructor(_0xa967eb=_0x1f9d09,_0x32c003,_0x2f9133){const _0x37bb7f=_0x374788;super(),this[_0x37bb7f(0x205)]=_0xa967eb,this[_0x37bb7f(0x1dc)]=_0x32c003,this[_0x37bb7f(0x1f7)]=_0x2f9133;const {menu:_0x1a9d9c,..._0x2f03e0}=_0x45366e['merge']({},_0x1f9d09,this[_0x37bb7f(0x205)]);_0x1a9d9c&&this[_0x37bb7f(0x1f7)][_0x37bb7f(0x1c3)](_0x37bb7f(0x1ed),_0x1a9d9c,{'merge':!0x0}),this[_0x37bb7f(0x1f7)][_0x37bb7f(0x1c3)](_0x4bccb1,_0x2f03e0);}[_0x374788(0x1f3)](){const _0x233c00=_0x374788;[[_0x47860c]][_0x233c00(0x1c7)](_0x1974f0=>this[_0x233c00(0x1dc)]['add'](_0x1974f0));}[_0x374788(0x1f8)](){const _0x51c8ed=_0x374788;this['_injector'][_0x51c8ed(0x1f4)](_0x47860c);}},_0x22b271(_0x2e0c38[_0x374788(0x1df)],'pluginName',_0x3d0e9b),_0x22b271(_0x2e0c38['UniverSheetsExchangeClientPlugin'],'type',_0x45366e[_0x374788(0x1ea)][_0x374788(0x1c9)]),_0x2e0c38['UniverSheetsExchangeClientPlugin']=_0xe121b4([_0x45366e[_0x374788(0x1d5)](_0x151fcb[_0x374788(0x1fe)]),_0x1d1dd9(0x1,_0x45366e[_0x374788(0x1cf)](_0x45366e[_0x374788(0x1cd)])),_0x1d1dd9(0x2,_0x45366e[_0x374788(0x206)])],_0x2e0c38[_0x374788(0x1df)]),_0x2e0c38['ExportXLSXOperation']=_0x53d88f,_0x2e0c38['ImportXLSXOperation']=_0x512b5a,Object[_0x374788(0x1c2)](_0x2e0c38,Symbol[_0x374788(0x1f2)],{'value':'Module'});}));function _0xd723(_0x4d117e,_0x2a8ad1){_0x4d117e=_0x4d117e-0x1c2;const _0x5d1bf6=_0x5d1b();let _0xd723ae=_0x5d1bf6[_0x4d117e];return _0xd723ae;}function _0x5d1b(){const _0x18cae8=['amd','24kBASnH','defineProperty','setConfig','_menuManagerService','unit','UniverProExchangeClient','forEach','13687QISqVw','UNIVER_SHEET','exchange.file','sheets-exchange-client.config','ExportIcon','Injector','739200CzOqaf','Inject','search','CommandType','@univerjs/core','1251862dFgMIi','getCurrentRangeDisable$','DependentOn','importXLSXToUnitId','MenuItemType','UniverSheets','sheets-exchange-client.operation.exchange','importXLSXToSnapshot','Disposable','_injector','exchange.upload','1295352AXbuBT','UniverSheetsExchangeClientPlugin','mergeMenu','function','exportXLSXByUnitId','@univerjs/ui','Plugin','318wtKAkl','DirectExportIcon','_commandService','object','IExchangeOperateService','UniverInstanceType','_initCommands','UniverUi','menu','getOwnPropertyDescriptor','length','BUTTON','exchange-client.operation.export-xlsx','toStringTag','onStarting','get','getMenuHiddenObservable','OPERATION','_configService','onReady','ICommandService','@univerjs/sheets','disposeWithMe','563067rTehib','4vLEGXz','UniverExchangeClientPlugin','UniverSheetsUi','101755Rluchy','OTHERS','FolderIcon','RibbonStartGroup','IMenuManagerService','_config','IConfigService','2442410fSsCWt'];_0x5d1b=function(){return _0x18cae8;};return _0x5d1b();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.13.0-insiders.20251218-2062647",
3
+ "version": "0.13.0-insiders.20251223-857805c",
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.13.0-insiders.20251218-2062647",
46
- "@univerjs/core": "0.13.0-insiders.20251218-2062647",
47
- "@univerjs/sheets-ui": "0.13.0-insiders.20251218-2062647",
48
- "@univerjs/ui": "0.13.0-insiders.20251218-2062647",
49
- "@univerjs/sheets": "0.13.0-insiders.20251218-2062647"
45
+ "@univerjs-pro/exchange-client": "0.13.0-insiders.20251223-857805c",
46
+ "@univerjs/sheets": "0.13.0-insiders.20251223-857805c",
47
+ "@univerjs/core": "0.13.0-insiders.20251223-857805c",
48
+ "@univerjs/ui": "0.13.0-insiders.20251223-857805c",
49
+ "@univerjs/sheets-ui": "0.13.0-insiders.20251223-857805c"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",