1import{Z as w,d as F,a4 as H,b as K,$ as X,a5 as V,v as U,ai as q,u as Y,o as g,c as b,i as e,e as t,t as a,D as W,n as O,F as Q,y as Z,a as p,a0 as G,R as J,m as f,z as _}from"./D7P3cwJT.js";import{_ as ee}from"./DGHn3laq.js";import"./Bfd5Thr0.js";import"./C_YC4gad.js";const te=w("/images/eoy/ondas.png"),oe=w("/images/eoy/reforestacion.png"),se=w("/images/eoy/conservacion.png"),ae=w("/images/eoy/proteccion.png"),ne={class:"flex h-full flex-col overflow-clip"},le={class:"relative min-h-[520px] overflow-clip bg-base-100 pt-16"},ie={class:"relative z-10 mx-auto grid max-w-[1280px] grid-cols-1 gap-6 p-content tablet:grid-cols-5"},re={class:"col-span-3 flex justify-center tablet:justify-end"},de=["src","alt"],ce={class:"bg-primary px-content py-[36px]"},pe={class:"mx-auto grid max-w-[1280px] grid-cols-1 items-start gap-[48px] tablet:grid-cols-[1fr_216px] tablet:gap-[72px]"},ue={class:"flex max-w-[1080px] flex-col gap-[48px] text-primary-content"},xe={class:"flex flex-col gap-[28px]"},he={class:"font-national2Condensed text-[56px] font-bold leading-none"},me={class:"font-national2Condensed text-[43px] leading-none"},ge={class:"flex flex-col gap-[24px] font-national2 text-[24px] leading-[1.2]"},be={class:"relative mx-auto flex min-h-[580px] w-full max-w-[1280px] flex-col justify-center overflow-hidden laptop:min-h-[750px]"},fe={key:0,class:"absolute inset-0 z-40 flex items-center justify-center bg-base-100"},_e={class:"flex flex-col items-center gap-4"},ve={class:"font-national2 text-lg text-primary"},ye=["id"],we=["srcset"],ke=["src","alt"],Ce={class:"absolute bottom-32 right-8 z-30 flex gap-3 tablet:bottom-20"},Le=["aria-label"],je=["aria-label"],Re={class:"px-content py-16"},ze={class:"mx-auto max-w-[1280px]"},We={class:"mb-12 text-center font-national2Condensed text-[90px] leading-none text-white"},Te={class:"grid grid-cols-1 gap-6 tablet:grid-cols-3"},$e={class:"flex h-full flex-col justify-between rounded-[32px] bg-primary p-5"},Me={class:"font-national2Condensed text-[48px] font-bold leading-[1] text-secondary"},Ne=["innerHTML"],Se={class:"mt-6 overflow-hidden rounded-[16px]"},De=["alt"],Ie={class:"flex h-full flex-col justify-between rounded-[32px] bg-primary p-5"},Pe={class:"font-national2Condensed text-[48px] font-bold leading-[1] text-secondary"},Be=["innerHTML"],Ee={class:"mt-6 overflow-hidden rounded-[16px]"},Ae=["alt"],Fe={class:"flex h-full flex-col justify-between rounded-[32px] bg-primary p-5"},He={class:"font-national2Condensed text-[48px] font-bold leading-[1] text-secondary"},Ke=["innerHTML"],Xe={class:"mt-6 overflow-hidden rounded-[16px]"},Ve=["alt"],Ue={class:"rounded-b-[48px] bg-secondary px-content py-16 pt-0"},qe={class:"mx-auto max-w-[1280px]"},Ye={class:"text-center font-national2Condensed text-[96px] leading-none text-white"},Oe={class:"mt-8 grid grid-cols-1 gap-6 tablet:grid-cols-3"},Qe={href:"https://paralanaturaleza.donorsupport.co/-/XKBLRFWR",class:"group flex min-h-[100px] items-center justify-between gap-4 rounded-[24px] border-[3px] border-primary bg-primary px-6 py-5"},Ze={class:"font-national2Condensed text-[32px] font-bold uppercase leading-none text-secondary"},Ge={href:"https://paralanaturaleza.donorsupport.co/-/XBVKPTEL",class:"group flex min-h-[100px] items-center justify-between gap-4 rounded-[24px] border-[3px] border-primary bg-primary px-6 py-5"},Je={class:"font-national2Condensed text-[32px] font-bold uppercase leading-none text-secondary"},et=["href"],tt={class:"font-national2Condensed text-[32px] font-bold uppercase leading-none text-secondary"},ot={class:"relative bg-primary pb-16 tablet:pb-20"},st={class:"relative mx-auto flex max-w-[1280px] items-start justify-between"},at={class:"-mt-16 w-full pt-12 tablet:-mt-24 tablet:pt-20"},nt={class:"rounded-[36px] border-[3px] border-primary bg-secondary px-6 pb-9 pt-10 shadow-[0_26px_48px_rgba(12,18,34,0.35)] tablet:px-12 tablet:pt-12"},lt={class:"grid grid-cols-1 gap-12 tablet:grid-cols-[minmax(0,1fr)_minmax(0,1fr)]"},it={class:"flex flex-col gap-12 text-white"},rt={class:"flex flex-col gap-6"},dt={class:"font-national2Condensed text-[56px] leading-[56px]"},ct={class:"font-national2 text-2xl leading-[1.2]"},pt={href:"https://paralanaturaleza.donorsupport.co/-/XKBLRFWR",class:"group flex h-16 w-full items-center justify-center gap-3 self-start rounded-[36px] border-[3px] border-primary bg-primary px-6 text-secondary transition-[transform,box-shadow] duration-200 hover:-translate-y-0.5 hover:shadow-lg tablet:w-auto tablet:min-w-[264px]"},ut={class:"font-sans text-[24px] font-bold uppercase leading-none tracking-[0.02em]"},xt={class:"bg-primary px-content py-[48px]"},ht={class:"mx-auto grid max-w-[1280px] grid-cols-1 gap-6 tablet:grid-cols-3"},mt={href:"tel:+17873793687",class:"rounded-[36px] border-2 border-secondary bg-secondary p-6 text-center font-[24px] font-bold leading-[24px] text-white transition hover:border-white hover:bg-secondary/90"},gt={class:""},bt={href:"mailto:[email protected]",class:"rounded-[36px] border-2 border-secondary bg-secondary p-6 text-center font-[24px] font-bold leading-[24px] text-white transition hover:border-white hover:bg-secondary/90"},ft={class:""},_t={href:"https://paralanaturaleza.donorsupport.co/-/XKBLRFWR",class:"relative rounded-[36px] border-2 border-secondary bg-secondary p-6 text-center font-[24px] font-bold uppercase leading-[24px] text-white transition hover:border-white hover:bg-secondary/90"},vt={class:"modal-box flex w-auto max-w-[80%] flex-col gap-4 bg-secondary laptop:max-w-md"},yt={class:"text-lg font-bold text-white"},wt={class:"text-sm text-white"},kt={class:"flex flex-col gap-4"},Ct={key:0,class:"alert alert-success"},Tt=F({__name:"index",setup(Lt){H({htmlAttrs:{"data-theme":"EOY25"}});const{t:o}=K("eoy25"),T=X(),$=f(()=>T.value.getLanguage()??"es-PR"),h=f(()=>$.value.startsWith("en")),C=_(null),M=_(""),N=f(()=>window.location.origin+M.value),{copy:S,copied:D}=V({source:N}),I=async()=>{await S(),C.value?.close()},L=f(()=>[{number:1,key:"slide1"},{number:2,key:"slide2"},{number:3,key:"slide3"},{number:4,key:"slide4"},{number:5,key:"slide5"},{number:6,key:"slide6"},{number:7,key:"slide7"},{number:8,key:"slide8"},{number:9,key:"slide9"},{number:10,key:"slide10"}].map(s=>{const n=s.key,i=`/images/eoy/slideshow/slideshow-${s.number}`,d={image:`${i}.webp`,imageWebp:`${i}.webp`,imageWebpTablet:`${i}-tablet.webp`,imageWebpMobile:`${i}-mobile.webp`,title:o.value(`slideshow.${n}.title`,"")},x=o.value(`slideshow.${n}.subtitle`,"");x&&(d.subtitle=x);const y=o.value(`slideshow.${n}.scientificName`,"");return y&&(d.scientificName=y),d})),v=f(()=>L.value.map(l=>l.imageWebp)),u=_(0),c=_(null),m=_(!0),P=async()=>{m.value=!0;const s=v.value.map(n=>new Promise((r,i)=>{const d=new Image;d.onload=()=>r(),d.onerror=()=>i(new Error(`Failed to load ${n}`)),d.src=n}));try{await Promise.all(s)}catch(n){console.error("Error loading slideshow images:",n)}finally{m.value=!1}},B=()=>{const l=(u.value+1)%v.value.length;u.value=l,k(l)},E=()=>{const l=(u.value-1+v.value.length)%v.value.length;u.value=l,k(l)},k=l=>{if(c.value){const s=c.value.querySelector(`#slide-${l}`);if(s){const n=c.value,r=s.offsetLeft,i=s.offsetWidth,d=n.offsetWidth,x=r-d/2+i/2;n.scrollTo({left:x,behavior:"smooth"})}}},j=()=>
1{if(!c.value)return;const l=c.value,s=l.querySelectorAll(".carousel-item"),n=l.getBoundingClientRect(),r=n.left+n.width/2;let i=0,d=1/0;s.forEach((x,y)=>{const R=x.getBoundingClientRect(),A=R.left+R.width/2,z=Math.abs(A-r);z<d&&(d=z,i=y)}),i!==u.value&&(u.value=i)};return U(()=>{P().then(()=>{c.value&&(c.value.addEventListener("scroll",j),k(0))})}),q(()=>{c.value&&c.value.removeEventListener("scroll",j)}),Y({title:o.value("seo.title",h.value?"It's worth everything. | Para la Naturaleza":"Lo vale todo. | Para la Naturaleza"),description:o.value("seo.description","Ãnete a nuestra campaña de fin de año para apoyar la conservación en Puerto Rico."),ogTitle:o.value("seo.title",h.value?"It's worth everything. | Para la Naturaleza":"Lo vale todo. | Para la Naturaleza"),ogImage:"/images/eoy/highlight-bg.webp"}),(l,s)=>{const n=G;return g(),b("div",ne,[e("div",le,[s[1]||(s[1]=e("img",{src:ee,alt:"Fondo Lo vale todo",class:"absolute inset-0 z-0 h-full w-full object-cover"},null,-1)),e("div",ie,[e("div",re,[e("img",{src:t(h)?"/images/eoy/banner-en.png":"/images/eoy/banner.png",alt:t(h)?"Worth It All":"Lo vale todo",class:"h-auto min-h-[300px] w-[372px] max-w-full object-contain tablet:min-h-[360px] tablet:w-[520px]",style:{"aspect-ratio":"520 / 360"}},null,8,de)]),s[0]||(s[0]=e("div",{class:"col-span-2 flex items-start justify-center"},[e("a",{href:"#XKNADEMD",style:{display:"none"}})],-1))])]),s[12]||(s[12]=e("div",{class:"bg-white px-content py-3"},[e("a",{href:"#XDKQVDRR",style:{display:"none"}})],-1)),e("div",ce,[e("div",pe,[e("div",ue,[e("div",xe,[e("h2",he,a(t(o)("intro.title")),1),e("p",me,a(t(o)("intro.subtitle")),1)]),e("div",ge,[e("p",null,a(t(o)("intro.p1")),1),e("p",null,a(t(o)("intro.p2")),1),e("p",null,a(t(o)("intro.p3")),1)])]),s[2]||(s[2]=e("div",{class:"hidden w-[216px] tablet:block"},null,-1))])]),e("div",be,[t(m)?(g(),b("div",fe,[e("div",_e,[s[3]||(s[3]=e("span",{class:"loading loading-spinner loading-lg text-primary"},null,-1)),e("p",ve,a(t(o)("slideshow.loading","Cargando imágenes...")),1)])])):W("",!0),e("div",{ref_key:"carouselRef",ref:c,class:O(["scrollbar-hide carousel min-h-[580px] w-full snap-x snap-mandatory overflow-x-auto laptop:min-h-[750px]",{"opacity-0":t(m),"opacity-100":!t(m)}]),style:{"scroll-behavior":"smooth",transition:"opacity 0.3s ease-in-out"}},[(g(!0),b(Q,null,Z(t(L),(r,i)=>(g(),b("div",{key:i,id:`slide-${i}`,class:"carousel-item relative min-h-[580px] w-full flex-shrink-0 snap-center laptop:min-h-[750px]"},[e("picture",null,[e("source",{srcset:`${r.imageWebpMobile} 640w, ${r.imageWebpTablet} 1024w, ${r.imageWebp} 1280w`,sizes:"(max-width: 640px) 640px, (max-width: 1024px) 1024px, 1280px",type:"image/webp"},null,8,we),e("img",{src:r.image,alt:r.title,class:"h-full w-full object-cover",loading:"lazy"},null,8,ke)])],8,ye))),128))],2),s[4]||(s[4]=e("img",{src:te,alt:"Highlight waves",class:"pointer-events-none absolute left-1/2 top-0 z-20 h-full w-full max-w-[1440px] -translate-x-1/2 select-none object-cover"},null,-1)),e("div",Ce,[e("button",{onClick:E,class:"btn btn-circle flex h-12 min-h-[48px] w-12 min-w-[48px] items-center justify-center border-0 bg-primary p-0 text-secondary shadow-lg transition-colors hover:bg-primary/90","aria-label":t(o)("carousel.previous","Anterior")},[p(n,{class:"rotate-180"})],8,Le),e("button",{onClick:B,class:"btn btn-circle flex h-12 min-h-[48px] w-12 min-w-[48px] items-center justify-center border-0 bg-primary p-0 text-secondary shadow-lg transition-colors hover:bg-primary/90","aria-label":t(o)("carousel.next","Siguiente")},[p(n)],8,je)])]),e("div",Re,[e("div",ze,[e("h3",We,a(t(o)("stories.title")),1),e("div",Te,[e("div",$e,[e("div",null,[e("div",Me,a(t(o)("stories.reforestacion.title")),1),e("p",{class:"mt-4 text-[18px] leading-[1.15] text-secondary",innerHTML:t(o)("stories.reforestacion.description")},null,8,Ne)]),e("div",Se,[e("img",{src:oe,alt:t(o)("stories.reforestacion.title"),class:"h-[200px] w-full object-cover"},null,8,De)])]),e("div",Ie,[e("div",null,[e("div",Pe,a(t(o)("stories.educacion.title")),1),e("p",{class:"mt-4 text-[18px] leading-[1.15] text-secondary",innerHTML:t(o)("stories.educacion.description")},null,8,Be)]),e("div",Ee,[e("img",{src:se,alt:t(o)("stories.educacion.title"),class:"h-[200px] w-full object-cover"}
1,null,8,Ae)])]),e("div",Fe,[e("div",null,[e("div",He,a(t(o)("stories.biodiversidad.title")),1),e("p",{class:"mt-4 text-[18px] leading-[1.15] text-secondary",innerHTML:t(o)("stories.biodiversidad.description")},null,8,Ke)]),e("div",Xe,[e("img",{src:ae,alt:t(o)("stories.biodiversidad.title"),class:"h-[200px] w-full object-cover"},null,8,Ve)])])])])]),e("div",Ue,[e("div",qe,[e("h3",Ye,a(t(o)("cta.title")),1),e("div",Oe,[e("a",Qe,[e("span",Ze,a(t(o)("cta.donate")),1),p(n,{class:"h-8 w-8 -rotate-45 text-secondary transition-transform duration-200 group-hover:-translate-y-0.5 group-hover:translate-x-1"})]),e("a",Ge,[e("span",Je,a(t(o)("cta.campaign")),1),p(n,{class:"h-8 w-8 -rotate-45 text-secondary transition-transform duration-200 group-hover:-translate-y-0.5 group-hover:translate-x-1"})]),e("a",{href:t(h)?"https://www.paralanaturaleza.org/desarrollo/amigos/":"https://www.paralanaturaleza.org/desarrollo/es/amigos-espanol/",target:"_blank",class:"group flex min-h-[100px] items-center justify-between gap-4 rounded-[24px] border-[3px] border-primary bg-primary px-6 py-5"},[e("span",tt,a(t(o)("cta.friend")),1),p(n,{class:"h-8 w-8 -rotate-45 text-secondary transition-transform duration-200 group-hover:-translate-y-0.5 group-hover:translate-x-1"})],8,et)])])]),e("div",ot,[s[8]||(s[8]=e("div",{class:"absolute inset-x-0 top-0 h-1/3 bg-gradient-to-b from-secondary to-primary"},null,-1)),e("div",st,[s[6]||(s[6]=e("div",{class:"hidden h-[300px] w-[80px] rounded-br-[36px] bg-secondary tablet:block"},null,-1)),e("div",at,[e("div",nt,[e("div",lt,[e("div",it,[e("div",rt,[e("h4",dt,a(t(o)("fundraisers.title")),1),e("p",ct,a(t(o)("fundraisers.subtitle")),1)]),e("a",pt,[e("span",ut,a(t(o)("fundraisers.donate")),1),p(n,{class:"h-6 w-6 -rotate-45 transition-transform duration-200 group-hover:-translate-y-0.5 group-hover:translate-x-1"})])]),s[5]||(s[5]=e("div",{class:"flex flex-col items-center justify-center"},[e("a",{href:"#XAFYSBDL",style:{display:"none"}})],-1))])])]),s[7]||(s[7]=e("div",{class:"hidden h-[300px] w-[80px] rounded-bl-[36px] bg-secondary tablet:block"},null,-1))])]),e("div",xt,[e("div",ht,[e("a",mt,[e("span",gt,a(t(o)("contact.phone")),1),s[9]||(s[9]=e("span",null," 787-379-3687",-1))]),e("a",bt,[e("span",ft,a(t(
1o)("contact.email")),1),s[10]||(s[10]=e("span",null," [email protected]",-1))]),e("a",_t,[J(a(t(o)("contact.donate"))+" ",1),p(n,{class:"absolute right-5 top-1/2 h-8 w-8 -translate-y-1/2 -rotate-45"})])])]),e("dialog",{ref_key:"downloadModal",ref:C,class:"modal"},[e("div",vt,[e("h3",yt,a(t(o)("download_modal.title")),1),e("p",wt,a(t(o)("download_modal.description")),1),e("div",kt,[e("button",{onClick:I,class:"btn btn-primary"},a(t(o)("download_modal.copy_link")),1)]),t(D)?(g(),b("div",Ct,[e("span",null,a(t(o)("download_modal.copied")),1)])):W("",!0)]),s[11]||(s[11]=e("form",{method:"dialog",class:"modal-backdrop"},[e("button",null,"close")],-1))],512)])}}});export{Tt 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.