PageSourceSearch

https://hareoldredding.com/_next/static/chunks/pages/%5B...slug%5D-ef23b2c6eb1d9b88.js

js hareoldredding.com collected 2026-10-08 19:40:44 UTC 10,217 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2203],{4194:(e,s,t)=>{"use strict";t.d(s,{A:()=>p});var a=t(7876),l=t(4587),i=t.n(l),o=t(9357),r=t(4232),c=t(1432),n=t(3036),d=t(2885);function h(){return(0,a.jsx)("p",{className:"loader",children:"Loading video..."})}function m({video:e,title:s}){let{settings:t}=(0,n.M)(),[l,i]=(0,r.useState)(null),[o,c]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{e&&(i(e),c(!0))},[e]),(0,a.jsxs)(a.Fragment,{children:[!o&&(0,a.jsx)(h,{}),l&&(0,a.jsx)("iframe",{src:l,title:s||t?.general.title+" video",allow:"autoplay; fullscreen",allowFullScreen:!0,playsInline:!0})]})}function p({hero:e,ctx:s,postType:t="post",video:l=null}){let{settings:h}=(0,n.M)(),u=e.hpType||"image",x=e.hpOverlay||"none",g=e.hpCtnBg?"bg-"+e.hpCtnBg:"",w=e.hpTitle,v=e.hpContent||!1,j=e.hpBgImage||!1,f=e.hpBgImageMobile||j,b=e.hpCarouselImages||!1,N=e.hpVideoAutoplay||!1,y=e.hpVideoMobile||!1,D=e.hpVideoMobileRatio||56.25,k=e.hpVideo||!1,$=e.hpVideoRatio||!1,_=(0,r.useRef)(null),[O,A]=(0,r.useState)(!1);(0,r.useEffect)(()=>{if("video"!==u&&"image"!==u)return;let e=window.matchMedia("(max-width: 767.98px)"),s=()=>A(e.matches);return s(),e.addEventListener("change",s),()=>{e.removeEventListener("change",s)}},[u]);let S=O?y:k,E=O?f:j,z=(0,r.useCallback)(()=>{_.current&&(window.scrollY<_.current.clientHeight?document.body.classList.add("nav-transparent"):document.body.classList.remove("nav-transparent"))},[]);return(0,r.useEffect)(()=>(document.body.classList.add("has-hero"),document.addEventListener("scroll",z),z(),()=>{document.body.classList.remove("has-hero"),document.removeEventListener("scroll",z)}),[z]),(0,a.jsxs)("div",{ref:_,className:`panel-hero ${g} has-${u} ${w||v?"":"mb-50"}`,children:["video"==u&&S&&(0,a.jsxs)("div",{className:`position-relative has-overlay-${x}`,children:[(0,a.jsx)("div",{className:"hero-video mx-auto mb-50 ratio",style:{"--bs-aspect-ratio":(O?D:$)+"%"},children:(0,a.jsx)(m,{video:`${S}?title=0&byline=0&portrait=0&dnt=1${N?"&autoplay=1&loop=1&muted=1&background=1":""}`,title:w||h?.general.title+" hero video"})}),(0,a.jsx)("div",{className:`panel-hero-overlay bg-${x}`,children:"\xa0"})]}),"carousel"==u&&b&&(0,a.jsxs)("div",{className:`position-relative mb-50 has-overlay-${x}`,children:[(0,a.jsxs)(c.A,{className:"mx-auto ratio ratio-9x16 ratio-lg-16x9 edge-2-edge",children:[(0,a.jsx)(o.default,{...{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:b.map((e,s)=>(0,a.jsx)("div",{className:"slide",children:(0,a.jsx)(i(),{src:e.sourceUrl,className:"img-fluid",alt:`Slide ${s}`,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-${s}`))}),(0,a.jsx)("div",{className:`panel-hero-overlay bg-${x}`,children:"\xa0"})]}),(w||v)&&(0,a.jsx)("div",{className:"container position-absolute inset-0 d-flex flex-column",children:(0,a.jsx)("div",{className:"panel-hero-row row align-items-center flex-grow-1",children:(0,a.jsx)("div",{className:"col-12 ",children:(0,a.jsxs)("div",{className:"row text-center text-lg-start",children:[(0,a.jsx)("div",{className:"col-12 col-lg-4 offset-lg-1"}),(0,a.jsxs)("div",{className:"col-12 col-lg-5 offset-lg-1",children:[w&&(0,a.jsx)("h1",{className:"title mt-0 text-linen",dangerouslySetInnerHTML:{__html:w}}),v&&(0,d.A)(v)]})]})})})})]}),(0,a.jsx)("div",{className:"overflow-hidden",children:"image"==u&&E&&(0,a.jsxs)(c.A,{className:"hero-img-wrap position-relative",children:[(0,a.jsxs)("div",{className:"ratio ratio-9x13 mx-auto overflow-hidden d-block d-md-none",children:[f&&(0,a.jsx)(i(),{className:"img-fluid mx-auto d-block",src:f.sourceUrl,width:f?.mediaDetails.sizes?f?.mediaDetails.sizes[0].width:f?.mediaDetails.width,height:f?.mediaDetails.sizes?f?.mediaDetails.sizes[0].height:f?.mediaDetails.height,alt:w||s.title}),(0,a.jsx)("div",{className:`panel-hero-overlay bg-${x}`,children:"\xa0"})]}),(0,a.jsxs)("div",{className:"ratio ratio-16x9 mx-auto overflow-hidden d-none d-md-block",children:[E&&(0,a.jsx)(i(),{className:"img-fluid mx-auto d-block",src:E.sourceUrl,width:E?.mediaDetails.sizes?E?.mediaDetails.sizes[0].width:E?.mediaDetails.width,height:E?.mediaDetails.sizes?E?.mediaDetails.sizes[0].height:E?.mediaDetails.height,alt:w||s.title}),(0,a.jsx)("div",{className:`panel-hero-overlay bg-${x}`,children:"\xa0"})]}),(0,a.jsx)("aside",{className:"scroll-prompt position-absolute w-100 d-flex justify-content-center",children:(0,a.jsx)("div",{className:"text-center bg-plaster p-10 w-auto rounded-circle",children:(0,a.jsx)("svg",{className:"icon-arrow-down",fill:"currentColor",viewBox:"0 0 12 18",children:(0,a.jsx)("use",{href:"/images/icon.svg#arrow-down"})})})})]})}),"carousel"!=u&&(0,a.jsx)("div",{className:"container",children:(0,a.jsx)("div",{className:`panel-hero-row mt-50 row align-items-center${"image"==u&&!j?" pt-50":""}`,children:(w||v)&&(0,a.jsx)("div",{className:"col-12",children:(0,a.jsxs)("div",{className:`row text-center text-lg-start ${"room"==t?"":"mb-50"}`,children:[(0,a.jsxs)("div",{className:"col-12 col-lg-4 offset-lg-1",children:[w&&(0,a.jsx)("h1",{className:"title mt-0",dangerouslySetInnerHTML:{__html:w}}),(()=>{if(!l)return;let e=null;if("woody"===l&&(e=(0,a.jsx)("figure",{className:"wp-block-video video-about-dog mb-30",children:(0,a.jsxs)("video",{autoPlay:!0,loop:!0,muted:!0,playsInl
1ine:!0,children:[(0,a.jsx)("source",{src:"https://cms.heartwoodcollection.com/wp-content/uploads/2024/03/4-Dog-1664x880-hevc-safari.mp4",type:"video/mp4; codecs=hvc1"}),(0,a.jsx)("source",{src:"https://cms.heartwoodcollection.com/wp-content/uploads/2024/03/4-Dog-1664x880-vp9-chrome.webm",type:"video/webm"})]})})),e)return e})()]}),(0,a.jsx)("div",{className:"col-12 col-lg-5 offset-lg-1",children:v&&(0,d.A)(v)})]})})})})]})}},4608:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[...slug]",function(){return t(4880)}])},4830:(e,s,t)=>{"use strict";t.d(s,{A:()=>l});var a=t(7876);function l(e){return(0,a.jsx)("div",{className:"page-header row",children:(0,a.jsxs)("div",{className:"col-12 col-lg-10 offset-lg-1 mt-lg-150",children:[e.children,(0,a.jsx)("h1",{className:"page-header text-center text-lg-start mx-0 my-30 mt-lg-0",children:e.title})]})})}},4880:(e,s,t)=>{"use strict";t.r(s),t.d(s,{__N_SSG:()=>x,default:()=>g});var a=t(7876),l=t(9099),i=t(7328),o=t.n(i),r=t(2885),c=t(3135),n=t(7786),d=t(4830),h=t(4194),m=t(9395),p=t(3566),u=t(9239),x=!0;function g({post:e,heroContent:s,promoPopup:t,settings:i,menus:x,preview:w}){let v=(0,l.useRouter)(),j=!!e?.seo&&{...e.seo},f=e?.pageOptions.cssClass?" "+e.pageOptions.cssClass:"",b=e?.pageOptions.layout||"default",N=e?.pageOptions.showSignup||!1,y=j.canonical;return(e?.broadcastedUrl&&(e?.broadcastedUrl.indexOf("https://hwc-cms.wearetesting.co.uk/pubs")!=-1&&(y=e?.broadcastedUrl.replace("https://hwc-cms.wearetesting.co.uk/pubs","https://heartwoodinns.com")),e?.broadcastedUrl.indexOf("https://cms.heartwoodcollection.com/pubs")!=-1&&(y=e?.broadcastedUrl.replace("https://cms.heartwoodcollection.com/pubs","https://heartwoodinns.com")),e?.broadcastedUrl.indexOf("https://hwc-cms.wearetesting.co.uk/news")!=-1&&(y=e?.broadcastedUrl.replace("https://hwc-cms.wearetesting.co.uk/news","https://heartwoodcollection.com/news")),e?.broadcastedUrl.indexOf("https://cms.heartwoodcollection.com/news")!=-1&&(y=e?.broadcastedUrl.replace("https://cms.heartwoodcollection.com/news","https://heartwoodcollection.com/news")),j.canonical=y),(w||e?.status!=="draft")&&(v.isFallback||e?.slug))?(0,a.jsx)(n.A,{preview:w,seo:j,bodyClass:`page${f} layout-${b}`,promoPopup:t,children:v.isFallback?(0,a.jsx)("h1",{children:"Loading page…"}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o(),{children:(0,a.jsx)("title",{children:e.seo?e.seo.title:e.title})}),(0,a.jsxs)(u.A,{ctx:e,children:[s&&(0,a.jsx)(h.A,{hero:s,ctx:e}),(0,a.jsx)(c.A,{children:(0,a.jsxs)("article",{children:[!(s||e?.pageOptions.hideTitle)&&(0,a.jsx)(d.A,{title:e.title}),(0,a.jsx)("div",{className:"entry-content text-center text-lg-start pb-50",children:e.content&&(0,r.A)(e.content)})]})}),N&&(0,a.jsx)(p.A,{postID:e?.id,pageOptions:e?.pageOptions})]})]})}):(0,a.jsx)(m.default,{})}},9239:(e,s,t)=>{"use strict";t.d(s,{A:()=>c});var a=t(7876),l=t(9099),i=t(1993),o=t(593),r=t(4232);function c(e){let s=(0,l.useRouter)(),t=(0,r.useRef)(null),c=e?.ctx||!1,[n,d]=(0,r.useState)(null),h=(0,r.useSyncExternalStore)(()=>()=>{},()=>!!(c?.postPassword&&!(0,o.Ri)(i.QN+c.id)),()=>!!c?.postPassword);return(0,a.jsx)(a.Fragment,{children:h?(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("h1",{className:"page-header text-center mx-0 mb-30 mt-50 mt-lg-0",children:c.title}),(0,a.jsx)("p",{children:"This content is password protected. To view it please enter your password below:"}),(0,a.jsxs)("p",{style:{maxWidth:"400px",margin:"0 auto"},children:[(0,a.jsx)("input",{ref:t,type:"text",className:"form-control mb-15"}),n&&(0,a.jsx)("span",{className:"alert alert-warning",children:n}),(0,a.jsx)("button",{className:"btn btn-primary mt-15",onClick:()=>{t&&t?.current&&(t?.current.value==c?.postPassword?((0,o.TV)(i.QN+c.id,1,i.EV),d(null),s.reload()):d("Wrong password, please try again."))},children:"Gain access"})]})]}):e.children})}},9395:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>o});var a=t(7876),l=t(7328),i=t.n(l);function o(){let e="PAGE NOT FOUND!";return(0,a.jsxs)("article",{children:[(0,a.jsx)(i(),{children:(0,a.jsx)("title",{children:`404 - ${e}`})}),(0,a.jsx)("div",{className:"col-12 col-lg-10 offset-lg-1 mt-lg-150",children:(0,a.jsx)("h1",{className:"page-header text-center mx-0 mb-30 mt-50 mt-lg-0",children:`${e}`})}),(0,a.jsxs)("div",{className:"entry-content text-center pb-50",children:[(0,a.jsx)("p",{children:"Sorry, but the page you were looking for could not be found."}),(0,a.jsx)("p",{children:(0,a.jsx)("a",{href:"/",className:"btn btn-outline-dusk",children:"Return to homepage"})})]})]})}}},e=>{e.O(0,[8230,9172,3178,9357,1464,7786,3566,636,6593,8792],()=>e(e.s=4608)),_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.