import{c as m,j as e,m as p,ao as h,bP as f,i as b,bQ as u,cM as o}from"./index-gATdONBG.js";const v=({className:l="",onClickCallback:s,myFavorite:i,disabled:c,...r})=>{const{name:n,priceInfo:d,carousel:a,description:x,id:g}=r,t=m();return e.jsxs("button",{className:p("inline-flex min-w-[195px] max-w-[195px] flex-col gap-y-3 rounded-lg border border-bright-gray bg-white transition-all hover:shadow-xl",l),disabled:c,onClick:()=>{t(h(r)),t(f({productId:g,isInStore:b})).catch(j=>{}),t(u(!0)),s&&s()},children:[e.jsx("img",{className:"aspect-[1/0.75] w-full rounded-t-lg object-cover",loading:"lazy",src:`${o(a[0],"250x")}`,srcSet:`${o(a[0],"250x")}`,alt:x,height:144,width:195}),e.jsxs("div",{className:"flex w-full flex-1 flex-col gap-y-3 px-3 pb-3 text-left",children:[e.jsx("h4",{className:"line-clamp-3 text-ellipsis text-lg font-semibold leading-6",children:n}),e.jsxs("div",{className:"mt-auto space-y-3",children:[e.jsx("p",{className:"text-base font-semibold text-green",children:d}),i&&e.jsx("div",{className:"rounded-lg bg-gradient-to-b from-green to-north-texas-green p-4 text-center font-bold text-white",children:"Start new order"})]})]})]})};export{v as P};