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