1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{889208:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(386202)}])},649771:function(e,t){"use strict";t.Z={src:"/_next/static/media/estudar_na_uniftec.e490f7d6.jpg",height:544,width:683,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/sBCgoKCgoKCwwMCw8QDhAPFhQTExQWIhgaGBoYIjMgJSAgJSAzLTcsKSw3LVFAODhAUV5PSk9ecWVlcY+Ij7u7+//CABEIAAYACAMBIgACEQEDEQH/xAAoAAEBAAAAAAAAAAAAAAAAAAAABQEBAQAAAAAAAAAAAAAAAAAABAb/2gAMAwEAAhADEAAAALAPSf/EAB0QAAEEAgMAAAAAAAAAAAAAAAIBAxESAAQFFDH/2gAIAQEAAT8A7r+hybraGUiVEjytbZ//xAAYEQEAAwEAAAAAAAAAAAAAAAABAAIhEf/aAAgBAgEBPwDrUAzJ/8QAGhEAAgIDAAAAAAAAAAAAAAAAAgMAAQQTIf/aAAgBAwEBPwDBUp4tJoCRbL7dT//Z",blurWidth:8,blurHeight:6}},791557:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var i=n(785893),o=n(264666),l=n(837645),r=n(6514),a=n(394054),c=n(447312),d=n(973575),s=n(130431),u=n(531425),p=n(483321),m=n(667294);let x={zn:[{tipo:"Reda\xe7\xe3o",url:"https://ftec.inscricao.crmeducacional.com/login/88"},{tipo:"Enem",url:"https://ftec.inscricao.crmeducacional.com/login/89"},{tipo:"Transfer\xeancia",url:"https://ftec.inscricao.crmeducacional.com/login/91"},{tipo:"Segunda Gradua\xe7\xe3o",url:"https://ftec.inscricao.crmeducacional.com/login/90"}],ibgen:[{tipo:"Reda\xe7\xe3o",url:"https://ftec.inscricao.crmeducacional.com/login/92"},{tipo:"Enem",url:"https://ftec.inscricao.crmeducacional.com/login/93"},{tipo:"Transfer\xeancia",url:"https://ftec.inscricao.crmeducacional.com/login/94"},{tipo:"Segunda Gradua\xe7\xe3o",url:"https://ftec.inscricao.crmeducacional.com/login/95"}],cx:[{tipo:"Reda\xe7\xe3o",url:"https://ftec.inscricao.crmeducacional.com/login/96"},{tipo:"Enem",url:"https://ftec.inscricao.crmeducacional.com/login/97"},{tipo:"Transfer\xeancia",url:"https://ftec.inscricao.crmeducacional.com/login/98"},{tipo:"Segunda Gradua\xe7\xe3o",url:"https://ftec.inscricao.crmeducacional.com/login/99"}],bg:[{tipo:"Reda\xe7\xe3o",url:"https://ftec.inscricao.crmeducacional.com/login/100"},{tipo:"Enem",url:"https://ftec.inscricao.crmeducacional.com/login/101"},{tipo:"Transfer\xeancia",url:"https://ftec.inscricao.crmeducacional.com/login/102"},{tipo:"Segunda Gradua\xe7\xe3o",url:"https://ftec.inscricao.crmeducacional.com/login/103"}],nh:[{tipo:"Reda\xe7\xe3o",url:"https://ftec.inscricao.crmeducacional.com/login/104"},{tipo:"Enem",url:"https://ftec.inscricao.crmeducacional.com/login/105"},{tipo:"Transfer\xeancia",url:"https://ftec.inscricao.crmeducacional.com/login/106"},{tipo:"Segunda Gradua\xe7\xe3o",url:"https://ftec.inscricao.crmeducacional.com/login/107"}],ead:[{tipo:"Reda\xe7\xe3o",url:"https://ftec.inscricao.crmeducacional.com/login/108"},{tipo:"Enem",url:"https://ftec.inscricao.crmeducacional.com/login/109"},{tipo:"Transfer\xeancia",url:"https://ftec.inscricao.crmeducacional.com/login/110"},{tipo:"Segunda Gradua\xe7\xe3o",url:"https://ftec.inscricao.crmeducacional.com/login/111"}],semipresencial:[{tipo:"Reda\xe7\xe3o",url:"https://ftec.inscricao.crmeducacional.com/login/112"},{tipo:"Enem",url:"https://ftec.inscricao.crmeducacional.com/login/113"},{tipo:"Transfer\xeancia",url:"https://ftec.inscricao.crmeducacional.com/login/114"},{tipo:"Segunda Gradua\xe7\xe3o",url:"https://ftec.inscricao.crmeducacional.com/login/115"}]};function h(e){let{setModalOpen:t}=e,[n,h]=(0,m.useState)(""),[g,v]=(0,m.useState)(""),[f,b]=(0,m.useState)(""),A=()=>t(!1);return(0,i.jsxs)(o.Z,{open:!0,onClose:A,fullWidth:!0,maxWidth:"sm",PaperProps:{style:{borderRadius:16,overflow:"hidden"},sx:{borderRadius:"16px !important",overflow:"hidden !important","& .MuiDialogContent-root.MuiDialogContent-dividers":{borderTop:"none !important"},"& .MuiDialogTitle-root":{backgroundColor:"transparent !important",borderTopLeftRadius:"16px !important",borderTopRightRadius:"16px !important",margin:0,padding:"16px 16px !important",zIndex:2},"& .MuiDialogActions-root":{backgroundColor:"transparent !important",borderBottomLeftRadius:"16px !important",borderBottomRightRadius:"16px !important",padding:"12px 16px !important",zIndex:2},"& .MuiDialogContent-root":{backgroundColor:"transparent !important"}}},children:[(0,i.jsx)(l.Z,{sx:{fontWeight:700},children:"Selecione"}),(0,i.jsxs)(r.Z,{sx:{borderTop:"none"},children:[(0,i.jsxs)(a.Z,{fullWidth:!0,sx:{mt:2},children:[(0,i.jsx)(c.Z,{children:"Modalidade"}),(0,i.jsxs)(d.Z,{value:n,label:"Modalidade",onChange:e=>{h(e.target.value),v(""),"presencial"!==e.target.value&&b("")},children:[(0,i.jsx)(s.Z,{value:"presencial",children:"Presencial"}),(0,i.jsx)(s.Z,{value:"semipresencial",children:"Semipresencial"}),(0,i.jsx)(s.Z,{value:"ead",children:"EAD"})]})]}),(0,i.jsxs)(a.Z,{fullWidth:!0,sx:{mt:2,display:"presencial"!==n?"none":"inline-flex"},children:[(0,i.jsx)(c.Z,{children:"Unidade"}),(0,i.jsxs)(d.Z,{value:f,label:"Unidade",onChange:e=>b(e.target.value),children:[(0,i.jsx)(s.Z,{value:"cx",children:"Caxias do Sul"}),(0,i.jsx)(s.Z,{value:"bg",children:"Bento Gon\xe7alves"}),(0,i.jsx)(s.Z,{value:"nh",children:"Novo Hamburgo"}),(0,i.jsx)(s.Z,{value:"zn",children:"Porto Alegre - Zona Norte"}),(0,i.jsx)(s.Z,{value:"ibgen",children:"Porto Alegre - IBGEN"})]})]}),(0,i.jsxs)(a.Z,{fullWidth:!0,sx:{mt:2},children:[(0,i.jsx)(c.Z,{children:"Forma de Ingresso"}),(0,i.jsxs)(d.Z,{value:g,label:"Forma de Ingresso",onChange:e=>v(e.target.value),children:[""===n&&(0,i.jsx)(s.Z,{disabled:!0,children:" Selecione uma Modalidade"},"40028922"),"presencial"===n&&""===f&&(0,i.jsx)(s.Z,{disabled:!0,children:" Selecione uma Unidade"},"40028922"),"presencial"===n&&""!==f&&x[f].map(e=>(0,i.jsx)(s.Z,{value:e.tipo,children:e.tipo}
1,e.tipo)),"presencial"!==n&&""!==n&&x[n].map(e=>(0,i.jsx)(s.Z,{value:e.tipo,children:e.tipo},e.tipo))]})]})]}),(0,i.jsxs)(u.Z,{children:[(0,i.jsx)(p.Z,{onClick:A,children:"Fechar"}),(0,i.jsx)(p.Z,{variant:"contained",onClick:()=>{let e="presencial"===n?f:n;if(!e)return alert("Selecione a unidade!");if(!g)return alert("Selecione a forma de ingresso!");let t=x[e].find(e=>e.tipo===g);if(!t||!t.url)return alert("Link n\xe3o encontrado.");window.open(t.url,"_blank")},disabled:""===g,children:"Inscreva-se Agora !"})]})]})}},506856:function(e,t,n){"use strict";n.d(t,{f:function(){return d},h:function(){return s}});var i=n(785893),o=n(693311),l=n(919838),r=n(552052),a=n(999226),c=n(55787);let d=e=>"HIBRIDA"===e?"H\xedbrida":e.charAt(0).toUpperCase()+e.slice(1).toLowerCase();function s(e){let{dateFinish:t,modality:n,classification:s,size:u="small",sx:p={}}=e,m=(0,c.$)(t),x=m?l.Z.palette.error.main:(0,r.B)(n);return(0,i.jsxs)(a.Z,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"6px",...p},children:[s&&(0,i.jsx)(o.u,{label:s,color:l.Z.palette.primary.main,bg:"none",size:u,border:"1px solid ".concat(l.Z.palette.primary.main)}),(0,i.jsx)(o.u,{label:m?"Encerrado":d(n),color:x,bg:m?"#FFF1F1":"none",size:u,border:"1px solid ".concat(x),sx:{textTransform:"capitalize"}})]})}},55787:function(e,t,n){"use strict";n.d(t,{$:function(){return l},J:function(){return o}});var i=n(549367);let o=e=>{var t,n;let{dateInit:o,dateFinish:l}=e,r=i.w.getGroup({date:o}),a=i.w.getGroup({date:l}),c=r.day,d=a.day,s=null===(t=i.w.getMonthName(r.month))||void 0===t?void 0:t.slice(0,3),u=null===(n=i.w.getMonthName(a.month))||void 0===n?void 0:n.slice(0,3);return r.month===a.month?"".concat(c).concat(c===d?"":" a ".concat(d)," de ").concat(s):"".concat(c," de ").concat(s," a ").concat(d," de ").concat(u)},l=e=>{if(!e)return!1;let t=new Date(e).getTime();return Number.isFinite(t)&&t<Date.now()}},386202:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return O},default:function(){return V}});var i=n(785893),o=n(324649),l=n(618377),r=n(130431),a=n(77274),c=n(919838),d=n(849180),s=n(203629),u=n(83122),p=n(761190),m=n(667294),x=n(150066);let h=(0,x.ZP)("div")({width:"100%",maxWidth:"1200px",margin:"0 auto",padding:"2rem",justifyContent:"space-between",display:"flex",flexDirection:"row","@media screen and (max-width: 1132px)":{padding:"1rem",flexDirection:"column"}}),g=(0,x.ZP)("div")({color:c.Z.palette.common.white,maxWidth:"420px",width:"100%","h2, h3":{margin:0},h3:{fontSize:"0.875rem",fontWeight:100},h2:{fontSize:"2rem",fontWeight:700},p:{fontSize:"1rem",lineHeight:"1.5rem",marginTop:"25px"},"@media screen and (max-width: 1132px)":{padding:"1rem 0",maxWidth:"100%",h3:{fontSize:"0.875rem",padding:0},h2:{fontSize:"1.5rem",paddingBottom:"6px"},p:{fontSize:"0.938rem",lineHeight:"1.313rem",margin:"10px 0 !important"}}}),v=(0,x.ZP)("div")({form:{display:"flex",flexDirection:"column",gap:"16px"},maxWidth:"600px",width:"100%",color:c.Z.palette.common.white,".useMyLocationText":{fontSize:"0.813rem",fontWeight:500},hr:{width:"100%",border:"none",borderBottom:"1px solid"},".or":{position:"absolute",margin:"0px",padding:"0 10px",top:-5,background:c.Z.palette.blue600.main,zIndex:1},"@media screen and (max-width: 1132px)":{maxWidth:"100%",".useMyLocationText":{fontWeight:700}}}),f=(0,x.ZP)("div")({width:"100%",maxWidth:"1200px",margin:"0 auto",padding:"1.5rem 2rem",display:"grid",gap:"25px",gridTemplateColumns:"repeat(4, 1fr)","@media screen and (max-width: 1132px)":{gridTemplateColumns:"repeat(2, 1fr)"},"@media screen and (max-width: 768px)":{gridTemplateColumns:"repeat(1, 1fr)"}});var b=e=>{var t,n;let{title:o="Conhe\xe7a nossas",subtitle:x="Unidades e Polos",description:b="Encontre a Unidade ou Polo mais perto de voc\xea! Indique sua localiza\xe7\xe3o ou seleciones o estado.",units:A=[]}=e,[w,y]=(0,m.useState)({state:"",city:"",show:4}),j=A.reduce((e,t)=>(null==e?void 0:e.includes(t.state))?e:[...e,t.state],[]),Z=A.filter(e=>{let{state:t}=e;return t===(null==w?void 0:w.state)}).reduce((e,t)=>(null==e?void 0:e.includes(t.city))?e:[...e,t.city],[]),k=(null==w?void 0:w.state)&&(null==w?void 0:w.city)&&(null==A?void 0:A.length)?null==A?void 0:A.filter(e=>{let{city:t,state:n}=e;return w.state===n&&w.city===t}):[];return(0,i.jsxs)(l.Z,{sx:{background:c.Z.palette.blue600.main},children:[(0,i.jsxs)(h,{children:[(0,i.jsxs)(g,{children:[(0,i.jsx)("h3",{children:x}),(0,i.jsx)("h2",{children:o}),(0,i.jsx)("p",{children:b})]}),(0,i.jsx)(v,{children:(0,i.jsx)(u.l,{name:"location",onSubmit:()=>{},children:(0,i.jsxs)(a.Z,{direction:"row",gap:"20px",children:[(0,i.jsx)(p.lq,{onChange:e=>y(t=>({...t,state:e.target.value,show:4})),label:"Estado",value:w.state,children:j.map((e,t)=>(0,i.jsx)(r.Z,{value:e,children:e},"state-".concat(e,"-").concat(t)))}),(0,i.jsx)(p.lq,{label:"Cidade",value:w.city,onChange:e=>y(t=>({...t,city:e.target.value,show:4})),disabled:""===w.state,children:Z.map((e,t)=>(0,i.jsx)(r.Z,{value:e,children:e},"city-".concat(e,"-").concat(t)))})]})})})]}),(0,i.jsx)(f,{children:null===(t=null==k?void 0:k.slice(0,null!==(n=null==w?void 0:w.show)&&void 0!==n?n:0))||void 0===t?void 0:t.map(e=>{var t,n,o,r;return(0,i.jsx)(l.Z,{sx:{width:"100%",display:"flex",flexDirection:"column",height:"100%"},children:(0,i.jsx)(s.L,{sx:{".subscribeBtnContainer":{width:"100% !important",paddingTop:"10px",button:{fontSize:"1rem",fontWeight:600}},flexGrow:1},link:"/cursos-agrupados?categoriesSlugs=graduacao",bgIcons:null===c.Z||void 0===c.Z?void 0:null===(t=c.Z.palette)||void 0===t?void 0:null===(n=t.blue200)||void 0===n?void 0:n.main,IconColor:null===c.Z||void 0===c.Z?void 0:null===(o=c.Z.palette)||void 0===o?void 0:null===(r=o.blue600)||void 0===r?void 0:r.main,title:null==e?void 0:e.name,phoneOfContact:null==e?void 0:e.phone,levelOfEducation:null==e?void 0:e.education,address:null==e?void 0:e.addressString})},"educationalUnit-".concat(e.id))})}),(null==k?void 0:k.length)>0&&(null==k?void 0:k.length)>(null==w?void 0:w.show)&&(0,i.jsx)(l.Z,{sx:{display:"flex",justifyContent:"center",paddingBottom:"20px"},children:(0,i.jsx)(d.z,{label:"Ver Mais",variant:"filled",sx:{transition:"all .3s ease",backgroundColor:"white",color:c.Z.palette.blue700.main,"&:hover":{color:"white",backgroundColor:c.Z.palette.blue700.main}},onClick:()=>{y(e=>({...e,show:(null==e?void 0:e.show)+4}))}})})]})},A=n(515937),w=n(631443),y=n(999226),j=n(205263),Z=n(73490),k=n(998083);let C=(0,x.ZP)("div")({width:"100%",maxWidth:"1200px",margin:"0 auto",padding:"2rem",paddingTop:"1rem","h2, h3":{margin:0},h3:{fontSize:"0.875rem",fontWeight:100},h2:{fontSize:"2rem",fontWeight:700,color:c.Z.palette.blue700.main},"@media screen and (max-width: 1132px)":{padding:"1rem 0",h3:{fontSize:"0.875rem",padding:0},h2:{fontSize:"1.5rem",paddingBottom:"6px"}}});var S=e=>{let{color:t=c.Z.palette.blue600.main,items:n,subtitle:o,bgColor:l=c.Z.palette.blue050.main,title:r}
1=e,d=(0,m.useRef)(null),[s,u]=(0,m.useState)(0),p=e=>()=>{u(e)};(0,m.useEffect)(()=>{if(d.current){let e=d.current,t=e.querySelector("ul li");t&&t.click()}},[]);let x={padding:"7px 15px",borderRadius:"6px",height:"fit-content",color:c.Z.palette.blue700.main,background:c.Z.palette.blue100.main,opacity:"100% !important",'&[aria-label*="selected-true"]':{background:c.Z.palette.blue200.main},"@media screen and (max-width: 1132px)":{fontSize:"0.75rem"}};return(0,i.jsx)(y.Z,{ref:d,sx:{background:l,"@media screen and (max-width: 1132px)":{background:"transparent"}},children:(0,i.jsxs)(C,{children:[(0,i.jsxs)(a.Z,{paddingBottom:"20px",justifyContent:"space-between",direction:"row",alignItems:"center",sx:{"@media screen and (max-width: 1132px)":{padding:"0 1rem",flexDirection:"column",alignItems:"flex-start"}},children:[(0,i.jsxs)(a.Z,{sx:{marginRight:"32px"},children:[(0,i.jsx)("h3",{children:o}),(0,i.jsx)("h2",{children:r})]}),(0,i.jsx)(k.n,{fullWidth:!1,sx:{border:"none",maxWidth:"100%",overflowX:"scroll"},children:null==n?void 0:n.map((e,n)=>(0,i.jsx)(j.Z,{label:e.label,currentValue:s,index:n,onClick:p,color:t,icon:e.icon,sx:x},n.toString()))})]}),null==n?void 0:n.map((e,t)=>(0,i.jsx)(Z.r,{index:t,currentValue:s,children:e.content},t.toString()))]})})},E=n(664503),_=n(398396),F=n(496486),I=n(741664),D=n.n(I),B=n(649771),T=n(693311),W=n(483321),z=n(513264);let M=(0,z.Z)(e=>{let{...t}=e;return(0,i.jsx)(a.Z,{...t})})(e=>{let{}=e;return{flexDirection:"row",position:"relative",justifyContent:"center",gap:153,alignItems:"center",width:"100%",padding:"15px",paddingTop:"20px",p:{letterSpacing:"0.29px",fontSize:"1.28rem",lineHeight:"1.625rem",color:c.Z.palette.common.white,fontWeight:"normal",margin:0,strong:{fontWeight:700}},".subscribe":{cursor:"pointer",borderRadius:10,padding:"11px 32px",background:c.Z.palette.common.white,border:"none",letterSpacing:"0.67px",fontSize:"1rem",fontWeight:"bold"},".subscribe:hover":{color:"#ffffffff",background:"#0015ffff"},"@media screen and (max-width: 900px)":{flexDirection:"column",gap:0,padding:"12px 0",p:{letterSpacing:"0.19px",fontSize:"0.75rem",lineHeight:"1.625rem",textAlign:"center"},".subscribe button":{letterSpacing:"0.58px",fontSize:"0.75rem"},".close":{position:"absolute",top:"-11px",right:"-6px",background:c.Z.palette.common.black,borderRadius:"50%",padding:"1px 3px",opacity:1,svg:{width:18,height:"auto"}}}}},e=>{let{sx:t}=e;return{...t}});var R=n(791557),L=function(){let[e,t]=(0,m.useState)(!1);return(0,i.jsxs)(m.Fragment,{children:[e&&(0,i.jsx)(R.Z,{setModalOpen:t}),(0,i.jsx)(y.Z,{sx:{background:"linear-gradient(328deg, #007AF1, #053378)",marginTop:-1,top:0,bottom:0,left:0,width:"100%"},children:(0,i.jsxs)(M,{children:[(0,i.jsxs)("p",{children:[(0,i.jsx)("strong",{children:"Inscri\xe7\xf5es abertas"})," para os cursos da Uniftec"]}),(0,i.jsx)(a.Z,{direction:"row",alignItems:"center",gap:"32px",children:(0,i.jsx)(W.Z,{className:"subscribe",onClick:()=>{t(!0)},children:"Inscreva-se Agora !"})})]})})]})},P=n(549367),U=n(552052),N=n(55787),Q=n(506856),G=n(82729);function H(){let e=(0,G._)(["\n .banner-carousel {\n position: relative;\n z-index: 1;\n pointer-events: auto;\n }\n\n position: relative;\n width: 100%;\n overflow: hidden;\n &.carousel {\n /* nothing extra */\n }\n\n .carousel__viewport {\n width: 100%;\n overflow: hidden;\n }\n\n .carousel__track {\n display: flex;\n transition: transform 400ms ease;\n will-change: transform;\n }\n\n .carousel__slide {\n min-width: 100%;\n width: 100%;\n flex-shrink: 0;\n position: relative;\n display: block;\n user-select: none;\n -webkit-user-drag: none;\n }\n\n /* dots overlay */\n .carousel__dots {\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n display: flex;\n gap: 8px;\n z-index: 40;\n bottom: 12px; /* altura sobre a imagem */\n align-items: center;\n justify-content: center;\n pointer-events: auto;\n }\n\n .carousel__dot {\n width: 8px;\n height: 8px;\n border-radius: 9999px;\n background: rgba(255, 255, 255, 0.6);\n border: none;\n padding: 0;\n transition: all 200ms;\n cursor: pointer;\n }\n\n .carousel__dot.is-selected {\n width: 32px;\n height: 8px;\n border-radius: 115px;\n background: rgba(255, 255, 255, 1);\n }\n\n ","\n"]);return H=function(){return e},e}let X=x.ZP.div(H(),e=>e.defaultFull&&"\n .carousel__slide > img {\n width: 100%;\n height: 460px;\n object-fit: cover;\n display:block;\n }\n ");var J=e=>{var t;let{slides:n,autoplay:o=!0,autoplayTime:l=4e3,loop:r=!0,showDots:a=!0,className:c="",defaultFull:d=!1}=e,[s,u]=(0,m.useState)(0),p=(0,m.useRef)(null),x=(0,m.useRef)(null),h=(0,m.useRef)(void 0),g=(0,m.useRef)({isDown:!1,startX:0,dx:0,moved:!1,pointerId:0}),v=(0,m.useRef)(!1),f=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0,b=(0,m.useCallback)(e=>{if(0===f)return;let t=e;t<0&&(t=r?f-1:0),t>=f&&(t=r?0:f-1),u(t)},[f,r]),A=(0,m.useCallback)(()=>b(s+1),[b,s]);(0,m.useCallback)(()=>b(s-1),[b,s]);let w=(0,m.useCallback)(()=>{o&&!(f<=1)&&(y(),h.current=window.setInterval(()=>{try{A()}catch(e){}},l))},[o,l,f,A]),y=(0,m.useCallback)(()=>{void 0!==h.current&&(clearInterval(h.current),h.current=void 0)},[]);(0,m.useEffect)(()=>{let e=()=>{document.hidden?y():w()};return document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)},[w,y]),(0,m.useEffect)(()=>(w(),()=>y()),[w,y,s]),(0,m.useEffect)(()=>{let e=p.current;if(!e)return;let t="translateX(-".concat(100*s,"%)");e.style.transition="transform 400ms ease",e.style.transform=t},[s]),(0,m.useEffect)(()=>{let e=x.current,t=p.current;if(!e||!t)return;let n=Math.max(8,e.clientWidth/12),i=e=>{if(0===e.button){y(),g.current.isDown=!0,g.current.startX=e.clientX,g.current.dx=0,g.current.moved=!1,g.current.pointerId=e.pointerId,e.preventDefault();try{e.target.setPointerCapture(e.pointerId)}catch(e){}t.style.transition="none"}},o=n=>{if(!g.current.isDown)return;g.current.dx=n.clientX-g.current.startX;let i=g.current.dx/e.clientWidth*100;t.style.transform="translateX(calc(-".concat(100*s,"% + ").concat(i,"%))"),Math.abs(g.current.dx)>5&&(g.current.moved=!0)},l=e=>{if(!g.current.isDown)return;g.current.isDown=!1;try{e.target.releasePointerCapture(e.pointerId)}catch(e){}t.style.transition="transform 400ms ease";let i=g.current.dx;Math.abs(i)>n?(i<0?b(s+1):b(s-1),v.current=!0,setTimeout(()=>{v.current=!1},0)):t.style.transform="translateX(-".concat(100*s,"%)"),setTimeout(()=>{w()},300),g.current.dx=0,g.current.pointerId=null,g.current.moved=!1},r=e=>{if(g.current.isDown){g.current.isDown=!1,g.current.dx=0,g.current.pointerId=null,g.current.moved=!1;try{e.target.releasePointerCapture(e.pointerId)}catch(e){}t.style.transition="transform 400ms ease",t.style.transform="translateX(-".concat(100*s,"%)"),w()}};return e.addEventListener("pointerdown",i,{passive:!1}),window.addEventListener("pointermove",o),window.addEventListener("pointerup",l),window.addEventListener("pointercancel",r),()=>{e.removeEventListener("pointerdown",i),window.removeEventListener("pointermove",o),window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",r)}},[b,s,w,y,l]),(0,m.useEffect)(()=>{s>=f&&f>0&&u(0)},[f,s]);let j=e=>{v.current&&(e.stopPropagation(),e.preventDefault(),v.current=!1)};return(0,i.jsxs)(X,{className:"carousel ".concat(c),onMouseEnter:()=>y(),onMouseLeave:()=>w(),onFocus:()=>y(),onBlur:()=>w(),defaultFull:d,children:[(0,i.jsx)("div",{className:"carousel__viewport","aria-roledescription":"carousel",ref:x,children:(0,i.jsx)("div",{className:"carousel__track",ref:p,role:"list",children:null==n?void 0:n.map((e,t)=>(0,i.jsx)("div",{className:"carousel__slide",role:"group","aria-roledescription":"slide","aria-label":"".concat(t+1," of ").concat(f),onClickCapture:j,children:m.isValidElement(e)?m.cloneElement(e,{draggable:!1}):e},t))})}),a&&f>1&&(0,i.jsx)("div",{className:"carousel__dots","aria-hidden":!1,children:n.map((e,t)=>(0,i.jsx)("button",{className:"carousel__dot ".concat(t===s?"is-selected":""),"aria-label":"go to slide ".concat(t+1),onClick:()=>b(t)},t))})]})},O=!0;function V(e){var t,n,l,r,a,d,s,u,p,x,h,g,v,f,y,j,Z,k,C,I,W,z,M,R,G,H,X,O,V,q,Y,K,$,ee,et,en,ei,eo,el,er;let{banners:ea,contentPage:ec,blogPosts:ed,events:es,shelf:eu,units:ep}
1=e,em=(0,_.Z)("(max-width:900px)"),ex=null!==(O=null==ea?void 0:ea.map(e=>{let{mediaFileDesktop:t,mediaFileMobile:n,description:o,title:l,url:r,targetBlank:a}=e;return(0,i.jsx)(D(),{href:r,target:a?"_blank":void 0,style:{display:"block"},children:(0,i.jsx)("img",{src:em?(0,E.WX)(n.path):(0,E.WX)(t.path),alt:o||l,style:{width:"100%",height:em?"auto":"460px",objectFit:"cover",display:"block"}})},r)}))&&void 0!==O?O:[],eh=JSON.parse(null!==(V=null==ec?void 0:ec.contentJSON)&&void 0!==V?V:"{}"),eg=(null==eh?void 0:eh.meetcourses)?{title:null==eh?void 0:null===(t=eh.meetcourses)||void 0===t?void 0:t.title,subtitle:null==eh?void 0:null===(n=eh.meetcourses)||void 0===n?void 0:n.subTitle,img:null==eh?void 0:null===(l=eh.meetcourses)||void 0===l?void 0:l.background,imgMobile:null==eh?void 0:null===(r=eh.meetcourses)||void 0===r?void 0:r.backgroundMobile,description:null==eh?void 0:null===(a=eh.meetcourses)||void 0===a?void 0:a.contentHtml,alt:null==eh?void 0:null===(d=eh.meetcourses)||void 0===d?void 0:d.title,content:null!==($=null==eh?void 0:null===(s=eh.meetcourses)||void 0===s?void 0:s.repeater.map(e=>({title:null!==(q=null==e?void 0:e.title)&&void 0!==q?q:"",icon:null==e?void 0:e.icon,link:null!==(Y=null==e?void 0:e.url)&&void 0!==Y?Y:"",iconColor:null!==(K=null==e?void 0:e.color)&&void 0!==K?K:"",target:(null==e?void 0:e.targetBlank)?"_blank":""})))&&void 0!==$?$:[]}:void 0,ev=(null==eh?void 0:eh.entryForms)?{title:null==eh?void 0:null===(u=eh.entryForms)||void 0===u?void 0:u.title,subtitle:null==eh?void 0:null===(p=eh.entryForms)||void 0===p?void 0:p.subTitle,description:null==eh?void 0:null===(x=eh.entryForms)||void 0===x?void 0:x.contentHtml,link:null==eh?void 0:null===(h=eh.entryForms)||void 0===h?void 0:h.url,textUrl:null==eh?void 0:null===(g=eh.entryForms)||void 0===g?void 0:g.textUrl,target:(null===(v=eh.entryForms)||void 0===v?void 0:v.targetBlank)?"_blank":"",content:null!==(et=null==eh?void 0:null===(f=eh.entryForms)||void 0===f?void 0:f.repeater.map(e=>({title:null!==(ee=null==e?void 0:e.textUrl)&&void 0!==ee?ee:"",bagde:(0,i.jsx)(T.u,{label:null==e?void 0:e.textBox,size:"small",color:c.Z.palette.common.white,border:"1px solid #FFFFFF"}),link:null==e?void 0:e.url,target:(null==e?void 0:e.targetBlank)?"_blank":""})))&&void 0!==et?et:[]}:void 0,ef=(null==eh?void 0:eh.whystudy)?{subtitle:null==eh?void 0:null===(y=eh.whystudy)||void 0===y?void 0:y.subTitle,title:null==eh?void 0:null===(j=eh.whystudy)||void 0===j?void 0:j.title,textBtn:null==eh?void 0:null===(Z=eh.whystudy)||void 0===Z?void 0:Z.textUrl,img:null!==(en=null==eh?void 0:null===(k=eh.whystudy)||void 0===k?void 0:k.background)&&void 0!==en?en:B.Z.src,imgMobile:null!==(ei=null==eh?void 0:null===(C=eh.whystudy)||void 0===C?void 0:C.backgroundMobile)&&void 0!==ei?ei:B.Z.src,alt:null==eh?void 0:null===(I=eh.whystudy)||void 0===I?void 0:I.title,link:null==eh?void 0:null===(W=eh.whystudy)||void 0===W?void 0:W.url,bg:c.Z.palette.blue050.main,target:(null===(z=eh.whystudy)||void 0===z?void 0:z.targetBlank)?"_blank":"",content:null!==(el=null==eh?void 0:null===(M=eh.whystudy)||void 0===M?void 0:null===(R=M.repeater)||void 0===R?void 0:R.map(e=>({title:null==e?void 0:e.title,text:null==e?void 0:e.content,icon:null!==(eo=null==e?void 0:e.icon)&&void 0!==eo?eo:""})))&&void 0!==el?el:[]}:void 0,eb=(null==eh?void 0:eh.units)?{title:null==eh?void 0:null===(G=eh.units)||void 0===G?void 0:G.title,subtitle:null==eh?void 0:null===(H=eh.units)||void 0===H?void 0:H.subTitle,description:null==eh?void 0:null===(X=eh.units)||void 0===X?void 0:X.content,units:ep||[]}:void 0;c.Z.palette.common.white,c.Z.palette.common.white;let eA=()=>{var e;let t=null===(e=document.querySelector(".carousel"))||void 0===e?void 0:e.getBoundingClientRect(),n=document.querySelector(".wrapper__header__fixed");t&&n&&(t.bottom<=0?(n.setAttribute("style","top: 0px"),n.classList.replace("styleHeaderHome","styleHeaderDefault")):(n.setAttribute("style","top: -300px"),n.classList.replace("styleHeaderDefault","styleHeaderHome")))},ew=(0,m.useRef)((0,F.throttle)(()=>{eA()},300));return(0,m.useEffect)(()=>{let e=ew.current;window.addEventListener("scroll",e)},[ew]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(J,{slides:ex,defaultFull:!0}),(0,i.jsx)(L,{}),(null==eu?void 0:eu.length)>
10&&(0,i.jsx)(S,{bgColor:"#F3F6F9",title:"Destaque",subtitle:"Cursos em",items:eu.map(e=>({label:e.name,content:(0,i.jsx)(w.x,{cards:e.content.map(e=>{let{course:t}=e;return{imgSrc:null!==(er=t.imageUrlDefault)&&void 0!==er?er:t.imageUrl,alt:t.name,color:(0,U.u)(t.methodology.category.name).primary,hours:t.courseLoadHours,title:t.name,id:t.id,courseType:t.methodology.teachingArea.name,linkBtn:"cursos/".concat(t.slug),unit:t.educationalUnit.name,category:t.methodology.category.name,modality:t.modality.name,openForSubscriptions:t.openForSubscriptions}})})}))}),eg&&(0,i.jsx)(o.Z8,{...eg}),ev&&(0,i.jsx)(o.II,{...ev}),ef&&(0,i.jsx)(o.uj,{...ef}),es&&es.length>0&&(0,i.jsx)(w.A,{cards:es.map(e=>({imgSrc:(0,E.WX)(e.mediaFileDesktop.path),link:"/eventos/".concat(e.slug),tagImage:(0,N.J)({...e}),tag:(0,i.jsx)(Q.h,{dateFinish:e.dateFinish,modality:e.modality}),alt:"evento",title:null==e?void 0:e.title,date:(0,N.J)({...e}),time:e.hourInit,location:e.localization,linkText:"Saiba mais"})),subtitle:"Pr\xf3ximos",title:"Eventos",
1seeAllLink:"/eventos"}),ed&&ed.length>0&&(0,i.jsx)(w.A,{cards:ed.map(e=>({imgSrc:(0,E.WX)(em?e.mediaFileMobile.path:e.mediaFileDesktop.path),alt:"student",textDatePosted:"Publicado em ".concat((0,P.W)(e.publishOn)),link:"/blog/".concat(e.slug),tag:(0,i.jsx)(T.u,{label:e.categoryBlog.name,bg:e.categoryBlog.backgroundColor,color:e.categoryBlog.textColor,size:"small",border:"1px solid ".concat(e.categoryBlog.backgroundColor)}),title:null==e?void 0:e.title})),subtitle:"\xdaltimas",title:"Not\xedcias",bgColor:"#F8F8FB",seeAllText:"Ver todos",seeAllLink:"/blog"}),!!eb&&(0,i.jsx)(b,{...eb}),(0,i.jsx)(A.Z,{})]})}}},function(e){e.O(0,[6161,1460,3354,8372,2546,6567,7388,7310,9028,244,3629,4649,9774,2888,179],function(){return e(e.s=889208)}),_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.