PageSourceSearch

https://www.foxglovepub.co.uk/_next/static/chunks/4463.3f2699012d141ac0.js

js foxglovepub.co.uk collected 2026-10-07 01:38:13 UTC 10,074 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4463,7786],{60676:function(e,a,t){"use strict";t.d(a,{Z:function(){return i}});var s=t(65413),r=t(33981),n=t(97407);function i(e,a){(0,n.Z)(2,arguments);var t=(0,s.Z)(a);return(0,r.Z)(e,12*t)}},41512:function(e,a,t){"use strict";var s=t(21963);let r=(0,s.cn)(!1);a.Z=r},77920:function(e,a,t){"use strict";t.r(a),t.d(a,{default:function(){return b}});var s=t(97458),r=t(31536),n=t(40511),i=t(2638),c=t.n(i),l=t(52983),o=t(91409),d=t.n(o),u=t(78407),m=t(62122),h=t(47145),p=t(74743),g=t(80447),x=t(89070);function f(e){let{signUpFormName:a}=e,{slug:t}=(0,r.Tt)(),{acf:{information:{appearance:{template:n},site:{phc:i,recaptcha_site_key:c}}}}=(0,r.FC)(),o=(0,l.useCallback)(async e=>{let{fields:a,recaptchaToken:t}=e;return(0,g.Z)({...a,phc:i},"signupVoucher",t)},[i]);return(0,s.jsx)("div",{className:"formContent",children:(0,s.jsxs)(u.Z,{initialValues:{source:a},onSubmit:o,recaptchaSiteKey:c,slots:{successMessage:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:d().successMessage,children:"Thank you for subscribing to our email newsletter! We're thrilled to have you on board."}),(0,s.jsx)("p",{className:d().successMessage,children:"Get ready to receive exciting updates and exclusive offers, straight to your inbox."}),(0,s.jsx)("p",{className:d().successMessage,children:"Welcome to our community!"})]})},styles:{errorMessage:"".concat(d().errorMessage),form:"".concat(d().signupForm),recaptchaDisclaimer:"".concat(d().recapctha)},children:[(0,s.jsx)(h.Z,{name:"firstName",placeholder:"First Name",required:!0,type:"name"}),(0,s.jsx)(h.Z,{name:"lastName",placeholder:"Last Name",required:!0,type:"name"}),(0,s.jsx)(h.Z,{name:"email",placeholder:"Your Email",required:!0,type:"email"}),(0,s.jsx)(h.Z,{label:"Your D.O.B",name:"dateOfBirth",placeholder:"Date of Birth",type:"date",validate:e=>e?void 0:"Please select your date of birth"}),(0,s.jsx)(h.Z,{legalInfo:"This is just so we can understand distance travelled by our guests to our pubs.",name:"postCode",placeholder:"Postcode",postCode:!0,type:"text"}),(0,s.jsx)(h.Z,{checkboxLabel:"Sign me up to Marston's PLC. You must be over 18 to receive our news and offers.",name:"marketingOptIn",required:!0,type:"checkbox"}),(0,s.jsx)(h.Z,{checkboxLabel:"Sign me up to Marston's Inns",name:"checkbox2",type:"checkbox"}),(0,s.jsxs)("div",{className:d().disclaimer,children:[(0,s.jsx)("p",{children:"We will not pass details onto other Third Parties for further marketing and you can unsubscribe at any time."}),(0,s.jsxs)("p",{children:["Please read our"," ",(0,s.jsx)(p.Z,{href:"/privacy-policy",target:"_blank",className:d().link,children:"Privacy Policy"})]})]}),"t3"===n?(0,s.jsxs)("button",{className:"button button-scooped button-filled ".concat(d().submit),type:"submit",onClick:()=>{(0,x.Z)({event:"sign_up_submit",button_category:"Signup Submit"})},children:["revere"===t&&(0,s.jsx)("span",{className:"button-scooped-inner"}),(0,s.jsx)("span",{className:"button-scooped-outer button-filled-outer",children:(0,s.jsx)("span",{className:"button-scooped-text",children:"Submit"})})]}):(0,s.jsx)("button",{className:"button button-primary ".concat(d().submit),type:"submit",onClick:()=>{(0,x.Z)({event:"sign_up_submit",button_category:"Signup Submit"})},children:"Submit"}),(0,s.jsx)(m.lP,{children:e=>{let{submitting:a}=e;return a&&(0,s.jsx)("div",{className:d().disclaimer,children:(0,s.jsx)("p",{children:"Sending..."})})}})]})})}function b(e){let{position:a,signUpFormImage:t,signUpFormName:i}=e,{slug:l}=(0,r.Tt)(),{acf:{information:{appearance:{template:o}}}}=(0,r.FC)();return t&&i?(0,s.jsxs)("div",{className:"container gutter ".concat("signature"===l?"scooped-border no-border-mobile form-spacing":""," ").concat("t1"===o||"t2"===o?"padded":d().wrapperformContainer," formWrapper signupFormWrapper").trim(),children:[(0,s.jsx)(f,{signUpFormName:i}),(0,s.jsx)("div",{className:"signupImage",children:(0,s.jsx)("div",{className:"".concat("signature"===l?"scooped-media full":""," formimageContainer").trim(),children:(0,s.jsx)(n.ZP,{className:"formImage",src:t,params:[{width:316,height:422},{width:430,height:571},{width:632,height:844},{width:860,height:1142}],width:"316",height:"422",preload:1===a||void 0,Preloader:1===a?c():void 0,loading:a>1?"lazy":void 0,alt:"".concat(i," Form")})})})]}):null}},88159:function(e,a,t){"use strict";t.d(a,{Z:function(){return g}});var s=t(97458),r=t(31536),n=t(23082),i=t.n(n),c=t(52983),l=t(74743),o=t(40511),d=t(35212),u=t(71212),m=t(16379),h=t.n(m);function p(e){let{enable_slider:a,image:t,offer:n="",slider_images:i,title:l}=e,{slug:m}=(0,r.Tt)(),p=(0,c.useRef)(),{acf:{information:{appearance:{template:g}}}}=(0,r.FC)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"".concat(a?h().sliderTitle:h().title).trim(),children:"t3"===g?(0,s.jsxs)(s.Fragment,{children:[l&&(0,s.jsx)("h2",{children:(0,s.jsx)("span",{className:"heading-underline heading-underline--no-spacing ".concat("signature"===m?"font-tertiary":"font-secondary"," ").concat(h().subtitle).trim(),children:l})}),(0,s.jsx)("h3",{className:"font-secondary",dangerouslySetInnerHTML:{__html:n}})]}):(0,s.jsxs)("h3",{className:"font-secondary",children:[l,(0,s.jsx)("span",{className:"grandstand"!==m&&"woodies"!==m?"stencil":"",dangerouslySetInnerHTML:{__html:n}})]})}),a&&(null==i?void 0:i.length)?(0,s.jsxs)(u.tq,{slidesPerView:"auto",enabled:(null==i?void 0:i.length)>1,speed:900,autoplay:(null==i?void 0:i.length)>1&&{delay:5e3},modules:[d.tl,d.pt],pagination:{el:".swiper-pagination-offer-card",clickable:!0},onBeforeInit:e=>{p.current=e},className:h().imageWrapper,children:[(null==i?void 0:i.length)>1&&(0,s.jsx)("div",{className:"swiper-pagination-offer-card"}),i.map((e,a)=>e.image?(0,s.jsx)(u.o5,{children:e.image&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:h().overlay}),(0,s.jsx)(o.ZP,{className:"image-full-width image-cover ".concat(h().image),src:e.image,params:[{width:304,height:304},{width:389,height:389},{width:608,height:608},{width:778,height:778}],width:"304",height:"304",loading:"lazy",alt:l})]})},"image-".concat(a+1)):null)]}):(0,s.jsx)(s.Fragment,{children:t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:h().overlay}),(0,s.jsx)(o.ZP,{className:"image-full-width image-cover ".concat(h().image),src:t,params:[{width:304,height:304},{width:389,height:389},{width:608,height:608},{width:778,height:778}],width:"304",height:"304",loading:"lazy",alt:l})]}):null})]})}function g(e){let{enable_slider:a,image:t,linkText:n,linkUrl:c,offer:o="",slider_images:d,text:u,title:m}=e,{slug:g}=(0,r.Tt)(),{acf:{information:{appearance:{template:x}}}}=(0,r.FC)();return a&&Array.isArray(d)&&d.length>0||!a&&t?(0,s.jsxs)("article",{className:h().card,children:[n&&c?(0,s.jsx)(l.Z,{href:"".concat(c),className:h().hero,children:(0,s.jsx)(p,{enable_slider:a,image:t,offer:o,slider_images:d,title:m})}):(0,s.jsx)("div",{className:h().hero,children:(0,s.jsx)(p,{enable_slider:a,image:t,offer:o,slider_images:d,title:m})}),(n||c||u)&&(0,s.jsxs)("div",{className:h().content,children:[u&&(0,s.jsx)("div",{className:"multiline",dangerouslySetInnerHTML:{__html:i().sanitize(u.replace(/\r\n/g,"<br />"))}}),n&&c&&(0,s.jsx)(s.Fragment,{children:"t3"===x?(0,s.jsx)(l.Z,{href:"".concat(c),className:"button button-scooped button-filled",children:(0,s.jsxs)(s.Fragment,{children:["revere"===g&&(0,s.jsx)("span",{className:"button-scooped-inner"}),(0,s.jsx)("span",{className:"button-scooped-outer button-filled-outer",children:(0,s.jsx)("span",{className:"button-scooped-text",children:n})})]})}):(0,s.jsx)(l.Z,{href:"".concat(c),className:"button button-secondary",children:n})})]})]}):null}t(2525)},47145:function(e,a,t){"use strict";t.d(a,{Z:function(){return o}});var s=t(97458),r=t(63557),n=t(5887),i=t(83425);t(52983);
1var c=t(91409),l=t.n(c);function o(e){let{campaignCode:a,checkboxLabel:t,label:c,legalInfo:o,name:d,required:u,placeholder:m,postCode:h,type:p,validate:g}=e,x=(0,i.Z)(new Date,110),f=(0,i.Z)(new Date,18);return"date"===p?(0,s.jsxs)(n.Z,{className:l().date,options:{altFormat:"j M y",altInput:!0,disableMobile:!0,locale:{firstDayOfWeek:1},maxDate:f,minDate:x,position:"below",static:!0,onReady:(e,a,t)=>{t.jumpToDate(f)}},validators:g?[g]:[],children:[(0,s.jsx)("input",{name:d,className:l().dateInput,type:"date",placeholder:"Select Date".concat(u?"*":"")}),(0,s.jsx)("span",{children:c})]}):(0,s.jsxs)(r.Z,{className:"".concat("checkbox"===p?"".concat(l().checkboxWrapper):"".concat(l().fieldWrapper)," ").concat(c?"".concat(l().withLabel):""," ").concat(o?"".concat(l().withLegal):"").trim(),children:[(0,s.jsx)("input",{className:"checkbox"===p?"".concat(l().checkbox):"".concat(l().input),maxLength:h?10:a?4:void 0,name:d,pattern:h?"[0-9]{6}":void 0,placeholder:"".concat(m).concat(u?"*":""),required:u,type:p}),"checkbox"===p&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:l().mark}),(0,s.jsx)("span",{className:l().checkboxLabel,dangerouslySetInnerHTML:{__html:t||""}})]}),c&&(0,s.jsx)("span",{className:l().fieldLabel,children:c}),o&&(0,s.jsx)("span",{className:l().legal,children:o})]})}},80447:function(e,a,t){"use strict";async function s(e,a,t){let{source:s,...r}=e,n=await fetch("/wp-json/crm/signup",{method:"POST",body:JSON.stringify({fields:r,formId:a,recaptchaToken:t,source:s})}),i=await (null==n?void 0:n.json());if(!n.ok||200!==n.status)throw(null==i?void 0:i.error)&&(null==i?void 0:i.message)&&console.error({error:i.error,message:i.message}),Error();return{}}t.d(a,{Z:function(){return s}})},61556:function(e){e.exports={sliderContainer:"T2OfferCardsBlock_sliderContainer__NG7f8",grid:"T2OfferCardsBlock_grid__kODca",dividerText:"T2OfferCardsBlock_dividerText__lnvpE"}},16379:function(e){e.exports={imageWrapper:"SliderCard_imageWrapper__X3HoW",card:"SliderCard_card__PE3Yh",content:"SliderCard_content__uZM2I",overlay:"SliderCard_overlay__JvWDU",sliderTitle:"SliderCard_sliderTitle__QjGne",title:"SliderCard_title__bPsQh",hero:"SliderCard_hero__ps30J",image:"SliderCard_image__W_VjG",subtitle:"SliderCard_subtitle__NbSlQ"}}}]);

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.