1import{_ as v}from"./CrVsW7ni.js";import{_ as y}from"./Dy0gj6Cg.js";import{n as b,b0 as p,d as l,P as c,Q as m,_ as C,aa as o,a0 as k,ag as x,S as L,ai as $,$ as I,aj as S,a4 as _,a5 as w,a6 as d}from"./D_Utj9eT.js";import{T as O,U as j,Q as V}from"./B7SZtFtP.js";const E={class:"category-card flex-col-center relative"},N={class:"seo-invis"},h={class:"category-name"},A=b({__name:"LibCategoryCard",props:{image:{type:Object,default:()=>O},name:{type:String,default:""},id:{type:String,required:!0},bgColor:{type:String,default:"var(--primary)"},textColor:{type:String,default:"white"},link:{type:Object,default:()=>({path:""})}},emits:["category-clicked"],setup(t){p(i=>({v60d8b34d:t.bgColor,v24773ba5:t.textColor}));const n=l(!1),r=l(!1),s=l(!1);function u(){n.value=!0,r.value=!0,console.error("An error occurred while loading the category card image.")}return(i,e)=>{const g=v,f=y;return m(),c(f,{class:"category-card-link-container justify-self-center",onMouseover:e[4]||(e[4]=a=>s.value=!0),onMouseleave:e[5]||(e[5]=a=>s.value=!1),to:t.link.path},{default:C(()=>[o("figure",null,[o("div",E,[t.image.src!==""?(m(),c(j,L({key:0,class:"libImage flex-col-center relative","data-test":"LibCategoryCard",onClick:e[0]||(e[0]=a=>i.$emit("category-clicked",t.id)),onKeydown:e[1]||(e[1]=$(a=>i.$emit("category-clicked",t.id),["space","enter"]))},t.image,{onOnImgLoad:e[2]||(e[2]=a=>n.value=!0),onOnImgRendered:e[3]||(e[3]=a=>r.value=!0),onOnImgError:u}),null,16)):k("",!0),x(I(g,{"data-test":"sf-loader-circular",class:"spinner absolute"},null,512),[[S,!n.value&&!r.value]]),o("span",{class:_([{"tooltip-visible":s.value},"category-tooltip absolute"])},[w(" Show "+d(t.name)+" ",1),o("span",N,"for "+d(t.image.alt),1)],2)]),o("figcaption",h,d(t.name),1)])]),_:1},8,["to"])}}}),K=Object.assign(V(A,[["__scopeId","data-v-0f8d7bf4"]]),{__name:"LibCategoryCard"});export{K as _};
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.