import{r as t,j as o}from"./react-B_SyE9nW.js";import{o as s,ap as i,aq as r,n as e,G as m,y as p}from"./index-DVx3XUkT.js";import{U as a}from"./Url-C6XTBQVE.js";import{L as j}from"./RatingReviewTitle-BHMCdk_D.js";import{H as n,S as c}from"./HomeContext-BNcXqVuR.js";import{U as l}from"./ItemLoading-B0qbhEL4.js";import{B as d}from"./BtnSReply-6abPDBDT.js";import{L as u}from"./ListInfo-CbGI-bKe.js";import{U as x}from"./UserListDetails-DrJq-NkI.js";import{B as I,u as f,a as S}from"./BaseTopLayout-D4povWSF.js";import{u as B,c as C}from"./Switch-a8Hc4XU-.js";import"./history-CBi_mSPs.js";import"./styled-components-D7wwngcN.js";import"./sentry-Br0bWdGN.js";import"./RatingReview-1uOdijm5.js";import"./index-CWdensOV.js";import"./createSvgIcon-CRufxXOX.js";import"./index-HT-5AD7E.js";import"./Stack-DWxbwU3r.js";import"./styles-Dr-0T67S.js";import"./GlobalStyles-DQe6i-JI.js";import"./Grid-DRA5GTmM.js";import"./ActivityIco-DkU_vd49.js";import"./SubTitle-CIQFjien.js";import"./BusinessIco-DqvV2WuT.js";import"./PublishContext-BPIl0LWV.js";import"./BusinessReviewStore-B1li4-uN.js";import"./CoreServices-SqNJAolu.js";import"./EditIco-sjndGYzv.js";import"./TrashIco-CXUipucv.js";import"./DownIco-B67nTPsD.js";import"./BtnShadow-C8wlgmJV.js";import"./CircleCheckIco-BY245pyQ.js";import"./FacebookIco-CJReqDRM.js";import"./TwitterIco-DhWIHfJt.js";import"./Address-D7cjbXj0.js";import"./listItemButtonClasses-0sZQWNAV.js";import"./GenericAvatarHeader-DO7pCYOO.js";import"./NoFound-CkLZ6FHd.js";import"./NoFoundIco-CCMbds0r.js";import"./ImageIco-BTTHFJ5H.js";import"./ListIco-CIJlF_Uh.js";import"./FldRadio-B86iYBMu.js";import"./BackIco-8zMErfY7.js";import"./BtnGeneric-VNHvyqX_.js";import"./SwitchBase-BkR_KtPc.js";import"./EnjBackdrop-CWn95p49.js";import"./ClockIco-DD83_h6b.js";import"./SearchMap-BBAveyfR.js";import"./embla-carousel-react.esm-NewS-kch.js";import"./BtnRestart-Y6iH4BTJ.js";import"./SearchRating-B2uAkqf5.js";import"./FldText-CoGyGXSJ.js";import"./FldRadioSort-Bt-3y7YR.js";import"./BtnIconRounded-CfwY9W7B.js";import"./DeliveryIco-s-WO99Xm.js";import"./FldIngredients-BngvrW3W.js";import"./FldCuisineType-DJPkWJ2_.js";import"./BtnAccept-DuA7pTxU.js";import"./BtnCancel-B4o76N3R.js";import"./Autocomplete-B-M5Q-AZ.js";import"./index-dbPBR86R.js";import"./usePreviousProps-GIwTB3Ki.js";import"./Checkbox-Ctz9c9jx.js";import"./AccordionSummary-BIfMWSAn.js";import"./useSlot-48k3ed2d.js";import"./PublishIco-CTt5pd1e.js";import"./PublishRedirect-Cs6SvL_-.js";import"./HelpMenu-Bvny7lm2.js";import"./FAQIco-CLFzVWzH.js";import"./WarningIco-BqWiG8sL.js";import"./ContactContext-DBdgNkfH.js";import"./Divider-CvF4q94n.js";import"./NoOptionsText-CNa8Bm1k.js";import"./FldSwitch-BfSVJdBw.js";import"./PopperGoogle-CfjtFHGm.js";import"./NearIco-CYQYG08Z.js";import"./GoogleIdentityStoreContext-DPdR2OJT.js";import"./SearchIco-DTCP2lIv.js";import"./BaseList-BS6_vFm0.js";import"./BusinessContext-DGcTXG3r.js";import"./AddBusinessModal-DG9-oryx.js";import"./FldTextArea-C8EQrgi3.js";import"./FldTextSelect-CYrn0aFm.js";import"./FldAutocomplete-DdzXexOn.js";import"./ServicesModal-CZP4rIgG.js";import"./Avatar-BsiN2ezt.js";import"./ItemPict-D4zqD9pF.js";import"./PictureBox-DRdNsjma.js";import"./Tooltip-C3_xfLH8.js";const b={"&":{"@media(min-width:768px)":{"& > p":{display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":"2",overflow:"hidden"},"& .enj-list-info":{display:"flex",flexDirection:"column-reverse",alignItems:"flex-start"},"& .enj-updated-at * > span":{fontSize:"11px"}}}},k=s((function({uuid:s,index:c,...x}){const f=t.useContext(l),{onBookmarkTopCb:S,getInfoCity:B}=t.useContext(n),{front_picture:C,name:k,is_bookmarked:T,description:h,owner:{profile_name:y,username:g},updated_at:v,slug:w}=x,[F,_]=t.useMemo((()=>[i(g),r("route.list.build",{slug:w})]),[]);return o.jsxs(I,{dataTest:"enj-lists-element",src:C,title:k,order:String(Number(c||0)+1),onClick:()=>{p.push(_),f.loadSubListData({...x,item_identifier:s})},alt:e("alt.top.list",{name:k,city:B}),sx:b,children:[o.jsx(a,{route:F}),o.jsx(a,{route:_}),o.jsx(d,{dataTest:"enj-lists-bookmark",is_bookmarked:T,listType:j.TYPE_LIST,name:k,src:C,description:h,item_identifier:s,cb:S}),o.jsx(u,{profile_name:y,updated_at:v,onClick:t=>{t.stopPropagation(),p.push(F)},description:m.isMobile?void 0:h})]},s)}));const T=s((function(){return f(c.TOP_BOOKMARKED_LISTS_CITY,"topList"),t.useLayoutEffect((()=>(B("route.top.lists"),C)),[]),o.jsxs(o.Fragment,{children:[o.jsx(S,{dataTest:"enj-lists-share",Cmp:k}),o.jsx(x,{})]})}));export{T as default};