1import{_ as v}from"./DlAUqK2U.js";import{o as n,c as s,q as b,d as k,b as o,t as i,l as c,g as a,w as r,f as y,k as w,h as C,_ as $,i as m,K as E,s as T,x as R,y as I,P as L,z as S}from"./D-lTpltH.js";import{_ as H}from"./lnCE4Z2x.js";import{_ as N}from"./C6KCLLC1.js";import{_ as P,a as M}from"./DQtnpGr2.js";import{u as B}from"./Dt9mWrNf.js";import{g as A}from"./CgZKYZWZ.js";import{u as V}from"./DKPk7vEH.js";import{c as X}from"./CoD-DTFI.js";const z={},F={class:"text-2xl font-bold font-display uppercase"};function j(t,h){return n(),s("p",F,[b(t.$slots,"default")])}const O=v(z,[["render",j]]),q={},D={class:"flex items-center justify-center p-2 rounded-full bg-red-700/60 hover:bg-red-800/90"};function K(t,h){return n(),s("div",D,[b(t.$slots,"default")])}const G=v(q,[["render",K]]),J={class:"w-9/10 mx-auto max-w-600 lg:max-w-800"},Q={class:"pt-36 pb-14"},U={class:"w-full flex flex-col lg:flex-row lg:gap-12"},W={class:"order-first lg:order-last"},Y={class:"text-5xl font-extrabold font-display mb-3 sm:text-6xl"},Z={class:"text-xt-neutral font-light mb-8"},tt={key:0,class:"inline"},et={key:1,class:"inline"},ot={class:"inline"},nt={key:0,class:"mb-6"},st={class:"text-lg font-light"},ct=["innerHTML"],at={class:"order-last lg:order-first shrink-0"},lt={class:"relative max-w-full w-500 lg:w-400"},it={class:"mb-8"},rt={class:"flex flex-col gap-1"},ht=["href"],dt=["href"],ut=["href"],mt={class:"flex gap-2 items-center mt-1"},ft=["href"],_t=["href"],xt={key:0,class:"mb-8"},gt=["innerHTML"],yt={key:1,class:"mb-8"},vt=["innerHTML"],bt=k({__name:"Profile",props:{coach:{}},setup(t){const h=C(!1);return(_,e)=>{const d=O,l=H,f=N,u=P,x=G,g=M,p=$;return n(),s("div",J,[o("div",Q,[o("div",U,[o("div",W,[e[3]||(e[3]=o("p",{class:"bg-xt-red font-display text-white text-xl p-1 w-fit rounded-md mb-6 lg:px-2"}," XTERRA Certified Coach ",-1)),o("h1",Y,i(t.coach?.name),1),o("div",Z,[t.coach?.location?.length?(n(),s("p",tt,i(t.coach?.location),1)):c("",!0),t.coach?.location?.length&&t.coach?.country?.length?(n(),s("p",et," , ")):c("",!0),o("p",ot,i(t.coach?.country),1)]),(t.coach?.years_of_experience||0)>0?(n(),s("div",nt,[a(d,null,{default:r(()=>[...e[1]||(e[1]=[m("EXPERIENCE",-1)])]),_:1}),o("p",st,i(t.coach?.years_of_experience)+" "+i(t.coach?.years_of_experience===1?"year":"years"),1)])):c("",!0),a(d,null,{default:r(()=>[...e[2]||(e[2]=[m("CERTIFICATIONS",-1)])]),_:1}),o("div",{innerHTML:t.coach.certifications,class:"text-xt-neutral font-light text-lg leading-loose mb-4 lg:whitespace-nowrap"},null,8,ct)]),o("div",at,[o("div",lt,[a(l,{src:t.coach?.thumnail_image||"",onLoad:e[0]||(e[0]=kt=>h.value=!0),class:"object-cover rounded-md shadow-xl mb-4 w-full"},null,8,["src"]),y(h)?c("",!0):(n(),w(f,{key:0}))]),o("div",it,[a(d,{class:"mb-2"},{default:r(()=>[...e[4]||(e[4]=[m("Contact",-1)])]),_:1}),o("div",rt,[t.coach.email?(n(),s("a",{key:0,href:`mailto:${t.coach.email}`,class:"text-lg font-light text-xt-red hover:underline"},i(t.coach.email),9,ht)):c("",!0),t.coach.phone?(n(),s("a",{key:1,href:`tel:${t.coach.phone}`,class:"text-lg font-light text-xt-red hover:underline"}," tel: "+i(t.coach.phone),9,dt)):c("",!0),t.coach.website?.url?.length?(n(),s("a",{key:2,class:"text-lg font-light text-xt-red hover:underline",href:t.coach.website.url||"",target:"_blank"},i(t.coach.website.name||t.coach.website.url),9,ut)):c("",!0),o("div",mt,[t.coach.socials?.facebook?.length?(n(),s("a",{key:0,href:t.coach.socials.facebook,target:"_blank"},[a(x,null,{default:r(()=>[a(u,{class:"size-5 text-white"})]),_:1})],8,ft)):c("",!0),t.coach.socials?.instagram?.length?(n(),s("a",{key:1,href:t.coach.socials.instagram,target:"_blank"},[a(x,null,{default:r(()=>[a(g,{class:"size-5 text-white"})]),_:1})],8,_t)):c("",!0)])])])])]),t.coach.experience?.length?(n(),s("div",xt,[a(d,{class:"mb-4"},{default:r(()=>[...e[5]||(e[5]=[m("High Level Coaching Experience ",-1)])]),_:1}),o("div",{innerHTML:t.coach.experience,class:"text-xt-neutral text-lg font-light article-content"},null,8,gt)])):c("",!0),t.coach.philosophy?.short?.length||t.coach.philosophy?.plain?.length?(n(),s("div",yt,[a(d,{class:"mb-4"},{default:r(()=>
1[...e[6]||(e[6]=[m("Philosophy ",-1)])]),_:1}),o("div",{innerHTML:t.coach.philosophy?.short||t.coach.philosophy?.plain,class:"text-xt-neutral text-lg font-light article-content"},null,8,vt)])):c("",!0)]),a(p,{to:"/find-a-coach",class:"block font-display text-center mb-12 text-neutral-500 hover:text-xt-red"},{default:r(()=>[...e[7]||(e[7]=[m("Back to coach profiles",-1)])]),_:1})])}}}),St=k({__name:"[slug]",async setup(t){let h,_;const e=B(),d=E(),l=S(()=>e.current),f=A(d.params.slug)||"";V({title:()=>`${l.value?.name} | XTERRA`,description:()=>`${l.value?.name} is a certified XTERRA Coach from ${l.value?.country}`,ogImage:()=>l.value?.thumnail_image||""});try{[h,_]=T(async()=>X(`coach_${f}`,async()=>{await e.fetchCurrent(f)},{mode:"navigation"})),await h,_()}catch(u){if(R(u))throw I(u)}return(u,x)=>{const g=bt;return n(),s("div",{key:(u._.provides[L]||u.$route).fullPath},[y(l)?(n(),w(g,{key:0,coach:y(l)},null,8,["coach"])):c("",!0)])}}});export{St 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.