// storage/feedback-remote.ts — Remote feedback relay to Supabase (fire-and-forget)
// No PII is ever sent: no project paths, no user names, no emails.
const FEEDBACK_API = 'https://canusqigtzldstnjddio.supabase.co/functions/v1/license-api/feedback';
/**
 * Send feedback to central Supabase store (fire-and-forget).
 * Never throws. Returns true if sent successfully, false otherwise.
 */
export async function sendFeedbackRemote(payload) {
    try {
        const controller = new AbortController();
        const timeout = setTimeout(() => {
            controller.abort();
        }, 5000); // 5s timeout
        const res = await fetch(FEEDBACK_API, {
            method: 'POST',
            headers: { 'Content-Type': 'application/json' },
            body: JSON.stringify(payload),
            signal: controller.signal,
        });
        clearTimeout(timeout);
        return res.ok;
    }
    catch {
        return false; // Network error, timeout, etc. — silently fail
    }
}
//# sourceMappingURL=feedback-remote.js.map