//#region node_modules/.nitro/vite/services/ssr/assets/redirect-thank-you-BiC9Z-_Q.js
var portfolioItems = [
	{
		name: "Aspect Six",
		url: "https://www.aspectsix.com/",
		category: "Design Agency",
		image: "/flashcards/aspectsix.webp"
	},
	{
		name: "Emily Rose",
		url: "https://www.emilyrosephotography.com/",
		category: "Photography",
		image: "/flashcards/emilyrose.webp"
	},
	{
		name: "Mana Products",
		url: "https://www.manaproducts.com/",
		category: "E-commerce",
		image: "/flashcards/manaproducts.webp"
	},
	{
		name: "Rule One",
		url: "https://www.ruleoneproductions.com/",
		category: "Production",
		image: "/flashcards/ruleone.webp"
	},
	{
		name: "Ivan Venkov",
		url: "https://ivanvenkov.net/",
		category: "Creative Direction",
		image: "/flashcards/ivanvenkov.webp"
	},
	{
		name: "The General Muir",
		url: "https://www.thegeneralmuir.com/",
		category: "Restaurant",
		image: "/flashcards/thegeneralmuir.webp"
	},
	{
		name: "Fat Cow",
		url: "https://www.fatcow.com.sg/",
		category: "Restaurant",
		image: "/flashcards/fatcow.webp"
	},
	{
		name: "Bibi Ji",
		url: "https://bibijisb.com/",
		category: "Restaurant",
		image: "/flashcards/bibijisb.webp"
	},
	{
		name: "Elle & Company",
		url: "https://www.elleandcompanydesign.com/",
		category: "Design Agency",
		image: "/flashcards/elleandcompany.webp"
	},
	{
		name: "Sustainably Chic",
		url: "https://sustainably-chic.com/",
		category: "Lifestyle",
		image: "/flashcards/sustainablychic.webp"
	},
	{
		name: "Kindman",
		url: "https://www.kindman.co/",
		category: "Creative Agency",
		image: "/flashcards/kindman.webp"
	},
	{
		name: "Stykka",
		url: "https://www.stykka.com/",
		category: "Furniture",
		image: "/flashcards/stykka.webp"
	},
	{
		name: "Gazzo Pizza",
		url: "https://www.gazzopizza.com/",
		category: "Restaurant",
		image: "/flashcards/gazzopizza.webp"
	},
	{
		name: "Caraa",
		url: "https://caraa.co/",
		category: "E-commerce",
		image: "/flashcards/caraa.webp"
	},
	{
		name: "Hemp Clothing Australia",
		url: "https://www.hempclothingaustralia.com/",
		category: "Fashion",
		image: "/flashcards/hempclothingaustralia.webp"
	}
];
/**
* Redirects the browser to /thank-you, forwarding the submitted lead's
* name and email as query parameters. The Thank You page reads these
* and personalizes the confirmation heading.
*/
function redirectToThankYou(form, extra) {
	const params = new URLSearchParams();
	let name = extra?.name ?? "";
	let email = extra?.email ?? "";
	if (form) {
		const data = new FormData(form);
		if (!name) name = String(data.get("name") ?? "");
		if (!email) email = String(data.get("email") ?? "");
		if (!name) {
			const el = form.querySelector("input[type=\"text\"], input:not([type])");
			if (el) name = el.value;
		}
		if (!email) {
			const el = form.querySelector("input[type=\"email\"]");
			if (el) email = el.value;
		}
	}
	name = name.trim().slice(0, 80);
	email = email.trim().slice(0, 120);
	if (name) params.set("name", name);
	if (email) params.set("email", email);
	const qs = params.toString();
	window.location.assign(qs ? `/thank-you?${qs}` : "/thank-you");
}
//#endregion
export { redirectToThankYou as n, portfolioItems as t };
