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

//#region src/tailwind/utils/getFontFaceDeclarations.ts
/**
* Get all font face declarations for a given set of font IDs.
*/
function getFontFaceDeclarations(fontIds) {
	return fontIds.flatMap((fontID) => {
		const { declarations, fontFamily, isVariableFont } = require_index.FONT_DECLARATIONS_MAP[fontID];
		return declarations.map((declaration) => {
			const src = isVariableFont ? `url('${declaration.src}') format("woff2 supports variations"), url('${declaration.src}') format('woff2-variations')` : `url('${declaration.src}') format('woff2')`;
			return {
				fontFamily,
				fontDisplay: "swap",
				...declaration,
				src
			};
		});
	});
}

//#endregion
exports.getFontFaceDeclarations = getFontFaceDeclarations;