1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3703],{29812:function(e,l,s){s.d(l,{Z:function(){return r}});var a=s(57437),t=s(53335);function r(e){let{className:l,barClassName:s,barColor:r,progress:n}=e;return n?(0,a.jsx)("div",{className:(0,t.m6)("relative h-1 w-full bg-colors-divider",l),children:(0,a.jsx)("span",{className:(0,t.m6)("block h-full bg-feedback-success",s),style:{width:"".concat(parseFloat(n),"%"),...r&&{backgroundColor:r}}})}):null}},41318:function(e,l,s){s.d(l,{j:function(){return g}});var a=s(57437),t=s(53335),r=s(29812),n=s(84591),i=s(2265),o=s(87270),c=s(66298),d=s(42227),u=s(40443),m=s(79996);let f={eleito:"bg-[#12805C] [&>p]:text-colors-background","2\xba turno":"bg-colors-text [&>p]:text-colors-background border-colors-divider"},p=["Anulado sub judice","Anulado"];function x(e){let{fotoCandidato:l,nomeCandidato:s}=e,[t,r]=(0,i.useState)(!1);return t||!l?(0,a.jsx)("div",{className:"flex h-7 w-7 items-center justify-center rounded-full bg-colors-text",children:(0,a.jsx)(n.Z,{as:"span",className:"title-small text-colors-background",upper:!0,children:(0,d._L)(s)})}):(0,a.jsx)("figure",{className:"relative h-7 w-7 overflow-hidden rounded-full",children:(0,a.jsx)(c.Z,{src:l||"".concat("https://exame.com","/images/placeholder.png"),alt:s,layout:"fill",className:"placeholder-image object-cover",onError:()=>r(!0)})})}var h=s(22744),j=s(41341),b=s(46232);let g={Root:function(e){let{children:l,className:s}=e;return(0,a.jsx)("article",{className:(0,t.m6)("w-full h-full p-4 rounded-2 border border-solid border-colors-divider",s),children:l})},ProgressBar:r.Z,Count:function(e){let{location:l,progress:s,className:r,headingAs:i="h3"}=e;return(0,a.jsxs)("div",{className:(0,t.m6)("my-2 flex w-full items-end justify-between",r),children:[(0,a.jsx)(n.Z,{className:"headline-double-small flex-1",as:i,children:l}),(0,a.jsxs)(n.Z,{className:"title-small",as:"p",children:[s,"% das apura\xe7\xf5es"]})]})},Candidates:function(e){let{candidates:l,direction:s,showCandidateTotalVotes:r=!1}=e;return"column"===s?(0,a.jsx)("ul",{className:"m-0 flex list-none justify-between gap-4 p-0",children:l.map(e=>{let{candidatoEleito:l,codigoCandidato:s,fotoCandidato:r,nomeCandidato:i,nomeUrnaCandidato:c,percentualVotosCandidato:d,situacaoCandidato:u}=e,p=(0,m.kC)(c?c.toLowerCase():i.toLowerCase());return(0,a.jsxs)("li",{className:(0,t.dV)("flex gap-2","n"===l&&"N\xe3o eleito"===u&&"opacity-50"),children:[(0,a.jsx)(x,{fotoCandidato:r,nomeCandidato:p}),(0,a.jsxs)("div",{className:"flex w-[89px] flex-1 flex-col gap-1",children:["s"===l&&(0,a.jsx)(o.Z,{className:(0,t.dV)(f[u.toLowerCase()],"border-none"),children:u}),(0,a.jsx)(n.Z,{className:"body-medium capitalize",children:p}),(0,a.jsxs)(n.Z,{as:"p",className:"label-medium",children:[d,"%"]})]})]},s)})}):(0,a.jsx)("ul",{className:"m-0 flex w-full list-none flex-col p-0",children:l.map(e=>{let{candidatoEleito:l,codigoCandidato:s,destinacaoVotoCandidato:i,fotoCandidato:c,nomeCandidato:d,nomeUrnaCandidato:h,partidoCandidato:j,percentualVotosCandidato:b,situacaoCandidato:g,totalVotosCandidato:v}=e,w=(0,m.kC)(h?h.toLowerCase():d.toLowerCase());return(0,a.jsxs)("li",{className:(0,t.dV)("flex items-center justify-between border-0 border-b border-solid border-colors-divider py-4","n"===l&&"N\xe3o eleito"===g&&"opacity-50"),children:[(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)(x,{fotoCandidato:c,nomeCandidato:w}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)(n.Z,{className:"headline-extra-small capitalize",children:w}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,a.jsx)(n.Z,{as:"p",className:"title-medium",children:null==j?void 0:j.split("-")[0]}),"s"===l&&(0,a.jsx)(o.Z,{className:(0,t.dV)(f[g.toLowerCase()],"border-none"),children:g}),i&&p.includes(i)&&(0,a.jsx)(o.Z,{className:"border-none bg-colors-surface text-colors-text",children:i})]})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)(n.Z,{as:"p",className:"label-large",children:[b,"%"]}),r&&(0,a.jsxs)(n.Z,{as:"p",className:"title-medium",children:[(0,u.uf)(v)," votos"]})]})]},s)})})},Redirect:function(e){let{label:l,url:s}=e;return(0,a.jsxs)("div",{className:"flex items-center justify-between pt-4",children:[(0,a.jsx)(n.Z,{as:"a",href:(0,j.ed)(s),className:"title-medium",onClick:()=>{(0,b.Z)({event:"section_button_clicked",section_name:"eleicoes2024_article_".concat(s)})},children:l}),(0,a.jsx)(h.FNi,{})]})}}}
1,81139:function(e,l,s){s.d(l,{Y:function(){return r}});var a=s(57437),t=s(41318);function r(e){let{progress:l,location:s,candidates:r,direction:n,redirect:i,slug:o,headingAs:c}=e,d="100,00"===l?"100":l;return(0,a.jsxs)(t.j.Root,{children:[(0,a.jsx)(t.j.ProgressBar,{progress:d}),(0,a.jsx)(t.j.Count,{location:s,progress:d,headingAs:c}),(0,a.jsx)(t.j.Candidates,{direction:n,candidates:r}),i&&(0,a.jsx)(t.j.Redirect,{label:"Ver apura\xe7\xe3o completa",url:o})]})}},23703:function(e,l,s){s.r(l),s.d(l,{default:function(){return p}});var a=s(57437),t=s(2265),r=s(22744),n=s(85733),i=s(19764),o=s(53335),c=s(84591),d=s(63014),u=s(41341),m=s(46232),f=s(81139);function p(e){let{className:l,candidatesByRelevantCapitals:s,currentElectionRound:p,currentElectionsYear:x,electionsType:h}=e,[j,b]=(0,t.useState)(null),[g,v]=(0,t.useState)(null);return s&&0!==s.length?(0,a.jsxs)("div",{className:(0,o.m6)("relative min-h-[166px] w-full",l),children:[(0,a.jsxs)(i.tq,{cssMode:!0,spaceBetween:24,modules:[n.Gk,n.W_],slidesPerView:1.3,className:"swiper-electoral-count",breakpoints:{1024:{slidesPerView:4,spaceBetween:24}},navigation:{prevEl:j,nextEl:g},children:[s.slice(0,6).map(e=>{let l=e[0];return(0,a.jsx)(i.o5,{children:(0,a.jsx)("a",{href:(0,u.ed)((0,d.w4)({electionsType:h,year:x,round:p,uf:l})),children:(0,a.jsx)(f.Y,{progress:e[1].percentualSecoesTotalizadas,location:(0,d.mR)(h,l),candidates:e[1].candidatos.length>0?e[1].candidatos.slice(0,2):[],direction:"column",redirect:!1})})},l)}),(0,a.jsx)(i.o5,{children:(0,a.jsx)(c.Z,{className:"label-large flex h-full w-fit items-center justify-center rounded-2 border border-solid border-colors-divider p-4",as:"a",href:(0,u.ed)("/eleicoes/".concat(x,"/apuracao/").concat(p)),onClick:()=>{(0,m.Z)({event:"section_button_clicked",section_name:"eleicoes2024_apuracao_vejamais"})},children:"Ver mais"})})]}),(0,a.jsxs)("div",{className:"pointer-events-none hidden h-full w-full justify-end gap-4 lg:absolute lg:top-1/2 lg:z-1 lg:flex lg:-translate-y-1/2 lg:justify-between",children:[(0,a.jsx)("button",{ref:e=>b(e),className:"swiper-navigation-gradient-prev pointer-events-auto flex h-full w-14 items-center justify-start disabled:opacity-0",onClick:()=>{(0,m.Z)({event:"section_button_clicked",section_name:"eleicoes2024_apuracao_prev"})},"aria-label":"Seta para esquerda",children:(0,a.jsx)(r.G1X,{})}),(0,a.jsx)("button",{ref:e=>v(e),className:"swiper-navigation-gradient-next pointer-events-auto flex h-full w-14 items-center justify-end disabled:opacity-0",onClick:()=>{(0,m.Z)({event:"section_button_clicked",section_name:"eleicoes2024_apuracao_next"})},"aria-label":"Seta para direita",children:(0,a.jsx)(r.FNi,{})})]})]}):null}},42227:function(e,l,s){s.d(l,{_L:function(){return a}}),s(82957).Buffer,s(25566);let a=e=>{if(!e)return"EX";let l=e.split(" ").map(e=>e[0]).join("");return l.length>2?l.slice(0,-1):l}},79996:function(e,l,s){s.d(l,{KX:function(){return t},MI:function(){return r},kC:function(){return a},vM:function(){return n}});let a=e=>e.charAt(0).toUpperCase()+e.slice(1),t=e=>!e||!e.trim().replace(/‎|\u200E/gi,"").length,r=e=>e.split("-").map(function(e){return e.charAt(0).toUpperCase()+e.substring(1).toLowerCase()}).join(" "),n=async(e,l)=>{if(navigator.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(e+"\n\nEste \xe9 um trecho original publicado em Exame.com. Leia a mat\xe9ria completa em ".concat("".concat(l,"?utm_source=copiaecola&utm_medium=compartilhamento")))}catch(e){console.error("Falha ao copiar o texto: ",e)}else console.warn("API do Clipboard n\xe3o est\xe1 dispon\xedvel.")}}}]);
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.