@zenpatient-org/healthspan-marketing-ui 0.1.35 → 0.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");require("../../components/Icon/Icon.cjs.js");const a=require("../../components/Icon/constants.cjs.js"),i=require("../../components/IconButton/IconButton.cjs.js"),f=require("./components/FooterAbout/FooterAbout.cjs.js"),x=require("./components/FooterLinksBlock/FooterLinksBlock.cjs.js"),j=require("./components/NewsLetter/NewsLetter.cjs.js"),N=require("react");require("../../components/Button/Button.cjs.js");const v=require("./components/TopTreatmentsCard/TopTreatmentsCard.cjs.js"),g=require("./components/LinksColumn/LinksColumn.cjs.js"),p=require("./assets/CompanyName.svg.cjs.js"),t=require("./footer.module.css.cjs.js"),l={title:"Treatments",content:[{title:"All Treatments",href:"/all"},{title:"Personalized Protocols",href:"/personalized"},{title:"Labs",href:"/labs"},{title:"Medications",href:"/medications"},{title:"Supplements",href:"/supplements"}]},k=({socialMedia:o,products:s})=>{const[
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");require("../../components/Icon/Icon.cjs.js");const a=require("../../components/Icon/constants.cjs.js"),i=require("../../components/IconButton/IconButton.cjs.js"),f=require("./components/FooterAbout/FooterAbout.cjs.js"),x=require("./components/FooterLinksBlock/FooterLinksBlock.cjs.js"),j=require("./components/NewsLetter/NewsLetter.cjs.js"),N=require("react");require("../../components/Button/Button.cjs.js");const v=require("./components/TopTreatmentsCard/TopTreatmentsCard.cjs.js"),g=require("./components/LinksColumn/LinksColumn.cjs.js"),p=require("./assets/CompanyName.svg.cjs.js"),t=require("./footer.module.css.cjs.js"),l={title:"Treatments",content:[{title:"All Treatments",href:"/all"},{title:"Personalized Protocols",href:"/personalized"},{title:"Labs",href:"/labs"},{title:"Medications",href:"/medications"},{title:"Supplements",href:"/supplements"}]},k=({socialMedia:o,products:s})=>{const[d,c]=N.useState(0),u=()=>c(r=>r===0?s.length-1:r-1),m=()=>c(r=>r===s.length-1?0:r+1),n=s[d],h=()=>{window.open(n==null?void 0:n.link,"_blank")};return e.jsx("div",{className:t.default.root,children:e.jsxs("div",{className:t.default.container,children:[e.jsxs("div",{className:t.default.content,children:[e.jsx("div",{className:t.default.footerLeft,children:e.jsx(j.NewsLetter,{})}),e.jsxs("div",{className:t.default.footerRight,children:[e.jsxs("div",{className:t.default.columns,children:[e.jsx(g.LinksColumn,{title:l.title,links:l.content},l.title),n&&e.jsx(v.TopTreatmentsCard,{title:"Top Treatments",image:n.image,name:n.name,price:n.price,onPrev:u,onNext:m,onLearnMore:h})]}),e.jsx("div",{className:t.default.footerLinks,children:e.jsx(x.FooterLinksBlock,{})}),e.jsxs("div",{className:t.default.about,children:[e.jsx(f.FooterAbout,{}),e.jsxs("div",{className:t.default.socials,children:[e.jsx("a",{href:o.facebook,target:"_blank",rel:"noopener noreferrer",children:e.jsx(i.IconButton,{iconName:a.EIconName.FACEBOOK,variant:"muted-invert",size:"lg"})}),e.jsx("a",{href:o.instagram,target:"_blank",rel:"noopener noreferrer",children:e.jsx(i.IconButton,{iconName:a.EIconName.INSTAGRAM,variant:"muted-invert",size:"lg"})}),e.jsx("a",{href:o.twitter,target:"_blank",rel:"noopener noreferrer",children:e.jsx(i.IconButton,{iconName:a.EIconName.X,variant:"muted-invert",size:"lg"})})]})]})]})]}),e.jsx("div",{className:t.default.img,children:e.jsx(p.default,{width:"100%",height:"100%",preserveAspectRatio:"xMidYMid meet"})})]})})};exports.Footer=k;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as e, jsxs as
|
|
2
|
+
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
3
3
|
import "../../components/Icon/Icon.es.js";
|
|
4
4
|
import { EIconName as l } from "../../components/Icon/constants.es.js";
|
|
5
5
|
import { IconButton as m } from "../../components/IconButton/IconButton.es.js";
|
|
6
6
|
import { FooterAbout as N } from "./components/FooterAbout/FooterAbout.es.js";
|
|
7
7
|
import { FooterLinksBlock as v } from "./components/FooterLinksBlock/FooterLinksBlock.es.js";
|
|
8
|
-
import { NewsLetter as
|
|
9
|
-
import { useState as
|
|
8
|
+
import { NewsLetter as g } from "./components/NewsLetter/NewsLetter.es.js";
|
|
9
|
+
import { useState as u } from "react";
|
|
10
10
|
import "../../components/Button/Button.es.js";
|
|
11
11
|
import { TopTreatmentsCard as k } from "./components/TopTreatmentsCard/TopTreatmentsCard.es.js";
|
|
12
12
|
import { LinksColumn as b } from "./components/LinksColumn/LinksColumn.es.js";
|
|
@@ -22,22 +22,22 @@ const s = {
|
|
|
22
22
|
{ title: "Supplements", href: "/supplements" }
|
|
23
23
|
]
|
|
24
24
|
}, R = ({ socialMedia: i, products: a }) => {
|
|
25
|
-
const [d, c] =
|
|
26
|
-
window.open(
|
|
25
|
+
const [d, c] = u(0), h = () => c((o) => o === 0 ? a.length - 1 : o - 1), f = () => c((o) => o === a.length - 1 ? 0 : o + 1), r = a[d], p = () => {
|
|
26
|
+
window.open(r == null ? void 0 : r.link, "_blank");
|
|
27
27
|
};
|
|
28
|
-
return /* @__PURE__ */ e("div", { className: t.root, children: /* @__PURE__ */
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */ e("div", { className: t.footerLeft, children: /* @__PURE__ */ e(
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
/* @__PURE__ */
|
|
28
|
+
return /* @__PURE__ */ e("div", { className: t.root, children: /* @__PURE__ */ n("div", { className: t.container, children: [
|
|
29
|
+
/* @__PURE__ */ n("div", { className: t.content, children: [
|
|
30
|
+
/* @__PURE__ */ e("div", { className: t.footerLeft, children: /* @__PURE__ */ e(g, {}) }),
|
|
31
|
+
/* @__PURE__ */ n("div", { className: t.footerRight, children: [
|
|
32
|
+
/* @__PURE__ */ n("div", { className: t.columns, children: [
|
|
33
33
|
/* @__PURE__ */ e(b, { title: s.title, links: s.content }, s.title),
|
|
34
|
-
/* @__PURE__ */ e(
|
|
34
|
+
r && /* @__PURE__ */ e(
|
|
35
35
|
k,
|
|
36
36
|
{
|
|
37
37
|
title: "Top Treatments",
|
|
38
|
-
image:
|
|
39
|
-
name:
|
|
40
|
-
price:
|
|
38
|
+
image: r.image,
|
|
39
|
+
name: r.name,
|
|
40
|
+
price: r.price,
|
|
41
41
|
onPrev: h,
|
|
42
42
|
onNext: f,
|
|
43
43
|
onLearnMore: p
|
|
@@ -45,9 +45,9 @@ const s = {
|
|
|
45
45
|
)
|
|
46
46
|
] }),
|
|
47
47
|
/* @__PURE__ */ e("div", { className: t.footerLinks, children: /* @__PURE__ */ e(v, {}) }),
|
|
48
|
-
/* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ n("div", { className: t.about, children: [
|
|
49
49
|
/* @__PURE__ */ e(N, {}),
|
|
50
|
-
/* @__PURE__ */
|
|
50
|
+
/* @__PURE__ */ n("div", { className: t.socials, children: [
|
|
51
51
|
/* @__PURE__ */ e("a", { href: i.facebook, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ e(m, { iconName: l.FACEBOOK, variant: "muted-invert", size: "lg" }) }),
|
|
52
52
|
/* @__PURE__ */ e("a", { href: i.instagram, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ e(m, { iconName: l.INSTAGRAM, variant: "muted-invert", size: "lg" }) }),
|
|
53
53
|
/* @__PURE__ */ e("a", { href: i.twitter, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ e(m, { iconName: l.X, variant: "muted-invert", size: "lg" }) })
|