@univerjs-pro/docs-exchange-client 0.2.13 → 0.2.14

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 _0x409c64=_0x53bb;(function(_0x2209d7,_0x41f6a9){const _0x2920f1=_0x53bb,_0x3fbf68=_0x2209d7();while(!![]){try{const _0x40d711=-parseInt(_0x2920f1(0xed))/0x1*(-parseInt(_0x2920f1(0x11a))/0x2)+parseInt(_0x2920f1(0xef))/0x3+parseInt(_0x2920f1(0x11f))/0x4+parseInt(_0x2920f1(0xfd))/0x5*(parseInt(_0x2920f1(0xe9))/0x6)+-parseInt(_0x2920f1(0x100))/0x7*(parseInt(_0x2920f1(0x113))/0x8)+-parseInt(_0x2920f1(0x124))/0x9*(parseInt(_0x2920f1(0x106))/0xa)+-parseInt(_0x2920f1(0x112))/0xb*(parseInt(_0x2920f1(0x104))/0xc);if(_0x40d711===_0x41f6a9)break;else _0x3fbf68['push'](_0x3fbf68['shift']());}catch(_0xa0a4d3){_0x3fbf68['push'](_0x3fbf68['shift']());}}}(_0xe9df,0x6fd02));function _0xe9df(){const _0x4dd4c8=['Module','410788rQvGUL','exchange-client.operation.import-docx','exportDOCXByUnitId','get','12duBZrb','Disposable','10DAYtcR','exchange.download','onReady','type','ICommandService','exchange-client.operation.export-docx','BUTTON','forEach','RibbonStartGroup','LifecycleStages','_initCommands','_initMenus','2399507omiKkK','16TZOTsB','CommandType','Ready','defineProperty','docs-exchange-client.config','MenuItemType','UNIVER_DOC','432526dpbCdo','@univerjs-pro/exchange-client','initialize','toStringTag','registerCommand','2764388FEpuWG','@univerjs/core','mergeMenu','menu','OPERATION','8067366ZieweC','FolderSingle','SUBITEMS','exchange.upload','Plugin','UniverDocsExchangeClientPlugin','6SlESSC','getOwnPropertyDescriptor','_menuManagerService','UniverInstanceType','1RMYXtp','Injector','465126vxnkvO','ImportDOCXOperation','IMenuManagerService','exchange.file','setConfig','IConfigService','_injector','_config','getMenuHiddenObservable','DependentOn','pluginName','disposeWithMe','_configService','importDOCXToUnitId','3137315tvqPpl','length'];_0xe9df=function(){return _0x4dd4c8;};return _0xe9df();}Object['defineProperty'](exports,Symbol[_0x409c64(0x11d)],{'value':_0x409c64(0xff)});const o=require(_0x409c64(0x120)),g=require(_0x409c64(0x11b)),s=require('@univerjs/ui'),u={'id':_0x409c64(0x101),'type':o[_0x409c64(0x114)][_0x409c64(0x123)],'handler':async _0x5ee5f0=>(_0x5ee5f0[_0x409c64(0x103)](g['IExchangeOperateService'])[_0x409c64(0xfc)](),!0x0)},l={'id':_0x409c64(0x10b),'type':o[_0x409c64(0x114)][_0x409c64(0x123)],'handler':async _0x3d851c=>(_0x3d851c[_0x409c64(0x103)](g['IExchangeOperateService'])[_0x409c64(0x102)](),!0x0)},_='docs-exchange-client.operation.exchange';function C(_0x222b72){const _0x350750=_0x409c64;return{'id':_,'type':s[_0x350750(0x118)][_0x350750(0x126)],'icon':'DirectExportSingle','tooltip':_0x350750(0xf2),'hidden$':s[_0x350750(0xf7)](_0x222b72,o['UniverInstanceType'][_0x350750(0x119)])};}function O(){const _0x13af04=_0x409c64;return{'id':u['id'],'type':s['MenuItemType'][_0x13af04(0x10c)],'title':_0x13af04(0x127),'icon':_0x13af04(0x125)};}function I(){const _0x17ef46=_0x409c64;return{'id':l['id'],'type':s['MenuItemType'][_0x17ef46(0x10c)],'title':_0x17ef46(0x107),'icon':'ExportSingle'};}const f={[s[_0x409c64(0x10e)]['FILE']]:{[_]:{'order':0x4,'menuItemFactory':C,[u['id']]:{'order':0x0,'menuItemFactory':O},[l['id']]:{'order':0x1,'menuItemFactory':I}}}};function _0x53bb(_0x2bb83e,_0x15f530){const _0xe9dfa9=_0xe9df();return _0x53bb=function(_0x53bb2f,_0x362777){_0x53bb2f=_0x53bb2f-0xe7;let _0x43ae5e=_0xe9dfa9[_0x53bb2f];return _0x43ae5e;},_0x53bb(_0x2bb83e,_0x15f530);}var E=Object[_0x409c64(0x116)],x=Object['getOwnPropertyDescriptor'],D=(_0x13919a,_0x292b97,_0x15d585,_0x312dfd)=>{const _0xbd89f2=_0x409c64;for(var _0x2ba5ca=_0x312dfd>0x1?void 0x0:_0x312dfd?x(_0x292b97,_0x15d585):_0x292b97,_0x577147=_0x13919a[_0xbd89f2(0xfe)]-0x1,_0x1698fb;_0x577147>=0x0;_0x577147--)(_0x1698fb=_0x13919a[_0x577147])&&(_0x2ba5ca=(_0x312dfd?_0x1698fb(_0x292b97,_0x15d585,_0x2ba5ca):_0x1698fb(_0x2ba5ca))||_0x2ba5ca);return _0x312dfd&&_0x2ba5ca&&E(_0x292b97,_0x15d585,_0x2ba5ca),_0x2ba5ca;},d=(_0x36e8c2,_0xe580de)=>(_0x2c55bc,_0x33c8b0)=>_0xe580de(_0x2c55bc,_0x33c8b0,_0x36e8c2);let p=class extends o[_0x409c64(0x105)]{constructor(_0x39f6b2,_0x1cffef){const _0x496daa=_0x409c64;super(),this['_commandService']=_0x39f6b2,this[_0x496daa(0xeb)]=_0x1cffef,this[_0x496daa(0x110)](),this[_0x496daa(0x111)]();}[_0x409c64(0x110)](){const _0x1a2cd3=_0x409c64;[u,l][_0x1a2cd3(0x10d)](_0x24eb8c=>{const _0x599d7d=_0x1a2cd3;this[_0x599d7d(0xfa)](this['_commandService'][_0x599d7d(0x11e)](_0x24eb8c));});}[_0x409c64(0x111)](){const _0x4b639c=_0x409c64;this[_0x4b639c(0xeb)][_0x4b639c(0x121)](f);}};p=D([o['OnLifecycle'](o[_0x409c64(0x10f)][_0x409c64(0x115)],p),d(0x0,o[_0x409c64(0x10a)]),d(0x1,s[_0x409c64(0xf1)])],p);const y=_0x409c64(0x117),P={};var h=Object['defineProperty'],S=Object[_0x409c64(0xea)],U=(_0x31028b,_0x1e181e,_0x5e567c)=>_0x1e181e in _0x31028b?h(_0x31028b,_0x1e181e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e567c}):_0x31028b[_0x1e181e]=_0x5e567c,T=(_0x47a959,_0x10aedb,_0x3ea7af,_0x1446af)=>{const _0x2d3540=_0x409c64;for(var _0x46cdee=_0x1446af>0x1?void 0x0:_0x1446af?S(_0x10aedb,_0x3ea7af):_0x10aedb,_0x47637c=_0x47a959[_0x2d3540(0xfe)]-0x1,_0x36011c;_0x47637c>=0x0;_0x47637c--)(_0x36011c=_0x47a959[_0x47637c])&&(_0x46cdee=(_0x1446af?_0x36011c(_0x10aedb,_0x3ea7af,_0x46cdee):_0x36011c(_0x46cdee))||_0x46cdee);return _0x1446af&&_0x46cdee&&h(_0x10aedb,_0x3ea7af,_0x46cdee),_0x46cdee;},m=(_0x28e8af,_0x5492c6)=>(_0x3cdd1d,_0x4815cb)=>_0x5492c6(_0x3cdd1d,_0x4815cb,_0x28e8af),v=(_0x39f90b,_0x1bd252,_0x1f79d4)=>U(_0x39f90b,typeof _0x1bd252!='symbol'?_0x1bd252+'':_0x1bd252,_0x1f79d4);const N='DOC_EXCHANGE_CLIENT_PLUGIN';exports[_0x409c64(0xe8)]=class extends o[_0x409c64(0xe7)]{constructor(_0x4842cd=P,_0x342310,_0x3fcd22){const _0x26c2a1=_0x409c64;super(),this[_0x26c2a1(0xf6)]=_0x4842cd,this['_injector']=_0x342310,this[_0x26c2a1(0xfb)]=_0x3fcd22;const {menu:_0x5e0f41,..._0x329df7}=this[_0x26c2a1(0xf6)];_0x5e0f41&&this[_0x26c2a1(0xfb)][_0x26c2a1(0xf3)](_0x26c2a1(0x122),_0x5e0f41,{'merge':!0x0}),this[_0x26c2a1(0xfb)][_0x26c2a1(0xf3)](y,_0x329df7);}[_0x409c64(0x11c)](){const _0x1c5063=_0x409c64;[[p]]['forEach'](_0x55031d=>this[_0x1c5063(0xf5)]['add'](_0x55031d));}[_0x409c64(0x108)](){const _0x19b957=_0x409c64;this[_0x19b957(0x11c)]();}},v(exports[_0x409c64(0xe8)],_0x409c64(0xf9),N),v(exports['UniverDocsExchangeClientPlugin'],_0x409c64(0x109),o[_0x409c64(0xec)][_0x409c64(0x119)]),exports[_0x409c64(0xe8)]=T([o[_0x409c64(0xf8)](g['UniverExchangeClientPlugin']),m(0x1,o['Inject'](o[_0x409c64(0xee)])),m(0x2,o[_0x409c64(0xf4)])],exports['UniverDocsExchangeClientPlugin']),exports['ExportDOCXOperation']=l,exports[_0x409c64(0xf0)]=u;
1
+ 'use strict';const _0x53b08e=_0x6c99;(function(_0x3c5d8e,_0x55a844){const _0x43b9de=_0x6c99,_0x471fb0=_0x3c5d8e();while(!![]){try{const _0x5c778d=-parseInt(_0x43b9de(0x1ef))/0x1*(-parseInt(_0x43b9de(0x21c))/0x2)+-parseInt(_0x43b9de(0x209))/0x3+parseInt(_0x43b9de(0x1f7))/0x4*(-parseInt(_0x43b9de(0x216))/0x5)+-parseInt(_0x43b9de(0x22c))/0x6*(-parseInt(_0x43b9de(0x20e))/0x7)+parseInt(_0x43b9de(0x213))/0x8*(parseInt(_0x43b9de(0x212))/0x9)+-parseInt(_0x43b9de(0x21b))/0xa*(parseInt(_0x43b9de(0x228))/0xb)+parseInt(_0x43b9de(0x20f))/0xc;if(_0x5c778d===_0x55a844)break;else _0x471fb0['push'](_0x471fb0['shift']());}catch(_0x10af0c){_0x471fb0['push'](_0x471fb0['shift']());}}}(_0x4fcf,0x21e1d));function _0x4fcf(){const _0x1294d6=['BUTTON','53955uinfjk','16Munynn','getMenuHiddenObservable','_commandService','5lbUGwq','OPERATION','IExchangeOperateService','MenuItemType','FILE','310kSeHeU','8874RVcjuw','UNIVER_DOC','exchange-client.operation.import-docx','length','DependentOn','@univerjs/core','UniverExchangeClientPlugin','IMenuManagerService','DirectExportSingle','IConfigService','_initMenus','FolderSingle','61292lowPKU','UniverInstanceType','docs-exchange-client.operation.exchange','get','5226wzemGw','toStringTag','Plugin','exchange.download','RibbonStartGroup','OnLifecycle','3bjqMdL','SUBITEMS','CommandType','_injector','Ready','exchange.file','ICommandService','setConfig','977612xeXZmr','Disposable','type','defineProperty','LifecycleStages','Inject','getOwnPropertyDescriptor','onReady','Injector','_configService','exchange.upload','initialize','_config','registerCommand','UniverDocsExchangeClientPlugin','forEach','ExportDOCXOperation','ImportDOCXOperation','344415ddmSwC','add','Module','_menuManagerService','@univerjs-pro/exchange-client','203bgiRQX','7441932hAztRF','docs-exchange-client.config'];_0x4fcf=function(){return _0x1294d6;};return _0x4fcf();}Object[_0x53b08e(0x1fa)](exports,Symbol[_0x53b08e(0x22d)],{'value':_0x53b08e(0x20b)});const o=require(_0x53b08e(0x221)),g=require(_0x53b08e(0x20d)),s=require('@univerjs/ui'),u={'id':_0x53b08e(0x21e),'type':o[_0x53b08e(0x1f1)][_0x53b08e(0x217)],'handler':async _0x2dbf81=>(_0x2dbf81['get'](g[_0x53b08e(0x218)])['importDOCXToUnitId'](),!0x0)},l={'id':'exchange-client.operation.export-docx','type':o[_0x53b08e(0x1f1)][_0x53b08e(0x217)],'handler':async _0x19f489=>(_0x19f489[_0x53b08e(0x22b)](g[_0x53b08e(0x218)])['exportDOCXByUnitId'](),!0x0)},_=_0x53b08e(0x22a);function C(_0x41dc8e){const _0x519edc=_0x53b08e;return{'id':_,'type':s['MenuItemType'][_0x519edc(0x1f0)],'icon':_0x519edc(0x224),'tooltip':_0x519edc(0x1f4),'hidden$':s[_0x519edc(0x214)](_0x41dc8e,o['UniverInstanceType'][_0x519edc(0x21d)])};}function O(){const _0x4d1959=_0x53b08e;return{'id':u['id'],'type':s['MenuItemType']['BUTTON'],'title':_0x4d1959(0x201),'icon':_0x4d1959(0x227)};}function I(){const _0x4e606e=_0x53b08e;return{'id':l['id'],'type':s[_0x4e606e(0x219)][_0x4e606e(0x211)],'title':_0x4e606e(0x1ec),'icon':'ExportSingle'};}const f={[s[_0x53b08e(0x1ed)][_0x53b08e(0x21a)]]:{[_]:{'order':0x4,'menuItemFactory':C,[u['id']]:{'order':0x0,'menuItemFactory':O},[l['id']]:{'order':0x1,'menuItemFactory':I}}}};var E=Object[_0x53b08e(0x1fa)],x=Object[_0x53b08e(0x1fd)],D=(_0x1194fa,_0x456561,_0x4320a8,_0x4d7d8b)=>{for(var _0x5499f9=_0x4d7d8b>0x1?void 0x0:_0x4d7d8b?x(_0x456561,_0x4320a8):_0x456561,_0x506997=_0x1194fa['length']-0x1,_0x94182;_0x506997>=0x0;_0x506997--)(_0x94182=_0x1194fa[_0x506997])&&(_0x5499f9=(_0x4d7d8b?_0x94182(_0x456561,_0x4320a8,_0x5499f9):_0x94182(_0x5499f9))||_0x5499f9);return _0x4d7d8b&&_0x5499f9&&E(_0x456561,_0x4320a8,_0x5499f9),_0x5499f9;},d=(_0x12612f,_0x358591)=>(_0x43ee14,_0x91e2d2)=>_0x358591(_0x43ee14,_0x91e2d2,_0x12612f);function _0x6c99(_0x2d6e81,_0x2eee6e){const _0x4fcf31=_0x4fcf();return _0x6c99=function(_0x6c99b2,_0x5c8ef1){_0x6c99b2=_0x6c99b2-0x1eb;let _0x57c87e=_0x4fcf31[_0x6c99b2];return _0x57c87e;},_0x6c99(_0x2d6e81,_0x2eee6e);}let p=class extends o[_0x53b08e(0x1f8)]{constructor(_0x1d7909,_0x37af09){const _0x4f779c=_0x53b08e;super(),this[_0x4f779c(0x215)]=_0x1d7909,this[_0x4f779c(0x20c)]=_0x37af09,this['_initCommands'](),this[_0x4f779c(0x226)]();}['_initCommands'](){const _0x50ca7c=_0x53b08e;[u,l][_0x50ca7c(0x206)](_0x15361b=>{const _0x345e72=_0x50ca7c;this['disposeWithMe'](this[_0x345e72(0x215)][_0x345e72(0x204)](_0x15361b));});}[_0x53b08e(0x226)](){this['_menuManagerService']['mergeMenu'](f);}};p=D([o[_0x53b08e(0x1ee)](o[_0x53b08e(0x1fb)][_0x53b08e(0x1f3)],p),d(0x0,o[_0x53b08e(0x1f5)]),d(0x1,s[_0x53b08e(0x223)])],p);const y=_0x53b08e(0x210),P={};var h=Object[_0x53b08e(0x1fa)],S=Object[_0x53b08e(0x1fd)],U=(_0x20621f,_0x4d61cd,_0x7aea03)=>_0x4d61cd in _0x20621f?h(_0x20621f,_0x4d61cd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x7aea03}):_0x20621f[_0x4d61cd]=_0x7aea03,T=(_0x453e24,_0x4f5340,_0x3a27e0,_0x4cfb39)=>{const _0x170cda=_0x53b08e;for(var _0x4dcd4c=_0x4cfb39>0x1?void 0x0:_0x4cfb39?S(_0x4f5340,_0x3a27e0):_0x4f5340,_0x3a4369=_0x453e24[_0x170cda(0x21f)]-0x1,_0x1acd4d;_0x3a4369>=0x0;_0x3a4369--)(_0x1acd4d=_0x453e24[_0x3a4369])&&(_0x4dcd4c=(_0x4cfb39?_0x1acd4d(_0x4f5340,_0x3a27e0,_0x4dcd4c):_0x1acd4d(_0x4dcd4c))||_0x4dcd4c);return _0x4cfb39&&_0x4dcd4c&&h(_0x4f5340,_0x3a27e0,_0x4dcd4c),_0x4dcd4c;},m=(_0x523325,_0x286933)=>(_0x5d065a,_0x280260)=>_0x286933(_0x5d065a,_0x280260,_0x523325),v=(_0x73550a,_0x5558ed,_0x1427b1)=>U(_0x73550a,typeof _0x5558ed!='symbol'?_0x5558ed+'':_0x5558ed,_0x1427b1);const N='DOC_EXCHANGE_CLIENT_PLUGIN';exports[_0x53b08e(0x205)]=class extends o[_0x53b08e(0x1eb)]{constructor(_0x56088b=P,_0x289d43,_0x3c147b){const _0x64582f=_0x53b08e;super(),this[_0x64582f(0x203)]=_0x56088b,this['_injector']=_0x289d43,this[_0x64582f(0x200)]=_0x3c147b;const {menu:_0x5bfd5b,..._0x3b75eb}=this[_0x64582f(0x203)];_0x5bfd5b&&this['_configService']['setConfig']('menu',_0x5bfd5b,{'merge':!0x0}),this[_0x64582f(0x200)][_0x64582f(0x1f6)](y,_0x3b75eb);}[_0x53b08e(0x202)](){const _0x1ce847=_0x53b08e;[[p]][_0x1ce847(0x206)](_0x21c6ca=>this[_0x1ce847(0x1f2)][_0x1ce847(0x20a)](_0x21c6ca));}[_0x53b08e(0x1fe)](){const _0x590968=_0x53b08e;this[_0x590968(0x202)]();}},v(exports[_0x53b08e(0x205)],'pluginName',N),v(exports[_0x53b08e(0x205)],_0x53b08e(0x1f9),o[_0x53b08e(0x229)]['UNIVER_DOC']),exports[_0x53b08e(0x205)]=T([o[_0x53b08e(0x220)](g[_0x53b08e(0x222)]),m(0x1,o[_0x53b08e(0x1fc)](o[_0x53b08e(0x1ff)])),m(0x2,o[_0x53b08e(0x225)])],exports[_0x53b08e(0x205)]),exports[_0x53b08e(0x207)]=l,exports[_0x53b08e(0x208)]=u;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4435a0=_0x2aad;function _0x5677(){const _0x5a1263=['pluginName','exchange-client.operation.export-docx','Ready','symbol','_config','DOC_EXCHANGE_CLIENT_PLUGIN','358WPDjdH','docs-exchange-client.config','onReady','exchange.download','604iHWghp','_initMenus','FolderSingle','581XqFzJc','FILE','defineProperty','exchange.upload','length','BUTTON','importDOCXToUnitId','1316034iQrvfK','SUBITEMS','_initCommands','getOwnPropertyDescriptor','_menuManagerService','ExportSingle','_commandService','_configService','get','_injector','exchange.file','775092lOYFnY','initialize','1915KxLMPu','2653820lGEJSH','setConfig','DirectExportSingle','registerCommand','type','65769OKBwbq','1828utcNig','25736QmJPuZ','add','UNIVER_DOC','disposeWithMe','exportDOCXByUnitId','forEach','OPERATION'];_0x5677=function(){return _0x5a1263;};return _0x5677();}(function(_0x341a0e,_0x2bbd56){const _0x213558=_0x2aad,_0x3df9ae=_0x341a0e();while(!![]){try{const _0x2384aa=-parseInt(_0x213558(0x1f6))/0x1*(parseInt(_0x213558(0x1f2))/0x2)+parseInt(_0x213558(0x1e3))/0x3+-parseInt(_0x213558(0x1e4))/0x4*(parseInt(_0x213558(0x1dd))/0x5)+parseInt(_0x213558(0x1db))/0x6+-parseInt(_0x213558(0x1f9))/0x7*(-parseInt(_0x213558(0x1e5))/0x8)+-parseInt(_0x213558(0x1d0))/0x9+parseInt(_0x213558(0x1de))/0xa;if(_0x2384aa===_0x2bbd56)break;else _0x3df9ae['push'](_0x3df9ae['shift']());}catch(_0x207ec1){_0x3df9ae['push'](_0x3df9ae['shift']());}}}(_0x5677,0x3e0ad));import{CommandType as _0x275069,UniverInstanceType as _0x3c205c,OnLifecycle as _0x11c9db,LifecycleStages as _0x5d1f64,Disposable as _0x93484f,ICommandService as _0x244c2c,DependentOn as _0x19e90a,Inject as _0x14d0d0,Injector as _0x17307f,Plugin as _0x473b6e,IConfigService as _0xd78ae3}from'@univerjs/core';import{IExchangeOperateService as _0x591837,UniverExchangeClientPlugin as _0x5332a6}from'@univerjs-pro/exchange-client';import{MenuItemType as _0x1ed95a,getMenuHiddenObservable as _0x59af1e,RibbonStartGroup as _0xc9a05c,IMenuManagerService as _0x9ff945}from'@univerjs/ui';const d={'id':'exchange-client.operation.import-docx','type':_0x275069[_0x4435a0(0x1eb)],'handler':async _0x1c415c=>(_0x1c415c[_0x4435a0(0x1d8)](_0x591837)[_0x4435a0(0x1cf)](),!0x0)},l={'id':_0x4435a0(0x1ed),'type':_0x275069[_0x4435a0(0x1eb)],'handler':async _0xbb72f1=>(_0xbb72f1[_0x4435a0(0x1d8)](_0x591837)[_0x4435a0(0x1e9)](),!0x0)},f='docs-exchange-client.operation.exchange';function F(_0x495af8){const _0x3ba6e3=_0x4435a0;return{'id':f,'type':_0x1ed95a[_0x3ba6e3(0x1d1)],'icon':_0x3ba6e3(0x1e0),'tooltip':_0x3ba6e3(0x1da),'hidden$':_0x59af1e(_0x495af8,_0x3c205c[_0x3ba6e3(0x1e7)])};}function X(){const _0x1a3db6=_0x4435a0;return{'id':d['id'],'type':_0x1ed95a[_0x1a3db6(0x1ce)],'title':_0x1a3db6(0x1cc),'icon':_0x1a3db6(0x1f8)};}function _0x2aad(_0x4fd29a,_0x259a52){const _0x56775e=_0x5677();return _0x2aad=function(_0x2aadd5,_0xb8e56f){_0x2aadd5=_0x2aadd5-0x1cb;let _0x29466d=_0x56775e[_0x2aadd5];return _0x29466d;},_0x2aad(_0x4fd29a,_0x259a52);}function G(){const _0x41bb2b=_0x4435a0;return{'id':l['id'],'type':_0x1ed95a['BUTTON'],'title':_0x41bb2b(0x1f5),'icon':_0x41bb2b(0x1d5)};}const L={[_0xc9a05c[_0x4435a0(0x1fa)]]:{[f]:{'order':0x4,'menuItemFactory':F,[d['id']]:{'order':0x0,'menuItemFactory':X},[l['id']]:{'order':0x1,'menuItemFactory':G}}}};var R=Object[_0x4435a0(0x1cb)],j=Object[_0x4435a0(0x1d3)],w=(_0x23912d,_0x5492b5,_0x62da53,_0x398409)=>{for(var _0x3994bb=_0x398409>0x1?void 0x0:_0x398409?j(_0x5492b5,_0x62da53):_0x5492b5,_0x2a0d59=_0x23912d['length']-0x1,_0x1e4cd6;_0x2a0d59>=0x0;_0x2a0d59--)(_0x1e4cd6=_0x23912d[_0x2a0d59])&&(_0x3994bb=(_0x398409?_0x1e4cd6(_0x5492b5,_0x62da53,_0x3994bb):_0x1e4cd6(_0x3994bb))||_0x3994bb);return _0x398409&&_0x3994bb&&R(_0x5492b5,_0x62da53,_0x3994bb),_0x3994bb;},u=(_0x5bdf95,_0x1184f7)=>(_0x23c214,_0x287ff9)=>_0x1184f7(_0x23c214,_0x287ff9,_0x5bdf95);let a=class extends _0x93484f{constructor(_0x32e56d,_0x1c049d){const _0x2f494f=_0x4435a0;super(),this[_0x2f494f(0x1d6)]=_0x32e56d,this[_0x2f494f(0x1d4)]=_0x1c049d,this[_0x2f494f(0x1d2)](),this[_0x2f494f(0x1f7)]();}[_0x4435a0(0x1d2)](){const _0x658977=_0x4435a0;[d,l][_0x658977(0x1ea)](_0x3a162d=>{const _0x32cff9=_0x658977;this[_0x32cff9(0x1e8)](this[_0x32cff9(0x1d6)][_0x32cff9(0x1e1)](_0x3a162d));});}[_0x4435a0(0x1f7)](){const _0x375af1=_0x4435a0;this[_0x375af1(0x1d4)]['mergeMenu'](L);}};a=w([_0x11c9db(_0x5d1f64[_0x4435a0(0x1ee)],a),u(0x0,_0x244c2c),u(0x1,_0x9ff945)],a);const A=_0x4435a0(0x1f3),B={};var v=Object['defineProperty'],$=Object[_0x4435a0(0x1d3)],H=(_0x2731d5,_0xb9a2d,_0x445548)=>_0xb9a2d in _0x2731d5?v(_0x2731d5,_0xb9a2d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x445548}):_0x2731d5[_0xb9a2d]=_0x445548,z=(_0x5c4e28,_0x505edc,_0xeec63e,_0xa085e)=>{const _0x446ea1=_0x4435a0;for(var _0x321483=_0xa085e>0x1?void 0x0:_0xa085e?$(_0x505edc,_0xeec63e):_0x505edc,_0x891b13=_0x5c4e28[_0x446ea1(0x1cd)]-0x1,_0x4d9f29;_0x891b13>=0x0;_0x891b13--)(_0x4d9f29=_0x5c4e28[_0x891b13])&&(_0x321483=(_0xa085e?_0x4d9f29(_0x505edc,_0xeec63e,_0x321483):_0x4d9f29(_0x321483))||_0x321483);return _0xa085e&&_0x321483&&v(_0x505edc,_0xeec63e,_0x321483),_0x321483;},m=(_0x2627d6,_0x4c54e0)=>(_0x15257f,_0x4fd8a4)=>_0x4c54e0(_0x15257f,_0x4fd8a4,_0x2627d6),I=(_0x3785b9,_0x1d9aba,_0x43aa81)=>H(_0x3785b9,typeof _0x1d9aba!=_0x4435a0(0x1ef)?_0x1d9aba+'':_0x1d9aba,_0x43aa81);const V=_0x4435a0(0x1f1);let s=class extends _0x473b6e{constructor(_0x4b3fe3=B,_0x48495a,_0x1d4ff1){const _0xac9b2e=_0x4435a0;super(),this['_config']=_0x4b3fe3,this[_0xac9b2e(0x1d9)]=_0x48495a,this[_0xac9b2e(0x1d7)]=_0x1d4ff1;const {menu:_0x11f176,..._0x328643}=this[_0xac9b2e(0x1f0)];_0x11f176&&this[_0xac9b2e(0x1d7)][_0xac9b2e(0x1df)]('menu',_0x11f176,{'merge':!0x0}),this[_0xac9b2e(0x1d7)][_0xac9b2e(0x1df)](A,_0x328643);}[_0x4435a0(0x1dc)](){const _0x50615c=_0x4435a0;[[a]][_0x50615c(0x1ea)](_0x2457bb=>this[_0x50615c(0x1d9)][_0x50615c(0x1e6)](_0x2457bb));}[_0x4435a0(0x1f4)](){this['initialize']();}};I(s,_0x4435a0(0x1ec),V),I(s,_0x4435a0(0x1e2),_0x3c205c['UNIVER_DOC']),s=z([_0x19e90a(_0x5332a6),m(0x1,_0x14d0d0(_0x17307f)),m(0x2,_0xd78ae3)],s);export{l as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
1
+ const _0x46ec3f=_0x4c32;(function(_0x40cb16,_0x12cb52){const _0x3ab5a9=_0x4c32,_0x2d7296=_0x40cb16();while(!![]){try{const _0x5e2e70=-parseInt(_0x3ab5a9(0x1d4))/0x1+-parseInt(_0x3ab5a9(0x1d7))/0x2+parseInt(_0x3ab5a9(0x1c4))/0x3+parseInt(_0x3ab5a9(0x1b1))/0x4*(-parseInt(_0x3ab5a9(0x1bc))/0x5)+parseInt(_0x3ab5a9(0x1cd))/0x6*(-parseInt(_0x3ab5a9(0x1b0))/0x7)+parseInt(_0x3ab5a9(0x1bb))/0x8*(parseInt(_0x3ab5a9(0x1c7))/0x9)+parseInt(_0x3ab5a9(0x1c2))/0xa;if(_0x5e2e70===_0x12cb52)break;else _0x2d7296['push'](_0x2d7296['shift']());}catch(_0x52e40b){_0x2d7296['push'](_0x2d7296['shift']());}}}(_0x423f,0x5470c));import{CommandType as _0x228091,UniverInstanceType as _0x29880a,OnLifecycle as _0xd322ca,LifecycleStages as _0x49daae,Disposable as _0x196234,ICommandService as _0x51f856,DependentOn as _0x92b709,Inject as _0x5a90c4,Injector as _0xd50153,Plugin as _0x361982,IConfigService as _0x26c290}from'@univerjs/core';import{IExchangeOperateService as _0x3e8dad,UniverExchangeClientPlugin as _0xc174f8}from'@univerjs-pro/exchange-client';import{MenuItemType as _0x5d19d1,getMenuHiddenObservable as _0x2ad786,RibbonStartGroup as _0xdecc63,IMenuManagerService as _0x32adef}from'@univerjs/ui';const d={'id':_0x46ec3f(0x1c5),'type':_0x228091[_0x46ec3f(0x1cc)],'handler':async _0x5d6b5c=>(_0x5d6b5c['get'](_0x3e8dad)[_0x46ec3f(0x1d5)](),!0x0)},l={'id':_0x46ec3f(0x1ae),'type':_0x228091[_0x46ec3f(0x1cc)],'handler':async _0x4160be=>(_0x4160be[_0x46ec3f(0x1ad)](_0x3e8dad)['exportDOCXByUnitId'](),!0x0)},f='docs-exchange-client.operation.exchange';function F(_0x1f04f2){const _0x4abbac=_0x46ec3f;return{'id':f,'type':_0x5d19d1[_0x4abbac(0x1c3)],'icon':'DirectExportSingle','tooltip':_0x4abbac(0x1c1),'hidden$':_0x2ad786(_0x1f04f2,_0x29880a['UNIVER_DOC'])};}function X(){const _0x40212e=_0x46ec3f;return{'id':d['id'],'type':_0x5d19d1[_0x40212e(0x1b3)],'title':_0x40212e(0x1c0),'icon':_0x40212e(0x1ba)};}function G(){const _0x5b2f6a=_0x46ec3f;return{'id':l['id'],'type':_0x5d19d1[_0x5b2f6a(0x1b3)],'title':'exchange.download','icon':_0x5b2f6a(0x1c9)};}const L={[_0xdecc63[_0x46ec3f(0x1cf)]]:{[f]:{'order':0x4,'menuItemFactory':F,[d['id']]:{'order':0x0,'menuItemFactory':X},[l['id']]:{'order':0x1,'menuItemFactory':G}}}};function _0x4c32(_0x58f3f5,_0x39b41f){const _0x423fd1=_0x423f();return _0x4c32=function(_0x4c3272,_0x3e0f12){_0x4c3272=_0x4c3272-0x1ac;let _0x14c842=_0x423fd1[_0x4c3272];return _0x14c842;},_0x4c32(_0x58f3f5,_0x39b41f);}var R=Object[_0x46ec3f(0x1d2)],j=Object[_0x46ec3f(0x1bf)],w=(_0x314e92,_0x328a33,_0x30ec7a,_0x2c6e2d)=>{const _0x41ef3f=_0x46ec3f;for(var _0x5c00bd=_0x2c6e2d>0x1?void 0x0:_0x2c6e2d?j(_0x328a33,_0x30ec7a):_0x328a33,_0x93fd4b=_0x314e92[_0x41ef3f(0x1af)]-0x1,_0x592b9a;_0x93fd4b>=0x0;_0x93fd4b--)(_0x592b9a=_0x314e92[_0x93fd4b])&&(_0x5c00bd=(_0x2c6e2d?_0x592b9a(_0x328a33,_0x30ec7a,_0x5c00bd):_0x592b9a(_0x5c00bd))||_0x5c00bd);return _0x2c6e2d&&_0x5c00bd&&R(_0x328a33,_0x30ec7a,_0x5c00bd),_0x5c00bd;},u=(_0x580042,_0x3acf9d)=>(_0xa74de5,_0x4921b1)=>_0x3acf9d(_0xa74de5,_0x4921b1,_0x580042);let a=class extends _0x196234{constructor(_0x412c21,_0x42f01d){const _0x590353=_0x46ec3f;super(),this[_0x590353(0x1ca)]=_0x412c21,this['_menuManagerService']=_0x42f01d,this['_initCommands'](),this[_0x590353(0x1b2)]();}[_0x46ec3f(0x1c8)](){[d,l]['forEach'](_0xb5d207=>{const _0x5c5ca3=_0x4c32;this['disposeWithMe'](this['_commandService'][_0x5c5ca3(0x1b7)](_0xb5d207));});}[_0x46ec3f(0x1b2)](){const _0x888e9d=_0x46ec3f;this[_0x888e9d(0x1d3)][_0x888e9d(0x1d0)](L);}};a=w([_0xd322ca(_0x49daae[_0x46ec3f(0x1b4)],a),u(0x0,_0x51f856),u(0x1,_0x32adef)],a);const A=_0x46ec3f(0x1ce),B={};var v=Object[_0x46ec3f(0x1d2)],$=Object[_0x46ec3f(0x1bf)],H=(_0x571145,_0x679568,_0x4ddb7b)=>_0x679568 in _0x571145?v(_0x571145,_0x679568,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ddb7b}):_0x571145[_0x679568]=_0x4ddb7b,z=(_0xc707a8,_0x22e04b,_0x4f7b47,_0x21271d)=>{const _0x2995e5=_0x46ec3f;for(var _0x5cab69=_0x21271d>0x1?void 0x0:_0x21271d?$(_0x22e04b,_0x4f7b47):_0x22e04b,_0x6697ba=_0xc707a8[_0x2995e5(0x1af)]-0x1,_0x5f2e2c;_0x6697ba>=0x0;_0x6697ba--)(_0x5f2e2c=_0xc707a8[_0x6697ba])&&(_0x5cab69=(_0x21271d?_0x5f2e2c(_0x22e04b,_0x4f7b47,_0x5cab69):_0x5f2e2c(_0x5cab69))||_0x5cab69);return _0x21271d&&_0x5cab69&&v(_0x22e04b,_0x4f7b47,_0x5cab69),_0x5cab69;},m=(_0x52543b,_0x7f094f)=>(_0x5256e6,_0x3d95ec)=>_0x7f094f(_0x5256e6,_0x3d95ec,_0x52543b),I=(_0x5a8402,_0x5d90b9,_0x3e4584)=>H(_0x5a8402,typeof _0x5d90b9!=_0x46ec3f(0x1b6)?_0x5d90b9+'':_0x5d90b9,_0x3e4584);const V=_0x46ec3f(0x1b8);function _0x423f(){const _0xa8999e=['SUBITEMS','813951iIPLTc','exchange-client.operation.import-docx','initialize','9bnWqwl','_initCommands','ExportSingle','_commandService','_configService','OPERATION','95112ItFGuc','docs-exchange-client.config','FILE','mergeMenu','_injector','defineProperty','_menuManagerService','444326LAnoyX','importDOCXToUnitId','type','936906luimsE','pluginName','get','exchange-client.operation.export-docx','length','301OqxouX','604DVlakR','_initMenus','BUTTON','Ready','_config','symbol','registerCommand','DOC_EXCHANGE_CLIENT_PLUGIN','UNIVER_DOC','FolderSingle','2905592eUJepf','8285RODiZO','onReady','add','getOwnPropertyDescriptor','exchange.upload','exchange.file','15559740KHAqxd'];_0x423f=function(){return _0xa8999e;};return _0x423f();}let s=class extends _0x361982{constructor(_0x1b5bc7=B,_0xb3ebf2,_0x1cadc1){const _0x4d665c=_0x46ec3f;super(),this[_0x4d665c(0x1b5)]=_0x1b5bc7,this[_0x4d665c(0x1d1)]=_0xb3ebf2,this[_0x4d665c(0x1cb)]=_0x1cadc1;const {menu:_0x3e9f47,..._0x4e4373}=this['_config'];_0x3e9f47&&this['_configService']['setConfig']('menu',_0x3e9f47,{'merge':!0x0}),this[_0x4d665c(0x1cb)]['setConfig'](A,_0x4e4373);}['initialize'](){const _0x2e698c=_0x46ec3f;[[a]]['forEach'](_0x5d91dd=>this[_0x2e698c(0x1d1)][_0x2e698c(0x1be)](_0x5d91dd));}[_0x46ec3f(0x1bd)](){const _0x62e615=_0x46ec3f;this[_0x62e615(0x1c6)]();}};I(s,_0x46ec3f(0x1ac),V),I(s,_0x46ec3f(0x1d6),_0x29880a[_0x46ec3f(0x1b9)]),s=z([_0x92b709(_0xc174f8),m(0x1,_0x5a90c4(_0xd50153)),m(0x2,_0x26c290)],s);export{l as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x1cdc05,_0xef365e){const _0x1144aa=_0x4878,_0x222472=_0x1cdc05();while(!![]){try{const _0x34dcef=parseInt(_0x1144aa(0x17a))/0x1*(-parseInt(_0x1144aa(0x172))/0x2)+parseInt(_0x1144aa(0x19d))/0x3+-parseInt(_0x1144aa(0x19a))/0x4+-parseInt(_0x1144aa(0x196))/0x5+-parseInt(_0x1144aa(0x19b))/0x6+-parseInt(_0x1144aa(0x182))/0x7*(parseInt(_0x1144aa(0x19c))/0x8)+parseInt(_0x1144aa(0x16f))/0x9*(parseInt(_0x1144aa(0x18e))/0xa);if(_0x34dcef===_0xef365e)break;else _0x222472['push'](_0x222472['shift']());}catch(_0x4ac4d0){_0x222472['push'](_0x222472['shift']());}}}(_0x2f5c,0x9f8d3),function(_0x482fba,_0x1e7d9a){const _0x358072=_0x4878;typeof exports==_0x358072(0x17b)&&typeof module<'u'?_0x1e7d9a(exports,require(_0x358072(0x1a0)),require(_0x358072(0x18a)),require('@univerjs/ui')):typeof define==_0x358072(0x1a3)&&define[_0x358072(0x18c)]?define([_0x358072(0x18b),_0x358072(0x1a0),_0x358072(0x18a),_0x358072(0x176)],_0x1e7d9a):(_0x482fba=typeof globalThis<'u'?globalThis:_0x482fba||self,_0x1e7d9a(_0x482fba['UniverDocsExchangeClient']={},_0x482fba[_0x358072(0x17f)],_0x482fba[_0x358072(0x192)],_0x482fba[_0x358072(0x1ab)]));}(this,function(_0x583355,_0x117494,_0x4b144c,_0x390d0b){'use strict';const _0x15887a=_0x4878;const _0x9dc6db={'id':'exchange-client.operation.import-docx','type':_0x117494['CommandType'][_0x15887a(0x1a9)],'handler':async _0x2e2061=>(_0x2e2061['get'](_0x4b144c[_0x15887a(0x178)])[_0x15887a(0x18d)](),!0x0)},_0x5d7415={'id':_0x15887a(0x1a7),'type':_0x117494['CommandType'][_0x15887a(0x1a9)],'handler':async _0x36b4dc=>(_0x36b4dc[_0x15887a(0x193)](_0x4b144c[_0x15887a(0x178)])[_0x15887a(0x180)](),!0x0)},_0x56f6dc=_0x15887a(0x184);function _0x5847fa(_0x5ecdc0){const _0x296432=_0x15887a;return{'id':_0x56f6dc,'type':_0x390d0b[_0x296432(0x1a8)]['SUBITEMS'],'icon':'DirectExportSingle','tooltip':'exchange.file','hidden$':_0x390d0b[_0x296432(0x190)](_0x5ecdc0,_0x117494['UniverInstanceType']['UNIVER_DOC'])};}function _0x280aea(){const _0x1f9202=_0x15887a;return{'id':_0x9dc6db['id'],'type':_0x390d0b[_0x1f9202(0x1a8)][_0x1f9202(0x198)],'title':_0x1f9202(0x188),'icon':_0x1f9202(0x187)};}function _0x280447(){const _0x21eaf7=_0x15887a;return{'id':_0x5d7415['id'],'type':_0x390d0b[_0x21eaf7(0x1a8)][_0x21eaf7(0x198)],'title':_0x21eaf7(0x185),'icon':_0x21eaf7(0x175)};}const _0x217deb={[_0x390d0b['RibbonStartGroup'][_0x15887a(0x195)]]:{[_0x56f6dc]:{'order':0x4,'menuItemFactory':_0x5847fa,[_0x9dc6db['id']]:{'order':0x0,'menuItemFactory':_0x280aea},[_0x5d7415['id']]:{'order':0x1,'menuItemFactory':_0x280447}}}};var _0x584ad1=Object['defineProperty'],_0xc7e7a0=Object['getOwnPropertyDescriptor'],_0x16c246=(_0x3443fd,_0x33bb36,_0x22d267,_0x29d0e0)=>{for(var _0x9eea75=_0x29d0e0>0x1?void 0x0:_0x29d0e0?_0xc7e7a0(_0x33bb36,_0x22d267):_0x33bb36,_0x5a0e9a=_0x3443fd['length']-0x1,_0x356150;_0x5a0e9a>=0x0;_0x5a0e9a--)(_0x356150=_0x3443fd[_0x5a0e9a])&&(_0x9eea75=(_0x29d0e0?_0x356150(_0x33bb36,_0x22d267,_0x9eea75):_0x356150(_0x9eea75))||_0x9eea75);return _0x29d0e0&&_0x9eea75&&_0x584ad1(_0x33bb36,_0x22d267,_0x9eea75),_0x9eea75;},_0x2922f5=(_0x203d56,_0x10dff9)=>(_0x286376,_0x3501b5)=>_0x10dff9(_0x286376,_0x3501b5,_0x203d56);let _0x15f090=class extends _0x117494['Disposable']{constructor(_0x2b02fe,_0x1b49e9){const _0x40a025=_0x15887a;super(),this['_commandService']=_0x2b02fe,this[_0x40a025(0x177)]=_0x1b49e9,this[_0x40a025(0x186)](),this[_0x40a025(0x189)]();}['_initCommands'](){const _0x326e42=_0x15887a;[_0x9dc6db,_0x5d7415][_0x326e42(0x183)](_0x23ec52=>{const _0x44ee13=_0x326e42;this[_0x44ee13(0x1a1)](this[_0x44ee13(0x1ac)][_0x44ee13(0x194)](_0x23ec52));});}[_0x15887a(0x189)](){const _0x3eaf39=_0x15887a;this[_0x3eaf39(0x177)][_0x3eaf39(0x170)](_0x217deb);}};_0x15f090=_0x16c246([_0x117494[_0x15887a(0x1ad)](_0x117494[_0x15887a(0x173)]['Ready'],_0x15f090),_0x2922f5(0x0,_0x117494[_0x15887a(0x1aa)]),_0x2922f5(0x1,_0x390d0b['IMenuManagerService'])],_0x15f090);const _0x82d8f9=_0x15887a(0x1b0),_0x561914={};var _0x34fca1=Object[_0x15887a(0x19f)],_0x436d9b=Object['getOwnPropertyDescriptor'],_0x4656d7=(_0x4e18ee,_0x4e8cf5,_0x26a3e2)=>_0x4e8cf5 in _0x4e18ee?_0x34fca1(_0x4e18ee,_0x4e8cf5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26a3e2}):_0x4e18ee[_0x4e8cf5]=_0x26a3e2,_0x3bd73d=(_0xa28192,_0x121188,_0xfd7a82,_0x54a98a)=>{for(var _0x1ce375=_0x54a98a>0x1?void 0x0:_0x54a98a?_0x436d9b(_0x121188,_0xfd7a82):_0x121188,_0x1f6330=_0xa28192['length']-0x1,_0x463387;_0x1f6330>=0x0;_0x1f6330--)(_0x463387=_0xa28192[_0x1f6330])&&(_0x1ce375=(_0x54a98a?_0x463387(_0x121188,_0xfd7a82,_0x1ce375):_0x463387(_0x1ce375))||_0x1ce375);return _0x54a98a&&_0x1ce375&&_0x34fca1(_0x121188,_0xfd7a82,_0x1ce375),_0x1ce375;},_0xdccbf9=(_0x5f25dc,_0x1af478)=>(_0x34719b,_0x423c38)=>_0x1af478(_0x34719b,_0x423c38,_0x5f25dc),_0x577b67=(_0xde247f,_0x85d929,_0x4696e2)=>_0x4656d7(_0xde247f,typeof _0x85d929!=_0x15887a(0x1a5)?_0x85d929+'':_0x85d929,_0x4696e2);const _0x284a45='DOC_EXCHANGE_CLIENT_PLUGIN';_0x583355[_0x15887a(0x171)]=class extends _0x117494['Plugin']{constructor(_0x9d4e1=_0x561914,_0x21b5c8,_0x3eff0f){const _0x40bee5=_0x15887a;super(),this['_config']=_0x9d4e1,this['_injector']=_0x21b5c8,this[_0x40bee5(0x179)]=_0x3eff0f;const {menu:_0x53ffbd,..._0x1783cf}=this[_0x40bee5(0x197)];_0x53ffbd&&this[_0x40bee5(0x179)]['setConfig'](_0x40bee5(0x1a2),_0x53ffbd,{'merge':!0x0}),this['_configService']['setConfig'](_0x82d8f9,_0x1783cf);}[_0x15887a(0x18f)](){const _0x248b34=_0x15887a;[[_0x15f090]][_0x248b34(0x183)](_0x2262a9=>this[_0x248b34(0x1a6)][_0x248b34(0x191)](_0x2262a9));}[_0x15887a(0x17c)](){this['initialize']();}},_0x577b67(_0x583355[_0x15887a(0x171)],_0x15887a(0x17d),_0x284a45),_0x577b67(_0x583355[_0x15887a(0x171)],_0x15887a(0x1af),_0x117494[_0x15887a(0x199)][_0x15887a(0x1ae)]),_0x583355[_0x15887a(0x171)]=_0x3bd73d([_0x117494[_0x15887a(0x181)](_0x4b144c[_0x15887a(0x17e)]),_0xdccbf9(0x1,_0x117494[_0x15887a(0x19e)](_0x117494[_0x15887a(0x174)])),_0xdccbf9(0x2,_0x117494['IConfigService'])],_0x583355[_0x15887a(0x171)]),_0x583355[_0x15887a(0x1a4)]=_0x5d7415,_0x583355['ImportDOCXOperation']=_0x9dc6db,Object['defineProperty'](_0x583355,Symbol['toStringTag'],{'value':'Module'});}));function _0x4878(_0x57f875,_0x2b2fd2){const _0x2f5ce2=_0x2f5c();return _0x4878=function(_0x487826,_0x488917){_0x487826=_0x487826-0x16f;let _0x806197=_0x2f5ce2[_0x487826];return _0x806197;},_0x4878(_0x57f875,_0x2b2fd2);}function _0x2f5c(){const _0x3e1acd=['_initMenus','@univerjs-pro/exchange-client','exports','amd','importDOCXToUnitId','43455770nMviOg','initialize','getMenuHiddenObservable','add','UniverExchangeClient','get','registerCommand','FILE','4657360GymeTS','_config','BUTTON','UniverInstanceType','2496240MRlcaW','4885668UvpAKc','86168jDMdZB','1621125NgccNp','Inject','defineProperty','@univerjs/core','disposeWithMe','menu','function','ExportDOCXOperation','symbol','_injector','exchange-client.operation.export-docx','MenuItemType','OPERATION','ICommandService','UniverUi','_commandService','OnLifecycle','UNIVER_DOC','type','docs-exchange-client.config','9CzKgsD','mergeMenu','UniverDocsExchangeClientPlugin','2444IlLciu','LifecycleStages','Injector','ExportSingle','@univerjs/ui','_menuManagerService','IExchangeOperateService','_configService','634KwBHBh','object','onReady','pluginName','UniverExchangeClientPlugin','UniverCore','exportDOCXByUnitId','DependentOn','707eKRHpK','forEach','docs-exchange-client.operation.exchange','exchange.download','_initCommands','FolderSingle','exchange.upload'];_0x2f5c=function(){return _0x3e1acd;};return _0x2f5c();}
1
+ function _0x53a3(_0x1b87ee,_0x19d2ab){const _0x4f799e=_0x4f79();return _0x53a3=function(_0x53a3ae,_0x5caf70){_0x53a3ae=_0x53a3ae-0xfc;let _0x3ddb55=_0x4f799e[_0x53a3ae];return _0x3ddb55;},_0x53a3(_0x1b87ee,_0x19d2ab);}(function(_0x16dbca,_0x4bf9c2){const _0x4fb7c9=_0x53a3,_0x44e061=_0x16dbca();while(!![]){try{const _0x162e64=-parseInt(_0x4fb7c9(0x130))/0x1*(parseInt(_0x4fb7c9(0x118))/0x2)+-parseInt(_0x4fb7c9(0x137))/0x3*(-parseInt(_0x4fb7c9(0x147))/0x4)+-parseInt(_0x4fb7c9(0x106))/0x5*(parseInt(_0x4fb7c9(0x122))/0x6)+parseInt(_0x4fb7c9(0x142))/0x7*(parseInt(_0x4fb7c9(0x10b))/0x8)+parseInt(_0x4fb7c9(0x131))/0x9+parseInt(_0x4fb7c9(0x109))/0xa+-parseInt(_0x4fb7c9(0x108))/0xb*(parseInt(_0x4fb7c9(0x10e))/0xc);if(_0x162e64===_0x4bf9c2)break;else _0x44e061['push'](_0x44e061['shift']());}catch(_0x3645cc){_0x44e061['push'](_0x44e061['shift']());}}}(_0x4f79,0x84d1c),function(_0x3e0d0e,_0x3490e3){const _0x6b1ea6=_0x53a3;typeof exports==_0x6b1ea6(0x120)&&typeof module<'u'?_0x3490e3(exports,require(_0x6b1ea6(0x117)),require(_0x6b1ea6(0x11e)),require(_0x6b1ea6(0x145))):typeof define==_0x6b1ea6(0x111)&&define[_0x6b1ea6(0x128)]?define(['exports','@univerjs/core',_0x6b1ea6(0x11e),'@univerjs/ui'],_0x3490e3):(_0x3e0d0e=typeof globalThis<'u'?globalThis:_0x3e0d0e||self,_0x3490e3(_0x3e0d0e[_0x6b1ea6(0x12b)]={},_0x3e0d0e[_0x6b1ea6(0xff)],_0x3e0d0e[_0x6b1ea6(0x119)],_0x3e0d0e[_0x6b1ea6(0x121)]));}(this,function(_0x52f810,_0xe86ac4,_0x4ab549,_0x56211d){'use strict';const _0x406810=_0x53a3;const _0x54e5d8={'id':'exchange-client.operation.import-docx','type':_0xe86ac4[_0x406810(0x11b)][_0x406810(0x114)],'handler':async _0x112d70=>(_0x112d70[_0x406810(0x132)](_0x4ab549['IExchangeOperateService'])[_0x406810(0x144)](),!0x0)},_0x593045={'id':_0x406810(0xfe),'type':_0xe86ac4[_0x406810(0x11b)]['OPERATION'],'handler':async _0x4431e8=>(_0x4431e8[_0x406810(0x132)](_0x4ab549[_0x406810(0x12a)])[_0x406810(0x134)](),!0x0)},_0x1a8b85=_0x406810(0x13c);function _0x69a9e3(_0x2485fd){const _0x1a0029=_0x406810;return{'id':_0x1a8b85,'type':_0x56211d[_0x1a0029(0x11f)][_0x1a0029(0x135)],'icon':_0x1a0029(0x10d),'tooltip':_0x1a0029(0x133),'hidden$':_0x56211d[_0x1a0029(0x141)](_0x2485fd,_0xe86ac4[_0x1a0029(0x146)][_0x1a0029(0x140)])};}function _0x22daf8(){const _0xc3ea89=_0x406810;return{'id':_0x54e5d8['id'],'type':_0x56211d[_0xc3ea89(0x11f)][_0xc3ea89(0x103)],'title':_0xc3ea89(0xfc),'icon':_0xc3ea89(0x10c)};}function _0x4f193a(){const _0x4ebd69=_0x406810;return{'id':_0x593045['id'],'type':_0x56211d[_0x4ebd69(0x11f)][_0x4ebd69(0x103)],'title':_0x4ebd69(0x113),'icon':'ExportSingle'};}const _0x1c067e={[_0x56211d[_0x406810(0x12e)][_0x406810(0x11d)]]:{[_0x1a8b85]:{'order':0x4,'menuItemFactory':_0x69a9e3,[_0x54e5d8['id']]:{'order':0x0,'menuItemFactory':_0x22daf8},[_0x593045['id']]:{'order':0x1,'menuItemFactory':_0x4f193a}}}};var _0x448b35=Object[_0x406810(0x127)],_0x5cbde0=Object['getOwnPropertyDescriptor'],_0x47215f=(_0xd17088,_0x205024,_0x31468c,_0x24341b)=>{const _0x5caf5f=_0x406810;for(var _0x4625e3=_0x24341b>0x1?void 0x0:_0x24341b?_0x5cbde0(_0x205024,_0x31468c):_0x205024,_0x2896e9=_0xd17088[_0x5caf5f(0x110)]-0x1,_0x1f8594;_0x2896e9>=0x0;_0x2896e9--)(_0x1f8594=_0xd17088[_0x2896e9])&&(_0x4625e3=(_0x24341b?_0x1f8594(_0x205024,_0x31468c,_0x4625e3):_0x1f8594(_0x4625e3))||_0x4625e3);return _0x24341b&&_0x4625e3&&_0x448b35(_0x205024,_0x31468c,_0x4625e3),_0x4625e3;},_0x4aa77d=(_0x19cec0,_0x5e23f6)=>(_0x26a069,_0x455ded)=>_0x5e23f6(_0x26a069,_0x455ded,_0x19cec0);let _0x243c55=class extends _0xe86ac4[_0x406810(0x139)]{constructor(_0x26d007,_0xb889bd){const _0x175b10=_0x406810;super(),this['_commandService']=_0x26d007,this[_0x175b10(0x13e)]=_0xb889bd,this[_0x175b10(0x148)](),this[_0x175b10(0x136)]();}['_initCommands'](){const _0x16607e=_0x406810;[_0x54e5d8,_0x593045][_0x16607e(0x112)](_0x34bc8d=>{const _0x5477e4=_0x16607e;this['disposeWithMe'](this[_0x5477e4(0x143)][_0x5477e4(0x13f)](_0x34bc8d));});}[_0x406810(0x136)](){const _0x1f9087=_0x406810;this['_menuManagerService'][_0x1f9087(0x12d)](_0x1c067e);}};_0x243c55=_0x47215f([_0xe86ac4['OnLifecycle'](_0xe86ac4[_0x406810(0x125)][_0x406810(0x104)],_0x243c55),_0x4aa77d(0x0,_0xe86ac4[_0x406810(0x11c)]),_0x4aa77d(0x1,_0x56211d[_0x406810(0x13a)])],_0x243c55);const _0x4b2caf='docs-exchange-client.config',_0x1548d9={};var _0x4396f3=Object[_0x406810(0x127)],_0x4eaf81=Object[_0x406810(0x126)],_0x8faa1e=(_0x4fa10e,_0x56841d,_0xa0195e)=>_0x56841d in _0x4fa10e?_0x4396f3(_0x4fa10e,_0x56841d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa0195e}):_0x4fa10e[_0x56841d]=_0xa0195e,_0x54afda=(_0x4dc5ef,_0x3e114e,_0x2c9b1a,_0x442b24)=>{for(var _0x4fb998=_0x442b24>0x1?void 0x0:_0x442b24?_0x4eaf81(_0x3e114e,_0x2c9b1a):_0x3e114e,_0x1dd015=_0x4dc5ef['length']-0x1,_0x2062ea;_0x1dd015>=0x0;_0x1dd015--)(_0x2062ea=_0x4dc5ef[_0x1dd015])&&(_0x4fb998=(_0x442b24?_0x2062ea(_0x3e114e,_0x2c9b1a,_0x4fb998):_0x2062ea(_0x4fb998))||_0x4fb998);return _0x442b24&&_0x4fb998&&_0x4396f3(_0x3e114e,_0x2c9b1a,_0x4fb998),_0x4fb998;},_0x4e8545=(_0x55f810,_0x1382a0)=>(_0x4847f1,_0x3c8089)=>_0x1382a0(_0x4847f1,_0x3c8089,_0x55f810),_0x214081=(_0x1a002e,_0x3a4ac2,_0x54bb3d)=>_0x8faa1e(_0x1a002e,typeof _0x3a4ac2!='symbol'?_0x3a4ac2+'':_0x3a4ac2,_0x54bb3d);const _0x30e212=_0x406810(0x115);_0x52f810[_0x406810(0x12c)]=class extends _0xe86ac4[_0x406810(0x107)]{constructor(_0x558e83=_0x1548d9,_0x1e1896,_0x121f1c){const _0x139563=_0x406810;super(),this['_config']=_0x558e83,this[_0x139563(0x10a)]=_0x1e1896,this['_configService']=_0x121f1c;const {menu:_0x5e1863,..._0x1403c4}=this['_config'];_0x5e1863&&this[_0x139563(0x101)][_0x139563(0x129)](_0x139563(0x13b),_0x5e1863,{'merge':!0x0}),this[_0x139563(0x101)][_0x139563(0x129)](_0x4b2caf,_0x1403c4);}['initialize'](){const _0x1202dc=_0x406810;[[_0x243c55]]['forEach'](_0x93121b=>this['_injector'][_0x1202dc(0x105)](_0x93121b));}[_0x406810(0x12f)](){const _0x3905ad=_0x406810;this[_0x3905ad(0x100)]();}},_0x214081(_0x52f810[_0x406810(0x12c)],_0x406810(0x11a),_0x30e212),_0x214081(_0x52f810[_0x406810(0x12c)],_0x406810(0xfd),_0xe86ac4['UniverInstanceType']['UNIVER_DOC']),_0x52f810[_0x406810(0x12c)]=_0x54afda([_0xe86ac4['DependentOn'](_0x4ab549[_0x406810(0x123)]),_0x4e8545(0x1,_0xe86ac4[_0x406810(0x10f)](_0xe86ac4[_0x406810(0x138)])),_0x4e8545(0x2,_0xe86ac4[_0x406810(0x124)])],_0x52f810['UniverDocsExchangeClientPlugin']),_0x52f810[_0x406810(0x116)]=_0x593045,_0x52f810[_0x406810(0x102)]=_0x54e5d8,Object['defineProperty'](_0x52f810,Symbol[_0x406810(0x13d)],{'value':'Module'});}));function _0x4f79(){const _0x870cb9=['UNIVER_DOC','getMenuHiddenObservable','2751910BTYwYr','_commandService','importDOCXToUnitId','@univerjs/ui','UniverInstanceType','2080912lIArgp','_initCommands','exchange.upload','type','exchange-client.operation.export-docx','UniverCore','initialize','_configService','ImportDOCXOperation','BUTTON','Ready','add','452465vKkmxx','Plugin','215072WCliax','3839380UlwpMA','_injector','8hKGeFU','FolderSingle','DirectExportSingle','228PAFByk','Inject','length','function','forEach','exchange.download','OPERATION','DOC_EXCHANGE_CLIENT_PLUGIN','ExportDOCXOperation','@univerjs/core','2GWiyNW','UniverExchangeClient','pluginName','CommandType','ICommandService','FILE','@univerjs-pro/exchange-client','MenuItemType','object','UniverUi','12TrBenr','UniverExchangeClientPlugin','IConfigService','LifecycleStages','getOwnPropertyDescriptor','defineProperty','amd','setConfig','IExchangeOperateService','UniverDocsExchangeClient','UniverDocsExchangeClientPlugin','mergeMenu','RibbonStartGroup','onReady','540169vJvfoq','3054375UvVnuq','get','exchange.file','exportDOCXByUnitId','SUBITEMS','_initMenus','3HmbcOo','Injector','Disposable','IMenuManagerService','menu','docs-exchange-client.operation.exchange','toStringTag','_menuManagerService','registerCommand'];_0x4f79=function(){return _0x870cb9;};return _0x4f79();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/docs-exchange-client",
3
- "version": "0.2.13",
3
+ "version": "0.2.14",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -43,18 +43,18 @@
43
43
  "lib"
44
44
  ],
45
45
  "peerDependencies": {
46
- "@univerjs-pro/exchange-client": "0.2.13",
47
- "@univerjs/ui": "0.2.13",
48
- "@univerjs/core": "0.2.13"
46
+ "@univerjs/core": "0.2.14",
47
+ "@univerjs/ui": "0.2.14",
48
+ "@univerjs-pro/exchange-client": "0.2.14"
49
49
  },
50
50
  "dependencies": {
51
51
  "@univerjs/icons": "^0.1.78",
52
52
  "pako": "^2.1.0",
53
- "@univerjs-pro/exchange-client": "0.2.13",
54
- "@univerjs/core": "0.2.13",
55
- "@univerjs/docs": "0.2.13",
53
+ "@univerjs-pro/exchange-client": "0.2.14",
54
+ "@univerjs/core": "0.2.14",
55
+ "@univerjs/docs": "0.2.14",
56
56
  "@univerjs/protocol": "0.1.39-alpha.15",
57
- "@univerjs/docs-ui": "0.2.13"
57
+ "@univerjs/docs-ui": "0.2.14"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/pako": "^2.0.3",
@@ -63,7 +63,7 @@
63
63
  "typescript": "^5.6.2",
64
64
  "vite": "^5.4.3",
65
65
  "vitest": "^2.0.5",
66
- "@univerjs-infra/shared": "0.2.13"
66
+ "@univerjs-infra/shared": "0.2.14"
67
67
  },
68
68
  "univerSpace": {
69
69
  ".": {