{"version":3,"file":"exactProp-380158e0.cjs","sources":["../../node_modules/@mui/utils/esm/exactProp/exactProp.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\n// This module is based on https://github.com/airbnb/prop-types-exact repository.\n// However, in order to reduce the number of dependencies and to remove some extra safe checks\n// the module was forked.\n\nconst specialProperty = 'exact-prop: \\u200b';\nexport default function exactProp(propTypes) {\n  if (process.env.NODE_ENV === 'production') {\n    return propTypes;\n  }\n  return _extends({}, propTypes, {\n    [specialProperty]: props => {\n      const unsupportedProps = Object.keys(props).filter(prop => !propTypes.hasOwnProperty(prop));\n      if (unsupportedProps.length > 0) {\n        return new Error(`The following props are not supported: ${unsupportedProps.map(prop => `\\`${prop}\\``).join(', ')}. Please remove them.`);\n      }\n      return null;\n    }\n  });\n}"],"names":["specialProperty","exactProp","propTypes","_extends","props","unsupportedProps","prop"],"mappings":"uDAKMA,EAAkB,gBACT,SAASC,EAAUC,EAAW,CAC3C,OAAI,QAAQ,IAAI,WAAa,aACpBA,EAEFC,EAAQ,SAAC,CAAE,EAAED,EAAW,CAC7B,CAACF,CAAe,EAAGI,GAAS,CAC1B,MAAMC,EAAmB,OAAO,KAAKD,CAAK,EAAE,OAAOE,GAAQ,CAACJ,EAAU,eAAeI,CAAI,CAAC,EAC1F,OAAID,EAAiB,OAAS,EACrB,IAAI,MAAM,0CAA0CA,EAAiB,IAAIC,GAAQ,KAAKA,CAAI,IAAI,EAAE,KAAK,IAAI,CAAC,uBAAuB,EAEnI,IACR,CACL,CAAG,CACH","x_google_ignoreList":[0]}