'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),core=require("@gem-sdk/core"),ProductGalleryGrid=require("../child/ProductGalleryGrid.js");const GalleryGrid=e=>{let{isEditMode:r}=core.useRenderMode(),{setting:d,styles:i,gallery:t,builderProps:o,noDataChildren:l,onHandleClickImage:u,children:n}=e,c={...d,...i,borderActive:{...d?.borderActive,border:"none"}};return t?.[0]?.id==="noImageError"&&r?jsxRuntime.jsx(jsxRuntime.Fragment,{children:l}):jsxRuntime.jsx(ProductGalleryGrid.default,{productImages:t,enableHoverAction:!0,...c,builderPropUID:o?.uid,onHandleClick:(e,r)=>u(e||"",r),children:n})};exports.default=GalleryGrid;
