import { json } from '../_lib/auth.js'; const defaults = { officeStatus: 'auto', customMessage: '', officeTimeZone: 'America/Los_Angeles', officeHours: { 0: null, 1: ['08:45','17:30'], 2: ['08:45','17:30'], 3: ['08:45','17:30'], 4: ['08:45','17:30'], 5: ['08:45','15:00'], 6: null }, closingSoonMinutes: 30, showPracticeUpdate: true, practiceUpdateLabel: 'Practice Update', practiceUpdateText: 'Same-day visits for acute care may be available. Please call the office for availability.', seasonalTitle: 'Prepare for smoke, heat, and respiratory illness.', seasonalText: 'Check local air quality, keep medicines available, stay hydrated, and ask your clinician which vaccines are appropriate for you.' }; export async function onRequestGet({ env }) { let saved = null; if (env.VFCC_SETTINGS) saved = await env.VFCC_SETTINGS.get('public-config', 'json'); return json({ ...defaults, ...(saved || {}) }, 200, { 'Cache-Control': 'public, max-age=15, stale-while-revalidate=30' }); }