"use client";
import { jsx as e, jsxs as n } from "react/jsx-runtime";
import v from "./assets/CompanyName.svg.es.js";
import { EAnalyticsEventType as N } from "../../types/analytics/analytics.es.js";
import r from "../../pageComponents/Footer/footer.module.css";
import { NewsLetter as d } from "./components/NewsLetter/NewsLetter.es.js";
import { LinksColumn as g } from "./components/LinksColumn/LinksColumn.es.js";
import { TopTreatmentsSlider as b } from "./components/TopTreatmentsSlider/TopTreatmentsSlider.es.js";
import { FooterLinksBlock as u } from "./components/FooterLinksBlock/FooterLinksBlock.es.js";
import { FooterAbout as k } from "./components/FooterAbout/FooterAbout.es.js";
import { IconButton as m } from "../../components/IconButton/IconButton.es.js";
import { EIconName as i } from "../../components/Icon/constants.es.js";
const l = {
  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" }
  ]
}, E = ({ socialMedia: t, products: o, trackingEvent: s, trackingLocation: c }) => {
  const f = (h) => {
    var a;
    if (s) {
      const p = {
        event: s,
        location: c || "",
        type: N.interaction,
        payload: {
          email: h,
          pageTitle: document.title,
          component: "Footer",
          element: "NewsLetter"
        }
      };
      (a = window.eventBus) == null || a.emit("analytics", p);
    }
  };
  return /* @__PURE__ */ e("footer", { className: r.root, children: /* @__PURE__ */ n("div", { className: r.container, children: [
    /* @__PURE__ */ n("div", { className: r.content, children: [
      /* @__PURE__ */ e("div", { className: r.footerLeft, children: /* @__PURE__ */ e(d, { onSubmit: f }) }),
      /* @__PURE__ */ n("div", { className: r.footerRight, children: [
        /* @__PURE__ */ n("div", { className: r.columns, children: [
          /* @__PURE__ */ e(g, { title: l.title, links: l.content }, l.title),
          o && (o == null ? void 0 : o.length) > 0 && /* @__PURE__ */ e(b, { title: "Top Treatments", products: o })
        ] }),
        /* @__PURE__ */ e("div", { className: r.footerLinks, children: /* @__PURE__ */ e(u, {}) }),
        /* @__PURE__ */ n("div", { className: r.about, children: [
          /* @__PURE__ */ e(k, {}),
          /* @__PURE__ */ n("div", { className: r.socials, children: [
            (t == null ? void 0 : t.facebook) && /* @__PURE__ */ e("a", { href: t.facebook, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ e(m, { iconName: i.FACEBOOK, variant: "muted-invert", size: "lg" }) }),
            (t == null ? void 0 : t.instagram) && /* @__PURE__ */ e("a", { href: t.instagram, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ e(m, { iconName: i.INSTAGRAM, variant: "muted-invert", size: "lg" }) }),
            (t == null ? void 0 : t.twitter) && /* @__PURE__ */ e("a", { href: t.twitter, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ e(m, { iconName: i.X, variant: "muted-invert", size: "lg" }) })
          ] })
        ] })
      ] })
    ] }),
    /* @__PURE__ */ e("div", { className: r.img, children: /* @__PURE__ */ e(v, { width: "100%", height: "100%", preserveAspectRatio: "xMidYMid meet" }) })
  ] }) });
};
export {
  E as Footer
};
