PageSourceSearch

https://www.hall-woodhousewichelstowe.co.uk/_next/static/chunks/7673-2366b0a869f4be7f.js

js hall-woodhousewichelstowe.co.uk collected 2026-10-06 17:17:24 UTC 8,899 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7673],{7518:function(o,n,e){var t={"./h-w-logo.svg":[8918,8918],"./icon-arrow-right.svg":[1713,1713],"./icon-chevron-down.svg":[7643],"./icon-chevron-left.svg":[3140,3140],"./icon-chevron-right.svg":[3881,3881],"./icon-facebook.svg":[721,721],"./icon-instagram.svg":[8211,8211],"./icon-location.svg":[98,98],"./icon-twitter.svg":[7604,7604],"./pclosequote.svg":[9566,9566],"./popenquote.svg":[5657,5657]};function r(o){if(!e.o(t,o))return Promise.resolve().then(function(){var n=Error("Cannot find module '"+o+"'");throw n.code="MODULE_NOT_FOUND",n});var n=t[o],r=n[0];return Promise.all(n.slice(1).map(e.e)).then(function(){return e(r)})}r.keys=function(){return Object.keys(t)},r.id=7518,o.exports=r},7643:function(o,n,e){"use strict";e.r(n);var t,r=e(4194);function a(){return(a=Object.assign?Object.assign.bind():function(o){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t])}return o}).apply(this,arguments)}n.default=function(o){return r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:17,height:9,fill:"none"},o),t||(t=r.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m1 .5 7.5 8 7.5-8"})))}},5557:function(o,n,e){"use strict";e.d(n,{Z:function(){return u}});var t=e(1549),r=e(4194),a=e(7249),c=e(8079),i=e(6836),s=e(334),l=e(5443),d=e.n(l);function u(o){let{externalLink:n,internalLink:e,enquiry:l,text:u,type:h,buttonStyle:v,hoverColor:p,hoverTextColor:b,noBorder:f,dynamicBookingName:x,borderTextColor:g,eventToEmit:m,showIcon:w,..._}=o,j=(0,i.Z)(),k=o=>{try{return new URL(o).searchParams}catch(n){return new URLSearchParams(o)}},y=(0,r.useCallback)(()=>{let o=k(e).get("scroll");if(!o)return;let n=document.querySelector('[data-position="'.concat(o,'"]'));n&&n.scrollIntoView({behavior:"smooth"})},[e]),C=(0,r.useCallback)(()=>{m&&(0,c.X)(m,{})},[m]);switch(h){case"external":if(!n)return null;return(0,t.jsx)(s.Z,{className:d().button,href:n,target:"_blank",rel:"noreferrer","data-no-border":f,"data-has-icon":w,"data-color":v,"data-hover-color":p,"data-hover-text-color":b,"data-border-text-color":g,onClick:C,..._,children:(0,t.jsx)("span",{children:(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:u}}),w&&(0,t.jsx)(a.Z,{name:"ArrowRight"})]})})});case"openbooking":return(0,t.jsx)("button",{className:"".concat(d().button),"data-color":v,"data-has-icon":w,"data-no-border":f,"data-hover-color":p,"data-hover-text-color":b,"data-border-text-color":g,onClick:()=>{j.openBookingModal(l?"ENQUIRY":"BOOKING"),C()},children:(0,t.jsx)("span",{children:(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:u}}),w&&(0,t.jsx)(a.Z,{name:"ArrowRight"})]})})});case"openOtherBooking":return x&&(0,t.jsx)("button",{className:"".concat(d().button),"data-color":v,"data-has-icon":w,"data-no-border":f,"data-hover-color":p,"data-hover-text-color":b,"data-border-text-color":g,onClick:()=>{j.openTableBooking(x),C()},children:(0,t.jsx)("span",{children:(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:u}}),w&&(0,t.jsx)(a.Z,{name:"ArrowRight"})]})})});default:{let o=k(e).get("scroll");if(!e)return null;if((o=>{try{return new URL(o)}catch(o){return!1}})(e)||!o)return(0,t.jsx)(s.Z,{className:"".concat(d().button),"data-color":v,"data-has-icon":w,"data-no-border":f,"data-hover-color":p,"data-hover-text-color":b,"data-border-text-color":g,href:e,onClick:C,..._,children:(0,t.jsx)("span",{children:(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:u}}),w&&(0,t.jsx)(a.Z,{name:"ArrowRight"})]})})});return(0,t.jsx)("button",{className:"".concat(d().button),"data-color":v,"data-has-icon":w,"data-no-border":f,"data-hover-color":p,"data-hover-text-color":b,"data-border-text-color":g,onClick:()=>{y(),C()},children:(0,t.jsx)("span",{children:(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:u}}),w&&(0,t.jsx)(a.Z,{name:"ArrowRight"})]})})})}}}},7673:function(o,n,e){"use strict";e.d(n,{Z:function(){return h}});var t=e(1549),r=e(518),a=e(9510),c=e(4194),i=e(9646),s=e(7643),l=e(5557),d=e(9564),u=e.n(d);function h(o){let{buttons:n,className:e="",isTabbable:d,isBlack:h=!1,eventToEmit:v,accordionLabel:p,accordionButtons:b=[]}=o,[f,x]=(0,c.useState)(!1),g=()=>x(o=>!o),m=!!(null==n?void 0:n.length),w=!!(p&&b.length>0);return m||w?(0,t.jsxs)("div",{className:"".concat(u().wrapper," ").concat(e).trim(),children:[m&&n.map((o,n)=>{let e={...o},{advancedStyling:r,...a}=e;return r||(e.noBorder=!0,h||"secondary"===o.buttonStyle?(e.hoverTextColor="white",e.hoverColor="black"):(e.hoverTextColor="black",e.hoverColor="secondary"),"body"===o.buttonStyle&&(o.showIcon?(e.hoverTextColor="black",e.hoverColor="body"):e.n
1oBorder=!1)),(0,t.jsx)(l.Z,{tabIndex:!1===d?-1:void 0,eventToEmit:v,...a},(0,i.Z)("button",n))}),w&&(0,t.jsxs)("div",{className:u().accordion,children:[(0,t.jsxs)("div",{className:"".concat(u().accordionHeader," ").concat(f?u().isActive:""),onClick:g,onKeyDown:o=>{("Enter"===o.key||" "===o.key)&&g()},role:"button",tabIndex:0,"aria-expanded":f,"aria-controls":"buttons-accordion-content",children:[(0,t.jsx)("span",{className:u().accordionLabel,children:p}),(0,t.jsx)(s.default,{className:u().accordionChevron})]}),(0,t.jsx)(r.M,{initial:!1,children:f&&(0,t.jsx)(a.E.div,{id:"buttons-accordion-content",className:u().accordionBody,initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:"easeInOut"},children:b.map((o,n)=>(0,t.jsx)("div",{className:u().accordionRow,children:(0,t.jsx)(l.Z,{...o,noBorder:!0,showIcon:!0})},(0,i.Z)("buttons-accordion-button",n)))},"buttons-accordion-content")})]})]}):null}},7249:function(o,n,e){"use strict";e.d(n,{Z:function(){return i}});var t=e(1549),r=e(3136),a=e(3586),c=e.n(a);function i(o){let{name:n}=o,{theme:a}=(0,r.Z)({slug:["sitewide"]}),i={Propeller:{ChevronLeft:"icon-chevron-left",ChevronRight:"icon-chevron-right",FacebookIcon:"icon-facebook",InstagramIcon:"icon-instagram",TwitterIcon:"icon-twitter",OpenQuote:"popenquote",CloseQuote:"pclosequote",ArrowRight:"icon-arrow-right"}};if(!(i[a]&&i[a][n]?i[a][n]:i.Propeller[n]))return(0,t.jsx)("span",{children:"Icon does not exist"});let s=c()(()=>e(7518)("./".concat(i[a]&&i[a][n]?i[a][n]:i.Propeller[n],".svg")));return(0,t.jsx)(s,{})}e(4194)},334:function(o,n,e){"use strict";e.d(n,{Z:function(){return c}});var t=e(1549),r=e(7631),a=e.n(r);function c(o){let{children:n,className:e="",href:r,target:c,theme:i="primary",...s}=o;return(0,t.jsx)(a(),{target:c,href:r,passHref:!0,children:(0,t.jsx)("span",{className:"link link--".concat(i," ").concat(e).trim(),...s,children:n})})}e(4194)},8079:function(o,n,e){"use strict";function t(o,n){document.addEventListener(o,n)}function r(o,n){document.removeEventListener(o,n)}function a(o,n){let e=new CustomEvent(o,{detail:n});document.dispatchEvent(e)}e.d(n,{S:function(){return r},X:function(){return a},on:function(){return t}})},9646:function(o,n,e){"use strict";function t(){for(var o=arguments.length,n=Array(o),e=0;e<o;e++)n[e]=arguments[e];return n.join("-")}e.d(n,{Z:function(){return t}})},6836:function(o,n,e){"use strict";e.d(n,{Z:function(){return i}});var t=e(3136),r=e(4194),a=e(5755),c=e(8079);function i(){let{embedLiveres:o,setEmbedLiveres:n}=(0,a.b)(),{acf:{booking:e}}=(0,t.Z)({slug:["sitewide"]}),i=(0,r.useCallback)(t=>{if(o||n(!0),((null==e?void 0:e.enable_room_booking)||(null==e?void 0:e.booking_options.length))&&"ENQUIRY"!==t)(0,c.X)("open-booking-pullout",{});else if(window.openLiveRES)window.openLiveRES({venueId:null==e?void 0:e.liveres_id,bookingType:t});else{let o=setInterval(()=>{window.openLiveRES&&(clearInterval(o),window.openLiveRES({venueId:null==e?void 0:e.liveres_id,bookingType:t}))},100)}},[e]),s=(0,r.useCallback)(e=>{let t=0;o||(n(!0),t=100),setTimeout(()=>{window.openLiveRES&&window.openLiveRES({venueId:e})},t)},[]),l=(0,r.useCallback)(()=>{var o;null===(o=window.open((null==e?void 0:e.room_booking_destination)||"","_blank"))||void 0===o||o.focus()},[]);return{openBookingModal:i,booking:e,openTableBooking:s,openRoomBooking:l}}},5755:function(o,n,e){"use strict";e.d(n,{b:function(){return a},s:function(){return r}});var t=e(4194);let r=(0,t.createContext)({embedLiveres:!0,setEmbedLiveres:()=>console.log("created context")}),a=()=>(0,t.useContext)(r)},5443:function(o){o.exports={button:"Button_borders_button__SaYhn"}},9564:function(o){o.exports={wrapper:"Buttons_wrapper__QRoRY",accordion:"Buttons_accordion__Um9jk",accordionHeader:"Buttons_accordionHeader__msO46",isActive:"Buttons_isActive__LGyCo",accordionLabel:"Buttons_accordionLabel__wIQu4",accordionChevron:"Buttons_accordionChevron__23bAk",accordionBody:"Buttons_accordionBody__j_r0v",accordionRow:"Buttons_accordionRow__gXbZd"}}}]);

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.