import { l as seedProducts } from "./categories-MJJjwt1u.mjs";
import { f as lazyRouteComponent, p as createFileRoute } from "../_libs/@tanstack/react-router+[...].mjs";
//#region node_modules/.nitro/vite/services/ssr/assets/product._id-e7c1iT8u.js
var $$splitComponentImporter = () => import("./product._id-DgYV85YJ.mjs");
var $$splitErrorComponentImporter = () => import("./product._id-BiQx7oMR.mjs");
var $$splitNotFoundComponentImporter = () => import("./product._id-DbvhO4Uq.mjs");
var Route = createFileRoute("/product/$id")({
	loader: ({ params }) => {
		return {
			seedProduct: seedProducts.find((x) => x.id === params.id) ?? null,
			id: params.id
		};
	},
	head: ({ loaderData }) => {
		const p = loaderData?.seedProduct;
		const title = p ? `${p.name} — SulejaMarket` : "Product — SulejaMarket";
		const desc = p ? `Buy ${p.name} for ₦${p.price.toLocaleString("en-NG")} on SulejaMarket. Fast delivery across Nigeria.` : "Shop this product on SulejaMarket.";
		return { meta: [
			{ title },
			{
				name: "description",
				content: desc
			},
			{
				property: "og:title",
				content: title
			},
			{
				property: "og:description",
				content: desc
			},
			...p ? [{
				property: "og:image",
				content: p.images?.[0] || `https://picsum.photos/seed/${p.seed}/1200/630`
			}] : []
		] };
	},
	notFoundComponent: lazyRouteComponent($$splitNotFoundComponentImporter, "notFoundComponent"),
	errorComponent: lazyRouteComponent($$splitErrorComponentImporter, "errorComponent"),
	component: lazyRouteComponent($$splitComponentImporter, "component")
});
//#endregion
export { Route as t };
