@zenpatient-org/healthspan-marketing-ui 0.1.168 → 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/healthspan-marketing-ui.css +1 -1
- 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/Claims/Claims.cjs.js +1 -0
- package/dist/modules/Claims/Claims.es.js +35 -0
- package/dist/modules/Claims/claims.module.css.cjs.js +1 -0
- package/dist/modules/Claims/claims.module.css.es.js +19 -0
- 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/ImageWithBenefits/ImageWithBenefits.cjs.js +1 -0
- package/dist/modules/ImageWithBenefits/ImageWithBenefits.d.ts +25 -0
- package/dist/modules/ImageWithBenefits/ImageWithBenefits.es.js +52 -0
- package/dist/modules/ImageWithBenefits/imageWithBenefits.module.css.cjs.js +1 -0
- package/dist/modules/ImageWithBenefits/imageWithBenefits.module.css.es.js +27 -0
- package/dist/modules/ImageWithBenefits/index.d.ts +1 -0
- 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 +11 -1
|
@@ -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"),r=require("react"),J=require("../../components/Button/Button.cjs.js"),m=require("../../components/Typography/Typography.cjs.js"),I=require("../../components/Icon/Icon.cjs.js"),k=require("../../components/Icon/constants.cjs.js"),j=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),a=require("../../node_modules/gsap/index.cjs.js"),Q=require("../../node_modules/@gsap/react/src/index.cjs.js"),M=require("../../node_modules/gsap/ScrollTrigger.cjs.js"),U=require("../../utils/debounce.cjs.js"),t=require("./callToAction.module.css.cjs.js"),L=require("../../types/analytics/analytics.cjs.js");a.gsap.registerPlugin(M.ScrollTrigger);const Y=({subtitle:B,titleTop:P,scrollableLabels:R,titleBottom:W,description:$,hsaText:O,buttonText:X,buttonLink:u,backgroundImage:z})=>{const d=r.useRef(null),c=r.useRef(null),T=r.useRef(null),h=r.useRef(null),g=r.useRef(null),N=r.useRef(null),y=r.useRef(null),b=r.useRef(null),v=r.useRef(null),F=()=>{var n;(n=window.eventBus)==null||n.emit("analytics",{event:L.EAnalyticsEvent.ctaClicked,type:L.EAnalyticsEventType.interaction,component:"CallToAction",element:"primary_button",payload:{link:u}})};return Q.useGSAP(()=>{var C,H,S;const n=d.current&&d.current.getBoundingClientRect().top<window.innerHeight*.8,p=(C=T.current)==null?void 0:C.querySelector("p"),q=(H=N.current)==null?void 0:H.querySelector("p"),D=[p,h.current,c.current,g.current,q,y.current,b.current,v.current].filter(Boolean);a.gsap.set(D,{clipPath:"inset(0% 0% 100% 0%)",yPercent:100});const f=a.gsap.to([p,h.current,c.current,g.current,q,y.current,b.current,v.current],{clipPath:"inset(0% 0% 0% 0%)",yPercent:0,duration:1,ease:"power2.out",delay:.3,stagger:{amount:1,from:"start"},paused:!0});M.ScrollTrigger.create({trigger:d.current,start:"top 80%",end:"+=500",onEnter:()=>f.play(),onEnterBack:()=>f.play(),onLeaveBack:()=>f.reverse()}),n&&a.gsap.delayedCall(.1,()=>{f.play()});const l=(S=c.current)==null?void 0:S.querySelector("ul");if(!l)return;const _=l.innerHTML;let s=null,w=!0;const E=()=>{s&&s.kill(),l.innerHTML=_,a.gsap.set(l,{y:0});const i=Array.from(l.querySelectorAll("li"));if(i.length<=1)return;const x=i[0].clientHeight;if(!x)return;a.gsap.set(c.current,{height:()=>x,overflow:"hidden"});const V=Array.from(i);V.forEach(A=>{l.appendChild(A.cloneNode(!0))});const G=w&&!n?.3:0;s=a.gsap.timeline({repeat:-1,delay:G,onRepeat:()=>{a.gsap.set(l,{y:0})}}),V.forEach((A,K)=>{s&&s.to({},{duration:2}).to(l,{y:`-${(K+1)*x}`,duration:.5,ease:"power1.inOut"})}),w=!1},o=U.default(E,200);return E(),window.addEventListener("resize",o),()=>{var i;window.removeEventListener("resize",o),(i=o.kill)==null||i.call(o),s&&s.kill(),l&&(l.innerHTML=_,a.gsap.set(l,{y:0}))}},[R]),e.jsxs("section",{ref:d,className:t.default.root,children:[e.jsx("div",{className:t.default.backgroundImage,style:{backgroundImage:`url(${z})`}}),e.jsxs("div",{className:t.default.container,children:[e.jsx("div",{className:t.default.leftContent,children:e.jsxs("div",{className:t.default.content,children:[e.jsx("div",{ref:h,children:e.jsx(j.HighlightedTitle,{defaultVariant:"displayXl",mobileVariant:"displayMd",as:"div",className:t.default.title,title:P})}),e.jsx("div",{ref:c,className:t.default.scrollableLabelsWrapper,children:e.jsx("ul",{className:t.default.scrollableLabels,children:R.map((n,p)=>e.jsx("li",{className:t.default.scrollableLabel,children:e.jsx(m.Typography,{defaultVariant:"displayXl",mobileVariant:"displayMd",as:"span",children:n})},p))})}),e.jsx("div",{ref:g,children:e.jsx(j.HighlightedTitle,{defaultVariant:"displayXl",mobileVariant:"displayMd",as:"div",className:t.default.title,title:W})})]})}),e.jsx("div",{ref:T,className:t.default.subtitleWrapper,children:e.jsx(j.HighlightedTitle,{defaultVariant:"labelMd",mobileVariant:"labelSm",as:"div",className:t.default.subtitle,title:B})}),e.jsx("div",{ref:N,className:t.default.arrowWrapper,children:e.jsxs(m.Typography,{defaultVariant:"labelMd",mobileVariant:"labelXs",emphasis:!0,className:t.default.arrow,as:"p",children:["(",e.jsx(I.Icon,{name:k.EIconName.ARROW_FORWARD}),")"]})}),e.jsx("div",{className:t.default.rightContent,children:e.jsxs("div",{className:t.default.descriptionWrapper,children:[e.jsx("div",{ref:y,children:e.jsx(m.Typography,{as:"p",defaultVariant:"bodyLg",mobileVariant:"bodyMd",className:t.default.description,children:$})}),e.jsx("div",{ref:b,className:t.default.buttonWrapper,children:u&&e.jsx(J.Button,{as:u?"a":"button",href:u,variant:"secondary",size:"lg",onClick:F,children:X})}),e.jsxs("div",{ref:v,className:t.default.hsaEligible,children:[e.jsx(I.Icon,{name:k.EIconName.CIRCLE_CHECK_FILL,className:t.default.checkIcon}),e.jsx(m.Typography,{as:"p",defaultVariant:"bodySm",mobileVariant:"bodySm",className:t.default.hsaText,children:O})]})]})})]})]})};exports.CallToAction=Y;
|
|
@@ -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
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("../../components/Typography/Typography.cjs.js"),u=require("../../components/ClaimBlock/ClaimBlock.cjs.js"),c=require("../../components/Button/Button.cjs.js"),a=require("./claims.module.css.cjs.js");function o({text:l,button:s,claimBlocks:r}){return e.jsx("section",{className:a.default.root,children:e.jsxs("div",{className:a.default.content,children:[(l||s)&&e.jsxs("div",{className:a.default.container,children:[l?e.jsx(n.Typography,{className:a.default.text,as:"h2",defaultVariant:"preambleLg",mobileVariant:"preambleSm",children:l}):e.jsx("div",{}),s&&e.jsx("div",{className:a.default.buttonContainer,children:e.jsx(c.Button,{as:"a",href:s.link,variant:"muted",size:"lg",children:s.text})})]}),e.jsx("div",{className:a.default.claimContainer,children:r.slice(0,4).map((i,t)=>e.jsx("div",{className:a.default.claimBlock,children:e.jsx(u.ClaimBlock,{value:i.value,subtitle:i.subtitle,description:i.description,valuePrefix:i.valuePrefix,valueSuffix:i.valueSuffix})},t))})]})})}exports.Claims=o;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as m } from "../../components/Typography/Typography.es.js";
|
|
3
|
+
import { ClaimBlock as o } from "../../components/ClaimBlock/ClaimBlock.es.js";
|
|
4
|
+
import { Button as c } from "../../components/Button/Button.es.js";
|
|
5
|
+
import i from "./claims.module.css.es.js";
|
|
6
|
+
function h({ text: l, button: r, claimBlocks: n }) {
|
|
7
|
+
return /* @__PURE__ */ e("section", { className: i.root, children: /* @__PURE__ */ s("div", { className: i.content, children: [
|
|
8
|
+
(l || r) && /* @__PURE__ */ s("div", { className: i.container, children: [
|
|
9
|
+
l ? /* @__PURE__ */ e(
|
|
10
|
+
m,
|
|
11
|
+
{
|
|
12
|
+
className: i.text,
|
|
13
|
+
as: "h2",
|
|
14
|
+
defaultVariant: "preambleLg",
|
|
15
|
+
mobileVariant: "preambleSm",
|
|
16
|
+
children: l
|
|
17
|
+
}
|
|
18
|
+
) : /* @__PURE__ */ e("div", {}),
|
|
19
|
+
r && /* @__PURE__ */ e("div", { className: i.buttonContainer, children: /* @__PURE__ */ e(c, { as: "a", href: r.link, variant: "muted", size: "lg", children: r.text }) })
|
|
20
|
+
] }),
|
|
21
|
+
/* @__PURE__ */ e("div", { className: i.claimContainer, children: n.slice(0, 4).map((a, t) => /* @__PURE__ */ e("div", { className: i.claimBlock, children: /* @__PURE__ */ e(
|
|
22
|
+
o,
|
|
23
|
+
{
|
|
24
|
+
value: a.value,
|
|
25
|
+
subtitle: a.subtitle,
|
|
26
|
+
description: a.description,
|
|
27
|
+
valuePrefix: a.valuePrefix,
|
|
28
|
+
valueSuffix: a.valueSuffix
|
|
29
|
+
}
|
|
30
|
+
) }, t)) })
|
|
31
|
+
] }) });
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
h as Claims
|
|
35
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="claims-module__root___G0vMQ",o="claims-module__content___wtAp3",n="claims-module__container___5j2Jv",e="claims-module__text___uHrdi",c="claims-module__buttonContainer___d-veq",_="claims-module__claimContainer___MQm5U",l="claims-module__claimBlock___LCrIN",i={root:t,content:o,container:n,text:e,buttonContainer:c,claimContainer:_,claimBlock:l};exports.buttonContainer=c;exports.claimBlock=l;exports.claimContainer=_;exports.container=n;exports.content=o;exports.default=i;exports.root=t;exports.text=e;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const t = "claims-module__root___G0vMQ", o = "claims-module__content___wtAp3", n = "claims-module__container___5j2Jv", _ = "claims-module__text___uHrdi", c = "claims-module__buttonContainer___d-veq", e = "claims-module__claimContainer___MQm5U", l = "claims-module__claimBlock___LCrIN", a = {
|
|
2
|
+
root: t,
|
|
3
|
+
content: o,
|
|
4
|
+
container: n,
|
|
5
|
+
text: _,
|
|
6
|
+
buttonContainer: c,
|
|
7
|
+
claimContainer: e,
|
|
8
|
+
claimBlock: l
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
c as buttonContainer,
|
|
12
|
+
l as claimBlock,
|
|
13
|
+
e as claimContainer,
|
|
14
|
+
n as container,
|
|
15
|
+
o as content,
|
|
16
|
+
a as default,
|
|
17
|
+
t as root,
|
|
18
|
+
_ as text
|
|
19
|
+
};
|
|
@@ -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;
|