{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\"; // 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\n  return _extends({}, propTypes, {\n    [specialProperty]: props => {\n      const unsupportedProps = Object.keys(props).filter(prop => !propTypes.hasOwnProperty(prop));\n\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\n      return null;\n    }\n  });\n}","map":{"version":3,"sources":["C:/laragon/www/itokin/DriverOPCDA/frontend/node_modules/@material-ui/data-grid/node_modules/@material-ui/utils/esm/exactProp.js"],"names":["_extends","specialProperty","exactProp","propTypes","process","env","NODE_ENV","props","unsupportedProps","Object","keys","filter","prop","hasOwnProperty","length","Error","map","join"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,oCAArB,C,CACA;AACA;AACA;;AACA,MAAMC,eAAe,GAAG,oBAAxB;AACA,eAAe,SAASC,SAAT,CAAmBC,SAAnB,EAA8B;AAC3C,MAAIC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAA7B,EAA2C;AACzC,WAAOH,SAAP;AACD;;AAED,SAAOH,QAAQ,CAAC,EAAD,EAAKG,SAAL,EAAgB;AAC7B,KAACF,eAAD,GAAmBM,KAAK,IAAI;AAC1B,YAAMC,gBAAgB,GAAGC,MAAM,CAACC,IAAP,CAAYH,KAAZ,EAAmBI,MAAnB,CAA0BC,IAAI,IAAI,CAACT,SAAS,CAACU,cAAV,CAAyBD,IAAzB,CAAnC,CAAzB;;AAEA,UAAIJ,gBAAgB,CAACM,MAAjB,GAA0B,CAA9B,EAAiC;AAC/B,eAAO,IAAIC,KAAJ,CAAW,0CAAyCP,gBAAgB,CAACQ,GAAjB,CAAqBJ,IAAI,IAAK,KAAIA,IAAK,IAAvC,EAA4CK,IAA5C,CAAiD,IAAjD,CAAuD,uBAA3G,CAAP;AACD;;AAED,aAAO,IAAP;AACD;AAT4B,GAAhB,CAAf;AAWD","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.\nconst specialProperty = 'exact-prop: \\u200b';\nexport default function exactProp(propTypes) {\n  if (process.env.NODE_ENV === 'production') {\n    return propTypes;\n  }\n\n  return _extends({}, propTypes, {\n    [specialProperty]: props => {\n      const unsupportedProps = Object.keys(props).filter(prop => !propTypes.hasOwnProperty(prop));\n\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\n      return null;\n    }\n  });\n}"]},"metadata":{},"sourceType":"module"}