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G5CW,EAAyBC,EAAQ,OAEjCC,EAA0BD,EAAQ,OAKtCE,EAAQ,OAAU,EAElB,IAAI1Q,EAAQyQ,EAAwBD,EAAQ,QAIxCG,GAAW,EAFMJ,EAAuBC,EAAQ,QAElBI,SAAuB5Q,EAAM6Q,cAAc,OAAQ,CACnF3C,EAAG,sGACD,YAEJwC,EAAQ,EAAUC","sources":["../node_modules/.pnpm/@material-ui+core@4.12.4_@types+react@18.0.9_react-dom@18.1.0_react@18.1.0__react@18.1.0/node_modules/@material-ui/core/esm/Slide/Slide.js","../node_modules/.pnpm/@material-ui+core@4.12.4_@types+react@18.0.9_react-dom@18.1.0_react@18.1.0__react@18.1.0/node_modules/@material-ui/core/esm/Drawer/Drawer.js","main_components/menus/DrawerMenu.js","../node_modules/.pnpm/@material-ui+icons@4.11.3_@material-ui+core@4.12.4_@types+react@18.0.9_react-dom@18.1.0_e057b2932bf4068821066c14ca29e438/node_modules/@material-ui/icons/esm/AccountCircle.js","main_components/headers/MainHeader.js","../node_modules/.pnpm/@material-ui+icons@4.11.3_@material-ui+core@4.12.4_@types+react@18.0.9_react-dom@18.1.0_e057b2932bf4068821066c14ca29e438/node_modules/@material-ui/icons/MenuOpen.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport * as ReactDOM from 'react-dom';\nimport debounce from '../utils/debounce';\nimport { Transition } from 'react-transition-group';\nimport { elementAcceptingRef } from '@material-ui/utils';\nimport useForkRef from '../utils/useForkRef';\nimport useTheme from '../styles/useTheme';\nimport { duration } from '../styles/transitions';\nimport { reflow, getTransitionProps } from '../transitions/utils'; // Translate the node so he can't be seen on the screen.\n// Later, we gonna translate back the node to his original location\n// with `none`.`\n\nfunction getTranslateValue(direction, node) {\n var rect = node.getBoundingClientRect();\n var transform;\n\n if (node.fakeTransform) {\n transform = node.fakeTransform;\n } else {\n var computedStyle = window.getComputedStyle(node);\n transform = computedStyle.getPropertyValue('-webkit-transform') || computedStyle.getPropertyValue('transform');\n }\n\n var offsetX = 0;\n var offsetY = 0;\n\n if (transform && transform !== 'none' && typeof transform === 'string') {\n var transformValues = transform.split('(')[1].split(')')[0].split(',');\n offsetX = parseInt(transformValues[4], 10);\n offsetY = parseInt(transformValues[5], 10);\n }\n\n if (direction === 'left') {\n return \"translateX(\".concat(window.innerWidth, \"px) translateX(\").concat(offsetX - rect.left, \"px)\");\n }\n\n if (direction === 'right') {\n return \"translateX(-\".concat(rect.left + rect.width - offsetX, \"px)\");\n }\n\n if (direction === 'up') {\n return \"translateY(\".concat(window.innerHeight, \"px) translateY(\").concat(offsetY - rect.top, \"px)\");\n } // direction === 'down'\n\n\n return \"translateY(-\".concat(rect.top + rect.height - offsetY, \"px)\");\n}\n\nexport function setTranslateValue(direction, node) {\n var transform = getTranslateValue(direction, node);\n\n if (transform) {\n node.style.webkitTransform = transform;\n node.style.transform = transform;\n }\n}\nvar defaultTimeout = {\n enter: duration.enteringScreen,\n exit: duration.leavingScreen\n};\n/**\n * The Slide transition is used by the [Drawer](/components/drawers/) component.\n * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.\n */\n\nvar Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {\n var children = props.children,\n _props$direction = props.direction,\n direction = _props$direction === void 0 ? 'down' : _props$direction,\n inProp = props.in,\n onEnter = props.onEnter,\n onEntered = props.onEntered,\n onEntering = props.onEntering,\n onExit = props.onExit,\n onExited = props.onExited,\n onExiting = props.onExiting,\n style = props.style,\n _props$timeout = props.timeout,\n timeout = _props$timeout === void 0 ? defaultTimeout : _props$timeout,\n _props$TransitionComp = props.TransitionComponent,\n TransitionComponent = _props$TransitionComp === void 0 ? Transition : _props$TransitionComp,\n other = _objectWithoutProperties(props, [\"children\", \"direction\", \"in\", \"onEnter\", \"onEntered\", \"onEntering\", \"onExit\", \"onExited\", \"onExiting\", \"style\", \"timeout\", \"TransitionComponent\"]);\n\n var theme = useTheme();\n var childrenRef = React.useRef(null);\n /**\n * used in cloneElement(children, { ref: handleRef })\n */\n\n var handleOwnRef = React.useCallback(function (instance) {\n // #StrictMode ready\n childrenRef.current = ReactDOM.findDOMNode(instance);\n }, []);\n var handleRefIntermediary = useForkRef(children.ref, handleOwnRef);\n var handleRef = useForkRef(handleRefIntermediary, ref);\n\n var normalizedTransitionCallback = function normalizedTransitionCallback(callback) {\n return function (isAppearing) {\n if (callback) {\n // onEnterXxx and onExitXxx callbacks have a different arguments.length value.\n if (isAppearing === undefined) {\n callback(childrenRef.current);\n } else {\n callback(childrenRef.current, isAppearing);\n }\n }\n };\n };\n\n var handleEnter = normalizedTransitionCallback(function (node, isAppearing) {\n setTranslateValue(direction, node);\n reflow(node);\n\n if (onEnter) {\n onEnter(node, isAppearing);\n }\n });\n var handleEntering = normalizedTransitionCallback(function (node, isAppearing) {\n var transitionProps = getTransitionProps({\n timeout: timeout,\n style: style\n }, {\n mode: 'enter'\n });\n node.style.webkitTransition = theme.transitions.create('-webkit-transform', _extends({}, transitionProps, {\n easing: theme.transitions.easing.easeOut\n }));\n node.style.transition = theme.transitions.create('transform', _extends({}, transitionProps, {\n easing: theme.transitions.easing.easeOut\n }));\n node.style.webkitTransform = 'none';\n node.style.transform = 'none';\n\n if (onEntering) {\n onEntering(node, isAppearing);\n }\n });\n var handleEntered = normalizedTransitionCallback(onEntered);\n var handleExiting = normalizedTransitionCallback(onExiting);\n var handleExit = normalizedTransitionCallback(function (node) {\n var transitionProps = getTransitionProps({\n timeout: timeout,\n style: style\n }, {\n mode: 'exit'\n });\n node.style.webkitTransition = theme.transitions.create('-webkit-transform', _extends({}, transitionProps, {\n easing: theme.transitions.easing.sharp\n }));\n node.style.transition = theme.transitions.create('transform', _extends({}, transitionProps, {\n easing: theme.transitions.easing.sharp\n }));\n setTranslateValue(direction, node);\n\n if (onExit) {\n onExit(node);\n }\n });\n var handleExited = normalizedTransitionCallback(function (node) {\n // No need for transitions when the component is hidden\n node.style.webkitTransition = '';\n node.style.transition = '';\n\n if (onExited) {\n onExited(node);\n }\n });\n var updatePosition = React.useCallback(function () {\n if (childrenRef.current) {\n setTranslateValue(direction, childrenRef.current);\n }\n }, [direction]);\n React.useEffect(function () {\n // Skip configuration where the position is screen size invariant.\n if (inProp || direction === 'down' || direction === 'right') {\n return undefined;\n }\n\n var handleResize = debounce(function () {\n if (childrenRef.current) {\n setTranslateValue(direction, childrenRef.current);\n }\n });\n window.addEventListener('resize', handleResize);\n return function () {\n handleResize.clear();\n window.removeEventListener('resize', handleResize);\n };\n }, [direction, inProp]);\n React.useEffect(function () {\n if (!inProp) {\n // We need to update the position of the drawer when the direction change and\n // when it's hidden.\n updatePosition();\n }\n }, [inProp, updatePosition]);\n return /*#__PURE__*/React.createElement(TransitionComponent, _extends({\n nodeRef: childrenRef,\n onEnter: handleEnter,\n onEntered: handleEntered,\n onEntering: handleEntering,\n onExit: handleExit,\n onExited: handleExited,\n onExiting: handleExiting,\n appear: true,\n in: inProp,\n timeout: timeout\n }, other), function (state, childProps) {\n return /*#__PURE__*/React.cloneElement(children, _extends({\n ref: handleRef,\n style: _extends({\n visibility: state === 'exited' && !inProp ? 'hidden' : undefined\n }, style, children.props.style)\n }, childProps));\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Slide.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * A single child content element.\n */\n children: elementAcceptingRef,\n\n /**\n * Direction the child node will enter from.\n */\n direction: PropTypes.oneOf(['down', 'left', 'right', 'up']),\n\n /**\n * If `true`, show the component; triggers the enter or exit animation.\n */\n in: PropTypes.bool,\n\n /**\n * @ignore\n */\n onEnter: PropTypes.func,\n\n /**\n * @ignore\n */\n onEntered: PropTypes.func,\n\n /**\n * @ignore\n */\n onEntering: PropTypes.func,\n\n /**\n * @ignore\n */\n onExit: PropTypes.func,\n\n /**\n * @ignore\n */\n onExited: PropTypes.func,\n\n /**\n * @ignore\n */\n onExiting: PropTypes.func,\n\n /**\n * @ignore\n */\n style: PropTypes.object,\n\n /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n */\n timeout: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })])\n} : void 0;\nexport default Slide;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport Modal from '../Modal';\nimport Backdrop from '../Backdrop';\nimport withStyles from '../styles/withStyles';\nimport Slide from '../Slide';\nimport Paper from '../Paper';\nimport capitalize from '../utils/capitalize';\nimport { duration } from '../styles/transitions';\nimport useTheme from '../styles/useTheme';\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the root element. */\n root: {},\n\n /* Styles applied to the root element if `variant=\"permanent or persistent\"`. */\n docked: {\n flex: '0 0 auto'\n },\n\n /* Styles applied to the `Paper` component. */\n paper: {\n overflowY: 'auto',\n display: 'flex',\n flexDirection: 'column',\n height: '100%',\n flex: '1 0 auto',\n zIndex: theme.zIndex.drawer,\n WebkitOverflowScrolling: 'touch',\n // Add iOS momentum scrolling.\n // temporary style\n position: 'fixed',\n top: 0,\n // We disable the focus ring for mouse, touch and keyboard users.\n // At some point, it would be better to keep it for keyboard users.\n // :focus-ring CSS pseudo-class will help.\n outline: 0\n },\n\n /* Styles applied to the `Paper` component if `anchor=\"left\"`. */\n paperAnchorLeft: {\n left: 0,\n right: 'auto'\n },\n\n /* Styles applied to the `Paper` component if `anchor=\"right\"`. */\n paperAnchorRight: {\n left: 'auto',\n right: 0\n },\n\n /* Styles applied to the `Paper` component if `anchor=\"top\"`. */\n paperAnchorTop: {\n top: 0,\n left: 0,\n bottom: 'auto',\n right: 0,\n height: 'auto',\n maxHeight: '100%'\n },\n\n /* Styles applied to the `Paper` component if `anchor=\"bottom\"`. */\n paperAnchorBottom: {\n top: 'auto',\n left: 0,\n bottom: 0,\n right: 0,\n height: 'auto',\n maxHeight: '100%'\n },\n\n /* Styles applied to the `Paper` component if `anchor=\"left\"` and `variant` is not \"temporary\". */\n paperAnchorDockedLeft: {\n borderRight: \"1px solid \".concat(theme.palette.divider)\n },\n\n /* Styles applied to the `Paper` component if `anchor=\"top\"` and `variant` is not \"temporary\". */\n paperAnchorDockedTop: {\n borderBottom: \"1px solid \".concat(theme.palette.divider)\n },\n\n /* Styles applied to the `Paper` component if `anchor=\"right\"` and `variant` is not \"temporary\". */\n paperAnchorDockedRight: {\n borderLeft: \"1px solid \".concat(theme.palette.divider)\n },\n\n /* Styles applied to the `Paper` component if `anchor=\"bottom\"` and `variant` is not \"temporary\". */\n paperAnchorDockedBottom: {\n borderTop: \"1px solid \".concat(theme.palette.divider)\n },\n\n /* Styles applied to the `Modal` component. */\n modal: {}\n };\n};\nvar oppositeDirection = {\n left: 'right',\n right: 'left',\n top: 'down',\n bottom: 'up'\n};\nexport function isHorizontal(anchor) {\n return ['left', 'right'].indexOf(anchor) !== -1;\n}\nexport function getAnchor(theme, anchor) {\n return theme.direction === 'rtl' && isHorizontal(anchor) ? oppositeDirection[anchor] : anchor;\n}\nvar defaultTransitionDuration = {\n enter: duration.enteringScreen,\n exit: duration.leavingScreen\n};\n/**\n * The props of the [Modal](/api/modal/) component are available\n * when `variant=\"temporary\"` is set.\n */\n\nvar Drawer = /*#__PURE__*/React.forwardRef(function Drawer(props, ref) {\n var _props$anchor = props.anchor,\n anchorProp = _props$anchor === void 0 ? 'left' : _props$anchor,\n BackdropProps = props.BackdropProps,\n children = props.children,\n classes = props.classes,\n className = props.className,\n _props$elevation = props.elevation,\n elevation = _props$elevation === void 0 ? 16 : _props$elevation,\n _props$ModalProps = props.ModalProps;\n _props$ModalProps = _props$ModalProps === void 0 ? {} : _props$ModalProps;\n\n var BackdropPropsProp = _props$ModalProps.BackdropProps,\n ModalProps = _objectWithoutProperties(_props$ModalProps, [\"BackdropProps\"]),\n onClose = props.onClose,\n _props$open = props.open,\n open = _props$open === void 0 ? false : _props$open,\n _props$PaperProps = props.PaperProps,\n PaperProps = _props$PaperProps === void 0 ? {} : _props$PaperProps,\n SlideProps = props.SlideProps,\n _props$TransitionComp = props.TransitionComponent,\n TransitionComponent = _props$TransitionComp === void 0 ? Slide : _props$TransitionComp,\n _props$transitionDura = props.transitionDuration,\n transitionDuration = _props$transitionDura === void 0 ? defaultTransitionDuration : _props$transitionDura,\n _props$variant = props.variant,\n variant = _props$variant === void 0 ? 'temporary' : _props$variant,\n other = _objectWithoutProperties(props, [\"anchor\", \"BackdropProps\", \"children\", \"classes\", \"className\", \"elevation\", \"ModalProps\", \"onClose\", \"open\", \"PaperProps\", \"SlideProps\", \"TransitionComponent\", \"transitionDuration\", \"variant\"]);\n\n var theme = useTheme(); // Let's assume that the Drawer will always be rendered on user space.\n // We use this state is order to skip the appear transition during the\n // initial mount of the component.\n\n var mounted = React.useRef(false);\n React.useEffect(function () {\n mounted.current = true;\n }, []);\n var anchor = getAnchor(theme, anchorProp);\n var drawer = /*#__PURE__*/React.createElement(Paper, _extends({\n elevation: variant === 'temporary' ? elevation : 0,\n square: true\n }, PaperProps, {\n className: clsx(classes.paper, classes[\"paperAnchor\".concat(capitalize(anchor))], PaperProps.className, variant !== 'temporary' && classes[\"paperAnchorDocked\".concat(capitalize(anchor))])\n }), children);\n\n if (variant === 'permanent') {\n return /*#__PURE__*/React.createElement(\"div\", _extends({\n className: clsx(classes.root, classes.docked, className),\n ref: ref\n }, other), drawer);\n }\n\n var slidingDrawer = /*#__PURE__*/React.createElement(TransitionComponent, _extends({\n in: open,\n direction: oppositeDirection[anchor],\n timeout: transitionDuration,\n appear: mounted.current\n }, SlideProps), drawer);\n\n if (variant === 'persistent') {\n return /*#__PURE__*/React.createElement(\"div\", _extends({\n className: clsx(classes.root, classes.docked, className),\n ref: ref\n }, other), slidingDrawer);\n } // variant === temporary\n\n\n return /*#__PURE__*/React.createElement(Modal, _extends({\n BackdropProps: _extends({}, BackdropProps, BackdropPropsProp, {\n transitionDuration: transitionDuration\n }),\n BackdropComponent: Backdrop,\n className: clsx(classes.root, classes.modal, className),\n open: open,\n onClose: onClose,\n ref: ref\n }, other, ModalProps), slidingDrawer);\n});\nprocess.env.NODE_ENV !== \"production\" ? Drawer.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * Side from which the drawer will appear.\n */\n anchor: PropTypes.oneOf(['bottom', 'left', 'right', 'top']),\n\n /**\n * @ignore\n */\n BackdropProps: PropTypes.object,\n\n /**\n * The contents of the drawer.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The elevation of the drawer.\n */\n elevation: PropTypes.number,\n\n /**\n * Props applied to the [`Modal`](/api/modal/) element.\n */\n ModalProps: PropTypes.object,\n\n /**\n * Callback fired when the component requests to be closed.\n *\n * @param {object} event The event source of the callback.\n */\n onClose: PropTypes.func,\n\n /**\n * If `true`, the drawer is open.\n */\n open: PropTypes.bool,\n\n /**\n * Props applied to the [`Paper`](/api/paper/) element.\n */\n PaperProps: PropTypes.object,\n\n /**\n * Props applied to the [`Slide`](/api/slide/) element.\n */\n SlideProps: PropTypes.object,\n\n /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n */\n transitionDuration: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })]),\n\n /**\n * The variant to use.\n */\n variant: PropTypes.oneOf(['permanent', 'persistent', 'temporary'])\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiDrawer',\n flip: false\n})(Drawer);","import React, { useEffect, useState } from \"react\"\nimport clsx from \"clsx\"\nimport { makeStyles } from \"@material-ui/core/styles\"\nimport Drawer from \"@material-ui/core/Drawer\"\nimport List from \"@material-ui/core/List\"\nimport ListItem from \"@material-ui/core/ListItem\"\nimport IconButton from \"@material-ui/core/IconButton\"\nimport MenuOpenIcon from \"@material-ui/icons/MenuOpen\"\nimport { Link } from \"react-router-dom\"\nimport { accordionsMenus, menus, menusV2 } from \"../../data/menus\"\nimport { useHistory, useLocation } from \"react-router\"\nimport { useSelector } from \"react-redux\"\nimport { Arrow_Down, Arrow_Up, Logout } from \"../../resources/icons/v2\"\nimport { withStyles } from \"@material-ui/styles\"\nimport { useTranslation } from \"react-i18next\"\nimport i18next from \"i18next\"\nimport { cognitoUserInfo } from \"../../classes/redux/slices/cognitoUserInfo\"\nimport { useTracking } from \"../../v2/providers/TrackingProvider\"\nimport { TrackingConst } from \"../../data/tracking_const\"\n\nconst useStyles = makeStyles({\n list: {\n width: 250,\n backgroundColor: \"black\",\n backgroundSize: \"cover\",\n height: \"100vh\"\n },\n menuIcon: {\n color: \"#46f92a\"\n }\n})\nconst StyledDrawer = withStyles({\n paper: {\n width: \"60%\",\n backgroundColor: \"black\"\n }\n})(Drawer)\nexport default function DrawerMenu(props) {\n const classes = useStyles()\n const location = useLocation()\n const isTokenValid = props.isTokenValid\n const { i18n } = useTranslation()\n\n const [state, setState] = React.useState({\n right: false\n })\n\n const [drawerMenu, setDrawerMenu] = useState([])\n const [accordionStatuses, setAccordionStatuses] = useState({})\n const history = useHistory()\n const userInfo = useSelector((state) => state.userInfo.user)\n const cognitoUser = useSelector((state) => state.cognitoUserInfo.cognitoUser)\n const { trackEvent } = useTracking()\n\n const cognitoUserGroup = useSelector((state) => state.cognitoUserInfo.cognitoUserGroup)\n const toggleDrawer = (anchor, open) => (event) => {\n if (event.type === \"keydown\" && (event.key === \"Tab\" || event.key === \"Shift\")) {\n return\n }\n\n setState({ ...state, [anchor]: open })\n }\n const signOut = () => {\n trackEvent(TrackingConst.LOGOUT, { user: cognitoUser })\n Object.entries(localStorage).map((x) => {\n console.log(x)\n if (x[0] !== 'editor-onboarding') {\n localStorage.removeItem(x[0])\n }\n })\n history.go(\"/\")\n }\n\n useEffect(() => {\n const drawerMenu = [...menusV2, ...menus]\n .filter(\n (m) =>\n !m.dontShowOnMenu &&\n !(m.hideWhenLoggedIn && isTokenValid) &&\n !(m.showIfLoggedIn && !isTokenValid)\n )\n .sort((a, b) => {\n if (a?.position === undefined || b?.position === undefined) return 0\n return a?.position - b?.position\n })\n setDrawerMenu(drawerMenu)\n }, [cognitoUser, cognitoUserGroup, userInfo, isTokenValid])\n\n const handleAccordionStatus = (id) => {\n setAccordionStatuses((prevState) => {\n return {\n ...prevState,\n [id]: !prevState[id]\n }\n })\n }\n\n const list = (anchor) => (\n \n {drawerMenu.map((menu, index) => {\n if (menu.allowedRoles) {\n if (cognitoUserGroup === undefined) {\n return \"\"\n }\n if (!cognitoUserGroup.some((r) => menu.allowedRoles.includes(r))) {\n return \"\"\n }\n }\n\n if (menu?.groupManagementRoute) {\n if (!userInfo || (!userInfo?.boxOwnerID && !userInfo?.boxUsersAssociatedId)) {\n return false\n }\n }\n if (menu.slug === location.pathname.replace(\"/\", \"\")) {\n menu.color = \"text-demantur\"\n } else {\n menu.color = \"text-gray-50\"\n }\n menu.color += \" font-exercise-title text-sm\"\n\n if (menu.childMenus) {\n if (\n accordionsMenus.filter((cm) => menu.childMenus.includes(cm.id))?.length > 0\n ) {\n return (\n \n \n \n {\n e.stopPropagation() // Prevent the click event from reaching the outer drawer\n handleAccordionStatus(menu.id)\n }}\n className={\"flex flex-row items-center\"}>\n

{menu.title}

\n

\n {accordionStatuses[menu.id] ? (\n \n ) : (\n \n )}\n

\n \n
\n {accordionStatuses[menu.id] &&\n menu.childMenus &&\n accordionsMenus\n .filter((cm) => menu.childMenus.includes(cm.id))\n .map((childMenu) => {\n return (\n \n \n

\n {childMenu.title}\n

\n
\n \n )\n })}\n
\n \n )\n } else {\n return null\n }\n }\n return (\n \n \n \n \n

{menu.title}

\n
\n \n
\n \n )\n })}\n \n )\n\n const anchor = \"right\"\n return (\n
\n \n \n \n \n \n
{list(anchor)}
\n
\n

00000

\n
\n \n {\n const lang = i18next.language === \"it-IT\" ? \"en-GB\" : \"it-IT\"\n i18n.changeLanguage(lang).then((r) => {\n window.location.reload()\n })\n }}>\n

{i18n.t(\"menu.label.lang\")}

\n \n \n ITA\n

\n \n ENG\n

\n
\n \n signOut()}>\n \n \n \n \n \n \n )\n}\n","import * as React from 'react';\nimport createSvgIcon from './utils/createSvgIcon';\nexport default createSvgIcon( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z\"\n}), 'AccountCircle');","import React, { useCallback, useEffect, useState } from \"react\"\nimport DrawerMenu from \"../menus/DrawerMenu\"\nimport { makeStyles } from \"@material-ui/core/styles\"\nimport styled from \"styled-components\"\nimport { useHistory } from \"react-router\"\nimport { LogoProgram } from \"../../classes/constants\"\nimport { useTranslation } from \"react-i18next\"\nimport i18next from \"i18next\"\nimport \"/node_modules/flag-icons/css/flag-icons.min.css\"\nimport { refreshAppAndCache } from \"../../classes/redux/slices/globalApp\"\nimport { useDispatch } from \"react-redux\"\nimport { AccountCircle } from \"@material-ui/icons\"\n\nconst fileStyles = makeStyles({\n img: {\n padding: 0,\n display: \"block\",\n margin: \"0 auto\",\n paddingTop: 5,\n paddingBottom: 5,\n maxHeight: \"4rem\",\n maxWidth: \"27%\",\n cursor: \"pointer\"\n }\n})\n\nconst ContainerStyled = styled.div`\n position: sticky;\n top: 0;\n transform: translateY(0);\n transition: 0.36s transform ease-out;\n background: black;\n z-index: 40;\n display: flex;\n flex-direction: row;\n align-items: center;\n max-height: 4rem; //transform: translateY(0);\n`\nexport default function MainHeader(props) {\n const history = useHistory()\n const styles = fileStyles()\n const [y, setY] = useState(window.scrollY)\n const [navfix, setNavFix] = useState(true)\n const [position, setPosition] = useState(\"\")\n const dispatch = useDispatch()\n\n const { i18n } = useTranslation()\n\n const handleNavigation = useCallback(\n (e) => {\n const window = e.currentTarget\n if (y > window.scrollY) {\n setNavFix(true)\n setPosition(\"fixed\")\n } else if (y < window.scrollY) {\n setNavFix(false)\n setPosition(\"block\")\n }\n if (window.scrollY === 0) {\n setPosition(\"\")\n }\n setY(window.scrollY)\n },\n [y]\n )\n\n useEffect(() => {\n setY(window.scrollY)\n window.addEventListener(\"scroll\", handleNavigation)\n\n return () => {\n window.removeEventListener(\"scroll\", handleNavigation)\n }\n }, [handleNavigation])\n\n return (\n \n \n history.push(\"/profile\")} />\n \n {\n dispatch(refreshAppAndCache())\n history.push(\"/\")\n }}\n />\n
\n \n
\n
\n )\n}\n","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 18h13v-2H3v2zm0-5h10v-2H3v2zm0-7v2h13V6H3zm18 9.59L17.42 12 21 8.41 19.59 7l-5 5 5 5L21 15.59z\"\n}), 'MenuOpen');\n\nexports.default = _default;"],"names":["setTranslateValue","direction","node","transform","rect","getBoundingClientRect","fakeTransform","computedStyle","window","getComputedStyle","getPropertyValue","offsetX","offsetY","transformValues","split","parseInt","concat","innerWidth","left","width","innerHeight","top","height","getTranslateValue","style","webkitTransform","defaultTimeout","enter","duration","exit","React","props","ref","children","_props$direction","inProp","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","_props$timeout","timeout","_props$TransitionComp","TransitionComponent","Transition","other","_objectWithoutProperties","theme","useTheme","childrenRef","handleOwnRef","instance","current","ReactDOM","handleRefIntermediary","useForkRef","handleRef","normalizedTransitionCallback","callback","isAppearing","undefined","handleEnter","reflow","handleEntering","transitionProps","getTransitionProps","mode","webkitTransition","transitions","create","_extends","easing","easeOut","transition","handleEntered","handleExiting","handleExit","sharp","handleExited","updatePosition","handleResize","debounce","addEventListener","clear","removeEventListener","nodeRef","appear","state","childProps","visibility","oppositeDirection","right","bottom","defaultTransitionDuration","Drawer","_props$anchor","anchor","anchorProp","BackdropProps","classes","className","_props$elevation","elevation","_props$ModalProps","ModalProps","BackdropPropsProp","onClose","_props$open","open","_props$PaperProps","PaperProps","SlideProps","Slide","_props$transitionDura","transitionDuration","_props$variant","variant","mounted","indexOf","isHorizontal","getAnchor","drawer","Paper","square","clsx","paper","capitalize","root","docked","slidingDrawer","Modal","BackdropComponent","Backdrop","modal","withStyles","flex","overflowY","display","flexDirection","zIndex","WebkitOverflowScrolling","position","outline","paperAnchorLeft","paperAnchorRight","paperAnchorTop","maxHeight","paperAnchorBottom","paperAnchorDockedLeft","borderRight","palette","divider","paperAnchorDockedTop","borderBottom","paperAnchorDockedRight","borderLeft","paperAnchorDockedBottom","borderTop","name","flip","useStyles","makeStyles","list","backgroundColor","backgroundSize","menuIcon","color","StyledDrawer","DrawerMenu","location","useLocation","isTokenValid","i18n","useTranslation","setState","useState","drawerMenu","setDrawerMenu","accordionStatuses","setAccordionStatuses","history","useHistory","userInfo","useSelector","user","cognitoUser","cognitoUserInfo","trackEvent","useTracking","cognitoUserGroup","toggleDrawer","event","type","key","useEffect","menusV2","menus","filter","m","dontShowOnMenu","hideWhenLoggedIn","showIfLoggedIn","sort","a","b","IconButton","onClick","MenuOpen","id","role","onKeyDown","map","menu","index","allowedRoles","some","r","includes","groupManagementRoute","boxOwnerID","boxUsersAssociatedId","slug","pathname","replace","childMenus","accordionsMenus","cm","length","List","ListItem","button","e","stopPropagation","prevState","title","childMenu","to","lang","i18next","changeLanguage","then","reload","t","TrackingConst","Object","entries","localStorage","x","console","log","removeItem","go","createSvgIcon","d","fileStyles","img","padding","margin","paddingTop","paddingBottom","maxWidth","cursor","ContainerStyled","styled","MainHeader","styles","scrollY","y","setY","navfix","setNavFix","setPosition","dispatch","useDispatch","handleNavigation","useCallback","currentTarget","translation","paddingLeft","validToken","justifyContent","AccountCircle","push","rel","src","LogoProgram","alt","as","loading","refreshAppAndCache","_interopRequireDefault","require","_interopRequireWildcard","exports","_default","default","createElement"],"sourceRoot":""}