import { u as a } from "./schema-resolver.iYlSHQsB.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.B03-6uH7.js.map
