function y(t) {
  const r = [{}, {}];
  return t == null || t.values.forEach((c, a) => {
    r[0][a] = c.get(), r[1][a] = c.getVelocity();
  }), r;
}
function f(t, r, c, a) {
  if (typeof r == "function") {
    const [o, u] = y(a);
    r = r(c !== void 0 ? c : t.custom, o, u);
  }
  if (typeof r == "string" && (r = t.variants && t.variants[r]), typeof r == "function") {
    const [o, u] = y(a);
    r = r(c !== void 0 ? c : t.custom, o, u);
  }
  return r;
}
export {
  f as resolveVariantFromProps
};
//# sourceMappingURL=resolve-variants.es.js.map
