@bl33dz/fa814698dcde12f86a37ac31dd3aedf9 1.0.18 → 1.0.19
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/perisai-ui.es.js +898 -883
- package/dist/perisai-ui.umd.js +1 -1
- package/package.json +1 -1
- package/src/ui/SelectGroup.vue +6 -0
- package/src/ui/SelectValue.vue +10 -1
- package/src/ui/select.vue +21 -10
package/dist/perisai-ui.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as f, createElementBlock as l, openBlock as r, renderSlot as d, createVNode as
|
|
2
|
-
import { MoreHorizontal as Lt, ChevronDown as ze, Loader2Icon as Rt, X as
|
|
1
|
+
import { defineComponent as f, createElementBlock as l, openBlock as r, renderSlot as d, createVNode as h, createElementVNode as c, unref as s, createBlock as g, mergeProps as b, withCtx as u, computed as k, ref as V, watch as Z, customRef as It, isRef as fe, reactive as $e, toRefs as Se, getCurrentInstance as qe, nextTick as Ke, onUpdated as Mt, onMounted as re, normalizeClass as x, normalizeProps as Q, guardReactiveProps as ee, createTextVNode as O, toDisplayString as M, createCommentVNode as z, onUnmounted as ne, resolveComponent as Be, normalizeStyle as H, Fragment as F, renderList as G, useSlots as le, defineAsyncComponent as Tt, provide as ue, resolveDynamicComponent as Y, useAttrs as U, withModifiers as Dt, inject as be, onBeforeUnmount as Vt, h as se, Teleport as Pt, Transition as Oe, TransitionGroup as At, withDirectives as Ot, vShow as jt } from "vue";
|
|
2
|
+
import { MoreHorizontal as Lt, ChevronDown as ze, Loader2Icon as Rt, X as ve, Search as me, Minus as Ft, Check as Et, ChevronUp as Nt, CheckCircle as he, AlertCircle as Xe, Loader2 as Ut, CircleIcon as Ht, User as Gt, PanelLeft as Wt, Lock as qt, Unlock as Kt, ArrowUpDown as Xt, ArrowDown as Jt, ArrowUp as Zt } from "lucide-vue-next";
|
|
3
3
|
import { useForwardPropsEmits as N, AccordionRoot as Yt, AccordionContent as Qt, useForwardProps as q, AccordionItem as ea, AccordionHeader as ta, AccordionTrigger as aa, TooltipRoot as sa, TooltipPortal as oa, TooltipContent as ra, TooltipArrow as na, TooltipProvider as la, TooltipTrigger as ia, useFilter as da, ListboxRoot as ca, DialogRoot as ua, DialogClose as Ie, DialogOverlay as Je, DialogPortal as Ze, DialogContent as pa, DialogDescription as fa, DialogTitle as ma, DialogTrigger as ga, Primitive as ba, useId as Ye, ListboxGroup as va, ListboxGroupLabel as ha, ListboxFilter as _a, ListboxItem as ya, ListboxContent as xa, Separator as Qe, createContext as et, SwitchRoot as wa, SwitchThumb as ka, CollapsibleRoot as $a, CollapsibleContent as Sa, CollapsibleTrigger as Ca, PopoverPortal as Ba, PopoverContent as za, PopoverRoot as Ia, PopoverTrigger as Ma, SelectRoot as Ta, SelectPortal as Da, SelectContent as Va, SelectViewport as Pa, SelectItem as Aa, SelectItemIndicator as Oa, SelectItemText as ja, SelectScrollDownButton as La, SelectScrollUpButton as Ra, SelectTrigger as Fa, SelectIcon as Ea, SelectValue as Na, SelectSeparator as Ua, AvatarRoot as Ha, AvatarFallback as Ga, AvatarImage as Wa, DropdownMenuRoot as qa, DropdownMenuPortal as tt, DropdownMenuContent as Ka, DropdownMenuTrigger as Xa, RadioGroupRoot as Ja, RadioGroupItem as Za, RadioGroupIndicator as Ya, TabsRoot as Qa, TabsContent as es, TabsList as ts, TabsTrigger as as, SliderRoot as ss, SliderTrack as os, SliderRange as rs, SliderThumb as ns, Toggle as ls } from "reka-ui";
|
|
4
4
|
import { clsx as Me } from "clsx";
|
|
5
5
|
import { twMerge as Te } from "tailwind-merge";
|
|
6
|
-
import { cva as
|
|
6
|
+
import { cva as Ce } from "class-variance-authority";
|
|
7
7
|
import { DrawerPortal as is, DrawerOverlay as ds, DrawerContent as cs, DrawerTrigger as us, DrawerRoot as ps } from "vaul-vue";
|
|
8
8
|
import { OTPInput as fs } from "input-otp";
|
|
9
9
|
const ms = {
|
|
10
10
|
"data-slot": "breadcrumb-list",
|
|
11
11
|
class: "text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5"
|
|
12
|
-
},
|
|
12
|
+
}, hd = /* @__PURE__ */ f({
|
|
13
13
|
__name: "BreadcrumbList",
|
|
14
14
|
setup(t) {
|
|
15
15
|
return (e, a) => (r(), l("ol", ms, [
|
|
@@ -19,7 +19,7 @@ const ms = {
|
|
|
19
19
|
}), gs = {
|
|
20
20
|
"data-slot": "breadcrumb-link",
|
|
21
21
|
class: "hover:text-foreground transition-colors"
|
|
22
|
-
},
|
|
22
|
+
}, _d = /* @__PURE__ */ f({
|
|
23
23
|
__name: "BreadcrumbLink",
|
|
24
24
|
setup(t) {
|
|
25
25
|
return (e, a) => (r(), l("a", gs, [
|
|
@@ -32,7 +32,7 @@ const ms = {
|
|
|
32
32
|
"aria-disabled": "true",
|
|
33
33
|
"aria-current": "page",
|
|
34
34
|
class: "text-foreground font-normal"
|
|
35
|
-
},
|
|
35
|
+
}, yd = /* @__PURE__ */ f({
|
|
36
36
|
__name: "BreadcrumbPage",
|
|
37
37
|
setup(t) {
|
|
38
38
|
return (e, a) => (r(), l("span", bs, [
|
|
@@ -44,11 +44,11 @@ const ms = {
|
|
|
44
44
|
role: "presentation",
|
|
45
45
|
"aria-hidden": "true",
|
|
46
46
|
class: "flex size-9 items-center justify-center"
|
|
47
|
-
},
|
|
47
|
+
}, xd = /* @__PURE__ */ f({
|
|
48
48
|
__name: "BreadcrumbEllipsis",
|
|
49
49
|
setup(t) {
|
|
50
50
|
return (e, a) => (r(), l("span", vs, [
|
|
51
|
-
|
|
51
|
+
h(s(Lt), { class: "size-4" }),
|
|
52
52
|
a[0] || (a[0] = c("span", { class: "sr-only" }, "More", -1))
|
|
53
53
|
]));
|
|
54
54
|
}
|
|
@@ -83,22 +83,22 @@ function _s(t, e) {
|
|
|
83
83
|
i.value = !0, n();
|
|
84
84
|
};
|
|
85
85
|
Z(t, p, { flush: "sync" });
|
|
86
|
-
const m = typeof e == "function" ? e : e.get, $ = typeof e == "function" ? void 0 : e.set,
|
|
86
|
+
const m = typeof e == "function" ? e : e.get, $ = typeof e == "function" ? void 0 : e.set, v = It((_, y) => (o = _, n = y, {
|
|
87
87
|
get() {
|
|
88
88
|
return i.value && (a = m(), i.value = !1), o(), a;
|
|
89
89
|
},
|
|
90
|
-
set(
|
|
91
|
-
$?.(
|
|
90
|
+
set(w) {
|
|
91
|
+
$?.(w);
|
|
92
92
|
}
|
|
93
93
|
}));
|
|
94
|
-
return Object.isExtensible(
|
|
94
|
+
return Object.isExtensible(v) && (v.trigger = p), v;
|
|
95
95
|
}
|
|
96
96
|
function at(t) {
|
|
97
97
|
return typeof t == "function" ? t() : s(t);
|
|
98
98
|
}
|
|
99
99
|
function ys(t) {
|
|
100
100
|
if (!fe(t))
|
|
101
|
-
return
|
|
101
|
+
return $e(t);
|
|
102
102
|
const e = new Proxy({}, {
|
|
103
103
|
get(a, o, n) {
|
|
104
104
|
return s(Reflect.get(t.value, o, n));
|
|
@@ -122,14 +122,14 @@ function ys(t) {
|
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
});
|
|
125
|
-
return
|
|
125
|
+
return $e(e);
|
|
126
126
|
}
|
|
127
127
|
function xs(t) {
|
|
128
|
-
return ys(
|
|
128
|
+
return ys(k(t));
|
|
129
129
|
}
|
|
130
130
|
function D(t, ...e) {
|
|
131
131
|
const a = e.flat(), o = a[0];
|
|
132
|
-
return xs(() => Object.fromEntries(typeof o == "function" ? Object.entries(
|
|
132
|
+
return xs(() => Object.fromEntries(typeof o == "function" ? Object.entries(Se(t)).filter(([n, i]) => !o(at(i), n)) : Object.entries(Se(t)).filter((n) => !a.includes(n[0]))));
|
|
133
133
|
}
|
|
134
134
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
135
135
|
const ws = (t) => typeof t < "u";
|
|
@@ -153,15 +153,15 @@ function Cs(t, e, a, o = {}) {
|
|
|
153
153
|
const {
|
|
154
154
|
clone: m = !1,
|
|
155
155
|
passive: $ = !1,
|
|
156
|
-
eventName:
|
|
157
|
-
deep:
|
|
156
|
+
eventName: v,
|
|
157
|
+
deep: _ = !1,
|
|
158
158
|
defaultValue: y,
|
|
159
|
-
shouldEmit:
|
|
159
|
+
shouldEmit: w
|
|
160
160
|
} = o, S = qe(), B = a || S?.emit || ((n = S?.$emit) == null ? void 0 : n.bind(S)) || ((p = (i = S?.proxy) == null ? void 0 : i.$emit) == null ? void 0 : p.bind(S?.proxy));
|
|
161
|
-
let P =
|
|
161
|
+
let P = v;
|
|
162
162
|
P = P || `update:${e.toString()}`;
|
|
163
163
|
const R = (E) => m ? typeof m == "function" ? m(E) : $s(E) : E, K = () => ws(t[e]) ? R(t[e]) : y, X = (E) => {
|
|
164
|
-
|
|
164
|
+
w ? w(E) && B(P, E) : B(P, E);
|
|
165
165
|
};
|
|
166
166
|
if ($) {
|
|
167
167
|
const E = K(), A = V(E);
|
|
@@ -174,12 +174,12 @@ function Cs(t, e, a, o = {}) {
|
|
|
174
174
|
), Z(
|
|
175
175
|
A,
|
|
176
176
|
(L) => {
|
|
177
|
-
!j && (L !== t[e] ||
|
|
177
|
+
!j && (L !== t[e] || _) && X(L);
|
|
178
178
|
},
|
|
179
|
-
{ deep:
|
|
179
|
+
{ deep: _ }
|
|
180
180
|
), A;
|
|
181
181
|
} else
|
|
182
|
-
return
|
|
182
|
+
return k({
|
|
183
183
|
get() {
|
|
184
184
|
return K();
|
|
185
185
|
},
|
|
@@ -204,7 +204,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
204
204
|
return (o, n) => (r(), g(s(Qt), b({ "data-slot": "accordion-content" }, s(a), { class: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm" }), {
|
|
205
205
|
default: u(() => [
|
|
206
206
|
c("div", {
|
|
207
|
-
class:
|
|
207
|
+
class: x(s(C)("pt-0 pb-4", e.class))
|
|
208
208
|
}, [
|
|
209
209
|
d(o.$slots, "default")
|
|
210
210
|
], 2)
|
|
@@ -244,7 +244,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
244
244
|
const e = t, a = D(e, "class");
|
|
245
245
|
return (o, n) => (r(), g(s(ta), { class: "flex" }, {
|
|
246
246
|
default: u(() => [
|
|
247
|
-
|
|
247
|
+
h(s(aa), b({ "data-slot": "accordion-trigger" }, s(a), {
|
|
248
248
|
class: s(C)(
|
|
249
249
|
"focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
|
|
250
250
|
e.class
|
|
@@ -253,7 +253,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
253
253
|
default: u(() => [
|
|
254
254
|
d(o.$slots, "default"),
|
|
255
255
|
d(o.$slots, "icon", {}, () => [
|
|
256
|
-
|
|
256
|
+
h(s(ze), { class: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })
|
|
257
257
|
])
|
|
258
258
|
]),
|
|
259
259
|
_: 3
|
|
@@ -262,7 +262,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
262
262
|
_: 3
|
|
263
263
|
}));
|
|
264
264
|
}
|
|
265
|
-
}),
|
|
265
|
+
}), wd = /* @__PURE__ */ f({
|
|
266
266
|
__name: "Spinner",
|
|
267
267
|
props: {
|
|
268
268
|
class: {}
|
|
@@ -272,7 +272,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
272
272
|
return (a, o) => (r(), g(s(Rt), {
|
|
273
273
|
role: "status",
|
|
274
274
|
"aria-label": "Loading",
|
|
275
|
-
class:
|
|
275
|
+
class: x(s(C)("size-4 animate-spin", e.class))
|
|
276
276
|
}, null, 8, ["class"]));
|
|
277
277
|
}
|
|
278
278
|
}), Ms = /* @__PURE__ */ f({
|
|
@@ -321,7 +321,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
321
321
|
},
|
|
322
322
|
emits: ["escapeKeyDown", "pointerDownOutside"],
|
|
323
323
|
setup(t, { emit: e }) {
|
|
324
|
-
const a =
|
|
324
|
+
const a = Ce(
|
|
325
325
|
"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",
|
|
326
326
|
{
|
|
327
327
|
variants: {
|
|
@@ -348,7 +348,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
348
348
|
variant: "default"
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
|
-
), o =
|
|
351
|
+
), o = Ce(
|
|
352
352
|
"z-50 size-2.5 translate-y-[calc(-50%_-_1px)] rotate-45 rounded-[2px]",
|
|
353
353
|
{
|
|
354
354
|
variants: {
|
|
@@ -375,9 +375,9 @@ const Bs = /* @__PURE__ */ f({
|
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
), n = t, i = e, p = D(n, "class"), m = N(p, i);
|
|
378
|
-
return ($,
|
|
378
|
+
return ($, v) => (r(), g(s(oa), null, {
|
|
379
379
|
default: u(() => [
|
|
380
|
-
|
|
380
|
+
h(s(ra), b({ "data-slot": "tooltip-content" }, { ...s(m), ...$.$attrs }, {
|
|
381
381
|
class: s(C)(
|
|
382
382
|
"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 rounded-md px-3 py-1.5 text-xs text-balance",
|
|
383
383
|
s(a)({ variant: n.variant }),
|
|
@@ -387,8 +387,8 @@ const Bs = /* @__PURE__ */ f({
|
|
|
387
387
|
}), {
|
|
388
388
|
default: u(() => [
|
|
389
389
|
d($.$slots, "default"),
|
|
390
|
-
|
|
391
|
-
class:
|
|
390
|
+
h(s(na), {
|
|
391
|
+
class: x(s(C)(
|
|
392
392
|
"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]",
|
|
393
393
|
s(o)({ variant: n.variant })
|
|
394
394
|
))
|
|
@@ -455,7 +455,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
455
455
|
},
|
|
456
456
|
emits: ["update:modelValue", "highlight", "entryFocus", "leave"],
|
|
457
457
|
setup(t, { emit: e }) {
|
|
458
|
-
const a = t, o = e, n = D(a, "class"), i = N(n, o), p = V(/* @__PURE__ */ new Map()), m = V(/* @__PURE__ */ new Map()), { contains: $ } = da({ sensitivity: "base" }),
|
|
458
|
+
const a = t, o = e, n = D(a, "class"), i = N(n, o), p = V(/* @__PURE__ */ new Map()), m = V(/* @__PURE__ */ new Map()), { contains: $ } = da({ sensitivity: "base" }), v = $e({
|
|
459
459
|
search: "",
|
|
460
460
|
filtered: {
|
|
461
461
|
/** The count of all visible items. */
|
|
@@ -466,32 +466,32 @@ const Bs = /* @__PURE__ */ f({
|
|
|
466
466
|
groups: /* @__PURE__ */ new Set()
|
|
467
467
|
}
|
|
468
468
|
});
|
|
469
|
-
function
|
|
470
|
-
if (!
|
|
471
|
-
|
|
469
|
+
function _() {
|
|
470
|
+
if (!v.search) {
|
|
471
|
+
v.filtered.count = p.value.size;
|
|
472
472
|
return;
|
|
473
473
|
}
|
|
474
|
-
|
|
474
|
+
v.filtered.groups = /* @__PURE__ */ new Set();
|
|
475
475
|
let y = 0;
|
|
476
|
-
for (const [
|
|
477
|
-
const B = $(S,
|
|
478
|
-
|
|
476
|
+
for (const [w, S] of p.value) {
|
|
477
|
+
const B = $(S, v.search);
|
|
478
|
+
v.filtered.items.set(w, B ? 1 : 0), B && y++;
|
|
479
479
|
}
|
|
480
|
-
for (const [
|
|
480
|
+
for (const [w, S] of m.value)
|
|
481
481
|
for (const B of S)
|
|
482
|
-
if (
|
|
483
|
-
|
|
482
|
+
if (v.filtered.items.get(B) > 0) {
|
|
483
|
+
v.filtered.groups.add(w);
|
|
484
484
|
break;
|
|
485
485
|
}
|
|
486
|
-
|
|
486
|
+
v.filtered.count = y;
|
|
487
487
|
}
|
|
488
|
-
return Z(() =>
|
|
489
|
-
|
|
488
|
+
return Z(() => v.search, () => {
|
|
489
|
+
_();
|
|
490
490
|
}), Es({
|
|
491
491
|
allItems: p,
|
|
492
492
|
allGroups: m,
|
|
493
|
-
filterState:
|
|
494
|
-
}), (y,
|
|
493
|
+
filterState: v
|
|
494
|
+
}), (y, w) => (r(), g(s(ca), b({ "data-slot": "command" }, s(i), {
|
|
495
495
|
class: s(C)("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md", a.class)
|
|
496
496
|
}), {
|
|
497
497
|
default: u(() => [
|
|
@@ -565,8 +565,8 @@ const Bs = /* @__PURE__ */ f({
|
|
|
565
565
|
const a = t, o = e, n = D(a, "class"), i = N(n, o);
|
|
566
566
|
return (p, m) => (r(), g(s(Ze), null, {
|
|
567
567
|
default: u(() => [
|
|
568
|
-
|
|
569
|
-
|
|
568
|
+
h(Os),
|
|
569
|
+
h(s(pa), b({ "data-slot": "dialog-content" }, s(i), {
|
|
570
570
|
class: s(C)(
|
|
571
571
|
"bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] rounded-lg border shadow-lg duration-200 sm:max-w-lg",
|
|
572
572
|
a.class
|
|
@@ -574,9 +574,9 @@ const Bs = /* @__PURE__ */ f({
|
|
|
574
574
|
}), {
|
|
575
575
|
default: u(() => [
|
|
576
576
|
d(p.$slots, "default"),
|
|
577
|
-
|
|
577
|
+
h(s(Ie), { class: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground 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 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4" }, {
|
|
578
578
|
default: u(() => [
|
|
579
|
-
|
|
579
|
+
h(s(ve)),
|
|
580
580
|
m[0] || (m[0] = c("span", { class: "sr-only" }, "Close", -1))
|
|
581
581
|
]),
|
|
582
582
|
_: 1
|
|
@@ -615,7 +615,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
615
615
|
const e = t;
|
|
616
616
|
return (a, o) => (r(), l("div", {
|
|
617
617
|
"data-slot": "dialog-header",
|
|
618
|
-
class:
|
|
618
|
+
class: x(s(C)("flex flex-col gap-2 text-center sm:text-left", e.class))
|
|
619
619
|
}, [
|
|
620
620
|
d(a.$slots, "default")
|
|
621
621
|
], 2));
|
|
@@ -653,7 +653,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
653
653
|
_: 3
|
|
654
654
|
}, 16));
|
|
655
655
|
}
|
|
656
|
-
}),
|
|
656
|
+
}), kd = /* @__PURE__ */ f({
|
|
657
657
|
__name: "CommandDialog",
|
|
658
658
|
props: {
|
|
659
659
|
open: { type: Boolean },
|
|
@@ -667,26 +667,26 @@ const Bs = /* @__PURE__ */ f({
|
|
|
667
667
|
const n = N(t, e);
|
|
668
668
|
return (i, p) => (r(), g(s(st), Q(ee(s(n))), {
|
|
669
669
|
default: u(() => [
|
|
670
|
-
|
|
670
|
+
h(s(ot), { class: "overflow-hidden p-0" }, {
|
|
671
671
|
default: u(() => [
|
|
672
|
-
|
|
672
|
+
h(s(js), { class: "sr-only" }, {
|
|
673
673
|
default: u(() => [
|
|
674
|
-
|
|
674
|
+
h(s(nt), null, {
|
|
675
675
|
default: u(() => [
|
|
676
|
-
O(
|
|
676
|
+
O(M(t.title), 1)
|
|
677
677
|
]),
|
|
678
678
|
_: 1
|
|
679
679
|
}),
|
|
680
|
-
|
|
680
|
+
h(s(rt), null, {
|
|
681
681
|
default: u(() => [
|
|
682
|
-
O(
|
|
682
|
+
O(M(t.description), 1)
|
|
683
683
|
]),
|
|
684
684
|
_: 1
|
|
685
685
|
})
|
|
686
686
|
]),
|
|
687
687
|
_: 1
|
|
688
688
|
}),
|
|
689
|
-
|
|
689
|
+
h(Ps, null, {
|
|
690
690
|
default: u(() => [
|
|
691
691
|
d(i.$slots, "default")
|
|
692
692
|
]),
|
|
@@ -699,7 +699,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
699
699
|
_: 3
|
|
700
700
|
}, 16));
|
|
701
701
|
}
|
|
702
|
-
}),
|
|
702
|
+
}), $d = /* @__PURE__ */ f({
|
|
703
703
|
__name: "CommandEmpty",
|
|
704
704
|
props: {
|
|
705
705
|
asChild: { type: Boolean },
|
|
@@ -707,7 +707,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
707
707
|
class: {}
|
|
708
708
|
},
|
|
709
709
|
setup(t) {
|
|
710
|
-
const e = t, a = D(e, "class"), { filterState: o } =
|
|
710
|
+
const e = t, a = D(e, "class"), { filterState: o } = _e(), n = k(
|
|
711
711
|
() => !!o.search && o.filtered.count === 0
|
|
712
712
|
);
|
|
713
713
|
return (i, p) => n.value ? (r(), g(s(ba), b({
|
|
@@ -722,7 +722,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
722
722
|
_: 3
|
|
723
723
|
}, 16, ["class"])) : z("", !0);
|
|
724
724
|
}
|
|
725
|
-
}),
|
|
725
|
+
}), Sd = /* @__PURE__ */ f({
|
|
726
726
|
__name: "CommandGroup",
|
|
727
727
|
props: {
|
|
728
728
|
asChild: { type: Boolean },
|
|
@@ -731,7 +731,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
731
731
|
heading: {}
|
|
732
732
|
},
|
|
733
733
|
setup(t) {
|
|
734
|
-
const e = t, a = D(e, "class"), { allGroups: o, filterState: n } =
|
|
734
|
+
const e = t, a = D(e, "class"), { allGroups: o, filterState: n } = _e(), i = Ye(), p = k(() => n.search ? n.filtered.groups.has(i) : !0);
|
|
735
735
|
return Us({ id: i }), re(() => {
|
|
736
736
|
o.value.has(i) || o.value.set(i, /* @__PURE__ */ new Set());
|
|
737
737
|
}), ne(() => {
|
|
@@ -748,7 +748,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
748
748
|
class: "px-2 py-1.5 text-xs font-medium text-muted-foreground"
|
|
749
749
|
}, {
|
|
750
750
|
default: u(() => [
|
|
751
|
-
O(
|
|
751
|
+
O(M(t.heading), 1)
|
|
752
752
|
]),
|
|
753
753
|
_: 1
|
|
754
754
|
})) : z("", !0),
|
|
@@ -760,7 +760,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
760
760
|
}), Rs = {
|
|
761
761
|
"data-slot": "command-input-wrapper",
|
|
762
762
|
class: "flex h-9 items-center gap-2 border-b px-3"
|
|
763
|
-
},
|
|
763
|
+
}, Cd = /* @__PURE__ */ f({
|
|
764
764
|
inheritAttrs: !1,
|
|
765
765
|
__name: "CommandInput",
|
|
766
766
|
props: {
|
|
@@ -772,10 +772,10 @@ const Bs = /* @__PURE__ */ f({
|
|
|
772
772
|
class: {}
|
|
773
773
|
},
|
|
774
774
|
setup(t) {
|
|
775
|
-
const e = t, a = D(e, "class"), o = q(a), { filterState: n } =
|
|
775
|
+
const e = t, a = D(e, "class"), o = q(a), { filterState: n } = _e();
|
|
776
776
|
return (i, p) => (r(), l("div", Rs, [
|
|
777
|
-
|
|
778
|
-
|
|
777
|
+
h(s(me), { class: "size-4 shrink-0 opacity-50" }),
|
|
778
|
+
h(s(_a), b({ ...s(o), ...i.$attrs }, {
|
|
779
779
|
modelValue: s(n).search,
|
|
780
780
|
"onUpdate:modelValue": p[0] || (p[0] = (m) => s(n).search = m),
|
|
781
781
|
"data-slot": "command-input",
|
|
@@ -784,7 +784,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
784
784
|
}), null, 16, ["modelValue", "class"])
|
|
785
785
|
]));
|
|
786
786
|
}
|
|
787
|
-
}),
|
|
787
|
+
}), Bd = /* @__PURE__ */ f({
|
|
788
788
|
__name: "CommandItem",
|
|
789
789
|
props: {
|
|
790
790
|
value: {},
|
|
@@ -795,25 +795,25 @@ const Bs = /* @__PURE__ */ f({
|
|
|
795
795
|
},
|
|
796
796
|
emits: ["select"],
|
|
797
797
|
setup(t, { emit: e }) {
|
|
798
|
-
const a = t, o = e, n = D(a, "class"), i = N(n, o), p = Ye(), { filterState: m, allItems: $, allGroups:
|
|
798
|
+
const a = t, o = e, n = D(a, "class"), i = N(n, o), p = Ye(), { filterState: m, allItems: $, allGroups: v } = _e(), _ = Ns(), y = k(() => {
|
|
799
799
|
if (m.search) {
|
|
800
800
|
const B = m.filtered.items.get(p);
|
|
801
801
|
return B === void 0 ? !0 : B > 0;
|
|
802
802
|
} else
|
|
803
803
|
return !0;
|
|
804
|
-
}),
|
|
804
|
+
}), w = V(), S = Ss(w);
|
|
805
805
|
return re(() => {
|
|
806
806
|
if (!(S.value instanceof HTMLElement))
|
|
807
807
|
return;
|
|
808
808
|
$.value.set(p, S.value.textContent ?? a.value?.toString() ?? "");
|
|
809
|
-
const B =
|
|
810
|
-
B && (
|
|
809
|
+
const B = _?.id;
|
|
810
|
+
B && (v.value.has(B) ? v.value.get(B)?.add(p) : v.value.set(B, /* @__PURE__ */ new Set([p])));
|
|
811
811
|
}), ne(() => {
|
|
812
812
|
$.value.delete(p);
|
|
813
813
|
}), (B, P) => y.value ? (r(), g(s(ya), b({ key: 0 }, s(i), {
|
|
814
814
|
id: s(p),
|
|
815
815
|
ref_key: "itemRef",
|
|
816
|
-
ref:
|
|
816
|
+
ref: w,
|
|
817
817
|
"data-slot": "command-item",
|
|
818
818
|
class: s(C)("data-[state=checked]:bg-accent data-[highlighted]:text-accent-foreground [&_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 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", a.class),
|
|
819
819
|
onSelect: P[0] || (P[0] = () => {
|
|
@@ -826,7 +826,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
826
826
|
_: 3
|
|
827
827
|
}, 16, ["id", "class"])) : z("", !0);
|
|
828
828
|
}
|
|
829
|
-
}), Fs = { role: "presentation" },
|
|
829
|
+
}), Fs = { role: "presentation" }, zd = /* @__PURE__ */ f({
|
|
830
830
|
__name: "CommandList",
|
|
831
831
|
props: {
|
|
832
832
|
asChild: { type: Boolean },
|
|
@@ -846,7 +846,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
846
846
|
_: 3
|
|
847
847
|
}, 16, ["class"]));
|
|
848
848
|
}
|
|
849
|
-
}),
|
|
849
|
+
}), Id = /* @__PURE__ */ f({
|
|
850
850
|
__name: "CommandSeparator",
|
|
851
851
|
props: {
|
|
852
852
|
orientation: {},
|
|
@@ -866,7 +866,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
866
866
|
_: 3
|
|
867
867
|
}, 16, ["class"]));
|
|
868
868
|
}
|
|
869
|
-
}),
|
|
869
|
+
}), Md = /* @__PURE__ */ f({
|
|
870
870
|
__name: "CommandShortcut",
|
|
871
871
|
props: {
|
|
872
872
|
class: {}
|
|
@@ -875,12 +875,12 @@ const Bs = /* @__PURE__ */ f({
|
|
|
875
875
|
const e = t;
|
|
876
876
|
return (a, o) => (r(), l("span", {
|
|
877
877
|
"data-slot": "command-shortcut",
|
|
878
|
-
class:
|
|
878
|
+
class: x(s(C)("text-muted-foreground ml-auto text-xs tracking-widest", e.class))
|
|
879
879
|
}, [
|
|
880
880
|
d(a.$slots, "default")
|
|
881
881
|
], 2));
|
|
882
882
|
}
|
|
883
|
-
}), [
|
|
883
|
+
}), [_e, Es] = et("Command"), [Ns, Us] = et("CommandGroup"), Td = /* @__PURE__ */ f({
|
|
884
884
|
__name: "Switch",
|
|
885
885
|
props: {
|
|
886
886
|
defaultValue: { type: Boolean },
|
|
@@ -904,9 +904,9 @@ const Bs = /* @__PURE__ */ f({
|
|
|
904
904
|
)
|
|
905
905
|
}), {
|
|
906
906
|
default: u(() => [
|
|
907
|
-
|
|
907
|
+
h(s(ka), {
|
|
908
908
|
"data-slot": "switch-thumb",
|
|
909
|
-
class:
|
|
909
|
+
class: x(s(C)("bg-switch-thumb dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block h-5 w-5 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"))
|
|
910
910
|
}, {
|
|
911
911
|
default: u(() => [
|
|
912
912
|
d(p.$slots, "thumb")
|
|
@@ -917,7 +917,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
917
917
|
_: 3
|
|
918
918
|
}, 16, ["class"]));
|
|
919
919
|
}
|
|
920
|
-
}),
|
|
920
|
+
}), Dd = /* @__PURE__ */ f({
|
|
921
921
|
__name: "Collapsible",
|
|
922
922
|
props: {
|
|
923
923
|
defaultOpen: { type: Boolean },
|
|
@@ -937,7 +937,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
937
937
|
_: 3
|
|
938
938
|
}, 16));
|
|
939
939
|
}
|
|
940
|
-
}),
|
|
940
|
+
}), Vd = /* @__PURE__ */ f({
|
|
941
941
|
__name: "CollapsibleContent",
|
|
942
942
|
props: {
|
|
943
943
|
forceMount: { type: Boolean },
|
|
@@ -953,7 +953,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
953
953
|
_: 3
|
|
954
954
|
}, 16));
|
|
955
955
|
}
|
|
956
|
-
}),
|
|
956
|
+
}), Pd = /* @__PURE__ */ f({
|
|
957
957
|
__name: "CollapsibleTrigger",
|
|
958
958
|
props: {
|
|
959
959
|
asChild: { type: Boolean },
|
|
@@ -980,11 +980,11 @@ const Bs = /* @__PURE__ */ f({
|
|
|
980
980
|
},
|
|
981
981
|
emits: ["toggle", "nodeClick"],
|
|
982
982
|
setup(t, { emit: e }) {
|
|
983
|
-
const a = t, o = e, n =
|
|
983
|
+
const a = t, o = e, n = k(() => a.expandedIds.includes(a.node.id)), i = () => {
|
|
984
984
|
o("toggle", a.node.id), o("nodeClick", a.node);
|
|
985
985
|
};
|
|
986
986
|
return (p, m) => {
|
|
987
|
-
const $ =
|
|
987
|
+
const $ = Be("TreeNode", !0);
|
|
988
988
|
return r(), l("li", null, [
|
|
989
989
|
c("button", {
|
|
990
990
|
type: "button",
|
|
@@ -994,24 +994,24 @@ const Bs = /* @__PURE__ */ f({
|
|
|
994
994
|
}, [
|
|
995
995
|
t.node.children?.length ? (r(), l("span", {
|
|
996
996
|
key: 0,
|
|
997
|
-
class:
|
|
997
|
+
class: x(["inline-flex w-3 justify-center text-muted-foreground transition-transform duration-200", n.value ? "rotate-90" : "rotate-0"])
|
|
998
998
|
}, " ▶ ", 2)) : z("", !0),
|
|
999
|
-
c("span", Hs,
|
|
999
|
+
c("span", Hs, M(t.node.title), 1)
|
|
1000
1000
|
], 4),
|
|
1001
1001
|
n.value && t.node.children?.length ? (r(), l("ul", Gs, [
|
|
1002
|
-
(r(!0), l(F, null, G(t.node.children, (
|
|
1003
|
-
key:
|
|
1004
|
-
node:
|
|
1002
|
+
(r(!0), l(F, null, G(t.node.children, (v) => (r(), g($, {
|
|
1003
|
+
key: v.id,
|
|
1004
|
+
node: v,
|
|
1005
1005
|
level: t.level + 1,
|
|
1006
1006
|
"expanded-ids": t.expandedIds,
|
|
1007
|
-
onToggle: m[0] || (m[0] = (
|
|
1008
|
-
onNodeClick: m[1] || (m[1] = (
|
|
1007
|
+
onToggle: m[0] || (m[0] = (_) => o("toggle", _)),
|
|
1008
|
+
onNodeClick: m[1] || (m[1] = (_) => o("nodeClick", _))
|
|
1009
1009
|
}, null, 8, ["node", "level", "expanded-ids"]))), 128))
|
|
1010
1010
|
])) : z("", !0)
|
|
1011
1011
|
]);
|
|
1012
1012
|
};
|
|
1013
1013
|
}
|
|
1014
|
-
}), qs = { class: "space-y-0.5" },
|
|
1014
|
+
}), qs = { class: "space-y-0.5" }, Ad = /* @__PURE__ */ f({
|
|
1015
1015
|
__name: "tree",
|
|
1016
1016
|
props: {
|
|
1017
1017
|
items: {}
|
|
@@ -1034,10 +1034,10 @@ const Bs = /* @__PURE__ */ f({
|
|
|
1034
1034
|
]));
|
|
1035
1035
|
}
|
|
1036
1036
|
});
|
|
1037
|
-
function
|
|
1037
|
+
function I(...t) {
|
|
1038
1038
|
return Te(Me(t));
|
|
1039
1039
|
}
|
|
1040
|
-
const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"),
|
|
1040
|
+
const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Od = /* @__PURE__ */ f({
|
|
1041
1041
|
__name: "InputOTP",
|
|
1042
1042
|
props: {
|
|
1043
1043
|
modelValue: { type: String, default: "" },
|
|
@@ -1061,7 +1061,7 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1061
1061
|
i = null;
|
|
1062
1062
|
}
|
|
1063
1063
|
i && ue(je, { masked: a.masked });
|
|
1064
|
-
const p =
|
|
1064
|
+
const p = k(() => ({
|
|
1065
1065
|
value: a.modelValue,
|
|
1066
1066
|
onChange: n,
|
|
1067
1067
|
maxLength: a.maxLength,
|
|
@@ -1071,11 +1071,11 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1071
1071
|
return i || (ue(Ks, p.value), ue(je, { masked: a.masked })), (m, $) => s(i) ? (r(), g(Y(s(i)), {
|
|
1072
1072
|
key: 0,
|
|
1073
1073
|
"data-slot": "input-otp",
|
|
1074
|
-
"container-class": s(
|
|
1075
|
-
class:
|
|
1074
|
+
"container-class": s(I)("flex items-center gap-2 has-disabled:opacity-50", a.containerClass),
|
|
1075
|
+
class: x(s(I)("disabled:cursor-not-allowed", a.class)),
|
|
1076
1076
|
"max-length": a.maxLength,
|
|
1077
1077
|
value: a.modelValue,
|
|
1078
|
-
onChange: (
|
|
1078
|
+
onChange: (v) => o("update:modelValue", v),
|
|
1079
1079
|
disabled: a.disabled
|
|
1080
1080
|
}, {
|
|
1081
1081
|
default: u(() => [
|
|
@@ -1085,19 +1085,19 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1085
1085
|
}, 40, ["container-class", "class", "max-length", "value", "onChange", "disabled"])) : (r(), l("div", {
|
|
1086
1086
|
key: 1,
|
|
1087
1087
|
"data-slot": "input-otp",
|
|
1088
|
-
class:
|
|
1088
|
+
class: x(s(I)("flex items-center gap-2 has-disabled:opacity-50", a.containerClass))
|
|
1089
1089
|
}, [
|
|
1090
1090
|
d(m.$slots, "default")
|
|
1091
1091
|
], 2));
|
|
1092
1092
|
}
|
|
1093
|
-
}),
|
|
1093
|
+
}), jd = /* @__PURE__ */ f({
|
|
1094
1094
|
__name: "InputOTPGroup",
|
|
1095
1095
|
props: { class: String },
|
|
1096
1096
|
setup(t) {
|
|
1097
1097
|
const e = t;
|
|
1098
1098
|
return (a, o) => (r(), l("div", {
|
|
1099
1099
|
"data-slot": "input-otp-group",
|
|
1100
|
-
class:
|
|
1100
|
+
class: x(s(I)("flex items-center gap-1", e.class))
|
|
1101
1101
|
}, [
|
|
1102
1102
|
d(a.$slots, "default")
|
|
1103
1103
|
], 2));
|
|
@@ -1105,11 +1105,11 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1105
1105
|
}), Xs = {
|
|
1106
1106
|
"data-slot": "input-otp-separator",
|
|
1107
1107
|
role: "separator"
|
|
1108
|
-
},
|
|
1108
|
+
}, Ld = /* @__PURE__ */ f({
|
|
1109
1109
|
__name: "InputOTPSeparator",
|
|
1110
1110
|
setup(t) {
|
|
1111
1111
|
return (e, a) => (r(), l("div", Xs, [
|
|
1112
|
-
|
|
1112
|
+
h(s(Ft), { class: "h-4 w-4" })
|
|
1113
1113
|
]));
|
|
1114
1114
|
}
|
|
1115
1115
|
}), Js = ["data-index", "data-active"], Zs = ["value"], Ys = { class: "pointer-events-none select-none relative z-10 flex items-center justify-center" }, Qs = {
|
|
@@ -1118,7 +1118,7 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1118
1118
|
}, eo = {
|
|
1119
1119
|
key: 0,
|
|
1120
1120
|
class: "pointer-events-none absolute inset-0 flex items-center justify-center z-20"
|
|
1121
|
-
},
|
|
1121
|
+
}, Rd = {
|
|
1122
1122
|
__name: "InputOTPSlot",
|
|
1123
1123
|
props: {
|
|
1124
1124
|
index: Number,
|
|
@@ -1128,9 +1128,9 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1128
1128
|
},
|
|
1129
1129
|
setup(t) {
|
|
1130
1130
|
const e = t;
|
|
1131
|
-
|
|
1131
|
+
k(() => ""), k(() => {
|
|
1132
1132
|
});
|
|
1133
|
-
const a =
|
|
1133
|
+
const a = k(() => {
|
|
1134
1134
|
}), o = () => {
|
|
1135
1135
|
}, n = (i) => {
|
|
1136
1136
|
i.target.value;
|
|
@@ -1139,7 +1139,7 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1139
1139
|
"data-slot": "input-otp-slot",
|
|
1140
1140
|
"data-index": e.index,
|
|
1141
1141
|
"data-active": a.value,
|
|
1142
|
-
class:
|
|
1142
|
+
class: x(s(C)("data-[active=true]:border-ring data-[active=true]:ring-ring/50 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm bg-input-background transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px] cursor-text", e.class)),
|
|
1143
1143
|
onClick: o
|
|
1144
1144
|
}, [
|
|
1145
1145
|
c("input", {
|
|
@@ -1157,7 +1157,7 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1157
1157
|
style: { "caret-color": "transparent" }
|
|
1158
1158
|
}, null, 40, Zs),
|
|
1159
1159
|
c("div", Ys, [
|
|
1160
|
-
t.char ? (r(), l("span", Qs,
|
|
1160
|
+
t.char ? (r(), l("span", Qs, M(i.displayChar), 1)) : z("", !0)
|
|
1161
1161
|
]),
|
|
1162
1162
|
a.value && !t.char ? (r(), l("div", eo, [...p[3] || (p[3] = [
|
|
1163
1163
|
c("div", { class: "animate-caret-blink bg-foreground h-4 w-px duration-1000" }, null, -1)
|
|
@@ -1175,11 +1175,11 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1175
1175
|
const e = t;
|
|
1176
1176
|
return (a, o) => (r(), g(s(Ba), null, {
|
|
1177
1177
|
default: u(() => [
|
|
1178
|
-
|
|
1178
|
+
h(s(za), b({
|
|
1179
1179
|
"data-slot": "popover-content",
|
|
1180
1180
|
align: e.align,
|
|
1181
1181
|
"side-offset": e.sideOffset,
|
|
1182
|
-
class: s(
|
|
1182
|
+
class: s(I)(
|
|
1183
1183
|
"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-(--reka-popover-content-transform-origin) rounded-md border border-border p-4 shadow-md outline-hidden",
|
|
1184
1184
|
e.class
|
|
1185
1185
|
)
|
|
@@ -1293,7 +1293,7 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1293
1293
|
const a = t, o = e, n = D(a, "class"), i = N(n, o);
|
|
1294
1294
|
return (p, m) => (r(), g(s(Da), null, {
|
|
1295
1295
|
default: u(() => [
|
|
1296
|
-
|
|
1296
|
+
h(s(Va), b({ "data-slot": "select-content" }, { ...s(i), ...p.$attrs }, {
|
|
1297
1297
|
class: s(C)(
|
|
1298
1298
|
"!bg-neutral-800 !text-white 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-(--reka-select-content-available-height) min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-lg shadow-md",
|
|
1299
1299
|
t.position === "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",
|
|
@@ -1301,16 +1301,16 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1301
1301
|
)
|
|
1302
1302
|
}), {
|
|
1303
1303
|
default: u(() => [
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
class:
|
|
1304
|
+
h(s(io)),
|
|
1305
|
+
h(s(Pa), {
|
|
1306
|
+
class: x(s(C)("p-1", t.position === "popper" && "h-[var(--reka-select-trigger-height)] w-full min-w-[var(--reka-select-trigger-width)] scroll-my-1"))
|
|
1307
1307
|
}, {
|
|
1308
1308
|
default: u(() => [
|
|
1309
1309
|
d(p.$slots, "default")
|
|
1310
1310
|
]),
|
|
1311
1311
|
_: 3
|
|
1312
1312
|
}, 8, ["class"]),
|
|
1313
|
-
|
|
1313
|
+
h(s(lo))
|
|
1314
1314
|
]),
|
|
1315
1315
|
_: 3
|
|
1316
1316
|
}, 16, ["class"])
|
|
@@ -1338,14 +1338,14 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1338
1338
|
}), {
|
|
1339
1339
|
default: u(() => [
|
|
1340
1340
|
c("span", no, [
|
|
1341
|
-
|
|
1341
|
+
h(s(Oa), null, {
|
|
1342
1342
|
default: u(() => [
|
|
1343
|
-
|
|
1343
|
+
h(s(Et), { class: "size-4" })
|
|
1344
1344
|
]),
|
|
1345
1345
|
_: 1
|
|
1346
1346
|
})
|
|
1347
1347
|
]),
|
|
1348
|
-
|
|
1348
|
+
h(s(ja), null, {
|
|
1349
1349
|
default: u(() => [
|
|
1350
1350
|
d(n.$slots, "default")
|
|
1351
1351
|
]),
|
|
@@ -1369,7 +1369,7 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1369
1369
|
}), {
|
|
1370
1370
|
default: u(() => [
|
|
1371
1371
|
d(n.$slots, "default", {}, () => [
|
|
1372
|
-
|
|
1372
|
+
h(s(ze), { class: "size-4" })
|
|
1373
1373
|
])
|
|
1374
1374
|
]),
|
|
1375
1375
|
_: 3
|
|
@@ -1389,7 +1389,7 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1389
1389
|
}), {
|
|
1390
1390
|
default: u(() => [
|
|
1391
1391
|
d(n.$slots, "default", {}, () => [
|
|
1392
|
-
|
|
1392
|
+
h(s(Nt), { class: "size-4" })
|
|
1393
1393
|
])
|
|
1394
1394
|
]),
|
|
1395
1395
|
_: 3
|
|
@@ -1418,9 +1418,9 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1418
1418
|
}), {
|
|
1419
1419
|
default: u(() => [
|
|
1420
1420
|
d(n.$slots, "default"),
|
|
1421
|
-
|
|
1421
|
+
h(s(Ea), { "as-child": "" }, {
|
|
1422
1422
|
default: u(() => [
|
|
1423
|
-
|
|
1423
|
+
h(s(ze), { class: "size-4 opacity-50" })
|
|
1424
1424
|
]),
|
|
1425
1425
|
_: 1
|
|
1426
1426
|
})
|
|
@@ -1444,7 +1444,7 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1444
1444
|
_: 3
|
|
1445
1445
|
}, 16));
|
|
1446
1446
|
}
|
|
1447
|
-
}),
|
|
1447
|
+
}), Fd = /* @__PURE__ */ f({
|
|
1448
1448
|
__name: "SelectContent",
|
|
1449
1449
|
props: {
|
|
1450
1450
|
class: String,
|
|
@@ -1454,7 +1454,7 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1454
1454
|
const e = t;
|
|
1455
1455
|
return (a, o) => (r(), g(s(lt), b({
|
|
1456
1456
|
"data-slot": "select-content",
|
|
1457
|
-
class: s(
|
|
1457
|
+
class: s(I)(
|
|
1458
1458
|
"bg-gray-800 text-white 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-(--reka-select-content-available-height) min-w-[8rem] origin-(--reka-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg border border-gray-700 shadow-md p-1",
|
|
1459
1459
|
e.position === "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",
|
|
1460
1460
|
e.class
|
|
@@ -1467,7 +1467,7 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1467
1467
|
_: 3
|
|
1468
1468
|
}, 16, ["class", "position"]));
|
|
1469
1469
|
}
|
|
1470
|
-
}),
|
|
1470
|
+
}), Ed = {
|
|
1471
1471
|
__name: "SelectSeparator",
|
|
1472
1472
|
props: {
|
|
1473
1473
|
class: String
|
|
@@ -1476,10 +1476,10 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1476
1476
|
const e = t;
|
|
1477
1477
|
return (a, o) => (r(), g(s(Ua), b({
|
|
1478
1478
|
"data-slot": "select-separator",
|
|
1479
|
-
class: s(
|
|
1479
|
+
class: s(I)("bg-border pointer-events-none -mx-1 my-1 h-px", e.class)
|
|
1480
1480
|
}, a.$attrs), null, 16, ["class"]));
|
|
1481
1481
|
}
|
|
1482
|
-
},
|
|
1482
|
+
}, Nd = /* @__PURE__ */ f({
|
|
1483
1483
|
__name: "SelectTrigger",
|
|
1484
1484
|
props: {
|
|
1485
1485
|
class: String,
|
|
@@ -1489,7 +1489,7 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1489
1489
|
return (e, a) => (r(), g(s(dt), b({
|
|
1490
1490
|
"data-slot": "select-trigger",
|
|
1491
1491
|
"data-size": t.size,
|
|
1492
|
-
class: s(
|
|
1492
|
+
class: s(I)(
|
|
1493
1493
|
"justify-between border-input bg-input-background hover:bg-select-hover focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] data-[placeholder]:text-gray-400 [&_svg:not([class*='text-'])]:text-gray-400 focus-visible:ring-blue-500/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex w-full items-center gap-2 border px-4 py-2.5 text-sm text-white transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:min-h-9 data-[size=sm]:min-h-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 *:data-[slot=select-value]:overflow-hidden [&_[data-slot=select-value]_div]:flex [&_[data-slot=select-value]_div]:items-center [&_[data-slot=select-value]_div]:gap-2 [&_[data-slot=select-value]_.text-xs]:hidden [&_[data-slot=select-value]_svg]:shrink-0",
|
|
1494
1494
|
e.$props.class
|
|
1495
1495
|
)
|
|
@@ -1500,17 +1500,24 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1500
1500
|
_: 3
|
|
1501
1501
|
}, 16, ["data-size", "class"]));
|
|
1502
1502
|
}
|
|
1503
|
-
}),
|
|
1503
|
+
}), Ud = /* @__PURE__ */ f({
|
|
1504
1504
|
__name: "SelectValue",
|
|
1505
|
+
props: {
|
|
1506
|
+
class: String
|
|
1507
|
+
},
|
|
1505
1508
|
setup(t) {
|
|
1506
|
-
|
|
1509
|
+
const e = t;
|
|
1510
|
+
return (a, o) => (r(), g(s(ct), b({
|
|
1511
|
+
"data-slot": "select-value",
|
|
1512
|
+
class: s(I)(e.class)
|
|
1513
|
+
}, a.$attrs), {
|
|
1507
1514
|
default: u(() => [
|
|
1508
|
-
d(
|
|
1515
|
+
d(a.$slots, "default")
|
|
1509
1516
|
]),
|
|
1510
1517
|
_: 3
|
|
1511
|
-
}, 16));
|
|
1518
|
+
}, 16, ["class"]));
|
|
1512
1519
|
}
|
|
1513
|
-
}),
|
|
1520
|
+
}), Hd = /* @__PURE__ */ f({
|
|
1514
1521
|
__name: "SelectItem",
|
|
1515
1522
|
props: {
|
|
1516
1523
|
value: {
|
|
@@ -1524,7 +1531,7 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1524
1531
|
return (a, o) => (r(), g(s(it), b({
|
|
1525
1532
|
value: e.value,
|
|
1526
1533
|
"data-slot": "select-item",
|
|
1527
|
-
class: s(
|
|
1534
|
+
class: s(I)(
|
|
1528
1535
|
"text-white hover:bg-gray-700 focus:bg-gray-700 [&_svg:not([class*='text-'])]:text-gray-400 relative flex w-full cursor-pointer items-center gap-2 rounded-md py-2 pr-8 pl-3 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",
|
|
1529
1536
|
e.class
|
|
1530
1537
|
)
|
|
@@ -1545,7 +1552,7 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1545
1552
|
const e = t;
|
|
1546
1553
|
return (a, o) => (r(), l("div", {
|
|
1547
1554
|
"data-slot": "sheet-content",
|
|
1548
|
-
class:
|
|
1555
|
+
class: x([
|
|
1549
1556
|
s(C)(
|
|
1550
1557
|
"bg-background fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out",
|
|
1551
1558
|
t.side === "right" && "inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
|
|
@@ -1587,7 +1594,7 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1587
1594
|
const e = t;
|
|
1588
1595
|
return (a, o) => (r(), l("p", {
|
|
1589
1596
|
"data-slot": "sheet-description",
|
|
1590
|
-
class:
|
|
1597
|
+
class: x(s(C)("text-muted-foreground text-sm", e.class))
|
|
1591
1598
|
}, [
|
|
1592
1599
|
d(a.$slots, "default")
|
|
1593
1600
|
], 2));
|
|
@@ -1601,7 +1608,7 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1601
1608
|
const e = t;
|
|
1602
1609
|
return (a, o) => (r(), l("div", {
|
|
1603
1610
|
"data-slot": "sheet-header",
|
|
1604
|
-
class:
|
|
1611
|
+
class: x(s(C)("flex flex-col gap-1.5 p-4", e.class))
|
|
1605
1612
|
}, [
|
|
1606
1613
|
d(a.$slots, "default")
|
|
1607
1614
|
], 2));
|
|
@@ -1615,19 +1622,19 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1615
1622
|
const e = t;
|
|
1616
1623
|
return (a, o) => (r(), l("h2", {
|
|
1617
1624
|
"data-slot": "sheet-title",
|
|
1618
|
-
class:
|
|
1625
|
+
class: x(s(C)("text-foreground font-semibold", e.class))
|
|
1619
1626
|
}, [
|
|
1620
1627
|
d(a.$slots, "default")
|
|
1621
1628
|
], 2));
|
|
1622
1629
|
}
|
|
1623
|
-
}),
|
|
1630
|
+
}), Gd = /* @__PURE__ */ f({
|
|
1624
1631
|
__name: "accordion-content",
|
|
1625
1632
|
setup(t) {
|
|
1626
1633
|
const e = U();
|
|
1627
1634
|
return (a, o) => (r(), g(s(Bs), b({ "data-slot": "accordion-content" }, s(e), { class: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm" }), {
|
|
1628
1635
|
default: u(() => [
|
|
1629
1636
|
c("div", {
|
|
1630
|
-
class:
|
|
1637
|
+
class: x(s(C)("pt-0 pb-4", s(e).class))
|
|
1631
1638
|
}, [
|
|
1632
1639
|
d(a.$slots, "default")
|
|
1633
1640
|
], 2)
|
|
@@ -1635,7 +1642,7 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1635
1642
|
_: 3
|
|
1636
1643
|
}, 16));
|
|
1637
1644
|
}
|
|
1638
|
-
}),
|
|
1645
|
+
}), Wd = /* @__PURE__ */ f({
|
|
1639
1646
|
__name: "accordion-item",
|
|
1640
1647
|
props: {
|
|
1641
1648
|
class: { type: [String, Array, Object], default: "" }
|
|
@@ -1653,7 +1660,7 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1653
1660
|
function ut(...t) {
|
|
1654
1661
|
return Te(Me(t));
|
|
1655
1662
|
}
|
|
1656
|
-
const
|
|
1663
|
+
const qd = {
|
|
1657
1664
|
__name: "accordion-trigger",
|
|
1658
1665
|
setup(t) {
|
|
1659
1666
|
return (e, a) => (r(), g(s(Is), b({
|
|
@@ -1666,7 +1673,7 @@ const Wd = {
|
|
|
1666
1673
|
_: 3
|
|
1667
1674
|
}, 16, ["class"]));
|
|
1668
1675
|
}
|
|
1669
|
-
},
|
|
1676
|
+
}, Kd = /* @__PURE__ */ f({
|
|
1670
1677
|
__name: "accordion",
|
|
1671
1678
|
setup(t) {
|
|
1672
1679
|
return (e, a) => (r(), g(s(hs), b({ "data-slot": "accordion" }, e.$attrs), {
|
|
@@ -1676,7 +1683,7 @@ const Wd = {
|
|
|
1676
1683
|
_: 3
|
|
1677
1684
|
}, 16));
|
|
1678
1685
|
}
|
|
1679
|
-
}),
|
|
1686
|
+
}), Xd = {
|
|
1680
1687
|
__name: "alert-actions",
|
|
1681
1688
|
setup(t) {
|
|
1682
1689
|
return (e, a) => (r(), l("div", b({
|
|
@@ -1686,7 +1693,7 @@ const Wd = {
|
|
|
1686
1693
|
d(e.$slots, "default")
|
|
1687
1694
|
], 16));
|
|
1688
1695
|
}
|
|
1689
|
-
},
|
|
1696
|
+
}, Jd = {
|
|
1690
1697
|
__name: "alert-description",
|
|
1691
1698
|
setup(t) {
|
|
1692
1699
|
return (e, a) => (r(), l("div", b({
|
|
@@ -1696,7 +1703,7 @@ const Wd = {
|
|
|
1696
1703
|
d(e.$slots, "default")
|
|
1697
1704
|
], 16));
|
|
1698
1705
|
}
|
|
1699
|
-
},
|
|
1706
|
+
}, Zd = {
|
|
1700
1707
|
__name: "alert-title",
|
|
1701
1708
|
setup(t) {
|
|
1702
1709
|
return (e, a) => (r(), l("div", b({
|
|
@@ -1706,7 +1713,7 @@ const Wd = {
|
|
|
1706
1713
|
d(e.$slots, "default")
|
|
1707
1714
|
], 16));
|
|
1708
1715
|
}
|
|
1709
|
-
},
|
|
1716
|
+
}, Yd = {
|
|
1710
1717
|
__name: "alert",
|
|
1711
1718
|
props: {
|
|
1712
1719
|
variant: {
|
|
@@ -1737,14 +1744,14 @@ const Wd = {
|
|
|
1737
1744
|
"soft-primary": "border-cyan-200 bg-cyan-50 text-cyan-700 [&>svg]:text-cyan-600 dark:border-cyan-800 dark:bg-cyan-950 dark:text-cyan-300 dark:[&>svg]:text-cyan-400",
|
|
1738
1745
|
"soft-secondary": "border-gray-200 bg-gray-50 text-gray-700 [&>svg]:text-gray-600 dark:border-gray-700 dark:bg-gray-900 dark:text-gray-300 dark:[&>svg]:text-gray-400",
|
|
1739
1746
|
"soft-neutral": "border-stone-200 bg-stone-50 text-stone-700 [&>svg]:text-stone-600 dark:border-stone-700 dark:bg-stone-900 dark:text-stone-300 dark:[&>svg]:text-stone-400"
|
|
1740
|
-
}, n =
|
|
1747
|
+
}, n = k(
|
|
1741
1748
|
() => "relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current " + (o[a.variant] || o.default) + (a.class ? " " + a.class : "")
|
|
1742
1749
|
);
|
|
1743
1750
|
return (i, p) => t.visible ? (r(), l("div", {
|
|
1744
1751
|
key: 0,
|
|
1745
1752
|
"data-slot": "alert",
|
|
1746
1753
|
role: "alert",
|
|
1747
|
-
class:
|
|
1754
|
+
class: x(n.value)
|
|
1748
1755
|
}, [
|
|
1749
1756
|
d(i.$slots, "default"),
|
|
1750
1757
|
t.dismissible ? (r(), l("button", {
|
|
@@ -1754,7 +1761,7 @@ const Wd = {
|
|
|
1754
1761
|
class: "absolute right-2 top-2 p-1 h-6 w-6 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none inline-flex items-center justify-center text-current hover:bg-muted",
|
|
1755
1762
|
onClick: p[0] || (p[0] = (m) => i.$emit("dismiss"))
|
|
1756
1763
|
}, [
|
|
1757
|
-
|
|
1764
|
+
h(s(ve), { class: "size-4" }),
|
|
1758
1765
|
p[1] || (p[1] = c("span", { class: "sr-only" }, "Close alert", -1))
|
|
1759
1766
|
])) : z("", !0)
|
|
1760
1767
|
], 2)) : z("", !0);
|
|
@@ -1768,7 +1775,7 @@ const Wd = {
|
|
|
1768
1775
|
const e = t;
|
|
1769
1776
|
return (a, o) => (r(), g(s(Ha), {
|
|
1770
1777
|
"data-slot": "avatar",
|
|
1771
|
-
class:
|
|
1778
|
+
class: x(s(C)("relative flex size-8 shrink-0 overflow-hidden rounded-full", e.class))
|
|
1772
1779
|
}, {
|
|
1773
1780
|
default: u(() => [
|
|
1774
1781
|
d(a.$slots, "default")
|
|
@@ -1813,7 +1820,7 @@ const Wd = {
|
|
|
1813
1820
|
_: 3
|
|
1814
1821
|
}, 16));
|
|
1815
1822
|
}
|
|
1816
|
-
}),
|
|
1823
|
+
}), Qd = /* @__PURE__ */ f({
|
|
1817
1824
|
__name: "avatar-fallback",
|
|
1818
1825
|
props: {
|
|
1819
1826
|
class: {
|
|
@@ -1822,7 +1829,7 @@ const Wd = {
|
|
|
1822
1829
|
}
|
|
1823
1830
|
},
|
|
1824
1831
|
setup(t) {
|
|
1825
|
-
const a =
|
|
1832
|
+
const a = I(
|
|
1826
1833
|
"bg-muted flex size-full items-center justify-center rounded-full",
|
|
1827
1834
|
// Text sizing based on parent avatar size
|
|
1828
1835
|
"[.size-6_&]:text-xs",
|
|
@@ -1862,7 +1869,7 @@ const Wd = {
|
|
|
1862
1869
|
_: 3
|
|
1863
1870
|
}, 16, ["class"]));
|
|
1864
1871
|
}
|
|
1865
|
-
}),
|
|
1872
|
+
}), ec = /* @__PURE__ */ f({
|
|
1866
1873
|
__name: "avatar-group",
|
|
1867
1874
|
props: {
|
|
1868
1875
|
spacing: {
|
|
@@ -1876,8 +1883,8 @@ const Wd = {
|
|
|
1876
1883
|
}
|
|
1877
1884
|
},
|
|
1878
1885
|
setup(t) {
|
|
1879
|
-
const e = t, a =
|
|
1880
|
-
() =>
|
|
1886
|
+
const e = t, a = k(
|
|
1887
|
+
() => I(
|
|
1881
1888
|
"flex",
|
|
1882
1889
|
e.spacing === "tight" && "-space-x-1",
|
|
1883
1890
|
e.spacing === "normal" && "-space-x-2",
|
|
@@ -1889,7 +1896,7 @@ const Wd = {
|
|
|
1889
1896
|
d(o.$slots, "default")
|
|
1890
1897
|
], 16));
|
|
1891
1898
|
}
|
|
1892
|
-
}),
|
|
1899
|
+
}), tc = /* @__PURE__ */ f({
|
|
1893
1900
|
__name: "avatar-image",
|
|
1894
1901
|
props: {
|
|
1895
1902
|
src: String,
|
|
@@ -1901,7 +1908,7 @@ const Wd = {
|
|
|
1901
1908
|
"data-slot": "avatar-image",
|
|
1902
1909
|
src: t.src,
|
|
1903
1910
|
alt: t.alt,
|
|
1904
|
-
class: s(
|
|
1911
|
+
class: s(I)("aspect-square size-full", e.$attrs.class)
|
|
1905
1912
|
}, e.$attrs), null, 16, ["src", "alt", "class"]));
|
|
1906
1913
|
}
|
|
1907
1914
|
}), vo = {
|
|
@@ -2001,9 +2008,9 @@ const Wd = {
|
|
|
2001
2008
|
}
|
|
2002
2009
|
}
|
|
2003
2010
|
const { iconClass: p, buttonClass: m } = i(e.size);
|
|
2004
|
-
return ($,
|
|
2011
|
+
return ($, v) => (r(), l("span", b({
|
|
2005
2012
|
"data-slot": "badge",
|
|
2006
|
-
class: s(
|
|
2013
|
+
class: s(I)(
|
|
2007
2014
|
"inline-flex items-center justify-center border font-medium w-fit whitespace-nowrap shrink-0 [&>svg:not(.dismiss-icon)]:pointer-events-none [&>svg:not(.dismiss-icon)]:shrink-0 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",
|
|
2008
2015
|
o[e.variant],
|
|
2009
2016
|
n[e.size],
|
|
@@ -2015,17 +2022,17 @@ const Wd = {
|
|
|
2015
2022
|
e.dismissible && e.onDismiss ? (r(), l("button", {
|
|
2016
2023
|
key: 0,
|
|
2017
2024
|
type: "button",
|
|
2018
|
-
onClick:
|
|
2019
|
-
class:
|
|
2025
|
+
onClick: v[0] || (v[0] = Dt((_) => e.onDismiss(), ["stop"])),
|
|
2026
|
+
class: x(s(I)("dismiss-icon rounded-sm opacity-70 hover:opacity-100 focus:opacity-100 focus:outline-none focus:ring-1 focus:ring-ring transition-opacity", s(m))),
|
|
2020
2027
|
"aria-label": "Remove"
|
|
2021
2028
|
}, [
|
|
2022
|
-
|
|
2023
|
-
class:
|
|
2029
|
+
h(s(ve), {
|
|
2030
|
+
class: x(s(p))
|
|
2024
2031
|
}, null, 8, ["class"])
|
|
2025
2032
|
], 2)) : z("", !0)
|
|
2026
2033
|
], 16));
|
|
2027
2034
|
}
|
|
2028
|
-
}),
|
|
2035
|
+
}), ac = {
|
|
2029
2036
|
__name: "breadcrumb-item",
|
|
2030
2037
|
setup(t) {
|
|
2031
2038
|
return (e, a) => (r(), l("li", null, [
|
|
@@ -2036,7 +2043,7 @@ const Wd = {
|
|
|
2036
2043
|
], 16)
|
|
2037
2044
|
]));
|
|
2038
2045
|
}
|
|
2039
|
-
}, ho = { "aria-hidden": "true" },
|
|
2046
|
+
}, ho = { "aria-hidden": "true" }, sc = {
|
|
2040
2047
|
__name: "breadcrumb-separator",
|
|
2041
2048
|
setup(t) {
|
|
2042
2049
|
return (e, a) => (r(), l("li", ho, [...a[0] || (a[0] = [
|
|
@@ -2046,7 +2053,7 @@ const Wd = {
|
|
|
2046
2053
|
}, _o = {
|
|
2047
2054
|
class: "w-full",
|
|
2048
2055
|
"aria-label": "breadcrumb"
|
|
2049
|
-
}, yo = { class: "flex flex-wrap items-center gap-1 text-sm text-muted-foreground" },
|
|
2056
|
+
}, yo = { class: "flex flex-wrap items-center gap-1 text-sm text-muted-foreground" }, oc = {
|
|
2050
2057
|
__name: "breadcrumb",
|
|
2051
2058
|
setup(t) {
|
|
2052
2059
|
return (e, a) => (r(), l("nav", _o, [
|
|
@@ -2081,7 +2088,7 @@ const Wd = {
|
|
|
2081
2088
|
},
|
|
2082
2089
|
emits: ["click"],
|
|
2083
2090
|
setup(t, { emit: e }) {
|
|
2084
|
-
const a = t, o = U(), n =
|
|
2091
|
+
const a = t, o = U(), n = k(() => {
|
|
2085
2092
|
switch (a.variant) {
|
|
2086
2093
|
case "destructive":
|
|
2087
2094
|
return "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60";
|
|
@@ -2096,7 +2103,7 @@ const Wd = {
|
|
|
2096
2103
|
default:
|
|
2097
2104
|
return "bg-primary text-primary-foreground hover:bg-primary/90";
|
|
2098
2105
|
}
|
|
2099
|
-
}), i =
|
|
2106
|
+
}), i = k(() => {
|
|
2100
2107
|
switch (a.size) {
|
|
2101
2108
|
case "sm":
|
|
2102
2109
|
return "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5";
|
|
@@ -2122,45 +2129,45 @@ const Wd = {
|
|
|
2122
2129
|
_: 3
|
|
2123
2130
|
}, 16, ["class", "type", "disabled"]));
|
|
2124
2131
|
}
|
|
2125
|
-
},
|
|
2132
|
+
}, rc = /* @__PURE__ */ f({
|
|
2126
2133
|
__name: "card-content",
|
|
2127
2134
|
props: {},
|
|
2128
2135
|
setup(t) {
|
|
2129
2136
|
return (e, a) => (r(), l("div", b({
|
|
2130
2137
|
"data-slot": "card-content",
|
|
2131
|
-
class: s(
|
|
2138
|
+
class: s(I)("px-3 space-y-4 [&:first-child]:pt-3 [&:last-child]:pb-3", e.$attrs.class)
|
|
2132
2139
|
}, e.$attrs), [
|
|
2133
2140
|
d(e.$slots, "default")
|
|
2134
2141
|
], 16));
|
|
2135
2142
|
}
|
|
2136
|
-
}),
|
|
2143
|
+
}), nc = /* @__PURE__ */ f({
|
|
2137
2144
|
__name: "card-description",
|
|
2138
2145
|
props: {},
|
|
2139
2146
|
setup(t) {
|
|
2140
2147
|
return (e, a) => (r(), l("p", b({
|
|
2141
2148
|
"data-slot": "card-description",
|
|
2142
|
-
class: s(
|
|
2149
|
+
class: s(I)("text-muted-foreground", e.$attrs.class)
|
|
2143
2150
|
}, e.$attrs), [
|
|
2144
2151
|
d(e.$slots, "default")
|
|
2145
2152
|
], 16));
|
|
2146
2153
|
}
|
|
2147
|
-
}),
|
|
2154
|
+
}), lc = /* @__PURE__ */ f({
|
|
2148
2155
|
__name: "card-footer",
|
|
2149
2156
|
setup(t) {
|
|
2150
2157
|
return (e, a) => (r(), l("div", b({
|
|
2151
2158
|
"data-slot": "card-footer",
|
|
2152
|
-
class: s(
|
|
2159
|
+
class: s(I)("flex items-center px-3 pb-3 [.border-t]:pt-3", e.$attrs.class)
|
|
2153
2160
|
}, e.$attrs), [
|
|
2154
2161
|
d(e.$slots, "default")
|
|
2155
2162
|
], 16));
|
|
2156
2163
|
}
|
|
2157
|
-
}),
|
|
2164
|
+
}), ic = /* @__PURE__ */ f({
|
|
2158
2165
|
__name: "card-header",
|
|
2159
2166
|
props: {},
|
|
2160
2167
|
setup(t) {
|
|
2161
2168
|
return (e, a) => (r(), l("div", b({
|
|
2162
2169
|
"data-slot": "card-header",
|
|
2163
|
-
class: s(
|
|
2170
|
+
class: s(I)(
|
|
2164
2171
|
"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1 px-3 pt-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-3",
|
|
2165
2172
|
e.$attrs.class
|
|
2166
2173
|
)
|
|
@@ -2168,13 +2175,13 @@ const Wd = {
|
|
|
2168
2175
|
d(e.$slots, "default")
|
|
2169
2176
|
], 16));
|
|
2170
2177
|
}
|
|
2171
|
-
}),
|
|
2178
|
+
}), dc = /* @__PURE__ */ f({
|
|
2172
2179
|
__name: "card-title",
|
|
2173
2180
|
props: {},
|
|
2174
2181
|
setup(t) {
|
|
2175
2182
|
return (e, a) => (r(), l("h4", b({
|
|
2176
2183
|
"data-slot": "card-title",
|
|
2177
|
-
class: s(
|
|
2184
|
+
class: s(I)("leading-none", e.$attrs.class)
|
|
2178
2185
|
}, e.$attrs), [
|
|
2179
2186
|
d(e.$slots, "default")
|
|
2180
2187
|
], 16));
|
|
@@ -2182,7 +2189,7 @@ const Wd = {
|
|
|
2182
2189
|
}), wo = {
|
|
2183
2190
|
key: 0,
|
|
2184
2191
|
class: "relative"
|
|
2185
|
-
},
|
|
2192
|
+
}, cc = /* @__PURE__ */ f({
|
|
2186
2193
|
__name: "card",
|
|
2187
2194
|
props: {
|
|
2188
2195
|
variant: {
|
|
@@ -2195,7 +2202,7 @@ const Wd = {
|
|
|
2195
2202
|
}
|
|
2196
2203
|
},
|
|
2197
2204
|
setup(t) {
|
|
2198
|
-
const e = t, a =
|
|
2205
|
+
const e = t, a = k(() => {
|
|
2199
2206
|
if (e.variant === "corner-cut")
|
|
2200
2207
|
switch (e.cornerPosition) {
|
|
2201
2208
|
case "top-left":
|
|
@@ -2209,7 +2216,7 @@ const Wd = {
|
|
|
2209
2216
|
default:
|
|
2210
2217
|
return;
|
|
2211
2218
|
}
|
|
2212
|
-
}), o =
|
|
2219
|
+
}), o = k(() => {
|
|
2213
2220
|
if (e.variant !== "corner-cut") return "";
|
|
2214
2221
|
switch (e.cornerPosition) {
|
|
2215
2222
|
case "top-left":
|
|
@@ -2224,12 +2231,12 @@ const Wd = {
|
|
|
2224
2231
|
});
|
|
2225
2232
|
return (n, i) => e.variant === "corner-cut" ? (r(), l("div", wo, [
|
|
2226
2233
|
c("div", {
|
|
2227
|
-
class:
|
|
2234
|
+
class: x(s(I)("absolute inset-0 bg-border/60 rounded")),
|
|
2228
2235
|
style: H({ clipPath: a.value })
|
|
2229
2236
|
}, null, 6),
|
|
2230
2237
|
c("div", b({
|
|
2231
2238
|
"data-slot": "card",
|
|
2232
|
-
class: s(
|
|
2239
|
+
class: s(I)("bg-card text-card-foreground flex flex-col gap-3 relative rounded shadow-sm", o.value, n.$attrs.class),
|
|
2233
2240
|
style: { clipPath: a.value, margin: "1px" }
|
|
2234
2241
|
}, n.$attrs), [
|
|
2235
2242
|
d(n.$slots, "default")
|
|
@@ -2237,7 +2244,7 @@ const Wd = {
|
|
|
2237
2244
|
])) : (r(), l("div", b({
|
|
2238
2245
|
key: 1,
|
|
2239
2246
|
"data-slot": "card",
|
|
2240
|
-
class: s(
|
|
2247
|
+
class: s(I)("bg-gray-900 text-card-foreground flex flex-col gap-3 relative rounded-xl border border-gray-800 shadow-sm", n.$attrs.class)
|
|
2241
2248
|
}, n.$attrs), [
|
|
2242
2249
|
d(n.$slots, "default")
|
|
2243
2250
|
], 16));
|
|
@@ -2272,7 +2279,7 @@ const Wd = {
|
|
|
2272
2279
|
"delay-duration": e.delayDuration
|
|
2273
2280
|
}, {
|
|
2274
2281
|
default: u(() => [
|
|
2275
|
-
|
|
2282
|
+
h(s(Ms), b({ "data-slot": "tooltip" }, e), {
|
|
2276
2283
|
default: u(() => [
|
|
2277
2284
|
d(a.$slots, "default")
|
|
2278
2285
|
]),
|
|
@@ -2311,7 +2318,7 @@ const Wd = {
|
|
|
2311
2318
|
return (o, n) => (r(), g(s(Ts), b({
|
|
2312
2319
|
"data-slot": "tooltip-content",
|
|
2313
2320
|
"side-offset": e.sideOffset,
|
|
2314
|
-
class: s(
|
|
2321
|
+
class: s(I)(a[e.variant] || a.default, e.class, "p-3 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 rounded-md px-3 py-1.5 text-xs text-balance")
|
|
2315
2322
|
}, e), {
|
|
2316
2323
|
default: u(() => [
|
|
2317
2324
|
d(o.$slots, "default")
|
|
@@ -2355,7 +2362,7 @@ const Wd = {
|
|
|
2355
2362
|
fill: "none",
|
|
2356
2363
|
preserveAspectRatio: "none",
|
|
2357
2364
|
viewBox: "0 0 75 1"
|
|
2358
|
-
}, Lo = ["stroke"], Ro = { class: "absolute box-border content-stretch flex items-center justify-between left-[0.33px] overflow-clip px-[2px] py-0 right-[0.33px] rounded-[2px] top-[51px]" }, Fo = { class: "flex-none rotate-[180deg] scale-y-[-100%]" }, Eo = { class: "space-y-2" }, No = { class: "space-y-1" }, Uo = { class: "flex items-center gap-2" }, Ho = { class: "text-sm" }, Go = { class: "border-t pt-2 mt-2" }, Wo = { class: "flex items-center justify-between" }, qo = { class: "text-sm font-mono font-medium" }, Le = 24, Re = 74,
|
|
2365
|
+
}, Lo = ["stroke"], Ro = { class: "absolute box-border content-stretch flex items-center justify-between left-[0.33px] overflow-clip px-[2px] py-0 right-[0.33px] rounded-[2px] top-[51px]" }, Fo = { class: "flex-none rotate-[180deg] scale-y-[-100%]" }, Eo = { class: "space-y-2" }, No = { class: "space-y-1" }, Uo = { class: "flex items-center gap-2" }, Ho = { class: "text-sm" }, Go = { class: "border-t pt-2 mt-2" }, Wo = { class: "flex items-center justify-between" }, qo = { class: "text-sm font-mono font-medium" }, Le = 24, Re = 74, uc = /* @__PURE__ */ f({
|
|
2359
2366
|
__name: "category-breakdown-metric",
|
|
2360
2367
|
props: {
|
|
2361
2368
|
title: String,
|
|
@@ -2371,69 +2378,69 @@ const Wd = {
|
|
|
2371
2378
|
isLoading: Boolean
|
|
2372
2379
|
},
|
|
2373
2380
|
setup(t) {
|
|
2374
|
-
const e = t, a =
|
|
2375
|
-
let
|
|
2376
|
-
return a.value?.map((
|
|
2377
|
-
const
|
|
2378
|
-
return
|
|
2379
|
-
...
|
|
2380
|
-
value:
|
|
2381
|
+
const e = t, a = k(() => e.categories?.filter((v) => (e.data[v.name] ?? 0) > 0)), o = k(() => a.value?.reduce((v, _) => v + (e.data[_.name] || 0), 0)), n = k(() => {
|
|
2382
|
+
let v = 0;
|
|
2383
|
+
return a.value?.map((_, y) => {
|
|
2384
|
+
const w = e.data[_.name] || 0, B = (o.value > 0 ? w / o.value : 0) * 100, P = v;
|
|
2385
|
+
return v += B, {
|
|
2386
|
+
..._,
|
|
2387
|
+
value: w,
|
|
2381
2388
|
boundaryPosition: P,
|
|
2382
2389
|
percentage: B,
|
|
2383
2390
|
index: y
|
|
2384
2391
|
};
|
|
2385
2392
|
});
|
|
2386
|
-
}), i =
|
|
2387
|
-
const
|
|
2388
|
-
for (let
|
|
2389
|
-
const y = n.value[
|
|
2390
|
-
n.value[
|
|
2393
|
+
}), i = k(() => {
|
|
2394
|
+
const v = n.value?.map(() => !0);
|
|
2395
|
+
for (let _ = 0; _ < n.value?.length - 1; _++) {
|
|
2396
|
+
const y = n.value[_];
|
|
2397
|
+
n.value[_ + 1].boundaryPosition - y.boundaryPosition < Le && (v[_] = !1);
|
|
2391
2398
|
}
|
|
2392
|
-
return n.value?.length > 0 && 100 - n.value[n.value?.length - 1].boundaryPosition < Le && (
|
|
2393
|
-
}), p =
|
|
2394
|
-
if (
|
|
2395
|
-
return { ...
|
|
2396
|
-
const B = n.value[
|
|
2397
|
-
return { ...
|
|
2398
|
-
})), m =
|
|
2399
|
-
const
|
|
2400
|
-
let
|
|
2399
|
+
return n.value?.length > 0 && 100 - n.value[n.value?.length - 1].boundaryPosition < Le && (v[n.value?.length - 1] = !1), v;
|
|
2400
|
+
}), p = k(() => n.value?.map((v, _) => {
|
|
2401
|
+
if (_ === n.value?.length - 1)
|
|
2402
|
+
return { ...v, isVisible: !0 };
|
|
2403
|
+
const B = n.value[_ + 1].boundaryPosition - v.boundaryPosition >= 15;
|
|
2404
|
+
return { ...v, isVisible: B };
|
|
2405
|
+
})), m = k(() => {
|
|
2406
|
+
const v = [];
|
|
2407
|
+
let _ = 0;
|
|
2401
2408
|
for (e.categories?.forEach((y) => {
|
|
2402
|
-
const
|
|
2409
|
+
const w = e.data[y.name] || 0, S = a.value.find((R) => R.name === y.name), B = o.value > 0 && S ? w / o.value : 0, P = Math.round(B * Re);
|
|
2403
2410
|
for (let R = 0; R < P; R++)
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
});
|
|
2411
|
+
v.push({ color: y.color, position: _ + R });
|
|
2412
|
+
_ += P;
|
|
2413
|
+
}); v?.length < Re; ) {
|
|
2407
2414
|
let y;
|
|
2408
2415
|
a.value && (y = a.value[a.value?.length - 1]);
|
|
2409
|
-
const
|
|
2410
|
-
|
|
2416
|
+
const w = y?.color || e.categories && e.categories[e.categories?.length - 1]?.color || "#9ca3af";
|
|
2417
|
+
v.push({ color: w, position: v?.length });
|
|
2411
2418
|
}
|
|
2412
|
-
return
|
|
2413
|
-
}), $ =
|
|
2414
|
-
return (
|
|
2419
|
+
return v;
|
|
2420
|
+
}), $ = k(() => o.value === 0);
|
|
2421
|
+
return (v, _) => $.value ? (r(), l("div", ko, [..._[0] || (_[0] = [
|
|
2415
2422
|
c("span", { class: "text-gray-400 text-sm" }, "No data available", -1)
|
|
2416
2423
|
])])) : (r(), g(pt, { key: 1 }, {
|
|
2417
2424
|
default: u(() => [
|
|
2418
|
-
|
|
2425
|
+
h(ft, null, {
|
|
2419
2426
|
default: u(() => [
|
|
2420
|
-
|
|
2427
|
+
h(gt, { "as-child": "" }, {
|
|
2421
2428
|
default: u(() => [
|
|
2422
2429
|
c("div", $o, [
|
|
2423
|
-
(r(!0), l(F, null, G(n.value, (y,
|
|
2430
|
+
(r(!0), l(F, null, G(n.value, (y, w) => (r(), l(F, {
|
|
2424
2431
|
key: y.name
|
|
2425
2432
|
}, [
|
|
2426
|
-
i.value[
|
|
2427
|
-
|
|
2433
|
+
i.value[w] ? (r(), l("div", So, [
|
|
2434
|
+
w !== n.value?.length - 1 ? (r(), l("div", {
|
|
2428
2435
|
key: 0,
|
|
2429
2436
|
class: "absolute box-border content-stretch flex flex-col gap-[4px] py-0 top-[0.33px] items-start",
|
|
2430
2437
|
style: H({ left: y.boundaryPosition + "%", transform: "translateX(8px)" })
|
|
2431
2438
|
}, [
|
|
2432
|
-
c("p", Co,
|
|
2439
|
+
c("p", Co, M(y.label || y.name), 1),
|
|
2433
2440
|
c("p", {
|
|
2434
2441
|
class: "leading-[20px] text-[24px]",
|
|
2435
2442
|
style: H({ color: y.color })
|
|
2436
|
-
},
|
|
2443
|
+
}, M(y.value), 5)
|
|
2437
2444
|
], 4)) : (r(), l("div", {
|
|
2438
2445
|
key: 1,
|
|
2439
2446
|
class: "absolute box-border content-stretch flex flex-col gap-[4px] py-0 top-[0.33px]",
|
|
@@ -2443,21 +2450,21 @@ const Wd = {
|
|
|
2443
2450
|
textAlign: 100 - y.boundaryPosition < 6 ? "right" : "left"
|
|
2444
2451
|
})
|
|
2445
2452
|
}, [
|
|
2446
|
-
c("p", Bo,
|
|
2453
|
+
c("p", Bo, M(y.label || y.name), 1),
|
|
2447
2454
|
c("p", {
|
|
2448
2455
|
class: "leading-[20px] text-[24px]",
|
|
2449
2456
|
style: H({ color: y.color })
|
|
2450
|
-
},
|
|
2457
|
+
}, M(y.value), 5)
|
|
2451
2458
|
], 4))
|
|
2452
2459
|
])) : z("", !0)
|
|
2453
2460
|
], 64))), 128)),
|
|
2454
|
-
(r(!0), l(F, null, G(n.value, (y,
|
|
2455
|
-
key: "line-" +
|
|
2461
|
+
(r(!0), l(F, null, G(n.value, (y, w) => (r(), l(F, {
|
|
2462
|
+
key: "line-" + w
|
|
2456
2463
|
}, [
|
|
2457
|
-
|
|
2464
|
+
w !== 0 ? (r(), l("div", {
|
|
2458
2465
|
key: 0,
|
|
2459
2466
|
class: "absolute flex h-[75px] items-center justify-center top-0 w-[0px] overflow-visible",
|
|
2460
|
-
style: H({ left: n.value.slice(0,
|
|
2467
|
+
style: H({ left: n.value.slice(0, w).reduce((S, B) => S + B.percentage, 0) + "%" })
|
|
2461
2468
|
}, [
|
|
2462
2469
|
c("div", zo, [
|
|
2463
2470
|
c("div", Io, [
|
|
@@ -2492,8 +2499,8 @@ const Wd = {
|
|
|
2492
2499
|
])
|
|
2493
2500
|
]),
|
|
2494
2501
|
c("div", Ro, [
|
|
2495
|
-
(r(!0), l(F, null, G(m.value, (y,
|
|
2496
|
-
key:
|
|
2502
|
+
(r(!0), l(F, null, G(m.value, (y, w) => (r(), l("div", {
|
|
2503
|
+
key: w,
|
|
2497
2504
|
class: "flex items-center justify-center relative shrink-0"
|
|
2498
2505
|
}, [
|
|
2499
2506
|
c("div", Fo, [
|
|
@@ -2508,10 +2515,10 @@ const Wd = {
|
|
|
2508
2515
|
]),
|
|
2509
2516
|
_: 1
|
|
2510
2517
|
}),
|
|
2511
|
-
|
|
2518
|
+
h(mt, { variant: "outline" }, {
|
|
2512
2519
|
default: u(() => [
|
|
2513
2520
|
c("div", Eo, [
|
|
2514
|
-
|
|
2521
|
+
_[2] || (_[2] = c("p", { class: "font-medium text-sm" }, "Threat Breakdown", -1)),
|
|
2515
2522
|
c("div", No, [
|
|
2516
2523
|
(r(!0), l(F, null, G(e.categories, (y) => (r(), l("div", {
|
|
2517
2524
|
key: y.name,
|
|
@@ -2522,18 +2529,18 @@ const Wd = {
|
|
|
2522
2529
|
class: "w-2 h-2 rounded-full flex-shrink-0",
|
|
2523
2530
|
style: H({ backgroundColor: y.color })
|
|
2524
2531
|
}, null, 4),
|
|
2525
|
-
c("span", Ho,
|
|
2532
|
+
c("span", Ho, M(y.label || y.name), 1)
|
|
2526
2533
|
]),
|
|
2527
2534
|
c("span", {
|
|
2528
2535
|
class: "text-sm font-mono",
|
|
2529
2536
|
style: H({ color: y.color })
|
|
2530
|
-
},
|
|
2537
|
+
}, M(e.data[y.name] || 0), 5)
|
|
2531
2538
|
]))), 128))
|
|
2532
2539
|
]),
|
|
2533
2540
|
c("div", Go, [
|
|
2534
2541
|
c("div", Wo, [
|
|
2535
|
-
|
|
2536
|
-
c("span", qo,
|
|
2542
|
+
_[1] || (_[1] = c("span", { class: "text-sm font-medium" }, "Total", -1)),
|
|
2543
|
+
c("span", qo, M(e.categories.reduce((y, w) => y + (e.data[w.name] || 0), 0).toLocaleString()), 1)
|
|
2537
2544
|
])
|
|
2538
2545
|
])
|
|
2539
2546
|
])
|
|
@@ -2547,12 +2554,12 @@ const Wd = {
|
|
|
2547
2554
|
_: 1
|
|
2548
2555
|
}));
|
|
2549
2556
|
}
|
|
2550
|
-
}),
|
|
2557
|
+
}), ye = {
|
|
2551
2558
|
__name: "label",
|
|
2552
2559
|
setup(t) {
|
|
2553
2560
|
const e = U();
|
|
2554
2561
|
return (a, o) => (r(), l("label", b({ "data-slot": "label" }, s(e), {
|
|
2555
|
-
class: s(
|
|
2562
|
+
class: s(I)(
|
|
2556
2563
|
"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",
|
|
2557
2564
|
s(e).class
|
|
2558
2565
|
)
|
|
@@ -2621,7 +2628,7 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2621
2628
|
class: { type: String, default: "" }
|
|
2622
2629
|
},
|
|
2623
2630
|
setup(t) {
|
|
2624
|
-
const e = t, a =
|
|
2631
|
+
const e = t, a = k(() => e.id || `checkbox-${Math.random().toString(36).substr(2, 9)}`), o = k(() => [
|
|
2625
2632
|
"peer appearance-none border bg-input-background dark:bg-input/30 checked:bg-primary checked:text-primary-foreground dark:checked:bg-primary checked:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
2626
2633
|
e.validationState === "error" ? "border-red-500 checked:bg-red-500 checked:border-red-500" : "",
|
|
2627
2634
|
e.validationState === "success" ? "border-green-500 checked:bg-green-500 checked:border-green-500" : "",
|
|
@@ -2642,19 +2649,19 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2642
2649
|
onChange: i[0] || (i[0] = (p) => n.$emit("update:modelValue", p.target.checked))
|
|
2643
2650
|
}), null, 16, er),
|
|
2644
2651
|
t.modelValue ? (r(), l("span", tr, [
|
|
2645
|
-
|
|
2652
|
+
h(pe, { class: "h-3.5 w-3.5" })
|
|
2646
2653
|
])) : z("", !0)
|
|
2647
2654
|
]),
|
|
2648
|
-
|
|
2655
|
+
h(ye, { for: a.value }, {
|
|
2649
2656
|
default: u(() => [
|
|
2650
|
-
O(
|
|
2657
|
+
O(M(t.label), 1)
|
|
2651
2658
|
]),
|
|
2652
2659
|
_: 1
|
|
2653
2660
|
}, 8, ["for"])
|
|
2654
2661
|
]),
|
|
2655
2662
|
t.validationState === "success" && t.validationText ? (r(), l("p", ar, [
|
|
2656
|
-
|
|
2657
|
-
O(" " +
|
|
2663
|
+
h(pe, { class: "h-4 w-4" }),
|
|
2664
|
+
O(" " + M(t.validationText), 1)
|
|
2658
2665
|
])) : z("", !0),
|
|
2659
2666
|
t.validationState === "error" && t.validationText ? (r(), l("p", sr, [
|
|
2660
2667
|
i[2] || (i[2] = c("svg", {
|
|
@@ -2679,7 +2686,7 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2679
2686
|
d: "M12 8v4m0 4h.01"
|
|
2680
2687
|
})
|
|
2681
2688
|
], -1)),
|
|
2682
|
-
O(" " +
|
|
2689
|
+
O(" " + M(t.validationText), 1)
|
|
2683
2690
|
])) : z("", !0)
|
|
2684
2691
|
])) : (r(), l("div", or, [
|
|
2685
2692
|
c("span", rr, [
|
|
@@ -2694,13 +2701,13 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2694
2701
|
onChange: i[1] || (i[1] = (p) => n.$emit("update:modelValue", p.target.checked))
|
|
2695
2702
|
}), null, 16, nr),
|
|
2696
2703
|
t.modelValue ? (r(), l("span", lr, [
|
|
2697
|
-
|
|
2704
|
+
h(pe, { class: "h-3.5 w-3.5" })
|
|
2698
2705
|
])) : z("", !0)
|
|
2699
2706
|
]),
|
|
2700
2707
|
d(n.$slots, "label"),
|
|
2701
2708
|
t.validationState === "success" && t.validationText ? (r(), l("p", ir, [
|
|
2702
|
-
|
|
2703
|
-
O(" " +
|
|
2709
|
+
h(pe, { class: "h-4 w-4" }),
|
|
2710
|
+
O(" " + M(t.validationText), 1)
|
|
2704
2711
|
])) : z("", !0),
|
|
2705
2712
|
t.validationState === "error" && t.validationText ? (r(), l("p", dr, [
|
|
2706
2713
|
i[3] || (i[3] = c("svg", {
|
|
@@ -2725,11 +2732,11 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2725
2732
|
d: "M12 8v4m0 4h.01"
|
|
2726
2733
|
})
|
|
2727
2734
|
], -1)),
|
|
2728
|
-
O(" " +
|
|
2735
|
+
O(" " + M(t.validationText), 1)
|
|
2729
2736
|
])) : z("", !0)
|
|
2730
2737
|
]));
|
|
2731
2738
|
}
|
|
2732
|
-
},
|
|
2739
|
+
}, pc = {
|
|
2733
2740
|
__name: "dialog-body",
|
|
2734
2741
|
setup(t) {
|
|
2735
2742
|
return (e, a) => (r(), l("div", b({
|
|
@@ -2739,7 +2746,7 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2739
2746
|
d(e.$slots, "default")
|
|
2740
2747
|
], 16));
|
|
2741
2748
|
}
|
|
2742
|
-
},
|
|
2749
|
+
}, fc = {
|
|
2743
2750
|
__name: "dialog-close",
|
|
2744
2751
|
setup(t) {
|
|
2745
2752
|
return (e, a) => (r(), g(s(Ie), Q(ee(e.$attrs)), {
|
|
@@ -2749,7 +2756,7 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2749
2756
|
_: 3
|
|
2750
2757
|
}, 16));
|
|
2751
2758
|
}
|
|
2752
|
-
},
|
|
2759
|
+
}, mc = {
|
|
2753
2760
|
__name: "dialog-content",
|
|
2754
2761
|
props: {
|
|
2755
2762
|
size: {
|
|
@@ -2777,9 +2784,9 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2777
2784
|
}, a.$attrs), {
|
|
2778
2785
|
default: u(() => [
|
|
2779
2786
|
d(a.$slots, "default"),
|
|
2780
|
-
|
|
2787
|
+
h(s(As), { class: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground 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 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:size-4" }, {
|
|
2781
2788
|
default: u(() => [
|
|
2782
|
-
|
|
2789
|
+
h(s(ve)),
|
|
2783
2790
|
o[0] || (o[0] = c("span", { class: "sr-only" }, "Close", -1))
|
|
2784
2791
|
]),
|
|
2785
2792
|
_: 1
|
|
@@ -2788,7 +2795,7 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2788
2795
|
_: 3
|
|
2789
2796
|
}, 16, ["class"]));
|
|
2790
2797
|
}
|
|
2791
|
-
},
|
|
2798
|
+
}, gc = {
|
|
2792
2799
|
__name: "dialog-description",
|
|
2793
2800
|
setup(t) {
|
|
2794
2801
|
return (e, a) => (r(), g(s(rt), b({
|
|
@@ -2801,7 +2808,7 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2801
2808
|
_: 3
|
|
2802
2809
|
}, 16, ["class"]));
|
|
2803
2810
|
}
|
|
2804
|
-
},
|
|
2811
|
+
}, bc = {
|
|
2805
2812
|
__name: "dialog-footer",
|
|
2806
2813
|
setup(t) {
|
|
2807
2814
|
return (e, a) => (r(), l("div", b({
|
|
@@ -2811,7 +2818,7 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2811
2818
|
d(e.$slots, "default")
|
|
2812
2819
|
], 16));
|
|
2813
2820
|
}
|
|
2814
|
-
},
|
|
2821
|
+
}, vc = {
|
|
2815
2822
|
__name: "dialog-header",
|
|
2816
2823
|
setup(t) {
|
|
2817
2824
|
return (e, a) => (r(), l("div", b({
|
|
@@ -2821,7 +2828,7 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2821
2828
|
d(e.$slots, "default")
|
|
2822
2829
|
], 16));
|
|
2823
2830
|
}
|
|
2824
|
-
},
|
|
2831
|
+
}, hc = {
|
|
2825
2832
|
__name: "dialog-overlay",
|
|
2826
2833
|
setup(t) {
|
|
2827
2834
|
return (e, a) => (r(), g(s(Je), b({
|
|
@@ -2832,7 +2839,7 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2832
2839
|
]
|
|
2833
2840
|
}, e.$attrs), null, 16, ["class"]));
|
|
2834
2841
|
}
|
|
2835
|
-
},
|
|
2842
|
+
}, _c = {
|
|
2836
2843
|
__name: "dialog-portal",
|
|
2837
2844
|
setup(t) {
|
|
2838
2845
|
return (e, a) => (r(), g(s(Ze), Q(ee(e.$attrs)), {
|
|
@@ -2842,7 +2849,7 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2842
2849
|
_: 3
|
|
2843
2850
|
}, 16));
|
|
2844
2851
|
}
|
|
2845
|
-
},
|
|
2852
|
+
}, yc = {
|
|
2846
2853
|
__name: "dialog-title",
|
|
2847
2854
|
setup(t) {
|
|
2848
2855
|
return (e, a) => (r(), g(s(nt), b({
|
|
@@ -2855,7 +2862,7 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2855
2862
|
_: 3
|
|
2856
2863
|
}, 16, ["class"]));
|
|
2857
2864
|
}
|
|
2858
|
-
},
|
|
2865
|
+
}, xc = {
|
|
2859
2866
|
__name: "dialog-trigger",
|
|
2860
2867
|
setup(t) {
|
|
2861
2868
|
return (e, a) => (r(), g(s(Ls), Q(ee(e.$attrs)), {
|
|
@@ -2865,7 +2872,7 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2865
2872
|
_: 3
|
|
2866
2873
|
}, 16));
|
|
2867
2874
|
}
|
|
2868
|
-
},
|
|
2875
|
+
}, wc = {
|
|
2869
2876
|
__name: "dialog",
|
|
2870
2877
|
setup(t) {
|
|
2871
2878
|
return (e, a) => (r(), g(s(st), Q(ee(e.$attrs)), {
|
|
@@ -2881,7 +2888,7 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2881
2888
|
}, gr = { class: "flex items-center justify-between mb-3" }, br = { class: "flex flex-wrap gap-2 min-h-[2rem]" }, vr = {
|
|
2882
2889
|
key: 1,
|
|
2883
2890
|
class: "text-sm text-muted-foreground"
|
|
2884
|
-
},
|
|
2891
|
+
}, kc = {
|
|
2885
2892
|
__name: "dismissible-badges-demo",
|
|
2886
2893
|
setup(t) {
|
|
2887
2894
|
const e = [
|
|
@@ -2896,11 +2903,11 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2896
2903
|
{ id: 2, label: "Pending", variant: "soft-warning", size: "md" },
|
|
2897
2904
|
{ id: 3, label: "Draft", variant: "soft-neutral", size: "md" }
|
|
2898
2905
|
], o = V([...e]), n = V([...a]);
|
|
2899
|
-
function i(
|
|
2900
|
-
o.value = o.value.filter((
|
|
2906
|
+
function i(v) {
|
|
2907
|
+
o.value = o.value.filter((_) => _.id !== v);
|
|
2901
2908
|
}
|
|
2902
|
-
function p(
|
|
2903
|
-
n.value = n.value.filter((
|
|
2909
|
+
function p(v) {
|
|
2910
|
+
n.value = n.value.filter((_) => _.id !== v);
|
|
2904
2911
|
}
|
|
2905
2912
|
function m() {
|
|
2906
2913
|
o.value = [...e];
|
|
@@ -2908,17 +2915,17 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2908
2915
|
function $() {
|
|
2909
2916
|
n.value = [...a];
|
|
2910
2917
|
}
|
|
2911
|
-
return (
|
|
2918
|
+
return (v, _) => (r(), l("div", ur, [
|
|
2912
2919
|
c("div", null, [
|
|
2913
2920
|
c("div", pr, [
|
|
2914
|
-
|
|
2915
|
-
|
|
2921
|
+
_[1] || (_[1] = c("h4", { class: "font-medium" }, "Project Tags", -1)),
|
|
2922
|
+
h(ge, {
|
|
2916
2923
|
variant: "outline",
|
|
2917
2924
|
size: "sm",
|
|
2918
2925
|
onClick: m,
|
|
2919
2926
|
disabled: o.value.length === e.length
|
|
2920
2927
|
}, {
|
|
2921
|
-
default: u(() => [...
|
|
2928
|
+
default: u(() => [..._[0] || (_[0] = [
|
|
2922
2929
|
O(" Reset Tags ", -1)
|
|
2923
2930
|
])]),
|
|
2924
2931
|
_: 1
|
|
@@ -2930,10 +2937,10 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2930
2937
|
variant: y.variant,
|
|
2931
2938
|
size: y.size,
|
|
2932
2939
|
dismissible: "",
|
|
2933
|
-
onDismiss: (
|
|
2940
|
+
onDismiss: (w) => i(y.id)
|
|
2934
2941
|
}, {
|
|
2935
2942
|
default: u(() => [
|
|
2936
|
-
O(
|
|
2943
|
+
O(M(y.label), 1)
|
|
2937
2944
|
]),
|
|
2938
2945
|
_: 2
|
|
2939
2946
|
}, 1032, ["variant", "size", "onDismiss"]))), 128)) : (r(), l("p", mr, "No tags selected"))
|
|
@@ -2941,14 +2948,14 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2941
2948
|
]),
|
|
2942
2949
|
c("div", null, [
|
|
2943
2950
|
c("div", gr, [
|
|
2944
|
-
|
|
2945
|
-
|
|
2951
|
+
_[3] || (_[3] = c("h4", { class: "font-medium" }, "Applied Filters", -1)),
|
|
2952
|
+
h(ge, {
|
|
2946
2953
|
variant: "outline",
|
|
2947
2954
|
size: "sm",
|
|
2948
2955
|
onClick: $,
|
|
2949
2956
|
disabled: n.value.length === a.length
|
|
2950
2957
|
}, {
|
|
2951
|
-
default: u(() => [...
|
|
2958
|
+
default: u(() => [..._[2] || (_[2] = [
|
|
2952
2959
|
O(" Reset Filters ", -1)
|
|
2953
2960
|
])]),
|
|
2954
2961
|
_: 1
|
|
@@ -2960,17 +2967,17 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2960
2967
|
variant: y.variant,
|
|
2961
2968
|
size: y.size,
|
|
2962
2969
|
dismissible: "",
|
|
2963
|
-
onDismiss: (
|
|
2970
|
+
onDismiss: (w) => p(y.id)
|
|
2964
2971
|
}, {
|
|
2965
2972
|
default: u(() => [
|
|
2966
|
-
|
|
2967
|
-
O(" " +
|
|
2973
|
+
h(s(he)),
|
|
2974
|
+
O(" " + M(y.label), 1)
|
|
2968
2975
|
]),
|
|
2969
2976
|
_: 2
|
|
2970
2977
|
}, 1032, ["variant", "size", "onDismiss"]))), 128)) : (r(), l("p", vr, "No filters applied"))
|
|
2971
2978
|
])
|
|
2972
2979
|
]),
|
|
2973
|
-
|
|
2980
|
+
_[4] || (_[4] = c("div", { class: "text-sm text-muted-foreground" }, [
|
|
2974
2981
|
c("p", null, "Click the × button on any badge to remove it")
|
|
2975
2982
|
], -1))
|
|
2976
2983
|
]));
|
|
@@ -2997,15 +3004,15 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2997
3004
|
"2xl": "sm:max-w-2xl max-w-[calc(100%-2rem)]",
|
|
2998
3005
|
"4xl": "sm:max-w-4xl max-w-[calc(100%-2rem)]",
|
|
2999
3006
|
full: "sm:max-w-[calc(100vw-2rem)] max-w-[calc(100%-2rem)]"
|
|
3000
|
-
}, o =
|
|
3007
|
+
}, o = k(() => [
|
|
3001
3008
|
"group/drawer-content bg-background fixed z-50 flex h-auto flex-col",
|
|
3002
3009
|
a[e.size],
|
|
3003
3010
|
e.class
|
|
3004
3011
|
].join(" "));
|
|
3005
3012
|
return (n, i) => (r(), g(s(is), { "data-slot": "drawer-portal" }, {
|
|
3006
3013
|
default: u(() => [
|
|
3007
|
-
|
|
3008
|
-
|
|
3014
|
+
h(s(ds), { "data-slot": "drawer-overlay" }),
|
|
3015
|
+
h(s(cs), b(n.$attrs, {
|
|
3009
3016
|
class: o.value,
|
|
3010
3017
|
"data-slot": "drawer-content"
|
|
3011
3018
|
}), {
|
|
@@ -3019,15 +3026,15 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
3019
3026
|
_: 3
|
|
3020
3027
|
}));
|
|
3021
3028
|
}
|
|
3022
|
-
},
|
|
3029
|
+
}, $c = /* @__PURE__ */ T(hr, [["__scopeId", "data-v-784fd8dc"]]), _r = {
|
|
3023
3030
|
__name: "drawer-description",
|
|
3024
3031
|
props: {
|
|
3025
3032
|
class: String
|
|
3026
3033
|
},
|
|
3027
3034
|
setup(t) {
|
|
3028
|
-
const e =
|
|
3035
|
+
const e = k(() => ["text-muted-foreground text-sm", $props.class].join(" "));
|
|
3029
3036
|
return (a, o) => {
|
|
3030
|
-
const n =
|
|
3037
|
+
const n = Be("VaulDrawerDescription");
|
|
3031
3038
|
return r(), g(n, b(a.$attrs, {
|
|
3032
3039
|
class: e.value,
|
|
3033
3040
|
"data-slot": "drawer-description"
|
|
@@ -3039,43 +3046,43 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
3039
3046
|
}, 16, ["class"]);
|
|
3040
3047
|
};
|
|
3041
3048
|
}
|
|
3042
|
-
},
|
|
3049
|
+
}, Sc = /* @__PURE__ */ T(_r, [["__scopeId", "data-v-a79f808c"]]), yr = {
|
|
3043
3050
|
__name: "drawer-footer",
|
|
3044
3051
|
props: {
|
|
3045
3052
|
class: String
|
|
3046
3053
|
},
|
|
3047
3054
|
setup(t) {
|
|
3048
|
-
const e =
|
|
3055
|
+
const e = k(() => ["mt-auto flex flex-col gap-2 p-4", $props.class].join(" "));
|
|
3049
3056
|
return (a, o) => (r(), l("div", {
|
|
3050
|
-
class:
|
|
3057
|
+
class: x(e.value),
|
|
3051
3058
|
"data-slot": "drawer-footer"
|
|
3052
3059
|
}, [
|
|
3053
3060
|
d(a.$slots, "default", {}, void 0, !0)
|
|
3054
3061
|
], 2));
|
|
3055
3062
|
}
|
|
3056
|
-
},
|
|
3063
|
+
}, Cc = /* @__PURE__ */ T(yr, [["__scopeId", "data-v-6f042498"]]), xr = {
|
|
3057
3064
|
__name: "drawer-header",
|
|
3058
3065
|
props: {
|
|
3059
3066
|
class: String
|
|
3060
3067
|
},
|
|
3061
3068
|
setup(t) {
|
|
3062
|
-
const e =
|
|
3069
|
+
const e = k(() => ["flex flex-col gap-1.5 p-4", $props.class].join(" "));
|
|
3063
3070
|
return (a, o) => (r(), l("div", {
|
|
3064
|
-
class:
|
|
3071
|
+
class: x(e.value),
|
|
3065
3072
|
"data-slot": "drawer-header"
|
|
3066
3073
|
}, [
|
|
3067
3074
|
d(a.$slots, "default", {}, void 0, !0)
|
|
3068
3075
|
], 2));
|
|
3069
3076
|
}
|
|
3070
|
-
},
|
|
3077
|
+
}, Bc = /* @__PURE__ */ T(xr, [["__scopeId", "data-v-cbc09128"]]), wr = {
|
|
3071
3078
|
__name: "drawer-title",
|
|
3072
3079
|
props: {
|
|
3073
3080
|
class: String
|
|
3074
3081
|
},
|
|
3075
3082
|
setup(t) {
|
|
3076
|
-
const e =
|
|
3083
|
+
const e = k(() => ["text-foreground font-semibold", $props.class].join(" "));
|
|
3077
3084
|
return (a, o) => {
|
|
3078
|
-
const n =
|
|
3085
|
+
const n = Be("VaulDrawerTitle");
|
|
3079
3086
|
return r(), g(n, b(a.$attrs, {
|
|
3080
3087
|
class: e.value,
|
|
3081
3088
|
"data-slot": "drawer-title"
|
|
@@ -3087,7 +3094,7 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
3087
3094
|
}, 16, ["class"]);
|
|
3088
3095
|
};
|
|
3089
3096
|
}
|
|
3090
|
-
},
|
|
3097
|
+
}, zc = /* @__PURE__ */ T(wr, [["__scopeId", "data-v-4bf18d63"]]), kr = {
|
|
3091
3098
|
__name: "drawer-trigger",
|
|
3092
3099
|
props: {
|
|
3093
3100
|
asChild: {
|
|
@@ -3103,7 +3110,7 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
3103
3110
|
_: 3
|
|
3104
3111
|
}, 16));
|
|
3105
3112
|
}
|
|
3106
|
-
},
|
|
3113
|
+
}, Ic = /* @__PURE__ */ T(kr, [["__scopeId", "data-v-9c94c5a5"]]), $r = {
|
|
3107
3114
|
__name: "drawer",
|
|
3108
3115
|
props: {
|
|
3109
3116
|
open: Boolean,
|
|
@@ -3129,10 +3136,10 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
3129
3136
|
_: 3
|
|
3130
3137
|
}, 16, ["open", "size", "direction"]));
|
|
3131
3138
|
}
|
|
3132
|
-
},
|
|
3139
|
+
}, Mc = /* @__PURE__ */ T($r, [["__scopeId", "data-v-0620bb5e"]]), Sr = ["aria-checked"], Cr = { class: "mr-2 w-4 h-4 flex items-center justify-center" }, Br = {
|
|
3133
3140
|
key: 0,
|
|
3134
3141
|
class: "block w-3 h-3 bg-primary rounded"
|
|
3135
|
-
},
|
|
3142
|
+
}, Tc = /* @__PURE__ */ f({
|
|
3136
3143
|
__name: "dropdown-menu-checkbox-item",
|
|
3137
3144
|
props: {
|
|
3138
3145
|
checked: Boolean,
|
|
@@ -3146,7 +3153,7 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
3146
3153
|
a.disabled || o("update:checked", !a.checked);
|
|
3147
3154
|
}
|
|
3148
3155
|
return (i, p) => (r(), l("div", {
|
|
3149
|
-
class:
|
|
3156
|
+
class: x(["flex items-center px-2 py-1.5 text-sm cursor-pointer select-none", a.class, { "opacity-50 pointer-events-none": a.disabled }]),
|
|
3150
3157
|
onClick: n,
|
|
3151
3158
|
role: "menuitemcheckbox",
|
|
3152
3159
|
"aria-checked": a.checked,
|
|
@@ -3207,7 +3214,7 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
3207
3214
|
const a = t, o = e, n = D(a, "class"), i = N(n, o);
|
|
3208
3215
|
return (p, m) => (r(), g(s(tt), null, {
|
|
3209
3216
|
default: u(() => [
|
|
3210
|
-
|
|
3217
|
+
h(s(Ka), b({ "data-slot": "dropdown-menu-content" }, s(i), {
|
|
3211
3218
|
class: s(C)("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-(--reka-dropdown-menu-content-available-height) min-w-[8rem] origin-(--reka-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md", a.class)
|
|
3212
3219
|
}), {
|
|
3213
3220
|
default: u(() => [
|
|
@@ -3235,7 +3242,7 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
3235
3242
|
_: 3
|
|
3236
3243
|
}, 16));
|
|
3237
3244
|
}
|
|
3238
|
-
}),
|
|
3245
|
+
}), Dc = /* @__PURE__ */ f({
|
|
3239
3246
|
__name: "dropdown-menu-content",
|
|
3240
3247
|
props: {
|
|
3241
3248
|
class: { type: String, default: "" },
|
|
@@ -3245,11 +3252,11 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
3245
3252
|
const e = t;
|
|
3246
3253
|
return (a, o) => (r(), g(s(tt), null, {
|
|
3247
3254
|
default: u(() => [
|
|
3248
|
-
|
|
3255
|
+
h(s(Ir), b({
|
|
3249
3256
|
"data-slot": "dropdown-menu-content",
|
|
3250
3257
|
sideOffset: e.sideOffset
|
|
3251
3258
|
}, a.$attrs, {
|
|
3252
|
-
class: s(
|
|
3259
|
+
class: s(I)("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-[--reka-dropdown-menu-content-available-height] min-w-[8rem] origin-[--reka-dropdown-menu-content-transform-origin] overflow-x-hidden overflow-y-auto rounded-md border border-border p-1 shadow-md", e.class)
|
|
3253
3260
|
}), {
|
|
3254
3261
|
default: u(() => [
|
|
3255
3262
|
d(a.$slots, "default")
|
|
@@ -3266,7 +3273,7 @@ function Vr(t, e) {
|
|
|
3266
3273
|
d(t.$slots, "default")
|
|
3267
3274
|
]);
|
|
3268
3275
|
}
|
|
3269
|
-
const
|
|
3276
|
+
const Vc = /* @__PURE__ */ T(Tr, [["render", Vr]]), Pr = ["data-inset", "data-variant"], Pc = /* @__PURE__ */ f({
|
|
3270
3277
|
__name: "dropdown-menu-item",
|
|
3271
3278
|
props: {
|
|
3272
3279
|
class: { type: String, default: "" },
|
|
@@ -3278,12 +3285,12 @@ const Dc = /* @__PURE__ */ T(Tr, [["render", Vr]]), Pr = ["data-inset", "data-va
|
|
|
3278
3285
|
"data-slot": "dropdown-menu-item",
|
|
3279
3286
|
"data-inset": t.inset,
|
|
3280
3287
|
"data-variant": t.variant,
|
|
3281
|
-
class: s(
|
|
3288
|
+
class: s(I)("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm select-none", { "pl-8": t.inset }, e.$attrs.class)
|
|
3282
3289
|
}, e.$attrs), [
|
|
3283
3290
|
d(e.$slots, "default")
|
|
3284
3291
|
], 16, Pr));
|
|
3285
3292
|
}
|
|
3286
|
-
}), Ar = ["data-inset"],
|
|
3293
|
+
}), Ar = ["data-inset"], Ac = /* @__PURE__ */ f({
|
|
3287
3294
|
__name: "dropdown-menu-label",
|
|
3288
3295
|
props: {
|
|
3289
3296
|
class: { type: String, default: "" },
|
|
@@ -3293,19 +3300,19 @@ const Dc = /* @__PURE__ */ T(Tr, [["render", Vr]]), Pr = ["data-inset", "data-va
|
|
|
3293
3300
|
return (e, a) => (r(), l("div", b({
|
|
3294
3301
|
"data-slot": "dropdown-menu-label",
|
|
3295
3302
|
"data-inset": t.inset,
|
|
3296
|
-
class: s(
|
|
3303
|
+
class: s(I)("px-2 py-1.5 text-sm font-medium", { "pl-8": t.inset }, e.$attrs.class)
|
|
3297
3304
|
}, e.$attrs), [
|
|
3298
3305
|
d(e.$slots, "default")
|
|
3299
3306
|
], 16, Ar));
|
|
3300
3307
|
}
|
|
3301
|
-
}), Or = { "data-slot": "dropdown-menu-portal" },
|
|
3308
|
+
}), Or = { "data-slot": "dropdown-menu-portal" }, Oc = /* @__PURE__ */ f({
|
|
3302
3309
|
__name: "dropdown-menu-portal",
|
|
3303
3310
|
setup(t) {
|
|
3304
3311
|
return (e, a) => (r(), l("div", Or, [
|
|
3305
3312
|
d(e.$slots, "default")
|
|
3306
3313
|
]));
|
|
3307
3314
|
}
|
|
3308
|
-
}), jr = { role: "radiogroup" },
|
|
3315
|
+
}), jr = { role: "radiogroup" }, jc = /* @__PURE__ */ f({
|
|
3309
3316
|
__name: "dropdown-menu-radio-group",
|
|
3310
3317
|
props: {
|
|
3311
3318
|
modelValue: String
|
|
@@ -3319,7 +3326,7 @@ const Dc = /* @__PURE__ */ T(Tr, [["render", Vr]]), Pr = ["data-inset", "data-va
|
|
|
3319
3326
|
}), Lr = ["aria-checked"], Rr = { class: "mr-2 w-4 h-4 flex items-center justify-center" }, Fr = {
|
|
3320
3327
|
key: 0,
|
|
3321
3328
|
class: "block w-3 h-3 bg-primary rounded-full"
|
|
3322
|
-
},
|
|
3329
|
+
}, Lc = /* @__PURE__ */ f({
|
|
3323
3330
|
__name: "dropdown-menu-radio-item",
|
|
3324
3331
|
props: {
|
|
3325
3332
|
value: String,
|
|
@@ -3328,12 +3335,12 @@ const Dc = /* @__PURE__ */ T(Tr, [["render", Vr]]), Pr = ["data-inset", "data-va
|
|
|
3328
3335
|
},
|
|
3329
3336
|
emits: ["update:modelValue"],
|
|
3330
3337
|
setup(t, { emit: e }) {
|
|
3331
|
-
const a = t, o = e, n =
|
|
3338
|
+
const a = t, o = e, n = be("dropdownMenuRadioGroupValue", null);
|
|
3332
3339
|
function i() {
|
|
3333
3340
|
!a.disabled && n && (n.value = a.value, o("update:modelValue", a.value));
|
|
3334
3341
|
}
|
|
3335
3342
|
return (p, m) => (r(), l("div", {
|
|
3336
|
-
class:
|
|
3343
|
+
class: x(["flex items-center px-2 py-1.5 text-sm cursor-pointer select-none", a.class, { "opacity-50 pointer-events-none": a.disabled }]),
|
|
3337
3344
|
onClick: i,
|
|
3338
3345
|
role: "menuitemradio",
|
|
3339
3346
|
"aria-checked": s(n) && s(n).value === a.value,
|
|
@@ -3345,7 +3352,7 @@ const Dc = /* @__PURE__ */ T(Tr, [["render", Vr]]), Pr = ["data-inset", "data-va
|
|
|
3345
3352
|
d(p.$slots, "default")
|
|
3346
3353
|
], 10, Lr));
|
|
3347
3354
|
}
|
|
3348
|
-
}),
|
|
3355
|
+
}), Rc = /* @__PURE__ */ f({
|
|
3349
3356
|
__name: "dropdown-menu-separator",
|
|
3350
3357
|
props: {
|
|
3351
3358
|
class: { type: String, default: "" }
|
|
@@ -3353,10 +3360,10 @@ const Dc = /* @__PURE__ */ T(Tr, [["render", Vr]]), Pr = ["data-inset", "data-va
|
|
|
3353
3360
|
setup(t) {
|
|
3354
3361
|
return (e, a) => (r(), l("div", b({
|
|
3355
3362
|
"data-slot": "dropdown-menu-separator",
|
|
3356
|
-
class: s(
|
|
3363
|
+
class: s(I)("bg-border -mx-1 my-1 h-px", e.$attrs.class)
|
|
3357
3364
|
}, e.$attrs), null, 16));
|
|
3358
3365
|
}
|
|
3359
|
-
}),
|
|
3366
|
+
}), Fc = /* @__PURE__ */ f({
|
|
3360
3367
|
__name: "dropdown-menu-shortcut",
|
|
3361
3368
|
props: {
|
|
3362
3369
|
class: { type: String, default: "" }
|
|
@@ -3364,7 +3371,7 @@ const Dc = /* @__PURE__ */ T(Tr, [["render", Vr]]), Pr = ["data-inset", "data-va
|
|
|
3364
3371
|
setup(t) {
|
|
3365
3372
|
return (e, a) => (r(), l("span", b({
|
|
3366
3373
|
"data-slot": "dropdown-menu-shortcut",
|
|
3367
|
-
class: s(
|
|
3374
|
+
class: s(I)("text-muted-foreground ml-auto text-xs tracking-widest", e.$attrs.class)
|
|
3368
3375
|
}, e.$attrs), [
|
|
3369
3376
|
d(e.$slots, "default")
|
|
3370
3377
|
], 16));
|
|
@@ -3372,7 +3379,7 @@ const Dc = /* @__PURE__ */ T(Tr, [["render", Vr]]), Pr = ["data-inset", "data-va
|
|
|
3372
3379
|
}), Er = {
|
|
3373
3380
|
class: "absolute left-full top-0 mt-0 ml-2 min-w-[8rem] bg-popover border border-border rounded-md shadow-md z-50",
|
|
3374
3381
|
"data-slot": "dropdown-menu-sub-content"
|
|
3375
|
-
},
|
|
3382
|
+
}, Ec = /* @__PURE__ */ f({
|
|
3376
3383
|
__name: "dropdown-menu-sub-content",
|
|
3377
3384
|
setup(t) {
|
|
3378
3385
|
return (e, a) => (r(), l("div", Er, [
|
|
@@ -3382,7 +3389,7 @@ const Dc = /* @__PURE__ */ T(Tr, [["render", Vr]]), Pr = ["data-inset", "data-va
|
|
|
3382
3389
|
}), Nr = {
|
|
3383
3390
|
class: "flex items-center cursor-pointer select-none",
|
|
3384
3391
|
"data-slot": "dropdown-menu-sub-trigger"
|
|
3385
|
-
},
|
|
3392
|
+
}, Nc = /* @__PURE__ */ f({
|
|
3386
3393
|
__name: "dropdown-menu-sub-trigger",
|
|
3387
3394
|
setup(t) {
|
|
3388
3395
|
return (e, a) => (r(), l("div", Nr, [
|
|
@@ -3392,14 +3399,14 @@ const Dc = /* @__PURE__ */ T(Tr, [["render", Vr]]), Pr = ["data-inset", "data-va
|
|
|
3392
3399
|
}), Ur = {
|
|
3393
3400
|
class: "relative",
|
|
3394
3401
|
"data-slot": "dropdown-menu-sub"
|
|
3395
|
-
},
|
|
3402
|
+
}, Uc = /* @__PURE__ */ f({
|
|
3396
3403
|
__name: "dropdown-menu-sub",
|
|
3397
3404
|
setup(t) {
|
|
3398
3405
|
return (e, a) => (r(), l("div", Ur, [
|
|
3399
3406
|
d(e.$slots, "default")
|
|
3400
3407
|
]));
|
|
3401
3408
|
}
|
|
3402
|
-
}),
|
|
3409
|
+
}), Hc = /* @__PURE__ */ f({
|
|
3403
3410
|
__name: "dropdown-menu-trigger",
|
|
3404
3411
|
setup(t) {
|
|
3405
3412
|
return (e, a) => (r(), g(s(Mr), b({ "data-slot": "dropdown-menu-trigger" }, e.$attrs), {
|
|
@@ -3409,7 +3416,7 @@ const Dc = /* @__PURE__ */ T(Tr, [["render", Vr]]), Pr = ["data-inset", "data-va
|
|
|
3409
3416
|
_: 3
|
|
3410
3417
|
}, 16));
|
|
3411
3418
|
}
|
|
3412
|
-
}),
|
|
3419
|
+
}), Gc = /* @__PURE__ */ f({
|
|
3413
3420
|
__name: "dropdown-menu",
|
|
3414
3421
|
setup(t) {
|
|
3415
3422
|
return (e, a) => (r(), g(s(zr), { "data-slot": "dropdown-menu" }, {
|
|
@@ -3419,7 +3426,7 @@ const Dc = /* @__PURE__ */ T(Tr, [["render", Vr]]), Pr = ["data-inset", "data-va
|
|
|
3419
3426
|
_: 3
|
|
3420
3427
|
}));
|
|
3421
3428
|
}
|
|
3422
|
-
}),
|
|
3429
|
+
}), Wc = /* @__PURE__ */ f({
|
|
3423
3430
|
__name: "grouped-avatar",
|
|
3424
3431
|
props: {
|
|
3425
3432
|
class: {
|
|
@@ -3428,7 +3435,7 @@ const Dc = /* @__PURE__ */ T(Tr, [["render", Vr]]), Pr = ["data-inset", "data-va
|
|
|
3428
3435
|
}
|
|
3429
3436
|
},
|
|
3430
3437
|
setup(t) {
|
|
3431
|
-
const a =
|
|
3438
|
+
const a = I("border-2 border-background", t.class);
|
|
3432
3439
|
return (o, n) => (r(), g(vo, b({ class: s(a) }, o.$attrs), {
|
|
3433
3440
|
default: u(() => [
|
|
3434
3441
|
d(o.$slots, "default")
|
|
@@ -3458,7 +3465,7 @@ function Wr(t, e) {
|
|
|
3458
3465
|
}, null, -1)
|
|
3459
3466
|
])]);
|
|
3460
3467
|
}
|
|
3461
|
-
const
|
|
3468
|
+
const qc = /* @__PURE__ */ T(Hr, [["render", Wr]]), qr = {}, Kr = {
|
|
3462
3469
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3463
3470
|
class: "h-4 w-4",
|
|
3464
3471
|
fill: "none",
|
|
@@ -3475,7 +3482,7 @@ function Xr(t, e) {
|
|
|
3475
3482
|
}, null, -1)
|
|
3476
3483
|
])]);
|
|
3477
3484
|
}
|
|
3478
|
-
const
|
|
3485
|
+
const Kc = /* @__PURE__ */ T(qr, [["render", Xr]]), Jr = {}, Zr = {
|
|
3479
3486
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3480
3487
|
viewBox: "0 0 24 24",
|
|
3481
3488
|
fill: "none",
|
|
@@ -3491,7 +3498,7 @@ function Yr(t, e) {
|
|
|
3491
3498
|
c("polyline", { points: "19 12 12 19 5 12" }, null, -1)
|
|
3492
3499
|
])]);
|
|
3493
3500
|
}
|
|
3494
|
-
const
|
|
3501
|
+
const Xc = /* @__PURE__ */ T(Jr, [["render", Yr]]), Qr = {}, en = {
|
|
3495
3502
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3496
3503
|
viewBox: "0 0 24 24",
|
|
3497
3504
|
fill: "none",
|
|
@@ -3507,7 +3514,7 @@ function tn(t, e) {
|
|
|
3507
3514
|
c("polyline", { points: "5 12 12 5 19 12" }, null, -1)
|
|
3508
3515
|
])]);
|
|
3509
3516
|
}
|
|
3510
|
-
const
|
|
3517
|
+
const Jc = /* @__PURE__ */ T(Qr, [["render", tn]]), an = {}, sn = {
|
|
3511
3518
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3512
3519
|
viewBox: "0 0 24 24",
|
|
3513
3520
|
fill: "none",
|
|
@@ -3529,7 +3536,7 @@ function on(t, e) {
|
|
|
3529
3536
|
c("polyline", { points: "5 12 12 5 19 12" }, null, -1)
|
|
3530
3537
|
])]);
|
|
3531
3538
|
}
|
|
3532
|
-
const
|
|
3539
|
+
const Zc = /* @__PURE__ */ T(an, [["render", on]]), rn = {}, nn = {
|
|
3533
3540
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3534
3541
|
class: "h-4 w-4",
|
|
3535
3542
|
fill: "none",
|
|
@@ -3546,7 +3553,7 @@ function ln(t, e) {
|
|
|
3546
3553
|
}, null, -1)
|
|
3547
3554
|
])]);
|
|
3548
3555
|
}
|
|
3549
|
-
const
|
|
3556
|
+
const Yc = /* @__PURE__ */ T(rn, [["render", ln]]), dn = {}, cn = {
|
|
3550
3557
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3551
3558
|
class: "h-4 w-4",
|
|
3552
3559
|
fill: "none",
|
|
@@ -3588,7 +3595,7 @@ function un(t, e) {
|
|
|
3588
3595
|
}, null, -1)
|
|
3589
3596
|
])]);
|
|
3590
3597
|
}
|
|
3591
|
-
const
|
|
3598
|
+
const Qc = /* @__PURE__ */ T(dn, [["render", un]]), pn = {}, fn = {
|
|
3592
3599
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3593
3600
|
class: "h-4 w-4",
|
|
3594
3601
|
fill: "none",
|
|
@@ -3605,7 +3612,7 @@ function mn(t, e) {
|
|
|
3605
3612
|
}, null, -1)
|
|
3606
3613
|
])]);
|
|
3607
3614
|
}
|
|
3608
|
-
const
|
|
3615
|
+
const eu = /* @__PURE__ */ T(pn, [["render", mn]]), gn = {}, bn = {
|
|
3609
3616
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3610
3617
|
class: "h-3 w-3",
|
|
3611
3618
|
fill: "currentColor",
|
|
@@ -3620,7 +3627,7 @@ function vn(t, e) {
|
|
|
3620
3627
|
}, null, -1)
|
|
3621
3628
|
])]);
|
|
3622
3629
|
}
|
|
3623
|
-
const
|
|
3630
|
+
const tu = /* @__PURE__ */ T(gn, [["render", vn]]), hn = {}, _n = {
|
|
3624
3631
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3625
3632
|
class: "h-3 w-3",
|
|
3626
3633
|
fill: "none",
|
|
@@ -3645,7 +3652,7 @@ function yn(t, e) {
|
|
|
3645
3652
|
}, null, -1)
|
|
3646
3653
|
])]);
|
|
3647
3654
|
}
|
|
3648
|
-
const
|
|
3655
|
+
const au = /* @__PURE__ */ T(hn, [["render", yn]]), xn = {}, wn = {
|
|
3649
3656
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3650
3657
|
class: "h-4 w-4",
|
|
3651
3658
|
fill: "currentColor",
|
|
@@ -3660,7 +3667,7 @@ function kn(t, e) {
|
|
|
3660
3667
|
}, null, -1)
|
|
3661
3668
|
])]);
|
|
3662
3669
|
}
|
|
3663
|
-
const
|
|
3670
|
+
const su = /* @__PURE__ */ T(xn, [["render", kn]]), $n = {}, Sn = {
|
|
3664
3671
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3665
3672
|
class: "h-4 w-4",
|
|
3666
3673
|
fill: "none",
|
|
@@ -3677,7 +3684,7 @@ function Cn(t, e) {
|
|
|
3677
3684
|
}, null, -1)
|
|
3678
3685
|
])]);
|
|
3679
3686
|
}
|
|
3680
|
-
const
|
|
3687
|
+
const ou = /* @__PURE__ */ T($n, [["render", Cn]]), Bn = {}, zn = {
|
|
3681
3688
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3682
3689
|
class: "h-4 w-4",
|
|
3683
3690
|
fill: "none",
|
|
@@ -3719,7 +3726,7 @@ function In(t, e) {
|
|
|
3719
3726
|
}, null, -1)
|
|
3720
3727
|
])]);
|
|
3721
3728
|
}
|
|
3722
|
-
const
|
|
3729
|
+
const ru = /* @__PURE__ */ T(Bn, [["render", In]]), Mn = {}, Tn = {
|
|
3723
3730
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3724
3731
|
class: "h-4 w-4",
|
|
3725
3732
|
fill: "none",
|
|
@@ -3736,7 +3743,7 @@ function Dn(t, e) {
|
|
|
3736
3743
|
}, null, -1)
|
|
3737
3744
|
])]);
|
|
3738
3745
|
}
|
|
3739
|
-
const
|
|
3746
|
+
const nu = /* @__PURE__ */ T(Mn, [["render", Dn]]), Vn = {}, Pn = {
|
|
3740
3747
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3741
3748
|
class: "h-4 w-4",
|
|
3742
3749
|
fill: "none",
|
|
@@ -3759,7 +3766,7 @@ function An(t, e) {
|
|
|
3759
3766
|
}, null, -1)
|
|
3760
3767
|
])]);
|
|
3761
3768
|
}
|
|
3762
|
-
const
|
|
3769
|
+
const lu = /* @__PURE__ */ T(Vn, [["render", An]]), On = {}, jn = {
|
|
3763
3770
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3764
3771
|
class: "h-4 w-4",
|
|
3765
3772
|
fill: "none",
|
|
@@ -3776,7 +3783,7 @@ function Ln(t, e) {
|
|
|
3776
3783
|
}, null, -1)
|
|
3777
3784
|
])]);
|
|
3778
3785
|
}
|
|
3779
|
-
const
|
|
3786
|
+
const iu = /* @__PURE__ */ T(On, [["render", Ln]]), Rn = {}, Fn = {
|
|
3780
3787
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3781
3788
|
class: "h-4 w-4",
|
|
3782
3789
|
fill: "none",
|
|
@@ -3793,7 +3800,7 @@ function En(t, e) {
|
|
|
3793
3800
|
}, null, -1)
|
|
3794
3801
|
])]);
|
|
3795
3802
|
}
|
|
3796
|
-
const
|
|
3803
|
+
const du = /* @__PURE__ */ T(Rn, [["render", En]]), Nn = {}, Un = {
|
|
3797
3804
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3798
3805
|
class: "h-4 w-4",
|
|
3799
3806
|
fill: "none",
|
|
@@ -3812,7 +3819,7 @@ function Hn(t, e) {
|
|
|
3812
3819
|
}, null, -1)
|
|
3813
3820
|
])]);
|
|
3814
3821
|
}
|
|
3815
|
-
const
|
|
3822
|
+
const cu = /* @__PURE__ */ T(Nn, [["render", Hn]]), Gn = {}, Wn = {
|
|
3816
3823
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3817
3824
|
class: "h-4 w-4",
|
|
3818
3825
|
fill: "none",
|
|
@@ -3838,7 +3845,7 @@ function qn(t, e) {
|
|
|
3838
3845
|
}, null, -1)
|
|
3839
3846
|
])]);
|
|
3840
3847
|
}
|
|
3841
|
-
const
|
|
3848
|
+
const uu = /* @__PURE__ */ T(Gn, [["render", qn]]), Kn = {}, Xn = {
|
|
3842
3849
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3843
3850
|
class: "h-4 w-4",
|
|
3844
3851
|
fill: "none",
|
|
@@ -3860,7 +3867,7 @@ function Jn(t, e) {
|
|
|
3860
3867
|
}, null, -1)
|
|
3861
3868
|
])]);
|
|
3862
3869
|
}
|
|
3863
|
-
const
|
|
3870
|
+
const pu = /* @__PURE__ */ T(Kn, [["render", Jn]]), Zn = {}, Yn = {
|
|
3864
3871
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3865
3872
|
class: "h-4 w-4",
|
|
3866
3873
|
fill: "none",
|
|
@@ -3879,7 +3886,7 @@ function Qn(t, e) {
|
|
|
3879
3886
|
}, null, -1)
|
|
3880
3887
|
])]);
|
|
3881
3888
|
}
|
|
3882
|
-
const
|
|
3889
|
+
const fu = /* @__PURE__ */ T(Zn, [["render", Qn]]), el = {}, tl = {
|
|
3883
3890
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3884
3891
|
class: "h-4 w-4",
|
|
3885
3892
|
fill: "none",
|
|
@@ -3896,7 +3903,7 @@ function al(t, e) {
|
|
|
3896
3903
|
}, null, -1)
|
|
3897
3904
|
])]);
|
|
3898
3905
|
}
|
|
3899
|
-
const
|
|
3906
|
+
const mu = /* @__PURE__ */ T(el, [["render", al]]), sl = {}, ol = {
|
|
3900
3907
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3901
3908
|
class: "h-4 w-4",
|
|
3902
3909
|
fill: "none",
|
|
@@ -3913,7 +3920,7 @@ function rl(t, e) {
|
|
|
3913
3920
|
}, null, -1)
|
|
3914
3921
|
])]);
|
|
3915
3922
|
}
|
|
3916
|
-
const
|
|
3923
|
+
const gu = /* @__PURE__ */ T(sl, [["render", rl]]), nl = {}, ll = {
|
|
3917
3924
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3918
3925
|
class: "h-4 w-4",
|
|
3919
3926
|
fill: "none",
|
|
@@ -3935,7 +3942,7 @@ function il(t, e) {
|
|
|
3935
3942
|
}, null, -1)
|
|
3936
3943
|
])]);
|
|
3937
3944
|
}
|
|
3938
|
-
const
|
|
3945
|
+
const bu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-center gap-2" }, vu = /* @__PURE__ */ f({
|
|
3939
3946
|
__name: "input-otp",
|
|
3940
3947
|
props: {
|
|
3941
3948
|
class: String,
|
|
@@ -3952,7 +3959,7 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
3952
3959
|
const n = (i) => {
|
|
3953
3960
|
i.length <= a.maxLength && o("update:modelValue", i);
|
|
3954
3961
|
};
|
|
3955
|
-
return
|
|
3962
|
+
return k(() => ({
|
|
3956
3963
|
value: a.modelValue,
|
|
3957
3964
|
onChange: n,
|
|
3958
3965
|
maxLength: a.maxLength,
|
|
@@ -3978,7 +3985,7 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
3978
3985
|
}), cl = { class: "space-y-2" }, ul = { class: "relative" }, pl = {
|
|
3979
3986
|
key: 0,
|
|
3980
3987
|
class: "absolute left-1 top-1/2 transform -translate-y-1/2 pointer-events-none"
|
|
3981
|
-
}, fl = ["id", "type", "disabled", "readonly", "value"],
|
|
3988
|
+
}, fl = ["id", "type", "disabled", "readonly", "value"], hu = {
|
|
3982
3989
|
__name: "input",
|
|
3983
3990
|
props: {
|
|
3984
3991
|
modelValue: {
|
|
@@ -4019,12 +4026,12 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4019
4026
|
setup(t, { emit: e }) {
|
|
4020
4027
|
const a = ut;
|
|
4021
4028
|
return (o, n) => (r(), l("div", cl, [
|
|
4022
|
-
t.label ? (r(), g(
|
|
4029
|
+
t.label ? (r(), g(ye, {
|
|
4023
4030
|
key: 0,
|
|
4024
4031
|
for: t.id || "input"
|
|
4025
4032
|
}, {
|
|
4026
4033
|
default: u(() => [
|
|
4027
|
-
O(
|
|
4034
|
+
O(M(t.label), 1)
|
|
4028
4035
|
]),
|
|
4029
4036
|
_: 1
|
|
4030
4037
|
}, 8, ["for"])) : z("", !0),
|
|
@@ -4034,13 +4041,13 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4034
4041
|
])) : z("", !0),
|
|
4035
4042
|
o.$slots.iconRight || t.validationState === "success" || t.validationState === "error" ? (r(), l("span", {
|
|
4036
4043
|
key: 1,
|
|
4037
|
-
class:
|
|
4044
|
+
class: x([
|
|
4038
4045
|
"absolute right-3 top-1/2 transform -translate-y-1/2 pointer-events-none",
|
|
4039
4046
|
t.validationState === "error" ? "text-red-500" : "",
|
|
4040
4047
|
t.validationState === "success" ? "text-green-500" : ""
|
|
4041
4048
|
])
|
|
4042
4049
|
}, [
|
|
4043
|
-
t.validationState === "success" ? (r(), g(s(
|
|
4050
|
+
t.validationState === "success" ? (r(), g(s(he), {
|
|
4044
4051
|
key: 0,
|
|
4045
4052
|
class: "text-green-500 h-4 w-4"
|
|
4046
4053
|
})) : t.validationState === "error" ? (r(), g(s(Xe), {
|
|
@@ -4069,15 +4076,15 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4069
4076
|
]),
|
|
4070
4077
|
t.validationMessage ? (r(), l("p", {
|
|
4071
4078
|
key: 1,
|
|
4072
|
-
class:
|
|
4073
|
-
},
|
|
4079
|
+
class: x(["text-sm", t.validationState === "error" ? "text-red-600" : "", t.validationState === "success" ? "text-green-600" : ""])
|
|
4080
|
+
}, M(t.validationMessage), 3)) : z("", !0)
|
|
4074
4081
|
]));
|
|
4075
4082
|
}
|
|
4076
4083
|
}, ml = {
|
|
4077
4084
|
class: "flex items-center justify-center gap-2",
|
|
4078
4085
|
role: "navigation",
|
|
4079
4086
|
"aria-label": "Pagination"
|
|
4080
|
-
}, gl = ["disabled"], bl = { class: "px-2 text-sm" }, vl = ["disabled"],
|
|
4087
|
+
}, gl = ["disabled"], bl = { class: "px-2 text-sm" }, vl = ["disabled"], _u = {
|
|
4081
4088
|
__name: "pagination",
|
|
4082
4089
|
props: {
|
|
4083
4090
|
page: {
|
|
@@ -4095,7 +4102,7 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4095
4102
|
},
|
|
4096
4103
|
emits: ["update:page"],
|
|
4097
4104
|
setup(t, { emit: e }) {
|
|
4098
|
-
const a = t, o =
|
|
4105
|
+
const a = t, o = k(() => Math.max(1, Math.ceil(a.total / a.perPage)));
|
|
4099
4106
|
return (n, i) => (r(), l("nav", ml, [
|
|
4100
4107
|
c("button", {
|
|
4101
4108
|
class: "h-8 w-8 flex items-center justify-center rounded border border-input bg-background px-0 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground disabled:opacity-50",
|
|
@@ -4103,7 +4110,7 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4103
4110
|
onClick: i[0] || (i[0] = (p) => n.$emit("update:page", t.page - 1)),
|
|
4104
4111
|
"aria-label": "Previous page"
|
|
4105
4112
|
}, " < ", 8, gl),
|
|
4106
|
-
c("span", bl,
|
|
4113
|
+
c("span", bl, M(t.page) + " / " + M(o.value), 1),
|
|
4107
4114
|
c("button", {
|
|
4108
4115
|
class: "h-8 w-8 flex items-center justify-center rounded border border-input bg-background px-0 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground disabled:opacity-50",
|
|
4109
4116
|
disabled: t.page >= o.value,
|
|
@@ -4131,7 +4138,7 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4131
4138
|
}, wl = {
|
|
4132
4139
|
key: 1,
|
|
4133
4140
|
class: "space-y-3 mb-2"
|
|
4134
|
-
}, kl = ["aria-valuenow"],
|
|
4141
|
+
}, kl = ["aria-valuenow"], yu = {
|
|
4135
4142
|
__name: "progress",
|
|
4136
4143
|
props: {
|
|
4137
4144
|
value: {
|
|
@@ -4142,7 +4149,7 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4142
4149
|
steps: Array
|
|
4143
4150
|
},
|
|
4144
4151
|
setup(t) {
|
|
4145
|
-
const e = t, a = U(), o =
|
|
4152
|
+
const e = t, a = U(), o = k(() => Array.isArray(e.steps) && e.steps.length > 0);
|
|
4146
4153
|
function n(m) {
|
|
4147
4154
|
return m === "complete" ? "bg-green-500" : m === "in-progress" ? "bg-blue-500" : "bg-muted";
|
|
4148
4155
|
}
|
|
@@ -4153,36 +4160,36 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4153
4160
|
return m === "complete" ? "Complete" : m === "in-progress" ? "In Progress" : "Pending";
|
|
4154
4161
|
}
|
|
4155
4162
|
return (m, $) => (r(), l("div", {
|
|
4156
|
-
class:
|
|
4163
|
+
class: x(s(I)("space-y-2", s(a).class))
|
|
4157
4164
|
}, [
|
|
4158
4165
|
t.label ? (r(), l("div", _l, [
|
|
4159
|
-
c("span", yl,
|
|
4160
|
-
typeof t.value == "number" && !o.value ? (r(), l("span", xl,
|
|
4166
|
+
c("span", yl, M(t.label), 1),
|
|
4167
|
+
typeof t.value == "number" && !o.value ? (r(), l("span", xl, M(t.value) + "%", 1)) : z("", !0)
|
|
4161
4168
|
])) : z("", !0),
|
|
4162
4169
|
o.value ? (r(), l("div", wl, [
|
|
4163
|
-
(r(!0), l(F, null, G(t.steps, (
|
|
4164
|
-
key:
|
|
4170
|
+
(r(!0), l(F, null, G(t.steps, (v, _) => (r(), l("div", {
|
|
4171
|
+
key: _,
|
|
4165
4172
|
class: "flex items-center space-x-3"
|
|
4166
4173
|
}, [
|
|
4167
4174
|
c("div", {
|
|
4168
|
-
class:
|
|
4175
|
+
class: x([n(v.status), "w-4 h-4 rounded-full flex items-center justify-center"])
|
|
4169
4176
|
}, [
|
|
4170
|
-
|
|
4177
|
+
v.status === "complete" ? (r(), g(s(he), {
|
|
4171
4178
|
key: 0,
|
|
4172
4179
|
class: "w-3 h-3 text-white"
|
|
4173
|
-
})) :
|
|
4180
|
+
})) : v.status === "in-progress" ? (r(), g(s(Ut), {
|
|
4174
4181
|
key: 1,
|
|
4175
4182
|
class: "w-3 h-3 text-white animate-spin"
|
|
4176
4183
|
})) : z("", !0)
|
|
4177
4184
|
], 2),
|
|
4178
4185
|
c("span", {
|
|
4179
|
-
class:
|
|
4180
|
-
},
|
|
4181
|
-
|
|
4182
|
-
variant: i(
|
|
4186
|
+
class: x(["text-sm", v.status === "pending" ? "text-muted-foreground" : ""])
|
|
4187
|
+
}, M(v.label), 3),
|
|
4188
|
+
h(oe, {
|
|
4189
|
+
variant: i(v.status)
|
|
4183
4190
|
}, {
|
|
4184
4191
|
default: u(() => [
|
|
4185
|
-
O(
|
|
4192
|
+
O(M(p(v.status)), 1)
|
|
4186
4193
|
]),
|
|
4187
4194
|
_: 2
|
|
4188
4195
|
}, 1032, ["variant"])
|
|
@@ -4190,7 +4197,7 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4190
4197
|
])) : z("", !0),
|
|
4191
4198
|
o.value ? z("", !0) : (r(), l("div", {
|
|
4192
4199
|
key: 2,
|
|
4193
|
-
class:
|
|
4200
|
+
class: x(s(I)("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full", s(a).class))
|
|
4194
4201
|
}, [
|
|
4195
4202
|
c("div", {
|
|
4196
4203
|
class: "bg-primary h-full w-full flex-1 transition-all",
|
|
@@ -4252,12 +4259,12 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4252
4259
|
)
|
|
4253
4260
|
}), {
|
|
4254
4261
|
default: u(() => [
|
|
4255
|
-
|
|
4262
|
+
h(s(Ya), {
|
|
4256
4263
|
"data-slot": "radio-group-indicator",
|
|
4257
4264
|
class: "relative flex items-center justify-center"
|
|
4258
4265
|
}, {
|
|
4259
4266
|
default: u(() => [
|
|
4260
|
-
|
|
4267
|
+
h(s(Ht), { class: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
|
|
4261
4268
|
]),
|
|
4262
4269
|
_: 1
|
|
4263
4270
|
})
|
|
@@ -4265,7 +4272,7 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4265
4272
|
_: 1
|
|
4266
4273
|
}, 16, ["class"]));
|
|
4267
4274
|
}
|
|
4268
|
-
}),
|
|
4275
|
+
}), xu = {
|
|
4269
4276
|
__name: "radio-group-item",
|
|
4270
4277
|
props: {
|
|
4271
4278
|
modelValue: {
|
|
@@ -4291,7 +4298,7 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4291
4298
|
"data-slot": "radio-group-item",
|
|
4292
4299
|
value: t.value,
|
|
4293
4300
|
disabled: t.disabled,
|
|
4294
|
-
class: s(
|
|
4301
|
+
class: s(I)("border-neutral-300 dark:border-neutral-600 text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive bg-background dark:bg-input aspect-square size-4 shrink-0 rounded-full border-2 shadow-xs transition-[color,box-shadow,border-color] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", s(a).class)
|
|
4295
4302
|
}, s(a), {
|
|
4296
4303
|
modelValue: o.value,
|
|
4297
4304
|
"onUpdate:modelValue": i[0] || (i[0] = (p) => o.value = p)
|
|
@@ -4319,7 +4326,7 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4319
4326
|
_: 3
|
|
4320
4327
|
}, 16, ["value", "disabled", "class", "modelValue"]));
|
|
4321
4328
|
}
|
|
4322
|
-
},
|
|
4329
|
+
}, wu = {
|
|
4323
4330
|
__name: "radio-group",
|
|
4324
4331
|
props: {
|
|
4325
4332
|
ariaLabelledby: {
|
|
@@ -4332,7 +4339,7 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4332
4339
|
return (a, o) => (r(), g(s($l), b({
|
|
4333
4340
|
"data-slot": "radio-group",
|
|
4334
4341
|
"aria-labelledby": t.ariaLabelledby,
|
|
4335
|
-
class: s(
|
|
4342
|
+
class: s(I)("grid gap-3", s(e).class)
|
|
4336
4343
|
}, s(e)), {
|
|
4337
4344
|
default: u(() => [
|
|
4338
4345
|
d(a.$slots, "default")
|
|
@@ -4441,7 +4448,7 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4441
4448
|
_: 3
|
|
4442
4449
|
}, 16, ["class"]));
|
|
4443
4450
|
}
|
|
4444
|
-
}),
|
|
4451
|
+
}), ku = /* @__PURE__ */ f({
|
|
4445
4452
|
__name: "tab-list",
|
|
4446
4453
|
props: {
|
|
4447
4454
|
variant: {
|
|
@@ -4453,7 +4460,7 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4453
4460
|
const e = t, a = U();
|
|
4454
4461
|
return (o, n) => (r(), g(s(bt), b({
|
|
4455
4462
|
"data-slot": "tabs-list",
|
|
4456
|
-
class: s(
|
|
4463
|
+
class: s(I)(
|
|
4457
4464
|
"inline-flex items-center justify-start border-b border-border bg-transparent",
|
|
4458
4465
|
"[&:has(.corner-cut-trigger)]:border-primary",
|
|
4459
4466
|
"[&:has(.corner-cut-trigger)]:gap-0 [&:has(.corner-cut-trigger)]:-space-x-[1px]",
|
|
@@ -4469,7 +4476,7 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4469
4476
|
_: 3
|
|
4470
4477
|
}, 16, ["class"]));
|
|
4471
4478
|
}
|
|
4472
|
-
}),
|
|
4479
|
+
}), $u = /* @__PURE__ */ f({
|
|
4473
4480
|
__name: "tab-trigger",
|
|
4474
4481
|
props: {
|
|
4475
4482
|
variant: {
|
|
@@ -4481,7 +4488,7 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4481
4488
|
const e = t;
|
|
4482
4489
|
return (a, o) => (r(), g(s(zl), b({
|
|
4483
4490
|
"data-slot": "tabs-trigger",
|
|
4484
|
-
class: s(
|
|
4491
|
+
class: s(I)(
|
|
4485
4492
|
"relative inline-flex items-center justify-center gap-2 px-4 py-2 transition-all duration-200 ease-out",
|
|
4486
4493
|
"min-w-0 max-w-48 w-auto shrink-0",
|
|
4487
4494
|
"text-muted-foreground hover:text-foreground",
|
|
@@ -4501,7 +4508,7 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4501
4508
|
_: 3
|
|
4502
4509
|
}, 16, ["class"]));
|
|
4503
4510
|
}
|
|
4504
|
-
}),
|
|
4511
|
+
}), Su = /* @__PURE__ */ f({
|
|
4505
4512
|
__name: "tab-content",
|
|
4506
4513
|
props: {
|
|
4507
4514
|
variant: {
|
|
@@ -4513,7 +4520,7 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4513
4520
|
const e = t;
|
|
4514
4521
|
return (a, o) => (r(), g(s(Bl), b({
|
|
4515
4522
|
"data-slot": "tabs-content",
|
|
4516
|
-
class: s(
|
|
4523
|
+
class: s(I)(
|
|
4517
4524
|
"mt-4 outline-none",
|
|
4518
4525
|
"focus-visible:ring-2 focus-visible:ring-primary/20 focus-visible:ring-offset-2",
|
|
4519
4526
|
e.variant === "card" && "p-4 border rounded-lg",
|
|
@@ -4538,29 +4545,29 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4538
4545
|
setup(t) {
|
|
4539
4546
|
const e = t, a = U(), o = V(null), n = V(!1), i = V(!1), p = V(!1);
|
|
4540
4547
|
function m() {
|
|
4541
|
-
const
|
|
4542
|
-
if (!
|
|
4543
|
-
const { scrollLeft: S, scrollWidth: B, clientWidth: P } =
|
|
4548
|
+
const w = o.value;
|
|
4549
|
+
if (!w) return;
|
|
4550
|
+
const { scrollLeft: S, scrollWidth: B, clientWidth: P } = w;
|
|
4544
4551
|
n.value = S > 0, i.value = S < B - P - 1, p.value = B > P;
|
|
4545
4552
|
}
|
|
4546
4553
|
function $() {
|
|
4547
|
-
const
|
|
4548
|
-
|
|
4554
|
+
const w = o.value;
|
|
4555
|
+
w && w.scrollBy({ left: -200, behavior: "smooth" });
|
|
4549
4556
|
}
|
|
4550
|
-
function
|
|
4551
|
-
const
|
|
4552
|
-
|
|
4557
|
+
function v() {
|
|
4558
|
+
const w = o.value;
|
|
4559
|
+
w && w.scrollBy({ left: 200, behavior: "smooth" });
|
|
4553
4560
|
}
|
|
4554
|
-
let
|
|
4561
|
+
let _ = null, y = null;
|
|
4555
4562
|
return re(() => {
|
|
4556
4563
|
Ke(() => {
|
|
4557
|
-
const
|
|
4558
|
-
|
|
4564
|
+
const w = o.value;
|
|
4565
|
+
w && (_ = () => m(), y = () => m(), w.addEventListener("scroll", _), window.addEventListener("resize", y), m());
|
|
4559
4566
|
});
|
|
4560
4567
|
}), Vt(() => {
|
|
4561
|
-
const
|
|
4562
|
-
|
|
4563
|
-
}), (
|
|
4568
|
+
const w = o.value;
|
|
4569
|
+
w && _ && w.removeEventListener("scroll", _), y && window.removeEventListener("resize", y);
|
|
4570
|
+
}), (w, S) => (r(), l("div", Il, [
|
|
4564
4571
|
p.value && n.value ? (r(), l("button", {
|
|
4565
4572
|
key: 0,
|
|
4566
4573
|
onClick: $,
|
|
@@ -4587,7 +4594,7 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4587
4594
|
ref: o,
|
|
4588
4595
|
class: "w-full overflow-x-auto scrollbar-hide"
|
|
4589
4596
|
}, [
|
|
4590
|
-
|
|
4597
|
+
h(s(bt), b(s(a), {
|
|
4591
4598
|
class: [
|
|
4592
4599
|
"inline-flex items-center justify-start border-b border-border bg-transparent w-max",
|
|
4593
4600
|
"[&:has(.corner-cut-trigger)]:border-primary",
|
|
@@ -4599,14 +4606,14 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4599
4606
|
]
|
|
4600
4607
|
}), {
|
|
4601
4608
|
default: u(() => [
|
|
4602
|
-
d(
|
|
4609
|
+
d(w.$slots, "default", {}, void 0, !0)
|
|
4603
4610
|
]),
|
|
4604
4611
|
_: 3
|
|
4605
4612
|
}, 16, ["class"])
|
|
4606
4613
|
], 512),
|
|
4607
4614
|
p.value && i.value ? (r(), l("button", {
|
|
4608
4615
|
key: 1,
|
|
4609
|
-
onClick:
|
|
4616
|
+
onClick: v,
|
|
4610
4617
|
class: "absolute right-0 top-0 z-10 h-full w-10 flex items-center justify-center bg-gradient-to-l from-background via-background/95 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-200 hover:from-background hover:via-background focus:outline-none focus:opacity-100",
|
|
4611
4618
|
"aria-label": "Scroll tabs right",
|
|
4612
4619
|
type: "button"
|
|
@@ -4627,7 +4634,7 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4627
4634
|
])])) : z("", !0)
|
|
4628
4635
|
]));
|
|
4629
4636
|
}
|
|
4630
|
-
}),
|
|
4637
|
+
}), Cu = /* @__PURE__ */ T(Ml, [["__scopeId", "data-v-f29cb3b8"]]);
|
|
4631
4638
|
const Fe = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Tl = (t) => t.replace(
|
|
4632
4639
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
4633
4640
|
(e, a, o) => o ? o.toUpperCase() : a.toLowerCase()
|
|
@@ -4656,7 +4663,7 @@ const Pl = ({
|
|
|
4656
4663
|
size: p = ce.width,
|
|
4657
4664
|
color: m = ce.stroke,
|
|
4658
4665
|
...$
|
|
4659
|
-
}, { slots:
|
|
4666
|
+
}, { slots: v }) => se(
|
|
4660
4667
|
"svg",
|
|
4661
4668
|
{
|
|
4662
4669
|
...ce,
|
|
@@ -4671,7 +4678,7 @@ const Pl = ({
|
|
|
4671
4678
|
...t ? [`lucide-${Fe(Dl(t))}-icon`, `lucide-${Fe(t)}`] : ["lucide-icon"]
|
|
4672
4679
|
)
|
|
4673
4680
|
},
|
|
4674
|
-
[...e.map((
|
|
4681
|
+
[...e.map((_) => se(..._)), ...v.default ? [v.default()] : []]
|
|
4675
4682
|
);
|
|
4676
4683
|
const Al = (t, e) => (a, { slots: o, attrs: n }) => se(
|
|
4677
4684
|
Pl,
|
|
@@ -4688,7 +4695,7 @@ const Ol = Al("chevron-down", [
|
|
|
4688
4695
|
]), jl = { class: "space-y-4" }, Ll = { class: "w-2/3 flex gap-1 flex-1" }, Rl = {
|
|
4689
4696
|
key: 0,
|
|
4690
4697
|
class: "text-muted-foreground"
|
|
4691
|
-
}, Fl = { class: "p-1" }, El = { class: "p-3 pb-2" }, Nl = { class: "text-sm font-medium" }, Ul = { class: "max-h-[200px] overflow-y-auto" }, Hl = ["onClick"], Gl = { class: "flex-1 font-medium leading-none" },
|
|
4698
|
+
}, Fl = { class: "p-1" }, El = { class: "p-3 pb-2" }, Nl = { class: "text-sm font-medium" }, Ul = { class: "max-h-[200px] overflow-y-auto" }, Hl = ["onClick"], Gl = { class: "flex-1 font-medium leading-none" }, Wl = {
|
|
4692
4699
|
__name: "select-multiple",
|
|
4693
4700
|
props: {
|
|
4694
4701
|
modelValue: {
|
|
@@ -4714,30 +4721,30 @@ const Ol = Al("chevron-down", [
|
|
|
4714
4721
|
},
|
|
4715
4722
|
emits: ["update:modelValue"],
|
|
4716
4723
|
setup(t, { emit: e }) {
|
|
4717
|
-
const a = t, o = e, n = U(), i = V(!1), p =
|
|
4718
|
-
function m(
|
|
4719
|
-
return Array.isArray(a.modelValue) && a.modelValue.includes(
|
|
4724
|
+
const a = t, o = e, n = U(), i = V(!1), p = k(() => a.class || n.class || "");
|
|
4725
|
+
function m(_) {
|
|
4726
|
+
return Array.isArray(a.modelValue) && a.modelValue.includes(_);
|
|
4720
4727
|
}
|
|
4721
|
-
function $(
|
|
4722
|
-
const y = a.options.find((
|
|
4723
|
-
return y ? y.label :
|
|
4728
|
+
function $(_) {
|
|
4729
|
+
const y = a.options.find((w) => w.value === _);
|
|
4730
|
+
return y ? y.label : _;
|
|
4724
4731
|
}
|
|
4725
|
-
function
|
|
4732
|
+
function v(_, y) {
|
|
4726
4733
|
let S = [...Array.isArray(a.modelValue) ? a.modelValue : []];
|
|
4727
|
-
y && !S.includes(
|
|
4734
|
+
y && !S.includes(_) ? S.push(_) : y || (S = S.filter((B) => B !== _)), o("update:modelValue", S);
|
|
4728
4735
|
}
|
|
4729
|
-
return (
|
|
4730
|
-
|
|
4736
|
+
return (_, y) => (r(), l("div", jl, [
|
|
4737
|
+
h(hl, {
|
|
4731
4738
|
open: i.value,
|
|
4732
|
-
"onUpdate:open": y[0] || (y[0] = (
|
|
4739
|
+
"onUpdate:open": y[0] || (y[0] = (w) => i.value = w),
|
|
4733
4740
|
disabled: t.disabled
|
|
4734
4741
|
}, {
|
|
4735
4742
|
default: u(() => [
|
|
4736
|
-
|
|
4743
|
+
h(oo, { as: "template" }, {
|
|
4737
4744
|
default: u(() => [
|
|
4738
|
-
|
|
4745
|
+
h(ge, {
|
|
4739
4746
|
variant: "secondary",
|
|
4740
|
-
class:
|
|
4747
|
+
class: x([
|
|
4741
4748
|
"justify-between border-input bg-input-background hover:bg-select-hover focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
4742
4749
|
t.size === "sm" ? "h-8" : "h-9",
|
|
4743
4750
|
p.value
|
|
@@ -4748,67 +4755,67 @@ const Ol = Al("chevron-down", [
|
|
|
4748
4755
|
}, {
|
|
4749
4756
|
default: u(() => [
|
|
4750
4757
|
c("div", Ll, [
|
|
4751
|
-
t.modelValue.length === 0 ? (r(), l("span", Rl,
|
|
4752
|
-
key:
|
|
4758
|
+
t.modelValue.length === 0 ? (r(), l("span", Rl, M(t.placeholder), 1)) : t.modelValue.length <= t.maxDisplay ? (r(!0), l(F, { key: 1 }, G(t.modelValue, (w) => (r(), g(oe, {
|
|
4759
|
+
key: w,
|
|
4753
4760
|
variant: "soft-neutral",
|
|
4754
4761
|
class: "text-xs shrink-0"
|
|
4755
4762
|
}, {
|
|
4756
4763
|
default: u(() => [
|
|
4757
|
-
O(
|
|
4764
|
+
O(M($(w)), 1)
|
|
4758
4765
|
]),
|
|
4759
4766
|
_: 2
|
|
4760
4767
|
}, 1024))), 128)) : (r(), l(F, { key: 2 }, [
|
|
4761
|
-
|
|
4768
|
+
h(oe, {
|
|
4762
4769
|
variant: "soft-neutral",
|
|
4763
4770
|
class: "text-xs shrink-0"
|
|
4764
4771
|
}, {
|
|
4765
4772
|
default: u(() => [
|
|
4766
|
-
O(
|
|
4773
|
+
O(M($(t.modelValue[0])), 1)
|
|
4767
4774
|
]),
|
|
4768
4775
|
_: 1
|
|
4769
4776
|
}),
|
|
4770
|
-
|
|
4777
|
+
h(oe, {
|
|
4771
4778
|
variant: "soft-neutral",
|
|
4772
4779
|
class: "text-xs shrink-0"
|
|
4773
4780
|
}, {
|
|
4774
4781
|
default: u(() => [
|
|
4775
|
-
O(" +" +
|
|
4782
|
+
O(" +" + M(t.modelValue.length - 1) + " more ", 1)
|
|
4776
4783
|
]),
|
|
4777
4784
|
_: 1
|
|
4778
4785
|
})
|
|
4779
4786
|
], 64))
|
|
4780
4787
|
]),
|
|
4781
|
-
|
|
4788
|
+
h(s(Ol), { class: "h-4 w-4 shrink-0 opacity-50" })
|
|
4782
4789
|
]),
|
|
4783
4790
|
_: 1
|
|
4784
4791
|
}, 8, ["class", "aria-expanded", "disabled"])
|
|
4785
4792
|
]),
|
|
4786
4793
|
_: 1
|
|
4787
4794
|
}),
|
|
4788
|
-
|
|
4789
|
-
class:
|
|
4795
|
+
h(to, {
|
|
4796
|
+
class: x(["p-0", p.value]),
|
|
4790
4797
|
align: "start"
|
|
4791
4798
|
}, {
|
|
4792
4799
|
default: u(() => [
|
|
4793
4800
|
c("div", Fl, [
|
|
4794
4801
|
c("div", El, [
|
|
4795
|
-
c("div", Nl,
|
|
4802
|
+
c("div", Nl, M(t.title), 1)
|
|
4796
4803
|
]),
|
|
4797
4804
|
c("div", Ul, [
|
|
4798
|
-
(r(!0), l(F, null, G(t.options, (
|
|
4799
|
-
key:
|
|
4800
|
-
class:
|
|
4805
|
+
(r(!0), l(F, null, G(t.options, (w) => (r(), l("div", {
|
|
4806
|
+
key: w.value,
|
|
4807
|
+
class: x([
|
|
4801
4808
|
"relative flex w-full cursor-pointer items-center gap-2 rounded-sm py-1.5 pr-2 pl-2 text-sm outline-hidden select-none transition-colors",
|
|
4802
|
-
|
|
4809
|
+
w.disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-accent hover:text-accent-foreground"
|
|
4803
4810
|
]),
|
|
4804
|
-
onClick: (S) => !
|
|
4811
|
+
onClick: (S) => !w.disabled && v(w.value, !m(w.value))
|
|
4805
4812
|
}, [
|
|
4806
|
-
|
|
4807
|
-
"model-value": m(
|
|
4808
|
-
disabled:
|
|
4813
|
+
h(cr, {
|
|
4814
|
+
"model-value": m(w.value),
|
|
4815
|
+
disabled: w.disabled,
|
|
4809
4816
|
class: "pointer-events-none"
|
|
4810
4817
|
}, null, 8, ["model-value", "disabled"]),
|
|
4811
|
-
c("span", Gl,
|
|
4818
|
+
c("span", Gl, M(w.label), 1)
|
|
4812
4819
|
], 10, Hl))), 128))
|
|
4813
4820
|
])
|
|
4814
4821
|
])
|
|
@@ -4828,60 +4835,68 @@ const Ol = Al("chevron-down", [
|
|
|
4828
4835
|
multiple: Boolean,
|
|
4829
4836
|
placeholder: String,
|
|
4830
4837
|
disabled: Boolean,
|
|
4831
|
-
customClass: String
|
|
4838
|
+
customClass: String,
|
|
4839
|
+
contentClass: String,
|
|
4840
|
+
title: String,
|
|
4841
|
+
maxDisplay: { type: Number, default: 3 },
|
|
4842
|
+
size: { type: String, default: "default" }
|
|
4832
4843
|
},
|
|
4833
4844
|
emits: ["update:modelValue"],
|
|
4834
4845
|
setup(t, { emit: e }) {
|
|
4835
|
-
const a = t, o = e, n =
|
|
4846
|
+
const a = t, o = e, n = k({
|
|
4836
4847
|
get: () => a.modelValue,
|
|
4837
4848
|
set: (m) => o("update:modelValue", m)
|
|
4838
|
-
}), i = U(), p =
|
|
4839
|
-
return (m, $) => {
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
])
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4849
|
+
}), i = U(), p = k(() => I(a.customClass, i.class));
|
|
4850
|
+
return (m, $) => t.multiple ? (r(), g(Wl, b({ key: 0 }, {
|
|
4851
|
+
modelValue: t.modelValue,
|
|
4852
|
+
options: t.options,
|
|
4853
|
+
placeholder: t.placeholder,
|
|
4854
|
+
title: t.title,
|
|
4855
|
+
maxDisplay: t.maxDisplay,
|
|
4856
|
+
disabled: t.disabled,
|
|
4857
|
+
size: t.size,
|
|
4858
|
+
customClass: p.value
|
|
4859
|
+
}, {
|
|
4860
|
+
"onUpdate:modelValue": $[0] || ($[0] = (v) => m.$emit("update:modelValue", v))
|
|
4861
|
+
}), null, 16)) : (r(), g(s(ro), {
|
|
4862
|
+
key: 1,
|
|
4863
|
+
modelValue: n.value,
|
|
4864
|
+
"onUpdate:modelValue": $[1] || ($[1] = (v) => n.value = v),
|
|
4865
|
+
disabled: t.disabled,
|
|
4866
|
+
class: x(p.value)
|
|
4867
|
+
}, {
|
|
4868
|
+
default: u(() => [
|
|
4869
|
+
h(s(dt), { class: "w-full" }, {
|
|
4870
|
+
default: u(() => [
|
|
4871
|
+
d(m.$slots, "trigger", {}, () => [
|
|
4872
|
+
h(s(ct), { placeholder: t.placeholder }, null, 8, ["placeholder"])
|
|
4873
|
+
])
|
|
4874
|
+
]),
|
|
4875
|
+
_: 3
|
|
4876
|
+
}),
|
|
4877
|
+
h(s(lt), {
|
|
4878
|
+
class: x(t.contentClass)
|
|
4879
|
+
}, {
|
|
4880
|
+
default: u(() => [
|
|
4881
|
+
d(m.$slots, "content", {}, () => [
|
|
4867
4882
|
(r(!0), l(F, null, G(t.options, (v) => (r(), g(s(it), {
|
|
4868
4883
|
key: String(v.value),
|
|
4869
4884
|
value: String(v.value)
|
|
4870
4885
|
}, {
|
|
4871
4886
|
default: u(() => [
|
|
4872
|
-
O(
|
|
4887
|
+
O(M(v.label), 1)
|
|
4873
4888
|
]),
|
|
4874
4889
|
_: 2
|
|
4875
4890
|
}, 1032, ["value"]))), 128))
|
|
4876
|
-
])
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
])
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
};
|
|
4891
|
+
])
|
|
4892
|
+
]),
|
|
4893
|
+
_: 3
|
|
4894
|
+
}, 8, ["class"])
|
|
4895
|
+
]),
|
|
4896
|
+
_: 3
|
|
4897
|
+
}, 8, ["modelValue", "disabled", "class"]));
|
|
4883
4898
|
}
|
|
4884
|
-
}),
|
|
4899
|
+
}), ql = /* @__PURE__ */ f({
|
|
4885
4900
|
__name: "Separator",
|
|
4886
4901
|
props: {
|
|
4887
4902
|
orientation: { default: "horizontal" },
|
|
@@ -4904,10 +4919,10 @@ const Ol = Al("chevron-down", [
|
|
|
4904
4919
|
_: 3
|
|
4905
4920
|
}, 16, ["class"]));
|
|
4906
4921
|
}
|
|
4907
|
-
}),
|
|
4922
|
+
}), Kl = {
|
|
4908
4923
|
key: 0,
|
|
4909
4924
|
class: "absolute inset-0 flex items-center"
|
|
4910
|
-
},
|
|
4925
|
+
}, Xl = { class: "bg-background px-2 text-xs uppercase text-muted-foreground" }, zu = {
|
|
4911
4926
|
__name: "separator",
|
|
4912
4927
|
props: {
|
|
4913
4928
|
orientation: {
|
|
@@ -4931,8 +4946,8 @@ const Ol = Al("chevron-down", [
|
|
|
4931
4946
|
}
|
|
4932
4947
|
},
|
|
4933
4948
|
setup(t) {
|
|
4934
|
-
const e = t, a = U(), o =
|
|
4935
|
-
return (n, i) => (r(), g(s(
|
|
4949
|
+
const e = t, a = U(), o = k(() => e.align === "start" ? "justify-start" : e.align === "end" ? "justify-end" : "justify-center");
|
|
4950
|
+
return (n, i) => (r(), g(s(ql), b({
|
|
4936
4951
|
role: t.role,
|
|
4937
4952
|
"aria-orientation": t.orientation,
|
|
4938
4953
|
"aria-hidden": t.decorative,
|
|
@@ -4945,22 +4960,22 @@ const Ol = Al("chevron-down", [
|
|
|
4945
4960
|
]
|
|
4946
4961
|
}, s(a)), {
|
|
4947
4962
|
default: u(() => [
|
|
4948
|
-
t.text ? (r(), l("div",
|
|
4963
|
+
t.text ? (r(), l("div", Kl, [
|
|
4949
4964
|
c("div", {
|
|
4950
|
-
class:
|
|
4965
|
+
class: x(["relative flex w-full", o.value])
|
|
4951
4966
|
}, [
|
|
4952
|
-
c("span",
|
|
4967
|
+
c("span", Xl, M(t.text), 1)
|
|
4953
4968
|
], 2)
|
|
4954
4969
|
])) : z("", !0)
|
|
4955
4970
|
]),
|
|
4956
4971
|
_: 1
|
|
4957
4972
|
}, 16, ["role", "aria-orientation", "aria-hidden", "orientation", "decorative", "class"]));
|
|
4958
4973
|
}
|
|
4959
|
-
},
|
|
4974
|
+
}, Jl = {
|
|
4960
4975
|
key: 0,
|
|
4961
4976
|
class: "fixed inset-0 z-50 bg-black/50",
|
|
4962
4977
|
"data-slot": "sheet-overlay"
|
|
4963
|
-
},
|
|
4978
|
+
}, Zl = /* @__PURE__ */ f({
|
|
4964
4979
|
__name: "sheet",
|
|
4965
4980
|
props: {
|
|
4966
4981
|
open: Boolean,
|
|
@@ -4970,18 +4985,18 @@ const Ol = Al("chevron-down", [
|
|
|
4970
4985
|
emits: ["update:open"],
|
|
4971
4986
|
setup(t) {
|
|
4972
4987
|
return (e, a) => (r(), g(Pt, { to: "body" }, [
|
|
4973
|
-
|
|
4988
|
+
h(Oe, { name: "fade" }, {
|
|
4974
4989
|
default: u(() => [
|
|
4975
|
-
t.open ? (r(), l("div",
|
|
4990
|
+
t.open ? (r(), l("div", Jl)) : z("", !0)
|
|
4976
4991
|
]),
|
|
4977
4992
|
_: 1
|
|
4978
4993
|
}),
|
|
4979
|
-
|
|
4994
|
+
h(Oe, { name: "slide" }, {
|
|
4980
4995
|
default: u(() => [
|
|
4981
4996
|
t.open ? (r(), l("div", {
|
|
4982
4997
|
key: 0,
|
|
4983
4998
|
"data-slot": "sheet-content",
|
|
4984
|
-
class:
|
|
4999
|
+
class: x([
|
|
4985
5000
|
"bg-background fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out",
|
|
4986
5001
|
t.side === "right" && "inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
|
|
4987
5002
|
t.side === "left" && "inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
|
|
@@ -5016,11 +5031,11 @@ const Ol = Al("chevron-down", [
|
|
|
5016
5031
|
})
|
|
5017
5032
|
]));
|
|
5018
5033
|
}
|
|
5019
|
-
}),
|
|
5034
|
+
}), Yl = /* @__PURE__ */ T(Zl, [["__scopeId", "data-v-e170e221"]]), Ql = { class: "flex h-full w-full flex-col" }, ei = ["data-state", "data-collapsible", "data-variant", "data-side"], ti = {
|
|
5020
5035
|
"data-sidebar": "sidebar",
|
|
5021
5036
|
"data-slot": "sidebar-inner",
|
|
5022
5037
|
class: "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"
|
|
5023
|
-
},
|
|
5038
|
+
}, ai = "260px", we = /* @__PURE__ */ f({
|
|
5024
5039
|
__name: "BaseSidebar",
|
|
5025
5040
|
props: {
|
|
5026
5041
|
side: { type: String, default: "left" },
|
|
@@ -5029,37 +5044,37 @@ const Ol = Al("chevron-down", [
|
|
|
5029
5044
|
class: { type: String, default: "" }
|
|
5030
5045
|
},
|
|
5031
5046
|
setup(t) {
|
|
5032
|
-
const e = t, a =
|
|
5047
|
+
const e = t, a = be("sidebarContext");
|
|
5033
5048
|
return (o, n) => e.collapsible === "none" ? (r(), l("div", b({
|
|
5034
5049
|
key: 0,
|
|
5035
5050
|
"data-slot": "sidebar",
|
|
5036
5051
|
class: s(C)("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", e.class)
|
|
5037
5052
|
}, o.$attrs), [
|
|
5038
5053
|
d(o.$slots, "default")
|
|
5039
|
-
], 16)) : s(a).isMobile ? (r(), g(
|
|
5054
|
+
], 16)) : s(a).isMobile ? (r(), g(Yl, b({
|
|
5040
5055
|
key: 1,
|
|
5041
5056
|
open: s(a).openMobile,
|
|
5042
5057
|
"onUpdate:open": s(a).setOpenMobile
|
|
5043
5058
|
}, o.$attrs), {
|
|
5044
5059
|
default: u(() => [
|
|
5045
|
-
|
|
5060
|
+
h(co, {
|
|
5046
5061
|
"data-sidebar": "sidebar",
|
|
5047
5062
|
"data-slot": "sidebar",
|
|
5048
5063
|
"data-mobile": "true",
|
|
5049
5064
|
class: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
|
|
5050
|
-
style: H({ "--sidebar-width":
|
|
5065
|
+
style: H({ "--sidebar-width": ai }),
|
|
5051
5066
|
side: e.side
|
|
5052
5067
|
}, {
|
|
5053
5068
|
default: u(() => [
|
|
5054
|
-
|
|
5069
|
+
h(po, { class: "sr-only" }, {
|
|
5055
5070
|
default: u(() => [
|
|
5056
|
-
|
|
5071
|
+
h(fo, null, {
|
|
5057
5072
|
default: u(() => [...n[0] || (n[0] = [
|
|
5058
5073
|
O("Sidebar", -1)
|
|
5059
5074
|
])]),
|
|
5060
5075
|
_: 1
|
|
5061
5076
|
}),
|
|
5062
|
-
|
|
5077
|
+
h(uo, null, {
|
|
5063
5078
|
default: u(() => [...n[1] || (n[1] = [
|
|
5064
5079
|
O("Displays the mobile sidebar.", -1)
|
|
5065
5080
|
])]),
|
|
@@ -5068,7 +5083,7 @@ const Ol = Al("chevron-down", [
|
|
|
5068
5083
|
]),
|
|
5069
5084
|
_: 1
|
|
5070
5085
|
}),
|
|
5071
|
-
c("div",
|
|
5086
|
+
c("div", Ql, [
|
|
5072
5087
|
d(o.$slots, "default")
|
|
5073
5088
|
])
|
|
5074
5089
|
]),
|
|
@@ -5087,7 +5102,7 @@ const Ol = Al("chevron-down", [
|
|
|
5087
5102
|
}, [
|
|
5088
5103
|
c("div", {
|
|
5089
5104
|
"data-slot": "sidebar-gap",
|
|
5090
|
-
class:
|
|
5105
|
+
class: x(s(C)(
|
|
5091
5106
|
"relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
|
|
5092
5107
|
"group-data-[collapsible=offcanvas]:w-0",
|
|
5093
5108
|
"group-data-[side=right]:rotate-180",
|
|
@@ -5103,13 +5118,13 @@ const Ol = Al("chevron-down", [
|
|
|
5103
5118
|
e.class
|
|
5104
5119
|
)
|
|
5105
5120
|
}, o.$attrs), [
|
|
5106
|
-
c("div",
|
|
5121
|
+
c("div", ti, [
|
|
5107
5122
|
d(o.$slots, "default")
|
|
5108
5123
|
])
|
|
5109
5124
|
], 16)
|
|
5110
|
-
], 8,
|
|
5125
|
+
], 8, ei));
|
|
5111
5126
|
}
|
|
5112
|
-
}),
|
|
5127
|
+
}), si = { class: "relative" }, oi = ["placeholder", "value"], ri = /* @__PURE__ */ f({
|
|
5113
5128
|
__name: "BasicSearch",
|
|
5114
5129
|
props: {
|
|
5115
5130
|
class: String,
|
|
@@ -5124,24 +5139,24 @@ const Ol = Al("chevron-down", [
|
|
|
5124
5139
|
e.onChange && e.onChange(n.value);
|
|
5125
5140
|
}
|
|
5126
5141
|
return (o, n) => (r(), l("div", {
|
|
5127
|
-
class:
|
|
5142
|
+
class: x(["mb-4 px-1", e.class])
|
|
5128
5143
|
}, [
|
|
5129
|
-
c("div",
|
|
5130
|
-
|
|
5144
|
+
c("div", si, [
|
|
5145
|
+
h(s(me), { class: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
5131
5146
|
c("input", {
|
|
5132
5147
|
type: "text",
|
|
5133
5148
|
placeholder: e.placeholder,
|
|
5134
5149
|
value: e.value,
|
|
5135
5150
|
onInput: a,
|
|
5136
5151
|
class: "w-full pl-9 pr-3 py-2 text-sm bg-muted/50 border border-border rounded-md focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset"
|
|
5137
|
-
}, null, 40,
|
|
5152
|
+
}, null, 40, oi)
|
|
5138
5153
|
])
|
|
5139
5154
|
], 2));
|
|
5140
5155
|
}
|
|
5141
|
-
}),
|
|
5156
|
+
}), ni = { class: "h-10 flex items-center opacity-100 visible" }, li = {
|
|
5142
5157
|
key: 0,
|
|
5143
5158
|
class: "relative w-full"
|
|
5144
|
-
},
|
|
5159
|
+
}, ii = ["placeholder", "value"], di = ["title"], ci = { class: "w-6 h-6 rounded-md flex items-center justify-center transition-colors duration-200 bg-transparent" }, Ne = /* @__PURE__ */ f({
|
|
5145
5160
|
__name: "ResponsiveSearch",
|
|
5146
5161
|
props: {
|
|
5147
5162
|
isExpanded: Boolean,
|
|
@@ -5162,11 +5177,11 @@ const Ol = Al("chevron-down", [
|
|
|
5162
5177
|
e.onChange && e.onChange(p.value);
|
|
5163
5178
|
}
|
|
5164
5179
|
return (i, p) => (r(), l("div", {
|
|
5165
|
-
class:
|
|
5180
|
+
class: x(["mb-4 px-1 relative z-10", e.class])
|
|
5166
5181
|
}, [
|
|
5167
|
-
c("div",
|
|
5168
|
-
e.isExpanded || e.isLocked ? (r(), l("div",
|
|
5169
|
-
|
|
5182
|
+
c("div", ni, [
|
|
5183
|
+
e.isExpanded || e.isLocked ? (r(), l("div", li, [
|
|
5184
|
+
h(s(me), { class: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
5170
5185
|
c("input", {
|
|
5171
5186
|
ref_key: "inputRef",
|
|
5172
5187
|
ref: a,
|
|
@@ -5175,17 +5190,17 @@ const Ol = Al("chevron-down", [
|
|
|
5175
5190
|
value: e.value,
|
|
5176
5191
|
onInput: n,
|
|
5177
5192
|
class: "w-full h-10 pl-9 pr-3 text-sm bg-muted/50 border border-border rounded-md focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset"
|
|
5178
|
-
}, null, 40,
|
|
5193
|
+
}, null, 40, ii)
|
|
5179
5194
|
])) : (r(), l("button", {
|
|
5180
5195
|
key: 1,
|
|
5181
5196
|
onClick: o,
|
|
5182
5197
|
title: e.isLocked ? "Search" : "Search (Click to expand)",
|
|
5183
5198
|
class: "w-10 h-10 min-w-10 flex items-center justify-center rounded-lg transition-all duration-200 group hover:bg-accent/50 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset text-muted-foreground hover:text-foreground opacity-100 relative z-20"
|
|
5184
5199
|
}, [
|
|
5185
|
-
c("div",
|
|
5186
|
-
|
|
5200
|
+
c("div", ci, [
|
|
5201
|
+
h(s(me), { class: "w-4 h-4" })
|
|
5187
5202
|
])
|
|
5188
|
-
], 8,
|
|
5203
|
+
], 8, di))
|
|
5189
5204
|
])
|
|
5190
5205
|
], 2));
|
|
5191
5206
|
}
|
|
@@ -5198,12 +5213,12 @@ const Ol = Al("chevron-down", [
|
|
|
5198
5213
|
setup(t) {
|
|
5199
5214
|
const e = t;
|
|
5200
5215
|
return (a, o) => (r(), l("div", {
|
|
5201
|
-
class:
|
|
5216
|
+
class: x(s(C)("flex w-full border overflow-hidden relative z-0 bg-background", e.height, e.class))
|
|
5202
5217
|
}, [
|
|
5203
5218
|
d(a.$slots, "default")
|
|
5204
5219
|
], 2));
|
|
5205
5220
|
}
|
|
5206
|
-
}),
|
|
5221
|
+
}), ui = "16rem", pi = "3.5rem", fi = "3.5rem", mi = "sidebar-open", gi = 3600 * 24 * 365, bi = "b", He = /* @__PURE__ */ f({
|
|
5207
5222
|
__name: "SidebarProvider",
|
|
5208
5223
|
props: {
|
|
5209
5224
|
defaultOpen: { type: Boolean, default: !0 },
|
|
@@ -5226,35 +5241,35 @@ const Ol = Al("chevron-down", [
|
|
|
5226
5241
|
}
|
|
5227
5242
|
const o = a(), n = V(!1), i = (S) => {
|
|
5228
5243
|
n.value = S;
|
|
5229
|
-
}, p = V(e.defaultOpen), m =
|
|
5244
|
+
}, p = V(e.defaultOpen), m = k(() => e.open !== void 0 ? e.open : p.value), $ = (S) => {
|
|
5230
5245
|
const B = typeof S == "function" ? S(m.value) : S;
|
|
5231
|
-
e.onOpenChange ? e.onOpenChange(B) : p.value = B, document.cookie = `${
|
|
5232
|
-
},
|
|
5246
|
+
e.onOpenChange ? e.onOpenChange(B) : p.value = B, document.cookie = `${mi}=${B}; path=/; max-age=${gi}`;
|
|
5247
|
+
}, v = () => {
|
|
5233
5248
|
o.value ? i(!n.value) : $((S) => !S);
|
|
5234
5249
|
};
|
|
5235
|
-
function
|
|
5236
|
-
S.key.toLowerCase() ===
|
|
5250
|
+
function _(S) {
|
|
5251
|
+
S.key.toLowerCase() === bi && (S.metaKey || S.ctrlKey) && (S.preventDefault(), v());
|
|
5237
5252
|
}
|
|
5238
5253
|
re(() => {
|
|
5239
|
-
window.addEventListener("keydown",
|
|
5254
|
+
window.addEventListener("keydown", _);
|
|
5240
5255
|
}), ne(() => {
|
|
5241
|
-
window.removeEventListener("keydown",
|
|
5256
|
+
window.removeEventListener("keydown", _);
|
|
5242
5257
|
});
|
|
5243
|
-
const y =
|
|
5258
|
+
const y = k(() => m.value ? "expanded" : "collapsed"), w = k(() => ({
|
|
5244
5259
|
state: y.value,
|
|
5245
5260
|
open: m.value,
|
|
5246
5261
|
setOpen: $,
|
|
5247
5262
|
isMobile: o.value,
|
|
5248
5263
|
openMobile: n.value,
|
|
5249
5264
|
setOpenMobile: i,
|
|
5250
|
-
toggleSidebar:
|
|
5265
|
+
toggleSidebar: v
|
|
5251
5266
|
}));
|
|
5252
|
-
return ue("sidebarContext",
|
|
5267
|
+
return ue("sidebarContext", w.value), (S, B) => (r(), l("div", b({
|
|
5253
5268
|
"data-slot": "sidebar-wrapper",
|
|
5254
5269
|
style: {
|
|
5255
|
-
"--sidebar-width":
|
|
5256
|
-
"--sidebar-width-icon":
|
|
5257
|
-
"--sidebar-width-autocollapse":
|
|
5270
|
+
"--sidebar-width": ui,
|
|
5271
|
+
"--sidebar-width-icon": pi,
|
|
5272
|
+
"--sidebar-width-autocollapse": fi,
|
|
5258
5273
|
...e.style
|
|
5259
5274
|
},
|
|
5260
5275
|
class: ["group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full", e.class]
|
|
@@ -5262,13 +5277,13 @@ const Ol = Al("chevron-down", [
|
|
|
5262
5277
|
d(S.$slots, "default")
|
|
5263
5278
|
], 16));
|
|
5264
5279
|
}
|
|
5265
|
-
}),
|
|
5280
|
+
}), vi = {
|
|
5266
5281
|
key: 0,
|
|
5267
5282
|
class: "ml-2 text-xs opacity-60"
|
|
5268
|
-
},
|
|
5283
|
+
}, hi = {
|
|
5269
5284
|
key: 0,
|
|
5270
5285
|
class: "flex-1 text-sm font-medium leading-none truncate"
|
|
5271
|
-
},
|
|
5286
|
+
}, _i = /* @__PURE__ */ f({
|
|
5272
5287
|
__name: "SidebarMenuItemWithIcon",
|
|
5273
5288
|
props: {
|
|
5274
5289
|
icon: [Object, Function],
|
|
@@ -5279,17 +5294,17 @@ const Ol = Al("chevron-down", [
|
|
|
5279
5294
|
class: String
|
|
5280
5295
|
},
|
|
5281
5296
|
setup(t) {
|
|
5282
|
-
const e = t, a =
|
|
5297
|
+
const e = t, a = be("sidebarContext"), o = k(() => a && a.state === "collapsed" && !a.isMobile), n = k(
|
|
5283
5298
|
() => C(
|
|
5284
5299
|
"relative w-full flex items-center gap-2 pl-2 pr-3 py-2 rounded-lg text-left transition-all duration-200 group hover:bg-accent/50 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",
|
|
5285
5300
|
o.value && "justify-center px-2 w-10 h-10 min-w-10",
|
|
5286
5301
|
e.class
|
|
5287
5302
|
)
|
|
5288
|
-
), i =
|
|
5303
|
+
), i = k(
|
|
5289
5304
|
() => C(
|
|
5290
5305
|
e.isActive ? "bg-primary/10 text-primary" : "text-muted-foreground hover:text-foreground"
|
|
5291
5306
|
)
|
|
5292
|
-
), p =
|
|
5307
|
+
), p = k(
|
|
5293
5308
|
() => C(
|
|
5294
5309
|
"relative w-6 h-6 rounded-md flex items-center justify-center transition-colors duration-200",
|
|
5295
5310
|
o.value ? "bg-transparent" : e.isActive ? "bg-primary/15 text-primary" : "bg-muted group-hover:bg-accent text-muted-foreground group-hover:text-foreground"
|
|
@@ -5297,15 +5312,15 @@ const Ol = Al("chevron-down", [
|
|
|
5297
5312
|
);
|
|
5298
5313
|
return (m, $) => o.value ? (r(), g(ft, { key: 0 }, {
|
|
5299
5314
|
default: u(() => [
|
|
5300
|
-
|
|
5315
|
+
h(gt, { "as-child": "" }, {
|
|
5301
5316
|
default: u(() => [
|
|
5302
5317
|
c("button", {
|
|
5303
|
-
class:
|
|
5318
|
+
class: x(s(C)(n.value, i.value)),
|
|
5304
5319
|
onClick: $[0] || ($[0] = //@ts-ignore
|
|
5305
|
-
(...
|
|
5320
|
+
(...v) => e.onClick && e.onClick(...v))
|
|
5306
5321
|
}, [
|
|
5307
5322
|
c("div", {
|
|
5308
|
-
class:
|
|
5323
|
+
class: x(p.value)
|
|
5309
5324
|
}, [
|
|
5310
5325
|
e.icon ? (r(), g(Y(e.icon), {
|
|
5311
5326
|
key: 0,
|
|
@@ -5316,13 +5331,13 @@ const Ol = Al("chevron-down", [
|
|
|
5316
5331
|
]),
|
|
5317
5332
|
_: 1
|
|
5318
5333
|
}),
|
|
5319
|
-
|
|
5334
|
+
h(mt, {
|
|
5320
5335
|
side: "right",
|
|
5321
5336
|
align: "center"
|
|
5322
5337
|
}, {
|
|
5323
5338
|
default: u(() => [
|
|
5324
|
-
c("p", null,
|
|
5325
|
-
e.badge ? (r(), l("span",
|
|
5339
|
+
c("p", null, M(e.label), 1),
|
|
5340
|
+
e.badge ? (r(), l("span", vi, "(" + M(e.badge) + ")", 1)) : z("", !0)
|
|
5326
5341
|
]),
|
|
5327
5342
|
_: 1
|
|
5328
5343
|
})
|
|
@@ -5331,11 +5346,11 @@ const Ol = Al("chevron-down", [
|
|
|
5331
5346
|
})) : (r(), l("button", {
|
|
5332
5347
|
key: 1,
|
|
5333
5348
|
type: "button",
|
|
5334
|
-
onClick: $[1] || ($[1] = (
|
|
5335
|
-
class:
|
|
5349
|
+
onClick: $[1] || ($[1] = (v) => e.onClick && e.onClick(v)),
|
|
5350
|
+
class: x(s(C)(n.value, i.value, e.class))
|
|
5336
5351
|
}, [
|
|
5337
5352
|
c("div", {
|
|
5338
|
-
class:
|
|
5353
|
+
class: x(s(C)(
|
|
5339
5354
|
"relative w-6 h-6 rounded-md flex items-center justify-center transition-colors duration-200",
|
|
5340
5355
|
o.value ? "bg-transparent" : e.isActive ? "bg-primary/15 text-primary" : "bg-muted group-hover:bg-accent text-muted-foreground group-hover:text-foreground"
|
|
5341
5356
|
))
|
|
@@ -5345,20 +5360,20 @@ const Ol = Al("chevron-down", [
|
|
|
5345
5360
|
class: "w-4 h-4"
|
|
5346
5361
|
})) : z("", !0)
|
|
5347
5362
|
], 2),
|
|
5348
|
-
o.value ? z("", !0) : (r(), l("span",
|
|
5363
|
+
o.value ? z("", !0) : (r(), l("span", hi, M(e.label), 1)),
|
|
5349
5364
|
!o.value && e.badge ? (r(), l("span", {
|
|
5350
5365
|
key: 1,
|
|
5351
|
-
class:
|
|
5366
|
+
class: x(s(C)(
|
|
5352
5367
|
"absolute right-3 inline-flex items-center justify-center px-2 py-0.5 text-xs font-medium rounded-full min-w-[1.25rem] h-5",
|
|
5353
5368
|
e.isActive ? "bg-primary/20 text-primary" : "bg-muted text-muted-foreground group-hover:bg-accent group-hover:text-foreground"
|
|
5354
5369
|
))
|
|
5355
|
-
},
|
|
5370
|
+
}, M(e.badge), 3)) : z("", !0)
|
|
5356
5371
|
], 2));
|
|
5357
5372
|
}
|
|
5358
|
-
}),
|
|
5373
|
+
}), yi = { class: "flex-1 overflow-y-auto" }, xi = {
|
|
5359
5374
|
key: 0,
|
|
5360
5375
|
class: "pt-3 border-t border-border px-2 flex justify-center"
|
|
5361
|
-
},
|
|
5376
|
+
}, ke = /* @__PURE__ */ f({
|
|
5362
5377
|
__name: "SidebarContent",
|
|
5363
5378
|
props: {
|
|
5364
5379
|
navigationItems: {},
|
|
@@ -5373,11 +5388,11 @@ const Ol = Al("chevron-down", [
|
|
|
5373
5388
|
setup(t) {
|
|
5374
5389
|
const e = t;
|
|
5375
5390
|
return (a, o) => (r(), l(F, null, [
|
|
5376
|
-
c("div",
|
|
5391
|
+
c("div", yi, [
|
|
5377
5392
|
d(a.$slots, "default")
|
|
5378
5393
|
]),
|
|
5379
|
-
e.showFooter !== !1 ? (r(), l("div",
|
|
5380
|
-
|
|
5394
|
+
e.showFooter !== !1 ? (r(), l("div", xi, [
|
|
5395
|
+
h(_i, {
|
|
5381
5396
|
icon: s(Gt),
|
|
5382
5397
|
label: e.footerUser ?? "John Doe",
|
|
5383
5398
|
isActive: e.activeItem === "profile",
|
|
@@ -5392,7 +5407,7 @@ const Ol = Al("chevron-down", [
|
|
|
5392
5407
|
class: { type: String, default: "" }
|
|
5393
5408
|
},
|
|
5394
5409
|
setup(t) {
|
|
5395
|
-
const e = t, a =
|
|
5410
|
+
const e = t, a = k(
|
|
5396
5411
|
() => C(
|
|
5397
5412
|
"bg-background relative flex w-full flex-1 flex-col",
|
|
5398
5413
|
"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",
|
|
@@ -5401,7 +5416,7 @@ const Ol = Al("chevron-down", [
|
|
|
5401
5416
|
);
|
|
5402
5417
|
return (o, n) => (r(), l("main", {
|
|
5403
5418
|
"data-slot": "sidebar-inset",
|
|
5404
|
-
class:
|
|
5419
|
+
class: x(a.value)
|
|
5405
5420
|
}, [
|
|
5406
5421
|
d(o.$slots, "default")
|
|
5407
5422
|
], 2));
|
|
@@ -5413,19 +5428,19 @@ const Ol = Al("chevron-down", [
|
|
|
5413
5428
|
},
|
|
5414
5429
|
emits: ["click"],
|
|
5415
5430
|
setup(t, { emit: e }) {
|
|
5416
|
-
const a =
|
|
5431
|
+
const a = be("sidebarContext"), o = e;
|
|
5417
5432
|
return (n, i) => (r(), g(ge, {
|
|
5418
5433
|
"data-sidebar": "trigger",
|
|
5419
5434
|
"data-slot": "sidebar-trigger",
|
|
5420
5435
|
variant: "ghost",
|
|
5421
5436
|
size: "icon",
|
|
5422
|
-
class:
|
|
5437
|
+
class: x(["size-7", n.$props.class]),
|
|
5423
5438
|
onClick: i[0] || (i[0] = (p) => {
|
|
5424
5439
|
o("click", p), s(a)?.toggleSidebar();
|
|
5425
5440
|
})
|
|
5426
5441
|
}, {
|
|
5427
5442
|
default: u(() => [
|
|
5428
|
-
|
|
5443
|
+
h(s(Wt), { class: "w-4 h-4" }),
|
|
5429
5444
|
i[1] || (i[1] = c("span", { class: "sr-only" }, "Toggle Sidebar", -1))
|
|
5430
5445
|
]),
|
|
5431
5446
|
_: 1
|
|
@@ -5439,18 +5454,18 @@ const Ol = Al("chevron-down", [
|
|
|
5439
5454
|
setup(t) {
|
|
5440
5455
|
const e = t;
|
|
5441
5456
|
return (a, o) => (r(), l("div", {
|
|
5442
|
-
class:
|
|
5457
|
+
class: x(["sidebar-group", e.class])
|
|
5443
5458
|
}, [
|
|
5444
5459
|
d(a.$slots, "default")
|
|
5445
5460
|
], 2));
|
|
5446
5461
|
}
|
|
5447
|
-
}),
|
|
5448
|
-
function
|
|
5449
|
-
return r(), l("div",
|
|
5462
|
+
}), wi = {}, ki = { class: "text-xs font-semibold uppercase tracking-wider text-muted-foreground mb-1" };
|
|
5463
|
+
function $i(t, e) {
|
|
5464
|
+
return r(), l("div", ki, [
|
|
5450
5465
|
d(t.$slots, "default")
|
|
5451
5466
|
]);
|
|
5452
5467
|
}
|
|
5453
|
-
const Tu = /* @__PURE__ */ T(
|
|
5468
|
+
const Tu = /* @__PURE__ */ T(wi, [["render", $i]]), Du = /* @__PURE__ */ f({
|
|
5454
5469
|
__name: "SidebarGroupContent",
|
|
5455
5470
|
props: {
|
|
5456
5471
|
class: { type: String, default: "" }
|
|
@@ -5458,18 +5473,18 @@ const Tu = /* @__PURE__ */ T(xi, [["render", ki]]), Du = /* @__PURE__ */ f({
|
|
|
5458
5473
|
setup(t) {
|
|
5459
5474
|
const e = t;
|
|
5460
5475
|
return (a, o) => (r(), l("div", {
|
|
5461
|
-
class:
|
|
5476
|
+
class: x(["sidebar-group-content", e.class])
|
|
5462
5477
|
}, [
|
|
5463
5478
|
d(a.$slots, "default")
|
|
5464
5479
|
], 2));
|
|
5465
5480
|
}
|
|
5466
|
-
}),
|
|
5467
|
-
function
|
|
5468
|
-
return r(), l("ul",
|
|
5481
|
+
}), Si = {}, Ci = { class: "sidebar-menu" };
|
|
5482
|
+
function Bi(t, e) {
|
|
5483
|
+
return r(), l("ul", Ci, [
|
|
5469
5484
|
d(t.$slots, "default")
|
|
5470
5485
|
]);
|
|
5471
5486
|
}
|
|
5472
|
-
const Vu = /* @__PURE__ */ T(
|
|
5487
|
+
const Vu = /* @__PURE__ */ T(Si, [["render", Bi]]), Pu = /* @__PURE__ */ f({
|
|
5473
5488
|
__name: "SidebarMenuItem",
|
|
5474
5489
|
props: {
|
|
5475
5490
|
class: { type: String, default: "" }
|
|
@@ -5477,7 +5492,7 @@ const Vu = /* @__PURE__ */ T($i, [["render", Ci]]), Pu = /* @__PURE__ */ f({
|
|
|
5477
5492
|
setup(t) {
|
|
5478
5493
|
const e = t;
|
|
5479
5494
|
return (a, o) => (r(), l("li", {
|
|
5480
|
-
class:
|
|
5495
|
+
class: x(["sidebar-menu-item", e.class])
|
|
5481
5496
|
}, [
|
|
5482
5497
|
d(a.$slots, "default")
|
|
5483
5498
|
], 2));
|
|
@@ -5492,7 +5507,7 @@ const Vu = /* @__PURE__ */ T($i, [["render", Ci]]), Pu = /* @__PURE__ */ f({
|
|
|
5492
5507
|
setup(t) {
|
|
5493
5508
|
const e = t;
|
|
5494
5509
|
return (a, o) => (r(), l("button", {
|
|
5495
|
-
class:
|
|
5510
|
+
class: x([
|
|
5496
5511
|
"sidebar-menu-button w-full flex items-center gap-2 px-3 py-2 rounded-md text-sm font-medium transition-colors",
|
|
5497
5512
|
e.isActive ? "bg-accent text-accent-foreground" : "hover:bg-accent hover:text-accent-foreground",
|
|
5498
5513
|
e.class
|
|
@@ -5501,13 +5516,13 @@ const Vu = /* @__PURE__ */ T($i, [["render", Ci]]), Pu = /* @__PURE__ */ f({
|
|
|
5501
5516
|
d(a.$slots, "default")
|
|
5502
5517
|
], 2));
|
|
5503
5518
|
}
|
|
5504
|
-
}),
|
|
5505
|
-
function
|
|
5506
|
-
return r(), l("span",
|
|
5519
|
+
}), zi = {}, Ii = { class: "sidebar-menu-badge ml-2 text-xs bg-muted px-2 py-0.5 rounded-full" };
|
|
5520
|
+
function Mi(t, e) {
|
|
5521
|
+
return r(), l("span", Ii, [
|
|
5507
5522
|
d(t.$slots, "default")
|
|
5508
5523
|
]);
|
|
5509
5524
|
}
|
|
5510
|
-
const Ou = /* @__PURE__ */ T(
|
|
5525
|
+
const Ou = /* @__PURE__ */ T(zi, [["render", Mi]]), ju = /* @__PURE__ */ f({
|
|
5511
5526
|
__name: "SidebarMenuSub",
|
|
5512
5527
|
props: {
|
|
5513
5528
|
class: String
|
|
@@ -5517,7 +5532,7 @@ const Ou = /* @__PURE__ */ T(Bi, [["render", Ii]]), ju = /* @__PURE__ */ f({
|
|
|
5517
5532
|
return (a, o) => (r(), l("ul", {
|
|
5518
5533
|
"data-slot": "sidebar-menu-sub",
|
|
5519
5534
|
"data-sidebar": "menu-sub",
|
|
5520
|
-
class:
|
|
5535
|
+
class: x([
|
|
5521
5536
|
"border-sidebar-border ml-4.5 pl-2 pr-4.5 flex min-w-0 translate-x-px flex-col gap-1 border-l pt-1 pb-0.5",
|
|
5522
5537
|
"group-data-[collapsible=icon]:hidden",
|
|
5523
5538
|
e.class
|
|
@@ -5534,7 +5549,7 @@ const Ou = /* @__PURE__ */ T(Bi, [["render", Ii]]), ju = /* @__PURE__ */ f({
|
|
|
5534
5549
|
setup(t) {
|
|
5535
5550
|
const e = t;
|
|
5536
5551
|
return (a, o) => (r(), l("ul", {
|
|
5537
|
-
class:
|
|
5552
|
+
class: x(["sidebar-menu-sub-content", e.class])
|
|
5538
5553
|
}, [
|
|
5539
5554
|
d(a.$slots, "default")
|
|
5540
5555
|
], 2));
|
|
@@ -5547,7 +5562,7 @@ const Ou = /* @__PURE__ */ T(Bi, [["render", Ii]]), ju = /* @__PURE__ */ f({
|
|
|
5547
5562
|
setup(t) {
|
|
5548
5563
|
const e = t;
|
|
5549
5564
|
return (a, o) => (r(), l("li", {
|
|
5550
|
-
class:
|
|
5565
|
+
class: x(["sidebar-menu-sub-item", e.class])
|
|
5551
5566
|
}, [
|
|
5552
5567
|
d(a.$slots, "default")
|
|
5553
5568
|
], 2));
|
|
@@ -5560,7 +5575,7 @@ const Ou = /* @__PURE__ */ T(Bi, [["render", Ii]]), ju = /* @__PURE__ */ f({
|
|
|
5560
5575
|
setup(t) {
|
|
5561
5576
|
const e = t;
|
|
5562
5577
|
return (a, o) => (r(), l("button", {
|
|
5563
|
-
class:
|
|
5578
|
+
class: x(["sidebar-menu-sub-trigger", e.class])
|
|
5564
5579
|
}, [
|
|
5565
5580
|
d(a.$slots, "default")
|
|
5566
5581
|
], 2));
|
|
@@ -5573,7 +5588,7 @@ const Ou = /* @__PURE__ */ T(Bi, [["render", Ii]]), ju = /* @__PURE__ */ f({
|
|
|
5573
5588
|
setup(t) {
|
|
5574
5589
|
const e = t;
|
|
5575
5590
|
return (a, o) => (r(), l("header", {
|
|
5576
|
-
class:
|
|
5591
|
+
class: x(["sidebar-header", e.class])
|
|
5577
5592
|
}, [
|
|
5578
5593
|
d(a.$slots, "default")
|
|
5579
5594
|
], 2));
|
|
@@ -5586,7 +5601,7 @@ const Ou = /* @__PURE__ */ T(Bi, [["render", Ii]]), ju = /* @__PURE__ */ f({
|
|
|
5586
5601
|
setup(t) {
|
|
5587
5602
|
const e = t;
|
|
5588
5603
|
return (a, o) => (r(), l("footer", {
|
|
5589
|
-
class:
|
|
5604
|
+
class: x(["sidebar-footer", e.class])
|
|
5590
5605
|
}, [
|
|
5591
5606
|
d(a.$slots, "default")
|
|
5592
5607
|
], 2));
|
|
@@ -5599,7 +5614,7 @@ const Ou = /* @__PURE__ */ T(Bi, [["render", Ii]]), ju = /* @__PURE__ */ f({
|
|
|
5599
5614
|
setup(t) {
|
|
5600
5615
|
const e = t;
|
|
5601
5616
|
return (a, o) => (r(), l("div", {
|
|
5602
|
-
class:
|
|
5617
|
+
class: x(["sidebar-title", e.class])
|
|
5603
5618
|
}, [
|
|
5604
5619
|
d(a.$slots, "default")
|
|
5605
5620
|
], 2));
|
|
@@ -5612,7 +5627,7 @@ const Ou = /* @__PURE__ */ T(Bi, [["render", Ii]]), ju = /* @__PURE__ */ f({
|
|
|
5612
5627
|
setup(t) {
|
|
5613
5628
|
const e = t;
|
|
5614
5629
|
return (a, o) => (r(), l("div", {
|
|
5615
|
-
class:
|
|
5630
|
+
class: x(["sidebar-description", e.class])
|
|
5616
5631
|
}, [
|
|
5617
5632
|
d(a.$slots, "default")
|
|
5618
5633
|
], 2));
|
|
@@ -5625,7 +5640,7 @@ const Ou = /* @__PURE__ */ T(Bi, [["render", Ii]]), ju = /* @__PURE__ */ f({
|
|
|
5625
5640
|
setup(t) {
|
|
5626
5641
|
const e = t;
|
|
5627
5642
|
return (a, o) => (r(), l("hr", {
|
|
5628
|
-
class:
|
|
5643
|
+
class: x(["sidebar-separator", e.class])
|
|
5629
5644
|
}, null, 2));
|
|
5630
5645
|
}
|
|
5631
5646
|
}), Wu = /* @__PURE__ */ f({
|
|
@@ -5636,7 +5651,7 @@ const Ou = /* @__PURE__ */ T(Bi, [["render", Ii]]), ju = /* @__PURE__ */ f({
|
|
|
5636
5651
|
setup(t) {
|
|
5637
5652
|
const e = t;
|
|
5638
5653
|
return (a, o) => (r(), l("div", {
|
|
5639
|
-
class:
|
|
5654
|
+
class: x(["sidebar-scroll-area", e.class])
|
|
5640
5655
|
}, [
|
|
5641
5656
|
d(a.$slots, "default")
|
|
5642
5657
|
], 2));
|
|
@@ -5649,7 +5664,7 @@ const Ou = /* @__PURE__ */ T(Bi, [["render", Ii]]), ju = /* @__PURE__ */ f({
|
|
|
5649
5664
|
setup(t) {
|
|
5650
5665
|
const e = t;
|
|
5651
5666
|
return (a, o) => (r(), l("span", {
|
|
5652
|
-
class:
|
|
5667
|
+
class: x(["sidebar-shortcut", e.class])
|
|
5653
5668
|
}, [
|
|
5654
5669
|
d(a.$slots, "default")
|
|
5655
5670
|
], 2));
|
|
@@ -5662,7 +5677,7 @@ const Ou = /* @__PURE__ */ T(Bi, [["render", Ii]]), ju = /* @__PURE__ */ f({
|
|
|
5662
5677
|
setup(t) {
|
|
5663
5678
|
const e = t;
|
|
5664
5679
|
return (a, o) => (r(), l("button", {
|
|
5665
|
-
class:
|
|
5680
|
+
class: x(["sidebar-collapse-button", e.class])
|
|
5666
5681
|
}, [
|
|
5667
5682
|
d(a.$slots, "default")
|
|
5668
5683
|
], 2));
|
|
@@ -5675,29 +5690,29 @@ const Ou = /* @__PURE__ */ T(Bi, [["render", Ii]]), ju = /* @__PURE__ */ f({
|
|
|
5675
5690
|
setup(t) {
|
|
5676
5691
|
const e = t;
|
|
5677
5692
|
return (a, o) => (r(), l("button", {
|
|
5678
|
-
class:
|
|
5693
|
+
class: x(["sidebar-expand-button", e.class])
|
|
5679
5694
|
}, [
|
|
5680
5695
|
d(a.$slots, "default")
|
|
5681
5696
|
], 2));
|
|
5682
5697
|
}
|
|
5683
5698
|
});
|
|
5684
|
-
function
|
|
5699
|
+
function Ti({
|
|
5685
5700
|
defaultLocked: t = !1,
|
|
5686
5701
|
searchValue: e = "",
|
|
5687
5702
|
autoCollapseDelay: a = 300,
|
|
5688
5703
|
unlockCollapseDelay: o = 300,
|
|
5689
5704
|
onLockToggle: n
|
|
5690
5705
|
} = {}) {
|
|
5691
|
-
const i = V(t), p = V(!1), m = { current: void 0 }, $ =
|
|
5706
|
+
const i = V(t), p = V(!1), m = { current: void 0 }, $ = k(() => !i.value && !e.trim()), v = k(() => i.value || e.trim() ? !0 : p.value), _ = () => {
|
|
5692
5707
|
$.value && (m.current && clearTimeout(m.current), p.value = !0);
|
|
5693
5708
|
}, y = () => {
|
|
5694
5709
|
$.value && (m.current = setTimeout(() => {
|
|
5695
5710
|
p.value = !1;
|
|
5696
5711
|
}, a));
|
|
5697
|
-
},
|
|
5712
|
+
}, w = () => {
|
|
5698
5713
|
i.value = !i.value, n && n(i.value);
|
|
5699
5714
|
}, S = () => {
|
|
5700
|
-
|
|
5715
|
+
v.value || (p.value = !0);
|
|
5701
5716
|
};
|
|
5702
5717
|
return ne(() => {
|
|
5703
5718
|
m.current && clearTimeout(m.current);
|
|
@@ -5706,18 +5721,18 @@ function Mi({
|
|
|
5706
5721
|
}), {
|
|
5707
5722
|
isLocked: i,
|
|
5708
5723
|
isHovered: p,
|
|
5709
|
-
isExpanded:
|
|
5724
|
+
isExpanded: v,
|
|
5710
5725
|
shouldAutoCollapse: $,
|
|
5711
|
-
handleMouseEnter:
|
|
5726
|
+
handleMouseEnter: _,
|
|
5712
5727
|
handleMouseLeave: y,
|
|
5713
|
-
toggleLock:
|
|
5728
|
+
toggleLock: w,
|
|
5714
5729
|
handleSearchClick: S
|
|
5715
5730
|
};
|
|
5716
5731
|
}
|
|
5717
|
-
const
|
|
5732
|
+
const Di = { class: "relative isolate" }, Vi = ["title"], Pi = { class: "p-4" }, Ai = {
|
|
5718
5733
|
key: 2,
|
|
5719
5734
|
class: "relative isolate"
|
|
5720
|
-
},
|
|
5735
|
+
}, Oi = { class: "p-4" }, Ju = /* @__PURE__ */ f({
|
|
5721
5736
|
__name: "Sidebar",
|
|
5722
5737
|
props: {
|
|
5723
5738
|
variant: { type: String, default: "basic" },
|
|
@@ -5755,37 +5770,37 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
5755
5770
|
};
|
|
5756
5771
|
}
|
|
5757
5772
|
e.variant === "basic" && a(e.initialActiveItem, e.initialActiveSubItem);
|
|
5758
|
-
const o = V(e.defaultOpen), n = V(""), i =
|
|
5773
|
+
const o = V(e.defaultOpen), n = V(""), i = k(() => e.open !== void 0 ? e.open : o.value), p = (A) => {
|
|
5759
5774
|
e.onOpenChange ? e.onOpenChange(A) : o.value = A;
|
|
5760
|
-
}, m =
|
|
5775
|
+
}, m = k(() => e.searchValue || n.value), $ = (A) => {
|
|
5761
5776
|
e.onSearchChange ? e.onSearchChange(A) : n.value = A;
|
|
5762
5777
|
}, {
|
|
5763
|
-
isLocked:
|
|
5764
|
-
isExpanded:
|
|
5778
|
+
isLocked: v,
|
|
5779
|
+
isExpanded: _,
|
|
5765
5780
|
isLockButtonHovered: y,
|
|
5766
|
-
handleLockButtonMouseEnter:
|
|
5781
|
+
handleLockButtonMouseEnter: w,
|
|
5767
5782
|
handleLockButtonMouseLeave: S,
|
|
5768
5783
|
handleMouseEnter: B,
|
|
5769
5784
|
handleMouseLeave: P,
|
|
5770
5785
|
toggleLock: R,
|
|
5771
5786
|
handleSearchClick: K
|
|
5772
|
-
} =
|
|
5787
|
+
} = Ti(
|
|
5773
5788
|
e.variant,
|
|
5774
5789
|
m.value,
|
|
5775
5790
|
i.value,
|
|
5776
5791
|
p,
|
|
5777
5792
|
e.onLockToggle
|
|
5778
|
-
), X = () => e.variant === "collapsible" || e.variant === "autocollapse" ? "icon" : "none", E =
|
|
5793
|
+
), X = () => e.variant === "collapsible" || e.variant === "autocollapse" ? "icon" : "none", E = k(() => [
|
|
5779
5794
|
"transition-all duration-300 ease-in-out",
|
|
5780
|
-
e.variant === "autocollapse" && !
|
|
5795
|
+
e.variant === "autocollapse" && !_.value && "overflow-hidden",
|
|
5781
5796
|
e.className
|
|
5782
5797
|
].filter(Boolean).join(" "));
|
|
5783
5798
|
return (A, j) => e.variant === "basic" ? (r(), l("div", {
|
|
5784
5799
|
key: 0,
|
|
5785
|
-
class:
|
|
5800
|
+
class: x(["w-64 border bg-card p-3 flex flex-col", e.height, e.className].filter(Boolean).join(" "))
|
|
5786
5801
|
}, [
|
|
5787
|
-
|
|
5788
|
-
|
|
5802
|
+
h(s(ri)),
|
|
5803
|
+
h(ke, {
|
|
5789
5804
|
navigationItems: e.navigationItems,
|
|
5790
5805
|
recentItems: e.recentItems,
|
|
5791
5806
|
activeItem: e.initialActiveItem,
|
|
@@ -5807,15 +5822,15 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
5807
5822
|
height: "h-[500px]"
|
|
5808
5823
|
}, {
|
|
5809
5824
|
default: u(() => [
|
|
5810
|
-
c("div",
|
|
5811
|
-
|
|
5812
|
-
open: s(
|
|
5825
|
+
c("div", Di, [
|
|
5826
|
+
h(He, {
|
|
5827
|
+
open: s(_),
|
|
5813
5828
|
onOpenChange: () => {
|
|
5814
5829
|
}
|
|
5815
5830
|
}, {
|
|
5816
5831
|
default: u(() => [
|
|
5817
5832
|
c("div", {
|
|
5818
|
-
class:
|
|
5833
|
+
class: x(["group relative z-10 transition-all duration-300 overflow-visible", s(y) ? "border-r-2 border-r-primary" : "border-r border-r-border"]),
|
|
5819
5834
|
onMouseenter: j[3] || (j[3] = //@ts-ignore
|
|
5820
5835
|
(...L) => s(B) && s(B)(...L)),
|
|
5821
5836
|
onMouseleave: j[4] || (j[4] = //@ts-ignore
|
|
@@ -5825,28 +5840,28 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
5825
5840
|
onClick: j[0] || (j[0] = //@ts-ignore
|
|
5826
5841
|
(...L) => s(R) && s(R)(...L)),
|
|
5827
5842
|
onMouseenter: j[1] || (j[1] = //@ts-ignore
|
|
5828
|
-
(...L) => s(
|
|
5843
|
+
(...L) => s(w) && s(w)(...L)),
|
|
5829
5844
|
onMouseleave: j[2] || (j[2] = //@ts-ignore
|
|
5830
5845
|
(...L) => s(S) && s(S)(...L)),
|
|
5831
|
-
class:
|
|
5846
|
+
class: x([
|
|
5832
5847
|
"absolute top-4 z-20 w-7 h-7 rounded-full bg-card border",
|
|
5833
5848
|
"flex items-center justify-center text-primary hover:text-primary-foreground",
|
|
5834
5849
|
"transition-all duration-300 hover:bg-primary shadow-sm",
|
|
5835
5850
|
"focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
5836
5851
|
"opacity-0 group-hover:opacity-100 transition-opacity duration-200",
|
|
5837
|
-
(s(
|
|
5852
|
+
(s(_), "-right-3.5")
|
|
5838
5853
|
]),
|
|
5839
|
-
title: s(
|
|
5854
|
+
title: s(v) ? "Click to enable auto-collapse" : "Click to lock sidebar open"
|
|
5840
5855
|
}, [
|
|
5841
|
-
s(
|
|
5856
|
+
s(v) ? (r(), g(s(qt), {
|
|
5842
5857
|
key: 0,
|
|
5843
5858
|
class: "w-3.5 h-3.5"
|
|
5844
5859
|
})) : (r(), g(s(Kt), {
|
|
5845
5860
|
key: 1,
|
|
5846
5861
|
class: "w-3.5 h-3.5"
|
|
5847
5862
|
}))
|
|
5848
|
-
], 42,
|
|
5849
|
-
|
|
5863
|
+
], 42, Vi),
|
|
5864
|
+
h(we, {
|
|
5850
5865
|
collapsible: "icon",
|
|
5851
5866
|
class: "relative bg-card py-2 overflow-visible"
|
|
5852
5867
|
}, {
|
|
@@ -5854,22 +5869,22 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
5854
5869
|
c("div", {
|
|
5855
5870
|
class: "flex flex-col h-full",
|
|
5856
5871
|
style: H({
|
|
5857
|
-
paddingLeft: s(
|
|
5858
|
-
paddingRight: s(
|
|
5872
|
+
paddingLeft: s(_) ? "8px" : "4px",
|
|
5873
|
+
paddingRight: s(_) ? "16px" : "4px",
|
|
5859
5874
|
width: "100%",
|
|
5860
5875
|
minWidth: 0,
|
|
5861
5876
|
overflow: "visible"
|
|
5862
5877
|
})
|
|
5863
5878
|
}, [
|
|
5864
|
-
|
|
5865
|
-
isExpanded: s(
|
|
5866
|
-
isLocked: s(
|
|
5879
|
+
h(Ne, {
|
|
5880
|
+
isExpanded: s(_),
|
|
5881
|
+
isLocked: s(v),
|
|
5867
5882
|
onSearchClick: s(K),
|
|
5868
5883
|
value: m.value,
|
|
5869
5884
|
onChange: $,
|
|
5870
5885
|
placeholder: e.data?.searchPlaceholder || "Search..."
|
|
5871
5886
|
}, null, 8, ["isExpanded", "isLocked", "onSearchClick", "value", "placeholder"]),
|
|
5872
|
-
|
|
5887
|
+
h(ke, {
|
|
5873
5888
|
navigationItems: e.navigationItems,
|
|
5874
5889
|
recentItems: e.recentItems,
|
|
5875
5890
|
activeItem: e.initialActiveItem,
|
|
@@ -5893,9 +5908,9 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
5893
5908
|
_: 3
|
|
5894
5909
|
}, 8, ["open"])
|
|
5895
5910
|
]),
|
|
5896
|
-
|
|
5911
|
+
h(Ge, { class: "bg-background z-[-1]" }, {
|
|
5897
5912
|
default: u(() => [
|
|
5898
|
-
c("div",
|
|
5913
|
+
c("div", Pi, [
|
|
5899
5914
|
d(A.$slots, "activeContent")
|
|
5900
5915
|
])
|
|
5901
5916
|
]),
|
|
@@ -5903,24 +5918,24 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
5903
5918
|
})
|
|
5904
5919
|
]),
|
|
5905
5920
|
_: 3
|
|
5906
|
-
})) : e.variant === "collapsible" ? (r(), l("div",
|
|
5907
|
-
|
|
5921
|
+
})) : e.variant === "collapsible" ? (r(), l("div", Ai, [
|
|
5922
|
+
h(He, {
|
|
5908
5923
|
open: i.value,
|
|
5909
5924
|
onOpenChange: p
|
|
5910
5925
|
}, {
|
|
5911
5926
|
default: u(() => [
|
|
5912
|
-
|
|
5927
|
+
h(Ue, { height: "h-[500px]" }, {
|
|
5913
5928
|
default: u(() => [
|
|
5914
|
-
|
|
5929
|
+
h(we, {
|
|
5915
5930
|
collapsible: "icon",
|
|
5916
5931
|
class: "relative bg-card px-1 py-2"
|
|
5917
5932
|
}, {
|
|
5918
5933
|
default: u(() => [
|
|
5919
|
-
|
|
5934
|
+
h(Ne, {
|
|
5920
5935
|
isExpanded: i.value,
|
|
5921
5936
|
onSearchClick: () => p(!0)
|
|
5922
5937
|
}, null, 8, ["isExpanded", "onSearchClick"]),
|
|
5923
|
-
|
|
5938
|
+
h(ke, {
|
|
5924
5939
|
navigationItems: e.navigationItems,
|
|
5925
5940
|
recentItems: e.recentItems,
|
|
5926
5941
|
activeItem: e.initialActiveItem,
|
|
@@ -5940,9 +5955,9 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
5940
5955
|
]),
|
|
5941
5956
|
_: 3
|
|
5942
5957
|
}),
|
|
5943
|
-
|
|
5958
|
+
h(Ge, { class: "bg-background" }, {
|
|
5944
5959
|
default: u(() => [
|
|
5945
|
-
c("div",
|
|
5960
|
+
c("div", Oi, [
|
|
5946
5961
|
d(A.$slots, "activeContent")
|
|
5947
5962
|
])
|
|
5948
5963
|
]),
|
|
@@ -5954,7 +5969,7 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
5954
5969
|
]),
|
|
5955
5970
|
_: 3
|
|
5956
5971
|
}, 8, ["open"])
|
|
5957
|
-
])) : (r(), g(
|
|
5972
|
+
])) : (r(), g(we, b({
|
|
5958
5973
|
key: 3,
|
|
5959
5974
|
side: e.side,
|
|
5960
5975
|
variant: e.sidebarVariant,
|
|
@@ -5975,7 +5990,7 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
5975
5990
|
setup(t) {
|
|
5976
5991
|
const e = t;
|
|
5977
5992
|
return (a, o) => (r(), l("section", {
|
|
5978
|
-
class:
|
|
5993
|
+
class: x(["sidebar-section", e.class])
|
|
5979
5994
|
}, [
|
|
5980
5995
|
d(a.$slots, "default")
|
|
5981
5996
|
], 2));
|
|
@@ -5986,12 +6001,12 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
5986
6001
|
const e = U();
|
|
5987
6002
|
return (a, o) => (r(), l("div", b({
|
|
5988
6003
|
"data-slot": "skeleton",
|
|
5989
|
-
class: s(
|
|
6004
|
+
class: s(I)("bg-accent animate-pulse rounded-md", s(e).class)
|
|
5990
6005
|
}, s(e)), [
|
|
5991
6006
|
d(a.$slots, "default")
|
|
5992
6007
|
], 16));
|
|
5993
6008
|
}
|
|
5994
|
-
},
|
|
6009
|
+
}, ji = /* @__PURE__ */ f({
|
|
5995
6010
|
__name: "Slider",
|
|
5996
6011
|
props: {
|
|
5997
6012
|
defaultValue: {},
|
|
@@ -6022,20 +6037,20 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6022
6037
|
)
|
|
6023
6038
|
}, s(i)), {
|
|
6024
6039
|
default: u(({ modelValue: $ }) => [
|
|
6025
|
-
|
|
6040
|
+
h(s(os), {
|
|
6026
6041
|
"data-slot": "slider-track",
|
|
6027
6042
|
class: "h-2 bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"
|
|
6028
6043
|
}, {
|
|
6029
6044
|
default: u(() => [
|
|
6030
|
-
|
|
6045
|
+
h(s(rs), {
|
|
6031
6046
|
"data-slot": "slider-range",
|
|
6032
6047
|
class: "h-full bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full"
|
|
6033
6048
|
})
|
|
6034
6049
|
]),
|
|
6035
6050
|
_: 1
|
|
6036
6051
|
}),
|
|
6037
|
-
(r(!0), l(F, null, G($, (
|
|
6038
|
-
key:
|
|
6052
|
+
(r(!0), l(F, null, G($, (v, _) => (r(), g(s(ns), {
|
|
6053
|
+
key: _,
|
|
6039
6054
|
"data-slot": "slider-thumb",
|
|
6040
6055
|
class: "data-[orientation=vertical]:-left-[7px] border-primary h-5 w-5 bg-slider-thumb bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
|
|
6041
6056
|
}))), 128))
|
|
@@ -6058,37 +6073,37 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6058
6073
|
},
|
|
6059
6074
|
emits: ["update:modelValue"],
|
|
6060
6075
|
setup(t, { emit: e }) {
|
|
6061
|
-
const a = t, o = e, n =
|
|
6076
|
+
const a = t, o = e, n = k({
|
|
6062
6077
|
get: () => [a.modelValue],
|
|
6063
6078
|
set: (i) => o("update:modelValue", i[0])
|
|
6064
6079
|
});
|
|
6065
|
-
return (i, p) => (r(), g(
|
|
6080
|
+
return (i, p) => (r(), g(ji, {
|
|
6066
6081
|
modelValue: n.value,
|
|
6067
6082
|
"onUpdate:modelValue": p[0] || (p[0] = (m) => n.value = m),
|
|
6068
6083
|
min: t.min,
|
|
6069
6084
|
max: t.max,
|
|
6070
6085
|
step: t.step,
|
|
6071
6086
|
disabled: t.disabled,
|
|
6072
|
-
class:
|
|
6087
|
+
class: x(t.class)
|
|
6073
6088
|
}, null, 8, ["modelValue", "min", "max", "step", "disabled", "class"]));
|
|
6074
6089
|
}
|
|
6075
|
-
}),
|
|
6090
|
+
}), Li = {
|
|
6076
6091
|
key: 0,
|
|
6077
6092
|
class: "text-xl"
|
|
6078
|
-
},
|
|
6093
|
+
}, Ri = { class: "flex-1" }, Fi = {
|
|
6079
6094
|
key: 0,
|
|
6080
6095
|
class: "font-semibold text-sm"
|
|
6081
|
-
},
|
|
6096
|
+
}, Ei = {
|
|
6082
6097
|
key: 1,
|
|
6083
6098
|
class: "text-xs text-muted-foreground mt-1"
|
|
6084
|
-
},
|
|
6099
|
+
}, Ni = ["onClick"], Ui = {
|
|
6085
6100
|
__name: "sonner",
|
|
6086
6101
|
setup(t) {
|
|
6087
6102
|
const e = V([]);
|
|
6088
6103
|
let a = 0;
|
|
6089
6104
|
function o({ title: i, description: p, icon: m, duration: $ = 3e3 }) {
|
|
6090
|
-
const
|
|
6091
|
-
e.value.push({ id:
|
|
6105
|
+
const v = ++a;
|
|
6106
|
+
e.value.push({ id: v, title: i, description: p, icon: m, visible: !0 }), setTimeout(() => n(v), $);
|
|
6092
6107
|
}
|
|
6093
6108
|
function n(i) {
|
|
6094
6109
|
const p = e.value.findIndex((m) => m.id === i);
|
|
@@ -6109,22 +6124,22 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6109
6124
|
class: "bg-card border border-border shadow-lg rounded-lg px-4 py-3 mb-2 flex items-center gap-3 pointer-events-auto min-w-[240px] max-w-xs",
|
|
6110
6125
|
style: H({ opacity: m.visible ? 1 : 0 })
|
|
6111
6126
|
}, [
|
|
6112
|
-
m.icon ? (r(), l("span",
|
|
6113
|
-
c("div",
|
|
6114
|
-
m.title ? (r(), l("div",
|
|
6115
|
-
m.description ? (r(), l("div",
|
|
6127
|
+
m.icon ? (r(), l("span", Li, M(m.icon), 1)) : z("", !0),
|
|
6128
|
+
c("div", Ri, [
|
|
6129
|
+
m.title ? (r(), l("div", Fi, M(m.title), 1)) : z("", !0),
|
|
6130
|
+
m.description ? (r(), l("div", Ei, M(m.description), 1)) : z("", !0)
|
|
6116
6131
|
]),
|
|
6117
6132
|
c("button", {
|
|
6118
6133
|
class: "ml-2 text-muted-foreground hover:text-foreground focus:outline-none",
|
|
6119
|
-
onClick: (
|
|
6134
|
+
onClick: (v) => n(m.id),
|
|
6120
6135
|
"aria-label": "Close"
|
|
6121
|
-
}, " × ", 8,
|
|
6136
|
+
}, " × ", 8, Ni)
|
|
6122
6137
|
], 4))), 128))
|
|
6123
6138
|
]),
|
|
6124
6139
|
_: 1
|
|
6125
6140
|
}));
|
|
6126
6141
|
}
|
|
6127
|
-
}, ep = /* @__PURE__ */ T(
|
|
6142
|
+
}, ep = /* @__PURE__ */ T(Ui, [["__scopeId", "data-v-60e60f2b"]]), Hi = { class: "mt-2" }, tp = {
|
|
6128
6143
|
__name: "tab-panel",
|
|
6129
6144
|
props: {
|
|
6130
6145
|
value: {
|
|
@@ -6137,13 +6152,13 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6137
6152
|
}
|
|
6138
6153
|
},
|
|
6139
6154
|
setup(t) {
|
|
6140
|
-
return (e, a) => Ot((r(), l("div",
|
|
6155
|
+
return (e, a) => Ot((r(), l("div", Hi, [
|
|
6141
6156
|
d(e.$slots, "default")
|
|
6142
6157
|
], 512)), [
|
|
6143
6158
|
[jt, t.active]
|
|
6144
6159
|
]);
|
|
6145
6160
|
}
|
|
6146
|
-
},
|
|
6161
|
+
}, Gi = ["disabled"], ap = {
|
|
6147
6162
|
__name: "tab",
|
|
6148
6163
|
props: {
|
|
6149
6164
|
value: {
|
|
@@ -6162,13 +6177,13 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6162
6177
|
emits: ["select"],
|
|
6163
6178
|
setup(t, { emit: e }) {
|
|
6164
6179
|
return (a, o) => (r(), l("button", {
|
|
6165
|
-
class:
|
|
6180
|
+
class: x(["inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow", { "bg-background text-foreground shadow": t.active }]),
|
|
6166
6181
|
disabled: t.disabled,
|
|
6167
6182
|
onClick: o[0] || (o[0] = (n) => a.$emit("select", t.value)),
|
|
6168
6183
|
type: "button"
|
|
6169
6184
|
}, [
|
|
6170
6185
|
d(a.$slots, "default")
|
|
6171
|
-
], 10,
|
|
6186
|
+
], 10, Gi));
|
|
6172
6187
|
}
|
|
6173
6188
|
}, sp = /* @__PURE__ */ f({
|
|
6174
6189
|
__name: "table-body",
|
|
@@ -6179,10 +6194,10 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6179
6194
|
}
|
|
6180
6195
|
},
|
|
6181
6196
|
setup(t) {
|
|
6182
|
-
const a =
|
|
6197
|
+
const a = I("[&_tr:last-child]:border-0", t.class);
|
|
6183
6198
|
return (o, n) => (r(), l("tbody", {
|
|
6184
6199
|
"data-slot": "table-body",
|
|
6185
|
-
class:
|
|
6200
|
+
class: x(s(a))
|
|
6186
6201
|
}, [
|
|
6187
6202
|
d(o.$slots, "default")
|
|
6188
6203
|
], 2));
|
|
@@ -6198,7 +6213,7 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6198
6213
|
setup(t) {
|
|
6199
6214
|
return (e, a) => (r(), l("caption", b({
|
|
6200
6215
|
"data-slot": "table-caption",
|
|
6201
|
-
class: s(
|
|
6216
|
+
class: s(I)("text-muted-foreground mt-4 text-sm", e.$attrs.class)
|
|
6202
6217
|
}, e.$attrs), [
|
|
6203
6218
|
d(e.$slots, "default")
|
|
6204
6219
|
], 16));
|
|
@@ -6212,10 +6227,10 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6212
6227
|
}
|
|
6213
6228
|
},
|
|
6214
6229
|
setup(t) {
|
|
6215
|
-
const a =
|
|
6230
|
+
const a = I("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", t.class);
|
|
6216
6231
|
return (o, n) => (r(), l("td", {
|
|
6217
6232
|
"data-slot": "table-cell",
|
|
6218
|
-
class:
|
|
6233
|
+
class: x(s(a))
|
|
6219
6234
|
}, [
|
|
6220
6235
|
d(o.$slots, "default")
|
|
6221
6236
|
], 2));
|
|
@@ -6229,15 +6244,15 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6229
6244
|
}
|
|
6230
6245
|
},
|
|
6231
6246
|
setup(t) {
|
|
6232
|
-
const a =
|
|
6247
|
+
const a = I("bg-muted/50 border-t border-border font-medium [&>tr]:last:border-b-0", t.class);
|
|
6233
6248
|
return (o, n) => (r(), l("tfoot", {
|
|
6234
6249
|
"data-slot": "table-footer",
|
|
6235
|
-
class:
|
|
6250
|
+
class: x(s(a))
|
|
6236
6251
|
}, [
|
|
6237
6252
|
d(o.$slots, "default")
|
|
6238
6253
|
], 2));
|
|
6239
6254
|
}
|
|
6240
|
-
}),
|
|
6255
|
+
}), Wi = ["tabindex", "role", "aria-sort"], qi = { class: "flex items-center" }, lp = /* @__PURE__ */ f({
|
|
6241
6256
|
__name: "table-header",
|
|
6242
6257
|
props: {
|
|
6243
6258
|
sortable: Boolean,
|
|
@@ -6266,17 +6281,17 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6266
6281
|
Z(() => a.width, (B) => {
|
|
6267
6282
|
B && (p.value = B);
|
|
6268
6283
|
});
|
|
6269
|
-
const m =
|
|
6270
|
-
() =>
|
|
6284
|
+
const m = k(
|
|
6285
|
+
() => I(
|
|
6271
6286
|
"text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
6272
6287
|
a.sortable && "cursor-pointer select-none hover:bg-muted/50 focus-visible:bg-muted/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 transition-colors",
|
|
6273
6288
|
"relative group",
|
|
6274
6289
|
a.class
|
|
6275
6290
|
)
|
|
6276
|
-
), $ =
|
|
6291
|
+
), $ = k(() => {
|
|
6277
6292
|
if (a.sortable)
|
|
6278
6293
|
return a.sortDirection === "asc" ? "ascending" : a.sortDirection === "desc" ? "descending" : "none";
|
|
6279
|
-
}),
|
|
6294
|
+
}), v = k(() => {
|
|
6280
6295
|
if (!a.sortable) return null;
|
|
6281
6296
|
switch (a.sortDirection) {
|
|
6282
6297
|
case "asc":
|
|
@@ -6286,7 +6301,7 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6286
6301
|
default:
|
|
6287
6302
|
return se(Xt, { class: "ml-2 h-4 w-4 opacity-50" });
|
|
6288
6303
|
}
|
|
6289
|
-
}),
|
|
6304
|
+
}), _ = k(() => ({
|
|
6290
6305
|
width: a.resizable ? p.value + "px" : a.width ? a.width + "px" : void 0,
|
|
6291
6306
|
minWidth: a.resizable ? a.minWidth + "px" : void 0,
|
|
6292
6307
|
maxWidth: a.resizable ? a.maxWidth + "px" : void 0
|
|
@@ -6294,7 +6309,7 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6294
6309
|
function y() {
|
|
6295
6310
|
a.sortable && !i.value && n("sort");
|
|
6296
6311
|
}
|
|
6297
|
-
function
|
|
6312
|
+
function w(B) {
|
|
6298
6313
|
a.sortable && (B.key === "Enter" || B.key === " ") && (B.preventDefault(), n("sort"));
|
|
6299
6314
|
}
|
|
6300
6315
|
function S(B) {
|
|
@@ -6314,24 +6329,24 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6314
6329
|
ref_key: "headerRef",
|
|
6315
6330
|
ref: o,
|
|
6316
6331
|
"data-slot": "table-header",
|
|
6317
|
-
class:
|
|
6332
|
+
class: x(m.value),
|
|
6318
6333
|
tabindex: t.sortable ? 0 : void 0,
|
|
6319
6334
|
role: t.sortable ? "button" : void 0,
|
|
6320
6335
|
"aria-sort": $.value,
|
|
6321
6336
|
onClick: P[0] || (P[0] = (R) => t.sortable ? y : void 0),
|
|
6322
|
-
onKeydown: P[1] || (P[1] = (R) => t.sortable ?
|
|
6323
|
-
style: H(
|
|
6337
|
+
onKeydown: P[1] || (P[1] = (R) => t.sortable ? w : void 0),
|
|
6338
|
+
style: H(_.value)
|
|
6324
6339
|
}, [
|
|
6325
|
-
c("div",
|
|
6340
|
+
c("div", qi, [
|
|
6326
6341
|
d(B.$slots, "default"),
|
|
6327
|
-
t.sortable ? (r(), g(Y(
|
|
6342
|
+
t.sortable ? (r(), g(Y(v.value), { key: 0 })) : z("", !0)
|
|
6328
6343
|
]),
|
|
6329
6344
|
t.resizable ? (r(), l("div", {
|
|
6330
6345
|
key: 0,
|
|
6331
6346
|
class: "absolute right-0 top-0 w-1 h-full cursor-col-resize bg-transparent hover:bg-blue-500/50 transition-colors opacity-0 group-hover:opacity-100",
|
|
6332
6347
|
onMousedown: S
|
|
6333
6348
|
}, null, 32)) : z("", !0)
|
|
6334
|
-
], 46,
|
|
6349
|
+
], 46, Wi));
|
|
6335
6350
|
}
|
|
6336
6351
|
}), ip = /* @__PURE__ */ f({
|
|
6337
6352
|
__name: "table-row",
|
|
@@ -6342,22 +6357,22 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6342
6357
|
}
|
|
6343
6358
|
},
|
|
6344
6359
|
setup(t) {
|
|
6345
|
-
const a =
|
|
6360
|
+
const a = I("hover:bg-muted/50 data-[state=selected]:bg-muted border-b border-border transition-colors", t.class);
|
|
6346
6361
|
return (o, n) => (r(), l("tr", {
|
|
6347
6362
|
"data-slot": "table-row",
|
|
6348
|
-
class:
|
|
6363
|
+
class: x(s(a))
|
|
6349
6364
|
}, [
|
|
6350
6365
|
d(o.$slots, "default")
|
|
6351
6366
|
], 2));
|
|
6352
6367
|
}
|
|
6353
|
-
}),
|
|
6368
|
+
}), Ki = {
|
|
6354
6369
|
"data-slot": "table-container",
|
|
6355
6370
|
class: "relative w-full overflow-x-auto rounded-md border border-border"
|
|
6356
|
-
},
|
|
6371
|
+
}, Xi = {
|
|
6357
6372
|
key: 0,
|
|
6358
6373
|
"data-slot": "table-head",
|
|
6359
6374
|
class: "[&_tr]:border-b [&_tr]:border-border"
|
|
6360
|
-
},
|
|
6375
|
+
}, Ji = {
|
|
6361
6376
|
key: 1,
|
|
6362
6377
|
"data-slot": "table-body",
|
|
6363
6378
|
class: "[&_tr:last-child]:border-0"
|
|
@@ -6374,26 +6389,26 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6374
6389
|
}
|
|
6375
6390
|
},
|
|
6376
6391
|
setup(t) {
|
|
6377
|
-
const e = t, a = le(), o =
|
|
6392
|
+
const e = t, a = le(), o = k(() => (a.default ? a.default() : []).filter((p) => {
|
|
6378
6393
|
const m = p.type;
|
|
6379
6394
|
return m && (m.name === "TableRow" || m.__name === "TableRow");
|
|
6380
|
-
})), n =
|
|
6381
|
-
() =>
|
|
6395
|
+
})), n = k(
|
|
6396
|
+
() => I(
|
|
6382
6397
|
"w-full caption-bottom text-sm",
|
|
6383
6398
|
e.resizable && "table-fixed",
|
|
6384
6399
|
e.class
|
|
6385
6400
|
)
|
|
6386
6401
|
);
|
|
6387
|
-
return (i, p) => (r(), l("div",
|
|
6402
|
+
return (i, p) => (r(), l("div", Ki, [
|
|
6388
6403
|
c("table", {
|
|
6389
6404
|
"data-slot": "table",
|
|
6390
|
-
class:
|
|
6405
|
+
class: x(n.value)
|
|
6391
6406
|
}, [
|
|
6392
6407
|
d(i.$slots, "caption"),
|
|
6393
|
-
o.value.length ? (r(), l("thead",
|
|
6408
|
+
o.value.length ? (r(), l("thead", Xi, [
|
|
6394
6409
|
(r(), g(Y(o.value[0])))
|
|
6395
6410
|
])) : z("", !0),
|
|
6396
|
-
o.value.length > 1 ? (r(), l("tbody",
|
|
6411
|
+
o.value.length > 1 ? (r(), l("tbody", Ji, [
|
|
6397
6412
|
(r(!0), l(F, null, G(o.value.slice(1), (m, $) => (r(), g(Y(m), { key: $ }))), 128))
|
|
6398
6413
|
])) : z("", !0),
|
|
6399
6414
|
d(i.$slots, "default")
|
|
@@ -6416,7 +6431,7 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6416
6431
|
const e = t, a = U();
|
|
6417
6432
|
return (o, n) => (r(), g(s(Cl), b({
|
|
6418
6433
|
"data-slot": "tabs",
|
|
6419
|
-
class: s(
|
|
6434
|
+
class: s(I)(
|
|
6420
6435
|
"flex flex-col",
|
|
6421
6436
|
e.variant === "vertical" && "flex-row",
|
|
6422
6437
|
s(a).class
|
|
@@ -6428,16 +6443,16 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6428
6443
|
_: 3
|
|
6429
6444
|
}, 16, ["class"]));
|
|
6430
6445
|
}
|
|
6431
|
-
},
|
|
6446
|
+
}, Zi = {
|
|
6432
6447
|
key: 0,
|
|
6433
6448
|
class: "space-y-2"
|
|
6434
|
-
},
|
|
6449
|
+
}, Yi = { class: "flex items-center gap-2" }, Qi = ["id", "disabled", "readonly", "value"], ed = {
|
|
6435
6450
|
key: 0,
|
|
6436
6451
|
class: "text-sm text-red-600 flex items-center gap-1"
|
|
6437
|
-
},
|
|
6452
|
+
}, td = {
|
|
6438
6453
|
key: 1,
|
|
6439
6454
|
class: "text-sm text-green-600 flex items-center gap-1"
|
|
6440
|
-
},
|
|
6455
|
+
}, ad = ["disabled", "readonly", "value"], up = {
|
|
6441
6456
|
__name: "textarea",
|
|
6442
6457
|
props: {
|
|
6443
6458
|
modelValue: {
|
|
@@ -6476,18 +6491,18 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6476
6491
|
emits: ["update:modelValue"],
|
|
6477
6492
|
setup(t, { emit: e }) {
|
|
6478
6493
|
const a = U();
|
|
6479
|
-
return (o, n) => t.label ? (r(), l("div",
|
|
6480
|
-
c("div",
|
|
6494
|
+
return (o, n) => t.label ? (r(), l("div", Zi, [
|
|
6495
|
+
c("div", Yi, [
|
|
6481
6496
|
t.icon ? (r(), g(Y(t.icon), {
|
|
6482
6497
|
key: 0,
|
|
6483
6498
|
class: "h-4 w-4"
|
|
6484
6499
|
})) : z("", !0),
|
|
6485
|
-
t.label ? (r(), g(
|
|
6500
|
+
t.label ? (r(), g(ye, {
|
|
6486
6501
|
key: 1,
|
|
6487
6502
|
for: t.id
|
|
6488
6503
|
}, {
|
|
6489
6504
|
default: u(() => [
|
|
6490
|
-
O(
|
|
6505
|
+
O(M(t.label), 1)
|
|
6491
6506
|
]),
|
|
6492
6507
|
_: 1
|
|
6493
6508
|
}, 8, ["for"])) : z("", !0)
|
|
@@ -6506,13 +6521,13 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6506
6521
|
readonly: t.readonly,
|
|
6507
6522
|
value: t.modelValue,
|
|
6508
6523
|
onInput: n[0] || (n[0] = (i) => o.$emit("update:modelValue", i.target.value))
|
|
6509
|
-
}), null, 16,
|
|
6510
|
-
t.validationState === "error" && t.validationText ? (r(), l("p",
|
|
6511
|
-
|
|
6512
|
-
O(" " +
|
|
6513
|
-
])) : t.validationState === "success" && t.validationText ? (r(), l("p",
|
|
6514
|
-
|
|
6515
|
-
O(" " +
|
|
6524
|
+
}), null, 16, Qi),
|
|
6525
|
+
t.validationState === "error" && t.validationText ? (r(), l("p", ed, [
|
|
6526
|
+
h(s(Xe), { class: "h-4 w-4" }),
|
|
6527
|
+
O(" " + M(t.validationText), 1)
|
|
6528
|
+
])) : t.validationState === "success" && t.validationText ? (r(), l("p", td, [
|
|
6529
|
+
h(s(he), { class: "h-4 w-4" }),
|
|
6530
|
+
O(" " + M(t.validationText), 1)
|
|
6516
6531
|
])) : z("", !0)
|
|
6517
6532
|
])) : (r(), l("textarea", b({
|
|
6518
6533
|
key: 1,
|
|
@@ -6526,9 +6541,9 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6526
6541
|
readonly: t.readonly,
|
|
6527
6542
|
value: t.modelValue,
|
|
6528
6543
|
onInput: n[1] || (n[1] = (i) => o.$emit("update:modelValue", i.target.value))
|
|
6529
|
-
}), null, 16,
|
|
6544
|
+
}), null, 16, ad));
|
|
6530
6545
|
}
|
|
6531
|
-
},
|
|
6546
|
+
}, sd = ["width", "height", "viewBox"], od = ["d", "stroke", "stroke-width"], rd = ["cx", "cy", "r", "stroke", "stroke-width"], We = 4, pp = /* @__PURE__ */ f({
|
|
6532
6547
|
__name: "threat-gauge",
|
|
6533
6548
|
props: {
|
|
6534
6549
|
value: { type: Number, required: !0 },
|
|
@@ -6539,42 +6554,42 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6539
6554
|
snapToSegmentCenter: { type: Boolean, default: !1 }
|
|
6540
6555
|
},
|
|
6541
6556
|
setup(t) {
|
|
6542
|
-
const e = t, { value: a, level: o, size: n, gapDegrees: i, thicknessRatio: p, snapToSegmentCenter: m } =
|
|
6557
|
+
const e = t, { value: a, level: o, size: n, gapDegrees: i, thicknessRatio: p, snapToSegmentCenter: m } = Se(e), $ = {
|
|
6543
6558
|
LOW: "var(--success-500)",
|
|
6544
6559
|
MEDIUM: "var(--warning-400)",
|
|
6545
6560
|
HIGH: "var(--warning-600)",
|
|
6546
6561
|
CRITICAL: "var(--error-500)"
|
|
6547
|
-
},
|
|
6562
|
+
}, v = ["LOW", "MEDIUM", "HIGH", "CRITICAL"], _ = [
|
|
6548
6563
|
[0, 25],
|
|
6549
6564
|
[25, 50],
|
|
6550
6565
|
[50, 75],
|
|
6551
6566
|
[75, 100.0001]
|
|
6552
|
-
], y =
|
|
6553
|
-
() =>
|
|
6567
|
+
], y = k(() => Math.max(0, Math.min(i.value, 30)) / 180), w = k(() => y.value * (We - 1)), S = k(() => (1 - w.value) / We), B = k(
|
|
6568
|
+
() => v.map((W, ae) => {
|
|
6554
6569
|
const J = ae * (S.value + y.value), de = J + S.value;
|
|
6555
6570
|
return {
|
|
6556
6571
|
key: W,
|
|
6557
6572
|
color: $[W],
|
|
6558
|
-
range:
|
|
6573
|
+
range: _[ae],
|
|
6559
6574
|
tRange: [J, de]
|
|
6560
6575
|
};
|
|
6561
6576
|
})
|
|
6562
|
-
), P =
|
|
6577
|
+
), P = k(() => Math.max(4, n.value * p.value)), R = k(() => n.value * 0.45), K = k(() => n.value / 2), X = k(() => n.value * 0.65), E = k(() => Math.min(Math.max(a.value, 0), 100)), A = k(
|
|
6563
6578
|
() => B.value.find((W) => W.key === o.value) || B.value.find((W) => E.value >= W.range[0] && E.value < W.range[1]) || B.value[0]
|
|
6564
6579
|
);
|
|
6565
6580
|
function j(W, ae, J = 42) {
|
|
6566
6581
|
const de = [], St = Math.max(0, Math.min(1, ae) - Math.max(0, W)), Pe = Math.max(2, Math.round(J * St));
|
|
6567
|
-
for (let
|
|
6568
|
-
const Ct = W + (ae - W) *
|
|
6582
|
+
for (let xe = 0; xe <= Pe; xe++) {
|
|
6583
|
+
const Ct = W + (ae - W) * xe / Pe, Ae = Math.PI * (1 - Ct), Bt = K.value + R.value * Math.cos(Ae), zt = X.value - R.value * Math.sin(Ae);
|
|
6569
6584
|
de.push(`${Bt} ${zt}`);
|
|
6570
6585
|
}
|
|
6571
6586
|
return `M ${de[0]} L ${de.slice(1).join(" ")}`;
|
|
6572
6587
|
}
|
|
6573
|
-
const [L, te] =
|
|
6588
|
+
const [L, te] = k(() => A.value.range).value, ie = k(
|
|
6574
6589
|
() => m.value ? (L + te) / 2 : Math.min(Math.max(E.value, L), te)
|
|
6575
|
-
), vt =
|
|
6590
|
+
), vt = k(() => (ie.value - L) / (te - L)), [De, ht] = k(() => A.value.tRange).value, _t = k(() => De + (ht - De) * vt.value), Ve = k(() => Math.PI * (1 - _t.value)), yt = k(() => K.value + R.value * Math.cos(Ve.value)), xt = k(() => X.value - R.value * Math.sin(Ve.value)), wt = k(() => n.value * 0.12), kt = k(() => Math.max(8, n.value * 0.04)), $t = k(() => Math.max(2.5, n.value * 0.015));
|
|
6576
6591
|
return (W, ae) => (r(), l("div", {
|
|
6577
|
-
class:
|
|
6592
|
+
class: x(["relative", W.$attrs.class]),
|
|
6578
6593
|
style: H({ width: `${s(n)}px`, height: `${s(n)}px` })
|
|
6579
6594
|
}, [
|
|
6580
6595
|
(r(), l("svg", {
|
|
@@ -6590,7 +6605,7 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6590
6605
|
stroke: J.color,
|
|
6591
6606
|
"stroke-width": P.value,
|
|
6592
6607
|
"stroke-linecap": "butt"
|
|
6593
|
-
}, null, 8,
|
|
6608
|
+
}, null, 8, od))), 128)),
|
|
6594
6609
|
c("circle", {
|
|
6595
6610
|
cx: yt.value,
|
|
6596
6611
|
cy: xt.value,
|
|
@@ -6598,8 +6613,8 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6598
6613
|
fill: "#ffffff",
|
|
6599
6614
|
stroke: A.value.color,
|
|
6600
6615
|
"stroke-width": $t.value
|
|
6601
|
-
}, null, 8,
|
|
6602
|
-
], 8,
|
|
6616
|
+
}, null, 8, rd)
|
|
6617
|
+
], 8, sd)),
|
|
6603
6618
|
c("div", {
|
|
6604
6619
|
class: "absolute left-1/2 font-semibold text-center",
|
|
6605
6620
|
style: H({
|
|
@@ -6609,10 +6624,10 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6609
6624
|
fontSize: `${wt.value}px`,
|
|
6610
6625
|
lineHeight: 1.1
|
|
6611
6626
|
})
|
|
6612
|
-
},
|
|
6627
|
+
}, M(s(o)), 5)
|
|
6613
6628
|
], 6));
|
|
6614
6629
|
}
|
|
6615
|
-
}),
|
|
6630
|
+
}), nd = /* @__PURE__ */ f({
|
|
6616
6631
|
__name: "Toggle",
|
|
6617
6632
|
props: {
|
|
6618
6633
|
defaultValue: { type: Boolean },
|
|
@@ -6630,7 +6645,7 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6630
6645
|
setup(t, { emit: e }) {
|
|
6631
6646
|
const a = t, o = e, n = D(a, "class", "size", "variant"), i = N(n, o);
|
|
6632
6647
|
return (p, m) => (r(), g(s(ls), b({ "data-slot": "toggle" }, s(i), {
|
|
6633
|
-
class: s(C)(s(
|
|
6648
|
+
class: s(C)(s(ld)({ variant: t.variant, size: t.size }), a.class)
|
|
6634
6649
|
}), {
|
|
6635
6650
|
default: u(($) => [
|
|
6636
6651
|
d(p.$slots, "default", Q(ee($)))
|
|
@@ -6638,7 +6653,7 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6638
6653
|
_: 3
|
|
6639
6654
|
}, 16, ["class"]));
|
|
6640
6655
|
}
|
|
6641
|
-
}),
|
|
6656
|
+
}), ld = Ce(
|
|
6642
6657
|
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",
|
|
6643
6658
|
{
|
|
6644
6659
|
variants: {
|
|
@@ -6657,7 +6672,7 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6657
6672
|
size: "default"
|
|
6658
6673
|
}
|
|
6659
6674
|
}
|
|
6660
|
-
),
|
|
6675
|
+
), id = { class: "flex items-center gap-2" }, dd = "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap", fp = /* @__PURE__ */ f({
|
|
6661
6676
|
__name: "toggle",
|
|
6662
6677
|
props: {
|
|
6663
6678
|
modelValue: Boolean,
|
|
@@ -6686,16 +6701,16 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6686
6701
|
default: "h-9 px-2 min-w-9",
|
|
6687
6702
|
sm: "h-8 px-1.5 min-w-8",
|
|
6688
6703
|
lg: "h-10 px-2.5 min-w-10"
|
|
6689
|
-
}, $ =
|
|
6690
|
-
() =>
|
|
6691
|
-
|
|
6704
|
+
}, $ = k(
|
|
6705
|
+
() => I(
|
|
6706
|
+
dd,
|
|
6692
6707
|
p[a.variant],
|
|
6693
6708
|
m[a.size],
|
|
6694
6709
|
a.class
|
|
6695
6710
|
)
|
|
6696
6711
|
);
|
|
6697
|
-
return (
|
|
6698
|
-
|
|
6712
|
+
return (v, _) => (r(), l("div", id, [
|
|
6713
|
+
h(s(nd), b({
|
|
6699
6714
|
id: t.id,
|
|
6700
6715
|
"data-slot": "toggle",
|
|
6701
6716
|
class: $.value,
|
|
@@ -6703,19 +6718,19 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6703
6718
|
disabled: t.disabled
|
|
6704
6719
|
}, s(n), {
|
|
6705
6720
|
modelValue: s(i),
|
|
6706
|
-
"onUpdate:modelValue":
|
|
6721
|
+
"onUpdate:modelValue": _[0] || (_[0] = (y) => fe(i) ? i.value = y : null)
|
|
6707
6722
|
}), {
|
|
6708
6723
|
default: u(() => [
|
|
6709
|
-
d(
|
|
6724
|
+
d(v.$slots, "default")
|
|
6710
6725
|
]),
|
|
6711
6726
|
_: 3
|
|
6712
6727
|
}, 16, ["id", "class", "aria-label", "disabled", "modelValue"]),
|
|
6713
|
-
t.label ? (r(), g(
|
|
6728
|
+
t.label ? (r(), g(ye, {
|
|
6714
6729
|
key: 0,
|
|
6715
6730
|
for: t.id
|
|
6716
6731
|
}, {
|
|
6717
6732
|
default: u(() => [
|
|
6718
|
-
O(
|
|
6733
|
+
O(M(t.label), 1)
|
|
6719
6734
|
]),
|
|
6720
6735
|
_: 1
|
|
6721
6736
|
}, 8, ["for"])) : z("", !0)
|
|
@@ -6723,137 +6738,137 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6723
6738
|
}
|
|
6724
6739
|
});
|
|
6725
6740
|
export {
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
|
|
6738
|
-
|
|
6741
|
+
qc as Accessibility,
|
|
6742
|
+
Kd as Accordion,
|
|
6743
|
+
Gd as AccordionContent,
|
|
6744
|
+
Wd as AccordionItem,
|
|
6745
|
+
qd as AccordionTrigger,
|
|
6746
|
+
Yd as Alert,
|
|
6747
|
+
Xd as AlertActions,
|
|
6748
|
+
Jd as AlertDescription,
|
|
6749
|
+
Zd as AlertTitle,
|
|
6750
|
+
Kc as AlignLeft,
|
|
6751
|
+
Xc as ArrowDown,
|
|
6752
|
+
Jc as ArrowUp,
|
|
6753
|
+
Zc as ArrowUpDown,
|
|
6739
6754
|
vo as Avatar,
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
6755
|
+
Qd as AvatarFallback,
|
|
6756
|
+
ec as AvatarGroup,
|
|
6757
|
+
tc as AvatarImage,
|
|
6743
6758
|
oe as Badge,
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
6759
|
+
we as BaseSidebar,
|
|
6760
|
+
ri as BasicSearch,
|
|
6761
|
+
Yc as BookOpen,
|
|
6762
|
+
oc as Breadcrumb,
|
|
6763
|
+
xd as BreadcrumbEllipsis,
|
|
6764
|
+
ac as BreadcrumbItem,
|
|
6765
|
+
_d as BreadcrumbLink,
|
|
6766
|
+
hd as BreadcrumbList,
|
|
6767
|
+
yd as BreadcrumbPage,
|
|
6768
|
+
sc as BreadcrumbSeparator,
|
|
6754
6769
|
ge as Button,
|
|
6755
|
-
|
|
6756
|
-
|
|
6757
|
-
|
|
6758
|
-
|
|
6759
|
-
|
|
6760
|
-
|
|
6761
|
-
|
|
6762
|
-
|
|
6770
|
+
Qc as Calendar,
|
|
6771
|
+
cc as Card,
|
|
6772
|
+
rc as CardContent,
|
|
6773
|
+
nc as CardDescription,
|
|
6774
|
+
lc as CardFooter,
|
|
6775
|
+
ic as CardHeader,
|
|
6776
|
+
dc as CardTitle,
|
|
6777
|
+
uc as CategoryBreakdownMetric,
|
|
6763
6778
|
pe as Check,
|
|
6764
6779
|
cr as Checkbox,
|
|
6765
|
-
|
|
6766
|
-
|
|
6767
|
-
|
|
6768
|
-
|
|
6769
|
-
|
|
6780
|
+
eu as ChevronRight,
|
|
6781
|
+
tu as Circle,
|
|
6782
|
+
Dd as Collapsible,
|
|
6783
|
+
Vd as CollapsibleContent,
|
|
6784
|
+
Pd as CollapsibleTrigger,
|
|
6770
6785
|
Ps as Command,
|
|
6771
|
-
|
|
6772
|
-
|
|
6773
|
-
|
|
6774
|
-
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
|
-
|
|
6780
|
-
|
|
6781
|
-
|
|
6782
|
-
|
|
6783
|
-
|
|
6784
|
-
|
|
6785
|
-
|
|
6786
|
-
|
|
6787
|
-
|
|
6788
|
-
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
|
|
6801
|
-
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
|
|
6820
|
-
|
|
6821
|
-
|
|
6822
|
-
|
|
6823
|
-
|
|
6824
|
-
|
|
6825
|
-
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
|
|
6786
|
+
kd as CommandDialog,
|
|
6787
|
+
$d as CommandEmpty,
|
|
6788
|
+
Sd as CommandGroup,
|
|
6789
|
+
Cd as CommandInput,
|
|
6790
|
+
Bd as CommandItem,
|
|
6791
|
+
zd as CommandList,
|
|
6792
|
+
Id as CommandSeparator,
|
|
6793
|
+
Md as CommandShortcut,
|
|
6794
|
+
au as Copy,
|
|
6795
|
+
wc as Dialog,
|
|
6796
|
+
pc as DialogBody,
|
|
6797
|
+
fc as DialogClose,
|
|
6798
|
+
mc as DialogContent,
|
|
6799
|
+
gc as DialogDescription,
|
|
6800
|
+
bc as DialogFooter,
|
|
6801
|
+
vc as DialogHeader,
|
|
6802
|
+
hc as DialogOverlay,
|
|
6803
|
+
_c as DialogPortal,
|
|
6804
|
+
yc as DialogTitle,
|
|
6805
|
+
xc as DialogTrigger,
|
|
6806
|
+
kc as DismissibleBadgesDemo,
|
|
6807
|
+
su as Dot,
|
|
6808
|
+
Mc as Drawer,
|
|
6809
|
+
$c as DrawerContent,
|
|
6810
|
+
Sc as DrawerDescription,
|
|
6811
|
+
Cc as DrawerFooter,
|
|
6812
|
+
Bc as DrawerHeader,
|
|
6813
|
+
zc as DrawerTitle,
|
|
6814
|
+
Ic as DrawerTrigger,
|
|
6815
|
+
Gc as DropdownMenu,
|
|
6816
|
+
Tc as DropdownMenuCheckboxItem,
|
|
6817
|
+
Dc as DropdownMenuContent,
|
|
6818
|
+
Vc as DropdownMenuGroup,
|
|
6819
|
+
Pc as DropdownMenuItem,
|
|
6820
|
+
Ac as DropdownMenuLabel,
|
|
6821
|
+
Oc as DropdownMenuPortal,
|
|
6822
|
+
jc as DropdownMenuRadioGroup,
|
|
6823
|
+
Lc as DropdownMenuRadioItem,
|
|
6824
|
+
Rc as DropdownMenuSeparator,
|
|
6825
|
+
Fc as DropdownMenuShortcut,
|
|
6826
|
+
Uc as DropdownMenuSub,
|
|
6827
|
+
Ec as DropdownMenuSubContent,
|
|
6828
|
+
Nc as DropdownMenuSubTrigger,
|
|
6829
|
+
Hc as DropdownMenuTrigger,
|
|
6830
|
+
ou as Edit,
|
|
6831
|
+
ru as FileText,
|
|
6832
|
+
nu as Folder,
|
|
6833
|
+
lu as FolderOpen,
|
|
6834
|
+
Wc as GroupedAvatar,
|
|
6835
|
+
iu as Hash,
|
|
6836
|
+
du as Home,
|
|
6837
|
+
hu as Input,
|
|
6838
|
+
Od as InputOTP,
|
|
6839
|
+
jd as InputOTPGroup,
|
|
6840
|
+
Ld as InputOTPSeparator,
|
|
6841
|
+
Rd as InputOTPSlot,
|
|
6842
|
+
vu as InputOtp,
|
|
6843
|
+
ye as Label,
|
|
6844
|
+
cu as Minus,
|
|
6845
|
+
uu as MoreHorizontal,
|
|
6846
|
+
_u as Pagination,
|
|
6832
6847
|
hl as Popover,
|
|
6833
6848
|
to as PopoverContent,
|
|
6834
6849
|
oo as PopoverTrigger,
|
|
6835
|
-
|
|
6836
|
-
|
|
6837
|
-
|
|
6850
|
+
yu as Progress,
|
|
6851
|
+
wu as RadioGroup,
|
|
6852
|
+
xu as RadioGroupItem,
|
|
6838
6853
|
Ne as ResponsiveSearch,
|
|
6839
|
-
|
|
6854
|
+
Cu as ScrollableTabsList,
|
|
6840
6855
|
Bu as Select,
|
|
6841
|
-
|
|
6842
|
-
|
|
6843
|
-
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
|
|
6856
|
+
Fd as SelectContent,
|
|
6857
|
+
Hd as SelectItem,
|
|
6858
|
+
Wl as SelectMultiple,
|
|
6859
|
+
Ed as SelectSeparator,
|
|
6860
|
+
Nd as SelectTrigger,
|
|
6861
|
+
Ud as SelectValue,
|
|
6847
6862
|
zu as Separator,
|
|
6848
|
-
|
|
6849
|
-
|
|
6863
|
+
pu as Settings,
|
|
6864
|
+
Yl as Sheet,
|
|
6850
6865
|
co as SheetContent,
|
|
6851
6866
|
uo as SheetDescription,
|
|
6852
6867
|
po as SheetHeader,
|
|
6853
6868
|
fo as SheetTitle,
|
|
6854
6869
|
Ju as Sidebar,
|
|
6855
6870
|
Ku as SidebarCollapseButton,
|
|
6856
|
-
|
|
6871
|
+
ke as SidebarContent,
|
|
6857
6872
|
Hu as SidebarDescription,
|
|
6858
6873
|
Xu as SidebarExpandButton,
|
|
6859
6874
|
Nu as SidebarFooter,
|
|
@@ -6878,16 +6893,16 @@ export {
|
|
|
6878
6893
|
Uu as SidebarTitle,
|
|
6879
6894
|
Iu as SidebarTrigger,
|
|
6880
6895
|
Yu as Skeleton,
|
|
6881
|
-
|
|
6896
|
+
fu as Slash,
|
|
6882
6897
|
Qu as Slider,
|
|
6883
6898
|
ep as Sonner,
|
|
6884
|
-
|
|
6885
|
-
|
|
6899
|
+
wd as Spinner,
|
|
6900
|
+
Td as Switch,
|
|
6886
6901
|
ap as Tab,
|
|
6887
|
-
|
|
6888
|
-
|
|
6902
|
+
Su as TabContent,
|
|
6903
|
+
ku as TabList,
|
|
6889
6904
|
tp as TabPanel,
|
|
6890
|
-
|
|
6905
|
+
$u as TabTrigger,
|
|
6891
6906
|
dp as Table,
|
|
6892
6907
|
sp as TableBody,
|
|
6893
6908
|
op as TableCaption,
|
|
@@ -6903,13 +6918,13 @@ export {
|
|
|
6903
6918
|
Ts as TooltipContent,
|
|
6904
6919
|
Ds as TooltipProvider,
|
|
6905
6920
|
Vs as TooltipTrigger,
|
|
6906
|
-
|
|
6907
|
-
|
|
6908
|
-
|
|
6909
|
-
|
|
6921
|
+
mu as Trash2,
|
|
6922
|
+
Ad as Tree,
|
|
6923
|
+
gu as Type,
|
|
6924
|
+
bu as User,
|
|
6910
6925
|
Ue as Wrapper,
|
|
6911
6926
|
Es as provideCommandContext,
|
|
6912
6927
|
Us as provideCommandGroupContext,
|
|
6913
|
-
|
|
6928
|
+
_e as useCommand,
|
|
6914
6929
|
Ns as useCommandGroup
|
|
6915
6930
|
};
|