1import{r as l,j as e}from"./vendor-react-63GBCzgN.js";import{AnimatePresence as n,motion as c}from"./vendor-motion-BjqNSd8I.js";import{c as d,X as m,S as x,C as h}from"./index-BJrnvmHL.js";import"./vendor-router-DoA1Duab.js";import"./vendor-base44-C5mCKdwd.js";/** 2 * @license lucide-react v0.475.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const p=[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]],f=d("Cookie",p),i="treeal_cookie_consent_v1";function j(){const[r,s]=l.useState(!1);l.useEffect(()=>{try{if(!localStorage.getItem(i)){const o=setTimeout(()=>s(!0),1200);return()=>clearTimeout(o)}}catch{s(!0)}},[]);const t=a=>{try{localStorage.setItem(i,JSON.stringify({choice:a,date:new Date().toISOString()}))}catch{}s(!1)};return e.jsx(n,{children:r&&e.jsx(c.div,{initial:{opacity:0,y:28,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:28,scale:.98},transition:{duration:.4,ease:[.16,1,.32,1]},className:"fixed inset-x-0 bottom-0 z-[60] px-4 pb-4 sm:px-6 sm:pb-6",children:e.jsxs("div",{className:"mx-auto w-full max-w-4xl overflow-hidden rounded-3xl border border-black/[0.06] bg-white shadow-[0_24px_80px_-24px_rgba(9,9,11,0.28)]",children:[e.jsx("div",{className:"h-1 w-full",style:{background:"linear-gradient(90deg, #e8da11 0%, #0f6e14 100%)"}}),e.jsxs("div",{className:"relative p-5 sm:p-7",children:[e.jsx("button",{onClick:()=>t("dismissed"),className:"absolute right-4 top-4 flex h-8 w-8 items-center justify-center rounded-full text-treeal-gray transition-colors hover:bg-treeal-bg-soft","aria-label":"Fechar",children:e.jsx(m,{className:"h-4 w-4"})}),e.jsxs("div",{className:"flex flex-col gap-5 sm:flex-row sm:items-start",children:[e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("span",{className:"flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-2xl",style:{backgroundColor:"#e8da11"},children:e.jsx(f,{className:"h-6 w-6",style:{color:"#213325"},strokeWidth:2})}),e.jsxs("div",{className:"min-w-0 flex-1 pr-6 sm:pr-8",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("h3",{className:"font-heading text-lg font-bold leading-tight text-treeal-black",children:"Cookies & Privacidade"}),e.jsxs("span",{className:"hidden items-center gap-1 rounded-full px-2.5 py-0.5 text-[11px] font-semibold sm:inline-flex",style:{backgroundColor:"rgba(15,110,20,0.08)",color:"#0f6e14"},children:[e.jsx(x,{className:"h-3 w-3",strokeWidth:2.5}),"LGPD"]})]}),e.jsxs("p",{className:"mt-2 text-sm leading-relaxed text-treeal-gray",children:["Usamos cookies para melhorar sua experiência, analisar tráfego e personalizar conteúdo. Você escolhe o que prefere aceitar. Saiba mais na nossa"," ",e.jsx("a",{href:"/politica-de-privacidade",className:"font-semibold underline underline-offset-2 transition-colors",style:{color:"#0f6e14"},children:"PolÃtica de Privacidade"}),"."]})]})]}),e.jsxs("div",{className:"flex flex-col gap-2.5 sm:flex-row sm:items-center sm:whitespace-nowrap",children:[e.jsx("button",{onClick:()=>t("essential"),className:"inline-flex items-center justify-center gap-1.5 rounded-full border border-black/15 px-5 py-2.5 text-sm font-semibold text-treeal-black transition-all hover:border-black/25 hover:bg-treeal-bg-soft",children:"Apenas essenciais"}),e.jsxs("button",{onClick:()=>t("all"),className:"inline-flex items-center justify-center gap-1.5 rounded-full px-5 py-2.5 text-sm font-semibold text-white transition-all hover:scale-[1.02]",style:{backgroundColor:"#0f6e14"},children:[e.jsx(h,{className:"h-4 w-4",strokeWidth:2.5}),"Aceitar todos"]})]})]})]})]})})})}export{j 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.