@zenpatient-org/healthspan-marketing-ui 0.1.23 → 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/components/Accordion/Accordion.cjs.js +1 -0
- package/dist/components/Accordion/Accordion.d.ts +8 -0
- package/dist/components/Accordion/Accordion.es.js +27 -0
- package/dist/components/Accordion/accordion.module.css.cjs.js +1 -0
- package/dist/components/Accordion/accordion.module.css.es.js +7 -0
- package/dist/components/Accordion/components/AccordionItem/AccordionItem.cjs.js +1 -0
- package/dist/components/Accordion/components/AccordionItem/AccordionItem.d.ts +3 -0
- package/dist/components/Accordion/components/AccordionItem/AccordionItem.es.js +31 -0
- package/dist/components/Accordion/components/AccordionItem/accordionItem.module.css.cjs.js +1 -0
- package/dist/components/Accordion/components/AccordionItem/accordionItem.module.css.es.js +25 -0
- package/dist/components/Accordion/components/AccordionItem/index.d.ts +2 -0
- package/dist/components/Accordion/components/AccordionItem/types.d.ts +9 -0
- package/dist/components/Accordion/components/index.d.ts +1 -0
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/Accordion/types.d.ts +6 -0
- package/dist/components/ComplexImageCarousel/ComplexImageCarousel.cjs.js +1 -0
- package/dist/components/ComplexImageCarousel/ComplexImageCarousel.d.ts +3 -0
- package/dist/components/ComplexImageCarousel/ComplexImageCarousel.es.js +135 -0
- package/dist/components/ComplexImageCarousel/complexImageCarousel.module.css.cjs.js +1 -0
- package/dist/components/ComplexImageCarousel/complexImageCarousel.module.css.es.js +19 -0
- package/dist/components/ComplexImageCarousel/index.d.ts +2 -0
- package/dist/components/ComplexImageCarousel/types.d.ts +10 -0
- package/dist/components/Icon/constants.cjs.js +1 -1
- package/dist/components/Icon/constants.d.ts +3 -0
- package/dist/components/Icon/constants.es.js +4 -1
- package/dist/components/Icon/iconsMap.cjs.js +1 -1
- package/dist/components/Icon/iconsMap.es.js +104 -98
- package/dist/components/IconBracket/IconBracket.cjs.js +1 -0
- package/dist/components/IconBracket/IconBracket.d.ts +3 -0
- package/dist/components/IconBracket/IconBracket.es.js +16 -0
- package/dist/components/IconBracket/iconBracket.module.css.cjs.js +1 -0
- package/dist/components/IconBracket/iconBracket.module.css.es.js +9 -0
- package/dist/components/IconBracket/index.d.ts +1 -0
- package/dist/components/IconBracket/types.d.ts +8 -0
- package/dist/components/PlayButton/PlayButton.cjs.js +1 -0
- package/dist/components/PlayButton/PlayButton.d.ts +8 -0
- package/dist/components/PlayButton/PlayButton.es.js +9 -0
- package/dist/components/PlayButton/index.d.ts +1 -0
- package/dist/components/PlayButton/playButton.module.css.cjs.js +1 -0
- package/dist/components/PlayButton/playButton.module.css.es.js +11 -0
- package/dist/components/ProgressButton/ProgressButton.cjs.js +1 -1
- package/dist/components/ProgressButton/ProgressButton.d.ts +2 -1
- package/dist/components/ProgressButton/ProgressButton.es.js +17 -13
- package/dist/components/RatingStars/RatingStars.cjs.js +1 -0
- package/dist/components/RatingStars/RatingStars.d.ts +6 -0
- package/dist/components/RatingStars/RatingStars.es.js +18 -0
- package/dist/components/RatingStars/index.d.ts +1 -0
- package/dist/components/RatingStars/ratingStars.module.css.cjs.js +1 -0
- package/dist/components/RatingStars/ratingStars.module.css.es.js +13 -0
- package/dist/healthspan-marketing-ui.css +1 -1
- package/dist/icons/action/bracket-left.svg.cjs.js +1 -0
- package/dist/icons/action/bracket-left.svg.es.js +5 -0
- package/dist/icons/action/bracket-right.svg.cjs.js +1 -0
- package/dist/icons/action/bracket-right.svg.es.js +5 -0
- package/dist/icons/action/play.svg.cjs.js +1 -0
- package/dist/icons/action/play.svg.es.js +5 -0
- 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 -0
- package/dist/modules/Compare/Compare.es.js +26 -0
- package/dist/modules/Compare/compare.module.css.cjs.js +1 -0
- package/dist/modules/Compare/compare.module.css.es.js +15 -0
- 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 -0
- package/dist/modules/FAQ/FAQ.d.ts +3 -0
- package/dist/modules/FAQ/FAQ.es.js +17 -0
- package/dist/modules/FAQ/faq.module.css.cjs.js +1 -0
- package/dist/modules/FAQ/faq.module.css.es.js +19 -0
- package/dist/modules/FAQ/index.d.ts +1 -0
- package/dist/modules/FAQ/types.d.ts +10 -0
- 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 -0
- package/dist/modules/ImageWithText/ImageWithText.d.ts +3 -0
- package/dist/modules/ImageWithText/ImageWithText.es.js +35 -0
- package/dist/modules/ImageWithText/imageWithText.module.css.cjs.js +1 -0
- package/dist/modules/ImageWithText/imageWithText.module.css.es.js +23 -0
- package/dist/modules/ImageWithText/index.d.ts +1 -0
- package/dist/modules/ImageWithText/types.d.ts +9 -0
- package/dist/modules/LongevityPathways/LongevityPathways.cjs.js +1 -0
- package/dist/modules/LongevityPathways/LongevityPathways.d.ts +3 -0
- package/dist/modules/LongevityPathways/LongevityPathways.es.js +19 -0
- package/dist/modules/LongevityPathways/index.d.ts +2 -0
- package/dist/modules/LongevityPathways/longevityPathways.module.css.cjs.js +1 -0
- package/dist/modules/LongevityPathways/longevityPathways.module.css.es.js +9 -0
- package/dist/modules/LongevityPathways/types.d.ts +9 -0
- package/dist/modules/OptimalHealth/OptimalHealth.es.js +19 -2
- 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/SlidingTabsGallery/SlidingTabsGallery.cjs.js +1 -0
- package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.d.ts +9 -0
- package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.es.js +102 -0
- package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.module.css.cjs.js +1 -0
- package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.module.css.es.js +29 -0
- package/dist/modules/SlidingTabsGallery/index.d.ts +1 -0
- 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 -0
- package/dist/modules/Testimonial/Testimonial.d.ts +13 -0
- package/dist/modules/Testimonial/Testimonial.es.js +88 -0
- package/dist/modules/Testimonial/components/Product/Product.cjs.js +1 -0
- package/dist/modules/Testimonial/components/Product/Product.d.ts +7 -0
- package/dist/modules/Testimonial/components/Product/Product.es.js +23 -0
- package/dist/modules/Testimonial/components/Product/index.d.ts +1 -0
- package/dist/modules/Testimonial/components/Product/product.module.css.cjs.js +1 -0
- package/dist/modules/Testimonial/components/Product/product.module.css.es.js +17 -0
- package/dist/modules/Testimonial/components/TextCard/TextCard.cjs.js +1 -0
- package/dist/modules/Testimonial/components/TextCard/TextCard.d.ts +3 -0
- package/dist/modules/Testimonial/components/TextCard/TextCard.es.js +31 -0
- package/dist/modules/Testimonial/components/TextCard/index.d.ts +1 -0
- package/dist/modules/Testimonial/components/TextCard/textCard.module.css.cjs.js +1 -0
- package/dist/modules/Testimonial/components/TextCard/textCard.module.css.es.js +13 -0
- package/dist/modules/Testimonial/components/VideoCard/VideoCard.cjs.js +1 -0
- package/dist/modules/Testimonial/components/VideoCard/VideoCard.d.ts +11 -0
- package/dist/modules/Testimonial/components/VideoCard/VideoCard.es.js +62 -0
- package/dist/modules/Testimonial/components/VideoCard/index.d.ts +1 -0
- package/dist/modules/Testimonial/components/VideoCard/videoCard.module.css.cjs.js +1 -0
- package/dist/modules/Testimonial/components/VideoCard/videoCard.module.css.es.js +17 -0
- package/dist/modules/Testimonial/index.d.ts +1 -0
- package/dist/modules/Testimonial/testimonial.module.css.cjs.js +1 -0
- package/dist/modules/Testimonial/testimonial.module.css.es.js +25 -0
- package/dist/modules/Testimonial/types.d.ts +26 -0
- package/dist/modules/TrackProgress/TrackProgress.cjs.js +1 -0
- package/dist/modules/TrackProgress/TrackProgress.d.ts +10 -0
- package/dist/modules/TrackProgress/TrackProgress.es.js +24 -0
- package/dist/modules/TrackProgress/components/TimelineContent/TimelineContent.cjs.js +1 -0
- package/dist/modules/TrackProgress/components/TimelineContent/TimelineContent.d.ts +7 -0
- package/dist/modules/TrackProgress/components/TimelineContent/TimelineContent.es.js +90 -0
- package/dist/modules/TrackProgress/components/TimelineContent/index.d.ts +1 -0
- package/dist/modules/TrackProgress/components/TimelineContent/timelineContent.module.css.cjs.js +1 -0
- package/dist/modules/TrackProgress/components/TimelineContent/timelineContent.module.css.es.js +25 -0
- package/dist/modules/TrackProgress/index.d.ts +1 -0
- package/dist/modules/TrackProgress/trackProgress.module.css.cjs.js +1 -0
- package/dist/modules/TrackProgress/trackProgress.module.css.es.js +13 -0
- package/dist/modules/TrackProgress/types.d.ts +6 -0
- 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/dist/node_modules/@gsap/react/src/index.cjs.js +9 -0
- package/dist/node_modules/@gsap/react/src/index.es.js +29 -0
- package/dist/node_modules/gsap/Flip.cjs.js +8 -0
- package/dist/node_modules/gsap/Flip.es.js +525 -0
- package/dist/node_modules/gsap/utils/matrix.cjs.js +8 -0
- package/dist/node_modules/gsap/utils/matrix.es.js +104 -0
- package/dist/pageComponents/Gradient/Gradient.d.ts +5 -0
- package/dist/pageComponents/Gradient/index.d.ts +1 -0
- package/package.json +65 -9
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { useState as u, useMemo as p } from "react";
|
|
4
|
+
import { Typography as o } from "../../../../components/Typography/Typography.es.js";
|
|
5
|
+
import { cn as b } from "../../../../utils/cn/cn.es.js";
|
|
6
|
+
import a from "./timelineContent.module.css.es.js";
|
|
7
|
+
function f(r) {
|
|
8
|
+
const l = r.slice();
|
|
9
|
+
for (let t = l.length - 1; t > 0; t--) {
|
|
10
|
+
const n = Math.floor(Math.random() * (t + 1));
|
|
11
|
+
[l[t], l[n]] = [l[n], l[t]];
|
|
12
|
+
}
|
|
13
|
+
return l;
|
|
14
|
+
}
|
|
15
|
+
const g = [
|
|
16
|
+
{
|
|
17
|
+
key: "optimal",
|
|
18
|
+
label: "Optimal"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
key: "inRange",
|
|
22
|
+
label: "In Range"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
key: "outOfRange",
|
|
26
|
+
label: "Out of Range"
|
|
27
|
+
}
|
|
28
|
+
], R = ({ tabs: r }) => {
|
|
29
|
+
const [l, t] = u(0), { optimal: n, inRange: m, outOfRange: d } = r[l], h = p(() => f([
|
|
30
|
+
...Array(n).fill("optimal"),
|
|
31
|
+
...Array(m).fill("inRange"),
|
|
32
|
+
...Array(d).fill("outOfRange")
|
|
33
|
+
]), [n, m, d]);
|
|
34
|
+
return /* @__PURE__ */ c("div", { className: a.root, children: [
|
|
35
|
+
/* @__PURE__ */ c("div", { className: a.content, children: [
|
|
36
|
+
/* @__PURE__ */ e("div", { className: a.metricsContainer, children: g.map((i, s) => /* @__PURE__ */ c("div", { className: a.metric, children: [
|
|
37
|
+
/* @__PURE__ */ e(o, { defaultVariant: "displayLg", mobileVariant: "displaySm", weight: "regular", children: r[l][i.key] }),
|
|
38
|
+
/* @__PURE__ */ c("div", { className: a.metricTitle, children: [
|
|
39
|
+
/* @__PURE__ */ e(
|
|
40
|
+
o,
|
|
41
|
+
{
|
|
42
|
+
as: "p",
|
|
43
|
+
defaultVariant: "labelSm",
|
|
44
|
+
mobileVariant: "labelXs",
|
|
45
|
+
emphasis: !0,
|
|
46
|
+
weight: "regular",
|
|
47
|
+
children: "("
|
|
48
|
+
}
|
|
49
|
+
),
|
|
50
|
+
/* @__PURE__ */ e(
|
|
51
|
+
o,
|
|
52
|
+
{
|
|
53
|
+
as: "p",
|
|
54
|
+
defaultVariant: "labelSm",
|
|
55
|
+
mobileVariant: "labelXs",
|
|
56
|
+
emphasis: !0,
|
|
57
|
+
weight: "regular",
|
|
58
|
+
children: i.label
|
|
59
|
+
}
|
|
60
|
+
),
|
|
61
|
+
/* @__PURE__ */ e("div", { className: a.circle, "data-key": i.key }),
|
|
62
|
+
/* @__PURE__ */ e(
|
|
63
|
+
o,
|
|
64
|
+
{
|
|
65
|
+
as: "p",
|
|
66
|
+
defaultVariant: "labelSm",
|
|
67
|
+
mobileVariant: "labelXs",
|
|
68
|
+
emphasis: !0,
|
|
69
|
+
weight: "regular",
|
|
70
|
+
children: ")"
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
] })
|
|
74
|
+
] }, i.key)) }),
|
|
75
|
+
/* @__PURE__ */ e("div", { className: a.canvas, children: h.map((i, s) => /* @__PURE__ */ e("div", { className: a.circle, "data-key": i }, s)) })
|
|
76
|
+
] }),
|
|
77
|
+
/* @__PURE__ */ e("div", { className: a.tabsContainer, children: r.map((i, s) => /* @__PURE__ */ e(
|
|
78
|
+
"button",
|
|
79
|
+
{
|
|
80
|
+
className: b(a.tab, l === s && a.tabActive),
|
|
81
|
+
onClick: () => t(s),
|
|
82
|
+
children: /* @__PURE__ */ e(o, { defaultVariant: "labelMd", mobileVariant: "labelXs", emphasis: !0, weight: "regular", children: i.label })
|
|
83
|
+
},
|
|
84
|
+
i.label
|
|
85
|
+
)) })
|
|
86
|
+
] });
|
|
87
|
+
};
|
|
88
|
+
export {
|
|
89
|
+
R as TimelineContent
|
|
90
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TimelineContent } from './TimelineContent';
|
package/dist/modules/TrackProgress/components/TimelineContent/timelineContent.module.css.cjs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="timelineContent-module__root___5V2gz",e="timelineContent-module__content___HS3bJ",n="timelineContent-module__metricsContainer___Bl9Mq",i="timelineContent-module__metric___QgjTy",o="timelineContent-module__metricTitle___NgmIf",_="timelineContent-module__canvas___nyUmZ",c="timelineContent-module__circle___FOAjD",l="timelineContent-module__tabsContainer___drNVG",m="timelineContent-module__tab___sCTOs",r="timelineContent-module__tabActive___Oa023",a={root:t,content:e,metricsContainer:n,metric:i,metricTitle:o,canvas:_,circle:c,tabsContainer:l,tab:m,tabActive:r};exports.canvas=_;exports.circle=c;exports.content=e;exports.default=a;exports.metric=i;exports.metricTitle=o;exports.metricsContainer=n;exports.root=t;exports.tab=m;exports.tabActive=r;exports.tabsContainer=l;
|
package/dist/modules/TrackProgress/components/TimelineContent/timelineContent.module.css.es.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const t = "timelineContent-module__root___5V2gz", e = "timelineContent-module__content___HS3bJ", n = "timelineContent-module__metricsContainer___Bl9Mq", _ = "timelineContent-module__metric___QgjTy", o = "timelineContent-module__metricTitle___NgmIf", i = "timelineContent-module__canvas___nyUmZ", c = "timelineContent-module__circle___FOAjD", m = "timelineContent-module__tabsContainer___drNVG", l = "timelineContent-module__tab___sCTOs", s = "timelineContent-module__tabActive___Oa023", a = {
|
|
2
|
+
root: t,
|
|
3
|
+
content: e,
|
|
4
|
+
metricsContainer: n,
|
|
5
|
+
metric: _,
|
|
6
|
+
metricTitle: o,
|
|
7
|
+
canvas: i,
|
|
8
|
+
circle: c,
|
|
9
|
+
tabsContainer: m,
|
|
10
|
+
tab: l,
|
|
11
|
+
tabActive: s
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
i as canvas,
|
|
15
|
+
c as circle,
|
|
16
|
+
e as content,
|
|
17
|
+
a as default,
|
|
18
|
+
_ as metric,
|
|
19
|
+
o as metricTitle,
|
|
20
|
+
n as metricsContainer,
|
|
21
|
+
t as root,
|
|
22
|
+
l as tab,
|
|
23
|
+
s as tabActive,
|
|
24
|
+
m as tabsContainer
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TrackProgress } from './TrackProgress';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="trackProgress-module__root___8LSkR",r="trackProgress-module__container___qlbKw",o="trackProgress-module__headerContainer___2e9cV",t="trackProgress-module__headerDescription___Yi5pb",n={root:e,container:r,headerContainer:o,headerDescription:t};exports.container=r;exports.default=n;exports.headerContainer=o;exports.headerDescription=t;exports.root=e;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const e = "trackProgress-module__root___8LSkR", r = "trackProgress-module__container___qlbKw", o = "trackProgress-module__headerContainer___2e9cV", t = "trackProgress-module__headerDescription___Yi5pb", n = {
|
|
2
|
+
root: e,
|
|
3
|
+
container: r,
|
|
4
|
+
headerContainer: o,
|
|
5
|
+
headerDescription: t
|
|
6
|
+
};
|
|
7
|
+
export {
|
|
8
|
+
r as container,
|
|
9
|
+
n as default,
|
|
10
|
+
o as headerContainer,
|
|
11
|
+
t as headerDescription,
|
|
12
|
+
e as root
|
|
13
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("../../components/Callback/Callback.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("../../components/Callback/Callback.cjs.js"),a=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),c=require("../../utils/cn/cn.cjs.js"),n=require("./components/ProtocolTags/ProtocolTags.cjs.js"),t=require("./yourProtocol.module.css.cjs.js"),d=({title:i,image:r,tags:s,callbackView:o})=>e.jsx("section",{className:t.default.root,children:e.jsxs("div",{className:t.default.container,children:[e.jsxs("div",{className:t.default.content,children:[e.jsx(a.HighlightedTitle,{title:i,className:t.default.title,defaultVariant:"displaySm",mobileVariant:"headingXl"}),e.jsx(n.ProtocolTags,{tags:s}),o&&e.jsx("div",{className:t.default.callback,children:e.jsx(l.Callback,{title:o.title,description:o.description??"",price:o.price??"",image:o.image,button:{href:o.signupUrl??""},size:"sm"})})]}),e.jsx("img",{src:r,alt:"Your Protocol",className:c.cn(t.default.image,t.default.desktop),width:481,height:640})]})});exports.YourProtocol=d;
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Callback as
|
|
3
|
-
import { HighlightedTitle as
|
|
1
|
+
import { jsx as o, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { Callback as a } from "../../components/Callback/Callback.es.js";
|
|
3
|
+
import { HighlightedTitle as l } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
|
|
4
4
|
import { cn as n } from "../../utils/cn/cn.es.js";
|
|
5
|
-
import { ProtocolTags as
|
|
6
|
-
import
|
|
7
|
-
const N = ({ title: e, image: s, tags: m, callbackView:
|
|
8
|
-
/* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */
|
|
10
|
-
|
|
5
|
+
import { ProtocolTags as c } from "./components/ProtocolTags/ProtocolTags.es.js";
|
|
6
|
+
import t from "./yourProtocol.module.css.es.js";
|
|
7
|
+
const N = ({ title: e, image: s, tags: m, callbackView: i }) => /* @__PURE__ */ o("section", { className: t.root, children: /* @__PURE__ */ r("div", { className: t.container, children: [
|
|
8
|
+
/* @__PURE__ */ r("div", { className: t.content, children: [
|
|
9
|
+
/* @__PURE__ */ o(
|
|
10
|
+
l,
|
|
11
11
|
{
|
|
12
12
|
title: e,
|
|
13
|
-
className:
|
|
13
|
+
className: t.title,
|
|
14
14
|
defaultVariant: "displaySm",
|
|
15
15
|
mobileVariant: "headingXl"
|
|
16
16
|
}
|
|
17
17
|
),
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
/* @__PURE__ */ o(c, { tags: m }),
|
|
19
|
+
i && /* @__PURE__ */ o("div", { className: t.callback, children: /* @__PURE__ */ o(
|
|
20
|
+
a,
|
|
21
21
|
{
|
|
22
|
-
title:
|
|
23
|
-
description:
|
|
24
|
-
price:
|
|
25
|
-
image:
|
|
22
|
+
title: i.title,
|
|
23
|
+
description: i.description ?? "",
|
|
24
|
+
price: i.price ?? "",
|
|
25
|
+
image: i.image,
|
|
26
26
|
button: {
|
|
27
|
-
href:
|
|
27
|
+
href: i.signupUrl ?? ""
|
|
28
28
|
},
|
|
29
29
|
size: "sm"
|
|
30
30
|
}
|
|
31
31
|
) })
|
|
32
32
|
] }),
|
|
33
|
-
/* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ o(
|
|
34
34
|
"img",
|
|
35
35
|
{
|
|
36
36
|
src: s,
|
|
37
37
|
alt: "Your Protocol",
|
|
38
|
-
className: n(
|
|
38
|
+
className: n(t.image, t.desktop),
|
|
39
39
|
width: 481,
|
|
40
40
|
height: 640
|
|
41
41
|
}
|
|
42
42
|
)
|
|
43
|
-
] });
|
|
43
|
+
] }) });
|
|
44
44
|
export {
|
|
45
45
|
N as YourProtocol
|
|
46
46
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="yourProtocol-module__root___Q35lO",t="yourProtocol-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="yourProtocol-module__root___Q35lO",t="yourProtocol-module__container___-p0rE",e="yourProtocol-module__content___mMf6R",_="yourProtocol-module__title___xNPOR",l="yourProtocol-module__image___fVaOZ",c="yourProtocol-module__callback___bvu49",r="yourProtocol-module__desktop___pl-rW",n={root:o,container:t,content:e,title:_,image:l,callback:c,desktop:r};exports.callback=c;exports.container=t;exports.content=e;exports.default=n;exports.desktop=r;exports.image=l;exports.root=o;exports.title=_;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
const o = "yourProtocol-module__root___Q35lO", t = "yourProtocol-
|
|
1
|
+
const o = "yourProtocol-module__root___Q35lO", t = "yourProtocol-module__container___-p0rE", _ = "yourProtocol-module__content___mMf6R", c = "yourProtocol-module__title___xNPOR", l = "yourProtocol-module__image___fVaOZ", e = "yourProtocol-module__callback___bvu49", r = "yourProtocol-module__desktop___pl-rW", n = {
|
|
2
2
|
root: o,
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
container: t,
|
|
4
|
+
content: _,
|
|
5
|
+
title: c,
|
|
5
6
|
image: l,
|
|
6
|
-
callback:
|
|
7
|
-
desktop:
|
|
7
|
+
callback: e,
|
|
8
|
+
desktop: r
|
|
8
9
|
};
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
-
t as
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
e as callback,
|
|
12
|
+
t as container,
|
|
13
|
+
_ as content,
|
|
14
|
+
n as default,
|
|
15
|
+
r as desktop,
|
|
14
16
|
l as image,
|
|
15
17
|
o as root,
|
|
16
|
-
|
|
18
|
+
c as title
|
|
17
19
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),x=require("../../../gsap/index.cjs.js");/*!
|
|
2
|
+
* @gsap/react 2.1.2
|
|
3
|
+
* https://gsap.com
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2008-2025, GreenSock. All rights reserved.
|
|
6
|
+
* Subject to the terms at https://gsap.com/standard-license or for
|
|
7
|
+
* Club GSAP members, the agreement issued with that membership.
|
|
8
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
9
|
+
*/let d=typeof document<"u"?u.useLayoutEffect:u.useEffect,y=e=>e&&!Array.isArray(e)&&typeof e=="object",o=[],S={},g=x.gsap;const f=(e,t=o)=>{let r=S;y(e)?(r=e,e=null,t="dependencies"in r?r.dependencies:o):y(t)&&(r=t,t="dependencies"in r?r.dependencies:o),e&&typeof e!="function"&&console.warn("First parameter must be a function or config object");const{scope:s,revertOnUpdate:p}=r,i=u.useRef(!1),n=u.useRef(g.context(()=>{},s)),a=u.useRef(m=>n.current.add(null,m)),c=t&&t.length&&!p;return c&&d(()=>(i.current=!0,()=>n.current.revert()),o),d(()=>{if(e&&n.current.add(e,s),!c||!i.current)return()=>n.current.revert()},t),{context:n.current,contextSafe:a.current}};f.register=e=>{g=e};f.headless=!0;exports.useGSAP=f;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { useRef as u, useLayoutEffect as x, useEffect as S } from "react";
|
|
2
|
+
import { gsap as h } from "../../../gsap/index.es.js";
|
|
3
|
+
/*!
|
|
4
|
+
* @gsap/react 2.1.2
|
|
5
|
+
* https://gsap.com
|
|
6
|
+
*
|
|
7
|
+
* Copyright 2008-2025, GreenSock. All rights reserved.
|
|
8
|
+
* Subject to the terms at https://gsap.com/standard-license or for
|
|
9
|
+
* Club GSAP members, the agreement issued with that membership.
|
|
10
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
11
|
+
*/
|
|
12
|
+
let c = typeof document < "u" ? x : S, p = (e) => e && !Array.isArray(e) && typeof e == "object", o = [], A = {}, m = h;
|
|
13
|
+
const g = (e, t = o) => {
|
|
14
|
+
let r = A;
|
|
15
|
+
p(e) ? (r = e, e = null, t = "dependencies" in r ? r.dependencies : o) : p(t) && (r = t, t = "dependencies" in r ? r.dependencies : o), e && typeof e != "function" && console.warn("First parameter must be a function or config object");
|
|
16
|
+
const { scope: f, revertOnUpdate: y } = r, s = u(!1), n = u(m.context(() => {
|
|
17
|
+
}, f)), a = u((d) => n.current.add(null, d)), i = t && t.length && !y;
|
|
18
|
+
return i && c(() => (s.current = !0, () => n.current.revert()), o), c(() => {
|
|
19
|
+
if (e && n.current.add(e, f), !i || !s.current)
|
|
20
|
+
return () => n.current.revert();
|
|
21
|
+
}, t), { context: n.current, contextSafe: a.current };
|
|
22
|
+
};
|
|
23
|
+
g.register = (e) => {
|
|
24
|
+
m = e;
|
|
25
|
+
};
|
|
26
|
+
g.headless = !0;
|
|
27
|
+
export {
|
|
28
|
+
g as useGSAP
|
|
29
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const C=require("./utils/matrix.cjs.js");/*!
|
|
2
|
+
* Flip 3.13.0
|
|
3
|
+
* https://gsap.com
|
|
4
|
+
*
|
|
5
|
+
* @license Copyright 2008-2025, GreenSock. All rights reserved.
|
|
6
|
+
* Subject to the terms at https://gsap.com/standard-license
|
|
7
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
8
|
+
*/var tt=1,ie,A,b,ne,J,q,Ie,Xe=function(e,i){return e.actions.forEach(function(t){return t.vars[i]&&t.vars[i](t)})},Me={},ze=180/Math.PI,it=Math.PI/180,he={},Oe={},fe={},Be=function(e){return typeof e=="string"?e.split(" ").join("").split(","):e},nt=Be("onStart,onUpdate,onComplete,onReverseComplete,onInterrupt"),de=Be("transform,transformOrigin,width,height,position,top,left,opacity,zIndex,maxWidth,maxHeight,minWidth,minHeight"),re=function(e){return ie(e)[0]||console.warn("Element not found:",e)},Q=function(e){return Math.round(e*1e4)/1e4||0},xe=function(e,i,t){return e.forEach(function(r){return r.classList[t](i)})},Re={zIndex:1,kill:1,simple:1,spin:1,clearProps:1,targets:1,toggleClass:1,onComplete:1,onUpdate:1,onInterrupt:1,onStart:1,delay:1,repeat:1,repeatDelay:1,yoyo:1,scale:1,fade:1,absolute:1,props:1,onEnter:1,onLeave:1,custom:1,paused:1,nested:1,prune:1,absoluteOnLeave:1},je={zIndex:1,simple:1,clearProps:1,scale:1,absolute:1,fitChild:1,getVars:1,props:1},qe=function(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()},ee=function(e,i){var t={},r;for(r in e)i[r]||(t[r]=e[r]);return t},Ce={},Ne=function(e){var i=Ce[e]=Be(e);return fe[e]=i.concat(de),i},rt=function(e){var i=e._gsap||A.core.getCache(e);return i.gmCache===A.ticker.frame?i.gMatrix:(i.gmCache=A.ticker.frame,i.gMatrix=C.getGlobalMatrix(e,!0,!1,!0))},st=function o(e,i,t){t===void 0&&(t=0);for(var r=e.parentNode,n=1e3*Math.pow(10,t)*(i?-1:1),s=i?-n*900:0;e;)s+=n,e=e.previousSibling;return r?s+o(r,i,t+1):s},pe=function(e,i,t){return e.forEach(function(r){return r.d=st(t?r.element:r.t,i)}),e.sort(function(r,n){return r.d-n.d}),e},se=function(e,i){for(var t=e.element.style,r=e.css=e.css||[],n=i.length,s,l;n--;)s=i[n],l=t[s]||t.getPropertyValue(s),r.push(l?s:Oe[s]||(Oe[s]=qe(s)),l);return t},ce=function(e){var i=e.css,t=e.element.style,r=0;for(e.cache.uncache=1;r<i.length;r+=2)i[r+1]?t[i[r]]=i[r+1]:t.removeProperty(i[r]);!i[i.indexOf("transform")+1]&&t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Ye=function(e,i){e.forEach(function(t){return t.a.cache.uncache=1}),i||e.finalStates.forEach(ce)},we="paddingTop,paddingRight,paddingBottom,paddingLeft,gridArea,transition".split(","),De=function(e,i,t){var r=e.element,n=e.width,s=e.height,l=e.uncache,u=e.getProp,a=r.style,c=4,h,x,w;if(typeof i!="object"&&(i=e),b&&t!==1)return b._abs.push({t:r,b:e,a:e,sd:0}),b._final.push(function(){return(e.cache.uncache=1)&&ce(e)}),r;for(x=u("display")==="none",(!e.isVisible||x)&&(x&&(se(e,["display"]).display=i.display),e.matrix=i.matrix,e.width=n=e.width||i.width,e.height=s=e.height||i.height),se(e,we),w=window.getComputedStyle(r);c--;)a[we[c]]=w[we[c]];if(a.gridArea="1 / 1 / 1 / 1",a.transition="none",a.position="absolute",a.width=n+"px",a.height=s+"px",a.top||(a.top="0px"),a.left||(a.left="0px"),l)h=new $(r);else if(h=ee(e,he),h.position="absolute",e.simple){var _=r.getBoundingClientRect();h.matrix=new C.Matrix2D(1,0,0,1,_.left+C._getDocScrollLeft(),_.top+C._getDocScrollTop())}else h.matrix=C.getGlobalMatrix(r,!1,!1,!0);return h=te(h,e,!0),e.x=q(h.x,.01),e.y=q(h.y,.01),r},Ge=function(e,i){return i!==!0&&(i=ie(i),e=e.filter(function(t){if(i.indexOf((t.sd<0?t.b:t.a).element)!==-1)return!0;t.t._gsap.renderTransform(1),t.b.isVisible&&(t.t.style.width=t.b.width+"px",t.t.style.height=t.b.height+"px")})),e},Je=function(e){return pe(e,!0).forEach(function(i){return(i.a.isVisible||i.b.isVisible)&&De(i.sd<0?i.b:i.a,i.b,1)})},at=function(e,i){return i&&e.idLookup[Ve(i).id]||e.elementStates[0]},Ve=function(e,i,t,r){return e instanceof $?e:e instanceof z?at(e,r):new $(typeof e=="string"?re(e)||console.warn(e+" not found"):e,i,t)},ot=function(e,i){for(var t=A.getProperty(e.element,null,"native"),r=e.props={},n=i.length;n--;)r[i[n]]=(t(i[n])+"").trim();return r.zIndex&&(r.zIndex=parseFloat(r.zIndex)||0),e},Ue=function(e,i){var t=e.style||e,r;for(r in i)t[r]=i[r]},lt=function(e){var i=e.getAttribute("data-flip-id");return i||e.setAttribute("data-flip-id",i="auto-"+tt++),i},$e=function(e){return e.map(function(i){return i.element})},He=function(e,i,t){return e&&i.length&&t.add(e($e(i),t,new z(i,0,!0)),0)},te=function(e,i,t,r,n,s){var l=e.element,u=e.cache,a=e.parent,c=e.x,h=e.y,x=i.width,w=i.height,_=i.scaleX,v=i.scaleY,m=i.rotation,y=i.bounds,L=s&&Ie&&Ie(l,"transform,width,height"),f=e,V=i.matrix,P=V.e,D=V.f,O=e.bounds.width!==y.width||e.bounds.height!==y.height||e.scaleX!==_||e.scaleY!==v||e.rotation!==m,R=!O&&e.simple&&i.simple&&!n,B,g,k,G,X,T,d;return R||!a?(_=v=1,m=B=0):(X=rt(a),T=X.clone().multiply(i.ctm?i.matrix.clone().multiply(i.ctm):i.matrix),m=Q(Math.atan2(T.b,T.a)*ze),B=Q(Math.atan2(T.c,T.d)*ze+m)%360,_=Math.sqrt(Math.pow(T.a,2)+Math.pow(T.b,2)),v=Math.sqrt(Math.pow(T.c,2)+Math.pow(T.d,2))*Math.cos(B*it),n&&(n=ie(n)[0],G=A.getProperty(n),d=n.getBBox&&typeof n.getBBox=="function"&&n.getBBox(),f={scaleX:G("scaleX"),scaleY:G("scaleY"),width:d?d.width:Math.ceil(parseFloat(G("width","px"))),height:d?d.height:parseFloat(G("height","px"))}),u.rotation=m+"deg",u.skewX=B+"deg"),t?(_*=x===f.width||!f.width?1:x/f.width,v*=w===f.height||!f.height?1:w/f.height,u.scaleX=_,u.scaleY=v):(x=q(x*_/f.scaleX,0),w=q(w*v/f.scaleY,0),l.style.width=x+"px",l.style.height=w+"px"),r&&Ue(l,i.props),R||!a?(c+=P-e.matrix.e,h+=D-e.matrix.f):O||a!==i.parent?(u.renderTransform(1,u),T=C.getGlobalMatrix(n||l,!1,!1,!0),g=X.apply({x:T.e,y:T.f}),k=X.apply({x:P,y:D}),c+=k.x-g.x,h+=k.y-g.y):(X.e=X.f=0,k=X.apply({x:P-e.matrix.e,y:D-e.matrix.f}),c+=k.x,h+=k.y),c=q(c,.02),h=q(h,.02),s&&!(s instanceof $)?L&&L.revert():(u.x=c+"px",u.y=h+"px",u.renderTransform(1,u)),s&&(s.x=c,s.y=h,s.rotation=m,s.skewX=B,t?(s.scaleX=_,s.scaleY=v):(s.width=x,s.height=w)),s||u},ve=function(e,i){return e instanceof z?e:new z(e,i)},Ze=function(e,i,t){var r=e.idLookup[t],n=e.alt[t];return n.isVisible&&(!(i.getElementState(n.element)||n).isVisible||!r.isVisible)?n:r},ke=[],Ee="width,height,overflowX,overflowY".split(","),le,We=function(e){if(e!==le){var i=J.style,t=J.clientWidth===window.outerWidth,r=J.clientHeight===window.outerHeight,n=4;if(e&&(t||r)){for(;n--;)ke[n]=i[Ee[n]];t&&(i.width=J.clientWidth+"px",i.overflowY="hidden"),r&&(i.height=J.clientHeight+"px",i.overflowX="hidden"),le=e}else if(le){for(;n--;)ke[n]?i[Ee[n]]=ke[n]:i.removeProperty(qe(Ee[n]));le=e}}},Pe=function(e,i,t,r){e instanceof z&&i instanceof z||console.warn("Not a valid state object."),t=t||{};var n=t,s=n.clearProps,l=n.onEnter,u=n.onLeave,a=n.absolute,c=n.absoluteOnLeave,h=n.custom,x=n.delay,w=n.paused,_=n.repeat,v=n.repeatDelay,m=n.yoyo,y=n.toggleClass,L=n.nested,f=n.zIndex,V=n.scale,P=n.fade,D=n.stagger,O=n.spin,R=n.prune,B=("props"in t?t:e).props,g=ee(t,Re),k=A.timeline({delay:x,paused:w,repeat:_,repeatDelay:v,yoyo:m,data:"isFlip"}),G=g,X=[],T=[],d=[],oe=[],Ke=O===!0?1:O||0,Qe=typeof O=="function"?O:function(){return Ke},ge=e.interrupted||i.interrupted,Te=k[r!==1?"to":"from"],Z,S,Ae,N,M,E,K,Y,me,H,W,ye,I,F;for(S in i.idLookup)W=i.alt[S]?Ze(i,e,S):i.idLookup[S],M=W.element,H=e.idLookup[S],e.alt[S]&&M===H.element&&(e.alt[S].isVisible||!W.isVisible)&&(H=e.alt[S]),H?(E={t:M,b:H,a:W,sd:H.element===M?0:W.isVisible?1:-1},d.push(E),E.sd&&(E.sd<0&&(E.b=W,E.a=H),ge&&se(E.b,B?fe[B]:de),P&&d.push(E.swap={t:H.element,b:E.b,a:E.a,sd:-E.sd,swap:E})),M._flip=H.element._flip=b?b.timeline:k):W.isVisible&&(d.push({t:M,b:ee(W,{isVisible:1}),a:W,sd:0,entering:1}),M._flip=b?b.timeline:k);if(B&&(Ce[B]||Ne(B)).forEach(function(j){return g[j]=function(U){return d[U].a.props[j]}}),d.finalStates=me=[],ye=function(){for(pe(d),We(!0),N=0;N<d.length;N++)E=d[N],I=E.a,F=E.b,R&&!I.isDifferent(F)&&!E.entering?d.splice(N--,1):(M=E.t,L&&!(E.sd<0)&&N&&(I.matrix=C.getGlobalMatrix(M,!1,!1,!0)),F.isVisible&&I.isVisible?(E.sd<0?(K=new $(M,B,e.simple),te(K,I,V,0,0,K),K.matrix=C.getGlobalMatrix(M,!1,!1,!0),K.css=E.b.css,E.a=I=K,P&&(M.style.opacity=ge?F.opacity:I.opacity),D&&oe.push(M)):E.sd>0&&P&&(M.style.opacity=ge?I.opacity-F.opacity:"0"),te(I,F,V,B)):F.isVisible!==I.isVisible&&(F.isVisible?I.isVisible||(F.css=I.css,T.push(F),d.splice(N--,1),a&&L&&te(I,F,V,B)):(I.isVisible&&X.push(I),d.splice(N--,1))),V||(M.style.maxWidth=Math.max(I.width,F.width)+"px",M.style.maxHeight=Math.max(I.height,F.height)+"px",M.style.minWidth=Math.min(I.width,F.width)+"px",M.style.minHeight=Math.min(I.height,F.height)+"px"),L&&y&&M.classList.add(y)),me.push(I);var U;if(y&&(U=me.map(function(p){return p.element}),L&&U.forEach(function(p){return p.classList.remove(y)})),We(!1),V?(g.scaleX=function(p){return d[p].a.scaleX},g.scaleY=function(p){return d[p].a.scaleY}):(g.width=function(p){return d[p].a.width+"px"},g.height=function(p){return d[p].a.height+"px"},g.autoRound=t.autoRound||!1),g.x=function(p){return d[p].a.x+"px"},g.y=function(p){return d[p].a.y+"px"},g.rotation=function(p){return d[p].a.rotation+(O?Qe(p,Y[p],Y)*360:0)},g.skewX=function(p){return d[p].a.skewX},Y=d.map(function(p){return p.t}),(f||f===0)&&(g.modifiers={zIndex:function(){return f}},g.zIndex=f,g.immediateRender=t.immediateRender!==!1),P&&(g.opacity=function(p){return d[p].sd<0?0:d[p].sd>0?d[p].a.opacity:"+=0"}),oe.length){D=A.utils.distribute(D);var et=Y.slice(oe.length);g.stagger=function(p,Se){return D(~oe.indexOf(Se)?Y.indexOf(d[p].swap.t):p,Se,et)}}if(nt.forEach(function(p){return t[p]&&k.eventCallback(p,t[p],t[p+"Params"])}),h&&Y.length){G=ee(g,Re),"scale"in h&&(h.scaleX=h.scaleY=h.scale,delete h.scale);for(S in h)Z=ee(h[S],je),Z[S]=g[S],!("duration"in Z)&&"duration"in g&&(Z.duration=g.duration),Z.stagger=g.stagger,Te.call(k,Y,Z,0),delete G[S]}(Y.length||T.length||X.length)&&(y&&k.add(function(){return xe(U,y,k._zTime<0?"remove":"add")},0)&&!w&&xe(U,y,"add"),Y.length&&Te.call(k,Y,G,0)),He(l,X,k),He(u,T,k);var be=b&&b.timeline;be&&(be.add(k,0),b._final.push(function(){return Ye(d,!s)})),Ae=k.duration(),k.call(function(){var p=k.time()>=Ae;p&&!be&&Ye(d,!s),y&&xe(U,y,p?"remove":"add")})},c&&(a=d.filter(function(j){return!j.sd&&!j.a.isVisible&&j.b.isVisible}).map(function(j){return j.a.element})),b){var Fe;a&&(Fe=b._abs).push.apply(Fe,Ge(d,a)),b._run.push(ye)}else a&&Je(Ge(d,a)),ye();var _e=b?b.timeline:k;return _e.revert=function(){return Le(_e,1,1)},_e},ut=function o(e){e.vars.onInterrupt&&e.vars.onInterrupt.apply(e,e.vars.onInterruptParams||[]),e.getChildren(!0,!1,!0).forEach(o)},Le=function(e,i,t){if(e&&e.progress()<1&&(!e.paused()||t))return i&&(ut(e),i<2&&e.progress(1),e.kill()),!0},ue=function(e){for(var i=e.idLookup={},t=e.alt={},r=e.elementStates,n=r.length,s;n--;)s=r[n],i[s.id]?t[s.id]=s:i[s.id]=s},z=function(){function o(i,t,r){if(this.props=t&&t.props,this.simple=!!(t&&t.simple),r)this.targets=$e(i),this.elementStates=i,ue(this);else{this.targets=ie(i);var n=t&&(t.kill===!1||t.batch&&!t.kill);b&&!n&&b._kill.push(this),this.update(n||!!b)}}var e=o.prototype;return e.update=function(t){var r=this;return this.elementStates=this.targets.map(function(n){return new $(n,r.props,r.simple)}),ue(this),this.interrupt(t),this.recordInlineStyles(),this},e.clear=function(){return this.targets.length=this.elementStates.length=0,ue(this),this},e.fit=function(t,r,n){for(var s=pe(this.elementStates.slice(0),!1,!0),l=(t||this).idLookup,u=0,a,c;u<s.length;u++)a=s[u],n&&(a.matrix=C.getGlobalMatrix(a.element,!1,!1,!0)),c=l[a.id],c&&te(a,c,r,!0,0,a),a.matrix=C.getGlobalMatrix(a.element,!1,!1,!0);return this},e.getProperty=function(t,r){var n=this.getElementState(t)||he;return(r in n?n:n.props||he)[r]},e.add=function(t){for(var r=t.targets.length,n=this.idLookup,s=this.alt,l,u,a;r--;)u=t.elementStates[r],a=n[u.id],a&&(u.element===a.element||s[u.id]&&s[u.id].element===u.element)?(l=this.elementStates.indexOf(u.element===a.element?a:s[u.id]),this.targets.splice(l,1,t.targets[r]),this.elementStates.splice(l,1,u)):(this.targets.push(t.targets[r]),this.elementStates.push(u));return t.interrupted&&(this.interrupted=!0),t.simple||(this.simple=!1),ue(this),this},e.compare=function(t){var r=t.idLookup,n=this.idLookup,s=[],l=[],u=[],a=[],c=[],h=t.alt,x=this.alt,w=function(R,B,g){return(R.isVisible!==B.isVisible?R.isVisible?u:a:R.isVisible?l:s).push(g)&&c.push(g)},_=function(R,B,g){return c.indexOf(g)<0&&w(R,B,g)},v,m,y,L,f,V,P,D;for(y in r)f=h[y],V=x[y],v=f?Ze(t,this,y):r[y],L=v.element,m=n[y],V?(D=m.isVisible||!V.isVisible&&L===m.element?m:V,P=f&&!v.isVisible&&!f.isVisible&&D.element===f.element?f:v,P.isVisible&&D.isVisible&&P.element!==D.element?((P.isDifferent(D)?l:s).push(P.element,D.element),c.push(P.element,D.element)):w(P,D,P.element),f&&P.element===f.element&&(f=r[y]),_(P.element!==m.element&&f?f:P,m,m.element),_(f&&f.element===V.element?f:P,V,V.element),f&&_(f,V.element===f.element?V:m,f.element)):(m?m.isDifferent(v)?w(v,m,L):s.push(L):u.push(L),f&&_(f,m,f.element));for(y in n)r[y]||(a.push(n[y].element),x[y]&&a.push(x[y].element));return{changed:l,unchanged:s,enter:u,leave:a}},e.recordInlineStyles=function(){for(var t=fe[this.props]||de,r=this.elementStates.length;r--;)se(this.elementStates[r],t)},e.interrupt=function(t){var r=this,n=[];this.targets.forEach(function(s){var l=s._flip,u=Le(l,t?0:1);t&&u&&n.indexOf(l)<0&&l.add(function(){return r.updateVisibility()}),u&&n.push(l)}),!t&&n.length&&this.updateVisibility(),this.interrupted||(this.interrupted=!!n.length)},e.updateVisibility=function(){this.elementStates.forEach(function(t){var r=t.element.getBoundingClientRect();t.isVisible=!!(r.width||r.height||r.top||r.left),t.uncache=1})},e.getElementState=function(t){return this.elementStates[this.targets.indexOf(re(t))]},e.makeAbsolute=function(){return pe(this.elementStates.slice(0),!0,!0).map(De)},o}(),$=function(){function o(i,t,r){this.element=i,this.update(t,r)}var e=o.prototype;return e.isDifferent=function(t){var r=this.bounds,n=t.bounds;return r.top!==n.top||r.left!==n.left||r.width!==n.width||r.height!==n.height||!this.matrix.equals(t.matrix)||this.opacity!==t.opacity||this.props&&t.props&&JSON.stringify(this.props)!==JSON.stringify(t.props)},e.update=function(t,r){var n=this,s=n.element,l=A.getProperty(s),u=A.core.getCache(s),a=s.getBoundingClientRect(),c=s.getBBox&&typeof s.getBBox=="function"&&s.nodeName.toLowerCase()!=="svg"&&s.getBBox(),h=r?new C.Matrix2D(1,0,0,1,a.left+C._getDocScrollLeft(),a.top+C._getDocScrollTop()):C.getGlobalMatrix(s,!1,!1,!0);u.uncache=1,n.getProp=l,n.element=s,n.id=lt(s),n.matrix=h,n.cache=u,n.bounds=a,n.isVisible=!!(a.width||a.height||a.left||a.top),n.display=l("display"),n.position=l("position"),n.parent=s.parentNode,n.x=l("x"),n.y=l("y"),n.scaleX=u.scaleX,n.scaleY=u.scaleY,n.rotation=l("rotation"),n.skewX=l("skewX"),n.opacity=l("opacity"),n.width=c?c.width:q(l("width","px"),.04),n.height=c?c.height:q(l("height","px"),.04),t&&ot(n,Ce[t]||Ne(t)),n.ctm=s.getCTM&&s.nodeName.toLowerCase()==="svg"&&C._getCTM(s).inverse(),n.simple=r||Q(h.a)===1&&!Q(h.b)&&!Q(h.c)&&Q(h.d)===1,n.uncache=0},o}(),ht=function(){function o(i,t){this.vars=i,this.batch=t,this.states=[],this.timeline=t.timeline}var e=o.prototype;return e.getStateById=function(t){for(var r=this.states.length;r--;)if(this.states[r].idLookup[t])return this.states[r]},e.kill=function(){this.batch.remove(this)},o}(),pt=function(){function o(i){this.id=i,this.actions=[],this._kill=[],this._final=[],this._abs=[],this._run=[],this.data={},this.state=new z,this.timeline=A.timeline()}var e=o.prototype;return e.add=function(t){var r=this.actions.filter(function(n){return n.vars===t});return r.length?r[0]:(r=new ht(typeof t=="function"?{animate:t}:t,this),this.actions.push(r),r)},e.remove=function(t){var r=this.actions.indexOf(t);return r>=0&&this.actions.splice(r,1),this},e.getState=function(t){var r=this,n=b,s=ne;return b=this,this.state.clear(),this._kill.length=0,this.actions.forEach(function(l){l.vars.getState&&(l.states.length=0,ne=l,l.state=l.vars.getState(l)),t&&l.states.forEach(function(u){return r.state.add(u)})}),ne=s,b=n,this.killConflicts(),this},e.animate=function(){var t=this,r=b,n=this.timeline,s=this.actions.length,l,u;for(b=this,n.clear(),this._abs.length=this._final.length=this._run.length=0,this.actions.forEach(function(a){a.vars.animate&&a.vars.animate(a);var c=a.vars.onEnter,h=a.vars.onLeave,x=a.targets,w,_;x&&x.length&&(c||h)&&(w=new z,a.states.forEach(function(v){return w.add(v)}),_=w.compare(ae.getState(x)),_.enter.length&&c&&c(_.enter),_.leave.length&&h&&h(_.leave))}),Je(this._abs),this._run.forEach(function(a){return a()}),u=n.duration(),l=this._final.slice(0),n.add(function(){u<=n.time()&&(l.forEach(function(a){return a()}),Xe(t,"onComplete"))}),b=r;s--;)this.actions[s].vars.once&&this.actions[s].kill();return Xe(this,"onStart"),n.restart(),this},e.loadState=function(t){t||(t=function(){return 0});var r=[];return this.actions.forEach(function(n){if(n.vars.loadState){var s,l=function u(a){a&&(n.targets=a),s=r.indexOf(u),~s&&(r.splice(s,1),r.length||t())};r.push(l),n.vars.loadState(l)}}),r.length||t(),this},e.setState=function(){return this.actions.forEach(function(t){return t.targets=t.vars.setState&&t.vars.setState(t)}),this},e.killConflicts=function(t){return this.state.interrupt(t),this._kill.forEach(function(r){return r.interrupt(t)}),this},e.run=function(t,r){var n=this;return this!==b&&(t||this.getState(r),this.loadState(function(){n._killed||(n.setState(),n.animate())})),this},e.clear=function(t){this.state.clear(),t||(this.actions.length=0)},e.getStateById=function(t){for(var r=this.actions.length,n;r--;)if(n=this.actions[r].getStateById(t),n)return n;return this.state.idLookup[t]&&this.state},e.kill=function(){this._killed=1,this.clear(),delete Me[this.id]},o}(),ae=function(){function o(){}return o.getState=function(i,t){var r=ve(i,t);return ne&&ne.states.push(r),t&&t.batch&&o.batch(t.batch).state.add(r),r},o.from=function(i,t){return t=t||{},"clearProps"in t||(t.clearProps=!0),Pe(i,ve(t.targets||i.targets,{props:t.props||i.props,simple:t.simple,kill:!!t.kill}),t,-1)},o.to=function(i,t){return Pe(i,ve(t.targets||i.targets,{props:t.props||i.props,simple:t.simple,kill:!!t.kill}),t,1)},o.fromTo=function(i,t,r){return Pe(i,t,r)},o.fit=function(i,t,r){var n=r?ee(r,je):{},s=r||n,l=s.absolute,u=s.scale,a=s.getVars,c=s.props,h=s.runBackwards,x=s.onComplete,w=s.simple,_=r&&r.fitChild&&re(r.fitChild),v=Ve(t,c,w,i),m=Ve(i,0,w,v),y=c?fe[c]:de,L=A.context();return c&&Ue(n,v.props),se(m,y),h&&("immediateRender"in n||(n.immediateRender=!0),n.onComplete=function(){ce(m),x&&x.apply(this,arguments)}),l&&De(m,v),n=te(m,v,u||_,!n.duration&&c,_,n.duration||a?n:0),typeof r=="object"&&"zIndex"in r&&(n.zIndex=r.zIndex),L&&!a&&L.add(function(){return function(){return ce(m)}}),a?n:n.duration?A.to(m.element,n):null},o.makeAbsolute=function(i,t){return(i instanceof z?i:new z(i,t)).makeAbsolute()},o.batch=function(i){return i||(i="default"),Me[i]||(Me[i]=new pt(i))},o.killFlipsOf=function(i,t){(i instanceof z?i.targets:ie(i)).forEach(function(r){return r&&Le(r._flip,t!==!1?1:2)})},o.isFlipping=function(i){var t=o.getByTarget(i);return!!t&&t.isActive()},o.getByTarget=function(i){return(re(i)||he)._flip},o.getElementState=function(i,t){return new $(re(i),t)},o.convertCoordinates=function(i,t,r){var n=C.getGlobalMatrix(t,!0,!0).multiply(C.getGlobalMatrix(i));return r?n.apply(r):n},o.register=function(i){if(J=typeof document<"u"&&document.body,J){A=i,C._setDoc(J),ie=A.utils.toArray,Ie=A.core.getStyleSaver;var t=A.utils.snap(.1);q=function(n,s){return t(parseFloat(n)+s)}}},o}();ae.version="3.13.0";typeof window<"u"&&window.gsap&&window.gsap.registerPlugin(ae);exports.Flip=ae;exports.default=ae;
|