1import{_ as f}from"./CohYS77z.js";import{d as p,u as w,b as x,v as R,e as S,o as h,c as v,l as y,k as L,h as s,X as b,s as o,A,ab as B}from"./DMMT2iDG.js";const P=p({__name:"use-case-teaser",props:{title:{},postLink:{},featuredImage:{},taxonomyServices:{},useCaseContent:{},useCaseMeta:{},aspectRatio:{},largePreview:{type:Boolean},locked:{type:Boolean},displaced:{type:Boolean}},setup(e){const t=e,{$rewriteUrl:c}=w(),n=x();R();const l=S(),r=o(()=>t.displaced&&t.aspectRatio?t.largePreview||["16:9","21:9"].includes(t.aspectRatio):t.largePreview),u=o(()=>t.taxonomyServices?.nodes),d=o(()=>{let a=c(t.postLink,["/use-case","/use-cases"]);return(t.locked||t.useCaseMeta?.comingSoon)&&(a=""),a});async function m(a){if(t.locked)return a.preventDefault(),n.scrollPosition=window.scrollY,n.requestedResource=`Use Case > ${t.title}`,await A({path:l.path,hash:"#request-access"}),!1}return(a,i)=>{const g=f,k=B;return h(),v(k,{class:b(["use-case-teaser",{"use-case-teaser--large":s(r),"is-displaced":e.displaced}]),to:s(d),onClick:i[0]||(i[0]=C=>m(C))},{default:y(()=>[L(g,{image:e.featuredImage,mobileImage:e.useCaseMeta?.mobileFeaturedImage,categories:s(u),title:e.title,text:e.useCaseContent&&e.useCaseContent.hero.title,hasArrow:!e.useCaseMeta?.comingSoon&&!e.displaced,comingSoon:e.useCaseMeta?.comingSoon,static:e.displaced,locked:e.locked,aspectRatio:e.aspectRatio},null,8,["image","mobileImage","categories","title","text","hasArrow","comingSoon","static","locked","aspectRatio"])]),_:1},8,["to","class"])}}});export{P 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.