const { Button, Eyebrow, Icon, Ornament, Field } = window.HennaByMasuDesignSystem_0b7f2a;
const { Footer, GUTTER } = window;
const WA_NUMBER = "447388905164";
const ENDPOINT = "send-enquiry.php";
function EnquiryHeader() {
const iconBtn = { display: "grid", placeItems: "center", minWidth: "44px", minHeight: "44px", background: "transparent", border: "none", color: "var(--ivory-50)", cursor: "pointer", textDecoration: "none" };
return (
);
}
const EMPTY = { name: "", phone: "", email: "", address: "", occasion: "Bridal mehendi", date: "", notes: "" };
function EnquiryForm() {
const [v, setV] = React.useState(EMPTY);
const [status, setStatus] = React.useState("idle");
const [error, setError] = React.useState("");
const [company, setCompany] = React.useState("");
const set = (k) => (val) => setV((s) => ({ ...s, [k]: val }));
const message = [
"HENNA ENQUIRY",
`Name: ${v.name}`,
`Phone: ${v.phone}`,
`Email: ${v.email}`,
`Address: ${v.address}`,
`Occasion: ${v.occasion}`,
v.date ? `Date: ${v.date}` : null,
v.notes ? `Notes: ${v.notes}` : null,
].filter(Boolean).join("\n");
const waHref = `https://wa.me/${WA_NUMBER}?text=${encodeURIComponent(message)}`;
const mailHref = `mailto:Masuma0205@icloud.com?subject=${encodeURIComponent("Henna enquiry")}&body=${encodeURIComponent(message)}`;
const onSubmit = async (e) => {
e.preventDefault();
const form = e.currentTarget;
if (form && form.reportValidity && !form.reportValidity()) return;
setStatus("sending"); setError("");
try {
const res = await fetch(ENDPOINT, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ ...v, company }) });
const out = await res.json().catch(() => ({}));
if (res.ok && out.ok) { setStatus("sent"); return; }
throw new Error(out.error || `Server responded ${res.status}`);
} catch (err) {
setError(String(err.message || err));
setStatus("failed");
}
};
if (status === "failed") {
return (
We could not send that from here
Your details are still filled in. Send them straight through on WhatsApp or by email instead and we will pick it up the same way.
Send on WhatsApp
Send by email
setStatus("idle")} style={{ background: "none", border: "none", padding: "12px 0", cursor: "pointer", font: "var(--type-label)", fontSize: "var(--fs-label)", letterSpacing: "var(--ls-label)", textTransform: "uppercase", color: "var(--text-muted)" }}>Back to the form
{error}
);
}
if (status === "sent") {
return (
Thank you — your enquiry is with us
It has been sent to the studio and we will reply with availability and a proposal. If you would like to add anything in the meantime, message us directly.
Message on WhatsApp
{ setStatus("idle"); setV(EMPTY); }} style={{ background: "none", border: "none", padding: "12px 0", cursor: "pointer", font: "var(--type-label)", fontSize: "var(--fs-label)", letterSpacing: "var(--ls-label)", textTransform: "uppercase", color: "var(--text-muted)" }}>Start again
);
}
return (
);
}
function EnquiryPage() {
return (
Enquire
Tell us about your date.
Leave your details and we will come back with availability and a proposal. Everything you write here is sent straight to the studio inbox.
);
}
const hostEl = document.getElementById("root");
let mountEl = hostEl.__mount;
if (!mountEl || !mountEl.isConnected) { hostEl.textContent = ""; mountEl = document.createElement("div"); hostEl.appendChild(mountEl); hostEl.__mount = mountEl; }
(mountEl.__root || (mountEl.__root = ReactDOM.createRoot(mountEl))).render( );