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EAAD,CAAW+C,GAAIV,EAAf,UACC,SAAC,IAAD,CACCrB,MAAOI,GAASE,EAAW,UAAY,YACvC0B,eAAe,EACfC,QAAQ,OACRC,KAAMtB,EAAY,SAAW,QAJ9B,SAMEE,EAAE","sources":["views/components/header/request.jsx"],"sourcesContent":["import React, { lazy, useContext, Suspense } from \"react\";\nimport clsx from \"clsx\";\nimport Box from \"@material-ui/core/Box\";\nimport useTheme from \"@material-ui/styles/useTheme\";\nimport useMediaQuery from \"@material-ui/core/useMediaQuery\";\nimport makeStyles from \"@material-ui/styles/makeStyles\";\nimport Button from \"@material-ui/core/Button\";\nimport WebProfileContext from \"@WebProfileContext\";\nimport useLocals from \"@micado-digital/react-ui/hooks/useLocals\";\nimport localDE from \"../../../locales/de.json\";\nimport localEN from \"../../../locales/en.json\";\n\nconst ReactLink = lazy(() =>\n\timport(/* webpackChunkName: \"reactLink\" */ \"@micado-digital/react-link/ReactLink\")\n);\n\nconst useStyles = makeStyles(theme => ({\n\troot: {\n\t\tdisplay: \"none\",\n\t\t\"& button\": {\n\t\t\tfontSize: 14,\n\t\t\ttransition: theme.transitions.create([\"color\"], {\n\t\t\t\tduration: theme.transitions.duration.complex\n\t\t\t}),\n\t\t\t[theme.breakpoints.up(\"sm\")]: {\n\t\t\t\tfontSize: 16\n\t\t\t},\n\t\t\t[theme.breakpoints.up(\"lg\")]: {\n\t\t\t\tfontSize: 23\n\t\t\t}\n\t\t},\n\t\t[theme.breakpoints.up(\"md\")]: {\n\t\t\tdisplay: \"flex\"\n\t\t},\n\t\t\"& button:hover\": {\n\t\t\tbackground: \"none\",\n\t\t\tcolor: theme.palette.secondary.main\n\t\t}\n\t}\n}));\n\nconst Request = ({ fixed, lang, menuOpen }) => {\n\tconst css = useStyles();\n\tconst theme = useTheme();\n\tconst [profileData] = useContext(WebProfileContext);\n\tconst bigScreen = useMediaQuery(theme.breakpoints.up(\"lg\"));\n\tconst l = useLocals({\n\t\tlang: lang,\n\t\tres: {\n\t\t\tde: localDE,\n\t\t\ten: localEN\n\t\t}\n\t});\n\n\tconst requestLink = profileData?.customLinks?.find(\n\t\titem => item?.identifier === \"request\"\n\t)?.url;\n\n\treturn (\n\t\t}>\n\t\t\t\n\t\t\t\t}>\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{l(\"header.buttonRequest\")}\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 Request;\n"],"names":["ReactLink","lazy","useStyles","makeStyles","theme","root","display","fontSize","transition","transitions","create","duration","complex","breakpoints","up","background","color","palette","secondary","main","fixed","lang","menuOpen","css","useTheme","useContext","WebProfileContext","profileData","bigScreen","useMediaQuery","l","useLocals","res","de","localDE","en","localEN","requestLink","customLinks","find","item","identifier","url","Suspense","fallback","className","clsx","to","disableRipple","variant","size"],"sourceRoot":""}