import{n as e,t}from"./axios-Ba4xKhTU.js";async function n(n,r,i=65){if(!n)return{data:{secure_url:`Sin Imagen`}};let a=new FormData;a.append(`file`,n),a.append(`upload_preset`,`cancun`);let o=n.name||`archivo_sin_nombre`;return a.append(`public_id`,`${r}/${Date.now()+`_`+o}`),a.append(`folder`,`${r}`),a.append(`cloud_name`,`omarlestrella`),a.append(`quality`,i.toString()),await t.post(e,a,{headers:{"Content-Type":`multipart/form-data`}})}export{n as t};