'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),AdaptiveImage=require("./AdaptiveImage.js"),helpers=require("../common/helpers.js"),system=require("@gem-sdk/system"),classes=require("../common/classes.js"),styles=require("../common/styles.js");const PostPurchaseImage=({styles:e,setting:s,builderAttrs:t,style:a,children:r,onClick:l})=>{let i=system.createStyle(styles.getFigureStyle(e)),m=system.createClass(classes.getFigureClass()),c=system.createClass(classes.getAdaptiveClass()),o=system.createStyle(styles.getImageStyle(e,a)),u=system.createClass(classes.getImageClass());return jsxRuntime.jsxs("div",{...t,onClick:l,role:"presentation",className:u,style:o,children:[jsxRuntime.jsx("figure",{className:m,style:i,children:jsxRuntime.jsx(AdaptiveImage.default,{srcSet:s?.srcSet,className:c,alt:s?.alt,aspectRatio:helpers.makeResponsiveSetting(e?.aspectRatio),layout:helpers.makeResponsiveSetting(e?.objectFit),priority:s?.priority,enableBorder:e?.enableBorder})}),r]})};exports.default=PostPurchaseImage;
