1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[337],{3280:(e,t,n)=>{"use strict";n.d(t,{default:()=>H});var l=n(5155),a=n(2115),o=n(4474),i=n(8898),s=n(4192),r=n(7270);n(2374);var d=n(5239),u=n(2619),m=n.n(u),c=n(8931),x=n(6579),g=n(7565),p=n(1856),b=n(1133);function f(e){let{slides:t,lang:n}=e,[o,u]=(0,a.useState)(0);return(0,a.useEffect)(()=>{if(t[o+1]){let e=t[o+1].slideImage.image.node.mediaItemUrl,n=document.createElement("link");n.rel="preload",n.as="image",n.href=e,document.head.appendChild(n)}},[o,t]),(0,l.jsx)(c.Container,{maxW:"7xl",my:{base:"2",md:"20"},children:(0,l.jsx)(r.eB,{options:{type:"fade",autoplay:!1,interval:1e4,pauseOnHover:!1,resetProgress:!1,arrows:!0,pagination:!0,rewind:!0,speed:2e3,lazyLoad:!1,breakpoints:{768:{arrows:!1}}},onMoved:e=>u(e.index),children:t.map((e,t)=>{let a={headline:"en"===n?e.slideContent.headlineEn:e.slideContent.headlineEs||e.slideContent.headlineEn,subhead:"en"===n?e.slideContent.subheadEn:e.slideContent.subheadEs||e.slideContent.subheadEn,buttonLabel:"en"===n?e.slideContent.buttonLabelEn:e.slideContent.buttonLabelEs||e.slideContent.buttonLabelEn,buttonLink:"en"===n?(0,s.o)(e.slideContent.buttonLink.edges[0].node,n):(0,s.o)(e.slideContent.buttonLink.edges[0].node.languageFields.pageSlugEs,n)||(0,s.o)(e.slideContent.buttonLink.edges[0].node,n)};return(0,l.jsxs)(r.Nn,{children:[(0,l.jsxs)(i.Box,{position:"relative",aspectRatio:{base:1/1.5,md:21/9},w:"100%",borderRadius:"3rem",children:[(0,l.jsx)(d.default,{src:e.slideImage.image.node.mediaItemUrl,alt:e.slideImage.image.node.altText,placeholder:"blur",blurDataURL:e.slideImage.image.node.blurDataUrl,fill:!0,priority:0===t,loading:0===t?"eager":"lazy",style:{borderRadius:"3rem",objectFit:"cover"}}),(0,l.jsx)(i.Box,{position:"absolute",top:"0",left:"0",aspectRatio:{base:1/1.5,md:21/9},height:{base:"100%",md:"100%"},bg:"Terracotta"===e.slideImage.overlayColor[0]?"rgba(215, 131, 89, 0.56)":"Light Green"===e.slideImage.overlayColor[0]?"rgba(108, 171, 162, 0.5)":"Dark Green"===e.slideImage.overlayColor[0]?"rgba(67, 123, 137, 0.5)":"rgba(255, 255, 255, 0.25)",style:{borderRadius:"3rem"}})]}),(0,l.jsx)(i.Box,{position:"absolute",zIndex:"1",w:"100%",h:{base:"100%",md:"100%"},top:{base:0,md:0},mt:{base:0,md:0},children:(0,l.jsx)(x.Flex,{w:"100%",h:"100%",justifyContent:"Left"===e.slideContent.contentAlignment[0]?"flex-start":"Center"===e.slideContent.contentAlignment[0]?"center":"flex-end",alignItems:"center",children:(0,l.jsxs)(x.Flex,{w:{base:"100%",md:"60%"},h:"100%",flexDirection:"column",justifyContent:"center",px:{base:"4",md:"16"},alignItems:{base:"center",md:"Left"===e.slideContent.contentAlignment[0]?"flex-start":"Center"===e.slideContent.contentAlignment[0]?"center":"flex-end"},children:[(0,l.jsx)(g.Heading,{color:"white",fontFamily:"var(--font-the-seasons)",textAlign:{base:"center",md:"Left"===e.slideContent.contentAlignment[0]?"left":"Center"===e.slideContent.contentAlignment[0]?"center":"right"},as:"h2",fontSize:"clamp(2rem, 4vw, 3rem)",lineHeight:"1",mb:"4",children:a.headline}),(0,l.jsx)(p.Text,{mb:"8",color:"white",fontSize:{base:"1rem",lg:"1.25rem"},textAlign:{base:"center",md:"Left"===e.slideContent.contentAlignment[0]?"left":"Center"===e.slideContent.contentAlignment[0]?"center":"right"},children:a.subhead}),(0,l.jsx)(b.Button,{variant:"Terracotta"===e.slideImage.overlayColor[0]?"primary":"terracotta",as:m(),href:"/".concat(n,"/").concat(a.buttonLink),size:{base:"sm",md:"md"},children:a.buttonLabel})]})})})]},t)})})})}var h=n(8873),C=n(1248),j=n(7430),F=n(4926),N=n(6950),y=n(1567),v=n(4072),L=n(1632),G=n(8712),w=n(6143),A=n(5686),B=n(6029),P=n(6613),k=n(4075);let I=e=>{var t;let{data:n,lang:a}=e;return(0,l.jsx)(i.Box,{p:"4",h:"100%",children:(0,l.jsxs)(x.Flex,{h:"100%",direction:"column",borderRadius:"3rem",bg:"white",boxShadow:"sm",p:"8",textAlign:"center",justify:"space-between",align:"center",children:[(null==n||null==(t=n.featuredImage)?void 0:t.mediaItemUrl)&&(0,l.jsx)(i.Box,{mb:"8",position:"relative",w:"100%",aspectRatio:"1",children:(0,l.jsx)(d.default,{src:n.featuredImage.mediaItemUrl,alt:n.featuredImage.altText,fill:!0,style:{objectFit:"cover",borderRadius:"2rem",boxShadow:"1px 1px 10px 0px rgba(0,0,0,0.1)"}})}),(0,l.jsx)(g.Heading,{as:"h4",size:"xl",children:n.title}),(0,l.jsx)(p.Text,{mb:"8",children:n.excerpt}),(0,l.jsx)(b.Button,{as:m(),href:"en"===a?"/".concat(a,"/news/").concat(n.slug):"/".concat(a,"/noticias/").concat(n.slug)||0,variant:"primary",children:"en"===a?"Read More":"Leer M\xe1s"})]})})};function E(e){let{data:t}=e,n=(0,k.o)();return(0,l.jsx)(i.Box,{as:"section",children:(0,l.jsxs)(c.Container,{maxW:"7xl",my:{base:"12",md:"20"},children:[(0,l.jsx)(g.Heading,{as:"h2",size:"4xl",mb:"8",textAlign:"center",color:"csn-green.500",fontWeight:"bold",children:"en"===n?"Recent News":"Noticias Recientes"}),(0,l.jsx)(r.eB,{options:{type:"slide",autoplay:!1,interval:1e4,pauseOnHover:!1,resetProgress:!1,arrows:!0,pagination:!0,rewind:!0,speed:2e3,perPage:3,gap:"2rem",lazyLoad:!1,breakpoints:{768:{arrows:!1,perPage:1}}},children:t.map((e,t)=>{var a,o,i,s,d,u,m,c,x,g;return(0,l.jsx)(r.Nn,{children:(0,l.jsx)(I,{data:(a=e.node,{title:"en"===n?a.title:(null==(o=a.translations[0])?void 0:o.title)||(null==a?void 0:a.title),excerpt:"en"===n?null==(i=a.postFields)?void 0:i.excerptEn:(null==(d=a.translations[0])||null==(s=d.postFields)?void 0:s.excerptEs)||(null==(m=a.translations[0])||null==(u=m.postFields)?void 0:u.excerptEn),slug:"en"===n?a.slug:(null==a||null==(c=a.languageFields)?void 0:c.pageSlugEs)||a.slug,featuredImage:null==a||null==(g=a.postFields)||null==(x=g.featuredImage)?void 0:x.node}),lang:n})},t)})})]})})}var R=n(592),S=n(5109),z=n(1420);function H(e){let{data:t,lang:n,last6Posts:o}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.Box,{position:"relative",w:"100%",as:"section",children:(0,l.jsx)(f,{slides:t.homeHero.slide,lang:n})}),(0,l.jsx)(i.Box,{mb:"48",children:t.pageFields.flexibleContent.map((e,t)=>(0,l.jsxs)(a.Fragment,{children:["PageFieldsFlexibleContentFullWidthColorBlockLayout"===e.fieldGroupName&&(0,l.jsx)(h.A,{data:e},e.fieldGroupName),"PageFieldsFlexibleContentPageHeroLayout"===e.fieldGroupName&&(0,l.jsx)(P.A,{data:e},e.fieldGroupName),"PageFieldsFlexibleContentVideoBlockLayout"===e.fieldGroupName&&(0,l.jsx)(C.A,{data:e},e.fieldGroupName),"PageFieldsFlexibleContentServicesBlockLayout"===e.fieldGroupName&&(0,l.jsx)(j.A,{data:e},e.fieldGroupName),"PageFieldsFlexibleContentProgramsBlockLayout"===e.fieldGroupName&&(0,l.jsx)(F.A,{data:e},e.fieldGroupName),"PageFieldsFlexibleContentRichTextBlockLayout"===e.fieldGroupName&&(0,l.jsx)(N.A,{data:e},e.fieldGroupName),"PageFieldsFlexibleContentPhotoCalloutBlockLayout"===e.fieldGroupName&&(0,l.jsx)(y.A,{data:e},e.fieldGroupName),"PageFieldsFlexibleContentCallToActionBlockLayout"===e.fieldGroupName&&(0,l.jsx)(v.A,{data:e},e.fieldGroupName),"PageFieldsFlexibleContentStatsBlockLayout"===e.fieldGroupName&&(0,l.jsx)(L.A,{data:e},e.fieldGroupName),"PageFieldsFlexibleContentPartnersLayout"===e.fieldGroupName&&(0,l.jsx)(G.A,{data:e},e.fieldGroupName),"PageFieldsFlexibleContentBoardBlockLayout"===e.fieldGroupName&&(0,l.jsx)(w.A,{data:e},e.fieldGroupName),"PageFieldsFlexibleContentDonorsBlockLayout"===e.fieldGroupName&&(0,l.jsx)(A.A,{data:e},e.fieldGroupName),"PageFieldsFlexibleContentAccordionBlockLayout"===e.fieldGroupName&&(0,l.jsx)(B.A,{data:e},e.fieldGroupName),"PageFieldsFlexibleContentNewsCardsLayout"===e.fieldGroupName&&e.showNewsCards&&(0,l.jsx)(E,{data:o},e.fieldGroupName),"PageFieldsFlexibleContentNewsletterBlockLayout"===e.fieldGroupName&&(0,l.jsx)(R.A,{data:e},e.fieldGroupName)]},t))})]})}(0,o.B)(S.P.div,{shouldForwardProp:e=>(0,z.S)(e)||"children"===e})},5337:(e,t,n)=>{Promise.resolve().then(n.bind(n,3280))}}]);
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.