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

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
+ function _0x155a(_0x38240f,_0x5112e9){const _0x37f51c=_0x37f5();return _0x155a=function(_0x155ab8,_0x371fa4){_0x155ab8=_0x155ab8-0x17f;let _0x23c372=_0x37f51c[_0x155ab8];return _0x23c372;},_0x155a(_0x38240f,_0x5112e9);}const _0x3f26b=_0x155a;(function(_0x20000e,_0x48de56){const _0x20fc72=_0x155a,_0x283975=_0x20000e();while(!![]){try{const _0x20ad1d=parseInt(_0x20fc72(0x18e))/0x1*(parseInt(_0x20fc72(0x18a))/0x2)+-parseInt(_0x20fc72(0x18f))/0x3*(parseInt(_0x20fc72(0x194))/0x4)+-parseInt(_0x20fc72(0x190))/0x5+parseInt(_0x20fc72(0x196))/0x6+parseInt(_0x20fc72(0x191))/0x7+parseInt(_0x20fc72(0x197))/0x8*(-parseInt(_0x20fc72(0x18c))/0x9)+-parseInt(_0x20fc72(0x18d))/0xa;if(_0x20ad1d===_0x48de56)break;else _0x283975['push'](_0x283975['shift']());}catch(_0x37e78a){_0x283975['push'](_0x283975['shift']());}}}(_0x37f5,0xba50d));const e={'exchange':{'file':_0x3f26b(0x184),'upload':_0x3f26b(0x193),'download':_0x3f26b(0x185),'uploading':_0x3f26b(0x180),'uploadSuccess':_0x3f26b(0x188),'uploadSuccessTip':_0x3f26b(0x187),'downloading':_0x3f26b(0x18b),'downloadSuccess':_0x3f26b(0x17f),'unknownMistake':_0x3f26b(0x183),'networkError':_0x3f26b(0x186),'tooLarge':_0x3f26b(0x195),'internalError':_0x3f26b(0x181),'interrupt':'The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','fileTypeError':_0x3f26b(0x182),'wait':_0x3f26b(0x189),'cancel':'Cancel','uploadAgain':_0x3f26b(0x192)}};function _0x37f5(){const _0x4f40c9=['Please\x20wait...','38siLLKg','Downloading','513yKamra','4497460nYKyCw','71684JoUaIh','6yZGTrC','4527590QePZZf','8204042Egdsaf','Upload\x20again','Open(File)','1978512LopBGx','Data\x20is\x20too\x20large','5951940nBonEx','58712FyzYLO','Download\x20success','Uploading','Internal\x20unknown\x20error','Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','Unknown\x20mistake','File','Save\x20As','Network\x20error','{0}\x20file(s)\x20uploaded\x20successfully','File\x20uploaded\x20successfully'];_0x37f5=function(){return _0x4f40c9;};return _0x37f5();}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 _0x36769c=_0x1ca7;function _0x3837(){const _0xb35562=['ذخیره\x20به\x20عنوان','4039985inAhQW','فایل','44Vwfvjm','لغو','بازکردن(فایل)','در\x20حال\x20دانلود','5112873MuItnd','5270768KfUbHF','6SDFxFo','بارگذاری\x20مجدد','در\x20حال\x20بارگذاری','786IuKVrZ','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','خطای\x20داخلی\x20ناشناخته','5686191OPsEyY','لطفا\x20صبر\x20کنید...','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','دانلود\x20موفقیت\x20آمیز','1069998IozXpA','داده\x20خیلی\x20بزرگ\x20است','خطای\x20شبکه','1331ndwyNo','4BJHdfv','فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمی‌شود','خطای\x20ناشناخته','8623460qGFoqh'];_0x3837=function(){return _0xb35562;};return _0x3837();}(function(_0x2a0740,_0xe14d1d){const _0xb5c64a=_0x1ca7,_0x26bb87=_0x2a0740();while(!![]){try{const _0x5312b7=parseInt(_0xb5c64a(0x16c))/0x1*(-parseInt(_0xb5c64a(0x161))/0x2)+-parseInt(_0xb5c64a(0x169))/0x3*(-parseInt(_0xb5c64a(0x16d))/0x4)+parseInt(_0xb5c64a(0x172))/0x5*(-parseInt(_0xb5c64a(0x17a))/0x6)+-parseInt(_0xb5c64a(0x165))/0x7+-parseInt(_0xb5c64a(0x179))/0x8+-parseInt(_0xb5c64a(0x178))/0x9+parseInt(_0xb5c64a(0x170))/0xa*(parseInt(_0xb5c64a(0x174))/0xb);if(_0x5312b7===_0xe14d1d)break;else _0x26bb87['push'](_0x26bb87['shift']());}catch(_0x4d2819){_0x26bb87['push'](_0x26bb87['shift']());}}}(_0x3837,0x6a602));function _0x1ca7(_0x50744f,_0x47d01f){const _0x3837d3=_0x3837();return _0x1ca7=function(_0x1ca7c1,_0x3ec5a7){_0x1ca7c1=_0x1ca7c1-0x161;let _0x2cf1ed=_0x3837d3[_0x1ca7c1];return _0x2cf1ed;},_0x1ca7(_0x50744f,_0x47d01f);}const o={'exchange':{'file':_0x36769c(0x173),'upload':_0x36769c(0x176),'download':_0x36769c(0x171),'uploading':_0x36769c(0x17c),'uploadSuccess':_0x36769c(0x162),'uploadSuccessTip':_0x36769c(0x163),'downloading':_0x36769c(0x177),'downloadSuccess':_0x36769c(0x168),'unknownMistake':_0x36769c(0x16f),'networkError':_0x36769c(0x16b),'tooLarge':_0x36769c(0x16a),'internalError':_0x36769c(0x164),'interrupt':_0x36769c(0x167),'fileTypeError':_0x36769c(0x16e),'wait':_0x36769c(0x166),'cancel':_0x36769c(0x175),'uploadAgain':_0x36769c(0x17b)}};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
+ function _0x5f2c(_0x202827,_0x403f03){const _0x1514bd=_0x1514();return _0x5f2c=function(_0x5f2c0b,_0x33cab7){_0x5f2c0b=_0x5f2c0b-0x189;let _0x2391b0=_0x1514bd[_0x5f2c0b];return _0x2391b0;},_0x5f2c(_0x202827,_0x403f03);}function _0x1514(){const _0x5c1e89=['Téléchargement\x20réussi','8RdSVVz','4593750INPdpa','Ouvrir\x20(Fichier)','Télécharger\x20à\x20nouveau','1144458qmTuAV','4148eZHxDZ','Téléchargement\x20en\x20cours','Fichier\x20téléchargé\x20avec\x20succès','Enregistrer\x20sous','2134443zqdnPw','Les\x20données\x20sont\x20trop\x20volumineuses','Erreur\x20inconnue','{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','Annuler','Téléchargement','2593724ujDiXE','Veuillez\x20patienter...','Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','543QwFMUz','1002STxJXt','Erreur\x20interne\x20inconnue','475LHrtOR','329750QSFTkk'];_0x1514=function(){return _0x5c1e89;};return _0x1514();}const _0x20a41a=_0x5f2c;(function(_0x23b390,_0xac2c33){const _0x5c9f89=_0x5f2c,_0x1b8866=_0x23b390();while(!![]){try{const _0x494fc7=-parseInt(_0x5c9f89(0x194))/0x1*(-parseInt(_0x5c9f89(0x195))/0x2)+-parseInt(_0x5c9f89(0x18b))/0x3+-parseInt(_0x5c9f89(0x19f))/0x4*(parseInt(_0x5c9f89(0x197))/0x5)+parseInt(_0x5c9f89(0x19b))/0x6+parseInt(_0x5c9f89(0x191))/0x7*(parseInt(_0x5c9f89(0x19a))/0x8)+-parseInt(_0x5c9f89(0x19e))/0x9+-parseInt(_0x5c9f89(0x198))/0xa;if(_0x494fc7===_0xac2c33)break;else _0x1b8866['push'](_0x1b8866['shift']());}catch(_0x51271b){_0x1b8866['push'](_0x1b8866['shift']());}}}(_0x1514,0x6af33));const e={'exchange':{'file':'Fichier','upload':_0x20a41a(0x19c),'download':_0x20a41a(0x18a),'uploading':_0x20a41a(0x1a0),'uploadSuccess':_0x20a41a(0x189),'uploadSuccessTip':_0x20a41a(0x18e),'downloading':_0x20a41a(0x190),'downloadSuccess':_0x20a41a(0x199),'unknownMistake':_0x20a41a(0x18d),'networkError':'Erreur\x20réseau','tooLarge':_0x20a41a(0x18c),'internalError':_0x20a41a(0x196),'interrupt':'La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','fileTypeError':_0x20a41a(0x193),'wait':_0x20a41a(0x192),'cancel':_0x20a41a(0x18f),'uploadAgain':_0x20a41a(0x19d)}};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
+ const _0x307ccb=_0x1d02;(function(_0x591871,_0x33c3d7){const _0xe2fe90=_0x1d02,_0x2aa547=_0x591871();while(!![]){try{const _0xe5ebb5=-parseInt(_0xe2fe90(0x83))/0x1+-parseInt(_0xe2fe90(0x77))/0x2*(parseInt(_0xe2fe90(0x8a))/0x3)+-parseInt(_0xe2fe90(0x80))/0x4+parseInt(_0xe2fe90(0x85))/0x5+-parseInt(_0xe2fe90(0x7c))/0x6*(-parseInt(_0xe2fe90(0x86))/0x7)+parseInt(_0xe2fe90(0x7b))/0x8+parseInt(_0xe2fe90(0x8d))/0x9*(-parseInt(_0xe2fe90(0x8c))/0xa);if(_0xe5ebb5===_0x33c3d7)break;else _0x2aa547['push'](_0x2aa547['shift']());}catch(_0x514ac5){_0x2aa547['push'](_0x2aa547['shift']());}}}(_0xc0eb,0xe82dc));const o={'exchange':{'file':_0x307ccb(0x78),'upload':_0x307ccb(0x82),'download':_0x307ccb(0x7d),'uploading':_0x307ccb(0x7e),'uploadSuccess':_0x307ccb(0x7f),'uploadSuccessTip':_0x307ccb(0x81),'downloading':_0x307ccb(0x88),'downloadSuccess':_0x307ccb(0x89),'unknownMistake':'Неизвестная\x20ошибка','networkError':'Сетевая\x20ошибка','tooLarge':_0x307ccb(0x84),'internalError':_0x307ccb(0x7a),'interrupt':'Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','fileTypeError':_0x307ccb(0x8b),'wait':_0x307ccb(0x79),'cancel':_0x307ccb(0x76),'uploadAgain':_0x307ccb(0x87)}};function _0x1d02(_0x26196a,_0x99fccc){const _0xc0eb35=_0xc0eb();return _0x1d02=function(_0x1d02d5,_0x35a90f){_0x1d02d5=_0x1d02d5-0x76;let _0x55678d=_0xc0eb35[_0x1d02d5];return _0x55678d;},_0x1d02(_0x26196a,_0x99fccc);}export{o as default};function _0xc0eb(){const _0x21bf68=['Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','4140RGnEul','17118WDYFCv','Отмена','34zUpMOu','Файл','Пожалуйста,\x20подождите...','Внутренняя\x20неизвестная\x20ошибка','8797800asSisW','48TFgkoR','Сохранить\x20как','Загрузка','Файл\x20успешно\x20загружен','701596meBHAB','{0}\x20файл(ов)\x20успешно\x20загружен(о)','Открыть(Файл)','850427BabjSe','Данные\x20слишком\x20большие','7155590gzNQAl','1068193EGbhDy','Загрузить\x20снова','Скачивание','Скачивание\x20успешно','174243mDYtbI'];_0xc0eb=function(){return _0x21bf68;};return _0xc0eb();}
@@ -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 _0x48fc(_0x331fc1,_0x5210c2){const _0x5c23ba=_0x5c23();return _0x48fc=function(_0x48fc8c,_0x13171c){_0x48fc8c=_0x48fc8c-0xdf;let _0x131d13=_0x5c23ba[_0x48fc8c];return _0x131d13;},_0x48fc(_0x331fc1,_0x5210c2);}const _0x169b2d=_0x48fc;function _0x5c23(){const _0x3d1b89=['6110307WcZVJY','3108132aYHgke','184865ihkerA','Đang\x20tải\x20lên','Tải\x20lên\x20tệp\x20thành\x20công','3070876hHEYRJ','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','Lưu\x20dưới\x20dạng','Tệp','Mở\x20(Tệp)','Hủy\x20bỏ','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','Lỗi\x20mạng','Đang\x20tải\x20xuống','1865889PTtfZg','Tải\x20lên\x20lại','Lỗi\x20không\x20xác\x20định','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','8grHFRe','Luồng\x20dữ\x20liệu\x20quá\x20lớn','54PBapmy','Tải\x20xuống\x20thành\x20công','25644160GrgfvO','1NQhwMj','418486CUWINX'];_0x5c23=function(){return _0x3d1b89;};return _0x5c23();}(function(_0x3b7be2,_0x319eb9){const _0x2ef9eb=_0x48fc,_0x40a805=_0x3b7be2();while(!![]){try{const _0x1d070f=parseInt(_0x2ef9eb(0xf7))/0x1*(parseInt(_0x2ef9eb(0xdf))/0x2)+-parseInt(_0x2ef9eb(0xee))/0x3+-parseInt(_0x2ef9eb(0xe5))/0x4+parseInt(_0x2ef9eb(0xe2))/0x5*(-parseInt(_0x2ef9eb(0xf4))/0x6)+parseInt(_0x2ef9eb(0xe0))/0x7*(-parseInt(_0x2ef9eb(0xf2))/0x8)+parseInt(_0x2ef9eb(0xe1))/0x9+parseInt(_0x2ef9eb(0xf6))/0xa;if(_0x1d070f===_0x319eb9)break;else _0x40a805['push'](_0x40a805['shift']());}catch(_0x20d381){_0x40a805['push'](_0x40a805['shift']());}}}(_0x5c23,0x7fd93));const n={'exchange':{'file':_0x169b2d(0xe8),'upload':_0x169b2d(0xe9),'download':_0x169b2d(0xe7),'uploading':_0x169b2d(0xe3),'uploadSuccess':_0x169b2d(0xe4),'uploadSuccessTip':_0x169b2d(0xf1),'downloading':_0x169b2d(0xed),'downloadSuccess':_0x169b2d(0xf5),'unknownMistake':_0x169b2d(0xf0),'networkError':_0x169b2d(0xec),'tooLarge':_0x169b2d(0xf3),'internalError':_0x169b2d(0xeb),'interrupt':'Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','fileTypeError':_0x169b2d(0xe6),'wait':'Vui\x20lòng\x20đợi...','cancel':_0x169b2d(0xea),'uploadAgain':_0x169b2d(0xef)}};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 _0x45ce(){const _0x55eb40=['下载成功','9NnGhhY','请稍等...','207987FLxyuK','网络异常','137543hzpnQu','打开(文件)','2fknkUJ','{0}个文件上传成功','数据流过大','3157198AsEkgU','8AegduF','另存为','1515070YLzuvc','上传中','下载中','文件上传成功','5031537lndkhG','2742570YRvxSx','778135LbFXhb','所选文件\x20[{0}]\x20不支持上传','12ttbGQI'];_0x45ce=function(){return _0x55eb40;};return _0x45ce();}const _0x58667b=_0x471a;(function(_0x5d09b7,_0x563c36){const _0x167576=_0x471a,_0x1bdd28=_0x5d09b7();while(!![]){try{const _0x3b34a5=parseInt(_0x167576(0xf7))/0x1+parseInt(_0x167576(0xf9))/0x2*(-parseInt(_0x167576(0xf5))/0x3)+parseInt(_0x167576(0xf1))/0x4*(parseInt(_0x167576(0xef))/0x5)+parseInt(_0x167576(0xee))/0x6+-parseInt(_0x167576(0x103))/0x7*(parseInt(_0x167576(0xfd))/0x8)+-parseInt(_0x167576(0xf3))/0x9*(parseInt(_0x167576(0xff))/0xa)+parseInt(_0x167576(0xfc))/0xb;if(_0x3b34a5===_0x563c36)break;else _0x1bdd28['push'](_0x1bdd28['shift']());}catch(_0x41670f){_0x1bdd28['push'](_0x1bdd28['shift']());}}}(_0x45ce,0x63d4e));function _0x471a(_0x8b1ea0,_0x3da98d){const _0x45cedc=_0x45ce();return _0x471a=function(_0x471a95,_0x2a205d){_0x471a95=_0x471a95-0xee;let _0x28f92c=_0x45cedc[_0x471a95];return _0x28f92c;},_0x471a(_0x8b1ea0,_0x3da98d);}const o={'exchange':{'file':'文件','upload':_0x58667b(0xf8),'download':_0x58667b(0xfe),'uploading':_0x58667b(0x100),'uploadSuccess':_0x58667b(0x102),'uploadSuccessTip':_0x58667b(0xfa),'downloading':_0x58667b(0x101),'downloadSuccess':_0x58667b(0xf2),'unknownMistake':'未知错误','networkError':_0x58667b(0xf6),'tooLarge':_0x58667b(0xfb),'internalError':'内部未知错误','interrupt':'网络连接中断,文件上传失败','fileTypeError':_0x58667b(0xf0),'wait':_0x58667b(0xf4),'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 _0x17f1(){const _0x290294=['75919Hnlesy','{0}個檔案上傳成功','104jTrWGl','資料流過大','內部未知錯誤','5XXxchI','4hLNvyJ','檔案上傳成功','開啟(檔案)','3256764Sviuuq','下載中','10359693BBRxdo','上傳中','316918zDVVZk','4341642WMUHCz','未知錯誤','再次上傳','22mcJsYn','2768205JkCUIa','2890XWxRQM','網路連線中斷,檔案上傳失敗','8536nCenSC','176GyHTZk','另存為'];_0x17f1=function(){return _0x290294;};return _0x17f1();}const _0x17a0bf=_0x50f7;function _0x50f7(_0x21d21f,_0x24b751){const _0x17f16a=_0x17f1();return _0x50f7=function(_0x50f771,_0x37e682){_0x50f771=_0x50f771-0xe0;let _0x4dae2f=_0x17f16a[_0x50f771];return _0x4dae2f;},_0x50f7(_0x21d21f,_0x24b751);}(function(_0x3127ff,_0x4cb44b){const _0x556893=_0x50f7,_0x23af9e=_0x3127ff();while(!![]){try{const _0x5e0cad=-parseInt(_0x556893(0xe7))/0x1*(-parseInt(_0x556893(0xe0))/0x2)+parseInt(_0x556893(0xe1))/0x3*(parseInt(_0x556893(0xed))/0x4)+parseInt(_0x556893(0xec))/0x5*(parseInt(_0x556893(0xf5))/0x6)+parseInt(_0x556893(0xf4))/0x7*(-parseInt(_0x556893(0xe5))/0x8)+parseInt(_0x556893(0xf2))/0x9+parseInt(_0x556893(0xe2))/0xa*(parseInt(_0x556893(0xe4))/0xb)+parseInt(_0x556893(0xf0))/0xc*(-parseInt(_0x556893(0xe9))/0xd);if(_0x5e0cad===_0x4cb44b)break;else _0x23af9e['push'](_0x23af9e['shift']());}catch(_0x15f6ad){_0x23af9e['push'](_0x23af9e['shift']());}}}(_0x17f1,0xa85b4));const o={'exchange':{'file':'檔案','upload':_0x17a0bf(0xef),'download':_0x17a0bf(0xe6),'uploading':_0x17a0bf(0xf3),'uploadSuccess':_0x17a0bf(0xee),'uploadSuccessTip':_0x17a0bf(0xe8),'downloading':_0x17a0bf(0xf1),'downloadSuccess':'下載成功','unknownMistake':_0x17a0bf(0xf6),'networkError':'網路異常','tooLarge':_0x17a0bf(0xea),'internalError':_0x17a0bf(0xeb),'interrupt':_0x17a0bf(0xe3),'fileTypeError':'所選檔案\x20[{0}]\x20不支援上傳','wait':'請稍等...','cancel':'取消','uploadAgain':_0x17a0bf(0xf7)}};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 _0x2445(_0x2eefd2,_0x18f48a){const _0x2cd39a=_0x2cd3();return _0x2445=function(_0x2445d0,_0x13680a){_0x2445d0=_0x2445d0-0x13d;let _0x335b70=_0x2cd39a[_0x2445d0];return _0x335b70;},_0x2445(_0x2eefd2,_0x18f48a);}(function(_0x27fe75,_0x50a84c){const _0x53fcdf=_0x2445,_0x176e7b=_0x27fe75();while(!![]){try{const _0x10a461=parseInt(_0x53fcdf(0x14f))/0x1*(-parseInt(_0x53fcdf(0x15e))/0x2)+-parseInt(_0x53fcdf(0x153))/0x3+-parseInt(_0x53fcdf(0x162))/0x4*(parseInt(_0x53fcdf(0x141))/0x5)+-parseInt(_0x53fcdf(0x140))/0x6+-parseInt(_0x53fcdf(0x144))/0x7+-parseInt(_0x53fcdf(0x157))/0x8+parseInt(_0x53fcdf(0x14c))/0x9*(parseInt(_0x53fcdf(0x15b))/0xa);if(_0x10a461===_0x50a84c)break;else _0x176e7b['push'](_0x176e7b['shift']());}catch(_0x5493db){_0x176e7b['push'](_0x176e7b['shift']());}}}(_0x2cd3,0x7fc89),function(_0x38c9b6,_0x447924){const _0x52dc83=_0x2445;typeof exports==_0x52dc83(0x13e)&&typeof module<'u'?_0x447924(require(_0x52dc83(0x163)),require(_0x52dc83(0x152))):typeof define=='function'&&define[_0x52dc83(0x159)]?define([_0x52dc83(0x163),_0x52dc83(0x152)],_0x447924):(_0x38c9b6=typeof globalThis<'u'?globalThis:_0x38c9b6||self,_0x447924(_0x38c9b6[_0x52dc83(0x156)],_0x38c9b6['UniverCoreFacade']));}(this,function(_0xb7dd4d,_0x16db91){'use strict';const _0xe3fa0e=_0x2445;var _0x20bac0=(_0x13a1c5=>(_0x13a1c5[_0x13a1c5[_0xe3fa0e(0x150)]=0x0]=_0xe3fa0e(0x150),_0x13a1c5[_0x13a1c5[_0xe3fa0e(0x143)]=0x1]='UNIVER_DOC',_0x13a1c5[_0x13a1c5[_0xe3fa0e(0x151)]=0x2]=_0xe3fa0e(0x151),_0x13a1c5[_0x13a1c5[_0xe3fa0e(0x15c)]=0x3]=_0xe3fa0e(0x15c),_0x13a1c5[_0x13a1c5[_0xe3fa0e(0x142)]=0x4]='UNIVER_PROJECT',_0x13a1c5[_0x13a1c5['UNRECOGNIZED']=-0x1]=_0xe3fa0e(0x15f),_0x13a1c5))(_0x20bac0||{});class _0x2e64eb extends _0x16db91['FUniver']{async[_0xe3fa0e(0x15a)](_0x2cb029){const _0x2b4d73=_0xe3fa0e;return this[_0x2b4d73(0x149)](_0x2cb029);}async[_0xe3fa0e(0x149)](_0x488f45){const _0x263967=_0xe3fa0e,_0x299d5f=this[_0x263967(0x13d)][_0x263967(0x146)](_0xb7dd4d[_0x263967(0x13f)]);if(!_0x299d5f)throw new Error(_0x263967(0x161));return _0x299d5f[_0x263967(0x14a)](_0x488f45,_0x20bac0['UNIVER_SHEET']);}async[_0xe3fa0e(0x155)](_0x4840cd){const _0x3a3610=_0xe3fa0e;return this[_0x3a3610(0x147)](_0x4840cd);}async[_0xe3fa0e(0x147)](_0x35cb88){const _0x1f5327=_0xe3fa0e,_0xccf20a=this[_0x1f5327(0x13d)][_0x1f5327(0x146)](_0xb7dd4d[_0x1f5327(0x13f)]);if(!_0xccf20a)throw new Error(_0x1f5327(0x161));return _0xccf20a[_0x1f5327(0x155)](_0x35cb88);}async['exportXLSXByUnitId'](_0x306a09){const _0x2be40e=_0xe3fa0e;return this[_0x2be40e(0x15d)](_0x306a09);}async[_0xe3fa0e(0x15d)](_0x1808b3){const _0x20bc31=_0xe3fa0e,_0x180773=this['_injector'][_0x20bc31(0x146)](_0xb7dd4d['IExchangeService']);if(!_0x180773)throw new Error(_0x20bc31(0x161));return _0x180773[_0x20bc31(0x14e)](_0x1808b3);}async[_0xe3fa0e(0x154)](_0x28f7dd){const _0x1ddeda=_0xe3fa0e;return this[_0x1ddeda(0x14d)](_0x28f7dd);}async[_0xe3fa0e(0x14d)](_0x5897f7){const _0x396902=_0xe3fa0e,_0x646f18=this[_0x396902(0x13d)][_0x396902(0x146)](_0xb7dd4d['IExchangeService']);if(!_0x646f18)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x646f18[_0x396902(0x154)](_0x5897f7);}async[_0xe3fa0e(0x14b)](_0xf57872){return this['importDOCXToUnitIdAsync'](_0xf57872);}async[_0xe3fa0e(0x145)](_0x55da94){const _0x58ccdc=_0xe3fa0e,_0x2d2c17=this[_0x58ccdc(0x13d)][_0x58ccdc(0x146)](_0xb7dd4d[_0x58ccdc(0x13f)]);if(!_0x2d2c17)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x2d2c17['importFileToUnitId'](_0x55da94,_0x20bac0[_0x58ccdc(0x143)]);}async[_0xe3fa0e(0x158)](_0x5f987c){const _0x465c5c=_0xe3fa0e;return this[_0x465c5c(0x148)](_0x5f987c);}async[_0xe3fa0e(0x148)](_0x725ea){const _0x475b20=_0xe3fa0e,_0x2cbce6=this[_0x475b20(0x13d)][_0x475b20(0x146)](_0xb7dd4d[_0x475b20(0x13f)]);if(!_0x2cbce6)throw new Error(_0x475b20(0x161));return _0x2cbce6[_0x475b20(0x158)](_0x725ea);}}_0x16db91[_0xe3fa0e(0x160)]['extend'](_0x2e64eb);}));function _0x2cd3(){const _0x6eaafc=['1NZKCJe','UNIVER_UNKNOWN','UNIVER_SHEET','@univerjs/core/facade','1477689rsghPo','exportXLSXBySnapshot','importXLSXToSnapshot','UniverProExchangeClient','6090240KUikmV','importDOCXToSnapshot','amd','importXLSXToUnitId','1009760vIMUWt','UNIVER_SLIDE','exportXLSXByUnitIdAsync','1418314bFtcdd','UNRECOGNIZED','FUniver','The\x20exchange\x20service\x20is\x20not\x20available','32HIPmsW','@univerjs-pro/exchange-client','_injector','object','IExchangeService','1284078UqnPqv','446265aLikkJ','UNIVER_PROJECT','UNIVER_DOC','7199542JQEXtM','importDOCXToUnitIdAsync','get','importXLSXToSnapshotAsync','importDOCXToSnapshotAsync','importXLSXToUnitIdAsync','importFileToUnitId','importDOCXToUnitId','396AFHcxu','exportXLSXBySnapshotAsync','exportXLSXByUnitId'];_0x2cd3=function(){return _0x6eaafc;};return _0x2cd3();}