export async function resolveUiProvider(name) {
    const normalized = (name ?? 'primevue').trim().toLowerCase();
    if (normalized === 'primevue') {
        return (await import('../adapter/primevue/installPrimeVueAdapter')).primeVueUiProvider;
    }
    if (normalized === 'native') {
        return (await import('../adapter/native/installNativeAdapter')).nativeUiProvider;
    }
    throw new Error(`Unsupported VITE_UI_ADAPTER '${name}'. Allowed values: primevue, native.`);
}
