1import{_ as X}from"./BdMHmSbw.js";import{aR as A,bh as M,bc as n,aY as r,aZ as e,b0 as i,b2 as t,bl as f,bm as x,a_ as u,a$ as D,bS as ee,bM as te,b1 as I,b5 as T,be as U,bg as oe,bu as g,aX as b,aU as se,bA as ae,b3 as d,cn as ne,b4 as E,bb as B,b6 as le}from"./DusadLuI.js";import{C as ie,u as re,_ as ce}from"./DqZtGnEg.js";import{_ as _e}from"./DVOiZytw.js";import{_ as me}from"./CtvbU4xy.js";import{_ as de}from"./DZvR4vu6.js";import"./DP_Byb2N.js";import"./DSXUlfDR.js";import"./CC8W2ZQG.js";import"./DO3zKtFH.js";import"./fIdk3R_n.js";import"./DNQmvltd.js";import"./B6oKOCNV.js";(function(){try{var _=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};_.SENTRY_RELEASE={id:"ed3b7066d750926bf41c003e0cec31acf3ac8236"};var o=new _.Error().stack;o&&(_._sentryDebugIds=_._sentryDebugIds||{},_._sentryDebugIds[o]="911e6430-cf6d-4ed4-8e28-134a7e7b44cf",_._sentryDebugIdIdentifier="sentry-dbid-911e6430-cf6d-4ed4-8e28-134a7e7b44cf")}catch{}})();const ue={class:"country-selection__list"},pe={class:"country-selection__flag"},he=A({__name:"CountrySelection",setup(_){const o=M(),c=o.platformName,w=o.getAvailableCountries(),v=T(()=>new Intl.DisplayNames([o.locale.value],{type:"region"})),l=a=>{o.setCountryCode(a)};return(a,p)=>{const h=te;return n(),r(f,null,[e("h2",null,i(a.$t("home.worldwide_title",{platform:t(c)})),1),e("p",null,i(a.$t("home.worldwide_explanation",{platform:t(c)})),1),e("h3",null,i(a.$t("country.country_choose_title")),1),e("ul",ue,[(n(!0),r(f,null,x(t(w),m=>(n(),r("li",null,[u(h,{class:"country-selection__button",onClick:y=>l(m)},{default:D(()=>[e("span",pe,i(("countryHelpers"in a?a.countryHelpers:t(ee)).flagEmoji(m)),1),e("span",null,i(t(v).of(m.toUpperCase())),1)]),_:2},1032,["onClick"])]))),256))]),e("h3",null,i(a.$t("home.worldwide_cta_title")),1),e("p",null,[I(i(a.$t("home.worldwide_cta_text",{platform:t(c)}))+" ",1),p[0]||(p[0]=e("a",{class:"country-selection__link",href:"mailto:[email protected]"},"[email protected]",-1))])],64)}}}),ge=Object.assign(U(he,[["__scopeId","data-v-8b232b80"]]),{__name:"CountrySelection"}),fe=""+new URL("road-bikeable.Db4va3SA.svg",import.meta.url).href,we=""+new URL("mascot-bikeable.DbZclA5e.svg",import.meta.url).href,ve=""+new URL("road-walkable.Dgu7uANz.svg",import.meta.url).href,ye=""+new URL("mascot-walkable.BVclV_eS.svg",import.meta.url).href,be=""+new URL("road-accessable.Ck-pkyz_.svg",import.meta.url).href,Se="data:image/svg+xml,%3csvg%20width='723'%20height='622'%20viewBox='0%200%20723%20622'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1092_3708)'%3e%3cpath%20d='M476.189%20555.643L417.847%20532.921L587.025%20454.194L644.092%20477.511L476.189%20555.643Z'%20fill='%23feae00'%20/%3e%3cpath%20d='M372.136%20527.161L313.775%20504.434L482.953%20425.707L540.02%20449.025L372.136%20527.161Z'%20fill='%23feae00'%20/%3e%3cpath%20d='M268.065%20498.674L209.722%20475.953L378.881%20397.22L435.948%20420.537L268.065%20498.674Z'%20fill='%23feae00'%20/%3e%3cpath%20d='M164.012%20470.188L105.67%20447.467L274.847%20368.739L331.895%20392.051L164.012%20470.188Z'%20fill='%23feae00'%20/%3e%3cpath%20d='M59.9402%20441.701L1.59804%20418.98L170.776%20340.252L227.843%20363.57L59.9402%20441.701Z'%20fill='%23feae00'%20/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1092_3708'%3e%3crect%20width='715'%20height='128'%20fill='white'%20transform='translate(35.1726%20301.499)%20rotate(15.9493)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_1092_3708'%3e%3crect%20width='361'%20height='458'%20fill='white'%20transform='translate(70.9716%201.9469)%20rotate(-0.308997)'%20/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Pe=""+new URL("mascot-schoolable.BF4L2PAo.svg",import.meta.url).href,Le=` 2 query Home($site: [String]) { 3 page: entry(section: "home", site: $site) { 4 id 5 title 6 uri 7 ... on home_Entry { 8 contentBlocks(orderBy: "sortOrder ASC") { 9 ...CONTENT_FRAGMENT 10 } 11 } 12 } 13 } 14 ${ie} 15`,Ce={class:"home"},$e={class:"home__hero"},ke={class:"home__hero-image"},Ne={key:0,class:"home__image-container"},Fe=["alt"],Re=["alt"],Ee={key:1,class:"home__image-container"},Be=["alt"],Ae=["alt"],Me={key:2,class:"home__image-container"},xe=["alt"],De=["alt"],Ie={key:3,class:"home__image-container"},Te=["alt"],Ue=["alt"],ze={class:"home__hero-content"},He={class:"home__title"},Ve={class:"home__description"},Ze={key:0,class:"home__country-selection"},Oe={class:"home__section-title"},qe={class:"home__filter-bar"},Ye={class:"home__spots-section"},je={class:"home__section-title"},Ge={class:"home__filter-bar"},Qe={class:"home__spots-section"},We={key:0},Je={class:"home__section-title"},Ke={class:"home__news-section"},Xe=A({__name:"index",async setup(_){let o,c;const{loggedIn:w}=oe(),{useCraftQuery:v}=re(),l=M(),a=l.platformName,p=g(()=>0,"$Ygk4zNSlca"),h=g(()=>!1,"$4V3tABKTwh"),m=g(()=>0,"$7WoucHsb_G"),y=g(()=>!1,"$Cbjx_UJquW"),{data:z}=([o,c]=b(()=>v("homePage",Le)),o=await o,c(),o),H=T(()=>z.value?.page),S=le(6),P=se(),{data:L,error:V,status:Z,refresh:C}=([o,c]=b(async()=>B("newSpotPreviews",async()=>{const s=await P.spotPreviews.getSpotPreviews({query:{size:(p.value+1)*S.value,regionId:l.countryCode.value!="world"?l.regi
15on.value:null}});return h.value=s.lastPage,s.spotPreviews},{watch:[l.countryCode]})),o=await o,c(),o),O=()=>{p.value++,C()},{data:$,error:q,status:Y,refresh:k}=([o,c]=b(async()=>B("recentlyFixedSpotPreviews",async()=>{const s=await P.spotPreviews.getSpotPreviews({query:{size:(m.value+1)*S.value,regionId:l.countryCode.value!="world"?l.region.value:null,fixed:"true",sort:"fixedOn",asc:!1}});return y.value=s.lastPage,s.spotPreviews},{watch:[l.countryCode]})),o=await o,c(),o),j=()=>{m.value++,k()};return ae(l.region,()=>{p.value=0,L.value=[],C(),m.value=0,$.value=[],k()}),(s,et)=>{const G=X,Q=ge,W=ce,N=_e,F=me,J=de;return n(),r("div",Ce,[e("div",$e,[e("div",ke,[t(a)==="bikeable"?(n(),r("div",Ne,[e("img",{src:fe,class:"home__road-image",alt:s.$t("accessibility.road_image")},null,8,Fe),e("img",{class:"home__mascot home__mascot--bikeable",src:we,alt:s.$t("accessibility.mascot_neutral")},null,8,Re)])):d("",!0),t(a)==="walkable"?(n(),r("div",Ee,[e("img",{src:ve,class:"home__road-image",alt:s.$t("accessibility.road_image")},null,8,Be),e("img",{class:"home__mascot home__mascot--walkable",src:ye,alt:s.$t("accessibility.mascot_neutral")},null,8,Ae)])):d("",!0),t(a)==="accessable"?(n(),r("div",Me,[e("img",{src:be,class:"home__road-image",alt:s.$t("accessibility.road_image")},null,8,xe),e("img",{class:"home__mascot home__mascot--accessable",src:ne,alt:s.$t("accessibility.mascot_neutral")},null,8,De)])):d("",!0),t(a)==="schoolable"?(n(),r("div",Ie,[e("img",{src:Se,class:"home__road-image",alt:s.$t("accessibility.road_image")},null,8,Te),e("img",{class:"home__mascot home__mascot--schoolable",src:Pe,alt:s.$t("accessibility.mascot_neutral")},null,8,Ue)])):d("",!0)]),e("div",ze,[e("h1",He,i(s.$t("general.slogan_"+t(a))),1),e("p",Ve,i(s.$t("home.explanation_"+t(a))),1),t(w)?d("",!0):(n(),E(G,{key:0,to:"/login"},{default:D(()=>[I(i(s.$t("home.cta_button_title")),1)]),_:1}))])]),t(l).countryCode.value==="world"?(n(),r("div",Ze,[u(Q)])):d("",!0),t(l).staticHomepage()?(n(),r(f,{key:2},[e("div",Oe,[e("h2",null,i(s.$t("home.new_spots_title")),1),e("div",qe,[u(N,{class:"home__filter-bar-item"})])]),e("div",Ye,[u(F,{spotPreviews:t(L),lastPage:t(h),spotPreviewStatus:t(Z),error:t(V),onLoadMore:O},null,8,["spotPreviews","lastPage","spotPreviewStatus","error"])]),e("div",je,[e("h2",null,i(s.$t("home.recently_fixed_spots_title")),1),e("div",Ge,[u(N,{class:"home__filter-bar-item"})])]),e("div",Qe,[u(F,{spotPreviews:t($),lastPage:t(y),spotPreviewStatus:t(Y),error:t(q),onLoadMore:j},null,8,["spotPreviews","lastPage","spotPreviewStatus","error"])]),t(l).countryCode.value!=="world"?(n(),r("div",We,[e("div",Je,[e("h2",null,i(s.$t("news.page_title")),1)]),e("div",Ke,[u(J,{pageSize:6})])])):d("",!0)],64)):(n(!0),r(f,{key:1},x(t(H)?.contentBlocks,(R,K)=>(n(),E(W,{key:R.id??K,content:R},null,8,["content"]))),128))])}}}),pt=U(Xe,[["__scopeId","data-v-e8657a1f"]]);export{pt 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.