/*! © 2026 Yahoo, Inc. UDS Tailwind and Purger v0.0.0-development */
const require_index = require('../../css-tokens/dist/index.cjs');
const require_entries = require('../../utils/entries.cjs');
const require_fromEntries = require('../../utils/fromEntries.cjs');
const require_getShadowStyles = require('./getShadowStyles.cjs');

//#region src/tailwind/utils/getElevationStyles.ts
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).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;