1 line
16 KiB
JSON
1 line
16 KiB
JSON
{"ast":null,"code":"'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"children\", \"className\", \"only\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport composeClasses from '@mui/utils/composeClasses';\nimport capitalize from '../utils/capitalize';\nimport styled from '../styles/styled';\nimport useTheme from '../styles/useTheme';\nimport { getHiddenCssUtilityClass } from './hiddenCssClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n breakpoints\n } = ownerState;\n const slots = {\n root: ['root', ...breakpoints.map(({\n breakpoint,\n dir\n }) => {\n return dir === 'only' ? `${dir}${capitalize(breakpoint)}` : `${breakpoint}${capitalize(dir)}`;\n })]\n };\n return composeClasses(slots, getHiddenCssUtilityClass, classes);\n};\nconst HiddenCssRoot = styled('div', {\n name: 'PrivateHiddenCss',\n slot: 'Root'\n})(({\n theme,\n ownerState\n}) => {\n const hidden = {\n display: 'none'\n };\n return _extends({}, ownerState.breakpoints.map(({\n breakpoint,\n dir\n }) => {\n if (dir === 'only') {\n return {\n [theme.breakpoints.only(breakpoint)]: hidden\n };\n }\n return dir === 'up' ? {\n [theme.breakpoints.up(breakpoint)]: hidden\n } : {\n [theme.breakpoints.down(breakpoint)]: hidden\n };\n }).reduce((r, o) => {\n Object.keys(o).forEach(k => {\n r[k] = o[k];\n });\n return r;\n }, {}));\n});\n\n/**\n * @ignore - internal component.\n */\nfunction HiddenCss(props) {\n const {\n children,\n className,\n only\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const theme = useTheme();\n if (process.env.NODE_ENV !== 'production') {\n const unknownProps = Object.keys(other).filter(propName => {\n const isUndeclaredBreakpoint = !theme.breakpoints.keys.some(breakpoint => {\n return `${breakpoint}Up` === propName || `${breakpoint}Down` === propName;\n });\n return !['classes', 'theme', 'isRtl', 'sx'].includes(propName) && isUndeclaredBreakpoint;\n });\n if (unknownProps.length > 0) {\n console.error(`MUI: Unsupported props received by \\`<Hidden implementation=\"css\" />\\`: ${unknownProps.join(', ')}. Did you forget to wrap this component in a ThemeProvider declaring these breakpoints?`);\n }\n }\n const breakpoints = [];\n for (let i = 0; i < theme.breakpoints.keys.length; i += 1) {\n const breakpoint = theme.breakpoints.keys[i];\n const breakpointUp = other[`${breakpoint}Up`];\n const breakpointDown = other[`${breakpoint}Down`];\n if (breakpointUp) {\n breakpoints.push({\n breakpoint,\n dir: 'up'\n });\n }\n if (breakpointDown) {\n breakpoints.push({\n breakpoint,\n dir: 'down'\n });\n }\n }\n if (only) {\n const onlyBreakpoints = Array.isArray(only) ? only : [only];\n onlyBreakpoints.forEach(breakpoint => {\n breakpoints.push({\n breakpoint,\n dir: 'only'\n });\n });\n }\n const ownerState = _extends({}, props, {\n breakpoints\n });\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(HiddenCssRoot, {\n className: clsx(classes.root, className),\n ownerState: ownerState,\n children: children\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? HiddenCss.propTypes = {\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * Specify which implementation to use. 'js' is the default, 'css' works better for\n * server-side rendering.\n */\n implementation: PropTypes.oneOf(['js', 'css']),\n /**\n * If `true`, screens this size and down are hidden.\n */\n lgDown: PropTypes.bool,\n /**\n * If `true`, screens this size and up are hidden.\n */\n lgUp: PropTypes.bool,\n /**\n * If `true`, screens this size and down are hidden.\n */\n mdDown: PropTypes.bool,\n /**\n * If `true`, screens this size and up are hidden.\n */\n mdUp: PropTypes.bool,\n /**\n * Hide the given breakpoint(s).\n */\n only: PropTypes.oneOfType([PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']), PropTypes.arrayOf(PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']))]),\n /**\n * If `true`, screens this size and down are hidden.\n */\n smDown: PropTypes.bool,\n /**\n * If `true`, screens this size and up are hidden.\n */\n smUp: PropTypes.bool,\n /**\n * If `true`, screens this size and down are hidden.\n */\n xlDown: PropTypes.bool,\n /**\n * If `true`, screens this size and up are hidden.\n */\n xlUp: PropTypes.bool,\n /**\n * If `true`, screens this size and down are hidden.\n */\n xsDown: PropTypes.bool,\n /**\n * If `true`, screens this size and up are hidden.\n */\n xsUp: PropTypes.bool\n} : void 0;\nexport default HiddenCss;","map":{"version":3,"names":["_objectWithoutPropertiesLoose","_extends","_excluded","React","clsx","PropTypes","composeClasses","capitalize","styled","useTheme","getHiddenCssUtilityClass","jsx","_jsx","useUtilityClasses","ownerState","classes","breakpoints","slots","root","map","breakpoint","dir","HiddenCssRoot","name","slot","theme","hidden","display","only","up","down","reduce","r","o","Object","keys","forEach","k","HiddenCss","props","children","className","other","process","env","NODE_ENV","unknownProps","filter","propName","isUndeclaredBreakpoint","some","includes","length","console","error","join","i","breakpointUp","breakpointDown","push","onlyBreakpoints","Array","isArray","propTypes","node","string","implementation","oneOf","lgDown","bool","lgUp","mdDown","mdUp","oneOfType","arrayOf","smDown","smUp","xlDown","xlUp","xsDown","xsUp"],"sources":["/home/gnx/Desktop/ETB/ETB-FrontEnd/node_modules/@mui/material/Hidden/HiddenCss.js"],"sourcesContent":["'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"children\", \"className\", \"only\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport composeClasses from '@mui/utils/composeClasses';\nimport capitalize from '../utils/capitalize';\nimport styled from '../styles/styled';\nimport useTheme from '../styles/useTheme';\nimport { getHiddenCssUtilityClass } from './hiddenCssClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n breakpoints\n } = ownerState;\n const slots = {\n root: ['root', ...breakpoints.map(({\n breakpoint,\n dir\n }) => {\n return dir === 'only' ? `${dir}${capitalize(breakpoint)}` : `${breakpoint}${capitalize(dir)}`;\n })]\n };\n return composeClasses(slots, getHiddenCssUtilityClass, classes);\n};\nconst HiddenCssRoot = styled('div', {\n name: 'PrivateHiddenCss',\n slot: 'Root'\n})(({\n theme,\n ownerState\n}) => {\n const hidden = {\n display: 'none'\n };\n return _extends({}, ownerState.breakpoints.map(({\n breakpoint,\n dir\n }) => {\n if (dir === 'only') {\n return {\n [theme.breakpoints.only(breakpoint)]: hidden\n };\n }\n return dir === 'up' ? {\n [theme.breakpoints.up(breakpoint)]: hidden\n } : {\n [theme.breakpoints.down(breakpoint)]: hidden\n };\n }).reduce((r, o) => {\n Object.keys(o).forEach(k => {\n r[k] = o[k];\n });\n return r;\n }, {}));\n});\n\n/**\n * @ignore - internal component.\n */\nfunction HiddenCss(props) {\n const {\n children,\n className,\n only\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const theme = useTheme();\n if (process.env.NODE_ENV !== 'production') {\n const unknownProps = Object.keys(other).filter(propName => {\n const isUndeclaredBreakpoint = !theme.breakpoints.keys.some(breakpoint => {\n return `${breakpoint}Up` === propName || `${breakpoint}Down` === propName;\n });\n return !['classes', 'theme', 'isRtl', 'sx'].includes(propName) && isUndeclaredBreakpoint;\n });\n if (unknownProps.length > 0) {\n console.error(`MUI: Unsupported props received by \\`<Hidden implementation=\"css\" />\\`: ${unknownProps.join(', ')}. Did you forget to wrap this component in a ThemeProvider declaring these breakpoints?`);\n }\n }\n const breakpoints = [];\n for (let i = 0; i < theme.breakpoints.keys.length; i += 1) {\n const breakpoint = theme.breakpoints.keys[i];\n const breakpointUp = other[`${breakpoint}Up`];\n const breakpointDown = other[`${breakpoint}Down`];\n if (breakpointUp) {\n breakpoints.push({\n breakpoint,\n dir: 'up'\n });\n }\n if (breakpointDown) {\n breakpoints.push({\n breakpoint,\n dir: 'down'\n });\n }\n }\n if (only) {\n const onlyBreakpoints = Array.isArray(only) ? only : [only];\n onlyBreakpoints.forEach(breakpoint => {\n breakpoints.push({\n breakpoint,\n dir: 'only'\n });\n });\n }\n const ownerState = _extends({}, props, {\n breakpoints\n });\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(HiddenCssRoot, {\n className: clsx(classes.root, className),\n ownerState: ownerState,\n children: children\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? HiddenCss.propTypes = {\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * Specify which implementation to use. 'js' is the default, 'css' works better for\n * server-side rendering.\n */\n implementation: PropTypes.oneOf(['js', 'css']),\n /**\n * If `true`, screens this size and down are hidden.\n */\n lgDown: PropTypes.bool,\n /**\n * If `true`, screens this size and up are hidden.\n */\n lgUp: PropTypes.bool,\n /**\n * If `true`, screens this size and down are hidden.\n */\n mdDown: PropTypes.bool,\n /**\n * If `true`, screens this size and up are hidden.\n */\n mdUp: PropTypes.bool,\n /**\n * Hide the given breakpoint(s).\n */\n only: PropTypes.oneOfType([PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']), PropTypes.arrayOf(PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']))]),\n /**\n * If `true`, screens this size and down are hidden.\n */\n smDown: PropTypes.bool,\n /**\n * If `true`, screens this size and up are hidden.\n */\n smUp: PropTypes.bool,\n /**\n * If `true`, screens this size and down are hidden.\n */\n xlDown: PropTypes.bool,\n /**\n * If `true`, screens this size and up are hidden.\n */\n xlUp: PropTypes.bool,\n /**\n * If `true`, screens this size and down are hidden.\n */\n xsDown: PropTypes.bool,\n /**\n * If `true`, screens this size and up are hidden.\n */\n xsUp: PropTypes.bool\n} : void 0;\nexport default HiddenCss;"],"mappings":"AAAA,YAAY;;AAEZ,OAAOA,6BAA6B,MAAM,yDAAyD;AACnG,OAAOC,QAAQ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,IAAI;EACpB;AACF;AACA;EACEQ,MAAM,EAAExE,SAAS,CAACgE,IAAI;EACtB;AACF;AACA;EACES,IAAI,EAAEzE,SAAS,CAACgE,IAAI;EACpB;AACF;AACA;EACEU,MAAM,EAAE1E,SAAS,CAACgE,IAAI;EACtB;AACF;AACA;EACEW,IAAI,EAAE3E,SAAS,CAACgE;AAClB,CAAC,GAAG,KAAK,CAAC;AACV,eAAe/B,SAAS","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} |