import { u as a } from "./schema-resolver.b97jlDVg.js";
import { g as i } from "./get.Ba1R1ACs.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.5T8Y9Is8.js.map
