PageSourceSearch

https://peterboroughgrab.co.uk/_next/static/chunks/pages/contact-ea6157f0311fea31.js

js peterboroughgrab.co.uk collected 2026-10-02 02:09:52 UTC 11,511 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9335],{66405:function(e,a,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contact",function(){return s(91029)}])},35628:function(e,a,s){"use strict";s.d(a,{Z:function(){return u}});var n=s(85893),l=s(67294),i=s(30957),r=s.n(i),t=s(30796),c=s(41664),o=s.n(c),d=s(5031),h=s(89583);function u(e){var a,s,i,c,u,m,p,x,j,f,v,g,N,b,y,k,F;let{open:L,close:S,area:I,outlet:C=null}=e,{pageProps:T}=(0,l.useContext)(t.G),[w,E]=(0,l.useState)(!1),W=I&&"outlet"===I.entry_point||C&&(null===(a=C.outlet_detail)||void 0===a?void 0:a.standalone),O=e=>{e.stopPropagation()};return(0,n.jsx)(d.Z,{in:L,timeout:100,classNames:"fade",mountOnEnter:!0,unmountOnExit:!0,onEntered:()=>E(!0),onExit:()=>E(!1),children:(0,n.jsx)("div",{className:r().leftNavBackground,onClick:S,children:(0,n.jsx)(d.Z,{in:w,timeout:200,classNames:"slide-from-left",mountOnEnter:!0,unmountOnExit:!0,children:(0,n.jsxs)("div",{className:r().leftNavWindow,onClick:O,children:[(0,n.jsx)("div",{className:r().logo,style:{backgroundImage:"url(".concat(null===(s=T.branding)||void 0===s?void 0:null===(i=s.logo_on_white)||void 0===i?void 0:i.path,")")}}),(0,n.jsxs)("div",{className:r().sectionWrapper,children:[(0,n.jsx)("h6",{children:"Getting Around"}),(0,n.jsxs)("ul",{children:[W?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("li",{children:(0,n.jsx)(o(),{href:"/".concat(null===(m=T.franchise)||void 0===m?void 0:m.slug,"/").concat(C.slug),children:"Home"})})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("li",{children:(0,n.jsx)(o(),{href:"/",children:"Home"})}),(0,n.jsx)(n.Fragment,{children:T&&(null===(c=T.franchise)||void 0===c?void 0:c.slug)?(0,n.jsx)("li",{children:(0,n.jsx)(o(),{href:"/".concat(null===(u=T.franchise)||void 0===u?void 0:u.slug),onClick:S,children:"Order Now"})}):(0,n.jsx)("li",{children:(0,n.jsx)(o(),{href:"/",onClick:S,children:"Order Now"})})})]}),(0,n.jsx)("li",{children:(0,n.jsx)(o(),{href:"/account",onClick:S,children:"My Account"})}),(0,n.jsx)("li",{children:(0,n.jsx)(o(),{href:"/account#orders",onClick:S,children:"My Orders"})})]})]}),T.franchise&&T.franchise.contact&&(0,n.jsxs)("div",{className:r().sectionWrapper,children:[(0,n.jsxs)("h6",{children:["Contact ",T.franchise.name]}),(0,n.jsxs)("ul",{children:[(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:"mailto:".concat(null!==(b=null===(p=T.franchise.contact)||void 0===p?void 0:p.public_contact_email)&&void 0!==b?b:"#_"),children:null===(x=T.franchise.contact)||void 0===x?void 0:x.public_contact_email})}),(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:"tel:".concat(null!==(y=null===(j=T.franchise.contact)||void 0===j?void 0:j.public_contact_phone)&&void 0!==y?y:"#_"),children:null===(f=T.franchise.contact)||void 0===f?void 0:f.public_contact_phone})})]})]}),((null===(v=T.area)||void 0===v?void 0:v.ios_store_link)||(null===(g=T.area)||void 0===g?void 0:g.android_store_link))&&(0,n.jsxs)("div",{className:r().sectionWrapper,children:[(0,n.jsx)("h6",{children:"Mobile Apps"}),(0,n.jsxs)("ul",{children:[T.area.ios_store_link&&(0,n.jsx)("li",{children:(0,n.jsxs)("a",{href:null!==(k=T.area.ios_store_link)&&void 0!==k?k:"#_",children:[(0,n.jsx)(h.r2Q,{})," iOS App Store"]})}),T.area.android_store_link&&(0,n.jsx)("li",{children:(0,n.jsxs)("a",{href:null!==(F=T.area.android_store_link)&&void 0!==F?F:"#_",children:[(0,n.jsx)(h.Wfz,{})," Google Play"]})})]})]}),(null===(N=T.branding)||void 0===N?void 0:N.name)==="One Delivery"&&(0,n.jsxs)("div",{className:r().sectionWrapper,children:[(0,n.jsx)("h6",{children:"Join Us"}),(0,n.jsxs)("ul",{children:[(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:"https://franchise.one-delivery.co.uk",target:"_blank",children:"Become a Franchisee"})}),(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:"https://franchise.one-delivery.co.uk/franchise/become-a-driver",target:"_blank",children:"Become a Driver"})})]})]})]})})})})}},52665:function(e,a,s){"use strict";s.d(a,{Z:function(){return r}});var n=s(85893),l=s(8683),i=s.n(l);function r(e){let{show:a,styles:s}=e;return a?(0,n.jsx)("div",{className:i().loadingWrapper,style:s,children:(0,n.jsxs)("div",{className:i().ldsEllipsis,children:[(0,n.jsx)("div",{}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{})]})}):null}},3986:function(e,a,s){"use strict";s.d(a,{Z:function(){return d}});var n=s(85893),l=s(44011),i=s.n(l),r=s(86893),t=s(53854),c=s(67294),o=s(35628);function d(e){let{preTitle:a,title:s,onBack:l,postTitle:d}=e,[h,u]=(0,c.useState)(!1),[m,p]=(0,c.useState)(!1),x=()=>{u(!0)},j=()=>{u(!1)},f=e=>{p(!0),l(e)};return(0,n.jsxs)("div",{className:i().header,children:[(0,n.jsx)(o.Z,{open:h,close:j}),(0,n.jsxs)("div",{className:i().desktopWrapper,children:[l?(0,n.jsx)("div",{className:i().headerLeft,children:m?(0,n.jsx)("span",{className:i().navBackIconLoading,children:(0,n.jsx)(t.PSe,{})}):(0,n.jsx)("span",{className:i().navBackIcon,onClick:f,children:(0,n.jsx)(t.PSe,{})})}):(0,n.jsx)("div",{className:i().headerLeft,children:(0,n.jsx)("span",{className:i().navBackIcon,onClick:x,children:(0,n.jsx)(r.cur,{})})}),(0,n.jsxs)("div",{className:i().headerData,children:[a&&(0,n.jsx)("span",{className:i().preTitle,children:a}),(0,n.jsx)("h2",{children:s}),d&&(0,n.jsx)("span",{className:i().postTitle,children:d})]}),(0,n.jsx)("div",{className:i().headerRight})]})]})}},91029:function(e,a,s){"use strict";s.r(a),s.d(a,{__N_SSP:function(){return g},default:function(){return N}});var n=s(85893),l=s(67294),i=s(11163),r=s(48449),t=s.n(r),c=s(80417),o=s.n(c),d=s(8433),h=s(64530),u=s.n(h),m=s(53854),p=s(3986),x=s(80471),j=s(85237),f=s(86501),v=s(52665),g=!0;function N(e){let{branding:a,area:s}
1=e,r=(0,i.useRouter)(),c={a_id:s.uuid,full_name:"",email:"",phone:"",notes:"",area:"",type:"franchise"},[h,g]=(0,l.useState)(c),[N,b]=(0,l.useState)([]),[y,k]=(0,l.useState)(!1),F=e=>{r.push("/")},L=e=>{g({...h,[e.target.name]:e.target.value})},S=async()=>{let e=[];if(h.full_name&&h.email&&h.phone&&h.area||e.push("Please complete all required fields"),e.length){b(e);return}b([]),k(!0);try{await (0,d.Z)({method:"POST",url:"".concat(o().serverUrl,"/customer/contact"),data:h})}catch(a){k(!1);let e=_.get(a,"response.data.message","There was a problem sending this message, please try again.");j.Tb(a),f.Am.error(e);return}g(c),f.Am.success("Thanks, message received! We'll be in touch shortly.",{position:"bottom-center",duration:5e3}),k(!1)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p.Z,{preTitle:s.name,title:"Get In Touch",onBack:F}),(0,n.jsxs)("div",{className:"page-height-wrapper",children:[(0,n.jsx)("div",{className:t().headerWrapper,children:(0,n.jsx)("p",{className:"pad-15",children:"Contact us using the form below. We aim to respond within 24 hours."})}),(0,n.jsxs)("div",{className:"".concat(t().formStart," ").concat(y?"softloading":""),children:[(0,n.jsxs)("div",{className:"".concat(u().formField),children:[(0,n.jsx)("label",{className:u().label,children:"Query Type"}),(0,n.jsxs)("select",{className:u().select,name:"type",autoComplete:"off",value:h.type,onChange:L,children:[(0,n.jsx)("option",{value:"franchise",children:"Becoming a Franchise"}),(0,n.jsx)("option",{value:"driver",children:"Become a Driver"}),(0,n.jsx)("option",{value:"restaurant",children:"Restaurant Sign Up"}),(0,n.jsx)("option",{value:"general",children:"General / Other"})]}),(0,n.jsx)("span",{className:u().inputIcon,children:(0,n.jsx)(x.YgJ,{})})]}),(0,n.jsxs)("div",{className:"".concat(u().formField," pt-20"),children:[(0,n.jsxs)("label",{className:u().label,children:["Full Name",N.length>0&&_.isEmpty(h.full_name)&&(0,n.jsx)("span",{className:u().invalidLabelTag,children:"Full name required"})]}),(0,n.jsx)("input",{className:u().input,type:"text",name:"full_name",autoComplete:"off",value:h.full_name,onChange:L}),(0,n.jsx)("span",{className:u().inputIcon,children:(0,n.jsx)(m.LsQ,{})})]}),(0,n.jsxs)("div",{className:"".concat(u().formField," pt-20"),children:[(0,n.jsxs)("label",{className:u().label,children:["Email",N.length>0&&_.isEmpty(h.email)&&(0,n.jsx)("span",{className:u().invalidLabelTag,children:"Email required"})]}),(0,n.jsx)("input",{className:u().input,type:"email",name:"email",autoComplete:"off",value:h.email,onChange:L}),(0,n.jsx)("span",{className:u().inputIcon,children:(0,n.jsx)(m.LsQ,{})})]}),(0,n.jsxs)("div",{className:"".concat(u().formField," pt-20"),children:[(0,n.jsxs)("label",{className:u().label,children:["Phone"," ",N.length>0&&_.isEmpty(h.phone)&&(0,n.jsx)("span",{className:u().invalidLabelTag,children:"Phone required"})]}),(0,n.jsx)("input",{className:u().input,type:"tel",name:"phone",autoComplete:"off",value:h.phone,onChange:L}),(0,n.jsx)("span",{className:u().inputIcon,children:(0,n.jsx)(m.LsQ,{})})]}),(0,n.jsxs)("div",{className:"".concat(u().formField," pt-20"),children:[(0,n.jsxs)("label",{className:u().label,children:["Area/Location",N.length>0&&_.isEmpty(h.area)&&(0,n.jsx)("span",{className:u().invalidLabelTag,children:"Full name required"})]}),(0,n.jsx)("input",{className:u().input,type:"text",name:"area",autoComplete:"off",value:h.area,onChange:L}),(0,n.jsx)("span",{className:u().inputIcon,children:(0,n.jsx)(m.LsQ,{})})]}),(0,n.jsxs)("div",{className:"".concat(u().formField," pt-20"),children:[(0,n.jsxs)("label",{className:u().label,children:["Message ","(optional)"]}),(0,n.jsx)("textarea",{className:"".concat(u().textarea),rows:4,name:"notes",onChange:L,value:h.notes}),(0,n.jsx)("span",{className:u().inputIcon,children:(0,n.jsx)(m.LsQ,{})})]}),N.length>0&&(0,n.jsx)(n.Fragment,{children:N.map(e=>(0,n.jsx)("span",{className:u().warningLabel,children:e}))}),y?(0,n.jsx)(v.Z,{show:!0}):(0,n.jsx)("button",{className:"main-button mt-20",onClick:S,children:"Send"})]})]})]})}},48449:function(e){e.exports={testimonial:"styles_testimonial__cRzy5",buttonMain:"styles_buttonMain__iOE76",headerWrapper:"styles_headerWrapper__1C6CT",formStart:"styles_formStart___fCwZ"}},64530:function(e){e.exports={formField:"FormStyles_formField__4LmyJ",input:"FormStyles_input__MYfOx",select:"FormStyles_select__0BOeH",noBorder:"FormStyles_noBorder__fDIpK",caps:"FormStyles_caps__8TFIL",textarea:"FormStyles_textarea__AXI7X",textareaPlaceholder:"FormStyles_textareaPlaceholder__p5DUX",label:"FormStyles_label__7T9s5",labelHelp:"FormStyles_labelHelp__DwGrO",invalidLabelTag:"FormStyles_invalidLabelTag__px6pO",invalidField:"FormStyles_invalidField__P9j8d",warningLabel:"FormStyles_warningLabel__y_lzF",infoLabel:"FormStyles_infoLabel__RCCLT",inputIcon:"FormStyles_inputIcon__kUSsQ",fieldButton:"FormStyles_fieldButton__EXG0X"}}
1,30957:function(e){e.exports={leftNavBackground:"LeftNav_leftNavBackground__h0kEs",leftNavWindow:"LeftNav_leftNavWindow__L3Obs",logo:"LeftNav_logo__TxnjX",sectionWrapper:"LeftNav_sectionWrapper__VR8SW"}},8683:function(e){e.exports={loadingWrapper:"Loading_loadingWrapper__XsIaO",ldsEllipsis:"Loading_ldsEllipsis__rOIPU","lds-ellipsis1":"Loading_lds-ellipsis1__d1k_9","lds-ellipsis2":"Loading_lds-ellipsis2__0TP_8","lds-ellipsis3":"Loading_lds-ellipsis3__H13nD"}},44011:function(e){e.exports={header:"ImagelessHeader_header__2Arf6",desktopWrapper:"ImagelessHeader_desktopWrapper__j60FH",preTitle:"ImagelessHeader_preTitle__4EGfo",postTitle:"ImagelessHeader_postTitle__fKou6",navBackIcon:"ImagelessHeader_navBackIcon__g7lye",navBackIconLoading:"ImagelessHeader_navBackIconLoading__Do0LW",spin:"ImagelessHeader_spin__QNPZc",headerData:"ImagelessHeader_headerData__TGdGw",headerRight:"ImagelessHeader_headerRight__EtAr3"}}},function(e){e.O(0,[955,6556,5031,4608,9774,2888,179],function(){return e(e.s=66405)}),_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.