@zenpatient-org/healthspan-marketing-ui 0.1.20 → 0.1.21

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 (231) hide show
  1. package/README.md +18 -16
  2. package/dist/_virtual/Popover.cjs.js +1 -0
  3. package/dist/_virtual/Popover.es.js +5 -0
  4. package/dist/_virtual/Popover.es2.js +4 -0
  5. package/dist/_virtual/{jsx-runtime.cjs2.js → PopoverPortal.cjs.js} +1 -1
  6. package/dist/_virtual/PopoverPortal.es.js +4 -0
  7. package/dist/_virtual/useArrowContainer.cjs.js +1 -0
  8. package/dist/_virtual/useArrowContainer.es.js +4 -0
  9. package/dist/_virtual/useElementRef.cjs.js +1 -0
  10. package/dist/_virtual/useHandlePrevValues.cjs.js +1 -0
  11. package/dist/_virtual/useHandlePrevValues.es.js +4 -0
  12. package/dist/_virtual/useMemoizedArray.cjs.js +1 -0
  13. package/dist/_virtual/useMemoizedArray.es.js +4 -0
  14. package/dist/_virtual/usePopover.cjs.js +1 -0
  15. package/dist/_virtual/usePopover.es.js +4 -0
  16. package/dist/_virtual/util.cjs.js +1 -0
  17. package/dist/_virtual/util.es.js +4 -0
  18. package/dist/components/Benefit/Benefit.cjs.js +1 -0
  19. package/dist/components/Benefit/Benefit.es.js +13 -0
  20. package/dist/components/Benefit/benefit.module.css.cjs.js +1 -0
  21. package/dist/components/Benefit/benefit.module.css.es.js +9 -0
  22. package/dist/components/Button/Button.cjs.js +1 -1
  23. package/dist/components/Button/Button.es.js +13 -13
  24. package/dist/components/Callback/Callback.cjs.js +1 -1
  25. package/dist/components/Callback/Callback.es.js +34 -35
  26. package/dist/components/ComplexTooltip/ComplexTooltip.cjs.js +1 -0
  27. package/dist/components/ComplexTooltip/ComplexTooltip.es.js +70 -0
  28. package/dist/components/ComplexTooltip/complexTooltip.module.css.cjs.js +1 -0
  29. package/dist/components/ComplexTooltip/complexTooltip.module.css.es.js +17 -0
  30. package/dist/components/ContentTabs/ContentTabs.cjs.js +1 -1
  31. package/dist/components/ContentTabs/ContentTabs.es.js +19 -19
  32. package/dist/components/Cursor/Cursor.cjs.js +1 -0
  33. package/dist/components/Cursor/Cursor.es.js +9 -0
  34. package/dist/components/Cursor/components/ClientCursor.cjs.js +1 -0
  35. package/dist/components/Cursor/components/ClientCursor.es.js +42 -0
  36. package/dist/components/Cursor/components/ServerCursor.cjs.js +1 -0
  37. package/dist/components/Cursor/components/ServerCursor.es.js +4 -0
  38. package/dist/components/Cursor/cursor.module.css.cjs.js +1 -0
  39. package/dist/components/Cursor/cursor.module.css.es.js +11 -0
  40. package/dist/components/FilterMenu/FilterMenu.cjs.js +1 -1
  41. package/dist/components/FilterMenu/FilterMenu.es.js +18 -17
  42. package/dist/components/HighlightedTitle/HighlightedTitle.cjs.js +1 -1
  43. package/dist/components/HighlightedTitle/HighlightedTitle.d.ts +1 -1
  44. package/dist/components/HighlightedTitle/HighlightedTitle.es.js +22 -33
  45. package/dist/components/Icon/Icon.cjs.js +1 -1
  46. package/dist/components/Icon/Icon.es.js +7 -16
  47. package/dist/components/Icon/iconsMap.cjs.js +1 -0
  48. package/dist/components/Icon/iconsMap.d.ts +4 -0
  49. package/dist/components/Icon/iconsMap.es.js +110 -0
  50. package/dist/components/IconButton/IconButton.cjs.js +1 -1
  51. package/dist/components/IconButton/IconButton.es.js +12 -13
  52. package/dist/components/InfiniteScroll/InfiniteScroll.cjs.js +1 -1
  53. package/dist/components/InfiniteScroll/InfiniteScroll.es.js +34 -33
  54. package/dist/components/Label/Label.cjs.js +1 -1
  55. package/dist/components/Label/Label.es.js +8 -8
  56. package/dist/components/ProductGallery/ProductGallery.cjs.js +1 -1
  57. package/dist/components/ProductGallery/ProductGallery.es.js +46 -45
  58. package/dist/components/ProductGalleryCard/ProductGalleryCard.cjs.js +1 -1
  59. package/dist/components/ProductGalleryCard/ProductGalleryCard.es.js +15 -15
  60. package/dist/components/ProductListing/ProductListing.cjs.js +1 -0
  61. package/dist/components/ProductListing/ProductListing.es.js +30 -0
  62. package/dist/components/ProductListing/productListing.module.css.cjs.js +1 -0
  63. package/dist/components/ProductListing/productListing.module.css.es.js +29 -0
  64. package/dist/components/ProgramCard/ProgramCard.cjs.js +1 -0
  65. package/dist/components/ProgramCard/ProgramCard.es.js +48 -0
  66. package/dist/components/ProgramCard/assets/program_card_bg.png.cjs.js +1 -0
  67. package/dist/components/ProgramCard/assets/program_card_bg.png.es.js +4 -0
  68. package/dist/components/ProgramCard/programCard.module.css.cjs.js +1 -0
  69. package/dist/components/ProgramCard/programCard.module.css.es.js +7 -0
  70. package/dist/components/ProgressButton/ProgressButton.cjs.js +1 -1
  71. package/dist/components/ProgressButton/ProgressButton.es.js +18 -19
  72. package/dist/components/StepsCarousel/StepsCarousel.cjs.js +1 -0
  73. package/dist/components/StepsCarousel/StepsCarousel.d.ts +13 -0
  74. package/dist/components/StepsCarousel/StepsCarousel.es.js +72 -0
  75. package/dist/components/StepsCarousel/index.d.ts +1 -0
  76. package/dist/components/StepsCarousel/stepsCarousel.module.css.cjs.js +1 -0
  77. package/dist/components/StepsCarousel/stepsCarousel.module.css.es.js +31 -0
  78. package/dist/components/StudyGridCard/StudyGridCard.cjs.js +1 -0
  79. package/dist/components/StudyGridCard/StudyGridCard.es.js +61 -0
  80. package/dist/components/StudyGridCard/studyGridCard.module.css.cjs.js +1 -0
  81. package/dist/components/StudyGridCard/studyGridCard.module.css.es.js +19 -0
  82. package/dist/components/Tabs/Tabs.cjs.js +1 -1
  83. package/dist/components/Tabs/Tabs.es.js +20 -20
  84. package/dist/components/Tabs/TabsWithFade.cjs.js +1 -1
  85. package/dist/components/Tabs/TabsWithFade.es.js +16 -15
  86. package/dist/components/Tag/Tag.cjs.js +1 -1
  87. package/dist/components/Tag/Tag.es.js +15 -15
  88. package/dist/components/TextButton/TextButton.cjs.js +1 -1
  89. package/dist/components/TextButton/TextButton.es.js +18 -18
  90. package/dist/components/TypeBadge/TypeBadge.cjs.js +1 -1
  91. package/dist/components/TypeBadge/TypeBadge.es.js +4 -4
  92. package/dist/components/Typography/Typography.cjs.js +1 -1
  93. package/dist/components/Typography/Typography.es.js +9 -9
  94. package/dist/components/index.d.ts +0 -26
  95. package/dist/healthspan-marketing-ui.css +1 -1
  96. package/dist/index.cjs.js +1 -1
  97. package/dist/index.d.ts +0 -3
  98. package/dist/index.es.js +2 -55
  99. package/dist/modules/Callback/Callback.cjs.js +1 -0
  100. package/dist/modules/Callback/Callback.d.ts +1 -1
  101. package/dist/modules/Callback/Callback.es.js +36 -0
  102. package/dist/modules/Callback/callback.module.css.cjs.js +1 -0
  103. package/dist/modules/Callback/callback.module.css.es.js +13 -0
  104. package/dist/modules/Comparison/Comparison.cjs.js +1 -0
  105. package/dist/modules/Comparison/Comparison.es.js +86 -0
  106. package/dist/modules/Comparison/assets/company-logo.svg.cjs.js +1 -0
  107. package/dist/modules/Comparison/assets/company-logo.svg.es.js +5 -0
  108. package/dist/modules/Comparison/comparison.module.css.cjs.js +1 -0
  109. package/dist/modules/Comparison/comparison.module.css.es.js +39 -0
  110. package/dist/modules/Comparison/components/ComparisonMobileView/ComparisonMobileView.cjs.js +1 -0
  111. package/dist/modules/Comparison/components/ComparisonMobileView/ComparisonMobileView.es.js +42 -0
  112. package/dist/modules/Comparison/components/ComparisonMobileView/comparisonMobileView.module.css.cjs.js +1 -0
  113. package/dist/modules/Comparison/components/ComparisonMobileView/comparisonMobileView.module.css.es.js +27 -0
  114. package/dist/modules/Comparison/utils.cjs.js +1 -0
  115. package/dist/modules/Comparison/utils.es.js +4 -0
  116. package/dist/modules/FeaturedIn/FeaturedIn.cjs.js +1 -0
  117. package/dist/modules/FeaturedIn/FeaturedIn.es.js +54 -0
  118. package/dist/modules/FeaturedIn/featuredIn.module.css.cjs.js +1 -0
  119. package/dist/modules/FeaturedIn/featuredIn.module.css.es.js +37 -0
  120. package/dist/modules/FeaturesGallery/FeaturesGallery.cjs.js +1 -0
  121. package/dist/modules/FeaturesGallery/FeaturesGallery.es.js +22 -0
  122. package/dist/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.cjs.js +1 -0
  123. package/dist/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.es.js +29 -0
  124. package/dist/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.module.css.cjs.js +1 -0
  125. package/dist/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.module.css.es.js +21 -0
  126. package/dist/modules/FeaturesGallery/featuresGallery.module.css.cjs.js +1 -0
  127. package/dist/modules/FeaturesGallery/featuresGallery.module.css.es.js +21 -0
  128. package/dist/modules/FollowTheScience/FollowTheScience.cjs.js +1 -0
  129. package/dist/modules/FollowTheScience/FollowTheScience.es.js +73 -0
  130. package/dist/modules/FollowTheScience/followTheScience.module.css.cjs.js +1 -0
  131. package/dist/modules/FollowTheScience/followTheScience.module.css.es.js +15 -0
  132. package/dist/modules/HowItWorks/HowItWorks.cjs.js +1 -0
  133. package/dist/modules/HowItWorks/HowItWorks.es.js +16 -0
  134. package/dist/modules/HowItWorks/components/Content/Content.cjs.js +1 -0
  135. package/dist/modules/HowItWorks/components/Content/Content.es.js +65 -0
  136. package/dist/modules/HowItWorks/components/Content/content.module.css.cjs.js +1 -0
  137. package/dist/modules/HowItWorks/components/Content/content.module.css.es.js +21 -0
  138. package/dist/modules/HowItWorks/howItWorks.module.css.cjs.js +1 -0
  139. package/dist/modules/HowItWorks/howItWorks.module.css.es.js +13 -0
  140. package/dist/modules/OptimalHealth/OptimalHealth.cjs.js +1 -0
  141. package/dist/modules/OptimalHealth/OptimalHealth.es.js +19 -0
  142. package/dist/modules/OptimalHealth/components/ClockImages/ClockImages.cjs.js +1 -0
  143. package/dist/modules/OptimalHealth/components/ClockImages/ClockImages.es.js +37 -0
  144. package/dist/modules/OptimalHealth/components/ClockImages/clockImages.module.css.cjs.js +1 -0
  145. package/dist/modules/OptimalHealth/components/ClockImages/clockImages.module.css.es.js +15 -0
  146. package/dist/modules/OptimalHealth/components/ClockImages/hooks.cjs.js +1 -0
  147. package/dist/modules/OptimalHealth/components/ClockImages/hooks.es.js +13 -0
  148. package/dist/modules/OptimalHealth/optimalHealth.module.css.cjs.js +1 -0
  149. package/dist/modules/OptimalHealth/optimalHealth.module.css.es.js +19 -0
  150. package/dist/modules/OurProcess/OurProcess.cjs.js +1 -0
  151. package/dist/modules/OurProcess/OurProcess.d.ts +2 -2
  152. package/dist/modules/OurProcess/OurProcess.es.js +15 -0
  153. package/dist/modules/OurProcess/ourProcess.module.css.cjs.js +1 -0
  154. package/dist/modules/OurProcess/ourProcess.module.css.es.js +11 -0
  155. package/dist/modules/ProductsDisplay/ProductsDisplay.cjs.js +1 -1
  156. package/dist/modules/ProductsDisplay/ProductsDisplay.es.js +17 -22
  157. package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.cjs.js +1 -1
  158. package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.d.ts +1 -1
  159. package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.es.js +9 -19
  160. package/dist/modules/ProductsDisplay/types.d.ts +1 -1
  161. package/dist/modules/ProductsDisplay/useProductsData.cjs.js +1 -1
  162. package/dist/modules/ProductsDisplay/useProductsData.d.ts +2 -1
  163. package/dist/modules/ProductsDisplay/useProductsData.es.js +8 -7
  164. package/dist/modules/Studies/Studies.cjs.js +1 -0
  165. package/dist/modules/Studies/Studies.es.js +26 -0
  166. package/dist/modules/Studies/studies.module.css.cjs.js +1 -0
  167. package/dist/modules/Studies/studies.module.css.es.js +15 -0
  168. package/dist/modules/TargetedPrograms/TargetedPrograms.cjs.js +1 -0
  169. package/dist/modules/TargetedPrograms/TargetedPrograms.es.js +67 -0
  170. package/dist/modules/TargetedPrograms/targetedPrograms.module.css.cjs.js +1 -0
  171. package/dist/modules/TargetedPrograms/targetedPrograms.module.css.es.js +15 -0
  172. package/dist/modules/TotalCare/TotalCare.cjs.js +1 -1
  173. package/dist/modules/TotalCare/TotalCare.d.ts +1 -1
  174. package/dist/modules/TotalCare/TotalCare.es.js +18 -27
  175. package/dist/modules/YourProtocol/YourProtocol.cjs.js +1 -1
  176. package/dist/modules/YourProtocol/YourProtocol.es.js +19 -30
  177. package/dist/modules/YourProtocol/components/ProtocolTags/ProtocolTags.cjs.js +1 -1
  178. package/dist/modules/YourProtocol/components/ProtocolTags/ProtocolTags.es.js +19 -27
  179. package/dist/modules/index.d.ts +0 -3
  180. package/dist/node_modules/react-tiny-popover/dist/ArrowContainer.cjs.js +1 -0
  181. package/dist/node_modules/react-tiny-popover/dist/ArrowContainer.es.js +37 -0
  182. package/dist/node_modules/react-tiny-popover/dist/Popover.cjs.js +1 -0
  183. package/dist/node_modules/react-tiny-popover/dist/Popover.es.js +147 -0
  184. package/dist/node_modules/react-tiny-popover/dist/PopoverPortal.cjs.js +1 -0
  185. package/dist/node_modules/react-tiny-popover/dist/PopoverPortal.es.js +20 -0
  186. package/dist/node_modules/react-tiny-popover/dist/useArrowContainer.cjs.js +1 -0
  187. package/dist/node_modules/react-tiny-popover/dist/useArrowContainer.es.js +86 -0
  188. package/dist/node_modules/react-tiny-popover/dist/useElementRef.cjs.js +1 -0
  189. package/dist/node_modules/react-tiny-popover/dist/useElementRef.es.js +22 -0
  190. package/dist/node_modules/react-tiny-popover/dist/useHandlePrevValues.cjs.js +1 -0
  191. package/dist/node_modules/react-tiny-popover/dist/useHandlePrevValues.es.js +34 -0
  192. package/dist/node_modules/react-tiny-popover/dist/useMemoizedArray.cjs.js +1 -0
  193. package/dist/node_modules/react-tiny-popover/dist/useMemoizedArray.es.js +24 -0
  194. package/dist/node_modules/react-tiny-popover/dist/usePopover.cjs.js +1 -0
  195. package/dist/node_modules/react-tiny-popover/dist/usePopover.es.js +140 -0
  196. package/dist/node_modules/react-tiny-popover/dist/util.cjs.js +1 -0
  197. package/dist/node_modules/react-tiny-popover/dist/util.es.js +81 -0
  198. package/dist/utils/index.d.ts +0 -4
  199. package/dist/utils/isHsIcon/isHsIcon.cjs.js +1 -0
  200. package/dist/utils/{isHsIcon.es.js → isHsIcon/isHsIcon.es.js} +1 -1
  201. package/package.json +205 -4
  202. package/dist/_virtual/dynamic-import-helper.cjs.js +0 -1
  203. package/dist/_virtual/dynamic-import-helper.es.js +0 -16
  204. package/dist/_virtual/jsx-runtime.cjs.js +0 -1
  205. package/dist/_virtual/jsx-runtime.es.js +0 -5
  206. package/dist/_virtual/jsx-runtime.es2.js +0 -4
  207. package/dist/icons/map/pin-drop.svg.cjs.js +0 -1
  208. package/dist/icons/map/pin-drop.svg.es.js +0 -5
  209. package/dist/modules/OurProcess/components/StepCards/StepCards.d.ts +0 -9
  210. package/dist/modules/OurProcess/components/StepCards/index.d.ts +0 -1
  211. package/dist/modules/OurProcess/types.d.ts +0 -5
  212. package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.js +0 -22
  213. package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js +0 -604
  214. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.cjs.js +0 -9
  215. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.es.js +0 -28
  216. package/dist/node_modules/react/jsx-runtime.cjs.js +0 -1
  217. package/dist/node_modules/react/jsx-runtime.es.js +0 -10
  218. package/dist/utils/isHsIcon.cjs.js +0 -1
  219. package/dist/utils.cjs.js +0 -1
  220. package/dist/utils.es.js +0 -10
  221. /package/dist/_virtual/{react-jsx-runtime.development.cjs.js → ArrowContainer.cjs.js} +0 -0
  222. /package/dist/_virtual/{react-jsx-runtime.production.min.es.js → ArrowContainer.es.js} +0 -0
  223. /package/dist/_virtual/{react-jsx-runtime.production.min.cjs.js → Popover.cjs2.js} +0 -0
  224. /package/dist/_virtual/{react-jsx-runtime.development.es.js → useElementRef.es.js} +0 -0
  225. /package/dist/{utils → lib}/useSwiper.d.ts +0 -0
  226. /package/dist/utils/{cn.cjs.js → cn/cn.cjs.js} +0 -0
  227. /package/dist/utils/{cn.es.js → cn/cn.es.js} +0 -0
  228. /package/dist/utils/{formatUnits.cjs.js → formatUnits/formatUnits.cjs.js} +0 -0
  229. /package/dist/utils/{formatUnits.es.js → formatUnits/formatUnits.es.js} +0 -0
  230. /package/dist/utils/{useSwiper.cjs.js → useSwiper/useSwiper.cjs.js} +0 -0
  231. /package/dist/utils/{useSwiper.es.js → useSwiper/useSwiper.es.js} +0 -0
@@ -1,19 +1,20 @@
1
- const f = ({ productDisplays: t }) => {
2
- const l = t.length > 1, s = t[0], a = s.title, r = s.description ?? "", o = t.map((e) => ({
1
+ "use client";
2
+ const u = ({ productDisplays: t }) => {
3
+ const l = t.length > 1, s = t[0], a = s.title, r = s.description ?? "", c = t.map((e) => ({
3
4
  value: e.title.replace(" ", "_").toLocaleLowerCase(),
4
5
  label: e.title
5
- })), d = o.reduce((e, c) => {
6
- const n = t.find((b) => b.title === c.label), i = n == null ? void 0 : n.productCards;
7
- return i && (e[c.value] = i), e;
6
+ })), d = c.reduce((e, i) => {
7
+ const n = t.find((b) => b.title === i.label), o = n == null ? void 0 : n.productCards;
8
+ return o && (e[i.value] = o), e;
8
9
  }, {});
9
10
  return {
10
11
  isTabbed: l,
11
12
  title: a,
12
13
  description: r,
13
- tabs: o,
14
+ tabs: c,
14
15
  slidesByTabs: d
15
16
  };
16
17
  };
17
18
  export {
18
- f as useProductsData
19
+ u as useProductsData
19
20
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("../../components/Button/Button.cjs.js"),a=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),c=require("../../components/StudyGridCard/StudyGridCard.cjs.js"),h=require("../../components/Typography/Typography.cjs.js"),i=require("./studies.module.css.cjs.js");function p({title:d,description:n,articles:l}){const o=l.reduce((t,r)=>{const s=t[t.length-1];return s.length<2?s.push(r):t.push([r]),t},[[]]);return e.jsxs("div",{className:i.default.container,children:[e.jsxs("div",{className:i.default.header,children:[e.jsx(a.HighlightedTitle,{title:d}),e.jsx(h.Typography,{as:"p",defaultVariant:"bodyLg",className:i.default.description,children:n}),e.jsx("div",{children:e.jsx(u.Button,{variant:"muted",size:"lg",children:"view all studies"})})]}),e.jsx("div",{className:i.default.articles,children:o.map((t,r)=>e.jsx("div",{className:i.default.row,children:t.map(s=>e.jsx(c.StudyGridCard,{...s},s.title))},r))})]})}exports.Studies=p;
@@ -0,0 +1,26 @@
1
+ import { jsxs as d, jsx as r } from "react/jsx-runtime";
2
+ import { Button as a } from "../../components/Button/Button.es.js";
3
+ import { HighlightedTitle as h } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
4
+ import { StudyGridCard as p } from "../../components/StudyGridCard/StudyGridCard.es.js";
5
+ import { Typography as u } from "../../components/Typography/Typography.es.js";
6
+ import t from "./studies.module.css.es.js";
7
+ function w({ title: o, description: l, articles: n }) {
8
+ const m = n.reduce(
9
+ (e, s) => {
10
+ const i = e[e.length - 1];
11
+ return i.length < 2 ? i.push(s) : e.push([s]), e;
12
+ },
13
+ [[]]
14
+ );
15
+ return /* @__PURE__ */ d("div", { className: t.container, children: [
16
+ /* @__PURE__ */ d("div", { className: t.header, children: [
17
+ /* @__PURE__ */ r(h, { title: o }),
18
+ /* @__PURE__ */ r(u, { as: "p", defaultVariant: "bodyLg", className: t.description, children: l }),
19
+ /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(a, { variant: "muted", size: "lg", children: "view all studies" }) })
20
+ ] }),
21
+ /* @__PURE__ */ r("div", { className: t.articles, children: m.map((e, s) => /* @__PURE__ */ r("div", { className: t.row, children: e.map((i) => /* @__PURE__ */ r(p, { ...i }, i.title)) }, s)) })
22
+ ] });
23
+ }
24
+ export {
25
+ w as Studies
26
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="studies-module__container___oLKXc",t="studies-module__header___FA3V2",s="studies-module__description___-3MIr",o="studies-module__articles___tUcYS",_="studies-module__row___yHNIP",r={container:e,header:t,description:s,articles:o,row:_};exports.articles=o;exports.container=e;exports.default=r;exports.description=s;exports.header=t;exports.row=_;
@@ -0,0 +1,15 @@
1
+ const e = "studies-module__container___oLKXc", s = "studies-module__header___FA3V2", _ = "studies-module__description___-3MIr", t = "studies-module__articles___tUcYS", o = "studies-module__row___yHNIP", c = {
2
+ container: e,
3
+ header: s,
4
+ description: _,
5
+ articles: t,
6
+ row: o
7
+ };
8
+ export {
9
+ t as articles,
10
+ e as container,
11
+ c as default,
12
+ _ as description,
13
+ s as header,
14
+ o as row
15
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");;/* empty css */;/* empty css */;/* empty css */const m=require("react"),S=require("../../node_modules/swiper/modules/navigation.cjs.js"),t=require("../../node_modules/swiper/swiper-react.cjs.js"),f=require("../../components/Cursor/Cursor.cjs.js"),q=require("../../components/ProgramCard/ProgramCard.cjs.js"),n=require("../../components/ProgressButton/ProgressButton.cjs.js"),C=require("../../components/Typography/Typography.cjs.js"),P=require("../../utils/useSwiper/useSwiper.cjs.js"),r=require("./targetedPrograms.module.css.cjs.js"),j=[S.default];function w({title:a,cards:l}){const{setIsEnd:c,handleSlideChange:d,handlePrevClick:s,handleNextClick:i,onSwiperInit:u,handleSwiperResize:p}=P.useSwiper();return e.jsxs("div",{className:r.default.container,children:[e.jsxs("div",{className:r.default.heading,children:[e.jsx(C.Typography,{as:"h2",defaultVariant:"displayMd",mobileVariant:"headingXl",children:a}),e.jsx("div",{className:r.default.progressButtons,"data-device":"desktop",children:e.jsx(n.ProgressButton,{left:{onClick:s},right:{onClick:i}})})]}),e.jsx("div",{className:r.default.carouselArea,children:e.jsx(t.Swiper,{onSwiper:u,onResize:p,onSlideChange:d,onReachEnd:()=>c(!0),modules:j,spaceBetween:16,slidesPerView:"auto",className:r.default.swiper,loop:!0,slidesOffsetBefore:8,children:l.map((o,g)=>{const h=o.type!=="coming_soon"?f.Cursor:m.Fragment;return e.jsx(t.SwiperSlide,{className:r.default.swiperSlide,children:e.jsx(h,{label:"Learn More",colorScheme:"light",children:e.jsx(q.ProgramCard,{...o})})},g)})})}),e.jsx("div",{className:r.default.progressButtons,"data-device":"mobile",children:e.jsx(n.ProgressButton,{left:{onClick:s},right:{onClick:i}})})]})}exports.TargetedPrograms=w;
@@ -0,0 +1,67 @@
1
+ "use client";
2
+ import { jsxs as t, jsx as e } from "react/jsx-runtime";
3
+ /* empty css */
4
+ /* empty css */
5
+ /* empty css */
6
+ import { Fragment as g } from "react";
7
+ import u from "../../node_modules/swiper/modules/navigation.es.js";
8
+ import { Swiper as S, SwiperSlide as w } from "../../node_modules/swiper/swiper-react.es.js";
9
+ import { Cursor as C } from "../../components/Cursor/Cursor.es.js";
10
+ import { ProgramCard as v } from "../../components/ProgramCard/ProgramCard.es.js";
11
+ import { ProgressButton as a } from "../../components/ProgressButton/ProgressButton.es.js";
12
+ import { Typography as N } from "../../components/Typography/Typography.es.js";
13
+ import { useSwiper as k } from "../../utils/useSwiper/useSwiper.es.js";
14
+ import r from "./targetedPrograms.module.css.es.js";
15
+ const P = [u];
16
+ function T({ title: n, cards: l }) {
17
+ const { setIsEnd: m, handleSlideChange: d, handlePrevClick: i, handleNextClick: o, onSwiperInit: c, handleSwiperResize: p } = k();
18
+ return /* @__PURE__ */ t("div", { className: r.container, children: [
19
+ /* @__PURE__ */ t("div", { className: r.heading, children: [
20
+ /* @__PURE__ */ e(N, { as: "h2", defaultVariant: "displayMd", mobileVariant: "headingXl", children: n }),
21
+ /* @__PURE__ */ e("div", { className: r.progressButtons, "data-device": "desktop", children: /* @__PURE__ */ e(
22
+ a,
23
+ {
24
+ left: {
25
+ onClick: i
26
+ },
27
+ right: {
28
+ onClick: o
29
+ }
30
+ }
31
+ ) })
32
+ ] }),
33
+ /* @__PURE__ */ e("div", { className: r.carouselArea, children: /* @__PURE__ */ e(
34
+ S,
35
+ {
36
+ onSwiper: c,
37
+ onResize: p,
38
+ onSlideChange: d,
39
+ onReachEnd: () => m(!0),
40
+ modules: P,
41
+ spaceBetween: 16,
42
+ slidesPerView: "auto",
43
+ className: r.swiper,
44
+ loop: !0,
45
+ slidesOffsetBefore: 8,
46
+ children: l.map((s, h) => {
47
+ const f = s.type !== "coming_soon" ? C : g;
48
+ return /* @__PURE__ */ e(w, { className: r.swiperSlide, children: /* @__PURE__ */ e(f, { label: "Learn More", colorScheme: "light", children: /* @__PURE__ */ e(v, { ...s }) }) }, h);
49
+ })
50
+ }
51
+ ) }),
52
+ /* @__PURE__ */ e("div", { className: r.progressButtons, "data-device": "mobile", children: /* @__PURE__ */ e(
53
+ a,
54
+ {
55
+ left: {
56
+ onClick: i
57
+ },
58
+ right: {
59
+ onClick: o
60
+ }
61
+ }
62
+ ) })
63
+ ] });
64
+ }
65
+ export {
66
+ T as TargetedPrograms
67
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="targetedPrograms-module__container___NQcj6",r="targetedPrograms-module__heading___tO73m",t="targetedPrograms-module__swiper___9sFIf",s="targetedPrograms-module__swiperSlide___ULZt5",o="targetedPrograms-module__progressButtons___XhApN",_={container:e,heading:r,swiper:t,swiperSlide:s,progressButtons:o};exports.container=e;exports.default=_;exports.heading=r;exports.progressButtons=o;exports.swiper=t;exports.swiperSlide=s;
@@ -0,0 +1,15 @@
1
+ const e = "targetedPrograms-module__container___NQcj6", r = "targetedPrograms-module__heading___tO73m", s = "targetedPrograms-module__swiper___9sFIf", t = "targetedPrograms-module__swiperSlide___ULZt5", o = "targetedPrograms-module__progressButtons___XhApN", _ = {
2
+ container: e,
3
+ heading: r,
4
+ swiper: s,
5
+ swiperSlide: t,
6
+ progressButtons: o
7
+ };
8
+ export {
9
+ e as container,
10
+ _ as default,
11
+ r as heading,
12
+ o as progressButtons,
13
+ s as swiper,
14
+ t as swiperSlide
15
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/jsx-runtime.cjs.js"),o=require("react");require("../../components/Button/Button.cjs.js");require("../../components/Label/Label.cjs.js");require("../../components/Tag/Tag.cjs.js");require("../../components/Tabs/Tabs.cjs.js");const c=require("../../components/ContentTabs/ContentTabs.cjs.js");require("../../components/Icon/Icon.cjs.js");const n=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js");require("../../components/InfiniteScroll/InfiniteScroll.cjs.js");require("../../node_modules/swiper/swiper-react.cjs.js");;/* empty css */;/* empty css */;/* empty css */const t=require("./totalCare.module.css.cjs.js"),m=({title:a,label:u,contentTabs:r,colorScheme:i})=>{const[s,l]=o.useState(r.tabs[0]);return e.jsxRuntimeExports.jsx("section",{className:t.default.root,"data-scheme":i,children:e.jsxRuntimeExports.jsxs("div",{className:t.default.container,children:[e.jsxRuntimeExports.jsx(n.HighlightedTitle,{title:a,label:u,className:t.default.header,colorScheme:i}),e.jsxRuntimeExports.jsxs("div",{className:t.default.content,children:[e.jsxRuntimeExports.jsx("div",{className:t.default.tags,children:e.jsxRuntimeExports.jsx(c.ContentTabs,{activeTab:s,tabs:r.tabs,colorScheme:r.colorScheme,onTabClick:l})}),s.image&&e.jsxRuntimeExports.jsx("div",{className:t.default.imageWrap,children:e.jsxRuntimeExports.jsx("img",{src:s.image,alt:"Total Care",className:t.default.image})})]})]})})};exports.TotalCare=m;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("react"),n=require("../../components/ContentTabs/ContentTabs.cjs.js"),d=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),t=require("./totalCare.module.css.cjs.js"),u=({title:l,label:c,contentTabs:a,colorScheme:i})=>{const[s,r]=o.useState(a.tabs[0]);return e.jsx("section",{className:t.default.root,"data-scheme":i,children:e.jsxs("div",{className:t.default.container,children:[e.jsx(d.HighlightedTitle,{title:l,label:c,className:t.default.header,colorScheme:i}),e.jsxs("div",{className:t.default.content,children:[e.jsx("div",{className:t.default.tags,children:e.jsx(n.ContentTabs,{activeTab:s,tabs:a.tabs,colorScheme:a.colorScheme,onTabClick:r})}),s.image&&e.jsx("div",{className:t.default.imageWrap,children:e.jsx("img",{src:s.image,alt:"Total Care",className:t.default.image})})]})]})})};exports.TotalCare=u;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { TContentTab } from '../../components';
2
+ import { TContentTab } from '../../components/ContentTabs';
3
3
  import { TColorScheme } from '../../types/common';
4
4
 
5
5
  export type TotalCareProps = {
@@ -1,36 +1,27 @@
1
- import { j as t } from "../../_virtual/jsx-runtime.es.js";
2
- import { useState as c } from "react";
3
- import "../../components/Button/Button.es.js";
4
- import "../../components/Label/Label.es.js";
5
- import "../../components/Tag/Tag.es.js";
6
- import "../../components/Tabs/Tabs.es.js";
7
- import { ContentTabs as l } from "../../components/ContentTabs/ContentTabs.es.js";
8
- import "../../components/Icon/Icon.es.js";
9
- import { HighlightedTitle as p } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
10
- import "../../components/InfiniteScroll/InfiniteScroll.es.js";
11
- import "../../node_modules/swiper/swiper-react.es.js";
12
- /* empty css */
13
- /* empty css */
14
- /* empty css */
15
- import s from "./totalCare.module.css.es.js";
16
- const y = ({ title: r, label: m, contentTabs: i, colorScheme: e }) => {
17
- const [a, o] = c(i.tabs[0]);
18
- return /* @__PURE__ */ t.jsx("section", { className: s.root, "data-scheme": e, children: /* @__PURE__ */ t.jsxs("div", { className: s.container, children: [
19
- /* @__PURE__ */ t.jsx(p, { title: r, label: m, className: s.header, colorScheme: e }),
20
- /* @__PURE__ */ t.jsxs("div", { className: s.content, children: [
21
- /* @__PURE__ */ t.jsx("div", { className: s.tags, children: /* @__PURE__ */ t.jsx(
22
- l,
1
+ "use client";
2
+ import { jsx as a, jsxs as r } from "react/jsx-runtime";
3
+ import { useState as l } from "react";
4
+ import { ContentTabs as n } from "../../components/ContentTabs/ContentTabs.es.js";
5
+ import { HighlightedTitle as d } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
6
+ import e from "./totalCare.module.css.es.js";
7
+ const b = ({ title: m, label: c, contentTabs: s, colorScheme: i }) => {
8
+ const [t, o] = l(s.tabs[0]);
9
+ return /* @__PURE__ */ a("section", { className: e.root, "data-scheme": i, children: /* @__PURE__ */ r("div", { className: e.container, children: [
10
+ /* @__PURE__ */ a(d, { title: m, label: c, className: e.header, colorScheme: i }),
11
+ /* @__PURE__ */ r("div", { className: e.content, children: [
12
+ /* @__PURE__ */ a("div", { className: e.tags, children: /* @__PURE__ */ a(
13
+ n,
23
14
  {
24
- activeTab: a,
25
- tabs: i.tabs,
26
- colorScheme: i.colorScheme,
15
+ activeTab: t,
16
+ tabs: s.tabs,
17
+ colorScheme: s.colorScheme,
27
18
  onTabClick: o
28
19
  }
29
20
  ) }),
30
- a.image && /* @__PURE__ */ t.jsx("div", { className: s.imageWrap, children: /* @__PURE__ */ t.jsx("img", { src: a.image, alt: "Total Care", className: s.image }) })
21
+ t.image && /* @__PURE__ */ a("div", { className: e.imageWrap, children: /* @__PURE__ */ a("img", { src: t.image, alt: "Total Care", className: e.image }) })
31
22
  ] })
32
23
  ] }) });
33
24
  };
34
25
  export {
35
- y as TotalCare
26
+ b as TotalCare
36
27
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/jsx-runtime.cjs.js");require("../../components/Button/Button.cjs.js");require("../../components/Label/Label.cjs.js");require("../../components/Tag/Tag.cjs.js");require("../../components/Tabs/Tabs.cjs.js");require("react");const u=require("../../utils/cn.cjs.js");require("../../components/Icon/Icon.cjs.js");const l=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),n=require("../../components/Callback/Callback.cjs.js");require("../../components/InfiniteScroll/InfiniteScroll.cjs.js");require("../../node_modules/swiper/swiper-react.cjs.js");;/* empty css */;/* empty css */;/* empty css */const a=require("./components/ProtocolTags/ProtocolTags.cjs.js"),t=require("./yourProtocol.module.css.cjs.js"),c=({title:i,image:s,tags:o,callbackView:r})=>e.jsxRuntimeExports.jsxs("section",{className:t.default.root,children:[e.jsxRuntimeExports.jsxs("div",{className:t.default.content,children:[e.jsxRuntimeExports.jsx(l.HighlightedTitle,{title:i,className:t.default.title,defaultVariant:"displaySm",mobileVariant:"headingXl"}),e.jsxRuntimeExports.jsx(a.ProtocolTags,{tags:o}),r&&e.jsxRuntimeExports.jsx("div",{className:t.default.callback,children:e.jsxRuntimeExports.jsx(n.Callback,{title:r.title,description:r.description??"",price:r.price??"",image:r.image,button:{href:r.signupUrl??""},size:"sm"})})]}),e.jsxRuntimeExports.jsx("img",{src:s,alt:"Your Protocol",className:u.cn(t.default.image,t.default.desktop),width:481,height:640})]});exports.YourProtocol=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("../../components/Callback/Callback.cjs.js"),c=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),n=require("../../utils/cn/cn.cjs.js"),a=require("./components/ProtocolTags/ProtocolTags.cjs.js"),o=require("./yourProtocol.module.css.cjs.js"),u=({title:i,image:r,tags:s,callbackView:t})=>e.jsxs("section",{className:o.default.root,children:[e.jsxs("div",{className:o.default.content,children:[e.jsx(c.HighlightedTitle,{title:i,className:o.default.title,defaultVariant:"displaySm",mobileVariant:"headingXl"}),e.jsx(a.ProtocolTags,{tags:s}),t&&e.jsx("div",{className:o.default.callback,children:e.jsx(l.Callback,{title:t.title,description:t.description??"",price:t.price??"",image:t.image,button:{href:t.signupUrl??""},size:"sm"})})]}),e.jsx("img",{src:r,alt:"Your Protocol",className:n.cn(o.default.image,o.default.desktop),width:481,height:640})]});exports.YourProtocol=u;
@@ -1,40 +1,29 @@
1
- import { j as t } from "../../_virtual/jsx-runtime.es.js";
2
- import "../../components/Button/Button.es.js";
3
- import "../../components/Label/Label.es.js";
4
- import "../../components/Tag/Tag.es.js";
5
- import "../../components/Tabs/Tabs.es.js";
6
- import "react";
7
- import { cn as e } from "../../utils/cn.es.js";
8
- import "../../components/Icon/Icon.es.js";
9
- import { HighlightedTitle as p } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
10
- import { Callback as a } from "../../components/Callback/Callback.es.js";
11
- import "../../components/InfiniteScroll/InfiniteScroll.es.js";
12
- import "../../node_modules/swiper/swiper-react.es.js";
13
- /* empty css */
14
- /* empty css */
15
- /* empty css */
16
- import { ProtocolTags as l } from "./components/ProtocolTags/ProtocolTags.es.js";
17
- import r from "./yourProtocol.module.css.es.js";
18
- const E = ({ title: i, image: m, tags: s, callbackView: o }) => /* @__PURE__ */ t.jsxs("section", { className: r.root, children: [
19
- /* @__PURE__ */ t.jsxs("div", { className: r.content, children: [
20
- /* @__PURE__ */ t.jsx(p, { title: i, className: r.title, defaultVariant: "displaySm", mobileVariant: "headingXl" }),
21
- /* @__PURE__ */ t.jsx(l, { tags: s }),
22
- o && /* @__PURE__ */ t.jsx("div", { className: r.callback, children: /* @__PURE__ */ t.jsx(
23
- a,
1
+ import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
+ import { Callback as l } from "../../components/Callback/Callback.es.js";
3
+ import { HighlightedTitle as a } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
4
+ import { cn as n } from "../../utils/cn/cn.es.js";
5
+ import { ProtocolTags as p } from "./components/ProtocolTags/ProtocolTags.es.js";
6
+ import o from "./yourProtocol.module.css.es.js";
7
+ const N = ({ title: e, image: s, tags: m, callbackView: t }) => /* @__PURE__ */ i("section", { className: o.root, children: [
8
+ /* @__PURE__ */ i("div", { className: o.content, children: [
9
+ /* @__PURE__ */ r(a, { title: e, className: o.title, defaultVariant: "displaySm", mobileVariant: "headingXl" }),
10
+ /* @__PURE__ */ r(p, { tags: m }),
11
+ t && /* @__PURE__ */ r("div", { className: o.callback, children: /* @__PURE__ */ r(
12
+ l,
24
13
  {
25
- title: o.title,
26
- description: o.description ?? "",
27
- price: o.price ?? "",
28
- image: o.image,
14
+ title: t.title,
15
+ description: t.description ?? "",
16
+ price: t.price ?? "",
17
+ image: t.image,
29
18
  button: {
30
- href: o.signupUrl ?? ""
19
+ href: t.signupUrl ?? ""
31
20
  },
32
21
  size: "sm"
33
22
  }
34
23
  ) })
35
24
  ] }),
36
- /* @__PURE__ */ t.jsx("img", { src: m, alt: "Your Protocol", className: e(r.image, r.desktop), width: 481, height: 640 })
25
+ /* @__PURE__ */ r("img", { src: s, alt: "Your Protocol", className: n(o.image, o.desktop), width: 481, height: 640 })
37
26
  ] });
38
27
  export {
39
- E as YourProtocol
28
+ N as YourProtocol
40
29
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../../_virtual/jsx-runtime.cjs.js"),l=require("react");require("../../../../components/Button/Button.cjs.js");require("../../../../components/Label/Label.cjs.js");const p=require("../../../../components/Tag/Tag.cjs.js");require("../../../../components/Tabs/Tabs.cjs.js");const u=require("../../../../utils/cn.cjs.js");require("../../../../components/Icon/Icon.cjs.js");const n=require("../../../../components/Typography/Typography.cjs.js");require("../../../../components/InfiniteScroll/InfiniteScroll.cjs.js");require("../../../../node_modules/swiper/swiper-react.cjs.js");;/* empty css */;/* empty css */;/* empty css */const s=require("./protocolTags.module.css.cjs.js"),x=({tags:t})=>{var a;const[i,c]=l.useState(((a=t[0])==null?void 0:a.label)||null),o=l.useMemo(()=>{var e;return(e=t.find(d=>d.label===i))==null?void 0:e.description},[i,t]);return r.jsxRuntimeExports.jsxs("div",{className:s.default.root,children:[r.jsxRuntimeExports.jsx("div",{className:s.default.tags,children:t.map(e=>r.jsxRuntimeExports.jsx(p.Tag,{value:e.label,size:"md",active:e.label===i,onClick:c,children:e.label},e.label))}),o&&r.jsxRuntimeExports.jsxs(r.jsxRuntimeExports.Fragment,{children:[r.jsxRuntimeExports.jsx(n.Typography,{as:"p",defaultVariant:"bodyLg",className:u.cn(s.default.description,s.default.desktop),children:o}),r.jsxRuntimeExports.jsx(n.Typography,{as:"p",defaultVariant:"bodyMd",className:u.cn(s.default.description,s.default.mobile),children:o})]})]})};exports.ProtocolTags=x;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),c=require("react"),p=require("../../../../components/Tag/Tag.cjs.js"),i=require("../../../../components/Typography/Typography.cjs.js"),n=require("../../../../utils/cn/cn.cjs.js"),l=require("./protocolTags.module.css.cjs.js"),m=({tags:o})=>{var r;const[s,d]=c.useState(((r=o[0])==null?void 0:r.label)||null),t=c.useMemo(()=>{var e;return(e=o.find(u=>u.label===s))==null?void 0:e.description},[s,o]);return a.jsxs("div",{className:l.default.root,children:[a.jsx("div",{className:l.default.tags,children:o.map(e=>a.jsx(p.Tag,{value:e.label,size:"md",active:e.label===s,onClick:d,children:e.label},e.label))}),t&&a.jsxs(a.Fragment,{children:[a.jsx(i.Typography,{as:"p",defaultVariant:"bodyLg",className:n.cn(l.default.description,l.default.desktop),children:t}),a.jsx(i.Typography,{as:"p",defaultVariant:"bodyMd",className:n.cn(l.default.description,l.default.mobile),children:t})]})]})};exports.ProtocolTags=m;
@@ -1,32 +1,24 @@
1
- import { j as i } from "../../../../_virtual/jsx-runtime.es.js";
2
- import { useState as n, useMemo as d } from "react";
3
- import "../../../../components/Button/Button.es.js";
4
- import "../../../../components/Label/Label.es.js";
5
- import { Tag as b } from "../../../../components/Tag/Tag.es.js";
6
- import "../../../../components/Tabs/Tabs.es.js";
7
- import { cn as m } from "../../../../utils/cn.es.js";
8
- import "../../../../components/Icon/Icon.es.js";
9
- import { Typography as a } from "../../../../components/Typography/Typography.es.js";
10
- import "../../../../components/InfiniteScroll/InfiniteScroll.es.js";
11
- import "../../../../node_modules/swiper/swiper-react.es.js";
12
- /* empty css */
13
- /* empty css */
14
- /* empty css */
15
- import r from "./protocolTags.module.css.es.js";
16
- const C = ({ tags: e }) => {
17
- var l;
18
- const [t, p] = n(((l = e[0]) == null ? void 0 : l.label) || null), s = d(() => {
19
- var o;
20
- return (o = e.find((c) => c.label === t)) == null ? void 0 : o.description;
21
- }, [t, e]);
22
- return /* @__PURE__ */ i.jsxs("div", { className: r.root, children: [
23
- /* @__PURE__ */ i.jsx("div", { className: r.tags, children: e.map((o) => /* @__PURE__ */ i.jsx(b, { value: o.label, size: "md", active: o.label === t, onClick: p, children: o.label }, o.label)) }),
24
- s && /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
25
- /* @__PURE__ */ i.jsx(a, { as: "p", defaultVariant: "bodyLg", className: m(r.description, r.desktop), children: s }),
26
- /* @__PURE__ */ i.jsx(a, { as: "p", defaultVariant: "bodyMd", className: m(r.description, r.mobile), children: s })
1
+ "use client";
2
+ import { jsxs as t, jsx as o, Fragment as p } from "react/jsx-runtime";
3
+ import { useState as b, useMemo as f } from "react";
4
+ import { Tag as u } from "../../../../components/Tag/Tag.es.js";
5
+ import { Typography as c } from "../../../../components/Typography/Typography.es.js";
6
+ import { cn as n } from "../../../../utils/cn/cn.es.js";
7
+ import l from "./protocolTags.module.css.es.js";
8
+ const V = ({ tags: i }) => {
9
+ var s;
10
+ const [r, m] = b(((s = i[0]) == null ? void 0 : s.label) || null), a = f(() => {
11
+ var e;
12
+ return (e = i.find((d) => d.label === r)) == null ? void 0 : e.description;
13
+ }, [r, i]);
14
+ return /* @__PURE__ */ t("div", { className: l.root, children: [
15
+ /* @__PURE__ */ o("div", { className: l.tags, children: i.map((e) => /* @__PURE__ */ o(u, { value: e.label, size: "md", active: e.label === r, onClick: m, children: e.label }, e.label)) }),
16
+ a && /* @__PURE__ */ t(p, { children: [
17
+ /* @__PURE__ */ o(c, { as: "p", defaultVariant: "bodyLg", className: n(l.description, l.desktop), children: a }),
18
+ /* @__PURE__ */ o(c, { as: "p", defaultVariant: "bodyMd", className: n(l.description, l.mobile), children: a })
27
19
  ] })
28
20
  ] });
29
21
  };
30
22
  export {
31
- C as ProtocolTags
23
+ V as ProtocolTags
32
24
  };
@@ -1,3 +0,0 @@
1
- export { YourProtocol } from './YourProtocol';
2
- export { TotalCare } from './TotalCare';
3
- export { ProductsDisplay } from './ProductsDisplay';
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../_virtual/ArrowContainer.cjs.js"),g=require("react/jsx-runtime"),h=require("react"),q=require("./useArrowContainer.cjs.js");var _;function R(){if(_)return e.__exports;_=1;var o=e.__exports&&e.__exports.__assign||function(){return o=Object.assign||function(r){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=t[a])}return r},o.apply(this,arguments)};Object.defineProperty(e.__exports,"__esModule",{value:!0}),e.__exports.ArrowContainer=void 0;var s=g,l=h,y=q.__require(),C=function(r){var t=r.childRect,n=r.popoverRect,i=r.position,a=r.arrowColor,d=r.arrowSize,m=r.arrowClassName,u=r.arrowStyle,S=r.className,f=r.children,c=r.style,w=(0,y.useArrowContainer)({childRect:t,popoverRect:n,position:i,arrowColor:a,arrowSize:d}),p=w.arrowContainerStyle,v=w.arrowStyle,x=(0,l.useMemo)(function(){return o(o({},p),c)},[p,c]),A=(0,l.useMemo)(function(){return o(o({},v),u)},[v,u]);return(0,s.jsxs)("div",{className:S,style:x,children:[(0,s.jsx)("div",{style:A,className:m}),f]})};return e.__exports.ArrowContainer=C,e.__exports}exports.__require=R;
@@ -0,0 +1,37 @@
1
+ import { __exports as e } from "../../../_virtual/ArrowContainer.es.js";
2
+ import g from "react/jsx-runtime";
3
+ import R from "react";
4
+ import { __require as x } from "./useArrowContainer.es.js";
5
+ var v;
6
+ function O() {
7
+ if (v) return e;
8
+ v = 1;
9
+ var o = e && e.__assign || function() {
10
+ return o = Object.assign || function(r) {
11
+ for (var t, n = 1, i = arguments.length; n < i; n++) {
12
+ t = arguments[n];
13
+ for (var a in t) Object.prototype.hasOwnProperty.call(t, a) && (r[a] = t[a]);
14
+ }
15
+ return r;
16
+ }, o.apply(this, arguments);
17
+ };
18
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.ArrowContainer = void 0;
19
+ var s = g, l = R, C = x(), f = function(r) {
20
+ var t = r.childRect, n = r.popoverRect, i = r.position, a = r.arrowColor, y = r.arrowSize, d = r.arrowClassName, u = r.arrowStyle, A = r.className, S = r.children, c = r.style, w = (0, C.useArrowContainer)({
21
+ childRect: t,
22
+ popoverRect: n,
23
+ position: i,
24
+ arrowColor: a,
25
+ arrowSize: y
26
+ }), m = w.arrowContainerStyle, p = w.arrowStyle, h = (0, l.useMemo)(function() {
27
+ return o(o({}, m), c);
28
+ }, [m, c]), _ = (0, l.useMemo)(function() {
29
+ return o(o({}, p), u);
30
+ }, [p, u]);
31
+ return (0, s.jsxs)("div", { className: A, style: h, children: [(0, s.jsx)("div", { style: _, className: d }), S] });
32
+ };
33
+ return e.ArrowContainer = f, e;
34
+ }
35
+ export {
36
+ O as __require
37
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../../../_virtual/Popover.cjs2.js"),ve=require("react/jsx-runtime"),fe=require("react"),pe=require("./PopoverPortal.cjs.js"),me=require("./util.cjs.js"),_e=require("./usePopover.cjs.js"),Pe=require("./useMemoizedArray.cjs.js"),ye=require("./useHandlePrevValues.cjs.js"),be=require("./useArrowContainer.cjs.js"),ge=require("./ArrowContainer.cjs.js");var X;function Ee(){return X||(X=1,function(a){var j=g.__exports&&g.__exports.__assign||function(){return j=Object.assign||function(e){for(var n,o=1,T=arguments.length;o<T;o++){n=arguments[o];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e},j.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0}),a.Popover=a.usePopover=a.ArrowContainer=a.useArrowContainer=void 0;var E=ve,t=fe,Z=pe.__require(),f=me.__require(),V=_e.__require();Object.defineProperty(a,"usePopover",{enumerable:!0,get:function(){return V.usePopover}});var x=Pe.__require(),ee=ye.__require(),re=be.__require();Object.defineProperty(a,"useArrowContainer",{enumerable:!0,get:function(){return re.useArrowContainer}});var ne=ge.__require();Object.defineProperty(a,"ArrowContainer",{enumerable:!0,get:function(){return ne.ArrowContainer}});var oe=["top","left","right","bottom"],te=(0,t.forwardRef)(function(e,n){var o=e.isOpen,T=e.children,c=e.content,Y=e.positions,k=Y===void 0?oe:Y,F=e.align,h=F===void 0?"center":F,N=e.padding,w=N===void 0?0:N,H=e.reposition,C=H===void 0?!0:H,B=e.parentElement,p=B===void 0?window.document.body:B,D=e.boundaryElement,q=D===void 0?p:D,ie=e.containerClassName,m=e.containerStyle,R=e.transform,U=e.transformMode,O=U===void 0?"absolute":U,$=e.boundaryInset,_=$===void 0?0:$,A=e.onClickOutside,W=e.clickOutsideCapture,P=W===void 0?!1:W,y=(0,x.useMemoizedArray)(Array.isArray(k)?k:[k]),G=(0,ee.useHandlePrevValues)({positions:y,reposition:C,transformMode:O,transform:R,boundaryElement:q,boundaryInset:_}),i=G.prev,J=G.updatePrevValues,l=(0,t.useRef)(),K=(0,t.useState)({align:h,nudgedLeft:0,nudgedTop:0,position:y[0],padding:w,childRect:f.EMPTY_RECT,popoverRect:f.EMPTY_RECT,parentRect:f.EMPTY_RECT,boundaryRect:f.EMPTY_RECT,boundaryInset:_,violations:f.EMPTY_RECT,hasViolations:!1}),u=K[0],ue=K[1],ae=(0,t.useCallback)(function(r){return ue(r)},[]),I=(0,V.usePopover)({isOpen:o,childRef:l,containerClassName:ie,parentElement:p,boundaryElement:q,transform:R,transformMode:O,positions:y,align:h,padding:w,boundaryInset:_,reposition:C,onPositionPopover:ae}),M=I.positionPopover,s=I.popoverRef,se=I.scoutRef;(0,t.useLayoutEffect)(function(){var r=!0,d=function(){var v,S;if(o&&r){var Q=(v=l==null?void 0:l.current)===null||v===void 0?void 0:v.getBoundingClientRect(),z=(S=s==null?void 0:s.current)===null||S===void 0?void 0:S.getBoundingClientRect();Q!=null&&z!=null&&(!(0,f.rectsAreEqual)(Q,u.childRect)||z.width!==u.popoverRect.width||z.height!==u.popoverRect.height||u.padding!==w||u.align!==h||y!==i.positions||C!==i.reposition||O!==i.transformMode||R!==i.transform||q!==i.boundaryElement||_!==i.boundaryInset)&&M(),J(),r&&window.requestAnimationFrame(d)}};return d(),function(){r=!1}},[h,q,_,o,w,s,u.align,u.childRect,u.padding,u.popoverRect.height,u.popoverRect.width,M,y,i.boundaryElement,i.boundaryInset,i.positions,i.reposition,i.transform,i.transformMode,C,R,O,J]),(0,t.useEffect)(function(){var r=s.current;return Object.assign(r.style,m),function(){Object.keys(m??{}).forEach(function(d){return delete r.style[d]})}},[m,o,s]);var b=(0,t.useCallback)(function(r){var d,v;o&&!(!((d=s.current)===null||d===void 0)&&d.contains(r.target))&&!(!((v=l.current)===null||v===void 0)&&v.contains(r.target))&&(A==null||A(r))},[o,A,s]),L=(0,t.useCallback)(function(){l.current&&o&&window.requestAnimationFrame(function(){return M()})},[M,o]);(0,t.useEffect)(function(){var r=p.ownerDocument.body;return r.addEventListener("click",b,P),r.addEventListener("contextmenu",b,P),window.addEventListener("resize",L),function(){r.removeEventListener("click",b,P),r.removeEventListener("contextmenu",b,P),window.removeEventListener("resize",L)}},[P,b,L,p]);var de=(0,t.useCallback)(function(r){l.current=r,n!=null&&(typeof n=="object"?n.current=r:typeof n=="function"&&n(r))},[n]),ce=function(){return(0,t.cloneElement)(T,{ref:de})},le=function(){return o?(0,E.jsx)(Z.PopoverPortal,{element:s.current,scoutElement:se.current,container:p,children:typeof c=="function"?c(u):c}):null};return(0,E.jsxs)(E.Fragment,{children:[ce(),le()]})});a.Popover=(0,t.forwardRef)(function(e,n){return typeof window>"u"?e.children:(0,E.jsx)(te,j({},e,{ref:n}))})}(g.__exports)),g.__exports}exports.__require=Ee;
@@ -0,0 +1,147 @@
1
+ import { __exports as g } from "../../../_virtual/Popover.es2.js";
2
+ import ce from "react/jsx-runtime";
3
+ import fe from "react";
4
+ import { __require as pe } from "./PopoverPortal.es.js";
5
+ import { __require as me } from "./util.es.js";
6
+ import { __require as Pe } from "./usePopover.es.js";
7
+ import { __require as _e } from "./useMemoizedArray.es.js";
8
+ import { __require as ye } from "./useHandlePrevValues.es.js";
9
+ import { __require as be } from "./useArrowContainer.es.js";
10
+ import { __require as ge } from "./ArrowContainer.es.js";
11
+ var X;
12
+ function ke() {
13
+ return X ? g : (X = 1, function(a) {
14
+ var j = g && g.__assign || function() {
15
+ return j = Object.assign || function(e) {
16
+ for (var n, o = 1, k = arguments.length; o < k; o++) {
17
+ n = arguments[o];
18
+ for (var l in n) Object.prototype.hasOwnProperty.call(n, l) && (e[l] = n[l]);
19
+ }
20
+ return e;
21
+ }, j.apply(this, arguments);
22
+ };
23
+ Object.defineProperty(a, "__esModule", { value: !0 }), a.Popover = a.usePopover = a.ArrowContainer = a.useArrowContainer = void 0;
24
+ var E = ce, t = fe, Z = pe(), f = me(), z = Pe();
25
+ Object.defineProperty(a, "usePopover", { enumerable: !0, get: function() {
26
+ return z.usePopover;
27
+ } });
28
+ var x = _e(), ee = ye(), re = be();
29
+ Object.defineProperty(a, "useArrowContainer", { enumerable: !0, get: function() {
30
+ return re.useArrowContainer;
31
+ } });
32
+ var ne = ge();
33
+ Object.defineProperty(a, "ArrowContainer", { enumerable: !0, get: function() {
34
+ return ne.ArrowContainer;
35
+ } });
36
+ var oe = ["top", "left", "right", "bottom"], te = (0, t.forwardRef)(function(e, n) {
37
+ var o = e.isOpen, k = e.children, l = e.content, V = e.positions, T = V === void 0 ? oe : V, Y = e.align, h = Y === void 0 ? "center" : Y, F = e.padding, w = F === void 0 ? 0 : F, N = e.reposition, C = N === void 0 ? !0 : N, H = e.parentElement, p = H === void 0 ? window.document.body : H, B = e.boundaryElement, R = B === void 0 ? p : B, ie = e.containerClassName, m = e.containerStyle, q = e.transform, D = e.transformMode, O = D === void 0 ? "absolute" : D, $ = e.boundaryInset, P = $ === void 0 ? 0 : $, A = e.onClickOutside, W = e.clickOutsideCapture, _ = W === void 0 ? !1 : W, y = (0, x.useMemoizedArray)(Array.isArray(T) ? T : [T]), G = (0, ee.useHandlePrevValues)({
38
+ positions: y,
39
+ reposition: C,
40
+ transformMode: O,
41
+ transform: q,
42
+ boundaryElement: R,
43
+ boundaryInset: P
44
+ }), i = G.prev, J = G.updatePrevValues, v = (0, t.useRef)(), K = (0, t.useState)({
45
+ align: h,
46
+ nudgedLeft: 0,
47
+ nudgedTop: 0,
48
+ position: y[0],
49
+ padding: w,
50
+ childRect: f.EMPTY_RECT,
51
+ popoverRect: f.EMPTY_RECT,
52
+ parentRect: f.EMPTY_RECT,
53
+ boundaryRect: f.EMPTY_RECT,
54
+ boundaryInset: P,
55
+ violations: f.EMPTY_RECT,
56
+ hasViolations: !1
57
+ }), u = K[0], ue = K[1], ae = (0, t.useCallback)(function(r) {
58
+ return ue(r);
59
+ }, []), I = (0, z.usePopover)({
60
+ isOpen: o,
61
+ childRef: v,
62
+ containerClassName: ie,
63
+ parentElement: p,
64
+ boundaryElement: R,
65
+ transform: q,
66
+ transformMode: O,
67
+ positions: y,
68
+ align: h,
69
+ padding: w,
70
+ boundaryInset: P,
71
+ reposition: C,
72
+ onPositionPopover: ae
73
+ }), M = I.positionPopover, s = I.popoverRef, se = I.scoutRef;
74
+ (0, t.useLayoutEffect)(function() {
75
+ var r = !0, d = function() {
76
+ var c, S;
77
+ if (o && r) {
78
+ var Q = (c = v == null ? void 0 : v.current) === null || c === void 0 ? void 0 : c.getBoundingClientRect(), U = (S = s == null ? void 0 : s.current) === null || S === void 0 ? void 0 : S.getBoundingClientRect();
79
+ Q != null && U != null && (!(0, f.rectsAreEqual)(Q, u.childRect) || U.width !== u.popoverRect.width || U.height !== u.popoverRect.height || u.padding !== w || u.align !== h || y !== i.positions || C !== i.reposition || O !== i.transformMode || q !== i.transform || R !== i.boundaryElement || P !== i.boundaryInset) && M(), J(), r && window.requestAnimationFrame(d);
80
+ }
81
+ };
82
+ return d(), function() {
83
+ r = !1;
84
+ };
85
+ }, [
86
+ h,
87
+ R,
88
+ P,
89
+ o,
90
+ w,
91
+ s,
92
+ u.align,
93
+ u.childRect,
94
+ u.padding,
95
+ u.popoverRect.height,
96
+ u.popoverRect.width,
97
+ M,
98
+ y,
99
+ i.boundaryElement,
100
+ i.boundaryInset,
101
+ i.positions,
102
+ i.reposition,
103
+ i.transform,
104
+ i.transformMode,
105
+ C,
106
+ q,
107
+ O,
108
+ J
109
+ ]), (0, t.useEffect)(function() {
110
+ var r = s.current;
111
+ return Object.assign(r.style, m), function() {
112
+ Object.keys(m ?? {}).forEach(function(d) {
113
+ return delete r.style[d];
114
+ });
115
+ };
116
+ }, [m, o, s]);
117
+ var b = (0, t.useCallback)(function(r) {
118
+ var d, c;
119
+ o && !(!((d = s.current) === null || d === void 0) && d.contains(r.target)) && !(!((c = v.current) === null || c === void 0) && c.contains(r.target)) && (A == null || A(r));
120
+ }, [o, A, s]), L = (0, t.useCallback)(function() {
121
+ v.current && o && window.requestAnimationFrame(function() {
122
+ return M();
123
+ });
124
+ }, [M, o]);
125
+ (0, t.useEffect)(function() {
126
+ var r = p.ownerDocument.body;
127
+ return r.addEventListener("click", b, _), r.addEventListener("contextmenu", b, _), window.addEventListener("resize", L), function() {
128
+ r.removeEventListener("click", b, _), r.removeEventListener("contextmenu", b, _), window.removeEventListener("resize", L);
129
+ };
130
+ }, [_, b, L, p]);
131
+ var de = (0, t.useCallback)(function(r) {
132
+ v.current = r, n != null && (typeof n == "object" ? n.current = r : typeof n == "function" && n(r));
133
+ }, [n]), le = function() {
134
+ return (0, t.cloneElement)(k, { ref: de });
135
+ }, ve = function() {
136
+ return o ? (0, E.jsx)(Z.PopoverPortal, { element: s.current, scoutElement: se.current, container: p, children: typeof l == "function" ? l(u) : l }) : null;
137
+ };
138
+ return (0, E.jsxs)(E.Fragment, { children: [le(), ve()] });
139
+ });
140
+ a.Popover = (0, t.forwardRef)(function(e, n) {
141
+ return typeof window > "u" ? e.children : (0, E.jsx)(te, j({}, e, { ref: n }));
142
+ });
143
+ }(g), g);
144
+ }
145
+ export {
146
+ ke as __require
147
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../_virtual/PopoverPortal.cjs.js"),p=require("react"),v=require("react-dom");var i;function d(){if(i)return r.__exports;i=1,Object.defineProperty(r.__exports,"__esModule",{value:!0}),r.__exports.PopoverPortal=void 0;var u=p,a=v,l=function(o){var e=o.container,t=o.element,n=o.scoutElement,c=o.children;return(0,u.useLayoutEffect)(function(){return e.appendChild(t),e.appendChild(n),function(){e.removeChild(t),e.removeChild(n)}},[e,t,n]),(0,a.createPortal)(c,t)};return r.__exports.PopoverPortal=l,r.__exports}exports.__require=d;