@zenpatient-org/healthspan-marketing-ui 0.1.24 → 0.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/healthspan-marketing-ui.css +1 -1
- package/dist/modules/Benefits/Benefits.cjs.js +1 -1
- package/dist/modules/Benefits/Benefits.es.js +8 -8
- package/dist/modules/Benefits/benefits.module.css.cjs.js +1 -1
- package/dist/modules/Benefits/benefits.module.css.es.js +17 -15
- package/dist/modules/Callback/Callback.cjs.js +1 -1
- package/dist/modules/Callback/Callback.es.js +18 -18
- package/dist/modules/Callback/callback.module.css.cjs.js +1 -1
- package/dist/modules/Callback/callback.module.css.es.js +8 -6
- package/dist/modules/Compare/Compare.cjs.js +1 -1
- package/dist/modules/Compare/Compare.es.js +13 -13
- package/dist/modules/Compare/compare.module.css.cjs.js +1 -1
- package/dist/modules/Compare/compare.module.css.es.js +10 -8
- package/dist/modules/Comparison/Comparison.cjs.js +1 -1
- package/dist/modules/Comparison/Comparison.es.js +18 -9
- package/dist/modules/Comparison/comparison.module.css.cjs.js +1 -1
- package/dist/modules/Comparison/comparison.module.css.es.js +34 -32
- package/dist/modules/FAQ/FAQ.cjs.js +1 -1
- package/dist/modules/FAQ/FAQ.es.js +6 -6
- package/dist/modules/FAQ/faq.module.css.cjs.js +1 -1
- package/dist/modules/FAQ/faq.module.css.es.js +13 -11
- package/dist/modules/FeaturedIn/FeaturedIn.cjs.js +1 -1
- package/dist/modules/FeaturedIn/FeaturedIn.es.js +7 -7
- package/dist/modules/FollowTheScience/FollowTheScience.cjs.js +1 -1
- package/dist/modules/FollowTheScience/FollowTheScience.es.js +45 -43
- package/dist/modules/FollowTheScience/followTheScience.module.css.cjs.js +1 -1
- package/dist/modules/FollowTheScience/followTheScience.module.css.es.js +10 -8
- package/dist/modules/ImageWithText/ImageWithText.cjs.js +1 -1
- package/dist/modules/ImageWithText/ImageWithText.es.js +13 -13
- package/dist/modules/ImageWithText/imageWithText.module.css.cjs.js +1 -1
- package/dist/modules/ImageWithText/imageWithText.module.css.es.js +18 -16
- package/dist/modules/LongevityPathways/LongevityPathways.cjs.js +1 -1
- package/dist/modules/LongevityPathways/LongevityPathways.es.js +4 -4
- package/dist/modules/ProductsDisplay/ProductsDisplay.cjs.js +1 -1
- package/dist/modules/ProductsDisplay/ProductsDisplay.es.js +4 -4
- package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/productsDisplayTabs.module.css.cjs.js +1 -1
- package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/productsDisplayTabs.module.css.es.js +5 -5
- package/dist/modules/Studies/Studies.cjs.js +1 -1
- package/dist/modules/Studies/Studies.es.js +16 -16
- package/dist/modules/Studies/studies.module.css.cjs.js +1 -1
- package/dist/modules/Studies/studies.module.css.es.js +14 -12
- package/dist/modules/TargetedPrograms/TargetedPrograms.cjs.js +1 -1
- package/dist/modules/TargetedPrograms/TargetedPrograms.es.js +9 -9
- package/dist/modules/Testimonial/Testimonial.cjs.js +1 -1
- package/dist/modules/Testimonial/Testimonial.d.ts +2 -2
- package/dist/modules/Testimonial/Testimonial.es.js +7 -7
- package/dist/modules/Testimonial/components/TextCard/TextCard.cjs.js +1 -1
- package/dist/modules/Testimonial/components/TextCard/TextCard.es.js +11 -11
- package/dist/modules/Testimonial/components/VideoCard/VideoCard.cjs.js +1 -1
- package/dist/modules/Testimonial/components/VideoCard/VideoCard.es.js +13 -13
- package/dist/modules/Testimonial/types.d.ts +1 -1
- package/dist/modules/YourProtocol/YourProtocol.cjs.js +1 -1
- package/dist/modules/YourProtocol/YourProtocol.es.js +21 -21
- package/dist/modules/YourProtocol/yourProtocol.module.css.cjs.js +1 -1
- package/dist/modules/YourProtocol/yourProtocol.module.css.es.js +12 -10
- package/package.json +1 -1
|
@@ -1,92 +1,94 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
|
-
import
|
|
7
|
-
import { Swiper as
|
|
6
|
+
import w from "../../node_modules/swiper/modules/navigation.es.js";
|
|
7
|
+
import { Swiper as g, SwiperSlide as N } from "../../node_modules/swiper/swiper-react.es.js";
|
|
8
8
|
import { Benefit as v } from "../../components/Benefit/Benefit.es.js";
|
|
9
|
-
import { EIconName as
|
|
10
|
-
import { Label as
|
|
11
|
-
import { ProgressButton as
|
|
12
|
-
import { TextButton as
|
|
13
|
-
import { useSwiper as
|
|
9
|
+
import { EIconName as R } from "../../components/Icon/constants.es.js";
|
|
10
|
+
import { Label as k } from "../../components/Label/Label.es.js";
|
|
11
|
+
import { ProgressButton as a } from "../../components/ProgressButton/ProgressButton.es.js";
|
|
12
|
+
import { TextButton as C } from "../../components/TextButton/TextButton.es.js";
|
|
13
|
+
import { useSwiper as E } from "../../utils/useSwiper/useSwiper.es.js";
|
|
14
14
|
import i from "./followTheScience.module.css.es.js";
|
|
15
|
-
const
|
|
16
|
-
function
|
|
15
|
+
const x = [w];
|
|
16
|
+
function _({ labelText: c, benefits: m }) {
|
|
17
17
|
const {
|
|
18
|
-
activeIndex:
|
|
19
|
-
setIsEnd:
|
|
20
|
-
isEnd:
|
|
21
|
-
|
|
18
|
+
activeIndex: B,
|
|
19
|
+
setIsEnd: p,
|
|
20
|
+
isEnd: r,
|
|
21
|
+
isBeginning: t,
|
|
22
|
+
hideNav: n,
|
|
23
|
+
handleSlideChange: h,
|
|
22
24
|
handlePrevClick: s,
|
|
23
|
-
handleNextClick:
|
|
24
|
-
onSwiperInit:
|
|
25
|
-
handleSwiperResize:
|
|
26
|
-
} =
|
|
27
|
-
return /* @__PURE__ */
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
/* @__PURE__ */ e(
|
|
30
|
-
/* @__PURE__ */ e("div", { className: i.progressButtons, "data-device": "desktop", children: /* @__PURE__ */ e(
|
|
31
|
-
|
|
25
|
+
handleNextClick: l,
|
|
26
|
+
onSwiperInit: f,
|
|
27
|
+
handleSwiperResize: S
|
|
28
|
+
} = E();
|
|
29
|
+
return /* @__PURE__ */ d("section", { className: i.container, children: [
|
|
30
|
+
/* @__PURE__ */ d("div", { className: i.heading, children: [
|
|
31
|
+
/* @__PURE__ */ e(k, { color: "white", size: "lg", children: c }),
|
|
32
|
+
!n && /* @__PURE__ */ e("div", { className: i.progressButtons, "data-device": "desktop", children: /* @__PURE__ */ e(
|
|
33
|
+
a,
|
|
32
34
|
{
|
|
33
35
|
left: {
|
|
34
36
|
onClick: s,
|
|
35
|
-
disabled:
|
|
37
|
+
disabled: t
|
|
36
38
|
},
|
|
37
39
|
right: {
|
|
38
|
-
disabled:
|
|
39
|
-
onClick:
|
|
40
|
+
disabled: r,
|
|
41
|
+
onClick: l
|
|
40
42
|
}
|
|
41
43
|
}
|
|
42
44
|
) })
|
|
43
45
|
] }),
|
|
44
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
45
|
-
|
|
46
|
+
/* @__PURE__ */ e("div", { className: i.content, children: /* @__PURE__ */ e(
|
|
47
|
+
g,
|
|
46
48
|
{
|
|
47
|
-
onSwiper:
|
|
48
|
-
onResize:
|
|
49
|
-
onSlideChange:
|
|
50
|
-
onReachEnd: () =>
|
|
51
|
-
modules:
|
|
49
|
+
onSwiper: f,
|
|
50
|
+
onResize: S,
|
|
51
|
+
onSlideChange: h,
|
|
52
|
+
onReachEnd: () => p(!0),
|
|
53
|
+
modules: x,
|
|
52
54
|
spaceBetween: 0,
|
|
53
55
|
slidesPerView: "auto",
|
|
54
56
|
className: i.swiper,
|
|
55
|
-
children:
|
|
57
|
+
children: m.map((o, u) => /* @__PURE__ */ e(N, { className: i.swiperSlide, children: /* @__PURE__ */ e(
|
|
56
58
|
v,
|
|
57
59
|
{
|
|
58
60
|
title: o.title,
|
|
59
61
|
description: o.description,
|
|
60
62
|
button: /* @__PURE__ */ e(
|
|
61
|
-
|
|
63
|
+
C,
|
|
62
64
|
{
|
|
63
65
|
as: "a",
|
|
64
66
|
size: "sm",
|
|
65
67
|
color: "white",
|
|
66
|
-
suffixIcon:
|
|
68
|
+
suffixIcon: R.ARROW_FORWARD,
|
|
67
69
|
href: o.link,
|
|
68
70
|
children: "READ THE STUDY"
|
|
69
71
|
}
|
|
70
72
|
)
|
|
71
73
|
}
|
|
72
|
-
) },
|
|
74
|
+
) }, u))
|
|
73
75
|
}
|
|
74
76
|
) }),
|
|
75
|
-
/* @__PURE__ */ e("div", { className: i.progressButtons, "data-device": "mobile", children: /* @__PURE__ */ e(
|
|
76
|
-
|
|
77
|
+
!n && /* @__PURE__ */ e("div", { className: i.progressButtons, "data-device": "mobile", children: /* @__PURE__ */ e(
|
|
78
|
+
a,
|
|
77
79
|
{
|
|
78
80
|
left: {
|
|
79
81
|
onClick: s,
|
|
80
|
-
disabled:
|
|
82
|
+
disabled: t
|
|
81
83
|
},
|
|
82
84
|
right: {
|
|
83
|
-
onClick:
|
|
84
|
-
disabled:
|
|
85
|
+
onClick: l,
|
|
86
|
+
disabled: r
|
|
85
87
|
}
|
|
86
88
|
}
|
|
87
89
|
) })
|
|
88
90
|
] });
|
|
89
91
|
}
|
|
90
92
|
export {
|
|
91
|
-
|
|
93
|
+
_ as FollowTheScience
|
|
92
94
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="followTheScience-module__container___Aur-g",o="followTheScience-module__heading___R9F6F",
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="followTheScience-module__container___Aur-g",o="followTheScience-module__heading___R9F6F",n="followTheScience-module__content___RnT5E",t="followTheScience-module__swiper___iUsAd",s="followTheScience-module__swiperSlide___YMeah",_="followTheScience-module__progressButtons___mzqTh",i={container:e,heading:o,content:n,swiper:t,swiperSlide:s,progressButtons:_};exports.container=e;exports.content=n;exports.default=i;exports.heading=o;exports.progressButtons=_;exports.swiper=t;exports.swiperSlide=s;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
const e = "followTheScience-module__container___Aur-g", o = "followTheScience-module__heading___R9F6F",
|
|
1
|
+
const e = "followTheScience-module__container___Aur-g", o = "followTheScience-module__heading___R9F6F", n = "followTheScience-module__content___RnT5E", _ = "followTheScience-module__swiper___iUsAd", s = "followTheScience-module__swiperSlide___YMeah", c = "followTheScience-module__progressButtons___mzqTh", t = {
|
|
2
2
|
container: e,
|
|
3
3
|
heading: o,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
content: n,
|
|
5
|
+
swiper: _,
|
|
6
|
+
swiperSlide: s,
|
|
7
|
+
progressButtons: c
|
|
7
8
|
};
|
|
8
9
|
export {
|
|
9
10
|
e as container,
|
|
10
|
-
|
|
11
|
+
n as content,
|
|
12
|
+
t as default,
|
|
11
13
|
o as heading,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
c as progressButtons,
|
|
15
|
+
_ as swiper,
|
|
16
|
+
s as swiperSlide
|
|
15
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),n=require("../../components/Typography/Typography.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),n=require("../../components/Typography/Typography.cjs.js"),c=require("../../utils/cn/cn.cjs.js"),a=require("./imageWithText.module.css.cjs.js"),o=({image:s,text:t,textAlign:i="left",title:l,description:r})=>e.jsx("section",{className:a.default.root,children:e.jsxs("div",{className:a.default.container,children:[e.jsx("div",{className:a.default.imageContainer,children:e.jsx("img",{src:s,alt:"background image",className:a.default.image})}),e.jsxs("div",{className:c.cn(a.default.content,{[a.default.textAlignLeft]:i==="left",[a.default.textAlignRight]:i==="right"}),children:[l&&r&&e.jsxs("div",{className:a.default.richTextContainer,children:[e.jsx(d.HighlightedTitle,{colorScheme:"dark",title:l,defaultVariant:"displayXs",mobileVariant:"headingLg"}),e.jsx(n.Typography,{defaultVariant:"bodyMd",mobileVariant:"bodySm",children:r})]}),t&&e.jsx("div",{className:a.default.textContainer,children:e.jsx(n.Typography,{defaultVariant:"displayXs",mobileVariant:"headingXs",children:t})})]})]})});exports.ImageWithText=o;
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { HighlightedTitle as
|
|
3
|
-
import { Typography as
|
|
4
|
-
import { cn as
|
|
1
|
+
import { jsx as i, jsxs as e } from "react/jsx-runtime";
|
|
2
|
+
import { HighlightedTitle as s } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
|
|
3
|
+
import { Typography as o } from "../../components/Typography/Typography.es.js";
|
|
4
|
+
import { cn as d } from "../../utils/cn/cn.es.js";
|
|
5
5
|
import a from "./imageWithText.module.css.es.js";
|
|
6
|
-
const y = ({ image:
|
|
7
|
-
/* @__PURE__ */ i("div", { className: a.imageContainer, children: /* @__PURE__ */ i("img", { src:
|
|
6
|
+
const y = ({ image: m, text: r, textAlign: t = "left", title: n, description: l }) => /* @__PURE__ */ i("section", { className: a.root, children: /* @__PURE__ */ e("div", { className: a.container, children: [
|
|
7
|
+
/* @__PURE__ */ i("div", { className: a.imageContainer, children: /* @__PURE__ */ i("img", { src: m, alt: "background image", className: a.image }) }),
|
|
8
8
|
/* @__PURE__ */ e(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
|
-
className:
|
|
11
|
+
className: d(a.content, {
|
|
12
12
|
[a.textAlignLeft]: t === "left",
|
|
13
13
|
[a.textAlignRight]: t === "right"
|
|
14
14
|
}),
|
|
15
15
|
children: [
|
|
16
|
-
|
|
16
|
+
n && l && /* @__PURE__ */ e("div", { className: a.richTextContainer, children: [
|
|
17
17
|
/* @__PURE__ */ i(
|
|
18
|
-
|
|
18
|
+
s,
|
|
19
19
|
{
|
|
20
20
|
colorScheme: "dark",
|
|
21
|
-
title:
|
|
21
|
+
title: n,
|
|
22
22
|
defaultVariant: "displayXs",
|
|
23
23
|
mobileVariant: "headingLg"
|
|
24
24
|
}
|
|
25
25
|
),
|
|
26
|
-
/* @__PURE__ */ i(
|
|
26
|
+
/* @__PURE__ */ i(o, { defaultVariant: "bodyMd", mobileVariant: "bodySm", children: l })
|
|
27
27
|
] }),
|
|
28
|
-
r && /* @__PURE__ */ i("div", { className: a.textContainer, children: /* @__PURE__ */ i(
|
|
28
|
+
r && /* @__PURE__ */ i("div", { className: a.textContainer, children: /* @__PURE__ */ i(o, { defaultVariant: "displayXs", mobileVariant: "headingXs", children: r }) })
|
|
29
29
|
]
|
|
30
30
|
}
|
|
31
31
|
)
|
|
32
|
-
] });
|
|
32
|
+
] }) });
|
|
33
33
|
export {
|
|
34
34
|
y as ImageWithText
|
|
35
35
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="imageWithText-module__root___Uq9G7",e="imageWithText-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="imageWithText-module__root___Uq9G7",e="imageWithText-module__container___aRFfK",i="imageWithText-module__content___IKyX1",n="imageWithText-module__textAlignLeft___nxRQf",o="imageWithText-module__textAlignRight___ldGBP",_="imageWithText-module__textContainer___m5Jfs",a="imageWithText-module__richTextContainer___ochKF",g="imageWithText-module__imageContainer___bcAmi",m="imageWithText-module__image___paWe4",r={root:t,container:e,content:i,textAlignLeft:n,textAlignRight:o,textContainer:_,richTextContainer:a,imageContainer:g,image:m};exports.container=e;exports.content=i;exports.default=r;exports.image=m;exports.imageContainer=g;exports.richTextContainer=a;exports.root=t;exports.textAlignLeft=n;exports.textAlignRight=o;exports.textContainer=_;
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
const t = "imageWithText-module__root___Uq9G7", e = "imageWithText-
|
|
1
|
+
const t = "imageWithText-module__root___Uq9G7", e = "imageWithText-module__container___aRFfK", i = "imageWithText-module__content___IKyX1", n = "imageWithText-module__textAlignLeft___nxRQf", _ = "imageWithText-module__textAlignRight___ldGBP", o = "imageWithText-module__textContainer___m5Jfs", a = "imageWithText-module__richTextContainer___ochKF", m = "imageWithText-module__imageContainer___bcAmi", g = "imageWithText-module__image___paWe4", x = {
|
|
2
2
|
root: t,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
container: e,
|
|
4
|
+
content: i,
|
|
5
|
+
textAlignLeft: n,
|
|
6
|
+
textAlignRight: _,
|
|
7
|
+
textContainer: o,
|
|
8
|
+
richTextContainer: a,
|
|
9
|
+
imageContainer: m,
|
|
10
|
+
image: g
|
|
10
11
|
};
|
|
11
12
|
export {
|
|
12
|
-
e as
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
e as container,
|
|
14
|
+
i as content,
|
|
15
|
+
x as default,
|
|
16
|
+
g as image,
|
|
17
|
+
m as imageContainer,
|
|
18
|
+
a as richTextContainer,
|
|
17
19
|
t as root,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
n as textAlignLeft,
|
|
21
|
+
_ as textAlignRight,
|
|
22
|
+
o as textContainer
|
|
21
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),o=require("../../components/ComplexImageCarousel/ComplexImageCarousel.cjs.js"),t=require("./longevityPathways.module.css.cjs.js"),r=({view:a,label:n,title:l,carousel:i})=>e.jsxs("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),o=require("../../components/ComplexImageCarousel/ComplexImageCarousel.cjs.js"),t=require("./longevityPathways.module.css.cjs.js"),r=({view:a,label:n,title:l,carousel:i})=>e.jsxs("section",{className:t.default.root,children:[e.jsx("div",{className:t.default.header,children:e.jsx(s.HighlightedTitle,{title:l,className:t.default.title,defaultVariant:"displayMd",mobileVariant:"headingXl"})}),e.jsx(o.ComplexImageCarousel,{images:i,view:a})]});exports.LongevityPathways=r;
|
|
@@ -2,18 +2,18 @@ import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { HighlightedTitle as o } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
|
|
3
3
|
import { ComplexImageCarousel as s } from "../../components/ComplexImageCarousel/ComplexImageCarousel.es.js";
|
|
4
4
|
import a from "./longevityPathways.module.css.es.js";
|
|
5
|
-
const
|
|
5
|
+
const p = ({ view: i, label: m, title: t, carousel: r }) => /* @__PURE__ */ l("section", { className: a.root, children: [
|
|
6
6
|
/* @__PURE__ */ e("div", { className: a.header, children: /* @__PURE__ */ e(
|
|
7
7
|
o,
|
|
8
8
|
{
|
|
9
|
-
title:
|
|
9
|
+
title: t,
|
|
10
10
|
className: a.title,
|
|
11
11
|
defaultVariant: "displayMd",
|
|
12
12
|
mobileVariant: "headingXl"
|
|
13
13
|
}
|
|
14
14
|
) }),
|
|
15
|
-
/* @__PURE__ */ e(s, { images:
|
|
15
|
+
/* @__PURE__ */ e(s, { images: r, view: i })
|
|
16
16
|
] });
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
p as LongevityPathways
|
|
19
19
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("react"),T=require("../../components/ProductGallery/ProductGallery.cjs.js"),g=require("../../components/ProductGalleryCard/ProductGalleryCard.cjs.js"),i=require("../../components/Typography/Typography.cjs.js"),q=require("./components/ProductsDisplayTabs/ProductsDisplayTabs.cjs.js"),s=require("./productsDisplay.module.css.cjs.js"),j=require("./useProductsData.cjs.js"),x=({labelText:d,productDisplays:u})=>{var l;const{isTabbed:t,title:n,description:y,tabs:a,slidesByTabs:o}=j.useProductsData({productDisplays:u}),[r,p]=c.useState(((l=a[0])==null?void 0:l.value)??""),b=c.useMemo(()=>(o[r]??[]).map((m,P)=>e.jsx(g.ProductGalleryCard,{...m},P)),[r,o]),h=t?e.jsx(q.ProductsDisplayTabs,{label:d,tabs:a,activeTab:r,onTabChange:p}):e.jsxs("div",{className:s.default.header,children:[e.jsx(i.Typography,{className:s.default.headerTitle,defaultVariant:"displayMd",mobileVariant:"headingLg",children:n}),e.jsx(i.Typography,{defaultVariant:"bodyLg",mobileVariant:"bodySm",children:y})]});return e.jsx("
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("react"),T=require("../../components/ProductGallery/ProductGallery.cjs.js"),g=require("../../components/ProductGalleryCard/ProductGalleryCard.cjs.js"),i=require("../../components/Typography/Typography.cjs.js"),q=require("./components/ProductsDisplayTabs/ProductsDisplayTabs.cjs.js"),s=require("./productsDisplay.module.css.cjs.js"),j=require("./useProductsData.cjs.js"),x=({labelText:d,productDisplays:u})=>{var l;const{isTabbed:t,title:n,description:y,tabs:a,slidesByTabs:o}=j.useProductsData({productDisplays:u}),[r,p]=c.useState(((l=a[0])==null?void 0:l.value)??""),b=c.useMemo(()=>(o[r]??[]).map((m,P)=>e.jsx(g.ProductGalleryCard,{...m},P)),[r,o]),h=t?e.jsx(q.ProductsDisplayTabs,{label:d,tabs:a,activeTab:r,onTabChange:p}):e.jsxs("div",{className:s.default.header,children:[e.jsx(i.Typography,{className:s.default.headerTitle,defaultVariant:"displayMd",mobileVariant:"headingLg",children:n}),e.jsx(i.Typography,{defaultVariant:"bodyLg",mobileVariant:"bodySm",children:y})]});return e.jsx("section",{className:s.default.root,children:e.jsx(T.ProductGallery,{header:h,slides:b,isTabbed:t})})};exports.ProductsDisplay=x;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as t, jsxs as h } from "react/jsx-runtime";
|
|
3
3
|
import { useState as T, useMemo as g } from "react";
|
|
4
|
-
import { ProductGallery as
|
|
5
|
-
import { ProductGalleryCard as
|
|
4
|
+
import { ProductGallery as P } from "../../components/ProductGallery/ProductGallery.es.js";
|
|
5
|
+
import { ProductGalleryCard as v } from "../../components/ProductGalleryCard/ProductGalleryCard.es.js";
|
|
6
6
|
import { Typography as l } from "../../components/Typography/Typography.es.js";
|
|
7
7
|
import { ProductsDisplayTabs as V } from "./components/ProductsDisplayTabs/ProductsDisplayTabs.es.js";
|
|
8
8
|
import r from "./productsDisplay.module.css.es.js";
|
|
@@ -11,11 +11,11 @@ const B = ({ labelText: d, productDisplays: m }) => {
|
|
|
11
11
|
var i;
|
|
12
12
|
const { isTabbed: a, title: c, description: n, tabs: s, slidesByTabs: o } = x({
|
|
13
13
|
productDisplays: m
|
|
14
|
-
}), [e, p] = T(((i = s[0]) == null ? void 0 : i.value) ?? ""), u = g(() => (o[e] ?? []).map((y, f) => /* @__PURE__ */ t(
|
|
14
|
+
}), [e, p] = T(((i = s[0]) == null ? void 0 : i.value) ?? ""), u = g(() => (o[e] ?? []).map((y, f) => /* @__PURE__ */ t(v, { ...y }, f)), [e, o]), b = a ? /* @__PURE__ */ t(V, { label: d, tabs: s, activeTab: e, onTabChange: p }) : /* @__PURE__ */ h("div", { className: r.header, children: [
|
|
15
15
|
/* @__PURE__ */ t(l, { className: r.headerTitle, defaultVariant: "displayMd", mobileVariant: "headingLg", children: c }),
|
|
16
16
|
/* @__PURE__ */ t(l, { defaultVariant: "bodyLg", mobileVariant: "bodySm", children: n })
|
|
17
17
|
] });
|
|
18
|
-
return /* @__PURE__ */ t("
|
|
18
|
+
return /* @__PURE__ */ t("section", { className: r.root, children: /* @__PURE__ */ t(P, { header: b, slides: u, isTabbed: a }) });
|
|
19
19
|
};
|
|
20
20
|
export {
|
|
21
21
|
B as ProductsDisplay
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="productsDisplayTabs-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="productsDisplayTabs-module__header___nO8ge",l="productsDisplayTabs-module__label___yoPVH",a={header:e,label:l};exports.default=a;exports.header=e;exports.label=l;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const e = "productsDisplayTabs-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const e = "productsDisplayTabs-module__header___nO8ge", a = "productsDisplayTabs-module__label___yoPVH", l = {
|
|
2
|
+
header: e,
|
|
3
|
+
label: a
|
|
4
4
|
};
|
|
5
5
|
export {
|
|
6
6
|
l as default,
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
e as header,
|
|
8
|
+
a as label
|
|
9
9
|
};
|
|
@@ -1 +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"),
|
|
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"),s=require("./studies.module.css.cjs.js");function p({title:d,description:n,articles:l}){const o=l.reduce((t,r)=>{const i=t[t.length-1];return i.length<2?i.push(r):t.push([r]),t},[[]]);return e.jsx("section",{className:s.default.root,children:e.jsxs("div",{className:s.default.container,children:[e.jsxs("div",{className:s.default.header,children:[e.jsx(a.HighlightedTitle,{title:d}),e.jsx(h.Typography,{as:"p",defaultVariant:"bodyLg",className:s.default.description,children:n}),e.jsx("div",{children:e.jsx(u.Button,{variant:"muted",size:"lg",children:"view all studies"})})]}),e.jsx("div",{className:s.default.articles,children:o.map((t,r)=>e.jsx("div",{className:s.default.row,children:t.map(i=>e.jsx(c.StudyGridCard,{...i},i.title))},r))})]})})}exports.Studies=p;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Button as
|
|
1
|
+
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import { Button as m } from "../../components/Button/Button.es.js";
|
|
3
3
|
import { HighlightedTitle as h } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
|
|
4
4
|
import { StudyGridCard as p } from "../../components/StudyGridCard/StudyGridCard.es.js";
|
|
5
|
-
import { Typography as
|
|
6
|
-
import
|
|
7
|
-
function w({ title:
|
|
8
|
-
const
|
|
9
|
-
(
|
|
10
|
-
const
|
|
11
|
-
return
|
|
5
|
+
import { Typography as c } from "../../components/Typography/Typography.es.js";
|
|
6
|
+
import i from "./studies.module.css.es.js";
|
|
7
|
+
function w({ title: d, description: l, articles: n }) {
|
|
8
|
+
const a = n.reduce(
|
|
9
|
+
(r, t) => {
|
|
10
|
+
const s = r[r.length - 1];
|
|
11
|
+
return s.length < 2 ? s.push(t) : r.push([t]), r;
|
|
12
12
|
},
|
|
13
13
|
[[]]
|
|
14
14
|
);
|
|
15
|
-
return /* @__PURE__ */
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
/* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ e("section", { className: i.root, children: /* @__PURE__ */ o("div", { className: i.container, children: [
|
|
16
|
+
/* @__PURE__ */ o("div", { className: i.header, children: [
|
|
17
|
+
/* @__PURE__ */ e(h, { title: d }),
|
|
18
|
+
/* @__PURE__ */ e(c, { as: "p", defaultVariant: "bodyLg", className: i.description, children: l }),
|
|
19
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(m, { variant: "muted", size: "lg", children: "view all studies" }) })
|
|
20
20
|
] }),
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
-
] });
|
|
21
|
+
/* @__PURE__ */ e("div", { className: i.articles, children: a.map((r, t) => /* @__PURE__ */ e("div", { className: i.row, children: r.map((s) => /* @__PURE__ */ e(p, { ...s }, s.title)) }, t)) })
|
|
22
|
+
] }) });
|
|
23
23
|
}
|
|
24
24
|
export {
|
|
25
25
|
w as Studies
|
|
@@ -1 +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",
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="studies-module__root___1J7-J",o="studies-module__container___oLKXc",t="studies-module__header___FA3V2",s="studies-module__description___-3MIr",_="studies-module__articles___tUcYS",r="studies-module__row___yHNIP",i={root:e,container:o,header:t,description:s,articles:_,row:r};exports.articles=_;exports.container=o;exports.default=i;exports.description=s;exports.header=t;exports.root=e;exports.row=r;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
const e = "studies-module__container___oLKXc",
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
const e = "studies-module__root___1J7-J", o = "studies-module__container___oLKXc", _ = "studies-module__header___FA3V2", t = "studies-module__description___-3MIr", s = "studies-module__articles___tUcYS", r = "studies-module__row___yHNIP", d = {
|
|
2
|
+
root: e,
|
|
3
|
+
container: o,
|
|
4
|
+
header: _,
|
|
5
|
+
description: t,
|
|
6
|
+
articles: s,
|
|
7
|
+
row: r
|
|
7
8
|
};
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
s as articles,
|
|
11
|
+
o as container,
|
|
12
|
+
d as default,
|
|
13
|
+
t as description,
|
|
14
|
+
_ as header,
|
|
15
|
+
e as root,
|
|
16
|
+
r as row
|
|
15
17
|
};
|
|
@@ -1 +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"),
|
|
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"),i=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:o,onSwiperInit:u,handleSwiperResize:p}=P.useSwiper();return e.jsxs("section",{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:o}})})]}),e.jsx("div",{className:r.default.carouselArea,children:e.jsx(i.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((t,g)=>{const h=t.type!=="coming_soon"?f.Cursor:m.Fragment;return e.jsx(i.SwiperSlide,{className:r.default.swiperSlide,children:e.jsx(h,{label:"Learn More",colorScheme:"light",children:e.jsx(q.ProgramCard,{...t})})},g)})})}),e.jsx("div",{className:r.default.progressButtons,"data-device":"mobile",children:e.jsx(n.ProgressButton,{left:{onClick:s},right:{onClick:o}})})]})}exports.TargetedPrograms=w;
|
|
@@ -7,19 +7,19 @@ import { Fragment as g } from "react";
|
|
|
7
7
|
import u from "../../node_modules/swiper/modules/navigation.es.js";
|
|
8
8
|
import { Swiper as S, SwiperSlide as w } from "../../node_modules/swiper/swiper-react.es.js";
|
|
9
9
|
import { Cursor as C } from "../../components/Cursor/Cursor.es.js";
|
|
10
|
-
import { ProgramCard as
|
|
11
|
-
import { ProgressButton as
|
|
12
|
-
import { Typography as
|
|
10
|
+
import { ProgramCard as N } from "../../components/ProgramCard/ProgramCard.es.js";
|
|
11
|
+
import { ProgressButton as n } from "../../components/ProgressButton/ProgressButton.es.js";
|
|
12
|
+
import { Typography as v } from "../../components/Typography/Typography.es.js";
|
|
13
13
|
import { useSwiper as k } from "../../utils/useSwiper/useSwiper.es.js";
|
|
14
14
|
import r from "./targetedPrograms.module.css.es.js";
|
|
15
15
|
const P = [u];
|
|
16
|
-
function T({ title:
|
|
16
|
+
function T({ title: a, cards: l }) {
|
|
17
17
|
const { setIsEnd: m, handleSlideChange: d, handlePrevClick: i, handleNextClick: o, onSwiperInit: c, handleSwiperResize: p } = k();
|
|
18
|
-
return /* @__PURE__ */ t("
|
|
18
|
+
return /* @__PURE__ */ t("section", { className: r.container, children: [
|
|
19
19
|
/* @__PURE__ */ t("div", { className: r.heading, children: [
|
|
20
|
-
/* @__PURE__ */ e(
|
|
20
|
+
/* @__PURE__ */ e(v, { as: "h2", defaultVariant: "displayMd", mobileVariant: "headingXl", children: a }),
|
|
21
21
|
/* @__PURE__ */ e("div", { className: r.progressButtons, "data-device": "desktop", children: /* @__PURE__ */ e(
|
|
22
|
-
|
|
22
|
+
n,
|
|
23
23
|
{
|
|
24
24
|
left: {
|
|
25
25
|
onClick: i
|
|
@@ -45,12 +45,12 @@ function T({ title: n, cards: l }) {
|
|
|
45
45
|
slidesOffsetBefore: 8,
|
|
46
46
|
children: l.map((s, h) => {
|
|
47
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(
|
|
48
|
+
return /* @__PURE__ */ e(w, { className: r.swiperSlide, children: /* @__PURE__ */ e(f, { label: "Learn More", colorScheme: "light", children: /* @__PURE__ */ e(N, { ...s }) }) }, h);
|
|
49
49
|
})
|
|
50
50
|
}
|
|
51
51
|
) }),
|
|
52
52
|
/* @__PURE__ */ e("div", { className: r.progressButtons, "data-device": "mobile", children: /* @__PURE__ */ e(
|
|
53
|
-
|
|
53
|
+
n,
|
|
54
54
|
{
|
|
55
55
|
left: {
|
|
56
56
|
onClick: i
|
|
@@ -1 +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=_;
|
|
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:[a&&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=_;
|
|
@@ -3,11 +3,11 @@ import { RichReviewCard } from './types';
|
|
|
3
3
|
|
|
4
4
|
type TestimonialProps = {
|
|
5
5
|
title: ReactNode;
|
|
6
|
-
|
|
6
|
+
reviews: Array<RichReviewCard>;
|
|
7
|
+
rating?: {
|
|
7
8
|
stars: number;
|
|
8
9
|
totalReviews: number;
|
|
9
10
|
};
|
|
10
|
-
reviews: Array<RichReviewCard>;
|
|
11
11
|
};
|
|
12
12
|
export declare const Testimonial: ({ title, rating, reviews }: TestimonialProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -13,9 +13,9 @@ import { useSwiper as x } from "../../utils/useSwiper/useSwiper.es.js";
|
|
|
13
13
|
import { VideoCard as y } from "./components/VideoCard/VideoCard.es.js";
|
|
14
14
|
import { TextCard as B } from "./components/TextCard/TextCard.es.js";
|
|
15
15
|
import i from "./testimonial.module.css.es.js";
|
|
16
|
-
const E = [N], U = ({ title: m, rating:
|
|
16
|
+
const E = [N], U = ({ title: m, rating: o, reviews: p }) => {
|
|
17
17
|
const {
|
|
18
|
-
isEnd:
|
|
18
|
+
isEnd: n,
|
|
19
19
|
isBeginning: l,
|
|
20
20
|
hideNav: s,
|
|
21
21
|
handleSlideChange: h,
|
|
@@ -28,10 +28,10 @@ const E = [N], U = ({ title: m, rating: n, reviews: p }) => {
|
|
|
28
28
|
} = x();
|
|
29
29
|
return /* @__PURE__ */ r("section", { className: i.root, children: [
|
|
30
30
|
/* @__PURE__ */ r("div", { className: i.headerContainer, children: [
|
|
31
|
-
/* @__PURE__ */ r("div", { className: i.ratingContainer, children: [
|
|
32
|
-
/* @__PURE__ */ e(v, { rating:
|
|
31
|
+
o && /* @__PURE__ */ r("div", { className: i.ratingContainer, children: [
|
|
32
|
+
/* @__PURE__ */ e(v, { rating: o.stars }),
|
|
33
33
|
/* @__PURE__ */ r(R, { as: "p", defaultVariant: "labelLg", mobileVariant: "labelSm", emphasis: !0, children: [
|
|
34
|
-
|
|
34
|
+
o.totalReviews,
|
|
35
35
|
"+ member reviews"
|
|
36
36
|
] })
|
|
37
37
|
] }),
|
|
@@ -45,7 +45,7 @@ const E = [N], U = ({ title: m, rating: n, reviews: p }) => {
|
|
|
45
45
|
onClick: t
|
|
46
46
|
},
|
|
47
47
|
right: {
|
|
48
|
-
disabled:
|
|
48
|
+
disabled: n,
|
|
49
49
|
onClick: d
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -76,7 +76,7 @@ const E = [N], U = ({ title: m, rating: n, reviews: p }) => {
|
|
|
76
76
|
onClick: t
|
|
77
77
|
},
|
|
78
78
|
right: {
|
|
79
|
-
disabled:
|
|
79
|
+
disabled: n,
|
|
80
80
|
onClick: d
|
|
81
81
|
}
|
|
82
82
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),t=require("../../../../components/Typography/Typography.cjs.js"),n=require("../../../../components/RatingStars/RatingStars.cjs.js"),l=require("../Product/Product.cjs.js"),s=require("./textCard.module.css.cjs.js"),o=({background:i,review:e,product:r})=>a.jsxs("div",{className:s.default.root,style:{backgroundImage:`url(${i.url})`},children:[a.jsx(n.RatingStars,{rating:e.stars??0}),a.jsxs("div",{className:s.default.reviewContainer,children:[a.jsx(t.Typography,{as:"h3",defaultVariant:"headingSm",mobileVariant:"headingXs",weight:"regular",children:e.title}),a.jsx(t.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",weight:"regular",children:e.description}),e.author.name&&a.jsx(t.Typography,{as:"p",defaultVariant:"labelSm",mobileVariant:"labelXs",weight:"regular",emphasis:!0,className:s.default.reviewAuthor,children:e.author.name})]}),a.jsxs("div",{className:s.default.infoContainer,children:[e.author.username&&a.jsx(t.Typography,{as:"p",defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"regular",children:e.author.username}),r&&a.jsx(l.Product,{image:r.image,name:r.name,link:r.link})]})]});exports.TextCard=o;
|