import { MEAL_SLOTS } from '../planner/mealSlots.js'; function escapeHtml(s) { return String(s) .replace(/&/g, '&') .replace(//g, '>') .replace(/"/g, '"'); } const slotLabelMap = Object.fromEntries(MEAL_SLOTS.map((slot) => [slot.id, slot.label])); function slotLabelsFor(recipe) { return (recipe.allowedSlots || []) .map((id) => slotLabelMap[id]) .filter(Boolean); } function getEmptyStateHTML({ emptyStateId, title, message }) { return `
${escapeHtml(title)}
${escapeHtml(message)}