diff --git a/.gitignore b/.gitignore index 00efe3bd..cb3c7326 100644 --- a/.gitignore +++ b/.gitignore @@ -21,19 +21,15 @@ storage/proxies /public/assets/bootstrap-tagsinput/ /public/assets/fonts/ /public/assets/typeahead/ -/public/assets/__common__.js -/public/assets/index.js public/assets/index.js.map public/assets/__common__.js.map public/assets/images/ public/assets/svg/ public/assets/css/index.css.map -public/assets/css/index.css public/assets/simplemde/ /public/assets/pwstrength-bootstrap/ /public/assets/sweetalert2/ /public/assets/urijs -/public/assets/uri.js /public/assets/clipboard-copy-element/ _intellij_phpdebug_validator.php /public/assets/chosen-js @@ -43,26 +39,8 @@ model.sql .phpunit.result.cache !/public/web.config /public/assets/dist/ -/public/assets/login.js -/public/assets/css/login.css -/public/assets/home.js -/public/assets/css/home.css -/public/assets/signup.js -/public/assets/css/signup.css -/public/assets/emailVerification.js -/public/assets/css/emailVerification.css -/public/assets/forgotPassword.js -/public/assets/css/forgotPassword.css -/public/assets/resetPassword.js -/public/assets/css/resetPassword.css -/public/assets/setPassword.js -/public/assets/css/setPassword.css -/public/assets/css/consent.css -/public/assets/consent.js -/public/assets/css/editUser.css -/public/assets/editUser.js -/public/assets/css/profile.css -/public/assets/profile.js +/public/assets/css/*.css +/public/assets/*.js /public/assets/*.svg /public/assets/*.ttf /public/assets/*.eot diff --git a/app/libs/Auth/SocialLoginProviders.php b/app/libs/Auth/SocialLoginProviders.php index 0e45bca7..2d631fac 100644 --- a/app/libs/Auth/SocialLoginProviders.php +++ b/app/libs/Auth/SocialLoginProviders.php @@ -28,8 +28,8 @@ final class SocialLoginProviders const ValidProviders = [ self::Facebook, - self::Apple, self::LinkedIn, + self::Apple, //self::Google self::OKTA, ]; diff --git a/public/assets/editClient.js b/public/assets/editClient.js deleted file mode 100644 index dee08dc6..00000000 --- a/public/assets/editClient.js +++ /dev/null @@ -1,136786 +0,0 @@ -/******/ (() => { // webpackBootstrap -/******/ var __webpack_modules__ = ({ - -/***/ "./node_modules/@material-ui/core/esm/Accordion/Accordion.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_toArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/toArray.js"); -/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/react-is/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_12__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/@material-ui/utils/esm/chainPropTypes.js"); -/* harmony import */ var _Collapse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/Collapse/Collapse.js"); -/* harmony import */ var _Paper__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/core/esm/Paper/Paper.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _AccordionContext__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/core/esm/Accordion/AccordionContext.js"); -/* harmony import */ var _utils_useControlled__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useControlled.js"); - - - - - - - - - - - - - - -var styles = function styles(theme) { - var transition = { - duration: theme.transitions.duration.shortest - }; - return { - /* Styles applied to the root element. */ - root: { - position: 'relative', - transition: theme.transitions.create(['margin'], transition), - '&:before': { - position: 'absolute', - left: 0, - top: -1, - right: 0, - height: 1, - content: '""', - opacity: 1, - backgroundColor: theme.palette.divider, - transition: theme.transitions.create(['opacity', 'background-color'], transition) - }, - '&:first-child': { - '&:before': { - display: 'none' - } - }, - '&$expanded': { - margin: '16px 0', - '&:first-child': { - marginTop: 0 - }, - '&:last-child': { - marginBottom: 0 - }, - '&:before': { - opacity: 0 - } - }, - '&$expanded + &': { - '&:before': { - display: 'none' - } - }, - '&$disabled': { - backgroundColor: theme.palette.action.disabledBackground - } - }, - - /* Styles applied to the root element if `square={false}`. */ - rounded: { - borderRadius: 0, - '&:first-child': { - borderTopLeftRadius: theme.shape.borderRadius, - borderTopRightRadius: theme.shape.borderRadius - }, - '&:last-child': { - borderBottomLeftRadius: theme.shape.borderRadius, - borderBottomRightRadius: theme.shape.borderRadius, - // Fix a rendering issue on Edge - '@supports (-ms-ime-align: auto)': { - borderBottomLeftRadius: 0, - borderBottomRightRadius: 0 - } - } - }, - - /* Styles applied to the root element if `expanded={true}`. */ - expanded: {}, - - /* Styles applied to the root element if `disabled={true}`. */ - disabled: {} - }; -}; -var Accordion = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.forwardRef(function Accordion(props, ref) { - var childrenProp = props.children, - classes = props.classes, - className = props.className, - _props$defaultExpande = props.defaultExpanded, - defaultExpanded = _props$defaultExpande === void 0 ? false : _props$defaultExpande, - _props$disabled = props.disabled, - disabled = _props$disabled === void 0 ? false : _props$disabled, - expandedProp = props.expanded, - onChange = props.onChange, - _props$square = props.square, - square = _props$square === void 0 ? false : _props$square, - _props$TransitionComp = props.TransitionComponent, - TransitionComponent = _props$TransitionComp === void 0 ? _Collapse__WEBPACK_IMPORTED_MODULE_7__["default"] : _props$TransitionComp, - TransitionProps = props.TransitionProps, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__["default"])(props, ["children", "classes", "className", "defaultExpanded", "disabled", "expanded", "onChange", "square", "TransitionComponent", "TransitionProps"]); - - var _useControlled = (0,_utils_useControlled__WEBPACK_IMPORTED_MODULE_8__["default"])({ - controlled: expandedProp, - default: defaultExpanded, - name: 'Accordion', - state: 'expanded' - }), - _useControlled2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useControlled, 2), - expanded = _useControlled2[0], - setExpandedState = _useControlled2[1]; - - var handleChange = react__WEBPACK_IMPORTED_MODULE_4__.useCallback(function (event) { - setExpandedState(!expanded); - - if (onChange) { - onChange(event, !expanded); - } - }, [expanded, onChange, setExpandedState]); - - var _React$Children$toArr = react__WEBPACK_IMPORTED_MODULE_4__.Children.toArray(childrenProp), - _React$Children$toArr2 = (0,_babel_runtime_helpers_esm_toArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_React$Children$toArr), - summary = _React$Children$toArr2[0], - children = _React$Children$toArr2.slice(1); - - var contextValue = react__WEBPACK_IMPORTED_MODULE_4__.useMemo(function () { - return { - expanded: expanded, - disabled: disabled, - toggle: handleChange - }; - }, [expanded, disabled, handleChange]); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(_Paper__WEBPACK_IMPORTED_MODULE_9__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_6__["default"])(classes.root, className, expanded && classes.expanded, disabled && classes.disabled, !square && classes.rounded), - ref: ref, - square: square - }, other), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(_AccordionContext__WEBPACK_IMPORTED_MODULE_10__["default"].Provider, { - value: contextValue - }, summary), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(TransitionComponent, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - in: expanded, - timeout: "auto" - }, TransitionProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", { - "aria-labelledby": summary.props.id, - id: summary.props['aria-controls'], - role: "region" - }, children))); -}); - true ? Accordion.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * The content of the accordion. - */ - children: (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_11__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_12___default().node.isRequired), function (props) { - var summary = react__WEBPACK_IMPORTED_MODULE_4__.Children.toArray(props.children)[0]; - - if ((0,react_is__WEBPACK_IMPORTED_MODULE_5__.isFragment)(summary)) { - return new Error("Material-UI: The Accordion doesn't accept a Fragment as a child. " + 'Consider providing an array instead.'); - } - - if (! /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.isValidElement(summary)) { - return new Error('Material-UI: Expected the first child of Accordion to be a valid element.'); - } - - return null; - }), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string), - - /** - * If `true`, expands the accordion by default. - */ - defaultExpanded: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().bool), - - /** - * If `true`, the accordion will be displayed in a disabled state. - */ - disabled: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().bool), - - /** - * If `true`, expands the accordion, otherwise collapse it. - * Setting this prop enables control over the accordion. - */ - expanded: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().bool), - - /** - * Callback fired when the expand/collapse state is changed. - * - * @param {object} event The event source of the callback. - * @param {boolean} expanded The `expanded` state of the accordion. - */ - onChange: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func), - - /** - * If `true`, rounded corners are disabled. - */ - square: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().bool), - - /** - * The component used for the collapse effect. - * [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component. - */ - TransitionComponent: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().elementType), - - /** - * Props applied to the [`Transition`](http://reactcommunity.org/react-transition-group/transition#Transition-props) element. - */ - TransitionProps: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().object) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_13__["default"])(styles, { - name: 'MuiAccordion' -})(Accordion)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Accordion/AccordionContext.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); - -/** - * @ignore - internal component. - * @type {React.Context<{} | {expanded: boolean, disabled: boolean, toggle: () => void}>} - */ - -var AccordionContext = react__WEBPACK_IMPORTED_MODULE_0__.createContext({}); - -if (true) { - AccordionContext.displayName = 'AccordionContext'; -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AccordionContext); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/AccordionDetails/AccordionDetails.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); - - - - - - -var styles = function styles(theme) { - return { - /* Styles applied to the root element. */ - root: { - display: 'flex', - padding: theme.spacing(1, 2, 2) - } - }; -}; -var AccordionDetails = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function AccordionDetails(props, ref) { - var classes = props.classes, - className = props.className, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["classes", "className"]); - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, className), - ref: ref - }, other)); -}); - true ? AccordionDetails.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * The content of the accordion details. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().string) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_5__["default"])(styles, { - name: 'MuiAccordionDetails' -})(AccordionDetails)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/AccordionSummary/AccordionSummary.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/utils/esm/chainPropTypes.js"); -/* harmony import */ var _ButtonBase__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/ButtonBase/ButtonBase.js"); -/* harmony import */ var _IconButton__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/IconButton/IconButton.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _Accordion_AccordionContext__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/Accordion/AccordionContext.js"); - - - -/* eslint-disable jsx-a11y/aria-role */ - - - - - - - - -var styles = function styles(theme) { - var transition = { - duration: theme.transitions.duration.shortest - }; - return { - /* Styles applied to the root element. */ - root: { - display: 'flex', - minHeight: 8 * 6, - transition: theme.transitions.create(['min-height', 'background-color'], transition), - padding: theme.spacing(0, 2), - '&:hover:not($disabled)': { - cursor: 'pointer' - }, - '&$expanded': { - minHeight: 64 - }, - '&$focused, &$focusVisible': { - backgroundColor: theme.palette.action.focus - }, - '&$disabled': { - opacity: theme.palette.action.disabledOpacity - } - }, - - /* Pseudo-class applied to the root element, children wrapper element and `IconButton` component if `expanded={true}`. */ - expanded: {}, - - /* Pseudo-class applied to the ButtonBase root element if the button is keyboard focused. */ - focused: {}, - - /* Pseudo-class applied to the ButtonBase root element if the button is keyboard focused. */ - focusVisible: {}, - - /* Pseudo-class applied to the root element if `disabled={true}`. */ - disabled: {}, - - /* Styles applied to the children wrapper element. */ - content: { - display: 'flex', - flexGrow: 1, - transition: theme.transitions.create(['margin'], transition), - margin: '12px 0', - '&$expanded': { - margin: '20px 0' - } - }, - - /* Styles applied to the `IconButton` component when `expandIcon` is supplied. */ - expandIcon: { - transform: 'rotate(0deg)', - transition: theme.transitions.create('transform', transition), - '&:hover': { - // Disable the hover effect for the IconButton, - // because a hover effect should apply to the entire Expand button and - // not only to the IconButton. - backgroundColor: 'transparent' - }, - '&$expanded': { - transform: 'rotate(180deg)' - } - } - }; -}; -var AccordionSummary = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function AccordionSummary(props, ref) { - var children = props.children, - classes = props.classes, - className = props.className, - expandIcon = props.expandIcon, - focusVisibleClassName = props.focusVisibleClassName, - _props$IconButtonProp = props.IconButtonProps, - IconButtonProps = _props$IconButtonProp === void 0 ? {} : _props$IconButtonProp, - onClick = props.onClick, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["children", "classes", "className", "expandIcon", "focusVisibleClassName", "IconButtonProps", "onClick"]); - - var _React$useContext = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_Accordion_AccordionContext__WEBPACK_IMPORTED_MODULE_4__["default"]), - _React$useContext$dis = _React$useContext.disabled, - disabled = _React$useContext$dis === void 0 ? false : _React$useContext$dis, - expanded = _React$useContext.expanded, - toggle = _React$useContext.toggle; - - var handleChange = function handleChange(event) { - if (toggle) { - toggle(event); - } - - if (onClick) { - onClick(event); - } - }; - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_ButtonBase__WEBPACK_IMPORTED_MODULE_5__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - focusRipple: false, - disableRipple: true, - disabled: disabled, - component: "div", - "aria-expanded": expanded, - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, className, disabled && classes.disabled, expanded && classes.expanded), - focusVisibleClassName: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.focusVisible, classes.focused, focusVisibleClassName), - onClick: handleChange, - ref: ref - }, other), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.content, expanded && classes.expanded) - }, children), expandIcon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_IconButton__WEBPACK_IMPORTED_MODULE_6__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.expandIcon, expanded && classes.expanded), - edge: "end", - component: "div", - tabIndex: null, - role: null, - "aria-hidden": true - }, IconButtonProps), expandIcon)); -}); - true ? AccordionSummary.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * The content of the accordion summary. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_8__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_7___default().object), function (props) { - // Guard against when generation of classes is disabled in the stylesheets (`disableGeneration`). - // For `disableGeneration` we don't have an accurate warning but `disableGeneration` is an advanced use case anyway. - if (props.classes.focused !== undefined && props.classes.focused.indexOf(' ') !== -1) { - return new Error(['Material-UI: The `classes.focused` key is deprecated.', 'Use `classes.focusVisible` instead.', 'The name of the pseudo-class was changed for consistency.'].join('\n')); - } - - return null; - }), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), - - /** - * The icon to display as the expand indicator. - */ - expandIcon: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().node), - - /** - * This prop can help identify which element has keyboard focus. - * The class name will be applied when the element gains the focus through keyboard interaction. - * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo). - * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/master/explainer.md). - * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components - * if needed. - */ - focusVisibleClassName: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), - - /** - * Props applied to the `IconButton` element wrapping the expand icon. - */ - IconButtonProps: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object), - - /** - * @ignore - */ - onClick: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_9__["default"])(styles, { - name: 'MuiAccordionSummary' -})(AccordionSummary)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/AppBar/AppBar.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _utils_capitalize__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/capitalize.js"); -/* harmony import */ var _Paper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/Paper/Paper.js"); - - - - - - - - -var styles = function styles(theme) { - var backgroundColorDefault = theme.palette.type === 'light' ? theme.palette.grey[100] : theme.palette.grey[900]; - return { - /* Styles applied to the root element. */ - root: { - display: 'flex', - flexDirection: 'column', - width: '100%', - boxSizing: 'border-box', - // Prevent padding issue with the Modal and fixed positioned AppBar. - zIndex: theme.zIndex.appBar, - flexShrink: 0 - }, - - /* Styles applied to the root element if `position="fixed"`. */ - positionFixed: { - position: 'fixed', - top: 0, - left: 'auto', - right: 0, - '@media print': { - // Prevent the app bar to be visible on each printed page. - position: 'absolute' - } - }, - - /* Styles applied to the root element if `position="absolute"`. */ - positionAbsolute: { - position: 'absolute', - top: 0, - left: 'auto', - right: 0 - }, - - /* Styles applied to the root element if `position="sticky"`. */ - positionSticky: { - // ⚠️ sticky is not supported by IE 11. - position: 'sticky', - top: 0, - left: 'auto', - right: 0 - }, - - /* Styles applied to the root element if `position="static"`. */ - positionStatic: { - position: 'static' - }, - - /* Styles applied to the root element if `position="relative"`. */ - positionRelative: { - position: 'relative' - }, - - /* Styles applied to the root element if `color="default"`. */ - colorDefault: { - backgroundColor: backgroundColorDefault, - color: theme.palette.getContrastText(backgroundColorDefault) - }, - - /* Styles applied to the root element if `color="primary"`. */ - colorPrimary: { - backgroundColor: theme.palette.primary.main, - color: theme.palette.primary.contrastText - }, - - /* Styles applied to the root element if `color="secondary"`. */ - colorSecondary: { - backgroundColor: theme.palette.secondary.main, - color: theme.palette.secondary.contrastText - }, - - /* Styles applied to the root element if `color="inherit"`. */ - colorInherit: { - color: 'inherit' - }, - - /* Styles applied to the root element if `color="transparent"`. */ - colorTransparent: { - backgroundColor: 'transparent', - color: 'inherit' - } - }; -}; -var AppBar = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function AppBar(props, ref) { - var classes = props.classes, - className = props.className, - _props$color = props.color, - color = _props$color === void 0 ? 'primary' : _props$color, - _props$position = props.position, - position = _props$position === void 0 ? 'fixed' : _props$position, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["classes", "className", "color", "position"]); - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_Paper__WEBPACK_IMPORTED_MODULE_4__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - square: true, - component: "header", - elevation: 4, - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, classes["position".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_5__["default"])(position))], classes["color".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_5__["default"])(color))], className, position === 'fixed' && 'mui-fixed'), - ref: ref - }, other)); -}); - true ? AppBar.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * The content of the component. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string), - - /** - * The color of the component. It supports those theme colors that make sense for this component. - */ - color: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(['default', 'inherit', 'primary', 'secondary', 'transparent']), - - /** - * The positioning type. The behavior of the different options is described - * [in the MDN web docs](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Positioning). - * Note: `sticky` is not universally supported and will fall back to `static` when unavailable. - */ - position: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(['absolute', 'fixed', 'relative', 'static', 'sticky']) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_7__["default"])(styles, { - name: 'MuiAppBar' -})(AppBar)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Backdrop/Backdrop.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _Fade__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/Fade/Fade.js"); - - - - - - - -var styles = { - /* Styles applied to the root element. */ - root: { - // Improve scrollable dialog support. - zIndex: -1, - position: 'fixed', - display: 'flex', - alignItems: 'center', - justifyContent: 'center', - right: 0, - bottom: 0, - top: 0, - left: 0, - backgroundColor: 'rgba(0, 0, 0, 0.5)', - WebkitTapHighlightColor: 'transparent' - }, - - /* Styles applied to the root element if `invisible={true}`. */ - invisible: { - backgroundColor: 'transparent' - } -}; -var Backdrop = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function Backdrop(props, ref) { - var children = props.children, - classes = props.classes, - className = props.className, - _props$invisible = props.invisible, - invisible = _props$invisible === void 0 ? false : _props$invisible, - open = props.open, - transitionDuration = props.transitionDuration, - _props$TransitionComp = props.TransitionComponent, - TransitionComponent = _props$TransitionComp === void 0 ? _Fade__WEBPACK_IMPORTED_MODULE_4__["default"] : _props$TransitionComp, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["children", "classes", "className", "invisible", "open", "transitionDuration", "TransitionComponent"]); - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(TransitionComponent, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - in: open, - timeout: transitionDuration - }, other), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, className, invisible && classes.invisible), - "aria-hidden": true, - ref: ref - }, children)); -}); - true ? Backdrop.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * The content of the component. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), - - /** - * If `true`, the backdrop is invisible. - * It can be used when rendering a popover or a custom select component. - */ - invisible: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - - /** - * If `true`, the backdrop is open. - */ - open: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool.isRequired), - - /** - * The duration for the transition, in milliseconds. - * You may specify a single timeout for all transitions, or individually with an object. - */ - transitionDuration: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_5___default().number), prop_types__WEBPACK_IMPORTED_MODULE_5___default().shape({ - appear: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number), - enter: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number), - exit: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number) - })]) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_6__["default"])(styles, { - name: 'MuiBackdrop' -})(Backdrop)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Badge/Badge.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/utils/esm/chainPropTypes.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _utils_capitalize__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/capitalize.js"); - - - - - - - - - -var RADIUS_STANDARD = 10; -var RADIUS_DOT = 4; -var styles = function styles(theme) { - return { - /* Styles applied to the root element. */ - root: { - position: 'relative', - display: 'inline-flex', - // For correct alignment with the text. - verticalAlign: 'middle', - flexShrink: 0 - }, - - /* Styles applied to the badge `span` element. */ - badge: { - display: 'flex', - flexDirection: 'row', - flexWrap: 'wrap', - justifyContent: 'center', - alignContent: 'center', - alignItems: 'center', - position: 'absolute', - boxSizing: 'border-box', - fontFamily: theme.typography.fontFamily, - fontWeight: theme.typography.fontWeightMedium, - fontSize: theme.typography.pxToRem(12), - minWidth: RADIUS_STANDARD * 2, - lineHeight: 1, - padding: '0 6px', - height: RADIUS_STANDARD * 2, - borderRadius: RADIUS_STANDARD, - zIndex: 1, - // Render the badge on top of potential ripples. - transition: theme.transitions.create('transform', { - easing: theme.transitions.easing.easeInOut, - duration: theme.transitions.duration.enteringScreen - }) - }, - - /* Styles applied to the root element if `color="primary"`. */ - colorPrimary: { - backgroundColor: theme.palette.primary.main, - color: theme.palette.primary.contrastText - }, - - /* Styles applied to the root element if `color="secondary"`. */ - colorSecondary: { - backgroundColor: theme.palette.secondary.main, - color: theme.palette.secondary.contrastText - }, - - /* Styles applied to the root element if `color="error"`. */ - colorError: { - backgroundColor: theme.palette.error.main, - color: theme.palette.error.contrastText - }, - - /* Styles applied to the root element if `variant="dot"`. */ - dot: { - borderRadius: RADIUS_DOT, - height: RADIUS_DOT * 2, - minWidth: RADIUS_DOT * 2, - padding: 0 - }, - - /* Styles applied to the root element if `anchorOrigin={{ 'top', 'right' }} overlap="rectangle"`. */ - anchorOriginTopRightRectangle: { - top: 0, - right: 0, - transform: 'scale(1) translate(50%, -50%)', - transformOrigin: '100% 0%', - '&$invisible': { - transform: 'scale(0) translate(50%, -50%)' - } - }, - - /* Styles applied to the root element if `anchorOrigin={{ 'top', 'right' }} overlap="rectangular"`. */ - anchorOriginTopRightRectangular: { - top: 0, - right: 0, - transform: 'scale(1) translate(50%, -50%)', - transformOrigin: '100% 0%', - '&$invisible': { - transform: 'scale(0) translate(50%, -50%)' - } - }, - - /* Styles applied to the root element if `anchorOrigin={{ 'bottom', 'right' }} overlap="rectangle"`. */ - anchorOriginBottomRightRectangle: { - bottom: 0, - right: 0, - transform: 'scale(1) translate(50%, 50%)', - transformOrigin: '100% 100%', - '&$invisible': { - transform: 'scale(0) translate(50%, 50%)' - } - }, - - /* Styles applied to the root element if `anchorOrigin={{ 'bottom', 'right' }} overlap="rectangular"`. */ - anchorOriginBottomRightRectangular: { - bottom: 0, - right: 0, - transform: 'scale(1) translate(50%, 50%)', - transformOrigin: '100% 100%', - '&$invisible': { - transform: 'scale(0) translate(50%, 50%)' - } - }, - - /* Styles applied to the root element if `anchorOrigin={{ 'top', 'left' }} overlap="rectangle"`. */ - anchorOriginTopLeftRectangle: { - top: 0, - left: 0, - transform: 'scale(1) translate(-50%, -50%)', - transformOrigin: '0% 0%', - '&$invisible': { - transform: 'scale(0) translate(-50%, -50%)' - } - }, - - /* Styles applied to the root element if `anchorOrigin={{ 'top', 'left' }} overlap="rectangular"`. */ - anchorOriginTopLeftRectangular: { - top: 0, - left: 0, - transform: 'scale(1) translate(-50%, -50%)', - transformOrigin: '0% 0%', - '&$invisible': { - transform: 'scale(0) translate(-50%, -50%)' - } - }, - - /* Styles applied to the root element if `anchorOrigin={{ 'bottom', 'left' }} overlap="rectangle"`. */ - anchorOriginBottomLeftRectangle: { - bottom: 0, - left: 0, - transform: 'scale(1) translate(-50%, 50%)', - transformOrigin: '0% 100%', - '&$invisible': { - transform: 'scale(0) translate(-50%, 50%)' - } - }, - - /* Styles applied to the root element if `anchorOrigin={{ 'bottom', 'left' }} overlap="rectangular"`. */ - anchorOriginBottomLeftRectangular: { - bottom: 0, - left: 0, - transform: 'scale(1) translate(-50%, 50%)', - transformOrigin: '0% 100%', - '&$invisible': { - transform: 'scale(0) translate(-50%, 50%)' - } - }, - - /* Styles applied to the root element if `anchorOrigin={{ 'top', 'right' }} overlap="circle"`. */ - anchorOriginTopRightCircle: { - top: '14%', - right: '14%', - transform: 'scale(1) translate(50%, -50%)', - transformOrigin: '100% 0%', - '&$invisible': { - transform: 'scale(0) translate(50%, -50%)' - } - }, - - /* Styles applied to the root element if `anchorOrigin={{ 'top', 'right' }} overlap="circular"`. */ - anchorOriginTopRightCircular: { - top: '14%', - right: '14%', - transform: 'scale(1) translate(50%, -50%)', - transformOrigin: '100% 0%', - '&$invisible': { - transform: 'scale(0) translate(50%, -50%)' - } - }, - - /* Styles applied to the root element if `anchorOrigin={{ 'bottom', 'right' }} overlap="circle"`. */ - anchorOriginBottomRightCircle: { - bottom: '14%', - right: '14%', - transform: 'scale(1) translate(50%, 50%)', - transformOrigin: '100% 100%', - '&$invisible': { - transform: 'scale(0) translate(50%, 50%)' - } - }, - - /* Styles applied to the root element if `anchorOrigin={{ 'bottom', 'right' }} overlap="circular"`. */ - anchorOriginBottomRightCircular: { - bottom: '14%', - right: '14%', - transform: 'scale(1) translate(50%, 50%)', - transformOrigin: '100% 100%', - '&$invisible': { - transform: 'scale(0) translate(50%, 50%)' - } - }, - - /* Styles applied to the root element if `anchorOrigin={{ 'top', 'left' }} overlap="circle"`. */ - anchorOriginTopLeftCircle: { - top: '14%', - left: '14%', - transform: 'scale(1) translate(-50%, -50%)', - transformOrigin: '0% 0%', - '&$invisible': { - transform: 'scale(0) translate(-50%, -50%)' - } - }, - - /* Styles applied to the root element if `anchorOrigin={{ 'top', 'left' }} overlap="circular"`. */ - anchorOriginTopLeftCircular: { - top: '14%', - left: '14%', - transform: 'scale(1) translate(-50%, -50%)', - transformOrigin: '0% 0%', - '&$invisible': { - transform: 'scale(0) translate(-50%, -50%)' - } - }, - - /* Styles applied to the root element if `anchorOrigin={{ 'bottom', 'left' }} overlap="circle"`. */ - anchorOriginBottomLeftCircle: { - bottom: '14%', - left: '14%', - transform: 'scale(1) translate(-50%, 50%)', - transformOrigin: '0% 100%', - '&$invisible': { - transform: 'scale(0) translate(-50%, 50%)' - } - }, - - /* Styles applied to the root element if `anchorOrigin={{ 'bottom', 'left' }} overlap="circular"`. */ - anchorOriginBottomLeftCircular: { - bottom: '14%', - left: '14%', - transform: 'scale(1) translate(-50%, 50%)', - transformOrigin: '0% 100%', - '&$invisible': { - transform: 'scale(0) translate(-50%, 50%)' - } - }, - - /* Pseudo-class to the badge `span` element if `invisible={true}`. */ - invisible: { - transition: theme.transitions.create('transform', { - easing: theme.transitions.easing.easeInOut, - duration: theme.transitions.duration.leavingScreen - }) - } - }; -}; -var Badge = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.forwardRef(function Badge(props, ref) { - var _props$anchorOrigin = props.anchorOrigin, - anchorOrigin = _props$anchorOrigin === void 0 ? { - vertical: 'top', - horizontal: 'right' - } : _props$anchorOrigin, - badgeContent = props.badgeContent, - children = props.children, - classes = props.classes, - className = props.className, - _props$color = props.color, - color = _props$color === void 0 ? 'default' : _props$color, - _props$component = props.component, - ComponentProp = _props$component === void 0 ? 'span' : _props$component, - invisibleProp = props.invisible, - _props$max = props.max, - max = _props$max === void 0 ? 99 : _props$max, - _props$overlap = props.overlap, - overlap = _props$overlap === void 0 ? 'rectangle' : _props$overlap, - _props$showZero = props.showZero, - showZero = _props$showZero === void 0 ? false : _props$showZero, - _props$variant = props.variant, - variant = _props$variant === void 0 ? 'standard' : _props$variant, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__["default"])(props, ["anchorOrigin", "badgeContent", "children", "classes", "className", "color", "component", "invisible", "max", "overlap", "showZero", "variant"]); - - var invisible = invisibleProp; - - if (invisibleProp == null && (badgeContent === 0 && !showZero || badgeContent == null && variant !== 'dot')) { - invisible = true; - } - - var displayValue = ''; - - if (variant !== 'dot') { - displayValue = badgeContent > max ? "".concat(max, "+") : badgeContent; - } - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(ComponentProp, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_4__["default"])(classes.root, className), - ref: ref - }, other), children, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("span", { - className: (0,clsx__WEBPACK_IMPORTED_MODULE_4__["default"])(classes.badge, classes["".concat(anchorOrigin.horizontal).concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_5__["default"])(anchorOrigin.vertical), "}")], classes["anchorOrigin".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_5__["default"])(anchorOrigin.vertical)).concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_5__["default"])(anchorOrigin.horizontal)).concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_5__["default"])(overlap))], color !== 'default' && classes["color".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_5__["default"])(color))], invisible && classes.invisible, variant === 'dot' && classes.dot) - }, displayValue)); -}); - true ? Badge.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * The anchor of the badge. - */ - anchorOrigin: prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({ - horizontal: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(['left', 'right']).isRequired, - vertical: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(['bottom', 'top']).isRequired - }), - - /** - * The content rendered within the badge. - */ - badgeContent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().node), - - /** - * The badge will be added relative to this node. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_7__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_6___default().object), function (props) { - var classes = props.classes; - - if (classes == null) { - return null; - } - - [['anchorOriginTopRightRectangle', 'anchorOriginTopRightRectangular'], ['anchorOriginBottomRightRectangle', 'anchorOriginBottomRightRectangular'], ['anchorOriginTopLeftRectangle', 'anchorOriginTopLeftRectangular'], ['anchorOriginBottomLeftRectangle', 'anchorOriginBottomLeftRectangular'], ['anchorOriginTopRightCircle', 'anchorOriginTopRightCircular'], ['anchorOriginBottomRightCircle', 'anchorOriginBottomRightCircular'], ['anchorOriginTopLeftCircle', 'anchorOriginTopLeftCircular']].forEach(function (_ref) { - var _ref2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref, 2), - deprecatedClassKey = _ref2[0], - newClassKey = _ref2[1]; - - if (classes[deprecatedClassKey] != null && // 2 classnames? one from withStyles the other must be custom - classes[deprecatedClassKey].split(' ').length > 1) { - throw new Error("Material-UI: The `".concat(deprecatedClassKey, "` class was deprecated. Use `").concat(newClassKey, "` instead.")); - } - }); - return null; - }), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string), - - /** - * The color of the component. It supports those theme colors that make sense for this component. - */ - color: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(['default', 'error', 'primary', 'secondary']), - - /** - * The component used for the root node. - * Either a string to use a HTML element or a component. - */ - component: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().elementType), - - /** - * If `true`, the badge will be invisible. - */ - invisible: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool), - - /** - * Max count to show. - */ - max: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), - - /** - * Wrapped shape the badge should overlap. - */ - overlap: (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_7__["default"])(prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(['circle', 'rectangle', 'circular', 'rectangular']), function (props) { - var _props$overlap2 = props.overlap, - overlap = _props$overlap2 === void 0 ? 'rectangle' : _props$overlap2; - - if (overlap === 'rectangle') { - throw new Error('Material-UI: `overlap="rectangle"` was deprecated. Use `overlap="rectangular"` instead.'); - } - - if (overlap === 'circle') { - throw new Error('Material-UI: `overlap="circle"` was deprecated. Use `overlap="circular"` instead.'); - } - - return null; - }), - - /** - * Controls whether the badge is hidden when `badgeContent` is zero. - */ - showZero: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool), - - /** - * The variant to use. - */ - variant: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(['dot', 'standard']) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_8__["default"])(styles, { - name: 'MuiBadge' -})(Badge)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Box/Box.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styleFunction": () => (/* binding */ styleFunction) -/* harmony export */ }); -/* harmony import */ var _material_ui_system__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@material-ui/system/esm/styleFunctionSx.js"); -/* harmony import */ var _material_ui_system__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/system/esm/compose.js"); -/* harmony import */ var _material_ui_system__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@material-ui/system/esm/borders.js"); -/* harmony import */ var _material_ui_system__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@material-ui/system/esm/display.js"); -/* harmony import */ var _material_ui_system__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/system/esm/flexbox.js"); -/* harmony import */ var _material_ui_system__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/system/esm/grid.js"); -/* harmony import */ var _material_ui_system__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/system/esm/positions.js"); -/* harmony import */ var _material_ui_system__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/system/esm/palette.js"); -/* harmony import */ var _material_ui_system__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/system/esm/shadows.js"); -/* harmony import */ var _material_ui_system__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/system/esm/sizing.js"); -/* harmony import */ var _material_ui_system__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/system/esm/spacing.js"); -/* harmony import */ var _material_ui_system__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/@material-ui/system/esm/typography.js"); -/* harmony import */ var _styles_styled__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/styled.js"); - - -var styleFunction = (0,_material_ui_system__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_material_ui_system__WEBPACK_IMPORTED_MODULE_1__["default"])(_material_ui_system__WEBPACK_IMPORTED_MODULE_2__["default"], _material_ui_system__WEBPACK_IMPORTED_MODULE_3__["default"], _material_ui_system__WEBPACK_IMPORTED_MODULE_4__["default"], _material_ui_system__WEBPACK_IMPORTED_MODULE_5__["default"], _material_ui_system__WEBPACK_IMPORTED_MODULE_6__["default"], _material_ui_system__WEBPACK_IMPORTED_MODULE_7__["default"], _material_ui_system__WEBPACK_IMPORTED_MODULE_8__["default"], _material_ui_system__WEBPACK_IMPORTED_MODULE_9__["default"], _material_ui_system__WEBPACK_IMPORTED_MODULE_10__["default"], _material_ui_system__WEBPACK_IMPORTED_MODULE_11__["default"])); -/** - * @ignore - do not document. - */ - -var Box = (0,_styles_styled__WEBPACK_IMPORTED_MODULE_12__["default"])('div')(styleFunction, { - name: 'MuiBox' -}); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Box); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Button/Button.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/colorManipulator.js"); -/* harmony import */ var _ButtonBase__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/ButtonBase/ButtonBase.js"); -/* harmony import */ var _utils_capitalize__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/capitalize.js"); - - - - - - - - - -var styles = function styles(theme) { - return { - /* Styles applied to the root element. */ - root: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, theme.typography.button, { - boxSizing: 'border-box', - minWidth: 64, - padding: '6px 16px', - borderRadius: theme.shape.borderRadius, - color: theme.palette.text.primary, - transition: theme.transitions.create(['background-color', 'box-shadow', 'border'], { - duration: theme.transitions.duration.short - }), - '&:hover': { - textDecoration: 'none', - backgroundColor: (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.alpha)(theme.palette.text.primary, theme.palette.action.hoverOpacity), - // Reset on touch devices, it doesn't add specificity - '@media (hover: none)': { - backgroundColor: 'transparent' - }, - '&$disabled': { - backgroundColor: 'transparent' - } - }, - '&$disabled': { - color: theme.palette.action.disabled - } - }), - - /* Styles applied to the span element that wraps the children. */ - label: { - width: '100%', - // Ensure the correct width for iOS Safari - display: 'inherit', - alignItems: 'inherit', - justifyContent: 'inherit' - }, - - /* Styles applied to the root element if `variant="text"`. */ - text: { - padding: '6px 8px' - }, - - /* Styles applied to the root element if `variant="text"` and `color="primary"`. */ - textPrimary: { - color: theme.palette.primary.main, - '&:hover': { - backgroundColor: (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.alpha)(theme.palette.primary.main, theme.palette.action.hoverOpacity), - // Reset on touch devices, it doesn't add specificity - '@media (hover: none)': { - backgroundColor: 'transparent' - } - } - }, - - /* Styles applied to the root element if `variant="text"` and `color="secondary"`. */ - textSecondary: { - color: theme.palette.secondary.main, - '&:hover': { - backgroundColor: (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.alpha)(theme.palette.secondary.main, theme.palette.action.hoverOpacity), - // Reset on touch devices, it doesn't add specificity - '@media (hover: none)': { - backgroundColor: 'transparent' - } - } - }, - - /* Styles applied to the root element if `variant="outlined"`. */ - outlined: { - padding: '5px 15px', - border: "1px solid ".concat(theme.palette.type === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'), - '&$disabled': { - border: "1px solid ".concat(theme.palette.action.disabledBackground) - } - }, - - /* Styles applied to the root element if `variant="outlined"` and `color="primary"`. */ - outlinedPrimary: { - color: theme.palette.primary.main, - border: "1px solid ".concat((0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.alpha)(theme.palette.primary.main, 0.5)), - '&:hover': { - border: "1px solid ".concat(theme.palette.primary.main), - backgroundColor: (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.alpha)(theme.palette.primary.main, theme.palette.action.hoverOpacity), - // Reset on touch devices, it doesn't add specificity - '@media (hover: none)': { - backgroundColor: 'transparent' - } - } - }, - - /* Styles applied to the root element if `variant="outlined"` and `color="secondary"`. */ - outlinedSecondary: { - color: theme.palette.secondary.main, - border: "1px solid ".concat((0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.alpha)(theme.palette.secondary.main, 0.5)), - '&:hover': { - border: "1px solid ".concat(theme.palette.secondary.main), - backgroundColor: (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.alpha)(theme.palette.secondary.main, theme.palette.action.hoverOpacity), - // Reset on touch devices, it doesn't add specificity - '@media (hover: none)': { - backgroundColor: 'transparent' - } - }, - '&$disabled': { - border: "1px solid ".concat(theme.palette.action.disabled) - } - }, - - /* Styles applied to the root element if `variant="contained"`. */ - contained: { - color: theme.palette.getContrastText(theme.palette.grey[300]), - backgroundColor: theme.palette.grey[300], - boxShadow: theme.shadows[2], - '&:hover': { - backgroundColor: theme.palette.grey.A100, - boxShadow: theme.shadows[4], - // Reset on touch devices, it doesn't add specificity - '@media (hover: none)': { - boxShadow: theme.shadows[2], - backgroundColor: theme.palette.grey[300] - }, - '&$disabled': { - backgroundColor: theme.palette.action.disabledBackground - } - }, - '&$focusVisible': { - boxShadow: theme.shadows[6] - }, - '&:active': { - boxShadow: theme.shadows[8] - }, - '&$disabled': { - color: theme.palette.action.disabled, - boxShadow: theme.shadows[0], - backgroundColor: theme.palette.action.disabledBackground - } - }, - - /* Styles applied to the root element if `variant="contained"` and `color="primary"`. */ - containedPrimary: { - color: theme.palette.primary.contrastText, - backgroundColor: theme.palette.primary.main, - '&:hover': { - backgroundColor: theme.palette.primary.dark, - // Reset on touch devices, it doesn't add specificity - '@media (hover: none)': { - backgroundColor: theme.palette.primary.main - } - } - }, - - /* Styles applied to the root element if `variant="contained"` and `color="secondary"`. */ - containedSecondary: { - color: theme.palette.secondary.contrastText, - backgroundColor: theme.palette.secondary.main, - '&:hover': { - backgroundColor: theme.palette.secondary.dark, - // Reset on touch devices, it doesn't add specificity - '@media (hover: none)': { - backgroundColor: theme.palette.secondary.main - } - } - }, - - /* Styles applied to the root element if `disableElevation={true}`. */ - disableElevation: { - boxShadow: 'none', - '&:hover': { - boxShadow: 'none' - }, - '&$focusVisible': { - boxShadow: 'none' - }, - '&:active': { - boxShadow: 'none' - }, - '&$disabled': { - boxShadow: 'none' - } - }, - - /* Pseudo-class applied to the ButtonBase root element if the button is keyboard focused. */ - focusVisible: {}, - - /* Pseudo-class applied to the root element if `disabled={true}`. */ - disabled: {}, - - /* Styles applied to the root element if `color="inherit"`. */ - colorInherit: { - color: 'inherit', - borderColor: 'currentColor' - }, - - /* Styles applied to the root element if `size="small"` and `variant="text"`. */ - textSizeSmall: { - padding: '4px 5px', - fontSize: theme.typography.pxToRem(13) - }, - - /* Styles applied to the root element if `size="large"` and `variant="text"`. */ - textSizeLarge: { - padding: '8px 11px', - fontSize: theme.typography.pxToRem(15) - }, - - /* Styles applied to the root element if `size="small"` and `variant="outlined"`. */ - outlinedSizeSmall: { - padding: '3px 9px', - fontSize: theme.typography.pxToRem(13) - }, - - /* Styles applied to the root element if `size="large"` and `variant="outlined"`. */ - outlinedSizeLarge: { - padding: '7px 21px', - fontSize: theme.typography.pxToRem(15) - }, - - /* Styles applied to the root element if `size="small"` and `variant="contained"`. */ - containedSizeSmall: { - padding: '4px 10px', - fontSize: theme.typography.pxToRem(13) - }, - - /* Styles applied to the root element if `size="large"` and `variant="contained"`. */ - containedSizeLarge: { - padding: '8px 22px', - fontSize: theme.typography.pxToRem(15) - }, - - /* Styles applied to the root element if `size="small"`. */ - sizeSmall: {}, - - /* Styles applied to the root element if `size="large"`. */ - sizeLarge: {}, - - /* Styles applied to the root element if `fullWidth={true}`. */ - fullWidth: { - width: '100%' - }, - - /* Styles applied to the startIcon element if supplied. */ - startIcon: { - display: 'inherit', - marginRight: 8, - marginLeft: -4, - '&$iconSizeSmall': { - marginLeft: -2 - } - }, - - /* Styles applied to the endIcon element if supplied. */ - endIcon: { - display: 'inherit', - marginRight: -4, - marginLeft: 8, - '&$iconSizeSmall': { - marginRight: -2 - } - }, - - /* Styles applied to the icon element if supplied and `size="small"`. */ - iconSizeSmall: { - '& > *:first-child': { - fontSize: 18 - } - }, - - /* Styles applied to the icon element if supplied and `size="medium"`. */ - iconSizeMedium: { - '& > *:first-child': { - fontSize: 20 - } - }, - - /* Styles applied to the icon element if supplied and `size="large"`. */ - iconSizeLarge: { - '& > *:first-child': { - fontSize: 22 - } - } - }; -}; -var Button = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function Button(props, ref) { - var children = props.children, - classes = props.classes, - className = props.className, - _props$color = props.color, - color = _props$color === void 0 ? 'default' : _props$color, - _props$component = props.component, - component = _props$component === void 0 ? 'button' : _props$component, - _props$disabled = props.disabled, - disabled = _props$disabled === void 0 ? false : _props$disabled, - _props$disableElevati = props.disableElevation, - disableElevation = _props$disableElevati === void 0 ? false : _props$disableElevati, - _props$disableFocusRi = props.disableFocusRipple, - disableFocusRipple = _props$disableFocusRi === void 0 ? false : _props$disableFocusRi, - endIconProp = props.endIcon, - focusVisibleClassName = props.focusVisibleClassName, - _props$fullWidth = props.fullWidth, - fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, - _props$size = props.size, - size = _props$size === void 0 ? 'medium' : _props$size, - startIconProp = props.startIcon, - _props$type = props.type, - type = _props$type === void 0 ? 'button' : _props$type, - _props$variant = props.variant, - variant = _props$variant === void 0 ? 'text' : _props$variant, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__["default"])(props, ["children", "classes", "className", "color", "component", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"]); - - var startIcon = startIconProp && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", { - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.startIcon, classes["iconSize".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_5__["default"])(size))]) - }, startIconProp); - var endIcon = endIconProp && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", { - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.endIcon, classes["iconSize".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_5__["default"])(size))]) - }, endIconProp); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_ButtonBase__WEBPACK_IMPORTED_MODULE_6__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, classes[variant], className, color === 'inherit' ? classes.colorInherit : color !== 'default' && classes["".concat(variant).concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_5__["default"])(color))], size !== 'medium' && [classes["".concat(variant, "Size").concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_5__["default"])(size))], classes["size".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_5__["default"])(size))]], disableElevation && classes.disableElevation, disabled && classes.disabled, fullWidth && classes.fullWidth), - component: component, - disabled: disabled, - focusRipple: !disableFocusRipple, - focusVisibleClassName: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.focusVisible, focusVisibleClassName), - ref: ref, - type: type - }, other), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", { - className: classes.label - }, startIcon, children, endIcon)); -}); - true ? Button.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * The content of the button. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), - - /** - * The color of the component. It supports those theme colors that make sense for this component. - */ - color: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(['default', 'inherit', 'primary', 'secondary']), - - /** - * The component used for the root node. - * Either a string to use a HTML element or a component. - */ - component: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().elementType), - - /** - * If `true`, the button will be disabled. - */ - disabled: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * If `true`, no elevation is used. - */ - disableElevation: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * If `true`, the keyboard focus ripple will be disabled. - */ - disableFocusRipple: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * If `true`, the ripple effect will be disabled. - * - * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure - * to highlight the element by applying separate styles with the `focusVisibleClassName`. - */ - disableRipple: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * Element placed after the children. - */ - endIcon: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().node), - - /** - * @ignore - */ - focusVisibleClassName: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), - - /** - * If `true`, the button will take up the full width of its container. - */ - fullWidth: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * The URL to link to when the button is clicked. - * If defined, an `a` element will be used as the root node. - */ - href: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), - - /** - * The size of the button. - * `small` is equivalent to the dense button styling. - */ - size: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(['large', 'medium', 'small']), - - /** - * Element placed before the children. - */ - startIcon: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().node), - - /** - * @ignore - */ - type: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(['button', 'reset', 'submit']), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string)]), - - /** - * The variant to use. - */ - variant: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(['contained', 'outlined', 'text']) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_8__["default"])(styles, { - name: 'MuiButton' -})(Button)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/ButtonBase/ButtonBase.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__); -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/react-dom/index.js"); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/utils/esm/refType.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("./node_modules/@material-ui/utils/esm/elementTypeAcceptingRef.js"); -/* harmony import */ var _utils_useForkRef__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useForkRef.js"); -/* harmony import */ var _utils_useEventCallback__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useEventCallback.js"); -/* harmony import */ var _utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/deprecatedPropType.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _utils_useIsFocusVisible__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useIsFocusVisible.js"); -/* harmony import */ var _TouchRipple__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/ButtonBase/TouchRipple.js"); - - - - - - - - - - - - - -var styles = { - /* Styles applied to the root element. */ - root: { - display: 'inline-flex', - alignItems: 'center', - justifyContent: 'center', - position: 'relative', - WebkitTapHighlightColor: 'transparent', - backgroundColor: 'transparent', - // Reset default value - // We disable the focus ring for mouse, touch and keyboard users. - outline: 0, - border: 0, - margin: 0, - // Remove the margin in Safari - borderRadius: 0, - padding: 0, - // Remove the padding in Firefox - cursor: 'pointer', - userSelect: 'none', - verticalAlign: 'middle', - '-moz-appearance': 'none', - // Reset - '-webkit-appearance': 'none', - // Reset - textDecoration: 'none', - // So we take precedent over the style of a native element. - color: 'inherit', - '&::-moz-focus-inner': { - borderStyle: 'none' // Remove Firefox dotted outline. - - }, - '&$disabled': { - pointerEvents: 'none', - // Disable link interactions - cursor: 'default' - }, - '@media print': { - colorAdjust: 'exact' - } - }, - - /* Pseudo-class applied to the root element if `disabled={true}`. */ - disabled: {}, - - /* Pseudo-class applied to the root element if keyboard focused. */ - focusVisible: {} -}; -/** - * `ButtonBase` contains as few styles as possible. - * It aims to be a simple building block for creating a button. - * It contains a load of style reset and some focus/ripple logic. - */ - -var ButtonBase = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function ButtonBase(props, ref) { - var action = props.action, - buttonRefProp = props.buttonRef, - _props$centerRipple = props.centerRipple, - centerRipple = _props$centerRipple === void 0 ? false : _props$centerRipple, - children = props.children, - classes = props.classes, - className = props.className, - _props$component = props.component, - component = _props$component === void 0 ? 'button' : _props$component, - _props$disabled = props.disabled, - disabled = _props$disabled === void 0 ? false : _props$disabled, - _props$disableRipple = props.disableRipple, - disableRipple = _props$disableRipple === void 0 ? false : _props$disableRipple, - _props$disableTouchRi = props.disableTouchRipple, - disableTouchRipple = _props$disableTouchRi === void 0 ? false : _props$disableTouchRi, - _props$focusRipple = props.focusRipple, - focusRipple = _props$focusRipple === void 0 ? false : _props$focusRipple, - focusVisibleClassName = props.focusVisibleClassName, - onBlur = props.onBlur, - onClick = props.onClick, - onFocus = props.onFocus, - onFocusVisible = props.onFocusVisible, - onKeyDown = props.onKeyDown, - onKeyUp = props.onKeyUp, - onMouseDown = props.onMouseDown, - onMouseLeave = props.onMouseLeave, - onMouseUp = props.onMouseUp, - onTouchEnd = props.onTouchEnd, - onTouchMove = props.onTouchMove, - onTouchStart = props.onTouchStart, - onDragLeave = props.onDragLeave, - _props$tabIndex = props.tabIndex, - tabIndex = _props$tabIndex === void 0 ? 0 : _props$tabIndex, - TouchRippleProps = props.TouchRippleProps, - _props$type = props.type, - type = _props$type === void 0 ? 'button' : _props$type, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["action", "buttonRef", "centerRipple", "children", "classes", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "onBlur", "onClick", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "onDragLeave", "tabIndex", "TouchRippleProps", "type"]); - - var buttonRef = react__WEBPACK_IMPORTED_MODULE_2__.useRef(null); - - function getButtonNode() { - // #StrictMode ready - return react_dom__WEBPACK_IMPORTED_MODULE_3__.findDOMNode(buttonRef.current); - } - - var rippleRef = react__WEBPACK_IMPORTED_MODULE_2__.useRef(null); - - var _React$useState = react__WEBPACK_IMPORTED_MODULE_2__.useState(false), - focusVisible = _React$useState[0], - setFocusVisible = _React$useState[1]; - - if (disabled && focusVisible) { - setFocusVisible(false); - } - - var _useIsFocusVisible = (0,_utils_useIsFocusVisible__WEBPACK_IMPORTED_MODULE_5__["default"])(), - isFocusVisible = _useIsFocusVisible.isFocusVisible, - onBlurVisible = _useIsFocusVisible.onBlurVisible, - focusVisibleRef = _useIsFocusVisible.ref; - - react__WEBPACK_IMPORTED_MODULE_2__.useImperativeHandle(action, function () { - return { - focusVisible: function focusVisible() { - setFocusVisible(true); - buttonRef.current.focus(); - } - }; - }, []); - react__WEBPACK_IMPORTED_MODULE_2__.useEffect(function () { - if (focusVisible && focusRipple && !disableRipple) { - rippleRef.current.pulsate(); - } - }, [disableRipple, focusRipple, focusVisible]); - - function useRippleHandler(rippleAction, eventCallback) { - var skipRippleAction = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : disableTouchRipple; - return (0,_utils_useEventCallback__WEBPACK_IMPORTED_MODULE_6__["default"])(function (event) { - if (eventCallback) { - eventCallback(event); - } - - var ignore = skipRippleAction; - - if (!ignore && rippleRef.current) { - rippleRef.current[rippleAction](event); - } - - return true; - }); - } - - var handleMouseDown = useRippleHandler('start', onMouseDown); - var handleDragLeave = useRippleHandler('stop', onDragLeave); - var handleMouseUp = useRippleHandler('stop', onMouseUp); - var handleMouseLeave = useRippleHandler('stop', function (event) { - if (focusVisible) { - event.preventDefault(); - } - - if (onMouseLeave) { - onMouseLeave(event); - } - }); - var handleTouchStart = useRippleHandler('start', onTouchStart); - var handleTouchEnd = useRippleHandler('stop', onTouchEnd); - var handleTouchMove = useRippleHandler('stop', onTouchMove); - var handleBlur = useRippleHandler('stop', function (event) { - if (focusVisible) { - onBlurVisible(event); - setFocusVisible(false); - } - - if (onBlur) { - onBlur(event); - } - }, false); - var handleFocus = (0,_utils_useEventCallback__WEBPACK_IMPORTED_MODULE_6__["default"])(function (event) { - // Fix for https://github.com/facebook/react/issues/7769 - if (!buttonRef.current) { - buttonRef.current = event.currentTarget; - } - - if (isFocusVisible(event)) { - setFocusVisible(true); - - if (onFocusVisible) { - onFocusVisible(event); - } - } - - if (onFocus) { - onFocus(event); - } - }); - - var isNonNativeButton = function isNonNativeButton() { - var button = getButtonNode(); - return component && component !== 'button' && !(button.tagName === 'A' && button.href); - }; - /** - * IE 11 shim for https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/repeat - */ - - - var keydownRef = react__WEBPACK_IMPORTED_MODULE_2__.useRef(false); - var handleKeyDown = (0,_utils_useEventCallback__WEBPACK_IMPORTED_MODULE_6__["default"])(function (event) { - // Check if key is already down to avoid repeats being counted as multiple activations - if (focusRipple && !keydownRef.current && focusVisible && rippleRef.current && event.key === ' ') { - keydownRef.current = true; - event.persist(); - rippleRef.current.stop(event, function () { - rippleRef.current.start(event); - }); - } - - if (event.target === event.currentTarget && isNonNativeButton() && event.key === ' ') { - event.preventDefault(); - } - - if (onKeyDown) { - onKeyDown(event); - } // Keyboard accessibility for non interactive elements - - - if (event.target === event.currentTarget && isNonNativeButton() && event.key === 'Enter' && !disabled) { - event.preventDefault(); - - if (onClick) { - onClick(event); - } - } - }); - var handleKeyUp = (0,_utils_useEventCallback__WEBPACK_IMPORTED_MODULE_6__["default"])(function (event) { - // calling preventDefault in keyUp on a will not dispatch a click event if Space is pressed - // https://codesandbox.io/s/button-keyup-preventdefault-dn7f0 - if (focusRipple && event.key === ' ' && rippleRef.current && focusVisible && !event.defaultPrevented) { - keydownRef.current = false; - event.persist(); - rippleRef.current.stop(event, function () { - rippleRef.current.pulsate(event); - }); - } - - if (onKeyUp) { - onKeyUp(event); - } // Keyboard accessibility for non interactive elements - - - if (onClick && event.target === event.currentTarget && isNonNativeButton() && event.key === ' ' && !event.defaultPrevented) { - onClick(event); - } - }); - var ComponentProp = component; - - if (ComponentProp === 'button' && other.href) { - ComponentProp = 'a'; - } - - var buttonProps = {}; - - if (ComponentProp === 'button') { - buttonProps.type = type; - buttonProps.disabled = disabled; - } else { - if (ComponentProp !== 'a' || !other.href) { - buttonProps.role = 'button'; - } - - buttonProps['aria-disabled'] = disabled; - } - - var handleUserRef = (0,_utils_useForkRef__WEBPACK_IMPORTED_MODULE_7__["default"])(buttonRefProp, ref); - var handleOwnRef = (0,_utils_useForkRef__WEBPACK_IMPORTED_MODULE_7__["default"])(focusVisibleRef, buttonRef); - var handleRef = (0,_utils_useForkRef__WEBPACK_IMPORTED_MODULE_7__["default"])(handleUserRef, handleOwnRef); - - var _React$useState2 = react__WEBPACK_IMPORTED_MODULE_2__.useState(false), - mountedState = _React$useState2[0], - setMountedState = _React$useState2[1]; - - react__WEBPACK_IMPORTED_MODULE_2__.useEffect(function () { - setMountedState(true); - }, []); - var enableTouchRipple = mountedState && !disableRipple && !disabled; - - if (true) { - // eslint-disable-next-line react-hooks/rules-of-hooks - react__WEBPACK_IMPORTED_MODULE_2__.useEffect(function () { - if (enableTouchRipple && !rippleRef.current) { - console.error(['Material-UI: The `component` prop provided to ButtonBase is invalid.', 'Please make sure the children prop is rendered in this custom component.'].join('\n')); - } - }, [enableTouchRipple]); - } - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(ComponentProp, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_4__["default"])(classes.root, className, focusVisible && [classes.focusVisible, focusVisibleClassName], disabled && classes.disabled), - onBlur: handleBlur, - onClick: onClick, - onFocus: handleFocus, - onKeyDown: handleKeyDown, - onKeyUp: handleKeyUp, - onMouseDown: handleMouseDown, - onMouseLeave: handleMouseLeave, - onMouseUp: handleMouseUp, - onDragLeave: handleDragLeave, - onTouchEnd: handleTouchEnd, - onTouchMove: handleTouchMove, - onTouchStart: handleTouchStart, - ref: handleRef, - tabIndex: disabled ? -1 : tabIndex - }, buttonProps, other), children, enableTouchRipple ? - /*#__PURE__*/ - - /* TouchRipple is only needed client-side, x2 boost on the server. */ - react__WEBPACK_IMPORTED_MODULE_2__.createElement(_TouchRipple__WEBPACK_IMPORTED_MODULE_8__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - ref: rippleRef, - center: centerRipple - }, TouchRippleProps)) : null); -}); - true ? ButtonBase.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * A ref for imperative actions. - * It currently only supports `focusVisible()` action. - */ - action: _material_ui_utils__WEBPACK_IMPORTED_MODULE_9__["default"], - - /** - * @ignore - * - * Use that prop to pass a ref to the native button component. - * @deprecated Use `ref` instead. - */ - buttonRef: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_10__["default"])(_material_ui_utils__WEBPACK_IMPORTED_MODULE_9__["default"], 'Use `ref` instead.'), - - /** - * If `true`, the ripples will be centered. - * They won't start at the cursor interaction position. - */ - centerRipple: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool), - - /** - * The content of the component. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), - - /** - * The component used for the root node. - * Either a string to use a HTML element or a component. - */ - component: _material_ui_utils__WEBPACK_IMPORTED_MODULE_12__["default"], - - /** - * If `true`, the base button will be disabled. - */ - disabled: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool), - - /** - * If `true`, the ripple effect will be disabled. - * - * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure - * to highlight the element by applying separate styles with the `focusVisibleClassName`. - */ - disableRipple: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool), - - /** - * If `true`, the touch ripple effect will be disabled. - */ - disableTouchRipple: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool), - - /** - * If `true`, the base button will have a keyboard focus ripple. - */ - focusRipple: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool), - - /** - * This prop can help identify which element has keyboard focus. - * The class name will be applied when the element gains the focus through keyboard interaction. - * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo). - * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/master/explainer.md). - * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components - * if needed. - */ - focusVisibleClassName: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), - - /** - * @ignore - */ - href: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), - - /** - * @ignore - */ - onBlur: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), - - /** - * @ignore - */ - onClick: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), - - /** - * @ignore - */ - onDragLeave: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), - - /** - * @ignore - */ - onFocus: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), - - /** - * Callback fired when the component is focused with a keyboard. - * We trigger a `onFocus` callback too. - */ - onFocusVisible: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), - - /** - * @ignore - */ - onKeyDown: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), - - /** - * @ignore - */ - onKeyUp: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), - - /** - * @ignore - */ - onMouseDown: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), - - /** - * @ignore - */ - onMouseLeave: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), - - /** - * @ignore - */ - onMouseUp: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), - - /** - * @ignore - */ - onTouchEnd: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), - - /** - * @ignore - */ - onTouchMove: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), - - /** - * @ignore - */ - onTouchStart: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), - - /** - * @ignore - */ - tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)]), - - /** - * Props applied to the `TouchRipple` element. - */ - TouchRippleProps: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), - - /** - * @ignore - */ - type: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(['button', 'reset', 'submit']), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)]) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_13__["default"])(styles, { - name: 'MuiButtonBase' -})(ButtonBase)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/ButtonBase/Ripple.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _utils_useEventCallback__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useEventCallback.js"); - - - - -var useEnhancedEffect = typeof window === 'undefined' ? react__WEBPACK_IMPORTED_MODULE_0__.useEffect : react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect; -/** - * @ignore - internal component. - */ - -function Ripple(props) { - var classes = props.classes, - _props$pulsate = props.pulsate, - pulsate = _props$pulsate === void 0 ? false : _props$pulsate, - rippleX = props.rippleX, - rippleY = props.rippleY, - rippleSize = props.rippleSize, - inProp = props.in, - _props$onExited = props.onExited, - onExited = _props$onExited === void 0 ? function () {} : _props$onExited, - timeout = props.timeout; - - var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__.useState(false), - leaving = _React$useState[0], - setLeaving = _React$useState[1]; - - var rippleClassName = (0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(classes.ripple, classes.rippleVisible, pulsate && classes.ripplePulsate); - var rippleStyles = { - width: rippleSize, - height: rippleSize, - top: -(rippleSize / 2) + rippleY, - left: -(rippleSize / 2) + rippleX - }; - var childClassName = (0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(classes.child, leaving && classes.childLeaving, pulsate && classes.childPulsate); - var handleExited = (0,_utils_useEventCallback__WEBPACK_IMPORTED_MODULE_2__["default"])(onExited); // Ripple is used for user feedback (e.g. click or press) so we want to apply styles with the highest priority - - useEnhancedEffect(function () { - if (!inProp) { - // react-transition-group#onExit - setLeaving(true); // react-transition-group#onExited - - var timeoutId = setTimeout(handleExited, timeout); - return function () { - clearTimeout(timeoutId); - }; - } - - return undefined; - }, [handleExited, inProp, timeout]); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { - className: rippleClassName, - style: rippleStyles - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { - className: childClassName - })); -} - - true ? Ripple.propTypes = { - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().object.isRequired), - - /** - * @ignore - injected from TransitionGroup - */ - in: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().bool), - - /** - * @ignore - injected from TransitionGroup - */ - onExited: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().func), - - /** - * If `true`, the ripple pulsates, typically indicating the keyboard focus state of an element. - */ - pulsate: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().bool), - - /** - * Diameter of the ripple. - */ - rippleSize: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().number), - - /** - * Horizontal position of the ripple center. - */ - rippleX: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().number), - - /** - * Vertical position of the ripple center. - */ - rippleY: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().number), - - /** - * exit delay - */ - timeout: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().number.isRequired) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Ripple); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/ButtonBase/TouchRipple.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "DELAY_RIPPLE": () => (/* binding */ DELAY_RIPPLE), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var react_transition_group__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/node_modules/react-transition-group/esm/TransitionGroup.js"); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _Ripple__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/ButtonBase/Ripple.js"); - - - - - - - - - -var DURATION = 550; -var DELAY_RIPPLE = 80; -var styles = function styles(theme) { - return { - /* Styles applied to the root element. */ - root: { - overflow: 'hidden', - pointerEvents: 'none', - position: 'absolute', - zIndex: 0, - top: 0, - right: 0, - bottom: 0, - left: 0, - borderRadius: 'inherit' - }, - - /* Styles applied to the internal `Ripple` components `ripple` class. */ - ripple: { - opacity: 0, - position: 'absolute' - }, - - /* Styles applied to the internal `Ripple` components `rippleVisible` class. */ - rippleVisible: { - opacity: 0.3, - transform: 'scale(1)', - animation: "$enter ".concat(DURATION, "ms ").concat(theme.transitions.easing.easeInOut) - }, - - /* Styles applied to the internal `Ripple` components `ripplePulsate` class. */ - ripplePulsate: { - animationDuration: "".concat(theme.transitions.duration.shorter, "ms") - }, - - /* Styles applied to the internal `Ripple` components `child` class. */ - child: { - opacity: 1, - display: 'block', - width: '100%', - height: '100%', - borderRadius: '50%', - backgroundColor: 'currentColor' - }, - - /* Styles applied to the internal `Ripple` components `childLeaving` class. */ - childLeaving: { - opacity: 0, - animation: "$exit ".concat(DURATION, "ms ").concat(theme.transitions.easing.easeInOut) - }, - - /* Styles applied to the internal `Ripple` components `childPulsate` class. */ - childPulsate: { - position: 'absolute', - left: 0, - top: 0, - animation: "$pulsate 2500ms ".concat(theme.transitions.easing.easeInOut, " 200ms infinite") - }, - '@keyframes enter': { - '0%': { - transform: 'scale(0)', - opacity: 0.1 - }, - '100%': { - transform: 'scale(1)', - opacity: 0.3 - } - }, - '@keyframes exit': { - '0%': { - opacity: 1 - }, - '100%': { - opacity: 0 - } - }, - '@keyframes pulsate': { - '0%': { - transform: 'scale(1)' - }, - '50%': { - transform: 'scale(0.92)' - }, - '100%': { - transform: 'scale(1)' - } - } - }; -}; -/** - * @ignore - internal component. - * - * TODO v5: Make private - */ - -var TouchRipple = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.forwardRef(function TouchRipple(props, ref) { - var _props$center = props.center, - centerProp = _props$center === void 0 ? false : _props$center, - classes = props.classes, - className = props.className, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__["default"])(props, ["center", "classes", "className"]); - - var _React$useState = react__WEBPACK_IMPORTED_MODULE_3__.useState([]), - ripples = _React$useState[0], - setRipples = _React$useState[1]; - - var nextKey = react__WEBPACK_IMPORTED_MODULE_3__.useRef(0); - var rippleCallback = react__WEBPACK_IMPORTED_MODULE_3__.useRef(null); - react__WEBPACK_IMPORTED_MODULE_3__.useEffect(function () { - if (rippleCallback.current) { - rippleCallback.current(); - rippleCallback.current = null; - } - }, [ripples]); // Used to filter out mouse emulated events on mobile. - - var ignoringMouseDown = react__WEBPACK_IMPORTED_MODULE_3__.useRef(false); // We use a timer in order to only show the ripples for touch "click" like events. - // We don't want to display the ripple for touch scroll events. - - var startTimer = react__WEBPACK_IMPORTED_MODULE_3__.useRef(null); // This is the hook called once the previous timeout is ready. - - var startTimerCommit = react__WEBPACK_IMPORTED_MODULE_3__.useRef(null); - var container = react__WEBPACK_IMPORTED_MODULE_3__.useRef(null); - react__WEBPACK_IMPORTED_MODULE_3__.useEffect(function () { - return function () { - clearTimeout(startTimer.current); - }; - }, []); - var startCommit = react__WEBPACK_IMPORTED_MODULE_3__.useCallback(function (params) { - var pulsate = params.pulsate, - rippleX = params.rippleX, - rippleY = params.rippleY, - rippleSize = params.rippleSize, - cb = params.cb; - setRipples(function (oldRipples) { - return [].concat((0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(oldRipples), [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(_Ripple__WEBPACK_IMPORTED_MODULE_5__["default"], { - key: nextKey.current, - classes: classes, - timeout: DURATION, - pulsate: pulsate, - rippleX: rippleX, - rippleY: rippleY, - rippleSize: rippleSize - })]); - }); - nextKey.current += 1; - rippleCallback.current = cb; - }, [classes]); - var start = react__WEBPACK_IMPORTED_MODULE_3__.useCallback(function () { - var event = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var cb = arguments.length > 2 ? arguments[2] : undefined; - var _options$pulsate = options.pulsate, - pulsate = _options$pulsate === void 0 ? false : _options$pulsate, - _options$center = options.center, - center = _options$center === void 0 ? centerProp || options.pulsate : _options$center, - _options$fakeElement = options.fakeElement, - fakeElement = _options$fakeElement === void 0 ? false : _options$fakeElement; - - if (event.type === 'mousedown' && ignoringMouseDown.current) { - ignoringMouseDown.current = false; - return; - } - - if (event.type === 'touchstart') { - ignoringMouseDown.current = true; - } - - var element = fakeElement ? null : container.current; - var rect = element ? element.getBoundingClientRect() : { - width: 0, - height: 0, - left: 0, - top: 0 - }; // Get the size of the ripple - - var rippleX; - var rippleY; - var rippleSize; - - if (center || event.clientX === 0 && event.clientY === 0 || !event.clientX && !event.touches) { - rippleX = Math.round(rect.width / 2); - rippleY = Math.round(rect.height / 2); - } else { - var _ref = event.touches ? event.touches[0] : event, - clientX = _ref.clientX, - clientY = _ref.clientY; - - rippleX = Math.round(clientX - rect.left); - rippleY = Math.round(clientY - rect.top); - } - - if (center) { - rippleSize = Math.sqrt((2 * Math.pow(rect.width, 2) + Math.pow(rect.height, 2)) / 3); // For some reason the animation is broken on Mobile Chrome if the size if even. - - if (rippleSize % 2 === 0) { - rippleSize += 1; - } - } else { - var sizeX = Math.max(Math.abs((element ? element.clientWidth : 0) - rippleX), rippleX) * 2 + 2; - var sizeY = Math.max(Math.abs((element ? element.clientHeight : 0) - rippleY), rippleY) * 2 + 2; - rippleSize = Math.sqrt(Math.pow(sizeX, 2) + Math.pow(sizeY, 2)); - } // Touche devices - - - if (event.touches) { - // check that this isn't another touchstart due to multitouch - // otherwise we will only clear a single timer when unmounting while two - // are running - if (startTimerCommit.current === null) { - // Prepare the ripple effect. - startTimerCommit.current = function () { - startCommit({ - pulsate: pulsate, - rippleX: rippleX, - rippleY: rippleY, - rippleSize: rippleSize, - cb: cb - }); - }; // Delay the execution of the ripple effect. - - - startTimer.current = setTimeout(function () { - if (startTimerCommit.current) { - startTimerCommit.current(); - startTimerCommit.current = null; - } - }, DELAY_RIPPLE); // We have to make a tradeoff with this value. - } - } else { - startCommit({ - pulsate: pulsate, - rippleX: rippleX, - rippleY: rippleY, - rippleSize: rippleSize, - cb: cb - }); - } - }, [centerProp, startCommit]); - var pulsate = react__WEBPACK_IMPORTED_MODULE_3__.useCallback(function () { - start({}, { - pulsate: true - }); - }, [start]); - var stop = react__WEBPACK_IMPORTED_MODULE_3__.useCallback(function (event, cb) { - clearTimeout(startTimer.current); // The touch interaction occurs too quickly. - // We still want to show ripple effect. - - if (event.type === 'touchend' && startTimerCommit.current) { - event.persist(); - startTimerCommit.current(); - startTimerCommit.current = null; - startTimer.current = setTimeout(function () { - stop(event, cb); - }); - return; - } - - startTimerCommit.current = null; - setRipples(function (oldRipples) { - if (oldRipples.length > 0) { - return oldRipples.slice(1); - } - - return oldRipples; - }); - rippleCallback.current = cb; - }, []); - react__WEBPACK_IMPORTED_MODULE_3__.useImperativeHandle(ref, function () { - return { - pulsate: pulsate, - start: start, - stop: stop - }; - }, [pulsate, start, stop]); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("span", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_4__["default"])(classes.root, className), - ref: container - }, other), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(react_transition_group__WEBPACK_IMPORTED_MODULE_6__["default"], { - component: null, - exit: true - }, ripples)); -}); - true ? TouchRipple.propTypes = { - /** - * If `true`, the ripple starts at the center of the component - * rather than at the point of interaction. - */ - center: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object.isRequired), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_8__["default"])(styles, { - flip: false, - name: 'MuiTouchRipple' -})( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.memo(TouchRipple))); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Card/Card.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _Paper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/Paper/Paper.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); - - - - - - - -var styles = { - /* Styles applied to the root element. */ - root: { - overflow: 'hidden' - } -}; -var Card = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function Card(props, ref) { - var classes = props.classes, - className = props.className, - _props$raised = props.raised, - raised = _props$raised === void 0 ? false : _props$raised, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["classes", "className", "raised"]); - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_Paper__WEBPACK_IMPORTED_MODULE_4__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, className), - elevation: raised ? 8 : 1, - ref: ref - }, other)); -}); - true ? Card.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * The content of the component. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), - - /** - * If `true`, the card will use raised styling. - */ - raised: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_6__["default"])(styles, { - name: 'MuiCard' -})(Card)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/CardContent/CardContent.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); - - - - - - -var styles = { - /* Styles applied to the root element. */ - root: { - padding: 16, - '&:last-child': { - paddingBottom: 24 - } - } -}; -var CardContent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function CardContent(props, ref) { - var classes = props.classes, - className = props.className, - _props$component = props.component, - Component = _props$component === void 0 ? 'div' : _props$component, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["classes", "className", "component"]); - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Component, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, className), - ref: ref - }, other)); -}); - true ? CardContent.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * The content of the component. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().string), - - /** - * The component used for the root node. - * Either a string to use a HTML element or a component. - */ - component: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().elementType) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_5__["default"])(styles, { - name: 'MuiCardContent' -})(CardContent)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Checkbox/Checkbox.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/@material-ui/utils/esm/refType.js"); -/* harmony import */ var _internal_SwitchBase__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/internal/SwitchBase.js"); -/* harmony import */ var _internal_svg_icons_CheckBoxOutlineBlank__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/internal/svg-icons/CheckBoxOutlineBlank.js"); -/* harmony import */ var _internal_svg_icons_CheckBox__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/internal/svg-icons/CheckBox.js"); -/* harmony import */ var _styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/colorManipulator.js"); -/* harmony import */ var _internal_svg_icons_IndeterminateCheckBox__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/internal/svg-icons/IndeterminateCheckBox.js"); -/* harmony import */ var _utils_capitalize__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/capitalize.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); - - - - - - - - - - - - - -var styles = function styles(theme) { - return { - /* Styles applied to the root element. */ - root: { - color: theme.palette.text.secondary - }, - - /* Pseudo-class applied to the root element if `checked={true}`. */ - checked: {}, - - /* Pseudo-class applied to the root element if `disabled={true}`. */ - disabled: {}, - - /* Pseudo-class applied to the root element if `indeterminate={true}`. */ - indeterminate: {}, - - /* Styles applied to the root element if `color="primary"`. */ - colorPrimary: { - '&$checked': { - color: theme.palette.primary.main, - '&:hover': { - backgroundColor: (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.alpha)(theme.palette.primary.main, theme.palette.action.hoverOpacity), - // Reset on touch devices, it doesn't add specificity - '@media (hover: none)': { - backgroundColor: 'transparent' - } - } - }, - '&$disabled': { - color: theme.palette.action.disabled - } - }, - - /* Styles applied to the root element if `color="secondary"`. */ - colorSecondary: { - '&$checked': { - color: theme.palette.secondary.main, - '&:hover': { - backgroundColor: (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.alpha)(theme.palette.secondary.main, theme.palette.action.hoverOpacity), - // Reset on touch devices, it doesn't add specificity - '@media (hover: none)': { - backgroundColor: 'transparent' - } - } - }, - '&$disabled': { - color: theme.palette.action.disabled - } - } - }; -}; -var defaultCheckedIcon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_internal_svg_icons_CheckBox__WEBPACK_IMPORTED_MODULE_5__["default"], null); -var defaultIcon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_internal_svg_icons_CheckBoxOutlineBlank__WEBPACK_IMPORTED_MODULE_6__["default"], null); -var defaultIndeterminateIcon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_internal_svg_icons_IndeterminateCheckBox__WEBPACK_IMPORTED_MODULE_7__["default"], null); -var Checkbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function Checkbox(props, ref) { - var _props$checkedIcon = props.checkedIcon, - checkedIcon = _props$checkedIcon === void 0 ? defaultCheckedIcon : _props$checkedIcon, - classes = props.classes, - _props$color = props.color, - color = _props$color === void 0 ? 'secondary' : _props$color, - _props$icon = props.icon, - iconProp = _props$icon === void 0 ? defaultIcon : _props$icon, - _props$indeterminate = props.indeterminate, - indeterminate = _props$indeterminate === void 0 ? false : _props$indeterminate, - _props$indeterminateI = props.indeterminateIcon, - indeterminateIconProp = _props$indeterminateI === void 0 ? defaultIndeterminateIcon : _props$indeterminateI, - inputProps = props.inputProps, - _props$size = props.size, - size = _props$size === void 0 ? 'medium' : _props$size, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["checkedIcon", "classes", "color", "icon", "indeterminate", "indeterminateIcon", "inputProps", "size"]); - - var icon = indeterminate ? indeterminateIconProp : iconProp; - var indeterminateIcon = indeterminate ? indeterminateIconProp : checkedIcon; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_internal_SwitchBase__WEBPACK_IMPORTED_MODULE_8__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - type: "checkbox", - classes: { - root: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, classes["color".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_9__["default"])(color))], indeterminate && classes.indeterminate), - checked: classes.checked, - disabled: classes.disabled - }, - color: color, - inputProps: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - 'data-indeterminate': indeterminate - }, inputProps), - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.cloneElement(icon, { - fontSize: icon.props.fontSize === undefined && size === "small" ? size : icon.props.fontSize - }), - checkedIcon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.cloneElement(indeterminateIcon, { - fontSize: indeterminateIcon.props.fontSize === undefined && size === "small" ? size : indeterminateIcon.props.fontSize - }), - ref: ref - }, other)); -}); - true ? Checkbox.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * If `true`, the component is checked. - */ - checked: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool), - - /** - * The icon to display when the component is checked. - */ - checkedIcon: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().object), - - /** - * The color of the component. It supports those theme colors that make sense for this component. - */ - color: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOf(['default', 'primary', 'secondary']), - - /** - * If `true`, the checkbox will be disabled. - */ - disabled: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool), - - /** - * If `true`, the ripple effect will be disabled. - */ - disableRipple: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool), - - /** - * The icon to display when the component is unchecked. - */ - icon: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().node), - - /** - * The id of the `input` element. - */ - id: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string), - - /** - * If `true`, the component appears indeterminate. - * This does not set the native input element to indeterminate due - * to inconsistent behavior across browsers. - * However, we set a `data-indeterminate` attribute on the input. - */ - indeterminate: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool), - - /** - * The icon to display when the component is indeterminate. - */ - indeterminateIcon: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().node), - - /** - * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element. - */ - inputProps: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().object), - - /** - * Pass a ref to the `input` element. - */ - inputRef: _material_ui_utils__WEBPACK_IMPORTED_MODULE_11__["default"], - - /** - * Callback fired when the state is changed. - * - * @param {object} event The event source of the callback. - * You can pull out the new checked state by accessing `event.target.checked` (boolean). - */ - onChange: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func), - - /** - * If `true`, the `input` element will be required. - */ - required: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool), - - /** - * The size of the checkbox. - * `small` is equivalent to the dense checkbox styling. - */ - size: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOf(['medium', 'small']), - - /** - * The value of the component. The DOM API casts this to a string. - * The browser uses "on" as the default value. - */ - value: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().any) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_12__["default"])(styles, { - name: 'MuiCheckbox' -})(Checkbox)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Chip/Chip.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _internal_svg_icons_Cancel__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/internal/svg-icons/Cancel.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/colorManipulator.js"); -/* harmony import */ var _utils_useForkRef__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useForkRef.js"); -/* harmony import */ var _utils_unsupportedProp__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/unsupportedProp.js"); -/* harmony import */ var _utils_capitalize__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/capitalize.js"); -/* harmony import */ var _ButtonBase__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/ButtonBase/ButtonBase.js"); - - - - - - - - - - - - -var styles = function styles(theme) { - var backgroundColor = theme.palette.type === 'light' ? theme.palette.grey[300] : theme.palette.grey[700]; - var deleteIconColor = (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.alpha)(theme.palette.text.primary, 0.26); - return { - /* Styles applied to the root element. */ - root: { - fontFamily: theme.typography.fontFamily, - fontSize: theme.typography.pxToRem(13), - display: 'inline-flex', - alignItems: 'center', - justifyContent: 'center', - height: 32, - color: theme.palette.getContrastText(backgroundColor), - backgroundColor: backgroundColor, - borderRadius: 32 / 2, - whiteSpace: 'nowrap', - transition: theme.transitions.create(['background-color', 'box-shadow']), - // label will inherit this from root, then `clickable` class overrides this for both - cursor: 'default', - // We disable the focus ring for mouse, touch and keyboard users. - outline: 0, - textDecoration: 'none', - border: 'none', - // Remove `button` border - padding: 0, - // Remove `button` padding - verticalAlign: 'middle', - boxSizing: 'border-box', - '&$disabled': { - opacity: 0.5, - pointerEvents: 'none' - }, - '& $avatar': { - marginLeft: 5, - marginRight: -6, - width: 24, - height: 24, - color: theme.palette.type === 'light' ? theme.palette.grey[700] : theme.palette.grey[300], - fontSize: theme.typography.pxToRem(12) - }, - '& $avatarColorPrimary': { - color: theme.palette.primary.contrastText, - backgroundColor: theme.palette.primary.dark - }, - '& $avatarColorSecondary': { - color: theme.palette.secondary.contrastText, - backgroundColor: theme.palette.secondary.dark - }, - '& $avatarSmall': { - marginLeft: 4, - marginRight: -4, - width: 18, - height: 18, - fontSize: theme.typography.pxToRem(10) - } - }, - - /* Styles applied to the root element if `size="small"`. */ - sizeSmall: { - height: 24 - }, - - /* Styles applied to the root element if `color="primary"`. */ - colorPrimary: { - backgroundColor: theme.palette.primary.main, - color: theme.palette.primary.contrastText - }, - - /* Styles applied to the root element if `color="secondary"`. */ - colorSecondary: { - backgroundColor: theme.palette.secondary.main, - color: theme.palette.secondary.contrastText - }, - - /* Pseudo-class applied to the root element if `disabled={true}`. */ - disabled: {}, - - /* Styles applied to the root element if `onClick` is defined or `clickable={true}`. */ - clickable: { - userSelect: 'none', - WebkitTapHighlightColor: 'transparent', - cursor: 'pointer', - '&:hover, &:focus': { - backgroundColor: (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.emphasize)(backgroundColor, 0.08) - }, - '&:active': { - boxShadow: theme.shadows[1] - } - }, - - /* Styles applied to the root element if `onClick` and `color="primary"` is defined or `clickable={true}`. */ - clickableColorPrimary: { - '&:hover, &:focus': { - backgroundColor: (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.emphasize)(theme.palette.primary.main, 0.08) - } - }, - - /* Styles applied to the root element if `onClick` and `color="secondary"` is defined or `clickable={true}`. */ - clickableColorSecondary: { - '&:hover, &:focus': { - backgroundColor: (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.emphasize)(theme.palette.secondary.main, 0.08) - } - }, - - /* Styles applied to the root element if `onDelete` is defined. */ - deletable: { - '&:focus': { - backgroundColor: (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.emphasize)(backgroundColor, 0.08) - } - }, - - /* Styles applied to the root element if `onDelete` and `color="primary"` is defined. */ - deletableColorPrimary: { - '&:focus': { - backgroundColor: (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.emphasize)(theme.palette.primary.main, 0.2) - } - }, - - /* Styles applied to the root element if `onDelete` and `color="secondary"` is defined. */ - deletableColorSecondary: { - '&:focus': { - backgroundColor: (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.emphasize)(theme.palette.secondary.main, 0.2) - } - }, - - /* Styles applied to the root element if `variant="outlined"`. */ - outlined: { - backgroundColor: 'transparent', - border: "1px solid ".concat(theme.palette.type === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'), - '$clickable&:hover, $clickable&:focus, $deletable&:focus': { - backgroundColor: (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.alpha)(theme.palette.text.primary, theme.palette.action.hoverOpacity) - }, - '& $avatar': { - marginLeft: 4 - }, - '& $avatarSmall': { - marginLeft: 2 - }, - '& $icon': { - marginLeft: 4 - }, - '& $iconSmall': { - marginLeft: 2 - }, - '& $deleteIcon': { - marginRight: 5 - }, - '& $deleteIconSmall': { - marginRight: 3 - } - }, - - /* Styles applied to the root element if `variant="outlined"` and `color="primary"`. */ - outlinedPrimary: { - color: theme.palette.primary.main, - border: "1px solid ".concat(theme.palette.primary.main), - '$clickable&:hover, $clickable&:focus, $deletable&:focus': { - backgroundColor: (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.alpha)(theme.palette.primary.main, theme.palette.action.hoverOpacity) - } - }, - - /* Styles applied to the root element if `variant="outlined"` and `color="secondary"`. */ - outlinedSecondary: { - color: theme.palette.secondary.main, - border: "1px solid ".concat(theme.palette.secondary.main), - '$clickable&:hover, $clickable&:focus, $deletable&:focus': { - backgroundColor: (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.alpha)(theme.palette.secondary.main, theme.palette.action.hoverOpacity) - } - }, - // TODO v5: remove - - /* Styles applied to the `avatar` element. */ - avatar: {}, - - /* Styles applied to the `avatar` element if `size="small"`. */ - avatarSmall: {}, - - /* Styles applied to the `avatar` element if `color="primary"`. */ - avatarColorPrimary: {}, - - /* Styles applied to the `avatar` element if `color="secondary"`. */ - avatarColorSecondary: {}, - - /* Styles applied to the `icon` element. */ - icon: { - color: theme.palette.type === 'light' ? theme.palette.grey[700] : theme.palette.grey[300], - marginLeft: 5, - marginRight: -6 - }, - - /* Styles applied to the `icon` element if `size="small"`. */ - iconSmall: { - width: 18, - height: 18, - marginLeft: 4, - marginRight: -4 - }, - - /* Styles applied to the `icon` element if `color="primary"`. */ - iconColorPrimary: { - color: 'inherit' - }, - - /* Styles applied to the `icon` element if `color="secondary"`. */ - iconColorSecondary: { - color: 'inherit' - }, - - /* Styles applied to the label `span` element. */ - label: { - overflow: 'hidden', - textOverflow: 'ellipsis', - paddingLeft: 12, - paddingRight: 12, - whiteSpace: 'nowrap' - }, - - /* Styles applied to the label `span` element if `size="small"`. */ - labelSmall: { - paddingLeft: 8, - paddingRight: 8 - }, - - /* Styles applied to the `deleteIcon` element. */ - deleteIcon: { - WebkitTapHighlightColor: 'transparent', - color: deleteIconColor, - height: 22, - width: 22, - cursor: 'pointer', - margin: '0 5px 0 -6px', - '&:hover': { - color: (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.alpha)(deleteIconColor, 0.4) - } - }, - - /* Styles applied to the `deleteIcon` element if `size="small"`. */ - deleteIconSmall: { - height: 16, - width: 16, - marginRight: 4, - marginLeft: -4 - }, - - /* Styles applied to the deleteIcon element if `color="primary"` and `variant="default"`. */ - deleteIconColorPrimary: { - color: (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.alpha)(theme.palette.primary.contrastText, 0.7), - '&:hover, &:active': { - color: theme.palette.primary.contrastText - } - }, - - /* Styles applied to the deleteIcon element if `color="secondary"` and `variant="default"`. */ - deleteIconColorSecondary: { - color: (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.alpha)(theme.palette.secondary.contrastText, 0.7), - '&:hover, &:active': { - color: theme.palette.secondary.contrastText - } - }, - - /* Styles applied to the deleteIcon element if `color="primary"` and `variant="outlined"`. */ - deleteIconOutlinedColorPrimary: { - color: (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.alpha)(theme.palette.primary.main, 0.7), - '&:hover, &:active': { - color: theme.palette.primary.main - } - }, - - /* Styles applied to the deleteIcon element if `color="secondary"` and `variant="outlined"`. */ - deleteIconOutlinedColorSecondary: { - color: (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.alpha)(theme.palette.secondary.main, 0.7), - '&:hover, &:active': { - color: theme.palette.secondary.main - } - } - }; -}; - -function isDeleteKeyboardEvent(keyboardEvent) { - return keyboardEvent.key === 'Backspace' || keyboardEvent.key === 'Delete'; -} -/** - * Chips represent complex entities in small blocks, such as a contact. - */ - - -var Chip = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function Chip(props, ref) { - var avatarProp = props.avatar, - classes = props.classes, - className = props.className, - clickableProp = props.clickable, - _props$color = props.color, - color = _props$color === void 0 ? 'default' : _props$color, - ComponentProp = props.component, - deleteIconProp = props.deleteIcon, - _props$disabled = props.disabled, - disabled = _props$disabled === void 0 ? false : _props$disabled, - iconProp = props.icon, - label = props.label, - onClick = props.onClick, - onDelete = props.onDelete, - onKeyDown = props.onKeyDown, - onKeyUp = props.onKeyUp, - _props$size = props.size, - size = _props$size === void 0 ? 'medium' : _props$size, - _props$variant = props.variant, - variant = _props$variant === void 0 ? 'default' : _props$variant, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["avatar", "classes", "className", "clickable", "color", "component", "deleteIcon", "disabled", "icon", "label", "onClick", "onDelete", "onKeyDown", "onKeyUp", "size", "variant"]); - - var chipRef = react__WEBPACK_IMPORTED_MODULE_2__.useRef(null); - var handleRef = (0,_utils_useForkRef__WEBPACK_IMPORTED_MODULE_5__["default"])(chipRef, ref); - - var handleDeleteIconClick = function handleDeleteIconClick(event) { - // Stop the event from bubbling up to the `Chip` - event.stopPropagation(); - - if (onDelete) { - onDelete(event); - } - }; - - var handleKeyDown = function handleKeyDown(event) { - // Ignore events from children of `Chip`. - if (event.currentTarget === event.target && isDeleteKeyboardEvent(event)) { - // will be handled in keyUp, otherwise some browsers - // might init navigation - event.preventDefault(); - } - - if (onKeyDown) { - onKeyDown(event); - } - }; - - var handleKeyUp = function handleKeyUp(event) { - // Ignore events from children of `Chip`. - if (event.currentTarget === event.target) { - if (onDelete && isDeleteKeyboardEvent(event)) { - onDelete(event); - } else if (event.key === 'Escape' && chipRef.current) { - chipRef.current.blur(); - } - } - - if (onKeyUp) { - onKeyUp(event); - } - }; - - var clickable = clickableProp !== false && onClick ? true : clickableProp; - var small = size === 'small'; - var Component = ComponentProp || (clickable ? _ButtonBase__WEBPACK_IMPORTED_MODULE_6__["default"] : 'div'); - var moreProps = Component === _ButtonBase__WEBPACK_IMPORTED_MODULE_6__["default"] ? { - component: 'div' - } : {}; - var deleteIcon = null; - - if (onDelete) { - var customClasses = (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(color !== 'default' && (variant === "default" ? classes["deleteIconColor".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_7__["default"])(color))] : classes["deleteIconOutlinedColor".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_7__["default"])(color))]), small && classes.deleteIconSmall); - deleteIcon = deleteIconProp && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.isValidElement(deleteIconProp) ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.cloneElement(deleteIconProp, { - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(deleteIconProp.props.className, classes.deleteIcon, customClasses), - onClick: handleDeleteIconClick - }) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_internal_svg_icons_Cancel__WEBPACK_IMPORTED_MODULE_8__["default"], { - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.deleteIcon, customClasses), - onClick: handleDeleteIconClick - }); - } - - var avatar = null; - - if (avatarProp && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.isValidElement(avatarProp)) { - avatar = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.cloneElement(avatarProp, { - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.avatar, avatarProp.props.className, small && classes.avatarSmall, color !== 'default' && classes["avatarColor".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_7__["default"])(color))]) - }); - } - - var icon = null; - - if (iconProp && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.isValidElement(iconProp)) { - icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.cloneElement(iconProp, { - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.icon, iconProp.props.className, small && classes.iconSmall, color !== 'default' && classes["iconColor".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_7__["default"])(color))]) - }); - } - - if (true) { - if (avatar && icon) { - console.error('Material-UI: The Chip component can not handle the avatar ' + 'and the icon prop at the same time. Pick one.'); - } - } - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Component, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - role: clickable || onDelete ? 'button' : undefined, - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, className, color !== 'default' && [classes["color".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_7__["default"])(color))], clickable && classes["clickableColor".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_7__["default"])(color))], onDelete && classes["deletableColor".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_7__["default"])(color))]], variant !== "default" && [classes.outlined, { - 'primary': classes.outlinedPrimary, - 'secondary': classes.outlinedSecondary - }[color]], disabled && classes.disabled, small && classes.sizeSmall, clickable && classes.clickable, onDelete && classes.deletable), - "aria-disabled": disabled ? true : undefined, - tabIndex: clickable || onDelete ? 0 : undefined, - onClick: onClick, - onKeyDown: handleKeyDown, - onKeyUp: handleKeyUp, - ref: handleRef - }, moreProps, other), avatar || icon, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", { - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.label, small && classes.labelSmall) - }, label), deleteIcon); -}); - true ? Chip.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * Avatar element. - */ - avatar: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().element), - - /** - * This prop isn't supported. - * Use the `component` prop if you need to change the children structure. - */ - children: _utils_unsupportedProp__WEBPACK_IMPORTED_MODULE_10__["default"], - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string), - - /** - * If `true`, the chip will appear clickable, and will raise when pressed, - * even if the onClick prop is not defined. - * If false, the chip will not be clickable, even if onClick prop is defined. - * This can be used, for example, - * along with the component prop to indicate an anchor Chip is clickable. - */ - clickable: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool), - - /** - * The color of the component. It supports those theme colors that make sense for this component. - */ - color: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOf(['default', 'primary', 'secondary']), - - /** - * The component used for the root node. - * Either a string to use a HTML element or a component. - */ - component: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().elementType), - - /** - * Override the default delete icon element. Shown only if `onDelete` is set. - */ - deleteIcon: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().element), - - /** - * If `true`, the chip should be displayed in a disabled state. - */ - disabled: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool), - - /** - * Icon element. - */ - icon: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().element), - - /** - * The content of the label. - */ - label: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node), - - /** - * @ignore - */ - onClick: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func), - - /** - * Callback function fired when the delete icon is clicked. - * If set, the delete icon will be shown. - */ - onDelete: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func), - - /** - * @ignore - */ - onKeyDown: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func), - - /** - * @ignore - */ - onKeyUp: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func), - - /** - * The size of the chip. - */ - size: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOf(['medium', 'small']), - - /** - * The variant to use. - */ - variant: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOf(['default', 'outlined']) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_11__["default"])(styles, { - name: 'MuiChip' -})(Chip)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/CircularProgress/CircularProgress.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/utils/esm/chainPropTypes.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _utils_capitalize__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/capitalize.js"); - - - - - - - - -var SIZE = 44; -var styles = function styles(theme) { - return { - /* Styles applied to the root element. */ - root: { - display: 'inline-block' - }, - - /* Styles applied to the root element if `variant="static"`. */ - static: { - transition: theme.transitions.create('transform') - }, - - /* Styles applied to the root element if `variant="indeterminate"`. */ - indeterminate: { - animation: '$circular-rotate 1.4s linear infinite' - }, - - /* Styles applied to the root element if `variant="determinate"`. */ - determinate: { - transition: theme.transitions.create('transform') - }, - - /* Styles applied to the root element if `color="primary"`. */ - colorPrimary: { - color: theme.palette.primary.main - }, - - /* Styles applied to the root element if `color="secondary"`. */ - colorSecondary: { - color: theme.palette.secondary.main - }, - - /* Styles applied to the `svg` element. */ - svg: { - display: 'block' // Keeps the progress centered - - }, - - /* Styles applied to the `circle` svg path. */ - circle: { - stroke: 'currentColor' // Use butt to follow the specification, by chance, it's already the default CSS value. - // strokeLinecap: 'butt', - - }, - - /* Styles applied to the `circle` svg path if `variant="static"`. */ - circleStatic: { - transition: theme.transitions.create('stroke-dashoffset') - }, - - /* Styles applied to the `circle` svg path if `variant="indeterminate"`. */ - circleIndeterminate: { - animation: '$circular-dash 1.4s ease-in-out infinite', - // Some default value that looks fine waiting for the animation to kicks in. - strokeDasharray: '80px, 200px', - strokeDashoffset: '0px' // Add the unit to fix a Edge 16 and below bug. - - }, - - /* Styles applied to the `circle` svg path if `variant="determinate"`. */ - circleDeterminate: { - transition: theme.transitions.create('stroke-dashoffset') - }, - '@keyframes circular-rotate': { - '0%': { - // Fix IE 11 wobbly - transformOrigin: '50% 50%' - }, - '100%': { - transform: 'rotate(360deg)' - } - }, - '@keyframes circular-dash': { - '0%': { - strokeDasharray: '1px, 200px', - strokeDashoffset: '0px' - }, - '50%': { - strokeDasharray: '100px, 200px', - strokeDashoffset: '-15px' - }, - '100%': { - strokeDasharray: '100px, 200px', - strokeDashoffset: '-125px' - } - }, - - /* Styles applied to the `circle` svg path if `disableShrink={true}`. */ - circleDisableShrink: { - animation: 'none' - } - }; -}; -/** - * ## ARIA - * - * If the progress bar is describing the loading progress of a particular region of a page, - * you should use `aria-describedby` to point to the progress bar, and set the `aria-busy` - * attribute to `true` on that region until it has finished loading. - */ - -var CircularProgress = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function CircularProgress(props, ref) { - var classes = props.classes, - className = props.className, - _props$color = props.color, - color = _props$color === void 0 ? 'primary' : _props$color, - _props$disableShrink = props.disableShrink, - disableShrink = _props$disableShrink === void 0 ? false : _props$disableShrink, - _props$size = props.size, - size = _props$size === void 0 ? 40 : _props$size, - style = props.style, - _props$thickness = props.thickness, - thickness = _props$thickness === void 0 ? 3.6 : _props$thickness, - _props$value = props.value, - value = _props$value === void 0 ? 0 : _props$value, - _props$variant = props.variant, - variant = _props$variant === void 0 ? 'indeterminate' : _props$variant, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["classes", "className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"]); - - var circleStyle = {}; - var rootStyle = {}; - var rootProps = {}; - - if (variant === 'determinate' || variant === 'static') { - var circumference = 2 * Math.PI * ((SIZE - thickness) / 2); - circleStyle.strokeDasharray = circumference.toFixed(3); - rootProps['aria-valuenow'] = Math.round(value); - circleStyle.strokeDashoffset = "".concat(((100 - value) / 100 * circumference).toFixed(3), "px"); - rootStyle.transform = 'rotate(-90deg)'; - } - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, className, color !== 'inherit' && classes["color".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_4__["default"])(color))], { - 'determinate': classes.determinate, - 'indeterminate': classes.indeterminate, - 'static': classes.static - }[variant]), - style: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - width: size, - height: size - }, rootStyle, style), - ref: ref, - role: "progressbar" - }, rootProps, other), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("svg", { - className: classes.svg, - viewBox: "".concat(SIZE / 2, " ").concat(SIZE / 2, " ").concat(SIZE, " ").concat(SIZE) - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("circle", { - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.circle, disableShrink && classes.circleDisableShrink, { - 'determinate': classes.circleDeterminate, - 'indeterminate': classes.circleIndeterminate, - 'static': classes.circleStatic - }[variant]), - style: circleStyle, - cx: SIZE, - cy: SIZE, - r: (SIZE - thickness) / 2, - fill: "none", - strokeWidth: thickness - }))); -}); - true ? CircularProgress.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), - - /** - * The color of the component. It supports those theme colors that make sense for this component. - */ - color: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOf(['inherit', 'primary', 'secondary']), - - /** - * If `true`, the shrink animation is disabled. - * This only works if variant is `indeterminate`. - */ - disableShrink: (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_6__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), function (props) { - if (props.disableShrink && props.variant && props.variant !== 'indeterminate') { - return new Error('Material-UI: You have provided the `disableShrink` prop ' + 'with a variant other than `indeterminate`. This will have no effect.'); - } - - return null; - }), - - /** - * The size of the circle. - * If using a number, the pixel unit is assumed. - * If using a string, you need to provide the CSS unit, e.g '3rem'. - */ - size: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_5___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string)]), - - /** - * @ignore - */ - style: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object), - - /** - * The thickness of the circle. - */ - thickness: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number), - - /** - * The value of the progress indicator for the determinate variant. - * Value between 0 and 100. - */ - value: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number), - - /** - * The variant to use. - * Use indeterminate when there is no progress value. - */ - variant: (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_6__["default"])(prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOf(['determinate', 'indeterminate', 'static']), function (props) { - var variant = props.variant; - - if (variant === 'static') { - throw new Error('Material-UI: `variant="static"` was deprecated. Use `variant="determinate"` instead.'); - } - - return null; - }) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_7__["default"])(styles, { - name: 'MuiCircularProgress', - flip: false -})(CircularProgress)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/ClickAwayListener/ClickAwayListener.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/react-dom/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _utils_ownerDocument__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/ownerDocument.js"); -/* harmony import */ var _utils_useForkRef__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useForkRef.js"); -/* harmony import */ var _utils_useEventCallback__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useEventCallback.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/utils/esm/elementAcceptingRef.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/utils/esm/exactProp.js"); - - - - - - - - -function mapEventPropToEvent(eventProp) { - return eventProp.substring(2).toLowerCase(); -} - -function clickedRootScrollbar(event) { - return document.documentElement.clientWidth < event.clientX || document.documentElement.clientHeight < event.clientY; -} -/** - * Listen for click events that occur somewhere in the document, outside of the element itself. - * For instance, if you need to hide a menu when people click anywhere else on your page. - */ - - -function ClickAwayListener(props) { - var children = props.children, - _props$disableReactTr = props.disableReactTree, - disableReactTree = _props$disableReactTr === void 0 ? false : _props$disableReactTr, - _props$mouseEvent = props.mouseEvent, - mouseEvent = _props$mouseEvent === void 0 ? 'onClick' : _props$mouseEvent, - onClickAway = props.onClickAway, - _props$touchEvent = props.touchEvent, - touchEvent = _props$touchEvent === void 0 ? 'onTouchEnd' : _props$touchEvent; - var movedRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(false); - var nodeRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null); - var activatedRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(false); - var syntheticEventRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(false); - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () { - // Ensure that this component is not "activated" synchronously. - // https://github.com/facebook/react/issues/20074 - setTimeout(function () { - activatedRef.current = true; - }, 0); - return function () { - activatedRef.current = false; - }; - }, []); // can be removed once we drop support for non ref forwarding class components - - var handleOwnRef = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function (instance) { - // #StrictMode ready - nodeRef.current = react_dom__WEBPACK_IMPORTED_MODULE_1__.findDOMNode(instance); - }, []); - var handleRef = (0,_utils_useForkRef__WEBPACK_IMPORTED_MODULE_2__["default"])(children.ref, handleOwnRef); // The handler doesn't take event.defaultPrevented into account: - // - // event.preventDefault() is meant to stop default behaviours like - // clicking a checkbox to check it, hitting a button to submit a form, - // and hitting left arrow to move the cursor in a text input etc. - // Only special HTML elements have these default behaviors. - - var handleClickAway = (0,_utils_useEventCallback__WEBPACK_IMPORTED_MODULE_3__["default"])(function (event) { - // Given developers can stop the propagation of the synthetic event, - // we can only be confident with a positive value. - var insideReactTree = syntheticEventRef.current; - syntheticEventRef.current = false; // 1. IE 11 support, which trigger the handleClickAway even after the unbind - // 2. The child might render null. - // 3. Behave like a blur listener. - - if (!activatedRef.current || !nodeRef.current || clickedRootScrollbar(event)) { - return; - } // Do not act if user performed touchmove - - - if (movedRef.current) { - movedRef.current = false; - return; - } - - var insideDOM; // If not enough, can use https://github.com/DieterHolvoet/event-propagation-path/blob/master/propagationPath.js - - if (event.composedPath) { - insideDOM = event.composedPath().indexOf(nodeRef.current) > -1; - } else { - // TODO v6 remove dead logic https://caniuse.com/#search=composedPath. - var doc = (0,_utils_ownerDocument__WEBPACK_IMPORTED_MODULE_4__["default"])(nodeRef.current); - insideDOM = !doc.documentElement.contains(event.target) || nodeRef.current.contains(event.target); - } - - if (!insideDOM && (disableReactTree || !insideReactTree)) { - onClickAway(event); - } - }); // Keep track of mouse/touch events that bubbled up through the portal. - - var createHandleSynthetic = function createHandleSynthetic(handlerName) { - return function (event) { - syntheticEventRef.current = true; - var childrenPropsHandler = children.props[handlerName]; - - if (childrenPropsHandler) { - childrenPropsHandler(event); - } - }; - }; - - var childrenProps = { - ref: handleRef - }; - - if (touchEvent !== false) { - childrenProps[touchEvent] = createHandleSynthetic(touchEvent); - } - - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () { - if (touchEvent !== false) { - var mappedTouchEvent = mapEventPropToEvent(touchEvent); - var doc = (0,_utils_ownerDocument__WEBPACK_IMPORTED_MODULE_4__["default"])(nodeRef.current); - - var handleTouchMove = function handleTouchMove() { - movedRef.current = true; - }; - - doc.addEventListener(mappedTouchEvent, handleClickAway); - doc.addEventListener('touchmove', handleTouchMove); - return function () { - doc.removeEventListener(mappedTouchEvent, handleClickAway); - doc.removeEventListener('touchmove', handleTouchMove); - }; - } - - return undefined; - }, [handleClickAway, touchEvent]); - - if (mouseEvent !== false) { - childrenProps[mouseEvent] = createHandleSynthetic(mouseEvent); - } - - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () { - if (mouseEvent !== false) { - var mappedMouseEvent = mapEventPropToEvent(mouseEvent); - var doc = (0,_utils_ownerDocument__WEBPACK_IMPORTED_MODULE_4__["default"])(nodeRef.current); - doc.addEventListener(mappedMouseEvent, handleClickAway); - return function () { - doc.removeEventListener(mappedMouseEvent, handleClickAway); - }; - } - - return undefined; - }, [handleClickAway, mouseEvent]); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(children, childrenProps)); -} - - true ? ClickAwayListener.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * The wrapped element. - */ - children: _material_ui_utils__WEBPACK_IMPORTED_MODULE_5__["default"].isRequired, - - /** - * If `true`, the React tree is ignored and only the DOM tree is considered. - * This prop changes how portaled elements are handled. - */ - disableReactTree: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool), - - /** - * The mouse event to listen to. You can disable the listener by providing `false`. - */ - mouseEvent: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(['onClick', 'onMouseDown', 'onMouseUp', false]), - - /** - * Callback fired when a "click away" event is detected. - */ - onClickAway: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func.isRequired), - - /** - * The touch event to listen to. You can disable the listener by providing `false`. - */ - touchEvent: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(['onTouchEnd', 'onTouchStart', false]) -} : 0; - -if (true) { - // eslint-disable-next-line - ClickAwayListener['propTypes' + ''] = (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_7__["default"])(ClickAwayListener.propTypes); -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ClickAwayListener); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Collapse/Collapse.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/@material-ui/utils/esm/chainPropTypes.js"); -/* harmony import */ var react_transition_group__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/node_modules/react-transition-group/esm/Transition.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _styles_transitions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/transitions.js"); -/* harmony import */ var _utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/deprecatedPropType.js"); -/* harmony import */ var _transitions_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/core/esm/transitions/utils.js"); -/* harmony import */ var _styles_useTheme__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/useTheme.js"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useForkRef.js"); - - - - - - - - - - - - - - -var styles = function styles(theme) { - return { - /* Styles applied to the root element. */ - root: { - height: 0, - overflow: 'hidden', - transition: theme.transitions.create('height') - }, - - /* Styles applied to the root element when the transition has entered. */ - entered: { - height: 'auto', - overflow: 'visible' - }, - - /* Styles applied to the root element when the transition has exited and `collapsedSize` != 0px. */ - hidden: { - visibility: 'hidden' - }, - - /* Styles applied to the outer wrapper element. */ - wrapper: { - // Hack to get children with a negative margin to not falsify the height computation. - display: 'flex' - }, - - /* Styles applied to the inner wrapper element. */ - wrapperInner: { - width: '100%' - } - }; -}; -/** - * The Collapse transition is used by the - * [Vertical Stepper](/components/steppers/#vertical-stepper) StepContent component. - * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally. - */ - -var Collapse = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.forwardRef(function Collapse(props, ref) { - var children = props.children, - classes = props.classes, - className = props.className, - collapsedHeight = props.collapsedHeight, - _props$collapsedSize = props.collapsedSize, - collapsedSizeProp = _props$collapsedSize === void 0 ? '0px' : _props$collapsedSize, - _props$component = props.component, - Component = _props$component === void 0 ? 'div' : _props$component, - _props$disableStrictM = props.disableStrictModeCompat, - disableStrictModeCompat = _props$disableStrictM === void 0 ? false : _props$disableStrictM, - inProp = props.in, - onEnter = props.onEnter, - onEntered = props.onEntered, - onEntering = props.onEntering, - onExit = props.onExit, - onExited = props.onExited, - onExiting = props.onExiting, - style = props.style, - _props$timeout = props.timeout, - timeout = _props$timeout === void 0 ? _styles_transitions__WEBPACK_IMPORTED_MODULE_5__.duration.standard : _props$timeout, - _props$TransitionComp = props.TransitionComponent, - TransitionComponent = _props$TransitionComp === void 0 ? react_transition_group__WEBPACK_IMPORTED_MODULE_6__["default"] : _props$TransitionComp, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__["default"])(props, ["children", "classes", "className", "collapsedHeight", "collapsedSize", "component", "disableStrictModeCompat", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"]); - - var theme = (0,_styles_useTheme__WEBPACK_IMPORTED_MODULE_7__["default"])(); - var timer = react__WEBPACK_IMPORTED_MODULE_3__.useRef(); - var wrapperRef = react__WEBPACK_IMPORTED_MODULE_3__.useRef(null); - var autoTransitionDuration = react__WEBPACK_IMPORTED_MODULE_3__.useRef(); - var collapsedSize = typeof (collapsedHeight || collapsedSizeProp) === 'number' ? "".concat(collapsedHeight || collapsedSizeProp, "px") : collapsedHeight || collapsedSizeProp; - react__WEBPACK_IMPORTED_MODULE_3__.useEffect(function () { - return function () { - clearTimeout(timer.current); - }; - }, []); - var enableStrictModeCompat = theme.unstable_strictMode && !disableStrictModeCompat; - var nodeRef = react__WEBPACK_IMPORTED_MODULE_3__.useRef(null); - var handleRef = (0,_utils__WEBPACK_IMPORTED_MODULE_8__["default"])(ref, enableStrictModeCompat ? nodeRef : undefined); - - var normalizedTransitionCallback = function normalizedTransitionCallback(callback) { - return function (nodeOrAppearing, maybeAppearing) { - if (callback) { - var _ref = enableStrictModeCompat ? [nodeRef.current, nodeOrAppearing] : [nodeOrAppearing, maybeAppearing], - _ref2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, 2), - node = _ref2[0], - isAppearing = _ref2[1]; // onEnterXxx and onExitXxx callbacks have a different arguments.length value. - - - if (isAppearing === undefined) { - callback(node); - } else { - callback(node, isAppearing); - } - } - }; - }; - - var handleEnter = normalizedTransitionCallback(function (node, isAppearing) { - node.style.height = collapsedSize; - - if (onEnter) { - onEnter(node, isAppearing); - } - }); - var handleEntering = normalizedTransitionCallback(function (node, isAppearing) { - var wrapperHeight = wrapperRef.current ? wrapperRef.current.clientHeight : 0; - - var _getTransitionProps = (0,_transitions_utils__WEBPACK_IMPORTED_MODULE_9__.getTransitionProps)({ - style: style, - timeout: timeout - }, { - mode: 'enter' - }), - transitionDuration = _getTransitionProps.duration; - - if (timeout === 'auto') { - var duration2 = theme.transitions.getAutoHeightDuration(wrapperHeight); - node.style.transitionDuration = "".concat(duration2, "ms"); - autoTransitionDuration.current = duration2; - } else { - node.style.transitionDuration = typeof transitionDuration === 'string' ? transitionDuration : "".concat(transitionDuration, "ms"); - } - - node.style.height = "".concat(wrapperHeight, "px"); - - if (onEntering) { - onEntering(node, isAppearing); - } - }); - var handleEntered = normalizedTransitionCallback(function (node, isAppearing) { - node.style.height = 'auto'; - - if (onEntered) { - onEntered(node, isAppearing); - } - }); - var handleExit = normalizedTransitionCallback(function (node) { - var wrapperHeight = wrapperRef.current ? wrapperRef.current.clientHeight : 0; - node.style.height = "".concat(wrapperHeight, "px"); - - if (onExit) { - onExit(node); - } - }); - var handleExited = normalizedTransitionCallback(onExited); - var handleExiting = normalizedTransitionCallback(function (node) { - var wrapperHeight = wrapperRef.current ? wrapperRef.current.clientHeight : 0; - - var _getTransitionProps2 = (0,_transitions_utils__WEBPACK_IMPORTED_MODULE_9__.getTransitionProps)({ - style: style, - timeout: timeout - }, { - mode: 'exit' - }), - transitionDuration = _getTransitionProps2.duration; - - if (timeout === 'auto') { - var duration2 = theme.transitions.getAutoHeightDuration(wrapperHeight); - node.style.transitionDuration = "".concat(duration2, "ms"); - autoTransitionDuration.current = duration2; - } else { - node.style.transitionDuration = typeof transitionDuration === 'string' ? transitionDuration : "".concat(transitionDuration, "ms"); - } - - node.style.height = collapsedSize; - - if (onExiting) { - onExiting(node); - } - }); - - var addEndListener = function addEndListener(nodeOrNext, maybeNext) { - var next = enableStrictModeCompat ? nodeOrNext : maybeNext; - - if (timeout === 'auto') { - timer.current = setTimeout(next, autoTransitionDuration.current || 0); - } - }; - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(TransitionComponent, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - in: inProp, - onEnter: handleEnter, - onEntered: handleEntered, - onEntering: handleEntering, - onExit: handleExit, - onExited: handleExited, - onExiting: handleExiting, - addEndListener: addEndListener, - nodeRef: enableStrictModeCompat ? nodeRef : undefined, - timeout: timeout === 'auto' ? null : timeout - }, other), function (state, childProps) { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(Component, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_4__["default"])(classes.root, classes.container, className, { - 'entered': classes.entered, - 'exited': !inProp && collapsedSize === '0px' && classes.hidden - }[state]), - style: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - minHeight: collapsedSize - }, style), - ref: handleRef - }, childProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("div", { - className: classes.wrapper, - ref: wrapperRef - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("div", { - className: classes.wrapperInner - }, children))); - }); -}); - true ? Collapse.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * The content node to be collapsed. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_11__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_10___default().object), function (props) { - if (props.classes && props.classes.container) { - throw new Error(['Material-UI: the classes.container key is deprecated.', 'Use `classes.root` instead', 'The name of the pseudo-class was changed for consistency.'].join('\n')); - } - - return null; - }), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string), - - /** - * The height of the container when collapsed. - * @deprecated The prop was renamed to support the addition of horizontal orientation, use `collapsedSize` instead. - */ - collapsedHeight: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_12__["default"])(prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_10___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string)]), 'The prop was renamed to support the vertical orientation, use `collapsedSize` instead'), - - /** - * The height of the container when collapsed. - */ - collapsedSize: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_10___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string)]), - - /** - * The component used for the root node. - * Either a string to use a HTML element or a component. - */ - component: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().elementType), - - /** - * Enable this prop if you encounter 'Function components cannot be given refs', - * use `unstable_createStrictModeTheme`, - * and can't forward the ref in the passed `Component`. - */ - disableStrictModeCompat: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool), - - /** - * If `true`, the component will transition in. - */ - in: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool), - - /** - * @ignore - */ - onEnter: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func), - - /** - * @ignore - */ - onEntered: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func), - - /** - * @ignore - */ - onEntering: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func), - - /** - * @ignore - */ - onExit: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func), - - /** - * @ignore - */ - onExited: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func), - - /** - * @ignore - */ - onExiting: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func), - - /** - * @ignore - */ - style: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().object), - - /** - * The duration for the transition, in milliseconds. - * You may specify a single timeout for all transitions, or individually with an object. - * - * Set to 'auto' to automatically calculate transition time based on height. - */ - timeout: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOf(['auto']), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().number), prop_types__WEBPACK_IMPORTED_MODULE_10___default().shape({ - appear: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().number), - enter: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().number), - exit: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().number) - })]) -} : 0; -Collapse.muiSupportAuto = true; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_13__["default"])(styles, { - name: 'MuiCollapse' -})(Collapse)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Container/Container.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _utils_capitalize__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/capitalize.js"); - - - - - - - - -var styles = function styles(theme) { - return { - /* Styles applied to the root element. */ - root: (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__["default"])({ - width: '100%', - marginLeft: 'auto', - boxSizing: 'border-box', - marginRight: 'auto', - paddingLeft: theme.spacing(2), - paddingRight: theme.spacing(2), - display: 'block' - }, theme.breakpoints.up('sm'), { - paddingLeft: theme.spacing(3), - paddingRight: theme.spacing(3) - }), - - /* Styles applied to the root element if `disableGutters={true}`. */ - disableGutters: { - paddingLeft: 0, - paddingRight: 0 - }, - - /* Styles applied to the root element if `fixed={true}`. */ - fixed: Object.keys(theme.breakpoints.values).reduce(function (acc, breakpoint) { - var value = theme.breakpoints.values[breakpoint]; - - if (value !== 0) { - acc[theme.breakpoints.up(breakpoint)] = { - maxWidth: value - }; - } - - return acc; - }, {}), - - /* Styles applied to the root element if `maxWidth="xs"`. */ - maxWidthXs: (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__["default"])({}, theme.breakpoints.up('xs'), { - maxWidth: Math.max(theme.breakpoints.values.xs, 444) - }), - - /* Styles applied to the root element if `maxWidth="sm"`. */ - maxWidthSm: (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__["default"])({}, theme.breakpoints.up('sm'), { - maxWidth: theme.breakpoints.values.sm - }), - - /* Styles applied to the root element if `maxWidth="md"`. */ - maxWidthMd: (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__["default"])({}, theme.breakpoints.up('md'), { - maxWidth: theme.breakpoints.values.md - }), - - /* Styles applied to the root element if `maxWidth="lg"`. */ - maxWidthLg: (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__["default"])({}, theme.breakpoints.up('lg'), { - maxWidth: theme.breakpoints.values.lg - }), - - /* Styles applied to the root element if `maxWidth="xl"`. */ - maxWidthXl: (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__["default"])({}, theme.breakpoints.up('xl'), { - maxWidth: theme.breakpoints.values.xl - }) - }; -}; -var Container = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.forwardRef(function Container(props, ref) { - var classes = props.classes, - className = props.className, - _props$component = props.component, - Component = _props$component === void 0 ? 'div' : _props$component, - _props$disableGutters = props.disableGutters, - disableGutters = _props$disableGutters === void 0 ? false : _props$disableGutters, - _props$fixed = props.fixed, - fixed = _props$fixed === void 0 ? false : _props$fixed, - _props$maxWidth = props.maxWidth, - maxWidth = _props$maxWidth === void 0 ? 'lg' : _props$maxWidth, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["classes", "className", "component", "disableGutters", "fixed", "maxWidth"]); - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(Component, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_4__["default"])(classes.root, className, fixed && classes.fixed, disableGutters && classes.disableGutters, maxWidth !== false && classes["maxWidth".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_5__["default"])(String(maxWidth)))]), - ref: ref - }, other)); -}); - true ? Container.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * @ignore - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().node.isRequired), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string), - - /** - * The component used for the root node. - * Either a string to use a HTML element or a component. - */ - component: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().elementType), - - /** - * If `true`, the left and right padding is removed. - */ - disableGutters: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool), - - /** - * Set the max-width to match the min-width of the current breakpoint. - * This is useful if you'd prefer to design for a fixed set of sizes - * instead of trying to accommodate a fully fluid viewport. - * It's fluid by default. - */ - fixed: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool), - - /** - * Determine the max-width of the container. - * The container width grows with the size of the screen. - * Set to `false` to disable `maxWidth`. - */ - maxWidth: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(['lg', 'md', 'sm', 'xl', 'xs', false]) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_7__["default"])(styles, { - name: 'MuiContainer' -})(Container)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/CssBaseline/CssBaseline.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "body": () => (/* binding */ body), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "html": () => (/* binding */ html), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@material-ui/utils/esm/exactProp.js"); - - - - - -var html = { - WebkitFontSmoothing: 'antialiased', - // Antialiasing. - MozOsxFontSmoothing: 'grayscale', - // Antialiasing. - // Change from `box-sizing: content-box` so that `width` - // is not affected by `padding` or `border`. - boxSizing: 'border-box' -}; -var body = function body(theme) { - return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - color: theme.palette.text.primary - }, theme.typography.body2, { - backgroundColor: theme.palette.background.default, - '@media print': { - // Save printer ink. - backgroundColor: theme.palette.common.white - } - }); -}; -var styles = function styles(theme) { - return { - '@global': { - html: html, - '*, *::before, *::after': { - boxSizing: 'inherit' - }, - 'strong, b': { - fontWeight: theme.typography.fontWeightBold - }, - body: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - margin: 0 - }, body(theme), { - // Add support for document.body.requestFullScreen(). - // Other elements, if background transparent, are not supported. - '&::backdrop': { - backgroundColor: theme.palette.background.default - } - }) - } - }; -}; -/** - * Kickstart an elegant, consistent, and simple baseline to build upon. - */ - -function CssBaseline(props) { - /* eslint-disable no-unused-vars */ - var _props$children = props.children, - children = _props$children === void 0 ? null : _props$children, - classes = props.classes; - /* eslint-enable no-unused-vars */ - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, children); -} - - true ? CssBaseline.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * You can wrap a node. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object) -} : 0; - -if (true) { - // eslint-disable-next-line - CssBaseline['propTypes' + ''] = (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_3__["default"])(CssBaseline.propTypes); -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_4__["default"])(styles, { - name: 'MuiCssBaseline' -})(CssBaseline)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Dialog/Dialog.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _utils_capitalize__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/capitalize.js"); -/* harmony import */ var _utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/deprecatedPropType.js"); -/* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/Modal/Modal.js"); -/* harmony import */ var _Backdrop__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/core/esm/Backdrop/Backdrop.js"); -/* harmony import */ var _Fade__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/Fade/Fade.js"); -/* harmony import */ var _styles_transitions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/transitions.js"); -/* harmony import */ var _Paper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/Paper/Paper.js"); - - - - - - - - - - - - - - -var styles = function styles(theme) { - return { - /* Styles applied to the root element. */ - root: { - '@media print': { - // Use !important to override the Modal inline-style. - position: 'absolute !important' - } - }, - - /* Styles applied to the container element if `scroll="paper"`. */ - scrollPaper: { - display: 'flex', - justifyContent: 'center', - alignItems: 'center' - }, - - /* Styles applied to the container element if `scroll="body"`. */ - scrollBody: { - overflowY: 'auto', - overflowX: 'hidden', - textAlign: 'center', - '&:after': { - content: '""', - display: 'inline-block', - verticalAlign: 'middle', - height: '100%', - width: '0' - } - }, - - /* Styles applied to the container element. */ - container: { - height: '100%', - '@media print': { - height: 'auto' - }, - // We disable the focus ring for mouse, touch and keyboard users. - outline: 0 - }, - - /* Styles applied to the `Paper` component. */ - paper: { - margin: 32, - position: 'relative', - overflowY: 'auto', - // Fix IE 11 issue, to remove at some point. - '@media print': { - overflowY: 'visible', - boxShadow: 'none' - } - }, - - /* Styles applied to the `Paper` component if `scroll="paper"`. */ - paperScrollPaper: { - display: 'flex', - flexDirection: 'column', - maxHeight: 'calc(100% - 64px)' - }, - - /* Styles applied to the `Paper` component if `scroll="body"`. */ - paperScrollBody: { - display: 'inline-block', - verticalAlign: 'middle', - textAlign: 'left' // 'initial' doesn't work on IE 11 - - }, - - /* Styles applied to the `Paper` component if `maxWidth=false`. */ - paperWidthFalse: { - maxWidth: 'calc(100% - 64px)' - }, - - /* Styles applied to the `Paper` component if `maxWidth="xs"`. */ - paperWidthXs: { - maxWidth: Math.max(theme.breakpoints.values.xs, 444), - '&$paperScrollBody': (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__["default"])({}, theme.breakpoints.down(Math.max(theme.breakpoints.values.xs, 444) + 32 * 2), { - maxWidth: 'calc(100% - 64px)' - }) - }, - - /* Styles applied to the `Paper` component if `maxWidth="sm"`. */ - paperWidthSm: { - maxWidth: theme.breakpoints.values.sm, - '&$paperScrollBody': (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__["default"])({}, theme.breakpoints.down(theme.breakpoints.values.sm + 32 * 2), { - maxWidth: 'calc(100% - 64px)' - }) - }, - - /* Styles applied to the `Paper` component if `maxWidth="md"`. */ - paperWidthMd: { - maxWidth: theme.breakpoints.values.md, - '&$paperScrollBody': (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__["default"])({}, theme.breakpoints.down(theme.breakpoints.values.md + 32 * 2), { - maxWidth: 'calc(100% - 64px)' - }) - }, - - /* Styles applied to the `Paper` component if `maxWidth="lg"`. */ - paperWidthLg: { - maxWidth: theme.breakpoints.values.lg, - '&$paperScrollBody': (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__["default"])({}, theme.breakpoints.down(theme.breakpoints.values.lg + 32 * 2), { - maxWidth: 'calc(100% - 64px)' - }) - }, - - /* Styles applied to the `Paper` component if `maxWidth="xl"`. */ - paperWidthXl: { - maxWidth: theme.breakpoints.values.xl, - '&$paperScrollBody': (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__["default"])({}, theme.breakpoints.down(theme.breakpoints.values.xl + 32 * 2), { - maxWidth: 'calc(100% - 64px)' - }) - }, - - /* Styles applied to the `Paper` component if `fullWidth={true}`. */ - paperFullWidth: { - width: 'calc(100% - 64px)' - }, - - /* Styles applied to the `Paper` component if `fullScreen={true}`. */ - paperFullScreen: { - margin: 0, - width: '100%', - maxWidth: '100%', - height: '100%', - maxHeight: 'none', - borderRadius: 0, - '&$paperScrollBody': { - margin: 0, - maxWidth: '100%' - } - } - }; -}; -var defaultTransitionDuration = { - enter: _styles_transitions__WEBPACK_IMPORTED_MODULE_5__.duration.enteringScreen, - exit: _styles_transitions__WEBPACK_IMPORTED_MODULE_5__.duration.leavingScreen -}; -/** - * Dialogs are overlaid modal paper based components with a backdrop. - */ - -var Dialog = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.forwardRef(function Dialog(props, ref) { - var BackdropProps = props.BackdropProps, - children = props.children, - classes = props.classes, - className = props.className, - _props$disableBackdro = props.disableBackdropClick, - disableBackdropClick = _props$disableBackdro === void 0 ? false : _props$disableBackdro, - _props$disableEscapeK = props.disableEscapeKeyDown, - disableEscapeKeyDown = _props$disableEscapeK === void 0 ? false : _props$disableEscapeK, - _props$fullScreen = props.fullScreen, - fullScreen = _props$fullScreen === void 0 ? false : _props$fullScreen, - _props$fullWidth = props.fullWidth, - fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, - _props$maxWidth = props.maxWidth, - maxWidth = _props$maxWidth === void 0 ? 'sm' : _props$maxWidth, - onBackdropClick = props.onBackdropClick, - onClose = props.onClose, - onEnter = props.onEnter, - onEntered = props.onEntered, - onEntering = props.onEntering, - onEscapeKeyDown = props.onEscapeKeyDown, - onExit = props.onExit, - onExited = props.onExited, - onExiting = props.onExiting, - open = props.open, - _props$PaperComponent = props.PaperComponent, - PaperComponent = _props$PaperComponent === void 0 ? _Paper__WEBPACK_IMPORTED_MODULE_6__["default"] : _props$PaperComponent, - _props$PaperProps = props.PaperProps, - PaperProps = _props$PaperProps === void 0 ? {} : _props$PaperProps, - _props$scroll = props.scroll, - scroll = _props$scroll === void 0 ? 'paper' : _props$scroll, - _props$TransitionComp = props.TransitionComponent, - TransitionComponent = _props$TransitionComp === void 0 ? _Fade__WEBPACK_IMPORTED_MODULE_7__["default"] : _props$TransitionComp, - _props$transitionDura = props.transitionDuration, - transitionDuration = _props$transitionDura === void 0 ? defaultTransitionDuration : _props$transitionDura, - TransitionProps = props.TransitionProps, - ariaDescribedby = props['aria-describedby'], - ariaLabelledby = props['aria-labelledby'], - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["BackdropProps", "children", "classes", "className", "disableBackdropClick", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClose", "onEnter", "onEntered", "onEntering", "onEscapeKeyDown", "onExit", "onExited", "onExiting", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps", "aria-describedby", "aria-labelledby"]); - - var mouseDownTarget = react__WEBPACK_IMPORTED_MODULE_3__.useRef(); - - var handleMouseDown = function handleMouseDown(event) { - mouseDownTarget.current = event.target; - }; - - var handleBackdropClick = function handleBackdropClick(event) { - // Ignore the events not coming from the "backdrop" - // We don't want to close the dialog when clicking the dialog content. - if (event.target !== event.currentTarget) { - return; - } // Make sure the event starts and ends on the same DOM element. - - - if (event.target !== mouseDownTarget.current) { - return; - } - - mouseDownTarget.current = null; - - if (onBackdropClick) { - onBackdropClick(event); - } - - if (!disableBackdropClick && onClose) { - onClose(event, 'backdropClick'); - } - }; - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(_Modal__WEBPACK_IMPORTED_MODULE_8__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_4__["default"])(classes.root, className), - BackdropComponent: _Backdrop__WEBPACK_IMPORTED_MODULE_9__["default"], - BackdropProps: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - transitionDuration: transitionDuration - }, BackdropProps), - closeAfterTransition: true - }, disableBackdropClick ? { - disableBackdropClick: disableBackdropClick - } : {}, { - disableEscapeKeyDown: disableEscapeKeyDown, - onEscapeKeyDown: onEscapeKeyDown, - onClose: onClose, - open: open, - ref: ref - }, other), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(TransitionComponent, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - appear: true, - in: open, - timeout: transitionDuration, - onEnter: onEnter, - onEntering: onEntering, - onEntered: onEntered, - onExit: onExit, - onExiting: onExiting, - onExited: onExited, - role: "none presentation" - }, TransitionProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("div", { - className: (0,clsx__WEBPACK_IMPORTED_MODULE_4__["default"])(classes.container, classes["scroll".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_10__["default"])(scroll))]), - onMouseUp: handleBackdropClick, - onMouseDown: handleMouseDown - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(PaperComponent, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - elevation: 24, - role: "dialog", - "aria-describedby": ariaDescribedby, - "aria-labelledby": ariaLabelledby - }, PaperProps, { - className: (0,clsx__WEBPACK_IMPORTED_MODULE_4__["default"])(classes.paper, classes["paperScroll".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_10__["default"])(scroll))], classes["paperWidth".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_10__["default"])(String(maxWidth)))], PaperProps.className, fullScreen && classes.paperFullScreen, fullWidth && classes.paperFullWidth) - }), children)))); -}); - true ? Dialog.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * The id(s) of the element(s) that describe the dialog. - */ - 'aria-describedby': (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), - - /** - * The id(s) of the element(s) that label the dialog. - */ - 'aria-labelledby': (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), - - /** - * @ignore - */ - BackdropProps: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), - - /** - * Dialog children, usually the included sub-components. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), - - /** - * If `true`, clicking the backdrop will not fire the `onClose` callback. - * @deprecated Use the onClose prop with the `reason` argument to filter the `backdropClick` events. - */ - disableBackdropClick: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_12__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool), 'Use the onClose prop with the `reason` argument to filter the `backdropClick` events.'), - - /** - * If `true`, hitting escape will not fire the `onClose` callback. - */ - disableEscapeKeyDown: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool), - - /** - * If `true`, the dialog will be full-screen - */ - fullScreen: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool), - - /** - * If `true`, the dialog stretches to `maxWidth`. - * - * Notice that the dialog width grow is limited by the default margin. - */ - fullWidth: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool), - - /** - * Determine the max-width of the dialog. - * The dialog width grows with the size of the screen. - * Set to `false` to disable `maxWidth`. - */ - maxWidth: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(['lg', 'md', 'sm', 'xl', 'xs', false]), - - /** - * Callback fired when the backdrop is clicked. - * @deprecated Use the onClose prop with the `reason` argument to handle the `backdropClick` events. - */ - onBackdropClick: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_12__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), 'Use the onClose prop with the `reason` argument to handle the `backdropClick` events.'), - - /** - * Callback fired when the component requests to be closed. - * - * @param {object} event The event source of the callback. - * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`. - */ - onClose: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), - - /** - * Callback fired before the dialog enters. - * @deprecated Use the `TransitionProps` prop instead. - */ - onEnter: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_12__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), 'Use the `TransitionProps` prop instead.'), - - /** - * Callback fired when the dialog has entered. - * @deprecated Use the `TransitionProps` prop instead. - */ - onEntered: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_12__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), 'Use the `TransitionProps` prop instead.'), - - /** - * Callback fired when the dialog is entering. - * @deprecated Use the `TransitionProps` prop instead. - */ - onEntering: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_12__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), 'Use the `TransitionProps` prop instead.'), - - /** - * Callback fired when the escape key is pressed, - * `disableKeyboard` is false and the modal is in focus. - * @deprecated Use the onClose prop with the `reason` argument to handle the `escapeKeyDown` events. - */ - onEscapeKeyDown: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_12__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), 'Use the onClose prop with the `reason` argument to handle the `escapeKeyDown` events.'), - - /** - * Callback fired before the dialog exits. - * @deprecated Use the `TransitionProps` prop instead. - */ - onExit: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_12__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), 'Use the `TransitionProps` prop instead.'), - - /** - * Callback fired when the dialog has exited. - * @deprecated Use the `TransitionProps` prop instead. - */ - onExited: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_12__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), 'Use the `TransitionProps` prop instead.'), - - /** - * Callback fired when the dialog is exiting. - * @deprecated Use the `TransitionProps` prop instead. - */ - onExiting: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_12__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), 'Use the `TransitionProps` prop instead.'), - - /** - * If `true`, the Dialog is open. - */ - open: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool.isRequired), - - /** - * The component used to render the body of the dialog. - */ - PaperComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().elementType), - - /** - * Props applied to the [`Paper`](/api/paper/) element. - */ - PaperProps: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), - - /** - * Determine the container for scrolling the dialog. - */ - scroll: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(['body', 'paper']), - - /** - * The component used for the transition. - * [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component. - */ - TransitionComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().elementType), - - /** - * The duration for the transition, in milliseconds. - * You may specify a single timeout for all transitions, or individually with an object. - */ - transitionDuration: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({ - appear: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), - enter: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), - exit: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number) - })]), - - /** - * Props applied to the [`Transition`](http://reactcommunity.org/react-transition-group/transition#Transition-props) element. - */ - TransitionProps: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_13__["default"])(styles, { - name: 'MuiDialog' -})(Dialog)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/DialogActions/DialogActions.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); - - - - - - -var styles = { - /* Styles applied to the root element. */ - root: { - display: 'flex', - alignItems: 'center', - padding: 8, - justifyContent: 'flex-end', - flex: '0 0 auto' - }, - - /* Styles applied to the root element if `disableSpacing={false}`. */ - spacing: { - '& > :not(:first-child)': { - marginLeft: 8 - } - } -}; -var DialogActions = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function DialogActions(props, ref) { - var _props$disableSpacing = props.disableSpacing, - disableSpacing = _props$disableSpacing === void 0 ? false : _props$disableSpacing, - classes = props.classes, - className = props.className, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["disableSpacing", "classes", "className"]); - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, className, !disableSpacing && classes.spacing), - ref: ref - }, other)); -}); - true ? DialogActions.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * The content of the component. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().string), - - /** - * If `true`, the actions do not have additional margin. - */ - disableSpacing: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_5__["default"])(styles, { - name: 'MuiDialogActions' -})(DialogActions)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/DialogContent/DialogContent.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); - - - - - - -var styles = function styles(theme) { - return { - /* Styles applied to the root element. */ - root: { - flex: '1 1 auto', - WebkitOverflowScrolling: 'touch', - // Add iOS momentum scrolling. - overflowY: 'auto', - padding: '8px 24px', - '&:first-child': { - // dialog without title - paddingTop: 20 - } - }, - - /* Styles applied to the root element if `dividers={true}`. */ - dividers: { - padding: '16px 24px', - borderTop: "1px solid ".concat(theme.palette.divider), - borderBottom: "1px solid ".concat(theme.palette.divider) - } - }; -}; -var DialogContent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function DialogContent(props, ref) { - var classes = props.classes, - className = props.className, - _props$dividers = props.dividers, - dividers = _props$dividers === void 0 ? false : _props$dividers, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["classes", "className", "dividers"]); - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, className, dividers && classes.dividers), - ref: ref - }, other)); -}); - true ? DialogContent.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * The content of the component. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().string), - - /** - * Display the top and bottom dividers. - */ - dividers: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_5__["default"])(styles, { - name: 'MuiDialogContent' -})(DialogContent)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/DialogTitle/DialogTitle.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _Typography__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/Typography/Typography.js"); - - - - - - - -var styles = { - /* Styles applied to the root element. */ - root: { - margin: 0, - padding: '16px 24px', - flex: '0 0 auto' - } -}; -var DialogTitle = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function DialogTitle(props, ref) { - var children = props.children, - classes = props.classes, - className = props.className, - _props$disableTypogra = props.disableTypography, - disableTypography = _props$disableTypogra === void 0 ? false : _props$disableTypogra, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["children", "classes", "className", "disableTypography"]); - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, className), - ref: ref - }, other), disableTypography ? children : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_Typography__WEBPACK_IMPORTED_MODULE_4__["default"], { - component: "h2", - variant: "h6" - }, children)); -}); - true ? DialogTitle.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * The content of the component. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), - - /** - * If `true`, the children won't be wrapped by a typography component. - * For instance, this can be useful to render an h4 instead of the default h2. - */ - disableTypography: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_6__["default"])(styles, { - name: 'MuiDialogTitle' -})(DialogTitle)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Divider/Divider.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/colorManipulator.js"); - - - - - - - -var styles = function styles(theme) { - return { - /* Styles applied to the root element. */ - root: { - height: 1, - margin: 0, - // Reset browser default style. - border: 'none', - flexShrink: 0, - backgroundColor: theme.palette.divider - }, - - /* Styles applied to the root element if `absolute={true}`. */ - absolute: { - position: 'absolute', - bottom: 0, - left: 0, - width: '100%' - }, - - /* Styles applied to the root element if `variant="inset"`. */ - inset: { - marginLeft: 72 - }, - - /* Styles applied to the root element if `light={true}`. */ - light: { - backgroundColor: (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.alpha)(theme.palette.divider, 0.08) - }, - - /* Styles applied to the root element if `variant="middle"`. */ - middle: { - marginLeft: theme.spacing(2), - marginRight: theme.spacing(2) - }, - - /* Styles applied to the root element if `orientation="vertical"`. */ - vertical: { - height: '100%', - width: 1 - }, - - /* Styles applied to the root element if `flexItem={true}`. */ - flexItem: { - alignSelf: 'stretch', - height: 'auto' - } - }; -}; -var Divider = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function Divider(props, ref) { - var _props$absolute = props.absolute, - absolute = _props$absolute === void 0 ? false : _props$absolute, - classes = props.classes, - className = props.className, - _props$component = props.component, - Component = _props$component === void 0 ? 'hr' : _props$component, - _props$flexItem = props.flexItem, - flexItem = _props$flexItem === void 0 ? false : _props$flexItem, - _props$light = props.light, - light = _props$light === void 0 ? false : _props$light, - _props$orientation = props.orientation, - orientation = _props$orientation === void 0 ? 'horizontal' : _props$orientation, - _props$role = props.role, - role = _props$role === void 0 ? Component !== 'hr' ? 'separator' : undefined : _props$role, - _props$variant = props.variant, - variant = _props$variant === void 0 ? 'fullWidth' : _props$variant, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["absolute", "classes", "className", "component", "flexItem", "light", "orientation", "role", "variant"]); - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Component, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, className, variant !== 'fullWidth' && classes[variant], absolute && classes.absolute, flexItem && classes.flexItem, light && classes.light, orientation === 'vertical' && classes.vertical), - role: role, - ref: ref - }, other)); -}); - true ? Divider.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * Absolutely position the element. - */ - absolute: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - - /** - * @ignore - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), - - /** - * The component used for the root node. - * Either a string to use a HTML element or a component. - */ - component: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().elementType), - - /** - * If `true`, a vertical divider will have the correct height when used in flex container. - * (By default, a vertical divider will have a calculated height of `0px` if it is the child of a flex container.) - */ - flexItem: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - - /** - * If `true`, the divider will have a lighter color. - */ - light: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - - /** - * The divider orientation. - */ - orientation: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOf(['horizontal', 'vertical']), - - /** - * @ignore - */ - role: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), - - /** - * The variant to use. - */ - variant: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOf(['fullWidth', 'inset', 'middle']) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_6__["default"])(styles, { - name: 'MuiDivider' -})(Divider)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Drawer/Drawer.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "getAnchor": () => (/* binding */ getAnchor), -/* harmony export */ "isHorizontal": () => (/* binding */ isHorizontal), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/core/esm/Modal/Modal.js"); -/* harmony import */ var _Backdrop__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/core/esm/Backdrop/Backdrop.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _Slide__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/Slide/Slide.js"); -/* harmony import */ var _Paper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/Paper/Paper.js"); -/* harmony import */ var _utils_capitalize__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/capitalize.js"); -/* harmony import */ var _styles_transitions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/transitions.js"); -/* harmony import */ var _styles_useTheme__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/useTheme.js"); - - - - - - - - - - - - - -var styles = function styles(theme) { - return { - /* Styles applied to the root element. */ - root: {}, - - /* Styles applied to the root element if `variant="permanent or persistent"`. */ - docked: { - flex: '0 0 auto' - }, - - /* Styles applied to the `Paper` component. */ - paper: { - overflowY: 'auto', - display: 'flex', - flexDirection: 'column', - height: '100%', - flex: '1 0 auto', - zIndex: theme.zIndex.drawer, - WebkitOverflowScrolling: 'touch', - // Add iOS momentum scrolling. - // temporary style - position: 'fixed', - top: 0, - // We disable the focus ring for mouse, touch and keyboard users. - // At some point, it would be better to keep it for keyboard users. - // :focus-ring CSS pseudo-class will help. - outline: 0 - }, - - /* Styles applied to the `Paper` component if `anchor="left"`. */ - paperAnchorLeft: { - left: 0, - right: 'auto' - }, - - /* Styles applied to the `Paper` component if `anchor="right"`. */ - paperAnchorRight: { - left: 'auto', - right: 0 - }, - - /* Styles applied to the `Paper` component if `anchor="top"`. */ - paperAnchorTop: { - top: 0, - left: 0, - bottom: 'auto', - right: 0, - height: 'auto', - maxHeight: '100%' - }, - - /* Styles applied to the `Paper` component if `anchor="bottom"`. */ - paperAnchorBottom: { - top: 'auto', - left: 0, - bottom: 0, - right: 0, - height: 'auto', - maxHeight: '100%' - }, - - /* Styles applied to the `Paper` component if `anchor="left"` and `variant` is not "temporary". */ - paperAnchorDockedLeft: { - borderRight: "1px solid ".concat(theme.palette.divider) - }, - - /* Styles applied to the `Paper` component if `anchor="top"` and `variant` is not "temporary". */ - paperAnchorDockedTop: { - borderBottom: "1px solid ".concat(theme.palette.divider) - }, - - /* Styles applied to the `Paper` component if `anchor="right"` and `variant` is not "temporary". */ - paperAnchorDockedRight: { - borderLeft: "1px solid ".concat(theme.palette.divider) - }, - - /* Styles applied to the `Paper` component if `anchor="bottom"` and `variant` is not "temporary". */ - paperAnchorDockedBottom: { - borderTop: "1px solid ".concat(theme.palette.divider) - }, - - /* Styles applied to the `Modal` component. */ - modal: {} - }; -}; -var oppositeDirection = { - left: 'right', - right: 'left', - top: 'down', - bottom: 'up' -}; -function isHorizontal(anchor) { - return ['left', 'right'].indexOf(anchor) !== -1; -} -function getAnchor(theme, anchor) { - return theme.direction === 'rtl' && isHorizontal(anchor) ? oppositeDirection[anchor] : anchor; -} -var defaultTransitionDuration = { - enter: _styles_transitions__WEBPACK_IMPORTED_MODULE_4__.duration.enteringScreen, - exit: _styles_transitions__WEBPACK_IMPORTED_MODULE_4__.duration.leavingScreen -}; -/** - * The props of the [Modal](/api/modal/) component are available - * when `variant="temporary"` is set. - */ - -var Drawer = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function Drawer(props, ref) { - var _props$anchor = props.anchor, - anchorProp = _props$anchor === void 0 ? 'left' : _props$anchor, - BackdropProps = props.BackdropProps, - children = props.children, - classes = props.classes, - className = props.className, - _props$elevation = props.elevation, - elevation = _props$elevation === void 0 ? 16 : _props$elevation, - _props$ModalProps = props.ModalProps; - _props$ModalProps = _props$ModalProps === void 0 ? {} : _props$ModalProps; - - var BackdropPropsProp = _props$ModalProps.BackdropProps, - ModalProps = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(_props$ModalProps, ["BackdropProps"]), - onClose = props.onClose, - _props$open = props.open, - open = _props$open === void 0 ? false : _props$open, - _props$PaperProps = props.PaperProps, - PaperProps = _props$PaperProps === void 0 ? {} : _props$PaperProps, - SlideProps = props.SlideProps, - _props$TransitionComp = props.TransitionComponent, - TransitionComponent = _props$TransitionComp === void 0 ? _Slide__WEBPACK_IMPORTED_MODULE_5__["default"] : _props$TransitionComp, - _props$transitionDura = props.transitionDuration, - transitionDuration = _props$transitionDura === void 0 ? defaultTransitionDuration : _props$transitionDura, - _props$variant = props.variant, - variant = _props$variant === void 0 ? 'temporary' : _props$variant, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["anchor", "BackdropProps", "children", "classes", "className", "elevation", "ModalProps", "onClose", "open", "PaperProps", "SlideProps", "TransitionComponent", "transitionDuration", "variant"]); - - var theme = (0,_styles_useTheme__WEBPACK_IMPORTED_MODULE_6__["default"])(); // Let's assume that the Drawer will always be rendered on user space. - // We use this state is order to skip the appear transition during the - // initial mount of the component. - - var mounted = react__WEBPACK_IMPORTED_MODULE_2__.useRef(false); - react__WEBPACK_IMPORTED_MODULE_2__.useEffect(function () { - mounted.current = true; - }, []); - var anchor = getAnchor(theme, anchorProp); - var drawer = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_Paper__WEBPACK_IMPORTED_MODULE_7__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - elevation: variant === 'temporary' ? elevation : 0, - square: true - }, PaperProps, { - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.paper, classes["paperAnchor".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_8__["default"])(anchor))], PaperProps.className, variant !== 'temporary' && classes["paperAnchorDocked".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_8__["default"])(anchor))]) - }), children); - - if (variant === 'permanent') { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, classes.docked, className), - ref: ref - }, other), drawer); - } - - var slidingDrawer = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(TransitionComponent, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - in: open, - direction: oppositeDirection[anchor], - timeout: transitionDuration, - appear: mounted.current - }, SlideProps), drawer); - - if (variant === 'persistent') { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, classes.docked, className), - ref: ref - }, other), slidingDrawer); - } // variant === temporary - - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_Modal__WEBPACK_IMPORTED_MODULE_9__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - BackdropProps: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, BackdropProps, BackdropPropsProp, { - transitionDuration: transitionDuration - }), - BackdropComponent: _Backdrop__WEBPACK_IMPORTED_MODULE_10__["default"], - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, classes.modal, className), - open: open, - onClose: onClose, - ref: ref - }, other, ModalProps), slidingDrawer); -}); - true ? Drawer.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * Side from which the drawer will appear. - */ - anchor: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(['bottom', 'left', 'right', 'top']), - - /** - * @ignore - */ - BackdropProps: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), - - /** - * The contents of the drawer. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), - - /** - * The elevation of the drawer. - */ - elevation: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), - - /** - * Props applied to the [`Modal`](/api/modal/) element. - */ - ModalProps: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), - - /** - * Callback fired when the component requests to be closed. - * - * @param {object} event The event source of the callback. - */ - onClose: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), - - /** - * If `true`, the drawer is open. - */ - open: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool), - - /** - * Props applied to the [`Paper`](/api/paper/) element. - */ - PaperProps: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), - - /** - * Props applied to the [`Slide`](/api/slide/) element. - */ - SlideProps: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), - - /** - * The duration for the transition, in milliseconds. - * You may specify a single timeout for all transitions, or individually with an object. - */ - transitionDuration: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({ - appear: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), - enter: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), - exit: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number) - })]), - - /** - * The variant to use. - */ - variant: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(['permanent', 'persistent', 'temporary']) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_12__["default"])(styles, { - name: 'MuiDrawer', - flip: false -})(Drawer)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Fade/Fade.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__); -/* harmony import */ var react_transition_group__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/node_modules/react-transition-group/esm/Transition.js"); -/* harmony import */ var _styles_transitions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/transitions.js"); -/* harmony import */ var _styles_useTheme__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/useTheme.js"); -/* harmony import */ var _transitions_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/transitions/utils.js"); -/* harmony import */ var _utils_useForkRef__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useForkRef.js"); - - - - - - - - - - -var styles = { - entering: { - opacity: 1 - }, - entered: { - opacity: 1 - } -}; -var defaultTimeout = { - enter: _styles_transitions__WEBPACK_IMPORTED_MODULE_4__.duration.enteringScreen, - exit: _styles_transitions__WEBPACK_IMPORTED_MODULE_4__.duration.leavingScreen -}; -/** - * The Fade transition is used by the [Modal](/components/modal/) component. - * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally. - */ - -var Fade = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.forwardRef(function Fade(props, ref) { - var children = props.children, - _props$disableStrictM = props.disableStrictModeCompat, - disableStrictModeCompat = _props$disableStrictM === void 0 ? false : _props$disableStrictM, - inProp = props.in, - onEnter = props.onEnter, - onEntered = props.onEntered, - onEntering = props.onEntering, - onExit = props.onExit, - onExited = props.onExited, - onExiting = props.onExiting, - style = props.style, - _props$TransitionComp = props.TransitionComponent, - TransitionComponent = _props$TransitionComp === void 0 ? react_transition_group__WEBPACK_IMPORTED_MODULE_5__["default"] : _props$TransitionComp, - _props$timeout = props.timeout, - timeout = _props$timeout === void 0 ? defaultTimeout : _props$timeout, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__["default"])(props, ["children", "disableStrictModeCompat", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "TransitionComponent", "timeout"]); - - var theme = (0,_styles_useTheme__WEBPACK_IMPORTED_MODULE_6__["default"])(); - var enableStrictModeCompat = theme.unstable_strictMode && !disableStrictModeCompat; - var nodeRef = react__WEBPACK_IMPORTED_MODULE_3__.useRef(null); - var foreignRef = (0,_utils_useForkRef__WEBPACK_IMPORTED_MODULE_7__["default"])(children.ref, ref); - var handleRef = (0,_utils_useForkRef__WEBPACK_IMPORTED_MODULE_7__["default"])(enableStrictModeCompat ? nodeRef : undefined, foreignRef); - - var normalizedTransitionCallback = function normalizedTransitionCallback(callback) { - return function (nodeOrAppearing, maybeAppearing) { - if (callback) { - var _ref = enableStrictModeCompat ? [nodeRef.current, nodeOrAppearing] : [nodeOrAppearing, maybeAppearing], - _ref2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, 2), - node = _ref2[0], - isAppearing = _ref2[1]; // onEnterXxx and onExitXxx callbacks have a different arguments.length value. - - - if (isAppearing === undefined) { - callback(node); - } else { - callback(node, isAppearing); - } - } - }; - }; - - var handleEntering = normalizedTransitionCallback(onEntering); - var handleEnter = normalizedTransitionCallback(function (node, isAppearing) { - (0,_transitions_utils__WEBPACK_IMPORTED_MODULE_8__.reflow)(node); // So the animation always start from the start. - - var transitionProps = (0,_transitions_utils__WEBPACK_IMPORTED_MODULE_8__.getTransitionProps)({ - style: style, - timeout: timeout - }, { - mode: 'enter' - }); - node.style.webkitTransition = theme.transitions.create('opacity', transitionProps); - node.style.transition = theme.transitions.create('opacity', transitionProps); - - if (onEnter) { - onEnter(node, isAppearing); - } - }); - var handleEntered = normalizedTransitionCallback(onEntered); - var handleExiting = normalizedTransitionCallback(onExiting); - var handleExit = normalizedTransitionCallback(function (node) { - var transitionProps = (0,_transitions_utils__WEBPACK_IMPORTED_MODULE_8__.getTransitionProps)({ - style: style, - timeout: timeout - }, { - mode: 'exit' - }); - node.style.webkitTransition = theme.transitions.create('opacity', transitionProps); - node.style.transition = theme.transitions.create('opacity', transitionProps); - - if (onExit) { - onExit(node); - } - }); - var handleExited = normalizedTransitionCallback(onExited); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(TransitionComponent, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - appear: true, - in: inProp, - nodeRef: enableStrictModeCompat ? nodeRef : undefined, - onEnter: handleEnter, - onEntered: handleEntered, - onEntering: handleEntering, - onExit: handleExit, - onExited: handleExited, - onExiting: handleExiting, - timeout: timeout - }, other), function (state, childProps) { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.cloneElement(children, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - style: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - opacity: 0, - visibility: state === 'exited' && !inProp ? 'hidden' : undefined - }, styles[state], style, children.props.style), - ref: handleRef - }, childProps)); - }); -}); - true ? Fade.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * A single child content element. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().element), - - /** - * Enable this prop if you encounter 'Function components cannot be given refs', - * use `unstable_createStrictModeTheme`, - * and can't forward the ref in the child component. - */ - disableStrictModeCompat: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool), - - /** - * If `true`, the component will transition in. - */ - in: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool), - - /** - * @ignore - */ - onEnter: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func), - - /** - * @ignore - */ - onEntered: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func), - - /** - * @ignore - */ - onEntering: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func), - - /** - * @ignore - */ - onExit: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func), - - /** - * @ignore - */ - onExited: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func), - - /** - * @ignore - */ - onExiting: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func), - - /** - * @ignore - */ - style: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object), - - /** - * The duration for the transition, in milliseconds. - * You may specify a single timeout for all transitions, or individually with an object. - */ - timeout: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_9___default().number), prop_types__WEBPACK_IMPORTED_MODULE_9___default().shape({ - appear: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().number), - enter: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().number), - exit: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().number) - })]) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Fade); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/FilledInput/FilledInput.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/utils/esm/refType.js"); -/* harmony import */ var _InputBase__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/InputBase/InputBase.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); - - - - - - - - -var styles = function styles(theme) { - var light = theme.palette.type === 'light'; - var bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)'; - var backgroundColor = light ? 'rgba(0, 0, 0, 0.09)' : 'rgba(255, 255, 255, 0.09)'; - return { - /* Styles applied to the root element. */ - root: { - position: 'relative', - backgroundColor: backgroundColor, - borderTopLeftRadius: theme.shape.borderRadius, - borderTopRightRadius: theme.shape.borderRadius, - transition: theme.transitions.create('background-color', { - duration: theme.transitions.duration.shorter, - easing: theme.transitions.easing.easeOut - }), - '&:hover': { - backgroundColor: light ? 'rgba(0, 0, 0, 0.13)' : 'rgba(255, 255, 255, 0.13)', - // Reset on touch devices, it doesn't add specificity - '@media (hover: none)': { - backgroundColor: backgroundColor - } - }, - '&$focused': { - backgroundColor: light ? 'rgba(0, 0, 0, 0.09)' : 'rgba(255, 255, 255, 0.09)' - }, - '&$disabled': { - backgroundColor: light ? 'rgba(0, 0, 0, 0.12)' : 'rgba(255, 255, 255, 0.12)' - } - }, - - /* Styles applied to the root element if color secondary. */ - colorSecondary: { - '&$underline:after': { - borderBottomColor: theme.palette.secondary.main - } - }, - - /* Styles applied to the root element if `disableUnderline={false}`. */ - underline: { - '&:after': { - borderBottom: "2px solid ".concat(theme.palette.primary.main), - left: 0, - bottom: 0, - // Doing the other way around crash on IE 11 "''" https://github.com/cssinjs/jss/issues/242 - content: '""', - position: 'absolute', - right: 0, - transform: 'scaleX(0)', - transition: theme.transitions.create('transform', { - duration: theme.transitions.duration.shorter, - easing: theme.transitions.easing.easeOut - }), - pointerEvents: 'none' // Transparent to the hover style. - - }, - '&$focused:after': { - transform: 'scaleX(1)' - }, - '&$error:after': { - borderBottomColor: theme.palette.error.main, - transform: 'scaleX(1)' // error is always underlined in red - - }, - '&:before': { - borderBottom: "1px solid ".concat(bottomLineColor), - left: 0, - bottom: 0, - // Doing the other way around crash on IE 11 "''" https://github.com/cssinjs/jss/issues/242 - content: '"\\00a0"', - position: 'absolute', - right: 0, - transition: theme.transitions.create('border-bottom-color', { - duration: theme.transitions.duration.shorter - }), - pointerEvents: 'none' // Transparent to the hover style. - - }, - '&:hover:before': { - borderBottom: "1px solid ".concat(theme.palette.text.primary) - }, - '&$disabled:before': { - borderBottomStyle: 'dotted' - } - }, - - /* Pseudo-class applied to the root element if the component is focused. */ - focused: {}, - - /* Pseudo-class applied to the root element if `disabled={true}`. */ - disabled: {}, - - /* Styles applied to the root element if `startAdornment` is provided. */ - adornedStart: { - paddingLeft: 12 - }, - - /* Styles applied to the root element if `endAdornment` is provided. */ - adornedEnd: { - paddingRight: 12 - }, - - /* Pseudo-class applied to the root element if `error={true}`. */ - error: {}, - - /* Styles applied to the `input` element if `margin="dense"`. */ - marginDense: {}, - - /* Styles applied to the root element if `multiline={true}`. */ - multiline: { - padding: '27px 12px 10px', - '&$marginDense': { - paddingTop: 23, - paddingBottom: 6 - } - }, - - /* Styles applied to the `input` element. */ - input: { - padding: '27px 12px 10px', - '&:-webkit-autofill': { - WebkitBoxShadow: theme.palette.type === 'light' ? null : '0 0 0 100px #266798 inset', - WebkitTextFillColor: theme.palette.type === 'light' ? null : '#fff', - caretColor: theme.palette.type === 'light' ? null : '#fff', - borderTopLeftRadius: 'inherit', - borderTopRightRadius: 'inherit' - } - }, - - /* Styles applied to the `input` element if `margin="dense"`. */ - inputMarginDense: { - paddingTop: 23, - paddingBottom: 6 - }, - - /* Styles applied to the `input` if in ``. */ - inputHiddenLabel: { - paddingTop: 18, - paddingBottom: 19, - '&$inputMarginDense': { - paddingTop: 10, - paddingBottom: 11 - } - }, - - /* Styles applied to the `input` element if `multiline={true}`. */ - inputMultiline: { - padding: 0 - }, - - /* Styles applied to the `input` element if `startAdornment` is provided. */ - inputAdornedStart: { - paddingLeft: 0 - }, - - /* Styles applied to the `input` element if `endAdornment` is provided. */ - inputAdornedEnd: { - paddingRight: 0 - } - }; -}; -var FilledInput = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function FilledInput(props, ref) { - var disableUnderline = props.disableUnderline, - classes = props.classes, - _props$fullWidth = props.fullWidth, - fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, - _props$inputComponent = props.inputComponent, - inputComponent = _props$inputComponent === void 0 ? 'input' : _props$inputComponent, - _props$multiline = props.multiline, - multiline = _props$multiline === void 0 ? false : _props$multiline, - _props$type = props.type, - type = _props$type === void 0 ? 'text' : _props$type, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["disableUnderline", "classes", "fullWidth", "inputComponent", "multiline", "type"]); - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_InputBase__WEBPACK_IMPORTED_MODULE_4__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - classes: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, classes, { - root: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, !disableUnderline && classes.underline), - underline: null - }), - fullWidth: fullWidth, - inputComponent: inputComponent, - multiline: multiline, - ref: ref, - type: type - }, other)); -}); - true ? FilledInput.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * This prop helps users to fill forms faster, especially on mobile devices. - * The name can be confusing, as it's more like an autofill. - * You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill). - */ - autoComplete: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), - - /** - * If `true`, the `input` element will be focused during the first mount. - */ - autoFocus: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object), - - /** - * The color of the component. It supports those theme colors that make sense for this component. - */ - color: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOf(['primary', 'secondary']), - - /** - * The default `input` element value. Use when the component is not controlled. - */ - defaultValue: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().any), - - /** - * If `true`, the `input` element will be disabled. - */ - disabled: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - - /** - * If `true`, the input will not have an underline. - */ - disableUnderline: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - - /** - * End `InputAdornment` for this component. - */ - endAdornment: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().node), - - /** - * If `true`, the input will indicate an error. This is normally obtained via context from - * FormControl. - */ - error: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - - /** - * If `true`, the input will take up the full width of its container. - */ - fullWidth: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - - /** - * The id of the `input` element. - */ - id: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), - - /** - * The component used for the `input` element. - * Either a string to use a HTML element or a component. - */ - inputComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().elementType), - - /** - * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element. - */ - inputProps: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object), - - /** - * Pass a ref to the `input` element. - */ - inputRef: _material_ui_utils__WEBPACK_IMPORTED_MODULE_6__["default"], - - /** - * If `dense`, will adjust vertical spacing. This is normally obtained via context from - * FormControl. - */ - margin: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOf(['dense', 'none']), - - /** - * Maximum number of rows to display when multiline option is set to true. - */ - maxRows: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_5___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string)]), - - /** - * If `true`, a textarea element will be rendered. - */ - multiline: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - - /** - * Name attribute of the `input` element. - */ - name: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), - - /** - * Callback fired when the value is changed. - * - * @param {object} event The event source of the callback. - * You can pull out the new value by accessing `event.target.value` (string). - */ - onChange: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().func), - - /** - * The short hint displayed in the input before the user enters a value. - */ - placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), - - /** - * It prevents the user from changing the value of the field - * (not from interacting with the field). - */ - readOnly: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - - /** - * If `true`, the `input` element will be required. - */ - required: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - - /** - * Number of rows to display when multiline option is set to true. - */ - rows: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_5___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string)]), - - /** - * Start `InputAdornment` for this component. - */ - startAdornment: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().node), - - /** - * Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types). - */ - type: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), - - /** - * The value of the `input` element, required for a controlled component. - */ - value: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().any) -} : 0; -FilledInput.muiName = 'Input'; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_7__["default"])(styles, { - name: 'MuiFilledInput' -})(FilledInput)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/FormControl/FormControl.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _InputBase_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/InputBase/utils.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _utils_capitalize__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/capitalize.js"); -/* harmony import */ var _utils_isMuiElement__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/isMuiElement.js"); -/* harmony import */ var _FormControlContext__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormControl/FormControlContext.js"); - - - - - - - - - - -var styles = { - /* Styles applied to the root element. */ - root: { - display: 'inline-flex', - flexDirection: 'column', - position: 'relative', - // Reset fieldset default style. - minWidth: 0, - padding: 0, - margin: 0, - border: 0, - verticalAlign: 'top' // Fix alignment issue on Safari. - - }, - - /* Styles applied to the root element if `margin="normal"`. */ - marginNormal: { - marginTop: 16, - marginBottom: 8 - }, - - /* Styles applied to the root element if `margin="dense"`. */ - marginDense: { - marginTop: 8, - marginBottom: 4 - }, - - /* Styles applied to the root element if `fullWidth={true}`. */ - fullWidth: { - width: '100%' - } -}; -/** - * Provides context such as filled/focused/error/required for form inputs. - * Relying on the context provides high flexibility and ensures that the state always stays - * consistent across the children of the `FormControl`. - * This context is used by the following components: - * - * - FormLabel - * - FormHelperText - * - Input - * - InputLabel - * - * You can find one composition example below and more going to [the demos](/components/text-fields/#components). - * - * ```jsx - * - * Email address - * - * We'll never share your email. - * - * ``` - * - * ⚠️Only one input can be used within a FormControl. - */ - -var FormControl = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function FormControl(props, ref) { - var children = props.children, - classes = props.classes, - className = props.className, - _props$color = props.color, - color = _props$color === void 0 ? 'primary' : _props$color, - _props$component = props.component, - Component = _props$component === void 0 ? 'div' : _props$component, - _props$disabled = props.disabled, - disabled = _props$disabled === void 0 ? false : _props$disabled, - _props$error = props.error, - error = _props$error === void 0 ? false : _props$error, - _props$fullWidth = props.fullWidth, - fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, - visuallyFocused = props.focused, - _props$hiddenLabel = props.hiddenLabel, - hiddenLabel = _props$hiddenLabel === void 0 ? false : _props$hiddenLabel, - _props$margin = props.margin, - margin = _props$margin === void 0 ? 'none' : _props$margin, - _props$required = props.required, - required = _props$required === void 0 ? false : _props$required, - size = props.size, - _props$variant = props.variant, - variant = _props$variant === void 0 ? 'standard' : _props$variant, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["children", "classes", "className", "color", "component", "disabled", "error", "fullWidth", "focused", "hiddenLabel", "margin", "required", "size", "variant"]); - - var _React$useState = react__WEBPACK_IMPORTED_MODULE_2__.useState(function () { - // We need to iterate through the children and find the Input in order - // to fully support server-side rendering. - var initialAdornedStart = false; - - if (children) { - react__WEBPACK_IMPORTED_MODULE_2__.Children.forEach(children, function (child) { - if (!(0,_utils_isMuiElement__WEBPACK_IMPORTED_MODULE_4__["default"])(child, ['Input', 'Select'])) { - return; - } - - var input = (0,_utils_isMuiElement__WEBPACK_IMPORTED_MODULE_4__["default"])(child, ['Select']) ? child.props.input : child; - - if (input && (0,_InputBase_utils__WEBPACK_IMPORTED_MODULE_5__.isAdornedStart)(input.props)) { - initialAdornedStart = true; - } - }); - } - - return initialAdornedStart; - }), - adornedStart = _React$useState[0], - setAdornedStart = _React$useState[1]; - - var _React$useState2 = react__WEBPACK_IMPORTED_MODULE_2__.useState(function () { - // We need to iterate through the children and find the Input in order - // to fully support server-side rendering. - var initialFilled = false; - - if (children) { - react__WEBPACK_IMPORTED_MODULE_2__.Children.forEach(children, function (child) { - if (!(0,_utils_isMuiElement__WEBPACK_IMPORTED_MODULE_4__["default"])(child, ['Input', 'Select'])) { - return; - } - - if ((0,_InputBase_utils__WEBPACK_IMPORTED_MODULE_5__.isFilled)(child.props, true)) { - initialFilled = true; - } - }); - } - - return initialFilled; - }), - filled = _React$useState2[0], - setFilled = _React$useState2[1]; - - var _React$useState3 = react__WEBPACK_IMPORTED_MODULE_2__.useState(false), - _focused = _React$useState3[0], - setFocused = _React$useState3[1]; - - var focused = visuallyFocused !== undefined ? visuallyFocused : _focused; - - if (disabled && focused) { - setFocused(false); - } - - var registerEffect; - - if (true) { - // eslint-disable-next-line react-hooks/rules-of-hooks - var registeredInput = react__WEBPACK_IMPORTED_MODULE_2__.useRef(false); - - registerEffect = function registerEffect() { - if (registeredInput.current) { - console.error(['Material-UI: There are multiple InputBase components inside a FormControl.', 'This is not supported. It might cause infinite rendering loops.', 'Only use one InputBase.'].join('\n')); - } - - registeredInput.current = true; - return function () { - registeredInput.current = false; - }; - }; - } - - var onFilled = react__WEBPACK_IMPORTED_MODULE_2__.useCallback(function () { - setFilled(true); - }, []); - var onEmpty = react__WEBPACK_IMPORTED_MODULE_2__.useCallback(function () { - setFilled(false); - }, []); - var childContext = { - adornedStart: adornedStart, - setAdornedStart: setAdornedStart, - color: color, - disabled: disabled, - error: error, - filled: filled, - focused: focused, - fullWidth: fullWidth, - hiddenLabel: hiddenLabel, - margin: (size === 'small' ? 'dense' : undefined) || margin, - onBlur: function onBlur() { - setFocused(false); - }, - onEmpty: onEmpty, - onFilled: onFilled, - onFocus: function onFocus() { - setFocused(true); - }, - registerEffect: registerEffect, - required: required, - variant: variant - }; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_FormControlContext__WEBPACK_IMPORTED_MODULE_6__["default"].Provider, { - value: childContext - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Component, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, className, margin !== 'none' && classes["margin".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_7__["default"])(margin))], fullWidth && classes.fullWidth), - ref: ref - }, other), children)); -}); - true ? FormControl.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * The contents of the form control. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string), - - /** - * The color of the component. It supports those theme colors that make sense for this component. - */ - color: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOf(['primary', 'secondary']), - - /** - * The component used for the root node. - * Either a string to use a HTML element or a component. - */ - component: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().elementType), - - /** - * If `true`, the label, input and helper text should be displayed in a disabled state. - */ - disabled: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool), - - /** - * If `true`, the label should be displayed in an error state. - */ - error: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool), - - /** - * If `true`, the component will be displayed in focused state. - */ - focused: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool), - - /** - * If `true`, the component will take up the full width of its container. - */ - fullWidth: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool), - - /** - * If `true`, the label will be hidden. - * This is used to increase density for a `FilledInput`. - * Be sure to add `aria-label` to the `input` element. - */ - hiddenLabel: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool), - - /** - * If `dense` or `normal`, will adjust vertical spacing of this and contained components. - */ - margin: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOf(['dense', 'none', 'normal']), - - /** - * If `true`, the label will indicate that the input is required. - */ - required: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool), - - /** - * The size of the text field. - */ - size: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOf(['medium', 'small']), - - /** - * The variant to use. - */ - variant: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOf(['filled', 'outlined', 'standard']) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_9__["default"])(styles, { - name: 'MuiFormControl' -})(FormControl)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/FormControl/FormControlContext.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "useFormControl": () => (/* binding */ useFormControl) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); - -/** - * @ignore - internal component. - */ - -var FormControlContext = react__WEBPACK_IMPORTED_MODULE_0__.createContext(); - -if (true) { - FormControlContext.displayName = 'FormControlContext'; -} - -function useFormControl() { - return react__WEBPACK_IMPORTED_MODULE_0__.useContext(FormControlContext); -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (FormControlContext); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/FormControl/formControlState.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ formControlState) -/* harmony export */ }); -function formControlState(_ref) { - var props = _ref.props, - states = _ref.states, - muiFormControl = _ref.muiFormControl; - return states.reduce(function (acc, state) { - acc[state] = props[state]; - - if (muiFormControl) { - if (typeof props[state] === 'undefined') { - acc[state] = muiFormControl[state]; - } - } - - return acc; - }, {}); -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/FormControl/useFormControl.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ useFormControl) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _FormControlContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormControl/FormControlContext.js"); - - -function useFormControl() { - return react__WEBPACK_IMPORTED_MODULE_0__.useContext(_FormControlContext__WEBPACK_IMPORTED_MODULE_1__["default"]); -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/FormControlLabel/FormControlLabel.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/utils/esm/refType.js"); -/* harmony import */ var _FormControl__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormControl/useFormControl.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _Typography__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/Typography/Typography.js"); -/* harmony import */ var _utils_capitalize__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/capitalize.js"); - - - - - - - - - - -var styles = function styles(theme) { - return { - /* Styles applied to the root element. */ - root: { - display: 'inline-flex', - alignItems: 'center', - cursor: 'pointer', - // For correct alignment with the text. - verticalAlign: 'middle', - WebkitTapHighlightColor: 'transparent', - marginLeft: -11, - marginRight: 16, - // used for row presentation of radio/checkbox - '&$disabled': { - cursor: 'default' - } - }, - - /* Styles applied to the root element if `labelPlacement="start"`. */ - labelPlacementStart: { - flexDirection: 'row-reverse', - marginLeft: 16, - // used for row presentation of radio/checkbox - marginRight: -11 - }, - - /* Styles applied to the root element if `labelPlacement="top"`. */ - labelPlacementTop: { - flexDirection: 'column-reverse', - marginLeft: 16 - }, - - /* Styles applied to the root element if `labelPlacement="bottom"`. */ - labelPlacementBottom: { - flexDirection: 'column', - marginLeft: 16 - }, - - /* Pseudo-class applied to the root element if `disabled={true}`. */ - disabled: {}, - - /* Styles applied to the label's Typography component. */ - label: { - '&$disabled': { - color: theme.palette.text.disabled - } - } - }; -}; -/** - * Drop in replacement of the `Radio`, `Switch` and `Checkbox` component. - * Use this component if you want to display an extra label. - */ - -var FormControlLabel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function FormControlLabel(props, ref) { - var checked = props.checked, - classes = props.classes, - className = props.className, - control = props.control, - disabledProp = props.disabled, - inputRef = props.inputRef, - label = props.label, - _props$labelPlacement = props.labelPlacement, - labelPlacement = _props$labelPlacement === void 0 ? 'end' : _props$labelPlacement, - name = props.name, - onChange = props.onChange, - value = props.value, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["checked", "classes", "className", "control", "disabled", "inputRef", "label", "labelPlacement", "name", "onChange", "value"]); - - var muiFormControl = (0,_FormControl__WEBPACK_IMPORTED_MODULE_4__["default"])(); - var disabled = disabledProp; - - if (typeof disabled === 'undefined' && typeof control.props.disabled !== 'undefined') { - disabled = control.props.disabled; - } - - if (typeof disabled === 'undefined' && muiFormControl) { - disabled = muiFormControl.disabled; - } - - var controlProps = { - disabled: disabled - }; - ['checked', 'name', 'onChange', 'value', 'inputRef'].forEach(function (key) { - if (typeof control.props[key] === 'undefined' && typeof props[key] !== 'undefined') { - controlProps[key] = props[key]; - } - }); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("label", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, className, labelPlacement !== 'end' && classes["labelPlacement".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_5__["default"])(labelPlacement))], disabled && classes.disabled), - ref: ref - }, other), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.cloneElement(control, controlProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_Typography__WEBPACK_IMPORTED_MODULE_6__["default"], { - component: "span", - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.label, disabled && classes.disabled) - }, label)); -}); - true ? FormControlLabel.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * If `true`, the component appears selected. - */ - checked: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), - - /** - * A control element. For instance, it can be be a `Radio`, a `Switch` or a `Checkbox`. - */ - control: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().element.isRequired), - - /** - * If `true`, the control will be disabled. - */ - disabled: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * Pass a ref to the `input` element. - */ - inputRef: _material_ui_utils__WEBPACK_IMPORTED_MODULE_8__["default"], - - /** - * The text to be used in an enclosing label element. - */ - label: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().node), - - /** - * The position of the label. - */ - labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(['bottom', 'end', 'start', 'top']), - - /** - * @ignore - */ - name: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), - - /** - * Callback fired when the state is changed. - * - * @param {object} event The event source of the callback. - * You can pull out the new checked state by accessing `event.target.checked` (boolean). - */ - onChange: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), - - /** - * The value of the component. - */ - value: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().any) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_9__["default"])(styles, { - name: 'MuiFormControlLabel' -})(FormControlLabel)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/FormGroup/FormGroup.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); - - - - - - -var styles = { - /* Styles applied to the root element. */ - root: { - display: 'flex', - flexDirection: 'column', - flexWrap: 'wrap' - }, - - /* Styles applied to the root element if `row={true}`. */ - row: { - flexDirection: 'row' - } -}; -/** - * `FormGroup` wraps controls such as `Checkbox` and `Switch`. - * It provides compact row layout. - * For the `Radio`, you should be using the `RadioGroup` component instead of this one. - */ - -var FormGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function FormGroup(props, ref) { - var classes = props.classes, - className = props.className, - _props$row = props.row, - row = _props$row === void 0 ? false : _props$row, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["classes", "className", "row"]); - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, className, row && classes.row), - ref: ref - }, other)); -}); - true ? FormGroup.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * The content of the component. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().string), - - /** - * Display group of elements in a compact row. - */ - row: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_5__["default"])(styles, { - name: 'MuiFormGroup' -})(FormGroup)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/FormHelperText/FormHelperText.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _FormControl_formControlState__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormControl/formControlState.js"); -/* harmony import */ var _FormControl_useFormControl__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormControl/useFormControl.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); - - - - - - - - -var styles = function styles(theme) { - return { - /* Styles applied to the root element. */ - root: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - color: theme.palette.text.secondary - }, theme.typography.caption, { - textAlign: 'left', - marginTop: 3, - margin: 0, - '&$disabled': { - color: theme.palette.text.disabled - }, - '&$error': { - color: theme.palette.error.main - } - }), - - /* Pseudo-class applied to the root element if `error={true}`. */ - error: {}, - - /* Pseudo-class applied to the root element if `disabled={true}`. */ - disabled: {}, - - /* Styles applied to the root element if `margin="dense"`. */ - marginDense: { - marginTop: 4 - }, - - /* Styles applied to the root element if `variant="filled"` or `variant="outlined"`. */ - contained: { - marginLeft: 14, - marginRight: 14 - }, - - /* Pseudo-class applied to the root element if `focused={true}`. */ - focused: {}, - - /* Pseudo-class applied to the root element if `filled={true}`. */ - filled: {}, - - /* Pseudo-class applied to the root element if `required={true}`. */ - required: {} - }; -}; -var FormHelperText = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function FormHelperText(props, ref) { - var children = props.children, - classes = props.classes, - className = props.className, - _props$component = props.component, - Component = _props$component === void 0 ? 'p' : _props$component, - disabled = props.disabled, - error = props.error, - filled = props.filled, - focused = props.focused, - margin = props.margin, - required = props.required, - variant = props.variant, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__["default"])(props, ["children", "classes", "className", "component", "disabled", "error", "filled", "focused", "margin", "required", "variant"]); - - var muiFormControl = (0,_FormControl_useFormControl__WEBPACK_IMPORTED_MODULE_4__["default"])(); - var fcs = (0,_FormControl_formControlState__WEBPACK_IMPORTED_MODULE_5__["default"])({ - props: props, - muiFormControl: muiFormControl, - states: ['variant', 'margin', 'disabled', 'error', 'filled', 'focused', 'required'] - }); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Component, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, (fcs.variant === 'filled' || fcs.variant === 'outlined') && classes.contained, className, fcs.disabled && classes.disabled, fcs.error && classes.error, fcs.filled && classes.filled, fcs.focused && classes.focused, fcs.required && classes.required, fcs.margin === 'dense' && classes.marginDense), - ref: ref - }, other), children === ' ' ? - /*#__PURE__*/ - // eslint-disable-next-line react/no-danger - react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", { - dangerouslySetInnerHTML: { - __html: '' - } - }) : children); -}); - true ? FormHelperText.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * The content of the component. - * - * If `' '` is provided, the component reserves one line height for displaying a future message. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string), - - /** - * The component used for the root node. - * Either a string to use a HTML element or a component. - */ - component: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().elementType), - - /** - * If `true`, the helper text should be displayed in a disabled state. - */ - disabled: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool), - - /** - * If `true`, helper text should be displayed in an error state. - */ - error: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool), - - /** - * If `true`, the helper text should use filled classes key. - */ - filled: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool), - - /** - * If `true`, the helper text should use focused classes key. - */ - focused: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool), - - /** - * If `dense`, will adjust vertical spacing. This is normally obtained via context from - * FormControl. - */ - margin: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(['dense']), - - /** - * If `true`, the helper text should use required classes key. - */ - required: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool), - - /** - * The variant to use. - */ - variant: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(['filled', 'outlined', 'standard']) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_7__["default"])(styles, { - name: 'MuiFormHelperText' -})(FormHelperText)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/FormLabel/FormLabel.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _FormControl_formControlState__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormControl/formControlState.js"); -/* harmony import */ var _FormControl_useFormControl__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormControl/useFormControl.js"); -/* harmony import */ var _utils_capitalize__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/capitalize.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); - - - - - - - - - -var styles = function styles(theme) { - return { - /* Styles applied to the root element. */ - root: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - color: theme.palette.text.secondary - }, theme.typography.body1, { - lineHeight: 1, - padding: 0, - '&$focused': { - color: theme.palette.primary.main - }, - '&$disabled': { - color: theme.palette.text.disabled - }, - '&$error': { - color: theme.palette.error.main - } - }), - - /* Styles applied to the root element if the color is secondary. */ - colorSecondary: { - '&$focused': { - color: theme.palette.secondary.main - } - }, - - /* Pseudo-class applied to the root element if `focused={true}`. */ - focused: {}, - - /* Pseudo-class applied to the root element if `disabled={true}`. */ - disabled: {}, - - /* Pseudo-class applied to the root element if `error={true}`. */ - error: {}, - - /* Pseudo-class applied to the root element if `filled={true}`. */ - filled: {}, - - /* Pseudo-class applied to the root element if `required={true}`. */ - required: {}, - - /* Styles applied to the asterisk element. */ - asterisk: { - '&$error': { - color: theme.palette.error.main - } - } - }; -}; -var FormLabel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function FormLabel(props, ref) { - var children = props.children, - classes = props.classes, - className = props.className, - color = props.color, - _props$component = props.component, - Component = _props$component === void 0 ? 'label' : _props$component, - disabled = props.disabled, - error = props.error, - filled = props.filled, - focused = props.focused, - required = props.required, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__["default"])(props, ["children", "classes", "className", "color", "component", "disabled", "error", "filled", "focused", "required"]); - - var muiFormControl = (0,_FormControl_useFormControl__WEBPACK_IMPORTED_MODULE_4__["default"])(); - var fcs = (0,_FormControl_formControlState__WEBPACK_IMPORTED_MODULE_5__["default"])({ - props: props, - muiFormControl: muiFormControl, - states: ['color', 'required', 'focused', 'disabled', 'error', 'filled'] - }); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Component, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, classes["color".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_6__["default"])(fcs.color || 'primary'))], className, fcs.disabled && classes.disabled, fcs.error && classes.error, fcs.filled && classes.filled, fcs.focused && classes.focused, fcs.required && classes.required), - ref: ref - }, other), children, fcs.required && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", { - "aria-hidden": true, - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.asterisk, fcs.error && classes.error) - }, "\u2009", '*')); -}); - true ? FormLabel.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * The content of the component. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), - - /** - * The color of the component. It supports those theme colors that make sense for this component. - */ - color: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(['primary', 'secondary']), - - /** - * The component used for the root node. - * Either a string to use a HTML element or a component. - */ - component: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().elementType), - - /** - * If `true`, the label should be displayed in a disabled state. - */ - disabled: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * If `true`, the label should be displayed in an error state. - */ - error: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * If `true`, the label should use filled classes key. - */ - filled: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * If `true`, the input of this label is focused (used by `FormGroup` components). - */ - focused: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * If `true`, the label will indicate that the input is required. - */ - required: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_8__["default"])(styles, { - name: 'MuiFormLabel' -})(FormLabel)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Grid/Grid.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _utils_requirePropFactory__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/requirePropFactory.js"); -/* harmony import */ var _utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/deprecatedPropType.js"); - - -// A grid component using the following libs as inspiration. -// -// For the implementation: -// - https://getbootstrap.com/docs/4.3/layout/grid/ -// - https://github.com/kristoferjoseph/flexboxgrid/blob/master/src/css/flexboxgrid.css -// - https://github.com/roylee0704/react-flexbox-grid -// - https://material.angularjs.org/latest/layout/introduction -// -// Follow this flexbox Guide to better understand the underlying model: -// - https://css-tricks.com/snippets/css/a-guide-to-flexbox/ - - - - - - -var SPACINGS = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; -var GRID_SIZES = ['auto', true, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; - -function generateGrid(globalStyles, theme, breakpoint) { - var styles = {}; - GRID_SIZES.forEach(function (size) { - var key = "grid-".concat(breakpoint, "-").concat(size); - - if (size === true) { - // For the auto layouting - styles[key] = { - flexBasis: 0, - flexGrow: 1, - maxWidth: '100%' - }; - return; - } - - if (size === 'auto') { - styles[key] = { - flexBasis: 'auto', - flexGrow: 0, - maxWidth: 'none' - }; - return; - } // Keep 7 significant numbers. - - - var width = "".concat(Math.round(size / 12 * 10e7) / 10e5, "%"); // Close to the bootstrap implementation: - // https://github.com/twbs/bootstrap/blob/8fccaa2439e97ec72a4b7dc42ccc1f649790adb0/scss/mixins/_grid.scss#L41 - - styles[key] = { - flexBasis: width, - flexGrow: 0, - maxWidth: width - }; - }); // No need for a media query for the first size. - - if (breakpoint === 'xs') { - (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])(globalStyles, styles); - } else { - globalStyles[theme.breakpoints.up(breakpoint)] = styles; - } -} - -function getOffset(val) { - var div = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1; - var parse = parseFloat(val); - return "".concat(parse / div).concat(String(val).replace(String(parse), '') || 'px'); -} - -function generateGutter(theme, breakpoint) { - var styles = {}; - SPACINGS.forEach(function (spacing) { - var themeSpacing = theme.spacing(spacing); - - if (themeSpacing === 0) { - return; - } - - styles["spacing-".concat(breakpoint, "-").concat(spacing)] = { - margin: "-".concat(getOffset(themeSpacing, 2)), - width: "calc(100% + ".concat(getOffset(themeSpacing), ")"), - '& > $item': { - padding: getOffset(themeSpacing, 2) - } - }; - }); - return styles; -} // Default CSS values -// flex: '0 1 auto', -// flexDirection: 'row', -// alignItems: 'flex-start', -// flexWrap: 'nowrap', -// justifyContent: 'flex-start', - - -var styles = function styles(theme) { - return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - /* Styles applied to the root element. */ - root: {}, - - /* Styles applied to the root element if `container={true}`. */ - container: { - boxSizing: 'border-box', - display: 'flex', - flexWrap: 'wrap', - width: '100%' - }, - - /* Styles applied to the root element if `item={true}`. */ - item: { - boxSizing: 'border-box', - margin: '0' // For instance, it's useful when used with a `figure` element. - - }, - - /* Styles applied to the root element if `zeroMinWidth={true}`. */ - zeroMinWidth: { - minWidth: 0 - }, - - /* Styles applied to the root element if `direction="column"`. */ - 'direction-xs-column': { - flexDirection: 'column' - }, - - /* Styles applied to the root element if `direction="column-reverse"`. */ - 'direction-xs-column-reverse': { - flexDirection: 'column-reverse' - }, - - /* Styles applied to the root element if `direction="row-reverse"`. */ - 'direction-xs-row-reverse': { - flexDirection: 'row-reverse' - }, - - /* Styles applied to the root element if `wrap="nowrap"`. */ - 'wrap-xs-nowrap': { - flexWrap: 'nowrap' - }, - - /* Styles applied to the root element if `wrap="reverse"`. */ - 'wrap-xs-wrap-reverse': { - flexWrap: 'wrap-reverse' - }, - - /* Styles applied to the root element if `alignItems="center"`. */ - 'align-items-xs-center': { - alignItems: 'center' - }, - - /* Styles applied to the root element if `alignItems="flex-start"`. */ - 'align-items-xs-flex-start': { - alignItems: 'flex-start' - }, - - /* Styles applied to the root element if `alignItems="flex-end"`. */ - 'align-items-xs-flex-end': { - alignItems: 'flex-end' - }, - - /* Styles applied to the root element if `alignItems="baseline"`. */ - 'align-items-xs-baseline': { - alignItems: 'baseline' - }, - - /* Styles applied to the root element if `alignContent="center"`. */ - 'align-content-xs-center': { - alignContent: 'center' - }, - - /* Styles applied to the root element if `alignContent="flex-start"`. */ - 'align-content-xs-flex-start': { - alignContent: 'flex-start' - }, - - /* Styles applied to the root element if `alignContent="flex-end"`. */ - 'align-content-xs-flex-end': { - alignContent: 'flex-end' - }, - - /* Styles applied to the root element if `alignContent="space-between"`. */ - 'align-content-xs-space-between': { - alignContent: 'space-between' - }, - - /* Styles applied to the root element if `alignContent="space-around"`. */ - 'align-content-xs-space-around': { - alignContent: 'space-around' - }, - - /* Styles applied to the root element if `justifyContent="center"`. */ - 'justify-content-xs-center': { - justifyContent: 'center' - }, - - /* Styles applied to the root element if `justifyContent="flex-end"`. */ - 'justify-content-xs-flex-end': { - justifyContent: 'flex-end' - }, - - /* Styles applied to the root element if `justifyContent="space-between"`. */ - 'justify-content-xs-space-between': { - justifyContent: 'space-between' - }, - - /* Styles applied to the root element if `justifyContent="space-around"`. */ - 'justify-content-xs-space-around': { - justifyContent: 'space-around' - }, - - /* Styles applied to the root element if `justifyContent="space-evenly"`. */ - 'justify-content-xs-space-evenly': { - justifyContent: 'space-evenly' - } - }, generateGutter(theme, 'xs'), theme.breakpoints.keys.reduce(function (accumulator, key) { - // Use side effect over immutability for better performance. - generateGrid(accumulator, theme, key); - return accumulator; - }, {})); -}; -var Grid = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function Grid(props, ref) { - var _props$alignContent = props.alignContent, - alignContent = _props$alignContent === void 0 ? 'stretch' : _props$alignContent, - _props$alignItems = props.alignItems, - alignItems = _props$alignItems === void 0 ? 'stretch' : _props$alignItems, - classes = props.classes, - classNameProp = props.className, - _props$component = props.component, - Component = _props$component === void 0 ? 'div' : _props$component, - _props$container = props.container, - container = _props$container === void 0 ? false : _props$container, - _props$direction = props.direction, - direction = _props$direction === void 0 ? 'row' : _props$direction, - _props$item = props.item, - item = _props$item === void 0 ? false : _props$item, - justify = props.justify, - _props$justifyContent = props.justifyContent, - justifyContent = _props$justifyContent === void 0 ? 'flex-start' : _props$justifyContent, - _props$lg = props.lg, - lg = _props$lg === void 0 ? false : _props$lg, - _props$md = props.md, - md = _props$md === void 0 ? false : _props$md, - _props$sm = props.sm, - sm = _props$sm === void 0 ? false : _props$sm, - _props$spacing = props.spacing, - spacing = _props$spacing === void 0 ? 0 : _props$spacing, - _props$wrap = props.wrap, - wrap = _props$wrap === void 0 ? 'wrap' : _props$wrap, - _props$xl = props.xl, - xl = _props$xl === void 0 ? false : _props$xl, - _props$xs = props.xs, - xs = _props$xs === void 0 ? false : _props$xs, - _props$zeroMinWidth = props.zeroMinWidth, - zeroMinWidth = _props$zeroMinWidth === void 0 ? false : _props$zeroMinWidth, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__["default"])(props, ["alignContent", "alignItems", "classes", "className", "component", "container", "direction", "item", "justify", "justifyContent", "lg", "md", "sm", "spacing", "wrap", "xl", "xs", "zeroMinWidth"]); - - var className = (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, classNameProp, container && [classes.container, spacing !== 0 && classes["spacing-xs-".concat(String(spacing))]], item && classes.item, zeroMinWidth && classes.zeroMinWidth, direction !== 'row' && classes["direction-xs-".concat(String(direction))], wrap !== 'wrap' && classes["wrap-xs-".concat(String(wrap))], alignItems !== 'stretch' && classes["align-items-xs-".concat(String(alignItems))], alignContent !== 'stretch' && classes["align-content-xs-".concat(String(alignContent))], (justify || justifyContent) !== 'flex-start' && classes["justify-content-xs-".concat(String(justify || justifyContent))], xs !== false && classes["grid-xs-".concat(String(xs))], sm !== false && classes["grid-sm-".concat(String(sm))], md !== false && classes["grid-md-".concat(String(md))], lg !== false && classes["grid-lg-".concat(String(lg))], xl !== false && classes["grid-xl-".concat(String(xl))]); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Component, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - className: className, - ref: ref - }, other)); -}); - true ? Grid.propTypes = { - /** - * Defines the `align-content` style property. - * It's applied for all screen sizes. - */ - alignContent: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOf(['stretch', 'center', 'flex-start', 'flex-end', 'space-between', 'space-around']), - - /** - * Defines the `align-items` style property. - * It's applied for all screen sizes. - */ - alignItems: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOf(['flex-start', 'center', 'flex-end', 'stretch', 'baseline']), - - /** - * The content of the component. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().object.isRequired), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().string), - - /** - * The component used for the root node. - * Either a string to use a HTML element or a component. - */ - component: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().elementType), - - /** - * If `true`, the component will have the flex *container* behavior. - * You should be wrapping *items* with a *container*. - */ - container: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool), - - /** - * Defines the `flex-direction` style property. - * It is applied for all screen sizes. - */ - direction: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOf(['row', 'row-reverse', 'column', 'column-reverse']), - - /** - * If `true`, the component will have the flex *item* behavior. - * You should be wrapping *items* with a *container*. - */ - item: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool), - - /** - * Defines the `justify-content` style property. - * It is applied for all screen sizes. - * @deprecated Use `justifyContent` instead, the prop was renamed - */ - justify: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_5__["default"])(prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOf(['flex-start', 'center', 'flex-end', 'space-between', 'space-around', 'space-evenly']), 'Use `justifyContent` instead, the prop was renamed.'), - - /** - * Defines the `justify-content` style property. - * It is applied for all screen sizes. - */ - justifyContent: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOf(['flex-start', 'center', 'flex-end', 'space-between', 'space-around', 'space-evenly']), - - /** - * Defines the number of grids the component is going to use. - * It's applied for the `lg` breakpoint and wider screens if not overridden. - */ - lg: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOf([false, 'auto', true, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]), - - /** - * Defines the number of grids the component is going to use. - * It's applied for the `md` breakpoint and wider screens if not overridden. - */ - md: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOf([false, 'auto', true, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]), - - /** - * Defines the number of grids the component is going to use. - * It's applied for the `sm` breakpoint and wider screens if not overridden. - */ - sm: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOf([false, 'auto', true, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]), - - /** - * Defines the space between the type `item` component. - * It can only be used on a type `container` component. - */ - spacing: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOf(SPACINGS), - - /** - * Defines the `flex-wrap` style property. - * It's applied for all screen sizes. - */ - wrap: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOf(['nowrap', 'wrap', 'wrap-reverse']), - - /** - * Defines the number of grids the component is going to use. - * It's applied for the `xl` breakpoint and wider screens. - */ - xl: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOf([false, 'auto', true, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]), - - /** - * Defines the number of grids the component is going to use. - * It's applied for all the screen sizes with the lowest priority. - */ - xs: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOf([false, 'auto', true, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]), - - /** - * If `true`, it sets `min-width: 0` on the item. - * Refer to the limitations section of the documentation to better understand the use case. - */ - zeroMinWidth: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool) -} : 0; -var StyledGrid = (0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_6__["default"])(styles, { - name: 'MuiGrid' -})(Grid); - -if (true) { - var requireProp = (0,_utils_requirePropFactory__WEBPACK_IMPORTED_MODULE_7__["default"])('Grid'); - StyledGrid.propTypes = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, StyledGrid.propTypes, { - alignContent: requireProp('container'), - alignItems: requireProp('container'), - direction: requireProp('container'), - justifyContent: requireProp('container'), - lg: requireProp('item'), - md: requireProp('item'), - sm: requireProp('item'), - spacing: requireProp('container'), - wrap: requireProp('container'), - xs: requireProp('item'), - zeroMinWidth: requireProp('item') - }); -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (StyledGrid); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Grow/Grow.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var react_transition_group__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/node_modules/react-transition-group/esm/Transition.js"); -/* harmony import */ var _styles_useTheme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/useTheme.js"); -/* harmony import */ var _transitions_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/transitions/utils.js"); -/* harmony import */ var _utils_useForkRef__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useForkRef.js"); - - - - - - - - - - -function getScale(value) { - return "scale(".concat(value, ", ").concat(Math.pow(value, 2), ")"); -} - -var styles = { - entering: { - opacity: 1, - transform: getScale(1) - }, - entered: { - opacity: 1, - transform: 'none' - } -}; -/** - * The Grow transition is used by the [Tooltip](/components/tooltips/) and - * [Popover](/components/popover/) components. - * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally. - */ - -var Grow = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.forwardRef(function Grow(props, ref) { - var children = props.children, - _props$disableStrictM = props.disableStrictModeCompat, - disableStrictModeCompat = _props$disableStrictM === void 0 ? false : _props$disableStrictM, - inProp = props.in, - onEnter = props.onEnter, - onEntered = props.onEntered, - onEntering = props.onEntering, - onExit = props.onExit, - onExited = props.onExited, - onExiting = props.onExiting, - style = props.style, - _props$timeout = props.timeout, - timeout = _props$timeout === void 0 ? 'auto' : _props$timeout, - _props$TransitionComp = props.TransitionComponent, - TransitionComponent = _props$TransitionComp === void 0 ? react_transition_group__WEBPACK_IMPORTED_MODULE_4__["default"] : _props$TransitionComp, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__["default"])(props, ["children", "disableStrictModeCompat", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"]); - - var timer = react__WEBPACK_IMPORTED_MODULE_3__.useRef(); - var autoTimeout = react__WEBPACK_IMPORTED_MODULE_3__.useRef(); - var theme = (0,_styles_useTheme__WEBPACK_IMPORTED_MODULE_5__["default"])(); - var enableStrictModeCompat = theme.unstable_strictMode && !disableStrictModeCompat; - var nodeRef = react__WEBPACK_IMPORTED_MODULE_3__.useRef(null); - var foreignRef = (0,_utils_useForkRef__WEBPACK_IMPORTED_MODULE_6__["default"])(children.ref, ref); - var handleRef = (0,_utils_useForkRef__WEBPACK_IMPORTED_MODULE_6__["default"])(enableStrictModeCompat ? nodeRef : undefined, foreignRef); - - var normalizedTransitionCallback = function normalizedTransitionCallback(callback) { - return function (nodeOrAppearing, maybeAppearing) { - if (callback) { - var _ref = enableStrictModeCompat ? [nodeRef.current, nodeOrAppearing] : [nodeOrAppearing, maybeAppearing], - _ref2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, 2), - node = _ref2[0], - isAppearing = _ref2[1]; // onEnterXxx and onExitXxx callbacks have a different arguments.length value. - - - if (isAppearing === undefined) { - callback(node); - } else { - callback(node, isAppearing); - } - } - }; - }; - - var handleEntering = normalizedTransitionCallback(onEntering); - var handleEnter = normalizedTransitionCallback(function (node, isAppearing) { - (0,_transitions_utils__WEBPACK_IMPORTED_MODULE_7__.reflow)(node); // So the animation always start from the start. - - var _getTransitionProps = (0,_transitions_utils__WEBPACK_IMPORTED_MODULE_7__.getTransitionProps)({ - style: style, - timeout: timeout - }, { - mode: 'enter' - }), - transitionDuration = _getTransitionProps.duration, - delay = _getTransitionProps.delay; - - var duration; - - if (timeout === 'auto') { - duration = theme.transitions.getAutoHeightDuration(node.clientHeight); - autoTimeout.current = duration; - } else { - duration = transitionDuration; - } - - node.style.transition = [theme.transitions.create('opacity', { - duration: duration, - delay: delay - }), theme.transitions.create('transform', { - duration: duration * 0.666, - delay: delay - })].join(','); - - if (onEnter) { - onEnter(node, isAppearing); - } - }); - var handleEntered = normalizedTransitionCallback(onEntered); - var handleExiting = normalizedTransitionCallback(onExiting); - var handleExit = normalizedTransitionCallback(function (node) { - var _getTransitionProps2 = (0,_transitions_utils__WEBPACK_IMPORTED_MODULE_7__.getTransitionProps)({ - style: style, - timeout: timeout - }, { - mode: 'exit' - }), - transitionDuration = _getTransitionProps2.duration, - delay = _getTransitionProps2.delay; - - var duration; - - if (timeout === 'auto') { - duration = theme.transitions.getAutoHeightDuration(node.clientHeight); - autoTimeout.current = duration; - } else { - duration = transitionDuration; - } - - node.style.transition = [theme.transitions.create('opacity', { - duration: duration, - delay: delay - }), theme.transitions.create('transform', { - duration: duration * 0.666, - delay: delay || duration * 0.333 - })].join(','); - node.style.opacity = '0'; - node.style.transform = getScale(0.75); - - if (onExit) { - onExit(node); - } - }); - var handleExited = normalizedTransitionCallback(onExited); - - var addEndListener = function addEndListener(nodeOrNext, maybeNext) { - var next = enableStrictModeCompat ? nodeOrNext : maybeNext; - - if (timeout === 'auto') { - timer.current = setTimeout(next, autoTimeout.current || 0); - } - }; - - react__WEBPACK_IMPORTED_MODULE_3__.useEffect(function () { - return function () { - clearTimeout(timer.current); - }; - }, []); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(TransitionComponent, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - appear: true, - in: inProp, - nodeRef: enableStrictModeCompat ? nodeRef : undefined, - onEnter: handleEnter, - onEntered: handleEntered, - onEntering: handleEntering, - onExit: handleExit, - onExited: handleExited, - onExiting: handleExiting, - addEndListener: addEndListener, - timeout: timeout === 'auto' ? null : timeout - }, other), function (state, childProps) { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.cloneElement(children, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - style: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - opacity: 0, - transform: getScale(0.75), - visibility: state === 'exited' && !inProp ? 'hidden' : undefined - }, styles[state], style, children.props.style), - ref: handleRef - }, childProps)); - }); -}); - true ? Grow.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * A single child content element. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().element), - - /** - * Enable this prop if you encounter 'Function components cannot be given refs', - * use `unstable_createStrictModeTheme`, - * and can't forward the ref in the child component. - */ - disableStrictModeCompat: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool), - - /** - * If `true`, show the component; triggers the enter or exit animation. - */ - in: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool), - - /** - * @ignore - */ - onEnter: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func), - - /** - * @ignore - */ - onEntered: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func), - - /** - * @ignore - */ - onEntering: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func), - - /** - * @ignore - */ - onExit: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func), - - /** - * @ignore - */ - onExited: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func), - - /** - * @ignore - */ - onExiting: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func), - - /** - * @ignore - */ - style: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object), - - /** - * The duration for the transition, in milliseconds. - * You may specify a single timeout for all transitions, or individually with an object. - * - * Set to 'auto' to automatically calculate transition time based on height. - */ - timeout: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOf(['auto']), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().number), prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({ - appear: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().number), - enter: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().number), - exit: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().number) - })]) -} : 0; -Grow.muiSupportAuto = true; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Grow); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/IconButton/IconButton.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/utils/esm/chainPropTypes.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/colorManipulator.js"); -/* harmony import */ var _ButtonBase__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/ButtonBase/ButtonBase.js"); -/* harmony import */ var _utils_capitalize__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/capitalize.js"); - - - - - - - - - - -var styles = function styles(theme) { - return { - /* Styles applied to the root element. */ - root: { - textAlign: 'center', - flex: '0 0 auto', - fontSize: theme.typography.pxToRem(24), - padding: 12, - borderRadius: '50%', - overflow: 'visible', - // Explicitly set the default value to solve a bug on IE 11. - color: theme.palette.action.active, - transition: theme.transitions.create('background-color', { - duration: theme.transitions.duration.shortest - }), - '&:hover': { - backgroundColor: (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.alpha)(theme.palette.action.active, theme.palette.action.hoverOpacity), - // Reset on touch devices, it doesn't add specificity - '@media (hover: none)': { - backgroundColor: 'transparent' - } - }, - '&$disabled': { - backgroundColor: 'transparent', - color: theme.palette.action.disabled - } - }, - - /* Styles applied to the root element if `edge="start"`. */ - edgeStart: { - marginLeft: -12, - '$sizeSmall&': { - marginLeft: -3 - } - }, - - /* Styles applied to the root element if `edge="end"`. */ - edgeEnd: { - marginRight: -12, - '$sizeSmall&': { - marginRight: -3 - } - }, - - /* Styles applied to the root element if `color="inherit"`. */ - colorInherit: { - color: 'inherit' - }, - - /* Styles applied to the root element if `color="primary"`. */ - colorPrimary: { - color: theme.palette.primary.main, - '&:hover': { - backgroundColor: (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.alpha)(theme.palette.primary.main, theme.palette.action.hoverOpacity), - // Reset on touch devices, it doesn't add specificity - '@media (hover: none)': { - backgroundColor: 'transparent' - } - } - }, - - /* Styles applied to the root element if `color="secondary"`. */ - colorSecondary: { - color: theme.palette.secondary.main, - '&:hover': { - backgroundColor: (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.alpha)(theme.palette.secondary.main, theme.palette.action.hoverOpacity), - // Reset on touch devices, it doesn't add specificity - '@media (hover: none)': { - backgroundColor: 'transparent' - } - } - }, - - /* Pseudo-class applied to the root element if `disabled={true}`. */ - disabled: {}, - - /* Styles applied to the root element if `size="small"`. */ - sizeSmall: { - padding: 3, - fontSize: theme.typography.pxToRem(18) - }, - - /* Styles applied to the children container element. */ - label: { - width: '100%', - display: 'flex', - alignItems: 'inherit', - justifyContent: 'inherit' - } - }; -}; -/** - * Refer to the [Icons](/components/icons/) section of the documentation - * regarding the available icon options. - */ - -var IconButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function IconButton(props, ref) { - var _props$edge = props.edge, - edge = _props$edge === void 0 ? false : _props$edge, - children = props.children, - classes = props.classes, - className = props.className, - _props$color = props.color, - color = _props$color === void 0 ? 'default' : _props$color, - _props$disabled = props.disabled, - disabled = _props$disabled === void 0 ? false : _props$disabled, - _props$disableFocusRi = props.disableFocusRipple, - disableFocusRipple = _props$disableFocusRi === void 0 ? false : _props$disableFocusRi, - _props$size = props.size, - size = _props$size === void 0 ? 'medium' : _props$size, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["edge", "children", "classes", "className", "color", "disabled", "disableFocusRipple", "size"]); - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_ButtonBase__WEBPACK_IMPORTED_MODULE_5__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, className, color !== 'default' && classes["color".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_6__["default"])(color))], disabled && classes.disabled, size === "small" && classes["size".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_6__["default"])(size))], { - 'start': classes.edgeStart, - 'end': classes.edgeEnd - }[edge]), - centerRipple: true, - focusRipple: !disableFocusRipple, - disabled: disabled, - ref: ref - }, other), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", { - className: classes.label - }, children)); -}); - true ? IconButton.propTypes = { - /** - * The icon element. - */ - children: (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_7__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_8___default().node), function (props) { - var found = react__WEBPACK_IMPORTED_MODULE_2__.Children.toArray(props.children).some(function (child) { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.isValidElement(child) && child.props.onClick; - }); - - if (found) { - return new Error(['Material-UI: You are providing an onClick event listener ' + 'to a child of a button element.', 'Firefox will never trigger the event.', 'You should move the onClick listener to the parent button element.', 'https://github.com/mui-org/material-ui/issues/13957'].join('\n')); - } - - return null; - }), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object.isRequired), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string), - - /** - * The color of the component. It supports those theme colors that make sense for this component. - */ - color: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOf(['default', 'inherit', 'primary', 'secondary']), - - /** - * If `true`, the button will be disabled. - */ - disabled: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool), - - /** - * If `true`, the keyboard focus ripple will be disabled. - */ - disableFocusRipple: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool), - - /** - * If `true`, the ripple effect will be disabled. - */ - disableRipple: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool), - - /** - * If given, uses a negative margin to counteract the padding on one - * side (this is often helpful for aligning the left or right - * side of the icon with content above or below, without ruining the border - * size and shape). - */ - edge: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOf(['start', 'end', false]), - - /** - * The size of the button. - * `small` is equivalent to the dense button styling. - */ - size: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOf(['small', 'medium']) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_9__["default"])(styles, { - name: 'MuiIconButton' -})(IconButton)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Input/Input.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/utils/esm/refType.js"); -/* harmony import */ var _InputBase__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/InputBase/InputBase.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); - - - - - - - - -var styles = function styles(theme) { - var light = theme.palette.type === 'light'; - var bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)'; - return { - /* Styles applied to the root element. */ - root: { - position: 'relative' - }, - - /* Styles applied to the root element if the component is a descendant of `FormControl`. */ - formControl: { - 'label + &': { - marginTop: 16 - } - }, - - /* Styles applied to the root element if the component is focused. */ - focused: {}, - - /* Styles applied to the root element if `disabled={true}`. */ - disabled: {}, - - /* Styles applied to the root element if color secondary. */ - colorSecondary: { - '&$underline:after': { - borderBottomColor: theme.palette.secondary.main - } - }, - - /* Styles applied to the root element if `disableUnderline={false}`. */ - underline: { - '&:after': { - borderBottom: "2px solid ".concat(theme.palette.primary.main), - left: 0, - bottom: 0, - // Doing the other way around crash on IE 11 "''" https://github.com/cssinjs/jss/issues/242 - content: '""', - position: 'absolute', - right: 0, - transform: 'scaleX(0)', - transition: theme.transitions.create('transform', { - duration: theme.transitions.duration.shorter, - easing: theme.transitions.easing.easeOut - }), - pointerEvents: 'none' // Transparent to the hover style. - - }, - '&$focused:after': { - transform: 'scaleX(1)' - }, - '&$error:after': { - borderBottomColor: theme.palette.error.main, - transform: 'scaleX(1)' // error is always underlined in red - - }, - '&:before': { - borderBottom: "1px solid ".concat(bottomLineColor), - left: 0, - bottom: 0, - // Doing the other way around crash on IE 11 "''" https://github.com/cssinjs/jss/issues/242 - content: '"\\00a0"', - position: 'absolute', - right: 0, - transition: theme.transitions.create('border-bottom-color', { - duration: theme.transitions.duration.shorter - }), - pointerEvents: 'none' // Transparent to the hover style. - - }, - '&:hover:not($disabled):before': { - borderBottom: "2px solid ".concat(theme.palette.text.primary), - // Reset on touch devices, it doesn't add specificity - '@media (hover: none)': { - borderBottom: "1px solid ".concat(bottomLineColor) - } - }, - '&$disabled:before': { - borderBottomStyle: 'dotted' - } - }, - - /* Pseudo-class applied to the root element if `error={true}`. */ - error: {}, - - /* Styles applied to the `input` element if `margin="dense"`. */ - marginDense: {}, - - /* Styles applied to the root element if `multiline={true}`. */ - multiline: {}, - - /* Styles applied to the root element if `fullWidth={true}`. */ - fullWidth: {}, - - /* Styles applied to the `input` element. */ - input: {}, - - /* Styles applied to the `input` element if `margin="dense"`. */ - inputMarginDense: {}, - - /* Styles applied to the `input` element if `multiline={true}`. */ - inputMultiline: {}, - - /* Styles applied to the `input` element if `type="search"`. */ - inputTypeSearch: {} - }; -}; -var Input = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function Input(props, ref) { - var disableUnderline = props.disableUnderline, - classes = props.classes, - _props$fullWidth = props.fullWidth, - fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, - _props$inputComponent = props.inputComponent, - inputComponent = _props$inputComponent === void 0 ? 'input' : _props$inputComponent, - _props$multiline = props.multiline, - multiline = _props$multiline === void 0 ? false : _props$multiline, - _props$type = props.type, - type = _props$type === void 0 ? 'text' : _props$type, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["disableUnderline", "classes", "fullWidth", "inputComponent", "multiline", "type"]); - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_InputBase__WEBPACK_IMPORTED_MODULE_4__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - classes: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, classes, { - root: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, !disableUnderline && classes.underline), - underline: null - }), - fullWidth: fullWidth, - inputComponent: inputComponent, - multiline: multiline, - ref: ref, - type: type - }, other)); -}); - true ? Input.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * This prop helps users to fill forms faster, especially on mobile devices. - * The name can be confusing, as it's more like an autofill. - * You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill). - */ - autoComplete: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), - - /** - * If `true`, the `input` element will be focused during the first mount. - */ - autoFocus: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object), - - /** - * The color of the component. It supports those theme colors that make sense for this component. - */ - color: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOf(['primary', 'secondary']), - - /** - * The default `input` element value. Use when the component is not controlled. - */ - defaultValue: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().any), - - /** - * If `true`, the `input` element will be disabled. - */ - disabled: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - - /** - * If `true`, the input will not have an underline. - */ - disableUnderline: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - - /** - * End `InputAdornment` for this component. - */ - endAdornment: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().node), - - /** - * If `true`, the input will indicate an error. This is normally obtained via context from - * FormControl. - */ - error: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - - /** - * If `true`, the input will take up the full width of its container. - */ - fullWidth: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - - /** - * The id of the `input` element. - */ - id: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), - - /** - * The component used for the `input` element. - * Either a string to use a HTML element or a component. - */ - inputComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().elementType), - - /** - * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element. - */ - inputProps: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object), - - /** - * Pass a ref to the `input` element. - */ - inputRef: _material_ui_utils__WEBPACK_IMPORTED_MODULE_6__["default"], - - /** - * If `dense`, will adjust vertical spacing. This is normally obtained via context from - * FormControl. - */ - margin: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOf(['dense', 'none']), - - /** - * Maximum number of rows to display when multiline option is set to true. - */ - maxRows: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_5___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string)]), - - /** - * If `true`, a textarea element will be rendered. - */ - multiline: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - - /** - * Name attribute of the `input` element. - */ - name: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), - - /** - * Callback fired when the value is changed. - * - * @param {object} event The event source of the callback. - * You can pull out the new value by accessing `event.target.value` (string). - */ - onChange: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().func), - - /** - * The short hint displayed in the input before the user enters a value. - */ - placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), - - /** - * It prevents the user from changing the value of the field - * (not from interacting with the field). - */ - readOnly: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - - /** - * If `true`, the `input` element will be required. - */ - required: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - - /** - * Number of rows to display when multiline option is set to true. - */ - rows: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_5___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string)]), - - /** - * Start `InputAdornment` for this component. - */ - startAdornment: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().node), - - /** - * Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types). - */ - type: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), - - /** - * The value of the `input` element, required for a controlled component. - */ - value: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().any) -} : 0; -Input.muiName = 'Input'; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_7__["default"])(styles, { - name: 'MuiInput' -})(Input)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/InputAdornment/InputAdornment.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _Typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/Typography/Typography.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _FormControl_FormControlContext__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormControl/FormControlContext.js"); - - - - - - - - -var styles = { - /* Styles applied to the root element. */ - root: { - display: 'flex', - height: '0.01em', - // Fix IE 11 flexbox alignment. To remove at some point. - maxHeight: '2em', - alignItems: 'center', - whiteSpace: 'nowrap' - }, - - /* Styles applied to the root element if `variant="filled"`. */ - filled: { - '&$positionStart:not($hiddenLabel)': { - marginTop: 16 - } - }, - - /* Styles applied to the root element if `position="start"`. */ - positionStart: { - marginRight: 8 - }, - - /* Styles applied to the root element if `position="end"`. */ - positionEnd: { - marginLeft: 8 - }, - - /* Styles applied to the root element if `disablePointerEvents=true`. */ - disablePointerEvents: { - pointerEvents: 'none' - }, - - /* Styles applied if the adornment is used inside . */ - hiddenLabel: {}, - - /* Styles applied if the adornment is used inside . */ - marginDense: {} -}; -var InputAdornment = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function InputAdornment(props, ref) { - var children = props.children, - classes = props.classes, - className = props.className, - _props$component = props.component, - Component = _props$component === void 0 ? 'div' : _props$component, - _props$disablePointer = props.disablePointerEvents, - disablePointerEvents = _props$disablePointer === void 0 ? false : _props$disablePointer, - _props$disableTypogra = props.disableTypography, - disableTypography = _props$disableTypogra === void 0 ? false : _props$disableTypogra, - position = props.position, - variantProp = props.variant, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["children", "classes", "className", "component", "disablePointerEvents", "disableTypography", "position", "variant"]); - - var muiFormControl = (0,_FormControl_FormControlContext__WEBPACK_IMPORTED_MODULE_4__.useFormControl)() || {}; - var variant = variantProp; - - if (variantProp && muiFormControl.variant) { - if (true) { - if (variantProp === muiFormControl.variant) { - console.error('Material-UI: The `InputAdornment` variant infers the variant prop ' + 'you do not have to provide one.'); - } - } - } - - if (muiFormControl && !variant) { - variant = muiFormControl.variant; - } - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_FormControl_FormControlContext__WEBPACK_IMPORTED_MODULE_4__["default"].Provider, { - value: null - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Component, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, className, position === 'end' ? classes.positionEnd : classes.positionStart, disablePointerEvents && classes.disablePointerEvents, muiFormControl.hiddenLabel && classes.hiddenLabel, variant === 'filled' && classes.filled, muiFormControl.margin === 'dense' && classes.marginDense), - ref: ref - }, other), typeof children === 'string' && !disableTypography ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_Typography__WEBPACK_IMPORTED_MODULE_5__["default"], { - color: "textSecondary" - }, children) : children)); -}); - true ? InputAdornment.propTypes = { - /** - * The content of the component, normally an `IconButton` or string. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().node.isRequired), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object.isRequired), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string), - - /** - * The component used for the root node. - * Either a string to use a HTML element or a component. - */ - component: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().elementType), - - /** - * Disable pointer events on the root. - * This allows for the content of the adornment to focus the input on click. - */ - disablePointerEvents: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool), - - /** - * If children is a string then disable wrapping in a Typography component. - */ - disableTypography: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool), - - /** - * @ignore - */ - muiFormControl: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object), - - /** - * The position this adornment should appear relative to the `Input`. - */ - position: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(['start', 'end']).isRequired, - - /** - * The variant to use. - * Note: If you are using the `TextField` component or the `FormControl` component - * you do not have to set this manually. - */ - variant: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(['standard', 'outlined', 'filled']) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_7__["default"])(styles, { - name: 'MuiInputAdornment' -})(InputAdornment)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/InputBase/InputBase.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/@material-ui/utils/esm/refType.js"); -/* harmony import */ var _FormControl_formControlState__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormControl/formControlState.js"); -/* harmony import */ var _FormControl_FormControlContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormControl/FormControlContext.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _utils_capitalize__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/capitalize.js"); -/* harmony import */ var _utils_useForkRef__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useForkRef.js"); -/* harmony import */ var _TextareaAutosize__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/TextareaAutosize/TextareaAutosize.js"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/InputBase/utils.js"); - - - - -/* eslint-disable jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */ - - - - - - - - - - - -var styles = function styles(theme) { - var light = theme.palette.type === 'light'; - var placeholder = { - color: 'currentColor', - opacity: light ? 0.42 : 0.5, - transition: theme.transitions.create('opacity', { - duration: theme.transitions.duration.shorter - }) - }; - var placeholderHidden = { - opacity: '0 !important' - }; - var placeholderVisible = { - opacity: light ? 0.42 : 0.5 - }; - return { - '@global': { - '@keyframes mui-auto-fill': {}, - '@keyframes mui-auto-fill-cancel': {} - }, - - /* Styles applied to the root element. */ - root: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, theme.typography.body1, { - color: theme.palette.text.primary, - lineHeight: '1.1876em', - // Reset (19px), match the native input line-height - boxSizing: 'border-box', - // Prevent padding issue with fullWidth. - position: 'relative', - cursor: 'text', - display: 'inline-flex', - alignItems: 'center', - '&$disabled': { - color: theme.palette.text.disabled, - cursor: 'default' - } - }), - - /* Styles applied to the root element if the component is a descendant of `FormControl`. */ - formControl: {}, - - /* Styles applied to the root element if the component is focused. */ - focused: {}, - - /* Styles applied to the root element if `disabled={true}`. */ - disabled: {}, - - /* Styles applied to the root element if `startAdornment` is provided. */ - adornedStart: {}, - - /* Styles applied to the root element if `endAdornment` is provided. */ - adornedEnd: {}, - - /* Pseudo-class applied to the root element if `error={true}`. */ - error: {}, - - /* Styles applied to the `input` element if `margin="dense"`. */ - marginDense: {}, - - /* Styles applied to the root element if `multiline={true}`. */ - multiline: { - padding: "".concat(8 - 2, "px 0 ").concat(8 - 1, "px"), - '&$marginDense': { - paddingTop: 4 - 1 - } - }, - - /* Styles applied to the root element if the color is secondary. */ - colorSecondary: {}, - - /* Styles applied to the root element if `fullWidth={true}`. */ - fullWidth: { - width: '100%' - }, - - /* Styles applied to the `input` element. */ - input: { - font: 'inherit', - letterSpacing: 'inherit', - color: 'currentColor', - padding: "".concat(8 - 2, "px 0 ").concat(8 - 1, "px"), - border: 0, - boxSizing: 'content-box', - background: 'none', - height: '1.1876em', - // Reset (19px), match the native input line-height - margin: 0, - // Reset for Safari - WebkitTapHighlightColor: 'transparent', - display: 'block', - // Make the flex item shrink with Firefox - minWidth: 0, - width: '100%', - // Fix IE 11 width issue - animationName: 'mui-auto-fill-cancel', - animationDuration: '10ms', - '&::-webkit-input-placeholder': placeholder, - '&::-moz-placeholder': placeholder, - // Firefox 19+ - '&:-ms-input-placeholder': placeholder, - // IE 11 - '&::-ms-input-placeholder': placeholder, - // Edge - '&:focus': { - outline: 0 - }, - // Reset Firefox invalid required input style - '&:invalid': { - boxShadow: 'none' - }, - '&::-webkit-search-decoration': { - // Remove the padding when type=search. - '-webkit-appearance': 'none' - }, - // Show and hide the placeholder logic - 'label[data-shrink=false] + $formControl &': { - '&::-webkit-input-placeholder': placeholderHidden, - '&::-moz-placeholder': placeholderHidden, - // Firefox 19+ - '&:-ms-input-placeholder': placeholderHidden, - // IE 11 - '&::-ms-input-placeholder': placeholderHidden, - // Edge - '&:focus::-webkit-input-placeholder': placeholderVisible, - '&:focus::-moz-placeholder': placeholderVisible, - // Firefox 19+ - '&:focus:-ms-input-placeholder': placeholderVisible, - // IE 11 - '&:focus::-ms-input-placeholder': placeholderVisible // Edge - - }, - '&$disabled': { - opacity: 1 // Reset iOS opacity - - }, - '&:-webkit-autofill': { - animationDuration: '5000s', - animationName: 'mui-auto-fill' - } - }, - - /* Styles applied to the `input` element if `margin="dense"`. */ - inputMarginDense: { - paddingTop: 4 - 1 - }, - - /* Styles applied to the `input` element if `multiline={true}`. */ - inputMultiline: { - height: 'auto', - resize: 'none', - padding: 0 - }, - - /* Styles applied to the `input` element if `type="search"`. */ - inputTypeSearch: { - // Improve type search style. - '-moz-appearance': 'textfield', - '-webkit-appearance': 'textfield' - }, - - /* Styles applied to the `input` element if `startAdornment` is provided. */ - inputAdornedStart: {}, - - /* Styles applied to the `input` element if `endAdornment` is provided. */ - inputAdornedEnd: {}, - - /* Styles applied to the `input` element if `hiddenLabel={true}`. */ - inputHiddenLabel: {} - }; -}; -var useEnhancedEffect = typeof window === 'undefined' ? react__WEBPACK_IMPORTED_MODULE_2__.useEffect : react__WEBPACK_IMPORTED_MODULE_2__.useLayoutEffect; -/** - * `InputBase` contains as few styles as possible. - * It aims to be a simple building block for creating an input. - * It contains a load of style reset and some state logic. - */ - -var InputBase = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function InputBase(props, ref) { - var ariaDescribedby = props['aria-describedby'], - autoComplete = props.autoComplete, - autoFocus = props.autoFocus, - classes = props.classes, - className = props.className, - color = props.color, - defaultValue = props.defaultValue, - disabled = props.disabled, - endAdornment = props.endAdornment, - error = props.error, - _props$fullWidth = props.fullWidth, - fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, - id = props.id, - _props$inputComponent = props.inputComponent, - inputComponent = _props$inputComponent === void 0 ? 'input' : _props$inputComponent, - _props$inputProps = props.inputProps, - inputPropsProp = _props$inputProps === void 0 ? {} : _props$inputProps, - inputRefProp = props.inputRef, - margin = props.margin, - _props$multiline = props.multiline, - multiline = _props$multiline === void 0 ? false : _props$multiline, - name = props.name, - onBlur = props.onBlur, - onChange = props.onChange, - onClick = props.onClick, - onFocus = props.onFocus, - onKeyDown = props.onKeyDown, - onKeyUp = props.onKeyUp, - placeholder = props.placeholder, - readOnly = props.readOnly, - renderSuffix = props.renderSuffix, - rows = props.rows, - rowsMax = props.rowsMax, - rowsMin = props.rowsMin, - maxRows = props.maxRows, - minRows = props.minRows, - startAdornment = props.startAdornment, - _props$type = props.type, - type = _props$type === void 0 ? 'text' : _props$type, - valueProp = props.value, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__["default"])(props, ["aria-describedby", "autoComplete", "autoFocus", "classes", "className", "color", "defaultValue", "disabled", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "rowsMax", "rowsMin", "maxRows", "minRows", "startAdornment", "type", "value"]); - - var value = inputPropsProp.value != null ? inputPropsProp.value : valueProp; - - var _React$useRef = react__WEBPACK_IMPORTED_MODULE_2__.useRef(value != null), - isControlled = _React$useRef.current; - - var inputRef = react__WEBPACK_IMPORTED_MODULE_2__.useRef(); - var handleInputRefWarning = react__WEBPACK_IMPORTED_MODULE_2__.useCallback(function (instance) { - if (true) { - if (instance && instance.nodeName !== 'INPUT' && !instance.focus) { - console.error(['Material-UI: You have provided a `inputComponent` to the input component', 'that does not correctly handle the `inputRef` prop.', 'Make sure the `inputRef` prop is called with a HTMLInputElement.'].join('\n')); - } - } - }, []); - var handleInputPropsRefProp = (0,_utils_useForkRef__WEBPACK_IMPORTED_MODULE_4__["default"])(inputPropsProp.ref, handleInputRefWarning); - var handleInputRefProp = (0,_utils_useForkRef__WEBPACK_IMPORTED_MODULE_4__["default"])(inputRefProp, handleInputPropsRefProp); - var handleInputRef = (0,_utils_useForkRef__WEBPACK_IMPORTED_MODULE_4__["default"])(inputRef, handleInputRefProp); - - var _React$useState = react__WEBPACK_IMPORTED_MODULE_2__.useState(false), - focused = _React$useState[0], - setFocused = _React$useState[1]; - - var muiFormControl = (0,_FormControl_FormControlContext__WEBPACK_IMPORTED_MODULE_5__.useFormControl)(); - - if (true) { - // eslint-disable-next-line react-hooks/rules-of-hooks - react__WEBPACK_IMPORTED_MODULE_2__.useEffect(function () { - if (muiFormControl) { - return muiFormControl.registerEffect(); - } - - return undefined; - }, [muiFormControl]); - } - - var fcs = (0,_FormControl_formControlState__WEBPACK_IMPORTED_MODULE_6__["default"])({ - props: props, - muiFormControl: muiFormControl, - states: ['color', 'disabled', 'error', 'hiddenLabel', 'margin', 'required', 'filled'] - }); - fcs.focused = muiFormControl ? muiFormControl.focused : focused; // The blur won't fire when the disabled state is set on a focused input. - // We need to book keep the focused state manually. - - react__WEBPACK_IMPORTED_MODULE_2__.useEffect(function () { - if (!muiFormControl && disabled && focused) { - setFocused(false); - - if (onBlur) { - onBlur(); - } - } - }, [muiFormControl, disabled, focused, onBlur]); - var onFilled = muiFormControl && muiFormControl.onFilled; - var onEmpty = muiFormControl && muiFormControl.onEmpty; - var checkDirty = react__WEBPACK_IMPORTED_MODULE_2__.useCallback(function (obj) { - if ((0,_utils__WEBPACK_IMPORTED_MODULE_7__.isFilled)(obj)) { - if (onFilled) { - onFilled(); - } - } else if (onEmpty) { - onEmpty(); - } - }, [onFilled, onEmpty]); - useEnhancedEffect(function () { - if (isControlled) { - checkDirty({ - value: value - }); - } - }, [value, checkDirty, isControlled]); - - var handleFocus = function handleFocus(event) { - // Fix a bug with IE 11 where the focus/blur events are triggered - // while the input is disabled. - if (fcs.disabled) { - event.stopPropagation(); - return; - } - - if (onFocus) { - onFocus(event); - } - - if (inputPropsProp.onFocus) { - inputPropsProp.onFocus(event); - } - - if (muiFormControl && muiFormControl.onFocus) { - muiFormControl.onFocus(event); - } else { - setFocused(true); - } - }; - - var handleBlur = function handleBlur(event) { - if (onBlur) { - onBlur(event); - } - - if (inputPropsProp.onBlur) { - inputPropsProp.onBlur(event); - } - - if (muiFormControl && muiFormControl.onBlur) { - muiFormControl.onBlur(event); - } else { - setFocused(false); - } - }; - - var handleChange = function handleChange(event) { - if (!isControlled) { - var element = event.target || inputRef.current; - - if (element == null) { - throw new Error( true ? "Material-UI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." : 0); - } - - checkDirty({ - value: element.value - }); - } - - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - if (inputPropsProp.onChange) { - inputPropsProp.onChange.apply(inputPropsProp, [event].concat(args)); - } // Perform in the willUpdate - - - if (onChange) { - onChange.apply(void 0, [event].concat(args)); - } - }; // Check the input state on mount, in case it was filled by the user - // or auto filled by the browser before the hydration (for SSR). - - - react__WEBPACK_IMPORTED_MODULE_2__.useEffect(function () { - checkDirty(inputRef.current); - }, []); // eslint-disable-line react-hooks/exhaustive-deps - - var handleClick = function handleClick(event) { - if (inputRef.current && event.currentTarget === event.target) { - inputRef.current.focus(); - } - - if (onClick) { - onClick(event); - } - }; - - var InputComponent = inputComponent; - - var inputProps = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, inputPropsProp, { - ref: handleInputRef - }); - - if (typeof InputComponent !== 'string') { - inputProps = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - // Rename ref to inputRef as we don't know the - // provided `inputComponent` structure. - inputRef: handleInputRef, - type: type - }, inputProps, { - ref: null - }); - } else if (multiline) { - if (rows && !maxRows && !minRows && !rowsMax && !rowsMin) { - InputComponent = 'textarea'; - } else { - inputProps = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - minRows: rows || minRows, - rowsMax: rowsMax, - maxRows: maxRows - }, inputProps); - InputComponent = _TextareaAutosize__WEBPACK_IMPORTED_MODULE_8__["default"]; - } - } else { - inputProps = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - type: type - }, inputProps); - } - - var handleAutoFill = function handleAutoFill(event) { - // Provide a fake value as Chrome might not let you access it for security reasons. - checkDirty(event.animationName === 'mui-auto-fill-cancel' ? inputRef.current : { - value: 'x' - }); - }; - - react__WEBPACK_IMPORTED_MODULE_2__.useEffect(function () { - if (muiFormControl) { - muiFormControl.setAdornedStart(Boolean(startAdornment)); - } - }, [muiFormControl, startAdornment]); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, classes["color".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_9__["default"])(fcs.color || 'primary'))], className, fcs.disabled && classes.disabled, fcs.error && classes.error, fullWidth && classes.fullWidth, fcs.focused && classes.focused, muiFormControl && classes.formControl, multiline && classes.multiline, startAdornment && classes.adornedStart, endAdornment && classes.adornedEnd, fcs.margin === 'dense' && classes.marginDense), - onClick: handleClick, - ref: ref - }, other), startAdornment, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_FormControl_FormControlContext__WEBPACK_IMPORTED_MODULE_5__["default"].Provider, { - value: null - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(InputComponent, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - "aria-invalid": fcs.error, - "aria-describedby": ariaDescribedby, - autoComplete: autoComplete, - autoFocus: autoFocus, - defaultValue: defaultValue, - disabled: fcs.disabled, - id: id, - onAnimationStart: handleAutoFill, - name: name, - placeholder: placeholder, - readOnly: readOnly, - required: fcs.required, - rows: rows, - value: value, - onKeyDown: onKeyDown, - onKeyUp: onKeyUp - }, inputProps, { - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.input, inputPropsProp.className, fcs.disabled && classes.disabled, multiline && classes.inputMultiline, fcs.hiddenLabel && classes.inputHiddenLabel, startAdornment && classes.inputAdornedStart, endAdornment && classes.inputAdornedEnd, type === 'search' && classes.inputTypeSearch, fcs.margin === 'dense' && classes.inputMarginDense), - onBlur: handleBlur, - onChange: handleChange, - onFocus: handleFocus - }))), endAdornment, renderSuffix ? renderSuffix((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, fcs, { - startAdornment: startAdornment - })) : null); -}); - true ? InputBase.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * @ignore - */ - 'aria-describedby': (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string), - - /** - * This prop helps users to fill forms faster, especially on mobile devices. - * The name can be confusing, as it's more like an autofill. - * You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill). - */ - autoComplete: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string), - - /** - * If `true`, the `input` element will be focused during the first mount. - */ - autoFocus: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string), - - /** - * The color of the component. It supports those theme colors that make sense for this component. - */ - color: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOf(['primary', 'secondary']), - - /** - * The default `input` element value. Use when the component is not controlled. - */ - defaultValue: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().any), - - /** - * If `true`, the `input` element will be disabled. - */ - disabled: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool), - - /** - * End `InputAdornment` for this component. - */ - endAdornment: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().node), - - /** - * If `true`, the input will indicate an error. This is normally obtained via context from - * FormControl. - */ - error: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool), - - /** - * If `true`, the input will take up the full width of its container. - */ - fullWidth: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool), - - /** - * The id of the `input` element. - */ - id: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string), - - /** - * The component used for the `input` element. - * Either a string to use a HTML element or a component. - */ - inputComponent: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().elementType), - - /** - * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element. - */ - inputProps: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().object), - - /** - * Pass a ref to the `input` element. - */ - inputRef: _material_ui_utils__WEBPACK_IMPORTED_MODULE_11__["default"], - - /** - * If `dense`, will adjust vertical spacing. This is normally obtained via context from - * FormControl. - */ - margin: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOf(['dense', 'none']), - - /** - * Maximum number of rows to display when multiline option is set to true. - */ - maxRows: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_10___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string)]), - - /** - * Minimum number of rows to display when multiline option is set to true. - */ - minRows: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_10___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string)]), - - /** - * If `true`, a textarea element will be rendered. - */ - multiline: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool), - - /** - * Name attribute of the `input` element. - */ - name: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string), - - /** - * Callback fired when the input is blurred. - * - * Notice that the first argument (event) might be undefined. - */ - onBlur: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func), - - /** - * Callback fired when the value is changed. - * - * @param {object} event The event source of the callback. - * You can pull out the new value by accessing `event.target.value` (string). - */ - onChange: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func), - - /** - * @ignore - */ - onClick: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func), - - /** - * @ignore - */ - onFocus: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func), - - /** - * @ignore - */ - onKeyDown: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func), - - /** - * @ignore - */ - onKeyUp: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func), - - /** - * The short hint displayed in the input before the user enters a value. - */ - placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string), - - /** - * It prevents the user from changing the value of the field - * (not from interacting with the field). - */ - readOnly: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool), - - /** - * @ignore - */ - renderSuffix: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func), - - /** - * If `true`, the `input` element will be required. - */ - required: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool), - - /** - * Number of rows to display when multiline option is set to true. - */ - rows: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_10___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string)]), - - /** - * Maximum number of rows to display. - * @deprecated Use `maxRows` instead. - */ - rowsMax: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_10___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string)]), - - /** - * Minimum number of rows to display. - * @deprecated Use `minRows` instead. - */ - rowsMin: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_10___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string)]), - - /** - * Start `InputAdornment` for this component. - */ - startAdornment: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().node), - - /** - * Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types). - */ - type: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string), - - /** - * The value of the `input` element, required for a controlled component. - */ - value: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().any) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_12__["default"])(styles, { - name: 'MuiInputBase' -})(InputBase)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/InputBase/utils.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "hasValue": () => (/* binding */ hasValue), -/* harmony export */ "isAdornedStart": () => (/* binding */ isAdornedStart), -/* harmony export */ "isFilled": () => (/* binding */ isFilled) -/* harmony export */ }); -// Supports determination of isControlled(). -// Controlled input accepts its current value as a prop. -// -// @see https://facebook.github.io/react/docs/forms.html#controlled-components -// @param value -// @returns {boolean} true if string (including '') or number (including zero) -function hasValue(value) { - return value != null && !(Array.isArray(value) && value.length === 0); -} // Determine if field is empty or filled. -// Response determines if label is presented above field or as placeholder. -// -// @param obj -// @param SSR -// @returns {boolean} False when not present or empty string. -// True when any number or string with length. - -function isFilled(obj) { - var SSR = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - return obj && (hasValue(obj.value) && obj.value !== '' || SSR && hasValue(obj.defaultValue) && obj.defaultValue !== ''); -} // Determine if an Input is adorned on start. -// It's corresponding to the left with LTR. -// -// @param obj -// @returns {boolean} False when no adornments. -// True when adorned at the start. - -function isAdornedStart(obj) { - return obj.startAdornment; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/InputLabel/InputLabel.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _FormControl_formControlState__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormControl/formControlState.js"); -/* harmony import */ var _FormControl_useFormControl__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormControl/useFormControl.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _FormLabel__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormLabel/FormLabel.js"); - - - - - - - - - -var styles = function styles(theme) { - return { - /* Styles applied to the root element. */ - root: { - display: 'block', - transformOrigin: 'top left' - }, - - /* Pseudo-class applied to the root element if `focused={true}`. */ - focused: {}, - - /* Pseudo-class applied to the root element if `disabled={true}`. */ - disabled: {}, - - /* Pseudo-class applied to the root element if `error={true}`. */ - error: {}, - - /* Pseudo-class applied to the root element if `required={true}`. */ - required: {}, - - /* Pseudo-class applied to the asterisk element. */ - asterisk: {}, - - /* Styles applied to the root element if the component is a descendant of `FormControl`. */ - formControl: { - position: 'absolute', - left: 0, - top: 0, - // slight alteration to spec spacing to match visual spec result - transform: 'translate(0, 24px) scale(1)' - }, - - /* Styles applied to the root element if `margin="dense"`. */ - marginDense: { - // Compensation for the `Input.inputDense` style. - transform: 'translate(0, 21px) scale(1)' - }, - - /* Styles applied to the `input` element if `shrink={true}`. */ - shrink: { - transform: 'translate(0, 1.5px) scale(0.75)', - transformOrigin: 'top left' - }, - - /* Styles applied to the `input` element if `disableAnimation={false}`. */ - animated: { - transition: theme.transitions.create(['color', 'transform'], { - duration: theme.transitions.duration.shorter, - easing: theme.transitions.easing.easeOut - }) - }, - - /* Styles applied to the root element if `variant="filled"`. */ - filled: { - // Chrome's autofill feature gives the input field a yellow background. - // Since the input field is behind the label in the HTML tree, - // the input field is drawn last and hides the label with an opaque background color. - // zIndex: 1 will raise the label above opaque background-colors of input. - zIndex: 1, - pointerEvents: 'none', - transform: 'translate(12px, 20px) scale(1)', - '&$marginDense': { - transform: 'translate(12px, 17px) scale(1)' - }, - '&$shrink': { - transform: 'translate(12px, 10px) scale(0.75)', - '&$marginDense': { - transform: 'translate(12px, 7px) scale(0.75)' - } - } - }, - - /* Styles applied to the root element if `variant="outlined"`. */ - outlined: { - // see comment above on filled.zIndex - zIndex: 1, - pointerEvents: 'none', - transform: 'translate(14px, 20px) scale(1)', - '&$marginDense': { - transform: 'translate(14px, 12px) scale(1)' - }, - '&$shrink': { - transform: 'translate(14px, -6px) scale(0.75)' - } - } - }; -}; -var InputLabel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function InputLabel(props, ref) { - var classes = props.classes, - className = props.className, - _props$disableAnimati = props.disableAnimation, - disableAnimation = _props$disableAnimati === void 0 ? false : _props$disableAnimati, - margin = props.margin, - shrinkProp = props.shrink, - variant = props.variant, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["classes", "className", "disableAnimation", "margin", "shrink", "variant"]); - - var muiFormControl = (0,_FormControl_useFormControl__WEBPACK_IMPORTED_MODULE_4__["default"])(); - var shrink = shrinkProp; - - if (typeof shrink === 'undefined' && muiFormControl) { - shrink = muiFormControl.filled || muiFormControl.focused || muiFormControl.adornedStart; - } - - var fcs = (0,_FormControl_formControlState__WEBPACK_IMPORTED_MODULE_5__["default"])({ - props: props, - muiFormControl: muiFormControl, - states: ['margin', 'variant'] - }); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_FormLabel__WEBPACK_IMPORTED_MODULE_6__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - "data-shrink": shrink, - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, className, muiFormControl && classes.formControl, !disableAnimation && classes.animated, shrink && classes.shrink, fcs.margin === 'dense' && classes.marginDense, { - 'filled': classes.filled, - 'outlined': classes.outlined - }[fcs.variant]), - classes: { - focused: classes.focused, - disabled: classes.disabled, - error: classes.error, - required: classes.required, - asterisk: classes.asterisk - }, - ref: ref - }, other)); -}); - true ? InputLabel.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * The contents of the `InputLabel`. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), - - /** - * The color of the component. It supports those theme colors that make sense for this component. - */ - color: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(['primary', 'secondary']), - - /** - * If `true`, the transition animation is disabled. - */ - disableAnimation: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * If `true`, apply disabled class. - */ - disabled: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * If `true`, the label will be displayed in an error state. - */ - error: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * If `true`, the input of this label is focused. - */ - focused: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * If `dense`, will adjust vertical spacing. This is normally obtained via context from - * FormControl. - */ - margin: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(['dense']), - - /** - * if `true`, the label will indicate that the input is required. - */ - required: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * If `true`, the label is shrunk. - */ - shrink: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * The variant to use. - */ - variant: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(['filled', 'outlined', 'standard']) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_8__["default"])(styles, { - name: 'MuiInputLabel' -})(InputLabel)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/List/List.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _ListContext__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/List/ListContext.js"); - - - - - - - -var styles = { - /* Styles applied to the root element. */ - root: { - listStyle: 'none', - margin: 0, - padding: 0, - position: 'relative' - }, - - /* Styles applied to the root element if `disablePadding={false}`. */ - padding: { - paddingTop: 8, - paddingBottom: 8 - }, - - /* Styles applied to the root element if dense. */ - dense: {}, - - /* Styles applied to the root element if a `subheader` is provided. */ - subheader: { - paddingTop: 0 - } -}; -var List = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function List(props, ref) { - var children = props.children, - classes = props.classes, - className = props.className, - _props$component = props.component, - Component = _props$component === void 0 ? 'ul' : _props$component, - _props$dense = props.dense, - dense = _props$dense === void 0 ? false : _props$dense, - _props$disablePadding = props.disablePadding, - disablePadding = _props$disablePadding === void 0 ? false : _props$disablePadding, - subheader = props.subheader, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["children", "classes", "className", "component", "dense", "disablePadding", "subheader"]); - - var context = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(function () { - return { - dense: dense - }; - }, [dense]); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_ListContext__WEBPACK_IMPORTED_MODULE_4__["default"].Provider, { - value: context - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Component, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, className, dense && classes.dense, !disablePadding && classes.padding, subheader && classes.subheader), - ref: ref - }, other), subheader, children)); -}); - true ? List.propTypes = { - /** - * The content of the component. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object.isRequired), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), - - /** - * The component used for the root node. - * Either a string to use a HTML element or a component. - */ - component: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().elementType), - - /** - * If `true`, compact vertical padding designed for keyboard and mouse input will be used for - * the list and list items. - * The prop is available to descendant components as the `dense` context. - */ - dense: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - - /** - * If `true`, vertical padding will be removed from the list. - */ - disablePadding: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - - /** - * The content of the subheader, normally `ListSubheader`. - */ - subheader: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().node) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_6__["default"])(styles, { - name: 'MuiList' -})(List)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/List/ListContext.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); - -/** - * @ignore - internal component. - */ - -var ListContext = react__WEBPACK_IMPORTED_MODULE_0__.createContext({}); - -if (true) { - ListContext.displayName = 'ListContext'; -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ListContext); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/ListItem/ListItem.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/utils/esm/chainPropTypes.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _ButtonBase__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/ButtonBase/ButtonBase.js"); -/* harmony import */ var _utils_isMuiElement__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/isMuiElement.js"); -/* harmony import */ var _utils_useForkRef__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useForkRef.js"); -/* harmony import */ var _List_ListContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/List/ListContext.js"); -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/react-dom/index.js"); - - - - - - - - - - - - -var styles = function styles(theme) { - return { - /* Styles applied to the (normally root) `component` element. May be wrapped by a `container`. */ - root: { - display: 'flex', - justifyContent: 'flex-start', - alignItems: 'center', - position: 'relative', - textDecoration: 'none', - width: '100%', - boxSizing: 'border-box', - textAlign: 'left', - paddingTop: 8, - paddingBottom: 8, - '&$focusVisible': { - backgroundColor: theme.palette.action.selected - }, - '&$selected, &$selected:hover': { - backgroundColor: theme.palette.action.selected - }, - '&$disabled': { - opacity: 0.5 - } - }, - - /* Styles applied to the `container` element if `children` includes `ListItemSecondaryAction`. */ - container: { - position: 'relative' - }, - - /* Pseudo-class applied to the `component`'s `focusVisibleClassName` prop if `button={true}`. */ - focusVisible: {}, - - /* Styles applied to the `component` element if dense. */ - dense: { - paddingTop: 4, - paddingBottom: 4 - }, - - /* Styles applied to the `component` element if `alignItems="flex-start"`. */ - alignItemsFlexStart: { - alignItems: 'flex-start' - }, - - /* Pseudo-class applied to the inner `component` element if `disabled={true}`. */ - disabled: {}, - - /* Styles applied to the inner `component` element if `divider={true}`. */ - divider: { - borderBottom: "1px solid ".concat(theme.palette.divider), - backgroundClip: 'padding-box' - }, - - /* Styles applied to the inner `component` element if `disableGutters={false}`. */ - gutters: { - paddingLeft: 16, - paddingRight: 16 - }, - - /* Styles applied to the inner `component` element if `button={true}`. */ - button: { - transition: theme.transitions.create('background-color', { - duration: theme.transitions.duration.shortest - }), - '&:hover': { - textDecoration: 'none', - backgroundColor: theme.palette.action.hover, - // Reset on touch devices, it doesn't add specificity - '@media (hover: none)': { - backgroundColor: 'transparent' - } - } - }, - - /* Styles applied to the `component` element if `children` includes `ListItemSecondaryAction`. */ - secondaryAction: { - // Add some space to avoid collision as `ListItemSecondaryAction` - // is absolutely positioned. - paddingRight: 48 - }, - - /* Pseudo-class applied to the root element if `selected={true}`. */ - selected: {} - }; -}; -var useEnhancedEffect = typeof window === 'undefined' ? react__WEBPACK_IMPORTED_MODULE_2__.useEffect : react__WEBPACK_IMPORTED_MODULE_2__.useLayoutEffect; -/** - * Uses an additional container component if `ListItemSecondaryAction` is the last child. - */ - -var ListItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function ListItem(props, ref) { - var _props$alignItems = props.alignItems, - alignItems = _props$alignItems === void 0 ? 'center' : _props$alignItems, - _props$autoFocus = props.autoFocus, - autoFocus = _props$autoFocus === void 0 ? false : _props$autoFocus, - _props$button = props.button, - button = _props$button === void 0 ? false : _props$button, - childrenProp = props.children, - classes = props.classes, - className = props.className, - componentProp = props.component, - _props$ContainerCompo = props.ContainerComponent, - ContainerComponent = _props$ContainerCompo === void 0 ? 'li' : _props$ContainerCompo, - _props$ContainerProps = props.ContainerProps; - _props$ContainerProps = _props$ContainerProps === void 0 ? {} : _props$ContainerProps; - - var ContainerClassName = _props$ContainerProps.className, - ContainerProps = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(_props$ContainerProps, ["className"]), - _props$dense = props.dense, - dense = _props$dense === void 0 ? false : _props$dense, - _props$disabled = props.disabled, - disabled = _props$disabled === void 0 ? false : _props$disabled, - _props$disableGutters = props.disableGutters, - disableGutters = _props$disableGutters === void 0 ? false : _props$disableGutters, - _props$divider = props.divider, - divider = _props$divider === void 0 ? false : _props$divider, - focusVisibleClassName = props.focusVisibleClassName, - _props$selected = props.selected, - selected = _props$selected === void 0 ? false : _props$selected, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["alignItems", "autoFocus", "button", "children", "classes", "className", "component", "ContainerComponent", "ContainerProps", "dense", "disabled", "disableGutters", "divider", "focusVisibleClassName", "selected"]); - - var context = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_List_ListContext__WEBPACK_IMPORTED_MODULE_5__["default"]); - var childContext = { - dense: dense || context.dense || false, - alignItems: alignItems - }; - var listItemRef = react__WEBPACK_IMPORTED_MODULE_2__.useRef(null); - useEnhancedEffect(function () { - if (autoFocus) { - if (listItemRef.current) { - listItemRef.current.focus(); - } else if (true) { - console.error('Material-UI: Unable to set focus to a ListItem whose component has not been rendered.'); - } - } - }, [autoFocus]); - var children = react__WEBPACK_IMPORTED_MODULE_2__.Children.toArray(childrenProp); - var hasSecondaryAction = children.length && (0,_utils_isMuiElement__WEBPACK_IMPORTED_MODULE_6__["default"])(children[children.length - 1], ['ListItemSecondaryAction']); - var handleOwnRef = react__WEBPACK_IMPORTED_MODULE_2__.useCallback(function (instance) { - // #StrictMode ready - listItemRef.current = react_dom__WEBPACK_IMPORTED_MODULE_4__.findDOMNode(instance); - }, []); - var handleRef = (0,_utils_useForkRef__WEBPACK_IMPORTED_MODULE_7__["default"])(handleOwnRef, ref); - - var componentProps = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, className, childContext.dense && classes.dense, !disableGutters && classes.gutters, divider && classes.divider, disabled && classes.disabled, button && classes.button, alignItems !== "center" && classes.alignItemsFlexStart, hasSecondaryAction && classes.secondaryAction, selected && classes.selected), - disabled: disabled - }, other); - - var Component = componentProp || 'li'; - - if (button) { - componentProps.component = componentProp || 'div'; - componentProps.focusVisibleClassName = (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.focusVisible, focusVisibleClassName); - Component = _ButtonBase__WEBPACK_IMPORTED_MODULE_8__["default"]; - } - - if (hasSecondaryAction) { - // Use div by default. - Component = !componentProps.component && !componentProp ? 'div' : Component; // Avoid nesting of li > li. - - if (ContainerComponent === 'li') { - if (Component === 'li') { - Component = 'div'; - } else if (componentProps.component === 'li') { - componentProps.component = 'div'; - } - } - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_List_ListContext__WEBPACK_IMPORTED_MODULE_5__["default"].Provider, { - value: childContext - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(ContainerComponent, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.container, ContainerClassName), - ref: handleRef - }, ContainerProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Component, componentProps, children), children.pop())); - } - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_List_ListContext__WEBPACK_IMPORTED_MODULE_5__["default"].Provider, { - value: childContext - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Component, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - ref: handleRef - }, componentProps), children)); -}); - true ? ListItem.propTypes = { - /** - * Defines the `align-items` style property. - */ - alignItems: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOf(['flex-start', 'center']), - - /** - * If `true`, the list item will be focused during the first mount. - * Focus will also be triggered if the value changes from false to true. - */ - autoFocus: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool), - - /** - * If `true`, the list item will be a button (using `ButtonBase`). Props intended - * for `ButtonBase` can then be applied to `ListItem`. - */ - button: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool), - - /** - * The content of the component. If a `ListItemSecondaryAction` is used it must - * be the last child. - */ - children: (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_10__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_9___default().node), function (props) { - var children = react__WEBPACK_IMPORTED_MODULE_2__.Children.toArray(props.children); // React.Children.toArray(props.children).findLastIndex(isListItemSecondaryAction) - - var secondaryActionIndex = -1; - - for (var i = children.length - 1; i >= 0; i -= 1) { - var child = children[i]; - - if ((0,_utils_isMuiElement__WEBPACK_IMPORTED_MODULE_6__["default"])(child, ['ListItemSecondaryAction'])) { - secondaryActionIndex = i; - break; - } - } // is ListItemSecondaryAction the last child of ListItem - - - if (secondaryActionIndex !== -1 && secondaryActionIndex !== children.length - 1) { - return new Error('Material-UI: You used an element after ListItemSecondaryAction. ' + 'For ListItem to detect that it has a secondary action ' + 'you must pass it as the last child to ListItem.'); - } - - return null; - }), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object.isRequired), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string), - - /** - * The component used for the root node. - * Either a string to use a HTML element or a component. - * By default, it's a `li` when `button` is `false` and a `div` when `button` is `true`. - */ - component: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().elementType), - - /** - * The container component used when a `ListItemSecondaryAction` is the last child. - */ - ContainerComponent: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().elementType), - - /** - * Props applied to the container component if used. - */ - ContainerProps: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object), - - /** - * If `true`, compact vertical padding designed for keyboard and mouse input will be used. - */ - dense: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool), - - /** - * If `true`, the list item will be disabled. - */ - disabled: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool), - - /** - * If `true`, the left and right padding is removed. - */ - disableGutters: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool), - - /** - * If `true`, a 1px light border is added to the bottom of the list item. - */ - divider: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool), - - /** - * @ignore - */ - focusVisibleClassName: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string), - - /** - * Use to apply selected styling. - */ - selected: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_11__["default"])(styles, { - name: 'MuiListItem' -})(ListItem)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/ListItemIcon/ListItemIcon.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _List_ListContext__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/List/ListContext.js"); - - - - - - - -var styles = function styles(theme) { - return { - /* Styles applied to the root element. */ - root: { - minWidth: 56, - color: theme.palette.action.active, - flexShrink: 0, - display: 'inline-flex' - }, - - /* Styles applied to the root element when the parent `ListItem` uses `alignItems="flex-start"`. */ - alignItemsFlexStart: { - marginTop: 8 - } - }; -}; -/** - * A simple wrapper to apply `List` styles to an `Icon` or `SvgIcon`. - */ - -var ListItemIcon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function ListItemIcon(props, ref) { - var classes = props.classes, - className = props.className, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["classes", "className"]); - - var context = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_List_ListContext__WEBPACK_IMPORTED_MODULE_4__["default"]); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, className, context.alignItems === 'flex-start' && classes.alignItemsFlexStart), - ref: ref - }, other)); -}); - true ? ListItemIcon.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * The content of the component, normally `Icon`, `SvgIcon`, - * or a `@material-ui/icons` SVG icon element. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_6__["default"])(styles, { - name: 'MuiListItemIcon' -})(ListItemIcon)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/ListSubheader/ListSubheader.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _utils_capitalize__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/capitalize.js"); - - - - - - - -var styles = function styles(theme) { - return { - /* Styles applied to the root element. */ - root: { - boxSizing: 'border-box', - lineHeight: '48px', - listStyle: 'none', - color: theme.palette.text.secondary, - fontFamily: theme.typography.fontFamily, - fontWeight: theme.typography.fontWeightMedium, - fontSize: theme.typography.pxToRem(14) - }, - - /* Styles applied to the root element if `color="primary"`. */ - colorPrimary: { - color: theme.palette.primary.main - }, - - /* Styles applied to the root element if `color="inherit"`. */ - colorInherit: { - color: 'inherit' - }, - - /* Styles applied to the inner `component` element if `disableGutters={false}`. */ - gutters: { - paddingLeft: 16, - paddingRight: 16 - }, - - /* Styles applied to the root element if `inset={true}`. */ - inset: { - paddingLeft: 72 - }, - - /* Styles applied to the root element if `disableSticky={false}`. */ - sticky: { - position: 'sticky', - top: 0, - zIndex: 1, - backgroundColor: 'inherit' - } - }; -}; -var ListSubheader = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function ListSubheader(props, ref) { - var classes = props.classes, - className = props.className, - _props$color = props.color, - color = _props$color === void 0 ? 'default' : _props$color, - _props$component = props.component, - Component = _props$component === void 0 ? 'li' : _props$component, - _props$disableGutters = props.disableGutters, - disableGutters = _props$disableGutters === void 0 ? false : _props$disableGutters, - _props$disableSticky = props.disableSticky, - disableSticky = _props$disableSticky === void 0 ? false : _props$disableSticky, - _props$inset = props.inset, - inset = _props$inset === void 0 ? false : _props$inset, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["classes", "className", "color", "component", "disableGutters", "disableSticky", "inset"]); - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Component, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, className, color !== 'default' && classes["color".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_4__["default"])(color))], inset && classes.inset, !disableSticky && classes.sticky, !disableGutters && classes.gutters), - ref: ref - }, other)); -}); - true ? ListSubheader.propTypes = { - /** - * The content of the component. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object.isRequired), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), - - /** - * The color of the component. It supports those theme colors that make sense for this component. - */ - color: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOf(['default', 'primary', 'inherit']), - - /** - * The component used for the root node. - * Either a string to use a HTML element or a component. - */ - component: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().elementType), - - /** - * If `true`, the List Subheader will not have gutters. - */ - disableGutters: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - - /** - * If `true`, the List Subheader will not stick to the top during scroll. - */ - disableSticky: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - - /** - * If `true`, the List Subheader will be indented. - */ - inset: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_6__["default"])(styles, { - name: 'MuiListSubheader' -})(ListSubheader)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Menu/Menu.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/react-is/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/@material-ui/utils/esm/HTMLElementType.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _Popover__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/Popover/Popover.js"); -/* harmony import */ var _MenuList__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/core/esm/MenuList/MenuList.js"); -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/react-dom/index.js"); -/* harmony import */ var _utils_setRef__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/setRef.js"); -/* harmony import */ var _styles_useTheme__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/useTheme.js"); -/* harmony import */ var _utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/deprecatedPropType.js"); - - - - - - - - - - - - - - -var RTL_ORIGIN = { - vertical: 'top', - horizontal: 'right' -}; -var LTR_ORIGIN = { - vertical: 'top', - horizontal: 'left' -}; -var styles = { - /* Styles applied to the `Paper` component. */ - paper: { - // specZ: The maximum height of a simple menu should be one or more rows less than the view - // height. This ensures a tapable area outside of the simple menu with which to dismiss - // the menu. - maxHeight: 'calc(100% - 96px)', - // Add iOS momentum scrolling. - WebkitOverflowScrolling: 'touch' - }, - - /* Styles applied to the `List` component via `MenuList`. */ - list: { - // We disable the focus ring for mouse, touch and keyboard users. - outline: 0 - } -}; -var Menu = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function Menu(props, ref) { - var _props$autoFocus = props.autoFocus, - autoFocus = _props$autoFocus === void 0 ? true : _props$autoFocus, - children = props.children, - classes = props.classes, - _props$disableAutoFoc = props.disableAutoFocusItem, - disableAutoFocusItem = _props$disableAutoFoc === void 0 ? false : _props$disableAutoFoc, - _props$MenuListProps = props.MenuListProps, - MenuListProps = _props$MenuListProps === void 0 ? {} : _props$MenuListProps, - onClose = props.onClose, - onEnteringProp = props.onEntering, - open = props.open, - _props$PaperProps = props.PaperProps, - PaperProps = _props$PaperProps === void 0 ? {} : _props$PaperProps, - PopoverClasses = props.PopoverClasses, - _props$transitionDura = props.transitionDuration, - transitionDuration = _props$transitionDura === void 0 ? 'auto' : _props$transitionDura, - _props$TransitionProp = props.TransitionProps; - _props$TransitionProp = _props$TransitionProp === void 0 ? {} : _props$TransitionProp; - - var onEntering = _props$TransitionProp.onEntering, - TransitionProps = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(_props$TransitionProp, ["onEntering"]), - _props$variant = props.variant, - variant = _props$variant === void 0 ? 'selectedMenu' : _props$variant, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["autoFocus", "children", "classes", "disableAutoFocusItem", "MenuListProps", "onClose", "onEntering", "open", "PaperProps", "PopoverClasses", "transitionDuration", "TransitionProps", "variant"]); - - var theme = (0,_styles_useTheme__WEBPACK_IMPORTED_MODULE_6__["default"])(); - var autoFocusItem = autoFocus && !disableAutoFocusItem && open; - var menuListActionsRef = react__WEBPACK_IMPORTED_MODULE_2__.useRef(null); - var contentAnchorRef = react__WEBPACK_IMPORTED_MODULE_2__.useRef(null); - - var getContentAnchorEl = function getContentAnchorEl() { - return contentAnchorRef.current; - }; - - var handleEntering = function handleEntering(element, isAppearing) { - if (menuListActionsRef.current) { - menuListActionsRef.current.adjustStyleForScrollbar(element, theme); - } - - if (onEnteringProp) { - onEnteringProp(element, isAppearing); - } - - if (onEntering) { - onEntering(element, isAppearing); - } - }; - - var handleListKeyDown = function handleListKeyDown(event) { - if (event.key === 'Tab') { - event.preventDefault(); - - if (onClose) { - onClose(event, 'tabKeyDown'); - } - } - }; - /** - * the index of the item should receive focus - * in a `variant="selectedMenu"` it's the first `selected` item - * otherwise it's the very first item. - */ - - - var activeItemIndex = -1; // since we inject focus related props into children we have to do a lookahead - // to check if there is a `selected` item. We're looking for the last `selected` - // item and use the first valid item as a fallback - - react__WEBPACK_IMPORTED_MODULE_2__.Children.map(children, function (child, index) { - if (! /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.isValidElement(child)) { - return; - } - - if (true) { - if ((0,react_is__WEBPACK_IMPORTED_MODULE_3__.isFragment)(child)) { - console.error(["Material-UI: The Menu component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n')); - } - } - - if (!child.props.disabled) { - if (variant !== "menu" && child.props.selected) { - activeItemIndex = index; - } else if (activeItemIndex === -1) { - activeItemIndex = index; - } - } - }); - var items = react__WEBPACK_IMPORTED_MODULE_2__.Children.map(children, function (child, index) { - if (index === activeItemIndex) { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.cloneElement(child, { - ref: function ref(instance) { - // #StrictMode ready - contentAnchorRef.current = react_dom__WEBPACK_IMPORTED_MODULE_5__.findDOMNode(instance); - (0,_utils_setRef__WEBPACK_IMPORTED_MODULE_7__["default"])(child.ref, instance); - } - }); - } - - return child; - }); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_Popover__WEBPACK_IMPORTED_MODULE_8__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - getContentAnchorEl: getContentAnchorEl, - classes: PopoverClasses, - onClose: onClose, - TransitionProps: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - onEntering: handleEntering - }, TransitionProps), - anchorOrigin: theme.direction === 'rtl' ? RTL_ORIGIN : LTR_ORIGIN, - transformOrigin: theme.direction === 'rtl' ? RTL_ORIGIN : LTR_ORIGIN, - PaperProps: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, PaperProps, { - classes: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, PaperProps.classes, { - root: classes.paper - }) - }), - open: open, - ref: ref, - transitionDuration: transitionDuration - }, other), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_MenuList__WEBPACK_IMPORTED_MODULE_9__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - onKeyDown: handleListKeyDown, - actions: menuListActionsRef, - autoFocus: autoFocus && (activeItemIndex === -1 || disableAutoFocusItem), - autoFocusItem: autoFocusItem, - variant: variant - }, MenuListProps, { - className: (0,clsx__WEBPACK_IMPORTED_MODULE_4__["default"])(classes.list, MenuListProps.className) - }), items)); -}); - true ? Menu.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * A HTML element, or a function that returns it. - * It's used to set the position of the menu. - */ - anchorEl: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([_material_ui_utils__WEBPACK_IMPORTED_MODULE_11__["default"], (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func)]), - - /** - * If `true` (Default) will focus the `[role="menu"]` if no focusable child is found. Disabled - * children are not focusable. If you set this prop to `false` focus will be placed - * on the parent modal container. This has severe accessibility implications - * and should only be considered if you manage focus otherwise. - */ - autoFocus: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool), - - /** - * Menu contents, normally `MenuItem`s. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().object), - - /** - * When opening the menu will not focus the active item but the `[role="menu"]` - * unless `autoFocus` is also set to `false`. Not using the default means not - * following WAI-ARIA authoring practices. Please be considerate about possible - * accessibility implications. - */ - disableAutoFocusItem: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool), - - /** - * Props applied to the [`MenuList`](/api/menu-list/) element. - */ - MenuListProps: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().object), - - /** - * Callback fired when the component requests to be closed. - * - * @param {object} event The event source of the callback. - * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`, `"tabKeyDown"`. - */ - onClose: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func), - - /** - * Callback fired before the Menu enters. - * @deprecated Use the `TransitionProps` prop instead. - */ - onEnter: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_12__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_10___default().func), 'Use the `TransitionProps` prop instead.'), - - /** - * Callback fired when the Menu has entered. - * @deprecated Use the `TransitionProps` prop instead. - */ - onEntered: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_12__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_10___default().func), 'Use the `TransitionProps` prop instead.'), - - /** - * Callback fired when the Menu is entering. - * @deprecated Use the `TransitionProps` prop instead. - */ - onEntering: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_12__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_10___default().func), 'Use the `TransitionProps` prop instead.'), - - /** - * Callback fired before the Menu exits. - * @deprecated Use the `TransitionProps` prop instead. - */ - onExit: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_12__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_10___default().func), 'Use the `TransitionProps` prop instead.'), - - /** - * Callback fired when the Menu has exited. - * @deprecated Use the `TransitionProps` prop instead. - */ - onExited: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_12__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_10___default().func), 'Use the `TransitionProps` prop instead.'), - - /** - * Callback fired when the Menu is exiting. - * @deprecated Use the `TransitionProps` prop instead. - */ - onExiting: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_12__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_10___default().func), 'Use the `TransitionProps` prop instead.'), - - /** - * If `true`, the menu is visible. - */ - open: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool.isRequired), - - /** - * @ignore - */ - PaperProps: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().object), - - /** - * `classes` prop applied to the [`Popover`](/api/popover/) element. - */ - PopoverClasses: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().object), - - /** - * The length of the transition in `ms`, or 'auto' - */ - transitionDuration: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOf(['auto']), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().number), prop_types__WEBPACK_IMPORTED_MODULE_10___default().shape({ - appear: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().number), - enter: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().number), - exit: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().number) - })]), - - /** - * Props applied to the transition element. - * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition) component. - */ - TransitionProps: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().object), - - /** - * The variant to use. Use `menu` to prevent selected items from impacting the initial focus - * and the vertical alignment relative to the anchor element. - */ - variant: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOf(['menu', 'selectedMenu']) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_13__["default"])(styles, { - name: 'MuiMenu' -})(Menu)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/MenuItem/MenuItem.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _ListItem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/ListItem/ListItem.js"); - - - - - - - - -var styles = function styles(theme) { - return { - /* Styles applied to the root element. */ - root: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, theme.typography.body1, (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])({ - minHeight: 48, - paddingTop: 6, - paddingBottom: 6, - boxSizing: 'border-box', - width: 'auto', - overflow: 'hidden', - whiteSpace: 'nowrap' - }, theme.breakpoints.up('sm'), { - minHeight: 'auto' - })), - // TODO v5: remove - - /* Styles applied to the root element if `disableGutters={false}`. */ - gutters: {}, - - /* Styles applied to the root element if `selected={true}`. */ - selected: {}, - - /* Styles applied to the root element if dense. */ - dense: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, theme.typography.body2, { - minHeight: 'auto' - }) - }; -}; -var MenuItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.forwardRef(function MenuItem(props, ref) { - var classes = props.classes, - className = props.className, - _props$component = props.component, - component = _props$component === void 0 ? 'li' : _props$component, - _props$disableGutters = props.disableGutters, - disableGutters = _props$disableGutters === void 0 ? false : _props$disableGutters, - ListItemClasses = props.ListItemClasses, - _props$role = props.role, - role = _props$role === void 0 ? 'menuitem' : _props$role, - selected = props.selected, - tabIndexProp = props.tabIndex, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__["default"])(props, ["classes", "className", "component", "disableGutters", "ListItemClasses", "role", "selected", "tabIndex"]); - - var tabIndex; - - if (!props.disabled) { - tabIndex = tabIndexProp !== undefined ? tabIndexProp : -1; - } - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(_ListItem__WEBPACK_IMPORTED_MODULE_5__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({ - button: true, - role: role, - tabIndex: tabIndex, - component: component, - selected: selected, - disableGutters: disableGutters, - classes: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({ - dense: classes.dense - }, ListItemClasses), - className: (0,clsx__WEBPACK_IMPORTED_MODULE_4__["default"])(classes.root, className, selected && classes.selected, !disableGutters && classes.gutters), - ref: ref - }, other)); -}); - true ? MenuItem.propTypes = { - /** - * Menu item contents. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object.isRequired), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string), - - /** - * The component used for the root node. - * Either a string to use a HTML element or a component. - */ - component: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().elementType), - - /** - * If `true`, compact vertical padding designed for keyboard and mouse input will be used. - */ - dense: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool), - - /** - * @ignore - */ - disabled: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool), - - /** - * If `true`, the left and right padding is removed. - */ - disableGutters: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool), - - /** - * `classes` prop applied to the [`ListItem`](/api/list-item/) element. - */ - ListItemClasses: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object), - - /** - * @ignore - */ - role: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string), - - /** - * @ignore - */ - selected: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool), - - /** - * @ignore - */ - tabIndex: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_7__["default"])(styles, { - name: 'MuiMenuItem' -})(MenuItem)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/MenuList/MenuList.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/react-is/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__); -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/react-dom/index.js"); -/* harmony import */ var _utils_ownerDocument__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/ownerDocument.js"); -/* harmony import */ var _List__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/List/List.js"); -/* harmony import */ var _utils_getScrollbarSize__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/getScrollbarSize.js"); -/* harmony import */ var _utils_useForkRef__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useForkRef.js"); - - - - - - - - - - - -function nextItem(list, item, disableListWrap) { - if (list === item) { - return list.firstChild; - } - - if (item && item.nextElementSibling) { - return item.nextElementSibling; - } - - return disableListWrap ? null : list.firstChild; -} - -function previousItem(list, item, disableListWrap) { - if (list === item) { - return disableListWrap ? list.firstChild : list.lastChild; - } - - if (item && item.previousElementSibling) { - return item.previousElementSibling; - } - - return disableListWrap ? null : list.lastChild; -} - -function textCriteriaMatches(nextFocus, textCriteria) { - if (textCriteria === undefined) { - return true; - } - - var text = nextFocus.innerText; - - if (text === undefined) { - // jsdom doesn't support innerText - text = nextFocus.textContent; - } - - text = text.trim().toLowerCase(); - - if (text.length === 0) { - return false; - } - - if (textCriteria.repeating) { - return text[0] === textCriteria.keys[0]; - } - - return text.indexOf(textCriteria.keys.join('')) === 0; -} - -function moveFocus(list, currentFocus, disableListWrap, disabledItemsFocusable, traversalFunction, textCriteria) { - var wrappedOnce = false; - var nextFocus = traversalFunction(list, currentFocus, currentFocus ? disableListWrap : false); - - while (nextFocus) { - // Prevent infinite loop. - if (nextFocus === list.firstChild) { - if (wrappedOnce) { - return; - } - - wrappedOnce = true; - } // Same logic as useAutocomplete.js - - - var nextFocusDisabled = disabledItemsFocusable ? false : nextFocus.disabled || nextFocus.getAttribute('aria-disabled') === 'true'; - - if (!nextFocus.hasAttribute('tabindex') || !textCriteriaMatches(nextFocus, textCriteria) || nextFocusDisabled) { - // Move to the next element. - nextFocus = traversalFunction(list, nextFocus, disableListWrap); - } else { - nextFocus.focus(); - return; - } - } -} - -var useEnhancedEffect = typeof window === 'undefined' ? react__WEBPACK_IMPORTED_MODULE_2__.useEffect : react__WEBPACK_IMPORTED_MODULE_2__.useLayoutEffect; -/** - * A permanently displayed menu following https://www.w3.org/TR/wai-aria-practices/#menubutton. - * It's exposed to help customization of the [`Menu`](/api/menu/) component. If you - * use it separately you need to move focus into the component manually. Once - * the focus is placed inside the component it is fully keyboard accessible. - */ - -var MenuList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function MenuList(props, ref) { - var actions = props.actions, - _props$autoFocus = props.autoFocus, - autoFocus = _props$autoFocus === void 0 ? false : _props$autoFocus, - _props$autoFocusItem = props.autoFocusItem, - autoFocusItem = _props$autoFocusItem === void 0 ? false : _props$autoFocusItem, - children = props.children, - className = props.className, - _props$disabledItemsF = props.disabledItemsFocusable, - disabledItemsFocusable = _props$disabledItemsF === void 0 ? false : _props$disabledItemsF, - _props$disableListWra = props.disableListWrap, - disableListWrap = _props$disableListWra === void 0 ? false : _props$disableListWra, - onKeyDown = props.onKeyDown, - _props$variant = props.variant, - variant = _props$variant === void 0 ? 'selectedMenu' : _props$variant, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["actions", "autoFocus", "autoFocusItem", "children", "className", "disabledItemsFocusable", "disableListWrap", "onKeyDown", "variant"]); - - var listRef = react__WEBPACK_IMPORTED_MODULE_2__.useRef(null); - var textCriteriaRef = react__WEBPACK_IMPORTED_MODULE_2__.useRef({ - keys: [], - repeating: true, - previousKeyMatched: true, - lastTime: null - }); - useEnhancedEffect(function () { - if (autoFocus) { - listRef.current.focus(); - } - }, [autoFocus]); - react__WEBPACK_IMPORTED_MODULE_2__.useImperativeHandle(actions, function () { - return { - adjustStyleForScrollbar: function adjustStyleForScrollbar(containerElement, theme) { - // Let's ignore that piece of logic if users are already overriding the width - // of the menu. - var noExplicitWidth = !listRef.current.style.width; - - if (containerElement.clientHeight < listRef.current.clientHeight && noExplicitWidth) { - var scrollbarSize = "".concat((0,_utils_getScrollbarSize__WEBPACK_IMPORTED_MODULE_5__["default"])(true), "px"); - listRef.current.style[theme.direction === 'rtl' ? 'paddingLeft' : 'paddingRight'] = scrollbarSize; - listRef.current.style.width = "calc(100% + ".concat(scrollbarSize, ")"); - } - - return listRef.current; - } - }; - }, []); - - var handleKeyDown = function handleKeyDown(event) { - var list = listRef.current; - var key = event.key; - /** - * @type {Element} - will always be defined since we are in a keydown handler - * attached to an element. A keydown event is either dispatched to the activeElement - * or document.body or document.documentElement. Only the first case will - * trigger this specific handler. - */ - - var currentFocus = (0,_utils_ownerDocument__WEBPACK_IMPORTED_MODULE_6__["default"])(list).activeElement; - - if (key === 'ArrowDown') { - // Prevent scroll of the page - event.preventDefault(); - moveFocus(list, currentFocus, disableListWrap, disabledItemsFocusable, nextItem); - } else if (key === 'ArrowUp') { - event.preventDefault(); - moveFocus(list, currentFocus, disableListWrap, disabledItemsFocusable, previousItem); - } else if (key === 'Home') { - event.preventDefault(); - moveFocus(list, null, disableListWrap, disabledItemsFocusable, nextItem); - } else if (key === 'End') { - event.preventDefault(); - moveFocus(list, null, disableListWrap, disabledItemsFocusable, previousItem); - } else if (key.length === 1) { - var criteria = textCriteriaRef.current; - var lowerKey = key.toLowerCase(); - var currTime = performance.now(); - - if (criteria.keys.length > 0) { - // Reset - if (currTime - criteria.lastTime > 500) { - criteria.keys = []; - criteria.repeating = true; - criteria.previousKeyMatched = true; - } else if (criteria.repeating && lowerKey !== criteria.keys[0]) { - criteria.repeating = false; - } - } - - criteria.lastTime = currTime; - criteria.keys.push(lowerKey); - var keepFocusOnCurrent = currentFocus && !criteria.repeating && textCriteriaMatches(currentFocus, criteria); - - if (criteria.previousKeyMatched && (keepFocusOnCurrent || moveFocus(list, currentFocus, false, disabledItemsFocusable, nextItem, criteria))) { - event.preventDefault(); - } else { - criteria.previousKeyMatched = false; - } - } - - if (onKeyDown) { - onKeyDown(event); - } - }; - - var handleOwnRef = react__WEBPACK_IMPORTED_MODULE_2__.useCallback(function (instance) { - // #StrictMode ready - listRef.current = react_dom__WEBPACK_IMPORTED_MODULE_4__.findDOMNode(instance); - }, []); - var handleRef = (0,_utils_useForkRef__WEBPACK_IMPORTED_MODULE_7__["default"])(handleOwnRef, ref); - /** - * the index of the item should receive focus - * in a `variant="selectedMenu"` it's the first `selected` item - * otherwise it's the very first item. - */ - - var activeItemIndex = -1; // since we inject focus related props into children we have to do a lookahead - // to check if there is a `selected` item. We're looking for the last `selected` - // item and use the first valid item as a fallback - - react__WEBPACK_IMPORTED_MODULE_2__.Children.forEach(children, function (child, index) { - if (! /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.isValidElement(child)) { - return; - } - - if (true) { - if ((0,react_is__WEBPACK_IMPORTED_MODULE_3__.isFragment)(child)) { - console.error(["Material-UI: The Menu component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n')); - } - } - - if (!child.props.disabled) { - if (variant === 'selectedMenu' && child.props.selected) { - activeItemIndex = index; - } else if (activeItemIndex === -1) { - activeItemIndex = index; - } - } - }); - var items = react__WEBPACK_IMPORTED_MODULE_2__.Children.map(children, function (child, index) { - if (index === activeItemIndex) { - var newChildProps = {}; - - if (autoFocusItem) { - newChildProps.autoFocus = true; - } - - if (child.props.tabIndex === undefined && variant === 'selectedMenu') { - newChildProps.tabIndex = 0; - } - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.cloneElement(child, newChildProps); - } - - return child; - }); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_List__WEBPACK_IMPORTED_MODULE_8__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - role: "menu", - ref: handleRef, - className: className, - onKeyDown: handleKeyDown, - tabIndex: autoFocus ? 0 : -1 - }, other), items); -}); - true ? MenuList.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * If `true`, will focus the `[role="menu"]` container and move into tab order. - */ - autoFocus: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool), - - /** - * If `true`, will focus the first menuitem if `variant="menu"` or selected item - * if `variant="selectedMenu"`. - */ - autoFocusItem: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool), - - /** - * MenuList contents, normally `MenuItem`s. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string), - - /** - * If `true`, will allow focus on disabled items. - */ - disabledItemsFocusable: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool), - - /** - * If `true`, the menu items will not wrap focus. - */ - disableListWrap: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool), - - /** - * @ignore - */ - onKeyDown: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func), - - /** - * The variant to use. Use `menu` to prevent selected items from impacting the initial focus - * and the vertical alignment relative to the anchor element. - */ - variant: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOf(['menu', 'selectedMenu']) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MenuList); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Modal/Modal.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/react-dom/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_15__); -/* harmony import */ var _material_ui_styles__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/styles/esm/useTheme/useTheme.js"); -/* harmony import */ var _material_ui_styles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/styles/esm/getThemeProps/getThemeProps.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("./node_modules/@material-ui/utils/esm/elementAcceptingRef.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__("./node_modules/@material-ui/utils/esm/HTMLElementType.js"); -/* harmony import */ var _utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/deprecatedPropType.js"); -/* harmony import */ var _utils_ownerDocument__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/ownerDocument.js"); -/* harmony import */ var _Portal__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("./node_modules/@material-ui/core/esm/Portal/Portal.js"); -/* harmony import */ var _utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/createChainedFunction.js"); -/* harmony import */ var _utils_useForkRef__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useForkRef.js"); -/* harmony import */ var _utils_useEventCallback__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useEventCallback.js"); -/* harmony import */ var _styles_zIndex__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/zIndex.js"); -/* harmony import */ var _ModalManager__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/Modal/ModalManager.js"); -/* harmony import */ var _Unstable_TrapFocus__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("./node_modules/@material-ui/core/esm/Unstable_TrapFocus/Unstable_TrapFocus.js"); -/* harmony import */ var _SimpleBackdrop__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/Modal/SimpleBackdrop.js"); - - - - - - - - - - - - - - - - - - -function getContainer(container) { - container = typeof container === 'function' ? container() : container; - return react_dom__WEBPACK_IMPORTED_MODULE_3__.findDOMNode(container); -} - -function getHasTransition(props) { - return props.children ? props.children.props.hasOwnProperty('in') : false; -} // A modal manager used to track and manage the state of open Modals. -// Modals don't open on the server so this won't conflict with concurrent requests. - - -var defaultManager = new _ModalManager__WEBPACK_IMPORTED_MODULE_4__["default"](); -var styles = function styles(theme) { - return { - /* Styles applied to the root element. */ - root: { - position: 'fixed', - zIndex: theme.zIndex.modal, - right: 0, - bottom: 0, - top: 0, - left: 0 - }, - - /* Styles applied to the root element if the `Modal` has exited. */ - hidden: { - visibility: 'hidden' - } - }; -}; -/** - * Modal is a lower-level construct that is leveraged by the following components: - * - * - [Dialog](/api/dialog/) - * - [Drawer](/api/drawer/) - * - [Menu](/api/menu/) - * - [Popover](/api/popover/) - * - * If you are creating a modal dialog, you probably want to use the [Dialog](/api/dialog/) component - * rather than directly using Modal. - * - * This component shares many concepts with [react-overlays](https://react-bootstrap.github.io/react-overlays/#modals). - */ - -var Modal = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function Modal(inProps, ref) { - var theme = (0,_material_ui_styles__WEBPACK_IMPORTED_MODULE_5__["default"])(); - var props = (0,_material_ui_styles__WEBPACK_IMPORTED_MODULE_6__["default"])({ - name: 'MuiModal', - props: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, inProps), - theme: theme - }); - - var _props$BackdropCompon = props.BackdropComponent, - BackdropComponent = _props$BackdropCompon === void 0 ? _SimpleBackdrop__WEBPACK_IMPORTED_MODULE_7__["default"] : _props$BackdropCompon, - BackdropProps = props.BackdropProps, - children = props.children, - _props$closeAfterTran = props.closeAfterTransition, - closeAfterTransition = _props$closeAfterTran === void 0 ? false : _props$closeAfterTran, - container = props.container, - _props$disableAutoFoc = props.disableAutoFocus, - disableAutoFocus = _props$disableAutoFoc === void 0 ? false : _props$disableAutoFoc, - _props$disableBackdro = props.disableBackdropClick, - disableBackdropClick = _props$disableBackdro === void 0 ? false : _props$disableBackdro, - _props$disableEnforce = props.disableEnforceFocus, - disableEnforceFocus = _props$disableEnforce === void 0 ? false : _props$disableEnforce, - _props$disableEscapeK = props.disableEscapeKeyDown, - disableEscapeKeyDown = _props$disableEscapeK === void 0 ? false : _props$disableEscapeK, - _props$disablePortal = props.disablePortal, - disablePortal = _props$disablePortal === void 0 ? false : _props$disablePortal, - _props$disableRestore = props.disableRestoreFocus, - disableRestoreFocus = _props$disableRestore === void 0 ? false : _props$disableRestore, - _props$disableScrollL = props.disableScrollLock, - disableScrollLock = _props$disableScrollL === void 0 ? false : _props$disableScrollL, - _props$hideBackdrop = props.hideBackdrop, - hideBackdrop = _props$hideBackdrop === void 0 ? false : _props$hideBackdrop, - _props$keepMounted = props.keepMounted, - keepMounted = _props$keepMounted === void 0 ? false : _props$keepMounted, - _props$manager = props.manager, - manager = _props$manager === void 0 ? defaultManager : _props$manager, - onBackdropClick = props.onBackdropClick, - onClose = props.onClose, - onEscapeKeyDown = props.onEscapeKeyDown, - onRendered = props.onRendered, - open = props.open, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__["default"])(props, ["BackdropComponent", "BackdropProps", "children", "closeAfterTransition", "container", "disableAutoFocus", "disableBackdropClick", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onEscapeKeyDown", "onRendered", "open"]); - - var _React$useState = react__WEBPACK_IMPORTED_MODULE_2__.useState(true), - exited = _React$useState[0], - setExited = _React$useState[1]; - - var modal = react__WEBPACK_IMPORTED_MODULE_2__.useRef({}); - var mountNodeRef = react__WEBPACK_IMPORTED_MODULE_2__.useRef(null); - var modalRef = react__WEBPACK_IMPORTED_MODULE_2__.useRef(null); - var handleRef = (0,_utils_useForkRef__WEBPACK_IMPORTED_MODULE_8__["default"])(modalRef, ref); - var hasTransition = getHasTransition(props); - - var getDoc = function getDoc() { - return (0,_utils_ownerDocument__WEBPACK_IMPORTED_MODULE_9__["default"])(mountNodeRef.current); - }; - - var getModal = function getModal() { - modal.current.modalRef = modalRef.current; - modal.current.mountNode = mountNodeRef.current; - return modal.current; - }; - - var handleMounted = function handleMounted() { - manager.mount(getModal(), { - disableScrollLock: disableScrollLock - }); // Fix a bug on Chrome where the scroll isn't initially 0. - - modalRef.current.scrollTop = 0; - }; - - var handleOpen = (0,_utils_useEventCallback__WEBPACK_IMPORTED_MODULE_10__["default"])(function () { - var resolvedContainer = getContainer(container) || getDoc().body; - manager.add(getModal(), resolvedContainer); // The element was already mounted. - - if (modalRef.current) { - handleMounted(); - } - }); - var isTopModal = react__WEBPACK_IMPORTED_MODULE_2__.useCallback(function () { - return manager.isTopModal(getModal()); - }, [manager]); - var handlePortalRef = (0,_utils_useEventCallback__WEBPACK_IMPORTED_MODULE_10__["default"])(function (node) { - mountNodeRef.current = node; - - if (!node) { - return; - } - - if (onRendered) { - onRendered(); - } - - if (open && isTopModal()) { - handleMounted(); - } else { - (0,_ModalManager__WEBPACK_IMPORTED_MODULE_4__.ariaHidden)(modalRef.current, true); - } - }); - var handleClose = react__WEBPACK_IMPORTED_MODULE_2__.useCallback(function () { - manager.remove(getModal()); - }, [manager]); - react__WEBPACK_IMPORTED_MODULE_2__.useEffect(function () { - return function () { - handleClose(); - }; - }, [handleClose]); - react__WEBPACK_IMPORTED_MODULE_2__.useEffect(function () { - if (open) { - handleOpen(); - } else if (!hasTransition || !closeAfterTransition) { - handleClose(); - } - }, [open, handleClose, hasTransition, closeAfterTransition, handleOpen]); - - if (!keepMounted && !open && (!hasTransition || exited)) { - return null; - } - - var handleEnter = function handleEnter() { - setExited(false); - }; - - var handleExited = function handleExited() { - setExited(true); - - if (closeAfterTransition) { - handleClose(); - } - }; - - var handleBackdropClick = function handleBackdropClick(event) { - if (event.target !== event.currentTarget) { - return; - } - - if (onBackdropClick) { - onBackdropClick(event); - } - - if (!disableBackdropClick && onClose) { - onClose(event, 'backdropClick'); - } - }; - - var handleKeyDown = function handleKeyDown(event) { - // The handler doesn't take event.defaultPrevented into account: - // - // event.preventDefault() is meant to stop default behaviours like - // clicking a checkbox to check it, hitting a button to submit a form, - // and hitting left arrow to move the cursor in a text input etc. - // Only special HTML elements have these default behaviors. - if (event.key !== 'Escape' || !isTopModal()) { - return; - } - - if (onEscapeKeyDown) { - onEscapeKeyDown(event); - } - - if (!disableEscapeKeyDown) { - // Swallow the event, in case someone is listening for the escape key on the body. - event.stopPropagation(); - - if (onClose) { - onClose(event, 'escapeKeyDown'); - } - } - }; - - var inlineStyle = styles(theme || { - zIndex: _styles_zIndex__WEBPACK_IMPORTED_MODULE_11__["default"] - }); - var childProps = {}; - - if (children.props.tabIndex === undefined) { - childProps.tabIndex = children.props.tabIndex || '-1'; - } // It's a Transition like component - - - if (hasTransition) { - childProps.onEnter = (0,_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_12__["default"])(handleEnter, children.props.onEnter); - childProps.onExited = (0,_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_12__["default"])(handleExited, children.props.onExited); - } - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_Portal__WEBPACK_IMPORTED_MODULE_13__["default"], { - ref: handlePortalRef, - container: container, - disablePortal: disablePortal - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - ref: handleRef, - onKeyDown: handleKeyDown, - role: "presentation" - }, other, { - style: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, inlineStyle.root, !open && exited ? inlineStyle.hidden : {}, other.style) - }), hideBackdrop ? null : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(BackdropComponent, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - open: open, - onClick: handleBackdropClick - }, BackdropProps)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_Unstable_TrapFocus__WEBPACK_IMPORTED_MODULE_14__["default"], { - disableEnforceFocus: disableEnforceFocus, - disableAutoFocus: disableAutoFocus, - disableRestoreFocus: disableRestoreFocus, - getDoc: getDoc, - isEnabled: isTopModal, - open: open - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.cloneElement(children, childProps)))); -}); - true ? Modal.propTypes = { - /** - * A backdrop component. This prop enables custom backdrop rendering. - */ - BackdropComponent: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().elementType), - - /** - * Props applied to the [`Backdrop`](/api/backdrop/) element. - */ - BackdropProps: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().object), - - /** - * A single child content element. - */ - children: _material_ui_utils__WEBPACK_IMPORTED_MODULE_16__["default"].isRequired, - - /** - * When set to true the Modal waits until a nested Transition is completed before closing. - */ - closeAfterTransition: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().bool), - - /** - * A HTML element, component instance, or function that returns either. - * The `container` will have the portal children appended to it. - * - * By default, it uses the body of the top-level document object, - * so it's simply `document.body` most of the time. - */ - container: prop_types__WEBPACK_IMPORTED_MODULE_15___default().oneOfType([_material_ui_utils__WEBPACK_IMPORTED_MODULE_17__["default"], prop_types__WEBPACK_IMPORTED_MODULE_15___default().instanceOf(react__WEBPACK_IMPORTED_MODULE_2__.Component), (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func)]), - - /** - * If `true`, the modal will not automatically shift focus to itself when it opens, and - * replace it to the last focused element when it closes. - * This also works correctly with any modal children that have the `disableAutoFocus` prop. - * - * Generally this should never be set to `true` as it makes the modal less - * accessible to assistive technologies, like screen readers. - */ - disableAutoFocus: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().bool), - - /** - * If `true`, clicking the backdrop will not fire `onClose`. - */ - disableBackdropClick: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_18__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_15___default().bool), 'Use the onClose prop with the `reason` argument to filter the `backdropClick` events.'), - - /** - * If `true`, the modal will not prevent focus from leaving the modal while open. - * - * Generally this should never be set to `true` as it makes the modal less - * accessible to assistive technologies, like screen readers. - */ - disableEnforceFocus: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().bool), - - /** - * If `true`, hitting escape will not fire `onClose`. - */ - disableEscapeKeyDown: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().bool), - - /** - * Disable the portal behavior. - * The children stay within it's parent DOM hierarchy. - */ - disablePortal: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().bool), - - /** - * If `true`, the modal will not restore focus to previously focused element once - * modal is hidden. - */ - disableRestoreFocus: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().bool), - - /** - * Disable the scroll lock behavior. - */ - disableScrollLock: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().bool), - - /** - * If `true`, the backdrop is not rendered. - */ - hideBackdrop: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().bool), - - /** - * Always keep the children in the DOM. - * This prop can be useful in SEO situation or - * when you want to maximize the responsiveness of the Modal. - */ - keepMounted: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().bool), - - /** - * @ignore - */ - manager: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().object), - - /** - * Callback fired when the backdrop is clicked. - */ - onBackdropClick: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_18__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_15___default().func), 'Use the onClose prop with the `reason` argument to handle the `backdropClick` events.'), - - /** - * Callback fired when the component requests to be closed. - * The `reason` parameter can optionally be used to control the response to `onClose`. - * - * @param {object} event The event source of the callback. - * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`. - */ - onClose: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func), - - /** - * Callback fired when the escape key is pressed, - * `disableEscapeKeyDown` is false and the modal is in focus. - */ - onEscapeKeyDown: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_18__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_15___default().func), 'Use the onClose prop with the `reason` argument to handle the `escapeKeyDown` events.'), - - /** - * Callback fired once the children has been mounted into the `container`. - * It signals that the `open={true}` prop took effect. - * - * This prop will be removed in v5, the ref can be used instead. - */ - onRendered: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_18__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_15___default().func), 'Use the ref instead.'), - - /** - * If `true`, the modal is open. - */ - open: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().bool.isRequired) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Modal); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Modal/ModalManager.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "ariaHidden": () => (/* binding */ ariaHidden), -/* harmony export */ "default": () => (/* binding */ ModalManager) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"); -/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/createClass.js"); -/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"); -/* harmony import */ var _utils_getScrollbarSize__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/getScrollbarSize.js"); -/* harmony import */ var _utils_ownerDocument__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/ownerDocument.js"); -/* harmony import */ var _utils_ownerWindow__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/ownerWindow.js"); - - - - - - // Is a vertical scrollbar displayed? - -function isOverflowing(container) { - var doc = (0,_utils_ownerDocument__WEBPACK_IMPORTED_MODULE_3__["default"])(container); - - if (doc.body === container) { - return (0,_utils_ownerWindow__WEBPACK_IMPORTED_MODULE_4__["default"])(doc).innerWidth > doc.documentElement.clientWidth; - } - - return container.scrollHeight > container.clientHeight; -} - -function ariaHidden(node, show) { - if (show) { - node.setAttribute('aria-hidden', 'true'); - } else { - node.removeAttribute('aria-hidden'); - } -} - -function getPaddingRight(node) { - return parseInt(window.getComputedStyle(node)['padding-right'], 10) || 0; -} - -function ariaHiddenSiblings(container, mountNode, currentNode) { - var nodesToExclude = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : []; - var show = arguments.length > 4 ? arguments[4] : undefined; - var blacklist = [mountNode, currentNode].concat((0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__["default"])(nodesToExclude)); - var blacklistTagNames = ['TEMPLATE', 'SCRIPT', 'STYLE']; - [].forEach.call(container.children, function (node) { - if (node.nodeType === 1 && blacklist.indexOf(node) === -1 && blacklistTagNames.indexOf(node.tagName) === -1) { - ariaHidden(node, show); - } - }); -} - -function findIndexOf(containerInfo, callback) { - var idx = -1; - containerInfo.some(function (item, index) { - if (callback(item)) { - idx = index; - return true; - } - - return false; - }); - return idx; -} - -function handleContainer(containerInfo, props) { - var restoreStyle = []; - var restorePaddings = []; - var container = containerInfo.container; - var fixedNodes; - - if (!props.disableScrollLock) { - if (isOverflowing(container)) { - // Compute the size before applying overflow hidden to avoid any scroll jumps. - var scrollbarSize = (0,_utils_getScrollbarSize__WEBPACK_IMPORTED_MODULE_5__["default"])(); - restoreStyle.push({ - value: container.style.paddingRight, - key: 'padding-right', - el: container - }); // Use computed style, here to get the real padding to add our scrollbar width. - - container.style['padding-right'] = "".concat(getPaddingRight(container) + scrollbarSize, "px"); // .mui-fixed is a global helper. - - fixedNodes = (0,_utils_ownerDocument__WEBPACK_IMPORTED_MODULE_3__["default"])(container).querySelectorAll('.mui-fixed'); - [].forEach.call(fixedNodes, function (node) { - restorePaddings.push(node.style.paddingRight); - node.style.paddingRight = "".concat(getPaddingRight(node) + scrollbarSize, "px"); - }); - } // Improve Gatsby support - // https://css-tricks.com/snippets/css/force-vertical-scrollbar/ - - - var parent = container.parentElement; - var scrollContainer = parent.nodeName === 'HTML' && window.getComputedStyle(parent)['overflow-y'] === 'scroll' ? parent : container; // Block the scroll even if no scrollbar is visible to account for mobile keyboard - // screensize shrink. - - restoreStyle.push({ - value: scrollContainer.style.overflow, - key: 'overflow', - el: scrollContainer - }); - scrollContainer.style.overflow = 'hidden'; - } - - var restore = function restore() { - if (fixedNodes) { - [].forEach.call(fixedNodes, function (node, i) { - if (restorePaddings[i]) { - node.style.paddingRight = restorePaddings[i]; - } else { - node.style.removeProperty('padding-right'); - } - }); - } - - restoreStyle.forEach(function (_ref) { - var value = _ref.value, - el = _ref.el, - key = _ref.key; - - if (value) { - el.style.setProperty(key, value); - } else { - el.style.removeProperty(key); - } - }); - }; - - return restore; -} - -function getHiddenSiblings(container) { - var hiddenSiblings = []; - [].forEach.call(container.children, function (node) { - if (node.getAttribute && node.getAttribute('aria-hidden') === 'true') { - hiddenSiblings.push(node); - } - }); - return hiddenSiblings; -} -/** - * @ignore - do not document. - * - * Proper state management for containers and the modals in those containers. - * Simplified, but inspired by react-overlay's ModalManager class. - * Used by the Modal to ensure proper styling of containers. - */ - - -var ModalManager = /*#__PURE__*/function () { - function ModalManager() { - (0,_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, ModalManager); - - // this.modals[modalIndex] = modal - this.modals = []; // this.containers[containerIndex] = { - // modals: [], - // container, - // restore: null, - // } - - this.containers = []; - } - - (0,_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__["default"])(ModalManager, [{ - key: "add", - value: function add(modal, container) { - var modalIndex = this.modals.indexOf(modal); - - if (modalIndex !== -1) { - return modalIndex; - } - - modalIndex = this.modals.length; - this.modals.push(modal); // If the modal we are adding is already in the DOM. - - if (modal.modalRef) { - ariaHidden(modal.modalRef, false); - } - - var hiddenSiblingNodes = getHiddenSiblings(container); - ariaHiddenSiblings(container, modal.mountNode, modal.modalRef, hiddenSiblingNodes, true); - var containerIndex = findIndexOf(this.containers, function (item) { - return item.container === container; - }); - - if (containerIndex !== -1) { - this.containers[containerIndex].modals.push(modal); - return modalIndex; - } - - this.containers.push({ - modals: [modal], - container: container, - restore: null, - hiddenSiblingNodes: hiddenSiblingNodes - }); - return modalIndex; - } - }, { - key: "mount", - value: function mount(modal, props) { - var containerIndex = findIndexOf(this.containers, function (item) { - return item.modals.indexOf(modal) !== -1; - }); - var containerInfo = this.containers[containerIndex]; - - if (!containerInfo.restore) { - containerInfo.restore = handleContainer(containerInfo, props); - } - } - }, { - key: "remove", - value: function remove(modal) { - var modalIndex = this.modals.indexOf(modal); - - if (modalIndex === -1) { - return modalIndex; - } - - var containerIndex = findIndexOf(this.containers, function (item) { - return item.modals.indexOf(modal) !== -1; - }); - var containerInfo = this.containers[containerIndex]; - containerInfo.modals.splice(containerInfo.modals.indexOf(modal), 1); - this.modals.splice(modalIndex, 1); // If that was the last modal in a container, clean up the container. - - if (containerInfo.modals.length === 0) { - // The modal might be closed before it had the chance to be mounted in the DOM. - if (containerInfo.restore) { - containerInfo.restore(); - } - - if (modal.modalRef) { - // In case the modal wasn't in the DOM yet. - ariaHidden(modal.modalRef, true); - } - - ariaHiddenSiblings(containerInfo.container, modal.mountNode, modal.modalRef, containerInfo.hiddenSiblingNodes, false); - this.containers.splice(containerIndex, 1); - } else { - // Otherwise make sure the next top modal is visible to a screen reader. - var nextTop = containerInfo.modals[containerInfo.modals.length - 1]; // as soon as a modal is adding its modalRef is undefined. it can't set - // aria-hidden because the dom element doesn't exist either - // when modal was unmounted before modalRef gets null - - if (nextTop.modalRef) { - ariaHidden(nextTop.modalRef, false); - } - } - - return modalIndex; - } - }, { - key: "isTopModal", - value: function isTopModal(modal) { - return this.modals.length > 0 && this.modals[this.modals.length - 1] === modal; - } - }]); - - return ModalManager; -}(); - - - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Modal/SimpleBackdrop.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__); - - - - -var styles = { - /* Styles applied to the root element. */ - root: { - zIndex: -1, - position: 'fixed', - right: 0, - bottom: 0, - top: 0, - left: 0, - backgroundColor: 'rgba(0, 0, 0, 0.5)', - WebkitTapHighlightColor: 'transparent' - }, - - /* Styles applied to the root element if `invisible={true}`. */ - invisible: { - backgroundColor: 'transparent' - } -}; -/** - * @ignore - internal component. - */ - -var SimpleBackdrop = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function SimpleBackdrop(props, ref) { - var _props$invisible = props.invisible, - invisible = _props$invisible === void 0 ? false : _props$invisible, - open = props.open, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["invisible", "open"]); - - return open ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - "aria-hidden": true, - ref: ref - }, other, { - style: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, styles.root, invisible ? styles.invisible : {}, other.style) - })) : null; -}); - true ? SimpleBackdrop.propTypes = { - /** - * If `true`, the backdrop is invisible. - * It can be used when rendering a popover or a custom select component. - */ - invisible: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().bool), - - /** - * If `true`, the backdrop is open. - */ - open: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().bool.isRequired) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SimpleBackdrop); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/NativeSelect/NativeSelect.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _NativeSelectInput__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/NativeSelect/NativeSelectInput.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _FormControl_formControlState__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormControl/formControlState.js"); -/* harmony import */ var _FormControl_useFormControl__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormControl/useFormControl.js"); -/* harmony import */ var _internal_svg_icons_ArrowDropDown__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/internal/svg-icons/ArrowDropDown.js"); -/* harmony import */ var _Input__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@material-ui/core/esm/Input/Input.js"); - - - - - - - - - - -var styles = function styles(theme) { - return { - /* Styles applied to the select component `root` class. */ - root: {}, - - /* Styles applied to the select component `select` class. */ - select: { - '-moz-appearance': 'none', - // Reset - '-webkit-appearance': 'none', - // Reset - // When interacting quickly, the text can end up selected. - // Native select can't be selected either. - userSelect: 'none', - borderRadius: 0, - // Reset - minWidth: 16, - // So it doesn't collapse. - cursor: 'pointer', - '&:focus': { - // Show that it's not an text input - backgroundColor: theme.palette.type === 'light' ? 'rgba(0, 0, 0, 0.05)' : 'rgba(255, 255, 255, 0.05)', - borderRadius: 0 // Reset Chrome style - - }, - // Remove IE 11 arrow - '&::-ms-expand': { - display: 'none' - }, - '&$disabled': { - cursor: 'default' - }, - '&[multiple]': { - height: 'auto' - }, - '&:not([multiple]) option, &:not([multiple]) optgroup': { - backgroundColor: theme.palette.background.paper - }, - '&&': { - paddingRight: 24 - } - }, - - /* Styles applied to the select component if `variant="filled"`. */ - filled: { - '&&': { - paddingRight: 32 - } - }, - - /* Styles applied to the select component if `variant="outlined"`. */ - outlined: { - borderRadius: theme.shape.borderRadius, - '&&': { - paddingRight: 32 - } - }, - - /* Styles applied to the select component `selectMenu` class. */ - selectMenu: { - height: 'auto', - // Resets for multpile select with chips - minHeight: '1.1876em', - // Required for select\text-field height consistency - textOverflow: 'ellipsis', - whiteSpace: 'nowrap', - overflow: 'hidden' - }, - - /* Pseudo-class applied to the select component `disabled` class. */ - disabled: {}, - - /* Styles applied to the icon component. */ - icon: { - // We use a position absolute over a flexbox in order to forward the pointer events - // to the input and to support wrapping tags.. - position: 'absolute', - right: 0, - top: 'calc(50% - 12px)', - // Center vertically - pointerEvents: 'none', - // Don't block pointer events on the select under the icon. - color: theme.palette.action.active, - '&$disabled': { - color: theme.palette.action.disabled - } - }, - - /* Styles applied to the icon component if the popup is open. */ - iconOpen: { - transform: 'rotate(180deg)' - }, - - /* Styles applied to the icon component if `variant="filled"`. */ - iconFilled: { - right: 7 - }, - - /* Styles applied to the icon component if `variant="outlined"`. */ - iconOutlined: { - right: 7 - }, - - /* Styles applied to the underlying native input component. */ - nativeInput: { - bottom: 0, - left: 0, - position: 'absolute', - opacity: 0, - pointerEvents: 'none', - width: '100%' - } - }; -}; -var defaultInput = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_Input__WEBPACK_IMPORTED_MODULE_3__["default"], null); -/** - * An alternative to `` with a much smaller bundle size footprint. - */ - -var NativeSelect = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function NativeSelect(props, ref) { - var children = props.children, - classes = props.classes, - _props$IconComponent = props.IconComponent, - IconComponent = _props$IconComponent === void 0 ? _internal_svg_icons_ArrowDropDown__WEBPACK_IMPORTED_MODULE_4__["default"] : _props$IconComponent, - _props$input = props.input, - input = _props$input === void 0 ? defaultInput : _props$input, - inputProps = props.inputProps, - variant = props.variant, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["children", "classes", "IconComponent", "input", "inputProps", "variant"]); - - var muiFormControl = (0,_FormControl_useFormControl__WEBPACK_IMPORTED_MODULE_5__["default"])(); - var fcs = (0,_FormControl_formControlState__WEBPACK_IMPORTED_MODULE_6__["default"])({ - props: props, - muiFormControl: muiFormControl, - states: ['variant'] - }); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.cloneElement(input, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - // Most of the logic is implemented in `NativeSelectInput`. - // The `Select` component is a simple API wrapper to expose something better to play with. - inputComponent: _NativeSelectInput__WEBPACK_IMPORTED_MODULE_7__["default"], - inputProps: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - children: children, - classes: classes, - IconComponent: IconComponent, - variant: fcs.variant, - type: undefined - }, inputProps, input ? input.props.inputProps : {}), - ref: ref - }, other)); -}); - true ? NativeSelect.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * The option elements to populate the select with. - * Can be some `` elements. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object), - - /** - * The icon that displays the arrow. - */ - IconComponent: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().elementType), - - /** - * An `Input` element; does not have to be a material-ui specific `Input`. - */ - input: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().element), - - /** - * Attributes applied to the `select` element. - */ - inputProps: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object), - - /** - * Callback function fired when a menu item is selected. - * - * @param {object} event The event source of the callback. - * You can pull out the new value by accessing `event.target.value` (string). - */ - onChange: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func), - - /** - * The input value. The DOM API casts this to a string. - */ - value: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().any), - - /** - * The variant to use. - */ - variant: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOf(['filled', 'outlined', 'standard']) -} : 0; -NativeSelect.muiName = 'Select'; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_9__["default"])(styles, { - name: 'MuiNativeSelect' -})(NativeSelect)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/NativeSelect/NativeSelectInput.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/utils/esm/refType.js"); -/* harmony import */ var _utils_capitalize__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/capitalize.js"); - - - - - - - -/** - * @ignore - internal component. - */ - -var NativeSelectInput = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function NativeSelectInput(props, ref) { - var classes = props.classes, - className = props.className, - disabled = props.disabled, - IconComponent = props.IconComponent, - inputRef = props.inputRef, - _props$variant = props.variant, - variant = _props$variant === void 0 ? 'standard' : _props$variant, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["classes", "className", "disabled", "IconComponent", "inputRef", "variant"]); - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("select", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, // TODO v5: merge root and select - classes.select, classes[variant], className, disabled && classes.disabled), - disabled: disabled, - ref: inputRef || ref - }, other)), props.multiple ? null : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(IconComponent, { - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.icon, classes["icon".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_4__["default"])(variant))], disabled && classes.disabled) - })); -}); - true ? NativeSelectInput.propTypes = { - /** - * The option elements to populate the select with. - * Can be some `` elements. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object.isRequired), - - /** - * The CSS class name of the select element. - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), - - /** - * If `true`, the select will be disabled. - */ - disabled: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - - /** - * The icon that displays the arrow. - */ - IconComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().elementType.isRequired), - - /** - * Use that prop to pass a ref to the native select element. - * @deprecated - */ - inputRef: _material_ui_utils__WEBPACK_IMPORTED_MODULE_6__["default"], - - /** - * @ignore - */ - multiple: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - - /** - * Name attribute of the `select` or hidden `input` element. - */ - name: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), - - /** - * Callback function fired when a menu item is selected. - * - * @param {object} event The event source of the callback. - * You can pull out the new value by accessing `event.target.value` (string). - */ - onChange: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().func), - - /** - * The input value. - */ - value: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().any), - - /** - * The variant to use. - */ - variant: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOf(['standard', 'outlined', 'filled']) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (NativeSelectInput); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/NoSsr/NoSsr.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@material-ui/utils/esm/exactProp.js"); - - - -var useEnhancedEffect = typeof window !== 'undefined' && "development" !== 'test' ? react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_0__.useEffect; -/** - * NoSsr purposely removes components from the subject of Server Side Rendering (SSR). - * - * This component can be useful in a variety of situations: - * - Escape hatch for broken dependencies not supporting SSR. - * - Improve the time-to-first paint on the client by only rendering above the fold. - * - Reduce the rendering time on the server. - * - Under too heavy server load, you can turn on service degradation. - */ - -function NoSsr(props) { - var children = props.children, - _props$defer = props.defer, - defer = _props$defer === void 0 ? false : _props$defer, - _props$fallback = props.fallback, - fallback = _props$fallback === void 0 ? null : _props$fallback; - - var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__.useState(false), - mountedState = _React$useState[0], - setMountedState = _React$useState[1]; - - useEnhancedEffect(function () { - if (!defer) { - setMountedState(true); - } - }, [defer]); - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () { - if (defer) { - setMountedState(true); - } - }, [defer]); // We need the Fragment here to force react-docgen to recognise NoSsr as a component. - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, mountedState ? children : fallback); -} - - true ? NoSsr.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * You can wrap a node. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node), - - /** - * If `true`, the component will not only prevent server-side rendering. - * It will also defer the rendering of the children into a different screen frame. - */ - defer: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool), - - /** - * The fallback content to display. - */ - fallback: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node) -} : 0; - -if (true) { - // eslint-disable-next-line - NoSsr['propTypes' + ''] = (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_2__["default"])(NoSsr.propTypes); -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (NoSsr); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/OutlinedInput/NotchedOutline.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _styles_useTheme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/useTheme.js"); -/* harmony import */ var _utils_capitalize__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/capitalize.js"); - - - - - - - - - -var styles = function styles(theme) { - return { - /* Styles applied to the root element. */ - root: { - position: 'absolute', - bottom: 0, - right: 0, - top: -5, - left: 0, - margin: 0, - padding: '0 8px', - pointerEvents: 'none', - borderRadius: 'inherit', - borderStyle: 'solid', - borderWidth: 1, - overflow: 'hidden' - }, - - /* Styles applied to the legend element when `labelWidth` is provided. */ - legend: { - textAlign: 'left', - padding: 0, - lineHeight: '11px', - // sync with `height` in `legend` styles - transition: theme.transitions.create('width', { - duration: 150, - easing: theme.transitions.easing.easeOut - }) - }, - - /* Styles applied to the legend element. */ - legendLabelled: { - display: 'block', - width: 'auto', - textAlign: 'left', - padding: 0, - height: 11, - // sync with `lineHeight` in `legend` styles - fontSize: '0.75em', - visibility: 'hidden', - maxWidth: 0.01, - transition: theme.transitions.create('max-width', { - duration: 50, - easing: theme.transitions.easing.easeOut - }), - '& > span': { - paddingLeft: 5, - paddingRight: 5, - display: 'inline-block' - } - }, - - /* Styles applied to the legend element is notched. */ - legendNotched: { - maxWidth: 1000, - transition: theme.transitions.create('max-width', { - duration: 100, - easing: theme.transitions.easing.easeOut, - delay: 50 - }) - } - }; -}; -/** - * @ignore - internal component. - */ - -var NotchedOutline = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.forwardRef(function NotchedOutline(props, ref) { - var children = props.children, - classes = props.classes, - className = props.className, - label = props.label, - labelWidthProp = props.labelWidth, - notched = props.notched, - style = props.style, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__["default"])(props, ["children", "classes", "className", "label", "labelWidth", "notched", "style"]); - - var theme = (0,_styles_useTheme__WEBPACK_IMPORTED_MODULE_5__["default"])(); - var align = theme.direction === 'rtl' ? 'right' : 'left'; - - if (label !== undefined) { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("fieldset", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - "aria-hidden": true, - className: (0,clsx__WEBPACK_IMPORTED_MODULE_4__["default"])(classes.root, className), - ref: ref, - style: style - }, other), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("legend", { - className: (0,clsx__WEBPACK_IMPORTED_MODULE_4__["default"])(classes.legendLabelled, notched && classes.legendNotched) - }, label ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("span", null, label) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("span", { - dangerouslySetInnerHTML: { - __html: '' - } - }))); - } - - var labelWidth = labelWidthProp > 0 ? labelWidthProp * 0.75 + 8 : 0.01; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("fieldset", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - "aria-hidden": true, - style: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])({}, "padding".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_6__["default"])(align)), 8), style), - className: (0,clsx__WEBPACK_IMPORTED_MODULE_4__["default"])(classes.root, className), - ref: ref - }, other), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("legend", { - className: classes.legend, - style: { - // IE 11: fieldset with legend does not render - // a border radius. This maintains consistency - // by always having a legend rendered - width: notched ? labelWidth : 0.01 - } - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("span", { - dangerouslySetInnerHTML: { - __html: '' - } - }))); -}); - true ? NotchedOutline.propTypes = { - /** - * The content of the component. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), - - /** - * The label. - */ - label: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().node), - - /** - * The width of the label. - */ - labelWidth: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().number.isRequired), - - /** - * If `true`, the outline is notched to accommodate the label. - */ - notched: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool.isRequired), - - /** - * @ignore - */ - style: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_8__["default"])(styles, { - name: 'PrivateNotchedOutline' -})(NotchedOutline)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/OutlinedInput/OutlinedInput.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/utils/esm/refType.js"); -/* harmony import */ var _InputBase__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/InputBase/InputBase.js"); -/* harmony import */ var _NotchedOutline__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/OutlinedInput/NotchedOutline.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); - - - - - - - - - -var styles = function styles(theme) { - var borderColor = theme.palette.type === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'; - return { - /* Styles applied to the root element. */ - root: { - position: 'relative', - borderRadius: theme.shape.borderRadius, - '&:hover $notchedOutline': { - borderColor: theme.palette.text.primary - }, - // Reset on touch devices, it doesn't add specificity - '@media (hover: none)': { - '&:hover $notchedOutline': { - borderColor: borderColor - } - }, - '&$focused $notchedOutline': { - borderColor: theme.palette.primary.main, - borderWidth: 2 - }, - '&$error $notchedOutline': { - borderColor: theme.palette.error.main - }, - '&$disabled $notchedOutline': { - borderColor: theme.palette.action.disabled - } - }, - - /* Styles applied to the root element if the color is secondary. */ - colorSecondary: { - '&$focused $notchedOutline': { - borderColor: theme.palette.secondary.main - } - }, - - /* Styles applied to the root element if the component is focused. */ - focused: {}, - - /* Styles applied to the root element if `disabled={true}`. */ - disabled: {}, - - /* Styles applied to the root element if `startAdornment` is provided. */ - adornedStart: { - paddingLeft: 14 - }, - - /* Styles applied to the root element if `endAdornment` is provided. */ - adornedEnd: { - paddingRight: 14 - }, - - /* Pseudo-class applied to the root element if `error={true}`. */ - error: {}, - - /* Styles applied to the `input` element if `margin="dense"`. */ - marginDense: {}, - - /* Styles applied to the root element if `multiline={true}`. */ - multiline: { - padding: '18.5px 14px', - '&$marginDense': { - paddingTop: 10.5, - paddingBottom: 10.5 - } - }, - - /* Styles applied to the `NotchedOutline` element. */ - notchedOutline: { - borderColor: borderColor - }, - - /* Styles applied to the `input` element. */ - input: { - padding: '18.5px 14px', - '&:-webkit-autofill': { - WebkitBoxShadow: theme.palette.type === 'light' ? null : '0 0 0 100px #266798 inset', - WebkitTextFillColor: theme.palette.type === 'light' ? null : '#fff', - caretColor: theme.palette.type === 'light' ? null : '#fff', - borderRadius: 'inherit' - } - }, - - /* Styles applied to the `input` element if `margin="dense"`. */ - inputMarginDense: { - paddingTop: 10.5, - paddingBottom: 10.5 - }, - - /* Styles applied to the `input` element if `multiline={true}`. */ - inputMultiline: { - padding: 0 - }, - - /* Styles applied to the `input` element if `startAdornment` is provided. */ - inputAdornedStart: { - paddingLeft: 0 - }, - - /* Styles applied to the `input` element if `endAdornment` is provided. */ - inputAdornedEnd: { - paddingRight: 0 - } - }; -}; -var OutlinedInput = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function OutlinedInput(props, ref) { - var classes = props.classes, - _props$fullWidth = props.fullWidth, - fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, - _props$inputComponent = props.inputComponent, - inputComponent = _props$inputComponent === void 0 ? 'input' : _props$inputComponent, - label = props.label, - _props$labelWidth = props.labelWidth, - labelWidth = _props$labelWidth === void 0 ? 0 : _props$labelWidth, - _props$multiline = props.multiline, - multiline = _props$multiline === void 0 ? false : _props$multiline, - notched = props.notched, - _props$type = props.type, - type = _props$type === void 0 ? 'text' : _props$type, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["classes", "fullWidth", "inputComponent", "label", "labelWidth", "multiline", "notched", "type"]); - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_InputBase__WEBPACK_IMPORTED_MODULE_4__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - renderSuffix: function renderSuffix(state) { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_NotchedOutline__WEBPACK_IMPORTED_MODULE_5__["default"], { - className: classes.notchedOutline, - label: label, - labelWidth: labelWidth, - notched: typeof notched !== 'undefined' ? notched : Boolean(state.startAdornment || state.filled || state.focused) - }); - }, - classes: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, classes, { - root: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, classes.underline), - notchedOutline: null - }), - fullWidth: fullWidth, - inputComponent: inputComponent, - multiline: multiline, - ref: ref, - type: type - }, other)); -}); - true ? OutlinedInput.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * This prop helps users to fill forms faster, especially on mobile devices. - * The name can be confusing, as it's more like an autofill. - * You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill). - */ - autoComplete: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string), - - /** - * If `true`, the `input` element will be focused during the first mount. - */ - autoFocus: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object), - - /** - * The color of the component. It supports those theme colors that make sense for this component. - */ - color: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(['primary', 'secondary']), - - /** - * The default `input` element value. Use when the component is not controlled. - */ - defaultValue: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().any), - - /** - * If `true`, the `input` element will be disabled. - */ - disabled: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool), - - /** - * End `InputAdornment` for this component. - */ - endAdornment: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().node), - - /** - * If `true`, the input will indicate an error. This is normally obtained via context from - * FormControl. - */ - error: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool), - - /** - * If `true`, the input will take up the full width of its container. - */ - fullWidth: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool), - - /** - * The id of the `input` element. - */ - id: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string), - - /** - * The component used for the `input` element. - * Either a string to use a HTML element or a component. - */ - inputComponent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().elementType), - - /** - * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element. - */ - inputProps: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object), - - /** - * Pass a ref to the `input` element. - */ - inputRef: _material_ui_utils__WEBPACK_IMPORTED_MODULE_7__["default"], - - /** - * The label of the input. It is only used for layout. The actual labelling - * is handled by `InputLabel`. If specified `labelWidth` is ignored. - */ - label: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().node), - - /** - * The width of the label. Is ignored if `label` is provided. Prefer `label` - * if the input label appears with a strike through. - */ - labelWidth: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), - - /** - * If `dense`, will adjust vertical spacing. This is normally obtained via context from - * FormControl. - */ - margin: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(['dense', 'none']), - - /** - * Maximum number of rows to display when multiline option is set to true. - */ - maxRows: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string)]), - - /** - * If `true`, a textarea element will be rendered. - */ - multiline: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool), - - /** - * Name attribute of the `input` element. - */ - name: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string), - - /** - * If `true`, the outline is notched to accommodate the label. - */ - notched: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool), - - /** - * Callback fired when the value is changed. - * - * @param {object} event The event source of the callback. - * You can pull out the new value by accessing `event.target.value` (string). - */ - onChange: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func), - - /** - * The short hint displayed in the input before the user enters a value. - */ - placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string), - - /** - * It prevents the user from changing the value of the field - * (not from interacting with the field). - */ - readOnly: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool), - - /** - * If `true`, the `input` element will be required. - */ - required: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool), - - /** - * Number of rows to display when multiline option is set to true. - */ - rows: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string)]), - - /** - * Start `InputAdornment` for this component. - */ - startAdornment: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().node), - - /** - * Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types). - */ - type: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string), - - /** - * The value of the `input` element, required for a controlled component. - */ - value: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().any) -} : 0; -OutlinedInput.muiName = 'Input'; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_8__["default"])(styles, { - name: 'MuiOutlinedInput' -})(OutlinedInput)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Paper/Paper.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/utils/esm/chainPropTypes.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); - - - - - - - -var styles = function styles(theme) { - var elevations = {}; - theme.shadows.forEach(function (shadow, index) { - elevations["elevation".concat(index)] = { - boxShadow: shadow - }; - }); - return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - /* Styles applied to the root element. */ - root: { - backgroundColor: theme.palette.background.paper, - color: theme.palette.text.primary, - transition: theme.transitions.create('box-shadow') - }, - - /* Styles applied to the root element if `square={false}`. */ - rounded: { - borderRadius: theme.shape.borderRadius - }, - - /* Styles applied to the root element if `variant="outlined"`. */ - outlined: { - border: "1px solid ".concat(theme.palette.divider) - } - }, elevations); -}; -var Paper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function Paper(props, ref) { - var classes = props.classes, - className = props.className, - _props$component = props.component, - Component = _props$component === void 0 ? 'div' : _props$component, - _props$square = props.square, - square = _props$square === void 0 ? false : _props$square, - _props$elevation = props.elevation, - elevation = _props$elevation === void 0 ? 1 : _props$elevation, - _props$variant = props.variant, - variant = _props$variant === void 0 ? 'elevation' : _props$variant, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__["default"])(props, ["classes", "className", "component", "square", "elevation", "variant"]); - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Component, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, className, variant === 'outlined' ? classes.outlined : classes["elevation".concat(elevation)], !square && classes.rounded), - ref: ref - }, other)); -}); - true ? Paper.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * The content of the component. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().string), - - /** - * The component used for the root node. - * Either a string to use a HTML element or a component. - */ - component: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().elementType), - - /** - * Shadow depth, corresponds to `dp` in the spec. - * It accepts values between 0 and 24 inclusive. - */ - elevation: (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_5__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_4___default().number), function (props) { - var classes = props.classes, - elevation = props.elevation; // in case `withStyles` fails to inject we don't need this warning - - if (classes === undefined) { - return null; - } - - if (elevation != null && classes["elevation".concat(elevation)] === undefined) { - return new Error("Material-UI: This elevation `".concat(elevation, "` is not implemented.")); - } - - return null; - }), - - /** - * If `true`, rounded corners are disabled. - */ - square: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool), - - /** - * The variant to use. - */ - variant: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOf(['elevation', 'outlined']) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_6__["default"])(styles, { - name: 'MuiPaper' -})(Paper)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Popover/Popover.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "getOffsetLeft": () => (/* binding */ getOffsetLeft), -/* harmony export */ "getOffsetTop": () => (/* binding */ getOffsetTop), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_14__); -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/react-dom/index.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("./node_modules/@material-ui/utils/esm/refType.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("./node_modules/@material-ui/utils/esm/chainPropTypes.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("./node_modules/@material-ui/utils/esm/HTMLElementType.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__("./node_modules/@material-ui/utils/esm/elementTypeAcceptingRef.js"); -/* harmony import */ var _utils_debounce__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/debounce.js"); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _utils_ownerDocument__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/ownerDocument.js"); -/* harmony import */ var _utils_ownerWindow__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/ownerWindow.js"); -/* harmony import */ var _utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/createChainedFunction.js"); -/* harmony import */ var _utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/deprecatedPropType.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/core/esm/Modal/Modal.js"); -/* harmony import */ var _Grow__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/Grow/Grow.js"); -/* harmony import */ var _Paper__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/@material-ui/core/esm/Paper/Paper.js"); - - - - - - - - - - - - - - - - -function getOffsetTop(rect, vertical) { - var offset = 0; - - if (typeof vertical === 'number') { - offset = vertical; - } else if (vertical === 'center') { - offset = rect.height / 2; - } else if (vertical === 'bottom') { - offset = rect.height; - } - - return offset; -} -function getOffsetLeft(rect, horizontal) { - var offset = 0; - - if (typeof horizontal === 'number') { - offset = horizontal; - } else if (horizontal === 'center') { - offset = rect.width / 2; - } else if (horizontal === 'right') { - offset = rect.width; - } - - return offset; -} - -function getTransformOriginValue(transformOrigin) { - return [transformOrigin.horizontal, transformOrigin.vertical].map(function (n) { - return typeof n === 'number' ? "".concat(n, "px") : n; - }).join(' '); -} // Sum the scrollTop between two elements. - - -function getScrollParent(parent, child) { - var element = child; - var scrollTop = 0; - - while (element && element !== parent) { - element = element.parentElement; - scrollTop += element.scrollTop; - } - - return scrollTop; -} - -function getAnchorEl(anchorEl) { - return typeof anchorEl === 'function' ? anchorEl() : anchorEl; -} - -var styles = { - /* Styles applied to the root element. */ - root: {}, - - /* Styles applied to the `Paper` component. */ - paper: { - position: 'absolute', - overflowY: 'auto', - overflowX: 'hidden', - // So we see the popover when it's empty. - // It's most likely on issue on userland. - minWidth: 16, - minHeight: 16, - maxWidth: 'calc(100% - 32px)', - maxHeight: 'calc(100% - 32px)', - // We disable the focus ring for mouse, touch and keyboard users. - outline: 0 - } -}; -var Popover = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function Popover(props, ref) { - var action = props.action, - anchorEl = props.anchorEl, - _props$anchorOrigin = props.anchorOrigin, - anchorOrigin = _props$anchorOrigin === void 0 ? { - vertical: 'top', - horizontal: 'left' - } : _props$anchorOrigin, - anchorPosition = props.anchorPosition, - _props$anchorReferenc = props.anchorReference, - anchorReference = _props$anchorReferenc === void 0 ? 'anchorEl' : _props$anchorReferenc, - children = props.children, - classes = props.classes, - className = props.className, - containerProp = props.container, - _props$elevation = props.elevation, - elevation = _props$elevation === void 0 ? 8 : _props$elevation, - getContentAnchorEl = props.getContentAnchorEl, - _props$marginThreshol = props.marginThreshold, - marginThreshold = _props$marginThreshol === void 0 ? 16 : _props$marginThreshol, - onEnter = props.onEnter, - onEntered = props.onEntered, - onEntering = props.onEntering, - onExit = props.onExit, - onExited = props.onExited, - onExiting = props.onExiting, - open = props.open, - _props$PaperProps = props.PaperProps, - PaperProps = _props$PaperProps === void 0 ? {} : _props$PaperProps, - _props$transformOrigi = props.transformOrigin, - transformOrigin = _props$transformOrigi === void 0 ? { - vertical: 'top', - horizontal: 'left' - } : _props$transformOrigi, - _props$TransitionComp = props.TransitionComponent, - TransitionComponent = _props$TransitionComp === void 0 ? _Grow__WEBPACK_IMPORTED_MODULE_5__["default"] : _props$TransitionComp, - _props$transitionDura = props.transitionDuration, - transitionDurationProp = _props$transitionDura === void 0 ? 'auto' : _props$transitionDura, - _props$TransitionProp = props.TransitionProps, - TransitionProps = _props$TransitionProp === void 0 ? {} : _props$TransitionProp, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["action", "anchorEl", "anchorOrigin", "anchorPosition", "anchorReference", "children", "classes", "className", "container", "elevation", "getContentAnchorEl", "marginThreshold", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "open", "PaperProps", "transformOrigin", "TransitionComponent", "transitionDuration", "TransitionProps"]); - - var paperRef = react__WEBPACK_IMPORTED_MODULE_2__.useRef(); // Returns the top/left offset of the position - // to attach to on the anchor element (or body if none is provided) - - var getAnchorOffset = react__WEBPACK_IMPORTED_MODULE_2__.useCallback(function (contentAnchorOffset) { - if (anchorReference === 'anchorPosition') { - if (true) { - if (!anchorPosition) { - console.error('Material-UI: You need to provide a `anchorPosition` prop when using ' + '.'); - } - } - - return anchorPosition; - } - - var resolvedAnchorEl = getAnchorEl(anchorEl); // If an anchor element wasn't provided, just use the parent body element of this Popover - - var anchorElement = resolvedAnchorEl && resolvedAnchorEl.nodeType === 1 ? resolvedAnchorEl : (0,_utils_ownerDocument__WEBPACK_IMPORTED_MODULE_6__["default"])(paperRef.current).body; - var anchorRect = anchorElement.getBoundingClientRect(); - - if (true) { - var box = anchorElement.getBoundingClientRect(); - - if ( true && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) { - console.warn(['Material-UI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', "Make sure the element is present in the document or that it's not display none."].join('\n')); - } - } - - var anchorVertical = contentAnchorOffset === 0 ? anchorOrigin.vertical : 'center'; - return { - top: anchorRect.top + getOffsetTop(anchorRect, anchorVertical), - left: anchorRect.left + getOffsetLeft(anchorRect, anchorOrigin.horizontal) - }; - }, [anchorEl, anchorOrigin.horizontal, anchorOrigin.vertical, anchorPosition, anchorReference]); // Returns the vertical offset of inner content to anchor the transform on if provided - - var getContentAnchorOffset = react__WEBPACK_IMPORTED_MODULE_2__.useCallback(function (element) { - var contentAnchorOffset = 0; - - if (getContentAnchorEl && anchorReference === 'anchorEl') { - var contentAnchorEl = getContentAnchorEl(element); - - if (contentAnchorEl && element.contains(contentAnchorEl)) { - var scrollTop = getScrollParent(element, contentAnchorEl); - contentAnchorOffset = contentAnchorEl.offsetTop + contentAnchorEl.clientHeight / 2 - scrollTop || 0; - } // != the default value - - - if (true) { - if (anchorOrigin.vertical !== 'top') { - console.error(['Material-UI: You can not change the default `anchorOrigin.vertical` value ', 'when also providing the `getContentAnchorEl` prop to the popover component.', 'Only use one of the two props.', 'Set `getContentAnchorEl` to `null | undefined`' + ' or leave `anchorOrigin.vertical` unchanged.'].join('\n')); - } - } - } - - return contentAnchorOffset; - }, [anchorOrigin.vertical, anchorReference, getContentAnchorEl]); // Return the base transform origin using the element - // and taking the content anchor offset into account if in use - - var getTransformOrigin = react__WEBPACK_IMPORTED_MODULE_2__.useCallback(function (elemRect) { - var contentAnchorOffset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - return { - vertical: getOffsetTop(elemRect, transformOrigin.vertical) + contentAnchorOffset, - horizontal: getOffsetLeft(elemRect, transformOrigin.horizontal) - }; - }, [transformOrigin.horizontal, transformOrigin.vertical]); - var getPositioningStyle = react__WEBPACK_IMPORTED_MODULE_2__.useCallback(function (element) { - // Check if the parent has requested anchoring on an inner content node - var contentAnchorOffset = getContentAnchorOffset(element); - var elemRect = { - width: element.offsetWidth, - height: element.offsetHeight - }; // Get the transform origin point on the element itself - - var elemTransformOrigin = getTransformOrigin(elemRect, contentAnchorOffset); - - if (anchorReference === 'none') { - return { - top: null, - left: null, - transformOrigin: getTransformOriginValue(elemTransformOrigin) - }; - } // Get the offset of of the anchoring element - - - var anchorOffset = getAnchorOffset(contentAnchorOffset); // Calculate element positioning - - var top = anchorOffset.top - elemTransformOrigin.vertical; - var left = anchorOffset.left - elemTransformOrigin.horizontal; - var bottom = top + elemRect.height; - var right = left + elemRect.width; // Use the parent window of the anchorEl if provided - - var containerWindow = (0,_utils_ownerWindow__WEBPACK_IMPORTED_MODULE_7__["default"])(getAnchorEl(anchorEl)); // Window thresholds taking required margin into account - - var heightThreshold = containerWindow.innerHeight - marginThreshold; - var widthThreshold = containerWindow.innerWidth - marginThreshold; // Check if the vertical axis needs shifting - - if (top < marginThreshold) { - var diff = top - marginThreshold; - top -= diff; - elemTransformOrigin.vertical += diff; - } else if (bottom > heightThreshold) { - var _diff = bottom - heightThreshold; - - top -= _diff; - elemTransformOrigin.vertical += _diff; - } - - if (true) { - if (elemRect.height > heightThreshold && elemRect.height && heightThreshold) { - console.error(['Material-UI: The popover component is too tall.', "Some part of it can not be seen on the screen (".concat(elemRect.height - heightThreshold, "px)."), 'Please consider adding a `max-height` to improve the user-experience.'].join('\n')); - } - } // Check if the horizontal axis needs shifting - - - if (left < marginThreshold) { - var _diff2 = left - marginThreshold; - - left -= _diff2; - elemTransformOrigin.horizontal += _diff2; - } else if (right > widthThreshold) { - var _diff3 = right - widthThreshold; - - left -= _diff3; - elemTransformOrigin.horizontal += _diff3; - } - - return { - top: "".concat(Math.round(top), "px"), - left: "".concat(Math.round(left), "px"), - transformOrigin: getTransformOriginValue(elemTransformOrigin) - }; - }, [anchorEl, anchorReference, getAnchorOffset, getContentAnchorOffset, getTransformOrigin, marginThreshold]); - var setPositioningStyles = react__WEBPACK_IMPORTED_MODULE_2__.useCallback(function () { - var element = paperRef.current; - - if (!element) { - return; - } - - var positioning = getPositioningStyle(element); - - if (positioning.top !== null) { - element.style.top = positioning.top; - } - - if (positioning.left !== null) { - element.style.left = positioning.left; - } - - element.style.transformOrigin = positioning.transformOrigin; - }, [getPositioningStyle]); - - var handleEntering = function handleEntering(element, isAppearing) { - if (onEntering) { - onEntering(element, isAppearing); - } - - setPositioningStyles(); - }; - - var handlePaperRef = react__WEBPACK_IMPORTED_MODULE_2__.useCallback(function (instance) { - // #StrictMode ready - paperRef.current = react_dom__WEBPACK_IMPORTED_MODULE_3__.findDOMNode(instance); - }, []); - react__WEBPACK_IMPORTED_MODULE_2__.useEffect(function () { - if (open) { - setPositioningStyles(); - } - }); - react__WEBPACK_IMPORTED_MODULE_2__.useImperativeHandle(action, function () { - return open ? { - updatePosition: function updatePosition() { - setPositioningStyles(); - } - } : null; - }, [open, setPositioningStyles]); - react__WEBPACK_IMPORTED_MODULE_2__.useEffect(function () { - if (!open) { - return undefined; - } - - var handleResize = (0,_utils_debounce__WEBPACK_IMPORTED_MODULE_8__["default"])(function () { - setPositioningStyles(); - }); - window.addEventListener('resize', handleResize); - return function () { - handleResize.clear(); - window.removeEventListener('resize', handleResize); - }; - }, [open, setPositioningStyles]); - var transitionDuration = transitionDurationProp; - - if (transitionDurationProp === 'auto' && !TransitionComponent.muiSupportAuto) { - transitionDuration = undefined; - } // If the container prop is provided, use that - // If the anchorEl prop is provided, use its parent body element as the container - // If neither are provided let the Modal take care of choosing the container - - - var container = containerProp || (anchorEl ? (0,_utils_ownerDocument__WEBPACK_IMPORTED_MODULE_6__["default"])(getAnchorEl(anchorEl)).body : undefined); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_Modal__WEBPACK_IMPORTED_MODULE_9__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - container: container, - open: open, - ref: ref, - BackdropProps: { - invisible: true - }, - className: (0,clsx__WEBPACK_IMPORTED_MODULE_4__["default"])(classes.root, className) - }, other), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(TransitionComponent, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - appear: true, - in: open, - onEnter: onEnter, - onEntered: onEntered, - onExit: onExit, - onExited: onExited, - onExiting: onExiting, - timeout: transitionDuration - }, TransitionProps, { - onEntering: (0,_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_10__["default"])(handleEntering, TransitionProps.onEntering) - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_Paper__WEBPACK_IMPORTED_MODULE_11__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - elevation: elevation, - ref: handlePaperRef - }, PaperProps, { - className: (0,clsx__WEBPACK_IMPORTED_MODULE_4__["default"])(classes.paper, PaperProps.className) - }), children))); -}); - true ? Popover.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * A ref for imperative actions. - * It currently only supports updatePosition() action. - */ - action: _material_ui_utils__WEBPACK_IMPORTED_MODULE_12__["default"], - - /** - * A HTML element, or a function that returns it. - * It's used to set the position of the popover. - */ - anchorEl: (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_13__["default"])(prop_types__WEBPACK_IMPORTED_MODULE_14___default().oneOfType([_material_ui_utils__WEBPACK_IMPORTED_MODULE_15__["default"], (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func)]), function (props) { - if (props.open && (!props.anchorReference || props.anchorReference === 'anchorEl')) { - var resolvedAnchorEl = getAnchorEl(props.anchorEl); - - if (resolvedAnchorEl && resolvedAnchorEl.nodeType === 1) { - var box = resolvedAnchorEl.getBoundingClientRect(); - - if ( true && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) { - return new Error(['Material-UI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', "Make sure the element is present in the document or that it's not display none."].join('\n')); - } - } else { - return new Error(['Material-UI: The `anchorEl` prop provided to the component is invalid.', "It should be an Element instance but it's `".concat(resolvedAnchorEl, "` instead.")].join('\n')); - } - } - - return null; - }), - - /** - * This is the point on the anchor where the popover's - * `anchorEl` will attach to. This is not used when the - * anchorReference is 'anchorPosition'. - * - * Options: - * vertical: [top, center, bottom]; - * horizontal: [left, center, right]. - */ - anchorOrigin: prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({ - horizontal: prop_types__WEBPACK_IMPORTED_MODULE_14___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_14___default().oneOf(['center', 'left', 'right']), (prop_types__WEBPACK_IMPORTED_MODULE_14___default().number)]).isRequired, - vertical: prop_types__WEBPACK_IMPORTED_MODULE_14___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_14___default().oneOf(['bottom', 'center', 'top']), (prop_types__WEBPACK_IMPORTED_MODULE_14___default().number)]).isRequired - }), - - /** - * This is the position that may be used - * to set the position of the popover. - * The coordinates are relative to - * the application's client area. - */ - anchorPosition: prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({ - left: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().number.isRequired), - top: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().number.isRequired) - }), - - /** - * This determines which anchor prop to refer to to set - * the position of the popover. - */ - anchorReference: prop_types__WEBPACK_IMPORTED_MODULE_14___default().oneOf(['anchorEl', 'anchorPosition', 'none']), - - /** - * The content of the component. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string), - - /** - * A HTML element, component instance, or function that returns either. - * The `container` will passed to the Modal component. - * - * By default, it uses the body of the anchorEl's top-level document object, - * so it's simply `document.body` most of the time. - */ - container: prop_types__WEBPACK_IMPORTED_MODULE_14___default().oneOfType([_material_ui_utils__WEBPACK_IMPORTED_MODULE_15__["default"], prop_types__WEBPACK_IMPORTED_MODULE_14___default().instanceOf(react__WEBPACK_IMPORTED_MODULE_2__.Component), (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func)]), - - /** - * The elevation of the popover. - */ - elevation: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().number), - - /** - * This function is called in order to retrieve the content anchor element. - * It's the opposite of the `anchorEl` prop. - * The content anchor element should be an element inside the popover. - * It's used to correctly scroll and set the position of the popover. - * The positioning strategy tries to make the content anchor element just above the - * anchor element. - */ - getContentAnchorEl: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func), - - /** - * Specifies how close to the edge of the window the popover can appear. - */ - marginThreshold: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().number), - - /** - * Callback fired when the component requests to be closed. - */ - onClose: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func), - - /** - * Callback fired before the component is entering. - * @deprecated Use the `TransitionProps` prop instead. - */ - onEnter: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_16__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_14___default().func), 'Use the `TransitionProps` prop instead.'), - - /** - * Callback fired when the component has entered. - * @deprecated Use the `TransitionProps` prop instead. - */ - onEntered: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_16__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_14___default().func), 'Use the `TransitionProps` prop instead.'), - - /** - * Callback fired when the component is entering. - * @deprecated Use the `TransitionProps` prop instead. - */ - onEntering: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_16__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_14___default().func), 'Use the `TransitionProps` prop instead.'), - - /** - * Callback fired before the component is exiting. - * @deprecated Use the `TransitionProps` prop instead. - */ - onExit: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_16__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_14___default().func), 'Use the `TransitionProps` prop instead.'), - - /** - * Callback fired when the component has exited. - * @deprecated Use the `TransitionProps` prop instead. - */ - onExited: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_16__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_14___default().func), 'Use the `TransitionProps` prop instead.'), - - /** - * Callback fired when the component is exiting. - * @deprecated Use the `TransitionProps` prop instead. - */ - onExiting: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_16__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_14___default().func), 'Use the `TransitionProps` prop instead.'), - - /** - * If `true`, the popover is visible. - */ - open: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().bool.isRequired), - - /** - * Props applied to the [`Paper`](/api/paper/) element. - */ - PaperProps: prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({ - component: _material_ui_utils__WEBPACK_IMPORTED_MODULE_17__["default"] - }), - - /** - * This is the point on the popover which - * will attach to the anchor's origin. - * - * Options: - * vertical: [top, center, bottom, x(px)]; - * horizontal: [left, center, right, x(px)]. - */ - transformOrigin: prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({ - horizontal: prop_types__WEBPACK_IMPORTED_MODULE_14___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_14___default().oneOf(['center', 'left', 'right']), (prop_types__WEBPACK_IMPORTED_MODULE_14___default().number)]).isRequired, - vertical: prop_types__WEBPACK_IMPORTED_MODULE_14___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_14___default().oneOf(['bottom', 'center', 'top']), (prop_types__WEBPACK_IMPORTED_MODULE_14___default().number)]).isRequired - }), - - /** - * The component used for the transition. - * [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component. - */ - TransitionComponent: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().elementType), - - /** - * Set to 'auto' to automatically calculate transition time based on height. - */ - transitionDuration: prop_types__WEBPACK_IMPORTED_MODULE_14___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_14___default().oneOf(['auto']), (prop_types__WEBPACK_IMPORTED_MODULE_14___default().number), prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({ - appear: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().number), - enter: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().number), - exit: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().number) - })]), - - /** - * Props applied to the [`Transition`](http://reactcommunity.org/react-transition-group/transition#Transition-props) element. - */ - TransitionProps: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().object) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_18__["default"])(styles, { - name: 'MuiPopover' -})(Popover)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Popper/Popper.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__); -/* harmony import */ var popper_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/node_modules/popper.js/dist/esm/popper.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/utils/esm/chainPropTypes.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/@material-ui/utils/esm/HTMLElementType.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("./node_modules/@material-ui/utils/esm/refType.js"); -/* harmony import */ var _material_ui_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/styles/esm/useTheme/useTheme.js"); -/* harmony import */ var _Portal__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/Portal/Portal.js"); -/* harmony import */ var _utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/createChainedFunction.js"); -/* harmony import */ var _utils_setRef__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/setRef.js"); -/* harmony import */ var _utils_useForkRef__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useForkRef.js"); - - - - - - - - - - - - -function flipPlacement(placement, theme) { - var direction = theme && theme.direction || 'ltr'; - - if (direction === 'ltr') { - return placement; - } - - switch (placement) { - case 'bottom-end': - return 'bottom-start'; - - case 'bottom-start': - return 'bottom-end'; - - case 'top-end': - return 'top-start'; - - case 'top-start': - return 'top-end'; - - default: - return placement; - } -} - -function getAnchorEl(anchorEl) { - return typeof anchorEl === 'function' ? anchorEl() : anchorEl; -} - -var useEnhancedEffect = typeof window !== 'undefined' ? react__WEBPACK_IMPORTED_MODULE_2__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_2__.useEffect; -var defaultPopperOptions = {}; -/** - * Poppers rely on the 3rd party library [Popper.js](https://popper.js.org/docs/v1/) for positioning. - */ - -var Popper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function Popper(props, ref) { - var anchorEl = props.anchorEl, - children = props.children, - container = props.container, - _props$disablePortal = props.disablePortal, - disablePortal = _props$disablePortal === void 0 ? false : _props$disablePortal, - _props$keepMounted = props.keepMounted, - keepMounted = _props$keepMounted === void 0 ? false : _props$keepMounted, - modifiers = props.modifiers, - open = props.open, - _props$placement = props.placement, - initialPlacement = _props$placement === void 0 ? 'bottom' : _props$placement, - _props$popperOptions = props.popperOptions, - popperOptions = _props$popperOptions === void 0 ? defaultPopperOptions : _props$popperOptions, - popperRefProp = props.popperRef, - style = props.style, - _props$transition = props.transition, - transition = _props$transition === void 0 ? false : _props$transition, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["anchorEl", "children", "container", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition"]); - - var tooltipRef = react__WEBPACK_IMPORTED_MODULE_2__.useRef(null); - var ownRef = (0,_utils_useForkRef__WEBPACK_IMPORTED_MODULE_3__["default"])(tooltipRef, ref); - var popperRef = react__WEBPACK_IMPORTED_MODULE_2__.useRef(null); - var handlePopperRef = (0,_utils_useForkRef__WEBPACK_IMPORTED_MODULE_3__["default"])(popperRef, popperRefProp); - var handlePopperRefRef = react__WEBPACK_IMPORTED_MODULE_2__.useRef(handlePopperRef); - useEnhancedEffect(function () { - handlePopperRefRef.current = handlePopperRef; - }, [handlePopperRef]); - react__WEBPACK_IMPORTED_MODULE_2__.useImperativeHandle(popperRefProp, function () { - return popperRef.current; - }, []); - - var _React$useState = react__WEBPACK_IMPORTED_MODULE_2__.useState(true), - exited = _React$useState[0], - setExited = _React$useState[1]; - - var theme = (0,_material_ui_styles__WEBPACK_IMPORTED_MODULE_4__["default"])(); - var rtlPlacement = flipPlacement(initialPlacement, theme); - /** - * placement initialized from prop but can change during lifetime if modifiers.flip. - * modifiers.flip is essentially a flip for controlled/uncontrolled behavior - */ - - var _React$useState2 = react__WEBPACK_IMPORTED_MODULE_2__.useState(rtlPlacement), - placement = _React$useState2[0], - setPlacement = _React$useState2[1]; - - react__WEBPACK_IMPORTED_MODULE_2__.useEffect(function () { - if (popperRef.current) { - popperRef.current.update(); - } - }); - var handleOpen = react__WEBPACK_IMPORTED_MODULE_2__.useCallback(function () { - if (!tooltipRef.current || !anchorEl || !open) { - return; - } - - if (popperRef.current) { - popperRef.current.destroy(); - handlePopperRefRef.current(null); - } - - var handlePopperUpdate = function handlePopperUpdate(data) { - setPlacement(data.placement); - }; - - var resolvedAnchorEl = getAnchorEl(anchorEl); - - if (true) { - if (resolvedAnchorEl && resolvedAnchorEl.nodeType === 1) { - var box = resolvedAnchorEl.getBoundingClientRect(); - - if ( true && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) { - console.warn(['Material-UI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', "Make sure the element is present in the document or that it's not display none."].join('\n')); - } - } - } - - var popper = new popper_js__WEBPACK_IMPORTED_MODULE_5__["default"](getAnchorEl(anchorEl), tooltipRef.current, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - placement: rtlPlacement - }, popperOptions, { - modifiers: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, disablePortal ? {} : { - // It's using scrollParent by default, we can use the viewport when using a portal. - preventOverflow: { - boundariesElement: 'window' - } - }, modifiers, popperOptions.modifiers), - // We could have been using a custom modifier like react-popper is doing. - // But it seems this is the best public API for this use case. - onCreate: (0,_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_6__["default"])(handlePopperUpdate, popperOptions.onCreate), - onUpdate: (0,_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_6__["default"])(handlePopperUpdate, popperOptions.onUpdate) - })); - handlePopperRefRef.current(popper); - }, [anchorEl, disablePortal, modifiers, open, rtlPlacement, popperOptions]); - var handleRef = react__WEBPACK_IMPORTED_MODULE_2__.useCallback(function (node) { - (0,_utils_setRef__WEBPACK_IMPORTED_MODULE_7__["default"])(ownRef, node); - handleOpen(); - }, [ownRef, handleOpen]); - - var handleEnter = function handleEnter() { - setExited(false); - }; - - var handleClose = function handleClose() { - if (!popperRef.current) { - return; - } - - popperRef.current.destroy(); - handlePopperRefRef.current(null); - }; - - var handleExited = function handleExited() { - setExited(true); - handleClose(); - }; - - react__WEBPACK_IMPORTED_MODULE_2__.useEffect(function () { - return function () { - handleClose(); - }; - }, []); - react__WEBPACK_IMPORTED_MODULE_2__.useEffect(function () { - if (!open && !transition) { - // Otherwise handleExited will call this. - handleClose(); - } - }, [open, transition]); - - if (!keepMounted && !open && (!transition || exited)) { - return null; - } - - var childProps = { - placement: placement - }; - - if (transition) { - childProps.TransitionProps = { - in: open, - onEnter: handleEnter, - onExited: handleExited - }; - } - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_Portal__WEBPACK_IMPORTED_MODULE_8__["default"], { - disablePortal: disablePortal, - container: container - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - ref: handleRef, - role: "tooltip" - }, other, { - style: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - // Prevents scroll issue, waiting for Popper.js to add this style once initiated. - position: 'fixed', - // Fix Popper.js display issue - top: 0, - left: 0, - display: !open && keepMounted && !transition ? 'none' : null - }, style) - }), typeof children === 'function' ? children(childProps) : children)); -}); - true ? Popper.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * A HTML element, [referenceObject](https://popper.js.org/docs/v1/#referenceObject), - * or a function that returns either. - * It's used to set the position of the popper. - * The return value will passed as the reference object of the Popper instance. - */ - anchorEl: (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_9__["default"])(prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([_material_ui_utils__WEBPACK_IMPORTED_MODULE_11__["default"], (prop_types__WEBPACK_IMPORTED_MODULE_10___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func)]), function (props) { - if (props.open) { - var resolvedAnchorEl = getAnchorEl(props.anchorEl); - - if (resolvedAnchorEl && resolvedAnchorEl.nodeType === 1) { - var box = resolvedAnchorEl.getBoundingClientRect(); - - if ( true && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) { - return new Error(['Material-UI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', "Make sure the element is present in the document or that it's not display none."].join('\n')); - } - } else if (!resolvedAnchorEl || typeof resolvedAnchorEl.clientWidth !== 'number' || typeof resolvedAnchorEl.clientHeight !== 'number' || typeof resolvedAnchorEl.getBoundingClientRect !== 'function') { - return new Error(['Material-UI: The `anchorEl` prop provided to the component is invalid.', 'It should be an HTML element instance or a referenceObject ', '(https://popper.js.org/docs/v1/#referenceObject).'].join('\n')); - } - } - - return null; - }), - - /** - * Popper render function or node. - */ - children: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_10___default().node), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func)]).isRequired, - - /** - * A HTML element, component instance, or function that returns either. - * The `container` will have the portal children appended to it. - * - * By default, it uses the body of the top-level document object, - * so it's simply `document.body` most of the time. - */ - container: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([_material_ui_utils__WEBPACK_IMPORTED_MODULE_11__["default"], prop_types__WEBPACK_IMPORTED_MODULE_10___default().instanceOf(react__WEBPACK_IMPORTED_MODULE_2__.Component), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func)]), - - /** - * Disable the portal behavior. - * The children stay within it's parent DOM hierarchy. - */ - disablePortal: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool), - - /** - * Always keep the children in the DOM. - * This prop can be useful in SEO situation or - * when you want to maximize the responsiveness of the Popper. - */ - keepMounted: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool), - - /** - * Popper.js is based on a "plugin-like" architecture, - * most of its features are fully encapsulated "modifiers". - * - * A modifier is a function that is called each time Popper.js needs to - * compute the position of the popper. - * For this reason, modifiers should be very performant to avoid bottlenecks. - * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v1/#modifiers). - */ - modifiers: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().object), - - /** - * If `true`, the popper is visible. - */ - open: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool.isRequired), - - /** - * Popper placement. - */ - placement: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOf(['bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']), - - /** - * Options provided to the [`popper.js`](https://popper.js.org/docs/v1/) instance. - */ - popperOptions: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().object), - - /** - * A ref that points to the used popper instance. - */ - popperRef: _material_ui_utils__WEBPACK_IMPORTED_MODULE_12__["default"], - - /** - * @ignore - */ - style: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().object), - - /** - * Help supporting a react-transition-group/Transition component. - */ - transition: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Popper); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Portal/Portal.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/react-dom/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/utils/esm/HTMLElementType.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/utils/esm/exactProp.js"); -/* harmony import */ var _utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/deprecatedPropType.js"); -/* harmony import */ var _utils_setRef__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/setRef.js"); -/* harmony import */ var _utils_useForkRef__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useForkRef.js"); - - - - - - - - -function getContainer(container) { - container = typeof container === 'function' ? container() : container; // #StrictMode ready - - return react_dom__WEBPACK_IMPORTED_MODULE_1__.findDOMNode(container); -} - -var useEnhancedEffect = typeof window !== 'undefined' ? react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_0__.useEffect; -/** - * Portals provide a first-class way to render children into a DOM node - * that exists outside the DOM hierarchy of the parent component. - */ - -var Portal = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(function Portal(props, ref) { - var children = props.children, - container = props.container, - _props$disablePortal = props.disablePortal, - disablePortal = _props$disablePortal === void 0 ? false : _props$disablePortal, - onRendered = props.onRendered; - - var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__.useState(null), - mountNode = _React$useState[0], - setMountNode = _React$useState[1]; - - var handleRef = (0,_utils_useForkRef__WEBPACK_IMPORTED_MODULE_2__["default"])( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(children) ? children.ref : null, ref); - useEnhancedEffect(function () { - if (!disablePortal) { - setMountNode(getContainer(container) || document.body); - } - }, [container, disablePortal]); - useEnhancedEffect(function () { - if (mountNode && !disablePortal) { - (0,_utils_setRef__WEBPACK_IMPORTED_MODULE_3__["default"])(ref, mountNode); - return function () { - (0,_utils_setRef__WEBPACK_IMPORTED_MODULE_3__["default"])(ref, null); - }; - } - - return undefined; - }, [ref, mountNode, disablePortal]); - useEnhancedEffect(function () { - if (onRendered && (mountNode || disablePortal)) { - onRendered(); - } - }, [onRendered, mountNode, disablePortal]); - - if (disablePortal) { - if ( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(children)) { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(children, { - ref: handleRef - }); - } - - return children; - } - - return mountNode ? /*#__PURE__*/react_dom__WEBPACK_IMPORTED_MODULE_1__.createPortal(children, mountNode) : mountNode; -}); - true ? Portal.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * The children to render into the `container`. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().node), - - /** - * A HTML element, component instance, or function that returns either. - * The `container` will have the portal children appended to it. - * - * By default, it uses the body of the top-level document object, - * so it's simply `document.body` most of the time. - */ - container: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([_material_ui_utils__WEBPACK_IMPORTED_MODULE_5__["default"], prop_types__WEBPACK_IMPORTED_MODULE_4___default().instanceOf(react__WEBPACK_IMPORTED_MODULE_0__.Component), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)]), - - /** - * Disable the portal behavior. - * The children stay within it's parent DOM hierarchy. - */ - disablePortal: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool), - - /** - * Callback fired once the children has been mounted into the `container`. - * - * This prop will be removed in v5, the ref can be used instead. - * @deprecated Use the ref instead. - */ - onRendered: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_6__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_4___default().func), 'Use the ref instead.') -} : 0; - -if (true) { - // eslint-disable-next-line - Portal['propTypes' + ''] = (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_7__["default"])(Portal.propTypes); -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Portal); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Select/Select.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__); -/* harmony import */ var _material_ui_styles__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("./node_modules/@material-ui/styles/esm/mergeClasses/mergeClasses.js"); -/* harmony import */ var _SelectInput__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/Select/SelectInput.js"); -/* harmony import */ var _FormControl_formControlState__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormControl/formControlState.js"); -/* harmony import */ var _FormControl_useFormControl__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormControl/useFormControl.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _internal_svg_icons_ArrowDropDown__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/internal/svg-icons/ArrowDropDown.js"); -/* harmony import */ var _Input__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/Input/Input.js"); -/* harmony import */ var _NativeSelect_NativeSelect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@material-ui/core/esm/NativeSelect/NativeSelect.js"); -/* harmony import */ var _NativeSelect_NativeSelectInput__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/NativeSelect/NativeSelectInput.js"); -/* harmony import */ var _FilledInput__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/FilledInput/FilledInput.js"); -/* harmony import */ var _OutlinedInput__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/@material-ui/core/esm/OutlinedInput/OutlinedInput.js"); - - - - - - - - - - - - - - - -var styles = _NativeSelect_NativeSelect__WEBPACK_IMPORTED_MODULE_3__.styles; - -var _ref = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_Input__WEBPACK_IMPORTED_MODULE_4__["default"], null); - -var _ref2 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_FilledInput__WEBPACK_IMPORTED_MODULE_5__["default"], null); - -var Select = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function Select(props, ref) { - var _props$autoWidth = props.autoWidth, - autoWidth = _props$autoWidth === void 0 ? false : _props$autoWidth, - children = props.children, - classes = props.classes, - _props$displayEmpty = props.displayEmpty, - displayEmpty = _props$displayEmpty === void 0 ? false : _props$displayEmpty, - _props$IconComponent = props.IconComponent, - IconComponent = _props$IconComponent === void 0 ? _internal_svg_icons_ArrowDropDown__WEBPACK_IMPORTED_MODULE_6__["default"] : _props$IconComponent, - id = props.id, - input = props.input, - inputProps = props.inputProps, - label = props.label, - labelId = props.labelId, - _props$labelWidth = props.labelWidth, - labelWidth = _props$labelWidth === void 0 ? 0 : _props$labelWidth, - MenuProps = props.MenuProps, - _props$multiple = props.multiple, - multiple = _props$multiple === void 0 ? false : _props$multiple, - _props$native = props.native, - native = _props$native === void 0 ? false : _props$native, - onClose = props.onClose, - onOpen = props.onOpen, - open = props.open, - renderValue = props.renderValue, - SelectDisplayProps = props.SelectDisplayProps, - _props$variant = props.variant, - variantProps = _props$variant === void 0 ? 'standard' : _props$variant, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["autoWidth", "children", "classes", "displayEmpty", "IconComponent", "id", "input", "inputProps", "label", "labelId", "labelWidth", "MenuProps", "multiple", "native", "onClose", "onOpen", "open", "renderValue", "SelectDisplayProps", "variant"]); - - var inputComponent = native ? _NativeSelect_NativeSelectInput__WEBPACK_IMPORTED_MODULE_7__["default"] : _SelectInput__WEBPACK_IMPORTED_MODULE_8__["default"]; - var muiFormControl = (0,_FormControl_useFormControl__WEBPACK_IMPORTED_MODULE_9__["default"])(); - var fcs = (0,_FormControl_formControlState__WEBPACK_IMPORTED_MODULE_10__["default"])({ - props: props, - muiFormControl: muiFormControl, - states: ['variant'] - }); - var variant = fcs.variant || variantProps; - var InputComponent = input || { - standard: _ref, - outlined: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_OutlinedInput__WEBPACK_IMPORTED_MODULE_11__["default"], { - label: label, - labelWidth: labelWidth - }), - filled: _ref2 - }[variant]; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.cloneElement(InputComponent, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - // Most of the logic is implemented in `SelectInput`. - // The `Select` component is a simple API wrapper to expose something better to play with. - inputComponent: inputComponent, - inputProps: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - children: children, - IconComponent: IconComponent, - variant: variant, - type: undefined, - // We render a select. We can ignore the type provided by the `Input`. - multiple: multiple - }, native ? { - id: id - } : { - autoWidth: autoWidth, - displayEmpty: displayEmpty, - labelId: labelId, - MenuProps: MenuProps, - onClose: onClose, - onOpen: onOpen, - open: open, - renderValue: renderValue, - SelectDisplayProps: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - id: id - }, SelectDisplayProps) - }, inputProps, { - classes: inputProps ? (0,_material_ui_styles__WEBPACK_IMPORTED_MODULE_12__["default"])({ - baseClasses: classes, - newClasses: inputProps.classes, - Component: Select - }) : classes - }, input ? input.props.inputProps : {}), - ref: ref - }, other)); -}); - true ? Select.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * If `true`, the width of the popover will automatically be set according to the items inside the - * menu, otherwise it will be at least the width of the select input. - */ - autoWidth: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * The option elements to populate the select with. - * Can be some `MenuItem` when `native` is false and `option` when `native` is true. - * - * ⚠️The `MenuItem` elements **must** be direct descendants when `native` is false. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().object), - - /** - * The default element value. Use when the component is not controlled. - */ - defaultValue: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().any), - - /** - * If `true`, a value is displayed even if no items are selected. - * - * In order to display a meaningful value, a function should be passed to the `renderValue` prop which returns the value to be displayed when no items are selected. - * You can only use it when the `native` prop is `false` (default). - */ - displayEmpty: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * The icon that displays the arrow. - */ - IconComponent: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().elementType), - - /** - * The `id` of the wrapper element or the `select` element when `native`. - */ - id: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), - - /** - * An `Input` element; does not have to be a material-ui specific `Input`. - */ - input: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().element), - - /** - * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element. - * When `native` is `true`, the attributes are applied on the `select` element. - */ - inputProps: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().object), - - /** - * See [OutlinedInput#label](/api/outlined-input/#props) - */ - label: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().node), - - /** - * The ID of an element that acts as an additional label. The Select will - * be labelled by the additional label and the selected value. - */ - labelId: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), - - /** - * See [OutlinedInput#label](/api/outlined-input/#props) - */ - labelWidth: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), - - /** - * Props applied to the [`Menu`](/api/menu/) element. - */ - MenuProps: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().object), - - /** - * If `true`, `value` must be an array and the menu will support multiple selections. - */ - multiple: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * If `true`, the component will be using a native `select` element. - */ - native: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * Callback function fired when a menu item is selected. - * - * @param {object} event The event source of the callback. - * You can pull out the new value by accessing `event.target.value` (any). - * @param {object} [child] The react element that was selected when `native` is `false` (default). - */ - onChange: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), - - /** - * Callback fired when the component requests to be closed. - * Use in controlled mode (see open). - * - * @param {object} event The event source of the callback. - */ - onClose: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), - - /** - * Callback fired when the component requests to be opened. - * Use in controlled mode (see open). - * - * @param {object} event The event source of the callback. - */ - onOpen: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), - - /** - * Control `select` open state. - * You can only use it when the `native` prop is `false` (default). - */ - open: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * Render the selected value. - * You can only use it when the `native` prop is `false` (default). - * - * @param {any} value The `value` provided to the component. - * @returns {ReactNode} - */ - renderValue: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), - - /** - * Props applied to the clickable div element. - */ - SelectDisplayProps: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().object), - - /** - * The input value. Providing an empty string will select no options. - * This prop is required when the `native` prop is `false` (default). - * Set to an empty string `''` if you don't want any of the available options to be selected. - * - * If the value is an object it must have reference equality with the option in order to be selected. - * If the value is not an object, the string representation must match with the string representation of the option in order to be selected. - */ - value: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().any), - - /** - * The variant to use. - */ - variant: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOf(['filled', 'outlined', 'standard']) -} : 0; -Select.muiName = 'Select'; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_14__["default"])(styles, { - name: 'MuiSelect' -})(Select)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Select/SelectInput.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/typeof.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/react-is/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _utils_ownerDocument__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/ownerDocument.js"); -/* harmony import */ var _utils_capitalize__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/capitalize.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("./node_modules/@material-ui/utils/esm/refType.js"); -/* harmony import */ var _Menu_Menu__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("./node_modules/@material-ui/core/esm/Menu/Menu.js"); -/* harmony import */ var _InputBase_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/core/esm/InputBase/utils.js"); -/* harmony import */ var _utils_useForkRef__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useForkRef.js"); -/* harmony import */ var _utils_useControlled__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useControlled.js"); - - - - - - - - - - - - - - - - - -function areEqualValues(a, b) { - if ((0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_3__["default"])(b) === 'object' && b !== null) { - return a === b; - } - - return String(a) === String(b); -} - -function isEmpty(display) { - return display == null || typeof display === 'string' && !display.trim(); -} -/** - * @ignore - internal component. - */ - - -var SelectInput = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.forwardRef(function SelectInput(props, ref) { - var ariaLabel = props['aria-label'], - autoFocus = props.autoFocus, - autoWidth = props.autoWidth, - children = props.children, - classes = props.classes, - className = props.className, - defaultValue = props.defaultValue, - disabled = props.disabled, - displayEmpty = props.displayEmpty, - IconComponent = props.IconComponent, - inputRefProp = props.inputRef, - labelId = props.labelId, - _props$MenuProps = props.MenuProps, - MenuProps = _props$MenuProps === void 0 ? {} : _props$MenuProps, - multiple = props.multiple, - name = props.name, - onBlur = props.onBlur, - onChange = props.onChange, - onClose = props.onClose, - onFocus = props.onFocus, - onOpen = props.onOpen, - openProp = props.open, - readOnly = props.readOnly, - renderValue = props.renderValue, - _props$SelectDisplayP = props.SelectDisplayProps, - SelectDisplayProps = _props$SelectDisplayP === void 0 ? {} : _props$SelectDisplayP, - tabIndexProp = props.tabIndex, - type = props.type, - valueProp = props.value, - _props$variant = props.variant, - variant = _props$variant === void 0 ? 'standard' : _props$variant, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__["default"])(props, ["aria-label", "autoFocus", "autoWidth", "children", "classes", "className", "defaultValue", "disabled", "displayEmpty", "IconComponent", "inputRef", "labelId", "MenuProps", "multiple", "name", "onBlur", "onChange", "onClose", "onFocus", "onOpen", "open", "readOnly", "renderValue", "SelectDisplayProps", "tabIndex", "type", "value", "variant"]); - - var _useControlled = (0,_utils_useControlled__WEBPACK_IMPORTED_MODULE_7__["default"])({ - controlled: valueProp, - default: defaultValue, - name: 'Select' - }), - _useControlled2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_useControlled, 2), - value = _useControlled2[0], - setValue = _useControlled2[1]; - - var inputRef = react__WEBPACK_IMPORTED_MODULE_4__.useRef(null); - - var _React$useState = react__WEBPACK_IMPORTED_MODULE_4__.useState(null), - displayNode = _React$useState[0], - setDisplayNode = _React$useState[1]; - - var _React$useRef = react__WEBPACK_IMPORTED_MODULE_4__.useRef(openProp != null), - isOpenControlled = _React$useRef.current; - - var _React$useState2 = react__WEBPACK_IMPORTED_MODULE_4__.useState(), - menuMinWidthState = _React$useState2[0], - setMenuMinWidthState = _React$useState2[1]; - - var _React$useState3 = react__WEBPACK_IMPORTED_MODULE_4__.useState(false), - openState = _React$useState3[0], - setOpenState = _React$useState3[1]; - - var handleRef = (0,_utils_useForkRef__WEBPACK_IMPORTED_MODULE_8__["default"])(ref, inputRefProp); - react__WEBPACK_IMPORTED_MODULE_4__.useImperativeHandle(handleRef, function () { - return { - focus: function focus() { - displayNode.focus(); - }, - node: inputRef.current, - value: value - }; - }, [displayNode, value]); - react__WEBPACK_IMPORTED_MODULE_4__.useEffect(function () { - if (autoFocus && displayNode) { - displayNode.focus(); - } - }, [autoFocus, displayNode]); - react__WEBPACK_IMPORTED_MODULE_4__.useEffect(function () { - if (displayNode) { - var label = (0,_utils_ownerDocument__WEBPACK_IMPORTED_MODULE_9__["default"])(displayNode).getElementById(labelId); - - if (label) { - var handler = function handler() { - if (getSelection().isCollapsed) { - displayNode.focus(); - } - }; - - label.addEventListener('click', handler); - return function () { - label.removeEventListener('click', handler); - }; - } - } - - return undefined; - }, [labelId, displayNode]); - - var update = function update(open, event) { - if (open) { - if (onOpen) { - onOpen(event); - } - } else if (onClose) { - onClose(event); - } - - if (!isOpenControlled) { - setMenuMinWidthState(autoWidth ? null : displayNode.clientWidth); - setOpenState(open); - } - }; - - var handleMouseDown = function handleMouseDown(event) { - // Ignore everything but left-click - if (event.button !== 0) { - return; - } // Hijack the default focus behavior. - - - event.preventDefault(); - displayNode.focus(); - update(true, event); - }; - - var handleClose = function handleClose(event) { - update(false, event); - }; - - var childrenArray = react__WEBPACK_IMPORTED_MODULE_4__.Children.toArray(children); // Support autofill. - - var handleChange = function handleChange(event) { - var index = childrenArray.map(function (child) { - return child.props.value; - }).indexOf(event.target.value); - - if (index === -1) { - return; - } - - var child = childrenArray[index]; - setValue(child.props.value); - - if (onChange) { - onChange(event, child); - } - }; - - var handleItemClick = function handleItemClick(child) { - return function (event) { - if (!multiple) { - update(false, event); - } - - var newValue; - - if (multiple) { - newValue = Array.isArray(value) ? value.slice() : []; - var itemIndex = value.indexOf(child.props.value); - - if (itemIndex === -1) { - newValue.push(child.props.value); - } else { - newValue.splice(itemIndex, 1); - } - } else { - newValue = child.props.value; - } - - if (child.props.onClick) { - child.props.onClick(event); - } - - if (value === newValue) { - return; - } - - setValue(newValue); - - if (onChange) { - event.persist(); // Preact support, target is read only property on a native event. - - Object.defineProperty(event, 'target', { - writable: true, - value: { - value: newValue, - name: name - } - }); - onChange(event, child); - } - }; - }; - - var handleKeyDown = function handleKeyDown(event) { - if (!readOnly) { - var validKeys = [' ', 'ArrowUp', 'ArrowDown', // The native select doesn't respond to enter on MacOS, but it's recommended by - // https://www.w3.org/TR/wai-aria-practices/examples/listbox/listbox-collapsible.html - 'Enter']; - - if (validKeys.indexOf(event.key) !== -1) { - event.preventDefault(); - update(true, event); - } - } - }; - - var open = displayNode !== null && (isOpenControlled ? openProp : openState); - - var handleBlur = function handleBlur(event) { - // if open event.stopImmediatePropagation - if (!open && onBlur) { - event.persist(); // Preact support, target is read only property on a native event. - - Object.defineProperty(event, 'target', { - writable: true, - value: { - value: value, - name: name - } - }); - onBlur(event); - } - }; - - delete other['aria-invalid']; - var display; - var displaySingle; - var displayMultiple = []; - var computeDisplay = false; - var foundMatch = false; // No need to display any value if the field is empty. - - if ((0,_InputBase_utils__WEBPACK_IMPORTED_MODULE_10__.isFilled)({ - value: value - }) || displayEmpty) { - if (renderValue) { - display = renderValue(value); - } else { - computeDisplay = true; - } - } - - var items = childrenArray.map(function (child) { - if (! /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.isValidElement(child)) { - return null; - } - - if (true) { - if ((0,react_is__WEBPACK_IMPORTED_MODULE_5__.isFragment)(child)) { - console.error(["Material-UI: The Select component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n')); - } - } - - var selected; - - if (multiple) { - if (!Array.isArray(value)) { - throw new Error( true ? "Material-UI: The `value` prop must be an array when using the `Select` component with `multiple`." : 0); - } - - selected = value.some(function (v) { - return areEqualValues(v, child.props.value); - }); - - if (selected && computeDisplay) { - displayMultiple.push(child.props.children); - } - } else { - selected = areEqualValues(value, child.props.value); - - if (selected && computeDisplay) { - displaySingle = child.props.children; - } - } - - if (selected) { - foundMatch = true; - } - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.cloneElement(child, { - 'aria-selected': selected ? 'true' : undefined, - onClick: handleItemClick(child), - onKeyUp: function onKeyUp(event) { - if (event.key === ' ') { - // otherwise our MenuItems dispatches a click event - // it's not behavior of the native and causes - // the select to close immediately since we open on space keydown - event.preventDefault(); - } - - if (child.props.onKeyUp) { - child.props.onKeyUp(event); - } - }, - role: 'option', - selected: selected, - value: undefined, - // The value is most likely not a valid HTML attribute. - 'data-value': child.props.value // Instead, we provide it as a data attribute. - - }); - }); - - if (true) { - // eslint-disable-next-line react-hooks/rules-of-hooks - react__WEBPACK_IMPORTED_MODULE_4__.useEffect(function () { - if (!foundMatch && !multiple && value !== '') { - var values = childrenArray.map(function (child) { - return child.props.value; - }); - console.warn(["Material-UI: You have provided an out-of-range value `".concat(value, "` for the select ").concat(name ? "(name=\"".concat(name, "\") ") : '', "component."), "Consider providing a value that matches one of the available options or ''.", "The available values are ".concat(values.filter(function (x) { - return x != null; - }).map(function (x) { - return "`".concat(x, "`"); - }).join(', ') || '""', ".")].join('\n')); - } - }, [foundMatch, childrenArray, multiple, name, value]); - } - - if (computeDisplay) { - display = multiple ? displayMultiple.join(', ') : displaySingle; - } // Avoid performing a layout computation in the render method. - - - var menuMinWidth = menuMinWidthState; - - if (!autoWidth && isOpenControlled && displayNode) { - menuMinWidth = displayNode.clientWidth; - } - - var tabIndex; - - if (typeof tabIndexProp !== 'undefined') { - tabIndex = tabIndexProp; - } else { - tabIndex = disabled ? null : 0; - } - - var buttonId = SelectDisplayProps.id || (name ? "mui-component-select-".concat(name) : undefined); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(react__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_6__["default"])(classes.root, // TODO v5: merge root and select - classes.select, classes.selectMenu, classes[variant], className, disabled && classes.disabled), - ref: setDisplayNode, - tabIndex: tabIndex, - role: "button", - "aria-disabled": disabled ? 'true' : undefined, - "aria-expanded": open ? 'true' : undefined, - "aria-haspopup": "listbox", - "aria-label": ariaLabel, - "aria-labelledby": [labelId, buttonId].filter(Boolean).join(' ') || undefined, - onKeyDown: handleKeyDown, - onMouseDown: disabled || readOnly ? null : handleMouseDown, - onBlur: handleBlur, - onFocus: onFocus - }, SelectDisplayProps, { - // The id is required for proper a11y - id: buttonId - }), isEmpty(display) ? - /*#__PURE__*/ - // eslint-disable-next-line react/no-danger - react__WEBPACK_IMPORTED_MODULE_4__.createElement("span", { - dangerouslySetInnerHTML: { - __html: '' - } - }) : display), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement("input", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - value: Array.isArray(value) ? value.join(',') : value, - name: name, - ref: inputRef, - "aria-hidden": true, - onChange: handleChange, - tabIndex: -1, - className: classes.nativeInput, - autoFocus: autoFocus - }, other)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(IconComponent, { - className: (0,clsx__WEBPACK_IMPORTED_MODULE_6__["default"])(classes.icon, classes["icon".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_11__["default"])(variant))], open && classes.iconOpen, disabled && classes.disabled) - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(_Menu_Menu__WEBPACK_IMPORTED_MODULE_12__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - id: "menu-".concat(name || ''), - anchorEl: displayNode, - open: open, - onClose: handleClose - }, MenuProps, { - MenuListProps: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - 'aria-labelledby': labelId, - role: 'listbox', - disableListWrap: true - }, MenuProps.MenuListProps), - PaperProps: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, MenuProps.PaperProps, { - style: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - minWidth: menuMinWidth - }, MenuProps.PaperProps != null ? MenuProps.PaperProps.style : null) - }) - }), items)); -}); - true ? SelectInput.propTypes = { - /** - * @ignore - */ - 'aria-label': (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), - - /** - * @ignore - */ - autoFocus: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * If `true`, the width of the popover will automatically be set according to the items inside the - * menu, otherwise it will be at least the width of the select input. - */ - autoWidth: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * The option elements to populate the select with. - * Can be some `` elements. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().object.isRequired), - - /** - * The CSS class name of the select element. - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), - - /** - * The default element value. Use when the component is not controlled. - */ - defaultValue: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().any), - - /** - * If `true`, the select will be disabled. - */ - disabled: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * If `true`, the selected item is displayed even if its value is empty. - */ - displayEmpty: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * The icon that displays the arrow. - */ - IconComponent: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().elementType.isRequired), - - /** - * Imperative handle implementing `{ value: T, node: HTMLElement, focus(): void }` - * Equivalent to `ref` - */ - inputRef: _material_ui_utils__WEBPACK_IMPORTED_MODULE_14__["default"], - - /** - * The ID of an element that acts as an additional label. The Select will - * be labelled by the additional label and the selected value. - */ - labelId: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), - - /** - * Props applied to the [`Menu`](/api/menu/) element. - */ - MenuProps: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().object), - - /** - * If `true`, `value` must be an array and the menu will support multiple selections. - */ - multiple: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * Name attribute of the `select` or hidden `input` element. - */ - name: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), - - /** - * @ignore - */ - onBlur: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), - - /** - * Callback function fired when a menu item is selected. - * - * @param {object} event The event source of the callback. - * You can pull out the new value by accessing `event.target.value` (any). - * @param {object} [child] The react element that was selected. - */ - onChange: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), - - /** - * Callback fired when the component requests to be closed. - * Use in controlled mode (see open). - * - * @param {object} event The event source of the callback. - */ - onClose: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), - - /** - * @ignore - */ - onFocus: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), - - /** - * Callback fired when the component requests to be opened. - * Use in controlled mode (see open). - * - * @param {object} event The event source of the callback. - */ - onOpen: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), - - /** - * Control `select` open state. - */ - open: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * @ignore - */ - readOnly: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * Render the selected value. - * - * @param {any} value The `value` provided to the component. - * @returns {ReactNode} - */ - renderValue: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), - - /** - * Props applied to the clickable div element. - */ - SelectDisplayProps: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().object), - - /** - * @ignore - */ - tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string)]), - - /** - * @ignore - */ - type: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().any), - - /** - * The input value. - */ - value: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().any), - - /** - * The variant to use. - */ - variant: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOf(['standard', 'outlined', 'filled']) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SelectInput); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Slide/Slide.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "setTranslateValue": () => (/* binding */ setTranslateValue) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__); -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/react-dom/index.js"); -/* harmony import */ var _utils_debounce__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/debounce.js"); -/* harmony import */ var react_transition_group__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/node_modules/react-transition-group/esm/Transition.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/utils/esm/elementAcceptingRef.js"); -/* harmony import */ var _utils_useForkRef__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useForkRef.js"); -/* harmony import */ var _styles_useTheme__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/useTheme.js"); -/* harmony import */ var _styles_transitions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/transitions.js"); -/* harmony import */ var _transitions_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/transitions/utils.js"); - - - - - - - - - - - - // Translate the node so he can't be seen on the screen. -// Later, we gonna translate back the node to his original location -// with `none`.` - -function getTranslateValue(direction, node) { - var rect = node.getBoundingClientRect(); - var transform; - - if (node.fakeTransform) { - transform = node.fakeTransform; - } else { - var computedStyle = window.getComputedStyle(node); - transform = computedStyle.getPropertyValue('-webkit-transform') || computedStyle.getPropertyValue('transform'); - } - - var offsetX = 0; - var offsetY = 0; - - if (transform && transform !== 'none' && typeof transform === 'string') { - var transformValues = transform.split('(')[1].split(')')[0].split(','); - offsetX = parseInt(transformValues[4], 10); - offsetY = parseInt(transformValues[5], 10); - } - - if (direction === 'left') { - return "translateX(".concat(window.innerWidth, "px) translateX(").concat(offsetX - rect.left, "px)"); - } - - if (direction === 'right') { - return "translateX(-".concat(rect.left + rect.width - offsetX, "px)"); - } - - if (direction === 'up') { - return "translateY(".concat(window.innerHeight, "px) translateY(").concat(offsetY - rect.top, "px)"); - } // direction === 'down' - - - return "translateY(-".concat(rect.top + rect.height - offsetY, "px)"); -} - -function setTranslateValue(direction, node) { - var transform = getTranslateValue(direction, node); - - if (transform) { - node.style.webkitTransform = transform; - node.style.transform = transform; - } -} -var defaultTimeout = { - enter: _styles_transitions__WEBPACK_IMPORTED_MODULE_4__.duration.enteringScreen, - exit: _styles_transitions__WEBPACK_IMPORTED_MODULE_4__.duration.leavingScreen -}; -/** - * The Slide transition is used by the [Drawer](/components/drawers/) component. - * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally. - */ - -var Slide = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function Slide(props, ref) { - var children = props.children, - _props$direction = props.direction, - direction = _props$direction === void 0 ? 'down' : _props$direction, - inProp = props.in, - onEnter = props.onEnter, - onEntered = props.onEntered, - onEntering = props.onEntering, - onExit = props.onExit, - onExited = props.onExited, - onExiting = props.onExiting, - style = props.style, - _props$timeout = props.timeout, - timeout = _props$timeout === void 0 ? defaultTimeout : _props$timeout, - _props$TransitionComp = props.TransitionComponent, - TransitionComponent = _props$TransitionComp === void 0 ? react_transition_group__WEBPACK_IMPORTED_MODULE_5__["default"] : _props$TransitionComp, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["children", "direction", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"]); - - var theme = (0,_styles_useTheme__WEBPACK_IMPORTED_MODULE_6__["default"])(); - var childrenRef = react__WEBPACK_IMPORTED_MODULE_2__.useRef(null); - /** - * used in cloneElement(children, { ref: handleRef }) - */ - - var handleOwnRef = react__WEBPACK_IMPORTED_MODULE_2__.useCallback(function (instance) { - // #StrictMode ready - childrenRef.current = react_dom__WEBPACK_IMPORTED_MODULE_3__.findDOMNode(instance); - }, []); - var handleRefIntermediary = (0,_utils_useForkRef__WEBPACK_IMPORTED_MODULE_7__["default"])(children.ref, handleOwnRef); - var handleRef = (0,_utils_useForkRef__WEBPACK_IMPORTED_MODULE_7__["default"])(handleRefIntermediary, ref); - - var normalizedTransitionCallback = function normalizedTransitionCallback(callback) { - return function (isAppearing) { - if (callback) { - // onEnterXxx and onExitXxx callbacks have a different arguments.length value. - if (isAppearing === undefined) { - callback(childrenRef.current); - } else { - callback(childrenRef.current, isAppearing); - } - } - }; - }; - - var handleEnter = normalizedTransitionCallback(function (node, isAppearing) { - setTranslateValue(direction, node); - (0,_transitions_utils__WEBPACK_IMPORTED_MODULE_8__.reflow)(node); - - if (onEnter) { - onEnter(node, isAppearing); - } - }); - var handleEntering = normalizedTransitionCallback(function (node, isAppearing) { - var transitionProps = (0,_transitions_utils__WEBPACK_IMPORTED_MODULE_8__.getTransitionProps)({ - timeout: timeout, - style: style - }, { - mode: 'enter' - }); - node.style.webkitTransition = theme.transitions.create('-webkit-transform', (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, transitionProps, { - easing: theme.transitions.easing.easeOut - })); - node.style.transition = theme.transitions.create('transform', (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, transitionProps, { - easing: theme.transitions.easing.easeOut - })); - node.style.webkitTransform = 'none'; - node.style.transform = 'none'; - - if (onEntering) { - onEntering(node, isAppearing); - } - }); - var handleEntered = normalizedTransitionCallback(onEntered); - var handleExiting = normalizedTransitionCallback(onExiting); - var handleExit = normalizedTransitionCallback(function (node) { - var transitionProps = (0,_transitions_utils__WEBPACK_IMPORTED_MODULE_8__.getTransitionProps)({ - timeout: timeout, - style: style - }, { - mode: 'exit' - }); - node.style.webkitTransition = theme.transitions.create('-webkit-transform', (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, transitionProps, { - easing: theme.transitions.easing.sharp - })); - node.style.transition = theme.transitions.create('transform', (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, transitionProps, { - easing: theme.transitions.easing.sharp - })); - setTranslateValue(direction, node); - - if (onExit) { - onExit(node); - } - }); - var handleExited = normalizedTransitionCallback(function (node) { - // No need for transitions when the component is hidden - node.style.webkitTransition = ''; - node.style.transition = ''; - - if (onExited) { - onExited(node); - } - }); - var updatePosition = react__WEBPACK_IMPORTED_MODULE_2__.useCallback(function () { - if (childrenRef.current) { - setTranslateValue(direction, childrenRef.current); - } - }, [direction]); - react__WEBPACK_IMPORTED_MODULE_2__.useEffect(function () { - // Skip configuration where the position is screen size invariant. - if (inProp || direction === 'down' || direction === 'right') { - return undefined; - } - - var handleResize = (0,_utils_debounce__WEBPACK_IMPORTED_MODULE_9__["default"])(function () { - if (childrenRef.current) { - setTranslateValue(direction, childrenRef.current); - } - }); - window.addEventListener('resize', handleResize); - return function () { - handleResize.clear(); - window.removeEventListener('resize', handleResize); - }; - }, [direction, inProp]); - react__WEBPACK_IMPORTED_MODULE_2__.useEffect(function () { - if (!inProp) { - // We need to update the position of the drawer when the direction change and - // when it's hidden. - updatePosition(); - } - }, [inProp, updatePosition]); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(TransitionComponent, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - nodeRef: childrenRef, - onEnter: handleEnter, - onEntered: handleEntered, - onEntering: handleEntering, - onExit: handleExit, - onExited: handleExited, - onExiting: handleExiting, - appear: true, - in: inProp, - timeout: timeout - }, other), function (state, childProps) { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.cloneElement(children, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - ref: handleRef, - style: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - visibility: state === 'exited' && !inProp ? 'hidden' : undefined - }, style, children.props.style) - }, childProps)); - }); -}); - true ? Slide.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * A single child content element. - */ - children: _material_ui_utils__WEBPACK_IMPORTED_MODULE_10__["default"], - - /** - * Direction the child node will enter from. - */ - direction: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(['down', 'left', 'right', 'up']), - - /** - * If `true`, show the component; triggers the enter or exit animation. - */ - in: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool), - - /** - * @ignore - */ - onEnter: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), - - /** - * @ignore - */ - onEntered: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), - - /** - * @ignore - */ - onEntering: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), - - /** - * @ignore - */ - onExit: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), - - /** - * @ignore - */ - onExited: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), - - /** - * @ignore - */ - onExiting: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), - - /** - * @ignore - */ - style: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), - - /** - * The duration for the transition, in milliseconds. - * You may specify a single timeout for all transitions, or individually with an object. - */ - timeout: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({ - appear: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), - enter: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), - exit: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number) - })]) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Slide); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/SvgIcon/SvgIcon.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/utils/esm/chainPropTypes.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _utils_capitalize__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/capitalize.js"); - - - - - - - - -var styles = function styles(theme) { - return { - /* Styles applied to the root element. */ - root: { - userSelect: 'none', - width: '1em', - height: '1em', - display: 'inline-block', - fill: 'currentColor', - flexShrink: 0, - fontSize: theme.typography.pxToRem(24), - transition: theme.transitions.create('fill', { - duration: theme.transitions.duration.shorter - }) - }, - - /* Styles applied to the root element if `color="primary"`. */ - colorPrimary: { - color: theme.palette.primary.main - }, - - /* Styles applied to the root element if `color="secondary"`. */ - colorSecondary: { - color: theme.palette.secondary.main - }, - - /* Styles applied to the root element if `color="action"`. */ - colorAction: { - color: theme.palette.action.active - }, - - /* Styles applied to the root element if `color="error"`. */ - colorError: { - color: theme.palette.error.main - }, - - /* Styles applied to the root element if `color="disabled"`. */ - colorDisabled: { - color: theme.palette.action.disabled - }, - - /* Styles applied to the root element if `fontSize="inherit"`. */ - fontSizeInherit: { - fontSize: 'inherit' - }, - - /* Styles applied to the root element if `fontSize="small"`. */ - fontSizeSmall: { - fontSize: theme.typography.pxToRem(20) - }, - - /* Styles applied to the root element if `fontSize="large"`. */ - fontSizeLarge: { - fontSize: theme.typography.pxToRem(35) - } - }; -}; -var SvgIcon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function SvgIcon(props, ref) { - var children = props.children, - classes = props.classes, - className = props.className, - _props$color = props.color, - color = _props$color === void 0 ? 'inherit' : _props$color, - _props$component = props.component, - Component = _props$component === void 0 ? 'svg' : _props$component, - _props$fontSize = props.fontSize, - fontSize = _props$fontSize === void 0 ? 'medium' : _props$fontSize, - htmlColor = props.htmlColor, - titleAccess = props.titleAccess, - _props$viewBox = props.viewBox, - viewBox = _props$viewBox === void 0 ? '0 0 24 24' : _props$viewBox, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["children", "classes", "className", "color", "component", "fontSize", "htmlColor", "titleAccess", "viewBox"]); - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Component, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, className, color !== 'inherit' && classes["color".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_4__["default"])(color))], fontSize !== 'default' && fontSize !== 'medium' && classes["fontSize".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_4__["default"])(fontSize))]), - focusable: "false", - viewBox: viewBox, - color: htmlColor, - "aria-hidden": titleAccess ? undefined : true, - role: titleAccess ? 'img' : undefined, - ref: ref - }, other), children, titleAccess ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("title", null, titleAccess) : null); -}); - true ? SvgIcon.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * Node passed into the SVG element. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), - - /** - * The color of the component. It supports those theme colors that make sense for this component. - * You can use the `htmlColor` prop to apply a color attribute to the SVG element. - */ - color: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOf(['action', 'disabled', 'error', 'inherit', 'primary', 'secondary']), - - /** - * The component used for the root node. - * Either a string to use a HTML element or a component. - */ - component: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().elementType), - - /** - * The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size. - */ - fontSize: (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_6__["default"])(prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOf(['default', 'inherit', 'large', 'medium', 'small']), function (props) { - var fontSize = props.fontSize; - - if (fontSize === 'default') { - throw new Error('Material-UI: `fontSize="default"` is deprecated. Use `fontSize="medium"` instead.'); - } - - return null; - }), - - /** - * Applies a color attribute to the SVG element. - */ - htmlColor: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), - - /** - * The shape-rendering attribute. The behavior of the different options is described on the - * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering). - * If you are having issues with blurry icons you should investigate this property. - */ - shapeRendering: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), - - /** - * Provides a human-readable title for the element that contains it. - * https://www.w3.org/TR/SVG-access/#Equivalent - */ - titleAccess: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), - - /** - * Allows you to redefine what the coordinates without units mean inside an SVG element. - * For example, if the SVG element is 500 (width) by 200 (height), - * and you pass viewBox="0 0 50 20", - * this means that the coordinates inside the SVG will go from the top left corner (0,0) - * to bottom right (50,20) and each unit will be worth 10px. - */ - viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string) -} : 0; -SvgIcon.muiName = 'SvgIcon'; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_7__["default"])(styles, { - name: 'MuiSvgIcon' -})(SvgIcon)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Switch/Switch.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/utils/esm/refType.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/colorManipulator.js"); -/* harmony import */ var _utils_capitalize__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/capitalize.js"); -/* harmony import */ var _internal_SwitchBase__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/internal/SwitchBase.js"); - - -// @inheritedComponent IconButton - - - - - - - - -var styles = function styles(theme) { - return { - /* Styles applied to the root element. */ - root: { - display: 'inline-flex', - width: 34 + 12 * 2, - height: 14 + 12 * 2, - overflow: 'hidden', - padding: 12, - boxSizing: 'border-box', - position: 'relative', - flexShrink: 0, - zIndex: 0, - // Reset the stacking context. - verticalAlign: 'middle', - // For correct alignment with the text. - '@media print': { - colorAdjust: 'exact' - } - }, - - /* Styles applied to the root element if `edge="start"`. */ - edgeStart: { - marginLeft: -8 - }, - - /* Styles applied to the root element if `edge="end"`. */ - edgeEnd: { - marginRight: -8 - }, - - /* Styles applied to the internal `SwitchBase` component's `root` class. */ - switchBase: { - position: 'absolute', - top: 0, - left: 0, - zIndex: 1, - // Render above the focus ripple. - color: theme.palette.type === 'light' ? theme.palette.grey[50] : theme.palette.grey[400], - transition: theme.transitions.create(['left', 'transform'], { - duration: theme.transitions.duration.shortest - }), - '&$checked': { - transform: 'translateX(20px)' - }, - '&$disabled': { - color: theme.palette.type === 'light' ? theme.palette.grey[400] : theme.palette.grey[800] - }, - '&$checked + $track': { - opacity: 0.5 - }, - '&$disabled + $track': { - opacity: theme.palette.type === 'light' ? 0.12 : 0.1 - } - }, - - /* Styles applied to the internal SwitchBase component's root element if `color="primary"`. */ - colorPrimary: { - '&$checked': { - color: theme.palette.primary.main, - '&:hover': { - backgroundColor: (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.alpha)(theme.palette.primary.main, theme.palette.action.hoverOpacity), - '@media (hover: none)': { - backgroundColor: 'transparent' - } - } - }, - '&$disabled': { - color: theme.palette.type === 'light' ? theme.palette.grey[400] : theme.palette.grey[800] - }, - '&$checked + $track': { - backgroundColor: theme.palette.primary.main - }, - '&$disabled + $track': { - backgroundColor: theme.palette.type === 'light' ? theme.palette.common.black : theme.palette.common.white - } - }, - - /* Styles applied to the internal SwitchBase component's root element if `color="secondary"`. */ - colorSecondary: { - '&$checked': { - color: theme.palette.secondary.main, - '&:hover': { - backgroundColor: (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.alpha)(theme.palette.secondary.main, theme.palette.action.hoverOpacity), - '@media (hover: none)': { - backgroundColor: 'transparent' - } - } - }, - '&$disabled': { - color: theme.palette.type === 'light' ? theme.palette.grey[400] : theme.palette.grey[800] - }, - '&$checked + $track': { - backgroundColor: theme.palette.secondary.main - }, - '&$disabled + $track': { - backgroundColor: theme.palette.type === 'light' ? theme.palette.common.black : theme.palette.common.white - } - }, - - /* Styles applied to the root element if `size="small"`. */ - sizeSmall: { - width: 40, - height: 24, - padding: 7, - '& $thumb': { - width: 16, - height: 16 - }, - '& $switchBase': { - padding: 4, - '&$checked': { - transform: 'translateX(16px)' - } - } - }, - - /* Pseudo-class applied to the internal `SwitchBase` component's `checked` class. */ - checked: {}, - - /* Pseudo-class applied to the internal SwitchBase component's disabled class. */ - disabled: {}, - - /* Styles applied to the internal SwitchBase component's input element. */ - input: { - left: '-100%', - width: '300%' - }, - - /* Styles used to create the thumb passed to the internal `SwitchBase` component `icon` prop. */ - thumb: { - boxShadow: theme.shadows[1], - backgroundColor: 'currentColor', - width: 20, - height: 20, - borderRadius: '50%' - }, - - /* Styles applied to the track element. */ - track: { - height: '100%', - width: '100%', - borderRadius: 14 / 2, - zIndex: -1, - transition: theme.transitions.create(['opacity', 'background-color'], { - duration: theme.transitions.duration.shortest - }), - backgroundColor: theme.palette.type === 'light' ? theme.palette.common.black : theme.palette.common.white, - opacity: theme.palette.type === 'light' ? 0.38 : 0.3 - } - }; -}; -var Switch = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function Switch(props, ref) { - var classes = props.classes, - className = props.className, - _props$color = props.color, - color = _props$color === void 0 ? 'secondary' : _props$color, - _props$edge = props.edge, - edge = _props$edge === void 0 ? false : _props$edge, - _props$size = props.size, - size = _props$size === void 0 ? 'medium' : _props$size, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["classes", "className", "color", "edge", "size"]); - - var icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", { - className: classes.thumb - }); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", { - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, className, { - 'start': classes.edgeStart, - 'end': classes.edgeEnd - }[edge], size === "small" && classes["size".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_5__["default"])(size))]) - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_internal_SwitchBase__WEBPACK_IMPORTED_MODULE_6__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - type: "checkbox", - icon: icon, - checkedIcon: icon, - classes: { - root: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.switchBase, classes["color".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_5__["default"])(color))]), - input: classes.input, - checked: classes.checked, - disabled: classes.disabled - }, - ref: ref - }, other)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", { - className: classes.track - })); -}); - true ? Switch.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * If `true`, the component is checked. - */ - checked: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * The icon to display when the component is checked. - */ - checkedIcon: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), - - /** - * The color of the component. It supports those theme colors that make sense for this component. - */ - color: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(['default', 'primary', 'secondary']), - - /** - * @ignore - */ - defaultChecked: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * If `true`, the switch will be disabled. - */ - disabled: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * If `true`, the ripple effect will be disabled. - */ - disableRipple: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * If given, uses a negative margin to counteract the padding on one - * side (this is often helpful for aligning the left or right - * side of the icon with content above or below, without ruining the border - * size and shape). - */ - edge: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(['end', 'start', false]), - - /** - * The icon to display when the component is unchecked. - */ - icon: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().node), - - /** - * The id of the `input` element. - */ - id: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), - - /** - * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element. - */ - inputProps: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object), - - /** - * Pass a ref to the `input` element. - */ - inputRef: _material_ui_utils__WEBPACK_IMPORTED_MODULE_8__["default"], - - /** - * Callback fired when the state is changed. - * - * @param {object} event The event source of the callback. - * You can pull out the new value by accessing `event.target.value` (string). - * You can pull out the new checked state by accessing `event.target.checked` (boolean). - */ - onChange: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), - - /** - * If `true`, the `input` element will be required. - */ - required: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * The size of the switch. - * `small` is equivalent to the dense switch styling. - */ - size: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(['medium', 'small']), - - /** - * The value of the component. The DOM API casts this to a string. - * The browser uses "on" as the default value. - */ - value: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().any) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_9__["default"])(styles, { - name: 'MuiSwitch' -})(Switch)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Table/TableContext.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); - -/** - * @ignore - internal component. - */ - -var TableContext = react__WEBPACK_IMPORTED_MODULE_0__.createContext(); - -if (true) { - TableContext.displayName = 'TableContext'; -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TableContext); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Table/Tablelvl2Context.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); - -/** - * @ignore - internal component. - */ - -var Tablelvl2Context = react__WEBPACK_IMPORTED_MODULE_0__.createContext(); - -if (true) { - Tablelvl2Context.displayName = 'Tablelvl2Context'; -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Tablelvl2Context); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/TableCell/TableCell.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/utils/esm/chainPropTypes.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _utils_capitalize__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/capitalize.js"); -/* harmony import */ var _styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/colorManipulator.js"); -/* harmony import */ var _Table_TableContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/Table/TableContext.js"); -/* harmony import */ var _Table_Tablelvl2Context__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/Table/Tablelvl2Context.js"); - - - - - - - - - - - -var styles = function styles(theme) { - return { - /* Styles applied to the root element. */ - root: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, theme.typography.body2, { - display: 'table-cell', - verticalAlign: 'inherit', - // Workaround for a rendering bug with spanned columns in Chrome 62.0. - // Removes the alpha (sets it to 1), and lightens or darkens the theme color. - borderBottom: "1px solid\n ".concat(theme.palette.type === 'light' ? (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.lighten)((0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.alpha)(theme.palette.divider, 1), 0.88) : (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.darken)((0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.alpha)(theme.palette.divider, 1), 0.68)), - textAlign: 'left', - padding: 16 - }), - - /* Styles applied to the root element if `variant="head"` or `context.table.head`. */ - head: { - color: theme.palette.text.primary, - lineHeight: theme.typography.pxToRem(24), - fontWeight: theme.typography.fontWeightMedium - }, - - /* Styles applied to the root element if `variant="body"` or `context.table.body`. */ - body: { - color: theme.palette.text.primary - }, - - /* Styles applied to the root element if `variant="footer"` or `context.table.footer`. */ - footer: { - color: theme.palette.text.secondary, - lineHeight: theme.typography.pxToRem(21), - fontSize: theme.typography.pxToRem(12) - }, - - /* Styles applied to the root element if `size="small"`. */ - sizeSmall: { - padding: '6px 24px 6px 16px', - '&:last-child': { - paddingRight: 16 - }, - '&$paddingCheckbox': { - width: 24, - // prevent the checkbox column from growing - padding: '0 12px 0 16px', - '&:last-child': { - paddingLeft: 12, - paddingRight: 16 - }, - '& > *': { - padding: 0 - } - } - }, - - /* Styles applied to the root element if `padding="checkbox"`. */ - paddingCheckbox: { - width: 48, - // prevent the checkbox column from growing - padding: '0 0 0 4px', - '&:last-child': { - paddingLeft: 0, - paddingRight: 4 - } - }, - - /* Styles applied to the root element if `padding="none"`. */ - paddingNone: { - padding: 0, - '&:last-child': { - padding: 0 - } - }, - - /* Styles applied to the root element if `align="left"`. */ - alignLeft: { - textAlign: 'left' - }, - - /* Styles applied to the root element if `align="center"`. */ - alignCenter: { - textAlign: 'center' - }, - - /* Styles applied to the root element if `align="right"`. */ - alignRight: { - textAlign: 'right', - flexDirection: 'row-reverse' - }, - - /* Styles applied to the root element if `align="justify"`. */ - alignJustify: { - textAlign: 'justify' - }, - - /* Styles applied to the root element if `context.table.stickyHeader={true}`. */ - stickyHeader: { - position: 'sticky', - top: 0, - left: 0, - zIndex: 2, - backgroundColor: theme.palette.background.default - } - }; -}; -/** - * The component renders a `` element when the parent context is a header - * or otherwise a `` element. - */ - -var TableCell = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function TableCell(props, ref) { - var _props$align = props.align, - align = _props$align === void 0 ? 'inherit' : _props$align, - classes = props.classes, - className = props.className, - component = props.component, - paddingProp = props.padding, - scopeProp = props.scope, - sizeProp = props.size, - sortDirection = props.sortDirection, - variantProp = props.variant, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__["default"])(props, ["align", "classes", "className", "component", "padding", "scope", "size", "sortDirection", "variant"]); - - var table = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_Table_TableContext__WEBPACK_IMPORTED_MODULE_5__["default"]); - var tablelvl2 = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_Table_Tablelvl2Context__WEBPACK_IMPORTED_MODULE_6__["default"]); - var isHeadCell = tablelvl2 && tablelvl2.variant === 'head'; - var role; - var Component; - - if (component) { - Component = component; - role = isHeadCell ? 'columnheader' : 'cell'; - } else { - Component = isHeadCell ? 'th' : 'td'; - } - - var scope = scopeProp; - - if (!scope && isHeadCell) { - scope = 'col'; - } - - var padding = paddingProp || (table && table.padding ? table.padding : 'normal'); - var size = sizeProp || (table && table.size ? table.size : 'medium'); - var variant = variantProp || tablelvl2 && tablelvl2.variant; - var ariaSort = null; - - if (sortDirection) { - ariaSort = sortDirection === 'asc' ? 'ascending' : 'descending'; - } - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Component, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - ref: ref, - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, classes[variant], className, align !== 'inherit' && classes["align".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_7__["default"])(align))], padding !== 'normal' && classes["padding".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_7__["default"])(padding))], size !== 'medium' && classes["size".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_7__["default"])(size))], variant === 'head' && table && table.stickyHeader && classes.stickyHeader), - "aria-sort": ariaSort, - role: role, - scope: scope - }, other)); -}); - true ? TableCell.propTypes = { - /** - * Set the text-align on the table cell content. - * - * Monetary or generally number fields **should be right aligned** as that allows - * you to add them up quickly in your head without having to worry about decimals. - */ - align: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOf(['center', 'inherit', 'justify', 'left', 'right']), - - /** - * The table cell contents. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string), - - /** - * The component used for the root node. - * Either a string to use a HTML element or a component. - */ - component: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().elementType), - - /** - * Sets the padding applied to the cell. - * By default, the Table parent component set the value (`normal`). - * `default` is deprecated, use `normal` instead. - */ - padding: (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_9__["default"])(prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOf(['normal', 'checkbox', 'none', 'default']), function (props) { - if (props.padding === 'default') { - return new Error('Material-UI: padding="default" was renamed to padding="normal" for consistency.'); - } - - return null; - }), - - /** - * Set scope attribute. - */ - scope: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string), - - /** - * Specify the size of the cell. - * By default, the Table parent component set the value (`medium`). - */ - size: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOf(['medium', 'small']), - - /** - * Set aria-sort direction. - */ - sortDirection: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOf(['asc', 'desc', false]), - - /** - * Specify the cell type. - * By default, the TableHead, TableBody or TableFooter parent component set the value. - */ - variant: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOf(['body', 'footer', 'head']) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_10__["default"])(styles, { - name: 'MuiTableCell' -})(TableCell)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/TablePagination/TablePagination.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_12__); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("./node_modules/@material-ui/utils/esm/chainPropTypes.js"); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/deprecatedPropType.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _InputBase__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/@material-ui/core/esm/InputBase/InputBase.js"); -/* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/MenuItem/MenuItem.js"); -/* harmony import */ var _Select__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/core/esm/Select/Select.js"); -/* harmony import */ var _TableCell__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/TableCell/TableCell.js"); -/* harmony import */ var _Toolbar__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/Toolbar/Toolbar.js"); -/* harmony import */ var _Typography__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/core/esm/Typography/Typography.js"); -/* harmony import */ var _TablePaginationActions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/TablePagination/TablePaginationActions.js"); -/* harmony import */ var _utils_unstable_useId__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/unstable_useId.js"); - - - - - - - - - - - - - - - - -var styles = function styles(theme) { - return { - /* Styles applied to the root element. */ - root: { - color: theme.palette.text.primary, - fontSize: theme.typography.pxToRem(14), - overflow: 'auto', - // Increase the specificity to override TableCell. - '&:last-child': { - padding: 0 - } - }, - - /* Styles applied to the Toolbar component. */ - toolbar: { - minHeight: 52, - paddingRight: 2 - }, - - /* Styles applied to the spacer element. */ - spacer: { - flex: '1 1 100%' - }, - - /* Styles applied to the caption Typography components if `variant="caption"`. */ - caption: { - flexShrink: 0 - }, - // TODO v5: `.selectRoot` should be merged with `.input` - - /* Styles applied to the Select component root element. */ - selectRoot: { - marginRight: 32, - marginLeft: 8 - }, - - /* Styles applied to the Select component `select` class. */ - select: { - paddingLeft: 8, - paddingRight: 24, - textAlign: 'right', - textAlignLast: 'right' // Align on Chrome. - - }, - // TODO v5: remove - - /* Styles applied to the Select component `icon` class. */ - selectIcon: {}, - - /* Styles applied to the `InputBase` component. */ - input: { - color: 'inherit', - fontSize: 'inherit', - flexShrink: 0 - }, - - /* Styles applied to the MenuItem component. */ - menuItem: {}, - - /* Styles applied to the internal `TablePaginationActions` component. */ - actions: { - flexShrink: 0, - marginLeft: 20 - } - }; -}; - -var defaultLabelDisplayedRows = function defaultLabelDisplayedRows(_ref) { - var from = _ref.from, - to = _ref.to, - count = _ref.count; - return "".concat(from, "-").concat(to, " of ").concat(count !== -1 ? count : "more than ".concat(to)); -}; - -var defaultRowsPerPageOptions = [10, 25, 50, 100]; -/** - * A `TableCell` based component for placing inside `TableFooter` for pagination. - */ - -var TablePagination = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function TablePagination(props, ref) { - var _props$ActionsCompone = props.ActionsComponent, - ActionsComponent = _props$ActionsCompone === void 0 ? _TablePaginationActions__WEBPACK_IMPORTED_MODULE_4__["default"] : _props$ActionsCompone, - backIconButtonProps = props.backIconButtonProps, - _props$backIconButton = props.backIconButtonText, - backIconButtonText = _props$backIconButton === void 0 ? 'Previous page' : _props$backIconButton, - classes = props.classes, - className = props.className, - colSpanProp = props.colSpan, - _props$component = props.component, - Component = _props$component === void 0 ? _TableCell__WEBPACK_IMPORTED_MODULE_5__["default"] : _props$component, - count = props.count, - _props$labelDisplayed = props.labelDisplayedRows, - labelDisplayedRows = _props$labelDisplayed === void 0 ? defaultLabelDisplayedRows : _props$labelDisplayed, - _props$labelRowsPerPa = props.labelRowsPerPage, - labelRowsPerPage = _props$labelRowsPerPa === void 0 ? 'Rows per page:' : _props$labelRowsPerPa, - nextIconButtonProps = props.nextIconButtonProps, - _props$nextIconButton = props.nextIconButtonText, - nextIconButtonText = _props$nextIconButton === void 0 ? 'Next page' : _props$nextIconButton, - onChangePage = props.onChangePage, - onPageChange = props.onPageChange, - onChangeRowsPerPageProp = props.onChangeRowsPerPage, - onRowsPerPageChangeProp = props.onRowsPerPageChange, - page = props.page, - rowsPerPage = props.rowsPerPage, - _props$rowsPerPageOpt = props.rowsPerPageOptions, - rowsPerPageOptions = _props$rowsPerPageOpt === void 0 ? defaultRowsPerPageOptions : _props$rowsPerPageOpt, - _props$SelectProps = props.SelectProps, - SelectProps = _props$SelectProps === void 0 ? {} : _props$SelectProps, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["ActionsComponent", "backIconButtonProps", "backIconButtonText", "classes", "className", "colSpan", "component", "count", "labelDisplayedRows", "labelRowsPerPage", "nextIconButtonProps", "nextIconButtonText", "onChangePage", "onPageChange", "onChangeRowsPerPage", "onRowsPerPageChange", "page", "rowsPerPage", "rowsPerPageOptions", "SelectProps"]); - - var onChangeRowsPerPage = onChangeRowsPerPageProp || onRowsPerPageChangeProp; - var colSpan; - - if (Component === _TableCell__WEBPACK_IMPORTED_MODULE_5__["default"] || Component === 'td') { - colSpan = colSpanProp || 1000; // col-span over everything - } - - var selectId = (0,_utils_unstable_useId__WEBPACK_IMPORTED_MODULE_6__["default"])(); - var labelId = (0,_utils_unstable_useId__WEBPACK_IMPORTED_MODULE_6__["default"])(); - var MenuItemComponent = SelectProps.native ? 'option' : _MenuItem__WEBPACK_IMPORTED_MODULE_7__["default"]; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Component, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, className), - colSpan: colSpan, - ref: ref - }, other), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_Toolbar__WEBPACK_IMPORTED_MODULE_8__["default"], { - className: classes.toolbar - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { - className: classes.spacer - }), rowsPerPageOptions.length > 1 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_Typography__WEBPACK_IMPORTED_MODULE_9__["default"], { - color: "inherit", - variant: "body2", - className: classes.caption, - id: labelId - }, labelRowsPerPage), rowsPerPageOptions.length > 1 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_Select__WEBPACK_IMPORTED_MODULE_10__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - classes: { - select: classes.select, - icon: classes.selectIcon - }, - input: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_InputBase__WEBPACK_IMPORTED_MODULE_11__["default"], { - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.input, classes.selectRoot) - }), - value: rowsPerPage, - onChange: onChangeRowsPerPage, - id: selectId, - labelId: labelId - }, SelectProps), rowsPerPageOptions.map(function (rowsPerPageOption) { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(MenuItemComponent, { - className: classes.menuItem, - key: rowsPerPageOption.value ? rowsPerPageOption.value : rowsPerPageOption, - value: rowsPerPageOption.value ? rowsPerPageOption.value : rowsPerPageOption - }, rowsPerPageOption.label ? rowsPerPageOption.label : rowsPerPageOption); - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_Typography__WEBPACK_IMPORTED_MODULE_9__["default"], { - color: "inherit", - variant: "body2", - className: classes.caption - }, labelDisplayedRows({ - from: count === 0 ? 0 : page * rowsPerPage + 1, - to: count !== -1 ? Math.min(count, (page + 1) * rowsPerPage) : (page + 1) * rowsPerPage, - count: count === -1 ? -1 : count, - page: page - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(ActionsComponent, { - className: classes.actions, - backIconButtonProps: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - title: backIconButtonText, - 'aria-label': backIconButtonText - }, backIconButtonProps), - count: count, - nextIconButtonProps: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - title: nextIconButtonText, - 'aria-label': nextIconButtonText - }, nextIconButtonProps), - onChangePage: onChangePage, - onPageChange: onPageChange, - page: page, - rowsPerPage: rowsPerPage - }))); -}); - true ? TablePagination.propTypes = { - /** - * The component used for displaying the actions. - * Either a string to use a HTML element or a component. - */ - ActionsComponent: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().elementType), - - /** - * Props applied to the back arrow [`IconButton`](/api/icon-button/) component. - */ - backIconButtonProps: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().object), - - /** - * Text label for the back arrow icon button. - * - * For localization purposes, you can use the provided [translations](/guides/localization/). - */ - backIconButtonText: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().object.isRequired), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string), - - /** - * @ignore - */ - colSpan: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().number), - - /** - * The component used for the root node. - * Either a string to use a HTML element or a component. - */ - component: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().elementType), - - /** - * The total number of rows. - * - * To enable server side pagination for an unknown number of items, provide -1. - */ - count: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().number.isRequired), - - /** - * Customize the displayed rows label. Invoked with a `{ from, to, count, page }` - * object. - * - * For localization purposes, you can use the provided [translations](/guides/localization/). - */ - labelDisplayedRows: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func), - - /** - * Customize the rows per page label. - * - * For localization purposes, you can use the provided [translations](/guides/localization/). - */ - labelRowsPerPage: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().node), - - /** - * Props applied to the next arrow [`IconButton`](/api/icon-button/) element. - */ - nextIconButtonProps: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().object), - - /** - * Text label for the next arrow icon button. - * - * For localization purposes, you can use the provided [translations](/guides/localization/). - */ - nextIconButtonText: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string), - - /** - * Callback fired when the page is changed. - * - * @param {object} event The event source of the callback. - * @param {number} page The page selected. - * @deprecated Use the onPageChange prop instead. - */ - onChangePage: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_13__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_12___default().func), 'Use the `onPageChange` prop instead.'), - - /** - * Callback fired when the number of rows per page is changed. - * - * @param {object} event The event source of the callback. - * @deprecated Use the onRowsPerPageChange prop instead. - */ - onChangeRowsPerPage: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_13__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_12___default().func), 'Use the `onRowsPerPageChange` prop instead.'), - - /** - * Callback fired when the page is changed. - * - * @param {object} event The event source of the callback. - * @param {number} page The page selected. - */ - onPageChange: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func.isRequired), - - /** - * Callback fired when the number of rows per page is changed. - * - * @param {object} event The event source of the callback. - */ - onRowsPerPageChange: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func), - - /** - * The zero-based index of the current page. - */ - page: (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_14__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_12___default().number.isRequired), function (props) { - var count = props.count, - page = props.page, - rowsPerPage = props.rowsPerPage; - - if (count === -1) { - return null; - } - - var newLastPage = Math.max(0, Math.ceil(count / rowsPerPage) - 1); - - if (page < 0 || page > newLastPage) { - return new Error('Material-UI: The page prop of a TablePagination is out of range ' + "(0 to ".concat(newLastPage, ", but page is ").concat(page, ").")); - } - - return null; - }), - - /** - * The number of rows per page. - */ - rowsPerPage: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().number.isRequired), - - /** - * Customizes the options of the rows per page select field. If less than two options are - * available, no select field will be displayed. - */ - rowsPerPageOptions: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().array), - - /** - * Props applied to the rows per page [`Select`](/api/select/) element. - */ - SelectProps: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().object) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_15__["default"])(styles, { - name: 'MuiTablePagination' -})(TablePagination)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/TablePagination/TablePaginationActions.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var _internal_svg_icons_KeyboardArrowLeft__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/internal/svg-icons/KeyboardArrowLeft.js"); -/* harmony import */ var _internal_svg_icons_KeyboardArrowRight__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@material-ui/core/esm/internal/svg-icons/KeyboardArrowRight.js"); -/* harmony import */ var _styles_useTheme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/useTheme.js"); -/* harmony import */ var _IconButton__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/IconButton/IconButton.js"); - - - - - - - - -/** - * @ignore - internal component. - */ - -var _ref = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_internal_svg_icons_KeyboardArrowRight__WEBPACK_IMPORTED_MODULE_3__["default"], null); - -var _ref2 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_internal_svg_icons_KeyboardArrowLeft__WEBPACK_IMPORTED_MODULE_4__["default"], null); - -var _ref3 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_internal_svg_icons_KeyboardArrowLeft__WEBPACK_IMPORTED_MODULE_4__["default"], null); - -var _ref4 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_internal_svg_icons_KeyboardArrowRight__WEBPACK_IMPORTED_MODULE_3__["default"], null); - -var TablePaginationActions = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function TablePaginationActions(props, ref) { - var backIconButtonProps = props.backIconButtonProps, - count = props.count, - nextIconButtonProps = props.nextIconButtonProps, - _props$onChangePage = props.onChangePage, - onChangePage = _props$onChangePage === void 0 ? function () {} : _props$onChangePage, - _props$onPageChange = props.onPageChange, - onPageChange = _props$onPageChange === void 0 ? function () {} : _props$onPageChange, - page = props.page, - rowsPerPage = props.rowsPerPage, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["backIconButtonProps", "count", "nextIconButtonProps", "onChangePage", "onPageChange", "page", "rowsPerPage"]); - - var theme = (0,_styles_useTheme__WEBPACK_IMPORTED_MODULE_5__["default"])(); - - var handleBackButtonClick = function handleBackButtonClick(event) { - onChangePage(event, page - 1); - onPageChange(event, page - 1); - }; - - var handleNextButtonClick = function handleNextButtonClick(event) { - onChangePage(event, page + 1); - onPageChange(event, page + 1); - }; - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - ref: ref - }, other), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_IconButton__WEBPACK_IMPORTED_MODULE_6__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - onClick: handleBackButtonClick, - disabled: page === 0, - color: "inherit" - }, backIconButtonProps), theme.direction === 'rtl' ? _ref : _ref2), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_IconButton__WEBPACK_IMPORTED_MODULE_6__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - onClick: handleNextButtonClick, - disabled: count !== -1 ? page >= Math.ceil(count / rowsPerPage) - 1 : false, - color: "inherit" - }, nextIconButtonProps), theme.direction === 'rtl' ? _ref3 : _ref4)); -}); - true ? TablePaginationActions.propTypes = { - /** - * Props applied to the back arrow [`IconButton`](/api/icon-button/) element. - */ - backIconButtonProps: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object), - - /** - * The total number of rows. - */ - count: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().number.isRequired), - - /** - * Props applied to the next arrow [`IconButton`](/api/icon-button/) element. - */ - nextIconButtonProps: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object), - - /** - * Callback fired when the page is changed. - * - * @param {object} event The event source of the callback. - * @param {number} page The page selected. - */ - onChangePage: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), - - /** - * Callback fired when the page is changed. - * - * @param {object} event The event source of the callback. - * @param {number} page The page selected. - */ - onPageChange: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), - - /** - * The zero-based index of the current page. - */ - page: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().number.isRequired), - - /** - * The number of rows per page. - */ - rowsPerPage: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().number.isRequired) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TablePaginationActions); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/TextField/TextField.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("./node_modules/@material-ui/utils/esm/refType.js"); -/* harmony import */ var _utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/deprecatedPropType.js"); -/* harmony import */ var _Input__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/Input/Input.js"); -/* harmony import */ var _FilledInput__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/FilledInput/FilledInput.js"); -/* harmony import */ var _OutlinedInput__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/OutlinedInput/OutlinedInput.js"); -/* harmony import */ var _InputLabel__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/InputLabel/InputLabel.js"); -/* harmony import */ var _FormControl__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormControl/FormControl.js"); -/* harmony import */ var _FormHelperText__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormHelperText/FormHelperText.js"); -/* harmony import */ var _Select__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/core/esm/Select/Select.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); - - - - - - - - - - - - - - - -var variantComponent = { - standard: _Input__WEBPACK_IMPORTED_MODULE_4__["default"], - filled: _FilledInput__WEBPACK_IMPORTED_MODULE_5__["default"], - outlined: _OutlinedInput__WEBPACK_IMPORTED_MODULE_6__["default"] -}; -var styles = { - /* Styles applied to the root element. */ - root: {} -}; -/** - * The `TextField` is a convenience wrapper for the most common cases (80%). - * It cannot be all things to all people, otherwise the API would grow out of control. - * - * ## Advanced Configuration - * - * It's important to understand that the text field is a simple abstraction - * on top of the following components: - * - * - [FormControl](/api/form-control/) - * - [InputLabel](/api/input-label/) - * - [FilledInput](/api/filled-input/) - * - [OutlinedInput](/api/outlined-input/) - * - [Input](/api/input/) - * - [FormHelperText](/api/form-helper-text/) - * - * If you wish to alter the props applied to the `input` element, you can do so as follows: - * - * ```jsx - * const inputProps = { - * step: 300, - * }; - * - * return ; - * ``` - * - * For advanced cases, please look at the source of TextField by clicking on the - * "Edit this page" button above. Consider either: - * - * - using the upper case props for passing values directly to the components - * - using the underlying components directly as shown in the demos - */ - -var TextField = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function TextField(props, ref) { - var autoComplete = props.autoComplete, - _props$autoFocus = props.autoFocus, - autoFocus = _props$autoFocus === void 0 ? false : _props$autoFocus, - children = props.children, - classes = props.classes, - className = props.className, - _props$color = props.color, - color = _props$color === void 0 ? 'primary' : _props$color, - defaultValue = props.defaultValue, - _props$disabled = props.disabled, - disabled = _props$disabled === void 0 ? false : _props$disabled, - _props$error = props.error, - error = _props$error === void 0 ? false : _props$error, - FormHelperTextProps = props.FormHelperTextProps, - _props$fullWidth = props.fullWidth, - fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, - helperText = props.helperText, - hiddenLabel = props.hiddenLabel, - id = props.id, - InputLabelProps = props.InputLabelProps, - inputProps = props.inputProps, - InputProps = props.InputProps, - inputRef = props.inputRef, - label = props.label, - _props$multiline = props.multiline, - multiline = _props$multiline === void 0 ? false : _props$multiline, - name = props.name, - onBlur = props.onBlur, - onChange = props.onChange, - onFocus = props.onFocus, - placeholder = props.placeholder, - _props$required = props.required, - required = _props$required === void 0 ? false : _props$required, - rows = props.rows, - rowsMax = props.rowsMax, - maxRows = props.maxRows, - minRows = props.minRows, - _props$select = props.select, - select = _props$select === void 0 ? false : _props$select, - SelectProps = props.SelectProps, - type = props.type, - value = props.value, - _props$variant = props.variant, - variant = _props$variant === void 0 ? 'standard' : _props$variant, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["autoComplete", "autoFocus", "children", "classes", "className", "color", "defaultValue", "disabled", "error", "FormHelperTextProps", "fullWidth", "helperText", "hiddenLabel", "id", "InputLabelProps", "inputProps", "InputProps", "inputRef", "label", "multiline", "name", "onBlur", "onChange", "onFocus", "placeholder", "required", "rows", "rowsMax", "maxRows", "minRows", "select", "SelectProps", "type", "value", "variant"]); - - if (true) { - if (select && !children) { - console.error('Material-UI: `children` must be passed when using the `TextField` component with `select`.'); - } - } - - var InputMore = {}; - - if (variant === 'outlined') { - if (InputLabelProps && typeof InputLabelProps.shrink !== 'undefined') { - InputMore.notched = InputLabelProps.shrink; - } - - if (label) { - var _InputLabelProps$requ; - - var displayRequired = (_InputLabelProps$requ = InputLabelProps === null || InputLabelProps === void 0 ? void 0 : InputLabelProps.required) !== null && _InputLabelProps$requ !== void 0 ? _InputLabelProps$requ : required; - InputMore.label = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment, null, label, displayRequired && "\xA0*"); - } - } - - if (select) { - // unset defaults from textbox inputs - if (!SelectProps || !SelectProps.native) { - InputMore.id = undefined; - } - - InputMore['aria-describedby'] = undefined; - } - - var helperTextId = helperText && id ? "".concat(id, "-helper-text") : undefined; - var inputLabelId = label && id ? "".concat(id, "-label") : undefined; - var InputComponent = variantComponent[variant]; - var InputElement = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(InputComponent, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - "aria-describedby": helperTextId, - autoComplete: autoComplete, - autoFocus: autoFocus, - defaultValue: defaultValue, - fullWidth: fullWidth, - multiline: multiline, - name: name, - rows: rows, - rowsMax: rowsMax, - maxRows: maxRows, - minRows: minRows, - type: type, - value: value, - id: id, - inputRef: inputRef, - onBlur: onBlur, - onChange: onChange, - onFocus: onFocus, - placeholder: placeholder, - inputProps: inputProps - }, InputMore, InputProps)); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_FormControl__WEBPACK_IMPORTED_MODULE_7__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, className), - disabled: disabled, - error: error, - fullWidth: fullWidth, - hiddenLabel: hiddenLabel, - ref: ref, - required: required, - color: color, - variant: variant - }, other), label && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_InputLabel__WEBPACK_IMPORTED_MODULE_8__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - htmlFor: id, - id: inputLabelId - }, InputLabelProps), label), select ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_Select__WEBPACK_IMPORTED_MODULE_9__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - "aria-describedby": helperTextId, - id: id, - labelId: inputLabelId, - value: value, - input: InputElement - }, SelectProps), children) : InputElement, helperText && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_FormHelperText__WEBPACK_IMPORTED_MODULE_10__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - id: helperTextId - }, FormHelperTextProps), helperText)); -}); - true ? TextField.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * This prop helps users to fill forms faster, especially on mobile devices. - * The name can be confusing, as it's more like an autofill. - * You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill). - */ - autoComplete: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), - - /** - * If `true`, the `input` element will be focused during the first mount. - */ - autoFocus: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool), - - /** - * @ignore - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), - - /** - * The color of the component. It supports those theme colors that make sense for this component. - */ - color: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(['primary', 'secondary']), - - /** - * The default value of the `input` element. - */ - defaultValue: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().any), - - /** - * If `true`, the `input` element will be disabled. - */ - disabled: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool), - - /** - * If `true`, the label will be displayed in an error state. - */ - error: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool), - - /** - * Props applied to the [`FormHelperText`](/api/form-helper-text/) element. - */ - FormHelperTextProps: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), - - /** - * If `true`, the input will take up the full width of its container. - */ - fullWidth: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool), - - /** - * The helper text content. - */ - helperText: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().node), - - /** - * @ignore - */ - hiddenLabel: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool), - - /** - * The id of the `input` element. - * Use this prop to make `label` and `helperText` accessible for screen readers. - */ - id: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), - - /** - * Props applied to the [`InputLabel`](/api/input-label/) element. - */ - InputLabelProps: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), - - /** - * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element. - */ - inputProps: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), - - /** - * Props applied to the Input element. - * It will be a [`FilledInput`](/api/filled-input/), - * [`OutlinedInput`](/api/outlined-input/) or [`Input`](/api/input/) - * component depending on the `variant` prop value. - */ - InputProps: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), - - /** - * Pass a ref to the `input` element. - */ - inputRef: _material_ui_utils__WEBPACK_IMPORTED_MODULE_12__["default"], - - /** - * The label content. - */ - label: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().node), - - /** - * If `dense` or `normal`, will adjust vertical spacing of this and contained components. - */ - margin: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(['dense', 'none', 'normal']), - - /** - * Maximum number of rows to display when multiline option is set to true. - */ - maxRows: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)]), - - /** - * Minimum number of rows to display. - */ - minRows: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)]), - - /** - * If `true`, a textarea element will be rendered instead of an input. - */ - multiline: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool), - - /** - * Name attribute of the `input` element. - */ - name: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), - - /** - * @ignore - */ - onBlur: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), - - /** - * Callback fired when the value is changed. - * - * @param {object} event The event source of the callback. - * You can pull out the new value by accessing `event.target.value` (string). - */ - onChange: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), - - /** - * @ignore - */ - onFocus: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), - - /** - * The short hint displayed in the input before the user enters a value. - */ - placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), - - /** - * If `true`, the label is displayed as required and the `input` element` will be required. - */ - required: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool), - - /** - * Number of rows to display when multiline option is set to true. - * @deprecated Use `minRows` instead. - */ - rows: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_13__["default"])(prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)]), 'Use `minRows` instead'), - - /** - * Maximum number of rows to display. - * @deprecated Use `maxRows` instead. - */ - rowsMax: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_13__["default"])(prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)]), 'Use `maxRows` instead'), - - /** - * Render a [`Select`](/api/select/) element while passing the Input element to `Select` as `input` parameter. - * If this option is set you must pass the options of the select as children. - */ - select: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool), - - /** - * Props applied to the [`Select`](/api/select/) element. - */ - SelectProps: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), - - /** - * The size of the text field. - */ - size: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(['medium', 'small']), - - /** - * Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types). - */ - type: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), - - /** - * The value of the `input` element, required for a controlled component. - */ - value: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().any), - - /** - * The variant to use. - */ - variant: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(['filled', 'outlined', 'standard']) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_14__["default"])(styles, { - name: 'MuiTextField' -})(TextField)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/TextareaAutosize/TextareaAutosize.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _utils_debounce__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/debounce.js"); -/* harmony import */ var _utils_useForkRef__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useForkRef.js"); -/* harmony import */ var _utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/deprecatedPropType.js"); - - - - - - - - -function getStyleValue(computedStyle, property) { - return parseInt(computedStyle[property], 10) || 0; -} - -var useEnhancedEffect = typeof window !== 'undefined' ? react__WEBPACK_IMPORTED_MODULE_2__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_2__.useEffect; -var styles = { - /* Styles applied to the shadow textarea element. */ - shadow: { - // Visibility needed to hide the extra text area on iPads - visibility: 'hidden', - // Remove from the content flow - position: 'absolute', - // Ignore the scrollbar width - overflow: 'hidden', - height: 0, - top: 0, - left: 0, - // Create a new layer, increase the isolation of the computed values - transform: 'translateZ(0)' - } -}; -var TextareaAutosize = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function TextareaAutosize(props, ref) { - var onChange = props.onChange, - rows = props.rows, - rowsMax = props.rowsMax, - rowsMinProp = props.rowsMin, - maxRowsProp = props.maxRows, - _props$minRows = props.minRows, - minRowsProp = _props$minRows === void 0 ? 1 : _props$minRows, - style = props.style, - value = props.value, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["onChange", "rows", "rowsMax", "rowsMin", "maxRows", "minRows", "style", "value"]); - - var maxRows = maxRowsProp || rowsMax; - var minRows = rows || rowsMinProp || minRowsProp; - - var _React$useRef = react__WEBPACK_IMPORTED_MODULE_2__.useRef(value != null), - isControlled = _React$useRef.current; - - var inputRef = react__WEBPACK_IMPORTED_MODULE_2__.useRef(null); - var handleRef = (0,_utils_useForkRef__WEBPACK_IMPORTED_MODULE_3__["default"])(ref, inputRef); - var shadowRef = react__WEBPACK_IMPORTED_MODULE_2__.useRef(null); - var renders = react__WEBPACK_IMPORTED_MODULE_2__.useRef(0); - - var _React$useState = react__WEBPACK_IMPORTED_MODULE_2__.useState({}), - state = _React$useState[0], - setState = _React$useState[1]; - - var syncHeight = react__WEBPACK_IMPORTED_MODULE_2__.useCallback(function () { - var input = inputRef.current; - var computedStyle = window.getComputedStyle(input); - var inputShallow = shadowRef.current; - inputShallow.style.width = computedStyle.width; - inputShallow.value = input.value || props.placeholder || 'x'; - - if (inputShallow.value.slice(-1) === '\n') { - // Certain fonts which overflow the line height will cause the textarea - // to report a different scrollHeight depending on whether the last line - // is empty. Make it non-empty to avoid this issue. - inputShallow.value += ' '; - } - - var boxSizing = computedStyle['box-sizing']; - var padding = getStyleValue(computedStyle, 'padding-bottom') + getStyleValue(computedStyle, 'padding-top'); - var border = getStyleValue(computedStyle, 'border-bottom-width') + getStyleValue(computedStyle, 'border-top-width'); // The height of the inner content - - var innerHeight = inputShallow.scrollHeight - padding; // Measure height of a textarea with a single row - - inputShallow.value = 'x'; - var singleRowHeight = inputShallow.scrollHeight - padding; // The height of the outer content - - var outerHeight = innerHeight; - - if (minRows) { - outerHeight = Math.max(Number(minRows) * singleRowHeight, outerHeight); - } - - if (maxRows) { - outerHeight = Math.min(Number(maxRows) * singleRowHeight, outerHeight); - } - - outerHeight = Math.max(outerHeight, singleRowHeight); // Take the box sizing into account for applying this value as a style. - - var outerHeightStyle = outerHeight + (boxSizing === 'border-box' ? padding + border : 0); - var overflow = Math.abs(outerHeight - innerHeight) <= 1; - setState(function (prevState) { - // Need a large enough difference to update the height. - // This prevents infinite rendering loop. - if (renders.current < 20 && (outerHeightStyle > 0 && Math.abs((prevState.outerHeightStyle || 0) - outerHeightStyle) > 1 || prevState.overflow !== overflow)) { - renders.current += 1; - return { - overflow: overflow, - outerHeightStyle: outerHeightStyle - }; - } - - if (true) { - if (renders.current === 20) { - console.error(['Material-UI: Too many re-renders. The layout is unstable.', 'TextareaAutosize limits the number of renders to prevent an infinite loop.'].join('\n')); - } - } - - return prevState; - }); - }, [maxRows, minRows, props.placeholder]); - react__WEBPACK_IMPORTED_MODULE_2__.useEffect(function () { - var handleResize = (0,_utils_debounce__WEBPACK_IMPORTED_MODULE_4__["default"])(function () { - renders.current = 0; - syncHeight(); - }); - window.addEventListener('resize', handleResize); - return function () { - handleResize.clear(); - window.removeEventListener('resize', handleResize); - }; - }, [syncHeight]); - useEnhancedEffect(function () { - syncHeight(); - }); - react__WEBPACK_IMPORTED_MODULE_2__.useEffect(function () { - renders.current = 0; - }, [value]); - - var handleChange = function handleChange(event) { - renders.current = 0; - - if (!isControlled) { - syncHeight(); - } - - if (onChange) { - onChange(event); - } - }; - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("textarea", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - value: value, - onChange: handleChange, - ref: handleRef // Apply the rows prop to get a "correct" first SSR paint - , - rows: minRows, - style: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - height: state.outerHeightStyle, - // Need a large enough difference to allow scrolling. - // This prevents infinite rendering loop. - overflow: state.overflow ? 'hidden' : null - }, style) - }, other)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("textarea", { - "aria-hidden": true, - className: props.className, - readOnly: true, - ref: shadowRef, - tabIndex: -1, - style: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, styles.shadow, style) - })); -}); - true ? TextareaAutosize.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), - - /** - * Maximum number of rows to display. - */ - maxRows: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_5___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string)]), - - /** - * Minimum number of rows to display. - */ - minRows: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_5___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string)]), - - /** - * @ignore - */ - onChange: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().func), - - /** - * @ignore - */ - placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), - - /** - * Minimum number of rows to display. - * @deprecated Use `minRows` instead. - */ - rows: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_6__["default"])(prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_5___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string)]), 'Use `minRows` instead.'), - - /** - * Maximum number of rows to display. - * @deprecated Use `maxRows` instead. - */ - rowsMax: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_6__["default"])(prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_5___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string)]), 'Use `maxRows` instead.'), - - /** - * Minimum number of rows to display. - * @deprecated Use `minRows` instead. - */ - rowsMin: (0,_utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_6__["default"])(prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_5___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string)]), 'Use `minRows` instead.'), - - /** - * @ignore - */ - style: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object), - - /** - * @ignore - */ - value: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_5___default().string)), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string)]) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TextareaAutosize); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Toolbar/Toolbar.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); - - - - - - - -var styles = function styles(theme) { - return { - /* Styles applied to the root element. */ - root: { - position: 'relative', - display: 'flex', - alignItems: 'center' - }, - - /* Styles applied to the root element if `disableGutters={false}`. */ - gutters: (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__["default"])({ - paddingLeft: theme.spacing(2), - paddingRight: theme.spacing(2) - }, theme.breakpoints.up('sm'), { - paddingLeft: theme.spacing(3), - paddingRight: theme.spacing(3) - }), - - /* Styles applied to the root element if `variant="regular"`. */ - regular: theme.mixins.toolbar, - - /* Styles applied to the root element if `variant="dense"`. */ - dense: { - minHeight: 48 - } - }; -}; -var Toolbar = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.forwardRef(function Toolbar(props, ref) { - var classes = props.classes, - className = props.className, - _props$component = props.component, - Component = _props$component === void 0 ? 'div' : _props$component, - _props$disableGutters = props.disableGutters, - disableGutters = _props$disableGutters === void 0 ? false : _props$disableGutters, - _props$variant = props.variant, - variant = _props$variant === void 0 ? 'regular' : _props$variant, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["classes", "className", "component", "disableGutters", "variant"]); - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(Component, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_4__["default"])(classes.root, classes[variant], className, !disableGutters && classes.gutters), - ref: ref - }, other)); -}); - true ? Toolbar.propTypes = { - /** - * Toolbar children, usually a mixture of `IconButton`, `Button` and `Typography`. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object.isRequired), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), - - /** - * The component used for the root node. - * Either a string to use a HTML element or a component. - */ - component: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().elementType), - - /** - * If `true`, disables gutter padding. - */ - disableGutters: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - - /** - * The variant to use. - */ - variant: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOf(['regular', 'dense']) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_6__["default"])(styles, { - name: 'MuiToolbar' -})(Toolbar)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Tooltip/Tooltip.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles), -/* harmony export */ "testReset": () => (/* binding */ testReset) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/react-dom/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_18__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("./node_modules/@material-ui/utils/esm/deepmerge.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__("./node_modules/@material-ui/utils/esm/elementAcceptingRef.js"); -/* harmony import */ var _styles_colorManipulator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/colorManipulator.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _utils_capitalize__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/capitalize.js"); -/* harmony import */ var _Grow__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/core/esm/Grow/Grow.js"); -/* harmony import */ var _Popper__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/Popper/Popper.js"); -/* harmony import */ var _utils_useForkRef__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useForkRef.js"); -/* harmony import */ var _utils_unstable_useId__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/unstable_useId.js"); -/* harmony import */ var _utils_setRef__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/setRef.js"); -/* harmony import */ var _utils_useIsFocusVisible__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useIsFocusVisible.js"); -/* harmony import */ var _utils_useControlled__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useControlled.js"); -/* harmony import */ var _styles_useTheme__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/useTheme.js"); - - - - - - - - - - - - - - - - - - - - - -function round(value) { - return Math.round(value * 1e5) / 1e5; -} - -function arrowGenerator() { - return { - '&[x-placement*="bottom"] $arrow': { - top: 0, - left: 0, - marginTop: '-0.71em', - marginLeft: 4, - marginRight: 4, - '&::before': { - transformOrigin: '0 100%' - } - }, - '&[x-placement*="top"] $arrow': { - bottom: 0, - left: 0, - marginBottom: '-0.71em', - marginLeft: 4, - marginRight: 4, - '&::before': { - transformOrigin: '100% 0' - } - }, - '&[x-placement*="right"] $arrow': { - left: 0, - marginLeft: '-0.71em', - height: '1em', - width: '0.71em', - marginTop: 4, - marginBottom: 4, - '&::before': { - transformOrigin: '100% 100%' - } - }, - '&[x-placement*="left"] $arrow': { - right: 0, - marginRight: '-0.71em', - height: '1em', - width: '0.71em', - marginTop: 4, - marginBottom: 4, - '&::before': { - transformOrigin: '0 0' - } - } - }; -} - -var styles = function styles(theme) { - return { - /* Styles applied to the Popper component. */ - popper: { - zIndex: theme.zIndex.tooltip, - pointerEvents: 'none' // disable jss-rtl plugin - - }, - - /* Styles applied to the Popper component if `interactive={true}`. */ - popperInteractive: { - pointerEvents: 'auto' - }, - - /* Styles applied to the Popper component if `arrow={true}`. */ - popperArrow: arrowGenerator(), - - /* Styles applied to the tooltip (label wrapper) element. */ - tooltip: { - backgroundColor: (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_7__.alpha)(theme.palette.grey[700], 0.9), - borderRadius: theme.shape.borderRadius, - color: theme.palette.common.white, - fontFamily: theme.typography.fontFamily, - padding: '4px 8px', - fontSize: theme.typography.pxToRem(10), - lineHeight: "".concat(round(14 / 10), "em"), - maxWidth: 300, - wordWrap: 'break-word', - fontWeight: theme.typography.fontWeightMedium - }, - - /* Styles applied to the tooltip (label wrapper) element if `arrow={true}`. */ - tooltipArrow: { - position: 'relative', - margin: '0' - }, - - /* Styles applied to the arrow element. */ - arrow: { - overflow: 'hidden', - position: 'absolute', - width: '1em', - height: '0.71em' - /* = width / sqrt(2) = (length of the hypotenuse) */ - , - boxSizing: 'border-box', - color: (0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_7__.alpha)(theme.palette.grey[700], 0.9), - '&::before': { - content: '""', - margin: 'auto', - display: 'block', - width: '100%', - height: '100%', - backgroundColor: 'currentColor', - transform: 'rotate(45deg)' - } - }, - - /* Styles applied to the tooltip (label wrapper) element if the tooltip is opened by touch. */ - touch: { - padding: '8px 16px', - fontSize: theme.typography.pxToRem(14), - lineHeight: "".concat(round(16 / 14), "em"), - fontWeight: theme.typography.fontWeightRegular - }, - - /* Styles applied to the tooltip (label wrapper) element if `placement` contains "left". */ - tooltipPlacementLeft: (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__["default"])({ - transformOrigin: 'right center', - margin: '0 24px ' - }, theme.breakpoints.up('sm'), { - margin: '0 14px' - }), - - /* Styles applied to the tooltip (label wrapper) element if `placement` contains "right". */ - tooltipPlacementRight: (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__["default"])({ - transformOrigin: 'left center', - margin: '0 24px' - }, theme.breakpoints.up('sm'), { - margin: '0 14px' - }), - - /* Styles applied to the tooltip (label wrapper) element if `placement` contains "top". */ - tooltipPlacementTop: (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__["default"])({ - transformOrigin: 'center bottom', - margin: '24px 0' - }, theme.breakpoints.up('sm'), { - margin: '14px 0' - }), - - /* Styles applied to the tooltip (label wrapper) element if `placement` contains "bottom". */ - tooltipPlacementBottom: (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__["default"])({ - transformOrigin: 'center top', - margin: '24px 0' - }, theme.breakpoints.up('sm'), { - margin: '14px 0' - }) - }; -}; -var hystersisOpen = false; -var hystersisTimer = null; -function testReset() { - hystersisOpen = false; - clearTimeout(hystersisTimer); -} -var Tooltip = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.forwardRef(function Tooltip(props, ref) { - var _props$arrow = props.arrow, - arrow = _props$arrow === void 0 ? false : _props$arrow, - children = props.children, - classes = props.classes, - _props$disableFocusLi = props.disableFocusListener, - disableFocusListener = _props$disableFocusLi === void 0 ? false : _props$disableFocusLi, - _props$disableHoverLi = props.disableHoverListener, - disableHoverListener = _props$disableHoverLi === void 0 ? false : _props$disableHoverLi, - _props$disableTouchLi = props.disableTouchListener, - disableTouchListener = _props$disableTouchLi === void 0 ? false : _props$disableTouchLi, - _props$enterDelay = props.enterDelay, - enterDelay = _props$enterDelay === void 0 ? 100 : _props$enterDelay, - _props$enterNextDelay = props.enterNextDelay, - enterNextDelay = _props$enterNextDelay === void 0 ? 0 : _props$enterNextDelay, - _props$enterTouchDela = props.enterTouchDelay, - enterTouchDelay = _props$enterTouchDela === void 0 ? 700 : _props$enterTouchDela, - idProp = props.id, - _props$interactive = props.interactive, - interactive = _props$interactive === void 0 ? false : _props$interactive, - _props$leaveDelay = props.leaveDelay, - leaveDelay = _props$leaveDelay === void 0 ? 0 : _props$leaveDelay, - _props$leaveTouchDela = props.leaveTouchDelay, - leaveTouchDelay = _props$leaveTouchDela === void 0 ? 1500 : _props$leaveTouchDela, - onClose = props.onClose, - onOpen = props.onOpen, - openProp = props.open, - _props$placement = props.placement, - placement = _props$placement === void 0 ? 'bottom' : _props$placement, - _props$PopperComponen = props.PopperComponent, - PopperComponent = _props$PopperComponen === void 0 ? _Popper__WEBPACK_IMPORTED_MODULE_8__["default"] : _props$PopperComponen, - PopperProps = props.PopperProps, - title = props.title, - _props$TransitionComp = props.TransitionComponent, - TransitionComponent = _props$TransitionComp === void 0 ? _Grow__WEBPACK_IMPORTED_MODULE_9__["default"] : _props$TransitionComp, - TransitionProps = props.TransitionProps, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__["default"])(props, ["arrow", "children", "classes", "disableFocusListener", "disableHoverListener", "disableTouchListener", "enterDelay", "enterNextDelay", "enterTouchDelay", "id", "interactive", "leaveDelay", "leaveTouchDelay", "onClose", "onOpen", "open", "placement", "PopperComponent", "PopperProps", "title", "TransitionComponent", "TransitionProps"]); - - var theme = (0,_styles_useTheme__WEBPACK_IMPORTED_MODULE_10__["default"])(); - - var _React$useState = react__WEBPACK_IMPORTED_MODULE_4__.useState(), - childNode = _React$useState[0], - setChildNode = _React$useState[1]; - - var _React$useState2 = react__WEBPACK_IMPORTED_MODULE_4__.useState(null), - arrowRef = _React$useState2[0], - setArrowRef = _React$useState2[1]; - - var ignoreNonTouchEvents = react__WEBPACK_IMPORTED_MODULE_4__.useRef(false); - var closeTimer = react__WEBPACK_IMPORTED_MODULE_4__.useRef(); - var enterTimer = react__WEBPACK_IMPORTED_MODULE_4__.useRef(); - var leaveTimer = react__WEBPACK_IMPORTED_MODULE_4__.useRef(); - var touchTimer = react__WEBPACK_IMPORTED_MODULE_4__.useRef(); - - var _useControlled = (0,_utils_useControlled__WEBPACK_IMPORTED_MODULE_11__["default"])({ - controlled: openProp, - default: false, - name: 'Tooltip', - state: 'open' - }), - _useControlled2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_useControlled, 2), - openState = _useControlled2[0], - setOpenState = _useControlled2[1]; - - var open = openState; - - if (true) { - // eslint-disable-next-line react-hooks/rules-of-hooks - var _React$useRef = react__WEBPACK_IMPORTED_MODULE_4__.useRef(openProp !== undefined), - isControlled = _React$useRef.current; // eslint-disable-next-line react-hooks/rules-of-hooks - - - react__WEBPACK_IMPORTED_MODULE_4__.useEffect(function () { - if (childNode && childNode.disabled && !isControlled && title !== '' && childNode.tagName.toLowerCase() === 'button') { - console.error(['Material-UI: You are providing a disabled `button` child to the Tooltip component.', 'A disabled element does not fire events.', "Tooltip needs to listen to the child element's events to display the title.", '', 'Add a simple wrapper element, such as a `span`.'].join('\n')); - } - }, [title, childNode, isControlled]); - } - - var id = (0,_utils_unstable_useId__WEBPACK_IMPORTED_MODULE_12__["default"])(idProp); - react__WEBPACK_IMPORTED_MODULE_4__.useEffect(function () { - return function () { - clearTimeout(closeTimer.current); - clearTimeout(enterTimer.current); - clearTimeout(leaveTimer.current); - clearTimeout(touchTimer.current); - }; - }, []); - - var handleOpen = function handleOpen(event) { - clearTimeout(hystersisTimer); - hystersisOpen = true; // The mouseover event will trigger for every nested element in the tooltip. - // We can skip rerendering when the tooltip is already open. - // We are using the mouseover event instead of the mouseenter event to fix a hide/show issue. - - setOpenState(true); - - if (onOpen) { - onOpen(event); - } - }; - - var handleEnter = function handleEnter() { - var forward = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; - return function (event) { - var childrenProps = children.props; - - if (event.type === 'mouseover' && childrenProps.onMouseOver && forward) { - childrenProps.onMouseOver(event); - } - - if (ignoreNonTouchEvents.current && event.type !== 'touchstart') { - return; - } // Remove the title ahead of time. - // We don't want to wait for the next render commit. - // We would risk displaying two tooltips at the same time (native + this one). - - - if (childNode) { - childNode.removeAttribute('title'); - } - - clearTimeout(enterTimer.current); - clearTimeout(leaveTimer.current); - - if (enterDelay || hystersisOpen && enterNextDelay) { - event.persist(); - enterTimer.current = setTimeout(function () { - handleOpen(event); - }, hystersisOpen ? enterNextDelay : enterDelay); - } else { - handleOpen(event); - } - }; - }; - - var _useIsFocusVisible = (0,_utils_useIsFocusVisible__WEBPACK_IMPORTED_MODULE_13__["default"])(), - isFocusVisible = _useIsFocusVisible.isFocusVisible, - onBlurVisible = _useIsFocusVisible.onBlurVisible, - focusVisibleRef = _useIsFocusVisible.ref; - - var _React$useState3 = react__WEBPACK_IMPORTED_MODULE_4__.useState(false), - childIsFocusVisible = _React$useState3[0], - setChildIsFocusVisible = _React$useState3[1]; - - var handleBlur = function handleBlur() { - if (childIsFocusVisible) { - setChildIsFocusVisible(false); - onBlurVisible(); - } - }; - - var handleFocus = function handleFocus() { - var forward = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; - return function (event) { - // Workaround for https://github.com/facebook/react/issues/7769 - // The autoFocus of React might trigger the event before the componentDidMount. - // We need to account for this eventuality. - if (!childNode) { - setChildNode(event.currentTarget); - } - - if (isFocusVisible(event)) { - setChildIsFocusVisible(true); - handleEnter()(event); - } - - var childrenProps = children.props; - - if (childrenProps.onFocus && forward) { - childrenProps.onFocus(event); - } - }; - }; - - var handleClose = function handleClose(event) { - clearTimeout(hystersisTimer); - hystersisTimer = setTimeout(function () { - hystersisOpen = false; - }, 800 + leaveDelay); - setOpenState(false); - - if (onClose) { - onClose(event); - } - - clearTimeout(closeTimer.current); - closeTimer.current = setTimeout(function () { - ignoreNonTouchEvents.current = false; - }, theme.transitions.duration.shortest); - }; - - var handleLeave = function handleLeave() { - var forward = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; - return function (event) { - var childrenProps = children.props; - - if (event.type === 'blur') { - if (childrenProps.onBlur && forward) { - childrenProps.onBlur(event); - } - - handleBlur(); - } - - if (event.type === 'mouseleave' && childrenProps.onMouseLeave && event.currentTarget === childNode) { - childrenProps.onMouseLeave(event); - } - - clearTimeout(enterTimer.current); - clearTimeout(leaveTimer.current); - event.persist(); - leaveTimer.current = setTimeout(function () { - handleClose(event); - }, leaveDelay); - }; - }; - - var detectTouchStart = function detectTouchStart(event) { - ignoreNonTouchEvents.current = true; - var childrenProps = children.props; - - if (childrenProps.onTouchStart) { - childrenProps.onTouchStart(event); - } - }; - - var handleTouchStart = function handleTouchStart(event) { - detectTouchStart(event); - clearTimeout(leaveTimer.current); - clearTimeout(closeTimer.current); - clearTimeout(touchTimer.current); - event.persist(); - touchTimer.current = setTimeout(function () { - handleEnter()(event); - }, enterTouchDelay); - }; - - var handleTouchEnd = function handleTouchEnd(event) { - if (children.props.onTouchEnd) { - children.props.onTouchEnd(event); - } - - clearTimeout(touchTimer.current); - clearTimeout(leaveTimer.current); - event.persist(); - leaveTimer.current = setTimeout(function () { - handleClose(event); - }, leaveTouchDelay); - }; - - var handleUseRef = (0,_utils_useForkRef__WEBPACK_IMPORTED_MODULE_14__["default"])(setChildNode, ref); - var handleFocusRef = (0,_utils_useForkRef__WEBPACK_IMPORTED_MODULE_14__["default"])(focusVisibleRef, handleUseRef); // can be removed once we drop support for non ref forwarding class components - - var handleOwnRef = react__WEBPACK_IMPORTED_MODULE_4__.useCallback(function (instance) { - // #StrictMode ready - (0,_utils_setRef__WEBPACK_IMPORTED_MODULE_15__["default"])(handleFocusRef, react_dom__WEBPACK_IMPORTED_MODULE_5__.findDOMNode(instance)); - }, [handleFocusRef]); - var handleRef = (0,_utils_useForkRef__WEBPACK_IMPORTED_MODULE_14__["default"])(children.ref, handleOwnRef); // There is no point in displaying an empty tooltip. - - if (title === '') { - open = false; - } // For accessibility and SEO concerns, we render the title to the DOM node when - // the tooltip is hidden. However, we have made a tradeoff when - // `disableHoverListener` is set. This title logic is disabled. - // It's allowing us to keep the implementation size minimal. - // We are open to change the tradeoff. - - - var shouldShowNativeTitle = !open && !disableHoverListener; - - var childrenProps = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - 'aria-describedby': open ? id : null, - title: shouldShowNativeTitle && typeof title === 'string' ? title : null - }, other, children.props, { - className: (0,clsx__WEBPACK_IMPORTED_MODULE_6__["default"])(other.className, children.props.className), - onTouchStart: detectTouchStart, - ref: handleRef - }); - - var interactiveWrapperListeners = {}; - - if (!disableTouchListener) { - childrenProps.onTouchStart = handleTouchStart; - childrenProps.onTouchEnd = handleTouchEnd; - } - - if (!disableHoverListener) { - childrenProps.onMouseOver = handleEnter(); - childrenProps.onMouseLeave = handleLeave(); - - if (interactive) { - interactiveWrapperListeners.onMouseOver = handleEnter(false); - interactiveWrapperListeners.onMouseLeave = handleLeave(false); - } - } - - if (!disableFocusListener) { - childrenProps.onFocus = handleFocus(); - childrenProps.onBlur = handleLeave(); - - if (interactive) { - interactiveWrapperListeners.onFocus = handleFocus(false); - interactiveWrapperListeners.onBlur = handleLeave(false); - } - } - - if (true) { - if (children.props.title) { - console.error(['Material-UI: You have provided a `title` prop to the child of .', "Remove this title prop `".concat(children.props.title, "` or the Tooltip component.")].join('\n')); - } - } - - var mergedPopperProps = react__WEBPACK_IMPORTED_MODULE_4__.useMemo(function () { - return (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_16__["default"])({ - popperOptions: { - modifiers: { - arrow: { - enabled: Boolean(arrowRef), - element: arrowRef - } - } - } - }, PopperProps); - }, [arrowRef, PopperProps]); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(react__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.cloneElement(children, childrenProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(PopperComponent, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_6__["default"])(classes.popper, interactive && classes.popperInteractive, arrow && classes.popperArrow), - placement: placement, - anchorEl: childNode, - open: childNode ? open : false, - id: childrenProps['aria-describedby'], - transition: true - }, interactiveWrapperListeners, mergedPopperProps), function (_ref) { - var placementInner = _ref.placement, - TransitionPropsInner = _ref.TransitionProps; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(TransitionComponent, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - timeout: theme.transitions.duration.shorter - }, TransitionPropsInner, TransitionProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", { - className: (0,clsx__WEBPACK_IMPORTED_MODULE_6__["default"])(classes.tooltip, classes["tooltipPlacement".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_17__["default"])(placementInner.split('-')[0]))], ignoreNonTouchEvents.current && classes.touch, arrow && classes.tooltipArrow) - }, title, arrow ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement("span", { - className: classes.arrow, - ref: setArrowRef - }) : null)); - })); -}); - true ? Tooltip.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * If `true`, adds an arrow to the tooltip. - */ - arrow: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().bool), - - /** - * Tooltip reference element. - */ - children: _material_ui_utils__WEBPACK_IMPORTED_MODULE_19__["default"].isRequired, - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().string), - - /** - * Do not respond to focus events. - */ - disableFocusListener: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().bool), - - /** - * Do not respond to hover events. - */ - disableHoverListener: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().bool), - - /** - * Do not respond to long press touch events. - */ - disableTouchListener: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().bool), - - /** - * The number of milliseconds to wait before showing the tooltip. - * This prop won't impact the enter touch delay (`enterTouchDelay`). - */ - enterDelay: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().number), - - /** - * The number of milliseconds to wait before showing the tooltip when one was already recently opened. - */ - enterNextDelay: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().number), - - /** - * The number of milliseconds a user must touch the element before showing the tooltip. - */ - enterTouchDelay: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().number), - - /** - * This prop is used to help implement the accessibility logic. - * If you don't provide this prop. It falls back to a randomly generated id. - */ - id: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().string), - - /** - * Makes a tooltip interactive, i.e. will not close when the user - * hovers over the tooltip before the `leaveDelay` is expired. - */ - interactive: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().bool), - - /** - * The number of milliseconds to wait before hiding the tooltip. - * This prop won't impact the leave touch delay (`leaveTouchDelay`). - */ - leaveDelay: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().number), - - /** - * The number of milliseconds after the user stops touching an element before hiding the tooltip. - */ - leaveTouchDelay: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().number), - - /** - * Callback fired when the component requests to be closed. - * - * @param {object} event The event source of the callback. - */ - onClose: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().func), - - /** - * Callback fired when the component requests to be open. - * - * @param {object} event The event source of the callback. - */ - onOpen: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().func), - - /** - * If `true`, the tooltip is shown. - */ - open: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().bool), - - /** - * Tooltip placement. - */ - placement: prop_types__WEBPACK_IMPORTED_MODULE_18___default().oneOf(['bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']), - - /** - * The component used for the popper. - */ - PopperComponent: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().elementType), - - /** - * Props applied to the [`Popper`](/api/popper/) element. - */ - PopperProps: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().object), - - /** - * Tooltip title. Zero-length titles string are never displayed. - */ - title: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().node.isRequired), - - /** - * The component used for the transition. - * [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component. - */ - TransitionComponent: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().elementType), - - /** - * Props applied to the [`Transition`](http://reactcommunity.org/react-transition-group/transition#Transition-props) element. - */ - TransitionProps: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().object) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_20__["default"])(styles, { - name: 'MuiTooltip', - flip: false -})(Tooltip)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Typography/Typography.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _utils_capitalize__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/capitalize.js"); - - - - - - - -var styles = function styles(theme) { - return { - /* Styles applied to the root element. */ - root: { - margin: 0 - }, - - /* Styles applied to the root element if `variant="body2"`. */ - body2: theme.typography.body2, - - /* Styles applied to the root element if `variant="body1"`. */ - body1: theme.typography.body1, - - /* Styles applied to the root element if `variant="caption"`. */ - caption: theme.typography.caption, - - /* Styles applied to the root element if `variant="button"`. */ - button: theme.typography.button, - - /* Styles applied to the root element if `variant="h1"`. */ - h1: theme.typography.h1, - - /* Styles applied to the root element if `variant="h2"`. */ - h2: theme.typography.h2, - - /* Styles applied to the root element if `variant="h3"`. */ - h3: theme.typography.h3, - - /* Styles applied to the root element if `variant="h4"`. */ - h4: theme.typography.h4, - - /* Styles applied to the root element if `variant="h5"`. */ - h5: theme.typography.h5, - - /* Styles applied to the root element if `variant="h6"`. */ - h6: theme.typography.h6, - - /* Styles applied to the root element if `variant="subtitle1"`. */ - subtitle1: theme.typography.subtitle1, - - /* Styles applied to the root element if `variant="subtitle2"`. */ - subtitle2: theme.typography.subtitle2, - - /* Styles applied to the root element if `variant="overline"`. */ - overline: theme.typography.overline, - - /* Styles applied to the root element if `variant="srOnly"`. Only accessible to screen readers. */ - srOnly: { - position: 'absolute', - height: 1, - width: 1, - overflow: 'hidden' - }, - - /* Styles applied to the root element if `align="left"`. */ - alignLeft: { - textAlign: 'left' - }, - - /* Styles applied to the root element if `align="center"`. */ - alignCenter: { - textAlign: 'center' - }, - - /* Styles applied to the root element if `align="right"`. */ - alignRight: { - textAlign: 'right' - }, - - /* Styles applied to the root element if `align="justify"`. */ - alignJustify: { - textAlign: 'justify' - }, - - /* Styles applied to the root element if `nowrap={true}`. */ - noWrap: { - overflow: 'hidden', - textOverflow: 'ellipsis', - whiteSpace: 'nowrap' - }, - - /* Styles applied to the root element if `gutterBottom={true}`. */ - gutterBottom: { - marginBottom: '0.35em' - }, - - /* Styles applied to the root element if `paragraph={true}`. */ - paragraph: { - marginBottom: 16 - }, - - /* Styles applied to the root element if `color="inherit"`. */ - colorInherit: { - color: 'inherit' - }, - - /* Styles applied to the root element if `color="primary"`. */ - colorPrimary: { - color: theme.palette.primary.main - }, - - /* Styles applied to the root element if `color="secondary"`. */ - colorSecondary: { - color: theme.palette.secondary.main - }, - - /* Styles applied to the root element if `color="textPrimary"`. */ - colorTextPrimary: { - color: theme.palette.text.primary - }, - - /* Styles applied to the root element if `color="textSecondary"`. */ - colorTextSecondary: { - color: theme.palette.text.secondary - }, - - /* Styles applied to the root element if `color="error"`. */ - colorError: { - color: theme.palette.error.main - }, - - /* Styles applied to the root element if `display="inline"`. */ - displayInline: { - display: 'inline' - }, - - /* Styles applied to the root element if `display="block"`. */ - displayBlock: { - display: 'block' - } - }; -}; -var defaultVariantMapping = { - h1: 'h1', - h2: 'h2', - h3: 'h3', - h4: 'h4', - h5: 'h5', - h6: 'h6', - subtitle1: 'h6', - subtitle2: 'h6', - body1: 'p', - body2: 'p' -}; -var Typography = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function Typography(props, ref) { - var _props$align = props.align, - align = _props$align === void 0 ? 'inherit' : _props$align, - classes = props.classes, - className = props.className, - _props$color = props.color, - color = _props$color === void 0 ? 'initial' : _props$color, - component = props.component, - _props$display = props.display, - display = _props$display === void 0 ? 'initial' : _props$display, - _props$gutterBottom = props.gutterBottom, - gutterBottom = _props$gutterBottom === void 0 ? false : _props$gutterBottom, - _props$noWrap = props.noWrap, - noWrap = _props$noWrap === void 0 ? false : _props$noWrap, - _props$paragraph = props.paragraph, - paragraph = _props$paragraph === void 0 ? false : _props$paragraph, - _props$variant = props.variant, - variant = _props$variant === void 0 ? 'body1' : _props$variant, - _props$variantMapping = props.variantMapping, - variantMapping = _props$variantMapping === void 0 ? defaultVariantMapping : _props$variantMapping, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["align", "classes", "className", "color", "component", "display", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"]); - - var Component = component || (paragraph ? 'p' : variantMapping[variant] || defaultVariantMapping[variant]) || 'span'; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Component, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, className, variant !== 'inherit' && classes[variant], color !== 'initial' && classes["color".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_4__["default"])(color))], noWrap && classes.noWrap, gutterBottom && classes.gutterBottom, paragraph && classes.paragraph, align !== 'inherit' && classes["align".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_4__["default"])(align))], display !== 'initial' && classes["display".concat((0,_utils_capitalize__WEBPACK_IMPORTED_MODULE_4__["default"])(display))]), - ref: ref - }, other)); -}); - true ? Typography.propTypes = { - /** - * Set the text-align on the component. - */ - align: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOf(['inherit', 'left', 'center', 'right', 'justify']), - - /** - * The content of the component. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object.isRequired), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), - - /** - * The color of the component. It supports those theme colors that make sense for this component. - */ - color: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOf(['initial', 'inherit', 'primary', 'secondary', 'textPrimary', 'textSecondary', 'error']), - - /** - * The component used for the root node. - * Either a string to use a HTML element or a component. - * Overrides the behavior of the `variantMapping` prop. - */ - component: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().elementType), - - /** - * Controls the display type - */ - display: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOf(['initial', 'block', 'inline']), - - /** - * If `true`, the text will have a bottom margin. - */ - gutterBottom: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - - /** - * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis. - * - * Note that text overflow can only happen with block or inline-block level elements - * (the element needs to have a width in order to overflow). - */ - noWrap: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - - /** - * If `true`, the text will have a bottom margin. - */ - paragraph: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - - /** - * Applies the theme typography styles. - */ - variant: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOf(['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'subtitle1', 'subtitle2', 'body1', 'body2', 'caption', 'button', 'overline', 'srOnly', 'inherit']), - - /** - * The component maps the variant prop to a range of different HTML element types. - * For instance, subtitle1 to ``. - * If you wish to change that mapping, you can provide your own. - * Alternatively, you can use the `component` prop. - */ - variantMapping: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_6__["default"])(styles, { - name: 'MuiTypography' -})(Typography)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/Unstable_TrapFocus/Unstable_TrapFocus.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/react-dom/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _utils_ownerDocument__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/ownerDocument.js"); -/* harmony import */ var _utils_useForkRef__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useForkRef.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/utils/esm/exactProp.js"); -/* eslint-disable consistent-return, jsx-a11y/no-noninteractive-tabindex, camelcase */ - - - - - - -/** - * Utility component that locks focus inside the component. - */ - -function Unstable_TrapFocus(props) { - var children = props.children, - _props$disableAutoFoc = props.disableAutoFocus, - disableAutoFocus = _props$disableAutoFoc === void 0 ? false : _props$disableAutoFoc, - _props$disableEnforce = props.disableEnforceFocus, - disableEnforceFocus = _props$disableEnforce === void 0 ? false : _props$disableEnforce, - _props$disableRestore = props.disableRestoreFocus, - disableRestoreFocus = _props$disableRestore === void 0 ? false : _props$disableRestore, - getDoc = props.getDoc, - isEnabled = props.isEnabled, - open = props.open; - var ignoreNextEnforceFocus = react__WEBPACK_IMPORTED_MODULE_0__.useRef(); - var sentinelStart = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null); - var sentinelEnd = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null); - var nodeToRestore = react__WEBPACK_IMPORTED_MODULE_0__.useRef(); - var rootRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null); // can be removed once we drop support for non ref forwarding class components - - var handleOwnRef = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function (instance) { - // #StrictMode ready - rootRef.current = react_dom__WEBPACK_IMPORTED_MODULE_1__.findDOMNode(instance); - }, []); - var handleRef = (0,_utils_useForkRef__WEBPACK_IMPORTED_MODULE_2__["default"])(children.ref, handleOwnRef); - var prevOpenRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(); - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () { - prevOpenRef.current = open; - }, [open]); - - if (!prevOpenRef.current && open && typeof window !== 'undefined') { - // WARNING: Potentially unsafe in concurrent mode. - // The way the read on `nodeToRestore` is setup could make this actually safe. - // Say we render `open={false}` -> `open={true}` but never commit. - // We have now written a state that wasn't committed. But no committed effect - // will read this wrong value. We only read from `nodeToRestore` in effects - // that were committed on `open={true}` - // WARNING: Prevents the instance from being garbage collected. Should only - // hold a weak ref. - nodeToRestore.current = getDoc().activeElement; - } - - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () { - if (!open) { - return; - } - - var doc = (0,_utils_ownerDocument__WEBPACK_IMPORTED_MODULE_3__["default"])(rootRef.current); // We might render an empty child. - - if (!disableAutoFocus && rootRef.current && !rootRef.current.contains(doc.activeElement)) { - if (!rootRef.current.hasAttribute('tabIndex')) { - if (true) { - console.error(['Material-UI: The modal content node does not accept focus.', 'For the benefit of assistive technologies, ' + 'the tabIndex of the node is being set to "-1".'].join('\n')); - } - - rootRef.current.setAttribute('tabIndex', -1); - } - - rootRef.current.focus(); - } - - var contain = function contain() { - var rootElement = rootRef.current; // Cleanup functions are executed lazily in React 17. - // Contain can be called between the component being unmounted and its cleanup function being run. - - if (rootElement === null) { - return; - } - - if (!doc.hasFocus() || disableEnforceFocus || !isEnabled() || ignoreNextEnforceFocus.current) { - ignoreNextEnforceFocus.current = false; - return; - } - - if (rootRef.current && !rootRef.current.contains(doc.activeElement)) { - rootRef.current.focus(); - } - }; - - var loopFocus = function loopFocus(event) { - // 9 = Tab - if (disableEnforceFocus || !isEnabled() || event.keyCode !== 9) { - return; - } // Make sure the next tab starts from the right place. - - - if (doc.activeElement === rootRef.current) { - // We need to ignore the next contain as - // it will try to move the focus back to the rootRef element. - ignoreNextEnforceFocus.current = true; - - if (event.shiftKey) { - sentinelEnd.current.focus(); - } else { - sentinelStart.current.focus(); - } - } - }; - - doc.addEventListener('focus', contain, true); - doc.addEventListener('keydown', loopFocus, true); // With Edge, Safari and Firefox, no focus related events are fired when the focused area stops being a focused area - // e.g. https://bugzilla.mozilla.org/show_bug.cgi?id=559561. - // - // The whatwg spec defines how the browser should behave but does not explicitly mention any events: - // https://html.spec.whatwg.org/multipage/interaction.html#focus-fixup-rule. - - var interval = setInterval(function () { - contain(); - }, 50); - return function () { - clearInterval(interval); - doc.removeEventListener('focus', contain, true); - doc.removeEventListener('keydown', loopFocus, true); // restoreLastFocus() - - if (!disableRestoreFocus) { - // In IE 11 it is possible for document.activeElement to be null resulting - // in nodeToRestore.current being null. - // Not all elements in IE 11 have a focus method. - // Once IE 11 support is dropped the focus() call can be unconditional. - if (nodeToRestore.current && nodeToRestore.current.focus) { - nodeToRestore.current.focus(); - } - - nodeToRestore.current = null; - } - }; - }, [disableAutoFocus, disableEnforceFocus, disableRestoreFocus, isEnabled, open]); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { - tabIndex: 0, - ref: sentinelStart, - "data-test": "sentinelStart" - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(children, { - ref: handleRef - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { - tabIndex: 0, - ref: sentinelEnd, - "data-test": "sentinelEnd" - })); -} - - true ? Unstable_TrapFocus.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * A single child content element. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().node), - - /** - * If `true`, the trap focus will not automatically shift focus to itself when it opens, and - * replace it to the last focused element when it closes. - * This also works correctly with any trap focus children that have the `disableAutoFocus` prop. - * - * Generally this should never be set to `true` as it makes the trap focus less - * accessible to assistive technologies, like screen readers. - */ - disableAutoFocus: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool), - - /** - * If `true`, the trap focus will not prevent focus from leaving the trap focus while open. - * - * Generally this should never be set to `true` as it makes the trap focus less - * accessible to assistive technologies, like screen readers. - */ - disableEnforceFocus: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool), - - /** - * If `true`, the trap focus will not restore focus to previously focused element once - * trap focus is hidden. - */ - disableRestoreFocus: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool), - - /** - * Return the document to consider. - * We use it to implement the restore focus between different browser documents. - */ - getDoc: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func.isRequired), - - /** - * Do we still want to enforce the focus? - * This prop helps nesting TrapFocus elements. - */ - isEnabled: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func.isRequired), - - /** - * If `true`, focus will be locked. - */ - open: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool.isRequired) -} : 0; - -if (true) { - // eslint-disable-next-line - Unstable_TrapFocus['propTypes' + ''] = (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_5__["default"])(Unstable_TrapFocus.propTypes); -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Unstable_TrapFocus); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/colors/blue.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -var blue = { - 50: '#e3f2fd', - 100: '#bbdefb', - 200: '#90caf9', - 300: '#64b5f6', - 400: '#42a5f5', - 500: '#2196f3', - 600: '#1e88e5', - 700: '#1976d2', - 800: '#1565c0', - 900: '#0d47a1', - A100: '#82b1ff', - A200: '#448aff', - A400: '#2979ff', - A700: '#2962ff' -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (blue); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/colors/common.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -var common = { - black: '#000', - white: '#fff' -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (common); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/colors/green.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -var green = { - 50: '#e8f5e9', - 100: '#c8e6c9', - 200: '#a5d6a7', - 300: '#81c784', - 400: '#66bb6a', - 500: '#4caf50', - 600: '#43a047', - 700: '#388e3c', - 800: '#2e7d32', - 900: '#1b5e20', - A100: '#b9f6ca', - A200: '#69f0ae', - A400: '#00e676', - A700: '#00c853' -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (green); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/colors/grey.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -var grey = { - 50: '#fafafa', - 100: '#f5f5f5', - 200: '#eeeeee', - 300: '#e0e0e0', - 400: '#bdbdbd', - 500: '#9e9e9e', - 600: '#757575', - 700: '#616161', - 800: '#424242', - 900: '#212121', - A100: '#d5d5d5', - A200: '#aaaaaa', - A400: '#303030', - A700: '#616161' -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (grey); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/colors/indigo.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -var indigo = { - 50: '#e8eaf6', - 100: '#c5cae9', - 200: '#9fa8da', - 300: '#7986cb', - 400: '#5c6bc0', - 500: '#3f51b5', - 600: '#3949ab', - 700: '#303f9f', - 800: '#283593', - 900: '#1a237e', - A100: '#8c9eff', - A200: '#536dfe', - A400: '#3d5afe', - A700: '#304ffe' -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (indigo); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/colors/orange.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -var orange = { - 50: '#fff3e0', - 100: '#ffe0b2', - 200: '#ffcc80', - 300: '#ffb74d', - 400: '#ffa726', - 500: '#ff9800', - 600: '#fb8c00', - 700: '#f57c00', - 800: '#ef6c00', - 900: '#e65100', - A100: '#ffd180', - A200: '#ffab40', - A400: '#ff9100', - A700: '#ff6d00' -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (orange); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/colors/pink.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -var pink = { - 50: '#fce4ec', - 100: '#f8bbd0', - 200: '#f48fb1', - 300: '#f06292', - 400: '#ec407a', - 500: '#e91e63', - 600: '#d81b60', - 700: '#c2185b', - 800: '#ad1457', - 900: '#880e4f', - A100: '#ff80ab', - A200: '#ff4081', - A400: '#f50057', - A700: '#c51162' -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (pink); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/colors/red.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -var red = { - 50: '#ffebee', - 100: '#ffcdd2', - 200: '#ef9a9a', - 300: '#e57373', - 400: '#ef5350', - 500: '#f44336', - 600: '#e53935', - 700: '#d32f2f', - 800: '#c62828', - 900: '#b71c1c', - A100: '#ff8a80', - A200: '#ff5252', - A400: '#ff1744', - A700: '#d50000' -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (red); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/internal/SwitchBase.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/utils/esm/refType.js"); -/* harmony import */ var _utils_useControlled__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useControlled.js"); -/* harmony import */ var _FormControl_useFormControl__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormControl/useFormControl.js"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _IconButton__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/IconButton/IconButton.js"); - - - - - - - - - - - -var styles = { - root: { - padding: 9 - }, - checked: {}, - disabled: {}, - input: { - cursor: 'inherit', - position: 'absolute', - opacity: 0, - width: '100%', - height: '100%', - top: 0, - left: 0, - margin: 0, - padding: 0, - zIndex: 1 - } -}; -/** - * @ignore - internal component. - */ - -var SwitchBase = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.forwardRef(function SwitchBase(props, ref) { - var autoFocus = props.autoFocus, - checkedProp = props.checked, - checkedIcon = props.checkedIcon, - classes = props.classes, - className = props.className, - defaultChecked = props.defaultChecked, - disabledProp = props.disabled, - icon = props.icon, - id = props.id, - inputProps = props.inputProps, - inputRef = props.inputRef, - name = props.name, - onBlur = props.onBlur, - onChange = props.onChange, - onFocus = props.onFocus, - readOnly = props.readOnly, - required = props.required, - tabIndex = props.tabIndex, - type = props.type, - value = props.value, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__["default"])(props, ["autoFocus", "checked", "checkedIcon", "classes", "className", "defaultChecked", "disabled", "icon", "id", "inputProps", "inputRef", "name", "onBlur", "onChange", "onFocus", "readOnly", "required", "tabIndex", "type", "value"]); - - var _useControlled = (0,_utils_useControlled__WEBPACK_IMPORTED_MODULE_5__["default"])({ - controlled: checkedProp, - default: Boolean(defaultChecked), - name: 'SwitchBase', - state: 'checked' - }), - _useControlled2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_useControlled, 2), - checked = _useControlled2[0], - setCheckedState = _useControlled2[1]; - - var muiFormControl = (0,_FormControl_useFormControl__WEBPACK_IMPORTED_MODULE_6__["default"])(); - - var handleFocus = function handleFocus(event) { - if (onFocus) { - onFocus(event); - } - - if (muiFormControl && muiFormControl.onFocus) { - muiFormControl.onFocus(event); - } - }; - - var handleBlur = function handleBlur(event) { - if (onBlur) { - onBlur(event); - } - - if (muiFormControl && muiFormControl.onBlur) { - muiFormControl.onBlur(event); - } - }; - - var handleInputChange = function handleInputChange(event) { - var newChecked = event.target.checked; - setCheckedState(newChecked); - - if (onChange) { - // TODO v5: remove the second argument. - onChange(event, newChecked); - } - }; - - var disabled = disabledProp; - - if (muiFormControl) { - if (typeof disabled === 'undefined') { - disabled = muiFormControl.disabled; - } - } - - var hasLabelFor = type === 'checkbox' || type === 'radio'; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(_IconButton__WEBPACK_IMPORTED_MODULE_7__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - component: "span", - className: (0,clsx__WEBPACK_IMPORTED_MODULE_4__["default"])(classes.root, className, checked && classes.checked, disabled && classes.disabled), - disabled: disabled, - tabIndex: null, - role: undefined, - onFocus: handleFocus, - onBlur: handleBlur, - ref: ref - }, other), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("input", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - autoFocus: autoFocus, - checked: checkedProp, - defaultChecked: defaultChecked, - className: classes.input, - disabled: disabled, - id: hasLabelFor && id, - name: name, - onChange: handleInputChange, - readOnly: readOnly, - ref: inputRef, - required: required, - tabIndex: tabIndex, - type: type, - value: value - }, inputProps)), checked ? checkedIcon : icon); -}); // NB: If changed, please update Checkbox, Switch and Radio -// so that the API documentation is updated. - - true ? SwitchBase.propTypes = { - /** - * If `true`, the `input` element will be focused during the first mount. - */ - autoFocus: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool), - - /** - * If `true`, the component is checked. - */ - checked: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool), - - /** - * The icon to display when the component is checked. - */ - checkedIcon: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().node.isRequired), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object.isRequired), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string), - - /** - * @ignore - */ - defaultChecked: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool), - - /** - * If `true`, the switch will be disabled. - */ - disabled: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool), - - /** - * The icon to display when the component is unchecked. - */ - icon: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().node.isRequired), - - /** - * The id of the `input` element. - */ - id: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string), - - /** - * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element. - */ - inputProps: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object), - - /** - * Pass a ref to the `input` element. - */ - inputRef: _material_ui_utils__WEBPACK_IMPORTED_MODULE_9__["default"], - - /* - * @ignore - */ - name: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string), - - /** - * @ignore - */ - onBlur: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func), - - /** - * Callback fired when the state is changed. - * - * @param {object} event The event source of the callback. - * You can pull out the new checked state by accessing `event.target.checked` (boolean). - */ - onChange: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func), - - /** - * @ignore - */ - onFocus: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func), - - /** - * It prevents the user from changing the value of the field - * (not from interacting with the field). - */ - readOnly: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool), - - /** - * If `true`, the `input` element will be required. - */ - required: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool), - - /** - * @ignore - */ - tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)]), - - /** - * The input component prop `type`. - */ - type: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string.isRequired), - - /** - * The value of the component. - */ - value: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().any) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_10__["default"])(styles, { - name: 'PrivateSwitchBase' -})(SwitchBase)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/internal/svg-icons/ArrowDropDown.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _utils_createSvgIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/createSvgIcon.js"); - - -/** - * @ignore - internal component. - */ - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_utils_createSvgIcon__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", { - d: "M7 10l5 5 5-5z" -}), 'ArrowDropDown')); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/internal/svg-icons/Cancel.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _utils_createSvgIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/createSvgIcon.js"); - - -/** - * @ignore - internal component. - */ - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_utils_createSvgIcon__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", { - d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z" -}), 'Cancel')); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/internal/svg-icons/CheckBox.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _utils_createSvgIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/createSvgIcon.js"); - - -/** - * @ignore - internal component. - */ - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_utils_createSvgIcon__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", { - d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" -}), 'CheckBox')); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/internal/svg-icons/CheckBoxOutlineBlank.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _utils_createSvgIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/createSvgIcon.js"); - - -/** - * @ignore - internal component. - */ - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_utils_createSvgIcon__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", { - d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" -}), 'CheckBoxOutlineBlank')); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/internal/svg-icons/IndeterminateCheckBox.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _utils_createSvgIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/createSvgIcon.js"); - - -/** - * @ignore - internal component. - */ - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_utils_createSvgIcon__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", { - d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z" -}), 'IndeterminateCheckBox')); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/internal/svg-icons/KeyboardArrowLeft.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _utils_createSvgIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/createSvgIcon.js"); - - -/** - * @ignore - internal component. - */ - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_utils_createSvgIcon__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", { - d: "M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z" -}), 'KeyboardArrowLeft')); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/internal/svg-icons/KeyboardArrowRight.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _utils_createSvgIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/createSvgIcon.js"); - - -/** - * @ignore - internal component. - */ - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_utils_createSvgIcon__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", { - d: "M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z" -}), 'KeyboardArrowRight')); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/styles/colorManipulator.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "alpha": () => (/* binding */ alpha), -/* harmony export */ "darken": () => (/* binding */ darken), -/* harmony export */ "decomposeColor": () => (/* binding */ decomposeColor), -/* harmony export */ "emphasize": () => (/* binding */ emphasize), -/* harmony export */ "fade": () => (/* binding */ fade), -/* harmony export */ "getContrastRatio": () => (/* binding */ getContrastRatio), -/* harmony export */ "getLuminance": () => (/* binding */ getLuminance), -/* harmony export */ "hexToRgb": () => (/* binding */ hexToRgb), -/* harmony export */ "hslToRgb": () => (/* binding */ hslToRgb), -/* harmony export */ "lighten": () => (/* binding */ lighten), -/* harmony export */ "recomposeColor": () => (/* binding */ recomposeColor), -/* harmony export */ "rgbToHex": () => (/* binding */ rgbToHex) -/* harmony export */ }); - - -/* eslint-disable no-use-before-define */ - -/** - * Returns a number whose value is limited to the given range. - * - * @param {number} value The value to be clamped - * @param {number} min The lower boundary of the output range - * @param {number} max The upper boundary of the output range - * @returns {number} A number in the range [min, max] - */ -function clamp(value) { - var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1; - - if (true) { - if (value < min || value > max) { - console.error("Material-UI: The value provided ".concat(value, " is out of range [").concat(min, ", ").concat(max, "].")); - } - } - - return Math.min(Math.max(min, value), max); -} -/** - * Converts a color from CSS hex format to CSS rgb format. - * - * @param {string} color - Hex color, i.e. #nnn or #nnnnnn - * @returns {string} A CSS rgb color string - */ - - -function hexToRgb(color) { - color = color.substr(1); - var re = new RegExp(".{1,".concat(color.length >= 6 ? 2 : 1, "}"), 'g'); - var colors = color.match(re); - - if (colors && colors[0].length === 1) { - colors = colors.map(function (n) { - return n + n; - }); - } - - return colors ? "rgb".concat(colors.length === 4 ? 'a' : '', "(").concat(colors.map(function (n, index) { - return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000; - }).join(', '), ")") : ''; -} - -function intToHex(int) { - var hex = int.toString(16); - return hex.length === 1 ? "0".concat(hex) : hex; -} -/** - * Converts a color from CSS rgb format to CSS hex format. - * - * @param {string} color - RGB color, i.e. rgb(n, n, n) - * @returns {string} A CSS rgb color string, i.e. #nnnnnn - */ - - -function rgbToHex(color) { - // Idempotent - if (color.indexOf('#') === 0) { - return color; - } - - var _decomposeColor = decomposeColor(color), - values = _decomposeColor.values; - - return "#".concat(values.map(function (n) { - return intToHex(n); - }).join('')); -} -/** - * Converts a color from hsl format to rgb format. - * - * @param {string} color - HSL color values - * @returns {string} rgb color values - */ - -function hslToRgb(color) { - color = decomposeColor(color); - var _color = color, - values = _color.values; - var h = values[0]; - var s = values[1] / 100; - var l = values[2] / 100; - var a = s * Math.min(l, 1 - l); - - var f = function f(n) { - var k = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (n + h / 30) % 12; - return l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1); - }; - - var type = 'rgb'; - var rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)]; - - if (color.type === 'hsla') { - type += 'a'; - rgb.push(values[3]); - } - - return recomposeColor({ - type: type, - values: rgb - }); -} -/** - * Returns an object with the type and values of a color. - * - * Note: Does not support rgb % values. - * - * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() - * @returns {object} - A MUI color object: {type: string, values: number[]} - */ - -function decomposeColor(color) { - // Idempotent - if (color.type) { - return color; - } - - if (color.charAt(0) === '#') { - return decomposeColor(hexToRgb(color)); - } - - var marker = color.indexOf('('); - var type = color.substring(0, marker); - - if (['rgb', 'rgba', 'hsl', 'hsla'].indexOf(type) === -1) { - throw new Error( true ? "Material-UI: Unsupported `".concat(color, "` color.\nWe support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla().") : 0); - } - - var values = color.substring(marker + 1, color.length - 1).split(','); - values = values.map(function (value) { - return parseFloat(value); - }); - return { - type: type, - values: values - }; -} -/** - * Converts a color object with type and values to a string. - * - * @param {object} color - Decomposed color - * @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla' - * @param {array} color.values - [n,n,n] or [n,n,n,n] - * @returns {string} A CSS color string - */ - -function recomposeColor(color) { - var type = color.type; - var values = color.values; - - if (type.indexOf('rgb') !== -1) { - // Only convert the first 3 values to int (i.e. not alpha) - values = values.map(function (n, i) { - return i < 3 ? parseInt(n, 10) : n; - }); - } else if (type.indexOf('hsl') !== -1) { - values[1] = "".concat(values[1], "%"); - values[2] = "".concat(values[2], "%"); - } - - return "".concat(type, "(").concat(values.join(', '), ")"); -} -/** - * Calculates the contrast ratio between two colors. - * - * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests - * - * @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() - * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() - * @returns {number} A contrast ratio value in the range 0 - 21. - */ - -function getContrastRatio(foreground, background) { - var lumA = getLuminance(foreground); - var lumB = getLuminance(background); - return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05); -} -/** - * The relative brightness of any point in a color space, - * normalized to 0 for darkest black and 1 for lightest white. - * - * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests - * - * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() - * @returns {number} The relative brightness of the color in the range 0 - 1 - */ - -function getLuminance(color) { - color = decomposeColor(color); - var rgb = color.type === 'hsl' ? decomposeColor(hslToRgb(color)).values : color.values; - rgb = rgb.map(function (val) { - val /= 255; // normalized - - return val <= 0.03928 ? val / 12.92 : Math.pow((val + 0.055) / 1.055, 2.4); - }); // Truncate at 3 digits - - return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3)); -} -/** - * Darken or lighten a color, depending on its luminance. - * Light colors are darkened, dark colors are lightened. - * - * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() - * @param {number} coefficient=0.15 - multiplier in the range 0 - 1 - * @returns {string} A CSS color string. Hex input values are returned as rgb - */ - -function emphasize(color) { - var coefficient = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.15; - return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient); -} -var warnedOnce = false; -/** - * Set the absolute transparency of a color. - * Any existing alpha values are overwritten. - * - * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() - * @param {number} value - value to set the alpha channel to in the range 0 -1 - * @returns {string} A CSS color string. Hex input values are returned as rgb - * - * @deprecated - * Use `import { alpha } from '@material-ui/core/styles'` instead. - */ - -function fade(color, value) { - if (true) { - if (!warnedOnce) { - warnedOnce = true; - console.error(['Material-UI: The `fade` color utility was renamed to `alpha` to better describe its functionality.', '', "You should use `import { alpha } from '@material-ui/core/styles'`"].join('\n')); - } - } - - return alpha(color, value); -} -/** - * Set the absolute transparency of a color. - * Any existing alpha value is overwritten. - * - * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() - * @param {number} value - value to set the alpha channel to in the range 0-1 - * @returns {string} A CSS color string. Hex input values are returned as rgb - */ - -function alpha(color, value) { - color = decomposeColor(color); - value = clamp(value); - - if (color.type === 'rgb' || color.type === 'hsl') { - color.type += 'a'; - } - - color.values[3] = value; - return recomposeColor(color); -} -/** - * Darkens a color. - * - * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() - * @param {number} coefficient - multiplier in the range 0 - 1 - * @returns {string} A CSS color string. Hex input values are returned as rgb - */ - -function darken(color, coefficient) { - color = decomposeColor(color); - coefficient = clamp(coefficient); - - if (color.type.indexOf('hsl') !== -1) { - color.values[2] *= 1 - coefficient; - } else if (color.type.indexOf('rgb') !== -1) { - for (var i = 0; i < 3; i += 1) { - color.values[i] *= 1 - coefficient; - } - } - - return recomposeColor(color); -} -/** - * Lightens a color. - * - * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() - * @param {number} coefficient - multiplier in the range 0 - 1 - * @returns {string} A CSS color string. Hex input values are returned as rgb - */ - -function lighten(color, coefficient) { - color = decomposeColor(color); - coefficient = clamp(coefficient); - - if (color.type.indexOf('hsl') !== -1) { - color.values[2] += (100 - color.values[2]) * coefficient; - } else if (color.type.indexOf('rgb') !== -1) { - for (var i = 0; i < 3; i += 1) { - color.values[i] += (255 - color.values[i]) * coefficient; - } - } - - return recomposeColor(color); -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/styles/createBreakpoints.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ createBreakpoints), -/* harmony export */ "keys": () => (/* binding */ keys) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); - - -// Sorted ASC by size. That's important. -// It can't be configured as it's used statically for propTypes. -var keys = ['xs', 'sm', 'md', 'lg', 'xl']; // Keep in mind that @media is inclusive by the CSS specification. - -function createBreakpoints(breakpoints) { - var _breakpoints$values = breakpoints.values, - values = _breakpoints$values === void 0 ? { - xs: 0, - sm: 600, - md: 960, - lg: 1280, - xl: 1920 - } : _breakpoints$values, - _breakpoints$unit = breakpoints.unit, - unit = _breakpoints$unit === void 0 ? 'px' : _breakpoints$unit, - _breakpoints$step = breakpoints.step, - step = _breakpoints$step === void 0 ? 5 : _breakpoints$step, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(breakpoints, ["values", "unit", "step"]); - - function up(key) { - var value = typeof values[key] === 'number' ? values[key] : key; - return "@media (min-width:".concat(value).concat(unit, ")"); - } - - function down(key) { - var endIndex = keys.indexOf(key) + 1; - var upperbound = values[keys[endIndex]]; - - if (endIndex === keys.length) { - // xl down applies to all sizes - return up('xs'); - } - - var value = typeof upperbound === 'number' && endIndex > 0 ? upperbound : key; - return "@media (max-width:".concat(value - step / 100).concat(unit, ")"); - } - - function between(start, end) { - var endIndex = keys.indexOf(end); - - if (endIndex === keys.length - 1) { - return up(start); - } - - 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, ")"); - } - - function only(key) { - return between(key, key); - } - - var warnedOnce = false; - - function width(key) { - if (true) { - if (!warnedOnce) { - warnedOnce = true; - console.warn(["Material-UI: The `theme.breakpoints.width` utility is deprecated because it's redundant.", 'Use the `theme.breakpoints.values` instead.'].join('\n')); - } - } - - return values[key]; - } - - return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - keys: keys, - values: values, - up: up, - down: down, - between: between, - only: only, - width: width - }, other); -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/styles/createMixins.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ createMixins) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); - - -function createMixins(breakpoints, spacing, mixins) { - var _toolbar; - - return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - gutters: function gutters() { - var styles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - console.warn(['Material-UI: theme.mixins.gutters() is deprecated.', 'You can use the source of the mixin directly:', "\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join('\n')); - return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - paddingLeft: spacing(2), - paddingRight: spacing(2) - }, styles, (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])({}, breakpoints.up('sm'), (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - paddingLeft: spacing(3), - paddingRight: spacing(3) - }, styles[breakpoints.up('sm')]))); - }, - toolbar: (_toolbar = { - minHeight: 56 - }, (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_toolbar, "".concat(breakpoints.up('xs'), " and (orientation: landscape)"), { - minHeight: 48 - }), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_toolbar, breakpoints.up('sm'), { - minHeight: 64 - }), _toolbar) - }, mixins); -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/styles/createMuiStrictModeTheme.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ createMuiStrictModeTheme) -/* harmony export */ }); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/utils/esm/deepmerge.js"); -/* harmony import */ var _createTheme__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/createTheme.js"); - - -function createMuiStrictModeTheme(options) { - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - return _createTheme__WEBPACK_IMPORTED_MODULE_0__["default"].apply(void 0, [(0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_1__["default"])({ - unstable_strictMode: true - }, options)].concat(args)); -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/styles/createPalette.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "dark": () => (/* binding */ dark), -/* harmony export */ "default": () => (/* binding */ createPalette), -/* harmony export */ "light": () => (/* binding */ light) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/@material-ui/utils/esm/deepmerge.js"); -/* harmony import */ var _colors_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@material-ui/core/esm/colors/common.js"); -/* harmony import */ var _colors_grey__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@material-ui/core/esm/colors/grey.js"); -/* harmony import */ var _colors_indigo__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/colors/indigo.js"); -/* harmony import */ var _colors_pink__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/colors/pink.js"); -/* harmony import */ var _colors_red__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/colors/red.js"); -/* harmony import */ var _colors_orange__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/colors/orange.js"); -/* harmony import */ var _colors_blue__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/core/esm/colors/blue.js"); -/* harmony import */ var _colors_green__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/core/esm/colors/green.js"); -/* harmony import */ var _colorManipulator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/colorManipulator.js"); - - - - - - - - - - - - - -var light = { - // The colors used to style the text. - text: { - // The most important text. - primary: 'rgba(0, 0, 0, 0.87)', - // Secondary text. - secondary: 'rgba(0, 0, 0, 0.54)', - // Disabled text have even lower visual prominence. - disabled: 'rgba(0, 0, 0, 0.38)', - // Text hints. - hint: 'rgba(0, 0, 0, 0.38)' - }, - // The color used to divide different elements. - divider: 'rgba(0, 0, 0, 0.12)', - // The background colors used to style the surfaces. - // Consistency between these values is important. - background: { - paper: _colors_common__WEBPACK_IMPORTED_MODULE_2__["default"].white, - default: _colors_grey__WEBPACK_IMPORTED_MODULE_3__["default"][50] - }, - // The colors used to style the action elements. - action: { - // The color of an active action like an icon button. - active: 'rgba(0, 0, 0, 0.54)', - // The color of an hovered action. - hover: 'rgba(0, 0, 0, 0.04)', - hoverOpacity: 0.04, - // The color of a selected action. - selected: 'rgba(0, 0, 0, 0.08)', - selectedOpacity: 0.08, - // The color of a disabled action. - disabled: 'rgba(0, 0, 0, 0.26)', - // The background color of a disabled action. - disabledBackground: 'rgba(0, 0, 0, 0.12)', - disabledOpacity: 0.38, - focus: 'rgba(0, 0, 0, 0.12)', - focusOpacity: 0.12, - activatedOpacity: 0.12 - } -}; -var dark = { - text: { - primary: _colors_common__WEBPACK_IMPORTED_MODULE_2__["default"].white, - secondary: 'rgba(255, 255, 255, 0.7)', - disabled: 'rgba(255, 255, 255, 0.5)', - hint: 'rgba(255, 255, 255, 0.5)', - icon: 'rgba(255, 255, 255, 0.5)' - }, - divider: 'rgba(255, 255, 255, 0.12)', - background: { - paper: _colors_grey__WEBPACK_IMPORTED_MODULE_3__["default"][800], - default: '#303030' - }, - action: { - active: _colors_common__WEBPACK_IMPORTED_MODULE_2__["default"].white, - hover: 'rgba(255, 255, 255, 0.08)', - hoverOpacity: 0.08, - selected: 'rgba(255, 255, 255, 0.16)', - selectedOpacity: 0.16, - disabled: 'rgba(255, 255, 255, 0.3)', - disabledBackground: 'rgba(255, 255, 255, 0.12)', - disabledOpacity: 0.38, - focus: 'rgba(255, 255, 255, 0.12)', - focusOpacity: 0.12, - activatedOpacity: 0.24 - } -}; - -function addLightOrDark(intent, direction, shade, tonalOffset) { - var tonalOffsetLight = tonalOffset.light || tonalOffset; - var tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5; - - if (!intent[direction]) { - if (intent.hasOwnProperty(shade)) { - intent[direction] = intent[shade]; - } else if (direction === 'light') { - intent.light = (0,_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.lighten)(intent.main, tonalOffsetLight); - } else if (direction === 'dark') { - intent.dark = (0,_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.darken)(intent.main, tonalOffsetDark); - } - } -} - -function createPalette(palette) { - var _palette$primary = palette.primary, - primary = _palette$primary === void 0 ? { - light: _colors_indigo__WEBPACK_IMPORTED_MODULE_5__["default"][300], - main: _colors_indigo__WEBPACK_IMPORTED_MODULE_5__["default"][500], - dark: _colors_indigo__WEBPACK_IMPORTED_MODULE_5__["default"][700] - } : _palette$primary, - _palette$secondary = palette.secondary, - secondary = _palette$secondary === void 0 ? { - light: _colors_pink__WEBPACK_IMPORTED_MODULE_6__["default"].A200, - main: _colors_pink__WEBPACK_IMPORTED_MODULE_6__["default"].A400, - dark: _colors_pink__WEBPACK_IMPORTED_MODULE_6__["default"].A700 - } : _palette$secondary, - _palette$error = palette.error, - error = _palette$error === void 0 ? { - light: _colors_red__WEBPACK_IMPORTED_MODULE_7__["default"][300], - main: _colors_red__WEBPACK_IMPORTED_MODULE_7__["default"][500], - dark: _colors_red__WEBPACK_IMPORTED_MODULE_7__["default"][700] - } : _palette$error, - _palette$warning = palette.warning, - warning = _palette$warning === void 0 ? { - light: _colors_orange__WEBPACK_IMPORTED_MODULE_8__["default"][300], - main: _colors_orange__WEBPACK_IMPORTED_MODULE_8__["default"][500], - dark: _colors_orange__WEBPACK_IMPORTED_MODULE_8__["default"][700] - } : _palette$warning, - _palette$info = palette.info, - info = _palette$info === void 0 ? { - light: _colors_blue__WEBPACK_IMPORTED_MODULE_9__["default"][300], - main: _colors_blue__WEBPACK_IMPORTED_MODULE_9__["default"][500], - dark: _colors_blue__WEBPACK_IMPORTED_MODULE_9__["default"][700] - } : _palette$info, - _palette$success = palette.success, - success = _palette$success === void 0 ? { - light: _colors_green__WEBPACK_IMPORTED_MODULE_10__["default"][300], - main: _colors_green__WEBPACK_IMPORTED_MODULE_10__["default"][500], - dark: _colors_green__WEBPACK_IMPORTED_MODULE_10__["default"][700] - } : _palette$success, - _palette$type = palette.type, - type = _palette$type === void 0 ? 'light' : _palette$type, - _palette$contrastThre = palette.contrastThreshold, - contrastThreshold = _palette$contrastThre === void 0 ? 3 : _palette$contrastThre, - _palette$tonalOffset = palette.tonalOffset, - tonalOffset = _palette$tonalOffset === void 0 ? 0.2 : _palette$tonalOffset, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(palette, ["primary", "secondary", "error", "warning", "info", "success", "type", "contrastThreshold", "tonalOffset"]); // Use the same logic as - // Bootstrap: https://github.com/twbs/bootstrap/blob/1d6e3710dd447de1a200f29e8fa521f8a0908f70/scss/_functions.scss#L59 - // and material-components-web https://github.com/material-components/material-components-web/blob/ac46b8863c4dab9fc22c4c662dc6bd1b65dd652f/packages/mdc-theme/_functions.scss#L54 - - - function getContrastText(background) { - var contrastText = (0,_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.getContrastRatio)(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary; - - if (true) { - var contrast = (0,_colorManipulator__WEBPACK_IMPORTED_MODULE_4__.getContrastRatio)(background, contrastText); - - if (contrast < 3) { - console.error(["Material-UI: The contrast ratio of ".concat(contrast, ":1 for ").concat(contrastText, " on ").concat(background), 'falls below the WCAG recommended absolute minimum contrast ratio of 3:1.', 'https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast'].join('\n')); - } - } - - return contrastText; - } - - var augmentColor = function augmentColor(color) { - var mainShade = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500; - var lightShade = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 300; - var darkShade = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 700; - color = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, color); - - if (!color.main && color[mainShade]) { - color.main = color[mainShade]; - } - - if (!color.main) { - throw new Error( true ? "Material-UI: The color provided to augmentColor(color) is invalid.\nThe color object needs to have a `main` property or a `".concat(mainShade, "` property.") : 0); - } - - if (typeof color.main !== 'string') { - throw new Error( true ? "Material-UI: The color provided to augmentColor(color) is invalid.\n`color.main` should be a string, but `".concat(JSON.stringify(color.main), "` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport {\xA0green } from \"@material-ui/core/colors\";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });") : 0); - } - - addLightOrDark(color, 'light', lightShade, tonalOffset); - addLightOrDark(color, 'dark', darkShade, tonalOffset); - - if (!color.contrastText) { - color.contrastText = getContrastText(color.main); - } - - return color; - }; - - var types = { - dark: dark, - light: light - }; - - if (true) { - if (!types[type]) { - console.error("Material-UI: The palette type `".concat(type, "` is not supported.")); - } - } - - var paletteOutput = (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_11__["default"])((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - // A collection of common colors. - common: _colors_common__WEBPACK_IMPORTED_MODULE_2__["default"], - // The palette type, can be light or dark. - type: type, - // The colors used to represent primary interface elements for a user. - primary: augmentColor(primary), - // The colors used to represent secondary interface elements for a user. - secondary: augmentColor(secondary, 'A400', 'A200', 'A700'), - // The colors used to represent interface elements that the user should be made aware of. - error: augmentColor(error), - // The colors used to represent potentially dangerous actions or important messages. - warning: augmentColor(warning), - // The colors used to present information to the user that is neutral and not necessarily important. - info: augmentColor(info), - // The colors used to indicate the successful completion of an action that user triggered. - success: augmentColor(success), - // The grey colors. - grey: _colors_grey__WEBPACK_IMPORTED_MODULE_3__["default"], - // Used by `getContrastText()` to maximize the contrast between - // the background and the text. - contrastThreshold: contrastThreshold, - // Takes a background color and returns the text color that maximizes the contrast. - getContrastText: getContrastText, - // Generate a rich color object. - augmentColor: augmentColor, - // Used by the functions below to shift a color's luminance by approximately - // two indexes within its tonal palette. - // E.g., shift from Red 500 to Red 300 or Red 700. - tonalOffset: tonalOffset - }, types[type]), other); - return paletteOutput; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/styles/createSpacing.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ createSpacing) -/* harmony export */ }); -/* harmony import */ var _material_ui_system__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@material-ui/system/esm/spacing.js"); - -var warnOnce; -function createSpacing() { - var spacingInput = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 8; - - // Already transformed. - if (spacingInput.mui) { - return spacingInput; - } // Material Design layouts are visually balanced. Most measurements align to an 8dp grid applied, which aligns both spacing and the overall layout. - // Smaller components, such as icons and type, can align to a 4dp grid. - // https://material.io/design/layout/understanding-layout.html#usage - - - var transform = (0,_material_ui_system__WEBPACK_IMPORTED_MODULE_0__.createUnarySpacing)({ - spacing: spacingInput - }); - - var spacing = function spacing() { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - if (true) { - if (!(args.length <= 4)) { - console.error("Material-UI: Too many arguments provided, expected between 0 and 4, got ".concat(args.length)); - } - } - - if (args.length === 0) { - return transform(1); - } - - if (args.length === 1) { - return transform(args[0]); - } - - return args.map(function (argument) { - if (typeof argument === 'string') { - return argument; - } - - var output = transform(argument); - return typeof output === 'number' ? "".concat(output, "px") : output; - }).join(' '); - }; // Backward compatibility, to remove in v5. - - - Object.defineProperty(spacing, 'unit', { - get: function get() { - if (true) { - if (!warnOnce || "development" === 'test') { - console.error(['Material-UI: theme.spacing.unit usage has been deprecated.', 'It will be removed in v5.', 'You can replace `theme.spacing.unit * y` with `theme.spacing(y)`.', '', 'You can use the `https://github.com/mui-org/material-ui/tree/master/packages/material-ui-codemod/README.md#theme-spacing-api` migration helper to make the process smoother.'].join('\n')); - } - - warnOnce = true; - } - - return spacingInput; - } - }); - spacing.mui = true; - return spacing; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/styles/createStyles.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ createStyles) -/* harmony export */ }); -/* harmony import */ var _material_ui_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@material-ui/styles/esm/createStyles/createStyles.js"); - // let warnOnce = false; -// To remove in v5 - -function createStyles(styles) { - // warning( - // warnOnce, - // [ - // 'Material-UI: createStyles from @material-ui/core/styles is deprecated.', - // 'Please use @material-ui/styles/createStyles', - // ].join('\n'), - // ); - // warnOnce = true; - return (0,_material_ui_styles__WEBPACK_IMPORTED_MODULE_0__["default"])(styles); -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/styles/createTheme.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "createMuiTheme": () => (/* binding */ createMuiTheme), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/utils/esm/deepmerge.js"); -/* harmony import */ var _createBreakpoints__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/createBreakpoints.js"); -/* harmony import */ var _createMixins__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/createMixins.js"); -/* harmony import */ var _createPalette__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/createPalette.js"); -/* harmony import */ var _createTypography__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/createTypography.js"); -/* harmony import */ var _shadows__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/shadows.js"); -/* harmony import */ var _shape__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/shape.js"); -/* harmony import */ var _createSpacing__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/createSpacing.js"); -/* harmony import */ var _transitions__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/transitions.js"); -/* harmony import */ var _zIndex__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/zIndex.js"); - - - - - - - - - - - - - -function createTheme() { - var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - var _options$breakpoints = options.breakpoints, - breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints, - _options$mixins = options.mixins, - mixinsInput = _options$mixins === void 0 ? {} : _options$mixins, - _options$palette = options.palette, - paletteInput = _options$palette === void 0 ? {} : _options$palette, - spacingInput = options.spacing, - _options$typography = options.typography, - typographyInput = _options$typography === void 0 ? {} : _options$typography, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(options, ["breakpoints", "mixins", "palette", "spacing", "typography"]); - - var palette = (0,_createPalette__WEBPACK_IMPORTED_MODULE_2__["default"])(paletteInput); - var breakpoints = (0,_createBreakpoints__WEBPACK_IMPORTED_MODULE_3__["default"])(breakpointsInput); - var spacing = (0,_createSpacing__WEBPACK_IMPORTED_MODULE_4__["default"])(spacingInput); - var muiTheme = (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_5__["default"])({ - breakpoints: breakpoints, - direction: 'ltr', - mixins: (0,_createMixins__WEBPACK_IMPORTED_MODULE_6__["default"])(breakpoints, spacing, mixinsInput), - overrides: {}, - // Inject custom styles - palette: palette, - props: {}, - // Provide default props - shadows: _shadows__WEBPACK_IMPORTED_MODULE_7__["default"], - typography: (0,_createTypography__WEBPACK_IMPORTED_MODULE_8__["default"])(palette, typographyInput), - spacing: spacing, - shape: _shape__WEBPACK_IMPORTED_MODULE_9__["default"], - transitions: _transitions__WEBPACK_IMPORTED_MODULE_10__["default"], - zIndex: _zIndex__WEBPACK_IMPORTED_MODULE_11__["default"] - }, other); - - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - muiTheme = args.reduce(function (acc, argument) { - return (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_5__["default"])(acc, argument); - }, muiTheme); - - if (true) { - var pseudoClasses = ['checked', 'disabled', 'error', 'focused', 'focusVisible', 'required', 'expanded', 'selected']; - - var traverse = function traverse(node, parentKey) { - var depth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1; - var key; // eslint-disable-next-line guard-for-in, no-restricted-syntax - - for (key in node) { - var child = node[key]; - - if (depth === 1) { - if (key.indexOf('Mui') === 0 && child) { - traverse(child, key, depth + 1); - } - } else if (pseudoClasses.indexOf(key) !== -1 && Object.keys(child).length > 0) { - if (true) { - console.error(["Material-UI: The `".concat(parentKey, "` component increases ") + "the CSS specificity of the `".concat(key, "` internal state."), 'You can not override it like this: ', JSON.stringify(node, null, 2), '', 'Instead, you need to use the $ruleName syntax:', JSON.stringify({ - root: (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])({}, "&$".concat(key), child) - }, null, 2), '', 'https://mui.com/r/pseudo-classes-guide'].join('\n')); - } // Remove the style to prevent global conflicts. - - - node[key] = {}; - } - } - }; - - traverse(muiTheme.overrides); - } - - return muiTheme; -} - -var warnedOnce = false; -function createMuiTheme() { - if (true) { - if (!warnedOnce) { - warnedOnce = true; - console.error(['Material-UI: the createMuiTheme function was renamed to createTheme.', '', "You should use `import { createTheme } from '@material-ui/core/styles'`"].join('\n')); - } - } - - return createTheme.apply(void 0, arguments); -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createTheme); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/styles/createTypography.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ createTypography) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@material-ui/utils/esm/deepmerge.js"); - - - - -function round(value) { - return Math.round(value * 1e5) / 1e5; -} - -var warnedOnce = false; - -function roundWithDeprecationWarning(value) { - if (true) { - if (!warnedOnce) { - console.warn(['Material-UI: The `theme.typography.round` helper is deprecated.', 'Head to https://mui.com/r/migration-v4/#theme for a migration path.'].join('\n')); - warnedOnce = true; - } - } - - return round(value); -} - -var caseAllCaps = { - textTransform: 'uppercase' -}; -var defaultFontFamily = '"Roboto", "Helvetica", "Arial", sans-serif'; -/** - * @see @link{https://material.io/design/typography/the-type-system.html} - * @see @link{https://material.io/design/typography/understanding-typography.html} - */ - -function createTypography(palette, typography) { - var _ref = typeof typography === 'function' ? typography(palette) : typography, - _ref$fontFamily = _ref.fontFamily, - fontFamily = _ref$fontFamily === void 0 ? defaultFontFamily : _ref$fontFamily, - _ref$fontSize = _ref.fontSize, - fontSize = _ref$fontSize === void 0 ? 14 : _ref$fontSize, - _ref$fontWeightLight = _ref.fontWeightLight, - fontWeightLight = _ref$fontWeightLight === void 0 ? 300 : _ref$fontWeightLight, - _ref$fontWeightRegula = _ref.fontWeightRegular, - fontWeightRegular = _ref$fontWeightRegula === void 0 ? 400 : _ref$fontWeightRegula, - _ref$fontWeightMedium = _ref.fontWeightMedium, - fontWeightMedium = _ref$fontWeightMedium === void 0 ? 500 : _ref$fontWeightMedium, - _ref$fontWeightBold = _ref.fontWeightBold, - fontWeightBold = _ref$fontWeightBold === void 0 ? 700 : _ref$fontWeightBold, - _ref$htmlFontSize = _ref.htmlFontSize, - htmlFontSize = _ref$htmlFontSize === void 0 ? 16 : _ref$htmlFontSize, - allVariants = _ref.allVariants, - pxToRem2 = _ref.pxToRem, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"]); - - if (true) { - if (typeof fontSize !== 'number') { - console.error('Material-UI: `fontSize` is required to be a number.'); - } - - if (typeof htmlFontSize !== 'number') { - console.error('Material-UI: `htmlFontSize` is required to be a number.'); - } - } - - var coef = fontSize / 14; - - var pxToRem = pxToRem2 || function (size) { - return "".concat(size / htmlFontSize * coef, "rem"); - }; - - var buildVariant = function buildVariant(fontWeight, size, lineHeight, letterSpacing, casing) { - return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - fontFamily: fontFamily, - fontWeight: fontWeight, - fontSize: pxToRem(size), - // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/ - lineHeight: lineHeight - }, fontFamily === defaultFontFamily ? { - letterSpacing: "".concat(round(letterSpacing / size), "em") - } : {}, casing, allVariants); - }; - - var variants = { - h1: buildVariant(fontWeightLight, 96, 1.167, -1.5), - h2: buildVariant(fontWeightLight, 60, 1.2, -0.5), - h3: buildVariant(fontWeightRegular, 48, 1.167, 0), - h4: buildVariant(fontWeightRegular, 34, 1.235, 0.25), - h5: buildVariant(fontWeightRegular, 24, 1.334, 0), - h6: buildVariant(fontWeightMedium, 20, 1.6, 0.15), - subtitle1: buildVariant(fontWeightRegular, 16, 1.75, 0.15), - subtitle2: buildVariant(fontWeightMedium, 14, 1.57, 0.1), - body1: buildVariant(fontWeightRegular, 16, 1.5, 0.15), - body2: buildVariant(fontWeightRegular, 14, 1.43, 0.15), - button: buildVariant(fontWeightMedium, 14, 1.75, 0.4, caseAllCaps), - caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4), - overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps) - }; - return (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - htmlFontSize: htmlFontSize, - pxToRem: pxToRem, - round: roundWithDeprecationWarning, - // TODO v5: remove - fontFamily: fontFamily, - fontSize: fontSize, - fontWeightLight: fontWeightLight, - fontWeightRegular: fontWeightRegular, - fontWeightMedium: fontWeightMedium, - fontWeightBold: fontWeightBold - }, variants), other, { - clone: false // No need to clone deep - - }); -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/styles/cssUtils.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "alignProperty": () => (/* binding */ alignProperty), -/* harmony export */ "convertLength": () => (/* binding */ convertLength), -/* harmony export */ "fontGrid": () => (/* binding */ fontGrid), -/* harmony export */ "getUnit": () => (/* binding */ getUnit), -/* harmony export */ "isUnitless": () => (/* binding */ isUnitless), -/* harmony export */ "responsiveProperty": () => (/* binding */ responsiveProperty), -/* harmony export */ "toUnitless": () => (/* binding */ toUnitless) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"); - -function isUnitless(value) { - return String(parseFloat(value)).length === String(value).length; -} // Ported from Compass -// https://github.com/Compass/compass/blob/master/core/stylesheets/compass/typography/_units.scss -// Emulate the sass function "unit" - -function getUnit(input) { - return String(input).match(/[\d.\-+]*\s*(.*)/)[1] || ''; -} // Emulate the sass function "unitless" - -function toUnitless(length) { - return parseFloat(length); -} // Convert any CSS or value to any another. -// From https://github.com/KyleAMathews/convert-css-length - -function convertLength(baseFontSize) { - return function (length, toUnit) { - var fromUnit = getUnit(length); // Optimize for cases where `from` and `to` units are accidentally the same. - - if (fromUnit === toUnit) { - return length; - } // Convert input length to pixels. - - - var pxLength = toUnitless(length); - - if (fromUnit !== 'px') { - if (fromUnit === 'em') { - pxLength = toUnitless(length) * toUnitless(baseFontSize); - } else if (fromUnit === 'rem') { - pxLength = toUnitless(length) * toUnitless(baseFontSize); - return length; - } - } // Convert length in pixels to the output unit - - - var outputLength = pxLength; - - if (toUnit !== 'px') { - if (toUnit === 'em') { - outputLength = pxLength / toUnitless(baseFontSize); - } else if (toUnit === 'rem') { - outputLength = pxLength / toUnitless(baseFontSize); - } else { - return length; - } - } - - return parseFloat(outputLength.toFixed(5)) + toUnit; - }; -} -function alignProperty(_ref) { - var size = _ref.size, - grid = _ref.grid; - var sizeBelow = size - size % grid; - var sizeAbove = sizeBelow + grid; - return size - sizeBelow < sizeAbove - size ? sizeBelow : sizeAbove; -} // fontGrid finds a minimal grid (in rem) for the fontSize values so that the -// lineHeight falls under a x pixels grid, 4px in the case of Material Design, -// without changing the relative line height - -function fontGrid(_ref2) { - var lineHeight = _ref2.lineHeight, - pixels = _ref2.pixels, - htmlFontSize = _ref2.htmlFontSize; - return pixels / (lineHeight * htmlFontSize); -} -/** - * generate a responsive version of a given CSS property - * @example - * responsiveProperty({ - * cssProperty: 'fontSize', - * min: 15, - * max: 20, - * unit: 'px', - * breakpoints: [300, 600], - * }) - * - * // this returns - * - * { - * fontSize: '15px', - * '@media (min-width:300px)': { - * fontSize: '17.5px', - * }, - * '@media (min-width:600px)': { - * fontSize: '20px', - * }, - * } - * - * @param {Object} params - * @param {string} params.cssProperty - The CSS property to be made responsive - * @param {number} params.min - The smallest value of the CSS property - * @param {number} params.max - The largest value of the CSS property - * @param {string} [params.unit] - The unit to be used for the CSS property - * @param {Array.number} [params.breakpoints] - An array of breakpoints - * @param {number} [params.alignStep] - Round scaled value to fall under this grid - * @returns {Object} responsive styles for {params.cssProperty} - */ - -function responsiveProperty(_ref3) { - var cssProperty = _ref3.cssProperty, - min = _ref3.min, - max = _ref3.max, - _ref3$unit = _ref3.unit, - unit = _ref3$unit === void 0 ? 'rem' : _ref3$unit, - _ref3$breakpoints = _ref3.breakpoints, - breakpoints = _ref3$breakpoints === void 0 ? [600, 960, 1280] : _ref3$breakpoints, - _ref3$transform = _ref3.transform, - transform = _ref3$transform === void 0 ? null : _ref3$transform; - - var output = (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])({}, cssProperty, "".concat(min).concat(unit)); - - var factor = (max - min) / breakpoints[breakpoints.length - 1]; - breakpoints.forEach(function (breakpoint) { - var value = min + factor * breakpoint; - - if (transform !== null) { - value = transform(value); - } - - output["@media (min-width:".concat(breakpoint, "px)")] = (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])({}, cssProperty, "".concat(Math.round(value * 10000) / 10000).concat(unit)); - }); - return output; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/styles/defaultTheme.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _createTheme__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/createTheme.js"); - -var defaultTheme = (0,_createTheme__WEBPACK_IMPORTED_MODULE_0__["default"])(); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (defaultTheme); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/styles/index.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "MuiThemeProvider": () => (/* reexport safe */ _material_ui_styles__WEBPACK_IMPORTED_MODULE_15__["default"]), -/* harmony export */ "ServerStyleSheets": () => (/* reexport safe */ _material_ui_styles__WEBPACK_IMPORTED_MODULE_13__["default"]), -/* harmony export */ "StylesProvider": () => (/* reexport safe */ _material_ui_styles__WEBPACK_IMPORTED_MODULE_14__["default"]), -/* harmony export */ "ThemeProvider": () => (/* reexport safe */ _material_ui_styles__WEBPACK_IMPORTED_MODULE_15__["default"]), -/* harmony export */ "alpha": () => (/* reexport safe */ _colorManipulator__WEBPACK_IMPORTED_MODULE_0__.alpha), -/* harmony export */ "createGenerateClassName": () => (/* reexport safe */ _material_ui_styles__WEBPACK_IMPORTED_MODULE_11__["default"]), -/* harmony export */ "createMuiTheme": () => (/* reexport safe */ _createTheme__WEBPACK_IMPORTED_MODULE_1__.createMuiTheme), -/* harmony export */ "createStyles": () => (/* reexport safe */ _createStyles__WEBPACK_IMPORTED_MODULE_3__["default"]), -/* harmony export */ "createTheme": () => (/* reexport safe */ _createTheme__WEBPACK_IMPORTED_MODULE_1__["default"]), -/* harmony export */ "darken": () => (/* reexport safe */ _colorManipulator__WEBPACK_IMPORTED_MODULE_0__.darken), -/* harmony export */ "decomposeColor": () => (/* reexport safe */ _colorManipulator__WEBPACK_IMPORTED_MODULE_0__.decomposeColor), -/* harmony export */ "duration": () => (/* reexport safe */ _transitions__WEBPACK_IMPORTED_MODULE_7__.duration), -/* harmony export */ "easing": () => (/* reexport safe */ _transitions__WEBPACK_IMPORTED_MODULE_7__.easing), -/* harmony export */ "emphasize": () => (/* reexport safe */ _colorManipulator__WEBPACK_IMPORTED_MODULE_0__.emphasize), -/* harmony export */ "fade": () => (/* reexport safe */ _colorManipulator__WEBPACK_IMPORTED_MODULE_0__.fade), -/* harmony export */ "getContrastRatio": () => (/* reexport safe */ _colorManipulator__WEBPACK_IMPORTED_MODULE_0__.getContrastRatio), -/* harmony export */ "getLuminance": () => (/* reexport safe */ _colorManipulator__WEBPACK_IMPORTED_MODULE_0__.getLuminance), -/* harmony export */ "hexToRgb": () => (/* reexport safe */ _colorManipulator__WEBPACK_IMPORTED_MODULE_0__.hexToRgb), -/* harmony export */ "hslToRgb": () => (/* reexport safe */ _colorManipulator__WEBPACK_IMPORTED_MODULE_0__.hslToRgb), -/* harmony export */ "jssPreset": () => (/* reexport safe */ _material_ui_styles__WEBPACK_IMPORTED_MODULE_12__["default"]), -/* harmony export */ "lighten": () => (/* reexport safe */ _colorManipulator__WEBPACK_IMPORTED_MODULE_0__.lighten), -/* harmony export */ "makeStyles": () => (/* reexport safe */ _makeStyles__WEBPACK_IMPORTED_MODULE_4__["default"]), -/* harmony export */ "recomposeColor": () => (/* reexport safe */ _colorManipulator__WEBPACK_IMPORTED_MODULE_0__.recomposeColor), -/* harmony export */ "responsiveFontSizes": () => (/* reexport safe */ _responsiveFontSizes__WEBPACK_IMPORTED_MODULE_5__["default"]), -/* harmony export */ "rgbToHex": () => (/* reexport safe */ _colorManipulator__WEBPACK_IMPORTED_MODULE_0__.rgbToHex), -/* harmony export */ "styled": () => (/* reexport safe */ _styled__WEBPACK_IMPORTED_MODULE_6__["default"]), -/* harmony export */ "unstable_createMuiStrictModeTheme": () => (/* reexport safe */ _createMuiStrictModeTheme__WEBPACK_IMPORTED_MODULE_2__["default"]), -/* harmony export */ "useTheme": () => (/* reexport safe */ _useTheme__WEBPACK_IMPORTED_MODULE_8__["default"]), -/* harmony export */ "withStyles": () => (/* reexport safe */ _withStyles__WEBPACK_IMPORTED_MODULE_9__["default"]), -/* harmony export */ "withTheme": () => (/* reexport safe */ _withTheme__WEBPACK_IMPORTED_MODULE_10__["default"]) -/* harmony export */ }); -/* harmony import */ var _colorManipulator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/colorManipulator.js"); -/* harmony import */ var _createTheme__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/createTheme.js"); -/* harmony import */ var _createMuiStrictModeTheme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/createMuiStrictModeTheme.js"); -/* harmony import */ var _createStyles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/createStyles.js"); -/* harmony import */ var _makeStyles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/makeStyles.js"); -/* harmony import */ var _responsiveFontSizes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/responsiveFontSizes.js"); -/* harmony import */ var _styled__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/styled.js"); -/* harmony import */ var _transitions__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/transitions.js"); -/* harmony import */ var _useTheme__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/useTheme.js"); -/* harmony import */ var _withStyles__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _withTheme__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withTheme.js"); -/* harmony import */ var _material_ui_styles__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/@material-ui/styles/esm/createGenerateClassName/createGenerateClassName.js"); -/* harmony import */ var _material_ui_styles__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("./node_modules/@material-ui/styles/esm/jssPreset/jssPreset.js"); -/* harmony import */ var _material_ui_styles__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("./node_modules/@material-ui/styles/esm/ServerStyleSheets/ServerStyleSheets.js"); -/* harmony import */ var _material_ui_styles__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("./node_modules/@material-ui/styles/esm/StylesProvider/StylesProvider.js"); -/* harmony import */ var _material_ui_styles__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("./node_modules/@material-ui/styles/esm/ThemeProvider/ThemeProvider.js"); - - // eslint-disable-next-line camelcase - - - - - - - - - - - - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/styles/makeStyles.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _material_ui_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/styles/esm/makeStyles/makeStyles.js"); -/* harmony import */ var _defaultTheme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/defaultTheme.js"); - - - - -function makeStyles(stylesOrCreator) { - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - return (0,_material_ui_styles__WEBPACK_IMPORTED_MODULE_1__["default"])(stylesOrCreator, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - defaultTheme: _defaultTheme__WEBPACK_IMPORTED_MODULE_2__["default"] - }, options)); -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (makeStyles); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/styles/responsiveFontSizes.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ responsiveFontSizes) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _cssUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/cssUtils.js"); - - - -function responsiveFontSizes(themeInput) { - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var _options$breakpoints = options.breakpoints, - breakpoints = _options$breakpoints === void 0 ? ['sm', 'md', 'lg'] : _options$breakpoints, - _options$disableAlign = options.disableAlign, - disableAlign = _options$disableAlign === void 0 ? false : _options$disableAlign, - _options$factor = options.factor, - factor = _options$factor === void 0 ? 2 : _options$factor, - _options$variants = options.variants, - variants = _options$variants === void 0 ? ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'subtitle1', 'subtitle2', 'body1', 'body2', 'caption', 'button', 'overline'] : _options$variants; - - var theme = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, themeInput); - - theme.typography = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, theme.typography); - var typography = theme.typography; // Convert between css lengths e.g. em->px or px->rem - // Set the baseFontSize for your project. Defaults to 16px (also the browser default). - - var convert = (0,_cssUtils__WEBPACK_IMPORTED_MODULE_1__.convertLength)(typography.htmlFontSize); - var breakpointValues = breakpoints.map(function (x) { - return theme.breakpoints.values[x]; - }); - variants.forEach(function (variant) { - var style = typography[variant]; - var remFontSize = parseFloat(convert(style.fontSize, 'rem')); - - if (remFontSize <= 1) { - return; - } - - var maxFontSize = remFontSize; - var minFontSize = 1 + (maxFontSize - 1) / factor; - var lineHeight = style.lineHeight; - - if (!(0,_cssUtils__WEBPACK_IMPORTED_MODULE_1__.isUnitless)(lineHeight) && !disableAlign) { - throw new Error( true ? "Material-UI: Unsupported non-unitless line height with grid alignment.\nUse unitless line heights instead." : 0); - } - - if (!(0,_cssUtils__WEBPACK_IMPORTED_MODULE_1__.isUnitless)(lineHeight)) { - // make it unitless - lineHeight = parseFloat(convert(lineHeight, 'rem')) / parseFloat(remFontSize); - } - - var transform = null; - - if (!disableAlign) { - transform = function transform(value) { - return (0,_cssUtils__WEBPACK_IMPORTED_MODULE_1__.alignProperty)({ - size: value, - grid: (0,_cssUtils__WEBPACK_IMPORTED_MODULE_1__.fontGrid)({ - pixels: 4, - lineHeight: lineHeight, - htmlFontSize: typography.htmlFontSize - }) - }); - }; - } - - typography[variant] = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, style, (0,_cssUtils__WEBPACK_IMPORTED_MODULE_1__.responsiveProperty)({ - cssProperty: 'fontSize', - min: minFontSize, - max: maxFontSize, - unit: 'rem', - breakpoints: breakpointValues, - transform: transform - })); - }); - return theme; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/styles/shadows.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -var shadowKeyUmbraOpacity = 0.2; -var shadowKeyPenumbraOpacity = 0.14; -var shadowAmbientShadowOpacity = 0.12; - -function createShadow() { - return ["".concat(arguments.length <= 0 ? undefined : arguments[0], "px ").concat(arguments.length <= 1 ? undefined : arguments[1], "px ").concat(arguments.length <= 2 ? undefined : arguments[2], "px ").concat(arguments.length <= 3 ? undefined : arguments[3], "px rgba(0,0,0,").concat(shadowKeyUmbraOpacity, ")"), "".concat(arguments.length <= 4 ? undefined : arguments[4], "px ").concat(arguments.length <= 5 ? undefined : arguments[5], "px ").concat(arguments.length <= 6 ? undefined : arguments[6], "px ").concat(arguments.length <= 7 ? undefined : arguments[7], "px rgba(0,0,0,").concat(shadowKeyPenumbraOpacity, ")"), "".concat(arguments.length <= 8 ? undefined : arguments[8], "px ").concat(arguments.length <= 9 ? undefined : arguments[9], "px ").concat(arguments.length <= 10 ? undefined : arguments[10], "px ").concat(arguments.length <= 11 ? undefined : arguments[11], "px rgba(0,0,0,").concat(shadowAmbientShadowOpacity, ")")].join(','); -} // Values from https://github.com/material-components/material-components-web/blob/be8747f94574669cb5e7add1a7c54fa41a89cec7/packages/mdc-elevation/_variables.scss - - -var shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)]; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (shadows); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/styles/shape.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -var shape = { - borderRadius: 4 -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (shape); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/styles/styled.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _material_ui_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/styles/esm/styled/styled.js"); -/* harmony import */ var _defaultTheme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/defaultTheme.js"); - - - - -var styled = function styled(Component) { - var componentCreator = (0,_material_ui_styles__WEBPACK_IMPORTED_MODULE_1__["default"])(Component); - return function (style, options) { - return componentCreator(style, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - defaultTheme: _defaultTheme__WEBPACK_IMPORTED_MODULE_2__["default"] - }, options)); - }; -}; - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (styled); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/styles/transitions.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "duration": () => (/* binding */ duration), -/* harmony export */ "easing": () => (/* binding */ easing) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); - -// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves -// to learn the context in which each easing should be used. -var easing = { - // This is the most common easing curve. - easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)', - // Objects enter the screen at full velocity from off-screen and - // slowly decelerate to a resting point. - easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)', - // Objects leave the screen at full velocity. They do not decelerate when off-screen. - easeIn: 'cubic-bezier(0.4, 0, 1, 1)', - // The sharp curve is used by objects that may return to the screen at any time. - sharp: 'cubic-bezier(0.4, 0, 0.6, 1)' -}; // Follow https://material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations -// to learn when use what timing - -var duration = { - shortest: 150, - shorter: 200, - short: 250, - // most basic recommended timing - standard: 300, - // this is to be used in complex animations - complex: 375, - // recommended when something is entering screen - enteringScreen: 225, - // recommended when something is leaving screen - leavingScreen: 195 -}; - -function formatMs(milliseconds) { - return "".concat(Math.round(milliseconds), "ms"); -} -/** - * @param {string|Array} props - * @param {object} param - * @param {string} param.prop - * @param {number} param.duration - * @param {string} param.easing - * @param {number} param.delay - */ - - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ - easing: easing, - duration: duration, - create: function create() { - var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['all']; - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - var _options$duration = options.duration, - durationOption = _options$duration === void 0 ? duration.standard : _options$duration, - _options$easing = options.easing, - easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing, - _options$delay = options.delay, - delay = _options$delay === void 0 ? 0 : _options$delay, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__["default"])(options, ["duration", "easing", "delay"]); - - if (true) { - var isString = function isString(value) { - return typeof value === 'string'; - }; - - var isNumber = function isNumber(value) { - return !isNaN(parseFloat(value)); - }; - - if (!isString(props) && !Array.isArray(props)) { - console.error('Material-UI: Argument "props" must be a string or Array.'); - } - - if (!isNumber(durationOption) && !isString(durationOption)) { - console.error("Material-UI: Argument \"duration\" must be a number or a string but found ".concat(durationOption, ".")); - } - - if (!isString(easingOption)) { - console.error('Material-UI: Argument "easing" must be a string.'); - } - - if (!isNumber(delay) && !isString(delay)) { - console.error('Material-UI: Argument "delay" must be a number or a string.'); - } - - if (Object.keys(other).length !== 0) { - console.error("Material-UI: Unrecognized argument(s) [".concat(Object.keys(other).join(','), "].")); - } - } - - return (Array.isArray(props) ? props : [props]).map(function (animatedProp) { - return "".concat(animatedProp, " ").concat(typeof durationOption === 'string' ? durationOption : formatMs(durationOption), " ").concat(easingOption, " ").concat(typeof delay === 'string' ? delay : formatMs(delay)); - }).join(','); - }, - getAutoHeightDuration: function getAutoHeightDuration(height) { - if (!height) { - return 0; - } - - var constant = height / 36; // https://www.wolframalpha.com/input/?i=(4+%2B+15+*+(x+%2F+36+)+**+0.25+%2B+(x+%2F+36)+%2F+5)+*+10 - - return Math.round((4 + 15 * Math.pow(constant, 0.25) + constant / 5) * 10); - } -}); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/styles/useTheme.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ useTheme) -/* harmony export */ }); -/* harmony import */ var _material_ui_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/styles/esm/useTheme/useTheme.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _defaultTheme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/defaultTheme.js"); - - - -function useTheme() { - var theme = (0,_material_ui_styles__WEBPACK_IMPORTED_MODULE_1__["default"])() || _defaultTheme__WEBPACK_IMPORTED_MODULE_2__["default"]; - - if (true) { - // eslint-disable-next-line react-hooks/rules-of-hooks - react__WEBPACK_IMPORTED_MODULE_0__.useDebugValue(theme); - } - - return theme; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/styles/withStyles.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _material_ui_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/styles/esm/withStyles/withStyles.js"); -/* harmony import */ var _defaultTheme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/defaultTheme.js"); - - - - -function withStyles(stylesOrCreator, options) { - return (0,_material_ui_styles__WEBPACK_IMPORTED_MODULE_1__["default"])(stylesOrCreator, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - defaultTheme: _defaultTheme__WEBPACK_IMPORTED_MODULE_2__["default"] - }, options)); -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (withStyles); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/styles/withTheme.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _material_ui_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@material-ui/styles/esm/withTheme/withTheme.js"); -/* harmony import */ var _defaultTheme__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/defaultTheme.js"); - - -var withTheme = (0,_material_ui_styles__WEBPACK_IMPORTED_MODULE_0__.withThemeCreator)({ - defaultTheme: _defaultTheme__WEBPACK_IMPORTED_MODULE_1__["default"] -}); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (withTheme); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/styles/zIndex.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -// We need to centralize the zIndex definitions as they work -// like global values in the browser. -var zIndex = { - mobileStepper: 1000, - speedDial: 1050, - appBar: 1100, - drawer: 1200, - modal: 1300, - snackbar: 1400, - tooltip: 1500 -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (zIndex); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/transitions/utils.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "getTransitionProps": () => (/* binding */ getTransitionProps), -/* harmony export */ "reflow": () => (/* binding */ reflow) -/* harmony export */ }); -var reflow = function reflow(node) { - return node.scrollTop; -}; -function getTransitionProps(props, options) { - var timeout = props.timeout, - _props$style = props.style, - style = _props$style === void 0 ? {} : _props$style; - return { - duration: style.transitionDuration || typeof timeout === 'number' ? timeout : timeout[options.mode] || 0, - delay: style.transitionDelay - }; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/useMediaQuery/useMediaQuery.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ useMediaQuery) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _material_ui_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@material-ui/styles/esm/useTheme/useTheme.js"); -/* harmony import */ var _material_ui_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@material-ui/styles/esm/getThemeProps/getThemeProps.js"); - - - -function useMediaQuery(queryInput) { - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var theme = (0,_material_ui_styles__WEBPACK_IMPORTED_MODULE_2__["default"])(); - var props = (0,_material_ui_styles__WEBPACK_IMPORTED_MODULE_3__["default"])({ - theme: theme, - name: 'MuiUseMediaQuery', - props: {} - }); - - if (true) { - if (typeof queryInput === 'function' && theme === null) { - console.error(['Material-UI: The `query` argument provided is invalid.', 'You are providing a function without a theme in the context.', 'One of the parent elements needs to use a ThemeProvider.'].join('\n')); - } - } - - var query = typeof queryInput === 'function' ? queryInput(theme) : queryInput; - query = query.replace(/^@media( ?)/m, ''); // Wait for jsdom to support the match media feature. - // All the browsers Material-UI support have this built-in. - // This defensive check is here for simplicity. - // Most of the time, the match media logic isn't central to people tests. - - var supportMatchMedia = typeof window !== 'undefined' && typeof window.matchMedia !== 'undefined'; - - var _props$options = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, options), - _props$options$defaul = _props$options.defaultMatches, - defaultMatches = _props$options$defaul === void 0 ? false : _props$options$defaul, - _props$options$matchM = _props$options.matchMedia, - matchMedia = _props$options$matchM === void 0 ? supportMatchMedia ? window.matchMedia : null : _props$options$matchM, - _props$options$noSsr = _props$options.noSsr, - noSsr = _props$options$noSsr === void 0 ? false : _props$options$noSsr, - _props$options$ssrMat = _props$options.ssrMatchMedia, - ssrMatchMedia = _props$options$ssrMat === void 0 ? null : _props$options$ssrMat; - - var _React$useState = react__WEBPACK_IMPORTED_MODULE_1__.useState(function () { - if (noSsr && supportMatchMedia) { - return matchMedia(query).matches; - } - - if (ssrMatchMedia) { - return ssrMatchMedia(query).matches; - } // Once the component is mounted, we rely on the - // event listeners to return the correct matches value. - - - return defaultMatches; - }), - match = _React$useState[0], - setMatch = _React$useState[1]; - - react__WEBPACK_IMPORTED_MODULE_1__.useEffect(function () { - var active = true; - - if (!supportMatchMedia) { - return undefined; - } - - var queryList = matchMedia(query); - - var updateMatch = function updateMatch() { - // Workaround Safari wrong implementation of matchMedia - // TODO can we remove it? - // https://github.com/mui-org/material-ui/pull/17315#issuecomment-528286677 - if (active) { - setMatch(queryList.matches); - } - }; - - updateMatch(); - queryList.addListener(updateMatch); - return function () { - active = false; - queryList.removeListener(updateMatch); - }; - }, [query, matchMedia, supportMatchMedia]); - - if (true) { - // eslint-disable-next-line react-hooks/rules-of-hooks - react__WEBPACK_IMPORTED_MODULE_1__.useDebugValue({ - query: query, - match: match - }); - } - - return match; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/utils/capitalize.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ capitalize) -/* harmony export */ }); - -// It should to be noted that this function isn't equivalent to `text-transform: capitalize`. -// -// A strict capitalization should uppercase the first letter of each word a the sentence. -// We only handle the first word. -function capitalize(string) { - if (typeof string !== 'string') { - throw new Error( true ? "Material-UI: capitalize(string) expects a string argument." : 0); - } - - return string.charAt(0).toUpperCase() + string.slice(1); -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/utils/createChainedFunction.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ createChainedFunction) -/* harmony export */ }); -/** - * Safe chained function - * - * Will only create a new function if needed, - * otherwise will pass back existing functions or null. - * - * @param {function} functions to chain - * @returns {function|null} - */ -function createChainedFunction() { - for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) { - funcs[_key] = arguments[_key]; - } - - return funcs.reduce(function (acc, func) { - if (func == null) { - return acc; - } - - if (true) { - if (typeof func !== 'function') { - console.error('Material-UI: Invalid Argument Type, must only provide functions, undefined, or null.'); - } - } - - return function chainedFunction() { - for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } - - acc.apply(this, args); - func.apply(this, args); - }; - }, function () {}); -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/utils/createSvgIcon.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ createSvgIcon) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _SvgIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@material-ui/core/esm/SvgIcon/SvgIcon.js"); - - - -/** - * Private module reserved for @material-ui/x packages. - */ - -function createSvgIcon(path, displayName) { - var Component = function Component(props, ref) { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_SvgIcon__WEBPACK_IMPORTED_MODULE_2__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - ref: ref - }, props), path); - }; - - if (true) { - // Need to set `displayName` on the inner component for React.memo. - // React prior to 16.14 ignores `displayName` on the wrapper. - Component.displayName = "".concat(displayName, "Icon"); - } - - Component.muiName = _SvgIcon__WEBPACK_IMPORTED_MODULE_2__["default"].muiName; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.memo( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(Component)); -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/utils/debounce.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ debounce) -/* harmony export */ }); -// Corresponds to 10 frames at 60 Hz. -// A few bytes payload overhead when lodash/debounce is ~3 kB and debounce ~300 B. -function debounce(func) { - var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 166; - var timeout; - - function debounced() { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - // eslint-disable-next-line consistent-this - var that = this; - - var later = function later() { - func.apply(that, args); - }; - - clearTimeout(timeout); - timeout = setTimeout(later, wait); - } - - debounced.clear = function () { - clearTimeout(timeout); - }; - - return debounced; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/utils/deprecatedPropType.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ deprecatedPropType) -/* harmony export */ }); -function deprecatedPropType(validator, reason) { - if (false) {} - - return function (props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; - - if (typeof props[propName] !== 'undefined') { - return new Error("The ".concat(location, " `").concat(propFullNameSafe, "` of ") + "`".concat(componentNameSafe, "` is deprecated. ").concat(reason)); - } - - return null; - }; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/utils/getScrollbarSize.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ getScrollbarSize) -/* harmony export */ }); -// A change of the browser zoom change the scrollbar size. -// Credit https://github.com/twbs/bootstrap/blob/3ffe3a5d82f6f561b82ff78d82b32a7d14aed558/js/src/modal.js#L512-L519 -function getScrollbarSize() { - var scrollDiv = document.createElement('div'); - scrollDiv.style.width = '99px'; - scrollDiv.style.height = '99px'; - scrollDiv.style.position = 'absolute'; - scrollDiv.style.top = '-9999px'; - scrollDiv.style.overflow = 'scroll'; - document.body.appendChild(scrollDiv); - var scrollbarSize = scrollDiv.offsetWidth - scrollDiv.clientWidth; - document.body.removeChild(scrollDiv); - return scrollbarSize; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/utils/index.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "capitalize": () => (/* reexport safe */ _capitalize__WEBPACK_IMPORTED_MODULE_0__["default"]), -/* harmony export */ "createChainedFunction": () => (/* reexport safe */ _createChainedFunction__WEBPACK_IMPORTED_MODULE_1__["default"]), -/* harmony export */ "createSvgIcon": () => (/* reexport safe */ _createSvgIcon__WEBPACK_IMPORTED_MODULE_2__["default"]), -/* harmony export */ "debounce": () => (/* reexport safe */ _debounce__WEBPACK_IMPORTED_MODULE_3__["default"]), -/* harmony export */ "deprecatedPropType": () => (/* reexport safe */ _deprecatedPropType__WEBPACK_IMPORTED_MODULE_4__["default"]), -/* harmony export */ "isMuiElement": () => (/* reexport safe */ _isMuiElement__WEBPACK_IMPORTED_MODULE_5__["default"]), -/* harmony export */ "ownerDocument": () => (/* reexport safe */ _ownerDocument__WEBPACK_IMPORTED_MODULE_6__["default"]), -/* harmony export */ "ownerWindow": () => (/* reexport safe */ _ownerWindow__WEBPACK_IMPORTED_MODULE_7__["default"]), -/* harmony export */ "requirePropFactory": () => (/* reexport safe */ _requirePropFactory__WEBPACK_IMPORTED_MODULE_8__["default"]), -/* harmony export */ "setRef": () => (/* reexport safe */ _setRef__WEBPACK_IMPORTED_MODULE_9__["default"]), -/* harmony export */ "unstable_useId": () => (/* reexport safe */ _unstable_useId__WEBPACK_IMPORTED_MODULE_14__["default"]), -/* harmony export */ "unsupportedProp": () => (/* reexport safe */ _unsupportedProp__WEBPACK_IMPORTED_MODULE_10__["default"]), -/* harmony export */ "useControlled": () => (/* reexport safe */ _useControlled__WEBPACK_IMPORTED_MODULE_11__["default"]), -/* harmony export */ "useEventCallback": () => (/* reexport safe */ _useEventCallback__WEBPACK_IMPORTED_MODULE_12__["default"]), -/* harmony export */ "useForkRef": () => (/* reexport safe */ _useForkRef__WEBPACK_IMPORTED_MODULE_13__["default"]), -/* harmony export */ "useIsFocusVisible": () => (/* reexport safe */ _useIsFocusVisible__WEBPACK_IMPORTED_MODULE_15__["default"]) -/* harmony export */ }); -/* harmony import */ var _capitalize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/capitalize.js"); -/* harmony import */ var _createChainedFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/createChainedFunction.js"); -/* harmony import */ var _createSvgIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/createSvgIcon.js"); -/* harmony import */ var _debounce__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/debounce.js"); -/* harmony import */ var _deprecatedPropType__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/deprecatedPropType.js"); -/* harmony import */ var _isMuiElement__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/isMuiElement.js"); -/* harmony import */ var _ownerDocument__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/ownerDocument.js"); -/* harmony import */ var _ownerWindow__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/ownerWindow.js"); -/* harmony import */ var _requirePropFactory__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/requirePropFactory.js"); -/* harmony import */ var _setRef__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/setRef.js"); -/* harmony import */ var _unsupportedProp__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/unsupportedProp.js"); -/* harmony import */ var _useControlled__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useControlled.js"); -/* harmony import */ var _useEventCallback__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useEventCallback.js"); -/* harmony import */ var _useForkRef__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useForkRef.js"); -/* harmony import */ var _unstable_useId__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/unstable_useId.js"); -/* harmony import */ var _useIsFocusVisible__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useIsFocusVisible.js"); - - - - - - - - - - - - - - // eslint-disable-next-line camelcase - - - - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/utils/isMuiElement.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ isMuiElement) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); - -function isMuiElement(element, muiNames) { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(element) && muiNames.indexOf(element.type.muiName) !== -1; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/utils/ownerDocument.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ ownerDocument) -/* harmony export */ }); -function ownerDocument(node) { - return node && node.ownerDocument || document; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/utils/ownerWindow.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ ownerWindow) -/* harmony export */ }); -/* harmony import */ var _ownerDocument__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/ownerDocument.js"); - -function ownerWindow(node) { - var doc = (0,_ownerDocument__WEBPACK_IMPORTED_MODULE_0__["default"])(node); - return doc.defaultView || window; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/utils/requirePropFactory.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ requirePropFactory) -/* harmony export */ }); -function requirePropFactory(componentNameInError) { - if (false) {} - - var requireProp = function requireProp(requiredProp) { - return function (props, propName, componentName, location, propFullName) { - var propFullNameSafe = propFullName || propName; - - if (typeof props[propName] !== 'undefined' && !props[requiredProp]) { - return new Error("The prop `".concat(propFullNameSafe, "` of ") + "`".concat(componentNameInError, "` must be used on `").concat(requiredProp, "`.")); - } - - return null; - }; - }; - - return requireProp; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/utils/setRef.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ setRef) -/* harmony export */ }); -// TODO v5: consider to make it private -function setRef(ref, value) { - if (typeof ref === 'function') { - ref(value); - } else if (ref) { - ref.current = value; - } -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/utils/unstable_useId.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ useId) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); - -/** - * Private module reserved for @material-ui/x packages. - */ - -function useId(idOverride) { - var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__.useState(idOverride), - defaultId = _React$useState[0], - setDefaultId = _React$useState[1]; - - var id = idOverride || defaultId; - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () { - if (defaultId == null) { - // Fallback to this default id when possible. - // Use the random value for client-side rendering only. - // We can't use it server-side. - setDefaultId("mui-".concat(Math.round(Math.random() * 1e5))); - } - }, [defaultId]); - return id; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/utils/unsupportedProp.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ unsupportedProp) -/* harmony export */ }); -function unsupportedProp(props, propName, componentName, location, propFullName) { - if (false) {} - - var propFullNameSafe = propFullName || propName; - - if (typeof props[propName] !== 'undefined') { - return new Error("The prop `".concat(propFullNameSafe, "` is not supported. Please remove it.")); - } - - return null; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/utils/useControlled.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ useControlled) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */ - -function useControlled(_ref) { - var controlled = _ref.controlled, - defaultProp = _ref.default, - name = _ref.name, - _ref$state = _ref.state, - state = _ref$state === void 0 ? 'value' : _ref$state; - - var _React$useRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(controlled !== undefined), - isControlled = _React$useRef.current; - - var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__.useState(defaultProp), - valueState = _React$useState[0], - setValue = _React$useState[1]; - - var value = isControlled ? controlled : valueState; - - if (true) { - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () { - if (isControlled !== (controlled !== undefined)) { - console.error(["Material-UI: A component is changing the ".concat(isControlled ? '' : 'un', "controlled ").concat(state, " state of ").concat(name, " to be ").concat(isControlled ? 'un' : '', "controlled."), 'Elements should not switch from uncontrolled to controlled (or vice versa).', "Decide between using a controlled or uncontrolled ".concat(name, " ") + 'element for the lifetime of the component.', "The nature of the state is determined during the first render, it's considered controlled if the value is not `undefined`.", 'More info: https://fb.me/react-controlled-components'].join('\n')); - } - }, [controlled]); - - var _React$useRef2 = react__WEBPACK_IMPORTED_MODULE_0__.useRef(defaultProp), - defaultValue = _React$useRef2.current; - - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () { - if (!isControlled && defaultValue !== defaultProp) { - console.error(["Material-UI: A component is changing the default ".concat(state, " state of an uncontrolled ").concat(name, " after being initialized. ") + "To suppress this warning opt to use a controlled ".concat(name, ".")].join('\n')); - } - }, [JSON.stringify(defaultProp)]); - } - - var setValueIfUncontrolled = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function (newValue) { - if (!isControlled) { - setValue(newValue); - } - }, []); - return [value, setValueIfUncontrolled]; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/utils/useEventCallback.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ useEventCallback) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); - -var useEnhancedEffect = typeof window !== 'undefined' ? react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_0__.useEffect; -/** - * https://github.com/facebook/react/issues/14099#issuecomment-440013892 - * - * @param {function} fn - */ - -function useEventCallback(fn) { - var ref = react__WEBPACK_IMPORTED_MODULE_0__.useRef(fn); - useEnhancedEffect(function () { - ref.current = fn; - }); - return react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function () { - return (0, ref.current).apply(void 0, arguments); - }, []); -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/utils/useForkRef.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ useForkRef) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _setRef__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/setRef.js"); - - -function useForkRef(refA, refB) { - /** - * This will create a new function if the ref props change and are defined. - * This means react will call the old forkRef with `null` and the new forkRef - * with the ref. Cleanup naturally emerges from this behavior - */ - return react__WEBPACK_IMPORTED_MODULE_0__.useMemo(function () { - if (refA == null && refB == null) { - return null; - } - - return function (refValue) { - (0,_setRef__WEBPACK_IMPORTED_MODULE_1__["default"])(refA, refValue); - (0,_setRef__WEBPACK_IMPORTED_MODULE_1__["default"])(refB, refValue); - }; - }, [refA, refB]); -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/esm/utils/useIsFocusVisible.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ useIsFocusVisible), -/* harmony export */ "teardown": () => (/* binding */ teardown) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/react-dom/index.js"); -// based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js - - -var hadKeyboardEvent = true; -var hadFocusVisibleRecently = false; -var hadFocusVisibleRecentlyTimeout = null; -var inputTypesWhitelist = { - text: true, - search: true, - url: true, - tel: true, - email: true, - password: true, - number: true, - date: true, - month: true, - week: true, - time: true, - datetime: true, - 'datetime-local': true -}; -/** - * Computes whether the given element should automatically trigger the - * `focus-visible` class being added, i.e. whether it should always match - * `:focus-visible` when focused. - * @param {Element} node - * @return {boolean} - */ - -function focusTriggersKeyboardModality(node) { - var type = node.type, - tagName = node.tagName; - - if (tagName === 'INPUT' && inputTypesWhitelist[type] && !node.readOnly) { - return true; - } - - if (tagName === 'TEXTAREA' && !node.readOnly) { - return true; - } - - if (node.isContentEditable) { - return true; - } - - return false; -} -/** - * Keep track of our keyboard modality state with `hadKeyboardEvent`. - * If the most recent user interaction was via the keyboard; - * and the key press did not include a meta, alt/option, or control key; - * then the modality is keyboard. Otherwise, the modality is not keyboard. - * @param {KeyboardEvent} event - */ - - -function handleKeyDown(event) { - if (event.metaKey || event.altKey || event.ctrlKey) { - return; - } - - hadKeyboardEvent = true; -} -/** - * If at any point a user clicks with a pointing device, ensure that we change - * the modality away from keyboard. - * This avoids the situation where a user presses a key on an already focused - * element, and then clicks on a different element, focusing it with a - * pointing device, while we still think we're in keyboard modality. - */ - - -function handlePointerDown() { - hadKeyboardEvent = false; -} - -function handleVisibilityChange() { - if (this.visibilityState === 'hidden') { - // If the tab becomes active again, the browser will handle calling focus - // on the element (Safari actually calls it twice). - // If this tab change caused a blur on an element with focus-visible, - // re-apply the class when the user switches back to the tab. - if (hadFocusVisibleRecently) { - hadKeyboardEvent = true; - } - } -} - -function prepare(doc) { - doc.addEventListener('keydown', handleKeyDown, true); - doc.addEventListener('mousedown', handlePointerDown, true); - doc.addEventListener('pointerdown', handlePointerDown, true); - doc.addEventListener('touchstart', handlePointerDown, true); - doc.addEventListener('visibilitychange', handleVisibilityChange, true); -} - -function teardown(doc) { - doc.removeEventListener('keydown', handleKeyDown, true); - doc.removeEventListener('mousedown', handlePointerDown, true); - doc.removeEventListener('pointerdown', handlePointerDown, true); - doc.removeEventListener('touchstart', handlePointerDown, true); - doc.removeEventListener('visibilitychange', handleVisibilityChange, true); -} - -function isFocusVisible(event) { - var target = event.target; - - try { - return target.matches(':focus-visible'); - } catch (error) {} // browsers not implementing :focus-visible will throw a SyntaxError - // we use our own heuristic for those browsers - // rethrow might be better if it's not the expected error but do we really - // want to crash if focus-visible malfunctioned? - // no need for validFocusTarget check. the user does that by attaching it to - // focusable events only - - - return hadKeyboardEvent || focusTriggersKeyboardModality(target); -} -/** - * Should be called if a blur event is fired on a focus-visible element - */ - - -function handleBlurVisible() { - // To detect a tab/window switch, we look for a blur event followed - // rapidly by a visibility change. - // If we don't see a visibility change within 100ms, it's probably a - // regular focus change. - hadFocusVisibleRecently = true; - window.clearTimeout(hadFocusVisibleRecentlyTimeout); - hadFocusVisibleRecentlyTimeout = window.setTimeout(function () { - hadFocusVisibleRecently = false; - }, 100); -} - -function useIsFocusVisible() { - var ref = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function (instance) { - var node = react_dom__WEBPACK_IMPORTED_MODULE_1__.findDOMNode(instance); - - if (node != null) { - prepare(node.ownerDocument); - } - }, []); - - if (true) { - // eslint-disable-next-line react-hooks/rules-of-hooks - react__WEBPACK_IMPORTED_MODULE_0__.useDebugValue(isFocusVisible); - } - - return { - isFocusVisible: isFocusVisible, - onBlurVisible: handleBlurVisible, - ref: ref - }; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/locale/index.js": -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.zhCN = exports.viVN = exports.ukUA = exports.trTR = exports.svSE = exports.skSK = exports.ruRU = exports.roRO = exports.ptPT = exports.ptBR = exports.plPL = exports.nlNL = exports.koKR = exports.jaJP = exports.itIT = exports.isIS = exports.idID = exports.hyAM = exports.huHU = exports.hiIN = exports.heIL = exports.frFR = exports.fiFI = exports.faIR = exports.etEE = exports.esES = exports.enUS = exports.deDE = exports.csCZ = exports.caES = exports.bgBG = exports.azAZ = void 0; -var azAZ = { - props: { - MuiBreadcrumbs: { - expandText: 'Yolu göstər' - }, - MuiTablePagination: { - backIconButtonText: 'Əvvəlki səhifə', - labelRowsPerPage: 'Səhifəyə düşən sətrlər:', - labelDisplayedRows: function labelDisplayedRows(_ref) { - var from = _ref.from, - to = _ref.to, - count = _ref.count; - return "".concat(from, "-").concat(to, " d\u0259n ").concat(count !== -1 ? count : "more than ".concat(to)); - }, - nextIconButtonText: 'Növbəti səhifə' - }, - MuiRating: { - getLabelText: function getLabelText(value) { - var pluralForm = 'Ulduz'; - var lastDigit = value % 10; - - if (lastDigit > 1 && lastDigit < 5) { - pluralForm = 'Ulduzlar'; - } - - return "".concat(value, " ").concat(pluralForm); - }, - emptyLabelText: 'Boş' - }, - MuiAutocomplete: { - clearText: 'Silmək', - closeText: 'Bağlamaq', - loadingText: 'Yüklənir…', - noOptionsText: 'Seçimlər mövcud deyil', - openText: 'Открыть' - }, - MuiAlert: { - closeText: 'Bağlamaq' - }, - MuiPagination: { - 'aria-label': 'Səhifənin naviqasiyası', - getItemAriaLabel: function getItemAriaLabel(type, page, selected) { - if (type === 'page') { - return "".concat(page, " ").concat(selected ? 'səhifə' : 'səhifəyə keç'); - } - - if (type === 'first') { - return 'Birinci səhifəyə keç'; - } - - if (type === 'last') { - return 'Sonuncu səhifəyə keç'; - } - - if (type === 'next') { - return 'Növbəti səhifəyə keç'; - } - - if (type === 'previous') { - return 'Əvvəlki səhifəyə keç'; - } - - return undefined; - } - } - } -}; -exports.azAZ = azAZ; -var bgBG = { - props: { - MuiBreadcrumbs: { - expandText: 'Показване на пътя' - }, - MuiTablePagination: { - backIconButtonText: 'Предишна страница', - labelRowsPerPage: 'Редове на страница:', - labelDisplayedRows: function labelDisplayedRows(_ref2) { - var from = _ref2.from, - to = _ref2.to, - count = _ref2.count; - return "".concat(from, "-").concat(to, " \u043E\u0442 ").concat(count !== -1 ? count : "more than ".concat(to)); - }, - nextIconButtonText: 'Следваща страница' - }, - MuiRating: { - getLabelText: function getLabelText(value) { - return "".concat(value, " \u0417\u0432\u0435\u0437\u0434").concat(value !== 1 ? 'и' : 'а'); - }, - emptyLabelText: 'Изчисти' - }, - MuiAutocomplete: { - clearText: 'Изчисти', - closeText: 'Затвори', - loadingText: 'Зареждане…', - noOptionsText: 'Няма налични опции', - openText: 'Отвори' - }, - MuiAlert: { - closeText: 'Затвори' - }, - MuiPagination: { - 'aria-label': 'Пагинация', - getItemAriaLabel: function getItemAriaLabel(type, page, selected) { - if (type === 'page') { - return "".concat(selected ? '' : 'Към ', "\u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430 ").concat(page); - } - - if (type === 'first') { - return 'Отиди на първата страница'; - } - - if (type === 'last') { - return 'Отиди на последната страница'; - } - - if (type === 'next') { - return 'Отиди на следващата страница'; - } - - if (type === 'previous') { - return 'Отиди на предишната страница'; - } - - return undefined; - } - } - } -}; -exports.bgBG = bgBG; -var caES = { - props: { - // MuiBreadcrumbs: { - // expandText: 'Show path', - // }, - MuiTablePagination: { - backIconButtonText: 'Pàgina anterior', - labelRowsPerPage: 'Files per pàgina:', - labelDisplayedRows: function labelDisplayedRows(_ref3) { - var from = _ref3.from, - to = _ref3.to, - count = _ref3.count; - return "".concat(from, "-").concat(to, " de ").concat(count !== -1 ? count : "more than ".concat(to)); - }, - nextIconButtonText: 'Següent pàgina' - }, - MuiRating: { - getLabelText: function getLabelText(value) { - return "".concat(value, " ").concat(value !== 1 ? 'Estrelles' : 'Estrella'); - }, - emptyLabelText: 'Buit' - }, - MuiAutocomplete: { - clearText: 'Netejar', - closeText: 'Tancar', - loadingText: 'Carregant…', - noOptionsText: 'Sense opcions', - openText: 'Obert' - }, - MuiAlert: { - closeText: 'Tancat' - } // MuiPagination: { - // 'aria-label': 'Pagination navigation', - // getItemAriaLabel: (type, page, selected) => { - // if (type === 'page') { - // return `${selected ? '' : 'Go to '}page ${page}`; - // } - // if (type === 'first') { - // return 'Go to first page'; - // } - // if (type === 'last') { - // return 'Go to last page'; - // } - // if (type === 'next') { - // return 'Go to next page'; - // } - // if (type === 'previous') { - // return 'Go to previous page'; - // } - // return undefined; - // }, - // }, - - } -}; -exports.caES = caES; -var csCZ = { - props: { - MuiBreadcrumbs: { - expandText: 'Ukázat cestu' - }, - MuiTablePagination: { - backIconButtonText: 'Předchozí stránka', - labelRowsPerPage: 'Řádků na stránce:', - labelDisplayedRows: function labelDisplayedRows(_ref4) { - var from = _ref4.from, - to = _ref4.to, - count = _ref4.count; - return "".concat(from, "-").concat(to, " z ").concat(count !== -1 ? count : "more than ".concat(to)); - }, - nextIconButtonText: 'Další stránka' - }, - MuiRating: { - getLabelText: function getLabelText(value) { - if (value === 1) { - return "".concat(value, " hv\u011Bzdi\u010Dka"); - } - - if (value >= 2 && value <= 4) { - return "".concat(value, " hv\u011Bzdi\u010Dky"); - } - - return "".concat(value, " hv\u011Bzdi\u010Dek"); - }, - emptyLabelText: 'Prázdné' - }, - MuiAutocomplete: { - clearText: 'Vymazat', - closeText: 'Zavřít', - loadingText: 'Načítání…', - noOptionsText: 'Žádné možnosti', - openText: 'Otevřít' - }, - MuiAlert: { - closeText: 'Zavřít' - }, - MuiPagination: { - 'aria-label': 'Navigace stránkováním', - getItemAriaLabel: function getItemAriaLabel(type, page, selected) { - if (type === 'page') { - return "".concat(selected ? '' : 'Jít na ').concat(page, " str\xE1nku"); - } - - if (type === 'first') { - return 'Jít na první stránku'; - } - - if (type === 'last') { - return 'Jít na poslední stránku'; - } - - if (type === 'next') { - return 'Jít na další stránku'; - } - - if (type === 'previous') { - return 'Jít na předchozí stránku'; - } - - return undefined; - } - } - } -}; -exports.csCZ = csCZ; -var deDE = { - props: { - MuiBreadcrumbs: { - expandText: 'Pfad anzeigen' - }, - MuiTablePagination: { - backIconButtonText: 'Nächste Seite', - labelRowsPerPage: 'Zeilen pro Seite:', - labelDisplayedRows: function labelDisplayedRows(_ref5) { - var from = _ref5.from, - to = _ref5.to, - count = _ref5.count; - return "".concat(from, "-").concat(to, " von ").concat(count !== -1 ? count : "more than ".concat(to)); - }, - nextIconButtonText: 'Nächste Seite' - }, - MuiRating: { - getLabelText: function getLabelText(value) { - return "".concat(value, " ").concat(value !== 1 ? 'Sterne' : 'Stern'); - }, - emptyLabelText: 'Keine Wertung' - }, - MuiAutocomplete: { - clearText: 'Leeren', - closeText: 'Schließen', - loadingText: 'Wird geladen…', - noOptionsText: 'Keine Optionen', - openText: 'Öffnen' - }, - MuiAlert: { - closeText: 'Schließen' - }, - MuiPagination: { - 'aria-label': 'Navigation via Seitennummerierung', - getItemAriaLabel: function getItemAriaLabel(type, page, selected) { - if (type === 'page') { - return "".concat(selected ? '' : 'Gehe zu ', "Seite ").concat(page); - } - - if (type === 'first') { - return 'Zur ersten Seite'; - } - - if (type === 'last') { - return 'Zur letzten Seite'; - } - - if (type === 'next') { - return 'Zur nächsten Seite'; - } - - if (type === 'previous') { - return 'Zur vorherigen Seite'; - } - - return undefined; - } - } - } -}; // default - -exports.deDE = deDE; -var enUS = { - /* - props: { - MuiBreadcrumbs: { - expandText: 'Show path', - }, - MuiTablePagination: { - backIconButtonText: 'Previous page', - labelRowsPerPage: 'Rows per page:', - labelDisplayedRows: ({ from, to, count }) => - `${from}-${to} of ${count !== -1 ? count : `more than ${to}`}`, - nextIconButtonText: 'Next page', - }, - MuiRating: { - getLabelText: value => `${value} Star${value !== 1 ? 's' : ''}`, - emptyLabelText: 'Empty', - }, - MuiAutocomplete: { - clearText: 'Clear', - closeText: 'Close', - loadingText: 'Loading…', - noOptionsText: 'No options', - openText: 'Open', - }, - MuiAlert: { - closeText: 'Close', - }, - MuiPagination: { - 'aria-label': 'Pagination navigation', - getItemAriaLabel: (type, page, selected) => { - if (type === 'page') { - return `${selected ? '' : 'Go to '}page ${page}`; - } - if (type === 'first') { - return 'Go to first page'; - } - if (type === 'last') { - return 'Go to last page'; - } - if (type === 'next') { - return 'Go to next page'; - } - if (type === 'previous') { - return 'Go to previous page'; - } - return undefined; - }, - }, - }, - */ -}; -exports.enUS = enUS; -var esES = { - props: { - MuiBreadcrumbs: { - expandText: 'Mostrar ruta' - }, - MuiTablePagination: { - backIconButtonText: 'Página anterior', - labelRowsPerPage: 'Filas por página:', - labelDisplayedRows: function labelDisplayedRows(_ref6) { - var from = _ref6.from, - to = _ref6.to, - count = _ref6.count; - return "".concat(from, "-").concat(to, " de ").concat(count !== -1 ? count : "more than ".concat(to)); - }, - nextIconButtonText: 'Siguiente página' - }, - MuiRating: { - getLabelText: function getLabelText(value) { - return "".concat(value, " Estrella").concat(value !== 1 ? 's' : ''); - }, - emptyLabelText: 'Vacío' - }, - MuiAutocomplete: { - clearText: 'Limpiar', - closeText: 'Cerrar', - loadingText: 'Cargando…', - noOptionsText: 'Sin opciones', - openText: 'Abierto' - }, - MuiAlert: { - closeText: 'Cerrar' - }, - MuiPagination: { - 'aria-label': 'Paginador', - getItemAriaLabel: function getItemAriaLabel(type, page, selected) { - if (type === 'page') { - return "".concat(selected ? '' : 'Ir a la ', "p\xE1gina ").concat(page); - } - - if (type === 'first') { - return 'Ir a la primera página'; - } - - if (type === 'last') { - return 'Ir a la última página'; - } - - if (type === 'next') { - return 'Ir a la página siguiente'; - } - - if (type === 'previous') { - return 'Ir a la página anterior'; - } - - return undefined; - } - } - } -}; -exports.esES = esES; -var etEE = { - props: { - MuiBreadcrumbs: { - expandText: 'Näita teed' - }, - MuiTablePagination: { - backIconButtonText: 'Eelmine lehekülg', - labelRowsPerPage: 'Ridu leheküljel:', - labelDisplayedRows: function labelDisplayedRows(_ref7) { - var from = _ref7.from, - to = _ref7.to, - count = _ref7.count; - return "".concat(from, "-").concat(to, " / ").concat(count !== -1 ? count : "more than ".concat(to)); - }, - nextIconButtonText: 'Järgmine lehekülg' - }, - MuiRating: { - getLabelText: function getLabelText(value) { - return "".concat(value, " T\xE4rn").concat(value !== 1 ? 'i' : ''); - }, - emptyLabelText: 'Tühi' - }, - MuiAutocomplete: { - clearText: 'Tühjenda', - closeText: 'Sulge', - loadingText: 'Laen…', - noOptionsText: 'Valikuid ei ole', - openText: 'Ava' - }, - MuiAlert: { - closeText: 'Sulge' - }, - MuiPagination: { - 'aria-label': 'Lehekülgede valik', - getItemAriaLabel: function getItemAriaLabel(type, page, selected) { - if (type === 'page') { - return "".concat(selected ? '' : 'Vali ', "lehek\xFClg ").concat(page); - } - - if (type === 'first') { - return 'Vali esimene lehekülg'; - } - - if (type === 'last') { - return 'Vali viimane lehekülg'; - } - - if (type === 'next') { - return 'Vali järgmine lehekülg'; - } - - if (type === 'previous') { - return 'Vali eelmine lehekülg'; - } - - return undefined; - } - } - } -}; -exports.etEE = etEE; -var faIR = { - props: { - // MuiBreadcrumbs: { - // expandText: 'Show path', - // }, - MuiBreadcrumbs: { - expandText: 'نمایش مسیر' - }, - MuiTablePagination: { - backIconButtonText: 'صفحهٔ قبل', - labelRowsPerPage: 'تعداد سطرهای هر صفحه:', - labelDisplayedRows: function labelDisplayedRows(_ref8) { - var from = _ref8.from, - to = _ref8.to, - count = _ref8.count; - return "".concat(from, "-").concat(to, " \u0627\u0632 ").concat(count !== -1 ? count : "more than ".concat(to)); - }, - nextIconButtonText: 'صفحهٔ بعد' - }, - MuiRating: { - getLabelText: function getLabelText(value) { - return "".concat(value, " \u0633\u062A\u0627\u0631\u0647"); - }, - emptyLabelText: 'خالی' - }, - MuiAutocomplete: { - clearText: 'پاککردن', - closeText: 'بستن', - loadingText: 'در حال بارگذاری…', - noOptionsText: 'بینتیجه', - openText: 'بازکردن' - }, - MuiAlert: { - closeText: 'بستن' - }, - MuiPagination: { - 'aria-label': 'ناوبری صفحه', - getItemAriaLabel: function getItemAriaLabel(type, page, selected) { - if (type === 'page') { - return "".concat(selected ? '' : 'رفتن به ', "\u0635\u0641\u062D\u0647\u0654 ").concat(page); - } - - if (type === 'first') { - return 'رفتن به اولین صفحه'; - } - - if (type === 'last') { - return 'رفتن به آخرین صفحه'; - } - - if (type === 'next') { - return 'رفتن به صفحهی بعدی'; - } - - if (type === 'previous') { - return 'رفتن به صفحهی قبلی'; - } - - return undefined; - } - } - } -}; -exports.faIR = faIR; -var fiFI = { - props: { - MuiBreadcrumbs: { - expandText: 'Näytä reitti' - }, - MuiTablePagination: { - backIconButtonText: 'Edellinen sivu', - labelRowsPerPage: 'Rivejä per sivu:', - labelDisplayedRows: function labelDisplayedRows(_ref9) { - var from = _ref9.from, - to = _ref9.to, - count = _ref9.count; - return "".concat(from, "-").concat(to, " / ").concat(count !== -1 ? count : "more than ".concat(to)); - }, - nextIconButtonText: 'Seuraava sivu' - }, - MuiRating: { - getLabelText: function getLabelText(value) { - return "".concat(value, " T\xE4ht").concat(value !== 1 ? 'eä' : 'i'); - }, - emptyLabelText: 'Tyhjä' - }, - MuiAutocomplete: { - clearText: 'Tyhjennä', - closeText: 'Sulje', - loadingText: 'Ladataan…', - noOptionsText: 'Ei valintoja', - openText: 'Avaa' - }, - MuiAlert: { - closeText: 'Sulje' - }, - MuiPagination: { - 'aria-label': 'Sivutus navigaatio', - getItemAriaLabel: function getItemAriaLabel(type, page, selected) { - if (type === 'page') { - return "".concat(selected ? 'sivu' : 'Mene sivulle', " ").concat(page); - } - - if (type === 'first') { - return 'Mene ensimmäiselle sivulle'; - } - - if (type === 'last') { - return 'Mene viimeiselle sivulle'; - } - - if (type === 'next') { - return 'Mene seuraavalle sivulle'; - } - - if (type === 'previous') { - return 'Mene edelliselle sivulle'; - } - - return undefined; - } - } - } -}; -exports.fiFI = fiFI; -var frFR = { - props: { - MuiBreadcrumbs: { - expandText: 'Montrer le chemin' - }, - MuiTablePagination: { - backIconButtonText: 'Page précédente', - labelRowsPerPage: 'Lignes par page :', - labelDisplayedRows: function labelDisplayedRows(_ref10) { - var from = _ref10.from, - to = _ref10.to, - count = _ref10.count; - return "".concat(from, "-").concat(to, " sur ").concat(count !== -1 ? count : "plus que ".concat(to)); - }, - nextIconButtonText: 'Page suivante' - }, - MuiRating: { - getLabelText: function getLabelText(value) { - return "".concat(value, " Etoile").concat(value !== 1 ? 's' : ''); - }, - emptyLabelText: 'Vide' - }, - MuiAutocomplete: { - clearText: 'Vider', - closeText: 'Fermer', - loadingText: 'Chargement…', - noOptionsText: 'Pas de résultats', - openText: 'Ouvrir' - }, - MuiAlert: { - closeText: 'Fermer' - }, - MuiPagination: { - 'aria-label': 'navigation de pagination', - getItemAriaLabel: function getItemAriaLabel(type, page, selected) { - if (type === 'page') { - return "".concat(selected ? '' : 'Aller à la ', "page ").concat(page); - } - - if (type === 'first') { - return 'Aller à la première page'; - } - - if (type === 'last') { - return 'Aller à la dernière page'; - } - - if (type === 'next') { - return 'Aller à la page suivante'; - } - - if (type === 'previous') { - return 'Aller à la page précédente'; - } - - return undefined; - } - } - } -}; -exports.frFR = frFR; -var heIL = { - props: { - // MuiBreadcrumbs: { - // expandText: 'Show path', - // }, - MuiTablePagination: { - backIconButtonText: 'העמוד הקודם', - labelRowsPerPage: 'שורות בעמוד:', - labelDisplayedRows: function labelDisplayedRows(_ref11) { - var from = _ref11.from, - to = _ref11.to, - count = _ref11.count; - return "".concat(from, "-").concat(to, " \u05DE\u05EA\u05D5\u05DA ").concat(count !== -1 ? count : "more than ".concat(to)); - }, - nextIconButtonText: 'העמוד הבא' - }, - MuiRating: { - getLabelText: function getLabelText(value) { - return "".concat(value, " \u05DB\u05D5\u05DB\u05D1").concat(value !== 1 ? 'ים' : ''); - }, - emptyLabelText: 'ריק' - }, - MuiAutocomplete: { - clearText: 'נקה', - closeText: 'סגור', - loadingText: 'טוען…', - noOptionsText: 'אין אופציות', - openText: 'פתח' - }, - MuiAlert: { - closeText: 'סגור' - } // MuiPagination: { - // 'aria-label': 'Pagination navigation', - // getItemAriaLabel: (type, page, selected) => { - // if (type === 'page') { - // return `${selected ? '' : 'Go to '}page ${page}`; - // } - // if (type === 'first') { - // return 'Go to first page'; - // } - // if (type === 'last') { - // return 'Go to last page'; - // } - // if (type === 'next') { - // return 'Go to next page'; - // } - // if (type === 'previous') { - // return 'Go to previous page'; - // } - // return undefined; - // }, - // }, - - } -}; -exports.heIL = heIL; -var hiIN = { - props: { - MuiBreadcrumbs: { - expandText: 'रास्ता दिखायें' - }, - MuiTablePagination: { - backIconButtonText: 'पिछला पृष्ठ', - labelRowsPerPage: 'पंक्तियाँ प्रति पृष्ठ:', - labelDisplayedRows: function labelDisplayedRows(_ref12) { - var from = _ref12.from, - to = _ref12.to, - count = _ref12.count; - return "".concat(from, "-").concat(to === -1 ? count : to, " \u0915\u0941\u0932 ").concat(count, " \u092E\u0947\u0902"); - }, - nextIconButtonText: 'अगला पृष्ठ' - }, - MuiRating: { - getLabelText: function getLabelText(value) { - return "".concat(value, " \u0924\u093E\u0930").concat(value !== 1 ? 'े' : 'ा'); - }, - emptyLabelText: 'रिक्त' - }, - MuiAutocomplete: { - clearText: 'हटायें', - closeText: 'बंद करें', - loadingText: 'लोड हो रहा है…', - noOptionsText: 'कोई विकल्प नहीं', - openText: 'खोलें' - }, - MuiAlert: { - closeText: 'बंद करें' - }, - MuiPagination: { - 'aria-label': 'पृस्ठानुसार संचालन', - getItemAriaLabel: function getItemAriaLabel(type, page, selected) { - if (type === 'page') { - return "\u092A\u0943\u0937\u094D\u0920 ".concat(page, " ").concat(selected ? '' : ' पर जाएँ'); - } - - if (type === 'first') { - return 'पहले पृष्ठ पर जाएँ'; - } - - if (type === 'last') { - return 'अंतिम पृष्ठ पर जाएँ'; - } - - if (type === 'next') { - return 'अगले पृष्ठ पर जाएँ'; - } - - if (type === 'previous') { - return 'पिछले पृष्ठ पर जाएँ'; - } - - return undefined; - } - } - } -}; -exports.hiIN = hiIN; -var huHU = { - props: { - MuiBreadcrumbs: { - expandText: 'Útvonal' - }, - MuiTablePagination: { - backIconButtonText: 'Előző oldal', - labelRowsPerPage: 'Sorok száma:', - labelDisplayedRows: function labelDisplayedRows(_ref13) { - var from = _ref13.from, - to = _ref13.to, - count = _ref13.count; - return "".concat(from, "-").concat(to, " / ").concat(count !== -1 ? count : "more than ".concat(to)); - }, - nextIconButtonText: 'Következő oldal' - }, - MuiRating: { - getLabelText: function getLabelText(value) { - return "".concat(value, " Csillag"); - }, - emptyLabelText: 'Üres' - }, - MuiAutocomplete: { - clearText: 'Törlés', - closeText: 'Bezárás', - loadingText: 'Töltés…', - noOptionsText: 'Nincs találat', - openText: 'Megnyitás' - }, - MuiAlert: { - closeText: 'Bezárás' - }, - MuiPagination: { - 'aria-label': 'Lapozás', - getItemAriaLabel: function getItemAriaLabel(type, page, selected) { - if (type === 'page') { - return "".concat(page, ". oldal").concat(selected ? '' : 'ra'); - } - - if (type === 'first') { - return 'Első oldalra'; - } - - if (type === 'last') { - return 'Utolsó oldalra'; - } - - if (type === 'next') { - return 'Következő oldalra'; - } - - if (type === 'previous') { - return 'Előző oldalra'; - } - - return undefined; - } - } - } -}; -exports.huHU = huHU; -var hyAM = { - props: { - // MuiBreadcrumbs: { - // expandText: 'Show path', - // }, - MuiTablePagination: { - backIconButtonText: 'Նախորդը', - labelRowsPerPage: 'Տողեր մեկ էջում`', - labelDisplayedRows: function labelDisplayedRows(_ref14) { - var from = _ref14.from, - to = _ref14.to, - count = _ref14.count; - return "".concat(from, "-").concat(to, " / ").concat(count !== -1 ? count : "more than ".concat(to)); - }, - nextIconButtonText: 'Հաջորդը' - }, - MuiRating: { - getLabelText: function getLabelText(value) { - return "".concat(value, " \u0531\u057D\u057F\u0572"); - }, - emptyLabelText: 'Դատարկ' - }, - MuiAutocomplete: { - clearText: 'Մաքրել', - closeText: 'Փակել', - loadingText: 'Բեռնում…', - noOptionsText: 'Տարբերակներ չկան', - openText: 'Բացել' - }, - MuiAlert: { - closeText: 'Փակել' - } // MuiPagination: { - // 'aria-label': 'Pagination navigation', - // getItemAriaLabel: (type, page, selected) => { - // if (type === 'page') { - // return `${selected ? '' : 'Go to '}page ${page}`; - // } - // if (type === 'first') { - // return 'Go to first page'; - // } - // if (type === 'last') { - // return 'Go to last page'; - // } - // if (type === 'next') { - // return 'Go to next page'; - // } - // if (type === 'previous') { - // return 'Go to previous page'; - // } - // return undefined; - // }, - // }, - - } -}; -exports.hyAM = hyAM; -var idID = { - props: { - // MuiBreadcrumbs: { - // expandText: 'Show path', - // }, - MuiTablePagination: { - backIconButtonText: 'Halaman sebelumnya', - labelRowsPerPage: 'Baris per halaman:', - labelDisplayedRows: function labelDisplayedRows(_ref15) { - var from = _ref15.from, - to = _ref15.to, - count = _ref15.count; - return "".concat(from, "-").concat(to, " dari ").concat(count !== -1 ? count : "more than ".concat(to)); - }, - nextIconButtonText: 'Halaman selanjutnya' - }, - MuiRating: { - getLabelText: function getLabelText(value) { - return "".concat(value, " Bintang"); - } // emptyLabelText: 'Empty', - - }, - MuiAutocomplete: { - clearText: 'Hapus', - closeText: 'Tutup', - loadingText: 'Memuat…', - noOptionsText: 'Tidak ada opsi', - openText: 'Buka' - }, - MuiAlert: { - closeText: 'Tutup' - } // MuiPagination: { - // 'aria-label': 'Pagination navigation', - // getItemAriaLabel: (type, page, selected) => { - // if (type === 'page') { - // return `${selected ? '' : 'Go to '}page ${page}`; - // } - // if (type === 'first') { - // return 'Go to first page'; - // } - // if (type === 'last') { - // return 'Go to last page'; - // } - // if (type === 'next') { - // return 'Go to next page'; - // } - // if (type === 'previous') { - // return 'Go to previous page'; - // } - // return undefined; - // }, - // }, - - } -}; -exports.idID = idID; -var isIS = { - props: { - // MuiBreadcrumbs: { - // expandText: 'Show path', - // }, - MuiTablePagination: { - backIconButtonText: 'Fyrri síða', - labelRowsPerPage: 'Raðir á síðu:', - labelDisplayedRows: function labelDisplayedRows(_ref16) { - var from = _ref16.from, - to = _ref16.to, - count = _ref16.count; - return "".concat(from, "-").concat(to, " af ").concat(count !== -1 ? count : "more than ".concat(to)); - }, - nextIconButtonText: 'Næsta síða' - }, - MuiRating: { - getLabelText: function getLabelText(value) { - return "".concat(value, " ").concat(value === 1 ? 'Stjarna' : 'Stjörnur'); - }, - emptyLabelText: 'Tómt' - }, - MuiAutocomplete: { - clearText: 'Hreinsa', - closeText: 'Loka', - loadingText: 'Hlaða…', - noOptionsText: 'Engar niðurstöður', - openText: 'Opna' - }, - MuiAlert: { - closeText: 'Loka' - } // MuiPagination: { - // 'aria-label': 'Pagination navigation', - // getItemAriaLabel: (type, page, selected) => { - // if (type === 'page') { - // return `${selected ? '' : 'Go to '}page ${page}`; - // } - // if (type === 'first') { - // return 'Go to first page'; - // } - // if (type === 'last') { - // return 'Go to last page'; - // } - // if (type === 'next') { - // return 'Go to next page'; - // } - // if (type === 'previous') { - // return 'Go to previous page'; - // } - // return undefined; - // }, - // }, - - } -}; -exports.isIS = isIS; -var itIT = { - props: { - MuiBreadcrumbs: { - expandText: 'Visualizza percorso' - }, - MuiTablePagination: { - backIconButtonText: 'Pagina precedente', - labelRowsPerPage: 'Righe per pagina:', - labelDisplayedRows: function labelDisplayedRows(_ref17) { - var from = _ref17.from, - to = _ref17.to, - count = _ref17.count; - return "".concat(from, "-").concat(to, " di ").concat(count !== -1 ? count : "more than ".concat(to)); - }, - nextIconButtonText: 'Pagina successiva' - }, - MuiRating: { - getLabelText: function getLabelText(value) { - return "".concat(value, " Stell").concat(value !== 1 ? 'e' : 'a'); - }, - emptyLabelText: 'Vuoto' - }, - MuiAutocomplete: { - clearText: 'Svuota', - closeText: 'Chiudi', - loadingText: 'Caricamento in corso…', - noOptionsText: 'Nessuna opzione', - openText: 'Apri' - }, - MuiAlert: { - closeText: 'Chiudi' - }, - MuiPagination: { - 'aria-label': 'Navigazione impaginata', - getItemAriaLabel: function getItemAriaLabel(type, page, selected) { - if (type === 'page') { - return "".concat(selected ? '' : 'Vai alla ', "pagina ").concat(page); - } - - if (type === 'first') { - return 'Vai alla prima pagina'; - } - - if (type === 'last') { - return "Vai all'ultima pagina"; - } - - if (type === 'next') { - return 'Vai alla pagina successiva'; - } - - if (type === 'previous') { - return 'Vai alla pagina precedente'; - } - - return undefined; - } - } - } -}; -exports.itIT = itIT; -var jaJP = { - props: { - // MuiBreadcrumbs: { - // expandText: 'Show path', - // }, - MuiTablePagination: { - backIconButtonText: '前のページ', - labelRowsPerPage: 'ページごとの行:', - labelDisplayedRows: function labelDisplayedRows(_ref18) { - var from = _ref18.from, - to = _ref18.to, - count = _ref18.count; - return "".concat(from, "-").concat(to, " of ").concat(count !== -1 ? count : "more than ".concat(to)); - }, - nextIconButtonText: '次のページ' - }, - MuiRating: { - getLabelText: function getLabelText(value) { - return "".concat(value, " ").concat(value !== 1 ? '出演者' : '星'); - } // emptyLabelText: 'Empty', - - }, - MuiAutocomplete: { - clearText: 'クリア', - closeText: '閉じる', - loadingText: '積み込み…', - noOptionsText: '結果がありません', - openText: '開いた' - }, - MuiAlert: { - closeText: '閉じる' - } // MuiPagination: { - // 'aria-label': 'Pagination navigation', - // getItemAriaLabel: (type, page, selected) => { - // if (type === 'page') { - // return `${selected ? '' : 'Go to '}page ${page}`; - // } - // if (type === 'first') { - // return 'Go to first page'; - // } - // if (type === 'last') { - // return 'Go to last page'; - // } - // if (type === 'next') { - // return 'Go to next page'; - // } - // if (type === 'previous') { - // return 'Go to previous page'; - // } - // return undefined; - // }, - // }, - - } -}; -exports.jaJP = jaJP; -var koKR = { - props: { - // MuiBreadcrumbs: { - // expandText: 'Show path', - // }, - MuiTablePagination: { - backIconButtonText: '이전 페이지', - labelRowsPerPage: '페이지 당 행:', - labelDisplayedRows: function labelDisplayedRows(_ref19) { - var from = _ref19.from, - to = _ref19.to, - count = _ref19.count; - return "".concat(from, "-").concat(to, " / ").concat(count !== -1 ? count : "more than ".concat(to)); - }, - nextIconButtonText: '다음 페이지' - }, - MuiRating: { - getLabelText: function getLabelText(value) { - return "".concat(value, " \uC810"); - } // emptyLabelText: 'Empty', - - }, - MuiAutocomplete: { - clearText: '지우기', - closeText: '닫기', - loadingText: '불러오는 중…', - noOptionsText: '옵션 없음', - openText: '열기' - } - } -}; -exports.koKR = koKR; -var nlNL = { - props: { - // MuiBreadcrumbs: { - // expandText: 'Show path', - // }, - MuiTablePagination: { - backIconButtonText: 'Vorige pagina', - labelRowsPerPage: 'Regels per pagina :', - labelDisplayedRows: function labelDisplayedRows(_ref20) { - var from = _ref20.from, - to = _ref20.to, - count = _ref20.count; - return "".concat(from, "-").concat(to, " van ").concat(count !== -1 ? count : "more than ".concat(to)); - }, - nextIconButtonText: 'Volgende pagina' - }, - MuiRating: { - getLabelText: function getLabelText(value) { - return "".concat(value, " Ster").concat(value !== 1 ? 'ren' : ''); - } // emptyLabelText: 'Empty', - - }, - MuiAutocomplete: { - clearText: 'Wissen', - closeText: 'Sluiten', - loadingText: 'Laden…', - noOptionsText: 'Geen opties', - openText: 'Openen' - }, - MuiAlert: { - closeText: 'Sluiten' - } // MuiPagination: { - // 'aria-label': 'Pagination navigation', - // getItemAriaLabel: (type, page, selected) => { - // if (type === 'page') { - // return `${selected ? '' : 'Go to '}page ${page}`; - // } - // if (type === 'first') { - // return 'Go to first page'; - // } - // if (type === 'last') { - // return 'Go to last page'; - // } - // if (type === 'next') { - // return 'Go to next page'; - // } - // if (type === 'previous') { - // return 'Go to previous page'; - // } - // return undefined; - // }, - // }, - - } -}; -exports.nlNL = nlNL; -var plPL = { - props: { - MuiBreadcrumbs: { - expandText: 'Pokaż ścieżkę' - }, - MuiTablePagination: { - backIconButtonText: 'Poprzednia strona', - labelRowsPerPage: 'Wierszy na stronę:', - labelDisplayedRows: function labelDisplayedRows(_ref21) { - var from = _ref21.from, - to = _ref21.to, - count = _ref21.count; - return "".concat(from, "-").concat(to, " z ").concat(count !== -1 ? count : "more than ".concat(to)); - }, - nextIconButtonText: 'Następna strona' - }, - MuiRating: { - getLabelText: function getLabelText(value) { - var pluralForm = 'gwiazdek'; - var lastDigit = value % 10; - - if ((value < 10 || value > 20) && lastDigit > 1 && lastDigit < 5) { - pluralForm = 'gwiazdki'; - } else if (value === 1) { - pluralForm = 'gwiazdka'; - } - - return "".concat(value, " ").concat(pluralForm); - }, - emptyLabelText: 'Brak gwiazdek' - }, - MuiAutocomplete: { - clearText: 'Wyczyść', - closeText: 'Zamknij', - loadingText: 'Ładowanie…', - noOptionsText: 'Brak opcji', - openText: 'Otwórz' - }, - MuiAlert: { - closeText: 'Zamknij' - }, - MuiPagination: { - 'aria-label': 'Nawigacja podziału na strony', - getItemAriaLabel: function getItemAriaLabel(type, page, selected) { - if (type === 'page') { - return selected ? "".concat(page, ". strona") : "Przejd\u017A do ".concat(page, ". strony"); - } - - if (type === 'first') { - return 'Przejdź do pierwszej strony'; - } - - if (type === 'last') { - return 'Przejdź do ostatniej strony'; - } - - if (type === 'next') { - return 'Przejdź do następnej strony'; - } - - if (type === 'previous') { - return 'Przejdź do poprzedniej strony'; - } - - return undefined; - } - } - } -}; -exports.plPL = plPL; -var ptBR = { - props: { - MuiBreadcrumbs: { - expandText: 'Mostrar caminho' - }, - MuiTablePagination: { - backIconButtonText: 'Página anterior', - labelRowsPerPage: 'Linhas por página:', - labelDisplayedRows: function labelDisplayedRows(_ref22) { - var from = _ref22.from, - to = _ref22.to, - count = _ref22.count; - return "".concat(from, "-").concat(to, " de ").concat(count !== -1 ? count : "more than ".concat(to)); - }, - nextIconButtonText: 'Próxima página' - }, - MuiRating: { - getLabelText: function getLabelText(value) { - return "".concat(value, " Estrela").concat(value !== 1 ? 's' : ''); - }, - emptyLabelText: 'Vazio' - }, - MuiAutocomplete: { - clearText: 'Limpar', - closeText: 'Fechar', - loadingText: 'Carregando…', - noOptionsText: 'Sem opções', - openText: 'Abrir' - }, - MuiAlert: { - closeText: 'Fechar' - }, - MuiPagination: { - 'aria-label': 'Navegar pela paginação', - getItemAriaLabel: function getItemAriaLabel(type, page, selected) { - if (type === 'page') { - return "".concat(selected ? '' : 'Ir para a ', "p\xE1gina ").concat(page); - } - - if (type === 'first') { - return 'Ir para a primeira página'; - } - - if (type === 'last') { - return 'Ir para a última página'; - } - - if (type === 'next') { - return 'Ir para a próxima página'; - } - - if (type === 'previous') { - return 'Ir para a página anterior'; - } - - return undefined; - } - } - } -}; -exports.ptBR = ptBR; -var ptPT = { - props: { - MuiBreadcrumbs: { - expandText: 'Mostrar caminho' - }, - MuiTablePagination: { - backIconButtonText: 'Página anterior', - labelRowsPerPage: 'Linhas por página:', - labelDisplayedRows: function labelDisplayedRows(_ref23) { - var from = _ref23.from, - to = _ref23.to, - count = _ref23.count; - return "".concat(from, "-").concat(to, " de ").concat(count !== -1 ? count : "more than ".concat(to)); - }, - nextIconButtonText: 'Próxima página' - }, - MuiRating: { - getLabelText: function getLabelText(value) { - return "".concat(value, " Estrela").concat(value !== 1 ? 's' : ''); - }, - emptyLabelText: 'Vazio' - }, - MuiAutocomplete: { - clearText: 'Limpar', - closeText: 'Fechar', - loadingText: 'A carregar…', - noOptionsText: 'Sem opções', - openText: 'Abrir' - }, - MuiAlert: { - closeText: 'Fechar' - }, - MuiPagination: { - 'aria-label': 'Navegar por páginas', - getItemAriaLabel: function getItemAriaLabel(type, page, selected) { - if (type === 'page') { - return "".concat(selected ? '' : 'Ir para a ', "p\xE1gina ").concat(page); - } - - if (type === 'first') { - return 'Primeira página'; - } - - if (type === 'last') { - return 'Última página'; - } - - if (type === 'next') { - return 'Próxima página'; - } - - if (type === 'previous') { - return 'Página anterior'; - } - - return undefined; - } - } - } -}; -exports.ptPT = ptPT; -var roRO = { - props: { - MuiBreadcrumbs: { - expandText: 'Arată calea' - }, - MuiTablePagination: { - backIconButtonText: 'Pagina precedentă', - labelRowsPerPage: 'Rânduri pe pagină:', - labelDisplayedRows: function labelDisplayedRows(_ref24) { - var from = _ref24.from, - to = _ref24.to, - count = _ref24.count; - return "".concat(from, "-").concat(to, " din ").concat(count !== -1 ? count : "more than ".concat(to)); - }, - nextIconButtonText: 'Pagina următoare' - }, - MuiRating: { - getLabelText: function getLabelText(value) { - return "".concat(value, " St").concat(value !== 1 ? 'ele' : 'ea'); - }, - emptyLabelText: 'Gol' - }, - MuiAutocomplete: { - clearText: 'Șterge', - closeText: 'Închide', - loadingText: 'Se încarcă…', - noOptionsText: 'Nicio opțiune', - openText: 'Deschide' - }, - MuiAlert: { - closeText: 'Închide' - }, - MuiPagination: { - 'aria-label': 'Navigare prin paginare', - getItemAriaLabel: function getItemAriaLabel(type, page, selected) { - if (type === 'page') { - return "".concat(selected ? '' : 'Mergi la ', "pagina ").concat(page); - } - - if (type === 'first') { - return 'Mergi la prima pagină'; - } - - if (type === 'last') { - return 'Mergi la ultima pagină'; - } - - if (type === 'next') { - return 'Mergi la pagina următoare'; - } - - if (type === 'previous') { - return 'Mergi la pagina precedentă'; - } - - return undefined; - } - } - } -}; -exports.roRO = roRO; -var ruRU = { - props: { - // MuiBreadcrumbs: { - // expandText: 'Show path', - // }, - MuiTablePagination: { - backIconButtonText: 'Предыдущая страница', - labelRowsPerPage: 'Строк на странице:', - labelDisplayedRows: function labelDisplayedRows(_ref25) { - var from = _ref25.from, - to = _ref25.to, - count = _ref25.count; - return "".concat(from, "-").concat(to, " \u0438\u0437 ").concat(count !== -1 ? count : "\u0431\u043E\u043B\u0435\u0435 \u0447\u0435\u043C ".concat(to)); - }, - nextIconButtonText: 'Следующая страница' - }, - MuiRating: { - getLabelText: function getLabelText(value) { - var pluralForm = 'Звёзд'; - var lastDigit = value % 10; - - if (lastDigit > 1 && lastDigit < 5) { - pluralForm = 'Звезды'; - } else if (lastDigit === 1) { - pluralForm = 'Звезда'; - } - - return "".concat(value, " ").concat(pluralForm); - } // emptyLabelText: 'Empty', - - }, - MuiAutocomplete: { - clearText: 'Очистить', - closeText: 'Закрыть', - loadingText: 'Загрузка…', - noOptionsText: 'Нет доступных вариантов', - openText: 'Открыть' - }, - MuiAlert: { - closeText: 'Закрыть' - } // MuiPagination: { - // 'aria-label': 'Pagination navigation', - // getItemAriaLabel: (type, page, selected) => { - // if (type === 'page') { - // return `${selected ? '' : 'Go to '}page ${page}`; - // } - // if (type === 'first') { - // return 'Go to first page'; - // } - // if (type === 'last') { - // return 'Go to last page'; - // } - // if (type === 'next') { - // return 'Go to next page'; - // } - // if (type === 'previous') { - // return 'Go to previous page'; - // } - // return undefined; - // }, - // }, - - } -}; -exports.ruRU = ruRU; -var skSK = { - props: { - // MuiBreadcrumbs: { - // expandText: 'Show path', - // }, - MuiTablePagination: { - backIconButtonText: 'Predchádzajúca stránka', - labelRowsPerPage: 'Riadkov na stránke:', - labelDisplayedRows: function labelDisplayedRows(_ref26) { - var from = _ref26.from, - to = _ref26.to, - count = _ref26.count; - return "".concat(from, "-").concat(to, " z ").concat(count !== -1 ? count : "more than ".concat(to)); - }, - nextIconButtonText: 'Ďalšia stránka' - }, - MuiRating: { - getLabelText: function getLabelText(value) { - if (value === 1) { - return "".concat(value, " hviezdi\u010Dka"); - } - - if (value >= 2 && value <= 4) { - return "".concat(value, " hviezdi\u010Dky"); - } - - return "".concat(value, " hviezdi\u010Diek"); - } // emptyLabelText: 'Empty', - - }, - MuiAutocomplete: { - clearText: 'Vymazať', - closeText: 'Zavrieť', - loadingText: 'Načítanie…', - noOptionsText: 'Žiadne možnosti', - openText: 'Otvoriť' - }, - MuiAlert: { - closeText: 'Zavrieť' - } // MuiPagination: { - // 'aria-label': 'Pagination navigation', - // getItemAriaLabel: (type, page, selected) => { - // if (type === 'page') { - // return `${selected ? '' : 'Go to '}page ${page}`; - // } - // if (type === 'first') { - // return 'Go to first page'; - // } - // if (type === 'last') { - // return 'Go to last page'; - // } - // if (type === 'next') { - // return 'Go to next page'; - // } - // if (type === 'previous') { - // return 'Go to previous page'; - // } - // return undefined; - // }, - // }, - - } -}; -exports.skSK = skSK; -var svSE = { - props: { - // MuiBreadcrumbs: { - // expandText: 'Show path', - // }, - MuiTablePagination: { - backIconButtonText: 'Föregående sida', - labelRowsPerPage: 'Rader per sida:', - labelDisplayedRows: function labelDisplayedRows(_ref27) { - var from = _ref27.from, - to = _ref27.to, - count = _ref27.count; - return "".concat(from, "-").concat(to, " av ").concat(count !== -1 ? count : "more than ".concat(to)); - }, - nextIconButtonText: 'Nästa sida' - }, - MuiRating: { - getLabelText: function getLabelText(value) { - return "".concat(value, " ").concat(value !== 1 ? 'Stjärnor' : 'Stjärna'); - } // emptyLabelText: 'Empty', - - }, - MuiAutocomplete: { - clearText: 'Rensa', - closeText: 'Stäng', - loadingText: 'Laddar…', - noOptionsText: 'Inga alternativ', - openText: 'Öppen' - }, - MuiAlert: { - closeText: 'Stäng' - } // MuiPagination: { - // 'aria-label': 'Pagination navigation', - // getItemAriaLabel: (type, page, selected) => { - // if (type === 'page') { - // return `${selected ? '' : 'Go to '}page ${page}`; - // } - // if (type === 'first') { - // return 'Go to first page'; - // } - // if (type === 'last') { - // return 'Go to last page'; - // } - // if (type === 'next') { - // return 'Go to next page'; - // } - // if (type === 'previous') { - // return 'Go to previous page'; - // } - // return undefined; - // }, - // }, - - } -}; -exports.svSE = svSE; -var trTR = { - props: { - MuiBreadcrumbs: { - expandText: 'Yolu göster' - }, - MuiTablePagination: { - backIconButtonText: 'Önceki sayfa', - labelRowsPerPage: 'Sayfa başına satır:', - labelDisplayedRows: function labelDisplayedRows(_ref28) { - var from = _ref28.from, - to = _ref28.to, - count = _ref28.count; - return "".concat(from, "-").concat(to, " tanesinden ").concat(count !== -1 ? count : "more than ".concat(to)); - }, - nextIconButtonText: 'Sonraki sayfa' - }, - MuiRating: { - getLabelText: function getLabelText(value) { - return "".concat(value, " Y\u0131ld\u0131z"); - }, - emptyLabelText: 'Boş' - }, - MuiAutocomplete: { - clearText: 'Temizle', - closeText: 'Kapat', - loadingText: 'Yükleniyor…', - noOptionsText: 'Seçenek yok', - openText: 'Aç' - }, - MuiAlert: { - closeText: 'Kapat' - }, - MuiPagination: { - 'aria-label': 'Sayfa navigasyonu', - getItemAriaLabel: function getItemAriaLabel(type, page, selected) { - if (type === 'page') { - return "".concat(page, ". ").concat(selected ? 'sayfa' : 'sayfaya git'); - } - - if (type === 'first') { - return 'İlk sayfaya git'; - } - - if (type === 'last') { - return 'Son sayfaya git'; - } - - if (type === 'next') { - return 'Sonraki sayfaya git'; - } - - if (type === 'previous') { - return 'Önceki sayfaya git'; - } - - return undefined; - } - } - } -}; -exports.trTR = trTR; -var ukUA = { - props: { - MuiBreadcrumbs: { - expandText: 'Показати шлях сторінок' - }, - MuiTablePagination: { - backIconButtonText: 'Попередня сторінка', - labelRowsPerPage: 'Рядків на сторінці:', - labelDisplayedRows: function labelDisplayedRows(_ref29) { - var from = _ref29.from, - to = _ref29.to, - count = _ref29.count; - return "".concat(from, "-").concat(to, " \u0437 ").concat(count !== -1 ? count : "\u043F\u043E\u043D\u0430\u0434 ".concat(to)); - }, - nextIconButtonText: 'Наступна сторінка' - }, - MuiRating: { - getLabelText: function getLabelText(value) { - var pluralForm = 'Зірок'; - var lastDigit = value % 10; - - if (lastDigit > 1 && lastDigit < 5) { - pluralForm = 'Зірки'; - } else if (lastDigit === 1) { - pluralForm = 'Зірка'; - } - - return "".concat(value, " ").concat(pluralForm); - }, - emptyLabelText: 'Рейтинг відсутній' - }, - MuiAutocomplete: { - clearText: 'Очистити', - closeText: 'Згорнути', - loadingText: 'Завантаження…', - noOptionsText: 'Немає варіантів', - openText: 'Розгорнути' - }, - MuiAlert: { - closeText: 'Згорнути' - }, - MuiPagination: { - 'aria-label': 'Навігація сторінками', - getItemAriaLabel: function getItemAriaLabel(type, page, selected) { - if (type === 'page') { - return "".concat(selected ? '' : 'Перейти на ', "\u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0443 ").concat(page); - } - - if (type === 'first') { - return 'Перейти на першу сторінку'; - } - - if (type === 'last') { - return 'Перейти на останню сторінку'; - } - - if (type === 'next') { - return 'Перейти на наступну сторінку'; - } - - if (type === 'previous') { - return 'Перейти на попередню сторінку'; - } - - return undefined; - } - } - } -}; -exports.ukUA = ukUA; -var viVN = { - props: { - // MuiBreadcrumbs: { - // expandText: 'Show path', - // }, - MuiTablePagination: { - backIconButtonText: 'Trang trước', - labelRowsPerPage: 'Số hàng mỗi trang:', - labelDisplayedRows: function labelDisplayedRows(_ref30) { - var from = _ref30.from, - to = _ref30.to, - count = _ref30.count; - return "".concat(from, "-").concat(to, " trong ").concat(count !== -1 ? count : "nhi\u1EC1u h\u01A1n ".concat(to)); - }, - nextIconButtonText: 'Trang sau' - }, - MuiRating: { - getLabelText: function getLabelText(value) { - return "".concat(value, " sao"); - }, - emptyLabelText: 'Trống' - }, - MuiAutocomplete: { - clearText: 'Xóa', - closeText: 'Đóng', - loadingText: 'Đang tải…', - noOptionsText: 'Không có lựa chọn', - openText: 'Mở' - }, - MuiAlert: { - closeText: 'Đóng' - } // MuiPagination: { - // 'aria-label': 'Pagination navigation', - // getItemAriaLabel: (type, page, selected) => { - // if (type === 'page') { - // return `${selected ? '' : 'Go to '}page ${page}`; - // } - // if (type === 'first') { - // return 'Go to first page'; - // } - // if (type === 'last') { - // return 'Go to last page'; - // } - // if (type === 'next') { - // return 'Go to next page'; - // } - // if (type === 'previous') { - // return 'Go to previous page'; - // } - // return undefined; - // }, - // }, - - } -}; -exports.viVN = viVN; -var zhCN = { - props: { - // MuiBreadcrumbs: { - // expandText: 'Show path', - // }, - MuiTablePagination: { - backIconButtonText: '上一页', - labelRowsPerPage: '每页行数:', - labelDisplayedRows: function labelDisplayedRows(_ref31) { - var from = _ref31.from, - to = _ref31.to, - count = _ref31.count; - return "".concat(from, "-").concat(to, " \u7684 ").concat(count !== -1 ? count : "\u8D85\u8FC7 ".concat(to)); - }, - nextIconButtonText: '下一页' - }, - MuiRating: { - getLabelText: function getLabelText(value) { - return "".concat(value, " \u661F").concat(value !== 1 ? '星' : ''); - } // emptyLabelText: 'Empty', - - }, - MuiAutocomplete: { - clearText: '明确', - closeText: '关', - loadingText: '载入中…', - noOptionsText: '没有选择', - openText: '打开' - }, - MuiAlert: { - closeText: '关' - } // MuiPagination: { - // 'aria-label': 'Pagination navigation', - // getItemAriaLabel: (type, page, selected) => { - // if (type === 'page') { - // return `${selected ? '' : 'Go to '}page ${page}`; - // } - // if (type === 'first') { - // return 'Go to first page'; - // } - // if (type === 'last') { - // return 'Go to last page'; - // } - // if (type === 'next') { - // return 'Go to next page'; - // } - // if (type === 'previous') { - // return 'Go to previous page'; - // } - // return undefined; - // }, - // }, - - } -}; -exports.zhCN = zhCN; - -/***/ }), - -/***/ "./node_modules/@material-ui/core/node_modules/popper.js/dist/esm/popper.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/**! - * @fileOverview Kickass library to create and place poppers near their reference elements. - * @version 1.16.1-lts - * @license - * Copyright (c) 2016 Federico Zivolo and contributors - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof navigator !== 'undefined'; - -var timeoutDuration = function () { - var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox']; - for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) { - if (isBrowser && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) { - return 1; - } - } - return 0; -}(); - -function microtaskDebounce(fn) { - var called = false; - return function () { - if (called) { - return; - } - called = true; - window.Promise.resolve().then(function () { - called = false; - fn(); - }); - }; -} - -function taskDebounce(fn) { - var scheduled = false; - return function () { - if (!scheduled) { - scheduled = true; - setTimeout(function () { - scheduled = false; - fn(); - }, timeoutDuration); - } - }; -} - -var supportsMicroTasks = isBrowser && window.Promise; - -/** -* Create a debounced version of a method, that's asynchronously deferred -* but called in the minimum time possible. -* -* @method -* @memberof Popper.Utils -* @argument {Function} fn -* @returns {Function} -*/ -var debounce = supportsMicroTasks ? microtaskDebounce : taskDebounce; - -/** - * Check if the given variable is a function - * @method - * @memberof Popper.Utils - * @argument {Any} functionToCheck - variable to check - * @returns {Boolean} answer to: is a function? - */ -function isFunction(functionToCheck) { - var getType = {}; - return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]'; -} - -/** - * Get CSS computed property of the given element - * @method - * @memberof Popper.Utils - * @argument {Eement} element - * @argument {String} property - */ -function getStyleComputedProperty(element, property) { - if (element.nodeType !== 1) { - return []; - } - // NOTE: 1 DOM access here - var window = element.ownerDocument.defaultView; - var css = window.getComputedStyle(element, null); - return property ? css[property] : css; -} - -/** - * Returns the parentNode or the host of the element - * @method - * @memberof Popper.Utils - * @argument {Element} element - * @returns {Element} parent - */ -function getParentNode(element) { - if (element.nodeName === 'HTML') { - return element; - } - return element.parentNode || element.host; -} - -/** - * Returns the scrolling parent of the given element - * @method - * @memberof Popper.Utils - * @argument {Element} element - * @returns {Element} scroll parent - */ -function getScrollParent(element) { - // Return body, `getScroll` will take care to get the correct `scrollTop` from it - if (!element) { - return document.body; - } - - switch (element.nodeName) { - case 'HTML': - case 'BODY': - return element.ownerDocument.body; - case '#document': - return element.body; - } - - // Firefox want us to check `-x` and `-y` variations as well - - var _getStyleComputedProp = getStyleComputedProperty(element), - overflow = _getStyleComputedProp.overflow, - overflowX = _getStyleComputedProp.overflowX, - overflowY = _getStyleComputedProp.overflowY; - - if (/(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)) { - return element; - } - - return getScrollParent(getParentNode(element)); -} - -/** - * Returns the reference node of the reference object, or the reference object itself. - * @method - * @memberof Popper.Utils - * @param {Element|Object} reference - the reference element (the popper will be relative to this) - * @returns {Element} parent - */ -function getReferenceNode(reference) { - return reference && reference.referenceNode ? reference.referenceNode : reference; -} - -var isIE11 = isBrowser && !!(window.MSInputMethodContext && document.documentMode); -var isIE10 = isBrowser && /MSIE 10/.test(navigator.userAgent); - -/** - * Determines if the browser is Internet Explorer - * @method - * @memberof Popper.Utils - * @param {Number} version to check - * @returns {Boolean} isIE - */ -function isIE(version) { - if (version === 11) { - return isIE11; - } - if (version === 10) { - return isIE10; - } - return isIE11 || isIE10; -} - -/** - * Returns the offset parent of the given element - * @method - * @memberof Popper.Utils - * @argument {Element} element - * @returns {Element} offset parent - */ -function getOffsetParent(element) { - if (!element) { - return document.documentElement; - } - - var noOffsetParent = isIE(10) ? document.body : null; - - // NOTE: 1 DOM access here - var offsetParent = element.offsetParent || null; - // Skip hidden elements which don't have an offsetParent - while (offsetParent === noOffsetParent && element.nextElementSibling) { - offsetParent = (element = element.nextElementSibling).offsetParent; - } - - var nodeName = offsetParent && offsetParent.nodeName; - - if (!nodeName || nodeName === 'BODY' || nodeName === 'HTML') { - return element ? element.ownerDocument.documentElement : document.documentElement; - } - - // .offsetParent will return the closest TH, TD or TABLE in case - // no offsetParent is present, I hate this job... - if (['TH', 'TD', 'TABLE'].indexOf(offsetParent.nodeName) !== -1 && getStyleComputedProperty(offsetParent, 'position') === 'static') { - return getOffsetParent(offsetParent); - } - - return offsetParent; -} - -function isOffsetContainer(element) { - var nodeName = element.nodeName; - - if (nodeName === 'BODY') { - return false; - } - return nodeName === 'HTML' || getOffsetParent(element.firstElementChild) === element; -} - -/** - * Finds the root node (document, shadowDOM root) of the given element - * @method - * @memberof Popper.Utils - * @argument {Element} node - * @returns {Element} root node - */ -function getRoot(node) { - if (node.parentNode !== null) { - return getRoot(node.parentNode); - } - - return node; -} - -/** - * Finds the offset parent common to the two provided nodes - * @method - * @memberof Popper.Utils - * @argument {Element} element1 - * @argument {Element} element2 - * @returns {Element} common offset parent - */ -function findCommonOffsetParent(element1, element2) { - // This check is needed to avoid errors in case one of the elements isn't defined for any reason - if (!element1 || !element1.nodeType || !element2 || !element2.nodeType) { - return document.documentElement; - } - - // Here we make sure to give as "start" the element that comes first in the DOM - var order = element1.compareDocumentPosition(element2) & Node.DOCUMENT_POSITION_FOLLOWING; - var start = order ? element1 : element2; - var end = order ? element2 : element1; - - // Get common ancestor container - var range = document.createRange(); - range.setStart(start, 0); - range.setEnd(end, 0); - var commonAncestorContainer = range.commonAncestorContainer; - - // Both nodes are inside #document - - if (element1 !== commonAncestorContainer && element2 !== commonAncestorContainer || start.contains(end)) { - if (isOffsetContainer(commonAncestorContainer)) { - return commonAncestorContainer; - } - - return getOffsetParent(commonAncestorContainer); - } - - // one of the nodes is inside shadowDOM, find which one - var element1root = getRoot(element1); - if (element1root.host) { - return findCommonOffsetParent(element1root.host, element2); - } else { - return findCommonOffsetParent(element1, getRoot(element2).host); - } -} - -/** - * Gets the scroll value of the given element in the given side (top and left) - * @method - * @memberof Popper.Utils - * @argument {Element} element - * @argument {String} side `top` or `left` - * @returns {number} amount of scrolled pixels - */ -function getScroll(element) { - var side = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'top'; - - var upperSide = side === 'top' ? 'scrollTop' : 'scrollLeft'; - var nodeName = element.nodeName; - - if (nodeName === 'BODY' || nodeName === 'HTML') { - var html = element.ownerDocument.documentElement; - var scrollingElement = element.ownerDocument.scrollingElement || html; - return scrollingElement[upperSide]; - } - - return element[upperSide]; -} - -/* - * Sum or subtract the element scroll values (left and top) from a given rect object - * @method - * @memberof Popper.Utils - * @param {Object} rect - Rect object you want to change - * @param {HTMLElement} element - The element from the function reads the scroll values - * @param {Boolean} subtract - set to true if you want to subtract the scroll values - * @return {Object} rect - The modifier rect object - */ -function includeScroll(rect, element) { - var subtract = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; - - var scrollTop = getScroll(element, 'top'); - var scrollLeft = getScroll(element, 'left'); - var modifier = subtract ? -1 : 1; - rect.top += scrollTop * modifier; - rect.bottom += scrollTop * modifier; - rect.left += scrollLeft * modifier; - rect.right += scrollLeft * modifier; - return rect; -} - -/* - * Helper to detect borders of a given element - * @method - * @memberof Popper.Utils - * @param {CSSStyleDeclaration} styles - * Result of `getStyleComputedProperty` on the given element - * @param {String} axis - `x` or `y` - * @return {number} borders - The borders size of the given axis - */ - -function getBordersSize(styles, axis) { - var sideA = axis === 'x' ? 'Left' : 'Top'; - var sideB = sideA === 'Left' ? 'Right' : 'Bottom'; - - return parseFloat(styles['border' + sideA + 'Width']) + parseFloat(styles['border' + sideB + 'Width']); -} - -function getSize(axis, body, html, computedStyle) { - return Math.max(body['offset' + axis], body['scroll' + axis], html['client' + axis], html['offset' + axis], html['scroll' + axis], isIE(10) ? parseInt(html['offset' + axis]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Top' : 'Left')]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Bottom' : 'Right')]) : 0); -} - -function getWindowSizes(document) { - var body = document.body; - var html = document.documentElement; - var computedStyle = isIE(10) && getComputedStyle(html); - - return { - height: getSize('Height', body, html, computedStyle), - width: getSize('Width', body, html, computedStyle) - }; -} - -var classCallCheck = function (instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -}; - -var createClass = function () { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } - } - - return function (Constructor, protoProps, staticProps) { - if (protoProps) defineProperties(Constructor.prototype, protoProps); - if (staticProps) defineProperties(Constructor, staticProps); - return Constructor; - }; -}(); - - - - - -var defineProperty = function (obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - - return obj; -}; - -var _extends = Object.assign || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - - return target; -}; - -/** - * Given element offsets, generate an output similar to getBoundingClientRect - * @method - * @memberof Popper.Utils - * @argument {Object} offsets - * @returns {Object} ClientRect like output - */ -function getClientRect(offsets) { - return _extends({}, offsets, { - right: offsets.left + offsets.width, - bottom: offsets.top + offsets.height - }); -} - -/** - * Get bounding client rect of given element - * @method - * @memberof Popper.Utils - * @param {HTMLElement} element - * @return {Object} client rect - */ -function getBoundingClientRect(element) { - var rect = {}; - - // IE10 10 FIX: Please, don't ask, the element isn't - // considered in DOM in some circumstances... - // This isn't reproducible in IE10 compatibility mode of IE11 - try { - if (isIE(10)) { - rect = element.getBoundingClientRect(); - var scrollTop = getScroll(element, 'top'); - var scrollLeft = getScroll(element, 'left'); - rect.top += scrollTop; - rect.left += scrollLeft; - rect.bottom += scrollTop; - rect.right += scrollLeft; - } else { - rect = element.getBoundingClientRect(); - } - } catch (e) {} - - var result = { - left: rect.left, - top: rect.top, - width: rect.right - rect.left, - height: rect.bottom - rect.top - }; - - // subtract scrollbar size from sizes - var sizes = element.nodeName === 'HTML' ? getWindowSizes(element.ownerDocument) : {}; - var width = sizes.width || element.clientWidth || result.width; - var height = sizes.height || element.clientHeight || result.height; - - var horizScrollbar = element.offsetWidth - width; - var vertScrollbar = element.offsetHeight - height; - - // if an hypothetical scrollbar is detected, we must be sure it's not a `border` - // we make this check conditional for performance reasons - if (horizScrollbar || vertScrollbar) { - var styles = getStyleComputedProperty(element); - horizScrollbar -= getBordersSize(styles, 'x'); - vertScrollbar -= getBordersSize(styles, 'y'); - - result.width -= horizScrollbar; - result.height -= vertScrollbar; - } - - return getClientRect(result); -} - -function getOffsetRectRelativeToArbitraryNode(children, parent) { - var fixedPosition = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; - - var isIE10 = isIE(10); - var isHTML = parent.nodeName === 'HTML'; - var childrenRect = getBoundingClientRect(children); - var parentRect = getBoundingClientRect(parent); - var scrollParent = getScrollParent(children); - - var styles = getStyleComputedProperty(parent); - var borderTopWidth = parseFloat(styles.borderTopWidth); - var borderLeftWidth = parseFloat(styles.borderLeftWidth); - - // In cases where the parent is fixed, we must ignore negative scroll in offset calc - if (fixedPosition && isHTML) { - parentRect.top = Math.max(parentRect.top, 0); - parentRect.left = Math.max(parentRect.left, 0); - } - var offsets = getClientRect({ - top: childrenRect.top - parentRect.top - borderTopWidth, - left: childrenRect.left - parentRect.left - borderLeftWidth, - width: childrenRect.width, - height: childrenRect.height - }); - offsets.marginTop = 0; - offsets.marginLeft = 0; - - // Subtract margins of documentElement in case it's being used as parent - // we do this only on HTML because it's the only element that behaves - // differently when margins are applied to it. The margins are included in - // the box of the documentElement, in the other cases not. - if (!isIE10 && isHTML) { - var marginTop = parseFloat(styles.marginTop); - var marginLeft = parseFloat(styles.marginLeft); - - offsets.top -= borderTopWidth - marginTop; - offsets.bottom -= borderTopWidth - marginTop; - offsets.left -= borderLeftWidth - marginLeft; - offsets.right -= borderLeftWidth - marginLeft; - - // Attach marginTop and marginLeft because in some circumstances we may need them - offsets.marginTop = marginTop; - offsets.marginLeft = marginLeft; - } - - if (isIE10 && !fixedPosition ? parent.contains(scrollParent) : parent === scrollParent && scrollParent.nodeName !== 'BODY') { - offsets = includeScroll(offsets, parent); - } - - return offsets; -} - -function getViewportOffsetRectRelativeToArtbitraryNode(element) { - var excludeScroll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - - var html = element.ownerDocument.documentElement; - var relativeOffset = getOffsetRectRelativeToArbitraryNode(element, html); - var width = Math.max(html.clientWidth, window.innerWidth || 0); - var height = Math.max(html.clientHeight, window.innerHeight || 0); - - var scrollTop = !excludeScroll ? getScroll(html) : 0; - var scrollLeft = !excludeScroll ? getScroll(html, 'left') : 0; - - var offset = { - top: scrollTop - relativeOffset.top + relativeOffset.marginTop, - left: scrollLeft - relativeOffset.left + relativeOffset.marginLeft, - width: width, - height: height - }; - - return getClientRect(offset); -} - -/** - * Check if the given element is fixed or is inside a fixed parent - * @method - * @memberof Popper.Utils - * @argument {Element} element - * @argument {Element} customContainer - * @returns {Boolean} answer to "isFixed?" - */ -function isFixed(element) { - var nodeName = element.nodeName; - if (nodeName === 'BODY' || nodeName === 'HTML') { - return false; - } - if (getStyleComputedProperty(element, 'position') === 'fixed') { - return true; - } - var parentNode = getParentNode(element); - if (!parentNode) { - return false; - } - return isFixed(parentNode); -} - -/** - * Finds the first parent of an element that has a transformed property defined - * @method - * @memberof Popper.Utils - * @argument {Element} element - * @returns {Element} first transformed parent or documentElement - */ - -function getFixedPositionOffsetParent(element) { - // This check is needed to avoid errors in case one of the elements isn't defined for any reason - if (!element || !element.parentElement || isIE()) { - return document.documentElement; - } - var el = element.parentElement; - while (el && getStyleComputedProperty(el, 'transform') === 'none') { - el = el.parentElement; - } - return el || document.documentElement; -} - -/** - * Computed the boundaries limits and return them - * @method - * @memberof Popper.Utils - * @param {HTMLElement} popper - * @param {HTMLElement} reference - * @param {number} padding - * @param {HTMLElement} boundariesElement - Element used to define the boundaries - * @param {Boolean} fixedPosition - Is in fixed position mode - * @returns {Object} Coordinates of the boundaries - */ -function getBoundaries(popper, reference, padding, boundariesElement) { - var fixedPosition = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false; - - // NOTE: 1 DOM access here - - var boundaries = { top: 0, left: 0 }; - var offsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference)); - - // Handle viewport case - if (boundariesElement === 'viewport') { - boundaries = getViewportOffsetRectRelativeToArtbitraryNode(offsetParent, fixedPosition); - } else { - // Handle other cases based on DOM element used as boundaries - var boundariesNode = void 0; - if (boundariesElement === 'scrollParent') { - boundariesNode = getScrollParent(getParentNode(reference)); - if (boundariesNode.nodeName === 'BODY') { - boundariesNode = popper.ownerDocument.documentElement; - } - } else if (boundariesElement === 'window') { - boundariesNode = popper.ownerDocument.documentElement; - } else { - boundariesNode = boundariesElement; - } - - var offsets = getOffsetRectRelativeToArbitraryNode(boundariesNode, offsetParent, fixedPosition); - - // In case of HTML, we need a different computation - if (boundariesNode.nodeName === 'HTML' && !isFixed(offsetParent)) { - var _getWindowSizes = getWindowSizes(popper.ownerDocument), - height = _getWindowSizes.height, - width = _getWindowSizes.width; - - boundaries.top += offsets.top - offsets.marginTop; - boundaries.bottom = height + offsets.top; - boundaries.left += offsets.left - offsets.marginLeft; - boundaries.right = width + offsets.left; - } else { - // for all the other DOM elements, this one is good - boundaries = offsets; - } - } - - // Add paddings - padding = padding || 0; - var isPaddingNumber = typeof padding === 'number'; - boundaries.left += isPaddingNumber ? padding : padding.left || 0; - boundaries.top += isPaddingNumber ? padding : padding.top || 0; - boundaries.right -= isPaddingNumber ? padding : padding.right || 0; - boundaries.bottom -= isPaddingNumber ? padding : padding.bottom || 0; - - return boundaries; -} - -function getArea(_ref) { - var width = _ref.width, - height = _ref.height; - - return width * height; -} - -/** - * Utility used to transform the `auto` placement to the placement with more - * available space. - * @method - * @memberof Popper.Utils - * @argument {Object} data - The data object generated by update method - * @argument {Object} options - Modifiers configuration and options - * @returns {Object} The data object, properly modified - */ -function computeAutoPlacement(placement, refRect, popper, reference, boundariesElement) { - var padding = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0; - - if (placement.indexOf('auto') === -1) { - return placement; - } - - var boundaries = getBoundaries(popper, reference, padding, boundariesElement); - - var rects = { - top: { - width: boundaries.width, - height: refRect.top - boundaries.top - }, - right: { - width: boundaries.right - refRect.right, - height: boundaries.height - }, - bottom: { - width: boundaries.width, - height: boundaries.bottom - refRect.bottom - }, - left: { - width: refRect.left - boundaries.left, - height: boundaries.height - } - }; - - var sortedAreas = Object.keys(rects).map(function (key) { - return _extends({ - key: key - }, rects[key], { - area: getArea(rects[key]) - }); - }).sort(function (a, b) { - return b.area - a.area; - }); - - var filteredAreas = sortedAreas.filter(function (_ref2) { - var width = _ref2.width, - height = _ref2.height; - return width >= popper.clientWidth && height >= popper.clientHeight; - }); - - var computedPlacement = filteredAreas.length > 0 ? filteredAreas[0].key : sortedAreas[0].key; - - var variation = placement.split('-')[1]; - - return computedPlacement + (variation ? '-' + variation : ''); -} - -/** - * Get offsets to the reference element - * @method - * @memberof Popper.Utils - * @param {Object} state - * @param {Element} popper - the popper element - * @param {Element} reference - the reference element (the popper will be relative to this) - * @param {Element} fixedPosition - is in fixed position mode - * @returns {Object} An object containing the offsets which will be applied to the popper - */ -function getReferenceOffsets(state, popper, reference) { - var fixedPosition = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; - - var commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference)); - return getOffsetRectRelativeToArbitraryNode(reference, commonOffsetParent, fixedPosition); -} - -/** - * Get the outer sizes of the given element (offset size + margins) - * @method - * @memberof Popper.Utils - * @argument {Element} element - * @returns {Object} object containing width and height properties - */ -function getOuterSizes(element) { - var window = element.ownerDocument.defaultView; - var styles = window.getComputedStyle(element); - var x = parseFloat(styles.marginTop || 0) + parseFloat(styles.marginBottom || 0); - var y = parseFloat(styles.marginLeft || 0) + parseFloat(styles.marginRight || 0); - var result = { - width: element.offsetWidth + y, - height: element.offsetHeight + x - }; - return result; -} - -/** - * Get the opposite placement of the given one - * @method - * @memberof Popper.Utils - * @argument {String} placement - * @returns {String} flipped placement - */ -function getOppositePlacement(placement) { - var hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' }; - return placement.replace(/left|right|bottom|top/g, function (matched) { - return hash[matched]; - }); -} - -/** - * Get offsets to the popper - * @method - * @memberof Popper.Utils - * @param {Object} position - CSS position the Popper will get applied - * @param {HTMLElement} popper - the popper element - * @param {Object} referenceOffsets - the reference offsets (the popper will be relative to this) - * @param {String} placement - one of the valid placement options - * @returns {Object} popperOffsets - An object containing the offsets which will be applied to the popper - */ -function getPopperOffsets(popper, referenceOffsets, placement) { - placement = placement.split('-')[0]; - - // Get popper node sizes - var popperRect = getOuterSizes(popper); - - // Add position, width and height to our offsets object - var popperOffsets = { - width: popperRect.width, - height: popperRect.height - }; - - // depending by the popper placement we have to compute its offsets slightly differently - var isHoriz = ['right', 'left'].indexOf(placement) !== -1; - var mainSide = isHoriz ? 'top' : 'left'; - var secondarySide = isHoriz ? 'left' : 'top'; - var measurement = isHoriz ? 'height' : 'width'; - var secondaryMeasurement = !isHoriz ? 'height' : 'width'; - - popperOffsets[mainSide] = referenceOffsets[mainSide] + referenceOffsets[measurement] / 2 - popperRect[measurement] / 2; - if (placement === secondarySide) { - popperOffsets[secondarySide] = referenceOffsets[secondarySide] - popperRect[secondaryMeasurement]; - } else { - popperOffsets[secondarySide] = referenceOffsets[getOppositePlacement(secondarySide)]; - } - - return popperOffsets; -} - -/** - * Mimics the `find` method of Array - * @method - * @memberof Popper.Utils - * @argument {Array} arr - * @argument prop - * @argument value - * @returns index or -1 - */ -function find(arr, check) { - // use native find if supported - if (Array.prototype.find) { - return arr.find(check); - } - - // use `filter` to obtain the same behavior of `find` - return arr.filter(check)[0]; -} - -/** - * Return the index of the matching object - * @method - * @memberof Popper.Utils - * @argument {Array} arr - * @argument prop - * @argument value - * @returns index or -1 - */ -function findIndex(arr, prop, value) { - // use native findIndex if supported - if (Array.prototype.findIndex) { - return arr.findIndex(function (cur) { - return cur[prop] === value; - }); - } - - // use `find` + `indexOf` if `findIndex` isn't supported - var match = find(arr, function (obj) { - return obj[prop] === value; - }); - return arr.indexOf(match); -} - -/** - * Loop trough the list of modifiers and run them in order, - * each of them will then edit the data object. - * @method - * @memberof Popper.Utils - * @param {dataObject} data - * @param {Array} modifiers - * @param {String} ends - Optional modifier name used as stopper - * @returns {dataObject} - */ -function runModifiers(modifiers, data, ends) { - var modifiersToRun = ends === undefined ? modifiers : modifiers.slice(0, findIndex(modifiers, 'name', ends)); - - modifiersToRun.forEach(function (modifier) { - if (modifier['function']) { - // eslint-disable-line dot-notation - console.warn('`modifier.function` is deprecated, use `modifier.fn`!'); - } - var fn = modifier['function'] || modifier.fn; // eslint-disable-line dot-notation - if (modifier.enabled && isFunction(fn)) { - // Add properties to offsets to make them a complete clientRect object - // we do this before each modifier to make sure the previous one doesn't - // mess with these values - data.offsets.popper = getClientRect(data.offsets.popper); - data.offsets.reference = getClientRect(data.offsets.reference); - - data = fn(data, modifier); - } - }); - - return data; -} - -/** - * Updates the position of the popper, computing the new offsets and applying - * the new style. - * Prefer `scheduleUpdate` over `update` because of performance reasons. - * @method - * @memberof Popper - */ -function update() { - // if popper is destroyed, don't perform any further update - if (this.state.isDestroyed) { - return; - } - - var data = { - instance: this, - styles: {}, - arrowStyles: {}, - attributes: {}, - flipped: false, - offsets: {} - }; - - // compute reference element offsets - data.offsets.reference = getReferenceOffsets(this.state, this.popper, this.reference, this.options.positionFixed); - - // compute auto placement, store placement inside the data object, - // modifiers will be able to edit `placement` if needed - // and refer to originalPlacement to know the original value - data.placement = computeAutoPlacement(this.options.placement, data.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding); - - // store the computed placement inside `originalPlacement` - data.originalPlacement = data.placement; - - data.positionFixed = this.options.positionFixed; - - // compute the popper offsets - data.offsets.popper = getPopperOffsets(this.popper, data.offsets.reference, data.placement); - - data.offsets.popper.position = this.options.positionFixed ? 'fixed' : 'absolute'; - - // run the modifiers - data = runModifiers(this.modifiers, data); - - // the first `update` will call `onCreate` callback - // the other ones will call `onUpdate` callback - if (!this.state.isCreated) { - this.state.isCreated = true; - this.options.onCreate(data); - } else { - this.options.onUpdate(data); - } -} - -/** - * Helper used to know if the given modifier is enabled. - * @method - * @memberof Popper.Utils - * @returns {Boolean} - */ -function isModifierEnabled(modifiers, modifierName) { - return modifiers.some(function (_ref) { - var name = _ref.name, - enabled = _ref.enabled; - return enabled && name === modifierName; - }); -} - -/** - * Get the prefixed supported property name - * @method - * @memberof Popper.Utils - * @argument {String} property (camelCase) - * @returns {String} prefixed property (camelCase or PascalCase, depending on the vendor prefix) - */ -function getSupportedPropertyName(property) { - var prefixes = [false, 'ms', 'Webkit', 'Moz', 'O']; - var upperProp = property.charAt(0).toUpperCase() + property.slice(1); - - for (var i = 0; i < prefixes.length; i++) { - var prefix = prefixes[i]; - var toCheck = prefix ? '' + prefix + upperProp : property; - if (typeof document.body.style[toCheck] !== 'undefined') { - return toCheck; - } - } - return null; -} - -/** - * Destroys the popper. - * @method - * @memberof Popper - */ -function destroy() { - this.state.isDestroyed = true; - - // touch DOM only if `applyStyle` modifier is enabled - if (isModifierEnabled(this.modifiers, 'applyStyle')) { - this.popper.removeAttribute('x-placement'); - this.popper.style.position = ''; - this.popper.style.top = ''; - this.popper.style.left = ''; - this.popper.style.right = ''; - this.popper.style.bottom = ''; - this.popper.style.willChange = ''; - this.popper.style[getSupportedPropertyName('transform')] = ''; - } - - this.disableEventListeners(); - - // remove the popper if user explicitly asked for the deletion on destroy - // do not use `remove` because IE11 doesn't support it - if (this.options.removeOnDestroy) { - this.popper.parentNode.removeChild(this.popper); - } - return this; -} - -/** - * Get the window associated with the element - * @argument {Element} element - * @returns {Window} - */ -function getWindow(element) { - var ownerDocument = element.ownerDocument; - return ownerDocument ? ownerDocument.defaultView : window; -} - -function attachToScrollParents(scrollParent, event, callback, scrollParents) { - var isBody = scrollParent.nodeName === 'BODY'; - var target = isBody ? scrollParent.ownerDocument.defaultView : scrollParent; - target.addEventListener(event, callback, { passive: true }); - - if (!isBody) { - attachToScrollParents(getScrollParent(target.parentNode), event, callback, scrollParents); - } - scrollParents.push(target); -} - -/** - * Setup needed event listeners used to update the popper position - * @method - * @memberof Popper.Utils - * @private - */ -function setupEventListeners(reference, options, state, updateBound) { - // Resize event listener on window - state.updateBound = updateBound; - getWindow(reference).addEventListener('resize', state.updateBound, { passive: true }); - - // Scroll event listener on scroll parents - var scrollElement = getScrollParent(reference); - attachToScrollParents(scrollElement, 'scroll', state.updateBound, state.scrollParents); - state.scrollElement = scrollElement; - state.eventsEnabled = true; - - return state; -} - -/** - * It will add resize/scroll events and start recalculating - * position of the popper element when they are triggered. - * @method - * @memberof Popper - */ -function enableEventListeners() { - if (!this.state.eventsEnabled) { - this.state = setupEventListeners(this.reference, this.options, this.state, this.scheduleUpdate); - } -} - -/** - * Remove event listeners used to update the popper position - * @method - * @memberof Popper.Utils - * @private - */ -function removeEventListeners(reference, state) { - // Remove resize event listener on window - getWindow(reference).removeEventListener('resize', state.updateBound); - - // Remove scroll event listener on scroll parents - state.scrollParents.forEach(function (target) { - target.removeEventListener('scroll', state.updateBound); - }); - - // Reset state - state.updateBound = null; - state.scrollParents = []; - state.scrollElement = null; - state.eventsEnabled = false; - return state; -} - -/** - * It will remove resize/scroll events and won't recalculate popper position - * when they are triggered. It also won't trigger `onUpdate` callback anymore, - * unless you call `update` method manually. - * @method - * @memberof Popper - */ -function disableEventListeners() { - if (this.state.eventsEnabled) { - cancelAnimationFrame(this.scheduleUpdate); - this.state = removeEventListeners(this.reference, this.state); - } -} - -/** - * Tells if a given input is a number - * @method - * @memberof Popper.Utils - * @param {*} input to check - * @return {Boolean} - */ -function isNumeric(n) { - return n !== '' && !isNaN(parseFloat(n)) && isFinite(n); -} - -/** - * Set the style to the given popper - * @method - * @memberof Popper.Utils - * @argument {Element} element - Element to apply the style to - * @argument {Object} styles - * Object with a list of properties and values which will be applied to the element - */ -function setStyles(element, styles) { - Object.keys(styles).forEach(function (prop) { - var unit = ''; - // add unit if the value is numeric and is one of the following - if (['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(prop) !== -1 && isNumeric(styles[prop])) { - unit = 'px'; - } - element.style[prop] = styles[prop] + unit; - }); -} - -/** - * Set the attributes to the given popper - * @method - * @memberof Popper.Utils - * @argument {Element} element - Element to apply the attributes to - * @argument {Object} styles - * Object with a list of properties and values which will be applied to the element - */ -function setAttributes(element, attributes) { - Object.keys(attributes).forEach(function (prop) { - var value = attributes[prop]; - if (value !== false) { - element.setAttribute(prop, attributes[prop]); - } else { - element.removeAttribute(prop); - } - }); -} - -/** - * @function - * @memberof Modifiers - * @argument {Object} data - The data object generated by `update` method - * @argument {Object} data.styles - List of style properties - values to apply to popper element - * @argument {Object} data.attributes - List of attribute properties - values to apply to popper element - * @argument {Object} options - Modifiers configuration and options - * @returns {Object} The same data object - */ -function applyStyle(data) { - // any property present in `data.styles` will be applied to the popper, - // in this way we can make the 3rd party modifiers add custom styles to it - // Be aware, modifiers could override the properties defined in the previous - // lines of this modifier! - setStyles(data.instance.popper, data.styles); - - // any property present in `data.attributes` will be applied to the popper, - // they will be set as HTML attributes of the element - setAttributes(data.instance.popper, data.attributes); - - // if arrowElement is defined and arrowStyles has some properties - if (data.arrowElement && Object.keys(data.arrowStyles).length) { - setStyles(data.arrowElement, data.arrowStyles); - } - - return data; -} - -/** - * Set the x-placement attribute before everything else because it could be used - * to add margins to the popper margins needs to be calculated to get the - * correct popper offsets. - * @method - * @memberof Popper.modifiers - * @param {HTMLElement} reference - The reference element used to position the popper - * @param {HTMLElement} popper - The HTML element used as popper - * @param {Object} options - Popper.js options - */ -function applyStyleOnLoad(reference, popper, options, modifierOptions, state) { - // compute reference element offsets - var referenceOffsets = getReferenceOffsets(state, popper, reference, options.positionFixed); - - // compute auto placement, store placement inside the data object, - // modifiers will be able to edit `placement` if needed - // and refer to originalPlacement to know the original value - var placement = computeAutoPlacement(options.placement, referenceOffsets, popper, reference, options.modifiers.flip.boundariesElement, options.modifiers.flip.padding); - - popper.setAttribute('x-placement', placement); - - // Apply `position` to popper before anything else because - // without the position applied we can't guarantee correct computations - setStyles(popper, { position: options.positionFixed ? 'fixed' : 'absolute' }); - - return options; -} - -/** - * @function - * @memberof Popper.Utils - * @argument {Object} data - The data object generated by `update` method - * @argument {Boolean} shouldRound - If the offsets should be rounded at all - * @returns {Object} The popper's position offsets rounded - * - * The tale of pixel-perfect positioning. It's still not 100% perfect, but as - * good as it can be within reason. - * Discussion here: https://github.com/FezVrasta/popper.js/pull/715 - * - * Low DPI screens cause a popper to be blurry if not using full pixels (Safari - * as well on High DPI screens). - * - * Firefox prefers no rounding for positioning and does not have blurriness on - * high DPI screens. - * - * Only horizontal placement and left/right values need to be considered. - */ -function getRoundedOffsets(data, shouldRound) { - var _data$offsets = data.offsets, - popper = _data$offsets.popper, - reference = _data$offsets.reference; - var round = Math.round, - floor = Math.floor; - - var noRound = function noRound(v) { - return v; - }; - - var referenceWidth = round(reference.width); - var popperWidth = round(popper.width); - - var isVertical = ['left', 'right'].indexOf(data.placement) !== -1; - var isVariation = data.placement.indexOf('-') !== -1; - var sameWidthParity = referenceWidth % 2 === popperWidth % 2; - var bothOddWidth = referenceWidth % 2 === 1 && popperWidth % 2 === 1; - - var horizontalToInteger = !shouldRound ? noRound : isVertical || isVariation || sameWidthParity ? round : floor; - var verticalToInteger = !shouldRound ? noRound : round; - - return { - left: horizontalToInteger(bothOddWidth && !isVariation && shouldRound ? popper.left - 1 : popper.left), - top: verticalToInteger(popper.top), - bottom: verticalToInteger(popper.bottom), - right: horizontalToInteger(popper.right) - }; -} - -var isFirefox = isBrowser && /Firefox/i.test(navigator.userAgent); - -/** - * @function - * @memberof Modifiers - * @argument {Object} data - The data object generated by `update` method - * @argument {Object} options - Modifiers configuration and options - * @returns {Object} The data object, properly modified - */ -function computeStyle(data, options) { - var x = options.x, - y = options.y; - var popper = data.offsets.popper; - - // Remove this legacy support in Popper.js v2 - - var legacyGpuAccelerationOption = find(data.instance.modifiers, function (modifier) { - return modifier.name === 'applyStyle'; - }).gpuAcceleration; - if (legacyGpuAccelerationOption !== undefined) { - console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!'); - } - var gpuAcceleration = legacyGpuAccelerationOption !== undefined ? legacyGpuAccelerationOption : options.gpuAcceleration; - - var offsetParent = getOffsetParent(data.instance.popper); - var offsetParentRect = getBoundingClientRect(offsetParent); - - // Styles - var styles = { - position: popper.position - }; - - var offsets = getRoundedOffsets(data, window.devicePixelRatio < 2 || !isFirefox); - - var sideA = x === 'bottom' ? 'top' : 'bottom'; - var sideB = y === 'right' ? 'left' : 'right'; - - // if gpuAcceleration is set to `true` and transform is supported, - // we use `translate3d` to apply the position to the popper we - // automatically use the supported prefixed version if needed - var prefixedProperty = getSupportedPropertyName('transform'); - - // now, let's make a step back and look at this code closely (wtf?) - // If the content of the popper grows once it's been positioned, it - // may happen that the popper gets misplaced because of the new content - // overflowing its reference element - // To avoid this problem, we provide two options (x and y), which allow - // the consumer to define the offset origin. - // If we position a popper on top of a reference element, we can set - // `x` to `top` to make the popper grow towards its top instead of - // its bottom. - var left = void 0, - top = void 0; - if (sideA === 'bottom') { - // when offsetParent is the positioning is relative to the bottom of the screen (excluding the scrollbar) - // and not the bottom of the html element - if (offsetParent.nodeName === 'HTML') { - top = -offsetParent.clientHeight + offsets.bottom; - } else { - top = -offsetParentRect.height + offsets.bottom; - } - } else { - top = offsets.top; - } - if (sideB === 'right') { - if (offsetParent.nodeName === 'HTML') { - left = -offsetParent.clientWidth + offsets.right; - } else { - left = -offsetParentRect.width + offsets.right; - } - } else { - left = offsets.left; - } - if (gpuAcceleration && prefixedProperty) { - styles[prefixedProperty] = 'translate3d(' + left + 'px, ' + top + 'px, 0)'; - styles[sideA] = 0; - styles[sideB] = 0; - styles.willChange = 'transform'; - } else { - // othwerise, we use the standard `top`, `left`, `bottom` and `right` properties - var invertTop = sideA === 'bottom' ? -1 : 1; - var invertLeft = sideB === 'right' ? -1 : 1; - styles[sideA] = top * invertTop; - styles[sideB] = left * invertLeft; - styles.willChange = sideA + ', ' + sideB; - } - - // Attributes - var attributes = { - 'x-placement': data.placement - }; - - // Update `data` attributes, styles and arrowStyles - data.attributes = _extends({}, attributes, data.attributes); - data.styles = _extends({}, styles, data.styles); - data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles); - - return data; -} - -/** - * Helper used to know if the given modifier depends from another one. - * It checks if the needed modifier is listed and enabled. - * @method - * @memberof Popper.Utils - * @param {Array} modifiers - list of modifiers - * @param {String} requestingName - name of requesting modifier - * @param {String} requestedName - name of requested modifier - * @returns {Boolean} - */ -function isModifierRequired(modifiers, requestingName, requestedName) { - var requesting = find(modifiers, function (_ref) { - var name = _ref.name; - return name === requestingName; - }); - - var isRequired = !!requesting && modifiers.some(function (modifier) { - return modifier.name === requestedName && modifier.enabled && modifier.order < requesting.order; - }); - - if (!isRequired) { - var _requesting = '`' + requestingName + '`'; - var requested = '`' + requestedName + '`'; - console.warn(requested + ' modifier is required by ' + _requesting + ' modifier in order to work, be sure to include it before ' + _requesting + '!'); - } - return isRequired; -} - -/** - * @function - * @memberof Modifiers - * @argument {Object} data - The data object generated by update method - * @argument {Object} options - Modifiers configuration and options - * @returns {Object} The data object, properly modified - */ -function arrow(data, options) { - var _data$offsets$arrow; - - // arrow depends on keepTogether in order to work - if (!isModifierRequired(data.instance.modifiers, 'arrow', 'keepTogether')) { - return data; - } - - var arrowElement = options.element; - - // if arrowElement is a string, suppose it's a CSS selector - if (typeof arrowElement === 'string') { - arrowElement = data.instance.popper.querySelector(arrowElement); - - // if arrowElement is not found, don't run the modifier - if (!arrowElement) { - return data; - } - } else { - // if the arrowElement isn't a query selector we must check that the - // provided DOM node is child of its popper node - if (!data.instance.popper.contains(arrowElement)) { - console.warn('WARNING: `arrow.element` must be child of its popper element!'); - return data; - } - } - - var placement = data.placement.split('-')[0]; - var _data$offsets = data.offsets, - popper = _data$offsets.popper, - reference = _data$offsets.reference; - - var isVertical = ['left', 'right'].indexOf(placement) !== -1; - - var len = isVertical ? 'height' : 'width'; - var sideCapitalized = isVertical ? 'Top' : 'Left'; - var side = sideCapitalized.toLowerCase(); - var altSide = isVertical ? 'left' : 'top'; - var opSide = isVertical ? 'bottom' : 'right'; - var arrowElementSize = getOuterSizes(arrowElement)[len]; - - // - // extends keepTogether behavior making sure the popper and its - // reference have enough pixels in conjunction - // - - // top/left side - if (reference[opSide] - arrowElementSize < popper[side]) { - data.offsets.popper[side] -= popper[side] - (reference[opSide] - arrowElementSize); - } - // bottom/right side - if (reference[side] + arrowElementSize > popper[opSide]) { - data.offsets.popper[side] += reference[side] + arrowElementSize - popper[opSide]; - } - data.offsets.popper = getClientRect(data.offsets.popper); - - // compute center of the popper - var center = reference[side] + reference[len] / 2 - arrowElementSize / 2; - - // Compute the sideValue using the updated popper offsets - // take popper margin in account because we don't have this info available - var css = getStyleComputedProperty(data.instance.popper); - var popperMarginSide = parseFloat(css['margin' + sideCapitalized]); - var popperBorderSide = parseFloat(css['border' + sideCapitalized + 'Width']); - var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide; - - // prevent arrowElement from being placed not contiguously to its popper - sideValue = Math.max(Math.min(popper[len] - arrowElementSize, sideValue), 0); - - data.arrowElement = arrowElement; - data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty(_data$offsets$arrow, altSide, ''), _data$offsets$arrow); - - return data; -} - -/** - * Get the opposite placement variation of the given one - * @method - * @memberof Popper.Utils - * @argument {String} placement variation - * @returns {String} flipped placement variation - */ -function getOppositeVariation(variation) { - if (variation === 'end') { - return 'start'; - } else if (variation === 'start') { - return 'end'; - } - return variation; -} - -/** - * List of accepted placements to use as values of the `placement` option. - * Valid placements are: - * - `auto` - * - `top` - * - `right` - * - `bottom` - * - `left` - * - * Each placement can have a variation from this list: - * - `-start` - * - `-end` - * - * Variations are interpreted easily if you think of them as the left to right - * written languages. Horizontally (`top` and `bottom`), `start` is left and `end` - * is right. - * Vertically (`left` and `right`), `start` is top and `end` is bottom. - * - * Some valid examples are: - * - `top-end` (on top of reference, right aligned) - * - `right-start` (on right of reference, top aligned) - * - `bottom` (on bottom, centered) - * - `auto-end` (on the side with more space available, alignment depends by placement) - * - * @static - * @type {Array} - * @enum {String} - * @readonly - * @method placements - * @memberof Popper - */ -var placements = ['auto-start', 'auto', 'auto-end', 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start']; - -// Get rid of `auto` `auto-start` and `auto-end` -var validPlacements = placements.slice(3); - -/** - * Given an initial placement, returns all the subsequent placements - * clockwise (or counter-clockwise). - * - * @method - * @memberof Popper.Utils - * @argument {String} placement - A valid placement (it accepts variations) - * @argument {Boolean} counter - Set to true to walk the placements counterclockwise - * @returns {Array} placements including their variations - */ -function clockwise(placement) { - var counter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - - var index = validPlacements.indexOf(placement); - var arr = validPlacements.slice(index + 1).concat(validPlacements.slice(0, index)); - return counter ? arr.reverse() : arr; -} - -var BEHAVIORS = { - FLIP: 'flip', - CLOCKWISE: 'clockwise', - COUNTERCLOCKWISE: 'counterclockwise' -}; - -/** - * @function - * @memberof Modifiers - * @argument {Object} data - The data object generated by update method - * @argument {Object} options - Modifiers configuration and options - * @returns {Object} The data object, properly modified - */ -function flip(data, options) { - // if `inner` modifier is enabled, we can't use the `flip` modifier - if (isModifierEnabled(data.instance.modifiers, 'inner')) { - return data; - } - - if (data.flipped && data.placement === data.originalPlacement) { - // seems like flip is trying to loop, probably there's not enough space on any of the flippable sides - return data; - } - - var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, options.boundariesElement, data.positionFixed); - - var placement = data.placement.split('-')[0]; - var placementOpposite = getOppositePlacement(placement); - var variation = data.placement.split('-')[1] || ''; - - var flipOrder = []; - - switch (options.behavior) { - case BEHAVIORS.FLIP: - flipOrder = [placement, placementOpposite]; - break; - case BEHAVIORS.CLOCKWISE: - flipOrder = clockwise(placement); - break; - case BEHAVIORS.COUNTERCLOCKWISE: - flipOrder = clockwise(placement, true); - break; - default: - flipOrder = options.behavior; - } - - flipOrder.forEach(function (step, index) { - if (placement !== step || flipOrder.length === index + 1) { - return data; - } - - placement = data.placement.split('-')[0]; - placementOpposite = getOppositePlacement(placement); - - var popperOffsets = data.offsets.popper; - var refOffsets = data.offsets.reference; - - // using floor because the reference offsets may contain decimals we are not going to consider here - var floor = Math.floor; - var overlapsRef = placement === 'left' && floor(popperOffsets.right) > floor(refOffsets.left) || placement === 'right' && floor(popperOffsets.left) < floor(refOffsets.right) || placement === 'top' && floor(popperOffsets.bottom) > floor(refOffsets.top) || placement === 'bottom' && floor(popperOffsets.top) < floor(refOffsets.bottom); - - var overflowsLeft = floor(popperOffsets.left) < floor(boundaries.left); - var overflowsRight = floor(popperOffsets.right) > floor(boundaries.right); - var overflowsTop = floor(popperOffsets.top) < floor(boundaries.top); - var overflowsBottom = floor(popperOffsets.bottom) > floor(boundaries.bottom); - - var overflowsBoundaries = placement === 'left' && overflowsLeft || placement === 'right' && overflowsRight || placement === 'top' && overflowsTop || placement === 'bottom' && overflowsBottom; - - // flip the variation if required - var isVertical = ['top', 'bottom'].indexOf(placement) !== -1; - - // flips variation if reference element overflows boundaries - var flippedVariationByRef = !!options.flipVariations && (isVertical && variation === 'start' && overflowsLeft || isVertical && variation === 'end' && overflowsRight || !isVertical && variation === 'start' && overflowsTop || !isVertical && variation === 'end' && overflowsBottom); - - // flips variation if popper content overflows boundaries - var flippedVariationByContent = !!options.flipVariationsByContent && (isVertical && variation === 'start' && overflowsRight || isVertical && variation === 'end' && overflowsLeft || !isVertical && variation === 'start' && overflowsBottom || !isVertical && variation === 'end' && overflowsTop); - - var flippedVariation = flippedVariationByRef || flippedVariationByContent; - - if (overlapsRef || overflowsBoundaries || flippedVariation) { - // this boolean to detect any flip loop - data.flipped = true; - - if (overlapsRef || overflowsBoundaries) { - placement = flipOrder[index + 1]; - } - - if (flippedVariation) { - variation = getOppositeVariation(variation); - } - - data.placement = placement + (variation ? '-' + variation : ''); - - // this object contains `position`, we want to preserve it along with - // any additional property we may add in the future - data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement)); - - data = runModifiers(data.instance.modifiers, data, 'flip'); - } - }); - return data; -} - -/** - * @function - * @memberof Modifiers - * @argument {Object} data - The data object generated by update method - * @argument {Object} options - Modifiers configuration and options - * @returns {Object} The data object, properly modified - */ -function keepTogether(data) { - var _data$offsets = data.offsets, - popper = _data$offsets.popper, - reference = _data$offsets.reference; - - var placement = data.placement.split('-')[0]; - var floor = Math.floor; - var isVertical = ['top', 'bottom'].indexOf(placement) !== -1; - var side = isVertical ? 'right' : 'bottom'; - var opSide = isVertical ? 'left' : 'top'; - var measurement = isVertical ? 'width' : 'height'; - - if (popper[side] < floor(reference[opSide])) { - data.offsets.popper[opSide] = floor(reference[opSide]) - popper[measurement]; - } - if (popper[opSide] > floor(reference[side])) { - data.offsets.popper[opSide] = floor(reference[side]); - } - - return data; -} - -/** - * Converts a string containing value + unit into a px value number - * @function - * @memberof {modifiers~offset} - * @private - * @argument {String} str - Value + unit string - * @argument {String} measurement - `height` or `width` - * @argument {Object} popperOffsets - * @argument {Object} referenceOffsets - * @returns {Number|String} - * Value in pixels, or original string if no values were extracted - */ -function toValue(str, measurement, popperOffsets, referenceOffsets) { - // separate value from unit - var split = str.match(/((?:\-|\+)?\d*\.?\d*)(.*)/); - var value = +split[1]; - var unit = split[2]; - - // If it's not a number it's an operator, I guess - if (!value) { - return str; - } - - if (unit.indexOf('%') === 0) { - var element = void 0; - switch (unit) { - case '%p': - element = popperOffsets; - break; - case '%': - case '%r': - default: - element = referenceOffsets; - } - - var rect = getClientRect(element); - return rect[measurement] / 100 * value; - } else if (unit === 'vh' || unit === 'vw') { - // if is a vh or vw, we calculate the size based on the viewport - var size = void 0; - if (unit === 'vh') { - size = Math.max(document.documentElement.clientHeight, window.innerHeight || 0); - } else { - size = Math.max(document.documentElement.clientWidth, window.innerWidth || 0); - } - return size / 100 * value; - } else { - // if is an explicit pixel unit, we get rid of the unit and keep the value - // if is an implicit unit, it's px, and we return just the value - return value; - } -} - -/** - * Parse an `offset` string to extrapolate `x` and `y` numeric offsets. - * @function - * @memberof {modifiers~offset} - * @private - * @argument {String} offset - * @argument {Object} popperOffsets - * @argument {Object} referenceOffsets - * @argument {String} basePlacement - * @returns {Array} a two cells array with x and y offsets in numbers - */ -function parseOffset(offset, popperOffsets, referenceOffsets, basePlacement) { - var offsets = [0, 0]; - - // Use height if placement is left or right and index is 0 otherwise use width - // in this way the first offset will use an axis and the second one - // will use the other one - var useHeight = ['right', 'left'].indexOf(basePlacement) !== -1; - - // Split the offset string to obtain a list of values and operands - // The regex addresses values with the plus or minus sign in front (+10, -20, etc) - var fragments = offset.split(/(\+|\-)/).map(function (frag) { - return frag.trim(); - }); - - // Detect if the offset string contains a pair of values or a single one - // they could be separated by comma or space - var divider = fragments.indexOf(find(fragments, function (frag) { - return frag.search(/,|\s/) !== -1; - })); - - if (fragments[divider] && fragments[divider].indexOf(',') === -1) { - console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.'); - } - - // If divider is found, we divide the list of values and operands to divide - // them by ofset X and Y. - var splitRegex = /\s*,\s*|\s+/; - var ops = divider !== -1 ? [fragments.slice(0, divider).concat([fragments[divider].split(splitRegex)[0]]), [fragments[divider].split(splitRegex)[1]].concat(fragments.slice(divider + 1))] : [fragments]; - - // Convert the values with units to absolute pixels to allow our computations - ops = ops.map(function (op, index) { - // Most of the units rely on the orientation of the popper - var measurement = (index === 1 ? !useHeight : useHeight) ? 'height' : 'width'; - var mergeWithPrevious = false; - return op - // This aggregates any `+` or `-` sign that aren't considered operators - // e.g.: 10 + +5 => [10, +, +5] - .reduce(function (a, b) { - if (a[a.length - 1] === '' && ['+', '-'].indexOf(b) !== -1) { - a[a.length - 1] = b; - mergeWithPrevious = true; - return a; - } else if (mergeWithPrevious) { - a[a.length - 1] += b; - mergeWithPrevious = false; - return a; - } else { - return a.concat(b); - } - }, []) - // Here we convert the string values into number values (in px) - .map(function (str) { - return toValue(str, measurement, popperOffsets, referenceOffsets); - }); - }); - - // Loop trough the offsets arrays and execute the operations - ops.forEach(function (op, index) { - op.forEach(function (frag, index2) { - if (isNumeric(frag)) { - offsets[index] += frag * (op[index2 - 1] === '-' ? -1 : 1); - } - }); - }); - return offsets; -} - -/** - * @function - * @memberof Modifiers - * @argument {Object} data - The data object generated by update method - * @argument {Object} options - Modifiers configuration and options - * @argument {Number|String} options.offset=0 - * The offset value as described in the modifier description - * @returns {Object} The data object, properly modified - */ -function offset(data, _ref) { - var offset = _ref.offset; - var placement = data.placement, - _data$offsets = data.offsets, - popper = _data$offsets.popper, - reference = _data$offsets.reference; - - var basePlacement = placement.split('-')[0]; - - var offsets = void 0; - if (isNumeric(+offset)) { - offsets = [+offset, 0]; - } else { - offsets = parseOffset(offset, popper, reference, basePlacement); - } - - if (basePlacement === 'left') { - popper.top += offsets[0]; - popper.left -= offsets[1]; - } else if (basePlacement === 'right') { - popper.top += offsets[0]; - popper.left += offsets[1]; - } else if (basePlacement === 'top') { - popper.left += offsets[0]; - popper.top -= offsets[1]; - } else if (basePlacement === 'bottom') { - popper.left += offsets[0]; - popper.top += offsets[1]; - } - - data.popper = popper; - return data; -} - -/** - * @function - * @memberof Modifiers - * @argument {Object} data - The data object generated by `update` method - * @argument {Object} options - Modifiers configuration and options - * @returns {Object} The data object, properly modified - */ -function preventOverflow(data, options) { - var boundariesElement = options.boundariesElement || getOffsetParent(data.instance.popper); - - // If offsetParent is the reference element, we really want to - // go one step up and use the next offsetParent as reference to - // avoid to make this modifier completely useless and look like broken - if (data.instance.reference === boundariesElement) { - boundariesElement = getOffsetParent(boundariesElement); - } - - // NOTE: DOM access here - // resets the popper's position so that the document size can be calculated excluding - // the size of the popper element itself - var transformProp = getSupportedPropertyName('transform'); - var popperStyles = data.instance.popper.style; // assignment to help minification - var top = popperStyles.top, - left = popperStyles.left, - transform = popperStyles[transformProp]; - - popperStyles.top = ''; - popperStyles.left = ''; - popperStyles[transformProp] = ''; - - var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, boundariesElement, data.positionFixed); - - // NOTE: DOM access here - // restores the original style properties after the offsets have been computed - popperStyles.top = top; - popperStyles.left = left; - popperStyles[transformProp] = transform; - - options.boundaries = boundaries; - - var order = options.priority; - var popper = data.offsets.popper; - - var check = { - primary: function primary(placement) { - var value = popper[placement]; - if (popper[placement] < boundaries[placement] && !options.escapeWithReference) { - value = Math.max(popper[placement], boundaries[placement]); - } - return defineProperty({}, placement, value); - }, - secondary: function secondary(placement) { - var mainSide = placement === 'right' ? 'left' : 'top'; - var value = popper[mainSide]; - if (popper[placement] > boundaries[placement] && !options.escapeWithReference) { - value = Math.min(popper[mainSide], boundaries[placement] - (placement === 'right' ? popper.width : popper.height)); - } - return defineProperty({}, mainSide, value); - } - }; - - order.forEach(function (placement) { - var side = ['left', 'top'].indexOf(placement) !== -1 ? 'primary' : 'secondary'; - popper = _extends({}, popper, check[side](placement)); - }); - - data.offsets.popper = popper; - - return data; -} - -/** - * @function - * @memberof Modifiers - * @argument {Object} data - The data object generated by `update` method - * @argument {Object} options - Modifiers configuration and options - * @returns {Object} The data object, properly modified - */ -function shift(data) { - var placement = data.placement; - var basePlacement = placement.split('-')[0]; - var shiftvariation = placement.split('-')[1]; - - // if shift shiftvariation is specified, run the modifier - if (shiftvariation) { - var _data$offsets = data.offsets, - reference = _data$offsets.reference, - popper = _data$offsets.popper; - - var isVertical = ['bottom', 'top'].indexOf(basePlacement) !== -1; - var side = isVertical ? 'left' : 'top'; - var measurement = isVertical ? 'width' : 'height'; - - var shiftOffsets = { - start: defineProperty({}, side, reference[side]), - end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement]) - }; - - data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]); - } - - return data; -} - -/** - * @function - * @memberof Modifiers - * @argument {Object} data - The data object generated by update method - * @argument {Object} options - Modifiers configuration and options - * @returns {Object} The data object, properly modified - */ -function hide(data) { - if (!isModifierRequired(data.instance.modifiers, 'hide', 'preventOverflow')) { - return data; - } - - var refRect = data.offsets.reference; - var bound = find(data.instance.modifiers, function (modifier) { - return modifier.name === 'preventOverflow'; - }).boundaries; - - if (refRect.bottom < bound.top || refRect.left > bound.right || refRect.top > bound.bottom || refRect.right < bound.left) { - // Avoid unnecessary DOM access if visibility hasn't changed - if (data.hide === true) { - return data; - } - - data.hide = true; - data.attributes['x-out-of-boundaries'] = ''; - } else { - // Avoid unnecessary DOM access if visibility hasn't changed - if (data.hide === false) { - return data; - } - - data.hide = false; - data.attributes['x-out-of-boundaries'] = false; - } - - return data; -} - -/** - * @function - * @memberof Modifiers - * @argument {Object} data - The data object generated by `update` method - * @argument {Object} options - Modifiers configuration and options - * @returns {Object} The data object, properly modified - */ -function inner(data) { - var placement = data.placement; - var basePlacement = placement.split('-')[0]; - var _data$offsets = data.offsets, - popper = _data$offsets.popper, - reference = _data$offsets.reference; - - var isHoriz = ['left', 'right'].indexOf(basePlacement) !== -1; - - var subtractLength = ['top', 'left'].indexOf(basePlacement) === -1; - - popper[isHoriz ? 'left' : 'top'] = reference[basePlacement] - (subtractLength ? popper[isHoriz ? 'width' : 'height'] : 0); - - data.placement = getOppositePlacement(placement); - data.offsets.popper = getClientRect(popper); - - return data; -} - -/** - * Modifier function, each modifier can have a function of this type assigned - * to its `fn` property. - * These functions will be called on each update, this means that you must - * make sure they are performant enough to avoid performance bottlenecks. - * - * @function ModifierFn - * @argument {dataObject} data - The data object generated by `update` method - * @argument {Object} options - Modifiers configuration and options - * @returns {dataObject} The data object, properly modified - */ - -/** - * Modifiers are plugins used to alter the behavior of your poppers. - * Popper.js uses a set of 9 modifiers to provide all the basic functionalities - * needed by the library. - * - * Usually you don't want to override the `order`, `fn` and `onLoad` props. - * All the other properties are configurations that could be tweaked. - * @namespace modifiers - */ -var modifiers = { - /** - * Modifier used to shift the popper on the start or end of its reference - * element. - * It will read the variation of the `placement` property. - * It can be one either `-end` or `-start`. - * @memberof modifiers - * @inner - */ - shift: { - /** @prop {number} order=100 - Index used to define the order of execution */ - order: 100, - /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ - enabled: true, - /** @prop {ModifierFn} */ - fn: shift - }, - - /** - * The `offset` modifier can shift your popper on both its axis. - * - * It accepts the following units: - * - `px` or unit-less, interpreted as pixels - * - `%` or `%r`, percentage relative to the length of the reference element - * - `%p`, percentage relative to the length of the popper element - * - `vw`, CSS viewport width unit - * - `vh`, CSS viewport height unit - * - * For length is intended the main axis relative to the placement of the popper. - * This means that if the placement is `top` or `bottom`, the length will be the - * `width`. In case of `left` or `right`, it will be the `height`. - * - * You can provide a single value (as `Number` or `String`), or a pair of values - * as `String` divided by a comma or one (or more) white spaces. - * The latter is a deprecated method because it leads to confusion and will be - * removed in v2. - * Additionally, it accepts additions and subtractions between different units. - * Note that multiplications and divisions aren't supported. - * - * Valid examples are: - * ``` - * 10 - * '10%' - * '10, 10' - * '10%, 10' - * '10 + 10%' - * '10 - 5vh + 3%' - * '-10px + 5vh, 5px - 6%' - * ``` - * > **NB**: If you desire to apply offsets to your poppers in a way that may make them overlap - * > with their reference element, unfortunately, you will have to disable the `flip` modifier. - * > You can read more on this at this [issue](https://github.com/FezVrasta/popper.js/issues/373). - * - * @memberof modifiers - * @inner - */ - offset: { - /** @prop {number} order=200 - Index used to define the order of execution */ - order: 200, - /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ - enabled: true, - /** @prop {ModifierFn} */ - fn: offset, - /** @prop {Number|String} offset=0 - * The offset value as described in the modifier description - */ - offset: 0 - }, - - /** - * Modifier used to prevent the popper from being positioned outside the boundary. - * - * A scenario exists where the reference itself is not within the boundaries. - * We can say it has "escaped the boundaries" — or just "escaped". - * In this case we need to decide whether the popper should either: - * - * - detach from the reference and remain "trapped" in the boundaries, or - * - if it should ignore the boundary and "escape with its reference" - * - * When `escapeWithReference` is set to`true` and reference is completely - * outside its boundaries, the popper will overflow (or completely leave) - * the boundaries in order to remain attached to the edge of the reference. - * - * @memberof modifiers - * @inner - */ - preventOverflow: { - /** @prop {number} order=300 - Index used to define the order of execution */ - order: 300, - /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ - enabled: true, - /** @prop {ModifierFn} */ - fn: preventOverflow, - /** - * @prop {Array} [priority=['left','right','top','bottom']] - * Popper will try to prevent overflow following these priorities by default, - * then, it could overflow on the left and on top of the `boundariesElement` - */ - priority: ['left', 'right', 'top', 'bottom'], - /** - * @prop {number} padding=5 - * Amount of pixel used to define a minimum distance between the boundaries - * and the popper. This makes sure the popper always has a little padding - * between the edges of its container - */ - padding: 5, - /** - * @prop {String|HTMLElement} boundariesElement='scrollParent' - * Boundaries used by the modifier. Can be `scrollParent`, `window`, - * `viewport` or any DOM element. - */ - boundariesElement: 'scrollParent' - }, - - /** - * Modifier used to make sure the reference and its popper stay near each other - * without leaving any gap between the two. Especially useful when the arrow is - * enabled and you want to ensure that it points to its reference element. - * It cares only about the first axis. You can still have poppers with margin - * between the popper and its reference element. - * @memberof modifiers - * @inner - */ - keepTogether: { - /** @prop {number} order=400 - Index used to define the order of execution */ - order: 400, - /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ - enabled: true, - /** @prop {ModifierFn} */ - fn: keepTogether - }, - - /** - * This modifier is used to move the `arrowElement` of the popper to make - * sure it is positioned between the reference element and its popper element. - * It will read the outer size of the `arrowElement` node to detect how many - * pixels of conjunction are needed. - * - * It has no effect if no `arrowElement` is provided. - * @memberof modifiers - * @inner - */ - arrow: { - /** @prop {number} order=500 - Index used to define the order of execution */ - order: 500, - /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ - enabled: true, - /** @prop {ModifierFn} */ - fn: arrow, - /** @prop {String|HTMLElement} element='[x-arrow]' - Selector or node used as arrow */ - element: '[x-arrow]' - }, - - /** - * Modifier used to flip the popper's placement when it starts to overlap its - * reference element. - * - * Requires the `preventOverflow` modifier before it in order to work. - * - * **NOTE:** this modifier will interrupt the current update cycle and will - * restart it if it detects the need to flip the placement. - * @memberof modifiers - * @inner - */ - flip: { - /** @prop {number} order=600 - Index used to define the order of execution */ - order: 600, - /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ - enabled: true, - /** @prop {ModifierFn} */ - fn: flip, - /** - * @prop {String|Array} behavior='flip' - * The behavior used to change the popper's placement. It can be one of - * `flip`, `clockwise`, `counterclockwise` or an array with a list of valid - * placements (with optional variations) - */ - behavior: 'flip', - /** - * @prop {number} padding=5 - * The popper will flip if it hits the edges of the `boundariesElement` - */ - padding: 5, - /** - * @prop {String|HTMLElement} boundariesElement='viewport' - * The element which will define the boundaries of the popper position. - * The popper will never be placed outside of the defined boundaries - * (except if `keepTogether` is enabled) - */ - boundariesElement: 'viewport', - /** - * @prop {Boolean} flipVariations=false - * The popper will switch placement variation between `-start` and `-end` when - * the reference element overlaps its boundaries. - * - * The original placement should have a set variation. - */ - flipVariations: false, - /** - * @prop {Boolean} flipVariationsByContent=false - * The popper will switch placement variation between `-start` and `-end` when - * the popper element overlaps its reference boundaries. - * - * The original placement should have a set variation. - */ - flipVariationsByContent: false - }, - - /** - * Modifier used to make the popper flow toward the inner of the reference element. - * By default, when this modifier is disabled, the popper will be placed outside - * the reference element. - * @memberof modifiers - * @inner - */ - inner: { - /** @prop {number} order=700 - Index used to define the order of execution */ - order: 700, - /** @prop {Boolean} enabled=false - Whether the modifier is enabled or not */ - enabled: false, - /** @prop {ModifierFn} */ - fn: inner - }, - - /** - * Modifier used to hide the popper when its reference element is outside of the - * popper boundaries. It will set a `x-out-of-boundaries` attribute which can - * be used to hide with a CSS selector the popper when its reference is - * out of boundaries. - * - * Requires the `preventOverflow` modifier before it in order to work. - * @memberof modifiers - * @inner - */ - hide: { - /** @prop {number} order=800 - Index used to define the order of execution */ - order: 800, - /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ - enabled: true, - /** @prop {ModifierFn} */ - fn: hide - }, - - /** - * Computes the style that will be applied to the popper element to gets - * properly positioned. - * - * Note that this modifier will not touch the DOM, it just prepares the styles - * so that `applyStyle` modifier can apply it. This separation is useful - * in case you need to replace `applyStyle` with a custom implementation. - * - * This modifier has `850` as `order` value to maintain backward compatibility - * with previous versions of Popper.js. Expect the modifiers ordering method - * to change in future major versions of the library. - * - * @memberof modifiers - * @inner - */ - computeStyle: { - /** @prop {number} order=850 - Index used to define the order of execution */ - order: 850, - /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ - enabled: true, - /** @prop {ModifierFn} */ - fn: computeStyle, - /** - * @prop {Boolean} gpuAcceleration=true - * If true, it uses the CSS 3D transformation to position the popper. - * Otherwise, it will use the `top` and `left` properties - */ - gpuAcceleration: true, - /** - * @prop {string} [x='bottom'] - * Where to anchor the X axis (`bottom` or `top`). AKA X offset origin. - * Change this if your popper should grow in a direction different from `bottom` - */ - x: 'bottom', - /** - * @prop {string} [x='left'] - * Where to anchor the Y axis (`left` or `right`). AKA Y offset origin. - * Change this if your popper should grow in a direction different from `right` - */ - y: 'right' - }, - - /** - * Applies the computed styles to the popper element. - * - * All the DOM manipulations are limited to this modifier. This is useful in case - * you want to integrate Popper.js inside a framework or view library and you - * want to delegate all the DOM manipulations to it. - * - * Note that if you disable this modifier, you must make sure the popper element - * has its position set to `absolute` before Popper.js can do its work! - * - * Just disable this modifier and define your own to achieve the desired effect. - * - * @memberof modifiers - * @inner - */ - applyStyle: { - /** @prop {number} order=900 - Index used to define the order of execution */ - order: 900, - /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ - enabled: true, - /** @prop {ModifierFn} */ - fn: applyStyle, - /** @prop {Function} */ - onLoad: applyStyleOnLoad, - /** - * @deprecated since version 1.10.0, the property moved to `computeStyle` modifier - * @prop {Boolean} gpuAcceleration=true - * If true, it uses the CSS 3D transformation to position the popper. - * Otherwise, it will use the `top` and `left` properties - */ - gpuAcceleration: undefined - } -}; - -/** - * The `dataObject` is an object containing all the information used by Popper.js. - * This object is passed to modifiers and to the `onCreate` and `onUpdate` callbacks. - * @name dataObject - * @property {Object} data.instance The Popper.js instance - * @property {String} data.placement Placement applied to popper - * @property {String} data.originalPlacement Placement originally defined on init - * @property {Boolean} data.flipped True if popper has been flipped by flip modifier - * @property {Boolean} data.hide True if the reference element is out of boundaries, useful to know when to hide the popper - * @property {HTMLElement} data.arrowElement Node used as arrow by arrow modifier - * @property {Object} data.styles Any CSS property defined here will be applied to the popper. It expects the JavaScript nomenclature (eg. `marginBottom`) - * @property {Object} data.arrowStyles Any CSS property defined here will be applied to the popper arrow. It expects the JavaScript nomenclature (eg. `marginBottom`) - * @property {Object} data.boundaries Offsets of the popper boundaries - * @property {Object} data.offsets The measurements of popper, reference and arrow elements - * @property {Object} data.offsets.popper `top`, `left`, `width`, `height` values - * @property {Object} data.offsets.reference `top`, `left`, `width`, `height` values - * @property {Object} data.offsets.arrow] `top` and `left` offsets, only one of them will be different from 0 - */ - -/** - * Default options provided to Popper.js constructor. - * These can be overridden using the `options` argument of Popper.js. - * To override an option, simply pass an object with the same - * structure of the `options` object, as the 3rd argument. For example: - * ``` - * new Popper(ref, pop, { - * modifiers: { - * preventOverflow: { enabled: false } - * } - * }) - * ``` - * @type {Object} - * @static - * @memberof Popper - */ -var Defaults = { - /** - * Popper's placement. - * @prop {Popper.placements} placement='bottom' - */ - placement: 'bottom', - - /** - * Set this to true if you want popper to position it self in 'fixed' mode - * @prop {Boolean} positionFixed=false - */ - positionFixed: false, - - /** - * Whether events (resize, scroll) are initially enabled. - * @prop {Boolean} eventsEnabled=true - */ - eventsEnabled: true, - - /** - * Set to true if you want to automatically remove the popper when - * you call the `destroy` method. - * @prop {Boolean} removeOnDestroy=false - */ - removeOnDestroy: false, - - /** - * Callback called when the popper is created. - * By default, it is set to no-op. - * Access Popper.js instance with `data.instance`. - * @prop {onCreate} - */ - onCreate: function onCreate() {}, - - /** - * Callback called when the popper is updated. This callback is not called - * on the initialization/creation of the popper, but only on subsequent - * updates. - * By default, it is set to no-op. - * Access Popper.js instance with `data.instance`. - * @prop {onUpdate} - */ - onUpdate: function onUpdate() {}, - - /** - * List of modifiers used to modify the offsets before they are applied to the popper. - * They provide most of the functionalities of Popper.js. - * @prop {modifiers} - */ - modifiers: modifiers -}; - -/** - * @callback onCreate - * @param {dataObject} data - */ - -/** - * @callback onUpdate - * @param {dataObject} data - */ - -// Utils -// Methods -var Popper = function () { - /** - * Creates a new Popper.js instance. - * @class Popper - * @param {Element|referenceObject} reference - The reference element used to position the popper - * @param {Element} popper - The HTML / XML element used as the popper - * @param {Object} options - Your custom options to override the ones defined in [Defaults](#defaults) - * @return {Object} instance - The generated Popper.js instance - */ - function Popper(reference, popper) { - var _this = this; - - var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - classCallCheck(this, Popper); - - this.scheduleUpdate = function () { - return requestAnimationFrame(_this.update); - }; - - // make update() debounced, so that it only runs at most once-per-tick - this.update = debounce(this.update.bind(this)); - - // with {} we create a new object with the options inside it - this.options = _extends({}, Popper.Defaults, options); - - // init state - this.state = { - isDestroyed: false, - isCreated: false, - scrollParents: [] - }; - - // get reference and popper elements (allow jQuery wrappers) - this.reference = reference && reference.jquery ? reference[0] : reference; - this.popper = popper && popper.jquery ? popper[0] : popper; - - // Deep merge modifiers options - this.options.modifiers = {}; - Object.keys(_extends({}, Popper.Defaults.modifiers, options.modifiers)).forEach(function (name) { - _this.options.modifiers[name] = _extends({}, Popper.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {}); - }); - - // Refactoring modifiers' list (Object => Array) - this.modifiers = Object.keys(this.options.modifiers).map(function (name) { - return _extends({ - name: name - }, _this.options.modifiers[name]); - }) - // sort the modifiers by order - .sort(function (a, b) { - return a.order - b.order; - }); - - // modifiers have the ability to execute arbitrary code when Popper.js get inited - // such code is executed in the same order of its modifier - // they could add new properties to their options configuration - // BE AWARE: don't add options to `options.modifiers.name` but to `modifierOptions`! - this.modifiers.forEach(function (modifierOptions) { - if (modifierOptions.enabled && isFunction(modifierOptions.onLoad)) { - modifierOptions.onLoad(_this.reference, _this.popper, _this.options, modifierOptions, _this.state); - } - }); - - // fire the first update to position the popper in the right place - this.update(); - - var eventsEnabled = this.options.eventsEnabled; - if (eventsEnabled) { - // setup event listeners, they will take care of update the position in specific situations - this.enableEventListeners(); - } - - this.state.eventsEnabled = eventsEnabled; - } - - // We can't use class properties because they don't get listed in the - // class prototype and break stuff like Sinon stubs - - - createClass(Popper, [{ - key: 'update', - value: function update$$1() { - return update.call(this); - } - }, { - key: 'destroy', - value: function destroy$$1() { - return destroy.call(this); - } - }, { - key: 'enableEventListeners', - value: function enableEventListeners$$1() { - return enableEventListeners.call(this); - } - }, { - key: 'disableEventListeners', - value: function disableEventListeners$$1() { - return disableEventListeners.call(this); - } - - /** - * Schedules an update. It will run on the next UI update available. - * @method scheduleUpdate - * @memberof Popper - */ - - - /** - * Collection of utilities useful when writing custom modifiers. - * Starting from version 1.7, this method is available only if you - * include `popper-utils.js` before `popper.js`. - * - * **DEPRECATION**: This way to access PopperUtils is deprecated - * and will be removed in v2! Use the PopperUtils module directly instead. - * Due to the high instability of the methods contained in Utils, we can't - * guarantee them to follow semver. Use them at your own risk! - * @static - * @private - * @type {Object} - * @deprecated since version 1.8 - * @member Utils - * @memberof Popper - */ - - }]); - return Popper; -}(); - -/** - * The `referenceObject` is an object that provides an interface compatible with Popper.js - * and lets you use it as replacement of a real DOM node. - * You can use this method to position a popper relatively to a set of coordinates - * in case you don't have a DOM node to use as reference. - * - * ``` - * new Popper(referenceObject, popperNode); - * ``` - * - * NB: This feature isn't supported in Internet Explorer 10. - * @name referenceObject - * @property {Function} data.getBoundingClientRect - * A function that returns a set of coordinates compatible with the native `getBoundingClientRect` method. - * @property {number} data.clientWidth - * An ES6 getter that will return the width of the virtual reference element. - * @property {number} data.clientHeight - * An ES6 getter that will return the height of the virtual reference element. - */ - - -Popper.Utils = (typeof window !== 'undefined' ? window : __webpack_require__.g).PopperUtils; -Popper.placements = placements; -Popper.Defaults = Defaults; - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Popper); -//# sourceMappingURL=popper.js.map - - -/***/ }), - -/***/ "./node_modules/@material-ui/core/node_modules/react-transition-group/esm/Transition.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "ENTERED": () => (/* binding */ ENTERED), -/* harmony export */ "ENTERING": () => (/* binding */ ENTERING), -/* harmony export */ "EXITED": () => (/* binding */ EXITED), -/* harmony export */ "EXITING": () => (/* binding */ EXITING), -/* harmony export */ "UNMOUNTED": () => (/* binding */ UNMOUNTED), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"); -/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/react-dom/index.js"); -/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/node_modules/react-transition-group/esm/config.js"); -/* harmony import */ var _utils_PropTypes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/node_modules/react-transition-group/esm/utils/PropTypes.js"); -/* harmony import */ var _TransitionGroupContext__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/node_modules/react-transition-group/esm/TransitionGroupContext.js"); -/* harmony import */ var _utils_reflow__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/node_modules/react-transition-group/esm/utils/reflow.js"); - - - - - - - - - -var UNMOUNTED = 'unmounted'; -var EXITED = 'exited'; -var ENTERING = 'entering'; -var ENTERED = 'entered'; -var EXITING = 'exiting'; -/** - * The Transition component lets you describe a transition from one component - * state to another _over time_ with a simple declarative API. Most commonly - * it's used to animate the mounting and unmounting of a component, but can also - * be used to describe in-place transition states as well. - * - * --- - * - * **Note**: `Transition` is a platform-agnostic base component. If you're using - * transitions in CSS, you'll probably want to use - * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition) - * instead. It inherits all the features of `Transition`, but contains - * additional features necessary to play nice with CSS transitions (hence the - * name of the component). - * - * --- - * - * By default the `Transition` component does not alter the behavior of the - * component it renders, it only tracks "enter" and "exit" states for the - * components. It's up to you to give meaning and effect to those states. For - * example we can add styles to a component when it enters or exits: - * - * ```jsx - * import { Transition } from 'react-transition-group'; - * - * const duration = 300; - * - * const defaultStyle = { - * transition: `opacity ${duration}ms ease-in-out`, - * opacity: 0, - * } - * - * const transitionStyles = { - * entering: { opacity: 1 }, - * entered: { opacity: 1 }, - * exiting: { opacity: 0 }, - * exited: { opacity: 0 }, - * }; - * - * const Fade = ({ in: inProp }) => ( - * - * {state => ( - * - * I'm a fade Transition! - * - * )} - * - * ); - * ``` - * - * There are 4 main states a Transition can be in: - * - `'entering'` - * - `'entered'` - * - `'exiting'` - * - `'exited'` - * - * Transition state is toggled via the `in` prop. When `true` the component - * begins the "Enter" stage. During this stage, the component will shift from - * its current transition state, to `'entering'` for the duration of the - * transition and then to the `'entered'` stage once it's complete. Let's take - * the following example (we'll use the - * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook): - * - * ```jsx - * function App() { - * const [inProp, setInProp] = useState(false); - * return ( - * - * - * {state => ( - * // ... - * )} - * - * setInProp(true)}> - * Click to Enter - * - * - * ); - * } - * ``` - * - * When the button is clicked the component will shift to the `'entering'` state - * and stay there for 500ms (the value of `timeout`) before it finally switches - * to `'entered'`. - * - * When `in` is `false` the same thing happens except the state moves from - * `'exiting'` to `'exited'`. - */ - -var Transition = /*#__PURE__*/function (_React$Component) { - (0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(Transition, _React$Component); - - function Transition(props, context) { - var _this; - - _this = _React$Component.call(this, props, context) || this; - var parentGroup = context; // In the context of a TransitionGroup all enters are really appears - - var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear; - var initialStatus; - _this.appearStatus = null; - - if (props.in) { - if (appear) { - initialStatus = EXITED; - _this.appearStatus = ENTERING; - } else { - initialStatus = ENTERED; - } - } else { - if (props.unmountOnExit || props.mountOnEnter) { - initialStatus = UNMOUNTED; - } else { - initialStatus = EXITED; - } - } - - _this.state = { - status: initialStatus - }; - _this.nextCallback = null; - return _this; - } - - Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) { - var nextIn = _ref.in; - - if (nextIn && prevState.status === UNMOUNTED) { - return { - status: EXITED - }; - } - - return null; - } // getSnapshotBeforeUpdate(prevProps) { - // let nextStatus = null - // if (prevProps !== this.props) { - // const { status } = this.state - // if (this.props.in) { - // if (status !== ENTERING && status !== ENTERED) { - // nextStatus = ENTERING - // } - // } else { - // if (status === ENTERING || status === ENTERED) { - // nextStatus = EXITING - // } - // } - // } - // return { nextStatus } - // } - ; - - var _proto = Transition.prototype; - - _proto.componentDidMount = function componentDidMount() { - this.updateStatus(true, this.appearStatus); - }; - - _proto.componentDidUpdate = function componentDidUpdate(prevProps) { - var nextStatus = null; - - if (prevProps !== this.props) { - var status = this.state.status; - - if (this.props.in) { - if (status !== ENTERING && status !== ENTERED) { - nextStatus = ENTERING; - } - } else { - if (status === ENTERING || status === ENTERED) { - nextStatus = EXITING; - } - } - } - - this.updateStatus(false, nextStatus); - }; - - _proto.componentWillUnmount = function componentWillUnmount() { - this.cancelNextCallback(); - }; - - _proto.getTimeouts = function getTimeouts() { - var timeout = this.props.timeout; - var exit, enter, appear; - exit = enter = appear = timeout; - - if (timeout != null && typeof timeout !== 'number') { - exit = timeout.exit; - enter = timeout.enter; // TODO: remove fallback for next major - - appear = timeout.appear !== undefined ? timeout.appear : enter; - } - - return { - exit: exit, - enter: enter, - appear: appear - }; - }; - - _proto.updateStatus = function updateStatus(mounting, nextStatus) { - if (mounting === void 0) { - mounting = false; - } - - if (nextStatus !== null) { - // nextStatus will always be ENTERING or EXITING. - this.cancelNextCallback(); - - if (nextStatus === ENTERING) { - if (this.props.unmountOnExit || this.props.mountOnEnter) { - var node = this.props.nodeRef ? this.props.nodeRef.current : react_dom__WEBPACK_IMPORTED_MODULE_3__.findDOMNode(this); // https://github.com/reactjs/react-transition-group/pull/749 - // With unmountOnExit or mountOnEnter, the enter animation should happen at the transition between `exited` and `entering`. - // To make the animation happen, we have to separate each rendering and avoid being processed as batched. - - if (node) (0,_utils_reflow__WEBPACK_IMPORTED_MODULE_4__.forceReflow)(node); - } - - this.performEnter(mounting); - } else { - this.performExit(); - } - } else if (this.props.unmountOnExit && this.state.status === EXITED) { - this.setState({ - status: UNMOUNTED - }); - } - }; - - _proto.performEnter = function performEnter(mounting) { - var _this2 = this; - - var enter = this.props.enter; - var appearing = this.context ? this.context.isMounting : mounting; - - var _ref2 = this.props.nodeRef ? [appearing] : [react_dom__WEBPACK_IMPORTED_MODULE_3__.findDOMNode(this), appearing], - maybeNode = _ref2[0], - maybeAppearing = _ref2[1]; - - var timeouts = this.getTimeouts(); - var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED - // if we are mounting and running this it means appear _must_ be set - - if (!mounting && !enter || _config__WEBPACK_IMPORTED_MODULE_5__["default"].disabled) { - this.safeSetState({ - status: ENTERED - }, function () { - _this2.props.onEntered(maybeNode); - }); - return; - } - - this.props.onEnter(maybeNode, maybeAppearing); - this.safeSetState({ - status: ENTERING - }, function () { - _this2.props.onEntering(maybeNode, maybeAppearing); - - _this2.onTransitionEnd(enterTimeout, function () { - _this2.safeSetState({ - status: ENTERED - }, function () { - _this2.props.onEntered(maybeNode, maybeAppearing); - }); - }); - }); - }; - - _proto.performExit = function performExit() { - var _this3 = this; - - var exit = this.props.exit; - var timeouts = this.getTimeouts(); - var maybeNode = this.props.nodeRef ? undefined : react_dom__WEBPACK_IMPORTED_MODULE_3__.findDOMNode(this); // no exit animation skip right to EXITED - - if (!exit || _config__WEBPACK_IMPORTED_MODULE_5__["default"].disabled) { - this.safeSetState({ - status: EXITED - }, function () { - _this3.props.onExited(maybeNode); - }); - return; - } - - this.props.onExit(maybeNode); - this.safeSetState({ - status: EXITING - }, function () { - _this3.props.onExiting(maybeNode); - - _this3.onTransitionEnd(timeouts.exit, function () { - _this3.safeSetState({ - status: EXITED - }, function () { - _this3.props.onExited(maybeNode); - }); - }); - }); - }; - - _proto.cancelNextCallback = function cancelNextCallback() { - if (this.nextCallback !== null) { - this.nextCallback.cancel(); - this.nextCallback = null; - } - }; - - _proto.safeSetState = function safeSetState(nextState, callback) { - // This shouldn't be necessary, but there are weird race conditions with - // setState callbacks and unmounting in testing, so always make sure that - // we can cancel any pending setState callbacks after we unmount. - callback = this.setNextCallback(callback); - this.setState(nextState, callback); - }; - - _proto.setNextCallback = function setNextCallback(callback) { - var _this4 = this; - - var active = true; - - this.nextCallback = function (event) { - if (active) { - active = false; - _this4.nextCallback = null; - callback(event); - } - }; - - this.nextCallback.cancel = function () { - active = false; - }; - - return this.nextCallback; - }; - - _proto.onTransitionEnd = function onTransitionEnd(timeout, handler) { - this.setNextCallback(handler); - var node = this.props.nodeRef ? this.props.nodeRef.current : react_dom__WEBPACK_IMPORTED_MODULE_3__.findDOMNode(this); - var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener; - - if (!node || doesNotHaveTimeoutOrListener) { - setTimeout(this.nextCallback, 0); - return; - } - - if (this.props.addEndListener) { - var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback], - maybeNode = _ref3[0], - maybeNextCallback = _ref3[1]; - - this.props.addEndListener(maybeNode, maybeNextCallback); - } - - if (timeout != null) { - setTimeout(this.nextCallback, timeout); - } - }; - - _proto.render = function render() { - var status = this.state.status; - - if (status === UNMOUNTED) { - return null; - } - - var _this$props = this.props, - children = _this$props.children, - _in = _this$props.in, - _mountOnEnter = _this$props.mountOnEnter, - _unmountOnExit = _this$props.unmountOnExit, - _appear = _this$props.appear, - _enter = _this$props.enter, - _exit = _this$props.exit, - _timeout = _this$props.timeout, - _addEndListener = _this$props.addEndListener, - _onEnter = _this$props.onEnter, - _onEntering = _this$props.onEntering, - _onEntered = _this$props.onEntered, - _onExit = _this$props.onExit, - _onExiting = _this$props.onExiting, - _onExited = _this$props.onExited, - _nodeRef = _this$props.nodeRef, - childProps = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]); - - return ( - /*#__PURE__*/ - // allows for nested Transitions - react__WEBPACK_IMPORTED_MODULE_2__.createElement(_TransitionGroupContext__WEBPACK_IMPORTED_MODULE_6__["default"].Provider, { - value: null - }, typeof children === 'function' ? children(status, childProps) : react__WEBPACK_IMPORTED_MODULE_2__.cloneElement(react__WEBPACK_IMPORTED_MODULE_2__.Children.only(children), childProps)) - ); - }; - - return Transition; -}(react__WEBPACK_IMPORTED_MODULE_2__.Component); - -Transition.contextType = _TransitionGroupContext__WEBPACK_IMPORTED_MODULE_6__["default"]; -Transition.propTypes = true ? { - /** - * A React reference to DOM element that need to transition: - * https://stackoverflow.com/a/51127130/4671932 - * - * - When `nodeRef` prop is used, `node` is not passed to callback functions - * (e.g. `onEnter`) because user already has direct access to the node. - * - When changing `key` prop of `Transition` in a `TransitionGroup` a new - * `nodeRef` need to be provided to `Transition` with changed `key` prop - * (see - * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)). - */ - nodeRef: prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({ - current: typeof Element === 'undefined' ? (prop_types__WEBPACK_IMPORTED_MODULE_7___default().any) : function (propValue, key, componentName, location, propFullName, secret) { - var value = propValue[key]; - return prop_types__WEBPACK_IMPORTED_MODULE_7___default().instanceOf(value && 'ownerDocument' in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret); - } - }), - - /** - * A `function` child can be used instead of a React element. This function is - * called with the current transition status (`'entering'`, `'entered'`, - * `'exiting'`, `'exited'`), which can be used to apply context - * specific props to a component. - * - * ```jsx - * - * {state => ( - * - * )} - * - * ``` - */ - children: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().func.isRequired), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().element.isRequired)]).isRequired, - - /** - * Show the component; triggers the enter or exit states - */ - in: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * By default the child component is mounted immediately along with - * the parent `Transition` component. If you want to "lazy mount" the component on the - * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay - * mounted, even on "exited", unless you also specify `unmountOnExit`. - */ - mountOnEnter: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * By default the child component stays mounted after it reaches the `'exited'` state. - * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting. - */ - unmountOnExit: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * By default the child component does not perform the enter transition when - * it first mounts, regardless of the value of `in`. If you want this - * behavior, set both `appear` and `in` to `true`. - * - * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop - * > only adds an additional enter transition. However, in the - * > `` component that first enter transition does result in - * > additional `.appear-*` classes, that way you can choose to style it - * > differently. - */ - appear: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * Enable or disable enter transitions. - */ - enter: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * Enable or disable exit transitions. - */ - exit: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * The duration of the transition, in milliseconds. - * Required unless `addEndListener` is provided. - * - * You may specify a single timeout for all transitions: - * - * ```jsx - * timeout={500} - * ``` - * - * or individually: - * - * ```jsx - * timeout={{ - * appear: 500, - * enter: 300, - * exit: 500, - * }} - * ``` - * - * - `appear` defaults to the value of `enter` - * - `enter` defaults to `0` - * - `exit` defaults to `0` - * - * @type {number | { enter?: number, exit?: number, appear?: number }} - */ - timeout: function timeout(props) { - var pt = _utils_PropTypes__WEBPACK_IMPORTED_MODULE_8__.timeoutsShape; - if (!props.addEndListener) pt = pt.isRequired; - - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - return pt.apply(void 0, [props].concat(args)); - }, - - /** - * Add a custom transition end trigger. Called with the transitioning - * DOM node and a `done` callback. Allows for more fine grained transition end - * logic. Timeouts are still used as a fallback if provided. - * - * **Note**: when `nodeRef` prop is passed, `node` is not passed. - * - * ```jsx - * addEndListener={(node, done) => { - * // use the css transitionend event to mark the finish of a transition - * node.addEventListener('transitionend', done, false); - * }} - * ``` - */ - addEndListener: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), - - /** - * Callback fired before the "entering" status is applied. An extra parameter - * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount - * - * **Note**: when `nodeRef` prop is passed, `node` is not passed. - * - * @type Function(node: HtmlElement, isAppearing: bool) -> void - */ - onEnter: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), - - /** - * Callback fired after the "entering" status is applied. An extra parameter - * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount - * - * **Note**: when `nodeRef` prop is passed, `node` is not passed. - * - * @type Function(node: HtmlElement, isAppearing: bool) - */ - onEntering: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), - - /** - * Callback fired after the "entered" status is applied. An extra parameter - * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount - * - * **Note**: when `nodeRef` prop is passed, `node` is not passed. - * - * @type Function(node: HtmlElement, isAppearing: bool) -> void - */ - onEntered: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), - - /** - * Callback fired before the "exiting" status is applied. - * - * **Note**: when `nodeRef` prop is passed, `node` is not passed. - * - * @type Function(node: HtmlElement) -> void - */ - onExit: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), - - /** - * Callback fired after the "exiting" status is applied. - * - * **Note**: when `nodeRef` prop is passed, `node` is not passed. - * - * @type Function(node: HtmlElement) -> void - */ - onExiting: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), - - /** - * Callback fired after the "exited" status is applied. - * - * **Note**: when `nodeRef` prop is passed, `node` is not passed - * - * @type Function(node: HtmlElement) -> void - */ - onExited: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func) -} : 0; // Name the function so it is clearer in the documentation - -function noop() {} - -Transition.defaultProps = { - in: false, - mountOnEnter: false, - unmountOnExit: false, - appear: false, - enter: true, - exit: true, - onEnter: noop, - onEntering: noop, - onEntered: noop, - onExit: noop, - onExiting: noop, - onExited: noop -}; -Transition.UNMOUNTED = UNMOUNTED; -Transition.EXITED = EXITED; -Transition.ENTERING = ENTERING; -Transition.ENTERED = ENTERED; -Transition.EXITING = EXITING; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Transition); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/node_modules/react-transition-group/esm/TransitionGroup.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"); -/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _TransitionGroupContext__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/node_modules/react-transition-group/esm/TransitionGroupContext.js"); -/* harmony import */ var _utils_ChildMapping__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/node_modules/react-transition-group/esm/utils/ChildMapping.js"); - - - - - - - - - -var values = Object.values || function (obj) { - return Object.keys(obj).map(function (k) { - return obj[k]; - }); -}; - -var defaultProps = { - component: 'div', - childFactory: function childFactory(child) { - return child; - } -}; -/** - * The `` component manages a set of transition components - * (`` and ``) in a list. Like with the transition - * components, `` is a state machine for managing the mounting - * and unmounting of components over time. - * - * Consider the example below. As items are removed or added to the TodoList the - * `in` prop is toggled automatically by the ``. - * - * Note that `` does not define any animation behavior! - * Exactly _how_ a list item animates is up to the individual transition - * component. This means you can mix and match animations across different list - * items. - */ - -var TransitionGroup = /*#__PURE__*/function (_React$Component) { - (0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(TransitionGroup, _React$Component); - - function TransitionGroup(props, context) { - var _this; - - _this = _React$Component.call(this, props, context) || this; - - var handleExited = _this.handleExited.bind((0,_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(_this)); // Initial children should all be entering, dependent on appear - - - _this.state = { - contextValue: { - isMounting: true - }, - handleExited: handleExited, - firstRender: true - }; - return _this; - } - - var _proto = TransitionGroup.prototype; - - _proto.componentDidMount = function componentDidMount() { - this.mounted = true; - this.setState({ - contextValue: { - isMounting: false - } - }); - }; - - _proto.componentWillUnmount = function componentWillUnmount() { - this.mounted = false; - }; - - TransitionGroup.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) { - var prevChildMapping = _ref.children, - handleExited = _ref.handleExited, - firstRender = _ref.firstRender; - return { - children: firstRender ? (0,_utils_ChildMapping__WEBPACK_IMPORTED_MODULE_5__.getInitialChildMapping)(nextProps, handleExited) : (0,_utils_ChildMapping__WEBPACK_IMPORTED_MODULE_5__.getNextChildMapping)(nextProps, prevChildMapping, handleExited), - firstRender: false - }; - } // node is `undefined` when user provided `nodeRef` prop - ; - - _proto.handleExited = function handleExited(child, node) { - var currentChildMapping = (0,_utils_ChildMapping__WEBPACK_IMPORTED_MODULE_5__.getChildMapping)(this.props.children); - if (child.key in currentChildMapping) return; - - if (child.props.onExited) { - child.props.onExited(node); - } - - if (this.mounted) { - this.setState(function (state) { - var children = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, state.children); - - delete children[child.key]; - return { - children: children - }; - }); - } - }; - - _proto.render = function render() { - var _this$props = this.props, - Component = _this$props.component, - childFactory = _this$props.childFactory, - props = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_this$props, ["component", "childFactory"]); - - var contextValue = this.state.contextValue; - var children = values(this.state.children).map(childFactory); - delete props.appear; - delete props.enter; - delete props.exit; - - if (Component === null) { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(_TransitionGroupContext__WEBPACK_IMPORTED_MODULE_6__["default"].Provider, { - value: contextValue - }, children); - } - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(_TransitionGroupContext__WEBPACK_IMPORTED_MODULE_6__["default"].Provider, { - value: contextValue - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(Component, props, children)); - }; - - return TransitionGroup; -}(react__WEBPACK_IMPORTED_MODULE_4__.Component); - -TransitionGroup.propTypes = true ? { - /** - * `` renders a `` by default. You can change this - * behavior by providing a `component` prop. - * If you use React v16+ and would like to avoid a wrapping `` element - * you can pass in `component={null}`. This is useful if the wrapping div - * borks your css styles. - */ - component: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().any), - - /** - * A set of `` components, that are toggled `in` and out as they - * leave. the `` will inject specific transition props, so - * remember to spread them through if you are wrapping the `` as - * with our `` example. - * - * While this component is meant for multiple `Transition` or `CSSTransition` - * children, sometimes you may want to have a single transition child with - * content that you want to be transitioned out and in when you change it - * (e.g. routes, images etc.) In that case you can change the `key` prop of - * the transition child as you change its content, this will cause - * `TransitionGroup` to transition the child out and back in. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().node), - - /** - * A convenience prop that enables or disables appear animations - * for all children. Note that specifying this will override any defaults set - * on individual children Transitions. - */ - appear: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * A convenience prop that enables or disables enter animations - * for all children. Note that specifying this will override any defaults set - * on individual children Transitions. - */ - enter: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * A convenience prop that enables or disables exit animations - * for all children. Note that specifying this will override any defaults set - * on individual children Transitions. - */ - exit: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - - /** - * You may need to apply reactive updates to a child as it is exiting. - * This is generally done by using `cloneElement` however in the case of an exiting - * child the element has already been removed and not accessible to the consumer. - * - * If you do need to update a child as it leaves you can provide a `childFactory` - * to wrap every child, even the ones that are leaving. - * - * @type Function(child: ReactElement) -> ReactElement - */ - childFactory: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func) -} : 0; -TransitionGroup.defaultProps = defaultProps; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TransitionGroup); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/node_modules/react-transition-group/esm/TransitionGroupContext.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (react__WEBPACK_IMPORTED_MODULE_0__.createContext(null)); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/node_modules/react-transition-group/esm/config.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ - disabled: false -}); - -/***/ }), - -/***/ "./node_modules/@material-ui/core/node_modules/react-transition-group/esm/utils/ChildMapping.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "getChildMapping": () => (/* binding */ getChildMapping), -/* harmony export */ "getInitialChildMapping": () => (/* binding */ getInitialChildMapping), -/* harmony export */ "getNextChildMapping": () => (/* binding */ getNextChildMapping), -/* harmony export */ "mergeChildMappings": () => (/* binding */ mergeChildMappings) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); - -/** - * Given `this.props.children`, return an object mapping key to child. - * - * @param {*} children `this.props.children` - * @return {object} Mapping of key to child - */ - -function getChildMapping(children, mapFn) { - var mapper = function mapper(child) { - return mapFn && (0,react__WEBPACK_IMPORTED_MODULE_0__.isValidElement)(child) ? mapFn(child) : child; - }; - - var result = Object.create(null); - if (children) react__WEBPACK_IMPORTED_MODULE_0__.Children.map(children, function (c) { - return c; - }).forEach(function (child) { - // run the map function here instead so that the key is the computed one - result[child.key] = mapper(child); - }); - return result; -} -/** - * When you're adding or removing children some may be added or removed in the - * same render pass. We want to show *both* since we want to simultaneously - * animate elements in and out. This function takes a previous set of keys - * and a new set of keys and merges them with its best guess of the correct - * ordering. In the future we may expose some of the utilities in - * ReactMultiChild to make this easy, but for now React itself does not - * directly have this concept of the union of prevChildren and nextChildren - * so we implement it here. - * - * @param {object} prev prev children as returned from - * `ReactTransitionChildMapping.getChildMapping()`. - * @param {object} next next children as returned from - * `ReactTransitionChildMapping.getChildMapping()`. - * @return {object} a key set that contains all keys in `prev` and all keys - * in `next` in a reasonable order. - */ - -function mergeChildMappings(prev, next) { - prev = prev || {}; - next = next || {}; - - function getValueForKey(key) { - return key in next ? next[key] : prev[key]; - } // For each key of `next`, the list of keys to insert before that key in - // the combined list - - - var nextKeysPending = Object.create(null); - var pendingKeys = []; - - for (var prevKey in prev) { - if (prevKey in next) { - if (pendingKeys.length) { - nextKeysPending[prevKey] = pendingKeys; - pendingKeys = []; - } - } else { - pendingKeys.push(prevKey); - } - } - - var i; - var childMapping = {}; - - for (var nextKey in next) { - if (nextKeysPending[nextKey]) { - for (i = 0; i < nextKeysPending[nextKey].length; i++) { - var pendingNextKey = nextKeysPending[nextKey][i]; - childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey); - } - } - - childMapping[nextKey] = getValueForKey(nextKey); - } // Finally, add the keys which didn't appear before any key in `next` - - - for (i = 0; i < pendingKeys.length; i++) { - childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]); - } - - return childMapping; -} - -function getProp(child, prop, props) { - return props[prop] != null ? props[prop] : child.props[prop]; -} - -function getInitialChildMapping(props, onExited) { - return getChildMapping(props.children, function (child) { - return (0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(child, { - onExited: onExited.bind(null, child), - in: true, - appear: getProp(child, 'appear', props), - enter: getProp(child, 'enter', props), - exit: getProp(child, 'exit', props) - }); - }); -} -function getNextChildMapping(nextProps, prevChildMapping, onExited) { - var nextChildMapping = getChildMapping(nextProps.children); - var children = mergeChildMappings(prevChildMapping, nextChildMapping); - Object.keys(children).forEach(function (key) { - var child = children[key]; - if (!(0,react__WEBPACK_IMPORTED_MODULE_0__.isValidElement)(child)) return; - var hasPrev = (key in prevChildMapping); - var hasNext = (key in nextChildMapping); - var prevChild = prevChildMapping[key]; - var isLeaving = (0,react__WEBPACK_IMPORTED_MODULE_0__.isValidElement)(prevChild) && !prevChild.props.in; // item is new (entering) - - if (hasNext && (!hasPrev || isLeaving)) { - // console.log('entering', key) - children[key] = (0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(child, { - onExited: onExited.bind(null, child), - in: true, - exit: getProp(child, 'exit', nextProps), - enter: getProp(child, 'enter', nextProps) - }); - } else if (!hasNext && hasPrev && !isLeaving) { - // item is old (exiting) - // console.log('leaving', key) - children[key] = (0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(child, { - in: false - }); - } else if (hasNext && hasPrev && (0,react__WEBPACK_IMPORTED_MODULE_0__.isValidElement)(prevChild)) { - // item hasn't changed transition states - // copy over the last transition props; - // console.log('unchanged', key) - children[key] = (0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(child, { - onExited: onExited.bind(null, child), - in: prevChild.props.in, - exit: getProp(child, 'exit', nextProps), - enter: getProp(child, 'enter', nextProps) - }); - } - }); - return children; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/core/node_modules/react-transition-group/esm/utils/PropTypes.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "classNamesShape": () => (/* binding */ classNamesShape), -/* harmony export */ "timeoutsShape": () => (/* binding */ timeoutsShape) -/* harmony export */ }); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__); - -var timeoutsShape = true ? prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({ - enter: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), - exit: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), - appear: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number) -}).isRequired]) : 0; -var classNamesShape = true ? prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({ - enter: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), - exit: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), - active: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string) -}), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({ - enter: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), - enterDone: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), - enterActive: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), - exit: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), - exitDone: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), - exitActive: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string) -})]) : 0; - -/***/ }), - -/***/ "./node_modules/@material-ui/core/node_modules/react-transition-group/esm/utils/reflow.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "forceReflow": () => (/* binding */ forceReflow) -/* harmony export */ }); -var forceReflow = function forceReflow(node) { - return node.scrollTop; -}; - -/***/ }), - -/***/ "./node_modules/@material-ui/icons/ArrowDropDown.js": -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; - - -var _interopRequireDefault = __webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); - -var _interopRequireWildcard = __webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireWildcard.js"); - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var React = _interopRequireWildcard(__webpack_require__("./node_modules/react/index.js")); - -var _createSvgIcon = _interopRequireDefault(__webpack_require__("./node_modules/@material-ui/icons/utils/createSvgIcon.js")); - -var _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement("path", { - d: "M7 10l5 5 5-5z" -}), 'ArrowDropDown'); - -exports["default"] = _default; - -/***/ }), - -/***/ "./node_modules/@material-ui/icons/Assignment.js": -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; - - -var _interopRequireDefault = __webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); - -var _interopRequireWildcard = __webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireWildcard.js"); - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var React = _interopRequireWildcard(__webpack_require__("./node_modules/react/index.js")); - -var _createSvgIcon = _interopRequireDefault(__webpack_require__("./node_modules/@material-ui/icons/utils/createSvgIcon.js")); - -var _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement("path", { - d: "M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm2 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z" -}), 'Assignment'); - -exports["default"] = _default; - -/***/ }), - -/***/ "./node_modules/@material-ui/icons/CheckCircle.js": -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; - - -var _interopRequireDefault = __webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); - -var _interopRequireWildcard = __webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireWildcard.js"); - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var React = _interopRequireWildcard(__webpack_require__("./node_modules/react/index.js")); - -var _createSvgIcon = _interopRequireDefault(__webpack_require__("./node_modules/@material-ui/icons/utils/createSvgIcon.js")); - -var _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement("path", { - d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" -}), 'CheckCircle'); - -exports["default"] = _default; - -/***/ }), - -/***/ "./node_modules/@material-ui/icons/Close.js": -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; - - -var _interopRequireDefault = __webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); - -var _interopRequireWildcard = __webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireWildcard.js"); - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var React = _interopRequireWildcard(__webpack_require__("./node_modules/react/index.js")); - -var _createSvgIcon = _interopRequireDefault(__webpack_require__("./node_modules/@material-ui/icons/utils/createSvgIcon.js")); - -var _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement("path", { - d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" -}), 'Close'); - -exports["default"] = _default; - -/***/ }), - -/***/ "./node_modules/@material-ui/icons/Delete.js": -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; - - -var _interopRequireDefault = __webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); - -var _interopRequireWildcard = __webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireWildcard.js"); - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var React = _interopRequireWildcard(__webpack_require__("./node_modules/react/index.js")); - -var _createSvgIcon = _interopRequireDefault(__webpack_require__("./node_modules/@material-ui/icons/utils/createSvgIcon.js")); - -var _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement("path", { - d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z" -}), 'Delete'); - -exports["default"] = _default; - -/***/ }), - -/***/ "./node_modules/@material-ui/icons/ExpandMore.js": -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; - - -var _interopRequireDefault = __webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); - -var _interopRequireWildcard = __webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireWildcard.js"); - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var React = _interopRequireWildcard(__webpack_require__("./node_modules/react/index.js")); - -var _createSvgIcon = _interopRequireDefault(__webpack_require__("./node_modules/@material-ui/icons/utils/createSvgIcon.js")); - -var _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement("path", { - d: "M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z" -}), 'ExpandMore'); - -exports["default"] = _default; - -/***/ }), - -/***/ "./node_modules/@material-ui/icons/FiberManualRecord.js": -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; - - -var _interopRequireDefault = __webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); - -var _interopRequireWildcard = __webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireWildcard.js"); - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var React = _interopRequireWildcard(__webpack_require__("./node_modules/react/index.js")); - -var _createSvgIcon = _interopRequireDefault(__webpack_require__("./node_modules/@material-ui/icons/utils/createSvgIcon.js")); - -var _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement("circle", { - cx: "12", - cy: "12", - r: "8" -}), 'FiberManualRecord'); - -exports["default"] = _default; - -/***/ }), - -/***/ "./node_modules/@material-ui/icons/InfoOutlined.js": -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; - - -var _interopRequireDefault = __webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); - -var _interopRequireWildcard = __webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireWildcard.js"); - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var React = _interopRequireWildcard(__webpack_require__("./node_modules/react/index.js")); - -var _createSvgIcon = _interopRequireDefault(__webpack_require__("./node_modules/@material-ui/icons/utils/createSvgIcon.js")); - -var _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement("path", { - d: "M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z" -}), 'InfoOutlined'); - -exports["default"] = _default; - -/***/ }), - -/***/ "./node_modules/@material-ui/icons/Menu.js": -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; - - -var _interopRequireDefault = __webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); - -var _interopRequireWildcard = __webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireWildcard.js"); - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var React = _interopRequireWildcard(__webpack_require__("./node_modules/react/index.js")); - -var _createSvgIcon = _interopRequireDefault(__webpack_require__("./node_modules/@material-ui/icons/utils/createSvgIcon.js")); - -var _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement("path", { - d: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" -}), 'Menu'); - -exports["default"] = _default; - -/***/ }), - -/***/ "./node_modules/@material-ui/icons/NotInterested.js": -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; - - -var _interopRequireDefault = __webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); - -var _interopRequireWildcard = __webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireWildcard.js"); - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var React = _interopRequireWildcard(__webpack_require__("./node_modules/react/index.js")); - -var _createSvgIcon = _interopRequireDefault(__webpack_require__("./node_modules/@material-ui/icons/utils/createSvgIcon.js")); - -var _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement("path", { - d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z" -}), 'NotInterested'); - -exports["default"] = _default; - -/***/ }), - -/***/ "./node_modules/@material-ui/icons/Refresh.js": -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; - - -var _interopRequireDefault = __webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); - -var _interopRequireWildcard = __webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireWildcard.js"); - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var React = _interopRequireWildcard(__webpack_require__("./node_modules/react/index.js")); - -var _createSvgIcon = _interopRequireDefault(__webpack_require__("./node_modules/@material-ui/icons/utils/createSvgIcon.js")); - -var _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement("path", { - d: "M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z" -}), 'Refresh'); - -exports["default"] = _default; - -/***/ }), - -/***/ "./node_modules/@material-ui/icons/VpnKey.js": -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; - - -var _interopRequireDefault = __webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); - -var _interopRequireWildcard = __webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireWildcard.js"); - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var React = _interopRequireWildcard(__webpack_require__("./node_modules/react/index.js")); - -var _createSvgIcon = _interopRequireDefault(__webpack_require__("./node_modules/@material-ui/icons/utils/createSvgIcon.js")); - -var _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement("path", { - d: "M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z" -}), 'VpnKey'); - -exports["default"] = _default; - -/***/ }), - -/***/ "./node_modules/@material-ui/icons/utils/createSvgIcon.js": -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -Object.defineProperty(exports, "default", ({ - enumerable: true, - get: function get() { - return _utils.createSvgIcon; - } -})); - -var _utils = __webpack_require__("./node_modules/@material-ui/core/esm/utils/index.js"); - -/***/ }), - -/***/ "./node_modules/@material-ui/lab/esm/Alert/Alert.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/colorManipulator.js"); -/* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _material_ui_core_Paper__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/core/esm/Paper/Paper.js"); -/* harmony import */ var _internal_svg_icons_SuccessOutlined__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/lab/esm/internal/svg-icons/SuccessOutlined.js"); -/* harmony import */ var _internal_svg_icons_ReportProblemOutlined__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/lab/esm/internal/svg-icons/ReportProblemOutlined.js"); -/* harmony import */ var _internal_svg_icons_ErrorOutline__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/lab/esm/internal/svg-icons/ErrorOutline.js"); -/* harmony import */ var _internal_svg_icons_InfoOutlined__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/lab/esm/internal/svg-icons/InfoOutlined.js"); -/* harmony import */ var _internal_svg_icons_Close__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/lab/esm/internal/svg-icons/Close.js"); -/* harmony import */ var _material_ui_core_IconButton__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("./node_modules/@material-ui/core/esm/IconButton/IconButton.js"); -/* harmony import */ var _material_ui_core_utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/capitalize.js"); - - - - - - - - - - - - - - -var styles = function styles(theme) { - var getColor = theme.palette.type === 'light' ? _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_4__.darken : _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_4__.lighten; - var getBackgroundColor = theme.palette.type === 'light' ? _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_4__.lighten : _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_4__.darken; - return { - /* Styles applied to the root element. */ - root: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, theme.typography.body2, { - borderRadius: theme.shape.borderRadius, - backgroundColor: 'transparent', - display: 'flex', - padding: '6px 16px' - }), - - /* Styles applied to the root element if `variant="standard"` and `color="success"`. */ - standardSuccess: { - color: getColor(theme.palette.success.main, 0.6), - backgroundColor: getBackgroundColor(theme.palette.success.main, 0.9), - '& $icon': { - color: theme.palette.success.main - } - }, - - /* Styles applied to the root element if `variant="standard"` and `color="info"`. */ - standardInfo: { - color: getColor(theme.palette.info.main, 0.6), - backgroundColor: getBackgroundColor(theme.palette.info.main, 0.9), - '& $icon': { - color: theme.palette.info.main - } - }, - - /* Styles applied to the root element if `variant="standard"` and `color="warning"`. */ - standardWarning: { - color: getColor(theme.palette.warning.main, 0.6), - backgroundColor: getBackgroundColor(theme.palette.warning.main, 0.9), - '& $icon': { - color: theme.palette.warning.main - } - }, - - /* Styles applied to the root element if `variant="standard"` and `color="error"`. */ - standardError: { - color: getColor(theme.palette.error.main, 0.6), - backgroundColor: getBackgroundColor(theme.palette.error.main, 0.9), - '& $icon': { - color: theme.palette.error.main - } - }, - - /* Styles applied to the root element if `variant="outlined"` and `color="success"`. */ - outlinedSuccess: { - color: getColor(theme.palette.success.main, 0.6), - border: "1px solid ".concat(theme.palette.success.main), - '& $icon': { - color: theme.palette.success.main - } - }, - - /* Styles applied to the root element if `variant="outlined"` and `color="info"`. */ - outlinedInfo: { - color: getColor(theme.palette.info.main, 0.6), - border: "1px solid ".concat(theme.palette.info.main), - '& $icon': { - color: theme.palette.info.main - } - }, - - /* Styles applied to the root element if `variant="outlined"` and `color="warning"`. */ - outlinedWarning: { - color: getColor(theme.palette.warning.main, 0.6), - border: "1px solid ".concat(theme.palette.warning.main), - '& $icon': { - color: theme.palette.warning.main - } - }, - - /* Styles applied to the root element if `variant="outlined"` and `color="error"`. */ - outlinedError: { - color: getColor(theme.palette.error.main, 0.6), - border: "1px solid ".concat(theme.palette.error.main), - '& $icon': { - color: theme.palette.error.main - } - }, - - /* Styles applied to the root element if `variant="filled"` and `color="success"`. */ - filledSuccess: { - color: '#fff', - fontWeight: theme.typography.fontWeightMedium, - backgroundColor: theme.palette.success.main - }, - - /* Styles applied to the root element if `variant="filled"` and `color="info"`. */ - filledInfo: { - color: '#fff', - fontWeight: theme.typography.fontWeightMedium, - backgroundColor: theme.palette.info.main - }, - - /* Styles applied to the root element if `variant="filled"` and `color="warning"`. */ - filledWarning: { - color: '#fff', - fontWeight: theme.typography.fontWeightMedium, - backgroundColor: theme.palette.warning.main - }, - - /* Styles applied to the root element if `variant="filled"` and `color="error"`. */ - filledError: { - color: '#fff', - fontWeight: theme.typography.fontWeightMedium, - backgroundColor: theme.palette.error.main - }, - - /* Styles applied to the icon wrapper element. */ - icon: { - marginRight: 12, - padding: '7px 0', - display: 'flex', - fontSize: 22, - opacity: 0.9 - }, - - /* Styles applied to the message wrapper element. */ - message: { - padding: '8px 0' - }, - - /* Styles applied to the action wrapper element if `action` is provided. */ - action: { - display: 'flex', - alignItems: 'center', - marginLeft: 'auto', - paddingLeft: 16, - marginRight: -8 - } - }; -}; -var defaultIconMapping = { - success: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_internal_svg_icons_SuccessOutlined__WEBPACK_IMPORTED_MODULE_5__["default"], { - fontSize: "inherit" - }), - warning: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_internal_svg_icons_ReportProblemOutlined__WEBPACK_IMPORTED_MODULE_6__["default"], { - fontSize: "inherit" - }), - error: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_internal_svg_icons_ErrorOutline__WEBPACK_IMPORTED_MODULE_7__["default"], { - fontSize: "inherit" - }), - info: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_internal_svg_icons_InfoOutlined__WEBPACK_IMPORTED_MODULE_8__["default"], { - fontSize: "inherit" - }) -}; - -var _ref = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_internal_svg_icons_Close__WEBPACK_IMPORTED_MODULE_9__["default"], { - fontSize: "small" -}); - -var Alert = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function Alert(props, ref) { - var action = props.action, - children = props.children, - classes = props.classes, - className = props.className, - _props$closeText = props.closeText, - closeText = _props$closeText === void 0 ? 'Close' : _props$closeText, - color = props.color, - icon = props.icon, - _props$iconMapping = props.iconMapping, - iconMapping = _props$iconMapping === void 0 ? defaultIconMapping : _props$iconMapping, - onClose = props.onClose, - _props$role = props.role, - role = _props$role === void 0 ? 'alert' : _props$role, - _props$severity = props.severity, - severity = _props$severity === void 0 ? 'success' : _props$severity, - _props$variant = props.variant, - variant = _props$variant === void 0 ? 'standard' : _props$variant, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__["default"])(props, ["action", "children", "classes", "className", "closeText", "color", "icon", "iconMapping", "onClose", "role", "severity", "variant"]); - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_material_ui_core_Paper__WEBPACK_IMPORTED_MODULE_10__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - role: role, - square: true, - elevation: 0, - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, classes["".concat(variant).concat((0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_11__["default"])(color || severity))], className), - ref: ref - }, other), icon !== false ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { - className: classes.icon - }, icon || iconMapping[severity] || defaultIconMapping[severity]) : null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { - className: classes.message - }, children), action != null ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { - className: classes.action - }, action) : null, action == null && onClose ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { - className: classes.action - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_material_ui_core_IconButton__WEBPACK_IMPORTED_MODULE_12__["default"], { - size: "small", - "aria-label": closeText, - title: closeText, - color: "inherit", - onClick: onClose - }, _ref)) : null); -}); - true ? Alert.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * The action to display. It renders after the message, at the end of the alert. - */ - action: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().node), - - /** - * The content of the component. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().node), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), - - /** - * Override the default label for the *close popup* icon button. - * - * For localization purposes, you can use the provided [translations](/guides/localization/). - */ - closeText: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), - - /** - * The main color for the alert. Unless provided, the value is taken from the `severity` prop. - */ - color: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOf(['error', 'info', 'success', 'warning']), - - /** - * Override the icon displayed before the children. - * Unless provided, the icon is mapped to the value of the `severity` prop. - */ - icon: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().node), - - /** - * The component maps the `severity` prop to a range of different icons, - * for instance success to ``. - * If you wish to change this mapping, you can provide your own. - * Alternatively, you can use the `icon` prop to override the icon displayed. - */ - iconMapping: prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({ - error: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().node), - info: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().node), - success: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().node), - warning: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().node) - }), - - /** - * Callback fired when the component requests to be closed. - * When provided and no `action` prop is set, a close icon button is displayed that triggers the callback when clicked. - * - * @param {object} event The event source of the callback. - */ - onClose: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), - - /** - * The ARIA role attribute of the element. - */ - role: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), - - /** - * The severity of the alert. This defines the color and icon used. - */ - severity: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOf(['error', 'info', 'success', 'warning']), - - /** - * The variant to use. - */ - variant: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOf(['filled', 'outlined', 'standard']) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_14__["default"])(styles, { - name: 'MuiAlert' -})(Alert)); - -/***/ }), - -/***/ "./node_modules/@material-ui/lab/esm/Autocomplete/Autocomplete.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "createFilterOptions": () => (/* reexport safe */ _useAutocomplete__WEBPACK_IMPORTED_MODULE_5__.createFilterOptions), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "styles": () => (/* binding */ styles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _material_ui_core_Popper__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/core/esm/Popper/Popper.js"); -/* harmony import */ var _material_ui_core_ListSubheader__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/@material-ui/core/esm/ListSubheader/ListSubheader.js"); -/* harmony import */ var _material_ui_core_Paper__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/Paper/Paper.js"); -/* harmony import */ var _material_ui_core_IconButton__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("./node_modules/@material-ui/core/esm/IconButton/IconButton.js"); -/* harmony import */ var _material_ui_core_Chip__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/core/esm/Chip/Chip.js"); -/* harmony import */ var _internal_svg_icons_Close__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/lab/esm/internal/svg-icons/Close.js"); -/* harmony import */ var _internal_svg_icons_ArrowDropDown__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/lab/esm/internal/svg-icons/ArrowDropDown.js"); -/* harmony import */ var _useAutocomplete__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/lab/esm/useAutocomplete/useAutocomplete.js"); - - - - - - - - - - - - - - - - -var styles = function styles(theme) { - var _option; - - return { - /* Styles applied to the root element. */ - root: { - '&$focused $clearIndicatorDirty': { - visibility: 'visible' - }, - - /* Avoid double tap issue on iOS */ - '@media (pointer: fine)': { - '&:hover $clearIndicatorDirty': { - visibility: 'visible' - } - } - }, - - /* Styles applied to the root element if `fullWidth={true}`. */ - fullWidth: { - width: '100%' - }, - - /* Pseudo-class applied to the root element if focused. */ - focused: {}, - - /* Styles applied to the tag elements, e.g. the chips. */ - tag: { - margin: 3, - maxWidth: 'calc(100% - 6px)' - }, - - /* Styles applied to the tag elements, e.g. the chips if `size="small"`. */ - tagSizeSmall: { - margin: 2, - maxWidth: 'calc(100% - 4px)' - }, - - /* Styles applied when the popup icon is rendered. */ - hasPopupIcon: {}, - - /* Styles applied when the clear icon is rendered. */ - hasClearIcon: {}, - - /* Styles applied to the Input element. */ - inputRoot: { - flexWrap: 'wrap', - '$hasPopupIcon &, $hasClearIcon &': { - paddingRight: 26 + 4 - }, - '$hasPopupIcon$hasClearIcon &': { - paddingRight: 52 + 4 - }, - '& $input': { - width: 0, - minWidth: 30 - }, - '&[class*="MuiInput-root"]': { - paddingBottom: 1, - '& $input': { - padding: 4 - }, - '& $input:first-child': { - padding: '6px 0' - } - }, - '&[class*="MuiInput-root"][class*="MuiInput-marginDense"]': { - '& $input': { - padding: '4px 4px 5px' - }, - '& $input:first-child': { - padding: '3px 0 6px' - } - }, - '&[class*="MuiOutlinedInput-root"]': { - padding: 9, - '$hasPopupIcon &, $hasClearIcon &': { - paddingRight: 26 + 4 + 9 - }, - '$hasPopupIcon$hasClearIcon &': { - paddingRight: 52 + 4 + 9 - }, - '& $input': { - padding: '9.5px 4px' - }, - '& $input:first-child': { - paddingLeft: 6 - }, - '& $endAdornment': { - right: 9 - } - }, - '&[class*="MuiOutlinedInput-root"][class*="MuiOutlinedInput-marginDense"]': { - padding: 6, - '& $input': { - padding: '4.5px 4px' - } - }, - '&[class*="MuiFilledInput-root"]': { - paddingTop: 19, - paddingLeft: 8, - '$hasPopupIcon &, $hasClearIcon &': { - paddingRight: 26 + 4 + 9 - }, - '$hasPopupIcon$hasClearIcon &': { - paddingRight: 52 + 4 + 9 - }, - '& $input': { - padding: '9px 4px' - }, - '& $endAdornment': { - right: 9 - } - }, - '&[class*="MuiFilledInput-root"][class*="MuiFilledInput-marginDense"]': { - paddingBottom: 1, - '& $input': { - padding: '4.5px 4px' - } - } - }, - - /* Styles applied to the input element. */ - input: { - flexGrow: 1, - textOverflow: 'ellipsis', - opacity: 0 - }, - - /* Styles applied to the input element if tag focused. */ - inputFocused: { - opacity: 1 - }, - - /* Styles applied to the endAdornment element. */ - endAdornment: { - // We use a position absolute to support wrapping tags. - position: 'absolute', - right: 0, - top: 'calc(50% - 14px)' // Center vertically - - }, - - /* Styles applied to the clear indicator. */ - clearIndicator: { - marginRight: -2, - padding: 4, - visibility: 'hidden' - }, - - /* Styles applied to the clear indicator if the input is dirty. */ - clearIndicatorDirty: {}, - - /* Styles applied to the popup indicator. */ - popupIndicator: { - padding: 2, - marginRight: -2 - }, - - /* Styles applied to the popup indicator if the popup is open. */ - popupIndicatorOpen: { - transform: 'rotate(180deg)' - }, - - /* Styles applied to the popper element. */ - popper: { - zIndex: theme.zIndex.modal - }, - - /* Styles applied to the popper element if `disablePortal={true}`. */ - popperDisablePortal: { - position: 'absolute' - }, - - /* Styles applied to the `Paper` component. */ - paper: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, theme.typography.body1, { - overflow: 'hidden', - margin: '4px 0' - }), - - /* Styles applied to the `listbox` component. */ - listbox: { - listStyle: 'none', - margin: 0, - padding: '8px 0', - maxHeight: '40vh', - overflow: 'auto' - }, - - /* Styles applied to the loading wrapper. */ - loading: { - color: theme.palette.text.secondary, - padding: '14px 16px' - }, - - /* Styles applied to the no option wrapper. */ - noOptions: { - color: theme.palette.text.secondary, - padding: '14px 16px' - }, - - /* Styles applied to the option elements. */ - option: (_option = { - minHeight: 48, - display: 'flex', - justifyContent: 'flex-start', - alignItems: 'center', - cursor: 'pointer', - paddingTop: 6, - boxSizing: 'border-box', - outline: '0', - WebkitTapHighlightColor: 'transparent', - paddingBottom: 6, - paddingLeft: 16, - paddingRight: 16 - }, (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_option, theme.breakpoints.up('sm'), { - minHeight: 'auto' - }), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_option, '&[aria-selected="true"]', { - backgroundColor: theme.palette.action.selected - }), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_option, '&[data-focus="true"]', { - backgroundColor: theme.palette.action.hover - }), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_option, '&:active', { - backgroundColor: theme.palette.action.selected - }), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_option, '&[aria-disabled="true"]', { - opacity: theme.palette.action.disabledOpacity, - pointerEvents: 'none' - }), _option), - - /* Styles applied to the group's label elements. */ - groupLabel: { - backgroundColor: theme.palette.background.paper, - top: -8 - }, - - /* Styles applied to the group's ul elements. */ - groupUl: { - padding: 0, - '& $option': { - paddingLeft: 24 - } - } - }; -}; - -function DisablePortal(props) { - // eslint-disable-next-line react/prop-types - var anchorEl = props.anchorEl, - open = props.open, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__["default"])(props, ["anchorEl", "open"]); - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("div", other); -} - -var _ref = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(_internal_svg_icons_Close__WEBPACK_IMPORTED_MODULE_6__["default"], { - fontSize: "small" -}); - -var _ref2 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(_internal_svg_icons_ArrowDropDown__WEBPACK_IMPORTED_MODULE_7__["default"], null); - -var Autocomplete = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.forwardRef(function Autocomplete(props, ref) { - /* eslint-disable no-unused-vars */ - var _props$autoComplete = props.autoComplete, - autoComplete = _props$autoComplete === void 0 ? false : _props$autoComplete, - _props$autoHighlight = props.autoHighlight, - autoHighlight = _props$autoHighlight === void 0 ? false : _props$autoHighlight, - _props$autoSelect = props.autoSelect, - autoSelect = _props$autoSelect === void 0 ? false : _props$autoSelect, - _props$blurOnSelect = props.blurOnSelect, - blurOnSelect = _props$blurOnSelect === void 0 ? false : _props$blurOnSelect, - ChipProps = props.ChipProps, - classes = props.classes, - className = props.className, - _props$clearOnBlur = props.clearOnBlur, - clearOnBlur = _props$clearOnBlur === void 0 ? !props.freeSolo : _props$clearOnBlur, - _props$clearOnEscape = props.clearOnEscape, - clearOnEscape = _props$clearOnEscape === void 0 ? false : _props$clearOnEscape, - _props$clearText = props.clearText, - clearText = _props$clearText === void 0 ? 'Clear' : _props$clearText, - _props$closeIcon = props.closeIcon, - closeIcon = _props$closeIcon === void 0 ? _ref : _props$closeIcon, - _props$closeText = props.closeText, - closeText = _props$closeText === void 0 ? 'Close' : _props$closeText, - _props$debug = props.debug, - debug = _props$debug === void 0 ? false : _props$debug, - _props$defaultValue = props.defaultValue, - defaultValue = _props$defaultValue === void 0 ? props.multiple ? [] : null : _props$defaultValue, - _props$disableClearab = props.disableClearable, - disableClearable = _props$disableClearab === void 0 ? false : _props$disableClearab, - _props$disableCloseOn = props.disableCloseOnSelect, - disableCloseOnSelect = _props$disableCloseOn === void 0 ? false : _props$disableCloseOn, - _props$disabled = props.disabled, - disabled = _props$disabled === void 0 ? false : _props$disabled, - _props$disabledItemsF = props.disabledItemsFocusable, - disabledItemsFocusable = _props$disabledItemsF === void 0 ? false : _props$disabledItemsF, - _props$disableListWra = props.disableListWrap, - disableListWrap = _props$disableListWra === void 0 ? false : _props$disableListWra, - _props$disablePortal = props.disablePortal, - disablePortal = _props$disablePortal === void 0 ? false : _props$disablePortal, - filterOptions = props.filterOptions, - _props$filterSelected = props.filterSelectedOptions, - filterSelectedOptions = _props$filterSelected === void 0 ? false : _props$filterSelected, - _props$forcePopupIcon = props.forcePopupIcon, - forcePopupIcon = _props$forcePopupIcon === void 0 ? 'auto' : _props$forcePopupIcon, - _props$freeSolo = props.freeSolo, - freeSolo = _props$freeSolo === void 0 ? false : _props$freeSolo, - _props$fullWidth = props.fullWidth, - fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, - _props$getLimitTagsTe = props.getLimitTagsText, - getLimitTagsText = _props$getLimitTagsTe === void 0 ? function (more) { - return "+".concat(more); - } : _props$getLimitTagsTe, - getOptionDisabled = props.getOptionDisabled, - _props$getOptionLabel = props.getOptionLabel, - getOptionLabel = _props$getOptionLabel === void 0 ? function (x) { - return x; - } : _props$getOptionLabel, - getOptionSelected = props.getOptionSelected, - groupBy = props.groupBy, - _props$handleHomeEndK = props.handleHomeEndKeys, - handleHomeEndKeys = _props$handleHomeEndK === void 0 ? !props.freeSolo : _props$handleHomeEndK, - idProp = props.id, - _props$includeInputIn = props.includeInputInList, - includeInputInList = _props$includeInputIn === void 0 ? false : _props$includeInputIn, - inputValueProp = props.inputValue, - _props$limitTags = props.limitTags, - limitTags = _props$limitTags === void 0 ? -1 : _props$limitTags, - _props$ListboxCompone = props.ListboxComponent, - ListboxComponent = _props$ListboxCompone === void 0 ? 'ul' : _props$ListboxCompone, - ListboxProps = props.ListboxProps, - _props$loading = props.loading, - loading = _props$loading === void 0 ? false : _props$loading, - _props$loadingText = props.loadingText, - loadingText = _props$loadingText === void 0 ? 'Loading…' : _props$loadingText, - _props$multiple = props.multiple, - multiple = _props$multiple === void 0 ? false : _props$multiple, - _props$noOptionsText = props.noOptionsText, - noOptionsText = _props$noOptionsText === void 0 ? 'No options' : _props$noOptionsText, - onChange = props.onChange, - onClose = props.onClose, - onHighlightChange = props.onHighlightChange, - onInputChange = props.onInputChange, - onOpen = props.onOpen, - open = props.open, - _props$openOnFocus = props.openOnFocus, - openOnFocus = _props$openOnFocus === void 0 ? false : _props$openOnFocus, - _props$openText = props.openText, - openText = _props$openText === void 0 ? 'Open' : _props$openText, - options = props.options, - _props$PaperComponent = props.PaperComponent, - PaperComponent = _props$PaperComponent === void 0 ? _material_ui_core_Paper__WEBPACK_IMPORTED_MODULE_8__["default"] : _props$PaperComponent, - _props$PopperComponen = props.PopperComponent, - PopperComponentProp = _props$PopperComponen === void 0 ? _material_ui_core_Popper__WEBPACK_IMPORTED_MODULE_9__["default"] : _props$PopperComponen, - _props$popupIcon = props.popupIcon, - popupIcon = _props$popupIcon === void 0 ? _ref2 : _props$popupIcon, - renderGroupProp = props.renderGroup, - renderInput = props.renderInput, - renderOptionProp = props.renderOption, - renderTags = props.renderTags, - _props$selectOnFocus = props.selectOnFocus, - selectOnFocus = _props$selectOnFocus === void 0 ? !props.freeSolo : _props$selectOnFocus, - _props$size = props.size, - size = _props$size === void 0 ? 'medium' : _props$size, - valueProp = props.value, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__["default"])(props, ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "classes", "className", "clearOnBlur", "clearOnEscape", "clearText", "closeIcon", "closeText", "debug", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "getOptionSelected", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "value"]); - /* eslint-enable no-unused-vars */ - - - var PopperComponent = disablePortal ? DisablePortal : PopperComponentProp; - - var _useAutocomplete = (0,_useAutocomplete__WEBPACK_IMPORTED_MODULE_5__["default"])((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, props, { - componentName: 'Autocomplete' - })), - getRootProps = _useAutocomplete.getRootProps, - getInputProps = _useAutocomplete.getInputProps, - getInputLabelProps = _useAutocomplete.getInputLabelProps, - getPopupIndicatorProps = _useAutocomplete.getPopupIndicatorProps, - getClearProps = _useAutocomplete.getClearProps, - getTagProps = _useAutocomplete.getTagProps, - getListboxProps = _useAutocomplete.getListboxProps, - getOptionProps = _useAutocomplete.getOptionProps, - value = _useAutocomplete.value, - dirty = _useAutocomplete.dirty, - id = _useAutocomplete.id, - popupOpen = _useAutocomplete.popupOpen, - focused = _useAutocomplete.focused, - focusedTag = _useAutocomplete.focusedTag, - anchorEl = _useAutocomplete.anchorEl, - setAnchorEl = _useAutocomplete.setAnchorEl, - inputValue = _useAutocomplete.inputValue, - groupedOptions = _useAutocomplete.groupedOptions; - - var startAdornment; - - if (multiple && value.length > 0) { - var getCustomizedTagProps = function getCustomizedTagProps(params) { - return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_4__["default"])(classes.tag, size === 'small' && classes.tagSizeSmall), - disabled: disabled - }, getTagProps(params)); - }; - - if (renderTags) { - startAdornment = renderTags(value, getCustomizedTagProps); - } else { - startAdornment = value.map(function (option, index) { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(_material_ui_core_Chip__WEBPACK_IMPORTED_MODULE_10__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({ - label: getOptionLabel(option), - size: size - }, getCustomizedTagProps({ - index: index - }), ChipProps)); - }); - } - } - - if (limitTags > -1 && Array.isArray(startAdornment)) { - var more = startAdornment.length - limitTags; - - if (!focused && more > 0) { - startAdornment = startAdornment.splice(0, limitTags); - startAdornment.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("span", { - className: classes.tag, - key: startAdornment.length - }, getLimitTagsText(more))); - } - } - - var defaultRenderGroup = function defaultRenderGroup(params) { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("li", { - key: params.key - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(_material_ui_core_ListSubheader__WEBPACK_IMPORTED_MODULE_11__["default"], { - className: classes.groupLabel, - component: "div" - }, params.group), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("ul", { - className: classes.groupUl - }, params.children)); - }; - - var renderGroup = renderGroupProp || defaultRenderGroup; - var renderOption = renderOptionProp || getOptionLabel; - - var renderListOption = function renderListOption(option, index) { - var optionProps = getOptionProps({ - option: option, - index: index - }); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("li", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, optionProps, { - className: classes.option - }), renderOption(option, { - selected: optionProps['aria-selected'], - inputValue: inputValue - })); - }; - - var hasClearIcon = !disableClearable && !disabled; - var hasPopupIcon = (!freeSolo || forcePopupIcon === true) && forcePopupIcon !== false; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(react__WEBPACK_IMPORTED_MODULE_3__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({ - ref: ref, - className: (0,clsx__WEBPACK_IMPORTED_MODULE_4__["default"])(classes.root, className, focused && classes.focused, fullWidth && classes.fullWidth, hasClearIcon && classes.hasClearIcon, hasPopupIcon && classes.hasPopupIcon) - }, getRootProps(other)), renderInput({ - id: id, - disabled: disabled, - fullWidth: true, - size: size === 'small' ? 'small' : undefined, - InputLabelProps: getInputLabelProps(), - InputProps: { - ref: setAnchorEl, - className: classes.inputRoot, - startAdornment: startAdornment, - endAdornment: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("div", { - className: classes.endAdornment - }, hasClearIcon ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(_material_ui_core_IconButton__WEBPACK_IMPORTED_MODULE_12__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, getClearProps(), { - "aria-label": clearText, - title: clearText, - className: (0,clsx__WEBPACK_IMPORTED_MODULE_4__["default"])(classes.clearIndicator, dirty && classes.clearIndicatorDirty) - }), closeIcon) : null, hasPopupIcon ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(_material_ui_core_IconButton__WEBPACK_IMPORTED_MODULE_12__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, getPopupIndicatorProps(), { - disabled: disabled, - "aria-label": popupOpen ? closeText : openText, - title: popupOpen ? closeText : openText, - className: (0,clsx__WEBPACK_IMPORTED_MODULE_4__["default"])(classes.popupIndicator, popupOpen && classes.popupIndicatorOpen) - }), popupIcon) : null) - }, - inputProps: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_4__["default"])(classes.input, focusedTag === -1 && classes.inputFocused), - disabled: disabled - }, getInputProps()) - })), popupOpen && anchorEl ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(PopperComponent, { - className: (0,clsx__WEBPACK_IMPORTED_MODULE_4__["default"])(classes.popper, disablePortal && classes.popperDisablePortal), - style: { - width: anchorEl ? anchorEl.clientWidth : null - }, - role: "presentation", - anchorEl: anchorEl, - open: true - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(PaperComponent, { - className: classes.paper - }, loading && groupedOptions.length === 0 ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("div", { - className: classes.loading - }, loadingText) : null, groupedOptions.length === 0 && !freeSolo && !loading ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("div", { - className: classes.noOptions - }, noOptionsText) : null, groupedOptions.length > 0 ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(ListboxComponent, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({ - className: classes.listbox - }, getListboxProps(), ListboxProps), groupedOptions.map(function (option, index) { - if (groupBy) { - return renderGroup({ - key: option.key, - group: option.group, - children: option.options.map(function (option2, index2) { - return renderListOption(option2, option.index + index2); - }) - }); - } - - return renderListOption(option, index); - })) : null)) : null); -}); - true ? Autocomplete.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the d.ts file and run "yarn proptypes" | - // ---------------------------------------------------------------------- - - /** - * If `true`, the portion of the selected suggestion that has not been typed by the user, - * known as the completion string, appears inline after the input cursor in the textbox. - * The inline completion string is visually highlighted and has a selected state. - */ - autoComplete: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * If `true`, the first option is automatically highlighted. - */ - autoHighlight: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * If `true`, the selected option becomes the value of the input - * when the Autocomplete loses focus unless the user chooses - * a different option or changes the character string in the input. - */ - autoSelect: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * Control if the input should be blurred when an option is selected: - * - * - `false` the input is not blurred. - * - `true` the input is always blurred. - * - `touch` the input is blurred after a touch event. - * - `mouse` the input is blurred after a mouse event. - */ - blurOnSelect: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOf(['mouse', 'touch']), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool)]), - - /** - * Props applied to the [`Chip`](/api/chip/) element. - */ - ChipProps: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().object), - - /** - * Override or extend the styles applied to the component. - * See [CSS API](#css) below for more details. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().object), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), - - /** - * If `true`, the input's text will be cleared on blur if no value is selected. - * - * Set to `true` if you want to help the user enter a new value. - * Set to `false` if you want to help the user resume his search. - */ - clearOnBlur: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * If `true`, clear all values when the user presses escape and the popup is closed. - */ - clearOnEscape: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * Override the default text for the *clear* icon button. - * - * For localization purposes, you can use the provided [translations](/guides/localization/). - */ - clearText: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), - - /** - * The icon to display in place of the default close icon. - */ - closeIcon: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().node), - - /** - * Override the default text for the *close popup* icon button. - * - * For localization purposes, you can use the provided [translations](/guides/localization/). - */ - closeText: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), - - /** - * If `true`, the popup will ignore the blur event if the input is filled. - * You can inspect the popup markup with your browser tools. - * Consider this option when you need to customize the component. - */ - debug: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * The default input value. Use when the component is not controlled. - */ - defaultValue: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().any), - - /** - * If `true`, the input can't be cleared. - */ - disableClearable: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * If `true`, the popup won't close when a value is selected. - */ - disableCloseOnSelect: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * If `true`, the input will be disabled. - */ - disabled: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * If `true`, will allow focus on disabled items. - */ - disabledItemsFocusable: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * If `true`, the list box in the popup will not wrap focus. - */ - disableListWrap: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * Disable the portal behavior. - * The children stay within it's parent DOM hierarchy. - */ - disablePortal: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * A filter function that determines the options that are eligible. - * - * @param {T[]} options The options to render. - * @param {object} state The state of the component. - * @returns {T[]} - */ - filterOptions: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), - - /** - * If `true`, hide the selected options from the list box. - */ - filterSelectedOptions: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * Force the visibility display of the popup icon. - */ - forcePopupIcon: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOf(['auto']), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool)]), - - /** - * If `true`, the Autocomplete is free solo, meaning that the user input is not bound to provided options. - */ - freeSolo: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * If `true`, the input will take up the full width of its container. - */ - fullWidth: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * The label to display when the tags are truncated (`limitTags`). - * - * @param {number} more The number of truncated tags. - * @returns {ReactNode} - */ - getLimitTagsText: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), - - /** - * Used to determine the disabled state for a given option. - * - * @param {T} option The option to test. - * @returns {boolean} - */ - getOptionDisabled: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), - - /** - * Used to determine the string value for a given option. - * It's used to fill the input (and the list box options if `renderOption` is not provided). - * - * @param {T} option - * @returns {string} - */ - getOptionLabel: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), - - /** - * Used to determine if an option is selected, considering the current value. - * Uses strict equality by default. - * - * @param {T} option The option to test. - * @param {T} value The value to test against. - * @returns {boolean} - */ - getOptionSelected: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), - - /** - * If provided, the options will be grouped under the returned string. - * The groupBy value is also used as the text for group headings when `renderGroup` is not provided. - * - * @param {T} options The options to group. - * @returns {string} - */ - groupBy: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), - - /** - * If `true`, the component handles the "Home" and "End" keys when the popup is open. - * It should move focus to the first option and last option, respectively. - */ - handleHomeEndKeys: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * This prop is used to help implement the accessibility logic. - * If you don't provide this prop. It falls back to a randomly generated id. - */ - id: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), - - /** - * If `true`, the highlight can move to the input. - */ - includeInputInList: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * The input value. - */ - inputValue: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), - - /** - * The maximum number of tags that will be visible when not focused. - * Set `-1` to disable the limit. - */ - limitTags: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), - - /** - * The component used to render the listbox. - */ - ListboxComponent: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().elementType), - - /** - * Props applied to the Listbox element. - */ - ListboxProps: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().object), - - /** - * If `true`, the component is in a loading state. - */ - loading: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * Text to display when in a loading state. - * - * For localization purposes, you can use the provided [translations](/guides/localization/). - */ - loadingText: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().node), - - /** - * If `true`, `value` must be an array and the menu will support multiple selections. - */ - multiple: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * Text to display when there are no options. - * - * For localization purposes, you can use the provided [translations](/guides/localization/). - */ - noOptionsText: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().node), - - /** - * Callback fired when the value changes. - * - * @param {object} event The event source of the callback. - * @param {T|T[]} value The new value of the component. - * @param {string} reason One of "create-option", "select-option", "remove-option", "blur" or "clear". - */ - onChange: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), - - /** - * Callback fired when the popup requests to be closed. - * Use in controlled mode (see open). - * - * @param {object} event The event source of the callback. - * @param {string} reason Can be: `"toggleInput"`, `"escape"`, `"select-option"`, `"blur"`. - */ - onClose: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), - - /** - * Callback fired when the highlight option changes. - * - * @param {object} event The event source of the callback. - * @param {T} option The highlighted option. - * @param {string} reason Can be: `"keyboard"`, `"auto"`, `"mouse"`. - */ - onHighlightChange: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), - - /** - * Callback fired when the input value changes. - * - * @param {object} event The event source of the callback. - * @param {string} value The new value of the text input. - * @param {string} reason Can be: `"input"` (user input), `"reset"` (programmatic change), `"clear"`. - */ - onInputChange: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), - - /** - * Callback fired when the popup requests to be opened. - * Use in controlled mode (see open). - * - * @param {object} event The event source of the callback. - */ - onOpen: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), - - /** - * Control the popup` open state. - */ - open: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * If `true`, the popup will open on input focus. - */ - openOnFocus: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * Override the default text for the *open popup* icon button. - * - * For localization purposes, you can use the provided [translations](/guides/localization/). - */ - openText: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), - - /** - * Array of options. - */ - options: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array.isRequired), - - /** - * The component used to render the body of the popup. - */ - PaperComponent: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().elementType), - - /** - * The component used to position the popup. - */ - PopperComponent: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().elementType), - - /** - * The icon to display in place of the default popup icon. - */ - popupIcon: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().node), - - /** - * Render the group. - * - * @param {any} option The group to render. - * @returns {ReactNode} - */ - renderGroup: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), - - /** - * Render the input. - * - * @param {object} params - * @returns {ReactNode} - */ - renderInput: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func.isRequired), - - /** - * Render the option, use `getOptionLabel` by default. - * - * @param {T} option The option to render. - * @param {object} state The state of the component. - * @returns {ReactNode} - */ - renderOption: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), - - /** - * Render the selected value. - * - * @param {T[]} value The `value` provided to the component. - * @param {function} getTagProps A tag props getter. - * @returns {ReactNode} - */ - renderTags: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), - - /** - * If `true`, the input's text will be selected on focus. - * It helps the user clear the selected value. - */ - selectOnFocus: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - - /** - * The size of the autocomplete. - */ - size: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOf(['medium', 'small']), - - /** - * The value of the autocomplete. - * - * The value must have reference equality with the option in order to be selected. - * You can customize the equality behavior with the `getOptionSelected` prop. - */ - value: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().any) -} : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_14__["default"])(styles, { - name: 'MuiAutocomplete' -})(Autocomplete)); - -/***/ }), - -/***/ "./node_modules/@material-ui/lab/esm/internal/svg-icons/ArrowDropDown.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _material_ui_core_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/createSvgIcon.js"); - - -/** - * @ignore - internal component. - */ - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", { - d: "M7 10l5 5 5-5z" -}), 'ArrowDropDown')); - -/***/ }), - -/***/ "./node_modules/@material-ui/lab/esm/internal/svg-icons/Close.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _material_ui_core_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/createSvgIcon.js"); - - -/** - * @ignore - internal component. - */ - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", { - d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" -}), 'Close')); - -/***/ }), - -/***/ "./node_modules/@material-ui/lab/esm/internal/svg-icons/ErrorOutline.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _material_ui_core_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/createSvgIcon.js"); - - -/** - * @ignore - internal component. - */ - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", { - d: "M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" -}), 'ErrorOutline')); - -/***/ }), - -/***/ "./node_modules/@material-ui/lab/esm/internal/svg-icons/InfoOutlined.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _material_ui_core_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/createSvgIcon.js"); - - -/** - * @ignore - internal component. - */ - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", { - d: "M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z" -}), 'InfoOutlined')); - -/***/ }), - -/***/ "./node_modules/@material-ui/lab/esm/internal/svg-icons/ReportProblemOutlined.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _material_ui_core_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/createSvgIcon.js"); - - -/** - * @ignore - internal component. - */ - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", { - d: "M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z" -}), 'ReportProblemOutlined')); - -/***/ }), - -/***/ "./node_modules/@material-ui/lab/esm/internal/svg-icons/SuccessOutlined.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _material_ui_core_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/createSvgIcon.js"); - - -/** - * @ignore - internal component. - */ - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", { - d: "M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z" -}), 'SuccessOutlined')); - -/***/ }), - -/***/ "./node_modules/@material-ui/lab/esm/useAutocomplete/useAutocomplete.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "createFilterOptions": () => (/* binding */ createFilterOptions), -/* harmony export */ "default": () => (/* binding */ useAutocomplete) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"); -/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/typeof.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _material_ui_core_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/unstable_useId.js"); -/* harmony import */ var _material_ui_core_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useControlled.js"); -/* harmony import */ var _material_ui_core_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useEventCallback.js"); -/* harmony import */ var _material_ui_core_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/setRef.js"); - - - - -/* eslint-disable no-constant-condition */ - - // https://stackoverflow.com/questions/990904/remove-accents-diacritics-in-a-string-in-javascript -// Give up on IE 11 support for this feature - -function stripDiacritics(string) { - return typeof string.normalize !== 'undefined' ? string.normalize('NFD').replace(/[\u0300-\u036f]/g, '') : string; -} - -function createFilterOptions() { - var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var _config$ignoreAccents = config.ignoreAccents, - ignoreAccents = _config$ignoreAccents === void 0 ? true : _config$ignoreAccents, - _config$ignoreCase = config.ignoreCase, - ignoreCase = _config$ignoreCase === void 0 ? true : _config$ignoreCase, - limit = config.limit, - _config$matchFrom = config.matchFrom, - matchFrom = _config$matchFrom === void 0 ? 'any' : _config$matchFrom, - stringify = config.stringify, - _config$trim = config.trim, - trim = _config$trim === void 0 ? false : _config$trim; - return function (options, _ref) { - var inputValue = _ref.inputValue, - getOptionLabel = _ref.getOptionLabel; - var input = trim ? inputValue.trim() : inputValue; - - if (ignoreCase) { - input = input.toLowerCase(); - } - - if (ignoreAccents) { - input = stripDiacritics(input); - } - - var filteredOptions = options.filter(function (option) { - var candidate = (stringify || getOptionLabel)(option); - - if (ignoreCase) { - candidate = candidate.toLowerCase(); - } - - if (ignoreAccents) { - candidate = stripDiacritics(candidate); - } - - return matchFrom === 'start' ? candidate.indexOf(input) === 0 : candidate.indexOf(input) > -1; - }); - return typeof limit === 'number' ? filteredOptions.slice(0, limit) : filteredOptions; - }; -} // To replace with .findIndex() once we stop IE 11 support. - -function findIndex(array, comp) { - for (var i = 0; i < array.length; i += 1) { - if (comp(array[i])) { - return i; - } - } - - return -1; -} - -var defaultFilterOptions = createFilterOptions(); // Number of options to jump in list box when pageup and pagedown keys are used. - -var pageSize = 5; -function useAutocomplete(props) { - var _props$autoComplete = props.autoComplete, - autoComplete = _props$autoComplete === void 0 ? false : _props$autoComplete, - _props$autoHighlight = props.autoHighlight, - autoHighlight = _props$autoHighlight === void 0 ? false : _props$autoHighlight, - _props$autoSelect = props.autoSelect, - autoSelect = _props$autoSelect === void 0 ? false : _props$autoSelect, - _props$blurOnSelect = props.blurOnSelect, - blurOnSelect = _props$blurOnSelect === void 0 ? false : _props$blurOnSelect, - _props$clearOnBlur = props.clearOnBlur, - clearOnBlur = _props$clearOnBlur === void 0 ? !props.freeSolo : _props$clearOnBlur, - _props$clearOnEscape = props.clearOnEscape, - clearOnEscape = _props$clearOnEscape === void 0 ? false : _props$clearOnEscape, - _props$componentName = props.componentName, - componentName = _props$componentName === void 0 ? 'useAutocomplete' : _props$componentName, - _props$debug = props.debug, - debug = _props$debug === void 0 ? false : _props$debug, - _props$defaultValue = props.defaultValue, - defaultValue = _props$defaultValue === void 0 ? props.multiple ? [] : null : _props$defaultValue, - _props$disableClearab = props.disableClearable, - disableClearable = _props$disableClearab === void 0 ? false : _props$disableClearab, - _props$disableCloseOn = props.disableCloseOnSelect, - disableCloseOnSelect = _props$disableCloseOn === void 0 ? false : _props$disableCloseOn, - _props$disabledItemsF = props.disabledItemsFocusable, - disabledItemsFocusable = _props$disabledItemsF === void 0 ? false : _props$disabledItemsF, - _props$disableListWra = props.disableListWrap, - disableListWrap = _props$disableListWra === void 0 ? false : _props$disableListWra, - _props$filterOptions = props.filterOptions, - filterOptions = _props$filterOptions === void 0 ? defaultFilterOptions : _props$filterOptions, - _props$filterSelected = props.filterSelectedOptions, - filterSelectedOptions = _props$filterSelected === void 0 ? false : _props$filterSelected, - _props$freeSolo = props.freeSolo, - freeSolo = _props$freeSolo === void 0 ? false : _props$freeSolo, - getOptionDisabled = props.getOptionDisabled, - _props$getOptionLabel = props.getOptionLabel, - getOptionLabelProp = _props$getOptionLabel === void 0 ? function (option) { - return option; - } : _props$getOptionLabel, - _props$getOptionSelec = props.getOptionSelected, - getOptionSelected = _props$getOptionSelec === void 0 ? function (option, value) { - return option === value; - } : _props$getOptionSelec, - groupBy = props.groupBy, - _props$handleHomeEndK = props.handleHomeEndKeys, - handleHomeEndKeys = _props$handleHomeEndK === void 0 ? !props.freeSolo : _props$handleHomeEndK, - idProp = props.id, - _props$includeInputIn = props.includeInputInList, - includeInputInList = _props$includeInputIn === void 0 ? false : _props$includeInputIn, - inputValueProp = props.inputValue, - _props$multiple = props.multiple, - multiple = _props$multiple === void 0 ? false : _props$multiple, - onChange = props.onChange, - onClose = props.onClose, - onHighlightChange = props.onHighlightChange, - onInputChange = props.onInputChange, - onOpen = props.onOpen, - openProp = props.open, - _props$openOnFocus = props.openOnFocus, - openOnFocus = _props$openOnFocus === void 0 ? false : _props$openOnFocus, - options = props.options, - _props$selectOnFocus = props.selectOnFocus, - selectOnFocus = _props$selectOnFocus === void 0 ? !props.freeSolo : _props$selectOnFocus, - valueProp = props.value; - var id = (0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_4__["default"])(idProp); - var getOptionLabel = getOptionLabelProp; - - if (true) { - getOptionLabel = function getOptionLabel(option) { - var optionLabel = getOptionLabelProp(option); - - if (typeof optionLabel !== 'string') { - var erroneousReturn = optionLabel === undefined ? 'undefined' : "".concat((0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__["default"])(optionLabel), " (").concat(optionLabel, ")"); - console.error("Material-UI: The `getOptionLabel` method of ".concat(componentName, " returned ").concat(erroneousReturn, " instead of a string for ").concat(JSON.stringify(option), ".")); - } - - return optionLabel; - }; - } - - var ignoreFocus = react__WEBPACK_IMPORTED_MODULE_3__.useRef(false); - var firstFocus = react__WEBPACK_IMPORTED_MODULE_3__.useRef(true); - var inputRef = react__WEBPACK_IMPORTED_MODULE_3__.useRef(null); - var listboxRef = react__WEBPACK_IMPORTED_MODULE_3__.useRef(null); - - var _React$useState = react__WEBPACK_IMPORTED_MODULE_3__.useState(null), - anchorEl = _React$useState[0], - setAnchorEl = _React$useState[1]; - - var _React$useState2 = react__WEBPACK_IMPORTED_MODULE_3__.useState(-1), - focusedTag = _React$useState2[0], - setFocusedTag = _React$useState2[1]; - - var defaultHighlighted = autoHighlight ? 0 : -1; - var highlightedIndexRef = react__WEBPACK_IMPORTED_MODULE_3__.useRef(defaultHighlighted); - - var _useControlled = (0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_5__["default"])({ - controlled: valueProp, - default: defaultValue, - name: componentName - }), - _useControlled2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_useControlled, 2), - value = _useControlled2[0], - setValue = _useControlled2[1]; - - var _useControlled3 = (0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_5__["default"])({ - controlled: inputValueProp, - default: '', - name: componentName, - state: 'inputValue' - }), - _useControlled4 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_useControlled3, 2), - inputValue = _useControlled4[0], - setInputValue = _useControlled4[1]; - - var _React$useState3 = react__WEBPACK_IMPORTED_MODULE_3__.useState(false), - focused = _React$useState3[0], - setFocused = _React$useState3[1]; - - var resetInputValue = (0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_6__["default"])(function (event, newValue) { - var newInputValue; - - if (multiple) { - newInputValue = ''; - } else if (newValue == null) { - newInputValue = ''; - } else { - var optionLabel = getOptionLabel(newValue); - newInputValue = typeof optionLabel === 'string' ? optionLabel : ''; - } - - if (inputValue === newInputValue) { - return; - } - - setInputValue(newInputValue); - - if (onInputChange) { - onInputChange(event, newInputValue, 'reset'); - } - }); - react__WEBPACK_IMPORTED_MODULE_3__.useEffect(function () { - resetInputValue(null, value); - }, [value, resetInputValue]); - - var _useControlled5 = (0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_5__["default"])({ - controlled: openProp, - default: false, - name: componentName, - state: 'open' - }), - _useControlled6 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_useControlled5, 2), - open = _useControlled6[0], - setOpenState = _useControlled6[1]; - - var inputValueIsSelectedValue = !multiple && value != null && inputValue === getOptionLabel(value); - var popupOpen = open; - var filteredOptions = popupOpen ? filterOptions(options.filter(function (option) { - if (filterSelectedOptions && (multiple ? value : [value]).some(function (value2) { - return value2 !== null && getOptionSelected(option, value2); - })) { - return false; - } - - return true; - }), // we use the empty string to manipulate `filterOptions` to not filter any options - // i.e. the filter predicate always returns true - { - inputValue: inputValueIsSelectedValue ? '' : inputValue, - getOptionLabel: getOptionLabel - }) : []; - - if (true) { - if (value !== null && !freeSolo && options.length > 0) { - var missingValue = (multiple ? value : [value]).filter(function (value2) { - return !options.some(function (option) { - return getOptionSelected(option, value2); - }); - }); - - if (missingValue.length > 0) { - console.warn(["Material-UI: The value provided to ".concat(componentName, " is invalid."), "None of the options match with `".concat(missingValue.length > 1 ? JSON.stringify(missingValue) : JSON.stringify(missingValue[0]), "`."), 'You can use the `getOptionSelected` prop to customize the equality test.'].join('\n')); - } - } - } - - var focusTag = (0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_6__["default"])(function (tagToFocus) { - if (tagToFocus === -1) { - inputRef.current.focus(); - } else { - anchorEl.querySelector("[data-tag-index=\"".concat(tagToFocus, "\"]")).focus(); - } - }); // Ensure the focusedTag is never inconsistent - - react__WEBPACK_IMPORTED_MODULE_3__.useEffect(function () { - if (multiple && focusedTag > value.length - 1) { - setFocusedTag(-1); - focusTag(-1); - } - }, [value, multiple, focusedTag, focusTag]); - - function validOptionIndex(index, direction) { - if (!listboxRef.current || index === -1) { - return -1; - } - - var nextFocus = index; - - while (true) { - // Out of range - if (direction === 'next' && nextFocus === filteredOptions.length || direction === 'previous' && nextFocus === -1) { - return -1; - } - - var option = listboxRef.current.querySelector("[data-option-index=\"".concat(nextFocus, "\"]")); // Same logic as MenuList.js - - var nextFocusDisabled = disabledItemsFocusable ? false : option && (option.disabled || option.getAttribute('aria-disabled') === 'true'); - - if (option && !option.hasAttribute('tabindex') || nextFocusDisabled) { - // Move to the next element. - nextFocus += direction === 'next' ? 1 : -1; - } else { - return nextFocus; - } - } - } - - var setHighlightedIndex = (0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_6__["default"])(function (_ref2) { - var event = _ref2.event, - index = _ref2.index, - _ref2$reason = _ref2.reason, - reason = _ref2$reason === void 0 ? 'auto' : _ref2$reason; - highlightedIndexRef.current = index; // does the index exist? - - if (index === -1) { - inputRef.current.removeAttribute('aria-activedescendant'); - } else { - inputRef.current.setAttribute('aria-activedescendant', "".concat(id, "-option-").concat(index)); - } - - if (onHighlightChange) { - onHighlightChange(event, index === -1 ? null : filteredOptions[index], reason); - } - - if (!listboxRef.current) { - return; - } - - var prev = listboxRef.current.querySelector('[data-focus]'); - - if (prev) { - prev.removeAttribute('data-focus'); - } - - var listboxNode = listboxRef.current.parentElement.querySelector('[role="listbox"]'); // "No results" - - if (!listboxNode) { - return; - } - - if (index === -1) { - listboxNode.scrollTop = 0; - return; - } - - var option = listboxRef.current.querySelector("[data-option-index=\"".concat(index, "\"]")); - - if (!option) { - return; - } - - option.setAttribute('data-focus', 'true'); // Scroll active descendant into view. - // Logic copied from https://www.w3.org/TR/wai-aria-practices/examples/listbox/js/listbox.js - // - // Consider this API instead once it has a better browser support: - // .scrollIntoView({ scrollMode: 'if-needed', block: 'nearest' }); - - if (listboxNode.scrollHeight > listboxNode.clientHeight && reason !== 'mouse') { - var element = option; - var scrollBottom = listboxNode.clientHeight + listboxNode.scrollTop; - var elementBottom = element.offsetTop + element.offsetHeight; - - if (elementBottom > scrollBottom) { - listboxNode.scrollTop = elementBottom - listboxNode.clientHeight; - } else if (element.offsetTop - element.offsetHeight * (groupBy ? 1.3 : 0) < listboxNode.scrollTop) { - listboxNode.scrollTop = element.offsetTop - element.offsetHeight * (groupBy ? 1.3 : 0); - } - } - }); - var changeHighlightedIndex = (0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_6__["default"])(function (_ref3) { - var event = _ref3.event, - diff = _ref3.diff, - _ref3$direction = _ref3.direction, - direction = _ref3$direction === void 0 ? 'next' : _ref3$direction, - _ref3$reason = _ref3.reason, - reason = _ref3$reason === void 0 ? 'auto' : _ref3$reason; - - if (!popupOpen) { - return; - } - - var getNextIndex = function getNextIndex() { - var maxIndex = filteredOptions.length - 1; - - if (diff === 'reset') { - return defaultHighlighted; - } - - if (diff === 'start') { - return 0; - } - - if (diff === 'end') { - return maxIndex; - } - - var newIndex = highlightedIndexRef.current + diff; - - if (newIndex < 0) { - if (newIndex === -1 && includeInputInList) { - return -1; - } - - if (disableListWrap && highlightedIndexRef.current !== -1 || Math.abs(diff) > 1) { - return 0; - } - - return maxIndex; - } - - if (newIndex > maxIndex) { - if (newIndex === maxIndex + 1 && includeInputInList) { - return -1; - } - - if (disableListWrap || Math.abs(diff) > 1) { - return maxIndex; - } - - return 0; - } - - return newIndex; - }; - - var nextIndex = validOptionIndex(getNextIndex(), direction); - setHighlightedIndex({ - index: nextIndex, - reason: reason, - event: event - }); // Sync the content of the input with the highlighted option. - - if (autoComplete && diff !== 'reset') { - if (nextIndex === -1) { - inputRef.current.value = inputValue; - } else { - var option = getOptionLabel(filteredOptions[nextIndex]); - inputRef.current.value = option; // The portion of the selected suggestion that has not been typed by the user, - // a completion string, appears inline after the input cursor in the textbox. - - var index = option.toLowerCase().indexOf(inputValue.toLowerCase()); - - if (index === 0 && inputValue.length > 0) { - inputRef.current.setSelectionRange(inputValue.length, option.length); - } - } - } - }); - var syncHighlightedIndex = react__WEBPACK_IMPORTED_MODULE_3__.useCallback(function () { - if (!popupOpen) { - return; - } - - var valueItem = multiple ? value[0] : value; // The popup is empty, reset - - if (filteredOptions.length === 0 || valueItem == null) { - changeHighlightedIndex({ - diff: 'reset' - }); - return; - } - - if (!listboxRef.current) { - return; - } // Synchronize the value with the highlighted index - - - if (!filterSelectedOptions && valueItem != null) { - var currentOption = filteredOptions[highlightedIndexRef.current]; // Keep the current highlighted index if possible - - if (multiple && currentOption && findIndex(value, function (val) { - return getOptionSelected(currentOption, val); - }) !== -1) { - return; - } - - var itemIndex = findIndex(filteredOptions, function (optionItem) { - return getOptionSelected(optionItem, valueItem); - }); - - if (itemIndex === -1) { - changeHighlightedIndex({ - diff: 'reset' - }); - } else { - setHighlightedIndex({ - index: itemIndex - }); - } - - return; - } // Prevent the highlighted index to leak outside the boundaries. - - - if (highlightedIndexRef.current >= filteredOptions.length - 1) { - setHighlightedIndex({ - index: filteredOptions.length - 1 - }); - return; - } // Restore the focus to the previous index. - - - setHighlightedIndex({ - index: highlightedIndexRef.current - }); // Ignore filteredOptions (and options, getOptionSelected, getOptionLabel) not to break the scroll position - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [// Only sync the highlighted index when the option switch between empty and not - // eslint-disable-next-line react-hooks/exhaustive-deps - filteredOptions.length === 0, // Don't sync the highlighted index with the value when multiple - // eslint-disable-next-line react-hooks/exhaustive-deps - multiple ? false : value, filterSelectedOptions, changeHighlightedIndex, setHighlightedIndex, popupOpen, inputValue, multiple]); - var handleListboxRef = (0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_6__["default"])(function (node) { - (0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_7__["default"])(listboxRef, node); - - if (!node) { - return; - } - - syncHighlightedIndex(); - }); - react__WEBPACK_IMPORTED_MODULE_3__.useEffect(function () { - syncHighlightedIndex(); - }, [syncHighlightedIndex]); - - var handleOpen = function handleOpen(event) { - if (open) { - return; - } - - setOpenState(true); - - if (onOpen) { - onOpen(event); - } - }; - - var handleClose = function handleClose(event, reason) { - if (!open) { - return; - } - - setOpenState(false); - - if (onClose) { - onClose(event, reason); - } - }; - - var handleValue = function handleValue(event, newValue, reason, details) { - if (value === newValue) { - return; - } - - if (onChange) { - onChange(event, newValue, reason, details); - } - - setValue(newValue); - }; - - var isTouch = react__WEBPACK_IMPORTED_MODULE_3__.useRef(false); - - var selectNewValue = function selectNewValue(event, option) { - var reasonProp = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'select-option'; - var origin = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'options'; - var reason = reasonProp; - var newValue = option; - - if (multiple) { - newValue = Array.isArray(value) ? value.slice() : []; - - if (true) { - var matches = newValue.filter(function (val) { - return getOptionSelected(option, val); - }); - - if (matches.length > 1) { - console.error(["Material-UI: The `getOptionSelected` method of ".concat(componentName, " do not handle the arguments correctly."), "The component expects a single value to match a given option but found ".concat(matches.length, " matches.")].join('\n')); - } - } - - var itemIndex = findIndex(newValue, function (valueItem) { - return getOptionSelected(option, valueItem); - }); - - if (itemIndex === -1) { - newValue.push(option); - } else if (origin !== 'freeSolo') { - newValue.splice(itemIndex, 1); - reason = 'remove-option'; - } - } - - resetInputValue(event, newValue); - handleValue(event, newValue, reason, { - option: option - }); - - if (!disableCloseOnSelect) { - handleClose(event, reason); - } - - if (blurOnSelect === true || blurOnSelect === 'touch' && isTouch.current || blurOnSelect === 'mouse' && !isTouch.current) { - inputRef.current.blur(); - } - }; - - function validTagIndex(index, direction) { - if (index === -1) { - return -1; - } - - var nextFocus = index; - - while (true) { - // Out of range - if (direction === 'next' && nextFocus === value.length || direction === 'previous' && nextFocus === -1) { - return -1; - } - - var option = anchorEl.querySelector("[data-tag-index=\"".concat(nextFocus, "\"]")); // Same logic as MenuList.js - - if (option && (!option.hasAttribute('tabindex') || option.disabled || option.getAttribute('aria-disabled') === 'true')) { - nextFocus += direction === 'next' ? 1 : -1; - } else { - return nextFocus; - } - } - } - - var handleFocusTag = function handleFocusTag(event, direction) { - if (!multiple) { - return; - } - - handleClose(event, 'toggleInput'); - var nextTag = focusedTag; - - if (focusedTag === -1) { - if (inputValue === '' && direction === 'previous') { - nextTag = value.length - 1; - } - } else { - nextTag += direction === 'next' ? 1 : -1; - - if (nextTag < 0) { - nextTag = 0; - } - - if (nextTag === value.length) { - nextTag = -1; - } - } - - nextTag = validTagIndex(nextTag, direction); - setFocusedTag(nextTag); - focusTag(nextTag); - }; - - var handleClear = function handleClear(event) { - ignoreFocus.current = true; - setInputValue(''); - - if (onInputChange) { - onInputChange(event, '', 'clear'); - } - - handleValue(event, multiple ? [] : null, 'clear'); - }; - - var handleKeyDown = function handleKeyDown(other) { - return function (event) { - if (focusedTag !== -1 && ['ArrowLeft', 'ArrowRight'].indexOf(event.key) === -1) { - setFocusedTag(-1); - focusTag(-1); - } - - switch (event.key) { - case 'Home': - if (popupOpen && handleHomeEndKeys) { - // Prevent scroll of the page - event.preventDefault(); - changeHighlightedIndex({ - diff: 'start', - direction: 'next', - reason: 'keyboard', - event: event - }); - } - - break; - - case 'End': - if (popupOpen && handleHomeEndKeys) { - // Prevent scroll of the page - event.preventDefault(); - changeHighlightedIndex({ - diff: 'end', - direction: 'previous', - reason: 'keyboard', - event: event - }); - } - - break; - - case 'PageUp': - // Prevent scroll of the page - event.preventDefault(); - changeHighlightedIndex({ - diff: -pageSize, - direction: 'previous', - reason: 'keyboard', - event: event - }); - handleOpen(event); - break; - - case 'PageDown': - // Prevent scroll of the page - event.preventDefault(); - changeHighlightedIndex({ - diff: pageSize, - direction: 'next', - reason: 'keyboard', - event: event - }); - handleOpen(event); - break; - - case 'ArrowDown': - // Prevent cursor move - event.preventDefault(); - changeHighlightedIndex({ - diff: 1, - direction: 'next', - reason: 'keyboard', - event: event - }); - handleOpen(event); - break; - - case 'ArrowUp': - // Prevent cursor move - event.preventDefault(); - changeHighlightedIndex({ - diff: -1, - direction: 'previous', - reason: 'keyboard', - event: event - }); - handleOpen(event); - break; - - case 'ArrowLeft': - handleFocusTag(event, 'previous'); - break; - - case 'ArrowRight': - handleFocusTag(event, 'next'); - break; - - case 'Enter': - // Wait until IME is settled. - if (event.which === 229) { - break; - } - - if (highlightedIndexRef.current !== -1 && popupOpen) { - var option = filteredOptions[highlightedIndexRef.current]; - var disabled = getOptionDisabled ? getOptionDisabled(option) : false; // We don't want to validate the form. - - event.preventDefault(); - - if (disabled) { - return; - } - - selectNewValue(event, option, 'select-option'); // Move the selection to the end. - - if (autoComplete) { - inputRef.current.setSelectionRange(inputRef.current.value.length, inputRef.current.value.length); - } - } else if (freeSolo && inputValue !== '' && inputValueIsSelectedValue === false) { - if (multiple) { - // Allow people to add new values before they submit the form. - event.preventDefault(); - } - - selectNewValue(event, inputValue, 'create-option', 'freeSolo'); - } - - break; - - case 'Escape': - if (popupOpen) { - // Avoid Opera to exit fullscreen mode. - event.preventDefault(); // Avoid the Modal to handle the event. - - event.stopPropagation(); - handleClose(event, 'escape'); - } else if (clearOnEscape && (inputValue !== '' || multiple && value.length > 0)) { - // Avoid Opera to exit fullscreen mode. - event.preventDefault(); // Avoid the Modal to handle the event. - - event.stopPropagation(); - handleClear(event); - } - - break; - - case 'Backspace': - if (multiple && inputValue === '' && value.length > 0) { - var index = focusedTag === -1 ? value.length - 1 : focusedTag; - var newValue = value.slice(); - newValue.splice(index, 1); - handleValue(event, newValue, 'remove-option', { - option: value[index] - }); - } - - break; - - default: - } - - if (other.onKeyDown) { - other.onKeyDown(event); - } - }; - }; - - var handleFocus = function handleFocus(event) { - setFocused(true); - - if (openOnFocus && !ignoreFocus.current) { - handleOpen(event); - } - }; - - var handleBlur = function handleBlur(event) { - // Ignore the event when using the scrollbar with IE 11 - if (listboxRef.current !== null && document.activeElement === listboxRef.current.parentElement) { - inputRef.current.focus(); - return; - } - - setFocused(false); - firstFocus.current = true; - ignoreFocus.current = false; - - if (debug && inputValue !== '') { - return; - } - - if (autoSelect && highlightedIndexRef.current !== -1 && popupOpen) { - selectNewValue(event, filteredOptions[highlightedIndexRef.current], 'blur'); - } else if (autoSelect && freeSolo && inputValue !== '') { - selectNewValue(event, inputValue, 'blur', 'freeSolo'); - } else if (clearOnBlur) { - resetInputValue(event, value); - } - - handleClose(event, 'blur'); - }; - - var handleInputChange = function handleInputChange(event) { - var newValue = event.target.value; - - if (inputValue !== newValue) { - setInputValue(newValue); - - if (onInputChange) { - onInputChange(event, newValue, 'input'); - } - } - - if (newValue === '') { - if (!disableClearable && !multiple) { - handleValue(event, null, 'clear'); - } - } else { - handleOpen(event); - } - }; - - var handleOptionMouseOver = function handleOptionMouseOver(event) { - setHighlightedIndex({ - event: event, - index: Number(event.currentTarget.getAttribute('data-option-index')), - reason: 'mouse' - }); - }; - - var handleOptionTouchStart = function handleOptionTouchStart() { - isTouch.current = true; - }; - - var handleOptionClick = function handleOptionClick(event) { - var index = Number(event.currentTarget.getAttribute('data-option-index')); - selectNewValue(event, filteredOptions[index], 'select-option'); - isTouch.current = false; - }; - - var handleTagDelete = function handleTagDelete(index) { - return function (event) { - var newValue = value.slice(); - newValue.splice(index, 1); - handleValue(event, newValue, 'remove-option', { - option: value[index] - }); - }; - }; - - var handlePopupIndicator = function handlePopupIndicator(event) { - if (open) { - handleClose(event, 'toggleInput'); - } else { - handleOpen(event); - } - }; // Prevent input blur when interacting with the combobox - - - var handleMouseDown = function handleMouseDown(event) { - if (event.target.getAttribute('id') !== id) { - event.preventDefault(); - } - }; // Focus the input when interacting with the combobox - - - var handleClick = function handleClick() { - inputRef.current.focus(); - - if (selectOnFocus && firstFocus.current && inputRef.current.selectionEnd - inputRef.current.selectionStart === 0) { - inputRef.current.select(); - } - - firstFocus.current = false; - }; - - var handleInputMouseDown = function handleInputMouseDown(event) { - if (inputValue === '' || !open) { - handlePopupIndicator(event); - } - }; - - var dirty = freeSolo && inputValue.length > 0; - dirty = dirty || (multiple ? value.length > 0 : value !== null); - var groupedOptions = filteredOptions; - - if (groupBy) { - // used to keep track of key and indexes in the result array - var indexBy = new Map(); - var warn = false; - groupedOptions = filteredOptions.reduce(function (acc, option, index) { - var group = groupBy(option); - - if (acc.length > 0 && acc[acc.length - 1].group === group) { - acc[acc.length - 1].options.push(option); - } else { - if (true) { - if (indexBy.get(group) && !warn) { - console.warn("Material-UI: The options provided combined with the `groupBy` method of ".concat(componentName, " returns duplicated headers."), 'You can solve the issue by sorting the options with the output of `groupBy`.'); - warn = true; - } - - indexBy.set(group, true); - } - - acc.push({ - key: index, - index: index, - group: group, - options: [option] - }); - } - - return acc; - }, []); - } - - return { - getRootProps: function getRootProps() { - var other = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - 'aria-owns': popupOpen ? "".concat(id, "-popup") : null, - role: 'combobox', - 'aria-expanded': popupOpen - }, other, { - onKeyDown: handleKeyDown(other), - onMouseDown: handleMouseDown, - onClick: handleClick - }); - }, - getInputLabelProps: function getInputLabelProps() { - return { - id: "".concat(id, "-label"), - htmlFor: id - }; - }, - getInputProps: function getInputProps() { - return { - id: id, - value: inputValue, - onBlur: handleBlur, - onFocus: handleFocus, - onChange: handleInputChange, - onMouseDown: handleInputMouseDown, - // if open then this is handled imperativeley so don't let react override - // only have an opinion about this when closed - 'aria-activedescendant': popupOpen ? '' : null, - 'aria-autocomplete': autoComplete ? 'both' : 'list', - 'aria-controls': popupOpen ? "".concat(id, "-popup") : null, - // Disable browser's suggestion that might overlap with the popup. - // Handle autocomplete but not autofill. - autoComplete: 'off', - ref: inputRef, - autoCapitalize: 'none', - spellCheck: 'false' - }; - }, - getClearProps: function getClearProps() { - return { - tabIndex: -1, - onClick: handleClear - }; - }, - getPopupIndicatorProps: function getPopupIndicatorProps() { - return { - tabIndex: -1, - onClick: handlePopupIndicator - }; - }, - getTagProps: function getTagProps(_ref4) { - var index = _ref4.index; - return { - key: index, - 'data-tag-index': index, - tabIndex: -1, - onDelete: handleTagDelete(index) - }; - }, - getListboxProps: function getListboxProps() { - return { - role: 'listbox', - id: "".concat(id, "-popup"), - 'aria-labelledby': "".concat(id, "-label"), - ref: handleListboxRef, - onMouseDown: function onMouseDown(event) { - // Prevent blur - event.preventDefault(); - } - }; - }, - getOptionProps: function getOptionProps(_ref5) { - var index = _ref5.index, - option = _ref5.option; - var selected = (multiple ? value : [value]).some(function (value2) { - return value2 != null && getOptionSelected(option, value2); - }); - var disabled = getOptionDisabled ? getOptionDisabled(option) : false; - return { - key: index, - tabIndex: -1, - role: 'option', - id: "".concat(id, "-option-").concat(index), - onMouseOver: handleOptionMouseOver, - onClick: handleOptionClick, - onTouchStart: handleOptionTouchStart, - 'data-option-index': index, - 'aria-disabled': disabled, - 'aria-selected': selected - }; - }, - id: id, - inputValue: inputValue, - value: value, - dirty: dirty, - popupOpen: popupOpen, - focused: focused || focusedTag !== -1, - anchorEl: anchorEl, - setAnchorEl: setAnchorEl, - focusedTag: focusedTag, - groupedOptions: groupedOptions - }; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/styles/esm/ServerStyleSheets/ServerStyleSheets.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ ServerStyleSheets) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"); -/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/createClass.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var jss__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/jss/dist/jss.esm.js"); -/* harmony import */ var _StylesProvider__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/styles/esm/StylesProvider/StylesProvider.js"); -/* harmony import */ var _createGenerateClassName__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/styles/esm/createGenerateClassName/createGenerateClassName.js"); - - - - - - - - -var ServerStyleSheets = /*#__PURE__*/function () { - function ServerStyleSheets() { - var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - (0,_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__["default"])(this, ServerStyleSheets); - - this.options = options; - } - - (0,_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__["default"])(ServerStyleSheets, [{ - key: "collect", - value: function collect(children) { - // This is needed in order to deduplicate the injection of CSS in the page. - var sheetsManager = new Map(); // This is needed in order to inject the critical CSS. - - this.sheetsRegistry = new jss__WEBPACK_IMPORTED_MODULE_4__.SheetsRegistry(); // A new class name generator - - var generateClassName = (0,_createGenerateClassName__WEBPACK_IMPORTED_MODULE_5__["default"])(); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(_StylesProvider__WEBPACK_IMPORTED_MODULE_6__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - sheetsManager: sheetsManager, - serverGenerateClassName: generateClassName, - sheetsRegistry: this.sheetsRegistry - }, this.options), children); - } - }, { - key: "toString", - value: function toString() { - return this.sheetsRegistry ? this.sheetsRegistry.toString() : ''; - } - }, { - key: "getStyleElement", - value: function getStyleElement(props) { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement('style', (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - id: 'jss-server-side', - key: 'jss-server-side', - dangerouslySetInnerHTML: { - __html: this.toString() - } - }, props)); - } - }]); - - return ServerStyleSheets; -}(); - - - -/***/ }), - -/***/ "./node_modules/@material-ui/styles/esm/StylesProvider/StylesProvider.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "StylesContext": () => (/* binding */ StylesContext), -/* harmony export */ "default": () => (/* binding */ StylesProvider), -/* harmony export */ "sheetsManager": () => (/* binding */ sheetsManager) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/utils/esm/exactProp.js"); -/* harmony import */ var _createGenerateClassName__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/styles/esm/createGenerateClassName/createGenerateClassName.js"); -/* harmony import */ var jss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/jss/dist/jss.esm.js"); -/* harmony import */ var _jssPreset__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/styles/esm/jssPreset/jssPreset.js"); - - - - - - - - // Default JSS instance. - -var jss = (0,jss__WEBPACK_IMPORTED_MODULE_3__.create)((0,_jssPreset__WEBPACK_IMPORTED_MODULE_4__["default"])()); // Use a singleton or the provided one by the context. -// -// The counter-based approach doesn't tolerate any mistake. -// It's much safer to use the same counter everywhere. - -var generateClassName = (0,_createGenerateClassName__WEBPACK_IMPORTED_MODULE_5__["default"])(); // Exported for test purposes - -var sheetsManager = new Map(); -var defaultOptions = { - disableGeneration: false, - generateClassName: generateClassName, - jss: jss, - sheetsCache: null, - sheetsManager: sheetsManager, - sheetsRegistry: null -}; -var StylesContext = react__WEBPACK_IMPORTED_MODULE_2__.createContext(defaultOptions); - -if (true) { - StylesContext.displayName = 'StylesContext'; -} - -var injectFirstNode; -function StylesProvider(props) { - var children = props.children, - _props$injectFirst = props.injectFirst, - injectFirst = _props$injectFirst === void 0 ? false : _props$injectFirst, - _props$disableGenerat = props.disableGeneration, - disableGeneration = _props$disableGenerat === void 0 ? false : _props$disableGenerat, - localOptions = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["children", "injectFirst", "disableGeneration"]); - - var outerOptions = react__WEBPACK_IMPORTED_MODULE_2__.useContext(StylesContext); - - var context = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, outerOptions, { - disableGeneration: disableGeneration - }, localOptions); - - if (true) { - if (typeof window === 'undefined' && !context.sheetsManager) { - console.error('Material-UI: You need to use the ServerStyleSheets API when rendering on the server.'); - } - } - - if (true) { - if (context.jss.options.insertionPoint && injectFirst) { - console.error('Material-UI: You cannot use a custom insertionPoint and at the same time.'); - } - } - - if (true) { - if (injectFirst && localOptions.jss) { - console.error('Material-UI: You cannot use the jss and injectFirst props at the same time.'); - } - } - - if (!context.jss.options.insertionPoint && injectFirst && typeof window !== 'undefined') { - if (!injectFirstNode) { - var head = document.head; - injectFirstNode = document.createComment('mui-inject-first'); - head.insertBefore(injectFirstNode, head.firstChild); - } - - context.jss = (0,jss__WEBPACK_IMPORTED_MODULE_3__.create)({ - plugins: (0,_jssPreset__WEBPACK_IMPORTED_MODULE_4__["default"])().plugins, - insertionPoint: injectFirstNode - }); - } - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(StylesContext.Provider, { - value: context - }, children); -} - true ? StylesProvider.propTypes = { - /** - * Your component tree. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().node.isRequired), - - /** - * You can disable the generation of the styles with this option. - * It can be useful when traversing the React tree outside of the HTML - * rendering step on the server. - * Let's say you are using react-apollo to extract all - * the queries made by the interface server-side - you can significantly speed up the traversal with this prop. - */ - disableGeneration: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool), - - /** - * JSS's class name generator. - */ - generateClassName: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func), - - /** - * By default, the styles are injected last in the element of the page. - * As a result, they gain more specificity than any other style sheet. - * If you want to override Material-UI's styles, set this prop. - */ - injectFirst: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool), - - /** - * JSS's instance. - */ - jss: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object), - - /** - * @ignore - */ - serverGenerateClassName: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func), - - /** - * @ignore - * - * Beta feature. - * - * Cache for the sheets. - */ - sheetsCache: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object), - - /** - * @ignore - * - * The sheetsManager is used to deduplicate style sheet injection in the page. - * It's deduplicating using the (theme, styles) couple. - * On the server, you should provide a new instance for each request. - */ - sheetsManager: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object), - - /** - * @ignore - * - * Collect the sheets. - */ - sheetsRegistry: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object) -} : 0; - -if (true) { - true ? StylesProvider.propTypes = (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_7__["default"])(StylesProvider.propTypes) : 0; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/styles/esm/ThemeProvider/ThemeProvider.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/utils/esm/exactProp.js"); -/* harmony import */ var _useTheme_ThemeContext__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/styles/esm/useTheme/ThemeContext.js"); -/* harmony import */ var _useTheme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@material-ui/styles/esm/useTheme/useTheme.js"); -/* harmony import */ var _nested__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@material-ui/styles/esm/ThemeProvider/nested.js"); - - - - - - - // To support composition of theme. - -function mergeOuterLocalTheme(outerTheme, localTheme) { - if (typeof localTheme === 'function') { - var mergedTheme = localTheme(outerTheme); - - if (true) { - if (!mergedTheme) { - console.error(['Material-UI: You should return an object from your theme function, i.e.', ' ({})} />'].join('\n')); - } - } - - return mergedTheme; - } - - return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, outerTheme, localTheme); -} -/** - * This component takes a `theme` prop. - * It makes the `theme` available down the React tree thanks to React context. - * This component should preferably be used at **the root of your component tree**. - */ - - -function ThemeProvider(props) { - var children = props.children, - localTheme = props.theme; - var outerTheme = (0,_useTheme__WEBPACK_IMPORTED_MODULE_2__["default"])(); - - if (true) { - if (outerTheme === null && typeof localTheme === 'function') { - console.error(['Material-UI: You are providing a theme function prop to the ThemeProvider component:', ' outerTheme} />', '', 'However, no outer theme is present.', 'Make sure a theme is already injected higher in the React tree ' + 'or provide a theme object.'].join('\n')); - } - } - - var theme = react__WEBPACK_IMPORTED_MODULE_1__.useMemo(function () { - var output = outerTheme === null ? localTheme : mergeOuterLocalTheme(outerTheme, localTheme); - - if (output != null) { - output[_nested__WEBPACK_IMPORTED_MODULE_3__["default"]] = outerTheme !== null; - } - - return output; - }, [localTheme, outerTheme]); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_useTheme_ThemeContext__WEBPACK_IMPORTED_MODULE_4__["default"].Provider, { - value: theme - }, children); -} - - true ? ThemeProvider.propTypes = { - /** - * Your component tree. - */ - children: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().node.isRequired), - - /** - * A theme object. You can provide a function to extend the outer theme. - */ - theme: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_5___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().func)]).isRequired -} : 0; - -if (true) { - true ? ThemeProvider.propTypes = (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_6__["default"])(ThemeProvider.propTypes) : 0; -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ThemeProvider); - -/***/ }), - -/***/ "./node_modules/@material-ui/styles/esm/ThemeProvider/nested.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -var hasSymbol = typeof Symbol === 'function' && Symbol.for; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (hasSymbol ? Symbol.for('mui.nested') : '__THEME_NESTED__'); - -/***/ }), - -/***/ "./node_modules/@material-ui/styles/esm/createGenerateClassName/createGenerateClassName.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ createGenerateClassName) -/* harmony export */ }); -/* harmony import */ var _ThemeProvider_nested__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@material-ui/styles/esm/ThemeProvider/nested.js"); - -/** - * This is the list of the style rule name we use as drop in replacement for the built-in - * pseudo classes (:checked, :disabled, :focused, etc.). - * - * Why do they exist in the first place? - * These classes are used at a specificity of 2. - * It allows them to override previously definied styles as well as - * being untouched by simple user overrides. - */ - -var pseudoClasses = ['checked', 'disabled', 'error', 'focused', 'focusVisible', 'required', 'expanded', 'selected']; // Returns a function which generates unique class names based on counters. -// When new generator function is created, rule counter is reset. -// We need to reset the rule counter for SSR for each request. -// -// It's inspired by -// https://github.com/cssinjs/jss/blob/4e6a05dd3f7b6572fdd3ab216861d9e446c20331/src/utils/createGenerateClassName.js - -function createGenerateClassName() { - var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var _options$disableGloba = options.disableGlobal, - disableGlobal = _options$disableGloba === void 0 ? false : _options$disableGloba, - _options$productionPr = options.productionPrefix, - productionPrefix = _options$productionPr === void 0 ? 'jss' : _options$productionPr, - _options$seed = options.seed, - seed = _options$seed === void 0 ? '' : _options$seed; - var seedPrefix = seed === '' ? '' : "".concat(seed, "-"); - var ruleCounter = 0; - - var getNextCounterId = function getNextCounterId() { - ruleCounter += 1; - - if (true) { - if (ruleCounter >= 1e10) { - console.warn(['Material-UI: You might have a memory leak.', 'The ruleCounter is not supposed to grow that much.'].join('')); - } - } - - return ruleCounter; - }; - - return function (rule, styleSheet) { - var name = styleSheet.options.name; // Is a global static MUI style? - - if (name && name.indexOf('Mui') === 0 && !styleSheet.options.link && !disableGlobal) { - // We can use a shorthand class name, we never use the keys to style the components. - if (pseudoClasses.indexOf(rule.key) !== -1) { - return "Mui-".concat(rule.key); - } - - var prefix = "".concat(seedPrefix).concat(name, "-").concat(rule.key); - - if (!styleSheet.options.theme[_ThemeProvider_nested__WEBPACK_IMPORTED_MODULE_0__["default"]] || seed !== '') { - return prefix; - } - - return "".concat(prefix, "-").concat(getNextCounterId()); - } - - if (false) {} - - var suffix = "".concat(rule.key, "-").concat(getNextCounterId()); // Help with debuggability. - - if (styleSheet.options.classNamePrefix) { - return "".concat(seedPrefix).concat(styleSheet.options.classNamePrefix, "-").concat(suffix); - } - - return "".concat(seedPrefix).concat(suffix); - }; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/styles/esm/createStyles/createStyles.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ createStyles) -/* harmony export */ }); -function createStyles(styles) { - return styles; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/styles/esm/getStylesCreator/getStylesCreator.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ getStylesCreator) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/typeof.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@material-ui/utils/esm/deepmerge.js"); -/* harmony import */ var _noopTheme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@material-ui/styles/esm/getStylesCreator/noopTheme.js"); - - - - -function getStylesCreator(stylesOrCreator) { - var themingEnabled = typeof stylesOrCreator === 'function'; - - if (true) { - if ((0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_1__["default"])(stylesOrCreator) !== 'object' && !themingEnabled) { - console.error(['Material-UI: The `styles` argument provided is invalid.', 'You need to provide a function generating the styles or a styles object.'].join('\n')); - } - } - - return { - create: function create(theme, name) { - var styles; - - try { - styles = themingEnabled ? stylesOrCreator(theme) : stylesOrCreator; - } catch (err) { - if (true) { - if (themingEnabled === true && theme === _noopTheme__WEBPACK_IMPORTED_MODULE_2__["default"]) { - // TODO: prepend error message/name instead - console.error(['Material-UI: The `styles` argument provided is invalid.', 'You are providing a function without a theme in the context.', 'One of the parent elements needs to use a ThemeProvider.'].join('\n')); - } - } - - throw err; - } - - if (!name || !theme.overrides || !theme.overrides[name]) { - return styles; - } - - var overrides = theme.overrides[name]; - - var stylesWithOverrides = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, styles); - - Object.keys(overrides).forEach(function (key) { - if (true) { - if (!stylesWithOverrides[key]) { - console.warn(['Material-UI: You are trying to override a style that does not exist.', "Fix the `".concat(key, "` key of `theme.overrides.").concat(name, "`.")].join('\n')); - } - } - - stylesWithOverrides[key] = (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_3__["default"])(stylesWithOverrides[key], overrides[key]); - }); - return stylesWithOverrides; - }, - options: {} - }; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/styles/esm/getStylesCreator/noopTheme.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -// We use the same empty object to ref count the styles that don't need a theme object. -var noopTheme = {}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (noopTheme); - -/***/ }), - -/***/ "./node_modules/@material-ui/styles/esm/getThemeProps/getThemeProps.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ getThemeProps) -/* harmony export */ }); -/* eslint-disable no-restricted-syntax */ -function getThemeProps(params) { - var theme = params.theme, - name = params.name, - props = params.props; - - if (!theme || !theme.props || !theme.props[name]) { - return props; - } // Resolve default props, code borrow from React source. - // https://github.com/facebook/react/blob/15a8f031838a553e41c0b66eb1bcf1da8448104d/packages/react/src/ReactElement.js#L221 - - - var defaultProps = theme.props[name]; - var propName; - - for (propName in defaultProps) { - if (props[propName] === undefined) { - props[propName] = defaultProps[propName]; - } - } - - return props; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/styles/esm/jssPreset/jssPreset.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ jssPreset) -/* harmony export */ }); -/* harmony import */ var jss_plugin_rule_value_function__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/jss-plugin-rule-value-function/dist/jss-plugin-rule-value-function.esm.js"); -/* harmony import */ var jss_plugin_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/jss-plugin-global/dist/jss-plugin-global.esm.js"); -/* harmony import */ var jss_plugin_nested__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/jss-plugin-nested/dist/jss-plugin-nested.esm.js"); -/* harmony import */ var jss_plugin_camel_case__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/jss-plugin-camel-case/dist/jss-plugin-camel-case.esm.js"); -/* harmony import */ var jss_plugin_default_unit__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/jss-plugin-default-unit/dist/jss-plugin-default-unit.esm.js"); -/* harmony import */ var jss_plugin_vendor_prefixer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/jss-plugin-vendor-prefixer/dist/jss-plugin-vendor-prefixer.esm.js"); -/* harmony import */ var jss_plugin_props_sort__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/jss-plugin-props-sort/dist/jss-plugin-props-sort.esm.js"); - - - - - - - // Subset of jss-preset-default with only the plugins the Material-UI components are using. - -function jssPreset() { - return { - plugins: [(0,jss_plugin_rule_value_function__WEBPACK_IMPORTED_MODULE_0__["default"])(), (0,jss_plugin_global__WEBPACK_IMPORTED_MODULE_1__["default"])(), (0,jss_plugin_nested__WEBPACK_IMPORTED_MODULE_2__["default"])(), (0,jss_plugin_camel_case__WEBPACK_IMPORTED_MODULE_3__["default"])(), (0,jss_plugin_default_unit__WEBPACK_IMPORTED_MODULE_4__["default"])(), // Disable the vendor prefixer server-side, it does nothing. - // This way, we can get a performance boost. - // In the documentation, we are using `autoprefixer` to solve this problem. - typeof window === 'undefined' ? null : (0,jss_plugin_vendor_prefixer__WEBPACK_IMPORTED_MODULE_5__["default"])(), (0,jss_plugin_props_sort__WEBPACK_IMPORTED_MODULE_6__["default"])()] - }; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/styles/esm/makeStyles/indexCounter.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "increment": () => (/* binding */ increment) -/* harmony export */ }); -/* eslint-disable import/prefer-default-export */ -// Global index counter to preserve source order. -// We create the style sheet during the creation of the component, -// children are handled after the parents, so the order of style elements would be parent->child. -// It is a problem though when a parent passes a className -// which needs to override any child's styles. -// StyleSheet of the child has a higher specificity, because of the source order. -// So our solution is to render sheets them in the reverse order child->sheet, so -// that parent has a higher specificity. -var indexCounter = -1e9; -function increment() { - indexCounter += 1; - - if (true) { - if (indexCounter >= 0) { - console.warn(['Material-UI: You might have a memory leak.', 'The indexCounter is not supposed to grow that much.'].join('\n')); - } - } - - return indexCounter; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/styles/esm/makeStyles/makeStyles.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ makeStyles) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var jss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/jss/dist/jss.esm.js"); -/* harmony import */ var _mergeClasses__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@material-ui/styles/esm/mergeClasses/mergeClasses.js"); -/* harmony import */ var _multiKeyStore__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/styles/esm/makeStyles/multiKeyStore.js"); -/* harmony import */ var _useTheme__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/styles/esm/useTheme/useTheme.js"); -/* harmony import */ var _StylesProvider__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/styles/esm/StylesProvider/StylesProvider.js"); -/* harmony import */ var _indexCounter__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/styles/esm/makeStyles/indexCounter.js"); -/* harmony import */ var _getStylesCreator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/styles/esm/getStylesCreator/getStylesCreator.js"); -/* harmony import */ var _getStylesCreator_noopTheme__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/styles/esm/getStylesCreator/noopTheme.js"); - - - - - - - - - - - - -function getClasses(_ref, classes, Component) { - var state = _ref.state, - stylesOptions = _ref.stylesOptions; - - if (stylesOptions.disableGeneration) { - return classes || {}; - } - - if (!state.cacheClasses) { - state.cacheClasses = { - // Cache for the finalized classes value. - value: null, - // Cache for the last used classes prop pointer. - lastProp: null, - // Cache for the last used rendered classes pointer. - lastJSS: {} - }; - } // Tracks if either the rendered classes or classes prop has changed, - // requiring the generation of a new finalized classes object. - - - var generate = false; - - if (state.classes !== state.cacheClasses.lastJSS) { - state.cacheClasses.lastJSS = state.classes; - generate = true; - } - - if (classes !== state.cacheClasses.lastProp) { - state.cacheClasses.lastProp = classes; - generate = true; - } - - if (generate) { - state.cacheClasses.value = (0,_mergeClasses__WEBPACK_IMPORTED_MODULE_3__["default"])({ - baseClasses: state.cacheClasses.lastJSS, - newClasses: classes, - Component: Component - }); - } - - return state.cacheClasses.value; -} - -function attach(_ref2, props) { - var state = _ref2.state, - theme = _ref2.theme, - stylesOptions = _ref2.stylesOptions, - stylesCreator = _ref2.stylesCreator, - name = _ref2.name; - - if (stylesOptions.disableGeneration) { - return; - } - - var sheetManager = _multiKeyStore__WEBPACK_IMPORTED_MODULE_4__["default"].get(stylesOptions.sheetsManager, stylesCreator, theme); - - if (!sheetManager) { - sheetManager = { - refs: 0, - staticSheet: null, - dynamicStyles: null - }; - _multiKeyStore__WEBPACK_IMPORTED_MODULE_4__["default"].set(stylesOptions.sheetsManager, stylesCreator, theme, sheetManager); - } - - var options = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, stylesCreator.options, stylesOptions, { - theme: theme, - flip: typeof stylesOptions.flip === 'boolean' ? stylesOptions.flip : theme.direction === 'rtl' - }); - - options.generateId = options.serverGenerateClassName || options.generateClassName; - var sheetsRegistry = stylesOptions.sheetsRegistry; - - if (sheetManager.refs === 0) { - var staticSheet; - - if (stylesOptions.sheetsCache) { - staticSheet = _multiKeyStore__WEBPACK_IMPORTED_MODULE_4__["default"].get(stylesOptions.sheetsCache, stylesCreator, theme); - } - - var styles = stylesCreator.create(theme, name); - - if (!staticSheet) { - staticSheet = stylesOptions.jss.createStyleSheet(styles, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - link: false - }, options)); - staticSheet.attach(); - - if (stylesOptions.sheetsCache) { - _multiKeyStore__WEBPACK_IMPORTED_MODULE_4__["default"].set(stylesOptions.sheetsCache, stylesCreator, theme, staticSheet); - } - } - - if (sheetsRegistry) { - sheetsRegistry.add(staticSheet); - } - - sheetManager.staticSheet = staticSheet; - sheetManager.dynamicStyles = (0,jss__WEBPACK_IMPORTED_MODULE_5__.getDynamicStyles)(styles); - } - - if (sheetManager.dynamicStyles) { - var dynamicSheet = stylesOptions.jss.createStyleSheet(sheetManager.dynamicStyles, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - link: true - }, options)); - dynamicSheet.update(props); - dynamicSheet.attach(); - state.dynamicSheet = dynamicSheet; - state.classes = (0,_mergeClasses__WEBPACK_IMPORTED_MODULE_3__["default"])({ - baseClasses: sheetManager.staticSheet.classes, - newClasses: dynamicSheet.classes - }); - - if (sheetsRegistry) { - sheetsRegistry.add(dynamicSheet); - } - } else { - state.classes = sheetManager.staticSheet.classes; - } - - sheetManager.refs += 1; -} - -function update(_ref3, props) { - var state = _ref3.state; - - if (state.dynamicSheet) { - state.dynamicSheet.update(props); - } -} - -function detach(_ref4) { - var state = _ref4.state, - theme = _ref4.theme, - stylesOptions = _ref4.stylesOptions, - stylesCreator = _ref4.stylesCreator; - - if (stylesOptions.disableGeneration) { - return; - } - - var sheetManager = _multiKeyStore__WEBPACK_IMPORTED_MODULE_4__["default"].get(stylesOptions.sheetsManager, stylesCreator, theme); - sheetManager.refs -= 1; - var sheetsRegistry = stylesOptions.sheetsRegistry; - - if (sheetManager.refs === 0) { - _multiKeyStore__WEBPACK_IMPORTED_MODULE_4__["default"]["delete"](stylesOptions.sheetsManager, stylesCreator, theme); - stylesOptions.jss.removeStyleSheet(sheetManager.staticSheet); - - if (sheetsRegistry) { - sheetsRegistry.remove(sheetManager.staticSheet); - } - } - - if (state.dynamicSheet) { - stylesOptions.jss.removeStyleSheet(state.dynamicSheet); - - if (sheetsRegistry) { - sheetsRegistry.remove(state.dynamicSheet); - } - } -} - -function useSynchronousEffect(func, values) { - var key = react__WEBPACK_IMPORTED_MODULE_2__.useRef([]); - var output; // Store "generation" key. Just returns a new object every time - - var currentKey = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(function () { - return {}; - }, values); // eslint-disable-line react-hooks/exhaustive-deps - // "the first render", or "memo dropped the value" - - if (key.current !== currentKey) { - key.current = currentKey; - output = func(); - } - - react__WEBPACK_IMPORTED_MODULE_2__.useEffect(function () { - return function () { - if (output) { - output(); - } - }; - }, [currentKey] // eslint-disable-line react-hooks/exhaustive-deps - ); -} - -function makeStyles(stylesOrCreator) { - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - var name = options.name, - classNamePrefixOption = options.classNamePrefix, - Component = options.Component, - _options$defaultTheme = options.defaultTheme, - defaultTheme = _options$defaultTheme === void 0 ? _getStylesCreator_noopTheme__WEBPACK_IMPORTED_MODULE_6__["default"] : _options$defaultTheme, - stylesOptions2 = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__["default"])(options, ["name", "classNamePrefix", "Component", "defaultTheme"]); - - var stylesCreator = (0,_getStylesCreator__WEBPACK_IMPORTED_MODULE_7__["default"])(stylesOrCreator); - var classNamePrefix = name || classNamePrefixOption || 'makeStyles'; - stylesCreator.options = { - index: (0,_indexCounter__WEBPACK_IMPORTED_MODULE_8__.increment)(), - name: name, - meta: classNamePrefix, - classNamePrefix: classNamePrefix - }; - - var useStyles = function useStyles() { - var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var theme = (0,_useTheme__WEBPACK_IMPORTED_MODULE_9__["default"])() || defaultTheme; - - var stylesOptions = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, react__WEBPACK_IMPORTED_MODULE_2__.useContext(_StylesProvider__WEBPACK_IMPORTED_MODULE_10__.StylesContext), stylesOptions2); - - var instance = react__WEBPACK_IMPORTED_MODULE_2__.useRef(); - var shouldUpdate = react__WEBPACK_IMPORTED_MODULE_2__.useRef(); - useSynchronousEffect(function () { - var current = { - name: name, - state: {}, - stylesCreator: stylesCreator, - stylesOptions: stylesOptions, - theme: theme - }; - attach(current, props); - shouldUpdate.current = false; - instance.current = current; - return function () { - detach(current); - }; - }, [theme, stylesCreator]); - react__WEBPACK_IMPORTED_MODULE_2__.useEffect(function () { - if (shouldUpdate.current) { - update(instance.current, props); - } - - shouldUpdate.current = true; - }); - var classes = getClasses(instance.current, props.classes, Component); - - if (true) { - // eslint-disable-next-line react-hooks/rules-of-hooks - react__WEBPACK_IMPORTED_MODULE_2__.useDebugValue(classes); - } - - return classes; - }; - - return useStyles; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/styles/esm/makeStyles/multiKeyStore.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -// Used https://github.com/thinkloop/multi-key-cache as inspiration -var multiKeyStore = { - set: function set(cache, key1, key2, value) { - var subCache = cache.get(key1); - - if (!subCache) { - subCache = new Map(); - cache.set(key1, subCache); - } - - subCache.set(key2, value); - }, - get: function get(cache, key1, key2) { - var subCache = cache.get(key1); - return subCache ? subCache.get(key2) : undefined; - }, - delete: function _delete(cache, key1, key2) { - var subCache = cache.get(key1); - subCache.delete(key2); - } -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (multiKeyStore); - -/***/ }), - -/***/ "./node_modules/@material-ui/styles/esm/mergeClasses/mergeClasses.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ mergeClasses) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/utils/esm/getDisplayName.js"); - - -function mergeClasses() { - var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var baseClasses = options.baseClasses, - newClasses = options.newClasses, - Component = options.Component; - - if (!newClasses) { - return baseClasses; - } - - var nextClasses = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, baseClasses); - - if (true) { - if (typeof newClasses === 'string') { - console.error(["Material-UI: The value `".concat(newClasses, "` ") + "provided to the classes prop of ".concat((0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_1__["default"])(Component), " is incorrect."), 'You might want to use the className prop instead.'].join('\n')); - return baseClasses; - } - } - - Object.keys(newClasses).forEach(function (key) { - if (true) { - if (!baseClasses[key] && newClasses[key]) { - console.error(["Material-UI: The key `".concat(key, "` ") + "provided to the classes prop is not implemented in ".concat((0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_1__["default"])(Component), "."), "You can only override one of the following: ".concat(Object.keys(baseClasses).join(','), ".")].join('\n')); - } - - if (newClasses[key] && typeof newClasses[key] !== 'string') { - console.error(["Material-UI: The key `".concat(key, "` ") + "provided to the classes prop is not valid for ".concat((0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_1__["default"])(Component), "."), "You need to provide a non empty string instead of: ".concat(newClasses[key], ".")].join('\n')); - } - } - - if (newClasses[key]) { - nextClasses[key] = "".concat(baseClasses[key], " ").concat(newClasses[key]); - } - }); - return nextClasses; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/styles/esm/styled/styled.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ styled) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/utils/esm/getDisplayName.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/utils/esm/chainPropTypes.js"); -/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"); -/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _makeStyles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/styles/esm/makeStyles/makeStyles.js"); - - - - - - - - - -function omit(input, fields) { - var output = {}; - Object.keys(input).forEach(function (prop) { - if (fields.indexOf(prop) === -1) { - output[prop] = input[prop]; - } - }); - return output; -} // styled-components's API removes the mapping between components and styles. -// Using components as a low-level styling construct can be simpler. - - -function styled(Component) { - var componentCreator = function componentCreator(style) { - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - var name = options.name, - stylesOptions = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(options, ["name"]); - - if ( true && Component === undefined) { - throw new Error(['You are calling styled(Component)(style) with an undefined component.', 'You may have forgotten to import it.'].join('\n')); - } - - var classNamePrefix = name; - - if (true) { - if (!name) { - // Provide a better DX outside production. - var displayName = (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_5__["default"])(Component); - - if (displayName !== undefined) { - classNamePrefix = displayName; - } - } - } - - var stylesOrCreator = typeof style === 'function' ? function (theme) { - return { - root: function root(props) { - return style((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - theme: theme - }, props)); - } - }; - } : { - root: style - }; - var useStyles = (0,_makeStyles__WEBPACK_IMPORTED_MODULE_6__["default"])(stylesOrCreator, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - Component: Component, - name: name || Component.displayName, - classNamePrefix: classNamePrefix - }, stylesOptions)); - var filterProps; - var propTypes = {}; - - if (style.filterProps) { - filterProps = style.filterProps; - delete style.filterProps; - } - /* eslint-disable react/forbid-foreign-prop-types */ - - - if (style.propTypes) { - propTypes = style.propTypes; - delete style.propTypes; - } - /* eslint-enable react/forbid-foreign-prop-types */ - - - var StyledComponent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function StyledComponent(props, ref) { - var children = props.children, - classNameProp = props.className, - clone = props.clone, - ComponentProp = props.component, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["children", "className", "clone", "component"]); - - var classes = useStyles(props); - var className = (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, classNameProp); - var spread = other; - - if (filterProps) { - spread = omit(spread, filterProps); - } - - if (clone) { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.cloneElement(children, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(children.props.className, className) - }, spread)); - } - - if (typeof children === 'function') { - return children((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: className - }, spread)); - } - - var FinalComponent = ComponentProp || Component; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(FinalComponent, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - ref: ref, - className: className - }, spread), children); - }); - true ? StyledComponent.propTypes = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - /** - * A render function or node. - */ - children: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().node), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func)]), - - /** - * @ignore - */ - className: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), - - /** - * If `true`, the component will recycle it's children HTML element. - * It's using `React.cloneElement` internally. - * - * This prop will be deprecated and removed in v5 - */ - clone: (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_8__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), function (props) { - if (props.clone && props.component) { - return new Error('You can not use the clone and component prop at the same time.'); - } - - return null; - }), - - /** - * The component used for the root node. - * Either a string to use a HTML element or a component. - */ - component: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().elementType) - }, propTypes) : 0; - - if (true) { - StyledComponent.displayName = "Styled(".concat(classNamePrefix, ")"); - } - - hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_4___default()(StyledComponent, Component); - return StyledComponent; - }; - - return componentCreator; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/styles/esm/useTheme/ThemeContext.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); - -var ThemeContext = react__WEBPACK_IMPORTED_MODULE_0__.createContext(null); - -if (true) { - ThemeContext.displayName = 'ThemeContext'; -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ThemeContext); - -/***/ }), - -/***/ "./node_modules/@material-ui/styles/esm/useTheme/useTheme.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ useTheme) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _ThemeContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/styles/esm/useTheme/ThemeContext.js"); - - -function useTheme() { - var theme = react__WEBPACK_IMPORTED_MODULE_0__.useContext(_ThemeContext__WEBPACK_IMPORTED_MODULE_1__["default"]); - - if (true) { - // eslint-disable-next-line react-hooks/rules-of-hooks - react__WEBPACK_IMPORTED_MODULE_0__.useDebugValue(theme); - } - - return theme; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/styles/esm/withStyles/withStyles.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"); -/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/utils/esm/getDisplayName.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/utils/esm/chainPropTypes.js"); -/* harmony import */ var _makeStyles__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/styles/esm/makeStyles/makeStyles.js"); -/* harmony import */ var _getThemeProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/styles/esm/getThemeProps/getThemeProps.js"); -/* harmony import */ var _useTheme__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/styles/esm/useTheme/useTheme.js"); - - - - - - - - - // Link a style sheet with a component. -// It does not modify the component passed to it; -// instead, it returns a new component, with a `classes` property. - -var withStyles = function withStyles(stylesOrCreator) { - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - return function (Component) { - var defaultTheme = options.defaultTheme, - _options$withTheme = options.withTheme, - withTheme = _options$withTheme === void 0 ? false : _options$withTheme, - name = options.name, - stylesOptions = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(options, ["defaultTheme", "withTheme", "name"]); - - if (true) { - if (Component === undefined) { - throw new Error(['You are calling withStyles(styles)(Component) with an undefined component.', 'You may have forgotten to import it.'].join('\n')); - } - } - - var classNamePrefix = name; - - if (true) { - if (!name) { - // Provide a better DX outside production. - var displayName = (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_4__["default"])(Component); - - if (displayName !== undefined) { - classNamePrefix = displayName; - } - } - } - - var useStyles = (0,_makeStyles__WEBPACK_IMPORTED_MODULE_5__["default"])(stylesOrCreator, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - defaultTheme: defaultTheme, - Component: Component, - name: name || Component.displayName, - classNamePrefix: classNamePrefix - }, stylesOptions)); - var WithStyles = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function WithStyles(props, ref) { - var classesProp = props.classes, - innerRef = props.innerRef, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["classes", "innerRef"]); // The wrapper receives only user supplied props, which could be a subset of - // the actual props Component might receive due to merging with defaultProps. - // So copying it here would give us the same result in the wrapper as well. - - - var classes = useStyles((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Component.defaultProps, props)); - var theme; - var more = other; - - if (typeof name === 'string' || withTheme) { - // name and withTheme are invariant in the outer scope - // eslint-disable-next-line react-hooks/rules-of-hooks - theme = (0,_useTheme__WEBPACK_IMPORTED_MODULE_6__["default"])() || defaultTheme; - - if (name) { - more = (0,_getThemeProps__WEBPACK_IMPORTED_MODULE_7__["default"])({ - theme: theme, - name: name, - props: other - }); - } // Provide the theme to the wrapped component. - // So we don't have to use the `withTheme()` Higher-order Component. - - - if (withTheme && !more.theme) { - more.theme = theme; - } - } - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Component, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - ref: innerRef || ref, - classes: classes - }, more)); - }); - true ? WithStyles.propTypes = { - /** - * Override or extend the styles applied to the component. - */ - classes: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object), - - /** - * Use that prop to pass a ref to the decorated component. - * @deprecated - */ - innerRef: (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_9__["default"])(prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object)]), function (props) { - if (props.innerRef == null) { - return null; - } - - return null; // return new Error( - // 'Material-UI: The `innerRef` prop is deprecated and will be removed in v5. ' + - // 'Refs are now automatically forwarded to the inner component.', - // ); - }) - } : 0; - - if (true) { - WithStyles.displayName = "WithStyles(".concat((0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_4__["default"])(Component), ")"); - } - - hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_3___default()(WithStyles, Component); - - if (true) { - // Exposed for test purposes. - WithStyles.Naked = Component; - WithStyles.options = options; - WithStyles.useStyles = useStyles; - } - - return WithStyles; - }; -}; - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (withStyles); - -/***/ }), - -/***/ "./node_modules/@material-ui/styles/esm/withTheme/withTheme.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "withThemeCreator": () => (/* binding */ withThemeCreator) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"); -/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/utils/esm/chainPropTypes.js"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/utils/esm/getDisplayName.js"); -/* harmony import */ var _useTheme__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/styles/esm/useTheme/useTheme.js"); - - - - - - - -function withThemeCreator() { - var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var defaultTheme = options.defaultTheme; - - var withTheme = function withTheme(Component) { - if (true) { - if (Component === undefined) { - throw new Error(['You are calling withTheme(Component) with an undefined component.', 'You may have forgotten to import it.'].join('\n')); - } - } - - var WithTheme = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function WithTheme(props, ref) { - var innerRef = props.innerRef, - other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["innerRef"]); - - var theme = (0,_useTheme__WEBPACK_IMPORTED_MODULE_4__["default"])() || defaultTheme; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Component, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - theme: theme, - ref: innerRef || ref - }, other)); - }); - true ? WithTheme.propTypes = { - /** - * Use that prop to pass a ref to the decorated component. - * @deprecated - */ - innerRef: (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_5__["default"])(prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object)]), function (props) { - if (props.innerRef == null) { - return null; - } - - return new Error('Material-UI: The `innerRef` prop is deprecated and will be removed in v5. ' + 'Refs are now automatically forwarded to the inner component.'); - }) - } : 0; - - if (true) { - WithTheme.displayName = "WithTheme(".concat((0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_7__["default"])(Component), ")"); - } - - hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_3___default()(WithTheme, Component); - - if (true) { - // Exposed for test purposes. - WithTheme.Naked = Component; - } - - return WithTheme; - }; - - return withTheme; -} // Provide the theme object as a prop to the input component. -// It's an alternative API to useTheme(). -// We encourage the usage of useTheme() where possible. - -var withTheme = withThemeCreator(); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (withTheme); - -/***/ }), - -/***/ "./node_modules/@material-ui/system/esm/borders.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "border": () => (/* binding */ border), -/* harmony export */ "borderBottom": () => (/* binding */ borderBottom), -/* harmony export */ "borderColor": () => (/* binding */ borderColor), -/* harmony export */ "borderLeft": () => (/* binding */ borderLeft), -/* harmony export */ "borderRadius": () => (/* binding */ borderRadius), -/* harmony export */ "borderRight": () => (/* binding */ borderRight), -/* harmony export */ "borderTop": () => (/* binding */ borderTop), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@material-ui/system/esm/style.js"); -/* harmony import */ var _compose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/system/esm/compose.js"); - - - -function getBorder(value) { - if (typeof value !== 'number') { - return value; - } - - return "".concat(value, "px solid"); -} - -var border = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'border', - themeKey: 'borders', - transform: getBorder -}); -var borderTop = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'borderTop', - themeKey: 'borders', - transform: getBorder -}); -var borderRight = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'borderRight', - themeKey: 'borders', - transform: getBorder -}); -var borderBottom = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'borderBottom', - themeKey: 'borders', - transform: getBorder -}); -var borderLeft = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'borderLeft', - themeKey: 'borders', - transform: getBorder -}); -var borderColor = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'borderColor', - themeKey: 'palette' -}); -var borderRadius = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'borderRadius', - themeKey: 'shape' -}); -var borders = (0,_compose__WEBPACK_IMPORTED_MODULE_1__["default"])(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderRadius); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (borders); - -/***/ }), - -/***/ "./node_modules/@material-ui/system/esm/breakpoints.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "handleBreakpoints": () => (/* binding */ handleBreakpoints) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/typeof.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _merge__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@material-ui/system/esm/merge.js"); - - - - - // The breakpoint **start** at this value. -// For instance with the first breakpoint xs: [xs, sm[. - -var values = { - xs: 0, - sm: 600, - md: 960, - lg: 1280, - xl: 1920 -}; -var defaultBreakpoints = { - // Sorted ASC by size. That's important. - // It can't be configured as it's used statically for propTypes. - keys: ['xs', 'sm', 'md', 'lg', 'xl'], - up: function up(key) { - return "@media (min-width:".concat(values[key], "px)"); - } -}; -function handleBreakpoints(props, propValue, styleFromPropValue) { - if (true) { - if (!props.theme) { - console.error('Material-UI: You are calling a style function without a theme value.'); - } - } - - if (Array.isArray(propValue)) { - var themeBreakpoints = props.theme.breakpoints || defaultBreakpoints; - return propValue.reduce(function (acc, item, index) { - acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]); - return acc; - }, {}); - } - - if ((0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__["default"])(propValue) === 'object') { - var _themeBreakpoints = props.theme.breakpoints || defaultBreakpoints; - - return Object.keys(propValue).reduce(function (acc, breakpoint) { - acc[_themeBreakpoints.up(breakpoint)] = styleFromPropValue(propValue[breakpoint]); - return acc; - }, {}); - } - - var output = styleFromPropValue(propValue); - return output; -} - -function breakpoints(styleFunction) { - var newStyleFunction = function newStyleFunction(props) { - var base = styleFunction(props); - var themeBreakpoints = props.theme.breakpoints || defaultBreakpoints; - var extended = themeBreakpoints.keys.reduce(function (acc, key) { - if (props[key]) { - acc = acc || {}; - acc[themeBreakpoints.up(key)] = styleFunction((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - theme: props.theme - }, props[key])); - } - - return acc; - }, null); - return (0,_merge__WEBPACK_IMPORTED_MODULE_3__["default"])(base, extended); - }; - - newStyleFunction.propTypes = true ? (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, styleFunction.propTypes, { - xs: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().object), - sm: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().object), - md: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().object), - lg: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().object), - xl: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().object) - }) : 0; - newStyleFunction.filterProps = ['xs', 'sm', 'md', 'lg', 'xl'].concat((0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(styleFunction.filterProps)); - return newStyleFunction; -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (breakpoints); - -/***/ }), - -/***/ "./node_modules/@material-ui/system/esm/compose.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _merge__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/system/esm/merge.js"); - - - -function compose() { - for (var _len = arguments.length, styles = new Array(_len), _key = 0; _key < _len; _key++) { - styles[_key] = arguments[_key]; - } - - var fn = function fn(props) { - return styles.reduce(function (acc, style) { - var output = style(props); - - if (output) { - return (0,_merge__WEBPACK_IMPORTED_MODULE_1__["default"])(acc, output); - } - - return acc; - }, {}); - }; // Alternative approach that doesn't yield any performance gain. - // const handlers = styles.reduce((acc, style) => { - // style.filterProps.forEach(prop => { - // acc[prop] = style; - // }); - // return acc; - // }, {}); - // const fn = props => { - // return Object.keys(props).reduce((acc, prop) => { - // if (handlers[prop]) { - // return merge(acc, handlers[prop](props)); - // } - // return acc; - // }, {}); - // }; - - - fn.propTypes = true ? styles.reduce(function (acc, style) { - return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])(acc, style.propTypes); - }, {}) : 0; - fn.filterProps = styles.reduce(function (acc, style) { - return acc.concat(style.filterProps); - }, []); - return fn; -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (compose); - -/***/ }), - -/***/ "./node_modules/@material-ui/system/esm/display.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "displayPrint": () => (/* binding */ displayPrint), -/* harmony export */ "displayRaw": () => (/* binding */ displayRaw), -/* harmony export */ "overflow": () => (/* binding */ overflow), -/* harmony export */ "textOverflow": () => (/* binding */ textOverflow), -/* harmony export */ "visibility": () => (/* binding */ visibility), -/* harmony export */ "whiteSpace": () => (/* binding */ whiteSpace) -/* harmony export */ }); -/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@material-ui/system/esm/style.js"); -/* harmony import */ var _compose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/system/esm/compose.js"); - - -var displayPrint = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'displayPrint', - cssProperty: false, - transform: function transform(value) { - return { - '@media print': { - display: value - } - }; - } -}); -var displayRaw = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'display' -}); -var overflow = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'overflow' -}); -var textOverflow = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'textOverflow' -}); -var visibility = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'visibility' -}); -var whiteSpace = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'whiteSpace' -}); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_compose__WEBPACK_IMPORTED_MODULE_1__["default"])(displayPrint, displayRaw, overflow, textOverflow, visibility, whiteSpace)); - -/***/ }), - -/***/ "./node_modules/@material-ui/system/esm/flexbox.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "alignContent": () => (/* binding */ alignContent), -/* harmony export */ "alignItems": () => (/* binding */ alignItems), -/* harmony export */ "alignSelf": () => (/* binding */ alignSelf), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "flex": () => (/* binding */ flex), -/* harmony export */ "flexBasis": () => (/* binding */ flexBasis), -/* harmony export */ "flexDirection": () => (/* binding */ flexDirection), -/* harmony export */ "flexGrow": () => (/* binding */ flexGrow), -/* harmony export */ "flexShrink": () => (/* binding */ flexShrink), -/* harmony export */ "flexWrap": () => (/* binding */ flexWrap), -/* harmony export */ "justifyContent": () => (/* binding */ justifyContent), -/* harmony export */ "justifyItems": () => (/* binding */ justifyItems), -/* harmony export */ "justifySelf": () => (/* binding */ justifySelf), -/* harmony export */ "order": () => (/* binding */ order) -/* harmony export */ }); -/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@material-ui/system/esm/style.js"); -/* harmony import */ var _compose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/system/esm/compose.js"); - - -var flexBasis = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'flexBasis' -}); -var flexDirection = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'flexDirection' -}); -var flexWrap = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'flexWrap' -}); -var justifyContent = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'justifyContent' -}); -var alignItems = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'alignItems' -}); -var alignContent = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'alignContent' -}); -var order = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'order' -}); -var flex = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'flex' -}); -var flexGrow = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'flexGrow' -}); -var flexShrink = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'flexShrink' -}); -var alignSelf = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'alignSelf' -}); -var justifyItems = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'justifyItems' -}); -var justifySelf = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'justifySelf' -}); -var flexbox = (0,_compose__WEBPACK_IMPORTED_MODULE_1__["default"])(flexBasis, flexDirection, flexWrap, justifyContent, alignItems, alignContent, order, flex, flexGrow, flexShrink, alignSelf, justifyItems, justifySelf); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (flexbox); - -/***/ }), - -/***/ "./node_modules/@material-ui/system/esm/grid.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "gridArea": () => (/* binding */ gridArea), -/* harmony export */ "gridAutoColumns": () => (/* binding */ gridAutoColumns), -/* harmony export */ "gridAutoFlow": () => (/* binding */ gridAutoFlow), -/* harmony export */ "gridAutoRows": () => (/* binding */ gridAutoRows), -/* harmony export */ "gridColumn": () => (/* binding */ gridColumn), -/* harmony export */ "gridColumnGap": () => (/* binding */ gridColumnGap), -/* harmony export */ "gridGap": () => (/* binding */ gridGap), -/* harmony export */ "gridRow": () => (/* binding */ gridRow), -/* harmony export */ "gridRowGap": () => (/* binding */ gridRowGap), -/* harmony export */ "gridTemplateAreas": () => (/* binding */ gridTemplateAreas), -/* harmony export */ "gridTemplateColumns": () => (/* binding */ gridTemplateColumns), -/* harmony export */ "gridTemplateRows": () => (/* binding */ gridTemplateRows) -/* harmony export */ }); -/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@material-ui/system/esm/style.js"); -/* harmony import */ var _compose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/system/esm/compose.js"); - - -var gridGap = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'gridGap' -}); -var gridColumnGap = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'gridColumnGap' -}); -var gridRowGap = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'gridRowGap' -}); -var gridColumn = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'gridColumn' -}); -var gridRow = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'gridRow' -}); -var gridAutoFlow = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'gridAutoFlow' -}); -var gridAutoColumns = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'gridAutoColumns' -}); -var gridAutoRows = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'gridAutoRows' -}); -var gridTemplateColumns = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'gridTemplateColumns' -}); -var gridTemplateRows = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'gridTemplateRows' -}); -var gridTemplateAreas = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'gridTemplateAreas' -}); -var gridArea = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'gridArea' -}); -var grid = (0,_compose__WEBPACK_IMPORTED_MODULE_1__["default"])(gridGap, gridColumnGap, gridRowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (grid); - -/***/ }), - -/***/ "./node_modules/@material-ui/system/esm/memoize.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ memoize) -/* harmony export */ }); -function memoize(fn) { - var cache = {}; - return function (arg) { - if (cache[arg] === undefined) { - cache[arg] = fn(arg); - } - - return cache[arg]; - }; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/system/esm/merge.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@material-ui/utils/esm/deepmerge.js"); - - -function merge(acc, item) { - if (!item) { - return acc; - } - - return (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_0__["default"])(acc, item, { - clone: false // No need to clone deep, it's way faster. - - }); -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (merge); - -/***/ }), - -/***/ "./node_modules/@material-ui/system/esm/palette.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "bgcolor": () => (/* binding */ bgcolor), -/* harmony export */ "color": () => (/* binding */ color), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@material-ui/system/esm/style.js"); -/* harmony import */ var _compose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/system/esm/compose.js"); - - -var color = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'color', - themeKey: 'palette' -}); -var bgcolor = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'bgcolor', - cssProperty: 'backgroundColor', - themeKey: 'palette' -}); -var palette = (0,_compose__WEBPACK_IMPORTED_MODULE_1__["default"])(color, bgcolor); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (palette); - -/***/ }), - -/***/ "./node_modules/@material-ui/system/esm/positions.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "bottom": () => (/* binding */ bottom), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "left": () => (/* binding */ left), -/* harmony export */ "position": () => (/* binding */ position), -/* harmony export */ "right": () => (/* binding */ right), -/* harmony export */ "top": () => (/* binding */ top), -/* harmony export */ "zIndex": () => (/* binding */ zIndex) -/* harmony export */ }); -/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@material-ui/system/esm/style.js"); -/* harmony import */ var _compose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/system/esm/compose.js"); - - -var position = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'position' -}); -var zIndex = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'zIndex', - themeKey: 'zIndex' -}); -var top = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'top' -}); -var right = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'right' -}); -var bottom = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'bottom' -}); -var left = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'left' -}); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_compose__WEBPACK_IMPORTED_MODULE_1__["default"])(position, zIndex, top, right, bottom, left)); - -/***/ }), - -/***/ "./node_modules/@material-ui/system/esm/responsivePropType.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__); - -var responsivePropType = true ? prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)]) : 0; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (responsivePropType); - -/***/ }), - -/***/ "./node_modules/@material-ui/system/esm/shadows.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@material-ui/system/esm/style.js"); - -var boxShadow = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'boxShadow', - themeKey: 'shadows' -}); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (boxShadow); - -/***/ }), - -/***/ "./node_modules/@material-ui/system/esm/sizing.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "boxSizing": () => (/* binding */ boxSizing), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "height": () => (/* binding */ height), -/* harmony export */ "maxHeight": () => (/* binding */ maxHeight), -/* harmony export */ "maxWidth": () => (/* binding */ maxWidth), -/* harmony export */ "minHeight": () => (/* binding */ minHeight), -/* harmony export */ "minWidth": () => (/* binding */ minWidth), -/* harmony export */ "sizeHeight": () => (/* binding */ sizeHeight), -/* harmony export */ "sizeWidth": () => (/* binding */ sizeWidth), -/* harmony export */ "width": () => (/* binding */ width) -/* harmony export */ }); -/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@material-ui/system/esm/style.js"); -/* harmony import */ var _compose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/system/esm/compose.js"); - - - -function transform(value) { - return value <= 1 ? "".concat(value * 100, "%") : value; -} - -var width = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'width', - transform: transform -}); -var maxWidth = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'maxWidth', - transform: transform -}); -var minWidth = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'minWidth', - transform: transform -}); -var height = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'height', - transform: transform -}); -var maxHeight = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'maxHeight', - transform: transform -}); -var minHeight = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'minHeight', - transform: transform -}); -var sizeWidth = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'size', - cssProperty: 'width', - transform: transform -}); -var sizeHeight = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'size', - cssProperty: 'height', - transform: transform -}); -var boxSizing = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'boxSizing' -}); -var sizing = (0,_compose__WEBPACK_IMPORTED_MODULE_1__["default"])(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (sizing); - -/***/ }), - -/***/ "./node_modules/@material-ui/system/esm/spacing.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "createUnarySpacing": () => (/* binding */ createUnarySpacing), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"); -/* harmony import */ var _responsivePropType__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/system/esm/responsivePropType.js"); -/* harmony import */ var _breakpoints__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@material-ui/system/esm/breakpoints.js"); -/* harmony import */ var _merge__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@material-ui/system/esm/merge.js"); -/* harmony import */ var _memoize__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/system/esm/memoize.js"); - - - - - -var properties = { - m: 'margin', - p: 'padding' -}; -var directions = { - t: 'Top', - r: 'Right', - b: 'Bottom', - l: 'Left', - x: ['Left', 'Right'], - y: ['Top', 'Bottom'] -}; -var aliases = { - marginX: 'mx', - marginY: 'my', - paddingX: 'px', - paddingY: 'py' -}; // memoize() impact: -// From 300,000 ops/sec -// To 350,000 ops/sec - -var getCssProperties = (0,_memoize__WEBPACK_IMPORTED_MODULE_1__["default"])(function (prop) { - // It's not a shorthand notation. - if (prop.length > 2) { - if (aliases[prop]) { - prop = aliases[prop]; - } else { - return [prop]; - } - } - - var _prop$split = prop.split(''), - _prop$split2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_prop$split, 2), - a = _prop$split2[0], - b = _prop$split2[1]; - - var property = properties[a]; - var direction = directions[b] || ''; - return Array.isArray(direction) ? direction.map(function (dir) { - return property + dir; - }) : [property + direction]; -}); -var spacingKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY']; -function createUnarySpacing(theme) { - var themeSpacing = theme.spacing || 8; - - if (typeof themeSpacing === 'number') { - return function (abs) { - if (true) { - if (typeof abs !== 'number') { - console.error("Material-UI: Expected spacing argument to be a number, got ".concat(abs, ".")); - } - } - - return themeSpacing * abs; - }; - } - - if (Array.isArray(themeSpacing)) { - return function (abs) { - if (true) { - if (abs > themeSpacing.length - 1) { - console.error(["Material-UI: The value provided (".concat(abs, ") overflows."), "The supported values are: ".concat(JSON.stringify(themeSpacing), "."), "".concat(abs, " > ").concat(themeSpacing.length - 1, ", you need to add the missing values.")].join('\n')); - } - } - - return themeSpacing[abs]; - }; - } - - if (typeof themeSpacing === 'function') { - return themeSpacing; - } - - if (true) { - console.error(["Material-UI: The `theme.spacing` value (".concat(themeSpacing, ") is invalid."), 'It should be a number, an array or a function.'].join('\n')); - } - - return function () { - return undefined; - }; -} - -function getValue(transformer, propValue) { - if (typeof propValue === 'string' || propValue == null) { - return propValue; - } - - var abs = Math.abs(propValue); - var transformed = transformer(abs); - - if (propValue >= 0) { - return transformed; - } - - if (typeof transformed === 'number') { - return -transformed; - } - - return "-".concat(transformed); -} - -function getStyleFromPropValue(cssProperties, transformer) { - return function (propValue) { - return cssProperties.reduce(function (acc, cssProperty) { - acc[cssProperty] = getValue(transformer, propValue); - return acc; - }, {}); - }; -} - -function spacing(props) { - var theme = props.theme; - var transformer = createUnarySpacing(theme); - return Object.keys(props).map(function (prop) { - // Using a hash computation over an array iteration could be faster, but with only 28 items, - // it's doesn't worth the bundle size. - if (spacingKeys.indexOf(prop) === -1) { - return null; - } - - var cssProperties = getCssProperties(prop); - var styleFromPropValue = getStyleFromPropValue(cssProperties, transformer); - var propValue = props[prop]; - return (0,_breakpoints__WEBPACK_IMPORTED_MODULE_2__.handleBreakpoints)(props, propValue, styleFromPropValue); - }).reduce(_merge__WEBPACK_IMPORTED_MODULE_3__["default"], {}); -} - -spacing.propTypes = true ? spacingKeys.reduce(function (obj, key) { - obj[key] = _responsivePropType__WEBPACK_IMPORTED_MODULE_4__["default"]; - return obj; -}, {}) : 0; -spacing.filterProps = spacingKeys; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (spacing); - -/***/ }), - -/***/ "./node_modules/@material-ui/system/esm/style.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"); -/* harmony import */ var _responsivePropType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@material-ui/system/esm/responsivePropType.js"); -/* harmony import */ var _breakpoints__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/system/esm/breakpoints.js"); - - - - -function getPath(obj, path) { - if (!path || typeof path !== 'string') { - return null; - } - - return path.split('.').reduce(function (acc, item) { - return acc && acc[item] ? acc[item] : null; - }, obj); -} - -function style(options) { - var prop = options.prop, - _options$cssProperty = options.cssProperty, - cssProperty = _options$cssProperty === void 0 ? options.prop : _options$cssProperty, - themeKey = options.themeKey, - transform = options.transform; - - var fn = function fn(props) { - if (props[prop] == null) { - return null; - } - - var propValue = props[prop]; - var theme = props.theme; - var themeMapping = getPath(theme, themeKey) || {}; - - var styleFromPropValue = function styleFromPropValue(propValueFinal) { - var value; - - if (typeof themeMapping === 'function') { - value = themeMapping(propValueFinal); - } else if (Array.isArray(themeMapping)) { - value = themeMapping[propValueFinal] || propValueFinal; - } else { - value = getPath(themeMapping, propValueFinal) || propValueFinal; - - if (transform) { - value = transform(value); - } - } - - if (cssProperty === false) { - return value; - } - - return (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])({}, cssProperty, value); - }; - - return (0,_breakpoints__WEBPACK_IMPORTED_MODULE_1__.handleBreakpoints)(props, propValue, styleFromPropValue); - }; - - fn.propTypes = true ? (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])({}, prop, _responsivePropType__WEBPACK_IMPORTED_MODULE_2__["default"]) : 0; - fn.filterProps = [prop]; - return fn; -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (style); - -/***/ }), - -/***/ "./node_modules/@material-ui/system/esm/styleFunctionSx.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "css": () => (/* binding */ css), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@material-ui/utils/esm/chainPropTypes.js"); -/* harmony import */ var _merge__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@material-ui/system/esm/merge.js"); - - - - - - -function omit(input, fields) { - var output = {}; - Object.keys(input).forEach(function (prop) { - if (fields.indexOf(prop) === -1) { - output[prop] = input[prop]; - } - }); - return output; -} - -var warnedOnce = false; - -function styleFunctionSx(styleFunction) { - var newStyleFunction = function newStyleFunction(props) { - var output = styleFunction(props); - - if (props.css) { - return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, (0,_merge__WEBPACK_IMPORTED_MODULE_2__["default"])(output, styleFunction((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - theme: props.theme - }, props.css))), omit(props.css, [styleFunction.filterProps])); - } - - if (props.sx) { - return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, (0,_merge__WEBPACK_IMPORTED_MODULE_2__["default"])(output, styleFunction((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - theme: props.theme - }, props.sx))), omit(props.sx, [styleFunction.filterProps])); - } - - return output; - }; - - newStyleFunction.propTypes = true ? (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, styleFunction.propTypes, { - css: (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_3__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_4___default().object), function (props) { - if (!warnedOnce && props.css !== undefined) { - warnedOnce = true; - return new Error('Material-UI: The `css` prop is deprecated, please use the `sx` prop instead.'); - } - - return null; - }), - sx: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().object) - }) : 0; - newStyleFunction.filterProps = ['css', 'sx'].concat((0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(styleFunction.filterProps)); - return newStyleFunction; -} -/** - * - * @deprecated - * The css style function is deprecated. Use the `styleFunctionSx` instead. - */ - - -function css(styleFunction) { - if (true) { - console.warn('Material-UI: The `css` function is deprecated. Use the `styleFunctionSx` instead.'); - } - - return styleFunctionSx(styleFunction); -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (styleFunctionSx); - -/***/ }), - -/***/ "./node_modules/@material-ui/system/esm/typography.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "fontFamily": () => (/* binding */ fontFamily), -/* harmony export */ "fontSize": () => (/* binding */ fontSize), -/* harmony export */ "fontStyle": () => (/* binding */ fontStyle), -/* harmony export */ "fontWeight": () => (/* binding */ fontWeight), -/* harmony export */ "letterSpacing": () => (/* binding */ letterSpacing), -/* harmony export */ "lineHeight": () => (/* binding */ lineHeight), -/* harmony export */ "textAlign": () => (/* binding */ textAlign) -/* harmony export */ }); -/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@material-ui/system/esm/style.js"); -/* harmony import */ var _compose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/system/esm/compose.js"); - - -var fontFamily = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'fontFamily', - themeKey: 'typography' -}); -var fontSize = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'fontSize', - themeKey: 'typography' -}); -var fontStyle = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'fontStyle', - themeKey: 'typography' -}); -var fontWeight = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'fontWeight', - themeKey: 'typography' -}); -var letterSpacing = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'letterSpacing' -}); -var lineHeight = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'lineHeight' -}); -var textAlign = (0,_style__WEBPACK_IMPORTED_MODULE_0__["default"])({ - prop: 'textAlign' -}); -var typography = (0,_compose__WEBPACK_IMPORTED_MODULE_1__["default"])(fontFamily, fontSize, fontStyle, fontWeight, letterSpacing, lineHeight, textAlign); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (typography); - -/***/ }), - -/***/ "./node_modules/@material-ui/utils/esm/HTMLElementType.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ HTMLElementType) -/* harmony export */ }); -function HTMLElementType(props, propName, componentName, location, propFullName) { - if (false) {} - - var propValue = props[propName]; - var safePropName = propFullName || propName; - - if (propValue == null) { - return null; - } - - if (propValue && propValue.nodeType !== 1) { - return new Error("Invalid ".concat(location, " `").concat(safePropName, "` supplied to `").concat(componentName, "`. ") + "Expected an HTMLElement."); - } - - return null; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/utils/esm/chainPropTypes.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ chainPropTypes) -/* harmony export */ }); -function chainPropTypes(propType1, propType2) { - if (false) {} - - return function validate() { - return propType1.apply(void 0, arguments) || propType2.apply(void 0, arguments); - }; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/utils/esm/deepmerge.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ deepmerge), -/* harmony export */ "isPlainObject": () => (/* binding */ isPlainObject) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/typeof.js"); - - -function isPlainObject(item) { - return item && (0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_1__["default"])(item) === 'object' && item.constructor === Object; -} -function deepmerge(target, source) { - var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : { - clone: true - }; - var output = options.clone ? (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, target) : target; - - if (isPlainObject(target) && isPlainObject(source)) { - Object.keys(source).forEach(function (key) { - // Avoid prototype pollution - if (key === '__proto__') { - return; - } - - if (isPlainObject(source[key]) && key in target) { - output[key] = deepmerge(target[key], source[key], options); - } else { - output[key] = source[key]; - } - }); - } - - return output; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/utils/esm/elementAcceptingRef.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _chainPropTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@material-ui/utils/esm/chainPropTypes.js"); - - - -function isClassComponent(elementType) { - // elementType.prototype?.isReactComponent - var _elementType$prototyp = elementType.prototype, - prototype = _elementType$prototyp === void 0 ? {} : _elementType$prototyp; - return Boolean(prototype.isReactComponent); -} - -function acceptingRef(props, propName, componentName, location, propFullName) { - var element = props[propName]; - var safePropName = propFullName || propName; - - if (element == null) { - return null; - } - - var warningHint; - var elementType = element.type; - /** - * Blacklisting instead of whitelisting - * - * Blacklisting will miss some components, such as React.Fragment. Those will at least - * trigger a warning in React. - * We can't whitelist because there is no safe way to detect React.forwardRef - * or class components. "Safe" means there's no public API. - * - */ - - if (typeof elementType === 'function' && !isClassComponent(elementType)) { - warningHint = 'Did you accidentally use a plain function component for an element instead?'; - } - - if (warningHint !== undefined) { - return new Error("Invalid ".concat(location, " `").concat(safePropName, "` supplied to `").concat(componentName, "`. ") + "Expected an element that can hold a ref. ".concat(warningHint, " ") + 'For more information see https://mui.com/r/caveat-with-refs-guide'); - } - - return null; -} - -var elementAcceptingRef = (0,_chainPropTypes__WEBPACK_IMPORTED_MODULE_0__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_1___default().element), acceptingRef); -elementAcceptingRef.isRequired = (0,_chainPropTypes__WEBPACK_IMPORTED_MODULE_0__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_1___default().element.isRequired), acceptingRef); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (elementAcceptingRef); - -/***/ }), - -/***/ "./node_modules/@material-ui/utils/esm/elementTypeAcceptingRef.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _chainPropTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@material-ui/utils/esm/chainPropTypes.js"); - - - -function isClassComponent(elementType) { - // elementType.prototype?.isReactComponent - var _elementType$prototyp = elementType.prototype, - prototype = _elementType$prototyp === void 0 ? {} : _elementType$prototyp; - return Boolean(prototype.isReactComponent); -} - -function elementTypeAcceptingRef(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - var safePropName = propFullName || propName; - - if (propValue == null) { - return null; - } - - var warningHint; - /** - * Blacklisting instead of whitelisting - * - * Blacklisting will miss some components, such as React.Fragment. Those will at least - * trigger a warning in React. - * We can't whitelist because there is no safe way to detect React.forwardRef - * or class components. "Safe" means there's no public API. - * - */ - - if (typeof propValue === 'function' && !isClassComponent(propValue)) { - warningHint = 'Did you accidentally provide a plain function component instead?'; - } - - if (warningHint !== undefined) { - return new Error("Invalid ".concat(location, " `").concat(safePropName, "` supplied to `").concat(componentName, "`. ") + "Expected an element type that can hold a ref. ".concat(warningHint, " ") + 'For more information see https://mui.com/r/caveat-with-refs-guide'); - } - - return null; -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_chainPropTypes__WEBPACK_IMPORTED_MODULE_0__["default"])(prop_types__WEBPACK_IMPORTED_MODULE_1__.elementType, elementTypeAcceptingRef)); - -/***/ }), - -/***/ "./node_modules/@material-ui/utils/esm/exactProp.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ exactProp), -/* harmony export */ "specialProperty": () => (/* binding */ specialProperty) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"); - - -// This module is based on https://github.com/airbnb/prop-types-exact repository. -// However, in order to reduce the number of dependencies and to remove some extra safe checks -// the module was forked. -// Only exported for test purposes. -var specialProperty = "exact-prop: \u200B"; -function exactProp(propTypes) { - if (false) {} - - return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, propTypes, (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])({}, specialProperty, function (props) { - var unsupportedProps = Object.keys(props).filter(function (prop) { - return !propTypes.hasOwnProperty(prop); - }); - - if (unsupportedProps.length > 0) { - return new Error("The following props are not supported: ".concat(unsupportedProps.map(function (prop) { - return "`".concat(prop, "`"); - }).join(', '), ". Please remove them.")); - } - - return null; - })); -} - -/***/ }), - -/***/ "./node_modules/@material-ui/utils/esm/getDisplayName.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ getDisplayName), -/* harmony export */ "getFunctionName": () => (/* binding */ getFunctionName) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/typeof.js"); -/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/react-is/index.js"); - - // Simplified polyfill for IE 11 support -// https://github.com/JamesMGreene/Function.name/blob/58b314d4a983110c3682f1228f845d39ccca1817/Function.name.js#L3 - -var fnNameMatchRegex = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/; -function getFunctionName(fn) { - var match = "".concat(fn).match(fnNameMatchRegex); - var name = match && match[1]; - return name || ''; -} -/** - * @param {function} Component - * @param {string} fallback - * @returns {string | undefined} - */ - -function getFunctionComponentName(Component) { - var fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; - return Component.displayName || Component.name || getFunctionName(Component) || fallback; -} - -function getWrappedName(outerType, innerType, wrapperName) { - var functionName = getFunctionComponentName(innerType); - return outerType.displayName || (functionName !== '' ? "".concat(wrapperName, "(").concat(functionName, ")") : wrapperName); -} -/** - * cherry-pick from - * https://github.com/facebook/react/blob/769b1f270e1251d9dbdce0fcbd9e92e502d059b8/packages/shared/getComponentName.js - * originally forked from recompose/getDisplayName with added IE 11 support - * - * @param {React.ReactType} Component - * @returns {string | undefined} - */ - - -function getDisplayName(Component) { - if (Component == null) { - return undefined; - } - - if (typeof Component === 'string') { - return Component; - } - - if (typeof Component === 'function') { - return getFunctionComponentName(Component, 'Component'); - } - - if ((0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__["default"])(Component) === 'object') { - switch (Component.$$typeof) { - case react_is__WEBPACK_IMPORTED_MODULE_1__.ForwardRef: - return getWrappedName(Component, Component.render, 'ForwardRef'); - - case react_is__WEBPACK_IMPORTED_MODULE_1__.Memo: - return getWrappedName(Component, Component.type, 'memo'); - - default: - return undefined; - } - } - - return undefined; -} - -/***/ }), - -/***/ "./node_modules/@material-ui/utils/esm/refType.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__); - -var refType = prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (refType); - -/***/ }), - -/***/ "./node_modules/@mui/x-data-grid/dist/index-esm.js": -/***/ ((module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "DEFAULT_GRID_COL_TYPE_KEY": () => (/* binding */ pl), -/* harmony export */ "DEFAULT_GRID_OPTIONS": () => (/* binding */ jr), -/* harmony export */ "DEFAULT_GRID_PROPS_FROM_OPTIONS": () => (/* binding */ Lr), -/* harmony export */ "DEFAULT_GRID_SLOTS_COMPONENTS": () => (/* binding */ rs), -/* harmony export */ "DataGrid": () => (/* binding */ As), -/* harmony export */ "GRID_BOOLEAN_COLUMN_TYPE": () => (/* binding */ Cl), -/* harmony export */ "GRID_CELL_CSS_CLASS": () => (/* binding */ sa), -/* harmony export */ "GRID_CELL_CSS_CLASS_SUFFIX": () => (/* binding */ la), -/* harmony export */ "GRID_COLUMN_HEADER_CSS_CLASS": () => (/* binding */ aa), -/* harmony export */ "GRID_COLUMN_HEADER_CSS_CLASS_SUFFIX": () => (/* binding */ oa), -/* harmony export */ "GRID_COLUMN_HEADER_DRAGGING_CSS_CLASS": () => (/* binding */ pa), -/* harmony export */ "GRID_COLUMN_HEADER_DROP_ZONE_CSS_CLASS": () => (/* binding */ da), -/* harmony export */ "GRID_COLUMN_HEADER_SEPARATOR_RESIZABLE_CSS_CLASS": () => (/* binding */ ca), -/* harmony export */ "GRID_COLUMN_HEADER_TITLE_CSS_CLASS": () => (/* binding */ ua), -/* harmony export */ "GRID_CSS_CLASS_PREFIX": () => (/* binding */ ta), -/* harmony export */ "GRID_DATETIME_COLUMN_TYPE": () => (/* binding */ vl), -/* harmony export */ "GRID_DATETIME_COL_DEF": () => (/* binding */ nl), -/* harmony export */ "GRID_DATE_COLUMN_TYPE": () => (/* binding */ hl), -/* harmony export */ "GRID_DATE_COL_DEF": () => (/* binding */ ol), -/* harmony export */ "GRID_DEFAULT_LOCALE_TEXT": () => (/* binding */ Mr), -/* harmony export */ "GRID_EXPERIMENTAL_ENABLED": () => (/* binding */ Ua), -/* harmony export */ "GRID_NUMBER_COLUMN_TYPE": () => (/* binding */ bl), -/* harmony export */ "GRID_NUMERIC_COL_DEF": () => (/* binding */ Zn), -/* harmony export */ "GRID_ROOT_CSS_CLASS_SUFFIX": () => (/* binding */ ra), -/* harmony export */ "GRID_ROW_CSS_CLASS": () => (/* binding */ ia), -/* harmony export */ "GRID_ROW_CSS_CLASS_SUFFIX": () => (/* binding */ na), -/* harmony export */ "GRID_STRING_COLUMN_TYPE": () => (/* binding */ gl), -/* harmony export */ "GRID_STRING_COL_DEF": () => (/* binding */ Nn), -/* harmony export */ "GridAddIcon": () => (/* binding */ jn), -/* harmony export */ "GridApiContext": () => (/* binding */ le), -/* harmony export */ "GridArrowDownwardIcon": () => (/* binding */ Cn), -/* harmony export */ "GridArrowUpwardIcon": () => (/* binding */ vn), -/* harmony export */ "GridAutoSizer": () => (/* binding */ Xl), -/* harmony export */ "GridBody": () => (/* binding */ wa), -/* harmony export */ "GridCell": () => (/* binding */ ga), -/* harmony export */ "GridCellCheckboxForwardRef": () => (/* binding */ en), -/* harmony export */ "GridCellCheckboxRenderer": () => (/* binding */ tn), -/* harmony export */ "GridCellModes": () => (/* binding */ al), -/* harmony export */ "GridCheckCircleIcon": () => (/* binding */ Sn), -/* harmony export */ "GridCheckIcon": () => (/* binding */ Tn), -/* harmony export */ "GridCloseIcon": () => (/* binding */ Ln), -/* harmony export */ "GridColumnHeaderItem": () => (/* binding */ Al), -/* harmony export */ "GridColumnHeaderMenu": () => (/* binding */ Hl), -/* harmony export */ "GridColumnHeaderSeparator": () => (/* binding */ Ml), -/* harmony export */ "GridColumnHeaderSortIcon": () => (/* binding */ wl), -/* harmony export */ "GridColumnHeaderTitle": () => (/* binding */ kl), -/* harmony export */ "GridColumnHeadersItemCollection": () => (/* binding */ $l), -/* harmony export */ "GridColumnIcon": () => (/* binding */ xn), -/* harmony export */ "GridColumnMenu": () => (/* binding */ za), -/* harmony export */ "GridColumnMenuContainer": () => (/* binding */ ja), -/* harmony export */ "GridColumnsContainer": () => (/* binding */ Kl), -/* harmony export */ "GridColumnsHeader": () => (/* binding */ Ul), -/* harmony export */ "GridColumnsMenuItem": () => (/* binding */ Ia), -/* harmony export */ "GridColumnsPanel": () => (/* binding */ Za), -/* harmony export */ "GridDataContainer": () => (/* binding */ Ql), -/* harmony export */ "GridDensityTypes": () => (/* binding */ Pr), -/* harmony export */ "GridDragIcon": () => (/* binding */ Dn), -/* harmony export */ "GridEditInputCell": () => (/* binding */ dn), -/* harmony export */ "GridEditModes": () => (/* binding */ ll), -/* harmony export */ "GridEditSingleSelectCell": () => (/* binding */ cl), -/* harmony export */ "GridEmptyCell": () => (/* binding */ Zr), -/* harmony export */ "GridErrorHandler": () => (/* binding */ ya), -/* harmony export */ "GridEvents": () => (/* binding */ ne), -/* harmony export */ "GridFeatureModeConstant": () => (/* binding */ Ir), -/* harmony export */ "GridFilterAltIcon": () => (/* binding */ On), -/* harmony export */ "GridFilterForm": () => (/* binding */ ei), -/* harmony export */ "GridFilterInputValue": () => (/* binding */ $n), -/* harmony export */ "GridFilterListIcon": () => (/* binding */ wn), -/* harmony export */ "GridFilterMenuItem": () => (/* binding */ La), -/* harmony export */ "GridFilterPanel": () => (/* binding */ ti), -/* harmony export */ "GridFooter": () => (/* binding */ ui), -/* harmony export */ "GridFooterContainer": () => (/* binding */ ka), -/* harmony export */ "GridFooterPlaceholder": () => (/* binding */ Ea), -/* harmony export */ "GridHeader": () => (/* binding */ di), -/* harmony export */ "GridHeaderCheckbox": () => (/* binding */ cn), -/* harmony export */ "GridHeaderPlaceholder": () => (/* binding */ Sa), -/* harmony export */ "GridLinkOperator": () => (/* binding */ zr), -/* harmony export */ "GridLoadIcon": () => (/* binding */ Fn), -/* harmony export */ "GridLoadingOverlay": () => (/* binding */ pi), -/* harmony export */ "GridMenu": () => (/* binding */ Tl), -/* harmony export */ "GridMenuIcon": () => (/* binding */ En), -/* harmony export */ "GridNoRowsOverlay": () => (/* binding */ mi), -/* harmony export */ "GridOverlay": () => (/* binding */ Ma), -/* harmony export */ "GridOverlays": () => (/* binding */ Ca), -/* harmony export */ "GridPagination": () => (/* binding */ gi), -/* harmony export */ "GridPanel": () => (/* binding */ Xa), -/* harmony export */ "GridPanelContent": () => (/* binding */ Ha), -/* harmony export */ "GridPanelFooter": () => (/* binding */ $a), -/* harmony export */ "GridPanelHeader": () => (/* binding */ Na), -/* harmony export */ "GridPanelWrapper": () => (/* binding */ Wa), -/* harmony export */ "GridPreferencePanelsValue": () => (/* binding */ jl), -/* harmony export */ "GridPreferencesPanel": () => (/* binding */ Ja), -/* harmony export */ "GridRenderingZone": () => (/* binding */ ea), -/* harmony export */ "GridRoot": () => (/* binding */ Ra), -/* harmony export */ "GridRow": () => (/* binding */ ma), -/* harmony export */ "GridRowCells": () => (/* binding */ ba), -/* harmony export */ "GridRowCount": () => (/* binding */ si), -/* harmony export */ "GridRowModes": () => (/* binding */ il), -/* harmony export */ "GridSaveAltIcon": () => (/* binding */ zn), -/* harmony export */ "GridScrollArea": () => (/* binding */ Qr), -/* harmony export */ "GridSearchIcon": () => (/* binding */ yn), -/* harmony export */ "GridSelectedRowCount": () => (/* binding */ ci), -/* harmony export */ "GridSeparatorIcon": () => (/* binding */ Rn), -/* harmony export */ "GridStickyContainer": () => (/* binding */ ha), -/* harmony export */ "GridTableRowsIcon": () => (/* binding */ Mn), -/* harmony export */ "GridToolbar": () => (/* binding */ ii), -/* harmony export */ "GridToolbarColumnsButton": () => (/* binding */ ri), -/* harmony export */ "GridToolbarContainer": () => (/* binding */ Pa), -/* harmony export */ "GridToolbarDensitySelector": () => (/* binding */ oi), -/* harmony export */ "GridToolbarExport": () => (/* binding */ ai), -/* harmony export */ "GridToolbarFilterButton": () => (/* binding */ li), -/* harmony export */ "GridTripleDotsVerticalIcon": () => (/* binding */ In), -/* harmony export */ "GridViewHeadlineIcon": () => (/* binding */ kn), -/* harmony export */ "GridViewStreamIcon": () => (/* binding */ Pn), -/* harmony export */ "GridViewport": () => (/* binding */ va), -/* harmony export */ "GridWindow": () => (/* binding */ Yl), -/* harmony export */ "HideGridColMenuItem": () => (/* binding */ Fa), -/* harmony export */ "MAX_PAGE_SIZE": () => (/* binding */ zs), -/* harmony export */ "SUBMIT_FILTER_STROKE_TIME": () => (/* binding */ An), -/* harmony export */ "SortGridMenuItems": () => (/* binding */ Da), -/* harmony export */ "activeGridFilterItemsSelector": () => (/* binding */ Oo), -/* harmony export */ "allGridColumnsFieldsSelector": () => (/* binding */ se), -/* harmony export */ "allGridColumnsSelector": () => (/* binding */ ue), -/* harmony export */ "arSD": () => (/* binding */ as), -/* harmony export */ "bgBG": () => (/* binding */ is), -/* harmony export */ "checkGridRowIdIsValid": () => (/* binding */ fa), -/* harmony export */ "convertGridRowsPropToState": () => (/* binding */ _i), -/* harmony export */ "csCZ": () => (/* binding */ ss), -/* harmony export */ "deDE": () => (/* binding */ cs), -/* harmony export */ "elGR": () => (/* binding */ us), -/* harmony export */ "enUS": () => (/* binding */ ds), -/* harmony export */ "esES": () => (/* binding */ ps), -/* harmony export */ "filterGridColumnLookupSelector": () => (/* binding */ Eo), -/* harmony export */ "filterGridItemsCounterSelector": () => (/* binding */ yo), -/* harmony export */ "filterGridStateSelector": () => (/* binding */ wo), -/* harmony export */ "filterableGridColumnsIdsSelector": () => (/* binding */ fe), -/* harmony export */ "filterableGridColumnsSelector": () => (/* binding */ me), -/* harmony export */ "frFR": () => (/* binding */ ms), -/* harmony export */ "getGridColDef": () => (/* binding */ fl), -/* harmony export */ "getGridDateOperators": () => (/* binding */ Jn), -/* harmony export */ "getGridDefaultColumnTypes": () => (/* binding */ ml), -/* harmony export */ "getGridNumericColumnOperators": () => (/* binding */ Kn), -/* harmony export */ "getGridStringOperators": () => (/* binding */ _n), -/* harmony export */ "getInitialGridColumnReorderState": () => (/* binding */ Fr), -/* harmony export */ "getInitialGridColumnResizeState": () => (/* binding */ Dr), -/* harmony export */ "getInitialGridColumnsState": () => (/* binding */ kr), -/* harmony export */ "getInitialGridFilterState": () => (/* binding */ Tr), -/* harmony export */ "getInitialGridRenderingState": () => (/* binding */ _r), -/* harmony export */ "getInitialGridRowState": () => (/* binding */ Ar), -/* harmony export */ "getInitialGridSortingState": () => (/* binding */ $r), -/* harmony export */ "getInitialGridState": () => (/* binding */ Nr), -/* harmony export */ "getInitialVisibleGridRowsState": () => (/* binding */ Hr), -/* harmony export */ "gridCheckboxSelectionColDef": () => (/* binding */ Un), -/* harmony export */ "gridClasses": () => (/* binding */ Kr), -/* harmony export */ "gridColumnLookupSelector": () => (/* binding */ ce), -/* harmony export */ "gridColumnMenuStateSelector": () => (/* binding */ Do), -/* harmony export */ "gridColumnReorderDragColSelector": () => (/* binding */ to), -/* harmony export */ "gridColumnReorderSelector": () => (/* binding */ eo), -/* harmony export */ "gridColumnResizeSelector": () => (/* binding */ ro), -/* harmony export */ "gridColumnsMetaSelector": () => (/* binding */ pe), -/* harmony export */ "gridColumnsSelector": () => (/* binding */ ie), -/* harmony export */ "gridColumnsTotalWidthSelector": () => (/* binding */ be), -/* harmony export */ "gridDateFormatter": () => (/* binding */ tl), -/* harmony export */ "gridDateTimeFormatter": () => (/* binding */ rl), -/* harmony export */ "gridEditRowsStateSelector": () => (/* binding */ Jl), -/* harmony export */ "gridFocusCellSelector": () => (/* binding */ xo), -/* harmony export */ "gridFocusColumnHeaderSelector": () => (/* binding */ Ro), -/* harmony export */ "gridFocusStateSelector": () => (/* binding */ So), -/* harmony export */ "gridPaginatedVisibleSortedGridRowIdsSelector": () => (/* binding */ on), -/* harmony export */ "gridPaginationSelector": () => (/* binding */ rn), -/* harmony export */ "gridPanelClasses": () => (/* binding */ qa), -/* harmony export */ "gridPreferencePanelStateSelector": () => (/* binding */ Il), -/* harmony export */ "gridResizingColumnFieldSelector": () => (/* binding */ oo), -/* harmony export */ "gridRowCountSelector": () => (/* binding */ lo), -/* harmony export */ "gridRowsLookupSelector": () => (/* binding */ ao), -/* harmony export */ "gridRowsStateSelector": () => (/* binding */ no), -/* harmony export */ "gridScrollbarStateSelector": () => (/* binding */ Gl), -/* harmony export */ "gridSelectionStateSelector": () => (/* binding */ nn), -/* harmony export */ "gridSortColumnLookupSelector": () => (/* binding */ fo), -/* harmony export */ "gridSortModelSelector": () => (/* binding */ mo), -/* harmony export */ "gridTabIndexCellSelector": () => (/* binding */ Mo), -/* harmony export */ "gridTabIndexColumnHeaderSelector": () => (/* binding */ Po), -/* harmony export */ "gridTabIndexStateSelector": () => (/* binding */ ko), -/* harmony export */ "gridViewportSizeStateSelector": () => (/* binding */ Ll), -/* harmony export */ "itIT": () => (/* binding */ fs), -/* harmony export */ "jaJP": () => (/* binding */ gs), -/* harmony export */ "nlNL": () => (/* binding */ bs), -/* harmony export */ "plPL": () => (/* binding */ vs), -/* harmony export */ "plPLGrid": () => (/* binding */ hs), -/* harmony export */ "ptBR": () => (/* binding */ Cs), -/* harmony export */ "renderEditInputCell": () => (/* binding */ pn), -/* harmony export */ "renderEditSingleSelectCell": () => (/* binding */ ul), -/* harmony export */ "ruRU": () => (/* binding */ Os), -/* harmony export */ "ruRUGrid": () => (/* binding */ ws), -/* harmony export */ "selectedGridRowsCountSelector": () => (/* binding */ ln), -/* harmony export */ "selectedGridRowsSelector": () => (/* binding */ an), -/* harmony export */ "selectedIdsLookupSelector": () => (/* binding */ sn), -/* harmony export */ "skSK": () => (/* binding */ Es), -/* harmony export */ "skSKGrid": () => (/* binding */ ys), -/* harmony export */ "sortedGridRowIdsSelector": () => (/* binding */ uo), -/* harmony export */ "sortedGridRowsSelector": () => (/* binding */ po), -/* harmony export */ "trTR": () => (/* binding */ Ss), -/* harmony export */ "ukUA": () => (/* binding */ Rs), -/* harmony export */ "ukUAGrid": () => (/* binding */ xs), -/* harmony export */ "unorderedGridRowIdsSelector": () => (/* binding */ io), -/* harmony export */ "unorderedGridRowModelsSelector": () => (/* binding */ so), -/* harmony export */ "useApi": () => (/* binding */ ji), -/* harmony export */ "useDataGridComponent": () => (/* binding */ Ds), -/* harmony export */ "useGridApi": () => (/* binding */ Vr), -/* harmony export */ "useGridApiMethod": () => (/* binding */ Rr), -/* harmony export */ "useGridApiRef": () => (/* binding */ qi), -/* harmony export */ "useGridColumnMenu": () => (/* binding */ bi), -/* harmony export */ "useGridColumnReorder": () => (/* binding */ hi), -/* harmony export */ "useGridColumnResize": () => (/* binding */ Ji), -/* harmony export */ "useGridColumns": () => (/* binding */ Oi), -/* harmony export */ "useGridComponents": () => (/* binding */ os), -/* harmony export */ "useGridContainerProps": () => (/* binding */ Fi), -/* harmony export */ "useGridControlState": () => (/* binding */ yi), -/* harmony export */ "useGridEditRows": () => (/* binding */ Vi), -/* harmony export */ "useGridFilter": () => (/* binding */ Si), -/* harmony export */ "useGridFocus": () => (/* binding */ xi), -/* harmony export */ "useGridKeyboard": () => (/* binding */ Ri), -/* harmony export */ "useGridKeyboardNavigation": () => (/* binding */ ki), -/* harmony export */ "useGridLogger": () => (/* binding */ xr), -/* harmony export */ "useGridLoggerFactory": () => (/* binding */ Sr), -/* harmony export */ "useGridPage": () => (/* binding */ Li), -/* harmony export */ "useGridPageSize": () => (/* binding */ zi), -/* harmony export */ "useGridParamsApi": () => (/* binding */ Ai), -/* harmony export */ "useGridPreferencesPanel": () => (/* binding */ Ti), -/* harmony export */ "useGridReducer": () => (/* binding */ Ei), -/* harmony export */ "useGridRows": () => (/* binding */ Ni), -/* harmony export */ "useGridScroll": () => (/* binding */ Zi), -/* harmony export */ "useGridScrollFn": () => (/* binding */ Mi), -/* harmony export */ "useGridSelection": () => (/* binding */ Bi), -/* harmony export */ "useGridSelector": () => (/* binding */ Wr), -/* harmony export */ "useGridSlotComponentProps": () => (/* binding */ ns), -/* harmony export */ "useGridSorting": () => (/* binding */ Wi), -/* harmony export */ "useGridState": () => (/* binding */ Br), -/* harmony export */ "useGridVirtualization": () => (/* binding */ Ui), -/* harmony export */ "useNativeEventListener": () => (/* binding */ Di), -/* harmony export */ "visibleGridColumnsLengthSelector": () => (/* binding */ ge), -/* harmony export */ "visibleGridColumnsSelector": () => (/* binding */ de), -/* harmony export */ "visibleGridRowCountSelector": () => (/* binding */ Co), -/* harmony export */ "visibleGridRowsStateSelector": () => (/* binding */ go), -/* harmony export */ "visibleSortedGridRowIdsSelector": () => (/* binding */ vo), -/* harmony export */ "visibleSortedGridRowsAsArraySelector": () => (/* binding */ ho), -/* harmony export */ "visibleSortedGridRowsSelector": () => (/* binding */ bo) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var reselect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/reselect/es/index.js"); -/* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/index.js"); -/* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/colorManipulator.js"); -/* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/useTheme.js"); -/* harmony import */ var _material_ui_core_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useEventCallback.js"); -/* harmony import */ var _material_ui_core_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/useForkRef.js"); -/* harmony import */ var _material_ui_core_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/createSvgIcon.js"); -/* harmony import */ var _material_ui_core_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/unstable_useId.js"); -/* harmony import */ var _material_ui_core_utils__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/ownerWindow.js"); -/* harmony import */ var _material_ui_core_utils__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/capitalize.js"); -/* harmony import */ var _material_ui_core_utils__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/ownerDocument.js"); -/* harmony import */ var _material_ui_core_utils__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__("./node_modules/@material-ui/core/esm/utils/debounce.js"); -/* harmony import */ var _material_ui_styles__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("./node_modules/@material-ui/styles/esm/makeStyles/makeStyles.js"); -/* harmony import */ var _material_ui_styles__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__("./node_modules/@material-ui/styles/esm/getThemeProps/getThemeProps.js"); -/* harmony import */ var _material_ui_core_InputBase__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/InputBase/InputBase.js"); -/* harmony import */ var _material_ui_core_TextField__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/core/esm/TextField/TextField.js"); -/* harmony import */ var _material_ui_core_Checkbox__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/core/esm/Checkbox/Checkbox.js"); -/* harmony import */ var _material_ui_core_Select__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("./node_modules/@material-ui/core/esm/Select/Select.js"); -/* harmony import */ var _material_ui_core_MenuItem__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/@material-ui/core/esm/MenuItem/MenuItem.js"); -/* harmony import */ var _material_ui_core_Badge__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("./node_modules/@material-ui/core/esm/Badge/Badge.js"); -/* harmony import */ var _material_ui_core_IconButton__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("./node_modules/@material-ui/core/esm/IconButton/IconButton.js"); -/* harmony import */ var _material_ui_core_Tooltip__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("./node_modules/@material-ui/core/esm/Tooltip/Tooltip.js"); -/* harmony import */ var _material_ui_core_ClickAwayListener__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__("./node_modules/@material-ui/core/esm/ClickAwayListener/ClickAwayListener.js"); -/* harmony import */ var _material_ui_core_Grow__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__("./node_modules/@material-ui/core/esm/Grow/Grow.js"); -/* harmony import */ var _material_ui_core_Paper__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__("./node_modules/@material-ui/core/esm/Paper/Paper.js"); -/* harmony import */ var _material_ui_core_Popper__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__("./node_modules/@material-ui/core/esm/Popper/Popper.js"); -/* harmony import */ var _material_ui_core_NoSsr__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__("./node_modules/@material-ui/core/esm/NoSsr/NoSsr.js"); -/* harmony import */ var _material_ui_core_MenuList__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__("./node_modules/@material-ui/core/esm/MenuList/MenuList.js"); -/* harmony import */ var _material_ui_core_Switch__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__("./node_modules/@material-ui/core/esm/Switch/Switch.js"); -/* harmony import */ var _material_ui_core_Button__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__("./node_modules/@material-ui/core/esm/Button/Button.js"); -/* harmony import */ var _material_ui_core_FormControlLabel__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormControlLabel/FormControlLabel.js"); -/* harmony import */ var _material_ui_core_Unstable_TrapFocus__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__("./node_modules/@material-ui/core/esm/Unstable_TrapFocus/Unstable_TrapFocus.js"); -/* harmony import */ var _material_ui_core_FormControl__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormControl/FormControl.js"); -/* harmony import */ var _material_ui_core_InputLabel__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__("./node_modules/@material-ui/core/esm/InputLabel/InputLabel.js"); -/* harmony import */ var _material_ui_core_ListItemIcon__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__("./node_modules/@material-ui/core/esm/ListItemIcon/ListItemIcon.js"); -/* harmony import */ var _material_ui_core_CircularProgress__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__("./node_modules/@material-ui/core/esm/CircularProgress/CircularProgress.js"); -/* harmony import */ var _material_ui_core_TablePagination__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__("./node_modules/@material-ui/core/esm/TablePagination/TablePagination.js"); -/* harmony import */ var _material_ui_core_locale__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__("./node_modules/@material-ui/core/locale/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_41___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_41__); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__("./node_modules/@mui/x-data-grid/node_modules/@material-ui/utils/esm/chainPropTypes.js"); -/* module decorator */ module = __webpack_require__.hmd(module); -var ne;!function(e){e.resize="resize",e.debouncedResize="debouncedResize",e.componentError="componentError",e.unmount="unmount",e.cellModeChange="cellModeChange",e.cellClick="cellClick",e.cellDoubleClick="cellDoubleClick",e.cellMouseDown="cellMouseDown",e.cellMouseUp="cellMouseUp",e.cellOver="cellOver",e.cellOut="cellOut",e.cellEnter="cellEnter",e.cellLeave="cellLeave",e.cellKeyDown="cellKeyDown",e.cellBlur="cellBlur",e.cellFocus="cellFocus",e.cellFocusIn="cellFocusIn",e.cellFocusOut="cellFocusOut",e.cellDragStart="cellDragStart",e.cellDragEnter="cellDragEnter",e.cellDragOver="cellDragOver",e.cellDragEnd="cellDragEnd",e.editCellPropsChange="editCellPropsChange",e.cellEditCommit="cellEditCommit",e.cellEditStart="cellEditStart",e.cellEditStop="cellEditStop",e.rowEditStart="rowEditStart",e.rowEditStop="rowEditStop",e.rowEditCommit="rowEditCommit",e.cellNavigationKeyDown="cellNavigationKeyDown",e.rowClick="rowClick",e.rowDoubleClick="rowDoubleClick",e.rowOver="rowOver",e.rowOut="rowOut",e.rowEnter="rowEnter",e.rowLeave="rowLeave",e.editRowsModelChange="editRowsModelChange",e.columnHeaderBlur="columnHeaderBlur",e.columnHeaderFocus="columnHeaderFocus",e.columnHeaderNavigationKeyDown="columnHeaderNavigationKeyDown",e.columnHeaderKeyDown="columnHeaderKeyDown",e.columnHeaderClick="columnHeaderClick",e.columnHeaderDoubleClick="columnHeaderDoubleClick",e.columnHeaderOver="columnHeaderOver",e.columnHeaderOut="columnHeaderOut",e.columnHeaderEnter="columnHeaderEnter",e.columnHeaderLeave="columnHeaderLeave",e.columnHeaderDragStart="columnHeaderDragStart",e.columnHeaderDragOver="columnHeaderDragOver",e.columnHeaderDragEnter="columnHeaderDragEnter",e.columnHeaderDragEnd="columnHeaderDragEnd",e.selectionChange="selectionChange",e.pageChange="pageChange",e.pageSizeChange="pageSizeChange",e.rowsScroll="rowsScroll",e.rowsScrollEnd="rowsScrollEnd",e.columnSeparatorMouseDown="columnSeparatorMouseDown",e.columnResize="columnResize",e.columnWidthChange="columnWidthChange",e.columnResizeStart="columnResizeStart",e.columnResizeStop="columnResizeStop",e.columnOrderChange="columnOrderChange",e.rowsUpdate="rowsUpdate",e.rowsSet="rowsSet",e.rowsClear="rowsClear",e.columnsChange="columnsChange",e.sortModelChange="sortModelChange",e.filterModelChange="filterModelChange",e.stateChange="stateChange",e.columnVisibilityChange="columnVisibilityChange",e.viewportRowsChange="viewportRowsChange"}(ne||(ne={}));const le=react__WEBPACK_IMPORTED_MODULE_0__.createContext(void 0);function ae(){const t=react__WEBPACK_IMPORTED_MODULE_0__.useContext(le);if(void 0===t)throw new Error(["Material-UI X: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid or DataGridPro parent component.","This can also happen if you are bundling multiple versions of the data grid."].join("\n"));return t} true&&(le.displayName="GridApiContext");const ie=e=>e.columns,se=e=>e.columns.all,ce=e=>e.columns.lookup,ue=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(se,ce,((e,t)=>e.map((e=>t[e])))),de=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(ue,(e=>e.filter((e=>null!=e.field&&!e.hide)))),pe=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(de,(e=>{const t=[];return{totalWidth:e.reduce(((e,r)=>(t.push(e),e+r.computedWidth)),0),positions:t}})),me=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(ue,(e=>e.filter((e=>e.filterable)))),fe=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(me,(e=>e.map((e=>e.field)))),ge=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(de,(e=>e.length)),be=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(pe,(e=>e.totalWidth));function he(e,t){return e===t||e!=e&&t!=t}function ve(e,t){for(var r=e.length;r--;)if(he(e[r][0],t))return r;return-1}var Ce=Array.prototype.splice;function we(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1},we.prototype.set=function(e,t){var r=this.__data__,o=ve(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this};var Oe="object"==typeof __webpack_require__.g&&__webpack_require__.g&&__webpack_require__.g.Object===Object&&__webpack_require__.g,ye="object"==typeof self&&self&&self.Object===Object&&self,Ee=Oe||ye||Function("return this")(),Se=Ee.Symbol,xe=Object.prototype,Re=xe.hasOwnProperty,ke=xe.toString,Me=Se?Se.toStringTag:void 0;var Pe=Object.prototype.toString;var Ie=Se?Se.toStringTag:void 0;function Le(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ie&&Ie in Object(e)?function(e){var t=Re.call(e,Me),r=e[Me];try{e[Me]=void 0;var o=!0}catch(e){}var n=ke.call(e);return o&&(t?e[Me]=r:delete e[Me]),n}(e):function(e){return Pe.call(e)}(e)}function je(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Fe(e){if(!je(e))return!1;var t=Le(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var De,ze=Ee["__core-js_shared__"],Te=(De=/[^.]+$/.exec(ze&&ze.keys&&ze.keys.IE_PROTO||""))?"Symbol(src)_1."+De:"";var He=Function.prototype.toString;function Ae(e){if(null!=e){try{return He.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var $e=/^\[object .+?Constructor\]$/,_e=Function.prototype,Ne=Object.prototype,Ve=_e.toString,Be=Ne.hasOwnProperty,We=RegExp("^"+Ve.call(Be).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ge(e){return!(!je(e)||(t=e,Te&&Te in t))&&(Fe(e)?We:$e).test(Ae(e));var t}function Ue(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Ge(r)?r:void 0}var Ke=Ue(Ee,"Map"),Ze=Ue(Object,"create");var Ye=Object.prototype.hasOwnProperty;var qe=Object.prototype.hasOwnProperty;function Xe(e){var t=-1,r=null==e?0:e.length;for(this.clear();++ti))return!1;var c=l.get(e);if(c&&l.get(t))return c==t;var u=-1,d=!0,p=2&r?new tt:void 0;for(l.set(e,t),l.set(t,e);++u-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}var Rt={};Rt["[object Float32Array]"]=Rt["[object Float64Array]"]=Rt["[object Int8Array]"]=Rt["[object Int16Array]"]=Rt["[object Int32Array]"]=Rt["[object Uint8Array]"]=Rt["[object Uint8ClampedArray]"]=Rt["[object Uint16Array]"]=Rt["[object Uint32Array]"]=!0,Rt["[object Arguments]"]=Rt["[object Array]"]=Rt["[object ArrayBuffer]"]=Rt["[object Boolean]"]=Rt["[object DataView]"]=Rt["[object Date]"]=Rt["[object Error]"]=Rt["[object Function]"]=Rt["[object Map]"]=Rt["[object Number]"]=Rt["[object Object]"]=Rt["[object RegExp]"]=Rt["[object Set]"]=Rt["[object String]"]=Rt["[object WeakMap]"]=!1;var kt,Mt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Pt=Mt&&"object"=="object"&&module&&!module.nodeType&&module,It=Pt&&Pt.exports===Mt&&Oe.process,Lt=function(){try{return It&&It.binding&&It.binding("util")}catch(e){}}(),jt=Lt&&Lt.isTypedArray,Ft=jt?(kt=jt,function(e){return kt(e)}):function(e){return mt(e)&&xt(e.length)&&!!Rt[Le(e)]},Dt=Object.prototype.hasOwnProperty;function zt(e,t){var r=ct(e),o=!r&&vt(e),n=!r&&!o&&yt(e),l=!r&&!o&&!n&&Ft(e),a=r||o||n||l,i=a?function(e,t){for(var r=-1,o=Array(e);++r{o[n]=e[n].reduce(((e,o)=>(o&&(r&&r[o]&&e.push(r[o]),e.push(t(o))),e)),[]).join(" ")})),o}const sr={active:"Mui-active",checked:"Mui-checked",disabled:"Mui-disabled",error:"Mui-error",focused:"Mui-focused",focusVisible:"Mui-focusVisible",required:"Mui-required",expanded:"Mui-expanded",selected:"Mui-selected"};function cr(e,t){return sr[t]||`${e}-${t}`}function ur(e,t){const r={};return t.forEach((t=>{r[t]=cr(e,t)})),r}function dr(e){return"function"==typeof e}function pr(e){return e.type||e.mode}function mr(){return true? true&& true?"v4.12":"v4":"v5"}function fr(e,t){var r,o,l;return(null===(r=_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_4__)||void 0===r?void 0:r.alpha)?null===(o=_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_4__)||void 0===o?void 0:o.alpha(e,t):null===(l=_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_4__)||void 0===l?void 0:l.fade(e,t)}function gr(){var e,t,r;return(null===(e=_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_4__)||void 0===e?void 0:e.createTheme)?null===(t=_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_4__)||void 0===t?void 0:t.createTheme():null===(r=_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_4__)||void 0===r?void 0:r.createMuiTheme()}function br(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(e){return!1}}function hr(e){return cr("MuiDataGrid",e)}function vr(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const Cr=br()&&null!=window.localStorage.getItem("DEBUG"),wr=()=>{},Or={debug:wr,info:wr,warn:wr,error:wr},yr=["debug","info","warn","error"];function Er(e,t,r=console){const o=yr.indexOf(t);if(-1===o)throw new Error(`Material-UI: Log level ${t} not recognized.`);return yr.reduce(((t,n,l)=>(t[n]=l>=o?(...t)=>{const[o,...l]=t;r[n](`Material-UI: ${e} - ${o}`,...l)}:wr,t)),{})}function Sr(t,r){t.current.getLogger=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>Cr?Er(e,"debug",r.logger):r.logLevel?Er(e,r.logLevel.toString(),r.logger):Or),[r.logLevel,r.logger])}function xr(t,r){const o=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);if(o.current)return o.current;const n=t.current.getLogger(r);return o.current=n,n}function Rr(t,r,o){const n=xr(t,"useGridApiMethod"),l=react__WEBPACK_IMPORTED_MODULE_0__.useRef(r),[a]=react__WEBPACK_IMPORTED_MODULE_0__.useState(Object.keys(r)),i=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{t.current&&a.forEach((e=>{t.current.hasOwnProperty(e)||(n.debug(`Adding ${o}.${e} to apiRef`),t.current[e]=(...t)=>l.current[e](...t))}))}),[a,o,t,n]);react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{l.current=r}),[r]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{i()}),[i]),i()}const kr=()=>({all:[],lookup:{}}),Mr={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",errorOverlayDefaultLabel:"An error occurred.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>1!==e?`${e} active filters`:`${e} active filter`,toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:"Reorder column",columnsPanelShowAllButton:"Show all",columnsPanelHideAllButton:"Hide all",filterPanelAddFilter:"Add filter",filterPanelDeleteIconLabel:"Delete",filterPanelOperators:"Operators",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>1!==e?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>1!==e?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",booleanCellTrueLabel:"true",booleanCellFalseLabel:"false",MuiTablePagination:{}};var Pr;!function(e){e.Compact="compact",e.Standard="standard",e.Comfortable="comfortable"}(Pr||(Pr={}));const Ir={client:"client",server:"server"},Lr={columnBuffer:2,density:Pr.Standard,filterMode:Ir.client,headerHeight:56,paginationMode:Ir.client,rowHeight:52,rowsPerPageOptions:[25,50,100],scrollEndThreshold:80,sortingMode:Ir.client,sortingOrder:["asc","desc",null],logger:console,logLevel: false?0:"warn",editMode:"cell"},jr=Object.assign(Object.assign({},Lr),{localeText:Mr});function Fr(){return{dragCol:""}}function Dr(){return{resizingColumnField:""}}var zr;!function(e){e.And="and",e.Or="or"}(zr||(zr={}));const Tr=()=>({items:[],linkOperator:zr.And}),Hr=()=>({visibleRowsLookup:{}}),Ar=()=>({idRowsLookup:{},allRows:[],totalRowCount:0});function $r(){return{sortedRows:[],sortModel:[]}}const _r=()=>({realScroll:{left:0,top:0},renderContext:null,renderingZoneScroll:{left:0,top:0},virtualPage:0,virtualRowsCount:0}),Nr=()=>({rows:{idRowsLookup:{},allRows:[],totalRowCount:0},editRows:{},pagination:{page:0,pageCount:0,rowCount:0,pageSize:100},options:jr,isScrolling:!1,columns:{all:[],lookup:{}},columnReorder:{dragCol:""},columnResize:{resizingColumnField:""},rendering:{realScroll:{left:0,top:0},renderContext:null,renderingZoneScroll:{left:0,top:0},virtualPage:0,virtualRowsCount:0},containerSizes:null,scrollBar:{hasScrollX:!1,hasScrollY:!1,sizes:{x:0,y:0}},viewportSizes:{width:0,height:1},sorting:{sortedRows:[],sortModel:[]},focus:{cell:null,columnHeader:null},tabIndex:{cell:null,columnHeader:null},selection:[],filter:Tr(),columnMenu:{open:!1},preferencePanel:{open:!1},visibleRows:{visibleRowsLookup:{}},density:{value:Pr.Standard,rowHeight:52,headerHeight:56}}),Vr=t=>{const r=xr(t,"useGridApi"),[,o]=react__WEBPACK_IMPORTED_MODULE_0__.useState();t.current.state||(r.info("Initialising state."),t.current.state=Nr(),t.current.forceUpdate=o);const n=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>t.current.state),[t]),l=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{let r;r=dr(e)?e(t.current.state):e,t.current.state=r,o((()=>r)),t.current.publishEvent(ne.stateChange,r)}),[t]);return Rr(t,{getState:n,setState:l},"GridStateApi"),t.current},Br=t=>{Vr(t);const r=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>t.current.forceUpdate((()=>t.current.state))),[t]),o=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{const r=e(t.current.state);if(t.current.state===r)return!1;const{ignoreSetState:o,postUpdate:n}=t.current.applyControlStateConstraint(r);return o||(t.current.state=r,t.current.publishEvent&&t.current.publishEvent(ne.stateChange,r)),n(),!o}),[t]);return[t.current.state,o,r]},Wr=(e,t)=>{const[r]=Br(e);return t(r)},Gr=e=>e.rendering,Ur=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(Gr,(e=>e.realScroll)),Kr=ur("MuiDataGrid",["root","row","row--editing","cell","withBorder","cell--editing","cell--editable","cell--withRenderer","cell--textLeft","cell--textCenter","cell--textRight","columnHeader","columnHeader--dragging","columnHeaderWrapper","scrollArea","scrollArea--left","scrollArea--right","columnsContainer","toolbarContainer","overlay","main","dataContainer","window","windowContainer","viewport","autoHeight","columnHeaderCheckbox","cellCheckbox","columnHeader--sorted","columnHeader--sortable","columnHeader--moving","columnHeader--numeric","columnHeader--alignLeft","columnHeader--alignCenter","columnHeader--alignRight","columnHeaderDraggableContainer","columnHeaderTitle","iconButtonContainer","sortIcon","filterIcon","menuIcon","menuIconButton","columnHeaderTitleContainer","columnSeparator","columnSeparator--resizable","iconSeparator","menuOpen","columnHeaderWrapper","editInputCell","editBooleanCell","booleanCell","checkboxInput","rowCount","selectedRowCount","footerContainer","columnHeaderDropZone","columnHeaderDraggableContainer","renderingZone"]),Zr=react__WEBPACK_IMPORTED_MODULE_0__.memo((function({width:t,height:r}){return t&&r?react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:{minWidth:t,maxWidth:t,lineHeight:r-1+"px",minHeight:r,maxHeight:r},className:Kr.cell}):null}));var Yr;function qr(t,r,o,n){const l=xr(t,"useGridApiEventHandler");react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{if(o&&r){const e=(e,t,r)=>{t.defaultMuiPrevented||o(e,t,r)};return t.current.subscribeEvent(r,e,n)}}),[t,l,r,o,n])}!function(e){e.DataGrid="DataGrid",e.DataGridPro="DataGridPro"}(Yr||(Yr={}));const Xr={isFirst:!0};function Jr(e,t,r){qr(e,t,r,Xr)}const Qr=react__WEBPACK_IMPORTED_MODULE_0__.memo((function(t){const{scrollDirection:o}=t,n=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),l=ae(),a=react__WEBPACK_IMPORTED_MODULE_0__.useRef(),[i,s]=react__WEBPACK_IMPORTED_MODULE_0__.useState(!1),c=react__WEBPACK_IMPORTED_MODULE_0__.useRef({left:0,top:0}),u=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{c.current=e}),[]),d=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{let t;if("left"===o)t=e.clientX-n.current.getBoundingClientRect().right;else{if("right"!==o)throw new Error("wrong dir");t=Math.max(1,e.clientX-n.current.getBoundingClientRect().left)}t=1.5*(t-1)+1,clearTimeout(a.current),a.current=setTimeout((()=>{l.current.scroll({left:c.current.left+t,top:c.current.top})}))}),[o,l]);react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>()=>{clearTimeout(a.current)}),[]);const p=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{s((e=>!e))}),[]);return qr(l,ne.rowsScroll,u),qr(l,ne.columnHeaderDragStart,p),qr(l,ne.columnHeaderDragEnd,p),i?react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{ref:n,className:(0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(Kr.scrollArea,Kr[`scrollArea--${o}`]),onDragOver:d}):null})),eo=e=>e.columnReorder,to=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(eo,(e=>e.dragCol)),ro=e=>e.columnResize,oo=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(ro,(e=>e.resizingColumnField)),no=e=>e.rows,lo=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(no,(e=>e&&e.totalRowCount)),ao=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(no,(e=>e&&e.idRowsLookup)),io=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(no,(e=>e.allRows)),so=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(no,(e=>e.allRows.map((t=>e.idRowsLookup[t])))),co=e=>e.sorting,uo=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(co,io,((e,t)=>e.sortedRows.length?e.sortedRows:t)),po=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(uo,ao,((e,t)=>{const r=new Map;return e.forEach((e=>{r.set(e,t[e])})),r})),mo=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(co,(e=>e.sortModel)),fo=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(mo,(e=>e.reduce(((t,r,o)=>(t[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},t)),{}))),go=e=>e.visibleRows,bo=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(go,po,((e,t)=>{const r=new Map;return t.forEach(((t,o)=>{!1!==e.visibleRowsLookup[o]&&r.set(o,t)})),r})),ho=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(bo,(e=>[...e.entries()])),vo=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(bo,(e=>[...e.keys()])),Co=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(go,lo,((e,t)=>null==e.visibleRows?t:e.visibleRows.length)),wo=e=>e.filter,Oo=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(wo,ce,((e,t)=>{var r;return null===(r=e.items)||void 0===r?void 0:r.filter((e=>{var r,o;if(!e.columnField)return!1;const n=t[e.columnField];if(!(null==n?void 0:n.filterOperators)||0===(null===(r=null==n?void 0:n.filterOperators)||void 0===r?void 0:r.length))return!1;const l=n.filterOperators.find((t=>t.value===e.operatorValue));return!!l&&(!l.InputComponent||null!=e.value&&""!==(null===(o=e.value)||void 0===o?void 0:o.toString()))}))})),yo=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(Oo,(e=>e.length)),Eo=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(Oo,(e=>e.reduce(((e,t)=>(e[t.columnField]?e[t.columnField].push(t):e[t.columnField]=[t],e)),{}))),So=e=>e.focus,xo=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(So,(e=>e.cell)),Ro=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(So,(e=>e.columnHeader)),ko=e=>e.tabIndex,Mo=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(ko,(e=>e.cell)),Po=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(ko,(e=>e.columnHeader)),Io=e=>e.density,Lo=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(Io,(e=>e.value)),jo=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(Io,(e=>e.rowHeight)),Fo=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(Io,(e=>e.headerHeight)),Do=e=>e.columnMenu,zo=e=>e.options,To=e=>"Escape"===e,Ho=e=>"Enter"===e,Ao=e=>"Tab"===e,$o=e=>" "===e,_o=e=>0===e.indexOf("Arrow"),No=e=>"Home"===e||"End"===e,Vo=e=>0===e.indexOf("Page"),Bo=e=>"Delete"===e||"Backspace"===e,Wo=/^(\p{L}|\p{M}\p{L}|\p{M}|\p{N}|\p{Z}|\p{S}|\p{P})$/iu,Go=e=>Wo.test(e),Uo=["Enter","Escape","Tab"],Ko=["Enter","Tab"],Zo=e=>Ko.indexOf(e)>-1,Yo=e=>No(e)||_o(e)||Vo(e)||$o(e),qo=e=>!!e.key,Xo=e=>Ao(e)||To(e),Jo=react__WEBPACK_IMPORTED_MODULE_0__.createContext(void 0); true&&(Jo.displayName="GridRootPropsContext");const Qo=()=>{const t=react__WEBPACK_IMPORTED_MODULE_0__.useContext(Jo);if(!t)throw new Error("Material-UI: useGridRootProps should only be used inside the DataGrid/DataGridPro component.");return t},en=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(t,r){var o;const{field:n,id:l,value:a,tabIndex:i,hasFocus:s}=t,u=ae(),d=Qo(),p=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),m=(0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_5__["default"])(p,r),f=u.current.getCellElement(l,n);react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect((()=>{0===i&&f&&(f.tabIndex=-1)}),[f,i]),react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect((()=>{if(s&&p.current){p.current.querySelector("input").focus()}}),[s]);const g=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{$o(e.key)&&e.stopPropagation(),Yo(e.key)&&!e.shiftKey&&u.current.publishEvent(ne.cellNavigationKeyDown,t,e)}),[u,t]),b=null==u?void 0:u.current.components.Checkbox,h=!d.isRowSelectable||d.isRowSelectable(u.current.getRowParams(l));return react__WEBPACK_IMPORTED_MODULE_0__.createElement(b,Object.assign({ref:m,tabIndex:i,checked:!!a,onChange:e=>{u.current.selectRow(l,e.target.checked,!0)},onClick:e=>{e.stopPropagation()},className:Kr.checkboxInput,color:"primary",inputProps:{"aria-label":"Select Row checkbox"},onKeyDown:g,disabled:!h},null===(o=null==u?void 0:u.current.componentsProps)||void 0===o?void 0:o.checkbox))})),tn=react__WEBPACK_IMPORTED_MODULE_0__.memo(en),rn=e=>e.pagination,on=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(rn,vo,((e,t)=>{const r=e.page*e.pageSize,o=r+e.pageSize;return t.slice(r,o)})),nn=e=>e.selection,ln=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(nn,(e=>e.length)),an=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(nn,ao,((e,t)=>new Map(e.map((e=>[e,t[e]]))))),sn=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(nn,(e=>e.reduce(((e,t)=>(e[t]=t,e)),{}))),cn=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(t,r){var o;const[,n]=react__WEBPACK_IMPORTED_MODULE_0__.useState(!1),l=ae(),a=Qo(),i=Wr(l,Po),s=Wr(l,ln),c=Wr(l,lo),u=s>0&&s!==c,d=s>0&&s===c||u,p=null!==i&&i.field===t.field?0:-1;react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect((()=>{const e=l.current.getColumnHeaderElement(t.field);0===p&&e&&(e.tabIndex=-1)}),[p,l,t.field]);const m=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{$o(e.key)&&e.stopPropagation(),Yo(e.key)&&!e.shiftKey&&l.current.publishEvent(ne.columnHeaderNavigationKeyDown,t,e)}),[l,t]),f=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{n((e=>!e))}),[]);react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>null==l?void 0:l.current.subscribeEvent(ne.selectionChange,f)),[l,f]);const g=null==l?void 0:l.current.components.Checkbox;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(g,Object.assign({ref:r,indeterminate:u,checked:d,onChange:e=>{const t=e.target.checked,r=a.checkboxSelectionVisibleOnly&&a.pagination?on(l.current.state):vo(l.current.state);l.current.selectRows(r,t,!e.target.indeterminate)},className:Kr.checkboxInput,color:"primary",inputProps:{"aria-label":"Select All Rows checkbox"},tabIndex:p,onKeyDown:m},null===(o=null==l?void 0:l.current.componentsProps)||void 0===o?void 0:o.checkbox))})); -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -function un(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n{const t=e.target.value;h(t),l.setEditCellValue({id:r,field:a,value:t},e)}),[l,a,r]);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{h(o)}),[o]),ar((()=>{p&&g.current.focus()}),[p]),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_InputBase__WEBPACK_IMPORTED_MODULE_6__["default"],Object.assign({inputRef:g,className:Kr.editInputCell,fullWidth:!0,type:"number"===s.type?s.type:"text",value:b||"",onChange:C},f))}const pn=t=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(dn,Object.assign({},t)),mn=(e,t)=>{const r=e.indexOf(t);return t&&-1!==r&&r+1!==e.length?e[r+1]:e[0]},fn=(e,t)=>null==e&&null!=t?-1:null==t&&null!=e?1:null==e&&null==t?0:null,gn=new Intl.Collator,bn=(e,t)=>{const r=fn(e,t);return null!==r?r:Number(e)-Number(t)},hn=(e,t)=>{const r=fn(e,t);return null!==r?r:e>t?1:e(t?["",...t]:[""]).map((t=>"object"==typeof t?react__WEBPACK_IMPORTED_MODULE_0__.createElement("option",{key:t.value,value:t.value},t.label):react__WEBPACK_IMPORTED_MODULE_0__.createElement("option",{key:t,value:t},t))),An=500;function $n(t){const{item:r,applyValue:o,type:n,apiRef:l}=t,a=un(t,["item","applyValue","type","apiRef"]),i=react__WEBPACK_IMPORTED_MODULE_0__.useRef(),[s,c]=react__WEBPACK_IMPORTED_MODULE_0__.useState(r.value||""),[u,p]=react__WEBPACK_IMPORTED_MODULE_0__.useState(!1),m=(0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_8__["default"])(),f="singleSelect"===n?{select:!0,SelectProps:{native:!0},children:Hn(l.current.getColumn(r.columnField))}:{},g=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{let t=e.target.value;if("singleSelect"===n){const e=l.current.getColumn(r.columnField);t=e.valueOptions.map((e=>"object"==typeof e?e.value:e)).find((e=>String(e)===t))}clearTimeout(i.current),c(t),p(!0),i.current=setTimeout((()=>{o(Object.assign(Object.assign({},r),{value:t})),p(!1)}),500)}),[l,o,r,n]);react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>()=>{clearTimeout(i.current)}),[]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{c(r.value||"")}),[r.value]);const b=u?{endAdornment:react__WEBPACK_IMPORTED_MODULE_0__.createElement(Fn,null)}:a.InputProps;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_TextField__WEBPACK_IMPORTED_MODULE_9__["default"],Object.assign({id:m,label:l.current.getLocaleText("filterPanelInputLabel"),placeholder:l.current.getLocaleText("filterPanelInputPlaceholder"),value:s,onChange:g,type:n||"text",variant:"standard",InputProps:b,InputLabelProps:{shrink:!0}},f,a))}const _n=()=>[{value:"contains",getApplyFilterFn:e=>{if(!e.value)return null;const t=new RegExp(vr(e.value),"i");return({value:e})=>t.test(e&&e.toString()||"")},InputComponent:$n},{value:"equals",getApplyFilterFn:e=>{if(!e.value)return null;const t=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return({value:r})=>0===t.compare(e.value,r&&r.toString()||"")},InputComponent:$n},{value:"startsWith",getApplyFilterFn:e=>{if(!e.value)return null;const t=new RegExp(`^${vr(e.value)}.*$`,"i");return({value:e})=>t.test(e&&e.toString()||"")},InputComponent:$n},{value:"endsWith",getApplyFilterFn:e=>{if(!e.value)return null;const t=new RegExp(`.*${vr(e.value)}$`,"i");return({value:e})=>t.test(e&&e.toString()||"")},InputComponent:$n},{value:"isEmpty",getApplyFilterFn:()=>({value:e})=>""===e||null==e},{value:"isNotEmpty",getApplyFilterFn:()=>({value:e})=>""!==e&&null!=e}],Nn={width:100,minWidth:50,hide:!1,sortable:!0,resizable:!0,filterable:!0,sortComparator:(e,t)=>{const r=fn(e,t);return null!==r?r:"string"==typeof e?gn.compare(e.toString(),t.toString()):e-t},type:"string",align:"left",filterOperators:_n(),renderEditCell:pn},Vn=react__WEBPACK_IMPORTED_MODULE_0__.memo((t=>{const{id:r,value:o,formattedValue:n,api:l,field:a,row:i,colDef:s,cellMode:c,isEditable:u,hasFocus:d,tabIndex:p,getValue:m}=t,f=un(t,["id","value","formattedValue","api","field","row","colDef","cellMode","isEditable","hasFocus","tabIndex","getValue"]),g=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>o?l.components.BooleanCellTrueIcon:l.components.BooleanCellFalseIcon),[l.components.BooleanCellFalseIcon,l.components.BooleanCellTrueIcon,o]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(g,Object.assign({fontSize:"small",className:Kr.booleanCell,titleAccess:l.getLocaleText(o?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":Boolean(o)},f))}));function Bn(t){const{id:o,value:n,formattedValue:l,api:a,field:i,row:s,colDef:c,cellMode:u,isEditable:p,tabIndex:m,className:f,getValue:g,hasFocus:b}=t,h=un(t,["id","value","formattedValue","api","field","row","colDef","cellMode","isEditable","tabIndex","className","getValue","hasFocus"]),v=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),C=(0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_8__["default"])(),[O,y]=react__WEBPACK_IMPORTED_MODULE_0__.useState(n),E=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{const t=e.target.checked;y(t),a.setEditCellValue({id:o,field:i,value:t},e)}),[a,i,o]);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{y(n)}),[n]),ar((()=>{b&&v.current.focus()}),[b]),react__WEBPACK_IMPORTED_MODULE_0__.createElement("label",Object.assign({htmlFor:C,className:(0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(Kr.editBooleanCell,f)},h),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_Checkbox__WEBPACK_IMPORTED_MODULE_10__["default"],{id:C,inputRef:v,checked:Boolean(O),onChange:E,size:"small"}))}function Wn(t){const{item:r,applyValue:o,apiRef:n}=t,l=un(t,["item","applyValue","apiRef"]),[a,i]=react__WEBPACK_IMPORTED_MODULE_0__.useState(r.value||""),s=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{const t=e.target.value;i(t),o(Object.assign(Object.assign({},r),{value:t}))}),[o,r]);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{i(r.value||"")}),[r.value]),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_TextField__WEBPACK_IMPORTED_MODULE_9__["default"],Object.assign({label:n.current.getLocaleText("filterPanelInputLabel"),value:a,onChange:s,variant:"standard",select:!0,SelectProps:{native:!0},InputLabelProps:{shrink:!0}},l),react__WEBPACK_IMPORTED_MODULE_0__.createElement("option",{value:""},n.current.getLocaleText("filterValueAny")),react__WEBPACK_IMPORTED_MODULE_0__.createElement("option",{value:"true"},n.current.getLocaleText("filterValueTrue")),react__WEBPACK_IMPORTED_MODULE_0__.createElement("option",{value:"false"},n.current.getLocaleText("filterValueFalse")))}const Gn=Object.assign(Object.assign({},Nn),{type:"boolean",align:"center",headerAlign:"center",renderCell:t=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Vn,Object.assign({},t)),renderEditCell:t=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Bn,Object.assign({},t)),sortComparator:bn,valueFormatter:function({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")},filterOperators:[{value:"is",getApplyFilterFn:e=>{if(!e.value)return null;const t="true"===e.value;return({value:e})=>Boolean(e)===t},InputComponent:Wn}]}),Un=Object.assign(Object.assign({},Gn),{field:"__check__",type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,disableColumnMenu:!0,disableReorder:!0,valueGetter:e=>void 0!==sn(e.api.state)[e.id],renderHeader:t=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(cn,Object.assign({},t)),renderCell:t=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(tn,Object.assign({},t)),cellClassName:Kr.cellCheckbox,headerClassName:Kr.columnHeaderCheckbox}),Kn=()=>[{label:"=",value:"=",getApplyFilterFn:e=>null==e.value?null:({value:t})=>Number(t)===e.value,InputComponent:$n,InputComponentProps:{type:"number"}},{label:"!=",value:"!=",getApplyFilterFn:e=>null==e.value?null:({value:t})=>Number(t)!==e.value,InputComponent:$n,InputComponentProps:{type:"number"}},{label:">",value:">",getApplyFilterFn:e=>null==e.value?null:({value:t})=>Number(t)>e.value,InputComponent:$n,InputComponentProps:{type:"number"}},{label:">=",value:">=",getApplyFilterFn:e=>null==e.value?null:({value:t})=>Number(t)>=e.value,InputComponent:$n,InputComponentProps:{type:"number"}},{label:"<",value:"<",getApplyFilterFn:e=>null==e.value?null:({value:t})=>Number(t)null==e.value?null:({value:t})=>Number(t)<=e.value,InputComponent:$n,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>({value:e})=>null==e},{value:"isNotEmpty",getApplyFilterFn:()=>({value:e})=>null!=e}],Zn=Object.assign(Object.assign({},Nn),{type:"number",align:"right",headerAlign:"right",sortComparator:bn,valueParser:e=>Number(e),valueFormatter:({value:e})=>e&&function(e){return"number"==typeof e}(e)&&e.toLocaleString()||e,filterOperators:Kn()}),Yn=/(\d+)-(\d+)-(\d+)/,qn=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function Xn(e,t,r,o){if(!e.value)return null;const[n,l,a,i,s]=e.value.match(r?qn:Yn).slice(1).map(Number),c=new Date(n,l-1,a,i||0,s||0).getTime();return({value:e})=>{if(!e)return!1;const n=e instanceof Date?e:new Date(e.toString());if(o)return t(n.getTime(),c);const l=(e instanceof Date?new Date(n):n).setHours(r?n.getHours():0,r?n.getMinutes():0,0,0);return t(l,c)}}const Jn=e=>[{value:"is",getApplyFilterFn:t=>Xn(t,((e,t)=>e===t),e),InputComponent:$n,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>Xn(t,((e,t)=>e!==t),e),InputComponent:$n,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>Xn(t,((e,t)=>e>t),e),InputComponent:$n,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>Xn(t,((e,t)=>e>=t),e),InputComponent:$n,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>Xn(t,((e,t)=>eXn(t,((e,t)=>e<=t),e),InputComponent:$n,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>({value:e})=>null==e},{value:"isNotEmpty",getApplyFilterFn:()=>({value:e})=>null!=e}];function Qn(t){const{id:r,value:o,formattedValue:n,api:l,field:a,row:i,colDef:s,cellMode:c,isEditable:u,tabIndex:d,hasFocus:p,getValue:m}=t,f=un(t,["id","value","formattedValue","api","field","row","colDef","cellMode","isEditable","tabIndex","hasFocus","getValue"]),g=react__WEBPACK_IMPORTED_MODULE_0__.useRef(),[b,h]=react__WEBPACK_IMPORTED_MODULE_0__.useState(o),C=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{const t=e.target.value;if(h(t),""===t)return void l.setEditCellValue({id:r,field:a,value:null},e);const[o,n]=t.split("T"),[i,s,c]=o.split("-"),u=new Date;if(u.setFullYear(Number(i)),u.setMonth(Number(s)-1),u.setDate(Number(c)),u.setHours(0,0,0,0),n){const[e,t]=n.split(":");u.setHours(Number(e),Number(t),0,0)}l.setEditCellValue({id:r,field:a,value:u},e)}),[l,a,r]),w="dateTime"===s.type;react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{h(o)}),[o]),ar((()=>{p&&g.current.focus()}),[p]);let O=b||"";if(b instanceof Date){const e=b.getTimezoneOffset();O=new Date(b.getTime()-60*e*1e3).toISOString().substr(0,w?16:10)}return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_InputBase__WEBPACK_IMPORTED_MODULE_6__["default"],Object.assign({inputRef:g,fullWidth:!0,className:Kr.editInputCell,type:w?"datetime-local":"date",value:O,onChange:C},f))}const el=t=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Qn,Object.assign({},t));function tl({value:e}){return e instanceof Date?e.toLocaleDateString():e}function rl({value:e}){return e instanceof Date?e.toLocaleString():e}const ol=Object.assign(Object.assign({},Nn),{type:"date",sortComparator:hn,valueFormatter:tl,filterOperators:Jn(),renderEditCell:el}),nl=Object.assign(Object.assign({},Nn),{type:"dateTime",sortComparator:hn,valueFormatter:rl,filterOperators:Jn(!0),renderEditCell:el});var ll,al,il;!function(e){e.Cell="cell",e.Row="row"}(ll||(ll={})),function(e){e.Edit="edit",e.View="view"}(al||(al={})),function(e){e.Edit="edit",e.View="view"}(il||(il={}));const sl=t=>"object"==typeof t?react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_MenuItem__WEBPACK_IMPORTED_MODULE_11__["default"],{key:t.value,value:t.value},t.label):react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_MenuItem__WEBPACK_IMPORTED_MODULE_11__["default"],{key:t,value:t},t);function cl(t){var r;const{id:o,value:n,formattedValue:l,api:a,field:i,row:s,colDef:c,cellMode:u,isEditable:d,tabIndex:p,className:m,getValue:f,hasFocus:g}=t,b=un(t,["id","value","formattedValue","api","field","row","colDef","cellMode","isEditable","tabIndex","className","getValue","hasFocus"]),h=react__WEBPACK_IMPORTED_MODULE_0__.useRef(),v=Qo(),[C,w]=react__WEBPACK_IMPORTED_MODULE_0__.useState("cell"===v.editMode);return ar((()=>{g&&h.current.querySelector('[role="button"]').focus()}),[g]),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_Select__WEBPACK_IMPORTED_MODULE_12__["default"],Object.assign({ref:h,value:n,onChange:e=>{w(!1),a.setEditCellValue({id:o,field:i,value:e.target.value},e),e.key||"cell"!==v.editMode||(a.commitCellChange({id:o,field:i},e),a.setCellMode(o,i,"view"))},open:C,onOpen:()=>{w(!0)},MenuProps:{onClose:(e,t)=>{v.editMode!==ll.Row?("backdropClick"===t||To(e.key))&&a.setCellMode(o,i,"view"):w(!1)}},fullWidth:!0},b),null===(r=c.valueOptions)||void 0===r?void 0:r.map(sl))}const ul=t=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(cl,Object.assign({},t)),dl=Object.assign(Object.assign({},Nn),{type:"singleSelect",renderEditCell:ul,filterOperators:[{value:"is",getApplyFilterFn:e=>null==e.value||""===e.value?null:({value:t})=>"object"==typeof t?e.value===t.value:e.value===t,InputComponent:$n,InputComponentProps:{type:"singleSelect"}},{value:"not",getApplyFilterFn:e=>null==e.value||""===e.value?null:({value:t})=>"object"==typeof t?e.value!==t.value:e.value!==t,InputComponent:$n,InputComponentProps:{type:"singleSelect"}}]}),pl="__default__",ml=()=>{const e={string:Nn,number:Zn,date:ol,dateTime:nl,boolean:Gn,singleSelect:dl};return e.__default__=Nn,e},fl=(e,t)=>t?e[t]:e.__default__,gl="string",bl="number",hl="date",vl="dateTime",Cl="boolean";const wl=react__WEBPACK_IMPORTED_MODULE_0__.memo((function(t){const{direction:r,index:o}=t,n=ae(),l=n.current.components.ColumnUnsortedIcon;if(null==r&&null===l)return null;const a=react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_IconButton__WEBPACK_IMPORTED_MODULE_13__["default"],{tabIndex:-1,"aria-label":n.current.getLocaleText("columnHeaderSortIconLabel"),title:n.current.getLocaleText("columnHeaderSortIconLabel"),size:"small"},function(t,r){let o=t.ColumnUnsortedIcon;return"asc"===r?o=t.ColumnSortedAscendingIcon:"desc"===r&&(o=t.ColumnSortedDescendingIcon),react__WEBPACK_IMPORTED_MODULE_0__.createElement(o,{fontSize:"small",className:Kr.sortIcon})}(n.current.components,r));return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:Kr.iconButtonContainer},null!=o&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_Badge__WEBPACK_IMPORTED_MODULE_14__["default"],{badgeContent:o,color:"default"},a),null==o&&a)}));function Ol(e,t){return e.closest(`.${t}`)}function yl(e){return null!=e&&e.classList.contains(Kr.columnHeader)}function El(e){const t=e.getAttribute("data-field"),r=Ol(e,"MuiDataGrid-root");if(!r)throw new Error("Material-UI: The root element is not found.");return r.querySelectorAll(`.${Kr.cell}[data-field="${t}"]`)}function Sl(e){return e.replace(/["\\]/g,"\\$&")}function xl(e,t){return e.querySelector(`.${Kr.row}[data-id="${Sl(String(t))}"]`)}const Rl=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(t,o){const{className:n}=t,l=un(t,["className"]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",Object.assign({ref:o,className:(0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(Kr.columnHeaderTitle,n)},l))}));function kl(t){const{label:r,description:o,columnWidth:n}=t,l=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),[a,i]=react__WEBPACK_IMPORTED_MODULE_0__.useState("");return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{if(!o&&l&&l.current){const t=(e=l.current).scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth;i(t?r:"")}var e}),[l,n,o,r]),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_Tooltip__WEBPACK_IMPORTED_MODULE_15__["default"],{title:o||a},react__WEBPACK_IMPORTED_MODULE_0__.createElement(Rl,{ref:l},r))}const Ml=react__WEBPACK_IMPORTED_MODULE_0__.memo((function(t){const{resizable:o,resizing:n,height:l}=t,a=un(t,["resizable","resizing","height"]),i=ae(),s=Qo(),c=i.current.components.ColumnResizeIcon,u=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{e.preventDefault(),e.stopPropagation()}),[]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",Object.assign({className:(0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(Kr.columnSeparator,{[Kr["columnSeparator--resizable"]]:o,"Mui-resizing":n}),style:{minHeight:l,opacity:s.showColumnRightBorder?0:1}},a,{onClick:u}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(c,{className:Kr.iconSeparator}))})),Pl=react__WEBPACK_IMPORTED_MODULE_0__.memo((t=>{const{column:o,open:n,columnMenuId:l,columnMenuButtonId:a,iconButtonRef:i}=t,s=ae(),c=s.current.components.ColumnMenuIcon,u=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{e.preventDefault(),e.stopPropagation(),s.current.toggleColumnMenu(o.field)}),[s,o.field]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:(0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(Kr.menuIcon,{[Kr.menuOpen]:n})},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_IconButton__WEBPACK_IMPORTED_MODULE_13__["default"],{ref:i,tabIndex:-1,className:Kr.menuIconButton,"aria-label":s.current.getLocaleText("columnMenuLabel"),title:s.current.getLocaleText("columnMenuLabel"),size:"small",onClick:u,"aria-expanded":n?"true":void 0,"aria-haspopup":"true","aria-controls":l,id:a},react__WEBPACK_IMPORTED_MODULE_0__.createElement(c,{fontSize:"small"})))})),Il=e=>e.preferencePanel,Ll=e=>e.viewportSizes;var jl;function Fl(t){const{counter:r}=t,o=ae(),n=o.current.components.ColumnFilteredIcon,l=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{e.preventDefault(),e.stopPropagation();const{open:t,openedPanelValue:r}=Il(o.current.state);t&&r===jl.filters?o.current.hideFilterPanel():o.current.showFilterPanel()}),[o]);if(!r)return null;const a=react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_IconButton__WEBPACK_IMPORTED_MODULE_13__["default"],{onClick:l,color:"default","aria-label":o.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1},react__WEBPACK_IMPORTED_MODULE_0__.createElement(n,{className:Kr.filterIcon,fontSize:"small"}));return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_Tooltip__WEBPACK_IMPORTED_MODULE_15__["default"],{title:o.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:Kr.iconButtonContainer},r>1&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_Badge__WEBPACK_IMPORTED_MODULE_14__["default"],{badgeContent:r,color:"default"},a),1===r&&a))}!function(e){e.filters="filters",e.columns="columns"}(jl||(jl={}));const Dl=(0,_material_ui_styles__WEBPACK_IMPORTED_MODULE_16__["default"])((e=>({root:{zIndex:e.zIndex.modal,"& .MuiDataGrid-gridMenuList":{outline:0}}})),{name:"MuiGridMenu",defaultTheme:gr()}),zl={"bottom-start":"top left","bottom-end":"top right"},Tl=t=>{const{open:r,target:o,onClickAway:n,children:l,position:a}=t,i=un(t,["open","target","onClickAway","children","position"]),s=react__WEBPACK_IMPORTED_MODULE_0__.useRef(o),c=react__WEBPACK_IMPORTED_MODULE_0__.useRef(r),u=Dl();return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{c.current&&s.current&&s.current.focus(),c.current=r,s.current=o}),[r,o]),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_Popper__WEBPACK_IMPORTED_MODULE_17__["default"],Object.assign({className:u.root,open:r,anchorEl:o,transition:!0,placement:a},i),(({TransitionProps:t,placement:r})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_ClickAwayListener__WEBPACK_IMPORTED_MODULE_18__["default"],{onClickAway:n},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_Grow__WEBPACK_IMPORTED_MODULE_19__["default"],Object.assign({},t,{style:{transformOrigin:zl[r]}}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_Paper__WEBPACK_IMPORTED_MODULE_20__["default"],null,l)))))};function Hl({columnMenuId:t,columnMenuButtonId:r,ContentComponent:o,contentComponentProps:n,field:l,open:a,target:i}){const s=ae(),c=null==s?void 0:s.current.getColumn(l),u=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{e.stopPropagation(),null==s||s.current.hideColumnMenu()}),[s]);return i?react__WEBPACK_IMPORTED_MODULE_0__.createElement(Tl,{placement:"bottom-"+("right"===c.align?"start":"end"),open:a,target:i,onClickAway:u},react__WEBPACK_IMPORTED_MODULE_0__.createElement(o,Object.assign({currentColumn:c,hideMenu:u,open:a,id:t,labelledby:r},n))):null}function Al(t){var o;const{column:n,columnMenuOpen:l,colIndex:a,headerHeight:i,isDragging:s,isResizing:c,sortDirection:u,sortIndex:p,options:m,filterItemsCounter:f,hasFocus:g,tabIndex:b}=t,h=ae(),v=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),C=(0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_8__["default"])(),w=(0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_8__["default"])(),O=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),{classes:y,disableColumnReorder:E,showColumnRightBorder:S,disableColumnResize:x,disableColumnMenu:R,disableColumnFilter:k}=m,M=null!=u,P="number"===n.type;let I=null;n.renderHeader&&h.current&&(I=n.renderHeader(h.current.getColumnHeaderParams(n.field)));const L=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>t=>h.current.publishEvent(e,h.current.getColumnHeaderParams(n.field),t)),[h,n.field]),j=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>({onClick:L(ne.columnHeaderClick),onDoubleClick:L(ne.columnHeaderDoubleClick),onMouseOver:L(ne.columnHeaderOver),onMouseOut:L(ne.columnHeaderOut),onMouseEnter:L(ne.columnHeaderEnter),onMouseLeave:L(ne.columnHeaderLeave),onKeyDown:L(ne.columnHeaderKeyDown),onFocus:L(ne.columnHeaderFocus),onBlur:L(ne.columnHeaderBlur)})),[L]),F=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>({onDragStart:L(ne.columnHeaderDragStart),onDragEnter:L(ne.columnHeaderDragEnter),onDragOver:L(ne.columnHeaderDragOver),onDragEnd:L(ne.columnHeaderDragEnd)})),[L]),D=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>({onMouseDown:L(ne.columnSeparatorMouseDown)})),[L]),z=[null==y?void 0:y.columnHeader];if(n.headerClassName){const e=dr(n.headerClassName)?n.headerClassName({field:n.field,colDef:n}):n.headerClassName;z.push(e)}const T=(0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])("center"===n.headerAlign&&Kr["columnHeader--alignCenter"],"right"===n.headerAlign&&Kr["columnHeader--alignRight"],{[Kr["columnHeader--sortable"]]:n.sortable,[Kr["columnHeader--moving"]]:s,[Kr["columnHeader--sorted"]]:M,[Kr["columnHeader--numeric"]]:P,[Kr.withBorder]:S},...z),H=n.computedWidth;let A;null!=u&&(A={"aria-sort":"asc"===u?"ascending":"descending"});const $=!R&&!n.disableColumnMenu&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(Pl,{column:n,columnMenuId:C,columnMenuButtonId:w,open:l,iconButtonRef:O}),_=react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,!k&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(Fl,{counter:f}),n.sortable&&!n.hideSortIcons&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(wl,{direction:u,index:p}));return react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect((()=>{const e=h.current.state.columnMenu;if(g&&!e.open){const e=v.current.querySelector('[tabindex="0"]');e?e.focus():v.current.focus()}})),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",Object.assign({ref:v,className:T,key:n.field,"data-field":n.field,style:{width:H,minWidth:H,maxWidth:H},role:"columnheader",tabIndex:b,"aria-colindex":a+1},A,j),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",Object.assign({className:Kr.columnHeaderDraggableContainer,draggable:!E&&!n.disableReorder},F),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:Kr.columnHeaderTitleContainer},I||react__WEBPACK_IMPORTED_MODULE_0__.createElement(kl,{label:n.headerName||n.field,description:n.description,columnWidth:H}),_),$),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Ml,Object.assign({resizable:!x&&!!n.resizable,resizing:c,height:i},D)),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Hl,{columnMenuId:C,columnMenuButtonId:w,field:n.field,open:l,target:O.current,ContentComponent:h.current.components.ColumnMenu,contentComponentProps:null===(o=h.current.componentsProps)||void 0===o?void 0:o.columnMenu}))}function $l(t){const{columns:r}=t,o=ae(),n=Wr(o,zo),l=Wr(o,fo),a=Wr(o,Eo),i=Wr(o,to),s=Wr(o,oo),c=Wr(o,Ro),u=Wr(o,Gr).renderContext,d=Wr(o,Po),p=Wr(o,Mo),m=Wr(o,Fo),f=Wr(o,Do),g=r.map(((t,r)=>{const o=(g=r,null==u?g:g+u.firstColIdx);var g;const b=0===o,h=!(null===d&&null===p),v=null!==d&&d.field===t.field||b&&!h?0:-1,C=null!==c&&c.field===t.field,w=f.open&&f.field===t.field;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Al,Object.assign({key:t.field},l[t.field],{columnMenuOpen:w,filterItemsCounter:a[t.field]&&a[t.field].length,options:n,headerHeight:m,isDragging:t.field===i,column:t,colIndex:o,isResizing:s===t.field,hasFocus:C,tabIndex:v}))}));return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,g)}const _l=e=>e.containerSizes,Nl=e=>e.viewportSizes,Vl=e=>e.scrollBar,Bl=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(_l,(e=>null==e?null:e.dataContainerSizes)),Wl=(0,reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector)(_l,(e=>null==e?0:e.dataContainerSizes.height)),Gl=e=>e.scrollBar,Ul=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(t,o){var n;const l=ae(),a=Wr(l,de),i=Wr(l,_l),s=Wr(l,Fo),c=Wr(l,Gr).renderContext,{hasScrollX:u}=Wr(l,Gl),d=Wr(l,to),p=(0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(Kr.columnHeaderWrapper,{scroll:u,[Kr.columnHeaderDropZone]:d}),m=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>null==c?[]:a.slice(c.firstColIdx,c.lastColIdx+1)),[a,c]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Qr,{scrollDirection:"left"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{ref:o,className:p,"aria-rowindex":1,role:"row",style:{minWidth:null===(n=null==i?void 0:i.totalSizes)||void 0===n?void 0:n.width}},react__WEBPACK_IMPORTED_MODULE_0__.createElement(Zr,{width:null==c?void 0:c.leftEmptyWidth,height:s}),react__WEBPACK_IMPORTED_MODULE_0__.createElement($l,{columns:m}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Zr,{width:null==c?void 0:c.rightEmptyWidth,height:s})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Qr,{scrollDirection:"right"}))})),Kl=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(t,o){const{className:n,style:l}=t,a=un(t,["className","style"]),i=ae(),s=Wr(i,Fo);return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",Object.assign({ref:o,className:(0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(Kr.columnsContainer,n)},a,{style:Object.assign({minHeight:s,maxHeight:s,lineHeight:`${s}px`},l)}))}));function Zl(t){return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:Kr.main},t.children)}const Yl=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(t,o){const{className:n,size:l}=t,a=un(t,["className","size"]),i=ae(),s=Qo(),c=Wr(i,Fo),u=Wr(i,jo),d=Wr(i,Wl);react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{i.current.resize()}),[i]);const p=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>{if(!s.autoHeight)return l.height;return c+(d div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .Mui-resizeTriggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',o=t.head||t.getElementsByTagName("head")[0],n=t.createElement("style");n.id="muiDetectElementResize",n.type="text/css",null!=e&&n.setAttribute("nonce",e),n.styleSheet?n.styleSheet.cssText=r:n.appendChild(t.createTextNode(r)),o.appendChild(n)}}(i),n.__resizeLast__={},n.__resizeListeners__=[],(n.__resizeTriggers__=i.createElement("div")).className="Mui-resizeTriggers",n.__resizeTriggers__.innerHTML='',n.appendChild(n.__resizeTriggers__),r(n),n.addEventListener("scroll",o,!0),a&&(n.__resizeTriggers__.__animationListener__=function(e){e.animationName==d&&r(n)},n.__resizeTriggers__.addEventListener(a,n.__resizeTriggers__.__animationListener__))}n.__resizeListeners__.push(l)},removeResizeListener:function(e,t){if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",o,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(a,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}const Xl=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(t,r){const{children:o,defaultHeight:n=null,defaultWidth:l=null,disableHeight:a=!1,disableWidth:i=!1,nonce:s,onResize:u,style:d}=t,m=un(t,["children","defaultHeight","defaultWidth","disableHeight","disableWidth","nonce","onResize","style"]),[f,g]=react__WEBPACK_IMPORTED_MODULE_0__.useState({height:n,width:l}),b=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),h=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),v=lr((()=>{if(h.current){const e=h.current.offsetHeight||0,t=h.current.offsetWidth||0,r=(0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_21__["default"])(h.current).getComputedStyle(h.current),o=parseInt(r.paddingLeft,10)||0,n=parseInt(r.paddingRight,10)||0,l=e-(parseInt(r.paddingTop,10)||0)-(parseInt(r.paddingBottom,10)||0),s=t-o-n;(!a&&f.height!==l||!i&&f.width!==s)&&(g({height:l,width:s}),u&&u({height:l,width:s}))}}));ar((()=>{var e;if(h.current=b.current.parentElement,!h)return;const t=(0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_21__["default"])(null!==(e=h.current)&&void 0!==e?e:void 0),r=ql(s,t);return r.addResizeListener(h.current,v),v(),()=>{r.removeResizeListener(h.current,v)}}),[s,v]);const C={overflow:"visible"},w={};a||(C.height=0,w.height=f.height),i||(C.width=0,w.width=f.width);const O=(0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_5__["default"])(b,r);return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",Object.assign({ref:O,style:Object.assign(Object.assign({},C),d)},m),null===f.height&&null===f.width?null:o(w))})),Jl=e=>e.editRows;function Ql(t){const{className:o}=t,n=un(t,["className"]),l=ae(),a=Wr(l,Bl),i={minWidth:null==a?void 0:a.width,minHeight:null==a?void 0:a.height};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",Object.assign({className:(0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(Kr.dataContainer,o),style:i},n))}const ea=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(t,r){const{height:o,width:n,children:l}=t;return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{ref:r,className:Kr.renderingZone,style:{maxHeight:o,width:n}},l)})),ta="MuiDataGrid",ra="root",oa="columnHeader",na="row",la="cell",aa="MuiDataGrid-columnHeader",ia="MuiDataGrid-row",sa="MuiDataGrid-cell",ca="MuiDataGrid-columnSeparator--resizable",ua="MuiDataGrid-columnHeaderTitleContainer",da="MuiDataGrid-columnHeaderDropZone",pa="MuiDataGrid-columnHeader--dragging";function ma(t){const{selected:o,id:n,rowIndex:l,children:a}=t,i=l+2,s=ae(),c=Wr(s,jo),{classes:u,getRowClassName:d,editMode:p}=Wr(s,zo),m=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>t=>{(1!==t.target.nodeType||t.currentTarget.contains(t.target))&&s.current.getRow(n)&&s.current.publishEvent(e,null==s?void 0:s.current.getRowParams(n),t)}),[s,n]),f=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>({onClick:m(ne.rowClick),onDoubleClick:m(ne.rowDoubleClick),onMouseOver:m(ne.rowOver),onMouseOut:m(ne.rowOut),onMouseEnter:m(ne.rowEnter),onMouseLeave:m(ne.rowLeave)})),[m]),g={maxHeight:c,minHeight:c},b=dr(d)&&d(s.current.getRowParams(n)),h=(0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(b,null==u?void 0:u.row,{"Mui-selected":o,"MuiDataGrid-row--editing":s.current.getRowMode(n)===il.Edit,"MuiDataGrid-row--editable":p===ll.Row});return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",Object.assign({key:n,"data-id":n,"data-rowindex":l,role:"row",className:h,"aria-rowindex":i,"aria-selected":o,style:g},f),a)}function fa(e,t,r){if(null==e)throw new Error(["Material-UI: The data grid component requires all rows to have a unique id property.",r||"A row was provided without id in the rows prop:",JSON.stringify(t)].join("\n"));return!0}const ga=react__WEBPACK_IMPORTED_MODULE_0__.memo((function(t){const{align:o,className:n,children:l,colIndex:a,cellMode:i,field:s,formattedValue:c,hasFocus:u,height:d,isEditable:p,isSelected:g,rowIndex:b,rowId:h,showRightBorder:v,tabIndex:C,value:w,width:O}=t,y=null==c?w:c,E=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),S=ae(),x=(0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(n,`${Kr[`cell--text${(0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_22__["default"])(o)}`]}`,{[`${Kr.withBorder}`]:v,[`${Kr["cell--editable"]}`]:p}),R=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>t=>{if(t.relatedTarget&&t.currentTarget.contains(t.relatedTarget))return;const r=S.current.getCellParams(h,s||"");S.current.publishEvent(e,r,t)}),[S,s,h]),k=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>t=>{const r=S.current.getCellParams(h,s||"");S.current.publishEvent(e,r,t)}),[S,s,h]),M=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>t=>{if(1===t.target.nodeType&&!t.currentTarget.contains(t.target))return;if(!S.current.getRow(h))return;const r=S.current.getCellParams(h,s||"");S.current.publishEvent(e,r,t)}),[S,s,h]),P=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>({onClick:M(ne.cellClick),onDoubleClick:M(ne.cellDoubleClick),onMouseDown:M(ne.cellMouseDown),onMouseUp:k(ne.cellMouseUp),onMouseOver:M(ne.cellOver),onMouseOut:M(ne.cellOut),onMouseEnter:M(ne.cellEnter),onMouseLeave:M(ne.cellLeave),onKeyDown:M(ne.cellKeyDown),onBlur:R(ne.cellBlur),onFocus:M(ne.cellFocus),onDragStart:M(ne.cellDragStart),onDragEnter:M(ne.cellDragEnter),onDragOver:M(ne.cellDragOver)})),[M,R,k]),I={minWidth:O,maxWidth:O,lineHeight:d-1+"px",minHeight:d,maxHeight:d};return react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect((()=>{if(!u||i===al.Edit)return;const e=(0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_23__["default"])(S.current.rootElementRef.current);if(E.current&&!E.current.contains(e.activeElement)){const e=E.current.querySelector('[tabindex="0"]');e?e.focus():E.current.focus()}})),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",Object.assign({ref:E,className:x,role:"cell","data-value":w,"data-field":s,"data-rowindex":b,"data-colindex":a,"data-rowselected":g,"data-editable":p,"data-mode":i,"aria-colindex":a+1,style:I,tabIndex:"view"!==i&&p?-1:C},P),null!=l?l:null==y?void 0:y.toString())})),ba=react__WEBPACK_IMPORTED_MODULE_0__.memo((function(t){const{columns:o,firstColIdx:n,hasScrollX:l,hasScrollY:a,height:i,id:s,getCellClassName:c,lastColIdx:u,rowIndex:d,cellFocus:p,cellTabIndex:m,showCellRightBorder:f,isSelected:g,editRowState:b,cellClassName:h}=t,v=un(t,["columns","firstColIdx","hasScrollX","hasScrollY","height","id","getCellClassName","lastColIdx","rowIndex","cellFocus","cellTabIndex","showCellRightBorder","isSelected","editRowState","cellClassName"]),C=ae(),w=o.slice(n,u+1).map(((e,u)=>{const w=n+u,O=w===o.length-1,y=O?!(O&&l&&!a)&&!t.extendRowFullWidth:f,E=C.current.getCellParams(s,e.field),S=[h];e.cellClassName&&S.push((0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(dr(e.cellClassName)?e.cellClassName(E):e.cellClassName));const x=b&&b[e.field];let R=null;if(null==x&&e.renderCell&&(R=e.renderCell(Object.assign(Object.assign({},E),{api:C.current})),S.push(Kr["cell--withRenderer"])),null!=x&&e.renderEditCell){const t=Object.assign(Object.assign(Object.assign({},E),x),{api:C.current});R=e.renderEditCell(t),S.push(Kr["cell--editing"])}c&&S.push(c(E));return Object.assign({value:E.value,field:e.field,width:e.computedWidth,rowId:s,height:i,showRightBorder:y,formattedValue:E.formattedValue,align:e.align||"left",rowIndex:d,cellMode:E.cellMode,colIndex:w,children:R,isEditable:E.isEditable,isSelected:g,hasFocus:null!==p&&p.id===s&&p.field===e.field,tabIndex:null!==m&&m.id===s&&m.field===e.field&&"view"===E.cellMode?0:-1,className:(0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(S)},v)}));return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,w.map((t=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(ga,Object.assign({key:t.field},t)))))}));function ha(t){const{height:r,width:o,children:n}=t;return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:Kr.viewport,style:{minWidth:o,maxWidth:o,maxHeight:r}},n)}const va=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(t,r){const o=ae(),n=Qo(),l=Wr(o,zo),a=Wr(o,_l),i=Wr(o,Nl),s=Wr(o,Vl),c=Wr(o,de),u=Wr(o,Gr),d=Wr(o,xo),p=Wr(o,Mo),m=Wr(o,sn),f=Wr(o,ho),g=Wr(o,jo),b=Wr(o,Jl);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Ql,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(ha,Object.assign({},i),react__WEBPACK_IMPORTED_MODULE_0__.createElement(ea,Object.assign({ref:r},(null==a?void 0:a.renderingZone)||{width:0,height:0}),(()=>{if(null==u.renderContext)return null;return f.slice(u.renderContext.firstRowIdx,u.renderContext.lastRowIdx).map((([t,r],o)=>{var a;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(ma,{key:t,id:t,selected:void 0!==m[t],rowIndex:u.renderContext.firstRowIdx+o},react__WEBPACK_IMPORTED_MODULE_0__.createElement(Zr,{width:u.renderContext.leftEmptyWidth,height:g}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(ba,{columns:c,row:r,id:t,height:g,firstColIdx:u.renderContext.firstColIdx,lastColIdx:u.renderContext.lastColIdx,hasScrollX:s.hasScrollX,hasScrollY:s.hasScrollY,showCellRightBorder:!!n.showCellRightBorder,extendRowFullWidth:!n.disableExtendRowFullWidth,rowIndex:u.renderContext.firstRowIdx+o,cellFocus:d,cellTabIndex:p,isSelected:void 0!==m[t],editRowState:b[t],cellClassName:null===(a=l.classes)||void 0===a?void 0:a.cell,getCellClassName:n.getCellClassName}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Zr,{width:u.renderContext.rightEmptyWidth,height:g}))}))})())))}));function Ca(){var t,r,o;const n=ae(),l=Qo(),a=Wr(n,lo),i=Wr(n,Co),s=!l.loading&&0===a,c=!l.loading&&a>0&&0===i;return s?react__WEBPACK_IMPORTED_MODULE_0__.createElement(n.current.components.NoRowsOverlay,Object.assign({},null===(t=l.componentsProps)||void 0===t?void 0:t.noRowsOverlay)):c?react__WEBPACK_IMPORTED_MODULE_0__.createElement(n.current.components.NoResultsOverlay,Object.assign({},null===(r=l.componentsProps)||void 0===r?void 0:r.noResultsOverlay)):l.loading?react__WEBPACK_IMPORTED_MODULE_0__.createElement(n.current.components.LoadingOverlay,Object.assign({},null===(o=l.componentsProps)||void 0===o?void 0:o.loadingOverlay)):null}function wa(t){const{children:r}=t,o=ae(),n=Qo(),l=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),a=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),i=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),s=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);o.current.columnHeadersContainerElementRef=a,o.current.columnHeadersElementRef=l,o.current.windowRef=i,o.current.renderingZoneRef=s;const c=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>o.current.publishEvent(ne.resize,e)),[o]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Zl,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Ca,null),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Kl,{ref:a},react__WEBPACK_IMPORTED_MODULE_0__.createElement(Ul,{ref:l})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Xl,{nonce:n.nonce,disableHeight:n.autoHeight,onResize:c},(t=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Yl,{ref:i,size:t},react__WEBPACK_IMPORTED_MODULE_0__.createElement(va,{ref:s})))),r)}class Oa extends react__WEBPACK_IMPORTED_MODULE_0__.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){this.props.api.current&&(this.logError(e),this.props.api.current.showError({error:e,errorInfo:t}))}logError(e,t){this.props.logger.error(`An unexpected error occurred. Error: ${e&&e.message}. `,e,t)}render(){var e;return this.props.hasError||(null===(e=this.state)||void 0===e?void 0:e.hasError)?this.props.render(this.props.componentProps||this.state):this.props.children}}function ya(t){const{children:r}=t,o=ae(),n=xr(o,"GridErrorHandler"),l=Qo(),[a]=Br(o);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Oa,{hasError:null!=a.error,componentProps:a.error,api:o,logger:n,render:t=>{var r;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Zl,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(o.current.components.ErrorOverlay,Object.assign({},t,null===(r=l.componentsProps)||void 0===r?void 0:r.errorOverlay)))}},r)}function Ea(){var t;const r=ae(),o=Qo(),n=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);return r.current.footerRef=n,o.hideFooter?null:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{ref:n},react__WEBPACK_IMPORTED_MODULE_0__.createElement(r.current.components.Footer,Object.assign({},null===(t=o.componentsProps)||void 0===t?void 0:t.footer)))}function Sa(){var t;const r=ae(),o=Qo(),n=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);return r.current.headerRef=n,react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{ref:n},react__WEBPACK_IMPORTED_MODULE_0__.createElement(r.current.components.Header,Object.assign({},null===(t=o.componentsProps)||void 0===t?void 0:t.header)))}const xa=(0,_material_ui_styles__WEBPACK_IMPORTED_MODULE_16__["default"])((e=>{const t="light"===pr(e.palette)?(0,_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_24__.lighten)(fr(e.palette.divider,1),.88):(0,_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_24__.darken)(fr(e.palette.divider,1),.68),r={root:Object.assign(Object.assign({flex:1,boxSizing:"border-box",position:"relative",border:`1px solid ${t}`,borderRadius:e.shape.borderRadius,color:e.palette.text.primary},e.typography.body2),{outline:"none",height:"100%",display:"flex",flexDirection:"column",[`&.${Kr.autoHeight}`]:{height:"auto"},[`& .${Kr.main}`]:{position:"relative",flexGrow:1,display:"flex",flexDirection:"column"},[`& .${Kr.overlay}`]:{display:"flex",position:"absolute",top:0,left:0,right:0,bottom:0,alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:fr(e.palette.background.default,e.palette.action.disabledOpacity)},[`& .${Kr.toolbarContainer}`]:{display:"flex",alignItems:"center",padding:"4px 4px 0"},[`& .${Kr.columnsContainer}`]:{position:"absolute",top:0,left:0,right:0,overflow:"hidden",display:"flex",flexDirection:"column",borderBottom:`1px solid ${t}`},[`& .${Kr.scrollArea}`]:{position:"absolute",top:0,zIndex:101,width:20,bottom:0},[`& .${Kr["scrollArea--left"]}`]:{left:0},[`& .${Kr["scrollArea--right"]}`]:{right:0},[`& .${Kr.columnHeaderWrapper}`]:{display:"flex",width:"100%",alignItems:"center",overflow:"hidden"},[`& .${Kr.columnHeader}, & .${Kr.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${Kr.columnHeader}:focus-within, & .${Kr.cell}:focus-within`]:{outline:`solid ${fr(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${Kr.columnHeader}:focus, & .${Kr.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${Kr.columnHeaderCheckbox}, & .${Kr.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${Kr.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${Kr.columnHeader}:not(.${Kr["columnHeader--sorted"]}) .${Kr.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${Kr.columnHeader}:not(.${Kr["columnHeader--sorted"]}):hover .${Kr.sortIcon}`]:{opacity:.5},[`& .${Kr.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden",padding:"0 6px"},[`& .${Kr.sortIcon}, & .${Kr.filterIcon}`]:{fontSize:"inherit"},[`& .${Kr["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${Kr["columnHeader--alignCenter"]} .${Kr.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${Kr["columnHeader--alignRight"]} .${Kr.columnHeaderDraggableContainer}, & .${Kr["columnHeader--alignRight"]} .${Kr.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${Kr["columnHeader--alignCenter"]} .${Kr.menuIcon}, & .${Kr["columnHeader--alignRight"]} .${Kr.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${Kr.columnHeaderTitle}`]:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:e.typography.fontWeightMedium},[`& .${Kr["columnHeader--moving"]}`]:{backgroundColor:e.palette.action.hover},[`& .${Kr.columnSeparator}`]:{position:"absolute",right:-12,zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},[`& .${Kr["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:e.palette.text.primary,"@media (hover: none)":{color:t}},"&.Mui-resizing":{color:e.palette.text.primary}},[`& .${Kr.iconSeparator}`]:{color:"inherit"},[`& .${Kr.menuIcon}`]:{visibility:"hidden",fontSize:20,marginRight:-6,display:"flex",alignItems:"center"},[`& .${Kr.columnHeader}:hover .${Kr.menuIcon}, .${Kr.menuOpen}`]:{visibility:"visible"},[`& .${Kr.columnHeaderWrapper}.scroll .${Kr.columnHeader}:last-child`]:{borderRight:"none"},[`& .${Kr.dataContainer}`]:{position:"relative",flexGrow:1,display:"flex",flexDirection:"column"},[`& .${Kr.window}`]:{position:"absolute",bottom:0,left:0,right:0,overflowX:"auto"},[`& .${Kr.viewport}`]:{position:"sticky",top:0,left:0,display:"flex",flexDirection:"column",overflow:"hidden"},[`& .${Kr.row}`]:{display:"flex",width:"fit-content","&:hover":{backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:fr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:fr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:fr(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${Kr.cell}`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",borderBottom:`1px solid ${t}`},[`& .${Kr.cell}.${Kr["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:e.palette.background.paper,"&:focus-within":{outline:`solid ${e.palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${Kr["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${Kr["row--editing"]} .${Kr.cell}`]:{boxShadow:e.shadows[0],backgroundColor:e.palette.background.paper},[`& .${Kr.editInputCell}`]:Object.assign(Object.assign({},e.typography.body2),{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}}),[`& .${Kr.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${Kr.booleanCell}[data-value="true"]`]:{color:e.palette.text.secondary},[`& .${Kr.booleanCell}[data-value="false"]`]:{color:e.palette.text.disabled},[`& .${Kr.columnHeaderWrapper} .${Kr.cell}`]:{borderBottom:"none"},[`& .${Kr["cell--withRenderer"]}`]:{display:"flex",alignItems:"center"},[`& .${Kr.withBorder}`]:{borderRight:`1px solid ${t}`},[`& .${Kr["cell--textLeft"]}`]:{textAlign:"left"},[`& .${Kr["cell--textLeft"]}.${Kr["cell--withRenderer"]}, & .${Kr["cell--textLeft"]}.${Kr["cell--editing"]}`]:{justifyContent:"flex-start"},[`& .${Kr["cell--textRight"]}`]:{textAlign:"right"},[`& .${Kr["cell--textRight"]}.${Kr["cell--withRenderer"]}, & .${Kr["cell--textRight"]}.${Kr["cell--editing"]}`]:{justifyContent:"flex-end"},[`& .${Kr["cell--textCenter"]}`]:{textAlign:"center"},[`& .${Kr["cell--textCenter"]}.${Kr["cell--withRenderer"]}, & .${Kr["cell--textCenter"]}.${Kr["cell--editing"]}`]:{justifyContent:"center"},[`& .${Kr.rowCount}, & .${Kr.selectedRowCount}`]:{alignItems:"center",display:"flex",margin:e.spacing(0,2)},[`& .${Kr.footerContainer}`]:{display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,[`& .${Kr.selectedRowCount}`]:{visibility:"hidden",width:0,height:0,[e.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}}},[`& .${Kr.columnHeaderDropZone} .${Kr.columnHeaderDraggableContainer}`]:{cursor:"move"},[`& .${Kr.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%"},[`& .${Kr["columnHeader--dragging"]}`]:{background:e.palette.background.paper,padding:"0 12px",borderRadius:e.shape.borderRadius,opacity:e.palette.action.disabledOpacity}})};if("dark"===pr(e.palette)){const e="#202022",t="#585859",o="#838384";r.root=Object.assign(Object.assign({},r.root),{scrollbarColor:`${t} ${e}`,"& *::-webkit-scrollbar":{backgroundColor:e},"& *::-webkit-scrollbar-thumb":{borderRadius:8,backgroundColor:t,minHeight:24,border:`3px solid ${e}`},"& *::-webkit-scrollbar-thumb:focus":{backgroundColor:o},"& *::-webkit-scrollbar-thumb:active":{backgroundColor:o},"& *::-webkit-scrollbar-thumb:hover":{backgroundColor:o},"& *::-webkit-scrollbar-corner":{backgroundColor:e}})}return r}),{name:"MuiDataGrid",defaultTheme:gr()}),Ra=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(t,o){var n;const l=xa(),a=ae(),i=Qo(),{children:s,className:u}=t,d=un(t,["children","className"]),p=Wr(a,ge),[m]=Br(a),f=Wr(a,zo),g=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),b=(0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_5__["default"])(g,o);return a.current.rootElementRef=g,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_NoSsr__WEBPACK_IMPORTED_MODULE_25__["default"],null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",Object.assign({ref:b,className:(0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(l.root,null===(n=f.classes)||void 0===n?void 0:n.root,i.className,u,{[Kr.autoHeight]:i.autoHeight}),role:"grid","aria-colcount":p,"aria-rowcount":m.rows.totalRowCount,"aria-multiselectable":!i.disableMultipleSelection,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"],style:i.style},d),s))})),ka=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(t,o){const{className:n}=t,l=un(t,["className"]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",Object.assign({ref:o,className:(0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(Kr.footerContainer,n)},l))})),Ma=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(t,o){const{className:n,style:l}=t,a=un(t,["className","style"]),i=ae(),s=Wr(i,Fo);return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",Object.assign({ref:o,className:(0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(Kr.overlay,n),style:Object.assign({top:s},l)},a))})),Pa=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(t,o){const{className:n,children:l}=t,a=un(t,["className","children"]);return l?react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",Object.assign({ref:o,className:(0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(Kr.toolbarContainer,n)},a),l):null})),Ia=t=>{const{onClick:r}=t,o=ae(),n=Qo(),l=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{r(e),o.current.showPreferences(jl.columns)}),[o,r]);return n.disableColumnSelector?null:react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_MenuItem__WEBPACK_IMPORTED_MODULE_11__["default"],{onClick:l},o.current.getLocaleText("columnMenuShowColumns"))},La=t=>{const{column:r,onClick:o}=t,n=ae(),l=Qo(),a=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{o(e),n.current.showFilterPanel(null==r?void 0:r.field)}),[n,null==r?void 0:r.field,o]);return l.disableColumnFilter||!(null==r?void 0:r.filterable)?null:react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_MenuItem__WEBPACK_IMPORTED_MODULE_11__["default"],{onClick:a},n.current.getLocaleText("columnMenuFilter"))},ja=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(t,o){const{hideMenu:n,currentColumn:l,open:a,id:i,labelledby:s,className:c,children:u}=t,d=un(t,["hideMenu","currentColumn","open","id","labelledby","className","children"]),p=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{Ao(e.key)&&e.preventDefault(),Xo(e.key)&&n()}),[n]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_MenuList__WEBPACK_IMPORTED_MODULE_26__["default"],Object.assign({id:i,ref:o,className:(0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])("MuiDataGrid-gridMenuList",c),"aria-labelledby":s,onKeyDown:p,autoFocus:a},d),u)})),Fa=t=>{const{column:r,onClick:o}=t,n=ae(),l=Qo(),a=react__WEBPACK_IMPORTED_MODULE_0__.useRef(),i=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{o(e),a.current=setTimeout((()=>{n.current.setColumnVisibility(null==r?void 0:r.field,!1)}),100)}),[n,null==r?void 0:r.field,o]);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>()=>clearTimeout(a.current)),[]),l.disableColumnSelector?null:react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_MenuItem__WEBPACK_IMPORTED_MODULE_11__["default"],{onClick:i},n.current.getLocaleText("columnMenuHideColumn"))},Da=t=>{const{column:r,onClick:o}=t,n=ae(),l=Wr(n,mo),a=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>{if(!r)return null;const e=l.find((e=>e.field===r.field));return null==e?void 0:e.sort}),[r,l]),i=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{o(e);const t=e.currentTarget.getAttribute("data-value")||null;null==n||n.current.sortColumn(r,t)}),[n,r,o]);return r&&r.sortable?react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_MenuItem__WEBPACK_IMPORTED_MODULE_11__["default"],{onClick:i,disabled:null==a},n.current.getLocaleText("columnMenuUnsort")),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_MenuItem__WEBPACK_IMPORTED_MODULE_11__["default"],{onClick:i,"data-value":"asc",disabled:"asc"===a},n.current.getLocaleText("columnMenuSortAsc")),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_MenuItem__WEBPACK_IMPORTED_MODULE_11__["default"],{onClick:i,"data-value":"desc",disabled:"desc"===a},n.current.getLocaleText("columnMenuSortDesc"))):null},za=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(t,r){const{hideMenu:o,currentColumn:n}=t;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(ja,Object.assign({ref:r},t),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Da,{onClick:o,column:n}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(La,{onClick:o,column:n}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Fa,{onClick:o,column:n}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Ia,{onClick:o,column:n}))})),Ta=(0,_material_ui_styles__WEBPACK_IMPORTED_MODULE_16__["default"])((()=>({root:{display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400}})),{name:"MuiGridPanelContent"});function Ha(t){const o=Ta(),{className:n}=t,l=un(t,["className"]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",Object.assign({className:(0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(o.root,n)},l))}const Aa=(0,_material_ui_styles__WEBPACK_IMPORTED_MODULE_16__["default"])((()=>({root:{padding:4,display:"flex",justifyContent:"space-between"}})),{name:"MuiGridPanelFooter"});function $a(t){const o=Aa(),{className:n}=t,l=un(t,["className"]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",Object.assign({className:(0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(o.root,n)},l))}const _a=(0,_material_ui_styles__WEBPACK_IMPORTED_MODULE_16__["default"])((e=>({root:{padding:e.spacing(1)}})),{name:"MuiDataGridPanelHeader",defaultTheme:gr()});function Na(t){const o=_a(),{className:n}=t,l=un(t,["className"]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",Object.assign({className:(0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(o.root,n)},l))}const Va=(0,_material_ui_styles__WEBPACK_IMPORTED_MODULE_16__["default"])((()=>({root:{display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}})),{name:"MuiGridPanelWrapper"}),Ba=()=>!0;function Wa(t){const o=Va(),{className:n}=t,l=un(t,["className"]),a=mr().startsWith("v4")?{getDoc:()=>document}:{};return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_Unstable_TrapFocus__WEBPACK_IMPORTED_MODULE_27__["default"],Object.assign({open:!0,disableEnforceFocus:!0,isEnabled:Ba},a),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",Object.assign({tabIndex:-1,className:(0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(o.root,n)},l)))}let Ga=!1;"undefined"!=typeof process&&void 0!==process.env.GRID_EXPERIMENTAL_ENABLED&&br()&&window.localStorage.getItem("GRID_EXPERIMENTAL_ENABLED")?Ga="true"===window.localStorage.getItem("GRID_EXPERIMENTAL_ENABLED"):"undefined"!=typeof process&&(Ga="true"===process.env.GRID_EXPERIMENTAL_ENABLED);const Ua=Ga,Ka=(0,_material_ui_styles__WEBPACK_IMPORTED_MODULE_16__["default"])({container:{padding:"8px 0px 8px 8px"},column:{display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px"},switch:{marginRight:4},dragIcon:{justifyContent:"flex-end"}},{name:"MuiDataGridColumnsPanel"});function Za(){const t=Ka(),r=ae(),o=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),n=Wr(r,ue),l=Qo(),[a,i]=react__WEBPACK_IMPORTED_MODULE_0__.useState(""),s=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{const{name:t}=e.target,o=r.current.getColumn(t);r.current.setColumnVisibility(t,!!o.hide)}),[r]),c=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{r.current.updateColumns(n.map((t=>(t.hide=e,t))))}),[r,n]),u=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>c(!1)),[c]),d=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>c(!0)),[c]),p=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{i(e.target.value)}),[]),m=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>a?n.filter((e=>e.field.toLowerCase().indexOf(a.toLowerCase())>-1||e.headerName&&e.headerName.toLowerCase().indexOf(a.toLowerCase())>-1)):n),[n,a]);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{o.current.focus()}),[]),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Wa,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Na,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_TextField__WEBPACK_IMPORTED_MODULE_9__["default"],{label:r.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:r.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:o,value:a,onChange:p,variant:"standard",fullWidth:!0})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Ha,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:t.container},m.map((o=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{key:o.field,className:t.column},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_FormControlLabel__WEBPACK_IMPORTED_MODULE_28__["default"],{control:react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_Switch__WEBPACK_IMPORTED_MODULE_29__["default"],{className:t.switch,checked:!o.hide,onClick:s,name:o.field,color:"primary",size:"small"}),label:o.headerName||o.field}),!l.disableColumnReorder&&Ua&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_IconButton__WEBPACK_IMPORTED_MODULE_13__["default"],{draggable:!0,className:t.dragIcon,"aria-label":r.current.getLocaleText("columnsPanelDragIconLabel"),title:r.current.getLocaleText("columnsPanelDragIconLabel"),size:"small",disabled:!0},react__WEBPACK_IMPORTED_MODULE_0__.createElement(Dn,null))))))),react__WEBPACK_IMPORTED_MODULE_0__.createElement($a,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_Button__WEBPACK_IMPORTED_MODULE_30__["default"],{onClick:d,color:"primary"},r.current.getLocaleText("columnsPanelHideAllButton")),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_Button__WEBPACK_IMPORTED_MODULE_30__["default"],{onClick:u,color:"primary"},r.current.getLocaleText("columnsPanelShowAllButton"))))}const Ya=(0,_material_ui_styles__WEBPACK_IMPORTED_MODULE_16__["default"])((e=>({root:{zIndex:e.zIndex.modal},paper:{backgroundColor:e.palette.background.paper,minWidth:300,maxHeight:450,display:"flex"}})),{name:"MuiGridPanel",defaultTheme:gr()}),qa=ur("MuiGridPanel",["root","paper"]),Xa=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(t,o){var n;const{children:l,className:a,open:i}=t,s=un(t,["children","className","open"]),c=Ya(s),u=ae(),d=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{u.current.hidePreferences()}),[u]),p=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{To(e.key)&&u.current.hidePreferences()}),[u]),m=null===(n=null==u?void 0:u.current.columnHeadersContainerElementRef)||void 0===n?void 0:n.current;return m?react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_Popper__WEBPACK_IMPORTED_MODULE_17__["default"],Object.assign({ref:o,placement:"bottom-start",className:(0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(a,c.root),open:i,anchorEl:m,modifiers:"v5"===mr()?[{name:"flip",enabled:!1}]:{flip:{enabled:!1}}},s),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_ClickAwayListener__WEBPACK_IMPORTED_MODULE_18__["default"],{onClickAway:d},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_Paper__WEBPACK_IMPORTED_MODULE_20__["default"],{className:c.paper,elevation:8,onKeyDown:p},l))):null})),Ja=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(t,r){var o,n,l;const a=ae(),i=Wr(a,ue),s=Qo(),c=Wr(a,Il),u=c.openedPanelValue===jl.columns,d=!c.openedPanelValue||!u,p=a.current.components.ColumnsPanel,m=a.current.components.FilterPanel,f=a.current.components.Panel;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(f,Object.assign({ref:r,open:i.length>0&&c.open},null===(o=null==a?void 0:a.current.componentsProps)||void 0===o?void 0:o.panel,t),!s.disableColumnSelector&&u&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(p,Object.assign({},null===(n=null==a?void 0:a.current.componentsProps)||void 0===n?void 0:n.columnsPanel)),!s.disableColumnFilter&&d&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(m,Object.assign({},null===(l=null==a?void 0:a.current.componentsProps)||void 0===l?void 0:l.filterPanel)))})),Qa=(0,_material_ui_styles__WEBPACK_IMPORTED_MODULE_16__["default"])({root:{display:"flex",justifyContent:"space-around",padding:8},linkOperatorSelect:{minWidth:60},columnSelect:{width:150},operatorSelect:{width:120},filterValueInput:{width:190},closeIcon:{flexShrink:0,justifyContent:"flex-end",marginRight:6,marginBottom:2}},{name:"MuiGridFilterForm"});function ei(t){var r,o;const{item:n,hasMultipleFilters:l,deleteFilter:a,applyFilterChanges:i,multiFilterOperator:s,showMultiFilterOperators:c,disableMultiFilterOperator:u,applyMultiFilterOperatorChanges:p}=t,f=Qa(),g=ae(),b=Wr(g,me),h=(0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_8__["default"])(),v=(0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_8__["default"])(),C=(0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_8__["default"])(),w=(0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_8__["default"])(),y=(0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_8__["default"])(),E=(0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_8__["default"])(),x=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>n.columnField?g.current.getColumn(n.columnField):null),[g,n]),R=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{var e;const t=x();return n.operatorValue&&t?null===(e=t.filterOperators)||void 0===e?void 0:e.find((e=>e.value===n.operatorValue)):null}),[n,x]),k=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{const t=e.target.value,r=g.current.getColumn(t).filterOperators[0];i(Object.assign(Object.assign({},n),{value:void 0,columnField:t,operatorValue:r.value}))}),[g,i,n]),M=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{const t=e.target.value;i(Object.assign(Object.assign({},n),{operatorValue:t}))}),[i,n]),P=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{const t=e.target.value===zr.And.toString()?zr.And:zr.Or;p(t)}),[p]),I=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{a(n)}),[a,n]),L=R();return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:f.root},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_FormControl__WEBPACK_IMPORTED_MODULE_31__["default"],{variant:"standard",className:f.closeIcon},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_IconButton__WEBPACK_IMPORTED_MODULE_13__["default"],{"aria-label":g.current.getLocaleText("filterPanelDeleteIconLabel"),title:g.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:I,size:"small"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(Ln,{fontSize:"small"}))),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_FormControl__WEBPACK_IMPORTED_MODULE_31__["default"],{variant:"standard",className:f.linkOperatorSelect,style:{display:l?"block":"none",visibility:c?"visible":"hidden"}},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_InputLabel__WEBPACK_IMPORTED_MODULE_32__["default"],{htmlFor:h,id:v},g.current.getLocaleText("filterPanelOperators")),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_Select__WEBPACK_IMPORTED_MODULE_12__["default"],{labelId:v,id:h,value:s,onChange:P,disabled:!!u,native:!0},react__WEBPACK_IMPORTED_MODULE_0__.createElement("option",{key:zr.And.toString(),value:zr.And.toString()},g.current.getLocaleText("filterPanelOperatorAnd")),react__WEBPACK_IMPORTED_MODULE_0__.createElement("option",{key:zr.Or.toString(),value:zr.Or.toString()},g.current.getLocaleText("filterPanelOperatorOr")))),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_FormControl__WEBPACK_IMPORTED_MODULE_31__["default"],{variant:"standard",className:f.columnSelect},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_InputLabel__WEBPACK_IMPORTED_MODULE_32__["default"],{htmlFor:C,id:w},g.current.getLocaleText("filterPanelColumns")),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_Select__WEBPACK_IMPORTED_MODULE_12__["default"],{labelId:w,id:C,value:n.columnField||"",onChange:k,native:!0},b.map((t=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("option",{key:t.field,value:t.field},t.headerName||t.field))))),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_FormControl__WEBPACK_IMPORTED_MODULE_31__["default"],{variant:"standard",className:f.operatorSelect},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_InputLabel__WEBPACK_IMPORTED_MODULE_32__["default"],{htmlFor:y,id:E},g.current.getLocaleText("filterPanelOperators")),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_Select__WEBPACK_IMPORTED_MODULE_12__["default"],{labelId:E,id:y,value:n.operatorValue,onChange:M,native:!0},null===(o=null===(r=x())||void 0===r?void 0:r.filterOperators)||void 0===o?void 0:o.map((t=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("option",{key:t.value,value:t.value},t.label||g.current.getLocaleText(`filterOperator${(0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_22__["default"])(t.value)}`)))))),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_FormControl__WEBPACK_IMPORTED_MODULE_31__["default"],{variant:"standard",className:f.filterValueInput},(null==L?void 0:L.InputComponent)?react__WEBPACK_IMPORTED_MODULE_0__.createElement(L.InputComponent,Object.assign({apiRef:g,item:n,applyValue:i},L.InputComponentProps)):null))}function ti(){const t=ae(),[r]=Br(t),o=Qo(),n=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>r.filter.items.length>1),[r.filter.items.length]),l=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{t.current.upsertFilter(e)}),[t]),a=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{t.current.applyFilterLinkOperator(e)}),[t]),i=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{t.current.upsertFilter({})}),[t]),s=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{t.current.deleteFilter(e)}),[t]);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{0===r.filter.items.length&&i()}),[i,r.filter.items.length]),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Wa,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Ha,null,r.filter.items.map(((t,o)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(ei,{key:null==t.id?o:t.id,item:t,applyFilterChanges:l,deleteFilter:s,hasMultipleFilters:n,showMultiFilterOperators:o>0,multiFilterOperator:r.filter.linkOperator,disableMultiFilterOperator:1!==o,applyMultiFilterOperatorChanges:a})))),!o.disableMultipleColumnsFiltering&&react__WEBPACK_IMPORTED_MODULE_0__.createElement($a,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_Button__WEBPACK_IMPORTED_MODULE_30__["default"],{onClick:i,startIcon:react__WEBPACK_IMPORTED_MODULE_0__.createElement(jn,null),color:"primary"},t.current.getLocaleText("filterPanelAddFilter"))))}const ri=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(t,r){const{onClick:o}=t,n=un(t,["onClick"]),l=ae(),a=Qo(),i=l.current.components.ColumnSelectorIcon,{open:s,openedPanelValue:c}=Wr(l,Il);return a.disableColumnSelector?null:react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_Button__WEBPACK_IMPORTED_MODULE_30__["default"],Object.assign({ref:r,size:"small",color:"primary","aria-label":l.current.getLocaleText("toolbarColumnsLabel"),startIcon:react__WEBPACK_IMPORTED_MODULE_0__.createElement(i,null)},n,{onClick:e=>{s&&c===jl.columns?l.current.hidePreferences():l.current.showPreferences(jl.columns),null==o||o(e)}}),l.current.getLocaleText("toolbarColumns"))})),oi=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(t,r){const{onClick:o}=t,n=un(t,["onClick"]),l=ae(),a=Qo(),i=Wr(l,Lo),s=(0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_8__["default"])(),c=(0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_8__["default"])(),[u,p]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),m=l.current.components.DensityCompactIcon,f=l.current.components.DensityStandardIcon,g=l.current.components.DensityComfortableIcon,b=[{icon:react__WEBPACK_IMPORTED_MODULE_0__.createElement(m,null),label:l.current.getLocaleText("toolbarDensityCompact"),value:Pr.Compact},{icon:react__WEBPACK_IMPORTED_MODULE_0__.createElement(f,null),label:l.current.getLocaleText("toolbarDensityStandard"),value:Pr.Standard},{icon:react__WEBPACK_IMPORTED_MODULE_0__.createElement(g,null),label:l.current.getLocaleText("toolbarDensityComfortable"),value:Pr.Comfortable}],h=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{switch(i){case Pr.Compact:return react__WEBPACK_IMPORTED_MODULE_0__.createElement(m,null);case Pr.Comfortable:return react__WEBPACK_IMPORTED_MODULE_0__.createElement(g,null);default:return react__WEBPACK_IMPORTED_MODULE_0__.createElement(f,null)}}),[i,m,g,f]),v=()=>p(null);if(a.disableDensitySelector)return null;const C=b.map(((t,r)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_MenuItem__WEBPACK_IMPORTED_MODULE_11__["default"],{key:r,onClick:()=>{return e=t.value,l.current.setDensity(e),void p(null);var e},selected:t.value===i},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_ListItemIcon__WEBPACK_IMPORTED_MODULE_33__["default"],null,t.icon),t.label)));return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_Button__WEBPACK_IMPORTED_MODULE_30__["default"],Object.assign({ref:r,color:"primary",size:"small",startIcon:h(),"aria-label":l.current.getLocaleText("toolbarDensityLabel"),"aria-expanded":u?"true":void 0,"aria-haspopup":"menu","aria-labelledby":c,id:s},n,{onClick:e=>{p(e.currentTarget),null==o||o(e)}}),l.current.getLocaleText("toolbarDensity")),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Tl,{open:Boolean(u),target:u,onClickAway:v,position:"bottom-start"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_MenuList__WEBPACK_IMPORTED_MODULE_26__["default"],{id:c,className:"MuiDataGrid-gridMenuList","aria-labelledby":s,onKeyDown:e=>{Ao(e.key)&&e.preventDefault(),Xo(e.key)&&v()},autoFocusItem:Boolean(u)},C)))})),ni=(0,_material_ui_styles__WEBPACK_IMPORTED_MODULE_16__["default"])((e=>({list:{margin:e.spacing(1,1,.5),padding:e.spacing(0,1)}})),{name:"MuiGridToolbarFilterButton",defaultTheme:gr()}),li=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(t,r){const{componentsProps:o={}}=t,n=un(t,["componentsProps"]),l=o.button||{},a=ni(),i=ae(),s=Qo(),c=Wr(i,yo),u=Wr(i,Oo),d=Wr(i,ce),p=Wr(i,Il),f=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>{if(p.open)return i.current.getLocaleText("toolbarFiltersTooltipHide");if(0===c)return i.current.getLocaleText("toolbarFiltersTooltipShow");return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null,i.current.getLocaleText("toolbarFiltersTooltipActive")(c),react__WEBPACK_IMPORTED_MODULE_0__.createElement("ul",{className:a.list},u.map(((t,r)=>Object.assign({},d[t.columnField]&&react__WEBPACK_IMPORTED_MODULE_0__.createElement("li",{key:r},`${d[t.columnField].headerName||t.columnField}\n ${(e=>d[e.columnField].filterOperators.find((t=>t.value===e.operatorValue)).label||i.current.getLocaleText(`filterOperator${(0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_22__["default"])(e.operatorValue)}`).toString())(t)}\n ${t.value}`))))))}),[i,p.open,c,u,d,a]);if(s.disableColumnFilter)return null;const g=i.current.components.OpenFilterButtonIcon;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_Tooltip__WEBPACK_IMPORTED_MODULE_15__["default"],Object.assign({title:f,enterDelay:1e3},n),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_Button__WEBPACK_IMPORTED_MODULE_30__["default"],Object.assign({ref:r,size:"small",color:"primary","aria-label":i.current.getLocaleText("toolbarFiltersLabel"),startIcon:react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_Badge__WEBPACK_IMPORTED_MODULE_14__["default"],{badgeContent:c,color:"primary"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(g,null))},l,{onClick:e=>{var t;const{open:r,openedPanelValue:o}=p;r&&o===jl.filters?i.current.hideFilterPanel():i.current.showFilterPanel(),null===(t=l.onClick)||void 0===t||t.call(l,e)}}),i.current.getLocaleText("toolbarFilters")))})),ai=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(t,r){const{csvOptions:o,onClick:n}=t,l=un(t,["csvOptions","onClick"]),a=ae(),i=(0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_8__["default"])(),s=(0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_8__["default"])(),[c,u]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),p=a.current.components.ExportIcon,m=[];m.push({label:a.current.getLocaleText("toolbarExportCSV"),format:"csv",formatOptions:o});const f=()=>u(null),g=e=>()=>{"csv"===e.format&&a.current.exportDataAsCsv(e.formatOptions),u(null)};return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_Button__WEBPACK_IMPORTED_MODULE_30__["default"],Object.assign({ref:r,color:"primary",size:"small",startIcon:react__WEBPACK_IMPORTED_MODULE_0__.createElement(p,null),"aria-expanded":c?"true":void 0,"aria-label":a.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-labelledby":s,id:i},l,{onClick:e=>{u(e.currentTarget),null==n||n(e)}}),a.current.getLocaleText("toolbarExport")),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Tl,{open:Boolean(c),target:c,onClickAway:f,position:"bottom-start"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_MenuList__WEBPACK_IMPORTED_MODULE_26__["default"],{id:s,className:"MuiDataGrid-gridMenuList","aria-labelledby":i,onKeyDown:e=>{Ao(e.key)&&e.preventDefault(),Xo(e.key)&&f()},autoFocusItem:Boolean(c)},m.map(((t,r)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_MenuItem__WEBPACK_IMPORTED_MODULE_11__["default"],{key:r,onClick:g(t)},t.label))))))})),ii=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(t,r){const o=Qo();return o.disableColumnFilter&&o.disableColumnSelector&&o.disableDensitySelector?null:react__WEBPACK_IMPORTED_MODULE_0__.createElement(Pa,Object.assign({ref:r},t),react__WEBPACK_IMPORTED_MODULE_0__.createElement(ri,null),react__WEBPACK_IMPORTED_MODULE_0__.createElement(li,null),react__WEBPACK_IMPORTED_MODULE_0__.createElement(oi,null),react__WEBPACK_IMPORTED_MODULE_0__.createElement(ai,null))})),si=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(t,o){const{className:n,rowCount:l,visibleRowCount:a}=t,i=un(t,["className","rowCount","visibleRowCount"]),s=ae();if(0===l)return null;const c=a0?react__WEBPACK_IMPORTED_MODULE_0__.createElement(ci,{selectedRowCount:i}):react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null),d=l.hideFooterRowCount||l.pagination?null:react__WEBPACK_IMPORTED_MODULE_0__.createElement(si,{rowCount:a,visibleRowCount:c}),p=!!l.pagination&&null!=s.pageSize&&!l.hideFooterPagination&&(null==n?void 0:n.current.components.Pagination),m=p&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(p,Object.assign({},null===(o=null==n?void 0:n.current.componentsProps)||void 0===o?void 0:o.pagination));return react__WEBPACK_IMPORTED_MODULE_0__.createElement(ka,Object.assign({ref:r},t),u,d,m)})),di=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(t,r){var o,n;const l=ae(),a=null==l?void 0:l.current.components.PreferencesPanel,i=a&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(a,Object.assign({},null===(o=null==l?void 0:l.current.componentsProps)||void 0===o?void 0:o.preferencesPanel)),s=null==l?void 0:l.current.components.Toolbar,c=s&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(s,Object.assign({},null===(n=null==l?void 0:l.current.componentsProps)||void 0===n?void 0:n.toolbar));return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",Object.assign({ref:r},t),i,c)})),pi=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(t,r){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Ma,Object.assign({ref:r},t),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_CircularProgress__WEBPACK_IMPORTED_MODULE_34__["default"],null))})),mi=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(t,r){const o=ae().current.getLocaleText("noRowsLabel");return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Ma,Object.assign({ref:r},t),o)})),fi=(0,_material_ui_styles__WEBPACK_IMPORTED_MODULE_16__["default"])((e=>({selectLabel:{display:"none",[e.breakpoints.up("md")]:{display:"block"}},caption:{"&[id]":{display:"none",[e.breakpoints.up("md")]:{display:"block"}}},input:{display:"none",[e.breakpoints.up("md")]:{display:"inline-flex"}}})),{defaultTheme:gr()}),gi=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(t,r){var o,n,l;const a=fi(),i=ae(),s=Qo(),c=Wr(i,rn),u=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>Math.floor(c.rowCount/(c.pageSize||1))),[c.rowCount,c.pageSize]),d=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{const t=Number(e.target.value);i.current.setPageSize(t)}),[i]),p=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,t)=>{i.current.setPage(t)}),[i]);if(true){const t=react__WEBPACK_IMPORTED_MODULE_0__.useRef(!1);t.current||s.autoPageSize||s.rowsPerPageOptions.includes(null!==(o=s.pageSize)&&void 0!==o?o:c.pageSize)||(console.warn([`Material-UI: The page size \`${null!==(n=s.pageSize)&&void 0!==n?n:c.pageSize}\` is not preset in the \`rowsPerPageOptions\``,"Add it to show the pagination select."].join("\n")),t.current=!0)}return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_TablePagination__WEBPACK_IMPORTED_MODULE_35__["default"],Object.assign({ref:r,classes:Object.assign(Object.assign({},"v5"===mr()?{selectLabel:a.selectLabel}:{caption:a.caption}),{input:a.input}),component:"div",count:c.rowCount,page:c.page<=u?c.page:u,rowsPerPageOptions:(null===(l=s.rowsPerPageOptions)||void 0===l?void 0:l.includes(c.pageSize))?s.rowsPerPageOptions:[],rowsPerPage:c.pageSize},i.current.getLocaleText("MuiTablePagination"),"v4"!==mr()?{onPageChange:p,onRowsPerPageChange:d}:{onChangePage:p,onChangeRowsPerPage:d},t))})),bi=t=>{const r=xr(t,"useGridColumnMenu"),[o,n,l]=Br(t),a=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{r.debug("Opening Column Menu"),n((t=>Object.assign(Object.assign({},t),{columnMenu:{open:!0,field:e}}))),t.current.hidePreferences(),l()}),[t,l,r,n]),i=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{r.debug("Hiding Column Menu"),n((e=>Object.assign(Object.assign({},e),{columnMenu:Object.assign(Object.assign({},e.columnMenu),{open:!1,field:void 0})}))),l()}),[l,r,n]),s=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{r.debug("Toggle Column Menu"),o.columnMenu.open&&o.columnMenu.field===e?i():a(e)}),[r,a,i,o]),c=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{n((e=>e.columnMenu.open?Object.assign(Object.assign({},e),{columnMenu:Object.assign(Object.assign({},e.columnMenu),{open:!1})}):e))}),[n]);react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{o.isScrolling&&i()}),[o.isScrolling,i]),Rr(t,{showColumnMenu:a,hideColumnMenu:i,toggleColumnMenu:s},"ColumnMenuApi"),qr(t,ne.columnResizeStart,c)},hi=(t,r)=>{const o=xr(t,"useGridColumnReorder"),[,n,l]=Br(t),a=Wr(t,to),i=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),s=react__WEBPACK_IMPORTED_MODULE_0__.useRef({x:0,y:0}),c=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),u=react__WEBPACK_IMPORTED_MODULE_0__.useRef();react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>()=>{clearTimeout(u.current)}),[]);const d=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,a)=>{r.disableColumnReorder||e.colDef.disableReorder||(o.debug(`Start dragging col ${e.field}`),i.current=a.currentTarget,i.current.classList.add(Kr["columnSeparator--dragging"]),n((t=>Object.assign(Object.assign({},t),{columnReorder:Object.assign(Object.assign({},t.columnReorder),{dragCol:e.field})}))),l(),u.current=setTimeout((()=>{i.current.classList.remove(Kr["columnSeparator--dragging"])})),c.current=t.current.getColumnIndex(e.field,!1))}),[r.disableColumnReorder,o,n,l,t]),p=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,t)=>{t.preventDefault()}),[]),m=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,r)=>{if(!a)return;o.debug(`Dragging over col ${e.field}`),r.preventDefault();const n={x:r.clientX,y:r.clientY};if(e.field!==a&&(l=s.current,i=n,l.x!==i.x||l.y!==i.y)){const r=t.current.getColumnIndex(e.field,!1),o=t.current.getColumnIndex(e.field,!0),l=t.current.getColumn(e.field),i=t.current.getColumnIndex(a,!1),c=t.current.getVisibleColumns().length,u=!l.disableReorder||o>0&&oe.x<=t.x?"right":"left")(s.current,n),p="left"===d&&r{!r.disableColumnReorder&&a&&(o.debug("End dragging col"),s.preventDefault(),clearTimeout(u.current),i.current=null,"none"===s.dataTransfer.dropEffect&&(t.current.setColumnIndex(e.field,c.current),c.current=null),n((e=>Object.assign(Object.assign({},e),{columnReorder:Object.assign(Object.assign({},e.columnReorder),{dragCol:""})}))),l())}),[r.disableColumnReorder,o,n,l,t,a]);qr(t,ne.columnHeaderDragStart,d),qr(t,ne.columnHeaderDragEnter,p),qr(t,ne.columnHeaderDragOver,m),qr(t,ne.columnHeaderDragEnd,f),qr(t,ne.cellDragEnter,p),qr(t,ne.cellDragOver,m),qr(t,ne.cellDragEnd,f)};function vi(e,t){t=function(e){const t=Object.assign({},e);return Object.keys(e).forEach((r=>{e.hasOwnProperty(r)&&void 0===e[r]&&delete t[r]})),t}(t);return Object.assign(Object.assign({},e),t)}function Ci(e,t={},r,o){const n=function(e,t){const r=Object.assign(Object.assign({},e),t),o={};return Object.entries(r).forEach((([e,t])=>{t=Object.assign(Object.assign({},r[t.extendType||"__default__"]),t),o[e]=t})),o}(ml(),t),l=e.map((e=>Object.assign(Object.assign({},fl(n,e.type)),e)));return o?[Object.assign(Object.assign({},Un),{headerName:r("checkboxSelectionHeaderName")}),...l]:l}const wi=(e,t)=>{var r,o;const n={all:[...null!==(r=null==t?void 0:t.all)&&void 0!==r?r:[]],lookup:Object.assign({},null!==(o=null==t?void 0:t.lookup)&&void 0!==o?o:{})};return e.forEach((e=>{null==n.lookup[e.field]?(n.lookup[e.field]=e,n.all.push(e.field)):n.lookup[e.field]=Object.assign(Object.assign({},n.lookup[e.field]),e)})),n};function Oi(t,r){const o=xr(t,"useGridColumns"),[n,l,a]=Br(t),i=Wr(t,pe),s=Wr(t,ue),c=Wr(t,de),u=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,r=!0)=>{o.debug("Updating columns state."),l((t=>Object.assign(Object.assign({},t),{columns:e}))),a(),r&&t.current.publishEvent(ne.columnsChange,e.all)}),[o,l,a,t]),d=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>t.current.state.columns.lookup[e]),[t]),p=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>s),[s]),m=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>c),[c]),f=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>i),[i]),g=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,t=!0)=>t?c.findIndex((t=>t.field===e)):s.findIndex((t=>t.field===e))),[s,c]),b=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{const t=g(e);return i.positions[t]}),[i.positions,g]),h=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,r)=>{o.debug("updating GridColumns with new state");const n=t.current.state.viewportSizes.width;let l=e.all.map((t=>e.lookup[t]));l=function(e,t){let r=0,o=t;const n=e.map((e=>{var t,n;const l=Object.assign({},e);if(e.hide)l.computedWidth=0;else{const e=null!==(t=l.minWidth)&&void 0!==t?t:Nn.minWidth;if(l.flex&&l.flex>0)r+=l.flex,l.computedWidth=e;else{const t=Math.max(null!==(n=l.width)&&void 0!==n?n:Nn.width,e);o-=t,l.computedWidth=t}}return l}));if(r>0&&o>0){const e=o/r;for(let t=0;t0&&(n[t].computedWidth=Math.max(e*r.flex,r.computedWidth))}}return n}(l,n);const a={all:l.map((e=>e.field)),lookup:l.reduce(((e,t)=>(e[t.field]=t,e)),{})};u(a,r)}),[t,o,u]),v=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{const r=wi(e,t.current.state.columns);h(r,!1)}),[t,h]),C=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>v([e])),[v]),w=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,r)=>{const o=d(e),n=Object.assign(Object.assign({},o),{hide:!r});v([n]),t.current.publishEvent(ne.columnVisibilityChange,{field:e,colDef:n,isVisible:r})}),[t,d,v]),O=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,r)=>{const l=n.columns.all.findIndex((t=>t===e));if(l===r)return;o.debug(`Moving column ${e} to index ${r}`);const a={field:e,element:t.current.getColumnHeaderElement(e),colDef:t.current.getColumn(e),targetIndex:r,oldIndex:l};t.current.publishEvent(ne.columnOrderChange,a);const i=[...n.columns.all];i.splice(r,0,i.splice(l,1)[0]),u(Object.assign(Object.assign({},n.columns),{all:i}))}),[t,n.columns,o,u]),y=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,r)=>{o.debug(`Updating column ${e} width to ${r}`);const n=t.current.getColumn(e),l=Object.assign(Object.assign({},n),{width:r});t.current.updateColumns([l]),t.current.publishEvent(ne.columnWidthChange,{element:t.current.getColumnHeaderElement(e),colDef:l,width:r})}),[t,o]);Rr(t,{getColumn:d,getAllColumns:p,getColumnIndex:g,getColumnPosition:b,getVisibleColumns:m,getColumnsMeta:f,updateColumn:C,updateColumns:v,setColumnVisibility:w,setColumnIndex:O,setColumnWidth:y},"ColApi"),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{o.info(`GridColumns have changed, new length ${r.columns.length}`);const e=Ci(r.columns,r.columnTypes,t.current.getLocaleText,r.checkboxSelection),n=wi(e);h(n)}),[o,t,h,r.columns,r.columnTypes,r.checkboxSelection]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{o.debug(`GridColumns gridState.viewportSizes.width, changed ${n.viewportSizes.width}`),h(t.current.state.columns)}),[t,h,n.viewportSizes.width,o]),Jr(t,ne.columnVisibilityChange,r.onColumnVisibilityChange)}function yi(e,r){const o=react__WEBPACK_IMPORTED_MODULE_0__.useRef({}),n=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{const{stateId:t,stateSelector:r}=e,n=un(e,["stateId","stateSelector"]);o.current[t]=Object.assign(Object.assign({},n),{stateId:t,stateSelector:r||(e=>e[t])})}),[]),l=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((t=>{let n=!1;const l=[],a=o.current;if(Object.keys(a).forEach((r=>{const o=a[r],i=o.stateSelector(e.current.state),s=o.stateSelector(t);s!==i&&s!==o.propModel&&l.push(o.stateId),void 0!==o.propModel&&s!==o.propModel&&(n=!0)})),l.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${l[0]}, therefore, you're not allowed to update ${l.join(", ")} in the same transaction.`);return{ignoreSetState:n,postUpdate:()=>{l.forEach((o=>{const n=a[o],l=a[o].stateSelector(t);if(n.propOnChange){const t=r.signature===Yr.DataGridPro?{api:e.current}:{};n.propOnChange(l,t)}e.current.publishEvent(n.changeEvent,l)}))}}}),[e,r.signature]);Rr(e,{updateControlState:n,applyControlStateConstraint:l},"controlStateApi")}const Ei=(t,r,o,n)=>{const l=Vr(t),[a,i,s]=Br(t),c=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{void 0===a[r]&&(a[r]=n),i((t=>{const n=Object.assign({},t);return n[r]=o(t[r],e),n})),s()}),[s,a,n,o,i,r]),u=react__WEBPACK_IMPORTED_MODULE_0__.useRef(c);react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{u.current=c}),[c]);const d=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>u.current(e)),[]);return{gridState:a,dispatch:d,gridApi:l}},Si=(t,r)=>{const o=xr(t,"useGridFilter"),[n,l,a]=Br(t),i=Wr(t,fe),s=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{o.debug("clearing filtered rows"),l((e=>Object.assign(Object.assign({},e),{visibleRows:{visibleRowsLookup:{}}})))}),[o,l]),c=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,r=zr.And)=>{if(!e.columnField||!e.operatorValue)return;const n=t.current.getColumn(e.columnField);if(!n)return;const i=n.valueParser?n.valueParser(e.value):e.value,s=Object.assign(Object.assign({},e),{value:i});o.debug(`Filtering column: ${s.columnField} ${s.operatorValue} ${s.value} `);const c=n.filterOperators;if(!(null==c?void 0:c.length))throw new Error(`Material-UI: No filter operators found for column '${n.field}'.`);const u=c.find((e=>e.value===s.operatorValue));if(!u)throw new Error(`Material-UI: No filter operator found for column '${n.field}' and operator value '${s.operatorValue}'.`);const d=u.getApplyFilterFn(s,n);"function"==typeof d&&(l((e=>{const o=Object.assign({},e.visibleRows.visibleRowsLookup);return po(e).forEach(((e,n)=>{const l=t.current.getCellParams(n,s.columnField),a=d(l);null==o[n]?o[n]=a:o[n]=r===zr.And?o[n]&&a:o[n]||a})),Object.assign(Object.assign({},e),{visibleRows:Object.assign(Object.assign({},e.visibleRows),{visibleRowsLookup:o,visibleRows:Object.entries(o).filter((([,e])=>e)).map((([e])=>e))})})})),a())}),[t,a,o,l]),u=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{if(r.filterMode===Ir.server)return void a();s();const{items:e,linkOperator:o}=t.current.state.filter;e.forEach((e=>{t.current.applyFilter(e,o)})),a()}),[t,s,a,r.filterMode]),d=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{o.debug("Upserting filter"),l((o=>{const n=[...o.filter.items],l=Object.assign({},e),a=n.findIndex((e=>e.id===l.id));if(1===n.length&&nr(n[0],{})?n[0]=l:-1===a?n.push(l):n[a]=l,null==l.id&&(l.id=Math.round(1e5*Math.random())),null==l.columnField&&(l.columnField=i[0]),null!=l.columnField&&null==l.operatorValue){const e=t.current.getColumn(l.columnField);l.operatorValue=e&&e.filterOperators[0].value}r.disableMultipleColumnsFiltering&&n.length>1&&(n.length=1);return Object.assign(Object.assign({},o),{filter:Object.assign(Object.assign({},o.filter),{items:n})})})),u()}),[o,l,t,u,r.disableMultipleColumnsFiltering,i]),p=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{o.debug(`Deleting filter on column ${e.columnField} with value ${e.value}`),l((t=>{const r=[...t.filter.items.filter((t=>t.id!==e.id))];return Object.assign(Object.assign({},t),{filter:Object.assign(Object.assign({},t.filter),{items:r})})})),0===t.current.state.filter.items.length&&t.current.upsertFilter({}),u()}),[t,u,o,l]),m=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{if(o.debug("Displaying filter panel"),e){const r=n.filter.items.length>0?n.filter.items[n.filter.items.length-1]:null;r&&r.columnField===e||t.current.upsertFilter({columnField:e})}t.current.showPreferences(jl.filters)}),[t,n.filter.items,o]),f=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{o.debug("Hiding filter panel"),null==t||t.current.hidePreferences()}),[t,o]),g=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e=zr.And)=>{o.debug("Applying filter link operator"),l((t=>Object.assign(Object.assign({},t),{filter:Object.assign(Object.assign({},t.filter),{linkOperator:e})}))),u()}),[u,o,l]),b=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{s(),o.debug("Clearing filter model"),l((e=>Object.assign(Object.assign({},e),{filter:Tr()})))}),[s,o,l]),h=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{b(),o.debug("Setting filter model"),g(e.linkOperator),e.items.forEach((e=>d(e)))}),[g,b,o,d]),v=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>bo(t.current.state)),[t]);Rr(t,{applyFilterLinkOperator:g,applyFilters:u,applyFilter:c,deleteFilter:p,upsertFilter:d,setFilterModel:h,showFilterPanel:m,hideFilterPanel:f,getVisibleRowModels:v},"FilterApi"),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{t.current&&(o.debug("Rows prop changed, applying filters"),s(),t.current.applyFilters())}),[t,s,o,r.rows]);const C=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{o.debug("onColUpdated - GridColumns changed, applying filters");const e=t.current.state.filter,r=fe(t.current.state);o.debug("GridColumns changed, applying filters"),e.items.forEach((e=>{r.find((t=>t===e.columnField))||t.current.deleteFilter(e)})),t.current.applyFilters()}),[t,o]);react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{t.current.updateControlState({stateId:"filter",propModel:r.filterModel,propOnChange:r.onFilterModelChange,stateSelector:e=>e.filter,changeEvent:ne.filterModelChange})}),[t,r.filterModel,r.onFilterModelChange]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{if(void 0!==r.filterModel&&r.filterModel.items.length>1){if(r.filterModel.items.find((e=>null==e.id)))throw new Error("The 'id' field is required on filterModel.items when you use multiple filters.")}const e=t.current.state.filter;void 0!==r.filterModel&&r.filterModel!==e&&(o.debug("filterModel prop changed, applying filters"),l((e=>Object.assign(Object.assign({},e),{filter:r.filterModel||Tr()}))),t.current.applyFilters())}),[t,o,r.filterModel,l]),qr(t,ne.rowsSet,t.current.applyFilters),qr(t,ne.rowsUpdate,t.current.applyFilters),qr(t,ne.columnsChange,C)},xi=(t,r)=>{const o=xr(t,"useGridFocus"),[,n,l]=Br(t),a=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),i=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,r)=>{t.current.getRow(e)&&(n((t=>(o.debug(`Focusing on cell with id=${e} and field=${r}`),Object.assign(Object.assign({},t),{tabIndex:{cell:{id:e,field:r},columnHeader:null},focus:{cell:{id:e,field:r},columnHeader:null}})))),l(),t.current.publishEvent(ne.cellFocusIn,t.current.getCellParams(e,r)))}),[t,l,o,n]),s=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,r)=>{const{cell:a}=t.current.state.focus;a&&t.current.publishEvent(ne.cellFocusOut,t.current.getCellParams(a.id,a.field),r),n((t=>(o.debug(`Focusing on column header with colIndex=${e}`),Object.assign(Object.assign({},t),{tabIndex:{columnHeader:{field:e},cell:null},focus:{columnHeader:{field:e},cell:null}})))),l()}),[t,l,o,n]),c=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((({id:e,field:r})=>{t.current.setCellFocus(e,r)}),[t]),u=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,r)=>{"Enter"===r.key||"Tab"===r.key||Yo(r.key)||t.current.setCellFocus(e.id,e.field)}),[t]),d=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((({field:e},r)=>{r.target===r.currentTarget&&t.current.setColumnHeaderFocus(e,r)}),[t]),p=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{o.debug("Clearing focus"),n((e=>Object.assign(Object.assign({},e),{focus:{cell:null,columnHeader:null}})))}),[o,n]),m=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{a.current=e}),[]),g=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{const r=a.current;a.current=null;const{cell:o}=t.current.state.focus;if(!o)return void(r&&t.current.setCellFocus(r.id,r.field));if((null==r?void 0:r.id)===o.id&&(null==r?void 0:r.field)===o.field)return;const i=t.current.getCellElement(o.id,o.field);(null==i?void 0:i.contains(e.target))||t.current.getRow(o.id)&&(t.current.publishEvent(ne.cellFocusOut,t.current.getCellParams(o.id,o.field),e),r?t.current.setCellFocus(r.id,r.field):(n((e=>Object.assign(Object.assign({},e),{focus:{cell:null,columnHeader:null}}))),l()))}),[t,l,n]),b=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{if("view"===e.cellMode)return;const{cell:r}=t.current.state.focus;(null==r?void 0:r.id)===e.id&&(null==r?void 0:r.field)===e.field||t.current.setCellFocus(e.id,e.field)}),[t]);Rr(t,{setCellFocus:i,setColumnHeaderFocus:s},"GridFocusApi"),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{const{cell:e}=t.current.state.focus;if(e){t.current.getRow(e.id)||n((e=>Object.assign(Object.assign({},e),{focus:{cell:null,columnHeader:null}})))}}),[t,n,r.rows]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{const e=(0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_23__["default"])(t.current.rootElementRef.current);return e.addEventListener("click",g),()=>{e.removeEventListener("click",g)}}),[t,g]),qr(t,ne.columnHeaderBlur,p),qr(t,ne.cellDoubleClick,c),qr(t,ne.cellMouseUp,m),qr(t,ne.cellKeyDown,u),qr(t,ne.cellModeChange,b),qr(t,ne.columnHeaderFocus,d)},Ri=t=>{const r=xr(t,"useGridKeyboard"),o=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,o)=>{const n=Ol(o.target,Kr.row),l=Number(n.getAttribute("data-rowindex"));let a=l;const i=[...t.current.getSelectedRows().keys()];if(i.length>0){const e=i.map((e=>t.current.getRowIndex(e))),r=e.map((e=>Math.abs(l-e))),o=Math.max(...r);a=e[r.indexOf(o)]}t.current.publishEvent(ne.cellNavigationKeyDown,e,o);const s=t.current.state.focus.cell,c=t.current.getRowIndex(s.id),u=Array(Math.abs(c-a)+1).fill(c>a?a:c);r.debug("Selecting rows "),t.current.selectRows(u,!0,!0)}),[r,t]),n=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,r)=>{if(1===r.target.nodeType&&(null==(n=r.target)||!n.classList.contains(Kr.cell)))return;var n;const l=t.current.getCellParams(e.id,e.field);if(!(l.cellMode===al.Edit)){if($o(r.key)&&r.shiftKey)return r.preventDefault(),void t.current.selectRow(l.id);if(!Yo(r.key)||r.shiftKey)return Yo(r.key)&&r.shiftKey?(r.preventDefault(),void o(l,r)):void("c"===r.key.toLowerCase()&&(r.ctrlKey||r.metaKey)||"a"===r.key.toLowerCase()&&(r.ctrlKey||r.metaKey)&&(r.preventDefault(),t.current.selectRows(t.current.getAllRowIds(),!0)));t.current.publishEvent(ne.cellNavigationKeyDown,l,r)}}),[t,o]),l=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,r)=>{yl(r.target)&&($o(r.key)&&yl(r.target)&&r.preventDefault(),!Yo(r.key)||$o(r.key)||r.shiftKey?Ho(r.key)&&(r.ctrlKey||r.metaKey)&&t.current.toggleColumnMenu(e.field):t.current.publishEvent(ne.columnHeaderNavigationKeyDown,e,r))}),[t]);qr(t,ne.cellKeyDown,n),qr(t,ne.columnHeaderKeyDown,l)},ki=(t,r)=>{const o=xr(t,"useGridKeyboardNavigation"),n=Wr(t,rn),l=Wr(t,lo),a=Wr(t,ge),i=Wr(t,_l),s=Wr(t,ho),c=e=>Ho(e.key)?"ArrowDown":Ao(e.key)?e.shiftKey?"ArrowLeft":"ArrowRight":e.key,u=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,u)=>{u.preventDefault();const d=t.current.getColumnIndex(e.field),p=s.findIndex((([t])=>t===e.id)),m=c(u),f=u.ctrlKey||u.metaKey||u.shiftKey;let g,b=l;if(r.pagination&&l>n.pageSize&&(b=n.pageSize*(n.page+1)),_o(m))g=((e,t)=>{if(!_o(e))throw new Error("Material-UI: The first argument (key) should be an arrow key code.");switch(e){case"ArrowLeft":return Object.assign(Object.assign({},t),{colIndex:t.colIndex-1});case"ArrowRight":return Object.assign(Object.assign({},t),{colIndex:t.colIndex+1});case"ArrowUp":return Object.assign(Object.assign({},t),{rowIndex:t.rowIndex-1});default:return Object.assign(Object.assign({},t),{rowIndex:t.rowIndex+1})}})(m,{colIndex:d,rowIndex:p});else if(No(m)){const e="Home"===m?0:a-1;if(f){let t=0;t=0===e?r.pagination?b-n.pageSize:0:b-1,g={colIndex:e,rowIndex:t}}else g={colIndex:e,rowIndex:p}}else{if(!Vo(m)&&!$o(m))throw new Error("Material-UI. Key not mapped to navigation behavior.");g={colIndex:d,rowIndex:p+(m.indexOf("Down")>-1||$o(m)?i.viewportPageSize:-1*i.viewportPageSize)}}if(g.rowIndex<0){const e=t.current.getVisibleColumns()[g.colIndex].field;return void t.current.setColumnHeaderFocus(e,u)}g.rowIndex=g.rowIndex>=b&&b>0?b-1:g.rowIndex,g.colIndex=g.colIndex<=0?0:g.colIndex,g.colIndex=g.colIndex>=a?a-1:g.colIndex,o.debug(`Navigating to next cell row ${g.rowIndex}, col ${g.colIndex}`),t.current.scrollToIndexes(g);const h=t.current.getVisibleColumns()[g.colIndex].field,[v]=s[g.rowIndex];t.current.setCellFocus(v,h)}),[t,s,l,r.pagination,n.pageSize,n.page,a,o,i]),d=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,r)=>{let n;r.preventDefault();const l=t.current.getColumnIndex(e.field),u=c(r);if(_o(u))n=((e,t)=>{if(!_o(e))throw new Error("Material-UI: The first argument (key) should be an arrow key code.");switch(e){case"ArrowLeft":return{colIndex:t.colIndex-1};case"ArrowRight":return{colIndex:t.colIndex+1};case"ArrowDown":return null;default:return Object.assign({},t)}})(u,{colIndex:l});else{if(!No(u)){if(Vo(u)){if(u.indexOf("Down")>-1){const e=t.current.getVisibleColumns()[l].field,r=t.current.getRowIdFromRowIndex(i.viewportPageSize-1);t.current.setCellFocus(r,e)}return}throw new Error("Material-UI. Key not mapped to navigation behavior.")}n={colIndex:"Home"===u?0:a-1}}if(!n){const e=t.current.getVisibleColumns()[l].field,[r]=s[0];return void t.current.setCellFocus(r,e)}n.colIndex=Math.max(0,n.colIndex),n.colIndex=n.colIndex>=a?a-1:n.colIndex,o.debug(`Navigating to next column row ${n.colIndex}`),t.current.scrollToIndexes(n);const d=t.current.getVisibleColumns()[n.colIndex].field;t.current.setColumnHeaderFocus(d,r)}),[t,a,i,o,s]);qr(t,ne.cellNavigationKeyDown,u),qr(t,ne.columnHeaderNavigationKeyDown,d)};function Mi(t,r,o){const n=xr(t,"useGridScrollFn"),l=react__WEBPACK_IMPORTED_MODULE_0__.useRef();return[react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{var t;e.left===(null===(t=l.current)||void 0===t?void 0:t.left)&&e.top===l.current.top||r&&r.current&&(n.debug(`Moving ${r.current.className} to: ${e.left}-${e.top}`),r.current.style.transform=`translate3d(${-e.left}px, ${-e.top}px, 0px)`,o.current.style.transform=`translate3d(${-e.left}px, 0px, 0px)`,l.current=e)}),[r,n,o])]}const Pi=(e,t)=>t>0&&e>0?Math.ceil(e/t):0,Ii=e=>e.pageCount?Object.assign(Object.assign({},e),{page:Math.max(Math.min(e.page,e.pageCount-1),0)}):e,Li=(t,r)=>{const o=xr(t,"useGridPage"),[,n,l]=Br(t),a=Wr(t,Co),i=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{o.debug(`Setting page to ${e}`),n((t=>Object.assign(Object.assign({},t),{pagination:Ii(Object.assign(Object.assign({},t.pagination),{page:e}))}))),l()}),[n,l,o]);react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{t.current.updateControlState({stateId:"page",propModel:r.page,propOnChange:r.onPageChange,stateSelector:e=>e.pagination.page,changeEvent:ne.pageChange})}),[t,r.page,r.onPageChange]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{n((e=>{const t=void 0!==r.rowCount?r.rowCount:a,o=Pi(t,e.pagination.pageSize),n=null==r.page?e.pagination.page:r.page;return Object.assign(Object.assign({},e),{pagination:Ii(Object.assign(Object.assign({},e.pagination),{page:n,rowCount:t,pageCount:o}))})})),l()}),[n,l,a,r.rowCount,r.page,t]);const s=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{n((t=>{const r=Pi(t.pagination.rowCount,e);return Object.assign(Object.assign({},t),{pagination:Ii(Object.assign(Object.assign({},t.pagination),{pageCount:r,page:t.pagination.page}))})})),l()}),[n,l]);qr(t,ne.pageSizeChange,s);Rr(t,{setPage:i},"GridPageApi")};function ji(t,r){const o=xr(t,"useApi"),n=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,o,n={})=>{if(n.defaultMuiPrevented=!1,n&&(e=>void 0!==e.isPropagationStopped)(n)&&n.isPropagationStopped())return;const l=r.signature===Yr.DataGridPro?{api:t.current}:{};t.current.emit(e,o,n,l)}),[t,r.signature]),l=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,r,n)=>{o.debug(`Binding ${e} event`),t.current.on(e,r,n);const l=t.current;return()=>{o.debug(`Clearing ${e} event`),l.removeListener(e,r)}}),[t,o]),a=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{t.current.publishEvent(ne.componentError,e)}),[t]);react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{o.debug("Initializing grid api.");const e=t.current;return()=>{o.info("Unmounting Grid component. Clearing all events listeners."),e.emit(ne.unmount),e.removeAllListeners()}}),[o,t]),Rr(t,{subscribeEvent:l,publishEvent:n,showError:a},"GridCoreApi")}const Fi=(t,r)=>{var o,n;const l=xr(t,"useGridContainerProps"),[a,i,s]=Br(t),c=react__WEBPACK_IMPORTED_MODULE_0__.useRef({width:0,height:0}),u=Wr(t,jo),d=Wr(t,be),p=Wr(t,Co),m=Wr(t,rn),g=t.current.windowRef,b=null===(n=null===(o=t.current)||void 0===o?void 0:o.rootElementRef)||void 0===n?void 0:n.current,h=!!d,v=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>{if(null!=r.scrollbarSize)return r.scrollbarSize;if(!h||!b)return 0;const e=function(e,t){const r=e.createElement("div");r.style.width="99px",r.style.height="99px",r.style.position="absolute",r.style.overflow="scroll",r.className="scrollDiv",t.appendChild(r);const o=r.offsetWidth-r.clientWidth;return t.removeChild(r),o}((0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_23__["default"])(b),b);return l.debug(`Detected scroll bar size ${e}.`),e}),[b,l,r.scrollbarSize,h]),C=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{if(l.debug("Calculating virtual row count."),r.pagination&&(!r.autoPageSize||r.pageSize)){const e=p-m.page*m.pageSize;return e>m.pageSize?m.pageSize:e}return p}),[l,r.autoPageSize,r.pagination,r.pageSize,m.page,m.pageSize,p]),w=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{l.debug("Calculating scrollbar sizes.");let t=d>c.current.width;const o={y:0,x:t?v:0};if(0===e)return{hasScrollX:t,hasScrollY:!1,sizes:o};const n=e*u,a=!r.autoPageSize&&!r.autoHeight&&n+o.x>c.current.height;return o.y=a?v:0,t=d+o.y>c.current.width,o.x=t?v:0,l.debug(`Scrollbar size on axis x: ${o.x}, y: ${o.y}`),{hasScrollX:t,hasScrollY:a,sizes:o}}),[l,d,r.autoPageSize,r.autoHeight,u,v]),O=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,t)=>{if(!(null==g?void 0:g.current))return null;l.debug("Calculating container sizes.");const o=g.current.getBoundingClientRect();c.current={width:o.width,height:o.height},l.debug(`window Size - W: ${c.current.width} H: ${c.current.height} `);return{width:c.current.width-t.sizes.y,height:r.autoHeight?e*u:c.current.height-t.sizes.x}}),[l,r.autoHeight,u,g]),y=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,t,o)=>{if(!g||!g.current||0===d||Number.isNaN(d))return null;const n=e*u-c.current.height>2*u&&!r.disableVirtualization;if(r.autoPageSize||r.autoHeight||!n){const n=Math.floor(t.height/u),a=o.hasScrollY||e0?Math.ceil(e/a)-1:0,s=2*a,p=s*u,m=p-t.height;let f=i*m+t.height;const b=e%a;b>0&&(f=f-m+b*u);const h={isVirtualized:n,virtualRowsCount:e,viewportPageSize:a,totalSizes:{width:d,height:f},dataContainerSizes:{width:d,height:f},renderingZonePageSize:s,renderingZone:{width:d,height:p},renderingZoneScrollHeight:m,windowSizes:c.current,lastPage:i};return l.debug("virtualized container props",h),h}),[g,d,u,r.autoPageSize,r.autoHeight,r.disableVirtualization,l]),E=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,t)=>{let r=!1;i((o=>(r=e(o),r?t(o):o))),r&&s()}),[s,i]),S=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{l.debug("Refreshing container sizes");const e=C(),t=w(e),r=O(e,t);if(!r)return;E((e=>e.scrollBar!==t),(e=>Object.assign(Object.assign({},e),{scrollBar:t}))),E((e=>e.viewportSizes!==r),(e=>Object.assign(Object.assign({},e),{viewportSizes:r})));const o=y(e,r,t);E((e=>!nr(e.containerSizes,o)),(e=>Object.assign(Object.assign({},e),{containerSizes:o})))}),[y,w,O,C,l,E]);react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{S()}),[a.columns,r.hideFooter,S,p]),qr(t,ne.debouncedResize,S)},Di=(t,r,o,n,l)=>{const a=xr(t,"useNativeEventListener"),[i,s]=react__WEBPACK_IMPORTED_MODULE_0__.useState(!1),c=react__WEBPACK_IMPORTED_MODULE_0__.useRef(n),u=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>c.current&&c.current(e)),[]);react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{c.current=n}),[n]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{let e;if(e=dr(r)?r():r&&r.current?r.current:null,e&&u&&o&&!i){a.debug(`Binding native ${o} event`),e.addEventListener(o,u,l);const r=e;s(!0);const n=()=>{a.debug(`Clearing native ${o} event`),r.removeEventListener(o,u,l)};t.current.subscribeEvent(ne.unmount,n)}}),[r,u,o,i,a,l,t])},zi=(t,r)=>{const o=xr(t,"useGridPageSize"),[,n,l]=Br(t),a=Wr(t,Co),i=Wr(t,_l),s=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{o.debug(`Setting page size to ${e}`),n((t=>Object.assign(Object.assign({},t),{pagination:Object.assign(Object.assign({},t.pagination),{pageSize:e})}))),l()}),[n,l,o]);react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{t.current.updateControlState({stateId:"pageSize",propModel:r.pageSize,propOnChange:r.onPageSizeChange,stateSelector:e=>e.pagination.pageSize,changeEvent:ne.pageSizeChange})}),[t,r.pageSize,r.onPageSizeChange]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{const e=null==i?void 0:i.viewportPageSize,o=t.current.state.pagination.pageSize;let a=o;null!=r.pageSize?a=r.pageSize:r.autoPageSize&&(a=null!=e?e:0),a!==o&&(r.autoPageSize&&t.current.publishEvent(ne.pageSizeChange,e),n((e=>Object.assign(Object.assign({},e),{pagination:Object.assign(Object.assign({},e.pagination),{pageSize:a})}))),l())}),[t,n,l,a,r.autoPageSize,r.pageSize,null==i?void 0:i.viewportPageSize]);Rr(t,{setPageSize:s},"GridPageSizeApi")},Ti=t=>{const r=xr(t,"useGridPreferencesPanel"),[,o,n]=Br(t),l=react__WEBPACK_IMPORTED_MODULE_0__.useRef(),a=react__WEBPACK_IMPORTED_MODULE_0__.useRef(),i=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{r.debug("Hiding Preferences Panel"),o((e=>Object.assign(Object.assign({},e),{preferencePanel:{open:!1}}))),n()}),[n,r,o]),s=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{a.current=setTimeout((()=>clearTimeout(l.current)),0)}),[]),c=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{l.current=setTimeout(i,100)}),[i]);Rr(t,{showPreferences:react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{r.debug("Opening Preferences Panel"),s(),o((t=>Object.assign(Object.assign({},t),{preferencePanel:Object.assign(Object.assign({},t.preferencePanel),{open:!0,openedPanelValue:e})}))),n()}),[s,n,r,o]),hidePreferences:c},"ColumnMenuApi"),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>()=>{clearTimeout(l.current),clearTimeout(a.current)}),[])};let Hi=!1;function Ai(t){const r=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>({field:e,colDef:t.current.getColumn(e)})),[t]),o=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{const r=t.current.getRow(e);if(!r)throw new Error(`No row with id #${e} found`);return{id:e,columns:t.current.getAllColumns(),row:r,getValue:t.current.getCellValue}}),[t]),n=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,r)=>{const o=t.current.getRow(e);if(!o)throw new Error(`No row with id #${e} found`);const n=xo(t.current.state),l=Mo(t.current.state);return{id:e,field:r,row:o,value:o[r],colDef:t.current.getColumn(r),cellMode:t.current.getCellMode(e,r),getValue:t.current.getCellValue,api:t.current,hasFocus:null!==n&&n.field===r&&n.id===e,tabIndex:l&&l.field===r&&l.id===e?0:-1}}),[t]),l=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,r)=>{const o=t.current.getColumn(r),n=t.current.getCellValue(e,r),l=t.current.getRow(e);if(!l)throw new Error(`No row with id #${e} found`);const a=xo(t.current.state),i=Mo(t.current.state),s={id:e,field:r,row:l,colDef:o,cellMode:t.current.getCellMode(e,r),getValue:t.current.getCellValue,hasFocus:null!==a&&a.field===r&&a.id===e,tabIndex:i&&i.field===r&&i.id===e?0:-1,value:n,formattedValue:n};return o.valueFormatter&&(s.formattedValue=o.valueFormatter(Object.assign(Object.assign({},s),{api:t.current}))),s.isEditable=o&&t.current.isCellEditable(s),s}),[t]),a=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,r)=>{const o=t.current.getColumn(r);if( true&&(o||Hi||function(e){console.warn([`Material-UI: You are calling getValue('${e}') but the column \`${e}\` is not defined.`,`Instead, you can access the data from \`params.row.${e}\`.`].join("\n")),Hi=!0}(r)),!o||!o.valueGetter){const o=t.current.getRow(e);if(!o)throw new Error(`No row with id #${e} found`);return o[r]}return o.valueGetter(n(e,r))}),[t,n]),i=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>t.current.rootElementRef.current?function(e,t){return e.querySelector(`[role="columnheader"][data-field="${Sl(t)}"]`)}(t.current.rootElementRef.current,e):null),[t]),s=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>t.current.rootElementRef.current?xl(t.current.rootElementRef.current,e):null),[t]),c=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,r)=>t.current.rootElementRef.current?function(e,{id:t,field:r}){const o=xl(e,t);return o?o.querySelector(`.${Kr.cell}[data-field="${Sl(r)}"]`):null}(t.current.rootElementRef.current,{id:e,field:r}):null),[t]);Rr(t,{getCellValue:a,getCellParams:l,getCellElement:c,getRowParams:o,getRowElement:s,getColumnHeaderParams:r,getColumnHeaderElement:i},"GridParamsApi")}function $i(e,t,r){const o=t?t(e):e.id;return fa(o,e,r),o}function _i(e,t,r){const o=Object.assign(Object.assign({},{idRowsLookup:{},allRows:[],totalRowCount:0}),{totalRowCount:t&&t>e.length?t:e.length});return e.forEach((e=>{const t=$i(e,r);o.allRows.push(t),o.idRowsLookup[t]=e})),o}const Ni=(t,r)=>{const o=xr(t,"useGridRows"),[,n,l]=Br(t),a=Wr(t,no),i=react__WEBPACK_IMPORTED_MODULE_0__.useRef(),s=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{null==i.current&&(i.current=setTimeout((()=>{o.debug("Updating component"),i.current=null,e&&e(),l()}),100))}),[o,l]),c=react__WEBPACK_IMPORTED_MODULE_0__.useRef(a);react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>()=>clearTimeout(i.current)),[]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{n((e=>(c.current=_i(r.rows,r.rowCount,r.getRowId),Object.assign(Object.assign({},e),{rows:c.current}))))}),[r.getRowId,r.rows,r.rowCount,n]);const u=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>t.current.getSortedRowIds?t.current.getSortedRowIds().indexOf(e):t.current.state.rows.allRows.indexOf(e)),[t]),d=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>t.current.getSortedRowIds?t.current.getSortedRowIds()[e]:t.current.state.rows.allRows[e]),[t]),p=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{var r;return null!==(r=t.current.state.rows.idRowsLookup[e])&&void 0!==r?r:null}),[t]),m=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{o.debug(`updating all rows, new length ${e.length}`),c.current.allRows.length>0&&t.current.publishEvent(ne.rowsClear);const l=[],a=e.reduce(((e,t)=>{const o=$i(t,r.getRowId);return e[o]=t,l.push(o),e}),{}),i=r.rowCount&&r.rowCount>l.length?r.rowCount:l.length;c.current={idRowsLookup:a,allRows:l,totalRowCount:i},n((e=>Object.assign(Object.assign({},e),{rows:c.current}))),s((()=>t.current.publishEvent(ne.rowsSet)))}),[o,n,s,t,r.getRowId,r.rowCount]),f=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{const o=e.reduce(((e,t)=>{const o=$i(t,r.getRowId,"A row was provided without id when calling updateRows():");return e[o]=null!=e[o]?Object.assign(Object.assign({},e[o]),t):t,e}),{}),l=[],a=[];let i=null;if(Object.entries(o).forEach((([e,t])=>{if("delete"===t._action)return void a.push(e);const r=p(e);r?(i||(i=Object.assign({},c.current.idRowsLookup)),i[e]=Object.assign(Object.assign({},r),t)):l.push(t)})),i&&(c.current.idRowsLookup=i,n((e=>Object.assign(Object.assign({},e),{rows:Object.assign({},c.current)})))),a.length>0||l.length>0){a.forEach((e=>{delete c.current.idRowsLookup[e]}));const e=[...Object.values(c.current.idRowsLookup),...l];m(e)}s((()=>t.current.publishEvent(ne.rowsUpdate)))}),[t,s,p,r.getRowId,n,m]),g=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>new Map(t.current.state.rows.allRows.map((e=>[e,t.current.state.rows.idRowsLookup[e]])))),[t]),b=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>t.current.state.rows.totalRowCount),[t]),h=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>t.current.state.rows.allRows),[t]);Rr(t,{getRowIndex:u,getRowIdFromRowIndex:d,getRow:p,getRowModels:g,getRowsCount:b,getAllRowIds:h,setRows:m,updateRows:f},"GridRowApi")};function Vi(t,r){const o=xr(t,"useGridEditRows"),[,n,l]=Br(t),a=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),i=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),s=Wr(t,ue),c=(e,o)=>{e.cellMode!==al.View&&(r.editMode===ll.Row?(i.current=null,a.current=setTimeout((()=>{var r;if((null===(r=i.current)||void 0===r?void 0:r.id)!==e.id){t.current.commitRowChange(e.id,o);const r=t.current.getRowParams(e.id);t.current.publishEvent(ne.rowEditStop,r,o)}}))):(t.current.commitCellChange(e,o),t.current.publishEvent(ne.cellEditStop,e,o)))},u=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{i.current=e}),[]),d=lr(((e,t)=>{c(e,t)})),p=lr((e=>{const{cell:r}=t.current.state.focus;if(!r)return;const o=t.current.getCellParams(r.id,r.field);c(o,e)})),m=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,r,a)=>{const i=t.current.getCellMode(e,r)===al.Edit;a===al.Edit&&i||a===al.View&&!i||(o.debug(`Switching cell id: ${e} field: ${r} to mode: ${a}`),n((o=>{const n=Object.assign({},o.editRows);return n[e]=Object.assign({},n[e]),a===al.Edit?n[e][r]={value:t.current.getCellValue(e,r)}:(delete n[e][r],Object.keys(n[e]).length||delete n[e]),Object.assign(Object.assign({},o),{editRows:n})})),l(),t.current.publishEvent(ne.cellModeChange,{id:e,field:r,mode:a,api:t.current}))}),[t,l,o,n]),f=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,r)=>{const o=t.current.getRowMode(e)===il.Edit;r===il.Edit&&o||r===il.View&&!o||(n((o=>{const n=Object.assign({},o.editRows);return r===il.Edit?(n[e]={},s.forEach((r=>{const o=t.current.getCellParams(e,r.field);o.isEditable&&(n[e][r.field]={value:o.value})}))):delete n[e],Object.assign(Object.assign({},o),{editRows:n})})),l())}),[t,s,l,n]),g=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>r.editMode===ll.Cell?il.View:t.current.state.editRows[e]?il.Edit:il.View),[t,r.editMode]),b=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,r)=>{const o=t.current.state.editRows;return o[e]&&o[e][r]?al.Edit:al.View}),[t]),h=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>!!e.colDef.editable&&!!e.colDef.renderEditCell&&(!r.isCellEditable||r.isCellEditable(e))),[r.isCellEditable]),v=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,r)=>{const o={id:e.id,field:e.field,props:{value:e.value}};t.current.publishEvent(ne.editCellPropsChange,o,r)}),[t]),C=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{const{id:r,field:a,props:i}=e;o.debug(`Setting cell props on id: ${r} field: ${a}`),n((e=>{const o=t.current.getColumn(a),n=o.valueParser?o.valueParser(i.value,t.current.getCellParams(r,a)):i.value,l=Object.assign({},e.editRows);return l[r]=Object.assign({},e.editRows[r]),l[r][a]=Object.assign(Object.assign({},i),{value:n}),Object.assign(Object.assign({},e),{editRows:l})})),l()}),[t,l,o,n]),w=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{C(e)}),[C]),O=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{o.debug("Setting row model"),n((t=>Object.assign(Object.assign({},t),{editRows:e}))),l()}),[l,o,n]),y=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>t.current.state.editRows),[t]),E=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,r)=>{const{id:o,field:n}=e,l=t.current.getEditRowsModel();if(!l[o]||!l[o][n])throw new Error(`Material-UI: Cell at id: ${o} and field: ${n} is not in edit mode.`);const{error:a,value:i}=l[o][n];if(!a){const o=Object.assign(Object.assign({},e),{value:i});return t.current.publishEvent(ne.cellEditCommit,o,r),!0}return!1}),[t]),S=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{if(r.editMode===ll.Row)throw new Error("Material-UI: You can't commit changes when the edit mode is 'row'.");const{id:n,field:l}=e,a=t.current.getEditRowsModel(),{value:i}=a[n][l];o.debug(`Setting cell id: ${n} field: ${l} to value: ${null==i?void 0:i.toString()}`);const s=t.current.getRow(n),c=Object.assign(Object.assign({},s),{[l]:i});t.current.updateRows([c])}),[t,o,r.editMode]),x=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,o)=>{if(r.editMode===ll.Cell)throw new Error("Material-UI: You can't commit changes when the edit mode is 'cell'.");const n=t.current.getEditRowsModel()[e];if(!n)throw new Error(`Material-UI: Row at id: ${e} is not being editted.`);return!Object.values(n).some((e=>!!e.error))&&(t.current.publishEvent(ne.rowEditCommit,e,o),!0)}),[t,r.editMode]),R=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,t)=>{e.isEditable&&(m(e.id,e.field,al.Edit),qo(t)&&Go(t.key)&&C({id:e.id,field:e.field,props:{value:""}}))}),[C,m]),k=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{t.current.setRowMode(e.id,il.Edit)}),[t]),M=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,r)=>{t.current.setRowMode(e.id,il.View),"Enter"===r.key&&t.current.publishEvent(ne.cellNavigationKeyDown,e,r)}),[t]),P=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{const r=t.current.getEditRowsModel()[e];if(!r)throw new Error(`Material-UI: Row at id: ${e} is not being editted.`);const o=t.current.getRow(e),n=Object.assign({},o);Object.keys(r).forEach((e=>{n[e]=r[e].value})),t.current.updateRows([n])}),[t]),I=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,t)=>{const r=t.detail>1;e.isEditable&&e.cellMode===al.View&&r&&t.preventDefault()}),[]),L=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,o)=>{const{id:n,field:l,cellMode:a,isEditable:i}=e;if(!i)return;const s=a===al.Edit;if(r.editMode===ll.Row){const r=t.current.getRowParams(e.id);return void(s?"Enter"===o.key?(t.current.commitRowChange(e.id),t.current.publishEvent(ne.rowEditStop,r,o)):"Escape"===o.key&&t.current.publishEvent(ne.rowEditStop,r,o):"Enter"===o.key&&t.current.publishEvent(ne.rowEditStart,r,o))}const c=o.ctrlKey||o.metaKey||o.altKey;var u;if(!s&&(u=o.key,Ho(u)||Bo(u)||Go(u))&&!c&&t.current.publishEvent(ne.cellEditStart,e,o),!s&&Bo(o.key)&&(t.current.setEditCellValue({id:n,field:l,value:""}),t.current.commitCellChange({id:n,field:l},o),t.current.publishEvent(ne.cellEditStop,e,o)),s&&Zo(o.key)){const e={id:n,field:l};if(!t.current.commitCellChange(e,o))return}s&&(e=>Uo.indexOf(e)>-1)(o.key)&&t.current.publishEvent(ne.cellEditStop,e,o)}),[t,r.editMode]),j=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,r)=>{m(e.id,e.field,al.View),r&&qo(r)&&(Zo(r.key)?t.current.publishEvent(ne.cellNavigationKeyDown,e,r):("Escape"===r.key||Bo(r.key))&&t.current.setCellFocus(e.id,e.field))}),[t,m]),F=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,o)=>{if(e.isEditable)if(r.editMode===ll.Row){const r=t.current.getRowParams(e.id);t.current.publishEvent(ne.rowEditStart,r,o)}else t.current.publishEvent(ne.cellEditStart,e,o)}),[t,r.editMode]);qr(t,ne.cellKeyDown,L),qr(t,ne.cellMouseDown,I),qr(t,ne.cellDoubleClick,F),qr(t,ne.cellFocusOut,d),qr(t,ne.cellFocusIn,u),qr(t,ne.columnHeaderDragStart,p),qr(t,ne.editCellPropsChange,w),qr(t,ne.cellEditStart,R),qr(t,ne.cellEditStop,j),qr(t,ne.cellEditCommit,S),qr(t,ne.rowEditStart,k),qr(t,ne.rowEditStop,M),qr(t,ne.rowEditCommit,P),Jr(t,ne.editCellPropsChange,r.onEditCellPropsChange),Jr(t,ne.cellEditCommit,r.onCellEditCommit),Jr(t,ne.cellEditStart,r.onCellEditStart),Jr(t,ne.cellEditStop,r.onCellEditStop),Jr(t,ne.rowEditCommit,r.onRowEditCommit),Jr(t,ne.rowEditStart,r.onRowEditStart),Jr(t,ne.rowEditStop,r.onRowEditStop),Rr(t,{setCellMode:m,getCellMode:b,setRowMode:f,getRowMode:g,isCellEditable:h,commitCellChange:E,commitRowChange:x,setEditRowsModel:O,getEditRowsModel:y,setEditCellValue:v},"EditRowApi"),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{t.current.updateControlState({stateId:"editRows",propModel:r.editRowsModel,propOnChange:r.onEditRowsModelChange,stateSelector:e=>e.editRows,changeEvent:ne.editRowsModelChange})}),[t,r.editRowsModel,r.onEditRowsModelChange]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{const e=t.current.state.editRows;void 0!==r.editRowsModel&&r.editRowsModel!==e&&t.current.setEditRowsModel(r.editRowsModel||{})}),[t,r.editRowsModel])}const Bi=(t,r)=>{const o=xr(t,"useGridSelection"),[,n,l]=Br(t),a=Wr(t,zo),i=Wr(t,ao),s=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>null==r.selectionModel||Array.isArray(r.selectionModel)?r.selectionModel:[r.selectionModel]),[r.selectionModel]),{checkboxSelection:c,disableMultipleSelection:u,disableSelectionOnClick:d,isRowSelectable:p}=a,m=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>an(t.current.state)),[t]),f=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{const{id:r,allowMultipleOverride:a,isSelected:i,isMultipleKey:s}=e;p&&!p(t.current.getRowParams(r))||(o.debug(`Selecting row ${r}`),n((e=>{let t=sn(e);if(a||!u&&s||c){(null==i?void 0===t[r]:i)?t[r]=r:delete t[r]}else{const e=null==i?!s||void 0===t[r]:i;t={},e&&(t[r]=r)}return Object.assign(Object.assign({},e),{selection:Object.values(t)})})),l())}),[p,u,t,o,c,l,n]),g=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,r=!0,o=!1)=>{const n=t.current.getRow(e);n&&f({id:e,row:n,allowMultipleOverride:o,isSelected:r})}),[t,f]),b=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,r=!0,o=!1)=>{const a=p?e.filter((e=>p(t.current.getRowParams(e)))):e;u&&a.length>1&&!c||(n((e=>{const t=o?{}:sn(e);return a.forEach((e=>{r?t[e]=e:void 0!==t[e]&&delete t[e]})),Object.assign(Object.assign({},e),{selection:Object.values(t)})})),l())}),[p,u,c,n,l,t]),h=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{t.current.state.selection!==e&&n((t=>Object.assign(Object.assign({},t),{selection:e})))}),[n,t]),v=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,t)=>{d||f({id:e.id,row:e.row,isMultipleKey:t.metaKey||t.ctrlKey})}),[d,f]);qr(t,ne.rowClick,v);Rr(t,{selectRow:g,getSelectedRows:m,selectRows:b,setSelectionModel:h},"GridSelectionApi"),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{t.current.updateControlState({stateId:"selection",propModel:s,propOnChange:r.onSelectionModelChange,stateSelector:nn,changeEvent:ne.selectionChange})}),[t,r.onSelectionModelChange,s]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{n((e=>{const t=nn(e),r=sn(e);let o=!1;return t.forEach((e=>{i[e]||(delete r[e],o=!0)})),o?Object.assign(Object.assign({},e),{selection:Object.values(r)}):e})),l()}),[i,t,n,l]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{void 0!==s&&t.current.setSelectionModel(s)}),[t,s,n]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{n((e=>{const r=[...e.selection],o=sn(e);let n=!1;return r.forEach((e=>{!p||p(t.current.getRowParams(e))||(delete o[e],n=!0)})),n?Object.assign(Object.assign({},e),{selection:Object.values(o)}):e})),l()}),[t,n,l,p])},Wi=(t,r)=>{const o=xr(t,"useGridSorting"),[n,l,a]=Br(t),i=Wr(t,lo),s=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,t)=>{const r=n.sorting.sortModel.findIndex((t=>t.field===e));let o=[...n.sorting.sortModel];return r>-1?t?o.splice(r,1,t):o.splice(r,1):o=[...n.sorting.sortModel,t],o}),[n.sorting.sortModel]),c=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,t)=>{const o=n.sorting.sortModel.find((t=>t.field===e.field));if(o){const e=void 0===t?mn(r.sortingOrder,o.sort):t;return null==e?void 0:Object.assign(Object.assign({},o),{sort:e})}return{field:e.field,sort:void 0===t?mn(r.sortingOrder):t}}),[n.sorting.sortModel,r.sortingOrder]),u=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,r)=>({id:e,field:r,value:t.current.getCellValue(e,r),api:t.current})),[t]),d=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>(t,r)=>e.reduce(((e,o,n)=>{if(0!==e)return e;const{comparator:l}=o,a=t[n],i=r[n];return e=l(a.value,i.value,a,i)}),0)),[]),p=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>e.map((e=>{const r=t.current.getColumn(e.field);if(!r)throw new Error(`Error sorting: column with field '${e.field}' not found. `);const o="desc"===e.sort?(e,t,o,n)=>-1*r.sortComparator(e,t,o,n):r.sortComparator;return{field:r.field,comparator:o}}))),[t]),m=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{let e=t.current.getAllRowIds();if(r.sortingMode===Ir.server)return o.debug("Skipping sorting rows as sortingMode = server"),void l((t=>Object.assign(Object.assign({},t),{sorting:Object.assign(Object.assign({},t.sorting),{sortedRows:e})})));const n=t.current.state.sorting.sortModel;if(n.length>0){const t=p(n);o.debug("Sorting rows with ",n),e=e.map((e=>t.map((t=>u(e,t.field))))).sort(d(t)).map((e=>e[0].id))}l((t=>Object.assign(Object.assign({},t),{sorting:Object.assign(Object.assign({},t.sorting),{sortedRows:e})}))),a()}),[t,o,u,l,a,p,d,r.sortingMode]),f=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{l((t=>Object.assign(Object.assign({},t),{sorting:Object.assign(Object.assign({},t.sorting),{sortModel:e})}))),a(),t.current.applySorting()}),[l,a,t]),g=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,t,o)=>{if(!e.sortable)return;const n=c(e,t);let l;l=!o||r.disableMultipleColumnsSorting?n?[n]:[]:s(e.field,n),f(l)}),[s,f,c,r.disableMultipleColumnsSorting]),b=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((({colDef:e},t)=>{const r=t.shiftKey||t.metaKey||t.ctrlKey;g(e,void 0,r)}),[g]),h=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((({colDef:e},t)=>{!Ho(t.key)||t.ctrlKey||t.metaKey||g(e,void 0,t.shiftKey)}),[g]),v=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{l((e=>Object.assign(Object.assign({},e),{sorting:Object.assign(Object.assign({},e.sorting),{sortedRows:[]})})))}),[l]),C=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>n.sorting.sortModel),[n.sorting.sortModel]),w=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>Object.values(po(t.current.state))),[t]),O=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>uo(t.current.state)),[t]),y=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{l((e=>{const t=e.sorting.sortModel,r=ue(e);let o=t;return t.length>0&&(o=t.reduce(((e,t)=>(r.find((e=>e.field===t.field))&&e.push(t),e)),[])),Object.assign(Object.assign({},e),{sorting:Object.assign(Object.assign({},e.sorting),{sortModel:o})})}))}),[l]);qr(t,ne.columnHeaderClick,b),qr(t,ne.columnHeaderKeyDown,h),qr(t,ne.rowsSet,t.current.applySorting),qr(t,ne.rowsClear,v),qr(t,ne.rowsUpdate,t.current.applySorting),qr(t,ne.columnsChange,y);Rr(t,{getSortModel:C,getSortedRows:w,getSortedRowIds:O,setSortModel:f,sortColumn:g,applySorting:m},"GridSortApi"),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{t.current.applySorting()}),[t,r.rows]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{i>0&&(o.debug("row changed, applying sortModel"),t.current.applySorting())}),[i,t,o]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{t.current.updateControlState({stateId:"sortModel",propModel:r.sortModel,propOnChange:r.onSortModelChange,stateSelector:e=>e.sorting.sortModel,changeEvent:ne.sortModelChange})}),[t,r.sortModel,r.onSortModelChange]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{const e=t.current.state.sorting.sortModel;void 0!==r.sortModel&&r.sortModel!==e&&f(r.sortModel)}),[r.sortModel,t,f])};function Gi(e,t,r=0,o=t.length){if(t.length<=0)return-1;if(r>=o)return r;const n=r+Math.floor((o-r)/2);return e<=t[n]?Gi(e,t,r,n):Gi(e,t,n+1,o)}const Ui=(t,r)=>{var o;const n=xr(t,"useGridVirtualization"),l=t.current.columnHeadersElementRef,a=t.current.windowRef,i=t.current.renderingZoneRef,[s,c,u]=Br(t),d=Wr(t,rn),p=Wr(t,lo),m=Wr(t,de),f=Wr(t,pe),g=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),b=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),h=react__WEBPACK_IMPORTED_MODULE_0__.useRef(0),[v]=Mi(t,i,l),C=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{let t=!1;return c((r=>{const o=Object.assign(Object.assign({},r.rendering),e);return nr(r.rendering,o)?r:(t=!0,Object.assign(Object.assign({},r),{rendering:o}))})),t}),[c]),w=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{if(null==t.current.state.containerSizes)return null;let o=0;r.pagination&&null!=d.pageSize&&"client"===r.paginationMode&&(o=d.pageSize*d.page);const n=e*t.current.state.containerSizes.viewportPageSize+o;let l=n+t.current.state.containerSizes.renderingZonePageSize;const a=t.current.state.containerSizes.virtualRowsCount+o;l>a&&(l=a);return{page:e,firstRowIdx:n,lastRowIdx:l}}),[t,r.pagination,d.pageSize,r.paginationMode,d.page]),O=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{if(null==t.current.state.containerSizes)return null;return Object.assign(Object.assign(Object.assign({},g.current),w(t.current.state.rendering.virtualPage)),{paginationCurrentPage:d.page,pageSize:d.pageSize})}),[g,w,t,d.page,d.pageSize]),y=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{const e=O();C({renderContext:e})&&(n.debug("reRender: trigger rendering"),u())}),[O,n,u,C]),E=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>Gi(e,f.positions)),[f.positions]),S=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>m.length?m[E(e)]:null),[E,m]),x=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,o)=>{var l,a,i,s;if(!e)return!1;b.current=e;const c=e.windowSizes.width;h.current=o,n.debug(`GridColumns from ${null===(l=S(o))||void 0===l?void 0:l.field} to ${null===(a=S(o+c))||void 0===a?void 0:a.field}`);const u=E(o),d=E(o+c),p=(null===(i=null==g?void 0:g.current)||void 0===i?void 0:i.firstColIdx)||0,v=(null===(s=null==g?void 0:g.current)||void 0===s?void 0:s.lastColIdx)||0,C=r.columnBuffer,w=C>1?C-1:C,O=Math.abs(u-w-p),y=Math.abs(d+w-v);n.debug(`Column buffer: ${C}, tolerance: ${w}`),n.debug(`Previous values => first: ${p}, last: ${v}`),n.debug(`Current displayed values => first: ${u}, last: ${d}`),n.debug(`Difference with first: ${O} and last: ${y} `);const x=m.length>0?m.length-1:0,R=u-C>=0?u-C:0,k={leftEmptyWidth:f.positions[R],rightEmptyWidth:0,firstColIdx:R,lastColIdx:d+C>=x?x:d+C};return t.current.state.scrollBar.hasScrollX?k.rightEmptyWidth=f.totalWidth-f.positions[k.lastColIdx]-m[k.lastColIdx].computedWidth:r.disableExtendRowFullWidth||(k.rightEmptyWidth=t.current.state.viewportSizes.width-f.totalWidth),nr(k,g.current)?(n.debug("No rendering needed on columns"),!1):(g.current=k,n.debug("New columns state to render",k),!0)}),[t,f.positions,f.totalWidth,S,E,n,r.columnBuffer,r.disableExtendRowFullWidth,m]),R=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e=!1)=>{if(r.disableVirtualization)return;const o=t.current.state,l=o.containerSizes;if(!a||!a.current||!l)return;const i=o.scrollBar,{scrollLeft:s,scrollTop:c}=a.current;n.debug(`Handling scroll Left: ${s} Top: ${c}`);let u=x(l,s);const p=s,m=o.containerSizes.renderingZoneScrollHeight,f=o.rendering.virtualPage,g=m>0?Math.floor(c/m):0,b=c%m,h={left:i.hasScrollX?p:0,top:l.isVirtualized?b:c};l.isVirtualized&&f!==g?(C({virtualPage:g}),n.debug(`Changing page from ${f} to ${g}`),u=!0):(!l.isVirtualized&&f>0&&(n.debug("Virtualization disabled, setting virtualPage to 0"),C({virtualPage:0})),v(h)),C({renderingZoneScroll:h,realScroll:{left:a.current.scrollLeft,top:a.current.scrollTop}}),t.current.publishEvent(ne.rowsScroll,h);const w=o.rendering.renderContext&&o.rendering.renderContext.paginationCurrentPage!==d.page;(e||u||w)&&y()}),[t,n,d.page,y,v,C,x,a,r.disableVirtualization]),k=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{v({left:0,top:0}),C({virtualPage:0}),a&&a.current&&(a.current.scrollTop=0,a.current.scrollLeft=0),C({renderingZoneScroll:{left:0,top:0}})}),[v,C,a]),M=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),P=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{r.disableVirtualization||a.current.scrollLeft<0||a.current.scrollTop<0||(M.current||c((e=>Object.assign(Object.assign({},e),{isScrolling:!0}))),clearTimeout(M.current),M.current=setTimeout((()=>{M.current=null,c((e=>Object.assign(Object.assign({},e),{isScrolling:!1}))),u()}),300),t.current.updateViewport&&t.current.updateViewport())}),[r.disableVirtualization,a,t,c,u]),I=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>s.containerSizes),[s.containerSizes]),L=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>s.rendering.renderContext||void 0),[s.rendering.renderContext]);ar((()=>{r.disableVirtualization||i&&i.current&&(n.debug("applying scrollTop ",s.rendering.renderingZoneScroll.top),v(s.rendering.renderingZoneScroll))}));Rr(t,{getContainerPropsState:I,getRenderContextState:L,updateViewport:R},"GridVirtualizationApi"),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{var e;(null===(e=s.rendering.renderContext)||void 0===e?void 0:e.paginationCurrentPage)!==d.page&&t.current.updateViewport&&(n.debug(`State paginationState.page changed to ${d.page}. `),t.current.updateViewport(!0),k())}),[t,d.page,null===(o=s.rendering.renderContext)||void 0===o?void 0:o.paginationCurrentPage,n,k]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>(t.current.updateViewport&&(n.debug(`totalRowCount has changed to ${p}, updating viewport.`),t.current.updateViewport(!0)),()=>{clearTimeout(M.current)})),[n,p,s.viewportSizes,s.scrollBar,s.containerSizes,t]),Di(t,a,"scroll",P,{passive:!0});const j=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{n.debug("Clearing previous renderedColRef"),g.current=null}),[n,g]);qr(t,ne.columnsChange,j),qr(t,ne.debouncedResize,j)};function Ki(e){const{clientHeight:t,scrollTop:r,offsetHeight:o,offsetTop:n}=e,l=n+o;return l-t>r?l-t:n{const o=xr(t,"useGridScroll"),n=t.current.columnHeadersElementRef,l=t.current.windowRef,a=Wr(t,jo),i=Wr(t,rn),s=Wr(t,lo),c=Wr(t,de),u=Wr(t,pe),d=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{if(0===s||0===c.length)return!1;o.debug(`Scrolling to cell at row ${e.rowIndex}, col: ${e.colIndex} `);const n={};if(null!=e.colIndex&&(n.left=Ki({clientHeight:l.current.clientWidth,scrollTop:l.current.scrollLeft,offsetHeight:c[e.colIndex].computedWidth,offsetTop:u.positions[e.colIndex]})),null!=e.rowIndex){const t=r.pagination?e.rowIndex-i.page*i.pageSize:e.rowIndex;n.top=Ki({clientHeight:l.current.clientHeight,scrollTop:l.current.scrollTop,offsetHeight:a,offsetTop:a*t})}return(void 0!==typeof n.left||void 0!==typeof n.top)&&(t.current.scroll(n),!0)}),[s,c,o,t,r.pagination,i.page,i.pageSize,l,u.positions,a]),p=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{l.current&&null!=e.left&&n.current&&(n.current.scrollLeft=e.left,l.current.scrollLeft=e.left,o.debug(`Scrolling left: ${e.left}`)),l.current&&null!=e.top&&(l.current.scrollTop=e.top,o.debug(`Scrolling top: ${e.top}`)),o.debug("Scrolling, updating container, and viewport")}),[l,n,o]),m=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>Ur(t.current.getState())),[t]);Rr(t,{scroll:p,scrollToIndexes:d,getScrollPosition:m},"GridScrollApi");const f=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{e.target.scrollLeft=0,e.target.scrollTop=0}),[]);Di(t,(()=>{var e,r,o;return null===(o=null===(r=null===(e=t.current)||void 0===e?void 0:e.renderingZoneRef)||void 0===r?void 0:r.current)||void 0===o?void 0:o.parentElement}),"scroll",f),Di(t,(()=>{var e,r;return null===(r=null===(e=t.current)||void 0===e?void 0:e.columnHeadersContainerElementRef)||void 0===r?void 0:r.current}),"scroll",f)};class Yi extends class{constructor(){this.maxListeners=10,this.warnOnce=!1,this.events={}}on(e,t){Array.isArray(this.events[e])||(this.events[e]=[]),this.events[e].push(t), true&&this.events[e].length>this.maxListeners&&!1===this.warnOnce&&(this.warnOnce=!0,console.warn([`Possible EventEmitter memory leak detected. ${this.events[e].length} ${e} listeners added.`,"Use emitter.setMaxListeners() to increase limit."].join("\n")))}removeListener(e,t){if(Array.isArray(this.events[e])){const r=this.events[e].indexOf(t);r>-1&&this.events[e].splice(r,1)}}removeAllListeners(e){e?Array.isArray(this.events[e])&&(this.events[e]=[]):this.events={}}emit(e,...t){if(Array.isArray(this.events[e])){const r=this.events[e].slice(),o=r.length;for(let e=0;ethis.maxListeners&&!1===this.warnOnce&&(this.warnOnce=!0,console.warn([`Possible EventEmitter memory leak detected. ${this.events[e].length} ${e} listeners added.`,"Use emitter.setMaxListeners() to increase limit."].join("\n")))}}function qi(...t){const r=t[0],o=react__WEBPACK_IMPORTED_MODULE_0__.useRef(new Yi);return react__WEBPACK_IMPORTED_MODULE_0__.useImperativeHandle(r,(()=>o.current),[o]),o}function Xi(e,t){if(void 0!==t&&e.changedTouches){for(let r=0;r{const o=xr(t,"useGridColumnResize"),[,n,l]=Br(t),a=react__WEBPACK_IMPORTED_MODULE_0__.useRef(),i=react__WEBPACK_IMPORTED_MODULE_0__.useRef(),s=react__WEBPACK_IMPORTED_MODULE_0__.useRef(),c=react__WEBPACK_IMPORTED_MODULE_0__.useRef(),u=react__WEBPACK_IMPORTED_MODULE_0__.useRef(),d=react__WEBPACK_IMPORTED_MODULE_0__.useRef(),p=e=>{o.debug(`Updating width to ${e} for col ${a.current.field}`),a.current.computedWidth=e,a.current.width=e,a.current.flex=void 0,i.current.style.width=`${e}px`,i.current.style.minWidth=`${e}px`,i.current.style.maxWidth=`${e}px`,s.current.forEach((t=>{const r=t;r.style.width=`${e}px`,r.style.minWidth=`${e}px`,r.style.maxWidth=`${e}px`}))},m=lr((e=>{w(),t.current.updateColumn(a.current),clearTimeout(u.current),u.current=setTimeout((()=>{var r;t.current.publishEvent(ne.columnResizeStop,null,e),t.current.publishEvent(ne.columnWidthChange,{element:i.current,colDef:a.current,width:null===(r=a.current)||void 0===r?void 0:r.computedWidth},e)})),o.debug(`Updating col ${a.current.field} with new width: ${a.current.width}`)})),g=lr((e=>{var r;if(0===e.buttons)return void m(e);let o=c.current+e.clientX-i.current.getBoundingClientRect().left;o=Math.max(null===(r=a.current)||void 0===r?void 0:r.minWidth,o),p(o),t.current.publishEvent(ne.columnResize,{element:i.current,colDef:a.current,width:o},e)})),b=lr((({colDef:e},r)=>{var n;if(0!==r.button)return;if(!r.currentTarget.classList.contains(Kr["columnSeparator--resizable"]))return;r.preventDefault(),i.current=Ol(r.currentTarget,Kr.columnHeader),o.debug(`Start Resize on col ${e.field}`),t.current.publishEvent(ne.columnResizeStart,{field:e.field},r),a.current=e,i.current=null===(n=t.current.columnHeadersElementRef)||void 0===n?void 0:n.current.querySelector(`[data-field="${e.field}"]`),s.current=El(i.current);const l=(0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_23__["default"])(t.current.rootElementRef.current);l.body.style.cursor="col-resize",c.current=a.current.computedWidth-(r.clientX-i.current.getBoundingClientRect().left),l.addEventListener("mousemove",g),l.addEventListener("mouseup",m)})),h=lr((e=>{Xi(e,d.current)&&(w(),t.current.updateColumn(a.current),clearTimeout(u.current),u.current=setTimeout((()=>{t.current.publishEvent(ne.columnResizeStop,null,e)})),o.debug(`Updating col ${a.current.field} with new width: ${a.current.width}`))})),v=lr((e=>{var r;const o=Xi(e,d.current);if(!o)return;if("mousemove"===e.type&&0===e.buttons)return void h(e);let n=c.current+o.x-i.current.getBoundingClientRect().left;n=Math.max(null===(r=a.current)||void 0===r?void 0:r.minWidth,n),p(n),t.current.publishEvent(ne.columnResize,{element:i.current,colDef:a.current,width:n},e)})),C=lr((e=>{var r;if(!Ol(e.target,Kr["columnSeparator--resizable"]))return;e.preventDefault();const n=e.changedTouches[0];null!=n&&(d.current=n.identifier),i.current=Ol(e.target,Kr.columnHeader);const l=i.current.getAttribute("data-field");const u=t.current.getColumn(l);o.debug(`Start Resize on col ${u.field}`),t.current.publishEvent(ne.columnResizeStart,{field:l},e),a.current=u,i.current=function(e,t){return e.querySelector(`[data-field="${t}"]`)}(null===(r=t.current.columnHeadersElementRef)||void 0===r?void 0:r.current,u.field),s.current=El(i.current),c.current=a.current.computedWidth-(n.clientX-i.current.getBoundingClientRect().left);const p=(0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_23__["default"])(e.currentTarget);p.addEventListener("touchmove",v),p.addEventListener("touchend",h)})),w=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{const e=(0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_23__["default"])(t.current.rootElementRef.current);e.body.style.removeProperty("cursor"),e.removeEventListener("mousemove",g),e.removeEventListener("mouseup",m),e.removeEventListener("touchmove",v),e.removeEventListener("touchend",h)}),[t,g,m,v,h]),O=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((({field:e})=>{n((t=>Object.assign(Object.assign({},t),{columnResize:Object.assign(Object.assign({},t.columnResize),{resizingColumnField:e})}))),l()}),[n,l]),y=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{n((e=>Object.assign(Object.assign({},e),{columnResize:Object.assign(Object.assign({},e.columnResize),{resizingColumnField:""})}))),l()}),[n,l]);react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>()=>{clearTimeout(u.current),w()}),[t,C,w]),Di(t,(()=>{var e,r;return null===(r=null===(e=t.current)||void 0===e?void 0:e.columnHeadersElementRef)||void 0===r?void 0:r.current}),"touchstart",C,{passive:!1}),qr(t,ne.columnSeparatorMouseDown,b),qr(t,ne.columnResizeStart,O),qr(t,ne.columnResizeStop,y),Jr(t,ne.columnResize,r.onColumnResize),Jr(t,ne.columnWidthChange,r.onColumnWidthChange)},Qi=react__WEBPACK_IMPORTED_MODULE_0__.memo((function(t){const r=ae(),o=Qo(),[n]=o.sortingOrder,l="asc"===n?null==r?void 0:r.current.components.ColumnSortedAscendingIcon:null==r?void 0:r.current.components.ColumnSortedDescendingIcon;return l?react__WEBPACK_IMPORTED_MODULE_0__.createElement(l,Object.assign({},t)):null})),es=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(t,r){const{message:o}=t,n=un(t,["message"]),l=ae().current.getLocaleText("errorOverlayDefaultLabel");return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Ma,Object.assign({ref:r},n),o||l)})),ts=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(t,r){const o=ae().current.getLocaleText("noResultsOverlayLabel");return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Ma,Object.assign({ref:r},t),o)})),rs={BooleanCellFalseIcon:Ln,BooleanCellTrueIcon:Tn,Checkbox:_material_ui_core_Checkbox__WEBPACK_IMPORTED_MODULE_10__["default"],ColumnFilteredIcon:On,ColumnMenu:za,ColumnMenuIcon:In,ColumnResizeIcon:Rn,ColumnSelectorIcon:xn,ColumnSortedAscendingIcon:vn,ColumnSortedDescendingIcon:Cn,ColumnsPanel:Za,ColumnUnsortedIcon:Qi,DensityComfortableIcon:Pn,DensityCompactIcon:kn,DensityStandardIcon:Mn,ErrorOverlay:es,ExportIcon:zn,FilterPanel:ti,Footer:ui,Header:di,LoadingOverlay:pi,NoResultsOverlay:ts,NoRowsOverlay:mi,OpenFilterButtonIcon:wn,Pagination:gi,Panel:Xa,PreferencesPanel:Ja},os=(t,r)=>{const o=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>{var e,t;return{BooleanCellTrueIcon:r.components&&r.components.BooleanCellTrueIcon||rs.BooleanCellTrueIcon,BooleanCellFalseIcon:r.components&&r.components.BooleanCellFalseIcon||rs.BooleanCellFalseIcon,ColumnFilteredIcon:r.components&&r.components.ColumnFilteredIcon||rs.ColumnFilteredIcon,ColumnMenuIcon:r.components&&r.components.ColumnMenuIcon||rs.ColumnMenuIcon,ColumnResizeIcon:r.components&&r.components.ColumnResizeIcon||rs.ColumnResizeIcon,ColumnSelectorIcon:r.components&&r.components.ColumnSelectorIcon||rs.ColumnSelectorIcon,ColumnUnsortedIcon:void 0===(null===(e=r.components)||void 0===e?void 0:e.ColumnUnsortedIcon)?rs.ColumnUnsortedIcon:null===(t=r.components)||void 0===t?void 0:t.ColumnUnsortedIcon,ColumnSortedAscendingIcon:r.components&&r.components.ColumnSortedAscendingIcon||rs.ColumnSortedAscendingIcon,ColumnSortedDescendingIcon:r.components&&r.components.ColumnSortedDescendingIcon||rs.ColumnSortedDescendingIcon,DensityComfortableIcon:r.components&&r.components.DensityComfortableIcon||rs.DensityComfortableIcon,DensityCompactIcon:r.components&&r.components.DensityCompactIcon||rs.DensityCompactIcon,DensityStandardIcon:r.components&&r.components.DensityStandardIcon||rs.DensityStandardIcon,ExportIcon:r.components&&r.components.ExportIcon||rs.ExportIcon,OpenFilterButtonIcon:r.components&&r.components.OpenFilterButtonIcon||rs.OpenFilterButtonIcon,Checkbox:r.components&&r.components.Checkbox||rs.Checkbox,ColumnMenu:r.components&&r.components.ColumnMenu||rs.ColumnMenu,ErrorOverlay:r.components&&r.components.ErrorOverlay||rs.ErrorOverlay,Footer:r.components&&r.components.Footer||rs.Footer,Header:r.components&&r.components.Header||rs.Header,Toolbar:r.components&&r.components.Toolbar,PreferencesPanel:r.components&&r.components.PreferencesPanel||rs.PreferencesPanel,LoadingOverlay:r.components&&r.components.LoadingOverlay||rs.LoadingOverlay,NoResultsOverlay:r.components&&r.components.NoResultsOverlay||rs.NoResultsOverlay,NoRowsOverlay:r.components&&r.components.NoRowsOverlay||rs.NoRowsOverlay,Pagination:r.components&&r.components.Pagination||rs.Pagination,FilterPanel:r.components&&r.components.FilterPanel||rs.FilterPanel,ColumnsPanel:r.components&&r.components.ColumnsPanel||rs.ColumnsPanel,Panel:r.components&&r.components.Panel||rs.Panel}}),[r.components]);t.current.components=o,t.current.componentsProps=r.componentsProps},ns=()=>{const t=ae(),r=Wr(t,zo),o=Wr(t,so),n=Wr(t,de),[l]=Br(t);return react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>({state:l,rows:o,columns:n,options:r,apiRef:t,rootElement:t.current.rootElementRef})),[l,o,n,r,t])},ls=(e,t)=>{var r,o;return"v5"===mr()?{components:{MuiDataGrid:{defaultProps:{localeText:Object.assign(Object.assign({},e),{MuiTablePagination:(null===(r=null==t?void 0:t.components)||void 0===r?void 0:r.MuiTablePagination.defaultProps)||{}})}}}}:{props:{MuiDataGrid:{localeText:Object.assign(Object.assign({},e),{MuiTablePagination:(null===(o=null==t?void 0:t.props)||void 0===o?void 0:o.MuiTablePagination)||{}})}}}},as=ls({noRowsLabel:"لا توجد صفوف",noResultsOverlayLabel:"لم يتم العثور على نتائج.",errorOverlayDefaultLabel:"حدث خطأ.",toolbarDensity:"كثافة",toolbarDensityLabel:"كثافة",toolbarDensityCompact:"مدمج",toolbarDensityStandard:"المعيار",toolbarDensityComfortable:"مريح",toolbarColumns:"الأعمدة",toolbarColumnsLabel:"حدد الأعمدة",toolbarFilters:"الفلاتر",toolbarFiltersLabel:"اظهر الفلاتر",toolbarFiltersTooltipHide:"إخفاء الفلاتر",toolbarFiltersTooltipShow:"اظهر الفلاتر",toolbarFiltersTooltipActive:e=>`${e} فلاتر نشطة`,toolbarExport:"تصدير",toolbarExportLabel:"تصدير",toolbarExportCSV:"تنزيل كملف CSV",columnsPanelTextFieldLabel:"ايجاد عمود",columnsPanelTextFieldPlaceholder:"عنوان العمود",columnsPanelDragIconLabel:"إعادة ترتيب العمود",columnsPanelShowAllButton:"عرض الكل",columnsPanelHideAllButton:"اخفاء الكل",filterPanelAddFilter:"اضف فلتر",filterPanelDeleteIconLabel:"حذف",filterPanelOperators:"العاملين",filterPanelOperatorAnd:"و",filterPanelOperatorOr:"او",filterPanelColumns:"الأعمدة",filterPanelInputLabel:"قيمة",filterPanelInputPlaceholder:"قيمة التصفية",filterOperatorContains:"يحتوي على",filterOperatorEquals:"يساوي",filterOperatorStartsWith:"يبدأ ب",filterOperatorEndsWith:"ينتهي بـ",filterOperatorIs:"يكون",filterOperatorNot:"ليس",filterOperatorAfter:"يكون بعد",filterOperatorOnOrAfter:"في أو بعد",filterOperatorBefore:"يكون",filterOperatorOnOrBefore:"في أو قبل",filterOperatorIsEmpty:"فارغ",filterOperatorIsNotEmpty:"ليس فارغا",filterValueAny:"أي",filterValueTrue:"صحيح",filterValueFalse:"خاطئة",columnMenuLabel:"القائمة",columnMenuShowColumns:"إظهار الأعمدة",columnMenuFilter:"فلتر",columnMenuHideColumn:"إخفاء",columnMenuUnsort:"غير مرتب",columnMenuSortAsc:"الترتيب حسب ASC",columnMenuSortDesc:"الترتيب حسب DESC",columnHeaderFiltersTooltipActive:e=>`${e} فلاتر نشطة`,columnHeaderFiltersLabel:"اظهر الفلاتر",columnHeaderSortIconLabel:"ترتيب",footerRowSelected:e=>`${e.toLocaleString()} صفوف مختارة`,footerTotalRows:"إجمالي الصفوف:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} من ${t.toLocaleString()}`,checkboxSelectionHeaderName:"تحديد",booleanCellTrueLabel:"صحيح",booleanCellFalseLabel:"خاطئة"},_material_ui_core_locale__WEBPACK_IMPORTED_MODULE_36__.enUS),is=ls({noRowsLabel:"Няма редове",errorOverlayDefaultLabel:"Възникна грешка.",toolbarDensity:"Гъстота",toolbarDensityLabel:"Гъстота",toolbarDensityCompact:"Компактна",toolbarDensityStandard:"Стандартна",toolbarDensityComfortable:"Комфортна",toolbarColumns:"Колони",toolbarColumnsLabel:"Покажи селектора на колони",toolbarFilters:"Филтри",toolbarFiltersLabel:"Покажи Филтрите",toolbarFiltersTooltipHide:"Скрий Филтрите",toolbarFiltersTooltipShow:"Покажи Филтрите",toolbarFiltersTooltipActive:e=>`${e} активни филтри`,columnsPanelTextFieldLabel:"Намери колона",columnsPanelTextFieldPlaceholder:"Заглавие на колона",columnsPanelDragIconLabel:"Пренареди на колона",columnsPanelShowAllButton:"Покажи Всички",columnsPanelHideAllButton:"Скрий Всички",filterPanelAddFilter:"Добави Филтър",filterPanelDeleteIconLabel:"Изтрий",filterPanelOperators:"Оператори",filterPanelOperatorAnd:"И",filterPanelOperatorOr:"Или",filterPanelColumns:"Колони",filterOperatorContains:"съдържа",filterOperatorEquals:"равно",filterOperatorStartsWith:"започва с",filterOperatorEndsWith:"завършва с",filterOperatorIs:"е",filterOperatorNot:"не е",filterOperatorAfter:"е след",filterOperatorOnOrAfter:"е на или след",filterOperatorBefore:"е преди",filterOperatorOnOrBefore:"е на или преди",filterPanelInputLabel:"Стойност",filterPanelInputPlaceholder:"Стойност на филтъра",columnMenuLabel:"Меню",columnMenuShowColumns:"Покажи колоните",columnMenuFilter:"Филтри",columnMenuHideColumn:"Скрий",columnMenuUnsort:"Отмени сортирането",columnMenuSortAsc:"Сортирай по възходящ ред",columnMenuSortDesc:"Сортирай по низходящ ред",columnHeaderFiltersTooltipActive:e=>`${e} активни филтри`,columnHeaderFiltersLabel:"Покажи Филтрите",columnHeaderSortIconLabel:"Сортирай",footerRowSelected:e=>1!==e?`${e.toLocaleString()} избрани редове`:`${e.toLocaleString()} избран ред`,footerTotalRows:"Общо Rедове:"},_material_ui_core_locale__WEBPACK_IMPORTED_MODULE_36__.bgBG),ss=ls({noRowsLabel:"Žádné záznamy",noResultsOverlayLabel:"Nenašli se žadné výsledky.",errorOverlayDefaultLabel:"Stala sa nepředvídaná chyba.",toolbarDensity:"Hustota",toolbarDensityLabel:"Hustota",toolbarDensityCompact:"Kompaktní",toolbarDensityStandard:"Standartní",toolbarDensityComfortable:"Komfortní",toolbarColumns:"Sloupce",toolbarColumnsLabel:"Vybrat sloupec",toolbarFilters:"Filtry",toolbarFiltersLabel:"Zobrazit filtry",toolbarFiltersTooltipHide:"Skrýt filtry",toolbarFiltersTooltipShow:"Zobrazit filtry",toolbarFiltersTooltipActive:e=>{let t="aktivních filtrů";return e>1&&e<5?t="aktivní filtry":1===e&&(t="aktivní filtr"),`${e} ${t}`},toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Stáhnout jako CSV",columnsPanelTextFieldLabel:"Najít sloupec",columnsPanelTextFieldPlaceholder:"Název sloupce",columnsPanelDragIconLabel:"Uspořádat sloupce",columnsPanelShowAllButton:"Zobrazit vše",columnsPanelHideAllButton:"Skrýt vše",filterPanelAddFilter:"Přidat filtr",filterPanelDeleteIconLabel:"Odstranit",filterPanelOperators:"Operátory",filterPanelOperatorAnd:"A",filterPanelOperatorOr:"Nebo",filterPanelColumns:"Sloupce",filterPanelInputLabel:"Hodnota",filterPanelInputPlaceholder:"Hodnota filtru",filterOperatorContains:"obsahuje",filterOperatorEquals:"rovná se",filterOperatorStartsWith:"začíná s",filterOperatorEndsWith:"končí na",filterOperatorIs:"je",filterOperatorNot:"není",filterOperatorAfter:"je po",filterOperatorOnOrAfter:"je na nebo po",filterOperatorBefore:"je před",filterOperatorOnOrBefore:"je na nebo dříve",filterValueAny:"jakýkoliv",filterValueTrue:"ano",filterValueFalse:"ne",columnMenuLabel:"Menu",columnMenuShowColumns:"Zobrazit sloupce",columnMenuFilter:"Filtr",columnMenuHideColumn:"Skrýt",columnMenuUnsort:"Zrušit filtry",columnMenuSortAsc:"Seřadit vzestupně",columnMenuSortDesc:"Seřadit sestupně",columnHeaderFiltersTooltipActive:e=>{let t="aktivních filtrů";return e>1&&e<5?t="aktivní filtry":1===e&&(t="aktivní filtr"),`${e} ${t}`},columnHeaderFiltersLabel:"Zobrazit filtry",columnHeaderSortIconLabel:"Filtrovat",footerRowSelected:e=>{let t="vybraných záznamů";return e>1&&e<5?t="vybrané záznamy":1===e&&(t="vybraný záznam"),`${e} ${t}`},footerTotalRows:"Celkem řádků:",checkboxSelectionHeaderName:"Výběr řádku",booleanCellTrueLabel:"ano",booleanCellFalseLabel:"ne"},_material_ui_core_locale__WEBPACK_IMPORTED_MODULE_36__.csCZ),cs=ls({noRowsLabel:"Keine Einträge",noResultsOverlayLabel:"Keine Ergebnisse gefunden.",errorOverlayDefaultLabel:"Ein unerwarteter Fehler ist aufgetreten.",toolbarDensity:"Zeilenhöhe",toolbarDensityLabel:"Zeilenhöhe",toolbarDensityCompact:"Kompakt",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Breit",toolbarColumns:"Spalten",toolbarColumnsLabel:"Zeige Spaltenauswahl",toolbarFilters:"Filter",toolbarFiltersLabel:"Zeige Filter",toolbarFiltersTooltipHide:"Verberge Filter",toolbarFiltersTooltipShow:"Zeige Filter",toolbarFiltersTooltipActive:e=>1!==e?`${e} aktive Filter`:`${e} aktiver Filter`,toolbarExport:"Exportieren",toolbarExportLabel:"Exportieren",toolbarExportCSV:"Download als CSV",columnsPanelTextFieldLabel:"Finde Spalte",columnsPanelTextFieldPlaceholder:"Spaltenüberschrift",columnsPanelDragIconLabel:"Spalte umsortieren",columnsPanelShowAllButton:"Zeige alle",columnsPanelHideAllButton:"Verberge alle",filterPanelAddFilter:"Filter hinzufügen",filterPanelDeleteIconLabel:"Löschen",filterPanelOperators:"Operatoren",filterPanelOperatorAnd:"Und",filterPanelOperatorOr:"Oder",filterPanelColumns:"Spalten",filterPanelInputLabel:"Wert",filterPanelInputPlaceholder:"Wert filtern",filterOperatorContains:"beinhaltet",filterOperatorEquals:"ist gleich",filterOperatorStartsWith:"beginnt mit",filterOperatorEndsWith:"endet mit",filterOperatorIs:"ist",filterOperatorNot:"ist nicht",filterOperatorOnOrAfter:"ist an oder nach",filterOperatorBefore:"ist vor",filterOperatorOnOrBefore:"ist an oder vor",filterOperatorAfter:"ist nach",filterOperatorIsEmpty:"ist leer",filterOperatorIsNotEmpty:"ist nicht leer",columnMenuLabel:"Menü",columnMenuShowColumns:"Zeige alle Spalten",columnMenuFilter:"Filter",columnMenuHideColumn:"Verbergen",columnMenuUnsort:"Sortierung deaktivieren",columnMenuSortAsc:"Sortiere aufsteigend",columnMenuSortDesc:"Sortiere absteigend",columnHeaderFiltersTooltipActive:e=>1!==e?`${e} aktive Filter`:`${e} aktiver Filter`,columnHeaderFiltersLabel:"Zeige Filter",columnHeaderSortIconLabel:"Sortieren",footerRowSelected:e=>1!==e?`${e.toLocaleString()} Einträge ausgewählt`:`${e.toLocaleString()} Eintrag ausgewählt`,footerTotalRows:"Gesamt:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} von ${t.toLocaleString()}`},_material_ui_core_locale__WEBPACK_IMPORTED_MODULE_36__.deDE),us=ls({noRowsLabel:"Δεν υπάρχουν καταχωρήσεις",errorOverlayDefaultLabel:"Παρουσιάστηκε απρόβλεπτο σφάλμα.",toolbarDensity:"Ύψος σειράς",toolbarDensityLabel:"Ύψος σειράς",toolbarDensityCompact:"Συμπαγής",toolbarDensityStandard:"Προκαθορισμένο",toolbarDensityComfortable:"Πλατύ",toolbarColumns:"Στήλες",toolbarColumnsLabel:"Επιλέξτε στήλες",toolbarFilters:"Φίλτρα",toolbarFiltersLabel:"Εμφάνιση φίλτρων",toolbarFiltersTooltipHide:"Απόκρυψη φίλτρων",toolbarFiltersTooltipShow:"Εμφάνιση φίλτρων",toolbarFiltersTooltipActive:e=>1!==e?`${e} ενεργά φίλτρα`:`${e} ενεργό φίλτρο`,toolbarExport:"Εξαγωγή",toolbarExportLabel:"Εξαγωγή",toolbarExportCSV:"Λήψη ως CSV",columnsPanelTextFieldLabel:"Εύρεση στήλης",columnsPanelTextFieldPlaceholder:"Επικεφαλίδα στήλης",columnsPanelDragIconLabel:"Αναδιάταξη στήλης",columnsPanelShowAllButton:"Προβολή όλων",columnsPanelHideAllButton:"Απόκρυψη όλων",filterPanelAddFilter:"Προσθήκη φίλτρου",filterPanelDeleteIconLabel:"Διαγραφή",filterPanelOperators:"Τελεστές",filterPanelOperatorAnd:"Καί",filterPanelOperatorOr:"Ή",filterPanelColumns:"Στήλες",filterPanelInputLabel:"Τιμή",filterPanelInputPlaceholder:"Τιμή φίλτρου",filterOperatorContains:"περιέχει",filterOperatorEquals:"ισούται",filterOperatorStartsWith:"ξεκινάει με",filterOperatorEndsWith:"τελειώνει με",filterOperatorIs:"είναι",filterOperatorNot:"δεν είναι",filterOperatorAfter:"είναι μετά",filterOperatorOnOrAfter:"είναι ίσο ή μετά",filterOperatorBefore:"είναι πριν",filterOperatorOnOrBefore:"είναι ίσο ή πριν",columnMenuLabel:"Μενού",columnMenuShowColumns:"Εμφάνιση στηλών",columnMenuFilter:"Φίλτρο",columnMenuHideColumn:"Απόκρυψη",columnMenuUnsort:"Απενεργοποίηση ταξινόμησης",columnMenuSortAsc:"Ταξινόμηση σε αύξουσα σειρά",columnMenuSortDesc:"Ταξινόμηση σε φθίνουσα σειρά",columnHeaderFiltersTooltipActive:e=>1!==e?`${e} ενεργά φίλτρα`:`${e} ενεργό φίλτρο`,columnHeaderFiltersLabel:"Εμφάνιση φίλτρων",columnHeaderSortIconLabel:"Ταξινόμηση",footerRowSelected:e=>1!==e?`${e.toLocaleString()} επιλεγμένες γραμμές`:`${e.toLocaleString()} επιλεγμένη γραμμή`,footerTotalRows:"Σύνολο Γραμμών:"}),ds=ls(Mr,_material_ui_core_locale__WEBPACK_IMPORTED_MODULE_36__.enUS),ps=ls({noRowsLabel:"Sin filas",errorOverlayDefaultLabel:"Ha ocurrido un error.",toolbarDensity:"Densidad",toolbarDensityLabel:"Densidad",toolbarDensityCompact:"Compacta",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comoda",toolbarColumns:"Columnas",toolbarColumnsLabel:"Seleccionar columnas",toolbarFilters:"Filtros",toolbarFiltersLabel:"Mostrar filtros",toolbarFiltersTooltipHide:"Ocultar filtros",toolbarFiltersTooltipShow:"Mostrar filtros",toolbarFiltersTooltipActive:e=>e>1?`${e} filtros activos`:`${e} filtro activo`,toolbarExport:"Exportar",toolbarExportLabel:"Exportar",toolbarExportCSV:"Descargar como CSV",columnsPanelTextFieldLabel:"Columna de búsqueda",columnsPanelTextFieldPlaceholder:"Título de columna",columnsPanelDragIconLabel:"Reorder columna",columnsPanelShowAllButton:"Mostrar todo",columnsPanelHideAllButton:"Ocultar todo",filterPanelAddFilter:"Agregar filtro",filterPanelDeleteIconLabel:"Borrar",filterPanelOperators:"Operadores",filterPanelOperatorAnd:"Y",filterPanelOperatorOr:"O",filterPanelColumns:"Columnas",filterPanelInputLabel:"Valor",filterPanelInputPlaceholder:"Valor de filtro",filterOperatorContains:"contiene",filterOperatorEquals:"es igual",filterOperatorStartsWith:"comienza con",filterOperatorEndsWith:"termina con",filterOperatorIs:"es",filterOperatorNot:"no es",filterOperatorAfter:"es posterior",filterOperatorOnOrAfter:"es en o posterior",filterOperatorBefore:"es anterior",filterOperatorOnOrBefore:"es en o anterior",filterOperatorIsEmpty:"está vacío",filterOperatorIsNotEmpty:"no esta vacío",columnMenuLabel:"Menú",columnMenuShowColumns:"Mostrar columnas",columnMenuFilter:"Filtro",columnMenuHideColumn:"Ocultar",columnMenuUnsort:"Desordenar",columnMenuSortAsc:"Ordenar ASC",columnMenuSortDesc:"Ordenar DESC",columnHeaderFiltersTooltipActive:e=>e>1?`${e} filtros activos`:`${e} filtro activo`,columnHeaderFiltersLabel:"Mostrar filtros",columnHeaderSortIconLabel:"Ordenar",footerRowSelected:e=>e>1?`${e.toLocaleString()} filas seleccionadas`:`${e.toLocaleString()} fila seleccionada`,footerTotalRows:"Filas Totales:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} de ${t.toLocaleString()}`},_material_ui_core_locale__WEBPACK_IMPORTED_MODULE_36__.esES),ms=ls({noRowsLabel:"Pas de résultats",noResultsOverlayLabel:"Aucun résultat.",errorOverlayDefaultLabel:"Une erreur est apparue.",toolbarDensity:"Densité",toolbarDensityLabel:"Densité",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Confortable",toolbarColumns:"Colonnes",toolbarColumnsLabel:"Choisir les colonnes",toolbarFilters:"Filtres",toolbarFiltersLabel:"Afficher les filtres",toolbarFiltersTooltipHide:"Cacher les filtres",toolbarFiltersTooltipShow:"Afficher les filtres",toolbarFiltersTooltipActive:e=>e>1?`${e} filtres actifs`:`${e} filtre actif`,toolbarExport:"Exporter",toolbarExportLabel:"Exporter",toolbarExportCSV:"Télécharger en CSV",columnsPanelTextFieldLabel:"Chercher colonne",columnsPanelTextFieldPlaceholder:"Titre de la colonne",columnsPanelDragIconLabel:"Réorganiser la colonne",columnsPanelShowAllButton:"Tout afficher",columnsPanelHideAllButton:"Tout cacher",filterPanelAddFilter:"Ajouter un filtre",filterPanelDeleteIconLabel:"Supprimer",filterPanelOperators:"Opérateurs",filterPanelOperatorAnd:"Et",filterPanelOperatorOr:"Ou",filterPanelColumns:"Colonnes",filterPanelInputLabel:"Valeur",filterPanelInputPlaceholder:"Filtrer la valeur",filterOperatorContains:"contient",filterOperatorEquals:"égal à",filterOperatorStartsWith:"commence par",filterOperatorEndsWith:"se termine par",filterOperatorIs:"est",filterOperatorNot:"n'est pas",filterOperatorOnOrAfter:"égal ou postérieur",filterOperatorAfter:"postérieur",filterOperatorOnOrBefore:"égal ou antérieur",filterOperatorBefore:"antérieur",filterOperatorIsEmpty:"est vide",filterOperatorIsNotEmpty:"n'est pas vide",columnMenuLabel:"Menu",columnMenuShowColumns:"Afficher les colonnes",columnMenuFilter:"Filtrer",columnMenuHideColumn:"Cacher",columnMenuUnsort:"Annuler le tri",columnMenuSortAsc:"Tri ascendant",columnMenuSortDesc:"Tri descendant",columnHeaderFiltersTooltipActive:e=>e>1?`${e} filtres actifs`:`${e} filtre actif`,columnHeaderFiltersLabel:"Afficher les filtres",columnHeaderSortIconLabel:"Trier",footerRowSelected:e=>e>1?`${e.toLocaleString()} lignes sélectionnées`:`${e.toLocaleString()} ligne sélectionnée`,footerTotalRows:"Lignes totales :",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} sur ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Sélection"},_material_ui_core_locale__WEBPACK_IMPORTED_MODULE_36__.frFR),fs=ls({noRowsLabel:"Nessun record",noResultsOverlayLabel:"Nessun record trovato.",errorOverlayDefaultLabel:"Si è verificato un errore.",toolbarDensity:"Densità",toolbarDensityLabel:"Densità",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Confortable",toolbarColumns:"Colonne",toolbarColumnsLabel:"Seleziona le colonne",toolbarFilters:"Filtri",toolbarFiltersLabel:"Mostra i filtri",toolbarFiltersTooltipHide:"Nascondi i filtri",toolbarFiltersTooltipShow:"Mostra i filtri",toolbarFiltersTooltipActive:e=>e>1?`${e} filtri attivi`:`${e} filtro attivo`,columnsPanelTextFieldLabel:"Cerca colonna",columnsPanelTextFieldPlaceholder:"Titolo della colonna",columnsPanelDragIconLabel:"Riordina la colonna",columnsPanelShowAllButton:"Mostra tutto",columnsPanelHideAllButton:"Nascondi tutto",filterPanelAddFilter:"Aggiungi un filtro",filterPanelDeleteIconLabel:"Rimuovi",filterPanelOperators:"Operatori",filterPanelOperatorAnd:"E (and)",filterPanelOperatorOr:"O (or)",filterPanelColumns:"Colonne",filterPanelInputLabel:"Valore",filterPanelInputPlaceholder:"Filtra il valore",filterOperatorContains:"contiene",filterOperatorEquals:"uguale a",filterOperatorStartsWith:"comincia per",filterOperatorEndsWith:"termina per",filterOperatorIs:"uguale a",filterOperatorNot:"diversa da",filterOperatorOnOrAfter:"a partire dal",filterOperatorAfter:"dopo il",filterOperatorOnOrBefore:"fino al",filterOperatorBefore:"prima del",filterOperatorIsEmpty:"è vuoto",filterOperatorIsNotEmpty:"non è vuoto",columnMenuLabel:"Menu",columnMenuShowColumns:"Mostra le colonne",columnMenuFilter:"Filtra",columnMenuHideColumn:"Nascondi",columnMenuUnsort:"Annulla l'ordinamento",columnMenuSortAsc:"Ordinamento crescente",columnMenuSortDesc:"Ordinamento decrescente",columnHeaderFiltersTooltipActive:e=>e>1?`${e} filtri attivi`:`${e} filtro attivo`,columnHeaderFiltersLabel:"Mostra i filtri",columnHeaderSortIconLabel:"Ordina",footerRowSelected:e=>e>1?`${e.toLocaleString()} record selezionati`:`${e.toLocaleString()} record selezionato`,footerTotalRows:"Record totali :",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} di ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Seleziona"},_material_ui_core_locale__WEBPACK_IMPORTED_MODULE_36__.itIT),gs=ls({noRowsLabel:"行がありません",errorOverlayDefaultLabel:"エラーが発生しました。",toolbarDensity:"行間隔",toolbarDensityLabel:"行間隔",toolbarDensityCompact:"コンパクト",toolbarDensityStandard:"標準",toolbarDensityComfortable:"ひろめ",toolbarColumns:"列一覧",toolbarColumnsLabel:"列選択",toolbarFilters:"フィルター",toolbarFiltersLabel:"フィルター表示",toolbarFiltersTooltipHide:"フィルター非表示",toolbarFiltersTooltipShow:"フィルター表示",toolbarFiltersTooltipActive:e=>`${e}件のフィルターを適用中`,toolbarExport:"エクスポート",toolbarExportLabel:"エクスポート",toolbarExportCSV:"CSVダウンロード",columnsPanelTextFieldLabel:"列検索",columnsPanelTextFieldPlaceholder:"検索クエリを入力...",columnsPanelDragIconLabel:"列並べ替え",columnsPanelShowAllButton:"すべて表示",columnsPanelHideAllButton:"すべて非表示",filterPanelAddFilter:"フィルター追加",filterPanelDeleteIconLabel:"削除",filterPanelOperators:"オペレータ",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"列",filterPanelInputLabel:"値",filterPanelInputPlaceholder:"値を入力...",filterOperatorContains:"...を含む",filterOperatorEquals:"...に等しい",filterOperatorStartsWith:"...で始まる",filterOperatorEndsWith:"...で終わる",filterOperatorIs:"...である",filterOperatorNot:"...でない",filterOperatorAfter:"...より後ろ",filterOperatorOnOrAfter:"...以降",filterOperatorBefore:"...より前",filterOperatorOnOrBefore:"...以前",columnMenuLabel:"メニュー",columnMenuShowColumns:"列表示",columnMenuFilter:"フィルター",columnMenuHideColumn:"列非表示",columnMenuUnsort:"ソート解除",columnMenuSortAsc:"昇順ソート",columnMenuSortDesc:"降順ソート",columnHeaderFiltersTooltipActive:e=>`${e}件のフィルターを適用中`,columnHeaderFiltersLabel:"フィルター表示",columnHeaderSortIconLabel:"ソート",footerRowSelected:e=>`${e}行を選択中`,footerTotalRows:"総行数:"},_material_ui_core_locale__WEBPACK_IMPORTED_MODULE_36__.jaJP),bs=ls({noRowsLabel:"Geen resultaten.",errorOverlayDefaultLabel:"Er deed zich een fout voor.",toolbarDensity:"Grootte",toolbarDensityLabel:"Grootte",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Normaal",toolbarDensityComfortable:"Breed",toolbarColumns:"Kolommen",toolbarColumnsLabel:"Kies kolommen",toolbarFilters:"Filters",toolbarFiltersLabel:"Toon filters",toolbarFiltersTooltipHide:"Verberg filters",toolbarFiltersTooltipShow:"Toon filters",toolbarFiltersTooltipActive:e=>e>1?`${e} actieve filters`:`${e} filter actief`,columnsPanelTextFieldLabel:"Zoek kolom",columnsPanelTextFieldPlaceholder:"Kolomtitel",columnsPanelDragIconLabel:"Kolom herschikken",columnsPanelShowAllButton:"Alles tonen",columnsPanelHideAllButton:"Alles verbergen",filterPanelAddFilter:"Filter toevoegen",filterPanelDeleteIconLabel:"Verwijderen",filterPanelOperators:"Operatoren",filterPanelOperatorAnd:"En",filterPanelOperatorOr:"Of",filterPanelColumns:"Kolommen",filterPanelInputLabel:"Waarde",filterPanelInputPlaceholder:"Filter waarde",filterOperatorContains:"bevat",filterOperatorEquals:"gelijk aan",filterOperatorStartsWith:"begint met",filterOperatorEndsWith:"eindigt met",filterOperatorIs:"is",filterOperatorNot:"is niet",filterOperatorOnOrAfter:"is gelijk of er voor",filterOperatorAfter:"is voor",filterOperatorOnOrBefore:"is gelijk of er na",filterOperatorBefore:"is na",columnMenuLabel:"Menu",columnMenuShowColumns:"Toon kolommen",columnMenuFilter:"Filteren",columnMenuHideColumn:"Verbergen",columnMenuUnsort:"Annuleer sortering",columnMenuSortAsc:"Oplopend sorteren",columnMenuSortDesc:"Aflopend sorteren",columnHeaderFiltersTooltipActive:e=>e>1?`${e} actieve filters`:`${e} filter actief`,columnHeaderFiltersLabel:"Toon filters",columnHeaderSortIconLabel:"Sorteren",footerRowSelected:e=>e>1?`${e.toLocaleString()} rijen geselecteerd`:`${e.toLocaleString()} rij geselecteerd`,footerTotalRows:"Totaal:"},_material_ui_core_locale__WEBPACK_IMPORTED_MODULE_36__.nlNL),hs={noRowsLabel:"Brak danych",errorOverlayDefaultLabel:"Wystąpił błąd.",toolbarDensity:"Wysokość rzędu",toolbarDensityLabel:"Wysokość rzędu",toolbarDensityCompact:"Kompakt",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Komfort",toolbarColumns:"Kolumny",toolbarColumnsLabel:"Zaznacz kolumny",toolbarFilters:"Filtry",toolbarFiltersLabel:"Pokaż filtry",toolbarFiltersTooltipHide:"Ukryj filtry",toolbarFiltersTooltipShow:"Pokaż filtry",toolbarFiltersTooltipActive:e=>`Liczba aktywnych filtrów: ${e}`,toolbarExport:"Eksportuj",toolbarExportLabel:"Eksportuj",toolbarExportCSV:"Pobierz jako plik CSV",columnsPanelTextFieldLabel:"Znajdź kolumnę",columnsPanelTextFieldPlaceholder:"Tytuł kolumny",columnsPanelDragIconLabel:"Zmień kolejność kolumn",columnsPanelShowAllButton:"Pokaż wszystko",columnsPanelHideAllButton:"Ukryj wszystko",filterPanelAddFilter:"Dodaj filtr",filterPanelDeleteIconLabel:"Usuń",filterPanelOperators:"Operator",filterPanelOperatorAnd:"I",filterPanelOperatorOr:"Lub",filterPanelColumns:"Kolumny",filterPanelInputLabel:"Wartość",filterPanelInputPlaceholder:"Filtrowana wartość",filterOperatorContains:"zawiera",filterOperatorEquals:"równa się",filterOperatorStartsWith:"zaczyna się od",filterOperatorEndsWith:"kończy się na",filterOperatorIs:"równa się",filterOperatorNot:"różne",filterOperatorAfter:"większe niż",filterOperatorOnOrAfter:"większe lub równe",filterOperatorBefore:"mniejsze niż",filterOperatorOnOrBefore:"mniejsze lub równe",columnMenuLabel:"Menu",columnMenuShowColumns:"Pokaż wszystkie kolumny",columnMenuFilter:"Filtr",columnMenuHideColumn:"Ukryj",columnMenuUnsort:"Anuluj sortowanie",columnMenuSortAsc:"Sortuj rosnąco",columnMenuSortDesc:"Sortuj malejąco",columnHeaderFiltersTooltipActive:e=>`Liczba aktywnych filtrów: ${e}`,columnHeaderFiltersLabel:"Pokaż filtry",columnHeaderSortIconLabel:"Sortuj",footerRowSelected:e=>`Liczba wybranych wierszy: ${e.toLocaleString()}`,footerTotalRows:"Łączna liczba wierszy:"},vs=ls(hs,_material_ui_core_locale__WEBPACK_IMPORTED_MODULE_36__.plPL),Cs=ls({noRowsLabel:"Nenhuma linha",noResultsOverlayLabel:"Nenhum resultado encontrado.",errorOverlayDefaultLabel:"Ocorreu um erro.",toolbarDensity:"Densidade",toolbarDensityLabel:"Densidade",toolbarDensityCompact:"Compacto",toolbarDensityStandard:"Padrão",toolbarDensityComfortable:"Confortável",toolbarColumns:"Colunas",toolbarColumnsLabel:"Exibir seletor de colunas",toolbarFilters:"Filtros",toolbarFiltersLabel:"Exibir filtros",toolbarFiltersTooltipHide:"Ocultar filtros",toolbarFiltersTooltipShow:"Exibir filtros",toolbarFiltersTooltipActive:e=>`${e} ${1!==e?"filtros":"filtro"} ${1!==e?"ativos":"ativo"}`,toolbarExport:"Exportar",toolbarExportLabel:"Exportar",toolbarExportCSV:"Baixar como CSV",columnsPanelTextFieldLabel:"Localizar coluna",columnsPanelTextFieldPlaceholder:"Título da coluna",columnsPanelDragIconLabel:"Reordenar Coluna",columnsPanelShowAllButton:"Mostrar todas",columnsPanelHideAllButton:"Ocultar todas",filterPanelAddFilter:"Adicionar filtro",filterPanelDeleteIconLabel:"Excluir",filterPanelOperators:"Operadores",filterPanelOperatorAnd:"E",filterPanelOperatorOr:"Ou",filterPanelColumns:"Colunas",filterPanelInputLabel:"Valor",filterPanelInputPlaceholder:"Filtrar valor",filterOperatorContains:"contém",filterOperatorEquals:"é igual a",filterOperatorStartsWith:"começa com",filterOperatorEndsWith:"termina com",filterOperatorIs:"é",filterOperatorNot:"não é",filterOperatorOnOrAfter:"em ou após",filterOperatorBefore:"antes de",filterOperatorOnOrBefore:"em ou antes de",filterOperatorAfter:"após",filterOperatorIsEmpty:"está vazio",filterOperatorIsNotEmpty:"não está vazio",columnMenuLabel:"Menu",columnMenuShowColumns:"Exibir colunas",columnMenuFilter:"Filtrar",columnMenuHideColumn:"Ocultar",columnMenuUnsort:"Desfazer ordenação",columnMenuSortAsc:"Ordenar do menor para o maior",columnMenuSortDesc:"Ordenar do maior para o menor",columnHeaderFiltersTooltipActive:e=>`${e} ${1!==e?"filtros":"filtro"} ${1!==e?"ativos":"ativo"}`,columnHeaderFiltersLabel:"Exibir Filtros",columnHeaderSortIconLabel:"Ordenar",footerRowSelected:e=>1!==e?`${e.toLocaleString()} linhas selecionadas`:`${e.toLocaleString()} linha selecionada`,footerTotalRows:"Total de linhas:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} de ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Seleção",booleanCellTrueLabel:"sim",booleanCellFalseLabel:"não"},_material_ui_core_locale__WEBPACK_IMPORTED_MODULE_36__.ptBR),ws={noRowsLabel:"Нет строк",errorOverlayDefaultLabel:"Обнаружена ошибка.",toolbarDensity:"Высота строки",toolbarDensityLabel:"Высота строки",toolbarDensityCompact:"Компактная",toolbarDensityStandard:"Стандартная",toolbarDensityComfortable:"Комфортная",toolbarColumns:"Столбцы",toolbarColumnsLabel:"Выделите столбцы",toolbarFilters:"Фильтры",toolbarFiltersLabel:"Показать фильтры",toolbarFiltersTooltipHide:"Скрыть фильтры",toolbarFiltersTooltipShow:"Показать фильтры",toolbarFiltersTooltipActive:e=>{let t="активных фильтров";const r=e%10;return r>1&&r<5?t="активных фильтра":1===r&&(t="активный фильтр"),`${e} ${t}`},toolbarExport:"Экспорт",toolbarExportLabel:"Экспорт",toolbarExportCSV:"Скачать в формате CSV",columnsPanelTextFieldLabel:"Найти столбец",columnsPanelTextFieldPlaceholder:"Заголовок столбца",columnsPanelDragIconLabel:"Изменить порядок столбца",columnsPanelShowAllButton:"Показать все",columnsPanelHideAllButton:"Скрыть все",filterPanelAddFilter:"Добавить фильтр",filterPanelDeleteIconLabel:"Удалить",filterPanelOperators:"Операторы",filterPanelOperatorAnd:"И",filterPanelOperatorOr:"Или",filterPanelColumns:"Столбцы",filterPanelInputLabel:"Значение",filterPanelInputPlaceholder:"Значение фильтра",filterOperatorContains:"содержит",filterOperatorEquals:"равен",filterOperatorStartsWith:"начинается с",filterOperatorEndsWith:"заканчивается на",filterOperatorIs:"равен",filterOperatorNot:"не равен",filterOperatorAfter:"больше чем",filterOperatorOnOrAfter:"больше или равно",filterOperatorBefore:"меньше чем",filterOperatorOnOrBefore:"меньше или равно",filterValueAny:"любой",filterValueTrue:"истина",filterValueFalse:"ложь",columnMenuLabel:"Меню",columnMenuShowColumns:"Показать столбцы",columnMenuFilter:"Фильтр",columnMenuHideColumn:"Скрыть",columnMenuUnsort:"Отменить сортировку",columnMenuSortAsc:"Сортировать по возрастанию",columnMenuSortDesc:"Сортировать по убыванию",columnHeaderFiltersTooltipActive:e=>{let t="активных фильтров";const r=e%10;return r>1&&r<5?t="активных фильтра":1===r&&(t="активный фильтр"),`${e} ${t}`},columnHeaderFiltersLabel:"Показать фильтры",columnHeaderSortIconLabel:"Сортировать",footerRowSelected:e=>{let t="строк выбрано";const r=e%10;return r>1&&r<5?t="строки выбраны":1===r&&(t="строка выбрана"),`${e} ${t}`},footerTotalRows:"Всего строк:",checkboxSelectionHeaderName:"Выбор флажка",booleanCellTrueLabel:"истина",booleanCellFalseLabel:"ложь"},Os=ls(ws,_material_ui_core_locale__WEBPACK_IMPORTED_MODULE_36__.ruRU),ys={noRowsLabel:"Žiadne záznamy",noResultsOverlayLabel:"Nenašli sa žadne výsledky.",errorOverlayDefaultLabel:"Stala sa nepredvídaná chyba.",toolbarDensity:"Hustota",toolbarDensityLabel:"Hustota",toolbarDensityCompact:"Kompaktná",toolbarDensityStandard:"Štandartná",toolbarDensityComfortable:"Komfortná",toolbarColumns:"Stĺpce",toolbarColumnsLabel:"Vybrať stĺpce",toolbarFilters:"Filtre",toolbarFiltersLabel:"Zobraziť filtre",toolbarFiltersTooltipHide:"Skryť filtre ",toolbarFiltersTooltipShow:"Zobraziť filtre",toolbarFiltersTooltipActive:e=>{let t="aktívnych filtrov";return e>1&&e<5?t="aktívne filtre":1===e&&(t="aktívny filter"),`${e} ${t}`},toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Stiahnuť ako CSV",columnsPanelTextFieldLabel:"Nájsť stĺpec",columnsPanelTextFieldPlaceholder:"Názov stĺpca",columnsPanelDragIconLabel:"Usporiadť stĺpce",columnsPanelShowAllButton:"Zobraziť všetko",columnsPanelHideAllButton:"Skryť všetko",filterPanelAddFilter:"Pridať filter",filterPanelDeleteIconLabel:"Odstrániť",filterPanelOperators:"Operátory",filterPanelOperatorAnd:"A",filterPanelOperatorOr:"Alebo",filterPanelColumns:"Stĺpce",filterPanelInputLabel:"Hodnota",filterPanelInputPlaceholder:"Hodnota filtra",filterOperatorContains:"obsahuje",filterOperatorEquals:"rovná sa",filterOperatorStartsWith:"začína s",filterOperatorEndsWith:"končí na",filterOperatorIs:"je",filterOperatorNot:"nie je",filterOperatorAfter:"je po",filterOperatorOnOrAfter:"je na alebo po",filterOperatorBefore:"je pred",filterOperatorOnOrBefore:"je na alebo skôr",filterValueAny:"akýkoľvek",filterValueTrue:"áno",filterValueFalse:"nie",columnMenuLabel:"Menu",columnMenuShowColumns:"Zobraziť stĺpce",columnMenuFilter:"Filter",columnMenuHideColumn:"Skryť",columnMenuUnsort:"Zrušiť filtre",columnMenuSortAsc:"Zoradiť vzostupne",columnMenuSortDesc:"Zoradiť zostupne",columnHeaderFiltersTooltipActive:e=>{let t="aktívnych filtrov";return e>1&&e<5?t="aktívne filtre":1===e&&(t="aktívny filter"),`${e} ${t}`},columnHeaderFiltersLabel:"Zobraziť filtre",columnHeaderSortIconLabel:"Filtrovať",footerRowSelected:e=>{let t="vybraných záznamov";return e>1&&e<5?t="vybrané záznamy":1===e&&(t="vybraný záznam"),`${e} ${t}`},footerTotalRows:"Riadkov spolu:",checkboxSelectionHeaderName:"Výber riadku",booleanCellTrueLabel:"áno",booleanCellFalseLabel:"nie"},Es=ls(ys,_material_ui_core_locale__WEBPACK_IMPORTED_MODULE_36__.skSK),Ss=ls({noRowsLabel:"Satır yok",errorOverlayDefaultLabel:"Bir hata oluştu.",toolbarDensity:"Yoğunluk",toolbarDensityLabel:"Yoğunluk",toolbarDensityCompact:"Sıkı",toolbarDensityStandard:"Standart",toolbarDensityComfortable:"Rahat",toolbarColumns:"Sütunlar",toolbarColumnsLabel:"Sütun seç",toolbarFilters:"Filtreler",toolbarFiltersLabel:"Filtreleri göster",toolbarFiltersTooltipHide:"Filtreleri gizle",toolbarFiltersTooltipShow:"Filtreleri göster",toolbarFiltersTooltipActive:e=>`${e} aktif filtre`,toolbarExport:"Dışa aktar",toolbarExportLabel:"Dışa aktar",toolbarExportCSV:"CSV olarak aktar",columnsPanelTextFieldLabel:"Sütun ara",columnsPanelTextFieldPlaceholder:"Sütun adı",columnsPanelDragIconLabel:"Sütunları yeniden sırala",columnsPanelShowAllButton:"Hepsini göster",columnsPanelHideAllButton:"Hepsini gizle",filterPanelAddFilter:"Filtre Ekle",filterPanelDeleteIconLabel:"Kaldır",filterPanelOperators:"Operatör",filterPanelOperatorAnd:"Ve",filterPanelOperatorOr:"Veya",filterPanelColumns:"Sütunlar",filterPanelInputLabel:"Değer",filterPanelInputPlaceholder:"Filtre değeri",filterOperatorContains:"içerir",filterOperatorEquals:"eşittir",filterOperatorStartsWith:"ile başlar",filterOperatorEndsWith:"ile biter",filterOperatorIs:"eşittir",filterOperatorNot:"eşit değildir",filterOperatorAfter:"büyük",filterOperatorOnOrAfter:"büyük eşit",filterOperatorBefore:"küçük",filterOperatorOnOrBefore:"küçük eşit",filterOperatorIsEmpty:"boş",filterOperatorIsNotEmpty:"dolu",columnMenuLabel:"Menü",columnMenuShowColumns:"Sütunları göster",columnMenuFilter:"Filtre uygula",columnMenuHideColumn:"Gizle",columnMenuUnsort:"Sıralama",columnMenuSortAsc:"Sırala - Artan",columnMenuSortDesc:"Sırala - Azalan",columnHeaderFiltersTooltipActive:e=>`${e} filtre aktif`,columnHeaderFiltersLabel:"Filtreleri göster",columnHeaderSortIconLabel:"Sırala",footerRowSelected:e=>`${e.toLocaleString()} satır seçildi`,footerTotalRows:"Toplam Satır:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} / ${t.toLocaleString()}`},_material_ui_core_locale__WEBPACK_IMPORTED_MODULE_36__.trTR),xs={noRowsLabel:"Немає рядків",errorOverlayDefaultLabel:"Виявлено помилку.",toolbarDensity:"Висота рядка",toolbarDensityLabel:"Висота рядка",toolbarDensityCompact:"Компактний",toolbarDensityStandard:"Стандартний",toolbarDensityComfortable:"Комфортний",toolbarColumns:"Стовпці",toolbarColumnsLabel:"Виділіть стовпці",toolbarFilters:"Фільтри",toolbarFiltersLabel:"Показати фільтри",toolbarFiltersTooltipHide:"Сховати фільтри",toolbarFiltersTooltipShow:"Показати фільтри",toolbarFiltersTooltipActive:e=>1!==e?`${e} активні фільтри`:`${e} активний фільтр`,toolbarExport:"Експорт",toolbarExportLabel:"Експорт",toolbarExportCSV:"Завантажити у форматі CSV",columnsPanelTextFieldLabel:"Знайти стовпець",columnsPanelTextFieldPlaceholder:"Заголовок стовпця",columnsPanelDragIconLabel:"Змінити порядок стовпця",columnsPanelShowAllButton:"Показати усі",columnsPanelHideAllButton:"Сховати усі",filterPanelAddFilter:"Додати фільтр",filterPanelDeleteIconLabel:"Видалити",filterPanelOperators:"Оператори",filterPanelOperatorAnd:"І",filterPanelOperatorOr:"Або",filterPanelColumns:"Стовпці",filterPanelInputLabel:"Значення",filterPanelInputPlaceholder:"Значення фільтра",filterOperatorContains:"містить",filterOperatorEquals:"дорівнює",filterOperatorStartsWith:"починається з",filterOperatorEndsWith:"закінчується на",filterOperatorIs:"дорівнює",filterOperatorNot:"не",filterOperatorAfter:"більше ніж",filterOperatorOnOrAfter:"більше або дорівнює",filterOperatorBefore:"менше ніж",filterOperatorOnOrBefore:"менше або дорівнює",filterValueAny:"будь-який",filterValueTrue:"правда",filterValueFalse:"помилковий",columnMenuLabel:"Меню",columnMenuShowColumns:"Показати стовпці",columnMenuFilter:"Фільтр",columnMenuHideColumn:"Сховати",columnMenuUnsort:"Скасувати сортування",columnMenuSortAsc:"Сортувати за зростанням",columnMenuSortDesc:"Сортувати за спаданням",columnHeaderFiltersTooltipActive:e=>1!==e?`${e} активні фільтри`:`${e} активний фільтр`,columnHeaderFiltersLabel:"Показати фільтри",columnHeaderSortIconLabel:"Сортувати",footerRowSelected:e=>1!==e?`${e.toLocaleString()} вибрані рядки`:`${e.toLocaleString()} вибраний рядок`,footerTotalRows:"Всього рядків:",checkboxSelectionHeaderName:"Вибір прапорця",booleanCellTrueLabel:"правда",booleanCellFalseLabel:"помилковий"},Rs=ls(xs,_material_ui_core_locale__WEBPACK_IMPORTED_MODULE_36__.ukUA),ks=({apiRef:t,props:r,children:o})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Jo.Provider,{value:r},react__WEBPACK_IMPORTED_MODULE_0__.createElement(le.Provider,{value:t},o)),Ms=(e,t)=>{if("string"==typeof e){const r=e.replace(/"/g,'""');return r.includes(t)?`"${r}"`:r}return e};function Ps(e){const{columns:t,rows:r,selectedRowIds:o,getCellParams:n,delimiterCharacter:l,includeHeaders:a=!0}=e;let i=[...r.keys()];o.length&&(i=i.filter((e=>o.includes(e))));const s=i.reduce(((e,r)=>`${e}${function(e,t,r,o){const n=[];return t.forEach((t=>t.field!==Un.field&&n.push(Ms(r(e,t.field).formattedValue,o)))),n}(r,t,n,l).join(l)}\r\n`),"").trim();if(!a)return s;return`${`${t.filter((e=>e.field!==Un.field)).map((e=>Ms(e.headerName||e.field,l))).join(l)}\r\n`}${s}`.trim()}function Is(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const r=document.createRange();r.selectNode(t);const o=window.getSelection();o.removeAllRanges(),o.addRange(r);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}const Ls=t=>{const r=xr(t,"useGridCsvExport"),o=Wr(t,de),n=Wr(t,ue),l=Wr(t,bo),a=Wr(t,nn),i=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{let i;if(r.debug("Get data as CSV"),null==e?void 0:e.fields)i=e.fields.map((e=>n.find((t=>t.field===e)))).filter((e=>!!e));else{i=((null==e?void 0:e.allColumns)?n:o).filter((e=>!e.disableExport))}return Ps({columns:i,rows:l,selectedRowIds:a,getCellParams:t.current.getCellParams,delimiterCharacter:(null==e?void 0:e.delimiter)||","})}),[r,o,n,l,a,t]),s=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{r.debug("Export data as CSV");const t=i(e);!function(e,t="csv",r=document.title){const o=`${r}.${t}`;if("download"in HTMLAnchorElement.prototype){const t=URL.createObjectURL(e),r=document.createElement("a");return r.href=t,r.download=o,r.click(),void setTimeout((()=>{URL.revokeObjectURL(t)}))}throw new Error("exportAs not supported")}(new Blob([(null==e?void 0:e.utf8WithBom)?new Uint8Array([239,187,191]):"",t],{type:"text/csv"}),"csv",null==e?void 0:e.fileName)}),[r,i]);Rr(t,{getDataAsCsv:i,exportDataAsCsv:s},"GridCsvExportApi")};function js(e,t){switch(t.type){case"options::UPDATE":return vi(e,t.payload);default:throw new Error(`Material-UI: Action ${t.type} not found.`)}}const Fs="test"==="development";const Ds=(t,r)=>{Sr(t,r),ji(t,r),function(t,r){const[,o]=Br(t),n=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{o((t=>Object.assign(Object.assign({},t),{error:e})))}),[o]);react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{n(r.error)}),[n,r.error]),qr(t,ne.componentError,n)}(t,r),yi(t,r),function(t,r){const o=xr(t,"useOptionsProp"),n=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>Object.assign(Object.assign({},r),{classes:ir({root:["root"],columnHeader:["columnHeader"],row:["row"],cell:["cell"]},hr,r.classes),localeText:Object.assign(Object.assign({},Mr),r.localeText)})),[r]),{gridState:l,dispatch:a}=Ei(t,"options",js,Object.assign({},jr)),i=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{o.debug("updating options state."),a({type:"options::UPDATE",payload:e})}),[a,o]);react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{i(n)}),[n,i]),l.options}(t,r),function(e,t){Jr(e,ne.columnHeaderClick,t.onColumnHeaderClick),Jr(e,ne.columnHeaderDoubleClick,t.onColumnHeaderDoubleClick),Jr(e,ne.columnHeaderOver,t.onColumnHeaderOver),Jr(e,ne.columnHeaderOut,t.onColumnHeaderOut),Jr(e,ne.columnHeaderEnter,t.onColumnHeaderEnter),Jr(e,ne.columnHeaderLeave,t.onColumnHeaderLeave),Jr(e,ne.columnOrderChange,t.onColumnOrderChange),Jr(e,ne.cellClick,t.onCellClick),Jr(e,ne.cellDoubleClick,t.onCellDoubleClick),Jr(e,ne.cellOver,t.onCellOver),Jr(e,ne.cellOut,t.onCellOut),Jr(e,ne.cellEnter,t.onCellEnter),Jr(e,ne.cellLeave,t.onCellLeave),Jr(e,ne.cellKeyDown,t.onCellKeyDown),Jr(e,ne.cellBlur,t.onCellBlur),Jr(e,ne.cellFocusOut,t.onCellFocusOut),Jr(e,ne.rowDoubleClick,t.onRowDoubleClick),Jr(e,ne.rowClick,t.onRowClick),Jr(e,ne.rowOver,t.onRowOver),Jr(e,ne.rowOut,t.onRowOut),Jr(e,ne.rowEnter,t.onRowEnter),Jr(e,ne.rowLeave,t.onRowLeave),Jr(e,ne.componentError,t.onError),Jr(e,ne.stateChange,t.onStateChange)}(t,r),(t=>{const{localeText:r}=Wr(t,zo);Rr(t,{getLocaleText:react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{if(null==r[e])throw new Error(`Missing translation for key ${e}.`);return r[e]}),[r])},"LocaleTextApi")})(t),function(t,r){const o=xr(t,"useResizeContainer"),n=react__WEBPACK_IMPORTED_MODULE_0__.useRef(!1),l=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{var e;o.debug("resizing..."),t.current.publishEvent(ne.debouncedResize,null===(e=t.current.state.containerSizes)||void 0===e?void 0:e.windowSizes)}),[t,o]);Rr(t,{resize:l},"GridEventsApi");const a=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>(0,_material_ui_core_utils__WEBPACK_IMPORTED_MODULE_37__["default"])(l,60)),[l]),i=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{const t=/jsdom/.test(window.navigator.userAgent);0!==e.height||n.current||r.autoHeight||t||(o.warn(["The parent of the grid has an empty height.","You need to make sure the container has an intrinsic height.","The grid displays with a height of 0px.","","You can find a solution in the docs:","https://material-ui.com/components/data-grid/layout/"].join("\n")),n.current=!0),0!==e.width||n.current||t||(o.warn(["The parent of the grid has an empty width.","You need to make sure the container has an intrinsic width.","The grid displays with a width of 0px.","","You can find a solution in the docs:","https://material-ui.com/components/data-grid/layout/"].join("\n")),n.current=!0),Fs?l():a()}),[r.autoHeight,a,o,l]);react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>()=>{o.info("canceling resize..."),a.clear()}),[o,a]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{o.info("canceling resize..."),a.clear()}),[r.rows,a,o]),qr(t,ne.resize,i),Jr(t,ne.debouncedResize,r.onResize)}(t,r),function(e,{rows:t}){ true&&Object.freeze(t)}(0,r),Oi(t,r),Ai(t),Ni(t,r),Vi(t,r),xi(t,r),Ri(t),ki(t,r),Bi(t,r),Wi(t,r),bi(t),Ti(t),Si(t,r),Fi(t,r),((t,r)=>{const o=xr(t,"useDensity"),[,n,l]=Br(t),a=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,t,r)=>{switch(e){case Pr.Compact:return{value:e,headerHeight:Math.floor(.7*t),rowHeight:Math.floor(.7*r)};case Pr.Comfortable:return{value:e,headerHeight:Math.floor(1.3*t),rowHeight:Math.floor(1.3*r)};default:return{value:e,headerHeight:t,rowHeight:r}}}),[]),i=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e,t=r.headerHeight,i=r.rowHeight)=>{o.debug(`Set grid density to ${e}`),n((r=>Object.assign(Object.assign({},r),{density:Object.assign(Object.assign({},r.density),a(e,t,i))}))),l()}),[o,n,l,a,r.headerHeight,r.rowHeight]);react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{i(r.density,r.headerHeight,r.rowHeight)}),[i,r.density,r.rowHeight,r.headerHeight]),Rr(t,{setDensity:i},"GridDensityApi")})(t,r),Zi(t,r),((t,r)=>{const o=t.current.windowRef,n=t.current.columnHeadersElementRef,l=t.current.renderingZoneRef,[a,i,s]=Br(t),[c]=Mi(t,l,n),u=Wr(t,rn),d=Wr(t,de),p=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{if(!a.containerSizes||!(null==o?void 0:o.current))return;let e=0;const{page:t,pageSize:n}=u;r.pagination&&"client"===r.paginationMode&&(e=n*t);const l={firstRowIdx:e,lastRowIdx:e+a.containerSizes.virtualRowsCount,firstColIdx:0,lastColIdx:d.length>0?d.length-1:0},c={top:o.current.scrollTop,left:o.current.scrollLeft};i((e=>Object.assign(Object.assign({},e),{rendering:Object.assign(Object.assign({},e.rendering),{virtualPage:0,renderContext:l,realScroll:c,renderingZoneScroll:c})}))),s()}),[a.containerSizes,u,r.pagination,r.paginationMode,i,s,d.length,o]);react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{r.disableVirtualization&&p()}),[r.disableVirtualization,p]);const m=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{if(!r.disableVirtualization||!(null==o?void 0:o.current))return;const{scrollLeft:e,scrollTop:t}=o.current;c({top:t,left:e}),p()}),[r.disableVirtualization,c,o,p]);Di(t,o,"scroll",m,{passive:!0})})(t,r),Ui(t,r),Ji(t,r),zi(t,r),Li(t,r),Ls(t),((t,r)=>{const o=Wr(t,_l),n=Wr(t,de),l=react__WEBPACK_IMPORTED_MODULE_0__.useRef(!1),a=Wr(t,Gr),i=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),s=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{if(!o)return;const a=e.top+o.windowSizes.height+r.scrollEndThreshold;if(a=o.dataContainerSizes.height&&!l.current){const e={visibleColumns:n,viewportPageSize:o.viewportPageSize,virtualRowsCount:o.virtualRowsCount};t.current.publishEvent(ne.rowsScrollEnd,e),l.current=!0}}),[t,r.scrollEndThreshold,n,o]),c=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{const e=t.current.getScrollPosition();s(e)}),[t,s]);react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{const e=a.renderContext;if(e){if(!i.current||e.firstRowIdx!==i.current.firstRowIndex||e.lastRowIdx!==i.current.lastRowIndex){const r={firstRowIndex:e.firstRowIdx,lastRowIndex:e.lastRowIdx};t.current.publishEvent(ne.viewportRowsChange,r)}i.current={firstRowIndex:e.firstRowIdx,lastRowIndex:e.lastRowIdx}}}),[t,r.onViewportRowsChange,a]),qr(t,ne.rowsScroll,c),Jr(t,ne.rowsScrollEnd,r.onRowsScrollEnd),Jr(t,ne.viewportRowsChange,r.onViewportRowsChange)})(t,r),(t=>{const r=Wr(t,de),o=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(((e=!1)=>{const o=t.current.getSelectedRows(),n=r.filter((e=>e.field!==Un.field));if(0===o.size||0===n.length)return;const l=Ps({columns:r,rows:o,selectedRowIds:[],includeHeaders:e,getCellParams:t.current.getCellParams,delimiterCharacter:"\t"});navigator.clipboard?navigator.clipboard.writeText(l).catch((()=>{Is(l)})):Is(l)}),[t,r]),n=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{var r;const o=e.ctrlKey||e.metaKey||e.altKey;"c"===e.key.toLowerCase()&&o&&""===(null===(r=window.getSelection())||void 0===r?void 0:r.toString())&&t.current.copySelectedRowsToClipboard(e.altKey)}),[t]);Di(t,t.current.rootElementRef,"keydown",n),Rr(t,{copySelectedRowsToClipboard:o},"GridClipboardApi")})(t),os(t,r),function(t,{state:r}){const[,o,n]=Br(t),l=xr(t,"useStateProp");react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{null!=r&&t.current.state!==r&&(l.debug("Overriding state with props.state"),o((e=>Object.assign(Object.assign({},e),r))),n())}),[t,n,l,r,o])}(t,r),function(e){const[t]=Br(e),r=xr(e,"useRenderInfoLog");if(null!=t.rendering.renderContext){const{page:e,firstColIdx:o,lastColIdx:n,firstRowIdx:l,lastRowIdx:a}=t.rendering.renderContext;r.info(`Rendering, page: ${e}, col: ${o}-${n}, row: ${l}-${a}`)}}(t)},zs=100,Ts=t=>{if(t.pageSize>100)throw new Error("'props.pageSize' cannot exceed 100 in DataGrid.");const r=function({props:t,name:r}){const o=(0,_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_38__["default"])();return react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>{const e=Object.assign({},t),n=(0,_material_ui_styles__WEBPACK_IMPORTED_MODULE_39__["default"])({theme:o,name:r,props:e}),l=n.theme||o,a="rtl"===l.direction;return Object.assign({theme:l,isRtl:a},n)}),[t,r,o])}({props:t,name:"MuiDataGrid"});return react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>Object.assign(Object.assign({},r),{apiRef:void 0,disableColumnResize:!0,disableColumnReorder:!0,disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleSelection:!0,pagination:!0,onRowsScrollEnd:void 0,onViewportRowsChange:void 0,checkboxSelectionVisibleOnly:!1,signature:"DataGrid"})),[r])},Hs=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(t,r){const o=Ts(t),n=qi();return Ds(n,o),react__WEBPACK_IMPORTED_MODULE_0__.createElement(ks,{apiRef:n,props:o},react__WEBPACK_IMPORTED_MODULE_0__.createElement(Ra,{ref:r},react__WEBPACK_IMPORTED_MODULE_0__.createElement(ya,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Sa,null),react__WEBPACK_IMPORTED_MODULE_0__.createElement(wa,null),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Ea,null))))}));Hs.defaultProps=Lr;const As=react__WEBPACK_IMPORTED_MODULE_0__.memo(Hs);As.propTypes={apiRef:(0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_40__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_41___default().any),(e=>null!=e.apiRef?new Error(["Material-UI: `apiRef` is not a valid prop.","GridApiRef is not available in the MIT version.","","You need to upgrade to the DataGridPro component to unlock this feature."].join("\n")):null)),checkboxSelectionVisibleOnly:(0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_40__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_41___default().bool),(e=>e.checkboxSelectionVisibleOnly?new Error(["Material-UI: `` is not a valid prop.","Selecting all columns only on the current page is not available in the MIT version.","","You need to upgrade to the DataGridPro component to unlock this feature."].join("\n")):null)),columns:(0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_40__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_41___default().array.isRequired),(e=>e.columns&&e.columns.some((e=>e.resizable))?new Error(["Material-UI: `column.resizable = true` is not a valid prop.","Column resizing is not available in the MIT version.","","You need to upgrade to the DataGridPro component to unlock this feature."].join("\n")):null)),disableColumnReorder:(0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_40__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_41___default().bool),(e=>!1===e.disableColumnReorder?new Error(["Material-UI: `` is not a valid prop.","Column reordering is not available in the MIT version.","","You need to upgrade to the DataGridPro component to unlock this feature."].join("\n")):null)),disableColumnResize:(0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_40__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_41___default().bool),(e=>!1===e.disableColumnResize?new Error(["Material-UI: `` is not a valid prop.","Column resizing is not available in the MIT version.","","You need to upgrade to the DataGridPro component to unlock this feature."].join("\n")):null)),disableMultipleColumnsFiltering:(0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_40__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_41___default().bool),(e=>!1===e.disableMultipleColumnsFiltering?new Error(["Material-UI: `` is not a valid prop.","Only single column sorting is available in the MIT version.","","You need to upgrade to the DataGridPro component to unlock this feature."].join("\n")):null)),disableMultipleColumnsSorting:(0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_40__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_41___default().bool),(e=>!1===e.disableMultipleColumnsSorting?new Error(["Material-UI: `` is not a valid prop.","Only single column sorting is available in the MIT version.","","You need to upgrade to the DataGridPro component to unlock this feature."].join("\n")):null)),disableMultipleSelection:(0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_40__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_41___default().bool),(e=>!1===e.disableMultipleSelection?new Error(["Material-UI: `` is not a valid prop.","Only single column selection is available in the MIT version.","","You need to upgrade to the DataGridPro component to unlock this feature."].join("\n")):null)),filterModel:(0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_40__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_41___default().any),(e=>null!=e.filterModel&&e.filterModel.items.length>1?new Error(["Material-UI: `` is not a valid prop. `model.items` has more than 1 item.","Only single filter is available in the MIT version.","","You need to upgrade to the DataGridPro component to unlock this feature."].join("\n")):null)),onRowsScrollEnd:(0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_40__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_41___default().any),(e=>null!=e.onRowsScrollEnd?new Error(["Material-UI: `onRowsScrollEnd` is not a valid prop.","onRowsScrollEnd is not available in the MIT version.","","You need to upgrade to the DataGridPro component to unlock this feature."].join("\n")):null)),onViewportRowsChange:(0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_40__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_41___default().any),(e=>null!=e.onViewportRowsChange?new Error(["Material-UI: `onViewportRowsChange` is not a valid prop.","onViewportRowsChange is not available in the MIT version.","","You need to upgrade to the DataGridPro component to unlock this feature."].join("\n")):null)),pageSize:(0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_40__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_41___default().number),(e=>e.pageSize&&e.pageSize>100?new Error([`Material-UI: \`\` is not a valid prop.`,"Only page size below 100 is available in the MIT version.","","You need to upgrade to the DataGridPro component to unlock this feature."].join("\n")):null)),pagination:e=>!1===e.pagination?new Error(["Material-UI: `` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to the DataGridPro component to disable the pagination."].join("\n")):null,rows:(prop_types__WEBPACK_IMPORTED_MODULE_41___default().array.isRequired),scrollEndThreshold:(0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_40__["default"])((prop_types__WEBPACK_IMPORTED_MODULE_41___default().number),(e=>e.scrollEndThreshold?new Error([`Material-UI: \`\` is not a valid prop.`,"scrollEndThreshold is not available in the MIT version.","","You need to upgrade to the DataGridPro component to unlock this feature."].join("\n")):null)),selectionModel:(0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_40__["default"])(prop_types__WEBPACK_IMPORTED_MODULE_41___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_41___default().number),(prop_types__WEBPACK_IMPORTED_MODULE_41___default().string),(prop_types__WEBPACK_IMPORTED_MODULE_41___default().array)]),(e=>!e.checkboxSelection&&Array.isArray(e.selectionModel)&&e.selectionModel.length>1?new Error([`Material-UI: \`\` is not a valid prop.`,"selectionModel can only be of 1 item in DataGrid.","","You need to upgrade to the DataGridPro component to unlock multiple selection."].join("\n")):null))}; - - -/***/ }), - -/***/ "./node_modules/@mui/x-data-grid/node_modules/@material-ui/utils/esm/chainPropTypes.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ chainPropTypes) -/* harmony export */ }); -function chainPropTypes(propType1, propType2) { - if (false) {} - - return function validate(...args) { - return propType1(...args) || propType2(...args); - }; -} - -/***/ }), - -/***/ "./resources/js/base_actions.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "RESET_LOADING": () => (/* binding */ RESET_LOADING), -/* harmony export */ "START_LOADING": () => (/* binding */ START_LOADING), -/* harmony export */ "STOP_LOADING": () => (/* binding */ STOP_LOADING), -/* harmony export */ "createAction": () => (/* binding */ createAction), -/* harmony export */ "deleteRawRequest": () => (/* binding */ deleteRawRequest), -/* harmony export */ "getRawRequest": () => (/* binding */ getRawRequest), -/* harmony export */ "postFile": () => (/* binding */ postFile), -/* harmony export */ "postRawRequest": () => (/* binding */ postRawRequest), -/* harmony export */ "putFile": () => (/* binding */ putFile), -/* harmony export */ "putRawRequest": () => (/* binding */ putRawRequest), -/* harmony export */ "resetLoading": () => (/* binding */ resetLoading), -/* harmony export */ "startLoading": () => (/* binding */ startLoading), -/* harmony export */ "stopLoading": () => (/* binding */ stopLoading) -/* harmony export */ }); -/* harmony import */ var superagent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/superagent/lib/client.js"); -/* harmony import */ var superagent__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(superagent__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var urijs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/urijs/src/URI.js"); -/* harmony import */ var urijs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(urijs__WEBPACK_IMPORTED_MODULE_1__); - - -let http = (superagent__WEBPACK_IMPORTED_MODULE_0___default()); -const createAction = type => payload => ({ - type, - payload -}); -const RESET_LOADING = 'RESET_LOADING'; -const START_LOADING = 'START_LOADING'; -const STOP_LOADING = 'STOP_LOADING'; -const resetLoading = createAction(RESET_LOADING); -const startLoading = createAction(START_LOADING); -const stopLoading = createAction(STOP_LOADING); -const xhrs = {}; -const cancel = key => { - if (xhrs[key]) { - xhrs[key].xhr.abort(); - console.log(`aborted request ${key}`); - delete xhrs[key]; - } -}; -const schedule = (key, req) => { - // console.log(`scheduling ${key}`); - xhrs[key] = req; -}; -const end = key => { - delete xhrs[key]; -}; -const isObjectEmpty = obj => { - return Object.keys(obj).length === 0 && obj.constructor === Object; -}; -const getRawRequest = endpoint => params => { - let url = urijs__WEBPACK_IMPORTED_MODULE_1___default()(endpoint); - if (!isObjectEmpty(params)) url = url.query(params); - let key = url.toString(); - cancel(key); - let req = http.get(url.toString()); - schedule(key, req); - return req.timeout({ - response: 60000, - deadline: 60000 - }).then(res => { - let json = res.body; - end(key); - return Promise.resolve({ - response: json - }); - }).catch(error => { - end(key); - return Promise.reject(error); - }); -}; -const postRawRequest = endpoint => (params, headers = {}) => { - let url = urijs__WEBPACK_IMPORTED_MODULE_1___default()(endpoint); - if (!isObjectEmpty(params)) url = url.query(params); - let key = url.toString(); - cancel(key); - let req = http.post(url.toString()); - schedule(key, req); - return req.set(headers).send(params).timeout({ - response: 60000, - deadline: 60000 - }).then(res => { - let json = res.body; - end(key); - return Promise.resolve({ - response: json - }); - }).catch(error => { - end(key); - return Promise.reject(error); - }); -}; -const putRawRequest = endpoint => (payload = null, params = {}, headers = {}) => { - let url = urijs__WEBPACK_IMPORTED_MODULE_1___default()(endpoint); - if (!isObjectEmpty(params)) url = url.query(params); - let key = url.toString(); - cancel(key); - let req = http.put(url.toString()); - schedule(key, req); - if (payload != null) req.send(payload); - return req.set(headers).timeout({ - response: 60000, - deadline: 60000 - }).then(res => { - let json = res.body; - end(key); - return Promise.resolve({ - response: json - }); - }).catch(error => { - console.log('error', error); - end(key); - return Promise.reject(error); - }); -}; -const deleteRawRequest = endpoint => (headers = {}) => { - let url = urijs__WEBPACK_IMPORTED_MODULE_1___default()(endpoint); - let req = http.delete(url.toString()); - return req.set(headers).timeout({ - response: 60000, - deadline: 60000 - }).then(res => { - let json = res.body; - return Promise.resolve({ - response: json - }); - }).catch(error => { - return Promise.reject(error); - }); -}; -const postFile = endpoint => (file, fileParamName = 'file', fileMetadata = {}, headers = {}) => { - let url = urijs__WEBPACK_IMPORTED_MODULE_1___default()(endpoint); - let key = url.toString(); - cancel(key); - let req = http.post(url); - if (file) req = req.attach(fileParamName, file); - schedule(key, req); - if (!isObjectEmpty(fileMetadata)) { - Object.keys(fileMetadata).forEach(function (key) { - let value = fileMetadata[key]; - req.field(key, value); - }); - } - return req.set(headers).timeout({ - response: 60000, - deadline: 60000 - }).then(res => { - let json = res.body; - end(key); - return Promise.resolve({ - response: json - }); - }).catch(error => { - end(key); - return Promise.reject(error); - }); -}; -const putFile = endpoint => (file, fileParamName = 'file', fileMetadata = {}, headers = {}) => { - let url = urijs__WEBPACK_IMPORTED_MODULE_1___default()(endpoint); - let key = url.toString(); - cancel(key); - let req = http.put(url); - if (file) req = req.attach(fileParamName, file); - schedule(key, req); - if (!isObjectEmpty(fileMetadata)) { - Object.keys(fileMetadata).forEach(function (key) { - let value = fileMetadata[key]; - req.field(key, value); - }); - } - return req.set(headers).timeout({ - response: 60000, - deadline: 60000 - }).then(res => { - let json = res.body; - end(key); - return Promise.resolve({ - response: json - }); - }).catch(error => { - end(key); - return Promise.reject(error); - }); -}; - -/***/ }), - -/***/ "./resources/js/components/drawer/drawer.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/makeStyles.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@material-ui/core/esm/Drawer/Drawer.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@material-ui/core/esm/List/List.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/ListItem/ListItem.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/Button/Button.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/Menu/Menu.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/MenuItem/MenuItem.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/core/esm/Typography/Typography.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/core/esm/Divider/Divider.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/@material-ui/core/esm/IconButton/IconButton.js"); -/* harmony import */ var _material_ui_icons_ArrowDropDown__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/icons/ArrowDropDown.js"); -/* harmony import */ var _material_ui_icons_Menu__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("./node_modules/@material-ui/icons/Menu.js"); - - - - -const useStyles = (0,_material_ui_core__WEBPACK_IMPORTED_MODULE_1__["default"])(() => ({ - link: { - textDecoration: "none", - color: "blue", - fontSize: "20px" - }, - icon: { - color: "white" - }, - menuSectionTitle: { - marginLeft: '10px' - } -})); -function DrawerComponent() { - const classes = useStyles(); - const [openDrawer, setOpenDrawer] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false); - const [oauthMenuEl, setOauthMenuEl] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null); - const [serverAdminEl, setServerAdminEl] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null); - const handleOauthMenuClick = event => { - setOauthMenuEl(event.currentTarget); - }; - const handleServerAdminMenuClick = event => { - setServerAdminEl(event.currentTarget); - }; - const handleClose = () => { - setOauthMenuEl(null); - setServerAdminEl(null); - }; - const goTo = url => { - window.location.href = url; - }; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["default"], { - open: openDrawer, - onClose: () => setOpenDrawer(false) - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_3__["default"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_4__["default"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_5__["default"], { - onClick: () => goTo(`${menuConfig.settingURL}`) - }, menuConfig.settingsText)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_4__["default"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_5__["default"], { - "aria-controls": "oauth-menu", - "aria-haspopup": "true", - onClick: handleOauthMenuClick, - endIcon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_ArrowDropDown__WEBPACK_IMPORTED_MODULE_6__["default"], null) - }, menuConfig.oauthConsoleText), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_7__["default"], { - id: "oauth-menu", - anchorEl: oauthMenuEl, - keepMounted: true, - open: Boolean(oauthMenuEl), - onClose: handleClose - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_8__["default"], { - onClick: () => goTo(`${menuConfig.oauthAppsURL}`) - }, menuConfig.oauthAppsText), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_8__["default"], { - onClick: () => goTo(`${menuConfig.oauthGrantsURL}`) - }, menuConfig.oauthGrantsText))), (menuConfig.isOAuth2ServerAdmin || menuConfig.isOpenIdServerAdmin || menuConfig.isSuperAdmin) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_4__["default"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_5__["default"], { - "aria-controls": "server-admin-menu", - "aria-haspopup": "true", - onClick: handleServerAdminMenuClick, - endIcon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_ArrowDropDown__WEBPACK_IMPORTED_MODULE_6__["default"], null) - }, menuConfig.serverAdminText), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_7__["default"], { - id: "server-admin-menu", - anchorEl: serverAdminEl, - keepMounted: true, - open: Boolean(serverAdminEl), - onClose: handleClose - }, (menuConfig.isOpenIdServerAdmin || menuConfig.isSuperAdmin) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_9__["default"], { - className: classes.menuSectionTitle, - display: "block", - variant: "caption" - }, menuConfig.securitySectionText)), menuConfig.isSuperAdmin && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_8__["default"], { - onClick: () => goTo(`${menuConfig.usersAdminURL}`) - }, menuConfig.usersAdminText), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_8__["default"], { - onClick: () => goTo(`${menuConfig.groupsAdminURL}`) - }, menuConfig.groupsAdminText)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_8__["default"], { - onClick: () => goTo(`${menuConfig.bannedIPsAdminURL}`) - }, menuConfig.bannedIPsAdminText), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - component: "li" - })), menuConfig.isOAuth2ServerAdmin && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_9__["default"], { - className: classes.menuSectionTitle, - display: "block", - variant: "caption" - }, menuConfig.oauthAdminSectionText)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_8__["default"], { - onClick: () => goTo(`${menuConfig.serverPrivateKeysAdminURL}`) - }, menuConfig.serverPrivateKeysAdminText), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_8__["default"], { - onClick: () => goTo(`${menuConfig.resourceServersAdminURL}`) - }, menuConfig.resourceServersAdminText), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_8__["default"], { - onClick: () => goTo(`${menuConfig.apiScopesAdminURL}`) - }, menuConfig.apiScopesAdminText), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_8__["default"], { - onClick: () => goTo(`${menuConfig.lockedClientsAdminURL}`) - }, menuConfig.lockedClientsAdminText), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - component: "li" - })), menuConfig.isOpenIdServerAdmin && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_9__["default"], { - className: classes.menuSectionTitle, - display: "block", - variant: "caption" - }, menuConfig.serverConfigSectionText)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_8__["default"], { - onClick: () => goTo(`${menuConfig.serverConfigURL}`) - }, menuConfig.serverConfigText))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_4__["default"], { - onClick: () => setOpenDrawer(false) - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_5__["default"], { - onClick: e => { - window.location.href = `mailto:${menuConfig.helpMailto}`; - e.preventDefault(); - } - }, "Help")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_4__["default"], { - onClick: () => setOpenDrawer(false) - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_5__["default"], { - onClick: () => goTo(`${menuConfig.logoutURL}`) - }, "Logout")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_11__["default"], { - onClick: () => setOpenDrawer(!openDrawer) - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_Menu__WEBPACK_IMPORTED_MODULE_12__["default"], null))); -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DrawerComponent); - -/***/ }), - -/***/ "./resources/js/components/loading_indicator.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ LoadingIndicator) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _material_ui_core_Backdrop__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/core/esm/Backdrop/Backdrop.js"); -/* harmony import */ var _material_ui_core_CircularProgress__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@material-ui/core/esm/CircularProgress/CircularProgress.js"); - - - -function LoadingIndicator({ - open -}) { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_Backdrop__WEBPACK_IMPORTED_MODULE_1__["default"], { - style: { - color: '#fff', - zIndex: 1 - }, - open: open - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_CircularProgress__WEBPACK_IMPORTED_MODULE_2__["default"], { - color: "inherit" - }))); -} - -/***/ }), - -/***/ "./resources/js/components/navbar/navbar.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ NavBar) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/useMediaQuery/useMediaQuery.js"); -/* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/useTheme.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/makeStyles.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/AppBar/AppBar.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/Toolbar/Toolbar.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/Button/Button.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/core/esm/Menu/Menu.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/core/esm/MenuItem/MenuItem.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/@material-ui/core/esm/Typography/Typography.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("./node_modules/@material-ui/core/esm/Divider/Divider.js"); -/* harmony import */ var _material_ui_icons_ArrowDropDown__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/icons/ArrowDropDown.js"); -/* harmony import */ var _drawer_drawer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./resources/js/components/drawer/drawer.js"); - - - - - - -const useStyles = (0,_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["default"])(theme => ({ - root: { - flexGrow: 1 - }, - appbar: { - backgroundColor: 'white', - border: "1px solid #D3D3D3" - }, - toolbar: { - marginLeft: 'unset', - backgroundColor: 'white' - }, - toolbarMobile: { - marginRight: 'unset', - backgroundColor: 'white' - }, - menuSectionTitle: { - marginLeft: '10px' - } -})); -function NavBar({ - menuConfig -}) { - const classes = useStyles(); - const theme = (0,_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_3__["default"])(); - const isMobile = (0,_material_ui_core__WEBPACK_IMPORTED_MODULE_4__["default"])(theme.breakpoints.down("md")); - const [oauthMenuEl, setOauthMenuEl] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null); - const [serverAdminEl, setServerAdminEl] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null); - const handleOauthMenuClick = event => { - setOauthMenuEl(event.currentTarget); - }; - const handleServerAdminMenuClick = event => { - setServerAdminEl(event.currentTarget); - }; - const handleClose = () => { - setOauthMenuEl(null); - setServerAdminEl(null); - }; - const goTo = url => { - window.location.href = url; - }; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { - className: classes.root - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_5__["default"], { - position: "static", - elevation: 0, - className: classes.appbar - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_6__["default"], { - className: isMobile ? classes.toolbarMobile : classes.toolbar - }, isMobile ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_drawer_drawer__WEBPACK_IMPORTED_MODULE_1__["default"], null) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_7__["default"], { - onClick: () => goTo(`${menuConfig.settingURL}`) - }, menuConfig.settingsText), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_7__["default"], { - "aria-controls": "oauth-menu", - "aria-haspopup": "true", - onClick: handleOauthMenuClick, - endIcon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_ArrowDropDown__WEBPACK_IMPORTED_MODULE_8__["default"], null) - }, menuConfig.oauthConsoleText), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_9__["default"], { - id: "oauth-menu", - anchorEl: oauthMenuEl, - keepMounted: true, - open: Boolean(oauthMenuEl), - onClose: handleClose - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - onClick: () => goTo(`${menuConfig.oauthAppsURL}`) - }, menuConfig.oauthAppsText), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - onClick: () => goTo(`${menuConfig.oauthGrantsURL}`) - }, menuConfig.oauthGrantsText)), (menuConfig.isOAuth2ServerAdmin || menuConfig.isOpenIdServerAdmin || menuConfig.isSuperAdmin) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_7__["default"], { - "aria-controls": "server-admin-menu", - "aria-haspopup": "true", - onClick: handleServerAdminMenuClick, - endIcon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_ArrowDropDown__WEBPACK_IMPORTED_MODULE_8__["default"], null) - }, menuConfig.serverAdminText), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_9__["default"], { - id: "server-admin-menu", - anchorEl: serverAdminEl, - keepMounted: true, - open: Boolean(serverAdminEl), - onClose: handleClose - }, (menuConfig.isOpenIdServerAdmin || menuConfig.isSuperAdmin) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_11__["default"], { - className: classes.menuSectionTitle, - display: "block", - variant: "caption" - }, menuConfig.securitySectionText)), menuConfig.isSuperAdmin && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - onClick: () => goTo(`${menuConfig.usersAdminURL}`) - }, menuConfig.usersAdminText), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - onClick: () => goTo(`${menuConfig.groupsAdminURL}`) - }, menuConfig.groupsAdminText)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - onClick: () => goTo(`${menuConfig.bannedIPsAdminURL}`) - }, menuConfig.bannedIPsAdminText), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_12__["default"], { - component: "li" - })), menuConfig.isOAuth2ServerAdmin && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_11__["default"], { - className: classes.menuSectionTitle, - display: "block", - variant: "caption" - }, menuConfig.oauthAdminSectionText)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - onClick: () => goTo(`${menuConfig.serverPrivateKeysAdminURL}`) - }, menuConfig.serverPrivateKeysAdminText), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - onClick: () => goTo(`${menuConfig.resourceServersAdminURL}`) - }, menuConfig.resourceServersAdminText), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - onClick: () => goTo(`${menuConfig.apiScopesAdminURL}`) - }, menuConfig.apiScopesAdminText), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - onClick: () => goTo(`${menuConfig.lockedClientsAdminURL}`) - }, menuConfig.lockedClientsAdminText), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_12__["default"], { - component: "li" - })), menuConfig.isOpenIdServerAdmin && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_11__["default"], { - className: classes.menuSectionTitle, - display: "block", - variant: "caption" - }, menuConfig.serverConfigSectionText)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - onClick: () => goTo(`${menuConfig.serverConfigURL}`) - }, menuConfig.serverConfigText)))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_7__["default"], { - onClick: e => { - window.location.href = `mailto:${menuConfig.helpMailto}`; - e.preventDefault(); - } - }, "Help"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_7__["default"], { - onClick: () => goTo(`${menuConfig.logoutURL}`) - }, "Logout"))))); -} - -/***/ }), - -/***/ "./resources/js/components/tags_input.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "getTags": () => (/* binding */ getTags) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _material_ui_core_Chip__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@material-ui/core/esm/Chip/Chip.js"); -/* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/makeStyles.js"); -/* harmony import */ var _material_ui_core_TextField__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/TextField/TextField.js"); -/* harmony import */ var _material_ui_lab_Autocomplete__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@material-ui/lab/esm/Autocomplete/Autocomplete.js"); -const _excluded = ["id", "name", "selectedTags", "isValid", "placeholder", "onChange", "tags", "type"]; -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); } -function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - - - - - -const useStyles = (0,_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__["default"])(theme => ({ - chip: { - margin: theme.spacing(0.5, 0.25) - } -})); -const getTags = value => Array.isArray(value) ? value : value?.split(','); -const TagsInput = _ref => { - let props = _extends({}, (_objectDestructuringEmpty(_ref), _ref)); - const classes = useStyles(); - const { - id, - name, - selectedTags, - isValid, - placeholder, - onChange, - tags, - type - } = props, - other = _objectWithoutProperties(props, _excluded); - const [inputValue, setInputValue] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(""); - const [value, setValue] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(tags ?? []); - const [selectedItem, setSelectedItem] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)([]); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - setSelectedItem(tags); - }, [tags]); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - if (selectedTags) selectedTags(selectedItem); - }, [selectedItem, selectedTags]); - function isValidHttpUrl(string) { - try { - const newUrl = new URL(string); - return newUrl.protocol === 'http:' || newUrl.protocol === 'https:'; - } catch (err) { - return false; - } - } - function isValidEmail(email) { - return String(email).toLowerCase().match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|.(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/); - } - function notifyChange(newValue) { - const ev = { - persist: () => {}, - target: { - type: "change", - id: id, - name: name, - value: [...newValue] - } - }; - setValue(newValue); - onChange(ev); - } - function handleKeyDown(event) { - if (event.key === "Enter") { - const value = event.target.value.trim(); - const newSelectedItem = [...selectedItem]; - const duplicatedValues = newSelectedItem.indexOf(value); - if (duplicatedValues !== -1) { - setInputValue(""); - return; - } - if (!value.replace(/\s/g, "").length) return; - if (isValid && !isValid(value) || type === "url" && !isValidHttpUrl(value) || type === "email" && !isValidEmail(value)) { - setInputValue(""); - return; - } - newSelectedItem.push(value); - setSelectedItem(newSelectedItem); - setInputValue(""); - notifyChange(newSelectedItem); - } - if (selectedItem.length && !inputValue.length && event.key === "Backspace") { - setSelectedItem(selectedItem.slice(0, selectedItem.length - 1)); - } - } - const handleDelete = item => () => { - const newSelectedItem = [...selectedItem]; - newSelectedItem.splice(newSelectedItem.indexOf(item), 1); - setSelectedItem(newSelectedItem); - notifyChange(newSelectedItem); - }; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_lab_Autocomplete__WEBPACK_IMPORTED_MODULE_2__["default"], { - id: id, - name: name, - size: "small", - multiple: true, - disableClearable: true, - value: value, - freeSolo: true, - options: [], - renderTags: (value, getTagProps) => value.map(item => { - if (!item) return null; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_Chip__WEBPACK_IMPORTED_MODULE_3__["default"], { - key: item, - tabIndex: -1, - label: item, - className: classes.chip, - size: "small", - onDelete: handleDelete(item) - }); - }), - renderInput: params => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_TextField__WEBPACK_IMPORTED_MODULE_4__["default"], _extends({}, other, params, { - placeholder: placeholder, - variant: "outlined", - onKeyDown: handleKeyDown - })) - }); -}; -TagsInput.defaultProps = { - tags: [] -}; -TagsInput.propTypes = { - tags: prop_types__WEBPACK_IMPORTED_MODULE_5___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_5___default().string)) -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TagsInput); - -/***/ }), - -/***/ "./resources/js/components/top_logo/top_logo.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _top_logo_module_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./resources/js/components/top_logo/top_logo.module.scss"); - - -const TopLogo = ({ - appLogo -}) => { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { - className: _top_logo_module_scss__WEBPACK_IMPORTED_MODULE_1__["default"].title_container - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("a", { - href: "/", - target: "_self" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("img", { - className: _top_logo_module_scss__WEBPACK_IMPORTED_MODULE_1__["default"].app_logo, - alt: "appLogo", - src: appLogo - }))); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TopLogo); - -/***/ }), - -/***/ "./resources/js/components/users_selector.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var bloodhound_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/bloodhound-js/index.js"); -/* harmony import */ var bloodhound_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(bloodhound_js__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _material_ui_lab_Autocomplete__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@material-ui/lab/esm/Autocomplete/Autocomplete.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@material-ui/core/esm/Tooltip/Tooltip.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/TextField/TextField.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/CircularProgress/CircularProgress.js"); -function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } -function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } - - - - -const ConditionalTooltip = ({ - children, - title -}) => { - if (!title) return children; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["default"], { - title: title - }, children); -}; -const UsersSelector = ({ - fetchUsersURL, - id, - name, - onChange, - initialValue, - disabled, - tooltip -}) => { - const [open, setOpen] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false); - const [options, setOptions] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)([]); - const [typeAheadEngine, setTypeAheadEngine] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null); - const [term, setTerm] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null); - const [value, setValue] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(initialValue ?? []); - const loading = open && options.length === 0; - const getTypeAheadEngine = () => { - return new (bloodhound_js__WEBPACK_IMPORTED_MODULE_1___default())({ - queryTokenizer: (bloodhound_js__WEBPACK_IMPORTED_MODULE_1___default().tokenizers.whitespace), - datumTokenizer: (bloodhound_js__WEBPACK_IMPORTED_MODULE_1___default().tokenizers.whitespace), - remote: { - url: fetchUsersURL, - wildcard: '%QUERY%', - prepare: (query, settings) => { - settings.url = fetchUsersURL + '?filter=first_name=@' + query + ',last_name=@' + query + ',email=@' + query; - return settings; - }, - transform: input => input.data - } - }); - }; - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - setTypeAheadEngine(getTypeAheadEngine()); - }, []); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - if (term) { - //typeAheadEngine.clear(); - const promise = typeAheadEngine.initialize(); - promise.then(() => { - typeAheadEngine.search(term, function (d) {}, function (d) { - setOptions(d.map(u => { - return { - full_name: `${u.first_name} ${u.last_name}`, - email: u.email, - id: u.id - }; - })); - }); - }); - } - }, [term]); - const searchUsers = term => { - setTerm(term); - }; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(ConditionalTooltip, { - title: tooltip - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_lab_Autocomplete__WEBPACK_IMPORTED_MODULE_3__["default"], { - id: id, - name: name, - size: "small", - disabled: disabled ?? false, - multiple: true, - value: value, - open: open, - onClose: () => { - setOpen(false); - }, - freeSolo: true, - getOptionSelected: (option, value) => option.email === value.email, - getOptionLabel: option => `${option.full_name} (${option.email})`, - options: options, - loading: loading, - onChange: (event, newValue) => { - setValue([...newValue]); - const ev = { - persist: () => {}, - target: { - type: "change", - id: id, - name: name, - value: [...newValue] - } - }; - onChange(ev); - }, - onInputChange: (event, newInputValue) => { - setOpen(true); - searchUsers(newInputValue); - }, - renderInput: params => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_4__["default"], _extends({}, params, { - variant: "outlined", - InputProps: _objectSpread(_objectSpread({}, params.InputProps), {}, { - endAdornment: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, loading ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_5__["default"], { - color: "inherit", - size: 20 - }) : null) - }) - })) - })); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (UsersSelector); - -/***/ }), - -/***/ "./resources/js/oauth2/profile/edit_client/actions.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "ClientEntitySection": () => (/* binding */ ClientEntitySection), -/* harmony export */ "PAGE_SIZE": () => (/* binding */ PAGE_SIZE), -/* harmony export */ "addPublicKey": () => (/* binding */ addPublicKey), -/* harmony export */ "addScope": () => (/* binding */ addScope), -/* harmony export */ "getAccessTokens": () => (/* binding */ getAccessTokens), -/* harmony export */ "getPublicKeys": () => (/* binding */ getPublicKeys), -/* harmony export */ "getRefreshTokens": () => (/* binding */ getRefreshTokens), -/* harmony export */ "regenerateClientSecret": () => (/* binding */ regenerateClientSecret), -/* harmony export */ "removePublicKey": () => (/* binding */ removePublicKey), -/* harmony export */ "removeScope": () => (/* binding */ removeScope), -/* harmony export */ "revokeToken": () => (/* binding */ revokeToken), -/* harmony export */ "updateClientData": () => (/* binding */ updateClientData) -/* harmony export */ }); -/* harmony import */ var _base_actions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./resources/js/base_actions.js"); - -const PAGE_SIZE = 30; -const ClientEntitySection = { - LOGOUT_OPTIONS: "LOGOUT_OPTIONS", - OAUTH: "OAUTH", - PUBLIC_KEYS: "PUBLIC_KEYS", - SECURITY_SETTINGS: "SECURITY_SETTINGS" -}; -const regenerateClientSecret = async clientId => { - return (0,_base_actions__WEBPACK_IMPORTED_MODULE_0__.putRawRequest)(window.REGENERATE_CLIENT_SECRET_ENDPOINT.replace('@client_id', clientId))({ - 'X-CSRF-TOKEN': window.CSFR_TOKEN - }); -}; -const getAccessTokens = async (clientId, page = 1, perPage = PAGE_SIZE, order = 'created_at', orderDir = 'desc', filters = {}) => { - const params = { - page: page, - per_page: perPage - }; - - // order - if (order != null && orderDir != null) { - const orderDirSign = orderDir === 'asc' ? '+' : '-'; - params['order'] = `${orderDirSign}${order}`; - } - const { - response - } = await (0,_base_actions__WEBPACK_IMPORTED_MODULE_0__.getRawRequest)(window.GET_ACCESS_TOKENS_ENDPOINT.replace('@client_id', clientId))(params); - return response; -}; -const getRefreshTokens = async (clientId, page = 1, perPage = PAGE_SIZE, order = 'created_at', orderDir = 'desc', filters = {}) => { - const params = { - page: page, - per_page: perPage - }; - - // order - if (order != null && orderDir != null) { - const orderDirSign = orderDir === 'asc' ? '+' : '-'; - params['order'] = `${orderDirSign}${order}`; - } - const { - response - } = await (0,_base_actions__WEBPACK_IMPORTED_MODULE_0__.getRawRequest)(window.GET_REFRESH_TOKENS_ENDPOINT.replace('@client_id', clientId))(params); - return response; -}; -const revokeToken = async (clientId, value, hint) => { - return (0,_base_actions__WEBPACK_IMPORTED_MODULE_0__.deleteRawRequest)(window.REVOKE_TOKENS_ENDPOINT.replace('@client_id', clientId).replace('@value', value).replace('@hint', hint))({ - 'X-CSRF-TOKEN': window.CSFR_TOKEN - }); -}; -const updateClientData = async (clientId, entity, entitySection) => { - return (0,_base_actions__WEBPACK_IMPORTED_MODULE_0__.putRawRequest)(window.UPDATE_CLIENT_DATA_ENDPOINT.replace('@client_id', clientId))(normalizeEntity(entity, entitySection), {}, { - 'X-CSRF-TOKEN': window.CSFR_TOKEN - }); -}; -const addScope = async (clientId, scopeId) => { - return (0,_base_actions__WEBPACK_IMPORTED_MODULE_0__.putRawRequest)(window.ADD_CLIENT_SCOPE_ENDPOINT.replace('@client_id', clientId).replace('@scope_id', scopeId))({}, {}, { - 'X-CSRF-TOKEN': window.CSFR_TOKEN - }); -}; -const removeScope = async (clientId, scopeId) => { - return (0,_base_actions__WEBPACK_IMPORTED_MODULE_0__.deleteRawRequest)(window.REMOVE_CLIENT_SCOPE_ENDPOINT.replace('@client_id', clientId).replace('@scope_id', scopeId))({ - 'X-CSRF-TOKEN': window.CSFR_TOKEN - }); -}; -const addPublicKey = async (clientId, entity) => { - return (0,_base_actions__WEBPACK_IMPORTED_MODULE_0__.postRawRequest)(window.ADD_PUBLIC_KEY_ENDPOINT.replace('@client_id', clientId))(normalizeEntity(entity, ClientEntitySection.PUBLIC_KEYS), {}, { - 'X-CSRF-TOKEN': window.CSFR_TOKEN - }); -}; -const getPublicKeys = async (clientId, page = 1, perPage = PAGE_SIZE) => { - const params = { - page: page, - per_page: perPage - }; - const { - response - } = await (0,_base_actions__WEBPACK_IMPORTED_MODULE_0__.getRawRequest)(window.GET_PUBLIC_KEYS_ENDPOINT.replace('@client_id', clientId))(params); - return response; -}; -const removePublicKey = async (clientId, keyId) => { - return (0,_base_actions__WEBPACK_IMPORTED_MODULE_0__.deleteRawRequest)(window.REMOVE_PUBLIC_KEY_ENDPOINT.replace('@client_id', clientId).replace('@public_key_id', keyId))({ - 'X-CSRF-TOKEN': window.CSFR_TOKEN - }); -}; -const normalizePKCEDependencies = entity => { - if (!entity.pkce_enabled) { - entity.use_refresh_token = 0; - entity.rotate_refresh_token = 0; - } - return entity; -}; -const normalizeEntity = (entity, entitySection) => { - let normEntity = {}; - const clientTypes = window.CLIENT_TYPES; - normEntity.application_type = entity.application_type; - switch (entitySection) { - case ClientEntitySection.LOGOUT_OPTIONS: - normEntity.logout_uri = entity.logout_uri; - normEntity.logout_session_required = entity.logout_session_required ? 1 : 0; - normEntity.logout_use_iframe = entity.logout_use_iframe ? 1 : 0; - normEntity.post_logout_redirect_uris = Array.isArray(entity.post_logout_redirect_uris) ? entity.post_logout_redirect_uris.filter(r => r).join(',') : entity.post_logout_redirect_uris; - break; - case ClientEntitySection.OAUTH: - normEntity.client_id = entity.client_id; - normEntity.client_secret = entity.client_secret; - normEntity.contacts = Array.isArray(entity.contacts) ? entity.contacts.filter(c => c).join(',') : entity.contacts; - normEntity.use_refresh_token = entity.use_refresh_token ? 1 : 0; - normEntity.rotate_refresh_token = entity.rotate_refresh_token ? 1 : 0; - normEntity.app_name = entity.app_name; - normEntity.app_description = entity.app_description; - if (entity.admin_users) { - normEntity.admin_users = entity.admin_users.map(au => au.id); - } - normEntity.website = entity.website; - normEntity.logo_uri = entity.logo_uri; - normEntity.tos_uri = entity.tos_uri; - normEntity.policy_uri = entity.policy_uri; - normEntity.redirect_uris = Array.isArray(entity.redirect_uris) ? entity.redirect_uris.filter(r => r).join(',') : entity.redirect_uris; - normEntity.allowed_origins = Array.isArray(entity.allowed_origins) ? entity.allowed_origins.filter(a => a).join(',') : entity.allowed_origins; - if (entity.client_type === clientTypes.Public) { - normEntity.pkce_enabled = entity.pkce_enabled ? 1 : 0; - normEntity = normalizePKCEDependencies(normEntity); - } - break; - case ClientEntitySection.PUBLIC_KEYS: - normEntity.kid = entity.kid; - normEntity.valid_from = entity.valid_from; - normEntity.valid_to = entity.valid_to; - normEntity.active = entity.active; - normEntity.usage = entity.usage; - normEntity.alg = entity.alg; - normEntity.type = entity.type; - normEntity.pem_content = entity.pem_content; - break; - case ClientEntitySection.SECURITY_SETTINGS: - if (entity.client_type === clientTypes.Public) { - normEntity.pkce_enabled = entity.pkce_enabled ? 1 : 0; - normEntity = normalizePKCEDependencies(normEntity); - } - normEntity.otp_enabled = entity.otp_enabled ? 1 : 0; - normEntity.otp_length = entity.otp_length; - normEntity.otp_lifetime = entity.otp_lifetime; - normEntity.default_max_age = entity.default_max_age; - normEntity.token_endpoint_auth_signing_alg = entity.token_endpoint_auth_signing_alg; - normEntity.token_endpoint_auth_method = entity.token_endpoint_auth_method; - normEntity.subject_type = entity.subject_type; - normEntity.jwks_uri = entity.jwks_uri; - normEntity.userinfo_signed_response_alg = entity.userinfo_signed_response_alg; - normEntity.id_token_signed_response_alg = entity.id_token_signed_response_alg; - normEntity.userinfo_encrypted_response_alg = entity.userinfo_encrypted_response_alg; - normEntity.id_token_encrypted_response_alg = entity.id_token_encrypted_response_alg; - normEntity.userinfo_encrypted_response_enc = entity.userinfo_encrypted_response_enc; - normEntity.id_token_encrypted_response_enc = entity.id_token_encrypted_response_enc; - break; - } - return normEntity; -}; - -/***/ }), - -/***/ "./resources/js/oauth2/profile/edit_client/components/allowed_scopes_panel.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@material-ui/core/esm/Grid/Grid.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@material-ui/core/esm/Box/Box.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@material-ui/core/esm/Typography/Typography.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/Tooltip/Tooltip.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormControlLabel/FormControlLabel.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/Checkbox/Checkbox.js"); -/* harmony import */ var _material_ui_icons_InfoOutlined__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/icons/InfoOutlined.js"); - - - -const AllowedScopesPanel = ({ - scopes, - selectedScopes, - onScopeSelected, - onScopeUnselected -}) => { - const [apisInfo, setApisInfo] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)([]); - const selectedScopeIds = selectedScopes.map(scope => scope.id); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - //get api info from scopes - setApisInfo([...new Map(scopes.map(scope => [scope.api.name, scope])).values()]); - }, []); - const handleCheckboxChange = e => { - let { - checked, - id, - name - } = e.target; - id = parseInt(id); - if (checked && onScopeSelected) { - onScopeSelected(id, name); - } - if (!checked && onScopeUnselected) { - onScopeUnselected(id, name); - } - }; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_1__["default"], { - container: true, - direction: "column", - spacing: 2, - justifyContent: "center" - }, apisInfo.map(apiInfo => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, { - key: apiInfo.api.name - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_1__["default"], { - item: true, - container: true, - direction: "row", - alignItems: "center" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["default"], { - component: "img", - sx: { - height: 20, - width: 20 - }, - alt: apiInfo.api.name, - src: apiInfo.api.logo - }), "\xA0", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_3__["default"], { - variant: "h6", - display: "inline" - }, apiInfo.api.name), "\xA0", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_4__["default"], { - title: apiInfo.api.description - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_InfoOutlined__WEBPACK_IMPORTED_MODULE_5__["default"], { - fontSize: "small" - }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_1__["default"], { - item: true, - container: true, - direction: "row", - alignItems: "center" - }, scopes.filter(scope => scope.api.name === apiInfo.api.name).map(scope => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_6__["default"], { - id: scope.id.toString(), - name: scope.name, - key: scope.id.toString(), - control: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_7__["default"], { - color: "primary", - id: scope.id.toString(), - checked: selectedScopeIds.includes(scope.id), - onChange: handleCheckboxChange - }), - label: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_3__["default"], { - display: "inline" - }, scope.name), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_4__["default"], { - title: scope.description - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_InfoOutlined__WEBPACK_IMPORTED_MODULE_5__["default"], { - fontSize: "small" - }))), - labelPlacement: "end" - })))))); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AllowedScopesPanel); - -/***/ }), - -/***/ "./resources/js/oauth2/profile/edit_client/components/app_grants_panel.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/Grid/Grid.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/Typography/Typography.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/Tooltip/Tooltip.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/core/esm/IconButton/IconButton.js"); -/* harmony import */ var _material_ui_icons_Refresh__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/icons/Refresh.js"); -/* harmony import */ var _tokens_grid__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./resources/js/oauth2/profile/edit_client/components/tokens_grid.js"); -/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/sweetalert2/dist/sweetalert2.all.js"); -/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./resources/js/utils.js"); - - - - - - -const AppGrantsPanel = ({ - getAccessTokens, - onRevokeAccessToken, - getRefreshTokens, - onRevokeRefreshToken -}) => { - const [accessTokensListRefresh, setAccessTokensListRefresh] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(true); - const [refreshTokensListRefresh, setRefreshTokensListRefresh] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(true); - const reloadAccessTokensList = () => { - setAccessTokensListRefresh(!accessTokensListRefresh); - }; - const reloadRefreshTokensList = () => { - setRefreshTokensListRefresh(!refreshTokensListRefresh); - }; - const confirmRevocation = (id, value, subjectName, callback, reloadCallback) => { - sweetalert2__WEBPACK_IMPORTED_MODULE_2___default()({ - title: 'Are you sure to revoke this token?', - text: 'This is an non reversible process!', - showCancelButton: true, - confirmButtonColor: '#3085d6', - cancelButtonColor: '#d33', - confirmButtonText: 'Yes, revoke it!' - }).then(result => { - if (result.value) { - callback(id, value).then(() => { - sweetalert2__WEBPACK_IMPORTED_MODULE_2___default()(`${subjectName} revoked`, `The ${subjectName} has been revoked successfully`, "success"); - reloadCallback(); - }).catch(err => { - (0,_utils__WEBPACK_IMPORTED_MODULE_3__.handleErrorResponse)(err); - }); - } - }); - }; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_4__["default"], { - container: true, - direction: "column", - spacing: 2, - justifyContent: "center" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_4__["default"], { - item: true, - container: true, - direction: "row", - alignItems: "center" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_5__["default"], { - variant: "subtitle2", - display: "inline" - }, "Issued Access Tokens"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_6__["default"], { - title: "Update Access Tokens List" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_7__["default"], { - size: "small", - onClick: reloadAccessTokensList - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_Refresh__WEBPACK_IMPORTED_MODULE_8__["default"], { - fontSize: "small" - })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_4__["default"], { - item: true - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_tokens_grid__WEBPACK_IMPORTED_MODULE_1__["default"], { - getTokens: getAccessTokens, - pageSize: 6, - tokensListChanged: accessTokensListRefresh, - noTokensMessage: "** There are not currently access tokens granted for this application.", - onRevoke: (id, value) => { - confirmRevocation(id, value, 'access token', onRevokeAccessToken, reloadAccessTokensList); - } - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_4__["default"], { - item: true, - container: true, - direction: "row", - alignItems: "center" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_5__["default"], { - variant: "subtitle2", - display: "inline" - }, "Issued Refresh Tokens"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_6__["default"], { - title: "Update Refresh Tokens List" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_7__["default"], { - size: "small", - onClick: reloadRefreshTokensList - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_Refresh__WEBPACK_IMPORTED_MODULE_8__["default"], { - fontSize: "small" - })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_4__["default"], { - item: true - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_tokens_grid__WEBPACK_IMPORTED_MODULE_1__["default"], { - getTokens: getRefreshTokens, - pageSize: 6, - tokensListChanged: refreshTokensListRefresh, - noTokensMessage: "** There are not currently refresh tokens issued for this user.", - onRevoke: (id, value) => { - confirmRevocation(id, value, 'refresh token', onRevokeRefreshToken, reloadRefreshTokensList); - } - }))); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AppGrantsPanel); - -/***/ }), - -/***/ "./resources/js/oauth2/profile/edit_client/components/form_controls.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "CheckboxFormControl": () => (/* binding */ CheckboxFormControl), -/* harmony export */ "SelectFormControl": () => (/* binding */ SelectFormControl), -/* harmony export */ "SimpleTextFormControl": () => (/* binding */ SimpleTextFormControl) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@material-ui/core/esm/InputBase/InputBase.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormLabel/FormLabel.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/Typography/Typography.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@material-ui/core/esm/Tooltip/Tooltip.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormControl/FormControl.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/core/esm/TextField/TextField.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/core/esm/Select/Select.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormControlLabel/FormControlLabel.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("./node_modules/@material-ui/core/esm/Checkbox/Checkbox.js"); -/* harmony import */ var _material_ui_icons_InfoOutlined__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/@material-ui/icons/InfoOutlined.js"); -/* harmony import */ var _common_module_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./resources/js/oauth2/profile/edit_client/components/common.module.scss"); - - - - - -const BootstrapInput = (0,_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_2__["default"])(theme => ({ - root: { - 'label + &': { - marginTop: theme.spacing(0.5) - } - }, - input: { - borderRadius: 4, - position: 'relative', - backgroundColor: theme.palette.background.paper, - border: '1px solid #ced4da', - fontSize: 16, - minWidth: 400, - padding: '10px 26px 10px 12px', - '&:focus': { - borderRadius: 4 - } - } -}))(_material_ui_core__WEBPACK_IMPORTED_MODULE_3__["default"]); -const TooltipLabel = ({ - id, - title, - tooltip -}) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_4__["default"], { - htmlFor: id -}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_5__["default"], { - variant: "subtitle2", - display: "inline" -}, title), "\xA0", tooltip && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_6__["default"], { - title: tooltip -}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_InfoOutlined__WEBPACK_IMPORTED_MODULE_7__["default"], { - fontSize: "small" -}))); -const SimpleTextFormControl = ({ - id, - title, - tooltip, - type, - value, - touched, - errors, - onChange -}) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_8__["default"], { - variant: "outlined", - className: _common_module_scss__WEBPACK_IMPORTED_MODULE_1__["default"].form_control -}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(TooltipLabel, { - id: id, - title: title, - tooltip: tooltip -}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_9__["default"], { - id: id, - name: id, - variant: "outlined", - fullWidth: true, - size: "small", - inputProps: { - maxLength: 100 - }, - autoFocus: true, - value: value, - onChange: onChange, - type: type, - error: touched && Boolean(errors), - helperText: touched && errors -})); -const SelectFormControl = ({ - id, - title, - tooltip, - value, - touched, - errors, - onChange, - options -}) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_8__["default"], { - variant: "outlined", - className: _common_module_scss__WEBPACK_IMPORTED_MODULE_1__["default"].form_control -}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(TooltipLabel, { - id: id, - title: title, - tooltip: tooltip -}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - id: id, - name: id, - native: true, - size: "small", - value: value, - displayEmpty: true, - onChange: onChange, - input: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(BootstrapInput, null), - error: touched && Boolean(errors) -}, options.map(({ - value, - text -}) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("option", { - key: value, - value: value -}, text))), touched && errors && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { - className: _common_module_scss__WEBPACK_IMPORTED_MODULE_1__["default"].error_label -}, errors)); -const CheckboxFormControl = ({ - id, - title, - tooltip, - value, - onChange -}) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_8__["default"], { - variant: "outlined", - className: _common_module_scss__WEBPACK_IMPORTED_MODULE_1__["default"].form_control -}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_11__["default"], { - id: id, - control: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_12__["default"], { - color: "primary", - id: id, - checked: value, - onChange: onChange - }), - label: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_5__["default"], { - display: "inline" - }, title), "\xA0", tooltip && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_6__["default"], { - title: tooltip - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_InfoOutlined__WEBPACK_IMPORTED_MODULE_7__["default"], { - fontSize: "small" - }))), - labelPlacement: "end" -})); - -/***/ }), - -/***/ "./resources/js/oauth2/profile/edit_client/components/logout_options.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var yup__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/yup/es/index.js"); -/* harmony import */ var formik__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/formik/dist/formik.esm.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormGroup/FormGroup.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/core/esm/Typography/Typography.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/@material-ui/core/esm/Box/Box.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("./node_modules/@material-ui/core/esm/Divider/Divider.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormControl/FormControl.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormLabel/FormLabel.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("./node_modules/@material-ui/core/esm/Button/Button.js"); -/* harmony import */ var _form_controls__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./resources/js/oauth2/profile/edit_client/components/form_controls.js"); -/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/sweetalert2/dist/sweetalert2.all.js"); -/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./resources/js/utils.js"); -/* harmony import */ var _components_loading_indicator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./resources/js/components/loading_indicator.js"); -/* harmony import */ var _components_tags_input__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./resources/js/components/tags_input.js"); -/* harmony import */ var _common_module_scss__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./resources/js/oauth2/profile/edit_client/components/common.module.scss"); - - - - - - - - - - -const LogoutOptions = ({ - initialValues, - onSavePromise -}) => { - const [loading, setLoading] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false); - const validatePostLogoutRedirectURI = value => { - const regex = /^https:\/\/([\w@][\w.:@]+)\/?[\w\.?=%&=\-@/$,]*$/ig; - return regex.test(value); - }; - const buildValidationSchema = () => { - return (0,yup__WEBPACK_IMPORTED_MODULE_1__.object)({ - logout_uri: (0,yup__WEBPACK_IMPORTED_MODULE_1__.string)().nullable(true).matches(/^https:\/\//, { - message: 'URL must be SSL' - }) - }); - }; - const formik = (0,formik__WEBPACK_IMPORTED_MODULE_2__.useFormik)({ - initialValues: initialValues, - enableReinitialize: true, - validationSchema: buildValidationSchema(), - onSubmit: values => { - setLoading(true); - onSavePromise(values).then(() => { - setLoading(false); - sweetalert2__WEBPACK_IMPORTED_MODULE_4___default()("Logout options saved", "The logout options section info has been saved successfully", "success"); - }).catch(err => { - //console.log(err); - setLoading(false); - (0,_utils__WEBPACK_IMPORTED_MODULE_5__.handleErrorResponse)(err); - }); - } - }); - const handleFormKeyDown = e => { - if ((e.charCode || e.keyCode) === 13) { - e.preventDefault(); - } - }; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("form", { - onSubmit: formik.handleSubmit, - onKeyDown: handleFormKeyDown, - method: "post", - encType: "multipart/form-data", - target: "_self", - className: _common_module_scss__WEBPACK_IMPORTED_MODULE_8__["default"].main_container - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_9__["default"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - variant: "h6" - }, "Logout Options"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_11__["default"], { - component: "div", - whiteSpace: "nowrap", - height: "20px" - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_12__["default"], null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_13__["default"], { - variant: "outlined", - className: _common_module_scss__WEBPACK_IMPORTED_MODULE_8__["default"].form_control - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_14__["default"], { - htmlFor: "post_logout_redirect_uris" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - variant: "subtitle2", - display: "inline" - }, "Post Logout Uris (optional)")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_tags_input__WEBPACK_IMPORTED_MODULE_7__["default"], { - id: "post_logout_redirect_uris", - name: "post_logout_redirect_uris", - fullWidth: true, - size: "small", - variant: "outlined", - type: "url", - tags: (0,_components_tags_input__WEBPACK_IMPORTED_MODULE_7__.getTags)(formik.values.post_logout_redirect_uris), - errors: formik.errors.post_logout_redirect_uris, - onChange: formik.handleChange, - isValid: validatePostLogoutRedirectURI - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_form_controls__WEBPACK_IMPORTED_MODULE_3__.SimpleTextFormControl, { - id: "logout_uri", - title: "Logout Uri (optional)", - tooltip: "", - type: "url", - value: formik.values.logout_uri ?? '', - touched: formik.touched.logout_uri, - errors: formik.errors.logout_uri, - onChange: formik.handleChange - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_form_controls__WEBPACK_IMPORTED_MODULE_3__.CheckboxFormControl, { - id: "logout_session_required", - title: "Session Required (Optional)", - tooltip: "", - value: !!formik.values.logout_session_required, - onChange: formik.handleChange - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_form_controls__WEBPACK_IMPORTED_MODULE_3__.CheckboxFormControl, { - id: "logout_use_iframe", - title: "Use IFrame (Optional)", - tooltip: "", - value: !!formik.values.logout_use_iframe, - onChange: formik.handleChange - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_13__["default"], { - variant: "outlined", - className: _common_module_scss__WEBPACK_IMPORTED_MODULE_8__["default"].form_control - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_15__["default"], { - variant: "contained", - disableElevation: true, - color: "primary", - className: _common_module_scss__WEBPACK_IMPORTED_MODULE_8__["default"].button, - type: "submit" - }, "Save")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_loading_indicator__WEBPACK_IMPORTED_MODULE_6__["default"], { - open: loading - })); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (LogoutOptions); - -/***/ }), - -/***/ "./resources/js/oauth2/profile/edit_client/components/oauth_panel.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _components_loading_indicator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./resources/js/components/loading_indicator.js"); -/* harmony import */ var _components_users_selector__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./resources/js/components/users_selector.js"); -/* harmony import */ var _components_tags_input__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./resources/js/components/tags_input.js"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./resources/js/utils.js"); -/* harmony import */ var _form_controls__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./resources/js/oauth2/profile/edit_client/components/form_controls.js"); -/* harmony import */ var formik__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/formik/dist/formik.esm.js"); -/* harmony import */ var yup__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/yup/es/index.js"); -/* harmony import */ var _material_ui_icons_Assignment__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__("./node_modules/@material-ui/icons/Assignment.js"); -/* harmony import */ var _material_ui_icons_CheckCircle__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__("./node_modules/@material-ui/icons/CheckCircle.js"); -/* harmony import */ var _material_ui_icons_InfoOutlined__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__("./node_modules/@material-ui/icons/InfoOutlined.js"); -/* harmony import */ var _material_ui_icons_Refresh__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__("./node_modules/@material-ui/icons/Refresh.js"); -/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/sweetalert2/dist/sweetalert2.all.js"); -/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/core/esm/Typography/Typography.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/@material-ui/core/esm/Divider/Divider.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormGroup/FormGroup.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormControl/FormControl.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormLabel/FormLabel.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("./node_modules/@material-ui/core/esm/OutlinedInput/OutlinedInput.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("./node_modules/@material-ui/core/esm/InputAdornment/InputAdornment.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__("./node_modules/@material-ui/core/esm/IconButton/IconButton.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__("./node_modules/@material-ui/core/esm/Tooltip/Tooltip.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__("./node_modules/@material-ui/core/esm/Box/Box.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__("./node_modules/@material-ui/core/esm/TextField/TextField.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__("./node_modules/@material-ui/core/esm/Button/Button.js"); -/* harmony import */ var _common_module_scss__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./resources/js/oauth2/profile/edit_client/components/common.module.scss"); -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } -function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } - - - - - - - - - - - - - - - -const OauthPanel = ({ - appTypes, - clientTypes, - entity, - fetchAdminUsersURL, - initialValues, - onClientSecretRegenerate, - onRefreshTokenChange, - onSavePromise -}) => { - const { - application_type, - client_type, - is_own - } = entity; - const { - can_request_refresh_tokens - } = initialValues; - const [loading, setLoading] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false); - const [copyEventInfo, setCopyEventInfo] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({}); - const handleCopyClick = (target, value) => { - navigator.clipboard.writeText(value).then(() => { - setCopyEventInfo(_objectSpread(_objectSpread({}, copyEventInfo), {}, { - [target]: true - })); - setTimeout(() => { - setCopyEventInfo(_objectSpread(_objectSpread({}, copyEventInfo), {}, { - [target]: false - })); - }, 2000); - }); - }; - const validateRedirectURI = value => { - try { - const url = new URL(value); - return application_type === appTypes.Native ? true : url.protocol === 'https:' && url.search === ''; - } catch (err) { - return false; - } - }; - const validateAllowedOrigin = value => { - try { - const url = new URL(value); - return url.protocol === 'https:' && url.search === ''; - } catch (err) { - return false; - } - }; - const handleRefreshTokenChange = ev => { - formik.handleChange(ev); - if (onRefreshTokenChange) onRefreshTokenChange(ev.target.checked); - }; - const buildValidationSchema = () => { - return (0,yup__WEBPACK_IMPORTED_MODULE_7__.object)({ - app_name: (0,yup__WEBPACK_IMPORTED_MODULE_7__.string)("The app name field is required.").required("The app name field is required."), - app_description: (0,yup__WEBPACK_IMPORTED_MODULE_7__.string)("The app description field is required.").required("The app description field is required.") - }); - }; - const formik = (0,formik__WEBPACK_IMPORTED_MODULE_6__.useFormik)({ - initialValues: initialValues, - enableReinitialize: true, - validationSchema: buildValidationSchema(), - onSubmit: values => { - setLoading(true); - onSavePromise(values).then(() => { - setLoading(false); - sweetalert2__WEBPACK_IMPORTED_MODULE_8___default()("OAuth info saved", "The OAuth section info has been saved successfully", "success"); - }).catch(err => { - console.log(err); - setLoading(false); - (0,_utils__WEBPACK_IMPORTED_MODULE_4__.handleErrorResponse)(err); - }); - } - }); - const handleFormKeyDown = e => { - if ((e.charCode || e.keyCode) === 13) { - e.preventDefault(); - } - }; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("form", { - onSubmit: formik.handleSubmit, - onKeyDown: handleFormKeyDown, - method: "post", - encType: "multipart/form-data", - target: "_self", - className: _common_module_scss__WEBPACK_IMPORTED_MODULE_9__["default"].main_container - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], null, "Client Credentials"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_11__["default"], null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_12__["default"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_13__["default"], { - variant: "outlined", - className: _common_module_scss__WEBPACK_IMPORTED_MODULE_9__["default"].form_control - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_14__["default"], { - htmlFor: "client_id" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - variant: "subtitle2", - display: "inline" - }, "CLIENT ID")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_15__["default"], { - id: "client_id", - name: "client_id", - type: "text", - value: formik.values.client_id, - onChange: formik.handleChange, - className: _common_module_scss__WEBPACK_IMPORTED_MODULE_9__["default"].outline_input, - disabled: true, - endAdornment: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_16__["default"], { - position: "end" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_17__["default"], { - "aria-label": "copy to clipboard", - onClick: () => handleCopyClick("client_id", formik.values.client_id), - edge: "end" - }, copyEventInfo.client_id ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_CheckCircle__WEBPACK_IMPORTED_MODULE_18__["default"], null) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_19__["default"], { - title: "Click to copy" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_Assignment__WEBPACK_IMPORTED_MODULE_20__["default"], null)))) - })), client_type === clientTypes.Confidential && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_13__["default"], { - variant: "outlined", - className: _common_module_scss__WEBPACK_IMPORTED_MODULE_9__["default"].form_control - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_14__["default"], { - htmlFor: "client_secret" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - variant: "subtitle2", - display: "inline" - }, "CLIENT SECRET"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_19__["default"], { - title: "Regenerate" - }, is_own && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_17__["default"], { - "aria-label": "regenerate", - onClick: onClientSecretRegenerate, - edge: "end", - size: "small" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_Refresh__WEBPACK_IMPORTED_MODULE_21__["default"], null)))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_15__["default"], { - id: "client_secret", - name: "client_secret", - type: "text", - value: formik.values.client_secret, - onChange: formik.handleChange, - className: _common_module_scss__WEBPACK_IMPORTED_MODULE_9__["default"].outline_input, - disabled: true, - endAdornment: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_16__["default"], { - position: "end" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_17__["default"], { - "aria-label": "copy to clipboard", - onClick: () => handleCopyClick("client_secret", formik.values.client_secret), - edge: "end" - }, copyEventInfo.client_secret ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_CheckCircle__WEBPACK_IMPORTED_MODULE_18__["default"], null) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_19__["default"], { - title: "Click to copy" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_Assignment__WEBPACK_IMPORTED_MODULE_20__["default"], null)))) - })), can_request_refresh_tokens && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_22__["default"], { - component: "div", - whiteSpace: "nowrap", - height: "20px" - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], null, "Client Settings"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_form_controls__WEBPACK_IMPORTED_MODULE_5__.CheckboxFormControl, { - id: "use_refresh_token", - title: "Use Refresh Tokens", - tooltip: "", - value: formik.values.use_refresh_token, - onChange: handleRefreshTokenChange - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_form_controls__WEBPACK_IMPORTED_MODULE_5__.CheckboxFormControl, { - id: "rotate_refresh_token", - title: "Use Rotate Refresh Token Policy", - tooltip: "", - value: formik.values.rotate_refresh_token, - onChange: formik.handleChange - }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_22__["default"], { - component: "div", - whiteSpace: "nowrap", - height: "20px" - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], null, "Client Data"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_11__["default"], null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_12__["default"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_form_controls__WEBPACK_IMPORTED_MODULE_5__.SimpleTextFormControl, { - id: "app_name", - title: "Application Name", - tooltip: "", - value: formik.values.app_name ?? '', - touched: formik.touched.app_name, - errors: formik.errors.app_name, - onChange: formik.handleChange - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_13__["default"], { - variant: "outlined", - className: _common_module_scss__WEBPACK_IMPORTED_MODULE_9__["default"].form_control - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_14__["default"], { - htmlFor: "app_description" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - variant: "subtitle2" - }, "Application Description")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_23__["default"], { - id: "app_description", - name: "app_description", - variant: "outlined", - fullWidth: true, - multiline: true, - minRows: 5, - maxRows: 5, - size: "small", - autoFocus: true, - value: formik.values.app_description, - onChange: formik.handleChange, - error: formik.touched.app_description && Boolean(formik.errors.app_description), - helperText: formik.touched.app_description && formik.errors.app_description - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_13__["default"], { - variant: "outlined", - className: _common_module_scss__WEBPACK_IMPORTED_MODULE_9__["default"].form_control - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_14__["default"], { - htmlFor: "admin_users" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - variant: "subtitle2", - display: "inline" - }, "Admin Users"), "\xA0", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_19__["default"], { - title: "Choose which users would be administrator of this application." - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_InfoOutlined__WEBPACK_IMPORTED_MODULE_24__["default"], { - fontSize: "small" - }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_users_selector__WEBPACK_IMPORTED_MODULE_2__["default"], { - id: "admin_users", - name: "admin_users", - fetchUsersURL: fetchAdminUsersURL, - initialValue: formik.values.admin_users, - onChange: formik.handleChange, - disabled: !is_own, - tooltip: !is_own && "You can not edit admin users because your are not the application owner." - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_form_controls__WEBPACK_IMPORTED_MODULE_5__.SimpleTextFormControl, { - id: "website", - title: "Application Web Site Url (optional)", - tooltip: "Client home page URL.", - type: "url", - value: formik.values.website ?? '', - touched: formik.touched.website, - errors: formik.errors.website, - onChange: formik.handleChange - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_form_controls__WEBPACK_IMPORTED_MODULE_5__.SimpleTextFormControl, { - id: "logo_uri", - title: "Application Logo Url (optional)", - tooltip: "URL that references a logo for the Client application.", - type: "url", - value: formik.values.logo_uri ?? '', - touched: formik.touched.logo_uri, - errors: formik.errors.logo_uri, - onChange: formik.handleChange - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_form_controls__WEBPACK_IMPORTED_MODULE_5__.SimpleTextFormControl, { - id: "tos_uri", - title: "Application Term of Service Url (optional)", - tooltip: "URL that the Relying Party Client provides to the End-User to read about the Relying Party's terms of service.", - type: "url", - value: formik.values.tos_uri ?? '', - touched: formik.touched.tos_uri, - errors: formik.errors.tos_uri, - onChange: formik.handleChange - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_form_controls__WEBPACK_IMPORTED_MODULE_5__.SimpleTextFormControl, { - id: "policy_uri", - title: "Application Policy Url (optional)", - tooltip: "URL that the Relying Party Client provides to the End-User to read about the how the profile data will be used.", - type: "url", - value: formik.values.policy_uri ?? '', - touched: formik.touched.policy_uri, - errors: formik.errors.policy_uri, - onChange: formik.handleChange - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_13__["default"], { - variant: "outlined", - className: _common_module_scss__WEBPACK_IMPORTED_MODULE_9__["default"].form_control - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_14__["default"], { - htmlFor: "contacts" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - variant: "subtitle2", - display: "inline" - }, "Contact Emails (optional)"), "\xA0", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_19__["default"], { - title: "e-mail addresses of people responsible for this Client." - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_InfoOutlined__WEBPACK_IMPORTED_MODULE_24__["default"], { - fontSize: "small" - }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_tags_input__WEBPACK_IMPORTED_MODULE_3__["default"], { - id: "contacts", - name: "contacts", - fullWidth: true, - size: "small", - variant: "outlined", - type: "email", - onChange: formik.handleChange, - tags: (0,_components_tags_input__WEBPACK_IMPORTED_MODULE_3__.getTags)(formik.values.contacts) - })), application_type !== appTypes.Service && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_13__["default"], { - variant: "outlined", - className: _common_module_scss__WEBPACK_IMPORTED_MODULE_9__["default"].form_control - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_14__["default"], { - htmlFor: "redirect_uris" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - variant: "subtitle2", - display: "inline" - }, "Allowed Redirection Uris (optional)"), "\xA0", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_19__["default"], { - title: "Redirection URI values used by the Client." - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_InfoOutlined__WEBPACK_IMPORTED_MODULE_24__["default"], { - fontSize: "small" - }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_tags_input__WEBPACK_IMPORTED_MODULE_3__["default"], { - id: "redirect_uris", - name: "redirect_uris", - fullWidth: true, - size: "small", - variant: "outlined", - type: "url", - onChange: formik.handleChange, - tags: (0,_components_tags_input__WEBPACK_IMPORTED_MODULE_3__.getTags)(formik.values.redirect_uris), - isValid: validateRedirectURI - })), application_type === appTypes.JSClient && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_13__["default"], { - variant: "outlined", - className: _common_module_scss__WEBPACK_IMPORTED_MODULE_9__["default"].form_control - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_14__["default"], { - htmlFor: "allowed_origins" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - variant: "subtitle2", - display: "inline" - }, "Allowed javascript origins (optional)"), "\xA0", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_19__["default"], { - title: "Allowed js origin URI values used by the Client." - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_InfoOutlined__WEBPACK_IMPORTED_MODULE_24__["default"], { - fontSize: "small" - }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_tags_input__WEBPACK_IMPORTED_MODULE_3__["default"], { - id: "allowed_origins", - name: "allowed_origins", - fullWidth: true, - size: "small", - variant: "outlined", - type: "url", - onChange: formik.handleChange, - tags: (0,_components_tags_input__WEBPACK_IMPORTED_MODULE_3__.getTags)(formik.values.allowed_origins), - isValid: validateAllowedOrigin - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_13__["default"], { - variant: "outlined", - className: _common_module_scss__WEBPACK_IMPORTED_MODULE_9__["default"].form_control - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_25__["default"], { - variant: "contained", - disableElevation: true, - color: "primary", - className: _common_module_scss__WEBPACK_IMPORTED_MODULE_9__["default"].button, - type: "submit" - }, "Save"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { - type: "hidden", - value: formik.values.application_type, - id: "application_type", - name: "application_type" - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_loading_indicator__WEBPACK_IMPORTED_MODULE_1__["default"], { - open: loading - })); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (OauthPanel); - -/***/ }), - -/***/ "./resources/js/oauth2/profile/edit_client/components/public_keys_admin.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"); -/* harmony import */ var _material_ui_core_DialogTitle__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("./node_modules/@material-ui/core/esm/DialogTitle/DialogTitle.js"); -/* harmony import */ var _material_ui_core_DialogContent__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__("./node_modules/@material-ui/core/esm/DialogContent/DialogContent.js"); -/* harmony import */ var _material_ui_core_DialogActions__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__("./node_modules/@material-ui/core/esm/DialogActions/DialogActions.js"); -/* harmony import */ var _material_ui_icons_Close__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("./node_modules/@material-ui/icons/Close.js"); -/* harmony import */ var _material_ui_icons_Delete__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__("./node_modules/@material-ui/icons/Delete.js"); -/* harmony import */ var _material_ui_icons_FiberManualRecord__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__("./node_modules/@material-ui/icons/FiberManualRecord.js"); -/* harmony import */ var _material_ui_icons_NotInterested__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__("./node_modules/@material-ui/icons/NotInterested.js"); -/* harmony import */ var _material_ui_icons_VpnKey__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__("./node_modules/@material-ui/icons/VpnKey.js"); -/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/sweetalert2/dist/sweetalert2.all.js"); -/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./resources/js/utils.js"); -/* harmony import */ var _form_controls__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./resources/js/oauth2/profile/edit_client/components/form_controls.js"); -/* harmony import */ var formik__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/formik/dist/formik.esm.js"); -/* harmony import */ var yup__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/yup/es/index.js"); -/* harmony import */ var _material_ui_lab_Alert__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__("./node_modules/@material-ui/lab/esm/Alert/Alert.js"); -/* harmony import */ var _wojtekmaj_react_daterange_picker__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__("./node_modules/@wojtekmaj/react-daterange-picker/dist/esm/index.js"); -/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/moment/moment.js"); -/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./resources/js/oauth2/profile/edit_client/actions.js"); -/* harmony import */ var _styles_date_range_picker_scss__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./resources/styles/date_range_picker.scss"); -/* harmony import */ var react_calendar_dist_Calendar_css__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./node_modules/react-calendar/dist/Calendar.css"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("./node_modules/@material-ui/core/esm/Typography/Typography.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("./node_modules/@material-ui/core/esm/IconButton/IconButton.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("./node_modules/@material-ui/core/esm/Grid/Grid.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__("./node_modules/@material-ui/core/esm/Chip/Chip.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__("./node_modules/@material-ui/core/esm/Paper/Paper.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__("./node_modules/@material-ui/core/esm/Button/Button.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__("./node_modules/@material-ui/core/esm/Box/Box.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__("./node_modules/@material-ui/core/esm/Divider/Divider.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__("./node_modules/@material-ui/core/esm/Dialog/Dialog.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormGroup/FormGroup.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormControl/FormControl.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormLabel/FormLabel.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__("./node_modules/@material-ui/core/esm/TextField/TextField.js"); -/* harmony import */ var _common_module_scss__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./resources/js/oauth2/profile/edit_client/components/common.module.scss"); -const _excluded = ["children", "classes", "onClose"]; -function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } -function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } - - - - - - - - - - - - - - - - - - - - - - - - -const classes = theme => ({ - root: { - margin: 0, - padding: theme.spacing(2) - }, - closeButton: { - position: 'absolute', - right: theme.spacing(1), - top: theme.spacing(1), - color: theme.palette.grey[500] - } -}); -const DialogTitle = (0,_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_11__["default"])(classes)(props => { - const { - children, - classes, - onClose - } = props, - other = _objectWithoutProperties(props, _excluded); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_DialogTitle__WEBPACK_IMPORTED_MODULE_12__["default"], _extends({ - disableTypography: true, - className: classes.root - }, other), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_13__["default"], { - variant: "h6" - }, children), onClose ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_14__["default"], { - "aria-label": "close", - className: classes.closeButton, - onClick: onClose - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_Close__WEBPACK_IMPORTED_MODULE_15__["default"], null)) : null); -}); -const PublicKeysAdmin = ({ - initialValues, - clientId, - supportedSigningAlgorithms, - supportedJSONWebKeyTypes -}) => { - const [open, setOpen] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false); - const [publicKeys, setPublicKeys] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)([]); - const [dateRangeValue, setDateRangeChange] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)([new Date(), new Date()]); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - reloadPublicKeys(); - }, []); - const reloadPublicKeys = () => { - (0,_actions__WEBPACK_IMPORTED_MODULE_7__.getPublicKeys)(clientId, 1, 100).then(res => { - setPublicKeys([...res.data]); - }); - }; - const handleClickOpen = () => { - setOpen(true); - }; - const handleClose = () => { - setOpen(false); - }; - const handleDateRangeChange = dateRange => { - setDateRangeChange(dateRange); - }; - const handlePKDelete = id => { - sweetalert2__WEBPACK_IMPORTED_MODULE_1___default()({ - title: 'Are you sure to delete this public key?', - text: 'This is an non reversible process!', - showCancelButton: true, - confirmButtonColor: '#3085d6', - cancelButtonColor: '#d33', - confirmButtonText: 'Yes, delete it!' - }).then(result => { - if (result.value) { - (0,_actions__WEBPACK_IMPORTED_MODULE_7__.removePublicKey)(clientId, id).then(() => { - sweetalert2__WEBPACK_IMPORTED_MODULE_1___default()("Public key deleted", "The public key has been deleted successfully", "success"); - reloadPublicKeys(); - }).catch(err => { - (0,_utils__WEBPACK_IMPORTED_MODULE_2__.handleErrorResponse)(err); - }); - } - }); - }; - const PublicKeyItem = ({ - publicKey, - onDelete - }) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_16__["default"], { - item: true, - container: true, - direction: "row", - spacing: 2 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_16__["default"], { - item: true, - container: true, - xs: 1, - justifyContent: "center", - alignItems: "center" - }, publicKey.active ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_FiberManualRecord__WEBPACK_IMPORTED_MODULE_17__["default"], { - color: "primary" - }) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_NotInterested__WEBPACK_IMPORTED_MODULE_18__["default"], null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_VpnKey__WEBPACK_IMPORTED_MODULE_19__["default"], null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_16__["default"], { - item: true, - xs: 10 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_16__["default"], { - item: true, - xs: 12 - }, publicKey.kid, "\xA0", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_20__["default"], { - label: publicKey.usage - }), "\xA0", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_20__["default"], { - label: publicKey.type, - color: "primary" - }), "\xA0"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_16__["default"], { - item: true, - xs: 12 - }, publicKey.sha_256)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_16__["default"], { - item: true, - xs: 1 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_14__["default"], { - onClick: () => { - if (onDelete) onDelete(publicKey.id); - } - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_Delete__WEBPACK_IMPORTED_MODULE_21__["default"], { - fontSize: "small" - })))); - const buildValidationSchema = () => { - return (0,yup__WEBPACK_IMPORTED_MODULE_5__.object)({ - kid: (0,yup__WEBPACK_IMPORTED_MODULE_5__.string)("The Key Identifier field is required.").required("The Key Identifier field is required."), - type: (0,yup__WEBPACK_IMPORTED_MODULE_5__.string)("The Key Type field is required.").required("The Key Type field is required."), - pem_content: (0,yup__WEBPACK_IMPORTED_MODULE_5__.string)("The Key (PEM content) field is required.").required("The Key (PEM content) field is required.") - }); - }; - const formik = (0,formik__WEBPACK_IMPORTED_MODULE_4__.useFormik)({ - initialValues: initialValues, - validationSchema: buildValidationSchema(), - onSubmit: values => { - values.valid_from = dateRangeValue[0]; - values.valid_to = dateRangeValue[1]; - if (values.valid_from) values.valid_from = moment__WEBPACK_IMPORTED_MODULE_6___default()(values.valid_from).format('MM/DD/YYYY'); - if (values.valid_to) values.valid_to = moment__WEBPACK_IMPORTED_MODULE_6___default()(values.valid_to).format('MM/DD/YYYY'); - console.log('public_key_saved', values); - (0,_actions__WEBPACK_IMPORTED_MODULE_7__.addPublicKey)(clientId, values).then(() => { - setOpen(false); - sweetalert2__WEBPACK_IMPORTED_MODULE_1___default()("Public key added", "The public key has been added successfully", "success"); - }).catch(err => { - //console.log(err); - setOpen(false); - (0,_utils__WEBPACK_IMPORTED_MODULE_2__.handleErrorResponse)(err); - }); - } - }); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_22__["default"], { - variant: "outlined", - className: _common_module_scss__WEBPACK_IMPORTED_MODULE_10__["default"].paper - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_16__["default"], { - item: true, - container: true, - direction: "row" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_16__["default"], { - item: true, - xs: 10, - container: true, - alignItems: "center" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_13__["default"], { - display: "inline" - }, "Public keys")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_16__["default"], { - item: true, - xs: 2 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_23__["default"], { - variant: "outlined", - color: "primary", - onClick: handleClickOpen - }, "Add Public Key")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_24__["default"], { - component: "div", - whiteSpace: "nowrap", - height: "20px" - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_13__["default"], null, "This is a list of Public Keys keys associated with your application. Remove any keys that you do not recognize."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_25__["default"], null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_24__["default"], { - component: "div", - whiteSpace: "nowrap", - height: "20px" - }), publicKeys?.length > 0 ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_16__["default"], { - container: true, - spacing: 1 - }, publicKeys.map(publicKey => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(PublicKeyItem, { - key: publicKey.id, - publicKey: publicKey, - onDelete: handlePKDelete - }))) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_lab_Alert__WEBPACK_IMPORTED_MODULE_26__["default"], { - severity: "warning" - }, "There are no Public keys yet."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_27__["default"], { - onClose: handleClose, - "aria-labelledby": "customized-dialog-title", - open: open, - className: _common_module_scss__WEBPACK_IMPORTED_MODULE_10__["default"].dialog - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("form", { - onSubmit: formik.handleSubmit, - method: "post", - encType: "multipart/form-data", - target: "_self" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(DialogTitle, { - id: "customized-dialog-title", - onClose: handleClose - }, "Add Public Key"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_DialogContent__WEBPACK_IMPORTED_MODULE_28__["default"], { - dividers: true, - className: _common_module_scss__WEBPACK_IMPORTED_MODULE_10__["default"].main_container - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_29__["default"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_form_controls__WEBPACK_IMPORTED_MODULE_3__.SimpleTextFormControl, { - id: "kid", - title: "Key Identifier *", - tooltip: "", - value: formik.values.kid, - touched: formik.touched.kid, - errors: formik.errors.kid, - onChange: formik.handleChange - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_30__["default"], { - variant: "outlined", - className: _common_module_scss__WEBPACK_IMPORTED_MODULE_10__["default"].form_control - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_31__["default"], { - htmlFor: "key_validity_range" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_13__["default"], { - variant: "subtitle2" - }, "Key validity range")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_wojtekmaj_react_daterange_picker__WEBPACK_IMPORTED_MODULE_32__["default"], { - id: "key_validity_range", - name: "key_validity_range", - onChange: handleDateRangeChange, - value: dateRangeValue - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_form_controls__WEBPACK_IMPORTED_MODULE_3__.CheckboxFormControl, { - id: "active", - title: "Is Active?", - tooltip: "", - value: formik.values.active, - onChange: formik.handleChange - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_form_controls__WEBPACK_IMPORTED_MODULE_3__.SelectFormControl, { - id: "usage", - title: "Usage", - tooltip: "", - value: formik.values.usage, - touched: formik.touched.usage, - errors: formik.errors.usage, - onChange: formik.handleChange, - options: [{ - value: 'sig', - text: 'sig' - }, { - value: 'enc', - text: 'enc' - }] - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_form_controls__WEBPACK_IMPORTED_MODULE_3__.SelectFormControl, { - id: "alg", - title: "Algorithm", - tooltip: "Identifies the algorithm intended for use with the key.", - value: formik.values.alg, - touched: formik.touched.alg, - errors: formik.errors.alg, - onChange: formik.handleChange, - options: supportedSigningAlgorithms.map(alg => { - return { - value: alg, - text: alg - }; - }) - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_form_controls__WEBPACK_IMPORTED_MODULE_3__.SelectFormControl, { - id: "type", - title: "Type", - tooltip: "", - value: formik.values.type, - touched: formik.touched.type, - errors: formik.errors.type, - onChange: formik.handleChange, - options: supportedJSONWebKeyTypes.map(type => { - return { - value: type, - text: type - }; - }) - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_30__["default"], { - variant: "outlined", - className: _common_module_scss__WEBPACK_IMPORTED_MODULE_10__["default"].form_control - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_31__["default"], { - htmlFor: "pem_content" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_13__["default"], { - variant: "subtitle2" - }, "Key *")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_33__["default"], { - id: "pem_content", - name: "pem_content", - variant: "outlined", - fullWidth: true, - multiline: true, - minRows: 7, - maxRows: 7, - size: "small", - autoFocus: true, - value: formik.values.pem_content, - onChange: formik.handleChange, - error: formik.touched.pem_content && Boolean(formik.errors.pem_content), - helperText: formik.touched.pem_content && formik.errors.pem_content - })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core_DialogActions__WEBPACK_IMPORTED_MODULE_34__["default"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_23__["default"], { - autoFocus: true, - onClick: handleClose, - color: "primary" - }, "Close"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_23__["default"], { - variant: "contained", - disableElevation: true, - type: "submit" - }, "Save changes"))))); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PublicKeysAdmin); - -/***/ }), - -/***/ "./resources/js/oauth2/profile/edit_client/components/security_settings_panel.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/core/esm/Grid/Grid.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormGroup/FormGroup.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("./node_modules/@material-ui/core/esm/FormControl/FormControl.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("./node_modules/@material-ui/core/esm/Button/Button.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("./node_modules/@material-ui/core/esm/Box/Box.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("./node_modules/@material-ui/core/esm/Divider/Divider.js"); -/* harmony import */ var yup__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/yup/es/index.js"); -/* harmony import */ var formik__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/formik/dist/formik.esm.js"); -/* harmony import */ var _public_keys_admin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./resources/js/oauth2/profile/edit_client/components/public_keys_admin.js"); -/* harmony import */ var _form_controls__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./resources/js/oauth2/profile/edit_client/components/form_controls.js"); -/* harmony import */ var _logout_options__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./resources/js/oauth2/profile/edit_client/components/logout_options.js"); -/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/sweetalert2/dist/sweetalert2.all.js"); -/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./resources/js/utils.js"); -/* harmony import */ var _components_loading_indicator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./resources/js/components/loading_indicator.js"); -/* harmony import */ var _common_module_scss__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./resources/js/oauth2/profile/edit_client/components/common.module.scss"); - - - - - - - - - - - -const SecuritySettingsPanel = ({ - entity, - clientTypes, - initialValues, - onMainSettingsSavePromise, - onLogoutOptionsSavePromise, - supportedContentEncryptionAlgorithms, - supportedKeyManagementAlgorithms, - supportedSigningAlgorithms, - supportedTokenEndpointAuthMethods, - supportedJSONWebKeyTypes, - onUsePKCEChange -}) => { - const { - id, - client_type, - is_allowed_to_use_token_endpoint_auth - } = entity; - const [loading, setLoading] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false); - const handleUsePKCEChange = ev => { - formik.handleChange(ev); - if (onUsePKCEChange) onUsePKCEChange(ev.target.checked); - }; - const formik = (0,formik__WEBPACK_IMPORTED_MODULE_2__.useFormik)({ - initialValues: initialValues, - onSubmit: (values, { - resetForm - }) => { - setLoading(true); - onMainSettingsSavePromise(values).then(() => { - setLoading(false); - sweetalert2__WEBPACK_IMPORTED_MODULE_6___default()("Security settings saved", "The security settings section info has been saved successfully", "success"); - //resetForm(); - }).catch(err => { - //console.log(err); - setLoading(false); - (0,_utils__WEBPACK_IMPORTED_MODULE_7__.handleErrorResponse)(err); - }); - } - }); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - container: true - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - item: true, - container: true - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("form", { - onSubmit: formik.handleSubmit, - method: "post", - encType: "multipart/form-data", - target: "_self", - className: _common_module_scss__WEBPACK_IMPORTED_MODULE_9__["default"].main_container - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_11__["default"], null, client_type === clientTypes.Public && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_form_controls__WEBPACK_IMPORTED_MODULE_4__.CheckboxFormControl, { - id: "pkce_enabled", - title: "Use PKCE?", - tooltip: "Use Proof Key for Code Exchange instead of a Client Secret (Public Clients)", - value: formik.values.pkce_enabled, - onChange: handleUsePKCEChange - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_form_controls__WEBPACK_IMPORTED_MODULE_4__.CheckboxFormControl, { - id: "otp_enabled", - title: "Use Passwordless?", - tooltip: "Use Passwordless Authentication", - value: formik.values.otp_enabled, - onChange: formik.handleChange - }), formik.values.otp_enabled && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_form_controls__WEBPACK_IMPORTED_MODULE_4__.SimpleTextFormControl, { - id: "otp_length", - title: "OTP Length", - tooltip: "One Time Password Length", - type: "number", - value: formik.values.otp_length, - touched: formik.touched.otp_length, - errors: formik.errors.otp_length, - onChange: formik.handleChange - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_form_controls__WEBPACK_IMPORTED_MODULE_4__.SimpleTextFormControl, { - id: "otp_lifetime", - title: "OTP LifeTime (Seconds)", - tooltip: "One Time Password span lifetime in seconds", - type: "number", - value: formik.values.otp_lifetime, - touched: formik.touched.otp_lifetime, - errors: formik.errors.otp_lifetime, - onChange: formik.handleChange - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_form_controls__WEBPACK_IMPORTED_MODULE_4__.SimpleTextFormControl, { - id: "default_max_age", - title: "Default Max. Age (optional)", - tooltip: "Default Maximum Authentication Age. Specifies that the End-User MUST be actively authenticated if the End-User was authenticated longer ago than the specified number of seconds. The max_age request parameter overrides this default value. If omitted, no default Maximum Authentication Age is specified.", - type: "number", - value: formik.values.default_max_age, - touched: formik.touched.default_max_age, - errors: formik.errors.default_max_age, - onChange: formik.handleChange - }), is_allowed_to_use_token_endpoint_auth && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_form_controls__WEBPACK_IMPORTED_MODULE_4__.SelectFormControl, { - id: "token_endpoint_auth_signing_alg", - title: "Token Endpoint Authorization Signed Algorithm", - tooltip: "JWS [JWS] alg algorithm [JWA] that MUST be used for signing the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. All Token Requests using these authentication methods from this Client MUST be rejected, if the JWT is not signed with this algorithm. Servers SHOULD support RS256. The value none MUST NOT be used. The default, if omitted, is that any algorithm supported by the OP and the RP MAY be used.", - value: formik.values.token_endpoint_auth_signing_alg, - touched: formik.touched.token_endpoint_auth_signing_alg, - errors: formik.errors.token_endpoint_auth_signing_alg, - onChange: formik.handleChange, - options: supportedSigningAlgorithms.map(alg => { - return { - value: alg, - text: alg - }; - }) - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_form_controls__WEBPACK_IMPORTED_MODULE_4__.SelectFormControl, { - id: "token_endpoint_auth_method", - title: "Token Endpoint Authorization Method", - tooltip: "Requested Client Authentication method for the Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, private_key_jwt, and none, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].", - value: formik.values.token_endpoint_auth_method, - touched: formik.touched.token_endpoint_auth_method, - errors: formik.errors.token_endpoint_auth_method, - onChange: formik.handleChange, - options: supportedTokenEndpointAuthMethods.map(method => { - return { - value: method, - text: method - }; - }) - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_form_controls__WEBPACK_IMPORTED_MODULE_4__.SelectFormControl, { - id: "subject_type", - title: "Subject Type", - tooltip: "subject_type requested for responses to this Client. The subject_types_supported Discovery parameter contains a list of the supported subject_type values for this server. Valid types include pairwise and public.", - value: formik.values.subject_type, - touched: formik.touched.subject_type, - errors: formik.errors.subject_type, - onChange: formik.handleChange, - options: [{ - value: 'public', - text: 'public' - }, { - value: 'pairwise', - text: 'pairwise' - }] - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_form_controls__WEBPACK_IMPORTED_MODULE_4__.SimpleTextFormControl, { - id: "jwks_uri", - title: "JWK Url", - tooltip: "URL for the Client's JSON Web Key Set [JWK] document. If the Client signs requests to the Server, it contains the signing key(s) the Server uses to validate signatures from the Client. The JWK Set MAY also contain the Client's encryption keys(s), which are used by the Server to encrypt responses to the Client. When both signing and encryption keys are made available, a use (Key Use) parameter value is REQUIRED for all keys in the referenced JWK Set to indicate each key's intended usage. Although some algorithms allow the same key to be used for both signatures and encryption, doing so is NOT RECOMMENDED, as it is less secure. The JWK x5c parameter MAY be used to provide X.509 representations of keys provided. When used, the bare key values MUST still be present and MUST match those in the certificate.", - type: "url", - value: formik.values.jwks_uri ?? '', - touched: formik.touched.jwks_uri, - errors: formik.errors.jwks_uri, - onChange: formik.handleChange - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - container: true - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - item: true, - xs: 6 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_form_controls__WEBPACK_IMPORTED_MODULE_4__.SelectFormControl, { - id: "userinfo_signed_response_alg", - title: "User Info Signed Response Algorithm", - tooltip: "JWS alg algorithm [JWA] REQUIRED for signing UserInfo Responses. If this is specified, the response will be JWT [JWT] serialized, and signed using JWS. The default, if omitted, is for the UserInfo Response to return the Claims as a UTF-8 encoded JSON object using the application/json content-type.", - value: formik.values.userinfo_signed_response_alg, - touched: formik.touched.userinfo_signed_response_alg, - errors: formik.errors.userinfo_signed_response_alg, - onChange: formik.handleChange, - options: supportedSigningAlgorithms.map(alg => { - return { - value: alg, - text: alg - }; - }) - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - item: true, - xs: 6 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_form_controls__WEBPACK_IMPORTED_MODULE_4__.SelectFormControl, { - id: "id_token_signed_response_alg", - title: "Id Token Signed Response Algorithm", - tooltip: "JWS alg algorithm [JWA] REQUIRED for signing the ID Token issued to this Client. The value none MUST NOT be used as the ID Token alg value unless the Client uses only Response Types that return no ID Token from the Authorization Endpoint (such as when only using the Authorization Code Flow). The default, if omitted, is RS256. The public key for validating the signature is provided by retrieving the JWK Set referenced by the jwks_uri element from OpenID Connect Discovery 1.0 [OpenID.Discovery].", - value: formik.values.id_token_signed_response_alg, - touched: formik.touched.id_token_signed_response_alg, - errors: formik.errors.id_token_signed_response_alg, - onChange: formik.handleChange, - options: supportedSigningAlgorithms.map(alg => { - return { - value: alg, - text: alg - }; - }) - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - item: true, - xs: 6 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_form_controls__WEBPACK_IMPORTED_MODULE_4__.SelectFormControl, { - id: "userinfo_encrypted_response_alg", - title: "User Info Encrypted Key Algorithm", - tooltip: "", - value: formik.values.userinfo_encrypted_response_alg, - touched: formik.touched.userinfo_encrypted_response_alg, - errors: formik.errors.userinfo_encrypted_response_alg, - onChange: formik.handleChange, - options: supportedKeyManagementAlgorithms.map(alg => { - return { - value: alg, - text: alg - }; - }) - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - item: true, - xs: 6 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_form_controls__WEBPACK_IMPORTED_MODULE_4__.SelectFormControl, { - id: "id_token_encrypted_response_alg", - title: "Id Token Encrypted Key Algorithm", - tooltip: "", - value: formik.values.id_token_encrypted_response_alg, - touched: formik.touched.id_token_encrypted_response_alg, - errors: formik.errors.id_token_encrypted_response_alg, - onChange: formik.handleChange, - options: supportedKeyManagementAlgorithms.map(alg => { - return { - value: alg, - text: alg - }; - }) - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - item: true, - xs: 6 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_form_controls__WEBPACK_IMPORTED_MODULE_4__.SelectFormControl, { - id: "userinfo_encrypted_response_enc", - title: "User Info Encrypted Content Algorithm", - tooltip: "", - value: formik.values.userinfo_encrypted_response_enc, - touched: formik.touched.userinfo_encrypted_response_enc, - errors: formik.errors.userinfo_encrypted_response_enc, - onChange: formik.handleChange, - options: supportedContentEncryptionAlgorithms.map(alg => { - return { - value: alg, - text: alg - }; - }) - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - item: true, - xs: 6 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_form_controls__WEBPACK_IMPORTED_MODULE_4__.SelectFormControl, { - id: "id_token_encrypted_response_enc", - title: "Id Token Encrypted Content Algorithm", - tooltip: "", - value: formik.values.id_token_encrypted_response_enc, - touched: formik.touched.id_token_encrypted_response_enc, - errors: formik.errors.id_token_encrypted_response_enc, - onChange: formik.handleChange, - options: supportedContentEncryptionAlgorithms.map(alg => { - return { - value: alg, - text: alg - }; - }) - }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_12__["default"], { - variant: "outlined", - className: _common_module_scss__WEBPACK_IMPORTED_MODULE_9__["default"].form_control - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_13__["default"], { - variant: "contained", - disableElevation: true, - color: "primary", - className: _common_module_scss__WEBPACK_IMPORTED_MODULE_9__["default"].button, - type: "submit" - }, "Save"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_14__["default"], { - component: "div", - whiteSpace: "nowrap", - height: "20px" - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_15__["default"], null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_14__["default"], { - component: "div", - whiteSpace: "nowrap", - height: "20px" - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_public_keys_admin__WEBPACK_IMPORTED_MODULE_3__["default"], { - clientId: id, - initialValues: initialValues, - supportedSigningAlgorithms: supportedSigningAlgorithms, - supportedJSONWebKeyTypes: supportedJSONWebKeyTypes - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_15__["default"], null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_14__["default"], { - component: "div", - whiteSpace: "nowrap", - height: "20px" - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_loading_indicator__WEBPACK_IMPORTED_MODULE_8__["default"], { - open: loading - }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - item: true, - container: true - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_logout_options__WEBPACK_IMPORTED_MODULE_5__["default"], { - initialValues: initialValues, - onSavePromise: onLogoutOptionsSavePromise - }))); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SecuritySettingsPanel); - -/***/ }), - -/***/ "./resources/js/oauth2/profile/edit_client/components/tokens_grid.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _mui_x_data_grid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@mui/x-data-grid/dist/index-esm.js"); -/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/moment/moment.js"); -/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@material-ui/core/esm/Tooltip/Tooltip.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@material-ui/core/esm/Button/Button.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@material-ui/core/esm/Paper/Paper.js"); - - - - -const TokensGrid = ({ - getTokens, - pageSize, - tokensListChanged, - noTokensMessage, - onRevoke -}) => { - const [page, setPage] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(1); - const [tokensRows, setTokensRows] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)([]); - const [tokensRowsCount, setTokensRowsCount] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(0); - const [loading, setLoading] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false); - const [sortModel, setSortModel] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({}); - const [filterModel, setFilterModel] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({}); - const tokensColumns = [{ - field: 'created_at', - headerName: 'Issued', - type: 'date', - width: 170, - disableColumnMenu: true, - sortable: false, - filterOperators: (0,_mui_x_data_grid__WEBPACK_IMPORTED_MODULE_2__.getGridDateOperators)().filter(operator => operator.value === 'after' || operator.value === 'before'), - valueFormatter: params => moment__WEBPACK_IMPORTED_MODULE_1___default().unix(params?.value).format("YYYY-MM-DD HH:mm:ss") - }, { - field: 'scope', - headerName: 'Scopes', - width: 450, - disableColumnMenu: true, - sortable: false - }, { - field: 'remaining_lifetime', - headerName: 'Remaining Lifetime', - width: 160, - disableColumnMenu: true, - sortable: false, - renderCell: params => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_3__["default"], { - title: params.formattedValue - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", null, params.formattedValue)) - }, { - field: 'actions', - headerName: ' ', - width: 110, - disableColumnMenu: true, - sortable: false, - renderCell: params => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_4__["default"], { - variant: "contained", - color: "primary", - onClick: () => onRevoke(params.id, params.row.value) - }, "Revoke") - }]; - const reloadTokens = (active, page = 1, perPage) => { - setLoading(true); - getTokens(page, perPage).then(res => { - if (active) { - setTokensRowsCount(res?.total ?? 0); - setTokensRows(res?.data ?? []); - } - setLoading(false); - }); - }; - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - let active = true; - reloadTokens(active, page, pageSize); - return () => { - active = false; - }; - }, [page, sortModel, filterModel, tokensListChanged]); - const handleSortModelChange = model => { - const currentSortModel = model[0]; - if (JSON.stringify(sortModel) !== JSON.stringify(currentSortModel)) { - setSortModel(currentSortModel); - } - }; - const handleFilterChange = model => { - const currentFilterModel = model.items[0]; - if (JSON.stringify(filterModel) !== JSON.stringify(currentFilterModel)) { - setFilterModel(currentFilterModel); - } - }; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, tokensRows.length > 0 ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { - style: { - height: 450, - width: '100%' - } - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_x_data_grid__WEBPACK_IMPORTED_MODULE_2__.DataGrid, { - rows: tokensRows, - columns: tokensColumns, - disableColumnSelector: true, - disableSelectionOnClick: true, - pagination: true, - pageSize: pageSize, - rowsPerPageOptions: [pageSize], - rowCount: tokensRowsCount, - paginationMode: "server", - onPageChange: newPage => setPage(newPage + 1), - sortingMode: "server", - onSortModelChange: handleSortModelChange, - filterMode: "server", - onFilterModelChange: handleFilterChange, - loading: loading - })) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_5__["default"], { - variant: "outlined" - }, noTokensMessage)); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TokensGrid); - -/***/ }), - -/***/ "./resources/js/oauth2/profile/edit_client/edit_client.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "EditClientPage": () => (/* binding */ EditClientPage) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var _material_ui_icons_Assignment__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__("./node_modules/@material-ui/icons/Assignment.js"); -/* harmony import */ var _material_ui_icons_CheckCircle__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__("./node_modules/@material-ui/icons/CheckCircle.js"); -/* harmony import */ var _material_ui_icons_ExpandMore__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__("./node_modules/@material-ui/icons/ExpandMore.js"); -/* harmony import */ var _material_ui_icons_InfoOutlined__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("./node_modules/@material-ui/icons/InfoOutlined.js"); -/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/sweetalert2/dist/sweetalert2.all.js"); -/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _components_navbar_navbar__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./resources/js/components/navbar/navbar.js"); -/* harmony import */ var _components_top_logo_top_logo__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./resources/js/components/top_logo/top_logo.js"); -/* harmony import */ var _components_oauth_panel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./resources/js/oauth2/profile/edit_client/components/oauth_panel.js"); -/* harmony import */ var _components_allowed_scopes_panel__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./resources/js/oauth2/profile/edit_client/components/allowed_scopes_panel.js"); -/* harmony import */ var _components_app_grants_panel__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./resources/js/oauth2/profile/edit_client/components/app_grants_panel.js"); -/* harmony import */ var _components_security_settings_panel__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./resources/js/oauth2/profile/edit_client/components/security_settings_panel.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./node_modules/@material-ui/core/esm/Container/Container.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./node_modules/@material-ui/core/esm/CssBaseline/CssBaseline.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("./node_modules/@material-ui/core/esm/Card/Card.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("./node_modules/@material-ui/core/esm/CardContent/CardContent.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("./node_modules/@material-ui/core/esm/Grid/Grid.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("./node_modules/@material-ui/core/esm/Tooltip/Tooltip.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__("./node_modules/@material-ui/core/esm/Typography/Typography.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__("./node_modules/@material-ui/core/esm/Divider/Divider.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__("./node_modules/@material-ui/core/esm/Accordion/Accordion.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__("./node_modules/@material-ui/core/esm/AccordionSummary/AccordionSummary.js"); -/* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__("./node_modules/@material-ui/core/esm/AccordionDetails/AccordionDetails.js"); -/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./resources/js/oauth2/profile/edit_client/actions.js"); -/* harmony import */ var _edit_client_module_scss__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./resources/js/oauth2/profile/edit_client/edit_client.module.scss"); -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } -function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } - - - - - - - - - - - - - - - -const EditClientPage = ({ - appLogo, - appTypes, - entity, - clientTypes, - fetchAdminUsersURL, - initialValues, - menuConfig, - scopes, - selectedScopes, - supportedContentEncryptionAlgorithms, - supportedKeyManagementAlgorithms, - supportedSigningAlgorithms, - supportedTokenEndpointAuthMethods, - supportedJSONWebKeyTypes -}) => { - const { - id, - client_name, - modified_by, - owner_name, - use_refresh_token - } = entity; - const [selScopes, setSelScopes] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)([]); - const [copyingScopes, setCopyingScopes] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false); - const [expanded, setExpanded] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false); - const [refreshedValues, setRefreshedValues] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(_objectSpread({}, initialValues)); - const [useRefreshToken, setUseRefreshToken] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(use_refresh_token); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - setSelScopes(scopes.filter(scope => selectedScopes.includes(scope.id))); - }, []); - const handleClientSecretRegenerate = () => { - (0,_actions__WEBPACK_IMPORTED_MODULE_8__.regenerateClientSecret)(id).then(({ - response - }) => { - setRefreshedValues(_objectSpread(_objectSpread({}, refreshedValues), {}, { - client_secret: response.client_secret - })); - }).catch(err => { - sweetalert2__WEBPACK_IMPORTED_MODULE_1___default()("Something went wrong!", "Can't regenerate the client secret", "error"); - }); - }; - const handleScopeSelected = (scopeId, scopeName) => { - setSelScopes([...new Set([...selScopes, { - id: scopeId, - name: scopeName - }])]); - (0,_actions__WEBPACK_IMPORTED_MODULE_8__.addScope)(id, scopeId).catch(err => { - sweetalert2__WEBPACK_IMPORTED_MODULE_1___default()("Something went wrong!", "Can't add this scope", "error"); - }); - }; - const handleScopeUnselected = (scopeId, scopeName) => { - setSelScopes([...selScopes.filter(scope => scopeName !== scope.name)]); - (0,_actions__WEBPACK_IMPORTED_MODULE_8__.removeScope)(id, scopeId).catch(err => { - sweetalert2__WEBPACK_IMPORTED_MODULE_1___default()("Something went wrong!", "Can't remove this scope", "error"); - }); - }; - const handleCopyScopes = e => { - e.stopPropagation(); - setCopyingScopes(true); - const scopesToCopy = selScopes.map(scope => scope.name); - scopesToCopy.push('openid'); - if (useRefreshToken) scopesToCopy.push('offline_access'); - navigator.clipboard.writeText(scopesToCopy.join(' ')).then(() => { - setTimeout(() => { - setCopyingScopes(false); - }, 1000); - }); - }; - const handleOauthDataSave = values => (0,_actions__WEBPACK_IMPORTED_MODULE_8__.updateClientData)(id, values, _actions__WEBPACK_IMPORTED_MODULE_8__.ClientEntitySection.OAUTH); - const handleSecuritySettingsSave = values => (0,_actions__WEBPACK_IMPORTED_MODULE_8__.updateClientData)(id, values, _actions__WEBPACK_IMPORTED_MODULE_8__.ClientEntitySection.SECURITY_SETTINGS); - const handleLogoutOptionsSave = values => (0,_actions__WEBPACK_IMPORTED_MODULE_8__.updateClientData)(id, values, _actions__WEBPACK_IMPORTED_MODULE_8__.ClientEntitySection.LOGOUT_OPTIONS); - const handleRevokeAccessToken = (tokenId, value) => (0,_actions__WEBPACK_IMPORTED_MODULE_8__.revokeToken)(id, value, 'access-token'); - const handleRevokeRefreshToken = (tokenId, value) => (0,_actions__WEBPACK_IMPORTED_MODULE_8__.revokeToken)(id, value, 'refresh-token'); - const handleUsePKCEChange = value => { - setRefreshedValues(_objectSpread(_objectSpread({}, refreshedValues), {}, { - can_request_refresh_tokens: value - })); - }; - const handleAccordionChange = panel => (event, isExpanded) => { - setExpanded(isExpanded ? panel : false); - }; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_10__["default"], { - component: "main", - maxWidth: "xs", - className: _edit_client_module_scss__WEBPACK_IMPORTED_MODULE_9__["default"].main_container - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_11__["default"], null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_top_logo_top_logo__WEBPACK_IMPORTED_MODULE_3__["default"], { - appLogo: appLogo - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_navbar_navbar__WEBPACK_IMPORTED_MODULE_2__["default"], { - menuConfig: menuConfig - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_12__["default"], { - className: _edit_client_module_scss__WEBPACK_IMPORTED_MODULE_9__["default"].client_container, - variant: "outlined" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_13__["default"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_14__["default"], { - container: true, - direction: "column", - spacing: 2, - justifyContent: "center" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_14__["default"], { - item: true, - container: true, - direction: "row" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_15__["default"], { - title: "OAuth 2.0 allows users to share specific data with you (for example, contact lists) while keeping their usernames, passwords, and other information private." - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_InfoOutlined__WEBPACK_IMPORTED_MODULE_16__["default"], null)), "\xA0", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_17__["default"], { - variant: "subtitle1" - }, client_name, " - Client # ", id)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_18__["default"], null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_14__["default"], { - item: true, - container: true, - direction: "row" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_14__["default"], { - item: true, - xs: 2 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_17__["default"], { - variant: "subtitle2" - }, "Created By:")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_14__["default"], { - item: true, - xs: 4 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_17__["default"], { - variant: "body2" - }, owner_name))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_14__["default"], { - item: true, - container: true, - direction: "row" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_14__["default"], { - item: true, - xs: 2 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_17__["default"], { - variant: "subtitle2" - }, "Edited By:")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_14__["default"], { - item: true, - xs: 4 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_17__["default"], { - variant: "body2" - }, modified_by))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_14__["default"], { - item: true, - container: true, - alignItems: "center", - justifyContent: "center" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_19__["default"], { - className: _edit_client_module_scss__WEBPACK_IMPORTED_MODULE_9__["default"].accordion, - expanded: expanded === "oauth2-panel", - onChange: handleAccordionChange("oauth2-panel") - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_20__["default"], { - expandIcon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_ExpandMore__WEBPACK_IMPORTED_MODULE_21__["default"], null), - "aria-controls": "oauth2-panel-content", - id: "oauth2-panel-header" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_17__["default"], null, "OAuth 2.0 Client Data")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_22__["default"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_oauth_panel__WEBPACK_IMPORTED_MODULE_4__["default"], { - appTypes: appTypes, - clientTypes: clientTypes, - entity: entity, - fetchAdminUsersURL: fetchAdminUsersURL, - initialValues: refreshedValues, - onClientSecretRegenerate: handleClientSecretRegenerate, - onRefreshTokenChange: value => { - setUseRefreshToken(value); - }, - onSavePromise: handleOauthDataSave - }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_19__["default"], { - className: _edit_client_module_scss__WEBPACK_IMPORTED_MODULE_9__["default"].accordion, - expanded: expanded === "allowed-scopes-panel", - onChange: handleAccordionChange("allowed-scopes-panel") - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_20__["default"], { - expandIcon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_ExpandMore__WEBPACK_IMPORTED_MODULE_21__["default"], null), - "aria-controls": "allowed-scopes-panel-content", - id: "allowed-scopes-panel-header" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_17__["default"], null, "Application Allowed Scopes"), "\xA0", copyingScopes ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_CheckCircle__WEBPACK_IMPORTED_MODULE_23__["default"], null) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_15__["default"], { - title: "Copy Allowed Scopes to Clipboard" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_Assignment__WEBPACK_IMPORTED_MODULE_24__["default"], { - onClick: handleCopyScopes - }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_22__["default"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_allowed_scopes_panel__WEBPACK_IMPORTED_MODULE_5__["default"], { - scopes: scopes, - selectedScopes: selScopes, - onScopeSelected: handleScopeSelected, - onScopeUnselected: handleScopeUnselected - }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_19__["default"], { - className: _edit_client_module_scss__WEBPACK_IMPORTED_MODULE_9__["default"].accordion, - expanded: expanded === "app-grants-panel", - onChange: handleAccordionChange("app-grants-panel") - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_20__["default"], { - expandIcon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_ExpandMore__WEBPACK_IMPORTED_MODULE_21__["default"], null), - "aria-controls": "app-grants-panel-content", - id: "app-grants-panel-header" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_17__["default"], null, "Application Grants")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_22__["default"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_app_grants_panel__WEBPACK_IMPORTED_MODULE_6__["default"], { - getAccessTokens: (page, perPage) => (0,_actions__WEBPACK_IMPORTED_MODULE_8__.getAccessTokens)(id, page, perPage), - onRevokeAccessToken: handleRevokeAccessToken, - getRefreshTokens: (page, perPage) => (0,_actions__WEBPACK_IMPORTED_MODULE_8__.getRefreshTokens)(id, page, perPage), - onRevokeRefreshToken: handleRevokeRefreshToken - }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_19__["default"], { - className: _edit_client_module_scss__WEBPACK_IMPORTED_MODULE_9__["default"].accordion, - expanded: expanded === "security-panel", - onChange: handleAccordionChange("security-panel") - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_20__["default"], { - expandIcon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_icons_ExpandMore__WEBPACK_IMPORTED_MODULE_21__["default"], null), - "aria-controls": "security-panel-content", - id: "security-panel-header" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_17__["default"], null, "Security Settings")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_22__["default"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_security_settings_panel__WEBPACK_IMPORTED_MODULE_7__["default"], { - entity: entity, - clientTypes: clientTypes, - initialValues: refreshedValues, - onMainSettingsSavePromise: handleSecuritySettingsSave, - onLogoutOptionsSavePromise: handleLogoutOptionsSave, - supportedContentEncryptionAlgorithms: supportedContentEncryptionAlgorithms, - supportedKeyManagementAlgorithms: supportedKeyManagementAlgorithms, - supportedSigningAlgorithms: supportedSigningAlgorithms, - supportedTokenEndpointAuthMethods: supportedTokenEndpointAuthMethods, - supportedJSONWebKeyTypes: supportedJSONWebKeyTypes, - onUsePKCEChange: handleUsePKCEChange - })))))))); -}; - -/***/ }), - -/***/ "./resources/js/utils.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "handleErrorResponse": () => (/* binding */ handleErrorResponse) -/* harmony export */ }); -/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/sweetalert2/dist/sweetalert2.all.js"); -/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_0__); - -const handleErrorResponse = err => { - if (err.status === 412) { - // validation error - let msg = ''; - for (let [key, value] of Object.entries(err.response.body.errors)) { - if (isNaN(key)) { - msg += key + ': '; - } - msg += value + ''; - } - return sweetalert2__WEBPACK_IMPORTED_MODULE_0___default()("Validation error", msg, "warning"); - } - return sweetalert2__WEBPACK_IMPORTED_MODULE_0___default()("Something went wrong!", null, "error"); -}; - -/***/ }), - -/***/ "./node_modules/bloodhound-js/index.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -module.exports = __webpack_require__("./node_modules/bloodhound-js/lib/bloodhound.js"); - - -/***/ }), - -/***/ "./node_modules/bloodhound-js/lib/ajax.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var Promise = (__webpack_require__("./node_modules/es6-promise/dist/es6-promise.js").Promise); -var request = __webpack_require__("./node_modules/bloodhound-js/node_modules/superagent/lib/client.js"); - -module.exports = function(o) { - return new Promise(function(resolve, reject) { - request.get(o.url).end(function(err, res) { - if(err) return reject(err); - resolve(res.body); - }); - }); -}; - - -/***/ }), - -/***/ "./node_modules/bloodhound-js/lib/bloodhound.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var _ = __webpack_require__("./node_modules/bloodhound-js/lib/utils.js"); -var Promise = (__webpack_require__("./node_modules/es6-promise/dist/es6-promise.js").Promise); -var Remote = __webpack_require__("./node_modules/bloodhound-js/lib/remote.js"); -var Prefetch = __webpack_require__("./node_modules/bloodhound-js/lib/prefetch.js"); -var tokenizers = __webpack_require__("./node_modules/bloodhound-js/lib/tokenizers.js"); -var oParser = __webpack_require__("./node_modules/bloodhound-js/lib/options_parser.js"); -var SearchIndex = __webpack_require__("./node_modules/bloodhound-js/lib/search_index.js"); -var Transport = __webpack_require__("./node_modules/bloodhound-js/lib/transport.js"); - -function Bloodhound(o) { - o = oParser(o); - - this.sorter = o.sorter; - this.identify = o.identify; - this.sufficient = o.sufficient; - - this.local = o.local; - this.remote = o.remote ? new Remote(o.remote) : null; - this.prefetch = o.prefetch ? new Prefetch(o.prefetch) : null; - - // the backing data structure used for fast pattern matching - this.index = new SearchIndex({ - identify: this.identify, - datumTokenizer: o.datumTokenizer, - queryTokenizer: o.queryTokenizer - }); - - // hold off on intialization if the intialize option was explicitly false - o.initialize !== false && this.initialize(); -} - -Bloodhound.tokenizers = tokenizers; - -_.mixin(Bloodhound.prototype, { - - // ### super secret stuff used for integration with jquery plugin - - __ttAdapter: function ttAdapter() { - var that = this; - - return this.remote ? withAsync : withoutAsync; - - function withAsync(query, sync, async) { - return that.search(query, sync, async); - } - - function withoutAsync(query, sync) { - return that.search(query, sync); - } - }, - - _loadPrefetch: function loadPrefetch() { - var that = this, promise, serialized; - - if (!this.prefetch) { - return new Promise(function(resolve, reject) { - resolve(); - }); - } - - else if (serialized = this.prefetch.fromCache()) { - this.index.bootstrap(serialized); - return new Promise(function(resolve, reject) { - resolve(); - }); - } - - else { - // this.prefetch.fromNetwork(done); - return new Promise(function(resolve, reject) { - - // todo: promise - that.prefetch.fromNetwork(function(err, data) { - if (err) return reject(err); - - try { - that.add(data); - that.prefetch.store(that.index.serialize()); - resolve(); - } catch(e) { - reject(e); - } - }); - }); - } - }, - - _initialize: function() { - var that = this, deferred; - - // in case this is a reinitialization, clear previous data - this.clear(); - - (this.initPromise = this._loadPrefetch()) - .then(addLocalToIndex); // local must be added to index after prefetch - - return this.initPromise; - - function addLocalToIndex() { that.add(that.local); } - }, - - // ### public - - initialize: function(force) { - return !this.initPromise || force ? this._initialize() : this.initPromise; - }, - - // TODO: before initialize what happens? - add: function(data) { - this.index.add(data); - return this; - }, - - get: function(ids) { - ids = _.isArray(ids) ? ids : [].slice.call(arguments); - return this.index.get(ids); - }, - - search: function(query, sync, async) { - var that = this, local; - - local = this.sorter(this.index.search(query)); - - // return a copy to guarantee no changes within this scope - // as this array will get used when processing the remote results - sync(this.remote ? local.slice() : local); - - if (this.remote && local.length < this.sufficient) { - this.remote.get(query, processRemote); - } - - else if (this.remote) { - // #149: prevents outdated rate-limited requests from being sent - this.remote.cancelLastRequest(); - } - - return this; - - function processRemote(remote) { - var nonDuplicates = []; - - // exclude duplicates - _.each(remote, function(r) { - !_.some(local, function(l) { - return that.identify(r) === that.identify(l); - }) && nonDuplicates.push(r); - }); - - async && async(nonDuplicates); - } - }, - - all: function() { - return this.index.all(); - }, - - clear: function() { - this.index.reset(); - return this; - }, - - clearPrefetchCache: function() { - this.prefetch && this.prefetch.clear(); - return this; - }, - - clearRemoteCache: function() { - Transport.resetCache(); - return this; - }, - - // DEPRECATED: will be removed in v1 - ttAdapter: function() { - return this.__ttAdapter(); - } -}); - -module.exports = Bloodhound; - - -/***/ }), - -/***/ "./node_modules/bloodhound-js/lib/lru_cache.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -/* - * typeahead.js - * https://github.com/twitter/typeahead.js - * Copyright 2013-2014 Twitter, Inc. and other contributors; Licensed MIT - */ - -// inspired by https://github.com/jharding/lru-cache - -var _ = __webpack_require__("./node_modules/bloodhound-js/lib/utils.js"); - -function LruCache(maxSize) { - this.maxSize = _.isNumber(maxSize) ? maxSize : 100; - this.reset(); - - // if max size is less than 0, provide a noop cache - if (this.maxSize <= 0) { - this.set = this.get = _.noop; - } -} - -_.mixin(LruCache.prototype, { - set: function set(key, val) { - var tailItem = this.list.tail, node; - - // at capacity - if (this.size >= this.maxSize) { - this.list.remove(tailItem); - delete this.hash[tailItem.key]; - - this.size--; - } - - // writing over existing key - if (node = this.hash[key]) { - node.val = val; - this.list.moveToFront(node); - } - - // new key - else { - node = new Node(key, val); - - this.list.add(node); - this.hash[key] = node; - - this.size++; - } - }, - - get: function get(key) { - var node = this.hash[key]; - - if (node) { - this.list.moveToFront(node); - return node.val; - } - }, - - reset: function reset() { - this.size = 0; - this.hash = {}; - this.list = new List(); - } -}); - -function List() { - this.head = this.tail = null; -} - -_.mixin(List.prototype, { - add: function add(node) { - if (this.head) { - node.next = this.head; - this.head.prev = node; - } - - this.head = node; - this.tail = this.tail || node; - }, - - remove: function remove(node) { - node.prev ? node.prev.next = node.next : this.head = node.next; - node.next ? node.next.prev = node.prev : this.tail = node.prev; - }, - - moveToFront: function(node) { - this.remove(node); - this.add(node); - } -}); - -function Node(key, val) { - this.key = key; - this.val = val; - this.prev = this.next = null; -} - -module.exports = LruCache; - - -/***/ }), - -/***/ "./node_modules/bloodhound-js/lib/options_parser.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var _ = __webpack_require__("./node_modules/bloodhound-js/lib/utils.js"); -var ajax = __webpack_require__("./node_modules/bloodhound-js/lib/ajax.js"); -var VERSION = __webpack_require__("./node_modules/bloodhound-js/lib/version.js"); - -module.exports = function(o) { - var defaults, sorter; - - defaults = { - initialize: true, - identify: _.stringify, - datumTokenizer: null, - queryTokenizer: null, - sufficient: 5, - sorter: null, - local: [], - prefetch: null, - remote: null - }; - - o = _.mixin(defaults, o || {}); - - // throw error if required options are not set - !o.datumTokenizer && _.error('datumTokenizer is required'); - !o.queryTokenizer && _.error('queryTokenizer is required'); - - sorter = o.sorter; - o.sorter = sorter ? function(x) { return x.sort(sorter); } : _.identity; - - o.local = _.isFunction(o.local) ? o.local() : o.local; - o.prefetch = parsePrefetch(o.prefetch); - o.remote = parseRemote(o.remote); - - return o; -}; - -function parsePrefetch(o) { - var defaults; - - if (!o) { return null; } - - defaults = { - url: null, - ttl: 24 * 60 * 60 * 1000, // 1 day - cache: true, - cacheKey: null, - thumbprint: '', - prepare: _.identity, - transform: _.identity, - transport: null - }; - - // support basic (url) and advanced configuration - o = _.isString(o) ? { url: o } : o; - o = _.mixin(defaults, o); - - // throw error if required options are not set - !o.url && _.error('prefetch requires url to be set'); - - // DEPRECATED: filter will be dropped in v1 - o.transform = o.filter || o.transform; - - o.cacheKey = o.cacheKey || o.url; - o.thumbprint = VERSION + o.thumbprint; - o.transport = o.transport ? callbackToDeferred(o.transport) : ajax; - - return o; -} - -function parseRemote(o) { - var defaults; - - if (!o) { return; } - - defaults = { - url: null, - cache: true, // leave undocumented - prepare: null, - replace: null, - wildcard: null, - limiter: null, - rateLimitBy: 'debounce', - rateLimitWait: 300, - transform: _.identity, - transport: null - }; - - // support basic (url) and advanced configuration - o = _.isString(o) ? { url: o } : o; - o = _.mixin(defaults, o); - - // throw error if required options are not set - !o.url && _.error('remote requires url to be set'); - - // DEPRECATED: filter will be dropped in v1 - o.transform = o.filter || o.transform; - - o.prepare = toRemotePrepare(o); - o.limiter = toLimiter(o); - o.transport = o.transport ? callbackToDeferred(o.transport) : ajax; - - delete o.replace; - delete o.wildcard; - delete o.rateLimitBy; - delete o.rateLimitWait; - - return o; -} - -function toRemotePrepare(o) { - var prepare, replace, wildcard; - - prepare = o.prepare; - replace = o.replace; - wildcard = o.wildcard; - - if (prepare) { return prepare; } - - if (replace) { - prepare = prepareByReplace; - } - - else if (o.wildcard) { - prepare = prepareByWildcard; - } - - else { - prepare = idenityPrepare; - } - - return prepare; - - function prepareByReplace(query, settings) { - settings.url = replace(settings.url, query); - return settings; - } - - function prepareByWildcard(query, settings) { - settings.url = settings.url.replace(wildcard, encodeURIComponent(query)); - return settings; - } - - function idenityPrepare(query, settings) { - return settings; - } -} - -function toLimiter(o) { - var limiter, method, wait; - - limiter = o.limiter; - method = o.rateLimitBy; - wait = o.rateLimitWait; - - if (!limiter) { - limiter = /^throttle$/i.test(method) ? throttle(wait) : debounce(wait); - } - - return limiter; - - function debounce(wait) { - return function(fn) { - return _.debounce(fn, wait); - }; - } - - function throttle(wait) { - return function (fn) { - return _.throttle(fn, wait); - }; - } -} - -function callbackToDeferred(fn) { - return function(o) { - // var deferred = $.Deferred(); - - // fn(o, onSuccess, onError); - - // return deferred; - - // function onSuccess(resp) { - // // defer in case fn is synchronous, otherwise done - // // and always handlers will be attached after the resolution - // _.defer(function() { deferred.resolve(resp); }); - // } - - // function onError(err) { - // // defer in case fn is synchronous, otherwise done - // // and always handlers will be attached after the resolution - // _.defer(function() { deferred.reject(err); }); - // } - }; -} - - -/***/ }), - -/***/ "./node_modules/bloodhound-js/lib/persistent_storage.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var storage2 = __webpack_require__("./node_modules/storage2/lib/client.js"); -var _ = __webpack_require__("./node_modules/bloodhound-js/lib/utils.js"); - -var LOCAL_STORAGE; - -try { - LOCAL_STORAGE = storage2.localStorage; - - // while in private browsing mode, some browsers make - // localStorage available, but throw an error when used - LOCAL_STORAGE.setItem('~~~', '!'); - LOCAL_STORAGE.removeItem('~~~'); -} catch (err) { - LOCAL_STORAGE = null; -} - -// constructor -// ----------- - -function PersistentStorage(namespace, override) { - this.prefix = ['__', namespace, '__'].join(''); - this.ttlKey = '__ttl__'; - this.keyMatcher = new RegExp('^' + _.escapeRegExChars(this.prefix)); - - // for testing purpose - this.ls = override || LOCAL_STORAGE; - - // if local storage isn't available, everything becomes a noop - !this.ls && this._noop(); -} - -// instance methods -// ---------------- - -_.mixin(PersistentStorage.prototype, { - // ### private - - _prefix: function(key) { - return this.prefix + key; - }, - - _ttlKey: function(key) { - return this._prefix(key) + this.ttlKey; - }, - - _noop: function() { - this.get = - this.set = - this.remove = - this.clear = - this.isExpired = _.noop; - }, - - _safeSet: function(key, val) { - try { - this.ls.setItem(key, val); - } catch (err) { - // hit the localstorage limit so clean up and better luck next time - if (err.name === 'QuotaExceededError') { - this.clear(); - this._noop(); - } - } - }, - - // ### public - - get: function(key) { - if (this.isExpired(key)) { - this.remove(key); - } - - return decode(this.ls.getItem(this._prefix(key))); - }, - - set: function(key, val, ttl) { - if (_.isNumber(ttl)) { - this._safeSet(this._ttlKey(key), encode(now() + ttl)); - } - - else { - this.ls.removeItem(this._ttlKey(key)); - } - - return this._safeSet(this._prefix(key), encode(val)); - }, - - remove: function(key) { - this.ls.removeItem(this._ttlKey(key)); - this.ls.removeItem(this._prefix(key)); - - return this; - }, - - clear: function() { - var i, keys = gatherMatchingKeys(this.keyMatcher); - - for (i = keys.length; i--;) { - this.remove(keys[i]); - } - - return this; - }, - - isExpired: function(key) { - var ttl = decode(this.ls.getItem(this._ttlKey(key))); - - return _.isNumber(ttl) && now() > ttl ? true : false; - } -}); - - -// helper functions -// ---------------- - -function now() { - return new Date().getTime(); -} - -function encode(val) { - // convert undefined to null to avoid issues with JSON.parse - return JSON.stringify(_.isUndefined(val) ? null : val); -} - -function decode(val) { - return JSON.parse(val); - // return $.parseJSON(val); -} - -function gatherMatchingKeys(keyMatcher) { - var i, key, keys = [], len = LOCAL_STORAGE.length; - - for (i = 0; i < len; i++) { - if ((key = LOCAL_STORAGE.key(i)).match(keyMatcher)) { - keys.push(key.replace(keyMatcher, '')); - } - } - - return keys; -} - -module.exports = PersistentStorage; - - -/***/ }), - -/***/ "./node_modules/bloodhound-js/lib/prefetch.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var PersistentStorage = __webpack_require__("./node_modules/bloodhound-js/lib/persistent_storage.js"); -var _ = __webpack_require__("./node_modules/bloodhound-js/lib/utils.js"); - -var keys = { data: 'data', protocol: 'protocol', thumbprint: 'thumbprint' }; -var location = null; - - -if(typeof window !== 'undefined') { - location = window.location; -} else { - location = { - protocol: 'https:' - }; -} - - -// constructor -// ----------- - -// defaults for options are handled in options_parser -function Prefetch(o) { - this.url = o.url; - this.ttl = o.ttl; - this.cache = o.cache; - this.prepare = o.prepare; - this.transform = o.transform; - this.transport = o.transport; - this.thumbprint = o.thumbprint; - - this.storage = new PersistentStorage(o.cacheKey); -} - -_.mixin(Prefetch.prototype, { - - _settings: function() { - return { url: this.url, type: 'GET', dataType: 'json' }; - }, - - store: function(data) { - if (!this.cache) { return; } - - this.storage.set(keys.data, data, this.ttl); - this.storage.set(keys.protocol, location.protocol, this.ttl); - this.storage.set(keys.thumbprint, this.thumbprint, this.ttl); - }, - - fromCache: function() { - var stored = {}, isExpired; - - if (!this.cache) { return null; } - - stored.data = this.storage.get(keys.data); - stored.protocol = this.storage.get(keys.protocol); - stored.thumbprint = this.storage.get(keys.thumbprint); - - // the stored data is considered expired if the thumbprints - // don't match or if the protocol it was originally stored under - // has changed - isExpired = - stored.thumbprint !== this.thumbprint || - stored.protocol !== location.protocol; - - // TODO: if expired, remove from local storage - - return stored.data && !isExpired ? stored.data : null; - }, - - fromNetwork: function(cb) { - var that = this, settings; - - if (!cb) { return; } - - settings = this.prepare(this._settings()); - - // this.transport(settings).fail(onError).done(onResponse); - this.transport(settings).then(onResponse, onError); - - function onError() { cb(true); } - function onResponse(resp) { cb(null, that.transform(resp)); } - }, - - clear: function() { - this.storage.clear(); - return this; - } -}); - -module.exports = Prefetch; - - -/***/ }), - -/***/ "./node_modules/bloodhound-js/lib/remote.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -/* - * typeahead.js - * https://github.com/twitter/typeahead.js - * Copyright 2013-2014 Twitter, Inc. and other contributors; Licensed MIT - */ - -var _ = __webpack_require__("./node_modules/bloodhound-js/lib/utils.js"); -var Transport = __webpack_require__("./node_modules/bloodhound-js/lib/transport.js"); - -function Remote(o) { - this.url = o.url; - this.prepare = o.prepare; - this.transform = o.transform; - - this.transport = new Transport({ - cache: o.cache, - limiter: o.limiter, - transport: o.transport - }); -} - -_.mixin(Remote.prototype, { - // ### private - - _settings: function settings() { - return { - url: this.url, - type: 'GET', - dataType: 'json' - }; - }, - - get: function get(query, cb) { - var that = this, settings; - - if (!cb) { return; } - - query = query || ''; - settings = this.prepare(query, this._settings()); - - return this.transport.get(settings, onResponse); - - function onResponse(err, resp) { - err ? cb([]) : cb(that.transform(resp)); - } - }, - - cancelLastRequest: function cancelLastRequest() { - this.transport.cancel(); - } -}); - -module.exports = Remote; - -/***/ }), - -/***/ "./node_modules/bloodhound-js/lib/search_index.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var _ = __webpack_require__("./node_modules/bloodhound-js/lib/utils.js"); - -var CHILDREN = 'c'; -var IDS = 'i'; - -function SearchIndex(o) { - o = o || {}; - - if (!o.datumTokenizer || !o.queryTokenizer) { - throw new Error('datumTokenizer and queryTokenizer are both required'); - } - - this.identify = o.identify || _.stringify; - this.datumTokenizer = o.datumTokenizer; - this.queryTokenizer = o.queryTokenizer; - - this.reset(); -} - -_.mixin(SearchIndex.prototype, { - - bootstrap: function(o) { - this.datums = o.datums; - this.trie = o.trie; - }, - - add: function(data) { - var that = this; - - data = _.isArray(data) ? data : [data]; - - _.each(data, function(datum) { - var id, tokens; - - that.datums[id = that.identify(datum)] = datum; - tokens = normalizeTokens(that.datumTokenizer(datum)); - - _.each(tokens, function(token) { - var node, chars, ch; - - node = that.trie; - chars = token.split(''); - - while (ch = chars.shift()) { - node = node[CHILDREN][ch] || (node[CHILDREN][ch] = newNode()); - node[IDS].push(id); - } - }); - }); - }, - - get: function(ids) { - var that = this; - - return _.map(ids, function(id) { return that.datums[id]; }); - }, - - search: function(query) { - var that = this, tokens, matches; - - tokens = normalizeTokens(this.queryTokenizer(query)); - - _.each(tokens, function(token) { - var node, chars, ch, ids; - - // previous tokens didn't share any matches - if (matches && matches.length === 0) { - return false; - } - - node = that.trie; - chars = token.split(''); - - while (node && (ch = chars.shift())) { - node = node[CHILDREN][ch]; - } - - if (node && chars.length === 0) { - ids = node[IDS].slice(0); - matches = matches ? getIntersection(matches, ids) : ids; - } - - // break early if we find out there are no possible matches - else { - matches = []; - return false; - } - }); - - return matches ? - _.map(unique(matches), function(id) { return that.datums[id]; }) : []; - }, - - all: function() { - var values = []; - - for (var key in this.datums) { - values.push(this.datums[key]); - } - - return values; - }, - - reset: function() { - this.datums = {}; - this.trie = newNode(); - }, - - serialize: function serialize() { - return { datums: this.datums, trie: this.trie }; - } -}); - - -function normalizeTokens(tokens) { - // filter out falsy tokens - tokens = _.filter(tokens, function(token) { return !!token; }); - - // normalize tokens - tokens = _.map(tokens, function(token) { return token.toLowerCase(); }); - - return tokens; -} - -function newNode() { - var node = {}; - - node[IDS] = []; - node[CHILDREN] = {}; - - return node; -} - -function unique(array) { - var seen = {}, uniques = []; - - for (var i = 0, len = array.length; i < len; i++) { - if (!seen[array[i]]) { - seen[array[i]] = true; - uniques.push(array[i]); - } - } - - return uniques; -} - -function getIntersection(arrayA, arrayB) { - var ai = 0, bi = 0, intersection = []; - - arrayA = arrayA.sort(); - arrayB = arrayB.sort(); - - var lenArrayA = arrayA.length, lenArrayB = arrayB.length; - - while (ai < lenArrayA && bi < lenArrayB) { - if (arrayA[ai] < arrayB[bi]) { - ai++; - } - - else if (arrayA[ai] > arrayB[bi]) { - bi++; - } - - else { - intersection.push(arrayA[ai]); - ai++; - bi++; - } - } - - return intersection; -} - -module.exports = SearchIndex; - - -/***/ }), - -/***/ "./node_modules/bloodhound-js/lib/tokenizers.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -/* - * typeahead.js - * https://github.com/twitter/typeahead.js - * Copyright 2013-2014 Twitter, Inc. and other contributors; Licensed MIT - */ - -var _ = __webpack_require__("./node_modules/bloodhound-js/lib/utils.js"); - -function whitespace(str) { - str = _.toStr(str); - return str ? str.split(/\s+/) : []; -} - -function nonword(str) { - str = _.toStr(str); - return str ? str.split(/\W+/) : []; -} - -function getObjTokenizer(tokenizer) { - return function setKey(keys) { - keys = _.isArray(keys) ? keys : [].slice.call(arguments, 0); - - return function tokenize(o) { - var tokens = []; - - _.each(keys, function(k) { - tokens = tokens.concat(tokenizer(_.toStr(o[k]))); - }); - - return tokens; - }; - }; -} - -module.exports = { - nonword: nonword, - whitespace: whitespace, - obj: { - nonword: getObjTokenizer(nonword), - whitespace: getObjTokenizer(whitespace) - } -}; - - -/***/ }), - -/***/ "./node_modules/bloodhound-js/lib/transport.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var LruCache = __webpack_require__("./node_modules/bloodhound-js/lib/lru_cache.js"); -var _ = __webpack_require__("./node_modules/bloodhound-js/lib/utils.js"); - -var pendingRequestsCount = 0; -var pendingRequests = {}; -var maxPendingRequests = 6; -var sharedCache = new LruCache(10); - -function Transport(o) { - o = o || {}; - - this.cancelled = false; - this.lastReq = null; - - this._send = o.transport; - this._get = o.limiter ? o.limiter(this._get) : this._get; - - this._cache = o.cache === false ? new LruCache(0) : sharedCache; -} - -Transport.setMaxPendingRequests = function setMaxPendingRequests(num) { - maxPendingRequests = num; -}; - -Transport.resetCache = function resetCache() { - sharedCache.reset(); -}; - -_.mixin(Transport.prototype, { - - _fingerprint: function(o) { - o = o || {}; - return o.url + o.type + JSON.stringify(o.data || {}); - }, - - _get: function(o, cb) { - var that = this, fingerprint, jqXhr; - - fingerprint = this._fingerprint(o); - - // #149: don't make a network request if there has been a cancellation - // or if the url doesn't match the last url Transport#get was invoked with - if (this.cancelled || fingerprint !== this.lastReq) { return; } - - // a request is already in progress, piggyback off of it - if (jqXhr = pendingRequests[fingerprint]) { - // jqXhr.done(done).fail(fail); - jqXhr.then(done, fail); - } - - // under the pending request threshold, so fire off a request - else if (pendingRequestsCount < maxPendingRequests) { - pendingRequestsCount++; - pendingRequests[fingerprint] = - // this._send(o).done(done).fail(fail).always(always); - this._send(o).then(function(resp) { - done(resp); - always(); - }, function() { - fail(); - always(); - }); - } - - // at the pending request threshold, so hang out in the on deck circle - else { - this.onDeckRequestArgs = [].slice.call(arguments, 0); - } - - function done(resp) { - cb(null, resp); - that._cache.set(fingerprint, resp); - } - - function fail() { - cb(true); - } - - function always() { - pendingRequestsCount--; - delete pendingRequests[fingerprint]; - - // ensures request is always made for the last query - if (that.onDeckRequestArgs) { - that._get.apply(that, that.onDeckRequestArgs); - that.onDeckRequestArgs = null; - } - } - }, - - get: function(o, cb) { - var resp, fingerprint; - - cb = cb || _.noop; - o = _.isString(o) ? { url: o } : (o || {}); - - fingerprint = this._fingerprint(o); - - this.cancelled = false; - this.lastReq = fingerprint; - - // in-memory cache hit - if (resp = this._cache.get(fingerprint)) { - cb(null, resp); - } - - // go to network - else { - this._get(o, cb); - } - }, - - cancel: function() { - this.cancelled = true; - } -}); - -module.exports = Transport; - - -/***/ }), - -/***/ "./node_modules/bloodhound-js/lib/utils.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -/* provided dependency */ var $ = __webpack_require__("./node_modules/jquery/dist/jquery.js"); -/* - * typeahead.js - * https://github.com/twitter/typeahead.js - * Copyright 2013-2014 Twitter, Inc. and other contributors; Licensed MIT - */ - -var assign = __webpack_require__("./node_modules/object-assign/index.js"); - -var _ = { - isMsie: function() { - // from https://github.com/ded/bowser/blob/master/bowser.js - return (/(msie|trident)/i).test(navigator.userAgent) ? - navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2] : false; - }, - - isBlankString: function(str) { return !str || /^\s*$/.test(str); }, - - // http://stackoverflow.com/a/6969486 - escapeRegExChars: function(str) { - return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&'); - }, - - isString: function(obj) { return typeof obj === 'string'; }, - - isNumber: function(obj) { return typeof obj === 'number'; }, - - isArray: Array.isArray, - - isFunction: function(obj) { - return typeof obj === 'function'; - }, - - isObject: function(obj) { - return typeof obj === 'object'; - }, - - isUndefined: function(obj) { return typeof obj === 'undefined'; }, - - isElement: function(obj) { return !!(obj && obj.nodeType === 1); }, - - isJQuery: function(obj) { return obj instanceof $; }, - - toStr: function toStr(s) { - return (_.isUndefined(s) || s === null) ? '' : s + ''; - }, - - bind: function(fn, context) { - return fn.bind(context); - }, - - each: function(collection, cb) { - collection.forEach(cb); - }, - - map: function(array, fn) { - return array.map(fn); - }, - - filter: function(array, fn) { - return array.filter(fn); - }, - - every: function(obj, test) { - var result = true; - - if (!obj) { return result; } - - // $.each(obj, function(key, val) { - // if (!(result = test.call(null, val, key, obj))) { - // return false; - // } - // }); - - for(var key in obj) { - if(obj.hasOwnProperty(key)) { - var val = obj[key]; - if (!(result = test.call(null, val, key, obj))) { - return false; - } - } - } - - return !!result; - }, - - some: function(obj, test) { - var result = false; - - if (!obj) { return result; } - - // $.each(obj, function(key, val) { - // if (result = test.call(null, val, key, obj)) { - // return false; - // } - // }); - - for(var key in obj) { - if(obj.hasOwnProperty(key)) { - var val = obj[key]; - if (result = test.call(null, val, key, obj)) { - return false; - } - } - } - - return !!result; - }, - - mixin: __webpack_require__("./node_modules/object-assign/index.js"), - - identity: function(x) { return x; }, - - clone: function(obj) { return assign({}, obj); }, - - getIdGenerator: function() { - var counter = 0; - return function() { return counter++; }; - }, - - templatify: function templatify(obj) { - return _.isFunction(obj) ? obj : template; - - function template() { return String(obj); } - }, - - defer: function(fn) { setTimeout(fn, 0); }, - - debounce: function(func, wait, immediate) { - var timeout, result; - - return function() { - var context = this, args = arguments, later, callNow; - - later = function() { - timeout = null; - if (!immediate) { result = func.apply(context, args); } - }; - - callNow = immediate && !timeout; - - clearTimeout(timeout); - timeout = setTimeout(later, wait); - - if (callNow) { result = func.apply(context, args); } - - return result; - }; - }, - - throttle: function(func, wait) { - var context, args, timeout, result, previous, later; - - previous = 0; - later = function() { - previous = new Date(); - timeout = null; - result = func.apply(context, args); - }; - - return function() { - var now = new Date(), - remaining = wait - (now - previous); - - context = this; - args = arguments; - - if (remaining <= 0) { - clearTimeout(timeout); - timeout = null; - previous = now; - result = func.apply(context, args); - } - - else if (!timeout) { - timeout = setTimeout(later, remaining); - } - - return result; - }; - }, - - stringify: function(val) { - return _.isString(val) ? val : JSON.stringify(val); - }, - - noop: function() {}, - - error: function(msg) { - throw new Error(msg); - } -}; - -module.exports = _; - - -/***/ }), - -/***/ "./node_modules/bloodhound-js/lib/version.js": -/***/ ((module) => { - -/* - * typeahead.js - * https://github.com/twitter/typeahead.js - * Copyright 2013-2014 Twitter, Inc. and other contributors; Licensed MIT - */ - -module.exports = '1.0.0'; - - -/***/ }), - -/***/ "./node_modules/bloodhound-js/node_modules/superagent/lib/agent-base.js": -/***/ ((module) => { - -function Agent() { - this._defaults = []; -} - -["use", "on", "once", "set", "query", "type", "accept", "auth", "withCredentials", "sortQuery", "retry", "ok", "redirects", - "timeout", "buffer", "serialize", "parse", "ca", "key", "pfx", "cert"].forEach(function(fn) { - /** Default setting for all requests from this agent */ - Agent.prototype[fn] = function(/*varargs*/) { - this._defaults.push({fn:fn, arguments:arguments}); - return this; - } -}); - -Agent.prototype._setDefaults = function(req) { - this._defaults.forEach(function(def) { - req[def.fn].apply(req, def.arguments); - }); -}; - -module.exports = Agent; - - -/***/ }), - -/***/ "./node_modules/bloodhound-js/node_modules/superagent/lib/client.js": -/***/ (function(module, exports, __webpack_require__) { - -/** - * Root reference for iframes. - */ - -var root; -if (typeof window !== 'undefined') { // Browser window - root = window; -} else if (typeof self !== 'undefined') { // Web Worker - root = self; -} else { // Other environments - console.warn("Using browser-only version of superagent in non-browser environment"); - root = this; -} - -var Emitter = __webpack_require__("./node_modules/component-emitter/index.js"); -var RequestBase = __webpack_require__("./node_modules/bloodhound-js/node_modules/superagent/lib/request-base.js"); -var isObject = __webpack_require__("./node_modules/bloodhound-js/node_modules/superagent/lib/is-object.js"); -var ResponseBase = __webpack_require__("./node_modules/bloodhound-js/node_modules/superagent/lib/response-base.js"); -var Agent = __webpack_require__("./node_modules/bloodhound-js/node_modules/superagent/lib/agent-base.js"); - -/** - * Noop. - */ - -function noop(){}; - -/** - * Expose `request`. - */ - -var request = exports = module.exports = function(method, url) { - // callback - if ('function' == typeof url) { - return new exports.Request('GET', method).end(url); - } - - // url first - if (1 == arguments.length) { - return new exports.Request('GET', method); - } - - return new exports.Request(method, url); -} - -exports.Request = Request; - -/** - * Determine XHR. - */ - -request.getXHR = function () { - if (root.XMLHttpRequest - && (!root.location || 'file:' != root.location.protocol - || !root.ActiveXObject)) { - return new XMLHttpRequest; - } else { - try { return new ActiveXObject('Microsoft.XMLHTTP'); } catch(e) {} - try { return new ActiveXObject('Msxml2.XMLHTTP.6.0'); } catch(e) {} - try { return new ActiveXObject('Msxml2.XMLHTTP.3.0'); } catch(e) {} - try { return new ActiveXObject('Msxml2.XMLHTTP'); } catch(e) {} - } - throw Error("Browser-only version of superagent could not find XHR"); -}; - -/** - * Removes leading and trailing whitespace, added to support IE. - * - * @param {String} s - * @return {String} - * @api private - */ - -var trim = ''.trim - ? function(s) { return s.trim(); } - : function(s) { return s.replace(/(^\s*|\s*$)/g, ''); }; - -/** - * Serialize the given `obj`. - * - * @param {Object} obj - * @return {String} - * @api private - */ - -function serialize(obj) { - if (!isObject(obj)) return obj; - var pairs = []; - for (var key in obj) { - pushEncodedKeyValuePair(pairs, key, obj[key]); - } - return pairs.join('&'); -} - -/** - * Helps 'serialize' with serializing arrays. - * Mutates the pairs array. - * - * @param {Array} pairs - * @param {String} key - * @param {Mixed} val - */ - -function pushEncodedKeyValuePair(pairs, key, val) { - if (val != null) { - if (Array.isArray(val)) { - val.forEach(function(v) { - pushEncodedKeyValuePair(pairs, key, v); - }); - } else if (isObject(val)) { - for(var subkey in val) { - pushEncodedKeyValuePair(pairs, key + '[' + subkey + ']', val[subkey]); - } - } else { - pairs.push(encodeURIComponent(key) - + '=' + encodeURIComponent(val)); - } - } else if (val === null) { - pairs.push(encodeURIComponent(key)); - } -} - -/** - * Expose serialization method. - */ - -request.serializeObject = serialize; - -/** - * Parse the given x-www-form-urlencoded `str`. - * - * @param {String} str - * @return {Object} - * @api private - */ - -function parseString(str) { - var obj = {}; - var pairs = str.split('&'); - var pair; - var pos; - - for (var i = 0, len = pairs.length; i < len; ++i) { - pair = pairs[i]; - pos = pair.indexOf('='); - if (pos == -1) { - obj[decodeURIComponent(pair)] = ''; - } else { - obj[decodeURIComponent(pair.slice(0, pos))] = - decodeURIComponent(pair.slice(pos + 1)); - } - } - - return obj; -} - -/** - * Expose parser. - */ - -request.parseString = parseString; - -/** - * Default MIME type map. - * - * superagent.types.xml = 'application/xml'; - * - */ - -request.types = { - html: 'text/html', - json: 'application/json', - xml: 'text/xml', - urlencoded: 'application/x-www-form-urlencoded', - 'form': 'application/x-www-form-urlencoded', - 'form-data': 'application/x-www-form-urlencoded' -}; - -/** - * Default serialization map. - * - * superagent.serialize['application/xml'] = function(obj){ - * return 'generated xml here'; - * }; - * - */ - -request.serialize = { - 'application/x-www-form-urlencoded': serialize, - 'application/json': JSON.stringify -}; - -/** - * Default parsers. - * - * superagent.parse['application/xml'] = function(str){ - * return { object parsed from str }; - * }; - * - */ - -request.parse = { - 'application/x-www-form-urlencoded': parseString, - 'application/json': JSON.parse -}; - -/** - * Parse the given header `str` into - * an object containing the mapped fields. - * - * @param {String} str - * @return {Object} - * @api private - */ - -function parseHeader(str) { - var lines = str.split(/\r?\n/); - var fields = {}; - var index; - var line; - var field; - var val; - - for (var i = 0, len = lines.length; i < len; ++i) { - line = lines[i]; - index = line.indexOf(':'); - if (index === -1) { // could be empty line, just skip it - continue; - } - field = line.slice(0, index).toLowerCase(); - val = trim(line.slice(index + 1)); - fields[field] = val; - } - - return fields; -} - -/** - * Check if `mime` is json or has +json structured syntax suffix. - * - * @param {String} mime - * @return {Boolean} - * @api private - */ - -function isJSON(mime) { - // should match /json or +json - // but not /json-seq - return /[\/+]json($|[^-\w])/.test(mime); -} - -/** - * Initialize a new `Response` with the given `xhr`. - * - * - set flags (.ok, .error, etc) - * - parse header - * - * Examples: - * - * Aliasing `superagent` as `request` is nice: - * - * request = superagent; - * - * We can use the promise-like API, or pass callbacks: - * - * request.get('/').end(function(res){}); - * request.get('/', function(res){}); - * - * Sending data can be chained: - * - * request - * .post('/user') - * .send({ name: 'tj' }) - * .end(function(res){}); - * - * Or passed to `.send()`: - * - * request - * .post('/user') - * .send({ name: 'tj' }, function(res){}); - * - * Or passed to `.post()`: - * - * request - * .post('/user', { name: 'tj' }) - * .end(function(res){}); - * - * Or further reduced to a single call for simple cases: - * - * request - * .post('/user', { name: 'tj' }, function(res){}); - * - * @param {XMLHTTPRequest} xhr - * @param {Object} options - * @api private - */ - -function Response(req) { - this.req = req; - this.xhr = this.req.xhr; - // responseText is accessible only if responseType is '' or 'text' and on older browsers - this.text = ((this.req.method !='HEAD' && (this.xhr.responseType === '' || this.xhr.responseType === 'text')) || typeof this.xhr.responseType === 'undefined') - ? this.xhr.responseText - : null; - this.statusText = this.req.xhr.statusText; - var status = this.xhr.status; - // handle IE9 bug: http://stackoverflow.com/questions/10046972/msie-returns-status-code-of-1223-for-ajax-request - if (status === 1223) { - status = 204; - } - this._setStatusProperties(status); - this.header = this.headers = parseHeader(this.xhr.getAllResponseHeaders()); - // getAllResponseHeaders sometimes falsely returns "" for CORS requests, but - // getResponseHeader still works. so we get content-type even if getting - // other headers fails. - this.header['content-type'] = this.xhr.getResponseHeader('content-type'); - this._setHeaderProperties(this.header); - - if (null === this.text && req._responseType) { - this.body = this.xhr.response; - } else { - this.body = this.req.method != 'HEAD' - ? this._parseBody(this.text ? this.text : this.xhr.response) - : null; - } -} - -ResponseBase(Response.prototype); - -/** - * Parse the given body `str`. - * - * Used for auto-parsing of bodies. Parsers - * are defined on the `superagent.parse` object. - * - * @param {String} str - * @return {Mixed} - * @api private - */ - -Response.prototype._parseBody = function(str) { - var parse = request.parse[this.type]; - if (this.req._parser) { - return this.req._parser(this, str); - } - if (!parse && isJSON(this.type)) { - parse = request.parse['application/json']; - } - return parse && str && (str.length || str instanceof Object) - ? parse(str) - : null; -}; - -/** - * Return an `Error` representative of this response. - * - * @return {Error} - * @api public - */ - -Response.prototype.toError = function(){ - var req = this.req; - var method = req.method; - var url = req.url; - - var msg = 'cannot ' + method + ' ' + url + ' (' + this.status + ')'; - var err = new Error(msg); - err.status = this.status; - err.method = method; - err.url = url; - - return err; -}; - -/** - * Expose `Response`. - */ - -request.Response = Response; - -/** - * Initialize a new `Request` with the given `method` and `url`. - * - * @param {String} method - * @param {String} url - * @api public - */ - -function Request(method, url) { - var self = this; - this._query = this._query || []; - this.method = method; - this.url = url; - this.header = {}; // preserves header name case - this._header = {}; // coerces header names to lowercase - this.on('end', function(){ - var err = null; - var res = null; - - try { - res = new Response(self); - } catch(e) { - err = new Error('Parser is unable to parse the response'); - err.parse = true; - err.original = e; - // issue #675: return the raw response if the response parsing fails - if (self.xhr) { - // ie9 doesn't have 'response' property - err.rawResponse = typeof self.xhr.responseType == 'undefined' ? self.xhr.responseText : self.xhr.response; - // issue #876: return the http status code if the response parsing fails - err.status = self.xhr.status ? self.xhr.status : null; - err.statusCode = err.status; // backwards-compat only - } else { - err.rawResponse = null; - err.status = null; - } - - return self.callback(err); - } - - self.emit('response', res); - - var new_err; - try { - if (!self._isResponseOK(res)) { - new_err = new Error(res.statusText || 'Unsuccessful HTTP response'); - } - } catch(custom_err) { - new_err = custom_err; // ok() callback can throw - } - - // #1000 don't catch errors from the callback to avoid double calling it - if (new_err) { - new_err.original = err; - new_err.response = res; - new_err.status = res.status; - self.callback(new_err, res); - } else { - self.callback(null, res); - } - }); -} - -/** - * Mixin `Emitter` and `RequestBase`. - */ - -Emitter(Request.prototype); -RequestBase(Request.prototype); - -/** - * Set Content-Type to `type`, mapping values from `request.types`. - * - * Examples: - * - * superagent.types.xml = 'application/xml'; - * - * request.post('/') - * .type('xml') - * .send(xmlstring) - * .end(callback); - * - * request.post('/') - * .type('application/xml') - * .send(xmlstring) - * .end(callback); - * - * @param {String} type - * @return {Request} for chaining - * @api public - */ - -Request.prototype.type = function(type){ - this.set('Content-Type', request.types[type] || type); - return this; -}; - -/** - * Set Accept to `type`, mapping values from `request.types`. - * - * Examples: - * - * superagent.types.json = 'application/json'; - * - * request.get('/agent') - * .accept('json') - * .end(callback); - * - * request.get('/agent') - * .accept('application/json') - * .end(callback); - * - * @param {String} accept - * @return {Request} for chaining - * @api public - */ - -Request.prototype.accept = function(type){ - this.set('Accept', request.types[type] || type); - return this; -}; - -/** - * Set Authorization field value with `user` and `pass`. - * - * @param {String} user - * @param {String} [pass] optional in case of using 'bearer' as type - * @param {Object} options with 'type' property 'auto', 'basic' or 'bearer' (default 'basic') - * @return {Request} for chaining - * @api public - */ - -Request.prototype.auth = function(user, pass, options){ - if (1 === arguments.length) pass = ''; - if (typeof pass === 'object' && pass !== null) { // pass is optional and can be replaced with options - options = pass; - pass = ''; - } - if (!options) { - options = { - type: 'function' === typeof btoa ? 'basic' : 'auto', - }; - } - - var encoder = function(string) { - if ('function' === typeof btoa) { - return btoa(string); - } - throw new Error('Cannot use basic auth, btoa is not a function'); - }; - - return this._auth(user, pass, options, encoder); -}; - -/** - * Add query-string `val`. - * - * Examples: - * - * request.get('/shoes') - * .query('size=10') - * .query({ color: 'blue' }) - * - * @param {Object|String} val - * @return {Request} for chaining - * @api public - */ - -Request.prototype.query = function(val){ - if ('string' != typeof val) val = serialize(val); - if (val) this._query.push(val); - return this; -}; - -/** - * Queue the given `file` as an attachment to the specified `field`, - * with optional `options` (or filename). - * - * ``` js - * request.post('/upload') - * .attach('content', new Blob(['hey!'], { type: "text/html"})) - * .end(callback); - * ``` - * - * @param {String} field - * @param {Blob|File} file - * @param {String|Object} options - * @return {Request} for chaining - * @api public - */ - -Request.prototype.attach = function(field, file, options){ - if (file) { - if (this._data) { - throw Error("superagent can't mix .send() and .attach()"); - } - - this._getFormData().append(field, file, options || file.name); - } - return this; -}; - -Request.prototype._getFormData = function(){ - if (!this._formData) { - this._formData = new root.FormData(); - } - return this._formData; -}; - -/** - * Invoke the callback with `err` and `res` - * and handle arity check. - * - * @param {Error} err - * @param {Response} res - * @api private - */ - -Request.prototype.callback = function(err, res){ - if (this._shouldRetry(err, res)) { - return this._retry(); - } - - var fn = this._callback; - this.clearTimeout(); - - if (err) { - if (this._maxRetries) err.retries = this._retries - 1; - this.emit('error', err); - } - - fn(err, res); -}; - -/** - * Invoke callback with x-domain error. - * - * @api private - */ - -Request.prototype.crossDomainError = function(){ - var err = new Error('Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.'); - err.crossDomain = true; - - err.status = this.status; - err.method = this.method; - err.url = this.url; - - this.callback(err); -}; - -// This only warns, because the request is still likely to work -Request.prototype.buffer = Request.prototype.ca = Request.prototype.agent = function(){ - console.warn("This is not supported in browser version of superagent"); - return this; -}; - -// This throws, because it can't send/receive data as expected -Request.prototype.pipe = Request.prototype.write = function(){ - throw Error("Streaming is not supported in browser version of superagent"); -}; - -/** - * Check if `obj` is a host object, - * we don't want to serialize these :) - * - * @param {Object} obj - * @return {Boolean} - * @api private - */ -Request.prototype._isHost = function _isHost(obj) { - // Native objects stringify to [object File], [object Blob], [object FormData], etc. - return obj && 'object' === typeof obj && !Array.isArray(obj) && Object.prototype.toString.call(obj) !== '[object Object]'; -} - -/** - * Initiate request, invoking callback `fn(res)` - * with an instanceof `Response`. - * - * @param {Function} fn - * @return {Request} for chaining - * @api public - */ - -Request.prototype.end = function(fn){ - if (this._endCalled) { - console.warn("Warning: .end() was called twice. This is not supported in superagent"); - } - this._endCalled = true; - - // store callback - this._callback = fn || noop; - - // querystring - this._finalizeQueryString(); - - return this._end(); -}; - -Request.prototype._end = function() { - var self = this; - var xhr = (this.xhr = request.getXHR()); - var data = this._formData || this._data; - - this._setTimeouts(); - - // state change - xhr.onreadystatechange = function(){ - var readyState = xhr.readyState; - if (readyState >= 2 && self._responseTimeoutTimer) { - clearTimeout(self._responseTimeoutTimer); - } - if (4 != readyState) { - return; - } - - // In IE9, reads to any property (e.g. status) off of an aborted XHR will - // result in the error "Could not complete the operation due to error c00c023f" - var status; - try { status = xhr.status } catch(e) { status = 0; } - - if (!status) { - if (self.timedout || self._aborted) return; - return self.crossDomainError(); - } - self.emit('end'); - }; - - // progress - var handleProgress = function(direction, e) { - if (e.total > 0) { - e.percent = e.loaded / e.total * 100; - } - e.direction = direction; - self.emit('progress', e); - }; - if (this.hasListeners('progress')) { - try { - xhr.onprogress = handleProgress.bind(null, 'download'); - if (xhr.upload) { - xhr.upload.onprogress = handleProgress.bind(null, 'upload'); - } - } catch(e) { - // Accessing xhr.upload fails in IE from a web worker, so just pretend it doesn't exist. - // Reported here: - // https://connect.microsoft.com/IE/feedback/details/837245/xmlhttprequest-upload-throws-invalid-argument-when-used-from-web-worker-context - } - } - - // initiate request - try { - if (this.username && this.password) { - xhr.open(this.method, this.url, true, this.username, this.password); - } else { - xhr.open(this.method, this.url, true); - } - } catch (err) { - // see #1149 - return this.callback(err); - } - - // CORS - if (this._withCredentials) xhr.withCredentials = true; - - // body - if (!this._formData && 'GET' != this.method && 'HEAD' != this.method && 'string' != typeof data && !this._isHost(data)) { - // serialize stuff - var contentType = this._header['content-type']; - var serialize = this._serializer || request.serialize[contentType ? contentType.split(';')[0] : '']; - if (!serialize && isJSON(contentType)) { - serialize = request.serialize['application/json']; - } - if (serialize) data = serialize(data); - } - - // set header fields - for (var field in this.header) { - if (null == this.header[field]) continue; - - if (this.header.hasOwnProperty(field)) - xhr.setRequestHeader(field, this.header[field]); - } - - if (this._responseType) { - xhr.responseType = this._responseType; - } - - // send stuff - this.emit('request', this); - - // IE11 xhr.send(undefined) sends 'undefined' string as POST payload (instead of nothing) - // We need null here if data is undefined - xhr.send(typeof data !== 'undefined' ? data : null); - return this; -}; - -request.agent = function() { - return new Agent(); -}; - -["GET", "POST", "OPTIONS", "PATCH", "PUT", "DELETE"].forEach(function(method) { - Agent.prototype[method.toLowerCase()] = function(url, fn) { - var req = new request.Request(method, url); - this._setDefaults(req); - if (fn) { - req.end(fn); - } - return req; - }; -}); - -Agent.prototype.del = Agent.prototype['delete']; - -/** - * GET `url` with optional callback `fn(res)`. - * - * @param {String} url - * @param {Mixed|Function} [data] or fn - * @param {Function} [fn] - * @return {Request} - * @api public - */ - -request.get = function(url, data, fn) { - var req = request('GET', url); - if ('function' == typeof data) (fn = data), (data = null); - if (data) req.query(data); - if (fn) req.end(fn); - return req; -}; - -/** - * HEAD `url` with optional callback `fn(res)`. - * - * @param {String} url - * @param {Mixed|Function} [data] or fn - * @param {Function} [fn] - * @return {Request} - * @api public - */ - -request.head = function(url, data, fn) { - var req = request('HEAD', url); - if ('function' == typeof data) (fn = data), (data = null); - if (data) req.query(data); - if (fn) req.end(fn); - return req; -}; - -/** - * OPTIONS query to `url` with optional callback `fn(res)`. - * - * @param {String} url - * @param {Mixed|Function} [data] or fn - * @param {Function} [fn] - * @return {Request} - * @api public - */ - -request.options = function(url, data, fn) { - var req = request('OPTIONS', url); - if ('function' == typeof data) (fn = data), (data = null); - if (data) req.send(data); - if (fn) req.end(fn); - return req; -}; - -/** - * DELETE `url` with optional `data` and callback `fn(res)`. - * - * @param {String} url - * @param {Mixed} [data] - * @param {Function} [fn] - * @return {Request} - * @api public - */ - -function del(url, data, fn) { - var req = request('DELETE', url); - if ('function' == typeof data) (fn = data), (data = null); - if (data) req.send(data); - if (fn) req.end(fn); - return req; -} - -request['del'] = del; -request['delete'] = del; - -/** - * PATCH `url` with optional `data` and callback `fn(res)`. - * - * @param {String} url - * @param {Mixed} [data] - * @param {Function} [fn] - * @return {Request} - * @api public - */ - -request.patch = function(url, data, fn) { - var req = request('PATCH', url); - if ('function' == typeof data) (fn = data), (data = null); - if (data) req.send(data); - if (fn) req.end(fn); - return req; -}; - -/** - * POST `url` with optional `data` and callback `fn(res)`. - * - * @param {String} url - * @param {Mixed} [data] - * @param {Function} [fn] - * @return {Request} - * @api public - */ - -request.post = function(url, data, fn) { - var req = request('POST', url); - if ('function' == typeof data) (fn = data), (data = null); - if (data) req.send(data); - if (fn) req.end(fn); - return req; -}; - -/** - * PUT `url` with optional `data` and callback `fn(res)`. - * - * @param {String} url - * @param {Mixed|Function} [data] or fn - * @param {Function} [fn] - * @return {Request} - * @api public - */ - -request.put = function(url, data, fn) { - var req = request('PUT', url); - if ('function' == typeof data) (fn = data), (data = null); - if (data) req.send(data); - if (fn) req.end(fn); - return req; -}; - - -/***/ }), - -/***/ "./node_modules/bloodhound-js/node_modules/superagent/lib/is-object.js": -/***/ ((module) => { - -"use strict"; - - -/** - * Check if `obj` is an object. - * - * @param {Object} obj - * @return {Boolean} - * @api private - */ - -function isObject(obj) { - return null !== obj && 'object' === typeof obj; -} - -module.exports = isObject; - - -/***/ }), - -/***/ "./node_modules/bloodhound-js/node_modules/superagent/lib/request-base.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -/** - * Module of mixed-in functions shared between node and client code - */ -var isObject = __webpack_require__("./node_modules/bloodhound-js/node_modules/superagent/lib/is-object.js"); - -/** - * Expose `RequestBase`. - */ - -module.exports = RequestBase; - -/** - * Initialize a new `RequestBase`. - * - * @api public - */ - -function RequestBase(obj) { - if (obj) return mixin(obj); -} - -/** - * Mixin the prototype properties. - * - * @param {Object} obj - * @return {Object} - * @api private - */ - -function mixin(obj) { - for (var key in RequestBase.prototype) { - obj[key] = RequestBase.prototype[key]; - } - return obj; -} - -/** - * Clear previous timeout. - * - * @return {Request} for chaining - * @api public - */ - -RequestBase.prototype.clearTimeout = function _clearTimeout(){ - clearTimeout(this._timer); - clearTimeout(this._responseTimeoutTimer); - delete this._timer; - delete this._responseTimeoutTimer; - return this; -}; - -/** - * Override default response body parser - * - * This function will be called to convert incoming data into request.body - * - * @param {Function} - * @api public - */ - -RequestBase.prototype.parse = function parse(fn){ - this._parser = fn; - return this; -}; - -/** - * Set format of binary response body. - * In browser valid formats are 'blob' and 'arraybuffer', - * which return Blob and ArrayBuffer, respectively. - * - * In Node all values result in Buffer. - * - * Examples: - * - * req.get('/') - * .responseType('blob') - * .end(callback); - * - * @param {String} val - * @return {Request} for chaining - * @api public - */ - -RequestBase.prototype.responseType = function(val){ - this._responseType = val; - return this; -}; - -/** - * Override default request body serializer - * - * This function will be called to convert data set via .send or .attach into payload to send - * - * @param {Function} - * @api public - */ - -RequestBase.prototype.serialize = function serialize(fn){ - this._serializer = fn; - return this; -}; - -/** - * Set timeouts. - * - * - response timeout is time between sending request and receiving the first byte of the response. Includes DNS and connection time. - * - deadline is the time from start of the request to receiving response body in full. If the deadline is too short large files may not load at all on slow connections. - * - * Value of 0 or false means no timeout. - * - * @param {Number|Object} ms or {response, deadline} - * @return {Request} for chaining - * @api public - */ - -RequestBase.prototype.timeout = function timeout(options){ - if (!options || 'object' !== typeof options) { - this._timeout = options; - this._responseTimeout = 0; - return this; - } - - for(var option in options) { - switch(option) { - case 'deadline': - this._timeout = options.deadline; - break; - case 'response': - this._responseTimeout = options.response; - break; - default: - console.warn("Unknown timeout option", option); - } - } - return this; -}; - -/** - * Set number of retry attempts on error. - * - * Failed requests will be retried 'count' times if timeout or err.code >= 500. - * - * @param {Number} count - * @param {Function} [fn] - * @return {Request} for chaining - * @api public - */ - -RequestBase.prototype.retry = function retry(count, fn){ - // Default to 1 if no count passed or true - if (arguments.length === 0 || count === true) count = 1; - if (count <= 0) count = 0; - this._maxRetries = count; - this._retries = 0; - this._retryCallback = fn; - return this; -}; - -var ERROR_CODES = [ - 'ECONNRESET', - 'ETIMEDOUT', - 'EADDRINFO', - 'ESOCKETTIMEDOUT' -]; - -/** - * Determine if a request should be retried. - * (Borrowed from segmentio/superagent-retry) - * - * @param {Error} err - * @param {Response} [res] - * @returns {Boolean} - */ -RequestBase.prototype._shouldRetry = function(err, res) { - if (!this._maxRetries || this._retries++ >= this._maxRetries) { - return false; - } - if (this._retryCallback) { - try { - var override = this._retryCallback(err, res); - if (override === true) return true; - if (override === false) return false; - // undefined falls back to defaults - } catch(e) { - console.error(e); - } - } - if (res && res.status && res.status >= 500 && res.status != 501) return true; - if (err) { - if (err.code && ~ERROR_CODES.indexOf(err.code)) return true; - // Superagent timeout - if (err.timeout && err.code == 'ECONNABORTED') return true; - if (err.crossDomain) return true; - } - return false; -}; - -/** - * Retry request - * - * @return {Request} for chaining - * @api private - */ - -RequestBase.prototype._retry = function() { - - this.clearTimeout(); - - // node - if (this.req) { - this.req = null; - this.req = this.request(); - } - - this._aborted = false; - this.timedout = false; - - return this._end(); -}; - -/** - * Promise support - * - * @param {Function} resolve - * @param {Function} [reject] - * @return {Request} - */ - -RequestBase.prototype.then = function then(resolve, reject) { - if (!this._fullfilledPromise) { - var self = this; - if (this._endCalled) { - console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"); - } - this._fullfilledPromise = new Promise(function(innerResolve, innerReject) { - self.end(function(err, res) { - if (err) innerReject(err); - else innerResolve(res); - }); - }); - } - return this._fullfilledPromise.then(resolve, reject); -}; - -RequestBase.prototype['catch'] = function(cb) { - return this.then(undefined, cb); -}; - -/** - * Allow for extension - */ - -RequestBase.prototype.use = function use(fn) { - fn(this); - return this; -}; - -RequestBase.prototype.ok = function(cb) { - if ('function' !== typeof cb) throw Error("Callback required"); - this._okCallback = cb; - return this; -}; - -RequestBase.prototype._isResponseOK = function(res) { - if (!res) { - return false; - } - - if (this._okCallback) { - return this._okCallback(res); - } - - return res.status >= 200 && res.status < 300; -}; - -/** - * Get request header `field`. - * Case-insensitive. - * - * @param {String} field - * @return {String} - * @api public - */ - -RequestBase.prototype.get = function(field){ - return this._header[field.toLowerCase()]; -}; - -/** - * Get case-insensitive header `field` value. - * This is a deprecated internal API. Use `.get(field)` instead. - * - * (getHeader is no longer used internally by the superagent code base) - * - * @param {String} field - * @return {String} - * @api private - * @deprecated - */ - -RequestBase.prototype.getHeader = RequestBase.prototype.get; - -/** - * Set header `field` to `val`, or multiple fields with one object. - * Case-insensitive. - * - * Examples: - * - * req.get('/') - * .set('Accept', 'application/json') - * .set('X-API-Key', 'foobar') - * .end(callback); - * - * req.get('/') - * .set({ Accept: 'application/json', 'X-API-Key': 'foobar' }) - * .end(callback); - * - * @param {String|Object} field - * @param {String} val - * @return {Request} for chaining - * @api public - */ - -RequestBase.prototype.set = function(field, val){ - if (isObject(field)) { - for (var key in field) { - this.set(key, field[key]); - } - return this; - } - this._header[field.toLowerCase()] = val; - this.header[field] = val; - return this; -}; - -/** - * Remove header `field`. - * Case-insensitive. - * - * Example: - * - * req.get('/') - * .unset('User-Agent') - * .end(callback); - * - * @param {String} field - */ -RequestBase.prototype.unset = function(field){ - delete this._header[field.toLowerCase()]; - delete this.header[field]; - return this; -}; - -/** - * Write the field `name` and `val`, or multiple fields with one object - * for "multipart/form-data" request bodies. - * - * ``` js - * request.post('/upload') - * .field('foo', 'bar') - * .end(callback); - * - * request.post('/upload') - * .field({ foo: 'bar', baz: 'qux' }) - * .end(callback); - * ``` - * - * @param {String|Object} name - * @param {String|Blob|File|Buffer|fs.ReadStream} val - * @return {Request} for chaining - * @api public - */ -RequestBase.prototype.field = function(name, val) { - // name should be either a string or an object. - if (null === name || undefined === name) { - throw new Error('.field(name, val) name can not be empty'); - } - - if (this._data) { - console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"); - } - - if (isObject(name)) { - for (var key in name) { - this.field(key, name[key]); - } - return this; - } - - if (Array.isArray(val)) { - for (var i in val) { - this.field(name, val[i]); - } - return this; - } - - // val should be defined now - if (null === val || undefined === val) { - throw new Error('.field(name, val) val can not be empty'); - } - if ('boolean' === typeof val) { - val = '' + val; - } - this._getFormData().append(name, val); - return this; -}; - -/** - * Abort the request, and clear potential timeout. - * - * @return {Request} - * @api public - */ -RequestBase.prototype.abort = function(){ - if (this._aborted) { - return this; - } - this._aborted = true; - this.xhr && this.xhr.abort(); // browser - this.req && this.req.abort(); // node - this.clearTimeout(); - this.emit('abort'); - return this; -}; - -RequestBase.prototype._auth = function(user, pass, options, base64Encoder) { - switch (options.type) { - case 'basic': - this.set('Authorization', 'Basic ' + base64Encoder(user + ':' + pass)); - break; - - case 'auto': - this.username = user; - this.password = pass; - break; - - case 'bearer': // usage would be .auth(accessToken, { type: 'bearer' }) - this.set('Authorization', 'Bearer ' + user); - break; - } - return this; -}; - -/** - * Enable transmission of cookies with x-domain requests. - * - * Note that for this to work the origin must not be - * using "Access-Control-Allow-Origin" with a wildcard, - * and also must set "Access-Control-Allow-Credentials" - * to "true". - * - * @api public - */ - -RequestBase.prototype.withCredentials = function(on) { - // This is browser-only functionality. Node side is no-op. - if (on == undefined) on = true; - this._withCredentials = on; - return this; -}; - -/** - * Set the max redirects to `n`. Does noting in browser XHR implementation. - * - * @param {Number} n - * @return {Request} for chaining - * @api public - */ - -RequestBase.prototype.redirects = function(n){ - this._maxRedirects = n; - return this; -}; - -/** - * Maximum size of buffered response body, in bytes. Counts uncompressed size. - * Default 200MB. - * - * @param {Number} n - * @return {Request} for chaining - */ -RequestBase.prototype.maxResponseSize = function(n){ - if ('number' !== typeof n) { - throw TypeError("Invalid argument"); - } - this._maxResponseSize = n; - return this; -}; - -/** - * Convert to a plain javascript object (not JSON string) of scalar properties. - * Note as this method is designed to return a useful non-this value, - * it cannot be chained. - * - * @return {Object} describing method, url, and data of this request - * @api public - */ - -RequestBase.prototype.toJSON = function() { - return { - method: this.method, - url: this.url, - data: this._data, - headers: this._header, - }; -}; - -/** - * Send `data` as the request body, defaulting the `.type()` to "json" when - * an object is given. - * - * Examples: - * - * // manual json - * request.post('/user') - * .type('json') - * .send('{"name":"tj"}') - * .end(callback) - * - * // auto json - * request.post('/user') - * .send({ name: 'tj' }) - * .end(callback) - * - * // manual x-www-form-urlencoded - * request.post('/user') - * .type('form') - * .send('name=tj') - * .end(callback) - * - * // auto x-www-form-urlencoded - * request.post('/user') - * .type('form') - * .send({ name: 'tj' }) - * .end(callback) - * - * // defaults to x-www-form-urlencoded - * request.post('/user') - * .send('name=tobi') - * .send('species=ferret') - * .end(callback) - * - * @param {String|Object} data - * @return {Request} for chaining - * @api public - */ - -RequestBase.prototype.send = function(data){ - var isObj = isObject(data); - var type = this._header['content-type']; - - if (this._formData) { - console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"); - } - - if (isObj && !this._data) { - if (Array.isArray(data)) { - this._data = []; - } else if (!this._isHost(data)) { - this._data = {}; - } - } else if (data && this._data && this._isHost(this._data)) { - throw Error("Can't merge these send calls"); - } - - // merge - if (isObj && isObject(this._data)) { - for (var key in data) { - this._data[key] = data[key]; - } - } else if ('string' == typeof data) { - // default to x-www-form-urlencoded - if (!type) this.type('form'); - type = this._header['content-type']; - if ('application/x-www-form-urlencoded' == type) { - this._data = this._data - ? this._data + '&' + data - : data; - } else { - this._data = (this._data || '') + data; - } - } else { - this._data = data; - } - - if (!isObj || this._isHost(data)) { - return this; - } - - // default to json - if (!type) this.type('json'); - return this; -}; - -/** - * Sort `querystring` by the sort function - * - * - * Examples: - * - * // default order - * request.get('/user') - * .query('name=Nick') - * .query('search=Manny') - * .sortQuery() - * .end(callback) - * - * // customized sort function - * request.get('/user') - * .query('name=Nick') - * .query('search=Manny') - * .sortQuery(function(a, b){ - * return a.length - b.length; - * }) - * .end(callback) - * - * - * @param {Function} sort - * @return {Request} for chaining - * @api public - */ - -RequestBase.prototype.sortQuery = function(sort) { - // _sort default to true but otherwise can be a function or boolean - this._sort = typeof sort === 'undefined' ? true : sort; - return this; -}; - -/** - * Compose querystring to append to req.url - * - * @api private - */ -RequestBase.prototype._finalizeQueryString = function(){ - var query = this._query.join('&'); - if (query) { - this.url += (this.url.indexOf('?') >= 0 ? '&' : '?') + query; - } - this._query.length = 0; // Makes the call idempotent - - if (this._sort) { - var index = this.url.indexOf('?'); - if (index >= 0) { - var queryArr = this.url.substring(index + 1).split('&'); - if ('function' === typeof this._sort) { - queryArr.sort(this._sort); - } else { - queryArr.sort(); - } - this.url = this.url.substring(0, index) + '?' + queryArr.join('&'); - } - } -}; - -// For backwards compat only -RequestBase.prototype._appendQueryString = function() {console.trace("Unsupported");} - -/** - * Invoke callback with timeout error. - * - * @api private - */ - -RequestBase.prototype._timeoutError = function(reason, timeout, errno){ - if (this._aborted) { - return; - } - var err = new Error(reason + timeout + 'ms exceeded'); - err.timeout = timeout; - err.code = 'ECONNABORTED'; - err.errno = errno; - this.timedout = true; - this.abort(); - this.callback(err); -}; - -RequestBase.prototype._setTimeouts = function() { - var self = this; - - // deadline - if (this._timeout && !this._timer) { - this._timer = setTimeout(function(){ - self._timeoutError('Timeout of ', self._timeout, 'ETIME'); - }, this._timeout); - } - // response timeout - if (this._responseTimeout && !this._responseTimeoutTimer) { - this._responseTimeoutTimer = setTimeout(function(){ - self._timeoutError('Response timeout of ', self._responseTimeout, 'ETIMEDOUT'); - }, this._responseTimeout); - } -}; - - -/***/ }), - -/***/ "./node_modules/bloodhound-js/node_modules/superagent/lib/response-base.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -/** - * Module dependencies. - */ - -var utils = __webpack_require__("./node_modules/bloodhound-js/node_modules/superagent/lib/utils.js"); - -/** - * Expose `ResponseBase`. - */ - -module.exports = ResponseBase; - -/** - * Initialize a new `ResponseBase`. - * - * @api public - */ - -function ResponseBase(obj) { - if (obj) return mixin(obj); -} - -/** - * Mixin the prototype properties. - * - * @param {Object} obj - * @return {Object} - * @api private - */ - -function mixin(obj) { - for (var key in ResponseBase.prototype) { - obj[key] = ResponseBase.prototype[key]; - } - return obj; -} - -/** - * Get case-insensitive `field` value. - * - * @param {String} field - * @return {String} - * @api public - */ - -ResponseBase.prototype.get = function(field) { - return this.header[field.toLowerCase()]; -}; - -/** - * Set header related properties: - * - * - `.type` the content type without params - * - * A response of "Content-Type: text/plain; charset=utf-8" - * will provide you with a `.type` of "text/plain". - * - * @param {Object} header - * @api private - */ - -ResponseBase.prototype._setHeaderProperties = function(header){ - // TODO: moar! - // TODO: make this a util - - // content-type - var ct = header['content-type'] || ''; - this.type = utils.type(ct); - - // params - var params = utils.params(ct); - for (var key in params) this[key] = params[key]; - - this.links = {}; - - // links - try { - if (header.link) { - this.links = utils.parseLinks(header.link); - } - } catch (err) { - // ignore - } -}; - -/** - * Set flags such as `.ok` based on `status`. - * - * For example a 2xx response will give you a `.ok` of __true__ - * whereas 5xx will be __false__ and `.error` will be __true__. The - * `.clientError` and `.serverError` are also available to be more - * specific, and `.statusType` is the class of error ranging from 1..5 - * sometimes useful for mapping respond colors etc. - * - * "sugar" properties are also defined for common cases. Currently providing: - * - * - .noContent - * - .badRequest - * - .unauthorized - * - .notAcceptable - * - .notFound - * - * @param {Number} status - * @api private - */ - -ResponseBase.prototype._setStatusProperties = function(status){ - var type = status / 100 | 0; - - // status / class - this.status = this.statusCode = status; - this.statusType = type; - - // basics - this.info = 1 == type; - this.ok = 2 == type; - this.redirect = 3 == type; - this.clientError = 4 == type; - this.serverError = 5 == type; - this.error = (4 == type || 5 == type) - ? this.toError() - : false; - - // sugar - this.created = 201 == status; - this.accepted = 202 == status; - this.noContent = 204 == status; - this.badRequest = 400 == status; - this.unauthorized = 401 == status; - this.notAcceptable = 406 == status; - this.forbidden = 403 == status; - this.notFound = 404 == status; - this.unprocessableEntity = 422 == status; -}; - - -/***/ }), - -/***/ "./node_modules/bloodhound-js/node_modules/superagent/lib/utils.js": -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - - -/** - * Return the mime type for the given `str`. - * - * @param {String} str - * @return {String} - * @api private - */ - -exports.type = function(str){ - return str.split(/ *; */).shift(); -}; - -/** - * Return header field parameters. - * - * @param {String} str - * @return {Object} - * @api private - */ - -exports.params = function(str){ - return str.split(/ *; */).reduce(function(obj, str){ - var parts = str.split(/ *= */); - var key = parts.shift(); - var val = parts.shift(); - - if (key && val) obj[key] = val; - return obj; - }, {}); -}; - -/** - * Parse Link header fields. - * - * @param {String} str - * @return {Object} - * @api private - */ - -exports.parseLinks = function(str){ - return str.split(/ *, */).reduce(function(obj, str){ - var parts = str.split(/ *; */); - var url = parts[0].slice(1, -1); - var rel = parts[1].split(/ *= */)[1].slice(1, -1); - obj[rel] = url; - return obj; - }, {}); -}; - -/** - * Strip content related fields from `header`. - * - * @param {Object} header - * @return {Object} header - * @api private - */ - -exports.cleanHeader = function(header, changesOrigin){ - delete header['content-type']; - delete header['content-length']; - delete header['transfer-encoding']; - delete header['host']; - // secuirty - if (changesOrigin) { - delete header['authorization']; - delete header['cookie']; - } - return header; -}; - - -/***/ }), - -/***/ "./node_modules/call-bind/callBound.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var GetIntrinsic = __webpack_require__("./node_modules/get-intrinsic/index.js"); - -var callBind = __webpack_require__("./node_modules/call-bind/index.js"); - -var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf')); - -module.exports = function callBoundIntrinsic(name, allowMissing) { - var intrinsic = GetIntrinsic(name, !!allowMissing); - if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) { - return callBind(intrinsic); - } - return intrinsic; -}; - - -/***/ }), - -/***/ "./node_modules/call-bind/index.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var bind = __webpack_require__("./node_modules/function-bind/index.js"); -var GetIntrinsic = __webpack_require__("./node_modules/get-intrinsic/index.js"); - -var $apply = GetIntrinsic('%Function.prototype.apply%'); -var $call = GetIntrinsic('%Function.prototype.call%'); -var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply); - -var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true); -var $defineProperty = GetIntrinsic('%Object.defineProperty%', true); -var $max = GetIntrinsic('%Math.max%'); - -if ($defineProperty) { - try { - $defineProperty({}, 'a', { value: 1 }); - } catch (e) { - // IE 8 has a broken defineProperty - $defineProperty = null; - } -} - -module.exports = function callBind(originalFunction) { - var func = $reflectApply(bind, $call, arguments); - if ($gOPD && $defineProperty) { - var desc = $gOPD(func, 'length'); - if (desc.configurable) { - // original length, plus the receiver, minus any additional arguments (after the receiver) - $defineProperty( - func, - 'length', - { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) } - ); - } - } - return func; -}; - -var applyBind = function applyBind() { - return $reflectApply(bind, $apply, arguments); -}; - -if ($defineProperty) { - $defineProperty(module.exports, 'apply', { value: applyBind }); -} else { - module.exports.apply = applyBind; -} - - -/***/ }), - -/***/ "./node_modules/clsx/dist/clsx.m.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "clsx": () => (/* binding */ clsx), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t { - - -/** - * Expose `Emitter`. - */ - -if (true) { - module.exports = Emitter; -} - -/** - * Initialize a new `Emitter`. - * - * @api public - */ - -function Emitter(obj) { - if (obj) return mixin(obj); -}; - -/** - * Mixin the emitter properties. - * - * @param {Object} obj - * @return {Object} - * @api private - */ - -function mixin(obj) { - for (var key in Emitter.prototype) { - obj[key] = Emitter.prototype[key]; - } - return obj; -} - -/** - * Listen on the given `event` with `fn`. - * - * @param {String} event - * @param {Function} fn - * @return {Emitter} - * @api public - */ - -Emitter.prototype.on = -Emitter.prototype.addEventListener = function(event, fn){ - this._callbacks = this._callbacks || {}; - (this._callbacks['$' + event] = this._callbacks['$' + event] || []) - .push(fn); - return this; -}; - -/** - * Adds an `event` listener that will be invoked a single - * time then automatically removed. - * - * @param {String} event - * @param {Function} fn - * @return {Emitter} - * @api public - */ - -Emitter.prototype.once = function(event, fn){ - function on() { - this.off(event, on); - fn.apply(this, arguments); - } - - on.fn = fn; - this.on(event, on); - return this; -}; - -/** - * Remove the given callback for `event` or all - * registered callbacks. - * - * @param {String} event - * @param {Function} fn - * @return {Emitter} - * @api public - */ - -Emitter.prototype.off = -Emitter.prototype.removeListener = -Emitter.prototype.removeAllListeners = -Emitter.prototype.removeEventListener = function(event, fn){ - this._callbacks = this._callbacks || {}; - - // all - if (0 == arguments.length) { - this._callbacks = {}; - return this; - } - - // specific event - var callbacks = this._callbacks['$' + event]; - if (!callbacks) return this; - - // remove all handlers - if (1 == arguments.length) { - delete this._callbacks['$' + event]; - return this; - } - - // remove specific handler - var cb; - for (var i = 0; i < callbacks.length; i++) { - cb = callbacks[i]; - if (cb === fn || cb.fn === fn) { - callbacks.splice(i, 1); - break; - } - } - - // Remove event specific arrays for event types that no - // one is subscribed for to avoid memory leak. - if (callbacks.length === 0) { - delete this._callbacks['$' + event]; - } - - return this; -}; - -/** - * Emit `event` with the given args. - * - * @param {String} event - * @param {Mixed} ... - * @return {Emitter} - */ - -Emitter.prototype.emit = function(event){ - this._callbacks = this._callbacks || {}; - - var args = new Array(arguments.length - 1) - , callbacks = this._callbacks['$' + event]; - - for (var i = 1; i < arguments.length; i++) { - args[i - 1] = arguments[i]; - } - - if (callbacks) { - callbacks = callbacks.slice(0); - for (var i = 0, len = callbacks.length; i < len; ++i) { - callbacks[i].apply(this, args); - } - } - - return this; -}; - -/** - * Return array of callbacks for `event`. - * - * @param {String} event - * @return {Array} - * @api public - */ - -Emitter.prototype.listeners = function(event){ - this._callbacks = this._callbacks || {}; - return this._callbacks['$' + event] || []; -}; - -/** - * Check if this emitter has `event` handlers. - * - * @param {String} event - * @return {Boolean} - * @api public - */ - -Emitter.prototype.hasListeners = function(event){ - return !! this.listeners(event).length; -}; - - -/***/ }), - -/***/ "./node_modules/css-vendor/dist/css-vendor.esm.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "prefix": () => (/* binding */ prefix), -/* harmony export */ "supportedKeyframes": () => (/* binding */ supportedKeyframes), -/* harmony export */ "supportedProperty": () => (/* binding */ supportedProperty), -/* harmony export */ "supportedValue": () => (/* binding */ supportedValue) -/* harmony export */ }); -/* harmony import */ var is_in_browser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/is-in-browser/dist/module.js"); -/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"); - - - -// Export javascript style and css style vendor prefixes. -var js = ''; -var css = ''; -var vendor = ''; -var browser = ''; -var isTouch = is_in_browser__WEBPACK_IMPORTED_MODULE_0__["default"] && 'ontouchstart' in document.documentElement; // We should not do anything if required serverside. - -if (is_in_browser__WEBPACK_IMPORTED_MODULE_0__["default"]) { - // Order matters. We need to check Webkit the last one because - // other vendors use to add Webkit prefixes to some properties - var jsCssMap = { - Moz: '-moz-', - ms: '-ms-', - O: '-o-', - Webkit: '-webkit-' - }; - - var _document$createEleme = document.createElement('p'), - style = _document$createEleme.style; - - var testProp = 'Transform'; - - for (var key in jsCssMap) { - if (key + testProp in style) { - js = key; - css = jsCssMap[key]; - break; - } - } // Correctly detect the Edge browser. - - - if (js === 'Webkit' && 'msHyphens' in style) { - js = 'ms'; - css = jsCssMap.ms; - browser = 'edge'; - } // Correctly detect the Safari browser. - - - if (js === 'Webkit' && '-apple-trailing-word' in style) { - vendor = 'apple'; - } -} -/** - * Vendor prefix string for the current browser. - * - * @type {{js: String, css: String, vendor: String, browser: String}} - * @api public - */ - - -var prefix = { - js: js, - css: css, - vendor: vendor, - browser: browser, - isTouch: isTouch -}; - -/** - * Test if a keyframe at-rule should be prefixed or not - * - * @param {String} vendor prefix string for the current browser. - * @return {String} - * @api public - */ - -function supportedKeyframes(key) { - // Keyframes is already prefixed. e.g. key = '@-webkit-keyframes a' - if (key[1] === '-') return key; // No need to prefix IE/Edge. Older browsers will ignore unsupported rules. - // https://caniuse.com/#search=keyframes - - if (prefix.js === 'ms') return key; - return "@" + prefix.css + "keyframes" + key.substr(10); -} - -// https://caniuse.com/#search=appearance - -var appearence = { - noPrefill: ['appearance'], - supportedProperty: function supportedProperty(prop) { - if (prop !== 'appearance') return false; - if (prefix.js === 'ms') return "-webkit-" + prop; - return prefix.css + prop; - } -}; - -// https://caniuse.com/#search=color-adjust - -var colorAdjust = { - noPrefill: ['color-adjust'], - supportedProperty: function supportedProperty(prop) { - if (prop !== 'color-adjust') return false; - if (prefix.js === 'Webkit') return prefix.css + "print-" + prop; - return prop; - } -}; - -var regExp = /[-\s]+(.)?/g; -/** - * Replaces the letter with the capital letter - * - * @param {String} match - * @param {String} c - * @return {String} - * @api private - */ - -function toUpper(match, c) { - return c ? c.toUpperCase() : ''; -} -/** - * Convert dash separated strings to camel-cased. - * - * @param {String} str - * @return {String} - * @api private - */ - - -function camelize(str) { - return str.replace(regExp, toUpper); -} - -/** - * Convert dash separated strings to pascal cased. - * - * @param {String} str - * @return {String} - * @api private - */ - -function pascalize(str) { - return camelize("-" + str); -} - -// but we can use a longhand property instead. -// https://caniuse.com/#search=mask - -var mask = { - noPrefill: ['mask'], - supportedProperty: function supportedProperty(prop, style) { - if (!/^mask/.test(prop)) return false; - - if (prefix.js === 'Webkit') { - var longhand = 'mask-image'; - - if (camelize(longhand) in style) { - return prop; - } - - if (prefix.js + pascalize(longhand) in style) { - return prefix.css + prop; - } - } - - return prop; - } -}; - -// https://caniuse.com/#search=text-orientation - -var textOrientation = { - noPrefill: ['text-orientation'], - supportedProperty: function supportedProperty(prop) { - if (prop !== 'text-orientation') return false; - - if (prefix.vendor === 'apple' && !prefix.isTouch) { - return prefix.css + prop; - } - - return prop; - } -}; - -// https://caniuse.com/#search=transform - -var transform = { - noPrefill: ['transform'], - supportedProperty: function supportedProperty(prop, style, options) { - if (prop !== 'transform') return false; - - if (options.transform) { - return prop; - } - - return prefix.css + prop; - } -}; - -// https://caniuse.com/#search=transition - -var transition = { - noPrefill: ['transition'], - supportedProperty: function supportedProperty(prop, style, options) { - if (prop !== 'transition') return false; - - if (options.transition) { - return prop; - } - - return prefix.css + prop; - } -}; - -// https://caniuse.com/#search=writing-mode - -var writingMode = { - noPrefill: ['writing-mode'], - supportedProperty: function supportedProperty(prop) { - if (prop !== 'writing-mode') return false; - - if (prefix.js === 'Webkit' || prefix.js === 'ms' && prefix.browser !== 'edge') { - return prefix.css + prop; - } - - return prop; - } -}; - -// https://caniuse.com/#search=user-select - -var userSelect = { - noPrefill: ['user-select'], - supportedProperty: function supportedProperty(prop) { - if (prop !== 'user-select') return false; - - if (prefix.js === 'Moz' || prefix.js === 'ms' || prefix.vendor === 'apple') { - return prefix.css + prop; - } - - return prop; - } -}; - -// https://caniuse.com/#search=multicolumn -// https://github.com/postcss/autoprefixer/issues/491 -// https://github.com/postcss/autoprefixer/issues/177 - -var breakPropsOld = { - supportedProperty: function supportedProperty(prop, style) { - if (!/^break-/.test(prop)) return false; - - if (prefix.js === 'Webkit') { - var jsProp = "WebkitColumn" + pascalize(prop); - return jsProp in style ? prefix.css + "column-" + prop : false; - } - - if (prefix.js === 'Moz') { - var _jsProp = "page" + pascalize(prop); - - return _jsProp in style ? "page-" + prop : false; - } - - return false; - } -}; - -// See https://github.com/postcss/autoprefixer/issues/324. - -var inlineLogicalOld = { - supportedProperty: function supportedProperty(prop, style) { - if (!/^(border|margin|padding)-inline/.test(prop)) return false; - if (prefix.js === 'Moz') return prop; - var newProp = prop.replace('-inline', ''); - return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false; - } -}; - -// Camelization is required because we can't test using. -// CSS syntax for e.g. in FF. - -var unprefixed = { - supportedProperty: function supportedProperty(prop, style) { - return camelize(prop) in style ? prop : false; - } -}; - -var prefixed = { - supportedProperty: function supportedProperty(prop, style) { - var pascalized = pascalize(prop); // Return custom CSS variable without prefixing. - - if (prop[0] === '-') return prop; // Return already prefixed value without prefixing. - - if (prop[0] === '-' && prop[1] === '-') return prop; - if (prefix.js + pascalized in style) return prefix.css + prop; // Try webkit fallback. - - if (prefix.js !== 'Webkit' && "Webkit" + pascalized in style) return "-webkit-" + prop; - return false; - } -}; - -// https://caniuse.com/#search=scroll-snap - -var scrollSnap = { - supportedProperty: function supportedProperty(prop) { - if (prop.substring(0, 11) !== 'scroll-snap') return false; - - if (prefix.js === 'ms') { - return "" + prefix.css + prop; - } - - return prop; - } -}; - -// https://caniuse.com/#search=overscroll-behavior - -var overscrollBehavior = { - supportedProperty: function supportedProperty(prop) { - if (prop !== 'overscroll-behavior') return false; - - if (prefix.js === 'ms') { - return prefix.css + "scroll-chaining"; - } - - return prop; - } -}; - -var propMap = { - 'flex-grow': 'flex-positive', - 'flex-shrink': 'flex-negative', - 'flex-basis': 'flex-preferred-size', - 'justify-content': 'flex-pack', - order: 'flex-order', - 'align-items': 'flex-align', - 'align-content': 'flex-line-pack' // 'align-self' is handled by 'align-self' plugin. - -}; // Support old flex spec from 2012. - -var flex2012 = { - supportedProperty: function supportedProperty(prop, style) { - var newProp = propMap[prop]; - if (!newProp) return false; - return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false; - } -}; - -var propMap$1 = { - flex: 'box-flex', - 'flex-grow': 'box-flex', - 'flex-direction': ['box-orient', 'box-direction'], - order: 'box-ordinal-group', - 'align-items': 'box-align', - 'flex-flow': ['box-orient', 'box-direction'], - 'justify-content': 'box-pack' -}; -var propKeys = Object.keys(propMap$1); - -var prefixCss = function prefixCss(p) { - return prefix.css + p; -}; // Support old flex spec from 2009. - - -var flex2009 = { - supportedProperty: function supportedProperty(prop, style, _ref) { - var multiple = _ref.multiple; - - if (propKeys.indexOf(prop) > -1) { - var newProp = propMap$1[prop]; - - if (!Array.isArray(newProp)) { - return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false; - } - - if (!multiple) return false; - - for (var i = 0; i < newProp.length; i++) { - if (!(prefix.js + pascalize(newProp[0]) in style)) { - return false; - } - } - - return newProp.map(prefixCss); - } - - return false; - } -}; - -// plugins = [ -// ...plugins, -// breakPropsOld, -// inlineLogicalOld, -// unprefixed, -// prefixed, -// scrollSnap, -// flex2012, -// flex2009 -// ] -// Plugins without 'noPrefill' value, going last. -// 'flex-*' plugins should be at the bottom. -// 'flex2009' going after 'flex2012'. -// 'prefixed' going after 'unprefixed' - -var plugins = [appearence, colorAdjust, mask, textOrientation, transform, transition, writingMode, userSelect, breakPropsOld, inlineLogicalOld, unprefixed, prefixed, scrollSnap, overscrollBehavior, flex2012, flex2009]; -var propertyDetectors = plugins.filter(function (p) { - return p.supportedProperty; -}).map(function (p) { - return p.supportedProperty; -}); -var noPrefill = plugins.filter(function (p) { - return p.noPrefill; -}).reduce(function (a, p) { - a.push.apply(a, (0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(p.noPrefill)); - return a; -}, []); - -var el; -var cache = {}; - -if (is_in_browser__WEBPACK_IMPORTED_MODULE_0__["default"]) { - el = document.createElement('p'); // We test every property on vendor prefix requirement. - // Once tested, result is cached. It gives us up to 70% perf boost. - // http://jsperf.com/element-style-object-access-vs-plain-object - // - // Prefill cache with known css properties to reduce amount of - // properties we need to feature test at runtime. - // http://davidwalsh.name/vendor-prefix - - var computed = window.getComputedStyle(document.documentElement, ''); - - for (var key$1 in computed) { - // eslint-disable-next-line no-restricted-globals - if (!isNaN(key$1)) cache[computed[key$1]] = computed[key$1]; - } // Properties that cannot be correctly detected using the - // cache prefill method. - - - noPrefill.forEach(function (x) { - return delete cache[x]; - }); -} -/** - * Test if a property is supported, returns supported property with vendor - * prefix if required. Returns `false` if not supported. - * - * @param {String} prop dash separated - * @param {Object} [options] - * @return {String|Boolean} - * @api public - */ - - -function supportedProperty(prop, options) { - if (options === void 0) { - options = {}; - } - - // For server-side rendering. - if (!el) return prop; // Remove cache for benchmark tests or return property from the cache. - - if ( true && cache[prop] != null) { - return cache[prop]; - } // Check if 'transition' or 'transform' natively supported in browser. - - - if (prop === 'transition' || prop === 'transform') { - options[prop] = prop in el.style; - } // Find a plugin for current prefix property. - - - for (var i = 0; i < propertyDetectors.length; i++) { - cache[prop] = propertyDetectors[i](prop, el.style, options); // Break loop, if value found. - - if (cache[prop]) break; - } // Reset styles for current property. - // Firefox can even throw an error for invalid properties, e.g., "0". - - - try { - el.style[prop] = ''; - } catch (err) { - return false; - } - - return cache[prop]; -} - -var cache$1 = {}; -var transitionProperties = { - transition: 1, - 'transition-property': 1, - '-webkit-transition': 1, - '-webkit-transition-property': 1 -}; -var transPropsRegExp = /(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g; -var el$1; -/** - * Returns prefixed value transition/transform if needed. - * - * @param {String} match - * @param {String} p1 - * @param {String} p2 - * @return {String} - * @api private - */ - -function prefixTransitionCallback(match, p1, p2) { - if (p1 === 'var') return 'var'; - if (p1 === 'all') return 'all'; - if (p2 === 'all') return ', all'; - var prefixedValue = p1 ? supportedProperty(p1) : ", " + supportedProperty(p2); - if (!prefixedValue) return p1 || p2; - return prefixedValue; -} - -if (is_in_browser__WEBPACK_IMPORTED_MODULE_0__["default"]) el$1 = document.createElement('p'); -/** - * Returns prefixed value if needed. Returns `false` if value is not supported. - * - * @param {String} property - * @param {String} value - * @return {String|Boolean} - * @api public - */ - -function supportedValue(property, value) { - // For server-side rendering. - var prefixedValue = value; - if (!el$1 || property === 'content') return value; // It is a string or a number as a string like '1'. - // We want only prefixable values here. - // eslint-disable-next-line no-restricted-globals - - if (typeof prefixedValue !== 'string' || !isNaN(parseInt(prefixedValue, 10))) { - return prefixedValue; - } // Create cache key for current value. - - - var cacheKey = property + prefixedValue; // Remove cache for benchmark tests or return value from cache. - - if ( true && cache$1[cacheKey] != null) { - return cache$1[cacheKey]; - } // IE can even throw an error in some cases, for e.g. style.content = 'bar'. - - - try { - // Test value as it is. - el$1.style[property] = prefixedValue; - } catch (err) { - // Return false if value not supported. - cache$1[cacheKey] = false; - return false; - } // If 'transition' or 'transition-property' property. - - - if (transitionProperties[property]) { - prefixedValue = prefixedValue.replace(transPropsRegExp, prefixTransitionCallback); - } else if (el$1.style[property] === '') { - // Value with a vendor prefix. - prefixedValue = prefix.css + prefixedValue; // Hardcode test to convert "flex" to "-ms-flexbox" for IE10. - - if (prefixedValue === '-ms-flex') el$1.style[property] = '-ms-flexbox'; // Test prefixed value. - - el$1.style[property] = prefixedValue; // Return false if value not supported. - - if (el$1.style[property] === '') { - cache$1[cacheKey] = false; - return false; - } - } // Reset styles for current property. - - - el$1.style[property] = ''; // Write current value to cache. - - cache$1[cacheKey] = prefixedValue; - return cache$1[cacheKey]; -} - - - - -/***/ }), - -/***/ "./node_modules/deepmerge/dist/es.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -var isMergeableObject = function isMergeableObject(value) { - return isNonNullObject(value) - && !isSpecial(value) -}; - -function isNonNullObject(value) { - return !!value && typeof value === 'object' -} - -function isSpecial(value) { - var stringValue = Object.prototype.toString.call(value); - - return stringValue === '[object RegExp]' - || stringValue === '[object Date]' - || isReactElement(value) -} - -// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25 -var canUseSymbol = typeof Symbol === 'function' && Symbol.for; -var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7; - -function isReactElement(value) { - return value.$$typeof === REACT_ELEMENT_TYPE -} - -function emptyTarget(val) { - return Array.isArray(val) ? [] : {} -} - -function cloneUnlessOtherwiseSpecified(value, options) { - return (options.clone !== false && options.isMergeableObject(value)) - ? deepmerge(emptyTarget(value), value, options) - : value -} - -function defaultArrayMerge(target, source, options) { - return target.concat(source).map(function(element) { - return cloneUnlessOtherwiseSpecified(element, options) - }) -} - -function mergeObject(target, source, options) { - var destination = {}; - if (options.isMergeableObject(target)) { - Object.keys(target).forEach(function(key) { - destination[key] = cloneUnlessOtherwiseSpecified(target[key], options); - }); - } - Object.keys(source).forEach(function(key) { - if (!options.isMergeableObject(source[key]) || !target[key]) { - destination[key] = cloneUnlessOtherwiseSpecified(source[key], options); - } else { - destination[key] = deepmerge(target[key], source[key], options); - } - }); - return destination -} - -function deepmerge(target, source, options) { - options = options || {}; - options.arrayMerge = options.arrayMerge || defaultArrayMerge; - options.isMergeableObject = options.isMergeableObject || isMergeableObject; - - var sourceIsArray = Array.isArray(source); - var targetIsArray = Array.isArray(target); - var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray; - - if (!sourceAndTargetTypesMatch) { - return cloneUnlessOtherwiseSpecified(source, options) - } else if (sourceIsArray) { - return options.arrayMerge(target, source, options) - } else { - return mergeObject(target, source, options) - } -} - -deepmerge.all = function deepmergeAll(array, options) { - if (!Array.isArray(array)) { - throw new Error('first argument should be an array') - } - - return array.reduce(function(prev, next) { - return deepmerge(prev, next, options) - }, {}) -}; - -var deepmerge_1 = deepmerge; - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (deepmerge_1); - - -/***/ }), - -/***/ "./node_modules/es6-promise/dist/es6-promise.js": -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -/*! - * @overview es6-promise - a tiny implementation of Promises/A+. - * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) - * @license Licensed under MIT license - * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE - * @version 3.3.1 - */ - -(function (global, factory) { - true ? module.exports = factory() : - 0; -}(this, (function () { 'use strict'; - -function objectOrFunction(x) { - return typeof x === 'function' || typeof x === 'object' && x !== null; -} - -function isFunction(x) { - return typeof x === 'function'; -} - -var _isArray = undefined; -if (!Array.isArray) { - _isArray = function (x) { - return Object.prototype.toString.call(x) === '[object Array]'; - }; -} else { - _isArray = Array.isArray; -} - -var isArray = _isArray; - -var len = 0; -var vertxNext = undefined; -var customSchedulerFn = undefined; - -var asap = function asap(callback, arg) { - queue[len] = callback; - queue[len + 1] = arg; - len += 2; - if (len === 2) { - // If len is 2, that means that we need to schedule an async flush. - // If additional callbacks are queued before the queue is flushed, they - // will be processed by this flush that we are scheduling. - if (customSchedulerFn) { - customSchedulerFn(flush); - } else { - scheduleFlush(); - } - } -}; - -function setScheduler(scheduleFn) { - customSchedulerFn = scheduleFn; -} - -function setAsap(asapFn) { - asap = asapFn; -} - -var browserWindow = typeof window !== 'undefined' ? window : undefined; -var browserGlobal = browserWindow || {}; -var BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver; -var isNode = typeof self === 'undefined' && typeof process !== 'undefined' && ({}).toString.call(process) === '[object process]'; - -// test for web worker but not in IE10 -var isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined'; - -// node -function useNextTick() { - // node version 0.10.x displays a deprecation warning when nextTick is used recursively - // see https://github.com/cujojs/when/issues/410 for details - return function () { - return process.nextTick(flush); - }; -} - -// vertx -function useVertxTimer() { - return function () { - vertxNext(flush); - }; -} - -function useMutationObserver() { - var iterations = 0; - var observer = new BrowserMutationObserver(flush); - var node = document.createTextNode(''); - observer.observe(node, { characterData: true }); - - return function () { - node.data = iterations = ++iterations % 2; - }; -} - -// web worker -function useMessageChannel() { - var channel = new MessageChannel(); - channel.port1.onmessage = flush; - return function () { - return channel.port2.postMessage(0); - }; -} - -function useSetTimeout() { - // Store setTimeout reference so es6-promise will be unaffected by - // other code modifying setTimeout (like sinon.useFakeTimers()) - var globalSetTimeout = setTimeout; - return function () { - return globalSetTimeout(flush, 1); - }; -} - -var queue = new Array(1000); -function flush() { - for (var i = 0; i < len; i += 2) { - var callback = queue[i]; - var arg = queue[i + 1]; - - callback(arg); - - queue[i] = undefined; - queue[i + 1] = undefined; - } - - len = 0; -} - -function attemptVertx() { - try { - var r = undefined; - var vertx = __webpack_require__("?3c4a"); - vertxNext = vertx.runOnLoop || vertx.runOnContext; - return useVertxTimer(); - } catch (e) { - return useSetTimeout(); - } -} - -var scheduleFlush = undefined; -// Decide what async method to use to triggering processing of queued callbacks: -if (isNode) { - scheduleFlush = useNextTick(); -} else if (BrowserMutationObserver) { - scheduleFlush = useMutationObserver(); -} else if (isWorker) { - scheduleFlush = useMessageChannel(); -} else if (browserWindow === undefined && "function" === 'function') { - scheduleFlush = attemptVertx(); -} else { - scheduleFlush = useSetTimeout(); -} - -function then(onFulfillment, onRejection) { - var _arguments = arguments; - - var parent = this; - - var child = new this.constructor(noop); - - if (child[PROMISE_ID] === undefined) { - makePromise(child); - } - - var _state = parent._state; - - if (_state) { - (function () { - var callback = _arguments[_state - 1]; - asap(function () { - return invokeCallback(_state, child, callback, parent._result); - }); - })(); - } else { - subscribe(parent, child, onFulfillment, onRejection); - } - - return child; -} - -/** - `Promise.resolve` returns a promise that will become resolved with the - passed `value`. It is shorthand for the following: - - ```javascript - let promise = new Promise(function(resolve, reject){ - resolve(1); - }); - - promise.then(function(value){ - // value === 1 - }); - ``` - - Instead of writing the above, your code now simply becomes the following: - - ```javascript - let promise = Promise.resolve(1); - - promise.then(function(value){ - // value === 1 - }); - ``` - - @method resolve - @static - @param {Any} value value that the returned promise will be resolved with - Useful for tooling. - @return {Promise} a promise that will become fulfilled with the given - `value` -*/ -function resolve(object) { - /*jshint validthis:true */ - var Constructor = this; - - if (object && typeof object === 'object' && object.constructor === Constructor) { - return object; - } - - var promise = new Constructor(noop); - _resolve(promise, object); - return promise; -} - -var PROMISE_ID = Math.random().toString(36).substring(16); - -function noop() {} - -var PENDING = void 0; -var FULFILLED = 1; -var REJECTED = 2; - -var GET_THEN_ERROR = new ErrorObject(); - -function selfFulfillment() { - return new TypeError("You cannot resolve a promise with itself"); -} - -function cannotReturnOwn() { - return new TypeError('A promises callback cannot return that same promise.'); -} - -function getThen(promise) { - try { - return promise.then; - } catch (error) { - GET_THEN_ERROR.error = error; - return GET_THEN_ERROR; - } -} - -function tryThen(then, value, fulfillmentHandler, rejectionHandler) { - try { - then.call(value, fulfillmentHandler, rejectionHandler); - } catch (e) { - return e; - } -} - -function handleForeignThenable(promise, thenable, then) { - asap(function (promise) { - var sealed = false; - var error = tryThen(then, thenable, function (value) { - if (sealed) { - return; - } - sealed = true; - if (thenable !== value) { - _resolve(promise, value); - } else { - fulfill(promise, value); - } - }, function (reason) { - if (sealed) { - return; - } - sealed = true; - - _reject(promise, reason); - }, 'Settle: ' + (promise._label || ' unknown promise')); - - if (!sealed && error) { - sealed = true; - _reject(promise, error); - } - }, promise); -} - -function handleOwnThenable(promise, thenable) { - if (thenable._state === FULFILLED) { - fulfill(promise, thenable._result); - } else if (thenable._state === REJECTED) { - _reject(promise, thenable._result); - } else { - subscribe(thenable, undefined, function (value) { - return _resolve(promise, value); - }, function (reason) { - return _reject(promise, reason); - }); - } -} - -function handleMaybeThenable(promise, maybeThenable, then$$) { - if (maybeThenable.constructor === promise.constructor && then$$ === then && maybeThenable.constructor.resolve === resolve) { - handleOwnThenable(promise, maybeThenable); - } else { - if (then$$ === GET_THEN_ERROR) { - _reject(promise, GET_THEN_ERROR.error); - } else if (then$$ === undefined) { - fulfill(promise, maybeThenable); - } else if (isFunction(then$$)) { - handleForeignThenable(promise, maybeThenable, then$$); - } else { - fulfill(promise, maybeThenable); - } - } -} - -function _resolve(promise, value) { - if (promise === value) { - _reject(promise, selfFulfillment()); - } else if (objectOrFunction(value)) { - handleMaybeThenable(promise, value, getThen(value)); - } else { - fulfill(promise, value); - } -} - -function publishRejection(promise) { - if (promise._onerror) { - promise._onerror(promise._result); - } - - publish(promise); -} - -function fulfill(promise, value) { - if (promise._state !== PENDING) { - return; - } - - promise._result = value; - promise._state = FULFILLED; - - if (promise._subscribers.length !== 0) { - asap(publish, promise); - } -} - -function _reject(promise, reason) { - if (promise._state !== PENDING) { - return; - } - promise._state = REJECTED; - promise._result = reason; - - asap(publishRejection, promise); -} - -function subscribe(parent, child, onFulfillment, onRejection) { - var _subscribers = parent._subscribers; - var length = _subscribers.length; - - parent._onerror = null; - - _subscribers[length] = child; - _subscribers[length + FULFILLED] = onFulfillment; - _subscribers[length + REJECTED] = onRejection; - - if (length === 0 && parent._state) { - asap(publish, parent); - } -} - -function publish(promise) { - var subscribers = promise._subscribers; - var settled = promise._state; - - if (subscribers.length === 0) { - return; - } - - var child = undefined, - callback = undefined, - detail = promise._result; - - for (var i = 0; i < subscribers.length; i += 3) { - child = subscribers[i]; - callback = subscribers[i + settled]; - - if (child) { - invokeCallback(settled, child, callback, detail); - } else { - callback(detail); - } - } - - promise._subscribers.length = 0; -} - -function ErrorObject() { - this.error = null; -} - -var TRY_CATCH_ERROR = new ErrorObject(); - -function tryCatch(callback, detail) { - try { - return callback(detail); - } catch (e) { - TRY_CATCH_ERROR.error = e; - return TRY_CATCH_ERROR; - } -} - -function invokeCallback(settled, promise, callback, detail) { - var hasCallback = isFunction(callback), - value = undefined, - error = undefined, - succeeded = undefined, - failed = undefined; - - if (hasCallback) { - value = tryCatch(callback, detail); - - if (value === TRY_CATCH_ERROR) { - failed = true; - error = value.error; - value = null; - } else { - succeeded = true; - } - - if (promise === value) { - _reject(promise, cannotReturnOwn()); - return; - } - } else { - value = detail; - succeeded = true; - } - - if (promise._state !== PENDING) { - // noop - } else if (hasCallback && succeeded) { - _resolve(promise, value); - } else if (failed) { - _reject(promise, error); - } else if (settled === FULFILLED) { - fulfill(promise, value); - } else if (settled === REJECTED) { - _reject(promise, value); - } -} - -function initializePromise(promise, resolver) { - try { - resolver(function resolvePromise(value) { - _resolve(promise, value); - }, function rejectPromise(reason) { - _reject(promise, reason); - }); - } catch (e) { - _reject(promise, e); - } -} - -var id = 0; -function nextId() { - return id++; -} - -function makePromise(promise) { - promise[PROMISE_ID] = id++; - promise._state = undefined; - promise._result = undefined; - promise._subscribers = []; -} - -function Enumerator(Constructor, input) { - this._instanceConstructor = Constructor; - this.promise = new Constructor(noop); - - if (!this.promise[PROMISE_ID]) { - makePromise(this.promise); - } - - if (isArray(input)) { - this._input = input; - this.length = input.length; - this._remaining = input.length; - - this._result = new Array(this.length); - - if (this.length === 0) { - fulfill(this.promise, this._result); - } else { - this.length = this.length || 0; - this._enumerate(); - if (this._remaining === 0) { - fulfill(this.promise, this._result); - } - } - } else { - _reject(this.promise, validationError()); - } -} - -function validationError() { - return new Error('Array Methods must be provided an Array'); -}; - -Enumerator.prototype._enumerate = function () { - var length = this.length; - var _input = this._input; - - for (var i = 0; this._state === PENDING && i < length; i++) { - this._eachEntry(_input[i], i); - } -}; - -Enumerator.prototype._eachEntry = function (entry, i) { - var c = this._instanceConstructor; - var resolve$$ = c.resolve; - - if (resolve$$ === resolve) { - var _then = getThen(entry); - - if (_then === then && entry._state !== PENDING) { - this._settledAt(entry._state, i, entry._result); - } else if (typeof _then !== 'function') { - this._remaining--; - this._result[i] = entry; - } else if (c === Promise) { - var promise = new c(noop); - handleMaybeThenable(promise, entry, _then); - this._willSettleAt(promise, i); - } else { - this._willSettleAt(new c(function (resolve$$) { - return resolve$$(entry); - }), i); - } - } else { - this._willSettleAt(resolve$$(entry), i); - } -}; - -Enumerator.prototype._settledAt = function (state, i, value) { - var promise = this.promise; - - if (promise._state === PENDING) { - this._remaining--; - - if (state === REJECTED) { - _reject(promise, value); - } else { - this._result[i] = value; - } - } - - if (this._remaining === 0) { - fulfill(promise, this._result); - } -}; - -Enumerator.prototype._willSettleAt = function (promise, i) { - var enumerator = this; - - subscribe(promise, undefined, function (value) { - return enumerator._settledAt(FULFILLED, i, value); - }, function (reason) { - return enumerator._settledAt(REJECTED, i, reason); - }); -}; - -/** - `Promise.all` accepts an array of promises, and returns a new promise which - is fulfilled with an array of fulfillment values for the passed promises, or - rejected with the reason of the first passed promise to be rejected. It casts all - elements of the passed iterable to promises as it runs this algorithm. - - Example: - - ```javascript - let promise1 = resolve(1); - let promise2 = resolve(2); - let promise3 = resolve(3); - let promises = [ promise1, promise2, promise3 ]; - - Promise.all(promises).then(function(array){ - // The array here would be [ 1, 2, 3 ]; - }); - ``` - - If any of the `promises` given to `all` are rejected, the first promise - that is rejected will be given as an argument to the returned promises's - rejection handler. For example: - - Example: - - ```javascript - let promise1 = resolve(1); - let promise2 = reject(new Error("2")); - let promise3 = reject(new Error("3")); - let promises = [ promise1, promise2, promise3 ]; - - Promise.all(promises).then(function(array){ - // Code here never runs because there are rejected promises! - }, function(error) { - // error.message === "2" - }); - ``` - - @method all - @static - @param {Array} entries array of promises - @param {String} label optional string for labeling the promise. - Useful for tooling. - @return {Promise} promise that is fulfilled when all `promises` have been - fulfilled, or rejected if any of them become rejected. - @static -*/ -function all(entries) { - return new Enumerator(this, entries).promise; -} - -/** - `Promise.race` returns a new promise which is settled in the same way as the - first passed promise to settle. - - Example: - - ```javascript - let promise1 = new Promise(function(resolve, reject){ - setTimeout(function(){ - resolve('promise 1'); - }, 200); - }); - - let promise2 = new Promise(function(resolve, reject){ - setTimeout(function(){ - resolve('promise 2'); - }, 100); - }); - - Promise.race([promise1, promise2]).then(function(result){ - // result === 'promise 2' because it was resolved before promise1 - // was resolved. - }); - ``` - - `Promise.race` is deterministic in that only the state of the first - settled promise matters. For example, even if other promises given to the - `promises` array argument are resolved, but the first settled promise has - become rejected before the other promises became fulfilled, the returned - promise will become rejected: - - ```javascript - let promise1 = new Promise(function(resolve, reject){ - setTimeout(function(){ - resolve('promise 1'); - }, 200); - }); - - let promise2 = new Promise(function(resolve, reject){ - setTimeout(function(){ - reject(new Error('promise 2')); - }, 100); - }); - - Promise.race([promise1, promise2]).then(function(result){ - // Code here never runs - }, function(reason){ - // reason.message === 'promise 2' because promise 2 became rejected before - // promise 1 became fulfilled - }); - ``` - - An example real-world use case is implementing timeouts: - - ```javascript - Promise.race([ajax('foo.json'), timeout(5000)]) - ``` - - @method race - @static - @param {Array} promises array of promises to observe - Useful for tooling. - @return {Promise} a promise which settles in the same way as the first passed - promise to settle. -*/ -function race(entries) { - /*jshint validthis:true */ - var Constructor = this; - - if (!isArray(entries)) { - return new Constructor(function (_, reject) { - return reject(new TypeError('You must pass an array to race.')); - }); - } else { - return new Constructor(function (resolve, reject) { - var length = entries.length; - for (var i = 0; i < length; i++) { - Constructor.resolve(entries[i]).then(resolve, reject); - } - }); - } -} - -/** - `Promise.reject` returns a promise rejected with the passed `reason`. - It is shorthand for the following: - - ```javascript - let promise = new Promise(function(resolve, reject){ - reject(new Error('WHOOPS')); - }); - - promise.then(function(value){ - // Code here doesn't run because the promise is rejected! - }, function(reason){ - // reason.message === 'WHOOPS' - }); - ``` - - Instead of writing the above, your code now simply becomes the following: - - ```javascript - let promise = Promise.reject(new Error('WHOOPS')); - - promise.then(function(value){ - // Code here doesn't run because the promise is rejected! - }, function(reason){ - // reason.message === 'WHOOPS' - }); - ``` - - @method reject - @static - @param {Any} reason value that the returned promise will be rejected with. - Useful for tooling. - @return {Promise} a promise rejected with the given `reason`. -*/ -function reject(reason) { - /*jshint validthis:true */ - var Constructor = this; - var promise = new Constructor(noop); - _reject(promise, reason); - return promise; -} - -function needsResolver() { - throw new TypeError('You must pass a resolver function as the first argument to the promise constructor'); -} - -function needsNew() { - throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function."); -} - -/** - Promise objects represent the eventual result of an asynchronous operation. The - primary way of interacting with a promise is through its `then` method, which - registers callbacks to receive either a promise's eventual value or the reason - why the promise cannot be fulfilled. - - Terminology - ----------- - - - `promise` is an object or function with a `then` method whose behavior conforms to this specification. - - `thenable` is an object or function that defines a `then` method. - - `value` is any legal JavaScript value (including undefined, a thenable, or a promise). - - `exception` is a value that is thrown using the throw statement. - - `reason` is a value that indicates why a promise was rejected. - - `settled` the final resting state of a promise, fulfilled or rejected. - - A promise can be in one of three states: pending, fulfilled, or rejected. - - Promises that are fulfilled have a fulfillment value and are in the fulfilled - state. Promises that are rejected have a rejection reason and are in the - rejected state. A fulfillment value is never a thenable. - - Promises can also be said to *resolve* a value. If this value is also a - promise, then the original promise's settled state will match the value's - settled state. So a promise that *resolves* a promise that rejects will - itself reject, and a promise that *resolves* a promise that fulfills will - itself fulfill. - - - Basic Usage: - ------------ - - ```js - let promise = new Promise(function(resolve, reject) { - // on success - resolve(value); - - // on failure - reject(reason); - }); - - promise.then(function(value) { - // on fulfillment - }, function(reason) { - // on rejection - }); - ``` - - Advanced Usage: - --------------- - - Promises shine when abstracting away asynchronous interactions such as - `XMLHttpRequest`s. - - ```js - function getJSON(url) { - return new Promise(function(resolve, reject){ - let xhr = new XMLHttpRequest(); - - xhr.open('GET', url); - xhr.onreadystatechange = handler; - xhr.responseType = 'json'; - xhr.setRequestHeader('Accept', 'application/json'); - xhr.send(); - - function handler() { - if (this.readyState === this.DONE) { - if (this.status === 200) { - resolve(this.response); - } else { - reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']')); - } - } - }; - }); - } - - getJSON('/posts.json').then(function(json) { - // on fulfillment - }, function(reason) { - // on rejection - }); - ``` - - Unlike callbacks, promises are great composable primitives. - - ```js - Promise.all([ - getJSON('/posts'), - getJSON('/comments') - ]).then(function(values){ - values[0] // => postsJSON - values[1] // => commentsJSON - - return values; - }); - ``` - - @class Promise - @param {function} resolver - Useful for tooling. - @constructor -*/ -function Promise(resolver) { - this[PROMISE_ID] = nextId(); - this._result = this._state = undefined; - this._subscribers = []; - - if (noop !== resolver) { - typeof resolver !== 'function' && needsResolver(); - this instanceof Promise ? initializePromise(this, resolver) : needsNew(); - } -} - -Promise.all = all; -Promise.race = race; -Promise.resolve = resolve; -Promise.reject = reject; -Promise._setScheduler = setScheduler; -Promise._setAsap = setAsap; -Promise._asap = asap; - -Promise.prototype = { - constructor: Promise, - - /** - The primary way of interacting with a promise is through its `then` method, - which registers callbacks to receive either a promise's eventual value or the - reason why the promise cannot be fulfilled. - - ```js - findUser().then(function(user){ - // user is available - }, function(reason){ - // user is unavailable, and you are given the reason why - }); - ``` - - Chaining - -------- - - The return value of `then` is itself a promise. This second, 'downstream' - promise is resolved with the return value of the first promise's fulfillment - or rejection handler, or rejected if the handler throws an exception. - - ```js - findUser().then(function (user) { - return user.name; - }, function (reason) { - return 'default name'; - }).then(function (userName) { - // If `findUser` fulfilled, `userName` will be the user's name, otherwise it - // will be `'default name'` - }); - - findUser().then(function (user) { - throw new Error('Found user, but still unhappy'); - }, function (reason) { - throw new Error('`findUser` rejected and we're unhappy'); - }).then(function (value) { - // never reached - }, function (reason) { - // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'. - // If `findUser` rejected, `reason` will be '`findUser` rejected and we're unhappy'. - }); - ``` - If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream. - - ```js - findUser().then(function (user) { - throw new PedagogicalException('Upstream error'); - }).then(function (value) { - // never reached - }).then(function (value) { - // never reached - }, function (reason) { - // The `PedgagocialException` is propagated all the way down to here - }); - ``` - - Assimilation - ------------ - - Sometimes the value you want to propagate to a downstream promise can only be - retrieved asynchronously. This can be achieved by returning a promise in the - fulfillment or rejection handler. The downstream promise will then be pending - until the returned promise is settled. This is called *assimilation*. - - ```js - findUser().then(function (user) { - return findCommentsByAuthor(user); - }).then(function (comments) { - // The user's comments are now available - }); - ``` - - If the assimliated promise rejects, then the downstream promise will also reject. - - ```js - findUser().then(function (user) { - return findCommentsByAuthor(user); - }).then(function (comments) { - // If `findCommentsByAuthor` fulfills, we'll have the value here - }, function (reason) { - // If `findCommentsByAuthor` rejects, we'll have the reason here - }); - ``` - - Simple Example - -------------- - - Synchronous Example - - ```javascript - let result; - - try { - result = findResult(); - // success - } catch(reason) { - // failure - } - ``` - - Errback Example - - ```js - findResult(function(result, err){ - if (err) { - // failure - } else { - // success - } - }); - ``` - - Promise Example; - - ```javascript - findResult().then(function(result){ - // success - }, function(reason){ - // failure - }); - ``` - - Advanced Example - -------------- - - Synchronous Example - - ```javascript - let author, books; - - try { - author = findAuthor(); - books = findBooksByAuthor(author); - // success - } catch(reason) { - // failure - } - ``` - - Errback Example - - ```js - - function foundBooks(books) { - - } - - function failure(reason) { - - } - - findAuthor(function(author, err){ - if (err) { - failure(err); - // failure - } else { - try { - findBoooksByAuthor(author, function(books, err) { - if (err) { - failure(err); - } else { - try { - foundBooks(books); - } catch(reason) { - failure(reason); - } - } - }); - } catch(error) { - failure(err); - } - // success - } - }); - ``` - - Promise Example; - - ```javascript - findAuthor(). - then(findBooksByAuthor). - then(function(books){ - // found books - }).catch(function(reason){ - // something went wrong - }); - ``` - - @method then - @param {Function} onFulfilled - @param {Function} onRejected - Useful for tooling. - @return {Promise} - */ - then: then, - - /** - `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same - as the catch block of a try/catch statement. - - ```js - function findAuthor(){ - throw new Error('couldn't find that author'); - } - - // synchronous - try { - findAuthor(); - } catch(reason) { - // something went wrong - } - - // async with promises - findAuthor().catch(function(reason){ - // something went wrong - }); - ``` - - @method catch - @param {Function} onRejection - Useful for tooling. - @return {Promise} - */ - 'catch': function _catch(onRejection) { - return this.then(null, onRejection); - } -}; - -function polyfill() { - var local = undefined; - - if (typeof __webpack_require__.g !== 'undefined') { - local = __webpack_require__.g; - } else if (typeof self !== 'undefined') { - local = self; - } else { - try { - local = Function('return this')(); - } catch (e) { - throw new Error('polyfill failed because global object is unavailable in this environment'); - } - } - - var P = local.Promise; - - if (P) { - var promiseToString = null; - try { - promiseToString = Object.prototype.toString.call(P.resolve()); - } catch (e) { - // silently ignored - } - - if (promiseToString === '[object Promise]' && !P.cast) { - return; - } - } - - local.Promise = Promise; -} - -polyfill(); -// Strange compat.. -Promise.polyfill = polyfill; -Promise.Promise = Promise; - -return Promise; - -}))); -//# sourceMappingURL=es6-promise.map - -/***/ }), - -/***/ "./node_modules/fast-safe-stringify/index.js": -/***/ ((module) => { - -module.exports = stringify -stringify.default = stringify -stringify.stable = deterministicStringify -stringify.stableStringify = deterministicStringify - -var LIMIT_REPLACE_NODE = '[...]' -var CIRCULAR_REPLACE_NODE = '[Circular]' - -var arr = [] -var replacerStack = [] - -function defaultOptions () { - return { - depthLimit: Number.MAX_SAFE_INTEGER, - edgesLimit: Number.MAX_SAFE_INTEGER - } -} - -// Regular stringify -function stringify (obj, replacer, spacer, options) { - if (typeof options === 'undefined') { - options = defaultOptions() - } - - decirc(obj, '', 0, [], undefined, 0, options) - var res - try { - if (replacerStack.length === 0) { - res = JSON.stringify(obj, replacer, spacer) - } else { - res = JSON.stringify(obj, replaceGetterValues(replacer), spacer) - } - } catch (_) { - return JSON.stringify('[unable to serialize, circular reference is too complex to analyze]') - } finally { - while (arr.length !== 0) { - var part = arr.pop() - if (part.length === 4) { - Object.defineProperty(part[0], part[1], part[3]) - } else { - part[0][part[1]] = part[2] - } - } - } - return res -} - -function setReplace (replace, val, k, parent) { - var propertyDescriptor = Object.getOwnPropertyDescriptor(parent, k) - if (propertyDescriptor.get !== undefined) { - if (propertyDescriptor.configurable) { - Object.defineProperty(parent, k, { value: replace }) - arr.push([parent, k, val, propertyDescriptor]) - } else { - replacerStack.push([val, k, replace]) - } - } else { - parent[k] = replace - arr.push([parent, k, val]) - } -} - -function decirc (val, k, edgeIndex, stack, parent, depth, options) { - depth += 1 - var i - if (typeof val === 'object' && val !== null) { - for (i = 0; i < stack.length; i++) { - if (stack[i] === val) { - setReplace(CIRCULAR_REPLACE_NODE, val, k, parent) - return - } - } - - if ( - typeof options.depthLimit !== 'undefined' && - depth > options.depthLimit - ) { - setReplace(LIMIT_REPLACE_NODE, val, k, parent) - return - } - - if ( - typeof options.edgesLimit !== 'undefined' && - edgeIndex + 1 > options.edgesLimit - ) { - setReplace(LIMIT_REPLACE_NODE, val, k, parent) - return - } - - stack.push(val) - // Optimize for Arrays. Big arrays could kill the performance otherwise! - if (Array.isArray(val)) { - for (i = 0; i < val.length; i++) { - decirc(val[i], i, i, stack, val, depth, options) - } - } else { - var keys = Object.keys(val) - for (i = 0; i < keys.length; i++) { - var key = keys[i] - decirc(val[key], key, i, stack, val, depth, options) - } - } - stack.pop() - } -} - -// Stable-stringify -function compareFunction (a, b) { - if (a < b) { - return -1 - } - if (a > b) { - return 1 - } - return 0 -} - -function deterministicStringify (obj, replacer, spacer, options) { - if (typeof options === 'undefined') { - options = defaultOptions() - } - - var tmp = deterministicDecirc(obj, '', 0, [], undefined, 0, options) || obj - var res - try { - if (replacerStack.length === 0) { - res = JSON.stringify(tmp, replacer, spacer) - } else { - res = JSON.stringify(tmp, replaceGetterValues(replacer), spacer) - } - } catch (_) { - return JSON.stringify('[unable to serialize, circular reference is too complex to analyze]') - } finally { - // Ensure that we restore the object as it was. - while (arr.length !== 0) { - var part = arr.pop() - if (part.length === 4) { - Object.defineProperty(part[0], part[1], part[3]) - } else { - part[0][part[1]] = part[2] - } - } - } - return res -} - -function deterministicDecirc (val, k, edgeIndex, stack, parent, depth, options) { - depth += 1 - var i - if (typeof val === 'object' && val !== null) { - for (i = 0; i < stack.length; i++) { - if (stack[i] === val) { - setReplace(CIRCULAR_REPLACE_NODE, val, k, parent) - return - } - } - try { - if (typeof val.toJSON === 'function') { - return - } - } catch (_) { - return - } - - if ( - typeof options.depthLimit !== 'undefined' && - depth > options.depthLimit - ) { - setReplace(LIMIT_REPLACE_NODE, val, k, parent) - return - } - - if ( - typeof options.edgesLimit !== 'undefined' && - edgeIndex + 1 > options.edgesLimit - ) { - setReplace(LIMIT_REPLACE_NODE, val, k, parent) - return - } - - stack.push(val) - // Optimize for Arrays. Big arrays could kill the performance otherwise! - if (Array.isArray(val)) { - for (i = 0; i < val.length; i++) { - deterministicDecirc(val[i], i, i, stack, val, depth, options) - } - } else { - // Create a temporary object in the required way - var tmp = {} - var keys = Object.keys(val).sort(compareFunction) - for (i = 0; i < keys.length; i++) { - var key = keys[i] - deterministicDecirc(val[key], key, i, stack, val, depth, options) - tmp[key] = val[key] - } - if (typeof parent !== 'undefined') { - arr.push([parent, k, val]) - parent[k] = tmp - } else { - return tmp - } - } - stack.pop() - } -} - -// wraps replacer function to handle values we couldn't replace -// and mark them as replaced value -function replaceGetterValues (replacer) { - replacer = - typeof replacer !== 'undefined' - ? replacer - : function (k, v) { - return v - } - return function (key, val) { - if (replacerStack.length > 0) { - for (var i = 0; i < replacerStack.length; i++) { - var part = replacerStack[i] - if (part[1] === key && part[0] === val) { - val = part[2] - replacerStack.splice(i, 1) - break - } - } - } - return replacer.call(this, key, val) - } -} - - -/***/ }), - -/***/ "./node_modules/formik/dist/formik.esm.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "ErrorMessage": () => (/* binding */ ErrorMessage), -/* harmony export */ "FastField": () => (/* binding */ FastField), -/* harmony export */ "Field": () => (/* binding */ Field), -/* harmony export */ "FieldArray": () => (/* binding */ FieldArray), -/* harmony export */ "Form": () => (/* binding */ Form), -/* harmony export */ "Formik": () => (/* binding */ Formik), -/* harmony export */ "FormikConsumer": () => (/* binding */ FormikConsumer), -/* harmony export */ "FormikContext": () => (/* binding */ FormikContext), -/* harmony export */ "FormikProvider": () => (/* binding */ FormikProvider), -/* harmony export */ "connect": () => (/* binding */ connect), -/* harmony export */ "getActiveElement": () => (/* binding */ getActiveElement), -/* harmony export */ "getIn": () => (/* binding */ getIn), -/* harmony export */ "insert": () => (/* binding */ insert), -/* harmony export */ "isEmptyArray": () => (/* binding */ isEmptyArray), -/* harmony export */ "isEmptyChildren": () => (/* binding */ isEmptyChildren), -/* harmony export */ "isFunction": () => (/* binding */ isFunction), -/* harmony export */ "isInputEvent": () => (/* binding */ isInputEvent), -/* harmony export */ "isInteger": () => (/* binding */ isInteger), -/* harmony export */ "isNaN": () => (/* binding */ isNaN$1), -/* harmony export */ "isObject": () => (/* binding */ isObject), -/* harmony export */ "isPromise": () => (/* binding */ isPromise), -/* harmony export */ "isString": () => (/* binding */ isString), -/* harmony export */ "move": () => (/* binding */ move), -/* harmony export */ "prepareDataForValidation": () => (/* binding */ prepareDataForValidation), -/* harmony export */ "replace": () => (/* binding */ replace), -/* harmony export */ "setIn": () => (/* binding */ setIn), -/* harmony export */ "setNestedObjectValues": () => (/* binding */ setNestedObjectValues), -/* harmony export */ "swap": () => (/* binding */ swap), -/* harmony export */ "useField": () => (/* binding */ useField), -/* harmony export */ "useFormik": () => (/* binding */ useFormik), -/* harmony export */ "useFormikContext": () => (/* binding */ useFormikContext), -/* harmony export */ "validateYupSchema": () => (/* binding */ validateYupSchema), -/* harmony export */ "withFormik": () => (/* binding */ withFormik), -/* harmony export */ "yupToFormErrors": () => (/* binding */ yupToFormErrors) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js"); -/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/react-fast-compare/index.js"); -/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var deepmerge__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/deepmerge/dist/es.js"); -/* harmony import */ var lodash_es_isPlainObject__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./node_modules/lodash-es/isPlainObject.js"); -/* harmony import */ var lodash_es_clone__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/lodash-es/clone.js"); -/* harmony import */ var lodash_es_toPath__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/lodash-es/toPath.js"); -/* harmony import */ var tiny_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/tiny-warning/dist/tiny-warning.esm.js"); -/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"); -/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var lodash_es_cloneDeep__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./node_modules/lodash-es/cloneDeep.js"); - - - - - - - - - - -function _extends() { - _extends = Object.assign || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - - return target; - }; - - return _extends.apply(this, arguments); -} - -function _inheritsLoose(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - subClass.__proto__ = superClass; -} - -function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } - - return target; -} - -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return self; -} - -/** @private is the value an empty array? */ - -var isEmptyArray = function isEmptyArray(value) { - return Array.isArray(value) && value.length === 0; -}; -/** @private is the given object a Function? */ - -var isFunction = function isFunction(obj) { - return typeof obj === 'function'; -}; -/** @private is the given object an Object? */ - -var isObject = function isObject(obj) { - return obj !== null && typeof obj === 'object'; -}; -/** @private is the given object an integer? */ - -var isInteger = function isInteger(obj) { - return String(Math.floor(Number(obj))) === obj; -}; -/** @private is the given object a string? */ - -var isString = function isString(obj) { - return Object.prototype.toString.call(obj) === '[object String]'; -}; -/** @private is the given object a NaN? */ -// eslint-disable-next-line no-self-compare - -var isNaN$1 = function isNaN(obj) { - return obj !== obj; -}; -/** @private Does a React component have exactly 0 children? */ - -var isEmptyChildren = function isEmptyChildren(children) { - return react__WEBPACK_IMPORTED_MODULE_0__.Children.count(children) === 0; -}; -/** @private is the given object/value a promise? */ - -var isPromise = function isPromise(value) { - return isObject(value) && isFunction(value.then); -}; -/** @private is the given object/value a type of synthetic event? */ - -var isInputEvent = function isInputEvent(value) { - return value && isObject(value) && isObject(value.target); -}; -/** - * Same as document.activeElement but wraps in a try-catch block. In IE it is - * not safe to call document.activeElement if there is nothing focused. - * - * The activeElement will be null only if the document or document body is not - * yet defined. - * - * @param {?Document} doc Defaults to current document. - * @return {Element | null} - * @see https://github.com/facebook/fbjs/blob/master/packages/fbjs/src/core/dom/getActiveElement.js - */ - -function getActiveElement(doc) { - doc = doc || (typeof document !== 'undefined' ? document : undefined); - - if (typeof doc === 'undefined') { - return null; - } - - try { - return doc.activeElement || doc.body; - } catch (e) { - return doc.body; - } -} -/** - * Deeply get a value from an object via its path. - */ - -function getIn(obj, key, def, p) { - if (p === void 0) { - p = 0; - } - - var path = (0,lodash_es_toPath__WEBPACK_IMPORTED_MODULE_4__["default"])(key); - - while (obj && p < path.length) { - obj = obj[path[p++]]; - } - - return obj === undefined ? def : obj; -} -/** - * Deeply set a value from in object via it's path. If the value at `path` - * has changed, return a shallow copy of obj with `value` set at `path`. - * If `value` has not changed, return the original `obj`. - * - * Existing objects / arrays along `path` are also shallow copied. Sibling - * objects along path retain the same internal js reference. Since new - * objects / arrays are only created along `path`, we can test if anything - * changed in a nested structure by comparing the object's reference in - * the old and new object, similar to how russian doll cache invalidation - * works. - * - * In earlier versions of this function, which used cloneDeep, there were - * issues whereby settings a nested value would mutate the parent - * instead of creating a new object. `clone` avoids that bug making a - * shallow copy of the objects along the update path - * so no object is mutated in place. - * - * Before changing this function, please read through the following - * discussions. - * - * @see https://github.com/developit/linkstate - * @see https://github.com/jaredpalmer/formik/pull/123 - */ - -function setIn(obj, path, value) { - var res = (0,lodash_es_clone__WEBPACK_IMPORTED_MODULE_5__["default"])(obj); // this keeps inheritance when obj is a class - - var resVal = res; - var i = 0; - var pathArray = (0,lodash_es_toPath__WEBPACK_IMPORTED_MODULE_4__["default"])(path); - - for (; i < pathArray.length - 1; i++) { - var currentPath = pathArray[i]; - var currentObj = getIn(obj, pathArray.slice(0, i + 1)); - - if (currentObj && (isObject(currentObj) || Array.isArray(currentObj))) { - resVal = resVal[currentPath] = (0,lodash_es_clone__WEBPACK_IMPORTED_MODULE_5__["default"])(currentObj); - } else { - var nextPath = pathArray[i + 1]; - resVal = resVal[currentPath] = isInteger(nextPath) && Number(nextPath) >= 0 ? [] : {}; - } - } // Return original object if new value is the same as current - - - if ((i === 0 ? obj : resVal)[pathArray[i]] === value) { - return obj; - } - - if (value === undefined) { - delete resVal[pathArray[i]]; - } else { - resVal[pathArray[i]] = value; - } // If the path array has a single element, the loop did not run. - // Deleting on `resVal` had no effect in this scenario, so we delete on the result instead. - - - if (i === 0 && value === undefined) { - delete res[pathArray[i]]; - } - - return res; -} -/** - * Recursively a set the same value for all keys and arrays nested object, cloning - * @param object - * @param value - * @param visited - * @param response - */ - -function setNestedObjectValues(object, value, visited, response) { - if (visited === void 0) { - visited = new WeakMap(); - } - - if (response === void 0) { - response = {}; - } - - for (var _i = 0, _Object$keys = Object.keys(object); _i < _Object$keys.length; _i++) { - var k = _Object$keys[_i]; - var val = object[k]; - - if (isObject(val)) { - if (!visited.get(val)) { - visited.set(val, true); // In order to keep array values consistent for both dot path and - // bracket syntax, we need to check if this is an array so that - // this will output { friends: [true] } and not { friends: { "0": true } } - - response[k] = Array.isArray(val) ? [] : {}; - setNestedObjectValues(val, value, visited, response[k]); - } - } else { - response[k] = value; - } - } - - return response; -} - -var FormikContext = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(undefined); -FormikContext.displayName = 'FormikContext'; -var FormikProvider = FormikContext.Provider; -var FormikConsumer = FormikContext.Consumer; -function useFormikContext() { - var formik = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(FormikContext); - !!!formik ? true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, "Formik context is undefined, please verify you are calling useFormikContext() as child of a component.") : 0 : void 0; - return formik; -} - -function formikReducer(state, msg) { - switch (msg.type) { - case 'SET_VALUES': - return _extends({}, state, { - values: msg.payload - }); - - case 'SET_TOUCHED': - return _extends({}, state, { - touched: msg.payload - }); - - case 'SET_ERRORS': - if (react_fast_compare__WEBPACK_IMPORTED_MODULE_1___default()(state.errors, msg.payload)) { - return state; - } - - return _extends({}, state, { - errors: msg.payload - }); - - case 'SET_STATUS': - return _extends({}, state, { - status: msg.payload - }); - - case 'SET_ISSUBMITTING': - return _extends({}, state, { - isSubmitting: msg.payload - }); - - case 'SET_ISVALIDATING': - return _extends({}, state, { - isValidating: msg.payload - }); - - case 'SET_FIELD_VALUE': - return _extends({}, state, { - values: setIn(state.values, msg.payload.field, msg.payload.value) - }); - - case 'SET_FIELD_TOUCHED': - return _extends({}, state, { - touched: setIn(state.touched, msg.payload.field, msg.payload.value) - }); - - case 'SET_FIELD_ERROR': - return _extends({}, state, { - errors: setIn(state.errors, msg.payload.field, msg.payload.value) - }); - - case 'RESET_FORM': - return _extends({}, state, msg.payload); - - case 'SET_FORMIK_STATE': - return msg.payload(state); - - case 'SUBMIT_ATTEMPT': - return _extends({}, state, { - touched: setNestedObjectValues(state.values, true), - isSubmitting: true, - submitCount: state.submitCount + 1 - }); - - case 'SUBMIT_FAILURE': - return _extends({}, state, { - isSubmitting: false - }); - - case 'SUBMIT_SUCCESS': - return _extends({}, state, { - isSubmitting: false - }); - - default: - return state; - } -} // Initial empty states // objects - - -var emptyErrors = {}; -var emptyTouched = {}; -function useFormik(_ref) { - var _ref$validateOnChange = _ref.validateOnChange, - validateOnChange = _ref$validateOnChange === void 0 ? true : _ref$validateOnChange, - _ref$validateOnBlur = _ref.validateOnBlur, - validateOnBlur = _ref$validateOnBlur === void 0 ? true : _ref$validateOnBlur, - _ref$validateOnMount = _ref.validateOnMount, - validateOnMount = _ref$validateOnMount === void 0 ? false : _ref$validateOnMount, - isInitialValid = _ref.isInitialValid, - _ref$enableReinitiali = _ref.enableReinitialize, - enableReinitialize = _ref$enableReinitiali === void 0 ? false : _ref$enableReinitiali, - onSubmit = _ref.onSubmit, - rest = _objectWithoutPropertiesLoose(_ref, ["validateOnChange", "validateOnBlur", "validateOnMount", "isInitialValid", "enableReinitialize", "onSubmit"]); - - var props = _extends({ - validateOnChange: validateOnChange, - validateOnBlur: validateOnBlur, - validateOnMount: validateOnMount, - onSubmit: onSubmit - }, rest); - - var initialValues = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(props.initialValues); - var initialErrors = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(props.initialErrors || emptyErrors); - var initialTouched = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(props.initialTouched || emptyTouched); - var initialStatus = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(props.initialStatus); - var isMounted = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(false); - var fieldRegistry = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)({}); - - if (true) { - // eslint-disable-next-line react-hooks/rules-of-hooks - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () { - !(typeof isInitialValid === 'undefined') ? true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, 'isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead.') : 0 : void 0; // eslint-disable-next-line - }, []); - } - - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () { - isMounted.current = true; - return function () { - isMounted.current = false; - }; - }, []); - - var _React$useReducer = (0,react__WEBPACK_IMPORTED_MODULE_0__.useReducer)(formikReducer, { - values: props.initialValues, - errors: props.initialErrors || emptyErrors, - touched: props.initialTouched || emptyTouched, - status: props.initialStatus, - isSubmitting: false, - isValidating: false, - submitCount: 0 - }), - state = _React$useReducer[0], - dispatch = _React$useReducer[1]; - - var runValidateHandler = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (values, field) { - return new Promise(function (resolve, reject) { - var maybePromisedErrors = props.validate(values, field); - - if (maybePromisedErrors == null) { - // use loose null check here on purpose - resolve(emptyErrors); - } else if (isPromise(maybePromisedErrors)) { - maybePromisedErrors.then(function (errors) { - resolve(errors || emptyErrors); - }, function (actualException) { - if (true) { - console.warn("Warning: An unhandled error was caught during validation in ", actualException); - } - - reject(actualException); - }); - } else { - resolve(maybePromisedErrors); - } - }); - }, [props.validate]); - /** - * Run validation against a Yup schema and optionally run a function if successful - */ - - var runValidationSchema = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (values, field) { - var validationSchema = props.validationSchema; - var schema = isFunction(validationSchema) ? validationSchema(field) : validationSchema; - var promise = field && schema.validateAt ? schema.validateAt(field, values) : validateYupSchema(values, schema); - return new Promise(function (resolve, reject) { - promise.then(function () { - resolve(emptyErrors); - }, function (err) { - // Yup will throw a validation error if validation fails. We catch those and - // resolve them into Formik errors. We can sniff if something is a Yup error - // by checking error.name. - // @see https://github.com/jquense/yup#validationerrorerrors-string--arraystring-value-any-path-string - if (err.name === 'ValidationError') { - resolve(yupToFormErrors(err)); - } else { - // We throw any other errors - if (true) { - console.warn("Warning: An unhandled error was caught during validation in ", err); - } - - reject(err); - } - }); - }); - }, [props.validationSchema]); - var runSingleFieldLevelValidation = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (field, value) { - return new Promise(function (resolve) { - return resolve(fieldRegistry.current[field].validate(value)); - }); - }, []); - var runFieldLevelValidations = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (values) { - var fieldKeysWithValidation = Object.keys(fieldRegistry.current).filter(function (f) { - return isFunction(fieldRegistry.current[f].validate); - }); // Construct an array with all of the field validation functions - - var fieldValidations = fieldKeysWithValidation.length > 0 ? fieldKeysWithValidation.map(function (f) { - return runSingleFieldLevelValidation(f, getIn(values, f)); - }) : [Promise.resolve('DO_NOT_DELETE_YOU_WILL_BE_FIRED')]; // use special case ;) - - return Promise.all(fieldValidations).then(function (fieldErrorsList) { - return fieldErrorsList.reduce(function (prev, curr, index) { - if (curr === 'DO_NOT_DELETE_YOU_WILL_BE_FIRED') { - return prev; - } - - if (curr) { - prev = setIn(prev, fieldKeysWithValidation[index], curr); - } - - return prev; - }, {}); - }); - }, [runSingleFieldLevelValidation]); // Run all validations and return the result - - var runAllValidations = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (values) { - return Promise.all([runFieldLevelValidations(values), props.validationSchema ? runValidationSchema(values) : {}, props.validate ? runValidateHandler(values) : {}]).then(function (_ref2) { - var fieldErrors = _ref2[0], - schemaErrors = _ref2[1], - validateErrors = _ref2[2]; - var combinedErrors = deepmerge__WEBPACK_IMPORTED_MODULE_2__["default"].all([fieldErrors, schemaErrors, validateErrors], { - arrayMerge: arrayMerge - }); - return combinedErrors; - }); - }, [props.validate, props.validationSchema, runFieldLevelValidations, runValidateHandler, runValidationSchema]); // Run all validations methods and update state accordingly - - var validateFormWithHighPriority = useEventCallback(function (values) { - if (values === void 0) { - values = state.values; - } - - dispatch({ - type: 'SET_ISVALIDATING', - payload: true - }); - return runAllValidations(values).then(function (combinedErrors) { - if (!!isMounted.current) { - dispatch({ - type: 'SET_ISVALIDATING', - payload: false - }); - dispatch({ - type: 'SET_ERRORS', - payload: combinedErrors - }); - } - - return combinedErrors; - }); - }); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () { - if (validateOnMount && isMounted.current === true && react_fast_compare__WEBPACK_IMPORTED_MODULE_1___default()(initialValues.current, props.initialValues)) { - validateFormWithHighPriority(initialValues.current); - } - }, [validateOnMount, validateFormWithHighPriority]); - var resetForm = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (nextState) { - var values = nextState && nextState.values ? nextState.values : initialValues.current; - var errors = nextState && nextState.errors ? nextState.errors : initialErrors.current ? initialErrors.current : props.initialErrors || {}; - var touched = nextState && nextState.touched ? nextState.touched : initialTouched.current ? initialTouched.current : props.initialTouched || {}; - var status = nextState && nextState.status ? nextState.status : initialStatus.current ? initialStatus.current : props.initialStatus; - initialValues.current = values; - initialErrors.current = errors; - initialTouched.current = touched; - initialStatus.current = status; - - var dispatchFn = function dispatchFn() { - dispatch({ - type: 'RESET_FORM', - payload: { - isSubmitting: !!nextState && !!nextState.isSubmitting, - errors: errors, - touched: touched, - status: status, - values: values, - isValidating: !!nextState && !!nextState.isValidating, - submitCount: !!nextState && !!nextState.submitCount && typeof nextState.submitCount === 'number' ? nextState.submitCount : 0 - } - }); - }; - - if (props.onReset) { - var maybePromisedOnReset = props.onReset(state.values, imperativeMethods); - - if (isPromise(maybePromisedOnReset)) { - maybePromisedOnReset.then(dispatchFn); - } else { - dispatchFn(); - } - } else { - dispatchFn(); - } - }, [props.initialErrors, props.initialStatus, props.initialTouched]); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () { - if (isMounted.current === true && !react_fast_compare__WEBPACK_IMPORTED_MODULE_1___default()(initialValues.current, props.initialValues)) { - if (enableReinitialize) { - initialValues.current = props.initialValues; - resetForm(); - } - - if (validateOnMount) { - validateFormWithHighPriority(initialValues.current); - } - } - }, [enableReinitialize, props.initialValues, resetForm, validateOnMount, validateFormWithHighPriority]); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () { - if (enableReinitialize && isMounted.current === true && !react_fast_compare__WEBPACK_IMPORTED_MODULE_1___default()(initialErrors.current, props.initialErrors)) { - initialErrors.current = props.initialErrors || emptyErrors; - dispatch({ - type: 'SET_ERRORS', - payload: props.initialErrors || emptyErrors - }); - } - }, [enableReinitialize, props.initialErrors]); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () { - if (enableReinitialize && isMounted.current === true && !react_fast_compare__WEBPACK_IMPORTED_MODULE_1___default()(initialTouched.current, props.initialTouched)) { - initialTouched.current = props.initialTouched || emptyTouched; - dispatch({ - type: 'SET_TOUCHED', - payload: props.initialTouched || emptyTouched - }); - } - }, [enableReinitialize, props.initialTouched]); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () { - if (enableReinitialize && isMounted.current === true && !react_fast_compare__WEBPACK_IMPORTED_MODULE_1___default()(initialStatus.current, props.initialStatus)) { - initialStatus.current = props.initialStatus; - dispatch({ - type: 'SET_STATUS', - payload: props.initialStatus - }); - } - }, [enableReinitialize, props.initialStatus, props.initialTouched]); - var validateField = useEventCallback(function (name) { - // This will efficiently validate a single field by avoiding state - // changes if the validation function is synchronous. It's different from - // what is called when using validateForm. - if (fieldRegistry.current[name] && isFunction(fieldRegistry.current[name].validate)) { - var value = getIn(state.values, name); - var maybePromise = fieldRegistry.current[name].validate(value); - - if (isPromise(maybePromise)) { - // Only flip isValidating if the function is async. - dispatch({ - type: 'SET_ISVALIDATING', - payload: true - }); - return maybePromise.then(function (x) { - return x; - }).then(function (error) { - dispatch({ - type: 'SET_FIELD_ERROR', - payload: { - field: name, - value: error - } - }); - dispatch({ - type: 'SET_ISVALIDATING', - payload: false - }); - }); - } else { - dispatch({ - type: 'SET_FIELD_ERROR', - payload: { - field: name, - value: maybePromise - } - }); - return Promise.resolve(maybePromise); - } - } else if (props.validationSchema) { - dispatch({ - type: 'SET_ISVALIDATING', - payload: true - }); - return runValidationSchema(state.values, name).then(function (x) { - return x; - }).then(function (error) { - dispatch({ - type: 'SET_FIELD_ERROR', - payload: { - field: name, - value: error[name] - } - }); - dispatch({ - type: 'SET_ISVALIDATING', - payload: false - }); - }); - } - - return Promise.resolve(); - }); - var registerField = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (name, _ref3) { - var validate = _ref3.validate; - fieldRegistry.current[name] = { - validate: validate - }; - }, []); - var unregisterField = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (name) { - delete fieldRegistry.current[name]; - }, []); - var setTouched = useEventCallback(function (touched, shouldValidate) { - dispatch({ - type: 'SET_TOUCHED', - payload: touched - }); - var willValidate = shouldValidate === undefined ? validateOnBlur : shouldValidate; - return willValidate ? validateFormWithHighPriority(state.values) : Promise.resolve(); - }); - var setErrors = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (errors) { - dispatch({ - type: 'SET_ERRORS', - payload: errors - }); - }, []); - var setValues = useEventCallback(function (values, shouldValidate) { - var resolvedValues = isFunction(values) ? values(state.values) : values; - dispatch({ - type: 'SET_VALUES', - payload: resolvedValues - }); - var willValidate = shouldValidate === undefined ? validateOnChange : shouldValidate; - return willValidate ? validateFormWithHighPriority(resolvedValues) : Promise.resolve(); - }); - var setFieldError = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (field, value) { - dispatch({ - type: 'SET_FIELD_ERROR', - payload: { - field: field, - value: value - } - }); - }, []); - var setFieldValue = useEventCallback(function (field, value, shouldValidate) { - dispatch({ - type: 'SET_FIELD_VALUE', - payload: { - field: field, - value: value - } - }); - var willValidate = shouldValidate === undefined ? validateOnChange : shouldValidate; - return willValidate ? validateFormWithHighPriority(setIn(state.values, field, value)) : Promise.resolve(); - }); - var executeChange = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (eventOrTextValue, maybePath) { - // By default, assume that the first argument is a string. This allows us to use - // handleChange with React Native and React Native Web's onChangeText prop which - // provides just the value of the input. - var field = maybePath; - var val = eventOrTextValue; - var parsed; // If the first argument is not a string though, it has to be a synthetic React Event (or a fake one), - // so we handle like we would a normal HTML change event. - - if (!isString(eventOrTextValue)) { - // If we can, persist the event - // @see https://reactjs.org/docs/events.html#event-pooling - if (eventOrTextValue.persist) { - eventOrTextValue.persist(); - } - - var target = eventOrTextValue.target ? eventOrTextValue.target : eventOrTextValue.currentTarget; - var type = target.type, - name = target.name, - id = target.id, - value = target.value, - checked = target.checked, - outerHTML = target.outerHTML, - options = target.options, - multiple = target.multiple; - field = maybePath ? maybePath : name ? name : id; - - if (!field && "development" !== "production") { - warnAboutMissingIdentifier({ - htmlContent: outerHTML, - documentationAnchorLink: 'handlechange-e-reactchangeeventany--void', - handlerName: 'handleChange' - }); - } - - val = /number|range/.test(type) ? (parsed = parseFloat(value), isNaN(parsed) ? '' : parsed) : /checkbox/.test(type) // checkboxes - ? getValueForCheckbox(getIn(state.values, field), checked, value) : options && multiple // - ? getSelectedValues(options) : value; - } - - if (field) { - // Set form fields by name - setFieldValue(field, val); - } - }, [setFieldValue, state.values]); - var handleChange = useEventCallback(function (eventOrPath) { - if (isString(eventOrPath)) { - return function (event) { - return executeChange(event, eventOrPath); - }; - } else { - executeChange(eventOrPath); - } - }); - var setFieldTouched = useEventCallback(function (field, touched, shouldValidate) { - if (touched === void 0) { - touched = true; - } - - dispatch({ - type: 'SET_FIELD_TOUCHED', - payload: { - field: field, - value: touched - } - }); - var willValidate = shouldValidate === undefined ? validateOnBlur : shouldValidate; - return willValidate ? validateFormWithHighPriority(state.values) : Promise.resolve(); - }); - var executeBlur = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (e, path) { - if (e.persist) { - e.persist(); - } - - var _e$target = e.target, - name = _e$target.name, - id = _e$target.id, - outerHTML = _e$target.outerHTML; - var field = path ? path : name ? name : id; - - if (!field && "development" !== "production") { - warnAboutMissingIdentifier({ - htmlContent: outerHTML, - documentationAnchorLink: 'handleblur-e-any--void', - handlerName: 'handleBlur' - }); - } - - setFieldTouched(field, true); - }, [setFieldTouched]); - var handleBlur = useEventCallback(function (eventOrString) { - if (isString(eventOrString)) { - return function (event) { - return executeBlur(event, eventOrString); - }; - } else { - executeBlur(eventOrString); - } - }); - var setFormikState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (stateOrCb) { - if (isFunction(stateOrCb)) { - dispatch({ - type: 'SET_FORMIK_STATE', - payload: stateOrCb - }); - } else { - dispatch({ - type: 'SET_FORMIK_STATE', - payload: function payload() { - return stateOrCb; - } - }); - } - }, []); - var setStatus = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (status) { - dispatch({ - type: 'SET_STATUS', - payload: status - }); - }, []); - var setSubmitting = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (isSubmitting) { - dispatch({ - type: 'SET_ISSUBMITTING', - payload: isSubmitting - }); - }, []); - var submitForm = useEventCallback(function () { - dispatch({ - type: 'SUBMIT_ATTEMPT' - }); - return validateFormWithHighPriority().then(function (combinedErrors) { - // In case an error was thrown and passed to the resolved Promise, - // `combinedErrors` can be an instance of an Error. We need to check - // that and abort the submit. - // If we don't do that, calling `Object.keys(new Error())` yields an - // empty array, which causes the validation to pass and the form - // to be submitted. - var isInstanceOfError = combinedErrors instanceof Error; - var isActuallyValid = !isInstanceOfError && Object.keys(combinedErrors).length === 0; - - if (isActuallyValid) { - // Proceed with submit... - // - // To respect sync submit fns, we can't simply wrap executeSubmit in a promise and - // _always_ dispatch SUBMIT_SUCCESS because isSubmitting would then always be false. - // This would be fine in simple cases, but make it impossible to disable submit - // buttons where people use callbacks or promises as side effects (which is basically - // all of v1 Formik code). Instead, recall that we are inside of a promise chain already, - // so we can try/catch executeSubmit(), if it returns undefined, then just bail. - // If there are errors, throw em. Otherwise, wrap executeSubmit in a promise and handle - // cleanup of isSubmitting on behalf of the consumer. - var promiseOrUndefined; - - try { - promiseOrUndefined = executeSubmit(); // Bail if it's sync, consumer is responsible for cleaning up - // via setSubmitting(false) - - if (promiseOrUndefined === undefined) { - return; - } - } catch (error) { - throw error; - } - - return Promise.resolve(promiseOrUndefined).then(function (result) { - if (!!isMounted.current) { - dispatch({ - type: 'SUBMIT_SUCCESS' - }); - } - - return result; - })["catch"](function (_errors) { - if (!!isMounted.current) { - dispatch({ - type: 'SUBMIT_FAILURE' - }); // This is a legit error rejected by the onSubmit fn - // so we don't want to break the promise chain - - throw _errors; - } - }); - } else if (!!isMounted.current) { - // ^^^ Make sure Formik is still mounted before updating state - dispatch({ - type: 'SUBMIT_FAILURE' - }); // throw combinedErrors; - - if (isInstanceOfError) { - throw combinedErrors; - } - } - - return; - }); - }); - var handleSubmit = useEventCallback(function (e) { - if (e && e.preventDefault && isFunction(e.preventDefault)) { - e.preventDefault(); - } - - if (e && e.stopPropagation && isFunction(e.stopPropagation)) { - e.stopPropagation(); - } // Warn if form submission is triggered by a without a - // specified `type` attribute during development. This mitigates - // a common gotcha in forms with both reset and submit buttons, - // where the dev forgets to add type="button" to the reset button. - - - if ( true && typeof document !== 'undefined') { - // Safely get the active element (works with IE) - var activeElement = getActiveElement(); - - if (activeElement !== null && activeElement instanceof HTMLButtonElement) { - !(activeElement.attributes && activeElement.attributes.getNamedItem('type')) ? true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, 'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.') : 0 : void 0; - } - } - - submitForm()["catch"](function (reason) { - console.warn("Warning: An unhandled error was caught from submitForm()", reason); - }); - }); - var imperativeMethods = { - resetForm: resetForm, - validateForm: validateFormWithHighPriority, - validateField: validateField, - setErrors: setErrors, - setFieldError: setFieldError, - setFieldTouched: setFieldTouched, - setFieldValue: setFieldValue, - setStatus: setStatus, - setSubmitting: setSubmitting, - setTouched: setTouched, - setValues: setValues, - setFormikState: setFormikState, - submitForm: submitForm - }; - var executeSubmit = useEventCallback(function () { - return onSubmit(state.values, imperativeMethods); - }); - var handleReset = useEventCallback(function (e) { - if (e && e.preventDefault && isFunction(e.preventDefault)) { - e.preventDefault(); - } - - if (e && e.stopPropagation && isFunction(e.stopPropagation)) { - e.stopPropagation(); - } - - resetForm(); - }); - var getFieldMeta = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (name) { - return { - value: getIn(state.values, name), - error: getIn(state.errors, name), - touched: !!getIn(state.touched, name), - initialValue: getIn(initialValues.current, name), - initialTouched: !!getIn(initialTouched.current, name), - initialError: getIn(initialErrors.current, name) - }; - }, [state.errors, state.touched, state.values]); - var getFieldHelpers = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (name) { - return { - setValue: function setValue(value, shouldValidate) { - return setFieldValue(name, value, shouldValidate); - }, - setTouched: function setTouched(value, shouldValidate) { - return setFieldTouched(name, value, shouldValidate); - }, - setError: function setError(value) { - return setFieldError(name, value); - } - }; - }, [setFieldValue, setFieldTouched, setFieldError]); - var getFieldProps = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (nameOrOptions) { - var isAnObject = isObject(nameOrOptions); - var name = isAnObject ? nameOrOptions.name : nameOrOptions; - var valueState = getIn(state.values, name); - var field = { - name: name, - value: valueState, - onChange: handleChange, - onBlur: handleBlur - }; - - if (isAnObject) { - var type = nameOrOptions.type, - valueProp = nameOrOptions.value, - is = nameOrOptions.as, - multiple = nameOrOptions.multiple; - - if (type === 'checkbox') { - if (valueProp === undefined) { - field.checked = !!valueState; - } else { - field.checked = !!(Array.isArray(valueState) && ~valueState.indexOf(valueProp)); - field.value = valueProp; - } - } else if (type === 'radio') { - field.checked = valueState === valueProp; - field.value = valueProp; - } else if (is === 'select' && multiple) { - field.value = field.value || []; - field.multiple = true; - } - } - - return field; - }, [handleBlur, handleChange, state.values]); - var dirty = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () { - return !react_fast_compare__WEBPACK_IMPORTED_MODULE_1___default()(initialValues.current, state.values); - }, [initialValues.current, state.values]); - var isValid = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () { - return typeof isInitialValid !== 'undefined' ? dirty ? state.errors && Object.keys(state.errors).length === 0 : isInitialValid !== false && isFunction(isInitialValid) ? isInitialValid(props) : isInitialValid : state.errors && Object.keys(state.errors).length === 0; - }, [isInitialValid, dirty, state.errors, props]); - - var ctx = _extends({}, state, { - initialValues: initialValues.current, - initialErrors: initialErrors.current, - initialTouched: initialTouched.current, - initialStatus: initialStatus.current, - handleBlur: handleBlur, - handleChange: handleChange, - handleReset: handleReset, - handleSubmit: handleSubmit, - resetForm: resetForm, - setErrors: setErrors, - setFormikState: setFormikState, - setFieldTouched: setFieldTouched, - setFieldValue: setFieldValue, - setFieldError: setFieldError, - setStatus: setStatus, - setSubmitting: setSubmitting, - setTouched: setTouched, - setValues: setValues, - submitForm: submitForm, - validateForm: validateFormWithHighPriority, - validateField: validateField, - isValid: isValid, - dirty: dirty, - unregisterField: unregisterField, - registerField: registerField, - getFieldProps: getFieldProps, - getFieldMeta: getFieldMeta, - getFieldHelpers: getFieldHelpers, - validateOnBlur: validateOnBlur, - validateOnChange: validateOnChange, - validateOnMount: validateOnMount - }); - - return ctx; -} -function Formik(props) { - var formikbag = useFormik(props); - var component = props.component, - children = props.children, - render = props.render, - innerRef = props.innerRef; // This allows folks to pass a ref to - - (0,react__WEBPACK_IMPORTED_MODULE_0__.useImperativeHandle)(innerRef, function () { - return formikbag; - }); - - if (true) { - // eslint-disable-next-line react-hooks/rules-of-hooks - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () { - !!props.render ? true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, " has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace ...} /> with {(props) => ...}") : 0 : void 0; // eslint-disable-next-line - }, []); - } - - return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(FormikProvider, { - value: formikbag - }, component ? (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(component, formikbag) : render ? render(formikbag) : children // children come last, always called - ? isFunction(children) ? children(formikbag) : !isEmptyChildren(children) ? react__WEBPACK_IMPORTED_MODULE_0__.Children.only(children) : null : null); -} - -function warnAboutMissingIdentifier(_ref4) { - var htmlContent = _ref4.htmlContent, - documentationAnchorLink = _ref4.documentationAnchorLink, - handlerName = _ref4.handlerName; - console.warn("Warning: Formik called `" + handlerName + "`, but you forgot to pass an `id` or `name` attribute to your input:\n " + htmlContent + "\n Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#" + documentationAnchorLink + "\n "); -} -/** - * Transform Yup ValidationError to a more usable object - */ - - -function yupToFormErrors(yupError) { - var errors = {}; - - if (yupError.inner) { - if (yupError.inner.length === 0) { - return setIn(errors, yupError.path, yupError.message); - } - - for (var _iterator = yupError.inner, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { - var _ref5; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref5 = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref5 = _i.value; - } - - var err = _ref5; - - if (!getIn(errors, err.path)) { - errors = setIn(errors, err.path, err.message); - } - } - } - - return errors; -} -/** - * Validate a yup schema. - */ - -function validateYupSchema(values, schema, sync, context) { - if (sync === void 0) { - sync = false; - } - - if (context === void 0) { - context = {}; - } - - var validateData = prepareDataForValidation(values); - return schema[sync ? 'validateSync' : 'validate'](validateData, { - abortEarly: false, - context: context - }); -} -/** - * Recursively prepare values. - */ - -function prepareDataForValidation(values) { - var data = Array.isArray(values) ? [] : {}; - - for (var k in values) { - if (Object.prototype.hasOwnProperty.call(values, k)) { - var key = String(k); - - if (Array.isArray(values[key]) === true) { - data[key] = values[key].map(function (value) { - if (Array.isArray(value) === true || (0,lodash_es_isPlainObject__WEBPACK_IMPORTED_MODULE_7__["default"])(value)) { - return prepareDataForValidation(value); - } else { - return value !== '' ? value : undefined; - } - }); - } else if ((0,lodash_es_isPlainObject__WEBPACK_IMPORTED_MODULE_7__["default"])(values[key])) { - data[key] = prepareDataForValidation(values[key]); - } else { - data[key] = values[key] !== '' ? values[key] : undefined; - } - } - } - - return data; -} -/** - * deepmerge array merging algorithm - * https://github.com/KyleAMathews/deepmerge#combine-array - */ - -function arrayMerge(target, source, options) { - var destination = target.slice(); - source.forEach(function merge(e, i) { - if (typeof destination[i] === 'undefined') { - var cloneRequested = options.clone !== false; - var shouldClone = cloneRequested && options.isMergeableObject(e); - destination[i] = shouldClone ? (0,deepmerge__WEBPACK_IMPORTED_MODULE_2__["default"])(Array.isArray(e) ? [] : {}, e, options) : e; - } else if (options.isMergeableObject(e)) { - destination[i] = (0,deepmerge__WEBPACK_IMPORTED_MODULE_2__["default"])(target[i], e, options); - } else if (target.indexOf(e) === -1) { - destination.push(e); - } - }); - return destination; -} -/** Return multi select values based on an array of options */ - - -function getSelectedValues(options) { - return Array.from(options).filter(function (el) { - return el.selected; - }).map(function (el) { - return el.value; - }); -} -/** Return the next value for a checkbox */ - - -function getValueForCheckbox(currentValue, checked, valueProp) { - // If the current value was a boolean, return a boolean - if (typeof currentValue === 'boolean') { - return Boolean(checked); - } // If the currentValue was not a boolean we want to return an array - - - var currentArrayOfValues = []; - var isValueInArray = false; - var index = -1; - - if (!Array.isArray(currentValue)) { - // eslint-disable-next-line eqeqeq - if (!valueProp || valueProp == 'true' || valueProp == 'false') { - return Boolean(checked); - } - } else { - // If the current value is already an array, use it - currentArrayOfValues = currentValue; - index = currentValue.indexOf(valueProp); - isValueInArray = index >= 0; - } // If the checkbox was checked and the value is not already present in the aray we want to add the new value to the array of values - - - if (checked && valueProp && !isValueInArray) { - return currentArrayOfValues.concat(valueProp); - } // If the checkbox was unchecked and the value is not in the array, simply return the already existing array of values - - - if (!isValueInArray) { - return currentArrayOfValues; - } // If the checkbox was unchecked and the value is in the array, remove the value and return the array - - - return currentArrayOfValues.slice(0, index).concat(currentArrayOfValues.slice(index + 1)); -} // React currently throws a warning when using useLayoutEffect on the server. -// To get around it, we can conditionally useEffect on the server (no-op) and -// useLayoutEffect in the browser. -// @see https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85 - - -var useIsomorphicLayoutEffect = typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined' ? react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_0__.useEffect; - -function useEventCallback(fn) { - var ref = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(fn); // we copy a ref to the callback scoped to the current state/props on each render - - useIsomorphicLayoutEffect(function () { - ref.current = fn; - }); - return (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return ref.current.apply(void 0, args); - }, []); -} - -function useField(propsOrFieldName) { - var formik = useFormikContext(); - var getFieldProps = formik.getFieldProps, - getFieldMeta = formik.getFieldMeta, - getFieldHelpers = formik.getFieldHelpers, - registerField = formik.registerField, - unregisterField = formik.unregisterField; - var isAnObject = isObject(propsOrFieldName); // Normalize propsOrFieldName to FieldHookConfig - - var props = isAnObject ? propsOrFieldName : { - name: propsOrFieldName - }; - var fieldName = props.name, - validateFn = props.validate; - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () { - if (fieldName) { - registerField(fieldName, { - validate: validateFn - }); - } - - return function () { - if (fieldName) { - unregisterField(fieldName); - } - }; - }, [registerField, unregisterField, fieldName, validateFn]); - - if (true) { - !formik ? true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, 'useField() / must be used underneath a component or withFormik() higher order component') : 0 : void 0; - } - - !fieldName ? true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, 'Invalid field name. Either pass `useField` a string or an object containing a `name` key.') : 0 : void 0; - return [getFieldProps(props), getFieldMeta(fieldName), getFieldHelpers(fieldName)]; -} -function Field(_ref) { - var validate = _ref.validate, - name = _ref.name, - render = _ref.render, - children = _ref.children, - is = _ref.as, - component = _ref.component, - props = _objectWithoutPropertiesLoose(_ref, ["validate", "name", "render", "children", "as", "component"]); - - var _useFormikContext = useFormikContext(), - formik = _objectWithoutPropertiesLoose(_useFormikContext, ["validate", "validationSchema"]); - - if (true) { - // eslint-disable-next-line react-hooks/rules-of-hooks - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () { - !!render ? true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, " has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace ...} /> with {({field, form, meta}) => ...}") : 0 : void 0; - !!(is && children && isFunction(children)) ? true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, 'You should not use and as a function in the same component; will be ignored.') : 0 : void 0; - !!(component && children && isFunction(children)) ? true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, 'You should not use and as a function in the same component; will be ignored.') : 0 : void 0; - !!(render && children && !isEmptyChildren(children)) ? true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, 'You should not use and in the same component; will be ignored') : 0 : void 0; // eslint-disable-next-line - }, []); - } // Register field and field-level validation with parent - - - var registerField = formik.registerField, - unregisterField = formik.unregisterField; - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () { - registerField(name, { - validate: validate - }); - return function () { - unregisterField(name); - }; - }, [registerField, unregisterField, name, validate]); - var field = formik.getFieldProps(_extends({ - name: name - }, props)); - var meta = formik.getFieldMeta(name); - var legacyBag = { - field: field, - form: formik - }; - - if (render) { - return render(_extends({}, legacyBag, { - meta: meta - })); - } - - if (isFunction(children)) { - return children(_extends({}, legacyBag, { - meta: meta - })); - } - - if (component) { - // This behavior is backwards compat with earlier Formik 0.9 to 1.x - if (typeof component === 'string') { - var innerRef = props.innerRef, - rest = _objectWithoutPropertiesLoose(props, ["innerRef"]); - - return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(component, _extends({ - ref: innerRef - }, field, rest), children); - } // We don't pass `meta` for backwards compat - - - return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(component, _extends({ - field: field, - form: formik - }, props), children); - } // default to input here so we can check for both `as` and `children` above - - - var asElement = is || 'input'; - - if (typeof asElement === 'string') { - var _innerRef = props.innerRef, - _rest = _objectWithoutPropertiesLoose(props, ["innerRef"]); - - return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(asElement, _extends({ - ref: _innerRef - }, field, _rest), children); - } - - return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(asElement, _extends({}, field, props), children); -} - -var Form = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (props, ref) { - // iOS needs an "action" attribute for nice input: https://stackoverflow.com/a/39485162/406725 - // We default the action to "#" in case the preventDefault fails (just updates the URL hash) - var action = props.action, - rest = _objectWithoutPropertiesLoose(props, ["action"]); - - var _action = action != null ? action : '#'; - - var _useFormikContext = useFormikContext(), - handleReset = _useFormikContext.handleReset, - handleSubmit = _useFormikContext.handleSubmit; - - return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("form", Object.assign({ - onSubmit: handleSubmit, - ref: ref, - onReset: handleReset, - action: _action - }, rest)); -}); -Form.displayName = 'Form'; - -/** - * A public higher-order component to access the imperative API - */ - -function withFormik(_ref) { - var _ref$mapPropsToValues = _ref.mapPropsToValues, - mapPropsToValues = _ref$mapPropsToValues === void 0 ? function (vanillaProps) { - var val = {}; - - for (var k in vanillaProps) { - if (vanillaProps.hasOwnProperty(k) && typeof vanillaProps[k] !== 'function') { - // @todo TypeScript fix - val[k] = vanillaProps[k]; - } - } - - return val; - } : _ref$mapPropsToValues, - config = _objectWithoutPropertiesLoose(_ref, ["mapPropsToValues"]); - - return function createFormik(Component$1) { - var componentDisplayName = Component$1.displayName || Component$1.name || Component$1.constructor && Component$1.constructor.name || 'Component'; - /** - * We need to use closures here for to provide the wrapped component's props to - * the respective withFormik config methods. - */ - - var C = /*#__PURE__*/function (_React$Component) { - _inheritsLoose(C, _React$Component); - - function C() { - var _this; - - _this = _React$Component.apply(this, arguments) || this; - - _this.validate = function (values) { - return config.validate(values, _this.props); - }; - - _this.validationSchema = function () { - return isFunction(config.validationSchema) ? config.validationSchema(_this.props) : config.validationSchema; - }; - - _this.handleSubmit = function (values, actions) { - return config.handleSubmit(values, _extends({}, actions, { - props: _this.props - })); - }; - /** - * Just avoiding a render callback for perf here - */ - - - _this.renderFormComponent = function (formikProps) { - return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(Component$1, Object.assign({}, _this.props, formikProps)); - }; - - return _this; - } - - var _proto = C.prototype; - - _proto.render = function render() { - var _this$props = this.props, - props = _objectWithoutPropertiesLoose(_this$props, ["children"]); - - return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(Formik, Object.assign({}, props, config, { - validate: config.validate && this.validate, - validationSchema: config.validationSchema && this.validationSchema, - initialValues: mapPropsToValues(this.props), - initialStatus: config.mapPropsToStatus && config.mapPropsToStatus(this.props), - initialErrors: config.mapPropsToErrors && config.mapPropsToErrors(this.props), - initialTouched: config.mapPropsToTouched && config.mapPropsToTouched(this.props), - onSubmit: this.handleSubmit, - children: this.renderFormComponent - })); - }; - - return C; - }(react__WEBPACK_IMPORTED_MODULE_0__.Component); - - C.displayName = "WithFormik(" + componentDisplayName + ")"; - return hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_3___default()(C, Component$1 // cast type to ComponentClass (even if SFC) - ); - }; -} - -/** - * Connect any component to Formik context, and inject as a prop called `formik`; - * @param Comp React Component - */ - -function connect(Comp) { - var C = function C(props) { - return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(FormikConsumer, null, function (formik) { - !!!formik ? true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, "Formik context is undefined, please verify you are rendering , , , , or your custom context-using component as a child of a component. Component name: " + Comp.name) : 0 : void 0; - return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(Comp, Object.assign({}, props, { - formik: formik - })); - }); - }; - - var componentDisplayName = Comp.displayName || Comp.name || Comp.constructor && Comp.constructor.name || 'Component'; // Assign Comp to C.WrappedComponent so we can access the inner component in tests - // For example, gets us - - C.WrappedComponent = Comp; - C.displayName = "FormikConnect(" + componentDisplayName + ")"; - return hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_3___default()(C, Comp // cast type to ComponentClass (even if SFC) - ); -} - -/** - * Some array helpers! - */ - -var move = function move(array, from, to) { - var copy = copyArrayLike(array); - var value = copy[from]; - copy.splice(from, 1); - copy.splice(to, 0, value); - return copy; -}; -var swap = function swap(arrayLike, indexA, indexB) { - var copy = copyArrayLike(arrayLike); - var a = copy[indexA]; - copy[indexA] = copy[indexB]; - copy[indexB] = a; - return copy; -}; -var insert = function insert(arrayLike, index, value) { - var copy = copyArrayLike(arrayLike); - copy.splice(index, 0, value); - return copy; -}; -var replace = function replace(arrayLike, index, value) { - var copy = copyArrayLike(arrayLike); - copy[index] = value; - return copy; -}; - -var copyArrayLike = function copyArrayLike(arrayLike) { - if (!arrayLike) { - return []; - } else if (Array.isArray(arrayLike)) { - return [].concat(arrayLike); - } else { - var maxIndex = Object.keys(arrayLike).map(function (key) { - return parseInt(key); - }).reduce(function (max, el) { - return el > max ? el : max; - }, 0); - return Array.from(_extends({}, arrayLike, { - length: maxIndex + 1 - })); - } -}; - -var FieldArrayInner = /*#__PURE__*/function (_React$Component) { - _inheritsLoose(FieldArrayInner, _React$Component); - - function FieldArrayInner(props) { - var _this; - - _this = _React$Component.call(this, props) || this; - - _this.updateArrayField = function (fn, alterTouched, alterErrors) { - var _this$props = _this.props, - name = _this$props.name, - setFormikState = _this$props.formik.setFormikState; - setFormikState(function (prevState) { - var updateErrors = typeof alterErrors === 'function' ? alterErrors : fn; - var updateTouched = typeof alterTouched === 'function' ? alterTouched : fn; // values fn should be executed before updateErrors and updateTouched, - // otherwise it causes an error with unshift. - - var values = setIn(prevState.values, name, fn(getIn(prevState.values, name))); - var fieldError = alterErrors ? updateErrors(getIn(prevState.errors, name)) : undefined; - var fieldTouched = alterTouched ? updateTouched(getIn(prevState.touched, name)) : undefined; - - if (isEmptyArray(fieldError)) { - fieldError = undefined; - } - - if (isEmptyArray(fieldTouched)) { - fieldTouched = undefined; - } - - return _extends({}, prevState, { - values: values, - errors: alterErrors ? setIn(prevState.errors, name, fieldError) : prevState.errors, - touched: alterTouched ? setIn(prevState.touched, name, fieldTouched) : prevState.touched - }); - }); - }; - - _this.push = function (value) { - return _this.updateArrayField(function (arrayLike) { - return [].concat(copyArrayLike(arrayLike), [(0,lodash_es_cloneDeep__WEBPACK_IMPORTED_MODULE_8__["default"])(value)]); - }, false, false); - }; - - _this.handlePush = function (value) { - return function () { - return _this.push(value); - }; - }; - - _this.swap = function (indexA, indexB) { - return _this.updateArrayField(function (array) { - return swap(array, indexA, indexB); - }, true, true); - }; - - _this.handleSwap = function (indexA, indexB) { - return function () { - return _this.swap(indexA, indexB); - }; - }; - - _this.move = function (from, to) { - return _this.updateArrayField(function (array) { - return move(array, from, to); - }, true, true); - }; - - _this.handleMove = function (from, to) { - return function () { - return _this.move(from, to); - }; - }; - - _this.insert = function (index, value) { - return _this.updateArrayField(function (array) { - return insert(array, index, value); - }, function (array) { - return insert(array, index, null); - }, function (array) { - return insert(array, index, null); - }); - }; - - _this.handleInsert = function (index, value) { - return function () { - return _this.insert(index, value); - }; - }; - - _this.replace = function (index, value) { - return _this.updateArrayField(function (array) { - return replace(array, index, value); - }, false, false); - }; - - _this.handleReplace = function (index, value) { - return function () { - return _this.replace(index, value); - }; - }; - - _this.unshift = function (value) { - var length = -1; - - _this.updateArrayField(function (array) { - var arr = array ? [value].concat(array) : [value]; - - if (length < 0) { - length = arr.length; - } - - return arr; - }, function (array) { - var arr = array ? [null].concat(array) : [null]; - - if (length < 0) { - length = arr.length; - } - - return arr; - }, function (array) { - var arr = array ? [null].concat(array) : [null]; - - if (length < 0) { - length = arr.length; - } - - return arr; - }); - - return length; - }; - - _this.handleUnshift = function (value) { - return function () { - return _this.unshift(value); - }; - }; - - _this.handleRemove = function (index) { - return function () { - return _this.remove(index); - }; - }; - - _this.handlePop = function () { - return function () { - return _this.pop(); - }; - }; // We need TypeScript generics on these, so we'll bind them in the constructor - // @todo Fix TS 3.2.1 - - - _this.remove = _this.remove.bind(_assertThisInitialized(_this)); - _this.pop = _this.pop.bind(_assertThisInitialized(_this)); - return _this; - } - - var _proto = FieldArrayInner.prototype; - - _proto.componentDidUpdate = function componentDidUpdate(prevProps) { - if (this.props.validateOnChange && this.props.formik.validateOnChange && !react_fast_compare__WEBPACK_IMPORTED_MODULE_1___default()(getIn(prevProps.formik.values, prevProps.name), getIn(this.props.formik.values, this.props.name))) { - this.props.formik.validateForm(this.props.formik.values); - } - }; - - _proto.remove = function remove(index) { - // We need to make sure we also remove relevant pieces of `touched` and `errors` - var result; - this.updateArrayField( // so this gets call 3 times - function (array) { - var copy = array ? copyArrayLike(array) : []; - - if (!result) { - result = copy[index]; - } - - if (isFunction(copy.splice)) { - copy.splice(index, 1); - } - - return copy; - }, true, true); - return result; - }; - - _proto.pop = function pop() { - // Remove relevant pieces of `touched` and `errors` too! - var result; - this.updateArrayField( // so this gets call 3 times - function (array) { - var tmp = array; - - if (!result) { - result = tmp && tmp.pop && tmp.pop(); - } - - return tmp; - }, true, true); - return result; - }; - - _proto.render = function render() { - var arrayHelpers = { - push: this.push, - pop: this.pop, - swap: this.swap, - move: this.move, - insert: this.insert, - replace: this.replace, - unshift: this.unshift, - remove: this.remove, - handlePush: this.handlePush, - handlePop: this.handlePop, - handleSwap: this.handleSwap, - handleMove: this.handleMove, - handleInsert: this.handleInsert, - handleReplace: this.handleReplace, - handleUnshift: this.handleUnshift, - handleRemove: this.handleRemove - }; - - var _this$props2 = this.props, - component = _this$props2.component, - render = _this$props2.render, - children = _this$props2.children, - name = _this$props2.name, - _this$props2$formik = _this$props2.formik, - restOfFormik = _objectWithoutPropertiesLoose(_this$props2$formik, ["validate", "validationSchema"]); - - var props = _extends({}, arrayHelpers, { - form: restOfFormik, - name: name - }); - - return component ? (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(component, props) : render ? render(props) : children // children come last, always called - ? typeof children === 'function' ? children(props) : !isEmptyChildren(children) ? react__WEBPACK_IMPORTED_MODULE_0__.Children.only(children) : null : null; - }; - - return FieldArrayInner; -}(react__WEBPACK_IMPORTED_MODULE_0__.Component); - -FieldArrayInner.defaultProps = { - validateOnChange: true -}; -var FieldArray = /*#__PURE__*/connect(FieldArrayInner); - -var ErrorMessageImpl = /*#__PURE__*/function (_React$Component) { - _inheritsLoose(ErrorMessageImpl, _React$Component); - - function ErrorMessageImpl() { - return _React$Component.apply(this, arguments) || this; - } - - var _proto = ErrorMessageImpl.prototype; - - _proto.shouldComponentUpdate = function shouldComponentUpdate(props) { - if (getIn(this.props.formik.errors, this.props.name) !== getIn(props.formik.errors, this.props.name) || getIn(this.props.formik.touched, this.props.name) !== getIn(props.formik.touched, this.props.name) || Object.keys(this.props).length !== Object.keys(props).length) { - return true; - } else { - return false; - } - }; - - _proto.render = function render() { - var _this$props = this.props, - component = _this$props.component, - formik = _this$props.formik, - render = _this$props.render, - children = _this$props.children, - name = _this$props.name, - rest = _objectWithoutPropertiesLoose(_this$props, ["component", "formik", "render", "children", "name"]); - - var touch = getIn(formik.touched, name); - var error = getIn(formik.errors, name); - return !!touch && !!error ? render ? isFunction(render) ? render(error) : null : children ? isFunction(children) ? children(error) : null : component ? (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(component, rest, error) : error : null; - }; - - return ErrorMessageImpl; -}(react__WEBPACK_IMPORTED_MODULE_0__.Component); - -var ErrorMessage = /*#__PURE__*/connect(ErrorMessageImpl); - -/** - * Custom Field component for quickly hooking into Formik - * context and wiring up forms. - */ - -var FastFieldInner = /*#__PURE__*/function (_React$Component) { - _inheritsLoose(FastFieldInner, _React$Component); - - function FastFieldInner(props) { - var _this; - - _this = _React$Component.call(this, props) || this; - var render = props.render, - children = props.children, - component = props.component, - is = props.as, - name = props.name; - !!render ? true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, " has been deprecated. Please use a child callback function instead: {props => ...} instead.") : 0 : void 0; - !!(component && render) ? true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, 'You should not use and in the same component; will be ignored') : 0 : void 0; - !!(is && children && isFunction(children)) ? true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, 'You should not use and as a function in the same component; will be ignored.') : 0 : void 0; - !!(component && children && isFunction(children)) ? true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, 'You should not use and as a function in the same component; will be ignored.') : 0 : void 0; - !!(render && children && !isEmptyChildren(children)) ? true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, 'You should not use and in the same component; will be ignored') : 0 : void 0; - return _this; - } - - var _proto = FastFieldInner.prototype; - - _proto.shouldComponentUpdate = function shouldComponentUpdate(props) { - if (this.props.shouldUpdate) { - return this.props.shouldUpdate(props, this.props); - } else if (props.name !== this.props.name || getIn(props.formik.values, this.props.name) !== getIn(this.props.formik.values, this.props.name) || getIn(props.formik.errors, this.props.name) !== getIn(this.props.formik.errors, this.props.name) || getIn(props.formik.touched, this.props.name) !== getIn(this.props.formik.touched, this.props.name) || Object.keys(this.props).length !== Object.keys(props).length || props.formik.isSubmitting !== this.props.formik.isSubmitting) { - return true; - } else { - return false; - } - }; - - _proto.componentDidMount = function componentDidMount() { - // Register the Field with the parent Formik. Parent will cycle through - // registered Field's validate fns right prior to submit - this.props.formik.registerField(this.props.name, { - validate: this.props.validate - }); - }; - - _proto.componentDidUpdate = function componentDidUpdate(prevProps) { - if (this.props.name !== prevProps.name) { - this.props.formik.unregisterField(prevProps.name); - this.props.formik.registerField(this.props.name, { - validate: this.props.validate - }); - } - - if (this.props.validate !== prevProps.validate) { - this.props.formik.registerField(this.props.name, { - validate: this.props.validate - }); - } - }; - - _proto.componentWillUnmount = function componentWillUnmount() { - this.props.formik.unregisterField(this.props.name); - }; - - _proto.render = function render() { - var _this$props = this.props, - name = _this$props.name, - render = _this$props.render, - is = _this$props.as, - children = _this$props.children, - component = _this$props.component, - formik = _this$props.formik, - props = _objectWithoutPropertiesLoose(_this$props, ["validate", "name", "render", "as", "children", "component", "shouldUpdate", "formik"]); - - var restOfFormik = _objectWithoutPropertiesLoose(formik, ["validate", "validationSchema"]); - - var field = formik.getFieldProps(_extends({ - name: name - }, props)); - var meta = { - value: getIn(formik.values, name), - error: getIn(formik.errors, name), - touched: !!getIn(formik.touched, name), - initialValue: getIn(formik.initialValues, name), - initialTouched: !!getIn(formik.initialTouched, name), - initialError: getIn(formik.initialErrors, name) - }; - var bag = { - field: field, - meta: meta, - form: restOfFormik - }; - - if (render) { - return render(bag); - } - - if (isFunction(children)) { - return children(bag); - } - - if (component) { - // This behavior is backwards compat with earlier Formik 0.9 to 1.x - if (typeof component === 'string') { - var innerRef = props.innerRef, - rest = _objectWithoutPropertiesLoose(props, ["innerRef"]); - - return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(component, _extends({ - ref: innerRef - }, field, rest), children); - } // We don't pass `meta` for backwards compat - - - return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(component, _extends({ - field: field, - form: formik - }, props), children); - } // default to input here so we can check for both `as` and `children` above - - - var asElement = is || 'input'; - - if (typeof asElement === 'string') { - var _innerRef = props.innerRef, - _rest = _objectWithoutPropertiesLoose(props, ["innerRef"]); - - return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(asElement, _extends({ - ref: _innerRef - }, field, _rest), children); - } - - return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(asElement, _extends({}, field, props), children); - }; - - return FastFieldInner; -}(react__WEBPACK_IMPORTED_MODULE_0__.Component); - -var FastField = /*#__PURE__*/connect(FastFieldInner); - - -//# sourceMappingURL=formik.esm.js.map - - -/***/ }), - -/***/ "./node_modules/function-bind/implementation.js": -/***/ ((module) => { - -"use strict"; - - -/* eslint no-invalid-this: 1 */ - -var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible '; -var slice = Array.prototype.slice; -var toStr = Object.prototype.toString; -var funcType = '[object Function]'; - -module.exports = function bind(that) { - var target = this; - if (typeof target !== 'function' || toStr.call(target) !== funcType) { - throw new TypeError(ERROR_MESSAGE + target); - } - var args = slice.call(arguments, 1); - - var bound; - var binder = function () { - if (this instanceof bound) { - var result = target.apply( - this, - args.concat(slice.call(arguments)) - ); - if (Object(result) === result) { - return result; - } - return this; - } else { - return target.apply( - that, - args.concat(slice.call(arguments)) - ); - } - }; - - var boundLength = Math.max(0, target.length - args.length); - var boundArgs = []; - for (var i = 0; i < boundLength; i++) { - boundArgs.push('$' + i); - } - - bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder); - - if (target.prototype) { - var Empty = function Empty() {}; - Empty.prototype = target.prototype; - bound.prototype = new Empty(); - Empty.prototype = null; - } - - return bound; -}; - - -/***/ }), - -/***/ "./node_modules/function-bind/index.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var implementation = __webpack_require__("./node_modules/function-bind/implementation.js"); - -module.exports = Function.prototype.bind || implementation; - - -/***/ }), - -/***/ "./node_modules/get-intrinsic/index.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var undefined; - -var $SyntaxError = SyntaxError; -var $Function = Function; -var $TypeError = TypeError; - -// eslint-disable-next-line consistent-return -var getEvalledConstructor = function (expressionSyntax) { - try { - return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')(); - } catch (e) {} -}; - -var $gOPD = Object.getOwnPropertyDescriptor; -if ($gOPD) { - try { - $gOPD({}, ''); - } catch (e) { - $gOPD = null; // this is IE 8, which has a broken gOPD - } -} - -var throwTypeError = function () { - throw new $TypeError(); -}; -var ThrowTypeError = $gOPD - ? (function () { - try { - // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties - arguments.callee; // IE 8 does not throw here - return throwTypeError; - } catch (calleeThrows) { - try { - // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '') - return $gOPD(arguments, 'callee').get; - } catch (gOPDthrows) { - return throwTypeError; - } - } - }()) - : throwTypeError; - -var hasSymbols = __webpack_require__("./node_modules/has-symbols/index.js")(); - -var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto - -var needsEval = {}; - -var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array); - -var INTRINSICS = { - '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError, - '%Array%': Array, - '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer, - '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined, - '%AsyncFromSyncIteratorPrototype%': undefined, - '%AsyncFunction%': needsEval, - '%AsyncGenerator%': needsEval, - '%AsyncGeneratorFunction%': needsEval, - '%AsyncIteratorPrototype%': needsEval, - '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics, - '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt, - '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array, - '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array, - '%Boolean%': Boolean, - '%DataView%': typeof DataView === 'undefined' ? undefined : DataView, - '%Date%': Date, - '%decodeURI%': decodeURI, - '%decodeURIComponent%': decodeURIComponent, - '%encodeURI%': encodeURI, - '%encodeURIComponent%': encodeURIComponent, - '%Error%': Error, - '%eval%': eval, // eslint-disable-line no-eval - '%EvalError%': EvalError, - '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array, - '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array, - '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry, - '%Function%': $Function, - '%GeneratorFunction%': needsEval, - '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array, - '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array, - '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array, - '%isFinite%': isFinite, - '%isNaN%': isNaN, - '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined, - '%JSON%': typeof JSON === 'object' ? JSON : undefined, - '%Map%': typeof Map === 'undefined' ? undefined : Map, - '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()), - '%Math%': Math, - '%Number%': Number, - '%Object%': Object, - '%parseFloat%': parseFloat, - '%parseInt%': parseInt, - '%Promise%': typeof Promise === 'undefined' ? undefined : Promise, - '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy, - '%RangeError%': RangeError, - '%ReferenceError%': ReferenceError, - '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect, - '%RegExp%': RegExp, - '%Set%': typeof Set === 'undefined' ? undefined : Set, - '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()), - '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer, - '%String%': String, - '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined, - '%Symbol%': hasSymbols ? Symbol : undefined, - '%SyntaxError%': $SyntaxError, - '%ThrowTypeError%': ThrowTypeError, - '%TypedArray%': TypedArray, - '%TypeError%': $TypeError, - '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array, - '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray, - '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array, - '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array, - '%URIError%': URIError, - '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap, - '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef, - '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet -}; - -try { - null.error; // eslint-disable-line no-unused-expressions -} catch (e) { - // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229 - var errorProto = getProto(getProto(e)); - INTRINSICS['%Error.prototype%'] = errorProto; -} - -var doEval = function doEval(name) { - var value; - if (name === '%AsyncFunction%') { - value = getEvalledConstructor('async function () {}'); - } else if (name === '%GeneratorFunction%') { - value = getEvalledConstructor('function* () {}'); - } else if (name === '%AsyncGeneratorFunction%') { - value = getEvalledConstructor('async function* () {}'); - } else if (name === '%AsyncGenerator%') { - var fn = doEval('%AsyncGeneratorFunction%'); - if (fn) { - value = fn.prototype; - } - } else if (name === '%AsyncIteratorPrototype%') { - var gen = doEval('%AsyncGenerator%'); - if (gen) { - value = getProto(gen.prototype); - } - } - - INTRINSICS[name] = value; - - return value; -}; - -var LEGACY_ALIASES = { - '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'], - '%ArrayPrototype%': ['Array', 'prototype'], - '%ArrayProto_entries%': ['Array', 'prototype', 'entries'], - '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'], - '%ArrayProto_keys%': ['Array', 'prototype', 'keys'], - '%ArrayProto_values%': ['Array', 'prototype', 'values'], - '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'], - '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'], - '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'], - '%BooleanPrototype%': ['Boolean', 'prototype'], - '%DataViewPrototype%': ['DataView', 'prototype'], - '%DatePrototype%': ['Date', 'prototype'], - '%ErrorPrototype%': ['Error', 'prototype'], - '%EvalErrorPrototype%': ['EvalError', 'prototype'], - '%Float32ArrayPrototype%': ['Float32Array', 'prototype'], - '%Float64ArrayPrototype%': ['Float64Array', 'prototype'], - '%FunctionPrototype%': ['Function', 'prototype'], - '%Generator%': ['GeneratorFunction', 'prototype'], - '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'], - '%Int8ArrayPrototype%': ['Int8Array', 'prototype'], - '%Int16ArrayPrototype%': ['Int16Array', 'prototype'], - '%Int32ArrayPrototype%': ['Int32Array', 'prototype'], - '%JSONParse%': ['JSON', 'parse'], - '%JSONStringify%': ['JSON', 'stringify'], - '%MapPrototype%': ['Map', 'prototype'], - '%NumberPrototype%': ['Number', 'prototype'], - '%ObjectPrototype%': ['Object', 'prototype'], - '%ObjProto_toString%': ['Object', 'prototype', 'toString'], - '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'], - '%PromisePrototype%': ['Promise', 'prototype'], - '%PromiseProto_then%': ['Promise', 'prototype', 'then'], - '%Promise_all%': ['Promise', 'all'], - '%Promise_reject%': ['Promise', 'reject'], - '%Promise_resolve%': ['Promise', 'resolve'], - '%RangeErrorPrototype%': ['RangeError', 'prototype'], - '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'], - '%RegExpPrototype%': ['RegExp', 'prototype'], - '%SetPrototype%': ['Set', 'prototype'], - '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'], - '%StringPrototype%': ['String', 'prototype'], - '%SymbolPrototype%': ['Symbol', 'prototype'], - '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'], - '%TypedArrayPrototype%': ['TypedArray', 'prototype'], - '%TypeErrorPrototype%': ['TypeError', 'prototype'], - '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'], - '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'], - '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'], - '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'], - '%URIErrorPrototype%': ['URIError', 'prototype'], - '%WeakMapPrototype%': ['WeakMap', 'prototype'], - '%WeakSetPrototype%': ['WeakSet', 'prototype'] -}; - -var bind = __webpack_require__("./node_modules/function-bind/index.js"); -var hasOwn = __webpack_require__("./node_modules/has/src/index.js"); -var $concat = bind.call(Function.call, Array.prototype.concat); -var $spliceApply = bind.call(Function.apply, Array.prototype.splice); -var $replace = bind.call(Function.call, String.prototype.replace); -var $strSlice = bind.call(Function.call, String.prototype.slice); -var $exec = bind.call(Function.call, RegExp.prototype.exec); - -/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */ -var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g; -var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */ -var stringToPath = function stringToPath(string) { - var first = $strSlice(string, 0, 1); - var last = $strSlice(string, -1); - if (first === '%' && last !== '%') { - throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`'); - } else if (last === '%' && first !== '%') { - throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`'); - } - var result = []; - $replace(string, rePropName, function (match, number, quote, subString) { - result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match; - }); - return result; -}; -/* end adaptation */ - -var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) { - var intrinsicName = name; - var alias; - if (hasOwn(LEGACY_ALIASES, intrinsicName)) { - alias = LEGACY_ALIASES[intrinsicName]; - intrinsicName = '%' + alias[0] + '%'; - } - - if (hasOwn(INTRINSICS, intrinsicName)) { - var value = INTRINSICS[intrinsicName]; - if (value === needsEval) { - value = doEval(intrinsicName); - } - if (typeof value === 'undefined' && !allowMissing) { - throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!'); - } - - return { - alias: alias, - name: intrinsicName, - value: value - }; - } - - throw new $SyntaxError('intrinsic ' + name + ' does not exist!'); -}; - -module.exports = function GetIntrinsic(name, allowMissing) { - if (typeof name !== 'string' || name.length === 0) { - throw new $TypeError('intrinsic name must be a non-empty string'); - } - if (arguments.length > 1 && typeof allowMissing !== 'boolean') { - throw new $TypeError('"allowMissing" argument must be a boolean'); - } - - if ($exec(/^%?[^%]*%?$/, name) === null) { - throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name'); - } - var parts = stringToPath(name); - var intrinsicBaseName = parts.length > 0 ? parts[0] : ''; - - var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing); - var intrinsicRealName = intrinsic.name; - var value = intrinsic.value; - var skipFurtherCaching = false; - - var alias = intrinsic.alias; - if (alias) { - intrinsicBaseName = alias[0]; - $spliceApply(parts, $concat([0, 1], alias)); - } - - for (var i = 1, isOwn = true; i < parts.length; i += 1) { - var part = parts[i]; - var first = $strSlice(part, 0, 1); - var last = $strSlice(part, -1); - if ( - ( - (first === '"' || first === "'" || first === '`') - || (last === '"' || last === "'" || last === '`') - ) - && first !== last - ) { - throw new $SyntaxError('property names with quotes must have matching quotes'); - } - if (part === 'constructor' || !isOwn) { - skipFurtherCaching = true; - } - - intrinsicBaseName += '.' + part; - intrinsicRealName = '%' + intrinsicBaseName + '%'; - - if (hasOwn(INTRINSICS, intrinsicRealName)) { - value = INTRINSICS[intrinsicRealName]; - } else if (value != null) { - if (!(part in value)) { - if (!allowMissing) { - throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.'); - } - return void undefined; - } - if ($gOPD && (i + 1) >= parts.length) { - var desc = $gOPD(value, part); - isOwn = !!desc; - - // By convention, when a data property is converted to an accessor - // property to emulate a data property that does not suffer from - // the override mistake, that accessor's getter is marked with - // an `originalValue` property. Here, when we detect this, we - // uphold the illusion by pretending to see that original data - // property, i.e., returning the value rather than the getter - // itself. - if (isOwn && 'get' in desc && !('originalValue' in desc.get)) { - value = desc.get; - } else { - value = value[part]; - } - } else { - isOwn = hasOwn(value, part); - value = value[part]; - } - - if (isOwn && !skipFurtherCaching) { - INTRINSICS[intrinsicRealName] = value; - } - } - } - return value; -}; - - -/***/ }), - -/***/ "./node_modules/has-symbols/index.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var origSymbol = typeof Symbol !== 'undefined' && Symbol; -var hasSymbolSham = __webpack_require__("./node_modules/has-symbols/shams.js"); - -module.exports = function hasNativeSymbols() { - if (typeof origSymbol !== 'function') { return false; } - if (typeof Symbol !== 'function') { return false; } - if (typeof origSymbol('foo') !== 'symbol') { return false; } - if (typeof Symbol('bar') !== 'symbol') { return false; } - - return hasSymbolSham(); -}; - - -/***/ }), - -/***/ "./node_modules/has-symbols/shams.js": -/***/ ((module) => { - -"use strict"; - - -/* eslint complexity: [2, 18], max-statements: [2, 33] */ -module.exports = function hasSymbols() { - if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; } - if (typeof Symbol.iterator === 'symbol') { return true; } - - var obj = {}; - var sym = Symbol('test'); - var symObj = Object(sym); - if (typeof sym === 'string') { return false; } - - if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; } - if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; } - - // temp disabled per https://github.com/ljharb/object.assign/issues/17 - // if (sym instanceof Symbol) { return false; } - // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4 - // if (!(symObj instanceof Symbol)) { return false; } - - // if (typeof Symbol.prototype.toString !== 'function') { return false; } - // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; } - - var symVal = 42; - obj[sym] = symVal; - for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop - if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; } - - if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; } - - var syms = Object.getOwnPropertySymbols(obj); - if (syms.length !== 1 || syms[0] !== sym) { return false; } - - if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; } - - if (typeof Object.getOwnPropertyDescriptor === 'function') { - var descriptor = Object.getOwnPropertyDescriptor(obj, sym); - if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; } - } - - return true; -}; - - -/***/ }), - -/***/ "./node_modules/has/src/index.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var bind = __webpack_require__("./node_modules/function-bind/index.js"); - -module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty); - - -/***/ }), - -/***/ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var reactIs = __webpack_require__("./node_modules/hoist-non-react-statics/node_modules/react-is/index.js"); - -/** - * Copyright 2015, Yahoo! Inc. - * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. - */ -var REACT_STATICS = { - childContextTypes: true, - contextType: true, - contextTypes: true, - defaultProps: true, - displayName: true, - getDefaultProps: true, - getDerivedStateFromError: true, - getDerivedStateFromProps: true, - mixins: true, - propTypes: true, - type: true -}; -var KNOWN_STATICS = { - name: true, - length: true, - prototype: true, - caller: true, - callee: true, - arguments: true, - arity: true -}; -var FORWARD_REF_STATICS = { - '$$typeof': true, - render: true, - defaultProps: true, - displayName: true, - propTypes: true -}; -var MEMO_STATICS = { - '$$typeof': true, - compare: true, - defaultProps: true, - displayName: true, - propTypes: true, - type: true -}; -var TYPE_STATICS = {}; -TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS; -TYPE_STATICS[reactIs.Memo] = MEMO_STATICS; - -function getStatics(component) { - // React v16.11 and below - if (reactIs.isMemo(component)) { - return MEMO_STATICS; - } // React v16.12 and above - - - return TYPE_STATICS[component['$$typeof']] || REACT_STATICS; -} - -var defineProperty = Object.defineProperty; -var getOwnPropertyNames = Object.getOwnPropertyNames; -var getOwnPropertySymbols = Object.getOwnPropertySymbols; -var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; -var getPrototypeOf = Object.getPrototypeOf; -var objectPrototype = Object.prototype; -function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) { - if (typeof sourceComponent !== 'string') { - // don't hoist over string (html) components - if (objectPrototype) { - var inheritedComponent = getPrototypeOf(sourceComponent); - - if (inheritedComponent && inheritedComponent !== objectPrototype) { - hoistNonReactStatics(targetComponent, inheritedComponent, blacklist); - } - } - - var keys = getOwnPropertyNames(sourceComponent); - - if (getOwnPropertySymbols) { - keys = keys.concat(getOwnPropertySymbols(sourceComponent)); - } - - var targetStatics = getStatics(targetComponent); - var sourceStatics = getStatics(sourceComponent); - - for (var i = 0; i < keys.length; ++i) { - var key = keys[i]; - - if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) { - var descriptor = getOwnPropertyDescriptor(sourceComponent, key); - - try { - // Avoid failures from read-only properties - defineProperty(targetComponent, key, descriptor); - } catch (e) {} - } - } - } - - return targetComponent; -} - -module.exports = hoistNonReactStatics; - - -/***/ }), - -/***/ "./node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js": -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; -/** @license React v16.13.1 - * react-is.development.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - - - - - -if (true) { - (function() { -'use strict'; - -// The Symbol used to tag the ReactElement-like types. If there is no native Symbol -// nor polyfill, then a plain number is used for performance. -var hasSymbol = typeof Symbol === 'function' && Symbol.for; -var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7; -var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca; -var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb; -var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc; -var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2; -var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd; -var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary -// (unstable) APIs that have been removed. Can we remove the symbols? - -var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf; -var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf; -var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0; -var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1; -var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8; -var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3; -var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4; -var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9; -var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5; -var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6; -var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7; - -function isValidElementType(type) { - return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. - type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE); -} - -function typeOf(object) { - if (typeof object === 'object' && object !== null) { - var $$typeof = object.$$typeof; - - switch ($$typeof) { - case REACT_ELEMENT_TYPE: - var type = object.type; - - switch (type) { - case REACT_ASYNC_MODE_TYPE: - case REACT_CONCURRENT_MODE_TYPE: - case REACT_FRAGMENT_TYPE: - case REACT_PROFILER_TYPE: - case REACT_STRICT_MODE_TYPE: - case REACT_SUSPENSE_TYPE: - return type; - - default: - var $$typeofType = type && type.$$typeof; - - switch ($$typeofType) { - case REACT_CONTEXT_TYPE: - case REACT_FORWARD_REF_TYPE: - case REACT_LAZY_TYPE: - case REACT_MEMO_TYPE: - case REACT_PROVIDER_TYPE: - return $$typeofType; - - default: - return $$typeof; - } - - } - - case REACT_PORTAL_TYPE: - return $$typeof; - } - } - - return undefined; -} // AsyncMode is deprecated along with isAsyncMode - -var AsyncMode = REACT_ASYNC_MODE_TYPE; -var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE; -var ContextConsumer = REACT_CONTEXT_TYPE; -var ContextProvider = REACT_PROVIDER_TYPE; -var Element = REACT_ELEMENT_TYPE; -var ForwardRef = REACT_FORWARD_REF_TYPE; -var Fragment = REACT_FRAGMENT_TYPE; -var Lazy = REACT_LAZY_TYPE; -var Memo = REACT_MEMO_TYPE; -var Portal = REACT_PORTAL_TYPE; -var Profiler = REACT_PROFILER_TYPE; -var StrictMode = REACT_STRICT_MODE_TYPE; -var Suspense = REACT_SUSPENSE_TYPE; -var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated - -function isAsyncMode(object) { - { - if (!hasWarnedAboutDeprecatedIsAsyncMode) { - hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint - - console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.'); - } - } - - return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE; -} -function isConcurrentMode(object) { - return typeOf(object) === REACT_CONCURRENT_MODE_TYPE; -} -function isContextConsumer(object) { - return typeOf(object) === REACT_CONTEXT_TYPE; -} -function isContextProvider(object) { - return typeOf(object) === REACT_PROVIDER_TYPE; -} -function isElement(object) { - return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; -} -function isForwardRef(object) { - return typeOf(object) === REACT_FORWARD_REF_TYPE; -} -function isFragment(object) { - return typeOf(object) === REACT_FRAGMENT_TYPE; -} -function isLazy(object) { - return typeOf(object) === REACT_LAZY_TYPE; -} -function isMemo(object) { - return typeOf(object) === REACT_MEMO_TYPE; -} -function isPortal(object) { - return typeOf(object) === REACT_PORTAL_TYPE; -} -function isProfiler(object) { - return typeOf(object) === REACT_PROFILER_TYPE; -} -function isStrictMode(object) { - return typeOf(object) === REACT_STRICT_MODE_TYPE; -} -function isSuspense(object) { - return typeOf(object) === REACT_SUSPENSE_TYPE; -} - -exports.AsyncMode = AsyncMode; -exports.ConcurrentMode = ConcurrentMode; -exports.ContextConsumer = ContextConsumer; -exports.ContextProvider = ContextProvider; -exports.Element = Element; -exports.ForwardRef = ForwardRef; -exports.Fragment = Fragment; -exports.Lazy = Lazy; -exports.Memo = Memo; -exports.Portal = Portal; -exports.Profiler = Profiler; -exports.StrictMode = StrictMode; -exports.Suspense = Suspense; -exports.isAsyncMode = isAsyncMode; -exports.isConcurrentMode = isConcurrentMode; -exports.isContextConsumer = isContextConsumer; -exports.isContextProvider = isContextProvider; -exports.isElement = isElement; -exports.isForwardRef = isForwardRef; -exports.isFragment = isFragment; -exports.isLazy = isLazy; -exports.isMemo = isMemo; -exports.isPortal = isPortal; -exports.isProfiler = isProfiler; -exports.isStrictMode = isStrictMode; -exports.isSuspense = isSuspense; -exports.isValidElementType = isValidElementType; -exports.typeOf = typeOf; - })(); -} - - -/***/ }), - -/***/ "./node_modules/hoist-non-react-statics/node_modules/react-is/index.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -if (false) {} else { - module.exports = __webpack_require__("./node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js"); -} - - -/***/ }), - -/***/ "./node_modules/hyphenate-style-name/index.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* eslint-disable no-var, prefer-template */ -var uppercasePattern = /[A-Z]/g -var msPattern = /^ms-/ -var cache = {} - -function toHyphenLower(match) { - return '-' + match.toLowerCase() -} - -function hyphenateStyleName(name) { - if (cache.hasOwnProperty(name)) { - return cache[name] - } - - var hName = name.replace(uppercasePattern, toHyphenLower) - return (cache[name] = msPattern.test(hName) ? '-' + hName : hName) -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (hyphenateStyleName); - - -/***/ }), - -/***/ "./node_modules/is-in-browser/dist/module.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ "isBrowser": () => (/* binding */ isBrowser) -/* harmony export */ }); -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -var isBrowser = (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object" && (typeof document === "undefined" ? "undefined" : _typeof(document)) === 'object' && document.nodeType === 9; - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isBrowser); - - -/***/ }), - -/***/ "./node_modules/jquery/dist/jquery.js": -/***/ (function(module, exports) { - -var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! - * jQuery JavaScript Library v2.1.4 - * http://jquery.com/ - * - * Includes Sizzle.js - * http://sizzlejs.com/ - * - * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors - * Released under the MIT license - * http://jquery.org/license - * - * Date: 2015-04-28T16:01Z - */ - -(function( global, factory ) { - - if ( true && typeof module.exports === "object" ) { - // For CommonJS and CommonJS-like environments where a proper `window` - // is present, execute the factory and get jQuery. - // For environments that do not have a `window` with a `document` - // (such as Node.js), expose a factory as module.exports. - // This accentuates the need for the creation of a real `window`. - // e.g. var jQuery = require("jquery")(window); - // See ticket #14549 for more info. - module.exports = global.document ? - factory( global, true ) : - function( w ) { - if ( !w.document ) { - throw new Error( "jQuery requires a window with a document" ); - } - return factory( w ); - }; - } else { - factory( global ); - } - -// Pass this if window is not defined yet -}(typeof window !== "undefined" ? window : this, function( window, noGlobal ) { - -// Support: Firefox 18+ -// Can't be in strict mode, several libs including ASP.NET trace -// the stack via arguments.caller.callee and Firefox dies if -// you try to trace through "use strict" call chains. (#13335) -// - -var arr = []; - -var slice = arr.slice; - -var concat = arr.concat; - -var push = arr.push; - -var indexOf = arr.indexOf; - -var class2type = {}; - -var toString = class2type.toString; - -var hasOwn = class2type.hasOwnProperty; - -var support = {}; - - - -var - // Use the correct document accordingly with window argument (sandbox) - document = window.document, - - version = "2.1.4", - - // Define a local copy of jQuery - jQuery = function( selector, context ) { - // The jQuery object is actually just the init constructor 'enhanced' - // Need init if jQuery is called (just allow error to be thrown if not included) - return new jQuery.fn.init( selector, context ); - }, - - // Support: Android<4.1 - // Make sure we trim BOM and NBSP - rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, - - // Matches dashed string for camelizing - rmsPrefix = /^-ms-/, - rdashAlpha = /-([\da-z])/gi, - - // Used by jQuery.camelCase as callback to replace() - fcamelCase = function( all, letter ) { - return letter.toUpperCase(); - }; - -jQuery.fn = jQuery.prototype = { - // The current version of jQuery being used - jquery: version, - - constructor: jQuery, - - // Start with an empty selector - selector: "", - - // The default length of a jQuery object is 0 - length: 0, - - toArray: function() { - return slice.call( this ); - }, - - // Get the Nth element in the matched element set OR - // Get the whole matched element set as a clean array - get: function( num ) { - return num != null ? - - // Return just the one element from the set - ( num < 0 ? this[ num + this.length ] : this[ num ] ) : - - // Return all the elements in a clean array - slice.call( this ); - }, - - // Take an array of elements and push it onto the stack - // (returning the new matched element set) - pushStack: function( elems ) { - - // Build a new jQuery matched element set - var ret = jQuery.merge( this.constructor(), elems ); - - // Add the old object onto the stack (as a reference) - ret.prevObject = this; - ret.context = this.context; - - // Return the newly-formed element set - return ret; - }, - - // Execute a callback for every element in the matched set. - // (You can seed the arguments with an array of args, but this is - // only used internally.) - each: function( callback, args ) { - return jQuery.each( this, callback, args ); - }, - - map: function( callback ) { - return this.pushStack( jQuery.map(this, function( elem, i ) { - return callback.call( elem, i, elem ); - })); - }, - - slice: function() { - return this.pushStack( slice.apply( this, arguments ) ); - }, - - first: function() { - return this.eq( 0 ); - }, - - last: function() { - return this.eq( -1 ); - }, - - eq: function( i ) { - var len = this.length, - j = +i + ( i < 0 ? len : 0 ); - return this.pushStack( j >= 0 && j < len ? [ this[j] ] : [] ); - }, - - end: function() { - return this.prevObject || this.constructor(null); - }, - - // For internal use only. - // Behaves like an Array's method, not like a jQuery method. - push: push, - sort: arr.sort, - splice: arr.splice -}; - -jQuery.extend = jQuery.fn.extend = function() { - var options, name, src, copy, copyIsArray, clone, - target = arguments[0] || {}, - i = 1, - length = arguments.length, - deep = false; - - // Handle a deep copy situation - if ( typeof target === "boolean" ) { - deep = target; - - // Skip the boolean and the target - target = arguments[ i ] || {}; - i++; - } - - // Handle case when target is a string or something (possible in deep copy) - if ( typeof target !== "object" && !jQuery.isFunction(target) ) { - target = {}; - } - - // Extend jQuery itself if only one argument is passed - if ( i === length ) { - target = this; - i--; - } - - for ( ; i < length; i++ ) { - // Only deal with non-null/undefined values - if ( (options = arguments[ i ]) != null ) { - // Extend the base object - for ( name in options ) { - src = target[ name ]; - copy = options[ name ]; - - // Prevent never-ending loop - if ( target === copy ) { - continue; - } - - // Recurse if we're merging plain objects or arrays - if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) { - if ( copyIsArray ) { - copyIsArray = false; - clone = src && jQuery.isArray(src) ? src : []; - - } else { - clone = src && jQuery.isPlainObject(src) ? src : {}; - } - - // Never move original objects, clone them - target[ name ] = jQuery.extend( deep, clone, copy ); - - // Don't bring in undefined values - } else if ( copy !== undefined ) { - target[ name ] = copy; - } - } - } - } - - // Return the modified object - return target; -}; - -jQuery.extend({ - // Unique for each copy of jQuery on the page - expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ), - - // Assume jQuery is ready without the ready module - isReady: true, - - error: function( msg ) { - throw new Error( msg ); - }, - - noop: function() {}, - - isFunction: function( obj ) { - return jQuery.type(obj) === "function"; - }, - - isArray: Array.isArray, - - isWindow: function( obj ) { - return obj != null && obj === obj.window; - }, - - isNumeric: function( obj ) { - // parseFloat NaNs numeric-cast false positives (null|true|false|"") - // ...but misinterprets leading-number strings, particularly hex literals ("0x...") - // subtraction forces infinities to NaN - // adding 1 corrects loss of precision from parseFloat (#15100) - return !jQuery.isArray( obj ) && (obj - parseFloat( obj ) + 1) >= 0; - }, - - isPlainObject: function( obj ) { - // Not plain objects: - // - Any object or value whose internal [[Class]] property is not "[object Object]" - // - DOM nodes - // - window - if ( jQuery.type( obj ) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) { - return false; - } - - if ( obj.constructor && - !hasOwn.call( obj.constructor.prototype, "isPrototypeOf" ) ) { - return false; - } - - // If the function hasn't returned already, we're confident that - // |obj| is a plain object, created by {} or constructed with new Object - return true; - }, - - isEmptyObject: function( obj ) { - var name; - for ( name in obj ) { - return false; - } - return true; - }, - - type: function( obj ) { - if ( obj == null ) { - return obj + ""; - } - // Support: Android<4.0, iOS<6 (functionish RegExp) - return typeof obj === "object" || typeof obj === "function" ? - class2type[ toString.call(obj) ] || "object" : - typeof obj; - }, - - // Evaluates a script in a global context - globalEval: function( code ) { - var script, - indirect = eval; - - code = jQuery.trim( code ); - - if ( code ) { - // If the code includes a valid, prologue position - // strict mode pragma, execute code by injecting a - // script tag into the document. - if ( code.indexOf("use strict") === 1 ) { - script = document.createElement("script"); - script.text = code; - document.head.appendChild( script ).parentNode.removeChild( script ); - } else { - // Otherwise, avoid the DOM node creation, insertion - // and removal by using an indirect global eval - indirect( code ); - } - } - }, - - // Convert dashed to camelCase; used by the css and data modules - // Support: IE9-11+ - // Microsoft forgot to hump their vendor prefix (#9572) - camelCase: function( string ) { - return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); - }, - - nodeName: function( elem, name ) { - return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); - }, - - // args is for internal usage only - each: function( obj, callback, args ) { - var value, - i = 0, - length = obj.length, - isArray = isArraylike( obj ); - - if ( args ) { - if ( isArray ) { - for ( ; i < length; i++ ) { - value = callback.apply( obj[ i ], args ); - - if ( value === false ) { - break; - } - } - } else { - for ( i in obj ) { - value = callback.apply( obj[ i ], args ); - - if ( value === false ) { - break; - } - } - } - - // A special, fast, case for the most common use of each - } else { - if ( isArray ) { - for ( ; i < length; i++ ) { - value = callback.call( obj[ i ], i, obj[ i ] ); - - if ( value === false ) { - break; - } - } - } else { - for ( i in obj ) { - value = callback.call( obj[ i ], i, obj[ i ] ); - - if ( value === false ) { - break; - } - } - } - } - - return obj; - }, - - // Support: Android<4.1 - trim: function( text ) { - return text == null ? - "" : - ( text + "" ).replace( rtrim, "" ); - }, - - // results is for internal usage only - makeArray: function( arr, results ) { - var ret = results || []; - - if ( arr != null ) { - if ( isArraylike( Object(arr) ) ) { - jQuery.merge( ret, - typeof arr === "string" ? - [ arr ] : arr - ); - } else { - push.call( ret, arr ); - } - } - - return ret; - }, - - inArray: function( elem, arr, i ) { - return arr == null ? -1 : indexOf.call( arr, elem, i ); - }, - - merge: function( first, second ) { - var len = +second.length, - j = 0, - i = first.length; - - for ( ; j < len; j++ ) { - first[ i++ ] = second[ j ]; - } - - first.length = i; - - return first; - }, - - grep: function( elems, callback, invert ) { - var callbackInverse, - matches = [], - i = 0, - length = elems.length, - callbackExpect = !invert; - - // Go through the array, only saving the items - // that pass the validator function - for ( ; i < length; i++ ) { - callbackInverse = !callback( elems[ i ], i ); - if ( callbackInverse !== callbackExpect ) { - matches.push( elems[ i ] ); - } - } - - return matches; - }, - - // arg is for internal usage only - map: function( elems, callback, arg ) { - var value, - i = 0, - length = elems.length, - isArray = isArraylike( elems ), - ret = []; - - // Go through the array, translating each of the items to their new values - if ( isArray ) { - for ( ; i < length; i++ ) { - value = callback( elems[ i ], i, arg ); - - if ( value != null ) { - ret.push( value ); - } - } - - // Go through every key on the object, - } else { - for ( i in elems ) { - value = callback( elems[ i ], i, arg ); - - if ( value != null ) { - ret.push( value ); - } - } - } - - // Flatten any nested arrays - return concat.apply( [], ret ); - }, - - // A global GUID counter for objects - guid: 1, - - // Bind a function to a context, optionally partially applying any - // arguments. - proxy: function( fn, context ) { - var tmp, args, proxy; - - if ( typeof context === "string" ) { - tmp = fn[ context ]; - context = fn; - fn = tmp; - } - - // Quick check to determine if target is callable, in the spec - // this throws a TypeError, but we will just return undefined. - if ( !jQuery.isFunction( fn ) ) { - return undefined; - } - - // Simulated bind - args = slice.call( arguments, 2 ); - proxy = function() { - return fn.apply( context || this, args.concat( slice.call( arguments ) ) ); - }; - - // Set the guid of unique handler to the same of original handler, so it can be removed - proxy.guid = fn.guid = fn.guid || jQuery.guid++; - - return proxy; - }, - - now: Date.now, - - // jQuery.support is not used in Core but other projects attach their - // properties to it so it needs to exist. - support: support -}); - -// Populate the class2type map -jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) { - class2type[ "[object " + name + "]" ] = name.toLowerCase(); -}); - -function isArraylike( obj ) { - - // Support: iOS 8.2 (not reproducible in simulator) - // `in` check used to prevent JIT error (gh-2145) - // hasOwn isn't used here due to false negatives - // regarding Nodelist length in IE - var length = "length" in obj && obj.length, - type = jQuery.type( obj ); - - if ( type === "function" || jQuery.isWindow( obj ) ) { - return false; - } - - if ( obj.nodeType === 1 && length ) { - return true; - } - - return type === "array" || length === 0 || - typeof length === "number" && length > 0 && ( length - 1 ) in obj; -} -var Sizzle = -/*! - * Sizzle CSS Selector Engine v2.2.0-pre - * http://sizzlejs.com/ - * - * Copyright 2008, 2014 jQuery Foundation, Inc. and other contributors - * Released under the MIT license - * http://jquery.org/license - * - * Date: 2014-12-16 - */ -(function( window ) { - -var i, - support, - Expr, - getText, - isXML, - tokenize, - compile, - select, - outermostContext, - sortInput, - hasDuplicate, - - // Local document vars - setDocument, - document, - docElem, - documentIsHTML, - rbuggyQSA, - rbuggyMatches, - matches, - contains, - - // Instance-specific data - expando = "sizzle" + 1 * new Date(), - preferredDoc = window.document, - dirruns = 0, - done = 0, - classCache = createCache(), - tokenCache = createCache(), - compilerCache = createCache(), - sortOrder = function( a, b ) { - if ( a === b ) { - hasDuplicate = true; - } - return 0; - }, - - // General-purpose constants - MAX_NEGATIVE = 1 << 31, - - // Instance methods - hasOwn = ({}).hasOwnProperty, - arr = [], - pop = arr.pop, - push_native = arr.push, - push = arr.push, - slice = arr.slice, - // Use a stripped-down indexOf as it's faster than native - // http://jsperf.com/thor-indexof-vs-for/5 - indexOf = function( list, elem ) { - var i = 0, - len = list.length; - for ( ; i < len; i++ ) { - if ( list[i] === elem ) { - return i; - } - } - return -1; - }, - - booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", - - // Regular expressions - - // Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace - whitespace = "[\\x20\\t\\r\\n\\f]", - // http://www.w3.org/TR/css3-syntax/#characters - characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", - - // Loosely modeled on CSS identifier characters - // An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors - // Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier - identifier = characterEncoding.replace( "w", "w#" ), - - // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors - attributes = "\\[" + whitespace + "*(" + characterEncoding + ")(?:" + whitespace + - // Operator (capture 2) - "*([*^$|!~]?=)" + whitespace + - // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]" - "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace + - "*\\]", - - pseudos = ":(" + characterEncoding + ")(?:\\((" + - // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments: - // 1. quoted (capture 3; capture 4 or capture 5) - "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" + - // 2. simple (capture 6) - "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" + - // 3. anything else (capture 2) - ".*" + - ")\\)|)", - - // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter - rwhitespace = new RegExp( whitespace + "+", "g" ), - rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), - - rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), - rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), - - rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ), - - rpseudo = new RegExp( pseudos ), - ridentifier = new RegExp( "^" + identifier + "$" ), - - matchExpr = { - "ID": new RegExp( "^#(" + characterEncoding + ")" ), - "CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ), - "TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ), - "ATTR": new RegExp( "^" + attributes ), - "PSEUDO": new RegExp( "^" + pseudos ), - "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + - "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + - "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), - "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), - // For use in libraries implementing .is() - // We use this for POS matching in `select` - "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + - whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) - }, - - rinputs = /^(?:input|select|textarea|button)$/i, - rheader = /^h\d$/i, - - rnative = /^[^{]+\{\s*\[native \w/, - - // Easily-parseable/retrievable ID or TAG or CLASS selectors - rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, - - rsibling = /[+~]/, - rescape = /'|\\/g, - - // CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters - runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ), - funescape = function( _, escaped, escapedWhitespace ) { - var high = "0x" + escaped - 0x10000; - // NaN means non-codepoint - // Support: Firefox<24 - // Workaround erroneous numeric interpretation of +"0x" - return high !== high || escapedWhitespace ? - escaped : - high < 0 ? - // BMP codepoint - String.fromCharCode( high + 0x10000 ) : - // Supplemental Plane codepoint (surrogate pair) - String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); - }, - - // Used for iframes - // See setDocument() - // Removing the function wrapper causes a "Permission Denied" - // error in IE - unloadHandler = function() { - setDocument(); - }; - -// Optimize for push.apply( _, NodeList ) -try { - push.apply( - (arr = slice.call( preferredDoc.childNodes )), - preferredDoc.childNodes - ); - // Support: Android<4.0 - // Detect silently failing push.apply - arr[ preferredDoc.childNodes.length ].nodeType; -} catch ( e ) { - push = { apply: arr.length ? - - // Leverage slice if possible - function( target, els ) { - push_native.apply( target, slice.call(els) ); - } : - - // Support: IE<9 - // Otherwise append directly - function( target, els ) { - var j = target.length, - i = 0; - // Can't trust NodeList.length - while ( (target[j++] = els[i++]) ) {} - target.length = j - 1; - } - }; -} - -function Sizzle( selector, context, results, seed ) { - var match, elem, m, nodeType, - // QSA vars - i, groups, old, nid, newContext, newSelector; - - if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { - setDocument( context ); - } - - context = context || document; - results = results || []; - nodeType = context.nodeType; - - if ( typeof selector !== "string" || !selector || - nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) { - - return results; - } - - if ( !seed && documentIsHTML ) { - - // Try to shortcut find operations when possible (e.g., not under DocumentFragment) - if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) { - // Speed-up: Sizzle("#ID") - if ( (m = match[1]) ) { - if ( nodeType === 9 ) { - elem = context.getElementById( m ); - // Check parentNode to catch when Blackberry 4.6 returns - // nodes that are no longer in the document (jQuery #6963) - if ( elem && elem.parentNode ) { - // Handle the case where IE, Opera, and Webkit return items - // by name instead of ID - if ( elem.id === m ) { - results.push( elem ); - return results; - } - } else { - return results; - } - } else { - // Context is not a document - if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) && - contains( context, elem ) && elem.id === m ) { - results.push( elem ); - return results; - } - } - - // Speed-up: Sizzle("TAG") - } else if ( match[2] ) { - push.apply( results, context.getElementsByTagName( selector ) ); - return results; - - // Speed-up: Sizzle(".CLASS") - } else if ( (m = match[3]) && support.getElementsByClassName ) { - push.apply( results, context.getElementsByClassName( m ) ); - return results; - } - } - - // QSA path - if ( support.qsa && (!rbuggyQSA || !rbuggyQSA.test( selector )) ) { - nid = old = expando; - newContext = context; - newSelector = nodeType !== 1 && selector; - - // qSA works strangely on Element-rooted queries - // We can work around this by specifying an extra ID on the root - // and working up from there (Thanks to Andrew Dupont for the technique) - // IE 8 doesn't work on object elements - if ( nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) { - groups = tokenize( selector ); - - if ( (old = context.getAttribute("id")) ) { - nid = old.replace( rescape, "\\$&" ); - } else { - context.setAttribute( "id", nid ); - } - nid = "[id='" + nid + "'] "; - - i = groups.length; - while ( i-- ) { - groups[i] = nid + toSelector( groups[i] ); - } - newContext = rsibling.test( selector ) && testContext( context.parentNode ) || context; - newSelector = groups.join(","); - } - - if ( newSelector ) { - try { - push.apply( results, - newContext.querySelectorAll( newSelector ) - ); - return results; - } catch(qsaError) { - } finally { - if ( !old ) { - context.removeAttribute("id"); - } - } - } - } - } - - // All others - return select( selector.replace( rtrim, "$1" ), context, results, seed ); -} - -/** - * Create key-value caches of limited size - * @returns {Function(string, Object)} Returns the Object data after storing it on itself with - * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) - * deleting the oldest entry - */ -function createCache() { - var keys = []; - - function cache( key, value ) { - // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) - if ( keys.push( key + " " ) > Expr.cacheLength ) { - // Only keep the most recent entries - delete cache[ keys.shift() ]; - } - return (cache[ key + " " ] = value); - } - return cache; -} - -/** - * Mark a function for special use by Sizzle - * @param {Function} fn The function to mark - */ -function markFunction( fn ) { - fn[ expando ] = true; - return fn; -} - -/** - * Support testing using an element - * @param {Function} fn Passed the created div and expects a boolean result - */ -function assert( fn ) { - var div = document.createElement("div"); - - try { - return !!fn( div ); - } catch (e) { - return false; - } finally { - // Remove from its parent by default - if ( div.parentNode ) { - div.parentNode.removeChild( div ); - } - // release memory in IE - div = null; - } -} - -/** - * Adds the same handler for all of the specified attrs - * @param {String} attrs Pipe-separated list of attributes - * @param {Function} handler The method that will be applied - */ -function addHandle( attrs, handler ) { - var arr = attrs.split("|"), - i = attrs.length; - - while ( i-- ) { - Expr.attrHandle[ arr[i] ] = handler; - } -} - -/** - * Checks document order of two siblings - * @param {Element} a - * @param {Element} b - * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b - */ -function siblingCheck( a, b ) { - var cur = b && a, - diff = cur && a.nodeType === 1 && b.nodeType === 1 && - ( ~b.sourceIndex || MAX_NEGATIVE ) - - ( ~a.sourceIndex || MAX_NEGATIVE ); - - // Use IE sourceIndex if available on both nodes - if ( diff ) { - return diff; - } - - // Check if b follows a - if ( cur ) { - while ( (cur = cur.nextSibling) ) { - if ( cur === b ) { - return -1; - } - } - } - - return a ? 1 : -1; -} - -/** - * Returns a function to use in pseudos for input types - * @param {String} type - */ -function createInputPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === type; - }; -} - -/** - * Returns a function to use in pseudos for buttons - * @param {String} type - */ -function createButtonPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return (name === "input" || name === "button") && elem.type === type; - }; -} - -/** - * Returns a function to use in pseudos for positionals - * @param {Function} fn - */ -function createPositionalPseudo( fn ) { - return markFunction(function( argument ) { - argument = +argument; - return markFunction(function( seed, matches ) { - var j, - matchIndexes = fn( [], seed.length, argument ), - i = matchIndexes.length; - - // Match elements found at the specified indexes - while ( i-- ) { - if ( seed[ (j = matchIndexes[i]) ] ) { - seed[j] = !(matches[j] = seed[j]); - } - } - }); - }); -} - -/** - * Checks a node for validity as a Sizzle context - * @param {Element|Object=} context - * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value - */ -function testContext( context ) { - return context && typeof context.getElementsByTagName !== "undefined" && context; -} - -// Expose support vars for convenience -support = Sizzle.support = {}; - -/** - * Detects XML nodes - * @param {Element|Object} elem An element or a document - * @returns {Boolean} True iff elem is a non-HTML XML node - */ -isXML = Sizzle.isXML = function( elem ) { - // documentElement is verified for cases where it doesn't yet exist - // (such as loading iframes in IE - #4833) - var documentElement = elem && (elem.ownerDocument || elem).documentElement; - return documentElement ? documentElement.nodeName !== "HTML" : false; -}; - -/** - * Sets document-related variables once based on the current document - * @param {Element|Object} [doc] An element or document object to use to set the document - * @returns {Object} Returns the current document - */ -setDocument = Sizzle.setDocument = function( node ) { - var hasCompare, parent, - doc = node ? node.ownerDocument || node : preferredDoc; - - // If no document and documentElement is available, return - if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { - return document; - } - - // Set our document - document = doc; - docElem = doc.documentElement; - parent = doc.defaultView; - - // Support: IE>8 - // If iframe document is assigned to "document" variable and if iframe has been reloaded, - // IE will throw "permission denied" error when accessing "document" variable, see jQuery #13936 - // IE6-8 do not support the defaultView property so parent will be undefined - if ( parent && parent !== parent.top ) { - // IE11 does not have attachEvent, so all must suffer - if ( parent.addEventListener ) { - parent.addEventListener( "unload", unloadHandler, false ); - } else if ( parent.attachEvent ) { - parent.attachEvent( "onunload", unloadHandler ); - } - } - - /* Support tests - ---------------------------------------------------------------------- */ - documentIsHTML = !isXML( doc ); - - /* Attributes - ---------------------------------------------------------------------- */ - - // Support: IE<8 - // Verify that getAttribute really returns attributes and not properties - // (excepting IE8 booleans) - support.attributes = assert(function( div ) { - div.className = "i"; - return !div.getAttribute("className"); - }); - - /* getElement(s)By* - ---------------------------------------------------------------------- */ - - // Check if getElementsByTagName("*") returns only elements - support.getElementsByTagName = assert(function( div ) { - div.appendChild( doc.createComment("") ); - return !div.getElementsByTagName("*").length; - }); - - // Support: IE<9 - support.getElementsByClassName = rnative.test( doc.getElementsByClassName ); - - // Support: IE<10 - // Check if getElementById returns elements by name - // The broken getElementById methods don't pick up programatically-set names, - // so use a roundabout getElementsByName test - support.getById = assert(function( div ) { - docElem.appendChild( div ).id = expando; - return !doc.getElementsByName || !doc.getElementsByName( expando ).length; - }); - - // ID find and filter - if ( support.getById ) { - Expr.find["ID"] = function( id, context ) { - if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { - var m = context.getElementById( id ); - // Check parentNode to catch when Blackberry 4.6 returns - // nodes that are no longer in the document #6963 - return m && m.parentNode ? [ m ] : []; - } - }; - Expr.filter["ID"] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - return elem.getAttribute("id") === attrId; - }; - }; - } else { - // Support: IE6/7 - // getElementById is not reliable as a find shortcut - delete Expr.find["ID"]; - - Expr.filter["ID"] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id"); - return node && node.value === attrId; - }; - }; - } - - // Tag - Expr.find["TAG"] = support.getElementsByTagName ? - function( tag, context ) { - if ( typeof context.getElementsByTagName !== "undefined" ) { - return context.getElementsByTagName( tag ); - - // DocumentFragment nodes don't have gEBTN - } else if ( support.qsa ) { - return context.querySelectorAll( tag ); - } - } : - - function( tag, context ) { - var elem, - tmp = [], - i = 0, - // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too - results = context.getElementsByTagName( tag ); - - // Filter out possible comments - if ( tag === "*" ) { - while ( (elem = results[i++]) ) { - if ( elem.nodeType === 1 ) { - tmp.push( elem ); - } - } - - return tmp; - } - return results; - }; - - // Class - Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) { - if ( documentIsHTML ) { - return context.getElementsByClassName( className ); - } - }; - - /* QSA/matchesSelector - ---------------------------------------------------------------------- */ - - // QSA and matchesSelector support - - // matchesSelector(:active) reports false when true (IE9/Opera 11.5) - rbuggyMatches = []; - - // qSa(:focus) reports false when true (Chrome 21) - // We allow this because of a bug in IE8/9 that throws an error - // whenever `document.activeElement` is accessed on an iframe - // So, we allow :focus to pass through QSA all the time to avoid the IE error - // See http://bugs.jquery.com/ticket/13378 - rbuggyQSA = []; - - if ( (support.qsa = rnative.test( doc.querySelectorAll )) ) { - // Build QSA regex - // Regex strategy adopted from Diego Perini - assert(function( div ) { - // Select is set to empty string on purpose - // This is to test IE's treatment of not explicitly - // setting a boolean content attribute, - // since its presence should be enough - // http://bugs.jquery.com/ticket/12359 - docElem.appendChild( div ).innerHTML = "" + - "" + - ""; - - // Support: IE8, Opera 11-12.16 - // Nothing should be selected when empty strings follow ^= or $= or *= - // The test attribute must be unknown in Opera but "safe" for WinRT - // http://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section - if ( div.querySelectorAll("[msallowcapture^='']").length ) { - rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); - } - - // Support: IE8 - // Boolean attributes and "value" are not treated correctly - if ( !div.querySelectorAll("[selected]").length ) { - rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); - } - - // Support: Chrome<29, Android<4.2+, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.7+ - if ( !div.querySelectorAll( "[id~=" + expando + "-]" ).length ) { - rbuggyQSA.push("~="); - } - - // Webkit/Opera - :checked should return selected option elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - // IE8 throws error here and will not see later tests - if ( !div.querySelectorAll(":checked").length ) { - rbuggyQSA.push(":checked"); - } - - // Support: Safari 8+, iOS 8+ - // https://bugs.webkit.org/show_bug.cgi?id=136851 - // In-page `selector#id sibing-combinator selector` fails - if ( !div.querySelectorAll( "a#" + expando + "+*" ).length ) { - rbuggyQSA.push(".#.+[+~]"); - } - }); - - assert(function( div ) { - // Support: Windows 8 Native Apps - // The type and name attributes are restricted during .innerHTML assignment - var input = doc.createElement("input"); - input.setAttribute( "type", "hidden" ); - div.appendChild( input ).setAttribute( "name", "D" ); - - // Support: IE8 - // Enforce case-sensitivity of name attribute - if ( div.querySelectorAll("[name=d]").length ) { - rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" ); - } - - // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) - // IE8 throws error here and will not see later tests - if ( !div.querySelectorAll(":enabled").length ) { - rbuggyQSA.push( ":enabled", ":disabled" ); - } - - // Opera 10-11 does not throw on post-comma invalid pseudos - div.querySelectorAll("*,:x"); - rbuggyQSA.push(",.*:"); - }); - } - - if ( (support.matchesSelector = rnative.test( (matches = docElem.matches || - docElem.webkitMatchesSelector || - docElem.mozMatchesSelector || - docElem.oMatchesSelector || - docElem.msMatchesSelector) )) ) { - - assert(function( div ) { - // Check to see if it's possible to do matchesSelector - // on a disconnected node (IE 9) - support.disconnectedMatch = matches.call( div, "div" ); - - // This should fail with an exception - // Gecko does not error, returns false instead - matches.call( div, "[s!='']:x" ); - rbuggyMatches.push( "!=", pseudos ); - }); - } - - rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") ); - rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") ); - - /* Contains - ---------------------------------------------------------------------- */ - hasCompare = rnative.test( docElem.compareDocumentPosition ); - - // Element contains another - // Purposefully does not implement inclusive descendent - // As in, an element does not contain itself - contains = hasCompare || rnative.test( docElem.contains ) ? - function( a, b ) { - var adown = a.nodeType === 9 ? a.documentElement : a, - bup = b && b.parentNode; - return a === bup || !!( bup && bup.nodeType === 1 && ( - adown.contains ? - adown.contains( bup ) : - a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 - )); - } : - function( a, b ) { - if ( b ) { - while ( (b = b.parentNode) ) { - if ( b === a ) { - return true; - } - } - } - return false; - }; - - /* Sorting - ---------------------------------------------------------------------- */ - - // Document order sorting - sortOrder = hasCompare ? - function( a, b ) { - - // Flag for duplicate removal - if ( a === b ) { - hasDuplicate = true; - return 0; - } - - // Sort on method existence if only one input has compareDocumentPosition - var compare = !a.compareDocumentPosition - !b.compareDocumentPosition; - if ( compare ) { - return compare; - } - - // Calculate position if both inputs belong to the same document - compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ? - a.compareDocumentPosition( b ) : - - // Otherwise we know they are disconnected - 1; - - // Disconnected nodes - if ( compare & 1 || - (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) { - - // Choose the first element that is related to our preferred document - if ( a === doc || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) { - return -1; - } - if ( b === doc || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) { - return 1; - } - - // Maintain original order - return sortInput ? - ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : - 0; - } - - return compare & 4 ? -1 : 1; - } : - function( a, b ) { - // Exit early if the nodes are identical - if ( a === b ) { - hasDuplicate = true; - return 0; - } - - var cur, - i = 0, - aup = a.parentNode, - bup = b.parentNode, - ap = [ a ], - bp = [ b ]; - - // Parentless nodes are either documents or disconnected - if ( !aup || !bup ) { - return a === doc ? -1 : - b === doc ? 1 : - aup ? -1 : - bup ? 1 : - sortInput ? - ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : - 0; - - // If the nodes are siblings, we can do a quick check - } else if ( aup === bup ) { - return siblingCheck( a, b ); - } - - // Otherwise we need full lists of their ancestors for comparison - cur = a; - while ( (cur = cur.parentNode) ) { - ap.unshift( cur ); - } - cur = b; - while ( (cur = cur.parentNode) ) { - bp.unshift( cur ); - } - - // Walk down the tree looking for a discrepancy - while ( ap[i] === bp[i] ) { - i++; - } - - return i ? - // Do a sibling check if the nodes have a common ancestor - siblingCheck( ap[i], bp[i] ) : - - // Otherwise nodes in our document sort first - ap[i] === preferredDoc ? -1 : - bp[i] === preferredDoc ? 1 : - 0; - }; - - return doc; -}; - -Sizzle.matches = function( expr, elements ) { - return Sizzle( expr, null, null, elements ); -}; - -Sizzle.matchesSelector = function( elem, expr ) { - // Set document vars if needed - if ( ( elem.ownerDocument || elem ) !== document ) { - setDocument( elem ); - } - - // Make sure that attribute selectors are quoted - expr = expr.replace( rattributeQuotes, "='$1']" ); - - if ( support.matchesSelector && documentIsHTML && - ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && - ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { - - try { - var ret = matches.call( elem, expr ); - - // IE 9's matchesSelector returns false on disconnected nodes - if ( ret || support.disconnectedMatch || - // As well, disconnected nodes are said to be in a document - // fragment in IE 9 - elem.document && elem.document.nodeType !== 11 ) { - return ret; - } - } catch (e) {} - } - - return Sizzle( expr, document, null, [ elem ] ).length > 0; -}; - -Sizzle.contains = function( context, elem ) { - // Set document vars if needed - if ( ( context.ownerDocument || context ) !== document ) { - setDocument( context ); - } - return contains( context, elem ); -}; - -Sizzle.attr = function( elem, name ) { - // Set document vars if needed - if ( ( elem.ownerDocument || elem ) !== document ) { - setDocument( elem ); - } - - var fn = Expr.attrHandle[ name.toLowerCase() ], - // Don't get fooled by Object.prototype properties (jQuery #13807) - val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? - fn( elem, name, !documentIsHTML ) : - undefined; - - return val !== undefined ? - val : - support.attributes || !documentIsHTML ? - elem.getAttribute( name ) : - (val = elem.getAttributeNode(name)) && val.specified ? - val.value : - null; -}; - -Sizzle.error = function( msg ) { - throw new Error( "Syntax error, unrecognized expression: " + msg ); -}; - -/** - * Document sorting and removing duplicates - * @param {ArrayLike} results - */ -Sizzle.uniqueSort = function( results ) { - var elem, - duplicates = [], - j = 0, - i = 0; - - // Unless we *know* we can detect duplicates, assume their presence - hasDuplicate = !support.detectDuplicates; - sortInput = !support.sortStable && results.slice( 0 ); - results.sort( sortOrder ); - - if ( hasDuplicate ) { - while ( (elem = results[i++]) ) { - if ( elem === results[ i ] ) { - j = duplicates.push( i ); - } - } - while ( j-- ) { - results.splice( duplicates[ j ], 1 ); - } - } - - // Clear input after sorting to release objects - // See https://github.com/jquery/sizzle/pull/225 - sortInput = null; - - return results; -}; - -/** - * Utility function for retrieving the text value of an array of DOM nodes - * @param {Array|Element} elem - */ -getText = Sizzle.getText = function( elem ) { - var node, - ret = "", - i = 0, - nodeType = elem.nodeType; - - if ( !nodeType ) { - // If no nodeType, this is expected to be an array - while ( (node = elem[i++]) ) { - // Do not traverse comment nodes - ret += getText( node ); - } - } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { - // Use textContent for elements - // innerText usage removed for consistency of new lines (jQuery #11153) - if ( typeof elem.textContent === "string" ) { - return elem.textContent; - } else { - // Traverse its children - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - ret += getText( elem ); - } - } - } else if ( nodeType === 3 || nodeType === 4 ) { - return elem.nodeValue; - } - // Do not include comment or processing instruction nodes - - return ret; -}; - -Expr = Sizzle.selectors = { - - // Can be adjusted by the user - cacheLength: 50, - - createPseudo: markFunction, - - match: matchExpr, - - attrHandle: {}, - - find: {}, - - relative: { - ">": { dir: "parentNode", first: true }, - " ": { dir: "parentNode" }, - "+": { dir: "previousSibling", first: true }, - "~": { dir: "previousSibling" } - }, - - preFilter: { - "ATTR": function( match ) { - match[1] = match[1].replace( runescape, funescape ); - - // Move the given value to match[3] whether quoted or unquoted - match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape ); - - if ( match[2] === "~=" ) { - match[3] = " " + match[3] + " "; - } - - return match.slice( 0, 4 ); - }, - - "CHILD": function( match ) { - /* matches from matchExpr["CHILD"] - 1 type (only|nth|...) - 2 what (child|of-type) - 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) - 4 xn-component of xn+y argument ([+-]?\d*n|) - 5 sign of xn-component - 6 x of xn-component - 7 sign of y-component - 8 y of y-component - */ - match[1] = match[1].toLowerCase(); - - if ( match[1].slice( 0, 3 ) === "nth" ) { - // nth-* requires argument - if ( !match[3] ) { - Sizzle.error( match[0] ); - } - - // numeric x and y parameters for Expr.filter.CHILD - // remember that false/true cast respectively to 0/1 - match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) ); - match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" ); - - // other types prohibit arguments - } else if ( match[3] ) { - Sizzle.error( match[0] ); - } - - return match; - }, - - "PSEUDO": function( match ) { - var excess, - unquoted = !match[6] && match[2]; - - if ( matchExpr["CHILD"].test( match[0] ) ) { - return null; - } - - // Accept quoted arguments as-is - if ( match[3] ) { - match[2] = match[4] || match[5] || ""; - - // Strip excess characters from unquoted arguments - } else if ( unquoted && rpseudo.test( unquoted ) && - // Get excess from tokenize (recursively) - (excess = tokenize( unquoted, true )) && - // advance to the next closing parenthesis - (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) { - - // excess is a negative index - match[0] = match[0].slice( 0, excess ); - match[2] = unquoted.slice( 0, excess ); - } - - // Return only captures needed by the pseudo filter method (type and argument) - return match.slice( 0, 3 ); - } - }, - - filter: { - - "TAG": function( nodeNameSelector ) { - var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); - return nodeNameSelector === "*" ? - function() { return true; } : - function( elem ) { - return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; - }; - }, - - "CLASS": function( className ) { - var pattern = classCache[ className + " " ]; - - return pattern || - (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && - classCache( className, function( elem ) { - return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" ); - }); - }, - - "ATTR": function( name, operator, check ) { - return function( elem ) { - var result = Sizzle.attr( elem, name ); - - if ( result == null ) { - return operator === "!="; - } - if ( !operator ) { - return true; - } - - result += ""; - - return operator === "=" ? result === check : - operator === "!=" ? result !== check : - operator === "^=" ? check && result.indexOf( check ) === 0 : - operator === "*=" ? check && result.indexOf( check ) > -1 : - operator === "$=" ? check && result.slice( -check.length ) === check : - operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 : - operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : - false; - }; - }, - - "CHILD": function( type, what, argument, first, last ) { - var simple = type.slice( 0, 3 ) !== "nth", - forward = type.slice( -4 ) !== "last", - ofType = what === "of-type"; - - return first === 1 && last === 0 ? - - // Shortcut for :nth-*(n) - function( elem ) { - return !!elem.parentNode; - } : - - function( elem, context, xml ) { - var cache, outerCache, node, diff, nodeIndex, start, - dir = simple !== forward ? "nextSibling" : "previousSibling", - parent = elem.parentNode, - name = ofType && elem.nodeName.toLowerCase(), - useCache = !xml && !ofType; - - if ( parent ) { - - // :(first|last|only)-(child|of-type) - if ( simple ) { - while ( dir ) { - node = elem; - while ( (node = node[ dir ]) ) { - if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) { - return false; - } - } - // Reverse direction for :only-* (if we haven't yet done so) - start = dir = type === "only" && !start && "nextSibling"; - } - return true; - } - - start = [ forward ? parent.firstChild : parent.lastChild ]; - - // non-xml :nth-child(...) stores cache data on `parent` - if ( forward && useCache ) { - // Seek `elem` from a previously-cached index - outerCache = parent[ expando ] || (parent[ expando ] = {}); - cache = outerCache[ type ] || []; - nodeIndex = cache[0] === dirruns && cache[1]; - diff = cache[0] === dirruns && cache[2]; - node = nodeIndex && parent.childNodes[ nodeIndex ]; - - while ( (node = ++nodeIndex && node && node[ dir ] || - - // Fallback to seeking `elem` from the start - (diff = nodeIndex = 0) || start.pop()) ) { - - // When found, cache indexes on `parent` and break - if ( node.nodeType === 1 && ++diff && node === elem ) { - outerCache[ type ] = [ dirruns, nodeIndex, diff ]; - break; - } - } - - // Use previously-cached element index if available - } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) { - diff = cache[1]; - - // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...) - } else { - // Use the same loop as above to seek `elem` from the start - while ( (node = ++nodeIndex && node && node[ dir ] || - (diff = nodeIndex = 0) || start.pop()) ) { - - if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) { - // Cache the index of each encountered element - if ( useCache ) { - (node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ]; - } - - if ( node === elem ) { - break; - } - } - } - } - - // Incorporate the offset, then check against cycle size - diff -= last; - return diff === first || ( diff % first === 0 && diff / first >= 0 ); - } - }; - }, - - "PSEUDO": function( pseudo, argument ) { - // pseudo-class names are case-insensitive - // http://www.w3.org/TR/selectors/#pseudo-classes - // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters - // Remember that setFilters inherits from pseudos - var args, - fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || - Sizzle.error( "unsupported pseudo: " + pseudo ); - - // The user may use createPseudo to indicate that - // arguments are needed to create the filter function - // just as Sizzle does - if ( fn[ expando ] ) { - return fn( argument ); - } - - // But maintain support for old signatures - if ( fn.length > 1 ) { - args = [ pseudo, pseudo, "", argument ]; - return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? - markFunction(function( seed, matches ) { - var idx, - matched = fn( seed, argument ), - i = matched.length; - while ( i-- ) { - idx = indexOf( seed, matched[i] ); - seed[ idx ] = !( matches[ idx ] = matched[i] ); - } - }) : - function( elem ) { - return fn( elem, 0, args ); - }; - } - - return fn; - } - }, - - pseudos: { - // Potentially complex pseudos - "not": markFunction(function( selector ) { - // Trim the selector passed to compile - // to avoid treating leading and trailing - // spaces as combinators - var input = [], - results = [], - matcher = compile( selector.replace( rtrim, "$1" ) ); - - return matcher[ expando ] ? - markFunction(function( seed, matches, context, xml ) { - var elem, - unmatched = matcher( seed, null, xml, [] ), - i = seed.length; - - // Match elements unmatched by `matcher` - while ( i-- ) { - if ( (elem = unmatched[i]) ) { - seed[i] = !(matches[i] = elem); - } - } - }) : - function( elem, context, xml ) { - input[0] = elem; - matcher( input, null, xml, results ); - // Don't keep the element (issue #299) - input[0] = null; - return !results.pop(); - }; - }), - - "has": markFunction(function( selector ) { - return function( elem ) { - return Sizzle( selector, elem ).length > 0; - }; - }), - - "contains": markFunction(function( text ) { - text = text.replace( runescape, funescape ); - return function( elem ) { - return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1; - }; - }), - - // "Whether an element is represented by a :lang() selector - // is based solely on the element's language value - // being equal to the identifier C, - // or beginning with the identifier C immediately followed by "-". - // The matching of C against the element's language value is performed case-insensitively. - // The identifier C does not have to be a valid language name." - // http://www.w3.org/TR/selectors/#lang-pseudo - "lang": markFunction( function( lang ) { - // lang value must be a valid identifier - if ( !ridentifier.test(lang || "") ) { - Sizzle.error( "unsupported lang: " + lang ); - } - lang = lang.replace( runescape, funescape ).toLowerCase(); - return function( elem ) { - var elemLang; - do { - if ( (elemLang = documentIsHTML ? - elem.lang : - elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) { - - elemLang = elemLang.toLowerCase(); - return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; - } - } while ( (elem = elem.parentNode) && elem.nodeType === 1 ); - return false; - }; - }), - - // Miscellaneous - "target": function( elem ) { - var hash = window.location && window.location.hash; - return hash && hash.slice( 1 ) === elem.id; - }, - - "root": function( elem ) { - return elem === docElem; - }, - - "focus": function( elem ) { - return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); - }, - - // Boolean properties - "enabled": function( elem ) { - return elem.disabled === false; - }, - - "disabled": function( elem ) { - return elem.disabled === true; - }, - - "checked": function( elem ) { - // In CSS3, :checked should return both checked and selected elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - var nodeName = elem.nodeName.toLowerCase(); - return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); - }, - - "selected": function( elem ) { - // Accessing this property makes selected-by-default - // options in Safari work properly - if ( elem.parentNode ) { - elem.parentNode.selectedIndex; - } - - return elem.selected === true; - }, - - // Contents - "empty": function( elem ) { - // http://www.w3.org/TR/selectors/#empty-pseudo - // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5), - // but not by others (comment: 8; processing instruction: 7; etc.) - // nodeType < 6 works because attributes (2) do not appear as children - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - if ( elem.nodeType < 6 ) { - return false; - } - } - return true; - }, - - "parent": function( elem ) { - return !Expr.pseudos["empty"]( elem ); - }, - - // Element/input types - "header": function( elem ) { - return rheader.test( elem.nodeName ); - }, - - "input": function( elem ) { - return rinputs.test( elem.nodeName ); - }, - - "button": function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === "button" || name === "button"; - }, - - "text": function( elem ) { - var attr; - return elem.nodeName.toLowerCase() === "input" && - elem.type === "text" && - - // Support: IE<8 - // New HTML5 attribute values (e.g., "search") appear with elem.type === "text" - ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" ); - }, - - // Position-in-collection - "first": createPositionalPseudo(function() { - return [ 0 ]; - }), - - "last": createPositionalPseudo(function( matchIndexes, length ) { - return [ length - 1 ]; - }), - - "eq": createPositionalPseudo(function( matchIndexes, length, argument ) { - return [ argument < 0 ? argument + length : argument ]; - }), - - "even": createPositionalPseudo(function( matchIndexes, length ) { - var i = 0; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "odd": createPositionalPseudo(function( matchIndexes, length ) { - var i = 1; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "lt": createPositionalPseudo(function( matchIndexes, length, argument ) { - var i = argument < 0 ? argument + length : argument; - for ( ; --i >= 0; ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "gt": createPositionalPseudo(function( matchIndexes, length, argument ) { - var i = argument < 0 ? argument + length : argument; - for ( ; ++i < length; ) { - matchIndexes.push( i ); - } - return matchIndexes; - }) - } -}; - -Expr.pseudos["nth"] = Expr.pseudos["eq"]; - -// Add button/input type pseudos -for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { - Expr.pseudos[ i ] = createInputPseudo( i ); -} -for ( i in { submit: true, reset: true } ) { - Expr.pseudos[ i ] = createButtonPseudo( i ); -} - -// Easy API for creating new setFilters -function setFilters() {} -setFilters.prototype = Expr.filters = Expr.pseudos; -Expr.setFilters = new setFilters(); - -tokenize = Sizzle.tokenize = function( selector, parseOnly ) { - var matched, match, tokens, type, - soFar, groups, preFilters, - cached = tokenCache[ selector + " " ]; - - if ( cached ) { - return parseOnly ? 0 : cached.slice( 0 ); - } - - soFar = selector; - groups = []; - preFilters = Expr.preFilter; - - while ( soFar ) { - - // Comma and first run - if ( !matched || (match = rcomma.exec( soFar )) ) { - if ( match ) { - // Don't consume trailing commas as valid - soFar = soFar.slice( match[0].length ) || soFar; - } - groups.push( (tokens = []) ); - } - - matched = false; - - // Combinators - if ( (match = rcombinators.exec( soFar )) ) { - matched = match.shift(); - tokens.push({ - value: matched, - // Cast descendant combinators to space - type: match[0].replace( rtrim, " " ) - }); - soFar = soFar.slice( matched.length ); - } - - // Filters - for ( type in Expr.filter ) { - if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || - (match = preFilters[ type ]( match ))) ) { - matched = match.shift(); - tokens.push({ - value: matched, - type: type, - matches: match - }); - soFar = soFar.slice( matched.length ); - } - } - - if ( !matched ) { - break; - } - } - - // Return the length of the invalid excess - // if we're just parsing - // Otherwise, throw an error or return tokens - return parseOnly ? - soFar.length : - soFar ? - Sizzle.error( selector ) : - // Cache the tokens - tokenCache( selector, groups ).slice( 0 ); -}; - -function toSelector( tokens ) { - var i = 0, - len = tokens.length, - selector = ""; - for ( ; i < len; i++ ) { - selector += tokens[i].value; - } - return selector; -} - -function addCombinator( matcher, combinator, base ) { - var dir = combinator.dir, - checkNonElements = base && dir === "parentNode", - doneName = done++; - - return combinator.first ? - // Check against closest ancestor/preceding element - function( elem, context, xml ) { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - return matcher( elem, context, xml ); - } - } - } : - - // Check against all ancestor/preceding elements - function( elem, context, xml ) { - var oldCache, outerCache, - newCache = [ dirruns, doneName ]; - - // We can't set arbitrary data on XML nodes, so they don't benefit from dir caching - if ( xml ) { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - if ( matcher( elem, context, xml ) ) { - return true; - } - } - } - } else { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - outerCache = elem[ expando ] || (elem[ expando ] = {}); - if ( (oldCache = outerCache[ dir ]) && - oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) { - - // Assign to newCache so results back-propagate to previous elements - return (newCache[ 2 ] = oldCache[ 2 ]); - } else { - // Reuse newcache so results back-propagate to previous elements - outerCache[ dir ] = newCache; - - // A match means we're done; a fail means we have to keep checking - if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) { - return true; - } - } - } - } - } - }; -} - -function elementMatcher( matchers ) { - return matchers.length > 1 ? - function( elem, context, xml ) { - var i = matchers.length; - while ( i-- ) { - if ( !matchers[i]( elem, context, xml ) ) { - return false; - } - } - return true; - } : - matchers[0]; -} - -function multipleContexts( selector, contexts, results ) { - var i = 0, - len = contexts.length; - for ( ; i < len; i++ ) { - Sizzle( selector, contexts[i], results ); - } - return results; -} - -function condense( unmatched, map, filter, context, xml ) { - var elem, - newUnmatched = [], - i = 0, - len = unmatched.length, - mapped = map != null; - - for ( ; i < len; i++ ) { - if ( (elem = unmatched[i]) ) { - if ( !filter || filter( elem, context, xml ) ) { - newUnmatched.push( elem ); - if ( mapped ) { - map.push( i ); - } - } - } - } - - return newUnmatched; -} - -function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { - if ( postFilter && !postFilter[ expando ] ) { - postFilter = setMatcher( postFilter ); - } - if ( postFinder && !postFinder[ expando ] ) { - postFinder = setMatcher( postFinder, postSelector ); - } - return markFunction(function( seed, results, context, xml ) { - var temp, i, elem, - preMap = [], - postMap = [], - preexisting = results.length, - - // Get initial elements from seed or context - elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), - - // Prefilter to get matcher input, preserving a map for seed-results synchronization - matcherIn = preFilter && ( seed || !selector ) ? - condense( elems, preMap, preFilter, context, xml ) : - elems, - - matcherOut = matcher ? - // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, - postFinder || ( seed ? preFilter : preexisting || postFilter ) ? - - // ...intermediate processing is necessary - [] : - - // ...otherwise use results directly - results : - matcherIn; - - // Find primary matches - if ( matcher ) { - matcher( matcherIn, matcherOut, context, xml ); - } - - // Apply postFilter - if ( postFilter ) { - temp = condense( matcherOut, postMap ); - postFilter( temp, [], context, xml ); - - // Un-match failing elements by moving them back to matcherIn - i = temp.length; - while ( i-- ) { - if ( (elem = temp[i]) ) { - matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); - } - } - } - - if ( seed ) { - if ( postFinder || preFilter ) { - if ( postFinder ) { - // Get the final matcherOut by condensing this intermediate into postFinder contexts - temp = []; - i = matcherOut.length; - while ( i-- ) { - if ( (elem = matcherOut[i]) ) { - // Restore matcherIn since elem is not yet a final match - temp.push( (matcherIn[i] = elem) ); - } - } - postFinder( null, (matcherOut = []), temp, xml ); - } - - // Move matched elements from seed to results to keep them synchronized - i = matcherOut.length; - while ( i-- ) { - if ( (elem = matcherOut[i]) && - (temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) { - - seed[temp] = !(results[temp] = elem); - } - } - } - - // Add elements to results, through postFinder if defined - } else { - matcherOut = condense( - matcherOut === results ? - matcherOut.splice( preexisting, matcherOut.length ) : - matcherOut - ); - if ( postFinder ) { - postFinder( null, results, matcherOut, xml ); - } else { - push.apply( results, matcherOut ); - } - } - }); -} - -function matcherFromTokens( tokens ) { - var checkContext, matcher, j, - len = tokens.length, - leadingRelative = Expr.relative[ tokens[0].type ], - implicitRelative = leadingRelative || Expr.relative[" "], - i = leadingRelative ? 1 : 0, - - // The foundational matcher ensures that elements are reachable from top-level context(s) - matchContext = addCombinator( function( elem ) { - return elem === checkContext; - }, implicitRelative, true ), - matchAnyContext = addCombinator( function( elem ) { - return indexOf( checkContext, elem ) > -1; - }, implicitRelative, true ), - matchers = [ function( elem, context, xml ) { - var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( - (checkContext = context).nodeType ? - matchContext( elem, context, xml ) : - matchAnyContext( elem, context, xml ) ); - // Avoid hanging onto element (issue #299) - checkContext = null; - return ret; - } ]; - - for ( ; i < len; i++ ) { - if ( (matcher = Expr.relative[ tokens[i].type ]) ) { - matchers = [ addCombinator(elementMatcher( matchers ), matcher) ]; - } else { - matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); - - // Return special upon seeing a positional matcher - if ( matcher[ expando ] ) { - // Find the next relative operator (if any) for proper handling - j = ++i; - for ( ; j < len; j++ ) { - if ( Expr.relative[ tokens[j].type ] ) { - break; - } - } - return setMatcher( - i > 1 && elementMatcher( matchers ), - i > 1 && toSelector( - // If the preceding token was a descendant combinator, insert an implicit any-element `*` - tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" }) - ).replace( rtrim, "$1" ), - matcher, - i < j && matcherFromTokens( tokens.slice( i, j ) ), - j < len && matcherFromTokens( (tokens = tokens.slice( j )) ), - j < len && toSelector( tokens ) - ); - } - matchers.push( matcher ); - } - } - - return elementMatcher( matchers ); -} - -function matcherFromGroupMatchers( elementMatchers, setMatchers ) { - var bySet = setMatchers.length > 0, - byElement = elementMatchers.length > 0, - superMatcher = function( seed, context, xml, results, outermost ) { - var elem, j, matcher, - matchedCount = 0, - i = "0", - unmatched = seed && [], - setMatched = [], - contextBackup = outermostContext, - // We must always have either seed elements or outermost context - elems = seed || byElement && Expr.find["TAG"]( "*", outermost ), - // Use integer dirruns iff this is the outermost matcher - dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1), - len = elems.length; - - if ( outermost ) { - outermostContext = context !== document && context; - } - - // Add elements passing elementMatchers directly to results - // Keep `i` a string if there are no elements so `matchedCount` will be "00" below - // Support: IE<9, Safari - // Tolerate NodeList properties (IE: "length"; Safari: ) matching elements by id - for ( ; i !== len && (elem = elems[i]) != null; i++ ) { - if ( byElement && elem ) { - j = 0; - while ( (matcher = elementMatchers[j++]) ) { - if ( matcher( elem, context, xml ) ) { - results.push( elem ); - break; - } - } - if ( outermost ) { - dirruns = dirrunsUnique; - } - } - - // Track unmatched elements for set filters - if ( bySet ) { - // They will have gone through all possible matchers - if ( (elem = !matcher && elem) ) { - matchedCount--; - } - - // Lengthen the array for every element, matched or not - if ( seed ) { - unmatched.push( elem ); - } - } - } - - // Apply set filters to unmatched elements - matchedCount += i; - if ( bySet && i !== matchedCount ) { - j = 0; - while ( (matcher = setMatchers[j++]) ) { - matcher( unmatched, setMatched, context, xml ); - } - - if ( seed ) { - // Reintegrate element matches to eliminate the need for sorting - if ( matchedCount > 0 ) { - while ( i-- ) { - if ( !(unmatched[i] || setMatched[i]) ) { - setMatched[i] = pop.call( results ); - } - } - } - - // Discard index placeholder values to get only actual matches - setMatched = condense( setMatched ); - } - - // Add matches to results - push.apply( results, setMatched ); - - // Seedless set matches succeeding multiple successful matchers stipulate sorting - if ( outermost && !seed && setMatched.length > 0 && - ( matchedCount + setMatchers.length ) > 1 ) { - - Sizzle.uniqueSort( results ); - } - } - - // Override manipulation of globals by nested matchers - if ( outermost ) { - dirruns = dirrunsUnique; - outermostContext = contextBackup; - } - - return unmatched; - }; - - return bySet ? - markFunction( superMatcher ) : - superMatcher; -} - -compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) { - var i, - setMatchers = [], - elementMatchers = [], - cached = compilerCache[ selector + " " ]; - - if ( !cached ) { - // Generate a function of recursive functions that can be used to check each element - if ( !match ) { - match = tokenize( selector ); - } - i = match.length; - while ( i-- ) { - cached = matcherFromTokens( match[i] ); - if ( cached[ expando ] ) { - setMatchers.push( cached ); - } else { - elementMatchers.push( cached ); - } - } - - // Cache the compiled function - cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); - - // Save selector and tokenization - cached.selector = selector; - } - return cached; -}; - -/** - * A low-level selection function that works with Sizzle's compiled - * selector functions - * @param {String|Function} selector A selector or a pre-compiled - * selector function built with Sizzle.compile - * @param {Element} context - * @param {Array} [results] - * @param {Array} [seed] A set of elements to match against - */ -select = Sizzle.select = function( selector, context, results, seed ) { - var i, tokens, token, type, find, - compiled = typeof selector === "function" && selector, - match = !seed && tokenize( (selector = compiled.selector || selector) ); - - results = results || []; - - // Try to minimize operations if there is no seed and only one group - if ( match.length === 1 ) { - - // Take a shortcut and set the context if the root selector is an ID - tokens = match[0] = match[0].slice( 0 ); - if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && - support.getById && context.nodeType === 9 && documentIsHTML && - Expr.relative[ tokens[1].type ] ) { - - context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0]; - if ( !context ) { - return results; - - // Precompiled matchers will still verify ancestry, so step up a level - } else if ( compiled ) { - context = context.parentNode; - } - - selector = selector.slice( tokens.shift().value.length ); - } - - // Fetch a seed set for right-to-left matching - i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length; - while ( i-- ) { - token = tokens[i]; - - // Abort if we hit a combinator - if ( Expr.relative[ (type = token.type) ] ) { - break; - } - if ( (find = Expr.find[ type ]) ) { - // Search, expanding context for leading sibling combinators - if ( (seed = find( - token.matches[0].replace( runescape, funescape ), - rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context - )) ) { - - // If seed is empty or no tokens remain, we can return early - tokens.splice( i, 1 ); - selector = seed.length && toSelector( tokens ); - if ( !selector ) { - push.apply( results, seed ); - return results; - } - - break; - } - } - } - } - - // Compile and execute a filtering function if one is not provided - // Provide `match` to avoid retokenization if we modified the selector above - ( compiled || compile( selector, match ) )( - seed, - context, - !documentIsHTML, - results, - rsibling.test( selector ) && testContext( context.parentNode ) || context - ); - return results; -}; - -// One-time assignments - -// Sort stability -support.sortStable = expando.split("").sort( sortOrder ).join("") === expando; - -// Support: Chrome 14-35+ -// Always assume duplicates if they aren't passed to the comparison function -support.detectDuplicates = !!hasDuplicate; - -// Initialize against the default document -setDocument(); - -// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) -// Detached nodes confoundingly follow *each other* -support.sortDetached = assert(function( div1 ) { - // Should return 1, but returns 4 (following) - return div1.compareDocumentPosition( document.createElement("div") ) & 1; -}); - -// Support: IE<8 -// Prevent attribute/property "interpolation" -// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx -if ( !assert(function( div ) { - div.innerHTML = ""; - return div.firstChild.getAttribute("href") === "#" ; -}) ) { - addHandle( "type|href|height|width", function( elem, name, isXML ) { - if ( !isXML ) { - return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); - } - }); -} - -// Support: IE<9 -// Use defaultValue in place of getAttribute("value") -if ( !support.attributes || !assert(function( div ) { - div.innerHTML = ""; - div.firstChild.setAttribute( "value", "" ); - return div.firstChild.getAttribute( "value" ) === ""; -}) ) { - addHandle( "value", function( elem, name, isXML ) { - if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { - return elem.defaultValue; - } - }); -} - -// Support: IE<9 -// Use getAttributeNode to fetch booleans when getAttribute lies -if ( !assert(function( div ) { - return div.getAttribute("disabled") == null; -}) ) { - addHandle( booleans, function( elem, name, isXML ) { - var val; - if ( !isXML ) { - return elem[ name ] === true ? name.toLowerCase() : - (val = elem.getAttributeNode( name )) && val.specified ? - val.value : - null; - } - }); -} - -return Sizzle; - -})( window ); - - - -jQuery.find = Sizzle; -jQuery.expr = Sizzle.selectors; -jQuery.expr[":"] = jQuery.expr.pseudos; -jQuery.unique = Sizzle.uniqueSort; -jQuery.text = Sizzle.getText; -jQuery.isXMLDoc = Sizzle.isXML; -jQuery.contains = Sizzle.contains; - - - -var rneedsContext = jQuery.expr.match.needsContext; - -var rsingleTag = (/^<(\w+)\s*\/?>(?:<\/\1>|)$/); - - - -var risSimple = /^.[^:#\[\.,]*$/; - -// Implement the identical functionality for filter and not -function winnow( elements, qualifier, not ) { - if ( jQuery.isFunction( qualifier ) ) { - return jQuery.grep( elements, function( elem, i ) { - /* jshint -W018 */ - return !!qualifier.call( elem, i, elem ) !== not; - }); - - } - - if ( qualifier.nodeType ) { - return jQuery.grep( elements, function( elem ) { - return ( elem === qualifier ) !== not; - }); - - } - - if ( typeof qualifier === "string" ) { - if ( risSimple.test( qualifier ) ) { - return jQuery.filter( qualifier, elements, not ); - } - - qualifier = jQuery.filter( qualifier, elements ); - } - - return jQuery.grep( elements, function( elem ) { - return ( indexOf.call( qualifier, elem ) >= 0 ) !== not; - }); -} - -jQuery.filter = function( expr, elems, not ) { - var elem = elems[ 0 ]; - - if ( not ) { - expr = ":not(" + expr + ")"; - } - - return elems.length === 1 && elem.nodeType === 1 ? - jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] : - jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { - return elem.nodeType === 1; - })); -}; - -jQuery.fn.extend({ - find: function( selector ) { - var i, - len = this.length, - ret = [], - self = this; - - if ( typeof selector !== "string" ) { - return this.pushStack( jQuery( selector ).filter(function() { - for ( i = 0; i < len; i++ ) { - if ( jQuery.contains( self[ i ], this ) ) { - return true; - } - } - }) ); - } - - for ( i = 0; i < len; i++ ) { - jQuery.find( selector, self[ i ], ret ); - } - - // Needed because $( selector, context ) becomes $( context ).find( selector ) - ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret ); - ret.selector = this.selector ? this.selector + " " + selector : selector; - return ret; - }, - filter: function( selector ) { - return this.pushStack( winnow(this, selector || [], false) ); - }, - not: function( selector ) { - return this.pushStack( winnow(this, selector || [], true) ); - }, - is: function( selector ) { - return !!winnow( - this, - - // If this is a positional/relative selector, check membership in the returned set - // so $("p:first").is("p:last") won't return true for a doc with two "p". - typeof selector === "string" && rneedsContext.test( selector ) ? - jQuery( selector ) : - selector || [], - false - ).length; - } -}); - - -// Initialize a jQuery object - - -// A central reference to the root jQuery(document) -var rootjQuery, - - // A simple way to check for HTML strings - // Prioritize #id over to avoid XSS via location.hash (#9521) - // Strict HTML recognition (#11290: must start with <) - rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, - - init = jQuery.fn.init = function( selector, context ) { - var match, elem; - - // HANDLE: $(""), $(null), $(undefined), $(false) - if ( !selector ) { - return this; - } - - // Handle HTML strings - if ( typeof selector === "string" ) { - if ( selector[0] === "<" && selector[ selector.length - 1 ] === ">" && selector.length >= 3 ) { - // Assume that strings that start and end with <> are HTML and skip the regex check - match = [ null, selector, null ]; - - } else { - match = rquickExpr.exec( selector ); - } - - // Match html or make sure no context is specified for #id - if ( match && (match[1] || !context) ) { - - // HANDLE: $(html) -> $(array) - if ( match[1] ) { - context = context instanceof jQuery ? context[0] : context; - - // Option to run scripts is true for back-compat - // Intentionally let the error be thrown if parseHTML is not present - jQuery.merge( this, jQuery.parseHTML( - match[1], - context && context.nodeType ? context.ownerDocument || context : document, - true - ) ); - - // HANDLE: $(html, props) - if ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) { - for ( match in context ) { - // Properties of context are called as methods if possible - if ( jQuery.isFunction( this[ match ] ) ) { - this[ match ]( context[ match ] ); - - // ...and otherwise set as attributes - } else { - this.attr( match, context[ match ] ); - } - } - } - - return this; - - // HANDLE: $(#id) - } else { - elem = document.getElementById( match[2] ); - - // Support: Blackberry 4.6 - // gEBID returns nodes no longer in the document (#6963) - if ( elem && elem.parentNode ) { - // Inject the element directly into the jQuery object - this.length = 1; - this[0] = elem; - } - - this.context = document; - this.selector = selector; - return this; - } - - // HANDLE: $(expr, $(...)) - } else if ( !context || context.jquery ) { - return ( context || rootjQuery ).find( selector ); - - // HANDLE: $(expr, context) - // (which is just equivalent to: $(context).find(expr) - } else { - return this.constructor( context ).find( selector ); - } - - // HANDLE: $(DOMElement) - } else if ( selector.nodeType ) { - this.context = this[0] = selector; - this.length = 1; - return this; - - // HANDLE: $(function) - // Shortcut for document ready - } else if ( jQuery.isFunction( selector ) ) { - return typeof rootjQuery.ready !== "undefined" ? - rootjQuery.ready( selector ) : - // Execute immediately if ready is not present - selector( jQuery ); - } - - if ( selector.selector !== undefined ) { - this.selector = selector.selector; - this.context = selector.context; - } - - return jQuery.makeArray( selector, this ); - }; - -// Give the init function the jQuery prototype for later instantiation -init.prototype = jQuery.fn; - -// Initialize central reference -rootjQuery = jQuery( document ); - - -var rparentsprev = /^(?:parents|prev(?:Until|All))/, - // Methods guaranteed to produce a unique set when starting from a unique set - guaranteedUnique = { - children: true, - contents: true, - next: true, - prev: true - }; - -jQuery.extend({ - dir: function( elem, dir, until ) { - var matched = [], - truncate = until !== undefined; - - while ( (elem = elem[ dir ]) && elem.nodeType !== 9 ) { - if ( elem.nodeType === 1 ) { - if ( truncate && jQuery( elem ).is( until ) ) { - break; - } - matched.push( elem ); - } - } - return matched; - }, - - sibling: function( n, elem ) { - var matched = []; - - for ( ; n; n = n.nextSibling ) { - if ( n.nodeType === 1 && n !== elem ) { - matched.push( n ); - } - } - - return matched; - } -}); - -jQuery.fn.extend({ - has: function( target ) { - var targets = jQuery( target, this ), - l = targets.length; - - return this.filter(function() { - var i = 0; - for ( ; i < l; i++ ) { - if ( jQuery.contains( this, targets[i] ) ) { - return true; - } - } - }); - }, - - closest: function( selectors, context ) { - var cur, - i = 0, - l = this.length, - matched = [], - pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ? - jQuery( selectors, context || this.context ) : - 0; - - for ( ; i < l; i++ ) { - for ( cur = this[i]; cur && cur !== context; cur = cur.parentNode ) { - // Always skip document fragments - if ( cur.nodeType < 11 && (pos ? - pos.index(cur) > -1 : - - // Don't pass non-elements to Sizzle - cur.nodeType === 1 && - jQuery.find.matchesSelector(cur, selectors)) ) { - - matched.push( cur ); - break; - } - } - } - - return this.pushStack( matched.length > 1 ? jQuery.unique( matched ) : matched ); - }, - - // Determine the position of an element within the set - index: function( elem ) { - - // No argument, return index in parent - if ( !elem ) { - return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1; - } - - // Index in selector - if ( typeof elem === "string" ) { - return indexOf.call( jQuery( elem ), this[ 0 ] ); - } - - // Locate the position of the desired element - return indexOf.call( this, - - // If it receives a jQuery object, the first element is used - elem.jquery ? elem[ 0 ] : elem - ); - }, - - add: function( selector, context ) { - return this.pushStack( - jQuery.unique( - jQuery.merge( this.get(), jQuery( selector, context ) ) - ) - ); - }, - - addBack: function( selector ) { - return this.add( selector == null ? - this.prevObject : this.prevObject.filter(selector) - ); - } -}); - -function sibling( cur, dir ) { - while ( (cur = cur[dir]) && cur.nodeType !== 1 ) {} - return cur; -} - -jQuery.each({ - parent: function( elem ) { - var parent = elem.parentNode; - return parent && parent.nodeType !== 11 ? parent : null; - }, - parents: function( elem ) { - return jQuery.dir( elem, "parentNode" ); - }, - parentsUntil: function( elem, i, until ) { - return jQuery.dir( elem, "parentNode", until ); - }, - next: function( elem ) { - return sibling( elem, "nextSibling" ); - }, - prev: function( elem ) { - return sibling( elem, "previousSibling" ); - }, - nextAll: function( elem ) { - return jQuery.dir( elem, "nextSibling" ); - }, - prevAll: function( elem ) { - return jQuery.dir( elem, "previousSibling" ); - }, - nextUntil: function( elem, i, until ) { - return jQuery.dir( elem, "nextSibling", until ); - }, - prevUntil: function( elem, i, until ) { - return jQuery.dir( elem, "previousSibling", until ); - }, - siblings: function( elem ) { - return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem ); - }, - children: function( elem ) { - return jQuery.sibling( elem.firstChild ); - }, - contents: function( elem ) { - return elem.contentDocument || jQuery.merge( [], elem.childNodes ); - } -}, function( name, fn ) { - jQuery.fn[ name ] = function( until, selector ) { - var matched = jQuery.map( this, fn, until ); - - if ( name.slice( -5 ) !== "Until" ) { - selector = until; - } - - if ( selector && typeof selector === "string" ) { - matched = jQuery.filter( selector, matched ); - } - - if ( this.length > 1 ) { - // Remove duplicates - if ( !guaranteedUnique[ name ] ) { - jQuery.unique( matched ); - } - - // Reverse order for parents* and prev-derivatives - if ( rparentsprev.test( name ) ) { - matched.reverse(); - } - } - - return this.pushStack( matched ); - }; -}); -var rnotwhite = (/\S+/g); - - - -// String to Object options format cache -var optionsCache = {}; - -// Convert String-formatted options into Object-formatted ones and store in cache -function createOptions( options ) { - var object = optionsCache[ options ] = {}; - jQuery.each( options.match( rnotwhite ) || [], function( _, flag ) { - object[ flag ] = true; - }); - return object; -} - -/* - * Create a callback list using the following parameters: - * - * options: an optional list of space-separated options that will change how - * the callback list behaves or a more traditional option object - * - * By default a callback list will act like an event callback list and can be - * "fired" multiple times. - * - * Possible options: - * - * once: will ensure the callback list can only be fired once (like a Deferred) - * - * memory: will keep track of previous values and will call any callback added - * after the list has been fired right away with the latest "memorized" - * values (like a Deferred) - * - * unique: will ensure a callback can only be added once (no duplicate in the list) - * - * stopOnFalse: interrupt callings when a callback returns false - * - */ -jQuery.Callbacks = function( options ) { - - // Convert options from String-formatted to Object-formatted if needed - // (we check in cache first) - options = typeof options === "string" ? - ( optionsCache[ options ] || createOptions( options ) ) : - jQuery.extend( {}, options ); - - var // Last fire value (for non-forgettable lists) - memory, - // Flag to know if list was already fired - fired, - // Flag to know if list is currently firing - firing, - // First callback to fire (used internally by add and fireWith) - firingStart, - // End of the loop when firing - firingLength, - // Index of currently firing callback (modified by remove if needed) - firingIndex, - // Actual callback list - list = [], - // Stack of fire calls for repeatable lists - stack = !options.once && [], - // Fire callbacks - fire = function( data ) { - memory = options.memory && data; - fired = true; - firingIndex = firingStart || 0; - firingStart = 0; - firingLength = list.length; - firing = true; - for ( ; list && firingIndex < firingLength; firingIndex++ ) { - if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) { - memory = false; // To prevent further calls using add - break; - } - } - firing = false; - if ( list ) { - if ( stack ) { - if ( stack.length ) { - fire( stack.shift() ); - } - } else if ( memory ) { - list = []; - } else { - self.disable(); - } - } - }, - // Actual Callbacks object - self = { - // Add a callback or a collection of callbacks to the list - add: function() { - if ( list ) { - // First, we save the current length - var start = list.length; - (function add( args ) { - jQuery.each( args, function( _, arg ) { - var type = jQuery.type( arg ); - if ( type === "function" ) { - if ( !options.unique || !self.has( arg ) ) { - list.push( arg ); - } - } else if ( arg && arg.length && type !== "string" ) { - // Inspect recursively - add( arg ); - } - }); - })( arguments ); - // Do we need to add the callbacks to the - // current firing batch? - if ( firing ) { - firingLength = list.length; - // With memory, if we're not firing then - // we should call right away - } else if ( memory ) { - firingStart = start; - fire( memory ); - } - } - return this; - }, - // Remove a callback from the list - remove: function() { - if ( list ) { - jQuery.each( arguments, function( _, arg ) { - var index; - while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { - list.splice( index, 1 ); - // Handle firing indexes - if ( firing ) { - if ( index <= firingLength ) { - firingLength--; - } - if ( index <= firingIndex ) { - firingIndex--; - } - } - } - }); - } - return this; - }, - // Check if a given callback is in the list. - // If no argument is given, return whether or not list has callbacks attached. - has: function( fn ) { - return fn ? jQuery.inArray( fn, list ) > -1 : !!( list && list.length ); - }, - // Remove all callbacks from the list - empty: function() { - list = []; - firingLength = 0; - return this; - }, - // Have the list do nothing anymore - disable: function() { - list = stack = memory = undefined; - return this; - }, - // Is it disabled? - disabled: function() { - return !list; - }, - // Lock the list in its current state - lock: function() { - stack = undefined; - if ( !memory ) { - self.disable(); - } - return this; - }, - // Is it locked? - locked: function() { - return !stack; - }, - // Call all callbacks with the given context and arguments - fireWith: function( context, args ) { - if ( list && ( !fired || stack ) ) { - args = args || []; - args = [ context, args.slice ? args.slice() : args ]; - if ( firing ) { - stack.push( args ); - } else { - fire( args ); - } - } - return this; - }, - // Call all the callbacks with the given arguments - fire: function() { - self.fireWith( this, arguments ); - return this; - }, - // To know if the callbacks have already been called at least once - fired: function() { - return !!fired; - } - }; - - return self; -}; - - -jQuery.extend({ - - Deferred: function( func ) { - var tuples = [ - // action, add listener, listener list, final state - [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ], - [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ], - [ "notify", "progress", jQuery.Callbacks("memory") ] - ], - state = "pending", - promise = { - state: function() { - return state; - }, - always: function() { - deferred.done( arguments ).fail( arguments ); - return this; - }, - then: function( /* fnDone, fnFail, fnProgress */ ) { - var fns = arguments; - return jQuery.Deferred(function( newDefer ) { - jQuery.each( tuples, function( i, tuple ) { - var fn = jQuery.isFunction( fns[ i ] ) && fns[ i ]; - // deferred[ done | fail | progress ] for forwarding actions to newDefer - deferred[ tuple[1] ](function() { - var returned = fn && fn.apply( this, arguments ); - if ( returned && jQuery.isFunction( returned.promise ) ) { - returned.promise() - .done( newDefer.resolve ) - .fail( newDefer.reject ) - .progress( newDefer.notify ); - } else { - newDefer[ tuple[ 0 ] + "With" ]( this === promise ? newDefer.promise() : this, fn ? [ returned ] : arguments ); - } - }); - }); - fns = null; - }).promise(); - }, - // Get a promise for this deferred - // If obj is provided, the promise aspect is added to the object - promise: function( obj ) { - return obj != null ? jQuery.extend( obj, promise ) : promise; - } - }, - deferred = {}; - - // Keep pipe for back-compat - promise.pipe = promise.then; - - // Add list-specific methods - jQuery.each( tuples, function( i, tuple ) { - var list = tuple[ 2 ], - stateString = tuple[ 3 ]; - - // promise[ done | fail | progress ] = list.add - promise[ tuple[1] ] = list.add; - - // Handle state - if ( stateString ) { - list.add(function() { - // state = [ resolved | rejected ] - state = stateString; - - // [ reject_list | resolve_list ].disable; progress_list.lock - }, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock ); - } - - // deferred[ resolve | reject | notify ] - deferred[ tuple[0] ] = function() { - deferred[ tuple[0] + "With" ]( this === deferred ? promise : this, arguments ); - return this; - }; - deferred[ tuple[0] + "With" ] = list.fireWith; - }); - - // Make the deferred a promise - promise.promise( deferred ); - - // Call given func if any - if ( func ) { - func.call( deferred, deferred ); - } - - // All done! - return deferred; - }, - - // Deferred helper - when: function( subordinate /* , ..., subordinateN */ ) { - var i = 0, - resolveValues = slice.call( arguments ), - length = resolveValues.length, - - // the count of uncompleted subordinates - remaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0, - - // the master Deferred. If resolveValues consist of only a single Deferred, just use that. - deferred = remaining === 1 ? subordinate : jQuery.Deferred(), - - // Update function for both resolve and progress values - updateFunc = function( i, contexts, values ) { - return function( value ) { - contexts[ i ] = this; - values[ i ] = arguments.length > 1 ? slice.call( arguments ) : value; - if ( values === progressValues ) { - deferred.notifyWith( contexts, values ); - } else if ( !( --remaining ) ) { - deferred.resolveWith( contexts, values ); - } - }; - }, - - progressValues, progressContexts, resolveContexts; - - // Add listeners to Deferred subordinates; treat others as resolved - if ( length > 1 ) { - progressValues = new Array( length ); - progressContexts = new Array( length ); - resolveContexts = new Array( length ); - for ( ; i < length; i++ ) { - if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) { - resolveValues[ i ].promise() - .done( updateFunc( i, resolveContexts, resolveValues ) ) - .fail( deferred.reject ) - .progress( updateFunc( i, progressContexts, progressValues ) ); - } else { - --remaining; - } - } - } - - // If we're not waiting on anything, resolve the master - if ( !remaining ) { - deferred.resolveWith( resolveContexts, resolveValues ); - } - - return deferred.promise(); - } -}); - - -// The deferred used on DOM ready -var readyList; - -jQuery.fn.ready = function( fn ) { - // Add the callback - jQuery.ready.promise().done( fn ); - - return this; -}; - -jQuery.extend({ - // Is the DOM ready to be used? Set to true once it occurs. - isReady: false, - - // A counter to track how many items to wait for before - // the ready event fires. See #6781 - readyWait: 1, - - // Hold (or release) the ready event - holdReady: function( hold ) { - if ( hold ) { - jQuery.readyWait++; - } else { - jQuery.ready( true ); - } - }, - - // Handle when the DOM is ready - ready: function( wait ) { - - // Abort if there are pending holds or we're already ready - if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { - return; - } - - // Remember that the DOM is ready - jQuery.isReady = true; - - // If a normal DOM Ready event fired, decrement, and wait if need be - if ( wait !== true && --jQuery.readyWait > 0 ) { - return; - } - - // If there are functions bound, to execute - readyList.resolveWith( document, [ jQuery ] ); - - // Trigger any bound ready events - if ( jQuery.fn.triggerHandler ) { - jQuery( document ).triggerHandler( "ready" ); - jQuery( document ).off( "ready" ); - } - } -}); - -/** - * The ready event handler and self cleanup method - */ -function completed() { - document.removeEventListener( "DOMContentLoaded", completed, false ); - window.removeEventListener( "load", completed, false ); - jQuery.ready(); -} - -jQuery.ready.promise = function( obj ) { - if ( !readyList ) { - - readyList = jQuery.Deferred(); - - // Catch cases where $(document).ready() is called after the browser event has already occurred. - // We once tried to use readyState "interactive" here, but it caused issues like the one - // discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15 - if ( document.readyState === "complete" ) { - // Handle it asynchronously to allow scripts the opportunity to delay ready - setTimeout( jQuery.ready ); - - } else { - - // Use the handy event callback - document.addEventListener( "DOMContentLoaded", completed, false ); - - // A fallback to window.onload, that will always work - window.addEventListener( "load", completed, false ); - } - } - return readyList.promise( obj ); -}; - -// Kick off the DOM ready check even if the user does not -jQuery.ready.promise(); - - - - -// Multifunctional method to get and set values of a collection -// The value/s can optionally be executed if it's a function -var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) { - var i = 0, - len = elems.length, - bulk = key == null; - - // Sets many values - if ( jQuery.type( key ) === "object" ) { - chainable = true; - for ( i in key ) { - jQuery.access( elems, fn, i, key[i], true, emptyGet, raw ); - } - - // Sets one value - } else if ( value !== undefined ) { - chainable = true; - - if ( !jQuery.isFunction( value ) ) { - raw = true; - } - - if ( bulk ) { - // Bulk operations run against the entire set - if ( raw ) { - fn.call( elems, value ); - fn = null; - - // ...except when executing function values - } else { - bulk = fn; - fn = function( elem, key, value ) { - return bulk.call( jQuery( elem ), value ); - }; - } - } - - if ( fn ) { - for ( ; i < len; i++ ) { - fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) ); - } - } - } - - return chainable ? - elems : - - // Gets - bulk ? - fn.call( elems ) : - len ? fn( elems[0], key ) : emptyGet; -}; - - -/** - * Determines whether an object can have data - */ -jQuery.acceptData = function( owner ) { - // Accepts only: - // - Node - // - Node.ELEMENT_NODE - // - Node.DOCUMENT_NODE - // - Object - // - Any - /* jshint -W018 */ - return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); -}; - - -function Data() { - // Support: Android<4, - // Old WebKit does not have Object.preventExtensions/freeze method, - // return new empty object instead with no [[set]] accessor - Object.defineProperty( this.cache = {}, 0, { - get: function() { - return {}; - } - }); - - this.expando = jQuery.expando + Data.uid++; -} - -Data.uid = 1; -Data.accepts = jQuery.acceptData; - -Data.prototype = { - key: function( owner ) { - // We can accept data for non-element nodes in modern browsers, - // but we should not, see #8335. - // Always return the key for a frozen object. - if ( !Data.accepts( owner ) ) { - return 0; - } - - var descriptor = {}, - // Check if the owner object already has a cache key - unlock = owner[ this.expando ]; - - // If not, create one - if ( !unlock ) { - unlock = Data.uid++; - - // Secure it in a non-enumerable, non-writable property - try { - descriptor[ this.expando ] = { value: unlock }; - Object.defineProperties( owner, descriptor ); - - // Support: Android<4 - // Fallback to a less secure definition - } catch ( e ) { - descriptor[ this.expando ] = unlock; - jQuery.extend( owner, descriptor ); - } - } - - // Ensure the cache object - if ( !this.cache[ unlock ] ) { - this.cache[ unlock ] = {}; - } - - return unlock; - }, - set: function( owner, data, value ) { - var prop, - // There may be an unlock assigned to this node, - // if there is no entry for this "owner", create one inline - // and set the unlock as though an owner entry had always existed - unlock = this.key( owner ), - cache = this.cache[ unlock ]; - - // Handle: [ owner, key, value ] args - if ( typeof data === "string" ) { - cache[ data ] = value; - - // Handle: [ owner, { properties } ] args - } else { - // Fresh assignments by object are shallow copied - if ( jQuery.isEmptyObject( cache ) ) { - jQuery.extend( this.cache[ unlock ], data ); - // Otherwise, copy the properties one-by-one to the cache object - } else { - for ( prop in data ) { - cache[ prop ] = data[ prop ]; - } - } - } - return cache; - }, - get: function( owner, key ) { - // Either a valid cache is found, or will be created. - // New caches will be created and the unlock returned, - // allowing direct access to the newly created - // empty data object. A valid owner object must be provided. - var cache = this.cache[ this.key( owner ) ]; - - return key === undefined ? - cache : cache[ key ]; - }, - access: function( owner, key, value ) { - var stored; - // In cases where either: - // - // 1. No key was specified - // 2. A string key was specified, but no value provided - // - // Take the "read" path and allow the get method to determine - // which value to return, respectively either: - // - // 1. The entire cache object - // 2. The data stored at the key - // - if ( key === undefined || - ((key && typeof key === "string") && value === undefined) ) { - - stored = this.get( owner, key ); - - return stored !== undefined ? - stored : this.get( owner, jQuery.camelCase(key) ); - } - - // [*]When the key is not a string, or both a key and value - // are specified, set or extend (existing objects) with either: - // - // 1. An object of properties - // 2. A key and value - // - this.set( owner, key, value ); - - // Since the "set" path can have two possible entry points - // return the expected data based on which path was taken[*] - return value !== undefined ? value : key; - }, - remove: function( owner, key ) { - var i, name, camel, - unlock = this.key( owner ), - cache = this.cache[ unlock ]; - - if ( key === undefined ) { - this.cache[ unlock ] = {}; - - } else { - // Support array or space separated string of keys - if ( jQuery.isArray( key ) ) { - // If "name" is an array of keys... - // When data is initially created, via ("key", "val") signature, - // keys will be converted to camelCase. - // Since there is no way to tell _how_ a key was added, remove - // both plain key and camelCase key. #12786 - // This will only penalize the array argument path. - name = key.concat( key.map( jQuery.camelCase ) ); - } else { - camel = jQuery.camelCase( key ); - // Try the string as a key before any manipulation - if ( key in cache ) { - name = [ key, camel ]; - } else { - // If a key with the spaces exists, use it. - // Otherwise, create an array by matching non-whitespace - name = camel; - name = name in cache ? - [ name ] : ( name.match( rnotwhite ) || [] ); - } - } - - i = name.length; - while ( i-- ) { - delete cache[ name[ i ] ]; - } - } - }, - hasData: function( owner ) { - return !jQuery.isEmptyObject( - this.cache[ owner[ this.expando ] ] || {} - ); - }, - discard: function( owner ) { - if ( owner[ this.expando ] ) { - delete this.cache[ owner[ this.expando ] ]; - } - } -}; -var data_priv = new Data(); - -var data_user = new Data(); - - - -// Implementation Summary -// -// 1. Enforce API surface and semantic compatibility with 1.9.x branch -// 2. Improve the module's maintainability by reducing the storage -// paths to a single mechanism. -// 3. Use the same single mechanism to support "private" and "user" data. -// 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData) -// 5. Avoid exposing implementation details on user objects (eg. expando properties) -// 6. Provide a clear path for implementation upgrade to WeakMap in 2014 - -var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, - rmultiDash = /([A-Z])/g; - -function dataAttr( elem, key, data ) { - var name; - - // If nothing was found internally, try to fetch any - // data from the HTML5 data-* attribute - if ( data === undefined && elem.nodeType === 1 ) { - name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase(); - data = elem.getAttribute( name ); - - if ( typeof data === "string" ) { - try { - data = data === "true" ? true : - data === "false" ? false : - data === "null" ? null : - // Only convert to a number if it doesn't change the string - +data + "" === data ? +data : - rbrace.test( data ) ? jQuery.parseJSON( data ) : - data; - } catch( e ) {} - - // Make sure we set the data so it isn't changed later - data_user.set( elem, key, data ); - } else { - data = undefined; - } - } - return data; -} - -jQuery.extend({ - hasData: function( elem ) { - return data_user.hasData( elem ) || data_priv.hasData( elem ); - }, - - data: function( elem, name, data ) { - return data_user.access( elem, name, data ); - }, - - removeData: function( elem, name ) { - data_user.remove( elem, name ); - }, - - // TODO: Now that all calls to _data and _removeData have been replaced - // with direct calls to data_priv methods, these can be deprecated. - _data: function( elem, name, data ) { - return data_priv.access( elem, name, data ); - }, - - _removeData: function( elem, name ) { - data_priv.remove( elem, name ); - } -}); - -jQuery.fn.extend({ - data: function( key, value ) { - var i, name, data, - elem = this[ 0 ], - attrs = elem && elem.attributes; - - // Gets all values - if ( key === undefined ) { - if ( this.length ) { - data = data_user.get( elem ); - - if ( elem.nodeType === 1 && !data_priv.get( elem, "hasDataAttrs" ) ) { - i = attrs.length; - while ( i-- ) { - - // Support: IE11+ - // The attrs elements can be null (#14894) - if ( attrs[ i ] ) { - name = attrs[ i ].name; - if ( name.indexOf( "data-" ) === 0 ) { - name = jQuery.camelCase( name.slice(5) ); - dataAttr( elem, name, data[ name ] ); - } - } - } - data_priv.set( elem, "hasDataAttrs", true ); - } - } - - return data; - } - - // Sets multiple values - if ( typeof key === "object" ) { - return this.each(function() { - data_user.set( this, key ); - }); - } - - return access( this, function( value ) { - var data, - camelKey = jQuery.camelCase( key ); - - // The calling jQuery object (element matches) is not empty - // (and therefore has an element appears at this[ 0 ]) and the - // `value` parameter was not undefined. An empty jQuery object - // will result in `undefined` for elem = this[ 0 ] which will - // throw an exception if an attempt to read a data cache is made. - if ( elem && value === undefined ) { - // Attempt to get data from the cache - // with the key as-is - data = data_user.get( elem, key ); - if ( data !== undefined ) { - return data; - } - - // Attempt to get data from the cache - // with the key camelized - data = data_user.get( elem, camelKey ); - if ( data !== undefined ) { - return data; - } - - // Attempt to "discover" the data in - // HTML5 custom data-* attrs - data = dataAttr( elem, camelKey, undefined ); - if ( data !== undefined ) { - return data; - } - - // We tried really hard, but the data doesn't exist. - return; - } - - // Set the data... - this.each(function() { - // First, attempt to store a copy or reference of any - // data that might've been store with a camelCased key. - var data = data_user.get( this, camelKey ); - - // For HTML5 data-* attribute interop, we have to - // store property names with dashes in a camelCase form. - // This might not apply to all properties...* - data_user.set( this, camelKey, value ); - - // *... In the case of properties that might _actually_ - // have dashes, we need to also store a copy of that - // unchanged property. - if ( key.indexOf("-") !== -1 && data !== undefined ) { - data_user.set( this, key, value ); - } - }); - }, null, value, arguments.length > 1, null, true ); - }, - - removeData: function( key ) { - return this.each(function() { - data_user.remove( this, key ); - }); - } -}); - - -jQuery.extend({ - queue: function( elem, type, data ) { - var queue; - - if ( elem ) { - type = ( type || "fx" ) + "queue"; - queue = data_priv.get( elem, type ); - - // Speed up dequeue by getting out quickly if this is just a lookup - if ( data ) { - if ( !queue || jQuery.isArray( data ) ) { - queue = data_priv.access( elem, type, jQuery.makeArray(data) ); - } else { - queue.push( data ); - } - } - return queue || []; - } - }, - - dequeue: function( elem, type ) { - type = type || "fx"; - - var queue = jQuery.queue( elem, type ), - startLength = queue.length, - fn = queue.shift(), - hooks = jQuery._queueHooks( elem, type ), - next = function() { - jQuery.dequeue( elem, type ); - }; - - // If the fx queue is dequeued, always remove the progress sentinel - if ( fn === "inprogress" ) { - fn = queue.shift(); - startLength--; - } - - if ( fn ) { - - // Add a progress sentinel to prevent the fx queue from being - // automatically dequeued - if ( type === "fx" ) { - queue.unshift( "inprogress" ); - } - - // Clear up the last queue stop function - delete hooks.stop; - fn.call( elem, next, hooks ); - } - - if ( !startLength && hooks ) { - hooks.empty.fire(); - } - }, - - // Not public - generate a queueHooks object, or return the current one - _queueHooks: function( elem, type ) { - var key = type + "queueHooks"; - return data_priv.get( elem, key ) || data_priv.access( elem, key, { - empty: jQuery.Callbacks("once memory").add(function() { - data_priv.remove( elem, [ type + "queue", key ] ); - }) - }); - } -}); - -jQuery.fn.extend({ - queue: function( type, data ) { - var setter = 2; - - if ( typeof type !== "string" ) { - data = type; - type = "fx"; - setter--; - } - - if ( arguments.length < setter ) { - return jQuery.queue( this[0], type ); - } - - return data === undefined ? - this : - this.each(function() { - var queue = jQuery.queue( this, type, data ); - - // Ensure a hooks for this queue - jQuery._queueHooks( this, type ); - - if ( type === "fx" && queue[0] !== "inprogress" ) { - jQuery.dequeue( this, type ); - } - }); - }, - dequeue: function( type ) { - return this.each(function() { - jQuery.dequeue( this, type ); - }); - }, - clearQueue: function( type ) { - return this.queue( type || "fx", [] ); - }, - // Get a promise resolved when queues of a certain type - // are emptied (fx is the type by default) - promise: function( type, obj ) { - var tmp, - count = 1, - defer = jQuery.Deferred(), - elements = this, - i = this.length, - resolve = function() { - if ( !( --count ) ) { - defer.resolveWith( elements, [ elements ] ); - } - }; - - if ( typeof type !== "string" ) { - obj = type; - type = undefined; - } - type = type || "fx"; - - while ( i-- ) { - tmp = data_priv.get( elements[ i ], type + "queueHooks" ); - if ( tmp && tmp.empty ) { - count++; - tmp.empty.add( resolve ); - } - } - resolve(); - return defer.promise( obj ); - } -}); -var pnum = (/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/).source; - -var cssExpand = [ "Top", "Right", "Bottom", "Left" ]; - -var isHidden = function( elem, el ) { - // isHidden might be called from jQuery#filter function; - // in that case, element will be second argument - elem = el || elem; - return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem ); - }; - -var rcheckableType = (/^(?:checkbox|radio)$/i); - - - -(function() { - var fragment = document.createDocumentFragment(), - div = fragment.appendChild( document.createElement( "div" ) ), - input = document.createElement( "input" ); - - // Support: Safari<=5.1 - // Check state lost if the name is set (#11217) - // Support: Windows Web Apps (WWA) - // `name` and `type` must use .setAttribute for WWA (#14901) - input.setAttribute( "type", "radio" ); - input.setAttribute( "checked", "checked" ); - input.setAttribute( "name", "t" ); - - div.appendChild( input ); - - // Support: Safari<=5.1, Android<4.2 - // Older WebKit doesn't clone checked state correctly in fragments - support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; - - // Support: IE<=11+ - // Make sure textarea (and checkbox) defaultValue is properly cloned - div.innerHTML = "x"; - support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; -})(); -var strundefined = typeof undefined; - - - -support.focusinBubbles = "onfocusin" in window; - - -var - rkeyEvent = /^key/, - rmouseEvent = /^(?:mouse|pointer|contextmenu)|click/, - rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, - rtypenamespace = /^([^.]*)(?:\.(.+)|)$/; - -function returnTrue() { - return true; -} - -function returnFalse() { - return false; -} - -function safeActiveElement() { - try { - return document.activeElement; - } catch ( err ) { } -} - -/* - * Helper functions for managing events -- not part of the public interface. - * Props to Dean Edwards' addEvent library for many of the ideas. - */ -jQuery.event = { - - global: {}, - - add: function( elem, types, handler, data, selector ) { - - var handleObjIn, eventHandle, tmp, - events, t, handleObj, - special, handlers, type, namespaces, origType, - elemData = data_priv.get( elem ); - - // Don't attach events to noData or text/comment nodes (but allow plain objects) - if ( !elemData ) { - return; - } - - // Caller can pass in an object of custom data in lieu of the handler - if ( handler.handler ) { - handleObjIn = handler; - handler = handleObjIn.handler; - selector = handleObjIn.selector; - } - - // Make sure that the handler has a unique ID, used to find/remove it later - if ( !handler.guid ) { - handler.guid = jQuery.guid++; - } - - // Init the element's event structure and main handler, if this is the first - if ( !(events = elemData.events) ) { - events = elemData.events = {}; - } - if ( !(eventHandle = elemData.handle) ) { - eventHandle = elemData.handle = function( e ) { - // Discard the second event of a jQuery.event.trigger() and - // when an event is called after a page has unloaded - return typeof jQuery !== strundefined && jQuery.event.triggered !== e.type ? - jQuery.event.dispatch.apply( elem, arguments ) : undefined; - }; - } - - // Handle multiple events separated by a space - types = ( types || "" ).match( rnotwhite ) || [ "" ]; - t = types.length; - while ( t-- ) { - tmp = rtypenamespace.exec( types[t] ) || []; - type = origType = tmp[1]; - namespaces = ( tmp[2] || "" ).split( "." ).sort(); - - // There *must* be a type, no attaching namespace-only handlers - if ( !type ) { - continue; - } - - // If event changes its type, use the special event handlers for the changed type - special = jQuery.event.special[ type ] || {}; - - // If selector defined, determine special event api type, otherwise given type - type = ( selector ? special.delegateType : special.bindType ) || type; - - // Update special based on newly reset type - special = jQuery.event.special[ type ] || {}; - - // handleObj is passed to all event handlers - handleObj = jQuery.extend({ - type: type, - origType: origType, - data: data, - handler: handler, - guid: handler.guid, - selector: selector, - needsContext: selector && jQuery.expr.match.needsContext.test( selector ), - namespace: namespaces.join(".") - }, handleObjIn ); - - // Init the event handler queue if we're the first - if ( !(handlers = events[ type ]) ) { - handlers = events[ type ] = []; - handlers.delegateCount = 0; - - // Only use addEventListener if the special events handler returns false - if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) { - if ( elem.addEventListener ) { - elem.addEventListener( type, eventHandle, false ); - } - } - } - - if ( special.add ) { - special.add.call( elem, handleObj ); - - if ( !handleObj.handler.guid ) { - handleObj.handler.guid = handler.guid; - } - } - - // Add to the element's handler list, delegates in front - if ( selector ) { - handlers.splice( handlers.delegateCount++, 0, handleObj ); - } else { - handlers.push( handleObj ); - } - - // Keep track of which events have ever been used, for event optimization - jQuery.event.global[ type ] = true; - } - - }, - - // Detach an event or set of events from an element - remove: function( elem, types, handler, selector, mappedTypes ) { - - var j, origCount, tmp, - events, t, handleObj, - special, handlers, type, namespaces, origType, - elemData = data_priv.hasData( elem ) && data_priv.get( elem ); - - if ( !elemData || !(events = elemData.events) ) { - return; - } - - // Once for each type.namespace in types; type may be omitted - types = ( types || "" ).match( rnotwhite ) || [ "" ]; - t = types.length; - while ( t-- ) { - tmp = rtypenamespace.exec( types[t] ) || []; - type = origType = tmp[1]; - namespaces = ( tmp[2] || "" ).split( "." ).sort(); - - // Unbind all events (on this namespace, if provided) for the element - if ( !type ) { - for ( type in events ) { - jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); - } - continue; - } - - special = jQuery.event.special[ type ] || {}; - type = ( selector ? special.delegateType : special.bindType ) || type; - handlers = events[ type ] || []; - tmp = tmp[2] && new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ); - - // Remove matching events - origCount = j = handlers.length; - while ( j-- ) { - handleObj = handlers[ j ]; - - if ( ( mappedTypes || origType === handleObj.origType ) && - ( !handler || handler.guid === handleObj.guid ) && - ( !tmp || tmp.test( handleObj.namespace ) ) && - ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) { - handlers.splice( j, 1 ); - - if ( handleObj.selector ) { - handlers.delegateCount--; - } - if ( special.remove ) { - special.remove.call( elem, handleObj ); - } - } - } - - // Remove generic event handler if we removed something and no more handlers exist - // (avoids potential for endless recursion during removal of special event handlers) - if ( origCount && !handlers.length ) { - if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) { - jQuery.removeEvent( elem, type, elemData.handle ); - } - - delete events[ type ]; - } - } - - // Remove the expando if it's no longer used - if ( jQuery.isEmptyObject( events ) ) { - delete elemData.handle; - data_priv.remove( elem, "events" ); - } - }, - - trigger: function( event, data, elem, onlyHandlers ) { - - var i, cur, tmp, bubbleType, ontype, handle, special, - eventPath = [ elem || document ], - type = hasOwn.call( event, "type" ) ? event.type : event, - namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split(".") : []; - - cur = tmp = elem = elem || document; - - // Don't do events on text and comment nodes - if ( elem.nodeType === 3 || elem.nodeType === 8 ) { - return; - } - - // focus/blur morphs to focusin/out; ensure we're not firing them right now - if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { - return; - } - - if ( type.indexOf(".") >= 0 ) { - // Namespaced trigger; create a regexp to match event type in handle() - namespaces = type.split("."); - type = namespaces.shift(); - namespaces.sort(); - } - ontype = type.indexOf(":") < 0 && "on" + type; - - // Caller can pass in a jQuery.Event object, Object, or just an event type string - event = event[ jQuery.expando ] ? - event : - new jQuery.Event( type, typeof event === "object" && event ); - - // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) - event.isTrigger = onlyHandlers ? 2 : 3; - event.namespace = namespaces.join("."); - event.namespace_re = event.namespace ? - new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ) : - null; - - // Clean up the event in case it is being reused - event.result = undefined; - if ( !event.target ) { - event.target = elem; - } - - // Clone any incoming data and prepend the event, creating the handler arg list - data = data == null ? - [ event ] : - jQuery.makeArray( data, [ event ] ); - - // Allow special events to draw outside the lines - special = jQuery.event.special[ type ] || {}; - if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { - return; - } - - // Determine event propagation path in advance, per W3C events spec (#9951) - // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) - if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) { - - bubbleType = special.delegateType || type; - if ( !rfocusMorph.test( bubbleType + type ) ) { - cur = cur.parentNode; - } - for ( ; cur; cur = cur.parentNode ) { - eventPath.push( cur ); - tmp = cur; - } - - // Only add window if we got to document (e.g., not plain obj or detached DOM) - if ( tmp === (elem.ownerDocument || document) ) { - eventPath.push( tmp.defaultView || tmp.parentWindow || window ); - } - } - - // Fire handlers on the event path - i = 0; - while ( (cur = eventPath[i++]) && !event.isPropagationStopped() ) { - - event.type = i > 1 ? - bubbleType : - special.bindType || type; - - // jQuery handler - handle = ( data_priv.get( cur, "events" ) || {} )[ event.type ] && data_priv.get( cur, "handle" ); - if ( handle ) { - handle.apply( cur, data ); - } - - // Native handler - handle = ontype && cur[ ontype ]; - if ( handle && handle.apply && jQuery.acceptData( cur ) ) { - event.result = handle.apply( cur, data ); - if ( event.result === false ) { - event.preventDefault(); - } - } - } - event.type = type; - - // If nobody prevented the default action, do it now - if ( !onlyHandlers && !event.isDefaultPrevented() ) { - - if ( (!special._default || special._default.apply( eventPath.pop(), data ) === false) && - jQuery.acceptData( elem ) ) { - - // Call a native DOM method on the target with the same name name as the event. - // Don't do default actions on window, that's where global variables be (#6170) - if ( ontype && jQuery.isFunction( elem[ type ] ) && !jQuery.isWindow( elem ) ) { - - // Don't re-trigger an onFOO event when we call its FOO() method - tmp = elem[ ontype ]; - - if ( tmp ) { - elem[ ontype ] = null; - } - - // Prevent re-triggering of the same event, since we already bubbled it above - jQuery.event.triggered = type; - elem[ type ](); - jQuery.event.triggered = undefined; - - if ( tmp ) { - elem[ ontype ] = tmp; - } - } - } - } - - return event.result; - }, - - dispatch: function( event ) { - - // Make a writable jQuery.Event from the native event object - event = jQuery.event.fix( event ); - - var i, j, ret, matched, handleObj, - handlerQueue = [], - args = slice.call( arguments ), - handlers = ( data_priv.get( this, "events" ) || {} )[ event.type ] || [], - special = jQuery.event.special[ event.type ] || {}; - - // Use the fix-ed jQuery.Event rather than the (read-only) native event - args[0] = event; - event.delegateTarget = this; - - // Call the preDispatch hook for the mapped type, and let it bail if desired - if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { - return; - } - - // Determine handlers - handlerQueue = jQuery.event.handlers.call( this, event, handlers ); - - // Run delegates first; they may want to stop propagation beneath us - i = 0; - while ( (matched = handlerQueue[ i++ ]) && !event.isPropagationStopped() ) { - event.currentTarget = matched.elem; - - j = 0; - while ( (handleObj = matched.handlers[ j++ ]) && !event.isImmediatePropagationStopped() ) { - - // Triggered event must either 1) have no namespace, or 2) have namespace(s) - // a subset or equal to those in the bound event (both can have no namespace). - if ( !event.namespace_re || event.namespace_re.test( handleObj.namespace ) ) { - - event.handleObj = handleObj; - event.data = handleObj.data; - - ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler ) - .apply( matched.elem, args ); - - if ( ret !== undefined ) { - if ( (event.result = ret) === false ) { - event.preventDefault(); - event.stopPropagation(); - } - } - } - } - } - - // Call the postDispatch hook for the mapped type - if ( special.postDispatch ) { - special.postDispatch.call( this, event ); - } - - return event.result; - }, - - handlers: function( event, handlers ) { - var i, matches, sel, handleObj, - handlerQueue = [], - delegateCount = handlers.delegateCount, - cur = event.target; - - // Find delegate handlers - // Black-hole SVG instance trees (#13180) - // Avoid non-left-click bubbling in Firefox (#3861) - if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) { - - for ( ; cur !== this; cur = cur.parentNode || this ) { - - // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) - if ( cur.disabled !== true || event.type !== "click" ) { - matches = []; - for ( i = 0; i < delegateCount; i++ ) { - handleObj = handlers[ i ]; - - // Don't conflict with Object.prototype properties (#13203) - sel = handleObj.selector + " "; - - if ( matches[ sel ] === undefined ) { - matches[ sel ] = handleObj.needsContext ? - jQuery( sel, this ).index( cur ) >= 0 : - jQuery.find( sel, this, null, [ cur ] ).length; - } - if ( matches[ sel ] ) { - matches.push( handleObj ); - } - } - if ( matches.length ) { - handlerQueue.push({ elem: cur, handlers: matches }); - } - } - } - } - - // Add the remaining (directly-bound) handlers - if ( delegateCount < handlers.length ) { - handlerQueue.push({ elem: this, handlers: handlers.slice( delegateCount ) }); - } - - return handlerQueue; - }, - - // Includes some event props shared by KeyEvent and MouseEvent - props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "), - - fixHooks: {}, - - keyHooks: { - props: "char charCode key keyCode".split(" "), - filter: function( event, original ) { - - // Add which for key events - if ( event.which == null ) { - event.which = original.charCode != null ? original.charCode : original.keyCode; - } - - return event; - } - }, - - mouseHooks: { - props: "button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "), - filter: function( event, original ) { - var eventDoc, doc, body, - button = original.button; - - // Calculate pageX/Y if missing and clientX/Y available - if ( event.pageX == null && original.clientX != null ) { - eventDoc = event.target.ownerDocument || document; - doc = eventDoc.documentElement; - body = eventDoc.body; - - event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 ); - event.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 ); - } - - // Add which for click: 1 === left; 2 === middle; 3 === right - // Note: button is not normalized, so don't use it - if ( !event.which && button !== undefined ) { - event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) ); - } - - return event; - } - }, - - fix: function( event ) { - if ( event[ jQuery.expando ] ) { - return event; - } - - // Create a writable copy of the event object and normalize some properties - var i, prop, copy, - type = event.type, - originalEvent = event, - fixHook = this.fixHooks[ type ]; - - if ( !fixHook ) { - this.fixHooks[ type ] = fixHook = - rmouseEvent.test( type ) ? this.mouseHooks : - rkeyEvent.test( type ) ? this.keyHooks : - {}; - } - copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props; - - event = new jQuery.Event( originalEvent ); - - i = copy.length; - while ( i-- ) { - prop = copy[ i ]; - event[ prop ] = originalEvent[ prop ]; - } - - // Support: Cordova 2.5 (WebKit) (#13255) - // All events should have a target; Cordova deviceready doesn't - if ( !event.target ) { - event.target = document; - } - - // Support: Safari 6.0+, Chrome<28 - // Target should not be a text node (#504, #13143) - if ( event.target.nodeType === 3 ) { - event.target = event.target.parentNode; - } - - return fixHook.filter ? fixHook.filter( event, originalEvent ) : event; - }, - - special: { - load: { - // Prevent triggered image.load events from bubbling to window.load - noBubble: true - }, - focus: { - // Fire native event if possible so blur/focus sequence is correct - trigger: function() { - if ( this !== safeActiveElement() && this.focus ) { - this.focus(); - return false; - } - }, - delegateType: "focusin" - }, - blur: { - trigger: function() { - if ( this === safeActiveElement() && this.blur ) { - this.blur(); - return false; - } - }, - delegateType: "focusout" - }, - click: { - // For checkbox, fire native event so checked state will be right - trigger: function() { - if ( this.type === "checkbox" && this.click && jQuery.nodeName( this, "input" ) ) { - this.click(); - return false; - } - }, - - // For cross-browser consistency, don't fire native .click() on links - _default: function( event ) { - return jQuery.nodeName( event.target, "a" ); - } - }, - - beforeunload: { - postDispatch: function( event ) { - - // Support: Firefox 20+ - // Firefox doesn't alert if the returnValue field is not set. - if ( event.result !== undefined && event.originalEvent ) { - event.originalEvent.returnValue = event.result; - } - } - } - }, - - simulate: function( type, elem, event, bubble ) { - // Piggyback on a donor event to simulate a different one. - // Fake originalEvent to avoid donor's stopPropagation, but if the - // simulated event prevents default then we do the same on the donor. - var e = jQuery.extend( - new jQuery.Event(), - event, - { - type: type, - isSimulated: true, - originalEvent: {} - } - ); - if ( bubble ) { - jQuery.event.trigger( e, null, elem ); - } else { - jQuery.event.dispatch.call( elem, e ); - } - if ( e.isDefaultPrevented() ) { - event.preventDefault(); - } - } -}; - -jQuery.removeEvent = function( elem, type, handle ) { - if ( elem.removeEventListener ) { - elem.removeEventListener( type, handle, false ); - } -}; - -jQuery.Event = function( src, props ) { - // Allow instantiation without the 'new' keyword - if ( !(this instanceof jQuery.Event) ) { - return new jQuery.Event( src, props ); - } - - // Event object - if ( src && src.type ) { - this.originalEvent = src; - this.type = src.type; - - // Events bubbling up the document may have been marked as prevented - // by a handler lower down the tree; reflect the correct value. - this.isDefaultPrevented = src.defaultPrevented || - src.defaultPrevented === undefined && - // Support: Android<4.0 - src.returnValue === false ? - returnTrue : - returnFalse; - - // Event type - } else { - this.type = src; - } - - // Put explicitly provided properties onto the event object - if ( props ) { - jQuery.extend( this, props ); - } - - // Create a timestamp if incoming event doesn't have one - this.timeStamp = src && src.timeStamp || jQuery.now(); - - // Mark it as fixed - this[ jQuery.expando ] = true; -}; - -// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding -// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html -jQuery.Event.prototype = { - isDefaultPrevented: returnFalse, - isPropagationStopped: returnFalse, - isImmediatePropagationStopped: returnFalse, - - preventDefault: function() { - var e = this.originalEvent; - - this.isDefaultPrevented = returnTrue; - - if ( e && e.preventDefault ) { - e.preventDefault(); - } - }, - stopPropagation: function() { - var e = this.originalEvent; - - this.isPropagationStopped = returnTrue; - - if ( e && e.stopPropagation ) { - e.stopPropagation(); - } - }, - stopImmediatePropagation: function() { - var e = this.originalEvent; - - this.isImmediatePropagationStopped = returnTrue; - - if ( e && e.stopImmediatePropagation ) { - e.stopImmediatePropagation(); - } - - this.stopPropagation(); - } -}; - -// Create mouseenter/leave events using mouseover/out and event-time checks -// Support: Chrome 15+ -jQuery.each({ - mouseenter: "mouseover", - mouseleave: "mouseout", - pointerenter: "pointerover", - pointerleave: "pointerout" -}, function( orig, fix ) { - jQuery.event.special[ orig ] = { - delegateType: fix, - bindType: fix, - - handle: function( event ) { - var ret, - target = this, - related = event.relatedTarget, - handleObj = event.handleObj; - - // For mousenter/leave call the handler if related is outside the target. - // NB: No relatedTarget if the mouse left/entered the browser window - if ( !related || (related !== target && !jQuery.contains( target, related )) ) { - event.type = handleObj.origType; - ret = handleObj.handler.apply( this, arguments ); - event.type = fix; - } - return ret; - } - }; -}); - -// Support: Firefox, Chrome, Safari -// Create "bubbling" focus and blur events -if ( !support.focusinBubbles ) { - jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) { - - // Attach a single capturing handler on the document while someone wants focusin/focusout - var handler = function( event ) { - jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true ); - }; - - jQuery.event.special[ fix ] = { - setup: function() { - var doc = this.ownerDocument || this, - attaches = data_priv.access( doc, fix ); - - if ( !attaches ) { - doc.addEventListener( orig, handler, true ); - } - data_priv.access( doc, fix, ( attaches || 0 ) + 1 ); - }, - teardown: function() { - var doc = this.ownerDocument || this, - attaches = data_priv.access( doc, fix ) - 1; - - if ( !attaches ) { - doc.removeEventListener( orig, handler, true ); - data_priv.remove( doc, fix ); - - } else { - data_priv.access( doc, fix, attaches ); - } - } - }; - }); -} - -jQuery.fn.extend({ - - on: function( types, selector, data, fn, /*INTERNAL*/ one ) { - var origFn, type; - - // Types can be a map of types/handlers - if ( typeof types === "object" ) { - // ( types-Object, selector, data ) - if ( typeof selector !== "string" ) { - // ( types-Object, data ) - data = data || selector; - selector = undefined; - } - for ( type in types ) { - this.on( type, selector, data, types[ type ], one ); - } - return this; - } - - if ( data == null && fn == null ) { - // ( types, fn ) - fn = selector; - data = selector = undefined; - } else if ( fn == null ) { - if ( typeof selector === "string" ) { - // ( types, selector, fn ) - fn = data; - data = undefined; - } else { - // ( types, data, fn ) - fn = data; - data = selector; - selector = undefined; - } - } - if ( fn === false ) { - fn = returnFalse; - } else if ( !fn ) { - return this; - } - - if ( one === 1 ) { - origFn = fn; - fn = function( event ) { - // Can use an empty set, since event contains the info - jQuery().off( event ); - return origFn.apply( this, arguments ); - }; - // Use same guid so caller can remove using origFn - fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); - } - return this.each( function() { - jQuery.event.add( this, types, fn, data, selector ); - }); - }, - one: function( types, selector, data, fn ) { - return this.on( types, selector, data, fn, 1 ); - }, - off: function( types, selector, fn ) { - var handleObj, type; - if ( types && types.preventDefault && types.handleObj ) { - // ( event ) dispatched jQuery.Event - handleObj = types.handleObj; - jQuery( types.delegateTarget ).off( - handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType, - handleObj.selector, - handleObj.handler - ); - return this; - } - if ( typeof types === "object" ) { - // ( types-object [, selector] ) - for ( type in types ) { - this.off( type, selector, types[ type ] ); - } - return this; - } - if ( selector === false || typeof selector === "function" ) { - // ( types [, fn] ) - fn = selector; - selector = undefined; - } - if ( fn === false ) { - fn = returnFalse; - } - return this.each(function() { - jQuery.event.remove( this, types, fn, selector ); - }); - }, - - trigger: function( type, data ) { - return this.each(function() { - jQuery.event.trigger( type, data, this ); - }); - }, - triggerHandler: function( type, data ) { - var elem = this[0]; - if ( elem ) { - return jQuery.event.trigger( type, data, elem, true ); - } - } -}); - - -var - rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, - rtagName = /<([\w:]+)/, - rhtml = /<|?\w+;/, - rnoInnerhtml = /<(?:script|style|link)/i, - // checked="checked" or checked - rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i, - rscriptType = /^$|\/(?:java|ecma)script/i, - rscriptTypeMasked = /^true\/(.*)/, - rcleanScript = /^\s*\s*$/g, - - // We have to close these tags to support XHTML (#13200) - wrapMap = { - - // Support: IE9 - option: [ 1, "", "" ], - - thead: [ 1, "", "" ], - col: [ 2, "", "" ], - tr: [ 2, "", "" ], - td: [ 3, "", "" ], - - _default: [ 0, "", "" ] - }; - -// Support: IE9 -wrapMap.optgroup = wrapMap.option; - -wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; -wrapMap.th = wrapMap.td; - -// Support: 1.x compatibility -// Manipulating tables requires a tbody -function manipulationTarget( elem, content ) { - return jQuery.nodeName( elem, "table" ) && - jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ? - - elem.getElementsByTagName("tbody")[0] || - elem.appendChild( elem.ownerDocument.createElement("tbody") ) : - elem; -} - -// Replace/restore the type attribute of script elements for safe DOM manipulation -function disableScript( elem ) { - elem.type = (elem.getAttribute("type") !== null) + "/" + elem.type; - return elem; -} -function restoreScript( elem ) { - var match = rscriptTypeMasked.exec( elem.type ); - - if ( match ) { - elem.type = match[ 1 ]; - } else { - elem.removeAttribute("type"); - } - - return elem; -} - -// Mark scripts as having already been evaluated -function setGlobalEval( elems, refElements ) { - var i = 0, - l = elems.length; - - for ( ; i < l; i++ ) { - data_priv.set( - elems[ i ], "globalEval", !refElements || data_priv.get( refElements[ i ], "globalEval" ) - ); - } -} - -function cloneCopyEvent( src, dest ) { - var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events; - - if ( dest.nodeType !== 1 ) { - return; - } - - // 1. Copy private data: events, handlers, etc. - if ( data_priv.hasData( src ) ) { - pdataOld = data_priv.access( src ); - pdataCur = data_priv.set( dest, pdataOld ); - events = pdataOld.events; - - if ( events ) { - delete pdataCur.handle; - pdataCur.events = {}; - - for ( type in events ) { - for ( i = 0, l = events[ type ].length; i < l; i++ ) { - jQuery.event.add( dest, type, events[ type ][ i ] ); - } - } - } - } - - // 2. Copy user data - if ( data_user.hasData( src ) ) { - udataOld = data_user.access( src ); - udataCur = jQuery.extend( {}, udataOld ); - - data_user.set( dest, udataCur ); - } -} - -function getAll( context, tag ) { - var ret = context.getElementsByTagName ? context.getElementsByTagName( tag || "*" ) : - context.querySelectorAll ? context.querySelectorAll( tag || "*" ) : - []; - - return tag === undefined || tag && jQuery.nodeName( context, tag ) ? - jQuery.merge( [ context ], ret ) : - ret; -} - -// Fix IE bugs, see support tests -function fixInput( src, dest ) { - var nodeName = dest.nodeName.toLowerCase(); - - // Fails to persist the checked state of a cloned checkbox or radio button. - if ( nodeName === "input" && rcheckableType.test( src.type ) ) { - dest.checked = src.checked; - - // Fails to return the selected option to the default selected state when cloning options - } else if ( nodeName === "input" || nodeName === "textarea" ) { - dest.defaultValue = src.defaultValue; - } -} - -jQuery.extend({ - clone: function( elem, dataAndEvents, deepDataAndEvents ) { - var i, l, srcElements, destElements, - clone = elem.cloneNode( true ), - inPage = jQuery.contains( elem.ownerDocument, elem ); - - // Fix IE cloning issues - if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) && - !jQuery.isXMLDoc( elem ) ) { - - // We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2 - destElements = getAll( clone ); - srcElements = getAll( elem ); - - for ( i = 0, l = srcElements.length; i < l; i++ ) { - fixInput( srcElements[ i ], destElements[ i ] ); - } - } - - // Copy the events from the original to the clone - if ( dataAndEvents ) { - if ( deepDataAndEvents ) { - srcElements = srcElements || getAll( elem ); - destElements = destElements || getAll( clone ); - - for ( i = 0, l = srcElements.length; i < l; i++ ) { - cloneCopyEvent( srcElements[ i ], destElements[ i ] ); - } - } else { - cloneCopyEvent( elem, clone ); - } - } - - // Preserve script evaluation history - destElements = getAll( clone, "script" ); - if ( destElements.length > 0 ) { - setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); - } - - // Return the cloned set - return clone; - }, - - buildFragment: function( elems, context, scripts, selection ) { - var elem, tmp, tag, wrap, contains, j, - fragment = context.createDocumentFragment(), - nodes = [], - i = 0, - l = elems.length; - - for ( ; i < l; i++ ) { - elem = elems[ i ]; - - if ( elem || elem === 0 ) { - - // Add nodes directly - if ( jQuery.type( elem ) === "object" ) { - // Support: QtWebKit, PhantomJS - // push.apply(_, arraylike) throws on ancient WebKit - jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); - - // Convert non-html into a text node - } else if ( !rhtml.test( elem ) ) { - nodes.push( context.createTextNode( elem ) ); - - // Convert html into DOM nodes - } else { - tmp = tmp || fragment.appendChild( context.createElement("div") ); - - // Deserialize a standard representation - tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase(); - wrap = wrapMap[ tag ] || wrapMap._default; - tmp.innerHTML = wrap[ 1 ] + elem.replace( rxhtmlTag, "<$1>$2>" ) + wrap[ 2 ]; - - // Descend through wrappers to the right content - j = wrap[ 0 ]; - while ( j-- ) { - tmp = tmp.lastChild; - } - - // Support: QtWebKit, PhantomJS - // push.apply(_, arraylike) throws on ancient WebKit - jQuery.merge( nodes, tmp.childNodes ); - - // Remember the top-level container - tmp = fragment.firstChild; - - // Ensure the created nodes are orphaned (#12392) - tmp.textContent = ""; - } - } - } - - // Remove wrapper from fragment - fragment.textContent = ""; - - i = 0; - while ( (elem = nodes[ i++ ]) ) { - - // #4087 - If origin and destination elements are the same, and this is - // that element, do not do anything - if ( selection && jQuery.inArray( elem, selection ) !== -1 ) { - continue; - } - - contains = jQuery.contains( elem.ownerDocument, elem ); - - // Append to fragment - tmp = getAll( fragment.appendChild( elem ), "script" ); - - // Preserve script evaluation history - if ( contains ) { - setGlobalEval( tmp ); - } - - // Capture executables - if ( scripts ) { - j = 0; - while ( (elem = tmp[ j++ ]) ) { - if ( rscriptType.test( elem.type || "" ) ) { - scripts.push( elem ); - } - } - } - } - - return fragment; - }, - - cleanData: function( elems ) { - var data, elem, type, key, - special = jQuery.event.special, - i = 0; - - for ( ; (elem = elems[ i ]) !== undefined; i++ ) { - if ( jQuery.acceptData( elem ) ) { - key = elem[ data_priv.expando ]; - - if ( key && (data = data_priv.cache[ key ]) ) { - if ( data.events ) { - for ( type in data.events ) { - if ( special[ type ] ) { - jQuery.event.remove( elem, type ); - - // This is a shortcut to avoid jQuery.event.remove's overhead - } else { - jQuery.removeEvent( elem, type, data.handle ); - } - } - } - if ( data_priv.cache[ key ] ) { - // Discard any remaining `private` data - delete data_priv.cache[ key ]; - } - } - } - // Discard any remaining `user` data - delete data_user.cache[ elem[ data_user.expando ] ]; - } - } -}); - -jQuery.fn.extend({ - text: function( value ) { - return access( this, function( value ) { - return value === undefined ? - jQuery.text( this ) : - this.empty().each(function() { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - this.textContent = value; - } - }); - }, null, value, arguments.length ); - }, - - append: function() { - return this.domManip( arguments, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - var target = manipulationTarget( this, elem ); - target.appendChild( elem ); - } - }); - }, - - prepend: function() { - return this.domManip( arguments, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - var target = manipulationTarget( this, elem ); - target.insertBefore( elem, target.firstChild ); - } - }); - }, - - before: function() { - return this.domManip( arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this ); - } - }); - }, - - after: function() { - return this.domManip( arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this.nextSibling ); - } - }); - }, - - remove: function( selector, keepData /* Internal Use Only */ ) { - var elem, - elems = selector ? jQuery.filter( selector, this ) : this, - i = 0; - - for ( ; (elem = elems[i]) != null; i++ ) { - if ( !keepData && elem.nodeType === 1 ) { - jQuery.cleanData( getAll( elem ) ); - } - - if ( elem.parentNode ) { - if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) { - setGlobalEval( getAll( elem, "script" ) ); - } - elem.parentNode.removeChild( elem ); - } - } - - return this; - }, - - empty: function() { - var elem, - i = 0; - - for ( ; (elem = this[i]) != null; i++ ) { - if ( elem.nodeType === 1 ) { - - // Prevent memory leaks - jQuery.cleanData( getAll( elem, false ) ); - - // Remove any remaining nodes - elem.textContent = ""; - } - } - - return this; - }, - - clone: function( dataAndEvents, deepDataAndEvents ) { - dataAndEvents = dataAndEvents == null ? false : dataAndEvents; - deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; - - return this.map(function() { - return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); - }); - }, - - html: function( value ) { - return access( this, function( value ) { - var elem = this[ 0 ] || {}, - i = 0, - l = this.length; - - if ( value === undefined && elem.nodeType === 1 ) { - return elem.innerHTML; - } - - // See if we can take a shortcut and just use innerHTML - if ( typeof value === "string" && !rnoInnerhtml.test( value ) && - !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) { - - value = value.replace( rxhtmlTag, "<$1>$2>" ); - - try { - for ( ; i < l; i++ ) { - elem = this[ i ] || {}; - - // Remove element nodes and prevent memory leaks - if ( elem.nodeType === 1 ) { - jQuery.cleanData( getAll( elem, false ) ); - elem.innerHTML = value; - } - } - - elem = 0; - - // If using innerHTML throws an exception, use the fallback method - } catch( e ) {} - } - - if ( elem ) { - this.empty().append( value ); - } - }, null, value, arguments.length ); - }, - - replaceWith: function() { - var arg = arguments[ 0 ]; - - // Make the changes, replacing each context element with the new content - this.domManip( arguments, function( elem ) { - arg = this.parentNode; - - jQuery.cleanData( getAll( this ) ); - - if ( arg ) { - arg.replaceChild( elem, this ); - } - }); - - // Force removal if there was no new content (e.g., from empty arguments) - return arg && (arg.length || arg.nodeType) ? this : this.remove(); - }, - - detach: function( selector ) { - return this.remove( selector, true ); - }, - - domManip: function( args, callback ) { - - // Flatten any nested arrays - args = concat.apply( [], args ); - - var fragment, first, scripts, hasScripts, node, doc, - i = 0, - l = this.length, - set = this, - iNoClone = l - 1, - value = args[ 0 ], - isFunction = jQuery.isFunction( value ); - - // We can't cloneNode fragments that contain checked, in WebKit - if ( isFunction || - ( l > 1 && typeof value === "string" && - !support.checkClone && rchecked.test( value ) ) ) { - return this.each(function( index ) { - var self = set.eq( index ); - if ( isFunction ) { - args[ 0 ] = value.call( this, index, self.html() ); - } - self.domManip( args, callback ); - }); - } - - if ( l ) { - fragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, this ); - first = fragment.firstChild; - - if ( fragment.childNodes.length === 1 ) { - fragment = first; - } - - if ( first ) { - scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); - hasScripts = scripts.length; - - // Use the original fragment for the last item instead of the first because it can end up - // being emptied incorrectly in certain situations (#8070). - for ( ; i < l; i++ ) { - node = fragment; - - if ( i !== iNoClone ) { - node = jQuery.clone( node, true, true ); - - // Keep references to cloned scripts for later restoration - if ( hasScripts ) { - // Support: QtWebKit - // jQuery.merge because push.apply(_, arraylike) throws - jQuery.merge( scripts, getAll( node, "script" ) ); - } - } - - callback.call( this[ i ], node, i ); - } - - if ( hasScripts ) { - doc = scripts[ scripts.length - 1 ].ownerDocument; - - // Reenable scripts - jQuery.map( scripts, restoreScript ); - - // Evaluate executable scripts on first document insertion - for ( i = 0; i < hasScripts; i++ ) { - node = scripts[ i ]; - if ( rscriptType.test( node.type || "" ) && - !data_priv.access( node, "globalEval" ) && jQuery.contains( doc, node ) ) { - - if ( node.src ) { - // Optional AJAX dependency, but won't run scripts if not present - if ( jQuery._evalUrl ) { - jQuery._evalUrl( node.src ); - } - } else { - jQuery.globalEval( node.textContent.replace( rcleanScript, "" ) ); - } - } - } - } - } - } - - return this; - } -}); - -jQuery.each({ - appendTo: "append", - prependTo: "prepend", - insertBefore: "before", - insertAfter: "after", - replaceAll: "replaceWith" -}, function( name, original ) { - jQuery.fn[ name ] = function( selector ) { - var elems, - ret = [], - insert = jQuery( selector ), - last = insert.length - 1, - i = 0; - - for ( ; i <= last; i++ ) { - elems = i === last ? this : this.clone( true ); - jQuery( insert[ i ] )[ original ]( elems ); - - // Support: QtWebKit - // .get() because push.apply(_, arraylike) throws - push.apply( ret, elems.get() ); - } - - return this.pushStack( ret ); - }; -}); - - -var iframe, - elemdisplay = {}; - -/** - * Retrieve the actual display of a element - * @param {String} name nodeName of the element - * @param {Object} doc Document object - */ -// Called only from within defaultDisplay -function actualDisplay( name, doc ) { - var style, - elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ), - - // getDefaultComputedStyle might be reliably used only on attached element - display = window.getDefaultComputedStyle && ( style = window.getDefaultComputedStyle( elem[ 0 ] ) ) ? - - // Use of this method is a temporary fix (more like optimization) until something better comes along, - // since it was removed from specification and supported only in FF - style.display : jQuery.css( elem[ 0 ], "display" ); - - // We don't have any data stored on the element, - // so use "detach" method as fast way to get rid of the element - elem.detach(); - - return display; -} - -/** - * Try to determine the default display value of an element - * @param {String} nodeName - */ -function defaultDisplay( nodeName ) { - var doc = document, - display = elemdisplay[ nodeName ]; - - if ( !display ) { - display = actualDisplay( nodeName, doc ); - - // If the simple way fails, read from inside an iframe - if ( display === "none" || !display ) { - - // Use the already-created iframe if possible - iframe = (iframe || jQuery( "" )).appendTo( doc.documentElement ); - - // Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse - doc = iframe[ 0 ].contentDocument; - - // Support: IE - doc.write(); - doc.close(); - - display = actualDisplay( nodeName, doc ); - iframe.detach(); - } - - // Store the correct default display - elemdisplay[ nodeName ] = display; - } - - return display; -} -var rmargin = (/^margin/); - -var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" ); - -var getStyles = function( elem ) { - // Support: IE<=11+, Firefox<=30+ (#15098, #14150) - // IE throws on elements created in popups - // FF meanwhile throws on frame elements through "defaultView.getComputedStyle" - if ( elem.ownerDocument.defaultView.opener ) { - return elem.ownerDocument.defaultView.getComputedStyle( elem, null ); - } - - return window.getComputedStyle( elem, null ); - }; - - - -function curCSS( elem, name, computed ) { - var width, minWidth, maxWidth, ret, - style = elem.style; - - computed = computed || getStyles( elem ); - - // Support: IE9 - // getPropertyValue is only needed for .css('filter') (#12537) - if ( computed ) { - ret = computed.getPropertyValue( name ) || computed[ name ]; - } - - if ( computed ) { - - if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) { - ret = jQuery.style( elem, name ); - } - - // Support: iOS < 6 - // A tribute to the "awesome hack by Dean Edwards" - // iOS < 6 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels - // this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values - if ( rnumnonpx.test( ret ) && rmargin.test( name ) ) { - - // Remember the original values - width = style.width; - minWidth = style.minWidth; - maxWidth = style.maxWidth; - - // Put in the new values to get a computed value out - style.minWidth = style.maxWidth = style.width = ret; - ret = computed.width; - - // Revert the changed values - style.width = width; - style.minWidth = minWidth; - style.maxWidth = maxWidth; - } - } - - return ret !== undefined ? - // Support: IE - // IE returns zIndex value as an integer. - ret + "" : - ret; -} - - -function addGetHookIf( conditionFn, hookFn ) { - // Define the hook, we'll check on the first run if it's really needed. - return { - get: function() { - if ( conditionFn() ) { - // Hook not needed (or it's not possible to use it due - // to missing dependency), remove it. - delete this.get; - return; - } - - // Hook needed; redefine it so that the support test is not executed again. - return (this.get = hookFn).apply( this, arguments ); - } - }; -} - - -(function() { - var pixelPositionVal, boxSizingReliableVal, - docElem = document.documentElement, - container = document.createElement( "div" ), - div = document.createElement( "div" ); - - if ( !div.style ) { - return; - } - - // Support: IE9-11+ - // Style of cloned element affects source element cloned (#8908) - div.style.backgroundClip = "content-box"; - div.cloneNode( true ).style.backgroundClip = ""; - support.clearCloneStyle = div.style.backgroundClip === "content-box"; - - container.style.cssText = "border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;" + - "position:absolute"; - container.appendChild( div ); - - // Executing both pixelPosition & boxSizingReliable tests require only one layout - // so they're executed at the same time to save the second computation. - function computePixelPositionAndBoxSizingReliable() { - div.style.cssText = - // Support: Firefox<29, Android 2.3 - // Vendor-prefix box-sizing - "-webkit-box-sizing:border-box;-moz-box-sizing:border-box;" + - "box-sizing:border-box;display:block;margin-top:1%;top:1%;" + - "border:1px;padding:1px;width:4px;position:absolute"; - div.innerHTML = ""; - docElem.appendChild( container ); - - var divStyle = window.getComputedStyle( div, null ); - pixelPositionVal = divStyle.top !== "1%"; - boxSizingReliableVal = divStyle.width === "4px"; - - docElem.removeChild( container ); - } - - // Support: node.js jsdom - // Don't assume that getComputedStyle is a property of the global object - if ( window.getComputedStyle ) { - jQuery.extend( support, { - pixelPosition: function() { - - // This test is executed only once but we still do memoizing - // since we can use the boxSizingReliable pre-computing. - // No need to check if the test was already performed, though. - computePixelPositionAndBoxSizingReliable(); - return pixelPositionVal; - }, - boxSizingReliable: function() { - if ( boxSizingReliableVal == null ) { - computePixelPositionAndBoxSizingReliable(); - } - return boxSizingReliableVal; - }, - reliableMarginRight: function() { - - // Support: Android 2.3 - // Check if div with explicit width and no margin-right incorrectly - // gets computed margin-right based on width of container. (#3333) - // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right - // This support function is only executed once so no memoizing is needed. - var ret, - marginDiv = div.appendChild( document.createElement( "div" ) ); - - // Reset CSS: box-sizing; display; margin; border; padding - marginDiv.style.cssText = div.style.cssText = - // Support: Firefox<29, Android 2.3 - // Vendor-prefix box-sizing - "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;" + - "box-sizing:content-box;display:block;margin:0;border:0;padding:0"; - marginDiv.style.marginRight = marginDiv.style.width = "0"; - div.style.width = "1px"; - docElem.appendChild( container ); - - ret = !parseFloat( window.getComputedStyle( marginDiv, null ).marginRight ); - - docElem.removeChild( container ); - div.removeChild( marginDiv ); - - return ret; - } - }); - } -})(); - - -// A method for quickly swapping in/out CSS properties to get correct calculations. -jQuery.swap = function( elem, options, callback, args ) { - var ret, name, - old = {}; - - // Remember the old values, and insert the new ones - for ( name in options ) { - old[ name ] = elem.style[ name ]; - elem.style[ name ] = options[ name ]; - } - - ret = callback.apply( elem, args || [] ); - - // Revert the old values - for ( name in options ) { - elem.style[ name ] = old[ name ]; - } - - return ret; -}; - - -var - // Swappable if display is none or starts with table except "table", "table-cell", or "table-caption" - // See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display - rdisplayswap = /^(none|table(?!-c[ea]).+)/, - rnumsplit = new RegExp( "^(" + pnum + ")(.*)$", "i" ), - rrelNum = new RegExp( "^([+-])=(" + pnum + ")", "i" ), - - cssShow = { position: "absolute", visibility: "hidden", display: "block" }, - cssNormalTransform = { - letterSpacing: "0", - fontWeight: "400" - }, - - cssPrefixes = [ "Webkit", "O", "Moz", "ms" ]; - -// Return a css property mapped to a potentially vendor prefixed property -function vendorPropName( style, name ) { - - // Shortcut for names that are not vendor prefixed - if ( name in style ) { - return name; - } - - // Check for vendor prefixed names - var capName = name[0].toUpperCase() + name.slice(1), - origName = name, - i = cssPrefixes.length; - - while ( i-- ) { - name = cssPrefixes[ i ] + capName; - if ( name in style ) { - return name; - } - } - - return origName; -} - -function setPositiveNumber( elem, value, subtract ) { - var matches = rnumsplit.exec( value ); - return matches ? - // Guard against undefined "subtract", e.g., when used as in cssHooks - Math.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || "px" ) : - value; -} - -function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) { - var i = extra === ( isBorderBox ? "border" : "content" ) ? - // If we already have the right measurement, avoid augmentation - 4 : - // Otherwise initialize for horizontal or vertical properties - name === "width" ? 1 : 0, - - val = 0; - - for ( ; i < 4; i += 2 ) { - // Both box models exclude margin, so add it if we want it - if ( extra === "margin" ) { - val += jQuery.css( elem, extra + cssExpand[ i ], true, styles ); - } - - if ( isBorderBox ) { - // border-box includes padding, so remove it if we want content - if ( extra === "content" ) { - val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); - } - - // At this point, extra isn't border nor margin, so remove border - if ( extra !== "margin" ) { - val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - } - } else { - // At this point, extra isn't content, so add padding - val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); - - // At this point, extra isn't content nor padding, so add border - if ( extra !== "padding" ) { - val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - } - } - } - - return val; -} - -function getWidthOrHeight( elem, name, extra ) { - - // Start with offset property, which is equivalent to the border-box value - var valueIsBorderBox = true, - val = name === "width" ? elem.offsetWidth : elem.offsetHeight, - styles = getStyles( elem ), - isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; - - // Some non-html elements return undefined for offsetWidth, so check for null/undefined - // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285 - // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668 - if ( val <= 0 || val == null ) { - // Fall back to computed then uncomputed css if necessary - val = curCSS( elem, name, styles ); - if ( val < 0 || val == null ) { - val = elem.style[ name ]; - } - - // Computed unit is not pixels. Stop here and return. - if ( rnumnonpx.test(val) ) { - return val; - } - - // Check for style in case a browser which returns unreliable values - // for getComputedStyle silently falls back to the reliable elem.style - valueIsBorderBox = isBorderBox && - ( support.boxSizingReliable() || val === elem.style[ name ] ); - - // Normalize "", auto, and prepare for extra - val = parseFloat( val ) || 0; - } - - // Use the active box-sizing model to add/subtract irrelevant styles - return ( val + - augmentWidthOrHeight( - elem, - name, - extra || ( isBorderBox ? "border" : "content" ), - valueIsBorderBox, - styles - ) - ) + "px"; -} - -function showHide( elements, show ) { - var display, elem, hidden, - values = [], - index = 0, - length = elements.length; - - for ( ; index < length; index++ ) { - elem = elements[ index ]; - if ( !elem.style ) { - continue; - } - - values[ index ] = data_priv.get( elem, "olddisplay" ); - display = elem.style.display; - if ( show ) { - // Reset the inline display of this element to learn if it is - // being hidden by cascaded rules or not - if ( !values[ index ] && display === "none" ) { - elem.style.display = ""; - } - - // Set elements which have been overridden with display: none - // in a stylesheet to whatever the default browser style is - // for such an element - if ( elem.style.display === "" && isHidden( elem ) ) { - values[ index ] = data_priv.access( elem, "olddisplay", defaultDisplay(elem.nodeName) ); - } - } else { - hidden = isHidden( elem ); - - if ( display !== "none" || !hidden ) { - data_priv.set( elem, "olddisplay", hidden ? display : jQuery.css( elem, "display" ) ); - } - } - } - - // Set the display of most of the elements in a second loop - // to avoid the constant reflow - for ( index = 0; index < length; index++ ) { - elem = elements[ index ]; - if ( !elem.style ) { - continue; - } - if ( !show || elem.style.display === "none" || elem.style.display === "" ) { - elem.style.display = show ? values[ index ] || "" : "none"; - } - } - - return elements; -} - -jQuery.extend({ - - // Add in style property hooks for overriding the default - // behavior of getting and setting a style property - cssHooks: { - opacity: { - get: function( elem, computed ) { - if ( computed ) { - - // We should always get a number back from opacity - var ret = curCSS( elem, "opacity" ); - return ret === "" ? "1" : ret; - } - } - } - }, - - // Don't automatically add "px" to these possibly-unitless properties - cssNumber: { - "columnCount": true, - "fillOpacity": true, - "flexGrow": true, - "flexShrink": true, - "fontWeight": true, - "lineHeight": true, - "opacity": true, - "order": true, - "orphans": true, - "widows": true, - "zIndex": true, - "zoom": true - }, - - // Add in properties whose names you wish to fix before - // setting or getting the value - cssProps: { - "float": "cssFloat" - }, - - // Get and set the style property on a DOM Node - style: function( elem, name, value, extra ) { - - // Don't set styles on text and comment nodes - if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { - return; - } - - // Make sure that we're working with the right name - var ret, type, hooks, - origName = jQuery.camelCase( name ), - style = elem.style; - - name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( style, origName ) ); - - // Gets hook for the prefixed version, then unprefixed version - hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; - - // Check if we're setting a value - if ( value !== undefined ) { - type = typeof value; - - // Convert "+=" or "-=" to relative numbers (#7345) - if ( type === "string" && (ret = rrelNum.exec( value )) ) { - value = ( ret[1] + 1 ) * ret[2] + parseFloat( jQuery.css( elem, name ) ); - // Fixes bug #9237 - type = "number"; - } - - // Make sure that null and NaN values aren't set (#7116) - if ( value == null || value !== value ) { - return; - } - - // If a number, add 'px' to the (except for certain CSS properties) - if ( type === "number" && !jQuery.cssNumber[ origName ] ) { - value += "px"; - } - - // Support: IE9-11+ - // background-* props affect original clone's values - if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) { - style[ name ] = "inherit"; - } - - // If a hook was provided, use that value, otherwise just set the specified value - if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) { - style[ name ] = value; - } - - } else { - // If a hook was provided get the non-computed value from there - if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) { - return ret; - } - - // Otherwise just get the value from the style object - return style[ name ]; - } - }, - - css: function( elem, name, extra, styles ) { - var val, num, hooks, - origName = jQuery.camelCase( name ); - - // Make sure that we're working with the right name - name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( elem.style, origName ) ); - - // Try prefixed name followed by the unprefixed name - hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; - - // If a hook was provided get the computed value from there - if ( hooks && "get" in hooks ) { - val = hooks.get( elem, true, extra ); - } - - // Otherwise, if a way to get the computed value exists, use that - if ( val === undefined ) { - val = curCSS( elem, name, styles ); - } - - // Convert "normal" to computed value - if ( val === "normal" && name in cssNormalTransform ) { - val = cssNormalTransform[ name ]; - } - - // Make numeric if forced or a qualifier was provided and val looks numeric - if ( extra === "" || extra ) { - num = parseFloat( val ); - return extra === true || jQuery.isNumeric( num ) ? num || 0 : val; - } - return val; - } -}); - -jQuery.each([ "height", "width" ], function( i, name ) { - jQuery.cssHooks[ name ] = { - get: function( elem, computed, extra ) { - if ( computed ) { - - // Certain elements can have dimension info if we invisibly show them - // but it must have a current display style that would benefit - return rdisplayswap.test( jQuery.css( elem, "display" ) ) && elem.offsetWidth === 0 ? - jQuery.swap( elem, cssShow, function() { - return getWidthOrHeight( elem, name, extra ); - }) : - getWidthOrHeight( elem, name, extra ); - } - }, - - set: function( elem, value, extra ) { - var styles = extra && getStyles( elem ); - return setPositiveNumber( elem, value, extra ? - augmentWidthOrHeight( - elem, - name, - extra, - jQuery.css( elem, "boxSizing", false, styles ) === "border-box", - styles - ) : 0 - ); - } - }; -}); - -// Support: Android 2.3 -jQuery.cssHooks.marginRight = addGetHookIf( support.reliableMarginRight, - function( elem, computed ) { - if ( computed ) { - return jQuery.swap( elem, { "display": "inline-block" }, - curCSS, [ elem, "marginRight" ] ); - } - } -); - -// These hooks are used by animate to expand properties -jQuery.each({ - margin: "", - padding: "", - border: "Width" -}, function( prefix, suffix ) { - jQuery.cssHooks[ prefix + suffix ] = { - expand: function( value ) { - var i = 0, - expanded = {}, - - // Assumes a single number if not a string - parts = typeof value === "string" ? value.split(" ") : [ value ]; - - for ( ; i < 4; i++ ) { - expanded[ prefix + cssExpand[ i ] + suffix ] = - parts[ i ] || parts[ i - 2 ] || parts[ 0 ]; - } - - return expanded; - } - }; - - if ( !rmargin.test( prefix ) ) { - jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber; - } -}); - -jQuery.fn.extend({ - css: function( name, value ) { - return access( this, function( elem, name, value ) { - var styles, len, - map = {}, - i = 0; - - if ( jQuery.isArray( name ) ) { - styles = getStyles( elem ); - len = name.length; - - for ( ; i < len; i++ ) { - map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles ); - } - - return map; - } - - return value !== undefined ? - jQuery.style( elem, name, value ) : - jQuery.css( elem, name ); - }, name, value, arguments.length > 1 ); - }, - show: function() { - return showHide( this, true ); - }, - hide: function() { - return showHide( this ); - }, - toggle: function( state ) { - if ( typeof state === "boolean" ) { - return state ? this.show() : this.hide(); - } - - return this.each(function() { - if ( isHidden( this ) ) { - jQuery( this ).show(); - } else { - jQuery( this ).hide(); - } - }); - } -}); - - -function Tween( elem, options, prop, end, easing ) { - return new Tween.prototype.init( elem, options, prop, end, easing ); -} -jQuery.Tween = Tween; - -Tween.prototype = { - constructor: Tween, - init: function( elem, options, prop, end, easing, unit ) { - this.elem = elem; - this.prop = prop; - this.easing = easing || "swing"; - this.options = options; - this.start = this.now = this.cur(); - this.end = end; - this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" ); - }, - cur: function() { - var hooks = Tween.propHooks[ this.prop ]; - - return hooks && hooks.get ? - hooks.get( this ) : - Tween.propHooks._default.get( this ); - }, - run: function( percent ) { - var eased, - hooks = Tween.propHooks[ this.prop ]; - - if ( this.options.duration ) { - this.pos = eased = jQuery.easing[ this.easing ]( - percent, this.options.duration * percent, 0, 1, this.options.duration - ); - } else { - this.pos = eased = percent; - } - this.now = ( this.end - this.start ) * eased + this.start; - - if ( this.options.step ) { - this.options.step.call( this.elem, this.now, this ); - } - - if ( hooks && hooks.set ) { - hooks.set( this ); - } else { - Tween.propHooks._default.set( this ); - } - return this; - } -}; - -Tween.prototype.init.prototype = Tween.prototype; - -Tween.propHooks = { - _default: { - get: function( tween ) { - var result; - - if ( tween.elem[ tween.prop ] != null && - (!tween.elem.style || tween.elem.style[ tween.prop ] == null) ) { - return tween.elem[ tween.prop ]; - } - - // Passing an empty string as a 3rd parameter to .css will automatically - // attempt a parseFloat and fallback to a string if the parse fails. - // Simple values such as "10px" are parsed to Float; - // complex values such as "rotate(1rad)" are returned as-is. - result = jQuery.css( tween.elem, tween.prop, "" ); - // Empty strings, null, undefined and "auto" are converted to 0. - return !result || result === "auto" ? 0 : result; - }, - set: function( tween ) { - // Use step hook for back compat. - // Use cssHook if its there. - // Use .style if available and use plain properties where available. - if ( jQuery.fx.step[ tween.prop ] ) { - jQuery.fx.step[ tween.prop ]( tween ); - } else if ( tween.elem.style && ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null || jQuery.cssHooks[ tween.prop ] ) ) { - jQuery.style( tween.elem, tween.prop, tween.now + tween.unit ); - } else { - tween.elem[ tween.prop ] = tween.now; - } - } - } -}; - -// Support: IE9 -// Panic based approach to setting things on disconnected nodes -Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = { - set: function( tween ) { - if ( tween.elem.nodeType && tween.elem.parentNode ) { - tween.elem[ tween.prop ] = tween.now; - } - } -}; - -jQuery.easing = { - linear: function( p ) { - return p; - }, - swing: function( p ) { - return 0.5 - Math.cos( p * Math.PI ) / 2; - } -}; - -jQuery.fx = Tween.prototype.init; - -// Back Compat <1.8 extension point -jQuery.fx.step = {}; - - - - -var - fxNow, timerId, - rfxtypes = /^(?:toggle|show|hide)$/, - rfxnum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ), - rrun = /queueHooks$/, - animationPrefilters = [ defaultPrefilter ], - tweeners = { - "*": [ function( prop, value ) { - var tween = this.createTween( prop, value ), - target = tween.cur(), - parts = rfxnum.exec( value ), - unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ), - - // Starting value computation is required for potential unit mismatches - start = ( jQuery.cssNumber[ prop ] || unit !== "px" && +target ) && - rfxnum.exec( jQuery.css( tween.elem, prop ) ), - scale = 1, - maxIterations = 20; - - if ( start && start[ 3 ] !== unit ) { - // Trust units reported by jQuery.css - unit = unit || start[ 3 ]; - - // Make sure we update the tween properties later on - parts = parts || []; - - // Iteratively approximate from a nonzero starting point - start = +target || 1; - - do { - // If previous iteration zeroed out, double until we get *something*. - // Use string for doubling so we don't accidentally see scale as unchanged below - scale = scale || ".5"; - - // Adjust and apply - start = start / scale; - jQuery.style( tween.elem, prop, start + unit ); - - // Update scale, tolerating zero or NaN from tween.cur(), - // break the loop if scale is unchanged or perfect, or if we've just had enough - } while ( scale !== (scale = tween.cur() / target) && scale !== 1 && --maxIterations ); - } - - // Update tween properties - if ( parts ) { - start = tween.start = +start || +target || 0; - tween.unit = unit; - // If a +=/-= token was provided, we're doing a relative animation - tween.end = parts[ 1 ] ? - start + ( parts[ 1 ] + 1 ) * parts[ 2 ] : - +parts[ 2 ]; - } - - return tween; - } ] - }; - -// Animations created synchronously will run synchronously -function createFxNow() { - setTimeout(function() { - fxNow = undefined; - }); - return ( fxNow = jQuery.now() ); -} - -// Generate parameters to create a standard animation -function genFx( type, includeWidth ) { - var which, - i = 0, - attrs = { height: type }; - - // If we include width, step value is 1 to do all cssExpand values, - // otherwise step value is 2 to skip over Left and Right - includeWidth = includeWidth ? 1 : 0; - for ( ; i < 4 ; i += 2 - includeWidth ) { - which = cssExpand[ i ]; - attrs[ "margin" + which ] = attrs[ "padding" + which ] = type; - } - - if ( includeWidth ) { - attrs.opacity = attrs.width = type; - } - - return attrs; -} - -function createTween( value, prop, animation ) { - var tween, - collection = ( tweeners[ prop ] || [] ).concat( tweeners[ "*" ] ), - index = 0, - length = collection.length; - for ( ; index < length; index++ ) { - if ( (tween = collection[ index ].call( animation, prop, value )) ) { - - // We're done with this property - return tween; - } - } -} - -function defaultPrefilter( elem, props, opts ) { - /* jshint validthis: true */ - var prop, value, toggle, tween, hooks, oldfire, display, checkDisplay, - anim = this, - orig = {}, - style = elem.style, - hidden = elem.nodeType && isHidden( elem ), - dataShow = data_priv.get( elem, "fxshow" ); - - // Handle queue: false promises - if ( !opts.queue ) { - hooks = jQuery._queueHooks( elem, "fx" ); - if ( hooks.unqueued == null ) { - hooks.unqueued = 0; - oldfire = hooks.empty.fire; - hooks.empty.fire = function() { - if ( !hooks.unqueued ) { - oldfire(); - } - }; - } - hooks.unqueued++; - - anim.always(function() { - // Ensure the complete handler is called before this completes - anim.always(function() { - hooks.unqueued--; - if ( !jQuery.queue( elem, "fx" ).length ) { - hooks.empty.fire(); - } - }); - }); - } - - // Height/width overflow pass - if ( elem.nodeType === 1 && ( "height" in props || "width" in props ) ) { - // Make sure that nothing sneaks out - // Record all 3 overflow attributes because IE9-10 do not - // change the overflow attribute when overflowX and - // overflowY are set to the same value - opts.overflow = [ style.overflow, style.overflowX, style.overflowY ]; - - // Set display property to inline-block for height/width - // animations on inline elements that are having width/height animated - display = jQuery.css( elem, "display" ); - - // Test default display if display is currently "none" - checkDisplay = display === "none" ? - data_priv.get( elem, "olddisplay" ) || defaultDisplay( elem.nodeName ) : display; - - if ( checkDisplay === "inline" && jQuery.css( elem, "float" ) === "none" ) { - style.display = "inline-block"; - } - } - - if ( opts.overflow ) { - style.overflow = "hidden"; - anim.always(function() { - style.overflow = opts.overflow[ 0 ]; - style.overflowX = opts.overflow[ 1 ]; - style.overflowY = opts.overflow[ 2 ]; - }); - } - - // show/hide pass - for ( prop in props ) { - value = props[ prop ]; - if ( rfxtypes.exec( value ) ) { - delete props[ prop ]; - toggle = toggle || value === "toggle"; - if ( value === ( hidden ? "hide" : "show" ) ) { - - // If there is dataShow left over from a stopped hide or show and we are going to proceed with show, we should pretend to be hidden - if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) { - hidden = true; - } else { - continue; - } - } - orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop ); - - // Any non-fx value stops us from restoring the original display value - } else { - display = undefined; - } - } - - if ( !jQuery.isEmptyObject( orig ) ) { - if ( dataShow ) { - if ( "hidden" in dataShow ) { - hidden = dataShow.hidden; - } - } else { - dataShow = data_priv.access( elem, "fxshow", {} ); - } - - // Store state if its toggle - enables .stop().toggle() to "reverse" - if ( toggle ) { - dataShow.hidden = !hidden; - } - if ( hidden ) { - jQuery( elem ).show(); - } else { - anim.done(function() { - jQuery( elem ).hide(); - }); - } - anim.done(function() { - var prop; - - data_priv.remove( elem, "fxshow" ); - for ( prop in orig ) { - jQuery.style( elem, prop, orig[ prop ] ); - } - }); - for ( prop in orig ) { - tween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim ); - - if ( !( prop in dataShow ) ) { - dataShow[ prop ] = tween.start; - if ( hidden ) { - tween.end = tween.start; - tween.start = prop === "width" || prop === "height" ? 1 : 0; - } - } - } - - // If this is a noop like .hide().hide(), restore an overwritten display value - } else if ( (display === "none" ? defaultDisplay( elem.nodeName ) : display) === "inline" ) { - style.display = display; - } -} - -function propFilter( props, specialEasing ) { - var index, name, easing, value, hooks; - - // camelCase, specialEasing and expand cssHook pass - for ( index in props ) { - name = jQuery.camelCase( index ); - easing = specialEasing[ name ]; - value = props[ index ]; - if ( jQuery.isArray( value ) ) { - easing = value[ 1 ]; - value = props[ index ] = value[ 0 ]; - } - - if ( index !== name ) { - props[ name ] = value; - delete props[ index ]; - } - - hooks = jQuery.cssHooks[ name ]; - if ( hooks && "expand" in hooks ) { - value = hooks.expand( value ); - delete props[ name ]; - - // Not quite $.extend, this won't overwrite existing keys. - // Reusing 'index' because we have the correct "name" - for ( index in value ) { - if ( !( index in props ) ) { - props[ index ] = value[ index ]; - specialEasing[ index ] = easing; - } - } - } else { - specialEasing[ name ] = easing; - } - } -} - -function Animation( elem, properties, options ) { - var result, - stopped, - index = 0, - length = animationPrefilters.length, - deferred = jQuery.Deferred().always( function() { - // Don't match elem in the :animated selector - delete tick.elem; - }), - tick = function() { - if ( stopped ) { - return false; - } - var currentTime = fxNow || createFxNow(), - remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), - // Support: Android 2.3 - // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497) - temp = remaining / animation.duration || 0, - percent = 1 - temp, - index = 0, - length = animation.tweens.length; - - for ( ; index < length ; index++ ) { - animation.tweens[ index ].run( percent ); - } - - deferred.notifyWith( elem, [ animation, percent, remaining ]); - - if ( percent < 1 && length ) { - return remaining; - } else { - deferred.resolveWith( elem, [ animation ] ); - return false; - } - }, - animation = deferred.promise({ - elem: elem, - props: jQuery.extend( {}, properties ), - opts: jQuery.extend( true, { specialEasing: {} }, options ), - originalProperties: properties, - originalOptions: options, - startTime: fxNow || createFxNow(), - duration: options.duration, - tweens: [], - createTween: function( prop, end ) { - var tween = jQuery.Tween( elem, animation.opts, prop, end, - animation.opts.specialEasing[ prop ] || animation.opts.easing ); - animation.tweens.push( tween ); - return tween; - }, - stop: function( gotoEnd ) { - var index = 0, - // If we are going to the end, we want to run all the tweens - // otherwise we skip this part - length = gotoEnd ? animation.tweens.length : 0; - if ( stopped ) { - return this; - } - stopped = true; - for ( ; index < length ; index++ ) { - animation.tweens[ index ].run( 1 ); - } - - // Resolve when we played the last frame; otherwise, reject - if ( gotoEnd ) { - deferred.resolveWith( elem, [ animation, gotoEnd ] ); - } else { - deferred.rejectWith( elem, [ animation, gotoEnd ] ); - } - return this; - } - }), - props = animation.props; - - propFilter( props, animation.opts.specialEasing ); - - for ( ; index < length ; index++ ) { - result = animationPrefilters[ index ].call( animation, elem, props, animation.opts ); - if ( result ) { - return result; - } - } - - jQuery.map( props, createTween, animation ); - - if ( jQuery.isFunction( animation.opts.start ) ) { - animation.opts.start.call( elem, animation ); - } - - jQuery.fx.timer( - jQuery.extend( tick, { - elem: elem, - anim: animation, - queue: animation.opts.queue - }) - ); - - // attach callbacks from options - return animation.progress( animation.opts.progress ) - .done( animation.opts.done, animation.opts.complete ) - .fail( animation.opts.fail ) - .always( animation.opts.always ); -} - -jQuery.Animation = jQuery.extend( Animation, { - - tweener: function( props, callback ) { - if ( jQuery.isFunction( props ) ) { - callback = props; - props = [ "*" ]; - } else { - props = props.split(" "); - } - - var prop, - index = 0, - length = props.length; - - for ( ; index < length ; index++ ) { - prop = props[ index ]; - tweeners[ prop ] = tweeners[ prop ] || []; - tweeners[ prop ].unshift( callback ); - } - }, - - prefilter: function( callback, prepend ) { - if ( prepend ) { - animationPrefilters.unshift( callback ); - } else { - animationPrefilters.push( callback ); - } - } -}); - -jQuery.speed = function( speed, easing, fn ) { - var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : { - complete: fn || !fn && easing || - jQuery.isFunction( speed ) && speed, - duration: speed, - easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing - }; - - opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration : - opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default; - - // Normalize opt.queue - true/undefined/null -> "fx" - if ( opt.queue == null || opt.queue === true ) { - opt.queue = "fx"; - } - - // Queueing - opt.old = opt.complete; - - opt.complete = function() { - if ( jQuery.isFunction( opt.old ) ) { - opt.old.call( this ); - } - - if ( opt.queue ) { - jQuery.dequeue( this, opt.queue ); - } - }; - - return opt; -}; - -jQuery.fn.extend({ - fadeTo: function( speed, to, easing, callback ) { - - // Show any hidden elements after setting opacity to 0 - return this.filter( isHidden ).css( "opacity", 0 ).show() - - // Animate to the value specified - .end().animate({ opacity: to }, speed, easing, callback ); - }, - animate: function( prop, speed, easing, callback ) { - var empty = jQuery.isEmptyObject( prop ), - optall = jQuery.speed( speed, easing, callback ), - doAnimation = function() { - // Operate on a copy of prop so per-property easing won't be lost - var anim = Animation( this, jQuery.extend( {}, prop ), optall ); - - // Empty animations, or finishing resolves immediately - if ( empty || data_priv.get( this, "finish" ) ) { - anim.stop( true ); - } - }; - doAnimation.finish = doAnimation; - - return empty || optall.queue === false ? - this.each( doAnimation ) : - this.queue( optall.queue, doAnimation ); - }, - stop: function( type, clearQueue, gotoEnd ) { - var stopQueue = function( hooks ) { - var stop = hooks.stop; - delete hooks.stop; - stop( gotoEnd ); - }; - - if ( typeof type !== "string" ) { - gotoEnd = clearQueue; - clearQueue = type; - type = undefined; - } - if ( clearQueue && type !== false ) { - this.queue( type || "fx", [] ); - } - - return this.each(function() { - var dequeue = true, - index = type != null && type + "queueHooks", - timers = jQuery.timers, - data = data_priv.get( this ); - - if ( index ) { - if ( data[ index ] && data[ index ].stop ) { - stopQueue( data[ index ] ); - } - } else { - for ( index in data ) { - if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) { - stopQueue( data[ index ] ); - } - } - } - - for ( index = timers.length; index--; ) { - if ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) { - timers[ index ].anim.stop( gotoEnd ); - dequeue = false; - timers.splice( index, 1 ); - } - } - - // Start the next in the queue if the last step wasn't forced. - // Timers currently will call their complete callbacks, which - // will dequeue but only if they were gotoEnd. - if ( dequeue || !gotoEnd ) { - jQuery.dequeue( this, type ); - } - }); - }, - finish: function( type ) { - if ( type !== false ) { - type = type || "fx"; - } - return this.each(function() { - var index, - data = data_priv.get( this ), - queue = data[ type + "queue" ], - hooks = data[ type + "queueHooks" ], - timers = jQuery.timers, - length = queue ? queue.length : 0; - - // Enable finishing flag on private data - data.finish = true; - - // Empty the queue first - jQuery.queue( this, type, [] ); - - if ( hooks && hooks.stop ) { - hooks.stop.call( this, true ); - } - - // Look for any active animations, and finish them - for ( index = timers.length; index--; ) { - if ( timers[ index ].elem === this && timers[ index ].queue === type ) { - timers[ index ].anim.stop( true ); - timers.splice( index, 1 ); - } - } - - // Look for any animations in the old queue and finish them - for ( index = 0; index < length; index++ ) { - if ( queue[ index ] && queue[ index ].finish ) { - queue[ index ].finish.call( this ); - } - } - - // Turn off finishing flag - delete data.finish; - }); - } -}); - -jQuery.each([ "toggle", "show", "hide" ], function( i, name ) { - var cssFn = jQuery.fn[ name ]; - jQuery.fn[ name ] = function( speed, easing, callback ) { - return speed == null || typeof speed === "boolean" ? - cssFn.apply( this, arguments ) : - this.animate( genFx( name, true ), speed, easing, callback ); - }; -}); - -// Generate shortcuts for custom animations -jQuery.each({ - slideDown: genFx("show"), - slideUp: genFx("hide"), - slideToggle: genFx("toggle"), - fadeIn: { opacity: "show" }, - fadeOut: { opacity: "hide" }, - fadeToggle: { opacity: "toggle" } -}, function( name, props ) { - jQuery.fn[ name ] = function( speed, easing, callback ) { - return this.animate( props, speed, easing, callback ); - }; -}); - -jQuery.timers = []; -jQuery.fx.tick = function() { - var timer, - i = 0, - timers = jQuery.timers; - - fxNow = jQuery.now(); - - for ( ; i < timers.length; i++ ) { - timer = timers[ i ]; - // Checks the timer has not already been removed - if ( !timer() && timers[ i ] === timer ) { - timers.splice( i--, 1 ); - } - } - - if ( !timers.length ) { - jQuery.fx.stop(); - } - fxNow = undefined; -}; - -jQuery.fx.timer = function( timer ) { - jQuery.timers.push( timer ); - if ( timer() ) { - jQuery.fx.start(); - } else { - jQuery.timers.pop(); - } -}; - -jQuery.fx.interval = 13; - -jQuery.fx.start = function() { - if ( !timerId ) { - timerId = setInterval( jQuery.fx.tick, jQuery.fx.interval ); - } -}; - -jQuery.fx.stop = function() { - clearInterval( timerId ); - timerId = null; -}; - -jQuery.fx.speeds = { - slow: 600, - fast: 200, - // Default speed - _default: 400 -}; - - -// Based off of the plugin by Clint Helfers, with permission. -// http://blindsignals.com/index.php/2009/07/jquery-delay/ -jQuery.fn.delay = function( time, type ) { - time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; - type = type || "fx"; - - return this.queue( type, function( next, hooks ) { - var timeout = setTimeout( next, time ); - hooks.stop = function() { - clearTimeout( timeout ); - }; - }); -}; - - -(function() { - var input = document.createElement( "input" ), - select = document.createElement( "select" ), - opt = select.appendChild( document.createElement( "option" ) ); - - input.type = "checkbox"; - - // Support: iOS<=5.1, Android<=4.2+ - // Default value for a checkbox should be "on" - support.checkOn = input.value !== ""; - - // Support: IE<=11+ - // Must access selectedIndex to make default options select - support.optSelected = opt.selected; - - // Support: Android<=2.3 - // Options inside disabled selects are incorrectly marked as disabled - select.disabled = true; - support.optDisabled = !opt.disabled; - - // Support: IE<=11+ - // An input loses its value after becoming a radio - input = document.createElement( "input" ); - input.value = "t"; - input.type = "radio"; - support.radioValue = input.value === "t"; -})(); - - -var nodeHook, boolHook, - attrHandle = jQuery.expr.attrHandle; - -jQuery.fn.extend({ - attr: function( name, value ) { - return access( this, jQuery.attr, name, value, arguments.length > 1 ); - }, - - removeAttr: function( name ) { - return this.each(function() { - jQuery.removeAttr( this, name ); - }); - } -}); - -jQuery.extend({ - attr: function( elem, name, value ) { - var hooks, ret, - nType = elem.nodeType; - - // don't get/set attributes on text, comment and attribute nodes - if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { - return; - } - - // Fallback to prop when attributes are not supported - if ( typeof elem.getAttribute === strundefined ) { - return jQuery.prop( elem, name, value ); - } - - // All attributes are lowercase - // Grab necessary hook if one is defined - if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { - name = name.toLowerCase(); - hooks = jQuery.attrHooks[ name ] || - ( jQuery.expr.match.bool.test( name ) ? boolHook : nodeHook ); - } - - if ( value !== undefined ) { - - if ( value === null ) { - jQuery.removeAttr( elem, name ); - - } else if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) { - return ret; - - } else { - elem.setAttribute( name, value + "" ); - return value; - } - - } else if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) { - return ret; - - } else { - ret = jQuery.find.attr( elem, name ); - - // Non-existent attributes return null, we normalize to undefined - return ret == null ? - undefined : - ret; - } - }, - - removeAttr: function( elem, value ) { - var name, propName, - i = 0, - attrNames = value && value.match( rnotwhite ); - - if ( attrNames && elem.nodeType === 1 ) { - while ( (name = attrNames[i++]) ) { - propName = jQuery.propFix[ name ] || name; - - // Boolean attributes get special treatment (#10870) - if ( jQuery.expr.match.bool.test( name ) ) { - // Set corresponding property to false - elem[ propName ] = false; - } - - elem.removeAttribute( name ); - } - } - }, - - attrHooks: { - type: { - set: function( elem, value ) { - if ( !support.radioValue && value === "radio" && - jQuery.nodeName( elem, "input" ) ) { - var val = elem.value; - elem.setAttribute( "type", value ); - if ( val ) { - elem.value = val; - } - return value; - } - } - } - } -}); - -// Hooks for boolean attributes -boolHook = { - set: function( elem, value, name ) { - if ( value === false ) { - // Remove boolean attributes when set to false - jQuery.removeAttr( elem, name ); - } else { - elem.setAttribute( name, name ); - } - return name; - } -}; -jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) { - var getter = attrHandle[ name ] || jQuery.find.attr; - - attrHandle[ name ] = function( elem, name, isXML ) { - var ret, handle; - if ( !isXML ) { - // Avoid an infinite loop by temporarily removing this function from the getter - handle = attrHandle[ name ]; - attrHandle[ name ] = ret; - ret = getter( elem, name, isXML ) != null ? - name.toLowerCase() : - null; - attrHandle[ name ] = handle; - } - return ret; - }; -}); - - - - -var rfocusable = /^(?:input|select|textarea|button)$/i; - -jQuery.fn.extend({ - prop: function( name, value ) { - return access( this, jQuery.prop, name, value, arguments.length > 1 ); - }, - - removeProp: function( name ) { - return this.each(function() { - delete this[ jQuery.propFix[ name ] || name ]; - }); - } -}); - -jQuery.extend({ - propFix: { - "for": "htmlFor", - "class": "className" - }, - - prop: function( elem, name, value ) { - var ret, hooks, notxml, - nType = elem.nodeType; - - // Don't get/set properties on text, comment and attribute nodes - if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { - return; - } - - notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); - - if ( notxml ) { - // Fix name and attach hooks - name = jQuery.propFix[ name ] || name; - hooks = jQuery.propHooks[ name ]; - } - - if ( value !== undefined ) { - return hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ? - ret : - ( elem[ name ] = value ); - - } else { - return hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ? - ret : - elem[ name ]; - } - }, - - propHooks: { - tabIndex: { - get: function( elem ) { - return elem.hasAttribute( "tabindex" ) || rfocusable.test( elem.nodeName ) || elem.href ? - elem.tabIndex : - -1; - } - } - } -}); - -if ( !support.optSelected ) { - jQuery.propHooks.selected = { - get: function( elem ) { - var parent = elem.parentNode; - if ( parent && parent.parentNode ) { - parent.parentNode.selectedIndex; - } - return null; - } - }; -} - -jQuery.each([ - "tabIndex", - "readOnly", - "maxLength", - "cellSpacing", - "cellPadding", - "rowSpan", - "colSpan", - "useMap", - "frameBorder", - "contentEditable" -], function() { - jQuery.propFix[ this.toLowerCase() ] = this; -}); - - - - -var rclass = /[\t\r\n\f]/g; - -jQuery.fn.extend({ - addClass: function( value ) { - var classes, elem, cur, clazz, j, finalValue, - proceed = typeof value === "string" && value, - i = 0, - len = this.length; - - if ( jQuery.isFunction( value ) ) { - return this.each(function( j ) { - jQuery( this ).addClass( value.call( this, j, this.className ) ); - }); - } - - if ( proceed ) { - // The disjunction here is for better compressibility (see removeClass) - classes = ( value || "" ).match( rnotwhite ) || []; - - for ( ; i < len; i++ ) { - elem = this[ i ]; - cur = elem.nodeType === 1 && ( elem.className ? - ( " " + elem.className + " " ).replace( rclass, " " ) : - " " - ); - - if ( cur ) { - j = 0; - while ( (clazz = classes[j++]) ) { - if ( cur.indexOf( " " + clazz + " " ) < 0 ) { - cur += clazz + " "; - } - } - - // only assign if different to avoid unneeded rendering. - finalValue = jQuery.trim( cur ); - if ( elem.className !== finalValue ) { - elem.className = finalValue; - } - } - } - } - - return this; - }, - - removeClass: function( value ) { - var classes, elem, cur, clazz, j, finalValue, - proceed = arguments.length === 0 || typeof value === "string" && value, - i = 0, - len = this.length; - - if ( jQuery.isFunction( value ) ) { - return this.each(function( j ) { - jQuery( this ).removeClass( value.call( this, j, this.className ) ); - }); - } - if ( proceed ) { - classes = ( value || "" ).match( rnotwhite ) || []; - - for ( ; i < len; i++ ) { - elem = this[ i ]; - // This expression is here for better compressibility (see addClass) - cur = elem.nodeType === 1 && ( elem.className ? - ( " " + elem.className + " " ).replace( rclass, " " ) : - "" - ); - - if ( cur ) { - j = 0; - while ( (clazz = classes[j++]) ) { - // Remove *all* instances - while ( cur.indexOf( " " + clazz + " " ) >= 0 ) { - cur = cur.replace( " " + clazz + " ", " " ); - } - } - - // Only assign if different to avoid unneeded rendering. - finalValue = value ? jQuery.trim( cur ) : ""; - if ( elem.className !== finalValue ) { - elem.className = finalValue; - } - } - } - } - - return this; - }, - - toggleClass: function( value, stateVal ) { - var type = typeof value; - - if ( typeof stateVal === "boolean" && type === "string" ) { - return stateVal ? this.addClass( value ) : this.removeClass( value ); - } - - if ( jQuery.isFunction( value ) ) { - return this.each(function( i ) { - jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal ); - }); - } - - return this.each(function() { - if ( type === "string" ) { - // Toggle individual class names - var className, - i = 0, - self = jQuery( this ), - classNames = value.match( rnotwhite ) || []; - - while ( (className = classNames[ i++ ]) ) { - // Check each className given, space separated list - if ( self.hasClass( className ) ) { - self.removeClass( className ); - } else { - self.addClass( className ); - } - } - - // Toggle whole class name - } else if ( type === strundefined || type === "boolean" ) { - if ( this.className ) { - // store className if set - data_priv.set( this, "__className__", this.className ); - } - - // If the element has a class name or if we're passed `false`, - // then remove the whole classname (if there was one, the above saved it). - // Otherwise bring back whatever was previously saved (if anything), - // falling back to the empty string if nothing was stored. - this.className = this.className || value === false ? "" : data_priv.get( this, "__className__" ) || ""; - } - }); - }, - - hasClass: function( selector ) { - var className = " " + selector + " ", - i = 0, - l = this.length; - for ( ; i < l; i++ ) { - if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) >= 0 ) { - return true; - } - } - - return false; - } -}); - - - - -var rreturn = /\r/g; - -jQuery.fn.extend({ - val: function( value ) { - var hooks, ret, isFunction, - elem = this[0]; - - if ( !arguments.length ) { - if ( elem ) { - hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ]; - - if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) { - return ret; - } - - ret = elem.value; - - return typeof ret === "string" ? - // Handle most common string cases - ret.replace(rreturn, "") : - // Handle cases where value is null/undef or number - ret == null ? "" : ret; - } - - return; - } - - isFunction = jQuery.isFunction( value ); - - return this.each(function( i ) { - var val; - - if ( this.nodeType !== 1 ) { - return; - } - - if ( isFunction ) { - val = value.call( this, i, jQuery( this ).val() ); - } else { - val = value; - } - - // Treat null/undefined as ""; convert numbers to string - if ( val == null ) { - val = ""; - - } else if ( typeof val === "number" ) { - val += ""; - - } else if ( jQuery.isArray( val ) ) { - val = jQuery.map( val, function( value ) { - return value == null ? "" : value + ""; - }); - } - - hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; - - // If set returns undefined, fall back to normal setting - if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) { - this.value = val; - } - }); - } -}); - -jQuery.extend({ - valHooks: { - option: { - get: function( elem ) { - var val = jQuery.find.attr( elem, "value" ); - return val != null ? - val : - // Support: IE10-11+ - // option.text throws exceptions (#14686, #14858) - jQuery.trim( jQuery.text( elem ) ); - } - }, - select: { - get: function( elem ) { - var value, option, - options = elem.options, - index = elem.selectedIndex, - one = elem.type === "select-one" || index < 0, - values = one ? null : [], - max = one ? index + 1 : options.length, - i = index < 0 ? - max : - one ? index : 0; - - // Loop through all the selected options - for ( ; i < max; i++ ) { - option = options[ i ]; - - // IE6-9 doesn't update selected after form reset (#2551) - if ( ( option.selected || i === index ) && - // Don't return options that are disabled or in a disabled optgroup - ( support.optDisabled ? !option.disabled : option.getAttribute( "disabled" ) === null ) && - ( !option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) { - - // Get the specific value for the option - value = jQuery( option ).val(); - - // We don't need an array for one selects - if ( one ) { - return value; - } - - // Multi-Selects return an array - values.push( value ); - } - } - - return values; - }, - - set: function( elem, value ) { - var optionSet, option, - options = elem.options, - values = jQuery.makeArray( value ), - i = options.length; - - while ( i-- ) { - option = options[ i ]; - if ( (option.selected = jQuery.inArray( option.value, values ) >= 0) ) { - optionSet = true; - } - } - - // Force browsers to behave consistently when non-matching value is set - if ( !optionSet ) { - elem.selectedIndex = -1; - } - return values; - } - } - } -}); - -// Radios and checkboxes getter/setter -jQuery.each([ "radio", "checkbox" ], function() { - jQuery.valHooks[ this ] = { - set: function( elem, value ) { - if ( jQuery.isArray( value ) ) { - return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 ); - } - } - }; - if ( !support.checkOn ) { - jQuery.valHooks[ this ].get = function( elem ) { - return elem.getAttribute("value") === null ? "on" : elem.value; - }; - } -}); - - - - -// Return jQuery for attributes-only inclusion - - -jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " + - "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " + - "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) { - - // Handle event binding - jQuery.fn[ name ] = function( data, fn ) { - return arguments.length > 0 ? - this.on( name, null, data, fn ) : - this.trigger( name ); - }; -}); - -jQuery.fn.extend({ - hover: function( fnOver, fnOut ) { - return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver ); - }, - - bind: function( types, data, fn ) { - return this.on( types, null, data, fn ); - }, - unbind: function( types, fn ) { - return this.off( types, null, fn ); - }, - - delegate: function( selector, types, data, fn ) { - return this.on( types, selector, data, fn ); - }, - undelegate: function( selector, types, fn ) { - // ( namespace ) or ( selector, types [, fn] ) - return arguments.length === 1 ? this.off( selector, "**" ) : this.off( types, selector || "**", fn ); - } -}); - - -var nonce = jQuery.now(); - -var rquery = (/\?/); - - - -// Support: Android 2.3 -// Workaround failure to string-cast null input -jQuery.parseJSON = function( data ) { - return JSON.parse( data + "" ); -}; - - -// Cross-browser xml parsing -jQuery.parseXML = function( data ) { - var xml, tmp; - if ( !data || typeof data !== "string" ) { - return null; - } - - // Support: IE9 - try { - tmp = new DOMParser(); - xml = tmp.parseFromString( data, "text/xml" ); - } catch ( e ) { - xml = undefined; - } - - if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) { - jQuery.error( "Invalid XML: " + data ); - } - return xml; -}; - - -var - rhash = /#.*$/, - rts = /([?&])_=[^&]*/, - rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg, - // #7653, #8125, #8152: local protocol detection - rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, - rnoContent = /^(?:GET|HEAD)$/, - rprotocol = /^\/\//, - rurl = /^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/, - - /* Prefilters - * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example) - * 2) These are called: - * - BEFORE asking for a transport - * - AFTER param serialization (s.data is a string if s.processData is true) - * 3) key is the dataType - * 4) the catchall symbol "*" can be used - * 5) execution will start with transport dataType and THEN continue down to "*" if needed - */ - prefilters = {}, - - /* Transports bindings - * 1) key is the dataType - * 2) the catchall symbol "*" can be used - * 3) selection will start with transport dataType and THEN go to "*" if needed - */ - transports = {}, - - // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression - allTypes = "*/".concat( "*" ), - - // Document location - ajaxLocation = window.location.href, - - // Segment location into parts - ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || []; - -// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport -function addToPrefiltersOrTransports( structure ) { - - // dataTypeExpression is optional and defaults to "*" - return function( dataTypeExpression, func ) { - - if ( typeof dataTypeExpression !== "string" ) { - func = dataTypeExpression; - dataTypeExpression = "*"; - } - - var dataType, - i = 0, - dataTypes = dataTypeExpression.toLowerCase().match( rnotwhite ) || []; - - if ( jQuery.isFunction( func ) ) { - // For each dataType in the dataTypeExpression - while ( (dataType = dataTypes[i++]) ) { - // Prepend if requested - if ( dataType[0] === "+" ) { - dataType = dataType.slice( 1 ) || "*"; - (structure[ dataType ] = structure[ dataType ] || []).unshift( func ); - - // Otherwise append - } else { - (structure[ dataType ] = structure[ dataType ] || []).push( func ); - } - } - } - }; -} - -// Base inspection function for prefilters and transports -function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) { - - var inspected = {}, - seekingTransport = ( structure === transports ); - - function inspect( dataType ) { - var selected; - inspected[ dataType ] = true; - jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) { - var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR ); - if ( typeof dataTypeOrTransport === "string" && !seekingTransport && !inspected[ dataTypeOrTransport ] ) { - options.dataTypes.unshift( dataTypeOrTransport ); - inspect( dataTypeOrTransport ); - return false; - } else if ( seekingTransport ) { - return !( selected = dataTypeOrTransport ); - } - }); - return selected; - } - - return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" ); -} - -// A special extend for ajax options -// that takes "flat" options (not to be deep extended) -// Fixes #9887 -function ajaxExtend( target, src ) { - var key, deep, - flatOptions = jQuery.ajaxSettings.flatOptions || {}; - - for ( key in src ) { - if ( src[ key ] !== undefined ) { - ( flatOptions[ key ] ? target : ( deep || (deep = {}) ) )[ key ] = src[ key ]; - } - } - if ( deep ) { - jQuery.extend( true, target, deep ); - } - - return target; -} - -/* Handles responses to an ajax request: - * - finds the right dataType (mediates between content-type and expected dataType) - * - returns the corresponding response - */ -function ajaxHandleResponses( s, jqXHR, responses ) { - - var ct, type, finalDataType, firstDataType, - contents = s.contents, - dataTypes = s.dataTypes; - - // Remove auto dataType and get content-type in the process - while ( dataTypes[ 0 ] === "*" ) { - dataTypes.shift(); - if ( ct === undefined ) { - ct = s.mimeType || jqXHR.getResponseHeader("Content-Type"); - } - } - - // Check if we're dealing with a known content-type - if ( ct ) { - for ( type in contents ) { - if ( contents[ type ] && contents[ type ].test( ct ) ) { - dataTypes.unshift( type ); - break; - } - } - } - - // Check to see if we have a response for the expected dataType - if ( dataTypes[ 0 ] in responses ) { - finalDataType = dataTypes[ 0 ]; - } else { - // Try convertible dataTypes - for ( type in responses ) { - if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) { - finalDataType = type; - break; - } - if ( !firstDataType ) { - firstDataType = type; - } - } - // Or just use first one - finalDataType = finalDataType || firstDataType; - } - - // If we found a dataType - // We add the dataType to the list if needed - // and return the corresponding response - if ( finalDataType ) { - if ( finalDataType !== dataTypes[ 0 ] ) { - dataTypes.unshift( finalDataType ); - } - return responses[ finalDataType ]; - } -} - -/* Chain conversions given the request and the original response - * Also sets the responseXXX fields on the jqXHR instance - */ -function ajaxConvert( s, response, jqXHR, isSuccess ) { - var conv2, current, conv, tmp, prev, - converters = {}, - // Work with a copy of dataTypes in case we need to modify it for conversion - dataTypes = s.dataTypes.slice(); - - // Create converters map with lowercased keys - if ( dataTypes[ 1 ] ) { - for ( conv in s.converters ) { - converters[ conv.toLowerCase() ] = s.converters[ conv ]; - } - } - - current = dataTypes.shift(); - - // Convert to each sequential dataType - while ( current ) { - - if ( s.responseFields[ current ] ) { - jqXHR[ s.responseFields[ current ] ] = response; - } - - // Apply the dataFilter if provided - if ( !prev && isSuccess && s.dataFilter ) { - response = s.dataFilter( response, s.dataType ); - } - - prev = current; - current = dataTypes.shift(); - - if ( current ) { - - // There's only work to do if current dataType is non-auto - if ( current === "*" ) { - - current = prev; - - // Convert response if prev dataType is non-auto and differs from current - } else if ( prev !== "*" && prev !== current ) { - - // Seek a direct converter - conv = converters[ prev + " " + current ] || converters[ "* " + current ]; - - // If none found, seek a pair - if ( !conv ) { - for ( conv2 in converters ) { - - // If conv2 outputs current - tmp = conv2.split( " " ); - if ( tmp[ 1 ] === current ) { - - // If prev can be converted to accepted input - conv = converters[ prev + " " + tmp[ 0 ] ] || - converters[ "* " + tmp[ 0 ] ]; - if ( conv ) { - // Condense equivalence converters - if ( conv === true ) { - conv = converters[ conv2 ]; - - // Otherwise, insert the intermediate dataType - } else if ( converters[ conv2 ] !== true ) { - current = tmp[ 0 ]; - dataTypes.unshift( tmp[ 1 ] ); - } - break; - } - } - } - } - - // Apply converter (if not an equivalence) - if ( conv !== true ) { - - // Unless errors are allowed to bubble, catch and return them - if ( conv && s[ "throws" ] ) { - response = conv( response ); - } else { - try { - response = conv( response ); - } catch ( e ) { - return { state: "parsererror", error: conv ? e : "No conversion from " + prev + " to " + current }; - } - } - } - } - } - } - - return { state: "success", data: response }; -} - -jQuery.extend({ - - // Counter for holding the number of active queries - active: 0, - - // Last-Modified header cache for next request - lastModified: {}, - etag: {}, - - ajaxSettings: { - url: ajaxLocation, - type: "GET", - isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ), - global: true, - processData: true, - async: true, - contentType: "application/x-www-form-urlencoded; charset=UTF-8", - /* - timeout: 0, - data: null, - dataType: null, - username: null, - password: null, - cache: null, - throws: false, - traditional: false, - headers: {}, - */ - - accepts: { - "*": allTypes, - text: "text/plain", - html: "text/html", - xml: "application/xml, text/xml", - json: "application/json, text/javascript" - }, - - contents: { - xml: /xml/, - html: /html/, - json: /json/ - }, - - responseFields: { - xml: "responseXML", - text: "responseText", - json: "responseJSON" - }, - - // Data converters - // Keys separate source (or catchall "*") and destination types with a single space - converters: { - - // Convert anything to text - "* text": String, - - // Text to html (true = no transformation) - "text html": true, - - // Evaluate text as a json expression - "text json": jQuery.parseJSON, - - // Parse text as xml - "text xml": jQuery.parseXML - }, - - // For options that shouldn't be deep extended: - // you can add your own custom options here if - // and when you create one that shouldn't be - // deep extended (see ajaxExtend) - flatOptions: { - url: true, - context: true - } - }, - - // Creates a full fledged settings object into target - // with both ajaxSettings and settings fields. - // If target is omitted, writes into ajaxSettings. - ajaxSetup: function( target, settings ) { - return settings ? - - // Building a settings object - ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) : - - // Extending ajaxSettings - ajaxExtend( jQuery.ajaxSettings, target ); - }, - - ajaxPrefilter: addToPrefiltersOrTransports( prefilters ), - ajaxTransport: addToPrefiltersOrTransports( transports ), - - // Main method - ajax: function( url, options ) { - - // If url is an object, simulate pre-1.5 signature - if ( typeof url === "object" ) { - options = url; - url = undefined; - } - - // Force options to be an object - options = options || {}; - - var transport, - // URL without anti-cache param - cacheURL, - // Response headers - responseHeadersString, - responseHeaders, - // timeout handle - timeoutTimer, - // Cross-domain detection vars - parts, - // To know if global events are to be dispatched - fireGlobals, - // Loop variable - i, - // Create the final options object - s = jQuery.ajaxSetup( {}, options ), - // Callbacks context - callbackContext = s.context || s, - // Context for global events is callbackContext if it is a DOM node or jQuery collection - globalEventContext = s.context && ( callbackContext.nodeType || callbackContext.jquery ) ? - jQuery( callbackContext ) : - jQuery.event, - // Deferreds - deferred = jQuery.Deferred(), - completeDeferred = jQuery.Callbacks("once memory"), - // Status-dependent callbacks - statusCode = s.statusCode || {}, - // Headers (they are sent all at once) - requestHeaders = {}, - requestHeadersNames = {}, - // The jqXHR state - state = 0, - // Default abort message - strAbort = "canceled", - // Fake xhr - jqXHR = { - readyState: 0, - - // Builds headers hashtable if needed - getResponseHeader: function( key ) { - var match; - if ( state === 2 ) { - if ( !responseHeaders ) { - responseHeaders = {}; - while ( (match = rheaders.exec( responseHeadersString )) ) { - responseHeaders[ match[1].toLowerCase() ] = match[ 2 ]; - } - } - match = responseHeaders[ key.toLowerCase() ]; - } - return match == null ? null : match; - }, - - // Raw string - getAllResponseHeaders: function() { - return state === 2 ? responseHeadersString : null; - }, - - // Caches the header - setRequestHeader: function( name, value ) { - var lname = name.toLowerCase(); - if ( !state ) { - name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name; - requestHeaders[ name ] = value; - } - return this; - }, - - // Overrides response content-type header - overrideMimeType: function( type ) { - if ( !state ) { - s.mimeType = type; - } - return this; - }, - - // Status-dependent callbacks - statusCode: function( map ) { - var code; - if ( map ) { - if ( state < 2 ) { - for ( code in map ) { - // Lazy-add the new callback in a way that preserves old ones - statusCode[ code ] = [ statusCode[ code ], map[ code ] ]; - } - } else { - // Execute the appropriate callbacks - jqXHR.always( map[ jqXHR.status ] ); - } - } - return this; - }, - - // Cancel the request - abort: function( statusText ) { - var finalText = statusText || strAbort; - if ( transport ) { - transport.abort( finalText ); - } - done( 0, finalText ); - return this; - } - }; - - // Attach deferreds - deferred.promise( jqXHR ).complete = completeDeferred.add; - jqXHR.success = jqXHR.done; - jqXHR.error = jqXHR.fail; - - // Remove hash character (#7531: and string promotion) - // Add protocol if not provided (prefilters might expect it) - // Handle falsy url in the settings object (#10093: consistency with old signature) - // We also use the url parameter if available - s.url = ( ( url || s.url || ajaxLocation ) + "" ).replace( rhash, "" ) - .replace( rprotocol, ajaxLocParts[ 1 ] + "//" ); - - // Alias method option to type as per ticket #12004 - s.type = options.method || options.type || s.method || s.type; - - // Extract dataTypes list - s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().match( rnotwhite ) || [ "" ]; - - // A cross-domain request is in order when we have a protocol:host:port mismatch - if ( s.crossDomain == null ) { - parts = rurl.exec( s.url.toLowerCase() ); - s.crossDomain = !!( parts && - ( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] || - ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? "80" : "443" ) ) !== - ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? "80" : "443" ) ) ) - ); - } - - // Convert data if not already a string - if ( s.data && s.processData && typeof s.data !== "string" ) { - s.data = jQuery.param( s.data, s.traditional ); - } - - // Apply prefilters - inspectPrefiltersOrTransports( prefilters, s, options, jqXHR ); - - // If request was aborted inside a prefilter, stop there - if ( state === 2 ) { - return jqXHR; - } - - // We can fire global events as of now if asked to - // Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118) - fireGlobals = jQuery.event && s.global; - - // Watch for a new set of requests - if ( fireGlobals && jQuery.active++ === 0 ) { - jQuery.event.trigger("ajaxStart"); - } - - // Uppercase the type - s.type = s.type.toUpperCase(); - - // Determine if request has content - s.hasContent = !rnoContent.test( s.type ); - - // Save the URL in case we're toying with the If-Modified-Since - // and/or If-None-Match header later on - cacheURL = s.url; - - // More options handling for requests with no content - if ( !s.hasContent ) { - - // If data is available, append data to url - if ( s.data ) { - cacheURL = ( s.url += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data ); - // #9682: remove data so that it's not used in an eventual retry - delete s.data; - } - - // Add anti-cache in url if needed - if ( s.cache === false ) { - s.url = rts.test( cacheURL ) ? - - // If there is already a '_' parameter, set its value - cacheURL.replace( rts, "$1_=" + nonce++ ) : - - // Otherwise add one to the end - cacheURL + ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + nonce++; - } - } - - // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. - if ( s.ifModified ) { - if ( jQuery.lastModified[ cacheURL ] ) { - jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] ); - } - if ( jQuery.etag[ cacheURL ] ) { - jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] ); - } - } - - // Set the correct header, if data is being sent - if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) { - jqXHR.setRequestHeader( "Content-Type", s.contentType ); - } - - // Set the Accepts header for the server, depending on the dataType - jqXHR.setRequestHeader( - "Accept", - s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ? - s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) : - s.accepts[ "*" ] - ); - - // Check for headers option - for ( i in s.headers ) { - jqXHR.setRequestHeader( i, s.headers[ i ] ); - } - - // Allow custom headers/mimetypes and early abort - if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) { - // Abort if not done already and return - return jqXHR.abort(); - } - - // Aborting is no longer a cancellation - strAbort = "abort"; - - // Install callbacks on deferreds - for ( i in { success: 1, error: 1, complete: 1 } ) { - jqXHR[ i ]( s[ i ] ); - } - - // Get transport - transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR ); - - // If no transport, we auto-abort - if ( !transport ) { - done( -1, "No Transport" ); - } else { - jqXHR.readyState = 1; - - // Send global event - if ( fireGlobals ) { - globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] ); - } - // Timeout - if ( s.async && s.timeout > 0 ) { - timeoutTimer = setTimeout(function() { - jqXHR.abort("timeout"); - }, s.timeout ); - } - - try { - state = 1; - transport.send( requestHeaders, done ); - } catch ( e ) { - // Propagate exception as error if not done - if ( state < 2 ) { - done( -1, e ); - // Simply rethrow otherwise - } else { - throw e; - } - } - } - - // Callback for when everything is done - function done( status, nativeStatusText, responses, headers ) { - var isSuccess, success, error, response, modified, - statusText = nativeStatusText; - - // Called once - if ( state === 2 ) { - return; - } - - // State is "done" now - state = 2; - - // Clear timeout if it exists - if ( timeoutTimer ) { - clearTimeout( timeoutTimer ); - } - - // Dereference transport for early garbage collection - // (no matter how long the jqXHR object will be used) - transport = undefined; - - // Cache response headers - responseHeadersString = headers || ""; - - // Set readyState - jqXHR.readyState = status > 0 ? 4 : 0; - - // Determine if successful - isSuccess = status >= 200 && status < 300 || status === 304; - - // Get response data - if ( responses ) { - response = ajaxHandleResponses( s, jqXHR, responses ); - } - - // Convert no matter what (that way responseXXX fields are always set) - response = ajaxConvert( s, response, jqXHR, isSuccess ); - - // If successful, handle type chaining - if ( isSuccess ) { - - // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. - if ( s.ifModified ) { - modified = jqXHR.getResponseHeader("Last-Modified"); - if ( modified ) { - jQuery.lastModified[ cacheURL ] = modified; - } - modified = jqXHR.getResponseHeader("etag"); - if ( modified ) { - jQuery.etag[ cacheURL ] = modified; - } - } - - // if no content - if ( status === 204 || s.type === "HEAD" ) { - statusText = "nocontent"; - - // if not modified - } else if ( status === 304 ) { - statusText = "notmodified"; - - // If we have data, let's convert it - } else { - statusText = response.state; - success = response.data; - error = response.error; - isSuccess = !error; - } - } else { - // Extract error from statusText and normalize for non-aborts - error = statusText; - if ( status || !statusText ) { - statusText = "error"; - if ( status < 0 ) { - status = 0; - } - } - } - - // Set data for the fake xhr object - jqXHR.status = status; - jqXHR.statusText = ( nativeStatusText || statusText ) + ""; - - // Success/Error - if ( isSuccess ) { - deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] ); - } else { - deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] ); - } - - // Status-dependent callbacks - jqXHR.statusCode( statusCode ); - statusCode = undefined; - - if ( fireGlobals ) { - globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError", - [ jqXHR, s, isSuccess ? success : error ] ); - } - - // Complete - completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] ); - - if ( fireGlobals ) { - globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] ); - // Handle the global AJAX counter - if ( !( --jQuery.active ) ) { - jQuery.event.trigger("ajaxStop"); - } - } - } - - return jqXHR; - }, - - getJSON: function( url, data, callback ) { - return jQuery.get( url, data, callback, "json" ); - }, - - getScript: function( url, callback ) { - return jQuery.get( url, undefined, callback, "script" ); - } -}); - -jQuery.each( [ "get", "post" ], function( i, method ) { - jQuery[ method ] = function( url, data, callback, type ) { - // Shift arguments if data argument was omitted - if ( jQuery.isFunction( data ) ) { - type = type || callback; - callback = data; - data = undefined; - } - - return jQuery.ajax({ - url: url, - type: method, - dataType: type, - data: data, - success: callback - }); - }; -}); - - -jQuery._evalUrl = function( url ) { - return jQuery.ajax({ - url: url, - type: "GET", - dataType: "script", - async: false, - global: false, - "throws": true - }); -}; - - -jQuery.fn.extend({ - wrapAll: function( html ) { - var wrap; - - if ( jQuery.isFunction( html ) ) { - return this.each(function( i ) { - jQuery( this ).wrapAll( html.call(this, i) ); - }); - } - - if ( this[ 0 ] ) { - - // The elements to wrap the target around - wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true ); - - if ( this[ 0 ].parentNode ) { - wrap.insertBefore( this[ 0 ] ); - } - - wrap.map(function() { - var elem = this; - - while ( elem.firstElementChild ) { - elem = elem.firstElementChild; - } - - return elem; - }).append( this ); - } - - return this; - }, - - wrapInner: function( html ) { - if ( jQuery.isFunction( html ) ) { - return this.each(function( i ) { - jQuery( this ).wrapInner( html.call(this, i) ); - }); - } - - return this.each(function() { - var self = jQuery( this ), - contents = self.contents(); - - if ( contents.length ) { - contents.wrapAll( html ); - - } else { - self.append( html ); - } - }); - }, - - wrap: function( html ) { - var isFunction = jQuery.isFunction( html ); - - return this.each(function( i ) { - jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html ); - }); - }, - - unwrap: function() { - return this.parent().each(function() { - if ( !jQuery.nodeName( this, "body" ) ) { - jQuery( this ).replaceWith( this.childNodes ); - } - }).end(); - } -}); - - -jQuery.expr.filters.hidden = function( elem ) { - // Support: Opera <= 12.12 - // Opera reports offsetWidths and offsetHeights less than zero on some elements - return elem.offsetWidth <= 0 && elem.offsetHeight <= 0; -}; -jQuery.expr.filters.visible = function( elem ) { - return !jQuery.expr.filters.hidden( elem ); -}; - - - - -var r20 = /%20/g, - rbracket = /\[\]$/, - rCRLF = /\r?\n/g, - rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i, - rsubmittable = /^(?:input|select|textarea|keygen)/i; - -function buildParams( prefix, obj, traditional, add ) { - var name; - - if ( jQuery.isArray( obj ) ) { - // Serialize array item. - jQuery.each( obj, function( i, v ) { - if ( traditional || rbracket.test( prefix ) ) { - // Treat each array item as a scalar. - add( prefix, v ); - - } else { - // Item is non-scalar (array or object), encode its numeric index. - buildParams( prefix + "[" + ( typeof v === "object" ? i : "" ) + "]", v, traditional, add ); - } - }); - - } else if ( !traditional && jQuery.type( obj ) === "object" ) { - // Serialize object item. - for ( name in obj ) { - buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add ); - } - - } else { - // Serialize scalar item. - add( prefix, obj ); - } -} - -// Serialize an array of form elements or a set of -// key/values into a query string -jQuery.param = function( a, traditional ) { - var prefix, - s = [], - add = function( key, value ) { - // If value is a function, invoke it and return its value - value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value ); - s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value ); - }; - - // Set traditional to true for jQuery <= 1.3.2 behavior. - if ( traditional === undefined ) { - traditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional; - } - - // If an array was passed in, assume that it is an array of form elements. - if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) { - // Serialize the form elements - jQuery.each( a, function() { - add( this.name, this.value ); - }); - - } else { - // If traditional, encode the "old" way (the way 1.3.2 or older - // did it), otherwise encode params recursively. - for ( prefix in a ) { - buildParams( prefix, a[ prefix ], traditional, add ); - } - } - - // Return the resulting serialization - return s.join( "&" ).replace( r20, "+" ); -}; - -jQuery.fn.extend({ - serialize: function() { - return jQuery.param( this.serializeArray() ); - }, - serializeArray: function() { - return this.map(function() { - // Can add propHook for "elements" to filter or add form elements - var elements = jQuery.prop( this, "elements" ); - return elements ? jQuery.makeArray( elements ) : this; - }) - .filter(function() { - var type = this.type; - - // Use .is( ":disabled" ) so that fieldset[disabled] works - return this.name && !jQuery( this ).is( ":disabled" ) && - rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) && - ( this.checked || !rcheckableType.test( type ) ); - }) - .map(function( i, elem ) { - var val = jQuery( this ).val(); - - return val == null ? - null : - jQuery.isArray( val ) ? - jQuery.map( val, function( val ) { - return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; - }) : - { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; - }).get(); - } -}); - - -jQuery.ajaxSettings.xhr = function() { - try { - return new XMLHttpRequest(); - } catch( e ) {} -}; - -var xhrId = 0, - xhrCallbacks = {}, - xhrSuccessStatus = { - // file protocol always yields status code 0, assume 200 - 0: 200, - // Support: IE9 - // #1450: sometimes IE returns 1223 when it should be 204 - 1223: 204 - }, - xhrSupported = jQuery.ajaxSettings.xhr(); - -// Support: IE9 -// Open requests must be manually aborted on unload (#5280) -// See https://support.microsoft.com/kb/2856746 for more info -if ( window.attachEvent ) { - window.attachEvent( "onunload", function() { - for ( var key in xhrCallbacks ) { - xhrCallbacks[ key ](); - } - }); -} - -support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported ); -support.ajax = xhrSupported = !!xhrSupported; - -jQuery.ajaxTransport(function( options ) { - var callback; - - // Cross domain only allowed if supported through XMLHttpRequest - if ( support.cors || xhrSupported && !options.crossDomain ) { - return { - send: function( headers, complete ) { - var i, - xhr = options.xhr(), - id = ++xhrId; - - xhr.open( options.type, options.url, options.async, options.username, options.password ); - - // Apply custom fields if provided - if ( options.xhrFields ) { - for ( i in options.xhrFields ) { - xhr[ i ] = options.xhrFields[ i ]; - } - } - - // Override mime type if needed - if ( options.mimeType && xhr.overrideMimeType ) { - xhr.overrideMimeType( options.mimeType ); - } - - // X-Requested-With header - // For cross-domain requests, seeing as conditions for a preflight are - // akin to a jigsaw puzzle, we simply never set it to be sure. - // (it can always be set on a per-request basis or even using ajaxSetup) - // For same-domain requests, won't change header if already provided. - if ( !options.crossDomain && !headers["X-Requested-With"] ) { - headers["X-Requested-With"] = "XMLHttpRequest"; - } - - // Set headers - for ( i in headers ) { - xhr.setRequestHeader( i, headers[ i ] ); - } - - // Callback - callback = function( type ) { - return function() { - if ( callback ) { - delete xhrCallbacks[ id ]; - callback = xhr.onload = xhr.onerror = null; - - if ( type === "abort" ) { - xhr.abort(); - } else if ( type === "error" ) { - complete( - // file: protocol always yields status 0; see #8605, #14207 - xhr.status, - xhr.statusText - ); - } else { - complete( - xhrSuccessStatus[ xhr.status ] || xhr.status, - xhr.statusText, - // Support: IE9 - // Accessing binary-data responseText throws an exception - // (#11426) - typeof xhr.responseText === "string" ? { - text: xhr.responseText - } : undefined, - xhr.getAllResponseHeaders() - ); - } - } - }; - }; - - // Listen to events - xhr.onload = callback(); - xhr.onerror = callback("error"); - - // Create the abort callback - callback = xhrCallbacks[ id ] = callback("abort"); - - try { - // Do send the request (this may raise an exception) - xhr.send( options.hasContent && options.data || null ); - } catch ( e ) { - // #14683: Only rethrow if this hasn't been notified as an error yet - if ( callback ) { - throw e; - } - } - }, - - abort: function() { - if ( callback ) { - callback(); - } - } - }; - } -}); - - - - -// Install script dataType -jQuery.ajaxSetup({ - accepts: { - script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript" - }, - contents: { - script: /(?:java|ecma)script/ - }, - converters: { - "text script": function( text ) { - jQuery.globalEval( text ); - return text; - } - } -}); - -// Handle cache's special case and crossDomain -jQuery.ajaxPrefilter( "script", function( s ) { - if ( s.cache === undefined ) { - s.cache = false; - } - if ( s.crossDomain ) { - s.type = "GET"; - } -}); - -// Bind script tag hack transport -jQuery.ajaxTransport( "script", function( s ) { - // This transport only deals with cross domain requests - if ( s.crossDomain ) { - var script, callback; - return { - send: function( _, complete ) { - script = jQuery("