"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),j=require("./assets/CompanyName.svg.cjs.js"),x=require("../../types/analytics/analytics.cjs.js"),n=require("../../src/pageComponents/Footer/footer.module.css"),N=require("./components/NewsLetter/NewsLetter.cjs.js"),f=require("./components/LinksColumn/LinksColumn.cjs.js"),v=require("./components/TopTreatmentsSlider/TopTreatmentsSlider.cjs.js"),p=require("./components/FooterLinksBlock/FooterLinksBlock.cjs.js"),d=require("./components/FooterAbout/FooterAbout.cjs.js"),o=require("../../components/IconButton/IconButton.cjs.js"),s=require("../../components/Icon/constants.cjs.js"),i={title:"Treatments",content:[{title:"All Treatments",href:"/treatments"},{title:"Personalized Protocols",href:"/personalized-protocols"},{title:"Labs",href:"/labs"},{title:"Medications",href:"/medications"},{title:"Supplements",href:"/supplements"}]},b=({socialMedia:t,products:r,trackingEvent:l,trackingLocation:m})=>{const a=u=>{var c;if(l){const h={event:l,location:m||"",type:x.EAnalyticsEventType.interaction,payload:{email:u,pageTitle:document.title,component:"Footer",element:"NewsLetter"}};(c=window.eventBus)==null||c.emit("analytics",h)}};return e.jsx("footer",{className:n.root,children:e.jsxs("div",{className:n.container,children:[e.jsxs("div",{className:n.content,children:[e.jsx("div",{className:n.footerLeft,children:e.jsx(N.NewsLetter,{onSubmit:a})}),e.jsxs("div",{className:n.footerRight,children:[e.jsxs("div",{className:n.columns,children:[e.jsx(f.LinksColumn,{title:i.title,links:i.content},i.title),r&&(r==null?void 0:r.length)>0&&e.jsx(v.TopTreatmentsSlider,{title:"Top Treatments",products:r})]}),e.jsx("div",{className:n.footerLinks,children:e.jsx(p.FooterLinksBlock,{})}),e.jsxs("div",{className:n.about,children:[e.jsx(d.FooterAbout,{}),e.jsxs("div",{className:n.socials,children:[(t==null?void 0:t.facebook)&&e.jsx("a",{href:t.facebook,target:"_blank",rel:"noopener noreferrer",children:e.jsx(o.IconButton,{iconName:s.EIconName.FACEBOOK,variant:"muted-invert",size:"lg"})}),(t==null?void 0:t.instagram)&&e.jsx("a",{href:t.instagram,target:"_blank",rel:"noopener noreferrer",children:e.jsx(o.IconButton,{iconName:s.EIconName.INSTAGRAM,variant:"muted-invert",size:"lg"})}),(t==null?void 0:t.twitter)&&e.jsx("a",{href:t.twitter,target:"_blank",rel:"noopener noreferrer",children:e.jsx(o.IconButton,{iconName:s.EIconName.X,variant:"muted-invert",size:"lg"})})]})]})]})]}),e.jsx("div",{className:n.img,children:e.jsx(j.default,{width:"100%",height:"100%",preserveAspectRatio:"xMidYMid meet"})})]})})};exports.Footer=b;
