1import{_ as j}from"./ziWISk0t.js";import{d as b,p as x,g as n,a as v,b as l,e as c,n as w,h as y,t as k,o,c as _}from"./DallW4WO.js";const C=["aria-label"],I=["textContent"],z=b({__name:"Slide",props:{index:{},activeId:{},project:{},audienceType:{}},setup(e){const i=x(),{updateMouseX:u,updateMouseY:d,updateDotTransition:p,toggleShowHero:m}=i,t=e,r=_(()=>{switch(t.audienceType){case"schools":return t.project.teaser_label_schools;case"policymakers":return t.project.teaser_label_policymakers;case"youth-organisations":return t.project.teaser_label_youth_organisations;default:return t.project.teaser_label}}),g=a=>{u(a.pageX),d(a.pageY-window.scrollY),p({color:"light",url:t.project.url,image:t.project.hero_image}),m(!0)};return(a,s)=>{const h=j;return o(),n("figure",{onClick:s[0]||(s[0]=f=>g(f)),class:"cursor-pointer relative flex w-full h-full rounded-[50px] overflow-hidden group-hover:rounded-[90px] duration-[0.3s] group-hover:duration-[2s]"},[e.project&&e.project.teaser_image?(o(),v(h,{key:0,image:e.project.teaser_image,width:260,height:333,sizes:"350px md:30vw xl:30vw",loading:e.activeId===e.index?"eager":"lazy",class:"object-cover object-center w-full h-full group-hover:scale-[1.1] duration-[.3s] group-hover:duration-[2s]"},null,8,["image","loading"])):l("",!0),e.project&&c(r)?(o(),n("button",{key:1,"aria-label":`Open project: ${e.project.title}`,class:w([e.activeId==e.index?"delay-[1.5s]":"opacity-0 pointer-events-none translate-y-2 blur-lg","btn absolute w-max max-w-[90%] left-1/2 -translate-x-1/2 bottom-quadruple-space duration-300"])},[y("span",{textContent:k(c(r)),class:"w-fit"},null,8,I)],10,C)):l("",!0)])}}});export{z 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.