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