@sakaniui/react 0.3.29 → 0.4.0
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/README.md +37 -3
- package/dist/{TopBar-BFua2Hnk.js → TopBar-CWqp1c0A.js} +1725 -831
- package/dist/TopBar-CgO9Njm_.cjs +1 -0
- package/dist/blocks/LiquidDashboardBlock/DashboardContent.d.ts +7 -0
- package/dist/blocks/LiquidDashboardBlock/LiquidDashboardBlock.d.ts +14 -0
- package/dist/blocks/LiquidDashboardBlock/index.d.ts +2 -0
- package/dist/blocks/LiquidDashboardBlock/parts/LegendRow.d.ts +9 -0
- package/dist/blocks/LiquidDashboardBlock/parts/Panel.d.ts +18 -0
- package/dist/blocks/LiquidDashboardBlock/parts/PeriodDropdown.d.ts +15 -0
- package/dist/blocks/LiquidDashboardBlock/parts/SearchExpand.d.ts +3 -0
- package/dist/blocks/LiquidDashboardBlock/parts/randomChartData.d.ts +20 -0
- package/dist/blocks/index.d.ts +2 -0
- package/dist/blocks.cjs +2 -1
- package/dist/blocks.mjs +3136 -2166
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +1132 -1836
- package/dist/style.css +1 -1
- package/dist/tokens.css +168 -0
- package/package.json +14 -3
- package/dist/TopBar-CvreVtZH.cjs +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import e, { useEffect as t, useState as n } from "react";
|
|
2
2
|
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
3
|
-
import { Bell as o, BellOff as s, Camera as c, Check as l, CheckCheck as u, ChevronDown as d, ChevronLeft as f, ChevronRight as p, ChevronsUpDown as m, CircleAlert as h, CircleHelp as g, Download as _, Eye as v, EyeOff as y, File as b, GripVertical as x, Heart as S, Inbox as C, Minus as w,
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
3
|
+
import { Bell as o, BellOff as s, Camera as c, Check as l, CheckCheck as u, ChevronDown as d, ChevronLeft as f, ChevronRight as p, ChevronsUpDown as m, CircleAlert as h, CircleHelp as g, Download as _, Eye as v, EyeOff as y, File as b, GripVertical as x, Heart as S, Inbox as C, Minus as w, MoreHorizontal as T, PanelLeft as E, PanelLeftClose as D, Paperclip as O, Plus as k, Search as A, Send as j, Smile as ee, Sparkles as te, Star as ne, StarHalf as re, TrendingDown as ie, TrendingUp as ae, TriangleAlert as oe, X as se } from "lucide-react";
|
|
4
|
+
import { Bar as ce, BarChart as le, CartesianGrid as ue, Cell as de, Legend as fe, Line as pe, LineChart as me, Pie as he, PieChart as ge, PolarAngleAxis as _e, RadialBar as ve, RadialBarChart as ye, Rectangle as be, ResponsiveContainer as xe, Tooltip as Se, XAxis as Ce, YAxis as we } from "recharts";
|
|
5
|
+
import Te, { createPortal as Ee } from "react-dom";
|
|
6
6
|
//#region src/lib/iconStrokeWidth.ts
|
|
7
|
-
var
|
|
7
|
+
var M = (e, t = 1.5) => 24 / e * t, De = {
|
|
8
8
|
accordion: "_accordion_1njer_3",
|
|
9
9
|
item: "_item_1njer_10",
|
|
10
10
|
item__header: "_item__header_1njer_12",
|
|
@@ -15,26 +15,26 @@ var k = (e, t = 1.5) => 24 / e * t, A = {
|
|
|
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
|
+
}, Oe = ({ 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: [De.item, s ?? ""].filter(Boolean).join(" "),
|
|
22
22
|
children: [/* @__PURE__ */ a("button", {
|
|
23
23
|
type: "button",
|
|
24
|
-
className:
|
|
24
|
+
className: De.item__header,
|
|
25
25
|
"aria-expanded": d,
|
|
26
26
|
onClick: () => !c && u((e) => !e),
|
|
27
27
|
children: [/* @__PURE__ */ i("span", {
|
|
28
|
-
className:
|
|
28
|
+
className: De.item__title,
|
|
29
29
|
children: t
|
|
30
30
|
}), /* @__PURE__ */ i("span", {
|
|
31
|
-
className: [
|
|
31
|
+
className: [De.item__chevron, d ? De["item__chevron--open"] : ""].join(" "),
|
|
32
32
|
"aria-hidden": "true",
|
|
33
33
|
children: /* @__PURE__ */ i("svg", {
|
|
34
34
|
viewBox: "0 0 24 24",
|
|
35
35
|
fill: "none",
|
|
36
36
|
stroke: "currentColor",
|
|
37
|
-
strokeWidth:
|
|
37
|
+
strokeWidth: M(18),
|
|
38
38
|
strokeLinecap: "round",
|
|
39
39
|
strokeLinejoin: "round",
|
|
40
40
|
width: 18,
|
|
@@ -43,20 +43,20 @@ var k = (e, t = 1.5) => 24 / e * t, A = {
|
|
|
43
43
|
})
|
|
44
44
|
})]
|
|
45
45
|
}), /* @__PURE__ */ i("div", {
|
|
46
|
-
className: [
|
|
46
|
+
className: [De.item__panelWrap, d ? De["item__panelWrap--open"] : ""].join(" "),
|
|
47
47
|
children: /* @__PURE__ */ i("div", {
|
|
48
|
-
className:
|
|
48
|
+
className: De.item__panel,
|
|
49
49
|
children: /* @__PURE__ */ i("div", {
|
|
50
|
-
className:
|
|
50
|
+
className: De.item__panelInner,
|
|
51
51
|
children: n
|
|
52
52
|
})
|
|
53
53
|
})
|
|
54
54
|
})]
|
|
55
55
|
});
|
|
56
|
-
},
|
|
57
|
-
className: [
|
|
56
|
+
}, ke = ({ children: e, className: t }) => /* @__PURE__ */ i("div", {
|
|
57
|
+
className: [De.accordion, t ?? ""].filter(Boolean).join(" "),
|
|
58
58
|
children: e
|
|
59
|
-
}),
|
|
59
|
+
}), Ae = {
|
|
60
60
|
avatar: "_avatar_1igqs_3",
|
|
61
61
|
"avatar--sm": "_avatar--sm_1igqs_17",
|
|
62
62
|
"avatar--md": "_avatar--md_1igqs_18",
|
|
@@ -66,16 +66,16 @@ var k = (e, t = 1.5) => 24 / e * t, A = {
|
|
|
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
|
+
}, je = {
|
|
70
70
|
sm: 14,
|
|
71
71
|
md: 18,
|
|
72
72
|
lg: 22,
|
|
73
73
|
xl: 26
|
|
74
|
-
},
|
|
74
|
+
}, Me = ({ px: e }) => /* @__PURE__ */ a("svg", {
|
|
75
75
|
viewBox: "0 0 24 24",
|
|
76
76
|
fill: "none",
|
|
77
77
|
stroke: "currentColor",
|
|
78
|
-
strokeWidth:
|
|
78
|
+
strokeWidth: M(e),
|
|
79
79
|
strokeLinecap: "round",
|
|
80
80
|
strokeLinejoin: "round",
|
|
81
81
|
"aria-hidden": "true",
|
|
@@ -84,18 +84,18 @@ var k = (e, t = 1.5) => 24 / e * t, A = {
|
|
|
84
84
|
cy: "7",
|
|
85
85
|
r: "4"
|
|
86
86
|
})]
|
|
87
|
-
}),
|
|
87
|
+
}), Ne = ({ size: t = "md", src: n, alt: r = "", initials: a, icon: o, className: s }) => {
|
|
88
88
|
let c = [
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
Ae.avatar,
|
|
90
|
+
Ae[`avatar--${t}`],
|
|
91
91
|
s ?? ""
|
|
92
92
|
].filter(Boolean).join(" ");
|
|
93
93
|
if (n) return /* @__PURE__ */ i("span", {
|
|
94
|
-
className: [c,
|
|
94
|
+
className: [c, Ae["avatar--bordered"]].join(" "),
|
|
95
95
|
children: /* @__PURE__ */ i("img", {
|
|
96
96
|
src: n,
|
|
97
97
|
alt: r,
|
|
98
|
-
className:
|
|
98
|
+
className: Ae.avatar__image
|
|
99
99
|
})
|
|
100
100
|
});
|
|
101
101
|
if (a) return /* @__PURE__ */ i("span", {
|
|
@@ -103,24 +103,24 @@ var k = (e, t = 1.5) => 24 / e * t, A = {
|
|
|
103
103
|
role: "img",
|
|
104
104
|
"aria-label": r || a,
|
|
105
105
|
children: /* @__PURE__ */ i("span", {
|
|
106
|
-
className:
|
|
106
|
+
className: Ae.avatar__initials,
|
|
107
107
|
children: a.slice(0, 2).toUpperCase()
|
|
108
108
|
})
|
|
109
109
|
});
|
|
110
|
-
let l =
|
|
110
|
+
let l = je[t], u = e.isValidElement(o) ? e.cloneElement(o, {
|
|
111
111
|
size: l,
|
|
112
|
-
strokeWidth:
|
|
113
|
-
}) : o ?? /* @__PURE__ */ i(
|
|
112
|
+
strokeWidth: M(l)
|
|
113
|
+
}) : o ?? /* @__PURE__ */ i(Me, { 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: Ae.avatar__icon,
|
|
120
120
|
children: u
|
|
121
121
|
})
|
|
122
122
|
});
|
|
123
|
-
},
|
|
123
|
+
}, N = {
|
|
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 k = (e, t = 1.5) => 24 / e * t, A = {
|
|
|
135
135
|
actor: "_actor_1pvgl_88",
|
|
136
136
|
highlight: "_highlight_1pvgl_89",
|
|
137
137
|
timestamp: "_timestamp_1pvgl_92"
|
|
138
|
-
},
|
|
139
|
-
className:
|
|
138
|
+
}, Pe = ({ children: e }) => /* @__PURE__ */ i("span", {
|
|
139
|
+
className: N.highlight,
|
|
140
140
|
children: e
|
|
141
|
-
}),
|
|
142
|
-
size:
|
|
143
|
-
strokeWidth:
|
|
144
|
-
}) : t,
|
|
141
|
+
}), Fe = 16, Ie = (t) => e.isValidElement(t) ? e.cloneElement(t, {
|
|
142
|
+
size: Fe,
|
|
143
|
+
strokeWidth: M(Fe)
|
|
144
|
+
}) : t, Le = ({ 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
|
+
N.feed,
|
|
149
|
+
r ? N["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: N["row--compact"],
|
|
156
156
|
children: [/* @__PURE__ */ a("div", {
|
|
157
|
-
className:
|
|
158
|
-
children: [/* @__PURE__ */ i(
|
|
157
|
+
className: N.compactLeft,
|
|
158
|
+
children: [/* @__PURE__ */ i(Ne, {
|
|
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: N.text,
|
|
164
164
|
children: [
|
|
165
165
|
/* @__PURE__ */ i("span", {
|
|
166
|
-
className:
|
|
166
|
+
className: N.actor,
|
|
167
167
|
children: t.actor
|
|
168
168
|
}),
|
|
169
169
|
" ",
|
|
@@ -171,49 +171,49 @@ var k = (e, t = 1.5) => 24 / e * t, A = {
|
|
|
171
171
|
]
|
|
172
172
|
})]
|
|
173
173
|
}), /* @__PURE__ */ i("span", {
|
|
174
|
-
className:
|
|
174
|
+
className: N.timestamp,
|
|
175
175
|
children: t.timestamp
|
|
176
176
|
})]
|
|
177
177
|
}, s) : /* @__PURE__ */ a("div", {
|
|
178
|
-
className:
|
|
178
|
+
className: N["row--default"],
|
|
179
179
|
children: [/* @__PURE__ */ a("div", {
|
|
180
|
-
className:
|
|
180
|
+
className: N.rail,
|
|
181
181
|
children: [/* @__PURE__ */ i("div", {
|
|
182
|
-
className:
|
|
183
|
-
children:
|
|
184
|
-
}), !o && /* @__PURE__ */ i("div", { className:
|
|
182
|
+
className: N.dot,
|
|
183
|
+
children: Ie(t.icon)
|
|
184
|
+
}), !o && /* @__PURE__ */ i("div", { className: N.connector })]
|
|
185
185
|
}), /* @__PURE__ */ a("div", {
|
|
186
|
-
className: [
|
|
186
|
+
className: [N.content, o ? "" : N["content--spaced"]].filter(Boolean).join(" "),
|
|
187
187
|
children: [/* @__PURE__ */ a("p", {
|
|
188
|
-
className:
|
|
188
|
+
className: N.text,
|
|
189
189
|
children: [
|
|
190
190
|
/* @__PURE__ */ i("span", {
|
|
191
|
-
className:
|
|
191
|
+
className: N.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: N.timestamp,
|
|
199
199
|
children: t.timestamp
|
|
200
200
|
})]
|
|
201
201
|
})]
|
|
202
202
|
}, s);
|
|
203
203
|
})
|
|
204
204
|
});
|
|
205
|
-
},
|
|
205
|
+
}, Re = {
|
|
206
206
|
link: "_link_1g7dc_3",
|
|
207
207
|
link__external: "_link__external_1g7dc_34"
|
|
208
|
-
},
|
|
208
|
+
}, ze = 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: [Re.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: Re.link__external,
|
|
217
217
|
"aria-label": "(opens in new tab)",
|
|
218
218
|
children: /* @__PURE__ */ a("svg", {
|
|
219
219
|
width: 12,
|
|
@@ -221,7 +221,7 @@ var k = (e, t = 1.5) => 24 / e * t, A = {
|
|
|
221
221
|
viewBox: "0 0 24 24",
|
|
222
222
|
fill: "none",
|
|
223
223
|
stroke: "currentColor",
|
|
224
|
-
strokeWidth:
|
|
224
|
+
strokeWidth: M(12),
|
|
225
225
|
strokeLinecap: "round",
|
|
226
226
|
strokeLinejoin: "round",
|
|
227
227
|
"aria-hidden": "true",
|
|
@@ -238,8 +238,8 @@ var k = (e, t = 1.5) => 24 / e * t, A = {
|
|
|
238
238
|
})
|
|
239
239
|
})]
|
|
240
240
|
}));
|
|
241
|
-
|
|
242
|
-
var
|
|
241
|
+
ze.displayName = "Link";
|
|
242
|
+
var Be = {
|
|
243
243
|
button: "_button_l09ur_2",
|
|
244
244
|
"button--sm": "_button--sm_l09ur_26",
|
|
245
245
|
"button--md": "_button--md_l09ur_27",
|
|
@@ -249,55 +249,55 @@ var De = {
|
|
|
249
249
|
"button--outline": "_button--outline_l09ur_43",
|
|
250
250
|
"button--ghost": "_button--ghost_l09ur_48",
|
|
251
251
|
"button--destructive": "_button--destructive_l09ur_53"
|
|
252
|
-
},
|
|
252
|
+
}, Ve = {
|
|
253
253
|
sm: 16,
|
|
254
254
|
md: 18,
|
|
255
255
|
lg: 20
|
|
256
|
-
},
|
|
256
|
+
}, He = 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
|
+
Be.button,
|
|
261
|
+
Be[`button--${t}`],
|
|
262
|
+
Be[`button--${n}`],
|
|
263
263
|
a ?? ""
|
|
264
264
|
].filter(Boolean).join(" "),
|
|
265
265
|
...o,
|
|
266
266
|
children: /* @__PURE__ */ i(e, {
|
|
267
|
-
size:
|
|
268
|
-
strokeWidth:
|
|
267
|
+
size: Ve[n],
|
|
268
|
+
strokeWidth: M(Ve[n]),
|
|
269
269
|
"aria-hidden": "true"
|
|
270
270
|
})
|
|
271
271
|
}));
|
|
272
|
-
|
|
273
|
-
var
|
|
274
|
-
button: "
|
|
275
|
-
"button--primary": "_button--
|
|
276
|
-
"button--secondary": "_button--
|
|
277
|
-
"button--outline": "_button--
|
|
278
|
-
"button--ghost": "_button--
|
|
279
|
-
"button--destructive": "_button--
|
|
280
|
-
"button--sm": "_button--
|
|
281
|
-
"button--md": "_button--
|
|
282
|
-
"button--lg": "_button--
|
|
283
|
-
"button--hasLeftIcon": "_button--
|
|
284
|
-
"button--hasRightIcon": "_button--
|
|
285
|
-
button__icon: "
|
|
286
|
-
button__label: "
|
|
287
|
-
"button--loading": "_button--
|
|
288
|
-
button__spinner: "
|
|
289
|
-
"sakani-btn-spin": "_sakani-btn-
|
|
290
|
-
},
|
|
272
|
+
He.displayName = "IconButton";
|
|
273
|
+
var Ue = {
|
|
274
|
+
button: "_button_izp70_21",
|
|
275
|
+
"button--primary": "_button--primary_izp70_106",
|
|
276
|
+
"button--secondary": "_button--secondary_izp70_133",
|
|
277
|
+
"button--outline": "_button--outline_izp70_156",
|
|
278
|
+
"button--ghost": "_button--ghost_izp70_178",
|
|
279
|
+
"button--destructive": "_button--destructive_izp70_202",
|
|
280
|
+
"button--sm": "_button--sm_izp70_226",
|
|
281
|
+
"button--md": "_button--md_izp70_236",
|
|
282
|
+
"button--lg": "_button--lg_izp70_246",
|
|
283
|
+
"button--hasLeftIcon": "_button--hasLeftIcon_izp70_257",
|
|
284
|
+
"button--hasRightIcon": "_button--hasRightIcon_izp70_258",
|
|
285
|
+
button__icon: "_button__icon_izp70_270",
|
|
286
|
+
button__label: "_button__label_izp70_277",
|
|
287
|
+
"button--loading": "_button--loading_izp70_287",
|
|
288
|
+
button__spinner: "_button__spinner_izp70_291",
|
|
289
|
+
"sakani-btn-spin": "_sakani-btn-spin_izp70_1"
|
|
290
|
+
}, P = 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
|
+
Ue.button,
|
|
296
|
+
Ue[`button--${e}`],
|
|
297
|
+
Ue[`button--${t}`],
|
|
298
|
+
o ? Ue["button--loading"] : "",
|
|
299
|
+
n && !o ? Ue["button--hasLeftIcon"] : "",
|
|
300
|
+
r && !o ? Ue["button--hasRightIcon"] : "",
|
|
301
301
|
l ?? ""
|
|
302
302
|
].filter(Boolean).join(" "),
|
|
303
303
|
disabled: f,
|
|
@@ -305,7 +305,7 @@ var M = {
|
|
|
305
305
|
...u,
|
|
306
306
|
children: [
|
|
307
307
|
o && /* @__PURE__ */ i("span", {
|
|
308
|
-
className: [
|
|
308
|
+
className: [Ue.button__icon, Ue.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 M = {
|
|
|
317
317
|
})
|
|
318
318
|
}),
|
|
319
319
|
n && !o && /* @__PURE__ */ i("span", {
|
|
320
|
-
className:
|
|
320
|
+
className: Ue.button__icon,
|
|
321
321
|
"aria-hidden": "true",
|
|
322
322
|
children: n
|
|
323
323
|
}),
|
|
324
324
|
/* @__PURE__ */ i("span", {
|
|
325
|
-
className:
|
|
325
|
+
className: Ue.button__label,
|
|
326
326
|
children: c
|
|
327
327
|
}),
|
|
328
328
|
r && !o && /* @__PURE__ */ i("span", {
|
|
329
|
-
className:
|
|
329
|
+
className: Ue.button__icon,
|
|
330
330
|
"aria-hidden": "true",
|
|
331
331
|
children: r
|
|
332
332
|
})
|
|
333
333
|
]
|
|
334
334
|
});
|
|
335
335
|
});
|
|
336
|
-
|
|
337
|
-
var
|
|
336
|
+
P.displayName = "Button";
|
|
337
|
+
var F = {
|
|
338
338
|
wrap: "_wrap_3mj75_1",
|
|
339
339
|
"wrap--vertical": "_wrap--vertical_3mj75_7",
|
|
340
340
|
"wrap--horizontal": "_wrap--horizontal_3mj75_11",
|
|
@@ -348,47 +348,47 @@ var P = {
|
|
|
348
348
|
hint: "_hint_3mj75_79",
|
|
349
349
|
link: "_link_3mj75_88",
|
|
350
350
|
input: "_input_3mj75_92"
|
|
351
|
-
},
|
|
351
|
+
}, We = ({ 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: [F.textStack, v ? "" : F["textStack--center"]].filter(Boolean).join(" "),
|
|
356
356
|
children: [/* @__PURE__ */ i("p", {
|
|
357
|
-
className:
|
|
357
|
+
className: F.title,
|
|
358
358
|
children: s
|
|
359
359
|
}), /* @__PURE__ */ i("p", {
|
|
360
|
-
className:
|
|
360
|
+
className: F.hint,
|
|
361
361
|
children: l
|
|
362
362
|
})]
|
|
363
363
|
});
|
|
364
364
|
return /* @__PURE__ */ a("div", {
|
|
365
365
|
className: [
|
|
366
|
-
|
|
367
|
-
|
|
366
|
+
F.wrap,
|
|
367
|
+
F[`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: F.circleWrap,
|
|
373
|
+
children: [/* @__PURE__ */ i(Ne, {
|
|
374
374
|
size: v ? "lg" : "xl",
|
|
375
375
|
src: _,
|
|
376
376
|
alt: n,
|
|
377
|
-
className: v ? void 0 :
|
|
377
|
+
className: v ? void 0 : F.bigAvatar
|
|
378
378
|
}), !v && /* @__PURE__ */ i("button", {
|
|
379
379
|
type: "button",
|
|
380
|
-
className:
|
|
380
|
+
className: F.badge,
|
|
381
381
|
onClick: b,
|
|
382
382
|
"aria-label": "Change photo",
|
|
383
383
|
children: /* @__PURE__ */ i(c, {
|
|
384
384
|
size: 16,
|
|
385
|
-
strokeWidth:
|
|
385
|
+
strokeWidth: M(16)
|
|
386
386
|
})
|
|
387
387
|
})]
|
|
388
388
|
}),
|
|
389
389
|
v && /* @__PURE__ */ a("div", {
|
|
390
|
-
className:
|
|
391
|
-
children: [S, y ? /* @__PURE__ */ i(
|
|
390
|
+
className: F.horizontalContent,
|
|
391
|
+
children: [S, y ? /* @__PURE__ */ i(P, {
|
|
392
392
|
variant: "outline",
|
|
393
393
|
size: "sm",
|
|
394
394
|
onClick: x,
|
|
@@ -397,19 +397,19 @@ var P = {
|
|
|
397
397
|
borderColor: "var(--color-danger-border)"
|
|
398
398
|
},
|
|
399
399
|
children: "Remove"
|
|
400
|
-
}) : /* @__PURE__ */ i(
|
|
400
|
+
}) : /* @__PURE__ */ i(P, {
|
|
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(ze, {
|
|
408
408
|
href: "#",
|
|
409
409
|
onClick: (e) => {
|
|
410
410
|
e.preventDefault(), b();
|
|
411
411
|
},
|
|
412
|
-
className:
|
|
412
|
+
className: F.link,
|
|
413
413
|
style: {
|
|
414
414
|
color: "var(--color-brand-fg)",
|
|
415
415
|
fontSize: 16,
|
|
@@ -421,7 +421,7 @@ var P = {
|
|
|
421
421
|
ref: p,
|
|
422
422
|
type: "file",
|
|
423
423
|
accept: o,
|
|
424
|
-
className:
|
|
424
|
+
className: F.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 P = {
|
|
|
432
432
|
};
|
|
433
433
|
//#endregion
|
|
434
434
|
//#region src/lib/useThemeTick.ts
|
|
435
|
-
function
|
|
435
|
+
function Ge() {
|
|
436
436
|
let [e, r] = n(0);
|
|
437
437
|
return t(() => {
|
|
438
438
|
if (typeof document > "u") return;
|
|
@@ -444,7 +444,7 @@ function je() {
|
|
|
444
444
|
}), () => e.disconnect();
|
|
445
445
|
}, []), e;
|
|
446
446
|
}
|
|
447
|
-
var
|
|
447
|
+
var I = {
|
|
448
448
|
balance: "_balance_kaxp5_1",
|
|
449
449
|
"balance--progress": "_balance--progress_kaxp5_8",
|
|
450
450
|
content: "_content_kaxp5_17",
|
|
@@ -462,30 +462,30 @@ var F = {
|
|
|
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
|
+
}, Ke = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", qe = 8, Je = 6, Ye = 90, Xe = (e) => {
|
|
466
|
+
let t = Math.min(e, qe);
|
|
467
|
+
return Array.from({ length: t }, () => Ke[Math.floor(Math.random() * 36)]).join("");
|
|
468
|
+
}, Ze = (e) => typeof window < "u" && getComputedStyle(document.documentElement).getPropertyValue(e).trim() || void 0, Qe = ({ progress: e }) => {
|
|
469
|
+
Ge();
|
|
470
|
+
let t = Ze("--color-chart-1") ?? "#ff4700", n = Ze("--color-bg-subtle") ?? "#f5f4f2", r = [{ value: Math.max(0, Math.min(100, e)) }];
|
|
471
471
|
return /* @__PURE__ */ i("div", {
|
|
472
|
-
className:
|
|
473
|
-
children: /* @__PURE__ */ i(
|
|
472
|
+
className: I.ringCard,
|
|
473
|
+
children: /* @__PURE__ */ i(xe, {
|
|
474
474
|
width: 64,
|
|
475
475
|
height: 64,
|
|
476
|
-
children: /* @__PURE__ */ a(
|
|
476
|
+
children: /* @__PURE__ */ a(ye, {
|
|
477
477
|
data: r,
|
|
478
478
|
startAngle: 90,
|
|
479
479
|
endAngle: -270,
|
|
480
480
|
innerRadius: "72%",
|
|
481
481
|
outerRadius: "100%",
|
|
482
482
|
barSize: 10,
|
|
483
|
-
children: [/* @__PURE__ */ i(
|
|
483
|
+
children: [/* @__PURE__ */ i(_e, {
|
|
484
484
|
type: "number",
|
|
485
485
|
domain: [0, 100],
|
|
486
486
|
tick: !1,
|
|
487
487
|
axisLine: !1
|
|
488
|
-
}), /* @__PURE__ */ i(
|
|
488
|
+
}), /* @__PURE__ */ i(ve, {
|
|
489
489
|
dataKey: "value",
|
|
490
490
|
cornerRadius: 5,
|
|
491
491
|
fill: t,
|
|
@@ -495,8 +495,8 @@ var F = {
|
|
|
495
495
|
})
|
|
496
496
|
})
|
|
497
497
|
});
|
|
498
|
-
},
|
|
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" ?
|
|
498
|
+
}, $e = ({ label: t = "Available balance", value: n, change: r, progress: o, hidden: s, onToggleHidden: c, className: l }) => {
|
|
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" ? ae : ie, _ = () => {
|
|
500
500
|
let e = !p;
|
|
501
501
|
c?.(e), u || f(e);
|
|
502
502
|
}, [b, x] = e.useState(!1), [S, C] = e.useState(0), w = e.useRef(!1);
|
|
@@ -504,53 +504,53 @@ var F = {
|
|
|
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 >= Je && (clearInterval(t), x(!1));
|
|
508
|
+
}, Ye);
|
|
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(() => Xe(n.length), [n, S]), E = e.useMemo(() => r ? Xe(r.value.length) : "", [r?.value, S]), D = /* @__PURE__ */ a("div", {
|
|
514
|
+
className: I.content,
|
|
515
515
|
children: [
|
|
516
516
|
/* @__PURE__ */ a("div", {
|
|
517
|
-
className:
|
|
517
|
+
className: I.labelRow,
|
|
518
518
|
children: [/* @__PURE__ */ i("p", {
|
|
519
|
-
className:
|
|
519
|
+
className: I.label,
|
|
520
520
|
children: t
|
|
521
521
|
}), /* @__PURE__ */ i("button", {
|
|
522
522
|
type: "button",
|
|
523
|
-
className:
|
|
523
|
+
className: I.hideToggle,
|
|
524
524
|
"aria-label": p ? "Show balance" : "Hide balance",
|
|
525
525
|
onClick: _,
|
|
526
526
|
children: i(p ? y : v, {
|
|
527
527
|
size: 16,
|
|
528
|
-
strokeWidth:
|
|
528
|
+
strokeWidth: M(16)
|
|
529
529
|
})
|
|
530
530
|
})]
|
|
531
531
|
}),
|
|
532
532
|
/* @__PURE__ */ i("p", {
|
|
533
533
|
className: [
|
|
534
|
-
|
|
535
|
-
p ?
|
|
536
|
-
b ?
|
|
534
|
+
I.value,
|
|
535
|
+
p ? I["value--hidden"] : "",
|
|
536
|
+
b ? I["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: I.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" ? I.trendIcon__up : I.trendIcon__down
|
|
547
547
|
}),
|
|
548
548
|
/* @__PURE__ */ i("span", {
|
|
549
|
-
className: [h === "up" ?
|
|
549
|
+
className: [h === "up" ? I.changeValue__up : I.changeValue__down, b ? I["value--glitching"] : ""].filter(Boolean).join(" "),
|
|
550
550
|
children: p ? E : r.value
|
|
551
551
|
}),
|
|
552
552
|
/* @__PURE__ */ i("span", {
|
|
553
|
-
className:
|
|
553
|
+
className: I.changeLabel,
|
|
554
554
|
children: r.label ?? "this month"
|
|
555
555
|
})
|
|
556
556
|
]
|
|
@@ -559,13 +559,13 @@ var F = {
|
|
|
559
559
|
});
|
|
560
560
|
return /* @__PURE__ */ a("div", {
|
|
561
561
|
className: [
|
|
562
|
-
|
|
563
|
-
m ?
|
|
562
|
+
I.balance,
|
|
563
|
+
m ? I["balance--progress"] : "",
|
|
564
564
|
l ?? ""
|
|
565
565
|
].filter(Boolean).join(" "),
|
|
566
|
-
children: [m && /* @__PURE__ */ i(
|
|
566
|
+
children: [m && /* @__PURE__ */ i(Qe, { progress: o }), D]
|
|
567
567
|
});
|
|
568
|
-
},
|
|
568
|
+
}, et = {
|
|
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 F = {
|
|
|
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
|
+
}, tt = ({ 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,72 +582,256 @@ var F = {
|
|
|
582
582
|
"aria-valuemin": 0,
|
|
583
583
|
"aria-valuemax": 100,
|
|
584
584
|
className: [
|
|
585
|
-
|
|
586
|
-
|
|
585
|
+
et.progress,
|
|
586
|
+
et[`progress--${t}`],
|
|
587
587
|
r ?? ""
|
|
588
588
|
].filter(Boolean).join(" "),
|
|
589
589
|
children: /* @__PURE__ */ i("div", {
|
|
590
|
-
className: [
|
|
590
|
+
className: [et.progress__fill, a ? et["progress__fill--indeterminate"] : ""].filter(Boolean).join(" "),
|
|
591
591
|
style: a ? void 0 : { width: `${o}%` }
|
|
592
592
|
})
|
|
593
593
|
});
|
|
594
|
-
},
|
|
595
|
-
function
|
|
594
|
+
}, nt = ["dark", "force-light"];
|
|
595
|
+
function rt(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(nt.map((e) => `.${e}`).join(", ")), i = n ? nt.find((e) => n.classList.contains(e)) ?? "" : "";
|
|
602
602
|
a(i);
|
|
603
603
|
}, [e, r]), i;
|
|
604
604
|
}
|
|
605
|
-
|
|
605
|
+
function it(e, r) {
|
|
606
|
+
let [i, a] = n(void 0);
|
|
607
|
+
return t(() => {
|
|
608
|
+
if (!r || typeof document > "u") return;
|
|
609
|
+
let t = e.current;
|
|
610
|
+
t && a(t.closest("[data-surface]")?.getAttribute("data-surface") ?? void 0);
|
|
611
|
+
}, [e, r]), i;
|
|
612
|
+
}
|
|
613
|
+
var at = {
|
|
614
|
+
liquid: "_liquid_lq7ov_3",
|
|
615
|
+
regular: "_regular_lq7ov_11",
|
|
616
|
+
clear: "_clear_lq7ov_12",
|
|
617
|
+
interactive: "_interactive_lq7ov_62",
|
|
618
|
+
defs: "_defs_lq7ov_64"
|
|
619
|
+
};
|
|
620
|
+
//#endregion
|
|
621
|
+
//#region src/lib/LiquidGlass.tsx
|
|
622
|
+
function ot() {
|
|
623
|
+
return typeof navigator > "u" ? !1 : !!(navigator.userAgentData?.brands)?.some((e) => /Chromium/i.test(e.brand));
|
|
624
|
+
}
|
|
625
|
+
var st = /* @__PURE__ */ new Map();
|
|
626
|
+
function ct(e, t, n, r) {
|
|
627
|
+
let i = `${e}x${t}:${n}:${r}`, a = st.get(i);
|
|
628
|
+
if (a) return a;
|
|
629
|
+
let o = document.createElement("canvas");
|
|
630
|
+
o.width = e, o.height = t;
|
|
631
|
+
let s = o.getContext("2d");
|
|
632
|
+
if (!s) return "";
|
|
633
|
+
let c = s.createImageData(e, t), l = c.data, u = Math.min(n, e / 2, t / 2), d = e / 2, f = t / 2;
|
|
634
|
+
for (let n = 0; n < t; n++) for (let i = 0; i < e; i++) {
|
|
635
|
+
let a = i + .5, o = n + .5, s = Math.abs(a - d) - (e / 2 - u), c = Math.abs(o - f) - (t / 2 - u), p = Math.max(s, 0), m = Math.max(c, 0), h = Math.hypot(p, m), g = -(h + Math.min(Math.max(s, c), 0) - u), _ = 0, v = 0, y = 0;
|
|
636
|
+
if (g < r) {
|
|
637
|
+
s > 0 && c > 0 && h > 0 ? (_ = p / h, v = m / h) : s > c ? _ = 1 : v = 1, _ *= Math.sign(a - d) || 1, v *= Math.sign(o - f) || 1;
|
|
638
|
+
let e = 1 - Math.max(g, 0) / r;
|
|
639
|
+
y = 1 - Math.sqrt(1 - e * e);
|
|
640
|
+
}
|
|
641
|
+
let b = (n * e + i) * 4;
|
|
642
|
+
l[b] = 128 - _ * y * 127, l[b + 1] = 128 - v * y * 127, l[b + 2] = 128, l[b + 3] = 255;
|
|
643
|
+
}
|
|
644
|
+
s.putImageData(c, 0, 0);
|
|
645
|
+
let p = o.toDataURL();
|
|
646
|
+
return st.set(i, p), p;
|
|
647
|
+
}
|
|
648
|
+
var lt = (e, t, n) => {
|
|
649
|
+
let r = parseFloat(getComputedStyle(e).getPropertyValue(t));
|
|
650
|
+
return Number.isFinite(r) ? r : n;
|
|
651
|
+
};
|
|
652
|
+
function ut(t, { enabled: n = !0, refraction: r = "auto" } = {}) {
|
|
653
|
+
let o = `liquid-${e.useId().replace(/[^a-zA-Z0-9_-]/g, "")}`, [s, c] = e.useState(null), l = n && r !== "off" && ot();
|
|
654
|
+
e.useEffect(() => {
|
|
655
|
+
let e = t.current;
|
|
656
|
+
if (!e || !l) {
|
|
657
|
+
c(null);
|
|
658
|
+
return;
|
|
659
|
+
}
|
|
660
|
+
let n = () => {
|
|
661
|
+
let t = Math.round(e.offsetWidth), n = Math.round(e.offsetHeight);
|
|
662
|
+
if (!t || !n) return;
|
|
663
|
+
let r = parseFloat(getComputedStyle(e).borderTopLeftRadius) || 0, i = lt(e, "--liquid-bezel", 22), a = Math.round(Math.min(i, Math.min(t, n) * .35)), o = a / i, s = {
|
|
664
|
+
w: t,
|
|
665
|
+
h: n,
|
|
666
|
+
radius: r,
|
|
667
|
+
bezel: a,
|
|
668
|
+
refraction: Math.round(lt(e, "--liquid-refraction", 30) * o),
|
|
669
|
+
dispersion: lt(e, "--liquid-dispersion", 3) * o,
|
|
670
|
+
frost: lt(e, "--liquid-frost", 1.5),
|
|
671
|
+
saturate: lt(e, "--liquid-saturate", 1.5)
|
|
672
|
+
};
|
|
673
|
+
c((e) => e && Object.keys(s).every((t) => e[t] === s[t]) ? e : s);
|
|
674
|
+
};
|
|
675
|
+
n();
|
|
676
|
+
let r = new ResizeObserver(n);
|
|
677
|
+
return r.observe(e), () => r.disconnect();
|
|
678
|
+
}, [t, l]);
|
|
679
|
+
let u = s ? ct(s.w, s.h, s.radius, s.bezel) : "", d = e.useCallback((e) => {
|
|
680
|
+
let t = e.currentTarget, n = t.getBoundingClientRect();
|
|
681
|
+
t.style.setProperty("--mx", `${e.clientX - n.left}px`), t.style.setProperty("--my", `${e.clientY - n.top}px`);
|
|
682
|
+
}, []), f = l && !!s && !!u, p = (e) => {
|
|
683
|
+
let t = Array(20).fill(0);
|
|
684
|
+
return t[e * 5 + e] = 1, t[18] = 1, t.join(" ");
|
|
685
|
+
};
|
|
686
|
+
return {
|
|
687
|
+
filter: f && s ? /* @__PURE__ */ i("svg", {
|
|
688
|
+
className: at.defs,
|
|
689
|
+
width: "0",
|
|
690
|
+
height: "0",
|
|
691
|
+
"aria-hidden": "true",
|
|
692
|
+
focusable: "false",
|
|
693
|
+
children: /* @__PURE__ */ a("filter", {
|
|
694
|
+
id: o,
|
|
695
|
+
x: "0",
|
|
696
|
+
y: "0",
|
|
697
|
+
width: s.w,
|
|
698
|
+
height: s.h,
|
|
699
|
+
filterUnits: "userSpaceOnUse",
|
|
700
|
+
primitiveUnits: "userSpaceOnUse",
|
|
701
|
+
colorInterpolationFilters: "sRGB",
|
|
702
|
+
children: [
|
|
703
|
+
/* @__PURE__ */ i("feImage", {
|
|
704
|
+
href: u,
|
|
705
|
+
x: "0",
|
|
706
|
+
y: "0",
|
|
707
|
+
width: s.w,
|
|
708
|
+
height: s.h,
|
|
709
|
+
preserveAspectRatio: "none",
|
|
710
|
+
result: "map"
|
|
711
|
+
}),
|
|
712
|
+
[
|
|
713
|
+
0,
|
|
714
|
+
1,
|
|
715
|
+
2
|
|
716
|
+
].map((t) => /* @__PURE__ */ a(e.Fragment, { children: [/* @__PURE__ */ i("feDisplacementMap", {
|
|
717
|
+
in: "SourceGraphic",
|
|
718
|
+
in2: "map",
|
|
719
|
+
scale: s.refraction + t * s.dispersion,
|
|
720
|
+
xChannelSelector: "R",
|
|
721
|
+
yChannelSelector: "G",
|
|
722
|
+
result: `d${t}`
|
|
723
|
+
}), /* @__PURE__ */ i("feColorMatrix", {
|
|
724
|
+
in: `d${t}`,
|
|
725
|
+
type: "matrix",
|
|
726
|
+
values: p(t),
|
|
727
|
+
result: `c${t}`
|
|
728
|
+
})] }, t)),
|
|
729
|
+
/* @__PURE__ */ i("feBlend", {
|
|
730
|
+
in: "c0",
|
|
731
|
+
in2: "c1",
|
|
732
|
+
mode: "screen",
|
|
733
|
+
result: "c01"
|
|
734
|
+
}),
|
|
735
|
+
/* @__PURE__ */ i("feBlend", {
|
|
736
|
+
in: "c01",
|
|
737
|
+
in2: "c2",
|
|
738
|
+
mode: "screen",
|
|
739
|
+
result: "rgb"
|
|
740
|
+
}),
|
|
741
|
+
/* @__PURE__ */ i("feGaussianBlur", {
|
|
742
|
+
in: "rgb",
|
|
743
|
+
stdDeviation: s.frost,
|
|
744
|
+
result: "soft"
|
|
745
|
+
}),
|
|
746
|
+
/* @__PURE__ */ i("feColorMatrix", {
|
|
747
|
+
in: "soft",
|
|
748
|
+
type: "saturate",
|
|
749
|
+
values: String(s.saturate)
|
|
750
|
+
})
|
|
751
|
+
]
|
|
752
|
+
})
|
|
753
|
+
}) : null,
|
|
754
|
+
refracting: f,
|
|
755
|
+
props: {
|
|
756
|
+
"data-surface": "liquid",
|
|
757
|
+
"data-refraction": f ? "on" : "off",
|
|
758
|
+
style: f ? { backdropFilter: `url(#${o})` } : void 0,
|
|
759
|
+
onPointerMove: d
|
|
760
|
+
}
|
|
761
|
+
};
|
|
762
|
+
}
|
|
763
|
+
var dt = e.forwardRef(({ variant: t = "regular", radius: n = 20, refraction: r = "auto", interactive: i, className: o, style: s, children: c, onPointerMove: l, ...u }, d) => {
|
|
764
|
+
let f = e.useRef(null), p = (e) => {
|
|
765
|
+
f.current = e, typeof d == "function" ? d(e) : d && (d.current = e);
|
|
766
|
+
}, m = ut(f, { refraction: r });
|
|
767
|
+
return /* @__PURE__ */ a("div", {
|
|
768
|
+
ref: p,
|
|
769
|
+
...u,
|
|
770
|
+
...m.props,
|
|
771
|
+
className: [
|
|
772
|
+
at.liquid,
|
|
773
|
+
at[t],
|
|
774
|
+
i ? at.interactive : "",
|
|
775
|
+
o ?? ""
|
|
776
|
+
].filter(Boolean).join(" "),
|
|
777
|
+
style: {
|
|
778
|
+
borderRadius: n,
|
|
779
|
+
...m.props.style,
|
|
780
|
+
...s
|
|
781
|
+
},
|
|
782
|
+
onPointerMove: (e) => {
|
|
783
|
+
m.props.onPointerMove(e), l?.(e);
|
|
784
|
+
},
|
|
785
|
+
children: [m.filter, c]
|
|
786
|
+
});
|
|
787
|
+
});
|
|
788
|
+
dt.displayName = "LiquidGlass";
|
|
789
|
+
var ft = (e = "regular") => [at.liquid, at[e]].join(" "), pt = {
|
|
606
790
|
"divider--horizontal": "_divider--horizontal_nem37_4",
|
|
607
791
|
"divider--labeled": "_divider--labeled_nem37_13",
|
|
608
792
|
"divider--vertical": "_divider--vertical_nem37_27",
|
|
609
793
|
divider__label: "_divider__label_nem37_38"
|
|
610
|
-
},
|
|
794
|
+
}, mt = ({ orientation: e = "horizontal", label: t, className: n }) => /* @__PURE__ */ i("div", {
|
|
611
795
|
role: "separator",
|
|
612
796
|
"aria-orientation": e,
|
|
613
797
|
className: [
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
t ?
|
|
798
|
+
pt.divider,
|
|
799
|
+
pt[`divider--${e}`],
|
|
800
|
+
t ? pt["divider--labeled"] : "",
|
|
617
801
|
n ?? ""
|
|
618
802
|
].filter(Boolean).join(" "),
|
|
619
803
|
children: t && e === "horizontal" && /* @__PURE__ */ i("span", {
|
|
620
|
-
className:
|
|
804
|
+
className: pt.divider__label,
|
|
621
805
|
children: t
|
|
622
806
|
})
|
|
623
|
-
}),
|
|
624
|
-
backdrop: "
|
|
625
|
-
card: "
|
|
626
|
-
header: "
|
|
627
|
-
titleGroup: "
|
|
628
|
-
iconWrap: "
|
|
629
|
-
icon: "
|
|
630
|
-
title: "
|
|
631
|
-
description: "
|
|
632
|
-
footer: "
|
|
633
|
-
"footer--between": "_footer--
|
|
634
|
-
"backdrop--entering": "_backdrop--
|
|
635
|
-
"sakani-modal-backdrop-in": "_sakani-modal-backdrop-
|
|
636
|
-
"backdrop--exiting": "_backdrop--
|
|
637
|
-
"sakani-modal-backdrop-out": "_sakani-modal-backdrop-
|
|
638
|
-
"card--entering": "_card--
|
|
639
|
-
"sakani-modal-card-in": "_sakani-modal-card-
|
|
640
|
-
"card--exiting": "_card--
|
|
641
|
-
"sakani-modal-card-out": "_sakani-modal-card-
|
|
642
|
-
},
|
|
643
|
-
let S = c === "destructive", C = e.useRef(null), w = e.useRef(null), T = e.useRef(null), E =
|
|
644
|
-
|
|
645
|
-
t &&
|
|
807
|
+
}), L = {
|
|
808
|
+
backdrop: "_backdrop_13dud_1",
|
|
809
|
+
card: "_card_13dud_12",
|
|
810
|
+
header: "_header_13dud_34",
|
|
811
|
+
titleGroup: "_titleGroup_13dud_42",
|
|
812
|
+
iconWrap: "_iconWrap_13dud_49",
|
|
813
|
+
icon: "_icon_13dud_49",
|
|
814
|
+
title: "_title_13dud_42",
|
|
815
|
+
description: "_description_13dud_75",
|
|
816
|
+
footer: "_footer_13dud_83",
|
|
817
|
+
"footer--between": "_footer--between_13dud_94",
|
|
818
|
+
"backdrop--entering": "_backdrop--entering_13dud_112",
|
|
819
|
+
"sakani-modal-backdrop-in": "_sakani-modal-backdrop-in_13dud_1",
|
|
820
|
+
"backdrop--exiting": "_backdrop--exiting_13dud_113",
|
|
821
|
+
"sakani-modal-backdrop-out": "_sakani-modal-backdrop-out_13dud_1",
|
|
822
|
+
"card--entering": "_card--entering_13dud_114",
|
|
823
|
+
"sakani-modal-card-in": "_sakani-modal-card-in_13dud_1",
|
|
824
|
+
"card--exiting": "_card--exiting_13dud_115",
|
|
825
|
+
"sakani-modal-card-out": "_sakani-modal-card-out_13dud_1"
|
|
826
|
+
}, ht = ({ 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 }) => {
|
|
827
|
+
let S = c === "destructive", C = e.useRef(null), w = e.useRef(null), T = e.useRef(null), E = rt(T, t), D = it(T, t), O = D === "liquid", k = ut(C, { enabled: O }), [A, j] = e.useState(!1);
|
|
828
|
+
e.useEffect(() => {
|
|
829
|
+
t && j(!0);
|
|
646
830
|
}, [t]), e.useEffect(() => {
|
|
647
|
-
if (t || !
|
|
648
|
-
let e = setTimeout(() =>
|
|
831
|
+
if (t || !A) return;
|
|
832
|
+
let e = setTimeout(() => j(!1), 240);
|
|
649
833
|
return () => clearTimeout(e);
|
|
650
|
-
}, [t,
|
|
834
|
+
}, [t, A]), e.useEffect(() => {
|
|
651
835
|
if (!t) return;
|
|
652
836
|
let e = (e) => {
|
|
653
837
|
if (h && e.key === "Escape") {
|
|
@@ -672,16 +856,19 @@ var We = {
|
|
|
672
856
|
return document.body.style.overflow = "hidden", C.current?.focus(), () => {
|
|
673
857
|
document.body.style.overflow = e, w.current?.focus();
|
|
674
858
|
};
|
|
675
|
-
}, [t])
|
|
859
|
+
}, [t]);
|
|
860
|
+
let ee = () => (f ?? n)();
|
|
861
|
+
return /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("span", {
|
|
676
862
|
ref: T,
|
|
677
863
|
style: { display: "none" },
|
|
678
864
|
"aria-hidden": "true"
|
|
679
|
-
}),
|
|
865
|
+
}), A && Ee(/* @__PURE__ */ i("div", {
|
|
680
866
|
className: [
|
|
681
|
-
|
|
867
|
+
L.backdrop,
|
|
682
868
|
E,
|
|
683
|
-
t ?
|
|
869
|
+
t ? L["backdrop--entering"] : L["backdrop--exiting"]
|
|
684
870
|
].filter(Boolean).join(" "),
|
|
871
|
+
"data-surface": D,
|
|
685
872
|
onMouseDown: (e) => {
|
|
686
873
|
g && e.target === e.currentTarget && n();
|
|
687
874
|
},
|
|
@@ -693,33 +880,36 @@ var We = {
|
|
|
693
880
|
"aria-label": v ? o : void 0,
|
|
694
881
|
tabIndex: -1,
|
|
695
882
|
className: [
|
|
696
|
-
|
|
697
|
-
|
|
883
|
+
L.card,
|
|
884
|
+
O ? ft("regular") : "",
|
|
885
|
+
t ? L["card--entering"] : L["card--exiting"],
|
|
698
886
|
x ?? ""
|
|
699
887
|
].filter(Boolean).join(" "),
|
|
888
|
+
...O ? k.props : {},
|
|
700
889
|
onAnimationEnd: (e) => {
|
|
701
|
-
e.target === e.currentTarget && !t &&
|
|
890
|
+
e.target === e.currentTarget && !t && j(!1);
|
|
702
891
|
},
|
|
703
892
|
children: [
|
|
893
|
+
O && k.filter,
|
|
704
894
|
!v && /* @__PURE__ */ a("div", {
|
|
705
|
-
className:
|
|
895
|
+
className: L.header,
|
|
706
896
|
children: [/* @__PURE__ */ a("div", {
|
|
707
|
-
className:
|
|
897
|
+
className: L.titleGroup,
|
|
708
898
|
children: [S && /* @__PURE__ */ i("span", {
|
|
709
|
-
className:
|
|
899
|
+
className: L.iconWrap,
|
|
710
900
|
"aria-hidden": "true",
|
|
711
|
-
children: l ?? /* @__PURE__ */ i(
|
|
901
|
+
children: l ?? /* @__PURE__ */ i(oe, {
|
|
712
902
|
size: 24,
|
|
713
|
-
strokeWidth:
|
|
714
|
-
className:
|
|
903
|
+
strokeWidth: M(24),
|
|
904
|
+
className: L.icon
|
|
715
905
|
})
|
|
716
906
|
}), /* @__PURE__ */ i("p", {
|
|
717
907
|
id: "modal-title",
|
|
718
|
-
className:
|
|
908
|
+
className: L.title,
|
|
719
909
|
children: o
|
|
720
910
|
})]
|
|
721
|
-
}), /* @__PURE__ */ i(
|
|
722
|
-
icon:
|
|
911
|
+
}), /* @__PURE__ */ i(He, {
|
|
912
|
+
icon: se,
|
|
723
913
|
variant: "ghost",
|
|
724
914
|
size: "lg",
|
|
725
915
|
"aria-label": "Close",
|
|
@@ -727,19 +917,19 @@ var We = {
|
|
|
727
917
|
})]
|
|
728
918
|
}),
|
|
729
919
|
s && /* @__PURE__ */ i("p", {
|
|
730
|
-
className:
|
|
920
|
+
className: L.description,
|
|
731
921
|
children: s
|
|
732
922
|
}),
|
|
733
923
|
_,
|
|
734
|
-
!y && /* @__PURE__ */ i(
|
|
924
|
+
!y && /* @__PURE__ */ i(mt, {}),
|
|
735
925
|
/* @__PURE__ */ a("div", {
|
|
736
|
-
className: [
|
|
737
|
-
children: [/* @__PURE__ */ i(
|
|
926
|
+
className: [L.footer, b === "between" ? L["footer--between"] : ""].filter(Boolean).join(" "),
|
|
927
|
+
children: [/* @__PURE__ */ i(P, {
|
|
738
928
|
variant: "secondary",
|
|
739
|
-
onClick:
|
|
929
|
+
onClick: ee,
|
|
740
930
|
style: { borderColor: "transparent" },
|
|
741
931
|
children: u
|
|
742
|
-
}), /* @__PURE__ */ i(
|
|
932
|
+
}), /* @__PURE__ */ i(P, {
|
|
743
933
|
variant: S ? "destructive" : "primary",
|
|
744
934
|
onClick: p,
|
|
745
935
|
loading: m,
|
|
@@ -749,7 +939,7 @@ var We = {
|
|
|
749
939
|
]
|
|
750
940
|
})
|
|
751
941
|
}), document.body)] });
|
|
752
|
-
},
|
|
942
|
+
}, R = {
|
|
753
943
|
row: "_row_88l3n_2",
|
|
754
944
|
"row--unread": "_row--unread_88l3n_12",
|
|
755
945
|
iconWrapSurface: "_iconWrapSurface_88l3n_17",
|
|
@@ -763,33 +953,33 @@ var We = {
|
|
|
763
953
|
cardTop: "_cardTop_88l3n_87",
|
|
764
954
|
description: "_description_88l3n_94",
|
|
765
955
|
actions: "_actions_88l3n_102"
|
|
766
|
-
},
|
|
956
|
+
}, gt = ({ icon: e, title: t, timestamp: n, read: r = !1, description: s, onDismiss: c, dismissLabel: l = "Dismiss", actionLabel: u, onAction: d, className: f }) => {
|
|
767
957
|
let p = s !== void 0, m = !r && !p, h = e ?? /* @__PURE__ */ i(o, {
|
|
768
958
|
size: 24,
|
|
769
|
-
strokeWidth:
|
|
959
|
+
strokeWidth: M(24)
|
|
770
960
|
});
|
|
771
961
|
return p ? /* @__PURE__ */ a("div", {
|
|
772
|
-
className: [
|
|
962
|
+
className: [R.card, f ?? ""].filter(Boolean).join(" "),
|
|
773
963
|
children: [/* @__PURE__ */ a("div", {
|
|
774
|
-
className:
|
|
964
|
+
className: R.cardTop,
|
|
775
965
|
children: [
|
|
776
966
|
/* @__PURE__ */ i("span", {
|
|
777
|
-
className:
|
|
967
|
+
className: R.iconWrapCanvas,
|
|
778
968
|
"aria-hidden": "true",
|
|
779
969
|
children: h
|
|
780
970
|
}),
|
|
781
971
|
/* @__PURE__ */ a("div", {
|
|
782
|
-
className:
|
|
972
|
+
className: R.content,
|
|
783
973
|
children: [/* @__PURE__ */ i("p", {
|
|
784
|
-
className:
|
|
974
|
+
className: R.titleBold,
|
|
785
975
|
children: t
|
|
786
976
|
}), /* @__PURE__ */ i("p", {
|
|
787
|
-
className:
|
|
977
|
+
className: R.description,
|
|
788
978
|
children: s
|
|
789
979
|
})]
|
|
790
980
|
}),
|
|
791
|
-
c && /* @__PURE__ */ i(
|
|
792
|
-
icon:
|
|
981
|
+
c && /* @__PURE__ */ i(He, {
|
|
982
|
+
icon: se,
|
|
793
983
|
variant: "ghost",
|
|
794
984
|
size: "sm",
|
|
795
985
|
"aria-label": "Close",
|
|
@@ -797,13 +987,13 @@ var We = {
|
|
|
797
987
|
})
|
|
798
988
|
]
|
|
799
989
|
}), /* @__PURE__ */ a("div", {
|
|
800
|
-
className:
|
|
801
|
-
children: [c && /* @__PURE__ */ i(
|
|
990
|
+
className: R.actions,
|
|
991
|
+
children: [c && /* @__PURE__ */ i(P, {
|
|
802
992
|
variant: "ghost",
|
|
803
993
|
size: "sm",
|
|
804
994
|
onClick: c,
|
|
805
995
|
children: l
|
|
806
|
-
}), u && /* @__PURE__ */ i(
|
|
996
|
+
}), u && /* @__PURE__ */ i(P, {
|
|
807
997
|
variant: "secondary",
|
|
808
998
|
size: "sm",
|
|
809
999
|
onClick: d,
|
|
@@ -812,51 +1002,51 @@ var We = {
|
|
|
812
1002
|
})]
|
|
813
1003
|
})]
|
|
814
1004
|
}) : /* @__PURE__ */ a("div", {
|
|
815
|
-
className: [
|
|
1005
|
+
className: [R.row, m ? R["row--unread"] : ""].filter(Boolean).join(" "),
|
|
816
1006
|
children: [
|
|
817
1007
|
/* @__PURE__ */ i("span", {
|
|
818
|
-
className:
|
|
1008
|
+
className: R.iconWrapSurface,
|
|
819
1009
|
"aria-hidden": "true",
|
|
820
1010
|
children: h
|
|
821
1011
|
}),
|
|
822
1012
|
/* @__PURE__ */ a("div", {
|
|
823
|
-
className:
|
|
1013
|
+
className: R.content,
|
|
824
1014
|
children: [/* @__PURE__ */ i("p", {
|
|
825
|
-
className: m ?
|
|
1015
|
+
className: m ? R.titleBold : R.titleMuted,
|
|
826
1016
|
children: t
|
|
827
1017
|
}), n && /* @__PURE__ */ i("p", {
|
|
828
|
-
className:
|
|
1018
|
+
className: R.timestamp,
|
|
829
1019
|
children: n
|
|
830
1020
|
})]
|
|
831
1021
|
}),
|
|
832
1022
|
m && /* @__PURE__ */ i("span", {
|
|
833
|
-
className:
|
|
1023
|
+
className: R.dot,
|
|
834
1024
|
"aria-hidden": "true"
|
|
835
1025
|
})
|
|
836
1026
|
]
|
|
837
1027
|
});
|
|
838
|
-
},
|
|
1028
|
+
}, _t = {
|
|
839
1029
|
stat: "_stat_krs8c_1",
|
|
840
1030
|
labelRow: "_labelRow_krs8c_10",
|
|
841
1031
|
label: "_label_krs8c_10",
|
|
842
1032
|
value: "_value_krs8c_27"
|
|
843
|
-
},
|
|
844
|
-
className: [
|
|
1033
|
+
}, vt = ({ label: e, value: t, progress: n, className: r }) => /* @__PURE__ */ a("div", {
|
|
1034
|
+
className: [_t.stat, r ?? ""].filter(Boolean).join(" "),
|
|
845
1035
|
children: [/* @__PURE__ */ a("div", {
|
|
846
|
-
className:
|
|
1036
|
+
className: _t.labelRow,
|
|
847
1037
|
children: [/* @__PURE__ */ i("p", {
|
|
848
|
-
className:
|
|
1038
|
+
className: _t.label,
|
|
849
1039
|
children: e
|
|
850
1040
|
}), /* @__PURE__ */ i("p", {
|
|
851
|
-
className:
|
|
1041
|
+
className: _t.value,
|
|
852
1042
|
children: t
|
|
853
1043
|
})]
|
|
854
|
-
}), /* @__PURE__ */ i(
|
|
1044
|
+
}), /* @__PURE__ */ i(tt, {
|
|
855
1045
|
value: n,
|
|
856
1046
|
size: "lg",
|
|
857
1047
|
label: e
|
|
858
1048
|
})]
|
|
859
|
-
}),
|
|
1049
|
+
}), yt = {
|
|
860
1050
|
balance: "_balance_5gcu5_1",
|
|
861
1051
|
label: "_label_5gcu5_10",
|
|
862
1052
|
amountRow: "_amountRow_5gcu5_19",
|
|
@@ -866,25 +1056,25 @@ var We = {
|
|
|
866
1056
|
fill: "_fill_5gcu5_50",
|
|
867
1057
|
"fill--over": "_fill--over_5gcu5_57",
|
|
868
1058
|
footer: "_footer_5gcu5_61"
|
|
869
|
-
},
|
|
1059
|
+
}, bt = (e) => e.toLocaleString("en-US", {
|
|
870
1060
|
style: "currency",
|
|
871
1061
|
currency: "USD"
|
|
872
|
-
}),
|
|
1062
|
+
}), xt = ({ label: e = "Spent this month", spent: t, limit: n, formatAmount: r = bt, className: o }) => {
|
|
873
1063
|
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
1064
|
return /* @__PURE__ */ a("div", {
|
|
875
|
-
className: [
|
|
1065
|
+
className: [yt.balance, o ?? ""].filter(Boolean).join(" "),
|
|
876
1066
|
children: [
|
|
877
1067
|
/* @__PURE__ */ i("p", {
|
|
878
|
-
className:
|
|
1068
|
+
className: yt.label,
|
|
879
1069
|
children: e
|
|
880
1070
|
}),
|
|
881
1071
|
/* @__PURE__ */ a("div", {
|
|
882
|
-
className:
|
|
1072
|
+
className: yt.amountRow,
|
|
883
1073
|
children: [/* @__PURE__ */ i("p", {
|
|
884
|
-
className:
|
|
1074
|
+
className: yt.amount,
|
|
885
1075
|
children: r(t)
|
|
886
1076
|
}), /* @__PURE__ */ a("p", {
|
|
887
|
-
className:
|
|
1077
|
+
className: yt.limit,
|
|
888
1078
|
children: [
|
|
889
1079
|
"of ",
|
|
890
1080
|
r(n),
|
|
@@ -893,24 +1083,294 @@ var We = {
|
|
|
893
1083
|
})]
|
|
894
1084
|
}),
|
|
895
1085
|
/* @__PURE__ */ i("div", {
|
|
896
|
-
className:
|
|
1086
|
+
className: yt.track,
|
|
897
1087
|
role: "progressbar",
|
|
898
1088
|
"aria-label": e,
|
|
899
1089
|
"aria-valuenow": Math.round(c),
|
|
900
1090
|
"aria-valuemin": 0,
|
|
901
1091
|
"aria-valuemax": 100,
|
|
902
1092
|
children: /* @__PURE__ */ i("div", {
|
|
903
|
-
className: [
|
|
1093
|
+
className: [yt.fill, s ? yt["fill--over"] : ""].filter(Boolean).join(" "),
|
|
904
1094
|
style: { width: `${c}%` }
|
|
905
1095
|
})
|
|
906
1096
|
}),
|
|
907
1097
|
/* @__PURE__ */ i("p", {
|
|
908
|
-
className:
|
|
1098
|
+
className: yt.footer,
|
|
909
1099
|
children: l
|
|
910
1100
|
})
|
|
911
1101
|
]
|
|
912
1102
|
});
|
|
913
|
-
}
|
|
1103
|
+
};
|
|
1104
|
+
//#endregion
|
|
1105
|
+
//#region src/lib/useChartTokens.ts
|
|
1106
|
+
function St(e) {
|
|
1107
|
+
let [, r] = n(0);
|
|
1108
|
+
return t(() => {
|
|
1109
|
+
if (typeof document > "u") return;
|
|
1110
|
+
r((e) => e + 1);
|
|
1111
|
+
let t = new MutationObserver(() => r((e) => e + 1)), n = /* @__PURE__ */ new Set([document.documentElement]);
|
|
1112
|
+
for (let t = e.current; t; t = t.parentElement) n.add(t);
|
|
1113
|
+
return n.forEach((e) => t.observe(e, {
|
|
1114
|
+
attributes: !0,
|
|
1115
|
+
attributeFilter: ["class"]
|
|
1116
|
+
})), () => t.disconnect();
|
|
1117
|
+
}, [e]), (t) => {
|
|
1118
|
+
if (typeof window > "u") return;
|
|
1119
|
+
let n = e.current ?? document.documentElement;
|
|
1120
|
+
return getComputedStyle(n).getPropertyValue(t).trim() || void 0;
|
|
1121
|
+
};
|
|
1122
|
+
}
|
|
1123
|
+
//#endregion
|
|
1124
|
+
//#region src/lib/chartPalette.ts
|
|
1125
|
+
var Ct = [
|
|
1126
|
+
"#ff4700",
|
|
1127
|
+
"#5b92dd",
|
|
1128
|
+
"#47a8a2",
|
|
1129
|
+
"#9179d6",
|
|
1130
|
+
"#dca84f",
|
|
1131
|
+
"#12b76a"
|
|
1132
|
+
], wt = {
|
|
1133
|
+
tooltip: "_tooltip_ic16u_3",
|
|
1134
|
+
title: "_title_ic16u_23",
|
|
1135
|
+
row: "_row_ic16u_27",
|
|
1136
|
+
dot: "_dot_ic16u_34",
|
|
1137
|
+
label: "_label_ic16u_41",
|
|
1138
|
+
value: "_value_ic16u_42"
|
|
1139
|
+
}, Tt = ({ active: e, payload: t, label: n, formatter: r }) => !e || !t || t.length === 0 ? null : /* @__PURE__ */ a("div", {
|
|
1140
|
+
className: wt.tooltip,
|
|
1141
|
+
children: [n !== void 0 && n !== "" && /* @__PURE__ */ i("span", {
|
|
1142
|
+
className: wt.title,
|
|
1143
|
+
children: n
|
|
1144
|
+
}), t.map((e, t) => /* @__PURE__ */ a("div", {
|
|
1145
|
+
className: wt.row,
|
|
1146
|
+
children: [
|
|
1147
|
+
/* @__PURE__ */ i("span", {
|
|
1148
|
+
className: wt.dot,
|
|
1149
|
+
style: { background: e.color ?? e.payload?.fill ?? e.fill }
|
|
1150
|
+
}),
|
|
1151
|
+
/* @__PURE__ */ i("span", {
|
|
1152
|
+
className: wt.label,
|
|
1153
|
+
children: e.name
|
|
1154
|
+
}),
|
|
1155
|
+
/* @__PURE__ */ i("span", {
|
|
1156
|
+
className: wt.value,
|
|
1157
|
+
children: r ? r(e.value, e.name) : e.value
|
|
1158
|
+
})
|
|
1159
|
+
]
|
|
1160
|
+
}, t))]
|
|
1161
|
+
}), Et = {
|
|
1162
|
+
chart: "_chart_1s6lv_2",
|
|
1163
|
+
legend: "_legend_1s6lv_31",
|
|
1164
|
+
legendItem: "_legendItem_1s6lv_41",
|
|
1165
|
+
legendSwatch: "_legendSwatch_1s6lv_46"
|
|
1166
|
+
}, Dt = {
|
|
1167
|
+
sm: 180,
|
|
1168
|
+
md: 240,
|
|
1169
|
+
lg: 320,
|
|
1170
|
+
xl: 420
|
|
1171
|
+
}, z = 6, Ot = (e) => {
|
|
1172
|
+
if (e <= 0) return 1;
|
|
1173
|
+
let t = 10 ** Math.floor(Math.log10(e)), n = e / t;
|
|
1174
|
+
return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * t;
|
|
1175
|
+
}, kt = ({ data: t, variant: n = "default", size: o = "md", seriesLabels: s = ["Value", "Value 2"], className: c }) => {
|
|
1176
|
+
let [l, u] = e.useState(null), [d, f] = e.useState(null), p = e.useRef(null), m = St(p), h = m("--color-chart-2") ?? "#5b92dd", g = m("--color-chart-5") ?? "#dca84f", _ = m("--color-chart-1") ?? "#ff4700", v = [
|
|
1177
|
+
1,
|
|
1178
|
+
2,
|
|
1179
|
+
3,
|
|
1180
|
+
4,
|
|
1181
|
+
5,
|
|
1182
|
+
6
|
|
1183
|
+
].map((e) => m(`--color-chart-${e}`) ?? Ct[e - 1]), y = m("--color-border-subtle") ?? "#e7e5e1", b = m("--color-fg-muted") ?? "#78716a", x = n === "multiple" || n === "stacked", S = x && t.some((e) => e.value2 !== void 0), C = m("--color-bg-canvas") ?? "#fafaf9", w = Ot(Math.max(1, ...t.map((e) => Math.abs(e.value)))), T = [
|
|
1184
|
+
-w,
|
|
1185
|
+
-w / 2,
|
|
1186
|
+
0,
|
|
1187
|
+
w / 2,
|
|
1188
|
+
w
|
|
1189
|
+
], E = /* @__PURE__ */ i(Se, {
|
|
1190
|
+
cursor: !1,
|
|
1191
|
+
content: /* @__PURE__ */ i(Tt, {}),
|
|
1192
|
+
wrapperStyle: { zIndex: 50 },
|
|
1193
|
+
position: d ? { y: d.y } : void 0
|
|
1194
|
+
}), D = (e) => n === "active" ? v[e % v.length] : n === "negative" && t[e].value < 0 ? _ : h, O = (e) => l !== null && e !== l ? .45 : 1, k = (e, t, n, r, i, a) => ({
|
|
1195
|
+
x: e ? t + r : t + r / 2,
|
|
1196
|
+
y: e ? n + i / 2 : a < 0 ? n + i : n
|
|
1197
|
+
}), A = (e) => (r) => {
|
|
1198
|
+
let { x: o, y: s, width: c, height: l, fill: u, radius: d } = r, f = Number(t[r.index]?.[e] ?? 0), { x: p, y: m } = k(n === "horizontal", o, s, c, l, f);
|
|
1199
|
+
return n === "stacked" && e === "value" ? /* @__PURE__ */ i(be, {
|
|
1200
|
+
x: o,
|
|
1201
|
+
y: s,
|
|
1202
|
+
width: c,
|
|
1203
|
+
height: l,
|
|
1204
|
+
fill: u,
|
|
1205
|
+
radius: d
|
|
1206
|
+
}) : /* @__PURE__ */ a("g", { children: [
|
|
1207
|
+
/* @__PURE__ */ i(be, {
|
|
1208
|
+
x: o,
|
|
1209
|
+
y: s,
|
|
1210
|
+
width: c,
|
|
1211
|
+
height: l,
|
|
1212
|
+
fill: u,
|
|
1213
|
+
radius: d
|
|
1214
|
+
}),
|
|
1215
|
+
/* @__PURE__ */ i("circle", {
|
|
1216
|
+
cx: p,
|
|
1217
|
+
cy: m,
|
|
1218
|
+
r: 4,
|
|
1219
|
+
fill: u,
|
|
1220
|
+
stroke: C,
|
|
1221
|
+
strokeWidth: 1.5
|
|
1222
|
+
}),
|
|
1223
|
+
n === "stacked" && e === "value2" && /* @__PURE__ */ i("circle", {
|
|
1224
|
+
cx: o + c / 2,
|
|
1225
|
+
cy: s + l,
|
|
1226
|
+
r: 4,
|
|
1227
|
+
fill: h,
|
|
1228
|
+
stroke: C,
|
|
1229
|
+
strokeWidth: 1.5
|
|
1230
|
+
})
|
|
1231
|
+
] });
|
|
1232
|
+
}, j = (e) => (r, i) => {
|
|
1233
|
+
u(i);
|
|
1234
|
+
let a = Number(t[i]?.[e] ?? 0);
|
|
1235
|
+
f(k(n === "horizontal", r.x, r.y, r.width, r.height, a));
|
|
1236
|
+
}, ee = () => {
|
|
1237
|
+
u(null), f(null);
|
|
1238
|
+
};
|
|
1239
|
+
return /* @__PURE__ */ i("div", {
|
|
1240
|
+
ref: p,
|
|
1241
|
+
className: [Et.chart, c ?? ""].filter(Boolean).join(" "),
|
|
1242
|
+
children: /* @__PURE__ */ i(xe, {
|
|
1243
|
+
width: "100%",
|
|
1244
|
+
height: Dt[o],
|
|
1245
|
+
children: /* @__PURE__ */ a(le, {
|
|
1246
|
+
data: t,
|
|
1247
|
+
layout: n === "horizontal" ? "vertical" : "horizontal",
|
|
1248
|
+
margin: {
|
|
1249
|
+
top: 8,
|
|
1250
|
+
right: 8,
|
|
1251
|
+
bottom: 8,
|
|
1252
|
+
left: n === "horizontal" ? 8 : 0
|
|
1253
|
+
},
|
|
1254
|
+
children: [
|
|
1255
|
+
/* @__PURE__ */ i(ue, {
|
|
1256
|
+
strokeDasharray: "3 3",
|
|
1257
|
+
stroke: y,
|
|
1258
|
+
horizontal: !0,
|
|
1259
|
+
vertical: n === "horizontal"
|
|
1260
|
+
}),
|
|
1261
|
+
n === "horizontal" ? /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i(Ce, {
|
|
1262
|
+
type: "number",
|
|
1263
|
+
stroke: b,
|
|
1264
|
+
fontSize: 12,
|
|
1265
|
+
tickLine: !1,
|
|
1266
|
+
axisLine: !1
|
|
1267
|
+
}), /* @__PURE__ */ i(we, {
|
|
1268
|
+
type: "category",
|
|
1269
|
+
dataKey: "label",
|
|
1270
|
+
stroke: b,
|
|
1271
|
+
fontSize: 12,
|
|
1272
|
+
tickLine: !1,
|
|
1273
|
+
axisLine: !1,
|
|
1274
|
+
width: 64
|
|
1275
|
+
})] }) : /* @__PURE__ */ i(Ce, {
|
|
1276
|
+
dataKey: "label",
|
|
1277
|
+
stroke: b,
|
|
1278
|
+
fontSize: 12,
|
|
1279
|
+
tickLine: !1,
|
|
1280
|
+
axisLine: !1,
|
|
1281
|
+
interval: 0
|
|
1282
|
+
}),
|
|
1283
|
+
n === "negative" && /* @__PURE__ */ i(we, {
|
|
1284
|
+
hide: !0,
|
|
1285
|
+
domain: [-w, w],
|
|
1286
|
+
ticks: T
|
|
1287
|
+
}),
|
|
1288
|
+
E,
|
|
1289
|
+
x && /* @__PURE__ */ i(fe, { content: (e) => /* @__PURE__ */ i("ul", {
|
|
1290
|
+
className: Et.legend,
|
|
1291
|
+
children: e.payload?.map((e) => /* @__PURE__ */ a("li", {
|
|
1292
|
+
className: Et.legendItem,
|
|
1293
|
+
children: [/* @__PURE__ */ i("span", {
|
|
1294
|
+
className: Et.legendSwatch,
|
|
1295
|
+
style: { background: e.color }
|
|
1296
|
+
}), /* @__PURE__ */ i("span", {
|
|
1297
|
+
style: { color: e.color },
|
|
1298
|
+
children: e.value
|
|
1299
|
+
})]
|
|
1300
|
+
}, e.value))
|
|
1301
|
+
}) }),
|
|
1302
|
+
x ? /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i(ce, {
|
|
1303
|
+
dataKey: "value",
|
|
1304
|
+
name: s[0] ?? "Value",
|
|
1305
|
+
fill: h,
|
|
1306
|
+
stackId: n === "stacked" ? "stack" : void 0,
|
|
1307
|
+
radius: n === "stacked" ? [
|
|
1308
|
+
0,
|
|
1309
|
+
0,
|
|
1310
|
+
z,
|
|
1311
|
+
z
|
|
1312
|
+
] : [
|
|
1313
|
+
z,
|
|
1314
|
+
z,
|
|
1315
|
+
z,
|
|
1316
|
+
z
|
|
1317
|
+
],
|
|
1318
|
+
isAnimationActive: !1,
|
|
1319
|
+
activeBar: A("value"),
|
|
1320
|
+
onMouseEnter: j("value"),
|
|
1321
|
+
onMouseLeave: ee,
|
|
1322
|
+
children: t.map((e, t) => /* @__PURE__ */ i(de, {
|
|
1323
|
+
fill: h,
|
|
1324
|
+
fillOpacity: l !== null && t !== l ? .45 : 1
|
|
1325
|
+
}, t))
|
|
1326
|
+
}), S && /* @__PURE__ */ i(ce, {
|
|
1327
|
+
dataKey: "value2",
|
|
1328
|
+
name: s[1] ?? "Value 2",
|
|
1329
|
+
fill: g,
|
|
1330
|
+
stackId: n === "stacked" ? "stack" : void 0,
|
|
1331
|
+
radius: n === "stacked" ? [
|
|
1332
|
+
z,
|
|
1333
|
+
z,
|
|
1334
|
+
0,
|
|
1335
|
+
0
|
|
1336
|
+
] : [
|
|
1337
|
+
z,
|
|
1338
|
+
z,
|
|
1339
|
+
z,
|
|
1340
|
+
z
|
|
1341
|
+
],
|
|
1342
|
+
isAnimationActive: !1,
|
|
1343
|
+
activeBar: A("value2"),
|
|
1344
|
+
onMouseEnter: j("value2"),
|
|
1345
|
+
onMouseLeave: ee,
|
|
1346
|
+
children: t.map((e, t) => /* @__PURE__ */ i(de, {
|
|
1347
|
+
fill: g,
|
|
1348
|
+
fillOpacity: l !== null && t !== l ? .45 : 1
|
|
1349
|
+
}, t))
|
|
1350
|
+
})] }) : /* @__PURE__ */ i(ce, {
|
|
1351
|
+
dataKey: "value",
|
|
1352
|
+
name: "Value",
|
|
1353
|
+
fill: l === null ? h : D(l),
|
|
1354
|
+
radius: [
|
|
1355
|
+
z,
|
|
1356
|
+
z,
|
|
1357
|
+
z,
|
|
1358
|
+
z
|
|
1359
|
+
],
|
|
1360
|
+
isAnimationActive: !1,
|
|
1361
|
+
activeBar: A("value"),
|
|
1362
|
+
onMouseEnter: j("value"),
|
|
1363
|
+
onMouseLeave: ee,
|
|
1364
|
+
children: t.map((e, t) => /* @__PURE__ */ i(de, {
|
|
1365
|
+
fill: D(t),
|
|
1366
|
+
fillOpacity: O(t)
|
|
1367
|
+
}, t))
|
|
1368
|
+
})
|
|
1369
|
+
]
|
|
1370
|
+
})
|
|
1371
|
+
})
|
|
1372
|
+
});
|
|
1373
|
+
}, At = {
|
|
914
1374
|
badge: "_badge_a5a38_6",
|
|
915
1375
|
"badge--neutral-subtle": "_badge--neutral-subtle_a5a38_20",
|
|
916
1376
|
"badge--neutral-solid": "_badge--neutral-solid_a5a38_21",
|
|
@@ -926,29 +1386,29 @@ var We = {
|
|
|
926
1386
|
"badge--info-solid": "_badge--info-solid_a5a38_41",
|
|
927
1387
|
badge__icon: "_badge__icon_a5a38_44",
|
|
928
1388
|
badge__label: "_badge__label_a5a38_45"
|
|
929
|
-
},
|
|
1389
|
+
}, jt = ({ variant: e = "neutral", emphasis: t = "subtle", leftIcon: n, rightIcon: r, children: o, className: s }) => /* @__PURE__ */ a("span", {
|
|
930
1390
|
className: [
|
|
931
|
-
|
|
932
|
-
|
|
1391
|
+
At.badge,
|
|
1392
|
+
At[`badge--${e}-${t}`],
|
|
933
1393
|
s ?? ""
|
|
934
1394
|
].filter(Boolean).join(" "),
|
|
935
1395
|
children: [
|
|
936
1396
|
n && /* @__PURE__ */ i("span", {
|
|
937
|
-
className:
|
|
1397
|
+
className: At.badge__icon,
|
|
938
1398
|
"aria-hidden": "true",
|
|
939
1399
|
children: n
|
|
940
1400
|
}),
|
|
941
1401
|
/* @__PURE__ */ i("span", {
|
|
942
|
-
className:
|
|
1402
|
+
className: At.badge__label,
|
|
943
1403
|
children: o
|
|
944
1404
|
}),
|
|
945
1405
|
r && /* @__PURE__ */ i("span", {
|
|
946
|
-
className:
|
|
1406
|
+
className: At.badge__icon,
|
|
947
1407
|
"aria-hidden": "true",
|
|
948
1408
|
children: r
|
|
949
1409
|
})
|
|
950
1410
|
]
|
|
951
|
-
}),
|
|
1411
|
+
}), B = {
|
|
952
1412
|
stepper: "_stepper_1w3rz_1",
|
|
953
1413
|
stepBtn: "_stepBtn_1w3rz_10",
|
|
954
1414
|
stepDivider: "_stepDivider_1w3rz_27",
|
|
@@ -967,7 +1427,7 @@ var We = {
|
|
|
967
1427
|
"roll-out-down": "_roll-out-down_1w3rz_1",
|
|
968
1428
|
rollInDown: "_rollInDown_1w3rz_133",
|
|
969
1429
|
"roll-in-down": "_roll-in-down_1w3rz_1"
|
|
970
|
-
},
|
|
1430
|
+
}, Mt = ({ value: t }) => {
|
|
971
1431
|
let n = e.useRef(t), [r, o] = e.useState(null);
|
|
972
1432
|
return t !== n.current && (o({
|
|
973
1433
|
value: n.current,
|
|
@@ -977,50 +1437,50 @@ var We = {
|
|
|
977
1437
|
let e = setTimeout(() => o(null), 260);
|
|
978
1438
|
return () => clearTimeout(e);
|
|
979
1439
|
}, [r]), /* @__PURE__ */ a("span", {
|
|
980
|
-
className:
|
|
1440
|
+
className: B.roll,
|
|
981
1441
|
children: [r && /* @__PURE__ */ i("span", {
|
|
982
|
-
className: [
|
|
1442
|
+
className: [B.rollNum, r.direction === "up" ? B.rollOutUp : B.rollOutDown].join(" "),
|
|
983
1443
|
"aria-hidden": "true",
|
|
984
1444
|
children: r.value
|
|
985
1445
|
}, `out-${r.value}`), /* @__PURE__ */ i("span", {
|
|
986
|
-
className: [
|
|
1446
|
+
className: [B.rollNum, r ? r.direction === "up" ? B.rollInUp : B.rollInDown : ""].filter(Boolean).join(" "),
|
|
987
1447
|
onAnimationEnd: () => o(null),
|
|
988
1448
|
children: t
|
|
989
1449
|
}, `in-${t}`)]
|
|
990
1450
|
});
|
|
991
|
-
},
|
|
1451
|
+
}, Nt = ({ quantity: t, onQuantityChange: n, min: r = 1, max: o, label: s = "Quantity", className: c }) => {
|
|
992
1452
|
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
1453
|
let t = e;
|
|
994
1454
|
return r !== void 0 && (t = Math.max(r, t)), o !== void 0 && (t = Math.min(o, t)), t;
|
|
995
1455
|
};
|
|
996
1456
|
return /* @__PURE__ */ a("div", {
|
|
997
|
-
className: [
|
|
1457
|
+
className: [B.stepper, c ?? ""].filter(Boolean).join(" "),
|
|
998
1458
|
role: "group",
|
|
999
1459
|
"aria-label": s,
|
|
1000
1460
|
children: [
|
|
1001
1461
|
/* @__PURE__ */ i("button", {
|
|
1002
1462
|
type: "button",
|
|
1003
|
-
className:
|
|
1463
|
+
className: B.stepBtn,
|
|
1004
1464
|
disabled: !l,
|
|
1005
1465
|
onClick: () => n?.(Math.max(r, t - 1)),
|
|
1006
1466
|
"aria-label": "Decrease quantity",
|
|
1007
1467
|
children: /* @__PURE__ */ i(w, {
|
|
1008
1468
|
size: 14,
|
|
1009
|
-
strokeWidth:
|
|
1469
|
+
strokeWidth: M(14)
|
|
1010
1470
|
})
|
|
1011
1471
|
}),
|
|
1012
1472
|
/* @__PURE__ */ i("span", {
|
|
1013
|
-
className:
|
|
1473
|
+
className: B.stepDivider,
|
|
1014
1474
|
"aria-hidden": "true"
|
|
1015
1475
|
}),
|
|
1016
1476
|
/* @__PURE__ */ a("span", {
|
|
1017
|
-
className:
|
|
1477
|
+
className: B.stepValue,
|
|
1018
1478
|
children: [/* @__PURE__ */ i("input", {
|
|
1019
1479
|
ref: d,
|
|
1020
1480
|
type: "text",
|
|
1021
1481
|
inputMode: "numeric",
|
|
1022
1482
|
size: Math.max((f ? m : String(t)).length, 1),
|
|
1023
|
-
className: [
|
|
1483
|
+
className: [B.stepInput, f ? "" : B.stepInputResting].filter(Boolean).join(" "),
|
|
1024
1484
|
value: f ? m : String(t),
|
|
1025
1485
|
"aria-label": s,
|
|
1026
1486
|
onFocus: (e) => {
|
|
@@ -1039,29 +1499,29 @@ var We = {
|
|
|
1039
1499
|
e.key === "Enter" && (e.preventDefault(), d.current?.blur()), e.key === "Escape" && (h(String(t)), d.current?.blur());
|
|
1040
1500
|
}
|
|
1041
1501
|
}), /* @__PURE__ */ i("span", {
|
|
1042
|
-
className: [
|
|
1502
|
+
className: [B.rollOverlay, f ? B.rollOverlayHidden : ""].filter(Boolean).join(" "),
|
|
1043
1503
|
"aria-hidden": "true",
|
|
1044
|
-
children: /* @__PURE__ */ i(
|
|
1504
|
+
children: /* @__PURE__ */ i(Mt, { value: t })
|
|
1045
1505
|
})]
|
|
1046
1506
|
}),
|
|
1047
1507
|
/* @__PURE__ */ i("span", {
|
|
1048
|
-
className:
|
|
1508
|
+
className: B.stepDivider,
|
|
1049
1509
|
"aria-hidden": "true"
|
|
1050
1510
|
}),
|
|
1051
1511
|
/* @__PURE__ */ i("button", {
|
|
1052
1512
|
type: "button",
|
|
1053
|
-
className:
|
|
1513
|
+
className: B.stepBtn,
|
|
1054
1514
|
disabled: !u,
|
|
1055
1515
|
onClick: () => n?.(o === void 0 ? t + 1 : Math.min(o, t + 1)),
|
|
1056
1516
|
"aria-label": "Increase quantity",
|
|
1057
|
-
children: /* @__PURE__ */ i(
|
|
1517
|
+
children: /* @__PURE__ */ i(k, {
|
|
1058
1518
|
size: 14,
|
|
1059
|
-
strokeWidth:
|
|
1519
|
+
strokeWidth: M(14)
|
|
1060
1520
|
})
|
|
1061
1521
|
})
|
|
1062
1522
|
]
|
|
1063
1523
|
});
|
|
1064
|
-
},
|
|
1524
|
+
}, Pt = {
|
|
1065
1525
|
item: "_item_15jww_1",
|
|
1066
1526
|
thumb: "_thumb_15jww_11",
|
|
1067
1527
|
info: "_info_15jww_19",
|
|
@@ -1072,31 +1532,31 @@ var We = {
|
|
|
1072
1532
|
priceRow: "_priceRow_15jww_67",
|
|
1073
1533
|
priceOriginal: "_priceOriginal_15jww_75",
|
|
1074
1534
|
priceSale: "_priceSale_15jww_80"
|
|
1075
|
-
},
|
|
1535
|
+
}, Ft = (e) => e.toLocaleString("en-US", {
|
|
1076
1536
|
style: "currency",
|
|
1077
1537
|
currency: "USD"
|
|
1078
|
-
}),
|
|
1538
|
+
}), 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 = Ft, className: h }) => {
|
|
1079
1539
|
let g = s !== void 0;
|
|
1080
1540
|
return /* @__PURE__ */ a("div", {
|
|
1081
|
-
className: [
|
|
1541
|
+
className: [Pt.item, h ?? ""].filter(Boolean).join(" "),
|
|
1082
1542
|
children: [
|
|
1083
1543
|
/* @__PURE__ */ i("img", {
|
|
1084
1544
|
src: e,
|
|
1085
1545
|
alt: t ?? n,
|
|
1086
|
-
className:
|
|
1546
|
+
className: Pt.thumb
|
|
1087
1547
|
}),
|
|
1088
1548
|
/* @__PURE__ */ a("div", {
|
|
1089
|
-
className:
|
|
1549
|
+
className: Pt.info,
|
|
1090
1550
|
children: [
|
|
1091
1551
|
/* @__PURE__ */ i("p", {
|
|
1092
|
-
className:
|
|
1552
|
+
className: Pt.name,
|
|
1093
1553
|
children: n
|
|
1094
1554
|
}),
|
|
1095
1555
|
r && /* @__PURE__ */ i("p", {
|
|
1096
|
-
className:
|
|
1556
|
+
className: Pt.variant,
|
|
1097
1557
|
children: r
|
|
1098
1558
|
}),
|
|
1099
|
-
/* @__PURE__ */ i(
|
|
1559
|
+
/* @__PURE__ */ i(Nt, {
|
|
1100
1560
|
quantity: c,
|
|
1101
1561
|
onQuantityChange: l,
|
|
1102
1562
|
min: u,
|
|
@@ -1106,20 +1566,20 @@ var We = {
|
|
|
1106
1566
|
]
|
|
1107
1567
|
}),
|
|
1108
1568
|
/* @__PURE__ */ a("div", {
|
|
1109
|
-
className:
|
|
1569
|
+
className: Pt.right,
|
|
1110
1570
|
children: [g ? /* @__PURE__ */ a("div", {
|
|
1111
|
-
className:
|
|
1571
|
+
className: Pt.priceRow,
|
|
1112
1572
|
children: [/* @__PURE__ */ i("span", {
|
|
1113
|
-
className:
|
|
1573
|
+
className: Pt.priceOriginal,
|
|
1114
1574
|
children: m(s)
|
|
1115
1575
|
}), /* @__PURE__ */ i("span", {
|
|
1116
|
-
className:
|
|
1576
|
+
className: Pt.priceSale,
|
|
1117
1577
|
children: m(o)
|
|
1118
1578
|
})]
|
|
1119
1579
|
}) : /* @__PURE__ */ i("p", {
|
|
1120
|
-
className:
|
|
1580
|
+
className: Pt.price,
|
|
1121
1581
|
children: m(o)
|
|
1122
|
-
}), /* @__PURE__ */ i(
|
|
1582
|
+
}), /* @__PURE__ */ i(He, {
|
|
1123
1583
|
icon: w,
|
|
1124
1584
|
variant: "outline",
|
|
1125
1585
|
size: "sm",
|
|
@@ -1129,7 +1589,7 @@ var We = {
|
|
|
1129
1589
|
})
|
|
1130
1590
|
]
|
|
1131
1591
|
});
|
|
1132
|
-
},
|
|
1592
|
+
}, Lt = {
|
|
1133
1593
|
steps: "_steps_t53um_1",
|
|
1134
1594
|
step: "_step_t53um_1",
|
|
1135
1595
|
connector: "_connector_t53um_16",
|
|
@@ -1140,55 +1600,55 @@ var We = {
|
|
|
1140
1600
|
label: "_label_t53um_49",
|
|
1141
1601
|
labelActive: "_labelActive_t53um_56",
|
|
1142
1602
|
labelUpcoming: "_labelUpcoming_t53um_59"
|
|
1143
|
-
},
|
|
1603
|
+
}, Rt = [
|
|
1144
1604
|
"Cart",
|
|
1145
1605
|
"Shipping",
|
|
1146
1606
|
"Payment",
|
|
1147
1607
|
"Confirmation"
|
|
1148
|
-
],
|
|
1149
|
-
className: [
|
|
1608
|
+
], zt = ({ steps: t = Rt, currentStep: n, className: r }) => /* @__PURE__ */ i("div", {
|
|
1609
|
+
className: [Lt.steps, r ?? ""].filter(Boolean).join(" "),
|
|
1150
1610
|
role: "list",
|
|
1151
1611
|
children: t.map((r, o) => {
|
|
1152
1612
|
let s = o < n ? "completed" : o === n ? "active" : "upcoming", c = o === t.length - 1;
|
|
1153
1613
|
return /* @__PURE__ */ a(e.Fragment, { children: [/* @__PURE__ */ a("div", {
|
|
1154
|
-
className:
|
|
1614
|
+
className: Lt.step,
|
|
1155
1615
|
role: "listitem",
|
|
1156
1616
|
"aria-current": s === "active" ? "step" : void 0,
|
|
1157
1617
|
children: [/* @__PURE__ */ i("span", {
|
|
1158
1618
|
className: [
|
|
1159
|
-
|
|
1160
|
-
s === "completed" ?
|
|
1161
|
-
s === "active" ?
|
|
1162
|
-
s === "upcoming" ?
|
|
1619
|
+
Lt.circle,
|
|
1620
|
+
s === "completed" ? Lt.circleCompleted : "",
|
|
1621
|
+
s === "active" ? Lt.circleActive : "",
|
|
1622
|
+
s === "upcoming" ? Lt.circleUpcoming : ""
|
|
1163
1623
|
].filter(Boolean).join(" "),
|
|
1164
1624
|
"aria-hidden": "true",
|
|
1165
1625
|
children: /* @__PURE__ */ i(l, {
|
|
1166
1626
|
size: 14,
|
|
1167
|
-
strokeWidth:
|
|
1627
|
+
strokeWidth: M(14)
|
|
1168
1628
|
})
|
|
1169
1629
|
}), /* @__PURE__ */ i("span", {
|
|
1170
1630
|
className: [
|
|
1171
|
-
|
|
1172
|
-
s === "active" ?
|
|
1173
|
-
s === "upcoming" ?
|
|
1631
|
+
Lt.label,
|
|
1632
|
+
s === "active" ? Lt.labelActive : "",
|
|
1633
|
+
s === "upcoming" ? Lt.labelUpcoming : ""
|
|
1174
1634
|
].filter(Boolean).join(" "),
|
|
1175
1635
|
children: r
|
|
1176
1636
|
})]
|
|
1177
1637
|
}), !c && /* @__PURE__ */ i("span", {
|
|
1178
|
-
className:
|
|
1638
|
+
className: Lt.connector,
|
|
1179
1639
|
"aria-hidden": "true"
|
|
1180
1640
|
})] }, r);
|
|
1181
1641
|
})
|
|
1182
|
-
}),
|
|
1642
|
+
}), Bt = "#fafaf9", Vt = "#141414", Ht = (e, t, n) => {
|
|
1183
1643
|
let r = (e) => {
|
|
1184
1644
|
let t = e / 255;
|
|
1185
1645
|
return t <= .03928 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
|
|
1186
1646
|
};
|
|
1187
1647
|
return .2126 * r(e) + .7152 * r(t) + .0722 * r(n);
|
|
1188
|
-
},
|
|
1648
|
+
}, Ut = (e, t) => {
|
|
1189
1649
|
let n = Math.max(e, t), r = Math.min(e, t);
|
|
1190
1650
|
return (n + .05) / (r + .05);
|
|
1191
|
-
},
|
|
1651
|
+
}, Wt = (e) => {
|
|
1192
1652
|
let t = e.trim().toLowerCase(), n = /^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.exec(t);
|
|
1193
1653
|
if (n) {
|
|
1194
1654
|
let e = n[1];
|
|
@@ -1204,31 +1664,31 @@ var We = {
|
|
|
1204
1664
|
Number(r[2]),
|
|
1205
1665
|
Number(r[3])
|
|
1206
1666
|
] : null;
|
|
1207
|
-
},
|
|
1208
|
-
let r =
|
|
1209
|
-
return
|
|
1210
|
-
},
|
|
1211
|
-
let t =
|
|
1212
|
-
if (t) return
|
|
1213
|
-
if (typeof document > "u") return
|
|
1214
|
-
|
|
1215
|
-
let n =
|
|
1216
|
-
if (!n) return
|
|
1667
|
+
}, Gt = (e, t, n) => {
|
|
1668
|
+
let r = Ht(e, t, n), i = Ut(r, Ht(20, 20, 20));
|
|
1669
|
+
return Ut(r, Ht(250, 250, 249)) >= i ? Bt : Vt;
|
|
1670
|
+
}, Kt = null, qt = (e) => {
|
|
1671
|
+
let t = Wt(e);
|
|
1672
|
+
if (t) return Gt(...t);
|
|
1673
|
+
if (typeof document > "u") return Bt;
|
|
1674
|
+
Kt ??= document.createElement("canvas"), Kt.width = 1, Kt.height = 1;
|
|
1675
|
+
let n = Kt.getContext("2d", { willReadFrequently: !0 });
|
|
1676
|
+
if (!n) return Bt;
|
|
1217
1677
|
n.clearRect(0, 0, 1, 1), n.fillStyle = e, n.fillRect(0, 0, 1, 1);
|
|
1218
1678
|
let [r, i, a] = n.getImageData(0, 0, 1, 1).data;
|
|
1219
|
-
return
|
|
1220
|
-
},
|
|
1679
|
+
return Gt(r, i, a);
|
|
1680
|
+
}, Jt = {
|
|
1221
1681
|
swatch: "_swatch_1i3c3_1",
|
|
1222
1682
|
circle: "_circle_1i3c3_22",
|
|
1223
1683
|
circleUnavailable: "_circleUnavailable_1i3c3_32",
|
|
1224
1684
|
ring: "_ring_1i3c3_39",
|
|
1225
1685
|
check: "_check_1i3c3_55",
|
|
1226
1686
|
strike: "_strike_1i3c3_66"
|
|
1227
|
-
},
|
|
1228
|
-
let u = e.useMemo(() =>
|
|
1687
|
+
}, Yt = ({ color: t, label: n, selected: r = !1, available: o = !0, onSelect: s, className: c }) => {
|
|
1688
|
+
let u = e.useMemo(() => qt(t), [t]);
|
|
1229
1689
|
return /* @__PURE__ */ a("button", {
|
|
1230
1690
|
type: "button",
|
|
1231
|
-
className: [
|
|
1691
|
+
className: [Jt.swatch, c ?? ""].filter(Boolean).join(" "),
|
|
1232
1692
|
style: { "--swatch-color": t },
|
|
1233
1693
|
disabled: !o,
|
|
1234
1694
|
"aria-pressed": o ? r : void 0,
|
|
@@ -1236,49 +1696,49 @@ var We = {
|
|
|
1236
1696
|
onClick: s,
|
|
1237
1697
|
children: [
|
|
1238
1698
|
r && o && /* @__PURE__ */ i("span", {
|
|
1239
|
-
className:
|
|
1699
|
+
className: Jt.ring,
|
|
1240
1700
|
"aria-hidden": "true"
|
|
1241
1701
|
}),
|
|
1242
1702
|
/* @__PURE__ */ i("span", {
|
|
1243
|
-
className: [
|
|
1703
|
+
className: [Jt.circle, o ? "" : Jt.circleUnavailable].filter(Boolean).join(" "),
|
|
1244
1704
|
"aria-hidden": "true"
|
|
1245
1705
|
}),
|
|
1246
1706
|
r && o && /* @__PURE__ */ i(l, {
|
|
1247
1707
|
size: 14,
|
|
1248
|
-
strokeWidth:
|
|
1249
|
-
className:
|
|
1708
|
+
strokeWidth: M(14),
|
|
1709
|
+
className: Jt.check,
|
|
1250
1710
|
style: { color: u },
|
|
1251
1711
|
"aria-hidden": "true"
|
|
1252
1712
|
}),
|
|
1253
1713
|
!o && /* @__PURE__ */ i("span", {
|
|
1254
|
-
className:
|
|
1714
|
+
className: Jt.strike,
|
|
1255
1715
|
style: { background: u },
|
|
1256
1716
|
"aria-hidden": "true"
|
|
1257
1717
|
})
|
|
1258
1718
|
]
|
|
1259
1719
|
});
|
|
1260
|
-
},
|
|
1720
|
+
}, Xt = {
|
|
1261
1721
|
row: "_row_1r4ef_1",
|
|
1262
1722
|
original: "_original_1r4ef_8",
|
|
1263
1723
|
price: "_price_1r4ef_17",
|
|
1264
1724
|
priceSale: "_priceSale_1r4ef_24"
|
|
1265
|
-
},
|
|
1725
|
+
}, Zt = (e) => e.toLocaleString("en-US", {
|
|
1266
1726
|
style: "currency",
|
|
1267
1727
|
currency: "USD"
|
|
1268
|
-
}),
|
|
1728
|
+
}), Qt = ({ price: e, compareAtPrice: t, showBadge: n = !1, formatPrice: r = Zt, className: o }) => {
|
|
1269
1729
|
let s = t !== void 0, c = s ? Math.ceil((1 - e / t) * 100) : 0;
|
|
1270
1730
|
return /* @__PURE__ */ a("div", {
|
|
1271
|
-
className: [
|
|
1731
|
+
className: [Xt.row, o ?? ""].filter(Boolean).join(" "),
|
|
1272
1732
|
children: [
|
|
1273
1733
|
s && /* @__PURE__ */ i("span", {
|
|
1274
|
-
className:
|
|
1734
|
+
className: Xt.original,
|
|
1275
1735
|
children: r(t)
|
|
1276
1736
|
}),
|
|
1277
1737
|
/* @__PURE__ */ i("span", {
|
|
1278
|
-
className: [
|
|
1738
|
+
className: [Xt.price, s ? Xt.priceSale : ""].filter(Boolean).join(" "),
|
|
1279
1739
|
children: r(e)
|
|
1280
1740
|
}),
|
|
1281
|
-
s && n && /* @__PURE__ */ a(
|
|
1741
|
+
s && n && /* @__PURE__ */ a(jt, {
|
|
1282
1742
|
variant: "danger",
|
|
1283
1743
|
emphasis: "solid",
|
|
1284
1744
|
children: [
|
|
@@ -1289,17 +1749,17 @@ var We = {
|
|
|
1289
1749
|
})
|
|
1290
1750
|
]
|
|
1291
1751
|
});
|
|
1292
|
-
},
|
|
1752
|
+
}, $t = {
|
|
1293
1753
|
button: "_button_58k4v_1",
|
|
1294
1754
|
icon: "_icon_58k4v_24",
|
|
1295
1755
|
iconSaved: "_iconSaved_58k4v_27",
|
|
1296
1756
|
bounce: "_bounce_58k4v_40",
|
|
1297
1757
|
"wishlist-bounce": "_wishlist-bounce_58k4v_1"
|
|
1298
|
-
},
|
|
1758
|
+
}, en = ({ saved: t = !1, onToggle: n, label: r = "item", className: a }) => {
|
|
1299
1759
|
let [o, s] = e.useState(!1);
|
|
1300
1760
|
return /* @__PURE__ */ i("button", {
|
|
1301
1761
|
type: "button",
|
|
1302
|
-
className: [
|
|
1762
|
+
className: [$t.button, a ?? ""].filter(Boolean).join(" "),
|
|
1303
1763
|
"aria-pressed": t,
|
|
1304
1764
|
"aria-label": t ? `Remove ${r} from wishlist` : `Add ${r} to wishlist`,
|
|
1305
1765
|
onClick: () => {
|
|
@@ -1307,13 +1767,13 @@ var We = {
|
|
|
1307
1767
|
},
|
|
1308
1768
|
children: /* @__PURE__ */ i(S, {
|
|
1309
1769
|
size: 16,
|
|
1310
|
-
strokeWidth:
|
|
1311
|
-
className: [t ?
|
|
1770
|
+
strokeWidth: M(16),
|
|
1771
|
+
className: [t ? $t.iconSaved : $t.icon, o ? $t.bounce : ""].filter(Boolean).join(" "),
|
|
1312
1772
|
fill: t ? "currentColor" : "none",
|
|
1313
1773
|
onAnimationEnd: () => s(!1)
|
|
1314
1774
|
})
|
|
1315
1775
|
});
|
|
1316
|
-
},
|
|
1776
|
+
}, V = {
|
|
1317
1777
|
card: "_card_jlv97_1",
|
|
1318
1778
|
imageWrap: "_imageWrap_jlv97_16",
|
|
1319
1779
|
image: "_image_jlv97_16",
|
|
@@ -1333,97 +1793,97 @@ var We = {
|
|
|
1333
1793
|
description: "_description_jlv97_118",
|
|
1334
1794
|
swatches: "_swatches_jlv97_131",
|
|
1335
1795
|
addButton: "_addButton_jlv97_136"
|
|
1336
|
-
},
|
|
1796
|
+
}, tn = (e) => e.toLocaleString("en-US", {
|
|
1337
1797
|
style: "currency",
|
|
1338
1798
|
currency: "USD"
|
|
1339
|
-
}),
|
|
1799
|
+
}), nn = ({ 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: _ = tn, className: v }) => {
|
|
1340
1800
|
let y = s !== void 0, b = y ? Math.ceil((1 - o / s) * 100) : 0, x = c === void 0 ? 0 : Math.round(c);
|
|
1341
1801
|
return /* @__PURE__ */ a("div", {
|
|
1342
|
-
className: [
|
|
1802
|
+
className: [V.card, v ?? ""].filter(Boolean).join(" "),
|
|
1343
1803
|
children: [/* @__PURE__ */ a("div", {
|
|
1344
|
-
className:
|
|
1804
|
+
className: V.imageWrap,
|
|
1345
1805
|
children: [
|
|
1346
1806
|
/* @__PURE__ */ i("img", {
|
|
1347
1807
|
src: e,
|
|
1348
1808
|
alt: t ?? n,
|
|
1349
|
-
className: [
|
|
1809
|
+
className: [V.image, f ? "" : V.imageDimmed].filter(Boolean).join(" ")
|
|
1350
1810
|
}),
|
|
1351
|
-
y && f && /* @__PURE__ */ a(
|
|
1811
|
+
y && f && /* @__PURE__ */ a(jt, {
|
|
1352
1812
|
variant: "danger",
|
|
1353
1813
|
emphasis: "solid",
|
|
1354
|
-
className:
|
|
1814
|
+
className: V.saleBadge,
|
|
1355
1815
|
children: [
|
|
1356
1816
|
"-",
|
|
1357
1817
|
b,
|
|
1358
1818
|
"%"
|
|
1359
1819
|
]
|
|
1360
1820
|
}),
|
|
1361
|
-
f && /* @__PURE__ */ i(
|
|
1821
|
+
f && /* @__PURE__ */ i(en, {
|
|
1362
1822
|
saved: p,
|
|
1363
1823
|
label: n,
|
|
1364
|
-
className:
|
|
1824
|
+
className: V.wishlistBtn,
|
|
1365
1825
|
onToggle: m
|
|
1366
1826
|
}),
|
|
1367
1827
|
!f && /* @__PURE__ */ i("span", {
|
|
1368
|
-
className:
|
|
1828
|
+
className: V.outOfStockLabel,
|
|
1369
1829
|
children: "Out of stock"
|
|
1370
1830
|
})
|
|
1371
1831
|
]
|
|
1372
1832
|
}), /* @__PURE__ */ a("div", {
|
|
1373
|
-
className:
|
|
1833
|
+
className: V.body,
|
|
1374
1834
|
children: [
|
|
1375
1835
|
c !== void 0 && /* @__PURE__ */ i("div", {
|
|
1376
|
-
className:
|
|
1836
|
+
className: V.rating,
|
|
1377
1837
|
role: "img",
|
|
1378
1838
|
"aria-label": `Rated ${c} out of 5${l ? ` (${l} reviews)` : ""}`,
|
|
1379
|
-
children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ i(
|
|
1839
|
+
children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ i(ne, {
|
|
1380
1840
|
size: 16,
|
|
1381
|
-
strokeWidth:
|
|
1382
|
-
className: t < x ?
|
|
1841
|
+
strokeWidth: M(16),
|
|
1842
|
+
className: t < x ? V.starFilled : V.starEmpty,
|
|
1383
1843
|
fill: t < x ? "currentColor" : "none"
|
|
1384
1844
|
}, t))
|
|
1385
1845
|
}),
|
|
1386
1846
|
/* @__PURE__ */ a("div", {
|
|
1387
|
-
className:
|
|
1847
|
+
className: V.titleRow,
|
|
1388
1848
|
children: [/* @__PURE__ */ i("p", {
|
|
1389
|
-
className:
|
|
1849
|
+
className: V.name,
|
|
1390
1850
|
children: n
|
|
1391
1851
|
}), /* @__PURE__ */ a("div", {
|
|
1392
|
-
className:
|
|
1852
|
+
className: V.priceRow,
|
|
1393
1853
|
children: [y && /* @__PURE__ */ i("span", {
|
|
1394
|
-
className:
|
|
1854
|
+
className: V.priceOriginal,
|
|
1395
1855
|
children: _(s)
|
|
1396
1856
|
}), /* @__PURE__ */ i("span", {
|
|
1397
|
-
className:
|
|
1857
|
+
className: V.price,
|
|
1398
1858
|
children: _(o)
|
|
1399
1859
|
})]
|
|
1400
1860
|
})]
|
|
1401
1861
|
}),
|
|
1402
1862
|
r && /* @__PURE__ */ i("p", {
|
|
1403
|
-
className:
|
|
1863
|
+
className: V.description,
|
|
1404
1864
|
children: r
|
|
1405
1865
|
}),
|
|
1406
1866
|
u.length > 0 && /* @__PURE__ */ i("div", {
|
|
1407
|
-
className:
|
|
1867
|
+
className: V.swatches,
|
|
1408
1868
|
role: "group",
|
|
1409
1869
|
"aria-label": "Color",
|
|
1410
|
-
children: u.map((e) => /* @__PURE__ */ i(
|
|
1870
|
+
children: u.map((e) => /* @__PURE__ */ i(Yt, {
|
|
1411
1871
|
...e,
|
|
1412
1872
|
onSelect: () => d?.(e.id ?? e.label)
|
|
1413
1873
|
}, e.id ?? e.label))
|
|
1414
1874
|
}),
|
|
1415
|
-
/* @__PURE__ */ i(
|
|
1875
|
+
/* @__PURE__ */ i(P, {
|
|
1416
1876
|
variant: "primary",
|
|
1417
1877
|
size: "md",
|
|
1418
1878
|
disabled: !f,
|
|
1419
|
-
className:
|
|
1879
|
+
className: V.addButton,
|
|
1420
1880
|
onClick: h,
|
|
1421
1881
|
children: f ? g : "Out of stock"
|
|
1422
1882
|
})
|
|
1423
1883
|
]
|
|
1424
1884
|
})]
|
|
1425
1885
|
});
|
|
1426
|
-
},
|
|
1886
|
+
}, H = {
|
|
1427
1887
|
gallery: "_gallery_1mrk8_1",
|
|
1428
1888
|
galleryBottom: "_galleryBottom_1mrk8_5",
|
|
1429
1889
|
galleryLeft: "_galleryLeft_1mrk8_10",
|
|
@@ -1438,11 +1898,11 @@ var We = {
|
|
|
1438
1898
|
thumbLeft: "_thumbLeft_1mrk8_70",
|
|
1439
1899
|
thumbActive: "_thumbActive_1mrk8_75",
|
|
1440
1900
|
thumbImage: "_thumbImage_1mrk8_79"
|
|
1441
|
-
},
|
|
1901
|
+
}, rn = ({ images: t, thumbsPosition: n = "bottom", activeIndex: r, defaultActiveIndex: o = 0, onActiveIndexChange: s, className: c }) => {
|
|
1442
1902
|
let l = r !== void 0, [u, d] = e.useState(o), f = l ? r : u, p = (e) => {
|
|
1443
1903
|
l || d(e), s?.(e);
|
|
1444
1904
|
}, m = t[f] ?? t[0], h = n === "left", g = /* @__PURE__ */ i("div", {
|
|
1445
|
-
className: [
|
|
1905
|
+
className: [H.thumbs, h ? H.thumbsLeft : H.thumbsBottom].filter(Boolean).join(" "),
|
|
1446
1906
|
role: "tablist",
|
|
1447
1907
|
"aria-label": "Product images",
|
|
1448
1908
|
children: t.map((e, t) => /* @__PURE__ */ i("button", {
|
|
@@ -1451,56 +1911,56 @@ var We = {
|
|
|
1451
1911
|
"aria-selected": t === f,
|
|
1452
1912
|
"aria-label": e.alt ?? `Image ${t + 1}`,
|
|
1453
1913
|
className: [
|
|
1454
|
-
|
|
1455
|
-
h ?
|
|
1456
|
-
t === f ?
|
|
1914
|
+
H.thumb,
|
|
1915
|
+
h ? H.thumbLeft : H.thumbBottom,
|
|
1916
|
+
t === f ? H.thumbActive : ""
|
|
1457
1917
|
].filter(Boolean).join(" "),
|
|
1458
1918
|
onClick: () => p(t),
|
|
1459
1919
|
children: /* @__PURE__ */ i("img", {
|
|
1460
1920
|
src: e.src,
|
|
1461
1921
|
alt: "",
|
|
1462
|
-
className:
|
|
1922
|
+
className: H.thumbImage
|
|
1463
1923
|
})
|
|
1464
1924
|
}, e.src + t))
|
|
1465
1925
|
});
|
|
1466
1926
|
return /* @__PURE__ */ a("div", {
|
|
1467
1927
|
className: [
|
|
1468
|
-
|
|
1469
|
-
h ?
|
|
1928
|
+
H.gallery,
|
|
1929
|
+
h ? H.galleryLeft : H.galleryBottom,
|
|
1470
1930
|
c ?? ""
|
|
1471
1931
|
].filter(Boolean).join(" "),
|
|
1472
1932
|
children: [
|
|
1473
1933
|
!h && m && /* @__PURE__ */ i("div", {
|
|
1474
|
-
className:
|
|
1934
|
+
className: H.mainBottom,
|
|
1475
1935
|
children: /* @__PURE__ */ i("img", {
|
|
1476
1936
|
src: m.src,
|
|
1477
1937
|
alt: m.alt ?? "",
|
|
1478
|
-
className:
|
|
1938
|
+
className: H.mainImage
|
|
1479
1939
|
})
|
|
1480
1940
|
}),
|
|
1481
1941
|
g,
|
|
1482
1942
|
h && m && /* @__PURE__ */ i("div", {
|
|
1483
|
-
className:
|
|
1943
|
+
className: H.mainLeft,
|
|
1484
1944
|
children: /* @__PURE__ */ i("img", {
|
|
1485
1945
|
src: m.src,
|
|
1486
1946
|
alt: m.alt ?? "",
|
|
1487
|
-
className:
|
|
1947
|
+
className: H.mainImage
|
|
1488
1948
|
})
|
|
1489
1949
|
})
|
|
1490
1950
|
]
|
|
1491
1951
|
});
|
|
1492
|
-
},
|
|
1952
|
+
}, an = {
|
|
1493
1953
|
button: "_button_1vgn5_1",
|
|
1494
1954
|
unselected: "_unselected_1vgn5_23",
|
|
1495
1955
|
selected: "_selected_1vgn5_32",
|
|
1496
1956
|
unavailable: "_unavailable_1vgn5_37",
|
|
1497
1957
|
label: "_label_1vgn5_44",
|
|
1498
1958
|
strike: "_strike_1vgn5_55"
|
|
1499
|
-
},
|
|
1959
|
+
}, on = ({ size: e, selected: t = !1, available: n = !0, onSelect: r, className: o }) => /* @__PURE__ */ a("button", {
|
|
1500
1960
|
type: "button",
|
|
1501
1961
|
className: [
|
|
1502
|
-
|
|
1503
|
-
n ? t ?
|
|
1962
|
+
an.button,
|
|
1963
|
+
n ? t ? an.selected : an.unselected : an.unavailable,
|
|
1504
1964
|
o ?? ""
|
|
1505
1965
|
].filter(Boolean).join(" "),
|
|
1506
1966
|
disabled: !n,
|
|
@@ -1508,13 +1968,13 @@ var We = {
|
|
|
1508
1968
|
"aria-label": n ? `Size ${e}` : `Size ${e} (out of stock)`,
|
|
1509
1969
|
onClick: r,
|
|
1510
1970
|
children: [/* @__PURE__ */ i("span", {
|
|
1511
|
-
className:
|
|
1971
|
+
className: an.label,
|
|
1512
1972
|
children: e
|
|
1513
1973
|
}), !n && /* @__PURE__ */ i("span", {
|
|
1514
|
-
className:
|
|
1974
|
+
className: an.strike,
|
|
1515
1975
|
"aria-hidden": "true"
|
|
1516
1976
|
})]
|
|
1517
|
-
}),
|
|
1977
|
+
}), sn = {
|
|
1518
1978
|
row: "_row_1snsi_1",
|
|
1519
1979
|
rowVertical: "_rowVertical_1snsi_8",
|
|
1520
1980
|
stars: "_stars_1snsi_13",
|
|
@@ -1523,40 +1983,40 @@ var We = {
|
|
|
1523
1983
|
label: "_label_1snsi_29",
|
|
1524
1984
|
value: "_value_1snsi_38",
|
|
1525
1985
|
count: "_count_1snsi_43"
|
|
1526
|
-
},
|
|
1986
|
+
}, cn = (e) => e.toLocaleString("en-US"), ln = ({ rating: e, reviewCount: t, showLabel: n = !0, orientation: r = "horizontal", formatReviewCount: o = cn, className: s }) => {
|
|
1527
1987
|
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", {
|
|
1528
|
-
className:
|
|
1988
|
+
className: sn.stars,
|
|
1529
1989
|
role: "img",
|
|
1530
1990
|
"aria-label": `${c} out of 5 stars`,
|
|
1531
1991
|
children: [
|
|
1532
|
-
Array.from({ length: u }, (e, t) => /* @__PURE__ */ i(
|
|
1992
|
+
Array.from({ length: u }, (e, t) => /* @__PURE__ */ i(ne, {
|
|
1533
1993
|
size: 24,
|
|
1534
|
-
strokeWidth:
|
|
1535
|
-
className:
|
|
1994
|
+
strokeWidth: M(24),
|
|
1995
|
+
className: sn.starFull,
|
|
1536
1996
|
fill: "currentColor",
|
|
1537
1997
|
"aria-hidden": "true"
|
|
1538
1998
|
}, `full-${t}`)),
|
|
1539
|
-
d && /* @__PURE__ */ i(
|
|
1999
|
+
d && /* @__PURE__ */ i(re, {
|
|
1540
2000
|
size: 24,
|
|
1541
|
-
strokeWidth:
|
|
1542
|
-
className:
|
|
2001
|
+
strokeWidth: M(24),
|
|
2002
|
+
className: sn.starFull,
|
|
1543
2003
|
fill: "currentColor",
|
|
1544
2004
|
"aria-hidden": "true"
|
|
1545
2005
|
}),
|
|
1546
|
-
Array.from({ length: f }, (e, t) => /* @__PURE__ */ i(
|
|
2006
|
+
Array.from({ length: f }, (e, t) => /* @__PURE__ */ i(ne, {
|
|
1547
2007
|
size: 24,
|
|
1548
|
-
strokeWidth:
|
|
1549
|
-
className:
|
|
2008
|
+
strokeWidth: M(24),
|
|
2009
|
+
className: sn.starEmpty,
|
|
1550
2010
|
"aria-hidden": "true"
|
|
1551
2011
|
}, `empty-${t}`))
|
|
1552
2012
|
]
|
|
1553
2013
|
}), m = n && /* @__PURE__ */ a("div", {
|
|
1554
|
-
className:
|
|
2014
|
+
className: sn.label,
|
|
1555
2015
|
children: [/* @__PURE__ */ i("span", {
|
|
1556
|
-
className:
|
|
2016
|
+
className: sn.value,
|
|
1557
2017
|
children: c.toFixed(1)
|
|
1558
2018
|
}), t !== void 0 && /* @__PURE__ */ a("span", {
|
|
1559
|
-
className:
|
|
2019
|
+
className: sn.count,
|
|
1560
2020
|
children: [
|
|
1561
2021
|
"(",
|
|
1562
2022
|
o(t),
|
|
@@ -1564,8 +2024,8 @@ var We = {
|
|
|
1564
2024
|
]
|
|
1565
2025
|
})]
|
|
1566
2026
|
}), h = [
|
|
1567
|
-
|
|
1568
|
-
r === "vertical" ?
|
|
2027
|
+
sn.row,
|
|
2028
|
+
r === "vertical" ? sn.rowVertical : "",
|
|
1569
2029
|
s ?? ""
|
|
1570
2030
|
].filter(Boolean).join(" ");
|
|
1571
2031
|
return r === "horizontal-reverse" ? /* @__PURE__ */ a("div", {
|
|
@@ -1575,15 +2035,15 @@ var We = {
|
|
|
1575
2035
|
className: h,
|
|
1576
2036
|
children: [p, m]
|
|
1577
2037
|
});
|
|
1578
|
-
},
|
|
2038
|
+
}, un = ({ quantity: e, lowStockThreshold: t = 5, label: n, className: r }) => {
|
|
1579
2039
|
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";
|
|
1580
|
-
return /* @__PURE__ */ i(
|
|
2040
|
+
return /* @__PURE__ */ i(jt, {
|
|
1581
2041
|
variant: s,
|
|
1582
2042
|
emphasis: "subtle",
|
|
1583
2043
|
className: r,
|
|
1584
2044
|
children: n ?? c
|
|
1585
2045
|
});
|
|
1586
|
-
},
|
|
2046
|
+
}, U = {
|
|
1587
2047
|
card: "_card_1w9hp_1",
|
|
1588
2048
|
cardDefault: "_cardDefault_1w9hp_8",
|
|
1589
2049
|
imageDefault: "_imageDefault_1w9hp_19",
|
|
@@ -1598,55 +2058,55 @@ var We = {
|
|
|
1598
2058
|
excerpt: "_excerpt_1w9hp_114",
|
|
1599
2059
|
author: "_author_1w9hp_123",
|
|
1600
2060
|
authorText: "_authorText_1w9hp_130"
|
|
1601
|
-
},
|
|
2061
|
+
}, dn = ({ image: e, imageAlt: t, category: n, readTime: r, title: o, excerpt: s, author: c, layout: l = "default", className: u }) => {
|
|
1602
2062
|
let d = l === "horizontal";
|
|
1603
2063
|
return /* @__PURE__ */ a("div", {
|
|
1604
2064
|
className: [
|
|
1605
|
-
|
|
1606
|
-
d ?
|
|
2065
|
+
U.card,
|
|
2066
|
+
d ? U.cardHorizontal : U.cardDefault,
|
|
1607
2067
|
u ?? ""
|
|
1608
2068
|
].filter(Boolean).join(" "),
|
|
1609
2069
|
children: [d ? /* @__PURE__ */ i("span", {
|
|
1610
|
-
className:
|
|
2070
|
+
className: U.imageWrapHorizontal,
|
|
1611
2071
|
children: /* @__PURE__ */ i("img", {
|
|
1612
2072
|
src: e,
|
|
1613
2073
|
alt: t ?? "",
|
|
1614
|
-
className:
|
|
2074
|
+
className: U.image
|
|
1615
2075
|
})
|
|
1616
2076
|
}) : /* @__PURE__ */ i("img", {
|
|
1617
2077
|
src: e,
|
|
1618
2078
|
alt: t ?? "",
|
|
1619
|
-
className:
|
|
2079
|
+
className: U.imageDefault
|
|
1620
2080
|
}), /* @__PURE__ */ a("div", {
|
|
1621
|
-
className: d ?
|
|
2081
|
+
className: d ? U.bodyHorizontal : U.bodyDefault,
|
|
1622
2082
|
children: [
|
|
1623
2083
|
/* @__PURE__ */ a("div", {
|
|
1624
|
-
className:
|
|
1625
|
-
children: [/* @__PURE__ */ i(
|
|
2084
|
+
className: U.metaRow,
|
|
2085
|
+
children: [/* @__PURE__ */ i(jt, {
|
|
1626
2086
|
variant: "accent",
|
|
1627
2087
|
emphasis: "subtle",
|
|
1628
2088
|
children: n
|
|
1629
2089
|
}), /* @__PURE__ */ i("span", {
|
|
1630
|
-
className:
|
|
2090
|
+
className: U.readTime,
|
|
1631
2091
|
children: r
|
|
1632
2092
|
})]
|
|
1633
2093
|
}),
|
|
1634
2094
|
/* @__PURE__ */ i("p", {
|
|
1635
|
-
className:
|
|
2095
|
+
className: U.title,
|
|
1636
2096
|
children: o
|
|
1637
2097
|
}),
|
|
1638
2098
|
/* @__PURE__ */ i("p", {
|
|
1639
|
-
className:
|
|
2099
|
+
className: U.excerpt,
|
|
1640
2100
|
children: s
|
|
1641
2101
|
}),
|
|
1642
2102
|
/* @__PURE__ */ a("div", {
|
|
1643
|
-
className:
|
|
1644
|
-
children: [/* @__PURE__ */ i(
|
|
2103
|
+
className: U.author,
|
|
2104
|
+
children: [/* @__PURE__ */ i(Ne, {
|
|
1645
2105
|
size: "sm",
|
|
1646
2106
|
src: c.avatarSrc,
|
|
1647
2107
|
alt: c.avatarAlt ?? c.name
|
|
1648
2108
|
}), /* @__PURE__ */ a("p", {
|
|
1649
|
-
className:
|
|
2109
|
+
className: U.authorText,
|
|
1650
2110
|
children: [
|
|
1651
2111
|
c.name,
|
|
1652
2112
|
" · ",
|
|
@@ -1657,7 +2117,7 @@ var We = {
|
|
|
1657
2117
|
]
|
|
1658
2118
|
})]
|
|
1659
2119
|
});
|
|
1660
|
-
},
|
|
2120
|
+
}, W = {
|
|
1661
2121
|
card: "_card_8cf5b_1",
|
|
1662
2122
|
cardHorizontal: "_cardHorizontal_8cf5b_12",
|
|
1663
2123
|
cardVertical: "_cardVertical_8cf5b_20",
|
|
@@ -1669,52 +2129,52 @@ var We = {
|
|
|
1669
2129
|
footer: "_footer_8cf5b_86",
|
|
1670
2130
|
author: "_author_8cf5b_94",
|
|
1671
2131
|
authorText: "_authorText_8cf5b_101"
|
|
1672
|
-
},
|
|
2132
|
+
}, fn = ({ image: e, imageAlt: t, badgeLabel: n = "Featured", title: r, excerpt: o, author: s, ctaLabel: c = "Read article", onCtaClick: l, orientation: u = "horizontal", className: d }) => {
|
|
1673
2133
|
let f = u === "vertical";
|
|
1674
2134
|
return /* @__PURE__ */ a("div", {
|
|
1675
2135
|
className: [
|
|
1676
|
-
|
|
1677
|
-
f ?
|
|
2136
|
+
W.card,
|
|
2137
|
+
f ? W.cardVertical : W.cardHorizontal,
|
|
1678
2138
|
d ?? ""
|
|
1679
2139
|
].filter(Boolean).join(" "),
|
|
1680
2140
|
children: [/* @__PURE__ */ i("img", {
|
|
1681
2141
|
src: e,
|
|
1682
2142
|
alt: t ?? "",
|
|
1683
|
-
className:
|
|
2143
|
+
className: W.image
|
|
1684
2144
|
}), /* @__PURE__ */ a("div", {
|
|
1685
|
-
className: f ?
|
|
2145
|
+
className: f ? W.bodyVertical : W.bodyHorizontal,
|
|
1686
2146
|
children: [
|
|
1687
|
-
/* @__PURE__ */ i(
|
|
2147
|
+
/* @__PURE__ */ i(jt, {
|
|
1688
2148
|
variant: "accent",
|
|
1689
2149
|
emphasis: "subtle",
|
|
1690
2150
|
children: n
|
|
1691
2151
|
}),
|
|
1692
2152
|
/* @__PURE__ */ i("p", {
|
|
1693
|
-
className:
|
|
2153
|
+
className: W.title,
|
|
1694
2154
|
children: r
|
|
1695
2155
|
}),
|
|
1696
2156
|
/* @__PURE__ */ i("p", {
|
|
1697
|
-
className:
|
|
2157
|
+
className: W.excerpt,
|
|
1698
2158
|
children: o
|
|
1699
2159
|
}),
|
|
1700
2160
|
/* @__PURE__ */ a("div", {
|
|
1701
|
-
className:
|
|
2161
|
+
className: W.footer,
|
|
1702
2162
|
children: [/* @__PURE__ */ a("div", {
|
|
1703
|
-
className:
|
|
1704
|
-
children: [/* @__PURE__ */ i(
|
|
2163
|
+
className: W.author,
|
|
2164
|
+
children: [/* @__PURE__ */ i(Ne, {
|
|
1705
2165
|
size: "md",
|
|
1706
2166
|
src: s.avatarSrc,
|
|
1707
2167
|
alt: s.avatarAlt ?? s.name,
|
|
1708
2168
|
initials: s.initials
|
|
1709
2169
|
}), /* @__PURE__ */ a("p", {
|
|
1710
|
-
className:
|
|
2170
|
+
className: W.authorText,
|
|
1711
2171
|
children: [
|
|
1712
2172
|
s.name,
|
|
1713
2173
|
" · ",
|
|
1714
2174
|
s.date
|
|
1715
2175
|
]
|
|
1716
2176
|
})]
|
|
1717
|
-
}), /* @__PURE__ */ i(
|
|
2177
|
+
}), /* @__PURE__ */ i(P, {
|
|
1718
2178
|
variant: "secondary",
|
|
1719
2179
|
size: "sm",
|
|
1720
2180
|
onClick: l,
|
|
@@ -1724,7 +2184,7 @@ var We = {
|
|
|
1724
2184
|
]
|
|
1725
2185
|
})]
|
|
1726
2186
|
});
|
|
1727
|
-
},
|
|
2187
|
+
}, pn = {
|
|
1728
2188
|
chip: "_chip_scl8l_1",
|
|
1729
2189
|
"chip--sm": "_chip--sm_scl8l_11",
|
|
1730
2190
|
"chip--md": "_chip--md_scl8l_17",
|
|
@@ -1733,26 +2193,26 @@ var We = {
|
|
|
1733
2193
|
"chip--outline": "_chip--outline_scl8l_35",
|
|
1734
2194
|
"chip--solid": "_chip--solid_scl8l_39",
|
|
1735
2195
|
"chip--subtle": "_chip--subtle_scl8l_43"
|
|
1736
|
-
},
|
|
2196
|
+
}, mn = {
|
|
1737
2197
|
sm: 16,
|
|
1738
2198
|
md: 20,
|
|
1739
2199
|
lg: 24
|
|
1740
|
-
},
|
|
1741
|
-
let o =
|
|
2200
|
+
}, hn = ({ icon: t, size: n = "md", variant: r = "light", className: a }) => {
|
|
2201
|
+
let o = mn[n], s = e.isValidElement(t) ? e.cloneElement(t, {
|
|
1742
2202
|
size: o,
|
|
1743
|
-
strokeWidth:
|
|
2203
|
+
strokeWidth: M(o)
|
|
1744
2204
|
}) : t;
|
|
1745
2205
|
return /* @__PURE__ */ i("div", {
|
|
1746
2206
|
className: [
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
2207
|
+
pn.chip,
|
|
2208
|
+
pn[`chip--${n}`],
|
|
2209
|
+
pn[`chip--${r}`],
|
|
1750
2210
|
a ?? ""
|
|
1751
2211
|
].filter(Boolean).join(" "),
|
|
1752
2212
|
"aria-hidden": "true",
|
|
1753
2213
|
children: s
|
|
1754
2214
|
});
|
|
1755
|
-
},
|
|
2215
|
+
}, gn = {
|
|
1756
2216
|
group: "_group_mvlh4_3",
|
|
1757
2217
|
group__item: "_group__item_mvlh4_6",
|
|
1758
2218
|
"group--sm": "_group--sm_mvlh4_9",
|
|
@@ -1763,42 +2223,42 @@ var We = {
|
|
|
1763
2223
|
"overflow--md": "_overflow--md_mvlh4_26",
|
|
1764
2224
|
"overflow--lg": "_overflow--lg_mvlh4_27",
|
|
1765
2225
|
"overflow--xl": "_overflow--xl_mvlh4_28"
|
|
1766
|
-
},
|
|
2226
|
+
}, _n = ({ size: e = "md", max: t = 4, avatars: n, className: r }) => {
|
|
1767
2227
|
let o = n.slice(0, t), s = n.length - o.length;
|
|
1768
2228
|
return /* @__PURE__ */ a("div", {
|
|
1769
2229
|
className: [
|
|
1770
|
-
|
|
1771
|
-
|
|
2230
|
+
gn.group,
|
|
2231
|
+
gn[`group--${e}`],
|
|
1772
2232
|
r ?? ""
|
|
1773
2233
|
].filter(Boolean).join(" "),
|
|
1774
2234
|
children: [o.map((t, n) => /* @__PURE__ */ i("span", {
|
|
1775
|
-
className:
|
|
1776
|
-
children: /* @__PURE__ */ i(
|
|
2235
|
+
className: gn.group__item,
|
|
2236
|
+
children: /* @__PURE__ */ i(Ne, {
|
|
1777
2237
|
size: e,
|
|
1778
2238
|
src: t.src,
|
|
1779
2239
|
initials: t.initials,
|
|
1780
2240
|
alt: t.alt
|
|
1781
2241
|
})
|
|
1782
2242
|
}, n)), s > 0 && /* @__PURE__ */ i("span", {
|
|
1783
|
-
className:
|
|
2243
|
+
className: gn.group__item,
|
|
1784
2244
|
children: /* @__PURE__ */ a("span", {
|
|
1785
|
-
className: [
|
|
2245
|
+
className: [gn.overflow, gn[`overflow--${e}`]].join(" "),
|
|
1786
2246
|
children: ["+", s]
|
|
1787
2247
|
})
|
|
1788
2248
|
})]
|
|
1789
2249
|
});
|
|
1790
|
-
},
|
|
2250
|
+
}, vn = {
|
|
1791
2251
|
root: "_root_165je_1",
|
|
1792
2252
|
dot: "_dot_165je_13",
|
|
1793
2253
|
dotActive: "_dotActive_165je_21",
|
|
1794
2254
|
dotRemote: "_dotRemote_165je_25"
|
|
1795
|
-
},
|
|
1796
|
-
className: [
|
|
2255
|
+
}, yn = ({ location: e, status: t = "active", className: n }) => /* @__PURE__ */ a("span", {
|
|
2256
|
+
className: [vn.root, n ?? ""].filter(Boolean).join(" "),
|
|
1797
2257
|
children: [/* @__PURE__ */ i("span", {
|
|
1798
|
-
className: [
|
|
2258
|
+
className: [vn.dot, t === "active" ? vn.dotActive : vn.dotRemote].join(" "),
|
|
1799
2259
|
"aria-hidden": "true"
|
|
1800
2260
|
}), e]
|
|
1801
|
-
}),
|
|
2261
|
+
}), bn = {
|
|
1802
2262
|
root: "_root_15jaa_1",
|
|
1803
2263
|
rootCard: "_rootCard_15jaa_9",
|
|
1804
2264
|
rootRow: "_rootRow_15jaa_21",
|
|
@@ -1808,30 +2268,30 @@ var We = {
|
|
|
1808
2268
|
description: "_description_15jaa_56",
|
|
1809
2269
|
metaRow: "_metaRow_15jaa_65",
|
|
1810
2270
|
applyBtn: "_applyBtn_15jaa_72"
|
|
1811
|
-
},
|
|
2271
|
+
}, xn = ({ title: e, description: t, department: n, employmentType: o, location: s, locationStatus: c = "remote", onApply: l, applyLabel: u = "Apply now", layout: d = "card", className: f }) => {
|
|
1812
2272
|
let p = d === "row", m = /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ a("div", {
|
|
1813
|
-
className:
|
|
2273
|
+
className: bn.titleGroup,
|
|
1814
2274
|
children: [/* @__PURE__ */ i("p", {
|
|
1815
|
-
className:
|
|
2275
|
+
className: bn.title,
|
|
1816
2276
|
children: e
|
|
1817
2277
|
}), /* @__PURE__ */ i("p", {
|
|
1818
|
-
className:
|
|
2278
|
+
className: bn.description,
|
|
1819
2279
|
children: t
|
|
1820
2280
|
})]
|
|
1821
2281
|
}), /* @__PURE__ */ a("div", {
|
|
1822
|
-
className:
|
|
2282
|
+
className: bn.metaRow,
|
|
1823
2283
|
children: [
|
|
1824
|
-
/* @__PURE__ */ i(
|
|
2284
|
+
/* @__PURE__ */ i(jt, {
|
|
1825
2285
|
variant: "accent",
|
|
1826
2286
|
emphasis: "subtle",
|
|
1827
2287
|
children: n
|
|
1828
2288
|
}),
|
|
1829
|
-
/* @__PURE__ */ i(
|
|
2289
|
+
/* @__PURE__ */ i(jt, {
|
|
1830
2290
|
variant: "neutral",
|
|
1831
2291
|
emphasis: "subtle",
|
|
1832
2292
|
children: o
|
|
1833
2293
|
}),
|
|
1834
|
-
/* @__PURE__ */ i(
|
|
2294
|
+
/* @__PURE__ */ i(yn, {
|
|
1835
2295
|
location: s,
|
|
1836
2296
|
status: c
|
|
1837
2297
|
})
|
|
@@ -1839,61 +2299,61 @@ var We = {
|
|
|
1839
2299
|
})] });
|
|
1840
2300
|
return p ? /* @__PURE__ */ a("div", {
|
|
1841
2301
|
className: [
|
|
1842
|
-
|
|
1843
|
-
|
|
2302
|
+
bn.root,
|
|
2303
|
+
bn.rootRow,
|
|
1844
2304
|
f ?? ""
|
|
1845
2305
|
].filter(Boolean).join(" "),
|
|
1846
2306
|
children: [/* @__PURE__ */ i("div", {
|
|
1847
|
-
className:
|
|
2307
|
+
className: bn.rowLeft,
|
|
1848
2308
|
children: m
|
|
1849
|
-
}), /* @__PURE__ */ i(
|
|
2309
|
+
}), /* @__PURE__ */ i(P, {
|
|
1850
2310
|
variant: "secondary",
|
|
1851
2311
|
size: "sm",
|
|
1852
|
-
className:
|
|
2312
|
+
className: bn.applyBtn,
|
|
1853
2313
|
onClick: l,
|
|
1854
2314
|
children: u
|
|
1855
2315
|
})]
|
|
1856
2316
|
}) : /* @__PURE__ */ a("div", {
|
|
1857
2317
|
className: [
|
|
1858
|
-
|
|
1859
|
-
|
|
2318
|
+
bn.root,
|
|
2319
|
+
bn.rootCard,
|
|
1860
2320
|
f ?? ""
|
|
1861
2321
|
].filter(Boolean).join(" "),
|
|
1862
|
-
children: [m, /* @__PURE__ */ i(
|
|
2322
|
+
children: [m, /* @__PURE__ */ i(P, {
|
|
1863
2323
|
variant: "secondary",
|
|
1864
2324
|
size: "sm",
|
|
1865
2325
|
onClick: l,
|
|
1866
2326
|
children: u
|
|
1867
2327
|
})]
|
|
1868
2328
|
});
|
|
1869
|
-
},
|
|
2329
|
+
}, Sn = {
|
|
1870
2330
|
root: "_root_3bf2n_1",
|
|
1871
2331
|
rootCenter: "_rootCenter_3bf2n_9",
|
|
1872
2332
|
rootLeft: "_rootLeft_3bf2n_14",
|
|
1873
2333
|
title: "_title_3bf2n_19",
|
|
1874
2334
|
subtitle: "_subtitle_3bf2n_28"
|
|
1875
|
-
},
|
|
2335
|
+
}, Cn = ({ eyebrow: e, title: t, subtitle: n, align: r = "center", titleAs: o = "h2", className: s }) => /* @__PURE__ */ a("div", {
|
|
1876
2336
|
className: [
|
|
1877
|
-
|
|
1878
|
-
r === "left" ?
|
|
2337
|
+
Sn.root,
|
|
2338
|
+
r === "left" ? Sn.rootLeft : Sn.rootCenter,
|
|
1879
2339
|
s ?? ""
|
|
1880
2340
|
].filter(Boolean).join(" "),
|
|
1881
2341
|
children: [
|
|
1882
|
-
e && /* @__PURE__ */ i(
|
|
2342
|
+
e && /* @__PURE__ */ i(jt, {
|
|
1883
2343
|
variant: "accent",
|
|
1884
2344
|
emphasis: "subtle",
|
|
1885
2345
|
children: e
|
|
1886
2346
|
}),
|
|
1887
2347
|
/* @__PURE__ */ i(o, {
|
|
1888
|
-
className:
|
|
2348
|
+
className: Sn.title,
|
|
1889
2349
|
children: t
|
|
1890
2350
|
}),
|
|
1891
2351
|
n && /* @__PURE__ */ i("p", {
|
|
1892
|
-
className:
|
|
2352
|
+
className: Sn.subtitle,
|
|
1893
2353
|
children: n
|
|
1894
2354
|
})
|
|
1895
2355
|
]
|
|
1896
|
-
}),
|
|
2356
|
+
}), G = {
|
|
1897
2357
|
card: "_card_1ye9i_1",
|
|
1898
2358
|
imageWrap: "_imageWrap_1ye9i_16",
|
|
1899
2359
|
image: "_image_1ye9i_16",
|
|
@@ -1906,42 +2366,42 @@ var We = {
|
|
|
1906
2366
|
role: "_role_1ye9i_99",
|
|
1907
2367
|
social: "_social_1ye9i_108",
|
|
1908
2368
|
bio: "_bio_1ye9i_116"
|
|
1909
|
-
},
|
|
1910
|
-
className: [
|
|
2369
|
+
}, wn = ({ image: e, imageAlt: t, name: n, role: r, location: o, locationStatus: s = "active", bio: c, socialLinks: l = [], className: u }) => /* @__PURE__ */ a("div", {
|
|
2370
|
+
className: [G.card, u ?? ""].filter(Boolean).join(" "),
|
|
1911
2371
|
children: [/* @__PURE__ */ a("div", {
|
|
1912
|
-
className:
|
|
2372
|
+
className: G.imageWrap,
|
|
1913
2373
|
children: [/* @__PURE__ */ i("img", {
|
|
1914
2374
|
src: e,
|
|
1915
2375
|
alt: t ?? n,
|
|
1916
|
-
className:
|
|
2376
|
+
className: G.image
|
|
1917
2377
|
}), /* @__PURE__ */ i("div", {
|
|
1918
|
-
className:
|
|
1919
|
-
children: /* @__PURE__ */ i(
|
|
2378
|
+
className: G.locationBar,
|
|
2379
|
+
children: /* @__PURE__ */ i(yn, {
|
|
1920
2380
|
location: o,
|
|
1921
2381
|
status: s,
|
|
1922
|
-
className:
|
|
2382
|
+
className: G.locationDot
|
|
1923
2383
|
})
|
|
1924
2384
|
})]
|
|
1925
2385
|
}), /* @__PURE__ */ a("div", {
|
|
1926
|
-
className:
|
|
2386
|
+
className: G.info,
|
|
1927
2387
|
children: [/* @__PURE__ */ a("div", {
|
|
1928
|
-
className:
|
|
2388
|
+
className: G.metaRow,
|
|
1929
2389
|
children: [/* @__PURE__ */ a("div", {
|
|
1930
|
-
className:
|
|
2390
|
+
className: G.identity,
|
|
1931
2391
|
children: [/* @__PURE__ */ i("p", {
|
|
1932
|
-
className:
|
|
2392
|
+
className: G.name,
|
|
1933
2393
|
children: n
|
|
1934
2394
|
}), /* @__PURE__ */ i("p", {
|
|
1935
|
-
className:
|
|
2395
|
+
className: G.role,
|
|
1936
2396
|
children: r
|
|
1937
2397
|
})]
|
|
1938
2398
|
}), l.length > 0 && /* @__PURE__ */ i("div", {
|
|
1939
|
-
className:
|
|
2399
|
+
className: G.social,
|
|
1940
2400
|
children: l.map((e, t) => /* @__PURE__ */ i("a", {
|
|
1941
2401
|
href: e.href,
|
|
1942
2402
|
onClick: e.onClick,
|
|
1943
2403
|
"aria-label": e.label,
|
|
1944
|
-
children: /* @__PURE__ */ i(
|
|
2404
|
+
children: /* @__PURE__ */ i(hn, {
|
|
1945
2405
|
icon: e.icon,
|
|
1946
2406
|
size: "sm",
|
|
1947
2407
|
variant: "subtle"
|
|
@@ -1949,11 +2409,11 @@ var We = {
|
|
|
1949
2409
|
}, e.label ?? t))
|
|
1950
2410
|
})]
|
|
1951
2411
|
}), c && /* @__PURE__ */ i("p", {
|
|
1952
|
-
className:
|
|
2412
|
+
className: G.bio,
|
|
1953
2413
|
children: c
|
|
1954
2414
|
})]
|
|
1955
2415
|
})]
|
|
1956
|
-
}),
|
|
2416
|
+
}), Tn = {
|
|
1957
2417
|
alert: "_alert_1hjs5_3",
|
|
1958
2418
|
alert__icon: "_alert__icon_1hjs5_12",
|
|
1959
2419
|
alert__content: "_alert__content_1hjs5_13",
|
|
@@ -1964,7 +2424,7 @@ var We = {
|
|
|
1964
2424
|
"alert--warning": "_alert--warning_1hjs5_24",
|
|
1965
2425
|
"alert--danger": "_alert--danger_1hjs5_27",
|
|
1966
2426
|
"alert--neutral": "_alert--neutral_1hjs5_30"
|
|
1967
|
-
},
|
|
2427
|
+
}, En = {
|
|
1968
2428
|
info: /* @__PURE__ */ a(r, { children: [
|
|
1969
2429
|
/* @__PURE__ */ i("circle", {
|
|
1970
2430
|
cx: "12",
|
|
@@ -2038,38 +2498,38 @@ var We = {
|
|
|
2038
2498
|
y2: "8"
|
|
2039
2499
|
})
|
|
2040
2500
|
] })
|
|
2041
|
-
},
|
|
2501
|
+
}, Dn = ({ color: e = "info", title: t, description: n, icon: r, className: o }) => /* @__PURE__ */ a("div", {
|
|
2042
2502
|
role: "alert",
|
|
2043
2503
|
className: [
|
|
2044
|
-
|
|
2045
|
-
|
|
2504
|
+
Tn.alert,
|
|
2505
|
+
Tn[`alert--${e}`],
|
|
2046
2506
|
o ?? ""
|
|
2047
2507
|
].filter(Boolean).join(" "),
|
|
2048
2508
|
children: [/* @__PURE__ */ i("span", {
|
|
2049
|
-
className:
|
|
2509
|
+
className: Tn.alert__icon,
|
|
2050
2510
|
"aria-hidden": "true",
|
|
2051
2511
|
children: /* @__PURE__ */ i("svg", {
|
|
2052
2512
|
viewBox: "0 0 24 24",
|
|
2053
2513
|
fill: "none",
|
|
2054
2514
|
stroke: "currentColor",
|
|
2055
|
-
strokeWidth:
|
|
2515
|
+
strokeWidth: M(18),
|
|
2056
2516
|
strokeLinecap: "round",
|
|
2057
2517
|
strokeLinejoin: "round",
|
|
2058
2518
|
width: 18,
|
|
2059
2519
|
height: 18,
|
|
2060
|
-
children: r ??
|
|
2520
|
+
children: r ?? En[e]
|
|
2061
2521
|
})
|
|
2062
2522
|
}), /* @__PURE__ */ a("div", {
|
|
2063
|
-
className:
|
|
2523
|
+
className: Tn.alert__content,
|
|
2064
2524
|
children: [t && /* @__PURE__ */ i("div", {
|
|
2065
|
-
className:
|
|
2525
|
+
className: Tn.alert__title,
|
|
2066
2526
|
children: t
|
|
2067
2527
|
}), n && /* @__PURE__ */ i("div", {
|
|
2068
|
-
className:
|
|
2528
|
+
className: Tn.alert__description,
|
|
2069
2529
|
children: n
|
|
2070
2530
|
})]
|
|
2071
2531
|
})]
|
|
2072
|
-
}),
|
|
2532
|
+
}), K = {
|
|
2073
2533
|
card: "_card_6iftf_2",
|
|
2074
2534
|
"card--hover": "_card--hover_6iftf_15",
|
|
2075
2535
|
"card--selected": "_card--selected_6iftf_16",
|
|
@@ -2086,60 +2546,60 @@ var We = {
|
|
|
2086
2546
|
card__footer: "_card__footer_6iftf_47",
|
|
2087
2547
|
card__meta: "_card__meta_6iftf_48",
|
|
2088
2548
|
card__assignees: "_card__assignees_6iftf_49"
|
|
2089
|
-
},
|
|
2549
|
+
}, On = ({ 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 }) => {
|
|
2090
2550
|
let h = e !== "compact", g = d || f;
|
|
2091
2551
|
return /* @__PURE__ */ a("div", {
|
|
2092
2552
|
onClick: p,
|
|
2093
2553
|
"aria-selected": t === "selected" || void 0,
|
|
2094
2554
|
className: [
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2555
|
+
K.card,
|
|
2556
|
+
K[`card--${e}`],
|
|
2557
|
+
K[`card--${t}`],
|
|
2098
2558
|
m ?? ""
|
|
2099
2559
|
].filter(Boolean).join(" "),
|
|
2100
2560
|
children: [
|
|
2101
2561
|
e === "cover" && /* @__PURE__ */ i("div", {
|
|
2102
|
-
className:
|
|
2562
|
+
className: K.card__cover,
|
|
2103
2563
|
children: n
|
|
2104
2564
|
}),
|
|
2105
2565
|
/* @__PURE__ */ a("div", {
|
|
2106
|
-
className:
|
|
2566
|
+
className: K.card__header,
|
|
2107
2567
|
children: [
|
|
2108
2568
|
o && /* @__PURE__ */ i("span", {
|
|
2109
|
-
className:
|
|
2569
|
+
className: K.card__leading,
|
|
2110
2570
|
children: o
|
|
2111
2571
|
}),
|
|
2112
2572
|
/* @__PURE__ */ i("span", {
|
|
2113
|
-
className:
|
|
2573
|
+
className: K.card__title,
|
|
2114
2574
|
children: s
|
|
2115
2575
|
}),
|
|
2116
2576
|
c && /* @__PURE__ */ i("span", {
|
|
2117
|
-
className:
|
|
2577
|
+
className: K.card__trailing,
|
|
2118
2578
|
children: c
|
|
2119
2579
|
})
|
|
2120
2580
|
]
|
|
2121
2581
|
}),
|
|
2122
2582
|
h && l && /* @__PURE__ */ i("p", {
|
|
2123
|
-
className:
|
|
2583
|
+
className: K.card__desc,
|
|
2124
2584
|
children: l
|
|
2125
2585
|
}),
|
|
2126
2586
|
h && u && /* @__PURE__ */ i("div", {
|
|
2127
|
-
className:
|
|
2587
|
+
className: K.card__tags,
|
|
2128
2588
|
children: u
|
|
2129
2589
|
}),
|
|
2130
|
-
g && /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("div", { className:
|
|
2131
|
-
className:
|
|
2590
|
+
g && /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("div", { className: K.card__divider }), /* @__PURE__ */ a("div", {
|
|
2591
|
+
className: K.card__footer,
|
|
2132
2592
|
children: [d && /* @__PURE__ */ i("div", {
|
|
2133
|
-
className:
|
|
2593
|
+
className: K.card__meta,
|
|
2134
2594
|
children: d
|
|
2135
2595
|
}), f && /* @__PURE__ */ i("div", {
|
|
2136
|
-
className:
|
|
2596
|
+
className: K.card__assignees,
|
|
2137
2597
|
children: f
|
|
2138
2598
|
})]
|
|
2139
2599
|
})] })
|
|
2140
2600
|
]
|
|
2141
2601
|
});
|
|
2142
|
-
},
|
|
2602
|
+
}, kn = {
|
|
2143
2603
|
breadcrumb: "_breadcrumb_tszff_3",
|
|
2144
2604
|
list: "_list_tszff_5",
|
|
2145
2605
|
item: "_item_tszff_15",
|
|
@@ -2148,12 +2608,12 @@ var We = {
|
|
|
2148
2608
|
separator: "_separator_tszff_33",
|
|
2149
2609
|
"list--button": "_list--button_tszff_38",
|
|
2150
2610
|
chip: "_chip_tszff_41"
|
|
2151
|
-
},
|
|
2152
|
-
highlight: "
|
|
2153
|
-
visible: "
|
|
2154
|
-
glide: "
|
|
2155
|
-
},
|
|
2156
|
-
function
|
|
2611
|
+
}, An = {
|
|
2612
|
+
highlight: "_highlight_1bp09_15",
|
|
2613
|
+
visible: "_visible_1bp09_24",
|
|
2614
|
+
glide: "_glide_1bp09_28"
|
|
2615
|
+
}, jn = (e) => e.getAttribute("data-hover-item") === "off" || e.getAttribute("aria-disabled") === "true" || e.disabled === !0;
|
|
2616
|
+
function Mn(e, t) {
|
|
2157
2617
|
let n = 0, r = 0, i = e;
|
|
2158
2618
|
for (; i && i !== t;) {
|
|
2159
2619
|
n += i.offsetLeft, r += i.offsetTop;
|
|
@@ -2172,7 +2632,7 @@ function $t(e, t) {
|
|
|
2172
2632
|
tone: a.getPropertyValue("--hover-tone").trim()
|
|
2173
2633
|
};
|
|
2174
2634
|
}
|
|
2175
|
-
function
|
|
2635
|
+
function Nn() {
|
|
2176
2636
|
let t = e.useRef(null), [n, r] = e.useState(null), a = e.useCallback((e) => {
|
|
2177
2637
|
t.current = e, r(e);
|
|
2178
2638
|
}, []), o = e.useRef(null), s = e.useRef(!1), c = e.useRef(null), l = e.useRef(!1), u = e.useRef(null), [d, f] = e.useState(null), [p, m] = e.useState(!1), [h, g] = e.useState(!1), _ = e.useCallback(() => {
|
|
@@ -2181,7 +2641,7 @@ function en() {
|
|
|
2181
2641
|
let n = t.current;
|
|
2182
2642
|
if (!n) return;
|
|
2183
2643
|
n !== u.current && (u.current = n, s.current = !1), o.current = e;
|
|
2184
|
-
let r =
|
|
2644
|
+
let r = Mn(e, n);
|
|
2185
2645
|
if (s.current) {
|
|
2186
2646
|
f(r);
|
|
2187
2647
|
return;
|
|
@@ -2200,7 +2660,7 @@ function en() {
|
|
|
2200
2660
|
if (!n) return;
|
|
2201
2661
|
let r = e.target.closest("[data-hover-item]");
|
|
2202
2662
|
if (!(!r || r.closest("[data-hover-group]") !== n)) {
|
|
2203
|
-
if (
|
|
2663
|
+
if (jn(r)) {
|
|
2204
2664
|
_();
|
|
2205
2665
|
return;
|
|
2206
2666
|
}
|
|
@@ -2217,7 +2677,7 @@ function en() {
|
|
|
2217
2677
|
_();
|
|
2218
2678
|
return;
|
|
2219
2679
|
}
|
|
2220
|
-
f(
|
|
2680
|
+
f(Mn(t, e));
|
|
2221
2681
|
}
|
|
2222
2682
|
}, r = new ResizeObserver(t);
|
|
2223
2683
|
return r.observe(e), e.addEventListener("scroll", t, !0), () => {
|
|
@@ -2228,9 +2688,9 @@ function en() {
|
|
|
2228
2688
|
ref: c,
|
|
2229
2689
|
"aria-hidden": "true",
|
|
2230
2690
|
className: [
|
|
2231
|
-
|
|
2232
|
-
p ?
|
|
2233
|
-
h ?
|
|
2691
|
+
An.highlight,
|
|
2692
|
+
p ? An.visible : "",
|
|
2693
|
+
h ? An.glide : ""
|
|
2234
2694
|
].filter(Boolean).join(" "),
|
|
2235
2695
|
style: d ? {
|
|
2236
2696
|
transform: `translate(${d.x}px, ${d.y}px)`,
|
|
@@ -2240,7 +2700,7 @@ function en() {
|
|
|
2240
2700
|
background: d.tone || void 0
|
|
2241
2701
|
} : void 0
|
|
2242
2702
|
}), x = e.useCallback((e) => {
|
|
2243
|
-
e && !
|
|
2703
|
+
e && !jn(e) ? v(e) : _();
|
|
2244
2704
|
}, [_, v]);
|
|
2245
2705
|
return {
|
|
2246
2706
|
ref: a,
|
|
@@ -2253,8 +2713,8 @@ function en() {
|
|
|
2253
2713
|
showItem: x
|
|
2254
2714
|
};
|
|
2255
2715
|
}
|
|
2256
|
-
var
|
|
2257
|
-
let { ref: r, groupProps: i, highlight: o } =
|
|
2716
|
+
var Pn = ({ children: e, style: t, ...n }) => {
|
|
2717
|
+
let { ref: r, groupProps: i, highlight: o } = Nn();
|
|
2258
2718
|
return /* @__PURE__ */ a("div", {
|
|
2259
2719
|
ref: r,
|
|
2260
2720
|
...n,
|
|
@@ -2265,37 +2725,37 @@ var tn = ({ children: e, style: t, ...n }) => {
|
|
|
2265
2725
|
},
|
|
2266
2726
|
children: [o, e]
|
|
2267
2727
|
});
|
|
2268
|
-
},
|
|
2269
|
-
className:
|
|
2728
|
+
}, Fn = ({ size: e }) => /* @__PURE__ */ i("span", {
|
|
2729
|
+
className: kn.separator,
|
|
2270
2730
|
"aria-hidden": "true",
|
|
2271
2731
|
children: /* @__PURE__ */ i("svg", {
|
|
2272
2732
|
viewBox: "0 0 24 24",
|
|
2273
2733
|
fill: "none",
|
|
2274
2734
|
stroke: "currentColor",
|
|
2275
|
-
strokeWidth:
|
|
2735
|
+
strokeWidth: M(e),
|
|
2276
2736
|
strokeLinecap: "round",
|
|
2277
2737
|
strokeLinejoin: "round",
|
|
2278
2738
|
width: e,
|
|
2279
2739
|
height: e,
|
|
2280
2740
|
children: /* @__PURE__ */ i("path", { d: "m9 18 6-6-6-6" })
|
|
2281
2741
|
})
|
|
2282
|
-
}),
|
|
2283
|
-
let r = t === "button", o =
|
|
2742
|
+
}), In = ({ items: e, variant: t = "text", className: n }) => {
|
|
2743
|
+
let r = t === "button", o = Nn();
|
|
2284
2744
|
return /* @__PURE__ */ i("nav", {
|
|
2285
2745
|
"aria-label": "Breadcrumb",
|
|
2286
|
-
className: [
|
|
2746
|
+
className: [kn.breadcrumb, n ?? ""].filter(Boolean).join(" "),
|
|
2287
2747
|
children: /* @__PURE__ */ a("ol", {
|
|
2288
2748
|
ref: o.ref,
|
|
2289
2749
|
...r ? o.groupProps : {},
|
|
2290
|
-
className: [
|
|
2750
|
+
className: [kn.list, r ? kn["list--button"] : ""].filter(Boolean).join(" "),
|
|
2291
2751
|
children: [r && /* @__PURE__ */ i("li", {
|
|
2292
2752
|
"aria-hidden": "true",
|
|
2293
2753
|
style: { display: "contents" },
|
|
2294
2754
|
children: o.highlight
|
|
2295
2755
|
}), e.map((t, n) => {
|
|
2296
|
-
let o = n === e.length - 1, s = r ?
|
|
2756
|
+
let o = n === e.length - 1, s = r ? kn.chip : o ? kn.current : kn.crumb;
|
|
2297
2757
|
return /* @__PURE__ */ a("li", {
|
|
2298
|
-
className:
|
|
2758
|
+
className: kn.item,
|
|
2299
2759
|
children: [o || !t.href ? /* @__PURE__ */ i("span", {
|
|
2300
2760
|
className: s,
|
|
2301
2761
|
"data-hover-item": r ? "off" : void 0,
|
|
@@ -2306,26 +2766,26 @@ var tn = ({ children: e, style: t, ...n }) => {
|
|
|
2306
2766
|
"data-hover-item": "",
|
|
2307
2767
|
className: s,
|
|
2308
2768
|
children: t.label
|
|
2309
|
-
}), !o && /* @__PURE__ */ i(
|
|
2769
|
+
}), !o && /* @__PURE__ */ i(Fn, { size: r ? 14 : 16 })]
|
|
2310
2770
|
}, n);
|
|
2311
2771
|
})]
|
|
2312
2772
|
})
|
|
2313
2773
|
});
|
|
2314
|
-
},
|
|
2774
|
+
}, Ln = {
|
|
2315
2775
|
meta: "_meta_g1mpv_2",
|
|
2316
2776
|
meta__icon: "_meta__icon_g1mpv_3",
|
|
2317
2777
|
meta__label: "_meta__label_g1mpv_4"
|
|
2318
|
-
},
|
|
2319
|
-
className: [
|
|
2778
|
+
}, Rn = ({ icon: e, children: t, className: n }) => /* @__PURE__ */ a("span", {
|
|
2779
|
+
className: [Ln.meta, n ?? ""].filter(Boolean).join(" "),
|
|
2320
2780
|
children: [/* @__PURE__ */ i("span", {
|
|
2321
|
-
className:
|
|
2781
|
+
className: Ln.meta__icon,
|
|
2322
2782
|
"aria-hidden": "true",
|
|
2323
2783
|
children: e
|
|
2324
2784
|
}), /* @__PURE__ */ i("span", {
|
|
2325
|
-
className:
|
|
2785
|
+
className: Ln.meta__label,
|
|
2326
2786
|
children: t
|
|
2327
2787
|
})]
|
|
2328
|
-
}),
|
|
2788
|
+
}), zn = {
|
|
2329
2789
|
composer: "_composer_1dwtx_2",
|
|
2330
2790
|
"composer--typing": "_composer--typing_1dwtx_15",
|
|
2331
2791
|
input: "_input_1dwtx_22",
|
|
@@ -2339,13 +2799,13 @@ var tn = ({ children: e, style: t, ...n }) => {
|
|
|
2339
2799
|
row: "_row_1dwtx_36",
|
|
2340
2800
|
icon: "_icon_1dwtx_37",
|
|
2341
2801
|
send: "_send_1dwtx_52"
|
|
2342
|
-
},
|
|
2802
|
+
}, Bn = ({ state: t = "default", value: n, placeholder: r = "Message...", onChange: o, onSend: s, onAttachmentsChange: c, uploadName: l, uploadProgress: u = 0, onCancelUpload: d, className: f }) => {
|
|
2343
2803
|
let p = t === "disabled", [m, h] = e.useState(""), [g, _] = e.useState(!1), [v, y] = e.useState({
|
|
2344
2804
|
top: 0,
|
|
2345
2805
|
right: 0
|
|
2346
|
-
}), [x, S] = e.useState([]), C = e.useRef(null), w = e.useRef(null), T = e.useRef(null), E = e.useRef(null),
|
|
2806
|
+
}), [x, S] = e.useState([]), C = e.useRef(null), w = e.useRef(null), T = e.useRef(null), E = e.useRef(null), D = n === void 0 ? m : n, k = !p && (D.trim().length > 0 || t === "typing" || x.length > 0), A = () => {
|
|
2347
2807
|
w.current?.click();
|
|
2348
|
-
},
|
|
2808
|
+
}, te = (e) => {
|
|
2349
2809
|
let t = e.target.files;
|
|
2350
2810
|
t && (Array.from(t).forEach((e) => {
|
|
2351
2811
|
if (e.type.startsWith("image/") || e.type.startsWith("video/")) {
|
|
@@ -2360,9 +2820,9 @@ var tn = ({ children: e, style: t, ...n }) => {
|
|
|
2360
2820
|
}, t.readAsDataURL(e);
|
|
2361
2821
|
}
|
|
2362
2822
|
}), e.target.value = "");
|
|
2363
|
-
},
|
|
2823
|
+
}, ne = (e) => {
|
|
2364
2824
|
S((t) => t.filter((t, n) => n !== e));
|
|
2365
|
-
},
|
|
2825
|
+
}, re = () => {
|
|
2366
2826
|
if (!g && C.current) {
|
|
2367
2827
|
let e = C.current.getBoundingClientRect();
|
|
2368
2828
|
y({
|
|
@@ -2371,9 +2831,9 @@ var tn = ({ children: e, style: t, ...n }) => {
|
|
|
2371
2831
|
});
|
|
2372
2832
|
}
|
|
2373
2833
|
_(!g);
|
|
2374
|
-
},
|
|
2834
|
+
}, ie = (e) => {
|
|
2375
2835
|
if (C.current) {
|
|
2376
|
-
let t = C.current.selectionStart ||
|
|
2836
|
+
let t = C.current.selectionStart || D.length, n = D.slice(0, t) + e + D.slice(t);
|
|
2377
2837
|
h(n), o?.(n), C.current.focus(), C.current.setSelectionRange(t + e.length, t + e.length);
|
|
2378
2838
|
}
|
|
2379
2839
|
_(!1);
|
|
@@ -2389,35 +2849,35 @@ var tn = ({ children: e, style: t, ...n }) => {
|
|
|
2389
2849
|
c?.(x);
|
|
2390
2850
|
}, [x, c]), /* @__PURE__ */ a("div", {
|
|
2391
2851
|
className: [
|
|
2392
|
-
|
|
2393
|
-
|
|
2852
|
+
zn.composer,
|
|
2853
|
+
zn[`composer--${t}`],
|
|
2394
2854
|
f ?? ""
|
|
2395
2855
|
].filter(Boolean).join(" "),
|
|
2396
2856
|
children: [
|
|
2397
2857
|
t === "uploading" && /* @__PURE__ */ a("div", {
|
|
2398
|
-
className:
|
|
2858
|
+
className: zn.upload,
|
|
2399
2859
|
children: [
|
|
2400
2860
|
/* @__PURE__ */ i(b, {
|
|
2401
2861
|
size: 16,
|
|
2402
|
-
strokeWidth:
|
|
2403
|
-
className:
|
|
2862
|
+
strokeWidth: M(16),
|
|
2863
|
+
className: zn.upload__icon,
|
|
2404
2864
|
"aria-hidden": "true"
|
|
2405
2865
|
}),
|
|
2406
2866
|
/* @__PURE__ */ a("div", {
|
|
2407
|
-
className:
|
|
2867
|
+
className: zn.upload__body,
|
|
2408
2868
|
children: [/* @__PURE__ */ i("span", {
|
|
2409
|
-
className:
|
|
2869
|
+
className: zn.upload__name,
|
|
2410
2870
|
children: l
|
|
2411
2871
|
}), /* @__PURE__ */ i("div", {
|
|
2412
|
-
className:
|
|
2872
|
+
className: zn.upload__track,
|
|
2413
2873
|
children: /* @__PURE__ */ i("div", {
|
|
2414
|
-
className:
|
|
2874
|
+
className: zn.upload__fill,
|
|
2415
2875
|
style: { width: `${u}%` }
|
|
2416
2876
|
})
|
|
2417
2877
|
})]
|
|
2418
2878
|
}),
|
|
2419
|
-
/* @__PURE__ */ i(
|
|
2420
|
-
icon:
|
|
2879
|
+
/* @__PURE__ */ i(He, {
|
|
2880
|
+
icon: se,
|
|
2421
2881
|
variant: "ghost",
|
|
2422
2882
|
size: "md",
|
|
2423
2883
|
onClick: d,
|
|
@@ -2473,7 +2933,7 @@ var tn = ({ children: e, style: t, ...n }) => {
|
|
|
2473
2933
|
})]
|
|
2474
2934
|
}), /* @__PURE__ */ i("button", {
|
|
2475
2935
|
type: "button",
|
|
2476
|
-
onClick: () =>
|
|
2936
|
+
onClick: () => ne(t),
|
|
2477
2937
|
style: {
|
|
2478
2938
|
position: "absolute",
|
|
2479
2939
|
top: "-8px",
|
|
@@ -2501,44 +2961,44 @@ var tn = ({ children: e, style: t, ...n }) => {
|
|
|
2501
2961
|
type: "file",
|
|
2502
2962
|
multiple: !0,
|
|
2503
2963
|
accept: "image/*,video/*",
|
|
2504
|
-
onChange:
|
|
2964
|
+
onChange: te,
|
|
2505
2965
|
style: { display: "none" }
|
|
2506
2966
|
}),
|
|
2507
2967
|
/* @__PURE__ */ a("div", {
|
|
2508
|
-
className:
|
|
2968
|
+
className: zn.row,
|
|
2509
2969
|
children: [
|
|
2510
|
-
/* @__PURE__ */ i(
|
|
2511
|
-
icon:
|
|
2970
|
+
/* @__PURE__ */ i(He, {
|
|
2971
|
+
icon: O,
|
|
2512
2972
|
variant: "ghost",
|
|
2513
2973
|
size: "sm",
|
|
2514
|
-
onClick:
|
|
2974
|
+
onClick: A,
|
|
2515
2975
|
disabled: p,
|
|
2516
2976
|
"aria-label": "Attach file"
|
|
2517
2977
|
}),
|
|
2518
2978
|
/* @__PURE__ */ i("input", {
|
|
2519
2979
|
ref: C,
|
|
2520
2980
|
type: "text",
|
|
2521
|
-
className:
|
|
2522
|
-
value:
|
|
2981
|
+
className: zn.input,
|
|
2982
|
+
value: D,
|
|
2523
2983
|
placeholder: p ? "You can't reply to this conversation" : r,
|
|
2524
2984
|
disabled: p,
|
|
2525
2985
|
onChange: (e) => {
|
|
2526
2986
|
n === void 0 && h(e.target.value), o?.(e.target.value);
|
|
2527
2987
|
},
|
|
2528
2988
|
onKeyDown: (e) => {
|
|
2529
|
-
e.key === "Enter" &&
|
|
2989
|
+
e.key === "Enter" && k && (e.preventDefault(), s?.());
|
|
2530
2990
|
}
|
|
2531
2991
|
}),
|
|
2532
|
-
/* @__PURE__ */ i(
|
|
2992
|
+
/* @__PURE__ */ i(He, {
|
|
2533
2993
|
ref: T,
|
|
2534
|
-
icon:
|
|
2994
|
+
icon: ee,
|
|
2535
2995
|
variant: "ghost",
|
|
2536
2996
|
size: "sm",
|
|
2537
|
-
onClick:
|
|
2997
|
+
onClick: re,
|
|
2538
2998
|
disabled: p,
|
|
2539
2999
|
"aria-label": "Add emoji"
|
|
2540
3000
|
}),
|
|
2541
|
-
g && !p &&
|
|
3001
|
+
g && !p && Te.createPortal(/* @__PURE__ */ i("div", {
|
|
2542
3002
|
ref: E,
|
|
2543
3003
|
style: {
|
|
2544
3004
|
position: "fixed",
|
|
@@ -2573,7 +3033,7 @@ var tn = ({ children: e, style: t, ...n }) => {
|
|
|
2573
3033
|
"🤗",
|
|
2574
3034
|
"😎"
|
|
2575
3035
|
].map((e) => /* @__PURE__ */ i("button", {
|
|
2576
|
-
onClick: () =>
|
|
3036
|
+
onClick: () => ie(e),
|
|
2577
3037
|
style: {
|
|
2578
3038
|
background: "none",
|
|
2579
3039
|
border: "none",
|
|
@@ -2592,19 +3052,19 @@ var tn = ({ children: e, style: t, ...n }) => {
|
|
|
2592
3052
|
children: e
|
|
2593
3053
|
}, e))
|
|
2594
3054
|
}), document.body),
|
|
2595
|
-
/* @__PURE__ */ i(
|
|
2596
|
-
icon:
|
|
3055
|
+
/* @__PURE__ */ i(He, {
|
|
3056
|
+
icon: j,
|
|
2597
3057
|
variant: "primary",
|
|
2598
3058
|
size: "sm",
|
|
2599
3059
|
onClick: s,
|
|
2600
|
-
disabled: !
|
|
3060
|
+
disabled: !k,
|
|
2601
3061
|
"aria-label": "Send message"
|
|
2602
3062
|
})
|
|
2603
3063
|
]
|
|
2604
3064
|
})
|
|
2605
3065
|
]
|
|
2606
3066
|
});
|
|
2607
|
-
},
|
|
3067
|
+
}, Vn = {
|
|
2608
3068
|
wrapper: "_wrapper_1nmcn_3",
|
|
2609
3069
|
"wrapper--disabled": "_wrapper--disabled_1nmcn_11",
|
|
2610
3070
|
input: "_input_1nmcn_14",
|
|
@@ -2616,16 +3076,16 @@ var tn = ({ children: e, style: t, ...n }) => {
|
|
|
2616
3076
|
text__description: "_text__description_1nmcn_73",
|
|
2617
3077
|
checkbox: "_checkbox_1nmcn_77",
|
|
2618
3078
|
"wrapper--withDescription": "_wrapper--withDescription_1nmcn_81"
|
|
2619
|
-
},
|
|
3079
|
+
}, Hn = e.forwardRef(({ label: t, description: n, indeterminate: r, disabled: o, id: s, className: c, ...l }, u) => {
|
|
2620
3080
|
let d = e.useId(), f = s ?? d, p = e.useRef(null);
|
|
2621
3081
|
return e.useImperativeHandle(u, () => p.current), e.useEffect(() => {
|
|
2622
3082
|
p.current && (p.current.indeterminate = !!r);
|
|
2623
3083
|
}, [r]), /* @__PURE__ */ a("label", {
|
|
2624
3084
|
htmlFor: f,
|
|
2625
3085
|
className: [
|
|
2626
|
-
|
|
2627
|
-
n ?
|
|
2628
|
-
o ?
|
|
3086
|
+
Vn.wrapper,
|
|
3087
|
+
n ? Vn["wrapper--withDescription"] : "",
|
|
3088
|
+
o ? Vn["wrapper--disabled"] : "",
|
|
2629
3089
|
c ?? ""
|
|
2630
3090
|
].filter(Boolean).join(" "),
|
|
2631
3091
|
children: [
|
|
@@ -2634,14 +3094,14 @@ var tn = ({ children: e, style: t, ...n }) => {
|
|
|
2634
3094
|
id: f,
|
|
2635
3095
|
type: "checkbox",
|
|
2636
3096
|
disabled: o,
|
|
2637
|
-
className:
|
|
3097
|
+
className: Vn.input,
|
|
2638
3098
|
...l
|
|
2639
3099
|
}),
|
|
2640
3100
|
/* @__PURE__ */ a("span", {
|
|
2641
|
-
className:
|
|
3101
|
+
className: Vn.box,
|
|
2642
3102
|
"aria-hidden": "true",
|
|
2643
3103
|
children: [/* @__PURE__ */ i("svg", {
|
|
2644
|
-
className:
|
|
3104
|
+
className: Vn.check,
|
|
2645
3105
|
width: 12,
|
|
2646
3106
|
height: 12,
|
|
2647
3107
|
viewBox: "0 0 24 24",
|
|
@@ -2651,23 +3111,23 @@ var tn = ({ children: e, style: t, ...n }) => {
|
|
|
2651
3111
|
strokeLinecap: "round",
|
|
2652
3112
|
strokeLinejoin: "round",
|
|
2653
3113
|
children: /* @__PURE__ */ i("polyline", { points: "20 6 9 17 4 12" })
|
|
2654
|
-
}), /* @__PURE__ */ i("span", { className:
|
|
3114
|
+
}), /* @__PURE__ */ i("span", { className: Vn.dash })]
|
|
2655
3115
|
}),
|
|
2656
3116
|
(t || n) && /* @__PURE__ */ a("span", {
|
|
2657
|
-
className:
|
|
3117
|
+
className: Vn.text,
|
|
2658
3118
|
children: [t && /* @__PURE__ */ i("span", {
|
|
2659
|
-
className:
|
|
3119
|
+
className: Vn.text__label,
|
|
2660
3120
|
children: t
|
|
2661
3121
|
}), n && /* @__PURE__ */ i("span", {
|
|
2662
|
-
className:
|
|
3122
|
+
className: Vn.text__description,
|
|
2663
3123
|
children: n
|
|
2664
3124
|
})]
|
|
2665
3125
|
})
|
|
2666
3126
|
]
|
|
2667
3127
|
});
|
|
2668
3128
|
});
|
|
2669
|
-
|
|
2670
|
-
var
|
|
3129
|
+
Hn.displayName = "Checkbox";
|
|
3130
|
+
var q = {
|
|
2671
3131
|
item: "_item_1bf0e_2",
|
|
2672
3132
|
"item--hover": "_item--hover_1bf0e_12",
|
|
2673
3133
|
"item--active": "_item--active_1bf0e_13",
|
|
@@ -2682,7 +3142,7 @@ var K = {
|
|
|
2682
3142
|
item__preview: "_item__preview_1bf0e_31",
|
|
2683
3143
|
item__typing: "_item__typing_1bf0e_36",
|
|
2684
3144
|
item__badge: "_item__badge_1bf0e_37"
|
|
2685
|
-
},
|
|
3145
|
+
}, Un = ({ state: e = "default", avatar: t, name: n, timestamp: r, preview: o, unreadCount: c, onClick: l, className: u }) => /* @__PURE__ */ a("div", {
|
|
2686
3146
|
role: "button",
|
|
2687
3147
|
"data-hover-item": "",
|
|
2688
3148
|
tabIndex: 0,
|
|
@@ -2692,70 +3152,155 @@ var K = {
|
|
|
2692
3152
|
},
|
|
2693
3153
|
"aria-current": e === "active" || void 0,
|
|
2694
3154
|
className: [
|
|
2695
|
-
|
|
2696
|
-
|
|
3155
|
+
q.item,
|
|
3156
|
+
q[`item--${e}`],
|
|
2697
3157
|
u ?? ""
|
|
2698
3158
|
].filter(Boolean).join(" "),
|
|
2699
3159
|
children: [/* @__PURE__ */ a("span", {
|
|
2700
|
-
className:
|
|
3160
|
+
className: q.item__avatar,
|
|
2701
3161
|
children: [t, e !== "muted" && /* @__PURE__ */ i("span", {
|
|
2702
|
-
className:
|
|
3162
|
+
className: q.item__presence,
|
|
2703
3163
|
"aria-hidden": "true"
|
|
2704
3164
|
})]
|
|
2705
3165
|
}), /* @__PURE__ */ a("span", {
|
|
2706
|
-
className:
|
|
3166
|
+
className: q.item__body,
|
|
2707
3167
|
children: [/* @__PURE__ */ a("span", {
|
|
2708
|
-
className:
|
|
3168
|
+
className: q.item__row,
|
|
2709
3169
|
children: [
|
|
2710
3170
|
/* @__PURE__ */ i("span", {
|
|
2711
|
-
className:
|
|
3171
|
+
className: q.item__name,
|
|
2712
3172
|
children: n
|
|
2713
3173
|
}),
|
|
2714
3174
|
e === "muted" && /* @__PURE__ */ i(s, {
|
|
2715
3175
|
size: 12,
|
|
2716
|
-
strokeWidth:
|
|
2717
|
-
className:
|
|
3176
|
+
strokeWidth: M(12),
|
|
3177
|
+
className: q.item__mute,
|
|
2718
3178
|
"aria-hidden": "true"
|
|
2719
3179
|
}),
|
|
2720
3180
|
r && /* @__PURE__ */ i("span", {
|
|
2721
|
-
className:
|
|
3181
|
+
className: q.item__time,
|
|
2722
3182
|
children: r
|
|
2723
3183
|
})
|
|
2724
3184
|
]
|
|
2725
3185
|
}), /* @__PURE__ */ a("span", {
|
|
2726
|
-
className:
|
|
3186
|
+
className: q.item__row,
|
|
2727
3187
|
children: [e === "typing" ? /* @__PURE__ */ i("span", {
|
|
2728
|
-
className:
|
|
3188
|
+
className: q.item__typing,
|
|
2729
3189
|
children: "typing..."
|
|
2730
3190
|
}) : /* @__PURE__ */ i("span", {
|
|
2731
|
-
className:
|
|
3191
|
+
className: q.item__preview,
|
|
2732
3192
|
children: o
|
|
2733
3193
|
}), e === "unread" && c != null && /* @__PURE__ */ i("span", {
|
|
2734
|
-
className:
|
|
3194
|
+
className: q.item__badge,
|
|
2735
3195
|
children: c
|
|
2736
3196
|
})]
|
|
2737
3197
|
})]
|
|
2738
3198
|
})]
|
|
2739
|
-
}),
|
|
3199
|
+
}), Wn = {
|
|
3200
|
+
chart: "_chart_aiboa_2",
|
|
3201
|
+
center: "_center_aiboa_26",
|
|
3202
|
+
center__value: "_center__value_aiboa_35",
|
|
3203
|
+
center__caption: "_center__caption_aiboa_36"
|
|
3204
|
+
}, Gn = {
|
|
3205
|
+
sm: {
|
|
3206
|
+
h: 180,
|
|
3207
|
+
inner: 50,
|
|
3208
|
+
outer: 72
|
|
3209
|
+
},
|
|
3210
|
+
md: {
|
|
3211
|
+
h: 220,
|
|
3212
|
+
inner: 62,
|
|
3213
|
+
outer: 90
|
|
3214
|
+
},
|
|
3215
|
+
lg: {
|
|
3216
|
+
h: 280,
|
|
3217
|
+
inner: 80,
|
|
3218
|
+
outer: 116
|
|
3219
|
+
},
|
|
3220
|
+
xl: {
|
|
3221
|
+
h: 340,
|
|
3222
|
+
inner: 98,
|
|
3223
|
+
outer: 142
|
|
3224
|
+
}
|
|
3225
|
+
}, Kn = ({ data: t, size: n = "md", centerValue: r, centerCaption: o, height: s, className: c }) => {
|
|
3226
|
+
let [l, u] = e.useState(null), [d, f] = e.useState(null), p = (e) => {
|
|
3227
|
+
let t = e.currentTarget.getBoundingClientRect();
|
|
3228
|
+
f({
|
|
3229
|
+
x: e.clientX - t.left,
|
|
3230
|
+
y: e.clientY - t.top
|
|
3231
|
+
});
|
|
3232
|
+
}, m = e.useRef(null), h = St(m), g = [
|
|
3233
|
+
1,
|
|
3234
|
+
2,
|
|
3235
|
+
3,
|
|
3236
|
+
4,
|
|
3237
|
+
5
|
|
3238
|
+
].map((e) => h(`--color-chart-${e}`) ?? Ct[e - 1]), _ = {
|
|
3239
|
+
...Gn[n],
|
|
3240
|
+
h: s ?? Gn[n].h
|
|
3241
|
+
}, v = (_.outer - _.inner) / 2 - 7;
|
|
3242
|
+
return /* @__PURE__ */ a("div", {
|
|
3243
|
+
ref: m,
|
|
3244
|
+
className: [Wn.chart, c ?? ""].filter(Boolean).join(" "),
|
|
3245
|
+
style: { height: _.h },
|
|
3246
|
+
onMouseMove: p,
|
|
3247
|
+
children: [/* @__PURE__ */ i(xe, {
|
|
3248
|
+
width: "100%",
|
|
3249
|
+
height: "100%",
|
|
3250
|
+
children: /* @__PURE__ */ a(ge, { children: [/* @__PURE__ */ i(he, {
|
|
3251
|
+
data: t,
|
|
3252
|
+
dataKey: "value",
|
|
3253
|
+
nameKey: "label",
|
|
3254
|
+
innerRadius: _.inner,
|
|
3255
|
+
outerRadius: _.outer,
|
|
3256
|
+
cornerRadius: v,
|
|
3257
|
+
paddingAngle: 2,
|
|
3258
|
+
stroke: "none",
|
|
3259
|
+
isAnimationActive: !1,
|
|
3260
|
+
onMouseEnter: (e, t) => u(t),
|
|
3261
|
+
onMouseLeave: () => {
|
|
3262
|
+
u(null), f(null);
|
|
3263
|
+
},
|
|
3264
|
+
children: t.map((e, t) => /* @__PURE__ */ i(de, {
|
|
3265
|
+
fill: g[t % g.length],
|
|
3266
|
+
fillOpacity: l !== null && t !== l ? .45 : 1
|
|
3267
|
+
}, t))
|
|
3268
|
+
}), /* @__PURE__ */ i(Se, {
|
|
3269
|
+
content: /* @__PURE__ */ i(Tt, {}),
|
|
3270
|
+
wrapperStyle: { zIndex: 50 },
|
|
3271
|
+
position: d ?? void 0
|
|
3272
|
+
})] })
|
|
3273
|
+
}), (r || o) && /* @__PURE__ */ a("div", {
|
|
3274
|
+
className: Wn.center,
|
|
3275
|
+
children: [r && /* @__PURE__ */ i("span", {
|
|
3276
|
+
className: Wn.center__value,
|
|
3277
|
+
children: r
|
|
3278
|
+
}), o && /* @__PURE__ */ i("span", {
|
|
3279
|
+
className: Wn.center__caption,
|
|
3280
|
+
children: o
|
|
3281
|
+
})]
|
|
3282
|
+
})]
|
|
3283
|
+
});
|
|
3284
|
+
}, qn = {
|
|
2740
3285
|
empty: "_empty_1sxwx_2",
|
|
2741
3286
|
empty__chip: "_empty__chip_1sxwx_12",
|
|
2742
3287
|
"empty__chip--error": "_empty__chip--error_1sxwx_22",
|
|
2743
3288
|
empty__title: "_empty__title_1sxwx_23",
|
|
2744
3289
|
empty__desc: "_empty__desc_1sxwx_31",
|
|
2745
3290
|
empty__action: "_empty__action_1sxwx_39"
|
|
2746
|
-
},
|
|
3291
|
+
}, Jn = {
|
|
2747
3292
|
"no-data": {
|
|
2748
3293
|
icon: /* @__PURE__ */ i(C, {
|
|
2749
3294
|
size: 18,
|
|
2750
|
-
strokeWidth:
|
|
3295
|
+
strokeWidth: M(18)
|
|
2751
3296
|
}),
|
|
2752
3297
|
title: "No data yet",
|
|
2753
3298
|
description: "Records will appear here once they are added."
|
|
2754
3299
|
},
|
|
2755
3300
|
"no-results": {
|
|
2756
|
-
icon: /* @__PURE__ */ i(
|
|
3301
|
+
icon: /* @__PURE__ */ i(A, {
|
|
2757
3302
|
size: 18,
|
|
2758
|
-
strokeWidth:
|
|
3303
|
+
strokeWidth: M(18)
|
|
2759
3304
|
}),
|
|
2760
3305
|
title: "No results found",
|
|
2761
3306
|
description: "Try adjusting your search or removing filters."
|
|
@@ -2763,39 +3308,39 @@ var K = {
|
|
|
2763
3308
|
error: {
|
|
2764
3309
|
icon: /* @__PURE__ */ i(h, {
|
|
2765
3310
|
size: 18,
|
|
2766
|
-
strokeWidth:
|
|
3311
|
+
strokeWidth: M(18)
|
|
2767
3312
|
}),
|
|
2768
3313
|
title: "Couldn't load data",
|
|
2769
3314
|
description: "Something went wrong while fetching records."
|
|
2770
3315
|
}
|
|
2771
|
-
},
|
|
2772
|
-
let l =
|
|
3316
|
+
}, Yn = ({ type: e = "no-data", title: t, description: n, actionLabel: r, onAction: o, icon: s, className: c }) => {
|
|
3317
|
+
let l = Jn[e];
|
|
2773
3318
|
return /* @__PURE__ */ a("div", {
|
|
2774
|
-
className: [
|
|
3319
|
+
className: [qn.empty, c ?? ""].filter(Boolean).join(" "),
|
|
2775
3320
|
role: "status",
|
|
2776
3321
|
children: [
|
|
2777
3322
|
/* @__PURE__ */ i("span", {
|
|
2778
|
-
className: [
|
|
3323
|
+
className: [qn.empty__chip, qn[`empty__chip--${e}`]].join(" "),
|
|
2779
3324
|
"aria-hidden": "true",
|
|
2780
3325
|
children: s ?? l.icon
|
|
2781
3326
|
}),
|
|
2782
3327
|
/* @__PURE__ */ i("p", {
|
|
2783
|
-
className:
|
|
3328
|
+
className: qn.empty__title,
|
|
2784
3329
|
children: t ?? l.title
|
|
2785
3330
|
}),
|
|
2786
3331
|
/* @__PURE__ */ i("p", {
|
|
2787
|
-
className:
|
|
3332
|
+
className: qn.empty__desc,
|
|
2788
3333
|
children: n ?? l.description
|
|
2789
3334
|
}),
|
|
2790
3335
|
r && /* @__PURE__ */ i("button", {
|
|
2791
3336
|
type: "button",
|
|
2792
|
-
className:
|
|
3337
|
+
className: qn.empty__action,
|
|
2793
3338
|
onClick: o,
|
|
2794
3339
|
children: r
|
|
2795
3340
|
})
|
|
2796
3341
|
]
|
|
2797
3342
|
});
|
|
2798
|
-
},
|
|
3343
|
+
}, Xn = {
|
|
2799
3344
|
chip: "_chip_1qnyq_2",
|
|
2800
3345
|
chip__lead: "_chip__lead_1qnyq_20",
|
|
2801
3346
|
chip__trail: "_chip__trail_1qnyq_20",
|
|
@@ -2803,127 +3348,331 @@ var K = {
|
|
|
2803
3348
|
chip__remove: "_chip__remove_1qnyq_29",
|
|
2804
3349
|
"chip--add": "_chip--add_1qnyq_38",
|
|
2805
3350
|
"chip--leaving": "_chip--leaving_1qnyq_45"
|
|
2806
|
-
},
|
|
3351
|
+
}, Zn = 160, Qn = () => typeof window < "u" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches, $n = ({ type: t = "default", children: n, onClick: r, onRemove: o, className: s }) => {
|
|
2807
3352
|
let [c, l] = e.useState(!1), u = e.useRef(void 0);
|
|
2808
3353
|
e.useEffect(() => () => window.clearTimeout(u.current), []);
|
|
2809
3354
|
let f = () => {
|
|
2810
3355
|
if (!c) {
|
|
2811
|
-
if (
|
|
3356
|
+
if (Qn()) {
|
|
2812
3357
|
o?.();
|
|
2813
3358
|
return;
|
|
2814
3359
|
}
|
|
2815
3360
|
l(!0), u.current = window.setTimeout(() => {
|
|
2816
3361
|
o?.(), l(!1);
|
|
2817
|
-
},
|
|
3362
|
+
}, Zn);
|
|
2818
3363
|
}
|
|
2819
3364
|
};
|
|
2820
3365
|
return /* @__PURE__ */ a("button", {
|
|
2821
3366
|
type: "button",
|
|
2822
3367
|
onClick: r,
|
|
2823
3368
|
className: [
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
c ?
|
|
3369
|
+
Xn.chip,
|
|
3370
|
+
Xn[`chip--${t}`],
|
|
3371
|
+
c ? Xn["chip--leaving"] : "",
|
|
2827
3372
|
s ?? ""
|
|
2828
3373
|
].filter(Boolean).join(" "),
|
|
2829
3374
|
children: [
|
|
2830
|
-
t === "add" && /* @__PURE__ */ i(
|
|
3375
|
+
t === "add" && /* @__PURE__ */ i(k, {
|
|
2831
3376
|
size: 14,
|
|
2832
|
-
strokeWidth:
|
|
2833
|
-
className:
|
|
3377
|
+
strokeWidth: M(14),
|
|
3378
|
+
className: Xn.chip__lead,
|
|
2834
3379
|
"aria-hidden": "true"
|
|
2835
3380
|
}),
|
|
2836
3381
|
/* @__PURE__ */ i("span", {
|
|
2837
|
-
className:
|
|
3382
|
+
className: Xn.chip__label,
|
|
2838
3383
|
children: n
|
|
2839
3384
|
}),
|
|
2840
3385
|
t === "default" && /* @__PURE__ */ i(d, {
|
|
2841
3386
|
size: 14,
|
|
2842
|
-
strokeWidth:
|
|
2843
|
-
className:
|
|
3387
|
+
strokeWidth: M(14),
|
|
3388
|
+
className: Xn.chip__trail,
|
|
2844
3389
|
"aria-hidden": "true"
|
|
2845
3390
|
}),
|
|
2846
3391
|
t === "active" && /* @__PURE__ */ i("span", {
|
|
2847
3392
|
role: "button",
|
|
2848
3393
|
"aria-label": "Remove filter",
|
|
2849
|
-
className:
|
|
3394
|
+
className: Xn.chip__remove,
|
|
2850
3395
|
onClick: (e) => {
|
|
2851
3396
|
e.stopPropagation(), f();
|
|
2852
3397
|
},
|
|
2853
|
-
children: /* @__PURE__ */ i(
|
|
3398
|
+
children: /* @__PURE__ */ i(se, {
|
|
2854
3399
|
size: 14,
|
|
2855
|
-
strokeWidth:
|
|
3400
|
+
strokeWidth: M(14),
|
|
2856
3401
|
"aria-hidden": "true"
|
|
2857
3402
|
})
|
|
2858
3403
|
})
|
|
2859
3404
|
]
|
|
2860
3405
|
});
|
|
2861
|
-
},
|
|
2862
|
-
field: "
|
|
2863
|
-
field__label: "
|
|
2864
|
-
field__description: "
|
|
2865
|
-
field__error: "
|
|
2866
|
-
input: "
|
|
2867
|
-
"input--sm": "_input--
|
|
2868
|
-
"input--md": "_input--
|
|
2869
|
-
"input--lg": "_input--
|
|
2870
|
-
"input--error": "_input--
|
|
2871
|
-
"input--disabled": "_input--
|
|
2872
|
-
input__control: "
|
|
2873
|
-
input__icon: "
|
|
2874
|
-
"input--unstyled": "_input--
|
|
2875
|
-
},
|
|
2876
|
-
size:
|
|
2877
|
-
strokeWidth:
|
|
2878
|
-
}) : t,
|
|
3406
|
+
}, er = {
|
|
3407
|
+
field: "_field_1nyia_10",
|
|
3408
|
+
field__label: "_field__label_1nyia_18",
|
|
3409
|
+
field__description: "_field__description_1nyia_26",
|
|
3410
|
+
field__error: "_field__error_1nyia_31",
|
|
3411
|
+
input: "_input_1nyia_38",
|
|
3412
|
+
"input--sm": "_input--sm_1nyia_51",
|
|
3413
|
+
"input--md": "_input--md_1nyia_52",
|
|
3414
|
+
"input--lg": "_input--lg_1nyia_53",
|
|
3415
|
+
"input--error": "_input--error_1nyia_67",
|
|
3416
|
+
"input--disabled": "_input--disabled_1nyia_74",
|
|
3417
|
+
input__control: "_input__control_1nyia_81",
|
|
3418
|
+
input__icon: "_input__icon_1nyia_110",
|
|
3419
|
+
"input--unstyled": "_input--unstyled_1nyia_120"
|
|
3420
|
+
}, tr = 16, nr = (t) => e.isValidElement(t) ? e.cloneElement(t, {
|
|
3421
|
+
size: tr,
|
|
3422
|
+
strokeWidth: M(tr)
|
|
3423
|
+
}) : t, rr = e.forwardRef(({ label: t, description: n, error: r, size: o = "md", unstyled: s, leadingIcon: c, trailingIcon: l, disabled: u, id: d, className: f, ...p }, m) => {
|
|
2879
3424
|
let h = e.useId(), g = d ?? h, _ = !!r;
|
|
2880
3425
|
return /* @__PURE__ */ a("div", {
|
|
2881
|
-
className: [
|
|
3426
|
+
className: [er.field, f ?? ""].filter(Boolean).join(" "),
|
|
2882
3427
|
children: [
|
|
2883
3428
|
t && /* @__PURE__ */ i("label", {
|
|
2884
3429
|
htmlFor: g,
|
|
2885
|
-
className:
|
|
3430
|
+
className: er.field__label,
|
|
2886
3431
|
children: t
|
|
2887
3432
|
}),
|
|
2888
3433
|
/* @__PURE__ */ a("div", {
|
|
2889
3434
|
className: [
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
_ ?
|
|
2893
|
-
u ?
|
|
3435
|
+
er.input,
|
|
3436
|
+
er[`input--${o}`],
|
|
3437
|
+
_ ? er["input--error"] : "",
|
|
3438
|
+
u ? er["input--disabled"] : ""
|
|
2894
3439
|
].filter(Boolean).join(" "),
|
|
2895
3440
|
children: [
|
|
2896
3441
|
c && /* @__PURE__ */ i("span", {
|
|
2897
|
-
className:
|
|
3442
|
+
className: er.input__icon,
|
|
2898
3443
|
"aria-hidden": "true",
|
|
2899
|
-
children:
|
|
3444
|
+
children: nr(c)
|
|
2900
3445
|
}),
|
|
2901
3446
|
/* @__PURE__ */ i("input", {
|
|
2902
3447
|
ref: m,
|
|
2903
3448
|
id: g,
|
|
2904
|
-
className:
|
|
3449
|
+
className: er.input__control,
|
|
2905
3450
|
disabled: u,
|
|
2906
3451
|
"aria-invalid": _ || void 0,
|
|
2907
3452
|
"aria-describedby": n || r ? `${g}-desc` : void 0,
|
|
2908
3453
|
...p
|
|
2909
3454
|
}),
|
|
2910
3455
|
l && /* @__PURE__ */ i("span", {
|
|
2911
|
-
className:
|
|
3456
|
+
className: er.input__icon,
|
|
2912
3457
|
"aria-hidden": "true",
|
|
2913
|
-
children:
|
|
3458
|
+
children: nr(l)
|
|
2914
3459
|
})
|
|
2915
3460
|
]
|
|
2916
3461
|
}),
|
|
2917
3462
|
(n || r) && /* @__PURE__ */ i("span", {
|
|
2918
3463
|
id: `${g}-desc`,
|
|
2919
|
-
className: _ ?
|
|
3464
|
+
className: _ ? er.field__error : er.field__description,
|
|
2920
3465
|
children: r || n
|
|
2921
3466
|
})
|
|
2922
3467
|
]
|
|
2923
3468
|
});
|
|
2924
3469
|
});
|
|
2925
|
-
|
|
2926
|
-
var
|
|
3470
|
+
rr.displayName = "Input";
|
|
3471
|
+
var ir = { chart: "_chart_18fgd_2" }, ar = {
|
|
3472
|
+
sm: 180,
|
|
3473
|
+
md: 240,
|
|
3474
|
+
lg: 320,
|
|
3475
|
+
xl: 420
|
|
3476
|
+
}, or = /* @__PURE__ */ new Set([
|
|
3477
|
+
"dots",
|
|
3478
|
+
"custom-dots",
|
|
3479
|
+
"dots-colors",
|
|
3480
|
+
"label",
|
|
3481
|
+
"custom-label"
|
|
3482
|
+
]), sr = ({ data: t, series: n, xKey: r = "label", variant: o = "default", labelKey: s, size: c = "md", height: l, showLegend: u, className: d }) => {
|
|
3483
|
+
let f = e.useRef(null), p = St(f), m = [
|
|
3484
|
+
1,
|
|
3485
|
+
2,
|
|
3486
|
+
3,
|
|
3487
|
+
4,
|
|
3488
|
+
5
|
|
3489
|
+
].map((e) => p(`--color-chart-${e}`) ?? Ct[e - 1]), h = [
|
|
3490
|
+
m[1],
|
|
3491
|
+
m[0],
|
|
3492
|
+
...m.slice(2)
|
|
3493
|
+
], g = p("--color-border-subtle") ?? "#e7e5e1", _ = p("--color-fg-muted") ?? "#78716a", v = p("--color-bg-canvas") ?? "#fafaf9", y = p("--color-fg-default") ?? "#141414", b = o === "linear" ? "linear" : o === "step" ? "step" : "monotone", x = or.has(o), S = (e) => (t) => {
|
|
3494
|
+
let { cx: n, cy: r } = t;
|
|
3495
|
+
return /* @__PURE__ */ a("g", {
|
|
3496
|
+
stroke: e,
|
|
3497
|
+
strokeWidth: 2,
|
|
3498
|
+
strokeLinecap: "round",
|
|
3499
|
+
children: [
|
|
3500
|
+
/* @__PURE__ */ i("line", {
|
|
3501
|
+
x1: n,
|
|
3502
|
+
y1: r - 3,
|
|
3503
|
+
x2: n,
|
|
3504
|
+
y2: r - 3 - 6
|
|
3505
|
+
}),
|
|
3506
|
+
/* @__PURE__ */ i("line", {
|
|
3507
|
+
x1: n,
|
|
3508
|
+
y1: r + 3,
|
|
3509
|
+
x2: n,
|
|
3510
|
+
y2: r + 3 + 6
|
|
3511
|
+
}),
|
|
3512
|
+
/* @__PURE__ */ i("circle", {
|
|
3513
|
+
cx: n,
|
|
3514
|
+
cy: r,
|
|
3515
|
+
r: 3,
|
|
3516
|
+
fill: e,
|
|
3517
|
+
stroke: "none"
|
|
3518
|
+
})
|
|
3519
|
+
]
|
|
3520
|
+
});
|
|
3521
|
+
}, C = (e) => {
|
|
3522
|
+
let { cx: t, cy: n, index: r } = e, a = m[(r ?? 0) % m.length];
|
|
3523
|
+
return /* @__PURE__ */ i("circle", {
|
|
3524
|
+
cx: t,
|
|
3525
|
+
cy: n,
|
|
3526
|
+
r: 4,
|
|
3527
|
+
fill: a,
|
|
3528
|
+
stroke: v,
|
|
3529
|
+
strokeWidth: 1.5
|
|
3530
|
+
});
|
|
3531
|
+
}, w = (e) => {
|
|
3532
|
+
let { x: n, y: r, value: a, index: c } = e, l = o === "custom-label" && s ? t[c]?.[s] : a;
|
|
3533
|
+
return l === void 0 ? /* @__PURE__ */ i("g", {}) : /* @__PURE__ */ i("text", {
|
|
3534
|
+
x: n,
|
|
3535
|
+
y: r - 12,
|
|
3536
|
+
textAnchor: "middle",
|
|
3537
|
+
fill: y,
|
|
3538
|
+
fontSize: 12,
|
|
3539
|
+
fontWeight: 500,
|
|
3540
|
+
fontFamily: "var(--font-sans)",
|
|
3541
|
+
children: l
|
|
3542
|
+
});
|
|
3543
|
+
};
|
|
3544
|
+
return /* @__PURE__ */ i("div", {
|
|
3545
|
+
ref: f,
|
|
3546
|
+
className: [ir.chart, d ?? ""].filter(Boolean).join(" "),
|
|
3547
|
+
children: /* @__PURE__ */ i(xe, {
|
|
3548
|
+
width: "100%",
|
|
3549
|
+
height: l ?? ar[c],
|
|
3550
|
+
children: /* @__PURE__ */ a(me, {
|
|
3551
|
+
data: t,
|
|
3552
|
+
margin: {
|
|
3553
|
+
top: 8,
|
|
3554
|
+
right: 8,
|
|
3555
|
+
bottom: 8,
|
|
3556
|
+
left: 12
|
|
3557
|
+
},
|
|
3558
|
+
children: [
|
|
3559
|
+
/* @__PURE__ */ i(ue, {
|
|
3560
|
+
strokeDasharray: "3 3",
|
|
3561
|
+
stroke: g,
|
|
3562
|
+
vertical: !1
|
|
3563
|
+
}),
|
|
3564
|
+
/* @__PURE__ */ i(Ce, {
|
|
3565
|
+
dataKey: r,
|
|
3566
|
+
stroke: _,
|
|
3567
|
+
fontSize: 12,
|
|
3568
|
+
tickLine: !1,
|
|
3569
|
+
axisLine: !1,
|
|
3570
|
+
interval: 0
|
|
3571
|
+
}),
|
|
3572
|
+
/* @__PURE__ */ i(Se, {
|
|
3573
|
+
cursor: {
|
|
3574
|
+
stroke: p("--color-border-default") ?? "#dbdad7",
|
|
3575
|
+
strokeWidth: 1
|
|
3576
|
+
},
|
|
3577
|
+
content: /* @__PURE__ */ i(Tt, {}),
|
|
3578
|
+
wrapperStyle: { zIndex: 50 }
|
|
3579
|
+
}),
|
|
3580
|
+
u && /* @__PURE__ */ i(fe, { wrapperStyle: {
|
|
3581
|
+
fontSize: 12,
|
|
3582
|
+
fontFamily: "var(--font-sans)"
|
|
3583
|
+
} }),
|
|
3584
|
+
n.map((e, t) => {
|
|
3585
|
+
let n = h[t % h.length], r = x ? o === "custom-dots" ? S(n) : o === "dots-colors" ? C : {
|
|
3586
|
+
r: 4,
|
|
3587
|
+
fill: n,
|
|
3588
|
+
stroke: v,
|
|
3589
|
+
strokeWidth: 1.5
|
|
3590
|
+
} : !1;
|
|
3591
|
+
return /* @__PURE__ */ i(pe, {
|
|
3592
|
+
type: b,
|
|
3593
|
+
dataKey: e,
|
|
3594
|
+
stroke: n,
|
|
3595
|
+
strokeWidth: 2,
|
|
3596
|
+
dot: r,
|
|
3597
|
+
activeDot: {
|
|
3598
|
+
r: 4,
|
|
3599
|
+
fill: n,
|
|
3600
|
+
stroke: v,
|
|
3601
|
+
strokeWidth: 1.5
|
|
3602
|
+
},
|
|
3603
|
+
label: o === "label" || o === "custom-label" ? w : void 0
|
|
3604
|
+
}, e);
|
|
3605
|
+
})
|
|
3606
|
+
]
|
|
3607
|
+
})
|
|
3608
|
+
})
|
|
3609
|
+
});
|
|
3610
|
+
}, cr = {
|
|
3611
|
+
menu: "_menu_15e4v_2",
|
|
3612
|
+
divider: "_divider_15e4v_15"
|
|
3613
|
+
}, lr = ({ children: e, minWidth: t = 208, className: n, ...r }) => {
|
|
3614
|
+
let i = Nn();
|
|
3615
|
+
return /* @__PURE__ */ a("div", {
|
|
3616
|
+
ref: i.ref,
|
|
3617
|
+
...i.groupProps,
|
|
3618
|
+
role: "menu",
|
|
3619
|
+
"aria-label": r["aria-label"],
|
|
3620
|
+
style: { minWidth: t },
|
|
3621
|
+
className: [cr.menu, n ?? ""].filter(Boolean).join(" "),
|
|
3622
|
+
children: [i.highlight, e]
|
|
3623
|
+
});
|
|
3624
|
+
}, ur = () => /* @__PURE__ */ i("div", {
|
|
3625
|
+
className: cr.divider,
|
|
3626
|
+
role: "separator"
|
|
3627
|
+
}), dr = {
|
|
3628
|
+
item: "_item_1ezjp_2",
|
|
3629
|
+
item__icon: "_item__icon_1ezjp_27",
|
|
3630
|
+
item__label: "_item__label_1ezjp_28",
|
|
3631
|
+
item__shortcut: "_item__shortcut_1ezjp_29",
|
|
3632
|
+
item__check: "_item__check_1ezjp_36",
|
|
3633
|
+
"item--checked": "_item--checked_1ezjp_38",
|
|
3634
|
+
"item--disabled": "_item--disabled_1ezjp_39",
|
|
3635
|
+
"item--destructive": "_item--destructive_1ezjp_40"
|
|
3636
|
+
}, fr = ({ state: e = "default", icon: t, shortcut: n, children: r, onSelect: o, className: s }) => {
|
|
3637
|
+
let c = e === "disabled";
|
|
3638
|
+
return /* @__PURE__ */ a("div", {
|
|
3639
|
+
role: "menuitem",
|
|
3640
|
+
"data-hover-item": "",
|
|
3641
|
+
"aria-disabled": c || void 0,
|
|
3642
|
+
"aria-checked": e === "checked" || void 0,
|
|
3643
|
+
tabIndex: c ? -1 : 0,
|
|
3644
|
+
onClick: c ? void 0 : o,
|
|
3645
|
+
onKeyDown: (e) => {
|
|
3646
|
+
c || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), o?.());
|
|
3647
|
+
},
|
|
3648
|
+
className: [
|
|
3649
|
+
dr.item,
|
|
3650
|
+
dr[`item--${e}`],
|
|
3651
|
+
s ?? ""
|
|
3652
|
+
].filter(Boolean).join(" "),
|
|
3653
|
+
children: [
|
|
3654
|
+
t && /* @__PURE__ */ i("span", {
|
|
3655
|
+
className: dr.item__icon,
|
|
3656
|
+
"aria-hidden": "true",
|
|
3657
|
+
children: t
|
|
3658
|
+
}),
|
|
3659
|
+
/* @__PURE__ */ i("span", {
|
|
3660
|
+
className: dr.item__label,
|
|
3661
|
+
children: r
|
|
3662
|
+
}),
|
|
3663
|
+
n && /* @__PURE__ */ i("kbd", {
|
|
3664
|
+
className: dr.item__shortcut,
|
|
3665
|
+
children: n
|
|
3666
|
+
}),
|
|
3667
|
+
e === "checked" && /* @__PURE__ */ i(l, {
|
|
3668
|
+
size: 16,
|
|
3669
|
+
strokeWidth: M(16),
|
|
3670
|
+
className: dr.item__check,
|
|
3671
|
+
"aria-hidden": "true"
|
|
3672
|
+
})
|
|
3673
|
+
]
|
|
3674
|
+
});
|
|
3675
|
+
}, J = {
|
|
2927
3676
|
row: "_row_1q1m5_2",
|
|
2928
3677
|
"row--sent": "_row--sent_1q1m5_3",
|
|
2929
3678
|
row__avatar: "_row__avatar_1q1m5_4",
|
|
@@ -2947,7 +3696,7 @@ var J = {
|
|
|
2947
3696
|
foot__receipt: "_foot__receipt_1q1m5_32",
|
|
2948
3697
|
system: "_system_1q1m5_34",
|
|
2949
3698
|
system__pill: "_system__pill_1q1m5_35"
|
|
2950
|
-
},
|
|
3699
|
+
}, pr = ({ type: e = "received", content: t = "text", avatar: n, authorName: o, timestamp: s, children: c, image: l, fileName: d, fileSize: f, reactions: p, read: m, className: h }) => {
|
|
2951
3700
|
if (e === "system") return /* @__PURE__ */ i("div", {
|
|
2952
3701
|
className: [J.system, h ?? ""].filter(Boolean).join(" "),
|
|
2953
3702
|
children: /* @__PURE__ */ i("span", {
|
|
@@ -2990,7 +3739,7 @@ var J = {
|
|
|
2990
3739
|
children: [
|
|
2991
3740
|
/* @__PURE__ */ i(b, {
|
|
2992
3741
|
size: 18,
|
|
2993
|
-
strokeWidth:
|
|
3742
|
+
strokeWidth: M(18),
|
|
2994
3743
|
className: J.file__icon,
|
|
2995
3744
|
"aria-hidden": "true"
|
|
2996
3745
|
}),
|
|
@@ -3006,7 +3755,7 @@ var J = {
|
|
|
3006
3755
|
}),
|
|
3007
3756
|
/* @__PURE__ */ i(_, {
|
|
3008
3757
|
size: 16,
|
|
3009
|
-
strokeWidth:
|
|
3758
|
+
strokeWidth: M(16),
|
|
3010
3759
|
className: J.file__dl,
|
|
3011
3760
|
"aria-hidden": "true"
|
|
3012
3761
|
})
|
|
@@ -3025,7 +3774,7 @@ var J = {
|
|
|
3025
3774
|
children: s
|
|
3026
3775
|
}), m && /* @__PURE__ */ i(u, {
|
|
3027
3776
|
size: 13,
|
|
3028
|
-
strokeWidth:
|
|
3777
|
+
strokeWidth: M(13),
|
|
3029
3778
|
className: J.foot__receipt,
|
|
3030
3779
|
"aria-hidden": "true"
|
|
3031
3780
|
})] })]
|
|
@@ -3033,19 +3782,19 @@ var J = {
|
|
|
3033
3782
|
]
|
|
3034
3783
|
})]
|
|
3035
3784
|
});
|
|
3036
|
-
},
|
|
3785
|
+
}, mr = {
|
|
3037
3786
|
pagination: "_pagination_e1j7r_2",
|
|
3038
3787
|
page: "_page_e1j7r_9",
|
|
3039
3788
|
arrow: "_arrow_e1j7r_9",
|
|
3040
3789
|
"page--active": "_page--active_e1j7r_26",
|
|
3041
3790
|
ellipsis: "_ellipsis_e1j7r_40"
|
|
3042
|
-
},
|
|
3043
|
-
function
|
|
3791
|
+
}, hr = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n);
|
|
3792
|
+
function gr(e, t, n) {
|
|
3044
3793
|
let r = n * 2 + 5;
|
|
3045
|
-
if (e <= r) return
|
|
3794
|
+
if (e <= r) return hr(1, e);
|
|
3046
3795
|
let i = r - 2, a = n * 2 + 1;
|
|
3047
3796
|
if (t <= i) return [
|
|
3048
|
-
...
|
|
3797
|
+
...hr(1, i),
|
|
3049
3798
|
"end-ellipsis",
|
|
3050
3799
|
e
|
|
3051
3800
|
];
|
|
@@ -3053,19 +3802,19 @@ function Tn(e, t, n) {
|
|
|
3053
3802
|
return s <= e - 3 ? [
|
|
3054
3803
|
1,
|
|
3055
3804
|
"start-ellipsis",
|
|
3056
|
-
...
|
|
3805
|
+
...hr(o, s),
|
|
3057
3806
|
"end-ellipsis",
|
|
3058
3807
|
e
|
|
3059
3808
|
] : [
|
|
3060
3809
|
1,
|
|
3061
3810
|
"start-ellipsis",
|
|
3062
|
-
...
|
|
3811
|
+
...hr(e - i + 1, e)
|
|
3063
3812
|
];
|
|
3064
3813
|
}
|
|
3065
|
-
var
|
|
3814
|
+
var _r = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s }) => {
|
|
3066
3815
|
let c = e.useRef(null);
|
|
3067
3816
|
if (t < 1) return null;
|
|
3068
|
-
let l = Math.min(Math.max(n, 1), t), u = Math.max(0, o), d =
|
|
3817
|
+
let l = Math.min(Math.max(n, 1), t), u = Math.max(0, o), d = gr(t, l, u), m = c.current;
|
|
3069
3818
|
if (m && m.total === t && m.siblings === u) {
|
|
3070
3819
|
let e = m.tokens, n = e.includes(l), r = l === 1 && e[1] === "start-ellipsis" || l === t && e[e.length - 2] === "end-ellipsis";
|
|
3071
3820
|
n && !r && (d = e);
|
|
@@ -3075,53 +3824,53 @@ var En = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
3075
3824
|
siblings: u,
|
|
3076
3825
|
tokens: d
|
|
3077
3826
|
}, /* @__PURE__ */ a("nav", {
|
|
3078
|
-
className: [
|
|
3827
|
+
className: [mr.pagination, s ?? ""].filter(Boolean).join(" "),
|
|
3079
3828
|
"aria-label": "Pagination",
|
|
3080
3829
|
children: [
|
|
3081
3830
|
/* @__PURE__ */ i("button", {
|
|
3082
3831
|
type: "button",
|
|
3083
|
-
className:
|
|
3832
|
+
className: mr.arrow,
|
|
3084
3833
|
disabled: l <= 1,
|
|
3085
3834
|
onClick: () => r(l - 1),
|
|
3086
3835
|
"aria-label": "Previous page",
|
|
3087
3836
|
children: /* @__PURE__ */ i(f, {
|
|
3088
3837
|
size: 16,
|
|
3089
|
-
strokeWidth:
|
|
3838
|
+
strokeWidth: M(16)
|
|
3090
3839
|
})
|
|
3091
3840
|
}),
|
|
3092
3841
|
d.map((e) => typeof e == "number" ? /* @__PURE__ */ i("button", {
|
|
3093
3842
|
type: "button",
|
|
3094
|
-
className: [
|
|
3843
|
+
className: [mr.page, e === l ? mr["page--active"] : ""].filter(Boolean).join(" "),
|
|
3095
3844
|
"aria-current": e === l ? "page" : void 0,
|
|
3096
3845
|
"aria-label": `Page ${e}`,
|
|
3097
3846
|
onClick: () => e !== l && r(e),
|
|
3098
3847
|
children: e
|
|
3099
3848
|
}, e) : /* @__PURE__ */ i("span", {
|
|
3100
|
-
className:
|
|
3849
|
+
className: mr.ellipsis,
|
|
3101
3850
|
"aria-hidden": "true",
|
|
3102
3851
|
children: "…"
|
|
3103
3852
|
}, e)),
|
|
3104
3853
|
/* @__PURE__ */ i("button", {
|
|
3105
3854
|
type: "button",
|
|
3106
|
-
className:
|
|
3855
|
+
className: mr.arrow,
|
|
3107
3856
|
disabled: l >= t,
|
|
3108
3857
|
onClick: () => r(l + 1),
|
|
3109
3858
|
"aria-label": "Next page",
|
|
3110
3859
|
children: /* @__PURE__ */ i(p, {
|
|
3111
3860
|
size: 16,
|
|
3112
|
-
strokeWidth:
|
|
3861
|
+
strokeWidth: M(16)
|
|
3113
3862
|
})
|
|
3114
3863
|
})
|
|
3115
3864
|
]
|
|
3116
3865
|
});
|
|
3117
|
-
},
|
|
3866
|
+
}, vr = {
|
|
3118
3867
|
track: "_track_1br5v_2",
|
|
3119
3868
|
segment: "_segment_1br5v_12",
|
|
3120
3869
|
"segment--active": "_segment--active_1br5v_38",
|
|
3121
3870
|
thumb: "_thumb_1br5v_44",
|
|
3122
3871
|
"thumb--animated": "_thumb--animated_1br5v_62",
|
|
3123
3872
|
"track--fullWidth": "_track--fullWidth_1br5v_68"
|
|
3124
|
-
},
|
|
3873
|
+
}, yr = ({ options: t, value: n, defaultValue: r, onChange: o, fullWidth: s, className: c }) => {
|
|
3125
3874
|
let l = n !== void 0, [u, d] = e.useState(r ?? t[0]?.value), f = l ? n : u, p = (e) => {
|
|
3126
3875
|
l || d(e), o?.(e);
|
|
3127
3876
|
}, m = e.useRef(null), h = e.useRef({}), [g, _] = e.useState(null), [v, y] = e.useState(!1);
|
|
@@ -3142,13 +3891,13 @@ var En = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
3142
3891
|
ref: m,
|
|
3143
3892
|
role: "tablist",
|
|
3144
3893
|
className: [
|
|
3145
|
-
|
|
3146
|
-
s ?
|
|
3894
|
+
vr.track,
|
|
3895
|
+
s ? vr["track--fullWidth"] : "",
|
|
3147
3896
|
c ?? ""
|
|
3148
3897
|
].filter(Boolean).join(" "),
|
|
3149
3898
|
children: [g && /* @__PURE__ */ i("span", {
|
|
3150
3899
|
"aria-hidden": "true",
|
|
3151
|
-
className: [
|
|
3900
|
+
className: [vr.thumb, v ? vr["thumb--animated"] : ""].filter(Boolean).join(" "),
|
|
3152
3901
|
style: {
|
|
3153
3902
|
transform: `translateX(${g.left}px)`,
|
|
3154
3903
|
width: g.width
|
|
@@ -3162,7 +3911,7 @@ var En = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
3162
3911
|
role: "tab",
|
|
3163
3912
|
type: "button",
|
|
3164
3913
|
"aria-selected": t,
|
|
3165
|
-
className: [
|
|
3914
|
+
className: [vr.segment, t ? vr["segment--active"] : ""].filter(Boolean).join(" "),
|
|
3166
3915
|
onClick: () => p(e.value),
|
|
3167
3916
|
children: e.label
|
|
3168
3917
|
}, e.value);
|
|
@@ -3198,47 +3947,47 @@ var En = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
3198
3947
|
option__check: "_option__check_1b512_179",
|
|
3199
3948
|
optionHighlight: "_optionHighlight_1b512_151",
|
|
3200
3949
|
"optionHighlight--animated": "_optionHighlight--animated_1b512_201"
|
|
3201
|
-
},
|
|
3202
|
-
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, E] = e.useState(!1), [D, O] = e.useState(0),
|
|
3950
|
+
}, br = ({ 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 }) => {
|
|
3951
|
+
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, E] = e.useState(!1), [D, O] = e.useState(0), k = e.useRef(null), A = e.useRef(null), j = e.useRef(null), ee = e.useRef({}), [te, ne] = e.useState(null), [re, ie] = e.useState(!1);
|
|
3203
3952
|
e.useLayoutEffect(() => {
|
|
3204
|
-
let e =
|
|
3953
|
+
let e = ee.current[D];
|
|
3205
3954
|
if (!e) {
|
|
3206
|
-
|
|
3955
|
+
ne(null);
|
|
3207
3956
|
return;
|
|
3208
3957
|
}
|
|
3209
|
-
|
|
3958
|
+
ne({
|
|
3210
3959
|
top: e.offsetTop,
|
|
3211
3960
|
height: e.offsetHeight
|
|
3212
3961
|
});
|
|
3213
3962
|
}, [D, c.length]), e.useLayoutEffect(() => {
|
|
3214
3963
|
if (!T) {
|
|
3215
|
-
|
|
3964
|
+
ie(!1);
|
|
3216
3965
|
return;
|
|
3217
3966
|
}
|
|
3218
|
-
|
|
3219
|
-
let e = window.requestAnimationFrame(() =>
|
|
3967
|
+
ie(!1);
|
|
3968
|
+
let e = window.requestAnimationFrame(() => ie(!0));
|
|
3220
3969
|
return () => window.cancelAnimationFrame(e);
|
|
3221
3970
|
}, [T]), e.useEffect(() => {
|
|
3222
|
-
if (!
|
|
3971
|
+
if (!j.current) return;
|
|
3223
3972
|
let e = new ResizeObserver(() => {
|
|
3224
|
-
let e =
|
|
3225
|
-
e &&
|
|
3973
|
+
let e = ee.current[D];
|
|
3974
|
+
e && ne({
|
|
3226
3975
|
top: e.offsetTop,
|
|
3227
3976
|
height: e.offsetHeight
|
|
3228
3977
|
});
|
|
3229
3978
|
});
|
|
3230
|
-
return e.observe(
|
|
3979
|
+
return e.observe(j.current), () => e.disconnect();
|
|
3231
3980
|
}, [T]);
|
|
3232
|
-
let
|
|
3981
|
+
let ae = rt(k, T), [oe, se] = e.useState(null);
|
|
3233
3982
|
e.useEffect(() => {
|
|
3234
3983
|
C && E(!0);
|
|
3235
3984
|
}, [C]), e.useLayoutEffect(() => {
|
|
3236
3985
|
if (!C) return;
|
|
3237
3986
|
let e = () => {
|
|
3238
|
-
let e =
|
|
3987
|
+
let e = A.current;
|
|
3239
3988
|
if (!e) return;
|
|
3240
3989
|
let t = e.getBoundingClientRect();
|
|
3241
|
-
|
|
3990
|
+
se({
|
|
3242
3991
|
top: t.bottom + 4,
|
|
3243
3992
|
left: t.left,
|
|
3244
3993
|
width: t.width
|
|
@@ -3251,7 +4000,7 @@ var En = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
3251
4000
|
if (!C) return;
|
|
3252
4001
|
let e = (e) => {
|
|
3253
4002
|
let t = e.target;
|
|
3254
|
-
|
|
4003
|
+
k.current?.contains(t) || j.current?.contains(t) || w(!1);
|
|
3255
4004
|
};
|
|
3256
4005
|
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
3257
4006
|
}, [C]), e.useEffect(() => {
|
|
@@ -3263,9 +4012,9 @@ var En = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
3263
4012
|
c,
|
|
3264
4013
|
x
|
|
3265
4014
|
]);
|
|
3266
|
-
let
|
|
4015
|
+
let ce = (e) => {
|
|
3267
4016
|
e.disabled || (l === void 0 && b(e.value), d?.(e.value), w(!1));
|
|
3268
|
-
},
|
|
4017
|
+
}, le = (e) => {
|
|
3269
4018
|
O((t) => {
|
|
3270
4019
|
let n = t;
|
|
3271
4020
|
for (let t = 0; t < c.length; t += 1) if (n = (n + e + c.length) % c.length, !c[n]?.disabled) return n;
|
|
@@ -3274,7 +4023,7 @@ var En = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
3274
4023
|
};
|
|
3275
4024
|
return /* @__PURE__ */ a("div", {
|
|
3276
4025
|
className: [Y.field, m ?? ""].filter(Boolean).join(" "),
|
|
3277
|
-
ref:
|
|
4026
|
+
ref: k,
|
|
3278
4027
|
children: [
|
|
3279
4028
|
t && /* @__PURE__ */ i("label", {
|
|
3280
4029
|
htmlFor: g,
|
|
@@ -3284,7 +4033,7 @@ var En = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
3284
4033
|
/* @__PURE__ */ a("div", {
|
|
3285
4034
|
className: Y.anchor,
|
|
3286
4035
|
children: [/* @__PURE__ */ a("div", {
|
|
3287
|
-
ref:
|
|
4036
|
+
ref: A,
|
|
3288
4037
|
id: g,
|
|
3289
4038
|
role: "combobox",
|
|
3290
4039
|
tabIndex: f ? -1 : 0,
|
|
@@ -3301,14 +4050,14 @@ var En = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
3301
4050
|
e.preventDefault(), w(!0);
|
|
3302
4051
|
return;
|
|
3303
4052
|
}
|
|
3304
|
-
if (C) if (e.key === "ArrowDown") e.preventDefault(),
|
|
3305
|
-
else if (e.key === "ArrowUp") e.preventDefault(),
|
|
4053
|
+
if (C) if (e.key === "ArrowDown") e.preventDefault(), le(1);
|
|
4054
|
+
else if (e.key === "ArrowUp") e.preventDefault(), le(-1);
|
|
3306
4055
|
else if (e.key === "Home") e.preventDefault(), O(0);
|
|
3307
4056
|
else if (e.key === "End") e.preventDefault(), O(c.length - 1);
|
|
3308
4057
|
else if (e.key === "Enter" || e.key === " ") {
|
|
3309
4058
|
e.preventDefault();
|
|
3310
4059
|
let t = c[D];
|
|
3311
|
-
t &&
|
|
4060
|
+
t && ce(t);
|
|
3312
4061
|
} else e.key === "Escape" && (e.preventDefault(), w(!1));
|
|
3313
4062
|
}
|
|
3314
4063
|
},
|
|
@@ -3331,47 +4080,47 @@ var En = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
3331
4080
|
viewBox: "0 0 24 24",
|
|
3332
4081
|
fill: "none",
|
|
3333
4082
|
stroke: "currentColor",
|
|
3334
|
-
strokeWidth:
|
|
4083
|
+
strokeWidth: M(16),
|
|
3335
4084
|
strokeLinecap: "round",
|
|
3336
4085
|
strokeLinejoin: "round",
|
|
3337
4086
|
children: /* @__PURE__ */ i("path", { d: "m6 9 6 6 6-6" })
|
|
3338
4087
|
})
|
|
3339
4088
|
})]
|
|
3340
|
-
}), T &&
|
|
3341
|
-
ref:
|
|
4089
|
+
}), T && oe && Ee(/* @__PURE__ */ a("div", {
|
|
4090
|
+
ref: j,
|
|
3342
4091
|
id: _,
|
|
3343
4092
|
role: "listbox",
|
|
3344
4093
|
className: [
|
|
3345
|
-
|
|
4094
|
+
ae,
|
|
3346
4095
|
Y.panel,
|
|
3347
4096
|
C ? Y["panel--entering"] : Y["panel--exiting"]
|
|
3348
4097
|
].filter(Boolean).join(" "),
|
|
3349
4098
|
style: {
|
|
3350
4099
|
position: "fixed",
|
|
3351
|
-
top:
|
|
3352
|
-
left:
|
|
3353
|
-
width:
|
|
4100
|
+
top: oe.top,
|
|
4101
|
+
left: oe.left,
|
|
4102
|
+
width: oe.width
|
|
3354
4103
|
},
|
|
3355
4104
|
onAnimationEnd: () => {
|
|
3356
4105
|
C || E(!1);
|
|
3357
4106
|
},
|
|
3358
|
-
children: [
|
|
4107
|
+
children: [te && /* @__PURE__ */ i("span", {
|
|
3359
4108
|
"aria-hidden": "true",
|
|
3360
|
-
className: [Y.optionHighlight,
|
|
4109
|
+
className: [Y.optionHighlight, re ? Y["optionHighlight--animated"] : ""].filter(Boolean).join(" "),
|
|
3361
4110
|
style: {
|
|
3362
|
-
transform: `translateY(${
|
|
3363
|
-
height:
|
|
4111
|
+
transform: `translateY(${te.top}px)`,
|
|
4112
|
+
height: te.height
|
|
3364
4113
|
}
|
|
3365
4114
|
}), c.map((e, t) => /* @__PURE__ */ a("div", {
|
|
3366
4115
|
ref: (e) => {
|
|
3367
|
-
|
|
4116
|
+
ee.current[t] = e;
|
|
3368
4117
|
},
|
|
3369
4118
|
id: `${_}-opt-${t}`,
|
|
3370
4119
|
role: "option",
|
|
3371
4120
|
"aria-selected": e.value === x,
|
|
3372
4121
|
"aria-disabled": e.disabled || void 0,
|
|
3373
4122
|
onMouseEnter: () => !e.disabled && O(t),
|
|
3374
|
-
onClick: () =>
|
|
4123
|
+
onClick: () => ce(e),
|
|
3375
4124
|
className: [
|
|
3376
4125
|
Y.option,
|
|
3377
4126
|
e.value === x ? Y["option--selected"] : "",
|
|
@@ -3404,27 +4153,27 @@ var En = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
3404
4153
|
})
|
|
3405
4154
|
]
|
|
3406
4155
|
});
|
|
3407
|
-
},
|
|
3408
|
-
sidebar: "
|
|
3409
|
-
"sidebar--collapsed": "_sidebar--
|
|
3410
|
-
},
|
|
3411
|
-
let r =
|
|
4156
|
+
}, xr = {
|
|
4157
|
+
sidebar: "_sidebar_alxv4_4",
|
|
4158
|
+
"sidebar--collapsed": "_sidebar--collapsed_alxv4_23"
|
|
4159
|
+
}, Sr = ({ collapsed: e = !1, children: t, className: n }) => {
|
|
4160
|
+
let r = Nn();
|
|
3412
4161
|
return /* @__PURE__ */ a("nav", {
|
|
3413
4162
|
ref: r.ref,
|
|
3414
4163
|
...r.groupProps,
|
|
3415
4164
|
className: [
|
|
3416
|
-
|
|
3417
|
-
e ?
|
|
4165
|
+
xr.sidebar,
|
|
4166
|
+
e ? xr["sidebar--collapsed"] : "",
|
|
3418
4167
|
n ?? ""
|
|
3419
4168
|
].filter(Boolean).join(" "),
|
|
3420
4169
|
"data-collapsed": e,
|
|
3421
4170
|
children: [r.highlight, t]
|
|
3422
4171
|
});
|
|
3423
|
-
},
|
|
3424
|
-
className:
|
|
4172
|
+
}, Cr = { divider: "_divider_1oof5_1" }, wr = () => /* @__PURE__ */ i("div", {
|
|
4173
|
+
className: Cr.divider,
|
|
3425
4174
|
role: "separator"
|
|
3426
|
-
}),
|
|
3427
|
-
className:
|
|
4175
|
+
}), Tr = { groupLabel: "_groupLabel_62q1j_2" }, Er = ({ children: e }) => /* @__PURE__ */ i("div", {
|
|
4176
|
+
className: Tr.groupLabel,
|
|
3428
4177
|
children: e
|
|
3429
4178
|
}), X = {
|
|
3430
4179
|
header: "_header_6bhip_2",
|
|
@@ -3440,7 +4189,7 @@ var En = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
3440
4189
|
"header__text--collapsed": "_header__text--collapsed_6bhip_70",
|
|
3441
4190
|
header__title: "_header__title_6bhip_74",
|
|
3442
4191
|
header__toggle: "_header__toggle_6bhip_76"
|
|
3443
|
-
},
|
|
4192
|
+
}, Dr = ({ type: e = "brand", title: t, subtitle: n, logo: r, collapsed: o, onToggle: s, toggleIcon: c = D }) => /* @__PURE__ */ a("div", {
|
|
3444
4193
|
className: [
|
|
3445
4194
|
X.header,
|
|
3446
4195
|
e === "workspace" ? X["header--workspace"] : "",
|
|
@@ -3462,7 +4211,7 @@ var En = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
3462
4211
|
"aria-hidden": "true",
|
|
3463
4212
|
children: /* @__PURE__ */ i(c, {
|
|
3464
4213
|
size: 16,
|
|
3465
|
-
strokeWidth:
|
|
4214
|
+
strokeWidth: M(16)
|
|
3466
4215
|
})
|
|
3467
4216
|
})]
|
|
3468
4217
|
})
|
|
@@ -3489,7 +4238,7 @@ var En = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
3489
4238
|
"aria-hidden": "true",
|
|
3490
4239
|
children: /* @__PURE__ */ i(m, {
|
|
3491
4240
|
size: 16,
|
|
3492
|
-
strokeWidth:
|
|
4241
|
+
strokeWidth: M(16)
|
|
3493
4242
|
})
|
|
3494
4243
|
}),
|
|
3495
4244
|
!o && e === "brand-toggle" && /* @__PURE__ */ i("button", {
|
|
@@ -3499,24 +4248,24 @@ var En = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
3499
4248
|
"aria-label": "Collapse sidebar",
|
|
3500
4249
|
children: /* @__PURE__ */ i(c, {
|
|
3501
4250
|
size: 18,
|
|
3502
|
-
strokeWidth:
|
|
4251
|
+
strokeWidth: M(18)
|
|
3503
4252
|
})
|
|
3504
4253
|
})
|
|
3505
4254
|
]
|
|
3506
4255
|
}), Z = {
|
|
3507
|
-
item: "
|
|
3508
|
-
"item--disabled": "_item--
|
|
3509
|
-
"item--active": "_item--
|
|
3510
|
-
"item--active-flat": "_item--active-
|
|
3511
|
-
item__icon: "
|
|
3512
|
-
item__bar: "
|
|
3513
|
-
item__chevron: "
|
|
3514
|
-
item__badge: "
|
|
3515
|
-
"item--collapsed": "_item--
|
|
3516
|
-
item__label: "
|
|
3517
|
-
"item__label--collapsed": "_item__label--
|
|
3518
|
-
"item__chevron--expanded": "_item__chevron--
|
|
3519
|
-
},
|
|
4256
|
+
item: "_item_19gk3_5",
|
|
4257
|
+
"item--disabled": "_item--disabled_19gk3_37",
|
|
4258
|
+
"item--active": "_item--active_19gk3_37",
|
|
4259
|
+
"item--active-flat": "_item--active-flat_19gk3_37",
|
|
4260
|
+
item__icon: "_item__icon_19gk3_38",
|
|
4261
|
+
item__bar: "_item__bar_19gk3_49",
|
|
4262
|
+
item__chevron: "_item__chevron_19gk3_77",
|
|
4263
|
+
item__badge: "_item__badge_19gk3_79",
|
|
4264
|
+
"item--collapsed": "_item--collapsed_19gk3_98",
|
|
4265
|
+
item__label: "_item__label_19gk3_137",
|
|
4266
|
+
"item__label--collapsed": "_item__label--collapsed_19gk3_146",
|
|
4267
|
+
"item__chevron--expanded": "_item__chevron--expanded_19gk3_169"
|
|
4268
|
+
}, Or = ({ icon: e, label: t, active: n, activeIndicator: o = !0, disabled: s, badge: c, hasSubmenu: l, collapsed: u, expanded: d, onClick: f, href: m, nativeTooltip: h = !0 }) => {
|
|
3520
4269
|
let g = n && o, _ = n && !o, v = [
|
|
3521
4270
|
Z.item,
|
|
3522
4271
|
g ? Z["item--active"] : "",
|
|
@@ -3533,7 +4282,7 @@ var En = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
3533
4282
|
"aria-hidden": "true",
|
|
3534
4283
|
children: /* @__PURE__ */ i(e, {
|
|
3535
4284
|
size: 18,
|
|
3536
|
-
strokeWidth:
|
|
4285
|
+
strokeWidth: M(18)
|
|
3537
4286
|
})
|
|
3538
4287
|
}),
|
|
3539
4288
|
/* @__PURE__ */ i("span", {
|
|
@@ -3549,7 +4298,7 @@ var En = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
3549
4298
|
"aria-hidden": "true",
|
|
3550
4299
|
children: /* @__PURE__ */ i(p, {
|
|
3551
4300
|
size: 16,
|
|
3552
|
-
strokeWidth:
|
|
4301
|
+
strokeWidth: M(16)
|
|
3553
4302
|
})
|
|
3554
4303
|
})
|
|
3555
4304
|
] }), b = {
|
|
@@ -3571,26 +4320,75 @@ var En = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
3571
4320
|
...b,
|
|
3572
4321
|
children: y
|
|
3573
4322
|
});
|
|
3574
|
-
},
|
|
4323
|
+
}, kr = {
|
|
4324
|
+
promo: "_promo_qzdlk_4",
|
|
4325
|
+
promo__head: "_promo__head_qzdlk_20",
|
|
4326
|
+
promo__icon: "_promo__icon_qzdlk_21",
|
|
4327
|
+
promo__title: "_promo__title_qzdlk_22",
|
|
4328
|
+
promo__dismiss: "_promo__dismiss_qzdlk_23",
|
|
4329
|
+
promo__desc: "_promo__desc_qzdlk_30",
|
|
4330
|
+
promo__cta: "_promo__cta_qzdlk_33"
|
|
4331
|
+
}, Ar = ({ type: e = "upgrade", title: t, description: n, ctaLabel: r, onCta: o, onDismiss: s, icon: c = te }) => /* @__PURE__ */ a("div", {
|
|
4332
|
+
className: [kr.promo, kr[`promo--${e}`]].join(" "),
|
|
4333
|
+
children: [
|
|
4334
|
+
/* @__PURE__ */ a("div", {
|
|
4335
|
+
className: kr.promo__head,
|
|
4336
|
+
children: [
|
|
4337
|
+
/* @__PURE__ */ i("span", {
|
|
4338
|
+
className: kr.promo__icon,
|
|
4339
|
+
"aria-hidden": "true",
|
|
4340
|
+
children: /* @__PURE__ */ i(c, {
|
|
4341
|
+
size: 16,
|
|
4342
|
+
strokeWidth: M(16)
|
|
4343
|
+
})
|
|
4344
|
+
}),
|
|
4345
|
+
/* @__PURE__ */ i("span", {
|
|
4346
|
+
className: kr.promo__title,
|
|
4347
|
+
children: t
|
|
4348
|
+
}),
|
|
4349
|
+
s && /* @__PURE__ */ i("button", {
|
|
4350
|
+
type: "button",
|
|
4351
|
+
className: kr.promo__dismiss,
|
|
4352
|
+
onClick: s,
|
|
4353
|
+
"aria-label": "Dismiss",
|
|
4354
|
+
children: /* @__PURE__ */ i(se, {
|
|
4355
|
+
size: 14,
|
|
4356
|
+
strokeWidth: M(14)
|
|
4357
|
+
})
|
|
4358
|
+
})
|
|
4359
|
+
]
|
|
4360
|
+
}),
|
|
4361
|
+
n && /* @__PURE__ */ i("p", {
|
|
4362
|
+
className: kr.promo__desc,
|
|
4363
|
+
children: n
|
|
4364
|
+
}),
|
|
4365
|
+
r && /* @__PURE__ */ i("button", {
|
|
4366
|
+
type: "button",
|
|
4367
|
+
className: kr.promo__cta,
|
|
4368
|
+
onClick: o,
|
|
4369
|
+
children: r
|
|
4370
|
+
})
|
|
4371
|
+
]
|
|
4372
|
+
}), jr = {
|
|
3575
4373
|
subItem: "_subItem_1sz05_2",
|
|
3576
4374
|
"subItem--disabled": "_subItem--disabled_1sz05_26",
|
|
3577
4375
|
"subItem--active": "_subItem--active_1sz05_27",
|
|
3578
4376
|
subItem__dot: "_subItem__dot_1sz05_31",
|
|
3579
4377
|
subItem__label: "_subItem__label_1sz05_41"
|
|
3580
|
-
},
|
|
4378
|
+
}, Mr = ({ label: e, active: t, disabled: n, onClick: o, href: s }) => {
|
|
3581
4379
|
let c = {
|
|
3582
4380
|
className: [
|
|
3583
|
-
|
|
3584
|
-
t ?
|
|
3585
|
-
n ?
|
|
4381
|
+
jr.subItem,
|
|
4382
|
+
t ? jr["subItem--active"] : "",
|
|
4383
|
+
n ? jr["subItem--disabled"] : ""
|
|
3586
4384
|
].filter(Boolean).join(" "),
|
|
3587
4385
|
"data-hover-item": "",
|
|
3588
4386
|
"aria-current": t ? "page" : void 0
|
|
3589
4387
|
}, l = /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("span", {
|
|
3590
|
-
className:
|
|
4388
|
+
className: jr.subItem__dot,
|
|
3591
4389
|
"aria-hidden": "true"
|
|
3592
4390
|
}), /* @__PURE__ */ i("span", {
|
|
3593
|
-
className:
|
|
4391
|
+
className: jr.subItem__label,
|
|
3594
4392
|
children: e
|
|
3595
4393
|
})] });
|
|
3596
4394
|
return s && !n ? /* @__PURE__ */ i("a", {
|
|
@@ -3604,49 +4402,49 @@ var En = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
3604
4402
|
...c,
|
|
3605
4403
|
children: l
|
|
3606
4404
|
});
|
|
3607
|
-
},
|
|
4405
|
+
}, Nr = {
|
|
3608
4406
|
skeleton: "_skeleton_94hr3_9",
|
|
3609
4407
|
"skeleton-shimmer": "_skeleton-shimmer_94hr3_1",
|
|
3610
4408
|
"skeleton--text": "_skeleton--text_94hr3_22",
|
|
3611
4409
|
"skeleton--rect": "_skeleton--rect_94hr3_29",
|
|
3612
4410
|
"skeleton--circle": "_skeleton--circle_94hr3_35"
|
|
3613
|
-
},
|
|
4411
|
+
}, Pr = ({ variant: e = "text", width: t, height: n, className: r }) => {
|
|
3614
4412
|
let a = {};
|
|
3615
4413
|
return t !== void 0 && (a.width = typeof t == "number" ? `${t}px` : t), n !== void 0 && (a.height = typeof n == "number" ? `${n}px` : n), /* @__PURE__ */ i("span", {
|
|
3616
4414
|
"aria-hidden": "true",
|
|
3617
4415
|
className: [
|
|
3618
|
-
|
|
3619
|
-
|
|
4416
|
+
Nr.skeleton,
|
|
4417
|
+
Nr[`skeleton--${e}`],
|
|
3620
4418
|
r ?? ""
|
|
3621
4419
|
].filter(Boolean).join(" "),
|
|
3622
4420
|
style: a
|
|
3623
4421
|
});
|
|
3624
|
-
},
|
|
4422
|
+
}, Fr = {
|
|
3625
4423
|
field: "_field_u7te8_3",
|
|
3626
4424
|
header: "_header_u7te8_4",
|
|
3627
4425
|
label: "_label_u7te8_5",
|
|
3628
4426
|
value: "_value_u7te8_6",
|
|
3629
4427
|
slider: "_slider_u7te8_8",
|
|
3630
4428
|
"sakani-slider-bounce": "_sakani-slider-bounce_u7te8_1"
|
|
3631
|
-
},
|
|
4429
|
+
}, Ir = 1.2, Lr = 460, Rr = e.forwardRef(({ label: t, showValue: n, min: r = 0, max: o = 100, value: s, defaultValue: c, disabled: l, id: u, className: d, onChange: f, ...p }, m) => {
|
|
3632
4430
|
let h = e.useId(), g = u ?? h, _ = Number(s ?? c ?? r), [v, y] = e.useState(_), b = s === void 0 ? v : Number(s), x = (b - r) / (o - r) * 100, S = e.useRef(null), C = (e) => {
|
|
3633
4431
|
S.current = e, typeof m == "function" ? m(e) : m && (m.current = e);
|
|
3634
4432
|
}, w = e.useRef(null), T = e.useRef(void 0);
|
|
3635
4433
|
e.useEffect(() => () => window.clearTimeout(T.current), []);
|
|
3636
4434
|
let E = (e) => {
|
|
3637
4435
|
let t = S.current;
|
|
3638
|
-
t && (t.removeAttribute("data-bounce"), t.offsetWidth, t.style.setProperty("--bounce-dir", String(e)), t.setAttribute("data-bounce", ""), window.clearTimeout(T.current), T.current = window.setTimeout(() => t.removeAttribute("data-bounce"),
|
|
4436
|
+
t && (t.removeAttribute("data-bounce"), t.offsetWidth, t.style.setProperty("--bounce-dir", String(e)), t.setAttribute("data-bounce", ""), window.clearTimeout(T.current), T.current = window.setTimeout(() => t.removeAttribute("data-bounce"), Lr));
|
|
3639
4437
|
};
|
|
3640
4438
|
return /* @__PURE__ */ a("div", {
|
|
3641
|
-
className: [
|
|
4439
|
+
className: [Fr.field, d ?? ""].filter(Boolean).join(" "),
|
|
3642
4440
|
children: [(t || n) && /* @__PURE__ */ a("div", {
|
|
3643
|
-
className:
|
|
4441
|
+
className: Fr.header,
|
|
3644
4442
|
children: [t && /* @__PURE__ */ i("label", {
|
|
3645
4443
|
htmlFor: g,
|
|
3646
|
-
className:
|
|
4444
|
+
className: Fr.label,
|
|
3647
4445
|
children: t
|
|
3648
4446
|
}), n && /* @__PURE__ */ i("span", {
|
|
3649
|
-
className:
|
|
4447
|
+
className: Fr.value,
|
|
3650
4448
|
children: b
|
|
3651
4449
|
})]
|
|
3652
4450
|
}), /* @__PURE__ */ i("input", {
|
|
@@ -3660,19 +4458,115 @@ var En = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
3660
4458
|
disabled: l,
|
|
3661
4459
|
onChange: (e) => {
|
|
3662
4460
|
let t = Number(e.target.value), n = performance.now(), i = w.current;
|
|
3663
|
-
i && (t === o || t === r) && i.v !== t && Math.abs(t - i.v) / (o - r) / Math.max((n - i.t) / 1e3, .001) >=
|
|
4461
|
+
i && (t === o || t === r) && i.v !== t && Math.abs(t - i.v) / (o - r) / Math.max((n - i.t) / 1e3, .001) >= Ir && E(t === o ? 1 : -1), w.current = {
|
|
3664
4462
|
v: t,
|
|
3665
4463
|
t: n
|
|
3666
4464
|
}, s === void 0 && y(t), f?.(e);
|
|
3667
4465
|
},
|
|
3668
|
-
className:
|
|
4466
|
+
className: Fr.slider,
|
|
3669
4467
|
style: { "--pct": `${x}%` },
|
|
3670
4468
|
...p
|
|
3671
4469
|
})]
|
|
3672
4470
|
});
|
|
3673
4471
|
});
|
|
3674
|
-
|
|
3675
|
-
var
|
|
4472
|
+
Rr.displayName = "Slider";
|
|
4473
|
+
var zr = {
|
|
4474
|
+
card: "_card_1qi93_4",
|
|
4475
|
+
"card--featured": "_card--featured_1qi93_24",
|
|
4476
|
+
card__head: "_card__head_1qi93_26",
|
|
4477
|
+
card__icon: "_card__icon_1qi93_27",
|
|
4478
|
+
card__title: "_card__title_1qi93_41",
|
|
4479
|
+
card__menu: "_card__menu_1qi93_42",
|
|
4480
|
+
card__value: "_card__value_1qi93_50",
|
|
4481
|
+
card__meta: "_card__meta_1qi93_59",
|
|
4482
|
+
card__sparkline: "_card__sparkline_1qi93_66",
|
|
4483
|
+
"card--trend-up": "_card--trend-up_1qi93_68",
|
|
4484
|
+
"card--trend-down": "_card--trend-down_1qi93_69",
|
|
4485
|
+
card__description: "_card__description_1qi93_72"
|
|
4486
|
+
}, Br = {
|
|
4487
|
+
up: ae,
|
|
4488
|
+
down: ie,
|
|
4489
|
+
flat: w
|
|
4490
|
+
}, Vr = {
|
|
4491
|
+
up: "success",
|
|
4492
|
+
down: "danger",
|
|
4493
|
+
flat: "neutral"
|
|
4494
|
+
}, Hr = ({ data: e }) => {
|
|
4495
|
+
if (e.length < 2) return null;
|
|
4496
|
+
let t = Math.min(...e), n = Math.max(...e) - t || 1;
|
|
4497
|
+
return /* @__PURE__ */ i("svg", {
|
|
4498
|
+
className: Ur,
|
|
4499
|
+
viewBox: "0 0 100 32",
|
|
4500
|
+
preserveAspectRatio: "none",
|
|
4501
|
+
"aria-hidden": "true",
|
|
4502
|
+
children: /* @__PURE__ */ i("polyline", {
|
|
4503
|
+
points: e.map((r, i) => `${i / (e.length - 1) * 100},${30 - (r - t) / n * 26}`).join(" "),
|
|
4504
|
+
fill: "none",
|
|
4505
|
+
strokeWidth: 2,
|
|
4506
|
+
vectorEffect: "non-scaling-stroke",
|
|
4507
|
+
strokeLinejoin: "round",
|
|
4508
|
+
strokeLinecap: "round"
|
|
4509
|
+
})
|
|
4510
|
+
});
|
|
4511
|
+
}, Ur = zr.card__sparkline, Wr = ({ title: e, value: t, description: n, sparkline: r, delta: o, trend: s = "up", badgeVariant: c, variant: l = "minimal", icon: u, showMenu: d, onMenu: f, className: p }) => {
|
|
4512
|
+
let m = Br[s], h = (l === "icon" || l === "featured") && u;
|
|
4513
|
+
return /* @__PURE__ */ a("div", {
|
|
4514
|
+
className: [
|
|
4515
|
+
zr.card,
|
|
4516
|
+
zr[`card--${l}`],
|
|
4517
|
+
zr[`card--trend-${s}`],
|
|
4518
|
+
p ?? ""
|
|
4519
|
+
].filter(Boolean).join(" "),
|
|
4520
|
+
children: [
|
|
4521
|
+
/* @__PURE__ */ a("div", {
|
|
4522
|
+
className: zr.card__head,
|
|
4523
|
+
children: [
|
|
4524
|
+
h && /* @__PURE__ */ i("span", {
|
|
4525
|
+
className: zr.card__icon,
|
|
4526
|
+
"aria-hidden": "true",
|
|
4527
|
+
children: /* @__PURE__ */ i(u, {
|
|
4528
|
+
size: 18,
|
|
4529
|
+
strokeWidth: M(18)
|
|
4530
|
+
})
|
|
4531
|
+
}),
|
|
4532
|
+
/* @__PURE__ */ i("span", {
|
|
4533
|
+
className: zr.card__title,
|
|
4534
|
+
children: e
|
|
4535
|
+
}),
|
|
4536
|
+
d && /* @__PURE__ */ i("button", {
|
|
4537
|
+
type: "button",
|
|
4538
|
+
className: zr.card__menu,
|
|
4539
|
+
onClick: f,
|
|
4540
|
+
"aria-label": "More options",
|
|
4541
|
+
children: /* @__PURE__ */ i(T, {
|
|
4542
|
+
size: 16,
|
|
4543
|
+
strokeWidth: M(16)
|
|
4544
|
+
})
|
|
4545
|
+
})
|
|
4546
|
+
]
|
|
4547
|
+
}),
|
|
4548
|
+
/* @__PURE__ */ i("div", {
|
|
4549
|
+
className: zr.card__value,
|
|
4550
|
+
children: t
|
|
4551
|
+
}),
|
|
4552
|
+
r && /* @__PURE__ */ i(Hr, { data: r }),
|
|
4553
|
+
(o || n) && /* @__PURE__ */ a("div", {
|
|
4554
|
+
className: zr.card__meta,
|
|
4555
|
+
children: [o && /* @__PURE__ */ i(jt, {
|
|
4556
|
+
variant: c ?? Vr[s],
|
|
4557
|
+
leftIcon: /* @__PURE__ */ i(m, {
|
|
4558
|
+
size: 12,
|
|
4559
|
+
strokeWidth: 2
|
|
4560
|
+
}),
|
|
4561
|
+
children: o
|
|
4562
|
+
}), n && /* @__PURE__ */ i("p", {
|
|
4563
|
+
className: zr.card__description,
|
|
4564
|
+
children: n
|
|
4565
|
+
})]
|
|
4566
|
+
})
|
|
4567
|
+
]
|
|
4568
|
+
});
|
|
4569
|
+
}, Q = {
|
|
3676
4570
|
wrap: "_wrap_9nqt2_6",
|
|
3677
4571
|
"wrap--bordered": "_wrap--bordered_9nqt2_20",
|
|
3678
4572
|
table: "_table_9nqt2_25",
|
|
@@ -3700,18 +4594,18 @@ var Q = {
|
|
|
3700
4594
|
"bodyRow--dropTarget": "_bodyRow--dropTarget_9nqt2_228",
|
|
3701
4595
|
dragCell: "_dragCell_9nqt2_235",
|
|
3702
4596
|
dragHandle: "_dragHandle_9nqt2_251"
|
|
3703
|
-
},
|
|
3704
|
-
function
|
|
4597
|
+
}, Gr = 640;
|
|
4598
|
+
function Kr(t) {
|
|
3705
4599
|
let [n, r] = e.useState(!1);
|
|
3706
4600
|
return e.useEffect(() => {
|
|
3707
4601
|
if (t !== "auto") return;
|
|
3708
|
-
let e = window.matchMedia(`(max-width: ${
|
|
4602
|
+
let e = window.matchMedia(`(max-width: ${Gr}px)`);
|
|
3709
4603
|
r(e.matches);
|
|
3710
4604
|
let n = (e) => r(e.matches);
|
|
3711
4605
|
return e.addEventListener("change", n), () => e.removeEventListener("change", n);
|
|
3712
4606
|
}, [t]), t === "default" ? "default" : t === "stacked" || n ? "stacked" : "default";
|
|
3713
4607
|
}
|
|
3714
|
-
var
|
|
4608
|
+
var qr = ({ checked: t, indeterminate: n, onChange: r, label: o }) => {
|
|
3715
4609
|
let s = e.useRef(null);
|
|
3716
4610
|
return e.useEffect(() => {
|
|
3717
4611
|
s.current && (s.current.indeterminate = !!n);
|
|
@@ -3742,18 +4636,18 @@ var Jn = ({ checked: t, indeterminate: n, onChange: r, label: o }) => {
|
|
|
3742
4636
|
})]
|
|
3743
4637
|
});
|
|
3744
4638
|
};
|
|
3745
|
-
function
|
|
3746
|
-
let m =
|
|
4639
|
+
function Jr({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionChange: s, rowKey: c, reorderable: l, onReorder: u, bordered: d = !0, responsive: f = "auto", className: p }) {
|
|
4640
|
+
let m = Kr(f), h = o !== void 0, [g, _] = e.useState([]), v = h ? o : g, y = (e) => {
|
|
3747
4641
|
h || _(e), s?.(e);
|
|
3748
|
-
}, b = n.length > 0 && v.length === n.length, S = v.length > 0 && !b, [C, w] = e.useState(null), [T, E] = e.useState(null), D =
|
|
4642
|
+
}, b = n.length > 0 && v.length === n.length, S = v.length > 0 && !b, [C, w] = e.useState(null), [T, E] = e.useState(null), D = Nn(), O = () => {
|
|
3749
4643
|
if (C === null || T === null || C === T) {
|
|
3750
4644
|
w(null), E(null);
|
|
3751
4645
|
return;
|
|
3752
4646
|
}
|
|
3753
4647
|
let e = [...n], [t] = e.splice(C, 1);
|
|
3754
4648
|
e.splice(T, 0, t), u?.(e), w(null), E(null);
|
|
3755
|
-
},
|
|
3756
|
-
t.target.closest("a, button, input, select, textarea, label, [role=\"button\"], [draggable=\"true\"]") || window.getSelection()?.isCollapsed &&
|
|
4649
|
+
}, k = () => y(b ? [] : n.map((e, t) => t)), A = (e) => y(v.includes(e) ? v.filter((t) => t !== e) : [...v, e]), j = (e) => (t) => {
|
|
4650
|
+
t.target.closest("a, button, input, select, textarea, label, [role=\"button\"], [draggable=\"true\"]") || window.getSelection()?.isCollapsed && A(e);
|
|
3757
4651
|
};
|
|
3758
4652
|
return m === "stacked" ? /* @__PURE__ */ i("div", {
|
|
3759
4653
|
className: [Q.stackedList, p ?? ""].filter(Boolean).join(" "),
|
|
@@ -3762,7 +4656,7 @@ function Yn({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionCh
|
|
|
3762
4656
|
let o = v.includes(n);
|
|
3763
4657
|
return /* @__PURE__ */ a("div", {
|
|
3764
4658
|
role: "listitem",
|
|
3765
|
-
onClick: r ?
|
|
4659
|
+
onClick: r ? j(n) : void 0,
|
|
3766
4660
|
className: [
|
|
3767
4661
|
Q.card,
|
|
3768
4662
|
o ? Q["card--selected"] : "",
|
|
@@ -3770,9 +4664,9 @@ function Yn({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionCh
|
|
|
3770
4664
|
].filter(Boolean).join(" "),
|
|
3771
4665
|
children: [r && /* @__PURE__ */ i("div", {
|
|
3772
4666
|
className: Q.card__selectRow,
|
|
3773
|
-
children: /* @__PURE__ */ i(
|
|
4667
|
+
children: /* @__PURE__ */ i(qr, {
|
|
3774
4668
|
checked: o,
|
|
3775
|
-
onChange: () =>
|
|
4669
|
+
onChange: () => A(n),
|
|
3776
4670
|
label: `Select row ${n + 1}`
|
|
3777
4671
|
})
|
|
3778
4672
|
}), t.map((t) => /* @__PURE__ */ a("div", {
|
|
@@ -3806,10 +4700,10 @@ function Yn({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionCh
|
|
|
3806
4700
|
}),
|
|
3807
4701
|
r && /* @__PURE__ */ i("th", {
|
|
3808
4702
|
className: Q.checkCell,
|
|
3809
|
-
children: /* @__PURE__ */ i(
|
|
4703
|
+
children: /* @__PURE__ */ i(qr, {
|
|
3810
4704
|
checked: b,
|
|
3811
4705
|
indeterminate: S,
|
|
3812
|
-
onChange:
|
|
4706
|
+
onChange: k,
|
|
3813
4707
|
label: "Select all rows"
|
|
3814
4708
|
})
|
|
3815
4709
|
}),
|
|
@@ -3826,7 +4720,7 @@ function Yn({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionCh
|
|
|
3826
4720
|
let o = v.includes(n);
|
|
3827
4721
|
return /* @__PURE__ */ a("tr", {
|
|
3828
4722
|
"data-hover-item": "",
|
|
3829
|
-
onClick: r ?
|
|
4723
|
+
onClick: r ? j(n) : void 0,
|
|
3830
4724
|
onDragOver: l ? (e) => {
|
|
3831
4725
|
e.preventDefault(), E(n);
|
|
3832
4726
|
} : void 0,
|
|
@@ -3859,9 +4753,9 @@ function Yn({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionCh
|
|
|
3859
4753
|
}),
|
|
3860
4754
|
r && /* @__PURE__ */ i("td", {
|
|
3861
4755
|
className: Q.checkCell,
|
|
3862
|
-
children: /* @__PURE__ */ i(
|
|
4756
|
+
children: /* @__PURE__ */ i(qr, {
|
|
3863
4757
|
checked: o,
|
|
3864
|
-
onChange: () =>
|
|
4758
|
+
onChange: () => A(n),
|
|
3865
4759
|
label: `Select row ${n + 1}`
|
|
3866
4760
|
})
|
|
3867
4761
|
}),
|
|
@@ -3876,7 +4770,7 @@ function Yn({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionCh
|
|
|
3876
4770
|
})]
|
|
3877
4771
|
});
|
|
3878
4772
|
}
|
|
3879
|
-
var
|
|
4773
|
+
var Yr = {
|
|
3880
4774
|
tabs: "_tabs_1122j_3",
|
|
3881
4775
|
"tabs--borderless": "_tabs--borderless_1122j_16",
|
|
3882
4776
|
"tabs--fill": "_tabs--fill_1122j_21",
|
|
@@ -3885,7 +4779,7 @@ var Xn = {
|
|
|
3885
4779
|
"tab--active": "_tab--active_1122j_63",
|
|
3886
4780
|
indicator: "_indicator_1122j_74",
|
|
3887
4781
|
"indicator--animated": "_indicator--animated_1122j_88"
|
|
3888
|
-
},
|
|
4782
|
+
}, Xr = ({ items: t, value: n, defaultValue: r, onChange: o, bordered: s = !0, fill: c = !1, className: l }) => {
|
|
3889
4783
|
let u = n !== void 0, [d, f] = e.useState(r ?? t[0]?.value), p = u ? n : d, m = (e) => {
|
|
3890
4784
|
u || f(e), o?.(e);
|
|
3891
4785
|
}, h = e.useRef(null), g = e.useRef({}), [_, v] = e.useState(null), [y, b] = e.useState(!1);
|
|
@@ -3906,9 +4800,9 @@ var Xn = {
|
|
|
3906
4800
|
ref: h,
|
|
3907
4801
|
role: "tablist",
|
|
3908
4802
|
className: [
|
|
3909
|
-
|
|
3910
|
-
s ? "" :
|
|
3911
|
-
c ?
|
|
4803
|
+
Yr.tabs,
|
|
4804
|
+
s ? "" : Yr["tabs--borderless"],
|
|
4805
|
+
c ? Yr["tabs--fill"] : "",
|
|
3912
4806
|
l ?? ""
|
|
3913
4807
|
].filter(Boolean).join(" "),
|
|
3914
4808
|
children: [t.map((e) => {
|
|
@@ -3922,27 +4816,27 @@ var Xn = {
|
|
|
3922
4816
|
"aria-selected": t,
|
|
3923
4817
|
disabled: e.disabled,
|
|
3924
4818
|
className: [
|
|
3925
|
-
|
|
3926
|
-
t ?
|
|
3927
|
-
e.disabled ?
|
|
4819
|
+
Yr.tab,
|
|
4820
|
+
t ? Yr["tab--active"] : "",
|
|
4821
|
+
e.disabled ? Yr["tab--disabled"] : ""
|
|
3928
4822
|
].filter(Boolean).join(" "),
|
|
3929
4823
|
onClick: () => m(e.value),
|
|
3930
4824
|
children: [n && /* @__PURE__ */ i(n, {
|
|
3931
4825
|
size: 16,
|
|
3932
|
-
strokeWidth:
|
|
4826
|
+
strokeWidth: M(16),
|
|
3933
4827
|
"aria-hidden": "true"
|
|
3934
4828
|
}), e.label]
|
|
3935
4829
|
}, e.value);
|
|
3936
4830
|
}), _ && /* @__PURE__ */ i("span", {
|
|
3937
4831
|
"aria-hidden": "true",
|
|
3938
|
-
className: [
|
|
4832
|
+
className: [Yr.indicator, y ? Yr["indicator--animated"] : ""].filter(Boolean).join(" "),
|
|
3939
4833
|
style: {
|
|
3940
4834
|
transform: `translateX(${_.left}px)`,
|
|
3941
4835
|
width: _.width
|
|
3942
4836
|
}
|
|
3943
4837
|
})]
|
|
3944
4838
|
});
|
|
3945
|
-
},
|
|
4839
|
+
}, Zr = {
|
|
3946
4840
|
wrapper: "_wrapper_w6wtp_8",
|
|
3947
4841
|
bubble: "_bubble_w6wtp_8",
|
|
3948
4842
|
bubble__title: "_bubble__title_w6wtp_46",
|
|
@@ -3964,7 +4858,7 @@ var Xn = {
|
|
|
3964
4858
|
"caret--center-left": "_caret--center-left_w6wtp_121",
|
|
3965
4859
|
"bubble--center-right": "_bubble--center-right_w6wtp_131",
|
|
3966
4860
|
"caret--center-right": "_caret--center-right_w6wtp_139"
|
|
3967
|
-
},
|
|
4861
|
+
}, Qr = ({ title: t, subtitle: n, pointer: r = "top-center", children: o, className: s }) => {
|
|
3968
4862
|
let [c, l] = e.useState(!1);
|
|
3969
4863
|
return e.useEffect(() => {
|
|
3970
4864
|
let e = (e) => {
|
|
@@ -3972,24 +4866,24 @@ var Xn = {
|
|
|
3972
4866
|
};
|
|
3973
4867
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
3974
4868
|
}, []), /* @__PURE__ */ a("span", {
|
|
3975
|
-
className: [
|
|
4869
|
+
className: [Zr.wrapper, s ?? ""].filter(Boolean).join(" "),
|
|
3976
4870
|
"data-dismissed": c || void 0,
|
|
3977
4871
|
onMouseLeave: () => l(!1),
|
|
3978
4872
|
onBlur: () => l(!1),
|
|
3979
4873
|
children: [o, /* @__PURE__ */ a("span", {
|
|
3980
4874
|
role: "tooltip",
|
|
3981
|
-
className: [
|
|
4875
|
+
className: [Zr.bubble, Zr[`bubble--${r}`]].join(" "),
|
|
3982
4876
|
children: [
|
|
3983
4877
|
/* @__PURE__ */ i("span", {
|
|
3984
|
-
className:
|
|
4878
|
+
className: Zr.bubble__title,
|
|
3985
4879
|
children: t
|
|
3986
4880
|
}),
|
|
3987
4881
|
n && /* @__PURE__ */ i("span", {
|
|
3988
|
-
className:
|
|
4882
|
+
className: Zr.bubble__subtitle,
|
|
3989
4883
|
children: n
|
|
3990
4884
|
}),
|
|
3991
4885
|
/* @__PURE__ */ i("span", {
|
|
3992
|
-
className: [
|
|
4886
|
+
className: [Zr.caret, Zr[`caret--${r}`]].join(" "),
|
|
3993
4887
|
"aria-hidden": "true"
|
|
3994
4888
|
})
|
|
3995
4889
|
]
|
|
@@ -4018,8 +4912,8 @@ var Xn = {
|
|
|
4018
4912
|
"bar__left--search": "_bar__left--search_yqi1k_84",
|
|
4019
4913
|
bar__accountChevron: "_bar__accountChevron_yqi1k_98",
|
|
4020
4914
|
"bar__accountChevron--open": "_bar__accountChevron--open_yqi1k_104"
|
|
4021
|
-
},
|
|
4022
|
-
let C =
|
|
4915
|
+
}, $r = ({ type: e = "search", density: t = "md", left: n, showToggle: s = !0, onToggle: c, toggleIcon: l = E, showActions: u = !0, showHelp: f = !0, hasUnread: p = !1, rightSlot: m, account: h, accountOpen: _ = !1, avatar: v, title: y, subtitle: b, actions: x, className: S }) => {
|
|
4916
|
+
let C = Nn(), w = Nn(), T = t === "md" ? 20 : 18, D = M(T);
|
|
4023
4917
|
return /* @__PURE__ */ i("header", {
|
|
4024
4918
|
className: [
|
|
4025
4919
|
$.bar,
|
|
@@ -4058,7 +4952,7 @@ var Xn = {
|
|
|
4058
4952
|
onClick: c,
|
|
4059
4953
|
"aria-label": "Toggle sidebar",
|
|
4060
4954
|
children: /* @__PURE__ */ i(l, {
|
|
4061
|
-
size:
|
|
4955
|
+
size: T,
|
|
4062
4956
|
strokeWidth: D
|
|
4063
4957
|
})
|
|
4064
4958
|
}), /* @__PURE__ */ i("div", {
|
|
@@ -4084,7 +4978,7 @@ var Xn = {
|
|
|
4084
4978
|
className: $.bar__icon,
|
|
4085
4979
|
"aria-label": "Help",
|
|
4086
4980
|
children: /* @__PURE__ */ i(g, {
|
|
4087
|
-
size:
|
|
4981
|
+
size: T,
|
|
4088
4982
|
strokeWidth: D
|
|
4089
4983
|
})
|
|
4090
4984
|
}),
|
|
@@ -4096,7 +4990,7 @@ var Xn = {
|
|
|
4096
4990
|
children: /* @__PURE__ */ a("span", {
|
|
4097
4991
|
className: $.bar__bell,
|
|
4098
4992
|
children: [/* @__PURE__ */ i(o, {
|
|
4099
|
-
size:
|
|
4993
|
+
size: T,
|
|
4100
4994
|
strokeWidth: D
|
|
4101
4995
|
}), p && /* @__PURE__ */ i("span", {
|
|
4102
4996
|
className: $.bar__dot,
|
|
@@ -4110,7 +5004,7 @@ var Xn = {
|
|
|
4110
5004
|
className: $.bar__account,
|
|
4111
5005
|
children: [h, /* @__PURE__ */ i(d, {
|
|
4112
5006
|
size: 16,
|
|
4113
|
-
strokeWidth:
|
|
5007
|
+
strokeWidth: M(16),
|
|
4114
5008
|
className: [$.bar__accountChevron, _ ? $["bar__accountChevron--open"] : ""].filter(Boolean).join(" ")
|
|
4115
5009
|
})]
|
|
4116
5010
|
})
|
|
@@ -4120,4 +5014,4 @@ var Xn = {
|
|
|
4120
5014
|
});
|
|
4121
5015
|
};
|
|
4122
5016
|
//#endregion
|
|
4123
|
-
export {
|
|
5017
|
+
export { zt as $, Rn as A, _n as B, rr as C, Ne as Ct, Un as D, Kn as E, M as Et, Dn as F, ln as G, fn as H, wn as I, nn as J, on as K, Cn as L, Pn as M, Nn as N, Hn as O, On as P, qt as Q, xn as R, sr as S, Pe as St, Yn as T, Oe as Tt, dn as U, hn as V, un as W, Qt as X, en as Y, Yt as Z, _r as _, We as _t, Wr as a, Tt as at, lr as b, ze as bt, Mr as c, xt as ct, Dr as d, ht as dt, Rt as et, Er as f, mt as ft, yr as g, $e as gt, br as h, tt as ht, Jr as i, kt as it, In as j, Bn as k, Ar as l, vt as lt, Sr as m, ut as mt, Qr as n, Nt as nt, Rr as o, Ct as ot, wr as p, dt as pt, rn as q, Xr as r, jt as rt, Pr as s, St as st, $r as t, It as tt, Or as u, gt as ut, pr as v, P as vt, $n as w, ke as wt, ur as x, Le as xt, fr as y, He as yt, yn as z };
|