'use client';
import{jsx as e}from"react/jsx-runtime";import{useFeaturedImageGlobal as r,useProductStore as t}from"@gem-sdk/core";import{createClass as o}from"@gem-sdk/system";import s from"../../../image/components/Image.js";import{getItemCarouselPostPurchaseClass as m}from"../../common/classes.js";let ItemGridPostPurchase=i=>{let{image:a,border:c,aspectRatio:d,objectFit:n}=i,l=r(),p=t(e=>e.setProductFeaturedImage),u={src:a.src,alt:""},g=o(m({border:a?.id===l?.id&&"none"!==c}));return e("div",{"aria-hidden":"true",className:g,onClick:()=>p(a),children:e(s,{setting:{srcSet:{desktop:u,mobile:u,tablet:u}},styles:{aspectRatio:d,objectFit:n,enableBorder:"none"}},a?.src)})};export{ItemGridPostPurchase};
