import{_ as u}from"./Layout-C0f8t0-G.js";import{e as a,b as o,u as m,k as h,w as c,a as t,i as l,t as i,o as n,l as d,d as f,F as b}from"./app-iLLm8RtX.js";/* empty css            */const g={class:"py-6 sm:py-12 px-3 sm:px-6 flex items-center justify-center min-h-screen"},y={class:"max-w-3xl w-full bg-white rounded-lg shadow-md p-4 sm:p-8"},_={class:"border-2 border-green-200 rounded-lg p-3 sm:p-6 bg-green-50"},p={class:"text-center mb-4 sm:mb-6"},v={class:"text-lg sm:text-xl font-bold text-gray-900"},w={key:0,class:"text-gray-600 text-sm sm:text-base"},k={key:1,class:"text-gray-600 text-sm sm:text-base"},C={class:"bg-white p-3 sm:p-4 rounded border border-green-200"},D={class:"space-y-3 sm:space-y-0 sm:grid sm:grid-cols-2 sm:gap-4"},V={class:"sm:col-span-2"},N={class:"mt-1 sm:mt-0 sm:ml-2 sm:inline text-gray-900 font-mono text-sm sm:text-base break-all"},T={class:"sm:col-span-2"},j={class:"mt-1 sm:mt-0 sm:ml-2 sm:inline text-gray-900 text-sm sm:text-base"},A={class:"sm:col-span-2"},B={class:"font-medium text-gray-700 text-sm sm:text-base"},R={class:"mt-1 sm:mt-0 sm:ml-2 sm:inline text-gray-900 text-sm sm:text-base"},S={class:"mt-4 sm:mt-6 p-3 sm:p-4 bg-white rounded border border-green-200"},I={class:"text-xs sm:text-sm text-gray-600 text-center leading-relaxed"},P={key:0},F={key:1},L={class:"block sm:inline mt-2 sm:mt-0"},O={class:"mt-6 sm:mt-8 flex flex-col sm:flex-row gap-3 sm:gap-4 sm:justify-center"},E={__name:"Result",props:{certificate:Object},setup(s){const x=r=>r?new Date(r).toLocaleDateString():"N/A";return(r,e)=>(n(),a(b,null,[o(m(h),{title:`Certificate Verified - ${s.certificate.student_name} | ARP OS`},null,8,["title"]),o(u,null,{default:c(()=>[t("div",g,[t("div",y,[e[5]||(e[5]=t("div",{class:"text-center mb-6 sm:mb-8"},[t("div",{class:"mx-auto w-12 h-12 sm:w-16 sm:h-16 bg-green-100 rounded-full flex items-center justify-center mb-3 sm:mb-4"},[t("svg",{class:"w-6 h-6 sm:w-8 sm:h-8 text-green-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})])]),t("h1",{class:"text-xl sm:text-2xl font-bold text-green-900"},"Certificate Verified ✓"),t("p",{class:"text-gray-600 mt-2 text-sm sm:text-base"},"This certificate is authentic and valid")],-1)),t("div",_,[t("div",p,[t("h2",v,i(s.certificate.student_name),1),s.certificate.is_manual?l("",!0):(n(),a("p",w,"State Code: "+i(s.certificate.state_code),1)),s.certificate.is_manual?l("",!0):(n(),a("p",k,"Center: "+i(s.certificate.center),1))]),t("div",C,[t("div",D,[t("div",V,[e[0]||(e[0]=t("span",{class:"font-medium text-gray-700 text-sm sm:text-base"},"Certificate Number:",-1)),t("div",N,i(s.certificate.certificate_number),1)]),t("div",T,[e[1]||(e[1]=t("span",{class:"font-medium text-gray-700 text-sm sm:text-base"},"Course:",-1)),t("div",j,i(s.certificate.course_name),1)]),t("div",A,[t("span",B,i(s.certificate.is_manual?"Issuance Date":"Certification Date")+":",1),t("div",R,i(x(s.certificate.certification_date)),1)])])]),t("div",S,[t("p",I,[s.certificate.is_manual?(n(),a("span",P," This certificate is verified as authentic by the University of Ibadan Consults through ARPTechnology. ")):(n(),a("span",F," This certificate has been verified as authentic by the University of Ibadan Consults through ARPTechnology. ")),e[2]||(e[2]=t("br",{class:"hidden sm:block"},null,-1)),t("span",L," Verification performed on "+i(new Date().toLocaleDateString()),1)])])]),t("div",O,[o(m(d),{href:"/verify",class:"bg-purple-600 hover:bg-purple-700 text-white font-bold py-3 sm:py-2 px-4 rounded text-center transition-colors duration-200"},{default:c(()=>[...e[3]||(e[3]=[f(" Verify Another Certificate ",-1)])]),_:1}),o(m(d),{href:"/",class:"bg-gray-600 hover:bg-gray-700 text-white font-bold py-3 sm:py-2 px-4 rounded text-center transition-colors duration-200"},{default:c(()=>[...e[4]||(e[4]=[f(" Back to Home ",-1)])]),_:1})])])])]),_:1})],64))}};export{E as default};
