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AAU,GAAIhC,MAAO,aAC3CiB,QAAUQ,IACRA,EAAEE,kBACFpC,GAAQ,EAAM,EAEhBmB,GAAI,CACF,gBAAiB,CACfI,gBAAiB,yBACjBmB,UAAW,aAIP,EAIhB,GAAeC,EAAAA,EAAAA,MAAK7C,E,sBClFhB8C,EAAyBC,EAAQ,OAIrCC,EAAQ,OAAU,EAClB,IAAIC,EAAiBH,EAAuBC,EAAQ,QAChDG,EAAcH,EAAQ,OACXC,EAAQ,GAAU,EAAIC,EAAeE,UAAuB,EAAID,EAAYE,KAAK,OAAQ,CACtGC,EAAG,0SACD,gB","sources":["components/LanguageSpeedDial.js","../node_modules/@mui/icons-material/PublicRounded.js"],"sourcesContent":["import { SpeedDial, SpeedDialAction } from \"@mui/material\";\nimport { memo, useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport PublicRoundedIcon from \"@mui/icons-material/PublicRounded\";\nimport { Close } from \"@mui/icons-material\";\n\nconst LanguageSpeedDial = () => {\n const [open, setOpen] = useState(false);\n\n const { t, i18n } = useTranslation();\n // const handleOpen = () => setOpen(true);\n // const handleClose = () => setOpen(false);\n\n const handleClick = () => setOpen((prev) => !prev);\n\n const handleChangeLang = (e, lang) => {\n e.stopPropagation();\n i18n.changeLanguage(lang);\n localStorage.setItem(\"language\", lang);\n\n setOpen(false);\n };\n\n const actions = [\n {\n lang: (\n GR\n ),\n name: t(\"Ελληνικά\"),\n value: \"gr\",\n },\n {\n lang: (\n EN\n ),\n name: t(\"Αγγλικά\"),\n value: \"en\",\n },\n ];\n return (\n }\n onClick={handleClick}\n open={open}\n >\n {actions.map((action) => (\n handleChangeLang(e, action.value)}\n />\n ))}\n }\n onClick={(e) => {\n e.stopPropagation();\n setOpen(false);\n }}\n sx={{\n \"&.MuiFab-root\": {\n backgroundColor: \"transparent !important\",\n boxShadow: \"none\",\n },\n }}\n />\n \n );\n};\n\nexport default memo(LanguageSpeedDial);\n","\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39\"\n}), 'PublicRounded');"],"names":["LanguageSpeedDial","open","setOpen","useState","t","i18n","useTranslation","actions","lang","_jsx","style","color","fontWeight","children","name","value","_jsxs","SpeedDial","FabProps","size","ariaLabel","sx","position","bottom","right","backgroundColor","icon","PublicRoundedIcon","onClick","handleClick","prev","map","action","SpeedDialAction","language","tooltipTitle","e","handleChangeLang","stopPropagation","changeLanguage","localStorage","setItem","Close","fontSize","boxShadow","memo","_interopRequireDefault","require","exports","_createSvgIcon","_jsxRuntime","default","jsx","d"],"sourceRoot":""}