/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
const require_entries = require("../packages/utils/dist/entries.cjs");
const require_index = require("../packages/css-tokens/dist/index.cjs");
const require_fromEntries = require("../packages/utils/dist/fromEntries.cjs");
const require_getShadowStyles = require("./getShadowStyles.cjs");
//#region ../tailwind-internal/dist/utils/getElevationStyles.js
/*! © 2026 Yahoo, Inc. UDS Tailwind Internal v0.0.0-development */
function getElevationStyles({ config }) {
	const styles = require_fromEntries.fromEntries([...require_entries.entries(config.elevation).map(([level]) => require_getShadowStyles.shadowVariantToCSS("drop", `elevation-${level}`)), ...require_entries.entries(config.elevation).map(([level]) => require_getShadowStyles.shadowVariantToCSS("inset", `elevation-${level}`))]);
	require_entries.entries(config.elevation).forEach(([level]) => {
		styles[`.bg-elevation-${level}`] = {
			backgroundColor: `var(--${require_index.BACKGROUND_BLUR_FALLBACK_COLOR_PREFIX}-elevation-${level})`,
			["@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))"]: {
				backgroundColor: `var(--${require_index.BACKGROUND_COLOR_PREFIX}-elevation-${level})`,
				WebkitBackdropFilter: `var(--${require_index.BACKGROUND_BLUR_RADIUS_PREFIX}-elevation-${level})`,
				backdropFilter: `var(--${require_index.BACKGROUND_BLUR_RADIUS_PREFIX}-elevation-${level})`
			}
		};
	});
	styles["@media (prefers-reduced-transparency)"] = require_entries.entries(config.elevation).reduce((acc, [level]) => {
		acc[`.bg-elevation-${level}`] = {
			backgroundColor: `var(--${require_index.BACKGROUND_BLUR_FALLBACK_COLOR_PREFIX}-elevation-${level})`,
			WebkitBackdropFilter: "none",
			backdropFilter: "none"
		};
		return acc;
	}, {});
	return styles;
}
//#endregion
exports.getElevationStyles = getElevationStyles;
