{"version":3,"file":"Footer-chunk-CBOxm0ng.js","sources":["../../theme/ts/services/footerService.ts","../../theme/ts/components/frontend-ui/SocialLinks/SocialLinks.tsx","../../theme/ts/components/frontend-ui/Footer/NavTopic.tsx","../../theme/ts/components/frontend-ui/Footer/Footer.tsx"],"sourcesContent":["import fetch from 'isomorphic-fetch';\nimport { url } from '@ts/utils/url';\n\nexport type FooterLinks = {\n icon: string;\n id: string;\n title: string;\n url: string;\n};\n\nexport type FooterResDto = {\n company: FooterLinks[];\n legal: FooterLinks[];\n services: FooterLinks[];\n};\n\nexport class FooterService {\n constructor(private readonly portalUrl: string = url.getPortalUrl()) {}\n\n getFooterLinks = async () => {\n const url = `${this.portalUrl}/@actions`;\n\n const settings: RequestInit = {\n method: 'GET',\n headers: {\n Accept: 'application/json',\n },\n };\n\n const response = await fetch(url, settings);\n\n if (!response.ok) {\n const msg = await response.text();\n throw new Error(`Status code:${response.status}\\nError:${msg}`);\n }\n\n const res = await response.json();\n\n const footerRes: FooterResDto = {\n legal: res.legal_actions,\n company: res.company_actions,\n services: res.services_actions,\n };\n\n return footerRes;\n };\n}\n","import { Icon } from '../Icon/Icon';\n\ntype SocialMedia = 'facebook' | 'twitter' | 'instagram' | 'youtube';\n\nconst mediaIcon: { [key in SocialMedia]: { width: number; height: number } } = {\n facebook: {\n width: 20,\n height: 20,\n },\n twitter: {\n width: 18,\n height: 18,\n },\n instagram: {\n width: 20,\n height: 20,\n },\n youtube: {\n width: 24,\n height: 17,\n },\n};\n\nconst urls: { [key in SocialMedia]: { url: string } } = {\n facebook: {\n url: 'https://www.facebook.com/derfreitag/',\n },\n twitter: {\n url: 'https://twitter.com/derfreitag/',\n },\n instagram: {\n url: 'https://www.instagram.com/freitag/',\n },\n youtube: {\n url: 'https://www.youtube.com/channel/UCqs44Wf09ppRItc5uqNBMxA',\n },\n};\n\ntype Props = {\n socialMedia?: SocialMedia[];\n};\n\nexport const SocialLinks = ({\n socialMedia = ['facebook', 'twitter', 'instagram'],\n}: Props) => {\n return (\n