'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),ProductFeaturedImageCarousel=require("../child/ProductFeaturedImageCarousel.js"),getProductImagesClassName=require("../../composables/getProductImagesClassName.js"),getProductImagesStyles=require("../../composables/getProductImagesStyles.js");const OnlyFeatureImage=e=>{let{setting:s,styles:r,gallery:t,builderProps:a,noDataChildren:u,onHandleClickImage:l,children:d}=e,m={...s,...r};if(t?.[0]?.id==="noImageError")return jsxRuntime.jsx(jsxRuntime.Fragment,{children:u});let{featureImageOnlyOneImageClasses:o}=getProductImagesClassName.getProductImagesClassName(m),{featureImageStyle:g}=getProductImagesStyles.getProductImagesStyles(m);return jsxRuntime.jsxs("div",{className:o,style:g,children:[jsxRuntime.jsx(ProductFeaturedImageCarousel.default,{productImages:t,...m,onHandleClick:(e,s)=>{l(e||"",s)},builderPropUID:a?.uid,builderPropsClass:`gp-product-images-gallery-${a?.uid}`}),d]})};exports.default=OnlyFeatureImage;
