1import{r as p,j as e}from"./client-CHNkNmmv.js";import{i as f,l as h,A as u}from"./app-DvjZdISW.js";import{S as j}from"./SEO-DK-o5SFm.js";import{a as b,B as g,T as r,b as _}from"./index-C1a5_rd_.js";import{I as C}from"./index-B-YOCPOT.js";import{A as l}from"./index-D94Dbxsu.js";import{a as S}from"./index.esm-CMotFBgr.js";import"./index-Bkh7phno.js";import"./index-BF-fL1YB.js";import"./iconBase-D9dNaCmi.js";const v=({certificate:t,certificate_hash:c,site:a})=>{const n=p.useRef(null),o=b(),{namespaces:{inertia:s}}=f,m=d=>{d.preventDefault();const x=h.get(n,"current.certificate_code.value",""),i=new FormData;i.append("certificate_code",x),i.append("_method","POST"),u.post("/cursos/validar-certificado/resultado",i)};return e.jsxs(l.Wrapper,{headComponent:null,children:[e.jsx(j,{title:o("labels.courses.validate_certificate_title",s)}),e.jsxs(g,{sx:{maxWidth:"470px",m:"0 auto"},children:[t&&e.jsxs(r,{component:"p",sx:{textAlign:"left",fontWeight:400,lineHeight:"1.8rem"},children:[e.jsx(S,{size:60,color:"#4CAF50"}),e.jsx(r,{component:"h3",sx:{fontSize:"2.5rem",lineHeight:"3rem"},children:"Certificado válido!"}),"Cógido: ",c,e.jsx("br",{}),e.jsx("br",{}),e.jsx(r,{component:"h3",sx:{fontSize:"1.7rem",lineHeight:"3rem"},children:"Dados do certificado"}),"Curso: ",t.title,e.jsx("br",{}),"Nome do participante: ",t.name,e.jsx("br",{}),"Data da certificação: ",t.finishedAt,e.jsx("br",{}),"Carga horária: ",t.workload," hora(s)",e.jsx("br",{}),e.jsx("br",{}),e.jsx(r,{component:"h3",sx:{fontSize:"1.7rem",lineHeight:"3rem"},children:"Detalhes do emissor"}),"Responsável: ",a.name,e.jsx("br",{}),"E-mail: ",a.email,e.jsx("br",{})]}),!t&&e.jsxs(e.Fragment,{children:[e.jsx(r,{component:"h2",sx:{fontSize:"2.4rem",fontWeight:400,textAlign:"center"},children:o("labels.courses.validate_certificate_title",s)}),e.jsxs(l.Form,{onSubmit:m,ref:n,children:[e.jsx(C,{label:o("labels.courses.certificate_code",s),id:"certificate_code",name:"certificate_code",required:!0}),e.jsx(_,{type:"submit",fullWidth:!0,size:"large",children:o("labels.courses.validate_certificate_button",s)})]})]})]})]})},T=t=>e.jsx(v,{...t});export{T as default};
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.