import { post as d } from "../../api/commons.js";
import { Config as u } from "../../conf/index.js";
const n = process.env.VITE_REACT_APP_API_ROOT || u.REACT_APP_API_ROOT || null, _ = (o) => {
  const e = new FormData(), { files: s, organization: t, name: p, email: r, message: i, country: m, token: c } = o;
  return s.forEach((a) => e.append("files", a, a.name)), e.append("organization", t), e.append("name", p), e.append("email", r), e.append("country", m), e.append("message", i), e.append("token", c), fetch((n || "") + "/api/utils/showCaseForm", {
    mode: "cors",
    method: "POST",
    body: e
  });
}, A = (o) => d((n || "") + "/api/utils/subscribe", o);
export {
  _ as sendShowCase,
  A as subscribe
};
