1import{j as e,A as c,m as l}from"./vendor-framer-BopOTbAw.js";import{r as s,L as d}from"./vendor-react-DCum3kP0.js";import{B as i}from"./index-DfhYtJxq.js";import{X as m,b5 as x}from"./vendor-lucide-CoeZ2i33.js";import"./vendor-tanstack-C3evQHA6.js";import"./vendor-supabase-CORtF97s.js";const w=()=>{const[r,t]=s.useState(!1);s.useEffect(()=>{try{if(!(typeof window<"u"&&window.localStorage?localStorage.getItem("cookie-consent"):"accepted")){const a=setTimeout(()=>t(!0),2e3);return()=>clearTimeout(a)}}catch{}},[]);const n=()=>{try{typeof window<"u"&&window.localStorage&&localStorage.setItem("cookie-consent","accepted")}catch{}t(!1)},o=()=>{try{typeof window<"u"&&window.localStorage&&localStorage.setItem("cookie-consent","declined")}catch{}t(!1)};return e.jsx(c,{children:r&&e.jsxs(l.div,{initial:{y:100,opacity:0},animate:{y:0,opacity:1},exit:{y:100,opacity:0},transition:{type:"spring",stiffness:300,damping:30},className:"fixed bottom-4 left-4 right-4 sm:left-auto sm:right-6 sm:bottom-6 sm:max-w-sm z-[60] bg-card border border-border rounded-xl shadow-elevated p-4",children:[e.jsx("button",{onClick:o,className:"absolute top-2 right-2 text-muted-foreground hover:text-foreground transition-colors p-1",children:e.jsx(m,{className:"h-4 w-4"})}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0 mt-0.5",children:e.jsx(x,{className:"h-4 w-4 text-primary"})}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-sm font-semibold text-foreground mb-0.5",children:"We value your privacy"}),e.jsxs("p",{className:"text-[11px] text-muted-foreground leading-relaxed mb-3 pr-4",children:["We use cookies to enhance your experience. By continuing, you agree to our"," ",e.jsx(d,{to:"/privacy-policy",className:"text-primary hover:underline",children:"Privacy Policy"}),"."]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(i,{size:"sm",onClick:n,className:"rounded-md h-7 text-[11px] px-3",children:"Accept All"}),e.jsx(i,{size:"sm",variant:"outline",onClick:o,className:"rounded-md h-7 text-[11px] px-3",children:"Decline"})]})]})]})]})})};export{w as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.