@univerjs-pro/exchange-client 0.6.3 → 0.6.4-nightly.202503101606

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 _0x359c14=_0xe913;function _0xe913(_0xa138e4,_0x782547){const _0x3565c2=_0x3565();return _0xe913=function(_0xe91397,_0x416e69){_0xe91397=_0xe91397-0x1de;let _0x4779a6=_0x3565c2[_0xe91397];return _0x4779a6;},_0xe913(_0xa138e4,_0x782547);}(function(_0x523358,_0x575d7f){const _0x424651=_0xe913,_0x2439de=_0x523358();while(!![]){try{const _0x2295b1=-parseInt(_0x424651(0x1e9))/0x1*(parseInt(_0x424651(0x1eb))/0x2)+-parseInt(_0x424651(0x1f3))/0x3+parseInt(_0x424651(0x1ea))/0x4*(parseInt(_0x424651(0x1e1))/0x5)+-parseInt(_0x424651(0x1e7))/0x6*(-parseInt(_0x424651(0x1f2))/0x7)+-parseInt(_0x424651(0x1e2))/0x8*(-parseInt(_0x424651(0x1ec))/0x9)+parseInt(_0x424651(0x1ef))/0xa*(-parseInt(_0x424651(0x1ee))/0xb)+parseInt(_0x424651(0x1e4))/0xc*(-parseInt(_0x424651(0x1f4))/0xd);if(_0x2295b1===_0x575d7f)break;else _0x2439de['push'](_0x2439de['shift']());}catch(_0x1f5d2b){_0x2439de['push'](_0x2439de['shift']());}}}(_0x3565,0x55688));const e={'exchange':{'file':'File','upload':_0x359c14(0x1df),'download':'Save\x20As','uploading':_0x359c14(0x1e0),'uploadSuccess':'File\x20uploaded\x20successfully','uploadSuccessTip':_0x359c14(0x1f0),'downloading':'Downloading','downloadSuccess':_0x359c14(0x1e8),'unknownMistake':_0x359c14(0x1e3),'networkError':_0x359c14(0x1e5),'tooLarge':_0x359c14(0x1f1),'internalError':'Internal\x20unknown\x20error','interrupt':_0x359c14(0x1e6),'fileTypeError':_0x359c14(0x1de),'wait':'Please\x20wait...','cancel':'Cancel','uploadAgain':_0x359c14(0x1ed)}};function _0x3565(){const _0x51cfdd=['107395LvlZKT','240188LGSjSY','2xSHrUp','4743vcvzgy','Upload\x20again','22GGlPtL','1038550MisVkA','{0}\x20file(s)\x20uploaded\x20successfully','Data\x20is\x20too\x20large','1050nEiPAi','81960JXMEUW','1384084KMjUdS','Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','Open(File)','Uploading','45cvsuuf','5968lkAGrj','Unknown\x20mistake','72kHkSgN','Network\x20error','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','15900lMKHRn','Download\x20success'];_0x3565=function(){return _0x51cfdd;};return _0x3565();}export{e as default};
1
+ const _0x506525=_0x17ca;function _0x17ca(_0x5786d2,_0x41f19c){const _0x34437b=_0x3443();return _0x17ca=function(_0x17ca44,_0x1c2d02){_0x17ca44=_0x17ca44-0x10e;let _0x118201=_0x34437b[_0x17ca44];return _0x118201;},_0x17ca(_0x5786d2,_0x41f19c);}(function(_0x2fa572,_0x11c6dd){const _0x161210=_0x17ca,_0x5aa97a=_0x2fa572();while(!![]){try{const _0x3ec98c=-parseInt(_0x161210(0x120))/0x1+-parseInt(_0x161210(0x112))/0x2+-parseInt(_0x161210(0x115))/0x3+-parseInt(_0x161210(0x118))/0x4+-parseInt(_0x161210(0x122))/0x5*(parseInt(_0x161210(0x11e))/0x6)+parseInt(_0x161210(0x113))/0x7+parseInt(_0x161210(0x11f))/0x8*(parseInt(_0x161210(0x111))/0x9);if(_0x3ec98c===_0x11c6dd)break;else _0x5aa97a['push'](_0x5aa97a['shift']());}catch(_0x47065b){_0x5aa97a['push'](_0x5aa97a['shift']());}}}(_0x3443,0x4efa8));function _0x3443(){const _0x1172fa=['Unknown\x20mistake','Data\x20is\x20too\x20large','Cancel','Upload\x20again','780IjSRUU','383736lcMmlH','610049ybZEPE','Downloading','510LcQzkM','Uploading','Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','Please\x20wait...','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','234NMilUn','72636PzIWYs','2455068wDtVGt','File','296985RFiZFo','Open(File)','Download\x20success','2062992LltSUx','Network\x20error'];_0x3443=function(){return _0x1172fa;};return _0x3443();}const e={'exchange':{'file':_0x506525(0x114),'upload':_0x506525(0x116),'download':'Save\x20As','uploading':_0x506525(0x123),'uploadSuccess':'File\x20uploaded\x20successfully','uploadSuccessTip':'{0}\x20file(s)\x20uploaded\x20successfully','downloading':_0x506525(0x121),'downloadSuccess':_0x506525(0x117),'unknownMistake':_0x506525(0x11a),'networkError':_0x506525(0x119),'tooLarge':_0x506525(0x11b),'internalError':'Internal\x20unknown\x20error','interrupt':_0x506525(0x110),'fileTypeError':_0x506525(0x10e),'wait':_0x506525(0x10f),'cancel':_0x506525(0x11c),'uploadAgain':_0x506525(0x11d)}};export{e as default};
@@ -1 +1 @@
1
- const _0x53b65c=_0x4754;(function(_0x31f20c,_0x27a7b0){const _0x32fd2b=_0x4754,_0x4df88c=_0x31f20c();while(!![]){try{const _0x29bf26=parseInt(_0x32fd2b(0xd0))/0x1*(-parseInt(_0x32fd2b(0xd3))/0x2)+-parseInt(_0x32fd2b(0xcc))/0x3+-parseInt(_0x32fd2b(0xd6))/0x4*(parseInt(_0x32fd2b(0xcf))/0x5)+-parseInt(_0x32fd2b(0xd9))/0x6+parseInt(_0x32fd2b(0xca))/0x7*(-parseInt(_0x32fd2b(0xc8))/0x8)+-parseInt(_0x32fd2b(0xda))/0x9*(-parseInt(_0x32fd2b(0xd8))/0xa)+parseInt(_0x32fd2b(0xd1))/0xb;if(_0x29bf26===_0x27a7b0)break;else _0x4df88c['push'](_0x4df88c['shift']());}catch(_0x41b112){_0x4df88c['push'](_0x4df88c['shift']());}}}(_0x5401,0x840f1));const o={'exchange':{'file':'فایل','upload':'بازکردن(فایل)','download':_0x53b65c(0xd5),'uploading':_0x53b65c(0xd4),'uploadSuccess':_0x53b65c(0xcb),'uploadSuccessTip':_0x53b65c(0xd2),'downloading':_0x53b65c(0xcd),'downloadSuccess':'دانلود\x20موفقیت\x20آمیز','unknownMistake':_0x53b65c(0xce),'networkError':_0x53b65c(0xc7),'tooLarge':'داده\x20خیلی\x20بزرگ\x20است','internalError':_0x53b65c(0xc9),'interrupt':'اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','fileTypeError':'فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمی‌شود','wait':_0x53b65c(0xdb),'cancel':_0x53b65c(0xd7),'uploadAgain':'بارگذاری\x20مجدد'}};function _0x4754(_0x54744f,_0x91ec46){const _0x5401a7=_0x5401();return _0x4754=function(_0x4754ff,_0x5e0937){_0x4754ff=_0x4754ff-0xc7;let _0x588fac=_0x5401a7[_0x4754ff];return _0x588fac;},_0x4754(_0x54744f,_0x91ec46);}export{o as default};function _0x5401(){const _0x3c4e2e=['در\x20حال\x20بارگذاری','ذخیره\x20به\x20عنوان','561548HBQRxv','لغو','2681430vJxqiU','6388266GHpYWJ','27xSOMNW','لطفا\x20صبر\x20کنید...','خطای\x20شبکه','640UWhHrE','خطای\x20داخلی\x20ناشناخته','9212mROAhp','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','2933733feFPJf','در\x20حال\x20دانلود','خطای\x20ناشناخته','20lYwwkh','5uPFGCx','37212604bTNjhV','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','374812LfJDai'];_0x5401=function(){return _0x3c4e2e;};return _0x5401();}
1
+ const _0x1aee78=_0xbfdb;(function(_0x47c88b,_0x1a29aa){const _0x135092=_0xbfdb,_0xdec047=_0x47c88b();while(!![]){try{const _0x5ee513=parseInt(_0x135092(0x1f5))/0x1+parseInt(_0x135092(0x1f0))/0x2+-parseInt(_0x135092(0x1f4))/0x3+-parseInt(_0x135092(0x1ed))/0x4*(-parseInt(_0x135092(0x1ee))/0x5)+parseInt(_0x135092(0x1f9))/0x6+parseInt(_0x135092(0x1eb))/0x7*(parseInt(_0x135092(0x1fb))/0x8)+-parseInt(_0x135092(0x1f6))/0x9;if(_0x5ee513===_0x1a29aa)break;else _0xdec047['push'](_0xdec047['shift']());}catch(_0x32e894){_0xdec047['push'](_0xdec047['shift']());}}}(_0x3b88,0x96644));function _0xbfdb(_0x1b7d61,_0x4ac46b){const _0x3b88d2=_0x3b88();return _0xbfdb=function(_0xbfdb8e,_0xd5006f){_0xbfdb8e=_0xbfdb8e-0x1e8;let _0x5224ee=_0x3b88d2[_0xbfdb8e];return _0x5224ee;},_0xbfdb(_0x1b7d61,_0x4ac46b);}const o={'exchange':{'file':_0x1aee78(0x1f8),'upload':_0x1aee78(0x1ef),'download':_0x1aee78(0x1fa),'uploading':'در\x20حال\x20بارگذاری','uploadSuccess':_0x1aee78(0x1ec),'uploadSuccessTip':_0x1aee78(0x1f2),'downloading':_0x1aee78(0x1f3),'downloadSuccess':'دانلود\x20موفقیت\x20آمیز','unknownMistake':'خطای\x20ناشناخته','networkError':_0x1aee78(0x1e8),'tooLarge':_0x1aee78(0x1f7),'internalError':_0x1aee78(0x1e9),'interrupt':_0x1aee78(0x1ea),'fileTypeError':_0x1aee78(0x1f1),'wait':'لطفا\x20صبر\x20کنید...','cancel':_0x1aee78(0x1fc),'uploadAgain':'بارگذاری\x20مجدد'}};function _0x3b88(){const _0x4ec190=['خطای\x20شبکه','خطای\x20داخلی\x20ناشناخته','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','2336012TzuzaH','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','815084SwwCji','5YhrrcS','بازکردن(فایل)','860358PKpDlh','فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمی‌شود','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','در\x20حال\x20دانلود','2917446DQavtY','863495rFAavK','6250851cKQnfc','داده\x20خیلی\x20بزرگ\x20است','فایل','2711184dUoYdV','ذخیره\x20به\x20عنوان','8KEanqy','لغو'];_0x3b88=function(){return _0x4ec190;};return _0x3b88();}export{o as default};
@@ -1 +1 @@
1
- const _0x5b8733=_0x5758;(function(_0x2130a6,_0x19ce28){const _0x3f26ed=_0x5758,_0x21506e=_0x2130a6();while(!![]){try{const _0x253288=-parseInt(_0x3f26ed(0x18d))/0x1+-parseInt(_0x3f26ed(0x186))/0x2*(-parseInt(_0x3f26ed(0x183))/0x3)+-parseInt(_0x3f26ed(0x17a))/0x4+-parseInt(_0x3f26ed(0x18b))/0x5+parseInt(_0x3f26ed(0x187))/0x6*(parseInt(_0x3f26ed(0x18c))/0x7)+-parseInt(_0x3f26ed(0x17e))/0x8*(-parseInt(_0x3f26ed(0x17b))/0x9)+parseInt(_0x3f26ed(0x17c))/0xa*(-parseInt(_0x3f26ed(0x185))/0xb);if(_0x253288===_0x19ce28)break;else _0x21506e['push'](_0x21506e['shift']());}catch(_0x2ae7f4){_0x21506e['push'](_0x21506e['shift']());}}}(_0x2fa2,0x5c3a5));const e={'exchange':{'file':'Fichier','upload':_0x5b8733(0x180),'download':'Enregistrer\x20sous','uploading':_0x5b8733(0x17f),'uploadSuccess':_0x5b8733(0x17d),'uploadSuccessTip':_0x5b8733(0x182),'downloading':_0x5b8733(0x18e),'downloadSuccess':_0x5b8733(0x18a),'unknownMistake':_0x5b8733(0x18f),'networkError':_0x5b8733(0x189),'tooLarge':'Les\x20données\x20sont\x20trop\x20volumineuses','internalError':'Erreur\x20interne\x20inconnue','interrupt':_0x5b8733(0x181),'fileTypeError':_0x5b8733(0x190),'wait':_0x5b8733(0x191),'cancel':_0x5b8733(0x184),'uploadAgain':_0x5b8733(0x188)}};function _0x5758(_0x54f180,_0x3e80f8){const _0x2fa287=_0x2fa2();return _0x5758=function(_0x57588f,_0xd4021d){_0x57588f=_0x57588f-0x17a;let _0x109ac2=_0x2fa287[_0x57588f];return _0x109ac2;},_0x5758(_0x54f180,_0x3e80f8);}export{e as default};function _0x2fa2(){const _0x20c7fd=['Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','Veuillez\x20patienter...','696304SVdfqb','108684NnojxT','380080fQWKXp','Fichier\x20téléchargé\x20avec\x20succès','400fHxIqh','Téléchargement\x20en\x20cours','Ouvrir\x20(Fichier)','La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','3CbgdRA','Annuler','55vWWanf','639594YIbDnT','368796MlxdOm','Télécharger\x20à\x20nouveau','Erreur\x20réseau','Téléchargement\x20réussi','2519205PKVKgg','56CcvfHu','169603PeYRSj','Téléchargement','Erreur\x20inconnue'];_0x2fa2=function(){return _0x20c7fd;};return _0x2fa2();}
1
+ const _0x5ea003=_0x1df4;(function(_0x276e76,_0x33e78e){const _0x1a29bb=_0x1df4,_0x5108cc=_0x276e76();while(!![]){try{const _0x3d7eef=parseInt(_0x1a29bb(0x98))/0x1*(-parseInt(_0x1a29bb(0x97))/0x2)+parseInt(_0x1a29bb(0x8c))/0x3+-parseInt(_0x1a29bb(0x8a))/0x4*(parseInt(_0x1a29bb(0x89))/0x5)+parseInt(_0x1a29bb(0x93))/0x6+parseInt(_0x1a29bb(0x9a))/0x7+parseInt(_0x1a29bb(0x8e))/0x8*(-parseInt(_0x1a29bb(0x86))/0x9)+parseInt(_0x1a29bb(0x8d))/0xa*(parseInt(_0x1a29bb(0x84))/0xb);if(_0x3d7eef===_0x33e78e)break;else _0x5108cc['push'](_0x5108cc['shift']());}catch(_0x429db0){_0x5108cc['push'](_0x5108cc['shift']());}}}(_0x2b6f,0x3aa3c));const e={'exchange':{'file':_0x5ea003(0x91),'upload':_0x5ea003(0x95),'download':'Enregistrer\x20sous','uploading':_0x5ea003(0x8f),'uploadSuccess':_0x5ea003(0x92),'uploadSuccessTip':_0x5ea003(0x90),'downloading':_0x5ea003(0x99),'downloadSuccess':'Téléchargement\x20réussi','unknownMistake':_0x5ea003(0x83),'networkError':_0x5ea003(0x94),'tooLarge':'Les\x20données\x20sont\x20trop\x20volumineuses','internalError':_0x5ea003(0x85),'interrupt':_0x5ea003(0x88),'fileTypeError':'Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','wait':_0x5ea003(0x96),'cancel':_0x5ea003(0x87),'uploadAgain':_0x5ea003(0x8b)}};function _0x2b6f(){const _0x12cc4c=['Veuillez\x20patienter...','826976YVzmMp','1uisYDC','Téléchargement','2812551eFhBQQ','Erreur\x20inconnue','385440YlRdsy','Erreur\x20interne\x20inconnue','25884yTKpDC','Annuler','La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','5ZllHyt','1871404TUHrbp','Télécharger\x20à\x20nouveau','1338285SSqWis','60TEEWPi','560JmJcNS','Téléchargement\x20en\x20cours','{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','Fichier','Fichier\x20téléchargé\x20avec\x20succès','1588314umqFgA','Erreur\x20réseau','Ouvrir\x20(Fichier)'];_0x2b6f=function(){return _0x12cc4c;};return _0x2b6f();}function _0x1df4(_0x570be6,_0x3656ad){const _0x2b6f5c=_0x2b6f();return _0x1df4=function(_0x1df4a8,_0x20b5f2){_0x1df4a8=_0x1df4a8-0x83;let _0x3e8203=_0x2b6f5c[_0x1df4a8];return _0x3e8203;},_0x1df4(_0x570be6,_0x3656ad);}export{e as default};
@@ -1 +1 @@
1
- const _0x55575f=_0xc4b6;(function(_0x52ac4f,_0xb023fa){const _0x487330=_0xc4b6,_0x9c541b=_0x52ac4f();while(!![]){try{const _0x35f955=-parseInt(_0x487330(0xc0))/0x1*(parseInt(_0x487330(0xd3))/0x2)+parseInt(_0x487330(0xd5))/0x3+parseInt(_0x487330(0xcd))/0x4+-parseInt(_0x487330(0xc4))/0x5*(-parseInt(_0x487330(0xc2))/0x6)+parseInt(_0x487330(0xd1))/0x7*(parseInt(_0x487330(0xc3))/0x8)+-parseInt(_0x487330(0xbe))/0x9+parseInt(_0x487330(0xd0))/0xa*(-parseInt(_0x487330(0xcc))/0xb);if(_0x35f955===_0xb023fa)break;else _0x9c541b['push'](_0x9c541b['shift']());}catch(_0x6f3bd5){_0x9c541b['push'](_0x9c541b['shift']());}}}(_0x3c71,0x37f82));const o={'exchange':{'file':_0x55575f(0xca),'upload':_0x55575f(0xc5),'download':_0x55575f(0xc8),'uploading':_0x55575f(0xbf),'uploadSuccess':'Файл\x20успешно\x20загружен','uploadSuccessTip':_0x55575f(0xc7),'downloading':_0x55575f(0xd4),'downloadSuccess':_0x55575f(0xc6),'unknownMistake':'Неизвестная\x20ошибка','networkError':_0x55575f(0xcb),'tooLarge':_0x55575f(0xc9),'internalError':_0x55575f(0xc1),'interrupt':'Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','fileTypeError':_0x55575f(0xce),'wait':_0x55575f(0xcf),'cancel':'Отмена','uploadAgain':_0x55575f(0xd2)}};export{o as default};function _0xc4b6(_0x52957b,_0x12528b){const _0x3c7199=_0x3c71();return _0xc4b6=function(_0xc4b6d7,_0x39e6a2){_0xc4b6d7=_0xc4b6d7-0xbe;let _0x38e49d=_0x3c7199[_0xc4b6d7];return _0x38e49d;},_0xc4b6(_0x52957b,_0x12528b);}function _0x3c71(){const _0x28dfc2=['{0}\x20файл(ов)\x20успешно\x20загружен(о)','Сохранить\x20как','Данные\x20слишком\x20большие','Файл','Сетевая\x20ошибка','374ZBqkyb','316996CsFsfJ','Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','Пожалуйста,\x20подождите...','26660tRgTxr','122381PsAOrX','Загрузить\x20снова','2fWJACo','Скачивание','167709WhYVfR','2943009igGfiI','Загрузка','18533UxZTzA','Внутренняя\x20неизвестная\x20ошибка','1278DeezpY','56hKRVyE','9575YRKhgs','Открыть(Файл)','Скачивание\x20успешно'];_0x3c71=function(){return _0x28dfc2;};return _0x3c71();}
1
+ function _0x215a(){const _0x5bdeb5=['Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','Внутренняя\x20неизвестная\x20ошибка','Данные\x20слишком\x20большие','Файл\x20успешно\x20загружен','10966szNSYX','Сохранить\x20как','5048395IaWdjr','Пожалуйста,\x20подождите...','Открыть(Файл)','3IwOMnH','Сетевая\x20ошибка','103AwEvNx','Загрузка','629456PuNzex','18UwcLtQ','Отмена','6256890uNizKp','8159656JfSijU','2215374SiHnur','Скачивание','{0}\x20файл(ов)\x20успешно\x20загружен(о)','2494270fxfhLD'];_0x215a=function(){return _0x5bdeb5;};return _0x215a();}const _0x3f26bc=_0x5b1b;function _0x5b1b(_0x32d7c0,_0x53cc7e){const _0x215a39=_0x215a();return _0x5b1b=function(_0x5b1b61,_0x566538){_0x5b1b61=_0x5b1b61-0x17c;let _0x4de0c5=_0x215a39[_0x5b1b61];return _0x4de0c5;},_0x5b1b(_0x32d7c0,_0x53cc7e);}(function(_0x115695,_0x1a8921){const _0xf62ab7=_0x5b1b,_0x25dbd9=_0x115695();while(!![]){try{const _0x47a52b=parseInt(_0xf62ab7(0x184))/0x1*(parseInt(_0xf62ab7(0x17d))/0x2)+-parseInt(_0xf62ab7(0x182))/0x3*(parseInt(_0xf62ab7(0x186))/0x4)+-parseInt(_0xf62ab7(0x17f))/0x5+parseInt(_0xf62ab7(0x189))/0x6+-parseInt(_0xf62ab7(0x18b))/0x7+parseInt(_0xf62ab7(0x18a))/0x8+parseInt(_0xf62ab7(0x187))/0x9*(-parseInt(_0xf62ab7(0x18e))/0xa);if(_0x47a52b===_0x1a8921)break;else _0x25dbd9['push'](_0x25dbd9['shift']());}catch(_0x670c3f){_0x25dbd9['push'](_0x25dbd9['shift']());}}}(_0x215a,0x9d816));const o={'exchange':{'file':'Файл','upload':_0x3f26bc(0x181),'download':_0x3f26bc(0x17e),'uploading':_0x3f26bc(0x185),'uploadSuccess':_0x3f26bc(0x17c),'uploadSuccessTip':_0x3f26bc(0x18d),'downloading':_0x3f26bc(0x18c),'downloadSuccess':'Скачивание\x20успешно','unknownMistake':'Неизвестная\x20ошибка','networkError':_0x3f26bc(0x183),'tooLarge':_0x3f26bc(0x192),'internalError':_0x3f26bc(0x191),'interrupt':_0x3f26bc(0x18f),'fileTypeError':_0x3f26bc(0x190),'wait':_0x3f26bc(0x180),'cancel':_0x3f26bc(0x188),'uploadAgain':'Загрузить\x20снова'}};export{o as default};
@@ -1 +1 @@
1
- const _0x571396=_0x5a03;(function(_0x2e4b5f,_0x2dae36){const _0x45146b=_0x5a03,_0x18da16=_0x2e4b5f();while(!![]){try{const _0x5a471b=-parseInt(_0x45146b(0x1f1))/0x1*(-parseInt(_0x45146b(0x1e8))/0x2)+parseInt(_0x45146b(0x1f3))/0x3*(parseInt(_0x45146b(0x1ef))/0x4)+-parseInt(_0x45146b(0x1f5))/0x5+-parseInt(_0x45146b(0x1e1))/0x6*(parseInt(_0x45146b(0x1ed))/0x7)+parseInt(_0x45146b(0x1e9))/0x8+-parseInt(_0x45146b(0x1e6))/0x9*(parseInt(_0x45146b(0x1e5))/0xa)+parseInt(_0x45146b(0x1f0))/0xb;if(_0x5a471b===_0x2dae36)break;else _0x18da16['push'](_0x18da16['shift']());}catch(_0x28eacb){_0x18da16['push'](_0x18da16['shift']());}}}(_0x23e6,0xedfc0));function _0x23e6(){const _0x12646a=['{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','1107642RrYlJu','Tệp','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','Đang\x20tải\x20lên','10Cdlksa','859167vlvbkt','Vui\x20lòng\x20đợi...','28FelcTs','10407192VHvzBe','Đang\x20tải\x20xuống','Luồng\x20dữ\x20liệu\x20quá\x20lớn','Tải\x20xuống\x20thành\x20công','63BkYTUZ','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','33336pkavaV','3872803WTBjcR','10987epVJWw','Hủy\x20b','558QKGlJu','Lỗi\x20không\x20xác\x20định','3126020fGgdPY','Tải\x20lên\x20tệp\x20thành\x20công'];_0x23e6=function(){return _0x12646a;};return _0x23e6();}function _0x5a03(_0x20153d,_0x1de880){const _0x23e6a2=_0x23e6();return _0x5a03=function(_0x5a0372,_0x401ca0){_0x5a0372=_0x5a0372-0x1df;let _0x2692aa=_0x23e6a2[_0x5a0372];return _0x2692aa;},_0x5a03(_0x20153d,_0x1de880);}const n={'exchange':{'file':_0x571396(0x1e2),'upload':'Mở\x20(Tệp)','download':'Lưu\x20dưới\x20dạng','uploading':_0x571396(0x1e4),'uploadSuccess':_0x571396(0x1df),'uploadSuccessTip':_0x571396(0x1e0),'downloading':_0x571396(0x1ea),'downloadSuccess':_0x571396(0x1ec),'unknownMistake':_0x571396(0x1f4),'networkError':'Lỗi\x20mạng','tooLarge':_0x571396(0x1eb),'internalError':_0x571396(0x1e3),'interrupt':_0x571396(0x1ee),'fileTypeError':'Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','wait':_0x571396(0x1e7),'cancel':_0x571396(0x1f2),'uploadAgain':'Tải\x20lên\x20lại'}};export{n as default};
1
+ function _0x4b5d(_0x3d46d9,_0x2c0627){const _0x4cc0ae=_0x4cc0();return _0x4b5d=function(_0x4b5dc7,_0x4dd379){_0x4b5dc7=_0x4b5dc7-0xe4;let _0x4b88ba=_0x4cc0ae[_0x4b5dc7];return _0x4b88ba;},_0x4b5d(_0x3d46d9,_0x2c0627);}function _0x4cc0(){const _0x5a65d2=['Tải\x20lên\x20tệp\x20thành\x20công','Đang\x20tải\x20lên','9058104FxtXzi','11416zWArAE','Tải\x20xuống\x20thành\x20công','Luồng\x20dữ\x20liệu\x20quá\x20lớn','Hủy\x20b','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','Lưu\x20dưới\x20dạng','Tệp','Mở\x20(Tệp)','24864syebZa','164184meFSyu','98zstxiD','Tải\x20lên\x20lại','Vui\x20lòng\x20đợi...','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','Lỗi\x20mạng','Đang\x20tải\x20xuống','40oZJvGp','2010582lObNKA','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','649302nxBghD','Lỗi\x20không\x20xác\x20định','1407786dObOIR'];_0x4cc0=function(){return _0x5a65d2;};return _0x4cc0();}const _0x3d3dad=_0x4b5d;(function(_0xda4589,_0xa00344){const _0x2616b4=_0x4b5d,_0x347e35=_0xda4589();while(!![]){try{const _0x463b36=parseInt(_0x2616b4(0xf6))/0x1+parseInt(_0x2616b4(0xe8))/0x2+parseInt(_0x2616b4(0xea))/0x3+parseInt(_0x2616b4(0xee))/0x4*(-parseInt(_0x2616b4(0xe5))/0x5)+parseInt(_0x2616b4(0xe6))/0x6+-parseInt(_0x2616b4(0xf8))/0x7*(-parseInt(_0x2616b4(0xf7))/0x8)+-parseInt(_0x2616b4(0xed))/0x9;if(_0x463b36===_0xa00344)break;else _0x347e35['push'](_0x347e35['shift']());}catch(_0x5bf446){_0x347e35['push'](_0x347e35['shift']());}}}(_0x4cc0,0x64904));const n={'exchange':{'file':_0x3d3dad(0xf4),'upload':_0x3d3dad(0xf5),'download':_0x3d3dad(0xf3),'uploading':_0x3d3dad(0xec),'uploadSuccess':_0x3d3dad(0xeb),'uploadSuccessTip':_0x3d3dad(0xf2),'downloading':_0x3d3dad(0xe4),'downloadSuccess':_0x3d3dad(0xef),'unknownMistake':_0x3d3dad(0xe9),'networkError':_0x3d3dad(0xfc),'tooLarge':_0x3d3dad(0xf0),'internalError':_0x3d3dad(0xe7),'interrupt':'Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','fileTypeError':_0x3d3dad(0xfb),'wait':_0x3d3dad(0xfa),'cancel':_0x3d3dad(0xf1),'uploadAgain':_0x3d3dad(0xf9)}};export{n as default};
@@ -1 +1 @@
1
- const _0x313fb1=_0x4fee;(function(_0x2e821c,_0x2d8a4c){const _0x3555dc=_0x4fee,_0x156ede=_0x2e821c();while(!![]){try{const _0x240329=parseInt(_0x3555dc(0xfd))/0x1*(parseInt(_0x3555dc(0x101))/0x2)+parseInt(_0x3555dc(0xf5))/0x3*(parseInt(_0x3555dc(0xed))/0x4)+parseInt(_0x3555dc(0xf6))/0x5*(parseInt(_0x3555dc(0xf2))/0x6)+parseInt(_0x3555dc(0xfc))/0x7*(parseInt(_0x3555dc(0xf8))/0x8)+-parseInt(_0x3555dc(0xf1))/0x9+parseInt(_0x3555dc(0xfe))/0xa+-parseInt(_0x3555dc(0x100))/0xb*(parseInt(_0x3555dc(0xfb))/0xc);if(_0x240329===_0x2d8a4c)break;else _0x156ede['push'](_0x156ede['shift']());}catch(_0x2fcb21){_0x156ede['push'](_0x156ede['shift']());}}}(_0x3f8e,0x6b83b));const o={'exchange':{'file':'文件','upload':_0x313fb1(0xee),'download':_0x313fb1(0xf7),'uploading':'上传中','uploadSuccess':'文件上传成功','uploadSuccessTip':_0x313fb1(0xf4),'downloading':'下载中','downloadSuccess':_0x313fb1(0xff),'unknownMistake':_0x313fb1(0xf9),'networkError':_0x313fb1(0xf3),'tooLarge':'数据流过大','internalError':'内部未知错误','interrupt':_0x313fb1(0xf0),'fileTypeError':_0x313fb1(0xec),'wait':_0x313fb1(0xfa),'cancel':'取消','uploadAgain':_0x313fb1(0xef)}};function _0x4fee(_0x4cefc5,_0x1c0233){const _0x3f8e90=_0x3f8e();return _0x4fee=function(_0x4fee6c,_0x134cae){_0x4fee6c=_0x4fee6c-0xec;let _0x3cb347=_0x3f8e90[_0x4fee6c];return _0x3cb347;},_0x4fee(_0x4cefc5,_0x1c0233);}function _0x3f8e(){const _0x33226e=['22DViPSm','28844NkeIXH','所选文件\x20[{0}]\x20不支持上传','1059596UZlnzA','打开(文件)','再次上传','网络连接中断,文件上传失败','1675215TONTVD','12BXAVxT','网络异常','{0}个文件上传成功','3DrHVCM','559315oXzggP','另存为','6822136silmQX','未知错误','请稍等...','7154172fRljrI','7eNmvzv','28oPisaM','736680RzPAhx','下载成功'];_0x3f8e=function(){return _0x33226e;};return _0x3f8e();}export{o as default};
1
+ function _0x1b76(_0x51edb0,_0x45b2dc){const _0x2ed3a0=_0x2ed3();return _0x1b76=function(_0x1b7674,_0x2cfc9e){_0x1b7674=_0x1b7674-0x17f;let _0x4380fe=_0x2ed3a0[_0x1b7674];return _0x4380fe;},_0x1b76(_0x51edb0,_0x45b2dc);}function _0x2ed3(){const _0x1da7fe=['965608NudUkG','所选文件\x20[{0}]\x20不支持上传','文件上传成功','32845EJDcLW','3837860HRhgXh','内部未知错误','数据流过大','未知错误','337041oYCQnU','198GgRuBC','请稍等...','另存为','下载中','73228Bidffe','39YhAKKa','1894576OzlmnC','44haYqKe','下载成功','上传中','打开(文件)','525580lJXAYF','网络连接中断,文件上传失败','18cqpwgw','网络异常'];_0x2ed3=function(){return _0x1da7fe;};return _0x2ed3();}const _0x447595=_0x1b76;(function(_0x1b4d9d,_0x19086a){const _0x43ff69=_0x1b76,_0x42669e=_0x1b4d9d();while(!![]){try{const _0x5bf403=-parseInt(_0x43ff69(0x189))/0x1+-parseInt(_0x43ff69(0x195))/0x2+-parseInt(_0x43ff69(0x18f))/0x3*(parseInt(_0x43ff69(0x18e))/0x4)+-parseInt(_0x43ff69(0x184))/0x5*(-parseInt(_0x43ff69(0x18a))/0x6)+-parseInt(_0x43ff69(0x181))/0x7+-parseInt(_0x43ff69(0x190))/0x8*(parseInt(_0x43ff69(0x17f))/0x9)+parseInt(_0x43ff69(0x185))/0xa*(parseInt(_0x43ff69(0x191))/0xb);if(_0x5bf403===_0x19086a)break;else _0x42669e['push'](_0x42669e['shift']());}catch(_0x588895){_0x42669e['push'](_0x42669e['shift']());}}}(_0x2ed3,0x49daf));const o={'exchange':{'file':'文件','upload':_0x447595(0x194),'download':_0x447595(0x18c),'uploading':_0x447595(0x193),'uploadSuccess':_0x447595(0x183),'uploadSuccessTip':'{0}个文件上传成功','downloading':_0x447595(0x18d),'downloadSuccess':_0x447595(0x192),'unknownMistake':_0x447595(0x188),'networkError':_0x447595(0x180),'tooLarge':_0x447595(0x187),'internalError':_0x447595(0x186),'interrupt':_0x447595(0x196),'fileTypeError':_0x447595(0x182),'wait':_0x447595(0x18b),'cancel':'取消','uploadAgain':'再次上传'}};export{o as default};
@@ -1 +1 @@
1
- function _0x4426(){const _0x49fafd=['網路異常','內部未知錯誤','1331034QgxgMU','上傳中','606635dMMffm','76334DjGVIu','請稍等...','1230312pjnhOX','2070RFcxhB','{0}個檔案上傳成功','12270lxTDBi','開啟(檔案)','632296hQUGve','422268ETkBRp','4tOTZqD','網路連線中斷,檔案上傳失敗','5ZHrBou','檔案上傳成功'];_0x4426=function(){return _0x49fafd;};return _0x4426();}const _0x5db37b=_0x48a7;function _0x48a7(_0x18593a,_0x3c18d4){const _0x442627=_0x4426();return _0x48a7=function(_0x48a739,_0x2f57c0){_0x48a739=_0x48a739-0xaf;let _0x51f4ba=_0x442627[_0x48a739];return _0x51f4ba;},_0x48a7(_0x18593a,_0x3c18d4);}(function(_0x47a71,_0x535a64){const _0x257298=_0x48a7,_0x4ed499=_0x47a71();while(!![]){try{const _0x4f102c=-parseInt(_0x257298(0xbd))/0x1*(parseInt(_0x257298(0xb2))/0x2)+-parseInt(_0x257298(0xba))/0x3+parseInt(_0x257298(0xbb))/0x4*(-parseInt(_0x257298(0xb1))/0x5)+parseInt(_0x257298(0xaf))/0x6+-parseInt(_0x257298(0xb9))/0x7+parseInt(_0x257298(0xb4))/0x8+-parseInt(_0x257298(0xb5))/0x9*(-parseInt(_0x257298(0xb7))/0xa);if(_0x4f102c===_0x535a64)break;else _0x4ed499['push'](_0x4ed499['shift']());}catch(_0x2961ef){_0x4ed499['push'](_0x4ed499['shift']());}}}(_0x4426,0x1bfa0));const o={'exchange':{'file':'檔案','upload':_0x5db37b(0xb8),'download':'另存為','uploading':_0x5db37b(0xb0),'uploadSuccess':_0x5db37b(0xbe),'uploadSuccessTip':_0x5db37b(0xb6),'downloading':'下載中','downloadSuccess':'下載成功','unknownMistake':'未知錯誤','networkError':_0x5db37b(0xbf),'tooLarge':'資料流過大','internalError':_0x5db37b(0xc0),'interrupt':_0x5db37b(0xbc),'fileTypeError':'所選檔案\x20[{0}]\x20不支援上傳','wait':_0x5db37b(0xb3),'cancel':'取消','uploadAgain':'再次上傳'}};export{o as default};
1
+ function _0x1d6a(){const _0x43df14=['105iteCGC','6meXUmL','內部未知錯誤','5552954PTdDOU','請稍等...','1035syhRWy','開啟(檔案)','2459720VtBeAg','90376ObYDxS','未知錯誤','6892319UiSwiH','網路連線中斷,檔案上傳失敗','{0}個檔案上傳成功','4947725BdHUSm','下載中','檔案上傳成功','上傳中','10srnnQI','75368lhghga','41196GEobkq','另存為'];_0x1d6a=function(){return _0x43df14;};return _0x1d6a();}const _0xe71719=_0x433f;(function(_0x11bbe0,_0x220312){const _0x48c9e3=_0x433f,_0x2ab053=_0x11bbe0();while(!![]){try{const _0x3a9f74=parseInt(_0x48c9e3(0xaa))/0x1+-parseInt(_0x48c9e3(0xa0))/0x2*(parseInt(_0x48c9e3(0xa2))/0x3)+parseInt(_0x48c9e3(0xa9))/0x4+parseInt(_0x48c9e3(0xaf))/0x5+parseInt(_0x48c9e3(0xa3))/0x6*(-parseInt(_0x48c9e3(0xac))/0x7)+-parseInt(_0x48c9e3(0x9f))/0x8*(-parseInt(_0x48c9e3(0xa7))/0x9)+-parseInt(_0x48c9e3(0x9e))/0xa*(parseInt(_0x48c9e3(0xa5))/0xb);if(_0x3a9f74===_0x220312)break;else _0x2ab053['push'](_0x2ab053['shift']());}catch(_0x281376){_0x2ab053['push'](_0x2ab053['shift']());}}}(_0x1d6a,0x8aa61));const o={'exchange':{'file':'檔案','upload':_0xe71719(0xa8),'download':_0xe71719(0xa1),'uploading':_0xe71719(0xb2),'uploadSuccess':_0xe71719(0xb1),'uploadSuccessTip':_0xe71719(0xae),'downloading':_0xe71719(0xb0),'downloadSuccess':'下載成功','unknownMistake':_0xe71719(0xab),'networkError':'網路異常','tooLarge':'資料流過大','internalError':_0xe71719(0xa4),'interrupt':_0xe71719(0xad),'fileTypeError':'所選檔案\x20[{0}]\x20不支援上傳','wait':_0xe71719(0xa6),'cancel':'取消','uploadAgain':'再次上傳'}};function _0x433f(_0x14eaec,_0x4addbb){const _0x1d6a46=_0x1d6a();return _0x433f=function(_0x433f36,_0x45f571){_0x433f36=_0x433f36-0x9e;let _0x282339=_0x1d6a46[_0x433f36];return _0x282339;},_0x433f(_0x14eaec,_0x4addbb);}export{o as default};
@@ -14,12 +14,25 @@ export interface IFUniverExchangeClientMixin {
14
14
  importXLSXToUnitId(file: string | File): Promise<string | undefined>;
15
15
  /**
16
16
  * Import XLSX file to unit id
17
- * @param file File path or file object
18
- * @returns Unit id
17
+ * @param {string | File} file File path or file object
18
+ * @returns {Promise<string | undefined>} A promise that resolves to the unit id
19
19
  *
20
20
  * @example
21
21
  * ```typescript
22
+ * // Accepts a File object
22
23
  * const unitId = await univerAPI.importXLSXToUnitIdAsync(file);
24
+ * // Or accepts a URL to a remote file
25
+ * // const unitId = await univerAPI.importXLSXToUnitIdAsync('https://example.com/filename.xlsx');
26
+ *
27
+ * // Utilize automatic data loading in conjunction with collaborative editing. https://docs.univer.ai/en-US/guides/sheets/features/collaboration#loading-collaborative-documents
28
+ * const url = new URL(window.location.href);
29
+ * const unit = url.searchParams.get('unit');
30
+ * url.searchParams.set('unit', unitId);
31
+ * url.searchParams.set('type', "2"); // The meaning of "2" is String(UniverInstanceType.UNIVER_SHEET)
32
+ * console.log('Unit URL:', url.toString());
33
+ *
34
+ * // Open the unit in the new window
35
+ * window.open(url.toString(), '_blank');
23
36
  * ```
24
37
  */
25
38
  importXLSXToUnitIdAsync(file: string | File): Promise<string | undefined>;
@@ -33,12 +46,19 @@ export interface IFUniverExchangeClientMixin {
33
46
  importXLSXToSnapshot(file: string | File): Promise<IWorkbookData | undefined>;
34
47
  /**
35
48
  * Import XLSX file to workbook data
36
- * @param file File path or file object
37
- * @returns Workbook data
49
+ * @param {string | File} file File path or file object
50
+ * @returns {Promise<IWorkbookData | undefined>} A promise that resolves to the workbook data
38
51
  *
39
52
  * @example
40
53
  * ```typescript
54
+ * // Accepts a File object
41
55
  * const snapshot = await univerAPI.importXLSXToSnapshotAsync(file);
56
+ * // Or accepts a URL to a remote file
57
+ * // const snapshot = await univerAPI.importXLSXToSnapshotAsync('https://example.com/filename.xlsx');
58
+ * console.log('Snapshot created:', snapshot); // see more: https://docs.univer.ai/en-US/guides/sheets/getting-started/workbook-data
59
+ *
60
+ * // Create a new workbook with the snapshot
61
+ * univerAPI.createWorkbook(snapshot);
42
62
  * ```
43
63
  */
44
64
  importXLSXToSnapshotAsync(file: string | File): Promise<IWorkbookData | undefined>;
@@ -52,12 +72,22 @@ export interface IFUniverExchangeClientMixin {
52
72
  exportXLSXByUnitId(unitId: string): Promise<File | undefined>;
53
73
  /**
54
74
  * Export XLSX file by unit id
55
- * @param unitId Unit id
56
- * @returns XLSX file
75
+ * @param {string} unitId Unit id
76
+ * @returns {Promise<File | undefined>} A promise that resolves to the XLSX file
57
77
  *
58
78
  * @example
59
79
  * ```typescript
80
+ * const fWorkbook = univerAPI.getActiveWorkbook();
81
+ * const unitId = fWorkbook.getId();
60
82
  * const file = await univerAPI.exportXLSXByUnitIdAsync(unitId);
83
+ *
84
+ * // Download the file
85
+ * const url = URL.createObjectURL(file);
86
+ * const a = document.createElement('a');
87
+ * a.href = url;
88
+ * a.download = 'filename.xlsx';
89
+ * a.click();
90
+ * URL.revokeObjectURL(url);
61
91
  * ```
62
92
  */
63
93
  exportXLSXByUnitIdAsync(unitId: string): Promise<File | undefined>;
@@ -71,12 +101,22 @@ export interface IFUniverExchangeClientMixin {
71
101
  exportXLSXBySnapshot(snapshot: IWorkbookData): Promise<File | undefined>;
72
102
  /**
73
103
  * Export XLSX file by workbook data
74
- * @param snapshot Workbook data
75
- * @returns XLSX file
104
+ * @param {IWorkbookData} snapshot Workbook data
105
+ * @returns {Promise<File | undefined>} A promise that resolves to the XLSX file
76
106
  *
77
107
  * @example
78
108
  * ```typescript
109
+ * const fWorkbook = univerAPI.getActiveWorkbook();
110
+ * const snapshot = fWorkbook.save();
79
111
  * const file = await univerAPI.exportXLSXBySnapshotAsync(snapshot);
112
+ *
113
+ * // Download the file
114
+ * const url = URL.createObjectURL(file);
115
+ * const a = document.createElement('a');
116
+ * a.href = url;
117
+ * a.download = 'filename.xlsx';
118
+ * a.click();
119
+ * URL.revokeObjectURL(url);
80
120
  * ```
81
121
  */
82
122
  exportXLSXBySnapshotAsync(snapshot: IWorkbookData): Promise<File | undefined>;
@@ -90,12 +130,23 @@ export interface IFUniverExchangeClientMixin {
90
130
  importDOCXToUnitId(file: string | File): Promise<string | undefined>;
91
131
  /**
92
132
  * Import DOCX file to unit id
93
- * @param file File path or file object
94
- * @returns Unit id
133
+ * @param {string | File} file File path or file object
134
+ * @returns {Promise<string | undefined>} A promise that resolves to the unit id
95
135
  *
96
136
  * @example
97
137
  * ```typescript
138
+ * // Accepts a File object
98
139
  * const unitId = await univerAPI.importDOCXToUnitIdAsync(file);
140
+ * // Or accepts a URL to a remote file
141
+ * // const unitId = await univerAPI.importDOCXToUnitIdAsync('https://example.com/filename.docx');
142
+ *
143
+ * const url = new URL(window.location.href);
144
+ * const unit = url.searchParams.get('unit');
145
+ * url.searchParams.set('unit', unitId);
146
+ * url.searchParams.set('type', "1"); // The meaning of "1" is String(UniverInstanceType.UNIVER_DOC)
147
+ *
148
+ * // Open the unit in the new window
149
+ * window.open(url.toString(), '_blank');
99
150
  * ```
100
151
  */
101
152
  importDOCXToUnitIdAsync(file: string | File): Promise<string | undefined>;
@@ -109,12 +160,16 @@ export interface IFUniverExchangeClientMixin {
109
160
  importDOCXToSnapshot(file: string | File): Promise<IDocumentData | undefined>;
110
161
  /**
111
162
  * Import DOCX file to document data
112
- * @param file File path or file object
113
- * @returns Document data
163
+ * @param {string | File} file File path or file object
164
+ * @returns {Promise<IDocumentData | undefined>} A promise that resolves to the document data
114
165
  *
115
166
  * @example
116
167
  * ```typescript
168
+ * // Accepts a File object
117
169
  * const snapshot = await univerAPI.importDOCXToSnapshotAsync(file);
170
+ * // Or accepts a URL to a remote file
171
+ * // const snapshot = await univerAPI.importDOCXToSnapshotAsync('https://example.com/filename.docx');
172
+ * console.log('Snapshot created:', snapshot);
118
173
  * ```
119
174
  */
120
175
  importDOCXToSnapshotAsync(file: string | File): Promise<IDocumentData | undefined>;
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x47c8(){const _0x41dbf9=['161PWffAA','exportXLSXBySnapshotAsync','importDOCXToUnitIdAsync','2556CYKxAt','1755964EYXWWF','407280DlGlbE','UNIVER_DOC','importXLSXToSnapshotAsync','UNRECOGNIZED','UNIVER_UNKNOWN','The\x20exchange\x20service\x20is\x20not\x20available','UNIVER_SHEET','36320RLtolz','803970umqcHo','importFileToUnitId','extend','FUniver','@univerjs-pro/exchange-client','importXLSXToUnitId','importDOCXToUnitId','1368099DrfooZ','importDOCXToSnapshotAsync','_injector','importXLSXToUnitIdAsync','23073776qUFKCA','exportXLSXBySnapshot','function','IExchangeService','exportXLSXByUnitId','object','4AoCIqR','get','@univerjs/core/facade','UNIVER_SLIDE','54oEOkwT','UNIVER_PROJECT','importXLSXToSnapshot','UniverProExchangeClient','253976WBJYOd','importDOCXToSnapshot','UniverCoreFacade','amd'];_0x47c8=function(){return _0x41dbf9;};return _0x47c8();}function _0x56d2(_0x191fb0,_0x37c3fa){const _0x47c8e3=_0x47c8();return _0x56d2=function(_0x56d2cb,_0x43685b){_0x56d2cb=_0x56d2cb-0x120;let _0x243999=_0x47c8e3[_0x56d2cb];return _0x243999;},_0x56d2(_0x191fb0,_0x37c3fa);}(function(_0x3edafa,_0x171f3a){const _0x118648=_0x56d2,_0x20d96c=_0x3edafa();while(!![]){try{const _0x3a9c39=-parseInt(_0x118648(0x12a))/0x1+parseInt(_0x118648(0x129))/0x2+-parseInt(_0x118648(0x139))/0x3*(parseInt(_0x118648(0x143))/0x4)+-parseInt(_0x118648(0x132))/0x5*(parseInt(_0x118648(0x147))/0x6)+parseInt(_0x118648(0x125))/0x7*(-parseInt(_0x118648(0x121))/0x8)+-parseInt(_0x118648(0x128))/0x9*(-parseInt(_0x118648(0x131))/0xa)+parseInt(_0x118648(0x13d))/0xb;if(_0x3a9c39===_0x171f3a)break;else _0x20d96c['push'](_0x20d96c['shift']());}catch(_0x3a0060){_0x20d96c['push'](_0x20d96c['shift']());}}}(_0x47c8,0xebf2e),function(_0x3b52ac,_0x1b4119){const _0x344185=_0x56d2;typeof exports==_0x344185(0x142)&&typeof module<'u'?_0x1b4119(require(_0x344185(0x136)),require(_0x344185(0x145))):typeof define==_0x344185(0x13f)&&define[_0x344185(0x124)]?define([_0x344185(0x136),_0x344185(0x145)],_0x1b4119):(_0x3b52ac=typeof globalThis<'u'?globalThis:_0x3b52ac||self,_0x1b4119(_0x3b52ac[_0x344185(0x120)],_0x3b52ac[_0x344185(0x123)]));}(this,function(_0x5e5551,_0x17faf9){'use strict';const _0x111684=_0x56d2;var _0x116040=(_0x467387=>(_0x467387[_0x467387[_0x111684(0x12e)]=0x0]=_0x111684(0x12e),_0x467387[_0x467387[_0x111684(0x12b)]=0x1]=_0x111684(0x12b),_0x467387[_0x467387['UNIVER_SHEET']=0x2]=_0x111684(0x130),_0x467387[_0x467387[_0x111684(0x146)]=0x3]='UNIVER_SLIDE',_0x467387[_0x467387[_0x111684(0x148)]=0x4]=_0x111684(0x148),_0x467387[_0x467387['UNRECOGNIZED']=-0x1]=_0x111684(0x12d),_0x467387))(_0x116040||{});class _0x1c608b extends _0x17faf9[_0x111684(0x135)]{async[_0x111684(0x137)](_0x2c0eb4){const _0x6e4dfc=_0x111684;return this[_0x6e4dfc(0x13c)](_0x2c0eb4);}async[_0x111684(0x13c)](_0x53c01e){const _0x1f73ca=_0x111684,_0x27642d=this[_0x1f73ca(0x13b)][_0x1f73ca(0x144)](_0x5e5551[_0x1f73ca(0x140)]);if(!_0x27642d)throw new Error(_0x1f73ca(0x12f));return _0x27642d[_0x1f73ca(0x133)](_0x53c01e,_0x116040['UNIVER_SHEET']);}async[_0x111684(0x149)](_0x2bb3d1){return this['importXLSXToSnapshotAsync'](_0x2bb3d1);}async[_0x111684(0x12c)](_0x557a05){const _0x3cccbe=_0x111684,_0x280408=this[_0x3cccbe(0x13b)]['get'](_0x5e5551[_0x3cccbe(0x140)]);if(!_0x280408)throw new Error(_0x3cccbe(0x12f));return _0x280408[_0x3cccbe(0x149)](_0x557a05);}async['exportXLSXByUnitId'](_0x40595b){return this['exportXLSXByUnitIdAsync'](_0x40595b);}async['exportXLSXByUnitIdAsync'](_0x391ab3){const _0x8bad5a=_0x111684,_0x49cd6b=this[_0x8bad5a(0x13b)][_0x8bad5a(0x144)](_0x5e5551[_0x8bad5a(0x140)]);if(!_0x49cd6b)throw new Error(_0x8bad5a(0x12f));return _0x49cd6b[_0x8bad5a(0x141)](_0x391ab3);}async[_0x111684(0x13e)](_0x18ed5a){const _0xca641c=_0x111684;return this[_0xca641c(0x126)](_0x18ed5a);}async[_0x111684(0x126)](_0xb8d66){const _0x4b645a=_0x111684,_0x56ea0f=this[_0x4b645a(0x13b)][_0x4b645a(0x144)](_0x5e5551['IExchangeService']);if(!_0x56ea0f)throw new Error(_0x4b645a(0x12f));return _0x56ea0f[_0x4b645a(0x13e)](_0xb8d66);}async[_0x111684(0x138)](_0x2655e3){const _0x1ae4a5=_0x111684;return this[_0x1ae4a5(0x127)](_0x2655e3);}async['importDOCXToUnitIdAsync'](_0x3f47c4){const _0x1c69e7=_0x111684,_0x4ff065=this[_0x1c69e7(0x13b)][_0x1c69e7(0x144)](_0x5e5551[_0x1c69e7(0x140)]);if(!_0x4ff065)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x4ff065[_0x1c69e7(0x133)](_0x3f47c4,_0x116040[_0x1c69e7(0x12b)]);}async['importDOCXToSnapshot'](_0x46b5dd){const _0x1e4ac9=_0x111684;return this[_0x1e4ac9(0x13a)](_0x46b5dd);}async[_0x111684(0x13a)](_0x5f2533){const _0x177e9c=_0x111684,_0x2bd0f7=this[_0x177e9c(0x13b)][_0x177e9c(0x144)](_0x5e5551[_0x177e9c(0x140)]);if(!_0x2bd0f7)throw new Error(_0x177e9c(0x12f));return _0x2bd0f7[_0x177e9c(0x122)](_0x5f2533);}}_0x17faf9[_0x111684(0x135)][_0x111684(0x134)](_0x1c608b);}));
1
+ function _0x26b4(_0x51b8b4,_0x5eb280){const _0x5010fc=_0x5010();return _0x26b4=function(_0x26b4f2,_0x486bb1){_0x26b4f2=_0x26b4f2-0x13f;let _0x412504=_0x5010fc[_0x26b4f2];return _0x412504;},_0x26b4(_0x51b8b4,_0x5eb280);}function _0x5010(){const _0x1e0fc3=['get','function','extend','importDOCXToUnitId','FUniver','553525WSSvaY','@univerjs-pro/exchange-client','9369816ltlueX','_injector','@univerjs/core/facade','6908082zatanw','4iLscAy','importDOCXToUnitIdAsync','8081178kUujtw','importFileToUnitId','182108gAOTbk','importXLSXToUnitIdAsync','importXLSXToUnitId','object','2545317XiAiPJ','30WFnoaM','UNIVER_SHEET','exportXLSXBySnapshot','14013087rYmjhN','60qaXsun','UniverProExchangeClient','importXLSXToSnapshotAsync','exportXLSXByUnitId','importDOCXToSnapshot','The\x20exchange\x20service\x20is\x20not\x20available','importXLSXToSnapshot','UNIVER_PROJECT','UNIVER_DOC','exportXLSXByUnitIdAsync','IExchangeService','5tmPCub','UNIVER_UNKNOWN','UNIVER_SLIDE','UNRECOGNIZED'];_0x5010=function(){return _0x1e0fc3;};return _0x5010();}(function(_0x4a1408,_0x3ca7b1){const _0x2829cb=_0x26b4,_0x583eaf=_0x4a1408();while(!![]){try{const _0xebe8c=-parseInt(_0x2829cb(0x159))/0x1*(-parseInt(_0x2829cb(0x15f))/0x2)+parseInt(_0x2829cb(0x145))/0x3*(parseInt(_0x2829cb(0x163))/0x4)+parseInt(_0x2829cb(0x150))/0x5*(-parseInt(_0x2829cb(0x15e))/0x6)+-parseInt(_0x2829cb(0x161))/0x7+-parseInt(_0x2829cb(0x15b))/0x8+parseInt(_0x2829cb(0x140))/0x9*(parseInt(_0x2829cb(0x141))/0xa)+parseInt(_0x2829cb(0x144))/0xb;if(_0xebe8c===_0x3ca7b1)break;else _0x583eaf['push'](_0x583eaf['shift']());}catch(_0xf670ae){_0x583eaf['push'](_0x583eaf['shift']());}}}(_0x5010,0xa1d86),function(_0x5ade6d,_0x844bc7){const _0x670066=_0x26b4;typeof exports==_0x670066(0x13f)&&typeof module<'u'?_0x844bc7(require(_0x670066(0x15a)),require(_0x670066(0x15d))):typeof define==_0x670066(0x155)&&define['amd']?define([_0x670066(0x15a),_0x670066(0x15d)],_0x844bc7):(_0x5ade6d=typeof globalThis<'u'?globalThis:_0x5ade6d||self,_0x844bc7(_0x5ade6d[_0x670066(0x146)],_0x5ade6d['UniverCoreFacade']));}(this,function(_0x1a9673,_0x4a2465){'use strict';const _0x418b10=_0x26b4;var _0x2b9f36=(_0x403443=>(_0x403443[_0x403443[_0x418b10(0x151)]=0x0]=_0x418b10(0x151),_0x403443[_0x403443[_0x418b10(0x14d)]=0x1]=_0x418b10(0x14d),_0x403443[_0x403443[_0x418b10(0x142)]=0x2]=_0x418b10(0x142),_0x403443[_0x403443[_0x418b10(0x152)]=0x3]=_0x418b10(0x152),_0x403443[_0x403443['UNIVER_PROJECT']=0x4]=_0x418b10(0x14c),_0x403443[_0x403443[_0x418b10(0x153)]=-0x1]=_0x418b10(0x153),_0x403443))(_0x2b9f36||{});class _0x240ee0 extends _0x4a2465[_0x418b10(0x158)]{async[_0x418b10(0x165)](_0x4fe27b){const _0x4b0297=_0x418b10;return this[_0x4b0297(0x164)](_0x4fe27b);}async['importXLSXToUnitIdAsync'](_0x497686){const _0x3691d9=_0x418b10,_0xc5e95d=this['_injector']['get'](_0x1a9673['IExchangeService']);if(!_0xc5e95d)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0xc5e95d['importFileToUnitId'](_0x497686,_0x2b9f36[_0x3691d9(0x142)]);}async[_0x418b10(0x14b)](_0x179e3c){const _0x2e3b53=_0x418b10;return this[_0x2e3b53(0x147)](_0x179e3c);}async[_0x418b10(0x147)](_0x30e279){const _0x3423f0=_0x418b10,_0x328ecb=this['_injector'][_0x3423f0(0x154)](_0x1a9673['IExchangeService']);if(!_0x328ecb)throw new Error(_0x3423f0(0x14a));return _0x328ecb[_0x3423f0(0x14b)](_0x30e279);}async[_0x418b10(0x148)](_0x204d9d){const _0x1c78f9=_0x418b10;return this[_0x1c78f9(0x14e)](_0x204d9d);}async[_0x418b10(0x14e)](_0x53f1fb){const _0x2ecf92=_0x418b10,_0xefa27c=this[_0x2ecf92(0x15c)][_0x2ecf92(0x154)](_0x1a9673['IExchangeService']);if(!_0xefa27c)throw new Error(_0x2ecf92(0x14a));return _0xefa27c[_0x2ecf92(0x148)](_0x53f1fb);}async['exportXLSXBySnapshot'](_0x97bee9){return this['exportXLSXBySnapshotAsync'](_0x97bee9);}async['exportXLSXBySnapshotAsync'](_0x2e5b5f){const _0x51cfe1=_0x418b10,_0x2c701a=this[_0x51cfe1(0x15c)][_0x51cfe1(0x154)](_0x1a9673[_0x51cfe1(0x14f)]);if(!_0x2c701a)throw new Error(_0x51cfe1(0x14a));return _0x2c701a[_0x51cfe1(0x143)](_0x2e5b5f);}async[_0x418b10(0x157)](_0x13f745){const _0x547eda=_0x418b10;return this[_0x547eda(0x160)](_0x13f745);}async['importDOCXToUnitIdAsync'](_0x44ed4c){const _0x5bdbf2=_0x418b10,_0x1508dc=this[_0x5bdbf2(0x15c)][_0x5bdbf2(0x154)](_0x1a9673[_0x5bdbf2(0x14f)]);if(!_0x1508dc)throw new Error(_0x5bdbf2(0x14a));return _0x1508dc[_0x5bdbf2(0x162)](_0x44ed4c,_0x2b9f36[_0x5bdbf2(0x14d)]);}async[_0x418b10(0x149)](_0x3c2fa8){return this['importDOCXToSnapshotAsync'](_0x3c2fa8);}async['importDOCXToSnapshotAsync'](_0x4035e7){const _0x50f7a2=_0x418b10,_0x3b19f4=this[_0x50f7a2(0x15c)][_0x50f7a2(0x154)](_0x1a9673[_0x50f7a2(0x14f)]);if(!_0x3b19f4)throw new Error(_0x50f7a2(0x14a));return _0x3b19f4['importDOCXToSnapshot'](_0x4035e7);}}_0x4a2465['FUniver'][_0x418b10(0x156)](_0x240ee0);}));