1import{_ as z,a as D,b as E}from"./ooh1yU_G.js";import{d as L,z as $,ac as h,ad as j,ae as G,J as H,G as J,o as l,c as p,a as n,g as u,w as y,u as o,h as g,t as O,A as P,j as w,F as I,f as K,b as C,O as M,V as W,l as c}from"#entry";import{_ as X,b as Y,d as Z}from"./BmPYjQRk.js";import{_ as ee}from"./RMkVYnds.js";import{u as S}from"./DqWKTZUj.js";import"./C-M5H3P3.js";import"./BmtokrGV.js";import"./-_on8yaA.js";const te={class:"h-full flex-1 flex flex-col overflow-x-hidden"},oe={class:"h-full flex-1 max-w-[1440px] mx-auto py-8 lg:py-0 flex flex-col lg:flex-row w-full pl-6 lg:px-6"},se={class:"md:flex-1 lg:pl-8 xl:pl-12 pt-8 sm:pt-10 md:pb-20 pr-6 md:pr-none"},re={key:0},ne={class:"text-body-xs text-foreground-3 mb-6 flex gap-2"},le={class:"font-medium text-foreground"},ae={class:"flex flex-col divide-y divide-outline-2"},ve=L({__name:"index",async setup(ie){let s,a;$({title:"Customer stories",meta:[{name:"description",content:"See how other teams use Speckle to win, so you can do the same."}]});const{data:m}=([s,a]=h(()=>S(Y)),s=await s,a(),s),{data:_}=([s,a]=h(()=>S(Z)),s=await s,a(),s),k=j(),f=G(),{track:b}=H(),e=J(k.query.solution||null),d=c(()=>m.value?e.value?m.value.filter(t=>t.solutions?.some(r=>r.slug?.current===e.value)):m.value:[]),x=c(()=>_.value?_.value.map(t=>({text:t.title??"",value:t.slug?.current||t.title?.toLowerCase().replace(/\s+/g,"-")||""})):[]),A=c(()=>!!e.value),F=c(()=>e.value?x.value.find(t=>t.value===e.value)?.text||e.value:""),V=t=>{t.length?(e.value=t[0]??null,f.replace({query:{solution:t[0]}})):(e.value=null,f.replace({query:{}}))},v=()=>{e.value=null},B=()=>{b("Register CTA Clicked",{page:"customer-stories",source:"pre-footer"})};return(t,r)=>{const N=z,T=D,q=P,Q=X,R=E,U=ee;return l(),p("div",te,[n("div",oe,[u(T,{title:"Customer stories",description:"See how other teams use Speckle to win, so you can do the same."},{default:y(()=>[u(N,{label:"Solutions",items:o(x),"model-value":o(e)?[o(e)]:[],"onUpdate:modelValue":r[0]||(r[0]=i=>V(i))},null,8,["items","model-value"])]),_:1}),n("main",se,[o(e)&&o(d).length?(l(),p("div",re,[n("div",ne,[n("div",null,[r[1]||(r[1]=g(" Stories tagged ",-1)),n("span",le,O(o(F)),1)]),u(q,{size:"sm",color:"neutral",variant:"outline",onClick:v},{default:y(()=>[...r[2]||(r[2]=[g(" Clear filter ",-1)])]),_:1})])])):w("",!0),n("div",ae,[(l(!0),p(I,null,K(o(d),i=>(l(),C(Q,{key:i._id,class:"py-8 lg:py-12 first:pt-0",content:i,"show-image":""},null,8,["content"]))),128))]),o(d).length===0?(l(),C(R,{key:1,type:"customer stories","show-clear":o(A),onClear:v},null,8,["show-clear"])):w("",!0)])]),u(U,{title:"The better way to work together in 3D.",cta:"Start for free","cta-link":o(M)(o(W)),external:"",onCtaClicked:B},null,8,["cta-link"])])}}});export{ve 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.