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