@zenpatient-org/healthspan-marketing-ui 0.1.5 → 0.1.6
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/Button/Button.d.ts +5 -1
- package/dist/components/ProductGalleryCard/ProductGalleryCard.d.ts +16 -0
- package/dist/components/ProductGalleryCard/index.d.ts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/healthspan-ui.es.js +399 -345
- package/dist/healthspan-ui.es.js.map +1 -1
- package/dist/healthspan-ui.umd.js +5 -5
- package/dist/healthspan-ui.umd.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/modules/YourProtocol/YourProtocol.d.ts +2 -11
- package/dist/modules/YourProtocol/components/ProtocolTags/ProtocolTags.d.ts +7 -0
- package/dist/modules/YourProtocol/components/ProtocolTags/index.d.ts +1 -0
- package/dist/modules/YourProtocol/types.d.ts +10 -0
- package/dist/utils/formatUnits.d.ts +1 -0
- package/package.json +5 -1
package/dist/healthspan-ui.es.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
displayXl:
|
|
5
|
-
displayLg:
|
|
6
|
-
displayMd:
|
|
7
|
-
displaySm:
|
|
8
|
-
displayXs:
|
|
9
|
-
headingXl:
|
|
1
|
+
import * as f from "react";
|
|
2
|
+
import he, { memo as fe, useState as oe, useLayoutEffect as ve, createElement as ye, forwardRef as Re, useMemo as we } from "react";
|
|
3
|
+
const ke = "typography-module__displayXl___dx4Dh", Te = "typography-module__displayLg___3BQI2", je = "typography-module__displayMd___-bNBw", xe = "typography-module__displaySm___BswNI", Ae = "typography-module__displayXs___jcmVJ", Ce = "typography-module__headingXl___nAQFD", Se = "typography-module__headingLg___Idt-Z", Le = "typography-module__headingMd___c-Q0B", Ee = "typography-module__headingSm___Q6zoR", Oe = "typography-module__headingXs___fwDFl", Pe = "typography-module__headingXxs___ghw1N", Me = "typography-module__preambleMd___CbYgI", Ne = "typography-module__preambleSm___yKGjq", We = "typography-module__bodyXl___m92AP", Xe = "typography-module__bodyLg___Fz-Fo", $e = "typography-module__bodyMd___aH0Ph", Fe = "typography-module__bodySm___4-7TJ", De = "typography-module__bodyXs___uTpSs", Be = "typography-module__linkLg___xVngm", Ge = "typography-module__linkMd___82MQD", He = "typography-module__linkSm___LZ94B", Ye = "typography-module__linkXs___-6Kd5", Ue = "typography-module__labelXl___jmHEl", Ve = "typography-module__labelLg___31xPj", Ie = "typography-module__labelMd___e3ni6", Je = "typography-module__labelSm___AsYEH", ze = "typography-module__labelXs___zgCHL", Ze = "typography-module__labelEmphasis___nbkyG", qe = "typography-module__weightRegular___F3ND2", Qe = "typography-module__weightMedium___XpDfI", h = {
|
|
4
|
+
displayXl: ke,
|
|
5
|
+
displayLg: Te,
|
|
6
|
+
displayMd: je,
|
|
7
|
+
displaySm: xe,
|
|
8
|
+
displayXs: Ae,
|
|
9
|
+
headingXl: Ce,
|
|
10
10
|
headingLg: Se,
|
|
11
|
-
headingMd:
|
|
12
|
-
headingSm:
|
|
13
|
-
headingXs:
|
|
14
|
-
headingXxs:
|
|
15
|
-
preambleMd:
|
|
16
|
-
preambleSm:
|
|
17
|
-
bodyXl:
|
|
18
|
-
bodyLg:
|
|
19
|
-
bodyMd:
|
|
20
|
-
bodySm:
|
|
11
|
+
headingMd: Le,
|
|
12
|
+
headingSm: Ee,
|
|
13
|
+
headingXs: Oe,
|
|
14
|
+
headingXxs: Pe,
|
|
15
|
+
preambleMd: Me,
|
|
16
|
+
preambleSm: Ne,
|
|
17
|
+
bodyXl: We,
|
|
18
|
+
bodyLg: Xe,
|
|
19
|
+
bodyMd: $e,
|
|
20
|
+
bodySm: Fe,
|
|
21
21
|
bodyXs: De,
|
|
22
|
-
linkLg:
|
|
23
|
-
linkMd:
|
|
24
|
-
linkSm:
|
|
25
|
-
linkXs:
|
|
26
|
-
labelXl:
|
|
27
|
-
labelLg:
|
|
28
|
-
labelMd:
|
|
29
|
-
labelSm:
|
|
30
|
-
labelXs:
|
|
31
|
-
labelEmphasis:
|
|
32
|
-
weightRegular:
|
|
33
|
-
weightMedium:
|
|
22
|
+
linkLg: Be,
|
|
23
|
+
linkMd: Ge,
|
|
24
|
+
linkSm: He,
|
|
25
|
+
linkXs: Ye,
|
|
26
|
+
labelXl: Ue,
|
|
27
|
+
labelLg: Ve,
|
|
28
|
+
labelMd: Ie,
|
|
29
|
+
labelSm: Je,
|
|
30
|
+
labelXs: ze,
|
|
31
|
+
labelEmphasis: Ze,
|
|
32
|
+
weightRegular: qe,
|
|
33
|
+
weightMedium: Qe
|
|
34
34
|
};
|
|
35
|
-
var
|
|
35
|
+
var W = { exports: {} }, E = {};
|
|
36
36
|
/**
|
|
37
37
|
* @license React
|
|
38
38
|
* react-jsx-runtime.production.js
|
|
@@ -42,29 +42,29 @@ var L = { exports: {} }, S = {};
|
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/
|
|
45
|
-
var
|
|
46
|
-
function
|
|
47
|
-
if (
|
|
48
|
-
|
|
49
|
-
var e = Symbol.for("react.transitional.element"),
|
|
50
|
-
function
|
|
51
|
-
var
|
|
52
|
-
if (
|
|
53
|
-
|
|
45
|
+
var q;
|
|
46
|
+
function Ke() {
|
|
47
|
+
if (q) return E;
|
|
48
|
+
q = 1;
|
|
49
|
+
var e = Symbol.for("react.transitional.element"), s = Symbol.for("react.fragment");
|
|
50
|
+
function n(c, r, l) {
|
|
51
|
+
var i = null;
|
|
52
|
+
if (l !== void 0 && (i = "" + l), r.key !== void 0 && (i = "" + r.key), "key" in r) {
|
|
53
|
+
l = {};
|
|
54
54
|
for (var d in r)
|
|
55
|
-
d !== "key" && (
|
|
56
|
-
} else
|
|
57
|
-
return r =
|
|
55
|
+
d !== "key" && (l[d] = r[d]);
|
|
56
|
+
} else l = r;
|
|
57
|
+
return r = l.ref, {
|
|
58
58
|
$$typeof: e,
|
|
59
|
-
type:
|
|
60
|
-
key:
|
|
59
|
+
type: c,
|
|
60
|
+
key: i,
|
|
61
61
|
ref: r !== void 0 ? r : null,
|
|
62
|
-
props:
|
|
62
|
+
props: l
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
return
|
|
65
|
+
return E.Fragment = s, E.jsx = n, E.jsxs = n, E;
|
|
66
66
|
}
|
|
67
|
-
var
|
|
67
|
+
var O = {};
|
|
68
68
|
/**
|
|
69
69
|
* @license React
|
|
70
70
|
* react-jsx-runtime.development.js
|
|
@@ -74,42 +74,42 @@ var x = {};
|
|
|
74
74
|
* This source code is licensed under the MIT license found in the
|
|
75
75
|
* LICENSE file in the root directory of this source tree.
|
|
76
76
|
*/
|
|
77
|
-
var
|
|
78
|
-
function
|
|
79
|
-
return
|
|
77
|
+
var Q;
|
|
78
|
+
function eo() {
|
|
79
|
+
return Q || (Q = 1, process.env.NODE_ENV !== "production" && function() {
|
|
80
80
|
function e(o) {
|
|
81
81
|
if (o == null) return null;
|
|
82
82
|
if (typeof o == "function")
|
|
83
|
-
return o.$$typeof ===
|
|
83
|
+
return o.$$typeof === pe ? null : o.displayName || o.name || null;
|
|
84
84
|
if (typeof o == "string") return o;
|
|
85
85
|
switch (o) {
|
|
86
|
-
case
|
|
86
|
+
case X:
|
|
87
87
|
return "Fragment";
|
|
88
|
-
case
|
|
88
|
+
case ne:
|
|
89
89
|
return "Profiler";
|
|
90
|
-
case
|
|
90
|
+
case se:
|
|
91
91
|
return "StrictMode";
|
|
92
|
-
case
|
|
92
|
+
case _e:
|
|
93
93
|
return "Suspense";
|
|
94
|
-
case ce:
|
|
95
|
-
return "SuspenseList";
|
|
96
94
|
case de:
|
|
95
|
+
return "SuspenseList";
|
|
96
|
+
case me:
|
|
97
97
|
return "Activity";
|
|
98
98
|
}
|
|
99
99
|
if (typeof o == "object")
|
|
100
100
|
switch (typeof o.tag == "number" && console.error(
|
|
101
101
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
102
102
|
), o.$$typeof) {
|
|
103
|
-
case
|
|
103
|
+
case ae:
|
|
104
104
|
return "Portal";
|
|
105
|
-
case
|
|
105
|
+
case ie:
|
|
106
106
|
return (o.displayName || "Context") + ".Provider";
|
|
107
|
-
case se:
|
|
108
|
-
return (o._context.displayName || "Context") + ".Consumer";
|
|
109
107
|
case le:
|
|
108
|
+
return (o._context.displayName || "Context") + ".Consumer";
|
|
109
|
+
case ce:
|
|
110
110
|
var a = o.render;
|
|
111
111
|
return o = o.displayName, o || (o = a.displayName || a.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
|
|
112
|
-
case
|
|
112
|
+
case ue:
|
|
113
113
|
return a = o.displayName || null, a !== null ? a : e(o.type) || "Memo";
|
|
114
114
|
case Y:
|
|
115
115
|
a = o._payload, o = o._init;
|
|
@@ -120,12 +120,12 @@ function Ie() {
|
|
|
120
120
|
}
|
|
121
121
|
return null;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function s(o) {
|
|
124
124
|
return "" + o;
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function n(o) {
|
|
127
127
|
try {
|
|
128
|
-
|
|
128
|
+
s(o);
|
|
129
129
|
var a = !1;
|
|
130
130
|
} catch {
|
|
131
131
|
a = !0;
|
|
@@ -137,11 +137,11 @@ function Ie() {
|
|
|
137
137
|
a,
|
|
138
138
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
139
139
|
u
|
|
140
|
-
),
|
|
140
|
+
), s(o);
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
if (o ===
|
|
143
|
+
function c(o) {
|
|
144
|
+
if (o === X) return "<>";
|
|
145
145
|
if (typeof o == "object" && o !== null && o.$$typeof === Y)
|
|
146
146
|
return "<...>";
|
|
147
147
|
try {
|
|
@@ -152,14 +152,14 @@ function Ie() {
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
function r() {
|
|
155
|
-
var o =
|
|
155
|
+
var o = $.A;
|
|
156
156
|
return o === null ? null : o.getOwner();
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function l() {
|
|
159
159
|
return Error("react-stack-top-frame");
|
|
160
160
|
}
|
|
161
|
-
function
|
|
162
|
-
if (
|
|
161
|
+
function i(o) {
|
|
162
|
+
if (U.call(o, "key")) {
|
|
163
163
|
var a = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
164
164
|
if (a && a.isReactWarning) return !1;
|
|
165
165
|
}
|
|
@@ -177,22 +177,22 @@ function Ie() {
|
|
|
177
177
|
configurable: !0
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function S() {
|
|
181
181
|
var o = e(this.type);
|
|
182
|
-
return
|
|
182
|
+
return I[o] || (I[o] = !0, console.error(
|
|
183
183
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
184
184
|
)), o = this.props.ref, o !== void 0 ? o : null;
|
|
185
185
|
}
|
|
186
|
-
function
|
|
187
|
-
return _ =
|
|
188
|
-
$$typeof:
|
|
186
|
+
function L(o, a, _, u, y, g, D, B) {
|
|
187
|
+
return _ = g.ref, o = {
|
|
188
|
+
$$typeof: H,
|
|
189
189
|
type: o,
|
|
190
190
|
key: a,
|
|
191
|
-
props:
|
|
192
|
-
_owner:
|
|
191
|
+
props: g,
|
|
192
|
+
_owner: y
|
|
193
193
|
}, (_ !== void 0 ? _ : null) !== null ? Object.defineProperty(o, "ref", {
|
|
194
194
|
enumerable: !1,
|
|
195
|
-
get:
|
|
195
|
+
get: S
|
|
196
196
|
}) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
|
|
197
197
|
configurable: !1,
|
|
198
198
|
enumerable: !1,
|
|
@@ -207,33 +207,33 @@ function Ie() {
|
|
|
207
207
|
configurable: !1,
|
|
208
208
|
enumerable: !1,
|
|
209
209
|
writable: !0,
|
|
210
|
-
value:
|
|
210
|
+
value: D
|
|
211
211
|
}), Object.defineProperty(o, "_debugTask", {
|
|
212
212
|
configurable: !1,
|
|
213
213
|
enumerable: !1,
|
|
214
214
|
writable: !0,
|
|
215
|
-
value:
|
|
215
|
+
value: B
|
|
216
216
|
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function P(o, a, _, u, y, g, D, B) {
|
|
219
219
|
var m = a.children;
|
|
220
220
|
if (m !== void 0)
|
|
221
221
|
if (u)
|
|
222
|
-
if (
|
|
222
|
+
if (ge(m)) {
|
|
223
223
|
for (u = 0; u < m.length; u++)
|
|
224
|
-
|
|
224
|
+
M(m[u]);
|
|
225
225
|
Object.freeze && Object.freeze(m);
|
|
226
226
|
} else
|
|
227
227
|
console.error(
|
|
228
228
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
229
229
|
);
|
|
230
|
-
else
|
|
231
|
-
if (
|
|
230
|
+
else M(m);
|
|
231
|
+
if (U.call(a, "key")) {
|
|
232
232
|
m = e(o);
|
|
233
|
-
var T = Object.keys(a).filter(function(
|
|
234
|
-
return
|
|
233
|
+
var T = Object.keys(a).filter(function(be) {
|
|
234
|
+
return be !== "key";
|
|
235
235
|
});
|
|
236
|
-
u = 0 < T.length ? "{key: someKey, " + T.join(": ..., ") + ": ...}" : "{key: someKey}",
|
|
236
|
+
u = 0 < T.length ? "{key: someKey, " + T.join(": ..., ") + ": ...}" : "{key: someKey}", Z[m + u] || (T = 0 < T.length ? "{" + T.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
237
237
|
`A props object containing a "key" prop is being spread into JSX:
|
|
238
238
|
let props = %s;
|
|
239
239
|
<%s {...props} />
|
|
@@ -244,158 +244,102 @@ React keys must be passed directly to JSX without using spread:
|
|
|
244
244
|
m,
|
|
245
245
|
T,
|
|
246
246
|
m
|
|
247
|
-
),
|
|
247
|
+
), Z[m + u] = !0);
|
|
248
248
|
}
|
|
249
|
-
if (m = null, _ !== void 0 && (
|
|
249
|
+
if (m = null, _ !== void 0 && (n(_), m = "" + _), i(a) && (n(a.key), m = "" + a.key), "key" in a) {
|
|
250
250
|
_ = {};
|
|
251
|
-
for (var
|
|
252
|
-
|
|
251
|
+
for (var G in a)
|
|
252
|
+
G !== "key" && (_[G] = a[G]);
|
|
253
253
|
} else _ = a;
|
|
254
254
|
return m && d(
|
|
255
255
|
_,
|
|
256
256
|
typeof o == "function" ? o.displayName || o.name || "Unknown" : o
|
|
257
|
-
),
|
|
257
|
+
), L(
|
|
258
258
|
o,
|
|
259
259
|
m,
|
|
260
|
-
|
|
261
|
-
|
|
260
|
+
g,
|
|
261
|
+
y,
|
|
262
262
|
r(),
|
|
263
263
|
_,
|
|
264
|
-
|
|
265
|
-
|
|
264
|
+
D,
|
|
265
|
+
B
|
|
266
266
|
);
|
|
267
267
|
}
|
|
268
|
-
function
|
|
269
|
-
typeof o == "object" && o !== null && o.$$typeof ===
|
|
268
|
+
function M(o) {
|
|
269
|
+
typeof o == "object" && o !== null && o.$$typeof === H && o._store && (o._store.validated = 1);
|
|
270
270
|
}
|
|
271
|
-
var
|
|
271
|
+
var N = he, H = Symbol.for("react.transitional.element"), ae = Symbol.for("react.portal"), X = Symbol.for("react.fragment"), se = Symbol.for("react.strict_mode"), ne = Symbol.for("react.profiler"), le = Symbol.for("react.consumer"), ie = Symbol.for("react.context"), ce = Symbol.for("react.forward_ref"), _e = Symbol.for("react.suspense"), de = Symbol.for("react.suspense_list"), ue = Symbol.for("react.memo"), Y = Symbol.for("react.lazy"), me = Symbol.for("react.activity"), pe = Symbol.for("react.client.reference"), $ = N.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, U = Object.prototype.hasOwnProperty, ge = Array.isArray, F = console.createTask ? console.createTask : function() {
|
|
272
272
|
return null;
|
|
273
273
|
};
|
|
274
|
-
|
|
274
|
+
N = {
|
|
275
275
|
"react-stack-bottom-frame": function(o) {
|
|
276
276
|
return o();
|
|
277
277
|
}
|
|
278
278
|
};
|
|
279
|
-
var V,
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
)(),
|
|
283
|
-
|
|
284
|
-
var
|
|
285
|
-
return
|
|
279
|
+
var V, I = {}, J = N["react-stack-bottom-frame"].bind(
|
|
280
|
+
N,
|
|
281
|
+
l
|
|
282
|
+
)(), z = F(c(l)), Z = {};
|
|
283
|
+
O.Fragment = X, O.jsx = function(o, a, _, u, y) {
|
|
284
|
+
var g = 1e4 > $.recentlyCreatedOwnerStacks++;
|
|
285
|
+
return P(
|
|
286
286
|
o,
|
|
287
287
|
a,
|
|
288
288
|
_,
|
|
289
289
|
!1,
|
|
290
290
|
u,
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
291
|
+
y,
|
|
292
|
+
g ? Error("react-stack-top-frame") : J,
|
|
293
|
+
g ? F(c(o)) : z
|
|
294
294
|
);
|
|
295
|
-
},
|
|
296
|
-
var
|
|
297
|
-
return
|
|
295
|
+
}, O.jsxs = function(o, a, _, u, y) {
|
|
296
|
+
var g = 1e4 > $.recentlyCreatedOwnerStacks++;
|
|
297
|
+
return P(
|
|
298
298
|
o,
|
|
299
299
|
a,
|
|
300
300
|
_,
|
|
301
301
|
!0,
|
|
302
302
|
u,
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
303
|
+
y,
|
|
304
|
+
g ? Error("react-stack-top-frame") : J,
|
|
305
|
+
g ? F(c(o)) : z
|
|
306
306
|
);
|
|
307
307
|
};
|
|
308
|
-
}()),
|
|
308
|
+
}()), O;
|
|
309
309
|
}
|
|
310
|
-
var
|
|
311
|
-
function
|
|
312
|
-
return
|
|
310
|
+
var K;
|
|
311
|
+
function oo() {
|
|
312
|
+
return K || (K = 1, process.env.NODE_ENV === "production" ? W.exports = Ke() : W.exports = eo()), W.exports;
|
|
313
313
|
}
|
|
314
|
-
var t =
|
|
315
|
-
const
|
|
314
|
+
var t = oo();
|
|
315
|
+
const p = (...e) => e.map((n) => typeof n == "string" ? n : n ? Object.keys(n).filter((l) => n[l]).join(" ") : "").filter((n) => !!n).join(" "), C = ({
|
|
316
316
|
variant: e,
|
|
317
|
-
children:
|
|
318
|
-
className:
|
|
319
|
-
weight:
|
|
317
|
+
children: s,
|
|
318
|
+
className: n = "",
|
|
319
|
+
weight: c,
|
|
320
320
|
emphasis: r = !1,
|
|
321
|
-
as:
|
|
321
|
+
as: l = "span"
|
|
322
322
|
}) => {
|
|
323
|
-
const
|
|
324
|
-
let d =
|
|
325
|
-
r && !
|
|
326
|
-
const
|
|
327
|
-
return /* @__PURE__ */ t.jsx(
|
|
328
|
-
},
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
"primary-invert": "button-module__primary-invert___UQj7h",
|
|
332
|
-
secondary: oo,
|
|
333
|
-
muted: ro,
|
|
334
|
-
"muted-invert": "button-module__muted-invert___0nBJw",
|
|
335
|
-
ghost: to,
|
|
336
|
-
xs: ao,
|
|
337
|
-
sm: so,
|
|
338
|
-
md: no,
|
|
339
|
-
lg: lo,
|
|
340
|
-
disabled: io
|
|
341
|
-
}, co = be(({
|
|
342
|
-
variant: e = "primary",
|
|
343
|
-
size: l = "md",
|
|
344
|
-
as: s = "button",
|
|
345
|
-
disabled: i = !1,
|
|
346
|
-
children: r,
|
|
347
|
-
...c
|
|
348
|
-
}, n) => {
|
|
349
|
-
const d = O[e] || "", g = O[l] || "", k = i ? O.disabled : "";
|
|
350
|
-
return /* @__PURE__ */ t.jsx(
|
|
351
|
-
s,
|
|
352
|
-
{
|
|
353
|
-
ref: n,
|
|
354
|
-
...c,
|
|
355
|
-
className: b(
|
|
356
|
-
O.button,
|
|
357
|
-
d,
|
|
358
|
-
g,
|
|
359
|
-
k
|
|
360
|
-
),
|
|
361
|
-
disabled: i,
|
|
362
|
-
children: r
|
|
363
|
-
}
|
|
364
|
-
);
|
|
365
|
-
});
|
|
366
|
-
co.displayName = "Button";
|
|
367
|
-
const _o = "label-module__root___b704i", uo = {
|
|
368
|
-
root: _o
|
|
369
|
-
}, mo = {
|
|
370
|
-
sm: v.labelXs,
|
|
371
|
-
lg: v.labelSm
|
|
372
|
-
}, ar = ({ children: e, color: l, size: s = "sm" }) => /* @__PURE__ */ t.jsx(
|
|
373
|
-
"div",
|
|
374
|
-
{
|
|
375
|
-
className: b(
|
|
376
|
-
uo.root,
|
|
377
|
-
v.labelEmphasis,
|
|
378
|
-
mo[s]
|
|
379
|
-
),
|
|
380
|
-
"data-size": s,
|
|
381
|
-
"data-color": l,
|
|
382
|
-
children: e
|
|
383
|
-
}
|
|
384
|
-
), po = (e, l, s) => {
|
|
385
|
-
const i = e[l];
|
|
386
|
-
return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((r, c) => {
|
|
323
|
+
const i = h[e] || "";
|
|
324
|
+
let d = c;
|
|
325
|
+
r && !c && (d = "medium");
|
|
326
|
+
const S = d ? h[`weight${d.charAt(0).toUpperCase()}${d.slice(1)}`] : "", L = e.startsWith("label") && r ? h.labelEmphasis : "";
|
|
327
|
+
return /* @__PURE__ */ t.jsx(l, { className: p(i, S, L, n), children: s });
|
|
328
|
+
}, to = (e, s, n) => {
|
|
329
|
+
const c = e[s];
|
|
330
|
+
return c ? typeof c == "function" ? c() : Promise.resolve(c) : new Promise((r, l) => {
|
|
387
331
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
388
|
-
|
|
332
|
+
l.bind(
|
|
389
333
|
null,
|
|
390
334
|
new Error(
|
|
391
|
-
"Unknown variable dynamic import: " +
|
|
335
|
+
"Unknown variable dynamic import: " + s + (s.split("/").length !== n ? ". Note that variables only represent file names one level deep." : "")
|
|
392
336
|
)
|
|
393
337
|
)
|
|
394
338
|
);
|
|
395
339
|
});
|
|
396
340
|
};
|
|
397
|
-
var
|
|
398
|
-
const
|
|
341
|
+
var te = /* @__PURE__ */ ((e) => (e.ALERT_ERROR_FILL = "alert-error-fill", e.ALERT_ERROR = "alert-error", e.CHECK = "check", e.CIRCLE_CHECK_FILL = "circle-check-fill", e.CIRCLE_CHECK = "circle-check", e.CLOSE = "close", e.HELP = "help", e.INFO = "info", e.MENU = "menu", e.PLUS = "plus", e.REMOVE = "remove", e.SEARCH = "search", e.WARNING = "warning", e.ARROW_BACK = "arrow-back", e.ARROW_DOWNWARD = "arrow-downward", e.ARROW_FORWARD = "arrow-forward", e.ARROW_INSERT = "arrow-insert", e.ARROW_OUTWARD = "arrow-outward", e.ARROW_RETURN = "arrow-return", e.ARROW_UPWARD = "arrow-upward", e.CHEVRON_BACK = "chevron-back", e.CHEVRON_DOWN = "chevron-down", e.CHEVRON_FORWARD = "chevron-forward", e.CHEVRON_UP = "chevron-up", e.MESSAGE_FILL = "message-fill", e.MESSAGE = "message", e.CALENDAR = "calendar", e.CART = "cart", e.PACKAGE_FILL = "package-fill", e.PACKAGE = "package", e.SMILE_FILL = "smile-fill", e.SMILE = "smile", e.CIRCLE_DASH_FILL = "circle-dash-fill", e.CIRCLE_DASH = "circle-dash", e.PIN_DROP = "pin-drop", e.FILTER = "filter", e.COACHING = "coaching", e.LABS = "labs", e.MYSPAN = "myspan", e.OPTIMIZATIONS = "optimizations", e.PROTOCOLS = "protocols", e.RULER = "ruler", e.SCALE = "scale", e.FACEBOOK = "facebook", e.HEART_FILL = "heart-fill", e.HEART = "heart", e.INSTAGRAM = "instagram", e.STAR_FILL = "star-fill", e.STAR_HALF = "star-half", e.STAR_OUTLINE = "star-outline", e.STAR = "star", e.X = "x", e))(te || {});
|
|
342
|
+
const ro = {
|
|
399
343
|
"alert-error-fill": "action",
|
|
400
344
|
"alert-error": "action",
|
|
401
345
|
check: "action",
|
|
@@ -449,194 +393,304 @@ const go = {
|
|
|
449
393
|
star: "social",
|
|
450
394
|
x: "social"
|
|
451
395
|
};
|
|
452
|
-
function
|
|
453
|
-
return e ? Object.values(
|
|
396
|
+
function ao(e) {
|
|
397
|
+
return e ? Object.values(te).includes(e) : !1;
|
|
454
398
|
}
|
|
455
|
-
const
|
|
456
|
-
const [
|
|
457
|
-
return
|
|
399
|
+
const k = fe(({ name: e, className: s }) => {
|
|
400
|
+
const [n, c] = oe(null);
|
|
401
|
+
return ve(() => {
|
|
458
402
|
let r = !0;
|
|
459
|
-
return
|
|
460
|
-
r &&
|
|
403
|
+
return ao(e) && to(/* @__PURE__ */ Object.assign({ "../../icons/action/alert-error-fill.svg": () => import("./alert-error-fill-U8xX1bHm.mjs"), "../../icons/action/alert-error.svg": () => import("./alert-error-Cj1EJqVI.mjs"), "../../icons/action/check.svg": () => import("./check-DgSDfN0C.mjs"), "../../icons/action/circle-check-fill.svg": () => import("./circle-check-fill-BpCT79Im.mjs"), "../../icons/action/circle-check.svg": () => import("./circle-check-DHexNVPG.mjs"), "../../icons/action/close.svg": () => import("./close-xFwzmg9D.mjs"), "../../icons/action/help.svg": () => import("./help-CRE_5jm0.mjs"), "../../icons/action/info.svg": () => import("./info-BPzOhkwO.mjs"), "../../icons/action/menu.svg": () => import("./menu-wBs3KiRN.mjs"), "../../icons/action/plus.svg": () => import("./plus-a8IJH0Cb.mjs"), "../../icons/action/remove.svg": () => import("./remove-DjaRY7q_.mjs"), "../../icons/action/search.svg": () => import("./search-CH3bboSY.mjs"), "../../icons/action/warning.svg": () => import("./warning-DXASuaUB.mjs"), "../../icons/arrow/arrow-back.svg": () => import("./arrow-back-RB9oG9bb.mjs"), "../../icons/arrow/arrow-downward.svg": () => import("./arrow-downward-BZo-WiCP.mjs"), "../../icons/arrow/arrow-forward.svg": () => import("./arrow-forward-vO9RZVmB.mjs"), "../../icons/arrow/arrow-insert.svg": () => import("./arrow-insert-DERGBPT7.mjs"), "../../icons/arrow/arrow-outward.svg": () => import("./arrow-outward-DrIR5DwI.mjs"), "../../icons/arrow/arrow-return.svg": () => import("./arrow-return-8q22es7-.mjs"), "../../icons/arrow/arrow-upward.svg": () => import("./arrow-upward-DC1FfPA9.mjs"), "../../icons/arrow/chevron-back.svg": () => import("./chevron-back-DFWam-ts.mjs"), "../../icons/arrow/chevron-down.svg": () => import("./chevron-down-BwRGeXBx.mjs"), "../../icons/arrow/chevron-forward.svg": () => import("./chevron-forward-DiyG4R25.mjs"), "../../icons/arrow/chevron-up.svg": () => import("./chevron-up-OrVl2KYe.mjs"), "../../icons/chat/message-fill.svg": () => import("./message-fill-34t0rhm0.mjs"), "../../icons/chat/message.svg": () => import("./message-CJ_CwgNl.mjs"), "../../icons/eCommerce/calendar.svg": () => import("./calendar-B-r7jdWd.mjs"), "../../icons/eCommerce/cart.svg": () => import("./cart-DPCejEA4.mjs"), "../../icons/eCommerce/package-fill.svg": () => import("./package-fill-DJC-nVX4.mjs"), "../../icons/eCommerce/package.svg": () => import("./package-Cojp3ziE.mjs"), "../../icons/faces/smile-fill.svg": () => import("./smile-fill-BZ1FEIkr.mjs"), "../../icons/faces/smile.svg": () => import("./smile-DWJE9lLu.mjs"), "../../icons/global/filter.svg": () => import("./filter-Bb2_rnBk.mjs"), "../../icons/global/pin-drop.svg": () => import("./pin-drop-CjDxWRyc.mjs"), "../../icons/indicators/circle-dash-fill.svg": () => import("./circle-dash-fill-B15ve9gd.mjs"), "../../icons/indicators/circle-dash.svg": () => import("./circle-dash-C0Qv0BFy.mjs"), "../../icons/map/pin-drop.svg": () => import("./pin-drop-Cynj8Kyw.mjs"), "../../icons/medical/coaching.svg": () => import("./coaching-ZyIaz-XN.mjs"), "../../icons/medical/labs.svg": () => import("./labs-C5ACTgZS.mjs"), "../../icons/medical/myspan.svg": () => import("./myspan-BtBinWuo.mjs"), "../../icons/medical/optimizations.svg": () => import("./optimizations-CFu6WZmF.mjs"), "../../icons/medical/protocols.svg": () => import("./protocols-DioVdawg.mjs"), "../../icons/medical/ruler.svg": () => import("./ruler-DHuaS0jU.mjs"), "../../icons/medical/scale.svg": () => import("./scale-CN9HwBjw.mjs"), "../../icons/social/facebook.svg": () => import("./facebook-DV78ip19.mjs"), "../../icons/social/heart-fill.svg": () => import("./heart-fill-BVOsSRde.mjs"), "../../icons/social/heart.svg": () => import("./heart-D7sVKHkl.mjs"), "../../icons/social/instagram.svg": () => import("./instagram-D3uUNPQP.mjs"), "../../icons/social/star-fill.svg": () => import("./star-fill-CSTfd32v.mjs"), "../../icons/social/star-half.svg": () => import("./star-half-BF2SarPm.mjs"), "../../icons/social/star-outline.svg": () => import("./star-outline-CYXUJP23.mjs"), "../../icons/social/star.svg": () => import("./star-BUndwhBG.mjs"), "../../icons/social/x.svg": () => import("./x-BXPNdkKc.mjs") }), `../../icons/${ro[e]}/${e}.svg`, 5).then((l) => {
|
|
404
|
+
r && c(l);
|
|
461
405
|
}), () => {
|
|
462
406
|
r = !1;
|
|
463
407
|
};
|
|
464
|
-
}, [e]),
|
|
465
|
-
}),
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
408
|
+
}, [e]), n ? ye(n.default, { className: s }) : /* @__PURE__ */ t.jsx("div", { className: s, children: "💡" });
|
|
409
|
+
}), so = "button-module__button___JyfZW", no = "button-module__primary___ggjlO", lo = "button-module__secondary___Q4I1z", io = "button-module__muted___DbVhc", co = "button-module__ghost___Dp7F-", _o = "button-module__xs___hb8XV", uo = "button-module__sm___nin2b", mo = "button-module__md___0nyD0", po = "button-module__lg___UZ-tP", go = "button-module__disabled___S7XlI", bo = "button-module__content___FFCUI", ho = "button-module__iconWrap___PI655", w = {
|
|
410
|
+
button: so,
|
|
411
|
+
primary: no,
|
|
412
|
+
"primary-invert": "button-module__primary-invert___UQj7h",
|
|
413
|
+
secondary: lo,
|
|
414
|
+
muted: io,
|
|
415
|
+
"muted-invert": "button-module__muted-invert___0nBJw",
|
|
416
|
+
ghost: co,
|
|
417
|
+
xs: _o,
|
|
418
|
+
sm: uo,
|
|
419
|
+
md: mo,
|
|
420
|
+
lg: po,
|
|
421
|
+
disabled: go,
|
|
422
|
+
content: bo,
|
|
423
|
+
iconWrap: ho
|
|
424
|
+
}, re = Re(({
|
|
425
|
+
variant: e = "primary",
|
|
426
|
+
size: s = "md",
|
|
427
|
+
as: n = "button",
|
|
428
|
+
disabled: c = !1,
|
|
429
|
+
children: r,
|
|
430
|
+
prefixIcon: l,
|
|
431
|
+
suffixIcon: i,
|
|
432
|
+
...d
|
|
433
|
+
}, S) => {
|
|
434
|
+
const L = w[e] || "", P = w[s] || "", M = c ? w.disabled : "";
|
|
435
|
+
return /* @__PURE__ */ t.jsx(
|
|
436
|
+
n,
|
|
437
|
+
{
|
|
438
|
+
ref: S,
|
|
439
|
+
...d,
|
|
440
|
+
className: p(
|
|
441
|
+
w.button,
|
|
442
|
+
L,
|
|
443
|
+
P,
|
|
444
|
+
M
|
|
445
|
+
),
|
|
446
|
+
disabled: c,
|
|
447
|
+
children: /* @__PURE__ */ t.jsxs("div", { className: w.content, children: [
|
|
448
|
+
l && /* @__PURE__ */ t.jsx("div", { className: w.iconWrap, children: /* @__PURE__ */ t.jsx(k, { name: l }) }),
|
|
449
|
+
/* @__PURE__ */ t.jsx("div", { children: r }),
|
|
450
|
+
i && /* @__PURE__ */ t.jsx("div", { className: w.iconWrap, children: /* @__PURE__ */ t.jsx(k, { name: i }) })
|
|
451
|
+
] })
|
|
452
|
+
}
|
|
453
|
+
);
|
|
454
|
+
});
|
|
455
|
+
re.displayName = "Button";
|
|
456
|
+
const fo = "label-module__root___b704i", vo = {
|
|
457
|
+
root: fo
|
|
458
|
+
}, yo = {
|
|
459
|
+
sm: h.labelXs,
|
|
460
|
+
lg: h.labelSm
|
|
461
|
+
}, ft = ({ children: e, color: s, size: n = "sm" }) => /* @__PURE__ */ t.jsx(
|
|
462
|
+
"div",
|
|
463
|
+
{
|
|
464
|
+
className: p(
|
|
465
|
+
vo.root,
|
|
466
|
+
h.labelEmphasis,
|
|
467
|
+
yo[n]
|
|
468
|
+
),
|
|
469
|
+
"data-size": n,
|
|
470
|
+
"data-color": s,
|
|
471
|
+
children: e
|
|
472
|
+
}
|
|
473
|
+
), Ro = "tag-module__tag___04JA1", wo = "tag-module__md___Vi5U2", ko = "tag-module__lg___AaJGY", To = "tag-module__active___Bc0bb", jo = "tag-module__content___uaFwG", xo = "tag-module__iconWrap___viC8K", j = {
|
|
474
|
+
tag: Ro,
|
|
475
|
+
md: wo,
|
|
476
|
+
lg: ko,
|
|
477
|
+
active: To,
|
|
478
|
+
content: jo,
|
|
479
|
+
iconWrap: xo
|
|
480
|
+
}, Ao = {
|
|
481
|
+
md: h.labelMd,
|
|
482
|
+
lg: h.labelLg
|
|
483
|
+
}, Co = ({ value: e, children: s, active: n, disabled: c, size: r = "md", prefixIcon: l, suffixIcon: i, onClick: d }) => /* @__PURE__ */ t.jsx(
|
|
476
484
|
"button",
|
|
477
485
|
{
|
|
478
|
-
className:
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
{ [
|
|
482
|
-
|
|
486
|
+
className: p(
|
|
487
|
+
j.tag,
|
|
488
|
+
Ao[r],
|
|
489
|
+
{ [j.active]: n },
|
|
490
|
+
j[r]
|
|
483
491
|
),
|
|
484
|
-
disabled:
|
|
492
|
+
disabled: c,
|
|
485
493
|
onClick: () => d(e),
|
|
486
|
-
children: /* @__PURE__ */ t.jsxs("div", { className:
|
|
487
|
-
|
|
488
|
-
/* @__PURE__ */ t.jsx("p", { children:
|
|
489
|
-
|
|
494
|
+
children: /* @__PURE__ */ t.jsxs("div", { className: j.content, children: [
|
|
495
|
+
l && /* @__PURE__ */ t.jsx("div", { className: j.iconWrap, children: /* @__PURE__ */ t.jsx(k, { name: l }) }),
|
|
496
|
+
/* @__PURE__ */ t.jsx("p", { children: s }),
|
|
497
|
+
i && /* @__PURE__ */ t.jsx("div", { className: j.iconWrap, children: /* @__PURE__ */ t.jsx(k, { name: i }) })
|
|
490
498
|
] })
|
|
491
499
|
}
|
|
492
|
-
),
|
|
493
|
-
container:
|
|
494
|
-
tab:
|
|
495
|
-
sm:
|
|
496
|
-
lg:
|
|
497
|
-
inverted:
|
|
498
|
-
disabled:
|
|
499
|
-
bottom:
|
|
500
|
-
top:
|
|
501
|
-
activeTab:
|
|
502
|
-
brackets:
|
|
503
|
-
iconWrap:
|
|
500
|
+
), So = "tabs-module__container___NRX40", Lo = "tabs-module__tab___McM3m", Eo = "tabs-module__sm___m4fiR", Oo = "tabs-module__lg___SVeHo", Po = "tabs-module__inverted___CBzom", Mo = "tabs-module__disabled___AXCIC", No = "tabs-module__bottom___Ho7ee", Wo = "tabs-module__top___jthT8", Xo = "tabs-module__activeTab___MHq7V", $o = "tabs-module__brackets___37Jhe", Fo = "tabs-module__iconWrap___RY5wP", b = {
|
|
501
|
+
container: So,
|
|
502
|
+
tab: Lo,
|
|
503
|
+
sm: Eo,
|
|
504
|
+
lg: Oo,
|
|
505
|
+
inverted: Po,
|
|
506
|
+
disabled: Mo,
|
|
507
|
+
bottom: No,
|
|
508
|
+
top: Wo,
|
|
509
|
+
activeTab: Xo,
|
|
510
|
+
brackets: $o,
|
|
511
|
+
iconWrap: Fo
|
|
504
512
|
};
|
|
505
|
-
function
|
|
513
|
+
function vt({
|
|
506
514
|
activeTab: e,
|
|
507
|
-
tabs:
|
|
508
|
-
onTabClick:
|
|
509
|
-
size:
|
|
515
|
+
tabs: s,
|
|
516
|
+
onTabClick: n,
|
|
517
|
+
size: c = "sm",
|
|
510
518
|
activeLinePosition: r = "bottom",
|
|
511
|
-
inverted:
|
|
519
|
+
inverted: l
|
|
512
520
|
}) {
|
|
513
|
-
return /* @__PURE__ */ t.jsx(
|
|
514
|
-
"
|
|
521
|
+
return /* @__PURE__ */ t.jsx("div", { className: b.container, children: s.map((i) => /* @__PURE__ */ t.jsxs(
|
|
522
|
+
"button",
|
|
515
523
|
{
|
|
516
|
-
className:
|
|
517
|
-
|
|
518
|
-
|
|
524
|
+
className: p(
|
|
525
|
+
b.tab,
|
|
526
|
+
b[c],
|
|
519
527
|
{
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
[h.inverted]: c,
|
|
525
|
-
[h.activeTab]: e === n.value,
|
|
526
|
-
[h.disabled]: n.disabled,
|
|
527
|
-
[h.brackets]: i === "lg" && e === n.value && l.length > 1
|
|
528
|
-
},
|
|
529
|
-
h[r],
|
|
530
|
-
n.className
|
|
531
|
-
),
|
|
532
|
-
disabled: n.disabled,
|
|
533
|
-
onClick: () => s(n.value),
|
|
534
|
-
children: [
|
|
535
|
-
n.prefixIcon && /* @__PURE__ */ t.jsx("div", { className: h.iconWrap, children: /* @__PURE__ */ t.jsx(j, { name: n.prefixIcon }) }),
|
|
536
|
-
/* @__PURE__ */ t.jsx("div", { children: n.label }),
|
|
537
|
-
n.suffixIcon && /* @__PURE__ */ t.jsx("div", { className: h.iconWrap, children: /* @__PURE__ */ t.jsx(j, { name: n.suffixIcon }) })
|
|
538
|
-
]
|
|
528
|
+
[b.inverted]: l,
|
|
529
|
+
[b.activeTab]: e === i.value,
|
|
530
|
+
[b.disabled]: i.disabled,
|
|
531
|
+
[b.brackets]: c === "lg" && e === i.value && s.length > 1
|
|
539
532
|
},
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
533
|
+
b[r],
|
|
534
|
+
i.className
|
|
535
|
+
),
|
|
536
|
+
disabled: i.disabled,
|
|
537
|
+
onClick: () => n(i.value),
|
|
538
|
+
children: [
|
|
539
|
+
i.prefixIcon && /* @__PURE__ */ t.jsx("div", { className: b.iconWrap, children: /* @__PURE__ */ t.jsx(k, { name: i.prefixIcon }) }),
|
|
540
|
+
/* @__PURE__ */ t.jsx("div", { children: i.label }),
|
|
541
|
+
i.suffixIcon && /* @__PURE__ */ t.jsx("div", { className: b.iconWrap, children: /* @__PURE__ */ t.jsx(k, { name: i.suffixIcon }) })
|
|
542
|
+
]
|
|
543
|
+
},
|
|
544
|
+
String(i.value)
|
|
545
|
+
)) });
|
|
544
546
|
}
|
|
545
|
-
const
|
|
546
|
-
typeBadge:
|
|
547
|
-
badgeIcon:
|
|
548
|
-
},
|
|
547
|
+
const Do = (e) => /* @__PURE__ */ f.createElement("svg", { width: 10, height: 10, viewBox: "0 0 10 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ f.createElement("g", { clipPath: "url(#clip0_984_190)" }, /* @__PURE__ */ f.createElement("path", { d: "M10 3.3496L6.73464 0.0842285L6 0.818839L9.2654 4.08423L10 3.3496Z" }), /* @__PURE__ */ f.createElement("path", { d: "M3.26537 0.0842285L0 3.34962L0.734613 4.08423L4 0.818844L3.26537 0.0842285Z" }), /* @__PURE__ */ f.createElement("path", { d: "M9.2654 6.08423L6 9.34962L6.7346 10.0842L10 6.81883L9.2654 6.08423Z" }), /* @__PURE__ */ f.createElement("path", { d: "M4 9.34959L0.734618 6.08423L0 6.81886L3.2654 10.0842L4 9.34959Z" })), /* @__PURE__ */ f.createElement("defs", null, /* @__PURE__ */ f.createElement("clipPath", { id: "clip0_984_190" }, /* @__PURE__ */ f.createElement("rect", { width: 10, height: 10, fill: "white" })))), Bo = "typeBadge-module__typeBadge___Jxk0v", Go = "typeBadge-module__badgeIcon___BIDN2", ee = {
|
|
548
|
+
typeBadge: Bo,
|
|
549
|
+
badgeIcon: Go
|
|
550
|
+
}, yt = ({
|
|
549
551
|
type: e = "senescence"
|
|
550
552
|
/* SENESCENCE */
|
|
551
|
-
}) => /* @__PURE__ */ t.jsx("div", { className:
|
|
552
|
-
root:
|
|
553
|
-
tabWrap:
|
|
554
|
-
tab:
|
|
555
|
-
light:
|
|
556
|
-
dark:
|
|
557
|
-
activeTab:
|
|
558
|
-
icon:
|
|
559
|
-
description:
|
|
560
|
-
descriptionActive:
|
|
553
|
+
}) => /* @__PURE__ */ t.jsx("div", { className: ee.typeBadge, "data-type": e, children: /* @__PURE__ */ t.jsx(Do, { className: ee.badgeIcon }) }), Ho = "contentTabs-module__root___vJVGt", Yo = "contentTabs-module__tabWrap___jwBNf", Uo = "contentTabs-module__tab___oMzRn", Vo = "contentTabs-module__light___LyVtp", Io = "contentTabs-module__dark___-VJo6", Jo = "contentTabs-module__activeTab___0Uvh6", zo = "contentTabs-module__icon___nyuv-", Zo = "contentTabs-module__description___sM2G-", qo = "contentTabs-module__descriptionActive___aa8C1", R = {
|
|
554
|
+
root: Ho,
|
|
555
|
+
tabWrap: Yo,
|
|
556
|
+
tab: Uo,
|
|
557
|
+
light: Vo,
|
|
558
|
+
dark: Io,
|
|
559
|
+
activeTab: Jo,
|
|
560
|
+
icon: zo,
|
|
561
|
+
description: Zo,
|
|
562
|
+
descriptionActive: qo
|
|
561
563
|
};
|
|
562
|
-
function
|
|
563
|
-
return /* @__PURE__ */ t.jsx("div", { className:
|
|
564
|
+
function Rt({ tabs: e, activeTab: s, style: n, onTabClick: c }) {
|
|
565
|
+
return /* @__PURE__ */ t.jsx("div", { className: p(R.root, R[n]), children: e.map((r) => /* @__PURE__ */ t.jsxs("div", { className: R.tabWrap, children: [
|
|
564
566
|
/* @__PURE__ */ t.jsxs(
|
|
565
567
|
"button",
|
|
566
568
|
{
|
|
567
|
-
className:
|
|
568
|
-
onClick: () =>
|
|
569
|
+
className: p(R.tab, { [R.activeTab]: s === r.value }),
|
|
570
|
+
onClick: () => c(r.value),
|
|
569
571
|
children: [
|
|
570
|
-
r.icon && /* @__PURE__ */ t.jsx("div", { className:
|
|
571
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
572
|
+
r.icon && /* @__PURE__ */ t.jsx("div", { className: R.icon, children: /* @__PURE__ */ t.jsx(k, { name: r.icon }) }),
|
|
573
|
+
/* @__PURE__ */ t.jsx("div", { className: h.headingSm, children: r.label })
|
|
572
574
|
]
|
|
573
575
|
}
|
|
574
576
|
),
|
|
575
577
|
/* @__PURE__ */ t.jsx(
|
|
576
578
|
"p",
|
|
577
579
|
{
|
|
578
|
-
className:
|
|
579
|
-
|
|
580
|
-
{ [
|
|
581
|
-
|
|
580
|
+
className: p(
|
|
581
|
+
R.description,
|
|
582
|
+
{ [R.descriptionActive]: s === r.value },
|
|
583
|
+
h.bodySm
|
|
582
584
|
),
|
|
583
585
|
children: r.description
|
|
584
586
|
}
|
|
585
587
|
)
|
|
586
588
|
] }, String(r.value))) });
|
|
587
589
|
}
|
|
588
|
-
const
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
},
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
590
|
+
const Qo = (e, s = "usd") => new Intl.NumberFormat("en", {
|
|
591
|
+
style: "currency",
|
|
592
|
+
currency: s
|
|
593
|
+
}).format(e), Ko = "productGalleryCard-module__root___oGJjs", et = "productGalleryCard-module__productInfo___IZeoL", ot = "productGalleryCard-module__buttonContainer___0D5Ov", tt = "productGalleryCard-module__title___dnRaF", rt = "productGalleryCard-module__price___dNy0O", at = "productGalleryCard-module__productImage___uSNso", x = {
|
|
594
|
+
root: Ko,
|
|
595
|
+
productInfo: et,
|
|
596
|
+
buttonContainer: ot,
|
|
597
|
+
title: tt,
|
|
598
|
+
price: rt,
|
|
599
|
+
productImage: at
|
|
600
|
+
}, wt = ({
|
|
601
|
+
title: e,
|
|
602
|
+
price: s,
|
|
603
|
+
image: n,
|
|
604
|
+
buttons: c,
|
|
605
|
+
link: r
|
|
606
|
+
}) => {
|
|
607
|
+
const l = (i) => {
|
|
608
|
+
i.preventDefault(), i.stopPropagation();
|
|
609
|
+
};
|
|
610
|
+
return /* @__PURE__ */ t.jsxs("a", { href: r, target: "_blank", rel: "noopener noreferrer", className: x.root, children: [
|
|
611
|
+
/* @__PURE__ */ t.jsxs("div", { className: x.productInfo, children: [
|
|
612
|
+
/* @__PURE__ */ t.jsx(C, { variant: "bodyXl", className: x.title, children: e }),
|
|
613
|
+
/* @__PURE__ */ t.jsxs(
|
|
614
|
+
C,
|
|
610
615
|
{
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
/* @__PURE__ */ t.jsx(C, { as: "p", variant: "bodyLg", className: b(p.description, p.desktop), children: n }),
|
|
621
|
-
/* @__PURE__ */ t.jsx(C, { as: "p", variant: "bodyMd", className: b(p.description, p.mobile), children: n })
|
|
622
|
-
] }),
|
|
623
|
-
/* @__PURE__ */ t.jsx("div", { className: p.callback, children: "TODO: Callback ZEN-392" })
|
|
616
|
+
variant: "bodyXl",
|
|
617
|
+
className: x.price,
|
|
618
|
+
children: [
|
|
619
|
+
Qo(s.amount),
|
|
620
|
+
"/",
|
|
621
|
+
s.period
|
|
622
|
+
]
|
|
623
|
+
}
|
|
624
|
+
)
|
|
624
625
|
] }),
|
|
625
|
-
/* @__PURE__ */ t.jsx("img", { src:
|
|
626
|
+
/* @__PURE__ */ t.jsx("img", { src: n, alt: "product image", className: x.productImage }),
|
|
627
|
+
/* @__PURE__ */ t.jsx(
|
|
628
|
+
"div",
|
|
629
|
+
{
|
|
630
|
+
onClick: l,
|
|
631
|
+
className: x.buttonContainer,
|
|
632
|
+
children: c.map((i, d) => /* @__PURE__ */ t.jsx(re, { ...i, children: i.label }, d))
|
|
633
|
+
}
|
|
634
|
+
)
|
|
626
635
|
] });
|
|
627
|
-
}
|
|
636
|
+
}, st = "protocolTags-module__root___q4ybt", nt = "protocolTags-module__tags___aaJJA", lt = "protocolTags-module__mobile___4hH2G", it = "protocolTags-module__desktop___kl9fI", A = {
|
|
637
|
+
root: st,
|
|
638
|
+
tags: nt,
|
|
639
|
+
mobile: lt,
|
|
640
|
+
desktop: it
|
|
641
|
+
}, ct = ({ tags: e }) => {
|
|
642
|
+
var r;
|
|
643
|
+
const [s, n] = oe(((r = e[0]) == null ? void 0 : r.label) || null), c = we(() => {
|
|
644
|
+
var l;
|
|
645
|
+
return (l = e.find((i) => i.label === s)) == null ? void 0 : l.description;
|
|
646
|
+
}, [s, e]);
|
|
647
|
+
return /* @__PURE__ */ t.jsxs("div", { className: A.root, children: [
|
|
648
|
+
/* @__PURE__ */ t.jsx("div", { className: A.tags, children: e.map((l) => /* @__PURE__ */ t.jsx(
|
|
649
|
+
Co,
|
|
650
|
+
{
|
|
651
|
+
value: l.label,
|
|
652
|
+
size: "md",
|
|
653
|
+
active: l.label === s,
|
|
654
|
+
onClick: n,
|
|
655
|
+
children: l.label
|
|
656
|
+
},
|
|
657
|
+
l.label
|
|
658
|
+
)) }),
|
|
659
|
+
c && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
660
|
+
/* @__PURE__ */ t.jsx(C, { as: "p", variant: "bodyLg", className: p(A.description, A.desktop), children: c }),
|
|
661
|
+
/* @__PURE__ */ t.jsx(C, { as: "p", variant: "bodyMd", className: p(A.description, A.mobile), children: c })
|
|
662
|
+
] })
|
|
663
|
+
] });
|
|
664
|
+
}, _t = "yourProtocol-module__root___Q35lO", dt = "yourProtocol-module__content___mMf6R", ut = "yourProtocol-module__title___xNPOR", mt = "yourProtocol-module__image___fVaOZ", pt = "yourProtocol-module__mobile___g7AAQ", gt = "yourProtocol-module__callback___bvu49", bt = "yourProtocol-module__desktop___pl-rW", v = {
|
|
665
|
+
root: _t,
|
|
666
|
+
content: dt,
|
|
667
|
+
title: ut,
|
|
668
|
+
image: mt,
|
|
669
|
+
mobile: pt,
|
|
670
|
+
callback: gt,
|
|
671
|
+
desktop: bt
|
|
672
|
+
}, kt = ({ title: e, image: s, tags: n, callbackView: c }) => /* @__PURE__ */ t.jsxs("div", { className: v.root, children: [
|
|
673
|
+
/* @__PURE__ */ t.jsxs("div", { className: v.content, children: [
|
|
674
|
+
/* @__PURE__ */ t.jsx(C, { as: "h2", variant: "displayMd", className: p(v.title, v.desktop), children: e }),
|
|
675
|
+
/* @__PURE__ */ t.jsx(C, { as: "h2", variant: "headingXl", className: p(v.title, v.mobile), children: e }),
|
|
676
|
+
/* @__PURE__ */ t.jsx(ct, { tags: n }),
|
|
677
|
+
/* @__PURE__ */ t.jsx("div", { className: v.callback, children: "TODO: Callback ZEN-392" })
|
|
678
|
+
] }),
|
|
679
|
+
/* @__PURE__ */ t.jsx("img", { src: s, alt: "Your Protocol", className: p(v.image, v.desktop), width: 481, height: 640 })
|
|
680
|
+
] });
|
|
628
681
|
export {
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
682
|
+
re as Button,
|
|
683
|
+
Rt as ContentTabs,
|
|
684
|
+
k as Icon,
|
|
685
|
+
ft as Label,
|
|
686
|
+
wt as ProductGalleryCard,
|
|
687
|
+
vt as Tabs,
|
|
688
|
+
Co as Tag,
|
|
689
|
+
yt as TypeBadge,
|
|
636
690
|
C as Typography,
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
691
|
+
kt as YourProtocol,
|
|
692
|
+
p as cn,
|
|
693
|
+
ao as isHsIcon,
|
|
694
|
+
h as typography
|
|
641
695
|
};
|
|
642
696
|
//# sourceMappingURL=healthspan-ui.es.js.map
|