PageSourceSearch

https://www.chesterzoo.org/_next/static/chunks/6593.ba960acc02bf4dbe.js

js chesterzoo.org collected 2026-09-24 08:43:44 UTC 10,828 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6593,2951,2636,2948,8287,9665],{92951:function(e,t,a){"use strict";a.r(t);var n=a(57437),r=a(2265);class i extends r.Component{componentDidCatch(e,t){console.error("ErrorBoundary caught an error: ",e,t),this.setState({hasError:!0})}render(){return this.state.hasError?(0,n.jsx)("div",{className:"container flex justify-center",children:(0,n.jsxs)("div",{className:"flex items-center justify-center h-8 px-4 body-xs text-center text-primary-light bg-validation-error rounded",children:["An error occured whilst loading the component"," ",(0,n.jsx)("span",{className:"font-semibold pl-1",children:this.props.componentName}),"."]})}):this.props.children}constructor(e){super(e),this.state={hasError:!1}}}t.default=i},2636:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return c}});var n=a(57437),r=a(71686),i=a(22375),o=a(34788),l=a(77220);function s(e){let{heading:t,iconType:a,text:r}=e;return t||r?(0,n.jsxs)("li",{className:"flex items-center gap-3 border-b border-primary-dark-1/15 py-3 lg:py-2 lg:gap-6",children:[a&&(0,n.jsx)(i.Z,{name:a,color:"currentColor",size:36}),(0,n.jsxs)("div",{className:"flex flex-col gap-1 flex-1",children:[t&&(0,n.jsx)("h2",{className:"event-details__heading body-base",children:(0,n.jsx)("strong",{children:t})}),r&&(0,n.jsx)("div",{className:"body-xs",dangerouslySetInnerHTML:{__html:r}})]})]}):null}function c(e){var t,a,i;let c,{eventMetaData:m,links:u}=e,p=m.startDate?new Date(m.startDate):null,h=m.endDate?new Date(m.endDate):null,x=d(p),f=p?(0,o.Z)("month",p,!0):null,g=d(h),v=h?(0,o.Z)("month",h,!0):null;return c=x===g?"".concat(x," ").concat(f):f===v?"".concat(x," - ").concat(g," ").concat(v):"".concat(x," ").concat(f," - ").concat(g," ").concat(v),(0,n.jsxs)("div",{className:"p-4 py-6 lg:px-9 text-primary-dark-1 bg-primary-light rounded-2xl",children:[(0,n.jsxs)("ul",{className:"list-none",children:[(0,n.jsx)(s,{heading:c,iconType:"calendar-month",text:m.dateInformation}),(0,n.jsx)(s,{heading:m.time,iconType:"loyalty-ticket",text:null===(t=m.timeInformation)||void 0===t?void 0:t.markup}),(0,n.jsx)(s,{heading:m.price,iconType:"loyalty",text:null===(a=m.priceInformation)||void 0===a?void 0:a.markup}),(0,n.jsx)(s,{heading:m.audience,iconType:"account-circle",text:null===(i=m.audienceInformation)||void 0===i?void 0:i.markup})]}),(0,n.jsx)("div",{className:"mt-6",children:u&&u.length>0&&(0,n.jsx)("div",{className:"flex gap-y-3 flex-col",children:u.map((e,t)=>{var a;return(0,n.jsx)(r.default,{type:(null==e?void 0:null===(a=e.theme)||void 0===a?void 0:a.toLowerCase())==="primary"?"primary/light":"secondary/light",text:(null==e?void 0:e.text)||e.title,link:{href:(0,l.n)(e),target:e.target},fullWidth:!0},t)})})})]})}function d(e){return e?e.toLocaleString("en-GB",{weekday:"long",day:"numeric"}):"-"}a(62948)},66593:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return d}});var n=a(57437),r=a(2265),i=a(59782),o=a.n(i),l=a(69665),s=a(2636),c=a(2656);function d(e){var t;let{hero:a,leftColumnComponents:i,eventMetaData:d}=e,m=(0,r.useRef)(null),u=(0,r.useRef)(null),[p,h]=(0,r.useState)(0),[x,f]=(0,r.useState)(0);(0,r.useEffect)(()=>{u.current&&f(u.current.clientHeight)},[]),(0,r.useEffect)(()=>{(null==m?void 0:m.current)&&h(850-m.current.clientHeight-x-168)},[m,x]);let g=a&&(null===(t=a.heroItems)||void 0===t?void 0:t.length)?a.heroItems[0]:null,v=(null==g?void 0:g.links)||[],b=(0,r.useMemo)(()=>({isPanelPage:!0}),[]);return(0,n.jsxs)("div",{className:"panel-page relative",children:[a&&(null==a?void 0:a.heroItems)&&(0,n.jsx)(l.default,{...g,ref:u}),d&&!d.hideEventInfo&&(0,n.jsxs)("div",{className:"pt-8 lg:pt-0",children:[(0,n.jsx)("div",{className:"container xl:hidden",children:(0,n.jsx)(s.default,{eventMetaData:d,links:v})}),(0,n.jsx)("div",{className:"absolute left-0 hidden xl:block w-full pointer-events-none",style:{top:p>40?p:"40px"},children:(0,n.jsx)("div",{className:"container",children:(0,n.jsx)(o(),{mode:"top",stickyClassName:"sticky-panel",boundaryElement:".panel-page",hideOnBoundaryHit:!1,children:(0,n.jsx)("div",{className:"grid xl
1:grid-cols-12 xl:items-center xl:gap-x-4 2xl:gap-x-6 pt-16",children:(0,n.jsx)("div",{ref:m,className:"xl:col-start-8 xl:col-span-5 pointer-events-auto",children:(0,n.jsx)(s.default,{eventMetaData:d,links:v})})})})})})]}),i&&i.length>0&&(0,n.jsx)("div",{className:"container",children:(0,n.jsx)("div",{className:"grid xl:grid-cols-12 pt-8 pb-10 lg:pt-20 lg:pb-0 lg:mb-20",children:(0,n.jsx)("div",{className:"xl:col-span-6 grid gap-y-12 lg:gap-y-16",children:(0,n.jsx)(c.Z,{components:i,resolverProps:b})})})})]})}},69665:function(e,t,a){"use strict";a.r(t);var n=a(57437),r=a(2265),i=a(66648),o=a(44839),l=a(54477),s=a(83015),c=a(35348);a(8287);var d=a(82441);let m=(0,r.forwardRef)((e,t)=>{var a;let{tags:r,showTag:m,heading:u,text:p,backgroundImage:h,video:x,showGradient:f=!1}=e,g=(null==h?void 0:h.focalPoint)?(0,d.Z)(h.focalPoint):"center";return(0,n.jsxs)("section",{className:"page-header page-header-panel relative",children:[(0,n.jsxs)("div",{className:(0,o.Z)('page-header__media absolute inset-0 flex after:content-[""] after:absolute after:inset-0 after:bg-cover after:bg-center',f&&"has-gradient"),children:[x&&(0,c.H)(x)&&(0,n.jsx)("video",{className:"w-full h-full object-cover object-center",src:x,poster:(null==h?void 0:h.url)&&h.url+"?width=1920",preload:"auto",autoPlay:!0,loop:!0,muted:!0,playsInline:!0}),((null==h?void 0:h.url)&&!x||(null==h?void 0:h.url)&&x&&!(0,c.H)(x))&&(0,n.jsx)(i.default,{className:"w-full h-full object-cover lg:!object-center",src:h.url+"?width=1920",alt:h.altText,width:h.width,height:h.height,priority:!0,style:{objectPosition:g}})]}),(0,n.jsx)("div",{className:"relative flex flex-col grow justify-end min-h-[640px] md:min-h-[1024px] lg:min-h-[850px] pt-36 pb-16 lg:pt-40",children:(0,n.jsxs)("div",{ref:t,className:"container",children:[m&&r&&r.length>0&&(0,n.jsx)("div",{className:"flex mb-2 md:mb-4",children:(0,n.jsx)(s.Z,{name:r[0].name,link:r[0].link,target:null===(a=r[0])||void 0===a?void 0:a.target})}),u&&(0,n.jsx)(l.Z,{className:"leading-none md:max-w-2xl lg:max-w-3xl xl:max-w-none",level:"h1",size:"heading-1",margin:"mb-3 md:mb-6 xl:mb-4",children:u}),p&&(0,n.jsx)("div",{className:"body-lg max-w-xl",dangerouslySetInnerHTML:{__html:p.markup}})]})})]})});m.displayName="PageHeaderEvent",t.default=m},2656:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});var n=a(57437),r=a(2265),i=a(64648);let o={accordion:{path:"accordion",name:"Accordion"},calloutCarousel:{path:"callout-carousel",name:"CalloutCarousel"},cardGridSection:{path:"tile-grid",name:"TileGrid"},cardSection:{path:"card-section",name:"CardSection"},carouselSection:{path:"carousel-section",name:"CarouselSection"},contactInformation:{path:"contact-information",name:"ContactInformation"},donationCelebrationTree:{path:"donation-celebration-tree",name:"DonationCelebrationTree"},donationPageForm:{path:"donation-page-form",name:"DonationPageForm"},donationSliderSection:{path:"donation-slider",name:"DonationSlider"},donationBannerSection:{path:"donation-banner",name:"DonationBanner"},featureCardSection:{path:"feature-cards",name:"FeatureCards"},featuredNewsAndEventsComponent:{path:"dual-info",name:"DualInfo"},featuredTestimonials:{path:"feature-carousel",name:"FeatureCarousel"},filterCarousel:{path:"filter-carousel",name:"FilterCarousel"},formSection:{path:"form-section",name:"FormSection"},fullWidthBanner:{path:"feature-banner",name:"FeatureBanner"},iconSection:{path:"icon-grid",name:"IconGrid"},imageCarousel:{path:"image-carousel",name:"ImageCarousel"},imageGrid:{path:"image-grid",name:"ImageGrid"},imageTabs:{path:"image-tabs",name:"ImageTabs"},keyFeatures:{path:"key-features",name:"KeyFeatures"},latestNews:{path:"latest-news",name:"LatestNews"},listingGrid:{path:"listing-grid",name:"ListingGrid"},logoSection:{path:"logo-display",name:"LogoDisplay"},mapComponent:{path:"map-component",name:"MapComponent"},mediaCarousel:{path:"media-carousel",name:"MediaCarousel"},promotionalBannerSection:{path:"promo-banner",name:"PromoBanner"},quizSection:{path:"quiz-tile-section",name:"QuizTileSection"},quoteComponent:{path:"testimonial-section",name:"TestimonialSection"},quoteCarousel:{path:"testimonial-carousel",name:"TestimonialCarousel"},richText:{path:"simple-text",name:"SimpleText"},sectionHeader:{path:"section-header",name:"SectionHeader"},tabCardSection:{path:"tabbed-cards",name:"TabbedCards"},tabComponent:{path:"membership-tabs",name:"MembershipTabs"},textAndImage:{path:"text-image-section",name:"TextImageSection"},textAndImageDisplay:{path:"text-image-display",name:"TextImageDisplay"},simpleSpecificationComponent:{path:"simple-specification",name:"SimpleSpecification"},tieredCards:{path:"tiered-card-grid",name:"TieredCardGrid"},verticalCarousel:{path:"vertical-carousel",name:"VerticalCarousel"},videoComponent:{path:"video-embed",name:"VideoEmbed"},markUpSection:{path:"mark-up",name:"MarkUp"}};var l=a(92951),s=(0,r.memo)(e=>{let{components:t,resolverProps:a}=e;return(0,n.jsx)(n.Fragment,{children:t.map(e=>Object.entries(e).map((e,t)=>{let[r,s]=e;
1if(Object.hasOwn(o,r))return a&&Object.keys(a).forEach(e=>{s[e]=a[e]}),(0,n.jsx)(l.default,{componentName:o[r].name,children:(0,n.jsx)(i.D,{componentPath:o[r].path,componentName:o[r].name,props:s})},t)}))})})},83015:function(e,t,a){"use strict";a.d(t,{Z:function(){return l}});var n=a(57437),r=a(87138),i=a(44839),o=a(77220);function l(e){let{name:t,link:a,target:l="_self"}=e,s=(0,i.Z)("parent-tag relative flex items-center py-1",a&&"pl-6 pr-2",!a&&"px-2","rounded transition-colors focus:outline focus:outline-1 focus:outline-offset-2");return(0,n.jsx)(n.Fragment,{children:a?(0,n.jsxs)(r.default,{className:s,href:(0,o.n)(a),target:l,children:[(0,n.jsx)("span",{className:"parent-tag-icon absolute top-1/2 left-2 w-[11px] h-3 bg-center bg-cover bg-no-repeat -translate-y-2/4"}),(0,n.jsx)("span",{className:"parent-tag-text font-czoo-sharp-grotesk text-base leading-4 uppercase tracking-wider",children:t})]}):(0,n.jsx)("div",{className:s,children:(0,n.jsx)("span",{className:"parent-tag-text font-czoo-sharp-grotesk text-base leading-4 uppercase tracking-wider",children:t})})})}a(99033)},34788:function(e,t,a){"use strict";function n(e,t,a){return(a?t:new Date(t)).toLocaleString("default",{[e]:"day"===e?"numeric":"long"})}a.d(t,{Z:function(){return n}})},82441:function(e,t,a){"use strict";function n(e){let{left:t,top:a}=e,n="".concat((100*t).toFixed(2),"%"),r="".concat((100*a).toFixed(2),"%");return"".concat(n," ").concat(r)}a.d(t,{Z:function(){return n}})},35348:function(e,t,a){"use strict";a.d(t,{H:function(){return n}});let n=e=>{let t;try{t=new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol}},62948:function(){},8287:function(){},99033:function(){}}]);

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.