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