GoScrobble/web/node_modules/.cache/babel-loader/7817c9ab3dc517b1015cdfa56f2e48b2.json

1 line
8.3 KiB
JSON
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\"; // Sorted ASC by size. That's important.\n// It can't be configured as it's used statically for propTypes.\n\nexport var keys = ['xs', 'sm', 'md', 'lg', 'xl']; // Keep in mind that @media is inclusive by the CSS specification.\n\nexport default function createBreakpoints(breakpoints) {\n var _breakpoints$values = breakpoints.values,\n values = _breakpoints$values === void 0 ? {\n xs: 0,\n sm: 600,\n md: 960,\n lg: 1280,\n xl: 1920\n } : _breakpoints$values,\n _breakpoints$unit = breakpoints.unit,\n unit = _breakpoints$unit === void 0 ? 'px' : _breakpoints$unit,\n _breakpoints$step = breakpoints.step,\n step = _breakpoints$step === void 0 ? 5 : _breakpoints$step,\n other = _objectWithoutProperties(breakpoints, [\"values\", \"unit\", \"step\"]);\n\n function up(key) {\n var value = typeof values[key] === 'number' ? values[key] : key;\n return \"@media (min-width:\".concat(value).concat(unit, \")\");\n }\n\n function down(key) {\n var endIndex = keys.indexOf(key) + 1;\n var upperbound = values[keys[endIndex]];\n\n if (endIndex === keys.length) {\n // xl down applies to all sizes\n return up('xs');\n }\n\n var value = typeof upperbound === 'number' && endIndex > 0 ? upperbound : key;\n return \"@media (max-width:\".concat(value - step / 100).concat(unit, \")\");\n }\n\n function between(start, end) {\n var endIndex = keys.indexOf(end);\n\n if (endIndex === keys.length - 1) {\n return up(start);\n }\n\n return \"@media (min-width:\".concat(typeof values[start] === 'number' ? values[start] : start).concat(unit, \") and \") + \"(max-width:\".concat((endIndex !== -1 && typeof values[keys[endIndex + 1]] === 'number' ? values[keys[endIndex + 1]] : end) - step / 100).concat(unit, \")\");\n }\n\n function only(key) {\n return between(key, key);\n }\n\n var warnedOnce = false;\n\n function width(key) {\n if (process.env.NODE_ENV !== 'production') {\n if (!warnedOnce) {\n warnedOnce = true;\n console.warn([\"Material-UI: The `theme.breakpoints.width` utility is deprecated because it's redundant.\", 'Use the `theme.breakpoints.values` instead.'].join('\\n'));\n }\n }\n\n return values[key];\n }\n\n return _extends({\n keys: keys,\n values: values,\n up: up,\n down: down,\n between: between,\n only: only,\n width: width\n }, other);\n}","map":{"version":3,"sources":["/app/node_modules/@material-ui/core/esm/styles/createBreakpoints.js"],"names":["_extends","_objectWithoutProperties","keys","createBreakpoints","breakpoints","_breakpoints$values","values","xs","sm","md","lg","xl","_breakpoints$unit","unit","_breakpoints$step","step","other","up","key","value","concat","down","endIndex","indexOf","upperbound","length","between","start","end","only","warnedOnce","width","process","env","NODE_ENV","console","warn","join"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,oCAArB;AACA,OAAOC,wBAAP,MAAqC,oDAArC,C,CACA;AACA;;AACA,OAAO,IAAIC,IAAI,GAAG,CAAC,IAAD,EAAO,IAAP,EAAa,IAAb,EAAmB,IAAnB,EAAyB,IAAzB,CAAX,C,CAA2C;;AAElD,eAAe,SAASC,iBAAT,CAA2BC,WAA3B,EAAwC;AACrD,MAAIC,mBAAmB,GAAGD,WAAW,CAACE,MAAtC;AAAA,MACIA,MAAM,GAAGD,mBAAmB,KAAK,KAAK,CAA7B,GAAiC;AAC5CE,IAAAA,EAAE,EAAE,CADwC;AAE5CC,IAAAA,EAAE,EAAE,GAFwC;AAG5CC,IAAAA,EAAE,EAAE,GAHwC;AAI5CC,IAAAA,EAAE,EAAE,IAJwC;AAK5CC,IAAAA,EAAE,EAAE;AALwC,GAAjC,GAMTN,mBAPJ;AAAA,MAQIO,iBAAiB,GAAGR,WAAW,CAACS,IARpC;AAAA,MASIA,IAAI,GAAGD,iBAAiB,KAAK,KAAK,CAA3B,GAA+B,IAA/B,GAAsCA,iBATjD;AAAA,MAUIE,iBAAiB,GAAGV,WAAW,CAACW,IAVpC;AAAA,MAWIA,IAAI,GAAGD,iBAAiB,KAAK,KAAK,CAA3B,GAA+B,CAA/B,GAAmCA,iBAX9C;AAAA,MAYIE,KAAK,GAAGf,wBAAwB,CAACG,WAAD,EAAc,CAAC,QAAD,EAAW,MAAX,EAAmB,MAAnB,CAAd,CAZpC;;AAcA,WAASa,EAAT,CAAYC,GAAZ,EAAiB;AACf,QAAIC,KAAK,GAAG,OAAOb,MAAM,CAACY,GAAD,CAAb,KAAuB,QAAvB,GAAkCZ,MAAM,CAACY,GAAD,CAAxC,GAAgDA,GAA5D;AACA,WAAO,qBAAqBE,MAArB,CAA4BD,KAA5B,EAAmCC,MAAnC,CAA0CP,IAA1C,EAAgD,GAAhD,CAA