import{d as J,w as K,c as O,D as Q,y as E,b as R,e as t,o as u,f as p,k as F,l as n,s as l,h as f,g as c,m as M,t as y,j as a,F as X,r as Y,E as q,p as Z,q as tt,_ as et}from"./B7AJjWN6.js";import{_ as at}from"./BaObFzgB.js";import{a as st,_ as ot}from"./CDCUQ4EF.js";import{u as it}from"./DXlHND5y.js";import"./BLa-xZJ-.js";import"./DSDBNk5h.js";import"./DSEQjIlJ.js";import"./CH8MLF88.js";const lt={key:0,class:"page__home"},ct=["alt","src","width","height","srcset"],nt={class:"featuresList"},rt={class:"featuresList__title"},ut={class:"featuresList__text"},mt={class:"sectionVideo__video"},dt={class:"sectionSpotlight__image"},_t=["srcset"],gt=["srcset"],ht=["src","alt"],pt={class:"sectionSpotlight__image"},ft=["srcset"],bt=["srcset"],yt=["src","alt"],kt=J({__name:"index",async setup(xt){var S,z,V,I,C,L,$,j,B,D,N;let d,k;const{data:s,error:A}=([d,k]=K(async()=>it("homepage",async()=>await $fetch("/api/page?slug=homepage"))),d=await d,k(),d);if(A.value||!((S=s.value)!=null&&S._id))throw O({statusCode:404,statusMessage:"Page Not Found",fatal:!0});const x=((z=s.value)==null?void 0:z.pageTitle)||((V=s.value)==null?void 0:V.title),v=(I=s.value)==null?void 0:I.metaDescription,e=(C=s.value)==null?void 0:C.blocks[0],r=(L=s.value)==null?void 0:L.blocks[1],H=($=s.value)==null?void 0:$.blocks[2],o=(j=s.value)==null?void 0:j.blocks[3],i=(B=s.value)==null?void 0:B.blocks[4],W=(D=s.value)==null?void 0:D.blocks.slice(5),{dimensions:_}=Q((N=e.image)==null?void 0:N.asset._ref);let w=E(820),m=E(null);return _.width&&_.height&&(m.value=Math.round(_.height/_.width*w.value)),R({title:x,meta:[{property:"og:title",content:x},{name:"description",content:v},{property:"og:description",content:v}]}),(vt,wt)=>{var T;const b=Z,g=tt,U=at,G=st,P=ot;return(T=t(s))!=null&&T.blocks?(u(),p("main",lt,[t(e)?(u(),F(g,{key:0,title:t(e).title,subtitle:t(e).subtitle,theme:t(e).accent,background:t(e).background,"title-element":t(e).isPageTitle?"h1":"h2",padding:t(e).padding,class:"heroSection"},{text:n(()=>[t(e).image?(u(),p("img",{key:0,loading:"lazy",alt:t(e).image.alt||"",class:"heroSection__image",src:t(l)(t(e).image).height(t(m)).auto("format").dpr(1.5).quality(90).url(),width:t(w),height:t(m),srcset:`${t(l)(t(e).image).height(t(m)).dpr(1.5).auto("format").url()} 1x, ${t(l)(t(e).image).height(t(m)).dpr(2).auto("format").url()} 2x`},null,8,ct)):f("",!0),c(b,{value:t(e).text},null,8,["value"])]),_:1},8,["title","subtitle","theme","background","title-element","padding"])):f("",!0),c(g,{theme:t(r).accent,background:"grey-800",class:"sectionVideo"},{title:n(()=>[M(y(t(r).title),1)]),subtitle:n(()=>[M(y(t(r).subtitle),1)]),text:n(()=>[t(r).text?(u(),F(b,{key:0,value:t(r).text},null,8,["value"])):f("",!0)]),default:n(()=>[a("ul",nt,[(u(!0),p(X,null,Y(t(r).list,h=>(u(),p("li",{key:h._id,class:"featuresList__item"},[c(U,{class:"featuresList__icon",name:h.icon},null,8,["name"]),a("h3",rt,y(h.title),1),a("div",ut,[c(b,{value:h.text},null,8,["value"])])]))),128))])]),after:n(()=>[a("div",mt,[c(G,{vimeo:943452765,alt:"Watch: We are here to help you find success",thumbnail:"https://cdn.sanity.io/images/x2hmuriz/production/4963a9fe609d7b37fec560ada203456707e429a7-1424x801.png?w=2000&fit=max&auto=format"})])]),_:1},8,["theme"]),c(P,{blocks:[t(H)]},null,8,["blocks"]),c(g,{title:t(o).title,subtitle:t(o).subtitle,text:t(o).text,theme:t(o).accent,background:t(o).background,layout:"text-left",class:"sectionSpotlight"},q({_:2},[t(o).image?{name:"default",fn:n(()=>[a("picture",dt,[a("source",{media:"(max-width: 899px)",srcset:t(l)(t(o).image.mobileImage).auto("format").url(),type:"image/jpeg",loading:"lazy"},null,8,_t),a("source",{media:"(min-width: 900px)",srcset:t(l)(t(o).image).auto("format").url(),type:"image/jpeg",loading:"lazy"},null,8,gt),a("img",{src:t(l)(t(o).image).auto("format").url(),alt:t(o).image.alt||"",loading:"lazy"},null,8,ht)])]),key:"0"}:void 0]),1032,["title","subtitle","text","theme","background"]),c(g,{title:t(i).title,subtitle:t(i).subtitle,text:t(i).text,theme:t(i).accent,background:t(i).background,class:"sectionSpotlight sectionSpotlight--practice",layout:"text-right"},q({_:2},[t(i).image?{name:"default",fn:n(()=>[a("picture",pt,[a("source",{media:"(max-width: 899px)",srcset:t(l)(t(i).image.mobileImage).auto("format").url(),type:"image/jpeg",loading:"lazy"},null,8,ft),a("source",{media:"(min-width: 900px)",srcset:t(l)(t(i).image).auto("format").url(),type:"image/jpeg",loading:"lazy"},null,8,bt),a("img",{src:t(l)(t(i).image).auto("format").url(),alt:t(i).image.alt||"",loading:"lazy"},null,8,yt)])]),key:"0"}:void 0]),1032,["title","subtitle","text","theme","background"]),c(P,{blocks:t(W)},null,8,["blocks"])])):f("",!0)}}}),Bt=et(kt,[["__scopeId","data-v-0bc69ad0"]]);export{Bt as default};