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