PageSourceSearch

https://vinhobrasileiro.org/_next/static/chunks/app/(site)/page-bfab6db54854a285.js

js vinhobrasileiro.org collected 2026-10-06 01:53:43 UTC 28,185 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6502],{3511:function(e,t,l){Promise.resolve().then(l.bind(l,9408)),Promise.resolve().then(l.bind(l,895)),Promise.resolve().then(l.bind(l,2798)),Promise.resolve().then(l.bind(l,7157)),Promise.resolve().then(l.bind(l,3727)),Promise.resolve().then(l.bind(l,7840)),Promise.resolve().then(l.bind(l,3080)),Promise.resolve().then(l.bind(l,805))},9408:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return BannerCarousel}});var a=l(7437),r=l(2265);function BannerCarousel(e){let{itens:t,tipoTela:l}=e,s=Array.isArray(t)?t.filter(e=>Number(e.tipoTela)===Number(l)):[],[n,i]=(0,r.useState)(0),o=s.length>1;if((0,r.useEffect)(()=>{if(!o)return;let e=setInterval(()=>{i(e=>(e+1)%s.length)},6e4);return()=>clearInterval(e)},[s.length,o]),0===s.length)return null;let c=s[n],d=!!c.titulo||!!c.subtitulo||!!c.textoBotao,x=c.urlImagemFundo||c.urlImagemCapa||"";return(0,a.jsxs)("section",{className:"\n        relative w-full overflow-hidden\n        flex items-center\n        bg-cover bg-center bg-no-repeat\n        ".concat("min-h-[250px] sm:min-h-[350px] md:min-h-[480px]","\n      "),style:{backgroundImage:x?"url('".concat(x,"')"):void 0},children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-black/30"}),d&&(0,a.jsx)("div",{className:" relative z-10 w-full container mx-auto px-4 sm:px-6 py-10 sm:py-16 md:py-24 flex flex-col items-center md:items-end text-center md:text-right ",children:(0,a.jsxs)("div",{className:"max-w-lg text-white",children:[c.titulo&&(0,a.jsx)("h1",{className:"text-2xl sm:text-3xl md:text-4xl font-bold drop-shadow-lg",children:c.titulo}),c.subtitulo&&(0,a.jsx)("p",{className:"mt-4 text-base sm:text-lg drop-shadow",children:c.subtitulo}),c.textoBotao&&c.linkBotao&&(0,a.jsx)("a",{href:c.linkBotao,target:"_blank",rel:"noopener noreferrer",className:" inline-block mt-6 w-full sm:w-auto text-white px-8 py-3 rounded-lg text-sm font-semibold shadow-md hover:bg-[#A63D17] transition-all ",style:c.corBotao?{backgroundColor:c.corBotao}:{backgroundColor:"#C24B1A"},children:c.textoBotao})]})}),o&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{className:" hidden md:flex absolute left-4 top-1/2 -translate-y-1/2 bg-black/40 hover:bg-black/60 text-white p-3 rounded-full transition z-20 ",onClick:()=>i((n-1+s.length)%s.length),"aria-label":"Banner anterior",children:"‹"}),(0,a.jsx)("button",{className:" hidden md:flex absolute right-4 top-1/2 -translate-y-1/2 bg-black/40 hover:bg-black/60 text-white p-3 rounded-full transition z-20 ",onClick:()=>i((n+1)%s.length),"aria-label":"Pr\xf3ximo banner",children:"›"})]}),o&&(0,a.jsx)("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 flex gap-2 z-20",children:s.map((e,t)=>(0,a.jsx)("button",{onClick:()=>i(t),className:"w-3 h-3 rounded-full transition-all ".concat(t===n?"bg-white scale-110":"bg-white/50"),"aria-label":"Banner ".concat(t+1)},t))})]})}},2750:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return CardPrincipal}});var a=l(7437),r=l(6691),s=l.n(r),n=l(1396),i=l.n(n);let passthroughImageLoader=e=>{let{src:t}=e;return t};function CardPrincipal(e){let{item:t,hrefBase:l,localImagem:r=0,linkTarget:n,linkRel:o}=e,c="string"==typeof t.titulo?t.titulo:"";return 1===r?(0,a.jsxs)("div",{className:"relative group flex flex-col sm:flex-row rounded-2xl bg-white overflow-hidden  hover:bg-[#833B4F]/60",children:[t.urlImagem&&(0,a.jsx)("div",{className:"relative shrink-0 w-full sm:w-[230px] h-[200px]",children:(0,a.jsx)(s(),{src:t.urlImagem,alt:c,fill:!0,className:"rounded-t-2xl sm:rounded-l-2xl sm:rounded-tr-none object-cover"})}),(0,a.jsxs)("div",{className:"flex flex-col justify-start p-4 flex-1 z-10",children:["string"==typeof t.titulo?(0,a.jsx)("h3",{className:"text-[18px] font-extrabold leading-snug mb-2 clamp-3 group-hover:text-white transition-colors",children:t.titulo}):(0,a.jsx)("div",{className:"text-[18px] font-extrabold leading-snug mb-2 clamp-3 group-hover:text-white transition-colors",children:t.titulo}),(0,a.jsx)("div",{className:"text-xs text-black group-hover:text-white/90 leading-relaxed line-clamp-5 transition-colors",children:t.descricaoCurta})]}),(0,a.jsx)("div",{className:"absolute inset-0 z-20 bg-black/40 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center",children:(0,a.jsx)(i(),{href:l,target:n,rel:o,className:"px-6 py-3 bg-[#007E6A] hover:bg-[#006857] text-white rounded-xl shadow-lg text-center transition-transform transform hover:scale-105",children:"Saiba mais"})})]},t.id):(0,a.jsxs)("div",{className:" relative group rounded-2xl transition-all duration-300 hover:shadow-xl bg-white hover:bg-[#833B4F]/60 min-h-[380px] sm:min-h-[400px] flex flex-col overflow-hidden ",children:[(0,a.jsx)("div",{className:"px-5 pt-5 pb-3",children:"string"==typeof t.titulo?(0,a.jsx)("h3",{className:"text-base font-bold leading-tight text-black group-hover:text-white clamp-3",children:t.titulo}):(0,a.jsx)("div",{className:"text-base font-bold leading-tight text-black group-hover:text-white clamp-3",children:t.titulo})}),(0,a.jsx)("div",{className:"px-5",children:(0,a.jsxs)("div",{className:"relative w-full h-56 overflow-hidden rounded-xl",children:[t.urlImagem&&(0,a.jsx)(s(),{loader:passthroughImageLoader,unoptimized:!0,src:t.urlImagem,alt:c,fill:!0,sizes:"(min-width: 1024px) 33vw, (min-width: 640px) 50vw, 100vw",className:"object-cover"}),(0,a.jsx)("div",{className:" absolute inset-0 bg-black/40 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center ",children:(0,a.jsx)(i(),{href:"".concat(l),target:n,rel:o,className:" px-5 py-2 bg-[#007E6A] hover:bg-[#006857] text-white rounded-xl transition ",children:"Saiba mais"})})]})}),(0,a.jsx)("div",{className:"flex flex-col flex-grow px-5 pb-5 pt-4",children:(0,a.jsx)("div",{className:"text-xs text-black group-hover:text-white/90 leading-relaxed line-clamp-5",children:t.descricaoCurta})})]})}},895:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return EnoturismoSection}});var a=l(7437),r=l(9251),s=l(2265),n=l(6691),i=l.n(n);function ControlButton(e){let{onClick:t,children:l}=e;return(0,a.jsx)("button",{onClick:t,className:"transition text-white/70 hover:text-white",children:l})}function getRandomIndex(e,t){if(e<=1)return t;let l=t;for(;l===t;)l=Math.floor(Math.random()*e);return l}function getNextIndexAlternatingProvider(e,t){let l=e.length;if(l<=1)return t;let a=Math.min(t,l-1),r=e[a];if(!r)return a;let s="youtube"===r.provider?"spotify":"youtube";for(let t=1;t<l;t++){var n;let r=(a+t)%l;if((null===(n=e[r])||void 0===n?void 0:n.provider)===s)return r}return(a+1)%l}function PlayerCard(e){var t,l;let{playlist:r}
1=e,[n,o]=(0,s.useState)(0),[c,d]=(0,s.useState)(0),[x]=(0,s.useState)(!1),u=r.length>0,m=u?Math.min(n,r.length-1):0,h=u?r[m]:null,f=(null==h?void 0:h.provider)==="youtube",g=f?null==h?void 0:null===(t=h.url.split("v=")[1])||void 0===t?void 0:t.split("&")[0]:null,p=null!==(l=(null==h?void 0:h.urlImagem)||(g?"https://img.youtube.com/vi/".concat(g,"/hqdefault.jpg"):null))&&void 0!==l?l:null,handleRedirect=()=>{(null==h?void 0:h.url)&&window.open(h.url,"_blank","noopener,noreferrer")},resetAutoRotate=()=>{d(e=>e+1)},next=()=>{o(e=>0===r.length?e:x?getRandomIndex(r.length,e):(e+1)%r.length)},prev=()=>{o(e=>0===r.length?e:(e-1+r.length)%r.length)};return(0,s.useEffect)(()=>{u&&n>=r.length&&o(0)},[n,u,r.length]),(0,s.useEffect)(()=>{if(!u||r.length<=1)return;let e=window.setTimeout(()=>{o(e=>getNextIndexAlternatingProvider(r,e))},7e3);return()=>window.clearTimeout(e)},[u,r,m,c]),h&&(0,a.jsxs)("div",{className:" w-[235px] h-[345px] rounded-2xl flex flex-col items-center justify-between p-5 text-white ",style:{backgroundColor:f?"#CE2834":"#1DB954"},children:[(0,a.jsx)("div",{className:"text-xs font-semibold tracking-wide",children:f?"YOUTUBE":"SPOTIFY"}),(0,a.jsx)("div",{onClick:handleRedirect,className:" w-[165px] h-[165px] relative overflow-hidden bg-black cursor-pointer ",children:p&&(0,a.jsx)(i(),{src:p,alt:h.title,fill:!0,sizes:"165px",className:"object-cover",priority:!0})}),(0,a.jsxs)("div",{className:"px-2 flex flex-col gap-1 text-center",children:[(0,a.jsx)("h3",{className:"text-sm font-bold leading-none",children:h.title}),(0,a.jsx)("div",{className:"text-xs opacity-80 line-clamp-2",children:h.description})]}),(0,a.jsxs)("div",{className:"flex items-center justify-center gap-4",children:[(0,a.jsx)(ControlButton,{onClick:()=>{resetAutoRotate(),prev()},children:(0,a.jsx)(i(),{src:"/player/player-left.svg",alt:"Voltar",width:18,height:18})}),(0,a.jsx)("button",{onClick:()=>{resetAutoRotate(),handleRedirect()},children:(0,a.jsx)(i(),{src:"/player/player-play.svg",alt:"Play",width:25,height:30})}),(0,a.jsx)(ControlButton,{onClick:()=>{resetAutoRotate(),next()},children:(0,a.jsx)(i(),{src:"/player/player-right.svg",alt:"Avan\xe7ar",width:18,height:18})})]})]},h.url)}function EnoturismoSection(e){let{item:t,podcasts:l}=e;return t?(t=(0,r.p)(t),(0,a.jsx)("section",{className:"w-full bg-white overflow-hidden px-4 pt-12 pb-12",children:(0,a.jsxs)("div",{className:"mx-auto w-full max-w-screen-2xl px-4 sm:px-6 lg:px-10",children:[(0,a.jsx)("h2",{className:"text-3xl sm:text-4xl font-bold mb-8 md:mb-12 text-black text-center md:text-left",children:"Enoturismo"}),(0,a.jsxs)("div",{className:"flex flex-col xl:flex-row gap-2 xl:gap-4 items-center xl:items-start",children:[(0,a.jsx)("div",{className:"w-full xl:flex-1",children:(0,a.jsxs)("div",{className:"flex flex-col md:flex-row gap-4 lg:gap-6 items-center md:items-start",children:[(0,a.jsx)("div",{className:"w-full md:w-1/2 lg:max-w-[460px] aspect-[4/3] md:aspect-auto md:h-[320px] rounded-2xl overflow-hidden bg-gray-100 shadow-sm flex-shrink-0",children:(0,a.jsx)("img",{src:t.urlImagemDestacada,alt:t.titulo,className:"w-full h-full object-cover"})}),(0,a.jsxs)("div",{className:"w-full md:flex-1 flex flex-col items-center md:items-start text-center md:text-left",children:[(0,a.jsx)("span",{className:"text-gray-500 italic text-lg block mb-2",children:"Experi\xeancia"}),(0,a.jsx)("h3",{className:"text-2xl sm:text-3xl lg:text-4xl font-bold leading-tight text-black line-clamp-2",children:t.titulo}),(0,a.jsx)("div",{className:"mt-4 text-gray-700 text-base leading-relaxed line-clamp-3",children:t.descricaoCurta}),(0,a.jsx)("a",{href:"/enoturismo/".concat(t.id),className:"mt-8 px-10 py-3 rounded-xl text-white font-semibold transition-all hover:scale-105 active:scale-95 shadow-lg text-center",style:{backgroundColor:t.corBotao||"#f97316"},children:"Confira"})]})]})}),(0,a.jsx)("div",{children:(0,a.jsx)(PlayerCard,{playlist:l})})]})]})})):null}},2798:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return EventosSection}});var a=l(7437),r=l(2265),s=l(2750),n=l(9251);let toUTCDate=e=>new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()));function EventosSection(e){let{item:t}=e,l=t.map(e=>(0,n.p)(e)),i=new Date,[o,c]=(0,r.useState)(i.getUTCMonth()),[d,x]=(0,r.useState)(i.getUTCFullYear()),[u,m]=(0,r.useState)(null),h=new Date(d,o+1,0).getUTCDate(),f=new Date(Date.UTC(d,o,1)).getUTCDay(),g=(0,r.useMemo)(()=>{let e=new Set;return l.filter(e=>
1!1!==e.ativo).forEach(t=>{let l=toUTCDate(new Date(t.dataInicio)),a=toUTCDate(new Date(t.dataFim)),r=new Date(l);for(;r<=a;){if(r.getUTCMonth()===o&&r.getUTCFullYear()===d){let t="".concat(d,"-").concat(String(o+1).padStart(2,"0"),"-").concat(String(r.getUTCDate()).padStart(2,"0"));e.add(t)}r.setUTCDate(r.getUTCDate()+1)}}),e},[l,o,d]),p=(0,r.useMemo)(()=>{let e=l.filter(e=>!1!==e.ativo);if(u){let t=new Date(u+"T00:00:00Z");return e.filter(e=>{let l=new Date(e.dataInicio),a=new Date(e.dataFim);return t>=l&&t<=a})}return e.filter(e=>new Date(e.dataFim)>=toUTCDate(new Date)).sort((e,t)=>new Date(e.dataInicio).getTime()-new Date(t.dataInicio).getTime()).slice(0,4)},[l,u]),mudarMes=e=>{let t=o+e,l=d;t>11&&(t=0,l++),t<0&&(t=11,l--),c(t),x(l)};return(0,a.jsx)("section",{className:"w-full pt-10 bg-gray-50 overflow-hidden",children:(0,a.jsxs)("div",{className:"mx-auto w-full max-w-screen-2xl px-4 pb-12 sm:px-6 lg:px-10 xl:px-16",children:[(0,a.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center justify-between mb-10 gap-4",children:[(0,a.jsx)("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900",children:u?"Eventos no dia selecionado":"Pr\xf3ximos Eventos"}),u&&(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"bg-[#7A3B45] text-white px-4 py-3 rounded-xl flex flex-col sm:flex-row sm:justify-between sm:items-center gap-2 text-sm shadow-sm transition-all",children:[(0,a.jsxs)("span",{children:["Filtrando dia:"," ",(0,a.jsx)("b",{children:new Date(u+"T00:00:00Z").toLocaleDateString("pt-BR",{timeZone:"UTC"})})]}),(0,a.jsx)("button",{onClick:()=>{m(null)},className:"bg-white text-[#7A3B45] text-[10px] uppercase tracking-wider px-2 py-1 rounded-md font-bold hover:bg-gray-100 transition-colors self-start sm:self-auto",children:"Limpar"})]})})]}),(0,a.jsxs)("div",{className:"flex flex-col xl:flex-row gap-10 xl:gap-14 items-start",children:[(0,a.jsx)("div",{className:"w-full xl:flex-1",children:p.length>0?(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:p.map(e=>(0,a.jsx)("div",{className:"bg-white rounded-2xl shadow-sm hover:shadow-md transition-shadow p-4 border border-gray-100 group",children:(0,a.jsx)(s.default,{item:{id:e.id,titulo:"",urlImagem:e.urlImagemDestaque,descricaoCurta:(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("span",{className:"text-xs font-semibold text-[#007E6A] uppercase tracking-wider mb-2",children:(()=>{let t=new Date(e.dataInicio).toLocaleDateString("pt-BR",{timeZone:"UTC"}),l=new Date(e.dataFim).toLocaleDateString("pt-BR",{timeZone:"UTC"});return t===l?t:"".concat(t," — ").concat(l)})()}),(0,a.jsx)("h3",{className:"font-bold text-lg leading-tight text-gray-900 group-hover:text-[#007E6A] transition-colors line-clamp-2",children:e.titulo}),(0,a.jsx)("div",{className:"text-sm text-gray-500 mt-3 line-clamp-2",children:e.descricaoCurta})]})},hrefBase:"/eventos/".concat(e.id),localImagem:0})},e.id))}):(0,a.jsxs)("div",{className:"h-64 w-full flex flex-col items-center justify-center bg-white rounded-2xl border-2 border-dashed border-gray-200 p-6 text-center",children:[(0,a.jsx)("p",{className:"text-gray-400 mb-4",children:"Nenhum evento encontrado para esta data espec\xedfica."}),(0,a.jsx)("button",{onClick:()=>m(null),className:"text-sm text-[#007E6A] font-bold",children:"Ver pr\xf3ximos eventos"})]})}),(0,a.jsx)("aside",{className:"w-full xl:w-[360px] flex-shrink-0",children:(0,a.jsxs)("div",{className:"bg-white rounded-2xl shadow-sm border border-gray-100 p-6 sm:p-8",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between w-full mb-6",children:[(0,a.jsx)("button",{onClick:()=>mudarMes(-1),className:"w-10 h-10 flex items-center justify-center rounded-full hover:bg-gray-100 transition",children:"‹"}),(0,a.jsxs)("h3",{className:"font-bold text-gray-900",children:[["Janeiro","Fevereiro","Mar\xe7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"][o]," ",d]}),(0,a.jsx)("button",{onClick:()=>mudarMes(1),className:"w-10 h-10 flex items-center justify-center rounded-full hover:bg-gray-100 transition",children:"›"})]}),(0,a.jsxs)("div",{className:"grid grid-cols-7 text-center w-full text-gray-400 text-[10px] font-bold uppercase mb-4",children:[(0,a.jsx)("span",{children:"Dom"}),(0,a.jsx)("span",{children:"Seg"}),(0,a.jsx)("span",{children:"Ter"}),(0,a.jsx)("span",{children:"Qua"}
1),(0,a.jsx)("span",{children:"Qui"}),(0,a.jsx)("span",{children:"Sex"}),(0,a.jsx)("span",{children:"S\xe1b"})]}),(0,a.jsxs)("div",{className:"grid grid-cols-7 text-center w-full gap-2 text-sm",children:[Array.from({length:f}).map((e,t)=>(0,a.jsx)("span",{},"blank-".concat(t))),Array.from({length:h}).map((e,t)=>{let l=t+1,r="".concat(d,"-").concat(String(o+1).padStart(2,"0"),"-").concat(String(l).padStart(2,"0")),s=g.has(r),n=u===r;return(0,a.jsxs)("button",{onClick:()=>s&&m(r),disabled:!s,className:"relative w-8 h-8 sm:w-9 sm:h-9 flex items-center justify-center rounded-full mx-auto transition\n                        ".concat(s?"bg-[#7A3B45] text-white font-bold shadow-sm cursor-pointer hover:bg-[#5a2b33]":"text-gray-600 cursor-default opacity-40","\n                        ").concat(n?"ring-4 ring-[#7A3B45]/20 scale-110":"","\n                      "),children:[l,s&&(0,a.jsx)("span",{className:"absolute -bottom-1 w-1 h-1 bg-white rounded-full opacity-50"})]},l)})]}),(0,a.jsx)("div",{className:"mt-10",children:(0,a.jsx)("a",{href:"/eventos",className:"block w-full text-center py-3 bg-[#007E6A] hover:bg-[#006857] text-white font-semibold rounded-xl transition shadow-lg shadow-green-900/10",children:"Ver todos os eventos"})})]})})]})]})})}},3727:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return MercadoSection}});var a=l(7437),r=l(9251);function MercadoSection(e){var t,l;let{item:s}=e;s=(0,r.p)(s);let n=null!==(t=s.titulo)&&void 0!==t?t:"",i=null!==(l=s.descricaoCurta)&&void 0!==l?l:"";return(0,a.jsx)("section",{className:"w-full bg-white overflow-x-hidden",children:(0,a.jsxs)("div",{className:"mx-auto w-full max-w-screen-2xl px-4 sm:px-6 lg:px-10 xl:px-16 text-black",children:[(0,a.jsx)("h2",{className:"text-3xl sm:text-4xl font-bold mb-10",children:"Mercado"}),(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 items-center gap-10 lg:gap-14",children:[(0,a.jsx)("div",{className:"w-full flex justify-center lg:justify-start",children:(0,a.jsx)("div",{className:"w-full max-w-[560px] rounded-2xl overflow-hidden",children:s.urlImagemDestacada?(0,a.jsx)("img",{src:s.urlImagemDestacada,alt:n,className:"w-full h-auto object-contain"}):(0,a.jsx)("div",{className:"w-full h-[260px] bg-gray-100"})})}),(0,a.jsxs)("div",{className:"w-full lg:max-w-[520px]",children:[(0,a.jsx)("h3",{className:"text-3xl sm:text-4xl font-bold leading-tight mb-4 text-center lg:text-left",children:n}),(0,a.jsx)("div",{className:"text-sm sm:text-base text-gray-700 leading-relaxed mb-6 line-clamp-3 text-center lg:text-left",children:i}),(0,a.jsx)("a",{href:"/mercado/".concat(s.id),className:" block w-fit mx-auto mt-8 px-7 py-3 rounded-xl bg-orange-500 text-white font-semibold hover:bg-orange-600 transition ",children:"Confira"})]})]})]})})}},7840:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return NaMidiaSection}});var a=l(7437),r=l(9251),s=l(2750);function NaMidiaSection(e){let{items:t}=e;if(!t||0===t.length)return null;let l=t.map(e=>(0,r.p)(e)),toCardItem=(e,t)=>({id:String(t),titulo:e.titulo,descricaoCurta:e.resumo,urlImagem:e.urlImagemCapa});return(0,a.jsx)("section",{className:"w-full bg-white overflow-x-hidden",children:(0,a.jsxs)("div",{className:"mx-auto w-full max-w-screen-2xl px-4 sm:px-6 lg:px-10 xl:px-16",children:[(0,a.jsx)("h2",{className:"text-3xl sm:text-4xl font-bold mb-10 text-black",children:"Na m\xeddia"}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6 sm:gap-8 lg:gap-10",children:l.slice(0,3).map((e,t)=>(0,a.jsx)(s.default,{item:toCardItem(e,t),hrefBase:e.linkMateria,linkTarget:"_blank",linkRel:"noopener noreferrer"},t))})]})})}},3080:function(e,t,l){"use strict";
1l.r(t),l.d(t,{default:function(){return ObservatorioCarousel}});var a=l(7437),r=l(2265),s=l(9251);function ObservatorioCarousel(e){var t,l,n,i;let{item:o}=e,c=o.map(e=>(0,s.p)(e)),d=(null!=c?c:[]).filter(e=>(null==e?void 0:e.ativo)!==!1),[x,u]=(0,r.useState)(0);if(!d.length)return null;let m=d.length,h=m>1,nextPage=()=>u(e=>(e+1)%m);(0,r.useEffect)(()=>{if(!h)return;let e=setInterval(nextPage,7e3);return()=>clearInterval(e)},[h,m]);let formatColor=(e,t)=>{if(!e)return t;let l=e.trim();return l.startsWith("#")?l:"#".concat(l)},f=d[x],renderIndicators=e=>(0,a.jsx)("div",{className:"flex flex-wrap items-center justify-center gap-2",children:d.map((t,l)=>(0,a.jsx)("button",{onClick:()=>u(l),className:"rounded-full transition-all duration-300 ".concat("sm"===e?"w-2.5 h-2.5":"w-3 h-3"," ").concat(l===x?"bg-white scale-125":"bg-white/30"),"aria-label":"Slide ".concat(l+1)},l))});return(0,a.jsxs)("section",{className:"w-full",children:[(0,a.jsx)("div",{className:"lg:hidden w-full",style:{backgroundColor:formatColor(f.corFundo,"#007E6A")},children:(0,a.jsxs)("div",{className:"mx-auto w-full max-w-screen-2xl px-4 sm:px-6 py-10",children:[(0,a.jsx)("h2",{className:"text-3xl font-bold text-white mb-6",children:f.titulo}),(0,a.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,a.jsx)("div",{className:"w-full",children:(0,a.jsx)("div",{className:"bg-white rounded-2xl p-4 flex items-center justify-center shadow-xl",children:(0,a.jsx)("div",{className:"w-full aspect-[16/9] overflow-hidden rounded-xl",children:f.urlImagem?(0,a.jsx)("img",{src:f.urlImagem,alt:null!==(t=f.titulo)&&void 0!==t?t:"Observat\xf3rio",className:"w-full h-full object-contain"}):(0,a.jsx)("div",{className:"w-full h-full bg-gray-100 rounded-xl"})})})}),(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsx)("h3",{className:"text-3xl font-bold text-white mb-4 leading-tight text-center",children:null!==(l=f.subTitulo)&&void 0!==l?l:""}),(0,a.jsx)("div",{className:"text-sm text-white/90 leading-relaxed mb-6 text-center",children:null!==(n=f.descricao)&&void 0!==n?n:""}),(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsx)("a",{href:f.link?f.link:"/observatorio/".concat(null!==(i=f.slug)&&void 0!==i?i:""),...f.link?{target:"_blank",rel:"noopener noreferrer"}:{},className:"inline-block px-10 py-2.5 rounded-xl text-gray-900 font-semibold",style:{backgroundColor:formatColor(f.corBotao,"#007E6A")},children:"Confira"})}),h&&(0,a.jsx)("div",{className:"mt-8",children:(0,a.jsx)("div",{className:"mx-auto w-fit max-w-full rounded-full backdrop-blur-sm py-2 px-3",children:renderIndicators("sm")})})]})]})]})}),(0,a.jsx)("div",{className:"hidden lg:block",children:(0,a.jsxs)("section",{className:"w-full relative overflow-hidden min-h-[500px]",children:[d.map((e,t)=>{var l,r,s,n;let i=t===x,o=formatColor(e.corFundo,"#007E6A"),c=formatColor(e.corBotao,"#007E6A");return(0,a.jsx)("div",{className:"absolute inset-0 w-full h-full transition-opacity duration-700 ease-in-out ".concat(i?"opacity-100 z-10":"opacity-0 z-0"),style:{backgroundColor:o},children:(0,a.jsx)("div",{className:"mx-auto w-full max-w-screen-2xl px-4 sm:px-6 lg:px-10 xl:px-16 h-full",children:(0,a.jsxs)("div",{className:"flex flex-col h-full justify-center py-10 md:py-12",children:[(0,a.jsx)("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-6",children:e.titulo}),(0,a.jsxs)("div",{className:"flex flex-col lg:flex-row items-center gap-10 lg:gap-14",children:[(0,a.jsx)("div",{className:"w-full flex-shrink-0 lg:w-[512px]",children:(0,a.jsx)("div",{className:"bg-white rounded-2xl p-4 md:p-6 flex items-center justify-center shadow-xl",children:(0,a.jsx)("div",{className:"w-full h-[240px] lg:w-[512px] lg:h-[257px] overflow-hidden rounded-xl",children:e.urlImagem?(0,a.jsx)("img",{src:e.urlImagem,alt:null!==(l=e.titulo)&&void 0!==l?l:"Observat\xf3rio",className:"w-full h-full object-contain"}):(0,a.jsx)("div",{className:"w-full h-full bg-gray-100 rounded-xl"})})})}),(0,a.jsxs)("div",{className:"w-full lg:flex-1 max-w-none lg:max-w-[560px]",children:[(0,a.jsx)("h3",{className:"text-3xl sm:text-4xl font-bold text-white mb-4 leading-tight text-center lg:text-left",children:null!==(r=e.subTitulo)&&void 0!==r?r:""}),(0,a.jsx)("div",{className:"text-sm sm:text-base text-white/90 leading-relaxed mb-6 line-clamp-3 text-center lg:text-left",children:null!==(s=e.descricao)&&void 0!==s?s:""}),(0,a.jsx)("div",{className:"flex justify-center lg:justify-start",children:(0,a.jsx)("a",{href:e.link?e.link:"/observatorio/".concat(null!==(n=e.slug)&&void 0!==n?n:""),...e.link?{target:"_blank",rel:"noopener noreferrer"}:{},className:"inline-block px-10 py-2.5 rounded-xl text-gray-900 font-semibold hover:scale-105 transition-transform",style:{backgroundColor:c},children:"Confira"})})]})]})]})})},e.id||t)}),h&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"absolute bottom-6 left-0 right-0 z-30 px-4",children:(0,a.jsx)("div",{className:"mx-auto w-fit max-w-full rounded-full backdrop-blur-sm py-2 px-3",children:renderIndicators("md")})})})]})})]})}},805:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return VinicolasCarousel}});var a=l(7437),r=l(2265),s=l(2750),n=l(9251);function VinicolasCarousel(e){let{item:t}=e,[l,i]=(0,r.useState)(0),[o,c]=(0,r.useState)(3),d=t.map(e=>(0,n.p)(e));if((0,r.useEffect)(()=>{let computeCardsPorPagina=()=>{let e=window.innerWidth;c(e<640?1:e<1024?2:3)};return computeCardsPorPagina(),window.addEventListener("resize",computeCardsPorPagina),()=>window.removeEventListener("resize",computeCardsPorPagina)},[]),(0,r.useEffect)(()=>{i(0)},[o,d.length]),!d||0===d.length)return null;let x=Math.ceil(d.length/o),u=d.length>o,m=[];for(let e=0;e<d.length;
1e+=o)m.push(d.slice(e,e+o));return(0,r.useEffect)(()=>{if(!u||x<=1)return;let e=setInterval(()=>{i(e=>(e+1)%x)},7e3);return()=>clearInterval(e)},[u,x]),(0,a.jsx)("section",{className:"w-full bg-white pt-10 overflow-hidden",children:(0,a.jsxs)("div",{className:"mx-auto w-full max-w-screen-2xl px-4 sm:px-6 lg:px-10 xl:px-16",children:[(0,a.jsx)("h2",{className:"text-3xl sm:text-4xl font-bold mb-10 text-black",children:"Vin\xedcolas"}),!u&&(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-10",children:d.map(e=>(0,a.jsx)(s.default,{item:e,hrefBase:"/vinicolas/".concat(e.id)},e.id))}),u&&(0,a.jsxs)("div",{className:"relative overflow-hidden",children:[(0,a.jsx)("button",{onClick:()=>i(e=>(e-1+x)%x),className:" hidden xl:flex absolute -left-10 top-1/2 -translate-y-1/2 text-black/40 hover:text-black transition z-20 text-3xl ","aria-label":"Anterior",children:"‹"}),(0,a.jsx)("button",{onClick:()=>i(e=>(e+1)%x),className:" hidden xl:flex absolute -right-10 top-1/2 -translate-y-1/2 text-black/40 hover:text-black transition z-20 text-3xl ","aria-label":"Pr\xf3ximo",children:"›"}),(0,a.jsx)("div",{className:"flex transition-transform duration-500 ease-out",style:{transform:"translateX(-".concat(100*l,"%)")},children:m.map((e,t)=>(0,a.jsx)("div",{className:"w-full flex-shrink-0 px-0 sm:pr-4",children:(0,a.jsx)("div",{className:"grid gap-10 ".concat(1===o?"grid-cols-1":2===o?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3"),children:e.map(e=>(0,a.jsx)(s.default,{item:e,hrefBase:"/vinicolas/".concat(e.id)},e.id))})},t))}),(0,a.jsx)("div",{className:"flex gap-2 justify-center mt-6",children:Array.from({length:x}).map((e,t)=>(0,a.jsx)("button",{onClick:()=>i(t),className:"w-3 h-3 rounded-full transition ".concat(t===l?"bg-orange-500":"bg-gray-300"),"aria-label":"P\xe1gina ".concat(t+1)},t))})]})]})})}},9251:function(e,t,l){"use strict";function normalizeTextFields(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",l={};return Object.entries(e).forEach(e=>{let[a,r]=e;"string"==typeof r?l[a]=r.trim():null==r?l[a]=t:Array.isArray(r)?l[a]=r.map(e=>"object"==typeof e&&null!==e?normalizeTextFields(e,t):e):"object"==typeof r?l[a]=normalizeTextFields(r,t):l[a]=r}),l}l.d(t,{p:function(){return normalizeTextFields}})},679:function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var l in t)Object.defineProperty(e,l,{enumerable:!0,get:t[l]})}(t,{unstable_getImgProps:function(){return unstable_getImgProps},default:function(){return o}});let a=l(1024),r=l(7929),s=l(2637),n=l(413),i=a._(l(9950)),unstable_getImgProps=e=>{(0,s.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:t}=(0,r.getImgProps)(e,{defaultLoader:i.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,l]of Object.entries(t))void 0===l&&delete t[e];return{props:t}},o=n.Image},6691:function(e,t,l){e.exports=l(679)}},function(e){e.O(0,[1176,413,7157,2971,2472,1744],function(){return e(e.s=3511)}),_N_E=e.O()}]);

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.