@sakaniui/react 0.3.7 → 0.3.8
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/TopBar-BYeEhIpa.cjs +1 -0
- package/dist/{TopBar-lEYP4HTb.js → TopBar-CGnnA39K.js} +488 -490
- package/dist/blocks.cjs +1 -1
- package/dist/blocks.mjs +51 -51
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/TopBar-DjB9Z6ne.cjs +0 -1
|
@@ -4,7 +4,7 @@ import { Bell as o, BellOff as s, Camera as c, Check as l, CheckCheck as u, Chev
|
|
|
4
4
|
import { PolarAngleAxis as le, RadialBar as ue, RadialBarChart as de, ResponsiveContainer as fe } from "recharts";
|
|
5
5
|
import pe, { createPortal as me } from "react-dom";
|
|
6
6
|
//#region src/lib/iconStrokeWidth.ts
|
|
7
|
-
var O = (e, t = 1.5) => 24 / e * t,
|
|
7
|
+
var O = (e, t = 1.5) => 24 / e * t, k = {
|
|
8
8
|
accordion: "_accordion_1njer_3",
|
|
9
9
|
item: "_item_1njer_10",
|
|
10
10
|
item__header: "_item__header_1njer_12",
|
|
@@ -15,20 +15,20 @@ var O = (e, t = 1.5) => 24 / e * t, he = {
|
|
|
15
15
|
"item__panelWrap--open": "_item__panelWrap--open_1njer_50",
|
|
16
16
|
item__panel: "_item__panel_1njer_45",
|
|
17
17
|
item__panelInner: "_item__panelInner_1njer_53"
|
|
18
|
-
},
|
|
18
|
+
}, he = ({ title: t, children: n, open: r, defaultOpen: o = !1, className: s }) => {
|
|
19
19
|
let c = r !== void 0, [l, u] = e.useState(o), d = c ? r : l;
|
|
20
20
|
return /* @__PURE__ */ a("div", {
|
|
21
|
-
className: [
|
|
21
|
+
className: [k.item, s ?? ""].filter(Boolean).join(" "),
|
|
22
22
|
children: [/* @__PURE__ */ a("button", {
|
|
23
23
|
type: "button",
|
|
24
|
-
className:
|
|
24
|
+
className: k.item__header,
|
|
25
25
|
"aria-expanded": d,
|
|
26
26
|
onClick: () => !c && u((e) => !e),
|
|
27
27
|
children: [/* @__PURE__ */ i("span", {
|
|
28
|
-
className:
|
|
28
|
+
className: k.item__title,
|
|
29
29
|
children: t
|
|
30
30
|
}), /* @__PURE__ */ i("span", {
|
|
31
|
-
className: [
|
|
31
|
+
className: [k.item__chevron, d ? k["item__chevron--open"] : ""].join(" "),
|
|
32
32
|
"aria-hidden": "true",
|
|
33
33
|
children: /* @__PURE__ */ i("svg", {
|
|
34
34
|
viewBox: "0 0 24 24",
|
|
@@ -43,20 +43,20 @@ var O = (e, t = 1.5) => 24 / e * t, he = {
|
|
|
43
43
|
})
|
|
44
44
|
})]
|
|
45
45
|
}), /* @__PURE__ */ i("div", {
|
|
46
|
-
className: [
|
|
46
|
+
className: [k.item__panelWrap, d ? k["item__panelWrap--open"] : ""].join(" "),
|
|
47
47
|
children: /* @__PURE__ */ i("div", {
|
|
48
|
-
className:
|
|
48
|
+
className: k.item__panel,
|
|
49
49
|
children: /* @__PURE__ */ i("div", {
|
|
50
|
-
className:
|
|
50
|
+
className: k.item__panelInner,
|
|
51
51
|
children: n
|
|
52
52
|
})
|
|
53
53
|
})
|
|
54
54
|
})]
|
|
55
55
|
});
|
|
56
|
-
},
|
|
57
|
-
className: [
|
|
56
|
+
}, ge = ({ children: e, className: t }) => /* @__PURE__ */ i("div", {
|
|
57
|
+
className: [k.accordion, t ?? ""].filter(Boolean).join(" "),
|
|
58
58
|
children: e
|
|
59
|
-
}),
|
|
59
|
+
}), _e = {
|
|
60
60
|
avatar: "_avatar_1igqs_3",
|
|
61
61
|
"avatar--sm": "_avatar--sm_1igqs_17",
|
|
62
62
|
"avatar--md": "_avatar--md_1igqs_18",
|
|
@@ -66,12 +66,12 @@ var O = (e, t = 1.5) => 24 / e * t, he = {
|
|
|
66
66
|
avatar__image: "_avatar__image_1igqs_31",
|
|
67
67
|
avatar__initials: "_avatar__initials_1igqs_39",
|
|
68
68
|
avatar__icon: "_avatar__icon_1igqs_46"
|
|
69
|
-
},
|
|
69
|
+
}, ve = {
|
|
70
70
|
sm: 14,
|
|
71
71
|
md: 18,
|
|
72
72
|
lg: 22,
|
|
73
73
|
xl: 26
|
|
74
|
-
},
|
|
74
|
+
}, ye = ({ px: e }) => /* @__PURE__ */ a("svg", {
|
|
75
75
|
viewBox: "0 0 24 24",
|
|
76
76
|
fill: "none",
|
|
77
77
|
stroke: "currentColor",
|
|
@@ -84,18 +84,18 @@ var O = (e, t = 1.5) => 24 / e * t, he = {
|
|
|
84
84
|
cy: "7",
|
|
85
85
|
r: "4"
|
|
86
86
|
})]
|
|
87
|
-
}),
|
|
87
|
+
}), be = ({ size: t = "md", src: n, alt: r = "", initials: a, icon: o, className: s }) => {
|
|
88
88
|
let c = [
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
_e.avatar,
|
|
90
|
+
_e[`avatar--${t}`],
|
|
91
91
|
s ?? ""
|
|
92
92
|
].filter(Boolean).join(" ");
|
|
93
93
|
if (n) return /* @__PURE__ */ i("span", {
|
|
94
|
-
className: [c,
|
|
94
|
+
className: [c, _e["avatar--bordered"]].join(" "),
|
|
95
95
|
children: /* @__PURE__ */ i("img", {
|
|
96
96
|
src: n,
|
|
97
97
|
alt: r,
|
|
98
|
-
className:
|
|
98
|
+
className: _e.avatar__image
|
|
99
99
|
})
|
|
100
100
|
});
|
|
101
101
|
if (a) return /* @__PURE__ */ i("span", {
|
|
@@ -103,24 +103,24 @@ var O = (e, t = 1.5) => 24 / e * t, he = {
|
|
|
103
103
|
role: "img",
|
|
104
104
|
"aria-label": r || a,
|
|
105
105
|
children: /* @__PURE__ */ i("span", {
|
|
106
|
-
className:
|
|
106
|
+
className: _e.avatar__initials,
|
|
107
107
|
children: a.slice(0, 2).toUpperCase()
|
|
108
108
|
})
|
|
109
109
|
});
|
|
110
|
-
let l =
|
|
110
|
+
let l = ve[t], u = e.isValidElement(o) ? e.cloneElement(o, {
|
|
111
111
|
size: l,
|
|
112
112
|
strokeWidth: O(l)
|
|
113
|
-
}) : o ?? /* @__PURE__ */ i(
|
|
113
|
+
}) : o ?? /* @__PURE__ */ i(ye, { px: l });
|
|
114
114
|
return /* @__PURE__ */ i("span", {
|
|
115
115
|
className: c,
|
|
116
116
|
role: "img",
|
|
117
117
|
"aria-label": r || "avatar",
|
|
118
118
|
children: /* @__PURE__ */ i("span", {
|
|
119
|
-
className:
|
|
119
|
+
className: _e.avatar__icon,
|
|
120
120
|
children: u
|
|
121
121
|
})
|
|
122
122
|
});
|
|
123
|
-
},
|
|
123
|
+
}, A = {
|
|
124
124
|
feed: "_feed_1pvgl_1",
|
|
125
125
|
"feed--compact": "_feed--compact_1pvgl_8",
|
|
126
126
|
"row--default": "_row--default_1pvgl_13",
|
|
@@ -135,35 +135,35 @@ var O = (e, t = 1.5) => 24 / e * t, he = {
|
|
|
135
135
|
actor: "_actor_1pvgl_88",
|
|
136
136
|
highlight: "_highlight_1pvgl_89",
|
|
137
137
|
timestamp: "_timestamp_1pvgl_92"
|
|
138
|
-
},
|
|
139
|
-
className:
|
|
138
|
+
}, xe = ({ children: e }) => /* @__PURE__ */ i("span", {
|
|
139
|
+
className: A.highlight,
|
|
140
140
|
children: e
|
|
141
|
-
}),
|
|
142
|
-
size:
|
|
143
|
-
strokeWidth: O(
|
|
144
|
-
}) : t,
|
|
141
|
+
}), Se = 16, Ce = (t) => e.isValidElement(t) ? e.cloneElement(t, {
|
|
142
|
+
size: Se,
|
|
143
|
+
strokeWidth: O(Se)
|
|
144
|
+
}) : t, we = ({ items: e, variant: t = "default", className: n }) => {
|
|
145
145
|
let r = t === "compact";
|
|
146
146
|
return /* @__PURE__ */ i("div", {
|
|
147
147
|
className: [
|
|
148
|
-
|
|
149
|
-
r ?
|
|
148
|
+
A.feed,
|
|
149
|
+
r ? A["feed--compact"] : "",
|
|
150
150
|
n ?? ""
|
|
151
151
|
].filter(Boolean).join(" "),
|
|
152
152
|
children: e.map((t, n) => {
|
|
153
153
|
let o = n === e.length - 1, s = t.id ?? n;
|
|
154
154
|
return r ? /* @__PURE__ */ a("div", {
|
|
155
|
-
className:
|
|
155
|
+
className: A["row--compact"],
|
|
156
156
|
children: [/* @__PURE__ */ a("div", {
|
|
157
|
-
className:
|
|
158
|
-
children: [/* @__PURE__ */ i(
|
|
157
|
+
className: A.compactLeft,
|
|
158
|
+
children: [/* @__PURE__ */ i(be, {
|
|
159
159
|
size: "sm",
|
|
160
160
|
src: t.avatarSrc,
|
|
161
161
|
alt: t.avatarAlt ?? t.actor
|
|
162
162
|
}), /* @__PURE__ */ a("p", {
|
|
163
|
-
className:
|
|
163
|
+
className: A.text,
|
|
164
164
|
children: [
|
|
165
165
|
/* @__PURE__ */ i("span", {
|
|
166
|
-
className:
|
|
166
|
+
className: A.actor,
|
|
167
167
|
children: t.actor
|
|
168
168
|
}),
|
|
169
169
|
" ",
|
|
@@ -171,49 +171,49 @@ var O = (e, t = 1.5) => 24 / e * t, he = {
|
|
|
171
171
|
]
|
|
172
172
|
})]
|
|
173
173
|
}), /* @__PURE__ */ i("span", {
|
|
174
|
-
className:
|
|
174
|
+
className: A.timestamp,
|
|
175
175
|
children: t.timestamp
|
|
176
176
|
})]
|
|
177
177
|
}, s) : /* @__PURE__ */ a("div", {
|
|
178
|
-
className:
|
|
178
|
+
className: A["row--default"],
|
|
179
179
|
children: [/* @__PURE__ */ a("div", {
|
|
180
|
-
className:
|
|
180
|
+
className: A.rail,
|
|
181
181
|
children: [/* @__PURE__ */ i("div", {
|
|
182
|
-
className:
|
|
183
|
-
children:
|
|
184
|
-
}), !o && /* @__PURE__ */ i("div", { className:
|
|
182
|
+
className: A.dot,
|
|
183
|
+
children: Ce(t.icon)
|
|
184
|
+
}), !o && /* @__PURE__ */ i("div", { className: A.connector })]
|
|
185
185
|
}), /* @__PURE__ */ a("div", {
|
|
186
|
-
className: [
|
|
186
|
+
className: [A.content, o ? "" : A["content--spaced"]].filter(Boolean).join(" "),
|
|
187
187
|
children: [/* @__PURE__ */ a("p", {
|
|
188
|
-
className:
|
|
188
|
+
className: A.text,
|
|
189
189
|
children: [
|
|
190
190
|
/* @__PURE__ */ i("span", {
|
|
191
|
-
className:
|
|
191
|
+
className: A.actor,
|
|
192
192
|
children: t.actor
|
|
193
193
|
}),
|
|
194
194
|
" ",
|
|
195
195
|
t.description
|
|
196
196
|
]
|
|
197
197
|
}), /* @__PURE__ */ i("span", {
|
|
198
|
-
className:
|
|
198
|
+
className: A.timestamp,
|
|
199
199
|
children: t.timestamp
|
|
200
200
|
})]
|
|
201
201
|
})]
|
|
202
202
|
}, s);
|
|
203
203
|
})
|
|
204
204
|
});
|
|
205
|
-
},
|
|
205
|
+
}, Te = {
|
|
206
206
|
link: "_link_1g7dc_3",
|
|
207
207
|
link__external: "_link__external_1g7dc_34"
|
|
208
|
-
},
|
|
208
|
+
}, Ee = e.forwardRef(({ external: e, children: t, className: n, href: r, ...o }, s) => /* @__PURE__ */ a("a", {
|
|
209
209
|
ref: s,
|
|
210
210
|
href: r,
|
|
211
|
-
className: [
|
|
211
|
+
className: [Te.link, n ?? ""].filter(Boolean).join(" "),
|
|
212
212
|
target: e ? "_blank" : o.target,
|
|
213
213
|
rel: e ? "noopener noreferrer" : o.rel,
|
|
214
214
|
...o,
|
|
215
215
|
children: [t, e && /* @__PURE__ */ i("span", {
|
|
216
|
-
className:
|
|
216
|
+
className: Te.link__external,
|
|
217
217
|
"aria-label": "(opens in new tab)",
|
|
218
218
|
children: /* @__PURE__ */ a("svg", {
|
|
219
219
|
width: 12,
|
|
@@ -238,39 +238,39 @@ var O = (e, t = 1.5) => 24 / e * t, he = {
|
|
|
238
238
|
})
|
|
239
239
|
})]
|
|
240
240
|
}));
|
|
241
|
-
|
|
242
|
-
var
|
|
243
|
-
button: "
|
|
244
|
-
"button--sm": "_button--
|
|
245
|
-
"button--md": "_button--
|
|
246
|
-
"button--lg": "_button--
|
|
247
|
-
"button--primary": "_button--
|
|
248
|
-
"button--secondary": "_button--
|
|
249
|
-
"button--outline": "_button--
|
|
250
|
-
"button--ghost": "_button--
|
|
251
|
-
"button--destructive": "_button--
|
|
252
|
-
},
|
|
241
|
+
Ee.displayName = "Link";
|
|
242
|
+
var De = {
|
|
243
|
+
button: "_button_e2wrf_2",
|
|
244
|
+
"button--sm": "_button--sm_e2wrf_18",
|
|
245
|
+
"button--md": "_button--md_e2wrf_19",
|
|
246
|
+
"button--lg": "_button--lg_e2wrf_20",
|
|
247
|
+
"button--primary": "_button--primary_e2wrf_23",
|
|
248
|
+
"button--secondary": "_button--secondary_e2wrf_30",
|
|
249
|
+
"button--outline": "_button--outline_e2wrf_35",
|
|
250
|
+
"button--ghost": "_button--ghost_e2wrf_40",
|
|
251
|
+
"button--destructive": "_button--destructive_e2wrf_45"
|
|
252
|
+
}, Oe = {
|
|
253
253
|
sm: 16,
|
|
254
254
|
md: 18,
|
|
255
255
|
lg: 20
|
|
256
|
-
},
|
|
256
|
+
}, ke = e.forwardRef(({ icon: e, variant: t = "primary", size: n = "md", disabled: r, className: a, ...o }, s) => /* @__PURE__ */ i("button", {
|
|
257
257
|
ref: s,
|
|
258
258
|
disabled: r,
|
|
259
259
|
className: [
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
260
|
+
De.button,
|
|
261
|
+
De[`button--${t}`],
|
|
262
|
+
De[`button--${n}`],
|
|
263
263
|
a ?? ""
|
|
264
264
|
].filter(Boolean).join(" "),
|
|
265
265
|
...o,
|
|
266
266
|
children: /* @__PURE__ */ i(e, {
|
|
267
|
-
size:
|
|
268
|
-
strokeWidth: O(
|
|
267
|
+
size: Oe[n],
|
|
268
|
+
strokeWidth: O(Oe[n]),
|
|
269
269
|
"aria-hidden": "true"
|
|
270
270
|
})
|
|
271
271
|
}));
|
|
272
|
-
|
|
273
|
-
var
|
|
272
|
+
ke.displayName = "IconButton";
|
|
273
|
+
var j = {
|
|
274
274
|
button: "_button_17bv9_21",
|
|
275
275
|
"button--primary": "_button--primary_17bv9_72",
|
|
276
276
|
"button--secondary": "_button--secondary_17bv9_99",
|
|
@@ -287,17 +287,17 @@ var A = {
|
|
|
287
287
|
"button--loading": "_button--loading_17bv9_251",
|
|
288
288
|
button__spinner: "_button__spinner_17bv9_255",
|
|
289
289
|
"sakani-btn-spin": "_sakani-btn-spin_17bv9_1"
|
|
290
|
-
},
|
|
290
|
+
}, M = e.forwardRef(({ variant: e = "primary", size: t = "md", leftIcon: n, rightIcon: r, loading: o = !1, disabled: s, children: c, className: l, ...u }, d) => {
|
|
291
291
|
let f = s || o;
|
|
292
292
|
return /* @__PURE__ */ a("button", {
|
|
293
293
|
ref: d,
|
|
294
294
|
className: [
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
o ?
|
|
299
|
-
n && !o ?
|
|
300
|
-
r && !o ?
|
|
295
|
+
j.button,
|
|
296
|
+
j[`button--${e}`],
|
|
297
|
+
j[`button--${t}`],
|
|
298
|
+
o ? j["button--loading"] : "",
|
|
299
|
+
n && !o ? j["button--hasLeftIcon"] : "",
|
|
300
|
+
r && !o ? j["button--hasRightIcon"] : "",
|
|
301
301
|
l ?? ""
|
|
302
302
|
].filter(Boolean).join(" "),
|
|
303
303
|
disabled: f,
|
|
@@ -305,7 +305,7 @@ var A = {
|
|
|
305
305
|
...u,
|
|
306
306
|
children: [
|
|
307
307
|
o && /* @__PURE__ */ i("span", {
|
|
308
|
-
className: [
|
|
308
|
+
className: [j.button__icon, j.button__spinner].join(" "),
|
|
309
309
|
"aria-hidden": "true",
|
|
310
310
|
children: /* @__PURE__ */ i("svg", {
|
|
311
311
|
viewBox: "0 0 24 24",
|
|
@@ -317,24 +317,24 @@ var A = {
|
|
|
317
317
|
})
|
|
318
318
|
}),
|
|
319
319
|
n && !o && /* @__PURE__ */ i("span", {
|
|
320
|
-
className:
|
|
320
|
+
className: j.button__icon,
|
|
321
321
|
"aria-hidden": "true",
|
|
322
322
|
children: n
|
|
323
323
|
}),
|
|
324
324
|
/* @__PURE__ */ i("span", {
|
|
325
|
-
className:
|
|
325
|
+
className: j.button__label,
|
|
326
326
|
children: c
|
|
327
327
|
}),
|
|
328
328
|
r && !o && /* @__PURE__ */ i("span", {
|
|
329
|
-
className:
|
|
329
|
+
className: j.button__icon,
|
|
330
330
|
"aria-hidden": "true",
|
|
331
331
|
children: r
|
|
332
332
|
})
|
|
333
333
|
]
|
|
334
334
|
});
|
|
335
335
|
});
|
|
336
|
-
|
|
337
|
-
var
|
|
336
|
+
M.displayName = "Button";
|
|
337
|
+
var N = {
|
|
338
338
|
wrap: "_wrap_3mj75_1",
|
|
339
339
|
"wrap--vertical": "_wrap--vertical_3mj75_7",
|
|
340
340
|
"wrap--horizontal": "_wrap--horizontal_3mj75_11",
|
|
@@ -348,36 +348,36 @@ var M = {
|
|
|
348
348
|
hint: "_hint_3mj75_79",
|
|
349
349
|
link: "_link_3mj75_88",
|
|
350
350
|
input: "_input_3mj75_92"
|
|
351
|
-
},
|
|
351
|
+
}, Ae = ({ src: t, alt: n, orientation: r = "vertical", accept: o = "image/jpeg,image/png", title: s = "Upload a photo", hint: l = "JPG or PNG, max 5MB.", onFileSelect: u, onRemove: d, className: f }) => {
|
|
352
352
|
let p = e.useRef(null), m = t !== void 0, [h, g] = e.useState(void 0), _ = m ? t : h, v = r === "horizontal", y = !!_, b = () => p.current?.click(), x = () => {
|
|
353
353
|
d?.(), m || g(void 0);
|
|
354
354
|
}, S = /* @__PURE__ */ a("div", {
|
|
355
|
-
className: [
|
|
355
|
+
className: [N.textStack, v ? "" : N["textStack--center"]].filter(Boolean).join(" "),
|
|
356
356
|
children: [/* @__PURE__ */ i("p", {
|
|
357
|
-
className:
|
|
357
|
+
className: N.title,
|
|
358
358
|
children: s
|
|
359
359
|
}), /* @__PURE__ */ i("p", {
|
|
360
|
-
className:
|
|
360
|
+
className: N.hint,
|
|
361
361
|
children: l
|
|
362
362
|
})]
|
|
363
363
|
});
|
|
364
364
|
return /* @__PURE__ */ a("div", {
|
|
365
365
|
className: [
|
|
366
|
-
|
|
367
|
-
|
|
366
|
+
N.wrap,
|
|
367
|
+
N[`wrap--${r}`],
|
|
368
368
|
f ?? ""
|
|
369
369
|
].filter(Boolean).join(" "),
|
|
370
370
|
children: [
|
|
371
371
|
/* @__PURE__ */ a("div", {
|
|
372
|
-
className:
|
|
373
|
-
children: [/* @__PURE__ */ i(
|
|
372
|
+
className: N.circleWrap,
|
|
373
|
+
children: [/* @__PURE__ */ i(be, {
|
|
374
374
|
size: v ? "lg" : "xl",
|
|
375
375
|
src: _,
|
|
376
376
|
alt: n,
|
|
377
|
-
className: v ? void 0 :
|
|
377
|
+
className: v ? void 0 : N.bigAvatar
|
|
378
378
|
}), !v && /* @__PURE__ */ i("button", {
|
|
379
379
|
type: "button",
|
|
380
|
-
className:
|
|
380
|
+
className: N.badge,
|
|
381
381
|
onClick: b,
|
|
382
382
|
"aria-label": "Change photo",
|
|
383
383
|
children: /* @__PURE__ */ i(c, {
|
|
@@ -387,8 +387,8 @@ var M = {
|
|
|
387
387
|
})]
|
|
388
388
|
}),
|
|
389
389
|
v && /* @__PURE__ */ a("div", {
|
|
390
|
-
className:
|
|
391
|
-
children: [S, y ? /* @__PURE__ */ i(
|
|
390
|
+
className: N.horizontalContent,
|
|
391
|
+
children: [S, y ? /* @__PURE__ */ i(M, {
|
|
392
392
|
variant: "outline",
|
|
393
393
|
size: "sm",
|
|
394
394
|
onClick: x,
|
|
@@ -397,19 +397,19 @@ var M = {
|
|
|
397
397
|
borderColor: "var(--color-danger-border)"
|
|
398
398
|
},
|
|
399
399
|
children: "Remove"
|
|
400
|
-
}) : /* @__PURE__ */ i(
|
|
400
|
+
}) : /* @__PURE__ */ i(M, {
|
|
401
401
|
variant: "outline",
|
|
402
402
|
size: "sm",
|
|
403
403
|
onClick: b,
|
|
404
404
|
children: "Upload"
|
|
405
405
|
})]
|
|
406
406
|
}),
|
|
407
|
-
!v && (y ? /* @__PURE__ */ i(
|
|
407
|
+
!v && (y ? /* @__PURE__ */ i(Ee, {
|
|
408
408
|
href: "#",
|
|
409
409
|
onClick: (e) => {
|
|
410
410
|
e.preventDefault(), b();
|
|
411
411
|
},
|
|
412
|
-
className:
|
|
412
|
+
className: N.link,
|
|
413
413
|
style: {
|
|
414
414
|
color: "var(--color-brand-fg)",
|
|
415
415
|
fontSize: 16,
|
|
@@ -421,7 +421,7 @@ var M = {
|
|
|
421
421
|
ref: p,
|
|
422
422
|
type: "file",
|
|
423
423
|
accept: o,
|
|
424
|
-
className:
|
|
424
|
+
className: N.input,
|
|
425
425
|
onChange: (e) => {
|
|
426
426
|
let t = e.target.files?.[0];
|
|
427
427
|
t && (u?.(t), m || g(URL.createObjectURL(t))), e.target.value = "";
|
|
@@ -432,7 +432,7 @@ var M = {
|
|
|
432
432
|
};
|
|
433
433
|
//#endregion
|
|
434
434
|
//#region src/lib/useThemeTick.ts
|
|
435
|
-
function
|
|
435
|
+
function je() {
|
|
436
436
|
let [e, r] = n(0);
|
|
437
437
|
return t(() => {
|
|
438
438
|
if (typeof document > "u") return;
|
|
@@ -444,7 +444,7 @@ function Me() {
|
|
|
444
444
|
}), () => e.disconnect();
|
|
445
445
|
}, []), e;
|
|
446
446
|
}
|
|
447
|
-
var
|
|
447
|
+
var P = {
|
|
448
448
|
balance: "_balance_kaxp5_1",
|
|
449
449
|
"balance--progress": "_balance--progress_kaxp5_8",
|
|
450
450
|
content: "_content_kaxp5_17",
|
|
@@ -462,14 +462,14 @@ var N = {
|
|
|
462
462
|
changeValue__down: "_changeValue__down_kaxp5_117",
|
|
463
463
|
changeLabel: "_changeLabel_kaxp5_124",
|
|
464
464
|
ringCard: "_ringCard_kaxp5_132"
|
|
465
|
-
},
|
|
466
|
-
let t = Math.min(e,
|
|
467
|
-
return Array.from({ length: t }, () =>
|
|
468
|
-
},
|
|
469
|
-
|
|
470
|
-
let t =
|
|
465
|
+
}, Me = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", Ne = 8, Pe = 6, Fe = 90, Ie = (e) => {
|
|
466
|
+
let t = Math.min(e, Ne);
|
|
467
|
+
return Array.from({ length: t }, () => Me[Math.floor(Math.random() * 36)]).join("");
|
|
468
|
+
}, Le = (e) => typeof window < "u" && getComputedStyle(document.documentElement).getPropertyValue(e).trim() || void 0, Re = ({ progress: e }) => {
|
|
469
|
+
je();
|
|
470
|
+
let t = Le("--color-chart-1") ?? "#ff4700", n = Le("--color-bg-subtle") ?? "#f5f4f2", r = [{ value: Math.max(0, Math.min(100, e)) }];
|
|
471
471
|
return /* @__PURE__ */ i("div", {
|
|
472
|
-
className:
|
|
472
|
+
className: P.ringCard,
|
|
473
473
|
children: /* @__PURE__ */ i(fe, {
|
|
474
474
|
width: 64,
|
|
475
475
|
height: 64,
|
|
@@ -495,7 +495,7 @@ var N = {
|
|
|
495
495
|
})
|
|
496
496
|
})
|
|
497
497
|
});
|
|
498
|
-
},
|
|
498
|
+
}, ze = ({ label: t = "Available balance", value: n, change: r, progress: o, hidden: s, onToggleHidden: c, className: l }) => {
|
|
499
499
|
let u = s !== void 0, [d, f] = e.useState(!1), p = u ? s : d, m = o !== void 0, h = r?.direction ?? "up", g = h === "up" ? oe : ae, y = () => {
|
|
500
500
|
let e = !p;
|
|
501
501
|
c?.(e), u || f(e);
|
|
@@ -504,23 +504,23 @@ var N = {
|
|
|
504
504
|
if (p && !w.current) {
|
|
505
505
|
x(!0);
|
|
506
506
|
let e = 0, t = setInterval(() => {
|
|
507
|
-
e += 1, C((e) => e + 1), e >=
|
|
508
|
-
},
|
|
507
|
+
e += 1, C((e) => e + 1), e >= Pe && (clearInterval(t), x(!1));
|
|
508
|
+
}, Fe);
|
|
509
509
|
return w.current = !0, () => clearInterval(t);
|
|
510
510
|
}
|
|
511
511
|
w.current = p;
|
|
512
512
|
}, [p]);
|
|
513
|
-
let T = e.useMemo(() =>
|
|
514
|
-
className:
|
|
513
|
+
let T = e.useMemo(() => Ie(n.length), [n, S]), ee = e.useMemo(() => r ? Ie(r.value.length) : "", [r?.value, S]), E = /* @__PURE__ */ a("div", {
|
|
514
|
+
className: P.content,
|
|
515
515
|
children: [
|
|
516
516
|
/* @__PURE__ */ a("div", {
|
|
517
|
-
className:
|
|
517
|
+
className: P.labelRow,
|
|
518
518
|
children: [/* @__PURE__ */ i("p", {
|
|
519
|
-
className:
|
|
519
|
+
className: P.label,
|
|
520
520
|
children: t
|
|
521
521
|
}), /* @__PURE__ */ i("button", {
|
|
522
522
|
type: "button",
|
|
523
|
-
className:
|
|
523
|
+
className: P.hideToggle,
|
|
524
524
|
"aria-label": p ? "Show balance" : "Hide balance",
|
|
525
525
|
onClick: y,
|
|
526
526
|
children: i(p ? v : _, {
|
|
@@ -531,26 +531,26 @@ var N = {
|
|
|
531
531
|
}),
|
|
532
532
|
/* @__PURE__ */ i("p", {
|
|
533
533
|
className: [
|
|
534
|
-
|
|
535
|
-
p ?
|
|
536
|
-
b ?
|
|
534
|
+
P.value,
|
|
535
|
+
p ? P["value--hidden"] : "",
|
|
536
|
+
b ? P["value--glitching"] : ""
|
|
537
537
|
].filter(Boolean).join(" "),
|
|
538
538
|
children: p ? T : n
|
|
539
539
|
}),
|
|
540
540
|
r && /* @__PURE__ */ a("div", {
|
|
541
|
-
className:
|
|
541
|
+
className: P.changeRow,
|
|
542
542
|
children: [
|
|
543
543
|
/* @__PURE__ */ i(g, {
|
|
544
544
|
size: 24,
|
|
545
545
|
strokeWidth: 1.5,
|
|
546
|
-
className: h === "up" ?
|
|
546
|
+
className: h === "up" ? P.trendIcon__up : P.trendIcon__down
|
|
547
547
|
}),
|
|
548
548
|
/* @__PURE__ */ i("span", {
|
|
549
|
-
className: [h === "up" ?
|
|
549
|
+
className: [h === "up" ? P.changeValue__up : P.changeValue__down, b ? P["value--glitching"] : ""].filter(Boolean).join(" "),
|
|
550
550
|
children: p ? ee : r.value
|
|
551
551
|
}),
|
|
552
552
|
/* @__PURE__ */ i("span", {
|
|
553
|
-
className:
|
|
553
|
+
className: P.changeLabel,
|
|
554
554
|
children: r.label ?? "this month"
|
|
555
555
|
})
|
|
556
556
|
]
|
|
@@ -559,13 +559,13 @@ var N = {
|
|
|
559
559
|
});
|
|
560
560
|
return /* @__PURE__ */ a("div", {
|
|
561
561
|
className: [
|
|
562
|
-
|
|
563
|
-
m ?
|
|
562
|
+
P.balance,
|
|
563
|
+
m ? P["balance--progress"] : "",
|
|
564
564
|
l ?? ""
|
|
565
565
|
].filter(Boolean).join(" "),
|
|
566
|
-
children: [m && /* @__PURE__ */ i(
|
|
566
|
+
children: [m && /* @__PURE__ */ i(Re, { progress: o }), E]
|
|
567
567
|
});
|
|
568
|
-
},
|
|
568
|
+
}, Be = {
|
|
569
569
|
progress: "_progress_1qaz4_11",
|
|
570
570
|
"progress--sm": "_progress--sm_1qaz4_20",
|
|
571
571
|
"progress--md": "_progress--md_1qaz4_21",
|
|
@@ -573,7 +573,7 @@ var N = {
|
|
|
573
573
|
progress__fill: "_progress__fill_1qaz4_25",
|
|
574
574
|
"progress__fill--indeterminate": "_progress__fill--indeterminate_1qaz4_33",
|
|
575
575
|
"progress-scan": "_progress-scan_1qaz4_1"
|
|
576
|
-
},
|
|
576
|
+
}, Ve = ({ value: e, size: t = "md", label: n = "Progress", className: r }) => {
|
|
577
577
|
let a = e === void 0, o = Math.min(100, Math.max(0, e ?? 0));
|
|
578
578
|
return /* @__PURE__ */ i("div", {
|
|
579
579
|
role: "progressbar",
|
|
@@ -582,45 +582,45 @@ var N = {
|
|
|
582
582
|
"aria-valuemin": 0,
|
|
583
583
|
"aria-valuemax": 100,
|
|
584
584
|
className: [
|
|
585
|
-
|
|
586
|
-
|
|
585
|
+
Be.progress,
|
|
586
|
+
Be[`progress--${t}`],
|
|
587
587
|
r ?? ""
|
|
588
588
|
].filter(Boolean).join(" "),
|
|
589
589
|
children: /* @__PURE__ */ i("div", {
|
|
590
|
-
className: [
|
|
590
|
+
className: [Be.progress__fill, a ? Be["progress__fill--indeterminate"] : ""].filter(Boolean).join(" "),
|
|
591
591
|
style: a ? void 0 : { width: `${o}%` }
|
|
592
592
|
})
|
|
593
593
|
});
|
|
594
|
-
},
|
|
595
|
-
function
|
|
594
|
+
}, He = ["dark", "force-light"];
|
|
595
|
+
function Ue(e, r) {
|
|
596
596
|
let [i, a] = n("");
|
|
597
597
|
return t(() => {
|
|
598
598
|
if (!r || typeof document > "u") return;
|
|
599
599
|
let t = e.current;
|
|
600
600
|
if (!t) return;
|
|
601
|
-
let n = t.closest(
|
|
601
|
+
let n = t.closest(He.map((e) => `.${e}`).join(", ")), i = n ? He.find((e) => n.classList.contains(e)) ?? "" : "";
|
|
602
602
|
a(i);
|
|
603
603
|
}, [e, r]), i;
|
|
604
604
|
}
|
|
605
|
-
var
|
|
605
|
+
var We = {
|
|
606
606
|
"divider--horizontal": "_divider--horizontal_nem37_4",
|
|
607
607
|
"divider--labeled": "_divider--labeled_nem37_13",
|
|
608
608
|
"divider--vertical": "_divider--vertical_nem37_27",
|
|
609
609
|
divider__label: "_divider__label_nem37_38"
|
|
610
|
-
},
|
|
610
|
+
}, Ge = ({ orientation: e = "horizontal", label: t, className: n }) => /* @__PURE__ */ i("div", {
|
|
611
611
|
role: "separator",
|
|
612
612
|
"aria-orientation": e,
|
|
613
613
|
className: [
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
t ?
|
|
614
|
+
We.divider,
|
|
615
|
+
We[`divider--${e}`],
|
|
616
|
+
t ? We["divider--labeled"] : "",
|
|
617
617
|
n ?? ""
|
|
618
618
|
].filter(Boolean).join(" "),
|
|
619
619
|
children: t && e === "horizontal" && /* @__PURE__ */ i("span", {
|
|
620
|
-
className:
|
|
620
|
+
className: We.divider__label,
|
|
621
621
|
children: t
|
|
622
622
|
})
|
|
623
|
-
}),
|
|
623
|
+
}), F = {
|
|
624
624
|
backdrop: "_backdrop_123ke_1",
|
|
625
625
|
card: "_card_123ke_12",
|
|
626
626
|
header: "_header_123ke_32",
|
|
@@ -639,8 +639,8 @@ var Ge = {
|
|
|
639
639
|
"sakani-modal-card-in": "_sakani-modal-card-in_123ke_1",
|
|
640
640
|
"card--exiting": "_card--exiting_123ke_113",
|
|
641
641
|
"sakani-modal-card-out": "_sakani-modal-card-out_123ke_1"
|
|
642
|
-
},
|
|
643
|
-
let S = c === "destructive", C = e.useRef(null), w = e.useRef(null), T = e.useRef(null), ee =
|
|
642
|
+
}, Ke = ({ open: t, onClose: n, title: o, description: s, variant: c = "default", icon: l, cancelLabel: u = "Cancel", confirmLabel: d, onCancel: f, onConfirm: p, confirmLoading: m, closeOnEscape: h = !0, closeOnBackdropClick: g = !0, children: _, hideHeader: v = !1, hideFooterDivider: y = !1, footerJustify: b = "end", className: x }) => {
|
|
643
|
+
let S = c === "destructive", C = e.useRef(null), w = e.useRef(null), T = e.useRef(null), ee = Ue(T, t), [E, D] = e.useState(!1);
|
|
644
644
|
return e.useEffect(() => {
|
|
645
645
|
t && D(!0);
|
|
646
646
|
}, [t]), e.useEffect(() => {
|
|
@@ -678,9 +678,9 @@ var Ge = {
|
|
|
678
678
|
"aria-hidden": "true"
|
|
679
679
|
}), E && me(/* @__PURE__ */ i("div", {
|
|
680
680
|
className: [
|
|
681
|
-
|
|
681
|
+
F.backdrop,
|
|
682
682
|
ee,
|
|
683
|
-
t ?
|
|
683
|
+
t ? F["backdrop--entering"] : F["backdrop--exiting"]
|
|
684
684
|
].filter(Boolean).join(" "),
|
|
685
685
|
onMouseDown: (e) => {
|
|
686
686
|
g && e.target === e.currentTarget && n();
|
|
@@ -693,8 +693,8 @@ var Ge = {
|
|
|
693
693
|
"aria-label": v ? o : void 0,
|
|
694
694
|
tabIndex: -1,
|
|
695
695
|
className: [
|
|
696
|
-
|
|
697
|
-
t ?
|
|
696
|
+
F.card,
|
|
697
|
+
t ? F["card--entering"] : F["card--exiting"],
|
|
698
698
|
x ?? ""
|
|
699
699
|
].filter(Boolean).join(" "),
|
|
700
700
|
onAnimationEnd: (e) => {
|
|
@@ -702,23 +702,23 @@ var Ge = {
|
|
|
702
702
|
},
|
|
703
703
|
children: [
|
|
704
704
|
!v && /* @__PURE__ */ a("div", {
|
|
705
|
-
className:
|
|
705
|
+
className: F.header,
|
|
706
706
|
children: [/* @__PURE__ */ a("div", {
|
|
707
|
-
className:
|
|
707
|
+
className: F.titleGroup,
|
|
708
708
|
children: [S && /* @__PURE__ */ i("span", {
|
|
709
|
-
className:
|
|
709
|
+
className: F.iconWrap,
|
|
710
710
|
"aria-hidden": "true",
|
|
711
711
|
children: l ?? /* @__PURE__ */ i(se, {
|
|
712
712
|
size: 24,
|
|
713
713
|
strokeWidth: O(24),
|
|
714
|
-
className:
|
|
714
|
+
className: F.icon
|
|
715
715
|
})
|
|
716
716
|
}), /* @__PURE__ */ i("p", {
|
|
717
717
|
id: "modal-title",
|
|
718
|
-
className:
|
|
718
|
+
className: F.title,
|
|
719
719
|
children: o
|
|
720
720
|
})]
|
|
721
|
-
}), /* @__PURE__ */ i(
|
|
721
|
+
}), /* @__PURE__ */ i(ke, {
|
|
722
722
|
icon: ce,
|
|
723
723
|
variant: "ghost",
|
|
724
724
|
size: "lg",
|
|
@@ -727,19 +727,19 @@ var Ge = {
|
|
|
727
727
|
})]
|
|
728
728
|
}),
|
|
729
729
|
s && /* @__PURE__ */ i("p", {
|
|
730
|
-
className:
|
|
730
|
+
className: F.description,
|
|
731
731
|
children: s
|
|
732
732
|
}),
|
|
733
733
|
_,
|
|
734
|
-
!y && /* @__PURE__ */ i(
|
|
734
|
+
!y && /* @__PURE__ */ i(Ge, {}),
|
|
735
735
|
/* @__PURE__ */ a("div", {
|
|
736
|
-
className: [
|
|
737
|
-
children: [/* @__PURE__ */ i(
|
|
736
|
+
className: [F.footer, b === "between" ? F["footer--between"] : ""].filter(Boolean).join(" "),
|
|
737
|
+
children: [/* @__PURE__ */ i(M, {
|
|
738
738
|
variant: "secondary",
|
|
739
739
|
onClick: () => (f ?? n)(),
|
|
740
740
|
style: { borderColor: "transparent" },
|
|
741
741
|
children: u
|
|
742
|
-
}), /* @__PURE__ */ i(
|
|
742
|
+
}), /* @__PURE__ */ i(M, {
|
|
743
743
|
variant: S ? "destructive" : "primary",
|
|
744
744
|
onClick: p,
|
|
745
745
|
loading: m,
|
|
@@ -749,7 +749,7 @@ var Ge = {
|
|
|
749
749
|
]
|
|
750
750
|
})
|
|
751
751
|
}), document.body)] });
|
|
752
|
-
},
|
|
752
|
+
}, I = {
|
|
753
753
|
row: "_row_88l3n_2",
|
|
754
754
|
"row--unread": "_row--unread_88l3n_12",
|
|
755
755
|
iconWrapSurface: "_iconWrapSurface_88l3n_17",
|
|
@@ -763,32 +763,32 @@ var Ge = {
|
|
|
763
763
|
cardTop: "_cardTop_88l3n_87",
|
|
764
764
|
description: "_description_88l3n_94",
|
|
765
765
|
actions: "_actions_88l3n_102"
|
|
766
|
-
},
|
|
766
|
+
}, qe = ({ icon: e, title: t, timestamp: n, read: r = !1, description: s, onDismiss: c, dismissLabel: l = "Dismiss", actionLabel: u, onAction: d, className: f }) => {
|
|
767
767
|
let p = s !== void 0, m = !r && !p, h = e ?? /* @__PURE__ */ i(o, {
|
|
768
768
|
size: 24,
|
|
769
769
|
strokeWidth: O(24)
|
|
770
770
|
});
|
|
771
771
|
return p ? /* @__PURE__ */ a("div", {
|
|
772
|
-
className: [
|
|
772
|
+
className: [I.card, f ?? ""].filter(Boolean).join(" "),
|
|
773
773
|
children: [/* @__PURE__ */ a("div", {
|
|
774
|
-
className:
|
|
774
|
+
className: I.cardTop,
|
|
775
775
|
children: [
|
|
776
776
|
/* @__PURE__ */ i("span", {
|
|
777
|
-
className:
|
|
777
|
+
className: I.iconWrapCanvas,
|
|
778
778
|
"aria-hidden": "true",
|
|
779
779
|
children: h
|
|
780
780
|
}),
|
|
781
781
|
/* @__PURE__ */ a("div", {
|
|
782
|
-
className:
|
|
782
|
+
className: I.content,
|
|
783
783
|
children: [/* @__PURE__ */ i("p", {
|
|
784
|
-
className:
|
|
784
|
+
className: I.titleBold,
|
|
785
785
|
children: t
|
|
786
786
|
}), /* @__PURE__ */ i("p", {
|
|
787
|
-
className:
|
|
787
|
+
className: I.description,
|
|
788
788
|
children: s
|
|
789
789
|
})]
|
|
790
790
|
}),
|
|
791
|
-
c && /* @__PURE__ */ i(
|
|
791
|
+
c && /* @__PURE__ */ i(ke, {
|
|
792
792
|
icon: ce,
|
|
793
793
|
variant: "ghost",
|
|
794
794
|
size: "sm",
|
|
@@ -797,13 +797,13 @@ var Ge = {
|
|
|
797
797
|
})
|
|
798
798
|
]
|
|
799
799
|
}), /* @__PURE__ */ a("div", {
|
|
800
|
-
className:
|
|
801
|
-
children: [c && /* @__PURE__ */ i(
|
|
800
|
+
className: I.actions,
|
|
801
|
+
children: [c && /* @__PURE__ */ i(M, {
|
|
802
802
|
variant: "ghost",
|
|
803
803
|
size: "sm",
|
|
804
804
|
onClick: c,
|
|
805
805
|
children: l
|
|
806
|
-
}), u && /* @__PURE__ */ i(
|
|
806
|
+
}), u && /* @__PURE__ */ i(M, {
|
|
807
807
|
variant: "secondary",
|
|
808
808
|
size: "sm",
|
|
809
809
|
onClick: d,
|
|
@@ -812,51 +812,51 @@ var Ge = {
|
|
|
812
812
|
})]
|
|
813
813
|
})]
|
|
814
814
|
}) : /* @__PURE__ */ a("div", {
|
|
815
|
-
className: [
|
|
815
|
+
className: [I.row, m ? I["row--unread"] : ""].filter(Boolean).join(" "),
|
|
816
816
|
children: [
|
|
817
817
|
/* @__PURE__ */ i("span", {
|
|
818
|
-
className:
|
|
818
|
+
className: I.iconWrapSurface,
|
|
819
819
|
"aria-hidden": "true",
|
|
820
820
|
children: h
|
|
821
821
|
}),
|
|
822
822
|
/* @__PURE__ */ a("div", {
|
|
823
|
-
className:
|
|
823
|
+
className: I.content,
|
|
824
824
|
children: [/* @__PURE__ */ i("p", {
|
|
825
|
-
className: m ?
|
|
825
|
+
className: m ? I.titleBold : I.titleMuted,
|
|
826
826
|
children: t
|
|
827
827
|
}), n && /* @__PURE__ */ i("p", {
|
|
828
|
-
className:
|
|
828
|
+
className: I.timestamp,
|
|
829
829
|
children: n
|
|
830
830
|
})]
|
|
831
831
|
}),
|
|
832
832
|
m && /* @__PURE__ */ i("span", {
|
|
833
|
-
className:
|
|
833
|
+
className: I.dot,
|
|
834
834
|
"aria-hidden": "true"
|
|
835
835
|
})
|
|
836
836
|
]
|
|
837
837
|
});
|
|
838
|
-
},
|
|
838
|
+
}, Je = {
|
|
839
839
|
stat: "_stat_krs8c_1",
|
|
840
840
|
labelRow: "_labelRow_krs8c_10",
|
|
841
841
|
label: "_label_krs8c_10",
|
|
842
842
|
value: "_value_krs8c_27"
|
|
843
|
-
},
|
|
844
|
-
className: [
|
|
843
|
+
}, Ye = ({ label: e, value: t, progress: n, className: r }) => /* @__PURE__ */ a("div", {
|
|
844
|
+
className: [Je.stat, r ?? ""].filter(Boolean).join(" "),
|
|
845
845
|
children: [/* @__PURE__ */ a("div", {
|
|
846
|
-
className:
|
|
846
|
+
className: Je.labelRow,
|
|
847
847
|
children: [/* @__PURE__ */ i("p", {
|
|
848
|
-
className:
|
|
848
|
+
className: Je.label,
|
|
849
849
|
children: e
|
|
850
850
|
}), /* @__PURE__ */ i("p", {
|
|
851
|
-
className:
|
|
851
|
+
className: Je.value,
|
|
852
852
|
children: t
|
|
853
853
|
})]
|
|
854
|
-
}), /* @__PURE__ */ i(
|
|
854
|
+
}), /* @__PURE__ */ i(Ve, {
|
|
855
855
|
value: n,
|
|
856
856
|
size: "lg",
|
|
857
857
|
label: e
|
|
858
858
|
})]
|
|
859
|
-
}),
|
|
859
|
+
}), Xe = {
|
|
860
860
|
balance: "_balance_5gcu5_1",
|
|
861
861
|
label: "_label_5gcu5_10",
|
|
862
862
|
amountRow: "_amountRow_5gcu5_19",
|
|
@@ -866,25 +866,25 @@ var Ge = {
|
|
|
866
866
|
fill: "_fill_5gcu5_50",
|
|
867
867
|
"fill--over": "_fill--over_5gcu5_57",
|
|
868
868
|
footer: "_footer_5gcu5_61"
|
|
869
|
-
},
|
|
869
|
+
}, Ze = (e) => e.toLocaleString("en-US", {
|
|
870
870
|
style: "currency",
|
|
871
871
|
currency: "USD"
|
|
872
|
-
}),
|
|
872
|
+
}), Qe = ({ label: e = "Spent this month", spent: t, limit: n, formatAmount: r = Ze, className: o }) => {
|
|
873
873
|
let s = t > n, c = s ? 100 : n > 0 ? t / n * 100 : 0, l = s ? `${r(t - n)} over your limit` : `${r(n - t)} remaining`;
|
|
874
874
|
return /* @__PURE__ */ a("div", {
|
|
875
|
-
className: [
|
|
875
|
+
className: [Xe.balance, o ?? ""].filter(Boolean).join(" "),
|
|
876
876
|
children: [
|
|
877
877
|
/* @__PURE__ */ i("p", {
|
|
878
|
-
className:
|
|
878
|
+
className: Xe.label,
|
|
879
879
|
children: e
|
|
880
880
|
}),
|
|
881
881
|
/* @__PURE__ */ a("div", {
|
|
882
|
-
className:
|
|
882
|
+
className: Xe.amountRow,
|
|
883
883
|
children: [/* @__PURE__ */ i("p", {
|
|
884
|
-
className:
|
|
884
|
+
className: Xe.amount,
|
|
885
885
|
children: r(t)
|
|
886
886
|
}), /* @__PURE__ */ a("p", {
|
|
887
|
-
className:
|
|
887
|
+
className: Xe.limit,
|
|
888
888
|
children: [
|
|
889
889
|
"of ",
|
|
890
890
|
r(n),
|
|
@@ -893,24 +893,24 @@ var Ge = {
|
|
|
893
893
|
})]
|
|
894
894
|
}),
|
|
895
895
|
/* @__PURE__ */ i("div", {
|
|
896
|
-
className:
|
|
896
|
+
className: Xe.track,
|
|
897
897
|
role: "progressbar",
|
|
898
898
|
"aria-label": e,
|
|
899
899
|
"aria-valuenow": Math.round(c),
|
|
900
900
|
"aria-valuemin": 0,
|
|
901
901
|
"aria-valuemax": 100,
|
|
902
902
|
children: /* @__PURE__ */ i("div", {
|
|
903
|
-
className: [
|
|
903
|
+
className: [Xe.fill, s ? Xe["fill--over"] : ""].filter(Boolean).join(" "),
|
|
904
904
|
style: { width: `${c}%` }
|
|
905
905
|
})
|
|
906
906
|
}),
|
|
907
907
|
/* @__PURE__ */ i("p", {
|
|
908
|
-
className:
|
|
908
|
+
className: Xe.footer,
|
|
909
909
|
children: l
|
|
910
910
|
})
|
|
911
911
|
]
|
|
912
912
|
});
|
|
913
|
-
},
|
|
913
|
+
}, $e = {
|
|
914
914
|
badge: "_badge_a5a38_6",
|
|
915
915
|
"badge--neutral-subtle": "_badge--neutral-subtle_a5a38_20",
|
|
916
916
|
"badge--neutral-solid": "_badge--neutral-solid_a5a38_21",
|
|
@@ -926,29 +926,29 @@ var Ge = {
|
|
|
926
926
|
"badge--info-solid": "_badge--info-solid_a5a38_41",
|
|
927
927
|
badge__icon: "_badge__icon_a5a38_44",
|
|
928
928
|
badge__label: "_badge__label_a5a38_45"
|
|
929
|
-
},
|
|
929
|
+
}, et = ({ variant: e = "neutral", emphasis: t = "subtle", leftIcon: n, rightIcon: r, children: o, className: s }) => /* @__PURE__ */ a("span", {
|
|
930
930
|
className: [
|
|
931
|
-
|
|
932
|
-
|
|
931
|
+
$e.badge,
|
|
932
|
+
$e[`badge--${e}-${t}`],
|
|
933
933
|
s ?? ""
|
|
934
934
|
].filter(Boolean).join(" "),
|
|
935
935
|
children: [
|
|
936
936
|
n && /* @__PURE__ */ i("span", {
|
|
937
|
-
className:
|
|
937
|
+
className: $e.badge__icon,
|
|
938
938
|
"aria-hidden": "true",
|
|
939
939
|
children: n
|
|
940
940
|
}),
|
|
941
941
|
/* @__PURE__ */ i("span", {
|
|
942
|
-
className:
|
|
942
|
+
className: $e.badge__label,
|
|
943
943
|
children: o
|
|
944
944
|
}),
|
|
945
945
|
r && /* @__PURE__ */ i("span", {
|
|
946
|
-
className:
|
|
946
|
+
className: $e.badge__icon,
|
|
947
947
|
"aria-hidden": "true",
|
|
948
948
|
children: r
|
|
949
949
|
})
|
|
950
950
|
]
|
|
951
|
-
}),
|
|
951
|
+
}), L = {
|
|
952
952
|
stepper: "_stepper_1w3rz_1",
|
|
953
953
|
stepBtn: "_stepBtn_1w3rz_10",
|
|
954
954
|
stepDivider: "_stepDivider_1w3rz_27",
|
|
@@ -967,7 +967,7 @@ var Ge = {
|
|
|
967
967
|
"roll-out-down": "_roll-out-down_1w3rz_1",
|
|
968
968
|
rollInDown: "_rollInDown_1w3rz_133",
|
|
969
969
|
"roll-in-down": "_roll-in-down_1w3rz_1"
|
|
970
|
-
},
|
|
970
|
+
}, tt = ({ value: t }) => {
|
|
971
971
|
let n = e.useRef(t), [r, o] = e.useState(null);
|
|
972
972
|
return t !== n.current && (o({
|
|
973
973
|
value: n.current,
|
|
@@ -977,30 +977,30 @@ var Ge = {
|
|
|
977
977
|
let e = setTimeout(() => o(null), 260);
|
|
978
978
|
return () => clearTimeout(e);
|
|
979
979
|
}, [r]), /* @__PURE__ */ a("span", {
|
|
980
|
-
className:
|
|
980
|
+
className: L.roll,
|
|
981
981
|
children: [r && /* @__PURE__ */ i("span", {
|
|
982
|
-
className: [
|
|
982
|
+
className: [L.rollNum, r.direction === "up" ? L.rollOutUp : L.rollOutDown].join(" "),
|
|
983
983
|
"aria-hidden": "true",
|
|
984
984
|
children: r.value
|
|
985
985
|
}, `out-${r.value}`), /* @__PURE__ */ i("span", {
|
|
986
|
-
className: [
|
|
986
|
+
className: [L.rollNum, r ? r.direction === "up" ? L.rollInUp : L.rollInDown : ""].filter(Boolean).join(" "),
|
|
987
987
|
onAnimationEnd: () => o(null),
|
|
988
988
|
children: t
|
|
989
989
|
}, `in-${t}`)]
|
|
990
990
|
});
|
|
991
|
-
},
|
|
991
|
+
}, nt = ({ quantity: t, onQuantityChange: n, min: r = 1, max: o, label: s = "Quantity", className: c }) => {
|
|
992
992
|
let l = t > r, u = o === void 0 || t < o, d = e.useRef(null), [f, p] = e.useState(!1), [m, h] = e.useState(String(t)), g = (e) => {
|
|
993
993
|
let t = e;
|
|
994
994
|
return r !== void 0 && (t = Math.max(r, t)), o !== void 0 && (t = Math.min(o, t)), t;
|
|
995
995
|
};
|
|
996
996
|
return /* @__PURE__ */ a("div", {
|
|
997
|
-
className: [
|
|
997
|
+
className: [L.stepper, c ?? ""].filter(Boolean).join(" "),
|
|
998
998
|
role: "group",
|
|
999
999
|
"aria-label": s,
|
|
1000
1000
|
children: [
|
|
1001
1001
|
/* @__PURE__ */ i("button", {
|
|
1002
1002
|
type: "button",
|
|
1003
|
-
className:
|
|
1003
|
+
className: L.stepBtn,
|
|
1004
1004
|
disabled: !l,
|
|
1005
1005
|
onClick: () => n?.(Math.max(r, t - 1)),
|
|
1006
1006
|
"aria-label": "Decrease quantity",
|
|
@@ -1010,17 +1010,17 @@ var Ge = {
|
|
|
1010
1010
|
})
|
|
1011
1011
|
}),
|
|
1012
1012
|
/* @__PURE__ */ i("span", {
|
|
1013
|
-
className:
|
|
1013
|
+
className: L.stepDivider,
|
|
1014
1014
|
"aria-hidden": "true"
|
|
1015
1015
|
}),
|
|
1016
1016
|
/* @__PURE__ */ a("span", {
|
|
1017
|
-
className:
|
|
1017
|
+
className: L.stepValue,
|
|
1018
1018
|
children: [/* @__PURE__ */ i("input", {
|
|
1019
1019
|
ref: d,
|
|
1020
1020
|
type: "text",
|
|
1021
1021
|
inputMode: "numeric",
|
|
1022
1022
|
size: Math.max((f ? m : String(t)).length, 1),
|
|
1023
|
-
className: [
|
|
1023
|
+
className: [L.stepInput, f ? "" : L.stepInputResting].filter(Boolean).join(" "),
|
|
1024
1024
|
value: f ? m : String(t),
|
|
1025
1025
|
"aria-label": s,
|
|
1026
1026
|
onFocus: (e) => {
|
|
@@ -1039,18 +1039,18 @@ var Ge = {
|
|
|
1039
1039
|
e.key === "Enter" && (e.preventDefault(), d.current?.blur()), e.key === "Escape" && (h(String(t)), d.current?.blur());
|
|
1040
1040
|
}
|
|
1041
1041
|
}), /* @__PURE__ */ i("span", {
|
|
1042
|
-
className: [
|
|
1042
|
+
className: [L.rollOverlay, f ? L.rollOverlayHidden : ""].filter(Boolean).join(" "),
|
|
1043
1043
|
"aria-hidden": "true",
|
|
1044
|
-
children: /* @__PURE__ */ i(
|
|
1044
|
+
children: /* @__PURE__ */ i(tt, { value: t })
|
|
1045
1045
|
})]
|
|
1046
1046
|
}),
|
|
1047
1047
|
/* @__PURE__ */ i("span", {
|
|
1048
|
-
className:
|
|
1048
|
+
className: L.stepDivider,
|
|
1049
1049
|
"aria-hidden": "true"
|
|
1050
1050
|
}),
|
|
1051
1051
|
/* @__PURE__ */ i("button", {
|
|
1052
1052
|
type: "button",
|
|
1053
|
-
className:
|
|
1053
|
+
className: L.stepBtn,
|
|
1054
1054
|
disabled: !u,
|
|
1055
1055
|
onClick: () => n?.(o === void 0 ? t + 1 : Math.min(o, t + 1)),
|
|
1056
1056
|
"aria-label": "Increase quantity",
|
|
@@ -1061,7 +1061,7 @@ var Ge = {
|
|
|
1061
1061
|
})
|
|
1062
1062
|
]
|
|
1063
1063
|
});
|
|
1064
|
-
},
|
|
1064
|
+
}, R = {
|
|
1065
1065
|
item: "_item_15jww_1",
|
|
1066
1066
|
thumb: "_thumb_15jww_11",
|
|
1067
1067
|
info: "_info_15jww_19",
|
|
@@ -1072,31 +1072,31 @@ var Ge = {
|
|
|
1072
1072
|
priceRow: "_priceRow_15jww_67",
|
|
1073
1073
|
priceOriginal: "_priceOriginal_15jww_75",
|
|
1074
1074
|
priceSale: "_priceSale_15jww_80"
|
|
1075
|
-
},
|
|
1075
|
+
}, rt = (e) => e.toLocaleString("en-US", {
|
|
1076
1076
|
style: "currency",
|
|
1077
1077
|
currency: "USD"
|
|
1078
|
-
}),
|
|
1078
|
+
}), it = ({ image: e, imageAlt: t, name: n, variant: r, price: o, compareAtPrice: s, quantity: c, onQuantityChange: l, minQuantity: u = 1, maxQuantity: d, onRemove: f, removeLabel: p = "Remove item", formatPrice: m = rt, className: h }) => {
|
|
1079
1079
|
let g = s !== void 0;
|
|
1080
1080
|
return /* @__PURE__ */ a("div", {
|
|
1081
|
-
className: [
|
|
1081
|
+
className: [R.item, h ?? ""].filter(Boolean).join(" "),
|
|
1082
1082
|
children: [
|
|
1083
1083
|
/* @__PURE__ */ i("img", {
|
|
1084
1084
|
src: e,
|
|
1085
1085
|
alt: t ?? n,
|
|
1086
|
-
className:
|
|
1086
|
+
className: R.thumb
|
|
1087
1087
|
}),
|
|
1088
1088
|
/* @__PURE__ */ a("div", {
|
|
1089
|
-
className:
|
|
1089
|
+
className: R.info,
|
|
1090
1090
|
children: [
|
|
1091
1091
|
/* @__PURE__ */ i("p", {
|
|
1092
|
-
className:
|
|
1092
|
+
className: R.name,
|
|
1093
1093
|
children: n
|
|
1094
1094
|
}),
|
|
1095
1095
|
r && /* @__PURE__ */ i("p", {
|
|
1096
|
-
className:
|
|
1096
|
+
className: R.variant,
|
|
1097
1097
|
children: r
|
|
1098
1098
|
}),
|
|
1099
|
-
/* @__PURE__ */ i(
|
|
1099
|
+
/* @__PURE__ */ i(nt, {
|
|
1100
1100
|
quantity: c,
|
|
1101
1101
|
onQuantityChange: l,
|
|
1102
1102
|
min: u,
|
|
@@ -1106,20 +1106,20 @@ var Ge = {
|
|
|
1106
1106
|
]
|
|
1107
1107
|
}),
|
|
1108
1108
|
/* @__PURE__ */ a("div", {
|
|
1109
|
-
className:
|
|
1109
|
+
className: R.right,
|
|
1110
1110
|
children: [g ? /* @__PURE__ */ a("div", {
|
|
1111
|
-
className:
|
|
1111
|
+
className: R.priceRow,
|
|
1112
1112
|
children: [/* @__PURE__ */ i("span", {
|
|
1113
|
-
className:
|
|
1113
|
+
className: R.priceOriginal,
|
|
1114
1114
|
children: m(s)
|
|
1115
1115
|
}), /* @__PURE__ */ i("span", {
|
|
1116
|
-
className:
|
|
1116
|
+
className: R.priceSale,
|
|
1117
1117
|
children: m(o)
|
|
1118
1118
|
})]
|
|
1119
1119
|
}) : /* @__PURE__ */ i("p", {
|
|
1120
|
-
className:
|
|
1120
|
+
className: R.price,
|
|
1121
1121
|
children: m(o)
|
|
1122
|
-
}), /* @__PURE__ */ i(
|
|
1122
|
+
}), /* @__PURE__ */ i(ke, {
|
|
1123
1123
|
icon: C,
|
|
1124
1124
|
variant: "outline",
|
|
1125
1125
|
size: "sm",
|
|
@@ -1129,7 +1129,7 @@ var Ge = {
|
|
|
1129
1129
|
})
|
|
1130
1130
|
]
|
|
1131
1131
|
});
|
|
1132
|
-
},
|
|
1132
|
+
}, z = {
|
|
1133
1133
|
steps: "_steps_t53um_1",
|
|
1134
1134
|
step: "_step_t53um_1",
|
|
1135
1135
|
connector: "_connector_t53um_16",
|
|
@@ -1140,26 +1140,26 @@ var Ge = {
|
|
|
1140
1140
|
label: "_label_t53um_49",
|
|
1141
1141
|
labelActive: "_labelActive_t53um_56",
|
|
1142
1142
|
labelUpcoming: "_labelUpcoming_t53um_59"
|
|
1143
|
-
},
|
|
1143
|
+
}, at = [
|
|
1144
1144
|
"Cart",
|
|
1145
1145
|
"Shipping",
|
|
1146
1146
|
"Payment",
|
|
1147
1147
|
"Confirmation"
|
|
1148
|
-
],
|
|
1149
|
-
className: [
|
|
1148
|
+
], ot = ({ steps: t = at, currentStep: n, className: r }) => /* @__PURE__ */ i("div", {
|
|
1149
|
+
className: [z.steps, r ?? ""].filter(Boolean).join(" "),
|
|
1150
1150
|
role: "list",
|
|
1151
1151
|
children: t.map((r, o) => {
|
|
1152
1152
|
let s = o < n ? "completed" : o === n ? "active" : "upcoming", c = o === t.length - 1;
|
|
1153
1153
|
return /* @__PURE__ */ a(e.Fragment, { children: [/* @__PURE__ */ a("div", {
|
|
1154
|
-
className:
|
|
1154
|
+
className: z.step,
|
|
1155
1155
|
role: "listitem",
|
|
1156
1156
|
"aria-current": s === "active" ? "step" : void 0,
|
|
1157
1157
|
children: [/* @__PURE__ */ i("span", {
|
|
1158
1158
|
className: [
|
|
1159
|
-
|
|
1160
|
-
s === "completed" ?
|
|
1161
|
-
s === "active" ?
|
|
1162
|
-
s === "upcoming" ?
|
|
1159
|
+
z.circle,
|
|
1160
|
+
s === "completed" ? z.circleCompleted : "",
|
|
1161
|
+
s === "active" ? z.circleActive : "",
|
|
1162
|
+
s === "upcoming" ? z.circleUpcoming : ""
|
|
1163
1163
|
].filter(Boolean).join(" "),
|
|
1164
1164
|
"aria-hidden": "true",
|
|
1165
1165
|
children: /* @__PURE__ */ i(l, {
|
|
@@ -1168,46 +1168,46 @@ var Ge = {
|
|
|
1168
1168
|
})
|
|
1169
1169
|
}), /* @__PURE__ */ i("span", {
|
|
1170
1170
|
className: [
|
|
1171
|
-
|
|
1172
|
-
s === "active" ?
|
|
1173
|
-
s === "upcoming" ?
|
|
1171
|
+
z.label,
|
|
1172
|
+
s === "active" ? z.labelActive : "",
|
|
1173
|
+
s === "upcoming" ? z.labelUpcoming : ""
|
|
1174
1174
|
].filter(Boolean).join(" "),
|
|
1175
1175
|
children: r
|
|
1176
1176
|
})]
|
|
1177
1177
|
}), !c && /* @__PURE__ */ i("span", {
|
|
1178
|
-
className:
|
|
1178
|
+
className: z.connector,
|
|
1179
1179
|
"aria-hidden": "true"
|
|
1180
1180
|
})] }, r);
|
|
1181
1181
|
})
|
|
1182
|
-
}),
|
|
1182
|
+
}), st = "#fafaf9", ct = "#141414", lt = (e, t, n) => {
|
|
1183
1183
|
let r = (e) => {
|
|
1184
1184
|
let t = e / 255;
|
|
1185
1185
|
return t <= .03928 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
|
|
1186
1186
|
};
|
|
1187
1187
|
return .2126 * r(e) + .7152 * r(t) + .0722 * r(n);
|
|
1188
|
-
},
|
|
1188
|
+
}, ut = (e, t) => {
|
|
1189
1189
|
let n = Math.max(e, t), r = Math.min(e, t);
|
|
1190
1190
|
return (n + .05) / (r + .05);
|
|
1191
|
-
},
|
|
1192
|
-
if (typeof document > "u") return
|
|
1193
|
-
|
|
1194
|
-
let t =
|
|
1195
|
-
if (!t) return
|
|
1191
|
+
}, dt = null, ft = (e) => {
|
|
1192
|
+
if (typeof document > "u") return st;
|
|
1193
|
+
dt ??= document.createElement("canvas"), dt.width = 1, dt.height = 1;
|
|
1194
|
+
let t = dt.getContext("2d", { willReadFrequently: !0 });
|
|
1195
|
+
if (!t) return st;
|
|
1196
1196
|
t.clearRect(0, 0, 1, 1), t.fillStyle = e, t.fillRect(0, 0, 1, 1);
|
|
1197
|
-
let [n, r, i] = t.getImageData(0, 0, 1, 1).data, a =
|
|
1198
|
-
return
|
|
1199
|
-
},
|
|
1197
|
+
let [n, r, i] = t.getImageData(0, 0, 1, 1).data, a = lt(n, r, i), o = ut(a, lt(20, 20, 20));
|
|
1198
|
+
return ut(a, lt(250, 250, 249)) >= o ? st : ct;
|
|
1199
|
+
}, pt = {
|
|
1200
1200
|
swatch: "_swatch_1i3c3_1",
|
|
1201
1201
|
circle: "_circle_1i3c3_22",
|
|
1202
1202
|
circleUnavailable: "_circleUnavailable_1i3c3_32",
|
|
1203
1203
|
ring: "_ring_1i3c3_39",
|
|
1204
1204
|
check: "_check_1i3c3_55",
|
|
1205
1205
|
strike: "_strike_1i3c3_66"
|
|
1206
|
-
},
|
|
1207
|
-
let u = e.useMemo(() =>
|
|
1206
|
+
}, mt = ({ color: t, label: n, selected: r = !1, available: o = !0, onSelect: s, className: c }) => {
|
|
1207
|
+
let u = e.useMemo(() => ft(t), [t]);
|
|
1208
1208
|
return /* @__PURE__ */ a("button", {
|
|
1209
1209
|
type: "button",
|
|
1210
|
-
className: [
|
|
1210
|
+
className: [pt.swatch, c ?? ""].filter(Boolean).join(" "),
|
|
1211
1211
|
style: { "--swatch-color": t },
|
|
1212
1212
|
disabled: !o,
|
|
1213
1213
|
"aria-pressed": o ? r : void 0,
|
|
@@ -1215,49 +1215,49 @@ var Ge = {
|
|
|
1215
1215
|
onClick: s,
|
|
1216
1216
|
children: [
|
|
1217
1217
|
r && o && /* @__PURE__ */ i("span", {
|
|
1218
|
-
className:
|
|
1218
|
+
className: pt.ring,
|
|
1219
1219
|
"aria-hidden": "true"
|
|
1220
1220
|
}),
|
|
1221
1221
|
/* @__PURE__ */ i("span", {
|
|
1222
|
-
className: [
|
|
1222
|
+
className: [pt.circle, o ? "" : pt.circleUnavailable].filter(Boolean).join(" "),
|
|
1223
1223
|
"aria-hidden": "true"
|
|
1224
1224
|
}),
|
|
1225
1225
|
r && o && /* @__PURE__ */ i(l, {
|
|
1226
1226
|
size: 14,
|
|
1227
1227
|
strokeWidth: O(14),
|
|
1228
|
-
className:
|
|
1228
|
+
className: pt.check,
|
|
1229
1229
|
style: { color: u },
|
|
1230
1230
|
"aria-hidden": "true"
|
|
1231
1231
|
}),
|
|
1232
1232
|
!o && /* @__PURE__ */ i("span", {
|
|
1233
|
-
className:
|
|
1233
|
+
className: pt.strike,
|
|
1234
1234
|
style: { background: u },
|
|
1235
1235
|
"aria-hidden": "true"
|
|
1236
1236
|
})
|
|
1237
1237
|
]
|
|
1238
1238
|
});
|
|
1239
|
-
},
|
|
1239
|
+
}, ht = {
|
|
1240
1240
|
row: "_row_1r4ef_1",
|
|
1241
1241
|
original: "_original_1r4ef_8",
|
|
1242
1242
|
price: "_price_1r4ef_17",
|
|
1243
1243
|
priceSale: "_priceSale_1r4ef_24"
|
|
1244
|
-
},
|
|
1244
|
+
}, gt = (e) => e.toLocaleString("en-US", {
|
|
1245
1245
|
style: "currency",
|
|
1246
1246
|
currency: "USD"
|
|
1247
|
-
}),
|
|
1247
|
+
}), _t = ({ price: e, compareAtPrice: t, showBadge: n = !1, formatPrice: r = gt, className: o }) => {
|
|
1248
1248
|
let s = t !== void 0, c = s ? Math.ceil((1 - e / t) * 100) : 0;
|
|
1249
1249
|
return /* @__PURE__ */ a("div", {
|
|
1250
|
-
className: [
|
|
1250
|
+
className: [ht.row, o ?? ""].filter(Boolean).join(" "),
|
|
1251
1251
|
children: [
|
|
1252
1252
|
s && /* @__PURE__ */ i("span", {
|
|
1253
|
-
className:
|
|
1253
|
+
className: ht.original,
|
|
1254
1254
|
children: r(t)
|
|
1255
1255
|
}),
|
|
1256
1256
|
/* @__PURE__ */ i("span", {
|
|
1257
|
-
className: [
|
|
1257
|
+
className: [ht.price, s ? ht.priceSale : ""].filter(Boolean).join(" "),
|
|
1258
1258
|
children: r(e)
|
|
1259
1259
|
}),
|
|
1260
|
-
s && n && /* @__PURE__ */ a(
|
|
1260
|
+
s && n && /* @__PURE__ */ a(et, {
|
|
1261
1261
|
variant: "danger",
|
|
1262
1262
|
emphasis: "solid",
|
|
1263
1263
|
children: [
|
|
@@ -1268,17 +1268,17 @@ var Ge = {
|
|
|
1268
1268
|
})
|
|
1269
1269
|
]
|
|
1270
1270
|
});
|
|
1271
|
-
},
|
|
1271
|
+
}, vt = {
|
|
1272
1272
|
button: "_button_1mp7q_1",
|
|
1273
1273
|
icon: "_icon_1mp7q_24",
|
|
1274
1274
|
iconSaved: "_iconSaved_1mp7q_27",
|
|
1275
1275
|
bounce: "_bounce_1mp7q_40",
|
|
1276
1276
|
"wishlist-bounce": "_wishlist-bounce_1mp7q_1"
|
|
1277
|
-
},
|
|
1277
|
+
}, yt = ({ saved: t = !1, onToggle: n, label: r = "item", className: a }) => {
|
|
1278
1278
|
let [o, s] = e.useState(!1);
|
|
1279
1279
|
return /* @__PURE__ */ i("button", {
|
|
1280
1280
|
type: "button",
|
|
1281
|
-
className: [
|
|
1281
|
+
className: [vt.button, a ?? ""].filter(Boolean).join(" "),
|
|
1282
1282
|
"aria-pressed": t,
|
|
1283
1283
|
"aria-label": t ? `Remove ${r} from wishlist` : `Add ${r} to wishlist`,
|
|
1284
1284
|
onClick: () => {
|
|
@@ -1287,12 +1287,12 @@ var Ge = {
|
|
|
1287
1287
|
children: /* @__PURE__ */ i(x, {
|
|
1288
1288
|
size: 16,
|
|
1289
1289
|
strokeWidth: O(16),
|
|
1290
|
-
className: [t ?
|
|
1290
|
+
className: [t ? vt.iconSaved : vt.icon, o ? vt.bounce : ""].filter(Boolean).join(" "),
|
|
1291
1291
|
fill: t ? "currentColor" : "none",
|
|
1292
1292
|
onAnimationEnd: () => s(!1)
|
|
1293
1293
|
})
|
|
1294
1294
|
});
|
|
1295
|
-
},
|
|
1295
|
+
}, B = {
|
|
1296
1296
|
card: "_card_jlv97_1",
|
|
1297
1297
|
imageWrap: "_imageWrap_jlv97_16",
|
|
1298
1298
|
image: "_image_jlv97_16",
|
|
@@ -1312,97 +1312,97 @@ var Ge = {
|
|
|
1312
1312
|
description: "_description_jlv97_118",
|
|
1313
1313
|
swatches: "_swatches_jlv97_131",
|
|
1314
1314
|
addButton: "_addButton_jlv97_136"
|
|
1315
|
-
},
|
|
1315
|
+
}, bt = (e) => e.toLocaleString("en-US", {
|
|
1316
1316
|
style: "currency",
|
|
1317
1317
|
currency: "USD"
|
|
1318
|
-
}),
|
|
1318
|
+
}), xt = ({ image: e, imageAlt: t, name: n, description: r, price: o, compareAtPrice: s, rating: c, reviewCount: l, colors: u = [], onColorSelect: d, inStock: f = !0, wishlisted: p = !1, onWishlistToggle: m, onAddItem: h, addItemLabel: g = "Add Item", formatPrice: _ = bt, className: v }) => {
|
|
1319
1319
|
let y = s !== void 0, b = y ? Math.ceil((1 - o / s) * 100) : 0, x = c === void 0 ? 0 : Math.round(c);
|
|
1320
1320
|
return /* @__PURE__ */ a("div", {
|
|
1321
|
-
className: [
|
|
1321
|
+
className: [B.card, v ?? ""].filter(Boolean).join(" "),
|
|
1322
1322
|
children: [/* @__PURE__ */ a("div", {
|
|
1323
|
-
className:
|
|
1323
|
+
className: B.imageWrap,
|
|
1324
1324
|
children: [
|
|
1325
1325
|
/* @__PURE__ */ i("img", {
|
|
1326
1326
|
src: e,
|
|
1327
1327
|
alt: t ?? n,
|
|
1328
|
-
className: [
|
|
1328
|
+
className: [B.image, f ? "" : B.imageDimmed].filter(Boolean).join(" ")
|
|
1329
1329
|
}),
|
|
1330
|
-
y && f && /* @__PURE__ */ a(
|
|
1330
|
+
y && f && /* @__PURE__ */ a(et, {
|
|
1331
1331
|
variant: "danger",
|
|
1332
1332
|
emphasis: "solid",
|
|
1333
|
-
className:
|
|
1333
|
+
className: B.saleBadge,
|
|
1334
1334
|
children: [
|
|
1335
1335
|
"-",
|
|
1336
1336
|
b,
|
|
1337
1337
|
"%"
|
|
1338
1338
|
]
|
|
1339
1339
|
}),
|
|
1340
|
-
f && /* @__PURE__ */ i(
|
|
1340
|
+
f && /* @__PURE__ */ i(yt, {
|
|
1341
1341
|
saved: p,
|
|
1342
1342
|
label: n,
|
|
1343
|
-
className:
|
|
1343
|
+
className: B.wishlistBtn,
|
|
1344
1344
|
onToggle: m
|
|
1345
1345
|
}),
|
|
1346
1346
|
!f && /* @__PURE__ */ i("span", {
|
|
1347
|
-
className:
|
|
1347
|
+
className: B.outOfStockLabel,
|
|
1348
1348
|
children: "Out of stock"
|
|
1349
1349
|
})
|
|
1350
1350
|
]
|
|
1351
1351
|
}), /* @__PURE__ */ a("div", {
|
|
1352
|
-
className:
|
|
1352
|
+
className: B.body,
|
|
1353
1353
|
children: [
|
|
1354
1354
|
c !== void 0 && /* @__PURE__ */ i("div", {
|
|
1355
|
-
className:
|
|
1355
|
+
className: B.rating,
|
|
1356
1356
|
role: "img",
|
|
1357
1357
|
"aria-label": `Rated ${c} out of 5${l ? ` (${l} reviews)` : ""}`,
|
|
1358
1358
|
children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ i(re, {
|
|
1359
1359
|
size: 16,
|
|
1360
1360
|
strokeWidth: O(16),
|
|
1361
|
-
className: t < x ?
|
|
1361
|
+
className: t < x ? B.starFilled : B.starEmpty,
|
|
1362
1362
|
fill: t < x ? "currentColor" : "none"
|
|
1363
1363
|
}, t))
|
|
1364
1364
|
}),
|
|
1365
1365
|
/* @__PURE__ */ a("div", {
|
|
1366
|
-
className:
|
|
1366
|
+
className: B.titleRow,
|
|
1367
1367
|
children: [/* @__PURE__ */ i("p", {
|
|
1368
|
-
className:
|
|
1368
|
+
className: B.name,
|
|
1369
1369
|
children: n
|
|
1370
1370
|
}), /* @__PURE__ */ a("div", {
|
|
1371
|
-
className:
|
|
1371
|
+
className: B.priceRow,
|
|
1372
1372
|
children: [y && /* @__PURE__ */ i("span", {
|
|
1373
|
-
className:
|
|
1373
|
+
className: B.priceOriginal,
|
|
1374
1374
|
children: _(s)
|
|
1375
1375
|
}), /* @__PURE__ */ i("span", {
|
|
1376
|
-
className:
|
|
1376
|
+
className: B.price,
|
|
1377
1377
|
children: _(o)
|
|
1378
1378
|
})]
|
|
1379
1379
|
})]
|
|
1380
1380
|
}),
|
|
1381
1381
|
r && /* @__PURE__ */ i("p", {
|
|
1382
|
-
className:
|
|
1382
|
+
className: B.description,
|
|
1383
1383
|
children: r
|
|
1384
1384
|
}),
|
|
1385
1385
|
u.length > 0 && /* @__PURE__ */ i("div", {
|
|
1386
|
-
className:
|
|
1386
|
+
className: B.swatches,
|
|
1387
1387
|
role: "group",
|
|
1388
1388
|
"aria-label": "Color",
|
|
1389
|
-
children: u.map((e) => /* @__PURE__ */ i(
|
|
1389
|
+
children: u.map((e) => /* @__PURE__ */ i(mt, {
|
|
1390
1390
|
...e,
|
|
1391
1391
|
onSelect: () => d?.(e.id ?? e.label)
|
|
1392
1392
|
}, e.id ?? e.label))
|
|
1393
1393
|
}),
|
|
1394
|
-
/* @__PURE__ */ i(
|
|
1394
|
+
/* @__PURE__ */ i(M, {
|
|
1395
1395
|
variant: "primary",
|
|
1396
1396
|
size: "md",
|
|
1397
1397
|
disabled: !f,
|
|
1398
|
-
className:
|
|
1398
|
+
className: B.addButton,
|
|
1399
1399
|
onClick: h,
|
|
1400
1400
|
children: f ? g : "Out of stock"
|
|
1401
1401
|
})
|
|
1402
1402
|
]
|
|
1403
1403
|
})]
|
|
1404
1404
|
});
|
|
1405
|
-
},
|
|
1405
|
+
}, V = {
|
|
1406
1406
|
gallery: "_gallery_1mrk8_1",
|
|
1407
1407
|
galleryBottom: "_galleryBottom_1mrk8_5",
|
|
1408
1408
|
galleryLeft: "_galleryLeft_1mrk8_10",
|
|
@@ -1417,11 +1417,11 @@ var Ge = {
|
|
|
1417
1417
|
thumbLeft: "_thumbLeft_1mrk8_70",
|
|
1418
1418
|
thumbActive: "_thumbActive_1mrk8_75",
|
|
1419
1419
|
thumbImage: "_thumbImage_1mrk8_79"
|
|
1420
|
-
},
|
|
1420
|
+
}, St = ({ images: t, thumbsPosition: n = "bottom", activeIndex: r, defaultActiveIndex: o = 0, onActiveIndexChange: s, className: c }) => {
|
|
1421
1421
|
let l = r !== void 0, [u, d] = e.useState(o), f = l ? r : u, p = (e) => {
|
|
1422
1422
|
l || d(e), s?.(e);
|
|
1423
1423
|
}, m = t[f] ?? t[0], h = n === "left", g = /* @__PURE__ */ i("div", {
|
|
1424
|
-
className: [
|
|
1424
|
+
className: [V.thumbs, h ? V.thumbsLeft : V.thumbsBottom].filter(Boolean).join(" "),
|
|
1425
1425
|
role: "tablist",
|
|
1426
1426
|
"aria-label": "Product images",
|
|
1427
1427
|
children: t.map((e, t) => /* @__PURE__ */ i("button", {
|
|
@@ -1430,56 +1430,56 @@ var Ge = {
|
|
|
1430
1430
|
"aria-selected": t === f,
|
|
1431
1431
|
"aria-label": e.alt ?? `Image ${t + 1}`,
|
|
1432
1432
|
className: [
|
|
1433
|
-
|
|
1434
|
-
h ?
|
|
1435
|
-
t === f ?
|
|
1433
|
+
V.thumb,
|
|
1434
|
+
h ? V.thumbLeft : V.thumbBottom,
|
|
1435
|
+
t === f ? V.thumbActive : ""
|
|
1436
1436
|
].filter(Boolean).join(" "),
|
|
1437
1437
|
onClick: () => p(t),
|
|
1438
1438
|
children: /* @__PURE__ */ i("img", {
|
|
1439
1439
|
src: e.src,
|
|
1440
1440
|
alt: "",
|
|
1441
|
-
className:
|
|
1441
|
+
className: V.thumbImage
|
|
1442
1442
|
})
|
|
1443
1443
|
}, e.src + t))
|
|
1444
1444
|
});
|
|
1445
1445
|
return /* @__PURE__ */ a("div", {
|
|
1446
1446
|
className: [
|
|
1447
|
-
|
|
1448
|
-
h ?
|
|
1447
|
+
V.gallery,
|
|
1448
|
+
h ? V.galleryLeft : V.galleryBottom,
|
|
1449
1449
|
c ?? ""
|
|
1450
1450
|
].filter(Boolean).join(" "),
|
|
1451
1451
|
children: [
|
|
1452
1452
|
!h && m && /* @__PURE__ */ i("div", {
|
|
1453
|
-
className:
|
|
1453
|
+
className: V.mainBottom,
|
|
1454
1454
|
children: /* @__PURE__ */ i("img", {
|
|
1455
1455
|
src: m.src,
|
|
1456
1456
|
alt: m.alt ?? "",
|
|
1457
|
-
className:
|
|
1457
|
+
className: V.mainImage
|
|
1458
1458
|
})
|
|
1459
1459
|
}),
|
|
1460
1460
|
g,
|
|
1461
1461
|
h && m && /* @__PURE__ */ i("div", {
|
|
1462
|
-
className:
|
|
1462
|
+
className: V.mainLeft,
|
|
1463
1463
|
children: /* @__PURE__ */ i("img", {
|
|
1464
1464
|
src: m.src,
|
|
1465
1465
|
alt: m.alt ?? "",
|
|
1466
|
-
className:
|
|
1466
|
+
className: V.mainImage
|
|
1467
1467
|
})
|
|
1468
1468
|
})
|
|
1469
1469
|
]
|
|
1470
1470
|
});
|
|
1471
|
-
},
|
|
1471
|
+
}, Ct = {
|
|
1472
1472
|
button: "_button_1vgn5_1",
|
|
1473
1473
|
unselected: "_unselected_1vgn5_23",
|
|
1474
1474
|
selected: "_selected_1vgn5_32",
|
|
1475
1475
|
unavailable: "_unavailable_1vgn5_37",
|
|
1476
1476
|
label: "_label_1vgn5_44",
|
|
1477
1477
|
strike: "_strike_1vgn5_55"
|
|
1478
|
-
},
|
|
1478
|
+
}, wt = ({ size: e, selected: t = !1, available: n = !0, onSelect: r, className: o }) => /* @__PURE__ */ a("button", {
|
|
1479
1479
|
type: "button",
|
|
1480
1480
|
className: [
|
|
1481
|
-
|
|
1482
|
-
n ? t ?
|
|
1481
|
+
Ct.button,
|
|
1482
|
+
n ? t ? Ct.selected : Ct.unselected : Ct.unavailable,
|
|
1483
1483
|
o ?? ""
|
|
1484
1484
|
].filter(Boolean).join(" "),
|
|
1485
1485
|
disabled: !n,
|
|
@@ -1487,13 +1487,13 @@ var Ge = {
|
|
|
1487
1487
|
"aria-label": n ? `Size ${e}` : `Size ${e} (out of stock)`,
|
|
1488
1488
|
onClick: r,
|
|
1489
1489
|
children: [/* @__PURE__ */ i("span", {
|
|
1490
|
-
className:
|
|
1490
|
+
className: Ct.label,
|
|
1491
1491
|
children: e
|
|
1492
1492
|
}), !n && /* @__PURE__ */ i("span", {
|
|
1493
|
-
className:
|
|
1493
|
+
className: Ct.strike,
|
|
1494
1494
|
"aria-hidden": "true"
|
|
1495
1495
|
})]
|
|
1496
|
-
}),
|
|
1496
|
+
}), Tt = {
|
|
1497
1497
|
row: "_row_1snsi_1",
|
|
1498
1498
|
rowVertical: "_rowVertical_1snsi_8",
|
|
1499
1499
|
stars: "_stars_1snsi_13",
|
|
@@ -1502,40 +1502,40 @@ var Ge = {
|
|
|
1502
1502
|
label: "_label_1snsi_29",
|
|
1503
1503
|
value: "_value_1snsi_38",
|
|
1504
1504
|
count: "_count_1snsi_43"
|
|
1505
|
-
},
|
|
1505
|
+
}, Et = (e) => e.toLocaleString("en-US"), Dt = ({ rating: e, reviewCount: t, showLabel: n = !0, orientation: r = "horizontal", formatReviewCount: o = Et, className: s }) => {
|
|
1506
1506
|
let c = Math.max(0, Math.min(5, e)), l = Math.round(c * 2) / 2, u = Math.floor(l), d = l - u === .5, f = 5 - u - !!d, p = /* @__PURE__ */ a("div", {
|
|
1507
|
-
className:
|
|
1507
|
+
className: Tt.stars,
|
|
1508
1508
|
role: "img",
|
|
1509
1509
|
"aria-label": `${c} out of 5 stars`,
|
|
1510
1510
|
children: [
|
|
1511
1511
|
Array.from({ length: u }, (e, t) => /* @__PURE__ */ i(re, {
|
|
1512
1512
|
size: 24,
|
|
1513
1513
|
strokeWidth: O(24),
|
|
1514
|
-
className:
|
|
1514
|
+
className: Tt.starFull,
|
|
1515
1515
|
fill: "currentColor",
|
|
1516
1516
|
"aria-hidden": "true"
|
|
1517
1517
|
}, `full-${t}`)),
|
|
1518
1518
|
d && /* @__PURE__ */ i(ie, {
|
|
1519
1519
|
size: 24,
|
|
1520
1520
|
strokeWidth: O(24),
|
|
1521
|
-
className:
|
|
1521
|
+
className: Tt.starFull,
|
|
1522
1522
|
fill: "currentColor",
|
|
1523
1523
|
"aria-hidden": "true"
|
|
1524
1524
|
}),
|
|
1525
1525
|
Array.from({ length: f }, (e, t) => /* @__PURE__ */ i(re, {
|
|
1526
1526
|
size: 24,
|
|
1527
1527
|
strokeWidth: O(24),
|
|
1528
|
-
className:
|
|
1528
|
+
className: Tt.starEmpty,
|
|
1529
1529
|
"aria-hidden": "true"
|
|
1530
1530
|
}, `empty-${t}`))
|
|
1531
1531
|
]
|
|
1532
1532
|
}), m = n && /* @__PURE__ */ a("div", {
|
|
1533
|
-
className:
|
|
1533
|
+
className: Tt.label,
|
|
1534
1534
|
children: [/* @__PURE__ */ i("span", {
|
|
1535
|
-
className:
|
|
1535
|
+
className: Tt.value,
|
|
1536
1536
|
children: c.toFixed(1)
|
|
1537
1537
|
}), t !== void 0 && /* @__PURE__ */ a("span", {
|
|
1538
|
-
className:
|
|
1538
|
+
className: Tt.count,
|
|
1539
1539
|
children: [
|
|
1540
1540
|
"(",
|
|
1541
1541
|
o(t),
|
|
@@ -1543,8 +1543,8 @@ var Ge = {
|
|
|
1543
1543
|
]
|
|
1544
1544
|
})]
|
|
1545
1545
|
}), h = [
|
|
1546
|
-
|
|
1547
|
-
r === "vertical" ?
|
|
1546
|
+
Tt.row,
|
|
1547
|
+
r === "vertical" ? Tt.rowVertical : "",
|
|
1548
1548
|
s ?? ""
|
|
1549
1549
|
].filter(Boolean).join(" ");
|
|
1550
1550
|
return r === "horizontal-reverse" ? /* @__PURE__ */ a("div", {
|
|
@@ -1554,15 +1554,15 @@ var Ge = {
|
|
|
1554
1554
|
className: h,
|
|
1555
1555
|
children: [p, m]
|
|
1556
1556
|
});
|
|
1557
|
-
},
|
|
1557
|
+
}, Ot = ({ quantity: e, lowStockThreshold: t = 5, label: n, className: r }) => {
|
|
1558
1558
|
let a = e <= 0, o = !a && e <= t, s = a ? "danger" : o ? "warning" : "success", c = a ? "Out of stock" : o ? `Only ${e} left` : "In stock";
|
|
1559
|
-
return /* @__PURE__ */ i(
|
|
1559
|
+
return /* @__PURE__ */ i(et, {
|
|
1560
1560
|
variant: s,
|
|
1561
1561
|
emphasis: "subtle",
|
|
1562
1562
|
className: r,
|
|
1563
1563
|
children: n ?? c
|
|
1564
1564
|
});
|
|
1565
|
-
},
|
|
1565
|
+
}, H = {
|
|
1566
1566
|
card: "_card_1w9hp_1",
|
|
1567
1567
|
cardDefault: "_cardDefault_1w9hp_8",
|
|
1568
1568
|
imageDefault: "_imageDefault_1w9hp_19",
|
|
@@ -1577,55 +1577,55 @@ var Ge = {
|
|
|
1577
1577
|
excerpt: "_excerpt_1w9hp_114",
|
|
1578
1578
|
author: "_author_1w9hp_123",
|
|
1579
1579
|
authorText: "_authorText_1w9hp_130"
|
|
1580
|
-
},
|
|
1580
|
+
}, kt = ({ image: e, imageAlt: t, category: n, readTime: r, title: o, excerpt: s, author: c, layout: l = "default", className: u }) => {
|
|
1581
1581
|
let d = l === "horizontal";
|
|
1582
1582
|
return /* @__PURE__ */ a("div", {
|
|
1583
1583
|
className: [
|
|
1584
|
-
|
|
1585
|
-
d ?
|
|
1584
|
+
H.card,
|
|
1585
|
+
d ? H.cardHorizontal : H.cardDefault,
|
|
1586
1586
|
u ?? ""
|
|
1587
1587
|
].filter(Boolean).join(" "),
|
|
1588
1588
|
children: [d ? /* @__PURE__ */ i("span", {
|
|
1589
|
-
className:
|
|
1589
|
+
className: H.imageWrapHorizontal,
|
|
1590
1590
|
children: /* @__PURE__ */ i("img", {
|
|
1591
1591
|
src: e,
|
|
1592
1592
|
alt: t ?? "",
|
|
1593
|
-
className:
|
|
1593
|
+
className: H.image
|
|
1594
1594
|
})
|
|
1595
1595
|
}) : /* @__PURE__ */ i("img", {
|
|
1596
1596
|
src: e,
|
|
1597
1597
|
alt: t ?? "",
|
|
1598
|
-
className:
|
|
1598
|
+
className: H.imageDefault
|
|
1599
1599
|
}), /* @__PURE__ */ a("div", {
|
|
1600
|
-
className: d ?
|
|
1600
|
+
className: d ? H.bodyHorizontal : H.bodyDefault,
|
|
1601
1601
|
children: [
|
|
1602
1602
|
/* @__PURE__ */ a("div", {
|
|
1603
|
-
className:
|
|
1604
|
-
children: [/* @__PURE__ */ i(
|
|
1603
|
+
className: H.metaRow,
|
|
1604
|
+
children: [/* @__PURE__ */ i(et, {
|
|
1605
1605
|
variant: "accent",
|
|
1606
1606
|
emphasis: "subtle",
|
|
1607
1607
|
children: n
|
|
1608
1608
|
}), /* @__PURE__ */ i("span", {
|
|
1609
|
-
className:
|
|
1609
|
+
className: H.readTime,
|
|
1610
1610
|
children: r
|
|
1611
1611
|
})]
|
|
1612
1612
|
}),
|
|
1613
1613
|
/* @__PURE__ */ i("p", {
|
|
1614
|
-
className:
|
|
1614
|
+
className: H.title,
|
|
1615
1615
|
children: o
|
|
1616
1616
|
}),
|
|
1617
1617
|
/* @__PURE__ */ i("p", {
|
|
1618
|
-
className:
|
|
1618
|
+
className: H.excerpt,
|
|
1619
1619
|
children: s
|
|
1620
1620
|
}),
|
|
1621
1621
|
/* @__PURE__ */ a("div", {
|
|
1622
|
-
className:
|
|
1623
|
-
children: [/* @__PURE__ */ i(
|
|
1622
|
+
className: H.author,
|
|
1623
|
+
children: [/* @__PURE__ */ i(be, {
|
|
1624
1624
|
size: "sm",
|
|
1625
1625
|
src: c.avatarSrc,
|
|
1626
1626
|
alt: c.avatarAlt ?? c.name
|
|
1627
1627
|
}), /* @__PURE__ */ a("p", {
|
|
1628
|
-
className:
|
|
1628
|
+
className: H.authorText,
|
|
1629
1629
|
children: [
|
|
1630
1630
|
c.name,
|
|
1631
1631
|
" · ",
|
|
@@ -1636,7 +1636,7 @@ var Ge = {
|
|
|
1636
1636
|
]
|
|
1637
1637
|
})]
|
|
1638
1638
|
});
|
|
1639
|
-
},
|
|
1639
|
+
}, U = {
|
|
1640
1640
|
card: "_card_8cf5b_1",
|
|
1641
1641
|
cardHorizontal: "_cardHorizontal_8cf5b_12",
|
|
1642
1642
|
cardVertical: "_cardVertical_8cf5b_20",
|
|
@@ -1648,52 +1648,52 @@ var Ge = {
|
|
|
1648
1648
|
footer: "_footer_8cf5b_86",
|
|
1649
1649
|
author: "_author_8cf5b_94",
|
|
1650
1650
|
authorText: "_authorText_8cf5b_101"
|
|
1651
|
-
},
|
|
1651
|
+
}, At = ({ image: e, imageAlt: t, badgeLabel: n = "Featured", title: r, excerpt: o, author: s, ctaLabel: c = "Read article", onCtaClick: l, orientation: u = "horizontal", className: d }) => {
|
|
1652
1652
|
let f = u === "vertical";
|
|
1653
1653
|
return /* @__PURE__ */ a("div", {
|
|
1654
1654
|
className: [
|
|
1655
|
-
|
|
1656
|
-
f ?
|
|
1655
|
+
U.card,
|
|
1656
|
+
f ? U.cardVertical : U.cardHorizontal,
|
|
1657
1657
|
d ?? ""
|
|
1658
1658
|
].filter(Boolean).join(" "),
|
|
1659
1659
|
children: [/* @__PURE__ */ i("img", {
|
|
1660
1660
|
src: e,
|
|
1661
1661
|
alt: t ?? "",
|
|
1662
|
-
className:
|
|
1662
|
+
className: U.image
|
|
1663
1663
|
}), /* @__PURE__ */ a("div", {
|
|
1664
|
-
className: f ?
|
|
1664
|
+
className: f ? U.bodyVertical : U.bodyHorizontal,
|
|
1665
1665
|
children: [
|
|
1666
|
-
/* @__PURE__ */ i(
|
|
1666
|
+
/* @__PURE__ */ i(et, {
|
|
1667
1667
|
variant: "accent",
|
|
1668
1668
|
emphasis: "subtle",
|
|
1669
1669
|
children: n
|
|
1670
1670
|
}),
|
|
1671
1671
|
/* @__PURE__ */ i("p", {
|
|
1672
|
-
className:
|
|
1672
|
+
className: U.title,
|
|
1673
1673
|
children: r
|
|
1674
1674
|
}),
|
|
1675
1675
|
/* @__PURE__ */ i("p", {
|
|
1676
|
-
className:
|
|
1676
|
+
className: U.excerpt,
|
|
1677
1677
|
children: o
|
|
1678
1678
|
}),
|
|
1679
1679
|
/* @__PURE__ */ a("div", {
|
|
1680
|
-
className:
|
|
1680
|
+
className: U.footer,
|
|
1681
1681
|
children: [/* @__PURE__ */ a("div", {
|
|
1682
|
-
className:
|
|
1683
|
-
children: [/* @__PURE__ */ i(
|
|
1682
|
+
className: U.author,
|
|
1683
|
+
children: [/* @__PURE__ */ i(be, {
|
|
1684
1684
|
size: "md",
|
|
1685
1685
|
src: s.avatarSrc,
|
|
1686
1686
|
alt: s.avatarAlt ?? s.name,
|
|
1687
1687
|
initials: s.initials
|
|
1688
1688
|
}), /* @__PURE__ */ a("p", {
|
|
1689
|
-
className:
|
|
1689
|
+
className: U.authorText,
|
|
1690
1690
|
children: [
|
|
1691
1691
|
s.name,
|
|
1692
1692
|
" · ",
|
|
1693
1693
|
s.date
|
|
1694
1694
|
]
|
|
1695
1695
|
})]
|
|
1696
|
-
}), /* @__PURE__ */ i(
|
|
1696
|
+
}), /* @__PURE__ */ i(M, {
|
|
1697
1697
|
variant: "secondary",
|
|
1698
1698
|
size: "sm",
|
|
1699
1699
|
onClick: l,
|
|
@@ -1703,7 +1703,7 @@ var Ge = {
|
|
|
1703
1703
|
]
|
|
1704
1704
|
})]
|
|
1705
1705
|
});
|
|
1706
|
-
},
|
|
1706
|
+
}, jt = {
|
|
1707
1707
|
chip: "_chip_scl8l_1",
|
|
1708
1708
|
"chip--sm": "_chip--sm_scl8l_11",
|
|
1709
1709
|
"chip--md": "_chip--md_scl8l_17",
|
|
@@ -1712,26 +1712,26 @@ var Ge = {
|
|
|
1712
1712
|
"chip--outline": "_chip--outline_scl8l_35",
|
|
1713
1713
|
"chip--solid": "_chip--solid_scl8l_39",
|
|
1714
1714
|
"chip--subtle": "_chip--subtle_scl8l_43"
|
|
1715
|
-
},
|
|
1715
|
+
}, Mt = {
|
|
1716
1716
|
sm: 16,
|
|
1717
1717
|
md: 20,
|
|
1718
1718
|
lg: 24
|
|
1719
|
-
},
|
|
1720
|
-
let o =
|
|
1719
|
+
}, Nt = ({ icon: t, size: n = "md", variant: r = "light", className: a }) => {
|
|
1720
|
+
let o = Mt[n], s = e.isValidElement(t) ? e.cloneElement(t, {
|
|
1721
1721
|
size: o,
|
|
1722
1722
|
strokeWidth: O(o)
|
|
1723
1723
|
}) : t;
|
|
1724
1724
|
return /* @__PURE__ */ i("div", {
|
|
1725
1725
|
className: [
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1726
|
+
jt.chip,
|
|
1727
|
+
jt[`chip--${n}`],
|
|
1728
|
+
jt[`chip--${r}`],
|
|
1729
1729
|
a ?? ""
|
|
1730
1730
|
].filter(Boolean).join(" "),
|
|
1731
1731
|
"aria-hidden": "true",
|
|
1732
1732
|
children: s
|
|
1733
1733
|
});
|
|
1734
|
-
},
|
|
1734
|
+
}, Pt = {
|
|
1735
1735
|
group: "_group_mvlh4_3",
|
|
1736
1736
|
group__item: "_group__item_mvlh4_6",
|
|
1737
1737
|
"group--sm": "_group--sm_mvlh4_9",
|
|
@@ -1742,42 +1742,42 @@ var Ge = {
|
|
|
1742
1742
|
"overflow--md": "_overflow--md_mvlh4_26",
|
|
1743
1743
|
"overflow--lg": "_overflow--lg_mvlh4_27",
|
|
1744
1744
|
"overflow--xl": "_overflow--xl_mvlh4_28"
|
|
1745
|
-
},
|
|
1745
|
+
}, Ft = ({ size: e = "md", max: t = 4, avatars: n, className: r }) => {
|
|
1746
1746
|
let o = n.slice(0, t), s = n.length - o.length;
|
|
1747
1747
|
return /* @__PURE__ */ a("div", {
|
|
1748
1748
|
className: [
|
|
1749
|
-
|
|
1750
|
-
|
|
1749
|
+
Pt.group,
|
|
1750
|
+
Pt[`group--${e}`],
|
|
1751
1751
|
r ?? ""
|
|
1752
1752
|
].filter(Boolean).join(" "),
|
|
1753
1753
|
children: [o.map((t, n) => /* @__PURE__ */ i("span", {
|
|
1754
|
-
className:
|
|
1755
|
-
children: /* @__PURE__ */ i(
|
|
1754
|
+
className: Pt.group__item,
|
|
1755
|
+
children: /* @__PURE__ */ i(be, {
|
|
1756
1756
|
size: e,
|
|
1757
1757
|
src: t.src,
|
|
1758
1758
|
initials: t.initials,
|
|
1759
1759
|
alt: t.alt
|
|
1760
1760
|
})
|
|
1761
1761
|
}, n)), s > 0 && /* @__PURE__ */ i("span", {
|
|
1762
|
-
className:
|
|
1762
|
+
className: Pt.group__item,
|
|
1763
1763
|
children: /* @__PURE__ */ a("span", {
|
|
1764
|
-
className: [
|
|
1764
|
+
className: [Pt.overflow, Pt[`overflow--${e}`]].join(" "),
|
|
1765
1765
|
children: ["+", s]
|
|
1766
1766
|
})
|
|
1767
1767
|
})]
|
|
1768
1768
|
});
|
|
1769
|
-
},
|
|
1769
|
+
}, It = {
|
|
1770
1770
|
root: "_root_165je_1",
|
|
1771
1771
|
dot: "_dot_165je_13",
|
|
1772
1772
|
dotActive: "_dotActive_165je_21",
|
|
1773
1773
|
dotRemote: "_dotRemote_165je_25"
|
|
1774
|
-
},
|
|
1775
|
-
className: [
|
|
1774
|
+
}, Lt = ({ location: e, status: t = "active", className: n }) => /* @__PURE__ */ a("span", {
|
|
1775
|
+
className: [It.root, n ?? ""].filter(Boolean).join(" "),
|
|
1776
1776
|
children: [/* @__PURE__ */ i("span", {
|
|
1777
|
-
className: [
|
|
1777
|
+
className: [It.dot, t === "active" ? It.dotActive : It.dotRemote].join(" "),
|
|
1778
1778
|
"aria-hidden": "true"
|
|
1779
1779
|
}), e]
|
|
1780
|
-
}),
|
|
1780
|
+
}), Rt = {
|
|
1781
1781
|
root: "_root_15jaa_1",
|
|
1782
1782
|
rootCard: "_rootCard_15jaa_9",
|
|
1783
1783
|
rootRow: "_rootRow_15jaa_21",
|
|
@@ -1787,30 +1787,30 @@ var Ge = {
|
|
|
1787
1787
|
description: "_description_15jaa_56",
|
|
1788
1788
|
metaRow: "_metaRow_15jaa_65",
|
|
1789
1789
|
applyBtn: "_applyBtn_15jaa_72"
|
|
1790
|
-
},
|
|
1790
|
+
}, zt = ({ title: e, description: t, department: n, employmentType: o, location: s, locationStatus: c = "remote", onApply: l, applyLabel: u = "Apply now", layout: d = "card", className: f }) => {
|
|
1791
1791
|
let p = d === "row", m = /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ a("div", {
|
|
1792
|
-
className:
|
|
1792
|
+
className: Rt.titleGroup,
|
|
1793
1793
|
children: [/* @__PURE__ */ i("p", {
|
|
1794
|
-
className:
|
|
1794
|
+
className: Rt.title,
|
|
1795
1795
|
children: e
|
|
1796
1796
|
}), /* @__PURE__ */ i("p", {
|
|
1797
|
-
className:
|
|
1797
|
+
className: Rt.description,
|
|
1798
1798
|
children: t
|
|
1799
1799
|
})]
|
|
1800
1800
|
}), /* @__PURE__ */ a("div", {
|
|
1801
|
-
className:
|
|
1801
|
+
className: Rt.metaRow,
|
|
1802
1802
|
children: [
|
|
1803
|
-
/* @__PURE__ */ i(
|
|
1803
|
+
/* @__PURE__ */ i(et, {
|
|
1804
1804
|
variant: "accent",
|
|
1805
1805
|
emphasis: "subtle",
|
|
1806
1806
|
children: n
|
|
1807
1807
|
}),
|
|
1808
|
-
/* @__PURE__ */ i(
|
|
1808
|
+
/* @__PURE__ */ i(et, {
|
|
1809
1809
|
variant: "neutral",
|
|
1810
1810
|
emphasis: "subtle",
|
|
1811
1811
|
children: o
|
|
1812
1812
|
}),
|
|
1813
|
-
/* @__PURE__ */ i(
|
|
1813
|
+
/* @__PURE__ */ i(Lt, {
|
|
1814
1814
|
location: s,
|
|
1815
1815
|
status: c
|
|
1816
1816
|
})
|
|
@@ -1818,61 +1818,61 @@ var Ge = {
|
|
|
1818
1818
|
})] });
|
|
1819
1819
|
return p ? /* @__PURE__ */ a("div", {
|
|
1820
1820
|
className: [
|
|
1821
|
-
|
|
1822
|
-
|
|
1821
|
+
Rt.root,
|
|
1822
|
+
Rt.rootRow,
|
|
1823
1823
|
f ?? ""
|
|
1824
1824
|
].filter(Boolean).join(" "),
|
|
1825
1825
|
children: [/* @__PURE__ */ i("div", {
|
|
1826
|
-
className:
|
|
1826
|
+
className: Rt.rowLeft,
|
|
1827
1827
|
children: m
|
|
1828
|
-
}), /* @__PURE__ */ i(
|
|
1828
|
+
}), /* @__PURE__ */ i(M, {
|
|
1829
1829
|
variant: "secondary",
|
|
1830
1830
|
size: "sm",
|
|
1831
|
-
className:
|
|
1831
|
+
className: Rt.applyBtn,
|
|
1832
1832
|
onClick: l,
|
|
1833
1833
|
children: u
|
|
1834
1834
|
})]
|
|
1835
1835
|
}) : /* @__PURE__ */ a("div", {
|
|
1836
1836
|
className: [
|
|
1837
|
-
|
|
1838
|
-
|
|
1837
|
+
Rt.root,
|
|
1838
|
+
Rt.rootCard,
|
|
1839
1839
|
f ?? ""
|
|
1840
1840
|
].filter(Boolean).join(" "),
|
|
1841
|
-
children: [m, /* @__PURE__ */ i(
|
|
1841
|
+
children: [m, /* @__PURE__ */ i(M, {
|
|
1842
1842
|
variant: "secondary",
|
|
1843
1843
|
size: "sm",
|
|
1844
1844
|
onClick: l,
|
|
1845
1845
|
children: u
|
|
1846
1846
|
})]
|
|
1847
1847
|
});
|
|
1848
|
-
},
|
|
1848
|
+
}, Bt = {
|
|
1849
1849
|
root: "_root_3bf2n_1",
|
|
1850
1850
|
rootCenter: "_rootCenter_3bf2n_9",
|
|
1851
1851
|
rootLeft: "_rootLeft_3bf2n_14",
|
|
1852
1852
|
title: "_title_3bf2n_19",
|
|
1853
1853
|
subtitle: "_subtitle_3bf2n_28"
|
|
1854
|
-
},
|
|
1854
|
+
}, Vt = ({ eyebrow: e, title: t, subtitle: n, align: r = "center", titleAs: o = "h2", className: s }) => /* @__PURE__ */ a("div", {
|
|
1855
1855
|
className: [
|
|
1856
|
-
|
|
1857
|
-
r === "left" ?
|
|
1856
|
+
Bt.root,
|
|
1857
|
+
r === "left" ? Bt.rootLeft : Bt.rootCenter,
|
|
1858
1858
|
s ?? ""
|
|
1859
1859
|
].filter(Boolean).join(" "),
|
|
1860
1860
|
children: [
|
|
1861
|
-
e && /* @__PURE__ */ i(
|
|
1861
|
+
e && /* @__PURE__ */ i(et, {
|
|
1862
1862
|
variant: "accent",
|
|
1863
1863
|
emphasis: "subtle",
|
|
1864
1864
|
children: e
|
|
1865
1865
|
}),
|
|
1866
1866
|
/* @__PURE__ */ i(o, {
|
|
1867
|
-
className:
|
|
1867
|
+
className: Bt.title,
|
|
1868
1868
|
children: t
|
|
1869
1869
|
}),
|
|
1870
1870
|
n && /* @__PURE__ */ i("p", {
|
|
1871
|
-
className:
|
|
1871
|
+
className: Bt.subtitle,
|
|
1872
1872
|
children: n
|
|
1873
1873
|
})
|
|
1874
1874
|
]
|
|
1875
|
-
}),
|
|
1875
|
+
}), W = {
|
|
1876
1876
|
card: "_card_1ye9i_1",
|
|
1877
1877
|
imageWrap: "_imageWrap_1ye9i_16",
|
|
1878
1878
|
image: "_image_1ye9i_16",
|
|
@@ -1885,42 +1885,42 @@ var Ge = {
|
|
|
1885
1885
|
role: "_role_1ye9i_99",
|
|
1886
1886
|
social: "_social_1ye9i_108",
|
|
1887
1887
|
bio: "_bio_1ye9i_116"
|
|
1888
|
-
},
|
|
1889
|
-
className: [
|
|
1888
|
+
}, Ht = ({ image: e, imageAlt: t, name: n, role: r, location: o, locationStatus: s = "active", bio: c, socialLinks: l = [], className: u }) => /* @__PURE__ */ a("div", {
|
|
1889
|
+
className: [W.card, u ?? ""].filter(Boolean).join(" "),
|
|
1890
1890
|
children: [/* @__PURE__ */ a("div", {
|
|
1891
|
-
className:
|
|
1891
|
+
className: W.imageWrap,
|
|
1892
1892
|
children: [/* @__PURE__ */ i("img", {
|
|
1893
1893
|
src: e,
|
|
1894
1894
|
alt: t ?? n,
|
|
1895
|
-
className:
|
|
1895
|
+
className: W.image
|
|
1896
1896
|
}), /* @__PURE__ */ i("div", {
|
|
1897
|
-
className:
|
|
1898
|
-
children: /* @__PURE__ */ i(
|
|
1897
|
+
className: W.locationBar,
|
|
1898
|
+
children: /* @__PURE__ */ i(Lt, {
|
|
1899
1899
|
location: o,
|
|
1900
1900
|
status: s,
|
|
1901
|
-
className:
|
|
1901
|
+
className: W.locationDot
|
|
1902
1902
|
})
|
|
1903
1903
|
})]
|
|
1904
1904
|
}), /* @__PURE__ */ a("div", {
|
|
1905
|
-
className:
|
|
1905
|
+
className: W.info,
|
|
1906
1906
|
children: [/* @__PURE__ */ a("div", {
|
|
1907
|
-
className:
|
|
1907
|
+
className: W.metaRow,
|
|
1908
1908
|
children: [/* @__PURE__ */ a("div", {
|
|
1909
|
-
className:
|
|
1909
|
+
className: W.identity,
|
|
1910
1910
|
children: [/* @__PURE__ */ i("p", {
|
|
1911
|
-
className:
|
|
1911
|
+
className: W.name,
|
|
1912
1912
|
children: n
|
|
1913
1913
|
}), /* @__PURE__ */ i("p", {
|
|
1914
|
-
className:
|
|
1914
|
+
className: W.role,
|
|
1915
1915
|
children: r
|
|
1916
1916
|
})]
|
|
1917
1917
|
}), l.length > 0 && /* @__PURE__ */ i("div", {
|
|
1918
|
-
className:
|
|
1918
|
+
className: W.social,
|
|
1919
1919
|
children: l.map((e, t) => /* @__PURE__ */ i("a", {
|
|
1920
1920
|
href: e.href,
|
|
1921
1921
|
onClick: e.onClick,
|
|
1922
1922
|
"aria-label": e.label,
|
|
1923
|
-
children: /* @__PURE__ */ i(
|
|
1923
|
+
children: /* @__PURE__ */ i(Nt, {
|
|
1924
1924
|
icon: e.icon,
|
|
1925
1925
|
size: "sm",
|
|
1926
1926
|
variant: "subtle"
|
|
@@ -1928,11 +1928,11 @@ var Ge = {
|
|
|
1928
1928
|
}, e.label ?? t))
|
|
1929
1929
|
})]
|
|
1930
1930
|
}), c && /* @__PURE__ */ i("p", {
|
|
1931
|
-
className:
|
|
1931
|
+
className: W.bio,
|
|
1932
1932
|
children: c
|
|
1933
1933
|
})]
|
|
1934
1934
|
})]
|
|
1935
|
-
}),
|
|
1935
|
+
}), Ut = {
|
|
1936
1936
|
alert: "_alert_1hjs5_3",
|
|
1937
1937
|
alert__icon: "_alert__icon_1hjs5_12",
|
|
1938
1938
|
alert__content: "_alert__content_1hjs5_13",
|
|
@@ -1943,7 +1943,7 @@ var Ge = {
|
|
|
1943
1943
|
"alert--warning": "_alert--warning_1hjs5_24",
|
|
1944
1944
|
"alert--danger": "_alert--danger_1hjs5_27",
|
|
1945
1945
|
"alert--neutral": "_alert--neutral_1hjs5_30"
|
|
1946
|
-
},
|
|
1946
|
+
}, Wt = {
|
|
1947
1947
|
info: /* @__PURE__ */ a(r, { children: [
|
|
1948
1948
|
/* @__PURE__ */ i("circle", {
|
|
1949
1949
|
cx: "12",
|
|
@@ -2017,15 +2017,15 @@ var Ge = {
|
|
|
2017
2017
|
y2: "8"
|
|
2018
2018
|
})
|
|
2019
2019
|
] })
|
|
2020
|
-
},
|
|
2020
|
+
}, Gt = ({ color: e = "info", title: t, description: n, icon: r, className: o }) => /* @__PURE__ */ a("div", {
|
|
2021
2021
|
role: "alert",
|
|
2022
2022
|
className: [
|
|
2023
|
-
|
|
2024
|
-
|
|
2023
|
+
Ut.alert,
|
|
2024
|
+
Ut[`alert--${e}`],
|
|
2025
2025
|
o ?? ""
|
|
2026
2026
|
].filter(Boolean).join(" "),
|
|
2027
2027
|
children: [/* @__PURE__ */ i("span", {
|
|
2028
|
-
className:
|
|
2028
|
+
className: Ut.alert__icon,
|
|
2029
2029
|
"aria-hidden": "true",
|
|
2030
2030
|
children: /* @__PURE__ */ i("svg", {
|
|
2031
2031
|
viewBox: "0 0 24 24",
|
|
@@ -2036,19 +2036,19 @@ var Ge = {
|
|
|
2036
2036
|
strokeLinejoin: "round",
|
|
2037
2037
|
width: 18,
|
|
2038
2038
|
height: 18,
|
|
2039
|
-
children: r ??
|
|
2039
|
+
children: r ?? Wt[e]
|
|
2040
2040
|
})
|
|
2041
2041
|
}), /* @__PURE__ */ a("div", {
|
|
2042
|
-
className:
|
|
2042
|
+
className: Ut.alert__content,
|
|
2043
2043
|
children: [t && /* @__PURE__ */ i("div", {
|
|
2044
|
-
className:
|
|
2044
|
+
className: Ut.alert__title,
|
|
2045
2045
|
children: t
|
|
2046
2046
|
}), n && /* @__PURE__ */ i("div", {
|
|
2047
|
-
className:
|
|
2047
|
+
className: Ut.alert__description,
|
|
2048
2048
|
children: n
|
|
2049
2049
|
})]
|
|
2050
2050
|
})]
|
|
2051
|
-
}),
|
|
2051
|
+
}), G = {
|
|
2052
2052
|
card: "_card_6iftf_2",
|
|
2053
2053
|
"card--hover": "_card--hover_6iftf_15",
|
|
2054
2054
|
"card--selected": "_card--selected_6iftf_16",
|
|
@@ -2065,60 +2065,60 @@ var Ge = {
|
|
|
2065
2065
|
card__footer: "_card__footer_6iftf_47",
|
|
2066
2066
|
card__meta: "_card__meta_6iftf_48",
|
|
2067
2067
|
card__assignees: "_card__assignees_6iftf_49"
|
|
2068
|
-
},
|
|
2068
|
+
}, Kt = ({ type: e = "default", state: t = "default", cover: n, leading: o, title: s, trailing: c, description: l, tags: u, meta: d, assignees: f, onClick: p, className: m }) => {
|
|
2069
2069
|
let h = e !== "compact", g = d || f;
|
|
2070
2070
|
return /* @__PURE__ */ a("div", {
|
|
2071
2071
|
onClick: p,
|
|
2072
2072
|
"aria-selected": t === "selected" || void 0,
|
|
2073
2073
|
className: [
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2074
|
+
G.card,
|
|
2075
|
+
G[`card--${e}`],
|
|
2076
|
+
G[`card--${t}`],
|
|
2077
2077
|
m ?? ""
|
|
2078
2078
|
].filter(Boolean).join(" "),
|
|
2079
2079
|
children: [
|
|
2080
2080
|
e === "cover" && /* @__PURE__ */ i("div", {
|
|
2081
|
-
className:
|
|
2081
|
+
className: G.card__cover,
|
|
2082
2082
|
children: n
|
|
2083
2083
|
}),
|
|
2084
2084
|
/* @__PURE__ */ a("div", {
|
|
2085
|
-
className:
|
|
2085
|
+
className: G.card__header,
|
|
2086
2086
|
children: [
|
|
2087
2087
|
o && /* @__PURE__ */ i("span", {
|
|
2088
|
-
className:
|
|
2088
|
+
className: G.card__leading,
|
|
2089
2089
|
children: o
|
|
2090
2090
|
}),
|
|
2091
2091
|
/* @__PURE__ */ i("span", {
|
|
2092
|
-
className:
|
|
2092
|
+
className: G.card__title,
|
|
2093
2093
|
children: s
|
|
2094
2094
|
}),
|
|
2095
2095
|
c && /* @__PURE__ */ i("span", {
|
|
2096
|
-
className:
|
|
2096
|
+
className: G.card__trailing,
|
|
2097
2097
|
children: c
|
|
2098
2098
|
})
|
|
2099
2099
|
]
|
|
2100
2100
|
}),
|
|
2101
2101
|
h && l && /* @__PURE__ */ i("p", {
|
|
2102
|
-
className:
|
|
2102
|
+
className: G.card__desc,
|
|
2103
2103
|
children: l
|
|
2104
2104
|
}),
|
|
2105
2105
|
h && u && /* @__PURE__ */ i("div", {
|
|
2106
|
-
className:
|
|
2106
|
+
className: G.card__tags,
|
|
2107
2107
|
children: u
|
|
2108
2108
|
}),
|
|
2109
|
-
g && /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("div", { className:
|
|
2110
|
-
className:
|
|
2109
|
+
g && /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("div", { className: G.card__divider }), /* @__PURE__ */ a("div", {
|
|
2110
|
+
className: G.card__footer,
|
|
2111
2111
|
children: [d && /* @__PURE__ */ i("div", {
|
|
2112
|
-
className:
|
|
2112
|
+
className: G.card__meta,
|
|
2113
2113
|
children: d
|
|
2114
2114
|
}), f && /* @__PURE__ */ i("div", {
|
|
2115
|
-
className:
|
|
2115
|
+
className: G.card__assignees,
|
|
2116
2116
|
children: f
|
|
2117
2117
|
})]
|
|
2118
2118
|
})] })
|
|
2119
2119
|
]
|
|
2120
2120
|
});
|
|
2121
|
-
},
|
|
2121
|
+
}, qt = {
|
|
2122
2122
|
breadcrumb: "_breadcrumb_1uzuh_3",
|
|
2123
2123
|
list: "_list_1uzuh_5",
|
|
2124
2124
|
item: "_item_1uzuh_15",
|
|
@@ -2127,8 +2127,8 @@ var Ge = {
|
|
|
2127
2127
|
separator: "_separator_1uzuh_33",
|
|
2128
2128
|
"list--button": "_list--button_1uzuh_38",
|
|
2129
2129
|
chip: "_chip_1uzuh_41"
|
|
2130
|
-
},
|
|
2131
|
-
className:
|
|
2130
|
+
}, Jt = ({ size: e }) => /* @__PURE__ */ i("span", {
|
|
2131
|
+
className: qt.separator,
|
|
2132
2132
|
"aria-hidden": "true",
|
|
2133
2133
|
children: /* @__PURE__ */ i("svg", {
|
|
2134
2134
|
viewBox: "0 0 24 24",
|
|
@@ -2141,17 +2141,17 @@ var Ge = {
|
|
|
2141
2141
|
height: e,
|
|
2142
2142
|
children: /* @__PURE__ */ i("path", { d: "m9 18 6-6-6-6" })
|
|
2143
2143
|
})
|
|
2144
|
-
}),
|
|
2144
|
+
}), Yt = ({ items: e, variant: t = "text", className: n }) => {
|
|
2145
2145
|
let r = t === "button";
|
|
2146
2146
|
return /* @__PURE__ */ i("nav", {
|
|
2147
2147
|
"aria-label": "Breadcrumb",
|
|
2148
|
-
className: [
|
|
2148
|
+
className: [qt.breadcrumb, n ?? ""].filter(Boolean).join(" "),
|
|
2149
2149
|
children: /* @__PURE__ */ i("ol", {
|
|
2150
|
-
className: [
|
|
2150
|
+
className: [qt.list, r ? qt["list--button"] : ""].filter(Boolean).join(" "),
|
|
2151
2151
|
children: e.map((t, n) => {
|
|
2152
|
-
let o = n === e.length - 1, s = r ?
|
|
2152
|
+
let o = n === e.length - 1, s = r ? qt.chip : o ? qt.current : qt.crumb;
|
|
2153
2153
|
return /* @__PURE__ */ a("li", {
|
|
2154
|
-
className:
|
|
2154
|
+
className: qt.item,
|
|
2155
2155
|
children: [o || !t.href ? /* @__PURE__ */ i("span", {
|
|
2156
2156
|
className: s,
|
|
2157
2157
|
"aria-current": o ? "page" : void 0,
|
|
@@ -2160,40 +2160,39 @@ var Ge = {
|
|
|
2160
2160
|
href: t.href,
|
|
2161
2161
|
className: s,
|
|
2162
2162
|
children: t.label
|
|
2163
|
-
}), !o && /* @__PURE__ */ i(
|
|
2163
|
+
}), !o && /* @__PURE__ */ i(Jt, { size: r ? 14 : 16 })]
|
|
2164
2164
|
}, n);
|
|
2165
2165
|
})
|
|
2166
2166
|
})
|
|
2167
2167
|
});
|
|
2168
|
-
},
|
|
2168
|
+
}, Xt = {
|
|
2169
2169
|
meta: "_meta_g1mpv_2",
|
|
2170
2170
|
meta__icon: "_meta__icon_g1mpv_3",
|
|
2171
2171
|
meta__label: "_meta__label_g1mpv_4"
|
|
2172
|
-
},
|
|
2173
|
-
className: [
|
|
2172
|
+
}, Zt = ({ icon: e, children: t, className: n }) => /* @__PURE__ */ a("span", {
|
|
2173
|
+
className: [Xt.meta, n ?? ""].filter(Boolean).join(" "),
|
|
2174
2174
|
children: [/* @__PURE__ */ i("span", {
|
|
2175
|
-
className:
|
|
2175
|
+
className: Xt.meta__icon,
|
|
2176
2176
|
"aria-hidden": "true",
|
|
2177
2177
|
children: e
|
|
2178
2178
|
}), /* @__PURE__ */ i("span", {
|
|
2179
|
-
className:
|
|
2179
|
+
className: Xt.meta__label,
|
|
2180
2180
|
children: t
|
|
2181
2181
|
})]
|
|
2182
|
-
}),
|
|
2183
|
-
composer: "
|
|
2184
|
-
"composer--typing": "_composer--
|
|
2185
|
-
input: "
|
|
2186
|
-
"composer--disabled": "_composer--
|
|
2187
|
-
upload: "
|
|
2188
|
-
upload__icon: "
|
|
2189
|
-
upload__body: "
|
|
2190
|
-
upload__name: "
|
|
2191
|
-
upload__track: "
|
|
2192
|
-
upload__fill: "
|
|
2193
|
-
row: "
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
send: "_send_vd2eo_40"
|
|
2182
|
+
}), Qt = {
|
|
2183
|
+
composer: "_composer_1yt54_2",
|
|
2184
|
+
"composer--typing": "_composer--typing_1yt54_15",
|
|
2185
|
+
input: "_input_1yt54_22",
|
|
2186
|
+
"composer--disabled": "_composer--disabled_1yt54_23",
|
|
2187
|
+
upload: "_upload_1yt54_25",
|
|
2188
|
+
upload__icon: "_upload__icon_1yt54_30",
|
|
2189
|
+
upload__body: "_upload__body_1yt54_31",
|
|
2190
|
+
upload__name: "_upload__name_1yt54_32",
|
|
2191
|
+
upload__track: "_upload__track_1yt54_33",
|
|
2192
|
+
upload__fill: "_upload__fill_1yt54_34",
|
|
2193
|
+
row: "_row_1yt54_36",
|
|
2194
|
+
icon: "_icon_1yt54_37",
|
|
2195
|
+
send: "_send_1yt54_52"
|
|
2197
2196
|
}, $t = ({ state: t = "default", value: n, placeholder: r = "Message...", onChange: o, onSend: s, onAttachmentsChange: c, uploadName: l, uploadProgress: u = 0, onCancelUpload: d, className: f }) => {
|
|
2198
2197
|
let p = t === "disabled", [m, h] = e.useState(""), [g, _] = e.useState(!1), [v, b] = e.useState({
|
|
2199
2198
|
top: 0,
|
|
@@ -2244,34 +2243,34 @@ var Ge = {
|
|
|
2244
2243
|
c?.(x);
|
|
2245
2244
|
}, [x, c]), /* @__PURE__ */ a("div", {
|
|
2246
2245
|
className: [
|
|
2247
|
-
|
|
2248
|
-
|
|
2246
|
+
Qt.composer,
|
|
2247
|
+
Qt[`composer--${t}`],
|
|
2249
2248
|
f ?? ""
|
|
2250
2249
|
].filter(Boolean).join(" "),
|
|
2251
2250
|
children: [
|
|
2252
2251
|
t === "uploading" && /* @__PURE__ */ a("div", {
|
|
2253
|
-
className:
|
|
2252
|
+
className: Qt.upload,
|
|
2254
2253
|
children: [
|
|
2255
2254
|
/* @__PURE__ */ i(y, {
|
|
2256
2255
|
size: 16,
|
|
2257
2256
|
strokeWidth: O(16),
|
|
2258
|
-
className:
|
|
2257
|
+
className: Qt.upload__icon,
|
|
2259
2258
|
"aria-hidden": "true"
|
|
2260
2259
|
}),
|
|
2261
2260
|
/* @__PURE__ */ a("div", {
|
|
2262
|
-
className:
|
|
2261
|
+
className: Qt.upload__body,
|
|
2263
2262
|
children: [/* @__PURE__ */ i("span", {
|
|
2264
|
-
className:
|
|
2263
|
+
className: Qt.upload__name,
|
|
2265
2264
|
children: l
|
|
2266
2265
|
}), /* @__PURE__ */ i("div", {
|
|
2267
|
-
className:
|
|
2266
|
+
className: Qt.upload__track,
|
|
2268
2267
|
children: /* @__PURE__ */ i("div", {
|
|
2269
|
-
className:
|
|
2268
|
+
className: Qt.upload__fill,
|
|
2270
2269
|
style: { width: `${u}%` }
|
|
2271
2270
|
})
|
|
2272
2271
|
})]
|
|
2273
2272
|
}),
|
|
2274
|
-
/* @__PURE__ */ i(
|
|
2273
|
+
/* @__PURE__ */ i(ke, {
|
|
2275
2274
|
icon: ce,
|
|
2276
2275
|
variant: "ghost",
|
|
2277
2276
|
size: "md",
|
|
@@ -2360,9 +2359,9 @@ var Ge = {
|
|
|
2360
2359
|
style: { display: "none" }
|
|
2361
2360
|
}),
|
|
2362
2361
|
/* @__PURE__ */ a("div", {
|
|
2363
|
-
className:
|
|
2362
|
+
className: Qt.row,
|
|
2364
2363
|
children: [
|
|
2365
|
-
/* @__PURE__ */ i(
|
|
2364
|
+
/* @__PURE__ */ i(ke, {
|
|
2366
2365
|
icon: ee,
|
|
2367
2366
|
variant: "ghost",
|
|
2368
2367
|
size: "sm",
|
|
@@ -2373,7 +2372,7 @@ var Ge = {
|
|
|
2373
2372
|
/* @__PURE__ */ i("input", {
|
|
2374
2373
|
ref: C,
|
|
2375
2374
|
type: "text",
|
|
2376
|
-
className:
|
|
2375
|
+
className: Qt.input,
|
|
2377
2376
|
value: D,
|
|
2378
2377
|
placeholder: p ? "You can't reply to this conversation" : r,
|
|
2379
2378
|
disabled: p,
|
|
@@ -2384,7 +2383,7 @@ var Ge = {
|
|
|
2384
2383
|
e.key === "Enter" && re && (e.preventDefault(), s?.());
|
|
2385
2384
|
}
|
|
2386
2385
|
}),
|
|
2387
|
-
/* @__PURE__ */ i(
|
|
2386
|
+
/* @__PURE__ */ i(ke, {
|
|
2388
2387
|
ref: T,
|
|
2389
2388
|
icon: ne,
|
|
2390
2389
|
variant: "ghost",
|
|
@@ -2447,11 +2446,10 @@ var Ge = {
|
|
|
2447
2446
|
children: e
|
|
2448
2447
|
}, e))
|
|
2449
2448
|
}), document.body),
|
|
2450
|
-
/* @__PURE__ */ i(
|
|
2449
|
+
/* @__PURE__ */ i(ke, {
|
|
2451
2450
|
icon: te,
|
|
2452
2451
|
variant: "primary",
|
|
2453
2452
|
size: "sm",
|
|
2454
|
-
className: G.sendButton,
|
|
2455
2453
|
onClick: s,
|
|
2456
2454
|
disabled: !re,
|
|
2457
2455
|
"aria-label": "Send message"
|
|
@@ -3013,7 +3011,7 @@ var hn = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: o })
|
|
|
3013
3011
|
option__label: "_option__label_wvw9t_161",
|
|
3014
3012
|
option__check: "_option__check_wvw9t_162"
|
|
3015
3013
|
}, vn = ({ label: t, description: n, error: r, size: o = "md", placeholder: s = "Select an option", options: c, value: l, defaultValue: u, onChange: d, disabled: f, id: p, className: m }) => {
|
|
3016
|
-
let h = e.useId(), g = `${p ?? h}-trigger`, _ = `${p ?? h}-panel`, v = !!r, [y, b] = e.useState(u), x = l === void 0 ? y : l, S = c.find((e) => e.value === x), [C, w] = e.useState(!1), [T, ee] = e.useState(!1), [E, D] = e.useState(0), te = e.useRef(null), ne = e.useRef(null), re = e.useRef(null), ie =
|
|
3014
|
+
let h = e.useId(), g = `${p ?? h}-trigger`, _ = `${p ?? h}-panel`, v = !!r, [y, b] = e.useState(u), x = l === void 0 ? y : l, S = c.find((e) => e.value === x), [C, w] = e.useState(!1), [T, ee] = e.useState(!1), [E, D] = e.useState(0), te = e.useRef(null), ne = e.useRef(null), re = e.useRef(null), ie = Ue(te, T), [ae, oe] = e.useState(null);
|
|
3017
3015
|
e.useEffect(() => {
|
|
3018
3016
|
C && ee(!0);
|
|
3019
3017
|
}, [C]), e.useLayoutEffect(() => {
|
|
@@ -3847,4 +3845,4 @@ var Ln = {
|
|
|
3847
3845
|
});
|
|
3848
3846
|
};
|
|
3849
3847
|
//#endregion
|
|
3850
|
-
export {
|
|
3848
|
+
export { Ge as $, Lt as A, yt as B, Zt as C, Ht as D, Gt as E, Ot as F, at as G, mt as H, Dt as I, et as J, it as K, wt as L, Nt as M, At as N, Vt as O, kt as P, Ke as Q, St as R, $t as S, Kt as T, ft as U, _t as V, ot as W, Ye as X, Qe as Y, qe as Z, dn as _, Mn as a, Ee as at, nn as b, En as c, be as ct, Sn as d, O as dt, Ve as et, bn as f, fn as g, hn as h, In as i, ke as it, Ft as j, zt as k, Tn as l, ge as lt, _n as m, Bn as n, Ae as nt, An as o, we as ot, vn as p, nt as q, Rn as r, M as rt, On as s, xe as st, Vn as t, ze as tt, wn as u, he as ut, cn as v, Yt as w, tn as x, on as y, xt as z };
|