/**
 * FAB layout configuration for the web UI.
 *
 * Reads from Settings.fabLayout when available, defaulting to
 * swapPosition = false (Create FAB on start side, Chat FAB on end side).
 */
import { hasSettings, getSettings } from '../../../../packages/core/src/infrastructure/services/settings.service.js';
export function getFabLayout() {
    try {
        if (hasSettings()) {
            const fabLayout = getSettings().fabLayout;
            if (fabLayout) {
                return { swapPosition: fabLayout.swapPosition };
            }
        }
    }
    catch {
        // Settings not initialized (e.g., during build/SSG or client-side hydration)
    }
    return { swapPosition: false };
}
