@zenpatient-org/healthspan-marketing-ui 0.1.22 → 0.1.24

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 (208) hide show
  1. package/README.md +11 -1
  2. package/dist/components/Accordion/Accordion.cjs.js +1 -0
  3. package/dist/components/Accordion/Accordion.d.ts +8 -0
  4. package/dist/components/Accordion/Accordion.es.js +27 -0
  5. package/dist/components/Accordion/accordion.module.css.cjs.js +1 -0
  6. package/dist/components/Accordion/accordion.module.css.es.js +7 -0
  7. package/dist/components/Accordion/components/AccordionItem/AccordionItem.cjs.js +1 -0
  8. package/dist/components/Accordion/components/AccordionItem/AccordionItem.d.ts +3 -0
  9. package/dist/components/Accordion/components/AccordionItem/AccordionItem.es.js +31 -0
  10. package/dist/components/Accordion/components/AccordionItem/accordionItem.module.css.cjs.js +1 -0
  11. package/dist/components/Accordion/components/AccordionItem/accordionItem.module.css.es.js +25 -0
  12. package/dist/components/Accordion/components/AccordionItem/index.d.ts +2 -0
  13. package/dist/components/Accordion/components/AccordionItem/types.d.ts +9 -0
  14. package/dist/components/Accordion/components/index.d.ts +1 -0
  15. package/dist/components/Accordion/index.d.ts +1 -0
  16. package/dist/components/Accordion/types.d.ts +6 -0
  17. package/dist/components/Button/Button.es.js +24 -6
  18. package/dist/components/ComplexImageCarousel/ComplexImageCarousel.cjs.js +1 -0
  19. package/dist/components/ComplexImageCarousel/ComplexImageCarousel.d.ts +3 -0
  20. package/dist/components/ComplexImageCarousel/ComplexImageCarousel.es.js +135 -0
  21. package/dist/components/ComplexImageCarousel/complexImageCarousel.module.css.cjs.js +1 -0
  22. package/dist/components/ComplexImageCarousel/complexImageCarousel.module.css.es.js +19 -0
  23. package/dist/components/ComplexImageCarousel/index.d.ts +2 -0
  24. package/dist/components/ComplexImageCarousel/types.d.ts +10 -0
  25. package/dist/components/ComplexTooltip/components/ComplexTooltipContent/ComplexTooltipContent.cjs.js +1 -1
  26. package/dist/components/ComplexTooltip/components/ComplexTooltipContent/ComplexTooltipContent.es.js +17 -15
  27. package/dist/components/FilterMenu/FilterMenu.d.ts +1 -1
  28. package/dist/components/FilterMenu/FilterMenu.es.js +17 -2
  29. package/dist/components/Icon/constants.cjs.js +1 -1
  30. package/dist/components/Icon/constants.d.ts +3 -0
  31. package/dist/components/Icon/constants.es.js +4 -1
  32. package/dist/components/Icon/iconsMap.cjs.js +1 -1
  33. package/dist/components/Icon/iconsMap.es.js +104 -98
  34. package/dist/components/IconBracket/IconBracket.cjs.js +1 -0
  35. package/dist/components/IconBracket/IconBracket.d.ts +3 -0
  36. package/dist/components/IconBracket/IconBracket.es.js +16 -0
  37. package/dist/components/IconBracket/iconBracket.module.css.cjs.js +1 -0
  38. package/dist/components/IconBracket/iconBracket.module.css.es.js +9 -0
  39. package/dist/components/IconBracket/index.d.ts +1 -0
  40. package/dist/components/IconBracket/types.d.ts +8 -0
  41. package/dist/components/InfiniteScroll/InfiniteScroll.es.js +9 -1
  42. package/dist/components/Label/Label.es.js +9 -1
  43. package/dist/components/PlayButton/PlayButton.cjs.js +1 -0
  44. package/dist/components/PlayButton/PlayButton.d.ts +8 -0
  45. package/dist/components/PlayButton/PlayButton.es.js +9 -0
  46. package/dist/components/PlayButton/index.d.ts +1 -0
  47. package/dist/components/PlayButton/playButton.module.css.cjs.js +1 -0
  48. package/dist/components/PlayButton/playButton.module.css.es.js +11 -0
  49. package/dist/components/Pricing/Pricing.cjs.js +1 -0
  50. package/dist/components/Pricing/Pricing.d.ts +3 -0
  51. package/dist/components/Pricing/Pricing.es.js +41 -0
  52. package/dist/components/Pricing/components/BenefitItem/BenefitItem.cjs.js +1 -0
  53. package/dist/components/Pricing/components/BenefitItem/BenefitItem.d.ts +8 -0
  54. package/dist/components/Pricing/components/BenefitItem/BenefitItem.es.js +10 -0
  55. package/dist/components/Pricing/components/BenefitItem/benefitItem.module.css.cjs.js +1 -0
  56. package/dist/components/Pricing/components/BenefitItem/benefitItem.module.css.es.js +7 -0
  57. package/dist/components/Pricing/components/BenefitItem/index.d.ts +1 -0
  58. package/dist/components/Pricing/components/index.d.ts +1 -0
  59. package/dist/components/Pricing/index.d.ts +2 -0
  60. package/dist/components/Pricing/pricing.module.css.cjs.js +1 -0
  61. package/dist/components/Pricing/pricing.module.css.es.js +25 -0
  62. package/dist/components/Pricing/types.d.ts +17 -0
  63. package/dist/components/ProductGalleryCard/ProductGalleryCard.d.ts +1 -1
  64. package/dist/components/ProductGalleryCard/ProductGalleryCard.es.js +24 -3
  65. package/dist/components/ProgressButton/ProgressButton.cjs.js +1 -1
  66. package/dist/components/ProgressButton/ProgressButton.d.ts +2 -1
  67. package/dist/components/ProgressButton/ProgressButton.es.js +24 -12
  68. package/dist/components/RatingStars/RatingStars.cjs.js +1 -0
  69. package/dist/components/RatingStars/RatingStars.d.ts +6 -0
  70. package/dist/components/RatingStars/RatingStars.es.js +18 -0
  71. package/dist/components/RatingStars/index.d.ts +1 -0
  72. package/dist/components/RatingStars/ratingStars.module.css.cjs.js +1 -0
  73. package/dist/components/RatingStars/ratingStars.module.css.es.js +13 -0
  74. package/dist/components/StepsCarousel/StepsCarousel.es.js +47 -13
  75. package/dist/components/StudyGridCard/StudyGridCard.es.js +36 -6
  76. package/dist/components/Tabs/TabsWithFade.es.js +10 -1
  77. package/dist/components/Typography/Typography.es.js +8 -1
  78. package/dist/healthspan-marketing-ui.css +1 -1
  79. package/dist/icons/action/bracket-left.svg.cjs.js +1 -0
  80. package/dist/icons/action/bracket-left.svg.es.js +5 -0
  81. package/dist/icons/action/bracket-right.svg.cjs.js +1 -0
  82. package/dist/icons/action/bracket-right.svg.es.js +5 -0
  83. package/dist/icons/action/play.svg.cjs.js +1 -0
  84. package/dist/icons/action/play.svg.es.js +5 -0
  85. package/dist/modules/Benefits/Benefits.es.js +3 -26
  86. package/dist/modules/Benefits/components/BenefitItem/BenefitItem.es.js +3 -27
  87. package/dist/modules/Benefits/components/BenefitTag/BenefitTag.es.js +1 -10
  88. package/dist/modules/Compare/Compare.cjs.js +1 -0
  89. package/dist/modules/Compare/Compare.d.ts +3 -0
  90. package/dist/modules/Compare/Compare.es.js +26 -0
  91. package/dist/modules/Compare/compare.module.css.cjs.js +1 -0
  92. package/dist/modules/Compare/compare.module.css.es.js +13 -0
  93. package/dist/modules/Compare/index.d.ts +1 -0
  94. package/dist/modules/Compare/types.d.ts +9 -0
  95. package/dist/modules/Comparison/Comparison.es.js +20 -5
  96. package/dist/modules/FAQ/FAQ.cjs.js +1 -0
  97. package/dist/modules/FAQ/FAQ.d.ts +3 -0
  98. package/dist/modules/FAQ/FAQ.es.js +17 -0
  99. package/dist/modules/FAQ/faq.module.css.cjs.js +1 -0
  100. package/dist/modules/FAQ/faq.module.css.es.js +17 -0
  101. package/dist/modules/FAQ/index.d.ts +1 -0
  102. package/dist/modules/FAQ/types.d.ts +10 -0
  103. package/dist/modules/FeaturedIn/FeaturedIn.es.js +14 -5
  104. package/dist/modules/FeaturesGallery/FeaturesGallery.es.js +9 -1
  105. package/dist/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.es.js +32 -17
  106. package/dist/modules/FollowTheScience/FollowTheScience.es.js +21 -2
  107. package/dist/modules/ImageWithText/ImageWithText.cjs.js +1 -0
  108. package/dist/modules/ImageWithText/ImageWithText.d.ts +3 -0
  109. package/dist/modules/ImageWithText/ImageWithText.es.js +35 -0
  110. package/dist/modules/ImageWithText/imageWithText.module.css.cjs.js +1 -0
  111. package/dist/modules/ImageWithText/imageWithText.module.css.es.js +21 -0
  112. package/dist/modules/ImageWithText/index.d.ts +1 -0
  113. package/dist/modules/ImageWithText/types.d.ts +9 -0
  114. package/dist/modules/LongevityPathways/LongevityPathways.cjs.js +1 -0
  115. package/dist/modules/LongevityPathways/LongevityPathways.d.ts +3 -0
  116. package/dist/modules/LongevityPathways/LongevityPathways.es.js +19 -0
  117. package/dist/modules/LongevityPathways/index.d.ts +2 -0
  118. package/dist/modules/LongevityPathways/longevityPathways.module.css.cjs.js +1 -0
  119. package/dist/modules/LongevityPathways/longevityPathways.module.css.es.js +9 -0
  120. package/dist/modules/LongevityPathways/types.d.ts +9 -0
  121. package/dist/modules/OptimalHealth/OptimalHealth.cjs.js +1 -1
  122. package/dist/modules/OptimalHealth/OptimalHealth.es.js +24 -7
  123. package/dist/modules/OptimalHealth/components/ClockImages/ClockImages.cjs.js +1 -1
  124. package/dist/modules/OptimalHealth/components/ClockImages/ClockImages.es.js +53 -31
  125. package/dist/modules/OptimalHealth/components/ClockImages/clockImages.module.css.cjs.js +1 -1
  126. package/dist/modules/OptimalHealth/components/ClockImages/clockImages.module.css.es.js +25 -5
  127. package/dist/modules/OptimalHealth/optimalHealth.module.css.cjs.js +1 -1
  128. package/dist/modules/OptimalHealth/optimalHealth.module.css.es.js +17 -15
  129. package/dist/modules/OurProcess/OurProcess.cjs.js +1 -1
  130. package/dist/modules/OurProcess/OurProcess.d.ts +3 -2
  131. package/dist/modules/OurProcess/OurProcess.es.js +17 -8
  132. package/dist/modules/PairedProducts/PairedProducts.cjs.js +1 -1
  133. package/dist/modules/PairedProducts/PairedProducts.d.ts +2 -2
  134. package/dist/modules/PairedProducts/PairedProducts.es.js +1 -1
  135. package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.cjs.js +1 -0
  136. package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.d.ts +9 -0
  137. package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.es.js +102 -0
  138. package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.module.css.cjs.js +1 -0
  139. package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.module.css.es.js +29 -0
  140. package/dist/modules/SlidingTabsGallery/index.d.ts +1 -0
  141. package/dist/modules/Testimonial/Testimonial.cjs.js +1 -0
  142. package/dist/modules/Testimonial/Testimonial.d.ts +13 -0
  143. package/dist/modules/Testimonial/Testimonial.es.js +88 -0
  144. package/dist/modules/Testimonial/components/Product/Product.cjs.js +1 -0
  145. package/dist/modules/Testimonial/components/Product/Product.d.ts +7 -0
  146. package/dist/modules/Testimonial/components/Product/Product.es.js +23 -0
  147. package/dist/modules/Testimonial/components/Product/index.d.ts +1 -0
  148. package/dist/modules/Testimonial/components/Product/product.module.css.cjs.js +1 -0
  149. package/dist/modules/Testimonial/components/Product/product.module.css.es.js +17 -0
  150. package/dist/modules/Testimonial/components/TextCard/TextCard.cjs.js +1 -0
  151. package/dist/modules/Testimonial/components/TextCard/TextCard.d.ts +3 -0
  152. package/dist/modules/Testimonial/components/TextCard/TextCard.es.js +31 -0
  153. package/dist/modules/Testimonial/components/TextCard/index.d.ts +1 -0
  154. package/dist/modules/Testimonial/components/TextCard/textCard.module.css.cjs.js +1 -0
  155. package/dist/modules/Testimonial/components/TextCard/textCard.module.css.es.js +13 -0
  156. package/dist/modules/Testimonial/components/VideoCard/VideoCard.cjs.js +1 -0
  157. package/dist/modules/Testimonial/components/VideoCard/VideoCard.d.ts +11 -0
  158. package/dist/modules/Testimonial/components/VideoCard/VideoCard.es.js +62 -0
  159. package/dist/modules/Testimonial/components/VideoCard/index.d.ts +1 -0
  160. package/dist/modules/Testimonial/components/VideoCard/videoCard.module.css.cjs.js +1 -0
  161. package/dist/modules/Testimonial/components/VideoCard/videoCard.module.css.es.js +17 -0
  162. package/dist/modules/Testimonial/index.d.ts +1 -0
  163. package/dist/modules/Testimonial/testimonial.module.css.cjs.js +1 -0
  164. package/dist/modules/Testimonial/testimonial.module.css.es.js +25 -0
  165. package/dist/modules/Testimonial/types.d.ts +26 -0
  166. package/dist/modules/TrackProgress/TrackProgress.cjs.js +1 -0
  167. package/dist/modules/TrackProgress/TrackProgress.d.ts +10 -0
  168. package/dist/modules/TrackProgress/TrackProgress.es.js +24 -0
  169. package/dist/modules/TrackProgress/components/TimelineContent/TimelineContent.cjs.js +1 -0
  170. package/dist/modules/TrackProgress/components/TimelineContent/TimelineContent.d.ts +7 -0
  171. package/dist/modules/TrackProgress/components/TimelineContent/TimelineContent.es.js +90 -0
  172. package/dist/modules/TrackProgress/components/TimelineContent/index.d.ts +1 -0
  173. package/dist/modules/TrackProgress/components/TimelineContent/timelineContent.module.css.cjs.js +1 -0
  174. package/dist/modules/TrackProgress/components/TimelineContent/timelineContent.module.css.es.js +25 -0
  175. package/dist/modules/TrackProgress/index.d.ts +1 -0
  176. package/dist/modules/TrackProgress/trackProgress.module.css.cjs.js +1 -0
  177. package/dist/modules/TrackProgress/trackProgress.module.css.es.js +13 -0
  178. package/dist/modules/TrackProgress/types.d.ts +6 -0
  179. package/dist/modules/TypesOfTests/TypesOfTests.cjs.js +1 -1
  180. package/dist/modules/TypesOfTests/TypesOfTests.es.js +86 -47
  181. package/dist/modules/TypesOfTests/types.d.ts +4 -0
  182. package/dist/modules/TypesOfTests/typesOfTests.module.css.cjs.js +1 -1
  183. package/dist/modules/TypesOfTests/typesOfTests.module.css.es.js +14 -12
  184. package/dist/modules/YourProtocol/YourProtocol.es.js +19 -2
  185. package/dist/modules/YourProtocol/components/ProtocolTags/ProtocolTags.es.js +18 -5
  186. package/dist/node_modules/@gsap/react/src/index.cjs.js +9 -0
  187. package/dist/node_modules/@gsap/react/src/index.es.js +29 -0
  188. package/dist/node_modules/gsap/CSSPlugin.cjs.js +8 -0
  189. package/dist/node_modules/gsap/CSSPlugin.es.js +423 -0
  190. package/dist/node_modules/gsap/Flip.cjs.js +8 -0
  191. package/dist/node_modules/gsap/Flip.es.js +525 -0
  192. package/dist/node_modules/gsap/Observer.cjs.js +8 -0
  193. package/dist/node_modules/gsap/Observer.es.js +242 -0
  194. package/dist/node_modules/gsap/ScrollTrigger.cjs.js +8 -0
  195. package/dist/node_modules/gsap/ScrollTrigger.es.js +859 -0
  196. package/dist/node_modules/gsap/gsap-core.cjs.js +8 -0
  197. package/dist/node_modules/gsap/gsap-core.es.js +1651 -0
  198. package/dist/node_modules/gsap/index.cjs.js +1 -0
  199. package/dist/node_modules/gsap/index.es.js +13 -0
  200. package/dist/node_modules/gsap/utils/matrix.cjs.js +8 -0
  201. package/dist/node_modules/gsap/utils/matrix.es.js +104 -0
  202. package/dist/pageComponents/Gradient/Gradient.d.ts +5 -0
  203. package/dist/pageComponents/Gradient/index.d.ts +1 -0
  204. package/dist/pageComponents/StillHaveQuestions/StillHaveQuestions.d.ts +1 -0
  205. package/dist/pageComponents/StillHaveQuestions/index.d.ts +1 -0
  206. package/package.json +95 -4
  207. package/dist/modules/OptimalHealth/components/ClockImages/hooks.cjs.js +0 -1
  208. package/dist/modules/OptimalHealth/components/ClockImages/hooks.es.js +0 -13
@@ -2,18 +2,35 @@ import { jsx as i, jsxs as e } from "react/jsx-runtime";
2
2
  import { Button as t } from "../../components/Button/Button.es.js";
3
3
  import { HighlightedTitle as n } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
4
4
  import { Typography as c } from "../../components/Typography/Typography.es.js";
5
- import { cn as o } from "../../utils/cn/cn.es.js";
5
+ import { cn as s } from "../../utils/cn/cn.es.js";
6
6
  import { ClockImages as d } from "./components/ClockImages/ClockImages.es.js";
7
7
  import a from "./optimalHealth.module.css.es.js";
8
- const b = ({ title: s, description: m, link: r, images: l }) => /* @__PURE__ */ i("section", { className: a.root, children: /* @__PURE__ */ e("div", { className: a.container, children: [
8
+ const b = ({ title: o, description: m, link: r, images: l }) => /* @__PURE__ */ i("section", { className: a.root, children: /* @__PURE__ */ i("div", { className: a.container, children: /* @__PURE__ */ e("div", { className: a.wrapper, children: [
9
9
  /* @__PURE__ */ i(d, { images: l }),
10
10
  /* @__PURE__ */ e("div", { className: a.content, children: [
11
- /* @__PURE__ */ i(n, { title: s, className: a.title, defaultVariant: "displaySm", mobileVariant: "headingLg" }),
12
- /* @__PURE__ */ i(c, { as: "p", defaultVariant: "bodyLg", mobileVariant: "bodySm", className: a.description, children: m }),
13
- /* @__PURE__ */ i("div", { className: o(a.actions, a.desktop), children: /* @__PURE__ */ i(t, { as: "a", variant: "primary", size: "lg", href: r, children: "LEARN MORE" }) }),
14
- /* @__PURE__ */ i("div", { className: o(a.actions, a.mobile), children: /* @__PURE__ */ i(t, { as: "a", variant: "primary", size: "sm", href: r, children: "LEARN MORE" }) })
11
+ /* @__PURE__ */ i(
12
+ n,
13
+ {
14
+ title: o,
15
+ className: a.title,
16
+ defaultVariant: "displaySm",
17
+ mobileVariant: "headingLg"
18
+ }
19
+ ),
20
+ /* @__PURE__ */ i(
21
+ c,
22
+ {
23
+ as: "p",
24
+ defaultVariant: "bodyLg",
25
+ mobileVariant: "bodySm",
26
+ className: a.description,
27
+ children: m
28
+ }
29
+ ),
30
+ /* @__PURE__ */ i("div", { className: s(a.actions, a.desktop), children: /* @__PURE__ */ i(t, { as: "a", variant: "primary", size: "lg", href: r, children: "LEARN MORE" }) }),
31
+ /* @__PURE__ */ i("div", { className: s(a.actions, a.mobile), children: /* @__PURE__ */ i(t, { as: "a", variant: "primary", size: "sm", href: r, children: "LEARN MORE" }) })
15
32
  ] })
16
- ] }) });
33
+ ] }) }) });
17
34
  export {
18
35
  b as OptimalHealth
19
36
  };
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),n=require("../../../../utils/cn/cn.cjs.js"),o=require("./hooks.cjs.js"),e=require("./clockImages.module.css.cjs.js"),I=10,d=2*Math.PI/I,i=-Math.PI/2,q=[{key:"smallSquareImage1",className:e.default.smallSquareImage},{key:"rectImage2",className:e.default.rectImage},{key:"smallSquareImage3",className:e.default.smallSquareImage},{key:"largeSquareImage4",className:e.default.largeSquareImage},{key:"rectImage5",className:e.default.rectImage},{key:"smallSquareImage6",className:e.default.smallSquareImage},{key:"rectImage7",className:e.default.rectImage},{key:"smallSquareImage8",className:e.default.smallSquareImage},{key:"rectImage9",className:e.default.rectImage},{key:"largeSquareImage10",className:e.default.largeSquareImage}],N=({images:r})=>{const s=o.useResponsiveRadius();return l.jsx("div",{className:e.default.root,children:q.map(({key:a,className:m},c)=>{const t=i+c*d,u=s*Math.cos(t),g=s*Math.sin(t);return l.jsx("img",{src:r[a],className:n.cn(e.default.image,m),style:{transform:`translate(-50%, -50%) translate(${u}px, ${g}px)`},alt:a},a)})})};exports.ClockImages=N;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),g=require("../../../../node_modules/gsap/index.cjs.js"),y=require("../../../../node_modules/gsap/ScrollTrigger.cjs.js"),e=require("./clockImages.module.css.cjs.js"),f=require("../../../../utils/cn/cn.cjs.js"),q=require("react");g.gsap.registerPlugin(y.ScrollTrigger);const s=[{key:"smallSquareImage1",className:e.default.smallSquareImage,to:{x:100,y:60}},{key:"rectImage2",className:e.default.rectImage,to:{x:70,y:70}},{key:"smallSquareImage3",className:e.default.smallSquareImage,to:{x:40,y:60}},{key:"largeSquareImage4",className:e.default.largeSquareImage,to:{x:-110,y:55}},{key:"rectImage5",className:e.default.rectImage,to:{x:-150,y:69}},{key:"smallSquareImage6",className:e.default.smallSquareImage,to:{x:-100,y:9}},{key:"rectImage7",className:e.default.rectImage,to:{x:-65,y:-100}},{key:"smallSquareImage8",className:e.default.smallSquareImage,to:{x:50,y:-100}},{key:"rectImage9",className:e.default.rectImage,to:{x:50,y:-50}},{key:"largeSquareImage10",className:e.default.largeSquareImage,to:{x:56,y:13}}],S=({images:n})=>{const t=q.useRef(null),i=a=>{var c,o,m;const r=(c=t.current)==null?void 0:c.querySelector(`[data-ohealth-image-key="${a}"]`);if(!r)return;const d=((o=s.find(l=>l.key===a))==null?void 0:o.to.x)||0,I=((m=s.find(l=>l.key===a))==null?void 0:m.to.y)||0;g.gsap.fromTo(r,{x:0,y:0},{x:d,y:I,duration:5,ease:"power2.out",scrollTrigger:{trigger:t.current,start:"center center",end:"center center",once:!0,scrub:!1,toggleActions:"play none none reverse"}})};return u.jsx("div",{ref:t,className:e.default.root,children:s.map(({key:a,className:r})=>u.jsx("img",{src:n[a],className:f.cn(e.default.image,r,e.default[a]),"data-ohealth-image-key":a,alt:a,onLoad:()=>i(a)},a))})};exports.ClockImages=S;
@@ -1,37 +1,59 @@
1
1
  "use client";
2
- import { jsx as r } from "react/jsx-runtime";
3
- import { cn as o } from "../../../../utils/cn/cn.es.js";
4
- import { useResponsiveRadius as n } from "./hooks.es.js";
5
- import a from "./clockImages.module.css.es.js";
6
- const u = 10, N = 2 * Math.PI / u, S = -Math.PI / 2, i = [
7
- { key: "smallSquareImage1", className: a.smallSquareImage },
8
- { key: "rectImage2", className: a.rectImage },
9
- { key: "smallSquareImage3", className: a.smallSquareImage },
10
- { key: "largeSquareImage4", className: a.largeSquareImage },
11
- { key: "rectImage5", className: a.rectImage },
12
- { key: "smallSquareImage6", className: a.smallSquareImage },
13
- { key: "rectImage7", className: a.rectImage },
14
- { key: "smallSquareImage8", className: a.smallSquareImage },
15
- { key: "rectImage9", className: a.rectImage },
16
- { key: "largeSquareImage10", className: a.largeSquareImage }
17
- ], h = ({ images: t }) => {
18
- const s = n();
19
- return /* @__PURE__ */ r("div", { className: a.root, children: i.map(({ key: e, className: l }, c) => {
20
- const m = S + c * N, g = s * Math.cos(m), I = s * Math.sin(m);
21
- return /* @__PURE__ */ r(
22
- "img",
2
+ import { jsx as g } from "react/jsx-runtime";
3
+ import { gsap as n } from "../../../../node_modules/gsap/index.es.js";
4
+ import { ScrollTrigger as S } from "../../../../node_modules/gsap/ScrollTrigger.es.js";
5
+ import e from "./clockImages.module.css.es.js";
6
+ import { cn as x } from "../../../../utils/cn/cn.es.js";
7
+ import { useRef as f } from "react";
8
+ n.registerPlugin(S);
9
+ const s = [
10
+ { key: "smallSquareImage1", className: e.smallSquareImage, to: { x: 100, y: 60 } },
11
+ { key: "rectImage2", className: e.rectImage, to: { x: 70, y: 70 } },
12
+ { key: "smallSquareImage3", className: e.smallSquareImage, to: { x: 40, y: 60 } },
13
+ { key: "largeSquareImage4", className: e.largeSquareImage, to: { x: -110, y: 55 } },
14
+ { key: "rectImage5", className: e.rectImage, to: { x: -150, y: 69 } },
15
+ { key: "smallSquareImage6", className: e.smallSquareImage, to: { x: -100, y: 9 } },
16
+ { key: "rectImage7", className: e.rectImage, to: { x: -65, y: -100 } },
17
+ { key: "smallSquareImage8", className: e.smallSquareImage, to: { x: 50, y: -100 } },
18
+ { key: "rectImage9", className: e.rectImage, to: { x: 50, y: -50 } },
19
+ { key: "largeSquareImage10", className: e.largeSquareImage, to: { x: 56, y: 13 } }
20
+ ], C = ({ images: i }) => {
21
+ const t = f(null), u = (a) => {
22
+ var o, l, c;
23
+ const r = (o = t.current) == null ? void 0 : o.querySelector(`[data-ohealth-image-key="${a}"]`);
24
+ if (!r) return;
25
+ const I = ((l = s.find((m) => m.key === a)) == null ? void 0 : l.to.x) || 0, y = ((c = s.find((m) => m.key === a)) == null ? void 0 : c.to.y) || 0;
26
+ n.fromTo(
27
+ r,
28
+ { x: 0, y: 0 },
23
29
  {
24
- src: t[e],
25
- className: o(a.image, l),
26
- style: {
27
- transform: `translate(-50%, -50%) translate(${g}px, ${I}px)`
28
- },
29
- alt: e
30
- },
31
- e
30
+ x: I,
31
+ y,
32
+ duration: 5,
33
+ ease: "power2.out",
34
+ scrollTrigger: {
35
+ trigger: t.current,
36
+ start: "center center",
37
+ end: "center center",
38
+ once: !0,
39
+ scrub: !1,
40
+ toggleActions: "play none none reverse"
41
+ }
42
+ }
32
43
  );
33
- }) });
44
+ };
45
+ return /* @__PURE__ */ g("div", { ref: t, className: e.root, children: s.map(({ key: a, className: r }) => /* @__PURE__ */ g(
46
+ "img",
47
+ {
48
+ src: i[a],
49
+ className: x(e.image, r, e[a]),
50
+ "data-ohealth-image-key": a,
51
+ alt: a,
52
+ onLoad: () => u(a)
53
+ },
54
+ a
55
+ )) });
34
56
  };
35
57
  export {
36
- h as ClockImages
58
+ C as ClockImages
37
59
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="clockImages-module__root___EP8LS",a="clockImages-module__image___MtqIw",m="clockImages-module__smallSquareImage___NkpW3",l="clockImages-module__largeSquareImage___mPBhn",o="clockImages-module__rectImage___GMy9G",g={root:e,image:a,smallSquareImage:m,largeSquareImage:l,rectImage:o};exports.default=g;exports.image=a;exports.largeSquareImage=l;exports.rectImage=o;exports.root=e;exports.smallSquareImage=m;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="clockImages-module__root___EP8LS",a="clockImages-module__image___MtqIw",m="clockImages-module__smallSquareImage___NkpW3",l="clockImages-module__largeSquareImage___mPBhn",g="clockImages-module__rectImage___GMy9G",_="clockImages-module__smallSquareImage1___yHzSr",r="clockImages-module__rectImage2___yTVQv",I="clockImages-module__smallSquareImage3___2Ulue",c="clockImages-module__largeSquareImage4___ENR09",o="clockImages-module__rectImage5___Q6nwe",s="clockImages-module__smallSquareImage6___JIgK4",u="clockImages-module__rectImage7___LLPub",t="clockImages-module__smallSquareImage8___hK-yx",S="clockImages-module__rectImage9___FJ8gO",q="clockImages-module__largeSquareImage10___yOvmO",n={root:e,image:a,smallSquareImage:m,largeSquareImage:l,rectImage:g,smallSquareImage1:_,rectImage2:r,smallSquareImage3:I,largeSquareImage4:c,rectImage5:o,smallSquareImage6:s,rectImage7:u,smallSquareImage8:t,rectImage9:S,largeSquareImage10:q};exports.default=n;exports.image=a;exports.largeSquareImage=l;exports.largeSquareImage10=q;exports.largeSquareImage4=c;exports.rectImage=g;exports.rectImage2=r;exports.rectImage5=o;exports.rectImage7=u;exports.rectImage9=S;exports.root=e;exports.smallSquareImage=m;exports.smallSquareImage1=_;exports.smallSquareImage3=I;exports.smallSquareImage6=s;exports.smallSquareImage8=t;
@@ -1,15 +1,35 @@
1
- const e = "clockImages-module__root___EP8LS", a = "clockImages-module__image___MtqIw", m = "clockImages-module__smallSquareImage___NkpW3", _ = "clockImages-module__largeSquareImage___mPBhn", o = "clockImages-module__rectImage___GMy9G", l = {
1
+ const e = "clockImages-module__root___EP8LS", a = "clockImages-module__image___MtqIw", m = "clockImages-module__smallSquareImage___NkpW3", _ = "clockImages-module__largeSquareImage___mPBhn", l = "clockImages-module__rectImage___GMy9G", g = "clockImages-module__smallSquareImage1___yHzSr", c = "clockImages-module__rectImage2___yTVQv", I = "clockImages-module__smallSquareImage3___2Ulue", o = "clockImages-module__largeSquareImage4___ENR09", r = "clockImages-module__rectImage5___Q6nwe", s = "clockImages-module__smallSquareImage6___JIgK4", u = "clockImages-module__rectImage7___LLPub", t = "clockImages-module__smallSquareImage8___hK-yx", S = "clockImages-module__rectImage9___FJ8gO", q = "clockImages-module__largeSquareImage10___yOvmO", n = {
2
2
  root: e,
3
3
  image: a,
4
4
  smallSquareImage: m,
5
5
  largeSquareImage: _,
6
- rectImage: o
6
+ rectImage: l,
7
+ smallSquareImage1: g,
8
+ rectImage2: c,
9
+ smallSquareImage3: I,
10
+ largeSquareImage4: o,
11
+ rectImage5: r,
12
+ smallSquareImage6: s,
13
+ rectImage7: u,
14
+ smallSquareImage8: t,
15
+ rectImage9: S,
16
+ largeSquareImage10: q
7
17
  };
8
18
  export {
9
- l as default,
19
+ n as default,
10
20
  a as image,
11
21
  _ as largeSquareImage,
12
- o as rectImage,
22
+ q as largeSquareImage10,
23
+ o as largeSquareImage4,
24
+ l as rectImage,
25
+ c as rectImage2,
26
+ r as rectImage5,
27
+ u as rectImage7,
28
+ S as rectImage9,
13
29
  e as root,
14
- m as smallSquareImage
30
+ m as smallSquareImage,
31
+ g as smallSquareImage1,
32
+ I as smallSquareImage3,
33
+ s as smallSquareImage6,
34
+ t as smallSquareImage8
15
35
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="optimalHealth-module__root___l-DfB",o="optimalHealth-module__container___Nc-Cv",e="optimalHealth-module__content___5ntd8",_="optimalHealth-module__description___3MlIW",l="optimalHealth-module__actions___IWhyr",n="optimalHealth-module__mobile___8lH1x",i="optimalHealth-module__desktop___Nh1ZJ",c={root:t,container:o,content:e,description:_,actions:l,mobile:n,desktop:i};exports.actions=l;exports.container=o;exports.content=e;exports.default=c;exports.description=_;exports.desktop=i;exports.mobile=n;exports.root=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="optimalHealth-module__root___l-DfB",o="optimalHealth-module__wrapper___DdVh-",e="optimalHealth-module__container___Nc-Cv",_="optimalHealth-module__content___5ntd8",l="optimalHealth-module__description___3MlIW",n="optimalHealth-module__actions___IWhyr",a="optimalHealth-module__mobile___8lH1x",i="optimalHealth-module__desktop___Nh1ZJ",c={root:t,wrapper:o,container:e,content:_,description:l,actions:n,mobile:a,desktop:i};exports.actions=n;exports.container=e;exports.content=_;exports.default=c;exports.description=l;exports.desktop=i;exports.mobile=a;exports.root=t;exports.wrapper=o;
@@ -1,19 +1,21 @@
1
- const o = "optimalHealth-module__root___l-DfB", t = "optimalHealth-module__container___Nc-Cv", _ = "optimalHealth-module__content___5ntd8", e = "optimalHealth-module__description___3MlIW", l = "optimalHealth-module__actions___IWhyr", n = "optimalHealth-module__mobile___8lH1x", a = "optimalHealth-module__desktop___Nh1ZJ", i = {
1
+ const o = "optimalHealth-module__root___l-DfB", t = "optimalHealth-module__wrapper___DdVh-", _ = "optimalHealth-module__container___Nc-Cv", e = "optimalHealth-module__content___5ntd8", l = "optimalHealth-module__description___3MlIW", n = "optimalHealth-module__actions___IWhyr", a = "optimalHealth-module__mobile___8lH1x", i = "optimalHealth-module__desktop___Nh1ZJ", c = {
2
2
  root: o,
3
- container: t,
4
- content: _,
5
- description: e,
6
- actions: l,
7
- mobile: n,
8
- desktop: a
3
+ wrapper: t,
4
+ container: _,
5
+ content: e,
6
+ description: l,
7
+ actions: n,
8
+ mobile: a,
9
+ desktop: i
9
10
  };
10
11
  export {
11
- l as actions,
12
- t as container,
13
- _ as content,
14
- i as default,
15
- e as description,
16
- a as desktop,
17
- n as mobile,
18
- o as root
12
+ n as actions,
13
+ _ as container,
14
+ e as content,
15
+ c as default,
16
+ l as description,
17
+ i as desktop,
18
+ a as mobile,
19
+ o as root,
20
+ t as wrapper
19
21
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("../../components/StepsCarousel/StepsCarousel.cjs.js"),o=require("../../components/Button/Button.cjs.js"),a=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),s=require("./ourProcess.module.css.cjs.js"),d=({title:i,label:n,colorScheme:t,howItWorks:r,steps:u})=>e.jsx("section",{className:s.default.root,"data-scheme":t,children:e.jsxs("div",{className:s.default.container,children:[e.jsxs("div",{className:s.default.header,children:[e.jsx(a.HighlightedTitle,{title:i,label:n,colorScheme:t}),r&&e.jsx("div",{children:e.jsx(o.Button,{as:"a",variant:t==="light"?"muted":"muted-invert",size:"lg",href:r,children:"How it works"})})]}),e.jsx(l.StepsCarousel,{steps:u,colorScheme:t})]})});exports.OurProcess=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("../../components/StepsCarousel/StepsCarousel.cjs.js"),a=require("../../components/Button/Button.cjs.js"),d=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),t=require("./ourProcess.module.css.cjs.js"),c=({title:i,label:n,colorScheme:s,steps:o,buttonLabel:u,buttonLink:r})=>e.jsx("section",{className:t.default.root,"data-scheme":s,children:e.jsxs("div",{className:t.default.container,children:[e.jsxs("div",{className:t.default.header,children:[e.jsx(d.HighlightedTitle,{title:i,label:n,colorScheme:s}),r&&e.jsx("div",{children:e.jsx(a.Button,{as:"a",variant:s==="light"?"muted":"muted-invert",size:"lg",href:r,children:u||"How it works"})})]}),e.jsx(l.StepsCarousel,{steps:o,colorScheme:s})]})});exports.OurProcess=c;
@@ -7,6 +7,7 @@ export type OurProcessProps = {
7
7
  label: string;
8
8
  colorScheme: TColorScheme;
9
9
  steps: TStepsCarouselView;
10
- howItWorks?: string;
10
+ buttonLabel?: string;
11
+ buttonLink?: string;
11
12
  };
12
- export declare const OurProcess: ({ title, label, colorScheme, howItWorks, steps }: OurProcessProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const OurProcess: ({ title, label, colorScheme, steps, buttonLabel, buttonLink }: OurProcessProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,15 +1,24 @@
1
1
  import { jsx as r, jsxs as s } from "react/jsx-runtime";
2
- import { StepsCarousel as n } from "../../components/StepsCarousel/StepsCarousel.es.js";
3
- import { Button as o } from "../../components/Button/Button.es.js";
4
- import { HighlightedTitle as l } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
2
+ import { StepsCarousel as l } from "../../components/StepsCarousel/StepsCarousel.es.js";
3
+ import { Button as n } from "../../components/Button/Button.es.js";
4
+ import { HighlightedTitle as h } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
5
5
  import t from "./ourProcess.module.css.es.js";
6
- const v = ({ title: a, label: d, colorScheme: i, howItWorks: e, steps: m }) => /* @__PURE__ */ r("section", { className: t.root, "data-scheme": i, children: /* @__PURE__ */ s("div", { className: t.container, children: [
6
+ const g = ({ title: a, label: o, colorScheme: i, steps: d, buttonLabel: m, buttonLink: e }) => /* @__PURE__ */ r("section", { className: t.root, "data-scheme": i, children: /* @__PURE__ */ s("div", { className: t.container, children: [
7
7
  /* @__PURE__ */ s("div", { className: t.header, children: [
8
- /* @__PURE__ */ r(l, { title: a, label: d, colorScheme: i }),
9
- e && /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(o, { as: "a", variant: i === "light" ? "muted" : "muted-invert", size: "lg", href: e, children: "How it works" }) })
8
+ /* @__PURE__ */ r(h, { title: a, label: o, colorScheme: i }),
9
+ e && /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(
10
+ n,
11
+ {
12
+ as: "a",
13
+ variant: i === "light" ? "muted" : "muted-invert",
14
+ size: "lg",
15
+ href: e,
16
+ children: m || "How it works"
17
+ }
18
+ ) })
10
19
  ] }),
11
- /* @__PURE__ */ r(n, { steps: m, colorScheme: i })
20
+ /* @__PURE__ */ r(l, { steps: d, colorScheme: i })
12
21
  ] }) });
13
22
  export {
14
- v as OurProcess
23
+ g as OurProcess
15
24
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("../../components/Button/Button.cjs.js"),c=require("../../components/Typography/Typography.cjs.js"),n=require("../../components/ProductPairs/ProductPairs.cjs.js"),t=require("../../utils/cn/cn.cjs.js"),r=require("./pairedProducts.module.css.cjs.js"),o=({label:d,button:a,productCards:i})=>e.jsx("section",{className:r.default.root,children:e.jsxs("div",{className:r.default.container,children:[e.jsxs("div",{className:r.default.header,children:[e.jsx(c.Typography,{as:"h2",defaultVariant:"displaySm",mobileVariant:"headingLg",children:d}),e.jsx("div",{className:t.cn(r.default.buttonWrap,r.default.mobile),children:e.jsx(s.Button,{as:"a",href:a.href,variant:"muted",size:"sm",children:a.label})}),e.jsx("div",{className:t.cn(r.default.buttonWrap,r.default.desktop),children:e.jsx(s.Button,{as:"a",href:a.href,variant:"muted",size:"lg",children:a.label})})]}),e.jsx("div",{className:r.default.productCards,children:e.jsx(n.ProductPairs,{productCards:i})})]})});exports.PairedProducts=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("../../components/Button/Button.cjs.js"),c=require("../../components/Typography/Typography.cjs.js"),n=require("../../components/ProductPairs/ProductPairs.cjs.js"),t=require("../../utils/cn/cn.cjs.js"),r=require("./pairedProducts.module.css.cjs.js"),o=({title:d,button:a,productCards:i})=>e.jsx("section",{className:r.default.root,children:e.jsxs("div",{className:r.default.container,children:[e.jsxs("div",{className:r.default.header,children:[e.jsx(c.Typography,{as:"h2",defaultVariant:"displaySm",mobileVariant:"headingLg",children:d}),e.jsx("div",{className:t.cn(r.default.buttonWrap,r.default.mobile),children:e.jsx(s.Button,{as:"a",href:a.href,variant:"muted",size:"sm",children:a.label})}),e.jsx("div",{className:t.cn(r.default.buttonWrap,r.default.desktop),children:e.jsx(s.Button,{as:"a",href:a.href,variant:"muted",size:"lg",children:a.label})})]}),e.jsx("div",{className:r.default.productCards,children:e.jsx(n.ProductPairs,{productCards:i})})]})});exports.PairedProducts=o;
@@ -1,12 +1,12 @@
1
1
  import { TProductGalleryCardView } from '../../components/ProductGalleryCard';
2
2
 
3
3
  type PairedProductsProps = {
4
- label: string;
4
+ title: string;
5
5
  button: {
6
6
  label: string;
7
7
  href: string;
8
8
  };
9
9
  productCards: Array<TProductGalleryCardView>;
10
10
  };
11
- export declare const PairedProducts: ({ label, button, productCards }: PairedProductsProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const PairedProducts: ({ title, button, productCards }: PairedProductsProps) => import("react/jsx-runtime").JSX.Element;
12
12
  export {};
@@ -4,7 +4,7 @@ import { Typography as m } from "../../components/Typography/Typography.es.js";
4
4
  import { ProductPairs as t } from "../../components/ProductPairs/ProductPairs.es.js";
5
5
  import { cn as d } from "../../utils/cn/cn.es.js";
6
6
  import a from "./pairedProducts.module.css.es.js";
7
- const v = ({ label: l, button: e, productCards: o }) => /* @__PURE__ */ r("section", { className: a.root, children: /* @__PURE__ */ i("div", { className: a.container, children: [
7
+ const v = ({ title: l, button: e, productCards: o }) => /* @__PURE__ */ r("section", { className: a.root, children: /* @__PURE__ */ i("div", { className: a.container, children: [
8
8
  /* @__PURE__ */ i("div", { className: a.header, children: [
9
9
  /* @__PURE__ */ r(m, { as: "h2", defaultVariant: "displaySm", mobileVariant: "headingLg", children: l }),
10
10
  /* @__PURE__ */ r("div", { className: d(a.buttonWrap, a.mobile), children: /* @__PURE__ */ r(s, { as: "a", href: e.href, variant: "muted", size: "sm", children: e.label }) }),
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),f=require("react"),T=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),t=require("./SlidingTabsGallery.module.css.cjs.js"),v=require("../../utils/cn/cn.cjs.js");;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */const N=require("../../styles/typography.module.css.cjs.js"),R=require("../../components/Icon/Icon.cjs.js"),y=require("../../node_modules/gsap/index.cjs.js"),p=require("../../node_modules/gsap/Flip.cjs.js"),b=require("../../node_modules/@gsap/react/src/index.cjs.js"),x=require("../../components/Typography/Typography.cjs.js");y.gsap.registerPlugin(p.Flip);const C=({title:q,tabs:o})=>{const s=f.useRef(null),a=f.useRef(null),[c,g]=f.useState(o[0]);b.useGSAP(()=>{const i=s.current,r=a.current,u=n=>{if(i&&r&&n){const m=r.getBoundingClientRect(),h=n.getBoundingClientRect();y.gsap.set(i,{left:h.left-m.left,top:h.top-m.top,width:h.width,height:h.height})}};if(r&&r.children.length>1){const n=r.children[1];n&&u(n)}let l;const d=()=>{clearTimeout(l),l=setTimeout(()=>{if(i&&r&&r.children.length>1&&o.length>0){const n=r.children[1];n&&(u(n),g(o[0]))}},250)};return window.addEventListener("resize",d),()=>{clearTimeout(l),window.removeEventListener("resize",d)}},{dependencies:[o,g],scope:a});const j=(i,r)=>{if(i===c)return;const u=p.Flip.getState(s.current);if(g(i),s.current&&a.current&&a.current.children.length>r+1){const l=a.current.children[r+1];if(l){const d=a.current.getBoundingClientRect(),n=l.getBoundingClientRect();s.current.style.left=`${n.left-d.left}px`,s.current.style.top=`${n.top-d.top}px`,s.current.style.width=`${n.width}px`,s.current.style.height=`${n.height}px`}}p.Flip.from(u,{targets:s.current,duration:.3,ease:"power1.inOut"})};return e.jsx("section",{className:t.default.root,children:e.jsxs("div",{className:t.default.container,children:[e.jsx(T.HighlightedTitle,{as:"div",title:q,className:t.default.header,colorScheme:"dark"}),e.jsxs("div",{className:t.default.content,children:[c.image&&e.jsx("div",{className:t.default.imageWrap,children:e.jsx("img",{src:c.image,alt:"Total Care",className:t.default.image})}),e.jsx("div",{className:t.default.tabsContainer,children:e.jsxs("div",{ref:a,className:t.default.tabs,children:[e.jsx("div",{ref:s,id:"marker",className:t.default.marker}),o.map((i,r)=>e.jsxs("button",{className:v.cn(t.default.tab,{[t.default.active]:c===i}),onClick:()=>j(i,r),children:[i.icon&&e.jsx(x.Typography,{defaultVariant:"displayMd",className:t.default.icon,children:e.jsx(R.Icon,{name:i.icon})}),e.jsx(x.Typography,{defaultVariant:"displayMd",className:N.default.headingXs,children:i.label})]},i.label))]})}),c.description&&e.jsx("div",{className:t.default.description,children:e.jsx(T.HighlightedTitle,{as:"div",defaultVariant:"headingXs",className:t.default.descriptionText,title:c.description,colorScheme:"dark"})})]})]})})};exports.SlidingTabsGallery=C;
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ import { TContentTab } from '../../components/ContentTabs';
3
+
4
+ export type SlidingTabsGalleryProps = {
5
+ title: ReactNode;
6
+ label: string;
7
+ tabs: ReadonlyArray<TContentTab>;
8
+ };
9
+ export declare const SlidingTabsGallery: ({ title, tabs }: SlidingTabsGalleryProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,102 @@
1
+ "use client";
2
+ import { jsx as n, jsxs as h } from "react/jsx-runtime";
3
+ import { useRef as T, useState as k } from "react";
4
+ import { HighlightedTitle as v } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
5
+ import e from "./SlidingTabsGallery.module.css.es.js";
6
+ import { cn as w } from "../../utils/cn/cn.es.js";
7
+ /* empty css */
8
+ /* empty css */
9
+ /* empty css */
10
+ /* empty css */
11
+ /* empty css */
12
+ import S from "../../styles/typography.module.css.es.js";
13
+ import { Icon as b } from "../../components/Icon/Icon.es.js";
14
+ import { gsap as y } from "../../node_modules/gsap/index.es.js";
15
+ import { Flip as f } from "../../node_modules/gsap/Flip.es.js";
16
+ import { useGSAP as x } from "../../node_modules/@gsap/react/src/index.es.js";
17
+ import { Typography as N } from "../../components/Typography/Typography.es.js";
18
+ y.registerPlugin(f);
19
+ const O = ({ title: C, tabs: l }) => {
20
+ const o = T(null), c = T(null), [s, u] = k(l[0]);
21
+ x(() => {
22
+ const t = o.current, r = c.current, m = (i) => {
23
+ if (t && r && i) {
24
+ const g = r.getBoundingClientRect(), p = i.getBoundingClientRect();
25
+ y.set(t, {
26
+ left: p.left - g.left,
27
+ top: p.top - g.top,
28
+ width: p.width,
29
+ height: p.height
30
+ });
31
+ }
32
+ };
33
+ if (r && r.children.length > 1) {
34
+ const i = r.children[1];
35
+ i && m(i);
36
+ }
37
+ let a;
38
+ const d = () => {
39
+ clearTimeout(a), a = setTimeout(() => {
40
+ if (t && r && r.children.length > 1 && l.length > 0) {
41
+ const i = r.children[1];
42
+ i && (m(i), u(l[0]));
43
+ }
44
+ }, 250);
45
+ };
46
+ return window.addEventListener("resize", d), () => {
47
+ clearTimeout(a), window.removeEventListener("resize", d);
48
+ };
49
+ }, { dependencies: [l, u], scope: c });
50
+ const R = (t, r) => {
51
+ if (t === s) return;
52
+ const m = f.getState(o.current);
53
+ if (u(t), o.current && c.current && c.current.children.length > r + 1) {
54
+ const a = c.current.children[r + 1];
55
+ if (a) {
56
+ const d = c.current.getBoundingClientRect(), i = a.getBoundingClientRect();
57
+ o.current.style.left = `${i.left - d.left}px`, o.current.style.top = `${i.top - d.top}px`, o.current.style.width = `${i.width}px`, o.current.style.height = `${i.height}px`;
58
+ }
59
+ }
60
+ f.from(m, {
61
+ targets: o.current,
62
+ duration: 0.3,
63
+ ease: "power1.inOut"
64
+ });
65
+ };
66
+ return /* @__PURE__ */ n("section", { className: e.root, children: /* @__PURE__ */ h("div", { className: e.container, children: [
67
+ /* @__PURE__ */ n(v, { as: "div", title: C, className: e.header, colorScheme: "dark" }),
68
+ /* @__PURE__ */ h("div", { className: e.content, children: [
69
+ s.image && /* @__PURE__ */ n("div", { className: e.imageWrap, children: /* @__PURE__ */ n("img", { src: s.image, alt: "Total Care", className: e.image }) }),
70
+ /* @__PURE__ */ n("div", { className: e.tabsContainer, children: /* @__PURE__ */ h("div", { ref: c, className: e.tabs, children: [
71
+ /* @__PURE__ */ n("div", { ref: o, id: "marker", className: e.marker }),
72
+ l.map((t, r) => /* @__PURE__ */ h(
73
+ "button",
74
+ {
75
+ className: w(e.tab, {
76
+ [e.active]: s === t
77
+ }),
78
+ onClick: () => R(t, r),
79
+ children: [
80
+ t.icon && /* @__PURE__ */ n(N, { defaultVariant: "displayMd", className: e.icon, children: /* @__PURE__ */ n(b, { name: t.icon }) }),
81
+ /* @__PURE__ */ n(N, { defaultVariant: "displayMd", className: S.headingXs, children: t.label })
82
+ ]
83
+ },
84
+ t.label
85
+ ))
86
+ ] }) }),
87
+ s.description && /* @__PURE__ */ n("div", { className: e.description, children: /* @__PURE__ */ n(
88
+ v,
89
+ {
90
+ as: "div",
91
+ defaultVariant: "headingXs",
92
+ className: e.descriptionText,
93
+ title: s.description,
94
+ colorScheme: "dark"
95
+ }
96
+ ) })
97
+ ] })
98
+ ] }) });
99
+ };
100
+ export {
101
+ O as SlidingTabsGallery
102
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="SlidingTabsGallery-module__root___BsvYn",a="SlidingTabsGallery-module__container___vP0rd",t="SlidingTabsGallery-module__header___eJQXu",_="SlidingTabsGallery-module__content___jjd1o",l="SlidingTabsGallery-module__tabsContainer___Se1lx",i="SlidingTabsGallery-module__tabs___ZEKrF",n="SlidingTabsGallery-module__tab___Ztklx",o="SlidingTabsGallery-module__active___XatLw",r="SlidingTabsGallery-module__marker___c5lgj",s="SlidingTabsGallery-module__imageWrap___OWtqZ",d="SlidingTabsGallery-module__description___JBoEm",c="SlidingTabsGallery-module__image___E02Sh",b={root:e,container:a,header:t,content:_,tabsContainer:l,tabs:i,tab:n,active:o,marker:r,imageWrap:s,description:d,image:c};exports.active=o;exports.container=a;exports.content=_;exports.default=b;exports.description=d;exports.header=t;exports.image=c;exports.imageWrap=s;exports.marker=r;exports.root=e;exports.tab=n;exports.tabs=i;exports.tabsContainer=l;
@@ -0,0 +1,29 @@
1
+ const a = "SlidingTabsGallery-module__root___BsvYn", _ = "SlidingTabsGallery-module__container___vP0rd", e = "SlidingTabsGallery-module__header___eJQXu", l = "SlidingTabsGallery-module__content___jjd1o", t = "SlidingTabsGallery-module__tabsContainer___Se1lx", n = "SlidingTabsGallery-module__tabs___ZEKrF", o = "SlidingTabsGallery-module__tab___Ztklx", i = "SlidingTabsGallery-module__active___XatLw", r = "SlidingTabsGallery-module__marker___c5lgj", s = "SlidingTabsGallery-module__imageWrap___OWtqZ", d = "SlidingTabsGallery-module__description___JBoEm", c = "SlidingTabsGallery-module__image___E02Sh", m = {
2
+ root: a,
3
+ container: _,
4
+ header: e,
5
+ content: l,
6
+ tabsContainer: t,
7
+ tabs: n,
8
+ tab: o,
9
+ active: i,
10
+ marker: r,
11
+ imageWrap: s,
12
+ description: d,
13
+ image: c
14
+ };
15
+ export {
16
+ i as active,
17
+ _ as container,
18
+ l as content,
19
+ m as default,
20
+ d as description,
21
+ e as header,
22
+ c as image,
23
+ s as imageWrap,
24
+ r as marker,
25
+ a as root,
26
+ o as tab,
27
+ n as tabs,
28
+ t as tabsContainer
29
+ };
@@ -0,0 +1 @@
1
+ export { SlidingTabsGallery } from './SlidingTabsGallery';
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),j=require("../../node_modules/swiper/modules/navigation.cjs.js"),d=require("../../node_modules/swiper/swiper-react.cjs.js");;/* empty css */;/* empty css */;/* empty css */const c=require("../../components/ProgressButton/ProgressButton.cjs.js"),f=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),q=require("../../components/Typography/Typography.cjs.js"),C=require("../../components/RatingStars/RatingStars.cjs.js"),k=require("../../utils/useSwiper/useSwiper.cjs.js"),w=require("./components/VideoCard/VideoCard.cjs.js"),N=require("./components/TextCard/TextCard.cjs.js"),i=require("./testimonial.module.css.cjs.js"),R=[j.default],_=({title:u,rating:a,reviews:g})=>{const{isEnd:n,isBeginning:r,hideNav:t,handleSlideChange:h,handlePrevClick:l,handleNextClick:o,onSwiperInit:p,handleSwiperResize:m,handleReachEnd:S,handleReachBeginning:x}=k.useSwiper();return e.jsxs("section",{className:i.default.root,children:[e.jsxs("div",{className:i.default.headerContainer,children:[e.jsxs("div",{className:i.default.ratingContainer,children:[e.jsx(C.RatingStars,{rating:a.stars}),e.jsxs(q.Typography,{as:"p",defaultVariant:"labelLg",mobileVariant:"labelSm",emphasis:!0,children:[a.totalReviews,"+ member reviews"]})]}),e.jsxs("div",{className:i.default.headerRow,children:[e.jsx(f.HighlightedTitle,{title:u,colorScheme:"light"}),!t&&e.jsx("div",{className:i.default.desktopNavigation,children:e.jsx(c.ProgressButton,{left:{disabled:r,onClick:l},right:{disabled:n,onClick:o}})})]})]}),e.jsx("div",{className:i.default.content,children:e.jsx(d.Swiper,{onSwiper:p,onResize:m,onSlideChange:h,onReachEnd:S,onReachBeginning:x,modules:R,spaceBetween:0,slidesPerView:"auto",className:i.default.swiper,wrapperClass:i.default.swiperWrapper,children:g.map((s,b)=>e.jsx(d.SwiperSlide,{className:i.default.swiperSlide,children:s.background.type==="video"?e.jsx(w.VideoCard,{...s,background:s.background}):e.jsx(N.TextCard,{...s,background:s.background})},`${s.background.type}_${b}`))})}),!t&&e.jsx("div",{className:i.default.mobileNavigation,children:e.jsx(c.ProgressButton,{left:{disabled:r,onClick:l},right:{disabled:n,onClick:o}})})]})};exports.Testimonial=_;
@@ -0,0 +1,13 @@
1
+ import { ReactNode } from 'react';
2
+ import { RichReviewCard } from './types';
3
+
4
+ type TestimonialProps = {
5
+ title: ReactNode;
6
+ rating: {
7
+ stars: number;
8
+ totalReviews: number;
9
+ };
10
+ reviews: Array<RichReviewCard>;
11
+ };
12
+ export declare const Testimonial: ({ title, rating, reviews }: TestimonialProps) => import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1,88 @@
1
+ "use client";
2
+ import { jsxs as r, jsx as e } from "react/jsx-runtime";
3
+ import N from "../../node_modules/swiper/modules/navigation.es.js";
4
+ import { Swiper as k, SwiperSlide as C } from "../../node_modules/swiper/swiper-react.es.js";
5
+ /* empty css */
6
+ /* empty css */
7
+ /* empty css */
8
+ import { ProgressButton as c } from "../../components/ProgressButton/ProgressButton.es.js";
9
+ import { HighlightedTitle as w } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
10
+ import { Typography as R } from "../../components/Typography/Typography.es.js";
11
+ import { RatingStars as v } from "../../components/RatingStars/RatingStars.es.js";
12
+ import { useSwiper as x } from "../../utils/useSwiper/useSwiper.es.js";
13
+ import { VideoCard as y } from "./components/VideoCard/VideoCard.es.js";
14
+ import { TextCard as B } from "./components/TextCard/TextCard.es.js";
15
+ import i from "./testimonial.module.css.es.js";
16
+ const E = [N], U = ({ title: m, rating: n, reviews: p }) => {
17
+ const {
18
+ isEnd: o,
19
+ isBeginning: l,
20
+ hideNav: s,
21
+ handleSlideChange: h,
22
+ handlePrevClick: t,
23
+ handleNextClick: d,
24
+ onSwiperInit: g,
25
+ handleSwiperResize: b,
26
+ handleReachEnd: S,
27
+ handleReachBeginning: f
28
+ } = x();
29
+ return /* @__PURE__ */ r("section", { className: i.root, children: [
30
+ /* @__PURE__ */ r("div", { className: i.headerContainer, children: [
31
+ /* @__PURE__ */ r("div", { className: i.ratingContainer, children: [
32
+ /* @__PURE__ */ e(v, { rating: n.stars }),
33
+ /* @__PURE__ */ r(R, { as: "p", defaultVariant: "labelLg", mobileVariant: "labelSm", emphasis: !0, children: [
34
+ n.totalReviews,
35
+ "+ member reviews"
36
+ ] })
37
+ ] }),
38
+ /* @__PURE__ */ r("div", { className: i.headerRow, children: [
39
+ /* @__PURE__ */ e(w, { title: m, colorScheme: "light" }),
40
+ !s && /* @__PURE__ */ e("div", { className: i.desktopNavigation, children: /* @__PURE__ */ e(
41
+ c,
42
+ {
43
+ left: {
44
+ disabled: l,
45
+ onClick: t
46
+ },
47
+ right: {
48
+ disabled: o,
49
+ onClick: d
50
+ }
51
+ }
52
+ ) })
53
+ ] })
54
+ ] }),
55
+ /* @__PURE__ */ e("div", { className: i.content, children: /* @__PURE__ */ e(
56
+ k,
57
+ {
58
+ onSwiper: g,
59
+ onResize: b,
60
+ onSlideChange: h,
61
+ onReachEnd: S,
62
+ onReachBeginning: f,
63
+ modules: E,
64
+ spaceBetween: 0,
65
+ slidesPerView: "auto",
66
+ className: i.swiper,
67
+ wrapperClass: i.swiperWrapper,
68
+ children: p.map((a, u) => /* @__PURE__ */ e(C, { className: i.swiperSlide, children: a.background.type === "video" ? /* @__PURE__ */ e(y, { ...a, background: a.background }) : /* @__PURE__ */ e(B, { ...a, background: a.background }) }, `${a.background.type}_${u}`))
69
+ }
70
+ ) }),
71
+ !s && /* @__PURE__ */ e("div", { className: i.mobileNavigation, children: /* @__PURE__ */ e(
72
+ c,
73
+ {
74
+ left: {
75
+ disabled: l,
76
+ onClick: t
77
+ },
78
+ right: {
79
+ disabled: o,
80
+ onClick: d
81
+ }
82
+ }
83
+ ) })
84
+ ] });
85
+ };
86
+ export {
87
+ U as Testimonial
88
+ };
@@ -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"),c=require("../../../../components/Icon/Icon.cjs.js"),l=require("../../../../components/Icon/constants.cjs.js"),o=require("./product.module.css.cjs.js"),d=({image:r,link:a,name:t})=>{const i=s=>{s.stopPropagation(),window.location.pathname===new URL(a,window.location.origin).pathname?window.scrollTo({top:0,behavior:"smooth"}):window.location.href=a};return e.jsxs("button",{className:o.default.root,onClick:i,children:[e.jsx("div",{className:o.default.imageContainer,children:e.jsx("img",{src:r,alt:t,className:o.default.image})}),e.jsxs("div",{className:o.default.infoContainer,children:[e.jsxs("div",{className:o.default.textContainer,children:[e.jsx(n.Typography,{as:"p",defaultVariant:"labelXs",mobileVariant:"labelSm",emphasis:!0,weight:"regular",children:"REVIEWED"}),e.jsx(n.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",weight:"regular",children:t})]}),e.jsx(c.Icon,{name:l.EIconName.ARROW_OUTWARD,className:o.default.arrowIcon})]})]})};exports.Product=d;
@@ -0,0 +1,7 @@
1
+ type ProductProps = {
2
+ image: string;
3
+ name: string;
4
+ link: string;
5
+ };
6
+ export declare const Product: ({ image, link, name }: ProductProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};