import e from"../../../../@babel/runtime/helpers/esm/extends.js";import o from"../../../../@babel/runtime/helpers/esm/typeof.js";import r from"./noopTheme.js";import t from"../../../utils/esm/deepmerge.js";function n(n){var i="function"==typeof n;return"production"!==process.env.NODE_ENV&&("object"===o(n)||i||console.error(["Material-UI: The `styles` argument provided is invalid.","You need to provide a function generating the styles or a styles object."].join("\n"))),{create:function(o,s){var a;try{a=i?n(o):n}catch(e){throw"production"!==process.env.NODE_ENV&&!0===i&&o===r&&console.error(["Material-UI: The `styles` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join("\n")),e}if(!s||!o.overrides||!o.overrides[s])return a;var c=o.overrides[s],d=e({},a);return Object.keys(c).forEach((function(e){"production"!==process.env.NODE_ENV&&(d[e]||console.warn(["Material-UI: You are trying to override a style that does not exist.","Fix the `".concat(e,"` key of `theme.overrides.").concat(s,"`.")].join("\n"))),d[e]=t(d[e],c[e])})),d},options:{}}}export default n;
//# sourceMappingURL=getStylesCreator.js.map
