1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CLO56rc1.js","./CujwEPkh.js","./entry.Lqf2wMru.css","./C_LlWMlK.js","./NbkUvVFs.js","./Cdf0tTk3.js","./CgJ6t5ff.js","./NativeHome.CgkItoSq.css"])))=>i.map(i=>d[i]); 2import{ar as E,x as D,u as R,y as I,H,J as G,o as S,v as i,c as d,h as t,t as a,e as n,w as f,m as L,j as V,g,C as U,F as M,E as F,B as T,k as P,n as N,q as z,f as j,as as J,at as W,d as K,I as X,O as Y,A as q,af as tt,p as et,a1 as st,a5 as at,a4 as ot,i as nt,ak as lt,aq as Z,au as it,av as rt,aw as dt,ai as ct,a as ut,b as gt,a0 as mt,am as ht,_ as pt}from"./CujwEPkh.js";import{_ as ft,a as _t}from"./BFfbYIuU.js";import{_ as xt}from"./NbkUvVFs.js";import{a as Q}from"./Br11fLR5.js";import{_ as vt}from"./EAedJh-4.js";import{_ as bt,l as wt}from"./bK0TLYNs.js";import"./DCIXRuJu.js";/* empty css */import"./BU3pb1y0.js";const yt=E("/images/feature-group.jpg"),kt=E("/images/feature-trails.jpg"),$t=E("/images/feature-gps2.jpg"),At=E("/images/mnt1.jpg"),Ct=E("/images/mnt2.jpg"),Lt=E("/images/mnt4.jpg"),Pt={class:"py-8 sm:py-12"},jt={class:"max-w-7xl mx-auto px-4 sm:px-8 mb-4 sm:mb-6 flex items-end justify-between gap-4"},zt={class:"text-2xl sm:text-3xl font-extrabold text-gray-900 tracking-tight"},St={key:0,class:"flex gap-5 sm:gap-7 overflow-x-auto no-scrollbar px-4 sm:px-8 pb-4"},Et=["alt","src"],Nt={class:"absolute inset-x-0 bottom-0 p-5 text-white"},Mt={class:"space-y-1.5"},Ft={class:"text-lg font-bold leading-tight drop-shadow-md line-clamp-2"},Tt={class:"flex items-center gap-2 text-sm font-medium text-white/90"},It={class:"text-base"},Ht={class:"truncate"},Bt={key:0,class:"flex items-center gap-2 text-sm text-white/90"},Rt={key:0,class:"inline-flex items-center gap-1"},Ut={key:1},Ot={key:1,class:"flex gap-5 sm:gap-7 overflow-x-auto no-scrollbar px-4 sm:px-8 pb-4"},Dt=["alt","src"],Gt={class:"absolute inset-x-0 bottom-0 p-5 text-white"},Vt={class:"space-y-1.5"},qt={class:"text-lg font-bold leading-tight drop-shadow-md"},Zt={class:"flex items-center gap-2 text-sm font-medium text-white/90"},Qt={class:"text-base"},Jt={__name:"LandingTopTrails",setup(b){const{t:u}=R(),w=I(),m=H(),{track:_}=G(),k=(o,e={})=>{try{_(o,e)}catch{}},{data:h}=Q("landingTopTrails",async()=>{try{const{data:o,error:e}=await m.rpc("get_landing_top_routes",{limit_count:8});if(e)throw e;return o||[]}catch{return[]}},{server:!0,default:()=>[]}),p=z(()=>h.value||[]);S(async()=>{if(!p.value.length)try{const{data:o,error:e}=await m.rpc("get_landing_top_routes",{limit_count:8});!e&&o?.length&&(h.value=o)}catch{}});const c=o=>!o?.country_slug||!o?.slug?w("/trails"):w(`/trails/${o.country_slug}/${o.slug}`),$=o=>{const e="countries."+o.country_iso2,s=u(e);return s===e?o.country_name||"":s},A=o=>{if(!o)return"";const e=o.toUpperCase().split("").map(s=>127397+s.charCodeAt(0));return String.fromCodePoint(...e)},y=o=>`${Number(o).toFixed(1)} km`,l=[{title:"Long Hike",countryCode:"FR",image:"/images/mnt8.jpg"},{title:"Sunset Hike",countryCode:"CH",image:"/images/mnt11.jpg"},{title:"Winter Trail",countryCode:"KZ",image:"/images/mnt3.jpg"},{title:"Camping",countryCode:"US",image:"/images/mnt9.jpg"},{title:"Morning Mist",countryCode:"KZ",image:"/images/mnt10.jpg"}];return(o,e)=>{const s=V,x=U;return i(),d("div",Pt,[t("div",jt,[t("h2",zt,a(o.$t("landingPage.trails.title")),1),n(x,{to:g(w)("/trails"),class:"inline-flex items-center gap-1 text-sm font-semibold text-emerald-700 dark:text-emerald-400 hover:text-emerald-800 dark:hover:text-emerald-300 transition-colors whitespace-nowrap",onClick:e[0]||(e[0]=r=>k("landing_trails_view_all_clicked"))},{default:f(()=>[L(a(o.$t("landingPage.trails.viewAll"))+" ",1),n(s,{name:"chevron-right",class:"w-4 h-4"})]),_:1},8,["to"])]),g(p).length?(i(),d("div",St,[(i(!0),d(M,null,F(g(p),(r,v)=>(i(),T(x,{key:r.id,to:c(r),class:N(["group relative aspect-[9/10] w-56 sm:w-64 flex-none overflow-hidden rounded-3xl bg-gray-100 shadow-lg ring-1 ring-black/5 transition-all duration-500 ease-out hover:shadow-2xl hover:scale-[1.03] hover:rotate-0",v%2===0?"rotate-2":"-rotate-2"]),onClick:B=>k("landing_trail_clicked",{trail_id:r.id,country:r.country_slug})},{default:f(()=>[t("img",{alt:r.name,loading:"lazy",decoding:"async",class:"absolute inset-0 h-full w-full object-cover transition-transform duration-700 ease-out group-hover:scale-110",src:r.image_url},null,8,Et),e[1]||(e[1]=t("div",{class:"absolute inset-0 bg-gradient-to-t from-black/70 via-black/10 to-transparent"},null,-1)),t("div",Nt,[t("div",Mt,[t("h3",Ft,a(r.name),1),t("div",Tt,[t("span",It,a(A(r.country_iso2)),1),t("span",Ht,a($(r)),1)]),r.review_count>0||r.length>0?(i(),d("div",Bt,[r.review_count>0?(i(),d("span",Rt,[n(s,{name:"star-fill",class:"w-3.5 h-3.5 text-yellow-400"}),L(" "+a(Number(r.avg_rating).toFixed(1)),1)])):P("",!0),r.length>0?(i(),d("span",Ut,a(y(r.length)),1)):P("",!0)])):P("",!0)])])]),_:2},1032,["to","class","onClick"]))),128))])):(i(),d("div",Ot,[(i(),d(M,null,F(l,(r,v)=>t("div",{key:v,class:N(["group relative aspect-[9/10] w-56 sm:w-64 flex-none overflow-hidden rounded-3xl bg-gray-100 shadow-lg ring-1 ring-black/5",v%2===0?"rotate-2":"-rotate-2"])},[t("img",{alt:r.title,loading:"lazy",decoding:"async",class:"absolute inset-0 h-full w-full object-cover",src:r.image},null,8,Dt),e[2]||(e[2]=t("div",{class:"absolute inset-0 bg-gradient-to-t from-black/70 via-black/10 to-transparent"}
2,null,-1)),t("div",Gt,[t("div",Vt,[t("h3",qt,a(r.title),1),t("div",Zt,[t("span",Qt,a(A(r.countryCode)),1),t("span",null,a(o.$t("countries."+r.countryCode)),1)])])])],2)),64))]))])}}},Wt=D(Jt,[["__scopeId","data-v-2ff7434f"]]),Kt={class:"py-16 sm:py-20 bg-fh-ground"},Xt={class:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},Yt={class:"text-center mb-12"},te={class:"inline-block px-3 py-1 rounded-full bg-fh-ground text-emerald-800 dark:text-emerald-300 text-sm font-medium mb-4"},ee={class:"text-3xl sm:text-4xl lg:text-5xl font-extrabold text-gray-900 tracking-tight"},se={class:"mt-4 max-w-2xl mx-auto text-lg text-gray-500 leading-relaxed"},ae={key:0,class:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-3"},oe={key:1,class:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-3"},ne={class:"text-2xl flex-shrink-0"},le={class:"min-w-0"},ie={class:"font-semibold text-gray-900 text-sm truncate"},re={key:0,class:"text-xs text-gray-500"},de={__name:"ExploreCountries",setup(b){const{t:u}=R(),w=I(),m=H(),{data:_,pending:k}=Q("landingCountriesWithMountains",async()=>{try{const{data:l,error:o}=await m.rpc("get_countries_with_mountains");if(o)throw o;return l||[]}catch(l){return console.error("Error fetching countries:",l),[]}},{server:!0,default:()=>[]}),h=z(()=>_.value||[]),p=z(()=>k.value&&!h.value.length);S(async()=>{if(!h.value.length)try{const{data:l,error:o}=await m.rpc("get_countries_with_mountains");!o&&l?.length&&(_.value=l)}catch{}});const c=["CH","AT","FR","IT","ES","DE","US","CA","NP","PE","AR","NZ","NO","KZ","GE","JP"],$=z(()=>[...h.value].sort((l,o)=>{const e=c.indexOf(l.iso2),s=c.indexOf(o.iso2);return e!==-1&&s!==-1?e-s:e!==-1?-1:s!==-1?1:(o.mountain_count||0)-(l.mountain_count||0)})),A=l=>{const o=u(`countries.${l.iso2}`);return o===`countries.${l.iso2}`?l.name:o},y=l=>{if(!l)return"";const o=l.toUpperCase().split("").map(e=>127397+e.charCodeAt(0));return String.fromCodePoint(...o)};return(l,o)=>{const e=U;return i(),d("section",Kt,[t("div",Xt,[t("div",Yt,[t("span",te,a(l.$t("landingPage.explore.eyebrow")),1),t("h2",ee,a(l.$t("landingPage.explore.title")),1),t("p",se,a(l.$t("landingPage.explore.subtitle")),1)]),g(p)?(i(),d("div",ae,[(i(),d(M,null,F(12,s=>t("div",{key:s,class:"animate-pulse"},[...o[0]||(o[0]=[t("div",{class:"h-16 rounded-2xl bg-white/60"},null,-1)])])),64))])):(i(),d("div",oe,[(i(!0),d(M,null,F(g($),s=>(i(),T(e,{key:s.id,to:g(w)(`/${s.slug}`),class:"group flex items-center gap-3 px-4 py-3.5 rounded-2xl bg-white/80 backdrop-blur-sm ring-1 ring-gray-900/5 transition-all duration-300 hover:bg-white hover:shadow-lg hover:ring-emerald-500/20 hover:scale-[1.02]"},{default:f(()=>[t("span",ne,a(y(s.iso2)),1),t("div",le,[t("h3",ie,a(A(s)),1),s.mountain_count?(i(),d("p",re,a(s.mountain_count)+" "+a(l.$t("mountains").toLowerCase()),1)):P("",!0)])]),_:2},1032,["to"]))),128))]))])])}}},O={__name:"LandingWalk3d",props:{panel:{type:Boolean,default:!1}},setup(b){const u=H(),w=I(),m=j(null);let _=null;function k(){return _||(_=(async()=>{const c=await wt();if(!c.size)return null;const $=[...c].slice(0,200),[{data:A},y]=await Promise.all([u.from("routes").select("id, slug, name, image_url, country_id:countries(slug, iso2)").in("id",$).limit(200),fetch(J("/api/geo")).then(e=>e.ok?e.json():null).catch(()=>null)]),l=(A||[]).filter(e=>e?.id&&e.slug&&e.country_id?.slug).map(e=>({id:e.id,slug:e.slug,name:e.name,image_url:e.image_url,country_slug:e.country_id.slug,country_iso2:e.country_id.iso2})).sort((e,s)=>(s.image_url?1:0)-(e.image_url?1:0));if(!l.length)return null;const o=String(y?.country||"").toUpperCase();return l.find(e=>String(e.country_iso2||"").toUpperCase()===o)||l[0]})().catch(c=>null),_)}const h=z(()=>{const c=String(m.value?.country_iso2||"").toUpperCase();return c.length!==2?"":String.fromCodePoint(...[...c].map($=>127397+$.charCodeAt(0)))}),p=()=>{const c=m.value;c&&W(w(`/trails/${c.country_slug}/${c.slug}`)+"?walk=1")};return S(async()=>{m.value=await k()}),(c,$)=>m.value?(i(),d("div",{key:0,class:N(["relative",b.panel?"w-full h-full":"w-full"])},[(i(),T(bt,{key:`landing-3d-${m.value.id}`,"route-id":String(m.value.id),panel:b.panel,size:b.panel?"md":"card",path:"landing",eager:"",class:N(b.panel?"w-full h-full":""),onOpen:p},null,8,["route-id","panel","size","class"])),t("div",{class:N(["absolute top-3 max-w-[70%] pointer-events-none rounded-full bg-black/45 backdrop-blur px-3 py-1.5 text-xs font-semibold text-white truncate",b.panel?"right-3":"left-3"])},a(h.value)+" "+a(m.value.name),3)],2)):P("",!0)}},ce=Z,ue={class:"landing-root"},ge={class:"relative lg:min-h-[92vh] flex items-center overflow-hidden"},me={class:"relative z-10 w-full max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pt-8 pb-28 sm:pt-12 sm:pb-32 lg:py-16"},he={class:"grid lg:grid-cols-2 gap-12 lg:gap-16 items-center"},pe={class:"max-w-xl"},fe={class:"hero-badge inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full bg-white/70 backdrop-blur-sm ring-1 ring-emerald-600/20 shadow-sm mb-6"},_e={class:"text-sm font-semibold text-emerald-800 dark:text-emerald-300"},xe={class:"hero-title text-4xl sm:text-5xl lg:text-6xl font-extrabold tracking-tight text-gray-900 leading-[1.08]"},ve={class:"hero-subtitle mt-5 text-base sm:text-lg text-gray-600 leading-relaxed max-w-lg"},be={class:"flex flex-col sm:flex-row gap-1.5 w-full max-w-lg rounded-[1.75rem] sm:rounded-full bg-white shadow-lg shadow-emerald-900/5 ring-1 ring-black/5 dark:ring-white/10 p-1.5 focus-within:ring-2 focus-within:ring-emerald-500 transition-shadow"},we=["aria-label"],ye={class:"mt-4 flex items-center gap-3"},ke={class:"hero-proof mt-8 min-h-[40px]"},$e={key:0,class:"flex items-center gap-4"}
2,Ae={class:"flex -space-x-3"},Ce=["src","alt"],Le={class:"text-sm text-gray-600"},Pe={class:"font-semibold text-gray-900"},je={class:"hero-collage relative hidden lg:block"},ze={class:"relative w-full aspect-[4/5] max-w-md ml-auto"},Se={class:"absolute inset-0 rounded-[2rem] overflow-hidden shadow-2xl ring-1 ring-black/5 rotate-2 hover:rotate-0 transition-transform duration-500"},Ee={class:"chat-bubble absolute -top-3 -left-10 z-10",style:{"animation-delay":"0.4s"}},Ne={class:"flex items-end gap-2"},Me={class:"bg-white rounded-2xl rounded-bl-md px-4 py-2.5 shadow-xl ring-1 ring-black/5 max-w-[240px]"},Fe={class:"text-sm text-gray-800 leading-snug"},Te={class:"chat-bubble absolute top-1/4 -right-8 z-10",style:{"animation-delay":"0.7s"}},Ie={class:"flex items-end gap-2 flex-row-reverse"},He={class:"bg-emerald-600 rounded-2xl rounded-br-md px-4 py-2.5 shadow-xl max-w-[220px]"},Be={class:"text-sm text-white leading-snug"},Re={class:"chat-bubble absolute bottom-1/4 -left-14 z-10",style:{"animation-delay":"1s"}},Ue={class:"flex items-end gap-2"},Oe={class:"bg-white rounded-2xl rounded-bl-md px-4 py-2.5 shadow-xl ring-1 ring-black/5 max-w-[240px]"},De={class:"text-sm text-gray-800 leading-snug"},Ge={class:"chat-bubble absolute -bottom-5 -right-6 z-10",style:{"animation-delay":"1.3s"}},Ve={class:"flex items-end gap-2 flex-row-reverse"},qe={class:"bg-emerald-600 rounded-2xl rounded-br-md px-4 py-2.5 shadow-xl max-w-[220px]"},Ze={class:"text-sm text-white leading-snug"},Qe={class:"relative bg-white pt-4 pb-16 sm:pb-24"},Je={class:"relative py-20 sm:py-28 overflow-hidden",id:"features"},We={class:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},Ke={class:"text-center max-w-2xl mx-auto mb-16 sm:mb-20"},Xe={class:"inline-block px-3 py-1 rounded-full bg-fh-ground text-emerald-800 dark:text-emerald-300 text-sm font-medium mb-4"},Ye={class:"text-3xl sm:text-4xl lg:text-5xl font-extrabold text-gray-900 tracking-tight"},ts={class:"mt-5 text-lg text-gray-500 leading-relaxed"},es={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-5"},ss={class:"p-7"},as={class:"w-12 h-12 rounded-2xl bg-emerald-600/10 flex items-center justify-center mb-5"},os={class:"text-xl font-bold text-gray-900 mb-2"},ns={class:"text-gray-500 leading-relaxed"},ls={class:"p-7"},is={class:"w-12 h-12 rounded-2xl bg-emerald-500/10 flex items-center justify-center mb-5"},rs={class:"text-xl font-bold text-gray-900 mb-2"},ds={class:"text-gray-500 leading-relaxed"},cs={class:"p-7"},us={class:"w-12 h-12 rounded-2xl bg-blue-500/10 flex items-center justify-center mb-5"},gs={class:"text-xl font-bold text-gray-900 mb-2"},ms={class:"text-gray-500 leading-relaxed"},hs={class:"relative py-20 sm:py-28 bg-fh-ground"},ps={class:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},fs={class:"relative rounded-[2.5rem] overflow-hidden bg-gray-900 shadow-2xl"},_s={class:"lg:grid lg:grid-cols-2"},xs={class:"relative p-8 sm:p-12 lg:p-16 flex flex-col justify-center"},vs={class:"text-3xl sm:text-4xl font-extrabold text-white tracking-tight"},bs={class:"mt-5 text-lg text-gray-300 dark:!text-fh-text-secondary leading-relaxed"},ws={class:"mt-8"},ys={class:"py-16 sm:py-20 bg-fh-ground"},ks={class:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},$s={class:"grid grid-cols-1 sm:grid-cols-3 gap-5"},As={class:"relative z-10"},Cs={class:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-white/20 backdrop-blur-sm text-white/90 text-xs font-medium mb-3"},Ls={class:"text-2xl font-bold text-white leading-tight"},Ps={class:"relative z-10"},js={class:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-white/20 backdrop-blur-sm text-white/90 text-xs font-medium mb-3"},zs={class:"text-2xl font-bold text-white leading-tight"},Ss={class:"relative z-10"},Es={class:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-white/20 backdrop-blur-sm text-white/90 text-xs font-medium mb-3"},Ns={class:"text-2xl font-bold text-white leading-tight"},Ms={class:"pb-4 sm:pb-8 bg-fh-ground"},Fs={class:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},Ts={class:"bg-white rounded-3xl shadow-sm p-6 sm:p-8 flex flex-col sm:flex-row sm:items-center gap-5 sm:gap-6"},Is={class:"w-12 h-12 rounded-2xl bg-emerald-600/10 flex items-center justify-center shrink-0"},Hs={class:"flex-1 min-w-0"},Bs={class:"text-xl font-bold text-gray-900"},Rs={class:"mt-1 text-gray-500 leading-relaxed"},Us={class:"flex flex-wrap items-center gap-3 shrink-0"},Os=K({__name:"LandingPage",setup(b){const u=I(),w=H(),m=X(),_=Y(),{track:k}=G(),h=(e,s={})=>{try{k(e,s)}catch{}},p=j(""),c=j(null);S(()=>{try{c.value=window.matchMedia("(min-width: 1024px)").matches}catch{c.value=!1}});const $=()=>{const e=p.value;h("landing_signup_submitted",{has_email:!!e}),_.push(u({name:"signin",query:e?{email:e}:{mode:"signup"}}))};q(()=>m.initialized,e=>{e&&!m.isAuthenticated&&document.documentElement.classList.remove("fh-maybe-authed")},{immediate:!0});const A=j([]),y=j(0),l=z(()=>y.value?new Intl.NumberFormat().format(y.value):"0");return S(async()=>{try{const{data:e,error:s}=await w.rpc("get_landing_page_stats",{p_limit:6});if(s)throw s;A.value=e?.users||[],y.value=Number(e?.total_users||0)}catch{A.value=[]}}),(e,s)=>{const x=V,r=nt,v=U,B=lt;return i(),d("div",ue,[t("section",ge,[s[15]||(s[15]=tt('<div class="absolute inset-0 bg-gradient-to-b from-[#E8F0EA] via-[#dfeae1] to-[#cfe0d4] dark:from-fh-ground dark:via-[#101a14] dark:to-[#16231b]" data-v-c7ce4ecd></div><div class="hero-grain absolute inset-0 opacity-[0.03] pointer-events-none" data-v-c7ce4ecd></div><svg aria-hidden="true" class="pointer-events-none absolute bottom-0 inset-x-0 w-full h-40 sm:h-56 text-emerald-800 dark:text-emerald-300" viewB
2ox="0 0 1440 200" preserveAspectRatio="none" data-v-c7ce4ecd><path d="M0 200 L0 132 L190 64 L350 148 L530 76 L710 156 L890 54 L1070 144 L1250 88 L1440 138 L1440 200 Z" fill="currentColor" opacity="0.08" data-v-c7ce4ecd></path><path d="M0 200 L130 158 L310 96 L490 176 L670 118 L910 184 L1130 104 L1310 166 L1440 128 L1440 200 Z" fill="currentColor" opacity="0.13" data-v-c7ce4ecd></path></svg><div aria-hidden="true" class="hidden sm:block pointer-events-none absolute left-[2.5%] top-[5%] w-12 h-12 rounded-full border-4 border-emerald-800/[0.16] dark:border-emerald-300/20" data-v-c7ce4ecd></div><svg aria-hidden="true" class="hidden lg:block pointer-events-none absolute left-[44%] top-[14%] w-20 text-emerald-800/20 dark:text-emerald-300/25" viewBox="0 0 80 30" fill="none" data-v-c7ce4ecd><path d="M4 16 Q 14 4 24 16 M24 16 Q 34 4 44 16" stroke="currentColor" stroke-width="4" stroke-linecap="round" fill="none" transform="scale(0.7)" data-v-c7ce4ecd></path><path d="M40 26 Q 48 17 56 26 M56 26 Q 64 17 72 26" stroke="currentColor" stroke-width="3.5" stroke-linecap="round" fill="none" data-v-c7ce4ecd></path></svg>',5)),t("div",me,[t("div",he,[t("div",pe,[t("div",fe,[s[6]||(s[6]=t("span",{class:"text-base leading-none"},"ðï¸",-1)),t("span",_e,a(e.$t("landingPage.featuresLine")),1)]),t("h1",xe,a(e.$t("landingPage.title")),1),t("p",ve,a(e.$t("landingPage.subtitle")),1),t("form",{class:"hero-cta mt-8",onSubmit:et($,["prevent"])},[t("div",be,[st(t("input",{id:"hero-email","onUpdate:modelValue":s[0]||(s[0]=C=>ot(p)?p.value=C:null),type:"email",name:"email",autocomplete:"email",placeholder:"[email protected]","aria-label":e.$t("emailAddress"),class:"flex-1 min-w-0 h-12 px-4 !border-0 !shadow-none !rounded-full bg-transparent text-base text-gray-900 placeholder-gray-400 focus:outline-none focus:!ring-0 focus:!border-0"},null,8,we),[[at,g(p),void 0,{trim:!0}]]),n(r,{type:"submit",variant:"primary",size:"lg",class:"group shrink-0 shadow-lg shadow-emerald-600/25 hover:shadow-emerald-600/35"},{default:f(()=>[L(a(e.$t("auth.continueWithEmail"))+" ",1),n(x,{name:"arrow-right",class:"w-5 h-5 transition-transform duration-300 group-hover:translate-x-1"})]),_:1})]),t("div",ye,[t("a",{href:"https://apps.apple.com/us/app/friendhike-trails-friends/id6741381484",target:"_blank",rel:"noopener noreferrer",class:"transition-all duration-200 hover:scale-105 opacity-80 hover:opacity-100",onClick:s[1]||(s[1]=C=>h("landing_store_clicked",{store:"ios"}))},[...s[7]||(s[7]=[t("img",{src:ft,alt:"Download on App Store",class:"h-10"},null,-1)])]),t("a",{href:"https://play.google.com/store/apps/details?id=com.renatello.friendhike",target:"_blank",rel:"noopener noreferrer",class:"transition-all duration-200 hover:scale-105 opacity-80 hover:opacity-100",onClick:s[2]||(s[2]=C=>h("landing_store_clicked",{store:"android"}))},[...s[8]||(s[8]=[t("img",{src:_t,alt:"Get it on Google Play",class:"h-10"},null,-1)])])])],32),n(v,{to:g(u)("/find-hiking-buddies"),class:"mt-5 inline-flex items-center gap-1 text-sm font-semibold text-emerald-700 hover:text-emerald-800 transition-colors"},{default:f(()=>[L(a(e.$t("sitemap.staticPages.findBuddies"))+" ",1),n(x,{name:"chevron-right",class:"w-4 h-4"})]),_:1},8,["to"]),n(B,null,{default:f(()=>[g(c)===!1?(i(),T(O,{key:0,class:"mt-8 lg:hidden"})):P("",!0)]),_:1}),t("div",ke,[g(y)>0?(i(),d("div",$e,[t("div",Ae,[(i(!0),d(M,null,F(g(A).slice(0,6),C=>(i(),d("div",{key:C.id,class:"relative w-10 h-10 rounded-full ring-[3px] ring-[#E8F0EA] dark:ring-[#101a14] overflow-hidden shadow-md"},[t("img",{src:C.avatar_url||"",alt:C.full_name||C.username||"Hiker",class:"w-full h-full object-cover",loading:"lazy"},null,8,Ce)]))),128))]),t("span",Le,[t("span",Pe,a(g(l)),1),L(" "+a(e.$t("hikersOnFriendHike")),1)])])):P("",!0)])]),t("div",je,[t("div",ze,[t("div",Se,[s[9]||(s[9]=t("picture",null,[t("source",{media:"(min-width: 1024px)",srcset:ce}),t("img",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",alt:"Hikers on a mountain trail",class:"w-full h-full object-cover",loading:"eager",fetchpriority:"high"})],-1)),s[10]||(s[10]=t("div",{class:"absolute inset-0 bg-gradient-to-t from-black/30 via-trans
2parent to-transparent"},null,-1)),n(B,null,{default:f(()=>[g(c)?(i(),T(O,{key:0,panel:"",class:"absolute inset-0"})):P("",!0)]),_:1})]),t("div",Ee,[t("div",Ne,[s[11]||(s[11]=t("img",{src:it,alt:"",class:"w-14 h-14 rounded-full object-cover flex-shrink-0 ring-2 ring-white shadow-md"},null,-1)),t("div",Me,[t("p",Fe,a(e.$t("landingPage.bubbles.whoIsUp")),1)])])]),t("div",Te,[t("div",Ie,[s[12]||(s[12]=t("img",{src:rt,alt:"",class:"w-14 h-14 rounded-full object-cover flex-shrink-0 ring-2 ring-white shadow-md"},null,-1)),t("div",He,[t("p",Be,a(e.$t("landingPage.bubbles.imIn")),1)])])]),t("div",Re,[t("div",Ue,[s[13]||(s[13]=t("img",{src:xt,alt:"",class:"w-14 h-14 rounded-full object-cover flex-shrink-0 ring-2 ring-white shadow-md"},null,-1)),t("div",Oe,[t("p",De,a(e.$t("landingPage.bubbles.justJoined")),1)])])]),t("div",Ge,[t("div",Ve,[s[14]||(s[14]=t("img",{src:dt,alt:"",class:"w-14 h-14 rounded-full object-cover flex-shrink-0 ring-2 ring-white shadow-md"},null,-1)),t("div",qe,[t("p",Ze,a(e.$t("landingPage.bubbles.letsGo")),1)])])])])])])]),s[16]||(s[16]=t("div",{class:"absolute bottom-0 left-0 right-0"},[t("svg",{viewBox:"0 0 1440 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"w-full",preserveAspectRatio:"none"},[t("path",{d:"M0 80V40C240 10 480 0 720 20C960 40 1200 60 1440 40V80H0Z",fill:"white",class:"dark:fill-fh-surface"})])],-1))]),t("section",Qe,[n(Wt)]),t("section",Je,[s[20]||(s[20]=t("div",{class:"absolute inset-0 bg-gradient-to-b from-white via-[#f7faf8] to-[#E8F0EA] dark:from-fh-surface dark:via-[#131b16] dark:to-fh-ground"},null,-1)),t("div",We,[t("div",Ke,[t("span",Xe,a(e.$t("landingPage.features.eyebrow")),1),t("h2",Ye,a(e.$t("landingPage.features.title")),1),t("p",ts,a(e.$t("landingPage.features.subtitle")),1)]),t("div",es,[n(v,{to:g(u)("/hikes"),class:"feature-card group relative block bg-white rounded-3xl overflow-hidden shadow-sm ring-1 ring-gray-900/5 hover:shadow-xl hover:ring-emerald-600/20 transition-all duration-500"},{default:f(()=>[s[17]||(s[17]=t("div",{class:"h-48 overflow-hidden"},[t("img",{src:yt,alt:"Group of friends hiking together on a mountain trail",class:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-110",loading:"lazy"})],-1)),t("div",ss,[t("div",as,[n(x,{name:"users",class:"w-6 h-6 text-emerald-600"})]),t("h3",os,a(e.$t("planGroupHikes")),1),t("p",ns,a(e.$t("organizeAndJoinGroupHikingEvents")),1)])]),_:1},8,["to"]),n(v,{to:g(u)("/trails"),class:"feature-card group relative block bg-white rounded-3xl overflow-hidden shadow-sm ring-1 ring-gray-900/5 hover:shadow-xl hover:ring-emerald-500/20 transition-all duration-500"},{default:f(()=>[s[18]||(s[18]=t("div",{class:"h-48 overflow-hidden"},[t("img",{src:kt,alt:"Scenic hiking trail through a forest",class:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-110",loading:"lazy"})],-1)),t("div",ls,[t("div",is,[n(x,{name:"map",class:"w-6 h-6 text-emerald-600"})]),t("h3",rs,a(e.$t("discoverLocalTrails")),1),t("p",ds,a(e.$t("exploreHikingRoutes")),1)])]),_:1},8,["to"]),n(v,{to:g(u)("/map"),class:"feature-card group relative block bg-white rounded-3xl overflow-hidden shadow-sm ring-1 ring-gray-900/5 hover:shadow-xl hover:ring-blue-500/20 transition-all duration-500 sm:col-span-2 lg:col-span-1"},{default:f(()=>[s[19]||(s[19]=t("div",{class:"h-48 overflow-hidden"},[t("img",{src:$t,alt:"Hiker using GPS for trail navigation",class:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-110",loading:"lazy"})],-1)),t("div",cs,[t("div",us,[n(x,{name:"route",class:"w-6 h-6 text-blue-600"})]),t("h3",gs,a(e.$t("saveRoutes")),1),t("p",ms,a(e.$t("exploreInterestingRoutes")),1)])]),_:1},8,["to"])])])]),t("section",hs,[t("div",ps,[t("div",fs,[t("div",_s,[s[21]||(s[21]=t("div",{class:"relative h-72 sm:h-96 lg:h-auto"},[t("img",{class:"absolute inset-0 w-full h-full object-cover",src:Z,alt:"FriendHike community hiking together",loading:"lazy"}),t("div",{class:"absolute inset-0 bg-gradient-to-r from-transparent to-gray-900/80 hidden lg:block"}),t("div",{class:"absolute inset-0 bg-gradient-to-t from-gray-900/90 to-transparent lg:hidden"})],-1)),t("div",xs,[t("h3",vs,a(e.$t("landingPage.features.connect.title")),1),t("p",bs,a(e.$t("landingPage.features.connect.description")),1),t("div",ws,[n(v,{to:g(u)({n
2ame:"signin",query:{mode:"signup"}}),class:"group inline-flex items-center gap-2 px-7 py-3.5 text-base font-semibold rounded-full bg-white dark:!bg-white text-emerald-700 hover:bg-gray-100 dark:hover:!bg-gray-100 transition-all duration-300 hover:scale-[1.03] shadow-lg",onClick:s[3]||(s[3]=C=>h("landing_get_started_clicked",{placement:"connect"}))},{default:f(()=>[L(a(e.$t("landingPage.cta.getStarted"))+" ",1),n(x,{name:"arrow-right",class:"w-5 h-5 transition-transform duration-300 group-hover:translate-x-1"})]),_:1},8,["to"])])])])])])]),t("section",ys,[t("div",ks,[t("div",$s,[n(v,{to:g(u)("/trails"),class:"quick-link-card group relative overflow-hidden rounded-3xl aspect-[4/3] flex flex-col justify-end p-6"},{default:f(()=>[s[22]||(s[22]=t("img",{src:At,alt:"",class:"absolute inset-0 w-full h-full object-cover transition-transform duration-500 group-hover:scale-105",loading:"lazy"},null,-1)),s[23]||(s[23]=t("div",{class:"absolute inset-0 bg-gradient-to-t from-black/70 via-black/20 to-transparent"},null,-1)),t("div",As,[t("span",Cs,[n(x,{name:"map",class:"w-3.5 h-3.5"}),L(" "+a(e.$t("discoverLocalTrails")),1)]),t("h3",Ls,a(e.$t("trails")),1)])]),_:1},8,["to"]),n(v,{to:g(u)("/mountains"),class:"quick-link-card group relative overflow-hidden rounded-3xl aspect-[4/3] flex flex-col justify-end p-6"},{default:f(()=>[s[24]||(s[24]=t("img",{src:Ct,alt:"",class:"absolute inset-0 w-full h-full object-cover transition-transform duration-500 group-hover:scale-105",loading:"lazy"},null,-1)),s[25]||(s[25]=t("div",{class:"absolute inset-0 bg-gradient-to-t from-black/70 via-black/20 to-transparent"},null,-1)),t("div",Ps,[t("span",js,[n(x,{name:"sparkles",class:"w-3.5 h-3.5"}),L(" "+a(e.$t("discoverMountains")),1)]),t("h3",zs,a(e.$t("mountains")),1)])]),_:1},8,["to"]),n(v,{to:g(u)("/hikes"),class:"quick-link-card group relative overflow-hidden rounded-3xl aspect-[4/3] flex flex-col justify-end p-6"},{default:f(()=>[s[26]||(s[26]=t("img",{src:Lt,alt:"",class:"absolute inset-0 w-full h-full object-cover transition-transform duration-500 group-hover:scale-105",loading:"lazy"},null,-1)),s[27]||(s[27]=t("div",{class:"absolute inset-0 bg-gradient-to-t from-black/70 via-black/20 to-transparent"},null,-1)),t("div",Ss,[t("span",Es,[n(x,{name:"users",class:"w-3.5 h-3.5"}),L(" "+a(e.$t("planGroupHikes")),1)]),t("h3",Ns,a(e.$t("hikes")),1)])]),_:1},8,["to"])])])]),t("section",Ms,[t("div",Fs,[t("div",Ts,[t("div",Is,[n(x,{name:"sparkles",class:"w-6 h-6 text-emerald-600"})]),t("div",Hs,[t("h2",Bs,a(e.$t("landingPage.tools.title")),1),t("p",Rs,a(e.$t("landingPage.tools.subtitle")),1)]),t("div",Us,[n(v,{to:g(u)("/tools/identify-mountain"),class:"inline-flex items-center gap-2 px-5 py-2.5 text-sm font-semibold rounded-full bg-emerald-600 hover:bg-emerald-700 text-white transition-colors",onClick:s[4]||(s[4]=C=>h("landing_tool_clicked",{tool:"identify-mountain"}))},{default:f(()=>[n(x,{name:"camera",class:"w-4 h-4"}),L(" "+a(e.$t("landingPage.tools.identifyCta")),1)]),_:1},8,["to"]),n(v,{to:g(u)("/tools"),class:"inline-flex items-center gap-1 px-4 py-2.5 text-sm font-semibold text-emerald-700 hover:text-emerald-800 transition-colors",onClick:s[5]||(s[5]=C=>h("landing_tool_clicked",{tool:"all"}))},{default:f(()=>[L(a(e.$t("landingPage.tools.allTools"))+" ",1),n(x,{name:"chevron-right",class:"w-4 h-4"})]),_:1},8,["to"])])])])]),n(vt),n(de)])}}}),Ds=D(Os,[["__scopeId","data-v-c7ce4ecd"]]),Gs=ht(()=>pt(()=>import("./CLO56rc1.js").then(b=>b.N),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url).then(b=>b.default||b)),Vs={class:"relative"},qs={key:0,class:"absolute inset-0 z-[5] bg-fh-ground flex items-center justify-center"},Zs={key:0,class:"flex flex-col items-center"},Qs={class:"text-sm text-gray-600 animate-pulse"},Js={key:1},Ws={key:2},la={__name:"index",setup(b){const{locale:u}=R(),w=j(ct.isNativePlatform());let m=!1;m=!!window.__friendhike_initialized;const _=j(!1),k=["Packing your backpack...","Preparing trails...","Checking weather...","Finding hikers nearby...","Loading mountains..."],h=j(k[Math.floor(Math.random()*k.length)]);let p=null;S(()=>{w.value&&!u.value&&(u.value="ru"),w.value&&!m&&(_.value=!0,p=ut(()=>{h.value=k[Math.floor(Math.random()*k.length)]},1500),setTimeout(()=>{_.value=!1,window.__friendhike_initialized=!0},800))}),gt(()=>{p&&clearInterval(p)});const{$updateSEOMeta:c,$getSEOMetaForRoute:$}=mt(),A=z(()=>$("home",{},u.value));return q(()=>A.value,y=>{y&&c(y,u.value)},{immediate:!0}),(y,l)=>{const o=Gs,e=Ds;return i(),d("div",Vs,[_.value?(i(),d("div",qs,[w.value?(i(),d("div",Zs,[t("p",Qs,a(h.value),1)])):P("",!0)])):P("",!0),w.value?(i(),d("div",Js,[n(o)])):(i(),d("div",Ws,[n(e)]))])}}};export{la 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.