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