'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 i=i=>{let{image:a,border:c,aspectRatio:d,objectFit:n}=i,l=r(),p=t(e=>e.setProductFeaturedImage),g={src:a.src,alt:""},u=o(m({border:a?.id===l?.id&&"none"!==c}));return e("div",{"aria-hidden":"true",className:u,onClick:()=>p(a),children:e(s,{setting:{srcSet:{desktop:g,mobile:g,tablet:g}},styles:{aspectRatio:d,objectFit:n,enableBorder:"none"}},a?.src)})};export{i as ItemGridPostPurchase};
