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\", \"TransitionComponent\", \"transitionDuration\", \"TransitionProps\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport styled from '../styles/styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport Collapse from '../Collapse';\nimport StepperContext from '../Stepper/StepperContext';\nimport StepContext from '../Step/StepContext';\nimport { getStepContentUtilityClass } from './stepContentClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n last\n } = ownerState;\n const slots = {\n root: ['root', last && 'last'],\n transition: ['transition']\n };\n return composeClasses(slots, getStepContentUtilityClass, classes);\n};\nconst StepContentRoot = styled('div', {\n name: 'MuiStepContent',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.last && styles.last];\n }\n})(({\n ownerState,\n theme\n}) => _extends({\n marginLeft: 12,\n // half icon\n paddingLeft: 8 + 12,\n // margin + half icon\n paddingRight: 8,\n borderLeft: theme.vars ? `1px solid ${theme.vars.palette.StepContent.border}` : `1px solid ${theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[600]}`\n}, ownerState.last && {\n borderLeft: 'none'\n}));\nconst StepContentTransition = styled(Collapse, {\n name: 'MuiStepContent',\n slot: 'Transition',\n overridesResolver: (props, styles) => styles.transition\n})({});\nconst StepContent = /*#__PURE__*/React.forwardRef(function StepContent(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiStepContent'\n });\n const {\n children,\n className,\n TransitionComponent = Collapse,\n transitionDuration: transitionDurationProp = 'auto',\n TransitionProps\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const {\n orientation\n } = React.useContext(StepperContext);\n const {\n active,\n last,\n expanded\n } = React.useContext(StepContext);\n const ownerState = _extends({}, props, {\n last\n });\n const classes = useUtilityClasses(ownerState);\n if (process.env.NODE_ENV !== 'production') {\n if (orientation !== 'vertical') {\n console.error('MUI: <StepContent /> is only designed for use with the vertical stepper.');\n }\n }\n let transitionDuration = transitionDurationProp;\n if (transitionDurationProp === 'auto' && !TransitionComponent.muiSupportAuto) {\n transitionDuration = undefined;\n }\n return /*#__PURE__*/_jsx(StepContentRoot, _extends({\n className: clsx(classes.root, className),\n ref: ref,\n ownerState: ownerState\n }, other, {\n children: /*#__PURE__*/_jsx(StepContentTransition, _extends({\n as: TransitionComponent,\n in: active || expanded,\n className: classes.transition,\n ownerState: ownerState,\n timeout: transitionDuration,\n unmountOnExit: true\n }, TransitionProps, {\n children: children\n }))\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? StepContent.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The component used for the transition.\n * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.\n * @default Collapse\n */\n TransitionComponent: PropTypes.elementType,\n /**\n * Adjust the duration of the content expand transition.\n * Passed as a prop to the transition component.\n *\n * Set to 'auto' to automatically calculate transition time based on height.\n * @default 'auto'\n */\n transitionDuration: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })]),\n /**\n * Props applied to the transition element.\n * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.\n */\n TransitionProps: PropTypes.object\n} : void 0;\nexport default StepContent;","map":{"version":3,"names":["_objectWithoutPropertiesLoose","_extends","_excluded","React","PropTypes","clsx","composeClasses","styled","useDefaultProps","Collapse","StepperContext","StepContext","getStepContentUtilityClass","jsx","_jsx","useUtilityClasses","ownerState","classes","last","slots","root","transition","StepContentRoot","name","slot","overridesResolver","props","styles","theme","marginLeft","paddingLeft","paddingRight","borderLeft","vars","palette","StepContent","border","mode","grey","StepContentTransition","forwardRef","inProps","ref","children","className","TransitionComponent","transitionDuration","transitionDurationProp","TransitionProps","other","orientation","useContext","active","expanded","process","env","NODE_ENV","console","error","muiSupportAuto","undefined","as","in","timeout","unmountOnExit","propTypes","node","object","string","sx","oneOfType","arrayOf","func","bool","elementType","oneOf","number","shape","appear","enter","exit"],"sources":["/home/gnx/Desktop/ETB/ETB-FrontEnd/node_modules/@mui/material/StepContent/StepContent.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\", \"TransitionComponent\", \"transitionDuration\", \"TransitionProps\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport styled from '../styles/styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport Collapse from '../Collapse';\nimport StepperContext from '../Stepper/StepperContext';\nimport StepContext from '../Step/StepContext';\nimport { getStepContentUtilityClass } from './stepContentClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n last\n } = ownerState;\n const slots = {\n root: ['root', last && 'last'],\n transition: ['transition']\n };\n return composeClasses(slots, getStepContentUtilityClass, classes);\n};\nconst StepContentRoot = styled('div', {\n name: 'MuiStepContent',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.last && styles.last];\n }\n})(({\n ownerState,\n theme\n}) => _extends({\n marginLeft: 12,\n // half icon\n paddingLeft: 8 + 12,\n // margin + half icon\n paddingRight: 8,\n borderLeft: theme.vars ? `1px solid ${theme.vars.palette.StepContent.border}` : `1px solid ${theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[600]}`\n}, ownerState.last && {\n borderLeft: 'none'\n}));\nconst StepContentTransition = styled(Collapse, {\n name: 'MuiStepContent',\n slot: 'Transition',\n overridesResolver: (props, styles) => styles.transition\n})({});\nconst StepContent = /*#__PURE__*/React.forwardRef(function StepContent(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiStepContent'\n });\n const {\n children,\n className,\n TransitionComponent = Collapse,\n transitionDuration: transitionDurationProp = 'auto',\n TransitionProps\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const {\n orientation\n } = React.useContext(StepperContext);\n const {\n active,\n last,\n expanded\n } = React.useContext(StepContext);\n const ownerState = _extends({}, props, {\n last\n });\n const classes = useUtilityClasses(ownerState);\n if (process.env.NODE_ENV !== 'production') {\n if (orientation !== 'vertical') {\n console.error('MUI: <StepContent /> is only designed for use with the vertical stepper.');\n }\n }\n let transitionDuration = transitionDurationProp;\n if (transitionDurationProp === 'auto' && !TransitionComponent.muiSupportAuto) {\n transitionDuration = undefined;\n }\n return /*#__PURE__*/_jsx(StepContentRoot, _extends({\n className: clsx(classes.root, className),\n ref: ref,\n ownerState: ownerState\n }, other, {\n children: /*#__PURE__*/_jsx(StepContentTransition, _extends({\n as: TransitionComponent,\n in: active || expanded,\n className: classes.transition,\n ownerState: ownerState,\n timeout: transitionDuration,\n unmountOnExit: true\n }, TransitionProps, {\n children: children\n }))\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? StepContent.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The component used for the transition.\n * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.\n * @default Collapse\n */\n TransitionComponent: PropTypes.elementType,\n /**\n * Adjust the duration of the content expand transition.\n * Passed as a prop to the transition component.\n *\n * Set to 'auto' to automatically calculate transition time based on height.\n * @default 'auto'\n */\n transitionDuration: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })]),\n /**\n * Props applied to the transition element.\n * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.\n */\n TransitionProps: PropTypes.object\n} : void 0;\nexport default StepContent;"],"mappings":"AAAA,YAAY;;AAEZ,OAAOA,6BAA6B,MAAM,yDAAyD;AACnG,OAAOC,QAAQ,MAAM,oCAAoC;AACzD,MAAMC,SAAS,GAAG,CAAC,UAAU,EAAE,WAAW,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,iBAAiB,CAAC;AAC3G,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,IAAI,MAAM,MAAM;AACvB,OAAOC,cAAc,MAAM,2BAA2B;AACtD,OA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AAC+D,MAAM,EAAE/D,SAAS,CAACqE,IAAI,CAAC,CAAC,CAAC,EAAErE,SAAS,CAACoE,IAAI,EAAEpE,SAAS,CAAC+D,MAAM,CAAC,CAAC;EACvJ;AACF;AACA;AACA;AACA;EACEtB,mBAAmB,EAAEzC,SAAS,CAACsE,WAAW;EAC1C;AACF;AACA;AACA;AACA;AACA;AACA;EACE5B,kBAAkB,EAAE1C,SAAS,CAACkE,SAAS,CAAC,CAAClE,SAAS,CAACuE,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,EAAEvE,SAAS,CAACwE,MAAM,EAAExE,SAAS,CAACyE,KAAK,CAAC;IACpGC,MAAM,EAAE1E,SAAS,CAACwE,MAAM;IACxBG,KAAK,EAAE3E,SAAS,CAACwE,MAAM;IACvBI,IAAI,EAAE5E,SAAS,CAACwE;EAClB,CAAC,CAAC,CAAC,CAAC;EACJ;AACF;AACA;AACA;EACE5B,eAAe,EAAE5C,SAAS,CAAC+D;AAC7B,CAAC,GAAG,KAAK,CAAC;AACV,eAAehC,WAAW","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} |