PageSourceSearch

https://www.chesterzoo.org/_next/static/chunks/1008.c444b1f9609441cb.js

js chesterzoo.org collected 2026-09-24 08:41:50 UTC 6,842 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1008],{93130:function(e,l,a){a.r(l),a.d(l,{default:function(){return p}});var t=a(57437),r=a(2265),n=a(66648),s=a(44839),i=a(37776),c=a(14168),o=a(76753),d=a(54477),u=a(95278),x=a(9363),m=a(83015),g=a(22375);a(8287);var h=a(82441);function p(e){var l;let{tags:a,showTag:p,heading:f,text:v,backgroundImage:b,video:j,carouselItems:w=[],iucnStatus:N,isReserveTheme:y=!1}=e,[I,_]=(0,r.useState)(),k=e=>e.map((e,l)=>(null==e?void 0:e.largeImage)||(null==e?void 0:e.video)?(0,t.jsx)(c.hg,{asChild:!0,children:(0,t.jsx)(i.EmblaCarouselSlide,{children:(0,t.jsx)(u.Z,{orientation:"landscape",size:"small",cardIndex:l,thumbnail:e.thumbnail,largeImage:e.largeImage,video:e.video,caption:e.caption,handleClick:_,isReserveTheme:y})})},l):(0,t.jsx)(i.EmblaCarouselSlide,{children:(0,t.jsx)(u.Z,{orientation:"landscape",size:"small",thumbnail:e.thumbnail,largeImage:e.largeImage,caption:e.caption})},l)),C=(null==b?void 0:b.focalPoint)?(0,h.Z)(b.focalPoint):"center";return(0,t.jsxs)("section",{className:(0,s.Z)("page-header page-header-species relative",y&&"reserve"),children:[(0,t.jsxs)("div",{className:'page-header__media absolute inset-0 flex after:content-[""] after:absolute after:inset-0 after:bg-cover after:bg-center has-gradient',children:[j&&(0,t.jsx)(o.default,{className:"w-full h-full object-cover object-center",src:j,poster:(null==b?void 0:b.url)&&b.url,preload:"auto",autoPlay:!0,loop:!0,muted:!0,playsInline:!0}),(null==b?void 0:b.url)&&!j&&(0,t.jsx)(n.default,{className:"w-full h-full object-cover lg:!object-center",src:b.url+"?width=1920",alt:b.altText,width:b.width,height:b.height,priority:!0,style:{objectPosition:C}})]}),(0,t.jsx)("div",{className:(0,s.Z)("relative flex flex-col grow justify-end pt-36 pb-16 lg:pt-40",((null==b?void 0:b.url)||j)&&"min-h-[640px] md:min-h-[720px] lg:min-h-[720px]",!(null==b?void 0:b.url)&&!j&&"min-h-[365px] md:min-h-[410px] lg:min-h-[540px]"),children:(0,t.jsxs)("div",{className:"container flex flex-col items-center gap-6 lg:flex-row lg:gap-10 lg-justify-between lg:items-end",children:[(0,t.jsxs)("div",{className:"flex-1",children:[p&&a&&a.length>0&&(0,t.jsx)("div",{className:"flex justify-center mb-2 md:mb-4 lg:justify-start",children:(0,t.jsx)(m.Z,{name:a[0].name,link:a[0].link,target:null===(l=a[0])||void 0===l?void 0:l.target})}),f&&(0,t.jsx)(d.Z,{className:"leading-none text-center text-balance md:max-w-2xl lg:max-w-none mx-auto lg:text-left",level:"h1",size:"heading-fluid",margin:"mb-3 md:mb-6 xl:mb-4",children:f}),v&&(0,t.jsx)("div",{className:"body-lg text-center max-w-xl mx-auto lg:mx-0 lg:text-left",dangerouslySetInnerHTML:{__html:v.markup}})]}),!y&&(0,t.jsx)("div",{className:"min-w-[240px]",children:(0,t.jsx)(x.Z,{label:"IUCN Red List Status",status:N,type:"hero"})})]})}),w.length>0&&(0,t.jsxs)(c.l7,{children:[(0,t.jsx)(i.EmblaCarousel,{arrowButtons:!0,options:{align:"start",slidesToScroll:1,breakpoints:{"(min-width: 1024px)":{align:"center",loop:!0},"(min-width: 2048px)":{active:!1}}},children:w.length>5?(0,t.jsx)(t.Fragment,{children:k(w)}):(0,t.jsx)(t.Fragment,{children:[void 0,void 0,void 0,void 0,void 0].map(()=>k(w))})}),(0,t.jsx)(c.t9,{className:"bg-primary-light/90"}),(0,t.jsxs)(c.cZ,{className:"flex flex-col items-center justify-center w-full h-full",children:[(0,t.jsx)(c.fK,{className:"text-center",children:(0,t.jsxs)("div",{className:"flex justify-center mb-7",children:[(0,t.jsxs)(c.GG,{className:"flex items-center justify-center w-11 h-11 text-primary-light bg-primary-dark hover:bg-primary-dark/90 border border-primary-dark-1/15 rounded-full outline-none transition-colors focus:text-primary-dark focus:bg-primary-accent",children:[(0,t.jsx)(g.Z,{name:"close",color:"currentColor",size:24}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]}),(0,t.jsx)(c.$N,{className:"sr-only",children:"Gallery"})]})}),(0,t.jsx)("div",{className:"page-header-species__dialog-content container mb-[60px] text-black",children:(0,t.jsx)(i.EmblaCarousel,{arrowButtons:!0,options:{loop:!0,startIndex:null==I?void 0:I.cardIndex},children:w.map((e,l)=>{if((null==e?void 0:e.largeImage)||(null==e?void 0:e.video))return(0,t.jsx)(i.EmblaCarouselSlide,{children:(0,t.jsx)("div",{className:"relative m-auto h-full flex items-center justify-center max-h-[calc(100vh-165px)]",children:!(null==e?void 0:e.video)&&(null==e?void 0:e.largeImage)?(0,t.jsxs)("div",{className:"relative rounded-2xl overflow-hidden max-w-full max-h-full",style:{aspectRatio:"".concat(null==e?void 0:e.largeImage.
1width," / ").concat(null==e?void 0:e.largeImage.height)},children:[(0,t.jsx)(n.default,{src:e.largeImage.url,alt:e.largeImage.altText,width:e.largeImage.width,height:e.largeImage.height,loading:"lazy"}),e.caption&&(0,t.jsx)("div",{className:"absolute bottom-0 left-0 w-full mb-4 lg:mb-8 text-sm lg:text-base font-semibold text-center text-primary-light",children:e.caption})]}):(0,t.jsx)("div",{className:"aspect-video rounded-xl overflow-hidden w-full max-h-full",children:(0,t.jsx)(o.default,{className:"w-full h-full object-cover object-bottom",src:e.video,poster:(null==e?void 0:e.largeImage)&&e.largeImage.url,preload:"auto",autoPlay:!0,controls:!0,playsInline:!0})})})},l)})})})]})]})]})}},9363:function(e,l,a){a.d(l,{Z:function(){return n}});var t=a(57437),r=a(44839);function n(e){let{label:l="IUCN red list status",status:a="Not evaluated",type:n="hero"}=e;return(0,t.jsx)("div",{className:(0,r.Z)("iucn-badge iucn-badge--".concat(n," w-full p-3 border border-primary-light/15 rounded-xl lg:rounded-2xl"),"hero"===n&&"lg:max-w-[250px]","page"===n&&"lg:max-w-[590px] lg:py-6 lg:px-4"),children:(0,t.jsxs)("div",{className:"flex items-center gap-x-5",children:[(0,t.jsx)("div",{className:"w-[30px] h-[30px] rounded-tl-full rounded-b-full rotate-45",style:{backgroundColor:(e=>{switch(e){case"Not evaluated":default:return"#fff";case"Not Applicable":return"#c1b5a5";case"Data Deficient":return"#d1d1c6";case"Least Concern":return"#60c659";case"Near Threatened":return"#cce226";case"Vulnerable":return"#f9e814";case"Endangered":return"#fc7f3f";case"Critically Endangered":return"#d81e05";case"Extinct in the wild":return"#542344";case"Extinct":return"#000"}})(a)}}),(0,t.jsxs)("div",{className:(0,r.Z)("iucn-badge__content flex grow gap-1","hero"===n&&"flex-col","page"===n&&"flex-wrap flex-row justify-between items-center flex-1 gap-x-4"),children:[(0,t.jsx)("span",{className:(0,r.Z)("iucn-badge__content__subtitle","hero"===n&&"font-czoo-sharp-grotesk text-sm leading-none tracking-[0.42px] uppercase","page"===n&&"font-prodigy-sans text-base leading-5"),children:l}),(0,t.jsx)("span",{className:(0,r.Z)("iucn-badge__content__title font-czoo-sharp-grotesk lg:tracking-[-0.36px] first-letter:uppercase","hero"===n&&"text-lg/6 lg:text-xl/6","page"===n&&"text-xl/6"),children:a})]})]})})}}}]);

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.