@clidey/ux 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +21 -1
- package/dist/index.js +1558 -788
- package/dist/styles.css +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { createContext as
|
|
4
|
-
import { Slot as
|
|
5
|
-
import { cva as
|
|
6
|
-
import { clsx as
|
|
7
|
-
import { twMerge as
|
|
8
|
-
import * as
|
|
9
|
-
import { CheckIcon as
|
|
10
|
-
import { Drawer as
|
|
11
|
-
import * as
|
|
12
|
-
import * as
|
|
13
|
-
import * as
|
|
14
|
-
import { useTheme as
|
|
15
|
-
import { Toaster as
|
|
16
|
-
import { toast as
|
|
17
|
-
import * as
|
|
18
|
-
import * as
|
|
19
|
-
import * as
|
|
20
|
-
import * as
|
|
21
|
-
import * as
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
import { jsx as r, jsxs as h, Fragment as De } from "react/jsx-runtime";
|
|
2
|
+
import * as l from "react";
|
|
3
|
+
import { createContext as Ie, useState as Le, useEffect as Oe, useContext as Be } from "react";
|
|
4
|
+
import { Slot as E, createSlot as He } from "@radix-ui/react-slot";
|
|
5
|
+
import { cva as oe } from "class-variance-authority";
|
|
6
|
+
import { clsx as We } from "clsx";
|
|
7
|
+
import { twMerge as Ue } from "tailwind-merge";
|
|
8
|
+
import * as S from "@radix-ui/react-context-menu";
|
|
9
|
+
import { CheckIcon as ne, CircleIcon as me, ChevronRightIcon as ie, MoreHorizontalIcon as Ve, ChevronLeftIcon as je, ChevronRight as Fe, ChevronDownIcon as pe, ChevronUpIcon as Xe, XIcon as Ye, PanelLeftIcon as $e, Sun as Ge, Moon as Ke } from "lucide-react";
|
|
10
|
+
import { Drawer as M } from "vaul";
|
|
11
|
+
import * as y from "@radix-ui/react-dropdown-menu";
|
|
12
|
+
import * as qe from "@radix-ui/react-label";
|
|
13
|
+
import * as $ from "@radix-ui/react-popover";
|
|
14
|
+
import { useTheme as Je } from "next-themes";
|
|
15
|
+
import { Toaster as Qe } from "sonner";
|
|
16
|
+
import { toast as lo } from "sonner";
|
|
17
|
+
import * as q from "@radix-ui/react-tabs";
|
|
18
|
+
import * as O from "@radix-ui/react-tooltip";
|
|
19
|
+
import * as N from "@radix-ui/react-select";
|
|
20
|
+
import * as Ze from "@radix-ui/react-separator";
|
|
21
|
+
import * as k from "@radix-ui/react-dialog";
|
|
22
|
+
import "react-dom";
|
|
23
|
+
function i(...e) {
|
|
24
|
+
return Ue(We(e));
|
|
25
|
+
}
|
|
26
|
+
const et = oe(
|
|
26
27
|
"inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
|
|
27
28
|
{
|
|
28
29
|
variants: {
|
|
@@ -38,22 +39,22 @@ const ue = P(
|
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
);
|
|
41
|
-
function
|
|
42
|
+
function mr({
|
|
42
43
|
className: e,
|
|
43
44
|
variant: t,
|
|
44
|
-
asChild:
|
|
45
|
-
...
|
|
45
|
+
asChild: a = !1,
|
|
46
|
+
...o
|
|
46
47
|
}) {
|
|
47
|
-
return /* @__PURE__ */
|
|
48
|
-
|
|
48
|
+
return /* @__PURE__ */ r(
|
|
49
|
+
a ? E : "span",
|
|
49
50
|
{
|
|
50
51
|
"data-slot": "badge",
|
|
51
|
-
className:
|
|
52
|
-
...
|
|
52
|
+
className: i(et({ variant: t }), e),
|
|
53
|
+
...o
|
|
53
54
|
}
|
|
54
55
|
);
|
|
55
56
|
}
|
|
56
|
-
const
|
|
57
|
+
const be = oe(
|
|
57
58
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
58
59
|
{
|
|
59
60
|
variants: {
|
|
@@ -78,28 +79,28 @@ const G = P(
|
|
|
78
79
|
}
|
|
79
80
|
}
|
|
80
81
|
);
|
|
81
|
-
function
|
|
82
|
+
function ge({
|
|
82
83
|
className: e,
|
|
83
84
|
variant: t,
|
|
84
|
-
size:
|
|
85
|
-
asChild:
|
|
86
|
-
...
|
|
85
|
+
size: a,
|
|
86
|
+
asChild: o = !1,
|
|
87
|
+
...n
|
|
87
88
|
}) {
|
|
88
|
-
return /* @__PURE__ */
|
|
89
|
-
|
|
89
|
+
return /* @__PURE__ */ r(
|
|
90
|
+
o ? E : "button",
|
|
90
91
|
{
|
|
91
92
|
"data-slot": "button",
|
|
92
|
-
className:
|
|
93
|
-
...
|
|
93
|
+
className: i(be({ variant: t, size: a, className: e })),
|
|
94
|
+
...n
|
|
94
95
|
}
|
|
95
96
|
);
|
|
96
97
|
}
|
|
97
|
-
function
|
|
98
|
-
return /* @__PURE__ */
|
|
98
|
+
function pr({ className: e, ...t }) {
|
|
99
|
+
return /* @__PURE__ */ r(
|
|
99
100
|
"div",
|
|
100
101
|
{
|
|
101
102
|
"data-slot": "card",
|
|
102
|
-
className:
|
|
103
|
+
className: i(
|
|
103
104
|
"bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
|
|
104
105
|
e
|
|
105
106
|
),
|
|
@@ -107,12 +108,12 @@ function Qe({ className: e, ...t }) {
|
|
|
107
108
|
}
|
|
108
109
|
);
|
|
109
110
|
}
|
|
110
|
-
function
|
|
111
|
-
return /* @__PURE__ */
|
|
111
|
+
function br({ className: e, ...t }) {
|
|
112
|
+
return /* @__PURE__ */ r(
|
|
112
113
|
"div",
|
|
113
114
|
{
|
|
114
115
|
"data-slot": "card-header",
|
|
115
|
-
className:
|
|
116
|
+
className: i(
|
|
116
117
|
"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
|
|
117
118
|
e
|
|
118
119
|
),
|
|
@@ -120,104 +121,104 @@ function Ze({ className: e, ...t }) {
|
|
|
120
121
|
}
|
|
121
122
|
);
|
|
122
123
|
}
|
|
123
|
-
function
|
|
124
|
-
return /* @__PURE__ */
|
|
124
|
+
function gr({ className: e, ...t }) {
|
|
125
|
+
return /* @__PURE__ */ r(
|
|
125
126
|
"div",
|
|
126
127
|
{
|
|
127
128
|
"data-slot": "card-title",
|
|
128
|
-
className:
|
|
129
|
+
className: i("leading-none font-semibold", e),
|
|
129
130
|
...t
|
|
130
131
|
}
|
|
131
132
|
);
|
|
132
133
|
}
|
|
133
|
-
function
|
|
134
|
-
return /* @__PURE__ */
|
|
134
|
+
function hr({ className: e, ...t }) {
|
|
135
|
+
return /* @__PURE__ */ r(
|
|
135
136
|
"div",
|
|
136
137
|
{
|
|
137
138
|
"data-slot": "card-description",
|
|
138
|
-
className:
|
|
139
|
+
className: i("text-muted-foreground text-sm", e),
|
|
139
140
|
...t
|
|
140
141
|
}
|
|
141
142
|
);
|
|
142
143
|
}
|
|
143
|
-
function
|
|
144
|
-
return /* @__PURE__ */
|
|
144
|
+
function vr({ className: e, ...t }) {
|
|
145
|
+
return /* @__PURE__ */ r(
|
|
145
146
|
"div",
|
|
146
147
|
{
|
|
147
148
|
"data-slot": "card-content",
|
|
148
|
-
className:
|
|
149
|
+
className: i("px-6", e),
|
|
149
150
|
...t
|
|
150
151
|
}
|
|
151
152
|
);
|
|
152
153
|
}
|
|
153
|
-
function
|
|
154
|
-
return /* @__PURE__ */
|
|
154
|
+
function xr({ className: e, ...t }) {
|
|
155
|
+
return /* @__PURE__ */ r(
|
|
155
156
|
"div",
|
|
156
157
|
{
|
|
157
158
|
"data-slot": "card-footer",
|
|
158
|
-
className:
|
|
159
|
+
className: i("flex items-center px-6 [.border-t]:pt-6", e),
|
|
159
160
|
...t
|
|
160
161
|
}
|
|
161
162
|
);
|
|
162
163
|
}
|
|
163
|
-
function
|
|
164
|
+
function wr({
|
|
164
165
|
...e
|
|
165
166
|
}) {
|
|
166
|
-
return /* @__PURE__ */
|
|
167
|
+
return /* @__PURE__ */ r(S.Root, { "data-slot": "context-menu", ...e });
|
|
167
168
|
}
|
|
168
|
-
function
|
|
169
|
+
function Sr({
|
|
169
170
|
...e
|
|
170
171
|
}) {
|
|
171
|
-
return /* @__PURE__ */
|
|
172
|
+
return /* @__PURE__ */ r(S.Trigger, { "data-slot": "context-menu-trigger", ...e });
|
|
172
173
|
}
|
|
173
|
-
function
|
|
174
|
+
function yr({
|
|
174
175
|
...e
|
|
175
176
|
}) {
|
|
176
|
-
return /* @__PURE__ */
|
|
177
|
+
return /* @__PURE__ */ r(S.Sub, { "data-slot": "context-menu-sub", ...e });
|
|
177
178
|
}
|
|
178
|
-
function
|
|
179
|
+
function Nr({
|
|
179
180
|
...e
|
|
180
181
|
}) {
|
|
181
|
-
return /* @__PURE__ */
|
|
182
|
-
|
|
182
|
+
return /* @__PURE__ */ r(
|
|
183
|
+
S.RadioGroup,
|
|
183
184
|
{
|
|
184
185
|
"data-slot": "context-menu-radio-group",
|
|
185
186
|
...e
|
|
186
187
|
}
|
|
187
188
|
);
|
|
188
189
|
}
|
|
189
|
-
function
|
|
190
|
+
function Cr({
|
|
190
191
|
className: e,
|
|
191
192
|
inset: t,
|
|
192
|
-
children:
|
|
193
|
-
...
|
|
193
|
+
children: a,
|
|
194
|
+
...o
|
|
194
195
|
}) {
|
|
195
|
-
return /* @__PURE__ */
|
|
196
|
-
|
|
196
|
+
return /* @__PURE__ */ h(
|
|
197
|
+
S.SubTrigger,
|
|
197
198
|
{
|
|
198
199
|
"data-slot": "context-menu-sub-trigger",
|
|
199
200
|
"data-inset": t,
|
|
200
|
-
className:
|
|
201
|
+
className: i(
|
|
201
202
|
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
202
203
|
e
|
|
203
204
|
),
|
|
204
|
-
...
|
|
205
|
+
...o,
|
|
205
206
|
children: [
|
|
206
|
-
|
|
207
|
-
/* @__PURE__ */
|
|
207
|
+
a,
|
|
208
|
+
/* @__PURE__ */ r(ie, { className: "ml-auto" })
|
|
208
209
|
]
|
|
209
210
|
}
|
|
210
211
|
);
|
|
211
212
|
}
|
|
212
|
-
function
|
|
213
|
+
function Tr({
|
|
213
214
|
className: e,
|
|
214
215
|
...t
|
|
215
216
|
}) {
|
|
216
|
-
return /* @__PURE__ */
|
|
217
|
-
|
|
217
|
+
return /* @__PURE__ */ r(
|
|
218
|
+
S.SubContent,
|
|
218
219
|
{
|
|
219
220
|
"data-slot": "context-menu-sub-content",
|
|
220
|
-
className:
|
|
221
|
+
className: i(
|
|
221
222
|
"bg-popover 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 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
222
223
|
e
|
|
223
224
|
),
|
|
@@ -225,15 +226,15 @@ function lt({
|
|
|
225
226
|
}
|
|
226
227
|
);
|
|
227
228
|
}
|
|
228
|
-
function
|
|
229
|
+
function Pr({
|
|
229
230
|
className: e,
|
|
230
231
|
...t
|
|
231
232
|
}) {
|
|
232
|
-
return /* @__PURE__ */
|
|
233
|
-
|
|
233
|
+
return /* @__PURE__ */ r(S.Portal, { children: /* @__PURE__ */ r(
|
|
234
|
+
S.Content,
|
|
234
235
|
{
|
|
235
236
|
"data-slot": "context-menu-content",
|
|
236
|
-
className:
|
|
237
|
+
className: i(
|
|
237
238
|
"bg-popover 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 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
238
239
|
e
|
|
239
240
|
),
|
|
@@ -241,110 +242,110 @@ function ct({
|
|
|
241
242
|
}
|
|
242
243
|
) });
|
|
243
244
|
}
|
|
244
|
-
function
|
|
245
|
+
function zr({
|
|
245
246
|
className: e,
|
|
246
247
|
inset: t,
|
|
247
|
-
variant:
|
|
248
|
-
...
|
|
248
|
+
variant: a = "default",
|
|
249
|
+
...o
|
|
249
250
|
}) {
|
|
250
|
-
return /* @__PURE__ */
|
|
251
|
-
|
|
251
|
+
return /* @__PURE__ */ r(
|
|
252
|
+
S.Item,
|
|
252
253
|
{
|
|
253
254
|
"data-slot": "context-menu-item",
|
|
254
255
|
"data-inset": t,
|
|
255
|
-
"data-variant":
|
|
256
|
-
className:
|
|
256
|
+
"data-variant": a,
|
|
257
|
+
className: i(
|
|
257
258
|
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
258
259
|
e
|
|
259
260
|
),
|
|
260
|
-
...
|
|
261
|
+
...o
|
|
261
262
|
}
|
|
262
263
|
);
|
|
263
264
|
}
|
|
264
|
-
function
|
|
265
|
+
function _r({
|
|
265
266
|
className: e,
|
|
266
267
|
children: t,
|
|
267
|
-
checked:
|
|
268
|
-
...
|
|
268
|
+
checked: a,
|
|
269
|
+
...o
|
|
269
270
|
}) {
|
|
270
|
-
return /* @__PURE__ */
|
|
271
|
-
|
|
271
|
+
return /* @__PURE__ */ h(
|
|
272
|
+
S.CheckboxItem,
|
|
272
273
|
{
|
|
273
274
|
"data-slot": "context-menu-checkbox-item",
|
|
274
|
-
className:
|
|
275
|
+
className: i(
|
|
275
276
|
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
276
277
|
e
|
|
277
278
|
),
|
|
278
|
-
checked:
|
|
279
|
-
...
|
|
279
|
+
checked: a,
|
|
280
|
+
...o,
|
|
280
281
|
children: [
|
|
281
|
-
/* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ r("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ r(S.ItemIndicator, { children: /* @__PURE__ */ r(ne, { className: "size-4" }) }) }),
|
|
282
283
|
t
|
|
283
284
|
]
|
|
284
285
|
}
|
|
285
286
|
);
|
|
286
287
|
}
|
|
287
|
-
function
|
|
288
|
+
function Rr({
|
|
288
289
|
className: e,
|
|
289
290
|
children: t,
|
|
290
|
-
...
|
|
291
|
+
...a
|
|
291
292
|
}) {
|
|
292
|
-
return /* @__PURE__ */
|
|
293
|
-
|
|
293
|
+
return /* @__PURE__ */ h(
|
|
294
|
+
S.RadioItem,
|
|
294
295
|
{
|
|
295
296
|
"data-slot": "context-menu-radio-item",
|
|
296
|
-
className:
|
|
297
|
+
className: i(
|
|
297
298
|
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
298
299
|
e
|
|
299
300
|
),
|
|
300
|
-
...
|
|
301
|
+
...a,
|
|
301
302
|
children: [
|
|
302
|
-
/* @__PURE__ */
|
|
303
|
+
/* @__PURE__ */ r("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ r(S.ItemIndicator, { children: /* @__PURE__ */ r(me, { className: "size-2 fill-current" }) }) }),
|
|
303
304
|
t
|
|
304
305
|
]
|
|
305
306
|
}
|
|
306
307
|
);
|
|
307
308
|
}
|
|
308
|
-
function
|
|
309
|
+
function kr({
|
|
309
310
|
className: e,
|
|
310
311
|
inset: t,
|
|
311
|
-
...
|
|
312
|
+
...a
|
|
312
313
|
}) {
|
|
313
|
-
return /* @__PURE__ */
|
|
314
|
-
|
|
314
|
+
return /* @__PURE__ */ r(
|
|
315
|
+
S.Label,
|
|
315
316
|
{
|
|
316
317
|
"data-slot": "context-menu-label",
|
|
317
318
|
"data-inset": t,
|
|
318
|
-
className:
|
|
319
|
+
className: i(
|
|
319
320
|
"text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
|
|
320
321
|
e
|
|
321
322
|
),
|
|
322
|
-
...
|
|
323
|
+
...a
|
|
323
324
|
}
|
|
324
325
|
);
|
|
325
326
|
}
|
|
326
|
-
function
|
|
327
|
+
function Er({
|
|
327
328
|
className: e,
|
|
328
329
|
...t
|
|
329
330
|
}) {
|
|
330
|
-
return /* @__PURE__ */
|
|
331
|
-
|
|
331
|
+
return /* @__PURE__ */ r(
|
|
332
|
+
S.Separator,
|
|
332
333
|
{
|
|
333
334
|
"data-slot": "context-menu-separator",
|
|
334
|
-
className:
|
|
335
|
+
className: i("bg-border -mx-1 my-1 h-px", e),
|
|
335
336
|
...t
|
|
336
337
|
}
|
|
337
338
|
);
|
|
338
339
|
}
|
|
339
|
-
function
|
|
340
|
+
function Mr({
|
|
340
341
|
className: e,
|
|
341
342
|
...t
|
|
342
343
|
}) {
|
|
343
|
-
return /* @__PURE__ */
|
|
344
|
+
return /* @__PURE__ */ r(
|
|
344
345
|
"span",
|
|
345
346
|
{
|
|
346
347
|
"data-slot": "context-menu-shortcut",
|
|
347
|
-
className:
|
|
348
|
+
className: i(
|
|
348
349
|
"text-muted-foreground ml-auto text-xs tracking-widest",
|
|
349
350
|
e
|
|
350
351
|
),
|
|
@@ -352,35 +353,35 @@ function gt({
|
|
|
352
353
|
}
|
|
353
354
|
);
|
|
354
355
|
}
|
|
355
|
-
function
|
|
356
|
+
function Ar({
|
|
356
357
|
...e
|
|
357
358
|
}) {
|
|
358
|
-
return /* @__PURE__ */
|
|
359
|
+
return /* @__PURE__ */ r(M.Root, { "data-slot": "drawer", ...e });
|
|
359
360
|
}
|
|
360
|
-
function
|
|
361
|
+
function Dr({
|
|
361
362
|
...e
|
|
362
363
|
}) {
|
|
363
|
-
return /* @__PURE__ */
|
|
364
|
+
return /* @__PURE__ */ r(M.Trigger, { "data-slot": "drawer-trigger", ...e });
|
|
364
365
|
}
|
|
365
|
-
function
|
|
366
|
+
function tt({
|
|
366
367
|
...e
|
|
367
368
|
}) {
|
|
368
|
-
return /* @__PURE__ */
|
|
369
|
+
return /* @__PURE__ */ r(M.Portal, { "data-slot": "drawer-portal", ...e });
|
|
369
370
|
}
|
|
370
|
-
function
|
|
371
|
+
function Ir({
|
|
371
372
|
...e
|
|
372
373
|
}) {
|
|
373
|
-
return /* @__PURE__ */
|
|
374
|
+
return /* @__PURE__ */ r(M.Close, { "data-slot": "drawer-close", ...e });
|
|
374
375
|
}
|
|
375
|
-
function
|
|
376
|
+
function rt({
|
|
376
377
|
className: e,
|
|
377
378
|
...t
|
|
378
379
|
}) {
|
|
379
|
-
return /* @__PURE__ */
|
|
380
|
-
|
|
380
|
+
return /* @__PURE__ */ r(
|
|
381
|
+
M.Overlay,
|
|
381
382
|
{
|
|
382
383
|
"data-slot": "drawer-overlay",
|
|
383
|
-
className:
|
|
384
|
+
className: i(
|
|
384
385
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
385
386
|
e
|
|
386
387
|
),
|
|
@@ -388,18 +389,18 @@ function fe({
|
|
|
388
389
|
}
|
|
389
390
|
);
|
|
390
391
|
}
|
|
391
|
-
function
|
|
392
|
+
function Lr({
|
|
392
393
|
className: e,
|
|
393
394
|
children: t,
|
|
394
|
-
...
|
|
395
|
+
...a
|
|
395
396
|
}) {
|
|
396
|
-
return /* @__PURE__ */
|
|
397
|
-
/* @__PURE__ */
|
|
398
|
-
/* @__PURE__ */
|
|
399
|
-
|
|
397
|
+
return /* @__PURE__ */ h(tt, { "data-slot": "drawer-portal", children: [
|
|
398
|
+
/* @__PURE__ */ r(rt, {}),
|
|
399
|
+
/* @__PURE__ */ h(
|
|
400
|
+
M.Content,
|
|
400
401
|
{
|
|
401
402
|
"data-slot": "drawer-content",
|
|
402
|
-
className:
|
|
403
|
+
className: i(
|
|
403
404
|
"group/drawer-content bg-background fixed z-50 flex h-auto flex-col",
|
|
404
405
|
"data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b",
|
|
405
406
|
"data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t",
|
|
@@ -407,21 +408,21 @@ function wt({
|
|
|
407
408
|
"data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",
|
|
408
409
|
e
|
|
409
410
|
),
|
|
410
|
-
...
|
|
411
|
+
...a,
|
|
411
412
|
children: [
|
|
412
|
-
/* @__PURE__ */
|
|
413
|
+
/* @__PURE__ */ r("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
|
|
413
414
|
t
|
|
414
415
|
]
|
|
415
416
|
}
|
|
416
417
|
)
|
|
417
418
|
] });
|
|
418
419
|
}
|
|
419
|
-
function
|
|
420
|
-
return /* @__PURE__ */
|
|
420
|
+
function Or({ className: e, ...t }) {
|
|
421
|
+
return /* @__PURE__ */ r(
|
|
421
422
|
"div",
|
|
422
423
|
{
|
|
423
424
|
"data-slot": "drawer-header",
|
|
424
|
-
className:
|
|
425
|
+
className: i(
|
|
425
426
|
"flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left",
|
|
426
427
|
e
|
|
427
428
|
),
|
|
@@ -429,191 +430,191 @@ function yt({ className: e, ...t }) {
|
|
|
429
430
|
}
|
|
430
431
|
);
|
|
431
432
|
}
|
|
432
|
-
function
|
|
433
|
-
return /* @__PURE__ */
|
|
433
|
+
function Br({ className: e, ...t }) {
|
|
434
|
+
return /* @__PURE__ */ r(
|
|
434
435
|
"div",
|
|
435
436
|
{
|
|
436
437
|
"data-slot": "drawer-footer",
|
|
437
|
-
className:
|
|
438
|
+
className: i("mt-auto flex flex-col gap-2 p-4", e),
|
|
438
439
|
...t
|
|
439
440
|
}
|
|
440
441
|
);
|
|
441
442
|
}
|
|
442
|
-
function
|
|
443
|
+
function Hr({
|
|
443
444
|
className: e,
|
|
444
445
|
...t
|
|
445
446
|
}) {
|
|
446
|
-
return /* @__PURE__ */
|
|
447
|
-
|
|
447
|
+
return /* @__PURE__ */ r(
|
|
448
|
+
M.Title,
|
|
448
449
|
{
|
|
449
450
|
"data-slot": "drawer-title",
|
|
450
|
-
className:
|
|
451
|
+
className: i("text-foreground font-semibold", e),
|
|
451
452
|
...t
|
|
452
453
|
}
|
|
453
454
|
);
|
|
454
455
|
}
|
|
455
|
-
function
|
|
456
|
+
function Wr({
|
|
456
457
|
className: e,
|
|
457
458
|
...t
|
|
458
459
|
}) {
|
|
459
|
-
return /* @__PURE__ */
|
|
460
|
-
|
|
460
|
+
return /* @__PURE__ */ r(
|
|
461
|
+
M.Description,
|
|
461
462
|
{
|
|
462
463
|
"data-slot": "drawer-description",
|
|
463
|
-
className:
|
|
464
|
+
className: i("text-muted-foreground text-sm", e),
|
|
464
465
|
...t
|
|
465
466
|
}
|
|
466
467
|
);
|
|
467
468
|
}
|
|
468
|
-
function
|
|
469
|
+
function at({
|
|
469
470
|
...e
|
|
470
471
|
}) {
|
|
471
|
-
return /* @__PURE__ */
|
|
472
|
+
return /* @__PURE__ */ r(y.Root, { "data-slot": "dropdown-menu", ...e });
|
|
472
473
|
}
|
|
473
|
-
function
|
|
474
|
+
function ot({
|
|
474
475
|
...e
|
|
475
476
|
}) {
|
|
476
|
-
return /* @__PURE__ */
|
|
477
|
-
|
|
477
|
+
return /* @__PURE__ */ r(
|
|
478
|
+
y.Trigger,
|
|
478
479
|
{
|
|
479
480
|
"data-slot": "dropdown-menu-trigger",
|
|
480
481
|
...e
|
|
481
482
|
}
|
|
482
483
|
);
|
|
483
484
|
}
|
|
484
|
-
function
|
|
485
|
+
function nt({
|
|
485
486
|
className: e,
|
|
486
487
|
sideOffset: t = 4,
|
|
487
|
-
...
|
|
488
|
+
...a
|
|
488
489
|
}) {
|
|
489
|
-
return /* @__PURE__ */
|
|
490
|
-
|
|
490
|
+
return /* @__PURE__ */ r(y.Portal, { children: /* @__PURE__ */ r(
|
|
491
|
+
y.Content,
|
|
491
492
|
{
|
|
492
493
|
"data-slot": "dropdown-menu-content",
|
|
493
494
|
sideOffset: t,
|
|
494
|
-
className:
|
|
495
|
+
className: i(
|
|
495
496
|
"bg-popover 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 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
496
497
|
e
|
|
497
498
|
),
|
|
498
|
-
...
|
|
499
|
+
...a
|
|
499
500
|
}
|
|
500
501
|
) });
|
|
501
502
|
}
|
|
502
|
-
function
|
|
503
|
+
function te({
|
|
503
504
|
className: e,
|
|
504
505
|
inset: t,
|
|
505
|
-
variant:
|
|
506
|
-
...
|
|
506
|
+
variant: a = "default",
|
|
507
|
+
...o
|
|
507
508
|
}) {
|
|
508
|
-
return /* @__PURE__ */
|
|
509
|
-
|
|
509
|
+
return /* @__PURE__ */ r(
|
|
510
|
+
y.Item,
|
|
510
511
|
{
|
|
511
512
|
"data-slot": "dropdown-menu-item",
|
|
512
513
|
"data-inset": t,
|
|
513
|
-
"data-variant":
|
|
514
|
-
className:
|
|
514
|
+
"data-variant": a,
|
|
515
|
+
className: i(
|
|
515
516
|
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
516
517
|
e
|
|
517
518
|
),
|
|
518
|
-
...
|
|
519
|
+
...o
|
|
519
520
|
}
|
|
520
521
|
);
|
|
521
522
|
}
|
|
522
|
-
function
|
|
523
|
+
function Ur({
|
|
523
524
|
className: e,
|
|
524
525
|
children: t,
|
|
525
|
-
checked:
|
|
526
|
-
...
|
|
526
|
+
checked: a,
|
|
527
|
+
...o
|
|
527
528
|
}) {
|
|
528
|
-
return /* @__PURE__ */
|
|
529
|
-
|
|
529
|
+
return /* @__PURE__ */ h(
|
|
530
|
+
y.CheckboxItem,
|
|
530
531
|
{
|
|
531
532
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
532
|
-
className:
|
|
533
|
+
className: i(
|
|
533
534
|
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
534
535
|
e
|
|
535
536
|
),
|
|
536
|
-
checked:
|
|
537
|
-
...
|
|
537
|
+
checked: a,
|
|
538
|
+
...o,
|
|
538
539
|
children: [
|
|
539
|
-
/* @__PURE__ */
|
|
540
|
+
/* @__PURE__ */ r("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ r(y.ItemIndicator, { children: /* @__PURE__ */ r(ne, { className: "size-4" }) }) }),
|
|
540
541
|
t
|
|
541
542
|
]
|
|
542
543
|
}
|
|
543
544
|
);
|
|
544
545
|
}
|
|
545
|
-
function
|
|
546
|
+
function Vr({
|
|
546
547
|
...e
|
|
547
548
|
}) {
|
|
548
|
-
return /* @__PURE__ */
|
|
549
|
-
|
|
549
|
+
return /* @__PURE__ */ r(
|
|
550
|
+
y.RadioGroup,
|
|
550
551
|
{
|
|
551
552
|
"data-slot": "dropdown-menu-radio-group",
|
|
552
553
|
...e
|
|
553
554
|
}
|
|
554
555
|
);
|
|
555
556
|
}
|
|
556
|
-
function
|
|
557
|
+
function jr({
|
|
557
558
|
className: e,
|
|
558
559
|
children: t,
|
|
559
|
-
...
|
|
560
|
+
...a
|
|
560
561
|
}) {
|
|
561
|
-
return /* @__PURE__ */
|
|
562
|
-
|
|
562
|
+
return /* @__PURE__ */ h(
|
|
563
|
+
y.RadioItem,
|
|
563
564
|
{
|
|
564
565
|
"data-slot": "dropdown-menu-radio-item",
|
|
565
|
-
className:
|
|
566
|
+
className: i(
|
|
566
567
|
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
567
568
|
e
|
|
568
569
|
),
|
|
569
|
-
...
|
|
570
|
+
...a,
|
|
570
571
|
children: [
|
|
571
|
-
/* @__PURE__ */
|
|
572
|
+
/* @__PURE__ */ r("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ r(y.ItemIndicator, { children: /* @__PURE__ */ r(me, { className: "size-2 fill-current" }) }) }),
|
|
572
573
|
t
|
|
573
574
|
]
|
|
574
575
|
}
|
|
575
576
|
);
|
|
576
577
|
}
|
|
577
|
-
function
|
|
578
|
+
function Fr({
|
|
578
579
|
className: e,
|
|
579
580
|
inset: t,
|
|
580
|
-
...
|
|
581
|
+
...a
|
|
581
582
|
}) {
|
|
582
|
-
return /* @__PURE__ */
|
|
583
|
-
|
|
583
|
+
return /* @__PURE__ */ r(
|
|
584
|
+
y.Label,
|
|
584
585
|
{
|
|
585
586
|
"data-slot": "dropdown-menu-label",
|
|
586
587
|
"data-inset": t,
|
|
587
|
-
className:
|
|
588
|
+
className: i(
|
|
588
589
|
"px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
|
|
589
590
|
e
|
|
590
591
|
),
|
|
591
|
-
...
|
|
592
|
+
...a
|
|
592
593
|
}
|
|
593
594
|
);
|
|
594
595
|
}
|
|
595
|
-
function
|
|
596
|
+
function Xr({
|
|
596
597
|
className: e,
|
|
597
598
|
...t
|
|
598
599
|
}) {
|
|
599
|
-
return /* @__PURE__ */
|
|
600
|
-
|
|
600
|
+
return /* @__PURE__ */ r(
|
|
601
|
+
y.Separator,
|
|
601
602
|
{
|
|
602
603
|
"data-slot": "dropdown-menu-separator",
|
|
603
|
-
className:
|
|
604
|
+
className: i("bg-border -mx-1 my-1 h-px", e),
|
|
604
605
|
...t
|
|
605
606
|
}
|
|
606
607
|
);
|
|
607
608
|
}
|
|
608
|
-
function
|
|
609
|
+
function Yr({
|
|
609
610
|
className: e,
|
|
610
611
|
...t
|
|
611
612
|
}) {
|
|
612
|
-
return /* @__PURE__ */
|
|
613
|
+
return /* @__PURE__ */ r(
|
|
613
614
|
"span",
|
|
614
615
|
{
|
|
615
616
|
"data-slot": "dropdown-menu-shortcut",
|
|
616
|
-
className:
|
|
617
|
+
className: i(
|
|
617
618
|
"text-muted-foreground ml-auto text-xs tracking-widest",
|
|
618
619
|
e
|
|
619
620
|
),
|
|
@@ -621,43 +622,43 @@ function It({
|
|
|
621
622
|
}
|
|
622
623
|
);
|
|
623
624
|
}
|
|
624
|
-
function
|
|
625
|
+
function $r({
|
|
625
626
|
...e
|
|
626
627
|
}) {
|
|
627
|
-
return /* @__PURE__ */
|
|
628
|
+
return /* @__PURE__ */ r(y.Sub, { "data-slot": "dropdown-menu-sub", ...e });
|
|
628
629
|
}
|
|
629
|
-
function
|
|
630
|
+
function Gr({
|
|
630
631
|
className: e,
|
|
631
632
|
inset: t,
|
|
632
|
-
children:
|
|
633
|
-
...
|
|
633
|
+
children: a,
|
|
634
|
+
...o
|
|
634
635
|
}) {
|
|
635
|
-
return /* @__PURE__ */
|
|
636
|
-
|
|
636
|
+
return /* @__PURE__ */ h(
|
|
637
|
+
y.SubTrigger,
|
|
637
638
|
{
|
|
638
639
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
639
640
|
"data-inset": t,
|
|
640
|
-
className:
|
|
641
|
+
className: i(
|
|
641
642
|
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",
|
|
642
643
|
e
|
|
643
644
|
),
|
|
644
|
-
...
|
|
645
|
+
...o,
|
|
645
646
|
children: [
|
|
646
|
-
|
|
647
|
-
/* @__PURE__ */
|
|
647
|
+
a,
|
|
648
|
+
/* @__PURE__ */ r(ie, { className: "ml-auto size-4" })
|
|
648
649
|
]
|
|
649
650
|
}
|
|
650
651
|
);
|
|
651
652
|
}
|
|
652
|
-
function
|
|
653
|
+
function Kr({
|
|
653
654
|
className: e,
|
|
654
655
|
...t
|
|
655
656
|
}) {
|
|
656
|
-
return /* @__PURE__ */
|
|
657
|
-
|
|
657
|
+
return /* @__PURE__ */ r(
|
|
658
|
+
y.SubContent,
|
|
658
659
|
{
|
|
659
660
|
"data-slot": "dropdown-menu-sub-content",
|
|
660
|
-
className:
|
|
661
|
+
className: i(
|
|
661
662
|
"bg-popover 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 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
662
663
|
e
|
|
663
664
|
),
|
|
@@ -665,31 +666,31 @@ function Rt({
|
|
|
665
666
|
}
|
|
666
667
|
);
|
|
667
668
|
}
|
|
668
|
-
function
|
|
669
|
-
return /* @__PURE__ */
|
|
669
|
+
function it({ className: e, type: t, ...a }) {
|
|
670
|
+
return /* @__PURE__ */ r(
|
|
670
671
|
"input",
|
|
671
672
|
{
|
|
672
673
|
type: t,
|
|
673
674
|
"data-slot": "input",
|
|
674
|
-
className:
|
|
675
|
+
className: i(
|
|
675
676
|
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
676
677
|
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
677
678
|
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
678
679
|
e
|
|
679
680
|
),
|
|
680
|
-
...
|
|
681
|
+
...a
|
|
681
682
|
}
|
|
682
683
|
);
|
|
683
684
|
}
|
|
684
|
-
function
|
|
685
|
+
function qr({
|
|
685
686
|
className: e,
|
|
686
687
|
...t
|
|
687
688
|
}) {
|
|
688
|
-
return /* @__PURE__ */
|
|
689
|
-
|
|
689
|
+
return /* @__PURE__ */ r(
|
|
690
|
+
qe.Root,
|
|
690
691
|
{
|
|
691
692
|
"data-slot": "label",
|
|
692
|
-
className:
|
|
693
|
+
className: i(
|
|
693
694
|
"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
694
695
|
e
|
|
695
696
|
),
|
|
@@ -697,155 +698,155 @@ function Bt({
|
|
|
697
698
|
}
|
|
698
699
|
);
|
|
699
700
|
}
|
|
700
|
-
function
|
|
701
|
-
return /* @__PURE__ */
|
|
701
|
+
function Jr({ className: e, ...t }) {
|
|
702
|
+
return /* @__PURE__ */ r(
|
|
702
703
|
"nav",
|
|
703
704
|
{
|
|
704
705
|
role: "navigation",
|
|
705
706
|
"aria-label": "pagination",
|
|
706
707
|
"data-slot": "pagination",
|
|
707
|
-
className:
|
|
708
|
+
className: i("mx-auto flex w-full justify-center", e),
|
|
708
709
|
...t
|
|
709
710
|
}
|
|
710
711
|
);
|
|
711
712
|
}
|
|
712
|
-
function
|
|
713
|
+
function Qr({
|
|
713
714
|
className: e,
|
|
714
715
|
...t
|
|
715
716
|
}) {
|
|
716
|
-
return /* @__PURE__ */
|
|
717
|
+
return /* @__PURE__ */ r(
|
|
717
718
|
"ul",
|
|
718
719
|
{
|
|
719
720
|
"data-slot": "pagination-content",
|
|
720
|
-
className:
|
|
721
|
+
className: i("flex flex-row items-center gap-1", e),
|
|
721
722
|
...t
|
|
722
723
|
}
|
|
723
724
|
);
|
|
724
725
|
}
|
|
725
|
-
function
|
|
726
|
-
return /* @__PURE__ */
|
|
726
|
+
function Zr({ ...e }) {
|
|
727
|
+
return /* @__PURE__ */ r("li", { "data-slot": "pagination-item", ...e });
|
|
727
728
|
}
|
|
728
|
-
function
|
|
729
|
+
function he({
|
|
729
730
|
className: e,
|
|
730
731
|
isActive: t,
|
|
731
|
-
size:
|
|
732
|
-
...
|
|
732
|
+
size: a = "icon",
|
|
733
|
+
...o
|
|
733
734
|
}) {
|
|
734
|
-
return /* @__PURE__ */
|
|
735
|
+
return /* @__PURE__ */ r(
|
|
735
736
|
"a",
|
|
736
737
|
{
|
|
737
738
|
"aria-current": t ? "page" : void 0,
|
|
738
739
|
"data-slot": "pagination-link",
|
|
739
740
|
"data-active": t,
|
|
740
|
-
className:
|
|
741
|
-
|
|
741
|
+
className: i(
|
|
742
|
+
be({
|
|
742
743
|
variant: t ? "outline" : "ghost",
|
|
743
|
-
size:
|
|
744
|
+
size: a
|
|
744
745
|
}),
|
|
745
746
|
e
|
|
746
747
|
),
|
|
747
|
-
...
|
|
748
|
+
...o
|
|
748
749
|
}
|
|
749
750
|
);
|
|
750
751
|
}
|
|
751
|
-
function
|
|
752
|
+
function ea({
|
|
752
753
|
className: e,
|
|
753
754
|
...t
|
|
754
755
|
}) {
|
|
755
|
-
return /* @__PURE__ */
|
|
756
|
-
|
|
756
|
+
return /* @__PURE__ */ h(
|
|
757
|
+
he,
|
|
757
758
|
{
|
|
758
759
|
"aria-label": "Go to previous page",
|
|
759
760
|
size: "default",
|
|
760
|
-
className:
|
|
761
|
+
className: i("gap-1 px-2.5 sm:pl-2.5", e),
|
|
761
762
|
...t,
|
|
762
763
|
children: [
|
|
763
|
-
/* @__PURE__ */
|
|
764
|
-
/* @__PURE__ */
|
|
764
|
+
/* @__PURE__ */ r(je, {}),
|
|
765
|
+
/* @__PURE__ */ r("span", { className: "hidden sm:block", children: "Previous" })
|
|
765
766
|
]
|
|
766
767
|
}
|
|
767
768
|
);
|
|
768
769
|
}
|
|
769
|
-
function
|
|
770
|
+
function ta({
|
|
770
771
|
className: e,
|
|
771
772
|
...t
|
|
772
773
|
}) {
|
|
773
|
-
return /* @__PURE__ */
|
|
774
|
-
|
|
774
|
+
return /* @__PURE__ */ h(
|
|
775
|
+
he,
|
|
775
776
|
{
|
|
776
777
|
"aria-label": "Go to next page",
|
|
777
778
|
size: "default",
|
|
778
|
-
className:
|
|
779
|
+
className: i("gap-1 px-2.5 sm:pr-2.5", e),
|
|
779
780
|
...t,
|
|
780
781
|
children: [
|
|
781
|
-
/* @__PURE__ */
|
|
782
|
-
/* @__PURE__ */
|
|
782
|
+
/* @__PURE__ */ r("span", { className: "hidden sm:block", children: "Next" }),
|
|
783
|
+
/* @__PURE__ */ r(ie, {})
|
|
783
784
|
]
|
|
784
785
|
}
|
|
785
786
|
);
|
|
786
787
|
}
|
|
787
|
-
function
|
|
788
|
+
function ra({
|
|
788
789
|
className: e,
|
|
789
790
|
...t
|
|
790
791
|
}) {
|
|
791
|
-
return /* @__PURE__ */
|
|
792
|
+
return /* @__PURE__ */ h(
|
|
792
793
|
"span",
|
|
793
794
|
{
|
|
794
795
|
"aria-hidden": !0,
|
|
795
796
|
"data-slot": "pagination-ellipsis",
|
|
796
|
-
className:
|
|
797
|
+
className: i("flex size-9 items-center justify-center", e),
|
|
797
798
|
...t,
|
|
798
799
|
children: [
|
|
799
|
-
/* @__PURE__ */
|
|
800
|
-
/* @__PURE__ */
|
|
800
|
+
/* @__PURE__ */ r(Ve, { className: "size-4" }),
|
|
801
|
+
/* @__PURE__ */ r("span", { className: "sr-only", children: "More pages" })
|
|
801
802
|
]
|
|
802
803
|
}
|
|
803
804
|
);
|
|
804
805
|
}
|
|
805
|
-
function
|
|
806
|
+
function aa({
|
|
806
807
|
...e
|
|
807
808
|
}) {
|
|
808
|
-
return /* @__PURE__ */
|
|
809
|
+
return /* @__PURE__ */ r($.Root, { "data-slot": "popover", ...e });
|
|
809
810
|
}
|
|
810
|
-
function
|
|
811
|
+
function oa({
|
|
811
812
|
...e
|
|
812
813
|
}) {
|
|
813
|
-
return /* @__PURE__ */
|
|
814
|
+
return /* @__PURE__ */ r($.Trigger, { "data-slot": "popover-trigger", ...e });
|
|
814
815
|
}
|
|
815
|
-
function
|
|
816
|
+
function na({
|
|
816
817
|
className: e,
|
|
817
818
|
align: t = "center",
|
|
818
|
-
sideOffset:
|
|
819
|
-
...
|
|
819
|
+
sideOffset: a = 4,
|
|
820
|
+
...o
|
|
820
821
|
}) {
|
|
821
|
-
return /* @__PURE__ */
|
|
822
|
-
|
|
822
|
+
return /* @__PURE__ */ r($.Portal, { children: /* @__PURE__ */ r(
|
|
823
|
+
$.Content,
|
|
823
824
|
{
|
|
824
825
|
"data-slot": "popover-content",
|
|
825
826
|
align: t,
|
|
826
|
-
sideOffset:
|
|
827
|
-
className:
|
|
827
|
+
sideOffset: a,
|
|
828
|
+
className: i(
|
|
828
829
|
"bg-popover 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 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
829
830
|
e
|
|
830
831
|
),
|
|
831
|
-
...
|
|
832
|
+
...o
|
|
832
833
|
}
|
|
833
834
|
) });
|
|
834
835
|
}
|
|
835
|
-
function
|
|
836
|
-
return /* @__PURE__ */
|
|
836
|
+
function ce({ className: e, ...t }) {
|
|
837
|
+
return /* @__PURE__ */ r(
|
|
837
838
|
"div",
|
|
838
839
|
{
|
|
839
840
|
"data-slot": "skeleton",
|
|
840
|
-
className:
|
|
841
|
+
className: i("bg-accent animate-pulse rounded-md", e),
|
|
841
842
|
...t
|
|
842
843
|
}
|
|
843
844
|
);
|
|
844
845
|
}
|
|
845
|
-
const
|
|
846
|
-
const { theme: t = "system" } =
|
|
847
|
-
return /* @__PURE__ */
|
|
848
|
-
|
|
846
|
+
const ia = ({ ...e }) => {
|
|
847
|
+
const { theme: t = "system" } = Je();
|
|
848
|
+
return /* @__PURE__ */ r(
|
|
849
|
+
Qe,
|
|
849
850
|
{
|
|
850
851
|
theme: t,
|
|
851
852
|
className: "toaster group",
|
|
@@ -858,49 +859,49 @@ const Kt = ({ ...e }) => {
|
|
|
858
859
|
}
|
|
859
860
|
);
|
|
860
861
|
};
|
|
861
|
-
function
|
|
862
|
-
return /* @__PURE__ */
|
|
862
|
+
function sa({ className: e, ...t }) {
|
|
863
|
+
return /* @__PURE__ */ r(
|
|
863
864
|
"div",
|
|
864
865
|
{
|
|
865
866
|
"data-slot": "table-container",
|
|
866
867
|
className: "relative w-full overflow-x-auto",
|
|
867
|
-
children: /* @__PURE__ */
|
|
868
|
+
children: /* @__PURE__ */ r(
|
|
868
869
|
"table",
|
|
869
870
|
{
|
|
870
871
|
"data-slot": "table",
|
|
871
|
-
className:
|
|
872
|
+
className: i("w-full caption-bottom text-sm", e),
|
|
872
873
|
...t
|
|
873
874
|
}
|
|
874
875
|
)
|
|
875
876
|
}
|
|
876
877
|
);
|
|
877
878
|
}
|
|
878
|
-
function
|
|
879
|
-
return /* @__PURE__ */
|
|
879
|
+
function la({ className: e, ...t }) {
|
|
880
|
+
return /* @__PURE__ */ r(
|
|
880
881
|
"thead",
|
|
881
882
|
{
|
|
882
883
|
"data-slot": "table-header",
|
|
883
|
-
className:
|
|
884
|
+
className: i("[&_tr]:border-b", e),
|
|
884
885
|
...t
|
|
885
886
|
}
|
|
886
887
|
);
|
|
887
888
|
}
|
|
888
|
-
function
|
|
889
|
-
return /* @__PURE__ */
|
|
889
|
+
function da({ className: e, ...t }) {
|
|
890
|
+
return /* @__PURE__ */ r(
|
|
890
891
|
"tbody",
|
|
891
892
|
{
|
|
892
893
|
"data-slot": "table-body",
|
|
893
|
-
className:
|
|
894
|
+
className: i("[&_tr:last-child]:border-0", e),
|
|
894
895
|
...t
|
|
895
896
|
}
|
|
896
897
|
);
|
|
897
898
|
}
|
|
898
|
-
function
|
|
899
|
-
return /* @__PURE__ */
|
|
899
|
+
function ca({ className: e, ...t }) {
|
|
900
|
+
return /* @__PURE__ */ r(
|
|
900
901
|
"tr",
|
|
901
902
|
{
|
|
902
903
|
"data-slot": "table-row",
|
|
903
|
-
className:
|
|
904
|
+
className: i(
|
|
904
905
|
"hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
|
|
905
906
|
e
|
|
906
907
|
),
|
|
@@ -908,12 +909,12 @@ function Ft({ className: e, ...t }) {
|
|
|
908
909
|
}
|
|
909
910
|
);
|
|
910
911
|
}
|
|
911
|
-
function
|
|
912
|
-
return /* @__PURE__ */
|
|
912
|
+
function ua({ className: e, ...t }) {
|
|
913
|
+
return /* @__PURE__ */ r(
|
|
913
914
|
"th",
|
|
914
915
|
{
|
|
915
916
|
"data-slot": "table-head",
|
|
916
|
-
className:
|
|
917
|
+
className: i(
|
|
917
918
|
"text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
918
919
|
e
|
|
919
920
|
),
|
|
@@ -921,12 +922,12 @@ function Xt({ className: e, ...t }) {
|
|
|
921
922
|
}
|
|
922
923
|
);
|
|
923
924
|
}
|
|
924
|
-
function
|
|
925
|
-
return /* @__PURE__ */
|
|
925
|
+
function fa({ className: e, ...t }) {
|
|
926
|
+
return /* @__PURE__ */ r(
|
|
926
927
|
"td",
|
|
927
928
|
{
|
|
928
929
|
"data-slot": "table-cell",
|
|
929
|
-
className:
|
|
930
|
+
className: i(
|
|
930
931
|
"p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
931
932
|
e
|
|
932
933
|
),
|
|
@@ -934,41 +935,41 @@ function Yt({ className: e, ...t }) {
|
|
|
934
935
|
}
|
|
935
936
|
);
|
|
936
937
|
}
|
|
937
|
-
function
|
|
938
|
+
function ma({
|
|
938
939
|
className: e,
|
|
939
940
|
...t
|
|
940
941
|
}) {
|
|
941
|
-
return /* @__PURE__ */
|
|
942
|
+
return /* @__PURE__ */ r(
|
|
942
943
|
"caption",
|
|
943
944
|
{
|
|
944
945
|
"data-slot": "table-caption",
|
|
945
|
-
className:
|
|
946
|
+
className: i("text-muted-foreground mt-4 text-sm", e),
|
|
946
947
|
...t
|
|
947
948
|
}
|
|
948
949
|
);
|
|
949
950
|
}
|
|
950
|
-
function
|
|
951
|
+
function pa({
|
|
951
952
|
className: e,
|
|
952
953
|
...t
|
|
953
954
|
}) {
|
|
954
|
-
return /* @__PURE__ */
|
|
955
|
-
|
|
955
|
+
return /* @__PURE__ */ r(
|
|
956
|
+
q.Root,
|
|
956
957
|
{
|
|
957
958
|
"data-slot": "tabs",
|
|
958
|
-
className:
|
|
959
|
+
className: i("flex flex-col gap-2", e),
|
|
959
960
|
...t
|
|
960
961
|
}
|
|
961
962
|
);
|
|
962
963
|
}
|
|
963
|
-
function
|
|
964
|
+
function ba({
|
|
964
965
|
className: e,
|
|
965
966
|
...t
|
|
966
967
|
}) {
|
|
967
|
-
return /* @__PURE__ */
|
|
968
|
-
|
|
968
|
+
return /* @__PURE__ */ r(
|
|
969
|
+
q.List,
|
|
969
970
|
{
|
|
970
971
|
"data-slot": "tabs-list",
|
|
971
|
-
className:
|
|
972
|
+
className: i(
|
|
972
973
|
"bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",
|
|
973
974
|
e
|
|
974
975
|
),
|
|
@@ -976,15 +977,15 @@ function Zt({
|
|
|
976
977
|
}
|
|
977
978
|
);
|
|
978
979
|
}
|
|
979
|
-
function
|
|
980
|
+
function ga({
|
|
980
981
|
className: e,
|
|
981
982
|
...t
|
|
982
983
|
}) {
|
|
983
|
-
return /* @__PURE__ */
|
|
984
|
-
|
|
984
|
+
return /* @__PURE__ */ r(
|
|
985
|
+
q.Trigger,
|
|
985
986
|
{
|
|
986
987
|
"data-slot": "tabs-trigger",
|
|
987
|
-
className:
|
|
988
|
+
className: i(
|
|
988
989
|
"data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
989
990
|
e
|
|
990
991
|
),
|
|
@@ -992,25 +993,25 @@ function ea({
|
|
|
992
993
|
}
|
|
993
994
|
);
|
|
994
995
|
}
|
|
995
|
-
function
|
|
996
|
+
function ha({
|
|
996
997
|
className: e,
|
|
997
998
|
...t
|
|
998
999
|
}) {
|
|
999
|
-
return /* @__PURE__ */
|
|
1000
|
-
|
|
1000
|
+
return /* @__PURE__ */ r(
|
|
1001
|
+
q.Content,
|
|
1001
1002
|
{
|
|
1002
1003
|
"data-slot": "tabs-content",
|
|
1003
|
-
className:
|
|
1004
|
+
className: i("flex-1 outline-none", e),
|
|
1004
1005
|
...t
|
|
1005
1006
|
}
|
|
1006
1007
|
);
|
|
1007
1008
|
}
|
|
1008
|
-
function
|
|
1009
|
+
function ve({
|
|
1009
1010
|
delayDuration: e = 0,
|
|
1010
1011
|
...t
|
|
1011
1012
|
}) {
|
|
1012
|
-
return /* @__PURE__ */
|
|
1013
|
-
|
|
1013
|
+
return /* @__PURE__ */ r(
|
|
1014
|
+
O.Provider,
|
|
1014
1015
|
{
|
|
1015
1016
|
"data-slot": "tooltip-provider",
|
|
1016
1017
|
delayDuration: e,
|
|
@@ -1018,48 +1019,48 @@ function V({
|
|
|
1018
1019
|
}
|
|
1019
1020
|
);
|
|
1020
1021
|
}
|
|
1021
|
-
function
|
|
1022
|
+
function st({
|
|
1022
1023
|
...e
|
|
1023
1024
|
}) {
|
|
1024
|
-
return /* @__PURE__ */
|
|
1025
|
+
return /* @__PURE__ */ r(ve, { children: /* @__PURE__ */ r(O.Root, { "data-slot": "tooltip", ...e }) });
|
|
1025
1026
|
}
|
|
1026
|
-
function
|
|
1027
|
+
function lt({
|
|
1027
1028
|
...e
|
|
1028
1029
|
}) {
|
|
1029
|
-
return /* @__PURE__ */
|
|
1030
|
+
return /* @__PURE__ */ r(O.Trigger, { "data-slot": "tooltip-trigger", ...e });
|
|
1030
1031
|
}
|
|
1031
|
-
function
|
|
1032
|
+
function dt({
|
|
1032
1033
|
className: e,
|
|
1033
1034
|
sideOffset: t = 0,
|
|
1034
|
-
children:
|
|
1035
|
-
...
|
|
1035
|
+
children: a,
|
|
1036
|
+
...o
|
|
1036
1037
|
}) {
|
|
1037
|
-
return /* @__PURE__ */
|
|
1038
|
-
|
|
1038
|
+
return /* @__PURE__ */ r(O.Portal, { children: /* @__PURE__ */ h(
|
|
1039
|
+
O.Content,
|
|
1039
1040
|
{
|
|
1040
1041
|
"data-slot": "tooltip-content",
|
|
1041
1042
|
sideOffset: t,
|
|
1042
|
-
className:
|
|
1043
|
+
className: i(
|
|
1043
1044
|
"bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
|
|
1044
1045
|
e
|
|
1045
1046
|
),
|
|
1046
|
-
...
|
|
1047
|
+
...o,
|
|
1047
1048
|
children: [
|
|
1048
|
-
|
|
1049
|
-
/* @__PURE__ */
|
|
1049
|
+
a,
|
|
1050
|
+
/* @__PURE__ */ r(O.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
|
|
1050
1051
|
]
|
|
1051
1052
|
}
|
|
1052
1053
|
) });
|
|
1053
1054
|
}
|
|
1054
|
-
function
|
|
1055
|
-
return /* @__PURE__ */
|
|
1055
|
+
function va({ ...e }) {
|
|
1056
|
+
return /* @__PURE__ */ r("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...e });
|
|
1056
1057
|
}
|
|
1057
|
-
function
|
|
1058
|
-
return /* @__PURE__ */
|
|
1058
|
+
function xa({ className: e, ...t }) {
|
|
1059
|
+
return /* @__PURE__ */ r(
|
|
1059
1060
|
"ol",
|
|
1060
1061
|
{
|
|
1061
1062
|
"data-slot": "breadcrumb-list",
|
|
1062
|
-
className:
|
|
1063
|
+
className: i(
|
|
1063
1064
|
"text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",
|
|
1064
1065
|
e
|
|
1065
1066
|
),
|
|
@@ -1067,247 +1068,252 @@ function ra({ className: e, ...t }) {
|
|
|
1067
1068
|
}
|
|
1068
1069
|
);
|
|
1069
1070
|
}
|
|
1070
|
-
function
|
|
1071
|
-
return /* @__PURE__ */
|
|
1071
|
+
function wa({ className: e, ...t }) {
|
|
1072
|
+
return /* @__PURE__ */ r(
|
|
1072
1073
|
"li",
|
|
1073
1074
|
{
|
|
1074
1075
|
"data-slot": "breadcrumb-item",
|
|
1075
|
-
className:
|
|
1076
|
+
className: i("inline-flex items-center gap-1.5", e),
|
|
1076
1077
|
...t
|
|
1077
1078
|
}
|
|
1078
1079
|
);
|
|
1079
1080
|
}
|
|
1080
|
-
function
|
|
1081
|
+
function Sa({
|
|
1081
1082
|
asChild: e,
|
|
1082
1083
|
className: t,
|
|
1083
|
-
...
|
|
1084
|
+
...a
|
|
1084
1085
|
}) {
|
|
1085
|
-
return /* @__PURE__ */
|
|
1086
|
-
e ?
|
|
1086
|
+
return /* @__PURE__ */ r(
|
|
1087
|
+
e ? E : "a",
|
|
1087
1088
|
{
|
|
1088
1089
|
"data-slot": "breadcrumb-link",
|
|
1089
|
-
className:
|
|
1090
|
-
...
|
|
1090
|
+
className: i("hover:text-foreground transition-colors", t),
|
|
1091
|
+
...a
|
|
1091
1092
|
}
|
|
1092
1093
|
);
|
|
1093
1094
|
}
|
|
1094
|
-
function
|
|
1095
|
-
return /* @__PURE__ */
|
|
1095
|
+
function ya({ className: e, ...t }) {
|
|
1096
|
+
return /* @__PURE__ */ r(
|
|
1096
1097
|
"span",
|
|
1097
1098
|
{
|
|
1098
1099
|
"data-slot": "breadcrumb-page",
|
|
1099
1100
|
role: "link",
|
|
1100
1101
|
"aria-disabled": "true",
|
|
1101
1102
|
"aria-current": "page",
|
|
1102
|
-
className:
|
|
1103
|
+
className: i("text-foreground font-normal", e),
|
|
1103
1104
|
...t
|
|
1104
1105
|
}
|
|
1105
1106
|
);
|
|
1106
1107
|
}
|
|
1107
|
-
function
|
|
1108
|
+
function Na({
|
|
1108
1109
|
children: e,
|
|
1109
1110
|
className: t,
|
|
1110
|
-
...
|
|
1111
|
+
...a
|
|
1111
1112
|
}) {
|
|
1112
|
-
return /* @__PURE__ */
|
|
1113
|
+
return /* @__PURE__ */ r(
|
|
1113
1114
|
"li",
|
|
1114
1115
|
{
|
|
1115
1116
|
"data-slot": "breadcrumb-separator",
|
|
1116
1117
|
role: "presentation",
|
|
1117
1118
|
"aria-hidden": "true",
|
|
1118
|
-
className:
|
|
1119
|
-
...
|
|
1120
|
-
children: e ?? /* @__PURE__ */
|
|
1119
|
+
className: i("[&>svg]:size-3.5", t),
|
|
1120
|
+
...a,
|
|
1121
|
+
children: e ?? /* @__PURE__ */ r(Fe, {})
|
|
1121
1122
|
}
|
|
1122
1123
|
);
|
|
1123
1124
|
}
|
|
1124
|
-
function
|
|
1125
|
+
function Ca({
|
|
1125
1126
|
...e
|
|
1126
1127
|
}) {
|
|
1127
|
-
return /* @__PURE__ */
|
|
1128
|
+
return /* @__PURE__ */ r(N.Root, { "data-slot": "select", ...e });
|
|
1128
1129
|
}
|
|
1129
|
-
function
|
|
1130
|
+
function Ta({
|
|
1130
1131
|
...e
|
|
1131
1132
|
}) {
|
|
1132
|
-
return /* @__PURE__ */
|
|
1133
|
+
return /* @__PURE__ */ r(N.Group, { "data-slot": "select-group", ...e });
|
|
1133
1134
|
}
|
|
1134
|
-
function
|
|
1135
|
+
function Pa({
|
|
1135
1136
|
...e
|
|
1136
1137
|
}) {
|
|
1137
|
-
return /* @__PURE__ */
|
|
1138
|
+
return /* @__PURE__ */ r(N.Value, { "data-slot": "select-value", ...e });
|
|
1138
1139
|
}
|
|
1139
|
-
function
|
|
1140
|
+
function za({
|
|
1140
1141
|
className: e,
|
|
1141
1142
|
size: t = "default",
|
|
1142
|
-
children:
|
|
1143
|
-
...
|
|
1143
|
+
children: a,
|
|
1144
|
+
...o
|
|
1144
1145
|
}) {
|
|
1145
|
-
return /* @__PURE__ */
|
|
1146
|
-
|
|
1146
|
+
return /* @__PURE__ */ h(
|
|
1147
|
+
N.Trigger,
|
|
1147
1148
|
{
|
|
1148
1149
|
"data-slot": "select-trigger",
|
|
1149
1150
|
"data-size": t,
|
|
1150
|
-
className:
|
|
1151
|
+
className: i(
|
|
1151
1152
|
"border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1152
1153
|
e
|
|
1153
1154
|
),
|
|
1154
|
-
...
|
|
1155
|
+
...o,
|
|
1155
1156
|
children: [
|
|
1156
|
-
|
|
1157
|
-
/* @__PURE__ */
|
|
1157
|
+
a,
|
|
1158
|
+
/* @__PURE__ */ r(N.Icon, { asChild: !0, children: /* @__PURE__ */ r(pe, { className: "size-4 opacity-50" }) })
|
|
1158
1159
|
]
|
|
1159
1160
|
}
|
|
1160
1161
|
);
|
|
1161
1162
|
}
|
|
1162
|
-
function
|
|
1163
|
+
function _a({
|
|
1163
1164
|
className: e,
|
|
1164
1165
|
children: t,
|
|
1165
|
-
position:
|
|
1166
|
-
...
|
|
1166
|
+
position: a = "popper",
|
|
1167
|
+
...o
|
|
1167
1168
|
}) {
|
|
1168
|
-
return /* @__PURE__ */
|
|
1169
|
-
|
|
1169
|
+
return /* @__PURE__ */ r(N.Portal, { children: /* @__PURE__ */ h(
|
|
1170
|
+
N.Content,
|
|
1170
1171
|
{
|
|
1171
1172
|
"data-slot": "select-content",
|
|
1172
|
-
className:
|
|
1173
|
+
className: i(
|
|
1173
1174
|
"bg-popover 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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
|
|
1174
|
-
|
|
1175
|
+
a === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
1175
1176
|
e
|
|
1176
1177
|
),
|
|
1177
|
-
position:
|
|
1178
|
-
...
|
|
1178
|
+
position: a,
|
|
1179
|
+
...o,
|
|
1179
1180
|
children: [
|
|
1180
|
-
/* @__PURE__ */
|
|
1181
|
-
/* @__PURE__ */
|
|
1182
|
-
|
|
1181
|
+
/* @__PURE__ */ r(ct, {}),
|
|
1182
|
+
/* @__PURE__ */ r(
|
|
1183
|
+
N.Viewport,
|
|
1183
1184
|
{
|
|
1184
|
-
className:
|
|
1185
|
+
className: i(
|
|
1185
1186
|
"p-1",
|
|
1186
|
-
|
|
1187
|
+
a === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
|
|
1187
1188
|
),
|
|
1188
1189
|
children: t
|
|
1189
1190
|
}
|
|
1190
1191
|
),
|
|
1191
|
-
/* @__PURE__ */
|
|
1192
|
+
/* @__PURE__ */ r(ut, {})
|
|
1192
1193
|
]
|
|
1193
1194
|
}
|
|
1194
1195
|
) });
|
|
1195
1196
|
}
|
|
1196
|
-
function
|
|
1197
|
+
function Ra({
|
|
1197
1198
|
className: e,
|
|
1198
1199
|
...t
|
|
1199
1200
|
}) {
|
|
1200
|
-
return /* @__PURE__ */
|
|
1201
|
-
|
|
1201
|
+
return /* @__PURE__ */ r(
|
|
1202
|
+
N.Label,
|
|
1202
1203
|
{
|
|
1203
1204
|
"data-slot": "select-label",
|
|
1204
|
-
className:
|
|
1205
|
+
className: i("text-muted-foreground px-2 py-1.5 text-xs", e),
|
|
1205
1206
|
...t
|
|
1206
1207
|
}
|
|
1207
1208
|
);
|
|
1208
1209
|
}
|
|
1209
|
-
function
|
|
1210
|
+
function ka({
|
|
1210
1211
|
className: e,
|
|
1211
1212
|
children: t,
|
|
1212
|
-
...
|
|
1213
|
+
...a
|
|
1213
1214
|
}) {
|
|
1214
|
-
return /* @__PURE__ */
|
|
1215
|
-
|
|
1215
|
+
return /* @__PURE__ */ h(
|
|
1216
|
+
N.Item,
|
|
1216
1217
|
{
|
|
1217
1218
|
"data-slot": "select-item",
|
|
1218
|
-
className:
|
|
1219
|
+
className: i(
|
|
1219
1220
|
"focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
1220
1221
|
e
|
|
1221
1222
|
),
|
|
1222
|
-
...
|
|
1223
|
+
...a,
|
|
1223
1224
|
children: [
|
|
1224
|
-
/* @__PURE__ */
|
|
1225
|
-
/* @__PURE__ */
|
|
1225
|
+
/* @__PURE__ */ r("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ r(N.ItemIndicator, { children: /* @__PURE__ */ r(ne, { className: "size-4" }) }) }),
|
|
1226
|
+
/* @__PURE__ */ r(N.ItemText, { children: t })
|
|
1226
1227
|
]
|
|
1227
1228
|
}
|
|
1228
1229
|
);
|
|
1229
1230
|
}
|
|
1230
|
-
function
|
|
1231
|
+
function ct({
|
|
1231
1232
|
className: e,
|
|
1232
1233
|
...t
|
|
1233
1234
|
}) {
|
|
1234
|
-
return /* @__PURE__ */
|
|
1235
|
-
|
|
1235
|
+
return /* @__PURE__ */ r(
|
|
1236
|
+
N.ScrollUpButton,
|
|
1236
1237
|
{
|
|
1237
1238
|
"data-slot": "select-scroll-up-button",
|
|
1238
|
-
className:
|
|
1239
|
+
className: i(
|
|
1239
1240
|
"flex cursor-default items-center justify-center py-1",
|
|
1240
1241
|
e
|
|
1241
1242
|
),
|
|
1242
1243
|
...t,
|
|
1243
|
-
children: /* @__PURE__ */
|
|
1244
|
+
children: /* @__PURE__ */ r(Xe, { className: "size-4" })
|
|
1244
1245
|
}
|
|
1245
1246
|
);
|
|
1246
1247
|
}
|
|
1247
|
-
function
|
|
1248
|
+
function ut({
|
|
1248
1249
|
className: e,
|
|
1249
1250
|
...t
|
|
1250
1251
|
}) {
|
|
1251
|
-
return /* @__PURE__ */
|
|
1252
|
-
|
|
1252
|
+
return /* @__PURE__ */ r(
|
|
1253
|
+
N.ScrollDownButton,
|
|
1253
1254
|
{
|
|
1254
1255
|
"data-slot": "select-scroll-down-button",
|
|
1255
|
-
className:
|
|
1256
|
+
className: i(
|
|
1256
1257
|
"flex cursor-default items-center justify-center py-1",
|
|
1257
1258
|
e
|
|
1258
1259
|
),
|
|
1259
1260
|
...t,
|
|
1260
|
-
children: /* @__PURE__ */
|
|
1261
|
+
children: /* @__PURE__ */ r(pe, { className: "size-4" })
|
|
1261
1262
|
}
|
|
1262
1263
|
);
|
|
1263
1264
|
}
|
|
1264
|
-
const
|
|
1265
|
-
function
|
|
1266
|
-
const [e, t] =
|
|
1267
|
-
return
|
|
1268
|
-
const
|
|
1269
|
-
t(window.innerWidth <
|
|
1265
|
+
const re = 768;
|
|
1266
|
+
function ft() {
|
|
1267
|
+
const [e, t] = l.useState(void 0);
|
|
1268
|
+
return l.useEffect(() => {
|
|
1269
|
+
const a = window.matchMedia(`(max-width: ${re - 1}px)`), o = () => {
|
|
1270
|
+
t(window.innerWidth < re);
|
|
1270
1271
|
};
|
|
1271
|
-
return
|
|
1272
|
+
return a.addEventListener("change", o), t(window.innerWidth < re), () => a.removeEventListener("change", o);
|
|
1272
1273
|
}, []), !!e;
|
|
1273
1274
|
}
|
|
1274
|
-
function
|
|
1275
|
+
function mt({
|
|
1275
1276
|
className: e,
|
|
1276
1277
|
orientation: t = "horizontal",
|
|
1277
|
-
decorative:
|
|
1278
|
-
...
|
|
1278
|
+
decorative: a = !0,
|
|
1279
|
+
...o
|
|
1279
1280
|
}) {
|
|
1280
|
-
return /* @__PURE__ */
|
|
1281
|
-
|
|
1281
|
+
return /* @__PURE__ */ r(
|
|
1282
|
+
Ze.Root,
|
|
1282
1283
|
{
|
|
1283
1284
|
"data-slot": "separator",
|
|
1284
|
-
decorative:
|
|
1285
|
+
decorative: a,
|
|
1285
1286
|
orientation: t,
|
|
1286
|
-
className:
|
|
1287
|
+
className: i(
|
|
1287
1288
|
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
1288
1289
|
e
|
|
1289
1290
|
),
|
|
1290
|
-
...
|
|
1291
|
+
...o
|
|
1291
1292
|
}
|
|
1292
1293
|
);
|
|
1293
1294
|
}
|
|
1294
|
-
function
|
|
1295
|
-
return /* @__PURE__ */
|
|
1295
|
+
function pt({ ...e }) {
|
|
1296
|
+
return /* @__PURE__ */ r(k.Root, { "data-slot": "sheet", ...e });
|
|
1297
|
+
}
|
|
1298
|
+
function Ea({
|
|
1299
|
+
...e
|
|
1300
|
+
}) {
|
|
1301
|
+
return /* @__PURE__ */ r(k.Trigger, { "data-slot": "sheet-trigger", ...e });
|
|
1296
1302
|
}
|
|
1297
|
-
function
|
|
1303
|
+
function bt({
|
|
1298
1304
|
...e
|
|
1299
1305
|
}) {
|
|
1300
|
-
return /* @__PURE__ */
|
|
1306
|
+
return /* @__PURE__ */ r(k.Portal, { "data-slot": "sheet-portal", ...e });
|
|
1301
1307
|
}
|
|
1302
|
-
function
|
|
1308
|
+
function gt({
|
|
1303
1309
|
className: e,
|
|
1304
1310
|
...t
|
|
1305
1311
|
}) {
|
|
1306
|
-
return /* @__PURE__ */
|
|
1307
|
-
|
|
1312
|
+
return /* @__PURE__ */ r(
|
|
1313
|
+
k.Overlay,
|
|
1308
1314
|
{
|
|
1309
1315
|
"data-slot": "sheet-overlay",
|
|
1310
|
-
className:
|
|
1316
|
+
className: i(
|
|
1311
1317
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
1312
1318
|
e
|
|
1313
1319
|
),
|
|
@@ -1315,187 +1321,197 @@ function _e({
|
|
|
1315
1321
|
}
|
|
1316
1322
|
);
|
|
1317
1323
|
}
|
|
1318
|
-
function
|
|
1324
|
+
function ht({
|
|
1319
1325
|
className: e,
|
|
1320
1326
|
children: t,
|
|
1321
|
-
side:
|
|
1322
|
-
...
|
|
1327
|
+
side: a = "right",
|
|
1328
|
+
...o
|
|
1323
1329
|
}) {
|
|
1324
|
-
return /* @__PURE__ */
|
|
1325
|
-
/* @__PURE__ */
|
|
1326
|
-
/* @__PURE__ */
|
|
1327
|
-
|
|
1330
|
+
return /* @__PURE__ */ h(bt, { children: [
|
|
1331
|
+
/* @__PURE__ */ r(gt, {}),
|
|
1332
|
+
/* @__PURE__ */ h(
|
|
1333
|
+
k.Content,
|
|
1328
1334
|
{
|
|
1329
1335
|
"data-slot": "sheet-content",
|
|
1330
|
-
className:
|
|
1336
|
+
className: i(
|
|
1331
1337
|
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1338
|
+
a === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
|
|
1339
|
+
a === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
|
|
1340
|
+
a === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
|
|
1341
|
+
a === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
|
|
1336
1342
|
e
|
|
1337
1343
|
),
|
|
1338
|
-
...
|
|
1344
|
+
...o,
|
|
1339
1345
|
children: [
|
|
1340
1346
|
t,
|
|
1341
|
-
/* @__PURE__ */
|
|
1342
|
-
/* @__PURE__ */
|
|
1343
|
-
/* @__PURE__ */
|
|
1347
|
+
/* @__PURE__ */ h(k.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
|
|
1348
|
+
/* @__PURE__ */ r(Ye, { className: "size-4" }),
|
|
1349
|
+
/* @__PURE__ */ r("span", { className: "sr-only", children: "Close" })
|
|
1344
1350
|
] })
|
|
1345
1351
|
]
|
|
1346
1352
|
}
|
|
1347
1353
|
)
|
|
1348
1354
|
] });
|
|
1349
1355
|
}
|
|
1350
|
-
function
|
|
1351
|
-
return /* @__PURE__ */
|
|
1356
|
+
function vt({ className: e, ...t }) {
|
|
1357
|
+
return /* @__PURE__ */ r(
|
|
1352
1358
|
"div",
|
|
1353
1359
|
{
|
|
1354
1360
|
"data-slot": "sheet-header",
|
|
1355
|
-
className:
|
|
1361
|
+
className: i("flex flex-col gap-1.5 p-4", e),
|
|
1362
|
+
...t
|
|
1363
|
+
}
|
|
1364
|
+
);
|
|
1365
|
+
}
|
|
1366
|
+
function Ma({ className: e, ...t }) {
|
|
1367
|
+
return /* @__PURE__ */ r(
|
|
1368
|
+
"div",
|
|
1369
|
+
{
|
|
1370
|
+
"data-slot": "sheet-footer",
|
|
1371
|
+
className: i("mt-auto flex flex-col gap-2 p-4", e),
|
|
1356
1372
|
...t
|
|
1357
1373
|
}
|
|
1358
1374
|
);
|
|
1359
1375
|
}
|
|
1360
|
-
function
|
|
1376
|
+
function xt({
|
|
1361
1377
|
className: e,
|
|
1362
1378
|
...t
|
|
1363
1379
|
}) {
|
|
1364
|
-
return /* @__PURE__ */
|
|
1365
|
-
|
|
1380
|
+
return /* @__PURE__ */ r(
|
|
1381
|
+
k.Title,
|
|
1366
1382
|
{
|
|
1367
1383
|
"data-slot": "sheet-title",
|
|
1368
|
-
className:
|
|
1384
|
+
className: i("text-foreground font-semibold", e),
|
|
1369
1385
|
...t
|
|
1370
1386
|
}
|
|
1371
1387
|
);
|
|
1372
1388
|
}
|
|
1373
|
-
function
|
|
1389
|
+
function wt({
|
|
1374
1390
|
className: e,
|
|
1375
1391
|
...t
|
|
1376
1392
|
}) {
|
|
1377
|
-
return /* @__PURE__ */
|
|
1378
|
-
|
|
1393
|
+
return /* @__PURE__ */ r(
|
|
1394
|
+
k.Description,
|
|
1379
1395
|
{
|
|
1380
1396
|
"data-slot": "sheet-description",
|
|
1381
|
-
className:
|
|
1397
|
+
className: i("text-muted-foreground text-sm", e),
|
|
1382
1398
|
...t
|
|
1383
1399
|
}
|
|
1384
1400
|
);
|
|
1385
1401
|
}
|
|
1386
|
-
const
|
|
1387
|
-
function
|
|
1388
|
-
const e =
|
|
1402
|
+
const St = "sidebar_state", yt = 3600 * 24 * 7, Nt = "16rem", Ct = "18rem", Tt = "3rem", Pt = "b", xe = l.createContext(null);
|
|
1403
|
+
function J() {
|
|
1404
|
+
const e = l.useContext(xe);
|
|
1389
1405
|
if (!e)
|
|
1390
1406
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
1391
1407
|
return e;
|
|
1392
1408
|
}
|
|
1393
|
-
function
|
|
1409
|
+
function Aa({
|
|
1394
1410
|
defaultOpen: e = !0,
|
|
1395
1411
|
open: t,
|
|
1396
|
-
onOpenChange:
|
|
1397
|
-
className:
|
|
1398
|
-
style:
|
|
1399
|
-
children:
|
|
1400
|
-
...
|
|
1401
|
-
}) {
|
|
1402
|
-
const d =
|
|
1403
|
-
(
|
|
1404
|
-
const
|
|
1405
|
-
|
|
1412
|
+
onOpenChange: a,
|
|
1413
|
+
className: o,
|
|
1414
|
+
style: n,
|
|
1415
|
+
children: s,
|
|
1416
|
+
...c
|
|
1417
|
+
}) {
|
|
1418
|
+
const d = ft(), [u, f] = l.useState(!1), [m, b] = l.useState(e), p = t ?? m, g = l.useCallback(
|
|
1419
|
+
(x) => {
|
|
1420
|
+
const C = typeof x == "function" ? x(p) : x;
|
|
1421
|
+
a ? a(C) : b(C), document.cookie = `${St}=${C}; path=/; max-age=${yt}`;
|
|
1406
1422
|
},
|
|
1407
|
-
[
|
|
1408
|
-
),
|
|
1409
|
-
|
|
1410
|
-
const
|
|
1411
|
-
|
|
1423
|
+
[a, p]
|
|
1424
|
+
), v = l.useCallback(() => d ? f((x) => !x) : g((x) => !x), [d, g, f]);
|
|
1425
|
+
l.useEffect(() => {
|
|
1426
|
+
const x = (C) => {
|
|
1427
|
+
C.key === Pt && (C.metaKey || C.ctrlKey) && (C.preventDefault(), v());
|
|
1412
1428
|
};
|
|
1413
|
-
return window.addEventListener("keydown",
|
|
1414
|
-
}, [
|
|
1415
|
-
const
|
|
1429
|
+
return window.addEventListener("keydown", x), () => window.removeEventListener("keydown", x);
|
|
1430
|
+
}, [v]);
|
|
1431
|
+
const T = p ? "expanded" : "collapsed", R = l.useMemo(
|
|
1416
1432
|
() => ({
|
|
1417
|
-
state:
|
|
1418
|
-
open:
|
|
1419
|
-
setOpen:
|
|
1433
|
+
state: T,
|
|
1434
|
+
open: p,
|
|
1435
|
+
setOpen: g,
|
|
1420
1436
|
isMobile: d,
|
|
1421
|
-
openMobile:
|
|
1422
|
-
setOpenMobile:
|
|
1423
|
-
toggleSidebar:
|
|
1437
|
+
openMobile: u,
|
|
1438
|
+
setOpenMobile: f,
|
|
1439
|
+
toggleSidebar: v
|
|
1424
1440
|
}),
|
|
1425
|
-
[
|
|
1441
|
+
[T, p, g, d, u, f, v]
|
|
1426
1442
|
);
|
|
1427
|
-
return /* @__PURE__ */
|
|
1443
|
+
return /* @__PURE__ */ r(xe.Provider, { value: R, children: /* @__PURE__ */ r(ve, { delayDuration: 0, children: /* @__PURE__ */ r(
|
|
1428
1444
|
"div",
|
|
1429
1445
|
{
|
|
1430
1446
|
"data-slot": "sidebar-wrapper",
|
|
1431
1447
|
style: {
|
|
1432
|
-
"--sidebar-width":
|
|
1433
|
-
"--sidebar-width-icon":
|
|
1434
|
-
...
|
|
1448
|
+
"--sidebar-width": Nt,
|
|
1449
|
+
"--sidebar-width-icon": Tt,
|
|
1450
|
+
...n
|
|
1435
1451
|
},
|
|
1436
|
-
className:
|
|
1452
|
+
className: i(
|
|
1437
1453
|
"group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",
|
|
1438
|
-
|
|
1454
|
+
o
|
|
1439
1455
|
),
|
|
1440
|
-
...
|
|
1441
|
-
children:
|
|
1456
|
+
...c,
|
|
1457
|
+
children: s
|
|
1442
1458
|
}
|
|
1443
1459
|
) }) });
|
|
1444
1460
|
}
|
|
1445
|
-
function
|
|
1461
|
+
function Da({
|
|
1446
1462
|
side: e = "left",
|
|
1447
1463
|
variant: t = "sidebar",
|
|
1448
|
-
collapsible:
|
|
1449
|
-
className:
|
|
1450
|
-
children:
|
|
1451
|
-
...
|
|
1464
|
+
collapsible: a = "offcanvas",
|
|
1465
|
+
className: o,
|
|
1466
|
+
children: n,
|
|
1467
|
+
...s
|
|
1452
1468
|
}) {
|
|
1453
|
-
const { isMobile:
|
|
1454
|
-
return
|
|
1469
|
+
const { isMobile: c, state: d, openMobile: u, setOpenMobile: f } = J();
|
|
1470
|
+
return a === "none" ? /* @__PURE__ */ r(
|
|
1455
1471
|
"div",
|
|
1456
1472
|
{
|
|
1457
1473
|
"data-slot": "sidebar",
|
|
1458
|
-
className:
|
|
1474
|
+
className: i(
|
|
1459
1475
|
"bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",
|
|
1460
|
-
|
|
1476
|
+
o
|
|
1461
1477
|
),
|
|
1462
|
-
...
|
|
1463
|
-
children:
|
|
1478
|
+
...s,
|
|
1479
|
+
children: n
|
|
1464
1480
|
}
|
|
1465
|
-
) :
|
|
1466
|
-
|
|
1481
|
+
) : c ? /* @__PURE__ */ r(pt, { open: u, onOpenChange: f, ...s, children: /* @__PURE__ */ h(
|
|
1482
|
+
ht,
|
|
1467
1483
|
{
|
|
1468
1484
|
"data-sidebar": "sidebar",
|
|
1469
1485
|
"data-slot": "sidebar",
|
|
1470
1486
|
"data-mobile": "true",
|
|
1471
1487
|
className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
|
|
1472
1488
|
style: {
|
|
1473
|
-
"--sidebar-width":
|
|
1489
|
+
"--sidebar-width": Ct
|
|
1474
1490
|
},
|
|
1475
1491
|
side: e,
|
|
1476
1492
|
children: [
|
|
1477
|
-
/* @__PURE__ */
|
|
1478
|
-
/* @__PURE__ */
|
|
1479
|
-
/* @__PURE__ */
|
|
1493
|
+
/* @__PURE__ */ h(vt, { className: "sr-only", children: [
|
|
1494
|
+
/* @__PURE__ */ r(xt, { children: "Sidebar" }),
|
|
1495
|
+
/* @__PURE__ */ r(wt, { children: "Displays the mobile sidebar." })
|
|
1480
1496
|
] }),
|
|
1481
|
-
/* @__PURE__ */
|
|
1497
|
+
/* @__PURE__ */ r("div", { className: "flex h-full w-full flex-col", children: n })
|
|
1482
1498
|
]
|
|
1483
1499
|
}
|
|
1484
|
-
) }) : /* @__PURE__ */
|
|
1500
|
+
) }) : /* @__PURE__ */ h(
|
|
1485
1501
|
"div",
|
|
1486
1502
|
{
|
|
1487
1503
|
className: "group peer text-sidebar-foreground hidden md:block",
|
|
1488
1504
|
"data-state": d,
|
|
1489
|
-
"data-collapsible": d === "collapsed" ?
|
|
1505
|
+
"data-collapsible": d === "collapsed" ? a : "",
|
|
1490
1506
|
"data-variant": t,
|
|
1491
1507
|
"data-side": e,
|
|
1492
1508
|
"data-slot": "sidebar",
|
|
1493
1509
|
children: [
|
|
1494
|
-
/* @__PURE__ */
|
|
1510
|
+
/* @__PURE__ */ r(
|
|
1495
1511
|
"div",
|
|
1496
1512
|
{
|
|
1497
1513
|
"data-slot": "sidebar-gap",
|
|
1498
|
-
className:
|
|
1514
|
+
className: i(
|
|
1499
1515
|
"relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
|
|
1500
1516
|
"group-data-[collapsible=offcanvas]:w-0",
|
|
1501
1517
|
"group-data-[side=right]:rotate-180",
|
|
@@ -1503,25 +1519,25 @@ function ga({
|
|
|
1503
1519
|
)
|
|
1504
1520
|
}
|
|
1505
1521
|
),
|
|
1506
|
-
/* @__PURE__ */
|
|
1522
|
+
/* @__PURE__ */ r(
|
|
1507
1523
|
"div",
|
|
1508
1524
|
{
|
|
1509
1525
|
"data-slot": "sidebar-container",
|
|
1510
|
-
className:
|
|
1526
|
+
className: i(
|
|
1511
1527
|
"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
1512
1528
|
e === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
|
|
1513
1529
|
// Adjust the padding for floating and inset variants.
|
|
1514
1530
|
t === "floating" || t === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",
|
|
1515
|
-
|
|
1531
|
+
o
|
|
1516
1532
|
),
|
|
1517
|
-
...
|
|
1518
|
-
children: /* @__PURE__ */
|
|
1533
|
+
...s,
|
|
1534
|
+
children: /* @__PURE__ */ r(
|
|
1519
1535
|
"div",
|
|
1520
1536
|
{
|
|
1521
1537
|
"data-sidebar": "sidebar",
|
|
1522
1538
|
"data-slot": "sidebar-inner",
|
|
1523
1539
|
className: "bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",
|
|
1524
|
-
children:
|
|
1540
|
+
children: n
|
|
1525
1541
|
}
|
|
1526
1542
|
)
|
|
1527
1543
|
}
|
|
@@ -1530,43 +1546,43 @@ function ga({
|
|
|
1530
1546
|
}
|
|
1531
1547
|
);
|
|
1532
1548
|
}
|
|
1533
|
-
function
|
|
1549
|
+
function Ia({
|
|
1534
1550
|
className: e,
|
|
1535
1551
|
onClick: t,
|
|
1536
|
-
...
|
|
1552
|
+
...a
|
|
1537
1553
|
}) {
|
|
1538
|
-
const { toggleSidebar:
|
|
1539
|
-
return /* @__PURE__ */
|
|
1540
|
-
|
|
1554
|
+
const { toggleSidebar: o } = J();
|
|
1555
|
+
return /* @__PURE__ */ h(
|
|
1556
|
+
ge,
|
|
1541
1557
|
{
|
|
1542
1558
|
"data-sidebar": "trigger",
|
|
1543
1559
|
"data-slot": "sidebar-trigger",
|
|
1544
1560
|
variant: "ghost",
|
|
1545
1561
|
size: "icon",
|
|
1546
|
-
className:
|
|
1547
|
-
onClick: (
|
|
1548
|
-
t?.(
|
|
1562
|
+
className: i("size-7", e),
|
|
1563
|
+
onClick: (n) => {
|
|
1564
|
+
t?.(n), o();
|
|
1549
1565
|
},
|
|
1550
|
-
...
|
|
1566
|
+
...a,
|
|
1551
1567
|
children: [
|
|
1552
|
-
/* @__PURE__ */
|
|
1553
|
-
/* @__PURE__ */
|
|
1568
|
+
/* @__PURE__ */ r($e, {}),
|
|
1569
|
+
/* @__PURE__ */ r("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
1554
1570
|
]
|
|
1555
1571
|
}
|
|
1556
1572
|
);
|
|
1557
1573
|
}
|
|
1558
|
-
function
|
|
1559
|
-
const { toggleSidebar:
|
|
1560
|
-
return /* @__PURE__ */
|
|
1574
|
+
function La({ className: e, ...t }) {
|
|
1575
|
+
const { toggleSidebar: a } = J();
|
|
1576
|
+
return /* @__PURE__ */ r(
|
|
1561
1577
|
"button",
|
|
1562
1578
|
{
|
|
1563
1579
|
"data-sidebar": "rail",
|
|
1564
1580
|
"data-slot": "sidebar-rail",
|
|
1565
1581
|
"aria-label": "Toggle Sidebar",
|
|
1566
1582
|
tabIndex: -1,
|
|
1567
|
-
onClick:
|
|
1583
|
+
onClick: a,
|
|
1568
1584
|
title: "Toggle Sidebar",
|
|
1569
|
-
className:
|
|
1585
|
+
className: i(
|
|
1570
1586
|
"hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex",
|
|
1571
1587
|
"in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
|
|
1572
1588
|
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
@@ -1579,12 +1595,12 @@ function ha({ className: e, ...t }) {
|
|
|
1579
1595
|
}
|
|
1580
1596
|
);
|
|
1581
1597
|
}
|
|
1582
|
-
function
|
|
1583
|
-
return /* @__PURE__ */
|
|
1598
|
+
function Oa({ className: e, ...t }) {
|
|
1599
|
+
return /* @__PURE__ */ r(
|
|
1584
1600
|
"main",
|
|
1585
1601
|
{
|
|
1586
1602
|
"data-slot": "sidebar-inset",
|
|
1587
|
-
className:
|
|
1603
|
+
className: i(
|
|
1588
1604
|
"bg-background relative flex w-full flex-1 flex-col",
|
|
1589
1605
|
"md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",
|
|
1590
1606
|
e
|
|
@@ -1593,63 +1609,63 @@ function xa({ className: e, ...t }) {
|
|
|
1593
1609
|
}
|
|
1594
1610
|
);
|
|
1595
1611
|
}
|
|
1596
|
-
function
|
|
1612
|
+
function Ba({
|
|
1597
1613
|
className: e,
|
|
1598
1614
|
...t
|
|
1599
1615
|
}) {
|
|
1600
|
-
return /* @__PURE__ */
|
|
1601
|
-
|
|
1616
|
+
return /* @__PURE__ */ r(
|
|
1617
|
+
it,
|
|
1602
1618
|
{
|
|
1603
1619
|
"data-slot": "sidebar-input",
|
|
1604
1620
|
"data-sidebar": "input",
|
|
1605
|
-
className:
|
|
1621
|
+
className: i("bg-background h-8 w-full shadow-none", e),
|
|
1606
1622
|
...t
|
|
1607
1623
|
}
|
|
1608
1624
|
);
|
|
1609
1625
|
}
|
|
1610
|
-
function
|
|
1611
|
-
return /* @__PURE__ */
|
|
1626
|
+
function Ha({ className: e, ...t }) {
|
|
1627
|
+
return /* @__PURE__ */ r(
|
|
1612
1628
|
"div",
|
|
1613
1629
|
{
|
|
1614
1630
|
"data-slot": "sidebar-header",
|
|
1615
1631
|
"data-sidebar": "header",
|
|
1616
|
-
className:
|
|
1632
|
+
className: i("flex flex-col gap-2 p-2", e),
|
|
1617
1633
|
...t
|
|
1618
1634
|
}
|
|
1619
1635
|
);
|
|
1620
1636
|
}
|
|
1621
|
-
function
|
|
1622
|
-
return /* @__PURE__ */
|
|
1637
|
+
function Wa({ className: e, ...t }) {
|
|
1638
|
+
return /* @__PURE__ */ r(
|
|
1623
1639
|
"div",
|
|
1624
1640
|
{
|
|
1625
1641
|
"data-slot": "sidebar-footer",
|
|
1626
1642
|
"data-sidebar": "footer",
|
|
1627
|
-
className:
|
|
1643
|
+
className: i("flex flex-col gap-2 p-2", e),
|
|
1628
1644
|
...t
|
|
1629
1645
|
}
|
|
1630
1646
|
);
|
|
1631
1647
|
}
|
|
1632
|
-
function
|
|
1648
|
+
function Ua({
|
|
1633
1649
|
className: e,
|
|
1634
1650
|
...t
|
|
1635
1651
|
}) {
|
|
1636
|
-
return /* @__PURE__ */
|
|
1637
|
-
|
|
1652
|
+
return /* @__PURE__ */ r(
|
|
1653
|
+
mt,
|
|
1638
1654
|
{
|
|
1639
1655
|
"data-slot": "sidebar-separator",
|
|
1640
1656
|
"data-sidebar": "separator",
|
|
1641
|
-
className:
|
|
1657
|
+
className: i("bg-sidebar-border mx-2 w-auto", e),
|
|
1642
1658
|
...t
|
|
1643
1659
|
}
|
|
1644
1660
|
);
|
|
1645
1661
|
}
|
|
1646
|
-
function
|
|
1647
|
-
return /* @__PURE__ */
|
|
1662
|
+
function Va({ className: e, ...t }) {
|
|
1663
|
+
return /* @__PURE__ */ r(
|
|
1648
1664
|
"div",
|
|
1649
1665
|
{
|
|
1650
1666
|
"data-slot": "sidebar-content",
|
|
1651
1667
|
"data-sidebar": "content",
|
|
1652
|
-
className:
|
|
1668
|
+
className: i(
|
|
1653
1669
|
"flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
1654
1670
|
e
|
|
1655
1671
|
),
|
|
@@ -1657,94 +1673,94 @@ function za({ className: e, ...t }) {
|
|
|
1657
1673
|
}
|
|
1658
1674
|
);
|
|
1659
1675
|
}
|
|
1660
|
-
function
|
|
1661
|
-
return /* @__PURE__ */
|
|
1676
|
+
function ja({ className: e, ...t }) {
|
|
1677
|
+
return /* @__PURE__ */ r(
|
|
1662
1678
|
"div",
|
|
1663
1679
|
{
|
|
1664
1680
|
"data-slot": "sidebar-group",
|
|
1665
1681
|
"data-sidebar": "group",
|
|
1666
|
-
className:
|
|
1682
|
+
className: i("relative flex w-full min-w-0 flex-col p-2", e),
|
|
1667
1683
|
...t
|
|
1668
1684
|
}
|
|
1669
1685
|
);
|
|
1670
1686
|
}
|
|
1671
|
-
function
|
|
1687
|
+
function Fa({
|
|
1672
1688
|
className: e,
|
|
1673
1689
|
asChild: t = !1,
|
|
1674
|
-
...
|
|
1690
|
+
...a
|
|
1675
1691
|
}) {
|
|
1676
|
-
return /* @__PURE__ */
|
|
1677
|
-
t ?
|
|
1692
|
+
return /* @__PURE__ */ r(
|
|
1693
|
+
t ? E : "div",
|
|
1678
1694
|
{
|
|
1679
1695
|
"data-slot": "sidebar-group-label",
|
|
1680
1696
|
"data-sidebar": "group-label",
|
|
1681
|
-
className:
|
|
1697
|
+
className: i(
|
|
1682
1698
|
"text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
1683
1699
|
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
|
|
1684
1700
|
e
|
|
1685
1701
|
),
|
|
1686
|
-
...
|
|
1702
|
+
...a
|
|
1687
1703
|
}
|
|
1688
1704
|
);
|
|
1689
1705
|
}
|
|
1690
|
-
function
|
|
1706
|
+
function Xa({
|
|
1691
1707
|
className: e,
|
|
1692
1708
|
asChild: t = !1,
|
|
1693
|
-
...
|
|
1709
|
+
...a
|
|
1694
1710
|
}) {
|
|
1695
|
-
return /* @__PURE__ */
|
|
1696
|
-
t ?
|
|
1711
|
+
return /* @__PURE__ */ r(
|
|
1712
|
+
t ? E : "button",
|
|
1697
1713
|
{
|
|
1698
1714
|
"data-slot": "sidebar-group-action",
|
|
1699
1715
|
"data-sidebar": "group-action",
|
|
1700
|
-
className:
|
|
1716
|
+
className: i(
|
|
1701
1717
|
"text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
1702
1718
|
// Increases the hit area of the button on mobile.
|
|
1703
1719
|
"after:absolute after:-inset-2 md:after:hidden",
|
|
1704
1720
|
"group-data-[collapsible=icon]:hidden",
|
|
1705
1721
|
e
|
|
1706
1722
|
),
|
|
1707
|
-
...
|
|
1723
|
+
...a
|
|
1708
1724
|
}
|
|
1709
1725
|
);
|
|
1710
1726
|
}
|
|
1711
|
-
function
|
|
1727
|
+
function Ya({
|
|
1712
1728
|
className: e,
|
|
1713
1729
|
...t
|
|
1714
1730
|
}) {
|
|
1715
|
-
return /* @__PURE__ */
|
|
1731
|
+
return /* @__PURE__ */ r(
|
|
1716
1732
|
"div",
|
|
1717
1733
|
{
|
|
1718
1734
|
"data-slot": "sidebar-group-content",
|
|
1719
1735
|
"data-sidebar": "group-content",
|
|
1720
|
-
className:
|
|
1736
|
+
className: i("w-full text-sm", e),
|
|
1721
1737
|
...t
|
|
1722
1738
|
}
|
|
1723
1739
|
);
|
|
1724
1740
|
}
|
|
1725
|
-
function
|
|
1726
|
-
return /* @__PURE__ */
|
|
1741
|
+
function $a({ className: e, ...t }) {
|
|
1742
|
+
return /* @__PURE__ */ r(
|
|
1727
1743
|
"ul",
|
|
1728
1744
|
{
|
|
1729
1745
|
"data-slot": "sidebar-menu",
|
|
1730
1746
|
"data-sidebar": "menu",
|
|
1731
|
-
className:
|
|
1747
|
+
className: i("flex w-full min-w-0 flex-col gap-1", e),
|
|
1732
1748
|
...t
|
|
1733
1749
|
}
|
|
1734
1750
|
);
|
|
1735
1751
|
}
|
|
1736
|
-
function
|
|
1737
|
-
return /* @__PURE__ */
|
|
1752
|
+
function Ga({ className: e, ...t }) {
|
|
1753
|
+
return /* @__PURE__ */ r(
|
|
1738
1754
|
"li",
|
|
1739
1755
|
{
|
|
1740
1756
|
"data-slot": "sidebar-menu-item",
|
|
1741
1757
|
"data-sidebar": "menu-item",
|
|
1742
|
-
className:
|
|
1758
|
+
className: i("group/menu-item relative", e),
|
|
1743
1759
|
...t
|
|
1744
1760
|
}
|
|
1745
1761
|
);
|
|
1746
1762
|
}
|
|
1747
|
-
const
|
|
1763
|
+
const zt = oe(
|
|
1748
1764
|
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
1749
1765
|
{
|
|
1750
1766
|
variants: {
|
|
@@ -1764,53 +1780,53 @@ const Oe = P(
|
|
|
1764
1780
|
}
|
|
1765
1781
|
}
|
|
1766
1782
|
);
|
|
1767
|
-
function
|
|
1783
|
+
function Ka({
|
|
1768
1784
|
asChild: e = !1,
|
|
1769
1785
|
isActive: t = !1,
|
|
1770
|
-
variant:
|
|
1771
|
-
size:
|
|
1772
|
-
tooltip:
|
|
1773
|
-
className:
|
|
1774
|
-
...
|
|
1786
|
+
variant: a = "default",
|
|
1787
|
+
size: o = "default",
|
|
1788
|
+
tooltip: n,
|
|
1789
|
+
className: s,
|
|
1790
|
+
...c
|
|
1775
1791
|
}) {
|
|
1776
|
-
const d = e ?
|
|
1792
|
+
const d = e ? E : "button", { isMobile: u, state: f } = J(), m = /* @__PURE__ */ r(
|
|
1777
1793
|
d,
|
|
1778
1794
|
{
|
|
1779
1795
|
"data-slot": "sidebar-menu-button",
|
|
1780
1796
|
"data-sidebar": "menu-button",
|
|
1781
|
-
"data-size":
|
|
1797
|
+
"data-size": o,
|
|
1782
1798
|
"data-active": t,
|
|
1783
|
-
className:
|
|
1784
|
-
...
|
|
1799
|
+
className: i(zt({ variant: a, size: o }), s),
|
|
1800
|
+
...c
|
|
1785
1801
|
}
|
|
1786
1802
|
);
|
|
1787
|
-
return
|
|
1788
|
-
children:
|
|
1789
|
-
}), /* @__PURE__ */
|
|
1790
|
-
/* @__PURE__ */
|
|
1791
|
-
/* @__PURE__ */
|
|
1792
|
-
|
|
1803
|
+
return n ? (typeof n == "string" && (n = {
|
|
1804
|
+
children: n
|
|
1805
|
+
}), /* @__PURE__ */ h(st, { children: [
|
|
1806
|
+
/* @__PURE__ */ r(lt, { asChild: !0, children: m }),
|
|
1807
|
+
/* @__PURE__ */ r(
|
|
1808
|
+
dt,
|
|
1793
1809
|
{
|
|
1794
1810
|
side: "right",
|
|
1795
1811
|
align: "center",
|
|
1796
|
-
hidden:
|
|
1797
|
-
...
|
|
1812
|
+
hidden: f !== "collapsed" || u,
|
|
1813
|
+
...n
|
|
1798
1814
|
}
|
|
1799
1815
|
)
|
|
1800
|
-
] })) :
|
|
1816
|
+
] })) : m;
|
|
1801
1817
|
}
|
|
1802
|
-
function
|
|
1818
|
+
function qa({
|
|
1803
1819
|
className: e,
|
|
1804
1820
|
asChild: t = !1,
|
|
1805
|
-
showOnHover:
|
|
1806
|
-
...
|
|
1821
|
+
showOnHover: a = !1,
|
|
1822
|
+
...o
|
|
1807
1823
|
}) {
|
|
1808
|
-
return /* @__PURE__ */
|
|
1809
|
-
t ?
|
|
1824
|
+
return /* @__PURE__ */ r(
|
|
1825
|
+
t ? E : "button",
|
|
1810
1826
|
{
|
|
1811
1827
|
"data-slot": "sidebar-menu-action",
|
|
1812
1828
|
"data-sidebar": "menu-action",
|
|
1813
|
-
className:
|
|
1829
|
+
className: i(
|
|
1814
1830
|
"text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
1815
1831
|
// Increases the hit area of the button on mobile.
|
|
1816
1832
|
"after:absolute after:-inset-2 md:after:hidden",
|
|
@@ -1818,23 +1834,23 @@ function Pa({
|
|
|
1818
1834
|
"peer-data-[size=default]/menu-button:top-1.5",
|
|
1819
1835
|
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
1820
1836
|
"group-data-[collapsible=icon]:hidden",
|
|
1821
|
-
|
|
1837
|
+
a && "peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",
|
|
1822
1838
|
e
|
|
1823
1839
|
),
|
|
1824
|
-
...
|
|
1840
|
+
...o
|
|
1825
1841
|
}
|
|
1826
1842
|
);
|
|
1827
1843
|
}
|
|
1828
|
-
function
|
|
1844
|
+
function Ja({
|
|
1829
1845
|
className: e,
|
|
1830
1846
|
...t
|
|
1831
1847
|
}) {
|
|
1832
|
-
return /* @__PURE__ */
|
|
1848
|
+
return /* @__PURE__ */ r(
|
|
1833
1849
|
"div",
|
|
1834
1850
|
{
|
|
1835
1851
|
"data-slot": "sidebar-menu-badge",
|
|
1836
1852
|
"data-sidebar": "menu-badge",
|
|
1837
|
-
className:
|
|
1853
|
+
className: i(
|
|
1838
1854
|
"text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none",
|
|
1839
1855
|
"peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
|
|
1840
1856
|
"peer-data-[size=sm]/menu-button:top-1",
|
|
@@ -1847,34 +1863,34 @@ function Ra({
|
|
|
1847
1863
|
}
|
|
1848
1864
|
);
|
|
1849
1865
|
}
|
|
1850
|
-
function
|
|
1866
|
+
function Qa({
|
|
1851
1867
|
className: e,
|
|
1852
1868
|
showIcon: t = !1,
|
|
1853
|
-
...
|
|
1869
|
+
...a
|
|
1854
1870
|
}) {
|
|
1855
|
-
const
|
|
1856
|
-
return /* @__PURE__ */
|
|
1871
|
+
const o = l.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
|
|
1872
|
+
return /* @__PURE__ */ h(
|
|
1857
1873
|
"div",
|
|
1858
1874
|
{
|
|
1859
1875
|
"data-slot": "sidebar-menu-skeleton",
|
|
1860
1876
|
"data-sidebar": "menu-skeleton",
|
|
1861
|
-
className:
|
|
1862
|
-
...
|
|
1877
|
+
className: i("flex h-8 items-center gap-2 rounded-md px-2", e),
|
|
1878
|
+
...a,
|
|
1863
1879
|
children: [
|
|
1864
|
-
t && /* @__PURE__ */
|
|
1865
|
-
|
|
1880
|
+
t && /* @__PURE__ */ r(
|
|
1881
|
+
ce,
|
|
1866
1882
|
{
|
|
1867
1883
|
className: "size-4 rounded-md",
|
|
1868
1884
|
"data-sidebar": "menu-skeleton-icon"
|
|
1869
1885
|
}
|
|
1870
1886
|
),
|
|
1871
|
-
/* @__PURE__ */
|
|
1872
|
-
|
|
1887
|
+
/* @__PURE__ */ r(
|
|
1888
|
+
ce,
|
|
1873
1889
|
{
|
|
1874
1890
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
1875
1891
|
"data-sidebar": "menu-skeleton-text",
|
|
1876
1892
|
style: {
|
|
1877
|
-
"--skeleton-width":
|
|
1893
|
+
"--skeleton-width": o
|
|
1878
1894
|
}
|
|
1879
1895
|
}
|
|
1880
1896
|
)
|
|
@@ -1882,13 +1898,13 @@ function Ba({
|
|
|
1882
1898
|
}
|
|
1883
1899
|
);
|
|
1884
1900
|
}
|
|
1885
|
-
function
|
|
1886
|
-
return /* @__PURE__ */
|
|
1901
|
+
function Za({ className: e, ...t }) {
|
|
1902
|
+
return /* @__PURE__ */ r(
|
|
1887
1903
|
"ul",
|
|
1888
1904
|
{
|
|
1889
1905
|
"data-slot": "sidebar-menu-sub",
|
|
1890
1906
|
"data-sidebar": "menu-sub",
|
|
1891
|
-
className:
|
|
1907
|
+
className: i(
|
|
1892
1908
|
"border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5",
|
|
1893
1909
|
"group-data-[collapsible=icon]:hidden",
|
|
1894
1910
|
e
|
|
@@ -1897,209 +1913,963 @@ function La({ className: e, ...t }) {
|
|
|
1897
1913
|
}
|
|
1898
1914
|
);
|
|
1899
1915
|
}
|
|
1900
|
-
function
|
|
1916
|
+
function eo({
|
|
1901
1917
|
className: e,
|
|
1902
1918
|
...t
|
|
1903
1919
|
}) {
|
|
1904
|
-
return /* @__PURE__ */
|
|
1920
|
+
return /* @__PURE__ */ r(
|
|
1905
1921
|
"li",
|
|
1906
1922
|
{
|
|
1907
1923
|
"data-slot": "sidebar-menu-sub-item",
|
|
1908
1924
|
"data-sidebar": "menu-sub-item",
|
|
1909
|
-
className:
|
|
1925
|
+
className: i("group/menu-sub-item relative", e),
|
|
1910
1926
|
...t
|
|
1911
1927
|
}
|
|
1912
1928
|
);
|
|
1913
1929
|
}
|
|
1914
|
-
function
|
|
1930
|
+
function to({
|
|
1915
1931
|
asChild: e = !1,
|
|
1916
1932
|
size: t = "md",
|
|
1917
|
-
isActive:
|
|
1918
|
-
className:
|
|
1919
|
-
...
|
|
1933
|
+
isActive: a = !1,
|
|
1934
|
+
className: o,
|
|
1935
|
+
...n
|
|
1920
1936
|
}) {
|
|
1921
|
-
return /* @__PURE__ */
|
|
1922
|
-
e ?
|
|
1937
|
+
return /* @__PURE__ */ r(
|
|
1938
|
+
e ? E : "a",
|
|
1923
1939
|
{
|
|
1924
1940
|
"data-slot": "sidebar-menu-sub-button",
|
|
1925
1941
|
"data-sidebar": "menu-sub-button",
|
|
1926
1942
|
"data-size": t,
|
|
1927
|
-
"data-active":
|
|
1928
|
-
className:
|
|
1943
|
+
"data-active": a,
|
|
1944
|
+
className: i(
|
|
1929
1945
|
"text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
1930
1946
|
"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
|
|
1931
1947
|
t === "sm" && "text-xs",
|
|
1932
1948
|
t === "md" && "text-sm",
|
|
1933
1949
|
"group-data-[collapsible=icon]:hidden",
|
|
1934
|
-
|
|
1950
|
+
o
|
|
1935
1951
|
),
|
|
1936
|
-
...
|
|
1952
|
+
...n
|
|
1937
1953
|
}
|
|
1938
1954
|
);
|
|
1939
1955
|
}
|
|
1940
|
-
|
|
1956
|
+
var _t = [
|
|
1957
|
+
"a",
|
|
1958
|
+
"button",
|
|
1959
|
+
"div",
|
|
1960
|
+
"form",
|
|
1961
|
+
"h2",
|
|
1962
|
+
"h3",
|
|
1963
|
+
"img",
|
|
1964
|
+
"input",
|
|
1965
|
+
"label",
|
|
1966
|
+
"li",
|
|
1967
|
+
"nav",
|
|
1968
|
+
"ol",
|
|
1969
|
+
"p",
|
|
1970
|
+
"select",
|
|
1971
|
+
"span",
|
|
1972
|
+
"svg",
|
|
1973
|
+
"ul"
|
|
1974
|
+
], W = _t.reduce((e, t) => {
|
|
1975
|
+
const a = He(`Primitive.${t}`), o = l.forwardRef((n, s) => {
|
|
1976
|
+
const { asChild: c, ...d } = n, u = c ? a : t;
|
|
1977
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ r(u, { ...d, ref: s });
|
|
1978
|
+
});
|
|
1979
|
+
return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
|
|
1980
|
+
}, {});
|
|
1981
|
+
function ue(e, t) {
|
|
1982
|
+
if (typeof e == "function")
|
|
1983
|
+
return e(t);
|
|
1984
|
+
e != null && (e.current = t);
|
|
1985
|
+
}
|
|
1986
|
+
function Rt(...e) {
|
|
1987
|
+
return (t) => {
|
|
1988
|
+
let a = !1;
|
|
1989
|
+
const o = e.map((n) => {
|
|
1990
|
+
const s = ue(n, t);
|
|
1991
|
+
return !a && typeof s == "function" && (a = !0), s;
|
|
1992
|
+
});
|
|
1993
|
+
if (a)
|
|
1994
|
+
return () => {
|
|
1995
|
+
for (let n = 0; n < o.length; n++) {
|
|
1996
|
+
const s = o[n];
|
|
1997
|
+
typeof s == "function" ? s() : ue(e[n], null);
|
|
1998
|
+
}
|
|
1999
|
+
};
|
|
2000
|
+
};
|
|
2001
|
+
}
|
|
2002
|
+
function I(...e) {
|
|
2003
|
+
return l.useCallback(Rt(...e), e);
|
|
2004
|
+
}
|
|
2005
|
+
var ae = globalThis?.document ? l.useLayoutEffect : () => {
|
|
2006
|
+
};
|
|
2007
|
+
function kt(e, t) {
|
|
2008
|
+
return l.useReducer((a, o) => t[a][o] ?? a, e);
|
|
2009
|
+
}
|
|
2010
|
+
var U = (e) => {
|
|
2011
|
+
const { present: t, children: a } = e, o = Et(t), n = typeof a == "function" ? a({ present: o.isPresent }) : l.Children.only(a), s = I(o.ref, Mt(n));
|
|
2012
|
+
return typeof a == "function" || o.isPresent ? l.cloneElement(n, { ref: s }) : null;
|
|
2013
|
+
};
|
|
2014
|
+
U.displayName = "Presence";
|
|
2015
|
+
function Et(e) {
|
|
2016
|
+
const [t, a] = l.useState(), o = l.useRef(null), n = l.useRef(e), s = l.useRef("none"), c = e ? "mounted" : "unmounted", [d, u] = kt(c, {
|
|
2017
|
+
mounted: {
|
|
2018
|
+
UNMOUNT: "unmounted",
|
|
2019
|
+
ANIMATION_OUT: "unmountSuspended"
|
|
2020
|
+
},
|
|
2021
|
+
unmountSuspended: {
|
|
2022
|
+
MOUNT: "mounted",
|
|
2023
|
+
ANIMATION_END: "unmounted"
|
|
2024
|
+
},
|
|
2025
|
+
unmounted: {
|
|
2026
|
+
MOUNT: "mounted"
|
|
2027
|
+
}
|
|
2028
|
+
});
|
|
2029
|
+
return l.useEffect(() => {
|
|
2030
|
+
const f = Y(o.current);
|
|
2031
|
+
s.current = d === "mounted" ? f : "none";
|
|
2032
|
+
}, [d]), ae(() => {
|
|
2033
|
+
const f = o.current, m = n.current;
|
|
2034
|
+
if (m !== e) {
|
|
2035
|
+
const p = s.current, g = Y(f);
|
|
2036
|
+
e ? u("MOUNT") : g === "none" || f?.display === "none" ? u("UNMOUNT") : u(m && p !== g ? "ANIMATION_OUT" : "UNMOUNT"), n.current = e;
|
|
2037
|
+
}
|
|
2038
|
+
}, [e, u]), ae(() => {
|
|
2039
|
+
if (t) {
|
|
2040
|
+
let f;
|
|
2041
|
+
const m = t.ownerDocument.defaultView ?? window, b = (g) => {
|
|
2042
|
+
const T = Y(o.current).includes(g.animationName);
|
|
2043
|
+
if (g.target === t && T && (u("ANIMATION_END"), !n.current)) {
|
|
2044
|
+
const R = t.style.animationFillMode;
|
|
2045
|
+
t.style.animationFillMode = "forwards", f = m.setTimeout(() => {
|
|
2046
|
+
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = R);
|
|
2047
|
+
});
|
|
2048
|
+
}
|
|
2049
|
+
}, p = (g) => {
|
|
2050
|
+
g.target === t && (s.current = Y(o.current));
|
|
2051
|
+
};
|
|
2052
|
+
return t.addEventListener("animationstart", p), t.addEventListener("animationcancel", b), t.addEventListener("animationend", b), () => {
|
|
2053
|
+
m.clearTimeout(f), t.removeEventListener("animationstart", p), t.removeEventListener("animationcancel", b), t.removeEventListener("animationend", b);
|
|
2054
|
+
};
|
|
2055
|
+
} else
|
|
2056
|
+
u("ANIMATION_END");
|
|
2057
|
+
}, [t, u]), {
|
|
2058
|
+
isPresent: ["mounted", "unmountSuspended"].includes(d),
|
|
2059
|
+
ref: l.useCallback((f) => {
|
|
2060
|
+
o.current = f ? getComputedStyle(f) : null, a(f);
|
|
2061
|
+
}, [])
|
|
2062
|
+
};
|
|
2063
|
+
}
|
|
2064
|
+
function Y(e) {
|
|
2065
|
+
return e?.animationName || "none";
|
|
2066
|
+
}
|
|
2067
|
+
function Mt(e) {
|
|
2068
|
+
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, a = t && "isReactWarning" in t && t.isReactWarning;
|
|
2069
|
+
return a ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, a = t && "isReactWarning" in t && t.isReactWarning, a ? e.props.ref : e.props.ref || e.ref);
|
|
2070
|
+
}
|
|
2071
|
+
function At(e, t = []) {
|
|
2072
|
+
let a = [];
|
|
2073
|
+
function o(s, c) {
|
|
2074
|
+
const d = l.createContext(c), u = a.length;
|
|
2075
|
+
a = [...a, c];
|
|
2076
|
+
const f = (b) => {
|
|
2077
|
+
const { scope: p, children: g, ...v } = b, T = p?.[e]?.[u] || d, R = l.useMemo(() => v, Object.values(v));
|
|
2078
|
+
return /* @__PURE__ */ r(T.Provider, { value: R, children: g });
|
|
2079
|
+
};
|
|
2080
|
+
f.displayName = s + "Provider";
|
|
2081
|
+
function m(b, p) {
|
|
2082
|
+
const g = p?.[e]?.[u] || d, v = l.useContext(g);
|
|
2083
|
+
if (v) return v;
|
|
2084
|
+
if (c !== void 0) return c;
|
|
2085
|
+
throw new Error(`\`${b}\` must be used within \`${s}\``);
|
|
2086
|
+
}
|
|
2087
|
+
return [f, m];
|
|
2088
|
+
}
|
|
2089
|
+
const n = () => {
|
|
2090
|
+
const s = a.map((c) => l.createContext(c));
|
|
2091
|
+
return function(d) {
|
|
2092
|
+
const u = d?.[e] || s;
|
|
2093
|
+
return l.useMemo(
|
|
2094
|
+
() => ({ [`__scope${e}`]: { ...d, [e]: u } }),
|
|
2095
|
+
[d, u]
|
|
2096
|
+
);
|
|
2097
|
+
};
|
|
2098
|
+
};
|
|
2099
|
+
return n.scopeName = e, [o, Dt(n, ...t)];
|
|
2100
|
+
}
|
|
2101
|
+
function Dt(...e) {
|
|
2102
|
+
const t = e[0];
|
|
2103
|
+
if (e.length === 1) return t;
|
|
2104
|
+
const a = () => {
|
|
2105
|
+
const o = e.map((n) => ({
|
|
2106
|
+
useScope: n(),
|
|
2107
|
+
scopeName: n.scopeName
|
|
2108
|
+
}));
|
|
2109
|
+
return function(s) {
|
|
2110
|
+
const c = o.reduce((d, { useScope: u, scopeName: f }) => {
|
|
2111
|
+
const b = u(s)[`__scope${f}`];
|
|
2112
|
+
return { ...d, ...b };
|
|
2113
|
+
}, {});
|
|
2114
|
+
return l.useMemo(() => ({ [`__scope${t.scopeName}`]: c }), [c]);
|
|
2115
|
+
};
|
|
2116
|
+
};
|
|
2117
|
+
return a.scopeName = t.scopeName, a;
|
|
2118
|
+
}
|
|
2119
|
+
function A(e) {
|
|
2120
|
+
const t = l.useRef(e);
|
|
2121
|
+
return l.useEffect(() => {
|
|
2122
|
+
t.current = e;
|
|
2123
|
+
}), l.useMemo(() => (...a) => t.current?.(...a), []);
|
|
2124
|
+
}
|
|
2125
|
+
var It = l.createContext(void 0);
|
|
2126
|
+
function Lt(e) {
|
|
2127
|
+
const t = l.useContext(It);
|
|
2128
|
+
return e || t || "ltr";
|
|
2129
|
+
}
|
|
2130
|
+
function Ot(e, [t, a]) {
|
|
2131
|
+
return Math.min(a, Math.max(t, e));
|
|
2132
|
+
}
|
|
2133
|
+
function D(e, t, { checkForDefaultPrevented: a = !0 } = {}) {
|
|
2134
|
+
return function(n) {
|
|
2135
|
+
if (e?.(n), a === !1 || !n.defaultPrevented)
|
|
2136
|
+
return t?.(n);
|
|
2137
|
+
};
|
|
2138
|
+
}
|
|
2139
|
+
function Bt(e, t) {
|
|
2140
|
+
return l.useReducer((a, o) => t[a][o] ?? a, e);
|
|
2141
|
+
}
|
|
2142
|
+
var se = "ScrollArea", [we, ro] = At(se), [Ht, P] = we(se), Se = l.forwardRef(
|
|
2143
|
+
(e, t) => {
|
|
2144
|
+
const {
|
|
2145
|
+
__scopeScrollArea: a,
|
|
2146
|
+
type: o = "hover",
|
|
2147
|
+
dir: n,
|
|
2148
|
+
scrollHideDelay: s = 600,
|
|
2149
|
+
...c
|
|
2150
|
+
} = e, [d, u] = l.useState(null), [f, m] = l.useState(null), [b, p] = l.useState(null), [g, v] = l.useState(null), [T, R] = l.useState(null), [x, C] = l.useState(0), [ee, V] = l.useState(0), [j, H] = l.useState(!1), [F, X] = l.useState(!1), w = I(t, (L) => u(L)), z = Lt(n);
|
|
2151
|
+
return /* @__PURE__ */ r(
|
|
2152
|
+
Ht,
|
|
2153
|
+
{
|
|
2154
|
+
scope: a,
|
|
2155
|
+
type: o,
|
|
2156
|
+
dir: z,
|
|
2157
|
+
scrollHideDelay: s,
|
|
2158
|
+
scrollArea: d,
|
|
2159
|
+
viewport: f,
|
|
2160
|
+
onViewportChange: m,
|
|
2161
|
+
content: b,
|
|
2162
|
+
onContentChange: p,
|
|
2163
|
+
scrollbarX: g,
|
|
2164
|
+
onScrollbarXChange: v,
|
|
2165
|
+
scrollbarXEnabled: j,
|
|
2166
|
+
onScrollbarXEnabledChange: H,
|
|
2167
|
+
scrollbarY: T,
|
|
2168
|
+
onScrollbarYChange: R,
|
|
2169
|
+
scrollbarYEnabled: F,
|
|
2170
|
+
onScrollbarYEnabledChange: X,
|
|
2171
|
+
onCornerWidthChange: C,
|
|
2172
|
+
onCornerHeightChange: V,
|
|
2173
|
+
children: /* @__PURE__ */ r(
|
|
2174
|
+
W.div,
|
|
2175
|
+
{
|
|
2176
|
+
dir: z,
|
|
2177
|
+
...c,
|
|
2178
|
+
ref: w,
|
|
2179
|
+
style: {
|
|
2180
|
+
position: "relative",
|
|
2181
|
+
// Pass corner sizes as CSS vars to reduce re-renders of context consumers
|
|
2182
|
+
"--radix-scroll-area-corner-width": x + "px",
|
|
2183
|
+
"--radix-scroll-area-corner-height": ee + "px",
|
|
2184
|
+
...e.style
|
|
2185
|
+
}
|
|
2186
|
+
}
|
|
2187
|
+
)
|
|
2188
|
+
}
|
|
2189
|
+
);
|
|
2190
|
+
}
|
|
2191
|
+
);
|
|
2192
|
+
Se.displayName = se;
|
|
2193
|
+
var ye = "ScrollAreaViewport", Ne = l.forwardRef(
|
|
2194
|
+
(e, t) => {
|
|
2195
|
+
const { __scopeScrollArea: a, children: o, nonce: n, ...s } = e, c = P(ye, a), d = l.useRef(null), u = I(t, d, c.onViewportChange);
|
|
2196
|
+
return /* @__PURE__ */ h(De, { children: [
|
|
2197
|
+
/* @__PURE__ */ r(
|
|
2198
|
+
"style",
|
|
2199
|
+
{
|
|
2200
|
+
dangerouslySetInnerHTML: {
|
|
2201
|
+
__html: "[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"
|
|
2202
|
+
},
|
|
2203
|
+
nonce: n
|
|
2204
|
+
}
|
|
2205
|
+
),
|
|
2206
|
+
/* @__PURE__ */ r(
|
|
2207
|
+
W.div,
|
|
2208
|
+
{
|
|
2209
|
+
"data-radix-scroll-area-viewport": "",
|
|
2210
|
+
...s,
|
|
2211
|
+
ref: u,
|
|
2212
|
+
style: {
|
|
2213
|
+
/**
|
|
2214
|
+
* We don't support `visible` because the intention is to have at least one scrollbar
|
|
2215
|
+
* if this component is used and `visible` will behave like `auto` in that case
|
|
2216
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/overflow#description
|
|
2217
|
+
*
|
|
2218
|
+
* We don't handle `auto` because the intention is for the native implementation
|
|
2219
|
+
* to be hidden if using this component. We just want to ensure the node is scrollable
|
|
2220
|
+
* so could have used either `scroll` or `auto` here. We picked `scroll` to prevent
|
|
2221
|
+
* the browser from having to work out whether to render native scrollbars or not,
|
|
2222
|
+
* we tell it to with the intention of hiding them in CSS.
|
|
2223
|
+
*/
|
|
2224
|
+
overflowX: c.scrollbarXEnabled ? "scroll" : "hidden",
|
|
2225
|
+
overflowY: c.scrollbarYEnabled ? "scroll" : "hidden",
|
|
2226
|
+
...e.style
|
|
2227
|
+
},
|
|
2228
|
+
children: /* @__PURE__ */ r("div", { ref: c.onContentChange, style: { minWidth: "100%", display: "table" }, children: o })
|
|
2229
|
+
}
|
|
2230
|
+
)
|
|
2231
|
+
] });
|
|
2232
|
+
}
|
|
2233
|
+
);
|
|
2234
|
+
Ne.displayName = ye;
|
|
2235
|
+
var _ = "ScrollAreaScrollbar", Ce = l.forwardRef(
|
|
2236
|
+
(e, t) => {
|
|
2237
|
+
const { forceMount: a, ...o } = e, n = P(_, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: c } = n, d = e.orientation === "horizontal";
|
|
2238
|
+
return l.useEffect(() => (d ? s(!0) : c(!0), () => {
|
|
2239
|
+
d ? s(!1) : c(!1);
|
|
2240
|
+
}), [d, s, c]), n.type === "hover" ? /* @__PURE__ */ r(Wt, { ...o, ref: t, forceMount: a }) : n.type === "scroll" ? /* @__PURE__ */ r(Ut, { ...o, ref: t, forceMount: a }) : n.type === "auto" ? /* @__PURE__ */ r(Te, { ...o, ref: t, forceMount: a }) : n.type === "always" ? /* @__PURE__ */ r(le, { ...o, ref: t }) : null;
|
|
2241
|
+
}
|
|
2242
|
+
);
|
|
2243
|
+
Ce.displayName = _;
|
|
2244
|
+
var Wt = l.forwardRef((e, t) => {
|
|
2245
|
+
const { forceMount: a, ...o } = e, n = P(_, e.__scopeScrollArea), [s, c] = l.useState(!1);
|
|
2246
|
+
return l.useEffect(() => {
|
|
2247
|
+
const d = n.scrollArea;
|
|
2248
|
+
let u = 0;
|
|
2249
|
+
if (d) {
|
|
2250
|
+
const f = () => {
|
|
2251
|
+
window.clearTimeout(u), c(!0);
|
|
2252
|
+
}, m = () => {
|
|
2253
|
+
u = window.setTimeout(() => c(!1), n.scrollHideDelay);
|
|
2254
|
+
};
|
|
2255
|
+
return d.addEventListener("pointerenter", f), d.addEventListener("pointerleave", m), () => {
|
|
2256
|
+
window.clearTimeout(u), d.removeEventListener("pointerenter", f), d.removeEventListener("pointerleave", m);
|
|
2257
|
+
};
|
|
2258
|
+
}
|
|
2259
|
+
}, [n.scrollArea, n.scrollHideDelay]), /* @__PURE__ */ r(U, { present: a || s, children: /* @__PURE__ */ r(
|
|
2260
|
+
Te,
|
|
2261
|
+
{
|
|
2262
|
+
"data-state": s ? "visible" : "hidden",
|
|
2263
|
+
...o,
|
|
2264
|
+
ref: t
|
|
2265
|
+
}
|
|
2266
|
+
) });
|
|
2267
|
+
}), Ut = l.forwardRef((e, t) => {
|
|
2268
|
+
const { forceMount: a, ...o } = e, n = P(_, e.__scopeScrollArea), s = e.orientation === "horizontal", c = Z(() => u("SCROLL_END"), 100), [d, u] = Bt("hidden", {
|
|
2269
|
+
hidden: {
|
|
2270
|
+
SCROLL: "scrolling"
|
|
2271
|
+
},
|
|
2272
|
+
scrolling: {
|
|
2273
|
+
SCROLL_END: "idle",
|
|
2274
|
+
POINTER_ENTER: "interacting"
|
|
2275
|
+
},
|
|
2276
|
+
interacting: {
|
|
2277
|
+
SCROLL: "interacting",
|
|
2278
|
+
POINTER_LEAVE: "idle"
|
|
2279
|
+
},
|
|
2280
|
+
idle: {
|
|
2281
|
+
HIDE: "hidden",
|
|
2282
|
+
SCROLL: "scrolling",
|
|
2283
|
+
POINTER_ENTER: "interacting"
|
|
2284
|
+
}
|
|
2285
|
+
});
|
|
2286
|
+
return l.useEffect(() => {
|
|
2287
|
+
if (d === "idle") {
|
|
2288
|
+
const f = window.setTimeout(() => u("HIDE"), n.scrollHideDelay);
|
|
2289
|
+
return () => window.clearTimeout(f);
|
|
2290
|
+
}
|
|
2291
|
+
}, [d, n.scrollHideDelay, u]), l.useEffect(() => {
|
|
2292
|
+
const f = n.viewport, m = s ? "scrollLeft" : "scrollTop";
|
|
2293
|
+
if (f) {
|
|
2294
|
+
let b = f[m];
|
|
2295
|
+
const p = () => {
|
|
2296
|
+
const g = f[m];
|
|
2297
|
+
b !== g && (u("SCROLL"), c()), b = g;
|
|
2298
|
+
};
|
|
2299
|
+
return f.addEventListener("scroll", p), () => f.removeEventListener("scroll", p);
|
|
2300
|
+
}
|
|
2301
|
+
}, [n.viewport, s, u, c]), /* @__PURE__ */ r(U, { present: a || d !== "hidden", children: /* @__PURE__ */ r(
|
|
2302
|
+
le,
|
|
2303
|
+
{
|
|
2304
|
+
"data-state": d === "hidden" ? "hidden" : "visible",
|
|
2305
|
+
...o,
|
|
2306
|
+
ref: t,
|
|
2307
|
+
onPointerEnter: D(e.onPointerEnter, () => u("POINTER_ENTER")),
|
|
2308
|
+
onPointerLeave: D(e.onPointerLeave, () => u("POINTER_LEAVE"))
|
|
2309
|
+
}
|
|
2310
|
+
) });
|
|
2311
|
+
}), Te = l.forwardRef((e, t) => {
|
|
2312
|
+
const a = P(_, e.__scopeScrollArea), { forceMount: o, ...n } = e, [s, c] = l.useState(!1), d = e.orientation === "horizontal", u = Z(() => {
|
|
2313
|
+
if (a.viewport) {
|
|
2314
|
+
const f = a.viewport.offsetWidth < a.viewport.scrollWidth, m = a.viewport.offsetHeight < a.viewport.scrollHeight;
|
|
2315
|
+
c(d ? f : m);
|
|
2316
|
+
}
|
|
2317
|
+
}, 10);
|
|
2318
|
+
return B(a.viewport, u), B(a.content, u), /* @__PURE__ */ r(U, { present: o || s, children: /* @__PURE__ */ r(
|
|
2319
|
+
le,
|
|
2320
|
+
{
|
|
2321
|
+
"data-state": s ? "visible" : "hidden",
|
|
2322
|
+
...n,
|
|
2323
|
+
ref: t
|
|
2324
|
+
}
|
|
2325
|
+
) });
|
|
2326
|
+
}), le = l.forwardRef((e, t) => {
|
|
2327
|
+
const { orientation: a = "vertical", ...o } = e, n = P(_, e.__scopeScrollArea), s = l.useRef(null), c = l.useRef(0), [d, u] = l.useState({
|
|
2328
|
+
content: 0,
|
|
2329
|
+
viewport: 0,
|
|
2330
|
+
scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
|
|
2331
|
+
}), f = ke(d.viewport, d.content), m = {
|
|
2332
|
+
...o,
|
|
2333
|
+
sizes: d,
|
|
2334
|
+
onSizesChange: u,
|
|
2335
|
+
hasThumb: f > 0 && f < 1,
|
|
2336
|
+
onThumbChange: (p) => s.current = p,
|
|
2337
|
+
onThumbPointerUp: () => c.current = 0,
|
|
2338
|
+
onThumbPointerDown: (p) => c.current = p
|
|
2339
|
+
};
|
|
2340
|
+
function b(p, g) {
|
|
2341
|
+
return $t(p, c.current, d, g);
|
|
2342
|
+
}
|
|
2343
|
+
return a === "horizontal" ? /* @__PURE__ */ r(
|
|
2344
|
+
Vt,
|
|
2345
|
+
{
|
|
2346
|
+
...m,
|
|
2347
|
+
ref: t,
|
|
2348
|
+
onThumbPositionChange: () => {
|
|
2349
|
+
if (n.viewport && s.current) {
|
|
2350
|
+
const p = n.viewport.scrollLeft, g = fe(p, d, n.dir);
|
|
2351
|
+
s.current.style.transform = `translate3d(${g}px, 0, 0)`;
|
|
2352
|
+
}
|
|
2353
|
+
},
|
|
2354
|
+
onWheelScroll: (p) => {
|
|
2355
|
+
n.viewport && (n.viewport.scrollLeft = p);
|
|
2356
|
+
},
|
|
2357
|
+
onDragScroll: (p) => {
|
|
2358
|
+
n.viewport && (n.viewport.scrollLeft = b(p, n.dir));
|
|
2359
|
+
}
|
|
2360
|
+
}
|
|
2361
|
+
) : a === "vertical" ? /* @__PURE__ */ r(
|
|
2362
|
+
jt,
|
|
2363
|
+
{
|
|
2364
|
+
...m,
|
|
2365
|
+
ref: t,
|
|
2366
|
+
onThumbPositionChange: () => {
|
|
2367
|
+
if (n.viewport && s.current) {
|
|
2368
|
+
const p = n.viewport.scrollTop, g = fe(p, d);
|
|
2369
|
+
s.current.style.transform = `translate3d(0, ${g}px, 0)`;
|
|
2370
|
+
}
|
|
2371
|
+
},
|
|
2372
|
+
onWheelScroll: (p) => {
|
|
2373
|
+
n.viewport && (n.viewport.scrollTop = p);
|
|
2374
|
+
},
|
|
2375
|
+
onDragScroll: (p) => {
|
|
2376
|
+
n.viewport && (n.viewport.scrollTop = b(p));
|
|
2377
|
+
}
|
|
2378
|
+
}
|
|
2379
|
+
) : null;
|
|
2380
|
+
}), Vt = l.forwardRef((e, t) => {
|
|
2381
|
+
const { sizes: a, onSizesChange: o, ...n } = e, s = P(_, e.__scopeScrollArea), [c, d] = l.useState(), u = l.useRef(null), f = I(t, u, s.onScrollbarXChange);
|
|
2382
|
+
return l.useEffect(() => {
|
|
2383
|
+
u.current && d(getComputedStyle(u.current));
|
|
2384
|
+
}, [u]), /* @__PURE__ */ r(
|
|
2385
|
+
ze,
|
|
2386
|
+
{
|
|
2387
|
+
"data-orientation": "horizontal",
|
|
2388
|
+
...n,
|
|
2389
|
+
ref: f,
|
|
2390
|
+
sizes: a,
|
|
2391
|
+
style: {
|
|
2392
|
+
bottom: 0,
|
|
2393
|
+
left: s.dir === "rtl" ? "var(--radix-scroll-area-corner-width)" : 0,
|
|
2394
|
+
right: s.dir === "ltr" ? "var(--radix-scroll-area-corner-width)" : 0,
|
|
2395
|
+
"--radix-scroll-area-thumb-width": Q(a) + "px",
|
|
2396
|
+
...e.style
|
|
2397
|
+
},
|
|
2398
|
+
onThumbPointerDown: (m) => e.onThumbPointerDown(m.x),
|
|
2399
|
+
onDragScroll: (m) => e.onDragScroll(m.x),
|
|
2400
|
+
onWheelScroll: (m, b) => {
|
|
2401
|
+
if (s.viewport) {
|
|
2402
|
+
const p = s.viewport.scrollLeft + m.deltaX;
|
|
2403
|
+
e.onWheelScroll(p), Me(p, b) && m.preventDefault();
|
|
2404
|
+
}
|
|
2405
|
+
},
|
|
2406
|
+
onResize: () => {
|
|
2407
|
+
u.current && s.viewport && c && o({
|
|
2408
|
+
content: s.viewport.scrollWidth,
|
|
2409
|
+
viewport: s.viewport.offsetWidth,
|
|
2410
|
+
scrollbar: {
|
|
2411
|
+
size: u.current.clientWidth,
|
|
2412
|
+
paddingStart: K(c.paddingLeft),
|
|
2413
|
+
paddingEnd: K(c.paddingRight)
|
|
2414
|
+
}
|
|
2415
|
+
});
|
|
2416
|
+
}
|
|
2417
|
+
}
|
|
2418
|
+
);
|
|
2419
|
+
}), jt = l.forwardRef((e, t) => {
|
|
2420
|
+
const { sizes: a, onSizesChange: o, ...n } = e, s = P(_, e.__scopeScrollArea), [c, d] = l.useState(), u = l.useRef(null), f = I(t, u, s.onScrollbarYChange);
|
|
2421
|
+
return l.useEffect(() => {
|
|
2422
|
+
u.current && d(getComputedStyle(u.current));
|
|
2423
|
+
}, [u]), /* @__PURE__ */ r(
|
|
2424
|
+
ze,
|
|
2425
|
+
{
|
|
2426
|
+
"data-orientation": "vertical",
|
|
2427
|
+
...n,
|
|
2428
|
+
ref: f,
|
|
2429
|
+
sizes: a,
|
|
2430
|
+
style: {
|
|
2431
|
+
top: 0,
|
|
2432
|
+
right: s.dir === "ltr" ? 0 : void 0,
|
|
2433
|
+
left: s.dir === "rtl" ? 0 : void 0,
|
|
2434
|
+
bottom: "var(--radix-scroll-area-corner-height)",
|
|
2435
|
+
"--radix-scroll-area-thumb-height": Q(a) + "px",
|
|
2436
|
+
...e.style
|
|
2437
|
+
},
|
|
2438
|
+
onThumbPointerDown: (m) => e.onThumbPointerDown(m.y),
|
|
2439
|
+
onDragScroll: (m) => e.onDragScroll(m.y),
|
|
2440
|
+
onWheelScroll: (m, b) => {
|
|
2441
|
+
if (s.viewport) {
|
|
2442
|
+
const p = s.viewport.scrollTop + m.deltaY;
|
|
2443
|
+
e.onWheelScroll(p), Me(p, b) && m.preventDefault();
|
|
2444
|
+
}
|
|
2445
|
+
},
|
|
2446
|
+
onResize: () => {
|
|
2447
|
+
u.current && s.viewport && c && o({
|
|
2448
|
+
content: s.viewport.scrollHeight,
|
|
2449
|
+
viewport: s.viewport.offsetHeight,
|
|
2450
|
+
scrollbar: {
|
|
2451
|
+
size: u.current.clientHeight,
|
|
2452
|
+
paddingStart: K(c.paddingTop),
|
|
2453
|
+
paddingEnd: K(c.paddingBottom)
|
|
2454
|
+
}
|
|
2455
|
+
});
|
|
2456
|
+
}
|
|
2457
|
+
}
|
|
2458
|
+
);
|
|
2459
|
+
}), [Ft, Pe] = we(_), ze = l.forwardRef((e, t) => {
|
|
2460
|
+
const {
|
|
2461
|
+
__scopeScrollArea: a,
|
|
2462
|
+
sizes: o,
|
|
2463
|
+
hasThumb: n,
|
|
2464
|
+
onThumbChange: s,
|
|
2465
|
+
onThumbPointerUp: c,
|
|
2466
|
+
onThumbPointerDown: d,
|
|
2467
|
+
onThumbPositionChange: u,
|
|
2468
|
+
onDragScroll: f,
|
|
2469
|
+
onWheelScroll: m,
|
|
2470
|
+
onResize: b,
|
|
2471
|
+
...p
|
|
2472
|
+
} = e, g = P(_, a), [v, T] = l.useState(null), R = I(t, (w) => T(w)), x = l.useRef(null), C = l.useRef(""), ee = g.viewport, V = o.content - o.viewport, j = A(m), H = A(u), F = Z(b, 10);
|
|
2473
|
+
function X(w) {
|
|
2474
|
+
if (x.current) {
|
|
2475
|
+
const z = w.clientX - x.current.left, L = w.clientY - x.current.top;
|
|
2476
|
+
f({ x: z, y: L });
|
|
2477
|
+
}
|
|
2478
|
+
}
|
|
2479
|
+
return l.useEffect(() => {
|
|
2480
|
+
const w = (z) => {
|
|
2481
|
+
const L = z.target;
|
|
2482
|
+
v?.contains(L) && j(z, V);
|
|
2483
|
+
};
|
|
2484
|
+
return document.addEventListener("wheel", w, { passive: !1 }), () => document.removeEventListener("wheel", w, { passive: !1 });
|
|
2485
|
+
}, [ee, v, V, j]), l.useEffect(H, [o, H]), B(v, F), B(g.content, F), /* @__PURE__ */ r(
|
|
2486
|
+
Ft,
|
|
2487
|
+
{
|
|
2488
|
+
scope: a,
|
|
2489
|
+
scrollbar: v,
|
|
2490
|
+
hasThumb: n,
|
|
2491
|
+
onThumbChange: A(s),
|
|
2492
|
+
onThumbPointerUp: A(c),
|
|
2493
|
+
onThumbPositionChange: H,
|
|
2494
|
+
onThumbPointerDown: A(d),
|
|
2495
|
+
children: /* @__PURE__ */ r(
|
|
2496
|
+
W.div,
|
|
2497
|
+
{
|
|
2498
|
+
...p,
|
|
2499
|
+
ref: R,
|
|
2500
|
+
style: { position: "absolute", ...p.style },
|
|
2501
|
+
onPointerDown: D(e.onPointerDown, (w) => {
|
|
2502
|
+
w.button === 0 && (w.target.setPointerCapture(w.pointerId), x.current = v.getBoundingClientRect(), C.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", g.viewport && (g.viewport.style.scrollBehavior = "auto"), X(w));
|
|
2503
|
+
}),
|
|
2504
|
+
onPointerMove: D(e.onPointerMove, X),
|
|
2505
|
+
onPointerUp: D(e.onPointerUp, (w) => {
|
|
2506
|
+
const z = w.target;
|
|
2507
|
+
z.hasPointerCapture(w.pointerId) && z.releasePointerCapture(w.pointerId), document.body.style.webkitUserSelect = C.current, g.viewport && (g.viewport.style.scrollBehavior = ""), x.current = null;
|
|
2508
|
+
})
|
|
2509
|
+
}
|
|
2510
|
+
)
|
|
2511
|
+
}
|
|
2512
|
+
);
|
|
2513
|
+
}), G = "ScrollAreaThumb", _e = l.forwardRef(
|
|
2514
|
+
(e, t) => {
|
|
2515
|
+
const { forceMount: a, ...o } = e, n = Pe(G, e.__scopeScrollArea);
|
|
2516
|
+
return /* @__PURE__ */ r(U, { present: a || n.hasThumb, children: /* @__PURE__ */ r(Xt, { ref: t, ...o }) });
|
|
2517
|
+
}
|
|
2518
|
+
), Xt = l.forwardRef(
|
|
2519
|
+
(e, t) => {
|
|
2520
|
+
const { __scopeScrollArea: a, style: o, ...n } = e, s = P(G, a), c = Pe(G, a), { onThumbPositionChange: d } = c, u = I(
|
|
2521
|
+
t,
|
|
2522
|
+
(b) => c.onThumbChange(b)
|
|
2523
|
+
), f = l.useRef(void 0), m = Z(() => {
|
|
2524
|
+
f.current && (f.current(), f.current = void 0);
|
|
2525
|
+
}, 100);
|
|
2526
|
+
return l.useEffect(() => {
|
|
2527
|
+
const b = s.viewport;
|
|
2528
|
+
if (b) {
|
|
2529
|
+
const p = () => {
|
|
2530
|
+
if (m(), !f.current) {
|
|
2531
|
+
const g = Gt(b, d);
|
|
2532
|
+
f.current = g, d();
|
|
2533
|
+
}
|
|
2534
|
+
};
|
|
2535
|
+
return d(), b.addEventListener("scroll", p), () => b.removeEventListener("scroll", p);
|
|
2536
|
+
}
|
|
2537
|
+
}, [s.viewport, m, d]), /* @__PURE__ */ r(
|
|
2538
|
+
W.div,
|
|
2539
|
+
{
|
|
2540
|
+
"data-state": c.hasThumb ? "visible" : "hidden",
|
|
2541
|
+
...n,
|
|
2542
|
+
ref: u,
|
|
2543
|
+
style: {
|
|
2544
|
+
width: "var(--radix-scroll-area-thumb-width)",
|
|
2545
|
+
height: "var(--radix-scroll-area-thumb-height)",
|
|
2546
|
+
...o
|
|
2547
|
+
},
|
|
2548
|
+
onPointerDownCapture: D(e.onPointerDownCapture, (b) => {
|
|
2549
|
+
const g = b.target.getBoundingClientRect(), v = b.clientX - g.left, T = b.clientY - g.top;
|
|
2550
|
+
c.onThumbPointerDown({ x: v, y: T });
|
|
2551
|
+
}),
|
|
2552
|
+
onPointerUp: D(e.onPointerUp, c.onThumbPointerUp)
|
|
2553
|
+
}
|
|
2554
|
+
);
|
|
2555
|
+
}
|
|
2556
|
+
);
|
|
2557
|
+
_e.displayName = G;
|
|
2558
|
+
var de = "ScrollAreaCorner", Re = l.forwardRef(
|
|
2559
|
+
(e, t) => {
|
|
2560
|
+
const a = P(de, e.__scopeScrollArea), o = !!(a.scrollbarX && a.scrollbarY);
|
|
2561
|
+
return a.type !== "scroll" && o ? /* @__PURE__ */ r(Yt, { ...e, ref: t }) : null;
|
|
2562
|
+
}
|
|
2563
|
+
);
|
|
2564
|
+
Re.displayName = de;
|
|
2565
|
+
var Yt = l.forwardRef((e, t) => {
|
|
2566
|
+
const { __scopeScrollArea: a, ...o } = e, n = P(de, a), [s, c] = l.useState(0), [d, u] = l.useState(0), f = !!(s && d);
|
|
2567
|
+
return B(n.scrollbarX, () => {
|
|
2568
|
+
const m = n.scrollbarX?.offsetHeight || 0;
|
|
2569
|
+
n.onCornerHeightChange(m), u(m);
|
|
2570
|
+
}), B(n.scrollbarY, () => {
|
|
2571
|
+
const m = n.scrollbarY?.offsetWidth || 0;
|
|
2572
|
+
n.onCornerWidthChange(m), c(m);
|
|
2573
|
+
}), f ? /* @__PURE__ */ r(
|
|
2574
|
+
W.div,
|
|
2575
|
+
{
|
|
2576
|
+
...o,
|
|
2577
|
+
ref: t,
|
|
2578
|
+
style: {
|
|
2579
|
+
width: s,
|
|
2580
|
+
height: d,
|
|
2581
|
+
position: "absolute",
|
|
2582
|
+
right: n.dir === "ltr" ? 0 : void 0,
|
|
2583
|
+
left: n.dir === "rtl" ? 0 : void 0,
|
|
2584
|
+
bottom: 0,
|
|
2585
|
+
...e.style
|
|
2586
|
+
}
|
|
2587
|
+
}
|
|
2588
|
+
) : null;
|
|
2589
|
+
});
|
|
2590
|
+
function K(e) {
|
|
2591
|
+
return e ? parseInt(e, 10) : 0;
|
|
2592
|
+
}
|
|
2593
|
+
function ke(e, t) {
|
|
2594
|
+
const a = e / t;
|
|
2595
|
+
return isNaN(a) ? 0 : a;
|
|
2596
|
+
}
|
|
2597
|
+
function Q(e) {
|
|
2598
|
+
const t = ke(e.viewport, e.content), a = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, o = (e.scrollbar.size - a) * t;
|
|
2599
|
+
return Math.max(o, 18);
|
|
2600
|
+
}
|
|
2601
|
+
function $t(e, t, a, o = "ltr") {
|
|
2602
|
+
const n = Q(a), s = n / 2, c = t || s, d = n - c, u = a.scrollbar.paddingStart + c, f = a.scrollbar.size - a.scrollbar.paddingEnd - d, m = a.content - a.viewport, b = o === "ltr" ? [0, m] : [m * -1, 0];
|
|
2603
|
+
return Ee([u, f], b)(e);
|
|
2604
|
+
}
|
|
2605
|
+
function fe(e, t, a = "ltr") {
|
|
2606
|
+
const o = Q(t), n = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - n, c = t.content - t.viewport, d = s - o, u = a === "ltr" ? [0, c] : [c * -1, 0], f = Ot(e, u);
|
|
2607
|
+
return Ee([0, c], [0, d])(f);
|
|
2608
|
+
}
|
|
2609
|
+
function Ee(e, t) {
|
|
2610
|
+
return (a) => {
|
|
2611
|
+
if (e[0] === e[1] || t[0] === t[1]) return t[0];
|
|
2612
|
+
const o = (t[1] - t[0]) / (e[1] - e[0]);
|
|
2613
|
+
return t[0] + o * (a - e[0]);
|
|
2614
|
+
};
|
|
2615
|
+
}
|
|
2616
|
+
function Me(e, t) {
|
|
2617
|
+
return e > 0 && e < t;
|
|
2618
|
+
}
|
|
2619
|
+
var Gt = (e, t = () => {
|
|
2620
|
+
}) => {
|
|
2621
|
+
let a = { left: e.scrollLeft, top: e.scrollTop }, o = 0;
|
|
2622
|
+
return function n() {
|
|
2623
|
+
const s = { left: e.scrollLeft, top: e.scrollTop }, c = a.left !== s.left, d = a.top !== s.top;
|
|
2624
|
+
(c || d) && t(), a = s, o = window.requestAnimationFrame(n);
|
|
2625
|
+
}(), () => window.cancelAnimationFrame(o);
|
|
2626
|
+
};
|
|
2627
|
+
function Z(e, t) {
|
|
2628
|
+
const a = A(e), o = l.useRef(0);
|
|
2629
|
+
return l.useEffect(() => () => window.clearTimeout(o.current), []), l.useCallback(() => {
|
|
2630
|
+
window.clearTimeout(o.current), o.current = window.setTimeout(a, t);
|
|
2631
|
+
}, [a, t]);
|
|
2632
|
+
}
|
|
2633
|
+
function B(e, t) {
|
|
2634
|
+
const a = A(t);
|
|
2635
|
+
ae(() => {
|
|
2636
|
+
let o = 0;
|
|
2637
|
+
if (e) {
|
|
2638
|
+
const n = new ResizeObserver(() => {
|
|
2639
|
+
cancelAnimationFrame(o), o = window.requestAnimationFrame(a);
|
|
2640
|
+
});
|
|
2641
|
+
return n.observe(e), () => {
|
|
2642
|
+
window.cancelAnimationFrame(o), n.unobserve(e);
|
|
2643
|
+
};
|
|
2644
|
+
}
|
|
2645
|
+
}, [e, a]);
|
|
2646
|
+
}
|
|
2647
|
+
var Kt = Se, qt = Ne, Jt = Re;
|
|
2648
|
+
function ao({
|
|
2649
|
+
className: e,
|
|
2650
|
+
children: t,
|
|
2651
|
+
...a
|
|
2652
|
+
}) {
|
|
2653
|
+
return /* @__PURE__ */ h(
|
|
2654
|
+
Kt,
|
|
2655
|
+
{
|
|
2656
|
+
"data-slot": "scroll-area",
|
|
2657
|
+
className: i("relative", e),
|
|
2658
|
+
...a,
|
|
2659
|
+
children: [
|
|
2660
|
+
/* @__PURE__ */ r(
|
|
2661
|
+
qt,
|
|
2662
|
+
{
|
|
2663
|
+
"data-slot": "scroll-area-viewport",
|
|
2664
|
+
className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
|
|
2665
|
+
children: t
|
|
2666
|
+
}
|
|
2667
|
+
),
|
|
2668
|
+
/* @__PURE__ */ r(Qt, {}),
|
|
2669
|
+
/* @__PURE__ */ r(Jt, {})
|
|
2670
|
+
]
|
|
2671
|
+
}
|
|
2672
|
+
);
|
|
2673
|
+
}
|
|
2674
|
+
function Qt({
|
|
2675
|
+
className: e,
|
|
2676
|
+
orientation: t = "vertical",
|
|
2677
|
+
...a
|
|
2678
|
+
}) {
|
|
2679
|
+
return /* @__PURE__ */ r(
|
|
2680
|
+
Ce,
|
|
2681
|
+
{
|
|
2682
|
+
"data-slot": "scroll-area-scrollbar",
|
|
2683
|
+
orientation: t,
|
|
2684
|
+
className: i(
|
|
2685
|
+
"flex touch-none p-px transition-colors select-none",
|
|
2686
|
+
t === "vertical" && "h-full w-2.5 border-l border-l-transparent",
|
|
2687
|
+
t === "horizontal" && "h-2.5 flex-col border-t border-t-transparent",
|
|
2688
|
+
e
|
|
2689
|
+
),
|
|
2690
|
+
...a,
|
|
2691
|
+
children: /* @__PURE__ */ r(
|
|
2692
|
+
_e,
|
|
2693
|
+
{
|
|
2694
|
+
"data-slot": "scroll-area-thumb",
|
|
2695
|
+
className: "bg-border relative flex-1 rounded-full"
|
|
2696
|
+
}
|
|
2697
|
+
)
|
|
2698
|
+
}
|
|
2699
|
+
);
|
|
2700
|
+
}
|
|
2701
|
+
const Zt = {
|
|
1941
2702
|
theme: "system",
|
|
1942
2703
|
setTheme: () => null
|
|
1943
|
-
},
|
|
1944
|
-
function
|
|
2704
|
+
}, Ae = Ie(Zt);
|
|
2705
|
+
function oo({
|
|
1945
2706
|
children: e,
|
|
1946
2707
|
defaultTheme: t = "system",
|
|
1947
|
-
storageKey:
|
|
1948
|
-
...
|
|
2708
|
+
storageKey: a = "vite-ui-theme",
|
|
2709
|
+
...o
|
|
1949
2710
|
}) {
|
|
1950
|
-
const [
|
|
1951
|
-
() => localStorage.getItem(
|
|
2711
|
+
const [n, s] = Le(
|
|
2712
|
+
() => localStorage.getItem(a) || t
|
|
1952
2713
|
);
|
|
1953
|
-
|
|
2714
|
+
Oe(() => {
|
|
1954
2715
|
const d = window.document.documentElement;
|
|
1955
|
-
if (d.classList.remove("light", "dark"),
|
|
1956
|
-
const
|
|
1957
|
-
d.classList.add(
|
|
2716
|
+
if (d.classList.remove("light", "dark"), n === "system") {
|
|
2717
|
+
const u = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
2718
|
+
d.classList.add(u);
|
|
1958
2719
|
return;
|
|
1959
2720
|
}
|
|
1960
|
-
d.classList.add(
|
|
1961
|
-
}, [
|
|
1962
|
-
const
|
|
1963
|
-
theme:
|
|
2721
|
+
d.classList.add(n);
|
|
2722
|
+
}, [n]);
|
|
2723
|
+
const c = {
|
|
2724
|
+
theme: n,
|
|
1964
2725
|
setTheme: (d) => {
|
|
1965
|
-
localStorage.setItem(
|
|
2726
|
+
localStorage.setItem(a, d), s(d);
|
|
1966
2727
|
}
|
|
1967
2728
|
};
|
|
1968
|
-
return /* @__PURE__ */
|
|
2729
|
+
return /* @__PURE__ */ r(Ae.Provider, { ...o, value: c, children: e });
|
|
1969
2730
|
}
|
|
1970
|
-
const
|
|
1971
|
-
const e =
|
|
2731
|
+
const er = () => {
|
|
2732
|
+
const e = Be(Ae);
|
|
1972
2733
|
if (e === void 0)
|
|
1973
2734
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
1974
2735
|
return e;
|
|
1975
2736
|
};
|
|
1976
|
-
function
|
|
1977
|
-
const { setTheme: e } =
|
|
1978
|
-
return /* @__PURE__ */
|
|
1979
|
-
/* @__PURE__ */
|
|
1980
|
-
/* @__PURE__ */
|
|
1981
|
-
/* @__PURE__ */
|
|
1982
|
-
/* @__PURE__ */
|
|
2737
|
+
function no() {
|
|
2738
|
+
const { setTheme: e } = er();
|
|
2739
|
+
return /* @__PURE__ */ h(at, { children: [
|
|
2740
|
+
/* @__PURE__ */ r(ot, { asChild: !0, children: /* @__PURE__ */ h(ge, { variant: "outline", size: "icon", children: [
|
|
2741
|
+
/* @__PURE__ */ r(Ge, { className: "h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90" }),
|
|
2742
|
+
/* @__PURE__ */ r(Ke, { className: "absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0" }),
|
|
2743
|
+
/* @__PURE__ */ r("span", { className: "sr-only", children: "Toggle theme" })
|
|
1983
2744
|
] }) }),
|
|
1984
|
-
/* @__PURE__ */
|
|
1985
|
-
/* @__PURE__ */
|
|
1986
|
-
/* @__PURE__ */
|
|
1987
|
-
/* @__PURE__ */
|
|
2745
|
+
/* @__PURE__ */ h(nt, { align: "end", children: [
|
|
2746
|
+
/* @__PURE__ */ r(te, { onClick: () => e("light"), children: "Light" }),
|
|
2747
|
+
/* @__PURE__ */ r(te, { onClick: () => e("dark"), children: "Dark" }),
|
|
2748
|
+
/* @__PURE__ */ r(te, { onClick: () => e("system"), children: "System" })
|
|
1988
2749
|
] })
|
|
1989
2750
|
] });
|
|
1990
2751
|
}
|
|
1991
2752
|
export {
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2753
|
+
mr as Badge,
|
|
2754
|
+
va as Breadcrumb,
|
|
2755
|
+
wa as BreadcrumbItem,
|
|
2756
|
+
Sa as BreadcrumbLink,
|
|
2757
|
+
xa as BreadcrumbList,
|
|
2758
|
+
ya as BreadcrumbPage,
|
|
2759
|
+
Na as BreadcrumbSeparator,
|
|
2760
|
+
ge as Button,
|
|
2761
|
+
pr as Card,
|
|
2762
|
+
vr as CardContent,
|
|
2763
|
+
hr as CardDescription,
|
|
2764
|
+
xr as CardFooter,
|
|
2765
|
+
br as CardHeader,
|
|
2766
|
+
gr as CardTitle,
|
|
2767
|
+
wr as ContextMenu,
|
|
2768
|
+
_r as ContextMenuCheckboxItem,
|
|
2769
|
+
Pr as ContextMenuContent,
|
|
2770
|
+
zr as ContextMenuItem,
|
|
2771
|
+
kr as ContextMenuLabel,
|
|
2772
|
+
Nr as ContextMenuRadioGroup,
|
|
2773
|
+
Rr as ContextMenuRadioItem,
|
|
2774
|
+
Er as ContextMenuSeparator,
|
|
2775
|
+
Mr as ContextMenuShortcut,
|
|
2776
|
+
yr as ContextMenuSub,
|
|
2777
|
+
Tr as ContextMenuSubContent,
|
|
2778
|
+
Cr as ContextMenuSubTrigger,
|
|
2779
|
+
Sr as ContextMenuTrigger,
|
|
2780
|
+
Ar as Drawer,
|
|
2781
|
+
Ir as DrawerClose,
|
|
2782
|
+
Lr as DrawerContent,
|
|
2783
|
+
Wr as DrawerDescription,
|
|
2784
|
+
Br as DrawerFooter,
|
|
2785
|
+
Or as DrawerHeader,
|
|
2786
|
+
Hr as DrawerTitle,
|
|
2787
|
+
Dr as DrawerTrigger,
|
|
2788
|
+
at as DropdownMenu,
|
|
2789
|
+
Ur as DropdownMenuCheckboxItem,
|
|
2790
|
+
nt as DropdownMenuContent,
|
|
2791
|
+
te as DropdownMenuItem,
|
|
2792
|
+
Fr as DropdownMenuLabel,
|
|
2793
|
+
Vr as DropdownMenuRadioGroup,
|
|
2794
|
+
jr as DropdownMenuRadioItem,
|
|
2795
|
+
Xr as DropdownMenuSeparator,
|
|
2796
|
+
Yr as DropdownMenuShortcut,
|
|
2797
|
+
$r as DropdownMenuSub,
|
|
2798
|
+
Kr as DropdownMenuSubContent,
|
|
2799
|
+
Gr as DropdownMenuSubTrigger,
|
|
2800
|
+
ot as DropdownMenuTrigger,
|
|
2801
|
+
it as Input,
|
|
2802
|
+
qr as Label,
|
|
2803
|
+
no as ModeToggle,
|
|
2804
|
+
Jr as Pagination,
|
|
2805
|
+
Qr as PaginationContent,
|
|
2806
|
+
ra as PaginationEllipsis,
|
|
2807
|
+
Zr as PaginationItem,
|
|
2808
|
+
he as PaginationLink,
|
|
2809
|
+
ta as PaginationNext,
|
|
2810
|
+
ea as PaginationPrevious,
|
|
2811
|
+
aa as Popover,
|
|
2812
|
+
na as PopoverContent,
|
|
2813
|
+
oa as PopoverTrigger,
|
|
2814
|
+
ao as ScrollArea,
|
|
2815
|
+
Ca as Select,
|
|
2816
|
+
_a as SelectContent,
|
|
2817
|
+
Ta as SelectGroup,
|
|
2818
|
+
ka as SelectItem,
|
|
2819
|
+
Ra as SelectLabel,
|
|
2820
|
+
za as SelectTrigger,
|
|
2821
|
+
Pa as SelectValue,
|
|
2822
|
+
mt as Separator,
|
|
2823
|
+
pt as Sheet,
|
|
2824
|
+
ht as SheetContent,
|
|
2825
|
+
wt as SheetDescription,
|
|
2826
|
+
Ma as SheetFooter,
|
|
2827
|
+
vt as SheetHeader,
|
|
2828
|
+
xt as SheetTitle,
|
|
2829
|
+
Ea as SheetTrigger,
|
|
2830
|
+
Da as Sidebar,
|
|
2831
|
+
Va as SidebarContent,
|
|
2832
|
+
Wa as SidebarFooter,
|
|
2833
|
+
ja as SidebarGroup,
|
|
2834
|
+
Xa as SidebarGroupAction,
|
|
2835
|
+
Ya as SidebarGroupContent,
|
|
2836
|
+
Fa as SidebarGroupLabel,
|
|
2837
|
+
Ha as SidebarHeader,
|
|
2838
|
+
Ba as SidebarInput,
|
|
2839
|
+
Oa as SidebarInset,
|
|
2840
|
+
$a as SidebarMenu,
|
|
2841
|
+
qa as SidebarMenuAction,
|
|
2842
|
+
Ja as SidebarMenuBadge,
|
|
2843
|
+
Ka as SidebarMenuButton,
|
|
2844
|
+
Ga as SidebarMenuItem,
|
|
2845
|
+
Qa as SidebarMenuSkeleton,
|
|
2846
|
+
Za as SidebarMenuSub,
|
|
2847
|
+
to as SidebarMenuSubButton,
|
|
2848
|
+
eo as SidebarMenuSubItem,
|
|
2849
|
+
Aa as SidebarProvider,
|
|
2850
|
+
La as SidebarRail,
|
|
2851
|
+
Ua as SidebarSeparator,
|
|
2852
|
+
Ia as SidebarTrigger,
|
|
2853
|
+
ce as Skeleton,
|
|
2854
|
+
sa as Table,
|
|
2855
|
+
da as TableBody,
|
|
2856
|
+
ma as TableCaption,
|
|
2857
|
+
fa as TableCell,
|
|
2858
|
+
ua as TableHead,
|
|
2859
|
+
la as TableHeader,
|
|
2860
|
+
ca as TableRow,
|
|
2861
|
+
pa as Tabs,
|
|
2862
|
+
ha as TabsContent,
|
|
2863
|
+
ba as TabsList,
|
|
2864
|
+
ga as TabsTrigger,
|
|
2865
|
+
oo as ThemeProvider,
|
|
2866
|
+
ia as Toaster,
|
|
2867
|
+
st as Tooltip,
|
|
2868
|
+
dt as TooltipContent,
|
|
2869
|
+
ve as TooltipProvider,
|
|
2870
|
+
lt as TooltipTrigger,
|
|
2871
|
+
i as cn,
|
|
2872
|
+
lo as toast,
|
|
2873
|
+
J as useSidebar,
|
|
2874
|
+
er as useTheme
|
|
2105
2875
|
};
|