@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.
Files changed (28) hide show
  1. package/dist/components/ComplexImageCarousel/useComplexImageCarousel.d.ts +6 -6
  2. package/dist/components/Icon/Icon.d.ts +1 -1
  3. package/dist/components/RatingPreview/RatingPreview.cjs.js +1 -1
  4. package/dist/components/RatingPreview/RatingPreview.d.ts +1 -1
  5. package/dist/components/RatingPreview/RatingPreview.es.js +24 -22
  6. package/dist/components/WistiaEmbed/WistiaEmbed.cjs.js +1 -0
  7. package/dist/components/WistiaEmbed/WistiaEmbed.d.ts +5 -0
  8. package/dist/components/WistiaEmbed/WistiaEmbed.es.js +8 -0
  9. package/dist/components/WistiaEmbed/wistiaEmbed.module.css +6 -0
  10. package/dist/components/YouTubeEmbed/YouTubeEmbed.cjs.js +1 -0
  11. package/dist/components/YouTubeEmbed/YouTubeEmbed.d.ts +6 -0
  12. package/dist/components/YouTubeEmbed/YouTubeEmbed.es.js +16 -0
  13. package/dist/components/YouTubeEmbed/youtubeEmbed.module.css +15 -0
  14. package/dist/modules/ContentHighlight/ContentHighlight.cjs.js +1 -1
  15. package/dist/modules/ContentHighlight/ContentHighlight.d.ts +5 -3
  16. package/dist/modules/ContentHighlight/ContentHighlight.es.js +39 -33
  17. package/dist/modules/ContentHighlight/contentHighlight.module.css +15 -2
  18. package/dist/modules/IndividualProductCard/IndividualProductCard.cjs.js +1 -1
  19. package/dist/modules/IndividualProductCard/IndividualProductCard.es.js +36 -36
  20. package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/WistiaPlayer.cjs.js +1 -0
  21. package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/WistiaPlayer.es.js +30 -0
  22. package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/WistiaPlayerWrapper-KYHM7EWK.cjs.js +1 -0
  23. package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/WistiaPlayerWrapper-KYHM7EWK.es.js +64 -0
  24. package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/chunk-FSLSW5KG.cjs.js +21 -0
  25. package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/chunk-FSLSW5KG.es.js +59 -0
  26. package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/wistia-player-PKAEVX5L.cjs.js +52 -0
  27. package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/wistia-player-PKAEVX5L.es.js +10285 -0
  28. 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: import('react').RefObject<HTMLDivElement>;
8
- carouselRef: import('react').RefObject<HTMLDivElement>;
9
- imageRefs: import('react').MutableRefObject<HTMLDivElement[]>;
10
- descriptionRef: import('react').RefObject<HTMLDivElement>;
11
- descriptionItemRef: import('react').RefObject<HTMLDivElement>;
12
- progressButtonContainerRef: import('react').RefObject<HTMLDivElement>;
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;
@@ -4,5 +4,5 @@ type Props = {
4
4
  name: EIconName;
5
5
  className?: string;
6
6
  };
7
- export declare const Icon: import('react').NamedExoticComponent<Props>;
7
+ export declare const Icon: React.NamedExoticComponent<Props>;
8
8
  export {};
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),o=require("../../src/components/RatingPreview/ratingPreview.module.css"),t=require("../Typography/Typography.cjs.js"),c=require("../Icon/Icon.cjs.js"),l=require("../Icon/constants.cjs.js"),u=s=>{const a=Math.round(s*2)/2,r=[];for(let n=0;n<Math.floor(a);n++)r.push(e.jsx(c.Icon,{name:l.EIconName.STAR_FILL,className:o.starIcon},`full-${n}`));return a%1===.5&&r.push(e.jsx(c.Icon,{name:l.EIconName.STAR_HALF,className:o.starIcon},"half")),r},i=({rating:s,text:a})=>e.jsxs("div",{className:o.ratingPreview,children:[s!==void 0&&s.stars!==void 0&&e.jsxs(t.Typography,{as:"p",defaultVariant:"labelMd",children:[s.stars," ",u(s.stars)]}),a&&e.jsxs(e.Fragment,{children:[e.jsx(t.Typography,{as:"p",defaultVariant:"labelSm",children:"|"}),e.jsx(t.Typography,{as:"p",defaultVariant:"labelSm",emphasis:!0,children:a})]})]});exports.RatingPreview=i;exports.default=i;
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 o, Fragment as c, jsx as s } from "react/jsx-runtime";
2
- import n from "../../components/RatingPreview/ratingPreview.module.css";
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 i } from "../Icon/Icon.es.js";
5
- import { EIconName as m } from "../Icon/constants.es.js";
6
- const d = (a) => {
7
- const r = Math.round(a * 2) / 2, e = [];
8
- for (let t = 0; t < Math.floor(r); t++)
9
- e.push(/* @__PURE__ */ s(i, { name: m.STAR_FILL, className: n.starIcon }, `full-${t}`));
10
- return r % 1 === 0.5 && e.push(/* @__PURE__ */ s(i, { name: m.STAR_HALF, className: n.starIcon }, "half")), e;
11
- }, I = ({ rating: a, text: r }) => /* @__PURE__ */ o("div", { className: n.ratingPreview, children: [
12
- a !== void 0 && a.stars !== void 0 && /* @__PURE__ */ o(l, { as: "p", defaultVariant: "labelMd", children: [
13
- a.stars,
14
- " ",
15
- d(a.stars)
16
- ] }),
17
- r && /* @__PURE__ */ o(c, { children: [
18
- /* @__PURE__ */ s(l, { as: "p", defaultVariant: "labelSm", children: "|" }),
19
- /* @__PURE__ */ s(l, { as: "p", defaultVariant: "labelSm", emphasis: !0, children: r })
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
- I as RatingPreview,
24
- I as default
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,5 @@
1
+ export type WistiaEmbedProps = {
2
+ videoId: string;
3
+ className?: string;
4
+ };
5
+ export declare const WistiaEmbed: ({ videoId, className }: WistiaEmbedProps) => import("react/jsx-runtime").JSX.Element;
@@ -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,6 @@
1
+ .container {
2
+ position: relative;
3
+ width: 100%;
4
+ border-radius: var(--border-radius-lg);
5
+ overflow: hidden;
6
+ }
@@ -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,6 @@
1
+ export type YouTubeEmbedProps = {
2
+ videoId: string;
3
+ title?: string;
4
+ className?: string;
5
+ };
6
+ export declare const YouTubeEmbed: ({ videoId, title, className }: YouTubeEmbedProps) => import("react/jsx-runtime").JSX.Element;
@@ -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
+ };
@@ -0,0 +1,15 @@
1
+ .container {
2
+ position: relative;
3
+ width: 100%;
4
+ overflow: hidden;
5
+ border-radius: var(--border-radius-lg);
6
+ }
7
+
8
+ .iframe {
9
+ position: absolute;
10
+ top: 0;
11
+ left: 0;
12
+ width: 100%;
13
+ height: 100%;
14
+ border: none;
15
+ }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("../../src/modules/ContentHighlight/contentHighlight.module.css"),l=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),t=require("../../components/Typography/Typography.cjs.js"),n=require("../../components/Button/Button.cjs.js"),o=({label:a,title:r,content:s})=>e.jsx("section",{className:i.root,children:e.jsxs("div",{className:i.container,children:[e.jsx("div",{className:i.topContainer,children:e.jsx(l.HighlightedTitle,{title:r,label:a,as:"div",defaultVariant:"displayMd",className:i.title})}),e.jsxs("div",{className:i.card,children:[e.jsx("img",{src:s.image,alt:s.title,className:i.image}),e.jsxs("div",{className:i.content,children:[e.jsx(t.Typography,{defaultVariant:"headingLg",mobileVariant:"headingSm",className:i.contentTitle,children:s.title}),s.description&&e.jsx(t.Typography,{defaultVariant:"bodySm",mobileVariant:"bodySm",className:i.description,children:s.description}),e.jsx("div",{className:i.button,children:e.jsx(n.Button,{as:"a",href:s.link,target:"_blank",rel:"noopener noreferrer",size:"sm",children:s.buttonLabel})})]})]})]})});exports.ContentHighlight=o;
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: string;
10
- buttonLabel: string;
11
- link: string;
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 e, jsxs as r } from "react/jsx-runtime";
2
- import i from "../../modules/ContentHighlight/contentHighlight.module.css";
3
- import { HighlightedTitle as d } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
4
- import { Typography as l } from "../../components/Typography/Typography.es.js";
5
- import { Button as m } from "../../components/Button/Button.es.js";
6
- const g = ({ label: t, title: s, content: a }) => /* @__PURE__ */ e("section", { className: i.root, children: /* @__PURE__ */ r("div", { className: i.container, children: [
7
- /* @__PURE__ */ e("div", { className: i.topContainer, children: /* @__PURE__ */ e(
8
- d,
9
- {
10
- title: s,
11
- label: t,
12
- as: "div",
13
- defaultVariant: "displayMd",
14
- className: i.title
15
- }
16
- ) }),
17
- /* @__PURE__ */ r("div", { className: i.card, children: [
18
- /* @__PURE__ */ e("img", { src: a.image, alt: a.title, className: i.image }),
19
- /* @__PURE__ */ r("div", { className: i.content, children: [
20
- /* @__PURE__ */ e(
21
- l,
22
- {
23
- defaultVariant: "headingLg",
24
- mobileVariant: "headingSm",
25
- className: i.contentTitle,
26
- children: a.title
27
- }
28
- ),
29
- a.description && /* @__PURE__ */ e(l, { defaultVariant: "bodySm", mobileVariant: "bodySm", className: i.description, children: a.description }),
30
- /* @__PURE__ */ e("div", { className: i.button, children: /* @__PURE__ */ e(m, { as: "a", href: a.link, target: "_blank", rel: "noopener noreferrer", size: "sm", children: a.buttonLabel }) })
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
- g as ContentHighlight
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"),y=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:N,name:o,description:m,features:b,featuresGroup:p,images:q,quote:h,label:w,rating:v,ratingText:j,plans:s,button:t,textButton:r,selectedPlanId:g,onSelectPlan:l,trackingEvent:E,trackingLocation:x,signupUrl:T})=>{const d=s&&s.length>0&&l,f=i=>{if(l==null||l(i),E){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:N,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:w}),e.jsx("div",{className:u.cn(a.ratingContainer,a.mobileOnly),children:e.jsx(_.RatingPreview,{rating:v,text:j||"No reviews yet"})}),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(y.Typography,{as:"h3",defaultVariant:"displayXs",mobileVariant:"headingLg",weight:"regular",children:o}),!!m&&e.jsx(y.Typography,{as:"p",defaultVariant:"bodySm",className:a.infoDescription,weight:"regular",children:m})]}),!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:b}),p&&e.jsx(k.PlainFeaturesGroup,{...p})]}),d&&e.jsxs("div",{className:a.plansSection,children:[e.jsxs("div",{className:a.plans,children:[e.jsx(y.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||"No reviews yet"})}),e.jsxs("div",{className:a.actions,children:[e.jsx(C.Button,{variant:"primary",size:"lg",as:"a",href:T||"#0",...t,children:t.label}),e.jsx(V.SmartCallout,{label:"HSA/FSA Eligible"})]})]})]})})};exports.IndividualProductCard=O;
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 e from "../../modules/IndividualProductCard/individualProductCard.module.css";
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 ei = ({
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: N,
25
+ ratingText: g,
26
26
  plans: o,
27
- button: n,
28
- textButton: t,
29
- selectedPlanId: g,
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 = (a) => {
36
- if (c == null || c(a), V) {
37
- const r = o == null ? void 0 : o.find((z) => z.id === a);
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 a = {
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: n.label,
50
+ ctaLabel: t.label,
51
51
  productName: d,
52
- selectedPlanId: g || "none"
52
+ selectedPlanId: N || "none"
53
53
  }
54
54
  };
55
- (r = window.eventBus) == null || r.emit("analytics", a);
55
+ (r = window.eventBus) == null || r.emit("analytics", e);
56
56
  }, j = () => {
57
- var a;
58
- (a = window.eventBus) == null || a.emit("analytics", {
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: t == null ? void 0 : t.label,
65
+ ctaLabel: n == null ? void 0 : n.label,
66
66
  productName: d
67
67
  }
68
68
  });
69
69
  };
70
- return /* @__PURE__ */ i("section", { className: e.root, children: /* @__PURE__ */ l("div", { className: m(e.container, !s && e.noPlans), children: [
71
- /* @__PURE__ */ l("div", { className: e.gallery, children: [
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(e.ratingContainer, e.mobileOnly), children: /* @__PURE__ */ i(w, { rating: u, text: N || "No reviews yet" }) }),
74
- f && /* @__PURE__ */ i("div", { className: e.quoteWrapper, children: /* @__PURE__ */ i(H, { ...f }) })
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: e.info, children: [
77
- /* @__PURE__ */ l("div", { className: e.infoHeader, children: [
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: e.infoDescription,
84
+ className: a.infoDescription,
85
85
  weight: "regular",
86
86
  children: v
87
87
  }
88
88
  )
89
89
  ] }),
90
- !s && /* @__PURE__ */ l("div", { className: e.actions, children: [
91
- /* @__PURE__ */ i(k, { variant: "primary", size: "lg", ...n, onClick: T, children: n.label }),
92
- t && /* @__PURE__ */ i(L, { ...t, onClick: j, children: t.label })
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: e.plansSection, children: [
98
- /* @__PURE__ */ l("div", { className: e.plans, children: [
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((a) => /* @__PURE__ */ i(
100
+ o.map((e) => /* @__PURE__ */ i(
101
101
  P,
102
102
  {
103
- plan: a,
103
+ plan: e,
104
104
  onSelect: F,
105
- isActive: g === a.id
105
+ isActive: N === e.id
106
106
  },
107
- a.id
107
+ e.id
108
108
  ))
109
109
  ] }),
110
- /* @__PURE__ */ i("div", { className: m(e.ratingContainer, e.desktopOnly), children: /* @__PURE__ */ i(w, { rating: u, text: N || "No reviews yet" }) }),
111
- /* @__PURE__ */ l("div", { className: e.actions, children: [
112
- /* @__PURE__ */ i(k, { variant: "primary", size: "lg", as: "a", href: _ || "#0", ...n, children: n.label }),
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
- ei as IndividualProductCard
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
+ };
@@ -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;
@@ -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;