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