1"use strict";(self.webpackChunkappfront_ordering=self.webpackChunkappfront_ordering||[]).push([[2748],{49686:function(e,a,r){r.r(a);var t=r(87462),o=r(27361),n=r.n(o),l=r(67294),i=r(43434),d=r(26098),s=r(64892),c=r(61962),u=r(43607),g=r(67752),m=r(67947),p=r(86309),v=r(45494);a.default=(0,i.$j)((function(e,a){return{appStyles:(0,s.getStyles)(e,a),app:e.app,branchesAvailability:(0,s.getBranchesAvailability)(e,a)}}))((0,d.Z)((function(e){var a,r,o,i,d,s,h=e.pageContext,b=void 0===h?{}:h,y=e.appStyles,x=e.app,f=e.T,E=e.location,k=b.area,C=void 0===k?{}:k,S=b.areaSlug,w=b.areaBranchId,N=b.areaBranch,B=b.branches,T=void 0===B?[]:B,I=b.business,A=void 0===I?{}:I,W=b.servingOptions,R=void 0===W?[]:W,O=b.orderHomePath,Z=void 0===O?"/ordering-home":O,z=(null==y?void 0:y.newWebsite)||{},F=(0,t.Z)({},z.header||{},b.headerConfig||{}),H=n()(z,"seo.areasTitleTemplate","{{areaName}}"),M=((d=H,s=C.name,d?d.replace(/{{\s*areaName\s*}}/gi,s||""):"")||"").trim()||C.name||(null==A?void 0:A.name)||f("Our Restaurant")||f("Serving {{areaName}}",{areaName:C.name||f("your area")}),P=C.heroImageUrl||(null===(a=C.heroImage)||void 0===a?void 0:a.url)||(null===(r=C.image)||void 0===r?void 0:r.url)||(null==A||null===(o=A.coverImage)||void 0===o?void 0:o.url)||(null==A||null===(i=A.heroImage)||void 0===i?void 0:i.url),j=(0,l.useMemo)((function(){return N||(T||[]).find((function(e){return String(e.id)===String(w)}))}),[N,T,w]),K=(null==x?void 0:x.google)||{},_=j?[j]:T,D=e.branchesAvailability,U=(0,l.useMemo)((function(){return{sectionId:"area-location-"+(S||w||(null==j?void 0:j.id)||"default"),title:C.name}}),[S,w,null==j?void 0:j.id,C.name]),X=(0,l.useCallback)((function(){var e=(0,c.PX)("/order",{branchId:null==j?void 0:j.id,area:S||C.slug});(0,c.T8)(e)}),[j,S,C.slug]);return l.createElement(l.Fragment,null,l.createElement(m.Z,{pageContext:b,pageType:"area",area:C,location:E}),l.createElement(g.Z,{pageContext:b,appStyles:y,T:f},(function(e){var a=e.colors,r=e.orderButtonBackgroundColor,t=e.orderButtonTextColor,o=C.heroBackground||a.sectionBackgroundAlt,n=(0,v.v5)(a,{backgroundColor:o}),i=(0,v.v5)(a,{backgroundColor:a.sectionBackground});return l.createElement(l.Fragment,null,l.createElement("section",{className:"nw-area-main",style:{background:o,color:(null==F?void 0:F.heroTextColor)||n.text,boxSizing:"border-box"}},l.createElement("div",{style:{margin:"0 auto",maxWidth:1240,display:"flex",alignItems:"center"},className:"nw-area-main"},l.createElement("div",{style:{flex:1}},l.createElement("h1",{className:"nw-area-title",style:{margin:"0 0 20px 0",lineHeight:1.1,fontWeight:700}},M),l.createElement("div",{style:{display:"flex",flexWrap:"wrap",gap:16}},l.createElement("button",{onClick:X,style:{border:"none",borderRadius:12,padding:"16px 28px",backgroundColor:r,color:t,fontSize:16,fontWeight:600,cursor:"pointer",boxShadow:"0 12px 24px "+a.shadowStrong}},f("Order Now")),l.createElement("a",{href:"/order",style:{borderRadius:12,padding:"16px 28px",border:"1px solid "+n.borderStrong,color:n.text,fontSize:16,fontWeight:600,textDecoration:"none"}},f("Explore Menu")))),P&&l.createElement("div",{className:"nw-area-image",style:{width:"100%",backgroundColor:a.cardBackground,borderRadius:24,padding:16,boxShadow:"0 20px 40px "+a.shadow}},l.createElement("div",{style:{position:"relative",width:"100%",paddingBottom:"70%",borderRadius:20,overflow:"hidden"}},l.createElement("img",{src:P,alt:M,style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"cover"},onError:function(e){null!=e&&e.target&&(e.target.src=u.WF)}}))))),_&&_.length>0&&l.createElement(p.Z,{branches:_,section:U,servingOptions:R,orderHomePath:Z,T:f,appStyles:y,businessName:(null==A?void 0:A.name)||f("Our Restaurant"),headerConfig:F,google:{google:K,apiKey:A.mapsCredentialsKey},themeColors:a,sectionIndex:0,branchesAvailability:D}),Array.isArray(C.deliveryNotes)&&C.deliveryNotes.length>0&&l.createElement("section",{className:"nw-area-locations",style:{backgroundColor:a.sectionBackground}},l.createElement("div",{style:{maxWidth:900,margin:"0 auto"}},l.createElement("h3",{style:{textTransform:"uppercase",letterSpacing:1,fontSize:15,color:i.textMuted}},f("Area details")),l.createElement("ul",{style:{margin:"16px 0 0 18px",color:i.textSecondary,lineHeight:1.6}},C.deliveryNotes.map((function(e,a){return l.createElement("li",{key:e+"-"+a},e)}))))))})))})))}}]);
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.