globalThis.process ??= {};
globalThis.process.env ??= {};
import { n as getTranslationsFor } from "./dist_BYPDVqt8.mjs";
//#region src/lib/content-i18n.ts
async function resolveContentTranslations(db, opts) {
	return getTranslationsFor(db, {
		entityType: opts.entityType,
		entityIds: opts.entityIds,
		locale: opts.locale,
		fields: opts.fields,
		fallbackToDefault: opts.fallbackToDefault
	});
}
function coalesceFields(base, translations, fields) {
	const result = { ...base };
	for (const field of fields) {
		const translated = translations[field];
		if (translated !== void 0 && translated !== "") result[field] = translated;
	}
	return result;
}
//#endregion
export { resolveContentTranslations as n, coalesceFields as t };
