@univerjs-pro/exchange-client 0.6.0-experimental.20250125-1d060b9 → 0.6.0-experimental.20250220-d9a8e74

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.
@@ -1 +1 @@
1
- const _0x42ced2=_0x3bc9;(function(_0x225c1c,_0x3e864b){const _0x3c230e=_0x3bc9,_0x366349=_0x225c1c();while(!![]){try{const _0x12e686=-parseInt(_0x3c230e(0xf9))/0x1+-parseInt(_0x3c230e(0xf8))/0x2*(parseInt(_0x3c230e(0xfc))/0x3)+parseInt(_0x3c230e(0xf0))/0x4+parseInt(_0x3c230e(0xe9))/0x5*(-parseInt(_0x3c230e(0xfb))/0x6)+parseInt(_0x3c230e(0xef))/0x7+parseInt(_0x3c230e(0xee))/0x8+-parseInt(_0x3c230e(0xfa))/0x9;if(_0x12e686===_0x3e864b)break;else _0x366349['push'](_0x366349['shift']());}catch(_0xc473c9){_0x366349['push'](_0x366349['shift']());}}}(_0x430a,0x3b661));function _0x3bc9(_0x16e5c1,_0x2bfed1){const _0x430acd=_0x430a();return _0x3bc9=function(_0x3bc954,_0x122727){_0x3bc954=_0x3bc954-0xe9;let _0x2f2833=_0x430acd[_0x3bc954];return _0x2f2833;},_0x3bc9(_0x16e5c1,_0x2bfed1);}const e={'exchange':{'file':_0x42ced2(0xed),'upload':'Open(File)','download':_0x42ced2(0xf4),'uploading':'Uploading','uploadSuccess':'File\x20uploaded\x20successfully','uploadSuccessTip':'{0}\x20file(s)\x20uploaded\x20successfully','downloading':_0x42ced2(0xf5),'downloadSuccess':'Download\x20success','unknownMistake':_0x42ced2(0xf1),'networkError':_0x42ced2(0xf3),'tooLarge':_0x42ced2(0xf6),'internalError':_0x42ced2(0xf7),'interrupt':_0x42ced2(0xea),'wait':_0x42ced2(0xeb),'cancel':_0x42ced2(0xec),'uploadAgain':_0x42ced2(0xf2)}};export{e as default};function _0x430a(){const _0x2d0d52=['Downloading','Data\x20is\x20too\x20large','Internal\x20unknown\x20error','13306kqChyL','238663KuQiiw','2115450WLQghw','619158dBRvfJ','3SxvOLj','10eqmdZz','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed.','Please\x20wait...','Cancel','File','1511448tIksHM','3048024iPaDDA','1222744kutCEz','Unknown\x20mistake','Upload\x20again','Network\x20error','Save\x20As'];_0x430a=function(){return _0x2d0d52;};return _0x430a();}
1
+ function _0x4159(){const _0x5cdd10=['Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','182780GZphmG','Downloading','8uMiJFJ','6314628ECbkrT','9KewuBg','1872939NbqxNG','Download\x20success','1518320McjGUr','5KPSiwm','File\x20uploaded\x20successfully','Network\x20error','Data\x20is\x20too\x20large','715670Wuxabz','2igVxpq','441469GUbzrz','Please\x20wait...','Upload\x20again','Save\x20As','19893632kzzVxG','Internal\x20unknown\x20error','Cancel','Unknown\x20mistake'];_0x4159=function(){return _0x5cdd10;};return _0x4159();}const _0x10c70a=_0x3c0b;(function(_0x35a234,_0x5b9ad9){const _0x4a1440=_0x3c0b,_0xf36639=_0x35a234();while(!![]){try{const _0x50e178=-parseInt(_0x4a1440(0x85))/0x1+-parseInt(_0x4a1440(0x92))/0x2*(-parseInt(_0x4a1440(0x8a))/0x3)+-parseInt(_0x4a1440(0x8c))/0x4+-parseInt(_0x4a1440(0x8d))/0x5*(parseInt(_0x4a1440(0x88))/0x6)+-parseInt(_0x4a1440(0x7c))/0x7*(parseInt(_0x4a1440(0x87))/0x8)+parseInt(_0x4a1440(0x89))/0x9*(-parseInt(_0x4a1440(0x91))/0xa)+parseInt(_0x4a1440(0x80))/0xb;if(_0x50e178===_0x5b9ad9)break;else _0xf36639['push'](_0xf36639['shift']());}catch(_0x455668){_0xf36639['push'](_0xf36639['shift']());}}}(_0x4159,0xa6d81));const e={'exchange':{'file':'File','upload':'Open(File)','download':_0x10c70a(0x7f),'uploading':'Uploading','uploadSuccess':_0x10c70a(0x8e),'uploadSuccessTip':'{0}\x20file(s)\x20uploaded\x20successfully','downloading':_0x10c70a(0x86),'downloadSuccess':_0x10c70a(0x8b),'unknownMistake':_0x10c70a(0x83),'networkError':_0x10c70a(0x8f),'tooLarge':_0x10c70a(0x90),'internalError':_0x10c70a(0x81),'interrupt':'The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','fileTypeError':_0x10c70a(0x84),'wait':_0x10c70a(0x7d),'cancel':_0x10c70a(0x82),'uploadAgain':_0x10c70a(0x7e)}};function _0x3c0b(_0x3e804e,_0x87c6cc){const _0x415920=_0x4159();return _0x3c0b=function(_0x3c0b38,_0x3b0bcf){_0x3c0b38=_0x3c0b38-0x7c;let _0x1459d6=_0x415920[_0x3c0b38];return _0x1459d6;},_0x3c0b(_0x3e804e,_0x87c6cc);}export{e as default};
@@ -1 +1 @@
1
- const _0x4ecb0f=_0x4cd5;function _0x25b7(){const _0x19fbff=['16aoqbNk','لطفا\x20صبر\x20کنید...','9935vrLEbH','280273iOnppi','248443ZwoLVQ','بازکردن(فایل)','24Bhqsxi','خطای\x20داخلی\x20ناشناخته','ذخیره\x20به\x20عنوان','295732kopBJx','55CagVlv','داده\x20خیلی\x20بزرگ\x20است','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','دانلود\x20موفقیت\x20آمیز','277670SEubrn','در\x20حال\x20بارگذاری','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','354ITmOUV','204pPKujk','بارگذاری\x20مجدد','5049549OEneFO','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','1JXsEQP','1255322bApnMW','خطای\x20شبکه'];_0x25b7=function(){return _0x19fbff;};return _0x25b7();}(function(_0x13a7dc,_0x5c07bd){const _0x52e29f=_0x4cd5,_0xbcdb56=_0x13a7dc();while(!![]){try{const _0x4598f2=parseInt(_0x52e29f(0xf9))/0x1*(parseInt(_0x52e29f(0xfa))/0x2)+parseInt(_0x52e29f(0x102))/0x3*(parseInt(_0x52e29f(0x105))/0x4)+parseInt(_0x52e29f(0xfe))/0x5*(parseInt(_0x52e29f(0x10d))/0x6)+-parseInt(_0x52e29f(0xff))/0x7*(-parseInt(_0x52e29f(0xfc))/0x8)+-parseInt(_0x52e29f(0x110))/0x9+-parseInt(_0x52e29f(0x10a))/0xa*(parseInt(_0x52e29f(0x106))/0xb)+-parseInt(_0x52e29f(0x10e))/0xc*(parseInt(_0x52e29f(0x100))/0xd);if(_0x4598f2===_0x5c07bd)break;else _0xbcdb56['push'](_0xbcdb56['shift']());}catch(_0x100a2d){_0xbcdb56['push'](_0xbcdb56['shift']());}}}(_0x25b7,0x5f9e5));function _0x4cd5(_0x541178,_0x345640){const _0x25b7d7=_0x25b7();return _0x4cd5=function(_0x4cd508,_0x30c869){_0x4cd508=_0x4cd508-0xf8;let _0x1de8db=_0x25b7d7[_0x4cd508];return _0x1de8db;},_0x4cd5(_0x541178,_0x345640);}const o={'exchange':{'file':'فایل','upload':_0x4ecb0f(0x101),'download':_0x4ecb0f(0x104),'uploading':_0x4ecb0f(0x10b),'uploadSuccess':_0x4ecb0f(0x10c),'uploadSuccessTip':_0x4ecb0f(0x108),'downloading':'در\x20حال\x20دانلود','downloadSuccess':_0x4ecb0f(0x109),'unknownMistake':'خطای\x20ناشناخته','networkError':_0x4ecb0f(0xfb),'tooLarge':_0x4ecb0f(0x107),'internalError':_0x4ecb0f(0x103),'interrupt':_0x4ecb0f(0xf8),'wait':_0x4ecb0f(0xfd),'cancel':'لغو','uploadAgain':_0x4ecb0f(0x10f)}};export{o as default};
1
+ const _0x195c02=_0x4f05;function _0x2f7c(){const _0x321ca6=['خطای\x20داخلی\x20ناشناخته','3704tsdJeq','7653576WxlAiN','داده\x20خیلی\x20بزرگ\x20است','3292095vXhaIF','5377302wfTgSB','در\x20حال\x20دانلود','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','خطای\x20شبکه','خطای\x20ناشناخته','در\x20حال\x20بارگذاری','25718AArYTL','ذخیره\x20به\x20عنوان','59GwakQl','فایل','38314wFlIsV','28390113EBdlRG','10YPVFYJ','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','بازکردن(فایل)','لغو','1397248iJppFL'];_0x2f7c=function(){return _0x321ca6;};return _0x2f7c();}(function(_0x861063,_0x158930){const _0x449d8e=_0x4f05,_0x335c91=_0x861063();while(!![]){try{const _0x20fdc4=parseInt(_0x449d8e(0x1b0))/0x1*(-parseInt(_0x449d8e(0x1b2))/0x2)+-parseInt(_0x449d8e(0x1a8))/0x3+-parseInt(_0x449d8e(0x1a2))/0x4+parseInt(_0x449d8e(0x1a7))/0x5+-parseInt(_0x449d8e(0x1a5))/0x6+-parseInt(_0x449d8e(0x1ae))/0x7*(-parseInt(_0x449d8e(0x1a4))/0x8)+parseInt(_0x449d8e(0x19d))/0x9*(parseInt(_0x449d8e(0x19e))/0xa);if(_0x20fdc4===_0x158930)break;else _0x335c91['push'](_0x335c91['shift']());}catch(_0x2cfffb){_0x335c91['push'](_0x335c91['shift']());}}}(_0x2f7c,0xebebd));function _0x4f05(_0x309af6,_0x4ee52b){const _0x2f7cd9=_0x2f7c();return _0x4f05=function(_0x4f0540,_0x549d75){_0x4f0540=_0x4f0540-0x19d;let _0x484400=_0x2f7cd9[_0x4f0540];return _0x484400;},_0x4f05(_0x309af6,_0x4ee52b);}const o={'exchange':{'file':_0x195c02(0x1b1),'upload':_0x195c02(0x1a0),'download':_0x195c02(0x1af),'uploading':_0x195c02(0x1ad),'uploadSuccess':_0x195c02(0x1aa),'uploadSuccessTip':'{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','downloading':_0x195c02(0x1a9),'downloadSuccess':'دانلود\x20موفقیت\x20آمیز','unknownMistake':_0x195c02(0x1ac),'networkError':_0x195c02(0x1ab),'tooLarge':_0x195c02(0x1a6),'internalError':_0x195c02(0x1a3),'interrupt':_0x195c02(0x19f),'fileTypeError':'فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمی‌شود','wait':'لطفا\x20صبر\x20کنید...','cancel':_0x195c02(0x1a1),'uploadAgain':'بارگذاری\x20مجدد'}};export{o as default};
@@ -1 +1 @@
1
- const _0x298415=_0x4cd3;function _0x4cd3(_0x24fa6c,_0x47f3d7){const _0x1c5abf=_0x1c5a();return _0x4cd3=function(_0x4cd36c,_0x92d107){_0x4cd36c=_0x4cd36c-0xdd;let _0x4835e5=_0x1c5abf[_0x4cd36c];return _0x4835e5;},_0x4cd3(_0x24fa6c,_0x47f3d7);}function _0x1c5a(){const _0x1ac9f5=['Upload\x20again','Data\x20is\x20too\x20large','Unknown\x20mistake','Internal\x20unknown\x20error','Open(File)','33WvVURq','2731532VZpcZI','27182UcsWUQ','Download\x20success','295nKFJPH','File','4136640vhXRhH','File\x20uploaded\x20successfully','1878674KbvJRb','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed.','Please\x20wait...','42612VVgaBu','Downloading','Network\x20error','10027242MxjfNx','94889GogPLJ','Uploading'];_0x1c5a=function(){return _0x1ac9f5;};return _0x1c5a();}(function(_0x243fd6,_0x1fb976){const _0x3b4031=_0x4cd3,_0x2ca485=_0x243fd6();while(!![]){try{const _0x2aff2c=-parseInt(_0x3b4031(0xea))/0x1+-parseInt(_0x3b4031(0xdd))/0x2*(parseInt(_0x3b4031(0xf1))/0x3)+-parseInt(_0x3b4031(0xf2))/0x4+parseInt(_0x3b4031(0xdf))/0x5*(parseInt(_0x3b4031(0xe6))/0x6)+parseInt(_0x3b4031(0xe3))/0x7+-parseInt(_0x3b4031(0xe1))/0x8+parseInt(_0x3b4031(0xe9))/0x9;if(_0x2aff2c===_0x1fb976)break;else _0x2ca485['push'](_0x2ca485['shift']());}catch(_0x4b97be){_0x2ca485['push'](_0x2ca485['shift']());}}}(_0x1c5a,0x57341));const e={'exchange':{'file':_0x298415(0xe0),'upload':_0x298415(0xf0),'download':'Save\x20As','uploading':_0x298415(0xeb),'uploadSuccess':_0x298415(0xe2),'uploadSuccessTip':'{0}\x20file(s)\x20uploaded\x20successfully','downloading':_0x298415(0xe7),'downloadSuccess':_0x298415(0xde),'unknownMistake':_0x298415(0xee),'networkError':_0x298415(0xe8),'tooLarge':_0x298415(0xed),'internalError':_0x298415(0xef),'interrupt':_0x298415(0xe4),'wait':_0x298415(0xe5),'cancel':'Cancel','uploadAgain':_0x298415(0xec)}},o=e;export{o as default};
1
+ const _0x59f7fa=_0x333f;function _0x333f(_0x321a00,_0x2df25f){const _0x506b5e=_0x506b();return _0x333f=function(_0x333f8c,_0x2ea06e){_0x333f8c=_0x333f8c-0x1e5;let _0x2b9ef0=_0x506b5e[_0x333f8c];return _0x2b9ef0;},_0x333f(_0x321a00,_0x2df25f);}(function(_0x3fd01e,_0xbf8f38){const _0x5e158d=_0x333f,_0x2a398e=_0x3fd01e();while(!![]){try{const _0x4dcd7b=-parseInt(_0x5e158d(0x1e7))/0x1+parseInt(_0x5e158d(0x1fa))/0x2+parseInt(_0x5e158d(0x1fb))/0x3+-parseInt(_0x5e158d(0x1eb))/0x4*(parseInt(_0x5e158d(0x1f6))/0x5)+parseInt(_0x5e158d(0x1f0))/0x6*(parseInt(_0x5e158d(0x1e9))/0x7)+parseInt(_0x5e158d(0x1e5))/0x8*(-parseInt(_0x5e158d(0x1e6))/0x9)+parseInt(_0x5e158d(0x1ef))/0xa;if(_0x4dcd7b===_0xbf8f38)break;else _0x2a398e['push'](_0x2a398e['shift']());}catch(_0x35d7b6){_0x2a398e['push'](_0x2a398e['shift']());}}}(_0x506b,0xc978b));const e={'exchange':{'file':_0x59f7fa(0x1f3),'upload':'Ouvrir\x20(Fichier)','download':'Enregistrer\x20sous','uploading':_0x59f7fa(0x1ec),'uploadSuccess':_0x59f7fa(0x1ee),'uploadSuccessTip':_0x59f7fa(0x1f5),'downloading':_0x59f7fa(0x1ea),'downloadSuccess':_0x59f7fa(0x1f1),'unknownMistake':'Erreur\x20inconnue','networkError':_0x59f7fa(0x1f9),'tooLarge':_0x59f7fa(0x1f4),'internalError':_0x59f7fa(0x1ed),'interrupt':_0x59f7fa(0x1e8),'fileTypeError':_0x59f7fa(0x1f8),'wait':'Veuillez\x20patienter...','cancel':_0x59f7fa(0x1f2),'uploadAgain':_0x59f7fa(0x1f7)}};function _0x506b(){const _0x2cde18=['889SbMTLs','Téléchargement','5719132jiYTvu','Téléchargement\x20en\x20cours','Erreur\x20interne\x20inconnue','Fichier\x20téléchargé\x20avec\x20succès','8702810PujKFi','62610WgGyDX','Téléchargement\x20réussi','Annuler','Fichier','Les\x20données\x20sont\x20trop\x20volumineuses','{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','5okQKet','Télécharger\x20à\x20nouveau','Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','Erreur\x20réseau','3190590dIEifJ','3004161RapZzx','32nbuUQV','2388726PDcxGh','1475542DqkSFz','La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué'];_0x506b=function(){return _0x2cde18;};return _0x506b();}export{e as default};
@@ -1 +1 @@
1
- const _0x336183=_0x2d0b;function _0x2d0b(_0x44fdb2,_0x7d2786){const _0x1b7aee=_0x1b7a();return _0x2d0b=function(_0x2d0b6a,_0x54e579){_0x2d0b6a=_0x2d0b6a-0xea;let _0x5d1f2b=_0x1b7aee[_0x2d0b6a];return _0x5d1f2b;},_0x2d0b(_0x44fdb2,_0x7d2786);}function _0x1b7a(){const _0x3f2bda=['Неизвестная\x20ошибка','Отмена','2kumQJD','Файл','2059512SwlYMs','Сохранить\x20как','Скачивание\x20успешно','577119oGgjwj','Открыть(Файл)','5745752LCKTah','Загрузить\x20снова','Сетевая\x20ошибка','Загрузка','Данные\x20слишком\x20большие','Пожалуйста,\x20подождите...','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась.','1461236mrWcDX','Файл\x20успешно\x20загружен','1432152OttBdG','2963035VRVNVn','4674536qSIUZt'];_0x1b7a=function(){return _0x3f2bda;};return _0x1b7a();}(function(_0x5cda08,_0x383caa){const _0x139e02=_0x2d0b,_0x23a1f1=_0x5cda08();while(!![]){try{const _0x24787a=parseInt(_0x139e02(0xea))/0x1*(-parseInt(_0x139e02(0xfa))/0x2)+parseInt(_0x139e02(0xfc))/0x3+-parseInt(_0x139e02(0xf7))/0x4+parseInt(_0x139e02(0xf6))/0x5+parseInt(_0x139e02(0xf5))/0x6+parseInt(_0x139e02(0xf3))/0x7+parseInt(_0x139e02(0xec))/0x8;if(_0x24787a===_0x383caa)break;else _0x23a1f1['push'](_0x23a1f1['shift']());}catch(_0x9d4a17){_0x23a1f1['push'](_0x23a1f1['shift']());}}}(_0x1b7a,0xaaa89));const o={'exchange':{'file':_0x336183(0xfb),'upload':_0x336183(0xeb),'download':_0x336183(0xfd),'uploading':_0x336183(0xef),'uploadSuccess':_0x336183(0xf4),'uploadSuccessTip':'{0}\x20файл(ов)\x20успешно\x20загружен(о)','downloading':'Скачивание','downloadSuccess':_0x336183(0xfe),'unknownMistake':_0x336183(0xf8),'networkError':_0x336183(0xee),'tooLarge':_0x336183(0xf0),'internalError':'Внутренняя\x20неизвестная\x20ошибка','interrupt':_0x336183(0xf2),'wait':_0x336183(0xf1),'cancel':_0x336183(0xf9),'uploadAgain':_0x336183(0xed)}};export{o as default};
1
+ const _0x90116d=_0x6485;function _0x6485(_0x3e21d9,_0x47ac90){const _0x1a063f=_0x1a06();return _0x6485=function(_0x6485c6,_0xd0a0d6){_0x6485c6=_0x6485c6-0xa0;let _0x1f5ad5=_0x1a063f[_0x6485c6];return _0x1f5ad5;},_0x6485(_0x3e21d9,_0x47ac90);}(function(_0x591d07,_0xe80447){const _0x1af5a4=_0x6485,_0x52cb91=_0x591d07();while(!![]){try{const _0x2af7ac=-parseInt(_0x1af5a4(0xb0))/0x1+-parseInt(_0x1af5a4(0xa3))/0x2+parseInt(_0x1af5a4(0xa0))/0x3+parseInt(_0x1af5a4(0xb2))/0x4*(-parseInt(_0x1af5a4(0xa2))/0x5)+parseInt(_0x1af5a4(0xa5))/0x6*(parseInt(_0x1af5a4(0xb1))/0x7)+parseInt(_0x1af5a4(0xb4))/0x8*(parseInt(_0x1af5a4(0xa6))/0x9)+parseInt(_0x1af5a4(0xa1))/0xa;if(_0x2af7ac===_0xe80447)break;else _0x52cb91['push'](_0x52cb91['shift']());}catch(_0x10091a){_0x52cb91['push'](_0x52cb91['shift']());}}}(_0x1a06,0xa0ee1));const o={'exchange':{'file':_0x90116d(0xa9),'upload':'Открыть(Файл)','download':'Сохранить\x20как','uploading':_0x90116d(0xae),'uploadSuccess':_0x90116d(0xab),'uploadSuccessTip':'{0}\x20файл(ов)\x20успешно\x20загружен(о)','downloading':_0x90116d(0xac),'downloadSuccess':_0x90116d(0xaa),'unknownMistake':_0x90116d(0xad),'networkError':_0x90116d(0xaf),'tooLarge':'Данные\x20слишком\x20большие','internalError':_0x90116d(0xb5),'interrupt':_0x90116d(0xa7),'fileTypeError':_0x90116d(0xa8),'wait':_0x90116d(0xa4),'cancel':'Отмена','uploadAgain':_0x90116d(0xb3)}};export{o as default};function _0x1a06(){const _0x5d873a=['Файл\x20успешно\x20загружен','Скачивание','Неизвестная\x20ошибка','Загрузка','Сетевая\x20ошибка','826986Ugecst','1392902kVAdwS','80AslfzT','Загрузить\x20снова','6680592SGjIfm','Внутренняя\x20неизвестная\x20ошибка','3396573fLiadJ','2598220uJrIcK','160265IHrfSK','995688zARgcG','Пожалуйста,\x20подождите...','12hSuDYV','9bIKYGj','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','Файл','Скачивание\x20успешно'];_0x1a06=function(){return _0x5d873a;};return _0x1a06();}
@@ -1 +1 @@
1
- const _0x8c30d1=_0x2574;(function(_0x1bbadc,_0x5551ca){const _0x3347a6=_0x2574,_0x37af7b=_0x1bbadc();while(!![]){try{const _0x10dc9f=-parseInt(_0x3347a6(0x8c))/0x1+-parseInt(_0x3347a6(0x98))/0x2*(-parseInt(_0x3347a6(0x9d))/0x3)+parseInt(_0x3347a6(0x9e))/0x4+parseInt(_0x3347a6(0x93))/0x5+parseInt(_0x3347a6(0x91))/0x6+-parseInt(_0x3347a6(0x99))/0x7*(-parseInt(_0x3347a6(0x8e))/0x8)+-parseInt(_0x3347a6(0x95))/0x9;if(_0x10dc9f===_0x5551ca)break;else _0x37af7b['push'](_0x37af7b['shift']());}catch(_0x47c60d){_0x37af7b['push'](_0x37af7b['shift']());}}}(_0x1b21,0xf17d4));function _0x2574(_0x139b8d,_0x8210ff){const _0x1b2111=_0x1b21();return _0x2574=function(_0x2574c2,_0x588d08){_0x2574c2=_0x2574c2-0x8b;let _0x4b19d5=_0x1b2111[_0x2574c2];return _0x4b19d5;},_0x2574(_0x139b8d,_0x8210ff);}const n={'exchange':{'file':_0x8c30d1(0x8b),'upload':'Mở\x20(Tệp)','download':'Lưu\x20dưới\x20dạng','uploading':_0x8c30d1(0x90),'uploadSuccess':_0x8c30d1(0x96),'uploadSuccessTip':_0x8c30d1(0x94),'downloading':_0x8c30d1(0x8d),'downloadSuccess':'Tải\x20xuống\x20thành\x20công','unknownMistake':_0x8c30d1(0x9c),'networkError':_0x8c30d1(0x9a),'tooLarge':'Luồng\x20dữ\x20liệu\x20quá\x20lớn','internalError':_0x8c30d1(0x97),'interrupt':_0x8c30d1(0x92),'wait':_0x8c30d1(0x9b),'cancel':'Hủy\x20bỏ','uploadAgain':_0x8c30d1(0x8f)}};function _0x1b21(){const _0x53bed7=['817770IEcQKq','6882928LYFpuY','Tệp','749923KoEuLK','Đang\x20tải\x20xuống','258584KkcYXA','Tải\x20lên\x20lại','Đang\x20tải\x20lên','3390840UhKcfK','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại.','2621855cbCvMg','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','30925287kOzghw','Tải\x20lên\x20tệp\x20thành\x20công','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','10HNrCmV','217CvHTJE','Lỗi\x20mạng','Vui\x20lòng\x20đợi...','Lỗi\x20không\x20xác\x20định'];_0x1b21=function(){return _0x53bed7;};return _0x1b21();}export{n as default};
1
+ const _0x3e7e51=_0x1f69;(function(_0x165802,_0x320494){const _0x453e26=_0x1f69,_0x1c31c6=_0x165802();while(!![]){try{const _0x51b73e=-parseInt(_0x453e26(0x100))/0x1*(-parseInt(_0x453e26(0x102))/0x2)+-parseInt(_0x453e26(0xf1))/0x3*(-parseInt(_0x453e26(0xff))/0x4)+-parseInt(_0x453e26(0x101))/0x5+parseInt(_0x453e26(0xfd))/0x6+-parseInt(_0x453e26(0x104))/0x7*(parseInt(_0x453e26(0xf6))/0x8)+-parseInt(_0x453e26(0x107))/0x9+parseInt(_0x453e26(0xf9))/0xa;if(_0x51b73e===_0x320494)break;else _0x1c31c6['push'](_0x1c31c6['shift']());}catch(_0x1e1d37){_0x1c31c6['push'](_0x1c31c6['shift']());}}}(_0x40b1,0x26607));function _0x40b1(){const _0x24db62=['2QWNGLn','Luồng\x20dữ\x20liệu\x20quá\x20lớn','14FzSWaq','Hủy\x20bỏ','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','2602071DYGsVd','152916VvGGwx','Tải\x20xuống\x20thành\x20công','Tải\x20lên\x20lại','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','Đang\x20tải\x20lên','298208WTmjDs','Mở\x20(Tệp)','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','1483790GrbziX','Tệp','Tải\x20lên\x20tệp\x20thành\x20công','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','544746IlLukv','Đang\x20tải\x20xuống','24MVtzCe','143783PNClCT','839615qXLVWe'];_0x40b1=function(){return _0x24db62;};return _0x40b1();}const n={'exchange':{'file':_0x3e7e51(0xfa),'upload':_0x3e7e51(0xf7),'download':'Lưu\x20dưới\x20dạng','uploading':_0x3e7e51(0xf5),'uploadSuccess':_0x3e7e51(0xfb),'uploadSuccessTip':_0x3e7e51(0x106),'downloading':_0x3e7e51(0xfe),'downloadSuccess':_0x3e7e51(0xf2),'unknownMistake':'Lỗi\x20không\x20xác\x20định','networkError':'Lỗi\x20mạng','tooLarge':_0x3e7e51(0x103),'internalError':_0x3e7e51(0xfc),'interrupt':_0x3e7e51(0xf4),'fileTypeError':_0x3e7e51(0xf8),'wait':'Vui\x20lòng\x20đợi...','cancel':_0x3e7e51(0x105),'uploadAgain':_0x3e7e51(0xf3)}};function _0x1f69(_0x2dbbff,_0x4b69a6){const _0x40b121=_0x40b1();return _0x1f69=function(_0x1f6946,_0x1f98af){_0x1f6946=_0x1f6946-0xf1;let _0x1edb2e=_0x40b121[_0x1f6946];return _0x1edb2e;},_0x1f69(_0x2dbbff,_0x4b69a6);}export{n as default};
@@ -1 +1 @@
1
- function _0x2415(){const _0x369c5b=['{0}个文件上传成功','上传中','文件上传成功','318DWYmUb','网络连接中断,文件上传失败。','打开(文件)','未知错误','37350kCciQh','1597944iIbDlp','另存为','4743417ePJtFV','数据流过大','请稍等...','网络异常','再次上传','4931555jUSPSF','320IWsdgQ','2476524WtWYyr','787518WUmhQj','内部未知错误','1616RlMcvl'];_0x2415=function(){return _0x369c5b;};return _0x2415();}function _0x4236(_0x4fc6cc,_0x40be14){const _0x241527=_0x2415();return _0x4236=function(_0x423655,_0x5155fb){_0x423655=_0x423655-0x152;let _0x57f299=_0x241527[_0x423655];return _0x57f299;},_0x4236(_0x4fc6cc,_0x40be14);}const _0x3745e0=_0x4236;(function(_0x2c721d,_0x2a54d3){const _0x58756b=_0x4236,_0x3504da=_0x2c721d();while(!![]){try{const _0x39f7d5=parseInt(_0x58756b(0x15e))/0x1+-parseInt(_0x58756b(0x160))/0x2*(parseInt(_0x58756b(0x164))/0x3)+-parseInt(_0x58756b(0x154))/0x4+-parseInt(_0x58756b(0x15b))/0x5+parseInt(_0x58756b(0x15d))/0x6+parseInt(_0x58756b(0x156))/0x7+-parseInt(_0x58756b(0x15c))/0x8*(-parseInt(_0x58756b(0x153))/0x9);if(_0x39f7d5===_0x2a54d3)break;else _0x3504da['push'](_0x3504da['shift']());}catch(_0x363035){_0x3504da['push'](_0x3504da['shift']());}}}(_0x2415,0x8bc2a));const o={'exchange':{'file':'文件','upload':_0x3745e0(0x166),'download':_0x3745e0(0x155),'uploading':_0x3745e0(0x162),'uploadSuccess':_0x3745e0(0x163),'uploadSuccessTip':_0x3745e0(0x161),'downloading':'下载中','downloadSuccess':'下载成功','unknownMistake':_0x3745e0(0x152),'networkError':_0x3745e0(0x159),'tooLarge':_0x3745e0(0x157),'internalError':_0x3745e0(0x15f),'interrupt':_0x3745e0(0x165),'wait':_0x3745e0(0x158),'cancel':'取消','uploadAgain':_0x3745e0(0x15a)}};export{o as default};
1
+ const _0x27a9c2=_0x35dc;(function(_0x4c58f8,_0x2ac7d0){const _0x5cd200=_0x35dc,_0x4653b7=_0x4c58f8();while(!![]){try{const _0x1bb371=parseInt(_0x5cd200(0x153))/0x1*(-parseInt(_0x5cd200(0x13f))/0x2)+-parseInt(_0x5cd200(0x14a))/0x3+-parseInt(_0x5cd200(0x14d))/0x4+parseInt(_0x5cd200(0x14f))/0x5*(parseInt(_0x5cd200(0x147))/0x6)+-parseInt(_0x5cd200(0x143))/0x7+-parseInt(_0x5cd200(0x144))/0x8+-parseInt(_0x5cd200(0x145))/0x9*(-parseInt(_0x5cd200(0x14b))/0xa);if(_0x1bb371===_0x2ac7d0)break;else _0x4653b7['push'](_0x4653b7['shift']());}catch(_0x236d7a){_0x4653b7['push'](_0x4653b7['shift']());}}}(_0x5de4,0x86790));const o={'exchange':{'file':'文件','upload':_0x27a9c2(0x140),'download':_0x27a9c2(0x142),'uploading':'上传中','uploadSuccess':_0x27a9c2(0x141),'uploadSuccessTip':'{0}个文件上传成功','downloading':_0x27a9c2(0x14e),'downloadSuccess':_0x27a9c2(0x148),'unknownMistake':_0x27a9c2(0x152),'networkError':_0x27a9c2(0x14c),'tooLarge':_0x27a9c2(0x146),'internalError':'内部未知错误','interrupt':'网络连接中断,文件上传失败','fileTypeError':_0x27a9c2(0x151),'wait':_0x27a9c2(0x150),'cancel':'取消','uploadAgain':_0x27a9c2(0x149)}};function _0x35dc(_0x1c8ea2,_0x1bfb0c){const _0x5de4ff=_0x5de4();return _0x35dc=function(_0x35dc7c,_0x3acb43){_0x35dc7c=_0x35dc7c-0x13f;let _0x16a34d=_0x5de4ff[_0x35dc7c];return _0x16a34d;},_0x35dc(_0x1c8ea2,_0x1bfb0c);}function _0x5de4(){const _0x37642e=['网络异常','3827864mxxKky','下载中','1675WYJHOx','请稍等...','所选文件\x20[{0}]\x20不支持上传','未知错误','17RhlbBU','87166lGdBED','打开(文件)','文件上传成功','另存为','3140816RatSoH','5548032RfyhME','27222651ymwrMF','数据流过大','12822YOJZyA','下载成功','再次上传','1049295UIPTRd','10etiKZL'];_0x5de4=function(){return _0x37642e;};return _0x5de4();}export{o as default};
@@ -1 +1 @@
1
- const _0x2cd1ce=_0x4bb1;(function(_0x51727c,_0x27baf5){const _0x45b102=_0x4bb1,_0x1e2aea=_0x51727c();while(!![]){try{const _0x26a7a0=parseInt(_0x45b102(0xc8))/0x1+parseInt(_0x45b102(0xca))/0x2+parseInt(_0x45b102(0xc2))/0x3*(parseInt(_0x45b102(0xbf))/0x4)+-parseInt(_0x45b102(0xc7))/0x5+-parseInt(_0x45b102(0xc0))/0x6*(-parseInt(_0x45b102(0xcf))/0x7)+-parseInt(_0x45b102(0xc6))/0x8*(parseInt(_0x45b102(0xce))/0x9)+parseInt(_0x45b102(0xd0))/0xa;if(_0x26a7a0===_0x27baf5)break;else _0x1e2aea['push'](_0x1e2aea['shift']());}catch(_0x3299b6){_0x1e2aea['push'](_0x1e2aea['shift']());}}}(_0x11c9,0xdb9e1));const o={'exchange':{'file':'檔案','upload':_0x2cd1ce(0xc5),'download':_0x2cd1ce(0xc1),'uploading':'上傳中','uploadSuccess':_0x2cd1ce(0xcb),'uploadSuccessTip':_0x2cd1ce(0xc3),'downloading':'下載中','downloadSuccess':'下載成功','unknownMistake':_0x2cd1ce(0xcd),'networkError':'網路異常','tooLarge':'資料流過大','internalError':_0x2cd1ce(0xc9),'interrupt':_0x2cd1ce(0xd1),'wait':_0x2cd1ce(0xcc),'cancel':'取消','uploadAgain':_0x2cd1ce(0xc4)}};function _0x11c9(){const _0x250869=['4CmNaxy','276SWgNxQ','另存為','360051ECHetu','{0}個檔案上傳成功','再次上傳','開啟(檔案)','2984248HByEcM','5528950iuKBbE','273392xIgbGI','內部未知錯誤','2291488DDZTpP','檔案上傳成功','請稍等...','未知錯誤','36uZiCIU','62629YyvoRb','15467520oYDXKs','網路連線中斷,檔案上傳失敗。\x20'];_0x11c9=function(){return _0x250869;};return _0x11c9();}function _0x4bb1(_0x1dc25d,_0x4e9899){const _0x11c92c=_0x11c9();return _0x4bb1=function(_0x4bb14a,_0x4323ef){_0x4bb14a=_0x4bb14a-0xbf;let _0x1e16de=_0x11c92c[_0x4bb14a];return _0x1e16de;},_0x4bb1(_0x1dc25d,_0x4e9899);}export{o as default};
1
+ function _0x5c9c(_0x409981,_0xcc3d3e){const _0x1fee52=_0x1fee();return _0x5c9c=function(_0x5c9c10,_0x38a965){_0x5c9c10=_0x5c9c10-0x96;let _0xd9ff98=_0x1fee52[_0x5c9c10];return _0xd9ff98;},_0x5c9c(_0x409981,_0xcc3d3e);}function _0x1fee(){const _0x2aca46=['下載成功','所選檔案\x20[{0}]\x20不支援上傳','1NslvPU','9FdxKAu','1039242IxfCTp','48424040JiaMoq','檔案上傳成功','1022XzNNGZ','請稍等...','內部未知錯誤','106700JlcAXy','開啟(檔案)','4212996iJVqeZ','7937415YMkdFL','上傳中','3017430PwXTPS','91768dgvwVH','下載中','網路連線中斷,檔案上傳失敗','另存為','網路異常','{0}個檔案上傳成功'];_0x1fee=function(){return _0x2aca46;};return _0x1fee();}const _0x3fcc02=_0x5c9c;(function(_0x12d987,_0x11e996){const _0x51f8b2=_0x5c9c,_0x219225=_0x12d987();while(!![]){try{const _0x3c45bb=parseInt(_0x51f8b2(0xa6))/0x1*(parseInt(_0x51f8b2(0xa8))/0x2)+-parseInt(_0x51f8b2(0xa7))/0x3*(parseInt(_0x51f8b2(0x98))/0x4)+-parseInt(_0x51f8b2(0x9b))/0x5+-parseInt(_0x51f8b2(0x9a))/0x6+-parseInt(_0x51f8b2(0xab))/0x7*(parseInt(_0x51f8b2(0x9e))/0x8)+-parseInt(_0x51f8b2(0x9d))/0x9+parseInt(_0x51f8b2(0xa9))/0xa;if(_0x3c45bb===_0x11e996)break;else _0x219225['push'](_0x219225['shift']());}catch(_0x4bd480){_0x219225['push'](_0x219225['shift']());}}}(_0x1fee,0xefd2b));const o={'exchange':{'file':'檔案','upload':_0x3fcc02(0x99),'download':_0x3fcc02(0xa1),'uploading':_0x3fcc02(0x9c),'uploadSuccess':_0x3fcc02(0xaa),'uploadSuccessTip':_0x3fcc02(0xa3),'downloading':_0x3fcc02(0x9f),'downloadSuccess':_0x3fcc02(0xa4),'unknownMistake':'未知錯誤','networkError':_0x3fcc02(0xa2),'tooLarge':'資料流過大','internalError':_0x3fcc02(0x97),'interrupt':_0x3fcc02(0xa0),'fileTypeError':_0x3fcc02(0xa5),'wait':_0x3fcc02(0x96),'cancel':'取消','uploadAgain':'再次上傳'}};export{o as default};
package/lib/index.css CHANGED
@@ -1 +1 @@
1
- .univer-exchange-uploading{display:flex;flex-direction:column;align-items:flex-start;margin-top:var(--margin-lg)}.univer-exchange-uploading-tip{color:var(--color-black);font-size:var(--font-size-sm);padding:0 var(--padding-lg) 0 var(--padding-sm)}.univer-exchange-uploading-progress{padding:0 var(--padding-lg) 0 var(--padding-sm)}.univer-exchange-upload-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;height:28px;border-width:0;border-radius:6px;padding:0 var(--padding-sm);font-size:var(--font-size-xs);transition:all .15s;color:rgb(var(--hyacinth-500));background-color:transparent;border-color:transparent}.univer-exchange-upload-button:hover{background-color:rgb(var(--hyacinth-50))}.univer-exchange-upload-progress{width:324px;height:6px;margin:var(--margin-base) 0 var(--margin-sm) 0;background-color:rgb(var(--border-color));border-radius:var(--border-radius-lg)}.univer-exchange-upload-progress-inner{height:6px;border-radius:var(--border-radius-lg);transition:width .5s}.univer-exchange-link-list{max-height:280px;overflow-y:auto;overflow-x:hidden;scrollbar-color:rgba(var(--scrollbar-color),.7) transparent;scrollbar-gutter:auto;scrollbar-width:thin;margin-top:var(--margin-lg)}.univer-exchange-link-list-inner{display:flex;list-style:none;padding:0;margin:0;gap:8px;flex-direction:column}.univer-exchange-link-list-inner-item-link{display:flex;justify-content:space-between;text-decoration-line:none;color:var(--color-black);padding:var(--padding-xs) var(--padding-sm);background-color:transparent;border:none;border-radius:var(--border-radius-base);outline:none;transition:background-color .2s}.univer-exchange-link-list-inner-item-link:hover{background-color:rgb(var(--border-color))}.univer-exchange-link-list-inner-item-link-content{display:flex;align-items:center;width:calc(100% - 48px)}.univer-exchange-link-list-inner-item-link-icon{height:20px;font-size:20px;display:flex}.univer-exchange-link-list-inner-item-link-name{margin-left:var(--margin-xxs);color:var(--color-black);font-size:var(--font-size-sm);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.univer-exchange-link-list-inner-item-link-direct{display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;font-size:var(--font-size-lg);color:rgb(var(--text-color-secondary));background-color:transparent;border:none;border-radius:var(--border-radius-base);outline:none;transition:background-color .2s}.univer-exchange-link-list-inner-item-link-direct:hover{background-color:rgb(var(--bg-color-hover))}.univer-exchange-upload-error{display:flex;flex-direction:column;align-items:flex-start;margin-top:var(--margin-lg)}.univer-exchange-upload-error-tip{color:var(--color-black);font-size:var(--font-size-sm);padding:0 var(--padding-lg) 0 var(--padding-sm);margin-bottom:var(--margin-sm)}.univer-exchange-upload-success{display:flex;padding:0 var(--padding-xs) 0 var(--padding-sm);align-items:center;justify-content:space-between;margin-top:var(--margin-sm)}.univer-exchange-upload-success-tip{color:rgb(var(--text-color-secondary));font-size:var(--font-size-xs)}.univer-exchange-upload-notification{position:fixed;z-index:1000;bottom:48px;right:12px;width:372px;display:flex;flex-direction:column;justify-content:flex-start;padding:var(--padding-xl) var(--padding-base) var(--padding-lg) var(--padding-base);background-color:#fff;border-radius:6px;box-shadow:var(--box-shadow-base);box-sizing:border-box}.univer-exchange-upload-notification-header{display:flex;align-items:center;justify-content:space-between;padding:0 var(--padding-sm) 0 6px}.univer-exchange-upload-notification-header-title{display:flex}.univer-exchange-upload-notification-header-icon{height:24px;font-size:24px}.univer-exchange-upload-notification-header-icon-success{color:rgb(var(--success-color))}.univer-exchange-upload-notification-header-icon-uploading{color:rgb(var(--info-color))}.univer-exchange-upload-notification-header-icon-error{color:rgb(var(--error-color))}.univer-exchange-upload-notification-header-text{margin-left:6px;line-height:24px;color:var(--color-black);font-size:17px;font-weight:600}.univer-exchange-upload-notification-header-close{cursor:pointer;display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;font-size:var(--font-size-lg);color:rgb(var(--text-color-secondary));background-color:transparent;border:none;border-radius:var(--border-radius-base);outline:none;transition:background-color .2s}.univer-exchange-upload-notification-header-close:hover{background-color:rgb(var(--bg-color-hover))}
1
+ .univer-exchange-link-list{max-height:280px;overflow-y:auto;overflow-x:hidden;scrollbar-color:rgba(var(--scrollbar-color),.7) transparent;scrollbar-gutter:auto;scrollbar-width:thin;margin-top:var(--margin-lg)}.univer-exchange-link-list-inner{display:flex;list-style:none;padding:0;margin:0;gap:8px;flex-direction:column}.univer-exchange-link-list-inner-item-link{display:flex;justify-content:space-between;text-decoration-line:none;color:var(--color-black);padding:var(--padding-xs) var(--padding-sm);background-color:transparent;border:none;border-radius:var(--border-radius-base);outline:none;transition:background-color .2s}.univer-exchange-link-list-inner-item-link:hover{background-color:rgb(var(--border-color))}.univer-exchange-link-list-inner-item-link-content{display:flex;align-items:center;width:calc(100% - 48px)}.univer-exchange-link-list-inner-item-link-icon{height:20px;font-size:20px;display:flex}.univer-exchange-link-list-inner-item-link-name{margin-left:var(--margin-xxs);color:var(--color-black);font-size:var(--font-size-sm);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.univer-exchange-link-list-inner-item-link-direct{display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;font-size:var(--font-size-lg);color:rgb(var(--text-color-secondary));background-color:transparent;border:none;border-radius:var(--border-radius-base);outline:none;transition:background-color .2s}.univer-exchange-link-list-inner-item-link-direct:hover{background-color:rgb(var(--bg-color-hover))}.univer-exchange-upload-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;height:28px;border-width:0;border-radius:6px;padding:0 var(--padding-sm);font-size:var(--font-size-xs);transition:all .15s;color:rgb(var(--hyacinth-500));background-color:transparent;border-color:transparent}.univer-exchange-upload-button:hover{background-color:rgb(var(--hyacinth-50))}.univer-exchange-upload-error{display:flex;flex-direction:column;align-items:flex-start;margin-top:var(--margin-lg)}.univer-exchange-upload-error-tip{color:var(--color-black);font-size:var(--font-size-sm);padding:0 var(--padding-lg) 0 var(--padding-sm);margin-bottom:var(--margin-sm)}.univer-exchange-upload-success{display:flex;padding:0 var(--padding-xs) 0 var(--padding-sm);align-items:center;justify-content:space-between;margin-top:var(--margin-sm)}.univer-exchange-upload-success-tip{color:rgb(var(--text-color-secondary));font-size:var(--font-size-xs)}.univer-exchange-uploading{display:flex;flex-direction:column;align-items:flex-start;margin-top:var(--margin-lg)}.univer-exchange-uploading-tip{color:var(--color-black);font-size:var(--font-size-sm);padding:0 var(--padding-lg) 0 var(--padding-sm)}.univer-exchange-uploading-progress{padding:0 var(--padding-lg) 0 var(--padding-sm)}.univer-exchange-upload-progress{width:324px;height:6px;margin:var(--margin-base) 0 var(--margin-sm) 0;background-color:rgb(var(--border-color));border-radius:var(--border-radius-lg)}.univer-exchange-upload-progress-inner{height:6px;border-radius:var(--border-radius-lg);transition:width .5s}.univer-exchange-upload-notification{position:fixed;z-index:1000;bottom:48px;right:12px;width:372px;display:flex;flex-direction:column;justify-content:flex-start;padding:var(--padding-xl) var(--padding-base) var(--padding-lg) var(--padding-base);background-color:#fff;border-radius:6px;box-shadow:var(--box-shadow-base);box-sizing:border-box}.univer-exchange-upload-notification-header{display:flex;align-items:center;justify-content:space-between;padding:0 var(--padding-sm) 0 6px}.univer-exchange-upload-notification-header-title{display:flex}.univer-exchange-upload-notification-header-icon{height:24px;font-size:24px}.univer-exchange-upload-notification-header-icon-success{color:rgb(var(--success-color))}.univer-exchange-upload-notification-header-icon-uploading{color:rgb(var(--info-color))}.univer-exchange-upload-notification-header-icon-error{color:rgb(var(--error-color))}.univer-exchange-upload-notification-header-text{margin-left:6px;line-height:24px;color:var(--color-black);font-size:17px;font-weight:600}.univer-exchange-upload-notification-header-close{cursor:pointer;display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;font-size:var(--font-size-lg);color:rgb(var(--text-color-secondary));background-color:transparent;border:none;border-radius:var(--border-radius-base);outline:none;transition:background-color .2s}.univer-exchange-upload-notification-header-close:hover{background-color:rgb(var(--bg-color-hover))}
@@ -1,4 +1,5 @@
1
- import { IDocumentData, IWorkbookData, FUniver } from '@univerjs/core';
1
+ import { IDocumentData, IWorkbookData } from '@univerjs/core';
2
+ import { FUniver } from '@univerjs/core/facade';
2
3
  /**
3
4
  * @ignore
4
5
  */
@@ -180,7 +181,7 @@ export declare class FUniverExchangeClientMixin extends FUniver implements IFUni
180
181
  */
181
182
  importDOCXToSnapshotAsync(file: string | File): Promise<IDocumentData | undefined>;
182
183
  }
183
- declare module '@univerjs/core' {
184
+ declare module '@univerjs/core/facade' {
184
185
  interface FUniver extends IFUniverExchangeClientMixin {
185
186
  }
186
187
  }
@@ -9,3 +9,4 @@ export { IUploadNotificationService, UploadNotificationService, UploadNotificati
9
9
  export { downloadFile, getUniverTypeByFile, getUploadFile } from './services/utils/tool';
10
10
  export { UploadNotificationContainer } from './views/UploadNotificationContainer';
11
11
  export { transformSnapshotJsonToWorkbookData, transformWorkbookDataToSnapshotJson } from './services/utils/snapshot';
12
+ export type { ISnapshotBlockJsonResponse } from './services/utils/snapshot';
@@ -13,6 +13,7 @@ declare const locales: {
13
13
  tooLarge: string;
14
14
  internalError: string;
15
15
  interrupt: string;
16
+ fileTypeError: string;
16
17
  wait: string;
17
18
  cancel: string;
18
19
  uploadAgain: string;
@@ -118,4 +118,12 @@ export declare class ExchangeOperateService extends Disposable implements IExcha
118
118
  private _addDoneTask;
119
119
  private _completeProgress;
120
120
  private _clearProgress;
121
+ /**
122
+ * Although we have specified the supported file types in advance, users can still switch to select all types of files.
123
+ In order to prevent such unsupported files from being transmitted to the server, they need to be intercepted in advance.
124
+ * @param fileList
125
+ * @param type
126
+ * @returns
127
+ */
128
+ private _fileTypeError;
121
129
  }
@@ -0,0 +1,16 @@
1
+ export declare const DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
2
+ export declare const XLSX = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
3
+ export declare const XLSM = "application/vnd.ms-excel.sheet.macroEnabled.12";
4
+ export declare const XLTX = "application/vnd.openxmlformats-officedocument.spreadsheetml.template";
5
+ export declare const PPTX = "application/vnd.openxmlformats-officedocument.presentationml.presentation";
6
+ export declare const UNIT_CONTENT_TYPE: {
7
+ 0: string[];
8
+ 1: string[];
9
+ 2: string[];
10
+ 3: string[];
11
+ 4: string[];
12
+ [-1]: string[];
13
+ };
14
+ export declare const CONTENT_TYPE_EXTNAME: {
15
+ [key: string]: string;
16
+ };
@@ -6,7 +6,12 @@ export declare function downloadFileByURL(url: string, filename: string, fileExt
6
6
  * @param {File} file - The File object to be downloaded.
7
7
  */
8
8
  export declare function downloadFile(file: File | Blob, filename: string, fileExt: string): void;
9
- export declare function getUniverTypeByFile(file: File): UniverType.UNIVER_UNKNOWN | UniverType.UNIVER_DOC | UniverType.UNIVER_SHEET | UniverType.UNIVER_SLIDE;
9
+ /**
10
+ * Get the UniverType of a file based on its content type and extension.
11
+ * @param file
12
+ * @returns
13
+ */
14
+ export declare function getUniverTypeByFile(file: File): UniverType.UNIVER_UNKNOWN;
10
15
  export declare function getUploadFile(types: UniverType[], multiple?: boolean): Promise<FileList | null>;
11
16
  export declare function getFileByURL(url: string): Promise<File | undefined>;
12
17
  export declare function getFileNameFromURL(url: string): string | undefined;
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- (function(_0xbc9dc2,_0x9b84fd){const _0x182a1d=_0x34f5,_0x317386=_0xbc9dc2();while(!![]){try{const _0x4b5044=parseInt(_0x182a1d(0x1f1))/0x1*(parseInt(_0x182a1d(0x1e7))/0x2)+parseInt(_0x182a1d(0x1ea))/0x3+-parseInt(_0x182a1d(0x1f7))/0x4*(-parseInt(_0x182a1d(0x1fd))/0x5)+-parseInt(_0x182a1d(0x1ef))/0x6+parseInt(_0x182a1d(0x1fe))/0x7+-parseInt(_0x182a1d(0x1f6))/0x8+parseInt(_0x182a1d(0x203))/0x9*(parseInt(_0x182a1d(0x201))/0xa);if(_0x4b5044===_0x9b84fd)break;else _0x317386['push'](_0x317386['shift']());}catch(_0xe33de1){_0x317386['push'](_0x317386['shift']());}}}(_0x1795,0xafebe),function(_0xb9e279,_0x1115a9){const _0x572aed=_0x34f5;typeof exports==_0x572aed(0x1fa)&&typeof module<'u'?_0x1115a9(require('@univerjs-pro/exchange-client'),require(_0x572aed(0x1fc))):typeof define=='function'&&define[_0x572aed(0x1ee)]?define([_0x572aed(0x1fb),'@univerjs/core'],_0x1115a9):(_0xb9e279=typeof globalThis<'u'?globalThis:_0xb9e279||self,_0x1115a9(_0xb9e279['UniverProExchangeClient'],_0xb9e279['UniverCore']));}(this,function(_0x49f990,_0x3e8fef){'use strict';const _0x26fcac=_0x34f5;var _0x164d58=(_0x161307=>(_0x161307[_0x161307[_0x26fcac(0x1ec)]=0x0]='UNIVER_UNKNOWN',_0x161307[_0x161307[_0x26fcac(0x207)]=0x1]='UNIVER_DOC',_0x161307[_0x161307[_0x26fcac(0x1e4)]=0x2]='UNIVER_SHEET',_0x161307[_0x161307[_0x26fcac(0x1f3)]=0x3]=_0x26fcac(0x1f3),_0x161307[_0x161307['UNIVER_PROJECT']=0x4]='UNIVER_PROJECT',_0x161307[_0x161307[_0x26fcac(0x200)]=-0x1]=_0x26fcac(0x200),_0x161307))(_0x164d58||{});class _0x5c304b extends _0x3e8fef[_0x26fcac(0x1ff)]{async[_0x26fcac(0x1e9)](_0x26ec03){const _0x3d05dc=_0x26fcac;return this[_0x3d05dc(0x1e6)](_0x26ec03);}async[_0x26fcac(0x1e6)](_0x5afc5d){const _0x163cc2=_0x26fcac,_0x56d4c6=this[_0x163cc2(0x1f4)][_0x163cc2(0x1e5)](_0x49f990[_0x163cc2(0x1f8)]);if(!_0x56d4c6)throw new Error(_0x163cc2(0x1f9));return _0x56d4c6[_0x163cc2(0x1ed)](_0x5afc5d,_0x164d58[_0x163cc2(0x1e4)]);}async['importXLSXToSnapshot'](_0x4bc2db){const _0xad26ab=_0x26fcac;return this[_0xad26ab(0x202)](_0x4bc2db);}async[_0x26fcac(0x202)](_0x3c63c6){const _0x4776da=_0x26fcac,_0x1acbe5=this[_0x4776da(0x1f4)][_0x4776da(0x1e5)](_0x49f990['IExchangeService']);if(!_0x1acbe5)throw new Error(_0x4776da(0x1f9));return _0x1acbe5['importXLSXToSnapshot'](_0x3c63c6);}async[_0x26fcac(0x1f5)](_0x102838){const _0x43124c=_0x26fcac;return this[_0x43124c(0x1f0)](_0x102838);}async[_0x26fcac(0x1f0)](_0x24c4e0){const _0xaecf62=_0x26fcac,_0x480d85=this[_0xaecf62(0x1f4)][_0xaecf62(0x1e5)](_0x49f990[_0xaecf62(0x1f8)]);if(!_0x480d85)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x480d85[_0xaecf62(0x1f5)](_0x24c4e0);}async[_0x26fcac(0x1e3)](_0x309c8f){const _0x529368=_0x26fcac;return this[_0x529368(0x204)](_0x309c8f);}async['exportXLSXBySnapshotAsync'](_0x16ab2f){const _0xfc424e=_0x26fcac,_0x53e1bc=this[_0xfc424e(0x1f4)]['get'](_0x49f990[_0xfc424e(0x1f8)]);if(!_0x53e1bc)throw new Error(_0xfc424e(0x1f9));return _0x53e1bc[_0xfc424e(0x1e3)](_0x16ab2f);}async[_0x26fcac(0x1eb)](_0x548878){const _0x1418ce=_0x26fcac;return this[_0x1418ce(0x1f2)](_0x548878);}async[_0x26fcac(0x1f2)](_0x7c5b81){const _0x3e4689=_0x26fcac,_0x4b2d37=this[_0x3e4689(0x1f4)][_0x3e4689(0x1e5)](_0x49f990['IExchangeService']);if(!_0x4b2d37)throw new Error(_0x3e4689(0x1f9));return _0x4b2d37['importFileToUnitId'](_0x7c5b81,_0x164d58[_0x3e4689(0x207)]);}async[_0x26fcac(0x205)](_0x2bf354){const _0x5985c3=_0x26fcac;return this[_0x5985c3(0x1e8)](_0x2bf354);}async[_0x26fcac(0x1e8)](_0x3f9034){const _0x5ac53a=_0x26fcac,_0x1fb647=this[_0x5ac53a(0x1f4)]['get'](_0x49f990[_0x5ac53a(0x1f8)]);if(!_0x1fb647)throw new Error(_0x5ac53a(0x1f9));return _0x1fb647[_0x5ac53a(0x205)](_0x3f9034);}}_0x3e8fef[_0x26fcac(0x1ff)][_0x26fcac(0x206)](_0x5c304b);}));function _0x34f5(_0x5cc910,_0x58b091){const _0x1795bb=_0x1795();return _0x34f5=function(_0x34f5d5,_0xef294c){_0x34f5d5=_0x34f5d5-0x1e3;let _0xa3a556=_0x1795bb[_0x34f5d5];return _0xa3a556;},_0x34f5(_0x5cc910,_0x58b091);}function _0x1795(){const _0x51d1b7=['52DPxEhE','IExchangeService','The\x20exchange\x20service\x20is\x20not\x20available','object','@univerjs-pro/exchange-client','@univerjs/core','36095ToNIDp','7381423okCGkk','FUniver','UNRECOGNIZED','30DsGbUB','importXLSXToSnapshotAsync','1257273vDySKw','exportXLSXBySnapshotAsync','importDOCXToSnapshot','extend','UNIVER_DOC','exportXLSXBySnapshot','UNIVER_SHEET','get','importXLSXToUnitIdAsync','346586OuWkox','importDOCXToSnapshotAsync','importXLSXToUnitId','2194119XJvedj','importDOCXToUnitId','UNIVER_UNKNOWN','importFileToUnitId','amd','4207740TnkuVe','exportXLSXByUnitIdAsync','3BKlWRx','importDOCXToUnitIdAsync','UNIVER_SLIDE','_injector','exportXLSXByUnitId','11174520RkPvLC'];_0x1795=function(){return _0x51d1b7;};return _0x1795();}
1
+ function _0xf334(_0x37da52,_0x49d919){const _0x353e19=_0x353e();return _0xf334=function(_0xf33435,_0x1a3065){_0xf33435=_0xf33435-0x18e;let _0xa70964=_0x353e19[_0xf33435];return _0xa70964;},_0xf334(_0x37da52,_0x49d919);}(function(_0xb86d17,_0x18c9c2){const _0x6a9b23=_0xf334,_0xc51ba6=_0xb86d17();while(!![]){try{const _0x2fef8d=parseInt(_0x6a9b23(0x191))/0x1*(parseInt(_0x6a9b23(0x19b))/0x2)+parseInt(_0x6a9b23(0x1ac))/0x3*(parseInt(_0x6a9b23(0x1a5))/0x4)+parseInt(_0x6a9b23(0x1b3))/0x5*(-parseInt(_0x6a9b23(0x1b0))/0x6)+-parseInt(_0x6a9b23(0x1b2))/0x7+parseInt(_0x6a9b23(0x18e))/0x8+parseInt(_0x6a9b23(0x197))/0x9+-parseInt(_0x6a9b23(0x1ae))/0xa*(-parseInt(_0x6a9b23(0x1ad))/0xb);if(_0x2fef8d===_0x18c9c2)break;else _0xc51ba6['push'](_0xc51ba6['shift']());}catch(_0x17c743){_0xc51ba6['push'](_0xc51ba6['shift']());}}}(_0x353e,0x92a79),function(_0x5deff8,_0x26b597){const _0x42f066=_0xf334;typeof exports==_0x42f066(0x193)&&typeof module<'u'?_0x26b597(require('@univerjs-pro/exchange-client'),require(_0x42f066(0x19f))):typeof define=='function'&&define[_0x42f066(0x1a9)]?define([_0x42f066(0x192),'@univerjs/core/facade'],_0x26b597):(_0x5deff8=typeof globalThis<'u'?globalThis:_0x5deff8||self,_0x26b597(_0x5deff8['UniverProExchangeClient'],_0x5deff8['UniverCoreFacade']));}(this,function(_0x533f8b,_0x24c2ea){'use strict';const _0x428919=_0xf334;var _0x20e62f=(_0x4ad3fe=>(_0x4ad3fe[_0x4ad3fe[_0x428919(0x1af)]=0x0]=_0x428919(0x1af),_0x4ad3fe[_0x4ad3fe[_0x428919(0x194)]=0x1]=_0x428919(0x194),_0x4ad3fe[_0x4ad3fe[_0x428919(0x1a2)]=0x2]=_0x428919(0x1a2),_0x4ad3fe[_0x4ad3fe[_0x428919(0x1a3)]=0x3]='UNIVER_SLIDE',_0x4ad3fe[_0x4ad3fe[_0x428919(0x1a0)]=0x4]=_0x428919(0x1a0),_0x4ad3fe[_0x4ad3fe[_0x428919(0x1a6)]=-0x1]=_0x428919(0x1a6),_0x4ad3fe))(_0x20e62f||{});class _0x46a0c6 extends _0x24c2ea['FUniver']{async[_0x428919(0x19e)](_0x28cd0f){const _0x228bb0=_0x428919;return this[_0x228bb0(0x198)](_0x28cd0f);}async[_0x428919(0x198)](_0x128611){const _0x49db68=_0x428919,_0x14f1f0=this['_injector']['get'](_0x533f8b[_0x49db68(0x1a4)]);if(!_0x14f1f0)throw new Error(_0x49db68(0x18f));return _0x14f1f0[_0x49db68(0x196)](_0x128611,_0x20e62f['UNIVER_SHEET']);}async[_0x428919(0x199)](_0x443dcf){return this['importXLSXToSnapshotAsync'](_0x443dcf);}async[_0x428919(0x1ab)](_0x48df5){const _0x5329c3=_0x428919,_0x584958=this[_0x5329c3(0x190)][_0x5329c3(0x1a8)](_0x533f8b[_0x5329c3(0x1a4)]);if(!_0x584958)throw new Error(_0x5329c3(0x18f));return _0x584958['importXLSXToSnapshot'](_0x48df5);}async[_0x428919(0x19c)](_0x2c4757){const _0x5a6fb5=_0x428919;return this[_0x5a6fb5(0x19a)](_0x2c4757);}async[_0x428919(0x19a)](_0xf10d88){const _0x74a2f6=_0x428919,_0x28f072=this[_0x74a2f6(0x190)][_0x74a2f6(0x1a8)](_0x533f8b[_0x74a2f6(0x1a4)]);if(!_0x28f072)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x28f072[_0x74a2f6(0x19c)](_0xf10d88);}async['exportXLSXBySnapshot'](_0xb1a237){const _0x46d663=_0x428919;return this[_0x46d663(0x1a7)](_0xb1a237);}async[_0x428919(0x1a7)](_0x520767){const _0x3942ec=_0x428919,_0x2c29e1=this[_0x3942ec(0x190)][_0x3942ec(0x1a8)](_0x533f8b[_0x3942ec(0x1a4)]);if(!_0x2c29e1)throw new Error(_0x3942ec(0x18f));return _0x2c29e1[_0x3942ec(0x19d)](_0x520767);}async[_0x428919(0x1a1)](_0x5b94e3){const _0x40ae62=_0x428919;return this[_0x40ae62(0x1b4)](_0x5b94e3);}async['importDOCXToUnitIdAsync'](_0x515895){const _0x5d1a2d=_0x428919,_0x150bd2=this['_injector']['get'](_0x533f8b[_0x5d1a2d(0x1a4)]);if(!_0x150bd2)throw new Error(_0x5d1a2d(0x18f));return _0x150bd2['importFileToUnitId'](_0x515895,_0x20e62f[_0x5d1a2d(0x194)]);}async['importDOCXToSnapshot'](_0x2f0ddf){const _0x38eb39=_0x428919;return this[_0x38eb39(0x1aa)](_0x2f0ddf);}async[_0x428919(0x1aa)](_0x504b64){const _0x340dd6=_0x428919,_0x22a2c3=this[_0x340dd6(0x190)]['get'](_0x533f8b[_0x340dd6(0x1a4)]);if(!_0x22a2c3)throw new Error(_0x340dd6(0x18f));return _0x22a2c3[_0x340dd6(0x195)](_0x504b64);}}_0x24c2ea['FUniver'][_0x428919(0x1b1)](_0x46a0c6);}));function _0x353e(){const _0x5967c3=['exportXLSXBySnapshotAsync','get','amd','importDOCXToSnapshotAsync','importXLSXToSnapshotAsync','657qrUTfW','50677wfaVrO','1250QxmvLM','UNIVER_UNKNOWN','138hJLGjI','extend','6968129QpCvjR','66345VczIiO','importDOCXToUnitIdAsync','6832296YqVgUX','The\x20exchange\x20service\x20is\x20not\x20available','_injector','929GeNRkm','@univerjs-pro/exchange-client','object','UNIVER_DOC','importDOCXToSnapshot','importFileToUnitId','356292ArpZlz','importXLSXToUnitIdAsync','importXLSXToSnapshot','exportXLSXByUnitIdAsync','668samUFi','exportXLSXByUnitId','exportXLSXBySnapshot','importXLSXToUnitId','@univerjs/core/facade','UNIVER_PROJECT','importDOCXToUnitId','UNIVER_SHEET','UNIVER_SLIDE','IExchangeService','2220MGxdIv','UNRECOGNIZED'];_0x353e=function(){return _0x5967c3;};return _0x353e();}