PageSourceSearch

https://www.unifteconline.com.br/_next/static/chunks/pages/minha-c…/[registrationId]-57a2144536d3a8cf.js

js unifteconline.com.br collected 2026-10-10 00:49:06 UTC 37,711 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9979],{304208:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/minha-conta/eventos/[registrationId]",function(){return i(245298)}])},345945:function(e,t,i){"use strict";var n=i(785893),r=i(618377),o=i(611258);t.Z=e=>{let{title:t,subtitle:i,sx:a,children:s,className:d,id:l}=e;return(0,n.jsxs)(o.T,{sx:a,className:d,id:l,children:[(i||t)&&(0,n.jsxs)(r.Z,{className:"header",children:[i&&(0,n.jsx)("span",{children:i}),t&&(0,n.jsx)("h2",{children:t})]}),s]})}},406510:function(e,t,i){"use strict";var n=i(785893),r=i(618377),o=i(345945),a=i(611258);t.Z=e=>{let{title:t,subtitle:i,sx:s,wrapperSx:d,children:l,bg:c,className:x,id:u}=e;return(0,n.jsx)(r.Z,{sx:{scrollMarginBlockStart:"140px",...c},className:x,id:u,children:(0,n.jsx)(a.Y,{wrapperSx:d,children:(0,n.jsx)(o.Z,{title:t,subtitle:i,sx:s,children:l})})})}},243361:function(e,t,i){"use strict";i.d(t,{H:function(){return n.Z},N:function(){return r.Z}});var n=i(345945),r=i(406510)},611258:function(e,t,i){"use strict";i.d(t,{T:function(){return a},Y:function(){return o}});var n=i(919838),r=i(150066);let o=(0,r.ZP)("div")({maxWidth:"1200px",padding:"2rem",width:"100%",margin:"0 auto","@media screen and (max-width: 1132px)":{padding:"1rem",maxWidth:"100%"}},e=>{let{wrapperSx:t}=e;return{...t}}),a=(0,r.ZP)("div")({width:"100%",".header":{paddingBottom:"20px",h2:{fontSize:"2rem",fontWeight:700,lineHeight:"2.5rem",margin:0,color:n.Z.palette.blue700.main},h1:{fontSize:"2rem",fontWeight:700,lineHeight:"2.5rem",margin:0,color:n.Z.palette.blue700.main},span:{margin:0,fontSize:"0.875rem",color:n.Z.palette.blue900.main}},"@media screen and (max-width: 1132px)":{".header":{h2:{fontSize:"1.5rem",lineHeight:"1.75rem"},h1:{fontSize:"1.5rem",lineHeight:"1.75rem"}}}},e=>{let{sx:t}=e;return{...t}})},245298:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return eb}});var n=i(785893),r=i(111024),o=i(744267),a=i(999226),s=i(415861),d=i(387918),l=i(746901),c=i(483321),x=i(823795),u=i(486179),p=i(938895),m=i(922797),f=i(386886),h=i(598456),g=i(481458),v=i(467720),j=i(77274),b=i(823508),Z=i(101849),y=i(60888),E=i(674151),w=i(900874),S=i(751215),I=i(627924),C=i(419602),N=i(328304),T=i(697397),R=i(180172),L=i(79438),A=i(450594),D=i(811163),k=i(667294),O=i(730381),z=i.n(O),W=i(243361),M=i(133448),_=i(849170),H=i(550135),P=i(616851),U=i(518037);let Y="#3949ab",B={borderRadius:"9px",textTransform:"none",fontWeight:700,color:"#ffffff !important",backgroundColor:"#3049a5 !important","&:hover":{backgroundColor:"#243b80 !important"},"&.Mui-disabled, &.Mui-disabled:hover":{color:"#ffffff !important",WebkitTextFillColor:"#ffffff !important",backgroundColor:"#64748b !important",opacity:1}},q={INVALID_CODE:"C\xf3digo de presen\xe7a incorreto.",INVALID_TOKEN:"Token de presen\xe7a inv\xe1lido ou expirado.",TOKEN_MISMATCH:"Este QR Code n\xe3o pertence ao evento ou \xe0 sess\xe3o.",WINDOW_CLOSED:"A janela de check-in n\xe3o est\xe1 aberta.",TOO_MANY_ATTEMPTS:"Muitas tentativas. Aguarde alguns minutos.",METHOD_NOT_ALLOWED:"M\xe9todo de presen\xe7a n\xe3o permitido.",LOCATION_REQUIRED:"Permita o acesso \xe0 sua localiza\xe7\xe3o para realizar o check-in.",LOCATION_INVALID:"O navegador retornou uma localiza\xe7\xe3o inv\xe1lida.",GEOFENCE_NOT_CONFIGURED:"A geolocaliza\xe7\xe3o desta sess\xe3o n\xe3o foi configurada corretamente.",OUTSIDE_ALLOWED_AREA:"Voc\xea est\xe1 fora da \xe1rea permitida para o check-in.",SESSION_NOT_FOUND:"Sess\xe3o de presen\xe7a n\xe3o encontrada."},V=e=>({NOT_STARTED:"N\xe3o iniciada",IN_PROGRESS:"Em andamento",COMPLETED:"Conclu\xedda"})[e],F=e=>{let{registrationId:t}=e,i=(0,D.useRouter)(),[x,u]=(0,k.useState)(),[p,m]=(0,k.useState)({}),[f,h]=(0,k.useState)(),[v,b]=(0,k.useState)({}),[Z,y]=(0,k.useState)(),w=(0,k.useCallback)(async()=>{try{u(await (0,_.BS)(t))}catch(e){y({type:"error",text:"N\xe3o foi poss\xedvel carregar a presen\xe7a agora."})}},[t]),S=(0,k.useCallback)(async e=>{try{return u(await (0,_.vY)(t,e)),y({type:"success",text:"Presen\xe7a confirmada."}),!0}catch(t){var i,n;let e=null==t?void 0:null===(i=t.response)||void 0===i?void 0:null===(n=i.data)||void 0===n?void 0:n.code;return y({type:"error",text:q[e]||"N\xe3o foi poss\xedvel confirmar a presen\xe7a."}),!1}},[t]),I=(0,k.useCallback)(e=>{if(!navigator.geolocation){y({type:"error",text:"Este navegador n\xe3o oferece suporte \xe0 geolocaliza\xe7\xe3o."});return}h(e),y(void 0),navigator.geolocation.getCurrentPosition(t=>{let{coords:i}=t;return S({sessionId:e,method:"GEOLOCATION",latitude:i.latitude,longitude:i.longitude,accuracy:i.accuracy}).then(t=>t&&b(t=>({...t,[e]:{latitude:i.latitude,longitude:i.longitude,accuracy:i.accuracy}}))).finally(()=>h(void 0))},e=>
1{h(void 0),y({type:"error",text:e.code===e.PERMISSION_DENIED?"Permita o acesso \xe0 sua localiza\xe7\xe3o para realizar o check-in.":"N\xe3o foi poss\xedvel obter sua localiza\xe7\xe3o. Verifique o GPS e tente novamente."})},{enableHighAccuracy:!0,timeout:15e3,maximumAge:0})},[S]);if((0,k.useEffect)(()=>{w()},[w]),(0,k.useEffect)(()=>{let e="string"==typeof i.query.token?i.query.token:void 0,n="string"==typeof i.query.sessionId?i.query.sessionId:void 0;e&&n&&S({sessionId:n,token:e}).finally(()=>i.replace({pathname:i.pathname,query:{registrationId:t}},void 0,{shallow:!0}))},[S,t,i]),!x)return(null==Z?void 0:Z.type)==="error"?(0,n.jsx)(l.Z,{severity:"error",children:Z.text}):null;if(!x.sessions.length)return null;let C=x.progress.total?100*x.progress.present/x.progress.total:0;return(0,n.jsxs)(a.Z,{children:[(0,n.jsxs)(j.Z,{direction:"row",gap:2,alignItems:"flex-start",mb:2,children:[(0,n.jsx)(a.Z,{sx:{width:40,height:40,marginTop:"1px",flexShrink:0,borderRadius:"10px",display:"grid",placeItems:"center",color:Y,background:"#edf0ff",svg:{fontSize:21}},children:(0,n.jsx)(P.Z,{})}),(0,n.jsxs)(a.Z,{minWidth:0,children:[(0,n.jsx)(s.Z,{component:"h2",variant:"h5",fontWeight:750,lineHeight:1.25,sx:{margin:0},children:"Presen\xe7a"}),(0,n.jsx)(s.Z,{color:"text.secondary",fontSize:"0.9rem",lineHeight:1.3,mt:.7,children:"Consulte as sess\xf5es e confirme sua participa\xe7\xe3o no evento."})]})]}),(0,n.jsxs)(j.Z,{gap:2,children:[(0,n.jsx)(r.Z,{variant:"outlined",sx:{borderRadius:"14px",borderColor:"#e0e5f1",boxShadow:"0 7px 20px rgba(39, 52, 112, 0.06)"},children:(0,n.jsx)(o.Z,{sx:{padding:"18px 20px !important"},children:(0,n.jsxs)(j.Z,{gap:1,children:[(0,n.jsxs)(j.Z,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},gap:1,children:[(0,n.jsxs)(a.Z,{children:[(0,n.jsx)(s.Z,{fontWeight:700,children:"Progresso de presen\xe7a"}),(0,n.jsxs)(s.Z,{color:"text.secondary",fontSize:"0.88rem",children:[x.progress.present," de ",x.progress.total," sess\xf5es confirmadas"]})]}),(0,n.jsx)(d.Z,{size:"small",label:V(x.participationStatus),color:"COMPLETED"===x.participationStatus?"success":"primary",variant:"COMPLETED"===x.participationStatus?"filled":"outlined",sx:{fontWeight:700}})]}),(0,n.jsx)(g.Z,{variant:"determinate",value:C,sx:{height:8,marginTop:.5,borderRadius:999,backgroundColor:"#dfe4f5"}})]})})}),Z&&(0,n.jsx)(l.Z,{severity:Z.type,children:Z.text}),x.sessions.map(e=>(0,n.jsx)(r.Z,{variant:"outlined",sx:{borderRadius:"14px",borderColor:"PRESENT"===e.attendanceStatus?"#68b487":"#e0e5f1",boxShadow:"0 7px 20px rgba(39, 52, 112, 0.06)"},children:(0,n.jsx)(o.Z,{sx:{padding:"18px 20px !important"},children:(0,n.jsxs)(j.Z,{gap:1.75,children:[(0,n.jsxs)(j.Z,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},gap:1,children:[(0,n.jsxs)(j.Z,{direction:"row",gap:2,alignItems:"flex-start",minWidth:0,children:[(0,n.jsx)(a.Z,{sx:{width:40,height:40,marginTop:"1px",flexShrink:0,borderRadius:"10px",display:"grid",placeItems:"center",color:Y,background:"#edf0ff"},children:(0,n.jsx)(E.Z,{sx:{fontSize:21}})}),(0,n.jsxs)(a.Z,{minWidth:0,children:[(0,n.jsx)(s.Z,{component:"h3",fontSize:"1rem",fontWeight:700,lineHeight:1.3,sx:{margin:0},children:e.title}),(0,n.jsxs)(s.Z,{color:"text.secondary",fontSize:"0.88rem",lineHeight:1.3,mt:.7,children:[z()(e.startsAt).format("DD/MM/YYYY HH:mm")," a ",z()(e.endsAt).format("DD/MM/YYYY HH:mm")]})]})]}),(0,n.jsx)(d.Z,{size:"small",label:e.required?"Obrigat\xf3ria":"Opcional",variant:"outlined"})]}),"PRESENT"===e.attendanceStatus?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(l.Z,{severity:"success",icon:(0,n.jsx)(U.Z,{}),children:["Presen\xe7a confirmada em ",z()(e.checkedInAt).format("DD/MM/YYYY HH:mm")]}),v[e.id]&&(0,n.jsxs)(l.Z,{severity:"info",children:[(0,n.jsx)("strong",{children:"Localiza\xe7\xe3o usada neste check-in:"}),(0,n.jsx)("br",{}),"Latitude: ",v[e.id].latitude,(0,n.jsx)("br",{}),"Longitude: ",v[e.id].longitude,(0,n.jsx)("br",{}),"Precis\xe3o aproximada: ",Math.round(v[e.id].accuracy)," m"]})]}):"OPEN"!==e.state?(0,n.jsx)(l.Z,{severity:"info",children:"NOT_AVAILABLE"===e.state?"Check-in ainda n\xe3o liberado.":"Janela de check-in encerrada."}):(0,n.jsxs)(j.Z,{gap:1.25,children:[e.methods.includes("CODE")&&(0,n.jsxs)(j.Z,{direction:{xs:"column",sm:"row"},gap:1,children:[(0,n.jsx)(H.Z,{size:"small",fullWidth:!0,label:"C\xf3digo de presen\xe7a",value:p[e.id]||"",onChange:t=>m(i=>({...i,[e.id]:t.target.value}))}),(0,n.jsx)(c.Z,{variant:"contained",onClick:()=>S({sessionId:e.id,code:p[e.id]}),sx:{...B,whiteSpace:"nowrap"},children:"Confirmar presen\xe7a"})]}),e.methods.includes("GEOLOCATION")&&(0,n.jsx)(c.Z,{variant:"contained",disabled:f===e.id,onClick:()=>I(e.id),sx:{...B,alignSelf:"flex-start"},children:f===e.id?"Obtendo localiza\xe7\xe3o...":"Fazer check-in com minha localiza\xe7\xe3o"})]})]})})},e.id))]})]})};var G=i(955362),K=i(889766);let X={borderRadius:"9px",textTransform:"none",fontWeight:700,color:"#ffffff !important",backgroundColor:"#3049a5 !important","&:hover":{backgroundColor:"#243b80 !important"},"&.Mui-disabled, &.Mui-disabled:hover":{color:"#ffffff !important",WebkitTextFillColor:"#ffffff !important",backgroundColor:"#64748b !important",opacity:1}},J=e=>({BLOCKED:"Bloqueado",PENDING:"Pendente",AVAILABLE:"Dispon\xedvel para emiss\xe3o",ELIGIBLE:"Dispon\xedvel para emiss\xe3o",ISSUED:"Emitido",REVOKED:"Revogado"})[e]||e,Q=e=>{let t=e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();return t.includes("certificado indisponivel")?"Certificado indispon\xedvel para este evento.":t.includes("inscricao cancelada")?"Inscri\xe7\xe3o cancelada ou indispon\xedvel.":t.includes("pagamento reembolsado")?"Pagamento reembolsado.":t.includes("pagamento nao aprovado")?"Pagamento n\xe3o aprovado.":t.includes("presenca nao concluida")?"Presen\xe7a n\xe3o conclu\xedda.":t.includes("certificado bloqueado")?"Certificado bloqueado para revis\xe3o administrativa.":t.includes("certificado revogado")?"Este certificado foi revogado. Solicite uma reemiss\xe3o \xe0 equipe respons\xe1vel.":t.includes("data de emissao")?"A data de emiss\xe3o ainda n\xe3o foi atingida.":t.includes("conteudos obrigatorios")?e:"Existe uma pend\xeancia para a emiss\xe3o deste certificado."},$=e=>{let{registrationId:t}=e,[i,x]=(0,k.useState)(),[u,p]=(0,k.useState)(!0),[m,f]=(0,k.useState)(!1),[g,b]=(0,k.useState)(""),Z=(0,k.useCallback)(async()=>{try{x(await (0,_.x4)(t)),b("")}catch(t){var e,i;b((null==t?void 0:null===(e=t.response)||void 0===e?void 0:null===(i=e.data)||void 0===i?void 0:i.message)||"N\xe3o foi poss\xedvel consultar o certificado.")}finally{p(!1)}},[t]);(0,k.useEffect)(()=>{Z()}
1,[Z]);let y=async e=>{var n,r,o;try{f(!0);let r=await (0,_.e2)(t,e),o=URL.createObjectURL(r),a=document.createElement("a");a.href=o,a.download="certificado-".concat((null==i?void 0:null===(n=i.certificate)||void 0===n?void 0:n.serialNumber)||"evento",".pdf"),a.click(),URL.revokeObjectURL(o),await Z()}catch(e){b((null==e?void 0:null===(r=e.response)||void 0===r?void 0:null===(o=r.data)||void 0===o?void 0:o.message)||"Erro tempor\xe1rio ao gerar ou baixar o certificado.")}finally{f(!1)}};return u?(0,n.jsx)(h.Z,{}):(null==i?void 0:i.active)===!1?null:(0,n.jsxs)(a.Z,{children:[(0,n.jsxs)(j.Z,{direction:"row",gap:2,alignItems:"flex-start",mb:2,children:[(0,n.jsx)(a.Z,{sx:{width:40,height:40,marginTop:"1px",flexShrink:0,borderRadius:"10px",display:"grid",placeItems:"center",color:"#3949ab",background:"#edf0ff",svg:{fontSize:21}},children:(0,n.jsx)(G.Z,{})}),(0,n.jsxs)(a.Z,{minWidth:0,children:[(0,n.jsx)(s.Z,{component:"h2",variant:"h5",fontWeight:750,lineHeight:1.25,sx:{margin:0},children:"Certificado"}),(0,n.jsx)(s.Z,{color:"text.secondary",fontSize:"0.9rem",lineHeight:1.3,mt:.7,children:"Acompanhe a libera\xe7\xe3o e emita seu certificado de participa\xe7\xe3o."})]})]}),(0,n.jsx)(r.Z,{variant:"outlined",sx:{borderRadius:"14px",borderColor:"#e0e5f1",boxShadow:"0 7px 20px rgba(39, 52, 112, 0.06)"},children:(0,n.jsx)(o.Z,{sx:{padding:"20px !important"},children:(0,n.jsxs)(j.Z,{gap:2,children:[g&&(0,n.jsx)(l.Z,{severity:"warning",children:g}),i&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(j.Z,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},gap:1,children:[(0,n.jsxs)(a.Z,{children:[(0,n.jsx)(s.Z,{fontWeight:700,children:"Situa\xe7\xe3o do certificado"}),(0,n.jsx)(s.Z,{color:"text.secondary",fontSize:"0.88rem",children:"Verifique abaixo os requisitos e dados da emiss\xe3o."})]}),(0,n.jsx)(d.Z,{size:"small",label:J(i.status),color:"ISSUED"===i.status?"success":["BLOCKED","REVOKED"].includes(i.status)?"error":"primary",variant:"ISSUED"===i.status?"filled":"outlined",sx:{fontWeight:700}})]}),(0,n.jsxs)(l.Z,{severity:"info",children:["O certificado ser\xe1 emitido em nome de: ",(0,n.jsx)("strong",{children:i.participantName}),". Se estiver incorreto, solicite a corre\xe7\xe3o cadastral \xe0 equipe respons\xe1vel."]}),(0,n.jsxs)(j.Z,{direction:{xs:"column",sm:"row"},gap:{xs:1,sm:4},children:[(0,n.jsxs)(a.Z,{children:[(0,n.jsx)(s.Z,{color:"text.secondary",fontSize:"0.78rem",children:"Carga hor\xe1ria"}),(0,n.jsxs)(s.Z,{fontWeight:700,children:[i.preview.workloadHours," hora(s)"]})]}),i.releaseAt&&(0,n.jsxs)(a.Z,{children:[(0,n.jsx)(s.Z,{color:"text.secondary",fontSize:"0.78rem",children:"Libera\xe7\xe3o prevista"}),(0,n.jsx)(s.Z,{fontWeight:700,children:new Date(i.releaseAt).toLocaleString("pt-BR")})]})]}),i.pending.length>0&&(0,n.jsx)(l.Z,{severity:"BLOCKED"===i.status?"error":"warning",children:i.pending.map(Q).join(" ")}),(0,n.jsxs)(j.Z,{direction:"row",gap:1,flexWrap:"wrap",children:[!["ISSUED","BLOCKED","REVOKED"].includes(i.status)&&(0,n.jsx)(c.Z,{variant:"contained",disabled:!i.eligible||m,onClick:()=>y(!0),sx:X,children:m?"Emitindo...":"Emitir certificado"}),"ISSUED"===i.status&&(0,n.jsx)(c.Z,{variant:"contained",startIcon:(0,n.jsx)(K.Z,{}),disabled:m,onClick:()=>y(!1),sx:X,children:"Baixar certificado"})]}),i.certificate&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.Z,{}),(0,n.jsxs)(a.Z,{sx:{padding:"12px 14px",borderRadius:"10px",background:"#f4f6fc"},children:[(0,n.jsx)(s.Z,{color:"text.secondary",fontSize:"0.75rem",mb:.5,children:"Dados de valida\xe7\xe3o"}),(0,n.jsxs)(s.Z,{fontSize:"0.84rem",sx:{overflowWrap:"anywhere"},children:["C\xf3digo p\xfablico: ",(0,n.jsx)("strong",{children:i.certificate.publicCode})," \xb7 N\xfamero: ",(0,n.jsx)("strong",{children:i.certificate.serialNumber})," \xb7 Vers\xe3o ",i.certificate.version]})]})]})]})]})})})]})};var ee=i(26447),et=i(394054),ei=i(740476),en=i(291440),er=i(668061),eo=i(250480),ea=i(36872),es=i(353457),ed=i(169368),el=i(192922);let ec={minWidth:{xs:"100%",sm:170},fontWeight:700,"&.MuiButton-contained":{color:"#ffffff !important",backgroundColor:"#3049a5 !important"},"&.MuiButton-outlined":{color:"#243b80 !important",backgroundColor:"#ffffff !important",borderColor:"#3049a5 !important"},"&&.Mui-disabled":{color:"#1f2937 !important",WebkitTextFillColor:"#1f2937",backgroundColor:"#cbd5e1 !important",border:"1px solid #64748b !important",opacity:1}};function ex(e){let{registrationId:t,onSubmitted:i}=e,[d,x]=(0,k.useState)(),[u,p]=(0,k.useState)({}),[m,f]=(0,k.useState)(!0),[g,v]=(0,k.useState)(!1),[j,b]=(0,k.useState)(""),Z=(0,k.useCallback)(async()=>{try{let e=await (0,_.Iw)(t);x(e),p(e.answers||{}),b("")}catch(t){var e,i,n,r;(null==t?void 0:null===(e=t.response)||void 0===e?void 0:null===(i=e.data)||void 0===i?void 0:i.code)!=="DISABLED"&&b((null==t?void 0:null===(n=t.response)||void 0===n?void 0:null===(r=n.data)||void 0===r?void 0:r.message)||"N\xe3o foi poss\xedvel carregar a pesquisa.")}finally{f(!1)}},[t]);if((0,k.useEffect)(()=>{Z()}
1,[Z]),m)return(0,n.jsx)(a.Z,{textAlign:"center",children:(0,n.jsx)(h.Z,{size:24})});if(!d||"DISABLED"===d.availability)return null;let y=()=>Object.entries(u).map(e=>{let[t,i]=e;return{questionId:t,value:i}}),E=async()=>{v(!0);try{let e=await (0,_.NY)(t,y());x(e),b("")}catch(t){var e,i;b((null==t?void 0:null===(e=t.response)||void 0===e?void 0:null===(i=e.data)||void 0===i?void 0:i.message)||"N\xe3o foi poss\xedvel salvar o rascunho.")}finally{v(!1)}},w=async()=>{v(!0);try{let e=await (0,_.DK)(t,y());x(e),b(""),await (null==i?void 0:i())}catch(t){var e,n;b((null==t?void 0:null===(e=t.response)||void 0===e?void 0:null===(n=e.data)||void 0===n?void 0:n.message)||"N\xe3o foi poss\xedvel enviar a pesquisa.")}finally{v(!1)}};return(0,n.jsxs)(a.Z,{children:[(0,n.jsxs)(ee.Z,{direction:"row",gap:2,alignItems:"flex-start",mb:2,children:[(0,n.jsx)(a.Z,{sx:{width:40,height:40,marginTop:"1px",flexShrink:0,borderRadius:"10px",display:"grid",placeItems:"center",color:"#3949ab",background:"#edf0ff",svg:{fontSize:21}},children:(0,n.jsx)(el.Z,{})}),(0,n.jsxs)(a.Z,{minWidth:0,children:[(0,n.jsx)(s.Z,{component:"h2",variant:"h5",fontWeight:750,lineHeight:1.25,sx:{margin:0},children:d.title||"Pesquisa de satisfa\xe7\xe3o"}),(0,n.jsx)(s.Z,{color:"text.secondary",fontSize:"0.9rem",lineHeight:1.3,mt:.7,sx:{marginLeft:0,textAlign:"left"},children:d.introduction||"Conte como foi sua experi\xeancia neste evento."})]})]}),(0,n.jsx)(r.Z,{variant:"outlined",sx:{borderRadius:"14px"},children:(0,n.jsx)(o.Z,{sx:{padding:"20px !important"},children:(0,n.jsxs)(ee.Z,{gap:2.5,children:[j&&(0,n.jsx)(l.Z,{severity:"error",children:j}),"SUBMITTED"===d.status?(0,n.jsx)(l.Z,{severity:"success",children:"Obrigado! Sua avalia\xe7\xe3o foi enviada."}):"NOT_AVAILABLE"===d.availability?(0,n.jsxs)(l.Z,{severity:"info",children:["A pesquisa ser\xe1 liberada ap\xf3s o encerramento do evento",d.releaseAt?" em ".concat(z()(d.releaseAt).format("DD/MM/YYYY [\xe0s] HH:mm")):"","."]}):"CLOSED"===d.availability?(0,n.jsx)(l.Z,{severity:"info",children:"O per\xedodo desta pesquisa foi encerrado."}):(0,n.jsxs)(n.Fragment,{children:["IN_PROGRESS"===d.status&&(0,n.jsx)(l.Z,{severity:"info",children:"Seu rascunho foi recuperado. Continue de onde parou."}),(d.questions||[]).map(e=>(0,n.jsxs)(et.Z,{required:e.required,children:[(0,n.jsx)(ei.Z,{sx:{fontWeight:700,color:"text.primary",mb:1},children:e.text}),"RATING"===e.type&&(0,n.jsx)(en.Z,{value:Number(u[e.id]||0),onChange:(t,i)=>p({...u,[e.id]:i||0})}),"SINGLE_CHOICE"===e.type&&(0,n.jsx)(er.Z,{value:String(u[e.id]||""),onChange:t=>p({...u,[e.id]:t.target.value}),children:e.options.map(e=>(0,n.jsx)(eo.Z,{value:e,control:(0,n.jsx)(ea.Z,{}),label:e},e))}),"MULTIPLE_CHOICE"===e.type&&(0,n.jsx)(es.Z,{children:e.options.map(t=>{let i=Array.isArray(u[e.id])?u[e.id]:[];return(0,n.jsx)(eo.Z,{control:(0,n.jsx)(ed.Z,{checked:i.includes(t),onChange:(n,r)=>p({...u,[e.id]:r?[...i,t]:i.filter(e=>e!==t)})}),label:t},t)})}),"TEXT"===e.type&&(0,n.jsx)(H.Z,{multiline:!0,minRows:4,value:String(u[e.id]||""),inputProps:{maxLength:2e3},helperText:"".concat(String(u[e.id]||"").length,"/2000"),onChange:t=>p({...u,[e.id]:t.target.value})})]},e.id)),(0,n.jsxs)(ee.Z,{direction:{xs:"column",sm:"row"},gap:1,children:[(0,n.jsx)(c.Z,{sx:ec,variant:"outlined",disabled:g,onClick:E,children:"Salvar rascunho"}),(0,n.jsx)(c.Z,{sx:ec,variant:"contained",disabled:g,onClick:w,children:g?"Salvando...":"Enviar avalia\xe7\xe3o"})]})]})]})})})]})}let eu="#3949ab",ep=e=>{if(!e)return null;try{let t=new URL(e);if("https:"!==t.protocol)return null;if(["youtube.com","www.youtube.com","youtu.be"].includes(t.hostname)){let e="youtu.be"===t.hostname?t.pathname.slice(1):t.searchParams.get("v")||t.pathname.split("/").filter(Boolean).pop();return e?"https://www.youtube.com/embed/".concat(encodeURIComponent(e)):null}if(["vimeo.com","www.vimeo.com","player.vimeo.com"].includes(t.hostname)){let e=t.pathname.split("/").filter(Boolean).pop();return e?"https://player.vimeo.com/video/".concat(encodeURIComponent(e)):null}}catch(e){}return null},em=(e,t)=>"NOT_AVAILABLE"===e?"Dispon\xedvel em ".concat(t?z()(t).format("DD/MM/YYYY [\xe0s] HH:mm"):"breve"):"EXPIRED"===e?"Per\xedodo de acesso encerrado":"Conte\xfado desativado",ef=e=>({TEXT:"Leitura",VIDEO:"V\xeddeo",LIVE_STREAM:"Transmiss\xe3o",RECORDING:"Grava\xe7\xe3o",FILE:"Material",EXTERNAL_LINK:"Link externo",ANNOUNCEMENT:"Comunicado"})[e],eh=e=>["VIDEO","RECORDING","LIVE_STREAM"].includes(e)?(0,n.jsx)(C.Z,{}):"FILE"===e?(0,n.jsx)(N.Z,{}):"EXTERNAL_LINK"===e?(0,n.jsx)(R.Z,{}):"ANNOUNCEMENT"===e?(0,n.jsx)(T.Z,{}):(0,n.jsx)(I.Z,{}),eg=e=>{var t,i,x;let{item:u,registrationId:p,reload:m,onExpand:f}=e,[h,g]=(0,k.useState)(!1),[v,b]=(0,k.useState)(""),Z="COMPLETED"===u.progress.status,E=async function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if("AVAILABLE"===u.status){g(!0),b("");try{await (0,_.VD)(p,u.id),e&&f(u),await m()}catch(e){b("N\xe3o foi poss\xedvel abrir este conte\xfado agora. Tente novamente.")}finally{g(!1)}}},w=async()=>{g(!0),b("");try{await (0,_.JB)(p,u.id),await m()}catch(e){b("N\xe3o foi poss\xedvel marcar este conte\xfado como conclu\xeddo.")}finally{g(!1)}},S=async()=>{var e;await E(!1),(null===(e=u.config)||void 0===e?void 0:e.url)&&window.open(u.config.url,"_blank","noopener,noreferrer")},I=async()=>{g(!0),b("");try{var e;await (0,_.tE)(p,u.id,null===(e=u.config)||void 0===e?void 0:e.fileName),await m()}catch(e){b("N\xe3o foi poss\xedvel baixar o arquivo. Verifique sua conex\xe3o e tente novamente.")}finally{g(!1)}};return(0,n.jsx)(r.Z,{variant:"outlined",sx:{borderColor:Z?"#68b487":"#e1e5f0",borderRadius:"14px",boxShadow:Z?"0 7px 20px rgba(35, 122, 73, 0.08)":"0 7px 20px rgba(39, 52, 112, 0.06)",transition:"transform 180ms ease, box-shadow 180ms ease","&:hover":{transform:"translateY(-2px)",boxShadow:"0 12px 28px rgba(39, 52, 112, 0.12)"}},children:(0,n.jsx)(o.Z,{sx:{padding:"18px !important"},children:(0,n.jsxs)(j.Z,{gap:1.75,children:[(0,n.jsxs)(j.Z,{direction:"row",justifyContent:"space-between",alignItems:"flex-start",ga
1p:1.5,children:[(0,n.jsxs)(j.Z,{direction:"row",gap:2,alignItems:"flex-start",minWidth:0,children:[(0,n.jsx)(a.Z,{sx:{width:40,height:40,borderRadius:"10px",flexShrink:0,display:"grid",placeItems:"center",color:eu,background:"#edf0ff",svg:{fontSize:21},marginTop:"1px"},children:eh(u.type)}),(0,n.jsxs)(a.Z,{minWidth:0,children:[(0,n.jsx)(s.Z,{fontSize:"0.72rem",lineHeight:1.25,color:"text.secondary",fontWeight:700,textTransform:"uppercase",children:ef(u.type)}),(0,n.jsx)(s.Z,{component:"h3",fontSize:"1rem",fontWeight:700,lineHeight:1.3,mt:.7,children:u.title})]})]}),Z&&(0,n.jsx)(d.Z,{size:"small",color:"success",icon:(0,n.jsx)(y.Z,{}),label:"Conclu\xeddo",sx:{fontWeight:700,flexShrink:0}})]}),u.required&&!Z&&(0,n.jsx)(d.Z,{size:"small",label:"Conte\xfado obrigat\xf3rio",sx:{alignSelf:"flex-start",marginLeft:"56px",fontWeight:600}}),u.description&&(0,n.jsx)(s.Z,{color:"text.secondary",fontSize:"0.9rem",children:u.description}),v&&(0,n.jsx)(l.Z,{severity:"error",children:v}),"AVAILABLE"!==u.status?(0,n.jsx)(l.Z,{severity:"info",children:em(u.status,u.availableFrom)}):(0,n.jsxs)(n.Fragment,{children:["FILE"!==u.type&&(0,n.jsx)(c.Z,{variant:"contained",disabled:h,onClick:["EXTERNAL_LINK"].includes(u.type)?S:()=>E(),sx:{marginTop:"10px",marginLeft:"56px",alignSelf:"flex-start",borderRadius:"9px",textTransform:"none"},children:"TEXT"===u.type||"ANNOUNCEMENT"===u.type?"Abrir conte\xfado":(null===(t=u.config)||void 0===t?void 0:t.buttonText)||"Acessar"}),"FILE"===u.type&&(0,n.jsxs)(c.Z,{variant:"contained",disabled:h||(null===(i=u.config)||void 0===i?void 0:i.downloadAllowed)===!1,onClick:I,sx:{marginTop:"10px",marginLeft:"56px",alignSelf:"flex-start",borderRadius:"9px",textTransform:"none"},children:["Baixar ",(null===(x=u.config)||void 0===x?void 0:x.fileName)||"material"]}),"MANUAL"===u.completionMode&&"COMPLETED"!==u.progress.status&&(0,n.jsx)(c.Z,{variant:"outlined",disabled:h,onClick:w,sx:{marginTop:"10px",marginLeft:"56px",alignSelf:"flex-start",textTransform:"none"},children:"Marcar como conclu\xeddo"})]})]})})})},ev=e=>{var t,i,r,o,d;let{item:u,onClose:p}=e,m=ep(null===(t=u.config)||void 0===t?void 0:t.url);return(0,n.jsxs)(a.Z,{sx:{marginTop:2,padding:{xs:2,md:2.5},borderTop:"1px solid #dfe4f2",background:"#f4f6fc",borderRadius:"0 0 12px 12px"},children:[(0,n.jsxs)(j.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",gap:2,mb:2,children:[(0,n.jsxs)(a.Z,{children:[(0,n.jsx)(s.Z,{color:eu,fontSize:"0.72rem",fontWeight:700,textTransform:"uppercase",children:ef(u.type)}),(0,n.jsx)(s.Z,{variant:"h6",fontWeight:700,children:u.title})]}),(0,n.jsx)(c.Z,{onClick:p,startIcon:(0,n.jsx)(A.Z,{}),sx:{textTransform:"none",flexShrink:0},children:"Fechar"})]}),(0,n.jsxs)(j.Z,{gap:2,children:[["TEXT","ANNOUNCEMENT"].includes(u.type)&&(0,n.jsx)(a.Z,{sx:{"& a":{color:"primary.main"}},dangerouslySetInnerHTML:{__html:(null===(i=u.config)||void 0===i?void 0:i.content)||""}}),["VIDEO","RECORDING","LIVE_STREAM"].includes(u.type)&&m&&(0,n.jsx)(a.Z,{sx:{position:"relative",width:"100%",maxWidth:"1180px",aspectRatio:"16 / 9",minHeight:{xs:"220px",sm:"360px",md:"480px"},margin:"0 auto",overflow:"hidden",borderRadius:{xs:"10px",md:"16px"},background:"#000",boxShadow:"0 16px 36px rgba(21, 29, 65, 0.18)"},children:(0,n.jsx)(a.Z,{component:"iframe",src:m,title:u.title,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin",sandbox:"allow-scripts allow-same-origin allow-presentation",sx:{position:"absolute",inset:0,width:"100%",height:"100%",border:0}})}),["VIDEO","RECORDING","LIVE_STREAM"].includes(u.type)&&!m&&(null===(r=u.config)||void 0===r?void 0:r.url)&&(0,n.jsx)(c.Z,{component:x.Z,href:u.config.url,target:"_blank",rel:"noopener noreferrer",sx:{alignSelf:"flex-start"},children:"Abrir em nova aba"}),(null===(o=u.config)||void 0===o?void 0:o.instructions)&&(0,n.jsx)(a.Z,{dangerouslySetInnerHTML:{__html:u.config.instructions}}),(null===(d=u.config)||void 0===d?void 0:d.accessCode)&&(0,n.jsxs)(l.Z,{severity:"warning",children:["C\xf3digo de acesso: ",u.config.accessCode]})]})]})},ej=e=>{let{module:t,registrationId:i,reload:r}=e,[o,l]=(0,k.useState)();return(0,n.jsxs)(u.Z,{defaultExpanded:t.featured||"AVAILABLE"===t.status,disableGutters:!0,elevation:0,sx:{border:"1px solid #e0e5f1",borderRadius:"14px !important",overflow:"hidden","&:before":{display:"none"}},children:[(0,n.jsx)(p.Z,{expandIcon:(0,n.jsx)(b.Z,{}),sx:{padding:"4px 20px",minHeight:68,"&.Mui-expanded":{minHeight:68}},children:(0,n.jsxs)(j.Z,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},gap:1,width:"100%",pr:1,children:[(0,n.jsxs)(a.Z,{children:[(0,n.jsx)(s.Z,{variant:"h6",fontWeight:700,children:t.title}),(0,n.jsxs)(s.Z,{color:"text.secondary",fontSize:"0.82rem",children:[t.items.length," ",1===t.items.length?"conte\xfado":"conte\xfados"]})]}),"AVAILABLE"!==t.status&&(0,n.jsx)(d.Z,{size:"small",label:em(t.status,t.availableFrom)})]})}),(0,n.jsx)(m.Z,{sx:{padding:"12px 20px 20px",background:"#fbfcff"},children:(0,n.jsxs)(j.Z,{gap:2.5,children:[t.description&&(0,n.jsx)(s.Z,{color:"text.secondary",children:t.description}),(0,n.jsx)(f.ZP,{container:!0,spacing:2,alignItems:"flex-start",children:t.items.map(e=>(0,n.jsx)(f.ZP,{item:!0,xs:12,md:6,children:(0,n.jsx)(eg,{item:e,registrationId:i,reload:r,onExpand:l})},e.id))}),o&&(0,n.jsx)(ev,{item:o,onClose:()=>l(void 0)})]})})]})};var eb=()=>{var e,t;let i=(0,D.useRouter)(),{dataUser:x}=(0,M.aC)(),[u,p]=(0,k.useState)(),[m,b]=(0,k.useState)(),[y,C]=(0,k.useState)(!0),[N,T]=(0,k.useState)(0),R=Array.isArray(i.query.registrationId)?void 0:i.query.registrationId,A=(0,k.useCallback)(async()=>
1{if(i.isReady&&(null==x?void 0:x.id)&&R)try{p(await (0,_.zo)(R)),b(void 0)}catch(i){var e,t;b((null==i?void 0:null===(e=i.response)||void 0===e?void 0:null===(t=e.data)||void 0===t?void 0:t.code)||"TEMPORARY")}finally{C(!1)}},[null==x?void 0:x.id,R,i.isReady]);if((0,k.useEffect)(()=>{(null==x?void 0:x.id)||!i.isReady||i.replace("/login?returnUrl=".concat(i.asPath))},[null==x?void 0:x.id,i]),(0,k.useEffect)(()=>{A()},[A]),(0,k.useEffect)(()=>{let e=()=>{"visible"===document.visibilityState&&A()},t=window.setInterval(e,45e3);return document.addEventListener("visibilitychange",e),()=>{clearInterval(t),document.removeEventListener("visibilitychange",e)}},[A]),(0,k.useEffect)(()=>{if(!(null==u?void 0:u.nextReleaseAt)||!u.serverNow)return;let e=new Date(u.nextReleaseAt).getTime(),t=new Date(u.serverNow).getTime();if(!Number.isFinite(e)||!Number.isFinite(t))return;let i=window.setTimeout(()=>void A(),Math.max(250,e-t+1e3));return()=>window.clearTimeout(i)},[null==u?void 0:u.nextReleaseAt,null==u?void 0:u.serverNow,A]),y)return(0,n.jsx)(j.Z,{height:"60vh",alignItems:"center",justifyContent:"center",children:(0,n.jsx)(h.Z,{})});if(m)return(0,n.jsx)(W.N,{children:(0,n.jsx)(l.Z,{severity:"warning",children:"PAYMENT_PENDING"===m?"O pagamento desta inscri\xe7\xe3o ainda est\xe1 pendente.":"BLOCKED"===m?"O acesso a este evento est\xe1 bloqueado.":"CANCELLED"===m||"REFUNDED"===m?"Esta inscri\xe7\xe3o n\xe3o possui acesso ao conte\xfado.":"N\xe3o foi poss\xedvel carregar o evento agora."})});if(!u||!R)return null;let O=u.modules.filter(e=>"DISABLED"!==e.status).map(e=>({...e,items:e.items.filter(e=>"DISABLED"!==e.status)})).filter(e=>e.items.length>0),H=!!(null===(e=u.programation)||void 0===e?void 0:null===(t=e.items)||void 0===t?void 0:t.length);return(0,n.jsx)(W.N,{bg:{background:"#f4f6fc"},wrapperSx:{padding:{xs:"1rem",md:"2rem"}},children:(0,n.jsxs)(j.Z,{gap:{xs:3.5,md:5},width:"100%",children:[(0,n.jsx)(r.Z,{elevation:0,sx:{order:0,border:"1px solid #e0e5f1",borderRadius:"20px",overflow:"hidden",boxShadow:"0 12px 34px rgba(39, 52, 112, 0.1)"},children:(0,n.jsxs)(j.Z,{direction:{xs:"column",md:"row"},children:[(0,n.jsx)(a.Z,{sx:{width:{xs:"100%",md:285},minHeight:{xs:155,md:205},flexShrink:0,display:"grid",placeItems:"center",overflow:"hidden",color:eu,background:"linear-gradient(135deg, #e8ecff 0%, #d9e2ff 100%)"},children:u.event.image?(0,n.jsx)(a.Z,{component:"img",src:u.event.image,alt:"Imagem do evento ".concat(u.event.title),sx:{width:"100%",height:"100%",minHeight:"inherit",objectFit:"cover"}}):(0,n.jsx)(E.Z,{sx:{fontSize:62,opacity:.65}})}),(0,n.jsxs)(j.Z,{padding:{xs:2,md:2.5},gap:1.75,flex:1,minWidth:0,children:[(0,n.jsxs)(a.Z,{children:[(0,n.jsx)(s.Z,{color:eu,fontWeight:700,fontSize:"0.78rem",textTransform:"uppercase",letterSpacing:"0.08em",children:"Ambiente do participante"}),(0,n.jsx)(s.Z,{component:"h1",fontSize:{xs:"1.35rem",md:"1.65rem"},fontWeight:750,lineHeight:1.2,mt:.35,children:u.event.title})]}),(0,n.jsxs)(j.Z,{direction:"row",gap:1,flexWrap:"wrap",children:[(0,n.jsx)(d.Z,{size:"small",icon:(0,n.jsx)(S.Z,{}),label:u.event.modality,variant:"outlined"}),u.event.localization&&(0,n.jsx)(d.Z,{size:"small",icon:(0,n.jsx)(w.Z,{}),label:u.event.localization,variant:"outlined"})]}),(0,n.jsxs)(j.Z,{direction:"row",gap:1,alignItems:"center",children:[(0,n.jsx)(E.Z,{sx:{color:eu}}),(0,n.jsxs)(s.Z,{fontSize:"0.95rem",children:[z()(u.event.dateInit).format("DD/MM/YYYY [\xe0s] HH:mm")," at\xe9 ",z()(u.event.dateFinish).format("DD/MM/YYYY [\xe0s] HH:mm")]})]}),u.progress.requiredItems>0&&(0,n.jsxs)(a.Z,{sx:{marginTop:.25,background:"#f3f5ff",borderRadius:"10px",padding:"12px 14px"},children:[(0,n.jsxs)(j.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",mb:.75,children:[(0,n.jsx)(s.Z,{fontSize:"0.9rem",fontWeight:700,children:"Seu progresso"}),(0,n.jsxs)(s.Z,{color:eu,fontWeight:800,children:[u.progress.percentage,"%"]})]}),(0,n.jsx)(g.Z,{variant:"determinate",value:u.progress.percentage,sx:{height:8,borderRadius:999,backgroundColor:"#dfe4f5"}}),(0,n.jsxs)(s.Z,{variant:"caption",color:"text.secondary",children:[u.progress.completedItems," de ",u.progress.requiredItems," conte\xfados obrigat\xf3rios conclu\xeddos"]})]}),(0,n.jsx)(c.Z,{onClick:A,startIcon:(0,n.jsx)(Z.Z,{}),variant:"text",sx:{marginTop:.25,alignSelf:"flex-start",textTransform:"none",paddingLeft:0},children:"Atualizar informa\xe7\xf5es"})]})]})}),O.length>0&&(0,n.jsxs)(a.Z,{sx:{order:2},children:[(0,n.jsxs)(j.Z,{direction:"row",gap:2,alignItems:"flex-start",mb:2,children:[(0,n.jsx)(a.Z,{sx:{width:40,height:40,marginTop:"1px",flexShrink:0,borderRadius:"10px",display:"grid",placeItems:"center",color:eu,background:"#edf0ff",svg:{fontSize:21}},children:(0,n.jsx)(I.Z,{})}),(0,n.jsxs)(a.Z,{minWidth:0,children:[(0,n.jsx)(s.Z,{component:"h2",variant:"h5",fontWeight:750,lineHeight:1.25,sx:{margin:0},children:"Conte\xfado do evento"}),(0,n.jsx)(s.Z,{color:"text.secondary",fontSize:"0.9rem",lineHeight:1.3,mt:.7,sx:{marginLeft:0,textAlign:"left"},children:"Acompanhe os m\xf3dulos e conclua as atividades dispon\xedveis."})]})]}),(0,n.jsx)(j.Z,{gap:2,children:O.map(e=>(0,n.jsx)(ej,{module:e,registrationId:R,reload:A},e.id))})]}),H&&(0,n.jsxs)(a.Z,{sx:{order:1},children:[(0,n.jsxs)(j.Z,{direction:"row",gap:2,alignItems:"flex-start",mb:2,children:[(0,n.jsx)(a.Z,{sx:{width:40,height:40,marginTop:"1px",flexShrink:0,borderRadius:"10px",display:"grid",placeItems:"center",color:eu,background:"#edf0ff",svg:{fontSize:21}},children:(0,n.jsx)(L.Z,{})}),(0,n.jsxs)(a.Z,{minWidth:0,children:[(0,n.jsx)(s.Z,{component:"h2",variant:"h5",fontWeight:750,lineHeight:1.25,sx:{margin:0},children:"Programa\xe7\xe3o"}),(0,n.jsx)(s.Z,{color:"text.secondary",fontSize:"0.9rem",lineHeight:1.3,mt:.7,sx:{marginLeft:0,textAlign:"left"},children:"Confira os hor\xe1rios e atividades do evento."})]})]}),(0,n.jsx)(f.ZP,{container:!0,spacing:2,children:u.programation.items.map((e,t)=>{var i;return(0,n.jsx)(f.ZP,{item:!0,xs:12,md:6,children:(0,n.jsx)(r.Z,{variant:"outlined",sx:{borderRadius:"14px",borderColor:"#e0e5f1",height:"100%"},children:(0,n.jsxs)(o.Z,{sx:{padding:"20px !important"},children:[(0,n.jsx)(s.Z,{variant:"h6",color:eu,fontWeight:750,mb:1.5,children:e.label||e.tag}),(0,n.jsx)(j.Z,{divider:(0,n.jsx)(v.Z,{flexItem:!0}),children:null===(i=e.content)||void 0===i?void 0:i.map((e,t)=>(0,n.jsxs)(j.Z,{direction:"row",gap:1.5,py:1.25,children:[(0,n.jsx)(s.Z,{minWidth:54,color:eu,fontWeight:750,children:e.time||"—"}),(0,n.jsxs)(a.Z,{children:[(0,n.jsx)(s.Z,{fontWeight:700,children:e.title}),(e.speaker||e.location||e.description)&&(0,n.jsx)(s.Z,{color:"text.secondary",fontSize:"0.88rem",children:e.speaker||e.location||e.description})]})]},t))})]})})},t)})})]}),(0,n.jsxs)(j.Z,{sx:{order:3},gap:{xs:3.5,md:5},children:[(0,n.jsx)(F,{registrationId:R}),(0,n.jsx)(ex,{registrationId:R,onSubmitted:async()=>{await A(),T(e=>e+1)}}),(0,n.jsx)($,{registrationId:R},"".concat(R,"-").concat(N))]})]})})}},849170:function(e,t,i){"use strict";i.d(t,{BS:function(){return u},DK:function(){return v},Iw:function(){return h},JB:function(){return c},Kq:function(){return s},NY:function(){return g},VD:function(){return l},e2:function(){return f},tE:function(){return x},vY:function(){return p},x4:function(){return m},zo:function(){return d}});var n=i(508433),r=i(743755);let o=n.Z.create({baseURL:"https://uniftec-website.uniftec.com.br/loja-api"}),a=()=>({Authorization:(0,r.N)()||""}),s=async()=>(await o.get("/event-registrations/me",{headers:a()})).data.registrations,d=async e=>(await o.get("/event-registrations/".concat(encodeURIComponent(e),"/content"),{headers:a()})).data,l=async(e,t)=>(await o.post("/event-registrations/".concat(encodeURIComponent(e),"/content/").concat(encodeURIComponent(t),"/access"),{},{headers:a()})).data,c=async(e,t)=>(await o.post("/event-registrations/".concat(encodeURIComponent(e),"/content/").concat(encodeURIComponent(t),"/complete"),{},{headers:a()})).data,x=async(e,t,i)=>{let n=await o.get("/event-registrations/".concat(encodeURIComponent(e),"/content/").concat(encodeURIComponent(t),"/download"),{headers:a(),responseType:"blob"}),r=URL.createObjectURL(n.data),s=document.createElement("a");s.href=r,s.download=i||"material",s.click(),URL.revokeObjectURL(r)},u=async e=>(await o.get("/event-registrations/".concat(encodeURIComponent(e),"/attendance"),{headers:a()})).data,p=async(e,t)=>(await o.post("/event-registrations/".concat(encodeURIComponent(e),"/attendance/check-in"),t,{headers:a()})).data,m=async e=>(await o.get("/event-registrations/".concat(encodeURIComponent(e),"/certificate"),{headers:{...a(),"Cache-Control":"no-cache"},params:{_refresh:Date.now()}}
1)).data,f=async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(await o.request({url:"/event-registrations/".concat(encodeURIComponent(e),"/certificate/").concat(t?"issue":"download"),method:t?"POST":"GET",headers:a(),responseType:"blob"})).data},h=async e=>(await o.get("/event-registrations/".concat(encodeURIComponent(e),"/survey"),{headers:a()})).data,g=async(e,t)=>(await o.put("/event-registrations/".concat(encodeURIComponent(e),"/survey"),{answers:t},{headers:a()})).data,v=async(e,t)=>(await o.post("/event-registrations/".concat(encodeURIComponent(e),"/survey/submit"),{answers:t},{headers:a()})).data}},function(e){e.O(0,[4885,3354,7918,1440,9261,5014,9774,2888,179],function(){return e(e.s=304208)}),_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.