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