@trading-game/design-intelligence-layer 0.16.7 → 0.16.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -10
- package/dist/index.cjs +757 -670
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -3
- package/dist/index.d.ts +11 -3
- package/dist/index.js +636 -551
- package/dist/index.js.map +1 -1
- package/guides/design-system-guide/trading-game-ds-guide.md +6 -5
- package/guides/rules/design-system-consuming-project.mdc +7 -1
- package/package.json +1 -1
- package/src/styles.css +0 -2
package/dist/index.cjs
CHANGED
|
@@ -116,6 +116,7 @@ __export(index_exports, {
|
|
|
116
116
|
ChartTooltip: () => ChartTooltip,
|
|
117
117
|
ChartTooltipContent: () => ChartTooltipContent,
|
|
118
118
|
Checkbox: () => Checkbox,
|
|
119
|
+
Chip: () => Chip,
|
|
119
120
|
Collapsible: () => Collapsible,
|
|
120
121
|
CollapsibleContent: () => CollapsibleContent,
|
|
121
122
|
CollapsibleTrigger: () => CollapsibleTrigger,
|
|
@@ -376,6 +377,7 @@ __export(index_exports, {
|
|
|
376
377
|
alertVariants: () => alertVariants,
|
|
377
378
|
badgeVariants: () => badgeVariants,
|
|
378
379
|
buttonVariants: () => buttonVariants,
|
|
380
|
+
chipVariants: () => chipVariants,
|
|
379
381
|
cn: () => cn,
|
|
380
382
|
inputVariants: () => inputVariants,
|
|
381
383
|
linkVariants: () => linkVariants,
|
|
@@ -1912,10 +1914,49 @@ function CarouselNext(_a) {
|
|
|
1912
1914
|
);
|
|
1913
1915
|
}
|
|
1914
1916
|
|
|
1917
|
+
// components/ui/chip.tsx
|
|
1918
|
+
var import_class_variance_authority4 = require("class-variance-authority");
|
|
1919
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1920
|
+
var chipVariants = (0, import_class_variance_authority4.cva)(
|
|
1921
|
+
"inline-flex w-fit items-center justify-center rounded-full font-body whitespace-nowrap transition-colors outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:border disabled:border-border-subtle disabled:bg-transparent disabled:text-on-disabled",
|
|
1922
|
+
{
|
|
1923
|
+
variants: {
|
|
1924
|
+
size: {
|
|
1925
|
+
md: "h-10 px-4 text-sm",
|
|
1926
|
+
sm: "h-8 px-3 text-xs"
|
|
1927
|
+
}
|
|
1928
|
+
},
|
|
1929
|
+
defaultVariants: {
|
|
1930
|
+
size: "md"
|
|
1931
|
+
}
|
|
1932
|
+
}
|
|
1933
|
+
);
|
|
1934
|
+
function Chip(_a) {
|
|
1935
|
+
var _b = _a, { children, selected = false, size, className, disabled } = _b, props = __objRest(_b, ["children", "selected", "size", "className", "disabled"]);
|
|
1936
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1937
|
+
"button",
|
|
1938
|
+
__spreadProps(__spreadValues({
|
|
1939
|
+
type: "button",
|
|
1940
|
+
"aria-pressed": selected,
|
|
1941
|
+
"data-slot": "chip",
|
|
1942
|
+
"data-size": size,
|
|
1943
|
+
"data-selected": selected || void 0,
|
|
1944
|
+
disabled,
|
|
1945
|
+
className: cn(
|
|
1946
|
+
chipVariants({ size }),
|
|
1947
|
+
selected ? "border-[1.5px] border-primary bg-primary/10 text-primary font-semibold pointer-events-none cursor-default" : "border border-border-subtle bg-transparent text-on-prominent hover:bg-secondary-hover active:bg-secondary-hover/80",
|
|
1948
|
+
className
|
|
1949
|
+
)
|
|
1950
|
+
}, props), {
|
|
1951
|
+
children
|
|
1952
|
+
})
|
|
1953
|
+
);
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1915
1956
|
// components/ui/chart.tsx
|
|
1916
1957
|
var React5 = __toESM(require("react"), 1);
|
|
1917
1958
|
var RechartsPrimitive = __toESM(require("recharts"), 1);
|
|
1918
|
-
var
|
|
1959
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1919
1960
|
var THEMES = { light: "" };
|
|
1920
1961
|
var ChartContext = React5.createContext(null);
|
|
1921
1962
|
function useChart() {
|
|
@@ -1939,7 +1980,7 @@ function ChartContainer(_a) {
|
|
|
1939
1980
|
]);
|
|
1940
1981
|
const uniqueId = React5.useId();
|
|
1941
1982
|
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
1942
|
-
return /* @__PURE__ */ (0,
|
|
1983
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
1943
1984
|
"div",
|
|
1944
1985
|
__spreadProps(__spreadValues({
|
|
1945
1986
|
"data-slot": "chart",
|
|
@@ -1950,8 +1991,8 @@ function ChartContainer(_a) {
|
|
|
1950
1991
|
)
|
|
1951
1992
|
}, props), {
|
|
1952
1993
|
children: [
|
|
1953
|
-
/* @__PURE__ */ (0,
|
|
1954
|
-
/* @__PURE__ */ (0,
|
|
1994
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ChartStyle, { id: chartId, config }),
|
|
1995
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(RechartsPrimitive.ResponsiveContainer, { children })
|
|
1955
1996
|
]
|
|
1956
1997
|
})
|
|
1957
1998
|
) });
|
|
@@ -1963,7 +2004,7 @@ var ChartStyle = ({ id, config }) => {
|
|
|
1963
2004
|
if (!colorConfig.length) {
|
|
1964
2005
|
return null;
|
|
1965
2006
|
}
|
|
1966
|
-
return /* @__PURE__ */ (0,
|
|
2007
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1967
2008
|
"style",
|
|
1968
2009
|
{
|
|
1969
2010
|
dangerouslySetInnerHTML: {
|
|
@@ -2009,12 +2050,12 @@ function ChartTooltipContent({
|
|
|
2009
2050
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
2010
2051
|
const value = !labelKey && typeof label === "string" ? ((_a = config[label]) == null ? void 0 : _a.label) || label : itemConfig == null ? void 0 : itemConfig.label;
|
|
2011
2052
|
if (labelFormatter) {
|
|
2012
|
-
return /* @__PURE__ */ (0,
|
|
2053
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: cn("font-medium", labelClassName), children: labelFormatter(value, payload) });
|
|
2013
2054
|
}
|
|
2014
2055
|
if (!value) {
|
|
2015
2056
|
return null;
|
|
2016
2057
|
}
|
|
2017
|
-
return /* @__PURE__ */ (0,
|
|
2058
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: cn("font-medium", labelClassName), children: value });
|
|
2018
2059
|
}, [
|
|
2019
2060
|
label,
|
|
2020
2061
|
labelFormatter,
|
|
@@ -2028,7 +2069,7 @@ function ChartTooltipContent({
|
|
|
2028
2069
|
return null;
|
|
2029
2070
|
}
|
|
2030
2071
|
const nestLabel = payload.length === 1 && indicator !== "dot";
|
|
2031
|
-
return /* @__PURE__ */ (0,
|
|
2072
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
2032
2073
|
"div",
|
|
2033
2074
|
{
|
|
2034
2075
|
className: cn(
|
|
@@ -2037,19 +2078,19 @@ function ChartTooltipContent({
|
|
|
2037
2078
|
),
|
|
2038
2079
|
children: [
|
|
2039
2080
|
!nestLabel ? tooltipLabel : null,
|
|
2040
|
-
/* @__PURE__ */ (0,
|
|
2081
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "grid gap-1.5", children: payload.filter((item) => item.type !== "none").map((item, index) => {
|
|
2041
2082
|
const key = `${nameKey || item.name || item.dataKey || "value"}`;
|
|
2042
2083
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
2043
2084
|
const indicatorColor = color || item.payload.fill || item.color;
|
|
2044
|
-
return /* @__PURE__ */ (0,
|
|
2085
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
2045
2086
|
"div",
|
|
2046
2087
|
{
|
|
2047
2088
|
className: cn(
|
|
2048
2089
|
"flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-on-subtle",
|
|
2049
2090
|
indicator === "dot" && "items-center"
|
|
2050
2091
|
),
|
|
2051
|
-
children: formatter && (item == null ? void 0 : item.value) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ (0,
|
|
2052
|
-
(itemConfig == null ? void 0 : itemConfig.icon) ? /* @__PURE__ */ (0,
|
|
2092
|
+
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_runtime15.jsxs)(import_jsx_runtime15.Fragment, { children: [
|
|
2093
|
+
(itemConfig == null ? void 0 : itemConfig.icon) ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
2053
2094
|
"div",
|
|
2054
2095
|
{
|
|
2055
2096
|
className: cn(
|
|
@@ -2067,7 +2108,7 @@ function ChartTooltipContent({
|
|
|
2067
2108
|
}
|
|
2068
2109
|
}
|
|
2069
2110
|
),
|
|
2070
|
-
/* @__PURE__ */ (0,
|
|
2111
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
2071
2112
|
"div",
|
|
2072
2113
|
{
|
|
2073
2114
|
className: cn(
|
|
@@ -2075,11 +2116,11 @@ function ChartTooltipContent({
|
|
|
2075
2116
|
nestLabel ? "items-end" : "items-center"
|
|
2076
2117
|
),
|
|
2077
2118
|
children: [
|
|
2078
|
-
/* @__PURE__ */ (0,
|
|
2119
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "grid gap-1.5", children: [
|
|
2079
2120
|
nestLabel ? tooltipLabel : null,
|
|
2080
|
-
/* @__PURE__ */ (0,
|
|
2121
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "text-on-subtle", children: (itemConfig == null ? void 0 : itemConfig.label) || item.name })
|
|
2081
2122
|
] }),
|
|
2082
|
-
item.value && /* @__PURE__ */ (0,
|
|
2123
|
+
item.value && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "font-mono font-medium text-on-prominent tabular-nums", children: item.value.toLocaleString() })
|
|
2083
2124
|
]
|
|
2084
2125
|
}
|
|
2085
2126
|
)
|
|
@@ -2104,7 +2145,7 @@ function ChartLegendContent({
|
|
|
2104
2145
|
if (!(payload == null ? void 0 : payload.length)) {
|
|
2105
2146
|
return null;
|
|
2106
2147
|
}
|
|
2107
|
-
return /* @__PURE__ */ (0,
|
|
2148
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
2108
2149
|
"div",
|
|
2109
2150
|
{
|
|
2110
2151
|
className: cn(
|
|
@@ -2115,14 +2156,14 @@ function ChartLegendContent({
|
|
|
2115
2156
|
children: payload.filter((item) => item.type !== "none").map((item) => {
|
|
2116
2157
|
const key = `${nameKey || item.dataKey || "value"}`;
|
|
2117
2158
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
2118
|
-
return /* @__PURE__ */ (0,
|
|
2159
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
2119
2160
|
"div",
|
|
2120
2161
|
{
|
|
2121
2162
|
className: cn(
|
|
2122
2163
|
"flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-on-subtle"
|
|
2123
2164
|
),
|
|
2124
2165
|
children: [
|
|
2125
|
-
(itemConfig == null ? void 0 : itemConfig.icon) && !hideIcon ? /* @__PURE__ */ (0,
|
|
2166
|
+
(itemConfig == null ? void 0 : itemConfig.icon) && !hideIcon ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(itemConfig.icon, {}) : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
2126
2167
|
"div",
|
|
2127
2168
|
{
|
|
2128
2169
|
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
@@ -2157,14 +2198,14 @@ function getPayloadConfigFromPayload(config, payload, key) {
|
|
|
2157
2198
|
// components/ui/checkbox.tsx
|
|
2158
2199
|
var import_lucide_react7 = require("lucide-react");
|
|
2159
2200
|
var import_radix_ui8 = require("radix-ui");
|
|
2160
|
-
var
|
|
2201
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
2161
2202
|
function Checkbox(_a) {
|
|
2162
2203
|
var _b = _a, {
|
|
2163
2204
|
className
|
|
2164
2205
|
} = _b, props = __objRest(_b, [
|
|
2165
2206
|
"className"
|
|
2166
2207
|
]);
|
|
2167
|
-
return /* @__PURE__ */ (0,
|
|
2208
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
2168
2209
|
import_radix_ui8.Checkbox.Root,
|
|
2169
2210
|
__spreadProps(__spreadValues({
|
|
2170
2211
|
"data-slot": "checkbox",
|
|
@@ -2173,12 +2214,12 @@ function Checkbox(_a) {
|
|
|
2173
2214
|
className
|
|
2174
2215
|
)
|
|
2175
2216
|
}, props), {
|
|
2176
|
-
children: /* @__PURE__ */ (0,
|
|
2217
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
2177
2218
|
import_radix_ui8.Checkbox.Indicator,
|
|
2178
2219
|
{
|
|
2179
2220
|
"data-slot": "checkbox-indicator",
|
|
2180
2221
|
className: "grid place-content-center text-current transition-none",
|
|
2181
|
-
children: /* @__PURE__ */ (0,
|
|
2222
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_lucide_react7.CheckIcon, { className: "size-3.5" })
|
|
2182
2223
|
}
|
|
2183
2224
|
)
|
|
2184
2225
|
})
|
|
@@ -2187,14 +2228,14 @@ function Checkbox(_a) {
|
|
|
2187
2228
|
|
|
2188
2229
|
// components/ui/collapsible.tsx
|
|
2189
2230
|
var import_radix_ui9 = require("radix-ui");
|
|
2190
|
-
var
|
|
2231
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
2191
2232
|
function Collapsible(_a) {
|
|
2192
2233
|
var props = __objRest(_a, []);
|
|
2193
|
-
return /* @__PURE__ */ (0,
|
|
2234
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_radix_ui9.Collapsible.Root, __spreadValues({ "data-slot": "collapsible" }, props));
|
|
2194
2235
|
}
|
|
2195
2236
|
function CollapsibleTrigger(_a) {
|
|
2196
2237
|
var props = __objRest(_a, []);
|
|
2197
|
-
return /* @__PURE__ */ (0,
|
|
2238
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2198
2239
|
import_radix_ui9.Collapsible.CollapsibleTrigger,
|
|
2199
2240
|
__spreadValues({
|
|
2200
2241
|
"data-slot": "collapsible-trigger"
|
|
@@ -2203,7 +2244,7 @@ function CollapsibleTrigger(_a) {
|
|
|
2203
2244
|
}
|
|
2204
2245
|
function CollapsibleContent(_a) {
|
|
2205
2246
|
var props = __objRest(_a, []);
|
|
2206
|
-
return /* @__PURE__ */ (0,
|
|
2247
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2207
2248
|
import_radix_ui9.Collapsible.CollapsibleContent,
|
|
2208
2249
|
__spreadValues({
|
|
2209
2250
|
"data-slot": "collapsible-content"
|
|
@@ -2218,12 +2259,12 @@ var import_lucide_react8 = require("lucide-react");
|
|
|
2218
2259
|
|
|
2219
2260
|
// components/ui/input-group.tsx
|
|
2220
2261
|
var React6 = __toESM(require("react"), 1);
|
|
2221
|
-
var
|
|
2262
|
+
var import_class_variance_authority6 = require("class-variance-authority");
|
|
2222
2263
|
|
|
2223
2264
|
// components/ui/input.tsx
|
|
2224
|
-
var
|
|
2225
|
-
var
|
|
2226
|
-
var inputVariants = (0,
|
|
2265
|
+
var import_class_variance_authority5 = require("class-variance-authority");
|
|
2266
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
2267
|
+
var inputVariants = (0, import_class_variance_authority5.cva)(
|
|
2227
2268
|
[
|
|
2228
2269
|
"w-full min-w-0 rounded-sm border border-border-subtle bg-white/5",
|
|
2229
2270
|
"text-on-prominent font-body shadow-xs transition-[color,box-shadow] outline-none",
|
|
@@ -2256,7 +2297,7 @@ function Input(_a) {
|
|
|
2256
2297
|
"type",
|
|
2257
2298
|
"size"
|
|
2258
2299
|
]);
|
|
2259
|
-
return /* @__PURE__ */ (0,
|
|
2300
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2260
2301
|
"input",
|
|
2261
2302
|
__spreadValues({
|
|
2262
2303
|
type,
|
|
@@ -2268,10 +2309,10 @@ function Input(_a) {
|
|
|
2268
2309
|
}
|
|
2269
2310
|
|
|
2270
2311
|
// components/ui/textarea.tsx
|
|
2271
|
-
var
|
|
2312
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
2272
2313
|
function Textarea(_a) {
|
|
2273
2314
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2274
|
-
return /* @__PURE__ */ (0,
|
|
2315
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2275
2316
|
"textarea",
|
|
2276
2317
|
__spreadValues({
|
|
2277
2318
|
"data-slot": "textarea",
|
|
@@ -2284,9 +2325,9 @@ function Textarea(_a) {
|
|
|
2284
2325
|
}
|
|
2285
2326
|
|
|
2286
2327
|
// components/ui/input-group.tsx
|
|
2287
|
-
var
|
|
2328
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
2288
2329
|
var InputGroupSizeContext = React6.createContext("md");
|
|
2289
|
-
var inputGroupVariants = (0,
|
|
2330
|
+
var inputGroupVariants = (0, import_class_variance_authority6.cva)(
|
|
2290
2331
|
[
|
|
2291
2332
|
"group/input-group relative flex w-full items-center rounded-sm border border-border-subtle bg-white/5",
|
|
2292
2333
|
"shadow-xs transition-[color,box-shadow] outline-none min-w-0 has-[>textarea]:h-auto",
|
|
@@ -2323,7 +2364,7 @@ function InputGroup(_a) {
|
|
|
2323
2364
|
"className",
|
|
2324
2365
|
"size"
|
|
2325
2366
|
]);
|
|
2326
|
-
return /* @__PURE__ */ (0,
|
|
2367
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(InputGroupSizeContext.Provider, { value: size, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2327
2368
|
"div",
|
|
2328
2369
|
__spreadValues({
|
|
2329
2370
|
"data-slot": "input-group",
|
|
@@ -2333,7 +2374,7 @@ function InputGroup(_a) {
|
|
|
2333
2374
|
}, props)
|
|
2334
2375
|
) });
|
|
2335
2376
|
}
|
|
2336
|
-
var inputGroupAddonVariants = (0,
|
|
2377
|
+
var inputGroupAddonVariants = (0, import_class_variance_authority6.cva)(
|
|
2337
2378
|
[
|
|
2338
2379
|
"flex h-auto cursor-text items-center justify-center gap-2 py-1.5 font-medium text-on-subtle select-none",
|
|
2339
2380
|
"group-data-[disabled=true]/input-group:opacity-50",
|
|
@@ -2368,7 +2409,7 @@ function InputGroupAddon(_a) {
|
|
|
2368
2409
|
"className",
|
|
2369
2410
|
"align"
|
|
2370
2411
|
]);
|
|
2371
|
-
return /* @__PURE__ */ (0,
|
|
2412
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2372
2413
|
"div",
|
|
2373
2414
|
__spreadValues({
|
|
2374
2415
|
role: "group",
|
|
@@ -2385,7 +2426,7 @@ function InputGroupAddon(_a) {
|
|
|
2385
2426
|
}, props)
|
|
2386
2427
|
);
|
|
2387
2428
|
}
|
|
2388
|
-
var inputGroupButtonVariants = (0,
|
|
2429
|
+
var inputGroupButtonVariants = (0, import_class_variance_authority6.cva)(
|
|
2389
2430
|
"flex items-center gap-2 text-sm shadow-none",
|
|
2390
2431
|
{
|
|
2391
2432
|
variants: {
|
|
@@ -2413,7 +2454,7 @@ function InputGroupButton(_a) {
|
|
|
2413
2454
|
"variant",
|
|
2414
2455
|
"size"
|
|
2415
2456
|
]);
|
|
2416
|
-
return /* @__PURE__ */ (0,
|
|
2457
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2417
2458
|
Button,
|
|
2418
2459
|
__spreadValues({
|
|
2419
2460
|
type,
|
|
@@ -2425,7 +2466,7 @@ function InputGroupButton(_a) {
|
|
|
2425
2466
|
}
|
|
2426
2467
|
function InputGroupText(_a) {
|
|
2427
2468
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2428
|
-
return /* @__PURE__ */ (0,
|
|
2469
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2429
2470
|
"span",
|
|
2430
2471
|
__spreadValues({
|
|
2431
2472
|
className: cn(
|
|
@@ -2449,7 +2490,7 @@ function InputGroupInput(_a) {
|
|
|
2449
2490
|
]);
|
|
2450
2491
|
const groupSize = React6.useContext(InputGroupSizeContext);
|
|
2451
2492
|
const size = sizeProp != null ? sizeProp : groupSize;
|
|
2452
|
-
return /* @__PURE__ */ (0,
|
|
2493
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2453
2494
|
Input,
|
|
2454
2495
|
__spreadValues({
|
|
2455
2496
|
"data-slot": "input-group-control",
|
|
@@ -2467,7 +2508,7 @@ function InputGroupTextarea(_a) {
|
|
|
2467
2508
|
} = _b, props = __objRest(_b, [
|
|
2468
2509
|
"className"
|
|
2469
2510
|
]);
|
|
2470
|
-
return /* @__PURE__ */ (0,
|
|
2511
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2471
2512
|
Textarea,
|
|
2472
2513
|
__spreadValues({
|
|
2473
2514
|
"data-slot": "input-group-control",
|
|
@@ -2480,11 +2521,11 @@ function InputGroupTextarea(_a) {
|
|
|
2480
2521
|
}
|
|
2481
2522
|
|
|
2482
2523
|
// components/ui/combobox.tsx
|
|
2483
|
-
var
|
|
2524
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
2484
2525
|
var Combobox = import_react.Combobox.Root;
|
|
2485
2526
|
function ComboboxValue(_a) {
|
|
2486
2527
|
var props = __objRest(_a, []);
|
|
2487
|
-
return /* @__PURE__ */ (0,
|
|
2528
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react.Combobox.Value, __spreadValues({ "data-slot": "combobox-value" }, props));
|
|
2488
2529
|
}
|
|
2489
2530
|
function ComboboxTrigger(_a) {
|
|
2490
2531
|
var _b = _a, {
|
|
@@ -2494,7 +2535,7 @@ function ComboboxTrigger(_a) {
|
|
|
2494
2535
|
"className",
|
|
2495
2536
|
"children"
|
|
2496
2537
|
]);
|
|
2497
|
-
return /* @__PURE__ */ (0,
|
|
2538
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
2498
2539
|
import_react.Combobox.Trigger,
|
|
2499
2540
|
__spreadProps(__spreadValues({
|
|
2500
2541
|
"data-slot": "combobox-trigger",
|
|
@@ -2502,7 +2543,7 @@ function ComboboxTrigger(_a) {
|
|
|
2502
2543
|
}, props), {
|
|
2503
2544
|
children: [
|
|
2504
2545
|
children,
|
|
2505
|
-
/* @__PURE__ */ (0,
|
|
2546
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2506
2547
|
import_lucide_react8.ChevronDownIcon,
|
|
2507
2548
|
{
|
|
2508
2549
|
"data-slot": "combobox-trigger-icon",
|
|
@@ -2515,14 +2556,14 @@ function ComboboxTrigger(_a) {
|
|
|
2515
2556
|
}
|
|
2516
2557
|
function ComboboxClear(_a) {
|
|
2517
2558
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2518
|
-
return /* @__PURE__ */ (0,
|
|
2559
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2519
2560
|
import_react.Combobox.Clear,
|
|
2520
2561
|
__spreadProps(__spreadValues({
|
|
2521
2562
|
"data-slot": "combobox-clear",
|
|
2522
|
-
render: /* @__PURE__ */ (0,
|
|
2563
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(InputGroupButton, { variant: "secondary", size: "icon-xs" }),
|
|
2523
2564
|
className: cn(className)
|
|
2524
2565
|
}, props), {
|
|
2525
|
-
children: /* @__PURE__ */ (0,
|
|
2566
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react8.XIcon, { className: "pointer-events-none" })
|
|
2526
2567
|
})
|
|
2527
2568
|
);
|
|
2528
2569
|
}
|
|
@@ -2540,15 +2581,15 @@ function ComboboxInput(_a) {
|
|
|
2540
2581
|
"showTrigger",
|
|
2541
2582
|
"showClear"
|
|
2542
2583
|
]);
|
|
2543
|
-
return /* @__PURE__ */ (0,
|
|
2544
|
-
/* @__PURE__ */ (0,
|
|
2584
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(InputGroup, { className: cn("w-auto", className), children: [
|
|
2585
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2545
2586
|
import_react.Combobox.Input,
|
|
2546
2587
|
__spreadValues({
|
|
2547
|
-
render: /* @__PURE__ */ (0,
|
|
2588
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(InputGroupInput, { disabled })
|
|
2548
2589
|
}, props)
|
|
2549
2590
|
),
|
|
2550
|
-
/* @__PURE__ */ (0,
|
|
2551
|
-
showTrigger && /* @__PURE__ */ (0,
|
|
2591
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(InputGroupAddon, { align: "inline-end", children: [
|
|
2592
|
+
showTrigger && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2552
2593
|
InputGroupButton,
|
|
2553
2594
|
{
|
|
2554
2595
|
size: "icon-xs",
|
|
@@ -2557,10 +2598,10 @@ function ComboboxInput(_a) {
|
|
|
2557
2598
|
"data-slot": "input-group-button",
|
|
2558
2599
|
className: "group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent",
|
|
2559
2600
|
disabled,
|
|
2560
|
-
children: /* @__PURE__ */ (0,
|
|
2601
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ComboboxTrigger, {})
|
|
2561
2602
|
}
|
|
2562
2603
|
),
|
|
2563
|
-
showClear && /* @__PURE__ */ (0,
|
|
2604
|
+
showClear && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ComboboxClear, { disabled })
|
|
2564
2605
|
] }),
|
|
2565
2606
|
children
|
|
2566
2607
|
] });
|
|
@@ -2581,7 +2622,7 @@ function ComboboxContent(_a) {
|
|
|
2581
2622
|
"alignOffset",
|
|
2582
2623
|
"anchor"
|
|
2583
2624
|
]);
|
|
2584
|
-
return /* @__PURE__ */ (0,
|
|
2625
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react.Combobox.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2585
2626
|
import_react.Combobox.Positioner,
|
|
2586
2627
|
{
|
|
2587
2628
|
side,
|
|
@@ -2590,7 +2631,7 @@ function ComboboxContent(_a) {
|
|
|
2590
2631
|
alignOffset,
|
|
2591
2632
|
anchor,
|
|
2592
2633
|
className: "isolate z-50",
|
|
2593
|
-
children: /* @__PURE__ */ (0,
|
|
2634
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2594
2635
|
import_react.Combobox.Popup,
|
|
2595
2636
|
__spreadValues({
|
|
2596
2637
|
"data-slot": "combobox-content",
|
|
@@ -2606,7 +2647,7 @@ function ComboboxContent(_a) {
|
|
|
2606
2647
|
}
|
|
2607
2648
|
function ComboboxList(_a) {
|
|
2608
2649
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2609
|
-
return /* @__PURE__ */ (0,
|
|
2650
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2610
2651
|
import_react.Combobox.List,
|
|
2611
2652
|
__spreadValues({
|
|
2612
2653
|
"data-slot": "combobox-list",
|
|
@@ -2625,7 +2666,7 @@ function ComboboxItem(_a) {
|
|
|
2625
2666
|
"className",
|
|
2626
2667
|
"children"
|
|
2627
2668
|
]);
|
|
2628
|
-
return /* @__PURE__ */ (0,
|
|
2669
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
2629
2670
|
import_react.Combobox.Item,
|
|
2630
2671
|
__spreadProps(__spreadValues({
|
|
2631
2672
|
"data-slot": "combobox-item",
|
|
@@ -2636,12 +2677,12 @@ function ComboboxItem(_a) {
|
|
|
2636
2677
|
}, props), {
|
|
2637
2678
|
children: [
|
|
2638
2679
|
children,
|
|
2639
|
-
/* @__PURE__ */ (0,
|
|
2680
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2640
2681
|
import_react.Combobox.ItemIndicator,
|
|
2641
2682
|
{
|
|
2642
2683
|
"data-slot": "combobox-item-indicator",
|
|
2643
|
-
render: /* @__PURE__ */ (0,
|
|
2644
|
-
children: /* @__PURE__ */ (0,
|
|
2684
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
|
|
2685
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react8.CheckIcon, { className: "pointer-events-none size-4 pointer-coarse:size-5" })
|
|
2645
2686
|
}
|
|
2646
2687
|
)
|
|
2647
2688
|
]
|
|
@@ -2650,7 +2691,7 @@ function ComboboxItem(_a) {
|
|
|
2650
2691
|
}
|
|
2651
2692
|
function ComboboxGroup(_a) {
|
|
2652
2693
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2653
|
-
return /* @__PURE__ */ (0,
|
|
2694
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2654
2695
|
import_react.Combobox.Group,
|
|
2655
2696
|
__spreadValues({
|
|
2656
2697
|
"data-slot": "combobox-group",
|
|
@@ -2664,7 +2705,7 @@ function ComboboxLabel(_a) {
|
|
|
2664
2705
|
} = _b, props = __objRest(_b, [
|
|
2665
2706
|
"className"
|
|
2666
2707
|
]);
|
|
2667
|
-
return /* @__PURE__ */ (0,
|
|
2708
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2668
2709
|
import_react.Combobox.GroupLabel,
|
|
2669
2710
|
__spreadValues({
|
|
2670
2711
|
"data-slot": "combobox-label",
|
|
@@ -2677,11 +2718,11 @@ function ComboboxLabel(_a) {
|
|
|
2677
2718
|
}
|
|
2678
2719
|
function ComboboxCollection(_a) {
|
|
2679
2720
|
var props = __objRest(_a, []);
|
|
2680
|
-
return /* @__PURE__ */ (0,
|
|
2721
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react.Combobox.Collection, __spreadValues({ "data-slot": "combobox-collection" }, props));
|
|
2681
2722
|
}
|
|
2682
2723
|
function ComboboxEmpty(_a) {
|
|
2683
2724
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2684
|
-
return /* @__PURE__ */ (0,
|
|
2725
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2685
2726
|
import_react.Combobox.Empty,
|
|
2686
2727
|
__spreadValues({
|
|
2687
2728
|
"data-slot": "combobox-empty",
|
|
@@ -2698,7 +2739,7 @@ function ComboboxSeparator(_a) {
|
|
|
2698
2739
|
} = _b, props = __objRest(_b, [
|
|
2699
2740
|
"className"
|
|
2700
2741
|
]);
|
|
2701
|
-
return /* @__PURE__ */ (0,
|
|
2742
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2702
2743
|
import_react.Combobox.Separator,
|
|
2703
2744
|
__spreadValues({
|
|
2704
2745
|
"data-slot": "combobox-separator",
|
|
@@ -2712,7 +2753,7 @@ function ComboboxChips(_a) {
|
|
|
2712
2753
|
} = _b, props = __objRest(_b, [
|
|
2713
2754
|
"className"
|
|
2714
2755
|
]);
|
|
2715
|
-
return /* @__PURE__ */ (0,
|
|
2756
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2716
2757
|
import_react.Combobox.Chips,
|
|
2717
2758
|
__spreadValues({
|
|
2718
2759
|
"data-slot": "combobox-chips",
|
|
@@ -2733,7 +2774,7 @@ function ComboboxChip(_a) {
|
|
|
2733
2774
|
"children",
|
|
2734
2775
|
"showRemove"
|
|
2735
2776
|
]);
|
|
2736
|
-
return /* @__PURE__ */ (0,
|
|
2777
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
2737
2778
|
import_react.Combobox.Chip,
|
|
2738
2779
|
__spreadProps(__spreadValues({
|
|
2739
2780
|
"data-slot": "combobox-chip",
|
|
@@ -2744,13 +2785,13 @@ function ComboboxChip(_a) {
|
|
|
2744
2785
|
}, props), {
|
|
2745
2786
|
children: [
|
|
2746
2787
|
children,
|
|
2747
|
-
showRemove && /* @__PURE__ */ (0,
|
|
2788
|
+
showRemove && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2748
2789
|
import_react.Combobox.ChipRemove,
|
|
2749
2790
|
{
|
|
2750
|
-
render: /* @__PURE__ */ (0,
|
|
2791
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Button, { variant: "secondary", size: "icon-xs" }),
|
|
2751
2792
|
className: "-ml-1 opacity-50 hover:opacity-100",
|
|
2752
2793
|
"data-slot": "combobox-chip-remove",
|
|
2753
|
-
children: /* @__PURE__ */ (0,
|
|
2794
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react8.XIcon, { className: "pointer-events-none" })
|
|
2754
2795
|
}
|
|
2755
2796
|
)
|
|
2756
2797
|
]
|
|
@@ -2765,7 +2806,7 @@ function ComboboxChipsInput(_a) {
|
|
|
2765
2806
|
"className",
|
|
2766
2807
|
"children"
|
|
2767
2808
|
]);
|
|
2768
|
-
return /* @__PURE__ */ (0,
|
|
2809
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2769
2810
|
import_react.Combobox.Input,
|
|
2770
2811
|
__spreadValues({
|
|
2771
2812
|
"data-slot": "combobox-chip-input",
|
|
@@ -2784,22 +2825,22 @@ var import_lucide_react10 = require("lucide-react");
|
|
|
2784
2825
|
// components/ui/dialog.tsx
|
|
2785
2826
|
var import_lucide_react9 = require("lucide-react");
|
|
2786
2827
|
var import_radix_ui10 = require("radix-ui");
|
|
2787
|
-
var
|
|
2828
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
2788
2829
|
function Dialog(_a) {
|
|
2789
2830
|
var props = __objRest(_a, []);
|
|
2790
|
-
return /* @__PURE__ */ (0,
|
|
2831
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_radix_ui10.Dialog.Root, __spreadValues({ "data-slot": "dialog" }, props));
|
|
2791
2832
|
}
|
|
2792
2833
|
function DialogTrigger(_a) {
|
|
2793
2834
|
var props = __objRest(_a, []);
|
|
2794
|
-
return /* @__PURE__ */ (0,
|
|
2835
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_radix_ui10.Dialog.Trigger, __spreadValues({ "data-slot": "dialog-trigger" }, props));
|
|
2795
2836
|
}
|
|
2796
2837
|
function DialogPortal(_a) {
|
|
2797
2838
|
var props = __objRest(_a, []);
|
|
2798
|
-
return /* @__PURE__ */ (0,
|
|
2839
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_radix_ui10.Dialog.Portal, __spreadValues({ "data-slot": "dialog-portal" }, props));
|
|
2799
2840
|
}
|
|
2800
2841
|
function DialogClose(_a) {
|
|
2801
2842
|
var props = __objRest(_a, []);
|
|
2802
|
-
return /* @__PURE__ */ (0,
|
|
2843
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_radix_ui10.Dialog.Close, __spreadValues({ "data-slot": "dialog-close" }, props));
|
|
2803
2844
|
}
|
|
2804
2845
|
function DialogOverlay(_a) {
|
|
2805
2846
|
var _b = _a, {
|
|
@@ -2807,7 +2848,7 @@ function DialogOverlay(_a) {
|
|
|
2807
2848
|
} = _b, props = __objRest(_b, [
|
|
2808
2849
|
"className"
|
|
2809
2850
|
]);
|
|
2810
|
-
return /* @__PURE__ */ (0,
|
|
2851
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2811
2852
|
import_radix_ui10.Dialog.Overlay,
|
|
2812
2853
|
__spreadValues({
|
|
2813
2854
|
"data-slot": "dialog-overlay",
|
|
@@ -2828,9 +2869,9 @@ function DialogContent(_a) {
|
|
|
2828
2869
|
"children",
|
|
2829
2870
|
"showCloseButton"
|
|
2830
2871
|
]);
|
|
2831
|
-
return /* @__PURE__ */ (0,
|
|
2832
|
-
/* @__PURE__ */ (0,
|
|
2833
|
-
/* @__PURE__ */ (0,
|
|
2872
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(DialogPortal, { "data-slot": "dialog-portal", children: [
|
|
2873
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DialogOverlay, {}),
|
|
2874
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
2834
2875
|
import_radix_ui10.Dialog.Content,
|
|
2835
2876
|
__spreadProps(__spreadValues({
|
|
2836
2877
|
"data-slot": "dialog-content",
|
|
@@ -2841,14 +2882,14 @@ function DialogContent(_a) {
|
|
|
2841
2882
|
}, props), {
|
|
2842
2883
|
children: [
|
|
2843
2884
|
children,
|
|
2844
|
-
showCloseButton && /* @__PURE__ */ (0,
|
|
2885
|
+
showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
2845
2886
|
import_radix_ui10.Dialog.Close,
|
|
2846
2887
|
{
|
|
2847
2888
|
"data-slot": "dialog-close",
|
|
2848
2889
|
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",
|
|
2849
2890
|
children: [
|
|
2850
|
-
/* @__PURE__ */ (0,
|
|
2851
|
-
/* @__PURE__ */ (0,
|
|
2891
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react9.XIcon, {}),
|
|
2892
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "sr-only", children: "Close" })
|
|
2852
2893
|
]
|
|
2853
2894
|
}
|
|
2854
2895
|
)
|
|
@@ -2859,7 +2900,7 @@ function DialogContent(_a) {
|
|
|
2859
2900
|
}
|
|
2860
2901
|
function DialogHeader(_a) {
|
|
2861
2902
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2862
|
-
return /* @__PURE__ */ (0,
|
|
2903
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2863
2904
|
"div",
|
|
2864
2905
|
__spreadValues({
|
|
2865
2906
|
"data-slot": "dialog-header",
|
|
@@ -2877,7 +2918,7 @@ function DialogFooter(_a) {
|
|
|
2877
2918
|
"showCloseButton",
|
|
2878
2919
|
"children"
|
|
2879
2920
|
]);
|
|
2880
|
-
return /* @__PURE__ */ (0,
|
|
2921
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
2881
2922
|
"div",
|
|
2882
2923
|
__spreadProps(__spreadValues({
|
|
2883
2924
|
"data-slot": "dialog-footer",
|
|
@@ -2888,7 +2929,7 @@ function DialogFooter(_a) {
|
|
|
2888
2929
|
}, props), {
|
|
2889
2930
|
children: [
|
|
2890
2931
|
children,
|
|
2891
|
-
showCloseButton && /* @__PURE__ */ (0,
|
|
2932
|
+
showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_radix_ui10.Dialog.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Button, { variant: "secondary", size: "md", children: "Close" }) })
|
|
2892
2933
|
]
|
|
2893
2934
|
})
|
|
2894
2935
|
);
|
|
@@ -2899,7 +2940,7 @@ function DialogTitle(_a) {
|
|
|
2899
2940
|
} = _b, props = __objRest(_b, [
|
|
2900
2941
|
"className"
|
|
2901
2942
|
]);
|
|
2902
|
-
return /* @__PURE__ */ (0,
|
|
2943
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2903
2944
|
import_radix_ui10.Dialog.Title,
|
|
2904
2945
|
__spreadValues({
|
|
2905
2946
|
"data-slot": "dialog-title",
|
|
@@ -2913,7 +2954,7 @@ function DialogDescription(_a) {
|
|
|
2913
2954
|
} = _b, props = __objRest(_b, [
|
|
2914
2955
|
"className"
|
|
2915
2956
|
]);
|
|
2916
|
-
return /* @__PURE__ */ (0,
|
|
2957
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2917
2958
|
import_radix_ui10.Dialog.Description,
|
|
2918
2959
|
__spreadValues({
|
|
2919
2960
|
"data-slot": "dialog-description",
|
|
@@ -2923,14 +2964,14 @@ function DialogDescription(_a) {
|
|
|
2923
2964
|
}
|
|
2924
2965
|
|
|
2925
2966
|
// components/ui/command.tsx
|
|
2926
|
-
var
|
|
2967
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
2927
2968
|
function Command(_a) {
|
|
2928
2969
|
var _b = _a, {
|
|
2929
2970
|
className
|
|
2930
2971
|
} = _b, props = __objRest(_b, [
|
|
2931
2972
|
"className"
|
|
2932
2973
|
]);
|
|
2933
|
-
return /* @__PURE__ */ (0,
|
|
2974
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2934
2975
|
import_cmdk.Command,
|
|
2935
2976
|
__spreadValues({
|
|
2936
2977
|
"data-slot": "command",
|
|
@@ -2955,17 +2996,17 @@ function CommandDialog(_a) {
|
|
|
2955
2996
|
"className",
|
|
2956
2997
|
"showCloseButton"
|
|
2957
2998
|
]);
|
|
2958
|
-
return /* @__PURE__ */ (0,
|
|
2959
|
-
/* @__PURE__ */ (0,
|
|
2960
|
-
/* @__PURE__ */ (0,
|
|
2961
|
-
/* @__PURE__ */ (0,
|
|
2999
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Dialog, __spreadProps(__spreadValues({}, props), { children: [
|
|
3000
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(DialogHeader, { className: "sr-only", children: [
|
|
3001
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DialogTitle, { children: title }),
|
|
3002
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DialogDescription, { children: description })
|
|
2962
3003
|
] }),
|
|
2963
|
-
/* @__PURE__ */ (0,
|
|
3004
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2964
3005
|
DialogContent,
|
|
2965
3006
|
{
|
|
2966
3007
|
className: cn("overflow-hidden p-0", className),
|
|
2967
3008
|
showCloseButton,
|
|
2968
|
-
children: /* @__PURE__ */ (0,
|
|
3009
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.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 })
|
|
2969
3010
|
}
|
|
2970
3011
|
)
|
|
2971
3012
|
] }));
|
|
@@ -2976,14 +3017,14 @@ function CommandInput(_a) {
|
|
|
2976
3017
|
} = _b, props = __objRest(_b, [
|
|
2977
3018
|
"className"
|
|
2978
3019
|
]);
|
|
2979
|
-
return /* @__PURE__ */ (0,
|
|
3020
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
2980
3021
|
"div",
|
|
2981
3022
|
{
|
|
2982
3023
|
"data-slot": "command-input-wrapper",
|
|
2983
3024
|
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
2984
3025
|
children: [
|
|
2985
|
-
/* @__PURE__ */ (0,
|
|
2986
|
-
/* @__PURE__ */ (0,
|
|
3026
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react10.SearchIcon, { className: "size-4 shrink-0 opacity-50" }),
|
|
3027
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2987
3028
|
import_cmdk.Command.Input,
|
|
2988
3029
|
__spreadValues({
|
|
2989
3030
|
"data-slot": "command-input",
|
|
@@ -3003,7 +3044,7 @@ function CommandList(_a) {
|
|
|
3003
3044
|
} = _b, props = __objRest(_b, [
|
|
3004
3045
|
"className"
|
|
3005
3046
|
]);
|
|
3006
|
-
return /* @__PURE__ */ (0,
|
|
3047
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3007
3048
|
import_cmdk.Command.List,
|
|
3008
3049
|
__spreadValues({
|
|
3009
3050
|
"data-slot": "command-list",
|
|
@@ -3016,7 +3057,7 @@ function CommandList(_a) {
|
|
|
3016
3057
|
}
|
|
3017
3058
|
function CommandEmpty(_a) {
|
|
3018
3059
|
var props = __objRest(_a, []);
|
|
3019
|
-
return /* @__PURE__ */ (0,
|
|
3060
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3020
3061
|
import_cmdk.Command.Empty,
|
|
3021
3062
|
__spreadValues({
|
|
3022
3063
|
"data-slot": "command-empty",
|
|
@@ -3030,7 +3071,7 @@ function CommandGroup(_a) {
|
|
|
3030
3071
|
} = _b, props = __objRest(_b, [
|
|
3031
3072
|
"className"
|
|
3032
3073
|
]);
|
|
3033
|
-
return /* @__PURE__ */ (0,
|
|
3074
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3034
3075
|
import_cmdk.Command.Group,
|
|
3035
3076
|
__spreadValues({
|
|
3036
3077
|
"data-slot": "command-group",
|
|
@@ -3047,7 +3088,7 @@ function CommandSeparator(_a) {
|
|
|
3047
3088
|
} = _b, props = __objRest(_b, [
|
|
3048
3089
|
"className"
|
|
3049
3090
|
]);
|
|
3050
|
-
return /* @__PURE__ */ (0,
|
|
3091
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3051
3092
|
import_cmdk.Command.Separator,
|
|
3052
3093
|
__spreadValues({
|
|
3053
3094
|
"data-slot": "command-separator",
|
|
@@ -3061,7 +3102,7 @@ function CommandItem(_a) {
|
|
|
3061
3102
|
} = _b, props = __objRest(_b, [
|
|
3062
3103
|
"className"
|
|
3063
3104
|
]);
|
|
3064
|
-
return /* @__PURE__ */ (0,
|
|
3105
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3065
3106
|
import_cmdk.Command.Item,
|
|
3066
3107
|
__spreadValues({
|
|
3067
3108
|
"data-slot": "command-item",
|
|
@@ -3078,7 +3119,7 @@ function CommandShortcut(_a) {
|
|
|
3078
3119
|
} = _b, props = __objRest(_b, [
|
|
3079
3120
|
"className"
|
|
3080
3121
|
]);
|
|
3081
|
-
return /* @__PURE__ */ (0,
|
|
3122
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3082
3123
|
"span",
|
|
3083
3124
|
__spreadValues({
|
|
3084
3125
|
"data-slot": "command-shortcut",
|
|
@@ -3093,30 +3134,30 @@ function CommandShortcut(_a) {
|
|
|
3093
3134
|
// components/ui/context-menu.tsx
|
|
3094
3135
|
var import_lucide_react11 = require("lucide-react");
|
|
3095
3136
|
var import_radix_ui11 = require("radix-ui");
|
|
3096
|
-
var
|
|
3137
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
3097
3138
|
function ContextMenu(_a) {
|
|
3098
3139
|
var props = __objRest(_a, []);
|
|
3099
|
-
return /* @__PURE__ */ (0,
|
|
3140
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_radix_ui11.ContextMenu.Root, __spreadValues({ "data-slot": "context-menu" }, props));
|
|
3100
3141
|
}
|
|
3101
3142
|
function ContextMenuTrigger(_a) {
|
|
3102
3143
|
var props = __objRest(_a, []);
|
|
3103
|
-
return /* @__PURE__ */ (0,
|
|
3144
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_radix_ui11.ContextMenu.Trigger, __spreadValues({ "data-slot": "context-menu-trigger" }, props));
|
|
3104
3145
|
}
|
|
3105
3146
|
function ContextMenuGroup(_a) {
|
|
3106
3147
|
var props = __objRest(_a, []);
|
|
3107
|
-
return /* @__PURE__ */ (0,
|
|
3148
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_radix_ui11.ContextMenu.Group, __spreadValues({ "data-slot": "context-menu-group" }, props));
|
|
3108
3149
|
}
|
|
3109
3150
|
function ContextMenuPortal(_a) {
|
|
3110
3151
|
var props = __objRest(_a, []);
|
|
3111
|
-
return /* @__PURE__ */ (0,
|
|
3152
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_radix_ui11.ContextMenu.Portal, __spreadValues({ "data-slot": "context-menu-portal" }, props));
|
|
3112
3153
|
}
|
|
3113
3154
|
function ContextMenuSub(_a) {
|
|
3114
3155
|
var props = __objRest(_a, []);
|
|
3115
|
-
return /* @__PURE__ */ (0,
|
|
3156
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_radix_ui11.ContextMenu.Sub, __spreadValues({ "data-slot": "context-menu-sub" }, props));
|
|
3116
3157
|
}
|
|
3117
3158
|
function ContextMenuRadioGroup(_a) {
|
|
3118
3159
|
var props = __objRest(_a, []);
|
|
3119
|
-
return /* @__PURE__ */ (0,
|
|
3160
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
3120
3161
|
import_radix_ui11.ContextMenu.RadioGroup,
|
|
3121
3162
|
__spreadValues({
|
|
3122
3163
|
"data-slot": "context-menu-radio-group"
|
|
@@ -3133,7 +3174,7 @@ function ContextMenuSubTrigger(_a) {
|
|
|
3133
3174
|
"inset",
|
|
3134
3175
|
"children"
|
|
3135
3176
|
]);
|
|
3136
|
-
return /* @__PURE__ */ (0,
|
|
3177
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
3137
3178
|
import_radix_ui11.ContextMenu.SubTrigger,
|
|
3138
3179
|
__spreadProps(__spreadValues({
|
|
3139
3180
|
"data-slot": "context-menu-sub-trigger",
|
|
@@ -3145,7 +3186,7 @@ function ContextMenuSubTrigger(_a) {
|
|
|
3145
3186
|
}, props), {
|
|
3146
3187
|
children: [
|
|
3147
3188
|
children,
|
|
3148
|
-
/* @__PURE__ */ (0,
|
|
3189
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react11.ChevronRightIcon, { className: "ml-auto" })
|
|
3149
3190
|
]
|
|
3150
3191
|
})
|
|
3151
3192
|
);
|
|
@@ -3156,7 +3197,7 @@ function ContextMenuSubContent(_a) {
|
|
|
3156
3197
|
} = _b, props = __objRest(_b, [
|
|
3157
3198
|
"className"
|
|
3158
3199
|
]);
|
|
3159
|
-
return /* @__PURE__ */ (0,
|
|
3200
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
3160
3201
|
import_radix_ui11.ContextMenu.SubContent,
|
|
3161
3202
|
__spreadValues({
|
|
3162
3203
|
"data-slot": "context-menu-sub-content",
|
|
@@ -3173,7 +3214,7 @@ function ContextMenuContent(_a) {
|
|
|
3173
3214
|
} = _b, props = __objRest(_b, [
|
|
3174
3215
|
"className"
|
|
3175
3216
|
]);
|
|
3176
|
-
return /* @__PURE__ */ (0,
|
|
3217
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_radix_ui11.ContextMenu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
3177
3218
|
import_radix_ui11.ContextMenu.Content,
|
|
3178
3219
|
__spreadValues({
|
|
3179
3220
|
"data-slot": "context-menu-content",
|
|
@@ -3194,7 +3235,7 @@ function ContextMenuItem(_a) {
|
|
|
3194
3235
|
"inset",
|
|
3195
3236
|
"variant"
|
|
3196
3237
|
]);
|
|
3197
|
-
return /* @__PURE__ */ (0,
|
|
3238
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
3198
3239
|
import_radix_ui11.ContextMenu.Item,
|
|
3199
3240
|
__spreadValues({
|
|
3200
3241
|
"data-slot": "context-menu-item",
|
|
@@ -3217,7 +3258,7 @@ function ContextMenuCheckboxItem(_a) {
|
|
|
3217
3258
|
"children",
|
|
3218
3259
|
"checked"
|
|
3219
3260
|
]);
|
|
3220
|
-
return /* @__PURE__ */ (0,
|
|
3261
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
3221
3262
|
import_radix_ui11.ContextMenu.CheckboxItem,
|
|
3222
3263
|
__spreadProps(__spreadValues({
|
|
3223
3264
|
"data-slot": "context-menu-checkbox-item",
|
|
@@ -3228,7 +3269,7 @@ function ContextMenuCheckboxItem(_a) {
|
|
|
3228
3269
|
checked
|
|
3229
3270
|
}, props), {
|
|
3230
3271
|
children: [
|
|
3231
|
-
/* @__PURE__ */ (0,
|
|
3272
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_radix_ui11.ContextMenu.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react11.CheckIcon, { className: "size-4" }) }) }),
|
|
3232
3273
|
children
|
|
3233
3274
|
]
|
|
3234
3275
|
})
|
|
@@ -3242,7 +3283,7 @@ function ContextMenuRadioItem(_a) {
|
|
|
3242
3283
|
"className",
|
|
3243
3284
|
"children"
|
|
3244
3285
|
]);
|
|
3245
|
-
return /* @__PURE__ */ (0,
|
|
3286
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
3246
3287
|
import_radix_ui11.ContextMenu.RadioItem,
|
|
3247
3288
|
__spreadProps(__spreadValues({
|
|
3248
3289
|
"data-slot": "context-menu-radio-item",
|
|
@@ -3252,7 +3293,7 @@ function ContextMenuRadioItem(_a) {
|
|
|
3252
3293
|
)
|
|
3253
3294
|
}, props), {
|
|
3254
3295
|
children: [
|
|
3255
|
-
/* @__PURE__ */ (0,
|
|
3296
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_radix_ui11.ContextMenu.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react11.CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
3256
3297
|
children
|
|
3257
3298
|
]
|
|
3258
3299
|
})
|
|
@@ -3266,7 +3307,7 @@ function ContextMenuLabel(_a) {
|
|
|
3266
3307
|
"className",
|
|
3267
3308
|
"inset"
|
|
3268
3309
|
]);
|
|
3269
|
-
return /* @__PURE__ */ (0,
|
|
3310
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
3270
3311
|
import_radix_ui11.ContextMenu.Label,
|
|
3271
3312
|
__spreadValues({
|
|
3272
3313
|
"data-slot": "context-menu-label",
|
|
@@ -3284,7 +3325,7 @@ function ContextMenuSeparator(_a) {
|
|
|
3284
3325
|
} = _b, props = __objRest(_b, [
|
|
3285
3326
|
"className"
|
|
3286
3327
|
]);
|
|
3287
|
-
return /* @__PURE__ */ (0,
|
|
3328
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
3288
3329
|
import_radix_ui11.ContextMenu.Separator,
|
|
3289
3330
|
__spreadValues({
|
|
3290
3331
|
"data-slot": "context-menu-separator",
|
|
@@ -3298,7 +3339,7 @@ function ContextMenuShortcut(_a) {
|
|
|
3298
3339
|
} = _b, props = __objRest(_b, [
|
|
3299
3340
|
"className"
|
|
3300
3341
|
]);
|
|
3301
|
-
return /* @__PURE__ */ (0,
|
|
3342
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
3302
3343
|
"span",
|
|
3303
3344
|
__spreadValues({
|
|
3304
3345
|
"data-slot": "context-menu-shortcut",
|
|
@@ -3312,34 +3353,34 @@ function ContextMenuShortcut(_a) {
|
|
|
3312
3353
|
|
|
3313
3354
|
// components/ui/direction.tsx
|
|
3314
3355
|
var import_radix_ui12 = require("radix-ui");
|
|
3315
|
-
var
|
|
3356
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
3316
3357
|
function DirectionProvider({
|
|
3317
3358
|
dir,
|
|
3318
3359
|
direction,
|
|
3319
3360
|
children
|
|
3320
3361
|
}) {
|
|
3321
|
-
return /* @__PURE__ */ (0,
|
|
3362
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_radix_ui12.Direction.DirectionProvider, { dir: direction != null ? direction : dir, children });
|
|
3322
3363
|
}
|
|
3323
3364
|
var useDirection = import_radix_ui12.Direction.useDirection;
|
|
3324
3365
|
|
|
3325
3366
|
// components/ui/drawer.tsx
|
|
3326
3367
|
var import_vaul = require("vaul");
|
|
3327
|
-
var
|
|
3368
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
3328
3369
|
function Drawer(_a) {
|
|
3329
3370
|
var props = __objRest(_a, []);
|
|
3330
|
-
return /* @__PURE__ */ (0,
|
|
3371
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_vaul.Drawer.Root, __spreadValues({ "data-slot": "drawer" }, props));
|
|
3331
3372
|
}
|
|
3332
3373
|
function DrawerTrigger(_a) {
|
|
3333
3374
|
var props = __objRest(_a, []);
|
|
3334
|
-
return /* @__PURE__ */ (0,
|
|
3375
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_vaul.Drawer.Trigger, __spreadValues({ "data-slot": "drawer-trigger" }, props));
|
|
3335
3376
|
}
|
|
3336
3377
|
function DrawerPortal(_a) {
|
|
3337
3378
|
var props = __objRest(_a, []);
|
|
3338
|
-
return /* @__PURE__ */ (0,
|
|
3379
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_vaul.Drawer.Portal, __spreadValues({ "data-slot": "drawer-portal" }, props));
|
|
3339
3380
|
}
|
|
3340
3381
|
function DrawerClose(_a) {
|
|
3341
3382
|
var props = __objRest(_a, []);
|
|
3342
|
-
return /* @__PURE__ */ (0,
|
|
3383
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_vaul.Drawer.Close, __spreadValues({ "data-slot": "drawer-close" }, props));
|
|
3343
3384
|
}
|
|
3344
3385
|
function DrawerOverlay(_a) {
|
|
3345
3386
|
var _b = _a, {
|
|
@@ -3347,7 +3388,7 @@ function DrawerOverlay(_a) {
|
|
|
3347
3388
|
} = _b, props = __objRest(_b, [
|
|
3348
3389
|
"className"
|
|
3349
3390
|
]);
|
|
3350
|
-
return /* @__PURE__ */ (0,
|
|
3391
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3351
3392
|
import_vaul.Drawer.Overlay,
|
|
3352
3393
|
__spreadValues({
|
|
3353
3394
|
"data-slot": "drawer-overlay",
|
|
@@ -3366,9 +3407,9 @@ function DrawerContent(_a) {
|
|
|
3366
3407
|
"className",
|
|
3367
3408
|
"children"
|
|
3368
3409
|
]);
|
|
3369
|
-
return /* @__PURE__ */ (0,
|
|
3370
|
-
/* @__PURE__ */ (0,
|
|
3371
|
-
/* @__PURE__ */ (0,
|
|
3410
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(DrawerPortal, { "data-slot": "drawer-portal", children: [
|
|
3411
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(DrawerOverlay, {}),
|
|
3412
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
3372
3413
|
import_vaul.Drawer.Content,
|
|
3373
3414
|
__spreadProps(__spreadValues({
|
|
3374
3415
|
"data-slot": "drawer-content",
|
|
@@ -3382,7 +3423,7 @@ function DrawerContent(_a) {
|
|
|
3382
3423
|
)
|
|
3383
3424
|
}, props), {
|
|
3384
3425
|
children: [
|
|
3385
|
-
/* @__PURE__ */ (0,
|
|
3426
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.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" }),
|
|
3386
3427
|
children
|
|
3387
3428
|
]
|
|
3388
3429
|
})
|
|
@@ -3391,7 +3432,7 @@ function DrawerContent(_a) {
|
|
|
3391
3432
|
}
|
|
3392
3433
|
function DrawerHeader(_a) {
|
|
3393
3434
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3394
|
-
return /* @__PURE__ */ (0,
|
|
3435
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3395
3436
|
"div",
|
|
3396
3437
|
__spreadValues({
|
|
3397
3438
|
"data-slot": "drawer-header",
|
|
@@ -3404,7 +3445,7 @@ function DrawerHeader(_a) {
|
|
|
3404
3445
|
}
|
|
3405
3446
|
function DrawerFooter(_a) {
|
|
3406
3447
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3407
|
-
return /* @__PURE__ */ (0,
|
|
3448
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3408
3449
|
"div",
|
|
3409
3450
|
__spreadValues({
|
|
3410
3451
|
"data-slot": "drawer-footer",
|
|
@@ -3418,7 +3459,7 @@ function DrawerTitle(_a) {
|
|
|
3418
3459
|
} = _b, props = __objRest(_b, [
|
|
3419
3460
|
"className"
|
|
3420
3461
|
]);
|
|
3421
|
-
return /* @__PURE__ */ (0,
|
|
3462
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3422
3463
|
import_vaul.Drawer.Title,
|
|
3423
3464
|
__spreadValues({
|
|
3424
3465
|
"data-slot": "drawer-title",
|
|
@@ -3432,7 +3473,7 @@ function DrawerDescription(_a) {
|
|
|
3432
3473
|
} = _b, props = __objRest(_b, [
|
|
3433
3474
|
"className"
|
|
3434
3475
|
]);
|
|
3435
|
-
return /* @__PURE__ */ (0,
|
|
3476
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3436
3477
|
import_vaul.Drawer.Description,
|
|
3437
3478
|
__spreadValues({
|
|
3438
3479
|
"data-slot": "drawer-description",
|
|
@@ -3444,18 +3485,18 @@ function DrawerDescription(_a) {
|
|
|
3444
3485
|
// components/ui/dropdown-menu.tsx
|
|
3445
3486
|
var import_lucide_react12 = require("lucide-react");
|
|
3446
3487
|
var import_radix_ui13 = require("radix-ui");
|
|
3447
|
-
var
|
|
3488
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
3448
3489
|
function DropdownMenu(_a) {
|
|
3449
3490
|
var props = __objRest(_a, []);
|
|
3450
|
-
return /* @__PURE__ */ (0,
|
|
3491
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_radix_ui13.DropdownMenu.Root, __spreadValues({ "data-slot": "dropdown-menu" }, props));
|
|
3451
3492
|
}
|
|
3452
3493
|
function DropdownMenuPortal(_a) {
|
|
3453
3494
|
var props = __objRest(_a, []);
|
|
3454
|
-
return /* @__PURE__ */ (0,
|
|
3495
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_radix_ui13.DropdownMenu.Portal, __spreadValues({ "data-slot": "dropdown-menu-portal" }, props));
|
|
3455
3496
|
}
|
|
3456
3497
|
function DropdownMenuTrigger(_a) {
|
|
3457
3498
|
var props = __objRest(_a, []);
|
|
3458
|
-
return /* @__PURE__ */ (0,
|
|
3499
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3459
3500
|
import_radix_ui13.DropdownMenu.Trigger,
|
|
3460
3501
|
__spreadValues({
|
|
3461
3502
|
"data-slot": "dropdown-menu-trigger"
|
|
@@ -3470,7 +3511,7 @@ function DropdownMenuContent(_a) {
|
|
|
3470
3511
|
"className",
|
|
3471
3512
|
"sideOffset"
|
|
3472
3513
|
]);
|
|
3473
|
-
return /* @__PURE__ */ (0,
|
|
3514
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_radix_ui13.DropdownMenu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3474
3515
|
import_radix_ui13.DropdownMenu.Content,
|
|
3475
3516
|
__spreadValues({
|
|
3476
3517
|
"data-slot": "dropdown-menu-content",
|
|
@@ -3484,7 +3525,7 @@ function DropdownMenuContent(_a) {
|
|
|
3484
3525
|
}
|
|
3485
3526
|
function DropdownMenuGroup(_a) {
|
|
3486
3527
|
var props = __objRest(_a, []);
|
|
3487
|
-
return /* @__PURE__ */ (0,
|
|
3528
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_radix_ui13.DropdownMenu.Group, __spreadValues({ "data-slot": "dropdown-menu-group" }, props));
|
|
3488
3529
|
}
|
|
3489
3530
|
function DropdownMenuItem(_a) {
|
|
3490
3531
|
var _b = _a, {
|
|
@@ -3496,7 +3537,7 @@ function DropdownMenuItem(_a) {
|
|
|
3496
3537
|
"inset",
|
|
3497
3538
|
"variant"
|
|
3498
3539
|
]);
|
|
3499
|
-
return /* @__PURE__ */ (0,
|
|
3540
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3500
3541
|
import_radix_ui13.DropdownMenu.Item,
|
|
3501
3542
|
__spreadValues({
|
|
3502
3543
|
"data-slot": "dropdown-menu-item",
|
|
@@ -3519,7 +3560,7 @@ function DropdownMenuCheckboxItem(_a) {
|
|
|
3519
3560
|
"children",
|
|
3520
3561
|
"checked"
|
|
3521
3562
|
]);
|
|
3522
|
-
return /* @__PURE__ */ (0,
|
|
3563
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
3523
3564
|
import_radix_ui13.DropdownMenu.CheckboxItem,
|
|
3524
3565
|
__spreadProps(__spreadValues({
|
|
3525
3566
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
@@ -3530,7 +3571,7 @@ function DropdownMenuCheckboxItem(_a) {
|
|
|
3530
3571
|
checked
|
|
3531
3572
|
}, props), {
|
|
3532
3573
|
children: [
|
|
3533
|
-
/* @__PURE__ */ (0,
|
|
3574
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_radix_ui13.DropdownMenu.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_lucide_react12.CheckIcon, { className: "size-4" }) }) }),
|
|
3534
3575
|
children
|
|
3535
3576
|
]
|
|
3536
3577
|
})
|
|
@@ -3538,7 +3579,7 @@ function DropdownMenuCheckboxItem(_a) {
|
|
|
3538
3579
|
}
|
|
3539
3580
|
function DropdownMenuRadioGroup(_a) {
|
|
3540
3581
|
var props = __objRest(_a, []);
|
|
3541
|
-
return /* @__PURE__ */ (0,
|
|
3582
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3542
3583
|
import_radix_ui13.DropdownMenu.RadioGroup,
|
|
3543
3584
|
__spreadValues({
|
|
3544
3585
|
"data-slot": "dropdown-menu-radio-group"
|
|
@@ -3553,7 +3594,7 @@ function DropdownMenuRadioItem(_a) {
|
|
|
3553
3594
|
"className",
|
|
3554
3595
|
"children"
|
|
3555
3596
|
]);
|
|
3556
|
-
return /* @__PURE__ */ (0,
|
|
3597
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
3557
3598
|
import_radix_ui13.DropdownMenu.RadioItem,
|
|
3558
3599
|
__spreadProps(__spreadValues({
|
|
3559
3600
|
"data-slot": "dropdown-menu-radio-item",
|
|
@@ -3563,7 +3604,7 @@ function DropdownMenuRadioItem(_a) {
|
|
|
3563
3604
|
)
|
|
3564
3605
|
}, props), {
|
|
3565
3606
|
children: [
|
|
3566
|
-
/* @__PURE__ */ (0,
|
|
3607
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_radix_ui13.DropdownMenu.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_lucide_react12.CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
3567
3608
|
children
|
|
3568
3609
|
]
|
|
3569
3610
|
})
|
|
@@ -3577,7 +3618,7 @@ function DropdownMenuLabel(_a) {
|
|
|
3577
3618
|
"className",
|
|
3578
3619
|
"inset"
|
|
3579
3620
|
]);
|
|
3580
|
-
return /* @__PURE__ */ (0,
|
|
3621
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3581
3622
|
import_radix_ui13.DropdownMenu.Label,
|
|
3582
3623
|
__spreadValues({
|
|
3583
3624
|
"data-slot": "dropdown-menu-label",
|
|
@@ -3595,7 +3636,7 @@ function DropdownMenuSeparator(_a) {
|
|
|
3595
3636
|
} = _b, props = __objRest(_b, [
|
|
3596
3637
|
"className"
|
|
3597
3638
|
]);
|
|
3598
|
-
return /* @__PURE__ */ (0,
|
|
3639
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3599
3640
|
import_radix_ui13.DropdownMenu.Separator,
|
|
3600
3641
|
__spreadValues({
|
|
3601
3642
|
"data-slot": "dropdown-menu-separator",
|
|
@@ -3609,7 +3650,7 @@ function DropdownMenuShortcut(_a) {
|
|
|
3609
3650
|
} = _b, props = __objRest(_b, [
|
|
3610
3651
|
"className"
|
|
3611
3652
|
]);
|
|
3612
|
-
return /* @__PURE__ */ (0,
|
|
3653
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3613
3654
|
"span",
|
|
3614
3655
|
__spreadValues({
|
|
3615
3656
|
"data-slot": "dropdown-menu-shortcut",
|
|
@@ -3622,7 +3663,7 @@ function DropdownMenuShortcut(_a) {
|
|
|
3622
3663
|
}
|
|
3623
3664
|
function DropdownMenuSub(_a) {
|
|
3624
3665
|
var props = __objRest(_a, []);
|
|
3625
|
-
return /* @__PURE__ */ (0,
|
|
3666
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_radix_ui13.DropdownMenu.Sub, __spreadValues({ "data-slot": "dropdown-menu-sub" }, props));
|
|
3626
3667
|
}
|
|
3627
3668
|
function DropdownMenuSubTrigger(_a) {
|
|
3628
3669
|
var _b = _a, {
|
|
@@ -3634,7 +3675,7 @@ function DropdownMenuSubTrigger(_a) {
|
|
|
3634
3675
|
"inset",
|
|
3635
3676
|
"children"
|
|
3636
3677
|
]);
|
|
3637
|
-
return /* @__PURE__ */ (0,
|
|
3678
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
3638
3679
|
import_radix_ui13.DropdownMenu.SubTrigger,
|
|
3639
3680
|
__spreadProps(__spreadValues({
|
|
3640
3681
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
@@ -3646,7 +3687,7 @@ function DropdownMenuSubTrigger(_a) {
|
|
|
3646
3687
|
}, props), {
|
|
3647
3688
|
children: [
|
|
3648
3689
|
children,
|
|
3649
|
-
/* @__PURE__ */ (0,
|
|
3690
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_lucide_react12.ChevronRightIcon, { className: "ml-auto size-4" })
|
|
3650
3691
|
]
|
|
3651
3692
|
})
|
|
3652
3693
|
);
|
|
@@ -3657,7 +3698,7 @@ function DropdownMenuSubContent(_a) {
|
|
|
3657
3698
|
} = _b, props = __objRest(_b, [
|
|
3658
3699
|
"className"
|
|
3659
3700
|
]);
|
|
3660
|
-
return /* @__PURE__ */ (0,
|
|
3701
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3661
3702
|
import_radix_ui13.DropdownMenu.SubContent,
|
|
3662
3703
|
__spreadValues({
|
|
3663
3704
|
"data-slot": "dropdown-menu-sub-content",
|
|
@@ -3670,11 +3711,11 @@ function DropdownMenuSubContent(_a) {
|
|
|
3670
3711
|
}
|
|
3671
3712
|
|
|
3672
3713
|
// components/ui/empty.tsx
|
|
3673
|
-
var
|
|
3674
|
-
var
|
|
3714
|
+
var import_class_variance_authority7 = require("class-variance-authority");
|
|
3715
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
3675
3716
|
function Empty(_a) {
|
|
3676
3717
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3677
|
-
return /* @__PURE__ */ (0,
|
|
3718
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3678
3719
|
"div",
|
|
3679
3720
|
__spreadValues({
|
|
3680
3721
|
"data-slot": "empty",
|
|
@@ -3687,7 +3728,7 @@ function Empty(_a) {
|
|
|
3687
3728
|
}
|
|
3688
3729
|
function EmptyHeader(_a) {
|
|
3689
3730
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3690
|
-
return /* @__PURE__ */ (0,
|
|
3731
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3691
3732
|
"div",
|
|
3692
3733
|
__spreadValues({
|
|
3693
3734
|
"data-slot": "empty-header",
|
|
@@ -3698,7 +3739,7 @@ function EmptyHeader(_a) {
|
|
|
3698
3739
|
}, props)
|
|
3699
3740
|
);
|
|
3700
3741
|
}
|
|
3701
|
-
var emptyMediaVariants = (0,
|
|
3742
|
+
var emptyMediaVariants = (0, import_class_variance_authority7.cva)(
|
|
3702
3743
|
"mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
3703
3744
|
{
|
|
3704
3745
|
variants: {
|
|
@@ -3720,7 +3761,7 @@ function EmptyMedia(_a) {
|
|
|
3720
3761
|
"className",
|
|
3721
3762
|
"variant"
|
|
3722
3763
|
]);
|
|
3723
|
-
return /* @__PURE__ */ (0,
|
|
3764
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3724
3765
|
"div",
|
|
3725
3766
|
__spreadValues({
|
|
3726
3767
|
"data-slot": "empty-icon",
|
|
@@ -3731,7 +3772,7 @@ function EmptyMedia(_a) {
|
|
|
3731
3772
|
}
|
|
3732
3773
|
function EmptyTitle(_a) {
|
|
3733
3774
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3734
|
-
return /* @__PURE__ */ (0,
|
|
3775
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3735
3776
|
"div",
|
|
3736
3777
|
__spreadValues({
|
|
3737
3778
|
"data-slot": "empty-title",
|
|
@@ -3741,7 +3782,7 @@ function EmptyTitle(_a) {
|
|
|
3741
3782
|
}
|
|
3742
3783
|
function EmptyDescription(_a) {
|
|
3743
3784
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3744
|
-
return /* @__PURE__ */ (0,
|
|
3785
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3745
3786
|
"div",
|
|
3746
3787
|
__spreadValues({
|
|
3747
3788
|
"data-slot": "empty-description",
|
|
@@ -3754,7 +3795,7 @@ function EmptyDescription(_a) {
|
|
|
3754
3795
|
}
|
|
3755
3796
|
function EmptyContent(_a) {
|
|
3756
3797
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3757
|
-
return /* @__PURE__ */ (0,
|
|
3798
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3758
3799
|
"div",
|
|
3759
3800
|
__spreadValues({
|
|
3760
3801
|
"data-slot": "empty-content",
|
|
@@ -3768,18 +3809,18 @@ function EmptyContent(_a) {
|
|
|
3768
3809
|
|
|
3769
3810
|
// components/ui/field.tsx
|
|
3770
3811
|
var import_react2 = require("react");
|
|
3771
|
-
var
|
|
3812
|
+
var import_class_variance_authority8 = require("class-variance-authority");
|
|
3772
3813
|
|
|
3773
3814
|
// components/ui/label.tsx
|
|
3774
3815
|
var import_radix_ui14 = require("radix-ui");
|
|
3775
|
-
var
|
|
3816
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
3776
3817
|
function Label(_a) {
|
|
3777
3818
|
var _b = _a, {
|
|
3778
3819
|
className
|
|
3779
3820
|
} = _b, props = __objRest(_b, [
|
|
3780
3821
|
"className"
|
|
3781
3822
|
]);
|
|
3782
|
-
return /* @__PURE__ */ (0,
|
|
3823
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3783
3824
|
import_radix_ui14.Label.Root,
|
|
3784
3825
|
__spreadValues({
|
|
3785
3826
|
"data-slot": "label",
|
|
@@ -3793,7 +3834,7 @@ function Label(_a) {
|
|
|
3793
3834
|
|
|
3794
3835
|
// components/ui/separator.tsx
|
|
3795
3836
|
var import_radix_ui15 = require("radix-ui");
|
|
3796
|
-
var
|
|
3837
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
3797
3838
|
function Separator(_a) {
|
|
3798
3839
|
var _b = _a, {
|
|
3799
3840
|
className,
|
|
@@ -3804,7 +3845,7 @@ function Separator(_a) {
|
|
|
3804
3845
|
"orientation",
|
|
3805
3846
|
"decorative"
|
|
3806
3847
|
]);
|
|
3807
|
-
return /* @__PURE__ */ (0,
|
|
3848
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3808
3849
|
import_radix_ui15.Separator.Root,
|
|
3809
3850
|
__spreadValues({
|
|
3810
3851
|
"data-slot": "separator",
|
|
@@ -3819,10 +3860,10 @@ function Separator(_a) {
|
|
|
3819
3860
|
}
|
|
3820
3861
|
|
|
3821
3862
|
// components/ui/field.tsx
|
|
3822
|
-
var
|
|
3863
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
3823
3864
|
function FieldSet(_a) {
|
|
3824
3865
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3825
|
-
return /* @__PURE__ */ (0,
|
|
3866
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3826
3867
|
"fieldset",
|
|
3827
3868
|
__spreadValues({
|
|
3828
3869
|
"data-slot": "field-set",
|
|
@@ -3842,7 +3883,7 @@ function FieldLegend(_a) {
|
|
|
3842
3883
|
"className",
|
|
3843
3884
|
"variant"
|
|
3844
3885
|
]);
|
|
3845
|
-
return /* @__PURE__ */ (0,
|
|
3886
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3846
3887
|
"legend",
|
|
3847
3888
|
__spreadValues({
|
|
3848
3889
|
"data-slot": "field-legend",
|
|
@@ -3858,7 +3899,7 @@ function FieldLegend(_a) {
|
|
|
3858
3899
|
}
|
|
3859
3900
|
function FieldGroup(_a) {
|
|
3860
3901
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3861
|
-
return /* @__PURE__ */ (0,
|
|
3902
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3862
3903
|
"div",
|
|
3863
3904
|
__spreadValues({
|
|
3864
3905
|
"data-slot": "field-group",
|
|
@@ -3869,7 +3910,7 @@ function FieldGroup(_a) {
|
|
|
3869
3910
|
}, props)
|
|
3870
3911
|
);
|
|
3871
3912
|
}
|
|
3872
|
-
var fieldVariants = (0,
|
|
3913
|
+
var fieldVariants = (0, import_class_variance_authority8.cva)(
|
|
3873
3914
|
"group/field flex w-full gap-3 data-[invalid=true]:text-destructive",
|
|
3874
3915
|
{
|
|
3875
3916
|
variants: {
|
|
@@ -3900,7 +3941,7 @@ function Field(_a) {
|
|
|
3900
3941
|
"className",
|
|
3901
3942
|
"orientation"
|
|
3902
3943
|
]);
|
|
3903
|
-
return /* @__PURE__ */ (0,
|
|
3944
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3904
3945
|
"div",
|
|
3905
3946
|
__spreadValues({
|
|
3906
3947
|
role: "group",
|
|
@@ -3912,7 +3953,7 @@ function Field(_a) {
|
|
|
3912
3953
|
}
|
|
3913
3954
|
function FieldContent(_a) {
|
|
3914
3955
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3915
|
-
return /* @__PURE__ */ (0,
|
|
3956
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3916
3957
|
"div",
|
|
3917
3958
|
__spreadValues({
|
|
3918
3959
|
"data-slot": "field-content",
|
|
@@ -3929,7 +3970,7 @@ function FieldLabel(_a) {
|
|
|
3929
3970
|
} = _b, props = __objRest(_b, [
|
|
3930
3971
|
"className"
|
|
3931
3972
|
]);
|
|
3932
|
-
return /* @__PURE__ */ (0,
|
|
3973
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3933
3974
|
Label,
|
|
3934
3975
|
__spreadValues({
|
|
3935
3976
|
"data-slot": "field-label",
|
|
@@ -3944,7 +3985,7 @@ function FieldLabel(_a) {
|
|
|
3944
3985
|
}
|
|
3945
3986
|
function FieldTitle(_a) {
|
|
3946
3987
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3947
|
-
return /* @__PURE__ */ (0,
|
|
3988
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3948
3989
|
"div",
|
|
3949
3990
|
__spreadValues({
|
|
3950
3991
|
"data-slot": "field-label",
|
|
@@ -3957,7 +3998,7 @@ function FieldTitle(_a) {
|
|
|
3957
3998
|
}
|
|
3958
3999
|
function FieldDescription(_a) {
|
|
3959
4000
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3960
|
-
return /* @__PURE__ */ (0,
|
|
4001
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3961
4002
|
"p",
|
|
3962
4003
|
__spreadValues({
|
|
3963
4004
|
"data-slot": "field-description",
|
|
@@ -3978,7 +4019,7 @@ function FieldSeparator(_a) {
|
|
|
3978
4019
|
"children",
|
|
3979
4020
|
"className"
|
|
3980
4021
|
]);
|
|
3981
|
-
return /* @__PURE__ */ (0,
|
|
4022
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
3982
4023
|
"div",
|
|
3983
4024
|
__spreadProps(__spreadValues({
|
|
3984
4025
|
"data-slot": "field-separator",
|
|
@@ -3989,8 +4030,8 @@ function FieldSeparator(_a) {
|
|
|
3989
4030
|
)
|
|
3990
4031
|
}, props), {
|
|
3991
4032
|
children: [
|
|
3992
|
-
/* @__PURE__ */ (0,
|
|
3993
|
-
children && /* @__PURE__ */ (0,
|
|
4033
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Separator, { className: "absolute inset-0 top-1/2" }),
|
|
4034
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3994
4035
|
"span",
|
|
3995
4036
|
{
|
|
3996
4037
|
className: "relative mx-auto block w-fit bg-prominent px-2 text-on-subtle",
|
|
@@ -4026,14 +4067,14 @@ function FieldError(_a) {
|
|
|
4026
4067
|
if ((uniqueErrors == null ? void 0 : uniqueErrors.length) == 1) {
|
|
4027
4068
|
return (_a2 = uniqueErrors[0]) == null ? void 0 : _a2.message;
|
|
4028
4069
|
}
|
|
4029
|
-
return /* @__PURE__ */ (0,
|
|
4030
|
-
(error, index) => (error == null ? void 0 : error.message) && /* @__PURE__ */ (0,
|
|
4070
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: uniqueErrors.map(
|
|
4071
|
+
(error, index) => (error == null ? void 0 : error.message) && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("li", { children: error.message }, index)
|
|
4031
4072
|
) });
|
|
4032
4073
|
}, [children, errors]);
|
|
4033
4074
|
if (!content) {
|
|
4034
4075
|
return null;
|
|
4035
4076
|
}
|
|
4036
|
-
return /* @__PURE__ */ (0,
|
|
4077
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
4037
4078
|
"div",
|
|
4038
4079
|
__spreadProps(__spreadValues({
|
|
4039
4080
|
role: "alert",
|
|
@@ -4049,14 +4090,14 @@ function FieldError(_a) {
|
|
|
4049
4090
|
var React8 = __toESM(require("react"), 1);
|
|
4050
4091
|
var import_radix_ui16 = require("radix-ui");
|
|
4051
4092
|
var import_react_hook_form = require("react-hook-form");
|
|
4052
|
-
var
|
|
4093
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
4053
4094
|
var Form = import_react_hook_form.FormProvider;
|
|
4054
4095
|
var FormFieldContext = React8.createContext(
|
|
4055
4096
|
{}
|
|
4056
4097
|
);
|
|
4057
4098
|
var FormField = (_a) => {
|
|
4058
4099
|
var props = __objRest(_a, []);
|
|
4059
|
-
return /* @__PURE__ */ (0,
|
|
4100
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react_hook_form.Controller, __spreadValues({}, props)) });
|
|
4060
4101
|
};
|
|
4061
4102
|
var useFormField = () => {
|
|
4062
4103
|
const fieldContext = React8.useContext(FormFieldContext);
|
|
@@ -4082,7 +4123,7 @@ var FormItemContext = React8.createContext(
|
|
|
4082
4123
|
function FormItem(_a) {
|
|
4083
4124
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4084
4125
|
const id = React8.useId();
|
|
4085
|
-
return /* @__PURE__ */ (0,
|
|
4126
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
4086
4127
|
"div",
|
|
4087
4128
|
__spreadValues({
|
|
4088
4129
|
"data-slot": "form-item",
|
|
@@ -4097,7 +4138,7 @@ function FormLabel(_a) {
|
|
|
4097
4138
|
"className"
|
|
4098
4139
|
]);
|
|
4099
4140
|
const { error, formItemId } = useFormField();
|
|
4100
|
-
return /* @__PURE__ */ (0,
|
|
4141
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
4101
4142
|
Label,
|
|
4102
4143
|
__spreadValues({
|
|
4103
4144
|
"data-slot": "form-label",
|
|
@@ -4110,7 +4151,7 @@ function FormLabel(_a) {
|
|
|
4110
4151
|
function FormControl(_a) {
|
|
4111
4152
|
var props = __objRest(_a, []);
|
|
4112
4153
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
4113
|
-
return /* @__PURE__ */ (0,
|
|
4154
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
4114
4155
|
import_radix_ui16.Slot.Root,
|
|
4115
4156
|
__spreadValues({
|
|
4116
4157
|
"data-slot": "form-control",
|
|
@@ -4123,7 +4164,7 @@ function FormControl(_a) {
|
|
|
4123
4164
|
function FormDescription(_a) {
|
|
4124
4165
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4125
4166
|
const { formDescriptionId } = useFormField();
|
|
4126
|
-
return /* @__PURE__ */ (0,
|
|
4167
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
4127
4168
|
"p",
|
|
4128
4169
|
__spreadValues({
|
|
4129
4170
|
"data-slot": "form-description",
|
|
@@ -4140,7 +4181,7 @@ function FormMessage(_a) {
|
|
|
4140
4181
|
if (!body) {
|
|
4141
4182
|
return null;
|
|
4142
4183
|
}
|
|
4143
|
-
return /* @__PURE__ */ (0,
|
|
4184
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
4144
4185
|
"p",
|
|
4145
4186
|
__spreadProps(__spreadValues({
|
|
4146
4187
|
"data-slot": "form-message",
|
|
@@ -4154,14 +4195,14 @@ function FormMessage(_a) {
|
|
|
4154
4195
|
|
|
4155
4196
|
// components/ui/hover-card.tsx
|
|
4156
4197
|
var import_radix_ui17 = require("radix-ui");
|
|
4157
|
-
var
|
|
4198
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
4158
4199
|
function HoverCard(_a) {
|
|
4159
4200
|
var props = __objRest(_a, []);
|
|
4160
|
-
return /* @__PURE__ */ (0,
|
|
4201
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_radix_ui17.HoverCard.Root, __spreadValues({ "data-slot": "hover-card" }, props));
|
|
4161
4202
|
}
|
|
4162
4203
|
function HoverCardTrigger(_a) {
|
|
4163
4204
|
var props = __objRest(_a, []);
|
|
4164
|
-
return /* @__PURE__ */ (0,
|
|
4205
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_radix_ui17.HoverCard.Trigger, __spreadValues({ "data-slot": "hover-card-trigger" }, props));
|
|
4165
4206
|
}
|
|
4166
4207
|
function HoverCardContent(_a) {
|
|
4167
4208
|
var _b = _a, {
|
|
@@ -4173,7 +4214,7 @@ function HoverCardContent(_a) {
|
|
|
4173
4214
|
"align",
|
|
4174
4215
|
"sideOffset"
|
|
4175
4216
|
]);
|
|
4176
|
-
return /* @__PURE__ */ (0,
|
|
4217
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_radix_ui17.HoverCard.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
4177
4218
|
import_radix_ui17.HoverCard.Content,
|
|
4178
4219
|
__spreadValues({
|
|
4179
4220
|
"data-slot": "hover-card-content",
|
|
@@ -4191,7 +4232,7 @@ function HoverCardContent(_a) {
|
|
|
4191
4232
|
var React9 = __toESM(require("react"), 1);
|
|
4192
4233
|
var import_input_otp = require("input-otp");
|
|
4193
4234
|
var import_lucide_react13 = require("lucide-react");
|
|
4194
|
-
var
|
|
4235
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
4195
4236
|
function InputOTP(_a) {
|
|
4196
4237
|
var _b = _a, {
|
|
4197
4238
|
className,
|
|
@@ -4200,7 +4241,7 @@ function InputOTP(_a) {
|
|
|
4200
4241
|
"className",
|
|
4201
4242
|
"containerClassName"
|
|
4202
4243
|
]);
|
|
4203
|
-
return /* @__PURE__ */ (0,
|
|
4244
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
4204
4245
|
import_input_otp.OTPInput,
|
|
4205
4246
|
__spreadValues({
|
|
4206
4247
|
"data-slot": "input-otp",
|
|
@@ -4214,7 +4255,7 @@ function InputOTP(_a) {
|
|
|
4214
4255
|
}
|
|
4215
4256
|
function InputOTPGroup(_a) {
|
|
4216
4257
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4217
|
-
return /* @__PURE__ */ (0,
|
|
4258
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
4218
4259
|
"div",
|
|
4219
4260
|
__spreadValues({
|
|
4220
4261
|
"data-slot": "input-otp-group",
|
|
@@ -4233,7 +4274,7 @@ function InputOTPSlot(_a) {
|
|
|
4233
4274
|
var _a2;
|
|
4234
4275
|
const inputOTPContext = React9.useContext(import_input_otp.OTPInputContext);
|
|
4235
4276
|
const { char, hasFakeCaret, isActive } = (_a2 = inputOTPContext == null ? void 0 : inputOTPContext.slots[index]) != null ? _a2 : {};
|
|
4236
|
-
return /* @__PURE__ */ (0,
|
|
4277
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
4237
4278
|
"div",
|
|
4238
4279
|
__spreadProps(__spreadValues({
|
|
4239
4280
|
"data-slot": "input-otp-slot",
|
|
@@ -4245,23 +4286,23 @@ function InputOTPSlot(_a) {
|
|
|
4245
4286
|
}, props), {
|
|
4246
4287
|
children: [
|
|
4247
4288
|
char,
|
|
4248
|
-
hasFakeCaret && /* @__PURE__ */ (0,
|
|
4289
|
+
hasFakeCaret && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
|
|
4249
4290
|
]
|
|
4250
4291
|
})
|
|
4251
4292
|
);
|
|
4252
4293
|
}
|
|
4253
4294
|
function InputOTPSeparator(_a) {
|
|
4254
4295
|
var props = __objRest(_a, []);
|
|
4255
|
-
return /* @__PURE__ */ (0,
|
|
4296
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", __spreadProps(__spreadValues({ "data-slot": "input-otp-separator", role: "separator" }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react13.MinusIcon, {}) }));
|
|
4256
4297
|
}
|
|
4257
4298
|
|
|
4258
4299
|
// components/ui/item.tsx
|
|
4259
|
-
var
|
|
4300
|
+
var import_class_variance_authority9 = require("class-variance-authority");
|
|
4260
4301
|
var import_radix_ui18 = require("radix-ui");
|
|
4261
|
-
var
|
|
4302
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
4262
4303
|
function ItemGroup(_a) {
|
|
4263
4304
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4264
|
-
return /* @__PURE__ */ (0,
|
|
4305
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
4265
4306
|
"div",
|
|
4266
4307
|
__spreadValues({
|
|
4267
4308
|
role: "list",
|
|
@@ -4276,7 +4317,7 @@ function ItemSeparator(_a) {
|
|
|
4276
4317
|
} = _b, props = __objRest(_b, [
|
|
4277
4318
|
"className"
|
|
4278
4319
|
]);
|
|
4279
|
-
return /* @__PURE__ */ (0,
|
|
4320
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
4280
4321
|
Separator,
|
|
4281
4322
|
__spreadValues({
|
|
4282
4323
|
"data-slot": "item-separator",
|
|
@@ -4285,7 +4326,7 @@ function ItemSeparator(_a) {
|
|
|
4285
4326
|
}, props)
|
|
4286
4327
|
);
|
|
4287
4328
|
}
|
|
4288
|
-
var itemVariants = (0,
|
|
4329
|
+
var itemVariants = (0, import_class_variance_authority9.cva)(
|
|
4289
4330
|
"group/item flex flex-wrap items-center rounded-md border border-transparent text-sm transition-colors duration-instant outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-secondary-hover",
|
|
4290
4331
|
{
|
|
4291
4332
|
variants: {
|
|
@@ -4318,7 +4359,7 @@ function Item(_a) {
|
|
|
4318
4359
|
"asChild"
|
|
4319
4360
|
]);
|
|
4320
4361
|
const Comp = asChild ? import_radix_ui18.Slot.Root : "div";
|
|
4321
|
-
return /* @__PURE__ */ (0,
|
|
4362
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
4322
4363
|
Comp,
|
|
4323
4364
|
__spreadValues({
|
|
4324
4365
|
"data-slot": "item",
|
|
@@ -4328,7 +4369,7 @@ function Item(_a) {
|
|
|
4328
4369
|
}, props)
|
|
4329
4370
|
);
|
|
4330
4371
|
}
|
|
4331
|
-
var itemMediaVariants = (0,
|
|
4372
|
+
var itemMediaVariants = (0, import_class_variance_authority9.cva)(
|
|
4332
4373
|
"flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none",
|
|
4333
4374
|
{
|
|
4334
4375
|
variants: {
|
|
@@ -4351,7 +4392,7 @@ function ItemMedia(_a) {
|
|
|
4351
4392
|
"className",
|
|
4352
4393
|
"variant"
|
|
4353
4394
|
]);
|
|
4354
|
-
return /* @__PURE__ */ (0,
|
|
4395
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
4355
4396
|
"div",
|
|
4356
4397
|
__spreadValues({
|
|
4357
4398
|
"data-slot": "item-media",
|
|
@@ -4362,7 +4403,7 @@ function ItemMedia(_a) {
|
|
|
4362
4403
|
}
|
|
4363
4404
|
function ItemContent(_a) {
|
|
4364
4405
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4365
|
-
return /* @__PURE__ */ (0,
|
|
4406
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
4366
4407
|
"div",
|
|
4367
4408
|
__spreadValues({
|
|
4368
4409
|
"data-slot": "item-content",
|
|
@@ -4375,7 +4416,7 @@ function ItemContent(_a) {
|
|
|
4375
4416
|
}
|
|
4376
4417
|
function ItemTitle(_a) {
|
|
4377
4418
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4378
|
-
return /* @__PURE__ */ (0,
|
|
4419
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
4379
4420
|
"div",
|
|
4380
4421
|
__spreadValues({
|
|
4381
4422
|
"data-slot": "item-title",
|
|
@@ -4388,7 +4429,7 @@ function ItemTitle(_a) {
|
|
|
4388
4429
|
}
|
|
4389
4430
|
function ItemDescription(_a) {
|
|
4390
4431
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4391
|
-
return /* @__PURE__ */ (0,
|
|
4432
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
4392
4433
|
"p",
|
|
4393
4434
|
__spreadValues({
|
|
4394
4435
|
"data-slot": "item-description",
|
|
@@ -4402,7 +4443,7 @@ function ItemDescription(_a) {
|
|
|
4402
4443
|
}
|
|
4403
4444
|
function ItemActions(_a) {
|
|
4404
4445
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4405
|
-
return /* @__PURE__ */ (0,
|
|
4446
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
4406
4447
|
"div",
|
|
4407
4448
|
__spreadValues({
|
|
4408
4449
|
"data-slot": "item-actions",
|
|
@@ -4412,7 +4453,7 @@ function ItemActions(_a) {
|
|
|
4412
4453
|
}
|
|
4413
4454
|
function ItemHeader(_a) {
|
|
4414
4455
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4415
|
-
return /* @__PURE__ */ (0,
|
|
4456
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
4416
4457
|
"div",
|
|
4417
4458
|
__spreadValues({
|
|
4418
4459
|
"data-slot": "item-header",
|
|
@@ -4425,7 +4466,7 @@ function ItemHeader(_a) {
|
|
|
4425
4466
|
}
|
|
4426
4467
|
function ItemFooter(_a) {
|
|
4427
4468
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4428
|
-
return /* @__PURE__ */ (0,
|
|
4469
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
4429
4470
|
"div",
|
|
4430
4471
|
__spreadValues({
|
|
4431
4472
|
"data-slot": "item-footer",
|
|
@@ -4438,10 +4479,10 @@ function ItemFooter(_a) {
|
|
|
4438
4479
|
}
|
|
4439
4480
|
|
|
4440
4481
|
// components/ui/kbd.tsx
|
|
4441
|
-
var
|
|
4482
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
4442
4483
|
function Kbd(_a) {
|
|
4443
4484
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4444
|
-
return /* @__PURE__ */ (0,
|
|
4485
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
4445
4486
|
"kbd",
|
|
4446
4487
|
__spreadValues({
|
|
4447
4488
|
"data-slot": "kbd",
|
|
@@ -4456,7 +4497,7 @@ function Kbd(_a) {
|
|
|
4456
4497
|
}
|
|
4457
4498
|
function KbdGroup(_a) {
|
|
4458
4499
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4459
|
-
return /* @__PURE__ */ (0,
|
|
4500
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
4460
4501
|
"kbd",
|
|
4461
4502
|
__spreadValues({
|
|
4462
4503
|
"data-slot": "kbd-group",
|
|
@@ -4466,10 +4507,10 @@ function KbdGroup(_a) {
|
|
|
4466
4507
|
}
|
|
4467
4508
|
|
|
4468
4509
|
// components/ui/link.tsx
|
|
4469
|
-
var
|
|
4510
|
+
var import_class_variance_authority10 = require("class-variance-authority");
|
|
4470
4511
|
var import_radix_ui19 = require("radix-ui");
|
|
4471
|
-
var
|
|
4472
|
-
var linkVariants = (0,
|
|
4512
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
4513
|
+
var linkVariants = (0, import_class_variance_authority10.cva)(
|
|
4473
4514
|
"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",
|
|
4474
4515
|
{
|
|
4475
4516
|
variants: {
|
|
@@ -4495,7 +4536,7 @@ function Link(_a) {
|
|
|
4495
4536
|
"asChild"
|
|
4496
4537
|
]);
|
|
4497
4538
|
const Comp = asChild ? import_radix_ui19.Slot.Root : "a";
|
|
4498
|
-
return /* @__PURE__ */ (0,
|
|
4539
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4499
4540
|
Comp,
|
|
4500
4541
|
__spreadValues({
|
|
4501
4542
|
"data-slot": "link",
|
|
@@ -4508,14 +4549,14 @@ function Link(_a) {
|
|
|
4508
4549
|
// components/ui/menubar.tsx
|
|
4509
4550
|
var import_lucide_react14 = require("lucide-react");
|
|
4510
4551
|
var import_radix_ui20 = require("radix-ui");
|
|
4511
|
-
var
|
|
4552
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
4512
4553
|
function Menubar(_a) {
|
|
4513
4554
|
var _b = _a, {
|
|
4514
4555
|
className
|
|
4515
4556
|
} = _b, props = __objRest(_b, [
|
|
4516
4557
|
"className"
|
|
4517
4558
|
]);
|
|
4518
|
-
return /* @__PURE__ */ (0,
|
|
4559
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4519
4560
|
import_radix_ui20.Menubar.Root,
|
|
4520
4561
|
__spreadValues({
|
|
4521
4562
|
"data-slot": "menubar",
|
|
@@ -4528,19 +4569,19 @@ function Menubar(_a) {
|
|
|
4528
4569
|
}
|
|
4529
4570
|
function MenubarMenu(_a) {
|
|
4530
4571
|
var props = __objRest(_a, []);
|
|
4531
|
-
return /* @__PURE__ */ (0,
|
|
4572
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_radix_ui20.Menubar.Menu, __spreadValues({ "data-slot": "menubar-menu" }, props));
|
|
4532
4573
|
}
|
|
4533
4574
|
function MenubarGroup(_a) {
|
|
4534
4575
|
var props = __objRest(_a, []);
|
|
4535
|
-
return /* @__PURE__ */ (0,
|
|
4576
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_radix_ui20.Menubar.Group, __spreadValues({ "data-slot": "menubar-group" }, props));
|
|
4536
4577
|
}
|
|
4537
4578
|
function MenubarPortal(_a) {
|
|
4538
4579
|
var props = __objRest(_a, []);
|
|
4539
|
-
return /* @__PURE__ */ (0,
|
|
4580
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_radix_ui20.Menubar.Portal, __spreadValues({ "data-slot": "menubar-portal" }, props));
|
|
4540
4581
|
}
|
|
4541
4582
|
function MenubarRadioGroup(_a) {
|
|
4542
4583
|
var props = __objRest(_a, []);
|
|
4543
|
-
return /* @__PURE__ */ (0,
|
|
4584
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_radix_ui20.Menubar.RadioGroup, __spreadValues({ "data-slot": "menubar-radio-group" }, props));
|
|
4544
4585
|
}
|
|
4545
4586
|
function MenubarTrigger(_a) {
|
|
4546
4587
|
var _b = _a, {
|
|
@@ -4548,7 +4589,7 @@ function MenubarTrigger(_a) {
|
|
|
4548
4589
|
} = _b, props = __objRest(_b, [
|
|
4549
4590
|
"className"
|
|
4550
4591
|
]);
|
|
4551
|
-
return /* @__PURE__ */ (0,
|
|
4592
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4552
4593
|
import_radix_ui20.Menubar.Trigger,
|
|
4553
4594
|
__spreadValues({
|
|
4554
4595
|
"data-slot": "menubar-trigger",
|
|
@@ -4571,7 +4612,7 @@ function MenubarContent(_a) {
|
|
|
4571
4612
|
"alignOffset",
|
|
4572
4613
|
"sideOffset"
|
|
4573
4614
|
]);
|
|
4574
|
-
return /* @__PURE__ */ (0,
|
|
4615
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(MenubarPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4575
4616
|
import_radix_ui20.Menubar.Content,
|
|
4576
4617
|
__spreadValues({
|
|
4577
4618
|
"data-slot": "menubar-content",
|
|
@@ -4595,7 +4636,7 @@ function MenubarItem(_a) {
|
|
|
4595
4636
|
"inset",
|
|
4596
4637
|
"variant"
|
|
4597
4638
|
]);
|
|
4598
|
-
return /* @__PURE__ */ (0,
|
|
4639
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4599
4640
|
import_radix_ui20.Menubar.Item,
|
|
4600
4641
|
__spreadValues({
|
|
4601
4642
|
"data-slot": "menubar-item",
|
|
@@ -4618,7 +4659,7 @@ function MenubarCheckboxItem(_a) {
|
|
|
4618
4659
|
"children",
|
|
4619
4660
|
"checked"
|
|
4620
4661
|
]);
|
|
4621
|
-
return /* @__PURE__ */ (0,
|
|
4662
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
4622
4663
|
import_radix_ui20.Menubar.CheckboxItem,
|
|
4623
4664
|
__spreadProps(__spreadValues({
|
|
4624
4665
|
"data-slot": "menubar-checkbox-item",
|
|
@@ -4629,7 +4670,7 @@ function MenubarCheckboxItem(_a) {
|
|
|
4629
4670
|
checked
|
|
4630
4671
|
}, props), {
|
|
4631
4672
|
children: [
|
|
4632
|
-
/* @__PURE__ */ (0,
|
|
4673
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_radix_ui20.Menubar.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react14.CheckIcon, { className: "size-4" }) }) }),
|
|
4633
4674
|
children
|
|
4634
4675
|
]
|
|
4635
4676
|
})
|
|
@@ -4643,7 +4684,7 @@ function MenubarRadioItem(_a) {
|
|
|
4643
4684
|
"className",
|
|
4644
4685
|
"children"
|
|
4645
4686
|
]);
|
|
4646
|
-
return /* @__PURE__ */ (0,
|
|
4687
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
4647
4688
|
import_radix_ui20.Menubar.RadioItem,
|
|
4648
4689
|
__spreadProps(__spreadValues({
|
|
4649
4690
|
"data-slot": "menubar-radio-item",
|
|
@@ -4653,7 +4694,7 @@ function MenubarRadioItem(_a) {
|
|
|
4653
4694
|
)
|
|
4654
4695
|
}, props), {
|
|
4655
4696
|
children: [
|
|
4656
|
-
/* @__PURE__ */ (0,
|
|
4697
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_radix_ui20.Menubar.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react14.CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
4657
4698
|
children
|
|
4658
4699
|
]
|
|
4659
4700
|
})
|
|
@@ -4667,7 +4708,7 @@ function MenubarLabel(_a) {
|
|
|
4667
4708
|
"className",
|
|
4668
4709
|
"inset"
|
|
4669
4710
|
]);
|
|
4670
|
-
return /* @__PURE__ */ (0,
|
|
4711
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4671
4712
|
import_radix_ui20.Menubar.Label,
|
|
4672
4713
|
__spreadValues({
|
|
4673
4714
|
"data-slot": "menubar-label",
|
|
@@ -4685,7 +4726,7 @@ function MenubarSeparator(_a) {
|
|
|
4685
4726
|
} = _b, props = __objRest(_b, [
|
|
4686
4727
|
"className"
|
|
4687
4728
|
]);
|
|
4688
|
-
return /* @__PURE__ */ (0,
|
|
4729
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4689
4730
|
import_radix_ui20.Menubar.Separator,
|
|
4690
4731
|
__spreadValues({
|
|
4691
4732
|
"data-slot": "menubar-separator",
|
|
@@ -4699,7 +4740,7 @@ function MenubarShortcut(_a) {
|
|
|
4699
4740
|
} = _b, props = __objRest(_b, [
|
|
4700
4741
|
"className"
|
|
4701
4742
|
]);
|
|
4702
|
-
return /* @__PURE__ */ (0,
|
|
4743
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4703
4744
|
"span",
|
|
4704
4745
|
__spreadValues({
|
|
4705
4746
|
"data-slot": "menubar-shortcut",
|
|
@@ -4712,7 +4753,7 @@ function MenubarShortcut(_a) {
|
|
|
4712
4753
|
}
|
|
4713
4754
|
function MenubarSub(_a) {
|
|
4714
4755
|
var props = __objRest(_a, []);
|
|
4715
|
-
return /* @__PURE__ */ (0,
|
|
4756
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_radix_ui20.Menubar.Sub, __spreadValues({ "data-slot": "menubar-sub" }, props));
|
|
4716
4757
|
}
|
|
4717
4758
|
function MenubarSubTrigger(_a) {
|
|
4718
4759
|
var _b = _a, {
|
|
@@ -4724,7 +4765,7 @@ function MenubarSubTrigger(_a) {
|
|
|
4724
4765
|
"inset",
|
|
4725
4766
|
"children"
|
|
4726
4767
|
]);
|
|
4727
|
-
return /* @__PURE__ */ (0,
|
|
4768
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
4728
4769
|
import_radix_ui20.Menubar.SubTrigger,
|
|
4729
4770
|
__spreadProps(__spreadValues({
|
|
4730
4771
|
"data-slot": "menubar-sub-trigger",
|
|
@@ -4736,7 +4777,7 @@ function MenubarSubTrigger(_a) {
|
|
|
4736
4777
|
}, props), {
|
|
4737
4778
|
children: [
|
|
4738
4779
|
children,
|
|
4739
|
-
/* @__PURE__ */ (0,
|
|
4780
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react14.ChevronRightIcon, { className: "ml-auto h-4 w-4" })
|
|
4740
4781
|
]
|
|
4741
4782
|
})
|
|
4742
4783
|
);
|
|
@@ -4747,7 +4788,7 @@ function MenubarSubContent(_a) {
|
|
|
4747
4788
|
} = _b, props = __objRest(_b, [
|
|
4748
4789
|
"className"
|
|
4749
4790
|
]);
|
|
4750
|
-
return /* @__PURE__ */ (0,
|
|
4791
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4751
4792
|
import_radix_ui20.Menubar.SubContent,
|
|
4752
4793
|
__spreadValues({
|
|
4753
4794
|
"data-slot": "menubar-sub-content",
|
|
@@ -4761,7 +4802,7 @@ function MenubarSubContent(_a) {
|
|
|
4761
4802
|
|
|
4762
4803
|
// components/ui/native-select.tsx
|
|
4763
4804
|
var import_lucide_react15 = require("lucide-react");
|
|
4764
|
-
var
|
|
4805
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
4765
4806
|
function NativeSelect(_a) {
|
|
4766
4807
|
var _b = _a, {
|
|
4767
4808
|
className,
|
|
@@ -4770,13 +4811,13 @@ function NativeSelect(_a) {
|
|
|
4770
4811
|
"className",
|
|
4771
4812
|
"size"
|
|
4772
4813
|
]);
|
|
4773
|
-
return /* @__PURE__ */ (0,
|
|
4814
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
4774
4815
|
"div",
|
|
4775
4816
|
{
|
|
4776
4817
|
className: "group/native-select relative w-fit has-[select:disabled]:opacity-50",
|
|
4777
4818
|
"data-slot": "native-select-wrapper",
|
|
4778
4819
|
children: [
|
|
4779
|
-
/* @__PURE__ */ (0,
|
|
4820
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4780
4821
|
"select",
|
|
4781
4822
|
__spreadValues({
|
|
4782
4823
|
"data-slot": "native-select",
|
|
@@ -4788,7 +4829,7 @@ function NativeSelect(_a) {
|
|
|
4788
4829
|
)
|
|
4789
4830
|
}, props)
|
|
4790
4831
|
),
|
|
4791
|
-
/* @__PURE__ */ (0,
|
|
4832
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4792
4833
|
import_lucide_react15.ChevronDownIcon,
|
|
4793
4834
|
{
|
|
4794
4835
|
className: "pointer-events-none absolute top-1/2 right-3.5 size-4 -translate-y-1/2 text-on-subtle opacity-50 select-none",
|
|
@@ -4802,7 +4843,7 @@ function NativeSelect(_a) {
|
|
|
4802
4843
|
}
|
|
4803
4844
|
function NativeSelectOption(_a) {
|
|
4804
4845
|
var props = __objRest(_a, []);
|
|
4805
|
-
return /* @__PURE__ */ (0,
|
|
4846
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("option", __spreadValues({ "data-slot": "native-select-option" }, props));
|
|
4806
4847
|
}
|
|
4807
4848
|
function NativeSelectOptGroup(_a) {
|
|
4808
4849
|
var _b = _a, {
|
|
@@ -4810,7 +4851,7 @@ function NativeSelectOptGroup(_a) {
|
|
|
4810
4851
|
} = _b, props = __objRest(_b, [
|
|
4811
4852
|
"className"
|
|
4812
4853
|
]);
|
|
4813
|
-
return /* @__PURE__ */ (0,
|
|
4854
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4814
4855
|
"optgroup",
|
|
4815
4856
|
__spreadValues({
|
|
4816
4857
|
"data-slot": "native-select-optgroup",
|
|
@@ -4820,10 +4861,10 @@ function NativeSelectOptGroup(_a) {
|
|
|
4820
4861
|
}
|
|
4821
4862
|
|
|
4822
4863
|
// components/ui/navigation-button.tsx
|
|
4823
|
-
var
|
|
4864
|
+
var import_class_variance_authority11 = require("class-variance-authority");
|
|
4824
4865
|
var import_radix_ui21 = require("radix-ui");
|
|
4825
|
-
var
|
|
4826
|
-
var navigationButtonVariants = (0,
|
|
4866
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
4867
|
+
var navigationButtonVariants = (0, import_class_variance_authority11.cva)(
|
|
4827
4868
|
"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",
|
|
4828
4869
|
{
|
|
4829
4870
|
variants: {
|
|
@@ -4852,7 +4893,7 @@ function NavigationButton(_a) {
|
|
|
4852
4893
|
"children"
|
|
4853
4894
|
]);
|
|
4854
4895
|
const Comp = asChild ? import_radix_ui21.Slot.Root : "button";
|
|
4855
|
-
return /* @__PURE__ */ (0,
|
|
4896
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4856
4897
|
Comp,
|
|
4857
4898
|
__spreadProps(__spreadValues({
|
|
4858
4899
|
"data-slot": "navigation-button",
|
|
@@ -4865,10 +4906,10 @@ function NavigationButton(_a) {
|
|
|
4865
4906
|
}
|
|
4866
4907
|
|
|
4867
4908
|
// components/ui/navigation-menu.tsx
|
|
4868
|
-
var
|
|
4909
|
+
var import_class_variance_authority12 = require("class-variance-authority");
|
|
4869
4910
|
var import_lucide_react16 = require("lucide-react");
|
|
4870
4911
|
var import_radix_ui22 = require("radix-ui");
|
|
4871
|
-
var
|
|
4912
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
4872
4913
|
function NavigationMenu(_a) {
|
|
4873
4914
|
var _b = _a, {
|
|
4874
4915
|
className,
|
|
@@ -4879,7 +4920,7 @@ function NavigationMenu(_a) {
|
|
|
4879
4920
|
"children",
|
|
4880
4921
|
"viewport"
|
|
4881
4922
|
]);
|
|
4882
|
-
return /* @__PURE__ */ (0,
|
|
4923
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
4883
4924
|
import_radix_ui22.NavigationMenu.Root,
|
|
4884
4925
|
__spreadProps(__spreadValues({
|
|
4885
4926
|
"data-slot": "navigation-menu",
|
|
@@ -4891,7 +4932,7 @@ function NavigationMenu(_a) {
|
|
|
4891
4932
|
}, props), {
|
|
4892
4933
|
children: [
|
|
4893
4934
|
children,
|
|
4894
|
-
viewport && /* @__PURE__ */ (0,
|
|
4935
|
+
viewport && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(NavigationMenuViewport, {})
|
|
4895
4936
|
]
|
|
4896
4937
|
})
|
|
4897
4938
|
);
|
|
@@ -4902,7 +4943,7 @@ function NavigationMenuList(_a) {
|
|
|
4902
4943
|
} = _b, props = __objRest(_b, [
|
|
4903
4944
|
"className"
|
|
4904
4945
|
]);
|
|
4905
|
-
return /* @__PURE__ */ (0,
|
|
4946
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4906
4947
|
import_radix_ui22.NavigationMenu.List,
|
|
4907
4948
|
__spreadValues({
|
|
4908
4949
|
"data-slot": "navigation-menu-list",
|
|
@@ -4919,7 +4960,7 @@ function NavigationMenuItem(_a) {
|
|
|
4919
4960
|
} = _b, props = __objRest(_b, [
|
|
4920
4961
|
"className"
|
|
4921
4962
|
]);
|
|
4922
|
-
return /* @__PURE__ */ (0,
|
|
4963
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4923
4964
|
import_radix_ui22.NavigationMenu.Item,
|
|
4924
4965
|
__spreadValues({
|
|
4925
4966
|
"data-slot": "navigation-menu-item",
|
|
@@ -4927,7 +4968,7 @@ function NavigationMenuItem(_a) {
|
|
|
4927
4968
|
}, props)
|
|
4928
4969
|
);
|
|
4929
4970
|
}
|
|
4930
|
-
var navigationMenuTriggerStyle = (0,
|
|
4971
|
+
var navigationMenuTriggerStyle = (0, import_class_variance_authority12.cva)(
|
|
4931
4972
|
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-prominent px-4 py-2 text-sm font-medium transition-[color,box-shadow] outline-none hover:bg-secondary-hover hover:text-on-prominent focus:bg-secondary-hover focus:text-on-prominent focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-secondary-hover data-[state=open]:text-on-prominent data-[state=open]:hover:bg-secondary-hover data-[state=open]:focus:bg-secondary-hover"
|
|
4932
4973
|
);
|
|
4933
4974
|
function NavigationMenuTrigger(_a) {
|
|
@@ -4938,7 +4979,7 @@ function NavigationMenuTrigger(_a) {
|
|
|
4938
4979
|
"className",
|
|
4939
4980
|
"children"
|
|
4940
4981
|
]);
|
|
4941
|
-
return /* @__PURE__ */ (0,
|
|
4982
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
4942
4983
|
import_radix_ui22.NavigationMenu.Trigger,
|
|
4943
4984
|
__spreadProps(__spreadValues({
|
|
4944
4985
|
"data-slot": "navigation-menu-trigger",
|
|
@@ -4947,7 +4988,7 @@ function NavigationMenuTrigger(_a) {
|
|
|
4947
4988
|
children: [
|
|
4948
4989
|
children,
|
|
4949
4990
|
" ",
|
|
4950
|
-
/* @__PURE__ */ (0,
|
|
4991
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4951
4992
|
import_lucide_react16.ChevronDownIcon,
|
|
4952
4993
|
{
|
|
4953
4994
|
className: "relative top-[1px] ml-1 size-3 transition duration-slow group-data-[state=open]:rotate-180",
|
|
@@ -4964,7 +5005,7 @@ function NavigationMenuContent(_a) {
|
|
|
4964
5005
|
} = _b, props = __objRest(_b, [
|
|
4965
5006
|
"className"
|
|
4966
5007
|
]);
|
|
4967
|
-
return /* @__PURE__ */ (0,
|
|
5008
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4968
5009
|
import_radix_ui22.NavigationMenu.Content,
|
|
4969
5010
|
__spreadValues({
|
|
4970
5011
|
"data-slot": "navigation-menu-content",
|
|
@@ -4982,13 +5023,13 @@ function NavigationMenuViewport(_a) {
|
|
|
4982
5023
|
} = _b, props = __objRest(_b, [
|
|
4983
5024
|
"className"
|
|
4984
5025
|
]);
|
|
4985
|
-
return /* @__PURE__ */ (0,
|
|
5026
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4986
5027
|
"div",
|
|
4987
5028
|
{
|
|
4988
5029
|
className: cn(
|
|
4989
5030
|
"absolute top-full left-0 isolate z-50 flex justify-center"
|
|
4990
5031
|
),
|
|
4991
|
-
children: /* @__PURE__ */ (0,
|
|
5032
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4992
5033
|
import_radix_ui22.NavigationMenu.Viewport,
|
|
4993
5034
|
__spreadValues({
|
|
4994
5035
|
"data-slot": "navigation-menu-viewport",
|
|
@@ -5007,7 +5048,7 @@ function NavigationMenuLink(_a) {
|
|
|
5007
5048
|
} = _b, props = __objRest(_b, [
|
|
5008
5049
|
"className"
|
|
5009
5050
|
]);
|
|
5010
|
-
return /* @__PURE__ */ (0,
|
|
5051
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
5011
5052
|
import_radix_ui22.NavigationMenu.Link,
|
|
5012
5053
|
__spreadValues({
|
|
5013
5054
|
"data-slot": "navigation-menu-link",
|
|
@@ -5024,7 +5065,7 @@ function NavigationMenuIndicator(_a) {
|
|
|
5024
5065
|
} = _b, props = __objRest(_b, [
|
|
5025
5066
|
"className"
|
|
5026
5067
|
]);
|
|
5027
|
-
return /* @__PURE__ */ (0,
|
|
5068
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
5028
5069
|
import_radix_ui22.NavigationMenu.Indicator,
|
|
5029
5070
|
__spreadProps(__spreadValues({
|
|
5030
5071
|
"data-slot": "navigation-menu-indicator",
|
|
@@ -5033,17 +5074,17 @@ function NavigationMenuIndicator(_a) {
|
|
|
5033
5074
|
className
|
|
5034
5075
|
)
|
|
5035
5076
|
}, props), {
|
|
5036
|
-
children: /* @__PURE__ */ (0,
|
|
5077
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
5037
5078
|
})
|
|
5038
5079
|
);
|
|
5039
5080
|
}
|
|
5040
5081
|
|
|
5041
5082
|
// components/ui/pagination.tsx
|
|
5042
5083
|
var import_lucide_react17 = require("lucide-react");
|
|
5043
|
-
var
|
|
5084
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
5044
5085
|
function Pagination(_a) {
|
|
5045
5086
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5046
|
-
return /* @__PURE__ */ (0,
|
|
5087
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
5047
5088
|
"nav",
|
|
5048
5089
|
__spreadValues({
|
|
5049
5090
|
role: "navigation",
|
|
@@ -5059,7 +5100,7 @@ function PaginationContent(_a) {
|
|
|
5059
5100
|
} = _b, props = __objRest(_b, [
|
|
5060
5101
|
"className"
|
|
5061
5102
|
]);
|
|
5062
|
-
return /* @__PURE__ */ (0,
|
|
5103
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
5063
5104
|
"ul",
|
|
5064
5105
|
__spreadValues({
|
|
5065
5106
|
"data-slot": "pagination-content",
|
|
@@ -5069,7 +5110,7 @@ function PaginationContent(_a) {
|
|
|
5069
5110
|
}
|
|
5070
5111
|
function PaginationItem(_a) {
|
|
5071
5112
|
var props = __objRest(_a, []);
|
|
5072
|
-
return /* @__PURE__ */ (0,
|
|
5113
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("li", __spreadValues({ "data-slot": "pagination-item" }, props));
|
|
5073
5114
|
}
|
|
5074
5115
|
function PaginationLink(_a) {
|
|
5075
5116
|
var _b = _a, {
|
|
@@ -5081,7 +5122,7 @@ function PaginationLink(_a) {
|
|
|
5081
5122
|
"isActive",
|
|
5082
5123
|
"size"
|
|
5083
5124
|
]);
|
|
5084
|
-
return /* @__PURE__ */ (0,
|
|
5125
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
5085
5126
|
"a",
|
|
5086
5127
|
__spreadValues({
|
|
5087
5128
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -5101,7 +5142,7 @@ function PaginationPrevious(_a) {
|
|
|
5101
5142
|
} = _b, props = __objRest(_b, [
|
|
5102
5143
|
"className"
|
|
5103
5144
|
]);
|
|
5104
|
-
return /* @__PURE__ */ (0,
|
|
5145
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Button, { asChild: true, variant: "tertiary", size: "icon-md", className: cn(className), children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("a", __spreadProps(__spreadValues({ "aria-label": "Go to previous page", "data-slot": "pagination-link" }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react17.ChevronLeftIcon, { className: "size-5" }) })) });
|
|
5105
5146
|
}
|
|
5106
5147
|
function PaginationNext(_a) {
|
|
5107
5148
|
var _b = _a, {
|
|
@@ -5109,7 +5150,7 @@ function PaginationNext(_a) {
|
|
|
5109
5150
|
} = _b, props = __objRest(_b, [
|
|
5110
5151
|
"className"
|
|
5111
5152
|
]);
|
|
5112
|
-
return /* @__PURE__ */ (0,
|
|
5153
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Button, { asChild: true, variant: "tertiary", size: "icon-md", className: cn(className), children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("a", __spreadProps(__spreadValues({ "aria-label": "Go to next page", "data-slot": "pagination-link" }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react17.ChevronRightIcon, { className: "size-5" }) })) });
|
|
5113
5154
|
}
|
|
5114
5155
|
function PaginationEllipsis(_a) {
|
|
5115
5156
|
var _b = _a, {
|
|
@@ -5117,7 +5158,7 @@ function PaginationEllipsis(_a) {
|
|
|
5117
5158
|
} = _b, props = __objRest(_b, [
|
|
5118
5159
|
"className"
|
|
5119
5160
|
]);
|
|
5120
|
-
return /* @__PURE__ */ (0,
|
|
5161
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
5121
5162
|
"span",
|
|
5122
5163
|
__spreadProps(__spreadValues({
|
|
5123
5164
|
"aria-hidden": true,
|
|
@@ -5125,8 +5166,8 @@ function PaginationEllipsis(_a) {
|
|
|
5125
5166
|
className: cn("flex size-10 items-center justify-center", className)
|
|
5126
5167
|
}, props), {
|
|
5127
5168
|
children: [
|
|
5128
|
-
/* @__PURE__ */ (0,
|
|
5129
|
-
/* @__PURE__ */ (0,
|
|
5169
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react17.MoreHorizontalIcon, { className: "size-4" }),
|
|
5170
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "sr-only", children: "More pages" })
|
|
5130
5171
|
]
|
|
5131
5172
|
})
|
|
5132
5173
|
);
|
|
@@ -5134,14 +5175,14 @@ function PaginationEllipsis(_a) {
|
|
|
5134
5175
|
|
|
5135
5176
|
// components/ui/popover.tsx
|
|
5136
5177
|
var import_radix_ui23 = require("radix-ui");
|
|
5137
|
-
var
|
|
5178
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
5138
5179
|
function Popover(_a) {
|
|
5139
5180
|
var props = __objRest(_a, []);
|
|
5140
|
-
return /* @__PURE__ */ (0,
|
|
5181
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_radix_ui23.Popover.Root, __spreadValues({ "data-slot": "popover" }, props));
|
|
5141
5182
|
}
|
|
5142
5183
|
function PopoverTrigger(_a) {
|
|
5143
5184
|
var props = __objRest(_a, []);
|
|
5144
|
-
return /* @__PURE__ */ (0,
|
|
5185
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_radix_ui23.Popover.Trigger, __spreadValues({ "data-slot": "popover-trigger" }, props));
|
|
5145
5186
|
}
|
|
5146
5187
|
function PopoverContent(_a) {
|
|
5147
5188
|
var _b = _a, {
|
|
@@ -5153,7 +5194,7 @@ function PopoverContent(_a) {
|
|
|
5153
5194
|
"align",
|
|
5154
5195
|
"sideOffset"
|
|
5155
5196
|
]);
|
|
5156
|
-
return /* @__PURE__ */ (0,
|
|
5197
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_radix_ui23.Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5157
5198
|
import_radix_ui23.Popover.Content,
|
|
5158
5199
|
__spreadValues({
|
|
5159
5200
|
"data-slot": "popover-content",
|
|
@@ -5168,11 +5209,11 @@ function PopoverContent(_a) {
|
|
|
5168
5209
|
}
|
|
5169
5210
|
function PopoverAnchor(_a) {
|
|
5170
5211
|
var props = __objRest(_a, []);
|
|
5171
|
-
return /* @__PURE__ */ (0,
|
|
5212
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_radix_ui23.Popover.Anchor, __spreadValues({ "data-slot": "popover-anchor" }, props));
|
|
5172
5213
|
}
|
|
5173
5214
|
function PopoverHeader(_a) {
|
|
5174
5215
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5175
|
-
return /* @__PURE__ */ (0,
|
|
5216
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5176
5217
|
"div",
|
|
5177
5218
|
__spreadValues({
|
|
5178
5219
|
"data-slot": "popover-header",
|
|
@@ -5182,7 +5223,7 @@ function PopoverHeader(_a) {
|
|
|
5182
5223
|
}
|
|
5183
5224
|
function PopoverTitle(_a) {
|
|
5184
5225
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5185
|
-
return /* @__PURE__ */ (0,
|
|
5226
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5186
5227
|
"div",
|
|
5187
5228
|
__spreadValues({
|
|
5188
5229
|
"data-slot": "popover-title",
|
|
@@ -5196,7 +5237,7 @@ function PopoverDescription(_a) {
|
|
|
5196
5237
|
} = _b, props = __objRest(_b, [
|
|
5197
5238
|
"className"
|
|
5198
5239
|
]);
|
|
5199
|
-
return /* @__PURE__ */ (0,
|
|
5240
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5200
5241
|
"p",
|
|
5201
5242
|
__spreadValues({
|
|
5202
5243
|
"data-slot": "popover-description",
|
|
@@ -5207,7 +5248,7 @@ function PopoverDescription(_a) {
|
|
|
5207
5248
|
|
|
5208
5249
|
// components/ui/progress.tsx
|
|
5209
5250
|
var import_radix_ui24 = require("radix-ui");
|
|
5210
|
-
var
|
|
5251
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
5211
5252
|
function Progress(_a) {
|
|
5212
5253
|
var _b = _a, {
|
|
5213
5254
|
className,
|
|
@@ -5216,7 +5257,7 @@ function Progress(_a) {
|
|
|
5216
5257
|
"className",
|
|
5217
5258
|
"value"
|
|
5218
5259
|
]);
|
|
5219
|
-
return /* @__PURE__ */ (0,
|
|
5260
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
5220
5261
|
import_radix_ui24.Progress.Root,
|
|
5221
5262
|
__spreadProps(__spreadValues({
|
|
5222
5263
|
"data-slot": "progress",
|
|
@@ -5225,7 +5266,7 @@ function Progress(_a) {
|
|
|
5225
5266
|
className
|
|
5226
5267
|
)
|
|
5227
5268
|
}, props), {
|
|
5228
|
-
children: /* @__PURE__ */ (0,
|
|
5269
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
5229
5270
|
import_radix_ui24.Progress.Indicator,
|
|
5230
5271
|
{
|
|
5231
5272
|
"data-slot": "progress-indicator",
|
|
@@ -5240,14 +5281,14 @@ function Progress(_a) {
|
|
|
5240
5281
|
// components/ui/radio-group.tsx
|
|
5241
5282
|
var import_lucide_react18 = require("lucide-react");
|
|
5242
5283
|
var import_radix_ui25 = require("radix-ui");
|
|
5243
|
-
var
|
|
5284
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
5244
5285
|
function RadioGroup(_a) {
|
|
5245
5286
|
var _b = _a, {
|
|
5246
5287
|
className
|
|
5247
5288
|
} = _b, props = __objRest(_b, [
|
|
5248
5289
|
"className"
|
|
5249
5290
|
]);
|
|
5250
|
-
return /* @__PURE__ */ (0,
|
|
5291
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
5251
5292
|
import_radix_ui25.RadioGroup.Root,
|
|
5252
5293
|
__spreadValues({
|
|
5253
5294
|
"data-slot": "radio-group",
|
|
@@ -5261,7 +5302,7 @@ function RadioGroupItem(_a) {
|
|
|
5261
5302
|
} = _b, props = __objRest(_b, [
|
|
5262
5303
|
"className"
|
|
5263
5304
|
]);
|
|
5264
|
-
return /* @__PURE__ */ (0,
|
|
5305
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
5265
5306
|
import_radix_ui25.RadioGroup.Item,
|
|
5266
5307
|
__spreadProps(__spreadValues({
|
|
5267
5308
|
"data-slot": "radio-group-item",
|
|
@@ -5270,12 +5311,12 @@ function RadioGroupItem(_a) {
|
|
|
5270
5311
|
className
|
|
5271
5312
|
)
|
|
5272
5313
|
}, props), {
|
|
5273
|
-
children: /* @__PURE__ */ (0,
|
|
5314
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
5274
5315
|
import_radix_ui25.RadioGroup.Indicator,
|
|
5275
5316
|
{
|
|
5276
5317
|
"data-slot": "radio-group-indicator",
|
|
5277
5318
|
className: "relative flex items-center justify-center",
|
|
5278
|
-
children: /* @__PURE__ */ (0,
|
|
5319
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.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" })
|
|
5279
5320
|
}
|
|
5280
5321
|
)
|
|
5281
5322
|
})
|
|
@@ -5285,14 +5326,14 @@ function RadioGroupItem(_a) {
|
|
|
5285
5326
|
// components/ui/resizable.tsx
|
|
5286
5327
|
var import_lucide_react19 = require("lucide-react");
|
|
5287
5328
|
var ResizablePrimitive = __toESM(require("react-resizable-panels"), 1);
|
|
5288
|
-
var
|
|
5329
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
5289
5330
|
function ResizablePanelGroup(_a) {
|
|
5290
5331
|
var _b = _a, {
|
|
5291
5332
|
className
|
|
5292
5333
|
} = _b, props = __objRest(_b, [
|
|
5293
5334
|
"className"
|
|
5294
5335
|
]);
|
|
5295
|
-
return /* @__PURE__ */ (0,
|
|
5336
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
5296
5337
|
ResizablePrimitive.Group,
|
|
5297
5338
|
__spreadValues({
|
|
5298
5339
|
"data-slot": "resizable-panel-group",
|
|
@@ -5305,7 +5346,7 @@ function ResizablePanelGroup(_a) {
|
|
|
5305
5346
|
}
|
|
5306
5347
|
function ResizablePanel(_a) {
|
|
5307
5348
|
var props = __objRest(_a, []);
|
|
5308
|
-
return /* @__PURE__ */ (0,
|
|
5349
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ResizablePrimitive.Panel, __spreadValues({ "data-slot": "resizable-panel" }, props));
|
|
5309
5350
|
}
|
|
5310
5351
|
function ResizableHandle(_a) {
|
|
5311
5352
|
var _b = _a, {
|
|
@@ -5315,7 +5356,7 @@ function ResizableHandle(_a) {
|
|
|
5315
5356
|
"withHandle",
|
|
5316
5357
|
"className"
|
|
5317
5358
|
]);
|
|
5318
|
-
return /* @__PURE__ */ (0,
|
|
5359
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
5319
5360
|
ResizablePrimitive.Separator,
|
|
5320
5361
|
__spreadProps(__spreadValues({
|
|
5321
5362
|
"data-slot": "resizable-handle",
|
|
@@ -5324,14 +5365,14 @@ function ResizableHandle(_a) {
|
|
|
5324
5365
|
className
|
|
5325
5366
|
)
|
|
5326
5367
|
}, props), {
|
|
5327
|
-
children: withHandle && /* @__PURE__ */ (0,
|
|
5368
|
+
children: withHandle && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-xs border bg-border", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react19.GripVerticalIcon, { className: "size-2.5" }) })
|
|
5328
5369
|
})
|
|
5329
5370
|
);
|
|
5330
5371
|
}
|
|
5331
5372
|
|
|
5332
5373
|
// components/ui/scroll-area.tsx
|
|
5333
5374
|
var import_radix_ui26 = require("radix-ui");
|
|
5334
|
-
var
|
|
5375
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
5335
5376
|
function ScrollArea(_a) {
|
|
5336
5377
|
var _b = _a, {
|
|
5337
5378
|
className,
|
|
@@ -5340,14 +5381,14 @@ function ScrollArea(_a) {
|
|
|
5340
5381
|
"className",
|
|
5341
5382
|
"children"
|
|
5342
5383
|
]);
|
|
5343
|
-
return /* @__PURE__ */ (0,
|
|
5384
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
5344
5385
|
import_radix_ui26.ScrollArea.Root,
|
|
5345
5386
|
__spreadProps(__spreadValues({
|
|
5346
5387
|
"data-slot": "scroll-area",
|
|
5347
5388
|
className: cn("relative", className)
|
|
5348
5389
|
}, props), {
|
|
5349
5390
|
children: [
|
|
5350
|
-
/* @__PURE__ */ (0,
|
|
5391
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5351
5392
|
import_radix_ui26.ScrollArea.Viewport,
|
|
5352
5393
|
{
|
|
5353
5394
|
"data-slot": "scroll-area-viewport",
|
|
@@ -5355,8 +5396,8 @@ function ScrollArea(_a) {
|
|
|
5355
5396
|
children
|
|
5356
5397
|
}
|
|
5357
5398
|
),
|
|
5358
|
-
/* @__PURE__ */ (0,
|
|
5359
|
-
/* @__PURE__ */ (0,
|
|
5399
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ScrollBar, {}),
|
|
5400
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_radix_ui26.ScrollArea.Corner, {})
|
|
5360
5401
|
]
|
|
5361
5402
|
})
|
|
5362
5403
|
);
|
|
@@ -5369,7 +5410,7 @@ function ScrollBar(_a) {
|
|
|
5369
5410
|
"className",
|
|
5370
5411
|
"orientation"
|
|
5371
5412
|
]);
|
|
5372
|
-
return /* @__PURE__ */ (0,
|
|
5413
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5373
5414
|
import_radix_ui26.ScrollArea.ScrollAreaScrollbar,
|
|
5374
5415
|
__spreadProps(__spreadValues({
|
|
5375
5416
|
"data-slot": "scroll-area-scrollbar",
|
|
@@ -5381,7 +5422,7 @@ function ScrollBar(_a) {
|
|
|
5381
5422
|
className
|
|
5382
5423
|
)
|
|
5383
5424
|
}, props), {
|
|
5384
|
-
children: /* @__PURE__ */ (0,
|
|
5425
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5385
5426
|
import_radix_ui26.ScrollArea.ScrollAreaThumb,
|
|
5386
5427
|
{
|
|
5387
5428
|
"data-slot": "scroll-area-thumb",
|
|
@@ -5395,18 +5436,18 @@ function ScrollBar(_a) {
|
|
|
5395
5436
|
// components/ui/select.tsx
|
|
5396
5437
|
var import_lucide_react20 = require("lucide-react");
|
|
5397
5438
|
var import_radix_ui27 = require("radix-ui");
|
|
5398
|
-
var
|
|
5439
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
5399
5440
|
function Select(_a) {
|
|
5400
5441
|
var props = __objRest(_a, []);
|
|
5401
|
-
return /* @__PURE__ */ (0,
|
|
5442
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_radix_ui27.Select.Root, __spreadValues({ "data-slot": "select" }, props));
|
|
5402
5443
|
}
|
|
5403
5444
|
function SelectGroup(_a) {
|
|
5404
5445
|
var props = __objRest(_a, []);
|
|
5405
|
-
return /* @__PURE__ */ (0,
|
|
5446
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_radix_ui27.Select.Group, __spreadValues({ "data-slot": "select-group" }, props));
|
|
5406
5447
|
}
|
|
5407
5448
|
function SelectValue(_a) {
|
|
5408
5449
|
var props = __objRest(_a, []);
|
|
5409
|
-
return /* @__PURE__ */ (0,
|
|
5450
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_radix_ui27.Select.Value, __spreadValues({ "data-slot": "select-value" }, props));
|
|
5410
5451
|
}
|
|
5411
5452
|
function SelectTrigger(_a) {
|
|
5412
5453
|
var _b = _a, {
|
|
@@ -5420,7 +5461,7 @@ function SelectTrigger(_a) {
|
|
|
5420
5461
|
"readOnly",
|
|
5421
5462
|
"children"
|
|
5422
5463
|
]);
|
|
5423
|
-
return /* @__PURE__ */ (0,
|
|
5464
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
5424
5465
|
import_radix_ui27.Select.Trigger,
|
|
5425
5466
|
__spreadProps(__spreadValues({
|
|
5426
5467
|
"data-slot": "select-trigger",
|
|
@@ -5434,7 +5475,7 @@ function SelectTrigger(_a) {
|
|
|
5434
5475
|
}, props), {
|
|
5435
5476
|
children: [
|
|
5436
5477
|
children,
|
|
5437
|
-
/* @__PURE__ */ (0,
|
|
5478
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_radix_ui27.Select.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react20.ChevronDownIcon, { className: cn("size-4", readOnly ? "opacity-30" : "opacity-50") }) })
|
|
5438
5479
|
]
|
|
5439
5480
|
})
|
|
5440
5481
|
);
|
|
@@ -5451,7 +5492,7 @@ function SelectContent(_a) {
|
|
|
5451
5492
|
"position",
|
|
5452
5493
|
"align"
|
|
5453
5494
|
]);
|
|
5454
|
-
return /* @__PURE__ */ (0,
|
|
5495
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_radix_ui27.Select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
5455
5496
|
import_radix_ui27.Select.Content,
|
|
5456
5497
|
__spreadProps(__spreadValues({
|
|
5457
5498
|
"data-slot": "select-content",
|
|
@@ -5464,8 +5505,8 @@ function SelectContent(_a) {
|
|
|
5464
5505
|
align
|
|
5465
5506
|
}, props), {
|
|
5466
5507
|
children: [
|
|
5467
|
-
/* @__PURE__ */ (0,
|
|
5468
|
-
/* @__PURE__ */ (0,
|
|
5508
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SelectScrollUpButton, {}),
|
|
5509
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5469
5510
|
import_radix_ui27.Select.Viewport,
|
|
5470
5511
|
{
|
|
5471
5512
|
className: cn(
|
|
@@ -5475,7 +5516,7 @@ function SelectContent(_a) {
|
|
|
5475
5516
|
children
|
|
5476
5517
|
}
|
|
5477
5518
|
),
|
|
5478
|
-
/* @__PURE__ */ (0,
|
|
5519
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SelectScrollDownButton, {})
|
|
5479
5520
|
]
|
|
5480
5521
|
})
|
|
5481
5522
|
) });
|
|
@@ -5486,7 +5527,7 @@ function SelectLabel(_a) {
|
|
|
5486
5527
|
} = _b, props = __objRest(_b, [
|
|
5487
5528
|
"className"
|
|
5488
5529
|
]);
|
|
5489
|
-
return /* @__PURE__ */ (0,
|
|
5530
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5490
5531
|
import_radix_ui27.Select.Label,
|
|
5491
5532
|
__spreadValues({
|
|
5492
5533
|
"data-slot": "select-label",
|
|
@@ -5502,7 +5543,7 @@ function SelectItem(_a) {
|
|
|
5502
5543
|
"className",
|
|
5503
5544
|
"children"
|
|
5504
5545
|
]);
|
|
5505
|
-
return /* @__PURE__ */ (0,
|
|
5546
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
5506
5547
|
import_radix_ui27.Select.Item,
|
|
5507
5548
|
__spreadProps(__spreadValues({
|
|
5508
5549
|
"data-slot": "select-item",
|
|
@@ -5512,15 +5553,15 @@ function SelectItem(_a) {
|
|
|
5512
5553
|
)
|
|
5513
5554
|
}, props), {
|
|
5514
5555
|
children: [
|
|
5515
|
-
/* @__PURE__ */ (0,
|
|
5556
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5516
5557
|
"span",
|
|
5517
5558
|
{
|
|
5518
5559
|
"data-slot": "select-item-indicator",
|
|
5519
5560
|
className: "absolute right-2 flex size-3.5 items-center justify-center",
|
|
5520
|
-
children: /* @__PURE__ */ (0,
|
|
5561
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_radix_ui27.Select.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react20.CheckIcon, { className: "size-4 text-primary" }) })
|
|
5521
5562
|
}
|
|
5522
5563
|
),
|
|
5523
|
-
/* @__PURE__ */ (0,
|
|
5564
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_radix_ui27.Select.ItemText, { children })
|
|
5524
5565
|
]
|
|
5525
5566
|
})
|
|
5526
5567
|
);
|
|
@@ -5531,7 +5572,7 @@ function SelectSeparator(_a) {
|
|
|
5531
5572
|
} = _b, props = __objRest(_b, [
|
|
5532
5573
|
"className"
|
|
5533
5574
|
]);
|
|
5534
|
-
return /* @__PURE__ */ (0,
|
|
5575
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5535
5576
|
import_radix_ui27.Select.Separator,
|
|
5536
5577
|
__spreadValues({
|
|
5537
5578
|
"data-slot": "select-separator",
|
|
@@ -5545,7 +5586,7 @@ function SelectScrollUpButton(_a) {
|
|
|
5545
5586
|
} = _b, props = __objRest(_b, [
|
|
5546
5587
|
"className"
|
|
5547
5588
|
]);
|
|
5548
|
-
return /* @__PURE__ */ (0,
|
|
5589
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5549
5590
|
import_radix_ui27.Select.ScrollUpButton,
|
|
5550
5591
|
__spreadProps(__spreadValues({
|
|
5551
5592
|
"data-slot": "select-scroll-up-button",
|
|
@@ -5554,7 +5595,7 @@ function SelectScrollUpButton(_a) {
|
|
|
5554
5595
|
className
|
|
5555
5596
|
)
|
|
5556
5597
|
}, props), {
|
|
5557
|
-
children: /* @__PURE__ */ (0,
|
|
5598
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react20.ChevronUpIcon, { className: "size-4" })
|
|
5558
5599
|
})
|
|
5559
5600
|
);
|
|
5560
5601
|
}
|
|
@@ -5564,7 +5605,7 @@ function SelectScrollDownButton(_a) {
|
|
|
5564
5605
|
} = _b, props = __objRest(_b, [
|
|
5565
5606
|
"className"
|
|
5566
5607
|
]);
|
|
5567
|
-
return /* @__PURE__ */ (0,
|
|
5608
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5568
5609
|
import_radix_ui27.Select.ScrollDownButton,
|
|
5569
5610
|
__spreadProps(__spreadValues({
|
|
5570
5611
|
"data-slot": "select-scroll-down-button",
|
|
@@ -5573,7 +5614,7 @@ function SelectScrollDownButton(_a) {
|
|
|
5573
5614
|
className
|
|
5574
5615
|
)
|
|
5575
5616
|
}, props), {
|
|
5576
|
-
children: /* @__PURE__ */ (0,
|
|
5617
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react20.ChevronDownIcon, { className: "size-4" })
|
|
5577
5618
|
})
|
|
5578
5619
|
);
|
|
5579
5620
|
}
|
|
@@ -5581,22 +5622,22 @@ function SelectScrollDownButton(_a) {
|
|
|
5581
5622
|
// components/ui/sheet.tsx
|
|
5582
5623
|
var import_lucide_react21 = require("lucide-react");
|
|
5583
5624
|
var import_radix_ui28 = require("radix-ui");
|
|
5584
|
-
var
|
|
5625
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
5585
5626
|
function Sheet(_a) {
|
|
5586
5627
|
var props = __objRest(_a, []);
|
|
5587
|
-
return /* @__PURE__ */ (0,
|
|
5628
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_radix_ui28.Dialog.Root, __spreadValues({ "data-slot": "sheet" }, props));
|
|
5588
5629
|
}
|
|
5589
5630
|
function SheetTrigger(_a) {
|
|
5590
5631
|
var props = __objRest(_a, []);
|
|
5591
|
-
return /* @__PURE__ */ (0,
|
|
5632
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_radix_ui28.Dialog.Trigger, __spreadValues({ "data-slot": "sheet-trigger" }, props));
|
|
5592
5633
|
}
|
|
5593
5634
|
function SheetClose(_a) {
|
|
5594
5635
|
var props = __objRest(_a, []);
|
|
5595
|
-
return /* @__PURE__ */ (0,
|
|
5636
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_radix_ui28.Dialog.Close, __spreadValues({ "data-slot": "sheet-close" }, props));
|
|
5596
5637
|
}
|
|
5597
5638
|
function SheetPortal(_a) {
|
|
5598
5639
|
var props = __objRest(_a, []);
|
|
5599
|
-
return /* @__PURE__ */ (0,
|
|
5640
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_radix_ui28.Dialog.Portal, __spreadValues({ "data-slot": "sheet-portal" }, props));
|
|
5600
5641
|
}
|
|
5601
5642
|
function SheetOverlay(_a) {
|
|
5602
5643
|
var _b = _a, {
|
|
@@ -5604,7 +5645,7 @@ function SheetOverlay(_a) {
|
|
|
5604
5645
|
} = _b, props = __objRest(_b, [
|
|
5605
5646
|
"className"
|
|
5606
5647
|
]);
|
|
5607
|
-
return /* @__PURE__ */ (0,
|
|
5648
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5608
5649
|
import_radix_ui28.Dialog.Overlay,
|
|
5609
5650
|
__spreadValues({
|
|
5610
5651
|
"data-slot": "sheet-overlay",
|
|
@@ -5627,9 +5668,9 @@ function SheetContent(_a) {
|
|
|
5627
5668
|
"side",
|
|
5628
5669
|
"showCloseButton"
|
|
5629
5670
|
]);
|
|
5630
|
-
return /* @__PURE__ */ (0,
|
|
5631
|
-
/* @__PURE__ */ (0,
|
|
5632
|
-
/* @__PURE__ */ (0,
|
|
5671
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(SheetPortal, { children: [
|
|
5672
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SheetOverlay, {}),
|
|
5673
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
5633
5674
|
import_radix_ui28.Dialog.Content,
|
|
5634
5675
|
__spreadProps(__spreadValues({
|
|
5635
5676
|
"data-slot": "sheet-content",
|
|
@@ -5644,9 +5685,9 @@ function SheetContent(_a) {
|
|
|
5644
5685
|
}, props), {
|
|
5645
5686
|
children: [
|
|
5646
5687
|
children,
|
|
5647
|
-
showCloseButton && /* @__PURE__ */ (0,
|
|
5648
|
-
/* @__PURE__ */ (0,
|
|
5649
|
-
/* @__PURE__ */ (0,
|
|
5688
|
+
showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime49.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: [
|
|
5689
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_lucide_react21.XIcon, { className: "size-4" }),
|
|
5690
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "sr-only", children: "Close" })
|
|
5650
5691
|
] })
|
|
5651
5692
|
]
|
|
5652
5693
|
})
|
|
@@ -5655,7 +5696,7 @@ function SheetContent(_a) {
|
|
|
5655
5696
|
}
|
|
5656
5697
|
function SheetHeader(_a) {
|
|
5657
5698
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5658
|
-
return /* @__PURE__ */ (0,
|
|
5699
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5659
5700
|
"div",
|
|
5660
5701
|
__spreadValues({
|
|
5661
5702
|
"data-slot": "sheet-header",
|
|
@@ -5665,7 +5706,7 @@ function SheetHeader(_a) {
|
|
|
5665
5706
|
}
|
|
5666
5707
|
function SheetFooter(_a) {
|
|
5667
5708
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5668
|
-
return /* @__PURE__ */ (0,
|
|
5709
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5669
5710
|
"div",
|
|
5670
5711
|
__spreadValues({
|
|
5671
5712
|
"data-slot": "sheet-footer",
|
|
@@ -5679,7 +5720,7 @@ function SheetTitle(_a) {
|
|
|
5679
5720
|
} = _b, props = __objRest(_b, [
|
|
5680
5721
|
"className"
|
|
5681
5722
|
]);
|
|
5682
|
-
return /* @__PURE__ */ (0,
|
|
5723
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5683
5724
|
import_radix_ui28.Dialog.Title,
|
|
5684
5725
|
__spreadValues({
|
|
5685
5726
|
"data-slot": "sheet-title",
|
|
@@ -5693,7 +5734,7 @@ function SheetDescription(_a) {
|
|
|
5693
5734
|
} = _b, props = __objRest(_b, [
|
|
5694
5735
|
"className"
|
|
5695
5736
|
]);
|
|
5696
|
-
return /* @__PURE__ */ (0,
|
|
5737
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5697
5738
|
import_radix_ui28.Dialog.Description,
|
|
5698
5739
|
__spreadValues({
|
|
5699
5740
|
"data-slot": "sheet-description",
|
|
@@ -5704,7 +5745,7 @@ function SheetDescription(_a) {
|
|
|
5704
5745
|
|
|
5705
5746
|
// components/ui/sidebar.tsx
|
|
5706
5747
|
var React12 = __toESM(require("react"), 1);
|
|
5707
|
-
var
|
|
5748
|
+
var import_class_variance_authority13 = require("class-variance-authority");
|
|
5708
5749
|
var import_lucide_react22 = require("lucide-react");
|
|
5709
5750
|
var import_radix_ui30 = require("radix-ui");
|
|
5710
5751
|
|
|
@@ -5726,10 +5767,10 @@ function useIsMobile() {
|
|
|
5726
5767
|
}
|
|
5727
5768
|
|
|
5728
5769
|
// components/ui/skeleton.tsx
|
|
5729
|
-
var
|
|
5770
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
5730
5771
|
function Skeleton(_a) {
|
|
5731
5772
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5732
|
-
return /* @__PURE__ */ (0,
|
|
5773
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5733
5774
|
"div",
|
|
5734
5775
|
__spreadValues({
|
|
5735
5776
|
"data-slot": "skeleton",
|
|
@@ -5741,7 +5782,7 @@ function Skeleton(_a) {
|
|
|
5741
5782
|
// components/ui/tooltip.tsx
|
|
5742
5783
|
var React11 = __toESM(require("react"), 1);
|
|
5743
5784
|
var import_radix_ui29 = require("radix-ui");
|
|
5744
|
-
var
|
|
5785
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
5745
5786
|
var TooltipModeContext = React11.createContext("tooltip");
|
|
5746
5787
|
function TooltipProvider(_a) {
|
|
5747
5788
|
var _b = _a, {
|
|
@@ -5749,7 +5790,7 @@ function TooltipProvider(_a) {
|
|
|
5749
5790
|
} = _b, props = __objRest(_b, [
|
|
5750
5791
|
"delayDuration"
|
|
5751
5792
|
]);
|
|
5752
|
-
return /* @__PURE__ */ (0,
|
|
5793
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5753
5794
|
import_radix_ui29.Tooltip.Provider,
|
|
5754
5795
|
__spreadValues({
|
|
5755
5796
|
"data-slot": "tooltip-provider",
|
|
@@ -5766,9 +5807,9 @@ function Tooltip2(_a) {
|
|
|
5766
5807
|
const isMobile = useIsMobile();
|
|
5767
5808
|
const mode = isMobile ? "drawer" : "tooltip";
|
|
5768
5809
|
if (mode === "drawer") {
|
|
5769
|
-
return /* @__PURE__ */ (0,
|
|
5810
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TooltipModeContext.Provider, { value: "drawer", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Drawer, { children }) });
|
|
5770
5811
|
}
|
|
5771
|
-
return /* @__PURE__ */ (0,
|
|
5812
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TooltipModeContext.Provider, { value: "tooltip", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_radix_ui29.Tooltip.Root, __spreadProps(__spreadValues({ "data-slot": "tooltip" }, props), { children })) });
|
|
5772
5813
|
}
|
|
5773
5814
|
function TooltipTrigger(_a) {
|
|
5774
5815
|
var _b = _a, {
|
|
@@ -5778,9 +5819,9 @@ function TooltipTrigger(_a) {
|
|
|
5778
5819
|
]);
|
|
5779
5820
|
const mode = React11.useContext(TooltipModeContext);
|
|
5780
5821
|
if (mode === "drawer") {
|
|
5781
|
-
return /* @__PURE__ */ (0,
|
|
5822
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DrawerTrigger, __spreadProps(__spreadValues({ "data-slot": "tooltip-trigger" }, props), { children }));
|
|
5782
5823
|
}
|
|
5783
|
-
return /* @__PURE__ */ (0,
|
|
5824
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_radix_ui29.Tooltip.Trigger, __spreadProps(__spreadValues({ "data-slot": "tooltip-trigger" }, props), { children }));
|
|
5784
5825
|
}
|
|
5785
5826
|
function TooltipContent(_a) {
|
|
5786
5827
|
var _b = _a, {
|
|
@@ -5800,36 +5841,36 @@ function TooltipContent(_a) {
|
|
|
5800
5841
|
]);
|
|
5801
5842
|
const mode = React11.useContext(TooltipModeContext);
|
|
5802
5843
|
if (mode === "drawer") {
|
|
5803
|
-
return /* @__PURE__ */ (0,
|
|
5804
|
-
/* @__PURE__ */ (0,
|
|
5805
|
-
/* @__PURE__ */ (0,
|
|
5806
|
-
/* @__PURE__ */ (0,
|
|
5844
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(DrawerContent, { "data-slot": "tooltip-content", "data-variant": variant, children: [
|
|
5845
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DrawerHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DrawerTitle, { children: title }) }),
|
|
5846
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: cn("p-4 text-sm text-on-subtle", className), children }),
|
|
5847
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DrawerFooter, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DrawerClose, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Button, { variant: "primary", size: "md", children: closeLabel }) }) })
|
|
5807
5848
|
] });
|
|
5808
5849
|
}
|
|
5809
5850
|
const surfaceClasses = variant === "inverse" ? "bg-prominent text-on-prominent shadow-sm" : "bg-primary text-on-primary";
|
|
5810
5851
|
const arrowClasses = variant === "inverse" ? "fill-prominent" : "fill-primary";
|
|
5811
|
-
return /* @__PURE__ */ (0,
|
|
5852
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_radix_ui29.Tooltip.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
5812
5853
|
import_radix_ui29.Tooltip.Content,
|
|
5813
5854
|
__spreadProps(__spreadValues({
|
|
5814
5855
|
"data-slot": "tooltip-content",
|
|
5815
5856
|
"data-variant": variant,
|
|
5816
5857
|
sideOffset,
|
|
5817
5858
|
className: cn(
|
|
5818
|
-
"z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md border-0 px-3 py-1.5 text-sm font-medium text-balance fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
5859
|
+
"z-50 w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md border-0 px-3 py-1.5 text-sm font-medium text-balance whitespace-normal fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
5819
5860
|
surfaceClasses,
|
|
5820
5861
|
className
|
|
5821
5862
|
)
|
|
5822
5863
|
}, props), {
|
|
5823
5864
|
children: [
|
|
5824
5865
|
children,
|
|
5825
|
-
/* @__PURE__ */ (0,
|
|
5866
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_radix_ui29.Tooltip.Arrow, { className: arrowClasses })
|
|
5826
5867
|
]
|
|
5827
5868
|
})
|
|
5828
5869
|
) });
|
|
5829
5870
|
}
|
|
5830
5871
|
|
|
5831
5872
|
// components/ui/sidebar.tsx
|
|
5832
|
-
var
|
|
5873
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
5833
5874
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
5834
5875
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
5835
5876
|
var SIDEBAR_WIDTH = "16rem";
|
|
@@ -5902,7 +5943,7 @@ function SidebarProvider(_a) {
|
|
|
5902
5943
|
}),
|
|
5903
5944
|
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
5904
5945
|
);
|
|
5905
|
-
return /* @__PURE__ */ (0,
|
|
5946
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5906
5947
|
"div",
|
|
5907
5948
|
__spreadProps(__spreadValues({
|
|
5908
5949
|
"data-slot": "sidebar-wrapper",
|
|
@@ -5935,7 +5976,7 @@ function Sidebar(_a) {
|
|
|
5935
5976
|
]);
|
|
5936
5977
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
5937
5978
|
if (collapsible === "none") {
|
|
5938
|
-
return /* @__PURE__ */ (0,
|
|
5979
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5939
5980
|
"div",
|
|
5940
5981
|
__spreadProps(__spreadValues({
|
|
5941
5982
|
"data-slot": "sidebar",
|
|
@@ -5949,7 +5990,7 @@ function Sidebar(_a) {
|
|
|
5949
5990
|
);
|
|
5950
5991
|
}
|
|
5951
5992
|
if (isMobile) {
|
|
5952
|
-
return /* @__PURE__ */ (0,
|
|
5993
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Sheet, __spreadProps(__spreadValues({ open: openMobile, onOpenChange: setOpenMobile }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
5953
5994
|
SheetContent,
|
|
5954
5995
|
{
|
|
5955
5996
|
"data-sidebar": "sidebar",
|
|
@@ -5961,16 +6002,16 @@ function Sidebar(_a) {
|
|
|
5961
6002
|
},
|
|
5962
6003
|
side,
|
|
5963
6004
|
children: [
|
|
5964
|
-
/* @__PURE__ */ (0,
|
|
5965
|
-
/* @__PURE__ */ (0,
|
|
5966
|
-
/* @__PURE__ */ (0,
|
|
6005
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(SheetHeader, { className: "sr-only", children: [
|
|
6006
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SheetTitle, { children: "Sidebar" }),
|
|
6007
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SheetDescription, { children: "Displays the mobile sidebar." })
|
|
5967
6008
|
] }),
|
|
5968
|
-
/* @__PURE__ */ (0,
|
|
6009
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "flex h-full w-full flex-col", children })
|
|
5969
6010
|
]
|
|
5970
6011
|
}
|
|
5971
6012
|
) }));
|
|
5972
6013
|
}
|
|
5973
|
-
return /* @__PURE__ */ (0,
|
|
6014
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
5974
6015
|
"div",
|
|
5975
6016
|
{
|
|
5976
6017
|
className: "group peer hidden text-sidebar-foreground md:block",
|
|
@@ -5980,7 +6021,7 @@ function Sidebar(_a) {
|
|
|
5980
6021
|
"data-side": side,
|
|
5981
6022
|
"data-slot": "sidebar",
|
|
5982
6023
|
children: [
|
|
5983
|
-
/* @__PURE__ */ (0,
|
|
6024
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5984
6025
|
"div",
|
|
5985
6026
|
{
|
|
5986
6027
|
"data-slot": "sidebar-gap",
|
|
@@ -5992,7 +6033,7 @@ function Sidebar(_a) {
|
|
|
5992
6033
|
)
|
|
5993
6034
|
}
|
|
5994
6035
|
),
|
|
5995
|
-
/* @__PURE__ */ (0,
|
|
6036
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5996
6037
|
"div",
|
|
5997
6038
|
__spreadProps(__spreadValues({
|
|
5998
6039
|
"data-slot": "sidebar-container",
|
|
@@ -6004,7 +6045,7 @@ function Sidebar(_a) {
|
|
|
6004
6045
|
className
|
|
6005
6046
|
)
|
|
6006
6047
|
}, props), {
|
|
6007
|
-
children: /* @__PURE__ */ (0,
|
|
6048
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6008
6049
|
"div",
|
|
6009
6050
|
{
|
|
6010
6051
|
"data-sidebar": "sidebar",
|
|
@@ -6028,7 +6069,7 @@ function SidebarTrigger(_a) {
|
|
|
6028
6069
|
"onClick"
|
|
6029
6070
|
]);
|
|
6030
6071
|
const { toggleSidebar } = useSidebar();
|
|
6031
|
-
return /* @__PURE__ */ (0,
|
|
6072
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
6032
6073
|
Button,
|
|
6033
6074
|
__spreadProps(__spreadValues({
|
|
6034
6075
|
"data-sidebar": "trigger",
|
|
@@ -6042,8 +6083,8 @@ function SidebarTrigger(_a) {
|
|
|
6042
6083
|
}
|
|
6043
6084
|
}, props), {
|
|
6044
6085
|
children: [
|
|
6045
|
-
/* @__PURE__ */ (0,
|
|
6046
|
-
/* @__PURE__ */ (0,
|
|
6086
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_lucide_react22.PanelLeftIcon, {}),
|
|
6087
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
6047
6088
|
]
|
|
6048
6089
|
})
|
|
6049
6090
|
);
|
|
@@ -6051,7 +6092,7 @@ function SidebarTrigger(_a) {
|
|
|
6051
6092
|
function SidebarRail(_a) {
|
|
6052
6093
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6053
6094
|
const { toggleSidebar } = useSidebar();
|
|
6054
|
-
return /* @__PURE__ */ (0,
|
|
6095
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6055
6096
|
"button",
|
|
6056
6097
|
__spreadValues({
|
|
6057
6098
|
"data-sidebar": "rail",
|
|
@@ -6074,7 +6115,7 @@ function SidebarRail(_a) {
|
|
|
6074
6115
|
}
|
|
6075
6116
|
function SidebarInset(_a) {
|
|
6076
6117
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6077
|
-
return /* @__PURE__ */ (0,
|
|
6118
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6078
6119
|
"main",
|
|
6079
6120
|
__spreadValues({
|
|
6080
6121
|
"data-slot": "sidebar-inset",
|
|
@@ -6092,7 +6133,7 @@ function SidebarInput(_a) {
|
|
|
6092
6133
|
} = _b, props = __objRest(_b, [
|
|
6093
6134
|
"className"
|
|
6094
6135
|
]);
|
|
6095
|
-
return /* @__PURE__ */ (0,
|
|
6136
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6096
6137
|
Input,
|
|
6097
6138
|
__spreadValues({
|
|
6098
6139
|
"data-slot": "sidebar-input",
|
|
@@ -6103,7 +6144,7 @@ function SidebarInput(_a) {
|
|
|
6103
6144
|
}
|
|
6104
6145
|
function SidebarHeader(_a) {
|
|
6105
6146
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6106
|
-
return /* @__PURE__ */ (0,
|
|
6147
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6107
6148
|
"div",
|
|
6108
6149
|
__spreadValues({
|
|
6109
6150
|
"data-slot": "sidebar-header",
|
|
@@ -6114,7 +6155,7 @@ function SidebarHeader(_a) {
|
|
|
6114
6155
|
}
|
|
6115
6156
|
function SidebarFooter(_a) {
|
|
6116
6157
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6117
|
-
return /* @__PURE__ */ (0,
|
|
6158
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6118
6159
|
"div",
|
|
6119
6160
|
__spreadValues({
|
|
6120
6161
|
"data-slot": "sidebar-footer",
|
|
@@ -6129,7 +6170,7 @@ function SidebarSeparator(_a) {
|
|
|
6129
6170
|
} = _b, props = __objRest(_b, [
|
|
6130
6171
|
"className"
|
|
6131
6172
|
]);
|
|
6132
|
-
return /* @__PURE__ */ (0,
|
|
6173
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6133
6174
|
Separator,
|
|
6134
6175
|
__spreadValues({
|
|
6135
6176
|
"data-slot": "sidebar-separator",
|
|
@@ -6140,7 +6181,7 @@ function SidebarSeparator(_a) {
|
|
|
6140
6181
|
}
|
|
6141
6182
|
function SidebarContent(_a) {
|
|
6142
6183
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6143
|
-
return /* @__PURE__ */ (0,
|
|
6184
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6144
6185
|
"div",
|
|
6145
6186
|
__spreadValues({
|
|
6146
6187
|
"data-slot": "sidebar-content",
|
|
@@ -6154,7 +6195,7 @@ function SidebarContent(_a) {
|
|
|
6154
6195
|
}
|
|
6155
6196
|
function SidebarGroup(_a) {
|
|
6156
6197
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6157
|
-
return /* @__PURE__ */ (0,
|
|
6198
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6158
6199
|
"div",
|
|
6159
6200
|
__spreadValues({
|
|
6160
6201
|
"data-slot": "sidebar-group",
|
|
@@ -6172,7 +6213,7 @@ function SidebarGroupLabel(_a) {
|
|
|
6172
6213
|
"asChild"
|
|
6173
6214
|
]);
|
|
6174
6215
|
const Comp = asChild ? import_radix_ui30.Slot.Root : "div";
|
|
6175
|
-
return /* @__PURE__ */ (0,
|
|
6216
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6176
6217
|
Comp,
|
|
6177
6218
|
__spreadValues({
|
|
6178
6219
|
"data-slot": "sidebar-group-label",
|
|
@@ -6194,7 +6235,7 @@ function SidebarGroupAction(_a) {
|
|
|
6194
6235
|
"asChild"
|
|
6195
6236
|
]);
|
|
6196
6237
|
const Comp = asChild ? import_radix_ui30.Slot.Root : "button";
|
|
6197
|
-
return /* @__PURE__ */ (0,
|
|
6238
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6198
6239
|
Comp,
|
|
6199
6240
|
__spreadValues({
|
|
6200
6241
|
"data-slot": "sidebar-group-action",
|
|
@@ -6215,7 +6256,7 @@ function SidebarGroupContent(_a) {
|
|
|
6215
6256
|
} = _b, props = __objRest(_b, [
|
|
6216
6257
|
"className"
|
|
6217
6258
|
]);
|
|
6218
|
-
return /* @__PURE__ */ (0,
|
|
6259
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6219
6260
|
"div",
|
|
6220
6261
|
__spreadValues({
|
|
6221
6262
|
"data-slot": "sidebar-group-content",
|
|
@@ -6226,7 +6267,7 @@ function SidebarGroupContent(_a) {
|
|
|
6226
6267
|
}
|
|
6227
6268
|
function SidebarMenu(_a) {
|
|
6228
6269
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6229
|
-
return /* @__PURE__ */ (0,
|
|
6270
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6230
6271
|
"ul",
|
|
6231
6272
|
__spreadValues({
|
|
6232
6273
|
"data-slot": "sidebar-menu",
|
|
@@ -6237,7 +6278,7 @@ function SidebarMenu(_a) {
|
|
|
6237
6278
|
}
|
|
6238
6279
|
function SidebarMenuItem(_a) {
|
|
6239
6280
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6240
|
-
return /* @__PURE__ */ (0,
|
|
6281
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6241
6282
|
"li",
|
|
6242
6283
|
__spreadValues({
|
|
6243
6284
|
"data-slot": "sidebar-menu-item",
|
|
@@ -6246,7 +6287,7 @@ function SidebarMenuItem(_a) {
|
|
|
6246
6287
|
}, props)
|
|
6247
6288
|
);
|
|
6248
6289
|
}
|
|
6249
|
-
var sidebarMenuButtonVariants = (0,
|
|
6290
|
+
var sidebarMenuButtonVariants = (0, import_class_variance_authority13.cva)(
|
|
6250
6291
|
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-sm p-2 text-left text-sidebar-foreground text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-secondary-hover hover:text-primary focus-visible:ring-2 active:bg-secondary-hover active:text-primary disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-secondary-hover data-[active=true]:font-semibold data-[active=true]:text-primary data-[active=true]:hover:bg-secondary-hover data-[active=true]:hover:text-primary data-[state=open]:hover:bg-secondary-hover data-[state=open]:hover:text-primary [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 data-[active=true]:[&>svg]:text-primary",
|
|
6251
6292
|
{
|
|
6252
6293
|
variants: {
|
|
@@ -6284,7 +6325,7 @@ function SidebarMenuButton(_a) {
|
|
|
6284
6325
|
]);
|
|
6285
6326
|
const Comp = asChild ? import_radix_ui30.Slot.Root : "button";
|
|
6286
6327
|
const { isMobile, state } = useSidebar();
|
|
6287
|
-
const button = /* @__PURE__ */ (0,
|
|
6328
|
+
const button = /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6288
6329
|
Comp,
|
|
6289
6330
|
__spreadValues({
|
|
6290
6331
|
"data-slot": "sidebar-menu-button",
|
|
@@ -6302,9 +6343,9 @@ function SidebarMenuButton(_a) {
|
|
|
6302
6343
|
children: tooltip
|
|
6303
6344
|
};
|
|
6304
6345
|
}
|
|
6305
|
-
return /* @__PURE__ */ (0,
|
|
6306
|
-
/* @__PURE__ */ (0,
|
|
6307
|
-
/* @__PURE__ */ (0,
|
|
6346
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(Tooltip2, { children: [
|
|
6347
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(TooltipTrigger, { asChild: true, children: button }),
|
|
6348
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6308
6349
|
TooltipContent,
|
|
6309
6350
|
__spreadValues({
|
|
6310
6351
|
side: "right",
|
|
@@ -6325,7 +6366,7 @@ function SidebarMenuAction(_a) {
|
|
|
6325
6366
|
"showOnHover"
|
|
6326
6367
|
]);
|
|
6327
6368
|
const Comp = asChild ? import_radix_ui30.Slot.Root : "button";
|
|
6328
|
-
return /* @__PURE__ */ (0,
|
|
6369
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6329
6370
|
Comp,
|
|
6330
6371
|
__spreadValues({
|
|
6331
6372
|
"data-slot": "sidebar-menu-action",
|
|
@@ -6350,7 +6391,7 @@ function SidebarMenuBadge(_a) {
|
|
|
6350
6391
|
} = _b, props = __objRest(_b, [
|
|
6351
6392
|
"className"
|
|
6352
6393
|
]);
|
|
6353
|
-
return /* @__PURE__ */ (0,
|
|
6394
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6354
6395
|
"div",
|
|
6355
6396
|
__spreadValues({
|
|
6356
6397
|
"data-slot": "sidebar-menu-badge",
|
|
@@ -6376,7 +6417,7 @@ function SidebarMenuSkeleton(_a) {
|
|
|
6376
6417
|
"showIcon"
|
|
6377
6418
|
]);
|
|
6378
6419
|
const width = "70%";
|
|
6379
|
-
return /* @__PURE__ */ (0,
|
|
6420
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
6380
6421
|
"div",
|
|
6381
6422
|
__spreadProps(__spreadValues({
|
|
6382
6423
|
"data-slot": "sidebar-menu-skeleton",
|
|
@@ -6384,14 +6425,14 @@ function SidebarMenuSkeleton(_a) {
|
|
|
6384
6425
|
className: cn("flex h-8 items-center gap-2 rounded-md px-2", className)
|
|
6385
6426
|
}, props), {
|
|
6386
6427
|
children: [
|
|
6387
|
-
showIcon && /* @__PURE__ */ (0,
|
|
6428
|
+
showIcon && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6388
6429
|
Skeleton,
|
|
6389
6430
|
{
|
|
6390
6431
|
className: "size-4 rounded-md",
|
|
6391
6432
|
"data-sidebar": "menu-skeleton-icon"
|
|
6392
6433
|
}
|
|
6393
6434
|
),
|
|
6394
|
-
/* @__PURE__ */ (0,
|
|
6435
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6395
6436
|
Skeleton,
|
|
6396
6437
|
{
|
|
6397
6438
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
@@ -6407,7 +6448,7 @@ function SidebarMenuSkeleton(_a) {
|
|
|
6407
6448
|
}
|
|
6408
6449
|
function SidebarMenuSub(_a) {
|
|
6409
6450
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6410
|
-
return /* @__PURE__ */ (0,
|
|
6451
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6411
6452
|
"ul",
|
|
6412
6453
|
__spreadValues({
|
|
6413
6454
|
"data-slot": "sidebar-menu-sub",
|
|
@@ -6426,7 +6467,7 @@ function SidebarMenuSubItem(_a) {
|
|
|
6426
6467
|
} = _b, props = __objRest(_b, [
|
|
6427
6468
|
"className"
|
|
6428
6469
|
]);
|
|
6429
|
-
return /* @__PURE__ */ (0,
|
|
6470
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6430
6471
|
"li",
|
|
6431
6472
|
__spreadValues({
|
|
6432
6473
|
"data-slot": "sidebar-menu-sub-item",
|
|
@@ -6448,7 +6489,7 @@ function SidebarMenuSubButton(_a) {
|
|
|
6448
6489
|
"className"
|
|
6449
6490
|
]);
|
|
6450
6491
|
const Comp = asChild ? import_radix_ui30.Slot.Root : "a";
|
|
6451
|
-
return /* @__PURE__ */ (0,
|
|
6492
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6452
6493
|
Comp,
|
|
6453
6494
|
__spreadValues({
|
|
6454
6495
|
"data-slot": "sidebar-menu-sub-button",
|
|
@@ -6470,7 +6511,7 @@ function SidebarMenuSubButton(_a) {
|
|
|
6470
6511
|
// components/ui/slider.tsx
|
|
6471
6512
|
var React13 = __toESM(require("react"), 1);
|
|
6472
6513
|
var import_radix_ui31 = require("radix-ui");
|
|
6473
|
-
var
|
|
6514
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
6474
6515
|
function Slider(_a) {
|
|
6475
6516
|
var _b = _a, {
|
|
6476
6517
|
className,
|
|
@@ -6489,7 +6530,7 @@ function Slider(_a) {
|
|
|
6489
6530
|
() => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max],
|
|
6490
6531
|
[value, defaultValue, min, max]
|
|
6491
6532
|
);
|
|
6492
|
-
return /* @__PURE__ */ (0,
|
|
6533
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
6493
6534
|
import_radix_ui31.Slider.Root,
|
|
6494
6535
|
__spreadProps(__spreadValues({
|
|
6495
6536
|
"data-slot": "slider",
|
|
@@ -6503,14 +6544,14 @@ function Slider(_a) {
|
|
|
6503
6544
|
)
|
|
6504
6545
|
}, props), {
|
|
6505
6546
|
children: [
|
|
6506
|
-
/* @__PURE__ */ (0,
|
|
6547
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
6507
6548
|
import_radix_ui31.Slider.Track,
|
|
6508
6549
|
{
|
|
6509
6550
|
"data-slot": "slider-track",
|
|
6510
6551
|
className: cn(
|
|
6511
6552
|
"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"
|
|
6512
6553
|
),
|
|
6513
|
-
children: /* @__PURE__ */ (0,
|
|
6554
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
6514
6555
|
import_radix_ui31.Slider.Range,
|
|
6515
6556
|
{
|
|
6516
6557
|
"data-slot": "slider-range",
|
|
@@ -6521,7 +6562,7 @@ function Slider(_a) {
|
|
|
6521
6562
|
)
|
|
6522
6563
|
}
|
|
6523
6564
|
),
|
|
6524
|
-
Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ (0,
|
|
6565
|
+
Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
6525
6566
|
import_radix_ui31.Slider.Thumb,
|
|
6526
6567
|
{
|
|
6527
6568
|
"data-slot": "slider-thumb",
|
|
@@ -6538,12 +6579,12 @@ function Slider(_a) {
|
|
|
6538
6579
|
var import_lucide_react23 = require("lucide-react");
|
|
6539
6580
|
var import_next_themes = require("next-themes");
|
|
6540
6581
|
var import_sonner = require("sonner");
|
|
6541
|
-
var
|
|
6582
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
6542
6583
|
var Toaster = (_a) => {
|
|
6543
6584
|
var props = __objRest(_a, []);
|
|
6544
6585
|
const { theme = "system" } = (0, import_next_themes.useTheme)();
|
|
6545
6586
|
const isMobile = useIsMobile();
|
|
6546
|
-
return /* @__PURE__ */ (0,
|
|
6587
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
6547
6588
|
import_sonner.Toaster,
|
|
6548
6589
|
__spreadValues({
|
|
6549
6590
|
theme,
|
|
@@ -6552,11 +6593,11 @@ var Toaster = (_a) => {
|
|
|
6552
6593
|
visibleToasts: isMobile ? 1 : 3,
|
|
6553
6594
|
duration: 4e3,
|
|
6554
6595
|
icons: {
|
|
6555
|
-
success: /* @__PURE__ */ (0,
|
|
6556
|
-
info: /* @__PURE__ */ (0,
|
|
6557
|
-
warning: /* @__PURE__ */ (0,
|
|
6558
|
-
error: /* @__PURE__ */ (0,
|
|
6559
|
-
loading: /* @__PURE__ */ (0,
|
|
6596
|
+
success: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_lucide_react23.CircleCheckIcon, { className: "size-4" }),
|
|
6597
|
+
info: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_lucide_react23.InfoIcon, { className: "size-4" }),
|
|
6598
|
+
warning: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_lucide_react23.TriangleAlertIcon, { className: "size-4" }),
|
|
6599
|
+
error: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_lucide_react23.OctagonXIcon, { className: "size-4" }),
|
|
6600
|
+
loading: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_lucide_react23.Loader2Icon, { className: "size-4 animate-spin" })
|
|
6560
6601
|
},
|
|
6561
6602
|
toastOptions: {
|
|
6562
6603
|
classNames: {
|
|
@@ -6579,7 +6620,7 @@ var Toaster = (_a) => {
|
|
|
6579
6620
|
// components/ui/stepper.tsx
|
|
6580
6621
|
var React14 = __toESM(require("react"), 1);
|
|
6581
6622
|
var import_lucide_react24 = require("lucide-react");
|
|
6582
|
-
var
|
|
6623
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
6583
6624
|
function clamp(value, min, max) {
|
|
6584
6625
|
return Math.min(Math.max(value, min), max);
|
|
6585
6626
|
}
|
|
@@ -6672,14 +6713,14 @@ function Stepper({
|
|
|
6672
6713
|
}
|
|
6673
6714
|
}
|
|
6674
6715
|
}
|
|
6675
|
-
return /* @__PURE__ */ (0,
|
|
6716
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
6676
6717
|
InputGroup,
|
|
6677
6718
|
{
|
|
6678
6719
|
"data-slot": "stepper",
|
|
6679
6720
|
"data-disabled": disabled || void 0,
|
|
6680
6721
|
className: cn("w-32", container, className),
|
|
6681
6722
|
children: [
|
|
6682
|
-
/* @__PURE__ */ (0,
|
|
6723
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(InputGroupAddon, { align: "inline-start", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
6683
6724
|
InputGroupButton,
|
|
6684
6725
|
{
|
|
6685
6726
|
size: buttonSize,
|
|
@@ -6687,10 +6728,10 @@ function Stepper({
|
|
|
6687
6728
|
onClick: handleDecrement,
|
|
6688
6729
|
disabled: disabled || currentValue <= min,
|
|
6689
6730
|
"aria-label": "Decrease value",
|
|
6690
|
-
children: /* @__PURE__ */ (0,
|
|
6731
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_lucide_react24.Minus, { className: iconClass })
|
|
6691
6732
|
}
|
|
6692
6733
|
) }),
|
|
6693
|
-
/* @__PURE__ */ (0,
|
|
6734
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
6694
6735
|
InputGroupInput,
|
|
6695
6736
|
{
|
|
6696
6737
|
type: "text",
|
|
@@ -6712,9 +6753,9 @@ function Stepper({
|
|
|
6712
6753
|
className: "text-center [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"
|
|
6713
6754
|
}
|
|
6714
6755
|
),
|
|
6715
|
-
/* @__PURE__ */ (0,
|
|
6716
|
-
/* @__PURE__ */ (0,
|
|
6717
|
-
/* @__PURE__ */ (0,
|
|
6756
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(InputGroupAddon, { align: "inline-end", children: [
|
|
6757
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(InputGroupText, { className: "font-normal text-on-subtle", children: "USDT" }),
|
|
6758
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
6718
6759
|
InputGroupButton,
|
|
6719
6760
|
{
|
|
6720
6761
|
size: buttonSize,
|
|
@@ -6722,7 +6763,7 @@ function Stepper({
|
|
|
6722
6763
|
onClick: handleIncrement,
|
|
6723
6764
|
disabled: disabled || currentValue >= max,
|
|
6724
6765
|
"aria-label": "Increase value",
|
|
6725
|
-
children: /* @__PURE__ */ (0,
|
|
6766
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_lucide_react24.Plus, { className: iconClass })
|
|
6726
6767
|
}
|
|
6727
6768
|
)
|
|
6728
6769
|
] })
|
|
@@ -6733,7 +6774,7 @@ function Stepper({
|
|
|
6733
6774
|
|
|
6734
6775
|
// components/ui/switch.tsx
|
|
6735
6776
|
var import_radix_ui32 = require("radix-ui");
|
|
6736
|
-
var
|
|
6777
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
6737
6778
|
function Switch(_a) {
|
|
6738
6779
|
var _b = _a, {
|
|
6739
6780
|
className,
|
|
@@ -6742,7 +6783,7 @@ function Switch(_a) {
|
|
|
6742
6783
|
"className",
|
|
6743
6784
|
"size"
|
|
6744
6785
|
]);
|
|
6745
|
-
return /* @__PURE__ */ (0,
|
|
6786
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6746
6787
|
import_radix_ui32.Switch.Root,
|
|
6747
6788
|
__spreadProps(__spreadValues({
|
|
6748
6789
|
"data-slot": "switch",
|
|
@@ -6752,7 +6793,7 @@ function Switch(_a) {
|
|
|
6752
6793
|
className
|
|
6753
6794
|
)
|
|
6754
6795
|
}, props), {
|
|
6755
|
-
children: /* @__PURE__ */ (0,
|
|
6796
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6756
6797
|
import_radix_ui32.Switch.Thumb,
|
|
6757
6798
|
{
|
|
6758
6799
|
"data-slot": "switch-thumb",
|
|
@@ -6766,15 +6807,15 @@ function Switch(_a) {
|
|
|
6766
6807
|
}
|
|
6767
6808
|
|
|
6768
6809
|
// components/ui/table.tsx
|
|
6769
|
-
var
|
|
6810
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
6770
6811
|
function Table(_a) {
|
|
6771
6812
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6772
|
-
return /* @__PURE__ */ (0,
|
|
6813
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
6773
6814
|
"div",
|
|
6774
6815
|
{
|
|
6775
6816
|
"data-slot": "table-container",
|
|
6776
6817
|
className: "relative w-full overflow-x-auto",
|
|
6777
|
-
children: /* @__PURE__ */ (0,
|
|
6818
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
6778
6819
|
"table",
|
|
6779
6820
|
__spreadValues({
|
|
6780
6821
|
"data-slot": "table",
|
|
@@ -6786,7 +6827,7 @@ function Table(_a) {
|
|
|
6786
6827
|
}
|
|
6787
6828
|
function TableHeader(_a) {
|
|
6788
6829
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6789
|
-
return /* @__PURE__ */ (0,
|
|
6830
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
6790
6831
|
"thead",
|
|
6791
6832
|
__spreadValues({
|
|
6792
6833
|
"data-slot": "table-header",
|
|
@@ -6796,7 +6837,7 @@ function TableHeader(_a) {
|
|
|
6796
6837
|
}
|
|
6797
6838
|
function TableBody(_a) {
|
|
6798
6839
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6799
|
-
return /* @__PURE__ */ (0,
|
|
6840
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
6800
6841
|
"tbody",
|
|
6801
6842
|
__spreadValues({
|
|
6802
6843
|
"data-slot": "table-body",
|
|
@@ -6806,7 +6847,7 @@ function TableBody(_a) {
|
|
|
6806
6847
|
}
|
|
6807
6848
|
function TableFooter(_a) {
|
|
6808
6849
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6809
|
-
return /* @__PURE__ */ (0,
|
|
6850
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
6810
6851
|
"tfoot",
|
|
6811
6852
|
__spreadValues({
|
|
6812
6853
|
"data-slot": "table-footer",
|
|
@@ -6819,7 +6860,7 @@ function TableFooter(_a) {
|
|
|
6819
6860
|
}
|
|
6820
6861
|
function TableRow(_a) {
|
|
6821
6862
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6822
|
-
return /* @__PURE__ */ (0,
|
|
6863
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
6823
6864
|
"tr",
|
|
6824
6865
|
__spreadValues({
|
|
6825
6866
|
"data-slot": "table-row",
|
|
@@ -6832,7 +6873,7 @@ function TableRow(_a) {
|
|
|
6832
6873
|
}
|
|
6833
6874
|
function TableHead(_a) {
|
|
6834
6875
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6835
|
-
return /* @__PURE__ */ (0,
|
|
6876
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
6836
6877
|
"th",
|
|
6837
6878
|
__spreadValues({
|
|
6838
6879
|
"data-slot": "table-head",
|
|
@@ -6845,7 +6886,7 @@ function TableHead(_a) {
|
|
|
6845
6886
|
}
|
|
6846
6887
|
function TableCell(_a) {
|
|
6847
6888
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6848
|
-
return /* @__PURE__ */ (0,
|
|
6889
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
6849
6890
|
"td",
|
|
6850
6891
|
__spreadValues({
|
|
6851
6892
|
"data-slot": "table-cell",
|
|
@@ -6862,7 +6903,7 @@ function TableCaption(_a) {
|
|
|
6862
6903
|
} = _b, props = __objRest(_b, [
|
|
6863
6904
|
"className"
|
|
6864
6905
|
]);
|
|
6865
|
-
return /* @__PURE__ */ (0,
|
|
6906
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
6866
6907
|
"caption",
|
|
6867
6908
|
__spreadValues({
|
|
6868
6909
|
"data-slot": "table-caption",
|
|
@@ -6872,9 +6913,9 @@ function TableCaption(_a) {
|
|
|
6872
6913
|
}
|
|
6873
6914
|
|
|
6874
6915
|
// components/ui/tabs.tsx
|
|
6875
|
-
var
|
|
6916
|
+
var import_class_variance_authority14 = require("class-variance-authority");
|
|
6876
6917
|
var import_radix_ui33 = require("radix-ui");
|
|
6877
|
-
var
|
|
6918
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
6878
6919
|
function Tabs(_a) {
|
|
6879
6920
|
var _b = _a, {
|
|
6880
6921
|
className,
|
|
@@ -6883,7 +6924,7 @@ function Tabs(_a) {
|
|
|
6883
6924
|
"className",
|
|
6884
6925
|
"orientation"
|
|
6885
6926
|
]);
|
|
6886
|
-
return /* @__PURE__ */ (0,
|
|
6927
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
6887
6928
|
import_radix_ui33.Tabs.Root,
|
|
6888
6929
|
__spreadValues({
|
|
6889
6930
|
"data-slot": "tabs",
|
|
@@ -6896,7 +6937,7 @@ function Tabs(_a) {
|
|
|
6896
6937
|
}, props)
|
|
6897
6938
|
);
|
|
6898
6939
|
}
|
|
6899
|
-
var tabsListVariants = (0,
|
|
6940
|
+
var tabsListVariants = (0, import_class_variance_authority14.cva)(
|
|
6900
6941
|
"group/tabs-list inline-flex w-fit items-center justify-center text-on-subtle group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none has-[[data-icon-position=top]]:h-auto",
|
|
6901
6942
|
{
|
|
6902
6943
|
variants: {
|
|
@@ -6926,7 +6967,7 @@ function TabsList(_a) {
|
|
|
6926
6967
|
"variant",
|
|
6927
6968
|
"size"
|
|
6928
6969
|
]);
|
|
6929
|
-
return /* @__PURE__ */ (0,
|
|
6970
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
6930
6971
|
import_radix_ui33.Tabs.List,
|
|
6931
6972
|
__spreadValues({
|
|
6932
6973
|
"data-slot": "tabs-list",
|
|
@@ -6944,7 +6985,7 @@ function TabsTrigger(_a) {
|
|
|
6944
6985
|
"className",
|
|
6945
6986
|
"iconPosition"
|
|
6946
6987
|
]);
|
|
6947
|
-
return /* @__PURE__ */ (0,
|
|
6988
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
6948
6989
|
import_radix_ui33.Tabs.Trigger,
|
|
6949
6990
|
__spreadValues({
|
|
6950
6991
|
"data-slot": "tabs-trigger",
|
|
@@ -6970,7 +7011,7 @@ function TabsContent(_a) {
|
|
|
6970
7011
|
} = _b, props = __objRest(_b, [
|
|
6971
7012
|
"className"
|
|
6972
7013
|
]);
|
|
6973
|
-
return /* @__PURE__ */ (0,
|
|
7014
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
6974
7015
|
import_radix_ui33.Tabs.Content,
|
|
6975
7016
|
__spreadValues({
|
|
6976
7017
|
"data-slot": "tabs-content",
|
|
@@ -6981,7 +7022,7 @@ function TabsContent(_a) {
|
|
|
6981
7022
|
|
|
6982
7023
|
// components/ui/ticket-card.tsx
|
|
6983
7024
|
var import_lucide_react25 = require("lucide-react");
|
|
6984
|
-
var
|
|
7025
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
6985
7026
|
function formatBalanceValue(raw) {
|
|
6986
7027
|
const match = raw.match(/^(\D*)([\d,]+(?:\.\d+)?)(\D*)$/);
|
|
6987
7028
|
if (!match) return raw;
|
|
@@ -7005,23 +7046,23 @@ function TicketCard({
|
|
|
7005
7046
|
stubDisabled = false,
|
|
7006
7047
|
compact = false
|
|
7007
7048
|
}) {
|
|
7008
|
-
return /* @__PURE__ */ (0,
|
|
7009
|
-
/* @__PURE__ */ (0,
|
|
7010
|
-
icon && /* @__PURE__ */ (0,
|
|
7011
|
-
/* @__PURE__ */ (0,
|
|
7012
|
-
/* @__PURE__ */ (0,
|
|
7013
|
-
/* @__PURE__ */ (0,
|
|
7014
|
-
/* @__PURE__ */ (0,
|
|
7015
|
-
currency && /* @__PURE__ */ (0,
|
|
7049
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: cn("flex w-full flex-col gap-2", className), children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "relative flex h-20 w-full items-stretch justify-between rounded-sm bg-subtle", children: [
|
|
7050
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: cn("flex flex-1 items-center overflow-hidden", compact ? "gap-2 px-2" : "gap-4 px-4"), children: [
|
|
7051
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "flex size-10 shrink-0 items-center justify-center rounded-full border-2 border-primary text-primary", children: icon }),
|
|
7052
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex h-11 flex-col justify-center gap-1 whitespace-nowrap", children: [
|
|
7053
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: "text-xs text-on-subtle", children: label }),
|
|
7054
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("p", { className: "leading-none", children: [
|
|
7055
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-[20px] font-bold text-on-prominent", children: formatBalanceValue(value) }),
|
|
7056
|
+
currency && /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
|
|
7016
7057
|
" ",
|
|
7017
|
-
/* @__PURE__ */ (0,
|
|
7058
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-sm text-on-subtle", children: currency })
|
|
7018
7059
|
] })
|
|
7019
7060
|
] })
|
|
7020
7061
|
] })
|
|
7021
7062
|
] }),
|
|
7022
|
-
/* @__PURE__ */ (0,
|
|
7023
|
-
/* @__PURE__ */ (0,
|
|
7024
|
-
/* @__PURE__ */ (0,
|
|
7063
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { "aria-hidden": true, className: "pointer-events-none absolute right-[88px] top-[-12px] z-10 size-6 rounded-full bg-prominent" }),
|
|
7064
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { "aria-hidden": true, className: "pointer-events-none absolute right-[88px] top-[68px] z-10 size-6 rounded-full bg-prominent" }),
|
|
7065
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7025
7066
|
"div",
|
|
7026
7067
|
{
|
|
7027
7068
|
"aria-hidden": true,
|
|
@@ -7032,7 +7073,7 @@ function TicketCard({
|
|
|
7032
7073
|
}
|
|
7033
7074
|
}
|
|
7034
7075
|
),
|
|
7035
|
-
/* @__PURE__ */ (0,
|
|
7076
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
7036
7077
|
"button",
|
|
7037
7078
|
{
|
|
7038
7079
|
type: "button",
|
|
@@ -7046,7 +7087,7 @@ function TicketCard({
|
|
|
7046
7087
|
stubDisabled ? "cursor-not-allowed opacity-50" : "hover:bg-primary-hover"
|
|
7047
7088
|
),
|
|
7048
7089
|
children: [
|
|
7049
|
-
!stubDisabled && /* @__PURE__ */ (0,
|
|
7090
|
+
!stubDisabled && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7050
7091
|
"span",
|
|
7051
7092
|
{
|
|
7052
7093
|
"aria-hidden": true,
|
|
@@ -7056,8 +7097,8 @@ function TicketCard({
|
|
|
7056
7097
|
}
|
|
7057
7098
|
}
|
|
7058
7099
|
),
|
|
7059
|
-
/* @__PURE__ */ (0,
|
|
7060
|
-
/* @__PURE__ */ (0,
|
|
7100
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_lucide_react25.ArrowRight, { className: "size-4 text-on-primary" }),
|
|
7101
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-sm font-semibold text-on-primary", children: stubLabel })
|
|
7061
7102
|
]
|
|
7062
7103
|
}
|
|
7063
7104
|
)
|
|
@@ -7083,33 +7124,33 @@ function CreditTicketCard({
|
|
|
7083
7124
|
badgeInfoCloseLabel,
|
|
7084
7125
|
compact = false
|
|
7085
7126
|
}) {
|
|
7086
|
-
return /* @__PURE__ */ (0,
|
|
7127
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: cn("flex w-full flex-col gap-2", className), children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "relative flex w-full items-stretch justify-between rounded-sm bg-subtle", children: [
|
|
7087
7128
|
(() => {
|
|
7088
7129
|
const badgeText = badgeValue ? `${badgeValue}${badgeCurrency ? ` ${badgeCurrency}` : ""}` : badgeLabel;
|
|
7089
|
-
const creditBadge = /* @__PURE__ */ (0,
|
|
7130
|
+
const creditBadge = /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Badge, { variant: "fill-credit", size: "sm", className: "!gap-1 !tracking-normal", children: [
|
|
7090
7131
|
badgeIcon,
|
|
7091
7132
|
badgeText,
|
|
7092
|
-
badgeInfo && /* @__PURE__ */ (0,
|
|
7093
|
-
/* @__PURE__ */ (0,
|
|
7133
|
+
badgeInfo && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Tooltip2, { children: [
|
|
7134
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7094
7135
|
"button",
|
|
7095
7136
|
{
|
|
7096
7137
|
type: "button",
|
|
7097
7138
|
"aria-label": `More info about ${badgeLabel.toLowerCase()}`,
|
|
7098
7139
|
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",
|
|
7099
|
-
children: /* @__PURE__ */ (0,
|
|
7140
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_lucide_react25.Info, { className: "!size-3.5", strokeWidth: 2 })
|
|
7100
7141
|
}
|
|
7101
7142
|
) }),
|
|
7102
|
-
/* @__PURE__ */ (0,
|
|
7143
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TooltipContent, { side: badgeInfoSide, align: badgeInfoAlign, title: badgeInfoTitle, closeLabel: badgeInfoCloseLabel, variant: "inverse", children: badgeInfo })
|
|
7103
7144
|
] }) })
|
|
7104
7145
|
] });
|
|
7105
|
-
const valueText = /* @__PURE__ */ (0,
|
|
7106
|
-
/* @__PURE__ */ (0,
|
|
7107
|
-
currency && /* @__PURE__ */ (0,
|
|
7146
|
+
const valueText = /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("p", { className: "leading-none whitespace-nowrap", children: [
|
|
7147
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-[20px] font-bold text-on-prominent", children: formatBalanceValue(value) }),
|
|
7148
|
+
currency && /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
|
|
7108
7149
|
" ",
|
|
7109
|
-
/* @__PURE__ */ (0,
|
|
7150
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-sm text-on-subtle", children: currency })
|
|
7110
7151
|
] })
|
|
7111
7152
|
] });
|
|
7112
|
-
return /* @__PURE__ */ (0,
|
|
7153
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
7113
7154
|
"div",
|
|
7114
7155
|
{
|
|
7115
7156
|
className: cn(
|
|
@@ -7117,10 +7158,10 @@ function CreditTicketCard({
|
|
|
7117
7158
|
compact ? "gap-2 px-2 py-4" : "gap-4 px-4 py-4"
|
|
7118
7159
|
),
|
|
7119
7160
|
children: [
|
|
7120
|
-
icon && /* @__PURE__ */ (0,
|
|
7121
|
-
/* @__PURE__ */ (0,
|
|
7122
|
-
/* @__PURE__ */ (0,
|
|
7123
|
-
/* @__PURE__ */ (0,
|
|
7161
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "flex size-10 shrink-0 items-center justify-center rounded-full border-2 border-primary text-primary", children: icon }),
|
|
7162
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex min-w-0 flex-col gap-1", children: [
|
|
7163
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: "text-xs text-on-subtle whitespace-nowrap", children: label }),
|
|
7164
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
7124
7165
|
"div",
|
|
7125
7166
|
{
|
|
7126
7167
|
className: cn(
|
|
@@ -7138,9 +7179,9 @@ function CreditTicketCard({
|
|
|
7138
7179
|
}
|
|
7139
7180
|
);
|
|
7140
7181
|
})(),
|
|
7141
|
-
/* @__PURE__ */ (0,
|
|
7142
|
-
/* @__PURE__ */ (0,
|
|
7143
|
-
/* @__PURE__ */ (0,
|
|
7182
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { "aria-hidden": true, className: "pointer-events-none absolute right-[88px] top-[-12px] z-10 size-6 rounded-full bg-prominent" }),
|
|
7183
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { "aria-hidden": true, className: "pointer-events-none absolute right-[88px] bottom-[-12px] z-10 size-6 rounded-full bg-prominent" }),
|
|
7184
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7144
7185
|
"div",
|
|
7145
7186
|
{
|
|
7146
7187
|
"aria-hidden": true,
|
|
@@ -7151,7 +7192,7 @@ function CreditTicketCard({
|
|
|
7151
7192
|
}
|
|
7152
7193
|
}
|
|
7153
7194
|
),
|
|
7154
|
-
/* @__PURE__ */ (0,
|
|
7195
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
7155
7196
|
"button",
|
|
7156
7197
|
{
|
|
7157
7198
|
type: "button",
|
|
@@ -7165,7 +7206,7 @@ function CreditTicketCard({
|
|
|
7165
7206
|
stubDisabled ? "cursor-not-allowed opacity-50" : "hover:bg-primary-hover"
|
|
7166
7207
|
),
|
|
7167
7208
|
children: [
|
|
7168
|
-
!stubDisabled && /* @__PURE__ */ (0,
|
|
7209
|
+
!stubDisabled && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7169
7210
|
"span",
|
|
7170
7211
|
{
|
|
7171
7212
|
"aria-hidden": true,
|
|
@@ -7175,8 +7216,8 @@ function CreditTicketCard({
|
|
|
7175
7216
|
}
|
|
7176
7217
|
}
|
|
7177
7218
|
),
|
|
7178
|
-
/* @__PURE__ */ (0,
|
|
7179
|
-
/* @__PURE__ */ (0,
|
|
7219
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_lucide_react25.ArrowRight, { className: "size-4 text-on-primary" }),
|
|
7220
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-sm font-semibold text-on-primary", children: stubLabel })
|
|
7180
7221
|
]
|
|
7181
7222
|
}
|
|
7182
7223
|
)
|
|
@@ -7185,10 +7226,10 @@ function CreditTicketCard({
|
|
|
7185
7226
|
var TicketCardDesktop = TicketCard;
|
|
7186
7227
|
|
|
7187
7228
|
// components/ui/toggle.tsx
|
|
7188
|
-
var
|
|
7229
|
+
var import_class_variance_authority15 = require("class-variance-authority");
|
|
7189
7230
|
var import_radix_ui34 = require("radix-ui");
|
|
7190
|
-
var
|
|
7191
|
-
var toggleVariants = (0,
|
|
7231
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
7232
|
+
var toggleVariants = (0, import_class_variance_authority15.cva)(
|
|
7192
7233
|
"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",
|
|
7193
7234
|
{
|
|
7194
7235
|
variants: {
|
|
@@ -7218,7 +7259,7 @@ function Toggle(_a) {
|
|
|
7218
7259
|
"variant",
|
|
7219
7260
|
"size"
|
|
7220
7261
|
]);
|
|
7221
|
-
return /* @__PURE__ */ (0,
|
|
7262
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
7222
7263
|
import_radix_ui34.Toggle.Root,
|
|
7223
7264
|
__spreadValues({
|
|
7224
7265
|
"data-slot": "toggle",
|
|
@@ -7230,7 +7271,7 @@ function Toggle(_a) {
|
|
|
7230
7271
|
// components/ui/toggle-group.tsx
|
|
7231
7272
|
var React15 = __toESM(require("react"), 1);
|
|
7232
7273
|
var import_radix_ui35 = require("radix-ui");
|
|
7233
|
-
var
|
|
7274
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
7234
7275
|
var ToggleGroupContext = React15.createContext({
|
|
7235
7276
|
size: "default",
|
|
7236
7277
|
variant: "default",
|
|
@@ -7250,7 +7291,7 @@ function ToggleGroup(_a) {
|
|
|
7250
7291
|
"spacing",
|
|
7251
7292
|
"children"
|
|
7252
7293
|
]);
|
|
7253
|
-
return /* @__PURE__ */ (0,
|
|
7294
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
7254
7295
|
import_radix_ui35.ToggleGroup.Root,
|
|
7255
7296
|
__spreadProps(__spreadValues({
|
|
7256
7297
|
"data-slot": "toggle-group",
|
|
@@ -7263,7 +7304,7 @@ function ToggleGroup(_a) {
|
|
|
7263
7304
|
className
|
|
7264
7305
|
)
|
|
7265
7306
|
}, props), {
|
|
7266
|
-
children: /* @__PURE__ */ (0,
|
|
7307
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ToggleGroupContext.Provider, { value: { variant, size, spacing }, children })
|
|
7267
7308
|
})
|
|
7268
7309
|
);
|
|
7269
7310
|
}
|
|
@@ -7280,7 +7321,7 @@ function ToggleGroupItem(_a) {
|
|
|
7280
7321
|
"size"
|
|
7281
7322
|
]);
|
|
7282
7323
|
const context = React15.useContext(ToggleGroupContext);
|
|
7283
|
-
return /* @__PURE__ */ (0,
|
|
7324
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
7284
7325
|
import_radix_ui35.ToggleGroup.Item,
|
|
7285
7326
|
__spreadProps(__spreadValues({
|
|
7286
7327
|
"data-slot": "toggle-group-item",
|
|
@@ -7303,7 +7344,7 @@ function ToggleGroupItem(_a) {
|
|
|
7303
7344
|
}
|
|
7304
7345
|
|
|
7305
7346
|
// components/blocks/result-block.tsx
|
|
7306
|
-
var
|
|
7347
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
7307
7348
|
var THUMBS_UP_DATA_URL = "data:image/webp;base64,UklGRmYPAABXRUJQVlA4WAoAAAAQAAAAxwAAxwAAQUxQSCcFAAABsIftsylJUsQ5N8sYZHaPbdu2bdu2bfM/27Zte7Mya22rmRnnt8hblfcgcr0RMQH0/zrz37H+mLt2efCjV0+bjwyrrkSno/X3VyKjOEufOGklqC9JhpXG9LRgjILaMmR1ZlbEOAWfzsxGYUyTGuMABGdRpi97ENoo+JKstixB2gA0plCmLHqoifY2J1GmKjMXXJvQrJJRFNO3gra7c1hRdgMUKJjZqskQmgVAviQ18xWCYmdhJdk+FOTuJC2/Jyj4T0oyy6L4soqYftsobgMV2aPg4ZEaygjiwU0aohcFHt6mIDMPvLxVP0w/Ei9u14/dGn7epR5LED/OVQ/dJfBzK+3Y2eE8mVs5TFWBp6Rcuz58/Vw5hlzTlzeVw5cKfH1RN7YL/iBjxTC9J/B3G82YleCxe4P0auhPTY/wB80c7+DzdL1YA/EK3WqhlwV+D2nFLATftcL0y6Zv/UoxB8F3Rzq1BPFtilLoaYHvb+jELAz/N2WNMP1C/LMqsbvCe/c5adQSxDvsxBqhOwT+G43YiXD+vUsKZfpa4P9arBC7LkIkhRhyTf/cg6RQvkwQ4KKsj6wfAcgfSZ+GPhX47841qWEmMqWu7q6uUstusnnMppQZY69DkP293d2lUmbNWK01LbMsy0qlUtaC48BMlVM//KNgzD8YynLMZoBzAichTEdrJ2N1zomIOOfQsjl19OmdK8QmOLZ0xO8xfvkd5TcEKfzFMWQ4LMNLTXPSBvx6LEiiOOxJWUiGzkEDbf1TagDB15SFw3QjBO2dnh6gMYWyYOxOELS5mSI0J1EWiGU00W7hFEE+JhMGPSxouzNJAnYOBQWmSqYTh8ArFYFEAdsHQdf4MT0tboSCfFEhQHcQ1UJssuYJ4luVrN8xbNsxbN8x7BDEd1SyXRBVlawbG0f501IzT2ywTE4JqaUgRwrZKmc4NR/GZ/NUbc7R2SJV61GQNY0sEUa9kM1zZkjNsmHUvBhOzXI2iFGFyI8oyJpCgFm5UziMQhxVyb1B1L0YSs5TQdRU8ma0BpPzScfwdhAjKnk0iKpKDuMQRrwYSM4CFGLNi/7UTKcg64Vslii5O4yaQjC/iVZfWtzvKUw/etMiF5ow6vrAzIGMFLJpkqRKgVbVge24U6BQatpwz1Ko9UI2yelJCRbnzkD+RMHWCtk4pzch7ioOpq4MTDTB1ArZJKcnHe6HFG4xG6cH+3GcNklQFlBdFe5dCrhWyMbJwUocUL2QTVLjhEKuaUJuCaquCczFsdo0pzcR7hcU9KgmjjcdAnq4M3CfUdh1PWA97hQosJoa3CMU+IgasDgHVvOiLwXuDxS6Hi7mDgEzmtCqXvQnwH2Xgh8pZLOEYC8TXM2LvhQYDm5UB+4tCl8JWJU7A+coEQPxu5ci6Mdg9LAoR2DEi6HYya8phtVCNk+FO4Fj8B0NoMvE4FsNfExR9GMwdhtyp0AdgnuC4vh5+rAEx+Ht5LlJFMnnkydXciRuTR5mMpE4ppAtUiBfUSznKWTLFGB1jgVNkgK2SkDjFxQNc7DzoD9eDosbigb9vtG+LXP6InYDRTQbRKNtm+f0xMq5N8lEhLI50UyT4G7KKKoZfQxpzzY5RmIkbtqaZCmyGS1XbUcDxK3od80ITTqdDFN8Dc108qdTxoNFLLU2SyGy03583dLEhuLMRDQ46/zzzTffvPPMPffc88w7fymjfEOzTpwwYUIlt1yu/H15rJXy31fKlXKlnF8pj7tSrvx9uZeIien//v9XfQBWUDggGAoAANAwAJ0BKsgAyAA+kUScS6WjoqUjc5pgsBIJZ278Qi8Hwvc8Z/PndH0L8Y+3P/DeGNhV4uz8do8qx9p5gcZv+s8NH7D/z/YD/PX66ewT/4f6XzifTPsG/rz6Vnrs/cP2Hv11//JFOyneeAW0wbcou/igl1zxho0WRxDimPALaYM6+VrqjKr+SiMnElO878dA3yFCkM+t+whevqvMGhXCcaDwUXXFH4eQ6sCNOis0oDUln4e9M3beAvzbZyUe2sUvdvtjPDFhG8dPxVDA/XZGk1ETr69eacwYnPhuLS56ol4GHT+w+hq85I7EHxvN4n68ZUeC+sDOCSQMpz6m4Fzqzrg9ZyhyQnUfmHqhcGQ/yBDy4W+qjcsBfDq4xpVARzZ2uW47mzNOIigiKz5Tw+mTHb7K5m9lSfmeMPMPpWXhZQVTZawZgxiMdOg3ccW5pccD7hwGCZ0+pV2azLYrT+zGOqIcbr1PYUXPl9LQ8IhKTeyhGBmpdCXdUSSJMKko79zaD//rSyWRpF1MNueAW0v+AAD++5zAAALiasAmBAtMjd3teHxoV/JwSycQb8T24aWw5wWjnP87DL5yaEnvCifBRcW/QYZPObqU0f4fAjw2ZLaVKj7hZoTyQu4dPqH4gTQMcAfv8BCfJ7DObKNJoDat3XoqhZuiW8sQ6GBrRMq9Dkd0xl5ULWfjBCUXzvE+yRWByiMm9GvwsjN6pMTLTAfwDK8x8YHP7IFXmr9Ohbw3lVDYPJKpWXmHeO7wb8vGqU2ThOJXtJ9olH5g1qkVNO7MdAd5FvxU86R1i/SUqzBMrxSAPdTXXmLZu+gveBx/eYqSRNuu0tqHIV9T+mP1xEC5dX+HdTXYA1Pdhk+9yLuHAU2D8bazJuRhexCVychOyXyv+7dpTzpNfrj+lC5dIVyzoW5Fyra3W3dyl1mQ3MrAMiHwf1pV5axectvd4CM+Iu4n1yHfPKGPcrcm/G9+a5dAzXL9YOdbO+GmAYyFR+E0uZd7nFwfW9OvRmg/k1ekfsv4dZEZ45M6yITB/1GMCi872dJHGq4nCKuaCXURhXCNsLy+tpj6YCTt5oJDuG1WXTgI8++c5/4AM/eJFCx0dMaf8Loyp9W/PAHdOZgC2aG4/1/lA3Epa/4hAEPIiuAo3vZyTXO65nn9/A+eLuy/449dgY7gSsrQDrP2Hmh05OsdFBPj+BsefJZAyMS4T6jPsdCNtu6bH4KcFVBwIegQ22lQnlBIG2D4R24k/McwxQQC6sR8c/eJCL6o+anvM+BC4dVih1h5ae/4s1Q6GkFw9gE6+2/rhedXEzoV8TtJ3dLuPi+nRU8XxTZqq/E4ctlcWd0H0aawPjTIcXaxQk36BEC/njKgHlc7c/d4+WQiihb7eG2ng4KVyJHZ3bzK/4I0yU1/ile9IfW342gFB3dUS7yrQxNbRdeoE4f47jSRZD4uP4qpVOWmKtIE31xquU1ep2EeCbLB8UoludUvkjG8U8M3pe7XlyGBYQcgcsn3HFUuPXp/5yXaZR9H9scEjkX6MlhwKI3QGuk8UZborE1j0lt5pNTfq2K6d1/6SoiVNVLSRZ9ry7YQGRhQ48mewSXEEVownN9KTXH5SXUylJLr1jB9KOAhLAGdMfpkFNbgPlU70iYmRw9xYQz1yfvUH6Ul80AcAra/1tvp5kua7H5wgy30feuCKUXQIzcIoIpSuFQ/i7SxQkRCfWQIAsOc0XZmr3/IOBAZKbzIMOlBkoxYtjE95cV04d+6N792Le6VUmArBadYp7BOgqcNfxU4dfBtJ74uDkc6VQRuIpPg478BODjpfsWFA0vlLIKFTdRwVUdJOxBvFnhWwKP0D1apVqohwg0IPDfWP8UVdpVUhGrWYuUTDE2nubQrJ5v+usi24qv+3kysRqQMjDJOqpQkxnigjREutxNfsLY1xUvO2lTqrORSagjcR7pA8924ES/dA1lEZ3ZQ5z1F6nS8Bq2xnTiQ9BqcmJ7zSJd22si8KtuN/siapwQIzTHW63B7xXAKQtKMnUE639KX83BWcVOWGr50CTiUvkK8yDy38AHewCCa/fjhQeHabgNE/0tmbOaN5stn1H/m6qKp0WCbyVA7tKaSaRklqfipnbXoVHMguAGss38eJa3FLWweUAl7rNzHv79GalBMmNgUznun+3m3dWMn5WK/34+LilQXVLXAzuRipKqi3cNMeLO8B+ug7CpRCchBUESkH2ep5anNgdsYR5rfffGhVW3o3VIRyYpN35MK7tlEi/t7OeSTr10CeQQnpcc5pd9K4SdIQCZ5/G9WjwRMnVf0oXJ25OUzYGMakzcjz5vjSV7Fh+UNNjgLnlnM5zdtz8DyB6OlSAA/xFhwY8uyPpMaJBpmJVjNOdEChpZ9QUc+gAz/Awt2ER8coD6OZhX5NUjEKrJvHjOQTeuvCAyJ9CJAHY1HDkY1Saa2/vC8jm+Sc9DiMKg+LJriUFijlLwHEPOluQhWObjSqhybrp1vmS1Mt/KPMDPZyt6Kxox6jMvL/xgGNNE+JaFEcEZ/H/Ws6oWhQT9Qteg2TDkQISuXe+FCmot1BtA3iCJ29VxNMNaWuGXJdmhEfp/ST9UNlxSsfVfbEkqQdBoiUIhK5GZlUF1tOTbgEdr60Ty1S6ZSFLIovKBxheqO5TAGNtbCaJ7nvRkqRaIb+LRL7P/c3EGI4PFCpyNZnNajr3oh7e8M8mufcpqT+DXDSZ1KG56xJQ06T18FfS5s4r6tbLWSbMQO8uH19kYca2lgvljt0gfWU3h7FSWwRDGQGLhWojhmxHZrgtn/gyvw5GGLqjCqwx8KHX/maaRTUYSwWSmwXtS1RBmIDLx1GHCS2ED5ciDx7qn4HOqEzNpwfN/XMYuRmyvMDqb0u1FEQ/NHsDl2yA7MopUtbm7A3rB7jH3+o8Y5Aaq0egHuftsojcTr2yQ2tqnZusSb6vb2Qgf0ZV80OOwJYY35WQr8st1x3UCrKmS3X1TXIlvAUQgwS72DVKESwuab+Nlb2FLU9/UfmZzs1bGi2wfdsiqXt3Da1HGSb/1OAFDj4P5b03Saw9Pf7kplOscrGW93H9ZW1JmNiPNi/OW6hL0I2ZLtM8vQwYylPwdMGln9ZddXNn9HgsnNATObEWO1BfVE3Vx1OqLeOSo8aw5bNxSPfyUFvwV9LIgpeSE+a7JZV0sMm/K6xXubpoIPqa6tXoP/g8/tvZbgguLvKcaYVpiTe4orHUeYbU/VEaQdLW5kGBmCTUU8fSDGjZhUqVp86z4tNdZx3P2C654aOxJW5G3pVcdlqsipHwLgFBUCfcsGTJ0U+svqOD8TEXkbq6DsqXDRuYB94Pz74uM+Zh3xXaDJU48d8SBhfPPEtop5pxU6j3s0czCqev5OjlwuW/ESXLpZiO2Gx24Pwl33O8l/z9VzhVM+sZy7NWzUASRdBsuUPG+PAAAAAAAAAAA=";
|
|
7308
7349
|
var THUMBS_DOWN_DATA_URL = "data:image/webp;base64,UklGRvgPAABXRUJQVlA4WAoAAAAQAAAAxwAAxwAAQUxQSOIFAAAB8IBteyFp27btSdWcum3btm3btm3btm3bvmzMTE33nDaGVw+6R1XJfmNSU6kcye37jogJwP/9/99f1caUdimdUBqb7vrG303Onteb783OTE9OTM68BW59s5n9e/bs2N7tdorR4eHR0aIoirFOMTJSjAwPnzsyWhRjnU632xktiqIYG+t0ut3ueLc73u0WxUjxt51Op9vdsXPXjvEzvvOGZ18NUEqkDFc4jhu2vJULk5binnJjaHmUvtAozcbIp9ShvJZ7r4VMGKXuy5KNPq3GtECk4TeRi6LU02nY7DOEozWzyCTJbkrDhp8pHVmtIJdDgyWjxWoXtBzvNmz82TVmxKJ9qhID9PDcGtNyGQstxa3o8eU1puSifa2S4v0+XldjUjCzDCXEb3y8OQrkfbUQx/l4R42jkplDEPJkH2+pcUQy8rJahlN8vDYS5teQ8VQfb6pxTDRyixbhNB/vqjEhm32fEuFMHx+oMSWbKaEkONvHl2rMyEb7aC3BWT6+XmNeODMPJcA5Pk6uUQpH3kELMOxjxrWF0pudkG3BdVHxyIvo8EZ99F2Xkc9+UYU35mPRdbkIGKWD2+XjPNdl5aN9ngpun4+e61IxWIAK7YCPRdclI0DeUYd2yMcgKuYQBFt2XSIG5KV1YId9rMbF/ASBH/FRui4SBXKTlu8CcbAvV2JVrvPFwQyg/j4g76WlKmNjjkK880eCvHIm1Fp0zIkQajU65Pm0TEuuC0TDvlvJ1I9QCSXb+aJB3lOLNHBtjYc5Atm2xIO8sg7mWGKYP0CiJdfmiJDbdCgTqWHfr0KZTA2zBhXIhI+Ba1NMyIeGMpkcdgby9F1DUSGvpv9OML+DOEuuPC7kkJJmuYaNzMPEWXFlJi62QJATCUIOBTHZCh2da4mlqtg87u+G14qVmdi8RZrVGjY2b5BmxZUzti8LYtrHsmsoOk8Ooudj4NoUnTsFseBj0bU5OhcMou9jwXW+2ExCmr7rIrF5RxgDH/Oui8fm8WH0fcy6LhOb14Ux56PnumxsdoUx5WPBdcnYcCiICR8914Wjc8sgjvqYdV0wOq8O4lArLhyd7wexz8e866Jh2RBODmKvjwXXxYKyDLEI4k+tuERAi4Y2hF1BfMLHogCGgY6FoB7qY8l1yXBI2iBODAHbfCzLEOZ7g8DxVQsuHp3bqRCyC9E0tuq6UEAmEI0g9XNom1pznT+gMM2pCATvp2loNVa8mg4DGk+gaWbFdb6QLE3rqhMRrNKXGKdtwEy7sGYDKlmtkrZF1RLyYIAM1/3lxiwfpVw/YjyrAXIErYArPPh93/r5H048+aSTTzn5lJNP/Okd4MrwmF8cV4xP0Ihn7DhyiKsU3ArrvpBWNmv5NOSIoMaXjWz9V2VaI4oaU1X7qn5vrjczPTM7O9ub7/cX+wN3fzDoD9bvT3V//eIrQGnEMs9ZtY6XRZJm16Npm/llmkC9lLZlNFBJonGcaRvvkybIsVi2zO5CoubbWLaLvIhOE+ib0bTLflIlCtRr2G6zjFTVONO0iryBShTkGJTt+iiSNTs/y1YdThfoW9G0iUPpAvUGtvqKCaNxumnT4xIGOQZli96eMsjPx6o930wa6JvRtOZ7aQP1Krb2u4mjcYppy68SBznmq5b8JnWQbWXZjm8kD7Ib0rTiJekD9Rq28g4JpHGmacPWBEKOQeXvKJI4uyBLb6NpBH0XGl/copJI4YP0/jCkscaw8fWVREKOlcrTWCohvwqtn/lkAn5s/AzSKdtM62U5naA+52c1ofT5uK5tqEwoYNyuY5tZSapXsVGzXi+l1A2bcXZSCuf38pGkQtmEcdxGJdW+jVlLJ9L6lxtz2zMT6/nN8To6qdT1GzMjSOytjVjS8HxZYmG5ib99TIbUPtJM9Ueo5PpFI9Ux5Eht9YAGrJnCENL7Ahsz/DVypPixqp41fAwypHh2GVY1rOEvN2mNNNe3pLUO/uwiyJDqSuOtByxZTh73xC3QSHkFIM8VoBT+7/9/fwRWUDgg8AkAADAxAJ0BKsgAyAA+kUKcSyWjoqymVGnxkBIJY27hcIDhQN/e+dvmhIx7MdAnpM27fmA/Wv9bvd09KO8r+gB5c3s2f4HAYNvvzaCLtF+z2VKDR/jGpTKAZORoHjc+qPYI8rj17fth7KX7Xk+2XiRUGTEXzLXDxkerZEuqna4OSkKXGsst3feHLAweKkPz8hy//rhTmG3bGoefPlZdx5hmazDpdadafF56TWEtI1qzwvQz4a93PvlwkDzPrX7CwP8aTrejC2xSfzQl6AQeRzJUFW+mpNZ7BQfiXCdNUPlXZq5420NaqGqA21AhtKu3guMjYZKUnI0XAnt15ojAkS/QZbQr1Og5hythotoLPZj1kfej9vPWOLKVjWOggPbaIqpy7CuffcDamgC12ir1+kA3SArDVekOigxdQKrvMcLCT8jOAE3G4l1eLEC0G+miJ+B2Him04Svzc44JA3EioGkHDurwuMT7XwDdafBI9ZO/Posu+G6M+60iYMKboYEV0HSMUgWfTxQDOtzyE8S6ggIl1BAQuAD+/xagAE6VVvxN9ErSzTevtjce80DStnMdPQPLurcHc2595OHopyAPoJlxDYzsSAkZLjQ+1DYXMozr/NRubuIqOovseYg4txNVnU05g9NKaGJR2VxB3zT5tvkHtJpIsU7T0BlT6kVPR/MeQC8bP1BZCFu4jiBhIuLBYcYVUzdKM2EQQW5qV25gp4uhXvvql2TVs3eLWlcht+FUrE/mzTXB51b+X6f8m2XK4Pp1Ig0uhCun1ZiNe0ro++PielC9tv9kaxX4uCDqdC60Wv0mtLDUBjyOycpuJQ5bXKZymDt0NpAjM3tmayr2YiRnrJJEM8PhqDwZj0LIsCFYMwCfDXmUvqPgtO9yMiB+WJ+RFsLWwYqmvVLFkrsdEnybgJLxiiTMv6eiNvTOdGAk4JCSMyzzoQzCnaf2jJt+VLPZ9/4ilN33zy9cLdo7/Qs4Ngso5aeAnBVbyp7cT9EDiUjY1252NgEZFVVv13jkOSIgJyb5oMyZkQnYMsr3A3yWpVUuJ0D5OfFxHvcb5AA3lwidHZx8JG6PixPcKII1f2BCJ+cqvULGMOF55kc6xsegCFFwt+tstOz8xty50qvBlbrIFrHoEBayoL9t3jqteDh3cuPM8aQWVRWDuL9Mdrtg2jczruARMKfZs2O7PDiomDEDqo+DYKtWZyCdRFpsAEhIHIjJ/GlY16MXz2GgvGfQNsi1Tp0OnKhLJbj/09BHBY9WwXynfpaQsSxGLZNkpygDoPIEwGVUPsv4+Noeh0pBU2WVNlQcdL6daOQjciKMC3vj5Kx9awAK789eKtjZ1ZXOvzaiU/59ZV7/gzNe+2QvPKDKI1eVGQGnTbG+0NL6To89dlf3306EfsmY0zvs5e6kHks3YMLqnY7fcUy8+TxxieDhGVRKEhCJ5XDsf4Af00N6Jk8yRKXws1AdlbqUNxXlGRyMGAaER32lSjdyD26dBWG+X/X/kDhkQTUjY2rH8Ul9VSvCeIDZkBAUG0zIUc2eIFsTs8BYlCkEXUrBWVU8S0vVLvnSqMQiVPZEz/6WlMKq4rFKJPWAxhusdfATImz8lfrZNbO0GG2h0q0XoTi3k5NjF6CVzynzAN6m9xnoESU428C9q2PYJGkZOQJm/4Bw8xVOxtAj0VstaTb3ffl1ZahIlTj097xhbIbOo45TQSOLybT2utt6OtFB6QhzK0esLQfQEAWwAZeriZdoWg7ShPR3vuiE1yNBOiseGN+SCP1s/ilVG2Y3auvUFn0be+2e/ZkphEyBVi+3Ah2gx2mSkAn8JE05tgyYgti4NwhQt0UxVggmZPcHRrLCPQWXzz7LV52Clqg39/CV6PvoNKcS/w2PBTFKDTPU2UqkxFDt+i8xWp9MrNOMoy6oDJgzk+t62sLcuPrjCXIgREQA5jbAgciPvO/TxbBTxKws0gYm5DyICgahB2pgLQGE2SmlVo/RZgVsx2vMo4i2O8diUWYxnUESWPdgQWBG/3xM3t66DhGDDcTubDV1RVLVcWuPYmLblLvIQKr9Xa9q1mmWemN5Ccr4lzcgixQevg483Ba4Qi2F1V1Yc237HNlURv2iWHHOm0BLHNJAyrfr/VR/cmOL5GaHgRQy+joUNUcuUGiYAFz4fwVuUDmpUgrY4Il0RlFbWdVYTtt7FGOpRlh6Kvcc4on4qx+JR9q2D2WObuffcl3pT58M4SSfiIth/ypyjDXOHBPa5NX5RdeOP4uf8WQhLgZ4Mbcsj22cqOMDOwlJeVxk+zwxhITpqqajToGm4dL4UjzgQrdRoJT1sodc+/degvUX0t27ogTE3ss36fScYLJdKPOXhGLsqAlA73J+got3HMJngNAmGkThC2LOL9IiIPqrR0YptOmK0XEEYh5T6+J34QGD55JJls5y3W3hc607dfsvb0GhOVifkuR4HFbwAJlHB3M+oJlbQI6xSbe+dBFVQYgNaWQvM3aouoRSEZq1WCp3SvSiGkFRDdiZXyV881w2g1iW2ya3gwslnnNv/t86d2Ya0DiwHd9jTyxXvnTd/i3LD8oWPCPaEhzvizXHKfUr6j+gKWL25LtC3aru0i0f4EAeqNRUCWM60WfxlJ2p60HexqCHHIyOzmWf2wgDvMEnjVk9WdgtfHEdbvbDFGJv6JEPZF6ouqXCeMuZvmMAbdtZbYYMF6Zpk6SVsjsVK7+nxTzQ51gZnigoOeCtJzQMc0qrLF6JoOMZWesIrWmk1Bn1Coxz60Xp4VS/uKixMkWXzb2rFOA1ES2VzHHWZNsJQAwcwwh3pf+3JJDbQszgIkvTAGYQ3EeEsVLrQyoEFPZcsO9pNNI9ArbmQ3RAAApXxWzZ0jYNOvdyny6/SoR5kmLHxBJOqbopzEMSJej2lfKM8GsfW76LkKYqa5s/L5Ij+T6uBOTQ2WxCWCbJnY7w4o85it/oIKN4i4Dw4nZmmJjpIowT4g7TxkogF8eb3P9lgnpP6TwcjMOJpmgEmaH3KH3YWrqjW3JOgSZZlUYz3feChOHVs2w8z1v4Vh9QofYXKE61Klfz0gjthZe+wMAnYiPchCSUNMaDfOMwVNHxPBqthq+nTlJGFUV8DjI7JB6ed08tX11pz6P2WmyYEAclqv4y1aWH5wjis0QtYd+JqYOYt/piG0bRyv/FD3IWHHp+HJJNMM3qLS1/UXgrJ71vjLbCKKP1gRkMIgNLo0DICCGoCWzlzwVaxaA+Vw2ak8zv1yOoqrBn2qtzv2hH0Sa/cw0F8kI0HzjwhsBeJceJAqsiO+wfsXZVY6WhujWK3iV42g/pWHuzPySKVsytA6AhimxmMXBLyL81aahZwi3ABTmJaNUjSUB3k5756ga8XCYmBf7ltCYwS9pugAAAAAAAAA==";
|
|
7309
7350
|
function ResultBlock({
|
|
@@ -7320,9 +7361,9 @@ function ResultBlock({
|
|
|
7320
7361
|
const signedAmount = isWin ? `+${amount}` : `\u2212${amount}`;
|
|
7321
7362
|
const amountColorClass = isWin ? "text-semantic-win" : "text-semantic-loss";
|
|
7322
7363
|
const haloBgClass = isWin ? "bg-semantic-win" : "bg-semantic-loss";
|
|
7323
|
-
return /* @__PURE__ */ (0,
|
|
7324
|
-
/* @__PURE__ */ (0,
|
|
7325
|
-
/* @__PURE__ */ (0,
|
|
7364
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Card, { className: "w-80 shrink-0 overflow-hidden rounded-md shadow-sm px-5 py-5 items-center gap-3", children: [
|
|
7365
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "relative flex items-center justify-center py-2", children: [
|
|
7366
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
7326
7367
|
"span",
|
|
7327
7368
|
{
|
|
7328
7369
|
"aria-hidden": true,
|
|
@@ -7330,7 +7371,7 @@ function ResultBlock({
|
|
|
7330
7371
|
className: `absolute size-24 rounded-full blur-2xl opacity-20 ${haloBgClass}`
|
|
7331
7372
|
}
|
|
7332
7373
|
),
|
|
7333
|
-
/* @__PURE__ */ (0,
|
|
7374
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
7334
7375
|
"img",
|
|
7335
7376
|
{
|
|
7336
7377
|
"data-results-motion": isWin ? "icon-win" : "icon-loss",
|
|
@@ -7340,28 +7381,28 @@ function ResultBlock({
|
|
|
7340
7381
|
}
|
|
7341
7382
|
)
|
|
7342
7383
|
] }),
|
|
7343
|
-
/* @__PURE__ */ (0,
|
|
7344
|
-
/* @__PURE__ */ (0,
|
|
7345
|
-
/* @__PURE__ */ (0,
|
|
7346
|
-
/* @__PURE__ */ (0,
|
|
7384
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("p", { className: "text-lg font-semibold text-on-prominent", children: titleText }),
|
|
7385
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("p", { className: `flex items-baseline gap-1.5 ${amountColorClass}`, children: [
|
|
7386
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "font-display text-4xl font-bold tabular-nums tracking-tight", children: signedAmount }),
|
|
7387
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "text-lg font-semibold", children: currency })
|
|
7347
7388
|
] }),
|
|
7348
|
-
/* @__PURE__ */ (0,
|
|
7349
|
-
/* @__PURE__ */ (0,
|
|
7389
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
7390
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Badge, { variant: "standard", size: "sm", children: [
|
|
7350
7391
|
contractLabel,
|
|
7351
|
-
pickedDigit !== void 0 && /* @__PURE__ */ (0,
|
|
7352
|
-
/* @__PURE__ */ (0,
|
|
7353
|
-
/* @__PURE__ */ (0,
|
|
7392
|
+
pickedDigit !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
|
|
7393
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { "aria-hidden": true, className: "h-3 w-px bg-border-prominent/40 mx-1" }),
|
|
7394
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "tabular-nums", children: pickedDigit })
|
|
7354
7395
|
] })
|
|
7355
7396
|
] }),
|
|
7356
|
-
/* @__PURE__ */ (0,
|
|
7397
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Badge, { variant: "standard", size: "sm", children: duration })
|
|
7357
7398
|
] }),
|
|
7358
|
-
/* @__PURE__ */ (0,
|
|
7359
|
-
ctaMode === "next-round" && /* @__PURE__ */ (0,
|
|
7360
|
-
ctaMode === "go-again" && /* @__PURE__ */ (0,
|
|
7361
|
-
ctaMode === "conversion" && /* @__PURE__ */ (0,
|
|
7362
|
-
/* @__PURE__ */ (0,
|
|
7363
|
-
/* @__PURE__ */ (0,
|
|
7364
|
-
/* @__PURE__ */ (0,
|
|
7399
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "w-full pt-2", children: [
|
|
7400
|
+
ctaMode === "next-round" && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Button, { className: "w-full", children: "Next round" }),
|
|
7401
|
+
ctaMode === "go-again" && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Button, { className: "w-full", children: "Go again" }),
|
|
7402
|
+
ctaMode === "conversion" && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "w-full flex flex-col gap-3", children: [
|
|
7403
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("p", { className: "text-center text-base font-semibold text-on-prominent", children: "Ready to play for real?" }),
|
|
7404
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Button, { className: "w-full", children: "Deposit now" }),
|
|
7405
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Button, { variant: "secondary", className: "w-full", children: "Stay in demo" })
|
|
7365
7406
|
] })
|
|
7366
7407
|
] })
|
|
7367
7408
|
] });
|
|
@@ -7372,21 +7413,21 @@ function ResultDialog({
|
|
|
7372
7413
|
primaryLabel,
|
|
7373
7414
|
secondaryLabel
|
|
7374
7415
|
}) {
|
|
7375
|
-
return /* @__PURE__ */ (0,
|
|
7376
|
-
/* @__PURE__ */ (0,
|
|
7377
|
-
/* @__PURE__ */ (0,
|
|
7378
|
-
/* @__PURE__ */ (0,
|
|
7416
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Card, { className: "w-80 shrink-0 overflow-hidden rounded-md shadow-sm px-5 py-6 items-center gap-4", children: [
|
|
7417
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex flex-col items-center gap-2 text-center", children: [
|
|
7418
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("p", { className: "text-lg font-semibold text-on-prominent", children: title }),
|
|
7419
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("p", { className: "text-sm text-on-subtle", children: body })
|
|
7379
7420
|
] }),
|
|
7380
|
-
/* @__PURE__ */ (0,
|
|
7381
|
-
/* @__PURE__ */ (0,
|
|
7382
|
-
/* @__PURE__ */ (0,
|
|
7421
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "w-full flex flex-col gap-2", children: [
|
|
7422
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Button, { className: "w-full", children: primaryLabel }),
|
|
7423
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Button, { variant: "secondary", className: "w-full", children: secondaryLabel })
|
|
7383
7424
|
] })
|
|
7384
7425
|
] });
|
|
7385
7426
|
}
|
|
7386
7427
|
|
|
7387
7428
|
// components/blocks/header-navigation-block.tsx
|
|
7388
7429
|
var import_lucide_react26 = require("lucide-react");
|
|
7389
|
-
var
|
|
7430
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
7390
7431
|
function HeaderNavigationBlock({
|
|
7391
7432
|
onBack,
|
|
7392
7433
|
badge,
|
|
@@ -7395,15 +7436,15 @@ function HeaderNavigationBlock({
|
|
|
7395
7436
|
actions
|
|
7396
7437
|
}) {
|
|
7397
7438
|
var _a;
|
|
7398
|
-
return /* @__PURE__ */ (0,
|
|
7399
|
-
onBack && /* @__PURE__ */ (0,
|
|
7400
|
-
/* @__PURE__ */ (0,
|
|
7401
|
-
badge && /* @__PURE__ */ (0,
|
|
7402
|
-
/* @__PURE__ */ (0,
|
|
7403
|
-
/* @__PURE__ */ (0,
|
|
7439
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "w-full min-w-80 max-w-layout-diagram-small rounded-md overflow-hidden bg-prominent", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("header", { className: "flex items-center gap-2 border-b border-border-subtle bg-prominent px-layout-margin-inline py-3", children: [
|
|
7440
|
+
onBack && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(NavigationButton, { type: "button", size: "md", "aria-label": "Back", onClick: onBack, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_lucide_react26.ArrowLeft, { className: "size-5" }) }),
|
|
7441
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex min-w-0 flex-1 items-center justify-center gap-2", children: [
|
|
7442
|
+
badge && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Badge, { variant: (_a = badge.variant) != null ? _a : "fill-warning", size: "sm", children: badge.label }),
|
|
7443
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "font-display font-semibold tabular-nums text-on-prominent", children: balance.amount }),
|
|
7444
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-sm text-on-subtle", children: balance.currency })
|
|
7404
7445
|
] }),
|
|
7405
|
-
/* @__PURE__ */ (0,
|
|
7406
|
-
history && /* @__PURE__ */ (0,
|
|
7446
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex shrink-0 items-center gap-1", children: [
|
|
7447
|
+
history && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(HistoryButton, __spreadValues({}, history)),
|
|
7407
7448
|
actions
|
|
7408
7449
|
] })
|
|
7409
7450
|
] }) });
|
|
@@ -7416,9 +7457,9 @@ function HistoryButton({
|
|
|
7416
7457
|
const show = typeof count === "number" && count > 0;
|
|
7417
7458
|
const label = show ? count > 99 ? "99+" : String(count) : null;
|
|
7418
7459
|
const ariaLabel = ariaLabelOverride != null ? ariaLabelOverride : show ? `Open history, ${count} new` : "Open history";
|
|
7419
|
-
return /* @__PURE__ */ (0,
|
|
7420
|
-
/* @__PURE__ */ (0,
|
|
7421
|
-
show && /* @__PURE__ */ (0,
|
|
7460
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "relative inline-flex", children: [
|
|
7461
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(NavigationButton, { type: "button", size: "md", "aria-label": ariaLabel, onClick, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_lucide_react26.History, { className: "size-5" }) }),
|
|
7462
|
+
show && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
7422
7463
|
"span",
|
|
7423
7464
|
{
|
|
7424
7465
|
"aria-hidden": true,
|
|
@@ -7430,54 +7471,98 @@ function HistoryButton({
|
|
|
7430
7471
|
}
|
|
7431
7472
|
|
|
7432
7473
|
// components/blocks/faq-block.tsx
|
|
7433
|
-
var
|
|
7474
|
+
var import_lucide_react27 = require("lucide-react");
|
|
7475
|
+
var import_radix_ui36 = require("radix-ui");
|
|
7476
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
7434
7477
|
function FAQBlock({
|
|
7435
|
-
eyebrow = "FAQ
|
|
7478
|
+
eyebrow = "FAQ",
|
|
7436
7479
|
title = "Frequently asked questions",
|
|
7437
|
-
intro,
|
|
7480
|
+
intro = "Find answers to the most common questions below.",
|
|
7438
7481
|
items,
|
|
7439
7482
|
defaultValue,
|
|
7440
7483
|
helpCard,
|
|
7441
7484
|
layout = "desktop"
|
|
7442
7485
|
}) {
|
|
7443
|
-
var _a;
|
|
7486
|
+
var _a, _b;
|
|
7487
|
+
if (layout === "two-column") {
|
|
7488
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "@container w-full", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex flex-col @[600px]:flex-row gap-8 @[600px]:gap-12", children: [
|
|
7489
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex flex-col gap-4 flex-1 @[600px]:max-w-xs", children: [
|
|
7490
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-xs font-body font-semibold tracking-widest uppercase text-on-subtle", children: eyebrow }),
|
|
7491
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("h2", { className: "text-4xl @[600px]:text-6xl font-bold font-display text-on-prominent tracking-tight", children: title }),
|
|
7492
|
+
intro && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("p", { className: "text-base font-body text-on-subtle", children: intro })
|
|
7493
|
+
] }),
|
|
7494
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
7495
|
+
Accordion,
|
|
7496
|
+
{
|
|
7497
|
+
type: "single",
|
|
7498
|
+
collapsible: true,
|
|
7499
|
+
defaultValue: defaultValue != null ? defaultValue : (_a = items[0]) == null ? void 0 : _a.value,
|
|
7500
|
+
className: "w-full",
|
|
7501
|
+
children: items.map(({ value, question, answer }, i) => /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(AccordionItem, { value, children: [
|
|
7502
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_radix_ui36.Accordion.Header, { className: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
|
7503
|
+
import_radix_ui36.Accordion.Trigger,
|
|
7504
|
+
{
|
|
7505
|
+
className: "group flex flex-1 items-center justify-between gap-4 py-5 text-left outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",
|
|
7506
|
+
children: [
|
|
7507
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("span", { className: "flex items-baseline gap-4", children: [
|
|
7508
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-sm font-body text-on-subtle shrink-0 w-6", children: String(i + 1).padStart(2, "0") }),
|
|
7509
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-lg @[600px]:text-xl font-bold font-display text-on-prominent", children: question })
|
|
7510
|
+
] }),
|
|
7511
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: cn(
|
|
7512
|
+
"shrink-0 size-7 flex items-center justify-center rounded-sm border transition-all duration-200",
|
|
7513
|
+
"group-data-[state=open]:bg-primary group-data-[state=open]:border-primary",
|
|
7514
|
+
"group-data-[state=closed]:bg-transparent group-data-[state=closed]:border-border-subtle"
|
|
7515
|
+
), children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_lucide_react27.Plus, { className: cn(
|
|
7516
|
+
"size-4 transition-all duration-200",
|
|
7517
|
+
"group-data-[state=open]:rotate-45 group-data-[state=open]:text-on-primary",
|
|
7518
|
+
"group-data-[state=closed]:text-on-prominent"
|
|
7519
|
+
) }) })
|
|
7520
|
+
]
|
|
7521
|
+
}
|
|
7522
|
+
) }),
|
|
7523
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(AccordionContent, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("p", { className: "text-base font-body text-on-subtle pl-10 pb-4", children: answer }) })
|
|
7524
|
+
] }, value))
|
|
7525
|
+
}
|
|
7526
|
+
) })
|
|
7527
|
+
] }) });
|
|
7528
|
+
}
|
|
7444
7529
|
const headingClass = layout === "desktop" ? "text-5xl font-bold font-display text-on-prominent text-center tracking-tight" : "text-4xl font-bold font-display text-on-prominent text-center tracking-tight";
|
|
7445
7530
|
const helpTitleClass = layout === "desktop" ? "text-2xl font-semibold font-display text-on-prominent" : "text-xl font-semibold font-display text-on-prominent";
|
|
7446
7531
|
const helpCardPaddingClass = layout === "desktop" ? "p-8" : "p-6";
|
|
7447
7532
|
const gapClass = layout === "desktop" ? "gap-12" : "gap-10";
|
|
7448
7533
|
const headerGapClass = layout === "desktop" ? "gap-5" : "gap-4";
|
|
7449
|
-
return /* @__PURE__ */ (0,
|
|
7450
|
-
/* @__PURE__ */ (0,
|
|
7451
|
-
/* @__PURE__ */ (0,
|
|
7452
|
-
/* @__PURE__ */ (0,
|
|
7453
|
-
intro && /* @__PURE__ */ (0,
|
|
7534
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: `w-full flex flex-col ${gapClass}`, children: [
|
|
7535
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: `flex flex-col ${headerGapClass} items-center w-full`, children: [
|
|
7536
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-sm text-on-subtle font-body", children: eyebrow }),
|
|
7537
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("h2", { className: headingClass, children: title }),
|
|
7538
|
+
intro && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("p", { className: "text-lg text-on-subtle font-body text-center", children: intro })
|
|
7454
7539
|
] }),
|
|
7455
|
-
/* @__PURE__ */ (0,
|
|
7540
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
7456
7541
|
Accordion,
|
|
7457
7542
|
{
|
|
7458
7543
|
type: "single",
|
|
7459
7544
|
collapsible: true,
|
|
7460
|
-
defaultValue: defaultValue != null ? defaultValue : (
|
|
7545
|
+
defaultValue: defaultValue != null ? defaultValue : (_b = items[0]) == null ? void 0 : _b.value,
|
|
7461
7546
|
className: "w-full",
|
|
7462
|
-
children: items.map(({ value, question, answer }) => /* @__PURE__ */ (0,
|
|
7463
|
-
/* @__PURE__ */ (0,
|
|
7464
|
-
/* @__PURE__ */ (0,
|
|
7547
|
+
children: items.map(({ value, question, answer }) => /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(AccordionItem, { value, children: [
|
|
7548
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(AccordionTrigger, { className: "text-base font-medium font-body text-on-prominent hover:no-underline", children: question }),
|
|
7549
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(AccordionContent, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("p", { className: "text-sm text-on-subtle font-body pb-4", children: answer }) })
|
|
7465
7550
|
] }, value))
|
|
7466
7551
|
}
|
|
7467
7552
|
),
|
|
7468
|
-
helpCard && /* @__PURE__ */ (0,
|
|
7469
|
-
/* @__PURE__ */ (0,
|
|
7470
|
-
/* @__PURE__ */ (0,
|
|
7471
|
-
/* @__PURE__ */ (0,
|
|
7553
|
+
helpCard && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: `flex flex-col gap-6 items-center w-full bg-subtle rounded-xl ${helpCardPaddingClass}`, children: [
|
|
7554
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex flex-col gap-2 w-full", children: [
|
|
7555
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("h3", { className: helpTitleClass, children: helpCard.title }),
|
|
7556
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("p", { className: "text-base text-on-subtle font-body", children: helpCard.body })
|
|
7472
7557
|
] }),
|
|
7473
|
-
/* @__PURE__ */ (0,
|
|
7558
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Button, { size: "sm", onClick: helpCard.onCtaClick, children: helpCard.ctaLabel })
|
|
7474
7559
|
] })
|
|
7475
7560
|
] });
|
|
7476
7561
|
}
|
|
7477
7562
|
|
|
7478
7563
|
// components/blocks/hero-block.tsx
|
|
7479
|
-
var
|
|
7480
|
-
var
|
|
7564
|
+
var import_lucide_react28 = require("lucide-react");
|
|
7565
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
7481
7566
|
function HeroBlock({
|
|
7482
7567
|
layout = "centered",
|
|
7483
7568
|
tagline,
|
|
@@ -7488,31 +7573,31 @@ function HeroBlock({
|
|
|
7488
7573
|
image
|
|
7489
7574
|
}) {
|
|
7490
7575
|
if (layout === "centered") {
|
|
7491
|
-
return /* @__PURE__ */ (0,
|
|
7492
|
-
/* @__PURE__ */ (0,
|
|
7493
|
-
tagline && /* @__PURE__ */ (0,
|
|
7494
|
-
/* @__PURE__ */ (0,
|
|
7495
|
-
/* @__PURE__ */ (0,
|
|
7576
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "w-full border border-border-subtle rounded-xl overflow-hidden bg-prominent", children: /* @__PURE__ */ (0, import_jsx_runtime65.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: [
|
|
7577
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex flex-col items-center gap-6 w-full", children: [
|
|
7578
|
+
tagline && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(TaglinePill, __spreadValues({}, tagline)),
|
|
7579
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("h1", { className: "text-5xl font-semibold font-display tracking-tight text-on-prominent text-center", children: heading }),
|
|
7580
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("p", { className: "text-lg font-body text-on-subtle text-center", children: body })
|
|
7496
7581
|
] }),
|
|
7497
|
-
/* @__PURE__ */ (0,
|
|
7582
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Button, { size: "sm", onClick: primaryCta.onClick, children: [
|
|
7498
7583
|
primaryCta.label,
|
|
7499
|
-
primaryCta.trailingArrow !== false && /* @__PURE__ */ (0,
|
|
7584
|
+
primaryCta.trailingArrow !== false && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_lucide_react28.ArrowRight, { className: "size-4" })
|
|
7500
7585
|
] })
|
|
7501
7586
|
] }) });
|
|
7502
7587
|
}
|
|
7503
|
-
return /* @__PURE__ */ (0,
|
|
7504
|
-
/* @__PURE__ */ (0,
|
|
7505
|
-
/* @__PURE__ */ (0,
|
|
7506
|
-
tagline && /* @__PURE__ */ (0,
|
|
7507
|
-
/* @__PURE__ */ (0,
|
|
7508
|
-
/* @__PURE__ */ (0,
|
|
7588
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "w-full border border-border-subtle rounded-xl overflow-hidden bg-prominent", children: /* @__PURE__ */ (0, import_jsx_runtime65.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: [
|
|
7589
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.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: [
|
|
7590
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex flex-col gap-5 min-[600px]:gap-6 items-center min-[600px]:items-start w-full", children: [
|
|
7591
|
+
tagline && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(TaglinePill, __spreadProps(__spreadValues({}, tagline), { responsive: true })),
|
|
7592
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("h1", { className: "text-4xl min-[600px]:text-5xl font-semibold font-display tracking-tight text-on-prominent", children: heading }),
|
|
7593
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("p", { className: "text-lg font-body text-on-subtle", children: body })
|
|
7509
7594
|
] }),
|
|
7510
|
-
/* @__PURE__ */ (0,
|
|
7511
|
-
/* @__PURE__ */ (0,
|
|
7512
|
-
secondaryCta && /* @__PURE__ */ (0,
|
|
7595
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex items-center justify-center min-[600px]:justify-start gap-2", children: [
|
|
7596
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Button, { size: "sm", onClick: primaryCta.onClick, children: primaryCta.label }),
|
|
7597
|
+
secondaryCta && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Button, { variant: "secondary", size: "sm", onClick: secondaryCta.onClick, children: secondaryCta.label })
|
|
7513
7598
|
] })
|
|
7514
7599
|
] }),
|
|
7515
|
-
/* @__PURE__ */ (0,
|
|
7600
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.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 })
|
|
7516
7601
|
] }) });
|
|
7517
7602
|
}
|
|
7518
7603
|
function TaglinePill({
|
|
@@ -7520,25 +7605,25 @@ function TaglinePill({
|
|
|
7520
7605
|
suffix,
|
|
7521
7606
|
responsive
|
|
7522
7607
|
}) {
|
|
7523
|
-
return /* @__PURE__ */ (0,
|
|
7524
|
-
/* @__PURE__ */ (0,
|
|
7525
|
-
responsive && suffix ? /* @__PURE__ */ (0,
|
|
7526
|
-
/* @__PURE__ */ (0,
|
|
7608
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.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: [
|
|
7609
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "size-1.5 rounded-full bg-semantic-win shrink-0", "aria-hidden": "true" }),
|
|
7610
|
+
responsive && suffix ? /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("span", { className: "text-sm font-body text-on-prominent whitespace-nowrap", children: [
|
|
7611
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("span", { className: "hidden min-[600px]:inline", children: [
|
|
7527
7612
|
label,
|
|
7528
|
-
/* @__PURE__ */ (0,
|
|
7613
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "text-on-subtle", children: " \xB7 " })
|
|
7529
7614
|
] }),
|
|
7530
|
-
/* @__PURE__ */ (0,
|
|
7531
|
-
] }) : /* @__PURE__ */ (0,
|
|
7615
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "text-on-subtle min-[600px]:text-on-prominent", children: suffix })
|
|
7616
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("span", { className: "text-sm font-body text-on-prominent whitespace-nowrap", children: [
|
|
7532
7617
|
label,
|
|
7533
|
-
suffix && /* @__PURE__ */ (0,
|
|
7618
|
+
suffix && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "text-on-subtle", children: ` \xB7 ${suffix}` })
|
|
7534
7619
|
] }),
|
|
7535
|
-
/* @__PURE__ */ (0,
|
|
7620
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_lucide_react28.ArrowUpRight, { className: "size-4 text-on-subtle shrink-0", "aria-hidden": "true" })
|
|
7536
7621
|
] });
|
|
7537
7622
|
}
|
|
7538
7623
|
|
|
7539
7624
|
// components/blocks/auth-block.tsx
|
|
7540
7625
|
var React16 = __toESM(require("react"), 1);
|
|
7541
|
-
var
|
|
7626
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
7542
7627
|
function AuthBlock({
|
|
7543
7628
|
mode,
|
|
7544
7629
|
logoSrc,
|
|
@@ -7554,19 +7639,19 @@ function AuthBlock({
|
|
|
7554
7639
|
const footerPrompt = mode === "sign-in" ? "Don't have an account?" : "Already have an account?";
|
|
7555
7640
|
const footerLinkLabel = mode === "sign-in" ? "Sign up" : "Log in";
|
|
7556
7641
|
const [email, setEmail] = React16.useState("");
|
|
7557
|
-
return /* @__PURE__ */ (0,
|
|
7558
|
-
/* @__PURE__ */ (0,
|
|
7559
|
-
/* @__PURE__ */ (0,
|
|
7560
|
-
/* @__PURE__ */ (0,
|
|
7642
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex flex-col items-center gap-6 w-full", children: [
|
|
7643
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
7644
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("img", { src: logoSrc, alt: wordmark, className: "size-8 object-contain" }),
|
|
7645
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "font-display font-semibold text-base text-on-prominent tracking-tight", children: wordmark })
|
|
7561
7646
|
] }),
|
|
7562
|
-
/* @__PURE__ */ (0,
|
|
7563
|
-
/* @__PURE__ */ (0,
|
|
7564
|
-
/* @__PURE__ */ (0,
|
|
7565
|
-
/* @__PURE__ */ (0,
|
|
7566
|
-
/* @__PURE__ */ (0,
|
|
7567
|
-
/* @__PURE__ */ (0,
|
|
7647
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("h2", { className: "text-3xl font-bold font-display text-on-prominent text-center", children: headingText }),
|
|
7648
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "flex flex-col gap-3 w-full", children: providers.map((p) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(ProviderButton, { provider: p }, p)) }),
|
|
7649
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex items-center gap-3 w-full", children: [
|
|
7650
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "flex-1 h-px bg-border-subtle" }),
|
|
7651
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "text-sm text-on-subtle font-body", children: "or" }),
|
|
7652
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "flex-1 h-px bg-border-subtle" })
|
|
7568
7653
|
] }),
|
|
7569
|
-
/* @__PURE__ */ (0,
|
|
7654
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "flex items-center gap-2 w-full", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
7570
7655
|
Input,
|
|
7571
7656
|
{
|
|
7572
7657
|
id: `${idPrefix}-email`,
|
|
@@ -7577,44 +7662,44 @@ function AuthBlock({
|
|
|
7577
7662
|
onChange: (e) => setEmail(e.target.value)
|
|
7578
7663
|
}
|
|
7579
7664
|
) }),
|
|
7580
|
-
/* @__PURE__ */ (0,
|
|
7665
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("p", { className: "text-sm text-on-subtle font-body text-left w-full", children: [
|
|
7581
7666
|
termsText,
|
|
7582
7667
|
", you agree to our",
|
|
7583
7668
|
" ",
|
|
7584
|
-
/* @__PURE__ */ (0,
|
|
7669
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Link, { size: "sm", href: "#", children: "Terms & Conditions" })
|
|
7585
7670
|
] }),
|
|
7586
|
-
/* @__PURE__ */ (0,
|
|
7587
|
-
/* @__PURE__ */ (0,
|
|
7671
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Button, { size: "md", className: "w-full", onClick: () => onSubmit == null ? void 0 : onSubmit({ email }), children: ctaText }),
|
|
7672
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("p", { className: "text-sm text-on-subtle font-body text-center", children: [
|
|
7588
7673
|
footerPrompt,
|
|
7589
7674
|
" ",
|
|
7590
|
-
/* @__PURE__ */ (0,
|
|
7675
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Link, { size: "sm", href: crossLinkHref, children: footerLinkLabel })
|
|
7591
7676
|
] })
|
|
7592
7677
|
] });
|
|
7593
7678
|
}
|
|
7594
7679
|
function ProviderButton({ provider }) {
|
|
7595
7680
|
switch (provider) {
|
|
7596
7681
|
case "google":
|
|
7597
|
-
return /* @__PURE__ */ (0,
|
|
7598
|
-
/* @__PURE__ */ (0,
|
|
7599
|
-
/* @__PURE__ */ (0,
|
|
7600
|
-
/* @__PURE__ */ (0,
|
|
7601
|
-
/* @__PURE__ */ (0,
|
|
7602
|
-
/* @__PURE__ */ (0,
|
|
7682
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Button, { variant: "secondary", size: "lg", className: "w-full", children: [
|
|
7683
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("svg", { width: "18", height: "18", viewBox: "0 0 18 18", "aria-hidden": "true", fill: "none", className: "shrink-0", children: [
|
|
7684
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.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" }),
|
|
7685
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.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" }),
|
|
7686
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.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" }),
|
|
7687
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.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" })
|
|
7603
7688
|
] }),
|
|
7604
7689
|
"Continue with Google"
|
|
7605
7690
|
] });
|
|
7606
7691
|
case "telegram":
|
|
7607
|
-
return /* @__PURE__ */ (0,
|
|
7608
|
-
/* @__PURE__ */ (0,
|
|
7609
|
-
/* @__PURE__ */ (0,
|
|
7610
|
-
/* @__PURE__ */ (0,
|
|
7611
|
-
/* @__PURE__ */ (0,
|
|
7692
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Button, { variant: "secondary", size: "lg", className: "w-full", children: [
|
|
7693
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("svg", { width: "18", height: "18", viewBox: "0 0 18 18", "aria-hidden": "true", fill: "none", className: "shrink-0", children: [
|
|
7694
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("circle", { cx: "9", cy: "9", r: "9", fill: "#29B6F6" }),
|
|
7695
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.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" }),
|
|
7696
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.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" })
|
|
7612
7697
|
] }),
|
|
7613
7698
|
"Continue with Telegram"
|
|
7614
7699
|
] });
|
|
7615
7700
|
case "x":
|
|
7616
|
-
return /* @__PURE__ */ (0,
|
|
7617
|
-
/* @__PURE__ */ (0,
|
|
7701
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Button, { variant: "secondary", size: "lg", className: "w-full", children: [
|
|
7702
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("svg", { width: "18", height: "18", viewBox: "0 0 18 18", "aria-hidden": "true", fill: "currentColor", className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime66.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" }) }),
|
|
7618
7703
|
"Continue with X (Twitter)"
|
|
7619
7704
|
] });
|
|
7620
7705
|
}
|
|
@@ -7622,15 +7707,15 @@ function ProviderButton({ provider }) {
|
|
|
7622
7707
|
|
|
7623
7708
|
// components/blocks/navbar-block.tsx
|
|
7624
7709
|
var React17 = __toESM(require("react"), 1);
|
|
7625
|
-
var
|
|
7626
|
-
var
|
|
7710
|
+
var import_lucide_react29 = require("lucide-react");
|
|
7711
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
7627
7712
|
function NavBarBlock({ brand, links, signIn, signUp }) {
|
|
7628
7713
|
var _a, _b, _c, _d;
|
|
7629
7714
|
const [mobileMenuOpen, setMobileMenuOpen] = React17.useState(false);
|
|
7630
|
-
return /* @__PURE__ */ (0,
|
|
7631
|
-
/* @__PURE__ */ (0,
|
|
7632
|
-
/* @__PURE__ */ (0,
|
|
7633
|
-
/* @__PURE__ */ (0,
|
|
7715
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "w-full border border-border-subtle rounded-md overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("nav", { className: "bg-prominent", children: [
|
|
7716
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-center justify-between px-layout-margin-inline py-3", children: [
|
|
7717
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-center gap-6", children: [
|
|
7718
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
7634
7719
|
"img",
|
|
7635
7720
|
{
|
|
7636
7721
|
src: brand.fullLogoSrc,
|
|
@@ -7638,7 +7723,7 @@ function NavBarBlock({ brand, links, signIn, signUp }) {
|
|
|
7638
7723
|
className: "hidden min-[600px]:block h-7 w-auto shrink-0 object-contain object-left"
|
|
7639
7724
|
}
|
|
7640
7725
|
),
|
|
7641
|
-
/* @__PURE__ */ (0,
|
|
7726
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
7642
7727
|
"img",
|
|
7643
7728
|
{
|
|
7644
7729
|
src: brand.iconLogoSrc,
|
|
@@ -7646,13 +7731,13 @@ function NavBarBlock({ brand, links, signIn, signUp }) {
|
|
|
7646
7731
|
className: "min-[600px]:hidden size-7 shrink-0 object-contain"
|
|
7647
7732
|
}
|
|
7648
7733
|
),
|
|
7649
|
-
/* @__PURE__ */ (0,
|
|
7734
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "hidden min-[600px]:flex items-center gap-1", children: links.map((l) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Button, { variant: "tertiary", size: "sm", onClick: l.onClick, children: l.label }, l.label)) })
|
|
7650
7735
|
] }),
|
|
7651
|
-
/* @__PURE__ */ (0,
|
|
7652
|
-
signIn && /* @__PURE__ */ (0,
|
|
7653
|
-
signUp && /* @__PURE__ */ (0,
|
|
7736
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "hidden min-[600px]:flex items-center gap-2", children: [
|
|
7737
|
+
signIn && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Button, { variant: "tertiary", size: "sm", onClick: signIn.onClick, children: (_a = signIn.label) != null ? _a : "Sign in" }),
|
|
7738
|
+
signUp && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Button, { size: "sm", onClick: signUp.onClick, children: (_b = signUp.label) != null ? _b : "Sign up" })
|
|
7654
7739
|
] }),
|
|
7655
|
-
/* @__PURE__ */ (0,
|
|
7740
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
7656
7741
|
Button,
|
|
7657
7742
|
{
|
|
7658
7743
|
variant: "tertiary",
|
|
@@ -7661,12 +7746,12 @@ function NavBarBlock({ brand, links, signIn, signUp }) {
|
|
|
7661
7746
|
"aria-expanded": mobileMenuOpen,
|
|
7662
7747
|
className: "min-[600px]:hidden",
|
|
7663
7748
|
onClick: () => setMobileMenuOpen((prev) => !prev),
|
|
7664
|
-
children: mobileMenuOpen ? /* @__PURE__ */ (0,
|
|
7749
|
+
children: mobileMenuOpen ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_lucide_react29.X, { className: "size-4" }) : /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_lucide_react29.Menu, { className: "size-4" })
|
|
7665
7750
|
}
|
|
7666
7751
|
)
|
|
7667
7752
|
] }),
|
|
7668
|
-
mobileMenuOpen && /* @__PURE__ */ (0,
|
|
7669
|
-
links.map((l) => /* @__PURE__ */ (0,
|
|
7753
|
+
mobileMenuOpen && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "min-[600px]:hidden flex flex-col border-t border-border-subtle px-layout-margin-inline py-3 gap-1", children: [
|
|
7754
|
+
links.map((l) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
7670
7755
|
Button,
|
|
7671
7756
|
{
|
|
7672
7757
|
variant: "tertiary",
|
|
@@ -7677,9 +7762,9 @@ function NavBarBlock({ brand, links, signIn, signUp }) {
|
|
|
7677
7762
|
},
|
|
7678
7763
|
l.label
|
|
7679
7764
|
)),
|
|
7680
|
-
(signIn || signUp) && /* @__PURE__ */ (0,
|
|
7681
|
-
signIn && /* @__PURE__ */ (0,
|
|
7682
|
-
signUp && /* @__PURE__ */ (0,
|
|
7765
|
+
(signIn || signUp) && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex flex-col gap-2 pt-3 mt-2 border-t border-border-subtle", children: [
|
|
7766
|
+
signIn && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Button, { variant: "secondary", size: "sm", className: "w-full", onClick: signIn.onClick, children: (_c = signIn.label) != null ? _c : "Sign in" }),
|
|
7767
|
+
signUp && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Button, { size: "sm", className: "w-full", onClick: signUp.onClick, children: (_d = signUp.label) != null ? _d : "Sign up" })
|
|
7683
7768
|
] })
|
|
7684
7769
|
] })
|
|
7685
7770
|
] }) });
|
|
@@ -7687,8 +7772,8 @@ function NavBarBlock({ brand, links, signIn, signUp }) {
|
|
|
7687
7772
|
|
|
7688
7773
|
// components/blocks/open-positions-block.tsx
|
|
7689
7774
|
var React18 = __toESM(require("react"), 1);
|
|
7690
|
-
var
|
|
7691
|
-
var
|
|
7775
|
+
var import_lucide_react30 = require("lucide-react");
|
|
7776
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
7692
7777
|
function OpenPositionsBlock({
|
|
7693
7778
|
trigger,
|
|
7694
7779
|
sheetTitle = "Positions",
|
|
@@ -7697,28 +7782,28 @@ function OpenPositionsBlock({
|
|
|
7697
7782
|
emptyState
|
|
7698
7783
|
}) {
|
|
7699
7784
|
const isMobile = useIsMobile();
|
|
7700
|
-
const body = positions.length === 0 ? emptyState != null ? emptyState : /* @__PURE__ */ (0,
|
|
7785
|
+
const body = positions.length === 0 ? emptyState != null ? emptyState : /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(DefaultEmptyState, { onViewHistory }) : /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(PositionsList, { positions, onViewHistory });
|
|
7701
7786
|
if (isMobile) {
|
|
7702
|
-
return /* @__PURE__ */ (0,
|
|
7703
|
-
/* @__PURE__ */ (0,
|
|
7704
|
-
/* @__PURE__ */ (0,
|
|
7705
|
-
/* @__PURE__ */ (0,
|
|
7706
|
-
/* @__PURE__ */ (0,
|
|
7707
|
-
/* @__PURE__ */ (0,
|
|
7787
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(Drawer, { children: [
|
|
7788
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(DrawerTrigger, { asChild: true, children: trigger }),
|
|
7789
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(DrawerContent, { className: "p-0 flex flex-col", children: [
|
|
7790
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(DrawerHeader, { className: "flex-row items-center justify-between px-4 py-3 shrink-0 text-left", children: [
|
|
7791
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(DrawerTitle, { className: "text-base font-semibold font-display text-on-prominent", children: sheetTitle }),
|
|
7792
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(DrawerClose, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(NavigationButton, { size: "sm", "aria-label": "Close", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_lucide_react30.X, {}) }) })
|
|
7708
7793
|
] }),
|
|
7709
|
-
/* @__PURE__ */ (0,
|
|
7794
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Separator, {}),
|
|
7710
7795
|
body
|
|
7711
7796
|
] })
|
|
7712
7797
|
] });
|
|
7713
7798
|
}
|
|
7714
|
-
return /* @__PURE__ */ (0,
|
|
7715
|
-
/* @__PURE__ */ (0,
|
|
7716
|
-
/* @__PURE__ */ (0,
|
|
7717
|
-
/* @__PURE__ */ (0,
|
|
7718
|
-
/* @__PURE__ */ (0,
|
|
7719
|
-
/* @__PURE__ */ (0,
|
|
7799
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(Sheet, { children: [
|
|
7800
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(SheetTrigger, { asChild: true, children: trigger }),
|
|
7801
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(SheetContent, { side: "right", showCloseButton: false, className: "p-0 flex flex-col w-80 sm:max-w-xs", children: [
|
|
7802
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(SheetHeader, { className: "flex-row items-center justify-between px-4 py-3 shrink-0", children: [
|
|
7803
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(SheetTitle, { className: "text-base font-semibold font-display text-on-prominent", children: sheetTitle }),
|
|
7804
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(SheetClose, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(NavigationButton, { size: "sm", "aria-label": "Close", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_lucide_react30.X, {}) }) })
|
|
7720
7805
|
] }),
|
|
7721
|
-
/* @__PURE__ */ (0,
|
|
7806
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Separator, {}),
|
|
7722
7807
|
body
|
|
7723
7808
|
] })
|
|
7724
7809
|
] });
|
|
@@ -7727,26 +7812,26 @@ function PositionsList({
|
|
|
7727
7812
|
positions,
|
|
7728
7813
|
onViewHistory
|
|
7729
7814
|
}) {
|
|
7730
|
-
return /* @__PURE__ */ (0,
|
|
7731
|
-
/* @__PURE__ */ (0,
|
|
7732
|
-
/* @__PURE__ */ (0,
|
|
7733
|
-
i < positions.length - 1 && /* @__PURE__ */ (0,
|
|
7815
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex flex-col flex-1 min-h-0", children: [
|
|
7816
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ItemGroup, { className: "min-h-0 overflow-y-auto", children: positions.map((pos, i) => /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(React18.Fragment, { children: [
|
|
7817
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(PositionRow, { position: pos }),
|
|
7818
|
+
i < positions.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "h-px mx-4 bg-border-subtle" })
|
|
7734
7819
|
] }, i)) }),
|
|
7735
|
-
/* @__PURE__ */ (0,
|
|
7736
|
-
/* @__PURE__ */ (0,
|
|
7820
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Separator, {}),
|
|
7821
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "shrink-0 flex justify-center py-4", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Button, { variant: "tertiary", size: "md", onClick: onViewHistory, children: "View trade history" }) })
|
|
7737
7822
|
] });
|
|
7738
7823
|
}
|
|
7739
7824
|
function PositionRow({ position }) {
|
|
7740
7825
|
const { label, suffix } = positionTitleParts(position);
|
|
7741
|
-
return /* @__PURE__ */ (0,
|
|
7742
|
-
/* @__PURE__ */ (0,
|
|
7743
|
-
/* @__PURE__ */ (0,
|
|
7744
|
-
/* @__PURE__ */ (0,
|
|
7745
|
-
suffix && /* @__PURE__ */ (0,
|
|
7826
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(Item, { size: "sm", children: [
|
|
7827
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(ItemContent, { children: [
|
|
7828
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(ItemTitle, { children: [
|
|
7829
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-on-prominent", children: label }),
|
|
7830
|
+
suffix && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-on-subtle", children: ` ${suffix}` })
|
|
7746
7831
|
] }),
|
|
7747
|
-
/* @__PURE__ */ (0,
|
|
7832
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(MetaNote, { market: position.market, duration: position.duration })
|
|
7748
7833
|
] }),
|
|
7749
|
-
/* @__PURE__ */ (0,
|
|
7834
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ItemActions, { children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(PnlMeta, { pnl: position.pnl, win: position.win, stake: position.stake }) })
|
|
7750
7835
|
] });
|
|
7751
7836
|
}
|
|
7752
7837
|
var DIGITS_TYPE_LABEL = {
|
|
@@ -7772,23 +7857,23 @@ function positionTitleParts(p) {
|
|
|
7772
7857
|
}
|
|
7773
7858
|
}
|
|
7774
7859
|
function MetaNote({ market, duration }) {
|
|
7775
|
-
return /* @__PURE__ */ (0,
|
|
7860
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("span", { className: "text-xs text-on-subtle whitespace-nowrap", children: [
|
|
7776
7861
|
market,
|
|
7777
7862
|
" \xB7 ",
|
|
7778
7863
|
duration
|
|
7779
7864
|
] });
|
|
7780
7865
|
}
|
|
7781
7866
|
function PnlMeta({ pnl, win, stake }) {
|
|
7782
|
-
return /* @__PURE__ */ (0,
|
|
7783
|
-
/* @__PURE__ */ (0,
|
|
7784
|
-
/* @__PURE__ */ (0,
|
|
7867
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex flex-col items-end gap-0.5", children: [
|
|
7868
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: `font-display font-bold tabular-nums text-base ${win ? "text-semantic-win" : "text-semantic-loss"}`, children: pnl }),
|
|
7869
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "tabular-nums text-xs text-on-subtle", children: stake })
|
|
7785
7870
|
] });
|
|
7786
7871
|
}
|
|
7787
7872
|
function DefaultEmptyState({ onViewHistory }) {
|
|
7788
|
-
return /* @__PURE__ */ (0,
|
|
7789
|
-
/* @__PURE__ */ (0,
|
|
7790
|
-
/* @__PURE__ */ (0,
|
|
7791
|
-
/* @__PURE__ */ (0,
|
|
7873
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.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_runtime68.jsxs)(EmptyHeader, { className: "gap-4", children: [
|
|
7874
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(EmptyMedia, { children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_lucide_react30.History, { className: "size-8 text-on-subtle" }) }),
|
|
7875
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(EmptyTitle, { className: "text-base leading-6 font-semibold tracking-normal body-md text-on-subtle", children: "No trades yet." }),
|
|
7876
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Button, { variant: "tertiary", size: "md", onClick: onViewHistory, children: "View trade history" })
|
|
7792
7877
|
] }) });
|
|
7793
7878
|
}
|
|
7794
7879
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -7849,6 +7934,7 @@ function DefaultEmptyState({ onViewHistory }) {
|
|
|
7849
7934
|
ChartTooltip,
|
|
7850
7935
|
ChartTooltipContent,
|
|
7851
7936
|
Checkbox,
|
|
7937
|
+
Chip,
|
|
7852
7938
|
Collapsible,
|
|
7853
7939
|
CollapsibleContent,
|
|
7854
7940
|
CollapsibleTrigger,
|
|
@@ -8109,6 +8195,7 @@ function DefaultEmptyState({ onViewHistory }) {
|
|
|
8109
8195
|
alertVariants,
|
|
8110
8196
|
badgeVariants,
|
|
8111
8197
|
buttonVariants,
|
|
8198
|
+
chipVariants,
|
|
8112
8199
|
cn,
|
|
8113
8200
|
inputVariants,
|
|
8114
8201
|
linkVariants,
|