@krosoft/react 0.0.182 → 0.0.184

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.
Files changed (75) hide show
  1. package/dist/{AppActions-DEkRxBia.js → AppActions-DZ7wVdmt.js} +8 -7
  2. package/dist/{AppSubTitle-ChCtQ7Sv.js → AppSubTitle-CZN_tmfv.js} +1 -1
  3. package/dist/AppVerticalTabs-C1SsBNAH.js +100 -0
  4. package/dist/{ConfirmationDialog-BPXA2g3g.js → ConfirmationDialog-M8sFAz4h.js} +7 -6
  5. package/dist/{DataTable-ny08K506.js → DataTable-KMYbhJ4C.js} +29 -28
  6. package/dist/{GenericForm-B39toMkE.js → GenericForm-DtY0moOD.js} +93 -92
  7. package/dist/{ImageInput-BoYUZx9H.js → ImageInput-3wZuCZGf.js} +2 -1
  8. package/dist/{KpiCardsLayout-mQ7AcbqA.js → KpiCardsLayout-DjRTqXFa.js} +16 -15
  9. package/dist/{MetricCard-CvQFjIOb.js → MetricCard-B0xnFyim.js} +1 -1
  10. package/dist/{MultiSelect-CqcbwKYV.js → MultiSelect-BhRXVpky.js} +14 -13
  11. package/dist/PieChart-C9gn0Dws.js +282 -0
  12. package/dist/SearchInput-BXOlvTO9.js +251 -0
  13. package/dist/{SkeletonCards-BvJYF_LK.js → SkeletonCards-av7XHlof.js} +12 -11
  14. package/dist/{TableFilter-CWDy_RHA.js → TableFilter-BlrrSOtg.js} +21 -20
  15. package/dist/chart-DntJZGxB.js +181 -0
  16. package/dist/components/core/cards/index.js +2 -2
  17. package/dist/components/core/charts/BarChartHorizontal.d.ts +24 -0
  18. package/dist/components/core/charts/BarChartHorizontal.d.ts.map +1 -0
  19. package/dist/components/core/charts/BarChartVertical.d.ts +24 -0
  20. package/dist/components/core/charts/BarChartVertical.d.ts.map +1 -0
  21. package/dist/components/core/charts/ChartCard.d.ts +31 -0
  22. package/dist/components/core/charts/ChartCard.d.ts.map +1 -0
  23. package/dist/components/core/charts/CircularGauge.d.ts +39 -0
  24. package/dist/components/core/charts/CircularGauge.d.ts.map +1 -0
  25. package/dist/components/core/charts/LineChart.d.ts +23 -0
  26. package/dist/components/core/charts/LineChart.d.ts.map +1 -0
  27. package/dist/components/core/charts/PieChart.d.ts +26 -0
  28. package/dist/components/core/charts/PieChart.d.ts.map +1 -0
  29. package/dist/components/core/charts/chartColors.d.ts +13 -0
  30. package/dist/components/core/charts/chartColors.d.ts.map +1 -0
  31. package/dist/components/core/charts/chartTooltip.helper.d.ts +14 -0
  32. package/dist/components/core/charts/chartTooltip.helper.d.ts.map +1 -0
  33. package/dist/components/core/charts/index.d.ts +14 -0
  34. package/dist/components/core/charts/index.d.ts.map +1 -0
  35. package/dist/components/core/charts/index.js +11 -0
  36. package/dist/components/core/dialogs/index.js +2 -2
  37. package/dist/components/core/filters/index.js +1 -1
  38. package/dist/components/core/forms/index.js +1 -1
  39. package/dist/components/core/index.d.ts +1 -0
  40. package/dist/components/core/index.d.ts.map +1 -1
  41. package/dist/components/core/index.js +80 -71
  42. package/dist/components/core/inputs/SearchableSelect.d.ts +16 -2
  43. package/dist/components/core/inputs/SearchableSelect.d.ts.map +1 -1
  44. package/dist/components/core/inputs/index.d.ts +1 -0
  45. package/dist/components/core/inputs/index.d.ts.map +1 -1
  46. package/dist/components/core/inputs/index.js +3 -3
  47. package/dist/components/core/layouts/index.js +3 -3
  48. package/dist/components/core/table/index.js +1 -1
  49. package/dist/components/core/tabs/AppTabs.d.ts.map +1 -1
  50. package/dist/components/core/tabs/index.js +1 -1
  51. package/dist/components/index.js +307 -297
  52. package/dist/components/ui/index.d.ts +1 -0
  53. package/dist/components/ui/index.d.ts.map +1 -1
  54. package/dist/components/ui/index.js +218 -217
  55. package/dist/components/ui/tabs.d.ts.map +1 -1
  56. package/dist/hooks/index.js +9 -7
  57. package/dist/hooks/ui/index.d.ts +1 -0
  58. package/dist/hooks/ui/index.d.ts.map +1 -1
  59. package/dist/hooks/ui/index.js +11 -9
  60. package/dist/hooks/ui/useScrollFade.d.ts +11 -0
  61. package/dist/hooks/ui/useScrollFade.d.ts.map +1 -0
  62. package/dist/tailwind/index.d.ts +7 -0
  63. package/dist/tailwind/index.d.ts.map +1 -1
  64. package/dist/tailwind/index.js +11 -2
  65. package/dist/{toaster-B6XKMRwI.js → toaster-Cm7utXqi.js} +13 -13
  66. package/dist/toggle-group-D6aFQQcf.js +1460 -0
  67. package/dist/types/ChartDatum.d.ts +19 -0
  68. package/dist/types/ChartDatum.d.ts.map +1 -0
  69. package/dist/types/index.d.ts +1 -0
  70. package/dist/types/index.d.ts.map +1 -1
  71. package/dist/useScrollFade-BA4KqJYp.js +23 -0
  72. package/package.json +1 -1
  73. package/dist/AppVerticalTabs-D8fURUUN.js +0 -94
  74. package/dist/SearchInput-ClZbbRWg.js +0 -254
  75. package/dist/toggle-group-D6c-gM1D.js +0 -1618
@@ -1,1618 +0,0 @@
1
- import { jsx as o, jsxs as d, Fragment as ke } from "react/jsx-runtime";
2
- import * as s from "react";
3
- import { c as r } from "./tailwind.helper-B6yFEsav.js";
4
- import * as P from "@radix-ui/react-accordion";
5
- import { ChevronDown as te, MoreHorizontal as Ie, ChevronRight as H, ChevronLeft as Te, ArrowLeft as Se, ArrowRight as Pe, CheckIcon as oe, X as De, SearchIcon as ze, Check as re, Circle as Z, ChevronRightIcon as se, CircleIcon as Me, Dot as _e, MoreHorizontalIcon as Le, ChevronLeftIcon as je, XIcon as Ae } from "lucide-react";
6
- import * as N from "@radix-ui/react-alert-dialog";
7
- import { d as M, B as ne } from "./tooltip-DVeqVwqV.js";
8
- import * as _ from "@radix-ui/react-avatar";
9
- import { cva as B } from "class-variance-authority";
10
- import { Slot as ie } from "@radix-ui/react-slot";
11
- import { DayPicker as Fe } from "react-day-picker";
12
- import Ge from "embla-carousel-react";
13
- import * as ee from "recharts";
14
- import * as J from "@radix-ui/react-checkbox";
15
- import { Command as x } from "cmdk";
16
- import * as y from "@radix-ui/react-dialog";
17
- import * as f from "@radix-ui/react-context-menu";
18
- import { Drawer as R } from "vaul";
19
- import * as p from "@radix-ui/react-dropdown-menu";
20
- import { useFormContext as Oe, FormProvider as Be, Controller as He } from "react-hook-form";
21
- import * as $e from "@radix-ui/react-label";
22
- import * as $ from "@radix-ui/react-hover-card";
23
- import { OTPInput as Ee, OTPInputContext as Ve } from "input-otp";
24
- import * as m from "@radix-ui/react-menubar";
25
- import * as h from "@radix-ui/react-navigation-menu";
26
- import * as G from "@radix-ui/react-popover";
27
- import * as Q from "@radix-ui/react-progress";
28
- import * as O from "@radix-ui/react-radio-group";
29
- import * as S from "@radix-ui/react-scroll-area";
30
- import * as de from "@radix-ui/react-separator";
31
- import * as F from "@radix-ui/react-slider";
32
- import * as U from "@radix-ui/react-switch";
33
- import * as D from "@radix-ui/react-tabs";
34
- import * as v from "@radix-ui/react-toast";
35
- import * as E from "@radix-ui/react-toggle-group";
36
- import * as le from "@radix-ui/react-toggle";
37
- const Ke = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: r("rounded-surface border bg-card text-card-foreground shadow-sm", a), ...e }));
38
- Ke.displayName = "Card";
39
- const qe = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: r("flex flex-col space-y-1.5 p-6", a), ...e }));
40
- qe.displayName = "CardHeader";
41
- const Xe = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o("h3", { ref: t, className: r("text-2xl font-semibold leading-none tracking-tight", a), ...e }));
42
- Xe.displayName = "CardTitle";
43
- const We = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o("p", { ref: t, className: r("text-sm text-muted-foreground", a), ...e }));
44
- We.displayName = "CardDescription";
45
- const Je = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: r("p-6 pt-0", a), ...e }));
46
- Je.displayName = "CardContent";
47
- const Qe = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: r("flex items-center p-6 pt-0", a), ...e }));
48
- Qe.displayName = "CardFooter";
49
- const Go = P.Root, Ue = s.forwardRef(
50
- ({ className: a, ...e }, t) => /* @__PURE__ */ o(P.Item, { ref: t, className: r("border-b", a), ...e })
51
- );
52
- Ue.displayName = "AccordionItem";
53
- const Ye = s.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__ */ o(P.Header, { className: "flex", children: /* @__PURE__ */ d(
54
- P.Trigger,
55
- {
56
- ref: n,
57
- className: r("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180", a),
58
- ...t,
59
- children: [
60
- e,
61
- /* @__PURE__ */ o(te, { className: "size-4 shrink-0 transition-transform duration-200" })
62
- ]
63
- }
64
- ) }));
65
- Ye.displayName = P.Trigger.displayName;
66
- const Ze = s.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__ */ o(
67
- P.Content,
68
- {
69
- ref: n,
70
- className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
71
- ...t,
72
- children: /* @__PURE__ */ o("div", { className: r("pb-4 pt-0", a), children: e })
73
- }
74
- ));
75
- Ze.displayName = P.Content.displayName;
76
- const Oo = N.Root, Bo = N.Trigger, ea = N.Portal, ce = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
77
- N.Overlay,
78
- {
79
- className: r(
80
- "fixed inset-0 z-70 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
81
- a
82
- ),
83
- ...e,
84
- ref: t
85
- }
86
- ));
87
- ce.displayName = N.Overlay.displayName;
88
- const aa = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ d(ea, { children: [
89
- /* @__PURE__ */ o(ce, {}),
90
- /* @__PURE__ */ o(
91
- N.Content,
92
- {
93
- ref: t,
94
- className: r(
95
- "fixed left-[50%] top-[50%] z-70 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-surface",
96
- a
97
- ),
98
- ...e
99
- }
100
- )
101
- ] }));
102
- aa.displayName = N.Content.displayName;
103
- const ta = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: r("flex flex-col space-y-2 text-center sm:text-left", a), ...e });
104
- ta.displayName = "AlertDialogHeader";
105
- const oa = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", a), ...e });
106
- oa.displayName = "AlertDialogFooter";
107
- const ra = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(N.Title, { ref: t, className: r("text-lg font-semibold", a), ...e }));
108
- ra.displayName = N.Title.displayName;
109
- const sa = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(N.Description, { ref: t, className: r("text-sm text-muted-foreground", a), ...e }));
110
- sa.displayName = N.Description.displayName;
111
- const na = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(N.Action, { ref: t, className: r(M(), a), ...e }));
112
- na.displayName = N.Action.displayName;
113
- const ia = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(N.Cancel, { ref: t, className: r(M({ variant: "outline" }), "mt-2 sm:mt-0", a), ...e }));
114
- ia.displayName = N.Cancel.displayName;
115
- const da = s.forwardRef(
116
- ({ className: a, ...e }, t) => /* @__PURE__ */ o(_.Root, { ref: t, className: r("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", a), ...e })
117
- );
118
- da.displayName = _.Root.displayName;
119
- const la = s.forwardRef(
120
- ({ className: a, ...e }, t) => /* @__PURE__ */ o(_.Image, { ref: t, className: r("aspect-square h-full w-full", a), ...e })
121
- );
122
- la.displayName = _.Image.displayName;
123
- const ca = s.forwardRef(
124
- ({ className: a, ...e }, t) => /* @__PURE__ */ o(_.Fallback, { ref: t, className: r("flex h-full w-full items-center justify-center rounded-full bg-muted", a), ...e })
125
- );
126
- ca.displayName = _.Fallback.displayName;
127
- const ma = B(
128
- "inline-flex items-center rounded-control border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
129
- {
130
- variants: {
131
- variant: {
132
- default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
133
- secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
134
- destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
135
- outline: "text-foreground"
136
- }
137
- },
138
- defaultVariants: {
139
- variant: "default"
140
- }
141
- }
142
- );
143
- function Ho({ className: a, variant: e, ...t }) {
144
- return /* @__PURE__ */ o("div", { className: r(ma({ variant: e }), a), ...t });
145
- }
146
- const ua = s.forwardRef(({ ...a }, e) => /* @__PURE__ */ o("nav", { ref: e, "aria-label": "breadcrumb", ...a }));
147
- ua.displayName = "Breadcrumb";
148
- const fa = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o("ol", { ref: t, className: r("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5", a), ...e }));
149
- fa.displayName = "BreadcrumbList";
150
- const pa = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o("li", { ref: t, className: r("inline-flex items-center gap-1.5", a), ...e }));
151
- pa.displayName = "BreadcrumbItem";
152
- const ga = s.forwardRef(({ asChild: a, className: e, ...t }, n) => /* @__PURE__ */ o(a ? ie : "a", { ref: n, className: r("transition-colors hover:text-foreground", e), ...t }));
153
- ga.displayName = "BreadcrumbLink";
154
- const ba = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o("span", { ref: t, role: "link", "aria-disabled": "true", "aria-current": "page", className: r("font-normal text-foreground", a), ...e }));
155
- ba.displayName = "BreadcrumbPage";
156
- const Na = ({ children: a, className: e, ...t }) => /* @__PURE__ */ o("li", { role: "presentation", "aria-hidden": "true", className: r("[&>svg]:size-3.5", e), ...t, children: a ?? /* @__PURE__ */ o(H, {}) });
157
- Na.displayName = "BreadcrumbSeparator";
158
- const xa = ({ className: a, ...e }) => /* @__PURE__ */ d("span", { role: "presentation", "aria-hidden": "true", className: r("flex h-9 w-9 items-center justify-center", a), ...e, children: [
159
- /* @__PURE__ */ o(Ie, { className: "size-4" }),
160
- /* @__PURE__ */ o("span", { className: "sr-only", children: "More" })
161
- ] });
162
- xa.displayName = "BreadcrumbElipssis";
163
- function ha({ className: a, classNames: e, showOutsideDays: t = !0, ...n }) {
164
- return /* @__PURE__ */ o(
165
- Fe,
166
- {
167
- showOutsideDays: t,
168
- className: r("p-3 pointer-events-auto", a),
169
- classNames: {
170
- months: "flex flex-col gap-2 relative sm:flex-row",
171
- month: "flex flex-col gap-4",
172
- month_caption: "flex justify-center pt-1 relative items-center w-full",
173
- caption_label: "text-sm font-medium",
174
- nav: "flex items-center gap-1 absolute h-7 w-full z-10",
175
- button_previous: r(M({ variant: "outline" }), "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100", "absolute left-1"),
176
- button_next: r(M({ variant: "outline" }), "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100", "absolute right-1"),
177
- weekdays: "flex justify-center",
178
- weekday: "text-muted-foreground rounded-control w-9 font-normal text-[0.8rem] text-center flex items-center justify-center",
179
- week: "flex w-full mt-2",
180
- day: r(
181
- "group relative size-9 p-0 text-center text-sm focus-within:relative focus-within:z-20",
182
- "[&:has([aria-selected].day-range-end)]:rounded-r-control",
183
- "[&:has([aria-selected])]:bg-accent",
184
- "first:[&:has([aria-selected])]:rounded-l-control",
185
- "last:[&:has([aria-selected])]:rounded-r-control",
186
- "[&:has([aria-selected].day-outside)]:bg-accent/50"
187
- ),
188
- day_button: r(M({ variant: "ghost" }), "size-9 p-0 font-normal aria-selected:opacity-100"),
189
- range_start: "day-range-start rounded-l-control",
190
- range_end: "day-range-end rounded-r-control",
191
- selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
192
- today: "bg-accent text-accent-foreground",
193
- outside: "day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",
194
- disabled: "text-muted-foreground opacity-50",
195
- range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground",
196
- hidden: "invisible",
197
- ...e
198
- },
199
- components: {
200
- Chevron: ({ orientation: i, ...l }) => /* @__PURE__ */ o(i === "left" ? Te : H, { className: "size-4", ...l })
201
- },
202
- ...n
203
- }
204
- );
205
- }
206
- ha.displayName = "Calendar";
207
- const me = s.createContext(null);
208
- function V() {
209
- const a = s.useContext(me);
210
- if (!a)
211
- throw new Error("useCarousel must be used within a <Carousel />");
212
- return a;
213
- }
214
- const ya = s.forwardRef(
215
- ({ orientation: a = "horizontal", opts: e, setApi: t, plugins: n, className: i, children: l, ...u }, b) => {
216
- const [k, c] = Ge(
217
- {
218
- ...e,
219
- axis: a === "horizontal" ? "x" : "y"
220
- },
221
- n
222
- ), [q, X] = s.useState(!1), [L, W] = s.useState(!1), I = s.useCallback((w) => {
223
- w && (X(w.canScrollPrev()), W(w.canScrollNext()));
224
- }, []), z = s.useCallback(() => {
225
- c == null || c.scrollPrev();
226
- }, [c]), T = s.useCallback(() => {
227
- c == null || c.scrollNext();
228
- }, [c]), g = s.useCallback(
229
- (w) => {
230
- w.key === "ArrowLeft" ? (w.preventDefault(), z()) : w.key === "ArrowRight" && (w.preventDefault(), T());
231
- },
232
- [z, T]
233
- );
234
- return s.useEffect(() => {
235
- !c || !t || t(c);
236
- }, [c, t]), s.useEffect(() => {
237
- if (c)
238
- return I(c), c.on("reInit", I), c.on("select", I), () => {
239
- c == null || c.off("select", I);
240
- };
241
- }, [c, I]), /* @__PURE__ */ o(
242
- me.Provider,
243
- {
244
- value: {
245
- carouselRef: k,
246
- api: c,
247
- opts: e,
248
- orientation: a || ((e == null ? void 0 : e.axis) === "y" ? "vertical" : "horizontal"),
249
- scrollPrev: z,
250
- scrollNext: T,
251
- canScrollPrev: q,
252
- canScrollNext: L
253
- },
254
- children: /* @__PURE__ */ o("div", { ref: b, onKeyDownCapture: g, className: r("relative", i), role: "region", "aria-roledescription": "carousel", ...u, children: l })
255
- }
256
- );
257
- }
258
- );
259
- ya.displayName = "Carousel";
260
- const va = s.forwardRef(({ className: a, ...e }, t) => {
261
- const { carouselRef: n, orientation: i } = V();
262
- return /* @__PURE__ */ o("div", { ref: n, className: "overflow-hidden", children: /* @__PURE__ */ o("div", { ref: t, className: r("flex", i === "horizontal" ? "-ml-4" : "-mt-4 flex-col", a), ...e }) });
263
- });
264
- va.displayName = "CarouselContent";
265
- const wa = s.forwardRef(({ className: a, ...e }, t) => {
266
- const { orientation: n } = V();
267
- return /* @__PURE__ */ o(
268
- "div",
269
- {
270
- ref: t,
271
- role: "group",
272
- "aria-roledescription": "slide",
273
- className: r("min-w-0 shrink-0 grow-0 basis-full", n === "horizontal" ? "pl-4" : "pt-4", a),
274
- ...e
275
- }
276
- );
277
- });
278
- wa.displayName = "CarouselItem";
279
- const Ca = s.forwardRef(
280
- ({ className: a, variant: e = "outline", size: t = "icon", ...n }, i) => {
281
- const { orientation: l, scrollPrev: u, canScrollPrev: b } = V();
282
- return /* @__PURE__ */ d(
283
- ne,
284
- {
285
- ref: i,
286
- variant: e,
287
- size: t,
288
- className: r(
289
- "absolute h-8 w-8 rounded-control",
290
- l === "horizontal" ? "-left-12 top-1/2 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
291
- a
292
- ),
293
- disabled: !b,
294
- onClick: u,
295
- ...n,
296
- children: [
297
- /* @__PURE__ */ o(Se, { className: "size-4" }),
298
- /* @__PURE__ */ o("span", { className: "sr-only", children: "Previous slide" })
299
- ]
300
- }
301
- );
302
- }
303
- );
304
- Ca.displayName = "CarouselPrevious";
305
- const Ra = s.forwardRef(
306
- ({ className: a, variant: e = "outline", size: t = "icon", ...n }, i) => {
307
- const { orientation: l, scrollNext: u, canScrollNext: b } = V();
308
- return /* @__PURE__ */ d(
309
- ne,
310
- {
311
- ref: i,
312
- variant: e,
313
- size: t,
314
- className: r(
315
- "absolute h-8 w-8 rounded-control",
316
- l === "horizontal" ? "-right-12 top-1/2 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
317
- a
318
- ),
319
- disabled: !b,
320
- onClick: u,
321
- ...n,
322
- children: [
323
- /* @__PURE__ */ o(Pe, { className: "size-4" }),
324
- /* @__PURE__ */ o("span", { className: "sr-only", children: "Next slide" })
325
- ]
326
- }
327
- );
328
- }
329
- );
330
- Ra.displayName = "CarouselNext";
331
- const ka = { light: "", dark: ".dark" }, ue = s.createContext(null);
332
- function fe() {
333
- const a = s.useContext(ue);
334
- if (!a)
335
- throw new Error("useChart must be used within a <ChartContainer />");
336
- return a;
337
- }
338
- const Ia = s.forwardRef(({ id: a, className: e, children: t, config: n, ...i }, l) => {
339
- const u = s.useId(), b = `chart-${a || u.replace(/:/g, "")}`;
340
- return /* @__PURE__ */ o(ue.Provider, { value: { config: n }, children: /* @__PURE__ */ d(
341
- "div",
342
- {
343
- "data-chart": b,
344
- ref: l,
345
- className: r(
346
- "flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",
347
- e
348
- ),
349
- ...i,
350
- children: [
351
- /* @__PURE__ */ o(Ta, { id: b, config: n }),
352
- /* @__PURE__ */ o(ee.ResponsiveContainer, { children: t })
353
- ]
354
- }
355
- ) });
356
- });
357
- Ia.displayName = "Chart";
358
- const Ta = ({ id: a, config: e }) => {
359
- const t = Object.entries(e).filter(([n, i]) => i.theme || i.color);
360
- return t.length ? /* @__PURE__ */ o(
361
- "style",
362
- {
363
- dangerouslySetInnerHTML: {
364
- __html: Object.entries(ka).map(
365
- ([n, i]) => `
366
- ${i} [data-chart=${a}] {
367
- ${t.map(([l, u]) => {
368
- var k;
369
- const b = ((k = u.theme) == null ? void 0 : k[n]) || u.color;
370
- return b ? ` --color-${l}: ${b};` : null;
371
- }).join(`
372
- `)}
373
- }
374
- `
375
- ).join(`
376
- `)
377
- }
378
- }
379
- ) : null;
380
- }, $o = ee.Tooltip, Sa = s.forwardRef(
381
- ({
382
- active: a,
383
- payload: e = [],
384
- className: t,
385
- indicator: n = "dot",
386
- hideLabel: i = !1,
387
- hideIndicator: l = !1,
388
- label: u = "",
389
- labelFormatter: b,
390
- labelClassName: k,
391
- formatter: c,
392
- color: q,
393
- nameKey: X,
394
- labelKey: L
395
- }, W) => {
396
- const { config: I } = fe(), z = s.useMemo(() => {
397
- var A;
398
- if (i || !(e != null && e.length))
399
- return null;
400
- const [g] = e, w = `${L || g.dataKey || g.name || "value"}`, j = Y(I, g, w), C = !L && typeof u == "string" ? ((A = I[u]) == null ? void 0 : A.label) || u : j == null ? void 0 : j.label;
401
- return b ? /* @__PURE__ */ o("div", { className: r("font-medium", k), children: b(C, e) }) : C ? /* @__PURE__ */ o("div", { className: r("font-medium", k), children: C }) : null;
402
- }, [u, b, e, i, k, I, L]);
403
- if (!a || !(e != null && e.length))
404
- return null;
405
- const T = e.length === 1 && n !== "dot";
406
- return /* @__PURE__ */ d(
407
- "div",
408
- {
409
- ref: W,
410
- className: r("grid min-w-[8rem] items-start gap-1.5 rounded-surface border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl", t),
411
- children: [
412
- T ? null : z,
413
- /* @__PURE__ */ o("div", { className: "grid gap-1.5", children: e.map((g, w) => {
414
- const j = `${X || g.name || g.dataKey || "value"}`, C = Y(I, g, j), A = q || g.payload.fill || g.color;
415
- return /* @__PURE__ */ o(
416
- "div",
417
- {
418
- className: r(
419
- "flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",
420
- n === "dot" && "items-center"
421
- ),
422
- children: c && (g == null ? void 0 : g.value) !== void 0 && g.name ? c(g.value, g.name, g, w, g.payload) : /* @__PURE__ */ d(ke, { children: [
423
- C != null && C.icon ? /* @__PURE__ */ o(C.icon, {}) : !l && /* @__PURE__ */ o(
424
- "div",
425
- {
426
- className: r("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]", {
427
- "h-2.5 w-2.5": n === "dot",
428
- "w-1": n === "line",
429
- "w-0 border-[1.5px] border-dashed bg-transparent": n === "dashed",
430
- "my-0.5": T && n === "dashed"
431
- }),
432
- style: {
433
- "--color-bg": A,
434
- "--color-border": A
435
- }
436
- }
437
- ),
438
- /* @__PURE__ */ d("div", { className: r("flex flex-1 justify-between leading-none", T ? "items-end" : "items-center"), children: [
439
- /* @__PURE__ */ d("div", { className: "grid gap-1.5", children: [
440
- T ? z : null,
441
- /* @__PURE__ */ o("span", { className: "text-muted-foreground", children: (C == null ? void 0 : C.label) || g.name })
442
- ] }),
443
- g.value && /* @__PURE__ */ o("span", { className: "font-mono font-medium tabular-nums text-foreground", children: g.value.toLocaleString() })
444
- ] })
445
- ] })
446
- },
447
- g.dataKey
448
- );
449
- }) })
450
- ]
451
- }
452
- );
453
- }
454
- );
455
- Sa.displayName = "ChartTooltip";
456
- const Eo = ee.Legend, Pa = s.forwardRef(({ className: a, hideIcon: e = !1, payload: t, verticalAlign: n = "bottom", nameKey: i }, l) => {
457
- const { config: u } = fe();
458
- return !t || !Array.isArray(t) || !t.length ? null : /* @__PURE__ */ o("div", { ref: l, className: r("flex items-center justify-center gap-4", n === "top" ? "pb-3" : "pt-3", a), children: Array.isArray(t) && t.map((b) => {
459
- const k = `${i || b.dataKey || "value"}`, c = Y(u, b, k);
460
- return /* @__PURE__ */ d("div", { className: r("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"), children: [
461
- c != null && c.icon && !e ? /* @__PURE__ */ o(c.icon, {}) : /* @__PURE__ */ o(
462
- "div",
463
- {
464
- className: "h-2 w-2 shrink-0 rounded-[2px]",
465
- style: {
466
- backgroundColor: b.color
467
- }
468
- }
469
- ),
470
- c == null ? void 0 : c.label
471
- ] }, b.value);
472
- }) });
473
- });
474
- Pa.displayName = "ChartLegend";
475
- function Y(a, e, t) {
476
- if (typeof e != "object" || e === null)
477
- return;
478
- const n = "payload" in e && typeof e.payload == "object" && e.payload !== null ? e.payload : void 0;
479
- let i = t;
480
- return t in e && typeof e[t] == "string" ? i = e[t] : n && t in n && typeof n[t] == "string" && (i = n[t]), i in a ? a[i] : a[t];
481
- }
482
- const Da = s.forwardRef(
483
- ({ className: a, ...e }, t) => /* @__PURE__ */ o(
484
- J.Root,
485
- {
486
- ref: t,
487
- className: r(
488
- "peer size-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground",
489
- a
490
- ),
491
- ...e,
492
- children: /* @__PURE__ */ o(J.Indicator, { className: r("flex items-center justify-center text-current"), children: e.checked === "indeterminate" ? /* @__PURE__ */ o("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 3, className: "size-3", children: /* @__PURE__ */ o("line", { x1: "5", y1: "12", x2: "19", y2: "12" }) }) : /* @__PURE__ */ o(oe, { className: "size-3" }) })
493
- }
494
- )
495
- );
496
- Da.displayName = J.Root.displayName;
497
- const za = y.Root, Vo = y.Trigger, Ma = y.Portal, Ko = y.Close, pe = s.forwardRef(
498
- ({ className: a, ...e }, t) => /* @__PURE__ */ o(
499
- y.Overlay,
500
- {
501
- ref: t,
502
- className: r(
503
- "fixed inset-0 z-[70] bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
504
- a
505
- ),
506
- ...e
507
- }
508
- )
509
- );
510
- pe.displayName = y.Overlay.displayName;
511
- const ge = s.forwardRef(
512
- ({ className: a, children: e, ...t }, n) => /* @__PURE__ */ d(Ma, { children: [
513
- /* @__PURE__ */ o(pe, {}),
514
- /* @__PURE__ */ d(
515
- y.Content,
516
- {
517
- ref: n,
518
- className: r(
519
- "fixed left-[50%] top-[50%] z-[70] grid w-full max-w-lg max-h-[95vh] overflow-y-auto translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-surface",
520
- a
521
- ),
522
- ...t,
523
- children: [
524
- e,
525
- /* @__PURE__ */ d(y.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none", children: [
526
- /* @__PURE__ */ o(De, { className: "size-4" }),
527
- /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
528
- ] })
529
- ]
530
- }
531
- )
532
- ] })
533
- );
534
- ge.displayName = y.Content.displayName;
535
- const _a = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: r("flex flex-col space-y-1.5 text-center sm:text-left", a), ...e });
536
- _a.displayName = "DialogHeader";
537
- const La = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", a), ...e });
538
- La.displayName = "DialogFooter";
539
- const ja = s.forwardRef(
540
- ({ className: a, ...e }, t) => /* @__PURE__ */ o(y.Title, { ref: t, className: r("text-lg font-semibold leading-none tracking-tight", a), ...e })
541
- );
542
- ja.displayName = y.Title.displayName;
543
- const Aa = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(y.Description, { ref: t, className: r("text-sm text-muted-foreground", a), ...e }));
544
- Aa.displayName = y.Description.displayName;
545
- const be = s.forwardRef(
546
- ({ className: a, ...e }, t) => /* @__PURE__ */ o(
547
- x,
548
- {
549
- ref: t,
550
- className: r("flex h-full w-full flex-col overflow-hidden rounded-surface bg-popover text-popover-foreground", a),
551
- ...e
552
- }
553
- )
554
- );
555
- be.displayName = x.displayName;
556
- const qo = ({ children: a, ...e }) => /* @__PURE__ */ o(za, { ...e, children: /* @__PURE__ */ o(ge, { className: "overflow-hidden p-0 shadow-lg", children: /* @__PURE__ */ o(be, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[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: a }) }) }), Fa = s.forwardRef(
557
- ({ className: a, ...e }, t) => /* @__PURE__ */ d("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
558
- /* @__PURE__ */ o(ze, { className: "mr-2 size-4 shrink-0 opacity-50" }),
559
- /* @__PURE__ */ o(
560
- x.Input,
561
- {
562
- ref: t,
563
- className: r(
564
- "flex h-11 w-full rounded-control bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
565
- a
566
- ),
567
- ...e
568
- }
569
- )
570
- ] })
571
- );
572
- Fa.displayName = x.Input.displayName;
573
- const Ga = s.forwardRef(
574
- ({ className: a, ...e }, t) => /* @__PURE__ */ o(x.List, { ref: t, className: r("max-h-[300px] overflow-y-auto overflow-x-hidden", a), ...e })
575
- );
576
- Ga.displayName = x.List.displayName;
577
- const Oa = s.forwardRef(
578
- (a, e) => /* @__PURE__ */ o(x.Empty, { ref: e, className: "py-6 text-center text-sm", ...a })
579
- );
580
- Oa.displayName = x.Empty.displayName;
581
- const Ba = s.forwardRef(
582
- ({ className: a, ...e }, t) => /* @__PURE__ */ o(
583
- x.Group,
584
- {
585
- ref: t,
586
- className: r(
587
- "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
588
- a
589
- ),
590
- ...e
591
- }
592
- )
593
- );
594
- Ba.displayName = x.Group.displayName;
595
- const Ha = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(x.Separator, { ref: t, className: r("-mx-1 h-px bg-border", a), ...e }));
596
- Ha.displayName = x.Separator.displayName;
597
- const $a = s.forwardRef(
598
- ({ className: a, ...e }, t) => /* @__PURE__ */ o(
599
- x.Item,
600
- {
601
- ref: t,
602
- className: r(
603
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",
604
- a
605
- ),
606
- ...e
607
- }
608
- )
609
- );
610
- $a.displayName = x.Item.displayName;
611
- const Ea = ({ className: a, ...e }) => /* @__PURE__ */ o("span", { className: r("ml-auto text-xs tracking-widest text-muted-foreground", a), ...e });
612
- Ea.displayName = "CommandShortcut";
613
- const Xo = f.Root, Wo = f.Trigger, Jo = f.Group, Qo = f.Portal, Uo = f.Sub, Yo = f.RadioGroup, Va = s.forwardRef(({ className: a, inset: e, children: t, ...n }, i) => /* @__PURE__ */ d(
614
- f.SubTrigger,
615
- {
616
- ref: i,
617
- className: r(
618
- "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
619
- e && "pl-8",
620
- a
621
- ),
622
- ...n,
623
- children: [
624
- t,
625
- /* @__PURE__ */ o(H, { className: "ml-auto size-4" })
626
- ]
627
- }
628
- ));
629
- Va.displayName = f.SubTrigger.displayName;
630
- const Ka = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
631
- f.SubContent,
632
- {
633
- ref: t,
634
- className: r(
635
- "z-50 min-w-[8rem] overflow-hidden rounded-surface border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]: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",
636
- a
637
- ),
638
- ...e
639
- }
640
- ));
641
- Ka.displayName = f.SubContent.displayName;
642
- const qa = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(f.Portal, { children: /* @__PURE__ */ o(
643
- f.Content,
644
- {
645
- ref: t,
646
- className: r(
647
- "z-50 min-w-[8rem] overflow-hidden rounded-surface border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]: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",
648
- a
649
- ),
650
- ...e
651
- }
652
- ) }));
653
- qa.displayName = f.Content.displayName;
654
- const Xa = s.forwardRef(({ className: a, inset: e, ...t }, n) => /* @__PURE__ */ o(
655
- f.Item,
656
- {
657
- ref: n,
658
- className: r(
659
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
660
- e && "pl-8",
661
- a
662
- ),
663
- ...t
664
- }
665
- ));
666
- Xa.displayName = f.Item.displayName;
667
- const Wa = s.forwardRef(({ className: a, children: e, checked: t, ...n }, i) => /* @__PURE__ */ d(
668
- f.CheckboxItem,
669
- {
670
- ref: i,
671
- className: r(
672
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
673
- a
674
- ),
675
- checked: t,
676
- ...n,
677
- children: [
678
- /* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(f.ItemIndicator, { children: /* @__PURE__ */ o(re, { className: "size-4" }) }) }),
679
- e
680
- ]
681
- }
682
- ));
683
- Wa.displayName = f.CheckboxItem.displayName;
684
- const Ja = s.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__ */ d(
685
- f.RadioItem,
686
- {
687
- ref: n,
688
- className: r(
689
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
690
- a
691
- ),
692
- ...t,
693
- children: [
694
- /* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(f.ItemIndicator, { children: /* @__PURE__ */ o(Z, { className: "h-2 w-2 fill-current" }) }) }),
695
- e
696
- ]
697
- }
698
- ));
699
- Ja.displayName = f.RadioItem.displayName;
700
- const Qa = s.forwardRef(({ className: a, inset: e, ...t }, n) => /* @__PURE__ */ o(f.Label, { ref: n, className: r("px-2 py-1.5 text-sm font-semibold text-foreground", e && "pl-8", a), ...t }));
701
- Qa.displayName = f.Label.displayName;
702
- const Ua = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(f.Separator, { ref: t, className: r("-mx-1 my-1 h-px bg-border", a), ...e }));
703
- Ua.displayName = f.Separator.displayName;
704
- const Ya = ({ className: a, ...e }) => /* @__PURE__ */ o("span", { className: r("ml-auto text-xs tracking-widest text-muted-foreground", a), ...e });
705
- Ya.displayName = "ContextMenuShortcut";
706
- const Za = ({ shouldScaleBackground: a = !0, ...e }) => /* @__PURE__ */ o(R.Root, { shouldScaleBackground: a, ...e });
707
- Za.displayName = "Drawer";
708
- const Zo = R.Trigger, et = R.Portal, er = R.Close, Ne = s.forwardRef(
709
- ({ className: a, ...e }, t) => /* @__PURE__ */ o(R.Overlay, { ref: t, className: r("fixed inset-0 z-50 bg-black/80", a), ...e })
710
- );
711
- Ne.displayName = R.Overlay.displayName;
712
- const at = s.forwardRef(
713
- ({ className: a, children: e, ...t }, n) => /* @__PURE__ */ d(et, { children: [
714
- /* @__PURE__ */ o(Ne, {}),
715
- /* @__PURE__ */ d(
716
- R.Content,
717
- {
718
- ref: n,
719
- className: r("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-surface border bg-background", a),
720
- ...t,
721
- children: [
722
- /* @__PURE__ */ o("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
723
- e
724
- ]
725
- }
726
- )
727
- ] })
728
- );
729
- at.displayName = "DrawerContent";
730
- const tt = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: r("grid gap-1.5 p-4 text-center sm:text-left", a), ...e });
731
- tt.displayName = "DrawerHeader";
732
- const ot = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: r("mt-auto flex flex-col gap-2 p-4", a), ...e });
733
- ot.displayName = "DrawerFooter";
734
- const rt = s.forwardRef(
735
- ({ className: a, ...e }, t) => /* @__PURE__ */ o(R.Title, { ref: t, className: r("text-lg font-semibold leading-none tracking-tight", a), ...e })
736
- );
737
- rt.displayName = R.Title.displayName;
738
- const st = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(R.Description, { ref: t, className: r("text-sm text-muted-foreground", a), ...e }));
739
- st.displayName = R.Description.displayName;
740
- const ar = p.Root, tr = p.Trigger, or = p.Group, rr = p.Portal, sr = p.Sub, nr = p.RadioGroup, nt = s.forwardRef(({ className: a, inset: e, children: t, ...n }, i) => /* @__PURE__ */ d(
741
- p.SubTrigger,
742
- {
743
- ref: i,
744
- className: r(
745
- "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent focus:bg-accent",
746
- e === !0 && "pl-8",
747
- a
748
- ),
749
- ...n,
750
- children: [
751
- t,
752
- /* @__PURE__ */ o(se, { className: "ml-auto size-4" })
753
- ]
754
- }
755
- ));
756
- nt.displayName = p.SubTrigger.displayName;
757
- const it = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
758
- p.SubContent,
759
- {
760
- ref: t,
761
- className: r(
762
- "z-50 min-w-[8rem] overflow-hidden rounded-surface border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]: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",
763
- a
764
- ),
765
- ...e
766
- }
767
- ));
768
- it.displayName = p.SubContent.displayName;
769
- const dt = s.forwardRef(({ className: a, sideOffset: e = 4, ...t }, n) => /* @__PURE__ */ o(p.Portal, { children: /* @__PURE__ */ o(
770
- p.Content,
771
- {
772
- ref: n,
773
- sideOffset: e,
774
- className: r(
775
- "z-50 min-w-[8rem] overflow-hidden rounded-surface border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]: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",
776
- a
777
- ),
778
- ...t
779
- }
780
- ) }));
781
- dt.displayName = p.Content.displayName;
782
- const lt = s.forwardRef(({ className: a, inset: e, ...t }, n) => /* @__PURE__ */ o(
783
- p.Item,
784
- {
785
- ref: n,
786
- className: r(
787
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",
788
- e === !0 && "pl-8",
789
- a
790
- ),
791
- ...t
792
- }
793
- ));
794
- lt.displayName = p.Item.displayName;
795
- const ct = s.forwardRef(({ className: a, children: e, checked: t, ...n }, i) => /* @__PURE__ */ d(
796
- p.CheckboxItem,
797
- {
798
- ref: i,
799
- className: r(
800
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",
801
- a
802
- ),
803
- checked: t,
804
- ...n,
805
- children: [
806
- /* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(p.ItemIndicator, { children: /* @__PURE__ */ o(oe, { className: "size-4" }) }) }),
807
- e
808
- ]
809
- }
810
- ));
811
- ct.displayName = p.CheckboxItem.displayName;
812
- const mt = s.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__ */ d(
813
- p.RadioItem,
814
- {
815
- ref: n,
816
- className: r(
817
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",
818
- a
819
- ),
820
- ...t,
821
- children: [
822
- /* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(p.ItemIndicator, { children: /* @__PURE__ */ o(Me, { className: "h-2 w-2 fill-current" }) }) }),
823
- e
824
- ]
825
- }
826
- ));
827
- mt.displayName = p.RadioItem.displayName;
828
- const ut = s.forwardRef(({ className: a, inset: e, ...t }, n) => /* @__PURE__ */ o(p.Label, { ref: n, className: r("px-2 py-1.5 text-sm font-semibold", e === !0 && "pl-8", a), ...t }));
829
- ut.displayName = p.Label.displayName;
830
- const ft = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(p.Separator, { ref: t, className: r("-mx-1 my-1 h-px bg-muted", a), ...e }));
831
- ft.displayName = p.Separator.displayName;
832
- const pt = ({ className: a, ...e }) => /* @__PURE__ */ o("span", { className: r("ml-auto text-xs tracking-widest opacity-60", a), ...e });
833
- pt.displayName = "DropdownMenuShortcut";
834
- const gt = B("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), xe = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o($e.Root, { ref: t, className: r(gt(), a), ...e }));
835
- xe.displayName = "Label";
836
- const ir = Be, he = s.createContext({}), dr = ({
837
- ...a
838
- }) => /* @__PURE__ */ o(he.Provider, { value: { name: a.name }, children: /* @__PURE__ */ o(He, { ...a }) }), K = () => {
839
- const a = s.useContext(he), e = s.useContext(ye), { getFieldState: t, formState: n } = Oe(), i = t(a.name, n);
840
- if (!a)
841
- throw new Error("useFormField should be used within <FormField>");
842
- const { id: l } = e;
843
- return {
844
- id: l,
845
- name: a.name,
846
- formItemId: `${l}-form-item`,
847
- formDescriptionId: `${l}-form-item-description`,
848
- formMessageId: `${l}-form-item-message`,
849
- ...i
850
- };
851
- }, ye = s.createContext({}), bt = s.forwardRef(({ className: a, ...e }, t) => {
852
- const n = s.useId();
853
- return /* @__PURE__ */ o(ye.Provider, { value: { id: n }, children: /* @__PURE__ */ o("div", { ref: t, className: r("space-y-2", a), ...e }) });
854
- });
855
- bt.displayName = "FormItem";
856
- const Nt = s.forwardRef(
857
- ({ className: a, ...e }, t) => {
858
- const { error: n, formItemId: i } = K();
859
- return /* @__PURE__ */ o(xe, { ref: t, className: r(n && "text-destructive", a), htmlFor: i, ...e });
860
- }
861
- );
862
- Nt.displayName = "FormLabel";
863
- const xt = s.forwardRef(({ ...a }, e) => {
864
- const { error: t, formItemId: n, formDescriptionId: i, formMessageId: l } = K();
865
- return /* @__PURE__ */ o(
866
- ie,
867
- {
868
- ref: e,
869
- id: n,
870
- "aria-describedby": t ? `${i} ${l}` : `${i}`,
871
- "aria-invalid": !!t,
872
- ...a
873
- }
874
- );
875
- });
876
- xt.displayName = "FormControl";
877
- const ht = s.forwardRef(({ className: a, ...e }, t) => {
878
- const { formDescriptionId: n } = K();
879
- return /* @__PURE__ */ o("p", { ref: t, id: n, className: r("text-sm text-muted-foreground", a), ...e });
880
- });
881
- ht.displayName = "FormDescription";
882
- const yt = s.forwardRef(({ className: a, children: e, ...t }, n) => {
883
- const { error: i, formMessageId: l } = K(), u = i ? String(i == null ? void 0 : i.message) : e;
884
- return u ? /* @__PURE__ */ o("p", { ref: n, id: l, className: r("text-sm font-medium text-destructive", a), ...t, children: u }) : null;
885
- });
886
- yt.displayName = "FormMessage";
887
- const lr = $.Root, cr = $.Trigger, vt = s.forwardRef(({ className: a, align: e = "center", sideOffset: t = 4, ...n }, i) => /* @__PURE__ */ o(
888
- $.Content,
889
- {
890
- ref: i,
891
- align: e,
892
- sideOffset: t,
893
- className: r(
894
- "z-50 w-64 rounded-surface border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]: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",
895
- a
896
- ),
897
- ...n
898
- }
899
- ));
900
- vt.displayName = $.Content.displayName;
901
- const wt = s.forwardRef(
902
- ({ className: a, containerClassName: e, ...t }, n) => /* @__PURE__ */ o(
903
- Ee,
904
- {
905
- ref: n,
906
- containerClassName: r("flex items-center gap-2 has-[:disabled]:opacity-50", e),
907
- className: r("disabled:cursor-not-allowed", a),
908
- ...t
909
- }
910
- )
911
- );
912
- wt.displayName = "InputOTP";
913
- const Ct = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: r("flex items-center", a), ...e }));
914
- Ct.displayName = "InputOTPGroup";
915
- const Rt = s.forwardRef(
916
- ({ index: a, className: e, ...t }, n) => {
917
- const i = s.useContext(Ve), { char: l, hasFakeCaret: u, isActive: b } = i.slots[a];
918
- return /* @__PURE__ */ d(
919
- "div",
920
- {
921
- ref: n,
922
- className: r(
923
- "relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-control first:border-l last:rounded-r-control",
924
- b && "z-10 ring-2 ring-ring ring-offset-background",
925
- e
926
- ),
927
- ...t,
928
- children: [
929
- l,
930
- u && /* @__PURE__ */ o("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ o("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
931
- ]
932
- }
933
- );
934
- }
935
- );
936
- Rt.displayName = "InputOTPSlot";
937
- const kt = s.forwardRef(({ ...a }, e) => /* @__PURE__ */ o("div", { ref: e, role: "separator", ...a, children: /* @__PURE__ */ o(_e, {}) }));
938
- kt.displayName = "InputOTPSeparator";
939
- const mr = m.Menu, ur = m.Group, fr = m.Portal, pr = m.Sub, gr = m.RadioGroup, It = s.forwardRef(
940
- ({ className: a, ...e }, t) => /* @__PURE__ */ o(m.Root, { ref: t, className: r("flex h-10 items-center space-x-1 rounded-surface border bg-background p-1", a), ...e })
941
- );
942
- It.displayName = m.Root.displayName;
943
- const Tt = s.forwardRef(
944
- ({ className: a, ...e }, t) => /* @__PURE__ */ o(
945
- m.Trigger,
946
- {
947
- ref: t,
948
- className: r(
949
- "flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
950
- a
951
- ),
952
- ...e
953
- }
954
- )
955
- );
956
- Tt.displayName = m.Trigger.displayName;
957
- const St = s.forwardRef(({ className: a, inset: e, children: t, ...n }, i) => /* @__PURE__ */ d(
958
- m.SubTrigger,
959
- {
960
- ref: i,
961
- className: r(
962
- "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
963
- e && "pl-8",
964
- a
965
- ),
966
- ...n,
967
- children: [
968
- t,
969
- /* @__PURE__ */ o(H, { className: "ml-auto size-4" })
970
- ]
971
- }
972
- ));
973
- St.displayName = m.SubTrigger.displayName;
974
- const Pt = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
975
- m.SubContent,
976
- {
977
- ref: t,
978
- className: r(
979
- "z-50 min-w-[8rem] overflow-hidden rounded-surface border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]: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",
980
- a
981
- ),
982
- ...e
983
- }
984
- ));
985
- Pt.displayName = m.SubContent.displayName;
986
- const Dt = s.forwardRef(
987
- ({ className: a, align: e = "start", alignOffset: t = -4, sideOffset: n = 8, ...i }, l) => /* @__PURE__ */ o(m.Portal, { children: /* @__PURE__ */ o(
988
- m.Content,
989
- {
990
- ref: l,
991
- align: e,
992
- alignOffset: t,
993
- sideOffset: n,
994
- className: r(
995
- "z-50 min-w-[12rem] overflow-hidden rounded-surface border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]: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",
996
- a
997
- ),
998
- ...i
999
- }
1000
- ) })
1001
- );
1002
- Dt.displayName = m.Content.displayName;
1003
- const zt = s.forwardRef(({ className: a, inset: e, ...t }, n) => /* @__PURE__ */ o(
1004
- m.Item,
1005
- {
1006
- ref: n,
1007
- className: r(
1008
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1009
- e && "pl-8",
1010
- a
1011
- ),
1012
- ...t
1013
- }
1014
- ));
1015
- zt.displayName = m.Item.displayName;
1016
- const Mt = s.forwardRef(({ className: a, children: e, checked: t, ...n }, i) => /* @__PURE__ */ d(
1017
- m.CheckboxItem,
1018
- {
1019
- ref: i,
1020
- className: r(
1021
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1022
- a
1023
- ),
1024
- checked: t,
1025
- ...n,
1026
- children: [
1027
- /* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(m.ItemIndicator, { children: /* @__PURE__ */ o(re, { className: "size-4" }) }) }),
1028
- e
1029
- ]
1030
- }
1031
- ));
1032
- Mt.displayName = m.CheckboxItem.displayName;
1033
- const _t = s.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__ */ d(
1034
- m.RadioItem,
1035
- {
1036
- ref: n,
1037
- className: r(
1038
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1039
- a
1040
- ),
1041
- ...t,
1042
- children: [
1043
- /* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(m.ItemIndicator, { children: /* @__PURE__ */ o(Z, { className: "h-2 w-2 fill-current" }) }) }),
1044
- e
1045
- ]
1046
- }
1047
- ));
1048
- _t.displayName = m.RadioItem.displayName;
1049
- const Lt = s.forwardRef(({ className: a, inset: e, ...t }, n) => /* @__PURE__ */ o(m.Label, { ref: n, className: r("px-2 py-1.5 text-sm font-semibold", e && "pl-8", a), ...t }));
1050
- Lt.displayName = m.Label.displayName;
1051
- const jt = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(m.Separator, { ref: t, className: r("-mx-1 my-1 h-px bg-muted", a), ...e }));
1052
- jt.displayName = m.Separator.displayName;
1053
- const At = ({ className: a, ...e }) => /* @__PURE__ */ o("span", { className: r("ml-auto text-xs tracking-widest text-muted-foreground", a), ...e });
1054
- At.displayname = "MenubarShortcut";
1055
- const Ft = s.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__ */ d(h.Root, { ref: n, className: r("relative z-10 flex max-w-max flex-1 items-center justify-center", a), ...t, children: [
1056
- e,
1057
- /* @__PURE__ */ o(ve, {})
1058
- ] }));
1059
- Ft.displayName = h.Root.displayName;
1060
- const Gt = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(h.List, { ref: t, className: r("group flex flex-1 list-none items-center justify-center space-x-1", a), ...e }));
1061
- Gt.displayName = h.List.displayName;
1062
- const br = h.Item, Ot = B(
1063
- "group inline-flex h-10 w-max items-center justify-center rounded-control bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"
1064
- ), Bt = s.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__ */ d(h.Trigger, { ref: n, className: r(Ot(), "group", a), ...t, children: [
1065
- e,
1066
- " ",
1067
- /* @__PURE__ */ o(te, { className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180", "aria-hidden": "true" })
1068
- ] }));
1069
- Bt.displayName = h.Trigger.displayName;
1070
- const Ht = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
1071
- h.Content,
1072
- {
1073
- ref: t,
1074
- className: r(
1075
- "left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",
1076
- a
1077
- ),
1078
- ...e
1079
- }
1080
- ));
1081
- Ht.displayName = h.Content.displayName;
1082
- const Nr = h.Link, ve = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { className: r("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ o(
1083
- h.Viewport,
1084
- {
1085
- className: r(
1086
- "origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-surface border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",
1087
- a
1088
- ),
1089
- ref: t,
1090
- ...e
1091
- }
1092
- ) }));
1093
- ve.displayName = h.Viewport.displayName;
1094
- const $t = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
1095
- h.Indicator,
1096
- {
1097
- ref: t,
1098
- className: r(
1099
- "top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",
1100
- a
1101
- ),
1102
- ...e,
1103
- children: /* @__PURE__ */ o("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
1104
- }
1105
- ));
1106
- $t.displayName = h.Indicator.displayName;
1107
- const Et = ({ className: a, ...e }) => /* @__PURE__ */ o("nav", { role: "navigation", "aria-label": "pagination", className: r("mx-auto flex w-full justify-center", a), ...e });
1108
- Et.displayName = "Pagination";
1109
- const Vt = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o("ul", { ref: t, className: r("flex flex-row items-center gap-1", a), ...e }));
1110
- Vt.displayName = "PaginationContent";
1111
- const Kt = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o("li", { ref: t, className: r("", a), ...e }));
1112
- Kt.displayName = "PaginationItem";
1113
- const ae = ({ className: a, isActive: e, size: t = "icon", ...n }) => /* @__PURE__ */ o(
1114
- "a",
1115
- {
1116
- "aria-current": e ? "page" : void 0,
1117
- className: r(
1118
- M({
1119
- variant: e ? "outline" : "ghost",
1120
- size: t
1121
- }),
1122
- a
1123
- ),
1124
- ...n
1125
- }
1126
- );
1127
- ae.displayName = "PaginationLink";
1128
- const qt = ({ className: a, label: e = "Previous", ...t }) => /* @__PURE__ */ d(ae, { "aria-label": "Go to previous page", size: "default", className: r("gap-1 pl-2.5", a), ...t, children: [
1129
- /* @__PURE__ */ o(je, { className: "size-4" }),
1130
- /* @__PURE__ */ o("span", { children: e })
1131
- ] });
1132
- qt.displayName = "PaginationPrevious";
1133
- const Xt = ({ className: a, label: e = "Next", ...t }) => /* @__PURE__ */ d(ae, { "aria-label": "Go to next page", size: "default", className: r("gap-1 pr-2.5", a), ...t, children: [
1134
- /* @__PURE__ */ o("span", { children: e }),
1135
- /* @__PURE__ */ o(se, { className: "size-4" })
1136
- ] });
1137
- Xt.displayName = "PaginationNext";
1138
- const Wt = ({ className: a, ...e }) => /* @__PURE__ */ d("span", { "aria-hidden": !0, className: r("flex h-9 w-9 items-center justify-center", a), ...e, children: [
1139
- /* @__PURE__ */ o(Le, { className: "size-4" }),
1140
- /* @__PURE__ */ o("span", { className: "sr-only", children: "More pages" })
1141
- ] });
1142
- Wt.displayName = "PaginationEllipsis";
1143
- const xr = G.Root, hr = G.Trigger, Jt = s.forwardRef(
1144
- ({ className: a, align: e = "center", sideOffset: t = 4, ...n }, i) => /* @__PURE__ */ o(G.Portal, { children: /* @__PURE__ */ o(
1145
- G.Content,
1146
- {
1147
- ref: i,
1148
- align: e,
1149
- sideOffset: t,
1150
- className: r(
1151
- "z-[100] w-72 rounded-surface border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]: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",
1152
- a
1153
- ),
1154
- ...n
1155
- }
1156
- ) })
1157
- );
1158
- Jt.displayName = G.Content.displayName;
1159
- const Qt = s.forwardRef(
1160
- ({ className: a, value: e, indeterminate: t = !1, ...n }, i) => /* @__PURE__ */ o(Q.Root, { ref: i, className: r("relative h-4 w-full overflow-hidden rounded-full bg-secondary", a), ...n, children: /* @__PURE__ */ o(
1161
- Q.Indicator,
1162
- {
1163
- className: r("h-full w-full flex-1 bg-primary transition-all", t && "animate-progress origin-left"),
1164
- style: t ? void 0 : { transform: `translateX(-${(100 - (e ?? 0)).toString()}%)` }
1165
- }
1166
- ) })
1167
- );
1168
- Qt.displayName = Q.Root.displayName;
1169
- const Ut = s.forwardRef(
1170
- ({ className: a, ...e }, t) => /* @__PURE__ */ o(O.Root, { className: r("grid gap-2", a), ...e, ref: t })
1171
- );
1172
- Ut.displayName = O.Root.displayName;
1173
- const Yt = s.forwardRef(
1174
- ({ className: a, ...e }, t) => /* @__PURE__ */ o(
1175
- O.Item,
1176
- {
1177
- ref: t,
1178
- className: r(
1179
- "aspect-square size-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
1180
- a
1181
- ),
1182
- ...e,
1183
- children: /* @__PURE__ */ o(O.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ o(Z, { className: "h-2.5 w-2.5 fill-current text-current" }) })
1184
- }
1185
- )
1186
- );
1187
- Yt.displayName = O.Item.displayName;
1188
- const Zt = s.forwardRef(
1189
- ({ className: a, children: e, ...t }, n) => /* @__PURE__ */ d(S.Root, { ref: n, className: r("relative overflow-hidden", a), ...t, children: [
1190
- /* @__PURE__ */ o(S.Viewport, { className: "h-full w-full rounded-[inherit]", children: e }),
1191
- /* @__PURE__ */ o(we, {}),
1192
- /* @__PURE__ */ o(S.Corner, {})
1193
- ] })
1194
- );
1195
- Zt.displayName = S.Root.displayName;
1196
- const we = s.forwardRef(({ className: a, orientation: e = "vertical", ...t }, n) => /* @__PURE__ */ o(
1197
- S.ScrollAreaScrollbar,
1198
- {
1199
- ref: n,
1200
- orientation: e,
1201
- className: r(
1202
- "flex touch-none select-none transition-colors",
1203
- e === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
1204
- e === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
1205
- a
1206
- ),
1207
- ...t,
1208
- children: /* @__PURE__ */ o(S.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
1209
- }
1210
- ));
1211
- we.displayName = S.ScrollAreaScrollbar.displayName;
1212
- const eo = s.forwardRef(
1213
- ({ className: a, orientation: e = "horizontal", decorative: t = !0, ...n }, i) => /* @__PURE__ */ o(
1214
- de.Root,
1215
- {
1216
- ref: i,
1217
- decorative: t,
1218
- orientation: e,
1219
- className: r("shrink-0 bg-border", e === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", a),
1220
- ...n
1221
- }
1222
- )
1223
- );
1224
- eo.displayName = de.Root.displayName;
1225
- const ao = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { className: "relative w-full max-w-full overflow-auto", children: /* @__PURE__ */ o("table", { ref: t, className: r("w-full caption-bottom text-sm", a), ...e }) }));
1226
- ao.displayName = "SimpleTable";
1227
- const to = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o("thead", { ref: t, className: r("[&_tr]:border-b", a), ...e }));
1228
- to.displayName = "SimpleTableHeader";
1229
- const oo = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o("tbody", { ref: t, className: r("[&_tr:last-child]:border-0", a), ...e }));
1230
- oo.displayName = "SimpleTableBody";
1231
- const ro = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o("tfoot", { ref: t, className: r("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", a), ...e }));
1232
- ro.displayName = "SimpleTableFooter";
1233
- const so = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o("tr", { ref: t, className: r("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted", a), ...e }));
1234
- so.displayName = "SimpleTableRow";
1235
- const no = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o("th", { ref: t, className: r("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0", a), ...e }));
1236
- no.displayName = "SimpleTableHead";
1237
- const io = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o("td", { ref: t, className: r("p-4 align-middle [&:has([role=checkbox])]:pr-0", a), ...e }));
1238
- io.displayName = "SimpleTableCell";
1239
- const lo = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o("caption", { ref: t, className: r("mt-4 text-sm text-muted-foreground", a), ...e }));
1240
- lo.displayName = "SimpleTableCaption";
1241
- const co = s.forwardRef(
1242
- ({ className: a, ...e }, t) => /* @__PURE__ */ d(F.Root, { ref: t, className: r("relative flex w-full touch-none select-none items-center", a), ...e, children: [
1243
- /* @__PURE__ */ o(F.Track, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary", children: /* @__PURE__ */ o(F.Range, { className: "absolute h-full bg-primary" }) }),
1244
- /* @__PURE__ */ o(F.Thumb, { className: "block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" })
1245
- ] })
1246
- );
1247
- co.displayName = F.Root.displayName;
1248
- const mo = s.forwardRef(
1249
- ({ className: a, ...e }, t) => /* @__PURE__ */ o(
1250
- U.Root,
1251
- {
1252
- className: r(
1253
- "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
1254
- a
1255
- ),
1256
- ...e,
1257
- ref: t,
1258
- children: /* @__PURE__ */ o(
1259
- U.Thumb,
1260
- {
1261
- className: r(
1262
- "pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
1263
- )
1264
- }
1265
- )
1266
- }
1267
- )
1268
- );
1269
- mo.displayName = U.Root.displayName;
1270
- const yr = D.Root, uo = s.forwardRef(
1271
- ({ className: a, ...e }, t) => /* @__PURE__ */ o(
1272
- D.List,
1273
- {
1274
- ref: t,
1275
- className: r("inline-flex h-10 items-center justify-start gap-6 border-b border-border bg-transparent p-0 text-muted-foreground w-full", a),
1276
- ...e
1277
- }
1278
- )
1279
- );
1280
- uo.displayName = D.List.displayName;
1281
- const fo = s.forwardRef(
1282
- ({ className: a, ...e }, t) => /* @__PURE__ */ o(
1283
- D.Trigger,
1284
- {
1285
- ref: t,
1286
- className: r(
1287
- "relative inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-none border-b-2 border-transparent bg-transparent px-1 pb-2.5 pt-2 -mb-px text-sm font-medium text-muted-foreground ring-offset-background cursor-pointer transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-primary data-[state=active]:text-foreground data-[state=active]:shadow-none [&_svg]:h-4 [&_svg]:w-4",
1288
- a
1289
- ),
1290
- ...e
1291
- }
1292
- )
1293
- );
1294
- fo.displayName = D.Trigger.displayName;
1295
- const po = s.forwardRef(
1296
- ({ className: a, ...e }, t) => /* @__PURE__ */ o(
1297
- D.Content,
1298
- {
1299
- ref: t,
1300
- className: r(
1301
- "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
1302
- a
1303
- ),
1304
- ...e
1305
- }
1306
- )
1307
- );
1308
- po.displayName = D.Content.displayName;
1309
- const go = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
1310
- "textarea",
1311
- {
1312
- className: r(
1313
- "flex min-h-[80px] w-full rounded-control border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
1314
- a
1315
- ),
1316
- ref: t,
1317
- ...e
1318
- }
1319
- ));
1320
- go.displayName = "Textarea";
1321
- const vr = v.Provider, bo = s.forwardRef(
1322
- ({ className: a, ...e }, t) => /* @__PURE__ */ o(
1323
- v.Viewport,
1324
- {
1325
- ref: t,
1326
- className: r(
1327
- "fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",
1328
- a
1329
- ),
1330
- ...e
1331
- }
1332
- )
1333
- );
1334
- bo.displayName = v.Viewport.displayName;
1335
- const No = B(
1336
- "group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-surface border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
1337
- {
1338
- variants: {
1339
- variant: {
1340
- default: "border bg-background text-foreground",
1341
- destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
1342
- }
1343
- },
1344
- defaultVariants: {
1345
- variant: "default"
1346
- }
1347
- }
1348
- ), xo = s.forwardRef(({ className: a, variant: e, ...t }, n) => /* @__PURE__ */ o(v.Root, { ref: n, className: r(No({ variant: e }), a), ...t }));
1349
- xo.displayName = v.Root.displayName;
1350
- const ho = s.forwardRef(
1351
- ({ className: a, ...e }, t) => /* @__PURE__ */ o(
1352
- v.Action,
1353
- {
1354
- ref: t,
1355
- className: r(
1356
- "inline-flex h-8 shrink-0 items-center justify-center rounded-control border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",
1357
- a
1358
- ),
1359
- ...e
1360
- }
1361
- )
1362
- );
1363
- ho.displayName = v.Action.displayName;
1364
- const yo = s.forwardRef(
1365
- ({ className: a, ...e }, t) => /* @__PURE__ */ o(
1366
- v.Close,
1367
- {
1368
- ref: t,
1369
- className: r(
1370
- "absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",
1371
- a
1372
- ),
1373
- "toast-close": "",
1374
- ...e,
1375
- children: /* @__PURE__ */ o(Ae, { className: "size-4" })
1376
- }
1377
- )
1378
- );
1379
- yo.displayName = v.Close.displayName;
1380
- const vo = s.forwardRef(
1381
- ({ className: a, ...e }, t) => /* @__PURE__ */ o(v.Title, { ref: t, className: r("text-sm font-semibold", a), ...e })
1382
- );
1383
- vo.displayName = v.Title.displayName;
1384
- const wo = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(v.Description, { ref: t, className: r("text-sm opacity-90", a), ...e }));
1385
- wo.displayName = v.Description.displayName;
1386
- const Ce = B(
1387
- "inline-flex items-center justify-center rounded-control text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
1388
- {
1389
- variants: {
1390
- variant: {
1391
- default: "bg-transparent",
1392
- outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"
1393
- },
1394
- size: {
1395
- default: "h-10 px-3",
1396
- sm: "h-9 px-2.5",
1397
- lg: "h-11 px-5"
1398
- }
1399
- },
1400
- defaultVariants: {
1401
- variant: "default",
1402
- size: "default"
1403
- }
1404
- }
1405
- ), Co = s.forwardRef(({ className: a, variant: e, size: t, ...n }, i) => /* @__PURE__ */ o(le.Root, { ref: i, className: r(Ce({ variant: e, size: t, className: a })), ...n }));
1406
- Co.displayName = le.Root.displayName;
1407
- const Re = s.createContext({
1408
- size: "default",
1409
- variant: "default"
1410
- }), Ro = s.forwardRef(({ className: a, variant: e, size: t, children: n, ...i }, l) => /* @__PURE__ */ o(E.Root, { ref: l, className: r("flex items-center justify-center gap-1", a), ...i, children: /* @__PURE__ */ o(Re.Provider, { value: { variant: e, size: t }, children: n }) }));
1411
- Ro.displayName = E.Root.displayName;
1412
- const ko = s.forwardRef(({ className: a, children: e, variant: t, size: n, ...i }, l) => {
1413
- const u = s.useContext(Re);
1414
- return /* @__PURE__ */ o(
1415
- E.Item,
1416
- {
1417
- ref: l,
1418
- className: r(
1419
- Ce({
1420
- variant: u.variant || t,
1421
- size: u.size || n
1422
- }),
1423
- a
1424
- ),
1425
- ...i,
1426
- children: e
1427
- }
1428
- );
1429
- });
1430
- ko.displayName = E.Item.displayName;
1431
- export {
1432
- Da as $,
1433
- Go as A,
1434
- Ho as B,
1435
- pa as C,
1436
- za as D,
1437
- ga as E,
1438
- fa as F,
1439
- ba as G,
1440
- Na as H,
1441
- ha as I,
1442
- Ke as J,
1443
- Je as K,
1444
- We as L,
1445
- Qe as M,
1446
- qe as N,
1447
- Xe as O,
1448
- Qt as P,
1449
- ya as Q,
1450
- va as R,
1451
- wa as S,
1452
- Ra as T,
1453
- Ca as U,
1454
- Ia as V,
1455
- Eo as W,
1456
- Pa as X,
1457
- Ta as Y,
1458
- $o as Z,
1459
- Sa as _,
1460
- Ko as a,
1461
- xe as a$,
1462
- be as a0,
1463
- qo as a1,
1464
- Oa as a2,
1465
- Ba as a3,
1466
- Fa as a4,
1467
- $a as a5,
1468
- Ga as a6,
1469
- Ha as a7,
1470
- Ea as a8,
1471
- Xo as a9,
1472
- dt as aA,
1473
- or as aB,
1474
- lt as aC,
1475
- ut as aD,
1476
- rr as aE,
1477
- nr as aF,
1478
- mt as aG,
1479
- ft as aH,
1480
- pt as aI,
1481
- sr as aJ,
1482
- it as aK,
1483
- nt as aL,
1484
- tr as aM,
1485
- ir as aN,
1486
- xt as aO,
1487
- ht as aP,
1488
- dr as aQ,
1489
- bt as aR,
1490
- Nt as aS,
1491
- yt as aT,
1492
- lr as aU,
1493
- vt as aV,
1494
- cr as aW,
1495
- wt as aX,
1496
- Ct as aY,
1497
- kt as aZ,
1498
- Rt as a_,
1499
- Wa as aa,
1500
- qa as ab,
1501
- Jo as ac,
1502
- Xa as ad,
1503
- Qa as ae,
1504
- Qo as af,
1505
- Yo as ag,
1506
- Ja as ah,
1507
- Ua as ai,
1508
- Ya as aj,
1509
- Uo as ak,
1510
- Ka as al,
1511
- Va as am,
1512
- Wo as an,
1513
- Za as ao,
1514
- er as ap,
1515
- at as aq,
1516
- st as ar,
1517
- ot as as,
1518
- tt as at,
1519
- Ne as au,
1520
- et as av,
1521
- rt as aw,
1522
- Zo as ax,
1523
- ar as ay,
1524
- ct as az,
1525
- ge as b,
1526
- ko as b$,
1527
- It as b0,
1528
- Mt as b1,
1529
- Dt as b2,
1530
- ur as b3,
1531
- zt as b4,
1532
- Lt as b5,
1533
- mr as b6,
1534
- fr as b7,
1535
- gr as b8,
1536
- _t as b9,
1537
- Zt as bA,
1538
- we as bB,
1539
- eo as bC,
1540
- ao as bD,
1541
- oo as bE,
1542
- lo as bF,
1543
- io as bG,
1544
- ro as bH,
1545
- no as bI,
1546
- to as bJ,
1547
- so as bK,
1548
- co as bL,
1549
- mo as bM,
1550
- yr as bN,
1551
- po as bO,
1552
- uo as bP,
1553
- fo as bQ,
1554
- go as bR,
1555
- xo as bS,
1556
- ho as bT,
1557
- yo as bU,
1558
- wo as bV,
1559
- vr as bW,
1560
- vo as bX,
1561
- bo as bY,
1562
- Co as bZ,
1563
- Ro as b_,
1564
- jt as ba,
1565
- At as bb,
1566
- pr as bc,
1567
- Pt as bd,
1568
- St as be,
1569
- Tt as bf,
1570
- Ft as bg,
1571
- Ht as bh,
1572
- $t as bi,
1573
- br as bj,
1574
- Nr as bk,
1575
- Gt as bl,
1576
- Bt as bm,
1577
- ve as bn,
1578
- Et as bo,
1579
- Vt as bp,
1580
- Wt as bq,
1581
- Kt as br,
1582
- ae as bs,
1583
- Xt as bt,
1584
- qt as bu,
1585
- xr as bv,
1586
- Jt as bw,
1587
- hr as bx,
1588
- Ut as by,
1589
- Yt as bz,
1590
- Aa as c,
1591
- ma as c0,
1592
- Ot as c1,
1593
- Ce as c2,
1594
- K as c3,
1595
- La as d,
1596
- _a as e,
1597
- pe as f,
1598
- Ma as g,
1599
- ja as h,
1600
- Vo as i,
1601
- Ze as j,
1602
- Ue as k,
1603
- Ye as l,
1604
- Oo as m,
1605
- na as n,
1606
- ia as o,
1607
- aa as p,
1608
- sa as q,
1609
- oa as r,
1610
- ta as s,
1611
- ra as t,
1612
- Bo as u,
1613
- da as v,
1614
- ca as w,
1615
- la as x,
1616
- ua as y,
1617
- xa as z
1618
- };