{"version":3,"names":["footerMainCss","FooterMainStyle0","FooterMain","componentWillLoad","this","preloadFooterLogo","footerLogo","link","document","createElement","rel","as","href","head","appendChild","render","menuItems","JSON","parse","langCode","checkLanguageCookie","h","Host","key","class","length","map","title","submenu","url","classes","imageAlt","imageUrl","imageWidth","imageHeight","imageClass","Date","getFullYear"],"sources":["src/components/footer-main/footer-main.css?tag=footer-main&encapsulation=shadow","src/components/footer-main/footer-main.tsx"],"sourcesContent":["/* @import '../../global/app.css'; */\n@import '../../global/min-app.css';\n\n:host {\n @apply selection:text-dark-blue selection:bg-logo-orange font-poppins;\n display: block;\n}\n\n.footer-logo {\n @apply w-[75px] h-[25px];\n}\n\n\n.footer-column { \n @apply sm:min-w-[208px] md:min-w-[220px];\n}\n\n.footer-column h3.text-light-blue { \n @apply mb-8px;\n}\n\n.footer-column .footer-link { \n @apply max-w-[208px] w-fit;\n}\n\n.footer-body {\n @apply flex flex-row flex-wrap justify-between gap-32px pb-24px;\n}\n\n@media (min-width: 767px) and (max-width: 1070px) {\n .footer-body {\n @apply justify-start;\n }\n\n .footer-column {\n width: calc(34.3333% - 32px);\n }\n}\n\n@media (max-width: 766px) {\n .footer-column {\n width: calc(50% - 32px);\n }\n}\n\n.footer-link {\n @apply text-white transition-all w-fit relative py-8px;\n}\n\n.footer-link:after {\n @apply block absolute w-full h-2px bg-light-blue bottom-0 left-0 opacity-0;\n content: '';\n transform: scaleX(0);\n transition: transform 0.3s, opacity 0.3s;\n}\n\n.footer-link:hover:after {\n @apply opacity-100 ;\n transform:scaleX(1);\n}\n\n.instagram {\n @apply flex justify-start items-center gap-12px;\n}\n.instagram:before {\n @apply block w-16px h-16px;\n content:'';\n mask-repeat: no-repeat;\n mask-position: center;\n mask-size: cover;\n background-color: white;\n mask-image: url('/wp-content/themes/3ecotheme/component-library/src/assets/nav-icons/social-instagram.svg');\n}\n\n.facebook {\n @apply flex justify-start items-center gap-12px;\n}\n\n.facebook:before {\n @apply block w-16px h-16px;\n content:'';\n mask-repeat: no-repeat;\n mask-position: center;\n mask-size: cover;\n background-color: white;\n mask-image: url('/wp-content/themes/3ecotheme/component-library/src/assets/nav-icons/social-facebook.svg');\n}\n\n.twitter {\n @apply flex justify-start items-center gap-12px;\n}\n\n.twitter:before {\n @apply block w-16px h-16px;\n content:'';\n mask-repeat: no-repeat;\n mask-position: center;\n mask-size: cover;\n background-color: white;\n mask-image: url('/wp-content/themes/3ecotheme/component-library/src/assets/nav-icons/social-twitter.svg');\n}\n\n.linkedin {\n @apply flex justify-start items-center gap-12px;\n}\n\n.linkedin:before {\n @apply block w-16px h-16px;\n content:'';\n mask-repeat: no-repeat;\n mask-position: center;\n mask-size: cover;\n background-color: white;\n mask-image: url('/wp-content/themes/3ecotheme/component-library/src/assets/nav-icons/social-linkedin.svg');\n}\n\n.youtube {\n @apply flex justify-start items-center gap-12px;\n}\n\n.youtube:before {\n @apply block w-16px h-16px;\n content:'';\n mask-repeat: no-repeat;\n mask-position: center;\n mask-size: cover;\n background-color: white;\n mask-image: url('/wp-content/themes/3ecotheme/component-library/src/assets/nav-icons/social-youtube.svg');\n}\n\n.newsletter {\n @apply flex justify-start items-center gap-12px;\n}\n.newsletter:before {\n @apply block w-16px h-16px;\n content:'';\n mask-repeat: no-repeat;\n mask-position: center;\n mask-size: cover;\n background-color: white;\n mask-image: url('/wp-content/themes/3ecotheme/component-library/src/assets/nav-icons/social-newsletter.svg');\n}","import { Component, Host, h, Prop } from '@stencil/core';\nimport { checkLanguageCookie } from '../../utils/utils';\n \n@Component({\n tag: 'footer-main',\n styleUrl: 'footer-main.css',\n shadow: true,\n})\nexport class FooterMain {\n /**\n * The Menu Items\n */\n @Prop() menuItems: string;\n\n /**\n * The Footer Logo\n */\n @Prop() footerLogo: string;\n\n componentWillLoad() {\n this.preloadFooterLogo();\n }\n\n preloadFooterLogo() {\n if (this.footerLogo) {\n const link = document.createElement('link');\n link.rel = 'preload';\n link.as = 'image';\n link.href = this.footerLogo;\n document.head.appendChild(link);\n //console.log(`Preloading footer logo: ${this.footerLogo}`);\n }\n }\n\n render() {\n const menuItems = JSON.parse(this.menuItems);\n const footerLogo = this.footerLogo;\n //console.log('footerLogo', footerLogo);\n\n // Get the language code from the cookie\n const langCode = checkLanguageCookie('wp-wpml_current_language');\n // Construct the href dynamically\n const href = langCode ? `/${langCode}/resource-center` : '/resource-center';\n\n return (\n \n
\n
\n
\n {menuItems.length > 0 &&\n menuItems.map(({ title, submenu }) => (\n
\n

{title}

\n {submenu.length > 0 &&\n submenu.map(({ title, url, classes }) => (\n \n {title}\n \n ))}\n
\n ))}\n
\n
\n \n \n \n
\n ©{new Date().getFullYear()} 3E. All rights reserved. |{' '}\n \n Sitemap\n \n
\n
\n
\n
\n
\n );\n }\n}\n"],"mappings":"sFAAA,MAAMA,EAAgB,8kvBACtB,MAAAC,EAAeD,E,MCOFE,EAAU,M,4EAWrB,iBAAAC,GACEC,KAAKC,mB,CAGP,iBAAAA,GACE,GAAID,KAAKE,WAAY,CACnB,MAAMC,EAAOC,SAASC,cAAc,QACpCF,EAAKG,IAAM,UACXH,EAAKI,GAAK,QACVJ,EAAKK,KAAOR,KAAKE,WACjBE,SAASK,KAAKC,YAAYP,E,EAK9B,MAAAQ,GACE,MAAMC,EAAYC,KAAKC,MAAMd,KAAKY,WAClC,MAAMV,EAAaF,KAAKE,WAIxB,MAAMa,EAAWC,EAAoB,4BAErC,MAAMR,EAAOO,EAAW,IAAIA,oBAA6B,mBAEzD,OACEE,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,OAAAE,IAAA,2CAAKC,MAAO,gBACVH,EAAA,OAAAE,IAAA,2CAAKC,MAAO,sBACVH,EAAA,OAAAE,IAAA,2CAAKC,MAAO,eACTR,EAAUS,OAAS,GAClBT,EAAUU,KAAI,EAAGC,QAAOC,aACtBP,EAAA,OAAKG,MAAO,gCACVH,EAAA,MAAIG,MAAO,qCAAsCG,GAChDC,EAAQH,OAAS,GAChBG,EAAQF,KAAI,EAAGC,QAAOE,MAAKC,aACzBT,EAAA,KAAGG,MAAO,gBAAgBM,IAAWlB,KAAMiB,GACxCF,SAMfN,EAAA,OAAAE,IAAA,2CAAKC,MAAO,yFACVH,EAAA,KAAAE,IAAA,2CAAGX,KAAMA,EAAMe,MAAM,WACnBN,EAAA,eAAAE,IAAA,2CAAaQ,SAAS,UAAUC,SAAU1B,EAAY2B,WAAY,GAAIC,YAAa,GAAIC,WAAW,iBAEpGd,EAAA,OAAAE,IAAA,2CAAKC,MAAO,QAAM,KACT,IAAIY,MAAOC,cAAa,8BAA6B,IAC5DhB,EAAA,KAAAE,IAAA,2CAAGX,KAAK,eAAeY,MAAO,eAAa,e"}