@zenpatient-org/healthspan-marketing-ui 0.1.25 → 0.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/healthspan-marketing-ui.css +1 -1
  2. package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.cjs.js +1 -1
  3. package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.d.ts +3 -2
  4. package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.es.js +93 -89
  5. package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.module.css.cjs.js +1 -1
  6. package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.module.css.es.js +23 -21
  7. package/dist/modules/Testimonial/Testimonial.cjs.js +1 -1
  8. package/dist/modules/Testimonial/Testimonial.es.js +15 -15
  9. package/dist/modules/Testimonial/components/TextCard/TextCard.cjs.js +1 -1
  10. package/dist/modules/Testimonial/components/TextCard/TextCard.es.js +32 -29
  11. package/dist/modules/Testimonial/components/VideoCard/VideoCard.cjs.js +1 -1
  12. package/dist/modules/Testimonial/components/VideoCard/VideoCard.es.js +28 -27
  13. package/dist/modules/Testimonial/types.d.ts +4 -3
  14. package/dist/pageComponents/Bubbles/Bubbles.cjs.js +1 -0
  15. package/dist/pageComponents/Bubbles/Bubbles.d.ts +3 -0
  16. package/dist/pageComponents/Bubbles/Bubbles.es.js +28 -0
  17. package/dist/pageComponents/Bubbles/bubbles.module.css.cjs.js +1 -0
  18. package/dist/pageComponents/Bubbles/bubbles.module.css.es.js +13 -0
  19. package/dist/pageComponents/Bubbles/index.d.ts +1 -0
  20. package/dist/pageComponents/Gradient/Gradient.cjs.js +1 -0
  21. package/dist/pageComponents/Gradient/Gradient.es.js +9 -0
  22. package/dist/pageComponents/Gradient/gradient.module.css.cjs.js +1 -0
  23. package/dist/pageComponents/Gradient/gradient.module.css.es.js +13 -0
  24. package/dist/pageComponents/StillHaveQuestions/StillHaveQuestions.cjs.js +1 -0
  25. package/dist/pageComponents/StillHaveQuestions/StillHaveQuestions.es.js +25 -0
  26. package/dist/pageComponents/StillHaveQuestions/stillHaveQuestions.module.css.cjs.js +1 -0
  27. package/dist/pageComponents/StillHaveQuestions/stillHaveQuestions.module.css.es.js +17 -0
  28. package/package.json +16 -1
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),f=require("react"),T=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),t=require("./SlidingTabsGallery.module.css.cjs.js"),v=require("../../utils/cn/cn.cjs.js");;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */const N=require("../../styles/typography.module.css.cjs.js"),R=require("../../components/Icon/Icon.cjs.js"),y=require("../../node_modules/gsap/index.cjs.js"),p=require("../../node_modules/gsap/Flip.cjs.js"),b=require("../../node_modules/@gsap/react/src/index.cjs.js"),x=require("../../components/Typography/Typography.cjs.js");y.gsap.registerPlugin(p.Flip);const C=({title:q,tabs:o})=>{const s=f.useRef(null),a=f.useRef(null),[c,g]=f.useState(o[0]);b.useGSAP(()=>{const i=s.current,r=a.current,u=n=>{if(i&&r&&n){const m=r.getBoundingClientRect(),h=n.getBoundingClientRect();y.gsap.set(i,{left:h.left-m.left,top:h.top-m.top,width:h.width,height:h.height})}};if(r&&r.children.length>1){const n=r.children[1];n&&u(n)}let l;const d=()=>{clearTimeout(l),l=setTimeout(()=>{if(i&&r&&r.children.length>1&&o.length>0){const n=r.children[1];n&&(u(n),g(o[0]))}},250)};return window.addEventListener("resize",d),()=>{clearTimeout(l),window.removeEventListener("resize",d)}},{dependencies:[o,g],scope:a});const j=(i,r)=>{if(i===c)return;const u=p.Flip.getState(s.current);if(g(i),s.current&&a.current&&a.current.children.length>r+1){const l=a.current.children[r+1];if(l){const d=a.current.getBoundingClientRect(),n=l.getBoundingClientRect();s.current.style.left=`${n.left-d.left}px`,s.current.style.top=`${n.top-d.top}px`,s.current.style.width=`${n.width}px`,s.current.style.height=`${n.height}px`}}p.Flip.from(u,{targets:s.current,duration:.3,ease:"power1.inOut"})};return e.jsx("section",{className:t.default.root,children:e.jsxs("div",{className:t.default.container,children:[e.jsx(T.HighlightedTitle,{as:"div",title:q,className:t.default.header,colorScheme:"dark"}),e.jsxs("div",{className:t.default.content,children:[c.image&&e.jsx("div",{className:t.default.imageWrap,children:e.jsx("img",{src:c.image,alt:"Total Care",className:t.default.image})}),e.jsx("div",{className:t.default.tabsContainer,children:e.jsxs("div",{ref:a,className:t.default.tabs,children:[e.jsx("div",{ref:s,id:"marker",className:t.default.marker}),o.map((i,r)=>e.jsxs("button",{className:v.cn(t.default.tab,{[t.default.active]:c===i}),onClick:()=>j(i,r),children:[i.icon&&e.jsx(x.Typography,{defaultVariant:"displayMd",className:t.default.icon,children:e.jsx(R.Icon,{name:i.icon})}),e.jsx(x.Typography,{defaultVariant:"displayMd",className:N.default.headingXs,children:i.label})]},i.label))]})}),c.description&&e.jsx("div",{className:t.default.description,children:e.jsx(T.HighlightedTitle,{as:"div",defaultVariant:"headingXs",className:t.default.descriptionText,title:c.description,colorScheme:"dark"})})]})]})})};exports.SlidingTabsGallery=C;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),f=require("react"),x=require("../../node_modules/gsap/index.cjs.js"),p=require("../../node_modules/gsap/Flip.cjs.js"),R=require("../../node_modules/@gsap/react/src/index.cjs.js"),q=require("../../pageComponents/Bubbles/Bubbles.cjs.js"),C=require("../../pageComponents/Gradient/Gradient.cjs.js"),T=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),_=require("../../utils/cn/cn.cjs.js"),b=require("../../components/Typography/Typography.cjs.js"),B=require("../../components/Icon/Icon.cjs.js"),t=require("./SlidingTabsGallery.module.css.cjs.js");x.gsap.registerPlugin(p.Flip);const S=({title:y,tabs:o,withBubbles:j,withGradient:v})=>{const s=f.useRef(null),a=f.useRef(null),[l,h]=f.useState(o[0]);R.useGSAP(()=>{const i=s.current,n=a.current,u=r=>{if(i&&n&&r){const m=n.getBoundingClientRect(),g=r.getBoundingClientRect();x.gsap.set(i,{left:g.left-m.left,top:g.top-m.top,width:g.width,height:g.height})}};if(n&&n.children.length>1){const r=n.children[1];r&&u(r)}let c;const d=()=>{clearTimeout(c),c=setTimeout(()=>{if(i&&n&&n.children.length>1&&o.length>0){const r=n.children[1];r&&(u(r),h(o[0]))}},250)};return window.addEventListener("resize",d),()=>{clearTimeout(c),window.removeEventListener("resize",d)}},{dependencies:[o,h],scope:a});const N=(i,n)=>{if(i===l)return;const u=p.Flip.getState(s.current);if(h(i),s.current&&a.current&&a.current.children.length>n+1){const c=a.current.children[n+1];if(c){const d=a.current.getBoundingClientRect(),r=c.getBoundingClientRect();s.current.style.left=`${r.left-d.left}px`,s.current.style.top=`${r.top-d.top}px`,s.current.style.width=`${r.width}px`,s.current.style.height=`${r.height}px`}}p.Flip.from(u,{targets:s.current,duration:.3,ease:"power1.inOut"})};return e.jsxs("section",{className:t.default.root,children:[j&&e.jsx(q.Bubbles,{className:t.default.bubbles}),e.jsxs("div",{className:t.default.container,children:[e.jsx(T.HighlightedTitle,{as:"div",title:y,className:t.default.header,colorScheme:"dark"}),e.jsxs("div",{className:t.default.content,children:[l.image&&e.jsx("div",{className:t.default.imageWrap,children:e.jsx("img",{src:l.image,alt:"Total Care",className:t.default.image})}),e.jsx("div",{className:t.default.tabsContainer,children:e.jsxs("div",{ref:a,className:t.default.tabs,children:[e.jsx("div",{ref:s,id:"marker",className:t.default.marker}),o.map((i,n)=>e.jsxs("button",{className:_.cn(t.default.tab,{[t.default.active]:l===i}),onClick:()=>N(i,n),children:[i.icon&&e.jsx(b.Typography,{defaultVariant:"displayMd",className:t.default.icon,children:e.jsx(B.Icon,{name:i.icon})}),e.jsx(b.Typography,{defaultVariant:"headingXs",children:i.label})]},i.label))]})}),l.description&&e.jsx("div",{className:t.default.description,children:e.jsx(T.HighlightedTitle,{as:"div",defaultVariant:"headingXs",mobileVariant:"bodyMd",className:t.default.descriptionText,title:l.description,colorScheme:"dark"})})]})]}),v&&e.jsx(C.Gradient,{variant:"blue"})]})};exports.SlidingTabsGallery=S;
@@ -3,7 +3,8 @@ import { TContentTab } from '../../components/ContentTabs';
3
3
 
4
4
  export type SlidingTabsGalleryProps = {
5
5
  title: ReactNode;
6
- label: string;
7
6
  tabs: ReadonlyArray<TContentTab>;
7
+ withBubbles?: boolean;
8
+ withGradient?: boolean;
8
9
  };
9
- export declare const SlidingTabsGallery: ({ title, tabs }: SlidingTabsGalleryProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const SlidingTabsGallery: ({ title, tabs, withBubbles, withGradient }: SlidingTabsGalleryProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,102 +1,106 @@
1
1
  "use client";
2
- import { jsx as n, jsxs as h } from "react/jsx-runtime";
3
- import { useRef as T, useState as k } from "react";
4
- import { HighlightedTitle as v } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
5
- import e from "./SlidingTabsGallery.module.css.es.js";
6
- import { cn as w } from "../../utils/cn/cn.es.js";
7
- /* empty css */
8
- /* empty css */
9
- /* empty css */
10
- /* empty css */
11
- /* empty css */
12
- import S from "../../styles/typography.module.css.es.js";
13
- import { Icon as b } from "../../components/Icon/Icon.es.js";
14
- import { gsap as y } from "../../node_modules/gsap/index.es.js";
2
+ import { jsxs as m, jsx as n } from "react/jsx-runtime";
3
+ import { useRef as v, useState as w } from "react";
4
+ import { gsap as N } from "../../node_modules/gsap/index.es.js";
15
5
  import { Flip as f } from "../../node_modules/gsap/Flip.es.js";
16
- import { useGSAP as x } from "../../node_modules/@gsap/react/src/index.es.js";
17
- import { Typography as N } from "../../components/Typography/Typography.es.js";
18
- y.registerPlugin(f);
19
- const O = ({ title: C, tabs: l }) => {
20
- const o = T(null), c = T(null), [s, u] = k(l[0]);
21
- x(() => {
22
- const t = o.current, r = c.current, m = (i) => {
23
- if (t && r && i) {
24
- const g = r.getBoundingClientRect(), p = i.getBoundingClientRect();
25
- y.set(t, {
26
- left: p.left - g.left,
27
- top: p.top - g.top,
28
- width: p.width,
29
- height: p.height
30
- });
31
- }
32
- };
33
- if (r && r.children.length > 1) {
34
- const i = r.children[1];
35
- i && m(i);
36
- }
37
- let a;
38
- const d = () => {
39
- clearTimeout(a), a = setTimeout(() => {
40
- if (t && r && r.children.length > 1 && l.length > 0) {
41
- const i = r.children[1];
42
- i && (m(i), u(l[0]));
6
+ import { useGSAP as B } from "../../node_modules/@gsap/react/src/index.es.js";
7
+ import { Bubbles as S } from "../../pageComponents/Bubbles/Bubbles.es.js";
8
+ import { Gradient as x } from "../../pageComponents/Gradient/Gradient.es.js";
9
+ import { HighlightedTitle as T } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
10
+ import { cn as z } from "../../utils/cn/cn.es.js";
11
+ import { Typography as b } from "../../components/Typography/Typography.es.js";
12
+ import { Icon as V } from "../../components/Icon/Icon.es.js";
13
+ import e from "./SlidingTabsGallery.module.css.es.js";
14
+ N.registerPlugin(f);
15
+ const I = ({ title: C, tabs: l, withBubbles: R, withGradient: y }) => {
16
+ const a = v(null), c = v(null), [o, p] = w(l[0]);
17
+ B(
18
+ () => {
19
+ const t = a.current, r = c.current, u = (i) => {
20
+ if (t && r && i) {
21
+ const g = r.getBoundingClientRect(), h = i.getBoundingClientRect();
22
+ N.set(t, {
23
+ left: h.left - g.left,
24
+ top: h.top - g.top,
25
+ width: h.width,
26
+ height: h.height
27
+ });
43
28
  }
44
- }, 250);
45
- };
46
- return window.addEventListener("resize", d), () => {
47
- clearTimeout(a), window.removeEventListener("resize", d);
48
- };
49
- }, { dependencies: [l, u], scope: c });
50
- const R = (t, r) => {
51
- if (t === s) return;
52
- const m = f.getState(o.current);
53
- if (u(t), o.current && c.current && c.current.children.length > r + 1) {
54
- const a = c.current.children[r + 1];
55
- if (a) {
56
- const d = c.current.getBoundingClientRect(), i = a.getBoundingClientRect();
57
- o.current.style.left = `${i.left - d.left}px`, o.current.style.top = `${i.top - d.top}px`, o.current.style.width = `${i.width}px`, o.current.style.height = `${i.height}px`;
29
+ };
30
+ if (r && r.children.length > 1) {
31
+ const i = r.children[1];
32
+ i && u(i);
33
+ }
34
+ let s;
35
+ const d = () => {
36
+ clearTimeout(s), s = setTimeout(() => {
37
+ if (t && r && r.children.length > 1 && l.length > 0) {
38
+ const i = r.children[1];
39
+ i && (u(i), p(l[0]));
40
+ }
41
+ }, 250);
42
+ };
43
+ return window.addEventListener("resize", d), () => {
44
+ clearTimeout(s), window.removeEventListener("resize", d);
45
+ };
46
+ },
47
+ { dependencies: [l, p], scope: c }
48
+ );
49
+ const k = (t, r) => {
50
+ if (t === o) return;
51
+ const u = f.getState(a.current);
52
+ if (p(t), a.current && c.current && c.current.children.length > r + 1) {
53
+ const s = c.current.children[r + 1];
54
+ if (s) {
55
+ const d = c.current.getBoundingClientRect(), i = s.getBoundingClientRect();
56
+ a.current.style.left = `${i.left - d.left}px`, a.current.style.top = `${i.top - d.top}px`, a.current.style.width = `${i.width}px`, a.current.style.height = `${i.height}px`;
58
57
  }
59
58
  }
60
- f.from(m, {
61
- targets: o.current,
59
+ f.from(u, {
60
+ targets: a.current,
62
61
  duration: 0.3,
63
62
  ease: "power1.inOut"
64
63
  });
65
64
  };
66
- return /* @__PURE__ */ n("section", { className: e.root, children: /* @__PURE__ */ h("div", { className: e.container, children: [
67
- /* @__PURE__ */ n(v, { as: "div", title: C, className: e.header, colorScheme: "dark" }),
68
- /* @__PURE__ */ h("div", { className: e.content, children: [
69
- s.image && /* @__PURE__ */ n("div", { className: e.imageWrap, children: /* @__PURE__ */ n("img", { src: s.image, alt: "Total Care", className: e.image }) }),
70
- /* @__PURE__ */ n("div", { className: e.tabsContainer, children: /* @__PURE__ */ h("div", { ref: c, className: e.tabs, children: [
71
- /* @__PURE__ */ n("div", { ref: o, id: "marker", className: e.marker }),
72
- l.map((t, r) => /* @__PURE__ */ h(
73
- "button",
65
+ return /* @__PURE__ */ m("section", { className: e.root, children: [
66
+ R && /* @__PURE__ */ n(S, { className: e.bubbles }),
67
+ /* @__PURE__ */ m("div", { className: e.container, children: [
68
+ /* @__PURE__ */ n(T, { as: "div", title: C, className: e.header, colorScheme: "dark" }),
69
+ /* @__PURE__ */ m("div", { className: e.content, children: [
70
+ o.image && /* @__PURE__ */ n("div", { className: e.imageWrap, children: /* @__PURE__ */ n("img", { src: o.image, alt: "Total Care", className: e.image }) }),
71
+ /* @__PURE__ */ n("div", { className: e.tabsContainer, children: /* @__PURE__ */ m("div", { ref: c, className: e.tabs, children: [
72
+ /* @__PURE__ */ n("div", { ref: a, id: "marker", className: e.marker }),
73
+ l.map((t, r) => /* @__PURE__ */ m(
74
+ "button",
75
+ {
76
+ className: z(e.tab, {
77
+ [e.active]: o === t
78
+ }),
79
+ onClick: () => k(t, r),
80
+ children: [
81
+ t.icon && /* @__PURE__ */ n(b, { defaultVariant: "displayMd", className: e.icon, children: /* @__PURE__ */ n(V, { name: t.icon }) }),
82
+ /* @__PURE__ */ n(b, { defaultVariant: "headingXs", children: t.label })
83
+ ]
84
+ },
85
+ t.label
86
+ ))
87
+ ] }) }),
88
+ o.description && /* @__PURE__ */ n("div", { className: e.description, children: /* @__PURE__ */ n(
89
+ T,
74
90
  {
75
- className: w(e.tab, {
76
- [e.active]: s === t
77
- }),
78
- onClick: () => R(t, r),
79
- children: [
80
- t.icon && /* @__PURE__ */ n(N, { defaultVariant: "displayMd", className: e.icon, children: /* @__PURE__ */ n(b, { name: t.icon }) }),
81
- /* @__PURE__ */ n(N, { defaultVariant: "displayMd", className: S.headingXs, children: t.label })
82
- ]
83
- },
84
- t.label
85
- ))
86
- ] }) }),
87
- s.description && /* @__PURE__ */ n("div", { className: e.description, children: /* @__PURE__ */ n(
88
- v,
89
- {
90
- as: "div",
91
- defaultVariant: "headingXs",
92
- className: e.descriptionText,
93
- title: s.description,
94
- colorScheme: "dark"
95
- }
96
- ) })
97
- ] })
98
- ] }) });
91
+ as: "div",
92
+ defaultVariant: "headingXs",
93
+ mobileVariant: "bodyMd",
94
+ className: e.descriptionText,
95
+ title: o.description,
96
+ colorScheme: "dark"
97
+ }
98
+ ) })
99
+ ] })
100
+ ] }),
101
+ y && /* @__PURE__ */ n(x, { variant: "blue" })
102
+ ] });
99
103
  };
100
104
  export {
101
- O as SlidingTabsGallery
105
+ I as SlidingTabsGallery
102
106
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="SlidingTabsGallery-module__root___BsvYn",a="SlidingTabsGallery-module__container___vP0rd",t="SlidingTabsGallery-module__header___eJQXu",_="SlidingTabsGallery-module__content___jjd1o",l="SlidingTabsGallery-module__tabsContainer___Se1lx",i="SlidingTabsGallery-module__tabs___ZEKrF",n="SlidingTabsGallery-module__tab___Ztklx",o="SlidingTabsGallery-module__active___XatLw",r="SlidingTabsGallery-module__marker___c5lgj",s="SlidingTabsGallery-module__imageWrap___OWtqZ",d="SlidingTabsGallery-module__description___JBoEm",c="SlidingTabsGallery-module__image___E02Sh",b={root:e,container:a,header:t,content:_,tabsContainer:l,tabs:i,tab:n,active:o,marker:r,imageWrap:s,description:d,image:c};exports.active=o;exports.container=a;exports.content=_;exports.default=b;exports.description=d;exports.header=t;exports.image=c;exports.imageWrap=s;exports.marker=r;exports.root=e;exports.tab=n;exports.tabs=i;exports.tabsContainer=l;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="SlidingTabsGallery-module__root___BsvYn",a="SlidingTabsGallery-module__bubbles___XumkJ",_="SlidingTabsGallery-module__container___vP0rd",l="SlidingTabsGallery-module__header___eJQXu",t="SlidingTabsGallery-module__content___jjd1o",i="SlidingTabsGallery-module__tabsContainer___Se1lx",n="SlidingTabsGallery-module__tabs___ZEKrF",o="SlidingTabsGallery-module__tab___Ztklx",r="SlidingTabsGallery-module__active___XatLw",s="SlidingTabsGallery-module__marker___c5lgj",d="SlidingTabsGallery-module__imageWrap___OWtqZ",b="SlidingTabsGallery-module__description___JBoEm",c="SlidingTabsGallery-module__image___E02Sh",m={root:e,bubbles:a,container:_,header:l,content:t,tabsContainer:i,tabs:n,tab:o,active:r,marker:s,imageWrap:d,description:b,image:c};exports.active=r;exports.bubbles=a;exports.container=_;exports.content=t;exports.default=m;exports.description=b;exports.header=l;exports.image=c;exports.imageWrap=d;exports.marker=s;exports.root=e;exports.tab=o;exports.tabs=n;exports.tabsContainer=i;
@@ -1,29 +1,31 @@
1
- const a = "SlidingTabsGallery-module__root___BsvYn", _ = "SlidingTabsGallery-module__container___vP0rd", e = "SlidingTabsGallery-module__header___eJQXu", l = "SlidingTabsGallery-module__content___jjd1o", t = "SlidingTabsGallery-module__tabsContainer___Se1lx", n = "SlidingTabsGallery-module__tabs___ZEKrF", o = "SlidingTabsGallery-module__tab___Ztklx", i = "SlidingTabsGallery-module__active___XatLw", r = "SlidingTabsGallery-module__marker___c5lgj", s = "SlidingTabsGallery-module__imageWrap___OWtqZ", d = "SlidingTabsGallery-module__description___JBoEm", c = "SlidingTabsGallery-module__image___E02Sh", m = {
2
- root: a,
3
- container: _,
4
- header: e,
5
- content: l,
6
- tabsContainer: t,
7
- tabs: n,
8
- tab: o,
9
- active: i,
1
+ const _ = "SlidingTabsGallery-module__root___BsvYn", e = "SlidingTabsGallery-module__bubbles___XumkJ", a = "SlidingTabsGallery-module__container___vP0rd", l = "SlidingTabsGallery-module__header___eJQXu", t = "SlidingTabsGallery-module__content___jjd1o", n = "SlidingTabsGallery-module__tabsContainer___Se1lx", o = "SlidingTabsGallery-module__tabs___ZEKrF", i = "SlidingTabsGallery-module__tab___Ztklx", s = "SlidingTabsGallery-module__active___XatLw", r = "SlidingTabsGallery-module__marker___c5lgj", d = "SlidingTabsGallery-module__imageWrap___OWtqZ", b = "SlidingTabsGallery-module__description___JBoEm", c = "SlidingTabsGallery-module__image___E02Sh", m = {
2
+ root: _,
3
+ bubbles: e,
4
+ container: a,
5
+ header: l,
6
+ content: t,
7
+ tabsContainer: n,
8
+ tabs: o,
9
+ tab: i,
10
+ active: s,
10
11
  marker: r,
11
- imageWrap: s,
12
- description: d,
12
+ imageWrap: d,
13
+ description: b,
13
14
  image: c
14
15
  };
15
16
  export {
16
- i as active,
17
- _ as container,
18
- l as content,
17
+ s as active,
18
+ e as bubbles,
19
+ a as container,
20
+ t as content,
19
21
  m as default,
20
- d as description,
21
- e as header,
22
+ b as description,
23
+ l as header,
22
24
  c as image,
23
- s as imageWrap,
25
+ d as imageWrap,
24
26
  r as marker,
25
- a as root,
26
- o as tab,
27
- n as tabs,
28
- t as tabsContainer
27
+ _ as root,
28
+ i as tab,
29
+ o as tabs,
30
+ n as tabsContainer
29
31
  };
@@ -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:[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=_;
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"),w=require("../../utils/useSwiper/useSwiper.cjs.js"),R=require("./components/VideoCard/VideoCard.cjs.js"),k=require("./components/TextCard/TextCard.cjs.js"),i=require("./testimonial.module.css.cjs.js"),N=[j.default],_=({title:u,rating:a,reviews:h})=>{const{isEnd:r,isBeginning:n,hideNav:t,handleSlideChange:g,handlePrevClick:l,handleNextClick:o,onSwiperInit:p,handleSwiperResize:m,handleReachEnd:S,handleReachBeginning:x}=w.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:[!!a.stars&&e.jsx(C.RatingStars,{rating:a.stars}),!!a.totalReviews&&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:n,onClick:l},right:{disabled:r,onClick:o}})})]})]}),e.jsx("div",{className:i.default.content,children:e.jsx(d.Swiper,{onSwiper:p,onResize:m,onSlideChange:g,onReachEnd:S,onReachBeginning:x,modules:N,spaceBetween:0,slidesPerView:"auto",className:i.default.swiper,wrapperClass:i.default.swiperWrapper,children:h.map((s,b)=>e.jsx(d.SwiperSlide,{className:i.default.swiperSlide,children:s.background.type==="video"?e.jsx(R.VideoCard,{...s,background:s.background}):e.jsx(k.TextCard,{...s,background:s.background})},`${s.background.type}_${b}`))})}),!t&&e.jsx("div",{className:i.default.mobileNavigation,children:e.jsx(c.ProgressButton,{left:{disabled:n,onClick:l},right:{disabled:r,onClick:o}})})]})};exports.Testimonial=_;
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
+ import { jsxs as o, jsx as e } from "react/jsx-runtime";
3
3
  import N from "../../node_modules/swiper/modules/navigation.es.js";
4
4
  import { Swiper as k, SwiperSlide as C } from "../../node_modules/swiper/swiper-react.es.js";
5
5
  /* empty css */
@@ -13,11 +13,11 @@ 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: o, reviews: p }) => {
16
+ const E = [N], U = ({ title: m, rating: r, reviews: p }) => {
17
17
  const {
18
18
  isEnd: n,
19
- isBeginning: l,
20
- hideNav: s,
19
+ isBeginning: s,
20
+ hideNav: l,
21
21
  handleSlideChange: h,
22
22
  handlePrevClick: t,
23
23
  handleNextClick: d,
@@ -26,22 +26,22 @@ const E = [N], U = ({ title: m, rating: o, reviews: p }) => {
26
26
  handleReachEnd: S,
27
27
  handleReachBeginning: f
28
28
  } = x();
29
- return /* @__PURE__ */ r("section", { className: i.root, children: [
30
- /* @__PURE__ */ r("div", { className: i.headerContainer, children: [
31
- o && /* @__PURE__ */ r("div", { className: i.ratingContainer, children: [
32
- /* @__PURE__ */ e(v, { rating: o.stars }),
33
- /* @__PURE__ */ r(R, { as: "p", defaultVariant: "labelLg", mobileVariant: "labelSm", emphasis: !0, children: [
34
- o.totalReviews,
29
+ return /* @__PURE__ */ o("section", { className: i.root, children: [
30
+ /* @__PURE__ */ o("div", { className: i.headerContainer, children: [
31
+ r && /* @__PURE__ */ o("div", { className: i.ratingContainer, children: [
32
+ !!r.stars && /* @__PURE__ */ e(v, { rating: r.stars }),
33
+ !!r.totalReviews && /* @__PURE__ */ o(R, { as: "p", defaultVariant: "labelLg", mobileVariant: "labelSm", emphasis: !0, children: [
34
+ r.totalReviews,
35
35
  "+ member reviews"
36
36
  ] })
37
37
  ] }),
38
- /* @__PURE__ */ r("div", { className: i.headerRow, children: [
38
+ /* @__PURE__ */ o("div", { className: i.headerRow, children: [
39
39
  /* @__PURE__ */ e(w, { title: m, colorScheme: "light" }),
40
- !s && /* @__PURE__ */ e("div", { className: i.desktopNavigation, children: /* @__PURE__ */ e(
40
+ !l && /* @__PURE__ */ e("div", { className: i.desktopNavigation, children: /* @__PURE__ */ e(
41
41
  c,
42
42
  {
43
43
  left: {
44
- disabled: l,
44
+ disabled: s,
45
45
  onClick: t
46
46
  },
47
47
  right: {
@@ -68,11 +68,11 @@ const E = [N], U = ({ title: m, rating: o, reviews: p }) => {
68
68
  children: p.map((a, u) => /* @__PURE__ */ e(C, { className: i.swiperSlide, children: a.background.type === "video" ? /* @__PURE__ */ e(y, { ...a, background: a.background }) : /* @__PURE__ */ e(B, { ...a, background: a.background }) }, `${a.background.type}_${u}`))
69
69
  }
70
70
  ) }),
71
- !s && /* @__PURE__ */ e("div", { className: i.mobileNavigation, children: /* @__PURE__ */ e(
71
+ !l && /* @__PURE__ */ e("div", { className: i.mobileNavigation, children: /* @__PURE__ */ e(
72
72
  c,
73
73
  {
74
74
  left: {
75
- disabled: l,
75
+ disabled: s,
76
76
  onClick: t
77
77
  },
78
78
  right: {
@@ -1 +1 @@
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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),r=require("../../../../components/Typography/Typography.cjs.js"),o=require("../../../../components/RatingStars/RatingStars.cjs.js"),u=require("../Product/Product.cjs.js"),s=require("./textCard.module.css.cjs.js"),d=({background:i,review:a,product:e})=>{var n,l;return t.jsxs("div",{className:s.default.root,style:{backgroundImage:`url(${i.url})`},children:[!!a.stars&&t.jsx(o.RatingStars,{rating:a.stars}),a&&t.jsxs("div",{className:s.default.reviewContainer,children:[a.title&&t.jsx(r.Typography,{as:"h3",defaultVariant:"headingSm",mobileVariant:"headingXs",weight:"regular",children:a.title}),a.description&&t.jsx(r.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",weight:"regular",children:a.description}),((n=a.author)==null?void 0:n.name)&&t.jsx(r.Typography,{as:"p",defaultVariant:"labelSm",mobileVariant:"labelXs",weight:"regular",emphasis:!0,className:s.default.reviewAuthor,children:a.author.name})]}),t.jsxs("div",{className:s.default.infoContainer,children:[((l=a==null?void 0:a.author)==null?void 0:l.username)&&t.jsx(r.Typography,{as:"p",defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"regular",children:a.author.username}),e&&t.jsx(u.Product,{image:e.image,name:e.name,link:e.link})]})]})};exports.TextCard=d;
@@ -1,31 +1,34 @@
1
- import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
- import { Typography as i } from "../../../../components/Typography/Typography.es.js";
3
- import { RatingStars as m } from "../../../../components/RatingStars/RatingStars.es.js";
4
- import { Product as s } from "../Product/Product.es.js";
5
- import t from "./textCard.module.css.es.js";
6
- const c = ({ background: n, review: a, product: e }) => /* @__PURE__ */ l("div", { className: t.root, style: { backgroundImage: `url(${n.url})` }, children: [
7
- /* @__PURE__ */ r(m, { rating: a.stars ?? 0 }),
8
- /* @__PURE__ */ l("div", { className: t.reviewContainer, children: [
9
- /* @__PURE__ */ r(i, { as: "h3", defaultVariant: "headingSm", mobileVariant: "headingXs", weight: "regular", children: a.title }),
10
- /* @__PURE__ */ r(i, { as: "p", defaultVariant: "bodyMd", mobileVariant: "bodySm", weight: "regular", children: a.description }),
11
- a.author.name && /* @__PURE__ */ r(
12
- i,
13
- {
14
- as: "p",
15
- defaultVariant: "labelSm",
16
- mobileVariant: "labelXs",
17
- weight: "regular",
18
- emphasis: !0,
19
- className: t.reviewAuthor,
20
- children: a.author.name
21
- }
22
- )
23
- ] }),
24
- /* @__PURE__ */ l("div", { className: t.infoContainer, children: [
25
- a.author.username && /* @__PURE__ */ r(i, { as: "p", defaultVariant: "labelSm", mobileVariant: "labelXs", emphasis: !0, weight: "regular", children: a.author.username }),
26
- e && /* @__PURE__ */ r(s, { image: e.image, name: e.name, link: e.link })
27
- ] })
28
- ] });
1
+ import { jsxs as n, jsx as t } from "react/jsx-runtime";
2
+ import { Typography as l } from "../../../../components/Typography/Typography.es.js";
3
+ import { RatingStars as o } from "../../../../components/RatingStars/RatingStars.es.js";
4
+ import { Product as h } from "../Product/Product.es.js";
5
+ import i from "./textCard.module.css.es.js";
6
+ const b = ({ background: m, review: a, product: r }) => {
7
+ var e, s;
8
+ return /* @__PURE__ */ n("div", { className: i.root, style: { backgroundImage: `url(${m.url})` }, children: [
9
+ !!a.stars && /* @__PURE__ */ t(o, { rating: a.stars }),
10
+ a && /* @__PURE__ */ n("div", { className: i.reviewContainer, children: [
11
+ a.title && /* @__PURE__ */ t(l, { as: "h3", defaultVariant: "headingSm", mobileVariant: "headingXs", weight: "regular", children: a.title }),
12
+ a.description && /* @__PURE__ */ t(l, { as: "p", defaultVariant: "bodyMd", mobileVariant: "bodySm", weight: "regular", children: a.description }),
13
+ ((e = a.author) == null ? void 0 : e.name) && /* @__PURE__ */ t(
14
+ l,
15
+ {
16
+ as: "p",
17
+ defaultVariant: "labelSm",
18
+ mobileVariant: "labelXs",
19
+ weight: "regular",
20
+ emphasis: !0,
21
+ className: i.reviewAuthor,
22
+ children: a.author.name
23
+ }
24
+ )
25
+ ] }),
26
+ /* @__PURE__ */ n("div", { className: i.infoContainer, children: [
27
+ ((s = a == null ? void 0 : a.author) == null ? void 0 : s.username) && /* @__PURE__ */ t(l, { as: "p", defaultVariant: "labelSm", mobileVariant: "labelXs", emphasis: !0, weight: "regular", children: a.author.username }),
28
+ r && /* @__PURE__ */ t(h, { image: r.image, name: r.name, link: r.link })
29
+ ] })
30
+ ] });
31
+ };
29
32
  export {
30
- c as TextCard
33
+ b as TextCard
31
34
  };
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("react"),f=require("../../../../components/Typography/Typography.cjs.js"),m=require("../../../../components/PlayButton/PlayButton.cjs.js"),y=require("../../../../utils/cn/cn.cjs.js"),p=require("../Product/Product.cjs.js"),t=require("./videoCard.module.css.cjs.js"),g=({product:a,review:c,background:d})=>{const[r,o]=s.useState(!1),n=s.useRef(null),u=s.useRef(null);return s.useEffect(()=>{const i=new IntersectionObserver(([l])=>{!l.isIntersecting&&r&&o(!1)},{threshold:.2});return u.current&&i.observe(u.current),()=>i.disconnect()},[r]),s.useEffect(()=>{!r&&n.current&&(n.current.pause(),n.current.currentTime=0)},[r]),e.jsxs("div",{className:t.default.root,ref:u,onClick:()=>r?o(!1):void 0,style:{backgroundImage:`url(${d.preview})`},children:[e.jsxs("div",{className:t.default.mediaContainer,children:[e.jsx("video",{ref:n,src:d.url,playsInline:!0,controls:!1,muted:!0,loop:!0,className:y.cn(t.default.media,!r&&t.default.mediaHidden)}),!r&&e.jsx("div",{className:t.default.playButton,children:e.jsx(m.PlayButton,{onClick:i=>{var l;i.stopPropagation(),(l=n.current)==null||l.play(),o(!0)}})})]}),e.jsxs("div",{className:t.default.infoContainer,children:[c.author.username&&e.jsx(f.Typography,{as:"p",defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"regular",children:c.author.username}),a&&e.jsx(p.Product,{image:a.image,name:a.name,link:a.link})]})]})};exports.VideoCard=g;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("react"),m=require("../../../../components/Typography/Typography.cjs.js"),y=require("../../../../components/PlayButton/PlayButton.cjs.js"),p=require("../../../../utils/cn/cn.cjs.js"),g=require("../Product/Product.cjs.js"),t=require("./videoCard.module.css.cjs.js"),h=({product:a,review:l,background:d})=>{var f;const[r,u]=s.useState(!1),n=s.useRef(null),c=s.useRef(null);return s.useEffect(()=>{const i=new IntersectionObserver(([o])=>{!o.isIntersecting&&r&&u(!1)},{threshold:.2});return c.current&&i.observe(c.current),()=>i.disconnect()},[r]),s.useEffect(()=>{!r&&n.current&&(n.current.pause(),n.current.currentTime=0)},[r]),e.jsxs("div",{className:t.default.root,ref:c,onClick:()=>r?u(!1):void 0,style:{backgroundImage:`url(${d.preview})`},children:[e.jsxs("div",{className:t.default.mediaContainer,children:[e.jsx("video",{ref:n,src:d.url,playsInline:!0,controls:!1,muted:!0,loop:!0,className:p.cn(t.default.media,!r&&t.default.mediaHidden)}),!r&&e.jsx("div",{className:t.default.playButton,children:e.jsx(y.PlayButton,{onClick:i=>{var o;i.stopPropagation(),(o=n.current)==null||o.play(),u(!0)}})})]}),e.jsxs("div",{className:t.default.infoContainer,children:[((f=l==null?void 0:l.author)==null?void 0:f.username)&&e.jsx(m.Typography,{as:"p",defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"regular",children:l.author.username}),a&&e.jsx(g.Product,{image:a.image,name:a.name,link:a.link})]})]})};exports.VideoCard=h;
@@ -1,32 +1,33 @@
1
1
  "use client";
2
- import { jsxs as m, jsx as n } from "react/jsx-runtime";
3
- import { useState as p, useRef as f, useEffect as d } from "react";
4
- import { Typography as h } from "../../../../components/Typography/Typography.es.js";
5
- import { PlayButton as g } from "../../../../components/PlayButton/PlayButton.es.js";
6
- import { cn as v } from "../../../../utils/cn/cn.es.js";
7
- import { Product as y } from "../Product/Product.es.js";
2
+ import { jsxs as c, jsx as n } from "react/jsx-runtime";
3
+ import { useState as h, useRef as d, useEffect as p } from "react";
4
+ import { Typography as g } from "../../../../components/Typography/Typography.es.js";
5
+ import { PlayButton as y } from "../../../../components/PlayButton/PlayButton.es.js";
6
+ import { cn as b } from "../../../../utils/cn/cn.es.js";
7
+ import { Product as v } from "../Product/Product.es.js";
8
8
  import r from "./videoCard.module.css.es.js";
9
- const R = ({ product: i, review: c, background: u }) => {
10
- const [e, o] = p(!1), t = f(null), l = f(null);
11
- return d(() => {
12
- const a = new IntersectionObserver(
13
- ([s]) => {
14
- !s.isIntersecting && e && o(!1);
9
+ const V = ({ product: a, review: s, background: u }) => {
10
+ var f;
11
+ const [e, l] = h(!1), t = d(null), m = d(null);
12
+ return p(() => {
13
+ const i = new IntersectionObserver(
14
+ ([o]) => {
15
+ !o.isIntersecting && e && l(!1);
15
16
  },
16
17
  { threshold: 0.2 }
17
18
  );
18
- return l.current && a.observe(l.current), () => a.disconnect();
19
- }, [e]), d(() => {
19
+ return m.current && i.observe(m.current), () => i.disconnect();
20
+ }, [e]), p(() => {
20
21
  !e && t.current && (t.current.pause(), t.current.currentTime = 0);
21
- }, [e]), /* @__PURE__ */ m(
22
+ }, [e]), /* @__PURE__ */ c(
22
23
  "div",
23
24
  {
24
25
  className: r.root,
25
- ref: l,
26
- onClick: () => e ? o(!1) : void 0,
26
+ ref: m,
27
+ onClick: () => e ? l(!1) : void 0,
27
28
  style: { backgroundImage: `url(${u.preview})` },
28
29
  children: [
29
- /* @__PURE__ */ m("div", { className: r.mediaContainer, children: [
30
+ /* @__PURE__ */ c("div", { className: r.mediaContainer, children: [
30
31
  /* @__PURE__ */ n(
31
32
  "video",
32
33
  {
@@ -36,27 +37,27 @@ const R = ({ product: i, review: c, background: u }) => {
36
37
  controls: !1,
37
38
  muted: !0,
38
39
  loop: !0,
39
- className: v(r.media, !e && r.mediaHidden)
40
+ className: b(r.media, !e && r.mediaHidden)
40
41
  }
41
42
  ),
42
43
  !e && /* @__PURE__ */ n("div", { className: r.playButton, children: /* @__PURE__ */ n(
43
- g,
44
+ y,
44
45
  {
45
- onClick: (a) => {
46
- var s;
47
- a.stopPropagation(), (s = t.current) == null || s.play(), o(!0);
46
+ onClick: (i) => {
47
+ var o;
48
+ i.stopPropagation(), (o = t.current) == null || o.play(), l(!0);
48
49
  }
49
50
  }
50
51
  ) })
51
52
  ] }),
52
- /* @__PURE__ */ m("div", { className: r.infoContainer, children: [
53
- c.author.username && /* @__PURE__ */ n(h, { as: "p", defaultVariant: "labelSm", mobileVariant: "labelXs", emphasis: !0, weight: "regular", children: c.author.username }),
54
- i && /* @__PURE__ */ n(y, { image: i.image, name: i.name, link: i.link })
53
+ /* @__PURE__ */ c("div", { className: r.infoContainer, children: [
54
+ ((f = s == null ? void 0 : s.author) == null ? void 0 : f.username) && /* @__PURE__ */ n(g, { as: "p", defaultVariant: "labelSm", mobileVariant: "labelXs", emphasis: !0, weight: "regular", children: s.author.username }),
55
+ a && /* @__PURE__ */ n(v, { image: a.image, name: a.name, link: a.link })
55
56
  ] })
56
57
  ]
57
58
  }
58
59
  );
59
60
  };
60
61
  export {
61
- R as VideoCard
62
+ V as VideoCard
62
63
  };
@@ -9,11 +9,12 @@ type TBackground = {
9
9
  export type RichReviewCard = {
10
10
  background: TBackground;
11
11
  review: {
12
- title: string;
13
- description: string;
14
- author: {
12
+ title?: string;
13
+ description?: string;
14
+ author?: {
15
15
  name?: string;
16
16
  username?: string;
17
+ link?: string;
17
18
  };
18
19
  stars?: number;
19
20
  };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),t=require("react"),l=require("../../utils/cn/cn.cjs.js"),n=require("./bubbles.module.css.cjs.js"),b=["xs","lg","sm","sm","xl","sm","xl","xl","xl","md","md","md","lg"],m=({className:o})=>{const[r,a]=t.useState(!1),[i,d]=t.useState(!1),c=t.useRef(null);return t.useEffect(()=>{const s=new window.IntersectionObserver(([e])=>{e.isIntersecting&&e.intersectionRatio===1&&!r&&!i&&(a(!0),setTimeout(()=>d(!0),5e3))},{threshold:1});return c.current&&s.observe(c.current),()=>s.disconnect()},[r,i]),u.jsx("section",{ref:c,className:l.cn(n.default.root,o),children:u.jsx("div",{className:n.default.container,children:b.map((s,e)=>u.jsx("div",{className:l.cn(n.default.bubble,(i||r)&&n.default.bubbleFinished),"data-size":s,"data-index":e},e))})})};exports.Bubbles=m;
@@ -0,0 +1,3 @@
1
+ export declare const Bubbles: ({ className }: {
2
+ className?: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;