@zenpatient-org/healthspan-marketing-ui 0.1.155 → 0.1.156

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.
@@ -5,7 +5,7 @@ import { Button as K } from "../../components/Button/Button.es.js";
5
5
  import { Typography as f } from "../../components/Typography/Typography.es.js";
6
6
  import { Icon as W } from "../../components/Icon/Icon.es.js";
7
7
  import { EIconName as B } from "../../components/Icon/constants.es.js";
8
- import { HighlightedTitle as L } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
8
+ import { HighlightedTitle as V } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
9
9
  import { gsap as a } from "../../node_modules/gsap/index.es.js";
10
10
  import { useGSAP as J } from "../../node_modules/@gsap/react/src/index.es.js";
11
11
  import { ScrollTrigger as q } from "../../node_modules/gsap/ScrollTrigger.es.js";
@@ -15,7 +15,7 @@ a.registerPlugin(q);
15
15
  const ce = ({
16
16
  subtitle: x,
17
17
  titleTop: X,
18
- scrollableLabels: V,
18
+ scrollableLabels: w,
19
19
  titleBottom: _,
20
20
  description: z,
21
21
  hsaText: F,
@@ -23,10 +23,10 @@ const ce = ({
23
23
  buttonLink: h,
24
24
  backgroundImage: j
25
25
  }) => {
26
- const d = l(null), o = l(null), w = l(null), y = l(null), b = l(null), S = l(null), g = l(null), v = l(null), N = l(null);
26
+ const d = l(null), o = l(null), L = l(null), y = l(null), b = l(null), S = l(null), g = l(null), v = l(null), N = l(null);
27
27
  return J(() => {
28
- var k, M, A;
29
- const u = d.current && d.current.getBoundingClientRect().top < window.innerHeight * 0.8, m = (k = w.current) == null ? void 0 : k.querySelector("p"), T = (M = S.current) == null ? void 0 : M.querySelector("p"), D = [
28
+ var M, k, A;
29
+ const u = d.current && d.current.getBoundingClientRect().top < window.innerHeight * 0.8, m = (M = L.current) == null ? void 0 : M.querySelector("p"), T = (k = S.current) == null ? void 0 : k.querySelector("p"), D = [
30
30
  m,
31
31
  y.current,
32
32
  o.current,
@@ -85,12 +85,12 @@ const ce = ({
85
85
  if (n.length <= 1) return;
86
86
  const R = n[0].clientHeight;
87
87
  if (!R) return;
88
- a.set(o.current, { height: R, overflow: "hidden" });
88
+ a.set(o.current, { height: () => R, overflow: "hidden" });
89
89
  const I = Array.from(n);
90
90
  I.forEach((P) => {
91
91
  t.appendChild(P.cloneNode(!0));
92
92
  });
93
- const $ = E && !u ? 2.5 : 0;
93
+ const $ = E && !u ? 0.3 : 0;
94
94
  i = a.timeline({
95
95
  repeat: -1,
96
96
  delay: $,
@@ -109,12 +109,12 @@ const ce = ({
109
109
  var n;
110
110
  window.removeEventListener("resize", c), (n = c.kill) == null || n.call(c), i && i.kill(), t && (t.innerHTML = C, a.set(t, { y: 0 }));
111
111
  };
112
- }, [V]), /* @__PURE__ */ s("section", { ref: d, className: r.root, children: [
112
+ }, [w]), /* @__PURE__ */ s("section", { ref: d, className: r.root, children: [
113
113
  /* @__PURE__ */ e("div", { className: r.backgroundImage, style: { backgroundImage: `url(${j})` } }),
114
114
  /* @__PURE__ */ s("div", { className: r.container, children: [
115
115
  /* @__PURE__ */ e("div", { className: r.leftContent, children: /* @__PURE__ */ s("div", { className: r.content, children: [
116
116
  /* @__PURE__ */ e("div", { ref: y, children: /* @__PURE__ */ e(
117
- L,
117
+ V,
118
118
  {
119
119
  defaultVariant: "displayXl",
120
120
  mobileVariant: "displayMd",
@@ -123,9 +123,9 @@ const ce = ({
123
123
  title: X
124
124
  }
125
125
  ) }),
126
- /* @__PURE__ */ e("div", { ref: o, className: r.scrollableLabelsWrapper, children: /* @__PURE__ */ e("ul", { className: r.scrollableLabels, children: V.map((u, m) => /* @__PURE__ */ e("li", { className: r.scrollableLabel, children: /* @__PURE__ */ e(f, { defaultVariant: "displayXl", mobileVariant: "displayMd", as: "span", children: u }) }, m)) }) }),
126
+ /* @__PURE__ */ e("div", { ref: o, className: r.scrollableLabelsWrapper, children: /* @__PURE__ */ e("ul", { className: r.scrollableLabels, children: w.map((u, m) => /* @__PURE__ */ e("li", { className: r.scrollableLabel, children: /* @__PURE__ */ e(f, { defaultVariant: "displayXl", mobileVariant: "displayMd", as: "span", children: u }) }, m)) }) }),
127
127
  /* @__PURE__ */ e("div", { ref: b, children: /* @__PURE__ */ e(
128
- L,
128
+ V,
129
129
  {
130
130
  defaultVariant: "displayXl",
131
131
  mobileVariant: "displayMd",
@@ -135,8 +135,8 @@ const ce = ({
135
135
  }
136
136
  ) })
137
137
  ] }) }),
138
- /* @__PURE__ */ e("div", { ref: w, className: r.subtitleWrapper, children: /* @__PURE__ */ e(
139
- L,
138
+ /* @__PURE__ */ e("div", { ref: L, className: r.subtitleWrapper, children: /* @__PURE__ */ e(
139
+ V,
140
140
  {
141
141
  defaultVariant: "labelMd",
142
142
  mobileVariant: "labelSm",
@@ -145,11 +145,21 @@ const ce = ({
145
145
  title: x
146
146
  }
147
147
  ) }),
148
- /* @__PURE__ */ e("div", { ref: S, className: r.arrowWrapper, children: /* @__PURE__ */ s(f, { defaultVariant: "labelXl", mobileVariant: "labelLg", className: r.arrow, as: "p", children: [
149
- "(",
150
- /* @__PURE__ */ e(W, { name: B.ARROW_FORWARD }),
151
- ")"
152
- ] }) }),
148
+ /* @__PURE__ */ e("div", { ref: S, className: r.arrowWrapper, children: /* @__PURE__ */ s(
149
+ f,
150
+ {
151
+ defaultVariant: "labelMd",
152
+ mobileVariant: "labelXs",
153
+ emphasis: !0,
154
+ className: r.arrow,
155
+ as: "p",
156
+ children: [
157
+ "(",
158
+ /* @__PURE__ */ e(W, { name: B.ARROW_FORWARD }),
159
+ ")"
160
+ ]
161
+ }
162
+ ) }),
153
163
  /* @__PURE__ */ e("div", { className: r.rightContent, children: /* @__PURE__ */ s("div", { className: r.descriptionWrapper, children: [
154
164
  /* @__PURE__ */ e("div", { ref: g, children: /* @__PURE__ */ e(
155
165
  f,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("../../components/Callback/Callback.cjs.js"),s=require("../../components/Icon/Icon.cjs.js"),n=require("../../components/Icon/constants.cjs.js"),l=require("../../components/Typography/Typography.cjs.js"),c=require("./callback.module.css.cjs.js"),r=[{icon:n.EIconName.HEART,description:"No hidden fees"},{icon:n.EIconName.PROTOCOLS,description:"Personalized Protocols"},{icon:n.EIconName.PACKAGE,description:"Free Shipping"},{icon:n.EIconName.MESSAGE,description:"Doctor & Clinical Team"}];function t({callback:a}){return e.jsx("section",{className:c.default.root,children:e.jsx("div",{className:c.default.container,children:e.jsxs("div",{className:c.default.content,children:[e.jsx(i.Callback,{...a}),e.jsx("div",{className:c.default.icons,children:r.map(o=>e.jsxs("div",{className:c.default.icon,children:[e.jsx(s.Icon,{name:o.icon}),e.jsx(l.Typography,{defaultVariant:"labelXl",children:o.description})]},o.description))})]})})})}exports.CallbackModule=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("../../components/Callback/Callback.cjs.js"),u=require("../../components/Icon/Icon.cjs.js"),n=require("../../components/Icon/constants.cjs.js"),p=require("../../components/Typography/Typography.cjs.js"),c=require("./callback.module.css.cjs.js"),m=[{icon:n.EIconName.HEART,description:"No hidden fees"},{icon:n.EIconName.PROTOCOLS,description:"Personalized Protocols"},{icon:n.EIconName.PACKAGE,description:"Free Shipping"},{icon:n.EIconName.MESSAGE,description:"Doctor & Clinical Team"}];function h({title:a,description:i,price:s,signupUrl:r,image:l,size:t}){return e.jsx("section",{className:c.default.root,children:e.jsx("div",{className:c.default.container,children:e.jsxs("div",{className:c.default.content,children:[e.jsx(d.Callback,{title:a,description:i,price:s??"",image:l,button:{href:r,as:"a"},size:t}),e.jsx("div",{className:c.default.icons,children:m.map(o=>e.jsxs("div",{className:c.default.icon,children:[e.jsx(u.Icon,{name:o.icon}),e.jsx(p.Typography,{defaultVariant:"labelXl",children:o.description})]},o.description))})]})})})}exports.CallbackModule=h;
@@ -1,6 +1,11 @@
1
- import { CallbackProps } from '../../components/Callback';
1
+ import { CallbackSize } from '../../components/Callback';
2
2
 
3
3
  export type CallbackModuleProps = {
4
- callback: CallbackProps;
4
+ title: string;
5
+ description: string;
6
+ price: string | null;
7
+ signupUrl: string;
8
+ image: string;
9
+ size: CallbackSize;
5
10
  };
6
- export declare function CallbackModule({ callback }: CallbackModuleProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare function CallbackModule({ title, description, price, signupUrl, image, size }: CallbackModuleProps): import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,10 @@
1
1
  import { jsx as o, jsxs as r } from "react/jsx-runtime";
2
- import { Callback as s } from "../../components/Callback/Callback.es.js";
3
- import { Icon as a } from "../../components/Icon/Icon.es.js";
2
+ import { Callback as m } from "../../components/Callback/Callback.es.js";
3
+ import { Icon as p } from "../../components/Icon/Icon.es.js";
4
4
  import { EIconName as c } from "../../components/Icon/constants.es.js";
5
- import { Typography as l } from "../../components/Typography/Typography.es.js";
5
+ import { Typography as f } from "../../components/Typography/Typography.es.js";
6
6
  import i from "./callback.module.css.es.js";
7
- const t = [
7
+ const h = [
8
8
  {
9
9
  icon: c.HEART,
10
10
  description: "No hidden fees"
@@ -22,15 +22,28 @@ const t = [
22
22
  description: "Doctor & Clinical Team"
23
23
  }
24
24
  ];
25
- function E({ callback: e }) {
25
+ function b({ title: e, description: a, price: s, signupUrl: t, image: l, size: d }) {
26
26
  return /* @__PURE__ */ o("section", { className: i.root, children: /* @__PURE__ */ o("div", { className: i.container, children: /* @__PURE__ */ r("div", { className: i.content, children: [
27
- /* @__PURE__ */ o(s, { ...e }),
28
- /* @__PURE__ */ o("div", { className: i.icons, children: t.map((n) => /* @__PURE__ */ r("div", { className: i.icon, children: [
29
- /* @__PURE__ */ o(a, { name: n.icon }),
30
- /* @__PURE__ */ o(l, { defaultVariant: "labelXl", children: n.description })
27
+ /* @__PURE__ */ o(
28
+ m,
29
+ {
30
+ title: e,
31
+ description: a,
32
+ price: s ?? "",
33
+ image: l,
34
+ button: {
35
+ href: t,
36
+ as: "a"
37
+ },
38
+ size: d
39
+ }
40
+ ),
41
+ /* @__PURE__ */ o("div", { className: i.icons, children: h.map((n) => /* @__PURE__ */ r("div", { className: i.icon, children: [
42
+ /* @__PURE__ */ o(p, { name: n.icon }),
43
+ /* @__PURE__ */ o(f, { defaultVariant: "labelXl", children: n.description })
31
44
  ] }, n.description)) })
32
45
  ] }) }) });
33
46
  }
34
47
  export {
35
- E as CallbackModule
48
+ b as CallbackModule
36
49
  };
@@ -0,0 +1,8 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const T=require("./utils/paths.cjs.js");/*!
2
+ * CustomEase 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 d,O,q=function(){return d||typeof window<"u"&&(d=window.gsap)&&d.registerPlugin&&d},j=function(){d=q(),d?(d.registerEase("_CE",E.create),O=1):console.warn("Please gsap.registerPlugin(CustomEase)")},I=1e20,C=function(n){return~~(n*1e3+(n<0?-.5:.5))/1e3},R=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi,k=/[cLlsSaAhHvVtTqQ]/g,v=function(n){var m=n.length,e=I,r;for(r=1;r<m;r+=6)+n[r]<e&&(e=+n[r]);return e},H=function(n,m,e){!e&&e!==0&&(e=Math.max(+n[n.length-1],+n[1]));var r=+n[0]*-1,o=-e,c=n.length,i=1/(+n[c-2]+r),s=-m||(Math.abs(+n[c-1]-+n[1])<.01*(+n[c-2]-+n[0])?v(n)+o:+n[c-1]+o),y;for(s?s=1/s:s=-i,y=0;y<c;y+=2)n[y]=(+n[y]+r)*i,n[y+1]=(+n[y+1]+o)*s},L=function g(n,m,e,r,o,c,i,s,y,u,a){var x=(n+e)/2,_=(m+r)/2,t=(e+o)/2,M=(r+c)/2,l=(o+i)/2,f=(c+s)/2,h=(x+t)/2,p=(_+M)/2,w=(t+l)/2,P=(M+f)/2,D=(h+w)/2,G=(p+P)/2,b=i-n,S=s-m,V=Math.abs((e-i)*S-(r-s)*b),A=Math.abs((o-i)*S-(c-s)*b),z;return u||(u=[{x:n,y:m},{x:i,y:s}],a=1),u.splice(a||u.length-1,0,{x:D,y:G}),(V+A)*(V+A)>y*(b*b+S*S)&&(z=u.length,g(n,m,x,_,h,p,D,G,y,u,a),g(D,G,w,P,l,f,i,s,y,u,a+1+(u.length-z))),u},E=function(){function g(m,e,r){O||j(),this.id=m,this.setData(e,r)}var n=g.prototype;return n.setData=function(e,r){r=r||{},e=e||"0,0,1,1";var o=e.match(R),c=1,i=[],s=[],y=r.precision||1,u=y<=1,a,x,_,t,M,l,f,h,p;if(this.data=e,(k.test(e)||~e.indexOf("M")&&e.indexOf("C")<0)&&(o=T.stringToRawPath(e)[0]),a=o.length,a===4)o.unshift(0,0),o.push(1,1),a=8;else if((a-2)%6)throw"Invalid CustomEase";for((+o[0]!=0||+o[a-2]!=1)&&H(o,r.height,r.originY),this.segment=o,t=2;t<a;t+=6)x={x:+o[t-2],y:+o[t-1]},_={x:+o[t+4],y:+o[t+5]},i.push(x,_),L(x.x,x.y,+o[t],+o[t+1],+o[t+2],+o[t+3],_.x,_.y,1/(y*2e5),i,i.length-1);for(a=i.length,t=0;t<a;t++)f=i[t],h=i[t-1]||f,(f.x>h.x||h.y!==f.y&&h.x===f.x||f===h)&&f.x<=1?(h.cx=f.x-h.x,h.cy=f.y-h.y,h.n=f,h.nx=f.x,u&&t>1&&Math.abs(h.cy/h.cx-i[t-2].cy/i[t-2].cx)>2&&(u=0),h.cx<c&&(h.cx?c=h.cx:(h.cx=.001,t===a-1&&(h.x-=.001,c=Math.min(c,.001),u=0)))):(i.splice(t--,1),a--);if(a=1/c+1|0,M=1/a,l=0,f=i[0],u){for(t=0;t<a;t++)p=t*M,f.nx<p&&(f=i[++l]),x=f.y+(p-f.x)/f.cx*f.cy,s[t]={x:p,cx:M,y:x,cy:0,nx:9},t&&(s[t-1].cy=x-s[t-1].y);l=i[i.length-1],s[a-1].cy=l.y-x,s[a-1].cx=l.x-s[s.length-1].x}else{for(t=0;t<a;t++)f.nx<t*M&&(f=i[++l]),s[t]=f;l<i.length-1&&(s[t-1]=i[i.length-2])}return this.ease=function(w){var P=s[w*a|0]||s[a-1];return P.nx<w&&(P=P.n),P.y+(w-P.x)/P.cx*P.cy},this.ease.custom=this,this.id&&d&&d.registerEase(this.id,this.ease),this},n.getSVGData=function(e){return g.getSVGData(this,e)},g.create=function(e,r,o){return new g(e,r,o).ease},g.register=function(e){d=e,j()},g.get=function(e){return d.parseEase(e)},g.getSVGData=function(e,r){r=r||{};var o=r.width||100,c=r.height||100,i=r.x||0,s=(r.y||0)+c,y=d.utils.toArray(r.path)[0],u,a,x,_,t,M,l,f,h,p;if(r.invert&&(c=-c,s=0),typeof e=="string"&&(e=d.parseEase(e)),e.custom&&(e=e.custom),e instanceof g)u=T.rawPathToString(T.transformRawPath([e.segment],o,0,0,-c,i,s));else{for(u=[i,s],l=Math.max(5,(r.precision||1)*200),_=1/l,l+=2,f=5/l,h=C(i+_*o),p=C(s+e(_)*-c),a=(p-s)/(h-i),x=2;x<l;x++)t=C(i+x*_*o),M=C(s+e(x*_)*-c),(Math.abs((M-p)/(t-h)-a)>f||x===l-1)&&(u.push(h,p),a=(M-p)/(t-h)),h=t,p=M;u="M"+u.join(",")}return y&&y.setAttribute("d",u),u},g}();E.version="3.13.0";E.headless=!0;q()&&d.registerPlugin(E);exports.CustomEase=E;exports.default=E;
@@ -0,0 +1,106 @@
1
+ import { stringToRawPath as O, rawPathToString as R, transformRawPath as k } from "./utils/paths.es.js";
2
+ /*!
3
+ * CustomEase 3.13.0
4
+ * https://gsap.com
5
+ *
6
+ * @license Copyright 2008-2025, GreenSock. All rights reserved.
7
+ * Subject to the terms at https://gsap.com/standard-license
8
+ * @author: Jack Doyle, jack@greensock.com
9
+ */
10
+ var d, j, I = function() {
11
+ return d || typeof window < "u" && (d = window.gsap) && d.registerPlugin && d;
12
+ }, z = function() {
13
+ d = I(), d ? (d.registerEase("_CE", C.create), j = 1) : console.warn("Please gsap.registerPlugin(CustomEase)");
14
+ }, q = 1e20, S = function(r) {
15
+ return ~~(r * 1e3 + (r < 0 ? -0.5 : 0.5)) / 1e3;
16
+ }, H = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi, L = /[cLlsSaAhHvVtTqQ]/g, N = function(r) {
17
+ var l = r.length, e = q, n;
18
+ for (n = 1; n < l; n += 6)
19
+ +r[n] < e && (e = +r[n]);
20
+ return e;
21
+ }, Q = function(r, l, e) {
22
+ !e && e !== 0 && (e = Math.max(+r[r.length - 1], +r[1]));
23
+ var n = +r[0] * -1, h = -e, c = r.length, i = 1 / (+r[c - 2] + n), s = -l || (Math.abs(+r[c - 1] - +r[1]) < 0.01 * (+r[c - 2] - +r[0]) ? N(r) + h : +r[c - 1] + h), y;
24
+ for (s ? s = 1 / s : s = -i, y = 0; y < c; y += 2)
25
+ r[y] = (+r[y] + n) * i, r[y + 1] = (+r[y + 1] + h) * s;
26
+ }, X = function g(r, l, e, n, h, c, i, s, y, x, f) {
27
+ var u = (r + e) / 2, _ = (l + n) / 2, t = (e + h) / 2, P = (n + c) / 2, m = (h + i) / 2, a = (c + s) / 2, o = (u + t) / 2, p = (_ + P) / 2, M = (t + m) / 2, w = (P + a) / 2, D = (o + M) / 2, G = (p + w) / 2, E = i - r, b = s - l, V = Math.abs((e - i) * b - (n - s) * E), A = Math.abs((h - i) * b - (c - s) * E), T;
28
+ return x || (x = [{
29
+ x: r,
30
+ y: l
31
+ }, {
32
+ x: i,
33
+ y: s
34
+ }], f = 1), x.splice(f || x.length - 1, 0, {
35
+ x: D,
36
+ y: G
37
+ }), (V + A) * (V + A) > y * (E * E + b * b) && (T = x.length, g(r, l, u, _, o, p, D, G, y, x, f), g(D, G, M, w, m, a, i, s, y, x, f + 1 + (x.length - T))), x;
38
+ }, C = /* @__PURE__ */ function() {
39
+ function g(l, e, n) {
40
+ j || z(), this.id = l, this.setData(e, n);
41
+ }
42
+ var r = g.prototype;
43
+ return r.setData = function(e, n) {
44
+ n = n || {}, e = e || "0,0,1,1";
45
+ var h = e.match(H), c = 1, i = [], s = [], y = n.precision || 1, x = y <= 1, f, u, _, t, P, m, a, o, p;
46
+ if (this.data = e, (L.test(e) || ~e.indexOf("M") && e.indexOf("C") < 0) && (h = O(e)[0]), f = h.length, f === 4)
47
+ h.unshift(0, 0), h.push(1, 1), f = 8;
48
+ else if ((f - 2) % 6)
49
+ throw "Invalid CustomEase";
50
+ for ((+h[0] != 0 || +h[f - 2] != 1) && Q(h, n.height, n.originY), this.segment = h, t = 2; t < f; t += 6)
51
+ u = {
52
+ x: +h[t - 2],
53
+ y: +h[t - 1]
54
+ }, _ = {
55
+ x: +h[t + 4],
56
+ y: +h[t + 5]
57
+ }, i.push(u, _), X(u.x, u.y, +h[t], +h[t + 1], +h[t + 2], +h[t + 3], _.x, _.y, 1 / (y * 2e5), i, i.length - 1);
58
+ for (f = i.length, t = 0; t < f; t++)
59
+ a = i[t], o = i[t - 1] || a, (a.x > o.x || o.y !== a.y && o.x === a.x || a === o) && a.x <= 1 ? (o.cx = a.x - o.x, o.cy = a.y - o.y, o.n = a, o.nx = a.x, x && t > 1 && Math.abs(o.cy / o.cx - i[t - 2].cy / i[t - 2].cx) > 2 && (x = 0), o.cx < c && (o.cx ? c = o.cx : (o.cx = 1e-3, t === f - 1 && (o.x -= 1e-3, c = Math.min(c, 1e-3), x = 0)))) : (i.splice(t--, 1), f--);
60
+ if (f = 1 / c + 1 | 0, P = 1 / f, m = 0, a = i[0], x) {
61
+ for (t = 0; t < f; t++)
62
+ p = t * P, a.nx < p && (a = i[++m]), u = a.y + (p - a.x) / a.cx * a.cy, s[t] = {
63
+ x: p,
64
+ cx: P,
65
+ y: u,
66
+ cy: 0,
67
+ nx: 9
68
+ }, t && (s[t - 1].cy = u - s[t - 1].y);
69
+ m = i[i.length - 1], s[f - 1].cy = m.y - u, s[f - 1].cx = m.x - s[s.length - 1].x;
70
+ } else {
71
+ for (t = 0; t < f; t++)
72
+ a.nx < t * P && (a = i[++m]), s[t] = a;
73
+ m < i.length - 1 && (s[t - 1] = i[i.length - 2]);
74
+ }
75
+ return this.ease = function(M) {
76
+ var w = s[M * f | 0] || s[f - 1];
77
+ return w.nx < M && (w = w.n), w.y + (M - w.x) / w.cx * w.cy;
78
+ }, this.ease.custom = this, this.id && d && d.registerEase(this.id, this.ease), this;
79
+ }, r.getSVGData = function(e) {
80
+ return g.getSVGData(this, e);
81
+ }, g.create = function(e, n, h) {
82
+ return new g(e, n, h).ease;
83
+ }, g.register = function(e) {
84
+ d = e, z();
85
+ }, g.get = function(e) {
86
+ return d.parseEase(e);
87
+ }, g.getSVGData = function(e, n) {
88
+ n = n || {};
89
+ var h = n.width || 100, c = n.height || 100, i = n.x || 0, s = (n.y || 0) + c, y = d.utils.toArray(n.path)[0], x, f, u, _, t, P, m, a, o, p;
90
+ if (n.invert && (c = -c, s = 0), typeof e == "string" && (e = d.parseEase(e)), e.custom && (e = e.custom), e instanceof g)
91
+ x = R(k([e.segment], h, 0, 0, -c, i, s));
92
+ else {
93
+ for (x = [i, s], m = Math.max(5, (n.precision || 1) * 200), _ = 1 / m, m += 2, a = 5 / m, o = S(i + _ * h), p = S(s + e(_) * -c), f = (p - s) / (o - i), u = 2; u < m; u++)
94
+ t = S(i + u * _ * h), P = S(s + e(u * _) * -c), (Math.abs((P - p) / (t - o) - f) > a || u === m - 1) && (x.push(o, p), f = (P - p) / (t - o)), o = t, p = P;
95
+ x = "M" + x.join(",");
96
+ }
97
+ return y && y.setAttribute("d", x), x;
98
+ }, g;
99
+ }();
100
+ C.version = "3.13.0";
101
+ C.headless = !0;
102
+ I() && d.registerPlugin(C);
103
+ export {
104
+ C as CustomEase,
105
+ C as default
106
+ };
@@ -0,0 +1,8 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*!
2
+ * paths 3.13.0
3
+ * https://gsap.com
4
+ *
5
+ * 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 x=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,ee=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig,te=Math.PI/180,V=Math.sin,W=Math.cos,Z=Math.abs,D=Math.sqrt,ie=function(n){return typeof n=="number"},B=1e5,I=function(n){return Math.round(n*B)/B||0};function ne(h,n,o,e,i,u,g){for(var R=h.length,v,t,l,f,r;--R>-1;)for(v=h[R],t=v.length,l=0;l<t;l+=2)f=v[l],r=v[l+1],v[l]=f*n+r*e+u,v[l+1]=f*o+r*i+g;return h._dirty=1,h}function se(h,n,o,e,i,u,g,R,v){if(!(h===R&&n===v)){o=Z(o),e=Z(e);var t=i%360*te,l=W(t),f=V(t),r=Math.PI,a=r*2,N=(h-R)/2,s=(n-v)/2,d=l*N+f*s,p=-f*N+l*s,c=d*d,m=p*p,C=c/(o*o)+m/(e*e);C>1&&(o=D(C)*o,e=D(C)*e);var L=o*o,M=e*e,T=(L*M-L*m-M*c)/(L*m+M*c);T<0&&(T=0);var j=(u===g?-1:1)*D(T),E=j*(o*p/e),b=j*-(e*d/o),k=(h+R)/2,z=(n+v)/2,O=k+(l*E-f*b),J=z+(f*E+l*b),q=(d-E)/o,S=(p-b)/e,G=(-d-E)/o,H=(-p-b)/e,X=q*q+S*S,Y=(S<0?-1:1)*Math.acos(q/D(X)),P=(q*H-S*G<0?-1:1)*Math.acos((q*G+S*H)/D(X*(G*G+H*H)));isNaN(P)&&(P=r),!g&&P>0?P-=a:g&&P<0&&(P+=a),Y%=a,P%=a;var w=Math.ceil(Z(P)/(a/4)),A=[],Q=P/w,U=4/3*V(Q/2)/(1+W(Q/2)),K=l*o,$=f*o,F=f*-e,y=l*e,_;for(_=0;_<w;_++)i=Y+_*Q,d=W(i),p=V(i),q=W(i+=Q),S=V(i),A.push(d-U*p,p+U*d,q+U*S,S-U*q,q,S);for(_=0;_<A.length;_+=2)d=A[_],p=A[_+1],A[_]=d*K+p*F+O,A[_+1]=d*$+p*y+J;return A[_-2]=R,A[_-1]=v,A}}function fe(h){var n=(h+"").replace(ee,function(E){var b=+E;return b<1e-4&&b>-1e-4?0:b}).match(x)||[],o=[],e=0,i=0,u=2/3,g=n.length,R=0,v="ERROR: malformed path: "+h,t,l,f,r,a,N,s,d,p,c,m,C,L,M,T,j=function(b,k,z,O){c=(z-b)/3,m=(O-k)/3,s.push(b+c,k+m,z-c,O-m,z,O)};if(!h||!isNaN(n[0])||isNaN(n[1]))return console.log(v),o;for(t=0;t<g;t++)if(L=a,isNaN(n[t])?(a=n[t].toUpperCase(),N=a!==n[t]):t--,f=+n[t+1],r=+n[t+2],N&&(f+=e,r+=i),t||(d=f,p=r),a==="M")s&&(s.length<8?o.length-=1:R+=s.length),e=d=f,i=p=r,s=[f,r],o.push(s),t+=2,a="L";else if(a==="C")s||(s=[0,0]),N||(e=i=0),s.push(f,r,e+n[t+3]*1,i+n[t+4]*1,e+=n[t+5]*1,i+=n[t+6]*1),t+=6;else if(a==="S")c=e,m=i,(L==="C"||L==="S")&&(c+=e-s[s.length-4],m+=i-s[s.length-3]),N||(e=i=0),s.push(c,m,f,r,e+=n[t+3]*1,i+=n[t+4]*1),t+=4;else if(a==="Q")c=e+(f-e)*u,m=i+(r-i)*u,N||(e=i=0),e+=n[t+3]*1,i+=n[t+4]*1,s.push(c,m,e+(f-e)*u,i+(r-i)*u,e,i),t+=4;else if(a==="T")c=e-s[s.length-4],m=i-s[s.length-3],s.push(e+c,i+m,f+(e+c*1.5-f)*u,r+(i+m*1.5-r)*u,e=f,i=r),t+=2;else if(a==="H")j(e,i,e=f,i),t+=1;else if(a==="V")j(e,i,e,i=f+(N?i-e:0)),t+=1;else if(a==="L"||a==="Z")a==="Z"&&(f=d,r=p,s.closed=!0),(a==="L"||Z(e-f)>.5||Z(i-r)>.5)&&(j(e,i,f,r),a==="L"&&(t+=2)),e=f,i=r;else if(a==="A"){if(M=n[t+4],T=n[t+5],c=n[t+6],m=n[t+7],l=7,M.length>1&&(M.length<3?(m=c,c=T,l--):(m=T,c=M.substr(2),l-=2),T=M.charAt(1),M=M.charAt(0)),C=se(e,i,+n[t+1],+n[t+2],+n[t+3],+M,+T,(N?e:0)+c*1,(N?i:0)+m*1),t+=l,C)for(l=0;l<C.length;l++)s.push(C[l]);e=s[s.length-2],i=s[s.length-1]}else console.log(v);return t=s.length,t<6?(o.pop(),t=0):s[0]===s[t-2]&&s[1]===s[t-1]&&(s.closed=!0),o.totalPoints=R+t,o}function oe(h){ie(h[0])&&(h=[h]);var n="",o=h.length,e,i,u,g;for(i=0;i<o;i++){for(g=h[i],n+="M"+I(g[0])+","+I(g[1])+" C",e=g.length,u=2;u<e;u++)n+=I(g[u++])+","+I(g[u++])+" "+I(g[u++])+","+I(g[u++])+" "+I(g[u++])+","+I(g[u])+" ";g.closed&&(n+="z")}return n}exports.rawPathToString=oe;exports.stringToRawPath=fe;exports.transformRawPath=ne;
@@ -0,0 +1,86 @@
1
+ /*!
2
+ * paths 3.13.0
3
+ * https://gsap.com
4
+ *
5
+ * 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
+ */
9
+ var y = /[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig, ee = /[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig, te = Math.PI / 180, V = Math.sin, W = Math.cos, Z = Math.abs, O = Math.sqrt, ie = function(n) {
10
+ return typeof n == "number";
11
+ }, J = 1e5, S = function(n) {
12
+ return Math.round(n * J) / J || 0;
13
+ };
14
+ function se(a, n, l, e, i, u, g) {
15
+ for (var q = a.length, v, t, o, f, h; --q > -1; )
16
+ for (v = a[q], t = v.length, o = 0; o < t; o += 2)
17
+ f = v[o], h = v[o + 1], v[o] = f * n + h * e + u, v[o + 1] = f * l + h * i + g;
18
+ return a._dirty = 1, a;
19
+ }
20
+ function ne(a, n, l, e, i, u, g, q, v) {
21
+ if (!(a === q && n === v)) {
22
+ l = Z(l), e = Z(e);
23
+ var t = i % 360 * te, o = W(t), f = V(t), h = Math.PI, r = h * 2, N = (a - q) / 2, s = (n - v) / 2, d = o * N + f * s, p = -f * N + o * s, c = d * d, m = p * p, L = c / (l * l) + m / (e * e);
24
+ L > 1 && (l = O(L) * l, e = O(L) * e);
25
+ var E = l * l, M = e * e, R = (E * M - E * m - M * c) / (E * m + M * c);
26
+ R < 0 && (R = 0);
27
+ var P = (u === g ? -1 : 1) * O(R), z = P * (l * p / e), b = P * -(e * d / l), k = (a + q) / 2, j = (n + v) / 2, D = k + (o * z - f * b), K = j + (f * z + o * b), A = (d - z) / l, C = (p - b) / e, G = (-d - z) / l, H = (-p - b) / e, X = A * A + C * C, Y = (C < 0 ? -1 : 1) * Math.acos(A / O(X)), T = (A * H - C * G < 0 ? -1 : 1) * Math.acos((A * G + C * H) / O(X * (G * G + H * H)));
28
+ isNaN(T) && (T = h), !g && T > 0 ? T -= r : g && T < 0 && (T += r), Y %= r, T %= r;
29
+ var B = Math.ceil(Z(T) / (r / 4)), I = [], Q = T / B, U = 4 / 3 * V(Q / 2) / (1 + W(Q / 2)), $ = o * l, F = f * l, w = f * -e, x = o * e, _;
30
+ for (_ = 0; _ < B; _++)
31
+ i = Y + _ * Q, d = W(i), p = V(i), A = W(i += Q), C = V(i), I.push(d - U * p, p + U * d, A + U * C, C - U * A, A, C);
32
+ for (_ = 0; _ < I.length; _ += 2)
33
+ d = I[_], p = I[_ + 1], I[_] = d * $ + p * w + D, I[_ + 1] = d * F + p * x + K;
34
+ return I[_ - 2] = q, I[_ - 1] = v, I;
35
+ }
36
+ }
37
+ function fe(a) {
38
+ var n = (a + "").replace(ee, function(z) {
39
+ var b = +z;
40
+ return b < 1e-4 && b > -1e-4 ? 0 : b;
41
+ }).match(y) || [], l = [], e = 0, i = 0, u = 2 / 3, g = n.length, q = 0, v = "ERROR: malformed path: " + a, t, o, f, h, r, N, s, d, p, c, m, L, E, M, R, P = function(b, k, j, D) {
42
+ c = (j - b) / 3, m = (D - k) / 3, s.push(b + c, k + m, j - c, D - m, j, D);
43
+ };
44
+ if (!a || !isNaN(n[0]) || isNaN(n[1]))
45
+ return console.log(v), l;
46
+ for (t = 0; t < g; t++)
47
+ if (E = r, isNaN(n[t]) ? (r = n[t].toUpperCase(), N = r !== n[t]) : t--, f = +n[t + 1], h = +n[t + 2], N && (f += e, h += i), t || (d = f, p = h), r === "M")
48
+ s && (s.length < 8 ? l.length -= 1 : q += s.length), e = d = f, i = p = h, s = [f, h], l.push(s), t += 2, r = "L";
49
+ else if (r === "C")
50
+ s || (s = [0, 0]), N || (e = i = 0), s.push(f, h, e + n[t + 3] * 1, i + n[t + 4] * 1, e += n[t + 5] * 1, i += n[t + 6] * 1), t += 6;
51
+ else if (r === "S")
52
+ c = e, m = i, (E === "C" || E === "S") && (c += e - s[s.length - 4], m += i - s[s.length - 3]), N || (e = i = 0), s.push(c, m, f, h, e += n[t + 3] * 1, i += n[t + 4] * 1), t += 4;
53
+ else if (r === "Q")
54
+ c = e + (f - e) * u, m = i + (h - i) * u, N || (e = i = 0), e += n[t + 3] * 1, i += n[t + 4] * 1, s.push(c, m, e + (f - e) * u, i + (h - i) * u, e, i), t += 4;
55
+ else if (r === "T")
56
+ c = e - s[s.length - 4], m = i - s[s.length - 3], s.push(e + c, i + m, f + (e + c * 1.5 - f) * u, h + (i + m * 1.5 - h) * u, e = f, i = h), t += 2;
57
+ else if (r === "H")
58
+ P(e, i, e = f, i), t += 1;
59
+ else if (r === "V")
60
+ P(e, i, e, i = f + (N ? i - e : 0)), t += 1;
61
+ else if (r === "L" || r === "Z")
62
+ r === "Z" && (f = d, h = p, s.closed = !0), (r === "L" || Z(e - f) > 0.5 || Z(i - h) > 0.5) && (P(e, i, f, h), r === "L" && (t += 2)), e = f, i = h;
63
+ else if (r === "A") {
64
+ if (M = n[t + 4], R = n[t + 5], c = n[t + 6], m = n[t + 7], o = 7, M.length > 1 && (M.length < 3 ? (m = c, c = R, o--) : (m = R, c = M.substr(2), o -= 2), R = M.charAt(1), M = M.charAt(0)), L = ne(e, i, +n[t + 1], +n[t + 2], +n[t + 3], +M, +R, (N ? e : 0) + c * 1, (N ? i : 0) + m * 1), t += o, L)
65
+ for (o = 0; o < L.length; o++)
66
+ s.push(L[o]);
67
+ e = s[s.length - 2], i = s[s.length - 1];
68
+ } else
69
+ console.log(v);
70
+ return t = s.length, t < 6 ? (l.pop(), t = 0) : s[0] === s[t - 2] && s[1] === s[t - 1] && (s.closed = !0), l.totalPoints = q + t, l;
71
+ }
72
+ function le(a) {
73
+ ie(a[0]) && (a = [a]);
74
+ var n = "", l = a.length, e, i, u, g;
75
+ for (i = 0; i < l; i++) {
76
+ for (g = a[i], n += "M" + S(g[0]) + "," + S(g[1]) + " C", e = g.length, u = 2; u < e; u++)
77
+ n += S(g[u++]) + "," + S(g[u++]) + " " + S(g[u++]) + "," + S(g[u++]) + " " + S(g[u++]) + "," + S(g[u]) + " ";
78
+ g.closed && (n += "z");
79
+ }
80
+ return n;
81
+ }
82
+ export {
83
+ le as rawPathToString,
84
+ fe as stringToRawPath,
85
+ se as transformRawPath
86
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenpatient-org/healthspan-marketing-ui",
3
- "version": "0.1.155",
3
+ "version": "0.1.156",
4
4
  "description": "Design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",