//#region src/v2/helpers/get-active-proxy-url.ts
/**
* Returns the default proxy URL for web layout.
* For the 'web' layout, this ensures requests use Scalar's hosted proxy unless overridden,
* which is important for browser environments with CORS or network restrictions.
* For 'desktop' or 'modal' layouts, returns null to indicate no proxy by default.
*/
var getDefaultProxyUrl = (layout) => {
	if (layout === "web") return "https://proxy.scalar.com";
	return null;
};
/**
* Returns the active proxy URL for the workspace.
*
* Logic:
* - If the active proxy url is not set, use the default proxy url.
* - Otherwise, use the active proxy url.
*/
var getActiveProxyUrl = (activeProxyUrl, layout) => {
	if (activeProxyUrl === void 0) return getDefaultProxyUrl(layout);
	return activeProxyUrl;
};
//#endregion
export { getActiveProxyUrl };

//# sourceMappingURL=get-active-proxy-url.js.map