@zenpatient-org/healthspan-marketing-ui 0.1.169 → 0.1.170
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.
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.d.ts +3 -0
- package/dist/components/Button/Button.es.js +34 -28
- package/dist/components/Callback/Callback.d.ts +1 -0
- package/dist/components/Pricing/Pricing.cjs.js +1 -1
- package/dist/components/Pricing/Pricing.d.ts +1 -1
- package/dist/components/Pricing/Pricing.es.js +51 -37
- package/dist/components/Pricing/types.d.ts +5 -1
- package/dist/components/ProductGallery/ProductGallery.cjs.js +1 -1
- package/dist/components/ProductGallery/ProductGallery.es.js +4 -3
- package/dist/components/ProductGalleryCard/ProductGalleryCard.cjs.js +1 -1
- package/dist/components/ProductGalleryCard/ProductGalleryCard.d.ts +1 -1
- package/dist/components/ProductGalleryCard/ProductGalleryCard.es.js +51 -22
- package/dist/components/ProductGalleryCard/types.d.ts +1 -0
- package/dist/components/ProductListing/ProductListing.cjs.js +1 -1
- package/dist/components/ProductListing/ProductListing.d.ts +3 -1
- package/dist/components/ProductListing/ProductListing.es.js +48 -25
- package/dist/modules/CallToAction/CallToAction.cjs.js +1 -1
- package/dist/modules/CallToAction/CallToAction.es.js +86 -73
- package/dist/modules/Callback/Callback.cjs.js +1 -1
- package/dist/modules/Callback/Callback.d.ts +3 -1
- package/dist/modules/Callback/Callback.es.js +46 -24
- package/dist/modules/Compare/Compare.cjs.js +1 -1
- package/dist/modules/Compare/Compare.es.js +12 -12
- package/dist/modules/FeaturedIn/FeaturedIn.cjs.js +1 -1
- package/dist/modules/FeaturedIn/FeaturedIn.es.js +23 -32
- package/dist/modules/FeaturedIn/components/CtaFeaturedIn.cjs.js +1 -0
- package/dist/modules/FeaturedIn/components/CtaFeaturedIn.d.ts +5 -0
- package/dist/modules/FeaturedIn/components/CtaFeaturedIn.es.js +22 -0
- package/dist/modules/HowItWorks/HowItWorks.cjs.js +1 -1
- package/dist/modules/HowItWorks/HowItWorks.es.js +61 -30
- package/dist/modules/IndividualProductCard/IndividualProductCard.cjs.js +1 -1
- package/dist/modules/IndividualProductCard/IndividualProductCard.d.ts +8 -3
- package/dist/modules/IndividualProductCard/IndividualProductCard.es.js +98 -67
- package/dist/modules/ProgramsDetailsHero/ProgramsDetailsHero.cjs.js +1 -1
- package/dist/modules/ProgramsDetailsHero/ProgramsDetailsHero.es.js +38 -26
- package/dist/modules/YourProtocol/YourProtocol.cjs.js +1 -1
- package/dist/modules/YourProtocol/YourProtocol.es.js +48 -35
- package/dist/pageComponents/HomepageHero/HomepageHero.cjs.js +1 -1
- package/dist/pageComponents/HomepageHero/HomepageHero.es.js +19 -28
- package/dist/pageComponents/LabsHero/LabsHero.cjs.js +1 -1
- package/dist/pageComponents/LabsHero/LabsHero.es.js +54 -43
- package/dist/pageComponents/PersonalizedProtocolHero/PersonalizedProtocolHero.cjs.js +1 -1
- package/dist/pageComponents/PersonalizedProtocolHero/PersonalizedProtocolHero.es.js +73 -60
- package/dist/types/analytics/analytics.cjs.js +1 -1
- package/dist/types/analytics/analytics.es.js +3 -3
- package/dist/types/analytics.d.ts +26 -3
- 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
|
|
5
|
-
import { Typography as
|
|
6
|
-
import { Icon as
|
|
7
|
-
import { EIconName as
|
|
8
|
-
import { HighlightedTitle as
|
|
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
|
|
11
|
-
import { ScrollTrigger as
|
|
12
|
-
import
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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:
|
|
24
|
+
buttonLink: m,
|
|
24
25
|
backgroundImage: j
|
|
25
26
|
}) => {
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
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(
|
|
51
|
+
a.set($, {
|
|
40
52
|
clipPath: "inset(0% 0% 100% 0%)",
|
|
41
53
|
yPercent: 100
|
|
42
54
|
});
|
|
43
|
-
const
|
|
55
|
+
const f = a.to(
|
|
44
56
|
[
|
|
45
|
-
|
|
57
|
+
p,
|
|
46
58
|
y.current,
|
|
47
|
-
|
|
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
|
-
|
|
69
|
-
trigger:
|
|
80
|
+
_.create({
|
|
81
|
+
trigger: u.current,
|
|
70
82
|
start: "top 80%",
|
|
71
83
|
end: "+=500",
|
|
72
|
-
onEnter: () =>
|
|
73
|
-
onEnterBack: () =>
|
|
74
|
-
onLeaveBack: () =>
|
|
75
|
-
}),
|
|
76
|
-
|
|
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 = (
|
|
90
|
+
const t = (M = c.current) == null ? void 0 : M.querySelector("ul");
|
|
79
91
|
if (!t) return;
|
|
80
|
-
const
|
|
81
|
-
let i = null,
|
|
82
|
-
const
|
|
83
|
-
i && i.kill(), t.innerHTML =
|
|
84
|
-
const
|
|
85
|
-
if (
|
|
86
|
-
const R =
|
|
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(
|
|
89
|
-
const
|
|
90
|
-
|
|
91
|
-
t.appendChild(
|
|
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
|
|
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
|
-
}),
|
|
112
|
+
}), B.forEach((I, K) => {
|
|
101
113
|
i && i.to({}, { duration: 2 }).to(t, {
|
|
102
|
-
y: `-${(
|
|
114
|
+
y: `-${(K + 1) * R}`,
|
|
103
115
|
duration: 0.5,
|
|
104
116
|
ease: "power1.inOut"
|
|
105
117
|
});
|
|
106
|
-
}),
|
|
107
|
-
},
|
|
108
|
-
return
|
|
109
|
-
var
|
|
110
|
-
window.removeEventListener("resize",
|
|
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
|
-
}, [
|
|
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
|
-
|
|
129
|
+
w,
|
|
118
130
|
{
|
|
119
131
|
defaultVariant: "displayXl",
|
|
120
132
|
mobileVariant: "displayMd",
|
|
121
133
|
as: "div",
|
|
122
134
|
className: r.title,
|
|
123
|
-
title:
|
|
135
|
+
title: x
|
|
124
136
|
}
|
|
125
137
|
) }),
|
|
126
|
-
/* @__PURE__ */ e("div", { ref:
|
|
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
|
-
|
|
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:
|
|
139
|
-
|
|
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:
|
|
157
|
+
title: q
|
|
146
158
|
}
|
|
147
159
|
) }),
|
|
148
|
-
/* @__PURE__ */ e("div", { ref:
|
|
149
|
-
|
|
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(
|
|
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
|
-
|
|
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:
|
|
175
|
-
|
|
186
|
+
/* @__PURE__ */ e("div", { ref: v, className: r.buttonWrapper, children: m && /* @__PURE__ */ e(
|
|
187
|
+
J,
|
|
176
188
|
{
|
|
177
|
-
as:
|
|
178
|
-
href:
|
|
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(
|
|
198
|
+
/* @__PURE__ */ e(P, { name: W.CIRCLE_CHECK_FILL, className: r.checkIcon }),
|
|
186
199
|
/* @__PURE__ */ e(
|
|
187
|
-
|
|
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
|
-
|
|
215
|
+
pe as CallToAction
|
|
203
216
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
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
|
|
2
|
-
import { Callback as
|
|
3
|
-
import { Icon as
|
|
4
|
-
import { EIconName as
|
|
5
|
-
import { Typography as
|
|
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
|
|
8
|
+
const u = [
|
|
8
9
|
{
|
|
9
|
-
icon:
|
|
10
|
+
icon: n.HEART,
|
|
10
11
|
description: "No hidden fees"
|
|
11
12
|
},
|
|
12
13
|
{
|
|
13
|
-
icon:
|
|
14
|
+
icon: n.PROTOCOLS,
|
|
14
15
|
description: "Personalized Protocols"
|
|
15
16
|
},
|
|
16
17
|
{
|
|
17
|
-
icon:
|
|
18
|
+
icon: n.PACKAGE,
|
|
18
19
|
description: "Free Shipping"
|
|
19
20
|
},
|
|
20
21
|
{
|
|
21
|
-
icon:
|
|
22
|
+
icon: n.MESSAGE,
|
|
22
23
|
description: "Doctor & Clinical Team"
|
|
23
24
|
}
|
|
24
25
|
];
|
|
25
|
-
function
|
|
26
|
-
|
|
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
|
-
|
|
49
|
+
h,
|
|
29
50
|
{
|
|
30
|
-
title:
|
|
31
|
-
description:
|
|
51
|
+
title: a,
|
|
52
|
+
description: l,
|
|
32
53
|
price: s ?? "",
|
|
33
|
-
image:
|
|
54
|
+
image: d,
|
|
34
55
|
button: {
|
|
35
|
-
href:
|
|
36
|
-
as: "a"
|
|
56
|
+
href: e,
|
|
57
|
+
as: "a",
|
|
58
|
+
analyticsProps: E
|
|
37
59
|
},
|
|
38
|
-
size:
|
|
60
|
+
size: p,
|
|
39
61
|
shape: m
|
|
40
62
|
}
|
|
41
63
|
),
|
|
42
|
-
/* @__PURE__ */ o("div", { className: i.icons, children:
|
|
43
|
-
/* @__PURE__ */ o(
|
|
44
|
-
/* @__PURE__ */ o(
|
|
45
|
-
] },
|
|
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
|
-
|
|
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"),
|
|
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
|
|
2
|
-
import
|
|
3
|
-
import { Typography as
|
|
4
|
-
import { HighlightedTitle as
|
|
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:
|
|
7
|
-
/* @__PURE__ */
|
|
8
|
-
a && /* @__PURE__ */ e(
|
|
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
|
-
|
|
10
|
+
s,
|
|
11
11
|
{
|
|
12
12
|
title: l,
|
|
13
13
|
defaultVariant: "displayMd",
|
|
14
14
|
mobileVariant: "headingXl",
|
|
15
|
-
className:
|
|
15
|
+
className: r.title
|
|
16
16
|
}
|
|
17
17
|
)
|
|
18
18
|
] }),
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */ e(t, { ...
|
|
21
|
-
/* @__PURE__ */ e(t, { ...
|
|
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 {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("react"),
|
|
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
|
|
1
|
+
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { Fragment as d } from "react";
|
|
3
|
-
import { InfiniteScroll as
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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:
|
|
12
|
+
href: a,
|
|
12
13
|
target: "_blank",
|
|
13
14
|
rel: "noopener noreferrer",
|
|
14
15
|
className: e.mediaFeaturedInImageContainer,
|
|
15
|
-
children: /* @__PURE__ */
|
|
16
|
+
children: /* @__PURE__ */ t("div", { className: e.mediaFeaturedInImage, style: { backgroundImage: `url(${n})` } })
|
|
16
17
|
},
|
|
17
|
-
`${
|
|
18
|
+
`${a}_${m}`
|
|
18
19
|
)) });
|
|
19
20
|
}
|
|
20
|
-
function
|
|
21
|
-
return /* @__PURE__ */
|
|
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
|
|
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__ */
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
|
|
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: (
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
] },
|
|
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
|
-
|
|
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,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"),
|
|
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;
|