PageSourceSearch

https://bellinn-newforest.co.uk/_next/static/chunks/app/offers/%5Bslug%5D/page-97eca7fc8927e4da.js

js bellinn-newforest.co.uk collected 2026-10-09 00:59:58 UTC 4,530 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8284],{155:(e,a,s)=>{"use strict";s.d(a,{default:()=>l});var r=s(5155),n=s(2115),t=s(3859),_=s.n(t);function l(e){let{variant:a="standard",eventTag:s="",enquiryType:t="contact",heading:l,subheading:i}=e,[c,o]=(0,n.useState)({name:"",email:"",phone:"",message:"",guests:"",event_date:""}),[p,u]=(0,n.useState)("idle"),d=(e,a)=>o(s=>({...s,[e]:a})),m=async e=>{e.preventDefault(),u("sending");try{(await fetch("/api/enquiry",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...c,enquiry_type:t,event_tag:s})})).ok?u("success"):u("error")}catch(e){u("error")}};return"success"===p?(0,r.jsx)("div",{className:"".concat(_().wrap," ").concat(_()[a]),children:(0,r.jsxs)("div",{className:_().success,children:[(0,r.jsx)("p",{className:_().successTitle,children:"Thank you!"}),(0,r.jsx)("p",{className:_().successMsg,children:"We've received your enquiry and will be in touch shortly."})]})}):(0,r.jsxs)("div",{className:"".concat(_().wrap," ").concat(_()[a]),children:[l&&(0,r.jsx)("h3",{className:_().heading,children:l}),i&&(0,r.jsx)("p",{className:_().subheading,children:i}),(0,r.jsxs)("form",{onSubmit:m,className:_().form,noValidate:!0,children:[(0,r.jsxs)("div",{className:_().row,children:[(0,r.jsxs)("label",{className:_().label,children:[(0,r.jsx)("span",{children:"Name *"}),(0,r.jsx)("input",{className:_().input,type:"text",value:c.name,onChange:e=>d("name",e.target.value),required:!0})]}),(0,r.jsxs)("label",{className:_().label,children:[(0,r.jsx)("span",{children:"Email *"}),(0,r.jsx)("input",{className:_().input,type:"email",value:c.email,onChange:e=>d("email",e.target.value),required:!0})]})]}),(0,r.jsxs)("label",{className:_().label,children:[(0,r.jsx)("span",{children:"Phone"}),(0,r.jsx)("input",{className:_().input,type:"tel",value:c.phone,onChange:e=>d("phone",e.target.value)})]}),"meetings"===a&&(0,r.jsxs)("div",{className:_().row,children:[(0,r.jsxs)("label",{className:_().label,children:[(0,r.jsx)("span",{children:"Preferred Date"}),(0,r.jsx)("input",{className:_().input,type:"date",value:c.event_date,onChange:e=>d("event_date",e.target.value)})]}),(0,r.jsxs)("label",{className:_().label,children:[(0,r.jsx)("span",{children:"Number of Guests"}),(0,r.jsx)("input",{className:_().input,type:"text",placeholder:"e.g. 30",value:c.guests,onChange:e=>d("guests",e.target.value)})]})]}),(0,r.jsxs)("label",{className:_().label,children:[(0,r.jsx)("span",{children:"Message *"}),(0,r.jsx)("textarea",{className:_().textarea,rows:"compact"===a?3:5,value:c.message,onChange:e=>d("message",e.target.value),required:!0})]}),"error"===p&&(0,r.jsx)("p",{className:_().errorMsg,children:"Something went wrong — please try again or call us on 023 8081 2214."}),(0,r.jsx)("button",{type:"submit",className:_().btn,disabled:"sending"===p,children:"sending"===p?"Sending…":"Send Enquiry"})]})]})}},1603:(e,a,s)=>{Promise.resolve().then(s.bind(s,155)),Promise.resolve().then(s.t.bind(s,3245,23))},3245:e=>{e.exports={draftBanner:"page_draftBanner__Xkfci",hero:"page_hero__ykKZ5",heroImg:"page_heroImg__3E8ME",heroOverlay:"page_heroOverlay__Taitt",heroContent:"page_heroContent__QV9A8",heroDate:"page_heroDate__oU3b_",page:"page_page__jeZRr",content:"page_content__y0x2o",excerpt:"page_excerpt__PRLS7",body:"page_body__sM9BK",gallery:"page_gallery__pi_aG",galleryImg:"page_galleryImg__D5aGY",terms:"page_terms__rh6nV",formWrap:"page_formWrap__HJXX1",formHeading:"page_formHeading__L_zxu",formSub:"page_formSub__0yHMI",sidebar:"page_sidebar__CRN6c",posterLink:"page_posterLink__GGGdV",poster:"page_poster__lOz4m",posterHint:"page_posterHint__IbMMp",card:"page_card__SPQoo",detail:"page_detail__Zw4RD",detailLabel:"page_detailLabel__PrwZw",detailValue:"page_detailValue__46ADs",btnPrimary:"page_btnPrimary__XiM3i",btnSecondary:"page_btnSecondary__2Qn5W"}},3859:e=>{e.exports={wrap:"EnquiryForm_wrap__oCBbT",compact:"EnquiryForm_compact__POEYn",standard:"EnquiryForm_standard__Z3VCR",meetings:"EnquiryForm_meetings__CLeQv",heading:"EnquiryForm_heading__uEaPQ",subheading:"EnquiryForm_subheading__jup7U",form:"EnquiryForm_form___8Fcm",row:"EnquiryForm_row__b_GS0",label:"EnquiryForm_label__mPkL9",input:"EnquiryForm_input__xPqNH",textarea:"EnquiryForm_textarea__X_REk",btn:"EnquiryForm_btn__VKMhM",success:"EnquiryForm_success__C78B1",successTitle:"EnquiryForm_successTitle__eQdaq",successMsg:"EnquiryForm_successMsg__SY4dE",errorMsg:"EnquiryForm_errorMsg__t8_Ii"}}},e=>{e.O(0,[7716,8441,1255,7358],()=>e(e.s=1603)),_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.