{"version":3,"file":"ContactUs-5ua07nQq.js","sources":["../../../node_modules/@mui/icons-material/esm/AlternateEmail.js","../../../node_modules/@mui/icons-material/esm/Instagram.js","../../../node_modules/@mui/icons-material/esm/LocationOn.js","../../../frontend/src/Components/Entities/ContactUs/ContactUs.tsx"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10h5v-2h-5c-4.34 0-8-3.66-8-8s3.66-8 8-8 8 3.66 8 8v1.43c0 .79-.71 1.57-1.5 1.57s-1.5-.78-1.5-1.57V12c0-2.76-2.24-5-5-5s-5 2.24-5 5 2.24 5 5 5c1.38 0 2.64-.56 3.54-1.47.65.89 1.77 1.47 2.96 1.47 1.97 0 3.5-1.6 3.5-3.57V12c0-5.52-4.48-10-10-10m0 13c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3\"\n}), 'AlternateEmail');","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z\"\n}), 'Instagram');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5\"\n}), 'LocationOn');","import React from 'react';\nimport { Box, Container, Link, Typography } from '@mui/material';\nimport { FormattedMessage, useIntl } from 'react-intl';\nimport { mergeWith } from 'lodash';\nimport {\n AlternateEmail as EmailIcon,\n Facebook as FacebookIcon,\n Instagram as InstagramIcon,\n Language as LanguageIcon,\n LinkedIn as LinkedInIcon,\n LocationOn as LocationOnIcon,\n Phone as PhoneIcon,\n} from '@mui/icons-material';\nimport XIcon from '@mui/icons-material/X';\n\nconst ICON_SIZE = 40;\n\ntype SocialMediaData = {\n title: string;\n icon: JSX.Element;\n url?: string;\n};\n\nconst customizer = (objValue: SocialMediaData, srcValue: string): SocialMediaData => ({\n ...objValue,\n url: srcValue,\n});\n\nfunction Footer({ space }: any) {\n const intl = useIntl();\n\n const socialsMetadata: Record = {\n website_url: {\n title: 'website',\n icon: ,\n },\n email: {\n title: 'email',\n icon: ,\n },\n facebook_url: {\n title: 'facebook',\n icon: ,\n },\n twitter_url: {\n title: 'twitter',\n icon: ,\n },\n linkedin_url: {\n title: 'linkedin',\n icon: ,\n },\n instagram_url: {\n title: 'instagram',\n icon: ,\n },\n };\n\n const mapedData = mergeWith(socialsMetadata, space.social_media_urls, customizer) as Record<\n string,\n SocialMediaData\n >;\n\n const socialMediaArray = Object.values(mapedData).filter((social) => social.url);\n const spaceAddress = space.address;\n\n const generateLink = (social: any) => {\n if (social.title === 'email') return `mailto:${social.url}`;\n\n return social.url;\n };\n\n if (!socialMediaArray.length && !space.phone_number && !spaceAddress) {\n return null;\n }\n\n return (\n \n \n \n \n \n\n {(space.phone_number || spaceAddress) && (\n \n {space.phone_number && (\n \n \n \n \n \n {space.phone_number}\n \n \n )}\n\n {spaceAddress && (\n \n \n \n \n \n {spaceAddress}\n \n \n )}\n \n )}\n\n theme.spacing(3),\n gridTemplateColumns: `repeat(auto-fit, ${ICON_SIZE}px)`,\n gridAutoRows: ICON_SIZE,\n justifyContent: 'center',\n }}\n >\n {socialMediaArray.map((media) => (\n \n \n {media.icon}\n \n \n ))}\n \n \n \n );\n}\n\nexport default Footer;\n"],"names":["EmailIcon","createSvgIcon","_jsx","InstagramIcon","LocationOnIcon","ICON_SIZE","customizer","objValue","srcValue","_objectSpread","url","Footer","_ref","space","intl","useIntl","socialsMetadata","website_url","title","icon","createElement","LanguageIcon","style","fontSize","email","facebook_url","FacebookIcon","twitter_url","XIcon","linkedin_url","LinkedInIcon","instagram_url","mapedData","mergeWith","social_media_urls","socialMediaArray","Object","values","filter","social","spaceAddress","address","generateLink","concat","length","phone_number","React","Box","sx","color","backgroundColor","Container","maxWidth","paddingX","paddingY","textAlign","Typography","variant","fontWeight","display","marginBottom","FormattedMessage","id","flexWrap","justifyContent","mb","mr","PhoneIcon","component","gridGap","theme","spacing","gridTemplateColumns","gridAutoRows","map","media","width","height","borderRadius","alignItems","key","Link","href","target","rel","underline","formatMessage"],"mappings":"mNAIA,MAAAA,EAAeC,EAA2BC,EAAI,IAAC,OAAQ,CACrD,EAAG,iVACL,CAAC,EAAG,gBAAgB,ECDpBC,EAAeF,EAA2BC,EAAI,IAAC,OAAQ,CACrD,EAAG,icACL,CAAC,EAAG,WAAW,ECHfE,EAAeH,EAA2BC,EAAI,IAAC,OAAQ,CACrD,EAAG,0JACL,CAAC,EAAG,YAAY,wuCCShB,IAAMG,EAAY,GAQZC,EAAa,SAACC,EAA2BC,EAAkC,CAA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