1import{r as d,j as e,R as m,z as f}from"./index.D5_msMfK.js";import{S as n}from"./shield-check.NpMD4_AO.js";import{S as x}from"./search.Cvu1wdTd.js";const{useNavigate:u}=m,b=()=>{const[r,c]=d.useState(""),l=u(),o=s=>{s.preventDefault();const a=r.trim();if(!a){f.error("Please enter a Certificate ID or URL.");return}let t=a;if(t.includes("/verify/")){const i=t.split("/verify/");t=i[i.length-1]}l(`/verify/${encodeURIComponent(t)}`)};return e.jsxs("div",{className:"max-w-2xl mx-auto bg-white p-8 rounded-xl shadow-lg border border-slate-200",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx(n,{className:"mx-auto h-12 w-12 text-cyan-500"}),e.jsx("h1",{className:"text-3xl font-bold text-slate-800 mt-4",children:"Verify a Certificate"}),e.jsx("p",{className:"text-slate-500 mt-2",children:"Enter the Certificate ID or the full verification URL found on the certificate to confirm its authenticity."})]}),e.jsxs("form",{onSubmit:o,className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"certificateId",className:"block text-sm font-medium text-slate-700 sr-only",children:"Certificate ID or URL"}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"text",id:"certificateId",value:r,onChange:s=>c(s.target.value),className:"block w-full shadow-sm sm:text-sm border-slate-300 rounded-md py-3 pl-4 pr-12 focus:ring-cyan-500 focus:border-cyan-500",placeholder:"e.g., MCO-123-456-789",required:!0}),e.jsx("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3",children:e.jsx(x,{className:"h-5 w-5 text-slate-400"})})]})]}),e.jsx("div",{children:e.jsxs("button",{type:"submit",className:"w-full flex justify-center items-center gap-2 py-3 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-cyan-600 hover:bg-cyan-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-cyan-500 disabled:bg-slate-400",children:[e.jsx(n,{size:16}),e.jsx("span",{children:"Verify"})]})})]})]})};export{b 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.