mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
1 line
3.2 KiB
JSON
1 line
3.2 KiB
JSON
{"ast":null,"code":"import _defineProperty from \"@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// Only exported for test purposes.\n\nexport var 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":["/app/node_modules/@material-ui/utils/esm/exactProp.js"],"names":["_defineProperty","_extends","specialProperty","exactProp","propTypes","process","env","NODE_ENV","props","unsupportedProps","Object","keys","filter","prop","hasOwnProperty","length","Error","concat","map","join"],"mappings":"AAAA,OAAOA,eAAP,MAA4B,2CAA5B;AACA,OAAOC,QAAP,MAAqB,oCAArB,C,CACA;AACA;AACA;AACA;;AACA,OAAO,IAAIC,eAAe,GAAG,oBAAtB;AACP,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,EAAgBJ,eAAe,CAAC,EAAD,EAAKE,eAAL,EAAsB,UAAUM,KAAV,EAAiB;AACnF,QAAIC,gBAAgB,GAAGC,MAAM,CAACC,IAAP,CAAYH,KAAZ,EAAmBI,MAAnB,CAA0B,UAAUC,IAAV,EAAgB;AAC/D,aAAO,CAACT,SAAS,CAACU,cAAV,CAAyBD,IAAzB,CAAR;AACD,KAFsB,CAAvB;;AAIA,QAAIJ,gBAAgB,CAACM,MAAjB,GAA0B,CAA9B,EAAiC;AAC/B,aAAO,IAAIC,KAAJ,CAAU,0CAA0CC,MAA1C,CAAiDR,gBAAgB,CAACS,GAAjB,CAAqB,UAAUL,IAAV,EAAgB;AACrG,eAAO,IAAII,MAAJ,CAAWJ,IAAX,EAAiB,GAAjB,CAAP;AACD,OAFiE,EAE/DM,IAF+D,CAE1D,IAF0D,CAAjD,EAEF,uBAFE,CAAV,CAAP;AAGD;;AAED,WAAO,IAAP;AACD,GAZ6C,CAA/B,CAAf;AAaD","sourcesContent":["import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _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// Only exported for test purposes.\nexport var 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}"]},"metadata":{},"sourceType":"module"} |