@sakaniui/react 0.12.0 → 0.13.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/AGENTS.md +7 -0
- package/CHANGELOG.md +73 -0
- package/dist/{TopBar-DRGud3JP.js → TopBar-BcXAB1mf.js} +549 -523
- package/dist/TopBar-DeBSl4rq.cjs +1 -0
- package/dist/blocks.cjs +2 -2
- package/dist/blocks.mjs +2053 -2053
- package/dist/building-warehouse-BUtjAEPH.cjs +1 -0
- package/dist/{file-text-CuRYymVv.js → building-warehouse-_n8EvYUt.js} +15 -21
- package/dist/components/CommandMenu/CommandMenu.d.ts +175 -0
- package/dist/components/CommandMenu/index.d.ts +2 -0
- package/dist/emoji-index.json +1 -1
- package/dist/{help-circle-BufsknPE.js → help-circle-qEEVeIea.js} +15 -9
- package/dist/help-circle-rtL4juBJ.cjs +1 -0
- package/dist/icon-index.json +1 -1
- package/dist/icons.cjs +1 -1
- package/dist/icons.mjs +3932 -3932
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +2624 -1688
- package/dist/lib/SakaniLogo.d.ts +2 -0
- package/dist/{logout-Mc5-u8cG.js → logout-BLSXL3qV.js} +4 -4
- package/dist/logout-pQUABnfO.cjs +1 -0
- package/dist/manifest.json +591 -21
- package/dist/style.css +1 -1
- package/dist/tokens.css +2 -0
- package/package.json +1 -1
- package/dist/TopBar-Dd_xHXBv.cjs +0 -1
- package/dist/file-text-B2rmiOJD.cjs +0 -1
- package/dist/help-circle-C1LENUMu.cjs +0 -1
- package/dist/logout-g8G9uxDa.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e,
|
|
1
|
+
import { A as e, B as t, D as n, E as r, F as i, I as a, L as o, M as s, N as c, O as l, P as u, R as d, S as f, T as p, a as m, b as h, d as g, f as _, h as v, i as y, j as b, k as x, l as S, m as C, n as w, o as T, p as E, r as D, s as O, t as ee, u as te, x as ne, y as re, z as ie } from "./help-circle-qEEVeIea.js";
|
|
2
2
|
import k, { useEffect as ae, useState as oe } from "react";
|
|
3
3
|
import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
|
|
4
4
|
import { Bar as se, BarChart as ce, CartesianGrid as le, Cell as ue, Legend as de, Line as fe, LineChart as pe, Pie as me, PieChart as he, PolarAngleAxis as ge, RadialBar as _e, RadialBarChart as ve, Rectangle as ye, ResponsiveContainer as be, Tooltip as xe, XAxis as Se, YAxis as Ce } from "recharts";
|
|
@@ -348,17 +348,17 @@ var Ue = {
|
|
|
348
348
|
hint: "_hint_3mj75_79",
|
|
349
349
|
link: "_link_3mj75_88",
|
|
350
350
|
input: "_input_3mj75_92"
|
|
351
|
-
}, We = ({ src: e, alt: t, orientation: n = "vertical", accept: r = "image/jpeg,image/png", title:
|
|
351
|
+
}, We = ({ src: e, alt: t, orientation: n = "vertical", accept: r = "image/jpeg,image/png", title: i = "Upload a photo", hint: a = "JPG or PNG, max 5MB.", onFileSelect: s, onRemove: c, className: l }) => {
|
|
352
352
|
let u = k.useRef(null), d = e !== void 0, [f, p] = k.useState(void 0), m = d ? e : f, h = n === "horizontal", g = !!m, _ = () => u.current?.click(), v = () => {
|
|
353
353
|
c?.(), d || p(void 0);
|
|
354
354
|
}, y = /* @__PURE__ */ M("div", {
|
|
355
355
|
className: [Ue.textStack, h ? "" : Ue["textStack--center"]].filter(Boolean).join(" "),
|
|
356
356
|
children: [/* @__PURE__ */ j("p", {
|
|
357
357
|
className: Ue.title,
|
|
358
|
-
children:
|
|
358
|
+
children: i
|
|
359
359
|
}), /* @__PURE__ */ j("p", {
|
|
360
360
|
className: Ue.hint,
|
|
361
|
-
children:
|
|
361
|
+
children: a
|
|
362
362
|
})]
|
|
363
363
|
});
|
|
364
364
|
return /* @__PURE__ */ M("div", {
|
|
@@ -380,7 +380,7 @@ var Ue = {
|
|
|
380
380
|
className: Ue.badge,
|
|
381
381
|
onClick: _,
|
|
382
382
|
"aria-label": "Change photo",
|
|
383
|
-
children: /* @__PURE__ */ j(
|
|
383
|
+
children: /* @__PURE__ */ j(o, {
|
|
384
384
|
size: 16,
|
|
385
385
|
strokeWidth: N(16)
|
|
386
386
|
})
|
|
@@ -495,21 +495,21 @@ var I = {
|
|
|
495
495
|
})
|
|
496
496
|
})
|
|
497
497
|
});
|
|
498
|
-
}, $e = ({ label: e = "Available balance", value: t, change: n, progress: r, hidden:
|
|
499
|
-
let
|
|
500
|
-
let e = !
|
|
501
|
-
|
|
502
|
-
}, [
|
|
498
|
+
}, $e = ({ label: e = "Available balance", value: t, change: n, progress: r, hidden: o, onToggleHidden: s, className: l }) => {
|
|
499
|
+
let d = o !== void 0, [f, p] = k.useState(!1), m = d ? o : f, h = r !== void 0, g = n?.direction ?? "up", _ = g === "up" ? u : c, v = () => {
|
|
500
|
+
let e = !m;
|
|
501
|
+
s?.(e), d || p(e);
|
|
502
|
+
}, [y, b] = k.useState(!1), [x, S] = k.useState(0), C = k.useRef(!1);
|
|
503
503
|
k.useEffect(() => {
|
|
504
|
-
if (
|
|
505
|
-
|
|
504
|
+
if (m && !C.current) {
|
|
505
|
+
b(!0);
|
|
506
506
|
let e = 0, t = setInterval(() => {
|
|
507
|
-
e += 1, S((e) => e + 1), e >= Je && (clearInterval(t),
|
|
507
|
+
e += 1, S((e) => e + 1), e >= Je && (clearInterval(t), b(!1));
|
|
508
508
|
}, Ye);
|
|
509
509
|
return C.current = !0, () => clearInterval(t);
|
|
510
510
|
}
|
|
511
|
-
C.current =
|
|
512
|
-
}, [
|
|
511
|
+
C.current = m;
|
|
512
|
+
}, [m]);
|
|
513
513
|
let w = k.useMemo(() => Xe(t.length), [t, x]), T = k.useMemo(() => n ? Xe(n.value.length) : "", [n?.value, x]), E = /* @__PURE__ */ M("div", {
|
|
514
514
|
className: I.content,
|
|
515
515
|
children: [
|
|
@@ -521,9 +521,9 @@ var I = {
|
|
|
521
521
|
}), /* @__PURE__ */ j("button", {
|
|
522
522
|
type: "button",
|
|
523
523
|
className: I.hideToggle,
|
|
524
|
-
"aria-label":
|
|
525
|
-
onClick:
|
|
526
|
-
children: j(
|
|
524
|
+
"aria-label": m ? "Show balance" : "Hide balance",
|
|
525
|
+
onClick: v,
|
|
526
|
+
children: j(m ? i : a, {
|
|
527
527
|
size: 16,
|
|
528
528
|
strokeWidth: N(16)
|
|
529
529
|
})
|
|
@@ -532,22 +532,22 @@ var I = {
|
|
|
532
532
|
/* @__PURE__ */ j("p", {
|
|
533
533
|
className: [
|
|
534
534
|
I.value,
|
|
535
|
-
|
|
536
|
-
|
|
535
|
+
m ? I["value--hidden"] : "",
|
|
536
|
+
y ? I["value--glitching"] : ""
|
|
537
537
|
].filter(Boolean).join(" "),
|
|
538
|
-
children:
|
|
538
|
+
children: m ? w : t
|
|
539
539
|
}),
|
|
540
540
|
n && /* @__PURE__ */ M("div", {
|
|
541
541
|
className: I.changeRow,
|
|
542
542
|
children: [
|
|
543
|
-
/* @__PURE__ */ j(
|
|
543
|
+
/* @__PURE__ */ j(_, {
|
|
544
544
|
size: 24,
|
|
545
545
|
strokeWidth: 1.5,
|
|
546
|
-
className:
|
|
546
|
+
className: g === "up" ? I.trendIcon__up : I.trendIcon__down
|
|
547
547
|
}),
|
|
548
548
|
/* @__PURE__ */ j("span", {
|
|
549
|
-
className: [
|
|
550
|
-
children:
|
|
549
|
+
className: [g === "up" ? I.changeValue__up : I.changeValue__down, y ? I["value--glitching"] : ""].filter(Boolean).join(" "),
|
|
550
|
+
children: m ? T : n.value
|
|
551
551
|
}),
|
|
552
552
|
/* @__PURE__ */ j("span", {
|
|
553
553
|
className: I.changeLabel,
|
|
@@ -560,10 +560,10 @@ var I = {
|
|
|
560
560
|
return /* @__PURE__ */ M("div", {
|
|
561
561
|
className: [
|
|
562
562
|
I.balance,
|
|
563
|
-
|
|
564
|
-
|
|
563
|
+
h ? I["balance--progress"] : "",
|
|
564
|
+
l ?? ""
|
|
565
565
|
].filter(Boolean).join(" "),
|
|
566
|
-
children: [
|
|
566
|
+
children: [h && /* @__PURE__ */ j(Qe, { progress: r }), E]
|
|
567
567
|
});
|
|
568
568
|
}, et = {
|
|
569
569
|
progress: "_progress_1qaz4_11",
|
|
@@ -1147,26 +1147,26 @@ var Et = (e = "regular", t = "auto") => [
|
|
|
1147
1147
|
"sakani-modal-card-in": "_sakani-modal-card-in_13dud_1",
|
|
1148
1148
|
"card--exiting": "_card--exiting_13dud_115",
|
|
1149
1149
|
"sakani-modal-card-out": "_sakani-modal-card-out_13dud_1"
|
|
1150
|
-
}, kt = ({ open: e, onClose: t, title: n, description: r, variant: i = "default", icon:
|
|
1151
|
-
let
|
|
1152
|
-
enabled:
|
|
1150
|
+
}, kt = ({ open: e, onClose: t, title: n, description: r, variant: i = "default", icon: a, cancelLabel: o = "Cancel", confirmLabel: s, onCancel: c, onConfirm: l, confirmLoading: u, closeOnEscape: f = !0, closeOnBackdropClick: p = !0, children: m, hideHeader: h = !1, hideFooterDivider: g = !1, footerJustify: _ = "end", className: v }) => {
|
|
1151
|
+
let y = i === "destructive", b = k.useRef(null), x = k.useRef(null), S = k.useRef(null), C = rt(S, e), w = it(S, e), T = w === "liquid", E = Ct(b, {
|
|
1152
|
+
enabled: T,
|
|
1153
1153
|
source: !1
|
|
1154
|
-
}), [
|
|
1154
|
+
}), [D, O] = k.useState(!1);
|
|
1155
1155
|
k.useEffect(() => {
|
|
1156
|
-
e &&
|
|
1156
|
+
e && O(!0);
|
|
1157
1157
|
}, [e]), k.useEffect(() => {
|
|
1158
|
-
if (e || !
|
|
1159
|
-
let t = setTimeout(() =>
|
|
1158
|
+
if (e || !D) return;
|
|
1159
|
+
let t = setTimeout(() => O(!1), 240);
|
|
1160
1160
|
return () => clearTimeout(t);
|
|
1161
|
-
}, [e,
|
|
1161
|
+
}, [e, D]), k.useEffect(() => {
|
|
1162
1162
|
if (!e) return;
|
|
1163
1163
|
let n = (e) => {
|
|
1164
|
-
if (
|
|
1164
|
+
if (f && e.key === "Escape") {
|
|
1165
1165
|
t();
|
|
1166
1166
|
return;
|
|
1167
1167
|
}
|
|
1168
|
-
if (e.key !== "Tab" || !
|
|
1169
|
-
let n =
|
|
1168
|
+
if (e.key !== "Tab" || !b.current) return;
|
|
1169
|
+
let n = b.current.querySelectorAll("button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])");
|
|
1170
1170
|
if (n.length === 0) return;
|
|
1171
1171
|
let r = n[0], i = n[n.length - 1];
|
|
1172
1172
|
e.shiftKey && document.activeElement === r ? (e.preventDefault(), i.focus()) : !e.shiftKey && document.activeElement === i && (e.preventDefault(), r.focus());
|
|
@@ -1174,58 +1174,58 @@ var Et = (e = "regular", t = "auto") => [
|
|
|
1174
1174
|
return document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
|
|
1175
1175
|
}, [
|
|
1176
1176
|
e,
|
|
1177
|
-
|
|
1177
|
+
f,
|
|
1178
1178
|
t
|
|
1179
1179
|
]), k.useEffect(() => {
|
|
1180
1180
|
if (!e) return;
|
|
1181
|
-
|
|
1181
|
+
x.current = document.activeElement;
|
|
1182
1182
|
let t = document.body.style.overflow;
|
|
1183
|
-
return document.body.style.overflow = "hidden",
|
|
1184
|
-
document.body.style.overflow = t,
|
|
1183
|
+
return document.body.style.overflow = "hidden", b.current?.focus(), () => {
|
|
1184
|
+
document.body.style.overflow = t, x.current?.focus();
|
|
1185
1185
|
};
|
|
1186
1186
|
}, [e]);
|
|
1187
|
-
let
|
|
1187
|
+
let ee = () => (c ?? t)();
|
|
1188
1188
|
return /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j("span", {
|
|
1189
|
-
ref:
|
|
1189
|
+
ref: S,
|
|
1190
1190
|
style: { display: "none" },
|
|
1191
1191
|
"aria-hidden": "true"
|
|
1192
|
-
}),
|
|
1192
|
+
}), D && Te(/* @__PURE__ */ j("div", {
|
|
1193
1193
|
className: [
|
|
1194
1194
|
R.backdrop,
|
|
1195
|
-
|
|
1195
|
+
C,
|
|
1196
1196
|
e ? R["backdrop--entering"] : R["backdrop--exiting"]
|
|
1197
1197
|
].filter(Boolean).join(" "),
|
|
1198
|
-
"data-surface":
|
|
1198
|
+
"data-surface": w,
|
|
1199
1199
|
onMouseDown: (e) => {
|
|
1200
|
-
|
|
1200
|
+
p && e.target === e.currentTarget && t();
|
|
1201
1201
|
},
|
|
1202
1202
|
children: /* @__PURE__ */ M("div", {
|
|
1203
|
-
ref:
|
|
1203
|
+
ref: b,
|
|
1204
1204
|
role: "alertdialog",
|
|
1205
1205
|
"aria-modal": "true",
|
|
1206
|
-
"aria-labelledby":
|
|
1207
|
-
"aria-label":
|
|
1206
|
+
"aria-labelledby": h ? void 0 : "modal-title",
|
|
1207
|
+
"aria-label": h ? n : void 0,
|
|
1208
1208
|
tabIndex: -1,
|
|
1209
1209
|
className: [
|
|
1210
1210
|
R.card,
|
|
1211
|
-
|
|
1211
|
+
T ? Et("regular") : "",
|
|
1212
1212
|
e ? R["card--entering"] : R["card--exiting"],
|
|
1213
|
-
|
|
1213
|
+
v ?? ""
|
|
1214
1214
|
].filter(Boolean).join(" "),
|
|
1215
|
-
...
|
|
1215
|
+
...T ? E.props : {},
|
|
1216
1216
|
onAnimationEnd: (t) => {
|
|
1217
|
-
t.target === t.currentTarget && !e &&
|
|
1217
|
+
t.target === t.currentTarget && !e && O(!1);
|
|
1218
1218
|
},
|
|
1219
1219
|
children: [
|
|
1220
|
-
|
|
1221
|
-
!
|
|
1220
|
+
T && E.filter,
|
|
1221
|
+
!h && /* @__PURE__ */ M("div", {
|
|
1222
1222
|
className: R.header,
|
|
1223
1223
|
children: [/* @__PURE__ */ M("div", {
|
|
1224
1224
|
className: R.titleGroup,
|
|
1225
|
-
children: [
|
|
1225
|
+
children: [y && /* @__PURE__ */ j("span", {
|
|
1226
1226
|
className: R.iconWrap,
|
|
1227
1227
|
"aria-hidden": "true",
|
|
1228
|
-
children:
|
|
1228
|
+
children: a ?? /* @__PURE__ */ j(ie, {
|
|
1229
1229
|
size: 24,
|
|
1230
1230
|
strokeWidth: N(24),
|
|
1231
1231
|
className: R.icon
|
|
@@ -1236,7 +1236,7 @@ var Et = (e = "regular", t = "auto") => [
|
|
|
1236
1236
|
children: n
|
|
1237
1237
|
})]
|
|
1238
1238
|
}), /* @__PURE__ */ j(Ve, {
|
|
1239
|
-
icon:
|
|
1239
|
+
icon: d,
|
|
1240
1240
|
variant: "ghost",
|
|
1241
1241
|
size: "lg",
|
|
1242
1242
|
"aria-label": "Close",
|
|
@@ -1247,20 +1247,20 @@ var Et = (e = "regular", t = "auto") => [
|
|
|
1247
1247
|
className: R.description,
|
|
1248
1248
|
children: r
|
|
1249
1249
|
}),
|
|
1250
|
-
|
|
1251
|
-
!
|
|
1250
|
+
m,
|
|
1251
|
+
!g && /* @__PURE__ */ j(Ot, {}),
|
|
1252
1252
|
/* @__PURE__ */ M("div", {
|
|
1253
|
-
className: [R.footer,
|
|
1253
|
+
className: [R.footer, _ === "between" ? R["footer--between"] : ""].filter(Boolean).join(" "),
|
|
1254
1254
|
children: [/* @__PURE__ */ j(F, {
|
|
1255
1255
|
variant: "secondary",
|
|
1256
|
-
onClick:
|
|
1256
|
+
onClick: ee,
|
|
1257
1257
|
style: { borderColor: "transparent" },
|
|
1258
|
-
children:
|
|
1258
|
+
children: o
|
|
1259
1259
|
}), /* @__PURE__ */ j(F, {
|
|
1260
|
-
variant:
|
|
1261
|
-
onClick:
|
|
1262
|
-
loading:
|
|
1263
|
-
children:
|
|
1260
|
+
variant: y ? "destructive" : "primary",
|
|
1261
|
+
onClick: l,
|
|
1262
|
+
loading: u,
|
|
1263
|
+
children: s ?? (y ? "Delete" : "Confirm")
|
|
1264
1264
|
})]
|
|
1265
1265
|
})
|
|
1266
1266
|
]
|
|
@@ -1280,13 +1280,13 @@ var Et = (e = "regular", t = "auto") => [
|
|
|
1280
1280
|
cardTop: "_cardTop_88l3n_87",
|
|
1281
1281
|
description: "_description_88l3n_94",
|
|
1282
1282
|
actions: "_actions_88l3n_102"
|
|
1283
|
-
}, At = ({ icon: e, title: t, timestamp: n, read: r = !1, description: i, onDismiss:
|
|
1284
|
-
let
|
|
1283
|
+
}, At = ({ icon: e, title: t, timestamp: n, read: r = !1, description: i, onDismiss: a, dismissLabel: o = "Dismiss", actionLabel: s, onAction: c, className: l }) => {
|
|
1284
|
+
let u = i !== void 0, f = !r && !u, p = e ?? /* @__PURE__ */ j(b, {
|
|
1285
1285
|
size: 24,
|
|
1286
1286
|
strokeWidth: N(24)
|
|
1287
1287
|
});
|
|
1288
|
-
return
|
|
1289
|
-
className: [z.card,
|
|
1288
|
+
return u ? /* @__PURE__ */ M("div", {
|
|
1289
|
+
className: [z.card, l ?? ""].filter(Boolean).join(" "),
|
|
1290
1290
|
children: [/* @__PURE__ */ M("div", {
|
|
1291
1291
|
className: z.cardTop,
|
|
1292
1292
|
children: [
|
|
@@ -1305,27 +1305,27 @@ var Et = (e = "regular", t = "auto") => [
|
|
|
1305
1305
|
children: i
|
|
1306
1306
|
})]
|
|
1307
1307
|
}),
|
|
1308
|
-
|
|
1309
|
-
icon:
|
|
1308
|
+
a && /* @__PURE__ */ j(Ve, {
|
|
1309
|
+
icon: d,
|
|
1310
1310
|
variant: "ghost",
|
|
1311
1311
|
size: "sm",
|
|
1312
1312
|
"aria-label": "Close",
|
|
1313
|
-
onClick:
|
|
1313
|
+
onClick: a
|
|
1314
1314
|
})
|
|
1315
1315
|
]
|
|
1316
1316
|
}), /* @__PURE__ */ M("div", {
|
|
1317
1317
|
className: z.actions,
|
|
1318
|
-
children: [
|
|
1318
|
+
children: [a && /* @__PURE__ */ j(F, {
|
|
1319
1319
|
variant: "ghost",
|
|
1320
1320
|
size: "sm",
|
|
1321
|
-
onClick:
|
|
1322
|
-
children:
|
|
1323
|
-
}),
|
|
1321
|
+
onClick: a,
|
|
1322
|
+
children: o
|
|
1323
|
+
}), s && /* @__PURE__ */ j(F, {
|
|
1324
1324
|
variant: "secondary",
|
|
1325
1325
|
size: "sm",
|
|
1326
|
-
onClick:
|
|
1326
|
+
onClick: c,
|
|
1327
1327
|
style: { borderColor: "transparent" },
|
|
1328
|
-
children:
|
|
1328
|
+
children: s
|
|
1329
1329
|
})]
|
|
1330
1330
|
})]
|
|
1331
1331
|
}) : /* @__PURE__ */ M("div", {
|
|
@@ -1775,23 +1775,23 @@ var Lt = [
|
|
|
1775
1775
|
children: e
|
|
1776
1776
|
}, `in-${e}`)]
|
|
1777
1777
|
});
|
|
1778
|
-
}, qt = ({ quantity: e, onQuantityChange: t, min:
|
|
1779
|
-
let
|
|
1778
|
+
}, qt = ({ quantity: e, onQuantityChange: t, min: n = 1, max: r, label: i = "Quantity", className: a }) => {
|
|
1779
|
+
let o = e > n, s = r === void 0 || e < r, c = k.useRef(null), [u, d] = k.useState(!1), [f, p] = k.useState(String(e)), m = (e) => {
|
|
1780
1780
|
let t = e;
|
|
1781
|
-
return
|
|
1781
|
+
return n !== void 0 && (t = Math.max(n, t)), r !== void 0 && (t = Math.min(r, t)), t;
|
|
1782
1782
|
};
|
|
1783
1783
|
return /* @__PURE__ */ M("div", {
|
|
1784
|
-
className: [V.stepper,
|
|
1784
|
+
className: [V.stepper, a ?? ""].filter(Boolean).join(" "),
|
|
1785
1785
|
role: "group",
|
|
1786
|
-
"aria-label":
|
|
1786
|
+
"aria-label": i,
|
|
1787
1787
|
children: [
|
|
1788
1788
|
/* @__PURE__ */ j("button", {
|
|
1789
1789
|
type: "button",
|
|
1790
1790
|
className: V.stepBtn,
|
|
1791
|
-
disabled: !
|
|
1792
|
-
onClick: () => t?.(Math.max(
|
|
1791
|
+
disabled: !o,
|
|
1792
|
+
onClick: () => t?.(Math.max(n, e - 1)),
|
|
1793
1793
|
"aria-label": "Decrease quantity",
|
|
1794
|
-
children: /* @__PURE__ */ j(
|
|
1794
|
+
children: /* @__PURE__ */ j(x, {
|
|
1795
1795
|
size: 14,
|
|
1796
1796
|
strokeWidth: N(14)
|
|
1797
1797
|
})
|
|
@@ -1803,30 +1803,30 @@ var Lt = [
|
|
|
1803
1803
|
/* @__PURE__ */ M("span", {
|
|
1804
1804
|
className: V.stepValue,
|
|
1805
1805
|
children: [/* @__PURE__ */ j("input", {
|
|
1806
|
-
ref:
|
|
1806
|
+
ref: c,
|
|
1807
1807
|
type: "text",
|
|
1808
1808
|
inputMode: "numeric",
|
|
1809
|
-
size: Math.max((
|
|
1810
|
-
className: [V.stepInput,
|
|
1811
|
-
value:
|
|
1812
|
-
"aria-label":
|
|
1809
|
+
size: Math.max((u ? f : String(e)).length, 1),
|
|
1810
|
+
className: [V.stepInput, u ? "" : V.stepInputResting].filter(Boolean).join(" "),
|
|
1811
|
+
value: u ? f : String(e),
|
|
1812
|
+
"aria-label": i,
|
|
1813
1813
|
onFocus: (t) => {
|
|
1814
|
-
|
|
1814
|
+
p(String(e)), d(!0), t.target.select();
|
|
1815
1815
|
},
|
|
1816
|
-
onChange: (e) =>
|
|
1816
|
+
onChange: (e) => p(e.target.value.replace(/\D/g, "")),
|
|
1817
1817
|
onBlur: () => {
|
|
1818
|
-
|
|
1819
|
-
let n = Number.parseInt(
|
|
1818
|
+
d(!1);
|
|
1819
|
+
let n = Number.parseInt(f, 10);
|
|
1820
1820
|
if (!Number.isNaN(n)) {
|
|
1821
|
-
let r =
|
|
1821
|
+
let r = m(n);
|
|
1822
1822
|
r !== e && t?.(r);
|
|
1823
1823
|
}
|
|
1824
1824
|
},
|
|
1825
1825
|
onKeyDown: (t) => {
|
|
1826
|
-
t.key === "Enter" && (t.preventDefault(),
|
|
1826
|
+
t.key === "Enter" && (t.preventDefault(), c.current?.blur()), t.key === "Escape" && (p(String(e)), c.current?.blur());
|
|
1827
1827
|
}
|
|
1828
1828
|
}), /* @__PURE__ */ j("span", {
|
|
1829
|
-
className: [V.rollOverlay,
|
|
1829
|
+
className: [V.rollOverlay, u ? V.rollOverlayHidden : ""].filter(Boolean).join(" "),
|
|
1830
1830
|
"aria-hidden": "true",
|
|
1831
1831
|
children: /* @__PURE__ */ j(Kt, { value: e })
|
|
1832
1832
|
})]
|
|
@@ -1838,10 +1838,10 @@ var Lt = [
|
|
|
1838
1838
|
/* @__PURE__ */ j("button", {
|
|
1839
1839
|
type: "button",
|
|
1840
1840
|
className: V.stepBtn,
|
|
1841
|
-
disabled: !
|
|
1842
|
-
onClick: () => t?.(
|
|
1841
|
+
disabled: !s,
|
|
1842
|
+
onClick: () => t?.(r === void 0 ? e + 1 : Math.min(r, e + 1)),
|
|
1843
1843
|
"aria-label": "Increase quantity",
|
|
1844
|
-
children: /* @__PURE__ */ j(
|
|
1844
|
+
children: /* @__PURE__ */ j(l, {
|
|
1845
1845
|
size: 14,
|
|
1846
1846
|
strokeWidth: N(14)
|
|
1847
1847
|
})
|
|
@@ -1862,14 +1862,14 @@ var Lt = [
|
|
|
1862
1862
|
}, Yt = (e) => e.toLocaleString("en-US", {
|
|
1863
1863
|
style: "currency",
|
|
1864
1864
|
currency: "USD"
|
|
1865
|
-
}), Xt = ({ image: e, imageAlt: t, name:
|
|
1866
|
-
let
|
|
1865
|
+
}), Xt = ({ image: e, imageAlt: t, name: n, variant: r, price: i, compareAtPrice: a, quantity: o, onQuantityChange: s, minQuantity: c = 1, maxQuantity: l, onRemove: u, removeLabel: d = "Remove item", formatPrice: f = Yt, className: p }) => {
|
|
1866
|
+
let m = a !== void 0;
|
|
1867
1867
|
return /* @__PURE__ */ M("div", {
|
|
1868
|
-
className: [Jt.item,
|
|
1868
|
+
className: [Jt.item, p ?? ""].filter(Boolean).join(" "),
|
|
1869
1869
|
children: [
|
|
1870
1870
|
/* @__PURE__ */ j("img", {
|
|
1871
1871
|
src: e,
|
|
1872
|
-
alt: t ??
|
|
1872
|
+
alt: t ?? n,
|
|
1873
1873
|
className: Jt.thumb
|
|
1874
1874
|
}),
|
|
1875
1875
|
/* @__PURE__ */ M("div", {
|
|
@@ -1877,41 +1877,41 @@ var Lt = [
|
|
|
1877
1877
|
children: [
|
|
1878
1878
|
/* @__PURE__ */ j("p", {
|
|
1879
1879
|
className: Jt.name,
|
|
1880
|
-
children:
|
|
1880
|
+
children: n
|
|
1881
1881
|
}),
|
|
1882
|
-
|
|
1882
|
+
r && /* @__PURE__ */ j("p", {
|
|
1883
1883
|
className: Jt.variant,
|
|
1884
|
-
children:
|
|
1884
|
+
children: r
|
|
1885
1885
|
}),
|
|
1886
1886
|
/* @__PURE__ */ j(qt, {
|
|
1887
|
-
quantity:
|
|
1888
|
-
onQuantityChange:
|
|
1889
|
-
min:
|
|
1890
|
-
max:
|
|
1891
|
-
label: `Quantity for ${
|
|
1887
|
+
quantity: o,
|
|
1888
|
+
onQuantityChange: s,
|
|
1889
|
+
min: c,
|
|
1890
|
+
max: l,
|
|
1891
|
+
label: `Quantity for ${n}`
|
|
1892
1892
|
})
|
|
1893
1893
|
]
|
|
1894
1894
|
}),
|
|
1895
1895
|
/* @__PURE__ */ M("div", {
|
|
1896
1896
|
className: Jt.right,
|
|
1897
|
-
children: [
|
|
1897
|
+
children: [m ? /* @__PURE__ */ M("div", {
|
|
1898
1898
|
className: Jt.priceRow,
|
|
1899
1899
|
children: [/* @__PURE__ */ j("span", {
|
|
1900
1900
|
className: Jt.priceOriginal,
|
|
1901
|
-
children:
|
|
1901
|
+
children: f(a)
|
|
1902
1902
|
}), /* @__PURE__ */ j("span", {
|
|
1903
1903
|
className: Jt.priceSale,
|
|
1904
|
-
children:
|
|
1904
|
+
children: f(i)
|
|
1905
1905
|
})]
|
|
1906
1906
|
}) : /* @__PURE__ */ j("p", {
|
|
1907
1907
|
className: Jt.price,
|
|
1908
|
-
children:
|
|
1908
|
+
children: f(i)
|
|
1909
1909
|
}), /* @__PURE__ */ j(Ve, {
|
|
1910
|
-
icon:
|
|
1910
|
+
icon: x,
|
|
1911
1911
|
variant: "outline",
|
|
1912
1912
|
size: "sm",
|
|
1913
|
-
"aria-label":
|
|
1914
|
-
onClick:
|
|
1913
|
+
"aria-label": d,
|
|
1914
|
+
onClick: u
|
|
1915
1915
|
})]
|
|
1916
1916
|
})
|
|
1917
1917
|
]
|
|
@@ -1932,39 +1932,39 @@ var Lt = [
|
|
|
1932
1932
|
"Shipping",
|
|
1933
1933
|
"Payment",
|
|
1934
1934
|
"Confirmation"
|
|
1935
|
-
], $t = ({ steps:
|
|
1936
|
-
className: [Zt.steps,
|
|
1935
|
+
], $t = ({ steps: e = Qt, currentStep: t, className: n }) => /* @__PURE__ */ j("div", {
|
|
1936
|
+
className: [Zt.steps, n ?? ""].filter(Boolean).join(" "),
|
|
1937
1937
|
role: "list",
|
|
1938
|
-
children:
|
|
1939
|
-
let
|
|
1938
|
+
children: e.map((n, r) => {
|
|
1939
|
+
let i = r < t ? "completed" : r === t ? "active" : "upcoming", a = r === e.length - 1;
|
|
1940
1940
|
return /* @__PURE__ */ M(k.Fragment, { children: [/* @__PURE__ */ M("div", {
|
|
1941
1941
|
className: Zt.step,
|
|
1942
1942
|
role: "listitem",
|
|
1943
|
-
"aria-current":
|
|
1943
|
+
"aria-current": i === "active" ? "step" : void 0,
|
|
1944
1944
|
children: [/* @__PURE__ */ j("span", {
|
|
1945
1945
|
className: [
|
|
1946
1946
|
Zt.circle,
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1947
|
+
i === "completed" ? Zt.circleCompleted : "",
|
|
1948
|
+
i === "active" ? Zt.circleActive : "",
|
|
1949
|
+
i === "upcoming" ? Zt.circleUpcoming : ""
|
|
1950
1950
|
].filter(Boolean).join(" "),
|
|
1951
1951
|
"aria-hidden": "true",
|
|
1952
|
-
children: /* @__PURE__ */ j(
|
|
1952
|
+
children: /* @__PURE__ */ j(s, {
|
|
1953
1953
|
size: 14,
|
|
1954
1954
|
strokeWidth: N(14)
|
|
1955
1955
|
})
|
|
1956
1956
|
}), /* @__PURE__ */ j("span", {
|
|
1957
1957
|
className: [
|
|
1958
1958
|
Zt.label,
|
|
1959
|
-
|
|
1960
|
-
|
|
1959
|
+
i === "active" ? Zt.labelActive : "",
|
|
1960
|
+
i === "upcoming" ? Zt.labelUpcoming : ""
|
|
1961
1961
|
].filter(Boolean).join(" "),
|
|
1962
|
-
children:
|
|
1962
|
+
children: n
|
|
1963
1963
|
})]
|
|
1964
|
-
}), !
|
|
1964
|
+
}), !a && /* @__PURE__ */ j("span", {
|
|
1965
1965
|
className: Zt.connector,
|
|
1966
1966
|
"aria-hidden": "true"
|
|
1967
|
-
})] },
|
|
1967
|
+
})] }, n);
|
|
1968
1968
|
})
|
|
1969
1969
|
}), en = "#fafaf9", tn = "#141414", nn = (e, t, n) => {
|
|
1970
1970
|
let r = (e) => {
|
|
@@ -2011,35 +2011,35 @@ var Lt = [
|
|
|
2011
2011
|
ring: "_ring_1ykgu_41",
|
|
2012
2012
|
check: "_check_1ykgu_57",
|
|
2013
2013
|
strike: "_strike_1ykgu_70"
|
|
2014
|
-
}, un = ({ color:
|
|
2015
|
-
let
|
|
2014
|
+
}, un = ({ color: e, label: t, selected: n = !1, available: r = !0, onSelect: i, className: a }) => {
|
|
2015
|
+
let o = k.useMemo(() => cn(e), [e]);
|
|
2016
2016
|
return /* @__PURE__ */ M("button", {
|
|
2017
2017
|
type: "button",
|
|
2018
|
-
className: [ln.swatch,
|
|
2019
|
-
style: { "--swatch-color":
|
|
2020
|
-
disabled: !
|
|
2021
|
-
"aria-pressed":
|
|
2022
|
-
"aria-label":
|
|
2023
|
-
onClick:
|
|
2018
|
+
className: [ln.swatch, a ?? ""].filter(Boolean).join(" "),
|
|
2019
|
+
style: { "--swatch-color": e },
|
|
2020
|
+
disabled: !r,
|
|
2021
|
+
"aria-pressed": r ? n : void 0,
|
|
2022
|
+
"aria-label": r ? t : `${t} (out of stock)`,
|
|
2023
|
+
onClick: i,
|
|
2024
2024
|
children: [
|
|
2025
|
-
|
|
2025
|
+
n && r && /* @__PURE__ */ j("span", {
|
|
2026
2026
|
className: ln.ring,
|
|
2027
2027
|
"aria-hidden": "true"
|
|
2028
2028
|
}),
|
|
2029
2029
|
/* @__PURE__ */ j("span", {
|
|
2030
|
-
className: [ln.circle,
|
|
2030
|
+
className: [ln.circle, r ? "" : ln.circleUnavailable].filter(Boolean).join(" "),
|
|
2031
2031
|
"aria-hidden": "true"
|
|
2032
2032
|
}),
|
|
2033
|
-
|
|
2033
|
+
n && r && /* @__PURE__ */ j(s, {
|
|
2034
2034
|
size: 14,
|
|
2035
2035
|
strokeWidth: N(14),
|
|
2036
2036
|
className: ln.check,
|
|
2037
|
-
style: { color:
|
|
2037
|
+
style: { color: o },
|
|
2038
2038
|
"aria-hidden": "true"
|
|
2039
2039
|
}),
|
|
2040
|
-
!
|
|
2040
|
+
!r && /* @__PURE__ */ j("span", {
|
|
2041
2041
|
className: ln.strike,
|
|
2042
|
-
style: { background:
|
|
2042
|
+
style: { background: o },
|
|
2043
2043
|
"aria-hidden": "true"
|
|
2044
2044
|
})
|
|
2045
2045
|
]
|
|
@@ -2082,22 +2082,22 @@ var Lt = [
|
|
|
2082
2082
|
iconSaved: "_iconSaved_58k4v_27",
|
|
2083
2083
|
bounce: "_bounce_58k4v_40",
|
|
2084
2084
|
"wishlist-bounce": "_wishlist-bounce_58k4v_1"
|
|
2085
|
-
}, hn = ({ saved: e = !1, onToggle: t, label: n = "item", className:
|
|
2086
|
-
let [
|
|
2085
|
+
}, hn = ({ saved: e = !1, onToggle: t, label: n = "item", className: i }) => {
|
|
2086
|
+
let [a, o] = k.useState(!1);
|
|
2087
2087
|
return /* @__PURE__ */ j("button", {
|
|
2088
2088
|
type: "button",
|
|
2089
|
-
className: [mn.button,
|
|
2089
|
+
className: [mn.button, i ?? ""].filter(Boolean).join(" "),
|
|
2090
2090
|
"aria-pressed": e,
|
|
2091
2091
|
"aria-label": e ? `Remove ${n} from wishlist` : `Add ${n} to wishlist`,
|
|
2092
2092
|
onClick: () => {
|
|
2093
|
-
e ||
|
|
2093
|
+
e || o(!0), t?.(!e);
|
|
2094
2094
|
},
|
|
2095
|
-
children: /* @__PURE__ */ j(
|
|
2095
|
+
children: /* @__PURE__ */ j(r, {
|
|
2096
2096
|
size: 16,
|
|
2097
2097
|
strokeWidth: N(16),
|
|
2098
|
-
className: [e ? mn.iconSaved : mn.icon,
|
|
2098
|
+
className: [e ? mn.iconSaved : mn.icon, a ? mn.bounce : ""].filter(Boolean).join(" "),
|
|
2099
2099
|
fill: e ? "currentColor" : "none",
|
|
2100
|
-
onAnimationEnd: () =>
|
|
2100
|
+
onAnimationEnd: () => o(!1)
|
|
2101
2101
|
})
|
|
2102
2102
|
});
|
|
2103
2103
|
}, H = {
|
|
@@ -2123,8 +2123,8 @@ var Lt = [
|
|
|
2123
2123
|
}, gn = (e) => e.toLocaleString("en-US", {
|
|
2124
2124
|
style: "currency",
|
|
2125
2125
|
currency: "USD"
|
|
2126
|
-
}), _n = ({ image: e, imageAlt: t, name:
|
|
2127
|
-
let v =
|
|
2126
|
+
}), _n = ({ image: e, imageAlt: t, name: r, description: i, price: a, compareAtPrice: o, rating: s, reviewCount: c, colors: l = [], onColorSelect: u, inStock: d = !0, wishlisted: f = !1, onWishlistToggle: p, onAddItem: m, addItemLabel: h = "Add Item", formatPrice: g = gn, className: _ }) => {
|
|
2127
|
+
let v = o !== void 0, y = v ? Math.ceil((1 - a / o) * 100) : 0, b = s === void 0 ? 0 : Math.round(s);
|
|
2128
2128
|
return /* @__PURE__ */ M("div", {
|
|
2129
2129
|
className: [H.card, _ ?? ""].filter(Boolean).join(" "),
|
|
2130
2130
|
children: [/* @__PURE__ */ M("div", {
|
|
@@ -2132,10 +2132,10 @@ var Lt = [
|
|
|
2132
2132
|
children: [
|
|
2133
2133
|
/* @__PURE__ */ j("img", {
|
|
2134
2134
|
src: e,
|
|
2135
|
-
alt: t ??
|
|
2136
|
-
className: [H.image,
|
|
2135
|
+
alt: t ?? r,
|
|
2136
|
+
className: [H.image, d ? "" : H.imageDimmed].filter(Boolean).join(" ")
|
|
2137
2137
|
}),
|
|
2138
|
-
v &&
|
|
2138
|
+
v && d && /* @__PURE__ */ M(Gt, {
|
|
2139
2139
|
variant: "danger",
|
|
2140
2140
|
emphasis: "solid",
|
|
2141
2141
|
className: H.saleBadge,
|
|
@@ -2145,13 +2145,13 @@ var Lt = [
|
|
|
2145
2145
|
"%"
|
|
2146
2146
|
]
|
|
2147
2147
|
}),
|
|
2148
|
-
|
|
2149
|
-
saved:
|
|
2150
|
-
label:
|
|
2148
|
+
d && /* @__PURE__ */ j(hn, {
|
|
2149
|
+
saved: f,
|
|
2150
|
+
label: r,
|
|
2151
2151
|
className: H.wishlistBtn,
|
|
2152
2152
|
onToggle: p
|
|
2153
2153
|
}),
|
|
2154
|
-
!
|
|
2154
|
+
!d && /* @__PURE__ */ j("span", {
|
|
2155
2155
|
className: H.outOfStockLabel,
|
|
2156
2156
|
children: "Out of stock"
|
|
2157
2157
|
})
|
|
@@ -2159,11 +2159,11 @@ var Lt = [
|
|
|
2159
2159
|
}), /* @__PURE__ */ M("div", {
|
|
2160
2160
|
className: H.body,
|
|
2161
2161
|
children: [
|
|
2162
|
-
|
|
2162
|
+
s !== void 0 && /* @__PURE__ */ j("div", {
|
|
2163
2163
|
className: H.rating,
|
|
2164
2164
|
role: "img",
|
|
2165
|
-
"aria-label": `Rated ${
|
|
2166
|
-
children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ j(
|
|
2165
|
+
"aria-label": `Rated ${s} out of 5${c ? ` (${c} reviews)` : ""}`,
|
|
2166
|
+
children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ j(n, {
|
|
2167
2167
|
size: 16,
|
|
2168
2168
|
strokeWidth: N(16),
|
|
2169
2169
|
className: t < b ? H.starFilled : H.starEmpty,
|
|
@@ -2174,38 +2174,38 @@ var Lt = [
|
|
|
2174
2174
|
className: H.titleRow,
|
|
2175
2175
|
children: [/* @__PURE__ */ j("p", {
|
|
2176
2176
|
className: H.name,
|
|
2177
|
-
children:
|
|
2177
|
+
children: r
|
|
2178
2178
|
}), /* @__PURE__ */ M("div", {
|
|
2179
2179
|
className: H.priceRow,
|
|
2180
2180
|
children: [v && /* @__PURE__ */ j("span", {
|
|
2181
2181
|
className: H.priceOriginal,
|
|
2182
|
-
children: g(
|
|
2182
|
+
children: g(o)
|
|
2183
2183
|
}), /* @__PURE__ */ j("span", {
|
|
2184
2184
|
className: H.price,
|
|
2185
|
-
children: g(
|
|
2185
|
+
children: g(a)
|
|
2186
2186
|
})]
|
|
2187
2187
|
})]
|
|
2188
2188
|
}),
|
|
2189
|
-
|
|
2189
|
+
i && /* @__PURE__ */ j("p", {
|
|
2190
2190
|
className: H.description,
|
|
2191
|
-
children:
|
|
2191
|
+
children: i
|
|
2192
2192
|
}),
|
|
2193
|
-
|
|
2193
|
+
l.length > 0 && /* @__PURE__ */ j("div", {
|
|
2194
2194
|
className: H.swatches,
|
|
2195
2195
|
role: "group",
|
|
2196
2196
|
"aria-label": "Color",
|
|
2197
|
-
children:
|
|
2197
|
+
children: l.map((e) => /* @__PURE__ */ j(un, {
|
|
2198
2198
|
...e,
|
|
2199
|
-
onSelect: () =>
|
|
2199
|
+
onSelect: () => u?.(e.id ?? e.label)
|
|
2200
2200
|
}, e.id ?? e.label))
|
|
2201
2201
|
}),
|
|
2202
2202
|
/* @__PURE__ */ j(F, {
|
|
2203
2203
|
variant: "primary",
|
|
2204
2204
|
size: "md",
|
|
2205
|
-
disabled: !
|
|
2205
|
+
disabled: !d,
|
|
2206
2206
|
className: H.addButton,
|
|
2207
2207
|
onClick: m,
|
|
2208
|
-
children:
|
|
2208
|
+
children: d ? h : "Out of stock"
|
|
2209
2209
|
})
|
|
2210
2210
|
]
|
|
2211
2211
|
})]
|
|
@@ -2310,27 +2310,27 @@ var Lt = [
|
|
|
2310
2310
|
label: "_label_1snsi_29",
|
|
2311
2311
|
value: "_value_1snsi_38",
|
|
2312
2312
|
count: "_count_1snsi_43"
|
|
2313
|
-
}, Sn = (e) => e.toLocaleString("en-US"), Cn = ({ rating: e, reviewCount:
|
|
2314
|
-
let s = Math.max(0, Math.min(5, e)), c = Math.round(s * 2) / 2, l = Math.floor(c), u = c - l === .5, d = 5 - l - !!u,
|
|
2313
|
+
}, Sn = (e) => e.toLocaleString("en-US"), Cn = ({ rating: e, reviewCount: t, showLabel: r = !0, orientation: i = "horizontal", formatReviewCount: a = Sn, className: o }) => {
|
|
2314
|
+
let s = Math.max(0, Math.min(5, e)), c = Math.round(s * 2) / 2, l = Math.floor(c), u = c - l === .5, d = 5 - l - !!u, f = /* @__PURE__ */ M("div", {
|
|
2315
2315
|
className: xn.stars,
|
|
2316
2316
|
role: "img",
|
|
2317
2317
|
"aria-label": `${s} out of 5 stars`,
|
|
2318
2318
|
children: [
|
|
2319
|
-
Array.from({ length: l }, (e, t) => /* @__PURE__ */ j(
|
|
2319
|
+
Array.from({ length: l }, (e, t) => /* @__PURE__ */ j(n, {
|
|
2320
2320
|
size: 24,
|
|
2321
2321
|
strokeWidth: N(24),
|
|
2322
2322
|
className: xn.starFull,
|
|
2323
2323
|
fill: "currentColor",
|
|
2324
2324
|
"aria-hidden": "true"
|
|
2325
2325
|
}, `full-${t}`)),
|
|
2326
|
-
u && /* @__PURE__ */ j(
|
|
2326
|
+
u && /* @__PURE__ */ j(p, {
|
|
2327
2327
|
size: 24,
|
|
2328
2328
|
strokeWidth: N(24),
|
|
2329
2329
|
className: xn.starFull,
|
|
2330
2330
|
fill: "currentColor",
|
|
2331
2331
|
"aria-hidden": "true"
|
|
2332
2332
|
}),
|
|
2333
|
-
Array.from({ length: d }, (e, t) => /* @__PURE__ */ j(
|
|
2333
|
+
Array.from({ length: d }, (e, t) => /* @__PURE__ */ j(n, {
|
|
2334
2334
|
size: 24,
|
|
2335
2335
|
strokeWidth: N(24),
|
|
2336
2336
|
className: xn.starEmpty,
|
|
@@ -2342,11 +2342,11 @@ var Lt = [
|
|
|
2342
2342
|
children: [/* @__PURE__ */ j("span", {
|
|
2343
2343
|
className: xn.value,
|
|
2344
2344
|
children: s.toFixed(1)
|
|
2345
|
-
}),
|
|
2345
|
+
}), t !== void 0 && /* @__PURE__ */ M("span", {
|
|
2346
2346
|
className: xn.count,
|
|
2347
2347
|
children: [
|
|
2348
2348
|
"(",
|
|
2349
|
-
a(
|
|
2349
|
+
a(t),
|
|
2350
2350
|
" reviews)"
|
|
2351
2351
|
]
|
|
2352
2352
|
})]
|
|
@@ -2357,10 +2357,10 @@ var Lt = [
|
|
|
2357
2357
|
].filter(Boolean).join(" ");
|
|
2358
2358
|
return i === "horizontal-reverse" ? /* @__PURE__ */ M("div", {
|
|
2359
2359
|
className: h,
|
|
2360
|
-
children: [m,
|
|
2360
|
+
children: [m, f]
|
|
2361
2361
|
}) : /* @__PURE__ */ M("div", {
|
|
2362
2362
|
className: h,
|
|
2363
|
-
children: [
|
|
2363
|
+
children: [f, m]
|
|
2364
2364
|
});
|
|
2365
2365
|
}, wn = ({ quantity: e, lowStockThreshold: t = 5, label: n, className: r }) => {
|
|
2366
2366
|
let i = e <= 0, a = !i && e <= t, o = i ? "danger" : a ? "warning" : "success", s = i ? "Out of stock" : a ? `Only ${e} left` : "In stock";
|
|
@@ -2663,7 +2663,7 @@ var Lt = [
|
|
|
2663
2663
|
"M1.42578 22.5264C23.2117 23.2619 40.7366 40.7874 41.4727 62.5732C38.4791 63.4997 35.298 64 32 64C31.158 64 30.3237 63.9662 29.498 63.9023C29.4455 47.6871 16.3121 34.553 0.0966797 34.501C0.0328793 33.6757 0 32.8417 0 32C0 28.7018 0.499182 25.5201 1.42578 22.5264Z",
|
|
2664
2664
|
"M0.889648 39.5176C13.7129 39.9753 24.0232 50.2863 24.4814 63.1094C12.8474 60.3077 3.69089 51.1518 0.889648 39.5176Z",
|
|
2665
2665
|
"M32 0C49.6731 0 64 14.3269 64 32C64 44.5026 56.8286 55.3282 46.376 60.5938C44.7132 37.6274 26.3718 19.2853 3.40527 17.623C8.6709 7.17063 19.4975 0 32 0Z"
|
|
2666
|
-
], Ln = ({ size: e }) => /* @__PURE__ */ j("svg", {
|
|
2666
|
+
], Ln = ({ size: e, color: t }) => /* @__PURE__ */ j("svg", {
|
|
2667
2667
|
width: e ?? "100%",
|
|
2668
2668
|
height: e ?? "100%",
|
|
2669
2669
|
viewBox: "0 0 64 64",
|
|
@@ -2673,7 +2673,7 @@ var Lt = [
|
|
|
2673
2673
|
"data-sakani-logo": "",
|
|
2674
2674
|
children: In.map((e) => /* @__PURE__ */ j("path", {
|
|
2675
2675
|
d: e,
|
|
2676
|
-
fill: "var(--color-fg-default)"
|
|
2676
|
+
fill: t ?? "var(--color-fg-default)"
|
|
2677
2677
|
}, e))
|
|
2678
2678
|
}), Rn = {
|
|
2679
2679
|
root: "_root_3bf2n_1",
|
|
@@ -2958,11 +2958,12 @@ var Lt = [
|
|
|
2958
2958
|
"list--button": "_list--button_tszff_38",
|
|
2959
2959
|
chip: "_chip_tszff_41"
|
|
2960
2960
|
}, Kn = {
|
|
2961
|
-
highlight: "
|
|
2962
|
-
visible: "
|
|
2963
|
-
glide: "
|
|
2964
|
-
|
|
2965
|
-
|
|
2961
|
+
highlight: "_highlight_2b588_15",
|
|
2962
|
+
visible: "_visible_2b588_24",
|
|
2963
|
+
glide: "_glide_2b588_28",
|
|
2964
|
+
track: "_track_2b588_39"
|
|
2965
|
+
}, qn = /height|width|grid-template|padding|margin|^(top|bottom|left|right|inset)|gap|flex/, Jn = (e) => e.getAttribute("data-hover-item") === "off" || e.getAttribute("aria-disabled") === "true" || e.disabled === !0;
|
|
2966
|
+
function Yn(e, t) {
|
|
2966
2967
|
let n = 0, r = 0, i = e;
|
|
2967
2968
|
for (; i && i !== t;) {
|
|
2968
2969
|
n += i.offsetLeft, r += i.offsetTop;
|
|
@@ -2981,7 +2982,7 @@ function Jn(e, t) {
|
|
|
2981
2982
|
tone: a.getPropertyValue("--hover-tone").trim()
|
|
2982
2983
|
};
|
|
2983
2984
|
}
|
|
2984
|
-
function
|
|
2985
|
+
function Xn() {
|
|
2985
2986
|
let e = k.useRef(null), [t, n] = k.useState(null), r = k.useCallback((t) => {
|
|
2986
2987
|
e.current = t, n(t);
|
|
2987
2988
|
}, []), i = k.useRef(null), a = k.useRef(!1), o = k.useRef(null), s = k.useRef(!1), c = k.useRef(null), [l, u] = k.useState(null), [d, f] = k.useState(!1), [p, m] = k.useState(!1), h = k.useCallback(() => {
|
|
@@ -2990,7 +2991,7 @@ function Yn() {
|
|
|
2990
2991
|
let n = e.current;
|
|
2991
2992
|
if (!n) return;
|
|
2992
2993
|
n !== c.current && (c.current = n, a.current = !1), i.current = t;
|
|
2993
|
-
let r =
|
|
2994
|
+
let r = Yn(t, n);
|
|
2994
2995
|
if (a.current) {
|
|
2995
2996
|
u(r);
|
|
2996
2997
|
return;
|
|
@@ -3009,7 +3010,7 @@ function Yn() {
|
|
|
3009
3010
|
if (!n) return;
|
|
3010
3011
|
let r = t.target.closest("[data-hover-item]");
|
|
3011
3012
|
if (!(!r || r.closest("[data-hover-group]") !== n)) {
|
|
3012
|
-
if (
|
|
3013
|
+
if (Jn(r)) {
|
|
3013
3014
|
h();
|
|
3014
3015
|
return;
|
|
3015
3016
|
}
|
|
@@ -3026,11 +3027,36 @@ function Yn() {
|
|
|
3026
3027
|
h();
|
|
3027
3028
|
return;
|
|
3028
3029
|
}
|
|
3029
|
-
u(
|
|
3030
|
+
u(Yn(t, e));
|
|
3030
3031
|
}
|
|
3031
3032
|
}, r = new ResizeObserver(n);
|
|
3032
|
-
|
|
3033
|
-
|
|
3033
|
+
r.observe(e), e.addEventListener("scroll", n, !0);
|
|
3034
|
+
let s = 0, c = 0, l = () => {
|
|
3035
|
+
c = 0;
|
|
3036
|
+
let t = i.current, n = o.current;
|
|
3037
|
+
if (!t || !n || !a.current || !e.contains(t)) {
|
|
3038
|
+
n?.classList.remove(Kn.track);
|
|
3039
|
+
return;
|
|
3040
|
+
}
|
|
3041
|
+
let r = Yn(t, e);
|
|
3042
|
+
if (n.style.transform = `translate(${r.x}px, ${r.y}px)`, n.style.width = `${r.w}px`, n.style.height = `${r.h}px`, performance.now() < s) {
|
|
3043
|
+
c = requestAnimationFrame(l);
|
|
3044
|
+
return;
|
|
3045
|
+
}
|
|
3046
|
+
n.classList.remove(Kn.track), u(r);
|
|
3047
|
+
}, d = (e) => Math.max(0, ...e.split(",").map((e) => (e.trim().endsWith("ms") ? parseFloat(e) : parseFloat(e) * 1e3) || 0)), f = (e, t) => {
|
|
3048
|
+
e === o.current || !a.current || (s = Math.max(s, performance.now() + t + 60), c ||= (o.current?.classList.add(Kn.track), requestAnimationFrame(l)));
|
|
3049
|
+
}, p = (e) => {
|
|
3050
|
+
let t = e;
|
|
3051
|
+
if (!qn.test(t.propertyName)) return;
|
|
3052
|
+
let n = getComputedStyle(t.target);
|
|
3053
|
+
f(t.target, d(n.transitionDuration) + d(n.transitionDelay));
|
|
3054
|
+
}, m = (e) => {
|
|
3055
|
+
let t = getComputedStyle(e.target);
|
|
3056
|
+
t.animationIterationCount.includes("infinite") || f(e.target, d(t.animationDuration) + d(t.animationDelay));
|
|
3057
|
+
};
|
|
3058
|
+
return e.addEventListener("transitionrun", p), e.addEventListener("animationstart", m), () => {
|
|
3059
|
+
r.disconnect(), e.removeEventListener("scroll", n, !0), e.removeEventListener("transitionrun", p), e.removeEventListener("animationstart", m), c && cancelAnimationFrame(c);
|
|
3034
3060
|
};
|
|
3035
3061
|
}, [t, h]);
|
|
3036
3062
|
let v = /* @__PURE__ */ j("span", {
|
|
@@ -3049,7 +3075,7 @@ function Yn() {
|
|
|
3049
3075
|
background: l.tone || void 0
|
|
3050
3076
|
} : void 0
|
|
3051
3077
|
}), y = k.useCallback((e) => {
|
|
3052
|
-
e && !
|
|
3078
|
+
e && !Jn(e) ? g(e) : h();
|
|
3053
3079
|
}, [h, g]);
|
|
3054
3080
|
return {
|
|
3055
3081
|
ref: r,
|
|
@@ -3062,8 +3088,8 @@ function Yn() {
|
|
|
3062
3088
|
showItem: y
|
|
3063
3089
|
};
|
|
3064
3090
|
}
|
|
3065
|
-
var
|
|
3066
|
-
let { ref: r, groupProps: i, highlight: a } =
|
|
3091
|
+
var Zn = ({ children: e, style: t, ...n }) => {
|
|
3092
|
+
let { ref: r, groupProps: i, highlight: a } = Xn();
|
|
3067
3093
|
return /* @__PURE__ */ M("div", {
|
|
3068
3094
|
ref: r,
|
|
3069
3095
|
...n,
|
|
@@ -3074,7 +3100,7 @@ var Xn = ({ children: e, style: t, ...n }) => {
|
|
|
3074
3100
|
},
|
|
3075
3101
|
children: [a, e]
|
|
3076
3102
|
});
|
|
3077
|
-
},
|
|
3103
|
+
}, Qn = ({ size: e }) => /* @__PURE__ */ j("span", {
|
|
3078
3104
|
className: Gn.separator,
|
|
3079
3105
|
"aria-hidden": "true",
|
|
3080
3106
|
children: /* @__PURE__ */ j("svg", {
|
|
@@ -3088,8 +3114,8 @@ var Xn = ({ children: e, style: t, ...n }) => {
|
|
|
3088
3114
|
height: e,
|
|
3089
3115
|
children: /* @__PURE__ */ j("path", { d: "m9 18 6-6-6-6" })
|
|
3090
3116
|
})
|
|
3091
|
-
}),
|
|
3092
|
-
let r = t === "button", i =
|
|
3117
|
+
}), $n = ({ items: e, variant: t = "text", className: n }) => {
|
|
3118
|
+
let r = t === "button", i = Xn();
|
|
3093
3119
|
return /* @__PURE__ */ j("nav", {
|
|
3094
3120
|
"aria-label": "Breadcrumb",
|
|
3095
3121
|
className: [Gn.breadcrumb, n ?? ""].filter(Boolean).join(" "),
|
|
@@ -3115,26 +3141,43 @@ var Xn = ({ children: e, style: t, ...n }) => {
|
|
|
3115
3141
|
"data-hover-item": "",
|
|
3116
3142
|
className: a,
|
|
3117
3143
|
children: t.label
|
|
3118
|
-
}), !i && /* @__PURE__ */ j(
|
|
3144
|
+
}), !i && /* @__PURE__ */ j(Qn, { size: r ? 14 : 16 })]
|
|
3119
3145
|
}, n);
|
|
3120
3146
|
})]
|
|
3121
3147
|
})
|
|
3122
3148
|
});
|
|
3123
|
-
},
|
|
3149
|
+
}, er = {
|
|
3124
3150
|
meta: "_meta_g1mpv_2",
|
|
3125
3151
|
meta__icon: "_meta__icon_g1mpv_3",
|
|
3126
3152
|
meta__label: "_meta__label_g1mpv_4"
|
|
3127
|
-
},
|
|
3128
|
-
className: [
|
|
3153
|
+
}, tr = ({ icon: e, children: t, className: n }) => /* @__PURE__ */ M("span", {
|
|
3154
|
+
className: [er.meta, n ?? ""].filter(Boolean).join(" "),
|
|
3129
3155
|
children: [/* @__PURE__ */ j("span", {
|
|
3130
|
-
className:
|
|
3156
|
+
className: er.meta__icon,
|
|
3131
3157
|
"aria-hidden": "true",
|
|
3132
3158
|
children: e
|
|
3133
3159
|
}), /* @__PURE__ */ j("span", {
|
|
3134
|
-
className:
|
|
3160
|
+
className: er.meta__label,
|
|
3135
3161
|
children: t
|
|
3136
3162
|
})]
|
|
3137
|
-
}),
|
|
3163
|
+
}), nr = {
|
|
3164
|
+
skeleton: "_skeleton_94hr3_9",
|
|
3165
|
+
"skeleton-shimmer": "_skeleton-shimmer_94hr3_1",
|
|
3166
|
+
"skeleton--text": "_skeleton--text_94hr3_22",
|
|
3167
|
+
"skeleton--rect": "_skeleton--rect_94hr3_29",
|
|
3168
|
+
"skeleton--circle": "_skeleton--circle_94hr3_35"
|
|
3169
|
+
}, rr = ({ variant: e = "text", width: t, height: n, className: r }) => {
|
|
3170
|
+
let i = {};
|
|
3171
|
+
return t !== void 0 && (i.width = typeof t == "number" ? `${t}px` : t), n !== void 0 && (i.height = typeof n == "number" ? `${n}px` : n), /* @__PURE__ */ j("span", {
|
|
3172
|
+
"aria-hidden": "true",
|
|
3173
|
+
className: [
|
|
3174
|
+
nr.skeleton,
|
|
3175
|
+
nr[`skeleton--${e}`],
|
|
3176
|
+
r ?? ""
|
|
3177
|
+
].filter(Boolean).join(" "),
|
|
3178
|
+
style: i
|
|
3179
|
+
});
|
|
3180
|
+
}, ir = {
|
|
3138
3181
|
composer: "_composer_1dwtx_2",
|
|
3139
3182
|
"composer--typing": "_composer--typing_1dwtx_15",
|
|
3140
3183
|
input: "_input_1dwtx_22",
|
|
@@ -3148,11 +3191,11 @@ var Xn = ({ children: e, style: t, ...n }) => {
|
|
|
3148
3191
|
row: "_row_1dwtx_36",
|
|
3149
3192
|
icon: "_icon_1dwtx_37",
|
|
3150
3193
|
send: "_send_1dwtx_52"
|
|
3151
|
-
},
|
|
3152
|
-
let
|
|
3194
|
+
}, ar = ({ state: e = "default", value: t, placeholder: n = "Message...", onChange: r, onSend: i, onAttachmentsChange: a, uploadName: o, uploadProgress: s = 0, onCancelUpload: c, className: l }) => {
|
|
3195
|
+
let u = e === "disabled", [f, p] = k.useState(""), [m, h] = k.useState(!1), [g, y] = k.useState({
|
|
3153
3196
|
top: 0,
|
|
3154
3197
|
right: 0
|
|
3155
|
-
}), [b, x] = k.useState([]), S = k.useRef(null), w = k.useRef(null), T = k.useRef(null), D = k.useRef(null), O = t === void 0 ? f : t, ee = !
|
|
3198
|
+
}), [b, x] = k.useState([]), S = k.useRef(null), w = k.useRef(null), T = k.useRef(null), D = k.useRef(null), O = t === void 0 ? f : t, ee = !u && (O.trim().length > 0 || e === "typing" || b.length > 0), te = () => {
|
|
3156
3199
|
w.current?.click();
|
|
3157
3200
|
}, ne = (e) => {
|
|
3158
3201
|
let t = e.target.files;
|
|
@@ -3195,41 +3238,41 @@ var Xn = ({ children: e, style: t, ...n }) => {
|
|
|
3195
3238
|
document.removeEventListener("mousedown", e);
|
|
3196
3239
|
};
|
|
3197
3240
|
}, [m]), k.useEffect(() => {
|
|
3198
|
-
|
|
3199
|
-
}, [b,
|
|
3241
|
+
a?.(b);
|
|
3242
|
+
}, [b, a]), /* @__PURE__ */ M("div", {
|
|
3200
3243
|
className: [
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3244
|
+
ir.composer,
|
|
3245
|
+
ir[`composer--${e}`],
|
|
3246
|
+
l ?? ""
|
|
3204
3247
|
].filter(Boolean).join(" "),
|
|
3205
3248
|
children: [
|
|
3206
3249
|
e === "uploading" && /* @__PURE__ */ M("div", {
|
|
3207
|
-
className:
|
|
3250
|
+
className: ir.upload,
|
|
3208
3251
|
children: [
|
|
3209
3252
|
/* @__PURE__ */ j(_, {
|
|
3210
3253
|
size: 16,
|
|
3211
3254
|
strokeWidth: N(16),
|
|
3212
|
-
className:
|
|
3255
|
+
className: ir.upload__icon,
|
|
3213
3256
|
"aria-hidden": "true"
|
|
3214
3257
|
}),
|
|
3215
3258
|
/* @__PURE__ */ M("div", {
|
|
3216
|
-
className:
|
|
3259
|
+
className: ir.upload__body,
|
|
3217
3260
|
children: [/* @__PURE__ */ j("span", {
|
|
3218
|
-
className:
|
|
3219
|
-
children:
|
|
3261
|
+
className: ir.upload__name,
|
|
3262
|
+
children: o
|
|
3220
3263
|
}), /* @__PURE__ */ j("div", {
|
|
3221
|
-
className:
|
|
3264
|
+
className: ir.upload__track,
|
|
3222
3265
|
children: /* @__PURE__ */ j("div", {
|
|
3223
|
-
className:
|
|
3224
|
-
style: { width: `${
|
|
3266
|
+
className: ir.upload__fill,
|
|
3267
|
+
style: { width: `${s}%` }
|
|
3225
3268
|
})
|
|
3226
3269
|
})]
|
|
3227
3270
|
}),
|
|
3228
3271
|
/* @__PURE__ */ j(Ve, {
|
|
3229
|
-
icon:
|
|
3272
|
+
icon: d,
|
|
3230
3273
|
variant: "ghost",
|
|
3231
3274
|
size: "md",
|
|
3232
|
-
onClick:
|
|
3275
|
+
onClick: c,
|
|
3233
3276
|
"aria-label": "Cancel upload"
|
|
3234
3277
|
})
|
|
3235
3278
|
]
|
|
@@ -3314,23 +3357,23 @@ var Xn = ({ children: e, style: t, ...n }) => {
|
|
|
3314
3357
|
style: { display: "none" }
|
|
3315
3358
|
}),
|
|
3316
3359
|
/* @__PURE__ */ M("div", {
|
|
3317
|
-
className:
|
|
3360
|
+
className: ir.row,
|
|
3318
3361
|
children: [
|
|
3319
3362
|
/* @__PURE__ */ j(Ve, {
|
|
3320
3363
|
icon: v,
|
|
3321
3364
|
variant: "ghost",
|
|
3322
3365
|
size: "sm",
|
|
3323
3366
|
onClick: te,
|
|
3324
|
-
disabled:
|
|
3367
|
+
disabled: u,
|
|
3325
3368
|
"aria-label": "Attach file"
|
|
3326
3369
|
}),
|
|
3327
3370
|
/* @__PURE__ */ j("input", {
|
|
3328
3371
|
ref: S,
|
|
3329
3372
|
type: "text",
|
|
3330
|
-
className:
|
|
3373
|
+
className: ir.input,
|
|
3331
3374
|
value: O,
|
|
3332
|
-
placeholder:
|
|
3333
|
-
disabled:
|
|
3375
|
+
placeholder: u ? "You can't reply to this conversation" : n,
|
|
3376
|
+
disabled: u,
|
|
3334
3377
|
onChange: (e) => {
|
|
3335
3378
|
t === void 0 && p(e.target.value), r?.(e.target.value);
|
|
3336
3379
|
},
|
|
@@ -3344,10 +3387,10 @@ var Xn = ({ children: e, style: t, ...n }) => {
|
|
|
3344
3387
|
variant: "ghost",
|
|
3345
3388
|
size: "sm",
|
|
3346
3389
|
onClick: ie,
|
|
3347
|
-
disabled:
|
|
3390
|
+
disabled: u,
|
|
3348
3391
|
"aria-label": "Add emoji"
|
|
3349
3392
|
}),
|
|
3350
|
-
m && !
|
|
3393
|
+
m && !u && we.createPortal(/* @__PURE__ */ j("div", {
|
|
3351
3394
|
ref: D,
|
|
3352
3395
|
style: {
|
|
3353
3396
|
position: "fixed",
|
|
@@ -3413,7 +3456,7 @@ var Xn = ({ children: e, style: t, ...n }) => {
|
|
|
3413
3456
|
})
|
|
3414
3457
|
]
|
|
3415
3458
|
});
|
|
3416
|
-
},
|
|
3459
|
+
}, or = {
|
|
3417
3460
|
wrapper: "_wrapper_1nmcn_3",
|
|
3418
3461
|
"wrapper--disabled": "_wrapper--disabled_1nmcn_11",
|
|
3419
3462
|
input: "_input_1nmcn_14",
|
|
@@ -3425,16 +3468,16 @@ var Xn = ({ children: e, style: t, ...n }) => {
|
|
|
3425
3468
|
text__description: "_text__description_1nmcn_73",
|
|
3426
3469
|
checkbox: "_checkbox_1nmcn_77",
|
|
3427
3470
|
"wrapper--withDescription": "_wrapper--withDescription_1nmcn_81"
|
|
3428
|
-
},
|
|
3471
|
+
}, sr = k.forwardRef(({ label: e, description: t, indeterminate: n, disabled: r, id: i, className: a, ...o }, s) => {
|
|
3429
3472
|
let c = k.useId(), l = i ?? c, u = k.useRef(null);
|
|
3430
3473
|
return k.useImperativeHandle(s, () => u.current), k.useEffect(() => {
|
|
3431
3474
|
u.current && (u.current.indeterminate = !!n);
|
|
3432
3475
|
}, [n]), /* @__PURE__ */ M("label", {
|
|
3433
3476
|
htmlFor: l,
|
|
3434
3477
|
className: [
|
|
3435
|
-
|
|
3436
|
-
t ?
|
|
3437
|
-
r ?
|
|
3478
|
+
or.wrapper,
|
|
3479
|
+
t ? or["wrapper--withDescription"] : "",
|
|
3480
|
+
r ? or["wrapper--disabled"] : "",
|
|
3438
3481
|
a ?? ""
|
|
3439
3482
|
].filter(Boolean).join(" "),
|
|
3440
3483
|
children: [
|
|
@@ -3443,14 +3486,14 @@ var Xn = ({ children: e, style: t, ...n }) => {
|
|
|
3443
3486
|
id: l,
|
|
3444
3487
|
type: "checkbox",
|
|
3445
3488
|
disabled: r,
|
|
3446
|
-
className:
|
|
3489
|
+
className: or.input,
|
|
3447
3490
|
...o
|
|
3448
3491
|
}),
|
|
3449
3492
|
/* @__PURE__ */ M("span", {
|
|
3450
|
-
className:
|
|
3493
|
+
className: or.box,
|
|
3451
3494
|
"aria-hidden": "true",
|
|
3452
3495
|
children: [/* @__PURE__ */ j("svg", {
|
|
3453
|
-
className:
|
|
3496
|
+
className: or.check,
|
|
3454
3497
|
width: 12,
|
|
3455
3498
|
height: 12,
|
|
3456
3499
|
viewBox: "0 0 24 24",
|
|
@@ -3460,22 +3503,22 @@ var Xn = ({ children: e, style: t, ...n }) => {
|
|
|
3460
3503
|
strokeLinecap: "round",
|
|
3461
3504
|
strokeLinejoin: "round",
|
|
3462
3505
|
children: /* @__PURE__ */ j("polyline", { points: "20 6 9 17 4 12" })
|
|
3463
|
-
}), /* @__PURE__ */ j("span", { className:
|
|
3506
|
+
}), /* @__PURE__ */ j("span", { className: or.dash })]
|
|
3464
3507
|
}),
|
|
3465
3508
|
(e || t) && /* @__PURE__ */ M("span", {
|
|
3466
|
-
className:
|
|
3509
|
+
className: or.text,
|
|
3467
3510
|
children: [e && /* @__PURE__ */ j("span", {
|
|
3468
|
-
className:
|
|
3511
|
+
className: or.text__label,
|
|
3469
3512
|
children: e
|
|
3470
3513
|
}), t && /* @__PURE__ */ j("span", {
|
|
3471
|
-
className:
|
|
3514
|
+
className: or.text__description,
|
|
3472
3515
|
children: t
|
|
3473
3516
|
})]
|
|
3474
3517
|
})
|
|
3475
3518
|
]
|
|
3476
3519
|
});
|
|
3477
3520
|
});
|
|
3478
|
-
|
|
3521
|
+
sr.displayName = "Checkbox";
|
|
3479
3522
|
var J = {
|
|
3480
3523
|
item: "_item_1bf0e_2",
|
|
3481
3524
|
"item--hover": "_item--hover_1bf0e_12",
|
|
@@ -3491,7 +3534,7 @@ var J = {
|
|
|
3491
3534
|
item__preview: "_item__preview_1bf0e_31",
|
|
3492
3535
|
item__typing: "_item__typing_1bf0e_36",
|
|
3493
3536
|
item__badge: "_item__badge_1bf0e_37"
|
|
3494
|
-
},
|
|
3537
|
+
}, cr = ({ state: e = "default", avatar: t, name: n, timestamp: r, preview: i, unreadCount: a, onClick: o, className: s }) => /* @__PURE__ */ M("div", {
|
|
3495
3538
|
role: "button",
|
|
3496
3539
|
"data-hover-item": "",
|
|
3497
3540
|
tabIndex: 0,
|
|
@@ -3545,12 +3588,12 @@ var J = {
|
|
|
3545
3588
|
})]
|
|
3546
3589
|
})]
|
|
3547
3590
|
})]
|
|
3548
|
-
}),
|
|
3591
|
+
}), lr = {
|
|
3549
3592
|
chart: "_chart_aiboa_2",
|
|
3550
3593
|
center: "_center_aiboa_26",
|
|
3551
3594
|
center__value: "_center__value_aiboa_35",
|
|
3552
3595
|
center__caption: "_center__caption_aiboa_36"
|
|
3553
|
-
},
|
|
3596
|
+
}, ur = {
|
|
3554
3597
|
sm: {
|
|
3555
3598
|
h: 180,
|
|
3556
3599
|
inner: 50,
|
|
@@ -3571,7 +3614,7 @@ var J = {
|
|
|
3571
3614
|
inner: 98,
|
|
3572
3615
|
outer: 142
|
|
3573
3616
|
}
|
|
3574
|
-
},
|
|
3617
|
+
}, dr = ({ data: e, size: t = "md", centerValue: n, centerCaption: r, height: i, className: a }) => {
|
|
3575
3618
|
let [o, s] = k.useState(null), [c, l] = k.useState(null), u = (e) => {
|
|
3576
3619
|
let t = e.currentTarget.getBoundingClientRect();
|
|
3577
3620
|
l({
|
|
@@ -3585,12 +3628,12 @@ var J = {
|
|
|
3585
3628
|
4,
|
|
3586
3629
|
5
|
|
3587
3630
|
].map((e) => f(`--color-chart-${e}`) ?? Lt[e - 1]), m = {
|
|
3588
|
-
...
|
|
3589
|
-
h: i ??
|
|
3631
|
+
...ur[t],
|
|
3632
|
+
h: i ?? ur[t].h
|
|
3590
3633
|
}, h = (m.outer - m.inner) / 2 - 7;
|
|
3591
3634
|
return /* @__PURE__ */ M("div", {
|
|
3592
3635
|
ref: d,
|
|
3593
|
-
className: [
|
|
3636
|
+
className: [lr.chart, a ?? ""].filter(Boolean).join(" "),
|
|
3594
3637
|
style: { height: m.h },
|
|
3595
3638
|
onMouseMove: u,
|
|
3596
3639
|
children: [/* @__PURE__ */ j(be, {
|
|
@@ -3620,24 +3663,24 @@ var J = {
|
|
|
3620
3663
|
position: c ?? void 0
|
|
3621
3664
|
})] })
|
|
3622
3665
|
}), (n || r) && /* @__PURE__ */ M("div", {
|
|
3623
|
-
className:
|
|
3666
|
+
className: lr.center,
|
|
3624
3667
|
children: [n && /* @__PURE__ */ j("span", {
|
|
3625
|
-
className:
|
|
3668
|
+
className: lr.center__value,
|
|
3626
3669
|
children: n
|
|
3627
3670
|
}), r && /* @__PURE__ */ j("span", {
|
|
3628
|
-
className:
|
|
3671
|
+
className: lr.center__caption,
|
|
3629
3672
|
children: r
|
|
3630
3673
|
})]
|
|
3631
3674
|
})]
|
|
3632
3675
|
});
|
|
3633
|
-
},
|
|
3676
|
+
}, fr = {
|
|
3634
3677
|
empty: "_empty_1mj0f_2",
|
|
3635
3678
|
empty__chip: "_empty__chip_1mj0f_12",
|
|
3636
3679
|
"empty__chip--error": "_empty__chip--error_1mj0f_22",
|
|
3637
3680
|
empty__title: "_empty__title_1mj0f_23",
|
|
3638
3681
|
empty__desc: "_empty__desc_1mj0f_31",
|
|
3639
3682
|
empty__action: "_empty__action_1mj0f_39"
|
|
3640
|
-
},
|
|
3683
|
+
}, pr = {
|
|
3641
3684
|
"no-data": {
|
|
3642
3685
|
icon: /* @__PURE__ */ j(te, {
|
|
3643
3686
|
size: 18,
|
|
@@ -3647,7 +3690,7 @@ var J = {
|
|
|
3647
3690
|
description: "Records will appear here once they are added."
|
|
3648
3691
|
},
|
|
3649
3692
|
"no-results": {
|
|
3650
|
-
icon: /* @__PURE__ */ j(
|
|
3693
|
+
icon: /* @__PURE__ */ j(re, {
|
|
3651
3694
|
size: 18,
|
|
3652
3695
|
strokeWidth: N(18)
|
|
3653
3696
|
}),
|
|
@@ -3662,35 +3705,35 @@ var J = {
|
|
|
3662
3705
|
title: "Couldn't load data",
|
|
3663
3706
|
description: "Something went wrong while fetching records."
|
|
3664
3707
|
}
|
|
3665
|
-
},
|
|
3666
|
-
let s =
|
|
3708
|
+
}, mr = ({ type: e = "no-data", title: t, description: n, actionLabel: r, onAction: i, icon: a, className: o }) => {
|
|
3709
|
+
let s = pr[e];
|
|
3667
3710
|
return /* @__PURE__ */ M("div", {
|
|
3668
|
-
className: [
|
|
3711
|
+
className: [fr.empty, o ?? ""].filter(Boolean).join(" "),
|
|
3669
3712
|
role: "status",
|
|
3670
3713
|
children: [
|
|
3671
3714
|
/* @__PURE__ */ j("span", {
|
|
3672
|
-
className: [
|
|
3715
|
+
className: [fr.empty__chip, fr[`empty__chip--${e}`]].join(" "),
|
|
3673
3716
|
"aria-hidden": "true",
|
|
3674
3717
|
children: a ?? s.icon
|
|
3675
3718
|
}),
|
|
3676
3719
|
/* @__PURE__ */ j("p", {
|
|
3677
|
-
className:
|
|
3720
|
+
className: fr.empty__title,
|
|
3678
3721
|
children: t ?? s.title
|
|
3679
3722
|
}),
|
|
3680
3723
|
/* @__PURE__ */ j("p", {
|
|
3681
|
-
className:
|
|
3724
|
+
className: fr.empty__desc,
|
|
3682
3725
|
children: n ?? s.description
|
|
3683
3726
|
}),
|
|
3684
3727
|
r && /* @__PURE__ */ j(F, {
|
|
3685
3728
|
variant: "outline",
|
|
3686
3729
|
size: "sm",
|
|
3687
|
-
className:
|
|
3730
|
+
className: fr.empty__action,
|
|
3688
3731
|
onClick: i,
|
|
3689
3732
|
children: r
|
|
3690
3733
|
})
|
|
3691
3734
|
]
|
|
3692
3735
|
});
|
|
3693
|
-
},
|
|
3736
|
+
}, hr = {
|
|
3694
3737
|
chip: "_chip_1qnyq_2",
|
|
3695
3738
|
chip__lead: "_chip__lead_1qnyq_20",
|
|
3696
3739
|
chip__trail: "_chip__trail_1qnyq_20",
|
|
@@ -3698,54 +3741,54 @@ var J = {
|
|
|
3698
3741
|
chip__remove: "_chip__remove_1qnyq_29",
|
|
3699
3742
|
"chip--add": "_chip--add_1qnyq_38",
|
|
3700
3743
|
"chip--leaving": "_chip--leaving_1qnyq_45"
|
|
3701
|
-
},
|
|
3702
|
-
let [
|
|
3703
|
-
k.useEffect(() => () => window.clearTimeout(
|
|
3704
|
-
let
|
|
3705
|
-
if (!
|
|
3706
|
-
if (
|
|
3744
|
+
}, gr = 160, _r = () => typeof window < "u" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches, vr = ({ type: t = "default", children: n, onClick: r, onRemove: i, className: a }) => {
|
|
3745
|
+
let [o, s] = k.useState(!1), c = k.useRef(void 0);
|
|
3746
|
+
k.useEffect(() => () => window.clearTimeout(c.current), []);
|
|
3747
|
+
let u = () => {
|
|
3748
|
+
if (!o) {
|
|
3749
|
+
if (_r()) {
|
|
3707
3750
|
i?.();
|
|
3708
3751
|
return;
|
|
3709
3752
|
}
|
|
3710
|
-
|
|
3711
|
-
i?.(),
|
|
3712
|
-
},
|
|
3753
|
+
s(!0), c.current = window.setTimeout(() => {
|
|
3754
|
+
i?.(), s(!1);
|
|
3755
|
+
}, gr);
|
|
3713
3756
|
}
|
|
3714
3757
|
};
|
|
3715
3758
|
return /* @__PURE__ */ M("button", {
|
|
3716
3759
|
type: "button",
|
|
3717
|
-
onClick:
|
|
3760
|
+
onClick: r,
|
|
3718
3761
|
className: [
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3762
|
+
hr.chip,
|
|
3763
|
+
hr[`chip--${t}`],
|
|
3764
|
+
o ? hr["chip--leaving"] : "",
|
|
3765
|
+
a ?? ""
|
|
3723
3766
|
].filter(Boolean).join(" "),
|
|
3724
3767
|
children: [
|
|
3725
|
-
|
|
3768
|
+
t === "add" && /* @__PURE__ */ j(l, {
|
|
3726
3769
|
size: 14,
|
|
3727
3770
|
strokeWidth: N(14),
|
|
3728
|
-
className:
|
|
3771
|
+
className: hr.chip__lead,
|
|
3729
3772
|
"aria-hidden": "true"
|
|
3730
3773
|
}),
|
|
3731
3774
|
/* @__PURE__ */ j("span", {
|
|
3732
|
-
className:
|
|
3733
|
-
children:
|
|
3775
|
+
className: hr.chip__label,
|
|
3776
|
+
children: n
|
|
3734
3777
|
}),
|
|
3735
|
-
|
|
3778
|
+
t === "default" && /* @__PURE__ */ j(e, {
|
|
3736
3779
|
size: 14,
|
|
3737
3780
|
strokeWidth: N(14),
|
|
3738
|
-
className:
|
|
3781
|
+
className: hr.chip__trail,
|
|
3739
3782
|
"aria-hidden": "true"
|
|
3740
3783
|
}),
|
|
3741
|
-
|
|
3784
|
+
t === "active" && /* @__PURE__ */ j("span", {
|
|
3742
3785
|
role: "button",
|
|
3743
3786
|
"aria-label": "Remove filter",
|
|
3744
|
-
className:
|
|
3787
|
+
className: hr.chip__remove,
|
|
3745
3788
|
onClick: (e) => {
|
|
3746
|
-
e.stopPropagation(),
|
|
3789
|
+
e.stopPropagation(), u();
|
|
3747
3790
|
},
|
|
3748
|
-
children: /* @__PURE__ */ j(
|
|
3791
|
+
children: /* @__PURE__ */ j(d, {
|
|
3749
3792
|
size: 14,
|
|
3750
3793
|
strokeWidth: N(14),
|
|
3751
3794
|
"aria-hidden": "true"
|
|
@@ -3753,7 +3796,7 @@ var J = {
|
|
|
3753
3796
|
})
|
|
3754
3797
|
]
|
|
3755
3798
|
});
|
|
3756
|
-
},
|
|
3799
|
+
}, yr = {
|
|
3757
3800
|
field: "_field_1nyia_10",
|
|
3758
3801
|
field__label: "_field__label_1nyia_18",
|
|
3759
3802
|
field__description: "_field__description_1nyia_26",
|
|
@@ -3767,69 +3810,69 @@ var J = {
|
|
|
3767
3810
|
input__control: "_input__control_1nyia_81",
|
|
3768
3811
|
input__icon: "_input__icon_1nyia_110",
|
|
3769
3812
|
"input--unstyled": "_input--unstyled_1nyia_120"
|
|
3770
|
-
},
|
|
3771
|
-
size:
|
|
3772
|
-
strokeWidth: N(
|
|
3773
|
-
}) : e,
|
|
3813
|
+
}, br = 16, xr = (e) => k.isValidElement(e) ? k.cloneElement(e, {
|
|
3814
|
+
size: br,
|
|
3815
|
+
strokeWidth: N(br)
|
|
3816
|
+
}) : e, Sr = k.forwardRef(({ label: e, description: t, error: n, size: r = "md", unstyled: i, leadingIcon: a, trailingIcon: o, disabled: s, id: c, className: l, ...u }, d) => {
|
|
3774
3817
|
let f = k.useId(), p = c ?? f, m = !!n;
|
|
3775
3818
|
return /* @__PURE__ */ M("div", {
|
|
3776
|
-
className: [
|
|
3819
|
+
className: [yr.field, l ?? ""].filter(Boolean).join(" "),
|
|
3777
3820
|
children: [
|
|
3778
3821
|
e && /* @__PURE__ */ j("label", {
|
|
3779
3822
|
htmlFor: p,
|
|
3780
|
-
className:
|
|
3823
|
+
className: yr.field__label,
|
|
3781
3824
|
children: e
|
|
3782
3825
|
}),
|
|
3783
3826
|
/* @__PURE__ */ M("div", {
|
|
3784
3827
|
className: [
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
m ?
|
|
3788
|
-
s ?
|
|
3828
|
+
yr.input,
|
|
3829
|
+
yr[`input--${r}`],
|
|
3830
|
+
m ? yr["input--error"] : "",
|
|
3831
|
+
s ? yr["input--disabled"] : ""
|
|
3789
3832
|
].filter(Boolean).join(" "),
|
|
3790
3833
|
children: [
|
|
3791
3834
|
a && /* @__PURE__ */ j("span", {
|
|
3792
|
-
className:
|
|
3835
|
+
className: yr.input__icon,
|
|
3793
3836
|
"aria-hidden": "true",
|
|
3794
|
-
children:
|
|
3837
|
+
children: xr(a)
|
|
3795
3838
|
}),
|
|
3796
3839
|
/* @__PURE__ */ j("input", {
|
|
3797
3840
|
ref: d,
|
|
3798
3841
|
id: p,
|
|
3799
|
-
className:
|
|
3842
|
+
className: yr.input__control,
|
|
3800
3843
|
disabled: s,
|
|
3801
3844
|
"aria-invalid": m || void 0,
|
|
3802
3845
|
"aria-describedby": t || n ? `${p}-desc` : void 0,
|
|
3803
3846
|
...u
|
|
3804
3847
|
}),
|
|
3805
3848
|
o && /* @__PURE__ */ j("span", {
|
|
3806
|
-
className:
|
|
3849
|
+
className: yr.input__icon,
|
|
3807
3850
|
"aria-hidden": "true",
|
|
3808
|
-
children:
|
|
3851
|
+
children: xr(o)
|
|
3809
3852
|
})
|
|
3810
3853
|
]
|
|
3811
3854
|
}),
|
|
3812
3855
|
(t || n) && /* @__PURE__ */ j("span", {
|
|
3813
3856
|
id: `${p}-desc`,
|
|
3814
|
-
className: m ?
|
|
3857
|
+
className: m ? yr.field__error : yr.field__description,
|
|
3815
3858
|
children: n || t
|
|
3816
3859
|
})
|
|
3817
3860
|
]
|
|
3818
3861
|
});
|
|
3819
3862
|
});
|
|
3820
|
-
|
|
3821
|
-
var
|
|
3863
|
+
Sr.displayName = "Input";
|
|
3864
|
+
var Cr = { chart: "_chart_18fgd_2" }, wr = {
|
|
3822
3865
|
sm: 180,
|
|
3823
3866
|
md: 240,
|
|
3824
3867
|
lg: 320,
|
|
3825
3868
|
xl: 420
|
|
3826
|
-
},
|
|
3869
|
+
}, Tr = /* @__PURE__ */ new Set([
|
|
3827
3870
|
"dots",
|
|
3828
3871
|
"custom-dots",
|
|
3829
3872
|
"dots-colors",
|
|
3830
3873
|
"label",
|
|
3831
3874
|
"custom-label"
|
|
3832
|
-
]),
|
|
3875
|
+
]), Er = ({ data: e, series: t, xKey: n = "label", variant: r = "default", labelKey: i, size: a = "md", height: o, showLegend: s, className: c }) => {
|
|
3833
3876
|
let l = k.useRef(null), u = It(l), d = [
|
|
3834
3877
|
1,
|
|
3835
3878
|
2,
|
|
@@ -3840,7 +3883,7 @@ var br = { chart: "_chart_18fgd_2" }, xr = {
|
|
|
3840
3883
|
d[1],
|
|
3841
3884
|
d[0],
|
|
3842
3885
|
...d.slice(2)
|
|
3843
|
-
], p = u("--color-border-subtle") ?? "#e7e5e1", m = u("--color-fg-muted") ?? "#78716a", h = u("--color-bg-canvas") ?? "#fafaf9", g = u("--color-fg-default") ?? "#141414", _ = r === "linear" ? "linear" : r === "step" ? "step" : "monotone", v =
|
|
3886
|
+
], p = u("--color-border-subtle") ?? "#e7e5e1", m = u("--color-fg-muted") ?? "#78716a", h = u("--color-bg-canvas") ?? "#fafaf9", g = u("--color-fg-default") ?? "#141414", _ = r === "linear" ? "linear" : r === "step" ? "step" : "monotone", v = Tr.has(r), y = (e) => (t) => {
|
|
3844
3887
|
let { cx: n, cy: r } = t;
|
|
3845
3888
|
return /* @__PURE__ */ M("g", {
|
|
3846
3889
|
stroke: e,
|
|
@@ -3893,10 +3936,10 @@ var br = { chart: "_chart_18fgd_2" }, xr = {
|
|
|
3893
3936
|
};
|
|
3894
3937
|
return /* @__PURE__ */ j("div", {
|
|
3895
3938
|
ref: l,
|
|
3896
|
-
className: [
|
|
3939
|
+
className: [Cr.chart, c ?? ""].filter(Boolean).join(" "),
|
|
3897
3940
|
children: /* @__PURE__ */ j(be, {
|
|
3898
3941
|
width: "100%",
|
|
3899
|
-
height: o ??
|
|
3942
|
+
height: o ?? wr[a],
|
|
3900
3943
|
children: /* @__PURE__ */ M(pe, {
|
|
3901
3944
|
data: e,
|
|
3902
3945
|
margin: {
|
|
@@ -3957,24 +4000,24 @@ var br = { chart: "_chart_18fgd_2" }, xr = {
|
|
|
3957
4000
|
})
|
|
3958
4001
|
})
|
|
3959
4002
|
});
|
|
3960
|
-
},
|
|
4003
|
+
}, Dr = {
|
|
3961
4004
|
menu: "_menu_1cx61_2",
|
|
3962
4005
|
divider: "_divider_1cx61_26"
|
|
3963
|
-
},
|
|
3964
|
-
let i =
|
|
4006
|
+
}, Or = ({ children: e, minWidth: t = 208, className: n, ...r }) => {
|
|
4007
|
+
let i = Xn();
|
|
3965
4008
|
return /* @__PURE__ */ M("div", {
|
|
3966
4009
|
ref: i.ref,
|
|
3967
4010
|
...i.groupProps,
|
|
3968
4011
|
role: "menu",
|
|
3969
4012
|
"aria-label": r["aria-label"],
|
|
3970
4013
|
style: { minWidth: t },
|
|
3971
|
-
className: [
|
|
4014
|
+
className: [Dr.menu, n ?? ""].filter(Boolean).join(" "),
|
|
3972
4015
|
children: [i.highlight, e]
|
|
3973
4016
|
});
|
|
3974
|
-
},
|
|
3975
|
-
className:
|
|
4017
|
+
}, kr = () => /* @__PURE__ */ j("div", {
|
|
4018
|
+
className: Dr.divider,
|
|
3976
4019
|
role: "separator"
|
|
3977
|
-
}),
|
|
4020
|
+
}), Ar = {
|
|
3978
4021
|
item: "_item_1ezjp_2",
|
|
3979
4022
|
item__icon: "_item__icon_1ezjp_27",
|
|
3980
4023
|
item__label: "_item__label_1ezjp_28",
|
|
@@ -3983,41 +4026,41 @@ var br = { chart: "_chart_18fgd_2" }, xr = {
|
|
|
3983
4026
|
"item--checked": "_item--checked_1ezjp_38",
|
|
3984
4027
|
"item--disabled": "_item--disabled_1ezjp_39",
|
|
3985
4028
|
"item--destructive": "_item--destructive_1ezjp_40"
|
|
3986
|
-
},
|
|
3987
|
-
let
|
|
4029
|
+
}, jr = ({ state: e = "default", icon: t, shortcut: n, children: r, onSelect: i, className: a }) => {
|
|
4030
|
+
let o = e === "disabled";
|
|
3988
4031
|
return /* @__PURE__ */ M("div", {
|
|
3989
4032
|
role: "menuitem",
|
|
3990
4033
|
"data-hover-item": "",
|
|
3991
|
-
"aria-disabled":
|
|
3992
|
-
"aria-checked":
|
|
3993
|
-
tabIndex:
|
|
3994
|
-
onClick:
|
|
4034
|
+
"aria-disabled": o || void 0,
|
|
4035
|
+
"aria-checked": e === "checked" || void 0,
|
|
4036
|
+
tabIndex: o ? -1 : 0,
|
|
4037
|
+
onClick: o ? void 0 : i,
|
|
3995
4038
|
onKeyDown: (e) => {
|
|
3996
|
-
|
|
4039
|
+
o || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), i?.());
|
|
3997
4040
|
},
|
|
3998
4041
|
className: [
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4042
|
+
Ar.item,
|
|
4043
|
+
Ar[`item--${e}`],
|
|
4044
|
+
a ?? ""
|
|
4002
4045
|
].filter(Boolean).join(" "),
|
|
4003
4046
|
children: [
|
|
4004
|
-
|
|
4005
|
-
className:
|
|
4047
|
+
t && /* @__PURE__ */ j("span", {
|
|
4048
|
+
className: Ar.item__icon,
|
|
4006
4049
|
"aria-hidden": "true",
|
|
4007
|
-
children:
|
|
4050
|
+
children: t
|
|
4008
4051
|
}),
|
|
4009
4052
|
/* @__PURE__ */ j("span", {
|
|
4010
|
-
className:
|
|
4011
|
-
children: i
|
|
4012
|
-
}),
|
|
4013
|
-
r && /* @__PURE__ */ j("kbd", {
|
|
4014
|
-
className: Dr.item__shortcut,
|
|
4053
|
+
className: Ar.item__label,
|
|
4015
4054
|
children: r
|
|
4016
4055
|
}),
|
|
4017
|
-
|
|
4056
|
+
n && /* @__PURE__ */ j("kbd", {
|
|
4057
|
+
className: Ar.item__shortcut,
|
|
4058
|
+
children: n
|
|
4059
|
+
}),
|
|
4060
|
+
e === "checked" && /* @__PURE__ */ j(s, {
|
|
4018
4061
|
size: 16,
|
|
4019
4062
|
strokeWidth: N(16),
|
|
4020
|
-
className:
|
|
4063
|
+
className: Ar.item__check,
|
|
4021
4064
|
"aria-hidden": "true"
|
|
4022
4065
|
})
|
|
4023
4066
|
]
|
|
@@ -4046,7 +4089,7 @@ var br = { chart: "_chart_18fgd_2" }, xr = {
|
|
|
4046
4089
|
foot__receipt: "_foot__receipt_1q1m5_32",
|
|
4047
4090
|
system: "_system_1q1m5_34",
|
|
4048
4091
|
system__pill: "_system__pill_1q1m5_35"
|
|
4049
|
-
},
|
|
4092
|
+
}, Mr = ({ type: e = "received", content: t = "text", avatar: n, authorName: r, timestamp: i, children: a, image: o, fileName: s, fileSize: c, reactions: l, read: u, className: d }) => {
|
|
4050
4093
|
if (e === "system") return /* @__PURE__ */ j("div", {
|
|
4051
4094
|
className: [Y.system, d ?? ""].filter(Boolean).join(" "),
|
|
4052
4095
|
children: /* @__PURE__ */ j("span", {
|
|
@@ -4132,19 +4175,19 @@ var br = { chart: "_chart_18fgd_2" }, xr = {
|
|
|
4132
4175
|
]
|
|
4133
4176
|
})]
|
|
4134
4177
|
});
|
|
4135
|
-
},
|
|
4178
|
+
}, Nr = {
|
|
4136
4179
|
pagination: "_pagination_e1j7r_2",
|
|
4137
4180
|
page: "_page_e1j7r_9",
|
|
4138
4181
|
arrow: "_arrow_e1j7r_9",
|
|
4139
4182
|
"page--active": "_page--active_e1j7r_26",
|
|
4140
4183
|
ellipsis: "_ellipsis_e1j7r_40"
|
|
4141
|
-
},
|
|
4142
|
-
function
|
|
4184
|
+
}, Pr = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n);
|
|
4185
|
+
function Fr(e, t, n) {
|
|
4143
4186
|
let r = n * 2 + 5;
|
|
4144
|
-
if (e <= r) return
|
|
4187
|
+
if (e <= r) return Pr(1, e);
|
|
4145
4188
|
let i = r - 2, a = n * 2 + 1;
|
|
4146
4189
|
if (t <= i) return [
|
|
4147
|
-
...
|
|
4190
|
+
...Pr(1, i),
|
|
4148
4191
|
"end-ellipsis",
|
|
4149
4192
|
e
|
|
4150
4193
|
];
|
|
@@ -4152,19 +4195,19 @@ function Mr(e, t, n) {
|
|
|
4152
4195
|
return s <= e - 3 ? [
|
|
4153
4196
|
1,
|
|
4154
4197
|
"start-ellipsis",
|
|
4155
|
-
...
|
|
4198
|
+
...Pr(o, s),
|
|
4156
4199
|
"end-ellipsis",
|
|
4157
4200
|
e
|
|
4158
4201
|
] : [
|
|
4159
4202
|
1,
|
|
4160
4203
|
"start-ellipsis",
|
|
4161
|
-
...
|
|
4204
|
+
...Pr(e - i + 1, e)
|
|
4162
4205
|
];
|
|
4163
4206
|
}
|
|
4164
|
-
var
|
|
4207
|
+
var Ir = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i }) => {
|
|
4165
4208
|
let a = k.useRef(null);
|
|
4166
4209
|
if (e < 1) return null;
|
|
4167
|
-
let o = Math.min(Math.max(t, 1), e), s = Math.max(0, r), c =
|
|
4210
|
+
let o = Math.min(Math.max(t, 1), e), s = Math.max(0, r), c = Fr(e, o, s), l = a.current;
|
|
4168
4211
|
if (l && l.total === e && l.siblings === s) {
|
|
4169
4212
|
let t = l.tokens, n = t.includes(o), r = o === 1 && t[1] === "start-ellipsis" || o === e && t[t.length - 2] === "end-ellipsis";
|
|
4170
4213
|
n && !r && (c = t);
|
|
@@ -4174,53 +4217,53 @@ var Nr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
|
|
|
4174
4217
|
siblings: s,
|
|
4175
4218
|
tokens: c
|
|
4176
4219
|
}, /* @__PURE__ */ M("nav", {
|
|
4177
|
-
className: [
|
|
4220
|
+
className: [Nr.pagination, i ?? ""].filter(Boolean).join(" "),
|
|
4178
4221
|
"aria-label": "Pagination",
|
|
4179
4222
|
children: [
|
|
4180
4223
|
/* @__PURE__ */ j("button", {
|
|
4181
4224
|
type: "button",
|
|
4182
|
-
className:
|
|
4225
|
+
className: Nr.arrow,
|
|
4183
4226
|
disabled: o <= 1,
|
|
4184
4227
|
onClick: () => n(o - 1),
|
|
4185
4228
|
"aria-label": "Previous page",
|
|
4186
|
-
children: /* @__PURE__ */ j(
|
|
4229
|
+
children: /* @__PURE__ */ j(ne, {
|
|
4187
4230
|
size: 16,
|
|
4188
4231
|
strokeWidth: N(16)
|
|
4189
4232
|
})
|
|
4190
4233
|
}),
|
|
4191
4234
|
c.map((e) => typeof e == "number" ? /* @__PURE__ */ j("button", {
|
|
4192
4235
|
type: "button",
|
|
4193
|
-
className: [
|
|
4236
|
+
className: [Nr.page, e === o ? Nr["page--active"] : ""].filter(Boolean).join(" "),
|
|
4194
4237
|
"aria-current": e === o ? "page" : void 0,
|
|
4195
4238
|
"aria-label": `Page ${e}`,
|
|
4196
4239
|
onClick: () => e !== o && n(e),
|
|
4197
4240
|
children: e
|
|
4198
4241
|
}, e) : /* @__PURE__ */ j("span", {
|
|
4199
|
-
className:
|
|
4242
|
+
className: Nr.ellipsis,
|
|
4200
4243
|
"aria-hidden": "true",
|
|
4201
4244
|
children: "…"
|
|
4202
4245
|
}, e)),
|
|
4203
4246
|
/* @__PURE__ */ j("button", {
|
|
4204
4247
|
type: "button",
|
|
4205
|
-
className:
|
|
4248
|
+
className: Nr.arrow,
|
|
4206
4249
|
disabled: o >= e,
|
|
4207
4250
|
onClick: () => n(o + 1),
|
|
4208
4251
|
"aria-label": "Next page",
|
|
4209
|
-
children: /* @__PURE__ */ j(
|
|
4252
|
+
children: /* @__PURE__ */ j(h, {
|
|
4210
4253
|
size: 16,
|
|
4211
4254
|
strokeWidth: N(16)
|
|
4212
4255
|
})
|
|
4213
4256
|
})
|
|
4214
4257
|
]
|
|
4215
4258
|
});
|
|
4216
|
-
},
|
|
4259
|
+
}, Lr = {
|
|
4217
4260
|
track: "_track_1br5v_2",
|
|
4218
4261
|
segment: "_segment_1br5v_12",
|
|
4219
4262
|
"segment--active": "_segment--active_1br5v_38",
|
|
4220
4263
|
thumb: "_thumb_1br5v_44",
|
|
4221
4264
|
"thumb--animated": "_thumb--animated_1br5v_62",
|
|
4222
4265
|
"track--fullWidth": "_track--fullWidth_1br5v_68"
|
|
4223
|
-
},
|
|
4266
|
+
}, Rr = ({ options: e, value: t, defaultValue: n, onChange: r, fullWidth: i, className: a }) => {
|
|
4224
4267
|
let o = t !== void 0, [s, c] = k.useState(n ?? e[0]?.value), l = o ? t : s, u = (e) => {
|
|
4225
4268
|
o || c(e), r?.(e);
|
|
4226
4269
|
}, d = k.useRef(null), f = k.useRef({}), [p, m] = k.useState(null), [h, g] = k.useState(!1);
|
|
@@ -4241,13 +4284,13 @@ var Nr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
|
|
|
4241
4284
|
ref: d,
|
|
4242
4285
|
role: "tablist",
|
|
4243
4286
|
className: [
|
|
4244
|
-
|
|
4245
|
-
i ?
|
|
4287
|
+
Lr.track,
|
|
4288
|
+
i ? Lr["track--fullWidth"] : "",
|
|
4246
4289
|
a ?? ""
|
|
4247
4290
|
].filter(Boolean).join(" "),
|
|
4248
4291
|
children: [p && /* @__PURE__ */ j("span", {
|
|
4249
4292
|
"aria-hidden": "true",
|
|
4250
|
-
className: [
|
|
4293
|
+
className: [Lr.thumb, h ? Lr["thumb--animated"] : ""].filter(Boolean).join(" "),
|
|
4251
4294
|
style: {
|
|
4252
4295
|
transform: `translateX(${p.left}px)`,
|
|
4253
4296
|
width: p.width
|
|
@@ -4261,7 +4304,7 @@ var Nr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
|
|
|
4261
4304
|
role: "tab",
|
|
4262
4305
|
type: "button",
|
|
4263
4306
|
"aria-selected": t,
|
|
4264
|
-
className: [
|
|
4307
|
+
className: [Lr.segment, t ? Lr["segment--active"] : ""].filter(Boolean).join(" "),
|
|
4265
4308
|
onClick: () => u(e.value),
|
|
4266
4309
|
children: e.label
|
|
4267
4310
|
}, e.value);
|
|
@@ -4297,7 +4340,7 @@ var Nr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
|
|
|
4297
4340
|
option__check: "_option__check_1b512_179",
|
|
4298
4341
|
optionHighlight: "_optionHighlight_1b512_151",
|
|
4299
4342
|
"optionHighlight--animated": "_optionHighlight--animated_1b512_201"
|
|
4300
|
-
},
|
|
4343
|
+
}, zr = ({ label: e, description: t, error: n, size: r = "md", placeholder: i = "Select an option", options: a, value: o, defaultValue: s, onChange: c, disabled: l, id: u, className: d }) => {
|
|
4301
4344
|
let f = k.useId(), p = `${u ?? f}-trigger`, m = `${u ?? f}-panel`, h = !!n, [g, _] = k.useState(s), v = o === void 0 ? g : o, y = a.find((e) => e.value === v), [b, x] = k.useState(!1), [S, C] = k.useState(!1), [w, T] = k.useState(0), E = k.useRef(null), D = k.useRef(null), O = k.useRef(null), ee = k.useRef({}), [te, ne] = k.useState(null), [re, ie] = k.useState(!1);
|
|
4302
4345
|
k.useLayoutEffect(() => {
|
|
4303
4346
|
let e = ee.current[w];
|
|
@@ -4503,27 +4546,27 @@ var Nr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
|
|
|
4503
4546
|
})
|
|
4504
4547
|
]
|
|
4505
4548
|
});
|
|
4506
|
-
},
|
|
4549
|
+
}, Br = {
|
|
4507
4550
|
sidebar: "_sidebar_alxv4_4",
|
|
4508
4551
|
"sidebar--collapsed": "_sidebar--collapsed_alxv4_23"
|
|
4509
|
-
},
|
|
4510
|
-
let r =
|
|
4552
|
+
}, Vr = ({ collapsed: e = !1, children: t, className: n }) => {
|
|
4553
|
+
let r = Xn();
|
|
4511
4554
|
return /* @__PURE__ */ M("nav", {
|
|
4512
4555
|
ref: r.ref,
|
|
4513
4556
|
...r.groupProps,
|
|
4514
4557
|
className: [
|
|
4515
|
-
|
|
4516
|
-
e ?
|
|
4558
|
+
Br.sidebar,
|
|
4559
|
+
e ? Br["sidebar--collapsed"] : "",
|
|
4517
4560
|
n ?? ""
|
|
4518
4561
|
].filter(Boolean).join(" "),
|
|
4519
4562
|
"data-collapsed": e,
|
|
4520
4563
|
children: [r.highlight, t]
|
|
4521
4564
|
});
|
|
4522
|
-
},
|
|
4523
|
-
className:
|
|
4565
|
+
}, Hr = { divider: "_divider_1oof5_1" }, Ur = () => /* @__PURE__ */ j("div", {
|
|
4566
|
+
className: Hr.divider,
|
|
4524
4567
|
role: "separator"
|
|
4525
|
-
}),
|
|
4526
|
-
className:
|
|
4568
|
+
}), Wr = { groupLabel: "_groupLabel_62q1j_2" }, Gr = ({ children: e }) => /* @__PURE__ */ j("div", {
|
|
4569
|
+
className: Wr.groupLabel,
|
|
4527
4570
|
children: e
|
|
4528
4571
|
}), Z = {
|
|
4529
4572
|
header: "_header_wjged_2",
|
|
@@ -4539,7 +4582,7 @@ var Nr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
|
|
|
4539
4582
|
"header__text--collapsed": "_header__text--collapsed_wjged_73",
|
|
4540
4583
|
header__title: "_header__title_wjged_77",
|
|
4541
4584
|
header__toggle: "_header__toggle_wjged_79"
|
|
4542
|
-
},
|
|
4585
|
+
}, Kr = ({ type: e = "brand", title: t, subtitle: n, logo: r, collapsed: i, onToggle: a, toggleIcon: o = y }) => /* @__PURE__ */ M("div", {
|
|
4543
4586
|
className: [
|
|
4544
4587
|
Z.header,
|
|
4545
4588
|
e === "workspace" ? Z["header--workspace"] : "",
|
|
@@ -4602,7 +4645,7 @@ var Nr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
|
|
|
4602
4645
|
})
|
|
4603
4646
|
})
|
|
4604
4647
|
]
|
|
4605
|
-
}),
|
|
4648
|
+
}), qr = {
|
|
4606
4649
|
item: "_item_873gi_5",
|
|
4607
4650
|
"item--disabled": "_item--disabled_873gi_37",
|
|
4608
4651
|
"item--active": "_item--active_873gi_37",
|
|
@@ -4615,20 +4658,20 @@ var Nr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
|
|
|
4615
4658
|
item__label: "_item__label_873gi_142",
|
|
4616
4659
|
"item__label--collapsed": "_item__label--collapsed_873gi_151",
|
|
4617
4660
|
"item__chevron--expanded": "_item__chevron--expanded_873gi_174"
|
|
4618
|
-
},
|
|
4661
|
+
}, Jr = ({ icon: e, label: t, active: n, activeIndicator: r = !0, disabled: i, badge: a, hasSubmenu: o, collapsed: s, expanded: c, onClick: l, href: u, nativeTooltip: d = !0 }) => {
|
|
4619
4662
|
let f = n && r, p = n && !r, m = [
|
|
4620
|
-
|
|
4621
|
-
f ?
|
|
4622
|
-
p ?
|
|
4623
|
-
i ?
|
|
4624
|
-
s ?
|
|
4625
|
-
].filter(Boolean).join(" "),
|
|
4663
|
+
qr.item,
|
|
4664
|
+
f ? qr["item--active"] : "",
|
|
4665
|
+
p ? qr["item--active-flat"] : "",
|
|
4666
|
+
i ? qr["item--disabled"] : "",
|
|
4667
|
+
s ? qr["item--collapsed"] : ""
|
|
4668
|
+
].filter(Boolean).join(" "), g = /* @__PURE__ */ M(A, { children: [
|
|
4626
4669
|
/* @__PURE__ */ j("span", {
|
|
4627
|
-
className:
|
|
4670
|
+
className: qr.item__bar,
|
|
4628
4671
|
"aria-hidden": "true"
|
|
4629
4672
|
}),
|
|
4630
4673
|
e && /* @__PURE__ */ j("span", {
|
|
4631
|
-
className:
|
|
4674
|
+
className: qr.item__icon,
|
|
4632
4675
|
"aria-hidden": "true",
|
|
4633
4676
|
children: /* @__PURE__ */ j(e, {
|
|
4634
4677
|
size: 18,
|
|
@@ -4636,22 +4679,22 @@ var Nr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
|
|
|
4636
4679
|
})
|
|
4637
4680
|
}),
|
|
4638
4681
|
/* @__PURE__ */ j("span", {
|
|
4639
|
-
className: [
|
|
4682
|
+
className: [qr.item__label, s ? qr["item__label--collapsed"] : ""].filter(Boolean).join(" "),
|
|
4640
4683
|
children: t
|
|
4641
4684
|
}),
|
|
4642
4685
|
!s && a && /* @__PURE__ */ j("span", {
|
|
4643
|
-
className:
|
|
4686
|
+
className: qr.item__badge,
|
|
4644
4687
|
children: a
|
|
4645
4688
|
}),
|
|
4646
4689
|
!s && o && /* @__PURE__ */ j("span", {
|
|
4647
|
-
className: [
|
|
4690
|
+
className: [qr.item__chevron, c ? qr["item__chevron--expanded"] : ""].filter(Boolean).join(" "),
|
|
4648
4691
|
"aria-hidden": "true",
|
|
4649
|
-
children: /* @__PURE__ */ j(
|
|
4692
|
+
children: /* @__PURE__ */ j(h, {
|
|
4650
4693
|
size: 16,
|
|
4651
4694
|
strokeWidth: N(16)
|
|
4652
4695
|
})
|
|
4653
4696
|
})
|
|
4654
|
-
] }),
|
|
4697
|
+
] }), _ = {
|
|
4655
4698
|
className: m,
|
|
4656
4699
|
"data-hover-item": "",
|
|
4657
4700
|
title: s && d ? t : void 0,
|
|
@@ -4661,16 +4704,16 @@ var Nr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
|
|
|
4661
4704
|
};
|
|
4662
4705
|
return u && !i ? /* @__PURE__ */ j("a", {
|
|
4663
4706
|
href: u,
|
|
4664
|
-
...
|
|
4665
|
-
children:
|
|
4707
|
+
..._,
|
|
4708
|
+
children: g
|
|
4666
4709
|
}) : /* @__PURE__ */ j("button", {
|
|
4667
4710
|
type: "button",
|
|
4668
4711
|
disabled: i,
|
|
4669
4712
|
onClick: l,
|
|
4670
|
-
...
|
|
4671
|
-
children:
|
|
4713
|
+
..._,
|
|
4714
|
+
children: g
|
|
4672
4715
|
});
|
|
4673
|
-
},
|
|
4716
|
+
}, Yr = {
|
|
4674
4717
|
promo: "_promo_1ou3w_4",
|
|
4675
4718
|
promo__head: "_promo__head_1ou3w_20",
|
|
4676
4719
|
promo__icon: "_promo__icon_1ou3w_21",
|
|
@@ -4678,14 +4721,14 @@ var Nr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
|
|
|
4678
4721
|
promo__dismiss: "_promo__dismiss_1ou3w_23",
|
|
4679
4722
|
promo__desc: "_promo__desc_1ou3w_30",
|
|
4680
4723
|
promo__cta: "_promo__cta_1ou3w_33"
|
|
4681
|
-
},
|
|
4682
|
-
className: [
|
|
4724
|
+
}, Xr = ({ type: e = "upgrade", title: n, description: r, ctaLabel: i, onCta: a, onDismiss: o, icon: s = t }) => /* @__PURE__ */ M("div", {
|
|
4725
|
+
className: [Yr.promo, Yr[`promo--${e}`]].join(" "),
|
|
4683
4726
|
children: [
|
|
4684
4727
|
/* @__PURE__ */ M("div", {
|
|
4685
|
-
className:
|
|
4728
|
+
className: Yr.promo__head,
|
|
4686
4729
|
children: [
|
|
4687
4730
|
/* @__PURE__ */ j("span", {
|
|
4688
|
-
className:
|
|
4731
|
+
className: Yr.promo__icon,
|
|
4689
4732
|
"aria-hidden": "true",
|
|
4690
4733
|
children: /* @__PURE__ */ j(s, {
|
|
4691
4734
|
size: 16,
|
|
@@ -4693,53 +4736,53 @@ var Nr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
|
|
|
4693
4736
|
})
|
|
4694
4737
|
}),
|
|
4695
4738
|
/* @__PURE__ */ j("span", {
|
|
4696
|
-
className:
|
|
4697
|
-
children:
|
|
4739
|
+
className: Yr.promo__title,
|
|
4740
|
+
children: n
|
|
4698
4741
|
}),
|
|
4699
4742
|
o && /* @__PURE__ */ j("button", {
|
|
4700
4743
|
type: "button",
|
|
4701
|
-
className:
|
|
4744
|
+
className: Yr.promo__dismiss,
|
|
4702
4745
|
onClick: o,
|
|
4703
4746
|
"aria-label": "Dismiss",
|
|
4704
|
-
children: /* @__PURE__ */ j(
|
|
4747
|
+
children: /* @__PURE__ */ j(d, {
|
|
4705
4748
|
size: 14,
|
|
4706
4749
|
strokeWidth: N(14)
|
|
4707
4750
|
})
|
|
4708
4751
|
})
|
|
4709
4752
|
]
|
|
4710
4753
|
}),
|
|
4711
|
-
|
|
4712
|
-
className:
|
|
4713
|
-
children:
|
|
4754
|
+
r && /* @__PURE__ */ j("p", {
|
|
4755
|
+
className: Yr.promo__desc,
|
|
4756
|
+
children: r
|
|
4714
4757
|
}),
|
|
4715
|
-
|
|
4758
|
+
i && /* @__PURE__ */ j(F, {
|
|
4716
4759
|
variant: "primary",
|
|
4717
4760
|
size: "sm",
|
|
4718
|
-
className:
|
|
4719
|
-
onClick:
|
|
4720
|
-
children:
|
|
4761
|
+
className: Yr.promo__cta,
|
|
4762
|
+
onClick: a,
|
|
4763
|
+
children: i
|
|
4721
4764
|
})
|
|
4722
4765
|
]
|
|
4723
|
-
}),
|
|
4766
|
+
}), Zr = {
|
|
4724
4767
|
subItem: "_subItem_1d7az_2",
|
|
4725
4768
|
"subItem--disabled": "_subItem--disabled_1d7az_26",
|
|
4726
4769
|
"subItem--active": "_subItem--active_1d7az_27",
|
|
4727
4770
|
subItem__dot: "_subItem__dot_1d7az_31",
|
|
4728
4771
|
subItem__label: "_subItem__label_1d7az_41"
|
|
4729
|
-
},
|
|
4772
|
+
}, Qr = ({ label: e, active: t, disabled: n, onClick: r, href: i }) => {
|
|
4730
4773
|
let a = {
|
|
4731
4774
|
className: [
|
|
4732
|
-
|
|
4733
|
-
t ?
|
|
4734
|
-
n ?
|
|
4775
|
+
Zr.subItem,
|
|
4776
|
+
t ? Zr["subItem--active"] : "",
|
|
4777
|
+
n ? Zr["subItem--disabled"] : ""
|
|
4735
4778
|
].filter(Boolean).join(" "),
|
|
4736
4779
|
"data-hover-item": "",
|
|
4737
4780
|
"aria-current": t ? "page" : void 0
|
|
4738
4781
|
}, o = /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j("span", {
|
|
4739
|
-
className:
|
|
4782
|
+
className: Zr.subItem__dot,
|
|
4740
4783
|
"aria-hidden": "true"
|
|
4741
4784
|
}), /* @__PURE__ */ j("span", {
|
|
4742
|
-
className:
|
|
4785
|
+
className: Zr.subItem__label,
|
|
4743
4786
|
children: e
|
|
4744
4787
|
})] });
|
|
4745
4788
|
return i && !n ? /* @__PURE__ */ j("a", {
|
|
@@ -4753,49 +4796,32 @@ var Nr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
|
|
|
4753
4796
|
...a,
|
|
4754
4797
|
children: o
|
|
4755
4798
|
});
|
|
4756
|
-
},
|
|
4757
|
-
skeleton: "_skeleton_94hr3_9",
|
|
4758
|
-
"skeleton-shimmer": "_skeleton-shimmer_94hr3_1",
|
|
4759
|
-
"skeleton--text": "_skeleton--text_94hr3_22",
|
|
4760
|
-
"skeleton--rect": "_skeleton--rect_94hr3_29",
|
|
4761
|
-
"skeleton--circle": "_skeleton--circle_94hr3_35"
|
|
4762
|
-
}, Zr = ({ variant: e = "text", width: t, height: n, className: r }) => {
|
|
4763
|
-
let i = {};
|
|
4764
|
-
return t !== void 0 && (i.width = typeof t == "number" ? `${t}px` : t), n !== void 0 && (i.height = typeof n == "number" ? `${n}px` : n), /* @__PURE__ */ j("span", {
|
|
4765
|
-
"aria-hidden": "true",
|
|
4766
|
-
className: [
|
|
4767
|
-
Xr.skeleton,
|
|
4768
|
-
Xr[`skeleton--${e}`],
|
|
4769
|
-
r ?? ""
|
|
4770
|
-
].filter(Boolean).join(" "),
|
|
4771
|
-
style: i
|
|
4772
|
-
});
|
|
4773
|
-
}, Qr = {
|
|
4799
|
+
}, $r = {
|
|
4774
4800
|
field: "_field_u7te8_3",
|
|
4775
4801
|
header: "_header_u7te8_4",
|
|
4776
4802
|
label: "_label_u7te8_5",
|
|
4777
4803
|
value: "_value_u7te8_6",
|
|
4778
4804
|
slider: "_slider_u7te8_8",
|
|
4779
4805
|
"sakani-slider-bounce": "_sakani-slider-bounce_u7te8_1"
|
|
4780
|
-
},
|
|
4806
|
+
}, ei = 1.2, ti = 460, ni = k.forwardRef(({ label: e, showValue: t, min: n = 0, max: r = 100, value: i, defaultValue: a, disabled: o, id: s, className: c, onChange: l, ...u }, d) => {
|
|
4781
4807
|
let f = k.useId(), p = s ?? f, m = Number(i ?? a ?? n), [h, g] = k.useState(m), _ = i === void 0 ? h : Number(i), v = (_ - n) / (r - n) * 100, y = k.useRef(null), b = (e) => {
|
|
4782
4808
|
y.current = e, typeof d == "function" ? d(e) : d && (d.current = e);
|
|
4783
4809
|
}, x = k.useRef(null), S = k.useRef(void 0);
|
|
4784
4810
|
k.useEffect(() => () => window.clearTimeout(S.current), []);
|
|
4785
4811
|
let C = (e) => {
|
|
4786
4812
|
let t = y.current;
|
|
4787
|
-
t && (t.removeAttribute("data-bounce"), t.offsetWidth, t.style.setProperty("--bounce-dir", String(e)), t.setAttribute("data-bounce", ""), window.clearTimeout(S.current), S.current = window.setTimeout(() => t.removeAttribute("data-bounce"),
|
|
4813
|
+
t && (t.removeAttribute("data-bounce"), t.offsetWidth, t.style.setProperty("--bounce-dir", String(e)), t.setAttribute("data-bounce", ""), window.clearTimeout(S.current), S.current = window.setTimeout(() => t.removeAttribute("data-bounce"), ti));
|
|
4788
4814
|
};
|
|
4789
4815
|
return /* @__PURE__ */ M("div", {
|
|
4790
|
-
className: [
|
|
4816
|
+
className: [$r.field, c ?? ""].filter(Boolean).join(" "),
|
|
4791
4817
|
children: [(e || t) && /* @__PURE__ */ M("div", {
|
|
4792
|
-
className:
|
|
4818
|
+
className: $r.header,
|
|
4793
4819
|
children: [e && /* @__PURE__ */ j("label", {
|
|
4794
4820
|
htmlFor: p,
|
|
4795
|
-
className:
|
|
4821
|
+
className: $r.label,
|
|
4796
4822
|
children: e
|
|
4797
4823
|
}), t && /* @__PURE__ */ j("span", {
|
|
4798
|
-
className:
|
|
4824
|
+
className: $r.value,
|
|
4799
4825
|
children: _
|
|
4800
4826
|
})]
|
|
4801
4827
|
}), /* @__PURE__ */ j("input", {
|
|
@@ -4809,19 +4835,19 @@ var Nr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
|
|
|
4809
4835
|
disabled: o,
|
|
4810
4836
|
onChange: (e) => {
|
|
4811
4837
|
let t = Number(e.target.value), a = performance.now(), o = x.current;
|
|
4812
|
-
o && (t === r || t === n) && o.v !== t && Math.abs(t - o.v) / (r - n) / Math.max((a - o.t) / 1e3, .001) >=
|
|
4838
|
+
o && (t === r || t === n) && o.v !== t && Math.abs(t - o.v) / (r - n) / Math.max((a - o.t) / 1e3, .001) >= ei && C(t === r ? 1 : -1), x.current = {
|
|
4813
4839
|
v: t,
|
|
4814
4840
|
t: a
|
|
4815
4841
|
}, i === void 0 && g(t), l?.(e);
|
|
4816
4842
|
},
|
|
4817
|
-
className:
|
|
4843
|
+
className: $r.slider,
|
|
4818
4844
|
style: { "--pct": `${v}%` },
|
|
4819
4845
|
...u
|
|
4820
4846
|
})]
|
|
4821
4847
|
});
|
|
4822
4848
|
});
|
|
4823
|
-
|
|
4824
|
-
var
|
|
4849
|
+
ni.displayName = "Slider";
|
|
4850
|
+
var ri = {
|
|
4825
4851
|
card: "_card_1qi93_4",
|
|
4826
4852
|
"card--featured": "_card--featured_1qi93_24",
|
|
4827
4853
|
card__head: "_card__head_1qi93_26",
|
|
@@ -4834,19 +4860,19 @@ var ni = {
|
|
|
4834
4860
|
"card--trend-up": "_card--trend-up_1qi93_68",
|
|
4835
4861
|
"card--trend-down": "_card--trend-down_1qi93_69",
|
|
4836
4862
|
card__description: "_card__description_1qi93_72"
|
|
4837
|
-
}, ri = {
|
|
4838
|
-
up: s,
|
|
4839
|
-
down: b,
|
|
4840
|
-
flat: n
|
|
4841
4863
|
}, ii = {
|
|
4864
|
+
up: u,
|
|
4865
|
+
down: c,
|
|
4866
|
+
flat: x
|
|
4867
|
+
}, ai = {
|
|
4842
4868
|
up: "success",
|
|
4843
4869
|
down: "danger",
|
|
4844
4870
|
flat: "neutral"
|
|
4845
|
-
},
|
|
4871
|
+
}, oi = ({ data: e }) => {
|
|
4846
4872
|
if (e.length < 2) return null;
|
|
4847
4873
|
let t = Math.min(...e), n = Math.max(...e) - t || 1;
|
|
4848
4874
|
return /* @__PURE__ */ j("svg", {
|
|
4849
|
-
className:
|
|
4875
|
+
className: si,
|
|
4850
4876
|
viewBox: "0 0 100 32",
|
|
4851
4877
|
preserveAspectRatio: "none",
|
|
4852
4878
|
"aria-hidden": "true",
|
|
@@ -4859,21 +4885,21 @@ var ni = {
|
|
|
4859
4885
|
strokeLinecap: "round"
|
|
4860
4886
|
})
|
|
4861
4887
|
});
|
|
4862
|
-
},
|
|
4863
|
-
let
|
|
4888
|
+
}, si = ri.card__sparkline, ci = ({ title: e, value: t, description: n, sparkline: r, delta: i, trend: a = "up", badgeVariant: o, variant: s = "minimal", icon: c, showMenu: l, onMenu: u, className: d }) => {
|
|
4889
|
+
let p = ii[a], m = (s === "icon" || s === "featured") && c;
|
|
4864
4890
|
return /* @__PURE__ */ M("div", {
|
|
4865
4891
|
className: [
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4892
|
+
ri.card,
|
|
4893
|
+
ri[`card--${s}`],
|
|
4894
|
+
ri[`card--trend-${a}`],
|
|
4869
4895
|
d ?? ""
|
|
4870
4896
|
].filter(Boolean).join(" "),
|
|
4871
4897
|
children: [
|
|
4872
4898
|
/* @__PURE__ */ M("div", {
|
|
4873
|
-
className:
|
|
4899
|
+
className: ri.card__head,
|
|
4874
4900
|
children: [
|
|
4875
|
-
|
|
4876
|
-
className:
|
|
4901
|
+
m && /* @__PURE__ */ j("span", {
|
|
4902
|
+
className: ri.card__icon,
|
|
4877
4903
|
"aria-hidden": "true",
|
|
4878
4904
|
children: /* @__PURE__ */ j(c, {
|
|
4879
4905
|
size: 18,
|
|
@@ -4881,15 +4907,15 @@ var ni = {
|
|
|
4881
4907
|
})
|
|
4882
4908
|
}),
|
|
4883
4909
|
/* @__PURE__ */ j("span", {
|
|
4884
|
-
className:
|
|
4910
|
+
className: ri.card__title,
|
|
4885
4911
|
children: e
|
|
4886
4912
|
}),
|
|
4887
4913
|
l && /* @__PURE__ */ j("button", {
|
|
4888
4914
|
type: "button",
|
|
4889
|
-
className:
|
|
4915
|
+
className: ri.card__menu,
|
|
4890
4916
|
onClick: u,
|
|
4891
4917
|
"aria-label": "More options",
|
|
4892
|
-
children: /* @__PURE__ */ j(
|
|
4918
|
+
children: /* @__PURE__ */ j(f, {
|
|
4893
4919
|
size: 16,
|
|
4894
4920
|
strokeWidth: N(16)
|
|
4895
4921
|
})
|
|
@@ -4897,21 +4923,21 @@ var ni = {
|
|
|
4897
4923
|
]
|
|
4898
4924
|
}),
|
|
4899
4925
|
/* @__PURE__ */ j("div", {
|
|
4900
|
-
className:
|
|
4926
|
+
className: ri.card__value,
|
|
4901
4927
|
children: t
|
|
4902
4928
|
}),
|
|
4903
|
-
r && /* @__PURE__ */ j(
|
|
4929
|
+
r && /* @__PURE__ */ j(oi, { data: r }),
|
|
4904
4930
|
(i || n) && /* @__PURE__ */ M("div", {
|
|
4905
|
-
className:
|
|
4931
|
+
className: ri.card__meta,
|
|
4906
4932
|
children: [i && /* @__PURE__ */ j(Gt, {
|
|
4907
|
-
variant: o ??
|
|
4908
|
-
leftIcon: /* @__PURE__ */ j(
|
|
4933
|
+
variant: o ?? ai[a],
|
|
4934
|
+
leftIcon: /* @__PURE__ */ j(p, {
|
|
4909
4935
|
size: 12,
|
|
4910
4936
|
strokeWidth: 2
|
|
4911
4937
|
}),
|
|
4912
4938
|
children: i
|
|
4913
4939
|
}), n && /* @__PURE__ */ j("p", {
|
|
4914
|
-
className:
|
|
4940
|
+
className: ri.card__description,
|
|
4915
4941
|
children: n
|
|
4916
4942
|
})]
|
|
4917
4943
|
})
|
|
@@ -4945,18 +4971,18 @@ var ni = {
|
|
|
4945
4971
|
"bodyRow--dropTarget": "_bodyRow--dropTarget_9nqt2_228",
|
|
4946
4972
|
dragCell: "_dragCell_9nqt2_235",
|
|
4947
4973
|
dragHandle: "_dragHandle_9nqt2_251"
|
|
4948
|
-
},
|
|
4949
|
-
function
|
|
4974
|
+
}, li = 640;
|
|
4975
|
+
function ui(e) {
|
|
4950
4976
|
let [t, n] = k.useState(!1);
|
|
4951
4977
|
return k.useEffect(() => {
|
|
4952
4978
|
if (e !== "auto") return;
|
|
4953
|
-
let t = window.matchMedia(`(max-width: ${
|
|
4979
|
+
let t = window.matchMedia(`(max-width: ${li}px)`);
|
|
4954
4980
|
n(t.matches);
|
|
4955
4981
|
let r = (e) => n(e.matches);
|
|
4956
4982
|
return t.addEventListener("change", r), () => t.removeEventListener("change", r);
|
|
4957
4983
|
}, [e]), e === "default" ? "default" : e === "stacked" || t ? "stacked" : "default";
|
|
4958
4984
|
}
|
|
4959
|
-
var
|
|
4985
|
+
var di = ({ checked: e, indeterminate: t, onChange: n, label: r }) => {
|
|
4960
4986
|
let i = k.useRef(null);
|
|
4961
4987
|
return k.useEffect(() => {
|
|
4962
4988
|
i.current && (i.current.indeterminate = !!t);
|
|
@@ -4987,10 +5013,10 @@ var ui = ({ checked: e, indeterminate: t, onChange: n, label: r }) => {
|
|
|
4987
5013
|
})]
|
|
4988
5014
|
});
|
|
4989
5015
|
};
|
|
4990
|
-
function
|
|
4991
|
-
let d =
|
|
5016
|
+
function fi({ columns: e, rows: t, selectable: n, selectedRows: r, onSelectionChange: i, rowKey: a, reorderable: o, onReorder: s, bordered: c = !0, responsive: l = "auto", className: u }) {
|
|
5017
|
+
let d = ui(l), f = r !== void 0, [p, m] = k.useState([]), h = f ? r : p, g = (e) => {
|
|
4992
5018
|
f || m(e), i?.(e);
|
|
4993
|
-
}, _ = t.length > 0 && h.length === t.length, v = h.length > 0 && !_, [y, b] = k.useState(null), [x, S] = k.useState(null), C =
|
|
5019
|
+
}, _ = t.length > 0 && h.length === t.length, v = h.length > 0 && !_, [y, b] = k.useState(null), [x, S] = k.useState(null), C = Xn(), w = () => {
|
|
4994
5020
|
if (y === null || x === null || y === x) {
|
|
4995
5021
|
b(null), S(null);
|
|
4996
5022
|
return;
|
|
@@ -5015,7 +5041,7 @@ function di({ columns: e, rows: t, selectable: n, selectedRows: r, onSelectionCh
|
|
|
5015
5041
|
].filter(Boolean).join(" "),
|
|
5016
5042
|
children: [n && /* @__PURE__ */ j("div", {
|
|
5017
5043
|
className: Q.card__selectRow,
|
|
5018
|
-
children: /* @__PURE__ */ j(
|
|
5044
|
+
children: /* @__PURE__ */ j(di, {
|
|
5019
5045
|
checked: i,
|
|
5020
5046
|
onChange: () => E(r),
|
|
5021
5047
|
label: `Select row ${r + 1}`
|
|
@@ -5051,7 +5077,7 @@ function di({ columns: e, rows: t, selectable: n, selectedRows: r, onSelectionCh
|
|
|
5051
5077
|
}),
|
|
5052
5078
|
n && /* @__PURE__ */ j("th", {
|
|
5053
5079
|
className: Q.checkCell,
|
|
5054
|
-
children: /* @__PURE__ */ j(
|
|
5080
|
+
children: /* @__PURE__ */ j(di, {
|
|
5055
5081
|
checked: _,
|
|
5056
5082
|
indeterminate: v,
|
|
5057
5083
|
onChange: T,
|
|
@@ -5104,7 +5130,7 @@ function di({ columns: e, rows: t, selectable: n, selectedRows: r, onSelectionCh
|
|
|
5104
5130
|
}),
|
|
5105
5131
|
n && /* @__PURE__ */ j("td", {
|
|
5106
5132
|
className: Q.checkCell,
|
|
5107
|
-
children: /* @__PURE__ */ j(
|
|
5133
|
+
children: /* @__PURE__ */ j(di, {
|
|
5108
5134
|
checked: i,
|
|
5109
5135
|
onChange: () => E(r),
|
|
5110
5136
|
label: `Select row ${r + 1}`
|
|
@@ -5121,7 +5147,7 @@ function di({ columns: e, rows: t, selectable: n, selectedRows: r, onSelectionCh
|
|
|
5121
5147
|
})]
|
|
5122
5148
|
});
|
|
5123
5149
|
}
|
|
5124
|
-
var
|
|
5150
|
+
var pi = {
|
|
5125
5151
|
tabs: "_tabs_1122j_3",
|
|
5126
5152
|
"tabs--borderless": "_tabs--borderless_1122j_16",
|
|
5127
5153
|
"tabs--fill": "_tabs--fill_1122j_21",
|
|
@@ -5130,7 +5156,7 @@ var fi = {
|
|
|
5130
5156
|
"tab--active": "_tab--active_1122j_63",
|
|
5131
5157
|
indicator: "_indicator_1122j_74",
|
|
5132
5158
|
"indicator--animated": "_indicator--animated_1122j_88"
|
|
5133
|
-
},
|
|
5159
|
+
}, mi = ({ items: e, value: t, defaultValue: n, onChange: r, bordered: i = !0, fill: a = !1, className: o }) => {
|
|
5134
5160
|
let s = t !== void 0, [c, l] = k.useState(n ?? e[0]?.value), u = s ? t : c, d = (e) => {
|
|
5135
5161
|
s || l(e), r?.(e);
|
|
5136
5162
|
}, f = k.useRef(null), p = k.useRef({}), [m, h] = k.useState(null), [g, _] = k.useState(!1);
|
|
@@ -5151,9 +5177,9 @@ var fi = {
|
|
|
5151
5177
|
ref: f,
|
|
5152
5178
|
role: "tablist",
|
|
5153
5179
|
className: [
|
|
5154
|
-
|
|
5155
|
-
i ? "" :
|
|
5156
|
-
a ?
|
|
5180
|
+
pi.tabs,
|
|
5181
|
+
i ? "" : pi["tabs--borderless"],
|
|
5182
|
+
a ? pi["tabs--fill"] : "",
|
|
5157
5183
|
o ?? ""
|
|
5158
5184
|
].filter(Boolean).join(" "),
|
|
5159
5185
|
children: [e.map((e) => {
|
|
@@ -5167,9 +5193,9 @@ var fi = {
|
|
|
5167
5193
|
"aria-selected": t,
|
|
5168
5194
|
disabled: e.disabled,
|
|
5169
5195
|
className: [
|
|
5170
|
-
|
|
5171
|
-
t ?
|
|
5172
|
-
e.disabled ?
|
|
5196
|
+
pi.tab,
|
|
5197
|
+
t ? pi["tab--active"] : "",
|
|
5198
|
+
e.disabled ? pi["tab--disabled"] : ""
|
|
5173
5199
|
].filter(Boolean).join(" "),
|
|
5174
5200
|
onClick: () => d(e.value),
|
|
5175
5201
|
children: [n && /* @__PURE__ */ j(n, {
|
|
@@ -5180,14 +5206,14 @@ var fi = {
|
|
|
5180
5206
|
}, e.value);
|
|
5181
5207
|
}), m && /* @__PURE__ */ j("span", {
|
|
5182
5208
|
"aria-hidden": "true",
|
|
5183
|
-
className: [
|
|
5209
|
+
className: [pi.indicator, g ? pi["indicator--animated"] : ""].filter(Boolean).join(" "),
|
|
5184
5210
|
style: {
|
|
5185
5211
|
transform: `translateX(${m.left}px)`,
|
|
5186
5212
|
width: m.width
|
|
5187
5213
|
}
|
|
5188
5214
|
})]
|
|
5189
5215
|
});
|
|
5190
|
-
},
|
|
5216
|
+
}, hi = {
|
|
5191
5217
|
wrapper: "_wrapper_w6wtp_8",
|
|
5192
5218
|
bubble: "_bubble_w6wtp_8",
|
|
5193
5219
|
bubble__title: "_bubble__title_w6wtp_46",
|
|
@@ -5209,7 +5235,7 @@ var fi = {
|
|
|
5209
5235
|
"caret--center-left": "_caret--center-left_w6wtp_121",
|
|
5210
5236
|
"bubble--center-right": "_bubble--center-right_w6wtp_131",
|
|
5211
5237
|
"caret--center-right": "_caret--center-right_w6wtp_139"
|
|
5212
|
-
},
|
|
5238
|
+
}, gi = ({ title: e, subtitle: t, pointer: n = "top-center", children: r, className: i }) => {
|
|
5213
5239
|
let [a, o] = k.useState(!1);
|
|
5214
5240
|
return k.useEffect(() => {
|
|
5215
5241
|
let e = (e) => {
|
|
@@ -5217,24 +5243,24 @@ var fi = {
|
|
|
5217
5243
|
};
|
|
5218
5244
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
5219
5245
|
}, []), /* @__PURE__ */ M("span", {
|
|
5220
|
-
className: [
|
|
5246
|
+
className: [hi.wrapper, i ?? ""].filter(Boolean).join(" "),
|
|
5221
5247
|
"data-dismissed": a || void 0,
|
|
5222
5248
|
onMouseLeave: () => o(!1),
|
|
5223
5249
|
onBlur: () => o(!1),
|
|
5224
5250
|
children: [r, /* @__PURE__ */ M("span", {
|
|
5225
5251
|
role: "tooltip",
|
|
5226
|
-
className: [
|
|
5252
|
+
className: [hi.bubble, hi[`bubble--${n}`]].join(" "),
|
|
5227
5253
|
children: [
|
|
5228
5254
|
/* @__PURE__ */ j("span", {
|
|
5229
|
-
className:
|
|
5255
|
+
className: hi.bubble__title,
|
|
5230
5256
|
children: e
|
|
5231
5257
|
}),
|
|
5232
5258
|
t && /* @__PURE__ */ j("span", {
|
|
5233
|
-
className:
|
|
5259
|
+
className: hi.bubble__subtitle,
|
|
5234
5260
|
children: t
|
|
5235
5261
|
}),
|
|
5236
5262
|
/* @__PURE__ */ j("span", {
|
|
5237
|
-
className: [
|
|
5263
|
+
className: [hi.caret, hi[`caret--${n}`]].join(" "),
|
|
5238
5264
|
"aria-hidden": "true"
|
|
5239
5265
|
})
|
|
5240
5266
|
]
|
|
@@ -5263,16 +5289,16 @@ var fi = {
|
|
|
5263
5289
|
"bar__left--search": "_bar__left--search_yqi1k_84",
|
|
5264
5290
|
bar__accountChevron: "_bar__accountChevron_yqi1k_98",
|
|
5265
5291
|
"bar__accountChevron--open": "_bar__accountChevron--open_yqi1k_104"
|
|
5266
|
-
},
|
|
5267
|
-
let v =
|
|
5292
|
+
}, _i = ({ type: t = "search", density: n = "md", left: r, showToggle: i = !0, onToggle: a, toggleIcon: o = w, showActions: s = !0, showHelp: c = !0, hasUnread: l = !1, rightSlot: u, account: d, accountOpen: f = !1, avatar: p, title: m, subtitle: h, actions: g, className: _ }) => {
|
|
5293
|
+
let v = Xn(), y = Xn(), x = n === "md" ? 20 : 18, S = N(x);
|
|
5268
5294
|
return /* @__PURE__ */ j("header", {
|
|
5269
5295
|
className: [
|
|
5270
5296
|
$.bar,
|
|
5297
|
+
$[`bar--${n}`],
|
|
5271
5298
|
$[`bar--${t}`],
|
|
5272
|
-
$[`bar--${e}`],
|
|
5273
5299
|
_ ?? ""
|
|
5274
5300
|
].filter(Boolean).join(" "),
|
|
5275
|
-
children:
|
|
5301
|
+
children: t === "chat" ? /* @__PURE__ */ M(A, { children: [
|
|
5276
5302
|
p && /* @__PURE__ */ j("span", {
|
|
5277
5303
|
className: $.bar__chatAvatar,
|
|
5278
5304
|
children: p
|
|
@@ -5297,19 +5323,19 @@ var fi = {
|
|
|
5297
5323
|
] }) : /* @__PURE__ */ M(A, { children: [
|
|
5298
5324
|
/* @__PURE__ */ M("div", {
|
|
5299
5325
|
className: $.bar__leftGroup,
|
|
5300
|
-
children: [
|
|
5326
|
+
children: [i && /* @__PURE__ */ j("button", {
|
|
5301
5327
|
type: "button",
|
|
5302
5328
|
className: $.bar__icon,
|
|
5303
|
-
onClick:
|
|
5329
|
+
onClick: a,
|
|
5304
5330
|
"aria-label": "Toggle sidebar",
|
|
5305
|
-
children: /* @__PURE__ */ j(
|
|
5306
|
-
size:
|
|
5331
|
+
children: /* @__PURE__ */ j(o, {
|
|
5332
|
+
size: x,
|
|
5307
5333
|
strokeWidth: S
|
|
5308
5334
|
})
|
|
5309
5335
|
}), /* @__PURE__ */ j("div", {
|
|
5310
|
-
className: [$.bar__left,
|
|
5311
|
-
"data-type":
|
|
5312
|
-
children:
|
|
5336
|
+
className: [$.bar__left, t === "search" ? $["bar__left--search"] : ""].filter(Boolean).join(" "),
|
|
5337
|
+
"data-type": t,
|
|
5338
|
+
children: r
|
|
5313
5339
|
})]
|
|
5314
5340
|
}),
|
|
5315
5341
|
/* @__PURE__ */ j("div", { className: $.bar__spacer }),
|
|
@@ -5317,19 +5343,19 @@ var fi = {
|
|
|
5317
5343
|
className: $.bar__right,
|
|
5318
5344
|
children: [
|
|
5319
5345
|
u,
|
|
5320
|
-
|
|
5346
|
+
s && /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ M("span", {
|
|
5321
5347
|
ref: v.ref,
|
|
5322
5348
|
...v.groupProps,
|
|
5323
5349
|
className: $.bar__iconGroup,
|
|
5324
5350
|
children: [
|
|
5325
5351
|
v.highlight,
|
|
5326
|
-
|
|
5352
|
+
c && /* @__PURE__ */ j("button", {
|
|
5327
5353
|
type: "button",
|
|
5328
5354
|
"data-hover-item": "",
|
|
5329
5355
|
className: $.bar__icon,
|
|
5330
5356
|
"aria-label": "Help",
|
|
5331
5357
|
children: /* @__PURE__ */ j(ee, {
|
|
5332
|
-
size:
|
|
5358
|
+
size: x,
|
|
5333
5359
|
strokeWidth: S
|
|
5334
5360
|
})
|
|
5335
5361
|
}),
|
|
@@ -5340,10 +5366,10 @@ var fi = {
|
|
|
5340
5366
|
"aria-label": "Notifications",
|
|
5341
5367
|
children: /* @__PURE__ */ M("span", {
|
|
5342
5368
|
className: $.bar__bell,
|
|
5343
|
-
children: [/* @__PURE__ */ j(
|
|
5344
|
-
size:
|
|
5369
|
+
children: [/* @__PURE__ */ j(b, {
|
|
5370
|
+
size: x,
|
|
5345
5371
|
strokeWidth: S
|
|
5346
|
-
}),
|
|
5372
|
+
}), l && /* @__PURE__ */ j("span", {
|
|
5347
5373
|
className: $.bar__dot,
|
|
5348
5374
|
"aria-hidden": "true"
|
|
5349
5375
|
})]
|
|
@@ -5353,7 +5379,7 @@ var fi = {
|
|
|
5353
5379
|
}), /* @__PURE__ */ j("span", { className: $.bar__divider })] }),
|
|
5354
5380
|
d && /* @__PURE__ */ M("div", {
|
|
5355
5381
|
className: $.bar__account,
|
|
5356
|
-
children: [d, /* @__PURE__ */ j(
|
|
5382
|
+
children: [d, /* @__PURE__ */ j(e, {
|
|
5357
5383
|
size: 16,
|
|
5358
5384
|
strokeWidth: N(16),
|
|
5359
5385
|
className: [$.bar__accountChevron, f ? $["bar__accountChevron--open"] : ""].filter(Boolean).join(" ")
|
|
@@ -5365,4 +5391,4 @@ var fi = {
|
|
|
5365
5391
|
});
|
|
5366
5392
|
};
|
|
5367
5393
|
//#endregion
|
|
5368
|
-
export { cn as $,
|
|
5394
|
+
export { cn as $, tr as A, Oe as At, Nn as B, vr as C, We as Ct, sr as D, Ie as Dt, cr as E, Re as Et, Un as F, wn as G, kn as H, Bn as I, vn as J, Cn as K, zn as L, Zn as M, N as Mt, Xn as N, ar as O, Ne as Ot, Wn as P, un as Q, Ln as R, Sr as S, Ge as St, dr as T, Ve as Tt, En as U, jn as V, Tn as W, hn as X, _n as Y, pn as Z, Mr as _, Ct as _t, ci as a, Ut as at, kr as b, tt as bt, Xr as c, It as ct, Gr as d, At as dt, $t as et, Ur as f, kt as ft, Ir as g, _t as gt, Rr as h, Tt as ht, fi as i, Gt as it, $n as j, De as jt, rr as k, Me as kt, Jr as l, Ft as lt, zr as m, lt as mt, gi as n, Xt as nt, ni as o, zt as ot, Vr as p, Ot as pt, bn as q, mi as r, qt as rt, Qr as s, Lt as st, _i as t, Qt as tt, Kr as u, Mt as ut, jr as v, it as vt, mr as w, F as wt, Er as x, $e as xt, Or as y, rt as yt, Fn as z };
|