1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9743],{7648:(e,t,r)=>{"use strict";r.d(t,{default:()=>i});var s=r(74074),n=r(85550),l=r.n(n),a=r(91323);function i(e){let{articleId:t,articleTitle:r,position:n,children:i,...o}=e;return(0,s.jsx)(l(),{...o,onClick:()=>(0,a.Q3)({id:t,title:r,position:n}),children:i})}},13264:(e,t,r)=>{"use strict";r.d(t,{B:()=>n});var s=r(90774);function n(e){switch(e.collection){case"listings":{let t=(0,s.P4)(e.type||"");return"/".concat((null==t?void 0:t.url)||e.type||"things-to-do","/").concat(e.name)}case"offers":return"/offers-and-discounts/".concat(e.name);case"collections_search":{let t=(0,s.P4)(e.type||"");return"/".concat((null==t?void 0:t.url)||e.type||"things-to-do","/").concat(e.name)}case"blog_posts":return"/guides/".concat(e.name);default:return"/".concat(e.name)}}},22256:(e,t,r)=>{"use strict";r.d(t,{Wm:()=>i,g3:()=>a});var s=r(19282),n=r(91323),l=r(64187);function a(e){let{query:t,liveQuery:r,resultsCount:a,isLoading:i,type:o="listings",exhaustive:c=!0}=e,u=null!=r?r:t,[d,m]=(0,s.useState)(""),h=(0,s.useRef)("");(0,s.useEffect)(()=>{let e=setTimeout(()=>m(u),2e3);return()=>clearTimeout(e)},[u]);let f=(0,s.useRef)({query:t,resultsCount:a,isLoading:i,type:o,exhaustive:c});f.current={query:t,resultsCount:a,isLoading:i,type:o,exhaustive:c};let g=(0,s.useCallback)(e=>{let{query:t,resultsCount:r,isLoading:s}=f.current;s||e!==t||e.length<l.i||e!==h.current&&((0,n.Ar)(e,f.current.type,r),0===r&&f.current.exhaustive&&(0,n.lt)(e,f.current.type),h.current=e)},[]);return(0,s.useEffect)(()=>{g(d)},[g,d,t,a,i]),{flush:(0,s.useCallback)(()=>g(f.current.query),[g])}}function i(e,t,r,s){(0,n.P)(e,t,r,s)}},25854:(e,t,r)=>{"use strict";r.d(t,{Pz:()=>i,T0:()=>n,Yq:()=>a,fE:()=>s.fE,m3:()=>l});var s=r(17793);let n=e=>{let t=parseInt(e.substring(0,4),10),r=parseInt(e.substring(4,6),10),s=parseInt(e.substring(6,8),10),n=new Date;return n.setUTCFullYear(t),n.setUTCMonth(r-1,s),n.setUTCHours(0),n.setUTCMinutes(0),n.setUTCSeconds(0),n.setUTCMilliseconds(0),n.toISOString()};function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return[e.getFullYear(),e.getMonth()+1,e.getDate()].map(e=>String(e).padStart(2,"0")).join(t)}let a=e=>{let t=new Date(e),r=String(t.getDate()).padStart(2,"0"),s=String(t.getMonth()+1).padStart(2,"0"),n=t.getFullYear();return"".concat(r,".").concat(s,".").concat(n)},i=(e,t)=>{let r=new Date,s=new Date(r),n=new Date(e);return s.setDate(r.getDate()+t),n<=s}},30854:(e,t,r)=>{"use strict";r.d(t,{HomepageButtonLink:()=>c});var s=r(74074),n=r(85550),l=r.n(n),a=r(14047),i=r(60086),o=r(80303);function c(e){let{children:t,color:r="blue",className:n,hardNav:c,...u}=e,d=(0,a.cn)((0,a.ru)({variant:(0,o.Ju)(r),size:"lg"}),"flex h-auto min-h-[2.875rem] min-w-0 flex-1 basis-0 items-center justify-center whitespace-normal break-words p-2 text-center text-sm font-bold leading-none md:text-sm",n),m=(0,s.jsx)("span",{className:"min-w-0",children:(0,s.jsx)("span",{className:"line-clamp-2 leading-none",children:t})}),h="string"==typeof u.href?u.href:"";return""!==h&&(0,i.xw)(h)?c?(0,s.jsx)("a",{href:h,className:d,children:m}):(0,s.jsx)(l(),{...u,className:d,children:m}):(0,s.jsx)("span",{className:d,children:m})}},35641:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(59135).A)("CalendarDays",[["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",ry:"2",key:"eu3xkr"}],["line",{x1:"16",x2:"16",y1:"2",y2:"6",key:"m3sa8f"}],["line",{x1:"8",x2:"8",y1:"2",y2:"6",key:"18kwsl"}],["line",{x1:"3",x2:"21",y1:"10",y2:"10",key:"xt86sb"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]])},40125:(e,t,r)=>{Promise.resolve().then(r.bind(r,49444)),Promise.resolve().then(r.bind(r,55747)),Promise.resolve().then(r.bind(r,51799)),Promise.resolve().then(r.bind(r,83735)),Promise.resolve().then(r.bind(r,53624)),Promise.resolve().then(r.bind(r,30854)),Promise.resolve().then(r.bind(r,149)),Promise.resolve().then(r.bind(r,7648)),Promise.resolve().then(r.t.bind(r,85550,23)),Promise.resolve().then(r.t.bind(r,49779,23)),Promise.resolve().then(r.bind(r,35012)),Promise.resolve().then(r.bind(r,76452)),Promise.resolve().then(r.bind(r,73980)),Promise.resolve().then(r.bind(r,48314)),Promise.resolve().then(r.bind(r,16302)),Promise.resolve().then(r.bind(r,5
1543)),Promise.resolve().then(r.bind(r,96631)),Promise.resolve().then(r.bind(r,18431)),Promise.resolve().then(r.bind(r,35065)),Promise.resolve().then(r.bind(r,76492)),Promise.resolve().then(r.bind(r,21042)),Promise.resolve().then(r.bind(r,26588))},51799:(e,t,r)=>{"use strict";r.d(t,{default:()=>h});var s=r(74074);function n(e){let{collection:t,imageSlot:r,linkSlot:n}=e,l=(0,s.jsxs)("article",{id:t.id,"data-testid":"collection-card",className:"relative h-60 w-full overflow-hidden rounded-md bg-stone-800",children:[r,(0,s.jsx)("h2",{"data-testid":"collection-card-title",className:"absolute left-0 top-0 m-0 block p-4 text-sm font-bold text-white drop-shadow md:text-lg",children:t.title}),t.summary?(0,s.jsx)("p",{"data-testid":"collection-card-summary",className:"absolute bottom-0 left-0 m-0 block p-4 text-xs text-white drop-shadow md:text-sm",children:t.summary}):null]});return n?n(l):l}var l=r(90774),a=r(4620),i=r(80303),o=r(73467),c=r(54882),u=r(17793),d=r(85550),m=r.n(d);function h(e){var t;let{collections:r,maxMobile:d=3}=e,{isDesktop:h}=(0,a.A)();if(!(null==r?void 0:r.length))return null;let f=r.slice(0,h?r.length:d);return(0,s.jsx)("div",{className:(0,o.cn)("my-10","grid","gap-2",null!=(t=i.GM[f.length])?t:"grid-cols-1"),children:f.map(e=>{var t;return(0,s.jsx)(n,{collection:{id:e.id,title:e.title,summary:e.summary},imageSlot:(null==(t=e.coverImage)?void 0:t.url)?(0,s.jsx)(c.default,{src:(0,u.AW)(e.coverImage.url),width:300,height:600,alt:"Featured",quality:80,className:"brightness-65 h-full w-full",style:{objectFit:"cover"}}):void 0,linkSlot:t=>(0,s.jsx)(m(),{href:e.sectionType?"/".concat((0,l.P4)(e.sectionType).url,"/").concat(e.name):"/explore/".concat(e.name),className:"flex basis-full",children:t})},e.id)})})}},53624:(e,t,r)=>{"use strict";r.d(t,{default:()=>y});var s=r(74074),n=r(19282),l=r(11637),a=r(1983),i=r(82285),o=r(85550),c=r.n(o),u=r(29635),d=r(54882),m=r(17793),h=r(54629),f=r(73467),g=r(13264),x=r(91323),p=r(22256),v=r(64187);let b=['"free"','"your postcode"','"shopping"','"pizza"','"animals"','"Easter"'];function y(e){let{domain:t,websiteId:r,placeholder:o="Search things to do...",className:y}=e,[w,j]=(0,n.useState)(""),[N,k]=(0,n.useState)(""),[P,S]=(0,n.useState)(!1),C=(0,n.useRef)(null),E=(0,n.useRef)(null),[T,A]=(0,n.useState)(0),[I,M]=(0,n.useState)(""),[R,_]=(0,n.use
1State)(!0),[D,q]=(0,n.useState)(!1),[U,L]=(0,n.useState)(!1),F=(0,u.useRouter)();(0,n.useEffect)(()=>{let e=setTimeout(()=>{k(w)},300);return()=>clearTimeout(e)},[w]);let{results:O,totalResults:z,loading:B}=(0,h.A)({websiteId:r,query:N,enabled:N.length>=v.i}),Y=w.trim().length>0&&w.trim().length<v.i;(0,n.useEffect)(()=>{let e=e=>{C.current&&!C.current.contains(e.target)&&S(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,n.useEffect)(()=>{let e=e=>{if("Escape"===e.key){var t;S(!1),null==(t=E.current)||t.blur()}};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[]),(0,n.useEffect)(()=>{Y||N.length>=v.i&&(z>0||B)?S(!0):N.length<v.i&&S(!1)},[Y,N,z,B]);let{flush:W}=(0,p.g3)({query:N,liveQuery:w,resultsCount:z,isLoading:B,type:"global"});(0,n.useEffect)(()=>{if(U||""!==w)return;let e=b[T];if(R&&I.length<e.length){let t=setTimeout(()=>{M(e.slice(0,I.length+1))},50);return()=>clearTimeout(t)}if(I===e&&!D){let e=setTimeout(()=>{q(!0),_(!1)},2e3);return()=>clearTimeout(e)}if(D&&I.length>0){let e=setTimeout(()=>{M(I.slice(0,-1))},30);return()=>clearTimeout(e)}D&&0===I.length&&(q(!1),_(!0),A(e=>(e+1)%b.length))},[I,T,R,D,U,w]);let K=(0,n.useCallback)(()=>{var e;j(""),k(""),null==(e=E.current)||e.focus()},[]),G=(0,n.useCallback)((e,t,r)=>{N&&(W(),(0,x.P)(N,r,e,t)),S(!1),j(""),k("")},[N,W]),H=(0,n.useCallback)(()=>{L(!0),N.length>=v.i&&S(!0)},[N]),Q=(0,n.useCallback)(()=>{W(),L(!1)},[W]),$=(0,n.useCallback)(e=>{if("Enter"===e.key){e.preventDefault();let t=w.trim();t&&(W(),F.push("/search?q=".concat(encodeURIComponent(t))),S(!1))}},[w,F,W]);return(0,s.jsxs)("div",{ref:C,className:(0,f.cn)("relative w-full",y),children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-4",children:(0,s.jsx)(l.A,{className:"h-5 w-5 text-gray-400"})}),(0,s.jsx)("input",{ref:E,type:"text",value:w,onChange:e=>j(e.target.value),onFocus:H,onBlur:Q,onKeyDown:$,placeholder:""===w?"".concat("TRY ").concat(I):o,className:"w-full rounded-lg border border-gray-300 bg-stone-100 py-3 pl-12 pr-24 text-base transition-all focus:border-mtr-blue focus:bg-white focus:outline-hidden focus:ring-2 focus:ring-mtr-blue/20","aria-label":"Search listings"}),(0,s.jsxs)("div",{className:"absolute inset-y-0 right-0 flex items-center gap-1 pr-2",children:[w&&(0,s.jsx)("button",{onClick:K,className:"flex items-center justify-center p-1 text-gray-400 hover:text-gray-600","aria-label":"Clear search",type:"button",children:(0,s.jsx)(a.A,{className:"h-4 w-4"})}),(0,s.jsx)(c(),{href:"/search?q=".concat(encodeURIComponent(w)),className:"rounded-md bg-mtr-blue px-4 py-1.5 text-sm font-medium text-white transition-colors hover:bg-mtr-blue/90",children:"Search"})]})]}),P&&(0,s.jsxs)("div",{className:"absolute z-50 mt-2 w-full overflow-hidden rounded-lg border border-gray-200 bg-white shadow-xl",children:[B&&(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2 p-4 text-sm text-gray-500",children:[(0,s.jsx)("div",{className:"h-4 w-4 animate-spin rounded-full border-2 border-gray-300 border-t-mtr-blue"}),"Searching..."]}),Y&&(0,s.jsxs)("div",{className:"p-4 text-center text-sm text-gray-500",children:["Keep typing â ",v.i," characters or more."]}),!Y&&!B&&0===z&&N.length>=v.i&&(0,s.jsxs)("div",{className:"p-4 text-center text-sm text-gray-500",children:['No results found for "',N,'"']}),!B&&z>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"max-h-[50vh] overflow-y-auto",children:Object.entries(O).map(e=>{let[t,r]=e;if(!r||0===r.length)return null;let n=h.x[t]||t;return(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"border-b border-gray-100 bg-gray-50 px-4 py-1.5",children:(0,s.jsx)("span",{className:"text-xs font-semibold uppercase tracking-wider text-gray-500",children:n})}),r.map((e,r)=>(0,s.jsxs)(c(),{href:(0,g.B)(e),onClick:()=>G(e.id,t,r+1),className:"flex items-center gap-3 border-b border-gray-100 px-4 py-3 transition-colors hover:bg-stone-50",children:[(0,s.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden rounded-md bg-gray-100",children:e.coverImage?(0,s.jsx)(d.default,{src:(0,m.AW)(e.coverImage),alt:e.title,fill:!0,quality:80,className:"object-cover",sizes:"48px"}):(0,s.jsx)("div",{className:"flex h-full w-full items-center justify-center",children:(0,s.jsx)(l.A,{className:"h-4 w-4 text-gray-300"})})}),(0,s.jsx)("div",{className:"min-w-0 flex-1",children:(0,s.jsx)("div",{className:"truncate font-medium text-gray-900",children:e.title})}),(0,s.jsx)(i.A,{className:"h-4 w-4 shrink-0 text-gray-400"})]},"".concat(t,"-").concat(e.id)))]},t)})}),(0,s.jsxs)(c(),{href:"/search?q=".concat(encodeURIComponent(N)),onClick:()=>{S(!1),j(""),k("")},className:"flex items-center justify-center gap-2 border-t border-gray-200 bg-stone-50 px-4 py-3 text-sm font-medium text-mtr-blue hover:bg-stone-100",children:['View all results for "',N,'"',(0,s.jsx)(i.A,{className:"h-4 w-4"})]})]})]})]})}},54629:(e,t,r)=>{"use strict";r.d(t,{A:()=>c,x:()=>o});
1var s=r(19282),n=r(79643),l=r(64588),a=r(64187);async function i(){if(!n.j2)return{};try{if(await n.j2.authStateReady(),!n.j2.currentUser)return{};return{"x-mtr-id-token":await n.j2.currentUser.getIdToken()}}catch(e){return{}}}let o={listings:"Listings",offers:"Offers",collections_search:"Collections",blog_posts:"Blog Posts",pages:"Pages"};function c(e){let{websiteId:t,query:r="",enabled:n=!0}=e,[o,c]=(0,s.useState)({}),[u,d]=(0,s.useState)(!1),[m,h]=(0,s.useState)(null),{isAuthenticated:f}=(0,l.A)();(0,s.useEffect)(()=>{if(!n||r.length<a.i)return void c({});let e=new AbortController;return(async()=>{d(!0),h(null);try{let s=new URLSearchParams({q:r,websiteId:t}),n=await fetch("/api/search/autocomplete?".concat(s),{signal:e.signal,headers:await i()});if(!n.ok)throw Error("Autocomplete search failed");let l=await n.json();c(l.results||{})}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)return;console.error("Autocomplete error:",e),h(e instanceof Error?e:Error("Failed to fetch autocomplete")),c({})}finally{d(!1)}})(),()=>e.abort()},[r,t,n,f]);let g=(0,s.useMemo)(()=>Object.values(o).reduce((e,t)=>e+((null==t?void 0:t.length)||0),0),[o]),x=(0,s.useMemo)(()=>Object.values(o).flat().filter(Boolean),[o]);return{results:o,allHits:x,totalResults:g,loading:u,error:m}}},60090:(e,t,r)=>{"use strict";r.d(t,{default:()=>o});var s=r(74074),n=r(85550),l=r.n(n),a=r(91323),i=r(70355);function o(e){let{listingId:t,listingName:r,listingType:n,placement:o,position:c,children:u,...d}=e,m=void 0===c?void 0:c-1,h=(0,i.$)({event:"card_impression",properties:{placement:o,position:m,listing_id:t},dedupeKey:"card_impression|".concat(o,"|").concat(m,"|").concat(t)});return(0,s.jsx)(l(),{...d,ref:h,onClick:()=>(0,a.U)({id:t,name:r,type:n,position:c},{placement:o,position:m}),children:u})}},64187:(e,t,r)=>{"use strict";r.d(t,{i:()=>s});let s=3},70355:(e,t,r)=>{"use strict";r.d(t,{$:()=>c,S:()=>o});var s=r(19282),n=r(91145),l=r(47707);let a=new Set,i=null;function o(e){e!==i&&(a.clear(),i=e)}function c(e){let{event:t,properties:r,dedupeKey:i}=e,c=(0,s.useRef)(null),u=(0,s.useRef)(!1),d=(0,s.useRef)(r);return(0,s.useEffect)(()=>{d.current=r}),(0,s.useEffect)(()=>{var e,r;let s,m=c.current;if(!m||"undefined"==typeof IntersectionObserver)return;o(null!=(r=null==(e=window.location)?void 0:e.pathname)?r:null);let h=!1,f=()=>{void 0!==s&&(clearTimeout(s),s=void 0)},g=()=>{s=void 0,!u.current&&(u.current=!0,p.disconnect(),a.has(i)||(a.add(i),(0,l.Dt)(t,{...(0,n.T)(),...d.current})))},x=()=>{!u.current&&void 0===s&&(document.hidden||(s=setTimeout(g,1e3)))},p=new IntersectionObserver(e=>{for(let t of e)(h=t.isIntersecting&&t.intersectionRatio>=.5)?x():f()},{root:null,threshold:.5}),v=()=>{document.hidden?f():h&&x()};return document.addEventListener("visibilitychange",v),p.observe(m),()=>{f(),p.disconnect(),document.removeEventListener("visibilitychange",v)}},[t,i]),c}},82285:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(59135).A)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},83735:(e,t,r)=>{"use strict";r.d(t,{default:()=>h});var s=r(74074),n=r(90774),l=r(80303),a=r(25854),i=r(4620),o=r(73467),c=r(35641),u=r(54882),d=r(17793),m=r(60090);function h(e){var t;let{listings:r,maxMobile:h=3}=e,{isDesktop:f}=(0,i.A)();if(!(null==r?void 0:r.length))return null;let g=r.slice(0,f?r.length:h);return(0,s.jsx)("div",{className:(0,o.cn)("grid","gap-2",null!=(t=l.GM[g.length])?t:"grid-cols-1"),children:g.map((e,t)=>{let r=(0,n.P4)(e.type),i=(0,n.Tk)(e.type,e.subType);return(0,s.jsx)(m.default,{href:"/".concat(r.url,"/").concat(e.name),className:"col-span-1 flex basis-full",listingId:e.id,listingName:e.title,listingType:e.type,placement:"home_featured",position:t+1,children:(0,s.jsxs)("article",{className:(0,o.cn)(l.o6[i.color],"w-full overflow-hidden rounded-md"),children:[(0,s.jsx)("div",{className:(0,o.cn)("w-full",l.v_[i.color],"p-2","text-xs","text-center","text-white","whitespace-nowrap","font-bold","md:text-lg","overflow-hidden"),children:i.singularShort}),(0,s.jsxs)("div",{className:"relative h-60 w-full",children:[(0,s.jsx)(u.default,{src:(0,d.AW)(e.coverImage),width:300,height:600,alt:"Featured",quality:80,className:"brightness-60 h-full w-full",style:{objectFit:"cover"}}),(0,s.jsx)("h2",{className:"absolute left-0 top-0 block p-2 text-sm font-bold text-white drop-shadow md:p-4 md:text-lg",children:e.title}),e.summary&&(0,s.jsxs)("div",{className:" absolute bottom-0 left-0 block p-2 text-xs text-white drop-shadow md:p-4 md:text-sm",children:["events"===e.subType&&e.dates&&e.dates.length>0&&(0,s.jsxs)("span",{className:"mb-1 flex flex-col space-x-2 md:flex-row",children:[(0,s.jsxs)("span",{className:"flex items-center",children:[(0,s.jsx)(c.A,{className:"mr-1",size:20}),(0,s.jsx)("time",{dateTime:e.dates[0],children:(0,a.fE)(e.dates[0])})]}),e.dates.length>1&&(0,s.jsxs)("strong",{className:"hidden md:block",children:["(",e.dates.length>100?"100+":e.dates.length-1," other dates)"]})]}),(0,s.jsx)("p",{children:e.summary})]})]})]})},e.id)})})}}},e=>{e.O(0,[3645,2661,2849,8050,5550,3448,9779,9118,4525,7481,4903,7464,4047,7707,1145,3467,4588,559,9444,629,3068,7358],()=>e(e.s=40125)),_N_E=e.O()}]);
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.