PageSourceSearch

https://www.princeofwalesglossop.co.uk/_next/static/chunks/8067.e76c226ed3270c1f.js

js princeofwalesglossop.co.uk collected 2026-10-07 18:51:09 UTC 13,878 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8067],{63624:function(e,a,n){"use strict";n.r(a),n.d(a,{default:function(){return A}});var t=n(97458),o=n(31536),s=n(55408),i=n.n(s),r=n(11579),c=n(52983),l=n(83386),d=n(74743),u=n(75218),_=n(49577),m=n(62474),h=n(24220),p=n.n(h),x=n(99492),g=n(87935),b=n(16413),f=n(54803),v=n.n(f),N=n(280),j=n(11562),k=n(60619),T=n(77162),y=n(89070),w=n(61642),M=n(35421),H=n(18615),C=n(47304),L=n(48623),I=n.n(L);function Z(e){let{closeNavModal:a,pubGeneralInfo:{address:n,display_gift_cards:s,email:i,telephone:r}}=e,c=(0,w.Z)("(max-width: ".concat(I().breakpoint,")")),{acf:{information:{links:l}}}=(0,o.FC)();return(0,t.jsxs)(t.Fragment,{children:[!c&&(s||l.order_at_table)&&(0,t.jsxs)("div",{className:I().stripBox,children:[s&&(0,t.jsx)("div",{className:I().stripLink,children:(0,t.jsx)(d.Z,{className:"font-secondary text-l",href:"/giftcards",onClick:()=>{null==a||a(),(0,y.Z)({event:"giftcard_page"})},children:"Gift Cards"})}),l.order_at_table&&(0,t.jsx)("div",{className:I().stripLink,children:(0,t.jsx)("a",{href:l.order_at_table,target:"_blank",rel:"noreferrer",className:"font-secondary text-l",onClick:()=>{null==a||a(),(0,y.Z)({event:"order_at_table_page"})},children:"Order At Table"})})]}),(n||i||r)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:I().address,children:(0,t.jsx)(C.Z,{address:n,email:i,telephone:r})}),(0,t.jsx)(d.Z,{className:"button button-secondary ".concat(I().button),href:"/our-pub?scroll=7",onClick:()=>{null==a||a(),(0,y.Z)({event:"contact_us",button_category:"Footer"})},children:"Contact Us"})]})]})}var B=n(77071),S=n(32970);let F=["menus","offers","sports","whats-on","our-pub","stay-with-us"];function O(e){let{pubLinks:{stay_with_us:a},pubPages:n,setShowModal:o}=e,s=(0,c.useMemo)(()=>(0,S.Z)({orderedMenuItems:F,pubPages:n}).slice(0,3),[n]),i=s.some(e=>"Stay With Us"===e.label);return(0,t.jsxs)("ul",{className:"reset ".concat(p().desktopLinksList),children:[s.map(e=>{let{label:a,slug:n}=e;return(0,t.jsx)(B.Z,{label:a,slug:n,setShowModal:o},"header-desktop-item-".concat(n))}),a&&!i&&s.length<3&&(0,t.jsx)(B.Z,{externalLink:!0,label:"Stay With Us",setShowModal:o,slug:a})]})}var U=n(53757),P=n.n(U);let G=["menus","drinks","offers","sports","whats-on","our-pub","private-hire","stay-with-us"];function R(e){var a;let{headerNavigation:n,pubGeneralInfo:{function_room_header:s,hide_signup_menu:i},pubLinks:{stay_with_us:l},pubPages:u,setShowModal:_}=e,{acf:{information:{bookings:{is_enabled:m},general:{telephone:h}}}}=(0,o.FC)(),x=(0,c.useMemo)(()=>(0,S.Z)({orderedMenuItems:G,pubPages:u}),[u]),g=(0,r.useRouter)(),b=(null===(a=g.query.slug)||void 0===a?void 0:a.toString())||"",f=x.some(e=>"Stay With Us"===e.label);return(0,t.jsxs)(t.Fragment,{children:[x.map(e=>{let{label:a,slug:n}=e;return(0,t.jsx)(N.ck,{className:"".concat(P().menuItem," ").concat(p().menuItem),children:(0,t.jsx)(N.rU,{asChild:!0,children:(0,t.jsx)(d.Z,{className:"font-secondary text-xl ".concat(P().menuLink," ").concat(p().menuLink," ").concat(b===n?P().menuActive:"").trim(),href:"/".concat(n),onClick:()=>{_(!1),(0,y.Z)({event:"".concat(a),button_category:"Header Navigation"})},children:a})})},"header-mobile-item-".concat(n))}),s&&(0,t.jsx)(N.ck,{className:"".concat(P().menuItem," ").concat(p().menuItem),children:(0,t.jsx)(d.Z,{ga4Location:"Header",href:"/function-room-hire",className:"font-secondary text-xl ".concat(P().menuLink," ").concat(p().menuLink," ").concat("function-room-hire"===b?P().menuActive:"").trim(),onClick:()=>{_(!1),(0,y.Z)({event:"Function Room Hire",button_category:"Header Navigation"})},children:"Function Room Hire"})}),l&&!f&&(0,t.jsx)(N.ck,{className:"".concat(P().menuItem," ").concat(p().menuItem),children:(0,t.jsx)(N.rU,{className:"font-secondary text-xl ".concat(P().menuLink," ").concat(p().menuLink),href:l,onClick:()=>{_(!1),(0,y.Z)({event:"stay_with_us_page"})},target:"_blank",children:"Stay With Us"})}),n&&(0,t.jsx)(N.ck,{className:"".concat(P().menuItem," ").concat(p().menuItem),children:(0,t.jsx)(N.rU,{className:"font-secondary text-xl ".concat(P().menuLink," ").concat(p().menuLink),href:"/".concat(null==n?void 0:n.acf.information.settings.slug),onClick:()=>{_(!1),(0,y.Z)({event:"campaign_page",button_category:"Header Navigation"})},children:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:n.title.rendered}})})}),x.length<6&&!i&&(0,t.jsx)(N.ck,{className:"".concat(P().menuItem," ").concat(p().menuItem),
1children:(0,t.jsx)(N.rU,{className:"font-secondary text-xl ".concat(P().menuLink," ").concat(p().menuLink),href:"/signup",onClick:()=>{_(!1),(0,y.Z)({event:"sign_up_page",button_category:"Header Navigation"})},children:"Sign Up"})}),m&&h&&(0,t.jsx)(N.ck,{className:"".concat(P().menuItem," ").concat(p().menuItem),children:(0,t.jsx)(d.Z,{href:"?booking=true",ga4Location:"Header",className:"button button-book-now-fill",children:(0,t.jsx)("span",{children:"Book Now"})})})]})}var E=n(3957),D=n.n(E);function V(e){let{closeNavModal:a,headerNavigation:n,isNoticeVisible:s,openNavigation:i,pubBookingModal:{is_enabled:r},pubGeneralInfo:{address:c,display_gift_cards:u,email:_,telephone:m,...h},pubLinks:x,pubPages:g,pubSiteInfo:b,redLetter:f,setShowModal:v,showModal:C,pubTitle:L}=e,B=(0,w.Z)("(max-width: ".concat(D().breakpoint,")")),S=(0,o.om)(),{slug:F}=(0,o.Tt)(),{acf:{information:{appearance:{template:U}}}}=(0,o.FC)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(N.fC,{className:"".concat(D().navigation," ").concat(p().navigation),children:(0,t.jsx)(T.Z,{title:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:D().burgerMenu}),(0,t.jsx)(O,{pubLinks:x,pubPages:g})]}),styles:{content:"".concat(D().menuContent," ").concat(s?D().withNotice:D().withoutNotice).trim(),trigger:"".concat(D().menuTrigger," ").concat(p().menuTrigger),overlay:"".concat(D().menuOverlay," ").concat(p().menuOverlay," ").concat(s?p().withNotice:p().withoutNotice).trim()},setShowModal:v,showModal:C,children:(0,t.jsx)(N.aV,{className:"reset ".concat(p().menuList),children:(0,t.jsxs)("div",{className:"".concat(D().innerContainer," ").concat(p().innerContainer),"data-template":U,"data-format":F,"data-show-menu":C,children:[(0,t.jsxs)(j.E.div,{className:"".concat(D().headerTitle," ").concat(p().headerTitle),initial:{visibility:"hidden"},whileInView:{visibility:"visible"},viewport:{once:!0,amount:0},transition:{duration:.5,ease:"easeInOut",delay:.5},children:[L,(0,t.jsx)("div",{className:D().closeBox,children:(0,t.jsx)("button",{type:"button",className:"".concat(D().closeButton," ").concat(p().closeButton),onClick:()=>v(!1),children:(0,t.jsx)(j.E.span,{initial:{x:"100px"},whileInView:{x:"0"},viewport:{once:!0,amount:0},transition:{duration:.3,ease:"easeInOut",delay:.35},className:"".concat(p().closeText," ").concat(D().closeText," font-secondary"),children:"Close"})})}),!B&&(0,t.jsxs)("div",{className:D().promoBox,children:[b.yext_pub_id&&(0,t.jsx)(j.E.div,{initial:{opacity:0}
1,whileInView:{opacity:1},viewport:{once:!0,amount:0},transition:{duration:.3,ease:"easeInOut",delay:.35},className:D().searchField,children:(0,t.jsx)(H.Z,{})}),(0,t.jsx)(l.Z,{isEnabled:r,redLetter:f,setShowModal:v,telephone:m})]})]}),(0,t.jsxs)(j.E.div,{initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0,amount:0},transition:{duration:.5,ease:"easeInOut",delay:.2},className:"".concat(D().navContent," ").concat(p().navContent),children:[B&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.Z,{isEnabled:r,redLetter:f,setShowModal:v,telephone:m}),b.yext_pub_id&&(0,t.jsx)(H.Z,{})]}),(0,t.jsx)("div",{className:p().headerRegion,"data-desktop":"false",children:(0,t.jsx)(R,{headerNavigation:n,pubGeneralInfo:{...h},pubLinks:x,pubPages:g,setShowModal:v})}),(0,t.jsx)("div",{className:p().headerRegion,"data-desktop":"true",children:(0,t.jsxs)("div",{className:D().modalContent,children:[(0,t.jsx)("div",{className:D().leftContent,children:(0,t.jsx)(R,{headerNavigation:n,pubGeneralInfo:{...h},pubLinks:x,pubPages:g,setShowModal:v})}),(0,t.jsx)("div",{className:D().rightContent,children:(0,t.jsx)(M.Z,{closeNavModal:()=>v(!1),openNavigation:i})})]})}),(0,t.jsxs)("div",{className:"".concat(D().campaignNavDesktop," ").concat(p().headerRegion),"data-desktop":"false",children:[(0,t.jsx)(M.Z,{closeNavModal:()=>v(!1),openNavigation:i}),(u||x.order_at_table)&&(0,t.jsxs)("div",{className:I().stripBox,children:[u&&(0,t.jsx)("div",{className:I().stripLink,children:(0,t.jsx)(d.Z,{className:"font-secondary text-l",href:"/giftcards",onClick:()=>{null==a||a(),(0,y.Z)({event:"giftcard_page"})},children:"Gift Cards"})}),x.order_at_table&&(0,t.jsx)("div",{className:I().stripLink,children:(0,t.jsx)("a",{href:x.order_at_table,target:"_blank",rel:"noreferrer",className:"font-secondary text-l",onClick:()=>{null==a||a(),(0,y.Z)({event:"order_at_table_page"})},children:"Order At Table"})})]})]}),(0,t.jsx)(N.ck,{className:"".concat(D().bottom," ").concat(p().bottom),children:(0,t.jsx)(Z,{pubGeneralInfo:{address:c,display_gift_cards:u,email:_,telephone:m,...h},closeNavModal:()=>v(!1)})})]})]})})})}),!(null==S?void 0:S.enabled)&&(0,t.jsx)(k.Z,{dmnId:null==S?void 0:S.id,isNoticeVisible:s})]})}function A(e){let{headerNavigation:a,openNavigation:n,pubBookingModal:s,pubGeneralInfo:h,pubHeaderNotices:{copy:f,display_header:N,link_text:j,link_url:k},pubLinks:T,pubPages:y,pubSiteInfo:w,pubTitle:M,redLetter:H,sidePanel:C}=e,L=(0,r.useRouter)(),[I,Z]=(0,c.useState)(!0),[B,S]=(0,c.useState)(!1),{acf:{information:{appearance:{template:F},bookings:{is_enabled:O},general:{telephone:U},popup:{popup_content:P,popup_heading:G,show_popup:R},site:{yext_pub_id:E}}}}=(0,o.FC)(),{slug:D}=(0,o.Tt)(),A=(0,c.useCallback)(()=>(0,t.jsxs)("div",{className:v().logoContainer,children:["woodies"===D&&(0,t.jsx)("img",{"aria-label":"woodies logo",src:"/image/woodies-logo.png",className:v().woodies}),(0,t.jsx)(d.Z,{href:"/",className:"font-secondary pub-title ".concat(v().title," ").concat(p().title," ").concat((0,_.Z)(M)),onClick:()=>S(!1),"data-theme":D,children:"woodies"===D?function(e){let a=e.match(/^the\s+/i);if(a){let n=a[0],o=e.slice(n.length);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:v().titleSmall,dangerouslySetInnerHTML:{__html:n}}),(0,t.jsx)("span",{className:v().titleLarge,dangerouslySetInnerHTML:{__html:o}})]})}return(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})}(M):(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:"".concat(M)}})}),"grandstand"===D&&(0,t.jsx)("img",{"aria-label":"grandstand logo",src:"/image/grandstand.png",className:v().grandstand})]}),[D,M]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("header",{className:p().header,"data-template":F,"data-format":D,"data-open":B,"data-visible-notice":!!(f&&N&&I),children:[(0,t.jsx)(x.Z,{pubHeaderNotices:{copy:f,display_header:N,link_text:j,link_url:k},onChange:e=>Z(e)}),(0,t.jsxs)("div",{className:"".concat(v().headerBar," ").concat(p().headerBar,"\n        ").concat(B?"".concat(v().withNotice," ").concat(p().withNotice," ").concat(v().hidden):"").trim(),"data-with-notice":!!(f&&N&&I),"data-menu-open":B,children:[(0,t.jsxs)("div",{className:"".concat(v().left," ").concat(p().left),children:[A(),E&&(0,t.jsx)("div",{className:"".concat(p().searchContainer," ").concat(B?p().hideSearch:"").trim(),children:(0,t.jsx)(i(),{href:"/results?query=&context=%7B%22pub%22%3A%22".concat(E,"%22%7D&verticalUrl=faqs.html"),"aria-label":"Search Results Page",children:(0,t.jsx)(m.Z,{})})}),(0,t.jsx)("div",{className:"".concat(p().headerRegion," ").concat(p().height100," ").concat(p().headerButtons),"data-desktop":"true",children:(0,t.jsx)(l.Z,{isEnabled:O,redLetter:H,setShowModal:S,telephone:U})})]}),(0,t.jsx)(V,{closeNavModal:()=>S(!1),headerNavigation:a,isNoticeVisible:I,openNavigation:n,pubBookingModal:s,pubGeneralInfo:h,pubLinks:T,pubPages:y,pubSiteInfo:w,pubTitle:A(),redLetter:H,showModal:B,setShowModal:S})]}),!B&&(0,t.jsx)(g.Z,{})]}),R&&P&&G&&(0,t.jsx)(u.Z,{}),("/"===L.asPath||L.asPath.includes("/home")||L.asPath.includes("y_source"))&&C&&(0,t.jsx)(b.Z,{sidePanel:C})]})}},48623:function(e){e.exports={breakpoint:"1280px",addressHeading:"T2BottomBar_addressHeading__okDUw",address:"T2BottomBar_address__mislV",stripBox:"T2BottomBar_str
1ipBox__ET6fi",stripLink:"T2BottomBar_stripLink__D2pMR",button:"T2BottomBar_button__MxjAc"}},54803:function(e){e.exports={breakpoint:"1280px",headerBar:"T2Header_headerBar____FKZ",hidden:"T2Header_hidden__WHKyV",fadeOut:"T2Header_fadeOut__CBPW6",left:"T2Header_left__9Pv_k",logoContainer:"T2Header_logoContainer__EdaRc",title:"T2Header_title__n2oP4",titleSmall:"T2Header_titleSmall__NwpIM",titleLarge:"T2Header_titleLarge__GBT2T",grandstand:"T2Header_grandstand__UvsRG",woodies:"T2Header_woodies__3zJth"}},3957:function(e){e.exports={breakpoint:"1280px",innerContainer:"T2HeaderMenu_innerContainer__lu3ig",menuContent:"T2HeaderMenu_menuContent__PKUhn",withNotice:"T2HeaderMenu_withNotice__a3ILU",withoutNotice:"T2HeaderMenu_withoutNotice__PyPaC",campaignNavDesktop:"T2HeaderMenu_campaignNavDesktop__NNvJ_",navigation:"T2HeaderMenu_navigation__7ixie",menuTrigger:"T2HeaderMenu_menuTrigger___FMDH",burgerMenu:"T2HeaderMenu_burgerMenu__HDuFx",bottom:"T2HeaderMenu_bottom__V_HTF",menuOverlay:"T2HeaderMenu_menuOverlay__6vHGI",headerTitle:"T2HeaderMenu_headerTitle__7GNSA",closeButton:"T2HeaderMenu_closeButton__8KIwz",navContent:"T2HeaderMenu_navContent__KqtKE",modalContent:"T2HeaderMenu_modalContent__Htd_U",leftContent:"T2HeaderMenu_leftContent__8RSlt",rightContent:"T2HeaderMenu_rightContent__ycO9D",promoBox:"T2HeaderMenu_promoBox__1Cs6C",searchField:"T2HeaderMenu_searchField__bSBYM",closeBox:"T2HeaderMenu_closeBox__v8i_O",closeText:"T2HeaderMenu_closeText__KGk8O",searchWrappper:"T2HeaderMenu_searchWrappper__s6DMn"}},53757:function(e){e.exports={menuLink:"T2HeaderMenuLinks_menuLink__KlD09",menuActive:"T2HeaderMenuLinks_menuActive__OI0Qu",menuItem:"T2HeaderMenuLinks_menuItem__d9bB_"}}}]);

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.