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