import { t as supabase } from "./client-DL1N1MJt.mjs";
import { n as queryOptions } from "../_libs/tanstack__react-query.mjs";
//#region node_modules/.nitro/vite/services/ssr/assets/cenovnik-D5mYQuyi.js
var servicesQO = queryOptions({
	queryKey: ["services-with-provider"],
	queryFn: async () => {
		const { data, error } = await supabase.from("services").select("id, category, name, duration_minutes, price, provider_id, sort_order, providers(name)").eq("active", true).order("sort_order");
		if (error) throw error;
		return data ?? [];
	}
});
//#endregion
export { servicesQO as t };
