'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../ImageListGrid.js"),r=require("../ImageListCarousel.js"),s=require("@gem-sdk/system"),i=require("../../../hooks/useProductImagePostPurchase.js"),a=require("../../../common/classes.js");exports.default=o=>{let{setting:u,styles:l,gallery:c}=o,d={...u,...l},{isImageListCarousel:m}=i.useProductImagePostPurchase({imageList:c,setting:u}),g=s.createClass(a.getOnlyFeatureLayoutClass());return e.jsx("div",{className:g,children:m?e.jsx(r.default,{...o,productImages:c,aspectRatio:d?.ilAspectRatio,objectFit:d.ilObjectFit,spacing:d.ilSpacing,navigation:d?.ilNavigation,vertical:d?.layoutType!=="bottom-center",border:d?.ilBorder,itemPerSlide:d?.ilItemPerSlide}):e.jsx(t.default,{...o,productImages:c})})};
