@want-foundation/allure-react 0.0.0-stage → 1.0.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/LICENSE +21 -0
- package/README.md +30 -2
- package/THIRD_PARTY_NOTICES.md +5 -0
- package/dist/animated-text.d.ts +6 -0
- package/dist/brand.d.ts +12 -0
- package/dist/carousel-scroll.d.ts +6 -0
- package/dist/combobox.d.ts +20 -0
- package/dist/comment-feed.d.ts +32 -0
- package/dist/contact-card.d.ts +15 -0
- package/dist/date-field.d.ts +28 -0
- package/dist/direction-provider.d.ts +5 -0
- package/dist/file-upload.d.ts +22 -0
- package/dist/glow.d.ts +5 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.js +2167 -0
- package/dist/loader.d.ts +8 -0
- package/dist/media-card.d.ts +14 -0
- package/dist/pagination.d.ts +18 -0
- package/dist/shimmer.d.ts +7 -0
- package/dist/snackbar.d.ts +18 -0
- package/dist/theme-toggle.d.ts +8 -0
- package/dist/typography.d.ts +299 -0
- package/dist/ui/accordion.d.ts +7 -0
- package/dist/ui/alert.d.ts +9 -0
- package/dist/ui/badge.d.ts +9 -0
- package/dist/ui/breadcrumb.d.ts +11 -0
- package/dist/ui/button.d.ts +10 -0
- package/dist/ui/card.d.ts +9 -0
- package/dist/ui/checkbox.d.ts +3 -0
- package/dist/ui/dialog.d.ts +18 -0
- package/dist/ui/dropdown-menu.d.ts +8 -0
- package/dist/ui/field.d.ts +24 -0
- package/dist/ui/input.d.ts +3 -0
- package/dist/ui/label.d.ts +4 -0
- package/dist/ui/navigation-menu.d.ts +14 -0
- package/dist/ui/popover.d.ts +7 -0
- package/dist/ui/progress.d.ts +6 -0
- package/dist/ui/radio-group.d.ts +5 -0
- package/dist/ui/select.d.ts +15 -0
- package/dist/ui/separator.d.ts +4 -0
- package/dist/ui/sheet.d.ts +15 -0
- package/dist/ui/skeleton.d.ts +2 -0
- package/dist/ui/switch.d.ts +6 -0
- package/dist/ui/table.d.ts +9 -0
- package/dist/ui/tabs.d.ts +11 -0
- package/dist/ui/textarea.d.ts +3 -0
- package/dist/ui/toast.d.ts +9 -0
- package/dist/ui/tooltip.d.ts +6 -0
- package/dist/url-field.d.ts +22 -0
- package/dist/utils.d.ts +2 -0
- package/dist/window.d.ts +9 -0
- package/package.json +39 -4
package/dist/index.js
ADDED
|
@@ -0,0 +1,2167 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as a, jsxs as s } from "react/jsx-runtime";
|
|
3
|
+
import { clsx as Fe } from "clsx";
|
|
4
|
+
import { twMerge as Se } from "tailwind-merge";
|
|
5
|
+
import { ChevronDownIcon as ce, MoreHorizontal as ze, ChevronRight as fe, XIcon as Ce, CircleIcon as Ie, CheckIcon as Le, ChevronUpIcon as Ae, Link as Re, ArrowUpRight as Pe, Sun as Ye, Moon as je, UserRound as Ve, ArrowLeft as Oe, ArrowRight as Be, ChevronsLeft as _e, ChevronLeft as Te, ChevronsRight as He, ExternalLink as $e, Check as ye, Minus as Ee, X as ke, File as Ge, CircleCheck as We, Info as qe, TriangleAlert as Ze, CircleX as Xe } from "lucide-react";
|
|
6
|
+
import { Accordion as J, Slot as ge, Dialog as k, Label as Ke, Separator as Qe, NavigationMenu as $, RadioGroup as me, Select as I, Switch as ve, Tabs as de, Direction as Je, Popover as V, Checkbox as xe, DropdownMenu as W, Tooltip as ee, Toast as q, Progress as Ne } from "radix-ui";
|
|
7
|
+
import { cva as X } from "class-variance-authority";
|
|
8
|
+
import { useMemo as et, useRef as H, useState as O, useEffect as he, useId as te, createElement as tt } from "react";
|
|
9
|
+
function r(...e) {
|
|
10
|
+
return Se(Fe(e));
|
|
11
|
+
}
|
|
12
|
+
function Kt({
|
|
13
|
+
...e
|
|
14
|
+
}) {
|
|
15
|
+
return /* @__PURE__ */ a(J.Root, { "data-slot": "accordion", ...e });
|
|
16
|
+
}
|
|
17
|
+
function Qt({
|
|
18
|
+
className: e,
|
|
19
|
+
...t
|
|
20
|
+
}) {
|
|
21
|
+
return /* @__PURE__ */ a(
|
|
22
|
+
J.Item,
|
|
23
|
+
{
|
|
24
|
+
"data-slot": "accordion-item",
|
|
25
|
+
className: e,
|
|
26
|
+
...t
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
function Jt({
|
|
31
|
+
className: e,
|
|
32
|
+
children: t,
|
|
33
|
+
...n
|
|
34
|
+
}) {
|
|
35
|
+
return /* @__PURE__ */ a(J.Header, { className: "flex", children: /* @__PURE__ */ s(
|
|
36
|
+
J.Trigger,
|
|
37
|
+
{
|
|
38
|
+
"data-slot": "accordion-trigger",
|
|
39
|
+
className: r(
|
|
40
|
+
"ui-accordion-trigger",
|
|
41
|
+
e
|
|
42
|
+
),
|
|
43
|
+
...n,
|
|
44
|
+
children: [
|
|
45
|
+
t,
|
|
46
|
+
/* @__PURE__ */ a(ce, { className: "pointer-events-none size-4 shrink-0 translate-y-0.5 text-muted-foreground" })
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
) });
|
|
50
|
+
}
|
|
51
|
+
function ea({
|
|
52
|
+
className: e,
|
|
53
|
+
children: t,
|
|
54
|
+
...n
|
|
55
|
+
}) {
|
|
56
|
+
return /* @__PURE__ */ a(
|
|
57
|
+
J.Content,
|
|
58
|
+
{
|
|
59
|
+
"data-slot": "accordion-content",
|
|
60
|
+
className: "overflow-hidden text-sm",
|
|
61
|
+
...n,
|
|
62
|
+
children: /* @__PURE__ */ a("div", { className: r("pt-0 pb-4", e), children: t })
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
const at = X(
|
|
67
|
+
"relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
|
|
68
|
+
{
|
|
69
|
+
variants: {
|
|
70
|
+
variant: {
|
|
71
|
+
default: "bg-card text-card-foreground",
|
|
72
|
+
destructive: "bg-card text-destructive-text *:data-[slot=alert-description]:text-destructive-text [&>svg]:text-current"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
defaultVariants: {
|
|
76
|
+
variant: "default"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
function ta({
|
|
81
|
+
className: e,
|
|
82
|
+
variant: t,
|
|
83
|
+
...n
|
|
84
|
+
}) {
|
|
85
|
+
return /* @__PURE__ */ a(
|
|
86
|
+
"div",
|
|
87
|
+
{
|
|
88
|
+
"data-slot": "alert",
|
|
89
|
+
role: "alert",
|
|
90
|
+
className: r(at({ variant: t }), e),
|
|
91
|
+
...n
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
function aa({ className: e, ...t }) {
|
|
96
|
+
return /* @__PURE__ */ a(
|
|
97
|
+
"div",
|
|
98
|
+
{
|
|
99
|
+
"data-slot": "alert-title",
|
|
100
|
+
className: r(
|
|
101
|
+
"col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",
|
|
102
|
+
e
|
|
103
|
+
),
|
|
104
|
+
...t
|
|
105
|
+
}
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
function na({
|
|
109
|
+
className: e,
|
|
110
|
+
...t
|
|
111
|
+
}) {
|
|
112
|
+
return /* @__PURE__ */ a(
|
|
113
|
+
"div",
|
|
114
|
+
{
|
|
115
|
+
"data-slot": "alert-description",
|
|
116
|
+
className: r(
|
|
117
|
+
"col-start-2 grid justify-items-start gap-1 text-sm text-muted-foreground [&_p]:leading-relaxed",
|
|
118
|
+
e
|
|
119
|
+
),
|
|
120
|
+
...t
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
const nt = X(
|
|
125
|
+
"ui-badge-base",
|
|
126
|
+
{
|
|
127
|
+
variants: {
|
|
128
|
+
variant: {
|
|
129
|
+
default: "ui-badge-default",
|
|
130
|
+
secondary: "ui-badge-secondary",
|
|
131
|
+
destructive: "ui-badge-destructive",
|
|
132
|
+
outline: "ui-badge-outline",
|
|
133
|
+
ghost: "ui-badge-ghost",
|
|
134
|
+
link: "ui-badge-link"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
defaultVariants: {
|
|
138
|
+
variant: "default"
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
);
|
|
142
|
+
function ra({
|
|
143
|
+
className: e,
|
|
144
|
+
variant: t = "default",
|
|
145
|
+
asChild: n = !1,
|
|
146
|
+
...o
|
|
147
|
+
}) {
|
|
148
|
+
const l = n ? ge.Root : "span";
|
|
149
|
+
return /* @__PURE__ */ a(
|
|
150
|
+
l,
|
|
151
|
+
{
|
|
152
|
+
"data-slot": "badge",
|
|
153
|
+
"data-variant": t,
|
|
154
|
+
className: r(nt({ variant: t }), e),
|
|
155
|
+
...o
|
|
156
|
+
}
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
function oa({ ...e }) {
|
|
160
|
+
return /* @__PURE__ */ a("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...e });
|
|
161
|
+
}
|
|
162
|
+
function ia({ className: e, ...t }) {
|
|
163
|
+
return /* @__PURE__ */ a(
|
|
164
|
+
"ol",
|
|
165
|
+
{
|
|
166
|
+
"data-slot": "breadcrumb-list",
|
|
167
|
+
className: r(
|
|
168
|
+
"flex flex-wrap items-center gap-1.5 text-sm break-words text-muted-foreground sm:gap-2.5",
|
|
169
|
+
e
|
|
170
|
+
),
|
|
171
|
+
...t
|
|
172
|
+
}
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
function la({ className: e, ...t }) {
|
|
176
|
+
return /* @__PURE__ */ a(
|
|
177
|
+
"li",
|
|
178
|
+
{
|
|
179
|
+
"data-slot": "breadcrumb-item",
|
|
180
|
+
className: r("inline-flex items-center gap-1.5", e),
|
|
181
|
+
...t
|
|
182
|
+
}
|
|
183
|
+
);
|
|
184
|
+
}
|
|
185
|
+
function sa({
|
|
186
|
+
asChild: e,
|
|
187
|
+
className: t,
|
|
188
|
+
...n
|
|
189
|
+
}) {
|
|
190
|
+
const o = e ? ge.Root : "a";
|
|
191
|
+
return /* @__PURE__ */ a(
|
|
192
|
+
o,
|
|
193
|
+
{
|
|
194
|
+
"data-slot": "breadcrumb-link",
|
|
195
|
+
className: r("inline-flex min-h-11 min-w-11 items-center justify-center text-center transition-colors duration-120 hover:text-foreground", t),
|
|
196
|
+
...n
|
|
197
|
+
}
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
function ca({ className: e, ...t }) {
|
|
201
|
+
return /* @__PURE__ */ a(
|
|
202
|
+
"span",
|
|
203
|
+
{
|
|
204
|
+
"data-slot": "breadcrumb-page",
|
|
205
|
+
role: "link",
|
|
206
|
+
"aria-disabled": "true",
|
|
207
|
+
"aria-current": "page",
|
|
208
|
+
className: r("inline-flex min-h-11 min-w-11 items-center justify-center text-center font-normal text-foreground", e),
|
|
209
|
+
...t
|
|
210
|
+
}
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
function da({
|
|
214
|
+
children: e,
|
|
215
|
+
className: t,
|
|
216
|
+
...n
|
|
217
|
+
}) {
|
|
218
|
+
return /* @__PURE__ */ a(
|
|
219
|
+
"li",
|
|
220
|
+
{
|
|
221
|
+
"data-slot": "breadcrumb-separator",
|
|
222
|
+
role: "presentation",
|
|
223
|
+
"aria-hidden": "true",
|
|
224
|
+
className: r("[&>svg]:size-3.5", t),
|
|
225
|
+
...n,
|
|
226
|
+
children: e ?? /* @__PURE__ */ a(fe, {})
|
|
227
|
+
}
|
|
228
|
+
);
|
|
229
|
+
}
|
|
230
|
+
function ua({
|
|
231
|
+
className: e,
|
|
232
|
+
...t
|
|
233
|
+
}) {
|
|
234
|
+
return /* @__PURE__ */ s(
|
|
235
|
+
"span",
|
|
236
|
+
{
|
|
237
|
+
"data-slot": "breadcrumb-ellipsis",
|
|
238
|
+
role: "presentation",
|
|
239
|
+
"aria-hidden": "true",
|
|
240
|
+
className: r("flex size-9 items-center justify-center", e),
|
|
241
|
+
...t,
|
|
242
|
+
children: [
|
|
243
|
+
/* @__PURE__ */ a(ze, { className: "size-4" }),
|
|
244
|
+
/* @__PURE__ */ a("span", { className: "sr-only", children: "More" })
|
|
245
|
+
]
|
|
246
|
+
}
|
|
247
|
+
);
|
|
248
|
+
}
|
|
249
|
+
const rt = X(
|
|
250
|
+
"ui-button-base",
|
|
251
|
+
{
|
|
252
|
+
variants: {
|
|
253
|
+
variant: {
|
|
254
|
+
default: "ui-button-default",
|
|
255
|
+
destructive: "ui-button-destructive",
|
|
256
|
+
outline: "ui-button-outline",
|
|
257
|
+
secondary: "ui-button-secondary",
|
|
258
|
+
ghost: "ui-button-ghost",
|
|
259
|
+
link: "ui-button-link"
|
|
260
|
+
},
|
|
261
|
+
size: {
|
|
262
|
+
default: "ui-button-size-default",
|
|
263
|
+
xs: "ui-button-size-xs",
|
|
264
|
+
sm: "ui-button-size-sm",
|
|
265
|
+
lg: "ui-button-size-lg",
|
|
266
|
+
icon: "size-11",
|
|
267
|
+
"icon-xs": "ui-button-size-icon-xs",
|
|
268
|
+
"icon-sm": "size-11",
|
|
269
|
+
"icon-lg": "size-12"
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
defaultVariants: {
|
|
273
|
+
variant: "default",
|
|
274
|
+
size: "default"
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
);
|
|
278
|
+
function D({
|
|
279
|
+
className: e,
|
|
280
|
+
variant: t = "default",
|
|
281
|
+
size: n = "default",
|
|
282
|
+
asChild: o = !1,
|
|
283
|
+
...l
|
|
284
|
+
}) {
|
|
285
|
+
const i = o ? ge.Root : "button";
|
|
286
|
+
return /* @__PURE__ */ a(
|
|
287
|
+
i,
|
|
288
|
+
{
|
|
289
|
+
"data-slot": "button",
|
|
290
|
+
"data-variant": t,
|
|
291
|
+
"data-size": n,
|
|
292
|
+
className: r(rt({ variant: t, size: n, className: e })),
|
|
293
|
+
...l
|
|
294
|
+
}
|
|
295
|
+
);
|
|
296
|
+
}
|
|
297
|
+
function ot({ className: e, ...t }) {
|
|
298
|
+
return /* @__PURE__ */ a(
|
|
299
|
+
"div",
|
|
300
|
+
{
|
|
301
|
+
"data-slot": "card",
|
|
302
|
+
className: r(
|
|
303
|
+
"ui-card-base",
|
|
304
|
+
e
|
|
305
|
+
),
|
|
306
|
+
...t
|
|
307
|
+
}
|
|
308
|
+
);
|
|
309
|
+
}
|
|
310
|
+
function ma({ className: e, ...t }) {
|
|
311
|
+
return /* @__PURE__ */ a(
|
|
312
|
+
"div",
|
|
313
|
+
{
|
|
314
|
+
"data-slot": "card-header",
|
|
315
|
+
className: r(
|
|
316
|
+
"ui-card-header",
|
|
317
|
+
e
|
|
318
|
+
),
|
|
319
|
+
...t
|
|
320
|
+
}
|
|
321
|
+
);
|
|
322
|
+
}
|
|
323
|
+
function fa({ className: e, ...t }) {
|
|
324
|
+
return /* @__PURE__ */ a(
|
|
325
|
+
"div",
|
|
326
|
+
{
|
|
327
|
+
"data-slot": "card-title",
|
|
328
|
+
className: r("leading-none font-semibold", e),
|
|
329
|
+
...t
|
|
330
|
+
}
|
|
331
|
+
);
|
|
332
|
+
}
|
|
333
|
+
function ga({ className: e, ...t }) {
|
|
334
|
+
return /* @__PURE__ */ a(
|
|
335
|
+
"div",
|
|
336
|
+
{
|
|
337
|
+
"data-slot": "card-description",
|
|
338
|
+
className: r("text-sm text-muted-foreground", e),
|
|
339
|
+
...t
|
|
340
|
+
}
|
|
341
|
+
);
|
|
342
|
+
}
|
|
343
|
+
function ha({ className: e, ...t }) {
|
|
344
|
+
return /* @__PURE__ */ a(
|
|
345
|
+
"div",
|
|
346
|
+
{
|
|
347
|
+
"data-slot": "card-action",
|
|
348
|
+
className: r(
|
|
349
|
+
"col-start-2 row-span-2 row-start-1 self-start justify-self-end",
|
|
350
|
+
e
|
|
351
|
+
),
|
|
352
|
+
...t
|
|
353
|
+
}
|
|
354
|
+
);
|
|
355
|
+
}
|
|
356
|
+
function it({ className: e, ...t }) {
|
|
357
|
+
return /* @__PURE__ */ a(
|
|
358
|
+
"div",
|
|
359
|
+
{
|
|
360
|
+
"data-slot": "card-content",
|
|
361
|
+
className: r("px-6", e),
|
|
362
|
+
...t
|
|
363
|
+
}
|
|
364
|
+
);
|
|
365
|
+
}
|
|
366
|
+
function pa({ className: e, ...t }) {
|
|
367
|
+
return /* @__PURE__ */ a(
|
|
368
|
+
"div",
|
|
369
|
+
{
|
|
370
|
+
"data-slot": "card-footer",
|
|
371
|
+
className: r("ui-card-footer", e),
|
|
372
|
+
...t
|
|
373
|
+
}
|
|
374
|
+
);
|
|
375
|
+
}
|
|
376
|
+
function ba({
|
|
377
|
+
...e
|
|
378
|
+
}) {
|
|
379
|
+
return /* @__PURE__ */ a(k.Root, { "data-slot": "dialog", ...e });
|
|
380
|
+
}
|
|
381
|
+
function va({
|
|
382
|
+
...e
|
|
383
|
+
}) {
|
|
384
|
+
return /* @__PURE__ */ a(k.Trigger, { "data-slot": "dialog-trigger", ...e });
|
|
385
|
+
}
|
|
386
|
+
function lt({
|
|
387
|
+
...e
|
|
388
|
+
}) {
|
|
389
|
+
return /* @__PURE__ */ a(k.Portal, { "data-slot": "dialog-portal", ...e });
|
|
390
|
+
}
|
|
391
|
+
function xa({
|
|
392
|
+
...e
|
|
393
|
+
}) {
|
|
394
|
+
return /* @__PURE__ */ a(k.Close, { "data-slot": "dialog-close", ...e });
|
|
395
|
+
}
|
|
396
|
+
function st({
|
|
397
|
+
className: e,
|
|
398
|
+
...t
|
|
399
|
+
}) {
|
|
400
|
+
return /* @__PURE__ */ a(
|
|
401
|
+
k.Overlay,
|
|
402
|
+
{
|
|
403
|
+
"data-slot": "dialog-overlay",
|
|
404
|
+
className: r(
|
|
405
|
+
"fixed inset-0 z-50 bg-black/50",
|
|
406
|
+
e
|
|
407
|
+
),
|
|
408
|
+
...t
|
|
409
|
+
}
|
|
410
|
+
);
|
|
411
|
+
}
|
|
412
|
+
function Na({
|
|
413
|
+
className: e,
|
|
414
|
+
children: t,
|
|
415
|
+
showCloseButton: n = !0,
|
|
416
|
+
closeLabel: o = "Close",
|
|
417
|
+
...l
|
|
418
|
+
}) {
|
|
419
|
+
return /* @__PURE__ */ s(lt, { "data-slot": "dialog-portal", children: [
|
|
420
|
+
/* @__PURE__ */ a(st, {}),
|
|
421
|
+
/* @__PURE__ */ s(
|
|
422
|
+
k.Content,
|
|
423
|
+
{
|
|
424
|
+
"data-slot": "dialog-content",
|
|
425
|
+
className: r(
|
|
426
|
+
"fixed top-[50%] left-[50%] z-50 grid max-h-[calc(100dvh-2rem)] overflow-y-auto w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-panel bg-card p-6 shadow-lg outline-none sm:max-w-lg",
|
|
427
|
+
e
|
|
428
|
+
),
|
|
429
|
+
...l,
|
|
430
|
+
children: [
|
|
431
|
+
t,
|
|
432
|
+
n && /* @__PURE__ */ s(
|
|
433
|
+
k.Close,
|
|
434
|
+
{
|
|
435
|
+
"data-slot": "dialog-close",
|
|
436
|
+
className: "absolute top-2 end-2 flex size-11 items-center justify-center rounded-md opacity-70 ring-offset-background hover:opacity-100 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
437
|
+
children: [
|
|
438
|
+
/* @__PURE__ */ a(Ce, {}),
|
|
439
|
+
/* @__PURE__ */ a("span", { className: "sr-only", children: o })
|
|
440
|
+
]
|
|
441
|
+
}
|
|
442
|
+
)
|
|
443
|
+
]
|
|
444
|
+
}
|
|
445
|
+
)
|
|
446
|
+
] });
|
|
447
|
+
}
|
|
448
|
+
function wa({ className: e, ...t }) {
|
|
449
|
+
return /* @__PURE__ */ a(
|
|
450
|
+
"div",
|
|
451
|
+
{
|
|
452
|
+
"data-slot": "dialog-header",
|
|
453
|
+
className: r("flex flex-col gap-2 text-center sm:text-start", e),
|
|
454
|
+
...t
|
|
455
|
+
}
|
|
456
|
+
);
|
|
457
|
+
}
|
|
458
|
+
function Ca({
|
|
459
|
+
className: e,
|
|
460
|
+
showCloseButton: t = !1,
|
|
461
|
+
children: n,
|
|
462
|
+
...o
|
|
463
|
+
}) {
|
|
464
|
+
return /* @__PURE__ */ s(
|
|
465
|
+
"div",
|
|
466
|
+
{
|
|
467
|
+
"data-slot": "dialog-footer",
|
|
468
|
+
className: r(
|
|
469
|
+
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
470
|
+
e
|
|
471
|
+
),
|
|
472
|
+
...o,
|
|
473
|
+
children: [
|
|
474
|
+
n,
|
|
475
|
+
t && /* @__PURE__ */ a(k.Close, { asChild: !0, children: /* @__PURE__ */ a(D, { variant: "outline", children: "Close" }) })
|
|
476
|
+
]
|
|
477
|
+
}
|
|
478
|
+
);
|
|
479
|
+
}
|
|
480
|
+
function Ta({
|
|
481
|
+
className: e,
|
|
482
|
+
...t
|
|
483
|
+
}) {
|
|
484
|
+
return /* @__PURE__ */ a(
|
|
485
|
+
k.Title,
|
|
486
|
+
{
|
|
487
|
+
"data-slot": "dialog-title",
|
|
488
|
+
className: r("text-lg leading-none font-semibold", e),
|
|
489
|
+
...t
|
|
490
|
+
}
|
|
491
|
+
);
|
|
492
|
+
}
|
|
493
|
+
function ya({
|
|
494
|
+
className: e,
|
|
495
|
+
...t
|
|
496
|
+
}) {
|
|
497
|
+
return /* @__PURE__ */ a(
|
|
498
|
+
k.Description,
|
|
499
|
+
{
|
|
500
|
+
"data-slot": "dialog-description",
|
|
501
|
+
className: r("text-sm text-muted-foreground", e),
|
|
502
|
+
...t
|
|
503
|
+
}
|
|
504
|
+
);
|
|
505
|
+
}
|
|
506
|
+
function ct({
|
|
507
|
+
className: e,
|
|
508
|
+
...t
|
|
509
|
+
}) {
|
|
510
|
+
return /* @__PURE__ */ a(
|
|
511
|
+
Ke.Root,
|
|
512
|
+
{
|
|
513
|
+
"data-slot": "label",
|
|
514
|
+
className: r(
|
|
515
|
+
"ui-label",
|
|
516
|
+
e
|
|
517
|
+
),
|
|
518
|
+
...t
|
|
519
|
+
}
|
|
520
|
+
);
|
|
521
|
+
}
|
|
522
|
+
function dt({
|
|
523
|
+
className: e,
|
|
524
|
+
orientation: t = "horizontal",
|
|
525
|
+
decorative: n = !0,
|
|
526
|
+
...o
|
|
527
|
+
}) {
|
|
528
|
+
return /* @__PURE__ */ a(
|
|
529
|
+
Qe.Root,
|
|
530
|
+
{
|
|
531
|
+
"data-slot": "separator",
|
|
532
|
+
decorative: n,
|
|
533
|
+
orientation: t,
|
|
534
|
+
className: r(
|
|
535
|
+
"ui-separator",
|
|
536
|
+
e
|
|
537
|
+
),
|
|
538
|
+
...o
|
|
539
|
+
}
|
|
540
|
+
);
|
|
541
|
+
}
|
|
542
|
+
function ka({ className: e, ...t }) {
|
|
543
|
+
return /* @__PURE__ */ a(
|
|
544
|
+
"fieldset",
|
|
545
|
+
{
|
|
546
|
+
"data-slot": "field-set",
|
|
547
|
+
className: r(
|
|
548
|
+
"flex flex-col gap-6",
|
|
549
|
+
"has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",
|
|
550
|
+
e
|
|
551
|
+
),
|
|
552
|
+
...t
|
|
553
|
+
}
|
|
554
|
+
);
|
|
555
|
+
}
|
|
556
|
+
function Ma({
|
|
557
|
+
className: e,
|
|
558
|
+
variant: t = "legend",
|
|
559
|
+
...n
|
|
560
|
+
}) {
|
|
561
|
+
return /* @__PURE__ */ a(
|
|
562
|
+
"legend",
|
|
563
|
+
{
|
|
564
|
+
"data-slot": "field-legend",
|
|
565
|
+
"data-variant": t,
|
|
566
|
+
className: r(
|
|
567
|
+
"mb-3 font-medium",
|
|
568
|
+
"data-[variant=legend]:text-base",
|
|
569
|
+
"data-[variant=label]:text-sm",
|
|
570
|
+
e
|
|
571
|
+
),
|
|
572
|
+
...n
|
|
573
|
+
}
|
|
574
|
+
);
|
|
575
|
+
}
|
|
576
|
+
function Da({ className: e, ...t }) {
|
|
577
|
+
return /* @__PURE__ */ a(
|
|
578
|
+
"div",
|
|
579
|
+
{
|
|
580
|
+
"data-slot": "field-group",
|
|
581
|
+
className: r(
|
|
582
|
+
"group/field-group ui-field-group",
|
|
583
|
+
e
|
|
584
|
+
),
|
|
585
|
+
...t
|
|
586
|
+
}
|
|
587
|
+
);
|
|
588
|
+
}
|
|
589
|
+
const ut = X(
|
|
590
|
+
"group/field flex w-full gap-3 data-[invalid=true]:text-destructive-text",
|
|
591
|
+
{
|
|
592
|
+
variants: {
|
|
593
|
+
orientation: {
|
|
594
|
+
vertical: ["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],
|
|
595
|
+
horizontal: [
|
|
596
|
+
"flex-row items-center",
|
|
597
|
+
"[&>[data-slot=field-label]]:flex-auto",
|
|
598
|
+
"has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
|
|
599
|
+
],
|
|
600
|
+
responsive: [
|
|
601
|
+
"flex-col @md/field-group:flex-row @md/field-group:items-center [&>*]:w-full @md/field-group:[&>*]:w-auto [&>.sr-only]:w-auto",
|
|
602
|
+
"@md/field-group:[&>[data-slot=field-label]]:flex-auto",
|
|
603
|
+
"@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
|
|
604
|
+
]
|
|
605
|
+
}
|
|
606
|
+
},
|
|
607
|
+
defaultVariants: {
|
|
608
|
+
orientation: "vertical"
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
);
|
|
612
|
+
function Ua({
|
|
613
|
+
className: e,
|
|
614
|
+
orientation: t = "vertical",
|
|
615
|
+
...n
|
|
616
|
+
}) {
|
|
617
|
+
return /* @__PURE__ */ a(
|
|
618
|
+
"div",
|
|
619
|
+
{
|
|
620
|
+
role: "group",
|
|
621
|
+
"data-slot": "field",
|
|
622
|
+
"data-orientation": t,
|
|
623
|
+
className: r(ut({ orientation: t }), e),
|
|
624
|
+
...n
|
|
625
|
+
}
|
|
626
|
+
);
|
|
627
|
+
}
|
|
628
|
+
function Fa({ className: e, ...t }) {
|
|
629
|
+
return /* @__PURE__ */ a(
|
|
630
|
+
"div",
|
|
631
|
+
{
|
|
632
|
+
"data-slot": "field-content",
|
|
633
|
+
className: r(
|
|
634
|
+
"group/field-content flex flex-1 flex-col gap-1.5 leading-snug",
|
|
635
|
+
e
|
|
636
|
+
),
|
|
637
|
+
...t
|
|
638
|
+
}
|
|
639
|
+
);
|
|
640
|
+
}
|
|
641
|
+
function Sa({
|
|
642
|
+
className: e,
|
|
643
|
+
...t
|
|
644
|
+
}) {
|
|
645
|
+
return /* @__PURE__ */ a(
|
|
646
|
+
ct,
|
|
647
|
+
{
|
|
648
|
+
"data-slot": "field-label",
|
|
649
|
+
className: r(
|
|
650
|
+
"group/field-label peer/field-label ui-field-label",
|
|
651
|
+
e
|
|
652
|
+
),
|
|
653
|
+
...t
|
|
654
|
+
}
|
|
655
|
+
);
|
|
656
|
+
}
|
|
657
|
+
function za({ className: e, ...t }) {
|
|
658
|
+
return /* @__PURE__ */ a(
|
|
659
|
+
"div",
|
|
660
|
+
{
|
|
661
|
+
"data-slot": "field-label",
|
|
662
|
+
className: r(
|
|
663
|
+
"flex w-fit items-center gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50",
|
|
664
|
+
e
|
|
665
|
+
),
|
|
666
|
+
...t
|
|
667
|
+
}
|
|
668
|
+
);
|
|
669
|
+
}
|
|
670
|
+
function Ia({ className: e, ...t }) {
|
|
671
|
+
return /* @__PURE__ */ a(
|
|
672
|
+
"p",
|
|
673
|
+
{
|
|
674
|
+
"data-slot": "field-description",
|
|
675
|
+
className: r(
|
|
676
|
+
"text-sm leading-normal font-normal text-muted-foreground group-has-[[data-orientation=horizontal]]/field:text-balance",
|
|
677
|
+
"last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5",
|
|
678
|
+
"[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",
|
|
679
|
+
e
|
|
680
|
+
),
|
|
681
|
+
...t
|
|
682
|
+
}
|
|
683
|
+
);
|
|
684
|
+
}
|
|
685
|
+
function La({
|
|
686
|
+
children: e,
|
|
687
|
+
className: t,
|
|
688
|
+
...n
|
|
689
|
+
}) {
|
|
690
|
+
return /* @__PURE__ */ s(
|
|
691
|
+
"div",
|
|
692
|
+
{
|
|
693
|
+
"data-slot": "field-separator",
|
|
694
|
+
"data-content": !!e,
|
|
695
|
+
className: r(
|
|
696
|
+
"relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",
|
|
697
|
+
t
|
|
698
|
+
),
|
|
699
|
+
...n,
|
|
700
|
+
children: [
|
|
701
|
+
/* @__PURE__ */ a(dt, { className: "absolute inset-0 top-1/2" }),
|
|
702
|
+
e && /* @__PURE__ */ a(
|
|
703
|
+
"span",
|
|
704
|
+
{
|
|
705
|
+
className: "relative mx-auto block w-fit bg-background px-2 text-muted-foreground",
|
|
706
|
+
"data-slot": "field-separator-content",
|
|
707
|
+
children: e
|
|
708
|
+
}
|
|
709
|
+
)
|
|
710
|
+
]
|
|
711
|
+
}
|
|
712
|
+
);
|
|
713
|
+
}
|
|
714
|
+
function Aa({
|
|
715
|
+
className: e,
|
|
716
|
+
children: t,
|
|
717
|
+
errors: n,
|
|
718
|
+
...o
|
|
719
|
+
}) {
|
|
720
|
+
const l = et(() => {
|
|
721
|
+
var b;
|
|
722
|
+
if (t)
|
|
723
|
+
return t;
|
|
724
|
+
if (!(n != null && n.length))
|
|
725
|
+
return null;
|
|
726
|
+
const i = [
|
|
727
|
+
...new Map(n.map((m) => [m == null ? void 0 : m.message, m])).values()
|
|
728
|
+
];
|
|
729
|
+
return (i == null ? void 0 : i.length) == 1 ? (b = i[0]) == null ? void 0 : b.message : /* @__PURE__ */ a("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: i.map(
|
|
730
|
+
(m, g) => (m == null ? void 0 : m.message) && /* @__PURE__ */ a("li", { children: m.message }, g)
|
|
731
|
+
) });
|
|
732
|
+
}, [t, n]);
|
|
733
|
+
return l ? /* @__PURE__ */ a(
|
|
734
|
+
"div",
|
|
735
|
+
{
|
|
736
|
+
role: "alert",
|
|
737
|
+
"data-slot": "field-error",
|
|
738
|
+
className: r("text-sm font-normal text-destructive-text", e),
|
|
739
|
+
...o,
|
|
740
|
+
children: l
|
|
741
|
+
}
|
|
742
|
+
) : null;
|
|
743
|
+
}
|
|
744
|
+
function Me({ className: e, type: t, ...n }) {
|
|
745
|
+
return /* @__PURE__ */ a(
|
|
746
|
+
"input",
|
|
747
|
+
{
|
|
748
|
+
type: t,
|
|
749
|
+
"data-slot": "input",
|
|
750
|
+
className: r(
|
|
751
|
+
"ui-input",
|
|
752
|
+
e
|
|
753
|
+
),
|
|
754
|
+
...n
|
|
755
|
+
}
|
|
756
|
+
);
|
|
757
|
+
}
|
|
758
|
+
function Ra({
|
|
759
|
+
className: e,
|
|
760
|
+
children: t,
|
|
761
|
+
viewport: n = !0,
|
|
762
|
+
...o
|
|
763
|
+
}) {
|
|
764
|
+
return /* @__PURE__ */ s(
|
|
765
|
+
$.Root,
|
|
766
|
+
{
|
|
767
|
+
"data-slot": "navigation-menu",
|
|
768
|
+
"data-viewport": n,
|
|
769
|
+
className: r(
|
|
770
|
+
"group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
|
|
771
|
+
e
|
|
772
|
+
),
|
|
773
|
+
...o,
|
|
774
|
+
children: [
|
|
775
|
+
t,
|
|
776
|
+
n && /* @__PURE__ */ a(ft, {})
|
|
777
|
+
]
|
|
778
|
+
}
|
|
779
|
+
);
|
|
780
|
+
}
|
|
781
|
+
function Pa({
|
|
782
|
+
className: e,
|
|
783
|
+
...t
|
|
784
|
+
}) {
|
|
785
|
+
return /* @__PURE__ */ a(
|
|
786
|
+
$.List,
|
|
787
|
+
{
|
|
788
|
+
"data-slot": "navigation-menu-list",
|
|
789
|
+
className: r(
|
|
790
|
+
"group flex min-w-0 flex-1 flex-wrap list-none items-center justify-center gap-1",
|
|
791
|
+
e
|
|
792
|
+
),
|
|
793
|
+
...t
|
|
794
|
+
}
|
|
795
|
+
);
|
|
796
|
+
}
|
|
797
|
+
function Ya({
|
|
798
|
+
className: e,
|
|
799
|
+
...t
|
|
800
|
+
}) {
|
|
801
|
+
return /* @__PURE__ */ a(
|
|
802
|
+
$.Item,
|
|
803
|
+
{
|
|
804
|
+
"data-slot": "navigation-menu-item",
|
|
805
|
+
className: r("relative", e),
|
|
806
|
+
...t
|
|
807
|
+
}
|
|
808
|
+
);
|
|
809
|
+
}
|
|
810
|
+
const mt = X(
|
|
811
|
+
"group inline-flex min-h-11 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors duration-120 outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-accent/50 data-[state=open]:text-accent-foreground data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"
|
|
812
|
+
);
|
|
813
|
+
function ja({
|
|
814
|
+
className: e,
|
|
815
|
+
children: t,
|
|
816
|
+
...n
|
|
817
|
+
}) {
|
|
818
|
+
return /* @__PURE__ */ s(
|
|
819
|
+
$.Trigger,
|
|
820
|
+
{
|
|
821
|
+
"data-slot": "navigation-menu-trigger",
|
|
822
|
+
className: r(mt(), "group", e),
|
|
823
|
+
...n,
|
|
824
|
+
children: [
|
|
825
|
+
t,
|
|
826
|
+
" ",
|
|
827
|
+
/* @__PURE__ */ a(
|
|
828
|
+
ce,
|
|
829
|
+
{
|
|
830
|
+
className: "relative top-[1px] ml-1 size-3 group-data-[state=open]:rotate-180",
|
|
831
|
+
"aria-hidden": "true"
|
|
832
|
+
}
|
|
833
|
+
)
|
|
834
|
+
]
|
|
835
|
+
}
|
|
836
|
+
);
|
|
837
|
+
}
|
|
838
|
+
function Va({
|
|
839
|
+
className: e,
|
|
840
|
+
...t
|
|
841
|
+
}) {
|
|
842
|
+
return /* @__PURE__ */ a(
|
|
843
|
+
$.Content,
|
|
844
|
+
{
|
|
845
|
+
"data-slot": "navigation-menu-content",
|
|
846
|
+
className: r(
|
|
847
|
+
"top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto",
|
|
848
|
+
"group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:shadow **:data-[slot=navigation-menu-link]:focus:outline-none",
|
|
849
|
+
e
|
|
850
|
+
),
|
|
851
|
+
...t
|
|
852
|
+
}
|
|
853
|
+
);
|
|
854
|
+
}
|
|
855
|
+
function ft({
|
|
856
|
+
className: e,
|
|
857
|
+
...t
|
|
858
|
+
}) {
|
|
859
|
+
return /* @__PURE__ */ a(
|
|
860
|
+
"div",
|
|
861
|
+
{
|
|
862
|
+
className: r(
|
|
863
|
+
"absolute top-full left-0 isolate z-50 flex justify-center"
|
|
864
|
+
),
|
|
865
|
+
children: /* @__PURE__ */ a(
|
|
866
|
+
$.Viewport,
|
|
867
|
+
{
|
|
868
|
+
"data-slot": "navigation-menu-viewport",
|
|
869
|
+
className: r(
|
|
870
|
+
"origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md bg-popover text-popover-foreground shadow md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
871
|
+
e
|
|
872
|
+
),
|
|
873
|
+
...t
|
|
874
|
+
}
|
|
875
|
+
)
|
|
876
|
+
}
|
|
877
|
+
);
|
|
878
|
+
}
|
|
879
|
+
function Oa({
|
|
880
|
+
className: e,
|
|
881
|
+
...t
|
|
882
|
+
}) {
|
|
883
|
+
return /* @__PURE__ */ a(
|
|
884
|
+
$.Link,
|
|
885
|
+
{
|
|
886
|
+
"data-slot": "navigation-menu-link",
|
|
887
|
+
className: r(
|
|
888
|
+
"ui-navigation-link",
|
|
889
|
+
e
|
|
890
|
+
),
|
|
891
|
+
...t
|
|
892
|
+
}
|
|
893
|
+
);
|
|
894
|
+
}
|
|
895
|
+
function Ba({
|
|
896
|
+
className: e,
|
|
897
|
+
...t
|
|
898
|
+
}) {
|
|
899
|
+
return /* @__PURE__ */ a(
|
|
900
|
+
$.Indicator,
|
|
901
|
+
{
|
|
902
|
+
"data-slot": "navigation-menu-indicator",
|
|
903
|
+
className: r(
|
|
904
|
+
"top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",
|
|
905
|
+
e
|
|
906
|
+
),
|
|
907
|
+
...t,
|
|
908
|
+
children: /* @__PURE__ */ a("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-secondary shadow-md" })
|
|
909
|
+
}
|
|
910
|
+
);
|
|
911
|
+
}
|
|
912
|
+
function _a({
|
|
913
|
+
className: e,
|
|
914
|
+
...t
|
|
915
|
+
}) {
|
|
916
|
+
return /* @__PURE__ */ a(
|
|
917
|
+
me.Root,
|
|
918
|
+
{
|
|
919
|
+
"data-slot": "radio-group",
|
|
920
|
+
className: r("grid gap-3", e),
|
|
921
|
+
...t
|
|
922
|
+
}
|
|
923
|
+
);
|
|
924
|
+
}
|
|
925
|
+
function Ha({
|
|
926
|
+
className: e,
|
|
927
|
+
...t
|
|
928
|
+
}) {
|
|
929
|
+
return /* @__PURE__ */ a(
|
|
930
|
+
me.Item,
|
|
931
|
+
{
|
|
932
|
+
"data-slot": "radio-group-item",
|
|
933
|
+
className: r(
|
|
934
|
+
"relative flex size-11 shrink-0 items-center justify-center rounded-md text-primary outline-none before:absolute before:size-5 before:rounded-full before:bg-input data-[state=checked]:before:bg-primary disabled:cursor-not-allowed disabled:opacity-50",
|
|
935
|
+
e
|
|
936
|
+
),
|
|
937
|
+
...t,
|
|
938
|
+
children: /* @__PURE__ */ a(
|
|
939
|
+
me.Indicator,
|
|
940
|
+
{
|
|
941
|
+
"data-slot": "radio-group-indicator",
|
|
942
|
+
className: "relative flex items-center justify-center",
|
|
943
|
+
children: /* @__PURE__ */ a(Ie, { className: "absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-foreground text-foreground" })
|
|
944
|
+
}
|
|
945
|
+
)
|
|
946
|
+
}
|
|
947
|
+
);
|
|
948
|
+
}
|
|
949
|
+
function gt({
|
|
950
|
+
...e
|
|
951
|
+
}) {
|
|
952
|
+
return /* @__PURE__ */ a(I.Root, { "data-slot": "select", ...e });
|
|
953
|
+
}
|
|
954
|
+
function $a({
|
|
955
|
+
...e
|
|
956
|
+
}) {
|
|
957
|
+
return /* @__PURE__ */ a(I.Group, { "data-slot": "select-group", ...e });
|
|
958
|
+
}
|
|
959
|
+
function ht({
|
|
960
|
+
...e
|
|
961
|
+
}) {
|
|
962
|
+
return /* @__PURE__ */ a(I.Value, { "data-slot": "select-value", ...e });
|
|
963
|
+
}
|
|
964
|
+
function pt({
|
|
965
|
+
className: e,
|
|
966
|
+
size: t = "default",
|
|
967
|
+
children: n,
|
|
968
|
+
...o
|
|
969
|
+
}) {
|
|
970
|
+
return /* @__PURE__ */ s(
|
|
971
|
+
I.Trigger,
|
|
972
|
+
{
|
|
973
|
+
"data-slot": "select-trigger",
|
|
974
|
+
"data-size": t,
|
|
975
|
+
className: r(
|
|
976
|
+
"ui-select-trigger",
|
|
977
|
+
e
|
|
978
|
+
),
|
|
979
|
+
...o,
|
|
980
|
+
children: [
|
|
981
|
+
n,
|
|
982
|
+
/* @__PURE__ */ a(I.Icon, { asChild: !0, children: /* @__PURE__ */ a(ce, { className: "size-4 opacity-50" }) })
|
|
983
|
+
]
|
|
984
|
+
}
|
|
985
|
+
);
|
|
986
|
+
}
|
|
987
|
+
function bt({
|
|
988
|
+
className: e,
|
|
989
|
+
children: t,
|
|
990
|
+
position: n = "item-aligned",
|
|
991
|
+
align: o = "center",
|
|
992
|
+
...l
|
|
993
|
+
}) {
|
|
994
|
+
return /* @__PURE__ */ a(I.Portal, { children: /* @__PURE__ */ s(
|
|
995
|
+
I.Content,
|
|
996
|
+
{
|
|
997
|
+
"data-slot": "select-content",
|
|
998
|
+
className: r(
|
|
999
|
+
"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 bg-popover text-popover-foreground shadow-md",
|
|
1000
|
+
n === "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",
|
|
1001
|
+
e
|
|
1002
|
+
),
|
|
1003
|
+
position: n,
|
|
1004
|
+
align: o,
|
|
1005
|
+
...l,
|
|
1006
|
+
children: [
|
|
1007
|
+
/* @__PURE__ */ a(xt, {}),
|
|
1008
|
+
/* @__PURE__ */ a(
|
|
1009
|
+
I.Viewport,
|
|
1010
|
+
{
|
|
1011
|
+
className: r(
|
|
1012
|
+
"p-1",
|
|
1013
|
+
n === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
|
|
1014
|
+
),
|
|
1015
|
+
children: t
|
|
1016
|
+
}
|
|
1017
|
+
),
|
|
1018
|
+
/* @__PURE__ */ a(Nt, {})
|
|
1019
|
+
]
|
|
1020
|
+
}
|
|
1021
|
+
) });
|
|
1022
|
+
}
|
|
1023
|
+
function Ea({
|
|
1024
|
+
className: e,
|
|
1025
|
+
...t
|
|
1026
|
+
}) {
|
|
1027
|
+
return /* @__PURE__ */ a(
|
|
1028
|
+
I.Label,
|
|
1029
|
+
{
|
|
1030
|
+
"data-slot": "select-label",
|
|
1031
|
+
className: r("px-2 py-1.5 text-xs text-muted-foreground", e),
|
|
1032
|
+
...t
|
|
1033
|
+
}
|
|
1034
|
+
);
|
|
1035
|
+
}
|
|
1036
|
+
function vt({
|
|
1037
|
+
className: e,
|
|
1038
|
+
children: t,
|
|
1039
|
+
...n
|
|
1040
|
+
}) {
|
|
1041
|
+
return /* @__PURE__ */ s(
|
|
1042
|
+
I.Item,
|
|
1043
|
+
{
|
|
1044
|
+
"data-slot": "select-item",
|
|
1045
|
+
className: r(
|
|
1046
|
+
"relative flex min-h-11 w-full cursor-default items-center gap-2 rounded-sm py-2 pe-8 ps-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
1047
|
+
e
|
|
1048
|
+
),
|
|
1049
|
+
...n,
|
|
1050
|
+
children: [
|
|
1051
|
+
/* @__PURE__ */ a(
|
|
1052
|
+
"span",
|
|
1053
|
+
{
|
|
1054
|
+
"data-slot": "select-item-indicator",
|
|
1055
|
+
className: "absolute end-2 flex size-3.5 items-center justify-center",
|
|
1056
|
+
children: /* @__PURE__ */ a(I.ItemIndicator, { children: /* @__PURE__ */ a(Le, { className: "size-4" }) })
|
|
1057
|
+
}
|
|
1058
|
+
),
|
|
1059
|
+
/* @__PURE__ */ a(I.ItemText, { children: t })
|
|
1060
|
+
]
|
|
1061
|
+
}
|
|
1062
|
+
);
|
|
1063
|
+
}
|
|
1064
|
+
function Ga({
|
|
1065
|
+
className: e,
|
|
1066
|
+
...t
|
|
1067
|
+
}) {
|
|
1068
|
+
return /* @__PURE__ */ a(
|
|
1069
|
+
I.Separator,
|
|
1070
|
+
{
|
|
1071
|
+
"data-slot": "select-separator",
|
|
1072
|
+
className: r("pointer-events-none -mx-1 my-2 h-0 bg-transparent", e),
|
|
1073
|
+
...t
|
|
1074
|
+
}
|
|
1075
|
+
);
|
|
1076
|
+
}
|
|
1077
|
+
function xt({
|
|
1078
|
+
className: e,
|
|
1079
|
+
...t
|
|
1080
|
+
}) {
|
|
1081
|
+
return /* @__PURE__ */ a(
|
|
1082
|
+
I.ScrollUpButton,
|
|
1083
|
+
{
|
|
1084
|
+
"data-slot": "select-scroll-up-button",
|
|
1085
|
+
className: r(
|
|
1086
|
+
"flex cursor-default items-center justify-center py-1",
|
|
1087
|
+
e
|
|
1088
|
+
),
|
|
1089
|
+
...t,
|
|
1090
|
+
children: /* @__PURE__ */ a(Ae, { className: "size-4" })
|
|
1091
|
+
}
|
|
1092
|
+
);
|
|
1093
|
+
}
|
|
1094
|
+
function Nt({
|
|
1095
|
+
className: e,
|
|
1096
|
+
...t
|
|
1097
|
+
}) {
|
|
1098
|
+
return /* @__PURE__ */ a(
|
|
1099
|
+
I.ScrollDownButton,
|
|
1100
|
+
{
|
|
1101
|
+
"data-slot": "select-scroll-down-button",
|
|
1102
|
+
className: r(
|
|
1103
|
+
"flex cursor-default items-center justify-center py-1",
|
|
1104
|
+
e
|
|
1105
|
+
),
|
|
1106
|
+
...t,
|
|
1107
|
+
children: /* @__PURE__ */ a(ce, { className: "size-4" })
|
|
1108
|
+
}
|
|
1109
|
+
);
|
|
1110
|
+
}
|
|
1111
|
+
function Wa({ ...e }) {
|
|
1112
|
+
return /* @__PURE__ */ a(k.Root, { "data-slot": "sheet", ...e });
|
|
1113
|
+
}
|
|
1114
|
+
function qa({
|
|
1115
|
+
...e
|
|
1116
|
+
}) {
|
|
1117
|
+
return /* @__PURE__ */ a(k.Trigger, { "data-slot": "sheet-trigger", ...e });
|
|
1118
|
+
}
|
|
1119
|
+
function Za({
|
|
1120
|
+
...e
|
|
1121
|
+
}) {
|
|
1122
|
+
return /* @__PURE__ */ a(k.Close, { "data-slot": "sheet-close", ...e });
|
|
1123
|
+
}
|
|
1124
|
+
function wt({
|
|
1125
|
+
...e
|
|
1126
|
+
}) {
|
|
1127
|
+
return /* @__PURE__ */ a(k.Portal, { "data-slot": "sheet-portal", ...e });
|
|
1128
|
+
}
|
|
1129
|
+
function Ct({
|
|
1130
|
+
className: e,
|
|
1131
|
+
...t
|
|
1132
|
+
}) {
|
|
1133
|
+
return /* @__PURE__ */ a(
|
|
1134
|
+
k.Overlay,
|
|
1135
|
+
{
|
|
1136
|
+
"data-slot": "sheet-overlay",
|
|
1137
|
+
className: r(
|
|
1138
|
+
"fixed inset-0 z-50 bg-black/50",
|
|
1139
|
+
e
|
|
1140
|
+
),
|
|
1141
|
+
...t
|
|
1142
|
+
}
|
|
1143
|
+
);
|
|
1144
|
+
}
|
|
1145
|
+
function Xa({
|
|
1146
|
+
className: e,
|
|
1147
|
+
children: t,
|
|
1148
|
+
side: n = "right",
|
|
1149
|
+
showCloseButton: o = !0,
|
|
1150
|
+
closeLabel: l = "Close",
|
|
1151
|
+
...i
|
|
1152
|
+
}) {
|
|
1153
|
+
return /* @__PURE__ */ s(wt, { children: [
|
|
1154
|
+
/* @__PURE__ */ a(Ct, {}),
|
|
1155
|
+
/* @__PURE__ */ s(
|
|
1156
|
+
k.Content,
|
|
1157
|
+
{
|
|
1158
|
+
"data-slot": "sheet-content",
|
|
1159
|
+
"data-side": n,
|
|
1160
|
+
className: r(
|
|
1161
|
+
"fixed z-50 flex flex-col gap-4 bg-background shadow-lg",
|
|
1162
|
+
n === "right" && "inset-y-0 right-0 h-full w-3/4 sm:max-w-sm",
|
|
1163
|
+
n === "left" && "inset-y-0 left-0 h-full w-3/4 sm:max-w-sm",
|
|
1164
|
+
n === "top" && "inset-x-0 top-0 h-auto",
|
|
1165
|
+
n === "bottom" && "inset-x-0 bottom-0 h-auto",
|
|
1166
|
+
e
|
|
1167
|
+
),
|
|
1168
|
+
...i,
|
|
1169
|
+
children: [
|
|
1170
|
+
t,
|
|
1171
|
+
o && /* @__PURE__ */ s(k.Close, { className: "absolute top-2 end-2 flex size-11 items-center justify-center rounded-md opacity-70 ring-offset-background hover:opacity-100 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
1172
|
+
/* @__PURE__ */ a(Ce, { className: "size-4" }),
|
|
1173
|
+
/* @__PURE__ */ a("span", { className: "sr-only", children: l })
|
|
1174
|
+
] })
|
|
1175
|
+
]
|
|
1176
|
+
}
|
|
1177
|
+
)
|
|
1178
|
+
] });
|
|
1179
|
+
}
|
|
1180
|
+
function Ka({ className: e, ...t }) {
|
|
1181
|
+
return /* @__PURE__ */ a(
|
|
1182
|
+
"div",
|
|
1183
|
+
{
|
|
1184
|
+
"data-slot": "sheet-header",
|
|
1185
|
+
className: r("flex flex-col gap-1.5 p-4", e),
|
|
1186
|
+
...t
|
|
1187
|
+
}
|
|
1188
|
+
);
|
|
1189
|
+
}
|
|
1190
|
+
function Qa({ className: e, ...t }) {
|
|
1191
|
+
return /* @__PURE__ */ a(
|
|
1192
|
+
"div",
|
|
1193
|
+
{
|
|
1194
|
+
"data-slot": "sheet-footer",
|
|
1195
|
+
className: r("mt-auto flex flex-col gap-2 p-4", e),
|
|
1196
|
+
...t
|
|
1197
|
+
}
|
|
1198
|
+
);
|
|
1199
|
+
}
|
|
1200
|
+
function Ja({
|
|
1201
|
+
className: e,
|
|
1202
|
+
...t
|
|
1203
|
+
}) {
|
|
1204
|
+
return /* @__PURE__ */ a(
|
|
1205
|
+
k.Title,
|
|
1206
|
+
{
|
|
1207
|
+
"data-slot": "sheet-title",
|
|
1208
|
+
className: r("font-semibold text-foreground", e),
|
|
1209
|
+
...t
|
|
1210
|
+
}
|
|
1211
|
+
);
|
|
1212
|
+
}
|
|
1213
|
+
function en({
|
|
1214
|
+
className: e,
|
|
1215
|
+
...t
|
|
1216
|
+
}) {
|
|
1217
|
+
return /* @__PURE__ */ a(
|
|
1218
|
+
k.Description,
|
|
1219
|
+
{
|
|
1220
|
+
"data-slot": "sheet-description",
|
|
1221
|
+
className: r("text-sm text-muted-foreground", e),
|
|
1222
|
+
...t
|
|
1223
|
+
}
|
|
1224
|
+
);
|
|
1225
|
+
}
|
|
1226
|
+
function we({ className: e, ...t }) {
|
|
1227
|
+
return /* @__PURE__ */ a(
|
|
1228
|
+
"div",
|
|
1229
|
+
{
|
|
1230
|
+
"data-slot": "skeleton",
|
|
1231
|
+
className: r("rounded-md bg-accent", e),
|
|
1232
|
+
...t
|
|
1233
|
+
}
|
|
1234
|
+
);
|
|
1235
|
+
}
|
|
1236
|
+
function Tt({
|
|
1237
|
+
className: e,
|
|
1238
|
+
size: t = "default",
|
|
1239
|
+
...n
|
|
1240
|
+
}) {
|
|
1241
|
+
return /* @__PURE__ */ a(
|
|
1242
|
+
ve.Root,
|
|
1243
|
+
{
|
|
1244
|
+
"data-slot": "switch",
|
|
1245
|
+
"data-size": t,
|
|
1246
|
+
className: r(
|
|
1247
|
+
"peer group/switch relative inline-flex h-11 w-12 shrink-0 items-center rounded-md outline-none before:absolute before:inset-x-0.5 before:h-6 before:rounded-full before:bg-input before:transition-colors before:duration-120 data-[state=checked]:before:bg-primary disabled:cursor-not-allowed disabled:opacity-50",
|
|
1248
|
+
e
|
|
1249
|
+
),
|
|
1250
|
+
...n,
|
|
1251
|
+
children: /* @__PURE__ */ a(
|
|
1252
|
+
ve.Thumb,
|
|
1253
|
+
{
|
|
1254
|
+
"data-slot": "switch-thumb",
|
|
1255
|
+
className: r(
|
|
1256
|
+
"pointer-events-none relative block size-5 rounded-full bg-foreground transition-transform duration-120 data-[state=checked]:translate-x-6 data-[state=unchecked]:translate-x-1 data-[state=unchecked]:bg-background"
|
|
1257
|
+
)
|
|
1258
|
+
}
|
|
1259
|
+
)
|
|
1260
|
+
}
|
|
1261
|
+
);
|
|
1262
|
+
}
|
|
1263
|
+
function tn({
|
|
1264
|
+
className: e,
|
|
1265
|
+
orientation: t = "horizontal",
|
|
1266
|
+
...n
|
|
1267
|
+
}) {
|
|
1268
|
+
return /* @__PURE__ */ a(
|
|
1269
|
+
de.Root,
|
|
1270
|
+
{
|
|
1271
|
+
"data-slot": "tabs",
|
|
1272
|
+
"data-orientation": t,
|
|
1273
|
+
orientation: t,
|
|
1274
|
+
className: r(
|
|
1275
|
+
"group/tabs ui-tabs-base",
|
|
1276
|
+
e
|
|
1277
|
+
),
|
|
1278
|
+
...n
|
|
1279
|
+
}
|
|
1280
|
+
);
|
|
1281
|
+
}
|
|
1282
|
+
const yt = X(
|
|
1283
|
+
"group/tabs-list ui-tabs-list",
|
|
1284
|
+
{
|
|
1285
|
+
variants: {
|
|
1286
|
+
variant: {
|
|
1287
|
+
default: "bg-muted",
|
|
1288
|
+
line: "gap-1 bg-transparent"
|
|
1289
|
+
}
|
|
1290
|
+
},
|
|
1291
|
+
defaultVariants: {
|
|
1292
|
+
variant: "default"
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
);
|
|
1296
|
+
function an({
|
|
1297
|
+
className: e,
|
|
1298
|
+
variant: t = "default",
|
|
1299
|
+
...n
|
|
1300
|
+
}) {
|
|
1301
|
+
return /* @__PURE__ */ a(
|
|
1302
|
+
de.List,
|
|
1303
|
+
{
|
|
1304
|
+
"data-slot": "tabs-list",
|
|
1305
|
+
"data-variant": t,
|
|
1306
|
+
className: r(yt({ variant: t }), e),
|
|
1307
|
+
...n
|
|
1308
|
+
}
|
|
1309
|
+
);
|
|
1310
|
+
}
|
|
1311
|
+
function nn({
|
|
1312
|
+
className: e,
|
|
1313
|
+
...t
|
|
1314
|
+
}) {
|
|
1315
|
+
return /* @__PURE__ */ a(
|
|
1316
|
+
de.Trigger,
|
|
1317
|
+
{
|
|
1318
|
+
"data-slot": "tabs-trigger",
|
|
1319
|
+
className: r(
|
|
1320
|
+
"ui-tabs-trigger",
|
|
1321
|
+
e
|
|
1322
|
+
),
|
|
1323
|
+
...t
|
|
1324
|
+
}
|
|
1325
|
+
);
|
|
1326
|
+
}
|
|
1327
|
+
function rn({
|
|
1328
|
+
className: e,
|
|
1329
|
+
...t
|
|
1330
|
+
}) {
|
|
1331
|
+
return /* @__PURE__ */ a(
|
|
1332
|
+
de.Content,
|
|
1333
|
+
{
|
|
1334
|
+
"data-slot": "tabs-content",
|
|
1335
|
+
className: r("flex-1 outline-none", e),
|
|
1336
|
+
...t
|
|
1337
|
+
}
|
|
1338
|
+
);
|
|
1339
|
+
}
|
|
1340
|
+
function on({ className: e, ...t }) {
|
|
1341
|
+
return /* @__PURE__ */ a(
|
|
1342
|
+
"textarea",
|
|
1343
|
+
{
|
|
1344
|
+
"data-slot": "textarea",
|
|
1345
|
+
className: r(
|
|
1346
|
+
"ui-textarea",
|
|
1347
|
+
e
|
|
1348
|
+
),
|
|
1349
|
+
...t
|
|
1350
|
+
}
|
|
1351
|
+
);
|
|
1352
|
+
}
|
|
1353
|
+
function kt({ className: e, width: t = 32, height: n = 32, ...o }) {
|
|
1354
|
+
return /* @__PURE__ */ a("img", { width: t, height: n, className: r("brand-logo", e), ...o });
|
|
1355
|
+
}
|
|
1356
|
+
function ln({ name: e, logoSrc: t, subtitle: n, className: o, ...l }) {
|
|
1357
|
+
return /* @__PURE__ */ s("a", { "aria-label": e, className: r("brand-lockup", o), ...l, children: [
|
|
1358
|
+
/* @__PURE__ */ a(kt, { src: t, alt: "" }),
|
|
1359
|
+
/* @__PURE__ */ s("span", { children: [
|
|
1360
|
+
e,
|
|
1361
|
+
n && /* @__PURE__ */ a("small", { children: n })
|
|
1362
|
+
] })
|
|
1363
|
+
] });
|
|
1364
|
+
}
|
|
1365
|
+
function sn({ title: e, caption: t, index: n, image: o, headingLevel: l = 3, className: i, ...b }) {
|
|
1366
|
+
const m = l === 2 ? "h2" : "h3";
|
|
1367
|
+
return /* @__PURE__ */ a("article", { className: "min-w-0", children: /* @__PURE__ */ a(ot, { className: "gallery-card", children: /* @__PURE__ */ s("a", { className: r("media-card-link", i), ...b, children: [
|
|
1368
|
+
/* @__PURE__ */ a("div", { className: "media-frame", children: /* @__PURE__ */ a("img", { ...o, loading: "lazy", className: "gallery-image" }) }),
|
|
1369
|
+
/* @__PURE__ */ s(it, { className: "media-card-caption", children: [
|
|
1370
|
+
/* @__PURE__ */ s("div", { className: "min-w-0", children: [
|
|
1371
|
+
/* @__PURE__ */ a(m, { className: "media-card-title", children: e }),
|
|
1372
|
+
t && /* @__PURE__ */ a("p", { className: "media-card-description", children: t })
|
|
1373
|
+
] }),
|
|
1374
|
+
n !== void 0 && /* @__PURE__ */ a("span", { "aria-hidden": "true", className: "media-card-index", children: String(n).padStart(2, "0") })
|
|
1375
|
+
] })
|
|
1376
|
+
] }) }) });
|
|
1377
|
+
}
|
|
1378
|
+
function cn({ name: e, subtitle: t, actions: n, className: o, ...l }) {
|
|
1379
|
+
return /* @__PURE__ */ s("div", { className: r("contact-card", o), ...l, children: [
|
|
1380
|
+
/* @__PURE__ */ s("div", { className: "contact-identity", children: [
|
|
1381
|
+
/* @__PURE__ */ a("span", { className: "contact-avatar", "aria-hidden": "true", children: e.split(" ").map((i) => i[0]).join("").slice(0, 2) }),
|
|
1382
|
+
/* @__PURE__ */ s("div", { children: [
|
|
1383
|
+
/* @__PURE__ */ a("strong", { children: e }),
|
|
1384
|
+
t && /* @__PURE__ */ a("small", { children: t })
|
|
1385
|
+
] })
|
|
1386
|
+
] }),
|
|
1387
|
+
/* @__PURE__ */ a("div", { className: "contact-actions", children: n.map(({ title: i, detail: b, href: m, label: g, external: f, icon: T = Re }) => {
|
|
1388
|
+
const x = f ?? /^https?:/.test(m);
|
|
1389
|
+
return /* @__PURE__ */ s("a", { className: "contact-link", href: m, target: x ? "_blank" : void 0, rel: x ? "noopener noreferrer" : void 0, "aria-label": g, children: [
|
|
1390
|
+
/* @__PURE__ */ a(T, { "aria-hidden": "true" }),
|
|
1391
|
+
/* @__PURE__ */ s("span", { children: [
|
|
1392
|
+
i,
|
|
1393
|
+
b && /* @__PURE__ */ a("small", { title: b, dir: "ltr", children: b })
|
|
1394
|
+
] }),
|
|
1395
|
+
/* @__PURE__ */ a(Pe, { className: "contact-arrow", "aria-hidden": "true" })
|
|
1396
|
+
] }, m);
|
|
1397
|
+
}) })
|
|
1398
|
+
] });
|
|
1399
|
+
}
|
|
1400
|
+
function dn({ theme: e, onThemeChange: t, label: n, title: o, disabled: l }) {
|
|
1401
|
+
return /* @__PURE__ */ s("span", { className: "theme-switch", "data-theme": e, dir: "ltr", children: [
|
|
1402
|
+
/* @__PURE__ */ a(
|
|
1403
|
+
Tt,
|
|
1404
|
+
{
|
|
1405
|
+
className: "theme-toggle",
|
|
1406
|
+
checked: e === "dark",
|
|
1407
|
+
"aria-label": n,
|
|
1408
|
+
title: o,
|
|
1409
|
+
disabled: l,
|
|
1410
|
+
onCheckedChange: (i) => t(i ? "dark" : "light")
|
|
1411
|
+
}
|
|
1412
|
+
),
|
|
1413
|
+
/* @__PURE__ */ a(Ye, { className: "theme-symbol theme-sun", "aria-hidden": "true" }),
|
|
1414
|
+
/* @__PURE__ */ a(je, { className: "theme-symbol theme-moon", "aria-hidden": "true" })
|
|
1415
|
+
] });
|
|
1416
|
+
}
|
|
1417
|
+
function De(e) {
|
|
1418
|
+
const t = getComputedStyle(e).direction === "rtl" ? -1 : 1, n = Math.max(0, e.scrollWidth - e.clientWidth);
|
|
1419
|
+
return { sign: t, max: n, offset: Math.max(0, Math.min(n, e.scrollLeft * t)) };
|
|
1420
|
+
}
|
|
1421
|
+
function Mt(e, t) {
|
|
1422
|
+
const { sign: n, max: o } = De(e);
|
|
1423
|
+
e.scrollTo({
|
|
1424
|
+
left: Math.max(0, Math.min(o, t)) * n,
|
|
1425
|
+
behavior: matchMedia("(prefers-reduced-motion: reduce)").matches ? "instant" : "smooth"
|
|
1426
|
+
});
|
|
1427
|
+
}
|
|
1428
|
+
function un({ comments: e, labels: t, busy: n = !1, onAction: o }) {
|
|
1429
|
+
const l = H(null), [i, b] = O({ at: 1, total: 1 }), m = H(0);
|
|
1430
|
+
he(() => {
|
|
1431
|
+
const f = l.current, T = () => {
|
|
1432
|
+
var P;
|
|
1433
|
+
const h = (P = f.querySelector("article")) == null ? void 0 : P.getBoundingClientRect();
|
|
1434
|
+
if (!h) {
|
|
1435
|
+
b({ at: 1, total: 1 });
|
|
1436
|
+
return;
|
|
1437
|
+
}
|
|
1438
|
+
const v = parseFloat(getComputedStyle(f).columnGap) || 0, N = Math.max(1, Math.round((f.clientWidth + v) / (h.width + v)));
|
|
1439
|
+
m.current = N * (h.width + v);
|
|
1440
|
+
const u = Math.max(1, Math.ceil(e.length / N)), { offset: w, max: L } = De(f);
|
|
1441
|
+
b({ at: w >= L - 2 ? u : Math.min(u, Math.round(w / m.current) + 1), total: u });
|
|
1442
|
+
}, x = new ResizeObserver(T);
|
|
1443
|
+
return x.observe(f), f.addEventListener("scroll", T, { passive: !0 }), T(), () => {
|
|
1444
|
+
x.disconnect(), f.removeEventListener("scroll", T);
|
|
1445
|
+
};
|
|
1446
|
+
}, [e.length]);
|
|
1447
|
+
const g = (f) => Mt(l.current, (i.at - 1 + f) * m.current);
|
|
1448
|
+
return /* @__PURE__ */ s("div", { "data-comment-carousel": !0, children: [
|
|
1449
|
+
/* @__PURE__ */ a("div", { ref: l, className: "comment-feed", role: "group", tabIndex: 0, "aria-label": t.title, children: e.length === 0 ? /* @__PURE__ */ a("p", { className: "text-muted-foreground", children: t.empty }) : e.map((f) => {
|
|
1450
|
+
var T;
|
|
1451
|
+
return /* @__PURE__ */ s("article", { className: "comment-row", children: [
|
|
1452
|
+
/* @__PURE__ */ a("span", { className: "comment-avatar", "data-own": f.own, "aria-hidden": "true", children: /* @__PURE__ */ a(Ve, {}) }),
|
|
1453
|
+
/* @__PURE__ */ s("div", { className: "min-w-0", children: [
|
|
1454
|
+
/* @__PURE__ */ s("div", { className: "comment-meta", children: [
|
|
1455
|
+
/* @__PURE__ */ a("strong", { children: f.author }),
|
|
1456
|
+
f.createdAt !== void 0 && /* @__PURE__ */ a("time", { dateTime: f.createdAt.dateTime, children: f.createdAt.label })
|
|
1457
|
+
] }),
|
|
1458
|
+
f.text.length > 240 || f.text.split(`
|
|
1459
|
+
`).length > 6 ? /* @__PURE__ */ s("details", { className: "comment-disclosure", children: [
|
|
1460
|
+
/* @__PURE__ */ s("summary", { children: [
|
|
1461
|
+
/* @__PURE__ */ a("span", { dir: "auto", className: "comment-excerpt", "aria-hidden": "true", children: f.text }),
|
|
1462
|
+
/* @__PURE__ */ a("span", { className: "comment-read", children: t.readMore }),
|
|
1463
|
+
/* @__PURE__ */ a("span", { className: "comment-collapse", children: t.collapse })
|
|
1464
|
+
] }),
|
|
1465
|
+
/* @__PURE__ */ a("p", { dir: "auto", className: "comment-text", children: f.text })
|
|
1466
|
+
] }) : /* @__PURE__ */ a("p", { dir: "auto", className: "comment-text", children: f.text }),
|
|
1467
|
+
/* @__PURE__ */ a("div", { className: "comment-actions", children: (T = f.actions) == null ? void 0 : T.map(({ id: x, label: h, disabled: v, icon: N }) => /* @__PURE__ */ s(D, { type: "button", variant: "ghost", size: "sm", disabled: n || v, onClick: () => o(f.id, x), children: [
|
|
1468
|
+
N && /* @__PURE__ */ a(N, { "data-icon": "inline-start", "aria-hidden": "true" }),
|
|
1469
|
+
h
|
|
1470
|
+
] }, x)) })
|
|
1471
|
+
] })
|
|
1472
|
+
] }, f.id);
|
|
1473
|
+
}) }),
|
|
1474
|
+
e.length > 0 && /* @__PURE__ */ s("nav", { className: "carousel-pagination", "aria-label": t.title, children: [
|
|
1475
|
+
/* @__PURE__ */ a(D, { variant: "secondary", size: "icon", disabled: i.at === 1, onClick: () => g(-1), "aria-label": t.previous, children: /* @__PURE__ */ a(Oe, { "aria-hidden": "true" }) }),
|
|
1476
|
+
/* @__PURE__ */ s("output", { dir: "ltr", "aria-live": "polite", children: [
|
|
1477
|
+
i.at,
|
|
1478
|
+
" / ",
|
|
1479
|
+
i.total
|
|
1480
|
+
] }),
|
|
1481
|
+
/* @__PURE__ */ a(D, { variant: "secondary", size: "icon", disabled: i.at === i.total, onClick: () => g(1), "aria-label": t.next, children: /* @__PURE__ */ a(Be, { "aria-hidden": "true" }) })
|
|
1482
|
+
] })
|
|
1483
|
+
] });
|
|
1484
|
+
}
|
|
1485
|
+
const mn = Je.Provider;
|
|
1486
|
+
function le(e) {
|
|
1487
|
+
return String(e).padStart(2, "0");
|
|
1488
|
+
}
|
|
1489
|
+
function R(e, t, n, o = 0, l = 0) {
|
|
1490
|
+
const i = /* @__PURE__ */ new Date(0);
|
|
1491
|
+
return i.setUTCFullYear(e, t, n), i.setUTCHours(o, l, 0, 0), i;
|
|
1492
|
+
}
|
|
1493
|
+
function se(e) {
|
|
1494
|
+
return e.getUTCFullYear() >= 1 && e.getUTCFullYear() <= 9999;
|
|
1495
|
+
}
|
|
1496
|
+
function G(e) {
|
|
1497
|
+
return String(e.getUTCFullYear()).padStart(4, "0") + "-" + le(e.getUTCMonth() + 1) + "-" + le(e.getUTCDate());
|
|
1498
|
+
}
|
|
1499
|
+
function ue(e) {
|
|
1500
|
+
const t = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?$/.exec(e);
|
|
1501
|
+
if (!t) return null;
|
|
1502
|
+
const n = Number(t[1]), o = Number(t[2]), l = Number(t[3]), i = Number(t[4] ?? 0), b = Number(t[5] ?? 0), m = /* @__PURE__ */ new Date(0);
|
|
1503
|
+
return m.setUTCFullYear(n, o - 1, l), m.setUTCHours(i, b, 0, 0), !se(m) || m.getUTCFullYear() !== n || m.getUTCMonth() !== o - 1 || m.getUTCDate() !== l || m.getUTCHours() !== i || m.getUTCMinutes() !== b ? null : m;
|
|
1504
|
+
}
|
|
1505
|
+
function Dt() {
|
|
1506
|
+
const e = /* @__PURE__ */ new Date();
|
|
1507
|
+
return R(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes());
|
|
1508
|
+
}
|
|
1509
|
+
function ie(e, t, n, o) {
|
|
1510
|
+
const l = G(e);
|
|
1511
|
+
return o === "date" ? l : l + "T" + le(t) + ":" + le(n);
|
|
1512
|
+
}
|
|
1513
|
+
function Z(e) {
|
|
1514
|
+
return R(e.getUTCFullYear(), e.getUTCMonth(), 1);
|
|
1515
|
+
}
|
|
1516
|
+
function E(e, t) {
|
|
1517
|
+
const n = R(e.getUTCFullYear(), e.getUTCMonth() + t, 1);
|
|
1518
|
+
if (!se(n)) return e;
|
|
1519
|
+
const o = R(n.getUTCFullYear(), n.getUTCMonth() + 1, 0).getUTCDate();
|
|
1520
|
+
return R(n.getUTCFullYear(), n.getUTCMonth(), Math.min(e.getUTCDate(), o));
|
|
1521
|
+
}
|
|
1522
|
+
function Ut(e) {
|
|
1523
|
+
const t = Z(e), n = (t.getUTCDay() + 6) % 7, o = R(t.getUTCFullYear(), t.getUTCMonth(), 1 - n);
|
|
1524
|
+
return Array.from({ length: 42 }, (l, i) => R(o.getUTCFullYear(), o.getUTCMonth(), o.getUTCDate() + i));
|
|
1525
|
+
}
|
|
1526
|
+
function fn({ mode: e, value: t, onChange: n, onCommit: o, labels: l, locale: i, today: b, ariaLabel: m, disabled: g, className: f }) {
|
|
1527
|
+
const [T, x] = O(!1), h = ue(t), v = ue(b ?? "") ?? Dt(), [N, u] = O(() => Z(h ?? v)), [w, L] = O(() => h ?? v), P = H(null), p = H(t), U = H(t);
|
|
1528
|
+
p.current = t;
|
|
1529
|
+
function Y(c) {
|
|
1530
|
+
p.current = c, n(c);
|
|
1531
|
+
}
|
|
1532
|
+
function A(c) {
|
|
1533
|
+
c !== t && Y(c), c !== U.current && (o == null || o(c)), U.current = c, x(!1);
|
|
1534
|
+
}
|
|
1535
|
+
function y(c) {
|
|
1536
|
+
if (c) {
|
|
1537
|
+
p.current = t, U.current = t;
|
|
1538
|
+
const C = ue(t) ?? v;
|
|
1539
|
+
u(Z(C)), L(C);
|
|
1540
|
+
} else p.current !== U.current && (o == null || o(p.current), U.current = p.current);
|
|
1541
|
+
x(c);
|
|
1542
|
+
}
|
|
1543
|
+
function ae(c, C, z) {
|
|
1544
|
+
const oe = getComputedStyle(z.currentTarget).direction === "rtl", _ = (c.getUTCDay() + 6) % 7;
|
|
1545
|
+
let M;
|
|
1546
|
+
switch (C) {
|
|
1547
|
+
case "ArrowLeft":
|
|
1548
|
+
M = R(c.getUTCFullYear(), c.getUTCMonth(), c.getUTCDate() + (oe ? 1 : -1));
|
|
1549
|
+
break;
|
|
1550
|
+
case "ArrowRight":
|
|
1551
|
+
M = R(c.getUTCFullYear(), c.getUTCMonth(), c.getUTCDate() + (oe ? -1 : 1));
|
|
1552
|
+
break;
|
|
1553
|
+
case "ArrowUp":
|
|
1554
|
+
M = R(c.getUTCFullYear(), c.getUTCMonth(), c.getUTCDate() - 7);
|
|
1555
|
+
break;
|
|
1556
|
+
case "ArrowDown":
|
|
1557
|
+
M = R(c.getUTCFullYear(), c.getUTCMonth(), c.getUTCDate() + 7);
|
|
1558
|
+
break;
|
|
1559
|
+
case "Home":
|
|
1560
|
+
M = R(c.getUTCFullYear(), c.getUTCMonth(), c.getUTCDate() - _);
|
|
1561
|
+
break;
|
|
1562
|
+
case "End":
|
|
1563
|
+
M = R(c.getUTCFullYear(), c.getUTCMonth(), c.getUTCDate() + 6 - _);
|
|
1564
|
+
break;
|
|
1565
|
+
case "PageUp":
|
|
1566
|
+
M = E(c, -1);
|
|
1567
|
+
break;
|
|
1568
|
+
case "PageDown":
|
|
1569
|
+
M = E(c, 1);
|
|
1570
|
+
break;
|
|
1571
|
+
default:
|
|
1572
|
+
return;
|
|
1573
|
+
}
|
|
1574
|
+
z.preventDefault(), se(M) && (u(Z(M)), L(M), requestAnimationFrame(() => {
|
|
1575
|
+
var pe, be;
|
|
1576
|
+
(be = (pe = P.current) == null ? void 0 : pe.querySelector('[data-day="' + G(M) + '"]')) == null || be.focus();
|
|
1577
|
+
}));
|
|
1578
|
+
}
|
|
1579
|
+
function F(c) {
|
|
1580
|
+
const C = E(w, c);
|
|
1581
|
+
u(Z(C)), L(C);
|
|
1582
|
+
}
|
|
1583
|
+
const j = (h == null ? void 0 : h.getUTCHours()) ?? v.getUTCHours(), S = (h == null ? void 0 : h.getUTCMinutes()) ?? v.getUTCMinutes(), K = new Intl.DateTimeFormat(i, e === "date" ? { dateStyle: "medium", timeZone: "UTC" } : { dateStyle: "medium", timeStyle: "short", timeZone: "UTC" }), B = new Intl.DateTimeFormat(i, { dateStyle: "full", timeZone: "UTC" }), ne = Array.from({ length: 7 }, (c, C) => new Intl.DateTimeFormat(i, { weekday: "short", timeZone: "UTC" }).format(new Date(Date.UTC(2026, 0, 5 + C)))), d = Ut(N), Q = h ? G(h) : "", re = Math.min(1920, N.getUTCFullYear()), Ue = Math.min(9999, Math.max(v.getUTCFullYear() + 2, N.getUTCFullYear()));
|
|
1584
|
+
return /* @__PURE__ */ a(V.Root, { open: T, onOpenChange: y, children: /* @__PURE__ */ s("div", { "data-slot": "date-field", className: f ? "ui-date-field " + f : "ui-date-field", children: [
|
|
1585
|
+
/* @__PURE__ */ a(V.Trigger, { asChild: !0, children: /* @__PURE__ */ a(D, { type: "button", variant: "outline", className: "ui-date-trigger", disabled: g, "aria-label": (m ?? l[e]) + (h ? ": " + K.format(h) : ""), children: h ? K.format(h) : l[e] }) }),
|
|
1586
|
+
/* @__PURE__ */ a(V.Portal, { children: /* @__PURE__ */ s(
|
|
1587
|
+
V.Content,
|
|
1588
|
+
{
|
|
1589
|
+
ref: P,
|
|
1590
|
+
"data-slot": "date-popover",
|
|
1591
|
+
className: "ui-date-popover",
|
|
1592
|
+
sideOffset: 8,
|
|
1593
|
+
collisionPadding: 8,
|
|
1594
|
+
"aria-label": l.calendar,
|
|
1595
|
+
onOpenAutoFocus: (c) => {
|
|
1596
|
+
var C, z;
|
|
1597
|
+
c.preventDefault(), (z = (C = P.current) == null ? void 0 : C.querySelector('[data-day="' + G(w) + '"]')) == null || z.focus();
|
|
1598
|
+
},
|
|
1599
|
+
children: [
|
|
1600
|
+
/* @__PURE__ */ a("div", { className: "ui-date-heading", "aria-live": "polite", children: new Intl.DateTimeFormat(i, { month: "long", year: "numeric", timeZone: "UTC" }).format(N) }),
|
|
1601
|
+
/* @__PURE__ */ s("div", { className: "ui-date-nav", children: [
|
|
1602
|
+
/* @__PURE__ */ a(D, { type: "button", variant: "ghost", size: "icon", "aria-label": l.previousYear, disabled: E(w, -12).getTime() === w.getTime(), onClick: () => F(-12), children: /* @__PURE__ */ a(_e, { "aria-hidden": "true" }) }),
|
|
1603
|
+
/* @__PURE__ */ a(D, { type: "button", variant: "ghost", size: "icon", "aria-label": l.previousMonth, disabled: E(w, -1).getTime() === w.getTime(), onClick: () => F(-1), children: /* @__PURE__ */ a(Te, { "aria-hidden": "true" }) }),
|
|
1604
|
+
/* @__PURE__ */ a("select", { className: "ui-date-year", "aria-label": l.year, value: N.getUTCFullYear(), onChange: (c) => F((Number(c.currentTarget.value) - N.getUTCFullYear()) * 12), children: Array.from({ length: Ue - re + 1 }, (c, C) => re + C).map((c) => /* @__PURE__ */ a("option", { value: c, children: c }, c)) }),
|
|
1605
|
+
/* @__PURE__ */ a(D, { type: "button", variant: "ghost", size: "icon", "aria-label": l.nextMonth, disabled: E(w, 1).getTime() === w.getTime(), onClick: () => F(1), children: /* @__PURE__ */ a(fe, { "aria-hidden": "true" }) }),
|
|
1606
|
+
/* @__PURE__ */ a(D, { type: "button", variant: "ghost", size: "icon", "aria-label": l.nextYear, disabled: E(w, 12).getTime() === w.getTime(), onClick: () => F(12), children: /* @__PURE__ */ a(He, { "aria-hidden": "true" }) })
|
|
1607
|
+
] }),
|
|
1608
|
+
/* @__PURE__ */ s("table", { className: "ui-date-grid", children: [
|
|
1609
|
+
/* @__PURE__ */ a("thead", { children: /* @__PURE__ */ a("tr", { children: ne.map((c, C) => /* @__PURE__ */ a("th", { scope: "col", children: c }, C)) }) }),
|
|
1610
|
+
/* @__PURE__ */ a("tbody", { children: Array.from({ length: 6 }, (c, C) => /* @__PURE__ */ a("tr", { children: d.slice(C * 7, C * 7 + 7).map((z, oe) => {
|
|
1611
|
+
if (!se(z)) return /* @__PURE__ */ a("td", {}, oe);
|
|
1612
|
+
const _ = G(z);
|
|
1613
|
+
return /* @__PURE__ */ a("td", { children: /* @__PURE__ */ a(
|
|
1614
|
+
"button",
|
|
1615
|
+
{
|
|
1616
|
+
type: "button",
|
|
1617
|
+
"data-slot": "date-day",
|
|
1618
|
+
"data-day": _,
|
|
1619
|
+
className: "ui-date-day",
|
|
1620
|
+
"data-outside": z.getUTCMonth() !== N.getUTCMonth() || void 0,
|
|
1621
|
+
"aria-label": B.format(z),
|
|
1622
|
+
"aria-pressed": _ === Q,
|
|
1623
|
+
"aria-current": _ === G(v) ? "date" : void 0,
|
|
1624
|
+
tabIndex: _ === G(w) ? 0 : -1,
|
|
1625
|
+
onKeyDown: (M) => ae(z, M.key, M),
|
|
1626
|
+
onClick: () => {
|
|
1627
|
+
const M = ie(z, j, S, e);
|
|
1628
|
+
e === "date" ? A(M) : (Y(M), u(Z(z)), L(z));
|
|
1629
|
+
},
|
|
1630
|
+
children: z.getUTCDate()
|
|
1631
|
+
}
|
|
1632
|
+
) }, _);
|
|
1633
|
+
}) }, C)) })
|
|
1634
|
+
] }),
|
|
1635
|
+
e === "datetime" ? /* @__PURE__ */ s("div", { className: "ui-date-time", children: [
|
|
1636
|
+
/* @__PURE__ */ s("label", { children: [
|
|
1637
|
+
l.hours,
|
|
1638
|
+
/* @__PURE__ */ a("input", { type: "number", min: "0", max: "23", value: j, onChange: (c) => {
|
|
1639
|
+
const C = Math.min(23, Math.max(0, Number(c.currentTarget.value) || 0));
|
|
1640
|
+
Y(ie(h ?? N, C, S, e));
|
|
1641
|
+
} })
|
|
1642
|
+
] }),
|
|
1643
|
+
/* @__PURE__ */ s("label", { children: [
|
|
1644
|
+
l.minutes,
|
|
1645
|
+
/* @__PURE__ */ a("input", { type: "number", min: "0", max: "59", value: S, onChange: (c) => {
|
|
1646
|
+
const C = Math.min(59, Math.max(0, Number(c.currentTarget.value) || 0));
|
|
1647
|
+
Y(ie(h ?? N, j, C, e));
|
|
1648
|
+
} })
|
|
1649
|
+
] })
|
|
1650
|
+
] }) : null,
|
|
1651
|
+
/* @__PURE__ */ s("div", { className: "ui-date-actions", children: [
|
|
1652
|
+
/* @__PURE__ */ a(D, { type: "button", variant: "ghost", onClick: () => A(""), children: l.clear }),
|
|
1653
|
+
/* @__PURE__ */ a(D, { type: "button", variant: "ghost", onClick: () => {
|
|
1654
|
+
const c = ie(v, v.getUTCHours(), v.getUTCMinutes(), e);
|
|
1655
|
+
e === "date" ? A(c) : Y(c);
|
|
1656
|
+
}, children: l.today }),
|
|
1657
|
+
e === "datetime" ? /* @__PURE__ */ a(D, { type: "button", onClick: () => A(p.current), children: l.apply }) : null
|
|
1658
|
+
] })
|
|
1659
|
+
]
|
|
1660
|
+
}
|
|
1661
|
+
) })
|
|
1662
|
+
] }) });
|
|
1663
|
+
}
|
|
1664
|
+
function Ft(e) {
|
|
1665
|
+
try {
|
|
1666
|
+
const t = new URL(e.trim());
|
|
1667
|
+
return t.protocol === "http:" || t.protocol === "https:";
|
|
1668
|
+
} catch {
|
|
1669
|
+
return !1;
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
function St({ href: e, label: t, className: n }) {
|
|
1673
|
+
return Ft(e) ? /* @__PURE__ */ a("a", { "data-slot": "open-url", className: r("ui-open-url", n), href: e.trim(), target: "_blank", rel: "noopener noreferrer", "aria-label": t, children: /* @__PURE__ */ a($e, { "aria-hidden": "true", size: 18 }) }) : null;
|
|
1674
|
+
}
|
|
1675
|
+
function gn({ label: e, value: t, onChange: n, onBlur: o, openLabel: l, placeholder: i = "https://", id: b, name: m, disabled: g, required: f, className: T }) {
|
|
1676
|
+
const x = te(), h = b ?? x;
|
|
1677
|
+
return /* @__PURE__ */ s("div", { "data-slot": "url-field", className: r("ui-url-field", T), children: [
|
|
1678
|
+
/* @__PURE__ */ a("label", { className: "ui-url-field-label", htmlFor: h, children: e }),
|
|
1679
|
+
/* @__PURE__ */ s("div", { className: "ui-url-field-row", children: [
|
|
1680
|
+
/* @__PURE__ */ a(
|
|
1681
|
+
Me,
|
|
1682
|
+
{
|
|
1683
|
+
id: h,
|
|
1684
|
+
name: m,
|
|
1685
|
+
type: "url",
|
|
1686
|
+
inputMode: "url",
|
|
1687
|
+
dir: "ltr",
|
|
1688
|
+
autoComplete: "off",
|
|
1689
|
+
value: t,
|
|
1690
|
+
placeholder: i,
|
|
1691
|
+
disabled: g,
|
|
1692
|
+
required: f,
|
|
1693
|
+
onChange: (v) => n(v.currentTarget.value),
|
|
1694
|
+
onBlur: o ? (v) => o(v.currentTarget.value) : void 0
|
|
1695
|
+
}
|
|
1696
|
+
),
|
|
1697
|
+
g ? null : /* @__PURE__ */ a(St, { href: t, label: l })
|
|
1698
|
+
] })
|
|
1699
|
+
] });
|
|
1700
|
+
}
|
|
1701
|
+
function hn({ title: e, kicker: t, actions: n, children: o, className: l }) {
|
|
1702
|
+
const i = te();
|
|
1703
|
+
return /* @__PURE__ */ s("section", { "data-slot": "window", "aria-labelledby": i, className: r("ui-window", l), children: [
|
|
1704
|
+
/* @__PURE__ */ s("header", { "data-slot": "window-header", className: "ui-window-header", children: [
|
|
1705
|
+
/* @__PURE__ */ s("div", { children: [
|
|
1706
|
+
t ? /* @__PURE__ */ a("p", { "data-slot": "window-kicker", className: "ui-window-kicker", children: t }) : null,
|
|
1707
|
+
/* @__PURE__ */ a("h1", { id: i, children: e })
|
|
1708
|
+
] }),
|
|
1709
|
+
n ? /* @__PURE__ */ a("div", { "data-slot": "window-actions", className: "ui-window-actions", children: n }) : null
|
|
1710
|
+
] }),
|
|
1711
|
+
/* @__PURE__ */ a("div", { "data-slot": "window-body", className: "ui-window-body", children: o })
|
|
1712
|
+
] });
|
|
1713
|
+
}
|
|
1714
|
+
function pn({ className: e, ...t }) {
|
|
1715
|
+
return /* @__PURE__ */ a(xe.Root, { "data-slot": "checkbox", className: r("ui-checkbox", e), ...t, children: /* @__PURE__ */ s(xe.Indicator, { "data-slot": "checkbox-indicator", className: "ui-checkbox-indicator", children: [
|
|
1716
|
+
/* @__PURE__ */ a(ye, { className: "ui-checkbox-check", "aria-hidden": "true" }),
|
|
1717
|
+
/* @__PURE__ */ a(Ee, { className: "ui-checkbox-mixed", "aria-hidden": "true" })
|
|
1718
|
+
] }) });
|
|
1719
|
+
}
|
|
1720
|
+
const bn = W.Root, vn = W.Trigger, xn = W.Group;
|
|
1721
|
+
function Nn({ className: e, sideOffset: t = 6, ...n }) {
|
|
1722
|
+
return /* @__PURE__ */ a(W.Portal, { children: /* @__PURE__ */ a(W.Content, { "data-slot": "dropdown-menu-content", sideOffset: t, collisionPadding: 8, className: r("ui-dropdown-menu", e), ...n }) });
|
|
1723
|
+
}
|
|
1724
|
+
function wn({ className: e, ...t }) {
|
|
1725
|
+
return /* @__PURE__ */ a(W.Item, { "data-slot": "dropdown-menu-item", className: r("ui-menu-item", e), ...t });
|
|
1726
|
+
}
|
|
1727
|
+
function Cn({ className: e, ...t }) {
|
|
1728
|
+
return /* @__PURE__ */ a(W.Label, { "data-slot": "dropdown-menu-label", className: r("ui-menu-label", e), ...t });
|
|
1729
|
+
}
|
|
1730
|
+
const Tn = ee.Provider, yn = ee.Root, kn = ee.Trigger;
|
|
1731
|
+
function Mn({ className: e, sideOffset: t = 6, ...n }) {
|
|
1732
|
+
return /* @__PURE__ */ a(ee.Portal, { children: /* @__PURE__ */ a(ee.Content, { "data-slot": "tooltip-content", sideOffset: t, collisionPadding: 8, className: r("ui-tooltip", e), ...n }) });
|
|
1733
|
+
}
|
|
1734
|
+
const zt = V.Root, Dn = V.Trigger, It = V.Anchor, Un = V.Close;
|
|
1735
|
+
function Lt({ className: e, align: t = "start", sideOffset: n = 8, ...o }) {
|
|
1736
|
+
return /* @__PURE__ */ a(V.Portal, { children: /* @__PURE__ */ a(V.Content, { "data-slot": "popover-content", align: t, sideOffset: n, collisionPadding: 8, className: r("ui-popover", e), ...o }) });
|
|
1737
|
+
}
|
|
1738
|
+
const At = q.Provider;
|
|
1739
|
+
function Rt({ className: e, ...t }) {
|
|
1740
|
+
return /* @__PURE__ */ a(q.Title, { "data-slot": "toast-title", className: r("ui-toast-title", e), ...t });
|
|
1741
|
+
}
|
|
1742
|
+
function Pt({ className: e, ...t }) {
|
|
1743
|
+
return /* @__PURE__ */ a(q.Description, { "data-slot": "toast-description", className: r("ui-toast-description", e), ...t });
|
|
1744
|
+
}
|
|
1745
|
+
const Yt = q.Action;
|
|
1746
|
+
function jt({ className: e, ...t }) {
|
|
1747
|
+
return /* @__PURE__ */ a(q.Root, { "data-slot": "toast", className: r("ui-toast", e), ...t });
|
|
1748
|
+
}
|
|
1749
|
+
function Vt({ className: e, ...t }) {
|
|
1750
|
+
return /* @__PURE__ */ a(q.Close, { "data-slot": "toast-close", className: r("ui-toast-close", e), ...t });
|
|
1751
|
+
}
|
|
1752
|
+
function Ot({ className: e, ...t }) {
|
|
1753
|
+
return /* @__PURE__ */ a(q.Viewport, { "data-slot": "toast-viewport", className: r("ui-toast-viewport", e), ...t });
|
|
1754
|
+
}
|
|
1755
|
+
function Fn({ label: e, className: t, value: n = null, max: o = 100, ...l }) {
|
|
1756
|
+
const i = Number.isFinite(o) && o > 0 ? o : 100, b = n !== null && Number.isFinite(n) ? Math.min(i, Math.max(0, n)) : null;
|
|
1757
|
+
return /* @__PURE__ */ a(Ne.Root, { "data-slot": "progress", "aria-label": e, className: r("ui-progress", t), value: b, max: i, ...l, children: /* @__PURE__ */ a(Ne.Indicator, { "data-slot": "progress-indicator", className: "ui-progress-indicator", style: b === null ? void 0 : { transform: `scaleX(${b / i})` } }) });
|
|
1758
|
+
}
|
|
1759
|
+
function Sn({ className: e, ...t }) {
|
|
1760
|
+
return /* @__PURE__ */ a("div", { className: "ui-table-scroll", tabIndex: 0, children: /* @__PURE__ */ a("table", { "data-slot": "table", className: r("ui-table", e), ...t }) });
|
|
1761
|
+
}
|
|
1762
|
+
function zn({ className: e, ...t }) {
|
|
1763
|
+
return /* @__PURE__ */ a("caption", { "data-slot": "table-caption", className: r("ui-table-caption", e), ...t });
|
|
1764
|
+
}
|
|
1765
|
+
function In(e) {
|
|
1766
|
+
return /* @__PURE__ */ a("thead", { "data-slot": "table-header", ...e });
|
|
1767
|
+
}
|
|
1768
|
+
function Ln(e) {
|
|
1769
|
+
return /* @__PURE__ */ a("tbody", { "data-slot": "table-body", ...e });
|
|
1770
|
+
}
|
|
1771
|
+
function An(e) {
|
|
1772
|
+
return /* @__PURE__ */ a("tfoot", { "data-slot": "table-footer", ...e });
|
|
1773
|
+
}
|
|
1774
|
+
function Rn({ className: e, ...t }) {
|
|
1775
|
+
return /* @__PURE__ */ a("tr", { "data-slot": "table-row", className: r("ui-table-row", e), ...t });
|
|
1776
|
+
}
|
|
1777
|
+
function Pn({ className: e, scope: t = "col", ...n }) {
|
|
1778
|
+
return /* @__PURE__ */ a("th", { "data-slot": "table-head", scope: t, className: r("ui-table-cell ui-table-head", e), ...n });
|
|
1779
|
+
}
|
|
1780
|
+
function Yn({ className: e, ...t }) {
|
|
1781
|
+
return /* @__PURE__ */ a("td", { "data-slot": "table-cell", className: r("ui-table-cell", e), ...t });
|
|
1782
|
+
}
|
|
1783
|
+
function jn({ label: e, options: t, value: n, onValueChange: o, emptyLabel: l, placeholder: i, id: b, name: m, disabled: g, required: f, className: T }) {
|
|
1784
|
+
const x = te(), h = b ?? x, v = h + "-options", N = h + "-label", [u, w] = O(!1), [L, P] = O(""), [p, U] = O(null), Y = H(null), A = H(null), y = t.find((d) => d.value === n), ae = L === (y == null ? void 0 : y.label) ? "" : L.trim().toLocaleLowerCase(), F = t.filter((d) => d.label.toLocaleLowerCase().includes(ae)), j = F.filter((d) => !d.disabled), S = j.find((d) => d.value === p) ?? j[0], K = S ? F.indexOf(S) : -1;
|
|
1785
|
+
he(() => {
|
|
1786
|
+
var d;
|
|
1787
|
+
u && ((d = Y.current) == null || d.scrollIntoView({ block: "nearest" }));
|
|
1788
|
+
}, [u, S == null ? void 0 : S.value]);
|
|
1789
|
+
function B(d) {
|
|
1790
|
+
w(d && !g), P((y == null ? void 0 : y.label) ?? ""), U(n);
|
|
1791
|
+
}
|
|
1792
|
+
function ne(d) {
|
|
1793
|
+
g || d.disabled || (o(d.value), w(!1));
|
|
1794
|
+
}
|
|
1795
|
+
return /* @__PURE__ */ s("div", { "data-slot": "combobox", className: r("ui-combobox", T), children: [
|
|
1796
|
+
/* @__PURE__ */ a("label", { id: N, htmlFor: h, children: e }),
|
|
1797
|
+
m && /* @__PURE__ */ a("input", { type: "hidden", name: m, value: n, disabled: g }),
|
|
1798
|
+
/* @__PURE__ */ s(zt, { open: u && !g, onOpenChange: B, children: [
|
|
1799
|
+
/* @__PURE__ */ a(It, { asChild: !0, children: /* @__PURE__ */ a(
|
|
1800
|
+
Me,
|
|
1801
|
+
{
|
|
1802
|
+
ref: A,
|
|
1803
|
+
id: h,
|
|
1804
|
+
role: "combobox",
|
|
1805
|
+
autoComplete: "off",
|
|
1806
|
+
"aria-autocomplete": "list",
|
|
1807
|
+
"aria-haspopup": "listbox",
|
|
1808
|
+
"aria-expanded": u && !g,
|
|
1809
|
+
"aria-controls": u && !g ? v : void 0,
|
|
1810
|
+
"aria-activedescendant": u && !g && K >= 0 ? v + "-" + K : void 0,
|
|
1811
|
+
value: u && !g ? L : (y == null ? void 0 : y.label) ?? "",
|
|
1812
|
+
placeholder: i,
|
|
1813
|
+
disabled: g,
|
|
1814
|
+
required: f,
|
|
1815
|
+
onFocus: () => B(!0),
|
|
1816
|
+
onClick: () => {
|
|
1817
|
+
u || B(!0);
|
|
1818
|
+
},
|
|
1819
|
+
onChange: (d) => {
|
|
1820
|
+
P(d.currentTarget.value), U(null), w(!0);
|
|
1821
|
+
},
|
|
1822
|
+
onKeyDown: (d) => {
|
|
1823
|
+
if (!d.nativeEvent.isComposing)
|
|
1824
|
+
if (d.key === "ArrowDown" || d.key === "ArrowUp") {
|
|
1825
|
+
if (d.preventDefault(), !u) {
|
|
1826
|
+
B(!0);
|
|
1827
|
+
return;
|
|
1828
|
+
}
|
|
1829
|
+
if (j.length) {
|
|
1830
|
+
const Q = S ? j.indexOf(S) : -1;
|
|
1831
|
+
U(j[(Q + (d.key === "ArrowDown" ? 1 : -1) + j.length) % j.length].value);
|
|
1832
|
+
}
|
|
1833
|
+
} else d.key === "Enter" && u ? (d.preventDefault(), S && ne(S)) : d.key === "Escape" && u ? (d.preventDefault(), B(!1)) : d.key === "Tab" && B(!1);
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
) }),
|
|
1837
|
+
/* @__PURE__ */ s(Lt, { role: "presentation", className: "ui-combobox-popup", onOpenAutoFocus: (d) => d.preventDefault(), onCloseAutoFocus: (d) => d.preventDefault(), onInteractOutside: (d) => {
|
|
1838
|
+
d.target === A.current && d.preventDefault();
|
|
1839
|
+
}, children: [
|
|
1840
|
+
/* @__PURE__ */ a("div", { id: v, role: "listbox", "aria-labelledby": N, children: F.map((d, Q) => /* @__PURE__ */ s(
|
|
1841
|
+
"div",
|
|
1842
|
+
{
|
|
1843
|
+
id: v + "-" + Q,
|
|
1844
|
+
role: "option",
|
|
1845
|
+
"aria-selected": d.value === n,
|
|
1846
|
+
"aria-disabled": d.disabled || void 0,
|
|
1847
|
+
ref: d === S ? Y : void 0,
|
|
1848
|
+
className: "ui-combobox-option",
|
|
1849
|
+
"data-highlighted": d === S || void 0,
|
|
1850
|
+
onPointerMove: () => {
|
|
1851
|
+
d.disabled || U(d.value);
|
|
1852
|
+
},
|
|
1853
|
+
onPointerDown: (re) => re.preventDefault(),
|
|
1854
|
+
onClick: () => ne(d),
|
|
1855
|
+
children: [
|
|
1856
|
+
/* @__PURE__ */ a(ye, { "aria-hidden": "true", style: { visibility: d.value === n ? "visible" : "hidden" } }),
|
|
1857
|
+
d.label
|
|
1858
|
+
]
|
|
1859
|
+
},
|
|
1860
|
+
d.value
|
|
1861
|
+
)) }),
|
|
1862
|
+
F.length === 0 && /* @__PURE__ */ a("p", { role: "status", className: "ui-combobox-empty", children: l })
|
|
1863
|
+
] })
|
|
1864
|
+
] })
|
|
1865
|
+
] });
|
|
1866
|
+
}
|
|
1867
|
+
function Vn({ page: e, pageSize: t, totalItems: n, onChange: o, pageSizeOptions: l = [10, 25, 50], labels: i, className: b }) {
|
|
1868
|
+
const m = te(), g = Number.isFinite(t) ? Math.max(1, Math.floor(t)) : 10, f = Number.isFinite(n) ? Math.max(0, Math.floor(n)) : 0, T = Math.max(1, Math.ceil(f / g)), x = Number.isFinite(e) ? Math.min(T, Math.max(1, Math.floor(e))) : 1, h = Math.max(1, Math.min(x - 2, T - 4)), v = Array.from({ length: Math.min(5, T) }, (u, w) => h + w), N = [.../* @__PURE__ */ new Set([g, ...l.filter((u) => Number.isInteger(u) && u > 0)])].sort((u, w) => u - w);
|
|
1869
|
+
return /* @__PURE__ */ s("nav", { "data-slot": "pagination", "aria-label": i.navigation, className: r("ui-pagination", b), children: [
|
|
1870
|
+
/* @__PURE__ */ a("p", { className: "ui-pagination-results", dir: "auto", "aria-live": "polite", children: i.results(f ? (x - 1) * g + 1 : 0, Math.min(x * g, f), f) }),
|
|
1871
|
+
/* @__PURE__ */ s("div", { className: "ui-pagination-pages", children: [
|
|
1872
|
+
/* @__PURE__ */ a(D, { type: "button", variant: "secondary", size: "icon", "aria-label": i.previous, disabled: x === 1, onClick: () => o(x - 1, g), children: /* @__PURE__ */ a(Te, { "aria-hidden": "true" }) }),
|
|
1873
|
+
v.map((u) => /* @__PURE__ */ a(D, { type: "button", variant: u === x ? "default" : "ghost", "aria-label": i.page(u), "aria-current": u === x ? "page" : void 0, onClick: () => {
|
|
1874
|
+
u !== x && o(u, g);
|
|
1875
|
+
}, children: u }, u)),
|
|
1876
|
+
/* @__PURE__ */ a(D, { type: "button", variant: "secondary", size: "icon", "aria-label": i.next, disabled: x === T, onClick: () => o(x + 1, g), children: /* @__PURE__ */ a(fe, { "aria-hidden": "true" }) })
|
|
1877
|
+
] }),
|
|
1878
|
+
/* @__PURE__ */ s("div", { className: "ui-pagination-size", children: [
|
|
1879
|
+
/* @__PURE__ */ a("label", { htmlFor: m, children: i.pageSize }),
|
|
1880
|
+
/* @__PURE__ */ s(gt, { value: String(g), onValueChange: (u) => o(1, Number(u)), children: [
|
|
1881
|
+
/* @__PURE__ */ a(pt, { id: m, children: /* @__PURE__ */ a(ht, {}) }),
|
|
1882
|
+
/* @__PURE__ */ a(bt, { children: N.map((u) => /* @__PURE__ */ a(vt, { value: String(u), children: u }, u)) })
|
|
1883
|
+
] })
|
|
1884
|
+
] })
|
|
1885
|
+
] });
|
|
1886
|
+
}
|
|
1887
|
+
function Bt({ file: e }) {
|
|
1888
|
+
const [t, n] = O();
|
|
1889
|
+
return he(() => {
|
|
1890
|
+
if (!e.type.startsWith("image/")) return;
|
|
1891
|
+
const o = URL.createObjectURL(e);
|
|
1892
|
+
return n(o), () => URL.revokeObjectURL(o);
|
|
1893
|
+
}, [e]), t ? /* @__PURE__ */ a("img", { className: "ui-file-preview", src: t, alt: "" }) : /* @__PURE__ */ a(Ge, { className: "ui-file-preview", "aria-hidden": "true" });
|
|
1894
|
+
}
|
|
1895
|
+
function On({ label: e, files: t, onFilesChange: n, labels: o, accept: l, multiple: i = !0, maxSize: b, maxFiles: m, disabled: g, id: f, className: T }) {
|
|
1896
|
+
const x = te(), h = f ?? x, v = H(null), [N, u] = O(""), [w, L] = O(!1);
|
|
1897
|
+
function P(p) {
|
|
1898
|
+
if (g || p.length === 0) return;
|
|
1899
|
+
const U = (l == null ? void 0 : l.split(",").map((y) => y.trim().toLowerCase()).filter(Boolean)) ?? [];
|
|
1900
|
+
for (const y of p) {
|
|
1901
|
+
if (!(U.length === 0 || U.some((F) => F.startsWith(".") ? y.name.toLowerCase().endsWith(F) : F.endsWith("/*") ? y.type.toLowerCase().startsWith(F.slice(0, -1)) : y.type.toLowerCase() === F))) {
|
|
1902
|
+
u(o.invalidType(y.name));
|
|
1903
|
+
return;
|
|
1904
|
+
}
|
|
1905
|
+
if (b !== void 0 && y.size > b) {
|
|
1906
|
+
u(o.tooLarge(y.name, b));
|
|
1907
|
+
return;
|
|
1908
|
+
}
|
|
1909
|
+
}
|
|
1910
|
+
const Y = i ? [...t, ...p] : p, A = i ? m : 1;
|
|
1911
|
+
if (A !== void 0 && Y.length > A) {
|
|
1912
|
+
u(o.tooMany(A));
|
|
1913
|
+
return;
|
|
1914
|
+
}
|
|
1915
|
+
u(""), n(Y);
|
|
1916
|
+
}
|
|
1917
|
+
return /* @__PURE__ */ s("div", { "data-slot": "file-upload", className: r("ui-file-upload", T), children: [
|
|
1918
|
+
/* @__PURE__ */ a("label", { htmlFor: h, children: e }),
|
|
1919
|
+
/* @__PURE__ */ s(
|
|
1920
|
+
"div",
|
|
1921
|
+
{
|
|
1922
|
+
className: "ui-file-drop",
|
|
1923
|
+
"data-dragging": w && !g || void 0,
|
|
1924
|
+
"data-disabled": g || void 0,
|
|
1925
|
+
onDragOver: (p) => {
|
|
1926
|
+
!g && p.dataTransfer.types.includes("Files") && (p.preventDefault(), L(!0));
|
|
1927
|
+
},
|
|
1928
|
+
onDragLeave: (p) => {
|
|
1929
|
+
p.currentTarget.contains(p.relatedTarget) || L(!1);
|
|
1930
|
+
},
|
|
1931
|
+
onDrop: (p) => {
|
|
1932
|
+
p.preventDefault(), L(!1), P(Array.from(p.dataTransfer.files));
|
|
1933
|
+
},
|
|
1934
|
+
children: [
|
|
1935
|
+
/* @__PURE__ */ a("p", { id: h + "-help", children: o.drop }),
|
|
1936
|
+
/* @__PURE__ */ a("input", { ref: v, id: h, type: "file", hidden: !0, accept: l, multiple: i, disabled: g, "aria-describedby": h + "-help", onChange: (p) => {
|
|
1937
|
+
P(Array.from(p.currentTarget.files ?? [])), p.currentTarget.value = "";
|
|
1938
|
+
} }),
|
|
1939
|
+
/* @__PURE__ */ a(D, { type: "button", variant: "secondary", disabled: g, "aria-describedby": N ? h + "-error" : h + "-help", onClick: () => {
|
|
1940
|
+
var p;
|
|
1941
|
+
return (p = v.current) == null ? void 0 : p.click();
|
|
1942
|
+
}, children: o.choose })
|
|
1943
|
+
]
|
|
1944
|
+
}
|
|
1945
|
+
),
|
|
1946
|
+
N && /* @__PURE__ */ a("p", { id: h + "-error", className: "ui-file-error", role: "alert", children: N }),
|
|
1947
|
+
t.length > 0 && /* @__PURE__ */ a("ul", { className: "ui-file-list", children: t.map((p, U) => /* @__PURE__ */ s("li", { children: [
|
|
1948
|
+
/* @__PURE__ */ a(Bt, { file: p }),
|
|
1949
|
+
/* @__PURE__ */ a("span", { className: "ui-file-name", children: p.name }),
|
|
1950
|
+
/* @__PURE__ */ a(D, { type: "button", variant: "ghost", size: "icon", disabled: g, "aria-label": o.remove(p.name), onClick: () => {
|
|
1951
|
+
u(""), n(t.filter((Y, A) => A !== U));
|
|
1952
|
+
}, children: /* @__PURE__ */ a(ke, { "aria-hidden": "true" }) })
|
|
1953
|
+
] }, p.name + ":" + p.size + ":" + p.lastModified + ":" + p.type + ":" + U)) })
|
|
1954
|
+
] });
|
|
1955
|
+
}
|
|
1956
|
+
const _t = {
|
|
1957
|
+
display: "h1",
|
|
1958
|
+
h1: "h1",
|
|
1959
|
+
h2: "h2",
|
|
1960
|
+
h3: "h3",
|
|
1961
|
+
h4: "h4",
|
|
1962
|
+
h5: "h5",
|
|
1963
|
+
h6: "h6",
|
|
1964
|
+
lead: "p",
|
|
1965
|
+
body: "p",
|
|
1966
|
+
small: "p",
|
|
1967
|
+
caption: "p",
|
|
1968
|
+
label: "span",
|
|
1969
|
+
overline: "p",
|
|
1970
|
+
mono: "p",
|
|
1971
|
+
code: "code",
|
|
1972
|
+
"code-block": "pre",
|
|
1973
|
+
quote: "blockquote"
|
|
1974
|
+
};
|
|
1975
|
+
function Bn({ variant: e = "body", as: t, tone: n = "default", align: o = "start", className: l, ...i }) {
|
|
1976
|
+
const b = e === "mono" || e === "code" || e === "code-block";
|
|
1977
|
+
return tt(t ?? _t[e], { ...i, dir: i.dir ?? (b ? "ltr" : void 0), "data-slot": "typography", "data-variant": e, "data-tone": n, "data-align": o, className: r("ui-typography", l) });
|
|
1978
|
+
}
|
|
1979
|
+
function _n({ className: e, ...t }) {
|
|
1980
|
+
return /* @__PURE__ */ a("div", { "data-slot": "prose", className: r("ui-prose", e), ...t });
|
|
1981
|
+
}
|
|
1982
|
+
function Hn({ label: e, variant: t = "spinner", size: n = "md", paused: o = !1, className: l, ...i }) {
|
|
1983
|
+
return /* @__PURE__ */ a("span", { ...i, "data-slot": "loader", className: r("ui-loader", l), "data-variant": t, "data-size": n, "data-paused": o || void 0, role: "status", "aria-label": e, children: /* @__PURE__ */ a("span", { className: "ui-loader-art", "aria-hidden": "true", children: t === "spinner" ? /* @__PURE__ */ s("svg", { viewBox: "0 0 24 24", children: [
|
|
1984
|
+
/* @__PURE__ */ a("circle", { cx: "12", cy: "12", r: "9", className: "ui-loader-track" }),
|
|
1985
|
+
/* @__PURE__ */ a("circle", { cx: "12", cy: "12", r: "9", strokeDasharray: "38 60" })
|
|
1986
|
+
] }) : Array.from({ length: t === "bars" ? 5 : 3 }, (b, m) => /* @__PURE__ */ a("span", {}, m)) }) });
|
|
1987
|
+
}
|
|
1988
|
+
function $n({ label: e, variant: t = "block", paused: n = !1, className: o, ...l }) {
|
|
1989
|
+
return /* @__PURE__ */ a("div", { ...l, "data-slot": "shimmer", className: r("ui-shimmer", o), "data-variant": t, "data-paused": n || void 0, role: "status", "aria-label": e, children: /* @__PURE__ */ s("div", { className: "ui-shimmer-art", "aria-hidden": "true", children: [
|
|
1990
|
+
(t === "block" || t === "avatar" || t === "card") && /* @__PURE__ */ a(we, { className: r("ui-shimmer-piece ui-shimmer-block", t === "avatar" && "rounded-full", t === "card" && "rounded-xl") }),
|
|
1991
|
+
(t === "text" || t === "card") && /* @__PURE__ */ a("div", { className: "ui-shimmer-lines", children: [0, 1, 2].map((i) => /* @__PURE__ */ a(we, { className: "ui-shimmer-piece ui-shimmer-line" }, i)) })
|
|
1992
|
+
] }) });
|
|
1993
|
+
}
|
|
1994
|
+
function En({ text: e, effect: t = "slide", className: n, ...o }) {
|
|
1995
|
+
return /* @__PURE__ */ a("span", { ...o, "data-slot": "animated-text", "data-effect": t, className: r("ui-animated-text", n), children: /* @__PURE__ */ a("span", { className: "ui-animated-text-value", children: e }, e) });
|
|
1996
|
+
}
|
|
1997
|
+
function Gn({ paused: e = !1, className: t, ...n }) {
|
|
1998
|
+
return /* @__PURE__ */ a("span", { ...n, "data-slot": "glow", "data-paused": e || void 0, "aria-hidden": "true", className: r("ui-glow", t) });
|
|
1999
|
+
}
|
|
2000
|
+
const Ht = { error: Xe, warning: Ze, info: qe, success: We };
|
|
2001
|
+
function Wn(e) {
|
|
2002
|
+
return /* @__PURE__ */ a(At, { ...e });
|
|
2003
|
+
}
|
|
2004
|
+
function qn({ className: e, ...t }) {
|
|
2005
|
+
return /* @__PURE__ */ a(Ot, { className: r("ui-snackbar-viewport", e), ...t });
|
|
2006
|
+
}
|
|
2007
|
+
function Zn({ variant: e, variantLabel: t, title: n, description: o, closeLabel: l, action: i, className: b, duration: m = e === "error" ? 1 / 0 : 5e3, ...g }) {
|
|
2008
|
+
const f = Ht[e];
|
|
2009
|
+
return /* @__PURE__ */ s(jt, { type: e === "error" ? "foreground" : "background", duration: m, ...g, "data-slot": "snackbar", "data-variant": e, className: r("ui-snackbar", b), children: [
|
|
2010
|
+
/* @__PURE__ */ a("span", { "aria-hidden": "true", className: "ui-snackbar-icon", children: /* @__PURE__ */ a(f, { strokeWidth: 1.75 }) }),
|
|
2011
|
+
/* @__PURE__ */ s("div", { className: "ui-snackbar-body", children: [
|
|
2012
|
+
/* @__PURE__ */ s(Rt, { className: "ui-snackbar-title", children: [
|
|
2013
|
+
/* @__PURE__ */ s("span", { className: "sr-only", children: [
|
|
2014
|
+
t,
|
|
2015
|
+
": "
|
|
2016
|
+
] }),
|
|
2017
|
+
n
|
|
2018
|
+
] }),
|
|
2019
|
+
o != null && /* @__PURE__ */ a(Pt, { className: "ui-snackbar-description", children: o })
|
|
2020
|
+
] }),
|
|
2021
|
+
/* @__PURE__ */ a(Vt, { "aria-label": l, className: "ui-snackbar-close", children: /* @__PURE__ */ a(ke, { "aria-hidden": "true" }) }),
|
|
2022
|
+
i && /* @__PURE__ */ a(Yt, { asChild: !0, altText: i.altText, children: /* @__PURE__ */ a(D, { type: "button", variant: "ghost", className: "ui-snackbar-action", onClick: i.onClick, children: i.label }) })
|
|
2023
|
+
] });
|
|
2024
|
+
}
|
|
2025
|
+
export {
|
|
2026
|
+
Kt as Accordion,
|
|
2027
|
+
ea as AccordionContent,
|
|
2028
|
+
Qt as AccordionItem,
|
|
2029
|
+
Jt as AccordionTrigger,
|
|
2030
|
+
ta as Alert,
|
|
2031
|
+
na as AlertDescription,
|
|
2032
|
+
aa as AlertTitle,
|
|
2033
|
+
En as AnimatedText,
|
|
2034
|
+
ra as Badge,
|
|
2035
|
+
ln as BrandLockup,
|
|
2036
|
+
kt as BrandLogo,
|
|
2037
|
+
oa as Breadcrumb,
|
|
2038
|
+
ua as BreadcrumbEllipsis,
|
|
2039
|
+
la as BreadcrumbItem,
|
|
2040
|
+
sa as BreadcrumbLink,
|
|
2041
|
+
ia as BreadcrumbList,
|
|
2042
|
+
ca as BreadcrumbPage,
|
|
2043
|
+
da as BreadcrumbSeparator,
|
|
2044
|
+
D as Button,
|
|
2045
|
+
ot as Card,
|
|
2046
|
+
ha as CardAction,
|
|
2047
|
+
it as CardContent,
|
|
2048
|
+
ga as CardDescription,
|
|
2049
|
+
pa as CardFooter,
|
|
2050
|
+
ma as CardHeader,
|
|
2051
|
+
fa as CardTitle,
|
|
2052
|
+
pn as Checkbox,
|
|
2053
|
+
jn as Combobox,
|
|
2054
|
+
un as CommentFeed,
|
|
2055
|
+
cn as ContactCard,
|
|
2056
|
+
fn as DateField,
|
|
2057
|
+
ba as Dialog,
|
|
2058
|
+
xa as DialogClose,
|
|
2059
|
+
Na as DialogContent,
|
|
2060
|
+
ya as DialogDescription,
|
|
2061
|
+
Ca as DialogFooter,
|
|
2062
|
+
wa as DialogHeader,
|
|
2063
|
+
st as DialogOverlay,
|
|
2064
|
+
lt as DialogPortal,
|
|
2065
|
+
Ta as DialogTitle,
|
|
2066
|
+
va as DialogTrigger,
|
|
2067
|
+
mn as DirectionProvider,
|
|
2068
|
+
bn as DropdownMenu,
|
|
2069
|
+
Nn as DropdownMenuContent,
|
|
2070
|
+
xn as DropdownMenuGroup,
|
|
2071
|
+
wn as DropdownMenuItem,
|
|
2072
|
+
Cn as DropdownMenuLabel,
|
|
2073
|
+
vn as DropdownMenuTrigger,
|
|
2074
|
+
Ua as Field,
|
|
2075
|
+
Fa as FieldContent,
|
|
2076
|
+
Ia as FieldDescription,
|
|
2077
|
+
Aa as FieldError,
|
|
2078
|
+
Da as FieldGroup,
|
|
2079
|
+
Sa as FieldLabel,
|
|
2080
|
+
Ma as FieldLegend,
|
|
2081
|
+
La as FieldSeparator,
|
|
2082
|
+
ka as FieldSet,
|
|
2083
|
+
za as FieldTitle,
|
|
2084
|
+
On as FileUpload,
|
|
2085
|
+
Gn as Glow,
|
|
2086
|
+
Me as Input,
|
|
2087
|
+
ct as Label,
|
|
2088
|
+
Hn as Loader,
|
|
2089
|
+
sn as MediaCard,
|
|
2090
|
+
Ra as NavigationMenu,
|
|
2091
|
+
Va as NavigationMenuContent,
|
|
2092
|
+
Ba as NavigationMenuIndicator,
|
|
2093
|
+
Ya as NavigationMenuItem,
|
|
2094
|
+
Oa as NavigationMenuLink,
|
|
2095
|
+
Pa as NavigationMenuList,
|
|
2096
|
+
ja as NavigationMenuTrigger,
|
|
2097
|
+
ft as NavigationMenuViewport,
|
|
2098
|
+
St as OpenUrl,
|
|
2099
|
+
Vn as Pagination,
|
|
2100
|
+
zt as Popover,
|
|
2101
|
+
It as PopoverAnchor,
|
|
2102
|
+
Un as PopoverClose,
|
|
2103
|
+
Lt as PopoverContent,
|
|
2104
|
+
Dn as PopoverTrigger,
|
|
2105
|
+
Fn as Progress,
|
|
2106
|
+
_n as Prose,
|
|
2107
|
+
_a as RadioGroup,
|
|
2108
|
+
Ha as RadioGroupItem,
|
|
2109
|
+
gt as Select,
|
|
2110
|
+
bt as SelectContent,
|
|
2111
|
+
$a as SelectGroup,
|
|
2112
|
+
vt as SelectItem,
|
|
2113
|
+
Ea as SelectLabel,
|
|
2114
|
+
Nt as SelectScrollDownButton,
|
|
2115
|
+
xt as SelectScrollUpButton,
|
|
2116
|
+
Ga as SelectSeparator,
|
|
2117
|
+
pt as SelectTrigger,
|
|
2118
|
+
ht as SelectValue,
|
|
2119
|
+
dt as Separator,
|
|
2120
|
+
Wa as Sheet,
|
|
2121
|
+
Za as SheetClose,
|
|
2122
|
+
Xa as SheetContent,
|
|
2123
|
+
en as SheetDescription,
|
|
2124
|
+
Qa as SheetFooter,
|
|
2125
|
+
Ka as SheetHeader,
|
|
2126
|
+
Ja as SheetTitle,
|
|
2127
|
+
qa as SheetTrigger,
|
|
2128
|
+
$n as Shimmer,
|
|
2129
|
+
we as Skeleton,
|
|
2130
|
+
Zn as Snackbar,
|
|
2131
|
+
Wn as SnackbarProvider,
|
|
2132
|
+
qn as SnackbarViewport,
|
|
2133
|
+
Tt as Switch,
|
|
2134
|
+
Sn as Table,
|
|
2135
|
+
Ln as TableBody,
|
|
2136
|
+
zn as TableCaption,
|
|
2137
|
+
Yn as TableCell,
|
|
2138
|
+
An as TableFooter,
|
|
2139
|
+
Pn as TableHead,
|
|
2140
|
+
In as TableHeader,
|
|
2141
|
+
Rn as TableRow,
|
|
2142
|
+
tn as Tabs,
|
|
2143
|
+
rn as TabsContent,
|
|
2144
|
+
an as TabsList,
|
|
2145
|
+
nn as TabsTrigger,
|
|
2146
|
+
on as Textarea,
|
|
2147
|
+
dn as ThemeToggle,
|
|
2148
|
+
jt as Toast,
|
|
2149
|
+
Yt as ToastAction,
|
|
2150
|
+
Vt as ToastClose,
|
|
2151
|
+
Pt as ToastDescription,
|
|
2152
|
+
At as ToastProvider,
|
|
2153
|
+
Rt as ToastTitle,
|
|
2154
|
+
Ot as ToastViewport,
|
|
2155
|
+
yn as Tooltip,
|
|
2156
|
+
Mn as TooltipContent,
|
|
2157
|
+
Tn as TooltipProvider,
|
|
2158
|
+
kn as TooltipTrigger,
|
|
2159
|
+
Bn as Typography,
|
|
2160
|
+
gn as UrlField,
|
|
2161
|
+
hn as Window,
|
|
2162
|
+
nt as badgeVariants,
|
|
2163
|
+
rt as buttonVariants,
|
|
2164
|
+
Ft as isHttpUrl,
|
|
2165
|
+
mt as navigationMenuTriggerStyle,
|
|
2166
|
+
yt as tabsListVariants
|
|
2167
|
+
};
|