import { d as b } from "../../../../sdk/dist/shared/chunk-QGYZ7CG5.js";
import "../../../../sdk/dist/shared/chunk-AFVJZPLS.js";
import "@sinclair/typebox";
import "../../../../sdk/dist/shared/chunk-A3GF4PYW.js";
import "../../../../sdk/dist/shared/chunk-W33JMRRN.js";
function getStyleProperties(schema, path = "", styles = {}) {
  if (schema.type === "object") {
    for (const key in schema.properties) {
      const prop = b(schema.properties[key]);
      if (prop["ui:styleId"]) {
        styles[`${path}${key}`] = prop["ui:styleId"];
      }
      getStyleProperties(prop, `${path}${key}.`, styles);
    }
  } else if (schema.type === "array") {
    getStyleProperties(schema.items, `${path}[].`, styles);
  }
  return styles;
}
export {
  getStyleProperties
};
//# sourceMappingURL=style-props.js.map
