PageSourceSearch

https://www.dayoutwiththekids.co.uk/_next/static/chunks/1172-af620b5865f3371f.js

js dayoutwiththekids.co.uk collected 2026-09-24 09:19:19 UTC 16,971 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="01986b01-4691-4584-81ac-f00aeb12ff84",e._sentryDebugIdIdentifier="sentry-dbid-01986b01-4691-4584-81ac-f00aeb12ff84")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1172],{57304:function(e,t,l){var n=l(85893);t.Z=function(e){var t="light"===e.variant,l="ds-bc-heading-03 ".concat(t?"text-white":""," ").concat("span"===e.titleAs?"block":""),i="span"===e.titleAs?"span":"h3";return(0,n.jsxs)("div",{className:e.className,children:[(0,n.jsx)("span",{className:"block mb-1 text-[10px] leading-[14px] text-[#a1a1a9] tracking-[0.12em] uppercase font-medium ".concat(t?"text-[#e5d3b3]/90":"text-ds-grey-400"),children:e.location}),(0,n.jsx)(i,{className:l,children:e.title})]})}},24911:function(e,t,l){var n=l(72253),i=l(14932),a=l(91309),r=l(85893),s=l(67294),c=l(14411),o=l(34035);t.Z=function(e){var t=e.title,l=e.description,d=e.href,u=e.primaryImage,f=e.leftImage,m=e.rightImage,h=(0,s.useRef)(null),x=(0,s.useMemo)(function(){if(e.sectionId&&e.metadata)return(0,i._)((0,n._)({},e.metadata),{sectionId:e.sectionId,component:"Fanned Square Image"})},[e.sectionId,e.metadata]);return((0,s.useEffect)(function(){if(x&&h.current){var e=new IntersectionObserver(function(t){(0,a._)(t,1)[0].isIntersecting&&((0,o.HU)({eventName:"ticketing_card_impression",trackingProps:x}),e.disconnect())},{threshold:.5});return e.observe(h.current),function(){return e.disconnect()}}},[]),null==u?void 0:u.url)?(0,r.jsxs)("div",{ref:h,className:"relative w-full overflow-hidden",children:[(null==f?void 0:f.url)&&(0,r.jsx)("div",{className:"bottom-[8%] left-[-4%] sm:left-[4.5%] absolute w-[54%] sm:w-[45%] -rotate-[16deg]",children:(0,r.jsx)(c.Z,{imageUrl:f.url,alt:f.alt,width:372,height:372,pictureClassName:"block w-full relative pt-[100%] rounded-[16px] sm:rounded-[22px] overflow-hidden border-2 border-white sm:border-none",imageClassName:"block absolute top-0 left-0 w-full h-full object-cover object-center",loading:"lazy"})}),(null==m?void 0:m.url)&&(0,r.jsx)("div",{className:"right-[-4%] sm:right-[4.5%] bottom-[8%] absolute w-[54%] sm:w-[45%] rotate-[16deg]",children:(0,r.jsx)(c.Z,{imageUrl:m.url,alt:m.alt,width:372,height:372,pictureClassName:"block w-full relative pt-[100%] rounded-[16px] sm:rounded-[22px] overflow-hidden border-2 border-white sm:border-none",imageClassName:"block absolute top-0 left-0 w-full h-full object-cover object-center",loading:"lazy"})}),(0,r.jsxs)("a",{href:d,className:"block relative mx-auto w-[70%] sm:w-[60%]","aria-label":null!=t?t:void 0,onClick:function(){var t;null===(t=e.onClick)||void 0===t||t.call(e),x&&(0,o.YT)({eventName:"ticketing_card_click",trackingProps:x})},children:[(0,r.jsx)(c.Z,{imageUrl:u.url,alt:u.alt,width:372,height:372,pictureClassName:"block w-full relative pt-[100%] rounded-[16px] sm:rounded-[22px] overflow-hidden border-2 border-white sm:border-none",imageClassName:"block absolute top-0 left-0 w-full h-full object-cover object-center"}),t&&(0,r.jsxs)("div",{className:"right-4 md:right-auto bottom-4 left-4 md:left-1/2 absolute flex flex-col items-center gap-1 bg-white px-[34px] py-2 rounded-lg md:w-[65%] text-center md:-translate-x-1/2",children:[(0,r.jsx)("p",{className:"mb-0 font-bold ds-label-sm",children:t}),l&&(0,r.jsx)("p",{className:"mb-0 text-ds-grey-500 ds-label-sm",children:l})]})]})]}):null}},62741:function(e,t,l){var n=l(91309),i=l(4586),a=l(85893),r=l(67294),s=l(89382),c=l(18442),o=l(11444),shuffleArray=function(e){for(var t=(0,i._)(e),l=t.length-1;l>0;l--){var n,a=Math.floor(Math.random()*(l+1));n=[t[a],t[l]],t[l]=n[0],t[a]=n[1]}return t};t.Z=function(e){var t,l,i,d,u=(0,n._)((0,s.Z)({align:"start",slidesToScroll:1,containScroll:"trimSnaps"}),2),f=u[0],m=u[1],h=(0,n._)((0,r.useState)(function(){var t,l;return t=e.slides,l=e.id,t.map(function(e,t){return{node:e,key:"".concat(l,"-slide-").concat(t)}})}),2),x=h[0],g=h[1];(0,r.useEffect)(function(){e.randomise&&g(function(e){return shuffleArray(e)})},[]);var b=(0,n._)((0,r.useState)(0),2),p=b[0],v=b[1],w=(0,n._)((0,r.useState)(0),2),j=w[0],N=w[1],k=(0,n._)((0,r.useState)(!1),2),_=k[0],y=k[1],C=(0,n._)((0,r.useState)(!1),2),I=C[0],S=C[1],Z=(0,r.useCallback)(function(){m&&(v(m.selectedScrollSnap()),y(m.canScrollPrev()),S(m.canScrollNext()))},[m]);return(0,r.useEffect)(function(){if(m)return N(m.scrollSnapList().length),m.on("select",Z),m.on("reInit",function(){N(m.scrollSnapList().length),Z()}),Z(),function(){m.off("select",Z),m.off("reInit",Z)}},[m,Z]),(0,r.useEffect)(function(){null==m||m.reInit()},[x,m]),(0,a.jsxs)("section",{id:e.id,"aria-label":e.title,className:"container ".concat(e.className),children:[(e.title||e.linkHref&&e.linkText)&&(0,a.jsxs)("div",{className:["mb-4",e.titleCenteredMobile?e.titleCenteredDesktop?"flex flex-col items-center lg:relative":"flex flex-col lg:flex-row items-center lg:justify-between":e.titleCenteredDesktop?"flex items-center justify-between lg:relative":"flex items-center justify-between"].join(" "),children:[e.title&&(0,a.jsx)("h2",{className:["ds-bc-heading-02",e.titleCenteredMobile&&e.titleCenteredDesktop?"text-center w-full":e.titleCenteredMobile?"text-center lg:text-left":e.titleCenteredDesktop?"lg:text-center lg:w-full":""].filter(
1Boolean).join(" "),children:e.title}),(0,a.jsxs)("div",{className:["flex items-center gap-4",e.titleCenteredMobile?"hidden lg:flex":"ml-auto",e.titleCenteredDesktop?"lg:absolute lg:right-0":""].filter(Boolean).join(" "),children:[e.linkHref&&e.linkText&&!e.titleCenteredDesktop&&(0,a.jsx)("a",{href:e.linkHref,className:"text-ds-grey-400 underline ds-copy-small","aria-label":e.linkText,children:e.linkText}),(0,a.jsxs)("div",{className:"hidden lg:flex items-center gap-2",children:[(0,a.jsx)("button",{type:"button",onClick:function(){return null==m?void 0:m.scrollPrev()},disabled:!_,className:"flex justify-center items-center bg-ds-grey-100 disabled:opacity-30 shadow-sm rounded-full w-5 h-5 transition-opacity","aria-label":"Previous slide",children:(0,a.jsx)(c.Z,{name:"chevron",width:12,height:12,className:"rotate-90"})}),(0,a.jsx)("button",{type:"button",onClick:function(){return null==m?void 0:m.scrollNext()},disabled:!I,className:"flex justify-center items-center bg-ds-grey-100 disabled:opacity-30 shadow-sm rounded-full w-5 h-5 transition-opacity","aria-label":"Next slide",children:(0,a.jsx)(c.Z,{name:"chevron",width:12,height:12,className:"-rotate-90"})})]})]}),e.titleCenteredMobile&&e.linkHref&&e.linkText&&(0,a.jsx)("a",{href:e.linkHref,className:"lg:hidden mt-2 text-ds-grey-400 text-center underline ds-copy-small","aria-label":e.linkText,children:e.linkText})]}),(0,a.jsx)("div",{ref:f,className:"-mx-4 md:mx-0 pl-4 md:pl-0 overflow-hidden",children:(0,a.jsxs)("ul",{className:"flex",children:[x.map(function(t){var l=t.node,n=t.key;return(0,a.jsx)("li",{className:"flex-[0_0_327px] sm:flex-[0_0_calc(50%-4px)] lg:flex-[0_0_calc(33.333%-5.33px)] xl:flex-[0_0_calc(25%-6px)] mr-2 min-w-0 ".concat(e.equalHeightSlides?"flex":""),children:(0,a.jsx)("div",{className:e.equalHeightSlides?"w-full h-full":"w-full",children:l})},n)}),e.advertCard&&(0,a.jsx)("li",{className:"flex-[0_0_327px] sm:flex-[0_0_calc(50%-4px)] lg:flex-[0_0_calc(33.333%-5.33px)] xl:flex-[0_0_calc(25%-6px)] mr-2 min-w-0 ".concat(e.equalHeightSlides?"flex":""),children:(0,a.jsx)("div",{className:e.equalHeightSlides?"w-full h-full":"w-full",children:e.advertCard})},"advert-card")]})}),(i=(null===(t=e.pagination)||void 0===t?void 0:t.mobile)!==!1,d=(null===(l=e.pagination)||void 0===l?void 0:l.desktop)!==!1,i||d?(0,a.jsx)(o.Z,{count:j,activeIndex:p,className:"mt-4 ".concat(i&&d?"":i?"lg:hidden":"hidden lg:block").trim()}):null)]})}},14411:function(e,t,l){var n=l(72253),i=l(91309),a=l(85893),r=l(67294),getFileExtension=function(e){var t=e.lastIndexOf(".");return -1!==t?e.substring(t+1):""},s=/^[a-z]+_[^/]+$/,stripLeadingTransformations=function(e){for(var t,l=e.split("/");l.length>1&&(t=l[0]).length>0&&t.split(",").every(function(e){return s.test(e)});)l.shift();return l.join("/")},buildCloudinaryUrl=function(e,t,l,n){var i=["c_fill",n,"w_".concat(t)];return l&&i.push("h_".concat(l)),"".concat("https://res.dayoutwiththekids.co.uk/image/upload/").concat(i.join(","),"/").concat(e)};t.Z=function(e){var t,l,s,c,o=(0,r.useRef)(null),d=(0,i._)((0,r.useState)(!1),2),u=d[0],f=d[1];(0,r.useEffect)(function(){var e;(null===(e=o.current)||void 0===e?void 0:e.complete)&&f(!0)},[]);var handleLoad=function(){return f(!0)},handleError=function(){return f(!0)},m="".concat(null!==(t=e.pictureClassName)&&void 0!==t?t:""," ").concat(u?"":"bg-ds-grey-200").trim();if(!e.imageUrl)return(0,a.jsx)(a.Fragment,{});if(!e.imageUrl.includes("/upload/"))return(0,a.jsx)("picture",{className:m,children:(0,a.jsx)("img",(0,n._)({ref:o,src:e.imageUrl,alt:e.alt,width:e.width,height:e.height,className:e.imageClassName,loading:null!==(l=e.loading)&&void 0!==l?l:"lazy",title:e.alt,onLoad:handleLoad,onError:handleError},e.presentation&&{role:"presentation"}))});var h=e.imageUrl.split("/upload/")[1];if(null==h)return(0,a.jsx)(a.Fragment,{});h=stripLeadingTransformations(h);var x=getFileExtension(e.imageUrl);x&&(h=h.replace(".".concat(x),""));var g=e.quality?"q_".concat(e.quality):"q_auto",b=buildCloudinaryUrl(h,e.width,e.height,g),p=buildCloudinaryUrl(h,2*e.width,e.height?2*e.height:void 0,g);return(0,a.jsxs)("picture",{className:m,children:[e.srcSet&&e.srcSet.length>0&&e.srcSet.map(function(e){var t=e.width,l=e.height,n=e.breakpoint,i=buildCloudinaryUrl(h,t,l,g),r=buildCloudinaryUrl(h,2*t,l?2*l:void 0,g);return(0,a.jsx)("source",{srcSet:"".concat(i," 1x, ").concat(r," 2x"),media:"(min-width: ".concat(n,"px)")},n)}
1),(0,a.jsx)("img",(0,n._)({ref:o,src:b,srcSet:"".concat(b," 1x, ").concat(p," 2x"),alt:e.alt,width:e.width,height:null!==(s=null==e?void 0:e.height)&&void 0!==s?s:"auto",className:e.imageClassName,loading:null!==(c=e.loading)&&void 0!==c?c:"lazy",title:e.alt,onLoad:handleLoad,onError:handleError},e.presentation&&{role:"presentation"}))]})}},11444:function(e,t,l){var n=l(85893),i={default:{container:"flex justify-center items-center gap-1.5",activeDot:"w-6 h-1 rounded-full bg-black",inactiveDot:"w-1 h-1 rounded-full bg-ds-grey-500"},light:{container:"flex justify-center items-center gap-1.5",activeDot:"w-6 h-1 rounded-full bg-white",inactiveDot:"w-1 h-1 rounded-full bg-white"},pill:{container:"flex justify-center items-center gap-1 bg-white px-3 py-2 rounded-full",activeDot:"w-4 h-1 rounded-sm bg-black",inactiveDot:"w-1 h-1 rounded-full bg-ds-grey-400"}};t.Z=function(e){if(e.count<=1)return null;var t,l,a=i[null!==(t=e.variant)&&void 0!==t?t:"default"];return(0,n.jsx)("div",{className:"".concat(a.container," ").concat(null!==(l=e.className)&&void 0!==l?l:""),"aria-hidden":"true",children:Array.from({length:e.count},function(t,l){return(0,n.jsx)("span",{className:"block transition-all duration-300 ".concat(l===e.activeIndex?a.activeDot:a.inactiveDot)},l)})})}},51148:function(e,t,l){l.d(t,{Z:function(){return tickets_TicketCarouselFannedImage}});var n=l(72253),i=l(14932),a=l(91309),r=l(4586),s=l(85893),c=l(67294),o=l(89382),d=l(18442),u=l(11444),f=l(81978),m=l(14411),h=l(34035),cards_TicketCardPlacement=function(e){var t=(0,c.useRef)(null),l=(0,c.useMemo)(function(){if(e.sectionId&&e.metadata)return(0,i._)((0,n._)({},e.metadata),{sectionId:e.sectionId,component:"Ticket Card Placement"})},[e.sectionId,e.metadata]);return(0,c.useEffect)(function(){if(l&&t.current){var e=new IntersectionObserver(function(t){(0,a._)(t,1)[0].isIntersecting&&((0,h.HU)({eventName:"ticketing_card_impression",trackingProps:l}),e.disconnect())},{threshold:.5});return e.observe(t.current),function(){return e.disconnect()}}},[]),(0,s.jsxs)("a",{ref:t,href:e.href,className:"group block relative flex-[0_0_200px] rounded-lg min-w-0 overflow-hidden","aria-label":"View ".concat(e.title," tickets"),onClick:function(){l&&(0,h.YT)({eventName:"ticketing_card_click",trackingProps:l})},children:[(0,s.jsx)(m.Z,{imageUrl:e.image.url,alt:e.image.alt,width:200,height:133,pictureClassName:"block w-[200px] h-[133px] overflow-hidden",imageClassName:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105"}),(0,s.jsxs)("div",{className:"bottom-0 absolute inset-x-0 bg-gradient-to-t from-0% from-black to-transparent px-4 pt-6 pb-4 rounded-b-lg text-center",children:[(0,s.jsx)("p",{className:"mb-0 overflow-hidden text-white text-ellipsis whitespace-nowrap ds-bc-heading-04",children:e.title}),e.price&&(0,s.jsxs)("p",{className:"mb-0 text-white ds-label-sm",children:["From ",e.price.current]})]})]})},x=l(24911),g=l(59398),shuffleArray=function(e){for(var t=(0,r._)(e),l=t.length-1;l>0;l--){var n,i=Math.floor(Math.random()*(l+1));n=[t[i],t[l]],t[l]=n[0],t[i]=n[1]}return t},tickets_TicketCarouselFannedImage=function(e){var t,l=(0,a._)((0,o.Z)({align:"start",containScroll:"trimSnaps",slidesToScroll:1}),2),r=l[0],m=l[1],b=(0,a._)((0,c.useState)(e.cards),2),p=b[0],v=b[1];(0,c.useEffect)(function(){e.randomise&&v(shuffleArray(e.cards))},[]);var w=(0,a._)((0,c.useState)(0),2),j=w[0],N=w[1],k=(0,a._)((0,c.useState)(0),2),_=k[0],y=k[1],C=(0,a._)((0,c.useState)(!1),2),I=C[0],S=C[1],Z=(0,a._)((0,c.useState)(!1),2),T=Z[0],D=Z[1],E=(0,c.useCallback)(function(){m&&(N(m.selectedScrollSnap()),S(m.canScrollPrev()),D(m.canScrollNext()))},[m]);return(0,c.useEffect)(function(){if(m)return y(m.scrollSnapList().length),m.on("select",E),m.on("reInit",function(){y(m.scrollSnapList().length),E()}),E(),function(){m.off("select",E),m.off("reInit",E)}},[m,E]),(0,s.jsxs)("section",{id:e.id,className:"overflow-hidden ".concat(null!==(t=e.className)&&void 0!==t?t:""),"aria-label":"".concat(e.title.line1," ").concat(e.title.line2),children:[e.fannedImages&&(0,s.jsx)("div",{className:"sm:hidden mb-4 w-full",children:(0,s.jsx)(x.Z,(0,i._)((0,n._)({},e.fannedImages),{sectionId:e.sectionId}))}),(0,s.jsx)("div",{className:"lg:px-14 container",children:(0,s.jsxs)("div",{className:"flex lg:flex-row flex-col lg:justify-between lg:items-center gap-2",children:[(0,s.jsxs)("div",{className:"flex flex-col lg:flex-1 items-center lg:items-start lg:w-1/2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-4 mb-4 w-full",children:[(0,s.jsx)(d.Z,{name:"tickets-gradient",width:55,height:40}),(0,s.jsxs)("h2",{className:"mb-0 ds-bc-heading-02",children:[e.title.line1," ",(0,s.jsx)("br",{}),e.title.line2]})]}),(0,s.jsx)("div",{className:"gap-3 grid grid-cols-1 sm:grid-cols-2 mb-4 w-full",children:g.h.map(function(e){return(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"flex justify-center items-center rounded-full w-8 h-8 ".concat(e.iconBgColor," shrink-0"),children:(0,s.jsx)(d.Z,{name:e.icon,width:16,height:16})}),(0,s.jsxs)("div",{className:"flex flex-col gap-1 min-w-0",children:[(0,s.jsx)("p",{className:"mb-0 ds-bc-heading-04",children:e.title}),(0,s.jsx)("p",{className:"mb-0 text-ds-grey-500 ds-label-sm",children:e.description})]})]},e.id)})}),(0,s.jsxs)("div",{className:"relative -mx-4 lg:mx-0 mb-4 w-[calc(100%+32px)] lg:w-full",children:[(0,s.jsx)("div",{ref:r,className:"px-4 lg:px-0 overflow-hidden",children:(0,s.jsx)("div",{className:"flex gap-2",children:p.map(function(t,l){return(0,s.jsx)(cards_TicketCardPlacement,(0,i._)((0,n._)({},t),{sectionId:e.sectionId}),t.href)})})}),(0,s.jsx)("div",{className:"hidden md:block top-0 right-0 bottom-0 absolute bg-gradient-to-l from-white to-transparent w-10 pointer-events-none","aria-hidden":"true"}),T&&(0,s.jsx)("button",{type:"button",onClick:function(){return null==m?void 0:m.scrollNext()},className:"hidden top-1/2 -right-5 absolute md:flex justify-center items-center bg-white shadow-md rounded-full w-10 h-10 -translate-y-1/2","aria-label":"Next tickets",children:(0,s.jsx)(d.Z,{name:"chevron",width:16,height:16,className:"-rotate-90"})}),I&&(0,s.jsx)("button",{type:"button",onClick:function(){return null==m?void 0:m.scrollPrev()},className:"hidden top-1/2 -left-5 absolute md:flex justify-center items-center bg-white shadow-md rounded-full w-10 h-10 -translate-y-1/2","aria-label":"Previous tickets",children:(0,s.jsx)(d.Z,{name:"chevron",width:16,height:16,className:"rotate-90"})})]}),(0,s.jsx)(u.Z,{count:_,activeIndex:j,className:"lg:hidden mb-4 w-full"}),(0,s.jsx)("div",{className:"flex justify-center lg:justify-start w-full",children:(0,s.jsx)(f.Z,{href:e.button.href,title:e.button.text,style:"outline",colour:"black",size:"lg",onClick:e.sectionId?function(){return(0,h.YT)({eventName:"call_to_action",trackingProps:{sectionId:e.sectionId,component:"Button - ".concat(e.button.text)}})}:void 0})})]}),e.fannedImages&&(0,s.jsx)("div",{className:"hidden lg:block lg:w-1/2 lg:shrink-0",children:(0,s.jsx)(x.Z,(0,i._)((0,n._)({},e.fannedImages),{sectionId:e.sectionId}))})]})})]})}}}]);

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.