1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4958],{4958:(e,t,a)=>{a.d(t,{default:()=>E});var n=a(91555),s=a(23018);function o(e,t){return void 0===e||"accepted"===e||"rejected"===e?"none":t?"banner":"modal"}var i=a(53763);function r(){return"undefined"!=typeof document&&new RegExp("(?:^|; )".concat(i.Ds,"=1")).test(document.cookie)}var d=a(5761),c=a(11360),l=a.n(c),u=a(51491);function m(){let e=(0,d.S9)(),[t,a]=(0,u.useState)(!1),[i,c]=(0,u.useState)(null),[m,f]=(0,u.useState)(!1);(0,u.useEffect)(()=>{f(r())},[]),(0,u.useEffect)(()=>{let e=()=>a(!0);return window.addEventListener(d.wK,e),()=>window.removeEventListener(d.wK,e)},[]);let p=o(e,m);if(!(t||"banner"===p))return null;async function x(e){c(e);try{if(!(await fetch("/api/consent",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({choice:e})})).ok)throw Error("consent request failed");window.dispatchEvent(new Event(d.h8)),a(!1)}catch(e){}finally{c(null)}}return(0,n.jsx)("div",{role:"dialog","aria-label":"Aviso de cookies",className:"fixed inset-x-0 bottom-0 z-[100] border-t border-gray-200 bg-white px-4 py-4 shadow-[0_-4px_12px_rgba(0,0,0,0.06)] sm:px-6",children:(0,n.jsxs)("div",{className:"mx-auto flex max-w-5xl flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,n.jsxs)("p",{className:"text-sm text-gray-700",children:["Usamos cookies necess\xe1rios para o funcionamento do site e, mediante seu aceite, cookies para medir audi\xeancia e para exibir an\xfancios de parceiros. Voc\xea pode mudar sua escolha a qualquer momento. Veja"," ",(0,n.jsx)(l(),{href:"/cookies",className:"text-blue-600 hover:underline",children:"quais cookies usamos"})," ","ou leia a"," ",(0,n.jsx)(l(),{href:"/politica-de-privacidade",className:"text-blue-600 hover:underline",children:"Pol\xedtica de Privacidade"}),"."]}),(0,n.jsxs)("div",{className:"flex shrink-0 gap-2",children:[(0,n.jsx)(s.A,{text:"Recusar",variant:"secondary",className:"h-10 px-4",loading:"rejected"===i,disabled:null!==i,onClick:()=>x("rejected")}),(0,n.jsx)(s.A,{text:"Aceitar",variant:"primary",className:"h-10 px-4",loading:"accepted"===i,disabled:null!==i,onClick:()=>x("accepted")})]})]})})}var f=a(88752);function p(){return .5>Math.random()?"a":"b"}let x={a:{title:"Ajude a manter o site gratuito",body:"Com seu aceite, usamos cookies para medir o uso do site e para exibir an\xfancios de parceiros â \xe9 o que paga a conta. Voc\xea decide e pode mudar quando quiser.",accept:"Aceitar e ajudar"},b:{title:"Cookies de medi\xe7\xe3o e publicidade",body:"Usamos cookies para entender como o site \xe9 usado e para exibir an\xfancios de parceiros. A escolha \xe9 sua e pode ser alterada a qualquer momento.",accept:"Aceitar"}};function h(){let e=(0,d.S9)(),[t,a]=(0,u.useState)(!1),[c,m]=(0,u.useState)(!1),[h,v]=(0,u.useState)(null),[g,j]=(0,u.useState)(null);(0,u.useEffect)(()=>{a(r())},[]);let y=o(e,t);if((0,u.useEffect)(()=>{if("modal"!==y)return;v(function(e){if("undefined"==typeof document)return p();let t=function(){var e;if("undefined"==typeof document)return null;let t=document.cookie.match(new RegExp("(?:^|; )".concat(i.YQ,"=([^;]+)")));return"a"===(e=null==t?void 0:t[1])||"b"===e?e:null}();if(t)return t;let a=p();return document.cookie="".concat(i.YQ,"=").concat(a,"; path=/; max-age=").concat(e,"; samesite=lax").concat("; secure"),a}(i.jZ));let e=setTimeout(()=>m(!0),3e3);return()=>clearTimeout(e)},[y]),"modal"!==y||!c||!h)return null;let b=x[h];async function w(e){j(e);try{if(!(await fetch("/api/consent",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({choice:e})})).ok)throw Error("consent request failed");window.dispatchEvent(new Event(d.h8)),m(!1)}catch(e){}finally{j(null)}}return(0,n.jsx)(f.lG,{open:!0,onOpenChange:e=>{var t;e||(t=i.jZ,"undefined"!=typeof document&&(document.cookie="".concat(i.Ds,"=1; path=/; max-age=").concat(t,"; samesite=lax").concat("; secure")),a(!0),m(!1))},children:(0,n.jsxs)(f.Cf,{className:"sm:max-w-md",children:[(0,n.jsxs)(f.c7,{children:[(0,n.jsx)(f.L3,{children:b.title}),(0,n.jsxs)(f.rr,{children:[b.body," ",(0,n.jsx)(l(),{href:"/politica-de-privacidade",className:"text-blue-600 hover:underline",children:"Pol\xedtica de Privacidade"}),"."]})]}),(0,n.jsxs)(f.Es,{className:"gap-2 sm:gap-2",children:[(0,n.jsx)(s.A,{text:"Recusar",variant:"secondary",className:"h-10 px-4",loading:"rejected"===g,disabled:null!==g,onClick:()=>w("rejected")}),(0,n.jsx)(s.A,{text:b.accept,variant:"primary",className:"h-10 px-4",loading:"accepted"===g,disabled:null!==g,onClick:()=>w("accepted")})]})]})})}var v=a(39);function g(e){let{children:t,...a}=e;return(0,n.jsx)(v.N,{...a,children:t})}var j=a(38608),y=a(65447),b=a(33246);let w="client-XQ36m4LpzGcxV7jmWoclwvELovk1INN4ixEK4ZQOSzv";function N(e){var t;let{children:a}=e,{data:s,status:o}=(0,b.useSession)(),i=(0,d.S9)();return"loading"!==o&&w&&(null==s?void 0:null===(t=s.user)||void 0===t?void 0:t.id)&&"accepted"===i?(0,n.jsx)(y.StatsigProvider,{sdkKey:w,user:{userID:s.user.id},loadingComponent:(0,n.jsx)(j.A,{}),children:a}):(0,n.jsx)(n.Fragment,{children:a})}var k=a(96341);function E(e){let{children:t}=e;return(0,n.jsxs)(g,{attribute:"class",defaultTheme:"light",enableSystem:!0,disableTransitionOnChange:!0,children:[(0,n.jsx)(k.l$,{closeButton:!0}),(0,n.jsxs)(b.SessionProvider,{children:[(0,n.jsx)(N,{children:t}),(0,n.jsx)(m,{}),(0,n.jsx)(h,{})]})]})}},5761:(e,t,a)=>{a.d(t,{S9:()=>d,h8:()=>o,wK:()=>i});var n=a(51491),s=a(53763);let o="dvl-consent-changed",i="dvl-consent-manage";function r(){if("undefined"==typeof document)return null;let e=document.cookie.match(new RegExp("(?:^|; )".concat(s.WP,"=([^;]+)"))),t=null==e?void 0:e[1];return"accepted"===t||"rejected"===t?t:null}
1function d(){let[e,t]=(0,n.useState)(void 0);return(0,n.useEffect)(()=>{t(r());let e=()=>t(r());return window.addEventListener(o,e),()=>window.removeEventListener(o,e)},[]),e}},53763:(e,t,a)=>{a.d(t,{Ds:()=>o,WP:()=>n,YQ:()=>s,jZ:()=>i});let n="dvl_consent",s="dvl_ab",o="dvl_consent_seen",i=31536e3},88752:(e,t,a)=>{a.d(t,{Cf:()=>u,Es:()=>f,L3:()=>p,c7:()=>m,lG:()=>d,rr:()=>x});var n=a(91555),s=a(51491),o=a(52203),i=a(24450),r=a(8564);let d=o.bL;o.l9;let c=o.ZL;o.bm;let l=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(o.hJ,{ref:t,className:(0,r.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...s})});l.displayName=o.hJ.displayName;let u=s.forwardRef((e,t)=>{let{className:a,children:s,...d}=e;return(0,n.jsxs)(c,{children:[(0,n.jsx)(l,{}),(0,n.jsxs)(o.UC,{ref:t,className:(0,r.cn)("fixed left-[50%] top-[50%] z-50 grid w-[calc(100%-2rem)] max-w-lg max-h-[90dvh] overflow-y-auto translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-lg",a),...d,children:[s,(0,n.jsxs)(o.bm,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,n.jsx)(i.A,{className:"h-4 w-4"}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});u.displayName=o.UC.displayName;let m=e=>{let{className:t,...a}=e;return(0,n.jsx)("div",{className:(0,r.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...a})};m.displayName="DialogHeader";let f=e=>{let{className:t,...a}=e;return(0,n.jsx)("div",{className:(0,r.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a})};f.displayName="DialogFooter";let p=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(o.hE,{ref:t,className:(0,r.cn)("text-lg font-semibold leading-none tracking-tight",a),...s})});p.displayName=o.hE.displayName;let x=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(o.VY,{ref:t,className:(0,r.cn)("text-sm text-muted-foreground",a),...s})});x.displayName=o.VY.displayName}}]);
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.