@zenpatient-org/healthspan-marketing-ui 0.2.21 → 0.2.23
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/ComplexImageCarousel/useComplexImageCarousel.d.ts +6 -6
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/RatingPreview/RatingPreview.cjs.js +1 -1
- package/dist/components/RatingPreview/RatingPreview.d.ts +1 -1
- package/dist/components/RatingPreview/RatingPreview.es.js +24 -22
- package/dist/components/WistiaEmbed/WistiaEmbed.cjs.js +1 -0
- package/dist/components/WistiaEmbed/WistiaEmbed.d.ts +5 -0
- package/dist/components/WistiaEmbed/WistiaEmbed.es.js +8 -0
- package/dist/components/WistiaEmbed/wistiaEmbed.module.css +6 -0
- package/dist/components/YouTubeEmbed/YouTubeEmbed.cjs.js +1 -0
- package/dist/components/YouTubeEmbed/YouTubeEmbed.d.ts +6 -0
- package/dist/components/YouTubeEmbed/YouTubeEmbed.es.js +16 -0
- package/dist/components/YouTubeEmbed/youtubeEmbed.module.css +15 -0
- package/dist/modules/ContentHighlight/ContentHighlight.cjs.js +1 -1
- package/dist/modules/ContentHighlight/ContentHighlight.d.ts +5 -3
- package/dist/modules/ContentHighlight/ContentHighlight.es.js +39 -33
- package/dist/modules/ContentHighlight/contentHighlight.module.css +15 -2
- package/dist/modules/IndividualProductCard/IndividualProductCard.cjs.js +1 -1
- package/dist/modules/IndividualProductCard/IndividualProductCard.es.js +36 -36
- package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/WistiaPlayer.cjs.js +1 -0
- package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/WistiaPlayer.es.js +30 -0
- package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/WistiaPlayerWrapper-KYHM7EWK.cjs.js +1 -0
- package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/WistiaPlayerWrapper-KYHM7EWK.es.js +64 -0
- package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/chunk-FSLSW5KG.cjs.js +21 -0
- package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/chunk-FSLSW5KG.es.js +59 -0
- package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/wistia-player-PKAEVX5L.cjs.js +52 -0
- package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/wistia-player-PKAEVX5L.es.js +10285 -0
- package/package.json +6 -5
|
@@ -4,12 +4,12 @@ export declare const useComplexImageCarousel: ({ images }: {
|
|
|
4
4
|
images: TAdvancedImageView[];
|
|
5
5
|
}) => {
|
|
6
6
|
MOBILE_BREAKPOINT: number;
|
|
7
|
-
containerRef:
|
|
8
|
-
carouselRef:
|
|
9
|
-
imageRefs:
|
|
10
|
-
descriptionRef:
|
|
11
|
-
descriptionItemRef:
|
|
12
|
-
progressButtonContainerRef:
|
|
7
|
+
containerRef: React.RefObject<HTMLDivElement>;
|
|
8
|
+
carouselRef: React.RefObject<HTMLDivElement>;
|
|
9
|
+
imageRefs: React.MutableRefObject<HTMLDivElement[]>;
|
|
10
|
+
descriptionRef: React.RefObject<HTMLDivElement>;
|
|
11
|
+
descriptionItemRef: React.RefObject<HTMLDivElement>;
|
|
12
|
+
progressButtonContainerRef: React.RefObject<HTMLDivElement>;
|
|
13
13
|
visible: TAdvancedImageView[];
|
|
14
14
|
cardSizes: string[];
|
|
15
15
|
handleCustomPrevClick: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),t=require("../../src/components/RatingPreview/ratingPreview.module.css"),n=require("../Typography/Typography.cjs.js"),c=require("../Icon/Icon.cjs.js"),l=require("../Icon/constants.cjs.js"),p=s=>{const e=Math.round(s*2)/2,a=[];for(let r=0;r<Math.floor(e);r++)a.push(o.jsx(c.Icon,{name:l.EIconName.STAR_FILL,className:t.starIcon},`full-${r}`));return e%1===.5&&a.push(o.jsx(c.Icon,{name:l.EIconName.STAR_HALF,className:t.starIcon},"half")),a},u=({rating:s,text:e})=>{if(!(s!=null&&s.stars)&&!e)return null;const a=!!(s!=null&&s.stars)&&!!e;return o.jsxs("div",{className:t.ratingPreview,children:[s!==void 0&&s.stars!==void 0&&o.jsxs(n.Typography,{as:"p",defaultVariant:"labelMd",children:[s.stars," ",p(s.stars)]}),a&&o.jsx(n.Typography,{as:"p",defaultVariant:"labelSm",children:"|"}),e&&o.jsx(n.Typography,{as:"p",defaultVariant:"labelSm",emphasis:!0,children:e})]})};exports.RatingPreview=u;exports.default=u;
|
|
@@ -5,5 +5,5 @@ export type TRatingPreviewProps = {
|
|
|
5
5
|
};
|
|
6
6
|
text?: string;
|
|
7
7
|
};
|
|
8
|
-
export declare const RatingPreview: ({ rating, text }: TRatingPreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const RatingPreview: ({ rating, text }: TRatingPreviewProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
9
9
|
export default RatingPreview;
|
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import t from "../../components/RatingPreview/ratingPreview.module.css";
|
|
3
3
|
import { Typography as l } from "../Typography/Typography.es.js";
|
|
4
|
-
import { Icon as
|
|
5
|
-
import { EIconName as
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
for (let
|
|
9
|
-
|
|
10
|
-
return
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
4
|
+
import { Icon as c } from "../Icon/Icon.es.js";
|
|
5
|
+
import { EIconName as d } from "../Icon/constants.es.js";
|
|
6
|
+
const f = (s) => {
|
|
7
|
+
const a = Math.round(s * 2) / 2, r = [];
|
|
8
|
+
for (let o = 0; o < Math.floor(a); o++)
|
|
9
|
+
r.push(/* @__PURE__ */ e(c, { name: d.STAR_FILL, className: t.starIcon }, `full-${o}`));
|
|
10
|
+
return a % 1 === 0.5 && r.push(/* @__PURE__ */ e(c, { name: d.STAR_HALF, className: t.starIcon }, "half")), r;
|
|
11
|
+
}, v = ({ rating: s, text: a }) => {
|
|
12
|
+
if (!(s != null && s.stars) && !a) return null;
|
|
13
|
+
const r = !!(s != null && s.stars) && !!a;
|
|
14
|
+
return /* @__PURE__ */ m("div", { className: t.ratingPreview, children: [
|
|
15
|
+
s !== void 0 && s.stars !== void 0 && /* @__PURE__ */ m(l, { as: "p", defaultVariant: "labelMd", children: [
|
|
16
|
+
s.stars,
|
|
17
|
+
" ",
|
|
18
|
+
f(s.stars)
|
|
19
|
+
] }),
|
|
20
|
+
r && /* @__PURE__ */ e(l, { as: "p", defaultVariant: "labelSm", children: "|" }),
|
|
21
|
+
a && /* @__PURE__ */ e(l, { as: "p", defaultVariant: "labelSm", emphasis: !0, children: a })
|
|
22
|
+
] });
|
|
23
|
+
};
|
|
22
24
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
v as RatingPreview,
|
|
26
|
+
v as default
|
|
25
27
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("../../src/components/WistiaEmbed/wistiaEmbed.module.css"),r=require("../../node_modules/@wistia/wistia-player-react/dist/mjs/WistiaPlayer.cjs.js"),n=require("../../utils/cn/cn.cjs.js"),c=({videoId:i,className:t})=>e.jsx("div",{className:n.cn(s.container,t),children:e.jsx(r.WistiaPlayer,{mediaId:i})});exports.WistiaEmbed=c;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import o from "../../components/WistiaEmbed/wistiaEmbed.module.css";
|
|
3
|
+
import { WistiaPlayer as t } from "../../node_modules/@wistia/wistia-player-react/dist/mjs/WistiaPlayer.es.js";
|
|
4
|
+
import { cn as e } from "../../utils/cn/cn.es.js";
|
|
5
|
+
const d = ({ videoId: i, className: m }) => /* @__PURE__ */ r("div", { className: e(o.container, m), children: /* @__PURE__ */ r(t, { mediaId: i }) });
|
|
6
|
+
export {
|
|
7
|
+
d as WistiaEmbed
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("../../src/components/YouTubeEmbed/youtubeEmbed.module.css"),s=require("../../utils/cn/cn.cjs.js"),u=({videoId:r,title:c,className:o})=>e.jsx("div",{className:s.cn(t.container,o),children:e.jsx("iframe",{src:`https://www.youtube.com/embed/${r}`,title:c||"Healthspan video",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:t.iframe})});exports.YouTubeEmbed=u;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import r from "../../components/YouTubeEmbed/youtubeEmbed.module.css";
|
|
3
|
+
import { cn as c } from "../../utils/cn/cn.es.js";
|
|
4
|
+
const s = ({ videoId: t, title: o, className: a }) => /* @__PURE__ */ e("div", { className: c(r.container, a), children: /* @__PURE__ */ e(
|
|
5
|
+
"iframe",
|
|
6
|
+
{
|
|
7
|
+
src: `https://www.youtube.com/embed/${t}`,
|
|
8
|
+
title: o || "Healthspan video",
|
|
9
|
+
allow: "accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",
|
|
10
|
+
allowFullScreen: !0,
|
|
11
|
+
className: r.iframe
|
|
12
|
+
}
|
|
13
|
+
) });
|
|
14
|
+
export {
|
|
15
|
+
s as YouTubeEmbed
|
|
16
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),s=require("../../src/modules/ContentHighlight/contentHighlight.module.css"),d=require("../../components/YouTubeEmbed/YouTubeEmbed.cjs.js"),o=require("../../components/WistiaEmbed/WistiaEmbed.cjs.js"),n=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),a=require("../../components/Typography/Typography.cjs.js"),c=require("../../components/Button/Button.cjs.js"),m=({label:r,title:t,content:e})=>{const l=e.type==="youtube"||e.type==="wistia";return i.jsx("section",{className:s.root,children:i.jsxs("div",{className:s.container,children:[i.jsx("div",{className:s.topContainer,children:i.jsx(n.HighlightedTitle,{title:t,label:r,as:"div",defaultVariant:"displayMd",className:s.title})}),i.jsxs("div",{className:s.card,children:[l&&i.jsx("div",{className:s.videoContainer,children:e.type==="youtube"?i.jsx(d.YouTubeEmbed,{videoId:e.videoId||"",className:s.video}):i.jsx(o.WistiaEmbed,{videoId:e.videoId||"",className:s.video})}),e.image&&i.jsx("img",{src:e.image,alt:e.title,className:s.image}),i.jsxs("div",{className:s.content,children:[i.jsx(a.Typography,{defaultVariant:"headingLg",mobileVariant:"headingSm",className:s.contentTitle,children:e.title}),e.description&&i.jsx(a.Typography,{defaultVariant:"bodySm",mobileVariant:"bodySm",className:s.description,children:e.description}),e.buttonLabel&&e.link&&i.jsx("div",{className:s.button,children:i.jsx(c.Button,{as:"a",href:e.link,target:"_blank",rel:"noopener noreferrer",size:"sm",children:e.buttonLabel})})]})]})]})})};exports.ContentHighlight=m;
|
|
@@ -6,9 +6,11 @@ export type ContentHighlightProps = {
|
|
|
6
6
|
content: {
|
|
7
7
|
title: string;
|
|
8
8
|
description?: string;
|
|
9
|
-
image
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
image?: string;
|
|
10
|
+
type: 'image' | 'youtube' | 'wistia';
|
|
11
|
+
videoId?: string;
|
|
12
|
+
buttonLabel?: string;
|
|
13
|
+
link?: string;
|
|
12
14
|
};
|
|
13
15
|
};
|
|
14
16
|
export declare const ContentHighlight: ({ label, title, content }: ContentHighlightProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,36 +1,42 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
1
|
+
import { jsx as a, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import e from "../../modules/ContentHighlight/contentHighlight.module.css";
|
|
3
|
+
import { YouTubeEmbed as o } from "../../components/YouTubeEmbed/YouTubeEmbed.es.js";
|
|
4
|
+
import { WistiaEmbed as t } from "../../components/WistiaEmbed/WistiaEmbed.es.js";
|
|
5
|
+
import { HighlightedTitle as c } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
|
|
6
|
+
import { Typography as s } from "../../components/Typography/Typography.es.js";
|
|
7
|
+
import { Button as p } from "../../components/Button/Button.es.js";
|
|
8
|
+
const f = ({ label: d, title: l, content: i }) => {
|
|
9
|
+
const m = i.type === "youtube" || i.type === "wistia";
|
|
10
|
+
return /* @__PURE__ */ a("section", { className: e.root, children: /* @__PURE__ */ r("div", { className: e.container, children: [
|
|
11
|
+
/* @__PURE__ */ a("div", { className: e.topContainer, children: /* @__PURE__ */ a(
|
|
12
|
+
c,
|
|
13
|
+
{
|
|
14
|
+
title: l,
|
|
15
|
+
label: d,
|
|
16
|
+
as: "div",
|
|
17
|
+
defaultVariant: "displayMd",
|
|
18
|
+
className: e.title
|
|
19
|
+
}
|
|
20
|
+
) }),
|
|
21
|
+
/* @__PURE__ */ r("div", { className: e.card, children: [
|
|
22
|
+
m && /* @__PURE__ */ a("div", { className: e.videoContainer, children: i.type === "youtube" ? /* @__PURE__ */ a(o, { videoId: i.videoId || "", className: e.video }) : /* @__PURE__ */ a(t, { videoId: i.videoId || "", className: e.video }) }),
|
|
23
|
+
i.image && /* @__PURE__ */ a("img", { src: i.image, alt: i.title, className: e.image }),
|
|
24
|
+
/* @__PURE__ */ r("div", { className: e.content, children: [
|
|
25
|
+
/* @__PURE__ */ a(
|
|
26
|
+
s,
|
|
27
|
+
{
|
|
28
|
+
defaultVariant: "headingLg",
|
|
29
|
+
mobileVariant: "headingSm",
|
|
30
|
+
className: e.contentTitle,
|
|
31
|
+
children: i.title
|
|
32
|
+
}
|
|
33
|
+
),
|
|
34
|
+
i.description && /* @__PURE__ */ a(s, { defaultVariant: "bodySm", mobileVariant: "bodySm", className: e.description, children: i.description }),
|
|
35
|
+
i.buttonLabel && i.link && /* @__PURE__ */ a("div", { className: e.button, children: /* @__PURE__ */ a(p, { as: "a", href: i.link, target: "_blank", rel: "noopener noreferrer", size: "sm", children: i.buttonLabel }) })
|
|
36
|
+
] })
|
|
31
37
|
] })
|
|
32
|
-
] })
|
|
33
|
-
|
|
38
|
+
] }) });
|
|
39
|
+
};
|
|
34
40
|
export {
|
|
35
|
-
|
|
41
|
+
f as ContentHighlight
|
|
36
42
|
};
|
|
@@ -50,6 +50,17 @@
|
|
|
50
50
|
max-width: none;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
.videoContainer {
|
|
54
|
+
width: 50%;
|
|
55
|
+
flex-shrink: 0;
|
|
56
|
+
max-width: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.video {
|
|
60
|
+
width: 100%;
|
|
61
|
+
aspect-ratio: 16/9;
|
|
62
|
+
}
|
|
63
|
+
|
|
53
64
|
.content {
|
|
54
65
|
display: flex;
|
|
55
66
|
width: 50%;
|
|
@@ -78,7 +89,8 @@
|
|
|
78
89
|
margin-right: 140px;
|
|
79
90
|
}
|
|
80
91
|
|
|
81
|
-
.image
|
|
92
|
+
.image,
|
|
93
|
+
.videoContainer {
|
|
82
94
|
max-width: 540px;
|
|
83
95
|
}
|
|
84
96
|
|
|
@@ -139,7 +151,8 @@
|
|
|
139
151
|
width: 100%;
|
|
140
152
|
}
|
|
141
153
|
|
|
142
|
-
.image
|
|
154
|
+
.image,
|
|
155
|
+
.videoContainer {
|
|
143
156
|
width: 100%;
|
|
144
157
|
}
|
|
145
158
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("../../utils/cn/cn.cjs.js"),c=require("../../types/analytics/analytics.cjs.js"),a=require("../../src/modules/IndividualProductCard/individualProductCard.module.css"),k=require("../../components/PlainFeaturesGroup/PlainFeaturesGroup.cjs.js"),I=require("../../components/ImageGallery/ImageGallery.cjs.js"),_=require("../../components/RatingPreview/RatingPreview.cjs.js"),F=require("../../components/Quote/Quote.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("../../utils/cn/cn.cjs.js"),c=require("../../types/analytics/analytics.cjs.js"),a=require("../../src/modules/IndividualProductCard/individualProductCard.module.css"),k=require("../../components/PlainFeaturesGroup/PlainFeaturesGroup.cjs.js"),I=require("../../components/ImageGallery/ImageGallery.cjs.js"),_=require("../../components/RatingPreview/RatingPreview.cjs.js"),F=require("../../components/Quote/Quote.cjs.js"),m=require("../../components/Typography/Typography.cjs.js"),C=require("../../components/Button/Button.cjs.js"),G=require("../../components/TextButton/TextButton.cjs.js"),R=require("./components/Features/Features.cjs.js"),B=require("./components/PlanCard/PlanCard.cjs.js"),V=require("../../components/SmartCallout/SmartCallout.cjs.js"),O=({zenpatientId:b,name:o,description:y,features:N,featuresGroup:p,images:q,quote:h,label:E,rating:v,ratingText:j,plans:s,button:t,textButton:r,selectedPlanId:g,onSelectPlan:l,trackingEvent:T,trackingLocation:x,signupUrl:w})=>{const d=s&&s.length>0&&l,f=i=>{if(l==null||l(i),T){const n=s==null?void 0:s.find(A=>A.id===i);c.EAnalyticsEventType.interaction,n==null||n.price,n==null||n.duration}},P=()=>{var n;const i={event:c.EAnalyticsEvent.ctaClicked,location:x||"not_set",type:c.EAnalyticsEventType.interaction,component:"IndividualProductCard",element:"primary_button",payload:{productId:b,ctaLabel:t.label,productName:o,selectedPlanId:g||"none"}};(n=window.eventBus)==null||n.emit("analytics",i)},S=()=>{var i;(i=window.eventBus)==null||i.emit("analytics",{event:c.EAnalyticsEvent.ctaClicked,location:x||"not_set",type:c.EAnalyticsEventType.interaction,component:"IndividualProductCard",element:"secondary_button",payload:{ctaLabel:r==null?void 0:r.label,productName:o}})};return e.jsx("section",{className:a.root,children:e.jsxs("div",{className:u.cn(a.container,!d&&a.noPlans),children:[e.jsxs("div",{className:a.gallery,children:[e.jsx(I.ImageGallery,{images:q,label:E}),e.jsx("div",{className:u.cn(a.ratingContainer,a.mobileOnly),children:e.jsx(_.RatingPreview,{rating:v,text:j})}),h&&e.jsx("div",{className:a.quoteWrapper,children:e.jsx(F.Quote,{...h})})]}),e.jsxs("div",{className:a.info,children:[e.jsxs("div",{className:a.infoHeader,children:[e.jsx(m.Typography,{as:"h3",defaultVariant:"displayXs",mobileVariant:"headingLg",weight:"regular",children:o}),!!y&&e.jsx(m.Typography,{as:"p",defaultVariant:"bodySm",className:a.infoDescription,weight:"regular",children:y})]}),!d&&e.jsxs("div",{className:a.actions,children:[e.jsx(C.Button,{variant:"primary",size:"lg",...t,onClick:P,children:t.label}),r&&e.jsx(G.TextButton,{...r,onClick:S,children:r.label})]}),e.jsx(R.Features,{features:N}),p&&e.jsx(k.PlainFeaturesGroup,{...p})]}),d&&e.jsxs("div",{className:a.plansSection,children:[e.jsxs("div",{className:a.plans,children:[e.jsx(m.Typography,{as:"h4",defaultVariant:"labelSm",emphasis:!0,weight:"regular",children:"Subscribe & Save"}),s.map(i=>e.jsx(B.PlanCard,{plan:i,onSelect:f,isActive:g===i.id},i.id))]}),e.jsx("div",{className:u.cn(a.ratingContainer,a.desktopOnly),children:e.jsx(_.RatingPreview,{rating:v,text:j})}),e.jsxs("div",{className:a.actions,children:[e.jsx(C.Button,{variant:"primary",size:"lg",as:"a",href:w||"#0",...t,children:t.label}),e.jsx(V.SmartCallout,{label:"HSA/FSA Eligible"})]})]})]})})};exports.IndividualProductCard=O;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as i, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { cn as m } from "../../utils/cn/cn.es.js";
|
|
3
3
|
import { EAnalyticsEventType as p, EAnalyticsEvent as b } from "../../types/analytics/analytics.es.js";
|
|
4
|
-
import
|
|
4
|
+
import a from "../../modules/IndividualProductCard/individualProductCard.module.css";
|
|
5
5
|
import { PlainFeaturesGroup as D } from "../../components/PlainFeaturesGroup/PlainFeaturesGroup.es.js";
|
|
6
6
|
import { ImageGallery as G } from "../../components/ImageGallery/ImageGallery.es.js";
|
|
7
7
|
import { RatingPreview as w } from "../../components/RatingPreview/RatingPreview.es.js";
|
|
@@ -12,7 +12,7 @@ import { TextButton as L } from "../../components/TextButton/TextButton.es.js";
|
|
|
12
12
|
import { Features as O } from "./components/Features/Features.es.js";
|
|
13
13
|
import { PlanCard as P } from "./components/PlanCard/PlanCard.es.js";
|
|
14
14
|
import { SmartCallout as Q } from "../../components/SmartCallout/SmartCallout.es.js";
|
|
15
|
-
const
|
|
15
|
+
const ai = ({
|
|
16
16
|
zenpatientId: E,
|
|
17
17
|
name: d,
|
|
18
18
|
description: v,
|
|
@@ -22,24 +22,24 @@ const ei = ({
|
|
|
22
22
|
quote: f,
|
|
23
23
|
label: I,
|
|
24
24
|
rating: u,
|
|
25
|
-
ratingText:
|
|
25
|
+
ratingText: g,
|
|
26
26
|
plans: o,
|
|
27
|
-
button:
|
|
28
|
-
textButton:
|
|
29
|
-
selectedPlanId:
|
|
27
|
+
button: t,
|
|
28
|
+
textButton: n,
|
|
29
|
+
selectedPlanId: N,
|
|
30
30
|
onSelectPlan: c,
|
|
31
31
|
trackingEvent: V,
|
|
32
32
|
trackingLocation: C,
|
|
33
33
|
signupUrl: _
|
|
34
34
|
}) => {
|
|
35
|
-
const s = o && o.length > 0 && c, F = (
|
|
36
|
-
if (c == null || c(
|
|
37
|
-
const r = o == null ? void 0 : o.find((z) => z.id ===
|
|
35
|
+
const s = o && o.length > 0 && c, F = (e) => {
|
|
36
|
+
if (c == null || c(e), V) {
|
|
37
|
+
const r = o == null ? void 0 : o.find((z) => z.id === e);
|
|
38
38
|
p.interaction, r == null || r.price, r == null || r.duration;
|
|
39
39
|
}
|
|
40
40
|
}, T = () => {
|
|
41
41
|
var r;
|
|
42
|
-
const
|
|
42
|
+
const e = {
|
|
43
43
|
event: b.ctaClicked,
|
|
44
44
|
location: C || "not_set",
|
|
45
45
|
type: p.interaction,
|
|
@@ -47,74 +47,74 @@ const ei = ({
|
|
|
47
47
|
element: "primary_button",
|
|
48
48
|
payload: {
|
|
49
49
|
productId: E,
|
|
50
|
-
ctaLabel:
|
|
50
|
+
ctaLabel: t.label,
|
|
51
51
|
productName: d,
|
|
52
|
-
selectedPlanId:
|
|
52
|
+
selectedPlanId: N || "none"
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
|
-
(r = window.eventBus) == null || r.emit("analytics",
|
|
55
|
+
(r = window.eventBus) == null || r.emit("analytics", e);
|
|
56
56
|
}, j = () => {
|
|
57
|
-
var
|
|
58
|
-
(
|
|
57
|
+
var e;
|
|
58
|
+
(e = window.eventBus) == null || e.emit("analytics", {
|
|
59
59
|
event: b.ctaClicked,
|
|
60
60
|
location: C || "not_set",
|
|
61
61
|
type: p.interaction,
|
|
62
62
|
component: "IndividualProductCard",
|
|
63
63
|
element: "secondary_button",
|
|
64
64
|
payload: {
|
|
65
|
-
ctaLabel:
|
|
65
|
+
ctaLabel: n == null ? void 0 : n.label,
|
|
66
66
|
productName: d
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
69
|
};
|
|
70
|
-
return /* @__PURE__ */ i("section", { className:
|
|
71
|
-
/* @__PURE__ */ l("div", { className:
|
|
70
|
+
return /* @__PURE__ */ i("section", { className: a.root, children: /* @__PURE__ */ l("div", { className: m(a.container, !s && a.noPlans), children: [
|
|
71
|
+
/* @__PURE__ */ l("div", { className: a.gallery, children: [
|
|
72
72
|
/* @__PURE__ */ i(G, { images: S, label: I }),
|
|
73
|
-
/* @__PURE__ */ i("div", { className: m(
|
|
74
|
-
f && /* @__PURE__ */ i("div", { className:
|
|
73
|
+
/* @__PURE__ */ i("div", { className: m(a.ratingContainer, a.mobileOnly), children: /* @__PURE__ */ i(w, { rating: u, text: g }) }),
|
|
74
|
+
f && /* @__PURE__ */ i("div", { className: a.quoteWrapper, children: /* @__PURE__ */ i(H, { ...f }) })
|
|
75
75
|
] }),
|
|
76
|
-
/* @__PURE__ */ l("div", { className:
|
|
77
|
-
/* @__PURE__ */ l("div", { className:
|
|
76
|
+
/* @__PURE__ */ l("div", { className: a.info, children: [
|
|
77
|
+
/* @__PURE__ */ l("div", { className: a.infoHeader, children: [
|
|
78
78
|
/* @__PURE__ */ i(h, { as: "h3", defaultVariant: "displayXs", mobileVariant: "headingLg", weight: "regular", children: d }),
|
|
79
79
|
!!v && /* @__PURE__ */ i(
|
|
80
80
|
h,
|
|
81
81
|
{
|
|
82
82
|
as: "p",
|
|
83
83
|
defaultVariant: "bodySm",
|
|
84
|
-
className:
|
|
84
|
+
className: a.infoDescription,
|
|
85
85
|
weight: "regular",
|
|
86
86
|
children: v
|
|
87
87
|
}
|
|
88
88
|
)
|
|
89
89
|
] }),
|
|
90
|
-
!s && /* @__PURE__ */ l("div", { className:
|
|
91
|
-
/* @__PURE__ */ i(k, { variant: "primary", size: "lg", ...
|
|
92
|
-
|
|
90
|
+
!s && /* @__PURE__ */ l("div", { className: a.actions, children: [
|
|
91
|
+
/* @__PURE__ */ i(k, { variant: "primary", size: "lg", ...t, onClick: T, children: t.label }),
|
|
92
|
+
n && /* @__PURE__ */ i(L, { ...n, onClick: j, children: n.label })
|
|
93
93
|
] }),
|
|
94
94
|
/* @__PURE__ */ i(O, { features: A }),
|
|
95
95
|
y && /* @__PURE__ */ i(D, { ...y })
|
|
96
96
|
] }),
|
|
97
|
-
s && /* @__PURE__ */ l("div", { className:
|
|
98
|
-
/* @__PURE__ */ l("div", { className:
|
|
97
|
+
s && /* @__PURE__ */ l("div", { className: a.plansSection, children: [
|
|
98
|
+
/* @__PURE__ */ l("div", { className: a.plans, children: [
|
|
99
99
|
/* @__PURE__ */ i(h, { as: "h4", defaultVariant: "labelSm", emphasis: !0, weight: "regular", children: "Subscribe & Save" }),
|
|
100
|
-
o.map((
|
|
100
|
+
o.map((e) => /* @__PURE__ */ i(
|
|
101
101
|
P,
|
|
102
102
|
{
|
|
103
|
-
plan:
|
|
103
|
+
plan: e,
|
|
104
104
|
onSelect: F,
|
|
105
|
-
isActive:
|
|
105
|
+
isActive: N === e.id
|
|
106
106
|
},
|
|
107
|
-
|
|
107
|
+
e.id
|
|
108
108
|
))
|
|
109
109
|
] }),
|
|
110
|
-
/* @__PURE__ */ i("div", { className: m(
|
|
111
|
-
/* @__PURE__ */ l("div", { className:
|
|
112
|
-
/* @__PURE__ */ i(k, { variant: "primary", size: "lg", as: "a", href: _ || "#0", ...
|
|
110
|
+
/* @__PURE__ */ i("div", { className: m(a.ratingContainer, a.desktopOnly), children: /* @__PURE__ */ i(w, { rating: u, text: g }) }),
|
|
111
|
+
/* @__PURE__ */ l("div", { className: a.actions, children: [
|
|
112
|
+
/* @__PURE__ */ i(k, { variant: "primary", size: "lg", as: "a", href: _ || "#0", ...t, children: t.label }),
|
|
113
113
|
/* @__PURE__ */ i(Q, { label: "HSA/FSA Eligible" })
|
|
114
114
|
] })
|
|
115
115
|
] })
|
|
116
116
|
] }) });
|
|
117
117
|
};
|
|
118
118
|
export {
|
|
119
|
-
|
|
119
|
+
ai as IndividualProductCard
|
|
120
120
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunk-FSLSW5KG.cjs.js"),s=require("react"),e=require("react/jsx-runtime");var S=s.lazy(async()=>Promise.resolve().then(()=>require("./WistiaPlayerWrapper-KYHM7EWK.cjs.js")).then(t=>({default:t.WistiaPlayerWrapper}))),p=s.forwardRef((t,c)=>{const{aspect:l,children:n,embedHost:a,mediaId:i,swatch:d,style:y}=t,o=r.getMergedEmbedOption(i,"embedHost",a!=null?a:void 0),u=r.isString(o)?o:"fast.wistia.com",h=l!==void 0,m=r.wistiaPlayerStyleBlock({mediaId:i,embedHost:u,aspect:l,shouldLoadSwatch:d});return e.jsx(s.Suspense,{fallback:h&&e.jsxs(s.Fragment,{children:[e.jsx("style",{children:m}),e.jsx("wistia-player",{"media-id":i,style:y,children:n})]}),children:e.jsx(S,{ref:c,...t})})});exports.WistiaPlayer=p;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { getMergedEmbedOption as y, wistiaPlayerStyleBlock as h, isString as f } from "./chunk-FSLSW5KG.es.js";
|
|
2
|
+
import { forwardRef as w, Suspense as b, lazy as g, Fragment as u } from "react";
|
|
3
|
+
import { jsx as t, jsxs as S } from "react/jsx-runtime";
|
|
4
|
+
var W = g(
|
|
5
|
+
async () => import("./WistiaPlayerWrapper-KYHM7EWK.es.js").then((e) => ({
|
|
6
|
+
default: e.WistiaPlayerWrapper
|
|
7
|
+
}))
|
|
8
|
+
), x = w(
|
|
9
|
+
(e, o) => {
|
|
10
|
+
const { aspect: r, children: l, embedHost: a, mediaId: i, swatch: d, style: c } = e, s = y(i, "embedHost", a != null ? a : void 0), n = f(s) ? s : "fast.wistia.com", m = r !== void 0, p = h({
|
|
11
|
+
mediaId: i,
|
|
12
|
+
embedHost: n,
|
|
13
|
+
aspect: r,
|
|
14
|
+
shouldLoadSwatch: d
|
|
15
|
+
});
|
|
16
|
+
return /* @__PURE__ */ t(
|
|
17
|
+
b,
|
|
18
|
+
{
|
|
19
|
+
fallback: m && /* @__PURE__ */ S(u, { children: [
|
|
20
|
+
/* @__PURE__ */ t("style", { children: p }),
|
|
21
|
+
/* @__PURE__ */ t("wistia-player", { "media-id": i, style: c, children: l })
|
|
22
|
+
] }),
|
|
23
|
+
children: /* @__PURE__ */ t(W, { ref: o, ...e })
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
export {
|
|
29
|
+
x as WistiaPlayer
|
|
30
|
+
};
|
package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/WistiaPlayerWrapper-KYHM7EWK.cjs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./chunk-FSLSW5KG.cjs.js"),n=require("react"),h=require("react/jsx-runtime");var L=l=>{const s={};return Object.entries(l).forEach(([d,a])=>{typeof a=="boolean"?s[d]=String(a):s[d]=a}),s},q=n.forwardRef((l,s)=>{const{aspect:d,children:a,className:w,embedHost:u,id:o,mediaId:c,roundedPlayer:E,swatch:p,style:P}=l,S=t.getMergedEmbedOption(c,"embedHost",u!=null?u:void 0),f=t.isString(S)?S:"fast.wistia.com",b=n.useRef(null),[m,v]=n.useState(d),[j,W]=n.useState(!1);n.useEffect(()=>{p!==!1&&m===void 0&&t.isString(f)&&t.getSwatchAspectRatio(c,f).then(e=>{v(e)}),Promise.resolve().then(()=>require("./wistia-player-PKAEVX5L.cjs.js")),customElements.whenDefined("wistia-player").then(()=>{W(!0)})},[]);const g={},y={};Object.entries(l).forEach(([e,i])=>{if(e.startsWith("on")&&e[2]===e[2].toUpperCase()){const r=t.camelCaseToKebabCase(e).slice(3);t.isFunction(i)&&(g[r]=i)}else t.isValidEmbedOption(i)&&(y[t.camelCaseToKebabCase(e)]=i)}),Object.entries(g).forEach(([e,i])=>{n.useEffect(()=>{const r=b.current;return r==null||r.addEventListener(e,i),()=>{r==null||r.removeEventListener(e,i)}},[i,j])});const O=m!==void 0,C=t.wistiaPlayerStyleBlock({mediaId:c,embedHost:f,aspect:m,shouldLoadSwatch:p,roundedPlayer:E});return h.jsxs(n.Fragment,{children:[O&&h.jsx("style",{dangerouslySetInnerHTML:{__html:C}}),h.jsx("wistia-player",{ref:e=>{b.current=e,typeof s=="function"?s(e):s!==null&&(s.current=e)},id:o!=null?o:void 0,"media-id":c,class:w,style:P,react:String(!0),...L(y),children:a},o!=null?o:c)]})});exports.WistiaPlayerWrapper=q;
|
package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/WistiaPlayerWrapper-KYHM7EWK.es.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { getMergedEmbedOption as x, isString as E, getSwatchAspectRatio as A, camelCaseToKebabCase as b, isValidEmbedOption as B, wistiaPlayerStyleBlock as C, isFunction as I } from "./chunk-FSLSW5KG.es.js";
|
|
3
|
+
import { forwardRef as F, useRef as K, useState as g, useEffect as y, Fragment as M } from "react";
|
|
4
|
+
import { jsxs as R, jsx as S } from "react/jsx-runtime";
|
|
5
|
+
var T = (a) => {
|
|
6
|
+
const e = {};
|
|
7
|
+
return Object.entries(a).forEach(([c, r]) => {
|
|
8
|
+
typeof r == "boolean" ? e[c] = String(r) : e[c] = r;
|
|
9
|
+
}), e;
|
|
10
|
+
}, V = F(
|
|
11
|
+
(a, e) => {
|
|
12
|
+
const { aspect: c, children: r, className: v, embedHost: d, id: o, mediaId: n, roundedPlayer: P, swatch: m, style: O } = a, p = x(n, "embedHost", d != null ? d : void 0), l = E(p) ? p : "fast.wistia.com", h = K(null), [f, j] = g(c), [W, D] = g(!1);
|
|
13
|
+
y(() => {
|
|
14
|
+
m !== !1 && f === void 0 && E(l) && A(n, l).then((t) => {
|
|
15
|
+
j(t);
|
|
16
|
+
}), import("./wistia-player-PKAEVX5L.es.js"), customElements.whenDefined("wistia-player").then(() => {
|
|
17
|
+
D(!0);
|
|
18
|
+
});
|
|
19
|
+
}, []);
|
|
20
|
+
const u = {}, w = {};
|
|
21
|
+
Object.entries(a).forEach(([t, s]) => {
|
|
22
|
+
if (t.startsWith("on") && t[2] === t[2].toUpperCase()) {
|
|
23
|
+
const i = b(t).slice(3);
|
|
24
|
+
I(s) && (u[i] = s);
|
|
25
|
+
} else B(s) && (w[b(t)] = s);
|
|
26
|
+
}), Object.entries(u).forEach(([t, s]) => {
|
|
27
|
+
y(() => {
|
|
28
|
+
const i = h.current;
|
|
29
|
+
return i == null || i.addEventListener(t, s), () => {
|
|
30
|
+
i == null || i.removeEventListener(t, s);
|
|
31
|
+
};
|
|
32
|
+
}, [s, W]);
|
|
33
|
+
});
|
|
34
|
+
const H = f !== void 0, L = C({
|
|
35
|
+
mediaId: n,
|
|
36
|
+
embedHost: l,
|
|
37
|
+
aspect: f,
|
|
38
|
+
shouldLoadSwatch: m,
|
|
39
|
+
roundedPlayer: P
|
|
40
|
+
});
|
|
41
|
+
return /* @__PURE__ */ R(M, { children: [
|
|
42
|
+
H && /* @__PURE__ */ S("style", { dangerouslySetInnerHTML: { __html: L } }),
|
|
43
|
+
/* @__PURE__ */ S(
|
|
44
|
+
"wistia-player",
|
|
45
|
+
{
|
|
46
|
+
ref: (t) => {
|
|
47
|
+
h.current = t, typeof e == "function" ? e(t) : e !== null && (e.current = t);
|
|
48
|
+
},
|
|
49
|
+
id: o != null ? o : void 0,
|
|
50
|
+
"media-id": n,
|
|
51
|
+
class: v,
|
|
52
|
+
style: O,
|
|
53
|
+
react: String(!0),
|
|
54
|
+
...T(w),
|
|
55
|
+
children: r
|
|
56
|
+
},
|
|
57
|
+
o != null ? o : n
|
|
58
|
+
)
|
|
59
|
+
] });
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
export {
|
|
63
|
+
V as WistiaPlayerWrapper
|
|
64
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var b=i=>i===null,u=i=>i===void 0,g=i=>b(i)||u(i),r=i=>!g(i),d=i=>typeof i=="string",f=i=>typeof i=="number",O=i=>r(i)&&typeof i=="function",m=i=>r(i)&&typeof i=="boolean",l=i=>f(i)||d(i)||m(i),v=(i,t,e)=>{var n,s;let a=e;return typeof window=="undefined"||(r((n=window.wistiaOptions)==null?void 0:n._all)&&r(window.wistiaOptions._all[t])&&l(window.wistiaOptions._all[t])&&(a=window.wistiaOptions._all[t]),r((s=window.wistiaOptions)==null?void 0:s[i])&&r(window.wistiaOptions[i])&&l(window.wistiaOptions[i][t])&&(a=window.wistiaOptions[i][t])),a},c=i=>i.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,e)=>(e!==0?"-":"")+t.toLowerCase()),$=async i=>{const t=new Image;return t.src=i,await t.decode(),t},p=(i,t)=>`https://${t}/embed/medias/${i}/swatch`,y=async(i,t="fast.wistia.com")=>{const e=await $(p(i,t)),{naturalHeight:a,naturalWidth:n}=e;return n/a},S=({mediaId:i,embedHost:t="fast.wistia.com",aspect:e=1.7,shouldLoadSwatch:a=!0,roundedPlayer:n=0})=>{const s={background:a?`center / contain no-repeat url(${p(i,t)})`:void 0,borderRadius:`${n}px`,display:"block",filter:"blur(5px)",paddingTop:`${100/e}%`};return`
|
|
2
|
+
wistia-player[media-id='${i}']:not(:defined) {
|
|
3
|
+
${Object.entries(s).map(([o,w])=>`${c(o)}: ${w};`).join(`\r
|
|
4
|
+
`)}
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
wistia-player[media-id='${i}']:state(--initializing) {
|
|
8
|
+
${Object.entries(s).map(([o,w])=>`${c(o)}: ${w};`).join(`\r
|
|
9
|
+
`)}
|
|
10
|
+
}
|
|
11
|
+
`};/*! Bundled license information:
|
|
12
|
+
|
|
13
|
+
@wistia/type-guards/dist/index.mjs:
|
|
14
|
+
(*
|
|
15
|
+
* @license @wistia/type-guards v0.9.1
|
|
16
|
+
*
|
|
17
|
+
* Copyright (c) 2023-2025, Wistia, Inc. and its affiliates.
|
|
18
|
+
*
|
|
19
|
+
* This source code is unlicensed, all rights reserved.
|
|
20
|
+
*)
|
|
21
|
+
*/exports.camelCaseToKebabCase=c;exports.getMergedEmbedOption=v;exports.getSwatchAspectRatio=y;exports.isFunction=O;exports.isString=d;exports.isValidEmbedOption=l;exports.wistiaPlayerStyleBlock=S;
|