/*! © 2026 Yahoo, Inc. UDS Tailwind and Purger v0.0.0-development */
const require_index = require('../../../palette/dist/index.cjs');
const require_assertUnreachable = require('./assertUnreachable.cjs');

//#region ../automated-config/dist/utils/mapColorFixtureToValue.js
/*! © 2026 Yahoo, Inc. UDS Default Config v0.0.0-development */
const mapColorFixtureToValue = (fixtureType, value) => {
	switch (fixtureType) {
		case "alwaysPaletteAliases":
			if (value.startsWith(require_index.ALWAYS_PREFIX)) {
				const [, subValue] = value.split("/");
				return `colors.always.${subValue}`;
			}
			return `colors.${value}`;
		case "spectrumColors": {
			const [hue, hueStep] = value.split("-");
			return `colors.${hue}.${hueStep}`;
		}
		case "foregroundPaletteColors": return `textColor.${value}`;
		case "backgroundPaletteColors": return `backgroundColor.${value}`;
		case "linePaletteColors":
		case "elevationAliases": return `borderColor.${value}`;
	}
	return require_assertUnreachable.assertUnreachable(fixtureType);
};

//#endregion
exports.mapColorFixtureToValue = mapColorFixtureToValue;