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]="2266794d-c5d0-4277-b72f-4d1c0b20a9e6",e._sentryDebugIdIdentifier="sentry-dbid-2266794d-c5d0-4277-b72f-4d1c0b20a9e6")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2148],{80299:function(e,t,a){var l=a(85893),i=a(14411);t.Z=function(e){var t,a=e.image.alt_text||"".concat(e.link.title," featured image");return(0,l.jsxs)("a",{href:e.link.url,title:e.link.title,className:"group flex flex-col bg-white h-full overflow-hidden rounded-lg hover:shadow-[0_8px_24px_-6px_rgba(0,0,0,0.10)] transition-shadow duration-200 ease-out ".concat(null!==(t=e.className)&&void 0!==t?t:""),"aria-label":"Read article: ".concat(e.link.title),children:[(0,l.jsx)("div",{className:"relative bg-ds-grey-100 pt-[56.25%] shrink-0 overflow-hidden",children:(0,l.jsx)(i.Z,{imageUrl:e.image.url,alt:a,width:300,height:169,pictureClassName:"absolute inset-0 block w-full h-full transition-transform duration-500 ease-out group-hover:scale-105",imageClassName:"w-full h-full object-cover",loading:"lazy"})}),(0,l.jsxs)("div",{className:"flex flex-col flex-1 md:p-4 px-3 py-4 border-ds-grey-300 border-x border-b rounded-b-lg",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1 mb-1 md:mb-2",children:[(0,l.jsx)("span",{className:"text-ds-grey-500 ds-copy-xs",children:e.author}),(0,l.jsx)("span",{className:"block bg-ds-grey-400 rounded-full w-1 h-1","aria-hidden":"true"}),(0,l.jsx)("span",{className:"text-ds-grey-500 ds-copy-xs",children:e.date})]}),(0,l.jsx)("h3",{className:"mb-1 md:mb-2 line-clamp-2 ds-bc-heading-04",children:e.link.title}),(0,l.jsx)("div",{className:"flex-1 mb-0 text-ds-grey-500 line-clamp-3 ds-copy-sm",dangerouslySetInnerHTML:{__html:e.description}}),e.display_tags&&e.display_tags.length>0&&(0,l.jsx)("ul",{className:"flex flex-wrap gap-1.5 mt-3",children:e.display_tags.map(function(e){return(0,l.jsx)("li",{className:"bg-ds-purple-100 px-2.5 py-1 rounded-full text-ds-purple-300 capitalize ds-label-sm",dangerouslySetInnerHTML:{__html:e}},e)})})]})]})}},18191:function(e,t,a){var l=a(91309),i=a(85893),s=a(67294),n=a(89382),r=a(18442),o=a(11444),c=a(80299),d=a(81978);t.Z=function(e){var t,a,u,h=(0,l._)((0,n.Z)({align:"start",slidesToScroll:1,containScroll:"trimSnaps"}
1),2),m=h[0],g=h[1],p=(0,l._)((0,s.useState)(0),2),x=p[0],f=p[1],b=(0,l._)((0,s.useState)(0),2),v=b[0],w=b[1],k=(0,l._)((0,s.useState)(!1),2),j=k[0],N=k[1],y=(0,l._)((0,s.useState)(!1),2),_=y[0],C=y[1],Z=(0,s.useCallback)(function(){g&&(f(g.selectedScrollSnap()),N(g.canScrollPrev()),C(g.canScrollNext()))},[g]);return(0,s.useEffect)(function(){if(g)return w(g.scrollSnapList().length),g.on("select",Z),g.on("reInit",function(){w(g.scrollSnapList().length),Z()}),Z(),function(){g.off("select",Z),g.off("reInit",Z)}},[g,Z]),(0,i.jsx)("section",{id:null!==(t=e.id)&&void 0!==t?t:"blog-carousel",className:null!==(a=e.className)&&void 0!==a?a:"","aria-label":null!==(u=e.title)&&void 0!==u?u:"Blog articles",children:(0,i.jsxs)("div",{className:"container",children:[e.title&&(0,i.jsxs)("div",{className:e.description?"mb-6 text-center":"mb-3",children:[(0,i.jsx)("h2",{className:"ds-bc-heading-02",children:e.title}),e.description&&(0,i.jsx)("p",{className:"mx-auto mt-2 max-w-3xl text-ds-grey-500 ds-copy-regular",children:e.description})]}),(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)("div",{ref:m,className:"-mx-4 md:mx-0 px-4 md:px-0 overflow-hidden",children:(0,i.jsx)("ul",{className:"flex",children:e.blogs.map(function(e,t){return(0,i.jsx)("li",{className:"flex-[0_0_260px] md:flex-[0_0_calc(50%-4px)] xl:flex-[0_0_calc(25%-6px)] mr-2 min-w-0",children:(0,i.jsx)(c.Z,{image:{url:e.display_image,alt_text:e.title},author:e.author.name,date:e.display_date,link:{title:e.title,url:e.link},description:e.display_excerpt,display_tags:e.display_tags})},t)})})}),(0,i.jsx)(o.Z,{count:v,activeIndex:x,className:"md:hidden mt-4"}),j&&(0,i.jsx)("button",{type:"button",onClick:function(){return null==g?void 0:g.scrollPrev()},className:"hidden top-1/2 -left-5 absolute md:flex justify-center items-center bg-ds-grey-100 shadow-sm rounded-full w-10 h-10 transition-opacity -translate-y-1/2","aria-label":"Previous slide",children:(0,i.jsx)(r.Z,{name:"chevron",width:16,height:16,className:"rotate-90"})}),_&&(0,i.jsx)("button",{type:"button",onClick:function(){return null==g?void 0:g.scrollNext()},className:"hidden top-1/2 -right-5 absolute md:flex justify-center items-center bg-ds-grey-100 shadow-sm rounded-full w-10 h-10 transition-opacity -translate-y-1/2","aria-label":"Next slide",children:(0,i.jsx)(r.Z,{name:"chevron",width:16,height:16,className:"-rotate-90"})})]}),(0,i.jsx)("div",{className:"text-center mt-6 ".concat(e.showCta?"block":"hidden"),children:(0,i.jsx)(d.Z,{href:"/hub",title:"View All Articles",ariaLabel:"View all articles on the blog",size:"lg"})})]})})}},64946:function(e,t,a){var l=a(72253),i=a(14932),s=a(91309),n=a(85893),r=a(67294),o=a(14411),c=a(18442),d=a(57304),u=a(45048),h=a(31079),m=a(96981),g=a(34035);t.Z=function(e){var t,a=(0,r.useRef)(null),p=(0,r.useRef)(null),x=(0,r.useMemo)(function(){if(e.sectionId&&e.metadata)return(0,i._)((0,l._)({},e.metadata),{sectionId:e.sectionId,component:"Attraction Card Carousel"})},[e.sectionId,e.metadata]);return(0,r.useEffect)(function(){if(x&&a.current){var e=new IntersectionObserver(function(t){(0,s._)(t,1)[0].isIntersecting&&((0,g.HU)({eventName:"attraction_card_impression",trackingProps:x}),e.disconnect())},{threshold:.5});return e.observe(a.current),function(){return e.disconnect()}}},[]),(0,n.jsxs)("div",{ref:a,className:"group relative flex flex-col bg-white hover:shadow-[0_8px_24px_-6px_rgba(0,0,0,0.10)] rounded-[24px] h-full transition-shadow duration-200 ease-out",children:[(0,n.jsx)("a",{ref:p,href:e.href,className:"z-[1] absolute inset-0 rounded-[24px]","aria-label":"View details for ".concat(e.title),onClick:function(){x&&(0,g.YT)({eventName:"attraction_card_click",trackingProps:x})}}),e.onSaveToggle&&(0,n.jsx)("button",{type:"button",className:"top-1 right-1 z-20 absolute flex justify-center items-center bg-ds-grey-100 hover:bg-white shadow-sm rounded-full w-8 h-8 transition-colors","aria-label":e.isSaved?"Remove ".concat(e.title," from saved"):"Save ".concat(e.title),onClick:e.onSaveToggle,children:(0,n.jsx)(c.Z,{name:e.isSaved?"bookmark-solid":"bookmark",width:16,height:16})}),(0,n.jsxs)("div",{className:"z-[2] relative flex flex-col flex-1 pointer-events-none",children:[(0,n.jsxs)("div",{className:"relative","aria-hidden":"true",children:[(0,n.jsx)("div",{className:"rounded-t-[24px] aspect-[16/8] overflow-hidden",children:(null===(t=e.images)||void 0===t?void 0:t[0])&&(0,n.jsx)(o.Z,{imageUrl:e.images[0].url,alt:e.images[0].alt,width:400,height:300,pictureClassName:"block w-full h-full transition-transform duration-500 ease-out group-hover:scale-105",imageClassName:"w-full h-full object-cover",loading:"lazy"})}),e.salesFlag&&(0,n.jsx)("span",{className:"top-2 left-1 absolute bg-ds-grey-100 px-2 py-1 rounded-lg font-bold pointer-events-none ds-label-sm-caps",children:e.salesFlag}),e.venueLogoUrl&&(0,n.jsx)(o.Z,{imageUrl:e.venueLogoUrl,alt:"".concat(e.title," logo"),width:48,height:48,pictureClassName:"absolute bottom-0 right-2 z-10 w-[48px] h-[48px] rounded-full border border-white bg-white overflow-hidden transform translate-y-1/2",imageClassName:"w-full h-full object-cover"})]}),(0,n.jsxs)("div",{className:"flex-1 px-4 pt-3 pb-3 border-ds-grey-300 border-r border-l",children:[(0,n.jsx)(d.Z,{location:e.displayLocation,title:e.title,className:"mb-3 [&>h3]:line-clamp-2"}),(0,n.jsx)(u.Z,{categories:e.categories}),(0,n.jsx)(h.Z,{isVerified:e.isVerified,rating:e.rating,distance:e.distance,minAge:e.minAge})]}),(0,n.jsx)(m.Z,{title:e.title,price:e.price,ticketsHref:e.ticketsHref,onDetailsClick:function(){var e;return null===(e=p.current)||void 0===e?void 0:e.click()},onTicketsClick:function(){x&&(0,g.YT)({eventName:"attraction_card_click",trackingProps:x})}})]})]})}},96981:function(e,t,a){var l=a(85893),i=a(81978),s=a(95175);t.Z=function(e){return(0,l.jsxs)("div",{className:"flex flex-row justify-between items-cen gap-2 px-4 pb-4 border-ds-grey-300 border-r border-b border-l rounded-b-[24px]",children:[e.price&&(0,l.jsxs)("div",{className:"flex flex-col mb-0",children:[(0,l.jsxs)("span",{className:"text-ds-grey-400 ds-label-sm",children:["From"," "]}),(0,l.jsxs)("span",{className:"text-[16px] text-black leading-[18px]",children:[(0,l.jsx)("strong",{children:e.price.current}),e.price.original&&(0,l.jsx)("s",{className:"ml-1 text-ds-grey-400 ds-label-md",children:e.price.original})]})]}),(0,l.jsxs)("div",{className:"flex flex-row gap-2",children:[(0,l.jsx)("span",{className:"".concat((0,s.y)("outline","xs","black","whitespace-nowrap")," pointer-events-auto"),"aria-hidden":"true",onClick:e.onDetailsClick,children:"View Details"}
1),e.ticketsHref&&(0,l.jsx)(i.Z,{href:e.ticketsHref,title:"Tickets",style:"outline",colour:"black",size:"xs",className:"z-[3] relative whitespace-nowrap pointer-events-auto",ariaLabel:"Buy tickets for ".concat(e.title),onClick:e.onTicketsClick})]})]})}},45048:function(e,t,a){var l=a(85893);t.Z=function(e){return 0===e.categories.length?null:(0,l.jsx)("p",{"aria-label":"Categories",className:"mb-1 text-ds-grey-400 line-clamp-1 ds-label-sm".concat(e.className?" ".concat(e.className):""),children:e.categories.join(" \xb7 ")})}},31079:function(e,t,a){var l=a(85893),i=a(18442);t.Z=function(e){var t="light"===e.variant,a=t?"text-white":"",s=t?"text-white":"text-ds-grey-400";if(!(e.isVerified||void 0!==e.rating||e.distance||void 0!==e.minAge))return null;var n=[e.isVerified?(0,l.jsxs)("li",{className:"flex items-center gap-1 ds-label-sm ".concat(a),children:[(0,l.jsx)(i.Z,{name:t?"verified-badge-white":"verified-badge",width:14,height:14}),"Verified"]},"verified"):null,void 0!==e.rating?(0,l.jsxs)("li",{className:"flex items-center gap-1 ds-label-sm ".concat(a),children:[(0,l.jsx)(i.Z,{name:"review-star",width:14,height:14}),e.rating]},"rating"):null,null!=e.distance&&""!==e.distance?(0,l.jsxs)("li",{className:"flex items-center gap-1 ds-label-sm ".concat(s).concat(t?" opacity-60":""),children:[(0,l.jsx)(i.Z,{name:t?"location-pin-white":"location-pin-grey",width:14,height:14}),e.distance," mi"]},"distance"):null,void 0!==e.minAge?(0,l.jsxs)("li",{className:"flex items-center gap-1 ds-label-sm ".concat(s).concat(t?" opacity-60":""),children:[(0,l.jsx)(i.Z,{name:t?"information-white":"information-grey",width:14,height:14}),e.minAge]},"minAge"):null].filter(Boolean),r=t?n.flatMap(function(e,t){return 0===t?[e]:[(0,l.jsx)("li",{"aria-hidden":"true",className:"opacity-30 text-white ds-label-sm",children:"|"},"separator-".concat(t)),e]}):n;return(0,l.jsx)("ul",{"aria-label":"Highlights",className:"flex flex-wrap ".concat(e.compact?"gap-1":"gap-x-2.5 gap-y-1").concat(e.className?" ".concat(e.className):""),children:r})}},12248:function(e,t,a){var l=a(85893),i=a(14411);t.Z=function(e){var t=e.href,a=e.primaryImage,s=e.leftImage,n=e.farLeftImage,r=e.rightImage,o=e.farRightImage;return(0,l.jsxs)("div",{className:"relative w-full overflow-hidden",children:[n&&(0,l.jsx)("div",{className:"bottom-[5%] sm:bottom-[2%] left-[-4%] sm:left-[3%] absolute w-[32%] sm:w-[28%] -rotate-[16deg] sm:-rotate-[8deg]",children:(0,l.jsx)(i.Z,{imageUrl:n.url,alt:n.alt,width:180,height:240,pictureClassName:"block w-full relative pt-[178%] rounded-[16px] sm:rounded-[22px] overflow-hidden",imageClassName:"block absolute top-0 left-0 w-full h-full object-cover object-center",loading:"lazy"})}),o&&(0,l.jsx)("div",{className:"right-[-4%] sm:right-[3%] bottom-[5%] sm:bottom-[2%] absolute w-[32%] sm:w-[28%] rotate-[16deg] sm:rotate-[8deg]",children:(0,l.jsx)(i.Z,{imageUrl:o.url,alt:o.alt,width:180,height:240,pictureClassName:"block w-full relative pt-[178%] rounded-[16px] sm:rounded-[22px] overflow-hidden",imageClassName:"block absolute top-0 left-0 w-full h-full object-cover object-center",loading:"lazy"})}),s&&(0,l.jsx)("div",{className:"bottom-[2%] left-[15%] absolute w-[37%] sm:w-[30%] -rotate-[6deg]",children:(0,l.jsx)(i.Z,{imageUrl:s.url,alt:s.alt,width:200,height:267,pictureClassName:"block w-full relative pt-[178%] overflow-hidden rounded-[16px] sm:rounded-[22px]",imageClassName:"block absolute top-0 left-0 w-full h-full object-cover object-center",loading:"lazy"})}),r&&(0,l.jsx)("div",{className:"right-[15%] bottom-[2%] absolute w-[37%] sm:w-[30%] rotate-[6deg]",children:(0,l.jsx)(i.Z,{imageUrl:r.url,alt:r.alt,width:200,height:267,pictureClassName:"block w-full relative pt-[178%] overflow-hidden rounded-[16px] sm:rounded-[22px]",imageClassName:"block absolute top-0 left-0 w-full h-full object-cover object-center",loading:"lazy"})}),(0,l.jsx)("a",{href:t,className:"block relative mx-auto w-[39%] sm:w-[32%]",onClick:e.onClick,children:(0,l.jsx)(i.Z,{imageUrl:a.url,alt:a.alt,width:240,height:320,pictureClassName:"block w-full relative pt-[178%] overflow-hidden rounded-[16px] sm:rou
1nded-[22px]",imageClassName:"block absolute top-0 left-0 w-full h-full object-cover object-center"})})]})}},91089:function(e,t,a){var l=a(72253),i=a(14932),s=a(47702),n=a(85893),r=a(95175),o=a(18442);t.Z=function(e){var t=e.style,a=void 0===t?"solid":t,c=e.size,d=void 0===c?"md":c,u=e.colour,h=void 0===u?"purple":u,m=e.title,g=e.iconLeft,p=e.iconRight,x=e.className,f=e.disabled,b=e.ariaLabel,v=(0,s._)(e,["style","size","colour","title","iconLeft","iconRight","className","disabled","ariaLabel"]);return(0,n.jsxs)("button",(0,i._)((0,l._)({className:"".concat((0,r.y)(a,d,h,x)," disabled:opacity-[0.24] disabled:pointer-events-none"),disabled:f,"aria-label":b||m},v),{children:[g&&(0,n.jsx)(o.Z,{name:g,width:16,height:16}),(0,n.jsx)("span",{children:m}),p&&(0,n.jsx)(o.Z,{name:p,width:16,height:16})]}))}},90764:function(e,t,a){var l=a(85893);t.Z=function(e){var t,a=[e.greyBg?"bg-ds-grey-100":"",e.addDecoration?"mediavine-decoration":""].filter(Boolean).join(" ");if(e.container)return(0,l.jsx)("div",{className:"container ".concat(null!==(t=e.className)&&void 0!==t?t:"").trim(),"aria-label":"Advertisement",children:(0,l.jsx)("div",{className:a,children:(0,l.jsx)("div",{className:"content_hint"})})});var i=[e.className,e.addDecoration?"mediavine-decoration":""].filter(Boolean).join(" ");return(0,l.jsx)("div",{className:i,"aria-label":"Advertisement",children:(0,l.jsx)("div",{className:"content_hint"})})}},37077:function(e,t,a){a.d(t,{x:function(){return l},z:function(){return i}});var l="/travel/short-breaks/merlin",i={"alton-towers":{id:"alton-towers",name:"Alton Towers Resort",image:"https://res.dayoutwiththekids.co.uk/image/upload/v1777364832/short-breaks/placements/p1011468_jh58v1.webp",logo:"https://res.dayoutwiththekids.co.uk/image/upload/v1776431774/short-breaks/merlin/logo-alton-towers.webp",headline:"Make memories at Alton Towers Resort",tagline:"Themed hotel + park tickets + breakfast",price:"\xa342pp"},legoland:{id:"legoland",name:"LEGOLAND Windsor Resort",image:"https://res.dayoutwiththekids.co.uk/image/upload/v1777364832/short-breaks/placements/woodland-village-cluster_cqt9uk.webp",logo:"https://res.dayoutwiththekids.co.uk/image/upload/v1776431774/short-breaks/merlin/logo-legoland.webp",headline:"Build the perfect break at LEGOLAND Windsor",tagline:"Themed hotel + park tickets + breakfast",price:"\xa349pp"},chessington:{id:"chessington",name:"Chessington World of Adventures",image:"https://res.dayoutwiththekids.co.uk/image/upload/v1777364832/short-breaks/placements/penguin-room-7x5_bq6rho.webp",logo:"https://res.dayoutwiththekids.co.uk/image/upload/v1776431774/short-breaks/merlin/logo-chessington.webp",headline:"A wild stay at Chessington World of Adventures",tagline:"Themed hotel + park tickets + breakfast",price:"\xa345pp"},"thorpe-park":{id:"thorpe-park",name:"Thorpe Park Resort",image:"https://res.dayoutwiththekids.co.uk/image/upload/v1777364832/short-breaks/placements/homepage-thorpe-park-1777293526632_pawrrz.webp",logo:"https://res.dayoutwiththekids.co.uk/image/upload/v1776431774/short-breaks/merlin/logo-thorpe-park.webp",headline:"Thrills & sleep at Thorpe Park Resort",tagline:"On-park hotel + 2-day tickets + breakfast",price:"\xa355pp"},"warwick-castle":{id:"warwick-castle",name:"Warwick Castle",image:"https://res.dayoutwiththekids.co.uk/image/upload/v1777364833/short-breaks/placements/lodges-82-1_vefmg9.webp",logo:"https://res.dayoutwiththekids.co.uk/image/upload/v1776431775/short-breaks/merlin/logo-warwick-castle.webp",headline:"Step back in time at Warwick Castle",tagline:"Lodge or glamping + castle entry + breakfast",price:"\xa339pp",darkHalo:!0}}},23198:function(e,t,a){var l=a(91309),i=a(85893),s=a(67294),n=a(18442),r=a(91089),o=a(34035),c=[{icon:"aquariums",label:"Aquariums",href:"/things-to-do/animals/aquariums",colour:"text-[#00559b]"},{icon:"golf",label:"Crazy Golf",href:"/things-to-do/sports-and-activities/crazy-golf/all-ages",colour:"text-[#b300db]"},{icon:"national-parks",label:"National Parks",href:"/things-to-do/adventure/national-parks/all-ages",colour:"text-[#007057]"},{icon:"theme-parks",label:"Theme Parks",href:"/things-to-do/sightseeing/theme-parks-funfairs",colour:"text-[#15067b]"},{icon:"farm",label:"Farms",href:"/things-to-do/animals/childrens-farms",colour:"text-[#7b6201]"},{icon:"soft-play",label:"Soft Play",href:"/things-to-do/sports-and-activities/indoor-soft-play-areas/all-ages",colour:"text-[#004d74]"},{icon:"outdoor-activities",label:"Outdoor Activities",href:"/things-to-do/a
1dventure/activity-centres",colour:"text-[#aa4902]"},{icon:"parks-walks",label:"Parks & Walks",href:"/things-to-do/adventure/parks-playgrounds",colour:"text-[#00704b]"}];t.Z=function(e){var t,a,d,u=null!==(t=e.categories)&&void 0!==t?t:c,h=(0,l._)((0,s.useState)(!1),2),m=h[0],g=h[1],p=u.length-4;return(0,i.jsxs)("section",{className:"container ".concat(null!==(a=e.className)&&void 0!==a?a:""),children:[(0,i.jsx)("h2",{className:"text-black md:text-left text-center ds-bc-heading-02",children:null!==(d=e.title)&&void 0!==d?d:"Popular Categories"}),(0,i.jsx)("div",{className:"gap-2 grid grid-cols-2 md:grid-cols-8 mt-4",children:u.map(function(t,a){return(0,i.jsxs)("a",{href:t.href,className:"flex flex-col items-center justify-center gap-2 rounded-lg bg-ds-grey-100 px-2 py-4 hover:-translate-y-[5px] transition-transform".concat(a>=4?" ".concat(m?"flex":"hidden"," md:flex"):""),"aria-label":t.label,onClick:function(){return(0,o.YT)({eventName:"call_to_action",trackingProps:{sectionId:e.sectionId,component:"Category Tile - ".concat(t.label)}})},children:[(0,i.jsx)(n.Z,{name:t.icon,width:32,height:32}),(0,i.jsx)("span",{className:"ds-label-sm-caps text-center ".concat(t.colour),children:t.label})]},t.label)})}),!m&&p>0&&(0,i.jsx)("div",{className:"md:hidden flex justify-center mt-4",children:(0,i.jsx)(r.Z,{title:"Show ".concat(p," More"),style:"link",onClick:function(){return g(!0)}})})]})}},53931:function(e,t,a){var l=a(72253),i=a(14932),s=a(91309),n=a(85893),r=a(67294),o=a(14411),c=a(81978),d=a(12248),u=a(24911),h=a(34035),m={"sea-life-dark-blue":"bg-ds-partner-color-sea-life-dark-blue","tui-light-blue":"bg-ds-partner-tui","national-trust-green":"bg-ds-partner-color-national-trust-green"};t.Z=function(e){var t,a,g,p=m[e.bgColor],x=null!==(t=e.textColour)&&void 0!==t?t:"white",f="white"===x?"text-white":"text-ds-grey-500",b=(0,r.useRef)(null);(0,r.useEffect)(function(){if(e.tracking&&b.current){var t=e.tracking,a=t.impressionEvent,l=t.trackingProps,i=new IntersectionObserver(function(e){(0,s._)(e,1)[0].isIntersecting&&((0,h.HU)({eventName:a,trackingProps:l}),i.disconnect())},{threshold:.5});return i.observe(b.current),function(){return i.disconnect()}}},[e.tracking]);var handleClick=function(){e.tracking&&(0,h.YT)({eventName:e.tracking.clickEvent,trackingProps:e.tracking.trackingProps})};return(0,n.jsx)("section",{ref:b,className:"".concat(null!==(a=e.className)&&void 0!==a?a:""," sm:container sm:px-14"),"aria-label":e.title,children:(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("div",{className:"lg:hidden top-[30%] bottom-0 absolute inset-x-0 rounded-2xl ".concat(p)}),(0,n.jsx)("div",{className:"hidden lg:block right-[32%] left-0 absolute inset-y-0 rounded-2xl ".concat(p)}),(0,n.jsxs)("div",{className:"relative flex lg:flex-row flex-col lg:items-center",children:[(0,n.jsx)("div",{className:"lg:flex-1 lg:order-2 xl:w-[620px]",children:"square"===e.fannedImagesVariant?(0,n.jsx)(u.Z,(0,i._)((0,l._)({},e.fannedImages),{onClick:handleClick})):(0,n.jsx)(d.Z,(0,i._)((0,l._)({},e.fannedImages),{onClick:handleClick}))}),(0,n.jsxs)("div",{className:"flex flex-col xl:justify-center items-center lg:items-start px-6 lg:py-16 xl:py-0 pt-4 lg:pr-8 pb-6 lg:pl-20 lg:w-[39%] xl:w-[calc(100%-620px)] xl:h-[353px] lg:text-left text-center lg:shrink-0",children:[(0,n.jsxs)("div",{className:"flex flex-col items-center lg:items-start gap-1 lg:gap-4",children:[(0,n.jsx)(o.Z,{imageUrl:e.logo.url,alt:e.logo.alt,width:e.logo.width,height:e.logo.height}),e.subtitle&&(0,n.jsx)("p",{className:"mb-0 ".concat(f," ds-label-sm-caps"),children:e.subt
1itle}),(0,n.jsx)("h2",{className:"mb-0 ".concat("white"===x?"text-white":"text-black"," ds-bc-heading-02"),children:e.title})]}),(0,n.jsx)("p",{className:"mb-0 py-4 ".concat(f," ds-copy-regular"),children:e.description}),(0,n.jsx)(c.Z,{href:e.button.href,title:e.button.text,style:"solid",size:"lg",colour:null!==(g=e.button.colour)&&void 0!==g?g:"purple",onClick:handleClick})]})]})]})})}},29965:function(e,t,a){var l=a(72253),i=a(14932),s=a(91309),n=a(85893),r=a(67294),o=a(26839),c=a(35162),d=a(82701),u=a(37077),h=a(34035);t.Z=function(e){var t,a,m=(0,r.useRef)(null),g=(0,r.useMemo)(function(){return e.ads.filter(Boolean)},[e.ads]),p=(0,r.useMemo)(function(){return g.map(function(e){return e.id}).join("|")},[g]),x=(0,s._)((0,r.useState)(0),2),f=x[0],b=x[1],v=g.length>1;return((0,r.useEffect)(function(){if(e.trackingAttributes&&m.current){var t=new IntersectionObserver(function(a){(0,s._)(a,1)[0].isIntersecting&&((0,h.HU)({eventName:e.trackingImpressionEvent||"partner_ad_impression",trackingProps:(0,i._)((0,l._)({},e.trackingAttributes),{action:"Impression"})}),t.disconnect())},{threshold:.8});return t.observe(m.current),function(){return t.disconnect()}}},[e.trackingAttributes,e.trackingImpressionEvent]),(0,r.useEffect)(function(){if(v){var e=window.setInterval(function(){b(function(e){return(e+1)%g.length})},5e3);return function(){return window.clearInterval(e)}}},[v,g.length]),(0,r.useEffect)(function(){b(0)},[p]),0===g.length)?null:(0,n.jsx)("div",{ref:m,className:"mx-auto px-4 container lg:px-14 ".concat(null!==(t=e.className)&&void 0!==t?t:""),children:(0,n.jsxs)("a",{href:null!==(a=e.href)&&void 0!==a?a:u.x,onClick:function(){e.trackingAttributes&&(0,h.YT)({eventName:e.trackingClickEvent||"partner_ad_click",trackingProps:(0,i._)((0,l._)({},e.trackingAttributes),{action:"Click"})})},className:"group block relative shadow-2xl rounded-2xl w-full aspect-[375/490] lg:aspect-[1208/415] overflow-hidden","aria-label":"Explore Merlin short breaks",children:[g.map(function(e,t){return(0,n.jsx)(o.E.img,{src:e.image,alt:"Merlin Short Breaks promotional image for ".concat(e.name),width:1208,height:415,"aria-hidden":!v||t!==f,className:"absolute inset-0 w-full h-full object-cover",loading:0===t?"eager":"lazy",animate:{opacity:v?t===f?1:0:0===t?1:0},transition:{duration:1,ease:"easeInOut"}},e.id)}),(0,n.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t lg:bg-gradient-to-r from-[#1a0a2e]/95 lg:from-[#1a0a2e]/95 via-[#1a0a2e]/65 lg:via-[#1a0a2e]/70 to-[#1a0a2e]/15 lg:to-transparent pointer-events-none","aria-hidden":"true"}),(0,n.jsx)("div",{className:"top-3 lg:top-6 right-3 lg:right-8 z-20 absolute w-[200px] h-[88px] lg:h-20 pointer-events-none",children:g.map(function(e,t){return(0,n.jsxs)(o.E.div,{className:"absolute inset-0 flex justify-end items-center","aria-hidden":v?t!==f:0!==t,animate:{opacity:v?t===f?1:0:0===t?1:0},transition:{duration:.5,ease:"easeInOut",delay:v&&t===f?.5:0},children:[e.darkHalo?(0,n.jsx)("div",{"aria-hidden":"true",className:"top-1/2 right-0 absolute w-[180px] lg:w-[150px] h-[140px] lg:h-[120px] -translate-y-1/2 pointer-events-none",style:{background:"radial-gradient(circle at 65% 50%, rgba(26,10,46,0.35) 0%, rgba(26,10,46,0.18) 45%, rgba(26,10,46,0) 75%)"}}):(0,n.jsx)("img",{src:e.logo,alt:"",role:"presentation",width:200,height:108,className:"top-1/2 right-0 absolute w-auto max-w-none h-[108px] lg:h-[90px] -translate-y-1/2 pointer-events-none select-none",style:{filter:"blur(14px) brightness(1.1)",opacity:.45}}),(0,n.jsx)("img",{src:e.logo,alt:"".concat(e.name," logo"),width:200,height:88,className:"relative w-auto max-w-full h-[88px] lg:h-20 object-contain",style:{filter:e.darkHalo?"drop-shadow(0 1px 3px rgba(0,0,0,0.9)) drop-shadow(0 0 8px rgba(0,0,0,0.6))":"drop-shadow(0 2px 6px rgba(0,0,0,0.35))"}})]},e.id)})}),(0,n.jsxs)("div",{className:"relative z-10 flex h-full max-w-none flex-col justify-end gap-2.5 px-5 pt-5 lg:max-w-[70%] lg:justify-center lg:gap-3 lg:p-10 xl:p-12 ".concat(v?"pb-14 lg:pb-0":"pb-6 lg:pb-0"),children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 font-bold text-[#ffd700] text-[10px] lg:text-xs uppercase tracking-[0.2em]",children:[(0,n.jsx)(c.Z,{className:"w-3 lg:w-4 h-3 lg:h-4","aria-hidden":"true"}),"Merlin Short Breaks"]}),(0,n.jsx)("div",{className:"relative min-h-[8.5rem] lg:min-h-[6rem]",children:g.map(function(e,t){return(0,n.jsxs)(o.E.div,{className:"absolute inset-0 ".concat(v&&t!==f?"pointer-events-none":""),"aria-hidden":v?t!==f:0!==t,animate:{o
1pacity:v?t===f?1:0:0===t?1:0},transition:{duration:.5,ease:"easeInOut",delay:v&&t===f?.5:0},children:[(0,n.jsx)("div",{className:"font-bold text-[24px] text-white lg:text-3xl xl:text-4xl leading-tight",children:e.headline}),(0,n.jsxs)("p",{className:"opacity-80 mt-2 pr-2 lg:max-w-md text-[13px] text-white lg:text-base leading-snug",children:[e.tagline," -"," ",(0,n.jsxs)("span",{className:"whitespace-nowrap",children:["from ",(0,n.jsx)("span",{className:"font-bold text-[#ffd700]",children:e.price})]})]})]},e.id)})}),(0,n.jsx)("div",{className:"mt-3 lg:mt-5",children:(0,n.jsxs)("span",{className:"inline-flex items-center gap-2 bg-[#e4002b] shadow-lg px-5 lg:px-6 py-2.5 lg:py-3 rounded-full font-bold text-white text-sm group-hover:scale-105 transition-transform",children:["Explore Short Breaks",(0,n.jsx)(d.Z,{className:"w-4 h-4","aria-hidden":"true"})]})})]}),v&&(0,n.jsx)("div",{className:"bottom-3 lg:bottom-4 left-1/2 z-20 absolute flex items-center gap-1.5 -translate-x-1/2","aria-hidden":"true",children:g.map(function(e,t){return(0,n.jsx)("span",{className:"h-1.5 rounded-full transition-all duration-500 ".concat(t===f?"w-6 bg-white":"w-1.5 bg-white opacity-40")},e.id)})})]})})}}}]);
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.