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,GAAYC,EAAAA,EAAAA,KAAS,IAAM,0CAC3BC,GAAYD,EAAAA,EAAAA,KAAS,IAAM,0CAC3BE,GAAaF,EAAAA,EAAAA,KAAS,IAAM,kCAE5BG,EAAaC,IAA2B,IAA1B,MAAEC,EAAQ,GAAE,KAAEC,GAAMF,EACvC,MAAO/B,EAASkC,IAAcC,EAAAA,EAAAA,WAAS,GACjCC,EAAMC,IAMZ,OAJAC,EAAAA,EAAAA,YAAU,KACTJ,EAAWD,EAAK,GACd,CAACA,IAEAM,IAAQP,IAAeQ,EAAAA,EAAAA,KAAAC,EAAAA,SAAA,KAG1BD,EAAAA,EAAAA,KAAA,OACCE,WAAWC,EAAAA,EAAAA,SAAKP,EAAI3C,WAAY,iCAAkC,CACjE,CAAC2C,EAAIpC,SAAUA,IACb4C,UAEHJ,EAAAA,EAAAA,KAACd,EAAS,CAACgB,WAAWC,EAAAA,EAAAA,SAAKP,EAAInC,UAAW,6CAA6C2C,SAChF,OAALZ,QAAK,IAALA,OAAK,EAALA,EAAOa,KAAI,CAAC/B,EAAMgC,KAClB,MAAM,IAAEC,EAAG,MAAEC,GAAUlC,EAEvB,OACC0B,EAAAA,EAAAA,KAAA,OACCE,WAAWC,EAAAA,EAAAA,SAAKP,EAAItB,KAAM,wCAAwC8B,UAGlEJ,EAAAA,EAAAA,KAACZ,EAAS,CAACqB,GAAE,IAAAC,OAAMH,GAAMH,UACxBJ,EAAAA,EAAAA,KAACX,EAAU,CACVa,WAAWC,EAAAA,EAAAA,SAAKP,EAAIhB,MAAO,8CAC3B+B,UAAU,OACVC,wBAAyB,CAAEC,OAAQL,GACnCM,QAAQ,mBAPLR,EAUA,OAIJ,EAIR,GAAeS,EAAAA,EAAAA,MAAKzB,E","sources":["components/views/AnchorMenu/AnchorMenu.styles.js","components/views/AnchorMenu/index.jsx"],"sourcesContent":["import makeStyles from \"@material-ui/styles/makeStyles\";\n\nconst styles = makeStyles(theme => ({\n\tanchorMenu: {\n\t\tbackground: theme.palette.background.light,\n\t\topacity: 0,\n\t\ttransform: \"translate(0, -100%)\",\n\t\ttransition: \"none\"\n\t},\n\tanimate: {\n\t\topacity: 1,\n\t\ttransform: \"translate(0, 0)\",\n\t\ttransition: \"all 300ms ease-in 300ms\"\n\t},\n\tcontainer: {\n\t\tdisplay: \"flex\",\n\t\tflexWrap: \"nowrap\",\n\t\tgap: theme.spacing(4),\n\t\toverflow: \"auto\",\n\t\tpaddingBottom: \"7px !important\",\n\t\tpaddingTop: \"7px !important\",\n\t\t\"&::-webkit-scrollbar\": {\n\t\t\theight: 2\n\t\t},\n\t\t\"&::-webkit-scrollbar-thumb\": {\n\t\t\tbackgroundColor: theme.palette?.grey?.[200]\n\t\t},\n\t\t[theme.breakpoints.up(\"md\")]: {\n\t\t\tgap: theme.spacing(6)\n\t\t}\n\t},\n\titem: {\n\t\tposition: \"relative\",\n\t\t\"&::before\": {\n\t\t\tbackground: theme.palette?.grey?.[200],\n\t\t\tcontent: \"''\",\n\t\t\theight: 16,\n\t\t\tposition: \"absolute\",\n\t\t\tright: -16,\n\t\t\ttop: \"50%\",\n\t\t\ttransform: \"translate(0, -50%)\",\n\t\t\twidth: 1\n\t\t},\n\t\t\"&:last-child::before\": {\n\t\t\tdisplay: \"none\"\n\t\t},\n\t\t[theme.breakpoints.up(\"md\")]: {\n\t\t\t\"&::before\": {\n\t\t\t\tright: -24\n\t\t\t}\n\t\t}\n\t},\n\tlabel: {\n\t\tcolor: theme.palette?.grey?.[800],\n\t\tdisplay: \"block\",\n\t\tpadding: theme.spacing(1, 0),\n\t\ttransition: \"color 300ms ease\",\n\t\twhiteSpace: \"nowrap\",\n\t\t\"&:hover\": {\n\t\t\tcolor: theme.palette.primary.main\n\t\t}\n\t}\n}));\n\nexport default styles;\n","import React, { memo, useEffect, useState } from \"react\";\nimport loadable from \"@loadable/component\";\nimport clsx from \"clsx\";\nimport isEmpty from \"lodash/isEmpty\";\n\nimport styles from \"./AnchorMenu.styles\";\n\nconst Container = loadable(() => import(\"@Components/views/Container\"));\nconst ReactLink = loadable(() => import(\"@micado-digital/react-link/ReactLink\"));\nconst Typography = loadable(() => import(\"@micado-digital/react-ui/components/Typography\"));\n\nconst AnchorMenu = ({ items = [], show }) => {\n\tconst [animate, setAnimate] = useState(false);\n\tconst css = styles();\n\n\tuseEffect(() => {\n\t\tsetAnimate(show);\n\t}, [show]);\n\n\tif (isEmpty(items)) return <>;\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t{items?.map((item, index) => {\n\t\t\t\t\tconst { tag, title } = item;\n\n\t\t\t\t\treturn (\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t);\n\t\t\t\t})}\n\t\t\t\n\t\t\n\t);\n};\n\nexport default memo(AnchorMenu);\n"],"names":["makeStyles","theme","_theme$palette","_theme$palette$grey","_theme$palette2","_theme$palette2$grey","_theme$palette3","_theme$palette3$grey","anchorMenu","background","palette","light","opacity","transform","transition","animate","container","display","flexWrap","gap","spacing","overflow","paddingBottom","paddingTop","height","backgroundColor","grey","breakpoints","up","item","position","content","right","top","width","label","color","padding","whiteSpace","primary","main","Container","loadable","ReactLink","Typography","AnchorMenu","_ref","items","show","setAnimate","useState","css","styles","useEffect","isEmpty","_jsx","_Fragment","className","clsx","children","map","index","tag","title","to","concat","component","dangerouslySetInnerHTML","__html","variant","memo"],"sourceRoot":""}