@trading-game/design-intelligence-layer 0.16.1 → 0.16.2
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 +21 -0
- package/dist/index.cjs +935 -780
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +46 -1
- package/dist/index.d.ts +46 -1
- package/dist/index.js +906 -752
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -86,6 +86,7 @@ __export(index_exports, {
|
|
|
86
86
|
AvatarGroupCount: () => AvatarGroupCount,
|
|
87
87
|
AvatarImage: () => AvatarImage,
|
|
88
88
|
Badge: () => Badge,
|
|
89
|
+
Banner: () => Banner,
|
|
89
90
|
Breadcrumb: () => Breadcrumb,
|
|
90
91
|
BreadcrumbEllipsis: () => BreadcrumbEllipsis,
|
|
91
92
|
BreadcrumbItem: () => BreadcrumbItem,
|
|
@@ -1171,17 +1172,170 @@ function Badge(_a) {
|
|
|
1171
1172
|
);
|
|
1172
1173
|
}
|
|
1173
1174
|
|
|
1174
|
-
// components/ui/
|
|
1175
|
+
// components/ui/banner.tsx
|
|
1176
|
+
var React2 = __toESM(require("react"), 1);
|
|
1175
1177
|
var import_lucide_react3 = require("lucide-react");
|
|
1176
|
-
var import_radix_ui7 = require("radix-ui");
|
|
1177
1178
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
1179
|
+
var SURFACE_CLASSES = "w-full rounded-md border border-primary/20 bg-[linear-gradient(135deg,#EBEBFF_0%,#FFFFFF_100%)] px-4 py-3.5";
|
|
1180
|
+
function DefaultIconBadge() {
|
|
1181
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "inline-flex size-10 shrink-0 items-center justify-center rounded-full bg-primary text-on-primary", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react3.Gift, { className: "size-5" }) });
|
|
1182
|
+
}
|
|
1183
|
+
function Banner(_a) {
|
|
1184
|
+
var _b = _a, {
|
|
1185
|
+
layout = "inline",
|
|
1186
|
+
title,
|
|
1187
|
+
description,
|
|
1188
|
+
icon,
|
|
1189
|
+
action,
|
|
1190
|
+
actions,
|
|
1191
|
+
onDismiss,
|
|
1192
|
+
dismissLabel = "Dismiss",
|
|
1193
|
+
onClick,
|
|
1194
|
+
className
|
|
1195
|
+
} = _b, props = __objRest(_b, [
|
|
1196
|
+
"layout",
|
|
1197
|
+
"title",
|
|
1198
|
+
"description",
|
|
1199
|
+
"icon",
|
|
1200
|
+
"action",
|
|
1201
|
+
"actions",
|
|
1202
|
+
"onDismiss",
|
|
1203
|
+
"dismissLabel",
|
|
1204
|
+
"onClick",
|
|
1205
|
+
"className"
|
|
1206
|
+
]);
|
|
1207
|
+
var _a2;
|
|
1208
|
+
if (!title && !description) {
|
|
1209
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1210
|
+
console.warn(
|
|
1211
|
+
"Banner: requires at least one of `title` or `description`. Rendering null."
|
|
1212
|
+
);
|
|
1213
|
+
}
|
|
1214
|
+
return null;
|
|
1215
|
+
}
|
|
1216
|
+
const isInline = layout === "inline";
|
|
1217
|
+
const showIcon = icon !== null;
|
|
1218
|
+
const resolvedIcon = icon === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DefaultIconBadge, {}) : icon;
|
|
1219
|
+
const showCloseButton = typeof onDismiss === "function";
|
|
1220
|
+
const isClickable = typeof onClick === "function";
|
|
1221
|
+
const buttonsSuppressed = isClickable && (Boolean(action) || ((_a2 = actions == null ? void 0 : actions.length) != null ? _a2 : 0) > 0);
|
|
1222
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1223
|
+
if (isInline && actions && actions.length > 0) {
|
|
1224
|
+
console.warn(
|
|
1225
|
+
'Banner: `actions` is ignored when layout="inline". Use `action` instead.'
|
|
1226
|
+
);
|
|
1227
|
+
}
|
|
1228
|
+
if (!isInline && action) {
|
|
1229
|
+
console.warn(
|
|
1230
|
+
'Banner: `action` is ignored when layout="card". Use `actions` instead.'
|
|
1231
|
+
);
|
|
1232
|
+
}
|
|
1233
|
+
if (buttonsSuppressed) {
|
|
1234
|
+
console.warn(
|
|
1235
|
+
"Banner: `onClick` (clickable surface) is mutually exclusive with `action` / `actions`. Ignoring the buttons \u2014 the whole banner is the CTA."
|
|
1236
|
+
);
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
const effectiveAction = isClickable ? void 0 : action;
|
|
1240
|
+
const effectiveActions = isClickable ? void 0 : actions;
|
|
1241
|
+
const clickableClasses = isClickable ? "cursor-pointer transition-opacity hover:opacity-90 active:opacity-80 outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:ring-offset-2" : "";
|
|
1242
|
+
const handleKeyDown = isClickable ? (e) => {
|
|
1243
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
1244
|
+
e.preventDefault();
|
|
1245
|
+
onClick == null ? void 0 : onClick();
|
|
1246
|
+
}
|
|
1247
|
+
} : void 0;
|
|
1248
|
+
const interactiveProps = isClickable ? {
|
|
1249
|
+
role: "button",
|
|
1250
|
+
tabIndex: 0,
|
|
1251
|
+
onClick,
|
|
1252
|
+
onKeyDown: handleKeyDown
|
|
1253
|
+
} : {};
|
|
1254
|
+
const body = /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "min-w-0 flex-1", children: [
|
|
1255
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { className: "m-0 text-sm font-bold leading-snug text-on-prominent [&>b]:text-primary", children: title }) : null,
|
|
1256
|
+
description ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { className: "m-0 mt-0.5 text-xs font-medium leading-snug text-on-subtle", children: description }) : null
|
|
1257
|
+
] });
|
|
1258
|
+
const closeButton = showCloseButton ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1259
|
+
"button",
|
|
1260
|
+
{
|
|
1261
|
+
type: "button",
|
|
1262
|
+
onClick: (e) => {
|
|
1263
|
+
e.stopPropagation();
|
|
1264
|
+
onDismiss == null ? void 0 : onDismiss();
|
|
1265
|
+
},
|
|
1266
|
+
"aria-label": dismissLabel,
|
|
1267
|
+
className: "inline-flex size-8 shrink-0 items-center justify-center rounded-xs cursor-pointer text-on-subtle outline-none transition-colors hover:bg-secondary-hover hover:text-on-prominent focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [&_svg]:size-4 [&_svg]:pointer-events-none",
|
|
1268
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react3.X, {})
|
|
1269
|
+
}
|
|
1270
|
+
) : null;
|
|
1271
|
+
const iconColumn = showIcon ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { "aria-hidden": true, className: "inline-flex shrink-0 translate-y-px", children: resolvedIcon }) : null;
|
|
1272
|
+
if (isInline) {
|
|
1273
|
+
const hasAction = Boolean(effectiveAction);
|
|
1274
|
+
const rowTemplate = hasAction ? "grid-rows-[auto_auto] gap-y-3 sm:grid-rows-1 sm:gap-y-0" : "grid-rows-1 gap-y-0";
|
|
1275
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
1276
|
+
"div",
|
|
1277
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
1278
|
+
"data-slot": "banner",
|
|
1279
|
+
"data-layout": "inline",
|
|
1280
|
+
"data-clickable": isClickable ? "true" : void 0,
|
|
1281
|
+
className: cn(
|
|
1282
|
+
"grid grid-cols-[auto_1fr_auto] items-center gap-x-4 sm:grid-cols-[auto_1fr_auto_auto]",
|
|
1283
|
+
rowTemplate,
|
|
1284
|
+
SURFACE_CLASSES,
|
|
1285
|
+
clickableClasses,
|
|
1286
|
+
className
|
|
1287
|
+
)
|
|
1288
|
+
}, interactiveProps), props), {
|
|
1289
|
+
children: [
|
|
1290
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "col-start-1 row-start-1", children: iconColumn }),
|
|
1291
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "col-start-2 row-start-1 min-w-0", children: body }),
|
|
1292
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "col-start-3 row-start-1 sm:col-start-4", children: closeButton }),
|
|
1293
|
+
hasAction ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "col-start-2 row-start-2 justify-self-start sm:col-start-3 sm:row-start-1 sm:self-center sm:justify-self-end", children: wrapAction2(effectiveAction, "primary") }) : null
|
|
1294
|
+
]
|
|
1295
|
+
})
|
|
1296
|
+
);
|
|
1297
|
+
}
|
|
1298
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
1299
|
+
"div",
|
|
1300
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
1301
|
+
"data-slot": "banner",
|
|
1302
|
+
"data-layout": "card",
|
|
1303
|
+
"data-clickable": isClickable ? "true" : void 0,
|
|
1304
|
+
className: cn(
|
|
1305
|
+
"grid grid-cols-[auto_1fr_auto] grid-rows-[auto_auto] items-center gap-x-4 gap-y-3",
|
|
1306
|
+
SURFACE_CLASSES,
|
|
1307
|
+
clickableClasses,
|
|
1308
|
+
className
|
|
1309
|
+
)
|
|
1310
|
+
}, interactiveProps), props), {
|
|
1311
|
+
children: [
|
|
1312
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "col-start-1 row-start-1", children: iconColumn }),
|
|
1313
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "col-start-2 row-start-1 min-w-0", children: body }),
|
|
1314
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "col-start-3 row-start-1", children: closeButton }),
|
|
1315
|
+
effectiveActions && effectiveActions.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "col-span-3 col-start-2 row-start-2 flex flex-wrap items-center justify-start gap-2", children: effectiveActions.slice(0, 2).map((node, i) => {
|
|
1316
|
+
const fallbackVariant = i === 0 ? "secondary" : "primary";
|
|
1317
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(React2.Fragment, { children: wrapAction2(node, fallbackVariant) }, i);
|
|
1318
|
+
}) }) : null
|
|
1319
|
+
]
|
|
1320
|
+
})
|
|
1321
|
+
);
|
|
1322
|
+
}
|
|
1323
|
+
function wrapAction2(node, defaultVariant = "primary") {
|
|
1324
|
+
if (React2.isValidElement(node)) return node;
|
|
1325
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Button, { variant: defaultVariant, size: "sm", children: node });
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
// components/ui/breadcrumb.tsx
|
|
1329
|
+
var import_lucide_react4 = require("lucide-react");
|
|
1330
|
+
var import_radix_ui7 = require("radix-ui");
|
|
1331
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
1178
1332
|
function Breadcrumb(_a) {
|
|
1179
1333
|
var props = __objRest(_a, []);
|
|
1180
|
-
return /* @__PURE__ */ (0,
|
|
1334
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("nav", __spreadValues({ "aria-label": "breadcrumb", "data-slot": "breadcrumb" }, props));
|
|
1181
1335
|
}
|
|
1182
1336
|
function BreadcrumbList(_a) {
|
|
1183
1337
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1184
|
-
return /* @__PURE__ */ (0,
|
|
1338
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1185
1339
|
"ol",
|
|
1186
1340
|
__spreadValues({
|
|
1187
1341
|
"data-slot": "breadcrumb-list",
|
|
@@ -1194,7 +1348,7 @@ function BreadcrumbList(_a) {
|
|
|
1194
1348
|
}
|
|
1195
1349
|
function BreadcrumbItem(_a) {
|
|
1196
1350
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1197
|
-
return /* @__PURE__ */ (0,
|
|
1351
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1198
1352
|
"li",
|
|
1199
1353
|
__spreadValues({
|
|
1200
1354
|
"data-slot": "breadcrumb-item",
|
|
@@ -1211,7 +1365,7 @@ function BreadcrumbLink(_a) {
|
|
|
1211
1365
|
"className"
|
|
1212
1366
|
]);
|
|
1213
1367
|
const Comp = asChild ? import_radix_ui7.Slot.Root : "a";
|
|
1214
|
-
return /* @__PURE__ */ (0,
|
|
1368
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1215
1369
|
Comp,
|
|
1216
1370
|
__spreadValues({
|
|
1217
1371
|
"data-slot": "breadcrumb-link",
|
|
@@ -1221,7 +1375,7 @@ function BreadcrumbLink(_a) {
|
|
|
1221
1375
|
}
|
|
1222
1376
|
function BreadcrumbPage(_a) {
|
|
1223
1377
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1224
|
-
return /* @__PURE__ */ (0,
|
|
1378
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1225
1379
|
"span",
|
|
1226
1380
|
__spreadValues({
|
|
1227
1381
|
"data-slot": "breadcrumb-page",
|
|
@@ -1240,7 +1394,7 @@ function BreadcrumbSeparator(_a) {
|
|
|
1240
1394
|
"children",
|
|
1241
1395
|
"className"
|
|
1242
1396
|
]);
|
|
1243
|
-
return /* @__PURE__ */ (0,
|
|
1397
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1244
1398
|
"li",
|
|
1245
1399
|
__spreadProps(__spreadValues({
|
|
1246
1400
|
"data-slot": "breadcrumb-separator",
|
|
@@ -1248,7 +1402,7 @@ function BreadcrumbSeparator(_a) {
|
|
|
1248
1402
|
"aria-hidden": "true",
|
|
1249
1403
|
className: cn("[&>svg]:size-3.5", className)
|
|
1250
1404
|
}, props), {
|
|
1251
|
-
children: children != null ? children : /* @__PURE__ */ (0,
|
|
1405
|
+
children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react4.ChevronRight, {})
|
|
1252
1406
|
})
|
|
1253
1407
|
);
|
|
1254
1408
|
}
|
|
@@ -1258,7 +1412,7 @@ function BreadcrumbEllipsis(_a) {
|
|
|
1258
1412
|
} = _b, props = __objRest(_b, [
|
|
1259
1413
|
"className"
|
|
1260
1414
|
]);
|
|
1261
|
-
return /* @__PURE__ */ (0,
|
|
1415
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
1262
1416
|
"span",
|
|
1263
1417
|
__spreadProps(__spreadValues({
|
|
1264
1418
|
"data-slot": "breadcrumb-ellipsis",
|
|
@@ -1267,18 +1421,18 @@ function BreadcrumbEllipsis(_a) {
|
|
|
1267
1421
|
className: cn("flex size-9 items-center justify-center", className)
|
|
1268
1422
|
}, props), {
|
|
1269
1423
|
children: [
|
|
1270
|
-
/* @__PURE__ */ (0,
|
|
1271
|
-
/* @__PURE__ */ (0,
|
|
1424
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react4.MoreHorizontal, { className: "size-4" }),
|
|
1425
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "sr-only", children: "More" })
|
|
1272
1426
|
]
|
|
1273
1427
|
})
|
|
1274
1428
|
);
|
|
1275
1429
|
}
|
|
1276
1430
|
|
|
1277
1431
|
// components/ui/calendar.tsx
|
|
1278
|
-
var
|
|
1279
|
-
var
|
|
1432
|
+
var React3 = __toESM(require("react"), 1);
|
|
1433
|
+
var import_lucide_react5 = require("lucide-react");
|
|
1280
1434
|
var import_react_day_picker = require("react-day-picker");
|
|
1281
|
-
var
|
|
1435
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
1282
1436
|
function Calendar(_a) {
|
|
1283
1437
|
var _b = _a, {
|
|
1284
1438
|
className,
|
|
@@ -1298,7 +1452,7 @@ function Calendar(_a) {
|
|
|
1298
1452
|
"components"
|
|
1299
1453
|
]);
|
|
1300
1454
|
const defaultClassNames = (0, import_react_day_picker.getDefaultClassNames)();
|
|
1301
|
-
return /* @__PURE__ */ (0,
|
|
1455
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1302
1456
|
import_react_day_picker.DayPicker,
|
|
1303
1457
|
__spreadValues({
|
|
1304
1458
|
showOutsideDays,
|
|
@@ -1397,7 +1551,7 @@ function Calendar(_a) {
|
|
|
1397
1551
|
components: __spreadValues({
|
|
1398
1552
|
Root: (_a2) => {
|
|
1399
1553
|
var _b2 = _a2, { className: className2, rootRef } = _b2, props2 = __objRest(_b2, ["className", "rootRef"]);
|
|
1400
|
-
return /* @__PURE__ */ (0,
|
|
1554
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1401
1555
|
"div",
|
|
1402
1556
|
__spreadValues({
|
|
1403
1557
|
"data-slot": "calendar",
|
|
@@ -1409,22 +1563,22 @@ function Calendar(_a) {
|
|
|
1409
1563
|
Chevron: (_c) => {
|
|
1410
1564
|
var _d = _c, { className: className2, orientation } = _d, props2 = __objRest(_d, ["className", "orientation"]);
|
|
1411
1565
|
if (orientation === "left") {
|
|
1412
|
-
return /* @__PURE__ */ (0,
|
|
1566
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_lucide_react5.ChevronLeftIcon, __spreadValues({ className: cn("size-4", className2) }, props2));
|
|
1413
1567
|
}
|
|
1414
1568
|
if (orientation === "right") {
|
|
1415
|
-
return /* @__PURE__ */ (0,
|
|
1416
|
-
|
|
1569
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1570
|
+
import_lucide_react5.ChevronRightIcon,
|
|
1417
1571
|
__spreadValues({
|
|
1418
1572
|
className: cn("size-4", className2)
|
|
1419
1573
|
}, props2)
|
|
1420
1574
|
);
|
|
1421
1575
|
}
|
|
1422
|
-
return /* @__PURE__ */ (0,
|
|
1576
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_lucide_react5.ChevronDownIcon, __spreadValues({ className: cn("size-4", className2) }, props2));
|
|
1423
1577
|
},
|
|
1424
1578
|
DayButton: CalendarDayButton,
|
|
1425
1579
|
WeekNumber: (_e) => {
|
|
1426
1580
|
var _f = _e, { children } = _f, props2 = __objRest(_f, ["children"]);
|
|
1427
|
-
return /* @__PURE__ */ (0,
|
|
1581
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("td", __spreadProps(__spreadValues({}, props2), { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children }) }));
|
|
1428
1582
|
}
|
|
1429
1583
|
}, components)
|
|
1430
1584
|
}, props)
|
|
@@ -1441,12 +1595,12 @@ function CalendarDayButton(_a) {
|
|
|
1441
1595
|
"modifiers"
|
|
1442
1596
|
]);
|
|
1443
1597
|
const defaultClassNames = (0, import_react_day_picker.getDefaultClassNames)();
|
|
1444
|
-
const ref =
|
|
1445
|
-
|
|
1598
|
+
const ref = React3.useRef(null);
|
|
1599
|
+
React3.useEffect(() => {
|
|
1446
1600
|
var _a2;
|
|
1447
1601
|
if (modifiers.focused) (_a2 = ref.current) == null ? void 0 : _a2.focus();
|
|
1448
1602
|
}, [modifiers.focused]);
|
|
1449
|
-
return /* @__PURE__ */ (0,
|
|
1603
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1450
1604
|
Button,
|
|
1451
1605
|
__spreadValues({
|
|
1452
1606
|
ref,
|
|
@@ -1468,10 +1622,10 @@ function CalendarDayButton(_a) {
|
|
|
1468
1622
|
}
|
|
1469
1623
|
|
|
1470
1624
|
// components/ui/card.tsx
|
|
1471
|
-
var
|
|
1625
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
1472
1626
|
function Card(_a) {
|
|
1473
1627
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1474
|
-
return /* @__PURE__ */ (0,
|
|
1628
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1475
1629
|
"div",
|
|
1476
1630
|
__spreadValues({
|
|
1477
1631
|
"data-slot": "card",
|
|
@@ -1484,7 +1638,7 @@ function Card(_a) {
|
|
|
1484
1638
|
}
|
|
1485
1639
|
function CardHeader(_a) {
|
|
1486
1640
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1487
|
-
return /* @__PURE__ */ (0,
|
|
1641
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1488
1642
|
"div",
|
|
1489
1643
|
__spreadValues({
|
|
1490
1644
|
"data-slot": "card-header",
|
|
@@ -1497,7 +1651,7 @@ function CardHeader(_a) {
|
|
|
1497
1651
|
}
|
|
1498
1652
|
function CardTitle(_a) {
|
|
1499
1653
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1500
|
-
return /* @__PURE__ */ (0,
|
|
1654
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1501
1655
|
"div",
|
|
1502
1656
|
__spreadValues({
|
|
1503
1657
|
"data-slot": "card-title",
|
|
@@ -1507,7 +1661,7 @@ function CardTitle(_a) {
|
|
|
1507
1661
|
}
|
|
1508
1662
|
function CardDescription(_a) {
|
|
1509
1663
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1510
|
-
return /* @__PURE__ */ (0,
|
|
1664
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1511
1665
|
"div",
|
|
1512
1666
|
__spreadValues({
|
|
1513
1667
|
"data-slot": "card-description",
|
|
@@ -1517,7 +1671,7 @@ function CardDescription(_a) {
|
|
|
1517
1671
|
}
|
|
1518
1672
|
function CardAction(_a) {
|
|
1519
1673
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1520
|
-
return /* @__PURE__ */ (0,
|
|
1674
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1521
1675
|
"div",
|
|
1522
1676
|
__spreadValues({
|
|
1523
1677
|
"data-slot": "card-action",
|
|
@@ -1530,7 +1684,7 @@ function CardAction(_a) {
|
|
|
1530
1684
|
}
|
|
1531
1685
|
function CardContent(_a) {
|
|
1532
1686
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1533
|
-
return /* @__PURE__ */ (0,
|
|
1687
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1534
1688
|
"div",
|
|
1535
1689
|
__spreadValues({
|
|
1536
1690
|
"data-slot": "card-content",
|
|
@@ -1540,7 +1694,7 @@ function CardContent(_a) {
|
|
|
1540
1694
|
}
|
|
1541
1695
|
function CardFooter(_a) {
|
|
1542
1696
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1543
|
-
return /* @__PURE__ */ (0,
|
|
1697
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1544
1698
|
"div",
|
|
1545
1699
|
__spreadValues({
|
|
1546
1700
|
"data-slot": "card-footer",
|
|
@@ -1550,13 +1704,13 @@ function CardFooter(_a) {
|
|
|
1550
1704
|
}
|
|
1551
1705
|
|
|
1552
1706
|
// components/ui/carousel.tsx
|
|
1553
|
-
var
|
|
1707
|
+
var React4 = __toESM(require("react"), 1);
|
|
1554
1708
|
var import_embla_carousel_react = __toESM(require("embla-carousel-react"), 1);
|
|
1555
|
-
var
|
|
1556
|
-
var
|
|
1557
|
-
var CarouselContext =
|
|
1709
|
+
var import_lucide_react6 = require("lucide-react");
|
|
1710
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
1711
|
+
var CarouselContext = React4.createContext(null);
|
|
1558
1712
|
function useCarousel() {
|
|
1559
|
-
const context =
|
|
1713
|
+
const context = React4.useContext(CarouselContext);
|
|
1560
1714
|
if (!context) {
|
|
1561
1715
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
1562
1716
|
}
|
|
@@ -1584,20 +1738,20 @@ function Carousel(_a) {
|
|
|
1584
1738
|
}),
|
|
1585
1739
|
plugins
|
|
1586
1740
|
);
|
|
1587
|
-
const [canScrollPrev, setCanScrollPrev] =
|
|
1588
|
-
const [canScrollNext, setCanScrollNext] =
|
|
1589
|
-
const onSelect =
|
|
1741
|
+
const [canScrollPrev, setCanScrollPrev] = React4.useState(false);
|
|
1742
|
+
const [canScrollNext, setCanScrollNext] = React4.useState(false);
|
|
1743
|
+
const onSelect = React4.useCallback((api2) => {
|
|
1590
1744
|
if (!api2) return;
|
|
1591
1745
|
setCanScrollPrev(api2.canScrollPrev());
|
|
1592
1746
|
setCanScrollNext(api2.canScrollNext());
|
|
1593
1747
|
}, []);
|
|
1594
|
-
const scrollPrev =
|
|
1748
|
+
const scrollPrev = React4.useCallback(() => {
|
|
1595
1749
|
api == null ? void 0 : api.scrollPrev();
|
|
1596
1750
|
}, [api]);
|
|
1597
|
-
const scrollNext =
|
|
1751
|
+
const scrollNext = React4.useCallback(() => {
|
|
1598
1752
|
api == null ? void 0 : api.scrollNext();
|
|
1599
1753
|
}, [api]);
|
|
1600
|
-
const handleKeyDown =
|
|
1754
|
+
const handleKeyDown = React4.useCallback(
|
|
1601
1755
|
(event) => {
|
|
1602
1756
|
if (event.key === "ArrowLeft") {
|
|
1603
1757
|
event.preventDefault();
|
|
@@ -1609,11 +1763,11 @@ function Carousel(_a) {
|
|
|
1609
1763
|
},
|
|
1610
1764
|
[scrollPrev, scrollNext]
|
|
1611
1765
|
);
|
|
1612
|
-
|
|
1766
|
+
React4.useEffect(() => {
|
|
1613
1767
|
if (!api || !setApi) return;
|
|
1614
1768
|
setApi(api);
|
|
1615
1769
|
}, [api, setApi]);
|
|
1616
|
-
|
|
1770
|
+
React4.useEffect(() => {
|
|
1617
1771
|
if (!api) return;
|
|
1618
1772
|
onSelect(api);
|
|
1619
1773
|
api.on("reInit", onSelect);
|
|
@@ -1622,7 +1776,7 @@ function Carousel(_a) {
|
|
|
1622
1776
|
api == null ? void 0 : api.off("select", onSelect);
|
|
1623
1777
|
};
|
|
1624
1778
|
}, [api, onSelect]);
|
|
1625
|
-
return /* @__PURE__ */ (0,
|
|
1779
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1626
1780
|
CarouselContext.Provider,
|
|
1627
1781
|
{
|
|
1628
1782
|
value: {
|
|
@@ -1635,7 +1789,7 @@ function Carousel(_a) {
|
|
|
1635
1789
|
canScrollPrev,
|
|
1636
1790
|
canScrollNext
|
|
1637
1791
|
},
|
|
1638
|
-
children: /* @__PURE__ */ (0,
|
|
1792
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1639
1793
|
"div",
|
|
1640
1794
|
__spreadProps(__spreadValues({
|
|
1641
1795
|
onKeyDownCapture: handleKeyDown,
|
|
@@ -1653,13 +1807,13 @@ function Carousel(_a) {
|
|
|
1653
1807
|
function CarouselContent(_a) {
|
|
1654
1808
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1655
1809
|
const { carouselRef, orientation } = useCarousel();
|
|
1656
|
-
return /* @__PURE__ */ (0,
|
|
1810
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1657
1811
|
"div",
|
|
1658
1812
|
{
|
|
1659
1813
|
ref: carouselRef,
|
|
1660
1814
|
className: "overflow-hidden",
|
|
1661
1815
|
"data-slot": "carousel-content",
|
|
1662
|
-
children: /* @__PURE__ */ (0,
|
|
1816
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1663
1817
|
"div",
|
|
1664
1818
|
__spreadValues({
|
|
1665
1819
|
className: cn(
|
|
@@ -1675,7 +1829,7 @@ function CarouselContent(_a) {
|
|
|
1675
1829
|
function CarouselItem(_a) {
|
|
1676
1830
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1677
1831
|
const { orientation } = useCarousel();
|
|
1678
|
-
return /* @__PURE__ */ (0,
|
|
1832
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1679
1833
|
"div",
|
|
1680
1834
|
__spreadValues({
|
|
1681
1835
|
role: "group",
|
|
@@ -1700,7 +1854,7 @@ function CarouselPrevious(_a) {
|
|
|
1700
1854
|
"size"
|
|
1701
1855
|
]);
|
|
1702
1856
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
1703
|
-
return /* @__PURE__ */ (0,
|
|
1857
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
1704
1858
|
Button,
|
|
1705
1859
|
__spreadProps(__spreadValues({
|
|
1706
1860
|
"data-slot": "carousel-previous",
|
|
@@ -1715,8 +1869,8 @@ function CarouselPrevious(_a) {
|
|
|
1715
1869
|
onClick: scrollPrev
|
|
1716
1870
|
}, props), {
|
|
1717
1871
|
children: [
|
|
1718
|
-
/* @__PURE__ */ (0,
|
|
1719
|
-
/* @__PURE__ */ (0,
|
|
1872
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react6.ArrowLeft, {}),
|
|
1873
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "sr-only", children: "Previous slide" })
|
|
1720
1874
|
]
|
|
1721
1875
|
})
|
|
1722
1876
|
);
|
|
@@ -1732,7 +1886,7 @@ function CarouselNext(_a) {
|
|
|
1732
1886
|
"size"
|
|
1733
1887
|
]);
|
|
1734
1888
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
1735
|
-
return /* @__PURE__ */ (0,
|
|
1889
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
1736
1890
|
Button,
|
|
1737
1891
|
__spreadProps(__spreadValues({
|
|
1738
1892
|
"data-slot": "carousel-next",
|
|
@@ -1747,21 +1901,21 @@ function CarouselNext(_a) {
|
|
|
1747
1901
|
onClick: scrollNext
|
|
1748
1902
|
}, props), {
|
|
1749
1903
|
children: [
|
|
1750
|
-
/* @__PURE__ */ (0,
|
|
1751
|
-
/* @__PURE__ */ (0,
|
|
1904
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react6.ArrowRight, {}),
|
|
1905
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "sr-only", children: "Next slide" })
|
|
1752
1906
|
]
|
|
1753
1907
|
})
|
|
1754
1908
|
);
|
|
1755
1909
|
}
|
|
1756
1910
|
|
|
1757
1911
|
// components/ui/chart.tsx
|
|
1758
|
-
var
|
|
1912
|
+
var React5 = __toESM(require("react"), 1);
|
|
1759
1913
|
var RechartsPrimitive = __toESM(require("recharts"), 1);
|
|
1760
|
-
var
|
|
1914
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1761
1915
|
var THEMES = { light: "" };
|
|
1762
|
-
var ChartContext =
|
|
1916
|
+
var ChartContext = React5.createContext(null);
|
|
1763
1917
|
function useChart() {
|
|
1764
|
-
const context =
|
|
1918
|
+
const context = React5.useContext(ChartContext);
|
|
1765
1919
|
if (!context) {
|
|
1766
1920
|
throw new Error("useChart must be used within a <ChartContainer />");
|
|
1767
1921
|
}
|
|
@@ -1779,9 +1933,9 @@ function ChartContainer(_a) {
|
|
|
1779
1933
|
"children",
|
|
1780
1934
|
"config"
|
|
1781
1935
|
]);
|
|
1782
|
-
const uniqueId =
|
|
1936
|
+
const uniqueId = React5.useId();
|
|
1783
1937
|
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
1784
|
-
return /* @__PURE__ */ (0,
|
|
1938
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
1785
1939
|
"div",
|
|
1786
1940
|
__spreadProps(__spreadValues({
|
|
1787
1941
|
"data-slot": "chart",
|
|
@@ -1792,8 +1946,8 @@ function ChartContainer(_a) {
|
|
|
1792
1946
|
)
|
|
1793
1947
|
}, props), {
|
|
1794
1948
|
children: [
|
|
1795
|
-
/* @__PURE__ */ (0,
|
|
1796
|
-
/* @__PURE__ */ (0,
|
|
1949
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ChartStyle, { id: chartId, config }),
|
|
1950
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(RechartsPrimitive.ResponsiveContainer, { children })
|
|
1797
1951
|
]
|
|
1798
1952
|
})
|
|
1799
1953
|
) });
|
|
@@ -1805,7 +1959,7 @@ var ChartStyle = ({ id, config }) => {
|
|
|
1805
1959
|
if (!colorConfig.length) {
|
|
1806
1960
|
return null;
|
|
1807
1961
|
}
|
|
1808
|
-
return /* @__PURE__ */ (0,
|
|
1962
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1809
1963
|
"style",
|
|
1810
1964
|
{
|
|
1811
1965
|
dangerouslySetInnerHTML: {
|
|
@@ -1841,7 +1995,7 @@ function ChartTooltipContent({
|
|
|
1841
1995
|
labelKey
|
|
1842
1996
|
}) {
|
|
1843
1997
|
const { config } = useChart();
|
|
1844
|
-
const tooltipLabel =
|
|
1998
|
+
const tooltipLabel = React5.useMemo(() => {
|
|
1845
1999
|
var _a;
|
|
1846
2000
|
if (hideLabel || !(payload == null ? void 0 : payload.length)) {
|
|
1847
2001
|
return null;
|
|
@@ -1851,12 +2005,12 @@ function ChartTooltipContent({
|
|
|
1851
2005
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1852
2006
|
const value = !labelKey && typeof label === "string" ? ((_a = config[label]) == null ? void 0 : _a.label) || label : itemConfig == null ? void 0 : itemConfig.label;
|
|
1853
2007
|
if (labelFormatter) {
|
|
1854
|
-
return /* @__PURE__ */ (0,
|
|
2008
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: cn("font-medium", labelClassName), children: labelFormatter(value, payload) });
|
|
1855
2009
|
}
|
|
1856
2010
|
if (!value) {
|
|
1857
2011
|
return null;
|
|
1858
2012
|
}
|
|
1859
|
-
return /* @__PURE__ */ (0,
|
|
2013
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: cn("font-medium", labelClassName), children: value });
|
|
1860
2014
|
}, [
|
|
1861
2015
|
label,
|
|
1862
2016
|
labelFormatter,
|
|
@@ -1870,7 +2024,7 @@ function ChartTooltipContent({
|
|
|
1870
2024
|
return null;
|
|
1871
2025
|
}
|
|
1872
2026
|
const nestLabel = payload.length === 1 && indicator !== "dot";
|
|
1873
|
-
return /* @__PURE__ */ (0,
|
|
2027
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
1874
2028
|
"div",
|
|
1875
2029
|
{
|
|
1876
2030
|
className: cn(
|
|
@@ -1879,19 +2033,19 @@ function ChartTooltipContent({
|
|
|
1879
2033
|
),
|
|
1880
2034
|
children: [
|
|
1881
2035
|
!nestLabel ? tooltipLabel : null,
|
|
1882
|
-
/* @__PURE__ */ (0,
|
|
2036
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "grid gap-1.5", children: payload.filter((item) => item.type !== "none").map((item, index) => {
|
|
1883
2037
|
const key = `${nameKey || item.name || item.dataKey || "value"}`;
|
|
1884
2038
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1885
2039
|
const indicatorColor = color || item.payload.fill || item.color;
|
|
1886
|
-
return /* @__PURE__ */ (0,
|
|
2040
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1887
2041
|
"div",
|
|
1888
2042
|
{
|
|
1889
2043
|
className: cn(
|
|
1890
2044
|
"flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-on-subtle",
|
|
1891
2045
|
indicator === "dot" && "items-center"
|
|
1892
2046
|
),
|
|
1893
|
-
children: formatter && (item == null ? void 0 : item.value) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ (0,
|
|
1894
|
-
(itemConfig == null ? void 0 : itemConfig.icon) ? /* @__PURE__ */ (0,
|
|
2047
|
+
children: formatter && (item == null ? void 0 : item.value) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
|
|
2048
|
+
(itemConfig == null ? void 0 : itemConfig.icon) ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1895
2049
|
"div",
|
|
1896
2050
|
{
|
|
1897
2051
|
className: cn(
|
|
@@ -1909,7 +2063,7 @@ function ChartTooltipContent({
|
|
|
1909
2063
|
}
|
|
1910
2064
|
}
|
|
1911
2065
|
),
|
|
1912
|
-
/* @__PURE__ */ (0,
|
|
2066
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
1913
2067
|
"div",
|
|
1914
2068
|
{
|
|
1915
2069
|
className: cn(
|
|
@@ -1917,11 +2071,11 @@ function ChartTooltipContent({
|
|
|
1917
2071
|
nestLabel ? "items-end" : "items-center"
|
|
1918
2072
|
),
|
|
1919
2073
|
children: [
|
|
1920
|
-
/* @__PURE__ */ (0,
|
|
2074
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "grid gap-1.5", children: [
|
|
1921
2075
|
nestLabel ? tooltipLabel : null,
|
|
1922
|
-
/* @__PURE__ */ (0,
|
|
2076
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "text-on-subtle", children: (itemConfig == null ? void 0 : itemConfig.label) || item.name })
|
|
1923
2077
|
] }),
|
|
1924
|
-
item.value && /* @__PURE__ */ (0,
|
|
2078
|
+
item.value && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "font-mono font-medium text-on-prominent tabular-nums", children: item.value.toLocaleString() })
|
|
1925
2079
|
]
|
|
1926
2080
|
}
|
|
1927
2081
|
)
|
|
@@ -1946,7 +2100,7 @@ function ChartLegendContent({
|
|
|
1946
2100
|
if (!(payload == null ? void 0 : payload.length)) {
|
|
1947
2101
|
return null;
|
|
1948
2102
|
}
|
|
1949
|
-
return /* @__PURE__ */ (0,
|
|
2103
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1950
2104
|
"div",
|
|
1951
2105
|
{
|
|
1952
2106
|
className: cn(
|
|
@@ -1957,14 +2111,14 @@ function ChartLegendContent({
|
|
|
1957
2111
|
children: payload.filter((item) => item.type !== "none").map((item) => {
|
|
1958
2112
|
const key = `${nameKey || item.dataKey || "value"}`;
|
|
1959
2113
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1960
|
-
return /* @__PURE__ */ (0,
|
|
2114
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
1961
2115
|
"div",
|
|
1962
2116
|
{
|
|
1963
2117
|
className: cn(
|
|
1964
2118
|
"flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-on-subtle"
|
|
1965
2119
|
),
|
|
1966
2120
|
children: [
|
|
1967
|
-
(itemConfig == null ? void 0 : itemConfig.icon) && !hideIcon ? /* @__PURE__ */ (0,
|
|
2121
|
+
(itemConfig == null ? void 0 : itemConfig.icon) && !hideIcon ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(itemConfig.icon, {}) : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1968
2122
|
"div",
|
|
1969
2123
|
{
|
|
1970
2124
|
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
@@ -1997,16 +2151,16 @@ function getPayloadConfigFromPayload(config, payload, key) {
|
|
|
1997
2151
|
}
|
|
1998
2152
|
|
|
1999
2153
|
// components/ui/checkbox.tsx
|
|
2000
|
-
var
|
|
2154
|
+
var import_lucide_react7 = require("lucide-react");
|
|
2001
2155
|
var import_radix_ui8 = require("radix-ui");
|
|
2002
|
-
var
|
|
2156
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
2003
2157
|
function Checkbox(_a) {
|
|
2004
2158
|
var _b = _a, {
|
|
2005
2159
|
className
|
|
2006
2160
|
} = _b, props = __objRest(_b, [
|
|
2007
2161
|
"className"
|
|
2008
2162
|
]);
|
|
2009
|
-
return /* @__PURE__ */ (0,
|
|
2163
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
2010
2164
|
import_radix_ui8.Checkbox.Root,
|
|
2011
2165
|
__spreadProps(__spreadValues({
|
|
2012
2166
|
"data-slot": "checkbox",
|
|
@@ -2015,12 +2169,12 @@ function Checkbox(_a) {
|
|
|
2015
2169
|
className
|
|
2016
2170
|
)
|
|
2017
2171
|
}, props), {
|
|
2018
|
-
children: /* @__PURE__ */ (0,
|
|
2172
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
2019
2173
|
import_radix_ui8.Checkbox.Indicator,
|
|
2020
2174
|
{
|
|
2021
2175
|
"data-slot": "checkbox-indicator",
|
|
2022
2176
|
className: "grid place-content-center text-current transition-none",
|
|
2023
|
-
children: /* @__PURE__ */ (0,
|
|
2177
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react7.CheckIcon, { className: "size-3.5" })
|
|
2024
2178
|
}
|
|
2025
2179
|
)
|
|
2026
2180
|
})
|
|
@@ -2029,14 +2183,14 @@ function Checkbox(_a) {
|
|
|
2029
2183
|
|
|
2030
2184
|
// components/ui/collapsible.tsx
|
|
2031
2185
|
var import_radix_ui9 = require("radix-ui");
|
|
2032
|
-
var
|
|
2186
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
2033
2187
|
function Collapsible(_a) {
|
|
2034
2188
|
var props = __objRest(_a, []);
|
|
2035
|
-
return /* @__PURE__ */ (0,
|
|
2189
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_radix_ui9.Collapsible.Root, __spreadValues({ "data-slot": "collapsible" }, props));
|
|
2036
2190
|
}
|
|
2037
2191
|
function CollapsibleTrigger(_a) {
|
|
2038
2192
|
var props = __objRest(_a, []);
|
|
2039
|
-
return /* @__PURE__ */ (0,
|
|
2193
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
2040
2194
|
import_radix_ui9.Collapsible.CollapsibleTrigger,
|
|
2041
2195
|
__spreadValues({
|
|
2042
2196
|
"data-slot": "collapsible-trigger"
|
|
@@ -2045,7 +2199,7 @@ function CollapsibleTrigger(_a) {
|
|
|
2045
2199
|
}
|
|
2046
2200
|
function CollapsibleContent(_a) {
|
|
2047
2201
|
var props = __objRest(_a, []);
|
|
2048
|
-
return /* @__PURE__ */ (0,
|
|
2202
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
2049
2203
|
import_radix_ui9.Collapsible.CollapsibleContent,
|
|
2050
2204
|
__spreadValues({
|
|
2051
2205
|
"data-slot": "collapsible-content"
|
|
@@ -2054,17 +2208,17 @@ function CollapsibleContent(_a) {
|
|
|
2054
2208
|
}
|
|
2055
2209
|
|
|
2056
2210
|
// components/ui/combobox.tsx
|
|
2057
|
-
var
|
|
2211
|
+
var React7 = __toESM(require("react"), 1);
|
|
2058
2212
|
var import_react = require("@base-ui/react");
|
|
2059
|
-
var
|
|
2213
|
+
var import_lucide_react8 = require("lucide-react");
|
|
2060
2214
|
|
|
2061
2215
|
// components/ui/input-group.tsx
|
|
2062
|
-
var
|
|
2216
|
+
var React6 = __toESM(require("react"), 1);
|
|
2063
2217
|
var import_class_variance_authority5 = require("class-variance-authority");
|
|
2064
2218
|
|
|
2065
2219
|
// components/ui/input.tsx
|
|
2066
2220
|
var import_class_variance_authority4 = require("class-variance-authority");
|
|
2067
|
-
var
|
|
2221
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
2068
2222
|
var inputVariants = (0, import_class_variance_authority4.cva)(
|
|
2069
2223
|
[
|
|
2070
2224
|
"w-full min-w-0 rounded-sm border border-border-subtle bg-white/5",
|
|
@@ -2098,7 +2252,7 @@ function Input(_a) {
|
|
|
2098
2252
|
"type",
|
|
2099
2253
|
"size"
|
|
2100
2254
|
]);
|
|
2101
|
-
return /* @__PURE__ */ (0,
|
|
2255
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2102
2256
|
"input",
|
|
2103
2257
|
__spreadValues({
|
|
2104
2258
|
type,
|
|
@@ -2110,10 +2264,10 @@ function Input(_a) {
|
|
|
2110
2264
|
}
|
|
2111
2265
|
|
|
2112
2266
|
// components/ui/textarea.tsx
|
|
2113
|
-
var
|
|
2267
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
2114
2268
|
function Textarea(_a) {
|
|
2115
2269
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2116
|
-
return /* @__PURE__ */ (0,
|
|
2270
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2117
2271
|
"textarea",
|
|
2118
2272
|
__spreadValues({
|
|
2119
2273
|
"data-slot": "textarea",
|
|
@@ -2126,8 +2280,8 @@ function Textarea(_a) {
|
|
|
2126
2280
|
}
|
|
2127
2281
|
|
|
2128
2282
|
// components/ui/input-group.tsx
|
|
2129
|
-
var
|
|
2130
|
-
var InputGroupSizeContext =
|
|
2283
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
2284
|
+
var InputGroupSizeContext = React6.createContext("md");
|
|
2131
2285
|
var inputGroupVariants = (0, import_class_variance_authority5.cva)(
|
|
2132
2286
|
[
|
|
2133
2287
|
"group/input-group relative flex w-full items-center rounded-sm border border-border-subtle bg-white/5",
|
|
@@ -2165,7 +2319,7 @@ function InputGroup(_a) {
|
|
|
2165
2319
|
"className",
|
|
2166
2320
|
"size"
|
|
2167
2321
|
]);
|
|
2168
|
-
return /* @__PURE__ */ (0,
|
|
2322
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(InputGroupSizeContext.Provider, { value: size, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2169
2323
|
"div",
|
|
2170
2324
|
__spreadValues({
|
|
2171
2325
|
"data-slot": "input-group",
|
|
@@ -2210,7 +2364,7 @@ function InputGroupAddon(_a) {
|
|
|
2210
2364
|
"className",
|
|
2211
2365
|
"align"
|
|
2212
2366
|
]);
|
|
2213
|
-
return /* @__PURE__ */ (0,
|
|
2367
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2214
2368
|
"div",
|
|
2215
2369
|
__spreadValues({
|
|
2216
2370
|
role: "group",
|
|
@@ -2255,7 +2409,7 @@ function InputGroupButton(_a) {
|
|
|
2255
2409
|
"variant",
|
|
2256
2410
|
"size"
|
|
2257
2411
|
]);
|
|
2258
|
-
return /* @__PURE__ */ (0,
|
|
2412
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2259
2413
|
Button,
|
|
2260
2414
|
__spreadValues({
|
|
2261
2415
|
type,
|
|
@@ -2267,7 +2421,7 @@ function InputGroupButton(_a) {
|
|
|
2267
2421
|
}
|
|
2268
2422
|
function InputGroupText(_a) {
|
|
2269
2423
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2270
|
-
return /* @__PURE__ */ (0,
|
|
2424
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2271
2425
|
"span",
|
|
2272
2426
|
__spreadValues({
|
|
2273
2427
|
className: cn(
|
|
@@ -2289,9 +2443,9 @@ function InputGroupInput(_a) {
|
|
|
2289
2443
|
"className",
|
|
2290
2444
|
"size"
|
|
2291
2445
|
]);
|
|
2292
|
-
const groupSize =
|
|
2446
|
+
const groupSize = React6.useContext(InputGroupSizeContext);
|
|
2293
2447
|
const size = sizeProp != null ? sizeProp : groupSize;
|
|
2294
|
-
return /* @__PURE__ */ (0,
|
|
2448
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2295
2449
|
Input,
|
|
2296
2450
|
__spreadValues({
|
|
2297
2451
|
"data-slot": "input-group-control",
|
|
@@ -2309,7 +2463,7 @@ function InputGroupTextarea(_a) {
|
|
|
2309
2463
|
} = _b, props = __objRest(_b, [
|
|
2310
2464
|
"className"
|
|
2311
2465
|
]);
|
|
2312
|
-
return /* @__PURE__ */ (0,
|
|
2466
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2313
2467
|
Textarea,
|
|
2314
2468
|
__spreadValues({
|
|
2315
2469
|
"data-slot": "input-group-control",
|
|
@@ -2322,11 +2476,11 @@ function InputGroupTextarea(_a) {
|
|
|
2322
2476
|
}
|
|
2323
2477
|
|
|
2324
2478
|
// components/ui/combobox.tsx
|
|
2325
|
-
var
|
|
2479
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
2326
2480
|
var Combobox = import_react.Combobox.Root;
|
|
2327
2481
|
function ComboboxValue(_a) {
|
|
2328
2482
|
var props = __objRest(_a, []);
|
|
2329
|
-
return /* @__PURE__ */ (0,
|
|
2483
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react.Combobox.Value, __spreadValues({ "data-slot": "combobox-value" }, props));
|
|
2330
2484
|
}
|
|
2331
2485
|
function ComboboxTrigger(_a) {
|
|
2332
2486
|
var _b = _a, {
|
|
@@ -2336,7 +2490,7 @@ function ComboboxTrigger(_a) {
|
|
|
2336
2490
|
"className",
|
|
2337
2491
|
"children"
|
|
2338
2492
|
]);
|
|
2339
|
-
return /* @__PURE__ */ (0,
|
|
2493
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
2340
2494
|
import_react.Combobox.Trigger,
|
|
2341
2495
|
__spreadProps(__spreadValues({
|
|
2342
2496
|
"data-slot": "combobox-trigger",
|
|
@@ -2344,8 +2498,8 @@ function ComboboxTrigger(_a) {
|
|
|
2344
2498
|
}, props), {
|
|
2345
2499
|
children: [
|
|
2346
2500
|
children,
|
|
2347
|
-
/* @__PURE__ */ (0,
|
|
2348
|
-
|
|
2501
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2502
|
+
import_lucide_react8.ChevronDownIcon,
|
|
2349
2503
|
{
|
|
2350
2504
|
"data-slot": "combobox-trigger-icon",
|
|
2351
2505
|
className: "pointer-events-none size-4 text-on-subtle"
|
|
@@ -2357,14 +2511,14 @@ function ComboboxTrigger(_a) {
|
|
|
2357
2511
|
}
|
|
2358
2512
|
function ComboboxClear(_a) {
|
|
2359
2513
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2360
|
-
return /* @__PURE__ */ (0,
|
|
2514
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2361
2515
|
import_react.Combobox.Clear,
|
|
2362
2516
|
__spreadProps(__spreadValues({
|
|
2363
2517
|
"data-slot": "combobox-clear",
|
|
2364
|
-
render: /* @__PURE__ */ (0,
|
|
2518
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(InputGroupButton, { variant: "secondary", size: "icon-xs" }),
|
|
2365
2519
|
className: cn(className)
|
|
2366
2520
|
}, props), {
|
|
2367
|
-
children: /* @__PURE__ */ (0,
|
|
2521
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react8.XIcon, { className: "pointer-events-none" })
|
|
2368
2522
|
})
|
|
2369
2523
|
);
|
|
2370
2524
|
}
|
|
@@ -2382,15 +2536,15 @@ function ComboboxInput(_a) {
|
|
|
2382
2536
|
"showTrigger",
|
|
2383
2537
|
"showClear"
|
|
2384
2538
|
]);
|
|
2385
|
-
return /* @__PURE__ */ (0,
|
|
2386
|
-
/* @__PURE__ */ (0,
|
|
2539
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(InputGroup, { className: cn("w-auto", className), children: [
|
|
2540
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2387
2541
|
import_react.Combobox.Input,
|
|
2388
2542
|
__spreadValues({
|
|
2389
|
-
render: /* @__PURE__ */ (0,
|
|
2543
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(InputGroupInput, { disabled })
|
|
2390
2544
|
}, props)
|
|
2391
2545
|
),
|
|
2392
|
-
/* @__PURE__ */ (0,
|
|
2393
|
-
showTrigger && /* @__PURE__ */ (0,
|
|
2546
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(InputGroupAddon, { align: "inline-end", children: [
|
|
2547
|
+
showTrigger && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2394
2548
|
InputGroupButton,
|
|
2395
2549
|
{
|
|
2396
2550
|
size: "icon-xs",
|
|
@@ -2399,10 +2553,10 @@ function ComboboxInput(_a) {
|
|
|
2399
2553
|
"data-slot": "input-group-button",
|
|
2400
2554
|
className: "group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent",
|
|
2401
2555
|
disabled,
|
|
2402
|
-
children: /* @__PURE__ */ (0,
|
|
2556
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ComboboxTrigger, {})
|
|
2403
2557
|
}
|
|
2404
2558
|
),
|
|
2405
|
-
showClear && /* @__PURE__ */ (0,
|
|
2559
|
+
showClear && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ComboboxClear, { disabled })
|
|
2406
2560
|
] }),
|
|
2407
2561
|
children
|
|
2408
2562
|
] });
|
|
@@ -2423,7 +2577,7 @@ function ComboboxContent(_a) {
|
|
|
2423
2577
|
"alignOffset",
|
|
2424
2578
|
"anchor"
|
|
2425
2579
|
]);
|
|
2426
|
-
return /* @__PURE__ */ (0,
|
|
2580
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react.Combobox.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2427
2581
|
import_react.Combobox.Positioner,
|
|
2428
2582
|
{
|
|
2429
2583
|
side,
|
|
@@ -2432,7 +2586,7 @@ function ComboboxContent(_a) {
|
|
|
2432
2586
|
alignOffset,
|
|
2433
2587
|
anchor,
|
|
2434
2588
|
className: "isolate z-50",
|
|
2435
|
-
children: /* @__PURE__ */ (0,
|
|
2589
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2436
2590
|
import_react.Combobox.Popup,
|
|
2437
2591
|
__spreadValues({
|
|
2438
2592
|
"data-slot": "combobox-content",
|
|
@@ -2448,7 +2602,7 @@ function ComboboxContent(_a) {
|
|
|
2448
2602
|
}
|
|
2449
2603
|
function ComboboxList(_a) {
|
|
2450
2604
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2451
|
-
return /* @__PURE__ */ (0,
|
|
2605
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2452
2606
|
import_react.Combobox.List,
|
|
2453
2607
|
__spreadValues({
|
|
2454
2608
|
"data-slot": "combobox-list",
|
|
@@ -2467,7 +2621,7 @@ function ComboboxItem(_a) {
|
|
|
2467
2621
|
"className",
|
|
2468
2622
|
"children"
|
|
2469
2623
|
]);
|
|
2470
|
-
return /* @__PURE__ */ (0,
|
|
2624
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
2471
2625
|
import_react.Combobox.Item,
|
|
2472
2626
|
__spreadProps(__spreadValues({
|
|
2473
2627
|
"data-slot": "combobox-item",
|
|
@@ -2478,12 +2632,12 @@ function ComboboxItem(_a) {
|
|
|
2478
2632
|
}, props), {
|
|
2479
2633
|
children: [
|
|
2480
2634
|
children,
|
|
2481
|
-
/* @__PURE__ */ (0,
|
|
2635
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2482
2636
|
import_react.Combobox.ItemIndicator,
|
|
2483
2637
|
{
|
|
2484
2638
|
"data-slot": "combobox-item-indicator",
|
|
2485
|
-
render: /* @__PURE__ */ (0,
|
|
2486
|
-
children: /* @__PURE__ */ (0,
|
|
2639
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
|
|
2640
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react8.CheckIcon, { className: "pointer-events-none size-4 pointer-coarse:size-5" })
|
|
2487
2641
|
}
|
|
2488
2642
|
)
|
|
2489
2643
|
]
|
|
@@ -2492,7 +2646,7 @@ function ComboboxItem(_a) {
|
|
|
2492
2646
|
}
|
|
2493
2647
|
function ComboboxGroup(_a) {
|
|
2494
2648
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2495
|
-
return /* @__PURE__ */ (0,
|
|
2649
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2496
2650
|
import_react.Combobox.Group,
|
|
2497
2651
|
__spreadValues({
|
|
2498
2652
|
"data-slot": "combobox-group",
|
|
@@ -2506,7 +2660,7 @@ function ComboboxLabel(_a) {
|
|
|
2506
2660
|
} = _b, props = __objRest(_b, [
|
|
2507
2661
|
"className"
|
|
2508
2662
|
]);
|
|
2509
|
-
return /* @__PURE__ */ (0,
|
|
2663
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2510
2664
|
import_react.Combobox.GroupLabel,
|
|
2511
2665
|
__spreadValues({
|
|
2512
2666
|
"data-slot": "combobox-label",
|
|
@@ -2519,11 +2673,11 @@ function ComboboxLabel(_a) {
|
|
|
2519
2673
|
}
|
|
2520
2674
|
function ComboboxCollection(_a) {
|
|
2521
2675
|
var props = __objRest(_a, []);
|
|
2522
|
-
return /* @__PURE__ */ (0,
|
|
2676
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react.Combobox.Collection, __spreadValues({ "data-slot": "combobox-collection" }, props));
|
|
2523
2677
|
}
|
|
2524
2678
|
function ComboboxEmpty(_a) {
|
|
2525
2679
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2526
|
-
return /* @__PURE__ */ (0,
|
|
2680
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2527
2681
|
import_react.Combobox.Empty,
|
|
2528
2682
|
__spreadValues({
|
|
2529
2683
|
"data-slot": "combobox-empty",
|
|
@@ -2540,7 +2694,7 @@ function ComboboxSeparator(_a) {
|
|
|
2540
2694
|
} = _b, props = __objRest(_b, [
|
|
2541
2695
|
"className"
|
|
2542
2696
|
]);
|
|
2543
|
-
return /* @__PURE__ */ (0,
|
|
2697
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2544
2698
|
import_react.Combobox.Separator,
|
|
2545
2699
|
__spreadValues({
|
|
2546
2700
|
"data-slot": "combobox-separator",
|
|
@@ -2554,7 +2708,7 @@ function ComboboxChips(_a) {
|
|
|
2554
2708
|
} = _b, props = __objRest(_b, [
|
|
2555
2709
|
"className"
|
|
2556
2710
|
]);
|
|
2557
|
-
return /* @__PURE__ */ (0,
|
|
2711
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2558
2712
|
import_react.Combobox.Chips,
|
|
2559
2713
|
__spreadValues({
|
|
2560
2714
|
"data-slot": "combobox-chips",
|
|
@@ -2575,7 +2729,7 @@ function ComboboxChip(_a) {
|
|
|
2575
2729
|
"children",
|
|
2576
2730
|
"showRemove"
|
|
2577
2731
|
]);
|
|
2578
|
-
return /* @__PURE__ */ (0,
|
|
2732
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
2579
2733
|
import_react.Combobox.Chip,
|
|
2580
2734
|
__spreadProps(__spreadValues({
|
|
2581
2735
|
"data-slot": "combobox-chip",
|
|
@@ -2586,13 +2740,13 @@ function ComboboxChip(_a) {
|
|
|
2586
2740
|
}, props), {
|
|
2587
2741
|
children: [
|
|
2588
2742
|
children,
|
|
2589
|
-
showRemove && /* @__PURE__ */ (0,
|
|
2743
|
+
showRemove && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2590
2744
|
import_react.Combobox.ChipRemove,
|
|
2591
2745
|
{
|
|
2592
|
-
render: /* @__PURE__ */ (0,
|
|
2746
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Button, { variant: "secondary", size: "icon-xs" }),
|
|
2593
2747
|
className: "-ml-1 opacity-50 hover:opacity-100",
|
|
2594
2748
|
"data-slot": "combobox-chip-remove",
|
|
2595
|
-
children: /* @__PURE__ */ (0,
|
|
2749
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react8.XIcon, { className: "pointer-events-none" })
|
|
2596
2750
|
}
|
|
2597
2751
|
)
|
|
2598
2752
|
]
|
|
@@ -2607,7 +2761,7 @@ function ComboboxChipsInput(_a) {
|
|
|
2607
2761
|
"className",
|
|
2608
2762
|
"children"
|
|
2609
2763
|
]);
|
|
2610
|
-
return /* @__PURE__ */ (0,
|
|
2764
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2611
2765
|
import_react.Combobox.Input,
|
|
2612
2766
|
__spreadValues({
|
|
2613
2767
|
"data-slot": "combobox-chip-input",
|
|
@@ -2616,32 +2770,32 @@ function ComboboxChipsInput(_a) {
|
|
|
2616
2770
|
);
|
|
2617
2771
|
}
|
|
2618
2772
|
function useComboboxAnchor() {
|
|
2619
|
-
return
|
|
2773
|
+
return React7.useRef(null);
|
|
2620
2774
|
}
|
|
2621
2775
|
|
|
2622
2776
|
// components/ui/command.tsx
|
|
2623
2777
|
var import_cmdk = require("cmdk");
|
|
2624
|
-
var
|
|
2778
|
+
var import_lucide_react10 = require("lucide-react");
|
|
2625
2779
|
|
|
2626
2780
|
// components/ui/dialog.tsx
|
|
2627
|
-
var
|
|
2781
|
+
var import_lucide_react9 = require("lucide-react");
|
|
2628
2782
|
var import_radix_ui10 = require("radix-ui");
|
|
2629
|
-
var
|
|
2783
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
2630
2784
|
function Dialog(_a) {
|
|
2631
2785
|
var props = __objRest(_a, []);
|
|
2632
|
-
return /* @__PURE__ */ (0,
|
|
2786
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_radix_ui10.Dialog.Root, __spreadValues({ "data-slot": "dialog" }, props));
|
|
2633
2787
|
}
|
|
2634
2788
|
function DialogTrigger(_a) {
|
|
2635
2789
|
var props = __objRest(_a, []);
|
|
2636
|
-
return /* @__PURE__ */ (0,
|
|
2790
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_radix_ui10.Dialog.Trigger, __spreadValues({ "data-slot": "dialog-trigger" }, props));
|
|
2637
2791
|
}
|
|
2638
2792
|
function DialogPortal(_a) {
|
|
2639
2793
|
var props = __objRest(_a, []);
|
|
2640
|
-
return /* @__PURE__ */ (0,
|
|
2794
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_radix_ui10.Dialog.Portal, __spreadValues({ "data-slot": "dialog-portal" }, props));
|
|
2641
2795
|
}
|
|
2642
2796
|
function DialogClose(_a) {
|
|
2643
2797
|
var props = __objRest(_a, []);
|
|
2644
|
-
return /* @__PURE__ */ (0,
|
|
2798
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_radix_ui10.Dialog.Close, __spreadValues({ "data-slot": "dialog-close" }, props));
|
|
2645
2799
|
}
|
|
2646
2800
|
function DialogOverlay(_a) {
|
|
2647
2801
|
var _b = _a, {
|
|
@@ -2649,7 +2803,7 @@ function DialogOverlay(_a) {
|
|
|
2649
2803
|
} = _b, props = __objRest(_b, [
|
|
2650
2804
|
"className"
|
|
2651
2805
|
]);
|
|
2652
|
-
return /* @__PURE__ */ (0,
|
|
2806
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2653
2807
|
import_radix_ui10.Dialog.Overlay,
|
|
2654
2808
|
__spreadValues({
|
|
2655
2809
|
"data-slot": "dialog-overlay",
|
|
@@ -2670,9 +2824,9 @@ function DialogContent(_a) {
|
|
|
2670
2824
|
"children",
|
|
2671
2825
|
"showCloseButton"
|
|
2672
2826
|
]);
|
|
2673
|
-
return /* @__PURE__ */ (0,
|
|
2674
|
-
/* @__PURE__ */ (0,
|
|
2675
|
-
/* @__PURE__ */ (0,
|
|
2827
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(DialogPortal, { "data-slot": "dialog-portal", children: [
|
|
2828
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(DialogOverlay, {}),
|
|
2829
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
2676
2830
|
import_radix_ui10.Dialog.Content,
|
|
2677
2831
|
__spreadProps(__spreadValues({
|
|
2678
2832
|
"data-slot": "dialog-content",
|
|
@@ -2683,14 +2837,14 @@ function DialogContent(_a) {
|
|
|
2683
2837
|
}, props), {
|
|
2684
2838
|
children: [
|
|
2685
2839
|
children,
|
|
2686
|
-
showCloseButton && /* @__PURE__ */ (0,
|
|
2840
|
+
showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
2687
2841
|
import_radix_ui10.Dialog.Close,
|
|
2688
2842
|
{
|
|
2689
2843
|
"data-slot": "dialog-close",
|
|
2690
2844
|
className: "absolute top-4 right-4 rounded-xs opacity-70 ring-offset-prominent transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-on-subtle [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
2691
2845
|
children: [
|
|
2692
|
-
/* @__PURE__ */ (0,
|
|
2693
|
-
/* @__PURE__ */ (0,
|
|
2846
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react9.XIcon, {}),
|
|
2847
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "sr-only", children: "Close" })
|
|
2694
2848
|
]
|
|
2695
2849
|
}
|
|
2696
2850
|
)
|
|
@@ -2701,7 +2855,7 @@ function DialogContent(_a) {
|
|
|
2701
2855
|
}
|
|
2702
2856
|
function DialogHeader(_a) {
|
|
2703
2857
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2704
|
-
return /* @__PURE__ */ (0,
|
|
2858
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2705
2859
|
"div",
|
|
2706
2860
|
__spreadValues({
|
|
2707
2861
|
"data-slot": "dialog-header",
|
|
@@ -2719,7 +2873,7 @@ function DialogFooter(_a) {
|
|
|
2719
2873
|
"showCloseButton",
|
|
2720
2874
|
"children"
|
|
2721
2875
|
]);
|
|
2722
|
-
return /* @__PURE__ */ (0,
|
|
2876
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
2723
2877
|
"div",
|
|
2724
2878
|
__spreadProps(__spreadValues({
|
|
2725
2879
|
"data-slot": "dialog-footer",
|
|
@@ -2730,7 +2884,7 @@ function DialogFooter(_a) {
|
|
|
2730
2884
|
}, props), {
|
|
2731
2885
|
children: [
|
|
2732
2886
|
children,
|
|
2733
|
-
showCloseButton && /* @__PURE__ */ (0,
|
|
2887
|
+
showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_radix_ui10.Dialog.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Button, { variant: "secondary", size: "md", children: "Close" }) })
|
|
2734
2888
|
]
|
|
2735
2889
|
})
|
|
2736
2890
|
);
|
|
@@ -2741,7 +2895,7 @@ function DialogTitle(_a) {
|
|
|
2741
2895
|
} = _b, props = __objRest(_b, [
|
|
2742
2896
|
"className"
|
|
2743
2897
|
]);
|
|
2744
|
-
return /* @__PURE__ */ (0,
|
|
2898
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2745
2899
|
import_radix_ui10.Dialog.Title,
|
|
2746
2900
|
__spreadValues({
|
|
2747
2901
|
"data-slot": "dialog-title",
|
|
@@ -2755,7 +2909,7 @@ function DialogDescription(_a) {
|
|
|
2755
2909
|
} = _b, props = __objRest(_b, [
|
|
2756
2910
|
"className"
|
|
2757
2911
|
]);
|
|
2758
|
-
return /* @__PURE__ */ (0,
|
|
2912
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2759
2913
|
import_radix_ui10.Dialog.Description,
|
|
2760
2914
|
__spreadValues({
|
|
2761
2915
|
"data-slot": "dialog-description",
|
|
@@ -2765,14 +2919,14 @@ function DialogDescription(_a) {
|
|
|
2765
2919
|
}
|
|
2766
2920
|
|
|
2767
2921
|
// components/ui/command.tsx
|
|
2768
|
-
var
|
|
2922
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
2769
2923
|
function Command(_a) {
|
|
2770
2924
|
var _b = _a, {
|
|
2771
2925
|
className
|
|
2772
2926
|
} = _b, props = __objRest(_b, [
|
|
2773
2927
|
"className"
|
|
2774
2928
|
]);
|
|
2775
|
-
return /* @__PURE__ */ (0,
|
|
2929
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2776
2930
|
import_cmdk.Command,
|
|
2777
2931
|
__spreadValues({
|
|
2778
2932
|
"data-slot": "command",
|
|
@@ -2797,17 +2951,17 @@ function CommandDialog(_a) {
|
|
|
2797
2951
|
"className",
|
|
2798
2952
|
"showCloseButton"
|
|
2799
2953
|
]);
|
|
2800
|
-
return /* @__PURE__ */ (0,
|
|
2801
|
-
/* @__PURE__ */ (0,
|
|
2802
|
-
/* @__PURE__ */ (0,
|
|
2803
|
-
/* @__PURE__ */ (0,
|
|
2954
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(Dialog, __spreadProps(__spreadValues({}, props), { children: [
|
|
2955
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(DialogHeader, { className: "sr-only", children: [
|
|
2956
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DialogTitle, { children: title }),
|
|
2957
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DialogDescription, { children: description })
|
|
2804
2958
|
] }),
|
|
2805
|
-
/* @__PURE__ */ (0,
|
|
2959
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2806
2960
|
DialogContent,
|
|
2807
2961
|
{
|
|
2808
2962
|
className: cn("overflow-hidden p-0", className),
|
|
2809
2963
|
showCloseButton,
|
|
2810
|
-
children: /* @__PURE__ */ (0,
|
|
2964
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Command, { className: "**:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-on-subtle [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children })
|
|
2811
2965
|
}
|
|
2812
2966
|
)
|
|
2813
2967
|
] }));
|
|
@@ -2818,14 +2972,14 @@ function CommandInput(_a) {
|
|
|
2818
2972
|
} = _b, props = __objRest(_b, [
|
|
2819
2973
|
"className"
|
|
2820
2974
|
]);
|
|
2821
|
-
return /* @__PURE__ */ (0,
|
|
2975
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
2822
2976
|
"div",
|
|
2823
2977
|
{
|
|
2824
2978
|
"data-slot": "command-input-wrapper",
|
|
2825
2979
|
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
2826
2980
|
children: [
|
|
2827
|
-
/* @__PURE__ */ (0,
|
|
2828
|
-
/* @__PURE__ */ (0,
|
|
2981
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react10.SearchIcon, { className: "size-4 shrink-0 opacity-50" }),
|
|
2982
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2829
2983
|
import_cmdk.Command.Input,
|
|
2830
2984
|
__spreadValues({
|
|
2831
2985
|
"data-slot": "command-input",
|
|
@@ -2845,7 +2999,7 @@ function CommandList(_a) {
|
|
|
2845
2999
|
} = _b, props = __objRest(_b, [
|
|
2846
3000
|
"className"
|
|
2847
3001
|
]);
|
|
2848
|
-
return /* @__PURE__ */ (0,
|
|
3002
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2849
3003
|
import_cmdk.Command.List,
|
|
2850
3004
|
__spreadValues({
|
|
2851
3005
|
"data-slot": "command-list",
|
|
@@ -2858,7 +3012,7 @@ function CommandList(_a) {
|
|
|
2858
3012
|
}
|
|
2859
3013
|
function CommandEmpty(_a) {
|
|
2860
3014
|
var props = __objRest(_a, []);
|
|
2861
|
-
return /* @__PURE__ */ (0,
|
|
3015
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2862
3016
|
import_cmdk.Command.Empty,
|
|
2863
3017
|
__spreadValues({
|
|
2864
3018
|
"data-slot": "command-empty",
|
|
@@ -2872,7 +3026,7 @@ function CommandGroup(_a) {
|
|
|
2872
3026
|
} = _b, props = __objRest(_b, [
|
|
2873
3027
|
"className"
|
|
2874
3028
|
]);
|
|
2875
|
-
return /* @__PURE__ */ (0,
|
|
3029
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2876
3030
|
import_cmdk.Command.Group,
|
|
2877
3031
|
__spreadValues({
|
|
2878
3032
|
"data-slot": "command-group",
|
|
@@ -2889,7 +3043,7 @@ function CommandSeparator(_a) {
|
|
|
2889
3043
|
} = _b, props = __objRest(_b, [
|
|
2890
3044
|
"className"
|
|
2891
3045
|
]);
|
|
2892
|
-
return /* @__PURE__ */ (0,
|
|
3046
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2893
3047
|
import_cmdk.Command.Separator,
|
|
2894
3048
|
__spreadValues({
|
|
2895
3049
|
"data-slot": "command-separator",
|
|
@@ -2903,7 +3057,7 @@ function CommandItem(_a) {
|
|
|
2903
3057
|
} = _b, props = __objRest(_b, [
|
|
2904
3058
|
"className"
|
|
2905
3059
|
]);
|
|
2906
|
-
return /* @__PURE__ */ (0,
|
|
3060
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2907
3061
|
import_cmdk.Command.Item,
|
|
2908
3062
|
__spreadValues({
|
|
2909
3063
|
"data-slot": "command-item",
|
|
@@ -2920,7 +3074,7 @@ function CommandShortcut(_a) {
|
|
|
2920
3074
|
} = _b, props = __objRest(_b, [
|
|
2921
3075
|
"className"
|
|
2922
3076
|
]);
|
|
2923
|
-
return /* @__PURE__ */ (0,
|
|
3077
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2924
3078
|
"span",
|
|
2925
3079
|
__spreadValues({
|
|
2926
3080
|
"data-slot": "command-shortcut",
|
|
@@ -2933,32 +3087,32 @@ function CommandShortcut(_a) {
|
|
|
2933
3087
|
}
|
|
2934
3088
|
|
|
2935
3089
|
// components/ui/context-menu.tsx
|
|
2936
|
-
var
|
|
3090
|
+
var import_lucide_react11 = require("lucide-react");
|
|
2937
3091
|
var import_radix_ui11 = require("radix-ui");
|
|
2938
|
-
var
|
|
3092
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
2939
3093
|
function ContextMenu(_a) {
|
|
2940
3094
|
var props = __objRest(_a, []);
|
|
2941
|
-
return /* @__PURE__ */ (0,
|
|
3095
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_radix_ui11.ContextMenu.Root, __spreadValues({ "data-slot": "context-menu" }, props));
|
|
2942
3096
|
}
|
|
2943
3097
|
function ContextMenuTrigger(_a) {
|
|
2944
3098
|
var props = __objRest(_a, []);
|
|
2945
|
-
return /* @__PURE__ */ (0,
|
|
3099
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_radix_ui11.ContextMenu.Trigger, __spreadValues({ "data-slot": "context-menu-trigger" }, props));
|
|
2946
3100
|
}
|
|
2947
3101
|
function ContextMenuGroup(_a) {
|
|
2948
3102
|
var props = __objRest(_a, []);
|
|
2949
|
-
return /* @__PURE__ */ (0,
|
|
3103
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_radix_ui11.ContextMenu.Group, __spreadValues({ "data-slot": "context-menu-group" }, props));
|
|
2950
3104
|
}
|
|
2951
3105
|
function ContextMenuPortal(_a) {
|
|
2952
3106
|
var props = __objRest(_a, []);
|
|
2953
|
-
return /* @__PURE__ */ (0,
|
|
3107
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_radix_ui11.ContextMenu.Portal, __spreadValues({ "data-slot": "context-menu-portal" }, props));
|
|
2954
3108
|
}
|
|
2955
3109
|
function ContextMenuSub(_a) {
|
|
2956
3110
|
var props = __objRest(_a, []);
|
|
2957
|
-
return /* @__PURE__ */ (0,
|
|
3111
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_radix_ui11.ContextMenu.Sub, __spreadValues({ "data-slot": "context-menu-sub" }, props));
|
|
2958
3112
|
}
|
|
2959
3113
|
function ContextMenuRadioGroup(_a) {
|
|
2960
3114
|
var props = __objRest(_a, []);
|
|
2961
|
-
return /* @__PURE__ */ (0,
|
|
3115
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2962
3116
|
import_radix_ui11.ContextMenu.RadioGroup,
|
|
2963
3117
|
__spreadValues({
|
|
2964
3118
|
"data-slot": "context-menu-radio-group"
|
|
@@ -2975,7 +3129,7 @@ function ContextMenuSubTrigger(_a) {
|
|
|
2975
3129
|
"inset",
|
|
2976
3130
|
"children"
|
|
2977
3131
|
]);
|
|
2978
|
-
return /* @__PURE__ */ (0,
|
|
3132
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
2979
3133
|
import_radix_ui11.ContextMenu.SubTrigger,
|
|
2980
3134
|
__spreadProps(__spreadValues({
|
|
2981
3135
|
"data-slot": "context-menu-sub-trigger",
|
|
@@ -2987,7 +3141,7 @@ function ContextMenuSubTrigger(_a) {
|
|
|
2987
3141
|
}, props), {
|
|
2988
3142
|
children: [
|
|
2989
3143
|
children,
|
|
2990
|
-
/* @__PURE__ */ (0,
|
|
3144
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react11.ChevronRightIcon, { className: "ml-auto" })
|
|
2991
3145
|
]
|
|
2992
3146
|
})
|
|
2993
3147
|
);
|
|
@@ -2998,7 +3152,7 @@ function ContextMenuSubContent(_a) {
|
|
|
2998
3152
|
} = _b, props = __objRest(_b, [
|
|
2999
3153
|
"className"
|
|
3000
3154
|
]);
|
|
3001
|
-
return /* @__PURE__ */ (0,
|
|
3155
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3002
3156
|
import_radix_ui11.ContextMenu.SubContent,
|
|
3003
3157
|
__spreadValues({
|
|
3004
3158
|
"data-slot": "context-menu-sub-content",
|
|
@@ -3015,7 +3169,7 @@ function ContextMenuContent(_a) {
|
|
|
3015
3169
|
} = _b, props = __objRest(_b, [
|
|
3016
3170
|
"className"
|
|
3017
3171
|
]);
|
|
3018
|
-
return /* @__PURE__ */ (0,
|
|
3172
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_radix_ui11.ContextMenu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3019
3173
|
import_radix_ui11.ContextMenu.Content,
|
|
3020
3174
|
__spreadValues({
|
|
3021
3175
|
"data-slot": "context-menu-content",
|
|
@@ -3036,7 +3190,7 @@ function ContextMenuItem(_a) {
|
|
|
3036
3190
|
"inset",
|
|
3037
3191
|
"variant"
|
|
3038
3192
|
]);
|
|
3039
|
-
return /* @__PURE__ */ (0,
|
|
3193
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3040
3194
|
import_radix_ui11.ContextMenu.Item,
|
|
3041
3195
|
__spreadValues({
|
|
3042
3196
|
"data-slot": "context-menu-item",
|
|
@@ -3059,7 +3213,7 @@ function ContextMenuCheckboxItem(_a) {
|
|
|
3059
3213
|
"children",
|
|
3060
3214
|
"checked"
|
|
3061
3215
|
]);
|
|
3062
|
-
return /* @__PURE__ */ (0,
|
|
3216
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
3063
3217
|
import_radix_ui11.ContextMenu.CheckboxItem,
|
|
3064
3218
|
__spreadProps(__spreadValues({
|
|
3065
3219
|
"data-slot": "context-menu-checkbox-item",
|
|
@@ -3070,7 +3224,7 @@ function ContextMenuCheckboxItem(_a) {
|
|
|
3070
3224
|
checked
|
|
3071
3225
|
}, props), {
|
|
3072
3226
|
children: [
|
|
3073
|
-
/* @__PURE__ */ (0,
|
|
3227
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_radix_ui11.ContextMenu.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react11.CheckIcon, { className: "size-4" }) }) }),
|
|
3074
3228
|
children
|
|
3075
3229
|
]
|
|
3076
3230
|
})
|
|
@@ -3084,7 +3238,7 @@ function ContextMenuRadioItem(_a) {
|
|
|
3084
3238
|
"className",
|
|
3085
3239
|
"children"
|
|
3086
3240
|
]);
|
|
3087
|
-
return /* @__PURE__ */ (0,
|
|
3241
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
3088
3242
|
import_radix_ui11.ContextMenu.RadioItem,
|
|
3089
3243
|
__spreadProps(__spreadValues({
|
|
3090
3244
|
"data-slot": "context-menu-radio-item",
|
|
@@ -3094,7 +3248,7 @@ function ContextMenuRadioItem(_a) {
|
|
|
3094
3248
|
)
|
|
3095
3249
|
}, props), {
|
|
3096
3250
|
children: [
|
|
3097
|
-
/* @__PURE__ */ (0,
|
|
3251
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_radix_ui11.ContextMenu.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react11.CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
3098
3252
|
children
|
|
3099
3253
|
]
|
|
3100
3254
|
})
|
|
@@ -3108,7 +3262,7 @@ function ContextMenuLabel(_a) {
|
|
|
3108
3262
|
"className",
|
|
3109
3263
|
"inset"
|
|
3110
3264
|
]);
|
|
3111
|
-
return /* @__PURE__ */ (0,
|
|
3265
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3112
3266
|
import_radix_ui11.ContextMenu.Label,
|
|
3113
3267
|
__spreadValues({
|
|
3114
3268
|
"data-slot": "context-menu-label",
|
|
@@ -3126,7 +3280,7 @@ function ContextMenuSeparator(_a) {
|
|
|
3126
3280
|
} = _b, props = __objRest(_b, [
|
|
3127
3281
|
"className"
|
|
3128
3282
|
]);
|
|
3129
|
-
return /* @__PURE__ */ (0,
|
|
3283
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3130
3284
|
import_radix_ui11.ContextMenu.Separator,
|
|
3131
3285
|
__spreadValues({
|
|
3132
3286
|
"data-slot": "context-menu-separator",
|
|
@@ -3140,7 +3294,7 @@ function ContextMenuShortcut(_a) {
|
|
|
3140
3294
|
} = _b, props = __objRest(_b, [
|
|
3141
3295
|
"className"
|
|
3142
3296
|
]);
|
|
3143
|
-
return /* @__PURE__ */ (0,
|
|
3297
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3144
3298
|
"span",
|
|
3145
3299
|
__spreadValues({
|
|
3146
3300
|
"data-slot": "context-menu-shortcut",
|
|
@@ -3154,34 +3308,34 @@ function ContextMenuShortcut(_a) {
|
|
|
3154
3308
|
|
|
3155
3309
|
// components/ui/direction.tsx
|
|
3156
3310
|
var import_radix_ui12 = require("radix-ui");
|
|
3157
|
-
var
|
|
3311
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
3158
3312
|
function DirectionProvider({
|
|
3159
3313
|
dir,
|
|
3160
3314
|
direction,
|
|
3161
3315
|
children
|
|
3162
3316
|
}) {
|
|
3163
|
-
return /* @__PURE__ */ (0,
|
|
3317
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_radix_ui12.Direction.DirectionProvider, { dir: direction != null ? direction : dir, children });
|
|
3164
3318
|
}
|
|
3165
3319
|
var useDirection = import_radix_ui12.Direction.useDirection;
|
|
3166
3320
|
|
|
3167
3321
|
// components/ui/drawer.tsx
|
|
3168
3322
|
var import_vaul = require("vaul");
|
|
3169
|
-
var
|
|
3323
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
3170
3324
|
function Drawer(_a) {
|
|
3171
3325
|
var props = __objRest(_a, []);
|
|
3172
|
-
return /* @__PURE__ */ (0,
|
|
3326
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_vaul.Drawer.Root, __spreadValues({ "data-slot": "drawer" }, props));
|
|
3173
3327
|
}
|
|
3174
3328
|
function DrawerTrigger(_a) {
|
|
3175
3329
|
var props = __objRest(_a, []);
|
|
3176
|
-
return /* @__PURE__ */ (0,
|
|
3330
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_vaul.Drawer.Trigger, __spreadValues({ "data-slot": "drawer-trigger" }, props));
|
|
3177
3331
|
}
|
|
3178
3332
|
function DrawerPortal(_a) {
|
|
3179
3333
|
var props = __objRest(_a, []);
|
|
3180
|
-
return /* @__PURE__ */ (0,
|
|
3334
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_vaul.Drawer.Portal, __spreadValues({ "data-slot": "drawer-portal" }, props));
|
|
3181
3335
|
}
|
|
3182
3336
|
function DrawerClose(_a) {
|
|
3183
3337
|
var props = __objRest(_a, []);
|
|
3184
|
-
return /* @__PURE__ */ (0,
|
|
3338
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_vaul.Drawer.Close, __spreadValues({ "data-slot": "drawer-close" }, props));
|
|
3185
3339
|
}
|
|
3186
3340
|
function DrawerOverlay(_a) {
|
|
3187
3341
|
var _b = _a, {
|
|
@@ -3189,7 +3343,7 @@ function DrawerOverlay(_a) {
|
|
|
3189
3343
|
} = _b, props = __objRest(_b, [
|
|
3190
3344
|
"className"
|
|
3191
3345
|
]);
|
|
3192
|
-
return /* @__PURE__ */ (0,
|
|
3346
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3193
3347
|
import_vaul.Drawer.Overlay,
|
|
3194
3348
|
__spreadValues({
|
|
3195
3349
|
"data-slot": "drawer-overlay",
|
|
@@ -3208,9 +3362,9 @@ function DrawerContent(_a) {
|
|
|
3208
3362
|
"className",
|
|
3209
3363
|
"children"
|
|
3210
3364
|
]);
|
|
3211
|
-
return /* @__PURE__ */ (0,
|
|
3212
|
-
/* @__PURE__ */ (0,
|
|
3213
|
-
/* @__PURE__ */ (0,
|
|
3365
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(DrawerPortal, { "data-slot": "drawer-portal", children: [
|
|
3366
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DrawerOverlay, {}),
|
|
3367
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
3214
3368
|
import_vaul.Drawer.Content,
|
|
3215
3369
|
__spreadProps(__spreadValues({
|
|
3216
3370
|
"data-slot": "drawer-content",
|
|
@@ -3224,7 +3378,7 @@ function DrawerContent(_a) {
|
|
|
3224
3378
|
)
|
|
3225
3379
|
}, props), {
|
|
3226
3380
|
children: [
|
|
3227
|
-
/* @__PURE__ */ (0,
|
|
3381
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full bg-subtle group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
|
|
3228
3382
|
children
|
|
3229
3383
|
]
|
|
3230
3384
|
})
|
|
@@ -3233,7 +3387,7 @@ function DrawerContent(_a) {
|
|
|
3233
3387
|
}
|
|
3234
3388
|
function DrawerHeader(_a) {
|
|
3235
3389
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3236
|
-
return /* @__PURE__ */ (0,
|
|
3390
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3237
3391
|
"div",
|
|
3238
3392
|
__spreadValues({
|
|
3239
3393
|
"data-slot": "drawer-header",
|
|
@@ -3246,7 +3400,7 @@ function DrawerHeader(_a) {
|
|
|
3246
3400
|
}
|
|
3247
3401
|
function DrawerFooter(_a) {
|
|
3248
3402
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3249
|
-
return /* @__PURE__ */ (0,
|
|
3403
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3250
3404
|
"div",
|
|
3251
3405
|
__spreadValues({
|
|
3252
3406
|
"data-slot": "drawer-footer",
|
|
@@ -3260,7 +3414,7 @@ function DrawerTitle(_a) {
|
|
|
3260
3414
|
} = _b, props = __objRest(_b, [
|
|
3261
3415
|
"className"
|
|
3262
3416
|
]);
|
|
3263
|
-
return /* @__PURE__ */ (0,
|
|
3417
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3264
3418
|
import_vaul.Drawer.Title,
|
|
3265
3419
|
__spreadValues({
|
|
3266
3420
|
"data-slot": "drawer-title",
|
|
@@ -3274,7 +3428,7 @@ function DrawerDescription(_a) {
|
|
|
3274
3428
|
} = _b, props = __objRest(_b, [
|
|
3275
3429
|
"className"
|
|
3276
3430
|
]);
|
|
3277
|
-
return /* @__PURE__ */ (0,
|
|
3431
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3278
3432
|
import_vaul.Drawer.Description,
|
|
3279
3433
|
__spreadValues({
|
|
3280
3434
|
"data-slot": "drawer-description",
|
|
@@ -3284,20 +3438,20 @@ function DrawerDescription(_a) {
|
|
|
3284
3438
|
}
|
|
3285
3439
|
|
|
3286
3440
|
// components/ui/dropdown-menu.tsx
|
|
3287
|
-
var
|
|
3441
|
+
var import_lucide_react12 = require("lucide-react");
|
|
3288
3442
|
var import_radix_ui13 = require("radix-ui");
|
|
3289
|
-
var
|
|
3443
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
3290
3444
|
function DropdownMenu(_a) {
|
|
3291
3445
|
var props = __objRest(_a, []);
|
|
3292
|
-
return /* @__PURE__ */ (0,
|
|
3446
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_radix_ui13.DropdownMenu.Root, __spreadValues({ "data-slot": "dropdown-menu" }, props));
|
|
3293
3447
|
}
|
|
3294
3448
|
function DropdownMenuPortal(_a) {
|
|
3295
3449
|
var props = __objRest(_a, []);
|
|
3296
|
-
return /* @__PURE__ */ (0,
|
|
3450
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_radix_ui13.DropdownMenu.Portal, __spreadValues({ "data-slot": "dropdown-menu-portal" }, props));
|
|
3297
3451
|
}
|
|
3298
3452
|
function DropdownMenuTrigger(_a) {
|
|
3299
3453
|
var props = __objRest(_a, []);
|
|
3300
|
-
return /* @__PURE__ */ (0,
|
|
3454
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3301
3455
|
import_radix_ui13.DropdownMenu.Trigger,
|
|
3302
3456
|
__spreadValues({
|
|
3303
3457
|
"data-slot": "dropdown-menu-trigger"
|
|
@@ -3312,7 +3466,7 @@ function DropdownMenuContent(_a) {
|
|
|
3312
3466
|
"className",
|
|
3313
3467
|
"sideOffset"
|
|
3314
3468
|
]);
|
|
3315
|
-
return /* @__PURE__ */ (0,
|
|
3469
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_radix_ui13.DropdownMenu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3316
3470
|
import_radix_ui13.DropdownMenu.Content,
|
|
3317
3471
|
__spreadValues({
|
|
3318
3472
|
"data-slot": "dropdown-menu-content",
|
|
@@ -3326,7 +3480,7 @@ function DropdownMenuContent(_a) {
|
|
|
3326
3480
|
}
|
|
3327
3481
|
function DropdownMenuGroup(_a) {
|
|
3328
3482
|
var props = __objRest(_a, []);
|
|
3329
|
-
return /* @__PURE__ */ (0,
|
|
3483
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_radix_ui13.DropdownMenu.Group, __spreadValues({ "data-slot": "dropdown-menu-group" }, props));
|
|
3330
3484
|
}
|
|
3331
3485
|
function DropdownMenuItem(_a) {
|
|
3332
3486
|
var _b = _a, {
|
|
@@ -3338,7 +3492,7 @@ function DropdownMenuItem(_a) {
|
|
|
3338
3492
|
"inset",
|
|
3339
3493
|
"variant"
|
|
3340
3494
|
]);
|
|
3341
|
-
return /* @__PURE__ */ (0,
|
|
3495
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3342
3496
|
import_radix_ui13.DropdownMenu.Item,
|
|
3343
3497
|
__spreadValues({
|
|
3344
3498
|
"data-slot": "dropdown-menu-item",
|
|
@@ -3361,7 +3515,7 @@ function DropdownMenuCheckboxItem(_a) {
|
|
|
3361
3515
|
"children",
|
|
3362
3516
|
"checked"
|
|
3363
3517
|
]);
|
|
3364
|
-
return /* @__PURE__ */ (0,
|
|
3518
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
3365
3519
|
import_radix_ui13.DropdownMenu.CheckboxItem,
|
|
3366
3520
|
__spreadProps(__spreadValues({
|
|
3367
3521
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
@@ -3372,7 +3526,7 @@ function DropdownMenuCheckboxItem(_a) {
|
|
|
3372
3526
|
checked
|
|
3373
3527
|
}, props), {
|
|
3374
3528
|
children: [
|
|
3375
|
-
/* @__PURE__ */ (0,
|
|
3529
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_radix_ui13.DropdownMenu.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react12.CheckIcon, { className: "size-4" }) }) }),
|
|
3376
3530
|
children
|
|
3377
3531
|
]
|
|
3378
3532
|
})
|
|
@@ -3380,7 +3534,7 @@ function DropdownMenuCheckboxItem(_a) {
|
|
|
3380
3534
|
}
|
|
3381
3535
|
function DropdownMenuRadioGroup(_a) {
|
|
3382
3536
|
var props = __objRest(_a, []);
|
|
3383
|
-
return /* @__PURE__ */ (0,
|
|
3537
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3384
3538
|
import_radix_ui13.DropdownMenu.RadioGroup,
|
|
3385
3539
|
__spreadValues({
|
|
3386
3540
|
"data-slot": "dropdown-menu-radio-group"
|
|
@@ -3395,7 +3549,7 @@ function DropdownMenuRadioItem(_a) {
|
|
|
3395
3549
|
"className",
|
|
3396
3550
|
"children"
|
|
3397
3551
|
]);
|
|
3398
|
-
return /* @__PURE__ */ (0,
|
|
3552
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
3399
3553
|
import_radix_ui13.DropdownMenu.RadioItem,
|
|
3400
3554
|
__spreadProps(__spreadValues({
|
|
3401
3555
|
"data-slot": "dropdown-menu-radio-item",
|
|
@@ -3405,7 +3559,7 @@ function DropdownMenuRadioItem(_a) {
|
|
|
3405
3559
|
)
|
|
3406
3560
|
}, props), {
|
|
3407
3561
|
children: [
|
|
3408
|
-
/* @__PURE__ */ (0,
|
|
3562
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_radix_ui13.DropdownMenu.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react12.CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
3409
3563
|
children
|
|
3410
3564
|
]
|
|
3411
3565
|
})
|
|
@@ -3419,7 +3573,7 @@ function DropdownMenuLabel(_a) {
|
|
|
3419
3573
|
"className",
|
|
3420
3574
|
"inset"
|
|
3421
3575
|
]);
|
|
3422
|
-
return /* @__PURE__ */ (0,
|
|
3576
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3423
3577
|
import_radix_ui13.DropdownMenu.Label,
|
|
3424
3578
|
__spreadValues({
|
|
3425
3579
|
"data-slot": "dropdown-menu-label",
|
|
@@ -3437,7 +3591,7 @@ function DropdownMenuSeparator(_a) {
|
|
|
3437
3591
|
} = _b, props = __objRest(_b, [
|
|
3438
3592
|
"className"
|
|
3439
3593
|
]);
|
|
3440
|
-
return /* @__PURE__ */ (0,
|
|
3594
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3441
3595
|
import_radix_ui13.DropdownMenu.Separator,
|
|
3442
3596
|
__spreadValues({
|
|
3443
3597
|
"data-slot": "dropdown-menu-separator",
|
|
@@ -3451,7 +3605,7 @@ function DropdownMenuShortcut(_a) {
|
|
|
3451
3605
|
} = _b, props = __objRest(_b, [
|
|
3452
3606
|
"className"
|
|
3453
3607
|
]);
|
|
3454
|
-
return /* @__PURE__ */ (0,
|
|
3608
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3455
3609
|
"span",
|
|
3456
3610
|
__spreadValues({
|
|
3457
3611
|
"data-slot": "dropdown-menu-shortcut",
|
|
@@ -3464,7 +3618,7 @@ function DropdownMenuShortcut(_a) {
|
|
|
3464
3618
|
}
|
|
3465
3619
|
function DropdownMenuSub(_a) {
|
|
3466
3620
|
var props = __objRest(_a, []);
|
|
3467
|
-
return /* @__PURE__ */ (0,
|
|
3621
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_radix_ui13.DropdownMenu.Sub, __spreadValues({ "data-slot": "dropdown-menu-sub" }, props));
|
|
3468
3622
|
}
|
|
3469
3623
|
function DropdownMenuSubTrigger(_a) {
|
|
3470
3624
|
var _b = _a, {
|
|
@@ -3476,7 +3630,7 @@ function DropdownMenuSubTrigger(_a) {
|
|
|
3476
3630
|
"inset",
|
|
3477
3631
|
"children"
|
|
3478
3632
|
]);
|
|
3479
|
-
return /* @__PURE__ */ (0,
|
|
3633
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
3480
3634
|
import_radix_ui13.DropdownMenu.SubTrigger,
|
|
3481
3635
|
__spreadProps(__spreadValues({
|
|
3482
3636
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
@@ -3488,7 +3642,7 @@ function DropdownMenuSubTrigger(_a) {
|
|
|
3488
3642
|
}, props), {
|
|
3489
3643
|
children: [
|
|
3490
3644
|
children,
|
|
3491
|
-
/* @__PURE__ */ (0,
|
|
3645
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react12.ChevronRightIcon, { className: "ml-auto size-4" })
|
|
3492
3646
|
]
|
|
3493
3647
|
})
|
|
3494
3648
|
);
|
|
@@ -3499,7 +3653,7 @@ function DropdownMenuSubContent(_a) {
|
|
|
3499
3653
|
} = _b, props = __objRest(_b, [
|
|
3500
3654
|
"className"
|
|
3501
3655
|
]);
|
|
3502
|
-
return /* @__PURE__ */ (0,
|
|
3656
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3503
3657
|
import_radix_ui13.DropdownMenu.SubContent,
|
|
3504
3658
|
__spreadValues({
|
|
3505
3659
|
"data-slot": "dropdown-menu-sub-content",
|
|
@@ -3513,10 +3667,10 @@ function DropdownMenuSubContent(_a) {
|
|
|
3513
3667
|
|
|
3514
3668
|
// components/ui/empty.tsx
|
|
3515
3669
|
var import_class_variance_authority6 = require("class-variance-authority");
|
|
3516
|
-
var
|
|
3670
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
3517
3671
|
function Empty(_a) {
|
|
3518
3672
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3519
|
-
return /* @__PURE__ */ (0,
|
|
3673
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3520
3674
|
"div",
|
|
3521
3675
|
__spreadValues({
|
|
3522
3676
|
"data-slot": "empty",
|
|
@@ -3529,7 +3683,7 @@ function Empty(_a) {
|
|
|
3529
3683
|
}
|
|
3530
3684
|
function EmptyHeader(_a) {
|
|
3531
3685
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3532
|
-
return /* @__PURE__ */ (0,
|
|
3686
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3533
3687
|
"div",
|
|
3534
3688
|
__spreadValues({
|
|
3535
3689
|
"data-slot": "empty-header",
|
|
@@ -3562,7 +3716,7 @@ function EmptyMedia(_a) {
|
|
|
3562
3716
|
"className",
|
|
3563
3717
|
"variant"
|
|
3564
3718
|
]);
|
|
3565
|
-
return /* @__PURE__ */ (0,
|
|
3719
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3566
3720
|
"div",
|
|
3567
3721
|
__spreadValues({
|
|
3568
3722
|
"data-slot": "empty-icon",
|
|
@@ -3573,7 +3727,7 @@ function EmptyMedia(_a) {
|
|
|
3573
3727
|
}
|
|
3574
3728
|
function EmptyTitle(_a) {
|
|
3575
3729
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3576
|
-
return /* @__PURE__ */ (0,
|
|
3730
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3577
3731
|
"div",
|
|
3578
3732
|
__spreadValues({
|
|
3579
3733
|
"data-slot": "empty-title",
|
|
@@ -3583,7 +3737,7 @@ function EmptyTitle(_a) {
|
|
|
3583
3737
|
}
|
|
3584
3738
|
function EmptyDescription(_a) {
|
|
3585
3739
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3586
|
-
return /* @__PURE__ */ (0,
|
|
3740
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3587
3741
|
"div",
|
|
3588
3742
|
__spreadValues({
|
|
3589
3743
|
"data-slot": "empty-description",
|
|
@@ -3596,7 +3750,7 @@ function EmptyDescription(_a) {
|
|
|
3596
3750
|
}
|
|
3597
3751
|
function EmptyContent(_a) {
|
|
3598
3752
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3599
|
-
return /* @__PURE__ */ (0,
|
|
3753
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3600
3754
|
"div",
|
|
3601
3755
|
__spreadValues({
|
|
3602
3756
|
"data-slot": "empty-content",
|
|
@@ -3614,14 +3768,14 @@ var import_class_variance_authority7 = require("class-variance-authority");
|
|
|
3614
3768
|
|
|
3615
3769
|
// components/ui/label.tsx
|
|
3616
3770
|
var import_radix_ui14 = require("radix-ui");
|
|
3617
|
-
var
|
|
3771
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
3618
3772
|
function Label(_a) {
|
|
3619
3773
|
var _b = _a, {
|
|
3620
3774
|
className
|
|
3621
3775
|
} = _b, props = __objRest(_b, [
|
|
3622
3776
|
"className"
|
|
3623
3777
|
]);
|
|
3624
|
-
return /* @__PURE__ */ (0,
|
|
3778
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3625
3779
|
import_radix_ui14.Label.Root,
|
|
3626
3780
|
__spreadValues({
|
|
3627
3781
|
"data-slot": "label",
|
|
@@ -3635,7 +3789,7 @@ function Label(_a) {
|
|
|
3635
3789
|
|
|
3636
3790
|
// components/ui/separator.tsx
|
|
3637
3791
|
var import_radix_ui15 = require("radix-ui");
|
|
3638
|
-
var
|
|
3792
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
3639
3793
|
function Separator(_a) {
|
|
3640
3794
|
var _b = _a, {
|
|
3641
3795
|
className,
|
|
@@ -3646,7 +3800,7 @@ function Separator(_a) {
|
|
|
3646
3800
|
"orientation",
|
|
3647
3801
|
"decorative"
|
|
3648
3802
|
]);
|
|
3649
|
-
return /* @__PURE__ */ (0,
|
|
3803
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3650
3804
|
import_radix_ui15.Separator.Root,
|
|
3651
3805
|
__spreadValues({
|
|
3652
3806
|
"data-slot": "separator",
|
|
@@ -3661,10 +3815,10 @@ function Separator(_a) {
|
|
|
3661
3815
|
}
|
|
3662
3816
|
|
|
3663
3817
|
// components/ui/field.tsx
|
|
3664
|
-
var
|
|
3818
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
3665
3819
|
function FieldSet(_a) {
|
|
3666
3820
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3667
|
-
return /* @__PURE__ */ (0,
|
|
3821
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3668
3822
|
"fieldset",
|
|
3669
3823
|
__spreadValues({
|
|
3670
3824
|
"data-slot": "field-set",
|
|
@@ -3684,7 +3838,7 @@ function FieldLegend(_a) {
|
|
|
3684
3838
|
"className",
|
|
3685
3839
|
"variant"
|
|
3686
3840
|
]);
|
|
3687
|
-
return /* @__PURE__ */ (0,
|
|
3841
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3688
3842
|
"legend",
|
|
3689
3843
|
__spreadValues({
|
|
3690
3844
|
"data-slot": "field-legend",
|
|
@@ -3700,7 +3854,7 @@ function FieldLegend(_a) {
|
|
|
3700
3854
|
}
|
|
3701
3855
|
function FieldGroup(_a) {
|
|
3702
3856
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3703
|
-
return /* @__PURE__ */ (0,
|
|
3857
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3704
3858
|
"div",
|
|
3705
3859
|
__spreadValues({
|
|
3706
3860
|
"data-slot": "field-group",
|
|
@@ -3742,7 +3896,7 @@ function Field(_a) {
|
|
|
3742
3896
|
"className",
|
|
3743
3897
|
"orientation"
|
|
3744
3898
|
]);
|
|
3745
|
-
return /* @__PURE__ */ (0,
|
|
3899
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3746
3900
|
"div",
|
|
3747
3901
|
__spreadValues({
|
|
3748
3902
|
role: "group",
|
|
@@ -3754,7 +3908,7 @@ function Field(_a) {
|
|
|
3754
3908
|
}
|
|
3755
3909
|
function FieldContent(_a) {
|
|
3756
3910
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3757
|
-
return /* @__PURE__ */ (0,
|
|
3911
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3758
3912
|
"div",
|
|
3759
3913
|
__spreadValues({
|
|
3760
3914
|
"data-slot": "field-content",
|
|
@@ -3771,7 +3925,7 @@ function FieldLabel(_a) {
|
|
|
3771
3925
|
} = _b, props = __objRest(_b, [
|
|
3772
3926
|
"className"
|
|
3773
3927
|
]);
|
|
3774
|
-
return /* @__PURE__ */ (0,
|
|
3928
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3775
3929
|
Label,
|
|
3776
3930
|
__spreadValues({
|
|
3777
3931
|
"data-slot": "field-label",
|
|
@@ -3786,7 +3940,7 @@ function FieldLabel(_a) {
|
|
|
3786
3940
|
}
|
|
3787
3941
|
function FieldTitle(_a) {
|
|
3788
3942
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3789
|
-
return /* @__PURE__ */ (0,
|
|
3943
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3790
3944
|
"div",
|
|
3791
3945
|
__spreadValues({
|
|
3792
3946
|
"data-slot": "field-label",
|
|
@@ -3799,7 +3953,7 @@ function FieldTitle(_a) {
|
|
|
3799
3953
|
}
|
|
3800
3954
|
function FieldDescription(_a) {
|
|
3801
3955
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3802
|
-
return /* @__PURE__ */ (0,
|
|
3956
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3803
3957
|
"p",
|
|
3804
3958
|
__spreadValues({
|
|
3805
3959
|
"data-slot": "field-description",
|
|
@@ -3820,7 +3974,7 @@ function FieldSeparator(_a) {
|
|
|
3820
3974
|
"children",
|
|
3821
3975
|
"className"
|
|
3822
3976
|
]);
|
|
3823
|
-
return /* @__PURE__ */ (0,
|
|
3977
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
3824
3978
|
"div",
|
|
3825
3979
|
__spreadProps(__spreadValues({
|
|
3826
3980
|
"data-slot": "field-separator",
|
|
@@ -3831,8 +3985,8 @@ function FieldSeparator(_a) {
|
|
|
3831
3985
|
)
|
|
3832
3986
|
}, props), {
|
|
3833
3987
|
children: [
|
|
3834
|
-
/* @__PURE__ */ (0,
|
|
3835
|
-
children && /* @__PURE__ */ (0,
|
|
3988
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Separator, { className: "absolute inset-0 top-1/2" }),
|
|
3989
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3836
3990
|
"span",
|
|
3837
3991
|
{
|
|
3838
3992
|
className: "relative mx-auto block w-fit bg-prominent px-2 text-on-subtle",
|
|
@@ -3868,14 +4022,14 @@ function FieldError(_a) {
|
|
|
3868
4022
|
if ((uniqueErrors == null ? void 0 : uniqueErrors.length) == 1) {
|
|
3869
4023
|
return (_a2 = uniqueErrors[0]) == null ? void 0 : _a2.message;
|
|
3870
4024
|
}
|
|
3871
|
-
return /* @__PURE__ */ (0,
|
|
3872
|
-
(error, index) => (error == null ? void 0 : error.message) && /* @__PURE__ */ (0,
|
|
4025
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: uniqueErrors.map(
|
|
4026
|
+
(error, index) => (error == null ? void 0 : error.message) && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("li", { children: error.message }, index)
|
|
3873
4027
|
) });
|
|
3874
4028
|
}, [children, errors]);
|
|
3875
4029
|
if (!content) {
|
|
3876
4030
|
return null;
|
|
3877
4031
|
}
|
|
3878
|
-
return /* @__PURE__ */ (0,
|
|
4032
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3879
4033
|
"div",
|
|
3880
4034
|
__spreadProps(__spreadValues({
|
|
3881
4035
|
role: "alert",
|
|
@@ -3888,21 +4042,21 @@ function FieldError(_a) {
|
|
|
3888
4042
|
}
|
|
3889
4043
|
|
|
3890
4044
|
// components/ui/form.tsx
|
|
3891
|
-
var
|
|
4045
|
+
var React8 = __toESM(require("react"), 1);
|
|
3892
4046
|
var import_radix_ui16 = require("radix-ui");
|
|
3893
4047
|
var import_react_hook_form = require("react-hook-form");
|
|
3894
|
-
var
|
|
4048
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
3895
4049
|
var Form = import_react_hook_form.FormProvider;
|
|
3896
|
-
var FormFieldContext =
|
|
4050
|
+
var FormFieldContext = React8.createContext(
|
|
3897
4051
|
{}
|
|
3898
4052
|
);
|
|
3899
4053
|
var FormField = (_a) => {
|
|
3900
4054
|
var props = __objRest(_a, []);
|
|
3901
|
-
return /* @__PURE__ */ (0,
|
|
4055
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react_hook_form.Controller, __spreadValues({}, props)) });
|
|
3902
4056
|
};
|
|
3903
4057
|
var useFormField = () => {
|
|
3904
|
-
const fieldContext =
|
|
3905
|
-
const itemContext =
|
|
4058
|
+
const fieldContext = React8.useContext(FormFieldContext);
|
|
4059
|
+
const itemContext = React8.useContext(FormItemContext);
|
|
3906
4060
|
const { getFieldState } = (0, import_react_hook_form.useFormContext)();
|
|
3907
4061
|
const formState = (0, import_react_hook_form.useFormState)({ name: fieldContext.name });
|
|
3908
4062
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
@@ -3918,13 +4072,13 @@ var useFormField = () => {
|
|
|
3918
4072
|
formMessageId: `${id}-form-item-message`
|
|
3919
4073
|
}, fieldState);
|
|
3920
4074
|
};
|
|
3921
|
-
var FormItemContext =
|
|
4075
|
+
var FormItemContext = React8.createContext(
|
|
3922
4076
|
{}
|
|
3923
4077
|
);
|
|
3924
4078
|
function FormItem(_a) {
|
|
3925
4079
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3926
|
-
const id =
|
|
3927
|
-
return /* @__PURE__ */ (0,
|
|
4080
|
+
const id = React8.useId();
|
|
4081
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3928
4082
|
"div",
|
|
3929
4083
|
__spreadValues({
|
|
3930
4084
|
"data-slot": "form-item",
|
|
@@ -3939,7 +4093,7 @@ function FormLabel(_a) {
|
|
|
3939
4093
|
"className"
|
|
3940
4094
|
]);
|
|
3941
4095
|
const { error, formItemId } = useFormField();
|
|
3942
|
-
return /* @__PURE__ */ (0,
|
|
4096
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3943
4097
|
Label,
|
|
3944
4098
|
__spreadValues({
|
|
3945
4099
|
"data-slot": "form-label",
|
|
@@ -3952,7 +4106,7 @@ function FormLabel(_a) {
|
|
|
3952
4106
|
function FormControl(_a) {
|
|
3953
4107
|
var props = __objRest(_a, []);
|
|
3954
4108
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
3955
|
-
return /* @__PURE__ */ (0,
|
|
4109
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3956
4110
|
import_radix_ui16.Slot.Root,
|
|
3957
4111
|
__spreadValues({
|
|
3958
4112
|
"data-slot": "form-control",
|
|
@@ -3965,7 +4119,7 @@ function FormControl(_a) {
|
|
|
3965
4119
|
function FormDescription(_a) {
|
|
3966
4120
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3967
4121
|
const { formDescriptionId } = useFormField();
|
|
3968
|
-
return /* @__PURE__ */ (0,
|
|
4122
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3969
4123
|
"p",
|
|
3970
4124
|
__spreadValues({
|
|
3971
4125
|
"data-slot": "form-description",
|
|
@@ -3982,7 +4136,7 @@ function FormMessage(_a) {
|
|
|
3982
4136
|
if (!body) {
|
|
3983
4137
|
return null;
|
|
3984
4138
|
}
|
|
3985
|
-
return /* @__PURE__ */ (0,
|
|
4139
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3986
4140
|
"p",
|
|
3987
4141
|
__spreadProps(__spreadValues({
|
|
3988
4142
|
"data-slot": "form-message",
|
|
@@ -3996,14 +4150,14 @@ function FormMessage(_a) {
|
|
|
3996
4150
|
|
|
3997
4151
|
// components/ui/hover-card.tsx
|
|
3998
4152
|
var import_radix_ui17 = require("radix-ui");
|
|
3999
|
-
var
|
|
4153
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
4000
4154
|
function HoverCard(_a) {
|
|
4001
4155
|
var props = __objRest(_a, []);
|
|
4002
|
-
return /* @__PURE__ */ (0,
|
|
4156
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_radix_ui17.HoverCard.Root, __spreadValues({ "data-slot": "hover-card" }, props));
|
|
4003
4157
|
}
|
|
4004
4158
|
function HoverCardTrigger(_a) {
|
|
4005
4159
|
var props = __objRest(_a, []);
|
|
4006
|
-
return /* @__PURE__ */ (0,
|
|
4160
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_radix_ui17.HoverCard.Trigger, __spreadValues({ "data-slot": "hover-card-trigger" }, props));
|
|
4007
4161
|
}
|
|
4008
4162
|
function HoverCardContent(_a) {
|
|
4009
4163
|
var _b = _a, {
|
|
@@ -4015,7 +4169,7 @@ function HoverCardContent(_a) {
|
|
|
4015
4169
|
"align",
|
|
4016
4170
|
"sideOffset"
|
|
4017
4171
|
]);
|
|
4018
|
-
return /* @__PURE__ */ (0,
|
|
4172
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_radix_ui17.HoverCard.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
4019
4173
|
import_radix_ui17.HoverCard.Content,
|
|
4020
4174
|
__spreadValues({
|
|
4021
4175
|
"data-slot": "hover-card-content",
|
|
@@ -4030,10 +4184,10 @@ function HoverCardContent(_a) {
|
|
|
4030
4184
|
}
|
|
4031
4185
|
|
|
4032
4186
|
// components/ui/input-otp.tsx
|
|
4033
|
-
var
|
|
4187
|
+
var React9 = __toESM(require("react"), 1);
|
|
4034
4188
|
var import_input_otp = require("input-otp");
|
|
4035
|
-
var
|
|
4036
|
-
var
|
|
4189
|
+
var import_lucide_react13 = require("lucide-react");
|
|
4190
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
4037
4191
|
function InputOTP(_a) {
|
|
4038
4192
|
var _b = _a, {
|
|
4039
4193
|
className,
|
|
@@ -4042,7 +4196,7 @@ function InputOTP(_a) {
|
|
|
4042
4196
|
"className",
|
|
4043
4197
|
"containerClassName"
|
|
4044
4198
|
]);
|
|
4045
|
-
return /* @__PURE__ */ (0,
|
|
4199
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
4046
4200
|
import_input_otp.OTPInput,
|
|
4047
4201
|
__spreadValues({
|
|
4048
4202
|
"data-slot": "input-otp",
|
|
@@ -4056,7 +4210,7 @@ function InputOTP(_a) {
|
|
|
4056
4210
|
}
|
|
4057
4211
|
function InputOTPGroup(_a) {
|
|
4058
4212
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4059
|
-
return /* @__PURE__ */ (0,
|
|
4213
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
4060
4214
|
"div",
|
|
4061
4215
|
__spreadValues({
|
|
4062
4216
|
"data-slot": "input-otp-group",
|
|
@@ -4073,9 +4227,9 @@ function InputOTPSlot(_a) {
|
|
|
4073
4227
|
"className"
|
|
4074
4228
|
]);
|
|
4075
4229
|
var _a2;
|
|
4076
|
-
const inputOTPContext =
|
|
4230
|
+
const inputOTPContext = React9.useContext(import_input_otp.OTPInputContext);
|
|
4077
4231
|
const { char, hasFakeCaret, isActive } = (_a2 = inputOTPContext == null ? void 0 : inputOTPContext.slots[index]) != null ? _a2 : {};
|
|
4078
|
-
return /* @__PURE__ */ (0,
|
|
4232
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
4079
4233
|
"div",
|
|
4080
4234
|
__spreadProps(__spreadValues({
|
|
4081
4235
|
"data-slot": "input-otp-slot",
|
|
@@ -4087,23 +4241,23 @@ function InputOTPSlot(_a) {
|
|
|
4087
4241
|
}, props), {
|
|
4088
4242
|
children: [
|
|
4089
4243
|
char,
|
|
4090
|
-
hasFakeCaret && /* @__PURE__ */ (0,
|
|
4244
|
+
hasFakeCaret && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
|
|
4091
4245
|
]
|
|
4092
4246
|
})
|
|
4093
4247
|
);
|
|
4094
4248
|
}
|
|
4095
4249
|
function InputOTPSeparator(_a) {
|
|
4096
4250
|
var props = __objRest(_a, []);
|
|
4097
|
-
return /* @__PURE__ */ (0,
|
|
4251
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", __spreadProps(__spreadValues({ "data-slot": "input-otp-separator", role: "separator" }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react13.MinusIcon, {}) }));
|
|
4098
4252
|
}
|
|
4099
4253
|
|
|
4100
4254
|
// components/ui/item.tsx
|
|
4101
4255
|
var import_class_variance_authority8 = require("class-variance-authority");
|
|
4102
4256
|
var import_radix_ui18 = require("radix-ui");
|
|
4103
|
-
var
|
|
4257
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
4104
4258
|
function ItemGroup(_a) {
|
|
4105
4259
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4106
|
-
return /* @__PURE__ */ (0,
|
|
4260
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
4107
4261
|
"div",
|
|
4108
4262
|
__spreadValues({
|
|
4109
4263
|
role: "list",
|
|
@@ -4118,7 +4272,7 @@ function ItemSeparator(_a) {
|
|
|
4118
4272
|
} = _b, props = __objRest(_b, [
|
|
4119
4273
|
"className"
|
|
4120
4274
|
]);
|
|
4121
|
-
return /* @__PURE__ */ (0,
|
|
4275
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
4122
4276
|
Separator,
|
|
4123
4277
|
__spreadValues({
|
|
4124
4278
|
"data-slot": "item-separator",
|
|
@@ -4160,7 +4314,7 @@ function Item(_a) {
|
|
|
4160
4314
|
"asChild"
|
|
4161
4315
|
]);
|
|
4162
4316
|
const Comp = asChild ? import_radix_ui18.Slot.Root : "div";
|
|
4163
|
-
return /* @__PURE__ */ (0,
|
|
4317
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
4164
4318
|
Comp,
|
|
4165
4319
|
__spreadValues({
|
|
4166
4320
|
"data-slot": "item",
|
|
@@ -4193,7 +4347,7 @@ function ItemMedia(_a) {
|
|
|
4193
4347
|
"className",
|
|
4194
4348
|
"variant"
|
|
4195
4349
|
]);
|
|
4196
|
-
return /* @__PURE__ */ (0,
|
|
4350
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
4197
4351
|
"div",
|
|
4198
4352
|
__spreadValues({
|
|
4199
4353
|
"data-slot": "item-media",
|
|
@@ -4204,7 +4358,7 @@ function ItemMedia(_a) {
|
|
|
4204
4358
|
}
|
|
4205
4359
|
function ItemContent(_a) {
|
|
4206
4360
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4207
|
-
return /* @__PURE__ */ (0,
|
|
4361
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
4208
4362
|
"div",
|
|
4209
4363
|
__spreadValues({
|
|
4210
4364
|
"data-slot": "item-content",
|
|
@@ -4217,7 +4371,7 @@ function ItemContent(_a) {
|
|
|
4217
4371
|
}
|
|
4218
4372
|
function ItemTitle(_a) {
|
|
4219
4373
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4220
|
-
return /* @__PURE__ */ (0,
|
|
4374
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
4221
4375
|
"div",
|
|
4222
4376
|
__spreadValues({
|
|
4223
4377
|
"data-slot": "item-title",
|
|
@@ -4230,7 +4384,7 @@ function ItemTitle(_a) {
|
|
|
4230
4384
|
}
|
|
4231
4385
|
function ItemDescription(_a) {
|
|
4232
4386
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4233
|
-
return /* @__PURE__ */ (0,
|
|
4387
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
4234
4388
|
"p",
|
|
4235
4389
|
__spreadValues({
|
|
4236
4390
|
"data-slot": "item-description",
|
|
@@ -4244,7 +4398,7 @@ function ItemDescription(_a) {
|
|
|
4244
4398
|
}
|
|
4245
4399
|
function ItemActions(_a) {
|
|
4246
4400
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4247
|
-
return /* @__PURE__ */ (0,
|
|
4401
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
4248
4402
|
"div",
|
|
4249
4403
|
__spreadValues({
|
|
4250
4404
|
"data-slot": "item-actions",
|
|
@@ -4254,7 +4408,7 @@ function ItemActions(_a) {
|
|
|
4254
4408
|
}
|
|
4255
4409
|
function ItemHeader(_a) {
|
|
4256
4410
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4257
|
-
return /* @__PURE__ */ (0,
|
|
4411
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
4258
4412
|
"div",
|
|
4259
4413
|
__spreadValues({
|
|
4260
4414
|
"data-slot": "item-header",
|
|
@@ -4267,7 +4421,7 @@ function ItemHeader(_a) {
|
|
|
4267
4421
|
}
|
|
4268
4422
|
function ItemFooter(_a) {
|
|
4269
4423
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4270
|
-
return /* @__PURE__ */ (0,
|
|
4424
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
4271
4425
|
"div",
|
|
4272
4426
|
__spreadValues({
|
|
4273
4427
|
"data-slot": "item-footer",
|
|
@@ -4280,10 +4434,10 @@ function ItemFooter(_a) {
|
|
|
4280
4434
|
}
|
|
4281
4435
|
|
|
4282
4436
|
// components/ui/kbd.tsx
|
|
4283
|
-
var
|
|
4437
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
4284
4438
|
function Kbd(_a) {
|
|
4285
4439
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4286
|
-
return /* @__PURE__ */ (0,
|
|
4440
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
4287
4441
|
"kbd",
|
|
4288
4442
|
__spreadValues({
|
|
4289
4443
|
"data-slot": "kbd",
|
|
@@ -4298,7 +4452,7 @@ function Kbd(_a) {
|
|
|
4298
4452
|
}
|
|
4299
4453
|
function KbdGroup(_a) {
|
|
4300
4454
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4301
|
-
return /* @__PURE__ */ (0,
|
|
4455
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
4302
4456
|
"kbd",
|
|
4303
4457
|
__spreadValues({
|
|
4304
4458
|
"data-slot": "kbd-group",
|
|
@@ -4310,7 +4464,7 @@ function KbdGroup(_a) {
|
|
|
4310
4464
|
// components/ui/link.tsx
|
|
4311
4465
|
var import_class_variance_authority9 = require("class-variance-authority");
|
|
4312
4466
|
var import_radix_ui19 = require("radix-ui");
|
|
4313
|
-
var
|
|
4467
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
4314
4468
|
var linkVariants = (0, import_class_variance_authority9.cva)(
|
|
4315
4469
|
"inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap transition-all outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 active:opacity-60 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:inline font-display font-bold normal-case text-primary hover:underline decoration-2 underline-offset-4",
|
|
4316
4470
|
{
|
|
@@ -4337,7 +4491,7 @@ function Link(_a) {
|
|
|
4337
4491
|
"asChild"
|
|
4338
4492
|
]);
|
|
4339
4493
|
const Comp = asChild ? import_radix_ui19.Slot.Root : "a";
|
|
4340
|
-
return /* @__PURE__ */ (0,
|
|
4494
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
4341
4495
|
Comp,
|
|
4342
4496
|
__spreadValues({
|
|
4343
4497
|
"data-slot": "link",
|
|
@@ -4348,16 +4502,16 @@ function Link(_a) {
|
|
|
4348
4502
|
}
|
|
4349
4503
|
|
|
4350
4504
|
// components/ui/menubar.tsx
|
|
4351
|
-
var
|
|
4505
|
+
var import_lucide_react14 = require("lucide-react");
|
|
4352
4506
|
var import_radix_ui20 = require("radix-ui");
|
|
4353
|
-
var
|
|
4507
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
4354
4508
|
function Menubar(_a) {
|
|
4355
4509
|
var _b = _a, {
|
|
4356
4510
|
className
|
|
4357
4511
|
} = _b, props = __objRest(_b, [
|
|
4358
4512
|
"className"
|
|
4359
4513
|
]);
|
|
4360
|
-
return /* @__PURE__ */ (0,
|
|
4514
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4361
4515
|
import_radix_ui20.Menubar.Root,
|
|
4362
4516
|
__spreadValues({
|
|
4363
4517
|
"data-slot": "menubar",
|
|
@@ -4370,19 +4524,19 @@ function Menubar(_a) {
|
|
|
4370
4524
|
}
|
|
4371
4525
|
function MenubarMenu(_a) {
|
|
4372
4526
|
var props = __objRest(_a, []);
|
|
4373
|
-
return /* @__PURE__ */ (0,
|
|
4527
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_radix_ui20.Menubar.Menu, __spreadValues({ "data-slot": "menubar-menu" }, props));
|
|
4374
4528
|
}
|
|
4375
4529
|
function MenubarGroup(_a) {
|
|
4376
4530
|
var props = __objRest(_a, []);
|
|
4377
|
-
return /* @__PURE__ */ (0,
|
|
4531
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_radix_ui20.Menubar.Group, __spreadValues({ "data-slot": "menubar-group" }, props));
|
|
4378
4532
|
}
|
|
4379
4533
|
function MenubarPortal(_a) {
|
|
4380
4534
|
var props = __objRest(_a, []);
|
|
4381
|
-
return /* @__PURE__ */ (0,
|
|
4535
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_radix_ui20.Menubar.Portal, __spreadValues({ "data-slot": "menubar-portal" }, props));
|
|
4382
4536
|
}
|
|
4383
4537
|
function MenubarRadioGroup(_a) {
|
|
4384
4538
|
var props = __objRest(_a, []);
|
|
4385
|
-
return /* @__PURE__ */ (0,
|
|
4539
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_radix_ui20.Menubar.RadioGroup, __spreadValues({ "data-slot": "menubar-radio-group" }, props));
|
|
4386
4540
|
}
|
|
4387
4541
|
function MenubarTrigger(_a) {
|
|
4388
4542
|
var _b = _a, {
|
|
@@ -4390,7 +4544,7 @@ function MenubarTrigger(_a) {
|
|
|
4390
4544
|
} = _b, props = __objRest(_b, [
|
|
4391
4545
|
"className"
|
|
4392
4546
|
]);
|
|
4393
|
-
return /* @__PURE__ */ (0,
|
|
4547
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4394
4548
|
import_radix_ui20.Menubar.Trigger,
|
|
4395
4549
|
__spreadValues({
|
|
4396
4550
|
"data-slot": "menubar-trigger",
|
|
@@ -4413,7 +4567,7 @@ function MenubarContent(_a) {
|
|
|
4413
4567
|
"alignOffset",
|
|
4414
4568
|
"sideOffset"
|
|
4415
4569
|
]);
|
|
4416
|
-
return /* @__PURE__ */ (0,
|
|
4570
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(MenubarPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4417
4571
|
import_radix_ui20.Menubar.Content,
|
|
4418
4572
|
__spreadValues({
|
|
4419
4573
|
"data-slot": "menubar-content",
|
|
@@ -4437,7 +4591,7 @@ function MenubarItem(_a) {
|
|
|
4437
4591
|
"inset",
|
|
4438
4592
|
"variant"
|
|
4439
4593
|
]);
|
|
4440
|
-
return /* @__PURE__ */ (0,
|
|
4594
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4441
4595
|
import_radix_ui20.Menubar.Item,
|
|
4442
4596
|
__spreadValues({
|
|
4443
4597
|
"data-slot": "menubar-item",
|
|
@@ -4460,7 +4614,7 @@ function MenubarCheckboxItem(_a) {
|
|
|
4460
4614
|
"children",
|
|
4461
4615
|
"checked"
|
|
4462
4616
|
]);
|
|
4463
|
-
return /* @__PURE__ */ (0,
|
|
4617
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
4464
4618
|
import_radix_ui20.Menubar.CheckboxItem,
|
|
4465
4619
|
__spreadProps(__spreadValues({
|
|
4466
4620
|
"data-slot": "menubar-checkbox-item",
|
|
@@ -4471,7 +4625,7 @@ function MenubarCheckboxItem(_a) {
|
|
|
4471
4625
|
checked
|
|
4472
4626
|
}, props), {
|
|
4473
4627
|
children: [
|
|
4474
|
-
/* @__PURE__ */ (0,
|
|
4628
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_radix_ui20.Menubar.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react14.CheckIcon, { className: "size-4" }) }) }),
|
|
4475
4629
|
children
|
|
4476
4630
|
]
|
|
4477
4631
|
})
|
|
@@ -4485,7 +4639,7 @@ function MenubarRadioItem(_a) {
|
|
|
4485
4639
|
"className",
|
|
4486
4640
|
"children"
|
|
4487
4641
|
]);
|
|
4488
|
-
return /* @__PURE__ */ (0,
|
|
4642
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
4489
4643
|
import_radix_ui20.Menubar.RadioItem,
|
|
4490
4644
|
__spreadProps(__spreadValues({
|
|
4491
4645
|
"data-slot": "menubar-radio-item",
|
|
@@ -4495,7 +4649,7 @@ function MenubarRadioItem(_a) {
|
|
|
4495
4649
|
)
|
|
4496
4650
|
}, props), {
|
|
4497
4651
|
children: [
|
|
4498
|
-
/* @__PURE__ */ (0,
|
|
4652
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_radix_ui20.Menubar.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react14.CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
4499
4653
|
children
|
|
4500
4654
|
]
|
|
4501
4655
|
})
|
|
@@ -4509,7 +4663,7 @@ function MenubarLabel(_a) {
|
|
|
4509
4663
|
"className",
|
|
4510
4664
|
"inset"
|
|
4511
4665
|
]);
|
|
4512
|
-
return /* @__PURE__ */ (0,
|
|
4666
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4513
4667
|
import_radix_ui20.Menubar.Label,
|
|
4514
4668
|
__spreadValues({
|
|
4515
4669
|
"data-slot": "menubar-label",
|
|
@@ -4527,7 +4681,7 @@ function MenubarSeparator(_a) {
|
|
|
4527
4681
|
} = _b, props = __objRest(_b, [
|
|
4528
4682
|
"className"
|
|
4529
4683
|
]);
|
|
4530
|
-
return /* @__PURE__ */ (0,
|
|
4684
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4531
4685
|
import_radix_ui20.Menubar.Separator,
|
|
4532
4686
|
__spreadValues({
|
|
4533
4687
|
"data-slot": "menubar-separator",
|
|
@@ -4541,7 +4695,7 @@ function MenubarShortcut(_a) {
|
|
|
4541
4695
|
} = _b, props = __objRest(_b, [
|
|
4542
4696
|
"className"
|
|
4543
4697
|
]);
|
|
4544
|
-
return /* @__PURE__ */ (0,
|
|
4698
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4545
4699
|
"span",
|
|
4546
4700
|
__spreadValues({
|
|
4547
4701
|
"data-slot": "menubar-shortcut",
|
|
@@ -4554,7 +4708,7 @@ function MenubarShortcut(_a) {
|
|
|
4554
4708
|
}
|
|
4555
4709
|
function MenubarSub(_a) {
|
|
4556
4710
|
var props = __objRest(_a, []);
|
|
4557
|
-
return /* @__PURE__ */ (0,
|
|
4711
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_radix_ui20.Menubar.Sub, __spreadValues({ "data-slot": "menubar-sub" }, props));
|
|
4558
4712
|
}
|
|
4559
4713
|
function MenubarSubTrigger(_a) {
|
|
4560
4714
|
var _b = _a, {
|
|
@@ -4566,7 +4720,7 @@ function MenubarSubTrigger(_a) {
|
|
|
4566
4720
|
"inset",
|
|
4567
4721
|
"children"
|
|
4568
4722
|
]);
|
|
4569
|
-
return /* @__PURE__ */ (0,
|
|
4723
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
4570
4724
|
import_radix_ui20.Menubar.SubTrigger,
|
|
4571
4725
|
__spreadProps(__spreadValues({
|
|
4572
4726
|
"data-slot": "menubar-sub-trigger",
|
|
@@ -4578,7 +4732,7 @@ function MenubarSubTrigger(_a) {
|
|
|
4578
4732
|
}, props), {
|
|
4579
4733
|
children: [
|
|
4580
4734
|
children,
|
|
4581
|
-
/* @__PURE__ */ (0,
|
|
4735
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react14.ChevronRightIcon, { className: "ml-auto h-4 w-4" })
|
|
4582
4736
|
]
|
|
4583
4737
|
})
|
|
4584
4738
|
);
|
|
@@ -4589,7 +4743,7 @@ function MenubarSubContent(_a) {
|
|
|
4589
4743
|
} = _b, props = __objRest(_b, [
|
|
4590
4744
|
"className"
|
|
4591
4745
|
]);
|
|
4592
|
-
return /* @__PURE__ */ (0,
|
|
4746
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4593
4747
|
import_radix_ui20.Menubar.SubContent,
|
|
4594
4748
|
__spreadValues({
|
|
4595
4749
|
"data-slot": "menubar-sub-content",
|
|
@@ -4602,8 +4756,8 @@ function MenubarSubContent(_a) {
|
|
|
4602
4756
|
}
|
|
4603
4757
|
|
|
4604
4758
|
// components/ui/native-select.tsx
|
|
4605
|
-
var
|
|
4606
|
-
var
|
|
4759
|
+
var import_lucide_react15 = require("lucide-react");
|
|
4760
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
4607
4761
|
function NativeSelect(_a) {
|
|
4608
4762
|
var _b = _a, {
|
|
4609
4763
|
className,
|
|
@@ -4612,13 +4766,13 @@ function NativeSelect(_a) {
|
|
|
4612
4766
|
"className",
|
|
4613
4767
|
"size"
|
|
4614
4768
|
]);
|
|
4615
|
-
return /* @__PURE__ */ (0,
|
|
4769
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
4616
4770
|
"div",
|
|
4617
4771
|
{
|
|
4618
4772
|
className: "group/native-select relative w-fit has-[select:disabled]:opacity-50",
|
|
4619
4773
|
"data-slot": "native-select-wrapper",
|
|
4620
4774
|
children: [
|
|
4621
|
-
/* @__PURE__ */ (0,
|
|
4775
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4622
4776
|
"select",
|
|
4623
4777
|
__spreadValues({
|
|
4624
4778
|
"data-slot": "native-select",
|
|
@@ -4630,8 +4784,8 @@ function NativeSelect(_a) {
|
|
|
4630
4784
|
)
|
|
4631
4785
|
}, props)
|
|
4632
4786
|
),
|
|
4633
|
-
/* @__PURE__ */ (0,
|
|
4634
|
-
|
|
4787
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4788
|
+
import_lucide_react15.ChevronDownIcon,
|
|
4635
4789
|
{
|
|
4636
4790
|
className: "pointer-events-none absolute top-1/2 right-3.5 size-4 -translate-y-1/2 text-on-subtle opacity-50 select-none",
|
|
4637
4791
|
"aria-hidden": "true",
|
|
@@ -4644,7 +4798,7 @@ function NativeSelect(_a) {
|
|
|
4644
4798
|
}
|
|
4645
4799
|
function NativeSelectOption(_a) {
|
|
4646
4800
|
var props = __objRest(_a, []);
|
|
4647
|
-
return /* @__PURE__ */ (0,
|
|
4801
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("option", __spreadValues({ "data-slot": "native-select-option" }, props));
|
|
4648
4802
|
}
|
|
4649
4803
|
function NativeSelectOptGroup(_a) {
|
|
4650
4804
|
var _b = _a, {
|
|
@@ -4652,7 +4806,7 @@ function NativeSelectOptGroup(_a) {
|
|
|
4652
4806
|
} = _b, props = __objRest(_b, [
|
|
4653
4807
|
"className"
|
|
4654
4808
|
]);
|
|
4655
|
-
return /* @__PURE__ */ (0,
|
|
4809
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4656
4810
|
"optgroup",
|
|
4657
4811
|
__spreadValues({
|
|
4658
4812
|
"data-slot": "native-select-optgroup",
|
|
@@ -4664,7 +4818,7 @@ function NativeSelectOptGroup(_a) {
|
|
|
4664
4818
|
// components/ui/navigation-button.tsx
|
|
4665
4819
|
var import_class_variance_authority10 = require("class-variance-authority");
|
|
4666
4820
|
var import_radix_ui21 = require("radix-ui");
|
|
4667
|
-
var
|
|
4821
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
4668
4822
|
var navigationButtonVariants = (0, import_class_variance_authority10.cva)(
|
|
4669
4823
|
"inline-flex shrink-0 items-center justify-center bg-transparent text-on-prominent hover:bg-secondary-hover transition-all duration-fast ease-standard outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 active:opacity-60 disabled:pointer-events-none disabled:opacity-24 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
4670
4824
|
{
|
|
@@ -4694,7 +4848,7 @@ function NavigationButton(_a) {
|
|
|
4694
4848
|
"children"
|
|
4695
4849
|
]);
|
|
4696
4850
|
const Comp = asChild ? import_radix_ui21.Slot.Root : "button";
|
|
4697
|
-
return /* @__PURE__ */ (0,
|
|
4851
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4698
4852
|
Comp,
|
|
4699
4853
|
__spreadProps(__spreadValues({
|
|
4700
4854
|
"data-slot": "navigation-button",
|
|
@@ -4708,9 +4862,9 @@ function NavigationButton(_a) {
|
|
|
4708
4862
|
|
|
4709
4863
|
// components/ui/navigation-menu.tsx
|
|
4710
4864
|
var import_class_variance_authority11 = require("class-variance-authority");
|
|
4711
|
-
var
|
|
4865
|
+
var import_lucide_react16 = require("lucide-react");
|
|
4712
4866
|
var import_radix_ui22 = require("radix-ui");
|
|
4713
|
-
var
|
|
4867
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
4714
4868
|
function NavigationMenu(_a) {
|
|
4715
4869
|
var _b = _a, {
|
|
4716
4870
|
className,
|
|
@@ -4721,7 +4875,7 @@ function NavigationMenu(_a) {
|
|
|
4721
4875
|
"children",
|
|
4722
4876
|
"viewport"
|
|
4723
4877
|
]);
|
|
4724
|
-
return /* @__PURE__ */ (0,
|
|
4878
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
4725
4879
|
import_radix_ui22.NavigationMenu.Root,
|
|
4726
4880
|
__spreadProps(__spreadValues({
|
|
4727
4881
|
"data-slot": "navigation-menu",
|
|
@@ -4733,7 +4887,7 @@ function NavigationMenu(_a) {
|
|
|
4733
4887
|
}, props), {
|
|
4734
4888
|
children: [
|
|
4735
4889
|
children,
|
|
4736
|
-
viewport && /* @__PURE__ */ (0,
|
|
4890
|
+
viewport && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(NavigationMenuViewport, {})
|
|
4737
4891
|
]
|
|
4738
4892
|
})
|
|
4739
4893
|
);
|
|
@@ -4744,7 +4898,7 @@ function NavigationMenuList(_a) {
|
|
|
4744
4898
|
} = _b, props = __objRest(_b, [
|
|
4745
4899
|
"className"
|
|
4746
4900
|
]);
|
|
4747
|
-
return /* @__PURE__ */ (0,
|
|
4901
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4748
4902
|
import_radix_ui22.NavigationMenu.List,
|
|
4749
4903
|
__spreadValues({
|
|
4750
4904
|
"data-slot": "navigation-menu-list",
|
|
@@ -4761,7 +4915,7 @@ function NavigationMenuItem(_a) {
|
|
|
4761
4915
|
} = _b, props = __objRest(_b, [
|
|
4762
4916
|
"className"
|
|
4763
4917
|
]);
|
|
4764
|
-
return /* @__PURE__ */ (0,
|
|
4918
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4765
4919
|
import_radix_ui22.NavigationMenu.Item,
|
|
4766
4920
|
__spreadValues({
|
|
4767
4921
|
"data-slot": "navigation-menu-item",
|
|
@@ -4780,7 +4934,7 @@ function NavigationMenuTrigger(_a) {
|
|
|
4780
4934
|
"className",
|
|
4781
4935
|
"children"
|
|
4782
4936
|
]);
|
|
4783
|
-
return /* @__PURE__ */ (0,
|
|
4937
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
4784
4938
|
import_radix_ui22.NavigationMenu.Trigger,
|
|
4785
4939
|
__spreadProps(__spreadValues({
|
|
4786
4940
|
"data-slot": "navigation-menu-trigger",
|
|
@@ -4789,8 +4943,8 @@ function NavigationMenuTrigger(_a) {
|
|
|
4789
4943
|
children: [
|
|
4790
4944
|
children,
|
|
4791
4945
|
" ",
|
|
4792
|
-
/* @__PURE__ */ (0,
|
|
4793
|
-
|
|
4946
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4947
|
+
import_lucide_react16.ChevronDownIcon,
|
|
4794
4948
|
{
|
|
4795
4949
|
className: "relative top-[1px] ml-1 size-3 transition duration-slow group-data-[state=open]:rotate-180",
|
|
4796
4950
|
"aria-hidden": "true"
|
|
@@ -4806,7 +4960,7 @@ function NavigationMenuContent(_a) {
|
|
|
4806
4960
|
} = _b, props = __objRest(_b, [
|
|
4807
4961
|
"className"
|
|
4808
4962
|
]);
|
|
4809
|
-
return /* @__PURE__ */ (0,
|
|
4963
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4810
4964
|
import_radix_ui22.NavigationMenu.Content,
|
|
4811
4965
|
__spreadValues({
|
|
4812
4966
|
"data-slot": "navigation-menu-content",
|
|
@@ -4824,13 +4978,13 @@ function NavigationMenuViewport(_a) {
|
|
|
4824
4978
|
} = _b, props = __objRest(_b, [
|
|
4825
4979
|
"className"
|
|
4826
4980
|
]);
|
|
4827
|
-
return /* @__PURE__ */ (0,
|
|
4981
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4828
4982
|
"div",
|
|
4829
4983
|
{
|
|
4830
4984
|
className: cn(
|
|
4831
4985
|
"absolute top-full left-0 isolate z-50 flex justify-center"
|
|
4832
4986
|
),
|
|
4833
|
-
children: /* @__PURE__ */ (0,
|
|
4987
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4834
4988
|
import_radix_ui22.NavigationMenu.Viewport,
|
|
4835
4989
|
__spreadValues({
|
|
4836
4990
|
"data-slot": "navigation-menu-viewport",
|
|
@@ -4849,7 +5003,7 @@ function NavigationMenuLink(_a) {
|
|
|
4849
5003
|
} = _b, props = __objRest(_b, [
|
|
4850
5004
|
"className"
|
|
4851
5005
|
]);
|
|
4852
|
-
return /* @__PURE__ */ (0,
|
|
5006
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4853
5007
|
import_radix_ui22.NavigationMenu.Link,
|
|
4854
5008
|
__spreadValues({
|
|
4855
5009
|
"data-slot": "navigation-menu-link",
|
|
@@ -4866,7 +5020,7 @@ function NavigationMenuIndicator(_a) {
|
|
|
4866
5020
|
} = _b, props = __objRest(_b, [
|
|
4867
5021
|
"className"
|
|
4868
5022
|
]);
|
|
4869
|
-
return /* @__PURE__ */ (0,
|
|
5023
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4870
5024
|
import_radix_ui22.NavigationMenu.Indicator,
|
|
4871
5025
|
__spreadProps(__spreadValues({
|
|
4872
5026
|
"data-slot": "navigation-menu-indicator",
|
|
@@ -4875,17 +5029,17 @@ function NavigationMenuIndicator(_a) {
|
|
|
4875
5029
|
className
|
|
4876
5030
|
)
|
|
4877
5031
|
}, props), {
|
|
4878
|
-
children: /* @__PURE__ */ (0,
|
|
5032
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
4879
5033
|
})
|
|
4880
5034
|
);
|
|
4881
5035
|
}
|
|
4882
5036
|
|
|
4883
5037
|
// components/ui/pagination.tsx
|
|
4884
|
-
var
|
|
4885
|
-
var
|
|
5038
|
+
var import_lucide_react17 = require("lucide-react");
|
|
5039
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
4886
5040
|
function Pagination(_a) {
|
|
4887
5041
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4888
|
-
return /* @__PURE__ */ (0,
|
|
5042
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4889
5043
|
"nav",
|
|
4890
5044
|
__spreadValues({
|
|
4891
5045
|
role: "navigation",
|
|
@@ -4901,7 +5055,7 @@ function PaginationContent(_a) {
|
|
|
4901
5055
|
} = _b, props = __objRest(_b, [
|
|
4902
5056
|
"className"
|
|
4903
5057
|
]);
|
|
4904
|
-
return /* @__PURE__ */ (0,
|
|
5058
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4905
5059
|
"ul",
|
|
4906
5060
|
__spreadValues({
|
|
4907
5061
|
"data-slot": "pagination-content",
|
|
@@ -4911,7 +5065,7 @@ function PaginationContent(_a) {
|
|
|
4911
5065
|
}
|
|
4912
5066
|
function PaginationItem(_a) {
|
|
4913
5067
|
var props = __objRest(_a, []);
|
|
4914
|
-
return /* @__PURE__ */ (0,
|
|
5068
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("li", __spreadValues({ "data-slot": "pagination-item" }, props));
|
|
4915
5069
|
}
|
|
4916
5070
|
function PaginationLink(_a) {
|
|
4917
5071
|
var _b = _a, {
|
|
@@ -4923,7 +5077,7 @@ function PaginationLink(_a) {
|
|
|
4923
5077
|
"isActive",
|
|
4924
5078
|
"size"
|
|
4925
5079
|
]);
|
|
4926
|
-
return /* @__PURE__ */ (0,
|
|
5080
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4927
5081
|
"a",
|
|
4928
5082
|
__spreadValues({
|
|
4929
5083
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -4943,7 +5097,7 @@ function PaginationPrevious(_a) {
|
|
|
4943
5097
|
} = _b, props = __objRest(_b, [
|
|
4944
5098
|
"className"
|
|
4945
5099
|
]);
|
|
4946
|
-
return /* @__PURE__ */ (0,
|
|
5100
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Button, { asChild: true, variant: "tertiary", size: "icon-md", className: cn(className), children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("a", __spreadProps(__spreadValues({ "aria-label": "Go to previous page", "data-slot": "pagination-link" }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react17.ChevronLeftIcon, { className: "size-5" }) })) });
|
|
4947
5101
|
}
|
|
4948
5102
|
function PaginationNext(_a) {
|
|
4949
5103
|
var _b = _a, {
|
|
@@ -4951,7 +5105,7 @@ function PaginationNext(_a) {
|
|
|
4951
5105
|
} = _b, props = __objRest(_b, [
|
|
4952
5106
|
"className"
|
|
4953
5107
|
]);
|
|
4954
|
-
return /* @__PURE__ */ (0,
|
|
5108
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Button, { asChild: true, variant: "tertiary", size: "icon-md", className: cn(className), children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("a", __spreadProps(__spreadValues({ "aria-label": "Go to next page", "data-slot": "pagination-link" }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react17.ChevronRightIcon, { className: "size-5" }) })) });
|
|
4955
5109
|
}
|
|
4956
5110
|
function PaginationEllipsis(_a) {
|
|
4957
5111
|
var _b = _a, {
|
|
@@ -4959,7 +5113,7 @@ function PaginationEllipsis(_a) {
|
|
|
4959
5113
|
} = _b, props = __objRest(_b, [
|
|
4960
5114
|
"className"
|
|
4961
5115
|
]);
|
|
4962
|
-
return /* @__PURE__ */ (0,
|
|
5116
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
4963
5117
|
"span",
|
|
4964
5118
|
__spreadProps(__spreadValues({
|
|
4965
5119
|
"aria-hidden": true,
|
|
@@ -4967,8 +5121,8 @@ function PaginationEllipsis(_a) {
|
|
|
4967
5121
|
className: cn("flex size-10 items-center justify-center", className)
|
|
4968
5122
|
}, props), {
|
|
4969
5123
|
children: [
|
|
4970
|
-
/* @__PURE__ */ (0,
|
|
4971
|
-
/* @__PURE__ */ (0,
|
|
5124
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react17.MoreHorizontalIcon, { className: "size-4" }),
|
|
5125
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "sr-only", children: "More pages" })
|
|
4972
5126
|
]
|
|
4973
5127
|
})
|
|
4974
5128
|
);
|
|
@@ -4976,14 +5130,14 @@ function PaginationEllipsis(_a) {
|
|
|
4976
5130
|
|
|
4977
5131
|
// components/ui/popover.tsx
|
|
4978
5132
|
var import_radix_ui23 = require("radix-ui");
|
|
4979
|
-
var
|
|
5133
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
4980
5134
|
function Popover(_a) {
|
|
4981
5135
|
var props = __objRest(_a, []);
|
|
4982
|
-
return /* @__PURE__ */ (0,
|
|
5136
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_radix_ui23.Popover.Root, __spreadValues({ "data-slot": "popover" }, props));
|
|
4983
5137
|
}
|
|
4984
5138
|
function PopoverTrigger(_a) {
|
|
4985
5139
|
var props = __objRest(_a, []);
|
|
4986
|
-
return /* @__PURE__ */ (0,
|
|
5140
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_radix_ui23.Popover.Trigger, __spreadValues({ "data-slot": "popover-trigger" }, props));
|
|
4987
5141
|
}
|
|
4988
5142
|
function PopoverContent(_a) {
|
|
4989
5143
|
var _b = _a, {
|
|
@@ -4995,7 +5149,7 @@ function PopoverContent(_a) {
|
|
|
4995
5149
|
"align",
|
|
4996
5150
|
"sideOffset"
|
|
4997
5151
|
]);
|
|
4998
|
-
return /* @__PURE__ */ (0,
|
|
5152
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_radix_ui23.Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4999
5153
|
import_radix_ui23.Popover.Content,
|
|
5000
5154
|
__spreadValues({
|
|
5001
5155
|
"data-slot": "popover-content",
|
|
@@ -5010,11 +5164,11 @@ function PopoverContent(_a) {
|
|
|
5010
5164
|
}
|
|
5011
5165
|
function PopoverAnchor(_a) {
|
|
5012
5166
|
var props = __objRest(_a, []);
|
|
5013
|
-
return /* @__PURE__ */ (0,
|
|
5167
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_radix_ui23.Popover.Anchor, __spreadValues({ "data-slot": "popover-anchor" }, props));
|
|
5014
5168
|
}
|
|
5015
5169
|
function PopoverHeader(_a) {
|
|
5016
5170
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5017
|
-
return /* @__PURE__ */ (0,
|
|
5171
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
5018
5172
|
"div",
|
|
5019
5173
|
__spreadValues({
|
|
5020
5174
|
"data-slot": "popover-header",
|
|
@@ -5024,7 +5178,7 @@ function PopoverHeader(_a) {
|
|
|
5024
5178
|
}
|
|
5025
5179
|
function PopoverTitle(_a) {
|
|
5026
5180
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5027
|
-
return /* @__PURE__ */ (0,
|
|
5181
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
5028
5182
|
"div",
|
|
5029
5183
|
__spreadValues({
|
|
5030
5184
|
"data-slot": "popover-title",
|
|
@@ -5038,7 +5192,7 @@ function PopoverDescription(_a) {
|
|
|
5038
5192
|
} = _b, props = __objRest(_b, [
|
|
5039
5193
|
"className"
|
|
5040
5194
|
]);
|
|
5041
|
-
return /* @__PURE__ */ (0,
|
|
5195
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
5042
5196
|
"p",
|
|
5043
5197
|
__spreadValues({
|
|
5044
5198
|
"data-slot": "popover-description",
|
|
@@ -5049,7 +5203,7 @@ function PopoverDescription(_a) {
|
|
|
5049
5203
|
|
|
5050
5204
|
// components/ui/progress.tsx
|
|
5051
5205
|
var import_radix_ui24 = require("radix-ui");
|
|
5052
|
-
var
|
|
5206
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
5053
5207
|
function Progress(_a) {
|
|
5054
5208
|
var _b = _a, {
|
|
5055
5209
|
className,
|
|
@@ -5058,7 +5212,7 @@ function Progress(_a) {
|
|
|
5058
5212
|
"className",
|
|
5059
5213
|
"value"
|
|
5060
5214
|
]);
|
|
5061
|
-
return /* @__PURE__ */ (0,
|
|
5215
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5062
5216
|
import_radix_ui24.Progress.Root,
|
|
5063
5217
|
__spreadProps(__spreadValues({
|
|
5064
5218
|
"data-slot": "progress",
|
|
@@ -5067,7 +5221,7 @@ function Progress(_a) {
|
|
|
5067
5221
|
className
|
|
5068
5222
|
)
|
|
5069
5223
|
}, props), {
|
|
5070
|
-
children: /* @__PURE__ */ (0,
|
|
5224
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5071
5225
|
import_radix_ui24.Progress.Indicator,
|
|
5072
5226
|
{
|
|
5073
5227
|
"data-slot": "progress-indicator",
|
|
@@ -5080,16 +5234,16 @@ function Progress(_a) {
|
|
|
5080
5234
|
}
|
|
5081
5235
|
|
|
5082
5236
|
// components/ui/radio-group.tsx
|
|
5083
|
-
var
|
|
5237
|
+
var import_lucide_react18 = require("lucide-react");
|
|
5084
5238
|
var import_radix_ui25 = require("radix-ui");
|
|
5085
|
-
var
|
|
5239
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
5086
5240
|
function RadioGroup(_a) {
|
|
5087
5241
|
var _b = _a, {
|
|
5088
5242
|
className
|
|
5089
5243
|
} = _b, props = __objRest(_b, [
|
|
5090
5244
|
"className"
|
|
5091
5245
|
]);
|
|
5092
|
-
return /* @__PURE__ */ (0,
|
|
5246
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
5093
5247
|
import_radix_ui25.RadioGroup.Root,
|
|
5094
5248
|
__spreadValues({
|
|
5095
5249
|
"data-slot": "radio-group",
|
|
@@ -5103,7 +5257,7 @@ function RadioGroupItem(_a) {
|
|
|
5103
5257
|
} = _b, props = __objRest(_b, [
|
|
5104
5258
|
"className"
|
|
5105
5259
|
]);
|
|
5106
|
-
return /* @__PURE__ */ (0,
|
|
5260
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
5107
5261
|
import_radix_ui25.RadioGroup.Item,
|
|
5108
5262
|
__spreadProps(__spreadValues({
|
|
5109
5263
|
"data-slot": "radio-group-item",
|
|
@@ -5112,12 +5266,12 @@ function RadioGroupItem(_a) {
|
|
|
5112
5266
|
className
|
|
5113
5267
|
)
|
|
5114
5268
|
}, props), {
|
|
5115
|
-
children: /* @__PURE__ */ (0,
|
|
5269
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
5116
5270
|
import_radix_ui25.RadioGroup.Indicator,
|
|
5117
5271
|
{
|
|
5118
5272
|
"data-slot": "radio-group-indicator",
|
|
5119
5273
|
className: "relative flex items-center justify-center",
|
|
5120
|
-
children: /* @__PURE__ */ (0,
|
|
5274
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react18.CircleIcon, { className: "absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-primary" })
|
|
5121
5275
|
}
|
|
5122
5276
|
)
|
|
5123
5277
|
})
|
|
@@ -5125,16 +5279,16 @@ function RadioGroupItem(_a) {
|
|
|
5125
5279
|
}
|
|
5126
5280
|
|
|
5127
5281
|
// components/ui/resizable.tsx
|
|
5128
|
-
var
|
|
5282
|
+
var import_lucide_react19 = require("lucide-react");
|
|
5129
5283
|
var ResizablePrimitive = __toESM(require("react-resizable-panels"), 1);
|
|
5130
|
-
var
|
|
5284
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
5131
5285
|
function ResizablePanelGroup(_a) {
|
|
5132
5286
|
var _b = _a, {
|
|
5133
5287
|
className
|
|
5134
5288
|
} = _b, props = __objRest(_b, [
|
|
5135
5289
|
"className"
|
|
5136
5290
|
]);
|
|
5137
|
-
return /* @__PURE__ */ (0,
|
|
5291
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
5138
5292
|
ResizablePrimitive.Group,
|
|
5139
5293
|
__spreadValues({
|
|
5140
5294
|
"data-slot": "resizable-panel-group",
|
|
@@ -5147,7 +5301,7 @@ function ResizablePanelGroup(_a) {
|
|
|
5147
5301
|
}
|
|
5148
5302
|
function ResizablePanel(_a) {
|
|
5149
5303
|
var props = __objRest(_a, []);
|
|
5150
|
-
return /* @__PURE__ */ (0,
|
|
5304
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(ResizablePrimitive.Panel, __spreadValues({ "data-slot": "resizable-panel" }, props));
|
|
5151
5305
|
}
|
|
5152
5306
|
function ResizableHandle(_a) {
|
|
5153
5307
|
var _b = _a, {
|
|
@@ -5157,7 +5311,7 @@ function ResizableHandle(_a) {
|
|
|
5157
5311
|
"withHandle",
|
|
5158
5312
|
"className"
|
|
5159
5313
|
]);
|
|
5160
|
-
return /* @__PURE__ */ (0,
|
|
5314
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
5161
5315
|
ResizablePrimitive.Separator,
|
|
5162
5316
|
__spreadProps(__spreadValues({
|
|
5163
5317
|
"data-slot": "resizable-handle",
|
|
@@ -5166,14 +5320,14 @@ function ResizableHandle(_a) {
|
|
|
5166
5320
|
className
|
|
5167
5321
|
)
|
|
5168
5322
|
}, props), {
|
|
5169
|
-
children: withHandle && /* @__PURE__ */ (0,
|
|
5323
|
+
children: withHandle && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-xs border bg-border", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react19.GripVerticalIcon, { className: "size-2.5" }) })
|
|
5170
5324
|
})
|
|
5171
5325
|
);
|
|
5172
5326
|
}
|
|
5173
5327
|
|
|
5174
5328
|
// components/ui/scroll-area.tsx
|
|
5175
5329
|
var import_radix_ui26 = require("radix-ui");
|
|
5176
|
-
var
|
|
5330
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
5177
5331
|
function ScrollArea(_a) {
|
|
5178
5332
|
var _b = _a, {
|
|
5179
5333
|
className,
|
|
@@ -5182,14 +5336,14 @@ function ScrollArea(_a) {
|
|
|
5182
5336
|
"className",
|
|
5183
5337
|
"children"
|
|
5184
5338
|
]);
|
|
5185
|
-
return /* @__PURE__ */ (0,
|
|
5339
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
5186
5340
|
import_radix_ui26.ScrollArea.Root,
|
|
5187
5341
|
__spreadProps(__spreadValues({
|
|
5188
5342
|
"data-slot": "scroll-area",
|
|
5189
5343
|
className: cn("relative", className)
|
|
5190
5344
|
}, props), {
|
|
5191
5345
|
children: [
|
|
5192
|
-
/* @__PURE__ */ (0,
|
|
5346
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
5193
5347
|
import_radix_ui26.ScrollArea.Viewport,
|
|
5194
5348
|
{
|
|
5195
5349
|
"data-slot": "scroll-area-viewport",
|
|
@@ -5197,8 +5351,8 @@ function ScrollArea(_a) {
|
|
|
5197
5351
|
children
|
|
5198
5352
|
}
|
|
5199
5353
|
),
|
|
5200
|
-
/* @__PURE__ */ (0,
|
|
5201
|
-
/* @__PURE__ */ (0,
|
|
5354
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ScrollBar, {}),
|
|
5355
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_radix_ui26.ScrollArea.Corner, {})
|
|
5202
5356
|
]
|
|
5203
5357
|
})
|
|
5204
5358
|
);
|
|
@@ -5211,7 +5365,7 @@ function ScrollBar(_a) {
|
|
|
5211
5365
|
"className",
|
|
5212
5366
|
"orientation"
|
|
5213
5367
|
]);
|
|
5214
|
-
return /* @__PURE__ */ (0,
|
|
5368
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
5215
5369
|
import_radix_ui26.ScrollArea.ScrollAreaScrollbar,
|
|
5216
5370
|
__spreadProps(__spreadValues({
|
|
5217
5371
|
"data-slot": "scroll-area-scrollbar",
|
|
@@ -5223,7 +5377,7 @@ function ScrollBar(_a) {
|
|
|
5223
5377
|
className
|
|
5224
5378
|
)
|
|
5225
5379
|
}, props), {
|
|
5226
|
-
children: /* @__PURE__ */ (0,
|
|
5380
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
5227
5381
|
import_radix_ui26.ScrollArea.ScrollAreaThumb,
|
|
5228
5382
|
{
|
|
5229
5383
|
"data-slot": "scroll-area-thumb",
|
|
@@ -5235,20 +5389,20 @@ function ScrollBar(_a) {
|
|
|
5235
5389
|
}
|
|
5236
5390
|
|
|
5237
5391
|
// components/ui/select.tsx
|
|
5238
|
-
var
|
|
5392
|
+
var import_lucide_react20 = require("lucide-react");
|
|
5239
5393
|
var import_radix_ui27 = require("radix-ui");
|
|
5240
|
-
var
|
|
5394
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
5241
5395
|
function Select(_a) {
|
|
5242
5396
|
var props = __objRest(_a, []);
|
|
5243
|
-
return /* @__PURE__ */ (0,
|
|
5397
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_radix_ui27.Select.Root, __spreadValues({ "data-slot": "select" }, props));
|
|
5244
5398
|
}
|
|
5245
5399
|
function SelectGroup(_a) {
|
|
5246
5400
|
var props = __objRest(_a, []);
|
|
5247
|
-
return /* @__PURE__ */ (0,
|
|
5401
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_radix_ui27.Select.Group, __spreadValues({ "data-slot": "select-group" }, props));
|
|
5248
5402
|
}
|
|
5249
5403
|
function SelectValue(_a) {
|
|
5250
5404
|
var props = __objRest(_a, []);
|
|
5251
|
-
return /* @__PURE__ */ (0,
|
|
5405
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_radix_ui27.Select.Value, __spreadValues({ "data-slot": "select-value" }, props));
|
|
5252
5406
|
}
|
|
5253
5407
|
function SelectTrigger(_a) {
|
|
5254
5408
|
var _b = _a, {
|
|
@@ -5262,7 +5416,7 @@ function SelectTrigger(_a) {
|
|
|
5262
5416
|
"readOnly",
|
|
5263
5417
|
"children"
|
|
5264
5418
|
]);
|
|
5265
|
-
return /* @__PURE__ */ (0,
|
|
5419
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
5266
5420
|
import_radix_ui27.Select.Trigger,
|
|
5267
5421
|
__spreadProps(__spreadValues({
|
|
5268
5422
|
"data-slot": "select-trigger",
|
|
@@ -5276,7 +5430,7 @@ function SelectTrigger(_a) {
|
|
|
5276
5430
|
}, props), {
|
|
5277
5431
|
children: [
|
|
5278
5432
|
children,
|
|
5279
|
-
/* @__PURE__ */ (0,
|
|
5433
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_radix_ui27.Select.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react20.ChevronDownIcon, { className: cn("size-4", readOnly ? "opacity-30" : "opacity-50") }) })
|
|
5280
5434
|
]
|
|
5281
5435
|
})
|
|
5282
5436
|
);
|
|
@@ -5293,7 +5447,7 @@ function SelectContent(_a) {
|
|
|
5293
5447
|
"position",
|
|
5294
5448
|
"align"
|
|
5295
5449
|
]);
|
|
5296
|
-
return /* @__PURE__ */ (0,
|
|
5450
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_radix_ui27.Select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
5297
5451
|
import_radix_ui27.Select.Content,
|
|
5298
5452
|
__spreadProps(__spreadValues({
|
|
5299
5453
|
"data-slot": "select-content",
|
|
@@ -5306,8 +5460,8 @@ function SelectContent(_a) {
|
|
|
5306
5460
|
align
|
|
5307
5461
|
}, props), {
|
|
5308
5462
|
children: [
|
|
5309
|
-
/* @__PURE__ */ (0,
|
|
5310
|
-
/* @__PURE__ */ (0,
|
|
5463
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SelectScrollUpButton, {}),
|
|
5464
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5311
5465
|
import_radix_ui27.Select.Viewport,
|
|
5312
5466
|
{
|
|
5313
5467
|
className: cn(
|
|
@@ -5317,7 +5471,7 @@ function SelectContent(_a) {
|
|
|
5317
5471
|
children
|
|
5318
5472
|
}
|
|
5319
5473
|
),
|
|
5320
|
-
/* @__PURE__ */ (0,
|
|
5474
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SelectScrollDownButton, {})
|
|
5321
5475
|
]
|
|
5322
5476
|
})
|
|
5323
5477
|
) });
|
|
@@ -5328,7 +5482,7 @@ function SelectLabel(_a) {
|
|
|
5328
5482
|
} = _b, props = __objRest(_b, [
|
|
5329
5483
|
"className"
|
|
5330
5484
|
]);
|
|
5331
|
-
return /* @__PURE__ */ (0,
|
|
5485
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5332
5486
|
import_radix_ui27.Select.Label,
|
|
5333
5487
|
__spreadValues({
|
|
5334
5488
|
"data-slot": "select-label",
|
|
@@ -5344,7 +5498,7 @@ function SelectItem(_a) {
|
|
|
5344
5498
|
"className",
|
|
5345
5499
|
"children"
|
|
5346
5500
|
]);
|
|
5347
|
-
return /* @__PURE__ */ (0,
|
|
5501
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
5348
5502
|
import_radix_ui27.Select.Item,
|
|
5349
5503
|
__spreadProps(__spreadValues({
|
|
5350
5504
|
"data-slot": "select-item",
|
|
@@ -5354,15 +5508,15 @@ function SelectItem(_a) {
|
|
|
5354
5508
|
)
|
|
5355
5509
|
}, props), {
|
|
5356
5510
|
children: [
|
|
5357
|
-
/* @__PURE__ */ (0,
|
|
5511
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5358
5512
|
"span",
|
|
5359
5513
|
{
|
|
5360
5514
|
"data-slot": "select-item-indicator",
|
|
5361
5515
|
className: "absolute right-2 flex size-3.5 items-center justify-center",
|
|
5362
|
-
children: /* @__PURE__ */ (0,
|
|
5516
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_radix_ui27.Select.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react20.CheckIcon, { className: "size-4 text-primary" }) })
|
|
5363
5517
|
}
|
|
5364
5518
|
),
|
|
5365
|
-
/* @__PURE__ */ (0,
|
|
5519
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_radix_ui27.Select.ItemText, { children })
|
|
5366
5520
|
]
|
|
5367
5521
|
})
|
|
5368
5522
|
);
|
|
@@ -5373,7 +5527,7 @@ function SelectSeparator(_a) {
|
|
|
5373
5527
|
} = _b, props = __objRest(_b, [
|
|
5374
5528
|
"className"
|
|
5375
5529
|
]);
|
|
5376
|
-
return /* @__PURE__ */ (0,
|
|
5530
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5377
5531
|
import_radix_ui27.Select.Separator,
|
|
5378
5532
|
__spreadValues({
|
|
5379
5533
|
"data-slot": "select-separator",
|
|
@@ -5387,7 +5541,7 @@ function SelectScrollUpButton(_a) {
|
|
|
5387
5541
|
} = _b, props = __objRest(_b, [
|
|
5388
5542
|
"className"
|
|
5389
5543
|
]);
|
|
5390
|
-
return /* @__PURE__ */ (0,
|
|
5544
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5391
5545
|
import_radix_ui27.Select.ScrollUpButton,
|
|
5392
5546
|
__spreadProps(__spreadValues({
|
|
5393
5547
|
"data-slot": "select-scroll-up-button",
|
|
@@ -5396,7 +5550,7 @@ function SelectScrollUpButton(_a) {
|
|
|
5396
5550
|
className
|
|
5397
5551
|
)
|
|
5398
5552
|
}, props), {
|
|
5399
|
-
children: /* @__PURE__ */ (0,
|
|
5553
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react20.ChevronUpIcon, { className: "size-4" })
|
|
5400
5554
|
})
|
|
5401
5555
|
);
|
|
5402
5556
|
}
|
|
@@ -5406,7 +5560,7 @@ function SelectScrollDownButton(_a) {
|
|
|
5406
5560
|
} = _b, props = __objRest(_b, [
|
|
5407
5561
|
"className"
|
|
5408
5562
|
]);
|
|
5409
|
-
return /* @__PURE__ */ (0,
|
|
5563
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5410
5564
|
import_radix_ui27.Select.ScrollDownButton,
|
|
5411
5565
|
__spreadProps(__spreadValues({
|
|
5412
5566
|
"data-slot": "select-scroll-down-button",
|
|
@@ -5415,30 +5569,30 @@ function SelectScrollDownButton(_a) {
|
|
|
5415
5569
|
className
|
|
5416
5570
|
)
|
|
5417
5571
|
}, props), {
|
|
5418
|
-
children: /* @__PURE__ */ (0,
|
|
5572
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react20.ChevronDownIcon, { className: "size-4" })
|
|
5419
5573
|
})
|
|
5420
5574
|
);
|
|
5421
5575
|
}
|
|
5422
5576
|
|
|
5423
5577
|
// components/ui/sheet.tsx
|
|
5424
|
-
var
|
|
5578
|
+
var import_lucide_react21 = require("lucide-react");
|
|
5425
5579
|
var import_radix_ui28 = require("radix-ui");
|
|
5426
|
-
var
|
|
5580
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
5427
5581
|
function Sheet(_a) {
|
|
5428
5582
|
var props = __objRest(_a, []);
|
|
5429
|
-
return /* @__PURE__ */ (0,
|
|
5583
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_radix_ui28.Dialog.Root, __spreadValues({ "data-slot": "sheet" }, props));
|
|
5430
5584
|
}
|
|
5431
5585
|
function SheetTrigger(_a) {
|
|
5432
5586
|
var props = __objRest(_a, []);
|
|
5433
|
-
return /* @__PURE__ */ (0,
|
|
5587
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_radix_ui28.Dialog.Trigger, __spreadValues({ "data-slot": "sheet-trigger" }, props));
|
|
5434
5588
|
}
|
|
5435
5589
|
function SheetClose(_a) {
|
|
5436
5590
|
var props = __objRest(_a, []);
|
|
5437
|
-
return /* @__PURE__ */ (0,
|
|
5591
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_radix_ui28.Dialog.Close, __spreadValues({ "data-slot": "sheet-close" }, props));
|
|
5438
5592
|
}
|
|
5439
5593
|
function SheetPortal(_a) {
|
|
5440
5594
|
var props = __objRest(_a, []);
|
|
5441
|
-
return /* @__PURE__ */ (0,
|
|
5595
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_radix_ui28.Dialog.Portal, __spreadValues({ "data-slot": "sheet-portal" }, props));
|
|
5442
5596
|
}
|
|
5443
5597
|
function SheetOverlay(_a) {
|
|
5444
5598
|
var _b = _a, {
|
|
@@ -5446,7 +5600,7 @@ function SheetOverlay(_a) {
|
|
|
5446
5600
|
} = _b, props = __objRest(_b, [
|
|
5447
5601
|
"className"
|
|
5448
5602
|
]);
|
|
5449
|
-
return /* @__PURE__ */ (0,
|
|
5603
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5450
5604
|
import_radix_ui28.Dialog.Overlay,
|
|
5451
5605
|
__spreadValues({
|
|
5452
5606
|
"data-slot": "sheet-overlay",
|
|
@@ -5469,9 +5623,9 @@ function SheetContent(_a) {
|
|
|
5469
5623
|
"side",
|
|
5470
5624
|
"showCloseButton"
|
|
5471
5625
|
]);
|
|
5472
|
-
return /* @__PURE__ */ (0,
|
|
5473
|
-
/* @__PURE__ */ (0,
|
|
5474
|
-
/* @__PURE__ */ (0,
|
|
5626
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(SheetPortal, { children: [
|
|
5627
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SheetOverlay, {}),
|
|
5628
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
5475
5629
|
import_radix_ui28.Dialog.Content,
|
|
5476
5630
|
__spreadProps(__spreadValues({
|
|
5477
5631
|
"data-slot": "sheet-content",
|
|
@@ -5486,9 +5640,9 @@ function SheetContent(_a) {
|
|
|
5486
5640
|
}, props), {
|
|
5487
5641
|
children: [
|
|
5488
5642
|
children,
|
|
5489
|
-
showCloseButton && /* @__PURE__ */ (0,
|
|
5490
|
-
/* @__PURE__ */ (0,
|
|
5491
|
-
/* @__PURE__ */ (0,
|
|
5643
|
+
showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_radix_ui28.Dialog.Close, { className: "absolute top-4 right-4 rounded-xs opacity-70 ring-offset-prominent transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
5644
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react21.XIcon, { className: "size-4" }),
|
|
5645
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "sr-only", children: "Close" })
|
|
5492
5646
|
] })
|
|
5493
5647
|
]
|
|
5494
5648
|
})
|
|
@@ -5497,7 +5651,7 @@ function SheetContent(_a) {
|
|
|
5497
5651
|
}
|
|
5498
5652
|
function SheetHeader(_a) {
|
|
5499
5653
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5500
|
-
return /* @__PURE__ */ (0,
|
|
5654
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5501
5655
|
"div",
|
|
5502
5656
|
__spreadValues({
|
|
5503
5657
|
"data-slot": "sheet-header",
|
|
@@ -5507,7 +5661,7 @@ function SheetHeader(_a) {
|
|
|
5507
5661
|
}
|
|
5508
5662
|
function SheetFooter(_a) {
|
|
5509
5663
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5510
|
-
return /* @__PURE__ */ (0,
|
|
5664
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5511
5665
|
"div",
|
|
5512
5666
|
__spreadValues({
|
|
5513
5667
|
"data-slot": "sheet-footer",
|
|
@@ -5521,7 +5675,7 @@ function SheetTitle(_a) {
|
|
|
5521
5675
|
} = _b, props = __objRest(_b, [
|
|
5522
5676
|
"className"
|
|
5523
5677
|
]);
|
|
5524
|
-
return /* @__PURE__ */ (0,
|
|
5678
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5525
5679
|
import_radix_ui28.Dialog.Title,
|
|
5526
5680
|
__spreadValues({
|
|
5527
5681
|
"data-slot": "sheet-title",
|
|
@@ -5535,7 +5689,7 @@ function SheetDescription(_a) {
|
|
|
5535
5689
|
} = _b, props = __objRest(_b, [
|
|
5536
5690
|
"className"
|
|
5537
5691
|
]);
|
|
5538
|
-
return /* @__PURE__ */ (0,
|
|
5692
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5539
5693
|
import_radix_ui28.Dialog.Description,
|
|
5540
5694
|
__spreadValues({
|
|
5541
5695
|
"data-slot": "sheet-description",
|
|
@@ -5545,17 +5699,17 @@ function SheetDescription(_a) {
|
|
|
5545
5699
|
}
|
|
5546
5700
|
|
|
5547
5701
|
// components/ui/sidebar.tsx
|
|
5548
|
-
var
|
|
5702
|
+
var React12 = __toESM(require("react"), 1);
|
|
5549
5703
|
var import_class_variance_authority12 = require("class-variance-authority");
|
|
5550
|
-
var
|
|
5704
|
+
var import_lucide_react22 = require("lucide-react");
|
|
5551
5705
|
var import_radix_ui30 = require("radix-ui");
|
|
5552
5706
|
|
|
5553
5707
|
// hooks/use-mobile.ts
|
|
5554
|
-
var
|
|
5708
|
+
var React10 = __toESM(require("react"), 1);
|
|
5555
5709
|
var MOBILE_BREAKPOINT = 768;
|
|
5556
5710
|
function useIsMobile() {
|
|
5557
|
-
const [isMobile, setIsMobile] =
|
|
5558
|
-
|
|
5711
|
+
const [isMobile, setIsMobile] = React10.useState(void 0);
|
|
5712
|
+
React10.useEffect(() => {
|
|
5559
5713
|
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
5560
5714
|
const onChange = () => {
|
|
5561
5715
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
@@ -5568,10 +5722,10 @@ function useIsMobile() {
|
|
|
5568
5722
|
}
|
|
5569
5723
|
|
|
5570
5724
|
// components/ui/skeleton.tsx
|
|
5571
|
-
var
|
|
5725
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
5572
5726
|
function Skeleton(_a) {
|
|
5573
5727
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5574
|
-
return /* @__PURE__ */ (0,
|
|
5728
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5575
5729
|
"div",
|
|
5576
5730
|
__spreadValues({
|
|
5577
5731
|
"data-slot": "skeleton",
|
|
@@ -5581,17 +5735,17 @@ function Skeleton(_a) {
|
|
|
5581
5735
|
}
|
|
5582
5736
|
|
|
5583
5737
|
// components/ui/tooltip.tsx
|
|
5584
|
-
var
|
|
5738
|
+
var React11 = __toESM(require("react"), 1);
|
|
5585
5739
|
var import_radix_ui29 = require("radix-ui");
|
|
5586
|
-
var
|
|
5587
|
-
var TooltipModeContext =
|
|
5740
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
5741
|
+
var TooltipModeContext = React11.createContext("tooltip");
|
|
5588
5742
|
function TooltipProvider(_a) {
|
|
5589
5743
|
var _b = _a, {
|
|
5590
5744
|
delayDuration = 0
|
|
5591
5745
|
} = _b, props = __objRest(_b, [
|
|
5592
5746
|
"delayDuration"
|
|
5593
5747
|
]);
|
|
5594
|
-
return /* @__PURE__ */ (0,
|
|
5748
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5595
5749
|
import_radix_ui29.Tooltip.Provider,
|
|
5596
5750
|
__spreadValues({
|
|
5597
5751
|
"data-slot": "tooltip-provider",
|
|
@@ -5608,9 +5762,9 @@ function Tooltip2(_a) {
|
|
|
5608
5762
|
const isMobile = useIsMobile();
|
|
5609
5763
|
const mode = isMobile ? "drawer" : "tooltip";
|
|
5610
5764
|
if (mode === "drawer") {
|
|
5611
|
-
return /* @__PURE__ */ (0,
|
|
5765
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(TooltipModeContext.Provider, { value: "drawer", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Drawer, { children }) });
|
|
5612
5766
|
}
|
|
5613
|
-
return /* @__PURE__ */ (0,
|
|
5767
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(TooltipModeContext.Provider, { value: "tooltip", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_radix_ui29.Tooltip.Root, __spreadProps(__spreadValues({ "data-slot": "tooltip" }, props), { children })) });
|
|
5614
5768
|
}
|
|
5615
5769
|
function TooltipTrigger(_a) {
|
|
5616
5770
|
var _b = _a, {
|
|
@@ -5618,11 +5772,11 @@ function TooltipTrigger(_a) {
|
|
|
5618
5772
|
} = _b, props = __objRest(_b, [
|
|
5619
5773
|
"children"
|
|
5620
5774
|
]);
|
|
5621
|
-
const mode =
|
|
5775
|
+
const mode = React11.useContext(TooltipModeContext);
|
|
5622
5776
|
if (mode === "drawer") {
|
|
5623
|
-
return /* @__PURE__ */ (0,
|
|
5777
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DrawerTrigger, __spreadProps(__spreadValues({ "data-slot": "tooltip-trigger" }, props), { children }));
|
|
5624
5778
|
}
|
|
5625
|
-
return /* @__PURE__ */ (0,
|
|
5779
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_radix_ui29.Tooltip.Trigger, __spreadProps(__spreadValues({ "data-slot": "tooltip-trigger" }, props), { children }));
|
|
5626
5780
|
}
|
|
5627
5781
|
function TooltipContent(_a) {
|
|
5628
5782
|
var _b = _a, {
|
|
@@ -5640,17 +5794,17 @@ function TooltipContent(_a) {
|
|
|
5640
5794
|
"closeLabel",
|
|
5641
5795
|
"children"
|
|
5642
5796
|
]);
|
|
5643
|
-
const mode =
|
|
5797
|
+
const mode = React11.useContext(TooltipModeContext);
|
|
5644
5798
|
if (mode === "drawer") {
|
|
5645
|
-
return /* @__PURE__ */ (0,
|
|
5646
|
-
/* @__PURE__ */ (0,
|
|
5647
|
-
/* @__PURE__ */ (0,
|
|
5648
|
-
/* @__PURE__ */ (0,
|
|
5799
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(DrawerContent, { "data-slot": "tooltip-content", "data-variant": variant, children: [
|
|
5800
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DrawerHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DrawerTitle, { children: title }) }),
|
|
5801
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: cn("p-4 text-sm text-on-subtle", className), children }),
|
|
5802
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DrawerFooter, { children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DrawerClose, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Button, { variant: "primary", size: "md", children: closeLabel }) }) })
|
|
5649
5803
|
] });
|
|
5650
5804
|
}
|
|
5651
5805
|
const surfaceClasses = variant === "inverse" ? "bg-prominent text-on-prominent shadow-sm" : "bg-primary text-on-primary";
|
|
5652
5806
|
const arrowClasses = variant === "inverse" ? "fill-prominent" : "fill-primary";
|
|
5653
|
-
return /* @__PURE__ */ (0,
|
|
5807
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_radix_ui29.Tooltip.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
5654
5808
|
import_radix_ui29.Tooltip.Content,
|
|
5655
5809
|
__spreadProps(__spreadValues({
|
|
5656
5810
|
"data-slot": "tooltip-content",
|
|
@@ -5664,23 +5818,23 @@ function TooltipContent(_a) {
|
|
|
5664
5818
|
}, props), {
|
|
5665
5819
|
children: [
|
|
5666
5820
|
children,
|
|
5667
|
-
/* @__PURE__ */ (0,
|
|
5821
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_radix_ui29.Tooltip.Arrow, { className: arrowClasses })
|
|
5668
5822
|
]
|
|
5669
5823
|
})
|
|
5670
5824
|
) });
|
|
5671
5825
|
}
|
|
5672
5826
|
|
|
5673
5827
|
// components/ui/sidebar.tsx
|
|
5674
|
-
var
|
|
5828
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
5675
5829
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
5676
5830
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
5677
5831
|
var SIDEBAR_WIDTH = "16rem";
|
|
5678
5832
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
5679
5833
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
5680
5834
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
5681
|
-
var SidebarContext =
|
|
5835
|
+
var SidebarContext = React12.createContext(null);
|
|
5682
5836
|
function useSidebar() {
|
|
5683
|
-
const context =
|
|
5837
|
+
const context = React12.useContext(SidebarContext);
|
|
5684
5838
|
if (!context) {
|
|
5685
5839
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
5686
5840
|
}
|
|
@@ -5703,10 +5857,10 @@ function SidebarProvider(_a) {
|
|
|
5703
5857
|
"children"
|
|
5704
5858
|
]);
|
|
5705
5859
|
const isMobile = useIsMobile();
|
|
5706
|
-
const [openMobile, setOpenMobile] =
|
|
5707
|
-
const [_open, _setOpen] =
|
|
5860
|
+
const [openMobile, setOpenMobile] = React12.useState(false);
|
|
5861
|
+
const [_open, _setOpen] = React12.useState(defaultOpen);
|
|
5708
5862
|
const open = openProp != null ? openProp : _open;
|
|
5709
|
-
const setOpen =
|
|
5863
|
+
const setOpen = React12.useCallback(
|
|
5710
5864
|
(value) => {
|
|
5711
5865
|
const openState = typeof value === "function" ? value(open) : value;
|
|
5712
5866
|
if (setOpenProp) {
|
|
@@ -5718,10 +5872,10 @@ function SidebarProvider(_a) {
|
|
|
5718
5872
|
},
|
|
5719
5873
|
[setOpenProp, open]
|
|
5720
5874
|
);
|
|
5721
|
-
const toggleSidebar =
|
|
5875
|
+
const toggleSidebar = React12.useCallback(() => {
|
|
5722
5876
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
5723
5877
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
5724
|
-
|
|
5878
|
+
React12.useEffect(() => {
|
|
5725
5879
|
const handleKeyDown = (event) => {
|
|
5726
5880
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
5727
5881
|
event.preventDefault();
|
|
@@ -5732,7 +5886,7 @@ function SidebarProvider(_a) {
|
|
|
5732
5886
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
5733
5887
|
}, [toggleSidebar]);
|
|
5734
5888
|
const state = open ? "expanded" : "collapsed";
|
|
5735
|
-
const contextValue =
|
|
5889
|
+
const contextValue = React12.useMemo(
|
|
5736
5890
|
() => ({
|
|
5737
5891
|
state,
|
|
5738
5892
|
open,
|
|
@@ -5744,7 +5898,7 @@ function SidebarProvider(_a) {
|
|
|
5744
5898
|
}),
|
|
5745
5899
|
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
5746
5900
|
);
|
|
5747
|
-
return /* @__PURE__ */ (0,
|
|
5901
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5748
5902
|
"div",
|
|
5749
5903
|
__spreadProps(__spreadValues({
|
|
5750
5904
|
"data-slot": "sidebar-wrapper",
|
|
@@ -5777,7 +5931,7 @@ function Sidebar(_a) {
|
|
|
5777
5931
|
]);
|
|
5778
5932
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
5779
5933
|
if (collapsible === "none") {
|
|
5780
|
-
return /* @__PURE__ */ (0,
|
|
5934
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5781
5935
|
"div",
|
|
5782
5936
|
__spreadProps(__spreadValues({
|
|
5783
5937
|
"data-slot": "sidebar",
|
|
@@ -5791,7 +5945,7 @@ function Sidebar(_a) {
|
|
|
5791
5945
|
);
|
|
5792
5946
|
}
|
|
5793
5947
|
if (isMobile) {
|
|
5794
|
-
return /* @__PURE__ */ (0,
|
|
5948
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Sheet, __spreadProps(__spreadValues({ open: openMobile, onOpenChange: setOpenMobile }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
5795
5949
|
SheetContent,
|
|
5796
5950
|
{
|
|
5797
5951
|
"data-sidebar": "sidebar",
|
|
@@ -5803,16 +5957,16 @@ function Sidebar(_a) {
|
|
|
5803
5957
|
},
|
|
5804
5958
|
side,
|
|
5805
5959
|
children: [
|
|
5806
|
-
/* @__PURE__ */ (0,
|
|
5807
|
-
/* @__PURE__ */ (0,
|
|
5808
|
-
/* @__PURE__ */ (0,
|
|
5960
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(SheetHeader, { className: "sr-only", children: [
|
|
5961
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SheetTitle, { children: "Sidebar" }),
|
|
5962
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SheetDescription, { children: "Displays the mobile sidebar." })
|
|
5809
5963
|
] }),
|
|
5810
|
-
/* @__PURE__ */ (0,
|
|
5964
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "flex h-full w-full flex-col", children })
|
|
5811
5965
|
]
|
|
5812
5966
|
}
|
|
5813
5967
|
) }));
|
|
5814
5968
|
}
|
|
5815
|
-
return /* @__PURE__ */ (0,
|
|
5969
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
5816
5970
|
"div",
|
|
5817
5971
|
{
|
|
5818
5972
|
className: "group peer hidden text-sidebar-foreground md:block",
|
|
@@ -5822,7 +5976,7 @@ function Sidebar(_a) {
|
|
|
5822
5976
|
"data-side": side,
|
|
5823
5977
|
"data-slot": "sidebar",
|
|
5824
5978
|
children: [
|
|
5825
|
-
/* @__PURE__ */ (0,
|
|
5979
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5826
5980
|
"div",
|
|
5827
5981
|
{
|
|
5828
5982
|
"data-slot": "sidebar-gap",
|
|
@@ -5834,7 +5988,7 @@ function Sidebar(_a) {
|
|
|
5834
5988
|
)
|
|
5835
5989
|
}
|
|
5836
5990
|
),
|
|
5837
|
-
/* @__PURE__ */ (0,
|
|
5991
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5838
5992
|
"div",
|
|
5839
5993
|
__spreadProps(__spreadValues({
|
|
5840
5994
|
"data-slot": "sidebar-container",
|
|
@@ -5846,7 +6000,7 @@ function Sidebar(_a) {
|
|
|
5846
6000
|
className
|
|
5847
6001
|
)
|
|
5848
6002
|
}, props), {
|
|
5849
|
-
children: /* @__PURE__ */ (0,
|
|
6003
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5850
6004
|
"div",
|
|
5851
6005
|
{
|
|
5852
6006
|
"data-sidebar": "sidebar",
|
|
@@ -5870,7 +6024,7 @@ function SidebarTrigger(_a) {
|
|
|
5870
6024
|
"onClick"
|
|
5871
6025
|
]);
|
|
5872
6026
|
const { toggleSidebar } = useSidebar();
|
|
5873
|
-
return /* @__PURE__ */ (0,
|
|
6027
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
5874
6028
|
Button,
|
|
5875
6029
|
__spreadProps(__spreadValues({
|
|
5876
6030
|
"data-sidebar": "trigger",
|
|
@@ -5884,8 +6038,8 @@ function SidebarTrigger(_a) {
|
|
|
5884
6038
|
}
|
|
5885
6039
|
}, props), {
|
|
5886
6040
|
children: [
|
|
5887
|
-
/* @__PURE__ */ (0,
|
|
5888
|
-
/* @__PURE__ */ (0,
|
|
6041
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react22.PanelLeftIcon, {}),
|
|
6042
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
5889
6043
|
]
|
|
5890
6044
|
})
|
|
5891
6045
|
);
|
|
@@ -5893,7 +6047,7 @@ function SidebarTrigger(_a) {
|
|
|
5893
6047
|
function SidebarRail(_a) {
|
|
5894
6048
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5895
6049
|
const { toggleSidebar } = useSidebar();
|
|
5896
|
-
return /* @__PURE__ */ (0,
|
|
6050
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5897
6051
|
"button",
|
|
5898
6052
|
__spreadValues({
|
|
5899
6053
|
"data-sidebar": "rail",
|
|
@@ -5916,7 +6070,7 @@ function SidebarRail(_a) {
|
|
|
5916
6070
|
}
|
|
5917
6071
|
function SidebarInset(_a) {
|
|
5918
6072
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5919
|
-
return /* @__PURE__ */ (0,
|
|
6073
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5920
6074
|
"main",
|
|
5921
6075
|
__spreadValues({
|
|
5922
6076
|
"data-slot": "sidebar-inset",
|
|
@@ -5934,7 +6088,7 @@ function SidebarInput(_a) {
|
|
|
5934
6088
|
} = _b, props = __objRest(_b, [
|
|
5935
6089
|
"className"
|
|
5936
6090
|
]);
|
|
5937
|
-
return /* @__PURE__ */ (0,
|
|
6091
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5938
6092
|
Input,
|
|
5939
6093
|
__spreadValues({
|
|
5940
6094
|
"data-slot": "sidebar-input",
|
|
@@ -5945,7 +6099,7 @@ function SidebarInput(_a) {
|
|
|
5945
6099
|
}
|
|
5946
6100
|
function SidebarHeader(_a) {
|
|
5947
6101
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5948
|
-
return /* @__PURE__ */ (0,
|
|
6102
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5949
6103
|
"div",
|
|
5950
6104
|
__spreadValues({
|
|
5951
6105
|
"data-slot": "sidebar-header",
|
|
@@ -5956,7 +6110,7 @@ function SidebarHeader(_a) {
|
|
|
5956
6110
|
}
|
|
5957
6111
|
function SidebarFooter(_a) {
|
|
5958
6112
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5959
|
-
return /* @__PURE__ */ (0,
|
|
6113
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5960
6114
|
"div",
|
|
5961
6115
|
__spreadValues({
|
|
5962
6116
|
"data-slot": "sidebar-footer",
|
|
@@ -5971,7 +6125,7 @@ function SidebarSeparator(_a) {
|
|
|
5971
6125
|
} = _b, props = __objRest(_b, [
|
|
5972
6126
|
"className"
|
|
5973
6127
|
]);
|
|
5974
|
-
return /* @__PURE__ */ (0,
|
|
6128
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5975
6129
|
Separator,
|
|
5976
6130
|
__spreadValues({
|
|
5977
6131
|
"data-slot": "sidebar-separator",
|
|
@@ -5982,7 +6136,7 @@ function SidebarSeparator(_a) {
|
|
|
5982
6136
|
}
|
|
5983
6137
|
function SidebarContent(_a) {
|
|
5984
6138
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5985
|
-
return /* @__PURE__ */ (0,
|
|
6139
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5986
6140
|
"div",
|
|
5987
6141
|
__spreadValues({
|
|
5988
6142
|
"data-slot": "sidebar-content",
|
|
@@ -5996,7 +6150,7 @@ function SidebarContent(_a) {
|
|
|
5996
6150
|
}
|
|
5997
6151
|
function SidebarGroup(_a) {
|
|
5998
6152
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5999
|
-
return /* @__PURE__ */ (0,
|
|
6153
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6000
6154
|
"div",
|
|
6001
6155
|
__spreadValues({
|
|
6002
6156
|
"data-slot": "sidebar-group",
|
|
@@ -6014,7 +6168,7 @@ function SidebarGroupLabel(_a) {
|
|
|
6014
6168
|
"asChild"
|
|
6015
6169
|
]);
|
|
6016
6170
|
const Comp = asChild ? import_radix_ui30.Slot.Root : "div";
|
|
6017
|
-
return /* @__PURE__ */ (0,
|
|
6171
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6018
6172
|
Comp,
|
|
6019
6173
|
__spreadValues({
|
|
6020
6174
|
"data-slot": "sidebar-group-label",
|
|
@@ -6036,7 +6190,7 @@ function SidebarGroupAction(_a) {
|
|
|
6036
6190
|
"asChild"
|
|
6037
6191
|
]);
|
|
6038
6192
|
const Comp = asChild ? import_radix_ui30.Slot.Root : "button";
|
|
6039
|
-
return /* @__PURE__ */ (0,
|
|
6193
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6040
6194
|
Comp,
|
|
6041
6195
|
__spreadValues({
|
|
6042
6196
|
"data-slot": "sidebar-group-action",
|
|
@@ -6057,7 +6211,7 @@ function SidebarGroupContent(_a) {
|
|
|
6057
6211
|
} = _b, props = __objRest(_b, [
|
|
6058
6212
|
"className"
|
|
6059
6213
|
]);
|
|
6060
|
-
return /* @__PURE__ */ (0,
|
|
6214
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6061
6215
|
"div",
|
|
6062
6216
|
__spreadValues({
|
|
6063
6217
|
"data-slot": "sidebar-group-content",
|
|
@@ -6068,7 +6222,7 @@ function SidebarGroupContent(_a) {
|
|
|
6068
6222
|
}
|
|
6069
6223
|
function SidebarMenu(_a) {
|
|
6070
6224
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6071
|
-
return /* @__PURE__ */ (0,
|
|
6225
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6072
6226
|
"ul",
|
|
6073
6227
|
__spreadValues({
|
|
6074
6228
|
"data-slot": "sidebar-menu",
|
|
@@ -6079,7 +6233,7 @@ function SidebarMenu(_a) {
|
|
|
6079
6233
|
}
|
|
6080
6234
|
function SidebarMenuItem(_a) {
|
|
6081
6235
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6082
|
-
return /* @__PURE__ */ (0,
|
|
6236
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6083
6237
|
"li",
|
|
6084
6238
|
__spreadValues({
|
|
6085
6239
|
"data-slot": "sidebar-menu-item",
|
|
@@ -6126,7 +6280,7 @@ function SidebarMenuButton(_a) {
|
|
|
6126
6280
|
]);
|
|
6127
6281
|
const Comp = asChild ? import_radix_ui30.Slot.Root : "button";
|
|
6128
6282
|
const { isMobile, state } = useSidebar();
|
|
6129
|
-
const button = /* @__PURE__ */ (0,
|
|
6283
|
+
const button = /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6130
6284
|
Comp,
|
|
6131
6285
|
__spreadValues({
|
|
6132
6286
|
"data-slot": "sidebar-menu-button",
|
|
@@ -6144,9 +6298,9 @@ function SidebarMenuButton(_a) {
|
|
|
6144
6298
|
children: tooltip
|
|
6145
6299
|
};
|
|
6146
6300
|
}
|
|
6147
|
-
return /* @__PURE__ */ (0,
|
|
6148
|
-
/* @__PURE__ */ (0,
|
|
6149
|
-
/* @__PURE__ */ (0,
|
|
6301
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(Tooltip2, { children: [
|
|
6302
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TooltipTrigger, { asChild: true, children: button }),
|
|
6303
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6150
6304
|
TooltipContent,
|
|
6151
6305
|
__spreadValues({
|
|
6152
6306
|
side: "right",
|
|
@@ -6167,7 +6321,7 @@ function SidebarMenuAction(_a) {
|
|
|
6167
6321
|
"showOnHover"
|
|
6168
6322
|
]);
|
|
6169
6323
|
const Comp = asChild ? import_radix_ui30.Slot.Root : "button";
|
|
6170
|
-
return /* @__PURE__ */ (0,
|
|
6324
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6171
6325
|
Comp,
|
|
6172
6326
|
__spreadValues({
|
|
6173
6327
|
"data-slot": "sidebar-menu-action",
|
|
@@ -6192,7 +6346,7 @@ function SidebarMenuBadge(_a) {
|
|
|
6192
6346
|
} = _b, props = __objRest(_b, [
|
|
6193
6347
|
"className"
|
|
6194
6348
|
]);
|
|
6195
|
-
return /* @__PURE__ */ (0,
|
|
6349
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6196
6350
|
"div",
|
|
6197
6351
|
__spreadValues({
|
|
6198
6352
|
"data-slot": "sidebar-menu-badge",
|
|
@@ -6218,7 +6372,7 @@ function SidebarMenuSkeleton(_a) {
|
|
|
6218
6372
|
"showIcon"
|
|
6219
6373
|
]);
|
|
6220
6374
|
const width = "70%";
|
|
6221
|
-
return /* @__PURE__ */ (0,
|
|
6375
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
6222
6376
|
"div",
|
|
6223
6377
|
__spreadProps(__spreadValues({
|
|
6224
6378
|
"data-slot": "sidebar-menu-skeleton",
|
|
@@ -6226,14 +6380,14 @@ function SidebarMenuSkeleton(_a) {
|
|
|
6226
6380
|
className: cn("flex h-8 items-center gap-2 rounded-md px-2", className)
|
|
6227
6381
|
}, props), {
|
|
6228
6382
|
children: [
|
|
6229
|
-
showIcon && /* @__PURE__ */ (0,
|
|
6383
|
+
showIcon && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6230
6384
|
Skeleton,
|
|
6231
6385
|
{
|
|
6232
6386
|
className: "size-4 rounded-md",
|
|
6233
6387
|
"data-sidebar": "menu-skeleton-icon"
|
|
6234
6388
|
}
|
|
6235
6389
|
),
|
|
6236
|
-
/* @__PURE__ */ (0,
|
|
6390
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6237
6391
|
Skeleton,
|
|
6238
6392
|
{
|
|
6239
6393
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
@@ -6249,7 +6403,7 @@ function SidebarMenuSkeleton(_a) {
|
|
|
6249
6403
|
}
|
|
6250
6404
|
function SidebarMenuSub(_a) {
|
|
6251
6405
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6252
|
-
return /* @__PURE__ */ (0,
|
|
6406
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6253
6407
|
"ul",
|
|
6254
6408
|
__spreadValues({
|
|
6255
6409
|
"data-slot": "sidebar-menu-sub",
|
|
@@ -6268,7 +6422,7 @@ function SidebarMenuSubItem(_a) {
|
|
|
6268
6422
|
} = _b, props = __objRest(_b, [
|
|
6269
6423
|
"className"
|
|
6270
6424
|
]);
|
|
6271
|
-
return /* @__PURE__ */ (0,
|
|
6425
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6272
6426
|
"li",
|
|
6273
6427
|
__spreadValues({
|
|
6274
6428
|
"data-slot": "sidebar-menu-sub-item",
|
|
@@ -6290,7 +6444,7 @@ function SidebarMenuSubButton(_a) {
|
|
|
6290
6444
|
"className"
|
|
6291
6445
|
]);
|
|
6292
6446
|
const Comp = asChild ? import_radix_ui30.Slot.Root : "a";
|
|
6293
|
-
return /* @__PURE__ */ (0,
|
|
6447
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6294
6448
|
Comp,
|
|
6295
6449
|
__spreadValues({
|
|
6296
6450
|
"data-slot": "sidebar-menu-sub-button",
|
|
@@ -6310,9 +6464,9 @@ function SidebarMenuSubButton(_a) {
|
|
|
6310
6464
|
}
|
|
6311
6465
|
|
|
6312
6466
|
// components/ui/slider.tsx
|
|
6313
|
-
var
|
|
6467
|
+
var React13 = __toESM(require("react"), 1);
|
|
6314
6468
|
var import_radix_ui31 = require("radix-ui");
|
|
6315
|
-
var
|
|
6469
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
6316
6470
|
function Slider(_a) {
|
|
6317
6471
|
var _b = _a, {
|
|
6318
6472
|
className,
|
|
@@ -6327,11 +6481,11 @@ function Slider(_a) {
|
|
|
6327
6481
|
"min",
|
|
6328
6482
|
"max"
|
|
6329
6483
|
]);
|
|
6330
|
-
const _values =
|
|
6484
|
+
const _values = React13.useMemo(
|
|
6331
6485
|
() => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max],
|
|
6332
6486
|
[value, defaultValue, min, max]
|
|
6333
6487
|
);
|
|
6334
|
-
return /* @__PURE__ */ (0,
|
|
6488
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
6335
6489
|
import_radix_ui31.Slider.Root,
|
|
6336
6490
|
__spreadProps(__spreadValues({
|
|
6337
6491
|
"data-slot": "slider",
|
|
@@ -6345,14 +6499,14 @@ function Slider(_a) {
|
|
|
6345
6499
|
)
|
|
6346
6500
|
}, props), {
|
|
6347
6501
|
children: [
|
|
6348
|
-
/* @__PURE__ */ (0,
|
|
6502
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6349
6503
|
import_radix_ui31.Slider.Track,
|
|
6350
6504
|
{
|
|
6351
6505
|
"data-slot": "slider-track",
|
|
6352
6506
|
className: cn(
|
|
6353
6507
|
"relative grow overflow-hidden rounded-full bg-subtle data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"
|
|
6354
6508
|
),
|
|
6355
|
-
children: /* @__PURE__ */ (0,
|
|
6509
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6356
6510
|
import_radix_ui31.Slider.Range,
|
|
6357
6511
|
{
|
|
6358
6512
|
"data-slot": "slider-range",
|
|
@@ -6363,7 +6517,7 @@ function Slider(_a) {
|
|
|
6363
6517
|
)
|
|
6364
6518
|
}
|
|
6365
6519
|
),
|
|
6366
|
-
Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ (0,
|
|
6520
|
+
Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6367
6521
|
import_radix_ui31.Slider.Thumb,
|
|
6368
6522
|
{
|
|
6369
6523
|
"data-slot": "slider-thumb",
|
|
@@ -6377,15 +6531,15 @@ function Slider(_a) {
|
|
|
6377
6531
|
}
|
|
6378
6532
|
|
|
6379
6533
|
// components/ui/toast.tsx
|
|
6380
|
-
var
|
|
6534
|
+
var import_lucide_react23 = require("lucide-react");
|
|
6381
6535
|
var import_next_themes = require("next-themes");
|
|
6382
6536
|
var import_sonner = require("sonner");
|
|
6383
|
-
var
|
|
6537
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
6384
6538
|
var Toaster = (_a) => {
|
|
6385
6539
|
var props = __objRest(_a, []);
|
|
6386
6540
|
const { theme = "system" } = (0, import_next_themes.useTheme)();
|
|
6387
6541
|
const isMobile = useIsMobile();
|
|
6388
|
-
return /* @__PURE__ */ (0,
|
|
6542
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
6389
6543
|
import_sonner.Toaster,
|
|
6390
6544
|
__spreadValues({
|
|
6391
6545
|
theme,
|
|
@@ -6394,11 +6548,11 @@ var Toaster = (_a) => {
|
|
|
6394
6548
|
visibleToasts: isMobile ? 1 : 3,
|
|
6395
6549
|
duration: 4e3,
|
|
6396
6550
|
icons: {
|
|
6397
|
-
success: /* @__PURE__ */ (0,
|
|
6398
|
-
info: /* @__PURE__ */ (0,
|
|
6399
|
-
warning: /* @__PURE__ */ (0,
|
|
6400
|
-
error: /* @__PURE__ */ (0,
|
|
6401
|
-
loading: /* @__PURE__ */ (0,
|
|
6551
|
+
success: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_lucide_react23.CircleCheckIcon, { className: "size-4" }),
|
|
6552
|
+
info: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_lucide_react23.InfoIcon, { className: "size-4" }),
|
|
6553
|
+
warning: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_lucide_react23.TriangleAlertIcon, { className: "size-4" }),
|
|
6554
|
+
error: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_lucide_react23.OctagonXIcon, { className: "size-4" }),
|
|
6555
|
+
loading: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_lucide_react23.Loader2Icon, { className: "size-4 animate-spin" })
|
|
6402
6556
|
},
|
|
6403
6557
|
toastOptions: {
|
|
6404
6558
|
classNames: {
|
|
@@ -6419,9 +6573,9 @@ var Toaster = (_a) => {
|
|
|
6419
6573
|
};
|
|
6420
6574
|
|
|
6421
6575
|
// components/ui/stepper.tsx
|
|
6422
|
-
var
|
|
6423
|
-
var
|
|
6424
|
-
var
|
|
6576
|
+
var React14 = __toESM(require("react"), 1);
|
|
6577
|
+
var import_lucide_react24 = require("lucide-react");
|
|
6578
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
6425
6579
|
function clamp(value, min, max) {
|
|
6426
6580
|
return Math.min(Math.max(value, min), max);
|
|
6427
6581
|
}
|
|
@@ -6455,16 +6609,16 @@ function Stepper({
|
|
|
6455
6609
|
}) {
|
|
6456
6610
|
const { container, buttonSize, iconClass } = stepperSizeConfig[size];
|
|
6457
6611
|
const isControlled = controlledValue !== void 0;
|
|
6458
|
-
const [internalValue, setInternalValue] =
|
|
6612
|
+
const [internalValue, setInternalValue] = React14.useState(
|
|
6459
6613
|
clamp(defaultValue, min, max)
|
|
6460
6614
|
);
|
|
6461
6615
|
const currentValue = isControlled ? controlledValue : internalValue;
|
|
6462
6616
|
const decimalPlaces = getDecimalPlaces(step);
|
|
6463
|
-
const [displayString, setDisplayString] =
|
|
6617
|
+
const [displayString, setDisplayString] = React14.useState(
|
|
6464
6618
|
formatValue(currentValue, decimalPlaces)
|
|
6465
6619
|
);
|
|
6466
|
-
const [isFocused, setIsFocused] =
|
|
6467
|
-
|
|
6620
|
+
const [isFocused, setIsFocused] = React14.useState(false);
|
|
6621
|
+
React14.useEffect(() => {
|
|
6468
6622
|
if (!isFocused) {
|
|
6469
6623
|
setDisplayString(formatValue(currentValue, decimalPlaces));
|
|
6470
6624
|
}
|
|
@@ -6514,14 +6668,14 @@ function Stepper({
|
|
|
6514
6668
|
}
|
|
6515
6669
|
}
|
|
6516
6670
|
}
|
|
6517
|
-
return /* @__PURE__ */ (0,
|
|
6671
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
6518
6672
|
InputGroup,
|
|
6519
6673
|
{
|
|
6520
6674
|
"data-slot": "stepper",
|
|
6521
6675
|
"data-disabled": disabled || void 0,
|
|
6522
6676
|
className: cn("w-32", container, className),
|
|
6523
6677
|
children: [
|
|
6524
|
-
/* @__PURE__ */ (0,
|
|
6678
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(InputGroupAddon, { align: "inline-start", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
6525
6679
|
InputGroupButton,
|
|
6526
6680
|
{
|
|
6527
6681
|
size: buttonSize,
|
|
@@ -6529,10 +6683,10 @@ function Stepper({
|
|
|
6529
6683
|
onClick: handleDecrement,
|
|
6530
6684
|
disabled: disabled || currentValue <= min,
|
|
6531
6685
|
"aria-label": "Decrease value",
|
|
6532
|
-
children: /* @__PURE__ */ (0,
|
|
6686
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_lucide_react24.Minus, { className: iconClass })
|
|
6533
6687
|
}
|
|
6534
6688
|
) }),
|
|
6535
|
-
/* @__PURE__ */ (0,
|
|
6689
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
6536
6690
|
InputGroupInput,
|
|
6537
6691
|
{
|
|
6538
6692
|
type: "text",
|
|
@@ -6554,9 +6708,9 @@ function Stepper({
|
|
|
6554
6708
|
className: "text-center [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"
|
|
6555
6709
|
}
|
|
6556
6710
|
),
|
|
6557
|
-
/* @__PURE__ */ (0,
|
|
6558
|
-
/* @__PURE__ */ (0,
|
|
6559
|
-
/* @__PURE__ */ (0,
|
|
6711
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(InputGroupAddon, { align: "inline-end", children: [
|
|
6712
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(InputGroupText, { className: "font-normal text-on-subtle", children: "USDT" }),
|
|
6713
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
6560
6714
|
InputGroupButton,
|
|
6561
6715
|
{
|
|
6562
6716
|
size: buttonSize,
|
|
@@ -6564,7 +6718,7 @@ function Stepper({
|
|
|
6564
6718
|
onClick: handleIncrement,
|
|
6565
6719
|
disabled: disabled || currentValue >= max,
|
|
6566
6720
|
"aria-label": "Increase value",
|
|
6567
|
-
children: /* @__PURE__ */ (0,
|
|
6721
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_lucide_react24.Plus, { className: iconClass })
|
|
6568
6722
|
}
|
|
6569
6723
|
)
|
|
6570
6724
|
] })
|
|
@@ -6575,7 +6729,7 @@ function Stepper({
|
|
|
6575
6729
|
|
|
6576
6730
|
// components/ui/switch.tsx
|
|
6577
6731
|
var import_radix_ui32 = require("radix-ui");
|
|
6578
|
-
var
|
|
6732
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
6579
6733
|
function Switch(_a) {
|
|
6580
6734
|
var _b = _a, {
|
|
6581
6735
|
className,
|
|
@@ -6584,7 +6738,7 @@ function Switch(_a) {
|
|
|
6584
6738
|
"className",
|
|
6585
6739
|
"size"
|
|
6586
6740
|
]);
|
|
6587
|
-
return /* @__PURE__ */ (0,
|
|
6741
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
6588
6742
|
import_radix_ui32.Switch.Root,
|
|
6589
6743
|
__spreadProps(__spreadValues({
|
|
6590
6744
|
"data-slot": "switch",
|
|
@@ -6594,7 +6748,7 @@ function Switch(_a) {
|
|
|
6594
6748
|
className
|
|
6595
6749
|
)
|
|
6596
6750
|
}, props), {
|
|
6597
|
-
children: /* @__PURE__ */ (0,
|
|
6751
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
6598
6752
|
import_radix_ui32.Switch.Thumb,
|
|
6599
6753
|
{
|
|
6600
6754
|
"data-slot": "switch-thumb",
|
|
@@ -6608,15 +6762,15 @@ function Switch(_a) {
|
|
|
6608
6762
|
}
|
|
6609
6763
|
|
|
6610
6764
|
// components/ui/table.tsx
|
|
6611
|
-
var
|
|
6765
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
6612
6766
|
function Table(_a) {
|
|
6613
6767
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6614
|
-
return /* @__PURE__ */ (0,
|
|
6768
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6615
6769
|
"div",
|
|
6616
6770
|
{
|
|
6617
6771
|
"data-slot": "table-container",
|
|
6618
6772
|
className: "relative w-full overflow-x-auto",
|
|
6619
|
-
children: /* @__PURE__ */ (0,
|
|
6773
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6620
6774
|
"table",
|
|
6621
6775
|
__spreadValues({
|
|
6622
6776
|
"data-slot": "table",
|
|
@@ -6628,7 +6782,7 @@ function Table(_a) {
|
|
|
6628
6782
|
}
|
|
6629
6783
|
function TableHeader(_a) {
|
|
6630
6784
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6631
|
-
return /* @__PURE__ */ (0,
|
|
6785
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6632
6786
|
"thead",
|
|
6633
6787
|
__spreadValues({
|
|
6634
6788
|
"data-slot": "table-header",
|
|
@@ -6638,7 +6792,7 @@ function TableHeader(_a) {
|
|
|
6638
6792
|
}
|
|
6639
6793
|
function TableBody(_a) {
|
|
6640
6794
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6641
|
-
return /* @__PURE__ */ (0,
|
|
6795
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6642
6796
|
"tbody",
|
|
6643
6797
|
__spreadValues({
|
|
6644
6798
|
"data-slot": "table-body",
|
|
@@ -6648,7 +6802,7 @@ function TableBody(_a) {
|
|
|
6648
6802
|
}
|
|
6649
6803
|
function TableFooter(_a) {
|
|
6650
6804
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6651
|
-
return /* @__PURE__ */ (0,
|
|
6805
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6652
6806
|
"tfoot",
|
|
6653
6807
|
__spreadValues({
|
|
6654
6808
|
"data-slot": "table-footer",
|
|
@@ -6661,7 +6815,7 @@ function TableFooter(_a) {
|
|
|
6661
6815
|
}
|
|
6662
6816
|
function TableRow(_a) {
|
|
6663
6817
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6664
|
-
return /* @__PURE__ */ (0,
|
|
6818
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6665
6819
|
"tr",
|
|
6666
6820
|
__spreadValues({
|
|
6667
6821
|
"data-slot": "table-row",
|
|
@@ -6674,7 +6828,7 @@ function TableRow(_a) {
|
|
|
6674
6828
|
}
|
|
6675
6829
|
function TableHead(_a) {
|
|
6676
6830
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6677
|
-
return /* @__PURE__ */ (0,
|
|
6831
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6678
6832
|
"th",
|
|
6679
6833
|
__spreadValues({
|
|
6680
6834
|
"data-slot": "table-head",
|
|
@@ -6687,7 +6841,7 @@ function TableHead(_a) {
|
|
|
6687
6841
|
}
|
|
6688
6842
|
function TableCell(_a) {
|
|
6689
6843
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6690
|
-
return /* @__PURE__ */ (0,
|
|
6844
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6691
6845
|
"td",
|
|
6692
6846
|
__spreadValues({
|
|
6693
6847
|
"data-slot": "table-cell",
|
|
@@ -6704,7 +6858,7 @@ function TableCaption(_a) {
|
|
|
6704
6858
|
} = _b, props = __objRest(_b, [
|
|
6705
6859
|
"className"
|
|
6706
6860
|
]);
|
|
6707
|
-
return /* @__PURE__ */ (0,
|
|
6861
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6708
6862
|
"caption",
|
|
6709
6863
|
__spreadValues({
|
|
6710
6864
|
"data-slot": "table-caption",
|
|
@@ -6716,7 +6870,7 @@ function TableCaption(_a) {
|
|
|
6716
6870
|
// components/ui/tabs.tsx
|
|
6717
6871
|
var import_class_variance_authority13 = require("class-variance-authority");
|
|
6718
6872
|
var import_radix_ui33 = require("radix-ui");
|
|
6719
|
-
var
|
|
6873
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
6720
6874
|
function Tabs(_a) {
|
|
6721
6875
|
var _b = _a, {
|
|
6722
6876
|
className,
|
|
@@ -6725,7 +6879,7 @@ function Tabs(_a) {
|
|
|
6725
6879
|
"className",
|
|
6726
6880
|
"orientation"
|
|
6727
6881
|
]);
|
|
6728
|
-
return /* @__PURE__ */ (0,
|
|
6882
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
6729
6883
|
import_radix_ui33.Tabs.Root,
|
|
6730
6884
|
__spreadValues({
|
|
6731
6885
|
"data-slot": "tabs",
|
|
@@ -6768,7 +6922,7 @@ function TabsList(_a) {
|
|
|
6768
6922
|
"variant",
|
|
6769
6923
|
"size"
|
|
6770
6924
|
]);
|
|
6771
|
-
return /* @__PURE__ */ (0,
|
|
6925
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
6772
6926
|
import_radix_ui33.Tabs.List,
|
|
6773
6927
|
__spreadValues({
|
|
6774
6928
|
"data-slot": "tabs-list",
|
|
@@ -6786,7 +6940,7 @@ function TabsTrigger(_a) {
|
|
|
6786
6940
|
"className",
|
|
6787
6941
|
"iconPosition"
|
|
6788
6942
|
]);
|
|
6789
|
-
return /* @__PURE__ */ (0,
|
|
6943
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
6790
6944
|
import_radix_ui33.Tabs.Trigger,
|
|
6791
6945
|
__spreadValues({
|
|
6792
6946
|
"data-slot": "tabs-trigger",
|
|
@@ -6812,7 +6966,7 @@ function TabsContent(_a) {
|
|
|
6812
6966
|
} = _b, props = __objRest(_b, [
|
|
6813
6967
|
"className"
|
|
6814
6968
|
]);
|
|
6815
|
-
return /* @__PURE__ */ (0,
|
|
6969
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
6816
6970
|
import_radix_ui33.Tabs.Content,
|
|
6817
6971
|
__spreadValues({
|
|
6818
6972
|
"data-slot": "tabs-content",
|
|
@@ -6822,8 +6976,8 @@ function TabsContent(_a) {
|
|
|
6822
6976
|
}
|
|
6823
6977
|
|
|
6824
6978
|
// components/ui/ticket-card.tsx
|
|
6825
|
-
var
|
|
6826
|
-
var
|
|
6979
|
+
var import_lucide_react25 = require("lucide-react");
|
|
6980
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
6827
6981
|
function formatBalanceValue(raw) {
|
|
6828
6982
|
const match = raw.match(/^(\D*)([\d,]+(?:\.\d+)?)(\D*)$/);
|
|
6829
6983
|
if (!match) return raw;
|
|
@@ -6847,23 +7001,23 @@ function TicketCard({
|
|
|
6847
7001
|
stubDisabled = false,
|
|
6848
7002
|
compact = false
|
|
6849
7003
|
}) {
|
|
6850
|
-
return /* @__PURE__ */ (0,
|
|
6851
|
-
/* @__PURE__ */ (0,
|
|
6852
|
-
icon && /* @__PURE__ */ (0,
|
|
6853
|
-
/* @__PURE__ */ (0,
|
|
6854
|
-
/* @__PURE__ */ (0,
|
|
6855
|
-
/* @__PURE__ */ (0,
|
|
6856
|
-
/* @__PURE__ */ (0,
|
|
6857
|
-
currency && /* @__PURE__ */ (0,
|
|
7004
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: cn("flex w-full flex-col gap-2", className), children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "relative flex h-20 w-full items-stretch justify-between rounded-sm bg-subtle", children: [
|
|
7005
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: cn("flex flex-1 items-center overflow-hidden", compact ? "gap-2 px-2" : "gap-4 px-4"), children: [
|
|
7006
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "flex size-10 shrink-0 items-center justify-center rounded-full border-2 border-primary text-primary", children: icon }),
|
|
7007
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex h-11 flex-col justify-center gap-1 whitespace-nowrap", children: [
|
|
7008
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: "text-xs text-on-subtle", children: label }),
|
|
7009
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("p", { className: "leading-none", children: [
|
|
7010
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-[20px] font-bold text-on-prominent", children: formatBalanceValue(value) }),
|
|
7011
|
+
currency && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
|
|
6858
7012
|
" ",
|
|
6859
|
-
/* @__PURE__ */ (0,
|
|
7013
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-sm text-on-subtle", children: currency })
|
|
6860
7014
|
] })
|
|
6861
7015
|
] })
|
|
6862
7016
|
] })
|
|
6863
7017
|
] }),
|
|
6864
|
-
/* @__PURE__ */ (0,
|
|
6865
|
-
/* @__PURE__ */ (0,
|
|
6866
|
-
/* @__PURE__ */ (0,
|
|
7018
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { "aria-hidden": true, className: "pointer-events-none absolute right-[88px] top-[-12px] z-10 size-6 rounded-full bg-prominent" }),
|
|
7019
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { "aria-hidden": true, className: "pointer-events-none absolute right-[88px] top-[68px] z-10 size-6 rounded-full bg-prominent" }),
|
|
7020
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
6867
7021
|
"div",
|
|
6868
7022
|
{
|
|
6869
7023
|
"aria-hidden": true,
|
|
@@ -6874,7 +7028,7 @@ function TicketCard({
|
|
|
6874
7028
|
}
|
|
6875
7029
|
}
|
|
6876
7030
|
),
|
|
6877
|
-
/* @__PURE__ */ (0,
|
|
7031
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
6878
7032
|
"button",
|
|
6879
7033
|
{
|
|
6880
7034
|
type: "button",
|
|
@@ -6888,7 +7042,7 @@ function TicketCard({
|
|
|
6888
7042
|
stubDisabled ? "cursor-not-allowed opacity-50" : "hover:bg-primary-hover"
|
|
6889
7043
|
),
|
|
6890
7044
|
children: [
|
|
6891
|
-
!stubDisabled && /* @__PURE__ */ (0,
|
|
7045
|
+
!stubDisabled && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
6892
7046
|
"span",
|
|
6893
7047
|
{
|
|
6894
7048
|
"aria-hidden": true,
|
|
@@ -6898,8 +7052,8 @@ function TicketCard({
|
|
|
6898
7052
|
}
|
|
6899
7053
|
}
|
|
6900
7054
|
),
|
|
6901
|
-
/* @__PURE__ */ (0,
|
|
6902
|
-
/* @__PURE__ */ (0,
|
|
7055
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_lucide_react25.ArrowRight, { className: "size-4 text-on-primary" }),
|
|
7056
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-sm font-semibold text-on-primary", children: stubLabel })
|
|
6903
7057
|
]
|
|
6904
7058
|
}
|
|
6905
7059
|
)
|
|
@@ -6925,58 +7079,58 @@ function CreditTicketCard({
|
|
|
6925
7079
|
badgeInfoCloseLabel,
|
|
6926
7080
|
compact = false
|
|
6927
7081
|
}) {
|
|
6928
|
-
return /* @__PURE__ */ (0,
|
|
7082
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: cn("flex w-full flex-col gap-2", className), children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "relative flex w-full items-stretch justify-between rounded-sm bg-subtle", children: [
|
|
6929
7083
|
(() => {
|
|
6930
7084
|
const badgeText = badgeValue || badgeCurrency ? `${badgeLabel}: ${badgeValue}${badgeCurrency ? ` ${badgeCurrency}` : ""}` : badgeLabel;
|
|
6931
|
-
const creditBadge = /* @__PURE__ */ (0,
|
|
7085
|
+
const creditBadge = /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Badge, { variant: "fill-credit", size: "sm", className: "!gap-1 !font-medium !tracking-normal", children: [
|
|
6932
7086
|
badgeIcon,
|
|
6933
7087
|
badgeText,
|
|
6934
|
-
badgeInfo && /* @__PURE__ */ (0,
|
|
6935
|
-
/* @__PURE__ */ (0,
|
|
7088
|
+
badgeInfo && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Tooltip2, { children: [
|
|
7089
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
6936
7090
|
"button",
|
|
6937
7091
|
{
|
|
6938
7092
|
type: "button",
|
|
6939
7093
|
"aria-label": `More info about ${badgeLabel.toLowerCase()}`,
|
|
6940
7094
|
className: "inline-flex shrink-0 items-center justify-center rounded-full text-on-semantic-boost outline-none transition-opacity hover:opacity-70 focus-visible:opacity-70 focus-visible:ring-2 focus-visible:ring-on-semantic-boost/40 cursor-pointer",
|
|
6941
|
-
children: /* @__PURE__ */ (0,
|
|
7095
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_lucide_react25.Info, { className: "!size-3.5", strokeWidth: 2 })
|
|
6942
7096
|
}
|
|
6943
7097
|
) }),
|
|
6944
|
-
/* @__PURE__ */ (0,
|
|
7098
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(TooltipContent, { side: badgeInfoSide, align: badgeInfoAlign, title: badgeInfoTitle, closeLabel: badgeInfoCloseLabel, variant: "inverse", className: "max-w-xs whitespace-normal", children: badgeInfo })
|
|
6945
7099
|
] }) })
|
|
6946
7100
|
] });
|
|
6947
|
-
const labelValue = /* @__PURE__ */ (0,
|
|
6948
|
-
/* @__PURE__ */ (0,
|
|
6949
|
-
/* @__PURE__ */ (0,
|
|
6950
|
-
/* @__PURE__ */ (0,
|
|
6951
|
-
currency && /* @__PURE__ */ (0,
|
|
7101
|
+
const labelValue = /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex h-11 flex-col justify-center gap-1 whitespace-nowrap", children: [
|
|
7102
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: "text-xs text-on-subtle", children: label }),
|
|
7103
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("p", { className: "leading-none", children: [
|
|
7104
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-[20px] font-bold text-on-prominent", children: formatBalanceValue(value) }),
|
|
7105
|
+
currency && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
|
|
6952
7106
|
" ",
|
|
6953
|
-
/* @__PURE__ */ (0,
|
|
7107
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-sm text-on-subtle", children: currency })
|
|
6954
7108
|
] })
|
|
6955
7109
|
] })
|
|
6956
7110
|
] });
|
|
6957
|
-
return /* @__PURE__ */ (0,
|
|
7111
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
6958
7112
|
"div",
|
|
6959
7113
|
{
|
|
6960
7114
|
className: cn(
|
|
6961
7115
|
"flex flex-1 overflow-hidden",
|
|
6962
7116
|
compact ? "flex-col gap-2 px-2 py-4" : "items-center gap-4 px-4 py-4"
|
|
6963
7117
|
),
|
|
6964
|
-
children: compact ? /* @__PURE__ */ (0,
|
|
6965
|
-
/* @__PURE__ */ (0,
|
|
6966
|
-
icon && /* @__PURE__ */ (0,
|
|
7118
|
+
children: compact ? /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex flex-1 flex-col gap-2", children: [
|
|
7119
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
7120
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "flex size-10 shrink-0 items-center justify-center rounded-full border-2 border-primary text-primary", children: icon }),
|
|
6967
7121
|
labelValue
|
|
6968
7122
|
] }),
|
|
6969
|
-
/* @__PURE__ */ (0,
|
|
6970
|
-
] }) : /* @__PURE__ */ (0,
|
|
6971
|
-
icon && /* @__PURE__ */ (0,
|
|
6972
|
-
/* @__PURE__ */ (0,
|
|
6973
|
-
/* @__PURE__ */ (0,
|
|
6974
|
-
/* @__PURE__ */ (0,
|
|
6975
|
-
/* @__PURE__ */ (0,
|
|
6976
|
-
/* @__PURE__ */ (0,
|
|
6977
|
-
currency && /* @__PURE__ */ (0,
|
|
7123
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "flex", children: icon ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "flex w-10 shrink-0 justify-start", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "w-max", children: creditBadge }) }) : creditBadge })
|
|
7124
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
|
|
7125
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "flex size-10 shrink-0 items-center justify-center rounded-full border-2 border-primary text-primary", children: icon }),
|
|
7126
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex flex-col gap-1 whitespace-nowrap", children: [
|
|
7127
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: "text-xs text-on-subtle", children: label }),
|
|
7128
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex items-center gap-4", children: [
|
|
7129
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("p", { className: "leading-none", children: [
|
|
7130
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-[20px] font-bold text-on-prominent", children: formatBalanceValue(value) }),
|
|
7131
|
+
currency && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
|
|
6978
7132
|
" ",
|
|
6979
|
-
/* @__PURE__ */ (0,
|
|
7133
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-sm text-on-subtle", children: currency })
|
|
6980
7134
|
] })
|
|
6981
7135
|
] }),
|
|
6982
7136
|
creditBadge
|
|
@@ -6986,9 +7140,9 @@ function CreditTicketCard({
|
|
|
6986
7140
|
}
|
|
6987
7141
|
);
|
|
6988
7142
|
})(),
|
|
6989
|
-
/* @__PURE__ */ (0,
|
|
6990
|
-
/* @__PURE__ */ (0,
|
|
6991
|
-
/* @__PURE__ */ (0,
|
|
7143
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { "aria-hidden": true, className: "pointer-events-none absolute right-[88px] top-[-12px] z-10 size-6 rounded-full bg-prominent" }),
|
|
7144
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { "aria-hidden": true, className: "pointer-events-none absolute right-[88px] bottom-[-12px] z-10 size-6 rounded-full bg-prominent" }),
|
|
7145
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
6992
7146
|
"div",
|
|
6993
7147
|
{
|
|
6994
7148
|
"aria-hidden": true,
|
|
@@ -6999,7 +7153,7 @@ function CreditTicketCard({
|
|
|
6999
7153
|
}
|
|
7000
7154
|
}
|
|
7001
7155
|
),
|
|
7002
|
-
/* @__PURE__ */ (0,
|
|
7156
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
7003
7157
|
"button",
|
|
7004
7158
|
{
|
|
7005
7159
|
type: "button",
|
|
@@ -7013,7 +7167,7 @@ function CreditTicketCard({
|
|
|
7013
7167
|
stubDisabled ? "cursor-not-allowed opacity-50" : "hover:bg-primary-hover"
|
|
7014
7168
|
),
|
|
7015
7169
|
children: [
|
|
7016
|
-
!stubDisabled && /* @__PURE__ */ (0,
|
|
7170
|
+
!stubDisabled && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
7017
7171
|
"span",
|
|
7018
7172
|
{
|
|
7019
7173
|
"aria-hidden": true,
|
|
@@ -7023,8 +7177,8 @@ function CreditTicketCard({
|
|
|
7023
7177
|
}
|
|
7024
7178
|
}
|
|
7025
7179
|
),
|
|
7026
|
-
/* @__PURE__ */ (0,
|
|
7027
|
-
/* @__PURE__ */ (0,
|
|
7180
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_lucide_react25.ArrowRight, { className: "size-4 text-on-primary" }),
|
|
7181
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-sm font-semibold text-on-primary", children: stubLabel })
|
|
7028
7182
|
]
|
|
7029
7183
|
}
|
|
7030
7184
|
)
|
|
@@ -7035,7 +7189,7 @@ var TicketCardDesktop = TicketCard;
|
|
|
7035
7189
|
// components/ui/toggle.tsx
|
|
7036
7190
|
var import_class_variance_authority14 = require("class-variance-authority");
|
|
7037
7191
|
var import_radix_ui34 = require("radix-ui");
|
|
7038
|
-
var
|
|
7192
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
7039
7193
|
var toggleVariants = (0, import_class_variance_authority14.cva)(
|
|
7040
7194
|
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-secondary-hover hover:text-on-prominent focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=on]:bg-secondary-hover data-[state=on]:border-transparent data-[state=on]:text-primary [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
7041
7195
|
{
|
|
@@ -7066,7 +7220,7 @@ function Toggle(_a) {
|
|
|
7066
7220
|
"variant",
|
|
7067
7221
|
"size"
|
|
7068
7222
|
]);
|
|
7069
|
-
return /* @__PURE__ */ (0,
|
|
7223
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7070
7224
|
import_radix_ui34.Toggle.Root,
|
|
7071
7225
|
__spreadValues({
|
|
7072
7226
|
"data-slot": "toggle",
|
|
@@ -7076,10 +7230,10 @@ function Toggle(_a) {
|
|
|
7076
7230
|
}
|
|
7077
7231
|
|
|
7078
7232
|
// components/ui/toggle-group.tsx
|
|
7079
|
-
var
|
|
7233
|
+
var React15 = __toESM(require("react"), 1);
|
|
7080
7234
|
var import_radix_ui35 = require("radix-ui");
|
|
7081
|
-
var
|
|
7082
|
-
var ToggleGroupContext =
|
|
7235
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
7236
|
+
var ToggleGroupContext = React15.createContext({
|
|
7083
7237
|
size: "default",
|
|
7084
7238
|
variant: "default",
|
|
7085
7239
|
spacing: 0
|
|
@@ -7098,7 +7252,7 @@ function ToggleGroup(_a) {
|
|
|
7098
7252
|
"spacing",
|
|
7099
7253
|
"children"
|
|
7100
7254
|
]);
|
|
7101
|
-
return /* @__PURE__ */ (0,
|
|
7255
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
7102
7256
|
import_radix_ui35.ToggleGroup.Root,
|
|
7103
7257
|
__spreadProps(__spreadValues({
|
|
7104
7258
|
"data-slot": "toggle-group",
|
|
@@ -7111,7 +7265,7 @@ function ToggleGroup(_a) {
|
|
|
7111
7265
|
className
|
|
7112
7266
|
)
|
|
7113
7267
|
}, props), {
|
|
7114
|
-
children: /* @__PURE__ */ (0,
|
|
7268
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ToggleGroupContext.Provider, { value: { variant, size, spacing }, children })
|
|
7115
7269
|
})
|
|
7116
7270
|
);
|
|
7117
7271
|
}
|
|
@@ -7127,8 +7281,8 @@ function ToggleGroupItem(_a) {
|
|
|
7127
7281
|
"variant",
|
|
7128
7282
|
"size"
|
|
7129
7283
|
]);
|
|
7130
|
-
const context =
|
|
7131
|
-
return /* @__PURE__ */ (0,
|
|
7284
|
+
const context = React15.useContext(ToggleGroupContext);
|
|
7285
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
7132
7286
|
import_radix_ui35.ToggleGroup.Item,
|
|
7133
7287
|
__spreadProps(__spreadValues({
|
|
7134
7288
|
"data-slot": "toggle-group-item",
|
|
@@ -7151,7 +7305,7 @@ function ToggleGroupItem(_a) {
|
|
|
7151
7305
|
}
|
|
7152
7306
|
|
|
7153
7307
|
// components/blocks/result-block.tsx
|
|
7154
|
-
var
|
|
7308
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
7155
7309
|
var THUMBS_UP_DATA_URL = "data:image/webp;base64,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";
|
|
7156
7310
|
var THUMBS_DOWN_DATA_URL = "data:image/webp;base64,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";
|
|
7157
7311
|
function ResultBlock({
|
|
@@ -7168,9 +7322,9 @@ function ResultBlock({
|
|
|
7168
7322
|
const signedAmount = isWin ? `+${amount}` : `\u2212${amount}`;
|
|
7169
7323
|
const amountColorClass = isWin ? "text-semantic-win" : "text-semantic-loss";
|
|
7170
7324
|
const haloBgClass = isWin ? "bg-semantic-win" : "bg-semantic-loss";
|
|
7171
|
-
return /* @__PURE__ */ (0,
|
|
7172
|
-
/* @__PURE__ */ (0,
|
|
7173
|
-
/* @__PURE__ */ (0,
|
|
7325
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Card, { className: "w-80 shrink-0 overflow-hidden rounded-md shadow-sm px-5 py-5 items-center gap-3", children: [
|
|
7326
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "relative flex items-center justify-center py-2", children: [
|
|
7327
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
7174
7328
|
"span",
|
|
7175
7329
|
{
|
|
7176
7330
|
"aria-hidden": true,
|
|
@@ -7178,7 +7332,7 @@ function ResultBlock({
|
|
|
7178
7332
|
className: `absolute size-24 rounded-full blur-2xl opacity-20 ${haloBgClass}`
|
|
7179
7333
|
}
|
|
7180
7334
|
),
|
|
7181
|
-
/* @__PURE__ */ (0,
|
|
7335
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
7182
7336
|
"img",
|
|
7183
7337
|
{
|
|
7184
7338
|
"data-results-motion": isWin ? "icon-win" : "icon-loss",
|
|
@@ -7188,28 +7342,28 @@ function ResultBlock({
|
|
|
7188
7342
|
}
|
|
7189
7343
|
)
|
|
7190
7344
|
] }),
|
|
7191
|
-
/* @__PURE__ */ (0,
|
|
7192
|
-
/* @__PURE__ */ (0,
|
|
7193
|
-
/* @__PURE__ */ (0,
|
|
7194
|
-
/* @__PURE__ */ (0,
|
|
7345
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "text-lg font-semibold text-on-prominent", children: titleText }),
|
|
7346
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("p", { className: `flex items-baseline gap-1.5 ${amountColorClass}`, children: [
|
|
7347
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "font-display text-4xl font-bold tabular-nums tracking-tight", children: signedAmount }),
|
|
7348
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "text-lg font-semibold", children: currency })
|
|
7195
7349
|
] }),
|
|
7196
|
-
/* @__PURE__ */ (0,
|
|
7197
|
-
/* @__PURE__ */ (0,
|
|
7350
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
7351
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Badge, { variant: "standard", size: "sm", children: [
|
|
7198
7352
|
contractLabel,
|
|
7199
|
-
pickedDigit !== void 0 && /* @__PURE__ */ (0,
|
|
7200
|
-
/* @__PURE__ */ (0,
|
|
7201
|
-
/* @__PURE__ */ (0,
|
|
7353
|
+
pickedDigit !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
|
|
7354
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { "aria-hidden": true, className: "h-3 w-px bg-border-prominent/40 mx-1" }),
|
|
7355
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "tabular-nums", children: pickedDigit })
|
|
7202
7356
|
] })
|
|
7203
7357
|
] }),
|
|
7204
|
-
/* @__PURE__ */ (0,
|
|
7358
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Badge, { variant: "standard", size: "sm", children: duration })
|
|
7205
7359
|
] }),
|
|
7206
|
-
/* @__PURE__ */ (0,
|
|
7207
|
-
ctaMode === "next-round" && /* @__PURE__ */ (0,
|
|
7208
|
-
ctaMode === "go-again" && /* @__PURE__ */ (0,
|
|
7209
|
-
ctaMode === "conversion" && /* @__PURE__ */ (0,
|
|
7210
|
-
/* @__PURE__ */ (0,
|
|
7211
|
-
/* @__PURE__ */ (0,
|
|
7212
|
-
/* @__PURE__ */ (0,
|
|
7360
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "w-full pt-2", children: [
|
|
7361
|
+
ctaMode === "next-round" && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Button, { className: "w-full", children: "Next round" }),
|
|
7362
|
+
ctaMode === "go-again" && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Button, { className: "w-full", children: "Go again" }),
|
|
7363
|
+
ctaMode === "conversion" && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "w-full flex flex-col gap-3", children: [
|
|
7364
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "text-center text-base font-semibold text-on-prominent", children: "Ready to play for real?" }),
|
|
7365
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Button, { className: "w-full", children: "Deposit now" }),
|
|
7366
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Button, { variant: "secondary", className: "w-full", children: "Stay in demo" })
|
|
7213
7367
|
] })
|
|
7214
7368
|
] })
|
|
7215
7369
|
] });
|
|
@@ -7220,21 +7374,21 @@ function ResultDialog({
|
|
|
7220
7374
|
primaryLabel,
|
|
7221
7375
|
secondaryLabel
|
|
7222
7376
|
}) {
|
|
7223
|
-
return /* @__PURE__ */ (0,
|
|
7224
|
-
/* @__PURE__ */ (0,
|
|
7225
|
-
/* @__PURE__ */ (0,
|
|
7226
|
-
/* @__PURE__ */ (0,
|
|
7377
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Card, { className: "w-80 shrink-0 overflow-hidden rounded-md shadow-sm px-5 py-6 items-center gap-4", children: [
|
|
7378
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex flex-col items-center gap-2 text-center", children: [
|
|
7379
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "text-lg font-semibold text-on-prominent", children: title }),
|
|
7380
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "text-sm text-on-subtle", children: body })
|
|
7227
7381
|
] }),
|
|
7228
|
-
/* @__PURE__ */ (0,
|
|
7229
|
-
/* @__PURE__ */ (0,
|
|
7230
|
-
/* @__PURE__ */ (0,
|
|
7382
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "w-full flex flex-col gap-2", children: [
|
|
7383
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Button, { className: "w-full", children: primaryLabel }),
|
|
7384
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Button, { variant: "secondary", className: "w-full", children: secondaryLabel })
|
|
7231
7385
|
] })
|
|
7232
7386
|
] });
|
|
7233
7387
|
}
|
|
7234
7388
|
|
|
7235
7389
|
// components/blocks/header-navigation-block.tsx
|
|
7236
|
-
var
|
|
7237
|
-
var
|
|
7390
|
+
var import_lucide_react26 = require("lucide-react");
|
|
7391
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
7238
7392
|
function HeaderNavigationBlock({
|
|
7239
7393
|
onBack,
|
|
7240
7394
|
badge,
|
|
@@ -7243,15 +7397,15 @@ function HeaderNavigationBlock({
|
|
|
7243
7397
|
actions
|
|
7244
7398
|
}) {
|
|
7245
7399
|
var _a;
|
|
7246
|
-
return /* @__PURE__ */ (0,
|
|
7247
|
-
onBack && /* @__PURE__ */ (0,
|
|
7248
|
-
/* @__PURE__ */ (0,
|
|
7249
|
-
badge && /* @__PURE__ */ (0,
|
|
7250
|
-
/* @__PURE__ */ (0,
|
|
7251
|
-
/* @__PURE__ */ (0,
|
|
7400
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "w-full min-w-80 max-w-layout-diagram-small rounded-md overflow-hidden bg-prominent", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("header", { className: "flex items-center gap-2 border-b border-border-subtle bg-prominent px-layout-margin-inline py-3", children: [
|
|
7401
|
+
onBack && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(NavigationButton, { type: "button", size: "md", "aria-label": "Back", onClick: onBack, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_lucide_react26.ArrowLeft, { className: "size-5" }) }),
|
|
7402
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex min-w-0 flex-1 items-center justify-center gap-2", children: [
|
|
7403
|
+
badge && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Badge, { variant: (_a = badge.variant) != null ? _a : "fill-warning", size: "sm", children: badge.label }),
|
|
7404
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "font-display font-semibold tabular-nums text-on-prominent", children: balance.amount }),
|
|
7405
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "text-sm text-on-subtle", children: balance.currency })
|
|
7252
7406
|
] }),
|
|
7253
|
-
/* @__PURE__ */ (0,
|
|
7254
|
-
history && /* @__PURE__ */ (0,
|
|
7407
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex shrink-0 items-center gap-1", children: [
|
|
7408
|
+
history && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(HistoryButton, __spreadValues({}, history)),
|
|
7255
7409
|
actions
|
|
7256
7410
|
] })
|
|
7257
7411
|
] }) });
|
|
@@ -7264,9 +7418,9 @@ function HistoryButton({
|
|
|
7264
7418
|
const show = typeof count === "number" && count > 0;
|
|
7265
7419
|
const label = show ? count > 99 ? "99+" : String(count) : null;
|
|
7266
7420
|
const ariaLabel = ariaLabelOverride != null ? ariaLabelOverride : show ? `Open history, ${count} new` : "Open history";
|
|
7267
|
-
return /* @__PURE__ */ (0,
|
|
7268
|
-
/* @__PURE__ */ (0,
|
|
7269
|
-
show && /* @__PURE__ */ (0,
|
|
7421
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "relative inline-flex", children: [
|
|
7422
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(NavigationButton, { type: "button", size: "md", "aria-label": ariaLabel, onClick, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_lucide_react26.History, { className: "size-5" }) }),
|
|
7423
|
+
show && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
7270
7424
|
"span",
|
|
7271
7425
|
{
|
|
7272
7426
|
"aria-hidden": true,
|
|
@@ -7278,7 +7432,7 @@ function HistoryButton({
|
|
|
7278
7432
|
}
|
|
7279
7433
|
|
|
7280
7434
|
// components/blocks/faq-block.tsx
|
|
7281
|
-
var
|
|
7435
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
7282
7436
|
function FAQBlock({
|
|
7283
7437
|
eyebrow = "FAQ Section",
|
|
7284
7438
|
title = "Frequently asked questions",
|
|
@@ -7294,38 +7448,38 @@ function FAQBlock({
|
|
|
7294
7448
|
const helpCardPaddingClass = layout === "desktop" ? "p-8" : "p-6";
|
|
7295
7449
|
const gapClass = layout === "desktop" ? "gap-12" : "gap-10";
|
|
7296
7450
|
const headerGapClass = layout === "desktop" ? "gap-5" : "gap-4";
|
|
7297
|
-
return /* @__PURE__ */ (0,
|
|
7298
|
-
/* @__PURE__ */ (0,
|
|
7299
|
-
/* @__PURE__ */ (0,
|
|
7300
|
-
/* @__PURE__ */ (0,
|
|
7301
|
-
intro && /* @__PURE__ */ (0,
|
|
7451
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: `w-full flex flex-col ${gapClass}`, children: [
|
|
7452
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: `flex flex-col ${headerGapClass} items-center w-full`, children: [
|
|
7453
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-sm text-on-subtle font-body", children: eyebrow }),
|
|
7454
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("h2", { className: headingClass, children: title }),
|
|
7455
|
+
intro && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("p", { className: "text-lg text-on-subtle font-body text-center", children: intro })
|
|
7302
7456
|
] }),
|
|
7303
|
-
/* @__PURE__ */ (0,
|
|
7457
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
7304
7458
|
Accordion,
|
|
7305
7459
|
{
|
|
7306
7460
|
type: "single",
|
|
7307
7461
|
collapsible: true,
|
|
7308
7462
|
defaultValue: defaultValue != null ? defaultValue : (_a = items[0]) == null ? void 0 : _a.value,
|
|
7309
7463
|
className: "w-full",
|
|
7310
|
-
children: items.map(({ value, question, answer }) => /* @__PURE__ */ (0,
|
|
7311
|
-
/* @__PURE__ */ (0,
|
|
7312
|
-
/* @__PURE__ */ (0,
|
|
7464
|
+
children: items.map(({ value, question, answer }) => /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(AccordionItem, { value, children: [
|
|
7465
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(AccordionTrigger, { className: "text-base font-medium font-body text-on-prominent hover:no-underline", children: question }),
|
|
7466
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(AccordionContent, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("p", { className: "text-sm text-on-subtle font-body pb-4", children: answer }) })
|
|
7313
7467
|
] }, value))
|
|
7314
7468
|
}
|
|
7315
7469
|
),
|
|
7316
|
-
helpCard && /* @__PURE__ */ (0,
|
|
7317
|
-
/* @__PURE__ */ (0,
|
|
7318
|
-
/* @__PURE__ */ (0,
|
|
7319
|
-
/* @__PURE__ */ (0,
|
|
7470
|
+
helpCard && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: `flex flex-col gap-6 items-center w-full bg-subtle rounded-xl ${helpCardPaddingClass}`, children: [
|
|
7471
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex flex-col gap-2 w-full", children: [
|
|
7472
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("h3", { className: helpTitleClass, children: helpCard.title }),
|
|
7473
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("p", { className: "text-base text-on-subtle font-body", children: helpCard.body })
|
|
7320
7474
|
] }),
|
|
7321
|
-
/* @__PURE__ */ (0,
|
|
7475
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Button, { size: "sm", onClick: helpCard.onCtaClick, children: helpCard.ctaLabel })
|
|
7322
7476
|
] })
|
|
7323
7477
|
] });
|
|
7324
7478
|
}
|
|
7325
7479
|
|
|
7326
7480
|
// components/blocks/hero-block.tsx
|
|
7327
|
-
var
|
|
7328
|
-
var
|
|
7481
|
+
var import_lucide_react27 = require("lucide-react");
|
|
7482
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
7329
7483
|
function HeroBlock({
|
|
7330
7484
|
layout = "centered",
|
|
7331
7485
|
tagline,
|
|
@@ -7336,31 +7490,31 @@ function HeroBlock({
|
|
|
7336
7490
|
image
|
|
7337
7491
|
}) {
|
|
7338
7492
|
if (layout === "centered") {
|
|
7339
|
-
return /* @__PURE__ */ (0,
|
|
7340
|
-
/* @__PURE__ */ (0,
|
|
7341
|
-
tagline && /* @__PURE__ */ (0,
|
|
7342
|
-
/* @__PURE__ */ (0,
|
|
7343
|
-
/* @__PURE__ */ (0,
|
|
7493
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "w-full border border-border-subtle rounded-xl overflow-hidden bg-prominent", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex flex-col items-center justify-center gap-8 px-layout-margin-inline py-24 max-w-2xl mx-auto text-center", children: [
|
|
7494
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex flex-col items-center gap-6 w-full", children: [
|
|
7495
|
+
tagline && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(TaglinePill, __spreadValues({}, tagline)),
|
|
7496
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("h1", { className: "text-5xl font-semibold font-display tracking-tight text-on-prominent text-center", children: heading }),
|
|
7497
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("p", { className: "text-lg font-body text-on-subtle text-center", children: body })
|
|
7344
7498
|
] }),
|
|
7345
|
-
/* @__PURE__ */ (0,
|
|
7499
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Button, { size: "sm", onClick: primaryCta.onClick, children: [
|
|
7346
7500
|
primaryCta.label,
|
|
7347
|
-
primaryCta.trailingArrow !== false && /* @__PURE__ */ (0,
|
|
7501
|
+
primaryCta.trailingArrow !== false && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_lucide_react27.ArrowRight, { className: "size-4" })
|
|
7348
7502
|
] })
|
|
7349
7503
|
] }) });
|
|
7350
7504
|
}
|
|
7351
|
-
return /* @__PURE__ */ (0,
|
|
7352
|
-
/* @__PURE__ */ (0,
|
|
7353
|
-
/* @__PURE__ */ (0,
|
|
7354
|
-
tagline && /* @__PURE__ */ (0,
|
|
7355
|
-
/* @__PURE__ */ (0,
|
|
7356
|
-
/* @__PURE__ */ (0,
|
|
7505
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "w-full border border-border-subtle rounded-xl overflow-hidden bg-prominent", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex flex-col min-[600px]:flex-row items-center gap-layout-gutter px-layout-margin-inline py-16 min-[600px]:py-24 max-w-5xl mx-auto", children: [
|
|
7506
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex flex-col gap-6 min-[600px]:gap-8 flex-1 min-w-0 items-center min-[600px]:items-start text-center min-[600px]:text-left w-full", children: [
|
|
7507
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex flex-col gap-5 min-[600px]:gap-6 items-center min-[600px]:items-start w-full", children: [
|
|
7508
|
+
tagline && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(TaglinePill, __spreadProps(__spreadValues({}, tagline), { responsive: true })),
|
|
7509
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("h1", { className: "text-4xl min-[600px]:text-5xl font-semibold font-display tracking-tight text-on-prominent", children: heading }),
|
|
7510
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("p", { className: "text-lg font-body text-on-subtle", children: body })
|
|
7357
7511
|
] }),
|
|
7358
|
-
/* @__PURE__ */ (0,
|
|
7359
|
-
/* @__PURE__ */ (0,
|
|
7360
|
-
secondaryCta && /* @__PURE__ */ (0,
|
|
7512
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex items-center justify-center min-[600px]:justify-start gap-2", children: [
|
|
7513
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Button, { size: "sm", onClick: primaryCta.onClick, children: primaryCta.label }),
|
|
7514
|
+
secondaryCta && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Button, { variant: "secondary", size: "sm", onClick: secondaryCta.onClick, children: secondaryCta.label })
|
|
7361
7515
|
] })
|
|
7362
7516
|
] }),
|
|
7363
|
-
/* @__PURE__ */ (0,
|
|
7517
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "w-full min-[600px]:flex-1 min-[600px]:min-w-0 aspect-square rounded-xl bg-subtle shrink-0", "aria-hidden": "true", children: image })
|
|
7364
7518
|
] }) });
|
|
7365
7519
|
}
|
|
7366
7520
|
function TaglinePill({
|
|
@@ -7368,25 +7522,25 @@ function TaglinePill({
|
|
|
7368
7522
|
suffix,
|
|
7369
7523
|
responsive
|
|
7370
7524
|
}) {
|
|
7371
|
-
return /* @__PURE__ */ (0,
|
|
7372
|
-
/* @__PURE__ */ (0,
|
|
7373
|
-
responsive && suffix ? /* @__PURE__ */ (0,
|
|
7374
|
-
/* @__PURE__ */ (0,
|
|
7525
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "inline-flex items-center gap-1.5 h-7 px-3 rounded-full border border-border-subtle bg-prominent shadow-sm shrink-0", children: [
|
|
7526
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "size-1.5 rounded-full bg-semantic-win shrink-0", "aria-hidden": "true" }),
|
|
7527
|
+
responsive && suffix ? /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("span", { className: "text-sm font-body text-on-prominent whitespace-nowrap", children: [
|
|
7528
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("span", { className: "hidden min-[600px]:inline", children: [
|
|
7375
7529
|
label,
|
|
7376
|
-
/* @__PURE__ */ (0,
|
|
7530
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-on-subtle", children: " \xB7 " })
|
|
7377
7531
|
] }),
|
|
7378
|
-
/* @__PURE__ */ (0,
|
|
7379
|
-
] }) : /* @__PURE__ */ (0,
|
|
7532
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-on-subtle min-[600px]:text-on-prominent", children: suffix })
|
|
7533
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("span", { className: "text-sm font-body text-on-prominent whitespace-nowrap", children: [
|
|
7380
7534
|
label,
|
|
7381
|
-
suffix && /* @__PURE__ */ (0,
|
|
7535
|
+
suffix && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-on-subtle", children: ` \xB7 ${suffix}` })
|
|
7382
7536
|
] }),
|
|
7383
|
-
/* @__PURE__ */ (0,
|
|
7537
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_lucide_react27.ArrowUpRight, { className: "size-4 text-on-subtle shrink-0", "aria-hidden": "true" })
|
|
7384
7538
|
] });
|
|
7385
7539
|
}
|
|
7386
7540
|
|
|
7387
7541
|
// components/blocks/auth-block.tsx
|
|
7388
|
-
var
|
|
7389
|
-
var
|
|
7542
|
+
var React16 = __toESM(require("react"), 1);
|
|
7543
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
7390
7544
|
function AuthBlock({
|
|
7391
7545
|
mode,
|
|
7392
7546
|
logoSrc,
|
|
@@ -7401,20 +7555,20 @@ function AuthBlock({
|
|
|
7401
7555
|
const ctaText = mode === "sign-in" ? "Sign in" : "Sign up";
|
|
7402
7556
|
const footerPrompt = mode === "sign-in" ? "Don't have an account?" : "Already have an account?";
|
|
7403
7557
|
const footerLinkLabel = mode === "sign-in" ? "Sign up" : "Log in";
|
|
7404
|
-
const [email, setEmail] =
|
|
7405
|
-
return /* @__PURE__ */ (0,
|
|
7406
|
-
/* @__PURE__ */ (0,
|
|
7407
|
-
/* @__PURE__ */ (0,
|
|
7408
|
-
/* @__PURE__ */ (0,
|
|
7558
|
+
const [email, setEmail] = React16.useState("");
|
|
7559
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex flex-col items-center gap-6 w-full", children: [
|
|
7560
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
7561
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("img", { src: logoSrc, alt: wordmark, className: "size-8 object-contain" }),
|
|
7562
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "font-display font-semibold text-base text-on-prominent tracking-tight", children: wordmark })
|
|
7409
7563
|
] }),
|
|
7410
|
-
/* @__PURE__ */ (0,
|
|
7411
|
-
/* @__PURE__ */ (0,
|
|
7412
|
-
/* @__PURE__ */ (0,
|
|
7413
|
-
/* @__PURE__ */ (0,
|
|
7414
|
-
/* @__PURE__ */ (0,
|
|
7415
|
-
/* @__PURE__ */ (0,
|
|
7564
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("h2", { className: "text-3xl font-bold font-display text-on-prominent text-center", children: headingText }),
|
|
7565
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "flex flex-col gap-3 w-full", children: providers.map((p) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ProviderButton, { provider: p }, p)) }),
|
|
7566
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex items-center gap-3 w-full", children: [
|
|
7567
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "flex-1 h-px bg-border-subtle" }),
|
|
7568
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "text-sm text-on-subtle font-body", children: "or" }),
|
|
7569
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "flex-1 h-px bg-border-subtle" })
|
|
7416
7570
|
] }),
|
|
7417
|
-
/* @__PURE__ */ (0,
|
|
7571
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "flex items-center gap-2 w-full", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
7418
7572
|
Input,
|
|
7419
7573
|
{
|
|
7420
7574
|
id: `${idPrefix}-email`,
|
|
@@ -7425,60 +7579,60 @@ function AuthBlock({
|
|
|
7425
7579
|
onChange: (e) => setEmail(e.target.value)
|
|
7426
7580
|
}
|
|
7427
7581
|
) }),
|
|
7428
|
-
/* @__PURE__ */ (0,
|
|
7582
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("p", { className: "text-sm text-on-subtle font-body text-left w-full", children: [
|
|
7429
7583
|
termsText,
|
|
7430
7584
|
", you agree to our",
|
|
7431
7585
|
" ",
|
|
7432
|
-
/* @__PURE__ */ (0,
|
|
7586
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Link, { size: "sm", href: "#", children: "Terms & Conditions" })
|
|
7433
7587
|
] }),
|
|
7434
|
-
/* @__PURE__ */ (0,
|
|
7435
|
-
/* @__PURE__ */ (0,
|
|
7588
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Button, { size: "md", className: "w-full", onClick: () => onSubmit == null ? void 0 : onSubmit({ email }), children: ctaText }),
|
|
7589
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("p", { className: "text-sm text-on-subtle font-body text-center", children: [
|
|
7436
7590
|
footerPrompt,
|
|
7437
7591
|
" ",
|
|
7438
|
-
/* @__PURE__ */ (0,
|
|
7592
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Link, { size: "sm", href: crossLinkHref, children: footerLinkLabel })
|
|
7439
7593
|
] })
|
|
7440
7594
|
] });
|
|
7441
7595
|
}
|
|
7442
7596
|
function ProviderButton({ provider }) {
|
|
7443
7597
|
switch (provider) {
|
|
7444
7598
|
case "google":
|
|
7445
|
-
return /* @__PURE__ */ (0,
|
|
7446
|
-
/* @__PURE__ */ (0,
|
|
7447
|
-
/* @__PURE__ */ (0,
|
|
7448
|
-
/* @__PURE__ */ (0,
|
|
7449
|
-
/* @__PURE__ */ (0,
|
|
7450
|
-
/* @__PURE__ */ (0,
|
|
7599
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Button, { variant: "secondary", size: "lg", className: "w-full", children: [
|
|
7600
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("svg", { width: "18", height: "18", viewBox: "0 0 18 18", "aria-hidden": "true", fill: "none", className: "shrink-0", children: [
|
|
7601
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("path", { d: "M17.64 9.205c0-.639-.057-1.252-.164-1.841H9v3.481h4.844a4.14 4.14 0 0 1-1.796 2.716v2.259h2.908c1.702-1.567 2.684-3.875 2.684-6.615Z", fill: "#4285F4" }),
|
|
7602
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("path", { d: "M9 18c2.43 0 4.467-.806 5.956-2.18l-2.908-2.259c-.806.54-1.837.86-3.048.86-2.344 0-4.328-1.584-5.036-3.711H.957v2.332A8.997 8.997 0 0 0 9 18Z", fill: "#34A853" }),
|
|
7603
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("path", { d: "M3.964 10.71A5.41 5.41 0 0 1 3.682 9c0-.593.102-1.17.282-1.71V4.958H.957A8.996 8.996 0 0 0 0 9c0 1.452.348 2.827.957 4.042l3.007-2.332Z", fill: "#FBBC05" }),
|
|
7604
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("path", { d: "M9 3.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C13.463.891 11.426 0 9 0A8.997 8.997 0 0 0 .957 4.958L3.964 7.29C4.672 5.163 6.656 3.58 9 3.58Z", fill: "#EA4335" })
|
|
7451
7605
|
] }),
|
|
7452
7606
|
"Continue with Google"
|
|
7453
7607
|
] });
|
|
7454
7608
|
case "telegram":
|
|
7455
|
-
return /* @__PURE__ */ (0,
|
|
7456
|
-
/* @__PURE__ */ (0,
|
|
7457
|
-
/* @__PURE__ */ (0,
|
|
7458
|
-
/* @__PURE__ */ (0,
|
|
7459
|
-
/* @__PURE__ */ (0,
|
|
7609
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Button, { variant: "secondary", size: "lg", className: "w-full", children: [
|
|
7610
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("svg", { width: "18", height: "18", viewBox: "0 0 18 18", "aria-hidden": "true", fill: "none", className: "shrink-0", children: [
|
|
7611
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("circle", { cx: "9", cy: "9", r: "9", fill: "#29B6F6" }),
|
|
7612
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("path", { d: "M13.5 5.25 11.25 13.5l-2.25-3-3 1.5 1.5-5.25 6-1.5Z", fill: "white", opacity: "0.3" }),
|
|
7613
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("path", { d: "m4.5 8.625 7.5-3-1.125 7.125-2.625-2.25-1.5 1.5.375-3.375Z", fill: "white" })
|
|
7460
7614
|
] }),
|
|
7461
7615
|
"Continue with Telegram"
|
|
7462
7616
|
] });
|
|
7463
7617
|
case "x":
|
|
7464
|
-
return /* @__PURE__ */ (0,
|
|
7465
|
-
/* @__PURE__ */ (0,
|
|
7618
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Button, { variant: "secondary", size: "lg", className: "w-full", children: [
|
|
7619
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("svg", { width: "18", height: "18", viewBox: "0 0 18 18", "aria-hidden": "true", fill: "currentColor", className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("path", { d: "M13.955 2.25h2.423L10.977 8.28 17.25 15.75h-4.812l-3.913-5.116-4.477 5.116H1.645l5.703-6.52L1.125 2.25h4.934l3.538 4.678 4.358-4.678Zm-.85 12.105h1.343L5.025 3.627H3.579l9.526 10.728Z" }) }),
|
|
7466
7620
|
"Continue with X (Twitter)"
|
|
7467
7621
|
] });
|
|
7468
7622
|
}
|
|
7469
7623
|
}
|
|
7470
7624
|
|
|
7471
7625
|
// components/blocks/navbar-block.tsx
|
|
7472
|
-
var
|
|
7473
|
-
var
|
|
7474
|
-
var
|
|
7626
|
+
var React17 = __toESM(require("react"), 1);
|
|
7627
|
+
var import_lucide_react28 = require("lucide-react");
|
|
7628
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
7475
7629
|
function NavBarBlock({ brand, links, signIn, signUp }) {
|
|
7476
7630
|
var _a, _b, _c, _d;
|
|
7477
|
-
const [mobileMenuOpen, setMobileMenuOpen] =
|
|
7478
|
-
return /* @__PURE__ */ (0,
|
|
7479
|
-
/* @__PURE__ */ (0,
|
|
7480
|
-
/* @__PURE__ */ (0,
|
|
7481
|
-
/* @__PURE__ */ (0,
|
|
7631
|
+
const [mobileMenuOpen, setMobileMenuOpen] = React17.useState(false);
|
|
7632
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "w-full border border-border-subtle rounded-md overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("nav", { className: "bg-prominent", children: [
|
|
7633
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex items-center justify-between px-layout-margin-inline py-3", children: [
|
|
7634
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex items-center gap-6", children: [
|
|
7635
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
7482
7636
|
"img",
|
|
7483
7637
|
{
|
|
7484
7638
|
src: brand.fullLogoSrc,
|
|
@@ -7486,7 +7640,7 @@ function NavBarBlock({ brand, links, signIn, signUp }) {
|
|
|
7486
7640
|
className: "hidden min-[600px]:block h-7 w-auto shrink-0 object-contain object-left"
|
|
7487
7641
|
}
|
|
7488
7642
|
),
|
|
7489
|
-
/* @__PURE__ */ (0,
|
|
7643
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
7490
7644
|
"img",
|
|
7491
7645
|
{
|
|
7492
7646
|
src: brand.iconLogoSrc,
|
|
@@ -7494,13 +7648,13 @@ function NavBarBlock({ brand, links, signIn, signUp }) {
|
|
|
7494
7648
|
className: "min-[600px]:hidden size-7 shrink-0 object-contain"
|
|
7495
7649
|
}
|
|
7496
7650
|
),
|
|
7497
|
-
/* @__PURE__ */ (0,
|
|
7651
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "hidden min-[600px]:flex items-center gap-1", children: links.map((l) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Button, { variant: "tertiary", size: "sm", onClick: l.onClick, children: l.label }, l.label)) })
|
|
7498
7652
|
] }),
|
|
7499
|
-
/* @__PURE__ */ (0,
|
|
7500
|
-
signIn && /* @__PURE__ */ (0,
|
|
7501
|
-
signUp && /* @__PURE__ */ (0,
|
|
7653
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "hidden min-[600px]:flex items-center gap-2", children: [
|
|
7654
|
+
signIn && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Button, { variant: "tertiary", size: "sm", onClick: signIn.onClick, children: (_a = signIn.label) != null ? _a : "Sign in" }),
|
|
7655
|
+
signUp && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Button, { size: "sm", onClick: signUp.onClick, children: (_b = signUp.label) != null ? _b : "Sign up" })
|
|
7502
7656
|
] }),
|
|
7503
|
-
/* @__PURE__ */ (0,
|
|
7657
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
7504
7658
|
Button,
|
|
7505
7659
|
{
|
|
7506
7660
|
variant: "tertiary",
|
|
@@ -7509,12 +7663,12 @@ function NavBarBlock({ brand, links, signIn, signUp }) {
|
|
|
7509
7663
|
"aria-expanded": mobileMenuOpen,
|
|
7510
7664
|
className: "min-[600px]:hidden",
|
|
7511
7665
|
onClick: () => setMobileMenuOpen((prev) => !prev),
|
|
7512
|
-
children: mobileMenuOpen ? /* @__PURE__ */ (0,
|
|
7666
|
+
children: mobileMenuOpen ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_lucide_react28.X, { className: "size-4" }) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_lucide_react28.Menu, { className: "size-4" })
|
|
7513
7667
|
}
|
|
7514
7668
|
)
|
|
7515
7669
|
] }),
|
|
7516
|
-
mobileMenuOpen && /* @__PURE__ */ (0,
|
|
7517
|
-
links.map((l) => /* @__PURE__ */ (0,
|
|
7670
|
+
mobileMenuOpen && /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "min-[600px]:hidden flex flex-col border-t border-border-subtle px-layout-margin-inline py-3 gap-1", children: [
|
|
7671
|
+
links.map((l) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
7518
7672
|
Button,
|
|
7519
7673
|
{
|
|
7520
7674
|
variant: "tertiary",
|
|
@@ -7525,18 +7679,18 @@ function NavBarBlock({ brand, links, signIn, signUp }) {
|
|
|
7525
7679
|
},
|
|
7526
7680
|
l.label
|
|
7527
7681
|
)),
|
|
7528
|
-
(signIn || signUp) && /* @__PURE__ */ (0,
|
|
7529
|
-
signIn && /* @__PURE__ */ (0,
|
|
7530
|
-
signUp && /* @__PURE__ */ (0,
|
|
7682
|
+
(signIn || signUp) && /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex flex-col gap-2 pt-3 mt-2 border-t border-border-subtle", children: [
|
|
7683
|
+
signIn && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Button, { variant: "secondary", size: "sm", className: "w-full", onClick: signIn.onClick, children: (_c = signIn.label) != null ? _c : "Sign in" }),
|
|
7684
|
+
signUp && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Button, { size: "sm", className: "w-full", onClick: signUp.onClick, children: (_d = signUp.label) != null ? _d : "Sign up" })
|
|
7531
7685
|
] })
|
|
7532
7686
|
] })
|
|
7533
7687
|
] }) });
|
|
7534
7688
|
}
|
|
7535
7689
|
|
|
7536
7690
|
// components/blocks/open-positions-block.tsx
|
|
7537
|
-
var
|
|
7538
|
-
var
|
|
7539
|
-
var
|
|
7691
|
+
var React18 = __toESM(require("react"), 1);
|
|
7692
|
+
var import_lucide_react29 = require("lucide-react");
|
|
7693
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
7540
7694
|
function OpenPositionsBlock({
|
|
7541
7695
|
trigger,
|
|
7542
7696
|
sheetTitle = "Positions",
|
|
@@ -7545,28 +7699,28 @@ function OpenPositionsBlock({
|
|
|
7545
7699
|
emptyState
|
|
7546
7700
|
}) {
|
|
7547
7701
|
const isMobile = useIsMobile();
|
|
7548
|
-
const body = positions.length === 0 ? emptyState != null ? emptyState : /* @__PURE__ */ (0,
|
|
7702
|
+
const body = positions.length === 0 ? emptyState != null ? emptyState : /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(DefaultEmptyState, { onViewHistory }) : /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(PositionsList, { positions, onViewHistory });
|
|
7549
7703
|
if (isMobile) {
|
|
7550
|
-
return /* @__PURE__ */ (0,
|
|
7551
|
-
/* @__PURE__ */ (0,
|
|
7552
|
-
/* @__PURE__ */ (0,
|
|
7553
|
-
/* @__PURE__ */ (0,
|
|
7554
|
-
/* @__PURE__ */ (0,
|
|
7555
|
-
/* @__PURE__ */ (0,
|
|
7704
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Drawer, { children: [
|
|
7705
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(DrawerTrigger, { asChild: true, children: trigger }),
|
|
7706
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(DrawerContent, { className: "p-0 flex flex-col", children: [
|
|
7707
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(DrawerHeader, { className: "flex-row items-center justify-between px-4 py-3 shrink-0 text-left", children: [
|
|
7708
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(DrawerTitle, { className: "text-base font-semibold font-display text-on-prominent", children: sheetTitle }),
|
|
7709
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(DrawerClose, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(NavigationButton, { size: "sm", "aria-label": "Close", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_lucide_react29.X, {}) }) })
|
|
7556
7710
|
] }),
|
|
7557
|
-
/* @__PURE__ */ (0,
|
|
7711
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Separator, {}),
|
|
7558
7712
|
body
|
|
7559
7713
|
] })
|
|
7560
7714
|
] });
|
|
7561
7715
|
}
|
|
7562
|
-
return /* @__PURE__ */ (0,
|
|
7563
|
-
/* @__PURE__ */ (0,
|
|
7564
|
-
/* @__PURE__ */ (0,
|
|
7565
|
-
/* @__PURE__ */ (0,
|
|
7566
|
-
/* @__PURE__ */ (0,
|
|
7567
|
-
/* @__PURE__ */ (0,
|
|
7716
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Sheet, { children: [
|
|
7717
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(SheetTrigger, { asChild: true, children: trigger }),
|
|
7718
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(SheetContent, { side: "right", showCloseButton: false, className: "p-0 flex flex-col w-80 sm:max-w-xs", children: [
|
|
7719
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(SheetHeader, { className: "flex-row items-center justify-between px-4 py-3 shrink-0", children: [
|
|
7720
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(SheetTitle, { className: "text-base font-semibold font-display text-on-prominent", children: sheetTitle }),
|
|
7721
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(SheetClose, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(NavigationButton, { size: "sm", "aria-label": "Close", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_lucide_react29.X, {}) }) })
|
|
7568
7722
|
] }),
|
|
7569
|
-
/* @__PURE__ */ (0,
|
|
7723
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Separator, {}),
|
|
7570
7724
|
body
|
|
7571
7725
|
] })
|
|
7572
7726
|
] });
|
|
@@ -7575,26 +7729,26 @@ function PositionsList({
|
|
|
7575
7729
|
positions,
|
|
7576
7730
|
onViewHistory
|
|
7577
7731
|
}) {
|
|
7578
|
-
return /* @__PURE__ */ (0,
|
|
7579
|
-
/* @__PURE__ */ (0,
|
|
7580
|
-
/* @__PURE__ */ (0,
|
|
7581
|
-
i < positions.length - 1 && /* @__PURE__ */ (0,
|
|
7732
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex flex-col flex-1 min-h-0", children: [
|
|
7733
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(ItemGroup, { className: "min-h-0 overflow-y-auto", children: positions.map((pos, i) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(React18.Fragment, { children: [
|
|
7734
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(PositionRow, { position: pos }),
|
|
7735
|
+
i < positions.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "h-px mx-4 bg-border-subtle" })
|
|
7582
7736
|
] }, i)) }),
|
|
7583
|
-
/* @__PURE__ */ (0,
|
|
7584
|
-
/* @__PURE__ */ (0,
|
|
7737
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Separator, {}),
|
|
7738
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "shrink-0 flex justify-center py-4", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Button, { variant: "tertiary", size: "md", onClick: onViewHistory, children: "View transaction history" }) })
|
|
7585
7739
|
] });
|
|
7586
7740
|
}
|
|
7587
7741
|
function PositionRow({ position }) {
|
|
7588
7742
|
const { label, suffix } = positionTitleParts(position);
|
|
7589
|
-
return /* @__PURE__ */ (0,
|
|
7590
|
-
/* @__PURE__ */ (0,
|
|
7591
|
-
/* @__PURE__ */ (0,
|
|
7592
|
-
/* @__PURE__ */ (0,
|
|
7593
|
-
suffix && /* @__PURE__ */ (0,
|
|
7743
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Item, { size: "sm", children: [
|
|
7744
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(ItemContent, { children: [
|
|
7745
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(ItemTitle, { children: [
|
|
7746
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "text-on-prominent", children: label }),
|
|
7747
|
+
suffix && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "text-on-subtle", children: ` ${suffix}` })
|
|
7594
7748
|
] }),
|
|
7595
|
-
/* @__PURE__ */ (0,
|
|
7749
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(MetaNote, { market: position.market, duration: position.duration })
|
|
7596
7750
|
] }),
|
|
7597
|
-
/* @__PURE__ */ (0,
|
|
7751
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(ItemActions, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(PnlMeta, { pnl: position.pnl, win: position.win, stake: position.stake }) })
|
|
7598
7752
|
] });
|
|
7599
7753
|
}
|
|
7600
7754
|
var DIGITS_TYPE_LABEL = {
|
|
@@ -7620,23 +7774,23 @@ function positionTitleParts(p) {
|
|
|
7620
7774
|
}
|
|
7621
7775
|
}
|
|
7622
7776
|
function MetaNote({ market, duration }) {
|
|
7623
|
-
return /* @__PURE__ */ (0,
|
|
7777
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("span", { className: "text-xs text-on-subtle whitespace-nowrap", children: [
|
|
7624
7778
|
market,
|
|
7625
7779
|
" \xB7 ",
|
|
7626
7780
|
duration
|
|
7627
7781
|
] });
|
|
7628
7782
|
}
|
|
7629
7783
|
function PnlMeta({ pnl, win, stake }) {
|
|
7630
|
-
return /* @__PURE__ */ (0,
|
|
7631
|
-
/* @__PURE__ */ (0,
|
|
7632
|
-
/* @__PURE__ */ (0,
|
|
7784
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex flex-col items-end gap-0.5", children: [
|
|
7785
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: `font-display font-bold tabular-nums text-base ${win ? "text-semantic-win" : "text-semantic-loss"}`, children: pnl }),
|
|
7786
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "tabular-nums text-xs text-on-subtle", children: stake })
|
|
7633
7787
|
] });
|
|
7634
7788
|
}
|
|
7635
7789
|
function DefaultEmptyState({ onViewHistory }) {
|
|
7636
|
-
return /* @__PURE__ */ (0,
|
|
7637
|
-
/* @__PURE__ */ (0,
|
|
7638
|
-
/* @__PURE__ */ (0,
|
|
7639
|
-
/* @__PURE__ */ (0,
|
|
7790
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Empty, { className: "flex min-h-0 flex-1 flex-col justify-center border-none rounded-none p-6 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(EmptyHeader, { className: "gap-4", children: [
|
|
7791
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(EmptyMedia, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_lucide_react29.History, { className: "size-8 text-on-subtle" }) }),
|
|
7792
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(EmptyTitle, { className: "text-base leading-6 font-semibold tracking-normal body-md text-on-subtle", children: "No trades yet." }),
|
|
7793
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Button, { variant: "tertiary", size: "md", onClick: onViewHistory, children: "View transaction history" })
|
|
7640
7794
|
] }) });
|
|
7641
7795
|
}
|
|
7642
7796
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -7667,6 +7821,7 @@ function DefaultEmptyState({ onViewHistory }) {
|
|
|
7667
7821
|
AvatarGroupCount,
|
|
7668
7822
|
AvatarImage,
|
|
7669
7823
|
Badge,
|
|
7824
|
+
Banner,
|
|
7670
7825
|
Breadcrumb,
|
|
7671
7826
|
BreadcrumbEllipsis,
|
|
7672
7827
|
BreadcrumbItem,
|