"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8347],{76753:function(e,t,o){var a=o(7663);t.Z=void 0;var r=a(o(21170)),i=o(52676);t.Z=(0,r.default)((0,i.jsx)("path",{d:"M15.88 9.29 12 13.17 8.12 9.29a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41-.39-.38-1.03-.39-1.42 0"}),"ExpandMoreRounded")},36331:function(e,t,o){o.d(t,{Z:function(){return j}});var a=o(57873),r=o(94276),i=o(75271),n=o(86259),s=o(75127),l=o(25899),c=o(17546),d=o(39869),u=o(90230);function m(e){return(0,u.ZP)("MuiCardActionArea",e)}let x=(0,d.Z)("MuiCardActionArea",["root","focusVisible","focusHighlight"]);var h=o(21990),p=o(52676);let v=["children","className","focusVisibleClassName"],f=e=>{let{classes:t}=e;return(0,s.Z)({root:["root"],focusHighlight:["focusHighlight"]},m,t)},g=(0,c.ZP)(h.Z,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(e=>{let{theme:t}=e;return{display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",["&:hover .".concat(x.focusHighlight)]:{opacity:(t.vars||t).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},["&.".concat(x.focusVisible," .").concat(x.focusHighlight)]:{opacity:(t.vars||t).palette.action.focusOpacity}}}),Z=(0,c.ZP)("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(e,t)=>t.focusHighlight})(e=>{let{theme:t}=e;return{overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:t.transitions.create("opacity",{duration:t.transitions.duration.short})}});var j=i.forwardRef(function(e,t){let o=(0,l.Z)({props:e,name:"MuiCardActionArea"}),{children:i,className:s,focusVisibleClassName:c}=o,d=(0,r.Z)(o,v),u=f(o);return(0,p.jsxs)(g,(0,a.Z)({className:(0,n.Z)(u.root,s),focusVisibleClassName:(0,n.Z)(c,u.focusVisible),ref:t,ownerState:o},d,{children:[i,(0,p.jsx)(Z,{className:u.focusHighlight,ownerState:o})]}))})},13910:function(e,t,o){o.d(t,{Z:function(){return f}});var a=o(57873),r=o(94276),i=o(75271),n=o(86259),s=o(75127),l=o(17546),c=o(25899),d=o(39869),u=o(90230);function m(e){return(0,u.ZP)("MuiCardContent",e)}(0,d.Z)("MuiCardContent",["root"]);var x=o(52676);let h=["className","component"],p=e=>{let{classes:t}=e;return(0,s.Z)({root:["root"]},m,t)},v=(0,l.ZP)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}}));var f=i.forwardRef(function(e,t){let o=(0,c.Z)({props:e,name:"MuiCardContent"}),{className:i,component:s="div"}=o,l=(0,r.Z)(o,h),d=(0,a.Z)({},o,{component:s}),u=p(d);return(0,x.jsx)(v,(0,a.Z)({as:s,className:(0,n.Z)(u.root,i),ownerState:d,ref:t},l))})},93993:function(e,t,o){o.d(t,{Z:function(){return Z}});var a=o(94276),r=o(57873),i=o(75271),n=o(86259),s=o(75127),l=o(25899),c=o(17546),d=o(39869),u=o(90230);function m(e){return(0,u.ZP)("MuiCardMedia",e)}(0,d.Z)("MuiCardMedia",["root","media","img"]);var x=o(52676);let h=["children","className","component","image","src","style"],p=e=>{let{classes:t,isMediaComponent:o,isImageComponent:a}=e;return(0,s.Z)({root:["root",o&&"media",a&&"img"]},m,t)},v=(0,c.ZP)("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e,{isMediaComponent:a,isImageComponent:r}=o;return[t.root,a&&t.media,r&&t.img]}})(e=>{let{ownerState:t}=e;return(0,r.Z)({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},t.isMediaComponent&&{width:"100%"},t.isImageComponent&&{objectFit:"cover"})}),f=["video","audio","picture","iframe","img"],g=["picture","img"];var Z=i.forwardRef(function(e,t){let o=(0,l.Z)({props:e,name:"MuiCardMedia"}),{children:i,className:s,component:c="div",image:d,src:u,style:m}=o,Z=(0,a.Z)(o,h),j=-1!==f.indexOf(c),b=!j&&d?(0,r.Z)({backgroundImage:'url("'.concat(d,'")')},m):m,y=(0,r.Z)({},o,{component:c,isMediaComponent:j,isImageComponent:-1!==g.indexOf(c)}),C=p(y);return(0,x.jsx)(v,(0,r.Z)({className:(0,n.Z)(C.root,s),as:c,role:!j&&d?"img":void 0,ref:t,style:b,ownerState:y,src:j?d||u:void 0},Z,{children:i}))})},83641:function(e,t,o){var a=o(52676);o(75271);var r=o(86103),i=o(68875),n=o(36331),s=o(93993),l=o(13910),c=o(74484),d=o(11333),u=o.n(d),m=o(90859),x=o.n(m),h=o(9686),p=o.n(h),v=o(86545),f=o(58178);t.Z=function(e){var t,o,d,m;let{evento:h,esporte:g,loading:Z}=e;return Z?(0,a.jsx)(r.Z,{children:(0,a.jsx)(i.Z,{variant:"rounded",height:200})}):(0,a.jsx)(f.Lq,{elevation:0,children:(0,a.jsx)(p(),{href:"/evento/".concat((null===(t=h.esporte)||void 0===t?void 0:t.url)||g.url,"/").concat(h.id,"/").concat((0,v.n)(h.descricao)),passHref:!0,children:(0,a.jsxs)(n.Z,{sx:{position:"relative"},children:[(0,a.jsx)(s.Z,{sx:{borderRadius:"5px",height:{xs:220,md:260},width:"100%"},children:(0,a.jsx)(x(),{src:h.foto_capa?"https://sge-aquaticos.bigmidia.com/_uploads/imagemPatrocinio/".concat(h.foto_capa):"/images/img_esporte/".concat((null===(o=h.esporte)||void 0===o?void 0:o.url)||g.url,".jpeg"),layout:"fill",objectFit:"cover",alt:h.descricao})}),(0,a.jsx)(r.Z,{sx:{position:"absolute",left:30,top:210,zIndex:10},children:(0,a.jsx)(f.bA,{color:"primary",label:(null===(d=h.esporte)||void 0===d?void 0:d.descricao)||g.descricao,className:"tag-".concat((null===(m=h.esporte)||void 0===m?void 0:m.url)||g.descricao),sx:{mr:1,my:.5}})}),(0,a.jsxs)(l.Z,{children:[(0,a.jsx)(c.Z,{gutterBottom:!0,variant:"caption",children:u()(h.inicio).format("DD/MM/YYYY - HH:mm")}),(0,a.jsxs)(c.Z,{gutterBottom:!0,variant:"h5",children:[h.descricao,null==g?void 0:g.url]})]})]})})})}},38378:function(e,t,o){o.d(t,{Z:function(){return O}});var a=o(52676),r=o(4693),i=o(48994),n=o(74484),s=o(68875),l=o(86103),c=o(3194),d=o(75271),u=o(11333),m=o.n(u),x=o(9686),h=o.n(x),p=o(58178),v=o(80820),f=o(41737),g=o(86545),Z=o(18682),j=o(69122),b=o(91449),y=o(36895),C=o(61803),M=o(96352),N=o(8927),w=o(59120),A=o(9945),E=o(83641),P=function(e){let{ProximosEventos:t,esporte:o}=e,[i,n]=(0,d.useState)(!1);return((0,d.useEffect)(()=>{t.loading||0!==t.payload.length||n(!0)},[t]),i)?"":(0,a.jsxs)(l.Z,{children:[(0,a.jsx)(r.Z,{maxWidth:"lg",sx:{mt:{xs:8,md:8,lg:10}},children:(0,a.jsx)(l.Z,{sx:{display:{md:"flex"},alignItems:"center"},children:(0,a.jsx)(p.NZ,{color:"primary",variant:"h1",sx:{ml:{md:16}},children:"Pr\xf3ximos Eventos"})})}),(0,a.jsx)(l.Z,{sx:{py:5,mt:{xs:14,md:17},bgcolor:"primary.main"},children:(0,a.jsx)(r.Z,{children:(0,a.jsxs)(A.ZP,{container:!0,spacing:2,sx:{mt:-16},children:[!t.loading&&0===t.payload.length&&(0,a.jsx)(c.Z,{severity:"warning",sx:{ml:{md:16}},children:"N\xe3o h\xe1 pr\xf3ximos eventos cadastrados."}),t.loading&&Array.from(Array(6)).map((e,t)=>(0,a.jsx)(A.ZP,{item:!0,xs:12,sm:12,md:4,children:(0,a.jsx)(s.Z,{variant:"rectangle",height:260})},t)),t.payload.slice(0,6).map((e,t)=>(0,a.jsx)(A.ZP,{item:!0,xs:12,sm:12,md:4,children:(0,a.jsx)(E.Z,{evento:e,esporte:o})},t))]})})})]})},H=o(10799);let R=[{label:"25/50",value:""},{label:"25",value:25},{label:"50",value:50}];var O=function(e){let{dominio:t,ProximosEventos:o,EventosPorMeses:u,escopos:x,esporte:A,temporada:E,setTemporada:O,piscina:S,setPiscina:_,idEscopo:k,setIDEscopo:Y,bannerMenu:I}=e,[z,V]=(0,d.useState)([]),F=(0,C.P7)(2002),[D,T]=(0,d.useState)([]);return(0,d.useMemo)(()=>{x&&x.length>0&&T([{label:"TODOS",value:""},...x.map(e=>({label:e.descricao,value:e.id}))])},[x]),(0,d.useEffect)(()=>{(null==A?void 0:A.descricao)?V([{titulo:"HOME",url:"/"},{titulo:"EVENTOS",url:"/eventos"},{titulo:A.descricao.toUpperCase(),url:""}]):V([{titulo:"HOME",url:"/"},{titulo:"EVENTOS",url:""}])},[A]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(w.Z,{titulo:"".concat((null==A?void 0:A.descricao)||""," Eventos - ").concat(t.sigla),descricao:"".concat((null==A?void 0:A.descricao)||""," Eventos - ").concat(t.sigla),dominio:t}),(0,a.jsx)(f.Z,{paths:z}),(0,a.jsxs)(N.Z,{esporte:A,children:[(null==A?void 0:A.url)&&(0,a.jsx)(M.Z,{esporte:A,menu:I,activeMenu:1}),(0,a.jsx)(P,{ProximosEventos:o,esporte:A}),(0,a.jsxs)(r.Z,{sx:{my:6,minHeight:400},children:[(0,a.jsxs)(i.Z,{spacing:2,direction:{xs:"column",md:"row"},justifyContent:"flex-end",alignItems:"center",sx:{mb:{xs:3,md:3}},children:[(0,a.jsx)(H.Z,{className:"primary",options:F,value:E,label:"ANO",name:"ano",size:"small",onChange:e=>{O(e.target.value)},hasEmptyOption:!1,sx:{width:250}}),(null==A?void 0:A.url)==="natacao"&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(H.Z,{className:"primary",options:R,value:S,label:"Piscina",name:"piscina",size:"small",onChange:e=>{_(e.target.value)},hasEmptyOption:!1,sx:{width:230}}),1===t.id?(0,a.jsx)(H.Z,{className:"primary",options:D,value:k,label:"Escopo",name:"escopo",size:"small",onChange:e=>{Y(e.target.value)},hasEmptyOption:!1,sx:{width:230}}):null]})]}),(0,a.jsxs)(p.k0,{children:[u.loading&&Array.from([,,]).map((e,t)=>(0,a.jsxs)(d.Fragment,{children:[(0,a.jsx)(n.Z,{variant:"subtitle2",children:(0,a.jsx)(s.Z,{variant:"text",width:"30%",sx:{mb:-3,fontSize:"3rem"}})}),(0,a.jsx)(l.Z,{sx:{mt:3,mb:5},children:Array.from([,,,,]).map((e,t)=>(0,a.jsx)(s.Z,{item:e,height:100,sx:{mb:-3.5}},t))})]},t)),u.payload.length>0&&u.payload.map((e,t)=>(0,a.jsxs)(l.Z,{children:[(0,a.jsx)(n.Z,{variant:"subtitle2",children:e[0].month_year}),(0,a.jsx)(l.Z,{sx:{mt:3,mb:5},children:e.map(e=>{var t,o,r;return(0,a.jsx)(h(),{href:"/evento/".concat((null===(t=e.esporte)||void 0===t?void 0:t.url)||A.url,"/").concat(e.id,"/").concat((0,g.n)(e.descricao)),children:(0,a.jsxs)(p.cX,{children:[(0,a.jsxs)(l.Z,{children:[(0,a.jsx)(n.Z,{variant:"body1",children:(null==A?void 0:A.url)!=="natacao"?(0,Z.l)(e.inicio,e.fim):e.periodoEvento}),(0,a.jsxs)(n.Z,{variant:"body2",children:["inscri\xe7\xe3o at\xe9:"," ",e.data_limite_inscricao?m()(e.data_limite_inscricao).format("DD.MMM"):""]})]}),(0,a.jsxs)(l.Z,{className:"center-content",sx:{display:"flex",alignItems:"center",py:{md:"0px !important"}},children:[(0,a.jsxs)(i.Z,{direction:"row",children:[e.escopo&&e.escopo.sigla&&(0,a.jsx)(p.bA,{className:"".concat(e.escopo.sigla.toLowerCase()," outline"),label:e.escopo.sigla,sx:{mr:1,my:.5}}),(0,a.jsx)(p.bA,{color:"primary",label:(null===(o=e.esporte)||void 0===o?void 0:o.descricao)||A.descricao,className:"tag-".concat((null===(r=e.esporte)||void 0===r?void 0:r.url)||A.url),sx:{mr:1,my:.5}})]}),(0,a.jsx)(n.Z,{variant:"body2",children:e.descricao})]}),(0,a.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center"},children:[(0,a.jsx)(v.Hc,{sx:{width:"12.62px",height:"15.43px",mr:1}}),(0,a.jsx)(n.Z,{variant:"body1",className:"bold",children:e.local})]})]})},e.id)})})]},t)),u.error&&(0,a.jsx)(c.Z,{severity:"error",sx:{p:0,my:4,justifyContent:"center",alignItems:"center",fontSize:".85rem","& .MuiAlert-icon":{fontSize:"1.35rem",mr:.5}},children:"Nenhum evento encontrado"})]})]})]}),(0,a.jsx)(j.default,{}),(0,a.jsx)(b.default,{}),(0,a.jsx)(y.default,{dominio:t})]})}},61803:function(e,t,o){o.d(t,{$T:function(){return n},Nv:function(){return i},P7:function(){return s}});var a=o(11333),r=o.n(a);let i=r()().format("YYYY"),n=[{label:"".concat(i),value:"".concat(i)},{label:"".concat(i-1),value:"".concat(i-1)},{label:"".concat(i-2),value:"".concat(i-2)},{label:"".concat(i-3),value:"".concat(i-3)},{label:"".concat(i-4),value:"".concat(i-4)},{label:"".concat(i-5),value:"".concat(i-5)}],s=e=>{let t=Number(e);return Array.from(Array(Number(r()().format("YYYY"))-t+1)).map((e,o)=>({label:"".concat(t+o),value:"".concat(t+o)})).reverse()}}}]);