1import{c as t,e as a,n as r,f as n,t as c,q as y,s as d,l}from"./jLo4S8jQ.js";const b={class:"flex items-center"},x={key:0,class:"flex-shrink-0 mr-3"},k=["src","alt"],w={class:"h-5 w-5 text-white",fill:"currentColor",viewBox:"0 0 20 20"},C={key:0,"fill-rule":"evenodd",d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z","clip-rule":"evenodd"},p={key:1,"fill-rule":"evenodd",d:"M6.267 3.455a3.066 3.066 0 001.745-.723 3.066 3.066 0 013.976 0 3.066 3.066 0 001.745.723 3.066 3.066 0 012.812 2.812c.051.643.304 1.254.723 1.745a3.066 3.066 0 010 3.976 3.066 3.066 0 00-.723 1.745 3.066 3.066 0 01-2.812 2.812 3.066 3.066 0 00-1.745.723 3.066 3.066 0 01-3.976 0 3.066 3.066 0 00-1.745-.723 3.066 3.066 0 01-2.812-2.812 3.066 3.066 0 00-.723-1.745 3.066 3.066 0 010-3.976 3.066 3.066 0 00.723-1.745 3.066 3.066 0 012.812-2.812zm7.44 5.252a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"},z={key:2,"fill-rule":"evenodd",d:"M4 4a2 2 0 012-2h8a2 2 0 012 2v12a1 1 0 110 2h-3a1 1 0 01-1-1v-6a1 1 0 00-1-1H9a1 1 0 00-1 1v6a1 1 0 01-1 1H4a1 1 0 110-2V4zm3 1h2v2H7V5zm2 4H7v2h2V9zm2-4h2v2h-2V5zm2 4h-2v2h2V9z","clip-rule":"evenodd"},V={key:3,"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"},B={class:"flex-1 min-w-0"},$={class:"flex items-center"},S={key:0,class:"ml-2 flex-shrink-0"},H={key:1,class:"flex items-center mt-1"},M={class:"text-xs text-gray-500"},U={key:1,class:"ml-3 flex-shrink-0"},D=["href"],q={__name:"CertificationBadge",props:{name:{type:String,required:!0},description:{type:String,default:""},type:{type:String,default:"certification",validator:e=>["certification","accreditation","membership","compliance"].includes(e)},level:{type:String,default:"standard",validator:e=>["standard","premium","elite"].includes(e)},verified:{type:Boolean,default:!1},validUntil:{type:[String,Date],default:null},verificationUrl:{type:String,default:""},logo:{type:String,default:""},icon:{type:String,default:"certificate",validator:e=>["shield","certificate","building","check"].includes(e)},clickable:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:L}){const o=e,v=d(()=>`bg-white rounded-lg border shadow-sm hover:shadow-md p-4 ${{standard:"border-gray-200",premium:"border-sky-blue-light ring-1 ring-sky-blue-light",elite:"border-solution-green-light ring-2 ring-solution-green-light bg-gradient-to-r from-white to-solution-green-light"}[o.level]}`),m=d(()=>`flex items-center justify-center w-8 h-8 rounded-full ${{certification:"bg-sky-blue",accreditation:"bg-solution-green",membership:"bg-yellow-orange",compliance:"bg-gray-600"}[o.type]}`),h=d(()=>`text-base ${{standard:"text-gray-900",premium:"text-sky-700",elite:"text-green-700 font-bold"}[o.level]}`),g=d(()=>`leading-relaxed ${{standard:"text-gray-600",premium:"text-sky-600",elite:"text-green-700"}[o.level]}`),u=d(()=>({certification:"bg-sky-100 text-sky-700 hover:bg-sky-600 hover:text-white",accreditation:"bg-green-100 text-green-700 hover:bg-green-600 hover:text-white",membership:"bg-yellow-100 text-yellow-700 hover:bg-yellow-600 hover:text-white",compliance:"bg-gray-100 text-gray-700 hover:bg-gray-600 hover:text-white"})[o.type]),f=s=>s?new Date(s).toLocaleDateString("en-GB",{year:"numeric",month:"short",day:"numeric"}):"";return(s,i)=>(l(),t("div",{class:r([v.value,"transition-all duration-300 ease-in-out"])},[a("div",b,[e.icon||e.logo?(l(),t("div",x,[e.logo?(l(),t("img",{key:0,src:e.logo,alt:`${e.name} logo`,class:"h-8 w-8 object-contain"},null,8,k)):e.icon?(l(),t("div",{key:1,class:r(m.value)},[(l(),t("svg",w,[e.icon==="shield"?(l(),t("path",C)):e.icon==="certificate"?(l(),t("path",p)):e.icon==="building"?(l(),t("path",z)):(l(),t("path",V))]))],2)):n("",!0)])):n("",!0),a("div",B,[a("div",$,[a("h4",{class:r([h.value,"font-semibold truncate"])},c(e.name),3),e.verified?(l(),t("div",S,[...i[1]||(i[1]=[a("svg",{class:"h-4 w-4 text-green-600",fill:"currentColor",viewBox:"0 0 20 20"},[a("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"})],-1)])])):n("",!0)]),e.description?(l(),t("p",{key:0,class:r([g.value,"text-sm mt-1"])},c(e.description),3)):n("",!0),e.validUntil?(l(),t("div",H,[i[2]||(i[2]=a("svg",{class:"h-3 w-3 text-gray-400 mr-1",fill:"currentColor",viewBox:"0 0 20 20"},[a("path",{"fill-rule":"evenodd",d:"M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z","clip-rule":"evenodd"})],-1)),a("span",M,"Valid until "+c(f(e.validUntil)),1)])):n("",!0)]),e.verificationUrl||e.clickable?(l(),t("div",U,[e.verificationUrl?(l(),t("a",{key:0,href:e.verificationUrl,target:"_blank",rel:"noopener noreferrer",class:r([u.value,"inline-flex items-center px-3 py-1 rounded-md text-xs font-medium transition-colors duration-200"])},[...i[3]||(i[3]=[y(" Verify ",-1),a("svg",{class:"ml-1 h-3 w-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})],-1)])],10,D)):e.clickable?(l(),t("button",{key:1,onClick:i[0]||(i[0]=j=>s.$emit("click")),class:r([u.value,"inline-flex items-center px-3 py-1 rounded-md text-xs font-medium transition-colors duration-200"])}," Details ",2)):n("",!0)])):n("",!0)])],2))}};export{q 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.