import { u as p } from "./schema-resolver.C4i_G2fr.js";
import { g as u } from "./get.Ba1R1ACs.js";
function f(r) {
  const o = p(r.type);
  for (const [n, e] of Object.entries(o.props.properties))
    if (e["ui:presets"]) {
      const s = e["ui:presets"], t = u(r.props, n);
      return t && s[t] ? s[t].value : e.default;
    }
  return {};
}
export {
  f as u
};
//# sourceMappingURL=use-color-preset.DHRwRNwD.js.map
