1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7648],{80012:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/venue/[venueId]",function(){return n(6706)}])},69402:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(41844),i=n(55784),o=n(11163),l=n(64288),s=n(61953),a=n(29630),c=n(9144),u=n(86482),d=n(50669),f=n(68013),h=n(4364),x=n(49837),v=n(69647),p=n(91359),m=n(41664),b=n.n(m);function y(e){var t;let{link:n,merchantLocation:o,onFetchPage:l,isLastChild:c}=e,u=(0,i.useRef)(void 0);return(0,i.useEffect)(()=>{if(u.current&&c&&l){let e=new IntersectionObserver(e=>{let[t]=e;t.isIntersecting&&l()});return e.observe(u.current),()=>e.disconnect()}},[c,l]),(0,r.jsx)(s.Z,{ref:u,component:b(),href:n,title:o.name,sx:{"&:hover":{textDecoration:"none"}},children:(0,r.jsxs)(x.Z,{sx:{display:"flex",width:"100%",justifyContent:"flex-start",borderRadius:3,height:"180px",mb:3},children:[(0,r.jsx)(v.Z,{component:"img",sx:{width:"60%"},image:"".concat((null==o?void 0:null===(t=o.background)||void 0===t?void 0:t.medium)||""),alt:o.name}),(0,r.jsxs)(p.Z,{sx:{display:"flex",flexDirection:"column",width:"40%",px:1,textAlign:"center",justifyContent:"center",borderRadius:0},children:[(0,r.jsx)(a.Z,{component:"h5",variant:"h5",sx:{textTransform:"none"},children:o.name}),!!o.streetAddress&&(0,r.jsx)(a.Z,{mt:.5,fontSize:"12px",lineHeight:"14px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",children:o.streetAddress})]})]})})}let Z=()=>{let e=(0,o.useRouter)(),t=e.query.tableId,n=e.query.venueId,{ot:x}=(0,d.Z)(),[{before:v,after:p}]=(0,u.Z)(),{data:m,fetchMore:b,loading:Z}=(0,f.kMY)({variables:{venueId:n,after:p,before:v},skip:!n}),g=null==m?void 0:m.venue,j=null==m?void 0:m.venueMerchantLocations,w=(0,i.useMemo)(()=>{var e;return null!==(e=null==j?void 0:j.edges.flatMap(e=>{let{node:t}=e;return t}))&&void 0!==e?e:[]},[j]);async function _(){try{var e,t;let n=null==j?void 0:null===(e=j.pageInfo)||void 0===e?void 0:e.endCursor,r=null==j?void 0:null===(t=j.pageInfo)||void 0===t?void 0:t.hasNextPage;if(Z||!r)return;await b({variables:{after:n}})}catch(e){}}return(0,r.jsxs)(l.Z,{maxWidth:"md",children:[(0,r.jsx)(s.Z,{px:1,pt:3,children:(0,r.jsx)(a.Z,{component:"h3",variant:"h3",children:null==g?void 0:g.name})}),(0,r.jsxs)(s.Z,{mb:2,children:[(0,r.jsx)(h.Z,{children:"Restaurants"}),(0,r.jsx)(c.Z,{children:w.map((e,i)=>{let o;let l=x?"?ot=".concat(x):"";if(t){let r=(null==g?void 0:g.prefix)&&!t.startsWith("".concat(null==g?void 0:g.prefix,"-"))?(null==g?void 0:g.prefix)+"-"+t:t;o="/m/".concat(e.id,"/t/").concat(r,"/v/").concat(n).concat(l)}else o="/m/".concat(e.id,"/v/").concat(n).concat(l);return(0,r.jsx)(y,{link:o,merchantLocation:e,onFetchPage:_,isLastChild:i===w.length-1},e.id)})})]})]})};var g=Z},4364:function(e,t,n){"use strict";var r=n(41844),i=n(29630);let o=e=>{let{children:t,...n}=e;return(0,r.jsx)(i.Z,{variant:"h4",color:"text.secondary",sx:{width:"100%",textTransform:"uppercase",textAlign:"center",display:"flex",whiteSpace:"nowrap",border:0,margin:"40px 0 20px 0","&::before, &::after":{position:"relative",width:"100%",borderTop:1,borderLeft:0,borderRight:0,borderBottom:0,borderColor:"text.secondary",borderStyle:"solid",top:"50%",content:'""',display:"inline-block",margin:"0 14px",transform:"translateY(50%)"}},...n,children:t})};t.Z=o},86482:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(55784),i=n(11163),o=n(14176),l=n.n(o);function s(){let e=(0,i.useRouter)(),t=(0,r.useRef)(e);(0,r.useEffect)(()=>{t.current=e},[e]);let n=(0,r.useMemo)(()=>Object.entries(e.query).reduce((e,t)=>{let[n,r]=t;return e[n]=Array.isArray(r)?r[0]:r,e},{}),[e.query]),o=(0,r.useCallback)(function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.push({pathname:t.current.pathname,query:l()({...t.current.query,...n},e=>null==e)})},[e]);return[n,o]}},6706:function(e,t,n){"use strict";n.r(t);var r=n(41844),i=n(69402),o=n(60021);let l=()=>(0,r.jsx)(i.Z,{});l.getLayout=e=>(0,r.jsx)(o.Z,{children:e}),t.default=l}},function(e){e.O(0,[6751,1694,3525,8452,1683,9619,21,2888,179],function(){return e(e.s=80012)}),_N_E=e.O()}]); 2//# sourceMappingURL=[venueId]-460e212526691a2f.js.map
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.