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