import { watch } from "vue";
import ph from "posthog-js";
//#region src/v2/posthog.ts
var posthog = ph.init("phc_3elIjSOvGOo5aEwg6krzIY9IcQiRubsBtglOXsQ4Uu4", {
	api_host: "https://magic.scalar.com",
	ui_host: "https://us.posthog.com",
	defaults: "2025-11-30",
	opt_out_capturing_by_default: true
});
posthog.register({ product: "api-client" });
var usePosthog = (enabled) => {
	watch(enabled, (value) => {
		if (value) posthog.opt_in_capturing();
		else posthog.opt_out_capturing();
	}, { immediate: true });
};
//#endregion
export { usePosthog };

//# sourceMappingURL=posthog.js.map