1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9848],{746901:function(e,t,r){"use strict";r.d(t,{Z:function(){return I}});var n=r(263366),o=r(487462),i=r(667294),a=r(386010),l=r(458510),s=r(441796),d=r(690948),c=r(471657),u=r(998216),p=r(690629),h=r(301977),x=r(108027);function m(e){return(0,x.ZP)("MuiAlert",e)}let f=(0,h.Z)("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);var v=r(493946),Z=r(82066),g=r(785893),j=(0,Z.Z)((0,g.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),C=(0,Z.Z)((0,g.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),A=(0,Z.Z)((0,g.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),M=(0,Z.Z)((0,g.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),w=r(434484);let S=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],N=e=>{let{variant:t,color:r,severity:n,classes:o}=e,i={root:["root",`${t}${(0,u.Z)(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return(0,l.Z)(i,m,o)},b=(0,d.ZP)(p.Z,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${(0,u.Z)(r.color||r.severity)}`]]}})(({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?s._j:s.$n,n="light"===e.palette.mode?s.$n:s._j,i=t.color||t.severity;return(0,o.Z)({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},i&&"standard"===t.variant&&{color:e.vars?e.vars.palette.Alert[`${i}Color`]:r(e.palette[i].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${i}StandardBg`]:n(e.palette[i].light,.9),[`& .${f.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}},i&&"outlined"===t.variant&&{color:e.vars?e.vars.palette.Alert[`${i}Color`]:r(e.palette[i].light,.6),border:`1px solid ${(e.vars||e).palette[i].light}`,[`& .${f.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}},i&&"filled"===t.variant&&(0,o.Z)({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${i}FilledColor`],backgroundColor:e.vars.palette.Alert[`${i}FilledBg`]}:{backgroundColor:"dark"===e.palette.mode?e.palette[i].dark:e.palette[i].main,color:e.palette.getContrastText(e.palette[i].main)}))}),L=(0,d.ZP)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),E=(0,d.ZP)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),R=(0,d.ZP)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),y={success:(0,g.jsx)(j,{fontSize:"inherit"}),warning:(0,g.jsx)(C,{fontSize:"inherit"}),error:(0,g.jsx)(A,{fontSize:"inherit"}),info:(0,g.jsx)(M,{fontSize:"inherit"})},z=i.forwardRef(function(e,t){var r,i,l,s,d,u;let p=(0,c.Z)({props:e,name:"MuiAlert"}),{action:h,children:x,className:m,closeText:f="Close",color:Z,components:j={},componentsProps:C={},icon:A,iconMapping:M=y,onClose:z,role:I="alert",severity:P="success",slotProps:$={},slots:_={},variant:B="standard"}=p,k=(0,n.Z)(p,S),H=(0,o.Z)({},p,{color:Z,severity:P,variant:B}),O=N(H),V=null!=(r=null!=(i=_.closeButton)?i:j.CloseButton)?r:v.Z,D=null!=(l=null!=(s=_.closeIcon)?s:j.CloseIcon)?l:w.Z,W=null!=(d=$.closeButton)?d:C.closeButton,T=null!=(u=$.closeIcon)?u:C.closeIcon;return(0,g.jsxs)(b,(0,o.Z)({role:I,elevation:0,ownerState:H,className:(0,a.Z)(O.root,m),ref:t},k,{children:[!1!==A?(0,g.jsx)(L,{ownerState:H,className:O.icon,children:A||M[P]||y[P]}):null,(0,g.jsx)(E,{ownerState:H,className:O.message,children:x}),null!=h?(0,g.jsx)(R,{ownerState:H,className:O.action,children:h}):null,null==h&&z?(0,g.jsx)(R,{ownerState:H,className:O.action,children:(0,g.jsx)(V,(0,o.Z)({size:"small","aria-label":f,title:f,color:"inherit",onClick:z},W,{children:(0,g.jsx)(D,(0,o.Z)({fontSize:"small"},T))}))}):null]}))});var I=z},111024:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=r(487462),o=r(263366),i=r(667294),a=r(386010),l=r(458510),s=r(690948),d=r(471657),c=r(690629),u=r(301977),p=r(108027);function h(e){return(0,p.ZP)("MuiCard",e)}(0,u.Z)("MuiCard",["root"]);var x=r(785893);let m=["className","raised"],f=e=>{let{classes:t}=e;return(0,l.Z)({root:["root"]},h,t)},v=(0,s.ZP)(c.Z,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Z=i.forwardRef(function(e,t){let r=(0,d.Z)({props:e,name:"MuiCard"}),{className:i,raised:l=!1}=r,s=(0,o.Z)(r,m),c=(0,n.Z)({},r,{raised:l}),u=f(c);return(0,x.jsx)(v,(0,n.Z)({className:(0,a.Z)(u.root,i),elevation:l?8:void 0,ref:t,ownerState:c},s))});var g=Z},744267:function(e,t,r){"use strict";r.d(t,{Z:function(){return Z}});var n=r(487462),o=r(263366),i=r(667294),a=r(386010),l=r(458510),s=r(690948),d=r(471657),c=r(301977),u=r(108027);function p(e){return(0,u.ZP)("MuiCardContent",e)}(0,c.Z)("MuiCardContent",["root"]);var h=r(785893);let x=["className","component"],m=e=>{let{classes:t}=e;return(0,l.Z)({root:["root"]},p,t)},f=(0,s.ZP)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),v=i.forwardRef(function(e,t){let r=(0,d.Z)({props:e,name:"MuiCardContent"}),{className:i,component:l="div"}=r,s=(0,o.Z)(r,x),c=(0,n.Z)({},r,{component:l}),u=m(c);return(0,h.jsx)(f,(0,n.Z)({as:l,className:(0,a.Z)(u.root,i),ownerState:c,ref:t},s))});var Z=v},434484:function(e,t,r){"use strict";r(667294);var n=r(82066),o=r(785893);t.Z=(0,n.Z)((0,o.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},364046:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/certificados/validar/[publicCode]",function(){return r(280584)}])},345945:function(e,t,r){"use strict";
1var n=r(785893),o=r(618377),i=r(611258);t.Z=e=>{let{title:t,subtitle:r,sx:a,children:l,className:s,id:d}=e;return(0,n.jsxs)(i.T,{sx:a,className:s,id:d,children:[(r||t)&&(0,n.jsxs)(o.Z,{className:"header",children:[r&&(0,n.jsx)("span",{children:r}),t&&(0,n.jsx)("h2",{children:t})]}),l]})}},406510:function(e,t,r){"use strict";var n=r(785893),o=r(618377),i=r(345945),a=r(611258);t.Z=e=>{let{title:t,subtitle:r,sx:l,wrapperSx:s,children:d,bg:c,className:u,id:p}=e;return(0,n.jsx)(o.Z,{sx:{scrollMarginBlockStart:"140px",...c},className:u,id:p,children:(0,n.jsx)(a.Y,{wrapperSx:s,children:(0,n.jsx)(i.Z,{title:t,subtitle:r,sx:l,children:d})})})}},243361:function(e,t,r){"use strict";r.d(t,{H:function(){return n.Z},N:function(){return o.Z}});var n=r(345945),o=r(406510)},611258:function(e,t,r){"use strict";r.d(t,{T:function(){return a},Y:function(){return i}});var n=r(919838),o=r(150066);let i=(0,o.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,o.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}})},280584:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return m}});var n=r(785893),o=r(598456),i=r(111024),a=r(744267),l=r(26447),s=r(415861),d=r(746901),c=r(508433),u=r(811163),p=r(667294),h=r(243361);let x=e=>({REVOKED:"Este certificado foi revogado e n\xe3o possui mais validade.",BLOCKED:"Este certificado est\xe1 bloqueado para revis\xe3o.",NOT_FOUND:"Certificado n\xe3o encontrado.",UNAVAILABLE:"Valida\xe7\xe3o temporariamente indispon\xedvel.",VALID:""})[e];function m(){let e=(0,u.useRouter)(),[t,r]=(0,p.useState)();return(0,p.useEffect)(()=>{let t=Array.isArray(e.query.publicCode)?null:e.query.publicCode;t&&c.Z.get("".concat("https://uniftec-website.uniftec.com.br/loja-api","/certificates/validate/").concat(encodeURIComponent(t))).then(e=>r(e.data)).catch(e=>{var t,n;return r({state:(null===(t=e.response)||void 0===t?void 0:null===(n=t.data)||void 0===n?void 0:n.state)||"UNAVAILABLE"})})},[e.query.publicCode]),(0,n.jsx)(h.N,{wrapperSx:{padding:"3rem"},children:t?(0,n.jsx)(i.Z,{children:(0,n.jsx)(a.Z,{children:(0,n.jsxs)(l.Z,{gap:2,children:[(0,n.jsx)(s.Z,{variant:"h4",children:"Valida\xe7\xe3o de certificado"}),"VALID"!==t.state?(0,n.jsx)(d.Z,{severity:"REVOKED"===t.state?"error":"warning",children:x(t.state)}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.Z,{severity:"success",children:"Certificado v\xe1lido."}),(0,n.jsxs)(s.Z,{children:[(0,n.jsx)("strong",{children:"Participante:"})," ",t.participantName]}),(0,n.jsxs)(s.Z,{children:[(0,n.jsx)("strong",{children:"Evento:"})," ",t.eventName]}),(0,n.jsxs)(s.Z,{children:[(0,n.jsx)("strong",{children:"Per\xedodo:"})," ",(t.period||[]).map(e=>new Date(e).toLocaleDateString("pt-BR")).join(" a ")]}),(0,n.jsxs)(s.Z,{children:[(0,n.jsx)("strong",{children:"Carga hor\xe1ria:"})," ",t.workloadHours," hora(s)"]}),(0,n.jsxs)(s.Z,{children:[(0,n.jsx)("strong",{children:"Modalidade:"})," ",t.modality]}),(0,n.jsxs)(s.Z,{children:[(0,n.jsx)("strong",{children:"Institui\xe7\xe3o:"})," ",t.institution]}),(0,n.jsxs)(s.Z,{children:[(0,n.jsx)("strong",{children:"Emiss\xe3o:"})," ",t.issuedAt&&new Date(t.issuedAt).toLocaleDateString("pt-BR")]}),(0,n.jsxs)(s.Z,{children:[(0,n.jsx)("strong",{children:"N\xfamero:"})," ",t.serialNumber]})]})]})})}):(0,n.jsx)(o.Z,{})})}}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=364046)}),_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.