PageSourceSearch

https://oakshighcliffe.com/_next/static/chunks/pages/blog/%5Bslug%5D-e4ee7286f6ba2978.js

js oakshighcliffe.com collected 2026-09-30 22:55:55 UTC 15,352 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[741,7176,7812,9259],{741:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>d});var l=t(7876),n=t(4232),r=t(9099),i=t(6924),a=t(6445),c=t(5779);t(1680),t(2882),t(9910);var o=t(1346);function d(e){(0,r.useRouter)();let s=(0,n.useRef)(),t=0;e?.children&&e.children.map((e,s)=>{(e?.type=="figure"||(0,n.isValidElement)(e))&&t++}),(0,n.useEffect)(()=>{let e=s.current;if(!e)return;let t=e.querySelector(".entry.active"),l=!1,n=!1,r,i;t&&(console.log(t.offsetLeft),e.scrollLeft=t.offsetLeft-15);let a=e=>{!n||(e.target instanceof Element?e.target.closest(".wp-block-image a"):null)&&(e.preventDefault(),e.stopImmediatePropagation())},c=s=>{l=!0,r=s.pageX-e.offsetLeft,i=e.scrollLeft},o=e=>{l=!1,n=!1},d=e=>{l=!1},m=s=>{if(!l)return;s.preventDefault();let t=(s.pageX-e.offsetLeft-r)*1.5;e.scrollLeft=i-t,n=Math.abs(t)>20};return e.addEventListener("mousedown",c,!1),e.addEventListener("mouseup",o,!1),e.addEventListener("mouseleave",d,!1),e.addEventListener("mousemove",m,!1),e.addEventListener("click",a,!0),()=>{e.removeEventListener("mousedown",c,!1),e.removeEventListener("mouseup",o,!1),e.removeEventListener("mouseleave",d,!1),e.removeEventListener("mousemove",m,!1),e.removeEventListener("click",a,!0)}},[]);
1let[d,m]=(0,n.useState)(-1),p=e.children.filter(function(e){return!!e?.type}),h=p.filter(function(e){let s=Array.isArray(e.props.children)?e.props?.children[0]:e.props?.children;return!!s&&"a"==s.type}).map(e=>{let s=Array.isArray(e.props.children)?e.props?.children[0]:e.props?.children,t=s.props.children.props.width,l=s.props.children.props.height;return{src:s.props.children.props.src,width:t,height:l,description:e.props?.children[1]?e.props?.children[1]?.props?.children:""}});return(0,l.jsxs)("div",{className:`edge-2-edge my-50 ${!e?.nobg?" bg-sap text-linen":""}`,children:[e?.title&&(0,l.jsx)("div",{className:"container",children:(0,l.jsx)("div",{className:"row",children:(0,l.jsx)("div",{className:"col-12 offset-lg-1",children:(0,l.jsx)("h2",{className:`mb-0${e?.nobg?" mt-0":""}`,dangerouslySetInnerHTML:{__html:e.title}})})})}),(0,l.jsx)("div",{className:"container-xl px-0 pt-15 pt-lg-50 pb-15",children:(0,l.jsx)("div",{ref:s,className:`gallery-wrap ${e?.className} ${3==t?" scroll3":""}${5==t?" scroll5":""}`,children:p&&p.map((e,s)=>{if(e?.type=="figure"){let t;return t=Array.isArray(e.props.children)?e.props?.children[0]:e.props?.children,(0,l.jsxs)("figure",{className:`${e.props.className} flex-column`,children:[(0,l.jsx)("div",{className:"inner ratio ratio-1x1","data-type":t.type,"data-index":s,onClick:()=>m(s),children:"a"==t.type?t.props.children:t}),e.props.children[1]]},`gallery-item-${s}`)}if((0,n.isValidElement)(e))return(0,l.jsx)("div",{className:"wp-block-image flex-column",children:(0,l.jsx)("div",{className:"inner",children:e})},`gallery-item-${s}`)})})}),!!h.length&&(0,l.jsx)(i.Ay,{plugins:[a.A,c.A],index:d,slides:h,captions:{descriptionTextAlign:"center"},styles:{root:{"--yarl__color_backdrop":"#7c8552","--yarl__slide_captions_container_background":"rgba(124,133,82,0.5)","--yarl__color_button":"#fff7f1","--yarl__button_filter":"none"}},carousel:{finite:!0},open:d>=0,close:()=>m(-1),render:{iconPrev:()=>(0,l.jsx)(o.I,{name:"arrow-down"}),iconNext:()=>(0,l.jsx)(o.I,{name:"arrow-down"})}})]})}},2141:(e,s,t)=>{"use strict";t.r(s),t.d(s,{__N_SSG:()=>y,default:()=>_});var l=t(7876),n=t(9099),r=t(7328),i=t.n(r),a=t(7786),c=t(2885),o=t(3135),d=t(6175),m=t(9022),p=t(9259),h=t(9395),x=t(3566),u=t(8230),f=t.n(u),g=t(4232),j=t(1752),v=t(3036),w=t(593);function b(e){let s=e?.category||"offer",{settings:t}=(0,v.M)(),n=t?.acf.optGeneral||!1,r=n?.optFooterBtn||"Sign up to our newsletter",i=n?.optFooterBtnLink||"/signup/",a=n?.optFooterBtnNewtab?"_blank":"_self",c=n?.disableSignup||!1,o=e.ctx||!1,d=!!o?.singlePost?.expiryDate&&o.singlePost.expiryDate.replace(":00",""),m=!!d&&new Date(o.singlePost?.expiryDate.slice(0,d.indexOf("at"))).getTime(),p=!!(m&&(0,w.aM)(m)),[h,x]=(0,g.useState)(()=>!!o&&!!p);return o&&p?(0,l.jsxs)(j.A,{show:h,dialogClassName:"modal-dialog-scrollable",fullscreen:"sm-down",className:"solo-text",centered:!0,children:[(0,l.jsx)(j.A.Body,{className:"d-flex justify-content-center align-items-center",children:(0,l.jsxs)("div",{className:"px-md-50 promo-content text-linen text-center pt-50",children:[(0,l.jsxs)("h4",{className:"h3",children:["This ",s," is no longer available."]}),(0,l.jsxs)("ul",{className:"list-unstyled mb-50 w-100",children:[(0,l.jsx)("li",{children:(0,l.jsx)("button",{type:"button",className:"btn btn-outline-linen my-10",onClick:()=>void x(!1),children:"Read anyway"})}),(0,l.jsx)("li",{children:(0,l.jsxs)(f(),{href:`/${s}s`,className:"btn btn-outline-linen my-10",children:["View available ",s,"s"]})}),(0,l.jsx)("li",{children:(!c||"/signup/"!=i)&&(0,l.jsx)("a",{href:i,target:a,className:"btn btn-outline-linen my-10",children:r})})]})]})}),(0,l.jsx)("button",{type:"button",className:"btn-close position-absolute bg-plaster text-linen",onClick:()=>void x(!1),"aria-label":"Close",children:(0,l.jsx)("svg",{className:"close",fill:"currentColor",viewBox:"0 0 30.001 24.001",children:(0,l.jsx)("use",{href:"/images/icon.svg#close"})})})]}):null}var N=t(9239),y=!0;function _({post:e,blogPosts:s,settings:t,menus:r,preview:u}){let f=(0,n.useRouter)(),g=!!e?.seo&&{...e.seo},j=!!e?.tags.nodes.length&&e.tags.nodes.map(e=>e.name),v=!!e?.categories.nodes.length&&e.categories.nodes.map(e=>e.slug),w=!!e?.singlePost.expiryDate&&e.singlePost.expiryDate.replace(":00",""),y=e?.
1singlePost?.terms||!1,$=e?.recipe?.recipeServe||!1,D=e?.recipe?.recipeIngredients||!1,A=e?.recipe?.ingredientsSection||!1,k=e?.recipe?.recipeMethodList||!1,L=e?.recipe?.methodSections||!1,M=e?.recipe?.recipeVideo||!1,E=e?.recipe?.recipeVideoCaption||!1,T=g.canonical;return(e?.broadcastedUrl&&(e?.broadcastedUrl.indexOf("https://hwc-cms.wearetesting.co.uk/pubs")!=-1&&(T=e?.broadcastedUrl.replace("https://hwc-cms.wearetesting.co.uk/pubs","https://heartwoodinns.com")),e?.broadcastedUrl.indexOf("https://cms.heartwoodcollection.com/pubs")!=-1&&(T=e?.broadcastedUrl.replace("https://cms.heartwoodcollection.com/pubs","https://heartwoodinns.com")),e?.broadcastedUrl.indexOf("https://hwc-cms.wearetesting.co.uk/news")!=-1&&(T=e?.broadcastedUrl.replace("https://hwc-cms.wearetesting.co.uk/news","https://heartwoodcollection.com/news")),e?.broadcastedUrl.indexOf("https://cms.heartwoodcollection.com/news")!=-1&&(T=e?.broadcastedUrl.replace("https://cms.heartwoodcollection.com/news","https://heartwoodcollection.com/news")),g.canonical=T,console.log(e.broadcastedUrl)),(u||e?.status!=="draft")&&(f.isFallback||e?.slug))?(0,l.jsxs)(a.A,{preview:u,seo:g,bodyClass:"post",signup:!0,children:[(0,l.jsx)(o.A,{children:f.isFallback?(0,l.jsx)("h1",{children:"Loading…"}):(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(N.A,{ctx:e,children:(0,l.jsxs)("article",{className:"entry-content my-50 my-lg-150",children:[(0,l.jsxs)("div",{className:"row",children:[(0,l.jsx)("div",{className:"col-12 col-lg-4 offset-lg-1",children:e.featuredImage&&(0,l.jsx)(m.A,{title:e.title,coverImage:e.featuredImage,className:"ratio ratio-1x1 overflow-hidden"})}),(0,l.jsxs)("div",{className:"col-12 col-lg-5 offset-lg-1",children:[(0,l.jsx)(i(),{children:(0,l.jsx)("title",{children:e.seo?e.seo.title:e.title})}),(0,l.jsx)(d.A,{title:e.title,date:e.date,cats:v,tags:j,expiryDate:w}),$&&(0,l.jsxs)("p",{className:"recipe-serves mt-n20 mb-20",children:["Serves ",$]}),e.content&&(0,c.A)(e.content)]})]}),(0,l.jsxs)("div",{className:"row",children:[(0,l.jsxs)("div",{className:"col-12 col-lg-4 offset-lg-1",children:[D&&(0,l.jsxs)("div",{className:"recipe-ingredients",children:[(0,l.jsx)("h4",{children:"Ingredients"}),(0,l.jsx)("dl",{children:D.map((e,s)=>(0,l.jsx)("dt",{children:e.item},`ingredient-${s}`))})]}),A&&A.map((e,s)=>(0,l.jsxs)("div",{className:"recipe-ingredients-sections",children:[(0,l.jsx)("h4",{children:e.title}),(0,l.jsx)("dl",{children:e.list.map((e,t)=>(0,l.jsx)("dt",{children:e.item},`ingredient-list-${s}-${t}`))})]},`ingredient-sec-${s}`))]}),(0,l.jsxs)("div",{className:"col-12 col-lg-5 offset-lg-1",children:[k&&(0,l.jsxs)("div",{className:"recipe-methods",children:[(0,l.jsx)("h4",{children:"Method"}),(0,l.jsx)("ol",{children:k.map((e,s)=>(0,l.jsx)("li",{id:`recipe-method-${s+1}`,children:e.item},`method-${s}`))})]}),L&&L.map((e,s)=>(0,l.jsxs)("div",{className:"recipe-methods-sections",children:[(0,l.jsx)("h4",{children:e.title}),(0,l.jsx)("ol",{children:e.list.map((e,t)=>(0,l.jsx)("li",{children:e.item},`method-list-${s}-${t}`))})]},`method-sec-${s}`))]}),M&&(0,l.jsxs)("div",{className:"recipe-video col-12 mt-50",children:[(0,l.jsx)("div",{className:"ratio ratio-16x9",children:(0,l.jsx)("iframe",{src:`${M}?color=334930&dnt=1`,allow:"fullscreen",allowFullScreen:!0,playsInline:!0})}),E&&(0,l.jsx)("p",{className:"recipe-video-caption mt-20",dangerouslySetInnerHTML:{__html:E}})]})]}),y&&(0,l.jsx)("div",{className:"row",children:(0,l.jsxs)("div",{className:"col-12 col-lg-5 offset-lg-6",children:[(0,l.jsx)("h4",{children:"Terms & conditions"}),(0,l.jsx)("div",{className:"terms",dangerouslySetInnerHTML:{__html:y}})]})})]})})})}),(0,l.jsx)("aside",{className:"feed feed--short bg-sap text-linen",children:(0,l.jsx)(o.A,{children:s&&(0,l.jsx)(p.default,{posts:s,noTitle:!0})})}),(0,l.jsx)(x.A,{postID:"post"}),(0,l.jsx)(b,{ctx:e})]}):(0,l.jsx)(h.default,{})}},5660:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/blog/[slug]",function(){return t(2141)}])},6175:(e,s,t)=>{"use strict";t.d(s,{A:()=>i});var l=t(7876),n=t(8579),r=t(593);function i(e){let s=e.date?(0,n.A)(new Date(e.date),"MMMM d, Y"):null,t=!!e?.expiryDate&&e?.expiryDate.replace(":00",""),i=!!t&&t.slice(0,t.indexOf("at")),a=e.className||"",c="news",o=null;e.cats&&(-1!=e.cats.indexOf("offers")?c="offers":-1!=e.cats.indexOf("events")?c="events":-1!=e.cats.indexOf("recipes")&&(c="recipes"));let d={news:s,offers:t?"Valid until "+i:s,events:t?"Valid until "+i:s,recipes:"Recipes and tips"},m=!!s&&new Date(s).getTime(),p=!!t&&new Date(e?.expiryDate.slice(0,t.indexOf("at"))).getTime(),h=new Date(new Date().setHours(0,0,0)).getTime();return p?("offers"==c&&(0,r.aM)(p)&&(d[c]=(0,n.A)(new Date(i),"MMMM d, Y"),o="This offer has expired"),"events"==c&&(0,r.aM)(p)&&(d[c]=(0,n.A)(new Date(i),"MMMM d, Y"),o="This event has concluded")):"recipes"!==c&&m&&(h-m)/1e3>2592e3&&(d[c]=s,o=`This post is ${(0,r.KN)(m/1e3,"old")}`),(0,l.jsxs)("div",{className:`post-header ${a}`,children:[d[c]&&(0,l.jsxs)("p",{className:"entry-meta text-center text-lg-start m-0 mb-7",children:[d[c],o&&(0,l.jsx)("strong",{className:"alert alert-warning py-7 ms-10",dangerouslySetInnerHTML:{__html:o}})]}),(0,l.jsx)("h1",{className:"page-header text-center text-lg-start mx-0 mb-30 mt-50 mt-lg-0",children:e.title}),e.tags&&(0,l.jsx)("p",{className:"post-tags d-none",children:e.tags.map((e,s)=>(0,l.jsxs)("span",{className:"d-block",children:[e," "]},`post-tag-${s}`))})]})}},9022:(e,s,t)=>{"use strict";t.d(s,{A:()=>i});
1var l=t(7876),n=t(4587),r=t.n(n);function i({title:e,coverImage:s,className:t=""}){let n=s.node?.mediaDetails?.sizes?s.node?.mediaDetails.sizes[0].width:s.node?.mediaDetails.width,a=s.node?.mediaDetails?.sizes?s.node?.mediaDetails.sizes[0].height:s.node?.mediaDetails.height,c=(0,l.jsx)(r(),{width:n,height:a,alt:`Cover Image for ${e}`,src:s?.node.sourceUrl,className:"img-fluid"});return(0,l.jsx)("div",{className:`featured-image text-center ${t}`,children:c})}},9239:(e,s,t)=>{"use strict";t.d(s,{A:()=>c});var l=t(7876),n=t(9099),r=t(1993),i=t(593),a=t(4232);function c(e){let s=(0,n.useRouter)(),t=(0,a.useRef)(null),c=e?.ctx||!1,[o,d]=(0,a.useState)(null),m=(0,a.useSyncExternalStore)(()=>()=>{},()=>!!(c?.postPassword&&!(0,i.Ri)(r.QN+c.id)),()=>!!c?.postPassword);return(0,l.jsx)(l.Fragment,{children:m?(0,l.jsxs)("div",{className:"text-center",children:[(0,l.jsx)("h1",{className:"page-header text-center mx-0 mb-30 mt-50 mt-lg-0",children:c.title}),(0,l.jsx)("p",{children:"This content is password protected. To view it please enter your password below:"}),(0,l.jsxs)("p",{style:{maxWidth:"400px",margin:"0 auto"},children:[(0,l.jsx)("input",{ref:t,type:"text",className:"form-control mb-15"}),o&&(0,l.jsx)("span",{className:"alert alert-warning",children:o}),(0,l.jsx)("button",{className:"btn btn-primary mt-15",onClick:()=>{t&&t?.current&&(t?.current.value==c?.postPassword?((0,i.TV)(r.QN+c.id,1,r.EV),d(null),s.reload()):d("Wrong password, please try again."))},children:"Gain access"})]})]}):e.children})}},9259:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>d});var l=t(7876),n=t(8230),r=t.n(n),i=t(9022);function a({node:e,type:s="news",className:t=""}){let n=e.title,c=e.slug,o=e.featuredImage,d=e.excerpt,m=!!e.singlePost?.expiryDate&&e.singlePost?.expiryDate.replace(":00",""),p=!!m&&m.slice(0,m.indexOf("at"));return(0,l.jsxs)("div",{className:"entry text-center d-flex flex-column h-100 w-100 align-items-center pb-20",children:[(0,l.jsx)(r(),{href:`/blog/${c}`,className:"d-block w-100",children:o&&(0,l.jsx)(i.A,{title:n,coverImage:o,className:"ratio ratio-1x1 overflow-hidden"})}),(0,l.jsx)("p",{className:"entry-meta mt-30 mb-0",children:(0,l.jsx)("em",{children:{news:"News",offers:m?"Valid until "+p:"Offers",events:m?"Valid until "+p:"Events",recipes:"Recipes and tips",bedrooms:m?"Valid until "+p:"Rooms"}[s]})}),(0,l.jsx)("h2",{className:"fs-4 mt-0 mb-30 px-15",children:(0,l.jsx)(r(),{href:`/blog/${c}`,className:"text-decoration-none text-linen",dangerouslySetInnerHTML:{__html:n}})}),d&&(0,l.jsx)("div",{className:"post-excerpt px-15",dangerouslySetInnerHTML:{__html:d}}),(0,l.jsxs)("div",{className:"actions d-flex justify-content-center w-100",children:[(0,l.jsx)(r(),{href:`/blog/${c}`,className:"btn btn-outline-light flex-grow-1",children:"Read more"}),(0,l.jsxs)(r(),{href:`/${s}/`,className:"btn btn-outline-light flex-grow-1",children:["View all ","bedrooms"==s?"rooms":s]})]})]})}var c=t(741),o=t(3036);function d({posts:e,noTitle:s=!1}){let{settings:t}=(0,o.M)(),n=t?.general.title||!1,r=!!e?.news&&e?.news[0]?.node,i=!!e?.offers&&e?.offers[0]?.node,m=!!e?.events&&e?.events[0]?.node,p=!!e?.recipes&&e?.recipes[0]?.node,h=!!e?.bedrooms&&e?.bedrooms[0]?.node,x=s||!n?"":`What's on at  ${n}`;return(0,l.jsx)(l.Fragment,{children:e&&(0,l.jsxs)(c.default,{className:"post-related text-linen",title:x,children:[r&&(0,l.jsx)(a,{node:r,type:"news"}),i&&(0,l.jsx)(a,{node:i,type:"offers"}),m&&(0,l.jsx)(a,{node:m,type:"events"}),p&&(0,l.jsx)(a,{node:p,type:"recipes"}),h&&(0,l.jsx)(a,{node:h,type:"bedrooms"})]})})}},9395:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>i});var l=t(7876),n=t(7328),r=t.n(n);function i(){let e="PAGE NOT FOUND!";return(0,l.jsxs)("article",{children:[(0,l.jsx)(r(),{children:(0,l.jsx)("title",{children:`404 - ${e}`})}),(0,l.jsx)("div",{className:"col-12 col-lg-10 offset-lg-1 mt-lg-150",children:(0,l.jsx)("h1",{className:"page-header text-center mx-0 mb-30 mt-50 mt-lg-0",children:`${e}`})}),(0,l.jsxs)("div",{className:"entry-content text-center pb-50",children:[(0,l.jsx)("p",{children:"Sorry, but the page you were looking for could not be found."}),(0,l.jsx)("p",{children:(0,l.jsx)("a",{href:"/",className:"btn btn-outline-dusk",children:"Return to homepage"})})]})]})}}},e=>{e.O(0,[8230,9172,3178,8579,1404,1464,7786,3566,636,6593,8792],()=>e(e.s=5660)),_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.