(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5138,7030,7617],{6104:()=>{},10438:(e,t,n)=>{"use strict";n.d(t,{$k:()=>l,z$:()=>o});var i=n(45774),a=n(1992),r=n(71212);let s=async()=>{let{data:e}=await i.A.get("/api/v1/restaurants/recently-viewed-restaurants");return e},l=()=>(0,a.useQuery)("view-restaurants",()=>s(),{enabled:!0,onError:r.P}),o=e=>(0,a.useQuery)("view-restaurants",()=>s(),{enabled:!1,onError:r.P,retry:1,onSuccess:e,cacheTime:500})},22593:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>h,default:()=>j});var i=n(37876),a=n(14232),r=n(65138),s=n(35244),l=n(33187),o=n(56222),c=n(41316),u=n(99995),d=n(59099),m=n(75304),g=n(10438),x=n(1105),p=n(31293);let v=()=>{let e,{global:t}=(0,x.d4)(e=>e.globalSettings),{data:n,isLoading:r,refetch:s,isRefetching:v}=(0,g.$k)();return e=localStorage.getItem("token"),(0,a.useEffect)(()=>{e&&s()},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.Ay,{}),(0,i.jsx)(o.A,{maxWidth:"lg",sx:{mb:{xs:"72px",md:"30px"},mt:{xs:"0px",md:"150px"}},children:(0,i.jsxs)(u.WU,{sx:{minHeight:"70vh"},children:[(0,i.jsx)(d.A,{title:"Recently View Restaurants"}),(0,i.jsxs)(c.Ay,{container:!0,spacing:1,sx:{marginTop:"20px"},children:[(null==n?void 0:n.length)>0&&(null==n?void 0:n.map(e=>{var n;return(0,i.jsx)(c.Ay,{item:!0,xs:4,sm:3,md:1.5,children:(0,i.jsx)(m.A,{image:null==e?void 0:e.logo,name:null==e?void 0:e.name,rating:null==e?void 0:e.avg_rating,restaurantImageUrl:null==t||null==(n=t.base_urls)?void 0:n.restaurant_image_url,id:null==e?void 0:e.id,active:null==e?void 0:e.active,open:null==e?void 0:e.open,restaurantDiscount:null==e?void 0:e.discount,freeDelivery:null==e?void 0:e.free_delivery,rating_count:null==e?void 0:e.rating_count,coupons:null==e?void 0:e.coupons,cuisines:null==e?void 0:e.cuisine,opening_time:null==e?void 0:e.current_opening_time})},null==e?void 0:e.id)})),r&&(0,i.jsx)(p.A,{})]})]})})]})};var h=!0;let j=e=>{var t,n;let{configData:a,landingPageData:l,pathName:o}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.default,{title:"".concat((0,s.t)("Recently View Restaurant")," on ").concat(null==a?void 0:a.business_name),ogImage:"".concat(null==a||null==(t=a.base_urls)?void 0:t.react_landing_page_images,"/").concat(null==l||null==(n=l.banner_section_full)?void 0:n.banner_section_img_full),pathName:o}),(0,i.jsx)(v,{})]})}},31293:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var i=n(37876),a=n(62712),r=n(99995),s=n(41316),l=n(60795),o=n(6995);let c=()=>{let e=(0,o.A)("(min-width:400px)");return(0,i.jsx)(r.iv,{align:"center",sx:{minHeight:"70vh"},children:(0,i.jsx)(s.Ay,{container:!0,spacing:1,justifyContent:"center",alignItems:"center",paddingTop:"30x",paddingLeft:"10px",children:[...Array(8)].map((t,n)=>(0,i.jsx)(s.Ay,{item:!0,lg:3,sm:4,xs:e?6:12,textAlign:"-webkit-center",children:(0,i.jsx)(r.WU,{padding:"10px",children:(0,i.jsxs)(r.jB,{spacing:2,children:[(0,i.jsx)(a.A,{variant:"rectangular",animation:"wave",height:130,width:"100%",sx:{borderRadius:"3px"}}),(0,i.jsxs)(l.A,{direction:"row",justifyContent:"space-between",children:[(0,i.jsx)(a.A,{variant:"rectangular",animation:"wave",width:130,height:25}),(0,i.jsx)(a.A,{variant:"rectangular",width:40,animation:"wave",height:25})]}),(0,i.jsx)(a.A,{variant:"rectangular",animation:"wave",width:130,height:15}),(0,i.jsx)(a.A,{variant:"rectangular",animation:"wave",width:130,height:15})]})})},n))})})}},38621:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/recently-view-restaurant",function(){return n(22593)}])},59099:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var i=n(37876);n(14232);var a=n(99995),r=n(37626);let s=e=>{let{t,textAlign:n}=(0,r.B)(),{title:s}=e;return(0,i.jsx)(a.k5,{textAlign:n,children:t(s)})}},65138:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(37876);n(14232);var a=n(77328),r=n.n(a);let s=e=>{let{title:t,description:n,ogImage:a,pathName:s}=e;return(0,i.jsxs)(r(),{children:[(0,i.jsx)("title",{children:t}),(0,i.jsx)("meta",{itemProp:"name",content:t}),(0,i.jsx)("meta",{itemProp:"description",content:n}),(0,i.jsx)("meta",{itemProp:"image",content:a}),(0,i.jsx)("meta",{property:"og:type",content:"website"}),(0,i.jsx)("meta",{property:"og:title",content:t}),(0,i.jsx)("meta",{property:"og:description",content:n}),(0,i.jsx)("meta",{property:"og:image",content:a}),(0,i.jsx)("meta",{property:"og:image:type",content:"image/jpg"}),(0,i.jsx)("meta",{property:"og:image:width",content:"1080"}),(0,i.jsx)("meta",{property:"og:image:height",content:"608"}),(0,i.jsx)("meta",{property:"og:url",content:s}),(0,i.jsx)("meta",{property:"og:type",content:"website"}),(0,i.jsx)("meta",{name:"twitter:title",content:t}),(0,i.jsx)("meta",{name:"twitter:description",content:n}),(0,i.jsx)("meta",{name:"twitter:image",content:a}),(0,i.jsx)("meta",{name:"twitter:card",content:"summary_large_image"})]})}},65776:()=>{}},e=>{e.O(0,[9357,5304,636,6593,8792],()=>e(e.s=38621)),_N_E=e.O()}]);