{"ast":null,"code":"import _defineProperty from \"C:/laragon/www/iot.mksolusi/DriverOPCDA/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport _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\nvar 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, _defineProperty({}, specialProperty, function (props) {\n    var unsupportedProps = Object.keys(props).filter(function (prop) {\n      return !propTypes.hasOwnProperty(prop);\n    });\n\n    if (unsupportedProps.length > 0) {\n      return new Error(\"The following props are not supported: \".concat(unsupportedProps.map(function (prop) {\n        return \"`\".concat(prop, \"`\");\n      }).join(', '), \". Please remove them.\"));\n    }\n\n    return null;\n  }));\n}","map":{"version":3,"sources":["C:/laragon/www/iot.mksolusi/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,IAAMC,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,sBACZF,eADY,EACM,UAAAM,KAAK,EAAI;AAC1B,QAAMC,gBAAgB,GAAGC,MAAM,CAACC,IAAP,CAAYH,KAAZ,EAAmBI,MAAnB,CAA0B,UAAAC,IAAI;AAAA,aAAI,CAACT,SAAS,CAACU,cAAV,CAAyBD,IAAzB,CAAL;AAAA,KAA9B,CAAzB;;AAEA,QAAIJ,gBAAgB,CAACM,MAAjB,GAA0B,CAA9B,EAAiC;AAC/B,aAAO,IAAIC,KAAJ,kDAAoDP,gBAAgB,CAACQ,GAAjB,CAAqB,UAAAJ,IAAI;AAAA,0BAASA,IAAT;AAAA,OAAzB,EAA4CK,IAA5C,CAAiD,IAAjD,CAApD,2BAAP;AACD;;AAED,WAAO,IAAP;AACD,GATY,EAAf;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"}