{"version":3,"file":"footer-D75V334c.js","sources":["../../../src/assets/icons/xoxx-footer.svg?url","../../../src/components/Footer/data.ts","../../../src/components/Footer/Footer.tsx"],"sourcesContent":["export default \"__VITE_ASSET__DH1S2YpJ__\"","import type { TopLinkItemType } from \"./types\";\r\n\r\nexport const footerMenu: TopLinkItemType[] = [\r\n {\r\n title: \"Planning Tools\", url: \"/planning-tools/\", submenu: [\r\n { title: \"To Do List\", url: \"/planning-tools/to-do-list/\", loggedInUrl: \"/tools/todolist/\" },\r\n { title: \"Guest List\", url: \"/planning-tools/guest-list/\", loggedInUrl: \"/tools/guestlist/\" },\r\n { title: \"Seating Planner\", url: \"/planning-tools/seating-planner/\", loggedInUrl: \"/tools/seatingplanner/\" },\r\n { title: \"Budget Calculator\", url: \"/planning-tools/budget-calculator/\", loggedInUrl: \"/tools/budgetcalculator/\" },\r\n ]\r\n },\r\n {\r\n title: \"Suppliers\", url: \"/wedding/\", submenu: [\r\n { title: \"Wedding Venues\", url: \"/WeddingVenues/\" },\r\n { title: \"Dresses\", url: \"/WeddingDress/\" },\r\n { title: \"Photography\", url: \"/WeddingPhotography/\" },\r\n { title: \"Celebrants\", url: \"/MarriageCelebrant/\" },\r\n { title: \"Cars\", url: \"/WeddingCars/\" },\r\n { title: \"Hair and Makeup\", url: \"/WeddingHair/\" },\r\n { title: \"Wedding Packages\", url: \"/packages/\", country: \"au\" },\r\n ]\r\n },\r\n {\r\n title: \"Packages\", country: \"au\", submenu: [\r\n { title: \"Wedding Packages\", url: \"/packages/\" },\r\n { title: \"Destination Weddings\", url: \"/destination-weddings/\" },\r\n ]\r\n },\r\n {\r\n title: \"Help\", submenu: [\r\n { title: \"Advice & Ideas\", url: \"/articles/\" },\r\n { title: \"Ask a Question\", url: \"/advice/\" },\r\n { title: \"Contact Us\", url: \"/contact/\" },\r\n ]\r\n },\r\n]\r\n","import React, { useEffect } from 'react'\r\n\r\nimport type { LinkItemType, TopLinkItemType } from './types'\r\n\r\nimport XoxxFooter from \"@assets/icons/xoxx-footer.svg?url\"\r\nimport LightBrandLogo from '@assets/elements/easy-weddings-logo-light.svg?url'\r\n\r\nimport { FontAwesomeIcon as Icon } from '@fortawesome/react-fontawesome'\r\nimport { faArrowRight } from '@fortawesome/free-solid-svg-icons'\r\nimport { faFacebookF, faPinterest, faInstagram, faYoutube, faTiktok } from '@fortawesome/free-brands-svg-icons'\r\nimport { footerMenu } from './data'\r\nimport { getAsset, getCountry } from '@helper/getConfigValues'\r\nimport type { CountryType } from '../../types'\r\nimport scss from './Footer.module.scss'\r\nimport { getLoginStatus } from '@api/getIsLoggedIn'\r\n\r\ninterface RenderLinksProps {\r\n menu: TopLinkItemType[],\r\n countryCode: CountryType,\r\n isLoggedIn: boolean\r\n}\r\n\r\nconst getCurrentYear = () => {\r\n return new Date().getFullYear();\r\n};\r\n\r\nconst RenderLink = (item: LinkItemType, isLoggedIn: boolean) => { \r\n let url = item.url;\r\n if(isLoggedIn && !!item.loggedInUrl) {\r\n url = item.loggedInUrl;\r\n }\r\n return (!!url ? {item.title} : item.title)\r\n}\r\n\r\nconst RenderLinks = ({ menu, countryCode, isLoggedIn }: RenderLinksProps) => {\r\n return (\r\n <>\r\n {menu.map((item, index) => {\r\n if (!!item.country && item.country !== countryCode)\r\n {\r\n return null;\r\n }\r\n return (\r\n