import { N as notFound, f as lazyRouteComponent, p as createFileRoute } from "../_libs/@tanstack/react-router+[...].mjs";
import { n as productBySlug } from "./catalog-CQ3AfDKO.mjs";
//#region node_modules/.nitro/vite/services/ssr/assets/shop._slug-CYVYAZJS.js
var $$splitComponentImporter = () => import("./shop._slug-_ekmRc-e.mjs");
var $$splitNotFoundComponentImporter = () => import("./shop._slug-DPgJPC-u.mjs");
var Route = createFileRoute("/shop/$slug")({
	loader: ({ params }) => {
		const product = productBySlug(params.slug);
		if (!product) throw notFound();
		return { product };
	},
	head: ({ loaderData }) => {
		if (!loaderData) return { meta: [{ title: "Item unavailable | Art Source International" }, {
			name: "robots",
			content: "noindex"
		}] };
		const { product } = loaderData;
		const description = `${product.title} — available from Art Source International, Boulder Colorado. ${product.price}.`;
		return { meta: [
			{ title: `${product.title} | Art Source International` },
			{
				name: "description",
				content: description
			},
			{
				property: "og:title",
				content: product.title
			},
			{
				property: "og:description",
				content: description
			},
			{
				property: "og:image",
				content: product.image
			},
			{
				name: "twitter:image",
				content: product.image
			}
		] };
	},
	notFoundComponent: lazyRouteComponent($$splitNotFoundComponentImporter, "notFoundComponent"),
	component: lazyRouteComponent($$splitComponentImporter, "component")
});
//#endregion
export { Route as t };
