1import{d as L,e,o as l,k as A,aS as se,q as h,a$ as O,n as G,j as S,i as t,b0 as D,t as f,b1 as q,c as s,F as g,y as C,D as N,R as F,a as r,m as y,b2 as ne,b3 as Q,b as j,b4 as oe,b5 as re,b6 as Z,w as B,b7 as T,b8 as U,b9 as ie,$ as de,ba as ce,h as ue,x as pe,bb as fe,ak as xe,C as me,bc as ve,bd as he,a2 as ge,l as _e,be as Y,a3 as be,z as ee,an as we,u as ye,aU as ke,bf as $e,ae as Ce}from"./eFdCCj3t.js";import{v as Ve,u as te}from"./BARU-S6K.js";import{u as W,_ as K,a as Se,v as Le,b as Re}from"./Cc0sq5vx.js";import{_ as H}from"./CcU9WZRu.js";import{I}from"./Dt71Bsnr.js";import{_ as z}from"./9fVRkACu.js";import{c as X}from"./D9EorpZc.js";import{_ as le}from"./h011ljZG.js";import{_ as Ee}from"./CDf80O8W.js";import{v as Ae}from"./DCH8OEMz.js";import{u as Ne,s as J}from"./BGCR842V.js";import{d as je}from"./9Sj_QenJ.js";import"./Bfd5Thr0.js";import"./C_YC4gad.js";import"./f5kBwyXV.js";import"./CxLkCp8M.js";import"./Djl7qdfq.js";import"./D_bAZNMZ.js";import"./Dk-HGWjQ.js";import"./CprriFlA.js";import"./n7VRO2w0.js";const De={class:"relative flex min-h-0 flex-1 flex-col overflow-hidden rounded-[20px] bg-[#0a140f]"},Te=["src"],Ie=["src","alt"],Me={class:"relative mt-auto flex items-end gap-4 bg-gradient-to-b from-transparent via-black/30 to-black/70 px-5 pb-5 pt-12 text-white"},Pe={class:"flex min-w-0 flex-1 flex-col gap-3"},He={class:"line-clamp-1 w-full shrink-0 overflow-hidden text-ellipsis whitespace-nowrap font-[National2Narrow] text-lg font-medium leading-[1.35] text-white",style:{"font-feature-settings":'"lnum", "tnum"'}},Oe={class:"line-clamp-2 w-full shrink-0 overflow-hidden font-[National2Condensed] text-3xl font-medium leading-8 text-white",style:{"font-feature-settings":'"lnum", "tnum"'}},Ge={key:0},ze=["href"],Be={class:"relative flex min-h-0 flex-1 flex-col overflow-hidden rounded-[20px] bg-[#0a140f]"},qe=["src"],Fe=["src","alt"],Ue={class:"relative mt-auto flex items-end gap-4 bg-gradient-to-b from-transparent via-black/30 to-black/70 px-5 pb-5 pt-12 text-white"},We={class:"flex min-w-0 flex-1 flex-col gap-3"},Ke={class:"line-clamp-1 w-full shrink-0 overflow-hidden text-ellipsis whitespace-nowrap font-[National2Narrow] text-lg font-medium leading-[1.35] text-white",style:{"font-feature-settings":'"lnum", "tnum"'}},Xe={class:"line-clamp-2 w-full shrink-0 overflow-hidden font-[National2Condensed] text-3xl font-medium leading-8 text-white",style:{"font-feature-settings":'"lnum", "tnum"'}},Ye={key:0},Je={class:"relative flex min-h-0 flex-1 flex-col overflow-hidden rounded-[20px] bg-[#0a140f]"},Qe=["src"],Ze=["src","alt"],et={class:"relative mt-auto flex items-end gap-4 bg-gradient-to-b from-transparent via-black/30 to-black/70 px-5 pb-5 pt-12 text-white"},tt={class:"flex min-w-0 flex-1 flex-col gap-3"},lt={class:"line-clamp-1 w-full shrink-0 overflow-hidden text-ellipsis whitespace-nowrap font-[National2Narrow] text-lg font-medium leading-[1.35] text-white",style:{"font-feature-settings":'"lnum", "tnum"'}},at={class:"line-clamp-2 w-full shrink-0 overflow-hidden font-[National2Condensed] text-3xl font-medium leading-8 text-white",style:{"font-feature-settings":'"lnum", "tnum"'}},st={key:0},nt=L({__name:"VeredaFeaturedCard",props:{vereda:{},useInternalLanding:{type:Boolean,default:!1}},setup(n){const a=n,i=y(()=>Ve(a.vereda)),u=y(()=>ne(a.vereda,{forceInternal:a.useInternalLanding,preferSystem:!0})),o=y(()=>["group flex w-full flex-col overflow-hidden rounded-[24px] p-1 shadow-[0px_4px_8px_rgba(0,0,0,0.1),0px_8px_16px_rgba(0,0,0,0.1)]",Q,"laptop:h-full laptop:min-h-0",u.value.kind!=="none"?"transition hover:opacity-95":""]);return(d,c)=>{const k=se;return e(u).kind==="internal"?(l(),A(k,{key:0,to:e(u).to,class:G(e(o)),style:h({backgroundColor:e(O)})},{default:S(()=>[t("div",De,[t("img",{src:e(i),alt:"","aria-hidden":"true",class:"absolute inset-0 h-full w-full scale-105 object-cover object-center blur-md"},null,8,Te),t("img",{src:e(i),alt:e(D)(n.vereda).join(" "),class:"absolute inset-0 h-full w-full object-cover object-center transition-transform duration-300 group-hover:scale-[1.02]"},null,8,Ie),c[0]||(c[0]=t("div",{"aria-hidden":"true",class:"pointer-events-none absolute inset-0 bg-gradient-to-b from-transparent via-black/30 to-black/70"},null,-1)),t("div",Me,[t("div",Pe,[t("p",He,f(e(q)(n.vereda)),1),t("p",Oe,[(l(!0),s(g,null,C(e(D)(n.vereda),(m,p)=>(l(),s(g,{key:p},[p>0?(l(),s("br",Ge)):N("",!0),F(" "+f(m),1)],64))),128))])]),r(I,{class:"h-4 w-4 shrink-0 text-white"})])])]),_:1},8,["to","class","style"])):e(u).kind==="external"?(l(),s("a",{key:1,href:e(u).href,target:"_blank",rel:"noopener noreferrer",class:G(e(o)),style:h({backgroundColor:e(O)})},[t("div",Be,[t("img",{src:e(i),alt:"","aria-hidden":"true",class:"absolute inset-0 h-full w-full scale-105 object-cover object-center blur-md"},null,8,qe),t("img",{src:e(i),alt:e(D)(n.vereda).join(" "),class:"absolute inset-0 h-full w-full object-cover object-center transition-transform duration-300 group-hover:scale-[1.02]"},null,8,Fe),c[1]||(c[1]=t("div",{"aria-hidden":"true",class:"pointer-events-none absolute inset-0 bg-gradient-to-b from-transparent via-black/30 to-black/70"},null,-1)),t("div",Ue,[t("div",We,[t("p",Ke,f(e(q)(n.vereda)),1),t("p",Xe,[(l(!0),s(g,null,C(e(D)(n.vereda),(m,p)=>(l(),s(g,{key:p},[p>0?(l(),s("br",Ye)):N("",!0),F(" "+f(m),1)],64))),128))])]),r(I,{class:"h-4 w-4 shrink-0 text-white"})])])],14,ze)):(l(),s("div",{key:2,class:G(e(o)),style:h({backgroundColor:e(O)})},[t("div",Je,[t("img",{src:e(i),alt:"","aria-hidden":"true",class:"absolute inset-0 h-full w-full scale-105 object-cover object-center blur-md"},null,8,Qe),t("img",{src:e(i),alt:e(D)(n.vereda).join(" "),class:"absolute inset-0 h-full w-full object-cover object-center"},null,8,Ze),c[2]||(c[2]=t("div",{"aria-hidden":"true",class:"pointer-events-none absolute inset-0 bg-gradient-to-b from-transparent via-black/30 to-black/70"},null,-1)),t("div",et,[t("div",tt,[t("p",lt,f(e(q)(n.vereda)),1),t("p",at,[(l(!0),s(g,null,C(e(D)(n.vereda),(m,p)=>(l(),s(g,{key:p},[p>0?(l(),s("br",st)):N("",!0),F(" "+f(m),1)],64))),128))])])])])],6))}}}),ot={class:"w-full font-[National2Condensed] text-[48px] font-medium leading-none text-white",style:{"font-feature-settings":'"lnum", "tnum"'}},rt={class:"w-full font-[National2] text-[14px] leading-[1.15] tracking-[0.14px] text-white"},it={class:"mt-auto flex flex-col gap-3"},dt=L({__name:"VeredaIntroCard",props:{title:{},description:{}},emits:["openMap","openRules"],setup(n){const{t:a}=j("veredas");return(i,u)=>
1(l(),s("div",{class:G(["flex h-full w-full flex-col gap-4 rounded-[24px] px-6 pb-10 pt-8 text-white shadow-[0px_4px_4px_rgba(0,0,0,0.1),0px_8px_8px_rgba(0,0,0,0.1)]",e(oe)]),style:h({backgroundColor:e(O)})},[t("h2",ot,f(n.title),1),t("p",rt,f(n.description),1),u[2]||(u[2]=t("hr",{class:"border-white/20"},null,-1)),t("div",it,[r(z,{variant:"accent",label:e(a)("actions.viewMap",{defaultValue:"Ver mapa"}),onClick:u[0]||(u[0]=o=>i.$emit("openMap"))},null,8,["label"]),r(z,{to:e(re),label:e(a)("actions.directory",{defaultValue:"Directorio de veredas"})},null,8,["to","label"]),r(z,{to:e(Z),label:e(a)("actions.planVisit",{defaultValue:"Planifica tu visita"})},null,8,["to","label"]),r(z,{label:e(a)("actions.rules",{defaultValue:"Normas en la vereda"}),onClick:u[1]||(u[1]=o=>i.$emit("openRules"))},null,8,["label"])])],6))}}),ct={class:"grid grid-cols-1 gap-6 laptop:grid-cols-3 laptop:items-stretch laptop:gap-x-8 laptop:gap-y-6"},ut={class:"flex flex-col gap-6 laptop:col-span-2 laptop:h-[560px] laptop:flex-row laptop:items-stretch"},pt=L({__name:"VeredaHeroSection",props:{featuredVeredas:{},loading:{type:Boolean}},emits:["openMap","openRules"],setup(n){const a=n,{t:i}=j("veredas"),u=y(()=>[...a.featuredVeredas].sort((o,d)=>o.slug==="laguna-guaniquilla"?-1:d.slug==="laguna-guaniquilla"?1:(o.display_order??999)-(d.display_order??999)));return(o,d)=>(l(),s("section",null,[t("div",ct,[r(dt,{title:e(i)("intro.title",{defaultValue:"Acércate a la naturaleza y a tu bienestar"}),description:e(i)("intro.description",{defaultValue:"Más de 32 millas de veredas en las áreas naturales protegidas que cuidamos. VisÃtalas, disfruta y aprende sobre la biodiversidad y los ecosistemas de nuestro archipielago."}),class:"laptop:col-span-1 laptop:h-[560px]",onOpenMap:d[0]||(d[0]=c=>o.$emit("openMap")),onOpenRules:d[1]||(d[1]=c=>o.$emit("openRules"))},null,8,["title","description"]),t("div",ut,[n.loading?(l(),s("div",{key:0,class:G(["flex flex-1 items-center justify-center rounded-[24px] laptop:h-full",e(Q)]),style:{backgroundColor:"#1a301b"}},[...d[2]||(d[2]=[t("span",{class:"loading loading-ring loading-lg text-white"},null,-1)])],2)):(l(!0),s(g,{key:1},C(e(u),c=>(l(),A(nt,{key:c.id,vereda:c,class:"w-full laptop:h-full laptop:flex-1"},null,8,["vereda"]))),128))])])]))}}),ft={class:"flex flex-col gap-4 py-8"},xt={class:"relative min-h-[215px]"},mt={key:0,class:"flex min-h-[215px] items-center justify-center"},vt={key:1,class:"relative overflow-hidden"},ht=L({__name:"VeredaDiscoverCarousel",props:{veredas:{},loading:{type:Boolean}},setup(n){const a=n,{t:i}=j("veredas"),{scroller:u,currentIndex:o,groupCount:d,visibleCount:c,showLeftGradient:k,showRightGradient:m,onScroll:p,scrollCarousel:$,refreshCarousel:_}=W(()=>a.veredas.length),V=y(()=>X(a.veredas,c.value));return B(()=>[a.loading,a.veredas.length],([b])=>{b||_()},{immediate:!0}),(b,x)=>(l(),s("section",ft,[r(K,{title:e(i)("discover.title",{defaultValue:"Descubre otros sistemas y veredas"}),"show-arrow":"","current-index":e(o),total:e(d),"visible-count":e(c),"previous-label":e(i)("carousel.previous",{defaultValue:"Anterior"}),"next-label":e(i)("carousel.next",{defaultValue:"Siguiente"}),"pagination-label":e(i)("discover.paginationLabel",{defaultValue:"Paginación del carrusel de veredas"}),onPrev:x[0]||(x[0]=w=>e($)("prev")),onNext:x[1]||(x[1]=w=>e($)("next"))},null,8,["title","current-index","total","visible-count","previous-label","next-label","pagination-label"]),t("div",xt,[n.loading?(l(),s("div",mt,[...x[3]||(x[3]=[t("span",{class:"loading loading-ring loading-lg text-white"},null,-1)])])):(l(),s("div",vt,[r(T,{direction:"left",show:e(k)},null,8,["show"]),r(T,{direction:"right",show:e(m)},null,8,["show"]),t("div",{ref_key:"scroller",ref:u,class:"flex gap-6 overflow-x-auto scroll-smooth pb-2 [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",style:{"scroll-snap-type":"x mandatory"},onScroll:x[2]||(x[2]=(...w)=>e(p)&&e(p)(...w))},[(l(!0),s(g,null,C(V.value,(w,M)=>(l(),s("div",{key:M,"data-carousel-page":"",class:"box-border flex w-max max-w-[95%] shrink-0 gap-6 overflow-hidden",style:{"scroll-snap-align":"start","scroll-snap-stop":"always"}},[(l(!0),s(g,null,C(w,v=>(l(),s("div",{key:v.id,"data-carousel-card":"",class:"w-[234px] shrink-0"},[r(le,{vereda:v},null,8,["vereda"])]))),128))]))),128))],544)]))])]))}}),gt={class:"flex flex-col gap-4 py-8"},_t={class:"relative min-h-[128px]"},bt={key:0,class:"flex min-h-[128px] items-center justify-center"},wt={key:1,class:"relative overflow-hidden"},yt={class:"relative aspect-[21/9] w-full overflow-hidden rounded-lg"},kt=["src","alt"],$t={class:"flex flex-1 items-center justify-between px-1 py-1"},Ct={class:"truncate font-national2Condensed text-sm font-medium leading-[0.9]"},Vt={class:"text-white"},St=L({__name:"VeredaSpeciesCarousel",setup(n){const{t:a}=j("veredas"),{data:i,pending:u}=Se(),o=y(()=>i.value??[]),{scroller:d,currentIndex:c,groupCount:k,visibleCount:m,showLeftGradient:p,showRightGradient:$,onScroll:_,scrollCarousel:V,refreshCarousel:b}
1=W(o),x=y(()=>X(o.value,m.value));B(()=>[u.value,o.value.length],([v])=>{v||b()},{immediate:!0});function w(v){return Le(v)}function M(v){return v?v.replace(/â/g," - "):""}return(v,R)=>(l(),s("section",gt,[r(K,{title:e(a)("species.title",{defaultValue:"Especies en las Veredas"}),"current-index":e(c),total:e(k),"visible-count":e(m),"previous-label":e(a)("carousel.previous",{defaultValue:"Anterior"}),"next-label":e(a)("carousel.next",{defaultValue:"Siguiente"}),onPrev:R[0]||(R[0]=P=>e(V)("prev")),onNext:R[1]||(R[1]=P=>e(V)("next"))},null,8,["title","current-index","total","visible-count","previous-label","next-label"]),t("div",_t,[e(u)?(l(),s("div",bt,[...R[3]||(R[3]=[t("span",{class:"loading loading-ring loading-lg text-white"},null,-1)])])):o.value.length?(l(),s("div",wt,[r(T,{direction:"left",show:e(p)},null,8,["show"]),r(T,{direction:"right",show:e($)},null,8,["show"]),t("div",{ref_key:"scroller",ref:d,class:"flex gap-6 overflow-x-auto scroll-smooth pb-2 [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",style:{"scroll-snap-type":"x mandatory"},onScroll:R[2]||(R[2]=(...P)=>e(_)&&e(_)(...P))},[(l(!0),s(g,null,C(x.value,(P,ae)=>(l(),s("div",{key:ae,"data-carousel-page":"",class:"box-border flex w-max max-w-[95%] shrink-0 gap-6 overflow-hidden",style:{"scroll-snap-align":"start","scroll-snap-stop":"always"}},[(l(!0),s(g,null,C(P,E=>(l(),A(Ee,{key:E.id,"data-carousel-card":"",href:w(E),class:"group flex h-[128px] w-[230px] shrink-0 flex-col overflow-hidden rounded-xl p-1 text-white shadow-[0px_4px_8px_rgba(0,0,0,0.1),0px_8px_16px_rgba(0,0,0,0.1)] transition hover:opacity-95",style:h({backgroundColor:e(U)})},{default:S(()=>[t("div",yt,[t("img",{src:E.image_url,alt:E.common_name,class:"h-full w-full object-cover transition-transform duration-300 group-hover:scale-105"},null,8,kt),E.season_label?(l(),s("span",{key:0,class:"absolute right-1 top-1 rounded px-1.5 py-1.5 font-national2Condensed text-xs font-medium uppercase tracking-[0.48px] text-white",style:h({backgroundColor:e(U)})},f(M(E.season_label)),5)):N("",!0)]),t("div",$t,[t("p",Ct,[t("span",{style:h({color:e(ie)})},f(E.activity_label)+" | ",5),t("span",Vt,f(E.common_name),1)]),r(I,{class:"h-2.5 w-2.5 shrink-0 text-white"})])]),_:2},1032,["href","style"]))),128))]))),128))],544)])):N("",!0)])]))}}),Lt=de("/images/veredas/cycling-banner.mp4"),Rt={class:"flex gap-6 py-8 laptop:flex-row"},Et={class:"flex h-full flex-col gap-6 p-6 text-white"},At={class:"flex flex-col gap-3"},Nt={class:"font-national2Condensed text-2xl font-medium uppercase leading-[0.9] text-white"},jt={class:"font-national2Condensed text-[48px] font-medium leading-none"},Dt={class:"max-w-[320px] font-[National2Narrow] text-[18px] leading-[1.35] tracking-[-0.18px] text-white"},Tt={class:"grid min-w-0 flex-1 grid-cols-1 gap-6 tablet:grid-cols-3"},It=L({__name:"VeredaCyclingSection",setup(n){const{t:a}=j("veredas"),{data:i}=te(),u=y(()=>{const o=i.value;return Array.isArray(o)?ce.map(d=>o.find(c=>c.slug===d)).filter(Boolean):[]});return(o,d)=>(l(),s("section",Rt,[t("div",{class:"relative flex h-[440px] w-full shrink-0 flex-col overflow-hidden rounded-[24px] p-1 shadow-[0px_4px_8px_rgba(0,0,0,0.1),0px_8px_16px_rgba(0,0,0,0.1)] laptop:w-[382px]",style:h({backgroundColor:e(O)})},[t("div",Et,[t("div",At,[t("p",Nt,f(e(a)("cycling.kicker",{defaultValue:"Ciclismo y aventura"})),1),t("h2",jt,f(e(a)("cycling.title",{defaultValue:"Pedalea la vereda"})),1)]),t("p",Dt,f(e(a)("cycling.descriptionShort",{defaultValue:"Vive una experiencia única entre paisajes naturales."})),1),d[0]||(d[0]=t("video",{src:Lt,autoplay:"",muted:"",loop:"",playsinline:"","aria-hidden":"true",class:"pointer-events-none absolute bottom-0 left-0 h-[215px] w-full object-cover object-bottom"},null,-1))])],4),t("div",Tt,[(l(!0),s(g,null,C(e(u),c=>(l(),A(le,{key:c.id,vereda:c,tall:""},null,8,["vereda"]))),128))])]))}}),Mt={class:"flex flex-col gap-6 py-8"},Pt={class:"relative overflow-hidden"},Ht=["href"],Ot=["src","alt"],Gt={class:"min-w-0 flex-1 text-[#d3d3d3]"},zt={class:"font-national2Condensed text-[32px] font-medium leading-[0.95] text-[#d3d3d3]"},Bt={class:"mt-4 font-[National2] text-[18px] leading-[1.5] tracking-[-0.18px] text-[#d3d3d3]"}
1,qt=L({__name:"VeredaDigitalToolsCarousel",setup(n){const{t:a}=j("veredas"),i=y(()=>Ae().map(b=>({id:b.id,name:a.value(`digitalTools.${b.id}.name`),description:a.value(`digitalTools.${b.id}.description`),icon:b.icon,link:b.href}))),{scroller:u,currentIndex:o,groupCount:d,visibleCount:c,showLeftGradient:k,showRightGradient:m,onScroll:p,scrollCarousel:$,refreshCarousel:_}=W(i),V=y(()=>X(i.value,c.value));return B(i,_,{immediate:!0,deep:!0}),(b,x)=>(l(),s("section",Mt,[r(K,{title:e(a)("digitalTools.title",{defaultValue:"Herramientas digitales y ciencia ciudadana en la vereda"}),"show-arrow":"","current-index":e(o),total:e(d),"visible-count":e(c),"previous-label":e(a)("carousel.previous",{defaultValue:"Anterior"}),"next-label":e(a)("carousel.next",{defaultValue:"Siguiente"}),onPrev:x[0]||(x[0]=w=>e($)("prev")),onNext:x[1]||(x[1]=w=>e($)("next"))},null,8,["title","current-index","total","visible-count","previous-label","next-label"]),t("div",Pt,[r(T,{direction:"left",show:e(k)},null,8,["show"]),r(T,{direction:"right",show:e(m)},null,8,["show"]),t("div",{ref_key:"scroller",ref:u,class:"flex gap-6 overflow-x-auto scroll-smooth pb-2 [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",style:{"scroll-snap-type":"x mandatory"},onScroll:x[2]||(x[2]=(...w)=>e(p)&&e(p)(...w))},[(l(!0),s(g,null,C(V.value,(w,M)=>(l(),s("div",{key:M,"data-carousel-page":"",class:"box-border flex w-max max-w-[95%] shrink-0 gap-6 overflow-hidden",style:{"scroll-snap-align":"start","scroll-snap-stop":"always"}},[(l(!0),s(g,null,C(w,v=>(l(),s("a",{key:v.id,"data-carousel-card":"",href:v.link,target:"_blank",rel:"noopener noreferrer",class:"group relative flex h-[108px] w-[408px] shrink-0 items-center gap-6 overflow-hidden rounded-[24px] p-3 transition hover:opacity-95",style:h({backgroundColor:e(U)})},[t("img",{src:v.icon,alt:v.name,class:"h-[84px] w-[84px] shrink-0 rounded-[17px] object-cover"},null,8,Ot),t("div",Gt,[t("p",zt,f(v.name),1),t("p",Bt,f(v.description),1)]),r(I,{class:"absolute right-5 top-[18px] h-4 w-4 shrink-0 text-[#d3d3d3]"})],12,Ht))),128))]))),128))],544)])]))}}),Ft=["aria-label"],Ut=["aria-label"],Wt={class:"flex items-start justify-between gap-4 pl-6 pr-4"},Kt={class:"min-w-0 font-[National2Condensed] text-[48px] font-medium leading-none text-white",style:{"font-feature-settings":'"lnum", "tnum"'}},Xt=["aria-label"],Yt={class:"flex flex-col gap-12 rounded-[20px] bg-white p-6"},Jt={class:"font-[National2] text-[18px] font-normal leading-[1.5] tracking-[-0.18px] text-black",style:{"font-feature-settings":'"lnum", "tnum"'}},Qt={class:"min-w-0 truncate"},Zt=["href"],el={class:"min-w-0 truncate"},tl=L({__name:"VeredaInfoModal",props:{title:{},description:{},closeLabel:{},ctaLabel:{},ctaHref:{}},setup(n,{expose:a}){const i=n,u=ue(),o=ee(!1),d=Ne(o),c=y(()=>!!i.ctaHref&&i.ctaHref.startsWith("/")),k=y(()=>c.value&&i.ctaHref?u(i.ctaHref):void 0),m=y(()=>({top:`${d.value.top}px`,left:`${d.value.left}px`,width:`${d.value.width}px`,height:`${d.value.height}px`}));function p(){o.value=!1}function $(){o.value=!0}return B(o,_=>{J(_)}),pe(()=>{o.value&&J(!1)}),fe(window,"keydown",_=>{_.key==="Escape"&&o.value&&(_.preventDefault(),p())}),a({show:$,close:p}),(_,V)=>{const b=_e,x=be;return l(),A(x,null,{default:S(()=>[(l(),A(xe,{to:"body"},[e(o)?(l(),s("div",{key:0,class:"fixed z-[9999] flex items-center justify-center overflow-y-auto p-4",style:h(e(m)),role:"dialog","aria-modal":"true","aria-label":n.title},[t("button",{type:"button",class:"absolute inset-0 bg-black/60 backdrop-blur","aria-label":n.closeLabel,onClick:p},null,8,Ut),t("div",{class:"relative z-10 w-full max-w-[640px] overflow-visible",onClick:V[0]||(V[0]=me(()=>{},["stop"]))},[t("div",{class:"flex flex-col gap-6 rounded-[24px] px-1 pb-1 pt-6 shadow-[0px_8px_48px_0px_rgba(0,0,0,0.5)]",style:h({backgroundColor:e(ve)})},[t("div",Wt,[t("h2",Kt,f(n.title),1),t("button",{type:"button",class:"flex h-11 w-12 shrink-0 cursor-pointer items-center justify-center rounded-lg shadow-[0px_4px_4px_rgba(0,0,0,0.1),0px_8px_8px_rgba(0,0,0,0.1)] transition-opacity hover:opacity-80",style:h({backgroundColor:e(he)}),"aria-label":n.closeLabel,onClick:p},[r(ge,{class:"h-4 w-4 text-white"})],12,Xt)]),t("div",Yt,[t("p",Jt,f(n.description),1),n.ctaLabel&&e(k)?(l(),A(b,{key:0,to:e(k),class:"inline-flex h-11 min-h-11 w-fit max-w-full items-center gap-3 rounded-lg px-4 py-3.5 font-[National2] text-[18px] font-medium leading-[1.5] tracking-[-0.18px] text-white transition hover:opacity-90",style:h([{backgroundColor:e(Y)},{"font-feature-settings":'"lnum", "tnum"'}]),onClick:p},{default:S(()=>[t("span",Qt,f(n.ctaLabel),1),r(I,{class:"h-3.5 w-3.5 shrink-0 text-white"})]),_:1},8,["to","style"])):n.ctaLabel&&n.ctaHref?(l(),s("a",{key:1,href:n.ctaHref,target:"_blank",rel:"noopener noreferrer",class:"inline-flex h-11 min-h-11 w-fit max-w-full items-center gap-3 rounded-lg px-4 py-3.5 font-[National2] text-[18px] font-medium leading-[1.5] tracking-[-0.18px] text-white transition hover:opacity-90",style:h([{backgroundColor:e(Y)},{"font-feature-settings":'"lnum", "tnum"'}])},[t("span",el,f(n.ctaLabel),1),r(I,{class:"h-3.5 w-3.5 shrink-0 text-white"})],12,Zt)):N("",!0)])],4)])],12,Ft)):N("",!0)]))]),_:1})}}}),kl=L({__name:"index",setup(n){const{t:a}=j("veredas"),i=Ce(),u=we(),{pending:o,featuredVeredas:d,carouselVeredas:c}=te(),{sortedVeredas:k}=Re(c),m=ee(null);ye({title:a("seo.title",{defaultValue:"Veredas - Para la Naturaleza"}),description:a("seo.description",{defaultValue:"Explora más de 32 millas de veredas en las áreas naturales protegidas que cuidamos."}),ogTitle:a("seo.ogTitle",{defaultValue:"Veredas - Para la Naturaleza"}),ogImage:`${i.public.siteUrl}/images/veredas/cabezas.jpg`}),je({layoutSubnav:ke({hideSubnavOnIndex:!0})});function p(){u.openMapWithLocationTab("veredas")}function $(){m.value?.show()}return(_,V)=>(l(),s("div",{class:"min-h-screen",style:h({backgroundColor:e($e)})},[r(H,null,{default:S(()=>[r(pt,{"featured-veredas":e(d),loading:e(o),onOpenMap:p,onOpenRules:$},null,8,["featured-veredas","loading"])]),_:1}),r(H,null,{default:S(()=>[r(ht,{veredas:e(k),loading:e(o)},null,8,["veredas","loading"])]),_:1}),r(H,null,{default:S(()=>[r(St)]),_:1}),r(H,null,{default:S(()=>[r(It)]),_:1}),r(H,null,{default:S(()=>[r(qt)]),_:1}),r(tl,{ref_key:"rulesModal",ref:m,title:e(a)("modal.rules.title",{defaultValue:"Normas de la vereda"}
1),description:e(a)("modal.rules.description",{defaultValue:"Evalúa las opciones que respondan mejor a tus necesidades y al tipo de actividad que deseas realizar. Accede al descriptivo de la vereda y conoce en detalle las medidas que debes considerar. Revisa las condiciones climáticas y prepárate para cualquier eventualidad."}),"close-label":e(a)("modal.close",{defaultValue:"Cerrar"}),"cta-label":e(a)("modal.rules.cta",{defaultValue:"Planifica tu vereda"}),"cta-href":e(Z)},null,8,["title","description","close-label","cta-label","cta-href"])],4))}});export{kl 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.