PageSourceSearch

https://www.kmaisclube.com.br/_next/static/chunks/app/(home)/resultados/page-e238fc5edc197100.js

js kmaisclube.com.br collected 2026-10-08 12:41:43 UTC 32,988 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[834],{24194:function(e,t,r){Promise.resolve().then(r.bind(r,1331))},72441:function(e,t,r){"use strict";r.d(t,{Z:function(){return D}});var a=r(74610),s=r(1119),n=r(2265),o=r(61994),l=r(9575),i=r(14031),d=r(16210),c=r(34765),u=r(50117),x=r(15566),m=r(19472),h=r(84217),p=r(60118),g=r(5877);let f=(0,g.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),b=(0,g.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]),v=(0,g.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);var j=r(89985);function w(e){return(0,j.ZP)("MuiMenuItem",e)}let y=(0,g.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var N=r(57437);let _=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],k=e=>{let{disabled:t,dense:r,divider:a,disableGutters:n,selected:o,classes:i}=e,d=(0,l.Z)({root:["root",r&&"dense",t&&"disabled",!n&&"gutters",a&&"divider",o&&"selected"]},w,i);return(0,s.Z)({},i,d)},F=(0,d.ZP)(m.Z,{shouldForwardProp:e=>(0,c.Z)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})(e=>{let{theme:t,ownerState:r}=e;return(0,s.Z)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(y.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,i.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(y.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,i.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(y.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,i.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,i.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(y.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(y.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + .".concat(f.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(f.inset)]:{marginLeft:52},["& .".concat(v.root)]:{marginTop:0,marginBottom:0},["& .".concat(v.inset)]:{paddingLeft:36},["& .".concat(b.root)]:{minWidth:36}},!r.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},r.dense&&(0,s.Z)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{["& .".concat(b.root," svg")]:{fontSize:"1.25rem"}}))});var D=n.forwardRef(function(e,t){let r;let l=(0,u.i)({props:e,name:"MuiMenuItem"}),{autoFocus:i=!1,component:d="li",dense:c=!1,divider:m=!1,disableGutters:g=!1,focusVisibleClassName:f,role:b="menuitem",tabIndex:v,className:j}=l,w=(0,a.Z)(l,_),y=n.useContext(x.Z),D=n.useMemo(()=>({dense:c||y.dense||!1,disableGutters:g}),[y.dense,c,g]),C=n.useRef(null);(0,h.Z)(()=>{i&&C.current&&C.current.focus()},[i]);let P=(0,s.Z)({},l,{dense:D.dense,divider:m,disableGutters:g}),S=k(l),A=(0,p.Z)(C,t);return l.disabled||(r=void 0!==v?v:-1),(0,N.jsx)(x.Z.Provider,{value:D,children:(0,N.jsx)(F,(0,s.Z)({ref:A,role:b,tabIndex:r,component:d,focusVisibleClassName:(0,o.Z)(S.focusVisible,f),className:(0,o.Z)(S.root,j)},w,{ownerState:P,classes:S}))})})},99376:function(e,t,r){"use strict";var a=r(35475);r.o(a,"redirect")&&r.d(t,{redirect:function(){return a.redirect}}),r.o(a,"useParams")&&r.d(t,{useParams:function(){return a.useParams}}),r.o(a,"usePathname")&&r.d(t,{usePathname:function(){return a.usePathname}}),r.o(a,"useRouter")&&r.d(t,{useRouter:function(){return a.useRouter}}),r.o(a,"useSearchParams")&&r.d(t,{useSearchParams:function(){return a.useSearchParams}}),r.o(a,"useServerInsertedHTML")&&r.d(t,{useServerInsertedHTML:function(){return a.useServerInsertedHTML}})},1331:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return w}});
1var a=r(57437),s=r(2265),n=r(99376),o=r(33145),l={src:"/_next/static/media/card-icon-date.c88617aa.svg",height:24,width:24,blurWidth:0,blurHeight:0},i={src:"/_next/static/media/card-icon-local.3222c8ca.svg",height:24,width:24,blurWidth:0,blurHeight:0},d={src:"/_next/static/media/card-icon-organizador.c1da4944.svg",height:24,width:24,blurWidth:0,blurHeight:0},c={src:"/_next/static/media/card-icon-modality-corrida.761f2206.svg",height:24,width:24,blurWidth:0,blurHeight:0},u=r(27648);let x=RegExp("[\\s,/_-]+(".concat("ac|al|ap|am|ba|ce|df|es|go|ma|mt|ms|mg|pa|pb|pr|pe|pi|rj|rn|rs|ro|rr|sc|sp|se|to",")\\.?$"),"i"),m=/^\d{1,2}\/\d{1,2}\/\d{2,4}\s+/,h=new Set(["de","da","do","das","dos","e","di","du"]),p=["JAN","FEV","MAR","ABR","MAI","JUN","JUL","AGO","SET","OUT","NOV","DEZ"];var g=function(e){let{id:t,image:r,name:s,date:n,category:g,city:f,state:b,organizer:v,hour:j,inscriptionOpen:w,externalResultUrl:y}=e,N=function(e){let t=String(e||"").match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/);if(!t)return null;let r=p[parseInt(t[2],10)-1];return r?{dia:String(parseInt(t[1],10)),mes:r}:null}(n);return(0,a.jsxs)("article",{className:"group flex w-full flex-col overflow-hidden rounded-2xl bg-white shadow-sm ring-1 ring-black/5 transition-all duration-200 hover:shadow-xl hover:ring-[#005DFD]/25 md:flex-row",children:[(0,a.jsxs)("div",{className:"relative shrink-0 md:w-[320px]",children:[(0,a.jsx)(o.default,{src:r,alt:"Cartaz do evento ".concat(s),width:481,height:241,className:"h-48 w-full object-cover md:h-full"}
1),N&&(0,a.jsxs)("div",{className:"absolute left-4 top-4 rounded-xl bg-white/95 px-3 py-1.5 text-center shadow-md",children:[(0,a.jsx)("div",{className:"text-xl font-extrabold leading-none text-[#005DFD]",children:N.dia}),(0,a.jsx)("div",{className:"mt-0.5 text-[10px] font-bold uppercase tracking-widest text-[#28282A]",children:N.mes})]})]}),(0,a.jsxs)("div",{className:"flex flex-1 flex-col gap-3 p-5 md:p-6",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-[#F2F7FF] px-3 py-1 text-xs font-bold text-[#00398f]",children:[(0,a.jsx)(o.default,{src:c,alt:"",width:16,height:16}),g]}),(0,a.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-[#F6F6F9] px-3 py-1 text-xs font-semibold text-[#505050]",children:[(0,a.jsx)(o.default,{src:i,alt:"",width:14,height:14}),function(e){let t=String(null!=e?e:"").trim().replace(m,"").replace(/\([^)]*\)/g," ").replace(x,"").replace(/\s*\/\s*/g," / ").replace(/\s+/g," ").trim();return t?t.split(" ").map((e,t)=>{if("/"===e||"-"===e)return e;let r=e.toLocaleLowerCase("pt-BR");return t>0&&h.has(r)?r:/^[A-Z]{2}$/.test(e)?e:r.charAt(0).toLocaleUpperCase("pt-BR")+r.slice(1)}).join(" "):""}(f)||f," - ",String(b||"").toUpperCase()]})]}),(0,a.jsx)("h6",{className:"text-lg font-extrabold leading-snug text-[#0E0F10] transition-colors group-hover:text-[#005DFD] md:text-xl",children:s}),(0,a.jsxs)("div",{className:"flex flex-col gap-1.5 text-sm text-[#505050]",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)(o.default,{src:l,alt:"",width:18,height:18}),(0,a.jsxs)("span",{children:[n,j?" \xe0s ".concat(j):""]})]}),v&&(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)(o.default,{src:d,alt:"",width:18,height:18}),(0,a.jsxs)("span",{className:"line-clamp-2",children:["Organiza\xe7\xe3o: ",(0,a.jsx)("span",{className:"font-semibold text-[#28282A]",children:v})]})]})]})]}),(0,a.jsx)("div",{className:"flex items-center px-5 pb-5 md:px-8 md:pb-0",children:y?(0,a.jsx)("a",{href:y,target:"_blank",rel:"noopener noreferrer",className:"w-full md:w-auto",children:(0,a.jsxs)("button",{className:"inline-flex h-11 w-full items-center justify-center gap-2 rounded-full border border-[#005DFD] bg-white px-7 text-sm font-bold text-[#005DFD] transition-colors duration-200 hover:bg-[#005DFD] hover:text-white md:w-auto",children:["Ver resultados",(0,a.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,a.jsx)("path",{d:"M6 3h7v7"}),(0,a.jsx)("path",{d:"M13 3 3 13"})]})]})}):(0,a.jsx)(u.default,{href:"/resultados/".concat(s.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/([^\w]+|\s+)/g,"-").replace(/\-\-+/g,"-").replace(/(ˆ-+|-+$)/,"").toLowerCase(),"/").concat(t),className:"w-full md:w-auto",children:(0,a.jsxs)("button",{className:"inline-flex h-11 w-full items-center justify-center gap-2 rounded-full border border-[#005DFD] bg-[#005DFD] px-7 text-sm font-bold text-white transition-colors duration-200 hover:bg-[#0047c2] md:w-auto",children:["Ver resultados",(0,a.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,a.jsx)("path",{d:"M3 8h10"}),(0,a.jsx)("path",{d:"m9 4 4 4-4 4"})]})]})})})]})},f=r(15291),b=function(e){let{data:t,name:r,nameGroup:o,updateUrl:l=!0,classNameTrigger:i}=e,d=(0,n.useRouter)(),c=(0,n.usePathname)(),u=(0,n.useSearchParams)(),[x,m]=(0,s.useState)(u.get(r)||"todos"),h=(0,s.useCallback)((e,t)=>{let r=new URLSearchParams(u.toString());return r.set(e,t),r.toString()},[u]),p=(e,t)=>t=>{m(t),l&&d.push(c+"?"+h(e,t))};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(f.Ph,{defaultValue:x,onValueChange:e=>p(r,e)(e),children:[(0,a.jsx)(f.i4,{className:i||"w-full",children:(0,a.jsx)(f.ki,{placeholder:"Todos"})}),(0,a.jsxs)(f.Bw,{children:[(0,a.jsx)(f.Ql,{value:"todos",children:"Todos"}),(0,a.jsxs)(f.DI,{children:[(0,a.jsx)(f.n5,{children:o}),(t||[]).map(e=>(0,a.jsx)(f.Ql,{value:e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"_").toLowerCase(),children:e},e))]})]})]}),(0,a.jsx)("input",{type:"hidden",name:r,value:x})]})},v=r(73192);
1function j(){let e=(0,n.useSearchParams)(),t=(0,n.useRouter)(),[r,o]=(0,s.useState)([]),[l,i]=(0,s.useState)([]),[d,c]=(0,s.useState)([]),[u,x]=(0,s.useState)([]),[m,h]=(0,s.useState)(!0),[p,f]=(0,s.useState)({page:1,limit:10,total:0,totalPages:0,hasNextPage:!1,hasPrevPage:!1}),j=e.get("categoria")||"todos",w=e.get("titulo")||"",y=e.get("cidade")||"todos",N=e.get("ano")||"todos",_=parseInt(e.get("page")||"1"),k=parseInt(e.get("limit")||"10"),F="todos"!==j||"todos"!==y||"todos"!==N||""!==w,D=async()=>{try{let e=await fetch("/api/eventos/categories",{next:{revalidate:3600}}),t=await e.json();i((null==t?void 0:t.categories)||[])}catch(e){console.error("Erro ao buscar categorias:",e)}},C=async()=>{try{let e=await fetch("/api/eventos/results-filters",{next:{revalidate:3600}});if(!e.ok)return;let t=await e.json();c((null==t?void 0:t.cities)||[]),x((null==t?void 0:t.years)||[])}catch(e){console.error("Erro ao buscar filtros:",e)}},P=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;try{h(!0);let r=new URLSearchParams({page:e.toString(),limit:t.toString(),...j&&"todos"!==j&&{categoria:j},...w&&{titulo:w},...y&&"todos"!==y&&{cidade:y},...N&&"todos"!==N&&{ano:N}}),a=await fetch("/api/eventos/results?".concat(r.toString()),{next:{revalidate:3600}});if(!a.ok){console.error("Erro na API de eventos:",a.status,a.statusText),o([]),f({page:1,limit:10,total:0,totalPages:0,hasNextPage:!1,hasPrevPage:!1});return}let s=await a.json();o(s.events||[]),f(s.pagination||{page:1,limit:10,total:0,totalPages:0,hasNextPage:!1,hasPrevPage:!1})}catch(e){console.error("Erro ao buscar eventos:",e),o([]),f({page:1,limit:10,total:0,totalPages:0,hasNextPage:!1,hasPrevPage:!1})}finally{h(!1)}},S=r=>{let a=new URLSearchParams(e.toString());Object.entries(r).forEach(e=>{let[t,r]=e;r&&"todos"!==r&&""!==r?a.set(t,r.toString()):a.delete(t)}),t.push("/resultados?".concat(a.toString()))},A=()=>{t.push("/resultados")};(0,s.useEffect)(()=>{0===l.length&&D(),0===d.length&&0===u.length&&C(),P(_,k)},[_,k,j,w,y,N]);let Z=(null==p?void 0:p.total)?"".concat(p.total," evento").concat(p.total>1?"s":""," encontrado").concat(p.total>1?"s":""):"Nenhum evento encontrado";return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"w-full max-w-7xl mx-auto mb-8 px-6 md:px-0",children:[(0,a.jsx)("section",{className:"flex flex-col gap-6 lg:flex-row lg:items-end lg:justify-between",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"text-3xl font-extrabold text-[#28282A] md:text-4xl",children:"Resultados dos eventos"}),(0,a.jsx)("div",{className:"mt-3 h-1.5 w-24 rounded-full bg-gradient-to-r from-[#005DFD] via-[#66A0FF] to-[#FFB31E]"}),(0,a.jsxs)("p",{className:"mt-3 text-sm text-[#505050] md:text-base",children:["Encontre a sua corrida e reviva a conquista."," ",(0,a.jsx)("span",{className:"font-bold text-[#28282A]",children:Z})]})]})}),(0,a.jsxs)("form",{onSubmit:e=>{var t,r,a,s;e.preventDefault();let n=new FormData(e.currentTarget),o=(null===(t=n.get("categoria"))||void 0===t?void 0:t.toString())||"todos";S({page:1,categoria:o,titulo:(null===(r=n.get("titulo"))||void 0===r?void 0:r.toString())||"",cidade:(null===(a=n.get("cidade"))||void 0===a?void 0:a.toString())||"todos",ano:(null===(s=n.get("ano"))||void 0===s?void 0:s.toString())||"todos",limit:k})},className:"mt-6 rounded-2xl bg-white p-4 shadow-sm ring-1 ring-black/5 md:p-5",children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-3 text-sm sm:grid-cols-2 lg:grid-cols-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,a.jsx)("label",{htmlFor:"filtro-titulo",className:"font-semibold text-[#505050]",children:"Nome do evento"}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)("svg",{className:"pointer-events-none absolute left-3.5 top-1/2 h-4 w-4 -translate-y-1/2 text-[#8a8a8a]",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,a.jsx)("circle",{cx:"7",cy:"7",r:"4.5"}),(0,a.jsx)("path",{d:"m10.5 10.5 3 3"})]}),(0,a.jsx)("input",{type:"text",id:"filtro-titulo",name:"titulo",className:"h-11 w-full rounded-xl border border-gray-300 py-2 pl-10 pr-3.5 focus:border-[#005DFD] focus:outline-none focus:ring-2 focus:ring-[#005DFD]/40",placeholder:"Ex.: Corrida do Pantanal",defaultValue:w})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,a.jsx)("label",{className:"font-semibold text-[#505050]",children:"Cidade"}),(0,a.jsx)(b,{data:d,name:"cidade",nameGroup:"Cidades",updateUrl:!1,
1classNameTrigger:"h-11 w-full rounded-xl border-gray-300 focus:ring-2 focus:ring-[#005DFD]/40"},"cidade-".concat(d.length))]}),(0,a.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,a.jsx)("label",{className:"font-semibold text-[#505050]",children:"Ano"}),(0,a.jsx)(b,{data:u,name:"ano",nameGroup:"Anos",updateUrl:!1,classNameTrigger:"h-11 w-full rounded-xl border-gray-300 focus:ring-2 focus:ring-[#005DFD]/40"},"ano-".concat(u.length))]}),(0,a.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,a.jsx)("label",{className:"font-semibold text-[#505050]",children:"Tipo de evento"}),(0,a.jsx)(b,{data:l,name:"categoria",nameGroup:"Categorias",updateUrl:!1,classNameTrigger:"h-11 w-full rounded-xl border-gray-300 focus:ring-2 focus:ring-[#005DFD]/40"},"categoria-".concat(l.length))]})]}),(0,a.jsxs)("div",{className:"mt-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-end",children:[F&&(0,a.jsx)("button",{type:"button",onClick:A,className:"h-11 rounded-xl px-4 text-sm font-semibold text-[#505050] underline-offset-4 transition-colors hover:text-[#005DFD] hover:underline",children:"Limpar filtros"}),(0,a.jsx)("button",{type:"submit",className:"h-11 rounded-xl bg-[#005DFD] px-10 text-sm font-bold text-white transition-colors duration-200 hover:bg-[#0047c2]",children:"Filtrar"})]})]})]}),(0,a.jsx)("div",{className:"bg-[#F6F6F9] py-8 md:py-14",children:(0,a.jsx)("div",{className:"w-full max-w-7xl mx-auto px-6 md:px-0",children:m?(0,a.jsx)("div",{className:"grid grid-cols-1 gap-5","aria-label":"Carregando eventos",children:[0,1,2].map(e=>(0,a.jsxs)("div",{className:"flex animate-pulse flex-col overflow-hidden rounded-2xl bg-white shadow-sm md:flex-row",children:[(0,a.jsx)("div",{className:"h-48 bg-gray-200 md:h-auto md:w-[320px]"}),(0,a.jsxs)("div",{className:"flex flex-1 flex-col gap-3 p-6",children:[(0,a.jsx)("div",{className:"h-5 w-40 rounded-full bg-gray-200"}),(0,a.jsx)("div",{className:"h-6 w-3/4 rounded bg-gray-200"}
1),(0,a.jsx)("div",{className:"h-4 w-1/2 rounded bg-gray-200"})]}),(0,a.jsx)("div",{className:"hidden items-center px-8 md:flex",children:(0,a.jsx)("div",{className:"h-11 w-44 rounded-full bg-gray-200"})})]},e))}):0===r.length?(0,a.jsxs)("div",{className:"mx-auto max-w-md rounded-2xl bg-white px-8 py-12 text-center shadow-sm",children:[(0,a.jsx)("p",{className:"text-lg font-bold text-[#28282A]",children:"Nenhum evento por aqui"}),(0,a.jsx)("p",{className:"mt-2 text-sm text-[#505050]",children:"Tente outro ano ou outra cidade — e, se buscou pelo nome, use s\xf3 uma palavra: a prova pode estar cadastrada com o nome resumido."}),F&&(0,a.jsx)("button",{type:"button",onClick:A,className:"mt-5 h-11 rounded-xl border border-[#005DFD] px-6 text-sm font-bold text-[#005DFD] transition-colors hover:bg-[#005DFD] hover:text-white",children:"Ver todos os eventos"})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("main",{className:"grid grid-cols-1 gap-5",children:r.map(e=>(0,a.jsx)(g,{...e,city:e.city||"N/A",state:e.state||"N/A"},e.id))}),r.length>0&&(0,a.jsx)(v.Z,{currentPage:p.page,totalItems:p.total,itemsPerPage:p.limit,onPageChange:e=>{S({page:e,categoria:j,titulo:w,cidade:y,ano:N,limit:k})},onItemsPerPageChange:e=>{S({page:1,categoria:j,titulo:w,cidade:y,ano:N,limit:e})},itemsPerPageOptions:[5,10,20,50],showAll:!1})]})})})]})}function w(){return(0,a.jsx)(s.Suspense,{fallback:(0,a.jsx)("div",{children:"Carregando..."}),children:(0,a.jsx)(j,{})})}},71770:function(e,t,r){"use strict";r.d(t,{z:function(){return d}});var a=r(57437),s=r(2265),n=r(72024);let o={square:"rounded-[0px]",circle:"rounded-[50%]",round:"rounded-[20px]"},l={fill:{black_900_0c:"bg-black-900_0c",blue_A400_01:"bg-blue-a400_01 text-neutral_colors-white",indigo_900:"bg-indigo-900",neutral_colors_white:"bg-neutral_colors-white text-black-900",gray_100_02:"bg-gray-100_02",neutral_colors_absolute_black:"bg-neutral_colors-absolute-black text-neutral_colors-white",pink_400:"bg-pink-400 text-neutral_colors-white",blue_50:"bg-blue-50 text-blue-a700_01",gray_400_01:"bg-gray-400_01",yellow_800:"bg-yellow-800",blue_gray_100:"bg-blue_gray-100 text-black-900",blue_A700_01:"bg-blue-a700_01 text-neutral_colors-white",blue_A700_0c:"bg-blue-a700_0c text-gray-900_02"},outline:{gray_400:"border-gray-400 border border-solid",black_900_14:"border-black-900_14 border-[0.5px] border-solid text-gray-500",green_A700:"border-green-a700 border-[1.5px] border-solid text-green-a700",neutral_colors_absolute_grey_200:"border-neutral_colors-absolute-grey_200 border border-solid text-neutral_colors-absolute-black",yellow_800:"border-yellow-800 border-2 border-solid text-yellow-800",red_A700:"border-red-a700 border border-solid text-red-a700",blue_A400_01:"border-blue-a400_01 border-[1.5px] border-solid text-blue-a400_01",neutral_colors_absolute_black:"border-neutral_colors-absolute-black border border-solid shadow-md text-neutral_colors-absolute-black",blue_A700_01:"border-blue-a700_01 border border-solid text-blue-a700_01"}},i={xs:"h-[28px] px-4 text-[12px]",xl:"h-[50px] px-3.5 text-[16px]",sm:"h-[32px] px-1",md:"h-[32px] px-4 text-[14px]",lg:"h-[40px] px-4 text-[14px]"},d=(0,s.forwardRef)((e,t)=>{var r;let{children:s,className:d="",leftIcon:c,rightIcon:u,shape:x,variant:m="outline",size:h="lg",color:p="blue_A700_01",...g}=e;return(0,a.jsxs)("button",{ref:t,className:(0,n.cn)("flex flex-row items-center justify-center ease-out duration-300 text-center cursor-pointer whitespace-nowrap",x&&o[x],h&&i[h],m&&(null===(r=l[m])||void 0===r?void 0:r[p]),d),...g,children:[!!c&&c,s,!!u&&u]})});d.displayName="Button"},73192:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var a=r(57437),s=r(43061),n=r(41327),o=r(676),l=r(72441);function i(e){let{currentPage:t,totalItems:r,itemsPerPage:i,onPageChange:d,onItemsPerPageChange:c,itemsPerPageOptions:u=[10,20,50,100],showAll:x=!0}=e,m=Math.ceil(r/i),h=i>=r,p=h?r:Math.min(t*i,r);return 0===r?null:(0,a.jsxs)("div",{className:"flex flex-col lg:flex-row justify-between items-start lg:items-center gap-4 pt-6 border-t border-gray-100",children:[(0,a.jsxs)("div",{className:"text-sm text-[#73767B] flex flex-col sm:flex-row sm:items-center gap-2 sm:gap-4 w-full lg:w-auto",children:[(0,a.jsxs)("span",{className:"text-center sm:text-left",children:["Mostrando ",(0,a.jsx)("span",{className:"font-medium text-[#434343]",children:h?1:(t-1)*i+1})," a"," ",(0,a.jsx)("span",{className:"font-medium text-[#434343]",children:p})," de"," ",(0,a.jsx)("span",{className:"font-medium text-[#434343]",children:r})," registros"]}),(0,a.jsxs)("div",{className:"flex items-center justify-center sm:justify-start gap-2",children:[(0,a.jsx)("span",{className:"text-xs text-[#73767B] whitespace-nowrap",children:"Mostrar:"}),(0,a.jsx)(n.Z,{size:"small",children:(0,a.jsxs)(o.Z,{value:h?r:i,onChange:e=>{let a=e.target.value;c(a);let s=Math.ceil(r/a);t>s&&d(s||1)},sx:{minWidth:80,height:32,fontSize:"12px","& .MuiOutlinedInput-root":{borderRadius:"6px","& fieldset":{borderColor:"#e5e7eb"},"&:hover fieldset":{borderColor:"#005DFD"},"&.Mui-focused fieldset":{borderColor:"#005DFD"}}},children:[u.map(e=>(0,a.jsx)(l.Z,{value:e,sx:{fontSize:"12px"},children:e},e)),x&&(0,a.jsxs)(l.Z,{value:r,sx:{fontSize:"12px"},children:["Todos (",r,")"]})]})}),(0,a.jsx)("span",{className:"text-xs text-[#73767B] whitespace-nowrap",children:"por p\xe1gina"})]})]}),!h&&m>1&&(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row items-center gap-3 w-full lg:w-auto",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center w-full sm:w-auto 
1sm:justify-start gap-2",children:[(0,a.jsxs)(s.zx,{className:"flex-1 sm:flex-none border border-gray-200 bg-white text-gray-600 rounded-lg px-3 sm:px-4 py-2 h-[36px] text-sm hover:bg-gray-50 hover:border-gray-300 disabled:opacity-50 disabled:cursor-not-allowed transition-all duration-200",disabled:t<=1,onClick:()=>d(t-1),children:[(0,a.jsx)("svg",{className:"w-4 h-4 mr-1 sm:mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})}),(0,a.jsx)("span",{className:"hidden sm:inline",children:"Anterior"}),(0,a.jsx)("span",{className:"sm:hidden",children:"Ant"})]}),(0,a.jsxs)("div",{className:"flex sm:hidden items-center text-sm text-[#73767B] px-2",children:["P\xe1gina ",t," de ",m]}),(0,a.jsxs)(s.zx,{className:"flex-1 sm:flex-none border border-gray-200 bg-white text-gray-600 rounded-lg px-3 sm:px-4 py-2 h-[36px] text-sm hover:bg-gray-50 hover:border-gray-300 disabled:opacity-50 disabled:cursor-not-allowed transition-all duration-200",disabled:t>=m,onClick:()=>d(t+1),children:[(0,a.jsx)("span",{className:"hidden sm:inline",children:"Pr\xf3ximo"}),(0,a.jsx)("span",{className:"sm:hidden",children:"Pr\xf3x"}),(0,a.jsx)("svg",{className:"w-4 h-4 ml-1 sm:ml-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]}),(0,a.jsxs)("div",{className:"hidden sm:flex items-center gap-1",children:[t>3&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.zx,{className:"w-8 h-8 text-sm rounded-lg transition-all duration-200 ".concat(1===t?"bg-kmaisBlue text-white":"border border-gray-200 bg-white text-gray-600 hover:bg-gray-50"),onClick:()=>d(1),children:"1"}),t>4&&(0,a.jsx)("span",{className:"text-gray-400 px-1",children:"..."})]}),Array.from({length:Math.min(5,m)},(e,r)=>{let n;return(n=m<=5?r+1:t<=3?r+1:t>=m-2?m-4+r:t-2+r)<1||n>m||t>3&&1===n||t<m-2&&n===m?null:(0,a.jsx)(s.zx,{className:"w-8 h-8 text-sm rounded-lg transition-all duration-200 ".concat(n===t?"bg-kmaisBlue text-white":"border border-gray-200 bg-white text-gray-600 hover:bg-gray-50"),onClick:()=>d(n),children:n},n)}),t<m-2&&(0,a.jsxs)(a.Fragment,{children:[t<m-3&&(0,a.jsx)("span",{className:"text-gray-400 px-1",children:"..."}),(0,a.jsx)(s.zx,{className:"w-8 h-8 text-sm rounded-lg transition-all duration-200 ".concat(m===t?"bg-kmaisBlue text-white":"border border-gray-200 bg-white text-gray-600 hover:bg-gray-50"),onClick:()=>d(m),children:m})]})]})]})]})}},43061:function(e,t,r){"use strict";r.d(t,{zx:function(){return a.z}}),r(57437),r(2265);var a=r(71770);r(33145),r(25566).env.BASE_PATH,r(16171),r(8833),r(67342),r(97346);var s=r(45008),n=r(12403),o=r(96633),l=r(63887);function i(){let e=(0,s._)(["\n  margin-right: 0;\n  margin-left: 0.75rem;\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n"]);return i=function(){return e},e}let d={100:"#DAECFF",200:"#80BFFF",400:"#3399FF",500:"#007FFF",600:"#0072E5",700:"#0059B2"},c={50:"#F3F6F9",100:"#E5EAF2",200:"#DAE2ED",300:"#C7D0DD",400:"#B0B8C4",500:"#9DA8B7",600:"#6B7A90",700:"#434D5B",800:"#303740",900:"#1C2025"};(0,n.Z)("div")(e=>{let{theme:t}=e;return"\n  font-family: 'IBM Plex Sans', sans-serif;\n  font-weight: 400;\n  border-radius: 8px;\n  color: ".concat("dark"===t.palette.mode?c[300]:c[500],";\n  background: ").concat("dark"===t.palette.mode?c[900]:"#fff",";\n  border: 1px solid ").concat("dark"===t.palette.mode?c[700]:c[200],";\n  box-shadow: 0px 2px 4px ").concat("dark"===t.palette.mode?"rgba(0,0,0, 0.5)":"rgba(0,0,0, 0.05)",";\n  display: flex;\n  align-items: center;\n  justify-content: center;\n\n\n  &.").concat(l.N.focused," {\n    border-color: ").concat(d[400],";\n    box-shadow: 0 0 0 3px ").concat("dark"===t.palette.mode?d[600]:d[200],";\n  }\n\n  &:hover {\n    border-color: ").concat(d[400],";\n  }\n\n  // firefox\n  &:focus-visible {\n    outline: 0;\n  }\n")}),(0,n.Z)("input")(e=>{let{theme:t}=e;return"\n  font-size: 0.875rem;\n  font-family: inherit;\n  font-weight: 400;\n  line-height: 1.5;\n  flex-grow: 1;\n  color: ".concat("dark"===t.palette.mode?c[300]:c[900],";\n  background: inherit;\n  border: none;\n  border-radius: inherit;\n  padding: 8px 12px;\n  outline: 0;\n")}),(0,n.Z)(o.z)(e=>{let{theme:t}=e;return"\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  border: none;\n  background: inherit;\n  cursor: pointer;
1\n  color: ".concat("dark"===t.palette.mode?c[300]:c[700],";\n  ")}),(0,n.Z)("div")(i())},15291:function(e,t,r){"use strict";r.d(t,{Bw:function(){return g},DI:function(){return u},Ph:function(){return c},Ql:function(){return b},i4:function(){return m},ki:function(){return x},n5:function(){return f}});var a=r(57437),s=r(2265),n=r(25072),o=r(40875),l=r(22135),i=r(30401),d=r(72024);let c=n.fC,u=n.ZA,x=n.B4,m=s.forwardRef((e,t)=>{let{className:r,children:s,...l}=e;return(0,a.jsxs)(n.xz,{ref:t,className:(0,d.cn)("border border-[#b2b2b2] rounded-lg px-3 py-2 flex items-center justify-between w-full",r),...l,children:[s,(0,a.jsx)(n.JO,{asChild:!0,children:(0,a.jsx)(o.Z,{className:"h-4 w-4 opacity-50"})})]})});m.displayName=n.xz.displayName;let h=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.u_,{ref:t,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",r),...s,children:(0,a.jsx)(l.Z,{className:"h-4 w-4"})})});h.displayName=n.u_.displayName;let p=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.$G,{ref:t,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",r),...s,children:(0,a.jsx)(o.Z,{className:"h-4 w-4"})})});p.displayName=n.$G.displayName;let g=s.forwardRef((e,t)=>{let{className:r,children:s,position:o="popper",...l}=e;return(0,a.jsx)(n.h_,{children:(0,a.jsxs)(n.VY,{ref:t,className:(0,d.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===o&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:o,...l,children:[(0,a.jsx)(h,{}),(0,a.jsx)(n.l_,{className:(0,d.cn)("p-1","popper"===o&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),(0,a.jsx)(p,{})]})})});g.displayName=n.VY.displayName;let f=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.__,{ref:t,className:"py-1.5 pl-8 pr-2 text-sm font-semibold ".concat(r||""),...s})});f.displayName=n.__.displayName;let b=s.forwardRef((e,t)=>{let{className:r,children:s,...o}=e;return(0,a.jsxs)(n.ck,{ref:t,className:(0,d.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...o,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(n.wU,{children:(0,a.jsx)(i.Z,{className:"h-4 w-4"})})}),(0,a.jsx)(n.eT,{children:s})]})});b.displayName=n.ck.displayName,s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.Z0,{ref:t,className:"-mx-1 my-1 h-px bg-muted ".concat(r||""),...s})}).displayName=n.Z0.displayName},67342:function(e,t,r){"use strict";r.d(t,{Y:function(){return a}});let a={prev:"Anterior",next:"Pr\xf3ximo",first:"Ir para o primeiro",last:"Ir para o \xfaltimo",slideX:"Ir para o item %s",pageX:"Ir para a p\xe1gina %s",play:"Come\xe7ar a passar sozinho",pause:"Parar de passar sozinho",carousel:"carrossel",select:"Escolha o item para mostrar",slide:"item",slideLabel:"%s de %s"}},25566:function(e){var t,r,a,s=e.exports={};function n(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function l(e){if(t===setTimeout)return setTimeout(e,0);if((t===n||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:n}catch(e){t=n}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var i=[],d=!1,c=-1;function u(){d&&a&&(d=!1,a.length?i=a.concat(i):c=-1,i.length&&x())}function x(){if(!d){var e=l(u);d=!0;for(var t=i.length;t;){for(a=i,i=[];++c<t;)a&&a[c].run();c=-1,t=i.length}a=null,d=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function h(){}s.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];i.push(new m(e,t)),1!==i.length||d||l(x)},m.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=h,s.addListener=h,s.once=h,s.off=h,s.removeListener=h,s.removeAllListeners=h,s.emit=h,s.prependListener=h,s.prependOnceListener=h,s.listeners=function(e){return[]},s.binding=function(e){throw Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(e){throw Error("process.chdir is not supported")},s.umask=function(){return 0}}},function(e){e.O(0,[2414,7326,6990,2972,5878,4053,8633,5844,443,7423,695,529,4630,3519,8355,5345,6529,1138,676,9729,2024,7478,2117,1744],function(){return e(e.s=24194)}),_N_E=e.O()}]);
2//# sourceMappingURL=page-e238fc5edc197100.js.map

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.