import{j as i}from"./react-B_SyE9nW.js";import{j as s,o as t,n as e,N as r}from"./index-DVx3XUkT.js";import{A as n}from"./Address-D7cjbXj0.js";import{F as a}from"./Frame-lvZI9GSc.js";import{G as o}from"./GenericAvatarHeader-DO7pCYOO.js";import{R as l}from"./RatingReview-1uOdijm5.js";import{B as p,T as d}from"./index-HT-5AD7E.js";import{B as x}from"./BusinessIco-DqvV2WuT.js";import{G as c}from"./Grid-DRA5GTmM.js";import{H as m,a as g}from"./NoOptionsText-CNa8Bm1k.js";const u={"&.MuiButtonBase-root":{borderRadius:"18px",height:"100%"}},j={position:"relative","& .MuiSvgIcon-root":{position:"relative",mr:"3px",top:"-2px",border:`1px solid ${s.grayMap}`,borderRadius:"50%",p:"3px",width:"20px",height:"20px"}},f={"& p":{display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":"2",overflow:"hidden"}};const h=t((function(s){const{name:t,enjoty_rating:m,rating:g,main_picture:h,address:y,num_reviews:b,onSelect:w,slug:v,business:_,city:S,style:P,index:z,isProduct:B,main_type_str:C,cuisines:M,full_address:k}=s;return i.jsx(p,{sx:u,onClickCapture:i=>{i.stopPropagation(),null==w||w({slug:v,index:z})},style:P,children:i.jsxs(a,{margin:"0",width:"215px",padding:"15px",height:"100%",children:[i.jsx(o,{sx:f,square:!0,src:h,margin:"0",bodyContainerMargin:"0 0 0 8px",bodyContainerAlignSelf:"center",alt:e(B?"alt.product":"alt.business",{business_type:C,city:S,business_name:B?_:t,[B?"product_name":"cuisine_type"]:B?t:M}),children:i.jsx(d,{text:String(t),align:"start",size:"micro",margin:"0",lineHeight:"22px"})}),i.jsx(l,{rating:m||g||0,reviews:b,margin:"6px 0 5px"}),y?i.jsx(n,{address:y||"",full_address:k,iconSize:14,alignItems:"flex-start",viewInMapOnClick:!0,city:S}):i.jsx(i.Fragment,{}),_?i.jsxs(c,{container:!0,flexWrap:"nowrap",width:"100%",margin:"14px 0 0",alignItems:"start",sx:j,children:[i.jsx(x,{}),i.jsxs(r,{margin:"0",size:"mini",fontStyle:"italic",align:"start",children:[_," ",i.jsxs(r,{size:"minim",fontStyle:"italic",align:"start",children:["(",S,")"]})]})]}):i.jsx(i.Fragment,{})]})})}));const y=t((function({store:s,title:t,onSelect:e,isProduct:r,sx:n,child:a=h,titleProps:o}){return i.jsx(m.Provider,{value:{title:t,child:a,onSelect:e,store:s,isProduct:r,titleProps:o},children:s.getSize?i.jsx(g,{sx:n}):i.jsx(i.Fragment,{})})}));export{y as B};