import{q as c,f as o,o as h,g as i,h as d,j as f,n as a,l as x,L as n,M as r,F,O as w}from"./index-C8qz7c0N.js";const R=Object.assign({name:"Product"},{__name:"product",props:{item:{type:Object,required:!0},titleFontSize:{type:[Number,String],default:22},width:{type:[Number,String],default:260},height:{type:[Number,String],default:260},borderRadius:{type:[Number,String],default:6}},emits:["itemClick"],setup(e,{emit:u}){const l=e,s=u;function m(){s("itemClick",l.item)}return(N,S)=>{const b=x,t=f;return h(),o(t,{class:"flex flex-col items-center overflow-hidden",style:a({maxWidth:Number.isFinite(e.width)?`${e.width}rpx`:e.width,width:Number.isFinite(e.width)?`${e.width}rpx`:e.width,borderRadius:Number.isFinite(e.borderRadius)?`${e.borderRadius}rpx`:e.borderRadius}),onClick:m},{default:i(()=>[d(t,{class:"overflow-hidden",style:a({maxWidth:Number.isFinite(e.width)?`${e.width}rpx`:e.width,width:Number.isFinite(e.width)?`${e.width}rpx`:e.width,height:Number.isFinite(e.height)?`${e.height}rpx`:e.height,borderTopLeftRadius:Number.isFinite(e.borderRadius)?`${e.borderRadius}rpx`:e.borderRadius,borderTopRightRadius:Number.isFinite(e.borderRadius)?`${e.borderRadius}rpx`:e.borderRadius})},{default:i(()=>[d(b,{src:e.item.image,class:"h-full w-full",mode:"aspectFit"},null,8,["src"])]),_:1},8,["style"]),d(t,{class:"box-border w-full bg-white px-14rpx pb-8rpx pt-10rpx",style:a({fontSize:Number.isFinite(e.titleFontSize)?`${e.titleFontSize}rpx`:e.titleFontSize,borderBottomLeftRadius:Number.isFinite(e.borderRadius)?`${e.borderRadius}rpx`:e.borderRadius,borderBottomRightRadius:Number.isFinite(e.borderRadius)?`${e.borderRadius}rpx`:e.borderRadius})},{default:i(()=>[d(t,{class:"mb-3px truncate",style:a({fontSize:Number.isFinite(e.titleFontSize)?`${e.titleFontSize}rpx`:e.titleFontSize})},{default:i(()=>[n(r(e.item.productName||e.item.storeName),1)]),_:1},8,["style"]),d(t,{class:"flex items-center justify-between"},{default:i(()=>[d(t,{class:"text-#FF334A font-bold",style:a({fontSize:Number.isFinite(e.titleFontSize)?`${e.titleFontSize}rpx`:e.titleFontSize})},{default:i(()=>[n(" ৳ "+r(F(w)(e.item.price)),1)]),_:1},8,["style"]),d(t,{class:"text-16rpx text-#898989"},{default:i(()=>[n(r(e.item.ficti)+" Sold ",1)]),_:1})]),_:1})]),_:1},8,["style"])]),_:1},8,["style"])}}}),y=c(R,[["__scopeId","data-v-fc899184"]]);export{y as _};
