import { inIframe } from "@clerk/shared/internal/clerk-js/runtime";

//#region src/utils/originPrefersPopup.ts
const POPUP_PREFERRED_ORIGINS = [
	".lovable.app",
	".lovableproject.com",
	".webcontainer-api.io",
	".vusercontent.net",
	".v0.dev",
	".v0.app",
	".lp.dev"
];
/**
* Returns `true` if the current origin is one that is typically embedded via an iframe, which would benefit from the
* popup flow.
* @returns {boolean} Whether the current origin prefers the popup flow.
*/
function originPrefersPopup() {
	return inIframe() || POPUP_PREFERRED_ORIGINS.some((origin) => window.location.origin.endsWith(origin));
}

//#endregion
export { originPrefersPopup };
//# sourceMappingURL=originPrefersPopup.js.map