'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),core=require("@gem-sdk/core"),Dropdown=require("../dropdown-swatches/Dropdown.js"),React=require("react");const DropdownGroup=({...e})=>{let r=core.useVariants(),{selectedOptions:t}=core.useSelectedOption(),o=React.useMemo(()=>{let e=Object.keys(t||{}),o=r.find(r=>{let o=0;return e.forEach(e=>{let n=r?.selectedOptions.find(r=>r.name===e);n?.value===t?.[e]&&o++}),o===e.length});return o},[r,t]);return jsxRuntime.jsx(Dropdown.default,{variants:r,initValue:o?.id,variantGroup:!0,...e})};exports.default=DropdownGroup;
