@zenpatient-org/healthspan-marketing-ui 0.1.169 → 0.1.171

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.
Files changed (49) hide show
  1. package/dist/components/Button/Button.cjs.js +1 -1
  2. package/dist/components/Button/Button.d.ts +3 -0
  3. package/dist/components/Button/Button.es.js +34 -28
  4. package/dist/components/Callback/Callback.d.ts +1 -0
  5. package/dist/components/Pricing/Pricing.cjs.js +1 -1
  6. package/dist/components/Pricing/Pricing.d.ts +1 -1
  7. package/dist/components/Pricing/Pricing.es.js +51 -37
  8. package/dist/components/Pricing/types.d.ts +2 -0
  9. package/dist/components/ProductGallery/ProductGallery.cjs.js +1 -1
  10. package/dist/components/ProductGallery/ProductGallery.es.js +4 -3
  11. package/dist/components/ProductGalleryCard/ProductGalleryCard.cjs.js +1 -1
  12. package/dist/components/ProductGalleryCard/ProductGalleryCard.d.ts +1 -1
  13. package/dist/components/ProductGalleryCard/ProductGalleryCard.es.js +51 -22
  14. package/dist/components/ProductGalleryCard/types.d.ts +1 -0
  15. package/dist/components/ProductListing/ProductListing.cjs.js +1 -1
  16. package/dist/components/ProductListing/ProductListing.d.ts +3 -1
  17. package/dist/components/ProductListing/ProductListing.es.js +48 -25
  18. package/dist/modules/CallToAction/CallToAction.cjs.js +1 -1
  19. package/dist/modules/CallToAction/CallToAction.es.js +86 -73
  20. package/dist/modules/Callback/Callback.cjs.js +1 -1
  21. package/dist/modules/Callback/Callback.d.ts +3 -1
  22. package/dist/modules/Callback/Callback.es.js +46 -24
  23. package/dist/modules/Compare/Compare.cjs.js +1 -1
  24. package/dist/modules/Compare/Compare.es.js +12 -12
  25. package/dist/modules/Compare/types.d.ts +2 -2
  26. package/dist/modules/FeaturedIn/FeaturedIn.cjs.js +1 -1
  27. package/dist/modules/FeaturedIn/FeaturedIn.es.js +23 -32
  28. package/dist/modules/FeaturedIn/components/CtaFeaturedIn.cjs.js +1 -0
  29. package/dist/modules/FeaturedIn/components/CtaFeaturedIn.d.ts +5 -0
  30. package/dist/modules/FeaturedIn/components/CtaFeaturedIn.es.js +22 -0
  31. package/dist/modules/HowItWorks/HowItWorks.cjs.js +1 -1
  32. package/dist/modules/HowItWorks/HowItWorks.es.js +61 -30
  33. package/dist/modules/IndividualProductCard/IndividualProductCard.cjs.js +1 -1
  34. package/dist/modules/IndividualProductCard/IndividualProductCard.d.ts +2 -1
  35. package/dist/modules/IndividualProductCard/IndividualProductCard.es.js +84 -64
  36. package/dist/modules/ProgramsDetailsHero/ProgramsDetailsHero.cjs.js +1 -1
  37. package/dist/modules/ProgramsDetailsHero/ProgramsDetailsHero.es.js +38 -26
  38. package/dist/modules/YourProtocol/YourProtocol.cjs.js +1 -1
  39. package/dist/modules/YourProtocol/YourProtocol.es.js +48 -35
  40. package/dist/pageComponents/HomepageHero/HomepageHero.cjs.js +1 -1
  41. package/dist/pageComponents/HomepageHero/HomepageHero.es.js +19 -28
  42. package/dist/pageComponents/LabsHero/LabsHero.cjs.js +1 -1
  43. package/dist/pageComponents/LabsHero/LabsHero.es.js +54 -43
  44. package/dist/pageComponents/PersonalizedProtocolHero/PersonalizedProtocolHero.cjs.js +1 -1
  45. package/dist/pageComponents/PersonalizedProtocolHero/PersonalizedProtocolHero.es.js +73 -60
  46. package/dist/types/analytics/analytics.cjs.js +1 -1
  47. package/dist/types/analytics/analytics.es.js +3 -3
  48. package/dist/types/analytics.d.ts +26 -3
  49. package/package.json +1 -1
@@ -1,50 +1,62 @@
1
1
  "use client";
2
2
  import { jsxs as s, jsx as e } from "react/jsx-runtime";
3
3
  import { useRef as l } from "react";
4
- import { Button as K } from "../../components/Button/Button.es.js";
5
- import { Typography as f } from "../../components/Typography/Typography.es.js";
6
- import { Icon as W } from "../../components/Icon/Icon.es.js";
7
- import { EIconName as B } from "../../components/Icon/constants.es.js";
8
- import { HighlightedTitle as V } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
4
+ import { Button as J } from "../../components/Button/Button.es.js";
5
+ import { Typography as h } from "../../components/Typography/Typography.es.js";
6
+ import { Icon as P } from "../../components/Icon/Icon.es.js";
7
+ import { EIconName as W } from "../../components/Icon/constants.es.js";
8
+ import { HighlightedTitle as w } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
9
9
  import { gsap as a } from "../../node_modules/gsap/index.es.js";
10
- import { useGSAP as J } from "../../node_modules/@gsap/react/src/index.es.js";
11
- import { ScrollTrigger as q } from "../../node_modules/gsap/ScrollTrigger.es.js";
12
- import Q from "../../utils/debounce.es.js";
10
+ import { useGSAP as Q } from "../../node_modules/@gsap/react/src/index.es.js";
11
+ import { ScrollTrigger as _ } from "../../node_modules/gsap/ScrollTrigger.es.js";
12
+ import U from "../../utils/debounce.es.js";
13
13
  import r from "./callToAction.module.css.es.js";
14
- a.registerPlugin(q);
15
- const ce = ({
16
- subtitle: x,
17
- titleTop: X,
18
- scrollableLabels: w,
19
- titleBottom: _,
14
+ import { EAnalyticsEventType as Y, EAnalyticsEvent as Z } from "../../types/analytics/analytics.es.js";
15
+ a.registerPlugin(_);
16
+ const pe = ({
17
+ subtitle: q,
18
+ titleTop: x,
19
+ scrollableLabels: C,
20
+ titleBottom: X,
20
21
  description: z,
21
22
  hsaText: F,
22
23
  buttonText: O,
23
- buttonLink: h,
24
+ buttonLink: m,
24
25
  backgroundImage: j
25
26
  }) => {
26
- const d = l(null), o = l(null), L = l(null), y = l(null), b = l(null), S = l(null), g = l(null), v = l(null), N = l(null);
27
- return J(() => {
28
- var M, k, A;
29
- const u = d.current && d.current.getBoundingClientRect().top < window.innerHeight * 0.8, m = (M = L.current) == null ? void 0 : M.querySelector("p"), T = (k = S.current) == null ? void 0 : k.querySelector("p"), D = [
30
- m,
27
+ const u = l(null), c = l(null), E = l(null), y = l(null), b = l(null), V = l(null), g = l(null), v = l(null), N = l(null), D = () => {
28
+ var n;
29
+ (n = window.eventBus) == null || n.emit("analytics", {
30
+ event: Z.ctaClicked,
31
+ type: Y.interaction,
32
+ component: "CallToAction",
33
+ element: "primary_button",
34
+ payload: {
35
+ link: m
36
+ }
37
+ });
38
+ };
39
+ return Q(() => {
40
+ var A, H, M;
41
+ const n = u.current && u.current.getBoundingClientRect().top < window.innerHeight * 0.8, p = (A = E.current) == null ? void 0 : A.querySelector("p"), T = (H = V.current) == null ? void 0 : H.querySelector("p"), $ = [
42
+ p,
31
43
  y.current,
32
- o.current,
44
+ c.current,
33
45
  b.current,
34
46
  T,
35
47
  g.current,
36
48
  v.current,
37
49
  N.current
38
50
  ].filter(Boolean);
39
- a.set(D, {
51
+ a.set($, {
40
52
  clipPath: "inset(0% 0% 100% 0%)",
41
53
  yPercent: 100
42
54
  });
43
- const p = a.to(
55
+ const f = a.to(
44
56
  [
45
- m,
57
+ p,
46
58
  y.current,
47
- o.current,
59
+ c.current,
48
60
  b.current,
49
61
  T,
50
62
  g.current,
@@ -65,88 +77,88 @@ const ce = ({
65
77
  // Start paused, we'll control when it plays
66
78
  }
67
79
  );
68
- q.create({
69
- trigger: d.current,
80
+ _.create({
81
+ trigger: u.current,
70
82
  start: "top 80%",
71
83
  end: "+=500",
72
- onEnter: () => p.play(),
73
- onEnterBack: () => p.play(),
74
- onLeaveBack: () => p.reverse()
75
- }), u && a.delayedCall(0.1, () => {
76
- p.play();
84
+ onEnter: () => f.play(),
85
+ onEnterBack: () => f.play(),
86
+ onLeaveBack: () => f.reverse()
87
+ }), n && a.delayedCall(0.1, () => {
88
+ f.play();
77
89
  });
78
- const t = (A = o.current) == null ? void 0 : A.querySelector("ul");
90
+ const t = (M = c.current) == null ? void 0 : M.querySelector("ul");
79
91
  if (!t) return;
80
- const C = t.innerHTML;
81
- let i = null, E = !0;
82
- const H = () => {
83
- i && i.kill(), t.innerHTML = C, a.set(t, { y: 0 });
84
- const n = Array.from(t.querySelectorAll("li"));
85
- if (n.length <= 1) return;
86
- const R = n[0].clientHeight;
92
+ const k = t.innerHTML;
93
+ let i = null, L = !0;
94
+ const S = () => {
95
+ i && i.kill(), t.innerHTML = k, a.set(t, { y: 0 });
96
+ const o = Array.from(t.querySelectorAll("li"));
97
+ if (o.length <= 1) return;
98
+ const R = o[0].clientHeight;
87
99
  if (!R) return;
88
- a.set(o.current, { height: () => R, overflow: "hidden" });
89
- const I = Array.from(n);
90
- I.forEach((P) => {
91
- t.appendChild(P.cloneNode(!0));
100
+ a.set(c.current, { height: () => R, overflow: "hidden" });
101
+ const B = Array.from(o);
102
+ B.forEach((I) => {
103
+ t.appendChild(I.cloneNode(!0));
92
104
  });
93
- const $ = E && !u ? 0.3 : 0;
105
+ const G = L && !n ? 0.3 : 0;
94
106
  i = a.timeline({
95
107
  repeat: -1,
96
- delay: $,
108
+ delay: G,
97
109
  onRepeat: () => {
98
110
  a.set(t, { y: 0 });
99
111
  }
100
- }), I.forEach((P, G) => {
112
+ }), B.forEach((I, K) => {
101
113
  i && i.to({}, { duration: 2 }).to(t, {
102
- y: `-${(G + 1) * R}`,
114
+ y: `-${(K + 1) * R}`,
103
115
  duration: 0.5,
104
116
  ease: "power1.inOut"
105
117
  });
106
- }), E = !1;
107
- }, c = Q(H, 200);
108
- return H(), window.addEventListener("resize", c), () => {
109
- var n;
110
- window.removeEventListener("resize", c), (n = c.kill) == null || n.call(c), i && i.kill(), t && (t.innerHTML = C, a.set(t, { y: 0 }));
118
+ }), L = !1;
119
+ }, d = U(S, 200);
120
+ return S(), window.addEventListener("resize", d), () => {
121
+ var o;
122
+ window.removeEventListener("resize", d), (o = d.kill) == null || o.call(d), i && i.kill(), t && (t.innerHTML = k, a.set(t, { y: 0 }));
111
123
  };
112
- }, [w]), /* @__PURE__ */ s("section", { ref: d, className: r.root, children: [
124
+ }, [C]), /* @__PURE__ */ s("section", { ref: u, className: r.root, children: [
113
125
  /* @__PURE__ */ e("div", { className: r.backgroundImage, style: { backgroundImage: `url(${j})` } }),
114
126
  /* @__PURE__ */ s("div", { className: r.container, children: [
115
127
  /* @__PURE__ */ e("div", { className: r.leftContent, children: /* @__PURE__ */ s("div", { className: r.content, children: [
116
128
  /* @__PURE__ */ e("div", { ref: y, children: /* @__PURE__ */ e(
117
- V,
129
+ w,
118
130
  {
119
131
  defaultVariant: "displayXl",
120
132
  mobileVariant: "displayMd",
121
133
  as: "div",
122
134
  className: r.title,
123
- title: X
135
+ title: x
124
136
  }
125
137
  ) }),
126
- /* @__PURE__ */ e("div", { ref: o, className: r.scrollableLabelsWrapper, children: /* @__PURE__ */ e("ul", { className: r.scrollableLabels, children: w.map((u, m) => /* @__PURE__ */ e("li", { className: r.scrollableLabel, children: /* @__PURE__ */ e(f, { defaultVariant: "displayXl", mobileVariant: "displayMd", as: "span", children: u }) }, m)) }) }),
138
+ /* @__PURE__ */ e("div", { ref: c, className: r.scrollableLabelsWrapper, children: /* @__PURE__ */ e("ul", { className: r.scrollableLabels, children: C.map((n, p) => /* @__PURE__ */ e("li", { className: r.scrollableLabel, children: /* @__PURE__ */ e(h, { defaultVariant: "displayXl", mobileVariant: "displayMd", as: "span", children: n }) }, p)) }) }),
127
139
  /* @__PURE__ */ e("div", { ref: b, children: /* @__PURE__ */ e(
128
- V,
140
+ w,
129
141
  {
130
142
  defaultVariant: "displayXl",
131
143
  mobileVariant: "displayMd",
132
144
  as: "div",
133
145
  className: r.title,
134
- title: _
146
+ title: X
135
147
  }
136
148
  ) })
137
149
  ] }) }),
138
- /* @__PURE__ */ e("div", { ref: L, className: r.subtitleWrapper, children: /* @__PURE__ */ e(
139
- V,
150
+ /* @__PURE__ */ e("div", { ref: E, className: r.subtitleWrapper, children: /* @__PURE__ */ e(
151
+ w,
140
152
  {
141
153
  defaultVariant: "labelMd",
142
154
  mobileVariant: "labelSm",
143
155
  as: "div",
144
156
  className: r.subtitle,
145
- title: x
157
+ title: q
146
158
  }
147
159
  ) }),
148
- /* @__PURE__ */ e("div", { ref: S, className: r.arrowWrapper, children: /* @__PURE__ */ s(
149
- f,
160
+ /* @__PURE__ */ e("div", { ref: V, className: r.arrowWrapper, children: /* @__PURE__ */ s(
161
+ h,
150
162
  {
151
163
  defaultVariant: "labelMd",
152
164
  mobileVariant: "labelXs",
@@ -155,14 +167,14 @@ const ce = ({
155
167
  as: "p",
156
168
  children: [
157
169
  "(",
158
- /* @__PURE__ */ e(W, { name: B.ARROW_FORWARD }),
170
+ /* @__PURE__ */ e(P, { name: W.ARROW_FORWARD }),
159
171
  ")"
160
172
  ]
161
173
  }
162
174
  ) }),
163
175
  /* @__PURE__ */ e("div", { className: r.rightContent, children: /* @__PURE__ */ s("div", { className: r.descriptionWrapper, children: [
164
176
  /* @__PURE__ */ e("div", { ref: g, children: /* @__PURE__ */ e(
165
- f,
177
+ h,
166
178
  {
167
179
  as: "p",
168
180
  defaultVariant: "bodyLg",
@@ -171,20 +183,21 @@ const ce = ({
171
183
  children: z
172
184
  }
173
185
  ) }),
174
- /* @__PURE__ */ e("div", { ref: v, className: r.buttonWrapper, children: h && /* @__PURE__ */ e(
175
- K,
186
+ /* @__PURE__ */ e("div", { ref: v, className: r.buttonWrapper, children: m && /* @__PURE__ */ e(
187
+ J,
176
188
  {
177
- as: h ? "a" : "button",
178
- href: h,
189
+ as: m ? "a" : "button",
190
+ href: m,
179
191
  variant: "secondary",
180
192
  size: "lg",
193
+ onClick: D,
181
194
  children: O
182
195
  }
183
196
  ) }),
184
197
  /* @__PURE__ */ s("div", { ref: N, className: r.hsaEligible, children: [
185
- /* @__PURE__ */ e(W, { name: B.CIRCLE_CHECK_FILL, className: r.checkIcon }),
198
+ /* @__PURE__ */ e(P, { name: W.CIRCLE_CHECK_FILL, className: r.checkIcon }),
186
199
  /* @__PURE__ */ e(
187
- f,
200
+ h,
188
201
  {
189
202
  as: "p",
190
203
  defaultVariant: "bodySm",
@@ -199,5 +212,5 @@ const ce = ({
199
212
  ] });
200
213
  };
201
214
  export {
202
- ce as CallToAction
215
+ pe as CallToAction
203
216
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("../../components/Callback/Callback.cjs.js"),p=require("../../components/Icon/Icon.cjs.js"),n=require("../../components/Icon/constants.cjs.js"),m=require("../../components/Typography/Typography.cjs.js"),c=require("./callback.module.css.cjs.js"),h=[{icon:n.EIconName.HEART,description:"No hidden fees"},{icon:n.EIconName.PROTOCOLS,description:"Personalized Protocols"},{icon:n.EIconName.PACKAGE,description:"Free Shipping"},{icon:n.EIconName.MESSAGE,description:"Doctor & Clinical Team"}];function b({title:a,description:i,price:s,signupUrl:r,image:l,size:t,shape:d}){return e.jsx("section",{className:c.default.root,children:e.jsx("div",{className:c.default.container,children:e.jsxs("div",{className:c.default.content,children:[e.jsx(u.Callback,{title:a,description:i,price:s??"",image:l,button:{href:r,as:"a"},size:t,shape:d}),e.jsx("div",{className:c.default.icons,children:h.map(o=>e.jsxs("div",{className:c.default.icon,children:[e.jsx(p.Icon,{name:o.icon}),e.jsx(m.Typography,{defaultVariant:"labelXl",children:o.description})]},o.description))})]})})})}exports.CallbackModule=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),E=require("../../components/Callback/Callback.cjs.js"),h=require("../../components/Icon/Icon.cjs.js"),c=require("../../components/Icon/constants.cjs.js"),_=require("../../components/Typography/Typography.cjs.js"),t=require("../../types/analytics/analytics.cjs.js"),n=require("./callback.module.css.cjs.js"),b=[{icon:c.EIconName.HEART,description:"No hidden fees"},{icon:c.EIconName.PROTOCOLS,description:"Personalized Protocols"},{icon:c.EIconName.PACKAGE,description:"Free Shipping"},{icon:c.EIconName.MESSAGE,description:"Doctor & Clinical Team"}];function f({title:i,zenpatientId:s,description:l,price:r,signupUrl:a,image:d,size:p,shape:u,trackingLocation:m}){const y={event:t.EAnalyticsEvent.ctaClicked,location:m||"not_set",type:t.EAnalyticsEventType.interaction,component:"CallbackModule",payload:{productId:s,ctaLink:a}};return e.jsx("section",{className:n.default.root,children:e.jsx("div",{className:n.default.container,children:e.jsxs("div",{className:n.default.content,children:[e.jsx(E.Callback,{title:i,description:l,price:r??"",image:d,button:{href:a,as:"a",analyticsProps:y},size:p,shape:u}),e.jsx("div",{className:n.default.icons,children:b.map(o=>e.jsxs("div",{className:n.default.icon,children:[e.jsx(h.Icon,{name:o.icon}),e.jsx(_.Typography,{defaultVariant:"labelXl",children:o.description})]},o.description))})]})})})}exports.CallbackModule=f;
@@ -4,9 +4,11 @@ export type CallbackModuleProps = {
4
4
  title: string;
5
5
  description: string;
6
6
  price: string | null;
7
+ zenpatientId: string;
7
8
  signupUrl: string;
8
9
  image: string;
9
10
  size: CallbackSize;
10
11
  shape: CallbackShape;
12
+ trackingLocation?: string;
11
13
  };
12
- export declare function CallbackModule({ title, description, price, signupUrl, image, size, shape }: CallbackModuleProps): import("react/jsx-runtime").JSX.Element;
14
+ export declare function CallbackModule({ title, zenpatientId, description, price, signupUrl, image, size, shape, trackingLocation, }: CallbackModuleProps): import("react/jsx-runtime").JSX.Element;
@@ -1,50 +1,72 @@
1
- import { jsx as o, jsxs as r } from "react/jsx-runtime";
2
- import { Callback as p } from "../../components/Callback/Callback.es.js";
3
- import { Icon as f } from "../../components/Icon/Icon.es.js";
4
- import { EIconName as c } from "../../components/Icon/constants.es.js";
5
- import { Typography as h } from "../../components/Typography/Typography.es.js";
1
+ import { jsx as o, jsxs as t } from "react/jsx-runtime";
2
+ import { Callback as h } from "../../components/Callback/Callback.es.js";
3
+ import { Icon as y } from "../../components/Icon/Icon.es.js";
4
+ import { EIconName as n } from "../../components/Icon/constants.es.js";
5
+ import { Typography as v } from "../../components/Typography/Typography.es.js";
6
+ import { EAnalyticsEventType as C, EAnalyticsEvent as N } from "../../types/analytics/analytics.es.js";
6
7
  import i from "./callback.module.css.es.js";
7
- const N = [
8
+ const u = [
8
9
  {
9
- icon: c.HEART,
10
+ icon: n.HEART,
10
11
  description: "No hidden fees"
11
12
  },
12
13
  {
13
- icon: c.PROTOCOLS,
14
+ icon: n.PROTOCOLS,
14
15
  description: "Personalized Protocols"
15
16
  },
16
17
  {
17
- icon: c.PACKAGE,
18
+ icon: n.PACKAGE,
18
19
  description: "Free Shipping"
19
20
  },
20
21
  {
21
- icon: c.MESSAGE,
22
+ icon: n.MESSAGE,
22
23
  description: "Doctor & Clinical Team"
23
24
  }
24
25
  ];
25
- function v({ title: e, description: a, price: s, signupUrl: t, image: l, size: d, shape: m }) {
26
- return /* @__PURE__ */ o("section", { className: i.root, children: /* @__PURE__ */ o("div", { className: i.container, children: /* @__PURE__ */ r("div", { className: i.content, children: [
26
+ function M({
27
+ title: a,
28
+ zenpatientId: r,
29
+ description: l,
30
+ price: s,
31
+ signupUrl: e,
32
+ image: d,
33
+ size: p,
34
+ shape: m,
35
+ trackingLocation: f
36
+ }) {
37
+ const E = {
38
+ event: N.ctaClicked,
39
+ location: f || "not_set",
40
+ type: C.interaction,
41
+ component: "CallbackModule",
42
+ payload: {
43
+ productId: r,
44
+ ctaLink: e
45
+ }
46
+ };
47
+ return /* @__PURE__ */ o("section", { className: i.root, children: /* @__PURE__ */ o("div", { className: i.container, children: /* @__PURE__ */ t("div", { className: i.content, children: [
27
48
  /* @__PURE__ */ o(
28
- p,
49
+ h,
29
50
  {
30
- title: e,
31
- description: a,
51
+ title: a,
52
+ description: l,
32
53
  price: s ?? "",
33
- image: l,
54
+ image: d,
34
55
  button: {
35
- href: t,
36
- as: "a"
56
+ href: e,
57
+ as: "a",
58
+ analyticsProps: E
37
59
  },
38
- size: d,
60
+ size: p,
39
61
  shape: m
40
62
  }
41
63
  ),
42
- /* @__PURE__ */ o("div", { className: i.icons, children: N.map((n) => /* @__PURE__ */ r("div", { className: i.icon, children: [
43
- /* @__PURE__ */ o(f, { name: n.icon }),
44
- /* @__PURE__ */ o(h, { defaultVariant: "labelXl", children: n.description })
45
- ] }, n.description)) })
64
+ /* @__PURE__ */ o("div", { className: i.icons, children: u.map((c) => /* @__PURE__ */ t("div", { className: i.icon, children: [
65
+ /* @__PURE__ */ o(y, { name: c.icon }),
66
+ /* @__PURE__ */ o(v, { defaultVariant: "labelXl", children: c.description })
67
+ ] }, c.description)) })
46
68
  ] }) }) });
47
69
  }
48
70
  export {
49
- v as CallbackModule
71
+ M as CallbackModule
50
72
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("./compare.module.css.cjs.js"),n=require("../../components/Typography/Typography.cjs.js"),o=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),t=require("../../components/Pricing/Pricing.cjs.js"),c=({label:r,title:a,leftElement:s,rightElement:l})=>e.jsx("section",{className:i.default.root,children:e.jsxs("div",{className:i.default.container,children:[e.jsxs("div",{className:i.default.header,children:[r&&e.jsx(n.Typography,{defaultVariant:"labelMd",mobileVariant:"labelSm",emphasis:!0,children:r}),e.jsx(o.HighlightedTitle,{title:a,defaultVariant:"displayMd",mobileVariant:"headingXl",className:i.default.title})]}),e.jsxs("div",{className:i.default.content,children:[e.jsx(t.Pricing,{...s}),e.jsx(t.Pricing,{...l})]})]})});exports.Compare=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("./compare.module.css.cjs.js"),s=require("../../components/Typography/Typography.cjs.js"),c=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),r=require("../../components/Pricing/Pricing.cjs.js"),o=({label:t,title:a,leftElement:l,rightElement:n})=>e.jsx("section",{className:i.default.root,children:e.jsxs("div",{className:i.default.container,children:[e.jsxs("div",{className:i.default.header,children:[t&&e.jsx(s.Typography,{defaultVariant:"labelMd",mobileVariant:"labelSm",emphasis:!0,children:t}),e.jsx(c.HighlightedTitle,{title:a,defaultVariant:"displayMd",mobileVariant:"headingXl",className:i.default.title})]}),e.jsxs("div",{className:i.default.content,children:[e.jsx(r.Pricing,{...l,element:"left_card"}),e.jsx(r.Pricing,{...n,element:"right_card"})]})]})});exports.Compare=o;
@@ -1,24 +1,24 @@
1
- import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
- import i from "./compare.module.css.es.js";
3
- import { Typography as s } from "../../components/Typography/Typography.es.js";
4
- import { HighlightedTitle as n } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
1
+ import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
+ import r from "./compare.module.css.es.js";
3
+ import { Typography as n } from "../../components/Typography/Typography.es.js";
4
+ import { HighlightedTitle as s } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
5
5
  import { Pricing as t } from "../../components/Pricing/Pricing.es.js";
6
- const g = ({ label: a, title: l, leftElement: o, rightElement: m }) => /* @__PURE__ */ e("section", { className: i.root, children: /* @__PURE__ */ r("div", { className: i.container, children: [
7
- /* @__PURE__ */ r("div", { className: i.header, children: [
8
- a && /* @__PURE__ */ e(s, { defaultVariant: "labelMd", mobileVariant: "labelSm", emphasis: !0, children: a }),
6
+ const g = ({ label: a, title: l, leftElement: m, rightElement: o }) => /* @__PURE__ */ e("section", { className: r.root, children: /* @__PURE__ */ i("div", { className: r.container, children: [
7
+ /* @__PURE__ */ i("div", { className: r.header, children: [
8
+ a && /* @__PURE__ */ e(n, { defaultVariant: "labelMd", mobileVariant: "labelSm", emphasis: !0, children: a }),
9
9
  /* @__PURE__ */ e(
10
- n,
10
+ s,
11
11
  {
12
12
  title: l,
13
13
  defaultVariant: "displayMd",
14
14
  mobileVariant: "headingXl",
15
- className: i.title
15
+ className: r.title
16
16
  }
17
17
  )
18
18
  ] }),
19
- /* @__PURE__ */ r("div", { className: i.content, children: [
20
- /* @__PURE__ */ e(t, { ...o }),
21
- /* @__PURE__ */ e(t, { ...m })
19
+ /* @__PURE__ */ i("div", { className: r.content, children: [
20
+ /* @__PURE__ */ e(t, { ...m, element: "left_card" }),
21
+ /* @__PURE__ */ e(t, { ...o, element: "right_card" })
22
22
  ] })
23
23
  ] }) });
24
24
  export {
@@ -4,6 +4,6 @@ import { PricingElementView } from '../../components/Pricing';
4
4
  export type CompareView = {
5
5
  label?: string;
6
6
  title: ReactNode;
7
- leftElement: PricingElementView;
8
- rightElement: PricingElementView;
7
+ leftElement: Omit<PricingElementView, 'element'>;
8
+ rightElement: Omit<PricingElementView, 'element'>;
9
9
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("react"),c=require("../../components/InfiniteScroll/InfiniteScroll.cjs.js"),l=require("../../components/Typography/Typography.cjs.js"),s=require("../../utils/cn/cn.cjs.js"),a=require("./featuredIn.module.css.cjs.js");function i({media:n}){return e.jsx("div",{className:a.default.mediaFeaturedInBlock,children:n.filter(r=>!!r.logo).map(({logo:r,url:t},d)=>{const u=t?"a":"div";return e.jsx(u,{href:t,target:"_blank",rel:"noopener noreferrer",className:a.default.mediaFeaturedInImageContainer,children:e.jsx("div",{className:a.default.mediaFeaturedInImage,style:{backgroundImage:`url(${r})`}})},`${t}_${d}`)})})}function m({quote:n}){return e.jsx("div",{className:a.default.quoteFeaturedInBlock,children:e.jsxs(l.Typography,{as:"p",defaultVariant:"headingSm",mobileVariant:"headingXxs",className:a.default.quoteFeaturedInText,children:["“",n,"”"]})})}function f({button_label:n}){return e.jsx("a",{href:"https://app.gethealthspan.com/#/product/signup/6896e50bc0af7d4d26738948",className:a.default.ctaFeaturedIn,children:e.jsx("span",{className:a.default.ctaFeaturedInText,children:n})})}function p({label:n,content:r}){return e.jsxs("section",{className:a.default.container,children:[e.jsx("p",{className:s.cn(a.default.title,a.default.customTitle),children:"(Featured In)"}),e.jsx(l.Typography,{as:"p",defaultVariant:"displayMd",className:s.cn(a.default.title,a.default.defaultTitle),children:"(Featured In)"}),e.jsx(l.Typography,{as:"p",defaultVariant:"labelMd",mobileVariant:"labelSm",emphasis:!0,className:a.default.label,children:n}),e.jsx(c.InfiniteScroll,{items:r,contentClassName:a.default.content,itemClassName:a.default.item,rootClassName:a.default.scrollRoot,renderItem:t=>e.jsxs(o.Fragment,{children:[t.type==="media"&&e.jsx(i,{media:t.media}),t.type==="quote"&&e.jsx(m,{quote:t.quote}),t.type==="cta"&&e.jsx(f,{button_label:t.button_label})]},t.type)})]})}exports.FeaturedIn=p;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("react"),i=require("../../components/InfiniteScroll/InfiniteScroll.cjs.js"),l=require("../../components/Typography/Typography.cjs.js"),s=require("../../utils/cn/cn.cjs.js"),a=require("./featuredIn.module.css.cjs.js"),c=require("./components/CtaFeaturedIn.cjs.js");function m({media:n}){return e.jsx("div",{className:a.default.mediaFeaturedInBlock,children:n.filter(r=>!!r.logo).map(({logo:r,url:t},u)=>{const d=t?"a":"div";return e.jsx(d,{href:t,target:"_blank",rel:"noopener noreferrer",className:a.default.mediaFeaturedInImageContainer,children:e.jsx("div",{className:a.default.mediaFeaturedInImage,style:{backgroundImage:`url(${r})`}})},`${t}_${u}`)})})}function f({quote:n}){return e.jsx("div",{className:a.default.quoteFeaturedInBlock,children:e.jsxs(l.Typography,{as:"p",defaultVariant:"headingSm",mobileVariant:"headingXxs",className:a.default.quoteFeaturedInText,children:["“",n,"”"]})})}function p({label:n,content:r}){return e.jsxs("section",{className:a.default.container,children:[e.jsx("p",{className:s.cn(a.default.title,a.default.customTitle),children:"(Featured In)"}),e.jsx(l.Typography,{as:"p",defaultVariant:"displayMd",className:s.cn(a.default.title,a.default.defaultTitle),children:"(Featured In)"}),e.jsx(l.Typography,{as:"p",defaultVariant:"labelMd",mobileVariant:"labelSm",emphasis:!0,className:a.default.label,children:n}),e.jsx(i.InfiniteScroll,{items:r,contentClassName:a.default.content,itemClassName:a.default.item,rootClassName:a.default.scrollRoot,renderItem:t=>e.jsxs(o.Fragment,{children:[t.type==="media"&&e.jsx(m,{media:t.media}),t.type==="quote"&&e.jsx(f,{quote:t.quote}),t.type==="cta"&&e.jsx(c.CtaFeaturedIn,{button_label:t.button_label})]},t.type)})]})}exports.FeaturedIn=p;
@@ -1,24 +1,25 @@
1
- import { jsxs as l, jsx as a } from "react/jsx-runtime";
1
+ import { jsxs as l, jsx as t } from "react/jsx-runtime";
2
2
  import { Fragment as d } from "react";
3
- import { InfiniteScroll as c } from "../../components/InfiniteScroll/InfiniteScroll.es.js";
3
+ import { InfiniteScroll as s } from "../../components/InfiniteScroll/InfiniteScroll.es.js";
4
4
  import { Typography as o } from "../../components/Typography/Typography.es.js";
5
5
  import { cn as i } from "../../utils/cn/cn.es.js";
6
6
  import e from "./featuredIn.module.css.es.js";
7
- function m({ media: r }) {
8
- return /* @__PURE__ */ a("div", { className: e.mediaFeaturedInBlock, children: r.filter((n) => !!n.logo).map(({ logo: n, url: t }, s) => /* @__PURE__ */ a(
9
- t ? "a" : "div",
7
+ import { CtaFeaturedIn as c } from "./components/CtaFeaturedIn.es.js";
8
+ function u({ media: r }) {
9
+ return /* @__PURE__ */ t("div", { className: e.mediaFeaturedInBlock, children: r.filter((n) => !!n.logo).map(({ logo: n, url: a }, m) => /* @__PURE__ */ t(
10
+ a ? "a" : "div",
10
11
  {
11
- href: t,
12
+ href: a,
12
13
  target: "_blank",
13
14
  rel: "noopener noreferrer",
14
15
  className: e.mediaFeaturedInImageContainer,
15
- children: /* @__PURE__ */ a("div", { className: e.mediaFeaturedInImage, style: { backgroundImage: `url(${n})` } })
16
+ children: /* @__PURE__ */ t("div", { className: e.mediaFeaturedInImage, style: { backgroundImage: `url(${n})` } })
16
17
  },
17
- `${t}_${s}`
18
+ `${a}_${m}`
18
19
  )) });
19
20
  }
20
- function u({ quote: r }) {
21
- return /* @__PURE__ */ a("div", { className: e.quoteFeaturedInBlock, children: /* @__PURE__ */ l(
21
+ function p({ quote: r }) {
22
+ return /* @__PURE__ */ t("div", { className: e.quoteFeaturedInBlock, children: /* @__PURE__ */ l(
22
23
  o,
23
24
  {
24
25
  as: "p",
@@ -33,37 +34,27 @@ function u({ quote: r }) {
33
34
  }
34
35
  ) });
35
36
  }
36
- function p({ button_label: r }) {
37
- return /* @__PURE__ */ a(
38
- "a",
39
- {
40
- href: "https://app.gethealthspan.com/#/product/signup/6896e50bc0af7d4d26738948",
41
- className: e.ctaFeaturedIn,
42
- children: /* @__PURE__ */ a("span", { className: e.ctaFeaturedInText, children: r })
43
- }
44
- );
45
- }
46
- function y({ label: r, content: n }) {
37
+ function q({ label: r, content: n }) {
47
38
  return /* @__PURE__ */ l("section", { className: e.container, children: [
48
- /* @__PURE__ */ a("p", { className: i(e.title, e.customTitle), children: "(Featured In)" }),
49
- /* @__PURE__ */ a(o, { as: "p", defaultVariant: "displayMd", className: i(e.title, e.defaultTitle), children: "(Featured In)" }),
50
- /* @__PURE__ */ a(o, { as: "p", defaultVariant: "labelMd", mobileVariant: "labelSm", emphasis: !0, className: e.label, children: r }),
51
- /* @__PURE__ */ a(
52
- c,
39
+ /* @__PURE__ */ t("p", { className: i(e.title, e.customTitle), children: "(Featured In)" }),
40
+ /* @__PURE__ */ t(o, { as: "p", defaultVariant: "displayMd", className: i(e.title, e.defaultTitle), children: "(Featured In)" }),
41
+ /* @__PURE__ */ t(o, { as: "p", defaultVariant: "labelMd", mobileVariant: "labelSm", emphasis: !0, className: e.label, children: r }),
42
+ /* @__PURE__ */ t(
43
+ s,
53
44
  {
54
45
  items: n,
55
46
  contentClassName: e.content,
56
47
  itemClassName: e.item,
57
48
  rootClassName: e.scrollRoot,
58
- renderItem: (t) => /* @__PURE__ */ l(d, { children: [
59
- t.type === "media" && /* @__PURE__ */ a(m, { media: t.media }),
60
- t.type === "quote" && /* @__PURE__ */ a(u, { quote: t.quote }),
61
- t.type === "cta" && /* @__PURE__ */ a(p, { button_label: t.button_label })
62
- ] }, t.type)
49
+ renderItem: (a) => /* @__PURE__ */ l(d, { children: [
50
+ a.type === "media" && /* @__PURE__ */ t(u, { media: a.media }),
51
+ a.type === "quote" && /* @__PURE__ */ t(p, { quote: a.quote }),
52
+ a.type === "cta" && /* @__PURE__ */ t(c, { button_label: a.button_label })
53
+ ] }, a.type)
63
54
  }
64
55
  )
65
56
  ] });
66
57
  }
67
58
  export {
68
- y as FeaturedIn
59
+ q as FeaturedIn
69
60
  };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),a=require("../../../types/analytics/analytics.cjs.js"),c=require("../featuredIn.module.css.cjs.js");function s({button_label:r}){const e="https://app.gethealthspan.com/#/product/signup/6896e50bc0af7d4d26738948",i=()=>{var t;(t=window.eventBus)==null||t.emit("analytics",{event:a.EAnalyticsEvent.ctaClicked,type:a.EAnalyticsEventType.interaction,component:"FeaturedIn",element:"primary_button",payload:{link:e}})};return n.jsx("a",{href:e,onClick:i,className:c.default.ctaFeaturedIn,children:n.jsx("span",{className:c.default.ctaFeaturedInText,children:r})})}exports.CtaFeaturedIn=s;
@@ -0,0 +1,5 @@
1
+ type CtaFeaturedInProps = {
2
+ button_label: string;
3
+ };
4
+ export declare function CtaFeaturedIn({ button_label }: CtaFeaturedInProps): import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,22 @@
1
+ "use client";
2
+ import { jsx as n } from "react/jsx-runtime";
3
+ import { EAnalyticsEventType as i, EAnalyticsEvent as o } from "../../../types/analytics/analytics.es.js";
4
+ import a from "../featuredIn.module.css.es.js";
5
+ function d({ button_label: c }) {
6
+ const t = "https://app.gethealthspan.com/#/product/signup/6896e50bc0af7d4d26738948";
7
+ return /* @__PURE__ */ n("a", { href: t, onClick: () => {
8
+ var e;
9
+ (e = window.eventBus) == null || e.emit("analytics", {
10
+ event: o.ctaClicked,
11
+ type: i.interaction,
12
+ component: "FeaturedIn",
13
+ element: "primary_button",
14
+ payload: {
15
+ link: t
16
+ }
17
+ });
18
+ }, className: a.ctaFeaturedIn, children: /* @__PURE__ */ n("span", { className: a.ctaFeaturedInText, children: c }) });
19
+ }
20
+ export {
21
+ d as CtaFeaturedIn
22
+ };
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("../../components/Button/Button.cjs.js"),o=require("../../components/ProgressButton/ProgressButton.cjs.js"),u=require("../../components/Typography/Typography.cjs.js"),c=require("./components/Content/Content.cjs.js"),t=require("./howItWorks.module.css.cjs.js"),h=require("../../utils/useSwiper/useSwiper.cjs.js"),p=({title:l,getStartedLink:i,items:d,colorScheme:n="light"})=>{const s=h.useSwiper(),r=n==="dark"?"muted-invert":"muted";return e.jsxs("section",{className:t.default.root,"data-color-scheme":n,children:[e.jsxs("div",{className:t.default.headerContainer,children:[e.jsx(u.Typography,{as:"h2",defaultVariant:"displayMd",mobileVariant:"headingXl",children:l}),i&&e.jsx("div",{className:t.default.desktop,children:e.jsx(a.Button,{as:"a",href:i,variant:r,size:"lg",children:"Get started"})}),i&&e.jsx("div",{className:t.default.mobile,children:e.jsx(a.Button,{as:"a",href:i,variant:r,size:"sm",children:"Get started"})}),!i&&e.jsx("div",{className:t.default.navigation,children:e.jsx(o.ProgressButton,{invert:n==="dark",left:{disabled:s.isBeginning,onClick:s.handlePrevClick},right:{disabled:s.isEnd,onClick:s.handleNextClick}})})]}),e.jsx(c.Content,{items:d,colorScheme:n,swiper:s,showBottomNav:!!i}),!i&&e.jsx("div",{className:t.default.mobileNavigation,children:e.jsx(o.ProgressButton,{invert:n==="dark",left:{disabled:s.isBeginning,onClick:s.handlePrevClick},right:{disabled:s.isEnd,onClick:s.handleNextClick}})})]})};exports.HowItWorks=p;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("../../components/Button/Button.cjs.js"),c=require("../../components/ProgressButton/ProgressButton.cjs.js"),p=require("../../components/Typography/Typography.cjs.js"),v=require("./components/Content/Content.cjs.js"),t=require("./howItWorks.module.css.cjs.js"),y=require("../../utils/useSwiper/useSwiper.cjs.js"),d=require("../../types/analytics/analytics.cjs.js"),m=({title:u,getStartedLink:n,items:h,colorScheme:i="light"})=>{const s=y.useSwiper(),a=i==="dark"?"muted-invert":"muted",o=C=>{var r;(r=window.eventBus)==null||r.emit("analytics",{event:d.EAnalyticsEvent.ctaClicked,type:d.EAnalyticsEventType.interaction,component:"HowItWorks",payload:{link:n}})};return e.jsxs("section",{className:t.default.root,"data-color-scheme":i,children:[e.jsxs("div",{className:t.default.headerContainer,children:[e.jsx(p.Typography,{as:"h2",defaultVariant:"displayMd",mobileVariant:"headingXl",children:u}),n&&e.jsx("div",{className:t.default.desktop,children:e.jsx(l.Button,{as:"a",href:n,variant:a,size:"lg",onClick:o,children:"Get started"})}),n&&e.jsx("div",{className:t.default.mobile,children:e.jsx(l.Button,{as:"a",href:n,variant:a,size:"sm",onClick:o,children:"Get started"})}),!n&&e.jsx("div",{className:t.default.navigation,children:e.jsx(c.ProgressButton,{invert:i==="dark",left:{disabled:s.isBeginning,onClick:s.handlePrevClick},right:{disabled:s.isEnd,onClick:s.handleNextClick}})})]}),e.jsx(v.Content,{items:h,colorScheme:i,swiper:s,showBottomNav:!!n}),!n&&e.jsx("div",{className:t.default.mobileNavigation,children:e.jsx(c.ProgressButton,{invert:i==="dark",left:{disabled:s.isBeginning,onClick:s.handlePrevClick},right:{disabled:s.isEnd,onClick:s.handleNextClick}})})]})};exports.HowItWorks=m;