mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 09:25:15 +00:00
1 line
6.5 KiB
JSON
1 line
6.5 KiB
JSON
|
{"ast":null,"code":"import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport PropTypes from 'prop-types';\nimport { chainPropTypes } from '@material-ui/utils';\nimport merge from './merge';\n\nfunction omit(input, fields) {\n var output = {};\n Object.keys(input).forEach(function (prop) {\n if (fields.indexOf(prop) === -1) {\n output[prop] = input[prop];\n }\n });\n return output;\n}\n\nvar warnedOnce = false;\n\nfunction styleFunctionSx(styleFunction) {\n var newStyleFunction = function newStyleFunction(props) {\n var output = styleFunction(props);\n\n if (props.css) {\n return _extends({}, merge(output, styleFunction(_extends({\n theme: props.theme\n }, props.css))), omit(props.css, [styleFunction.filterProps]));\n }\n\n if (props.sx) {\n return _extends({}, merge(output, styleFunction(_extends({\n theme: props.theme\n }, props.sx))), omit(props.sx, [styleFunction.filterProps]));\n }\n\n return output;\n };\n\n newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? _extends({}, styleFunction.propTypes, {\n css: chainPropTypes(PropTypes.object, function (props) {\n if (!warnedOnce && props.css !== undefined) {\n warnedOnce = true;\n return new Error('Material-UI: The `css` prop is deprecated, please use the `sx` prop instead.');\n }\n\n return null;\n }),\n sx: PropTypes.object\n }) : {};\n newStyleFunction.filterProps = ['css', 'sx'].concat(_toConsumableArray(styleFunction.filterProps));\n return newStyleFunction;\n}\n/**\r\n *\r\n * @deprecated\r\n * The css style function is deprecated. Use the `styleFunctionSx` instead.\r\n */\n\n\nexport function css(styleFunction) {\n if (process.env.NODE_ENV !== 'production') {\n console.warn('Material-UI: The `css` function is deprecated. Use the `styleFunctionSx` instead.');\n }\n\n return styleFunctionSx(styleFunction);\n}\nexport default styleFunctionSx;","map":{"version":3,"sources":["/app/node_modules/@material-ui/system/esm/styleFunctionSx.js"],"names":["_toConsumableArray","_extends","PropTypes","chainPropTypes","merge","omit","input","fields","output","Object","keys","forEach","prop","indexOf","warnedOnce","styleFunctionSx","styleFunction","newStyleFunction","props","css","theme","filterProps","sx","propTypes","process","env","NODE_ENV","object","undefined","Error","concat","console","warn"],"mappings":"AAAA,OAAOA,kBAAP,MAA+B,8CAA/B;AACA,OAAOC,QAAP,MAAqB,oCAArB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,SAASC,cAAT,QAA+B,oBAA/B;AACA,OAAOC,KAAP,MAAkB,SAAlB;;AAEA,SAASC,IAAT,CAAcC,KAAd,EAAqBC,MAArB,EAA6B;AAC3B,MAAIC,MAAM,GAAG,EAAb;AACAC,EAAAA,MAAM,CAACC,IAAP,CAAYJ,KAAZ,EAAmBK,OAAnB,CAA2B,UAAUC,IAAV,EAAgB;AACzC,QAAIL,MAAM,CAACM,OAAP,CAAeD,IAAf,MAAyB,CAAC,CAA9B,EAAiC;AAC/BJ,MAAAA,MAAM,CAACI,IAAD,CAAN,GAAeN,KAAK,CAACM,IAAD,CAApB;AACD;AACF,GAJD;AAKA,SAAOJ,MAAP;AACD;;AAED,IAAIM,UAAU,GAAG,KAAjB;;AAEA,SAASC,eAAT,CAAyBC,aAAzB,EAAwC;AACtC,MAAIC,gBAAgB,GAAG,SAASA,gBAAT,CAA0BC,KAA1B,EAAiC;AACtD,QAAIV,MAAM,GAAGQ,aAAa,CAACE,KAAD,CAA1B;;AAEA,QAAIA,KAAK,CAACC,GAAV,EAAe;AACb,aAAOlB,QAAQ,CAAC,EAAD,EAAKG,KAAK,CAACI,MAAD,EAASQ,aAAa,CAACf,QAAQ,CAAC;AACvDmB,QAAAA,KAAK,EAAEF,KAAK,CAACE;AAD0C,OAAD,EAErDF,KAAK,CAACC,GAF+C,CAAT,CAAtB,CAAV,EAEEd,IAAI,CAACa,KAAK,CAACC,GAAP,EAAY,CAACH,aAAa,CAACK,WAAf,CAAZ,CAFN,CAAf;AAGD;;AAED,QAAIH,KAAK,CAACI,EAAV,EAAc;A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