<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[330],{881:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[...slug]",function(){return l(705)}])},638:function(e,t,l){"use strict";l.d(t,{Z:function(){return PageHeader}});var s=l(5893);function PageHeader(e){return(0,s.jsx)("div",{className:"page-header row",children:(0,s.jsxs)("div",{className:"col-12 col-lg-10 offset-lg-1 mt-lg-150",children:[e.children,(0,s.jsx)("h1",{className:"page-header text-center text-lg-start mx-0 my-30 mt-lg-0",children:e.title})]})})}},6579:function(e,t,l){"use strict";l.d(t,{Z:function(){return HeroContent}});var s=l(5893),i=l(5675),o=l.n(i),a=l(6066),n=l(7954),c=l(7294),r=l(4254),d=l(2053),u=l(5914),h=l(2191);function Loader(){return(0,s.jsx)("p",{className:"loader",children:"Loading video..."})}function Video(e){let{video:t,title:l}=e,{settings:i}=(0,u.K)(),[o,a]=(0,c.useState)(null),[n,r]=(0,c.useState)(!1);return(0,c.useEffect)(()=&gt;{t&amp;&amp;(a(t),r(!0))},[t]),(0,s.jsxs)(s.Fragment,{children:[!n&amp;&amp;(0,s.jsx)(Loader,{}),o&amp;&amp;(0,s.jsx)("iframe",{src:o,title:l||(null==i?void 0:i.general.title)+" video",allow:"autoplay; fullscreen",allowFullScreen:!0,playsInline:!0})]})}function HeroContent(e){let{hero:t,ctx:l,postType:i="post",video:m=null}=e,{settings:p}=(0,u.K)(),v=t.hpType||"image",x=t.hpOverlay||"none",g=t.hpCtnBg?"bg-"+t.hpCtnBg:"",w=t.hpTitle,f=t.hpContent||!1,j=t.hpBgImage||!1,b=t.hpBgImageMobile||j,N=t.hpCarouselImages||!1,y=t.hpVideoAutoplay||!1,_=t.hpVideoMobile||!1,D=t.hpVideoMobileRatio||56.25,k=t.hpVideo||!1,E=t.hpVideoRatio||!1,S=(0,c.useRef)(null),[C,O]=(0,c.useState)(()=&gt;({device:null,video:_||k,videoRatio:D||E,bgImage:b||j})),L=(0,c.useRef)(null),z=(0,c.useCallback)(()=&gt;{let[e]=(0,n.CD)(null);C.device!==e&amp;&amp;O({device:e,video:e.isMobile&amp;&amp;!e.isTablet?_:k,videoRatio:e.isMobile&amp;&amp;!e.isTablet?D:E,bgImage:e.isMobile&amp;&amp;!e.isTablet?b:j})},[C.device]),P=(0,r.Ds)(z,500);("video"==v||"image"==v)&amp;&amp;(0,c.useEffect)(()=&gt;(L.current=z,L.current(),window.addEventListener("load",P,!1),window.addEventListener("resize",P,!1),()=&gt;{window.removeEventListener("load",P,!1),window.removeEventListener("resize",P,!1)}),[]);let handleScrollEvent=()=&gt;{window.scrollY&lt;S.current.clientHeight?document.body.classList.add("nav-transparent"):document.body.classList.remove("nav-transparent")};return(0,c.useEffect)(()=&gt;(document.body.classList.add("has-hero"),document.addEventListener("scroll",handleScrollEvent),handleScrollEvent(),()=&gt;{document.removeEventListener("scroll",handleScrollEvent)}),[]),(0,s.jsxs)("div",{ref:S,className:"panel-hero ".concat(g," has-").concat(v," ").concat(w||f?"":"mb-50"),children:["video"==v&amp;&amp;C.video&amp;&amp;(0,s.jsxs)("div",{className:"position-relative has-overlay-".concat(x),children:[(0,s.jsx)("div",{className:"hero-video mx-auto mb-50 ratio",style:{"--bs-aspect-ratio":C.videoRatio+"%"},children:(0,s.jsx)(Video,{video:"".concat(C.video,"?title=0&amp;byline=0&amp;portrait=0&amp;dnt=1").concat(y?"&amp;autoplay=1&amp;loop=1&amp;muted=1&amp;background=1":""),title:w||(null==p?void 0:p.general.title)+" hero video"})}),(0,s.jsx)("div",{className:"panel-hero-overlay bg-".concat(x),children:"\xa0"})]}),"carousel"==v&amp;&amp;N&amp;&amp;(0,s.jsxs)("div",{className:"position-relative mb-50 has-overlay-".concat(x),children:[(0,s.jsxs)(d.Z,{className:"mx-auto ratio ratio-9x16 ratio-lg-16x9 edge-2-edge",children:[(0,s.jsx)(a.Z,{autoplay:!0,infinite:!0,pauseOnHover:!1,pauseOnFocus:!1,arrows:!1,dots:!0,draggable:!0,edgeFriction:.15,slidesToShow:1,slidesToScroll:1,speed:800,autoplaySpeed:5e3,adaptiveHeight:!1,fade:!0,appendArrows:".panel-hero",lazyLoad:"progressive",children:N.map((e,t)=&gt;(0,s.jsx)("div",{className:"slide",children:(0,s.jsx)(o(),{src:e.sourceUrl,className:"img-fluid",alt:"Slide ".concat(t),width:e.mediaDetails.sizes?e.mediaDetails.sizes[0].width:e.mediaDetails.width,height:e.mediaDetails.sizes?e.mediaDetails.sizes[0].height:e.mediaDetails.height})},"hero-slide-".concat(t)))}),(0,s.jsx)("div",{className:"panel-hero-overlay bg-".concat(x),children:"\xa0"})]}),(w||f)&amp;&amp;(0,s.jsx)("div",{className:"container position-absolute inset-0 d-flex flex-column",children:(0,s.jsx)("div",{className:"panel-hero-row row align-items-center flex-grow-1",children:(0,s.jsx)("div",{className:"col-12 ",children:(0,s.jsxs)("div",{className:"row text-center text-lg-start",children:[(0,s.jsx)("div",{className:"col-12 col-lg-4 offset-lg-1"}),(0,s.jsxs)("div",{className:"col-12 col-lg-5 offset-lg-1",children:[w&amp;&amp;(0,s.jsx)("h1",{className:"title mt-0 text-linen",dangerouslySetInnerHTML:{__html:w}}),f&amp;&amp;(0,h.Z)(f)]})]})})})})]}),(0,s.jsx)("div",{className:"overflow-hidden",children:"image"==v&amp;&amp;C.bgImage&amp;&amp;(0,s.jsxs)(d.Z,{className:"hero-img-wrap position-relative",children:[(0,s.jsxs)("div",{className:"ratio ratio-9x13 mx-auto overflow-hidden d-block d-md-none",children:[b&amp;&amp;(0,s.jsx)(o(),{className:"img-fluid mx-auto d-block",src:b.sourceUrl,width:(null==b?void 0:b.mediaDetails.sizes)?null==b?void 0:b.mediaDetails.sizes[0].width:null==b?void 0:b.mediaDetails.width,height:(null==b?void 0:b.mediaDetails.sizes)?null==b?void 0:b.mediaDetails.sizes[0].height:null==b?void 0:b.mediaDetails.height,alt:w||l.title}),(0,s.jsx)("div",{className:"panel-hero-overlay bg-".concat(x),children:"\xa0"})]}),(0,s.jsxs)("div",{className:"ratio ratio-16x9 mx-auto overflow-hidden d-none d-md-block",children:[j&amp;&amp;(0,s.jsx)(o(),{className:"img-fluid mx-auto d-block",src:j.sourceUrl,width:(null==j?void 0:j.mediaDetails.sizes)?null==j?void 0:j.mediaDetails.sizes[0].width:null==j?void 0:j.mediaDetails.width,height:(null==j?void 0:j.mediaDetails.sizes)?null==j?void 0:j.mediaDetails.sizes[0].height:null==j?void 0:j.mediaDetails.height,alt:w||l.title}),(0,s.jsx)("div",{className:"panel-hero-overlay bg-".concat(x),children:"\xa0"})]}),(0,s.jsx)("aside",{className:"scroll-prompt position-absolute w-100 d-flex justify-content-center",children:(0,s.jsx)("div",{className:"text-center bg-plaster p-10 w-auto rounded-circle",children:(0,s.jsx)("svg",{className:"icon-arrow-down",fill:"currentColor",viewBox:"0 0 12 18",children:(0,s.jsx)("use",{href:"/images/icon.svg#arrow-down"})})})})]})}),"carousel"!=v&amp;&amp;(0,s.jsx)("div",{className:"container",children:(0,s.jsx)("div",{className:"panel-hero-row mt-50 row align-items-center".concat("image"!=v||j?"":" pt-50"),children:(w||f)&amp;&amp;(0,s.jsx)("div",{className:"col-12",children:(0,s.jsxs)("div",{className:"row text-center text-lg-start ".concat("room"==i?"":"mb-50"),children:[(0,s.jsxs)("div",{className:"col-12 col-lg-4 offset-lg-1",children:[w&amp;&amp;(0,s.jsx)("h1",{className:"title mt-0",dangerouslySetInnerHTML:{__html:w}}),(()=&gt;{if(!m)return;let e=null;if("woody"===m&amp;&amp;(e="https://cms.heartwoodcollection.com/wp-content/uploads/sites/4/2023/07/Heartwood_Collection-Dog_4K_V1000.mp4"),e)return(0,s.jsx)("figure",{className:"wp-block-video video-about-dog",children:(0,s.jsx)("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,src:e})})})()]}),(0,s.jsx)("div",{className:"col-12 col-lg-5 offset-lg-1",children:f&amp;&amp;(0,h.Z)(f)})]})})})})]})}},4433:function(e,t,l){"use strict";l.d(t,{Z:function(){return PasswordProtected}});var s=l(5893),i=l(1163),o=l(6026),a=l(4254),n=l(7294);function PasswordProtected(e){let t=(0,i.useRouter)(),[l,c]=(0,n.useState)(!1),r=(0,n.useRef)(null),d=(null==e?void 0:e.ctx)||!1,[u,h]=(0,n.useState)(null);return(0,n.useEffect)(()=&gt;((null==d?void 0:d.postPassword)&amp;&amp;!(0,a.ej)(o._h+d.id)?(console.log("set password protetected mode"),c(!0)):c(!1),()=&gt;{c(!1)}),[t]),(0,s.jsx)(s.Fragment,{children:l?(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("h1",{className:"page-header text-center mx-0 mb-30 mt-50 mt-lg-0",children:d.title}),(0,s.jsx)("p",{children:"This content is password protected. To view it please enter your password below:"}),(0,s.jsxs)("p",{style:{maxWidth:"400px",margin:"0 auto"},children:[(0,s.jsx)("input",{ref:r,type:"text",className:"form-control mb-15"}),u&amp;&amp;(0,s.jsx)("span",{className:"alert alert-warning",children:u}),(0,s.jsx)("button",{className:"btn btn-primary mt-15",onClick:()=&gt;{r&amp;&amp;(null==r?void 0:r.current)&amp;&amp;((null==r?void 0:r.current.value)==(null==d?void 0:d.postPassword)?((0,a.d8)(o._h+d.id,1,o.Y),h(null),t.reload()):h("Wrong password, please try again."))},children:"Gain access"})]})]}):e.children})}},1460:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return Custom404}});var s=l(5893),i=l(9008),o=l.n(i);function Custom404(){let e="PAGE NOT FOUND!";return(0,s.jsxs)("article",{children:[(0,s.jsx)(o(),{children:(0,s.jsx)("title",{children:"".concat("404"," - ").concat(e)})}),(0,s.jsx)("div",{className:"col-12 col-lg-10 offset-lg-1 mt-lg-150",children:(0,s.jsx)("h1",{className:"page-header text-center mx-0 mb-30 mt-50 mt-lg-0",children:"".concat(e)})}),(0,s.jsxs)("div",{className:"entry-content text-center pb-50",children:[(0,s.jsx)("p",{children:"Sorry, but the page you were looking for could not be found."}),(0,s.jsx)("p",{children:(0,s.jsx)("a",{href:"/",className:"btn btn-outline-dusk",children:"Return to homepage"})})]})]})}},705:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSG:function(){return v},default:function(){return Page}});var s=l(5893),i=l(1163),o=l(9008),a=l.n(o),n=l(2191),c=l(682),r=l(9774),d=l(638),u=l(6579),h=l(1460),m=l(583),p=l(4433),v=!0;function Page(e){let{post:t,heroContent:l,promoPopup:o,settings:v,menus:x,preview:g}=e,w=(0,i.useRouter)(),f=(null==t?void 0:t.seo)||!1,j=(null==t?void 0:t.pageOptions.cssClass)?" "+t.pageOptions.cssClass:"",b=(null==t?void 0:t.pageOptions.showSignup)||!1,N=f.canonical;return((null==t?void 0:t.broadcastedUrl)&amp;&amp;((null==t?void 0:t.broadcastedUrl.indexOf("https://hwc-cms.wearetesting.co.uk/pubs"))!=-1&amp;&amp;(N=null==t?void 0:t.broadcastedUrl.replace("https://hwc-cms.wearetesting.co.uk/pubs","https://heartwoodinns.com")),(null==t?void 0:t.broadcastedUrl.indexOf("https://cms.heartwoodcollection.com/pubs"))!=-1&amp;&amp;(N=null==t?void 0:t.broadcastedUrl.replace("https://cms.heartwoodcollection.com/pubs","https://heartwoodinns.com")),(null==t?void 0:t.broadcastedUrl.indexOf("https://hwc-cms.wearetesting.co.uk/news"))!=-1&amp;&amp;(N=null==t?void 0:t.broadcastedUrl.replace("https://hwc-cms.wearetesting.co.uk/news","https://heartwoodcollection.com/news")),(null==t?void 0:t.broadcastedUrl.indexOf("https://cms.heartwoodcollection.com/news"))!=-1&amp;&amp;(N=null==t?void 0:t.broadcastedUrl.replace("https://cms.heartwoodcollection.com/news","https://heartwoodcollection.com/news")),f.canonical=N,console.log("Broadcasted url: "+t.broadcastedUrl)),(g||(null==t?void 0:t.status)!=="draft")&amp;&amp;(w.isFallback||(null==t?void 0:t.slug)))?(0,s.jsx)(r.Z,{preview:g,seo:f,bodyClass:"page".concat(j),promoPopup:o,children:w.isFallback?(0,s.jsx)("h1",{children:"Loading page…"}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a(),{children:(0,s.jsx)("title",{children:t.seo?t.seo.title:t.title})}),(0,s.jsxs)(p.Z,{ctx:t,children:[l&amp;&amp;(0,s.jsx)(u.Z,{hero:l,ctx:t}),(0,s.jsx)(c.Z,{children:(0,s.jsxs)("article",{children:[!(l||(null==t?void 0:t.pageOptions.hideTitle))&amp;&amp;(0,s.jsx)(d.Z,{title:t.title}),(0,s.jsx)("div",{className:"entry-content text-center text-lg-start pb-50",children:t.content&amp;&amp;(0,n.Z)(t.content)})]})}),b&amp;&amp;(0,s.jsx)(m.Z,{postID:null==t?void 0:t.id,pageOptions:null==t?void 0:t.pageOptions})]})]})}):(0,s.jsx)(h.default,{})}}},function(e){e.O(0,[664,153,152,518,191,973,583,774,888,179],function(){return e(e.s=881)}),_N_E=e.O()}]);</pre></body></html>