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GAAeS,EAAAA,EAAAA,MAAK7B,E","sources":["components/views/AnchorMenu/AnchorMenu.styles.js","components/views/AnchorMenu/index.jsx"],"sourcesContent":["import makeStyles from \"@material-ui/styles/makeStyles\";\r\n\r\nconst styles = makeStyles(theme => ({\r\n\tanchorMenu: {\r\n\t\tbackground: theme.palette.background.light,\r\n\t\topacity: 0,\r\n\t\ttransform: \"translate(0, -100%)\",\r\n\t\ttransition: \"none\"\r\n\t},\r\n\tanimate: {\r\n\t\topacity: 1,\r\n\t\ttransform: \"translate(0, 0)\",\r\n\t\ttransition: \"all 300ms ease-in 300ms\"\r\n\t},\r\n\tcontainer: {\r\n\t\tdisplay: \"flex\",\r\n\t\tflexWrap: \"nowrap\",\r\n\t\tgap: theme.spacing(4),\r\n\t\toverflow: \"auto\",\r\n\t\tpaddingBottom: \"7px !important\",\r\n\t\tpaddingTop: \"7px !important\",\r\n\t\t\"&::-webkit-scrollbar\": {\r\n\t\t\theight: 2\r\n\t\t},\r\n\t\t\"&::-webkit-scrollbar-thumb\": {\r\n\t\t\tbackgroundColor: theme.palette?.grey?.[200]\r\n\t\t},\r\n\t\t[theme.breakpoints.up(\"md\")]: {\r\n\t\t\tgap: theme.spacing(6)\r\n\t\t}\r\n\t},\r\n\titem: {\r\n\t\tposition: \"relative\",\r\n\t\t\"&::before\": {\r\n\t\t\tbackground: theme.palette?.grey?.[200],\r\n\t\t\tcontent: \"''\",\r\n\t\t\theight: 16,\r\n\t\t\tposition: \"absolute\",\r\n\t\t\tright: -16,\r\n\t\t\ttop: \"50%\",\r\n\t\t\ttransform: \"translate(0, -50%)\",\r\n\t\t\twidth: 1\r\n\t\t},\r\n\t\t\"&:last-child::before\": {\r\n\t\t\tdisplay: \"none\"\r\n\t\t},\r\n\t\t[theme.breakpoints.up(\"md\")]: {\r\n\t\t\t\"&::before\": {\r\n\t\t\t\tright: -24\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tlabel: {\r\n\t\tcolor: theme.palette?.grey?.[800],\r\n\t\tdisplay: \"block\",\r\n\t\tpadding: theme.spacing(1, 0),\r\n\t\ttransition: \"color 300ms ease\",\r\n\t\twhiteSpace: \"nowrap\",\r\n\t\t\"&:hover\": {\r\n\t\t\tcolor: theme.palette.primary.main\r\n\t\t}\r\n\t}\r\n}));\r\n\r\nexport default styles;\r\n","import React, { memo, useEffect, useState } from \"react\";\r\nimport loadable from \"@loadable/component\";\r\nimport clsx from \"clsx\";\r\nimport isEmpty from \"lodash/isEmpty\";\r\n\r\nimport styles from \"./AnchorMenu.styles\";\r\n\r\nconst Container = loadable(() => import(\"@Components/views/Container\"));\r\nconst ReactLink = loadable(() => import(\"@micado-digital/react-link/ReactLink\"));\r\nconst Typography = loadable(() => import(\"@micado-digital/react-ui/components/Typography\"));\r\n\r\nconst AnchorMenu = ({ items = [], show }) => {\r\n\tconst [animate, setAnimate] = useState(false);\r\n\tconst css = styles();\r\n\r\n\tuseEffect(() => {\r\n\t\tsetAnimate(show);\r\n\t}, [show]);\r\n\r\n\tif (isEmpty(items)) return <>>;\r\n\r\n\treturn (\r\n\t\t