export function receivers(component) { if (component.receivers === undefined) return const receivers = component.receivers for (const [key, value] of Object.entries(receivers)) { const segments = key.split('.') const source = value.source ?? 'default' value.conditioned ??= false value.adaptive ??= false if (source !== 'default') continue if (segments.length === 3) continue // already with a namespace const newKey = 'default.' + key delete receivers[key] receivers[newKey] = value } }