1import{_ as Te}from"./B1eWsx2H.js";import{d as ie,b as re,o as s,c as i,i as t,t as r,e,a as w,aK as Ie,a0 as Fe,ah as Ke,j as se,D as N,F as C,y as $,k as L,z as E,m as k,B as Le,Z as De,n as U,R as K,a1 as pe,$ as Ae,h as qe,bO as Pe,aT as je,w as ne,v as Be,u as Ee,cT as ze,q as Me,O as Ue,Q as Re,S as Ge,aQ as Qe,l as Oe,M as Ve}from"./D7P3cwJT.js";import{a as He,b as Ze,c as Je,d as We,e as Xe,f as Ye,_ as et}from"./BNgZGfwn.js";import{_ as tt}from"./CJc5_MTU.js";import{I as nt}from"./DFPM27nH.js";import{I as ue}from"./CSoOT286.js";import{e as st}from"./DBvswwtF.js";import{u as lt}from"./Ch43RVlM.js";import{u as at}from"./9dKOjcIs.js";import{d as ot}from"./9Sj_QenJ.js";import"./Bfd5Thr0.js";import"./C_YC4gad.js";import"./C-UVnSwA.js";import"./YjDnmmr6.js";import"./BuKNpcwu.js";import"./CxvqS8-q.js";import"./DaMDcely.js";import"./CprriFlA.js";const it={class:"flex flex-col gap-3"},rt={class:"flex items-center justify-end gap-3"},ct=["aria-label"],dt=["aria-label"],ut={class:"flex w-full flex-col gap-6 rounded-[24px] bg-[#abccbf] text-black shadow-[0px_1px_1px_rgba(0,0,0,0.05),0px_2px_4px_rgba(0,0,0,0.1)]"},pt={key:0,class:"flex flex-col gap-6 px-6 pb-0 pt-8"},ft={key:1,class:"p-1"},bt={key:0,class:"flex h-[200px] items-center justify-center overflow-hidden rounded-[20px] bg-[#93bdac] p-3.5"},xt=["src"],mt={key:1,class:"grid grid-cols-2 gap-1 p-1"},_t={class:"text-center font-[National2Condensed] text-xl font-medium leading-[0.95] tracking-[0.32px] text-white laptop:text-2xl"},gt={key:2,class:"grid grid-cols-2 gap-1 p-1"},ht={class:"text-center font-[National2Condensed] text-xl font-medium leading-[0.95] tracking-[0.32px] text-white laptop:text-2xl"},vt={key:2,class:"flex flex-col gap-1 px-1 pb-1"},yt={class:"font-[National2Condensed] text-2xl font-medium leading-[0.9] text-white"},kt={key:3,class:"flex flex-col gap-6 px-6 pb-8 pt-0"},wt=ie({__name:"TreesInformationCarousel",setup(c){const{t:o}=re(["common","arboles"]),d=["distribucion","espacio","altura","crecimiento","servicios","tolerancia"],m=E(0),b=k(()=>d[m.value]??"distribucion"),y=k(()=>b.value==="distribucion");function T(){m.value=(m.value+1)%d.length}function A(){m.value=m.value===0?d.length-1:m.value-1}const V={distribucion:"distribution",espacio:"arboles_space",altura:"arboles_height",crecimiento:"arboles_growth",servicios:"arboles_services",tolerancia:"arboles_tolerance"},H={distribucion:"Distribución",espacio:"Espacio",altura:"Altura",crecimiento:"Crecimiento",servicios:"Servicios",tolerancia:"Tolerancia"},q={distribucion:"arboles_distribution_description",espacio:"arboles_space_description",altura:"arboles_height_description",crecimiento:"arboles_growth_description",servicios:"arboles_services_description",tolerancia:"arboles_tolerance_description"},P=[{titleKey:"arboles_endemic",titleFallback:"Endémica",descriptionKey:"arboles_endemic_description",descriptionFallback:"Especie que solo se encuentra naturalmente en una región especÃfica del mundo."},{titleKey:"arboles_native",titleFallback:"Nativa",descriptionKey:"arboles_native_description",descriptionFallback:"Especie originaria y presente de forma natural en una región especÃfica, sin intervención humana."},{titleKey:"arboles_naturalized",titleFallback:"Naturalizada",descriptionKey:"arboles_naturalized_description",descriptionFallback:"Especie introducida que se adapta y reproduce de forma estable en un nuevo ambiente."},{titleKey:"arboles_introduced",titleFallback:"Introducida",descriptionKey:"arboles_introduced_description",descriptionFallback:"Especie llevada por humanos a una región donde no es originaria."}],F=[{id:"biodiversity",labelKey:"arboles_biodiversity",fallback:"Biodiversidad"},{id:"flowers",labelKey:"arboles_flowers",fallback:"Flores"},{id:"fruits",labelKey:"arboles_fruits",fallback:"Frutos"},{id:"ornament",labelKey:"arboles_ornament",fallback:"Ornato"},{id:"shade",labelKey:"arboles_shade",fallback:"Sombra"},{id:"medicinal",labelKey:"arboles_medicinal",fallback:"Uso medicinal"}],O=[{labelKey:"arboles_humid",fallback:"Ambiente húmedo"},{labelKey:"arboles_poor",fallback:"Ambiente pobre"},{labelKey:"arboles_dry",fallback:"Ambiente seco"},{labelKey:"arboles_clay",fallback:"Arcilloso"},{labelKey:"arboles_shade",fallback:"Sombra"},{labelKey:"arboles_dry_areas",fallback:"Ãreas secas"},{labelKey:"arboles_drainage",fallback:"Buen drenaje"},{labelKey:"arboles_salt",fallback:"Salitre"},{labelKey:"arboles_sun",fallback:"Sol directo"},{labelKey:"arboles_soil_variety",fallback:"Variedad de suelos"}],j={espacio:"/images/info-arbol-espacio.png",altura:"/images/info-arbol-altura.png",crecimiento:"/images/info-arbol-crecimiento.png"},I={fontFeatureSettings:'"lnum" 1, "tnum" 1'};return(f,p)=>{const _=He,a=Ze,x=Je,S=We,D=Xe,J=Ye;return s(),i("div",it,[t("div",rt,[t("div",{class:"flex h-11 items-center gap-1 rounded-lg bg-[#abccbf] px-4 font-[National2] text-[18px] font-medium leading-[1.5] tracking-[-0.18px] text-black",style:I,"aria-live":"polite"},[t("span",null,r(e(m)+1),1),p[0]||(p[0]=t("span",null,"/",-1)),t("span",null,r(d.length),1)]),t("button",{type:"button",class:"flex h-11 w-[46px] items-center justify-center rounded-lg bg-[#c1d9cf] transition hover:brightness-95","aria-label":e(o)("arboles.carousel.prev","Sección anterior"),onClick:A},[w(Ie,{class:"h-3.5 w-3.5 text-black"})],8,ct),t("button",{type:"button",class:"flex h-11 w-11 items-center justify-center rounded-lg bg-[#c1d9cf] transition hover:brightness-95","aria-label":e(o)("arboles.carousel.next","Siguiente sección"),onClick:T},[w(Fe,{class:"h-3.5 w-3.5 text-black"})],8,dt)]),t("div",ut,[w(Ke,{name:"fade",mode:"out-in"},{default:se(()=>[(s(),i("div",{key:e(b),class:"flex flex-col gap-6"},[e(y)?(s(),i("div",pt,[t("h2",{class:"font-[National2Condensed] text-[48px] font-medium leading-none text-black",style:I},r(e(o)(V[e(b)],H[e(b)])),1),t("p",{class:"font-[National2] text-[18px] leading-[1.5] tracking-[-0.18px] text-black",style:I},r(e(o)(q[e(b)])),1)])):N("",!0),e(y)?N("",!0):(s(),i("div",ft,[j[e(b)]?(s(),i("div",bt,[t("img",{src:j[e(b)],alt:"",class:"max-h-full max-w-full object-contain"},null,8,xt)])):e(b)==="servicios"?(s(),i("div",mt,[(s(),i(C,null,$(F,g=>t("div",{key:g.id,class:"flex flex-col items-center justify-center gap-6 self-stretch rounded-[20px] bg-[#479371] p-6"},[g.id==="biodiversity"?(s(),L(_,{key:0,class:"h-12 w-12 fill-white"})):g.id==="flowers"?(s(),L(a,{key:1,class:"h-12 w-12 fill-white"})):g.id==="fruits"?(s(),L(x,{key:2,class:"h-12 w-12 fill-white"})):g.id==="ornament"?(s(),L(S,{key:3,class:"h-12 w-12 fill-white"})):g.id==="shade"?(s(),L(D,{key:4,class:"h-12 w-12 fill-white"})):g.id==="medicinal"?(s(),L(J,{key:5,class:"h-12 w-12 fill-white"})):N("",!0),t("p",_t,r(e(o)(g.labelKey,g.fallback)),1)])),64))])):e(b)==="tolerancia"?(s(),i("div",gt,[(s(),i(C,null,$(O,g=>t("div",{key:g.labelKey,class:"flex h-20 items-center justify-center rounded-[20px] bg-[#479371] px-3 py-2"},[t("p",ht,r(e(o)(g.labelKey,g.fallback)),1)])),64))])):N("",!0)])),e(y)?(s(),i("div",vt,[(s(),i(C,null,$(P,g=>
1t("div",{key:g.titleKey,class:"flex flex-col gap-4 rounded-[20px] bg-[#479371] p-5"},[t("p",yt,r(e(o)(g.titleKey,g.titleFallback)),1),t("p",{class:"font-[National2] text-[18px] leading-[1.5] tracking-[-0.18px] text-white",style:I},r(e(o)(g.descriptionKey,g.descriptionFallback)),1)])),64))])):N("",!0),e(y)?N("",!0):(s(),i("div",kt,[t("h2",{class:"font-[National2Condensed] text-[48px] font-medium leading-none text-black",style:I},r(e(o)(V[e(b)],H[e(b)])),1),t("p",{class:"font-[National2] text-[18px] leading-[1.5] tracking-[-0.18px] text-black",style:I},r(e(o)(q[e(b)])),1)]))]))]),_:1})])])}}}),Ct=Le(wt,[["__scopeId","data-v-90dd923b"]]),$t=De("/images/viveros_hero.png"),St={class:"grid grid-cols-1 gap-8 md:grid-cols-2 md:gap-x-8 md:gap-y-8"},Nt={class:"flex min-w-0 flex-col gap-4"},Tt={class:"font-[National2Condensed] text-[32px] font-medium leading-none text-black",style:{"font-feature-settings":`"lnum" 1, 2 "tnum" 1`}},It={class:"flex flex-wrap gap-2"},Ft=["onClick"],Kt={class:"flex min-w-0 flex-col gap-4"},Lt={class:"font-[National2Condensed] text-[32px] font-medium leading-none text-black",style:{"font-feature-settings":`"lnum" 1, 3 "tnum" 1`}},Dt={class:"flex flex-wrap gap-2"},At=["onClick"],qt={class:"flex min-w-0 flex-col gap-4"},Pt={class:"font-[National2Condensed] text-[32px] font-medium leading-none text-black",style:{"font-feature-settings":`"lnum" 1, 4 "tnum" 1`}},jt={class:"flex flex-wrap gap-2"},Bt=["onClick"],Et={class:"flex min-w-0 flex-col gap-4"},zt={class:"font-[National2Condensed] text-[32px] font-medium leading-none text-black",style:{"font-feature-settings":`"lnum" 1, 5 "tnum" 1`}},Mt={class:"flex flex-wrap gap-2"},Ut=["onClick"],Rt={class:"flex min-w-0 flex-col gap-4"}
5,Gt={class:"font-[National2Condensed] text-[32px] font-medium leading-none text-black",style:{"font-feature-settings":`"lnum" 1, 6 "tnum" 1`}},Qt={class:"flex flex-wrap gap-2"},Ot=["onClick"],Vt={class:"flex min-w-0 flex-col gap-4"},Ht={class:"font-[National2Condensed] text-[32px] font-medium leading-none text-black",style:{"font-feature-settings":`"lnum" 1, 7 "tnum" 1`}},Zt={class:"flex flex-wrap gap-2"},Jt=["onClick"],Wt={class:"flex flex-wrap items-center gap-2"},Xt=["aria-label"],Yt=ie({__name:"TreeFiltersPanel",props:{selectedDistributions:{},selectedSpaces:{},selectedGrowths:{},selectedTolerances:{},selectedServices:{},alturaFiltros:{},species:{},embedded:{type:Boolean}},emits:["update:selectedDistributions","update:selectedSpaces","update:selectedGrowths","update:selectedTolerances","update:selectedServices","update:alturaFiltros","reset","close"],setup(c,{emit:o}){const{t:d}=re(["arboles","common"]),m=c,b=o,y=f=>{const p=new Set,_=[];return f.map(a=>typeof a=="string"?a.trim():"").filter(a=>a.length>0).forEach(a=>{const x=a.toLowerCase();p.has(x)||(p.add(x),_.push(a))}),_.sort((a,x)=>a.localeCompare(x))},T=k(()=>y(m.species?.map(f=>f.distribution)??[])),A=k(()=>y(m.species?.map(f=>f.space)??[])),V=k(()=>y(m.species?.map(f=>f.growth)??[])),H=k(()=>y(m.species?.flatMap(f=>typeof f.tolerance!="string"?[]:f.tolerance.split(",").map(p=>p.trim()).filter(p=>p.length>0))??[])),q=k(()=>y(m.species?.flatMap(f=>typeof f.service!="string"?[]:f.service.split(",").map(p=>p.trim()).filter(p=>p.length>0))??[]));function P(f){return f?"bg-black text-white":"border-2 border-black/50 bg-black/[0.01] text-black backdrop-blur-sm"}function F(f,p,_){const x=f.indexOf(p)>-1?f.filter(S=>S!==p):[...f,p];b(`update:${_}`,x)}function O(f){b("update:alturaFiltros",m.alturaFiltros.map((p,_)=>_===f?{...p,selected:!p.selected}:p))}function j(){b("reset")}function I(){b("close")}return(f,p)=>{const _=pe;return s(),i("div",{class:U(["flex h-full min-h-0 flex-col",c.embedded?"bg-[#dfebe6] text-black":""])},[t("div",{class:U(["min-h-0 flex-1 overflow-y-auto",c.embedded?"px-4 py-6 tablet:px-6":"rounded-[24px] bg-[#dfebe6] px-6 py-8"])},[t("div",St,[t("section",Nt,[t("h2",Tt,r(e(d)("tree_filters_distribution","Distribución")),1),t("div",It,[(s(!0),i(C,null,$(e(T),a=>(s(),i("button",{key:a,type:"button",class:U(["inline-flex h-11 min-h-11 items-center gap-3 rounded-lg px-4 font-[National2] text-[18px] font-medium leading-[1.5] tracking-[-0.18px] transition hover:brightness-95",P(c.selectedDistributions.includes(a))]),style:{"font-feature-settings":`"lnum" 1, 8 "tnum" 1`},onClick:x=>F(c.selectedDistributions,a,"selectedDistributions")},[K(r(e(d)(a.toLowerCase(),a))+" ",1),c.selectedDistributions.includes(a)?(s(),L(_,{key:0,class:"h-3.5 w-3.5 shrink-0"})):N("",!0)],10,Ft))),128))])]),t("section",Kt,[t("h2",Lt,r(e(d)("space","Espacio")),1),t("div",Dt,[(s(!0),i(C,null,$(e(A),a=>(s(),i("button",{key:a,type:"button",class:U(["inline-flex h-11 min-h-11 items-center gap-3 rounded-lg px-4 font-[National2] text-[18px] font-medium leading-[1.5] tracking-[-0.18px] transition hover:brightness-95",P(c.selectedSpaces.includes(a))]),style:{"font-feature-settings":`"lnum" 1, 9 "tnum" 1`},onClick:x=>F(c.selectedSpaces,a,"selectedSpaces")},[K(r(e(d)(a.toLowerCase(),a))+" ",1),c.selectedSpaces.includes(a)?(s(),L(_,{key:0,class:"h-3.5 w-3.5 shrink-0"})):N("",!0)],10,At))),128))])]),t("section",qt,[t("h2",Pt,r(e(d)("growth","Crecimiento")),1),t("div",jt,[(s(!0),i(C,null,$(e(V),a=>(s(),i("button",{key:a,type:"button",class:U(["inline-flex h-11 min-h-11 items-center gap-3 rounded-lg px-4 font-[National2] text-[18px] font-medium leading-[1.5] tracking-[-0.18px] transition hover:brightness-95",P(c.selectedGrowths.includes(a))]),style:{"font-feature-settings":`"lnum" 1, 10 "tnum" 1`},onClick:x=>F(c.selectedGrowths,a,"selectedGrowths")},[K(r(e(d)(a.toLowerCase(),a))+" ",1),c.selectedGrowths.includes(a)?(s(),L(_,{key:0,class:"h-3.5 w-3.5 shrink-0"})):N("",!0)],10,Bt))),128))])]),t("section",Et,[t("h2",zt,r(e(d)("height","Altura máxima")),1
10),t("div",Mt,[(s(!0),i(C,null,$(c.alturaFiltros,(a,x)=>(s(),i("button",{key:a.label,type:"button",class:U(["inline-flex h-11 min-h-11 items-center gap-3 rounded-lg px-4 font-[National2] text-[18px] font-medium leading-[1.5] tracking-[-0.18px] transition hover:brightness-95",P(a.selected)]),style:{"font-feature-settings":`"lnum" 1, 11 "tnum" 1`},onClick:S=>O(x)},[K(r(a.label)+" ",1),a.selected?(s(),L(_,{key:0,class:"h-3.5 w-3.5 shrink-0"})):N("",!0)],10,Ut))),128))])]),t("section",Rt,[t("h2",Gt,r(e(d)("tolerance","Tolerancia")),1),t("div",Qt,[(s(!0),i(C,null,$(e(H),a=>(s(),i("button",{key:a,type:"button",class:U(["inline-flex h-11 min-h-11 items-center gap-3 rounded-lg px-4 font-[National2] text-[18px] font-medium leading-[1.5] tracking-[-0.18px] transition hover:brightness-95",P(c.selectedTolerances.includes(a))]),style:{"font-feature-settings":`"lnum" 1, 12 "tnum" 1`},onClick:x=>F(c.selectedTolerances,a,"selectedTolerances")},[K(r(e(d)(a.toLowerCase(),a))+" ",1),c.selectedTolerances.includes(a)?(s(),L(_,{key:0,class:"h-3.5 w-3.5 shrink-0"})):N("",!0)],10,Ot))),128))])]),t("section",Vt,[t("h2",Ht,r(e(d)("service","Servicio")),1),t("div",Zt,[(s(!0),i(C,null,$(e(q),a=>(s(),i("button",{key:a,type:"button",class:U(["inline-flex h-11 min-h-11 items-center gap-3 rounded-lg px-4 font-[National2] text-[18px] font-medium leading-[1.5] tracking-[-0.18px] transition hover:brightness-95",P(c.selectedServices.includes(a))]),style:{"font-feature-settings":`"lnum" 1, 13 "tnum" 1`},onClick:x=>F(c.selectedServices,a,"selectedServices")},[K(r(e(d)(a.toLowerCase(),a))+" ",1),c.selectedServices.includes(a)?(s(),L(_,{key:0,class:"h-3.5 w-3.5 shrink-0"})):N("",!0)],10,Jt))),128))])])])],2),t("footer",{class:U(["flex shrink-0 items-start justify-between gap-4 p-6",c.embedded?"border-t border-black/10 bg-[#abccbf]":""])},[t("div",Wt,[t("button",{type:"button",class:"inline-flex h-11 min-h-11 items-center gap-3 rounded-lg bg-[#c1d9cf] px-4 font-[National2] text-[18px] font-medium leading-[1.5] tracking-[-0.18px] text-black transition hover:brightness-95",style:{"font-feature-settings":`"lnum" 1, 14 "tnum" 1`},onClick:j},[p[0]||(p[0]=t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"shrink-0 rotate-90","aria-hidden":"true"},[t("path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}),t("path",{d:"M3 3v5h5"})],-1)),K(" "+r(e(d)("reset","Reiniciar")),1)])]),c.embedded?N("",!0):(s(),i("button",{key:0,type:"button",class:"inline-flex h-11 w-[46px] shrink-0 items-center justify-center rounded-lg bg-[#d5e5df] text-black transition hover:brightness-95","aria-label":e(d)("common:close","Cerrar"),onClick:I},[w(_,{class:"h-3.5 w-3.5"})],8,Xt))],2)],2)}}});function en(c){if(typeof c=="string"&&c.length>0)return c;if(Array.isArray(c)&&typeof c[0]=="string"&&c[0])return c[0]}function fe(c){const o=new Set,d=new Set,m=[];for(const b of c){const y=String(b.id);if(o.has(y))continue;const T=b.slug?.trim();T&&d.has(T)||(o.add(y),T&&d.add(T),m.push(b))}return m}function tn(c,o){return[...c].sort((d,m)=>o(d).localeCompare(o(m),void 0,{sensitivity:"base"}))}function nn(c,o){const d=fe(c);if(!o)return{index:null,total:d.length,prev:null,next:null};const m=String(o.id),b=d.findIndex(A=>String(A.id)===m);if(b<0)return{index:null,total:d.length,prev:null,next:null};if(d.length<2)return{index:b,total:d.length,prev:null,next:null};const y=d[(b-1+d.length)%d.length],T=d[(b+1)%d.length];return{index:b,total:d.length,prev:y&&String(y.id)!==m?y:null,next:T&&String(T.id)!==m?T:null}}const sn={class:"relative -mt-4 min-h-full w-full bg-[#dfebe6] text-black lg:mt-0"},ln={class:"grid grid-cols-1 gap-8 laptop:grid-cols-[minmax(0,2fr)_408px] laptop:gap-12"},an={class:"flex min-w-0 flex-col gap-6"},on={class:"flex flex-wrap items-center gap-3"},rn={class:"min-w-0 flex-1 truncate text-left font-[National2] text-[18px] font-medium leading-[1.5] tracking-[-0.18px]",style:{"font-feature-settings":`"lnum" 1, 15 "tnum" 1`}},cn={class:"flex h-11 min-w-0 flex-1 items-center gap-3 rounded-lg border-2 border-black/50 bg-black/[0.01] px-4 backdrop-blur-sm"}
15,dn=["placeholder"],un=["disabled","aria-label"],pn={key:0,class:"flex flex-wrap gap-2"},fn=["id","onClick"],bn=["id","onClick"],xn=["id","onClick"],mn=["id","onClick"],_n=["id","onClick"],gn=["id","onClick"],hn={key:0,class:"flex min-h-96 flex-wrap justify-center gap-6"},vn=["id","onClick"],yn={class:"relative min-h-0 w-full flex-1"},kn=["src","alt"],wn={class:"flex h-[87px] w-full shrink-0 flex-col gap-2 overflow-hidden rounded-[20px] bg-white p-4"},Cn={class:"truncate font-[National2Narrow] text-[24px] font-medium leading-none tracking-[0.24px] text-black",style:{"font-feature-settings":`"lnum" 1, 16 "tnum" 1`}},$n={class:"truncate font-[National2Narrow] text-[14px] italic leading-none tracking-[0.14px] text-black"},Sn={key:1,class:"flex min-h-96 flex-col items-center justify-center"},Nn={key:0,class:"loading loading-ring loading-lg"},Tn={key:1,class:"text-center font-[National2Condensed] text-[32px] font-medium leading-none text-black laptop:text-[36px]"},In={class:"flex min-w-0 flex-col gap-8"},Fn={class:"flex flex-col gap-6 rounded-[24px] bg-[#abccbf] px-6 py-8 shadow-[0px_1px_1px_rgba(0,0,0,0.05),0px_2px_4px_rgba(0,0,0,0.1)]"},Kn={class:"font-[National2Condensed] text-[40px] font-medium leading-none text-black laptop:text-[48px]",style:{"font-feature-settings":`"lnum" 1, 17 "tnum" 1`}},Ln={class:"font-[National2] text-[18px] leading-[1.5] tracking-[-0.18px] text-black",style:{"font-feature-settings":`"lnum" 1, 18 "tnum" 1`}},Dn={class:"relative flex items-center justify-start p-3 text-black"},An={class:"w-full pr-8 text-left font-[National2Condensed] text-[24px] font-medium leading-[0.95] text-black"},qn={class:"flex flex-col gap-6 rounded-[24px] bg-[#abccbf] px-6 py-8 shadow-[0px_1px_1px_rgba(0,0,0,0.05),0px_2px_4px_rgba(0,0,0,0.1)]"},Pn={class:"font-[National2Condensed] text-[32px] font-medium leading-none text-black",style:{"font-feature-settings":`"lnum" 1, 19 "tnum" 1`}},jn={class:"flex flex-wrap gap-2"},Bn={class:"font-[National2] text-[14px] font-medium leading-[1.15] tracking-[0.14px] text-black"},ss=ie({__name:"index",setup(c){const{t:o}=re(["arboles","common"]),d=Ae(),m=qe(),b=[{id:"ecosystems",labelKey:"relatedTopics.ecosystems",searchQuery:"Ecosistemas"},{id:"watersheds",labelKey:"relatedTopics.watersheds",searchQuery:"Protección de cuencas"},{id:"fauna",labelKey:"relatedTopics.fauna",searchQuery:"Fauna"},{id:"carbon",labelKey:"relatedTopics.carbon",searchQuery:"Captura de carbono"},{id:"soils",labelKey:"relatedTopics.soils",searchQuery:"Conservación de suelos"}],y=k(()=>b.map(n=>({...n,label:o.value(n.labelKey),to:m(`/noticias?search=${encodeURIComponent(n.searchQuery)}`)}))),{chromeBottomPx:T}=lt(),A=Pe(),V=k(()=>({top:`${T.value}px`})),{data:H,status:q}=at(void 0,{filterBy:["siembra"]}),P=H;function F(n){return d.value.getLanguage()==="en-US"?n.name_english??n.name??"":n.name??""}function O(n){return o.value(`tree_name_${n.id}`,F(n))}const j=k(()=>P.value?tn(fe(P.value),O):null),I=E(!1),f=E([]),p=E([]),_=E([{label:"0' a 6'",value:[0,6],selected:!1},{label:"6' a 10'",value:[6,10],selected:!1},{label:"11' a 20'",value:[11,20],selected:!1},{label:"21' a 40'",value:[21,40],selected:!1},{label:"+ 41'",value:[41,1/0],selected:!1}]),a=k(()=>_.value.filter(n=>n.selected).map(n=>n.value)),x=E([]),S=E([]),D=E([]);function J(n){W.value=n.id,I.value=!0,G.arbol=n.slug,A.openContent({id:"arboles-tree",component:et,title:o.value(`tree_name_${n.id}`,F(n)),lightSurface:!0,props:be,onClose:()=>g({fromTripleta:!0})})}function g(n){I.value=!1,W.value=null,G.arbol!==void 0&&delete G.arbol,!n?.fromTripleta&&A.isActiveContent("arboles-tree")&&A.closeContent()}const be=k(()=>({variant:"panel",tree:R.value,isOpen:I.value,totalTrees:Y.value.total,currentIndex:Y.value.index,prevTree:Y.value.prev,nextTree:Y.value.next,onClose:()=>g({fromTripleta:!0}),onChangeIndex:Ne}));function xe(){A.openContent({id:"arboles-filters",component:Yt,title:o.value("arboles_filters_button","Filtros de búsquedas"),lightSurface:!0,props:me})}const me=k(()=>({embedded:!0,selectedDistributions:f.value,selectedSpaces:p.value,selectedGrowths:x.value,selectedTolerances:S.value,selectedServices:D.value,alturaFiltros:_.value,species:j.value??[],"onUpdate:selectedDistributions":_e,"onUpdate:selectedSpaces":ge,"onUpdate:selectedGrowths":he,"onUpdate:selectedTolerances":ve,"onUpdate:selectedServices":ye,"onUpdate:alturaFiltros":ke,onReset:ce,onClose:()=>A.closeContent()}));function _e(n){f.value=n}function ge(n){p.value=n}function he(n){x.value=n}function ve(n){S.value=n}function ye(n){D.value=n}function ke(n){_.value=n}function ce(){f.value=[],p.value=[],x.value=[],S.value=[],D.value=[],_.value.forEach(n=>n.selected=!1)}function we(){Q.value="",G.search=void 0,ce()}const Ce=k(()=>f.value.length>0||p.value.length>0||x.value.length>0||S.value.length>0||D.value.length>0||_.value.some(n=>n.selected)||!!Q.value);function X(n){return n.trim().normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}function $e(n){let u=n;return f.value.length>0&&(u=u.filter(h=>f.value.includes(h.distribution))),p.value.length>0&&(u=u.filter(h=>p.value.includes(h.space))),a.value.length>0&&(u=u.filter(h=>_.value.filter(v=>v.selected).some(v=>{if(v.value[1]===1/0)return h.growth_min&&h.growth_min>=v.value[0]||h.growth_max&&h.growth_max>=v.value[0];if(h.growth_max)return h.growth_max>=v.value[0]&&h.growth_max<=v.value[1]}))),x.value.length>0&&(u=u.filter(h=>x.value.includes(h.growth))),S.value.length>0&&(u=u.filter(h=>S.value.every(v=>h.tolerance?.split(",").map(z=>z.trim()).includes(v)))),D.value.length>0&&(u=u.filter(h=>D.value.every(v=>h.service?.split(",").map(z=>z.trim()).includes(v)))),u}const le=k(()=>$e(j.value??[])),ae=k(()=>{let n=le.value;return Q.value&&(n=n.filter(u=>st(u,Q.value,[O(u)]))),n}),W=E(null),R=k(()=>W.value===null?null:(j.value??[]).find(n=>n.id===W.value)??null),Y=k(()=>nn(le.value,R.value)),G=je("history"),Q=E(G.search||"");ne(Q,n=>{n?G.search=n:G.search=void 0});const ee=k(()=>en(G.arbol));
19function de(n,u){const h=u.find(B=>B.slug===n);if(h)return h;const v=Number(n);if(!Number.isNaN(v)&&n.trim()===String(v)){const B=u.find(oe=>Number(oe.id)===v);if(B)return B}const z=X(n);return u.find(B=>X(B.slug??"")===z||X(B.name??"")===z||X(O(B))===z)}function Se(n){if(!n||q.value!=="success"||!j.value)return;const u=de(n,j.value)??de(n,ae.value);u?J(u):console.warn(`[reforestacion/arboles] Ãrbol con identificador "${n}" no encontrado`)}function te(){const n=ee.value;n&&q.value==="success"?Ve(()=>{Se(n)}):!n&&I.value&&(I.value=!1,W.value=null)}Be(()=>{q.value==="success"?te():ee.value&&ne(q,n=>{n==="success"&&te()},{immediate:!0})}),ne(ee,(n,u)=>{n!==u&&te()}),ne(q,n=>{n==="success"&&ee.value&&te()}),Ee({title:o.value("arboles_seo_title","Ãrboles - Para la Naturaleza"),description:o.value("arboles_seo_description","Explora la diversidad de árboles nativos de Puerto Rico en los viveros de Para la Naturaleza. Descubre información detallada sobre cada especie, sus caracterÃsticas únicas y cómo contribuyen a la conservación del ecosistema. Aprende a seleccionar el árbol ideal para tu espacio y únete a nuestra misión de reforestar y preservar el patrimonio natural de la isla. Conoce cómo puedes participar en la protección de nuestros bosques y la biodiversidad puertorriqueña."),ogTitle:()=>(R.value?o.value(`tree_name_${R.value?.id}`,F(R.value)):o.value("arboles_seo_default_title","Ãrboles"))+" - "+o.value("arboles_seo_title","Para la Naturaleza"),ogDescription:()=>R.value?o.value(`tree_description_${R.value?.id}`):o.value("arboles_seo_default_description","Explora la diversidad de árboles nativos de Puerto Rico en los viveros de Para la Naturaleza. Descubre información detallada sobre cada especie, sus caracterÃsticas únicas y cómo contribuyen a la conservación del ecosistema. Aprende a seleccionar el árbol ideal para tu espacio y únete a nuestra misión de reforestar y preservar el patrimonio natural de la isla. Conoce cómo puedes participar en la protección de nuestros bosques y la biodiversidad puertorriqueña."),ogImage:()=>R.value?.scale_image_url??"/images/la-siembra/conoce-las-especies-social.jpg"}),ot({layoutSubnav:ze()});function Ne(n){const u=le.value[n];u&&J(u)}return(n,u)=>{const h=Te,v=pe,z=Ct,B=Qe,oe=Oe;return s(),i("div",sn,[w(tt,{tag:"div",class:"!pb-8 pt-0 lg:pt-8"},{default:se(()=>[t("div",ln,[t("div",an,[t("div",{class:"sticky z-20 -mx-4 flex flex-col gap-3 bg-[#dfebe6] px-4 py-4 tablet:-mx-6 tablet:px-6",style:Me(e(V))},[t("div",on,[t("button",{id:"btn-filtros-arboles",type:"button",class:"flex h-11 w-full shrink-0 items-center gap-3 rounded-lg border-2 border-black/50 bg-black/[0.01] px-4 backdrop-blur-sm transition hover:bg-black/[0.03] laptop:w-[226px]",onClick:xe},[w(h,{class:"h-3.5 w-3.5 shrink-0"}),t("span",rn,r(e(o)("arboles_filters_button","Filtros de búsquedas")),1)]),t("label",cn,[w(ue,{class:"h-3.5 w-3.5 shrink-0 text-black"}),Ue(t("input",{id:"input-buscar-arbol","onUpdate:modelValue":u[0]||(u[0]=l=>Re(Q)?Q.value=l:null),type:"search",class:"min-w-0 flex-1 bg-transparent font-[National2Narrow] text-[18px] italic leading-[1.35] tracking-[-0.18px] text-black placeholder:text-black/50 focus:outline-none",style:{"font-feature-settings":`"lnum" 1, 20 "tnum" 1`},placeholder:e(o)("arboles_search_placeholder","Busque por nombre común o cientÃfico")},null,8,dn),[[Ge,e(Q)]])]),t("button",{id:"btn-limpiar-busqueda",type:"button",class:"flex h-11 w-11 shrink-0 items-center justify-center rounded-lg border-2 border-black/50 bg-black/[0.01] backdrop-blur-sm transition hover:bg-black/[0.03] disabled:cursor-not-allowed disabled:opacity-40",disabled:!e(Ce),"aria-label":e(o)("arboles_reset_aria","Reiniciar búsqueda y filtros"),onClick:we},[...u[1]||(u[1]=[t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"rotate-90","aria-hidden":"true"},[t("path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}),t("path",{d:"M3 3v5h5"})],-1)])],8,un)]),e(f).length>0||e(p).length>0||e(x).length>0||e(S).length>0||e(D).length>0||e(_).some(l=>l.selected)?(s(),i("div",pn,[(s(!0),i(C,null,$(e(f),l=>(s(),i("button",{key:`dist-${l}`,id:`filtro-distribucion-${l.toLowerCase().replace(/\s+/g,"-")}`,type:"button",class:"inline-flex items-center gap-2 rounded-[24px] bg-[#abccbf] px-3 py-2 font-[National2] text-sm font-medium text-black transition hover:brightness-95",onClick:Z=>f.value=e(f).filter(M=>M!==l)},[K(r(e(o)(l.toLowerCase(),l))+" ",1),w(v,{class:"aspect-square w-3"})],8,fn))),128)),(s(!0),i(C,null,$(e(p),l=>(s(),i("button",{key:`space-${l}`,id:`filtro-espacio-${l.toLowerCase().replace(/\s+/g,"-")}`,type:"button",class:"inline-flex items-center gap-2 rounded-[24px] bg-[#abccbf] px-3 py-2 font-[National2] text-sm font-medium text-black transition hover:brightness-95",onClick:Z=>p.value=e(p).filter(M=>M!==l)},[K(r(e(o)(l.toLowerCase(),l))+" ",1),w(v,{class:"aspect-square w-3"})],8,bn))),128)),(s(!0),i(C,null,$(e(_).filter(l=>l.selected),l=>(s(),i("button",{key:`altura-${l.label}`,id:`filtro-altura-${l.label.toLowerCase().replace(/\s+/g,"-")}`,type:"button",class:"inline-flex items-center gap-2 rounded-[24px] bg-[#abccbf] px-3 py-2 font-[National2] text-sm font-medium text-black transition hover:brightness-95",onClick:Z=>l.selected=!1},[K(r(l.label)+" ",1),w(v,{class:"aspect-square w-3"})],8,xn))),128)),(s(!0),i(C,null,$(e(x),l=>(s(),i("button",{key:`growth-${l}`,id:`filtro-crecimiento-${l.toLowerCase().replace(/\s+/g,"-")}`,type:"button",class:"inline-flex items-center gap-2 rounded-[24px] bg-[#abccbf] px-3 py-2 font-[National2] text-sm font-medium text-black transition hover:brightness-95",onClick:Z=>x.value=e(x).filter(M=>M!==l)},[K(r(e(o)(l.toLowerCase(),l))+" ",1),w(v,{class:"aspect-square w-3"})],8,mn))),128)),(s(!0),i(C,null,$(e(S),l=>(s(),i("button",{key:`tolerance-${l}`,id:`filtro-tolerancia-${l.toLowerCase().replace(/\s+/g,"-")}`,type:"button",class:"inline-flex items-center gap-2 rounded-[24px] bg-[#abccbf] px-3 py-2 font-[National2] text-sm font-medium text-black transition hover:brightness-95",onClick:Z=>S.value=e(S).filter(M=>M!==l)},[K(r(e(o)(l.toLowerCase(),l))+" ",1),w(v,{class:"aspect-square w-3"})],8,_n))),128)),(s(!0),i(C,null,$(e(D),l=>(s(),i("button",{key:`service-${l}`,id:`filtro-servicio-${l.toLowerCase().replace(/\s+/g,"-")}`,type:"button",class:"inline-flex items-center gap-2 rounded-[24px] bg-[#abccbf] px-3 py-2 font-[National2] text-sm font-medium text-black transition hover:brightness-95",onClick:Z=>D.value=e(D).filter(M=>M!==l)},[K(r(e(o)(l.toLowerCase(),l))+" ",1),w(v,{class:"aspect-square w-3"})],8,gn))),128))])):N("",!0)],4),e(ae).length>0?(s(),i("div",hn,[(s(!0),i(C,null,$(e(ae),l=>(s(),i("button",{key:l.id,id:`card-arbol-${l.slug||l.id}`,type:"button",class:"flex h-[232px] min-w-[170px] max-w-[396px] flex-[1_0_0] flex-col overflow-hidden rounded-[24px] bg-[#479371] p-1 text-left shadow-[0px_1px_2px_0px_rgba(0,0,0,0.05),0px_2px_8px_0px_rgba(0,0,0,0.1)] transition hover:brightness-105",onClick:Z=>J(l)},[t("div",yn,[l.scale_image_url?(s(),i("img",{key:0,src:l.scale_image_url,class:"absolute inset-x-0 bottom-0 mx-auto max-h-full w-[229px] max-w-full object-contain",alt:e(o)(`tree_name_${l.id}`,F(l))},null,8,kn)):N("",!0)]),t("div",wn,[t("p",Cn,r(e(o)(`tree_name_${l.id}`,F(l))),1),t("p",$n,r(l.scientific_name),1)])],8,vn))),128))])):(s(),i("div",Sn,[e(q)==="pending"?(s(),i("span",Nn)):(s(),i("p",Tn,r(e(o)("arboles_no_results","N
20o se encontró ningún árbol con los filtros seleccionados")),1))]))]),t("aside",In,[t("div",Fn,[t("h1",Kn,r(e(o)("sidebar.intro.title","Conoce la diversidad de especies")),1),t("p",Ln,r(e(o)("sidebar.intro.description","Aprende sobre las especies nativas y endémicas, sus caracterÃsticas, beneficios y relación con el entorno.")),1)]),w(z),w(B,{id:"card-unete-conservacion",to:"/reforestacion/viveros",class:"group flex h-[240px] max-h-[240px] min-h-[240px] flex-col overflow-hidden rounded-[24px] bg-[#c1d9cf] p-1 shadow-[0px_4px_8px_0px_rgba(0,0,0,0.1),0px_8px_16px_0px_rgba(0,0,0,0.1)] transition hover:brightness-105"},{default:se(()=>[u[2]||(u[2]=t("div",{class:"relative min-h-0 flex-1 overflow-hidden rounded-[20px]"},[t("img",{src:$t,alt:"",class:"h-full w-full object-cover"}),t("div",{class:"pointer-events-none absolute inset-0 rounded-[20px] shadow-[inset_0px_0px_4px_0px_rgba(0,0,0,0.2),inset_0px_-12px_24px_0px_rgba(0,0,0,0.1)]"})],-1)),t("div",Dn,[t("p",An,r(e(o)("viveros_action_card_title","Ãnete a los esfuerzos de reforestación")),1),w(nt,{class:"absolute right-3 h-4 w-4 shrink-0 text-black transition group-hover:-translate-y-0.5 group-hover:translate-x-0.5"})])]),_:1}),t("div",qn,[t("h2",Pn,r(e(o)("relatedTopics.title","Temas relacionados")),1),t("div",jn,[(s(!0),i(C,null,$(e(y),l=>(s(),L(oe,{key:l.id,to:l.to,class:"inline-flex min-h-8 items-center gap-2 rounded-[24px] bg-white/50 px-3 py-2 backdrop-blur-sm transition hover:bg-white/70"},{default:se(()=>[w(ue,{class:"h-[11px] w-[11px] shrink-0 text-black"}),t("span",Bn,r(l.label),1)]),_:2},1032,["to"]))),128))])])])])]),_:1})])}}});export{ss 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.