opsfuse-ui 0.1.13 → 0.1.15
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/components/ui/avatar.d.ts +1 -1
- package/dist/components/ui/avatar.d.ts.map +1 -1
- package/dist/components/ui/shadcn/shadcn-avatar.d.ts +6 -4
- package/dist/components/ui/shadcn/shadcn-avatar.d.ts.map +1 -1
- package/dist/core.js +1 -1
- package/dist/index.js +1 -1
- package/dist/style.css +43 -2
- package/dist/{toggle-group-i5DSmKdR.js → toggle-group-eVKmACHy.js} +559 -549
- package/package.json +1 -1
|
@@ -7402,37 +7402,47 @@ function av({ ...e }) {
|
|
|
7402
7402
|
}
|
|
7403
7403
|
//#endregion
|
|
7404
7404
|
//#region src/components/ui/shadcn/shadcn-avatar.tsx
|
|
7405
|
-
|
|
7405
|
+
var ov = f("group/avatar relative flex shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken dark:after:mix-blend-lighten", {
|
|
7406
|
+
variants: { size: {
|
|
7407
|
+
sm: "size-6",
|
|
7408
|
+
default: "size-8",
|
|
7409
|
+
lg: "size-10",
|
|
7410
|
+
xl: "size-16",
|
|
7411
|
+
"2xl": "size-24"
|
|
7412
|
+
} },
|
|
7413
|
+
defaultVariants: { size: "default" }
|
|
7414
|
+
});
|
|
7415
|
+
function sv({ className: e, size: t = "default", ...n }) {
|
|
7406
7416
|
return /* @__PURE__ */ R(tr, {
|
|
7407
7417
|
"data-slot": "avatar",
|
|
7408
7418
|
"data-size": t,
|
|
7409
|
-
className: O(
|
|
7419
|
+
className: O(ov({ size: t }), e),
|
|
7410
7420
|
...n
|
|
7411
7421
|
});
|
|
7412
7422
|
}
|
|
7413
|
-
function
|
|
7423
|
+
function cv({ className: e, ...t }) {
|
|
7414
7424
|
return /* @__PURE__ */ R(nr, {
|
|
7415
7425
|
"data-slot": "avatar-image",
|
|
7416
7426
|
className: O("aspect-square size-full rounded-full object-cover", e),
|
|
7417
7427
|
...t
|
|
7418
7428
|
});
|
|
7419
7429
|
}
|
|
7420
|
-
function
|
|
7430
|
+
function lv({ className: e, ...t }) {
|
|
7421
7431
|
return /* @__PURE__ */ R(rr, {
|
|
7422
7432
|
"data-slot": "avatar-fallback",
|
|
7423
|
-
className: O("flex size-full items-center justify-center rounded-full bg-muted text-sm text-
|
|
7433
|
+
className: O("flex size-full items-center justify-center rounded-full bg-muted text-muted-foreground group-data-[size=sm]/avatar:text-xs group-data-[size=default]/avatar:text-sm group-data-[size=lg]/avatar:text-sm group-data-[size=xl]/avatar:text-lg group-data-[size=2xl]/avatar:text-xl", e),
|
|
7424
7434
|
...t
|
|
7425
7435
|
});
|
|
7426
7436
|
}
|
|
7427
7437
|
//#endregion
|
|
7428
7438
|
//#region src/components/ui/avatar.tsx
|
|
7429
|
-
var
|
|
7439
|
+
var uv = ({ src: e, alt: t, fallback: n, size: r = "default" }) => /* @__PURE__ */ z(sv, {
|
|
7430
7440
|
size: r,
|
|
7431
|
-
children: [e && /* @__PURE__ */ R(
|
|
7441
|
+
children: [e && /* @__PURE__ */ R(cv, {
|
|
7432
7442
|
src: e,
|
|
7433
7443
|
alt: t
|
|
7434
|
-
}), n && /* @__PURE__ */ R(
|
|
7435
|
-
}),
|
|
7444
|
+
}), n && /* @__PURE__ */ R(lv, { children: n })]
|
|
7445
|
+
}), dv = f("group/badge inline-flex h-6 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
|
|
7436
7446
|
variants: { variant: {
|
|
7437
7447
|
default: "bg-primary text-primary-foreground hover:bg-primary/80",
|
|
7438
7448
|
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
@@ -7450,17 +7460,17 @@ var lv = ({ src: e, alt: t, fallback: n, size: r = "default" }) => /* @__PURE__
|
|
|
7450
7460
|
} },
|
|
7451
7461
|
defaultVariants: { variant: "default" }
|
|
7452
7462
|
});
|
|
7453
|
-
function
|
|
7463
|
+
function fv({ className: e, variant: t = "default", asChild: n = !1, ...r }) {
|
|
7454
7464
|
return /* @__PURE__ */ R(n ? h : "span", {
|
|
7455
7465
|
"data-slot": "badge",
|
|
7456
7466
|
"data-variant": t,
|
|
7457
|
-
className: O(t === "aiLive" ? "badge-ai" :
|
|
7467
|
+
className: O(t === "aiLive" ? "badge-ai" : dv({ variant: t }), e),
|
|
7458
7468
|
...r
|
|
7459
7469
|
});
|
|
7460
7470
|
}
|
|
7461
7471
|
//#endregion
|
|
7462
7472
|
//#region src/components/ui/breadcrumb.tsx
|
|
7463
|
-
function
|
|
7473
|
+
function pv({ className: e, ...t }) {
|
|
7464
7474
|
return /* @__PURE__ */ R("nav", {
|
|
7465
7475
|
"aria-label": "breadcrumb",
|
|
7466
7476
|
"data-slot": "breadcrumb",
|
|
@@ -7468,28 +7478,28 @@ function fv({ className: e, ...t }) {
|
|
|
7468
7478
|
...t
|
|
7469
7479
|
});
|
|
7470
7480
|
}
|
|
7471
|
-
function
|
|
7481
|
+
function mv({ className: e, ...t }) {
|
|
7472
7482
|
return /* @__PURE__ */ R("ol", {
|
|
7473
7483
|
"data-slot": "breadcrumb-list",
|
|
7474
7484
|
className: O("flex flex-wrap items-center gap-1.5 text-sm wrap-break-word text-muted-foreground sm:gap-2.5", e),
|
|
7475
7485
|
...t
|
|
7476
7486
|
});
|
|
7477
7487
|
}
|
|
7478
|
-
function
|
|
7488
|
+
function hv({ className: e, ...t }) {
|
|
7479
7489
|
return /* @__PURE__ */ R("li", {
|
|
7480
7490
|
"data-slot": "breadcrumb-item",
|
|
7481
7491
|
className: O("inline-flex items-center gap-1.5", e),
|
|
7482
7492
|
...t
|
|
7483
7493
|
});
|
|
7484
7494
|
}
|
|
7485
|
-
function
|
|
7495
|
+
function gv({ asChild: e, className: t, ...n }) {
|
|
7486
7496
|
return /* @__PURE__ */ R(e ? h : "a", {
|
|
7487
7497
|
"data-slot": "breadcrumb-link",
|
|
7488
7498
|
className: O("transition-colors hover:text-foreground", t),
|
|
7489
7499
|
...n
|
|
7490
7500
|
});
|
|
7491
7501
|
}
|
|
7492
|
-
function
|
|
7502
|
+
function _v({ className: e, ...t }) {
|
|
7493
7503
|
return /* @__PURE__ */ R("span", {
|
|
7494
7504
|
"data-slot": "breadcrumb-page",
|
|
7495
7505
|
role: "link",
|
|
@@ -7499,7 +7509,7 @@ function gv({ className: e, ...t }) {
|
|
|
7499
7509
|
...t
|
|
7500
7510
|
});
|
|
7501
7511
|
}
|
|
7502
|
-
function
|
|
7512
|
+
function vv({ children: e, className: t, ...n }) {
|
|
7503
7513
|
return /* @__PURE__ */ R("li", {
|
|
7504
7514
|
"data-slot": "breadcrumb-separator",
|
|
7505
7515
|
role: "presentation",
|
|
@@ -7509,7 +7519,7 @@ function _v({ children: e, className: t, ...n }) {
|
|
|
7509
7519
|
children: e ?? /* @__PURE__ */ R(we, {})
|
|
7510
7520
|
});
|
|
7511
7521
|
}
|
|
7512
|
-
function
|
|
7522
|
+
function yv({ className: e, ...t }) {
|
|
7513
7523
|
return /* @__PURE__ */ z("span", {
|
|
7514
7524
|
"data-slot": "breadcrumb-ellipsis",
|
|
7515
7525
|
role: "presentation",
|
|
@@ -7524,7 +7534,7 @@ function vv({ className: e, ...t }) {
|
|
|
7524
7534
|
}
|
|
7525
7535
|
//#endregion
|
|
7526
7536
|
//#region src/components/ui/separator.tsx
|
|
7527
|
-
function
|
|
7537
|
+
function bv({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }) {
|
|
7528
7538
|
return /* @__PURE__ */ R(xm, {
|
|
7529
7539
|
"data-slot": "separator",
|
|
7530
7540
|
decorative: n,
|
|
@@ -7535,30 +7545,30 @@ function yv({ className: e, orientation: t = "horizontal", decorative: n = !0, .
|
|
|
7535
7545
|
}
|
|
7536
7546
|
//#endregion
|
|
7537
7547
|
//#region src/components/ui/button-group.tsx
|
|
7538
|
-
var
|
|
7548
|
+
var xv = f("flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1", {
|
|
7539
7549
|
variants: { orientation: {
|
|
7540
7550
|
horizontal: "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-lg!",
|
|
7541
7551
|
vertical: "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg!"
|
|
7542
7552
|
} },
|
|
7543
7553
|
defaultVariants: { orientation: "horizontal" }
|
|
7544
7554
|
});
|
|
7545
|
-
function
|
|
7555
|
+
function Sv({ className: e, orientation: t, ...n }) {
|
|
7546
7556
|
return /* @__PURE__ */ R("div", {
|
|
7547
7557
|
role: "group",
|
|
7548
7558
|
"data-slot": "button-group",
|
|
7549
7559
|
"data-orientation": t,
|
|
7550
|
-
className: O(
|
|
7560
|
+
className: O(xv({ orientation: t }), e),
|
|
7551
7561
|
...n
|
|
7552
7562
|
});
|
|
7553
7563
|
}
|
|
7554
|
-
function
|
|
7564
|
+
function Cv({ className: e, asChild: t = !1, ...n }) {
|
|
7555
7565
|
return /* @__PURE__ */ R(t ? h : "div", {
|
|
7556
7566
|
className: O("flex items-center gap-2 rounded-lg border bg-muted px-2.5 text-sm font-medium [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", e),
|
|
7557
7567
|
...n
|
|
7558
7568
|
});
|
|
7559
7569
|
}
|
|
7560
|
-
function
|
|
7561
|
-
return /* @__PURE__ */ R(
|
|
7570
|
+
function wv({ className: e, orientation: t = "vertical", ...n }) {
|
|
7571
|
+
return /* @__PURE__ */ R(bv, {
|
|
7562
7572
|
"data-slot": "button-group-separator",
|
|
7563
7573
|
orientation: t,
|
|
7564
7574
|
className: O("relative self-stretch bg-input data-horizontal:mx-px data-horizontal:w-auto data-vertical:my-px data-vertical:h-auto", e),
|
|
@@ -7567,7 +7577,7 @@ function Cv({ className: e, orientation: t = "vertical", ...n }) {
|
|
|
7567
7577
|
}
|
|
7568
7578
|
//#endregion
|
|
7569
7579
|
//#region src/components/ui/card.tsx
|
|
7570
|
-
function
|
|
7580
|
+
function Tv({ className: e, size: t = "default", variant: n = "default", ...r }) {
|
|
7571
7581
|
return /* @__PURE__ */ R("div", {
|
|
7572
7582
|
"data-slot": "card",
|
|
7573
7583
|
"data-size": t,
|
|
@@ -7576,42 +7586,42 @@ function wv({ className: e, size: t = "default", variant: n = "default", ...r })
|
|
|
7576
7586
|
...r
|
|
7577
7587
|
});
|
|
7578
7588
|
}
|
|
7579
|
-
function
|
|
7589
|
+
function Ev({ className: e, ...t }) {
|
|
7580
7590
|
return /* @__PURE__ */ R("div", {
|
|
7581
7591
|
"data-slot": "card-header",
|
|
7582
7592
|
className: O("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-6 group-data-[size=sm]/card:px-4 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-6 group-data-[size=sm]/card:[.border-b]:pb-4", e),
|
|
7583
7593
|
...t
|
|
7584
7594
|
});
|
|
7585
7595
|
}
|
|
7586
|
-
function
|
|
7596
|
+
function Dv({ className: e, ...t }) {
|
|
7587
7597
|
return /* @__PURE__ */ R("div", {
|
|
7588
7598
|
"data-slot": "card-title",
|
|
7589
7599
|
className: O("font-heading text-base leading-normal font-semibold group-data-[size=sm]/card:text-sm", e),
|
|
7590
7600
|
...t
|
|
7591
7601
|
});
|
|
7592
7602
|
}
|
|
7593
|
-
function
|
|
7603
|
+
function Ov({ className: e, ...t }) {
|
|
7594
7604
|
return /* @__PURE__ */ R("div", {
|
|
7595
7605
|
"data-slot": "card-description",
|
|
7596
7606
|
className: O("text-sm text-muted-foreground", e),
|
|
7597
7607
|
...t
|
|
7598
7608
|
});
|
|
7599
7609
|
}
|
|
7600
|
-
function
|
|
7610
|
+
function kv({ className: e, ...t }) {
|
|
7601
7611
|
return /* @__PURE__ */ R("div", {
|
|
7602
7612
|
"data-slot": "card-action",
|
|
7603
7613
|
className: O("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
|
|
7604
7614
|
...t
|
|
7605
7615
|
});
|
|
7606
7616
|
}
|
|
7607
|
-
function
|
|
7617
|
+
function Av({ className: e, ...t }) {
|
|
7608
7618
|
return /* @__PURE__ */ R("div", {
|
|
7609
7619
|
"data-slot": "card-content",
|
|
7610
7620
|
className: O("px-6 group-data-[size=sm]/card:px-4", e),
|
|
7611
7621
|
...t
|
|
7612
7622
|
});
|
|
7613
7623
|
}
|
|
7614
|
-
function
|
|
7624
|
+
function jv({ className: e, ...t }) {
|
|
7615
7625
|
return /* @__PURE__ */ R("div", {
|
|
7616
7626
|
"data-slot": "card-footer",
|
|
7617
7627
|
className: O("flex items-center rounded-b-xl px-6 group-data-[size=sm]/card:px-4 [.border-t]:pt-6 group-data-[size=sm]/card:[.border-t]:pt-4", e),
|
|
@@ -7620,7 +7630,7 @@ function Av({ className: e, ...t }) {
|
|
|
7620
7630
|
}
|
|
7621
7631
|
//#endregion
|
|
7622
7632
|
//#region src/components/ui/checkbox.tsx
|
|
7623
|
-
function
|
|
7633
|
+
function Mv({ className: e, label: t, helperText: n, error: r = !1, id: i, ...a }) {
|
|
7624
7634
|
return /* @__PURE__ */ z("div", {
|
|
7625
7635
|
className: "flex flex-col gap-1",
|
|
7626
7636
|
children: [/* @__PURE__ */ z("div", {
|
|
@@ -7648,19 +7658,19 @@ function jv({ className: e, label: t, helperText: n, error: r = !1, id: i, ...a
|
|
|
7648
7658
|
}
|
|
7649
7659
|
//#endregion
|
|
7650
7660
|
//#region src/components/ui/collapsible.tsx
|
|
7651
|
-
function
|
|
7661
|
+
function Nv({ ...e }) {
|
|
7652
7662
|
return /* @__PURE__ */ R(_t, {
|
|
7653
7663
|
"data-slot": "collapsible",
|
|
7654
7664
|
...e
|
|
7655
7665
|
});
|
|
7656
7666
|
}
|
|
7657
|
-
function
|
|
7667
|
+
function Pv({ ...e }) {
|
|
7658
7668
|
return /* @__PURE__ */ R(ft, {
|
|
7659
7669
|
"data-slot": "collapsible-trigger",
|
|
7660
7670
|
...e
|
|
7661
7671
|
});
|
|
7662
7672
|
}
|
|
7663
|
-
function
|
|
7673
|
+
function Fv({ ...e }) {
|
|
7664
7674
|
return /* @__PURE__ */ R(mt, {
|
|
7665
7675
|
"data-slot": "collapsible-content",
|
|
7666
7676
|
...e
|
|
@@ -7668,44 +7678,44 @@ function Pv({ ...e }) {
|
|
|
7668
7678
|
}
|
|
7669
7679
|
//#endregion
|
|
7670
7680
|
//#region src/components/ui/context-menu.tsx
|
|
7671
|
-
function
|
|
7681
|
+
function Iv({ ...e }) {
|
|
7672
7682
|
return /* @__PURE__ */ R(Bo, {
|
|
7673
7683
|
"data-slot": "context-menu",
|
|
7674
7684
|
...e
|
|
7675
7685
|
});
|
|
7676
7686
|
}
|
|
7677
|
-
function
|
|
7687
|
+
function Lv({ className: e, ...t }) {
|
|
7678
7688
|
return /* @__PURE__ */ R(Vo, {
|
|
7679
7689
|
"data-slot": "context-menu-trigger",
|
|
7680
7690
|
className: O("select-none", e),
|
|
7681
7691
|
...t
|
|
7682
7692
|
});
|
|
7683
7693
|
}
|
|
7684
|
-
function
|
|
7694
|
+
function Rv({ ...e }) {
|
|
7685
7695
|
return /* @__PURE__ */ R(Wo, {
|
|
7686
7696
|
"data-slot": "context-menu-group",
|
|
7687
7697
|
...e
|
|
7688
7698
|
});
|
|
7689
7699
|
}
|
|
7690
|
-
function
|
|
7700
|
+
function zv({ ...e }) {
|
|
7691
7701
|
return /* @__PURE__ */ R(Ho, {
|
|
7692
7702
|
"data-slot": "context-menu-portal",
|
|
7693
7703
|
...e
|
|
7694
7704
|
});
|
|
7695
7705
|
}
|
|
7696
|
-
function
|
|
7706
|
+
function Bv({ ...e }) {
|
|
7697
7707
|
return /* @__PURE__ */ R(Qo, {
|
|
7698
7708
|
"data-slot": "context-menu-sub",
|
|
7699
7709
|
...e
|
|
7700
7710
|
});
|
|
7701
7711
|
}
|
|
7702
|
-
function
|
|
7712
|
+
function Vv({ ...e }) {
|
|
7703
7713
|
return /* @__PURE__ */ R(Jo, {
|
|
7704
7714
|
"data-slot": "context-menu-radio-group",
|
|
7705
7715
|
...e
|
|
7706
7716
|
});
|
|
7707
7717
|
}
|
|
7708
|
-
function
|
|
7718
|
+
function Hv({ className: t, style: n, ...r }) {
|
|
7709
7719
|
let i = e();
|
|
7710
7720
|
return /* @__PURE__ */ R(Ho, { children: /* @__PURE__ */ R(Uo, {
|
|
7711
7721
|
"data-slot": "context-menu-content",
|
|
@@ -7717,7 +7727,7 @@ function Vv({ className: t, style: n, ...r }) {
|
|
|
7717
7727
|
...r
|
|
7718
7728
|
}) });
|
|
7719
7729
|
}
|
|
7720
|
-
function
|
|
7730
|
+
function Uv({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
7721
7731
|
return /* @__PURE__ */ R(Ko, {
|
|
7722
7732
|
"data-slot": "context-menu-item",
|
|
7723
7733
|
"data-inset": t,
|
|
@@ -7726,7 +7736,7 @@ function Hv({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
|
7726
7736
|
...r
|
|
7727
7737
|
});
|
|
7728
7738
|
}
|
|
7729
|
-
function
|
|
7739
|
+
function Wv({ className: e, inset: t, children: n, ...r }) {
|
|
7730
7740
|
return /* @__PURE__ */ z($o, {
|
|
7731
7741
|
"data-slot": "context-menu-sub-trigger",
|
|
7732
7742
|
"data-inset": t,
|
|
@@ -7735,7 +7745,7 @@ function Uv({ className: e, inset: t, children: n, ...r }) {
|
|
|
7735
7745
|
children: [n, /* @__PURE__ */ R(we, { className: "ml-auto" })]
|
|
7736
7746
|
});
|
|
7737
7747
|
}
|
|
7738
|
-
function
|
|
7748
|
+
function Gv({ className: t, style: n, ...r }) {
|
|
7739
7749
|
let i = e();
|
|
7740
7750
|
return /* @__PURE__ */ R(es, {
|
|
7741
7751
|
"data-slot": "context-menu-sub-content",
|
|
@@ -7747,7 +7757,7 @@ function Wv({ className: t, style: n, ...r }) {
|
|
|
7747
7757
|
...r
|
|
7748
7758
|
});
|
|
7749
7759
|
}
|
|
7750
|
-
function
|
|
7760
|
+
function Kv({ className: e, children: t, checked: n, inset: r, ...i }) {
|
|
7751
7761
|
return /* @__PURE__ */ z(qo, {
|
|
7752
7762
|
"data-slot": "context-menu-checkbox-item",
|
|
7753
7763
|
"data-inset": r,
|
|
@@ -7760,7 +7770,7 @@ function Gv({ className: e, children: t, checked: n, inset: r, ...i }) {
|
|
|
7760
7770
|
}), t]
|
|
7761
7771
|
});
|
|
7762
7772
|
}
|
|
7763
|
-
function
|
|
7773
|
+
function qv({ className: e, children: t, inset: n, ...r }) {
|
|
7764
7774
|
return /* @__PURE__ */ z(Yo, {
|
|
7765
7775
|
"data-slot": "context-menu-radio-item",
|
|
7766
7776
|
"data-inset": n,
|
|
@@ -7772,7 +7782,7 @@ function Kv({ className: e, children: t, inset: n, ...r }) {
|
|
|
7772
7782
|
}), t]
|
|
7773
7783
|
});
|
|
7774
7784
|
}
|
|
7775
|
-
function
|
|
7785
|
+
function Jv({ className: e, inset: t, ...n }) {
|
|
7776
7786
|
return /* @__PURE__ */ R(Go, {
|
|
7777
7787
|
"data-slot": "context-menu-label",
|
|
7778
7788
|
"data-inset": t,
|
|
@@ -7780,14 +7790,14 @@ function qv({ className: e, inset: t, ...n }) {
|
|
|
7780
7790
|
...n
|
|
7781
7791
|
});
|
|
7782
7792
|
}
|
|
7783
|
-
function
|
|
7793
|
+
function Yv({ className: e, ...t }) {
|
|
7784
7794
|
return /* @__PURE__ */ R(Zo, {
|
|
7785
7795
|
"data-slot": "context-menu-separator",
|
|
7786
7796
|
className: O("-mx-1 my-1 h-px bg-border", e),
|
|
7787
7797
|
...t
|
|
7788
7798
|
});
|
|
7789
7799
|
}
|
|
7790
|
-
function
|
|
7800
|
+
function Xv({ className: e, ...t }) {
|
|
7791
7801
|
return /* @__PURE__ */ R("span", {
|
|
7792
7802
|
"data-slot": "context-menu-shortcut",
|
|
7793
7803
|
className: O("ml-auto text-xs tracking-widest text-muted-foreground group-focus/context-menu-item:text-accent-foreground", e),
|
|
@@ -7796,28 +7806,28 @@ function Yv({ className: e, ...t }) {
|
|
|
7796
7806
|
}
|
|
7797
7807
|
//#endregion
|
|
7798
7808
|
//#region src/components/ui/direction.tsx
|
|
7799
|
-
function
|
|
7809
|
+
function Zv({ dir: e, direction: t, children: n }) {
|
|
7800
7810
|
return /* @__PURE__ */ R(xt, {
|
|
7801
7811
|
dir: t ?? e,
|
|
7802
7812
|
children: n
|
|
7803
7813
|
});
|
|
7804
7814
|
}
|
|
7805
|
-
var
|
|
7815
|
+
var Qv = B;
|
|
7806
7816
|
//#endregion
|
|
7807
7817
|
//#region src/components/ui/shadcn/shadcn-dropdown-menu.tsx
|
|
7808
|
-
function
|
|
7818
|
+
function $v({ ...e }) {
|
|
7809
7819
|
return /* @__PURE__ */ R(Is, {
|
|
7810
7820
|
"data-slot": "dropdown-menu",
|
|
7811
7821
|
...e
|
|
7812
7822
|
});
|
|
7813
7823
|
}
|
|
7814
|
-
function
|
|
7824
|
+
function ey({ ...e }) {
|
|
7815
7825
|
return /* @__PURE__ */ R(Ls, {
|
|
7816
7826
|
"data-slot": "dropdown-menu-trigger",
|
|
7817
7827
|
...e
|
|
7818
7828
|
});
|
|
7819
7829
|
}
|
|
7820
|
-
function
|
|
7830
|
+
function ty({ className: t, align: n = "start", sideOffset: r = 4, style: i, ...a }) {
|
|
7821
7831
|
let o = e();
|
|
7822
7832
|
return /* @__PURE__ */ R(Rs, { children: /* @__PURE__ */ R(zs, {
|
|
7823
7833
|
"data-slot": "dropdown-menu-content",
|
|
@@ -7831,13 +7841,13 @@ function ey({ className: t, align: n = "start", sideOffset: r = 4, style: i, ...
|
|
|
7831
7841
|
...a
|
|
7832
7842
|
}) });
|
|
7833
7843
|
}
|
|
7834
|
-
function
|
|
7844
|
+
function ny({ ...e }) {
|
|
7835
7845
|
return /* @__PURE__ */ R(Bs, {
|
|
7836
7846
|
"data-slot": "dropdown-menu-group",
|
|
7837
7847
|
...e
|
|
7838
7848
|
});
|
|
7839
7849
|
}
|
|
7840
|
-
function
|
|
7850
|
+
function ry({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
7841
7851
|
return /* @__PURE__ */ R(Hs, {
|
|
7842
7852
|
"data-slot": "dropdown-menu-item",
|
|
7843
7853
|
"data-inset": t,
|
|
@@ -7846,7 +7856,7 @@ function ny({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
|
7846
7856
|
...r
|
|
7847
7857
|
});
|
|
7848
7858
|
}
|
|
7849
|
-
function
|
|
7859
|
+
function iy({ className: e, inset: t, ...n }) {
|
|
7850
7860
|
return /* @__PURE__ */ R(Vs, {
|
|
7851
7861
|
"data-slot": "dropdown-menu-label",
|
|
7852
7862
|
"data-inset": t,
|
|
@@ -7854,14 +7864,14 @@ function ry({ className: e, inset: t, ...n }) {
|
|
|
7854
7864
|
...n
|
|
7855
7865
|
});
|
|
7856
7866
|
}
|
|
7857
|
-
function
|
|
7867
|
+
function ay({ className: e, ...t }) {
|
|
7858
7868
|
return /* @__PURE__ */ R(Us, {
|
|
7859
7869
|
"data-slot": "dropdown-menu-separator",
|
|
7860
7870
|
className: O("-mx-1 my-1 h-px bg-border", e),
|
|
7861
7871
|
...t
|
|
7862
7872
|
});
|
|
7863
7873
|
}
|
|
7864
|
-
function
|
|
7874
|
+
function oy({ className: e, ...t }) {
|
|
7865
7875
|
return /* @__PURE__ */ R("span", {
|
|
7866
7876
|
"data-slot": "dropdown-menu-shortcut",
|
|
7867
7877
|
className: O("ml-auto text-xs tracking-widest text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground", e),
|
|
@@ -7870,7 +7880,7 @@ function ay({ className: e, ...t }) {
|
|
|
7870
7880
|
}
|
|
7871
7881
|
//#endregion
|
|
7872
7882
|
//#region src/components/ui/dropdown-menu.tsx
|
|
7873
|
-
var
|
|
7883
|
+
var sy = (e) => /* @__PURE__ */ z($v, { children: [/* @__PURE__ */ R(ey, {
|
|
7874
7884
|
asChild: !0,
|
|
7875
7885
|
className: e.triggerClassName,
|
|
7876
7886
|
children: e.trigger ? e.trigger : /* @__PURE__ */ z(c, {
|
|
@@ -7886,70 +7896,70 @@ var oy = (e) => /* @__PURE__ */ z(Qv, { children: [/* @__PURE__ */ R($v, {
|
|
|
7886
7896
|
e.triggerIconPosition === "right" && e.triggerIcon
|
|
7887
7897
|
]
|
|
7888
7898
|
})
|
|
7889
|
-
}), /* @__PURE__ */ z(
|
|
7899
|
+
}), /* @__PURE__ */ z(ty, {
|
|
7890
7900
|
side: e.side,
|
|
7891
7901
|
align: e.align,
|
|
7892
7902
|
className: O("w-48", e.contentClassName),
|
|
7893
|
-
children: [e.label && /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(
|
|
7903
|
+
children: [e.label && /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(iy, { children: e.label }), /* @__PURE__ */ R(ay, {})] }), /* @__PURE__ */ R(ny, { children: e.options.map((e) => /* @__PURE__ */ z(I.Fragment, { children: [e.separator && /* @__PURE__ */ R(ay, {}), /* @__PURE__ */ z(ry, {
|
|
7894
7904
|
variant: e.variant,
|
|
7895
7905
|
onClick: () => e.onClick?.(e.value),
|
|
7896
7906
|
children: [
|
|
7897
7907
|
e.icon,
|
|
7898
7908
|
e.label,
|
|
7899
7909
|
" ",
|
|
7900
|
-
/* @__PURE__ */ R(
|
|
7910
|
+
/* @__PURE__ */ R(oy, { children: e.shortcut })
|
|
7901
7911
|
]
|
|
7902
7912
|
})] }, e.value)) })]
|
|
7903
7913
|
})] });
|
|
7904
7914
|
//#endregion
|
|
7905
7915
|
//#region src/components/ui/shadcn/shadcn-empty.tsx
|
|
7906
|
-
function
|
|
7916
|
+
function cy({ className: e, ...t }) {
|
|
7907
7917
|
return /* @__PURE__ */ R("div", {
|
|
7908
7918
|
"data-slot": "empty",
|
|
7909
7919
|
className: O("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance", e),
|
|
7910
7920
|
...t
|
|
7911
7921
|
});
|
|
7912
7922
|
}
|
|
7913
|
-
function
|
|
7923
|
+
function ly({ className: e, ...t }) {
|
|
7914
7924
|
return /* @__PURE__ */ R("div", {
|
|
7915
7925
|
"data-slot": "empty-header",
|
|
7916
7926
|
className: O("flex max-w-sm flex-col items-center gap-2", e),
|
|
7917
7927
|
...t
|
|
7918
7928
|
});
|
|
7919
7929
|
}
|
|
7920
|
-
var
|
|
7930
|
+
var uy = f("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
7921
7931
|
variants: { variant: {
|
|
7922
7932
|
default: "bg-transparent",
|
|
7923
7933
|
icon: "flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4"
|
|
7924
7934
|
} },
|
|
7925
7935
|
defaultVariants: { variant: "default" }
|
|
7926
7936
|
});
|
|
7927
|
-
function
|
|
7937
|
+
function dy({ className: e, variant: t = "default", ...n }) {
|
|
7928
7938
|
return /* @__PURE__ */ R("div", {
|
|
7929
7939
|
"data-slot": "empty-icon",
|
|
7930
7940
|
"data-variant": t,
|
|
7931
|
-
className: O(
|
|
7941
|
+
className: O(uy({
|
|
7932
7942
|
variant: t,
|
|
7933
7943
|
className: e
|
|
7934
7944
|
})),
|
|
7935
7945
|
...n
|
|
7936
7946
|
});
|
|
7937
7947
|
}
|
|
7938
|
-
function
|
|
7948
|
+
function fy({ className: e, ...t }) {
|
|
7939
7949
|
return /* @__PURE__ */ R("div", {
|
|
7940
7950
|
"data-slot": "empty-title",
|
|
7941
7951
|
className: O("font-heading text-sm font-medium tracking-tight", e),
|
|
7942
7952
|
...t
|
|
7943
7953
|
});
|
|
7944
7954
|
}
|
|
7945
|
-
function
|
|
7955
|
+
function py({ className: e, ...t }) {
|
|
7946
7956
|
return /* @__PURE__ */ R("div", {
|
|
7947
7957
|
"data-slot": "empty-description",
|
|
7948
7958
|
className: O("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", e),
|
|
7949
7959
|
...t
|
|
7950
7960
|
});
|
|
7951
7961
|
}
|
|
7952
|
-
function
|
|
7962
|
+
function my({ className: e, ...t }) {
|
|
7953
7963
|
return /* @__PURE__ */ R("div", {
|
|
7954
7964
|
"data-slot": "empty-content",
|
|
7955
7965
|
className: O("flex w-full max-w-sm min-w-0 flex-col items-center gap-2.5 text-sm text-balance", e),
|
|
@@ -7958,16 +7968,16 @@ function py({ className: e, ...t }) {
|
|
|
7958
7968
|
}
|
|
7959
7969
|
//#endregion
|
|
7960
7970
|
//#region src/components/ui/empty.tsx
|
|
7961
|
-
var
|
|
7971
|
+
var hy = ({ title: e, description: t, actionLabel: n, onAction: r = () => {}, icon: i = null, children: a = null, className: o = "" }) => /* @__PURE__ */ z(cy, {
|
|
7962
7972
|
className: O("min-w-[500px]", o),
|
|
7963
|
-
children: [/* @__PURE__ */ z(
|
|
7964
|
-
!!i && /* @__PURE__ */ R(
|
|
7973
|
+
children: [/* @__PURE__ */ z(ly, { children: [
|
|
7974
|
+
!!i && /* @__PURE__ */ R(dy, {
|
|
7965
7975
|
variant: "icon",
|
|
7966
7976
|
children: i
|
|
7967
7977
|
}),
|
|
7968
|
-
/* @__PURE__ */ R(
|
|
7969
|
-
t && /* @__PURE__ */ R(
|
|
7970
|
-
] }), /* @__PURE__ */ z(
|
|
7978
|
+
/* @__PURE__ */ R(fy, { children: e }),
|
|
7979
|
+
t && /* @__PURE__ */ R(py, { children: t })
|
|
7980
|
+
] }), /* @__PURE__ */ z(my, { children: [a, n && /* @__PURE__ */ R(c, {
|
|
7971
7981
|
size: "sm",
|
|
7972
7982
|
onClick: r,
|
|
7973
7983
|
children: n
|
|
@@ -7975,14 +7985,14 @@ var my = ({ title: e, description: t, actionLabel: n, onAction: r = () => {}, ic
|
|
|
7975
7985
|
});
|
|
7976
7986
|
//#endregion
|
|
7977
7987
|
//#region src/components/ui/field.tsx
|
|
7978
|
-
function
|
|
7988
|
+
function gy({ className: e, ...t }) {
|
|
7979
7989
|
return /* @__PURE__ */ R("fieldset", {
|
|
7980
7990
|
"data-slot": "field-set",
|
|
7981
7991
|
className: O("flex flex-col gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3", e),
|
|
7982
7992
|
...t
|
|
7983
7993
|
});
|
|
7984
7994
|
}
|
|
7985
|
-
function
|
|
7995
|
+
function _y({ className: e, variant: t = "legend", ...n }) {
|
|
7986
7996
|
return /* @__PURE__ */ R("legend", {
|
|
7987
7997
|
"data-slot": "field-legend",
|
|
7988
7998
|
"data-variant": t,
|
|
@@ -7990,14 +8000,14 @@ function gy({ className: e, variant: t = "legend", ...n }) {
|
|
|
7990
8000
|
...n
|
|
7991
8001
|
});
|
|
7992
8002
|
}
|
|
7993
|
-
function
|
|
8003
|
+
function vy({ className: e, ...t }) {
|
|
7994
8004
|
return /* @__PURE__ */ R("div", {
|
|
7995
8005
|
"data-slot": "field-group",
|
|
7996
8006
|
className: O("group/field-group @container/field-group flex w-full flex-col gap-5 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4", e),
|
|
7997
8007
|
...t
|
|
7998
8008
|
});
|
|
7999
8009
|
}
|
|
8000
|
-
var
|
|
8010
|
+
var yy = f("group/field flex w-full gap-2 data-[invalid=true]:text-destructive", {
|
|
8001
8011
|
variants: { orientation: {
|
|
8002
8012
|
vertical: "flex-col *:w-full [&>.sr-only]:w-auto",
|
|
8003
8013
|
horizontal: "flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",
|
|
@@ -8005,57 +8015,57 @@ var vy = f("group/field flex w-full gap-2 data-[invalid=true]:text-destructive",
|
|
|
8005
8015
|
} },
|
|
8006
8016
|
defaultVariants: { orientation: "vertical" }
|
|
8007
8017
|
});
|
|
8008
|
-
function
|
|
8018
|
+
function by({ className: e, orientation: t = "vertical", ...n }) {
|
|
8009
8019
|
return /* @__PURE__ */ R("div", {
|
|
8010
8020
|
role: "group",
|
|
8011
8021
|
"data-slot": "field",
|
|
8012
8022
|
"data-orientation": t,
|
|
8013
|
-
className: O(
|
|
8023
|
+
className: O(yy({ orientation: t }), e),
|
|
8014
8024
|
...n
|
|
8015
8025
|
});
|
|
8016
8026
|
}
|
|
8017
|
-
function
|
|
8027
|
+
function xy({ className: e, ...t }) {
|
|
8018
8028
|
return /* @__PURE__ */ R("div", {
|
|
8019
8029
|
"data-slot": "field-content",
|
|
8020
8030
|
className: O("group/field-content flex flex-1 flex-col gap-0.5 leading-snug", e),
|
|
8021
8031
|
...t
|
|
8022
8032
|
});
|
|
8023
8033
|
}
|
|
8024
|
-
function
|
|
8034
|
+
function Sy({ className: e, ...t }) {
|
|
8025
8035
|
return /* @__PURE__ */ R(le, {
|
|
8026
8036
|
"data-slot": "field-label",
|
|
8027
8037
|
className: O("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border *:data-[slot=field]:p-2.5 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col", e),
|
|
8028
8038
|
...t
|
|
8029
8039
|
});
|
|
8030
8040
|
}
|
|
8031
|
-
function
|
|
8041
|
+
function Cy({ className: e, ...t }) {
|
|
8032
8042
|
return /* @__PURE__ */ R("div", {
|
|
8033
8043
|
"data-slot": "field-label",
|
|
8034
8044
|
className: O("flex w-fit items-center gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50", e),
|
|
8035
8045
|
...t
|
|
8036
8046
|
});
|
|
8037
8047
|
}
|
|
8038
|
-
function
|
|
8048
|
+
function wy({ className: e, ...t }) {
|
|
8039
8049
|
return /* @__PURE__ */ R("p", {
|
|
8040
8050
|
"data-slot": "field-description",
|
|
8041
8051
|
className: O("text-left text-sm leading-normal font-normal text-muted-foreground group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5", "last:mt-0 nth-last-2:-mt-1", "[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", e),
|
|
8042
8052
|
...t
|
|
8043
8053
|
});
|
|
8044
8054
|
}
|
|
8045
|
-
function
|
|
8055
|
+
function Ty({ children: e, className: t, ...n }) {
|
|
8046
8056
|
return /* @__PURE__ */ z("div", {
|
|
8047
8057
|
"data-slot": "field-separator",
|
|
8048
8058
|
"data-content": !!e,
|
|
8049
8059
|
className: O("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2", t),
|
|
8050
8060
|
...n,
|
|
8051
|
-
children: [/* @__PURE__ */ R(
|
|
8061
|
+
children: [/* @__PURE__ */ R(bv, { className: "absolute inset-0 top-1/2" }), e && /* @__PURE__ */ R("span", {
|
|
8052
8062
|
className: "relative mx-auto block w-fit bg-background px-2 text-muted-foreground",
|
|
8053
8063
|
"data-slot": "field-separator-content",
|
|
8054
8064
|
children: e
|
|
8055
8065
|
})]
|
|
8056
8066
|
});
|
|
8057
8067
|
}
|
|
8058
|
-
function
|
|
8068
|
+
function Ey({ className: e, children: t, errors: n, ...r }) {
|
|
8059
8069
|
let i = Re(() => {
|
|
8060
8070
|
if (t) return t;
|
|
8061
8071
|
if (!n?.length) return null;
|
|
@@ -8075,19 +8085,19 @@ function Ty({ className: e, children: t, errors: n, ...r }) {
|
|
|
8075
8085
|
}
|
|
8076
8086
|
//#endregion
|
|
8077
8087
|
//#region src/components/ui/hover-card.tsx
|
|
8078
|
-
function
|
|
8088
|
+
function Dy({ ...e }) {
|
|
8079
8089
|
return /* @__PURE__ */ R(fc, {
|
|
8080
8090
|
"data-slot": "hover-card",
|
|
8081
8091
|
...e
|
|
8082
8092
|
});
|
|
8083
8093
|
}
|
|
8084
|
-
function
|
|
8094
|
+
function Oy({ ...e }) {
|
|
8085
8095
|
return /* @__PURE__ */ R(pc, {
|
|
8086
8096
|
"data-slot": "hover-card-trigger",
|
|
8087
8097
|
...e
|
|
8088
8098
|
});
|
|
8089
8099
|
}
|
|
8090
|
-
function
|
|
8100
|
+
function ky({ className: t, align: n = "center", sideOffset: r = 4, style: i, ...a }) {
|
|
8091
8101
|
let o = e();
|
|
8092
8102
|
return /* @__PURE__ */ R(mc, {
|
|
8093
8103
|
"data-slot": "hover-card-portal",
|
|
@@ -8106,7 +8116,7 @@ function Oy({ className: t, align: n = "center", sideOffset: r = 4, style: i, ..
|
|
|
8106
8116
|
}
|
|
8107
8117
|
//#endregion
|
|
8108
8118
|
//#region src/components/ui/Header.tsx
|
|
8109
|
-
function
|
|
8119
|
+
function Ay({ title: e, description: t, breadcrumb: n, rightContent: r, className: i, ...a }) {
|
|
8110
8120
|
return /* @__PURE__ */ z("header", {
|
|
8111
8121
|
"data-slot": "page-header",
|
|
8112
8122
|
className: O("flex sticky top-0 z-10 bg-background flex-col gap-3 border-b border-border py-4", i),
|
|
@@ -8138,7 +8148,7 @@ function ky({ title: e, description: t, breadcrumb: n, rightContent: r, classNam
|
|
|
8138
8148
|
}
|
|
8139
8149
|
//#endregion
|
|
8140
8150
|
//#region src/components/ui/item.tsx
|
|
8141
|
-
function
|
|
8151
|
+
function jy({ className: e, ...t }) {
|
|
8142
8152
|
return /* @__PURE__ */ R("div", {
|
|
8143
8153
|
role: "list",
|
|
8144
8154
|
"data-slot": "item-group",
|
|
@@ -8146,15 +8156,15 @@ function Ay({ className: e, ...t }) {
|
|
|
8146
8156
|
...t
|
|
8147
8157
|
});
|
|
8148
8158
|
}
|
|
8149
|
-
function
|
|
8150
|
-
return /* @__PURE__ */ R(
|
|
8159
|
+
function My({ className: e, ...t }) {
|
|
8160
|
+
return /* @__PURE__ */ R(bv, {
|
|
8151
8161
|
"data-slot": "item-separator",
|
|
8152
8162
|
orientation: "horizontal",
|
|
8153
8163
|
className: O("my-2", e),
|
|
8154
8164
|
...t
|
|
8155
8165
|
});
|
|
8156
8166
|
}
|
|
8157
|
-
var
|
|
8167
|
+
var Ny = f("group/item flex w-full flex-wrap items-center rounded-lg border text-sm transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-muted", {
|
|
8158
8168
|
variants: {
|
|
8159
8169
|
variant: {
|
|
8160
8170
|
default: "border-transparent",
|
|
@@ -8172,12 +8182,12 @@ var My = f("group/item flex w-full flex-wrap items-center rounded-lg border text
|
|
|
8172
8182
|
size: "default"
|
|
8173
8183
|
}
|
|
8174
8184
|
});
|
|
8175
|
-
function
|
|
8185
|
+
function Py({ className: e, variant: t = "default", size: n = "default", asChild: r = !1, ...i }) {
|
|
8176
8186
|
return /* @__PURE__ */ R(r ? h : "div", {
|
|
8177
8187
|
"data-slot": "item",
|
|
8178
8188
|
"data-variant": t,
|
|
8179
8189
|
"data-size": n,
|
|
8180
|
-
className: O(
|
|
8190
|
+
className: O(Ny({
|
|
8181
8191
|
variant: t,
|
|
8182
8192
|
size: n,
|
|
8183
8193
|
className: e
|
|
@@ -8185,7 +8195,7 @@ function Ny({ className: e, variant: t = "default", size: n = "default", asChild
|
|
|
8185
8195
|
...i
|
|
8186
8196
|
});
|
|
8187
8197
|
}
|
|
8188
|
-
var
|
|
8198
|
+
var Fy = f("flex shrink-0 items-center justify-center gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start [&_svg]:pointer-events-none", {
|
|
8189
8199
|
variants: { variant: {
|
|
8190
8200
|
default: "bg-transparent",
|
|
8191
8201
|
icon: "[&_svg:not([class*='size-'])]:size-4",
|
|
@@ -8193,53 +8203,53 @@ var Py = f("flex shrink-0 items-center justify-center gap-2 group-has-data-[slot
|
|
|
8193
8203
|
} },
|
|
8194
8204
|
defaultVariants: { variant: "default" }
|
|
8195
8205
|
});
|
|
8196
|
-
function
|
|
8206
|
+
function Iy({ className: e, variant: t = "default", ...n }) {
|
|
8197
8207
|
return /* @__PURE__ */ R("div", {
|
|
8198
8208
|
"data-slot": "item-media",
|
|
8199
8209
|
"data-variant": t,
|
|
8200
|
-
className: O(
|
|
8210
|
+
className: O(Fy({
|
|
8201
8211
|
variant: t,
|
|
8202
8212
|
className: e
|
|
8203
8213
|
})),
|
|
8204
8214
|
...n
|
|
8205
8215
|
});
|
|
8206
8216
|
}
|
|
8207
|
-
function
|
|
8217
|
+
function Ly({ className: e, ...t }) {
|
|
8208
8218
|
return /* @__PURE__ */ R("div", {
|
|
8209
8219
|
"data-slot": "item-content",
|
|
8210
8220
|
className: O("flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none", e),
|
|
8211
8221
|
...t
|
|
8212
8222
|
});
|
|
8213
8223
|
}
|
|
8214
|
-
function
|
|
8224
|
+
function Ry({ className: e, ...t }) {
|
|
8215
8225
|
return /* @__PURE__ */ R("div", {
|
|
8216
8226
|
"data-slot": "item-title",
|
|
8217
8227
|
className: O("font-heading line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4", e),
|
|
8218
8228
|
...t
|
|
8219
8229
|
});
|
|
8220
8230
|
}
|
|
8221
|
-
function
|
|
8231
|
+
function zy({ className: e, ...t }) {
|
|
8222
8232
|
return /* @__PURE__ */ R("p", {
|
|
8223
8233
|
"data-slot": "item-description",
|
|
8224
8234
|
className: O("line-clamp-2 text-left text-sm leading-normal font-normal text-muted-foreground group-data-[size=xs]/item:text-xs [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", e),
|
|
8225
8235
|
...t
|
|
8226
8236
|
});
|
|
8227
8237
|
}
|
|
8228
|
-
function
|
|
8238
|
+
function By({ className: e, ...t }) {
|
|
8229
8239
|
return /* @__PURE__ */ R("div", {
|
|
8230
8240
|
"data-slot": "item-actions",
|
|
8231
8241
|
className: O("flex items-center gap-2", e),
|
|
8232
8242
|
...t
|
|
8233
8243
|
});
|
|
8234
8244
|
}
|
|
8235
|
-
function
|
|
8245
|
+
function Vy({ className: e, ...t }) {
|
|
8236
8246
|
return /* @__PURE__ */ R("div", {
|
|
8237
8247
|
"data-slot": "item-header",
|
|
8238
8248
|
className: O("flex basis-full items-center justify-between gap-2", e),
|
|
8239
8249
|
...t
|
|
8240
8250
|
});
|
|
8241
8251
|
}
|
|
8242
|
-
function
|
|
8252
|
+
function Hy({ className: e, ...t }) {
|
|
8243
8253
|
return /* @__PURE__ */ R("div", {
|
|
8244
8254
|
"data-slot": "item-footer",
|
|
8245
8255
|
className: O("flex basis-full items-center justify-between gap-2", e),
|
|
@@ -8248,14 +8258,14 @@ function Vy({ className: e, ...t }) {
|
|
|
8248
8258
|
}
|
|
8249
8259
|
//#endregion
|
|
8250
8260
|
//#region src/components/ui/kbd.tsx
|
|
8251
|
-
function
|
|
8261
|
+
function Uy({ className: e, ...t }) {
|
|
8252
8262
|
return /* @__PURE__ */ R("kbd", {
|
|
8253
8263
|
"data-slot": "kbd",
|
|
8254
8264
|
className: O("pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground select-none in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3", e),
|
|
8255
8265
|
...t
|
|
8256
8266
|
});
|
|
8257
8267
|
}
|
|
8258
|
-
function
|
|
8268
|
+
function Wy({ className: e, ...t }) {
|
|
8259
8269
|
return /* @__PURE__ */ R("kbd", {
|
|
8260
8270
|
"data-slot": "kbd-group",
|
|
8261
8271
|
className: O("inline-flex items-center gap-1", e),
|
|
@@ -8264,47 +8274,47 @@ function Uy({ className: e, ...t }) {
|
|
|
8264
8274
|
}
|
|
8265
8275
|
//#endregion
|
|
8266
8276
|
//#region src/components/ui/menubar.tsx
|
|
8267
|
-
function
|
|
8277
|
+
function Gy({ className: e, ...t }) {
|
|
8268
8278
|
return /* @__PURE__ */ R(cl, {
|
|
8269
8279
|
"data-slot": "menubar",
|
|
8270
8280
|
className: O("flex h-8 items-center gap-0.5 rounded-lg border p-[3px]", e),
|
|
8271
8281
|
...t
|
|
8272
8282
|
});
|
|
8273
8283
|
}
|
|
8274
|
-
function
|
|
8284
|
+
function Ky({ ...e }) {
|
|
8275
8285
|
return /* @__PURE__ */ R(ll, {
|
|
8276
8286
|
"data-slot": "menubar-menu",
|
|
8277
8287
|
...e
|
|
8278
8288
|
});
|
|
8279
8289
|
}
|
|
8280
|
-
function
|
|
8290
|
+
function qy({ ...e }) {
|
|
8281
8291
|
return /* @__PURE__ */ R(pl, {
|
|
8282
8292
|
"data-slot": "menubar-group",
|
|
8283
8293
|
...e
|
|
8284
8294
|
});
|
|
8285
8295
|
}
|
|
8286
|
-
function
|
|
8296
|
+
function Jy({ ...e }) {
|
|
8287
8297
|
return /* @__PURE__ */ R(dl, {
|
|
8288
8298
|
"data-slot": "menubar-portal",
|
|
8289
8299
|
...e
|
|
8290
8300
|
});
|
|
8291
8301
|
}
|
|
8292
|
-
function
|
|
8302
|
+
function Yy({ ...e }) {
|
|
8293
8303
|
return /* @__PURE__ */ R(_l, {
|
|
8294
8304
|
"data-slot": "menubar-radio-group",
|
|
8295
8305
|
...e
|
|
8296
8306
|
});
|
|
8297
8307
|
}
|
|
8298
|
-
function
|
|
8308
|
+
function Xy({ className: e, ...t }) {
|
|
8299
8309
|
return /* @__PURE__ */ R(ul, {
|
|
8300
8310
|
"data-slot": "menubar-trigger",
|
|
8301
8311
|
className: O("flex items-center rounded-sm px-1.5 py-[2px] text-sm font-medium outline-hidden select-none hover:bg-muted aria-expanded:bg-muted", e),
|
|
8302
8312
|
...t
|
|
8303
8313
|
});
|
|
8304
8314
|
}
|
|
8305
|
-
function
|
|
8315
|
+
function Zy({ className: t, align: n = "start", alignOffset: r = -4, sideOffset: i = 8, style: a, ...o }) {
|
|
8306
8316
|
let s = e();
|
|
8307
|
-
return /* @__PURE__ */ R(
|
|
8317
|
+
return /* @__PURE__ */ R(Jy, { children: /* @__PURE__ */ R(fl, {
|
|
8308
8318
|
"data-slot": "menubar-content",
|
|
8309
8319
|
align: n,
|
|
8310
8320
|
alignOffset: r,
|
|
@@ -8317,7 +8327,7 @@ function Xy({ className: t, align: n = "start", alignOffset: r = -4, sideOffset:
|
|
|
8317
8327
|
...o
|
|
8318
8328
|
}) });
|
|
8319
8329
|
}
|
|
8320
|
-
function
|
|
8330
|
+
function Qy({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
8321
8331
|
return /* @__PURE__ */ R(hl, {
|
|
8322
8332
|
"data-slot": "menubar-item",
|
|
8323
8333
|
"data-inset": t,
|
|
@@ -8326,7 +8336,7 @@ function Zy({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
|
8326
8336
|
...r
|
|
8327
8337
|
});
|
|
8328
8338
|
}
|
|
8329
|
-
function
|
|
8339
|
+
function $y({ className: e, children: t, checked: n, inset: r, ...i }) {
|
|
8330
8340
|
return /* @__PURE__ */ z(gl, {
|
|
8331
8341
|
"data-slot": "menubar-checkbox-item",
|
|
8332
8342
|
"data-inset": r,
|
|
@@ -8339,7 +8349,7 @@ function Qy({ className: e, children: t, checked: n, inset: r, ...i }) {
|
|
|
8339
8349
|
}), t]
|
|
8340
8350
|
});
|
|
8341
8351
|
}
|
|
8342
|
-
function
|
|
8352
|
+
function eb({ className: e, children: t, inset: n, ...r }) {
|
|
8343
8353
|
return /* @__PURE__ */ z(vl, {
|
|
8344
8354
|
"data-slot": "menubar-radio-item",
|
|
8345
8355
|
"data-inset": n,
|
|
@@ -8351,7 +8361,7 @@ function $y({ className: e, children: t, inset: n, ...r }) {
|
|
|
8351
8361
|
}), t]
|
|
8352
8362
|
});
|
|
8353
8363
|
}
|
|
8354
|
-
function
|
|
8364
|
+
function tb({ className: e, inset: t, ...n }) {
|
|
8355
8365
|
return /* @__PURE__ */ R(ml, {
|
|
8356
8366
|
"data-slot": "menubar-label",
|
|
8357
8367
|
"data-inset": t,
|
|
@@ -8359,27 +8369,27 @@ function eb({ className: e, inset: t, ...n }) {
|
|
|
8359
8369
|
...n
|
|
8360
8370
|
});
|
|
8361
8371
|
}
|
|
8362
|
-
function
|
|
8372
|
+
function nb({ className: e, ...t }) {
|
|
8363
8373
|
return /* @__PURE__ */ R(bl, {
|
|
8364
8374
|
"data-slot": "menubar-separator",
|
|
8365
8375
|
className: O("-mx-1 my-1 h-px bg-border", e),
|
|
8366
8376
|
...t
|
|
8367
8377
|
});
|
|
8368
8378
|
}
|
|
8369
|
-
function
|
|
8379
|
+
function rb({ className: e, ...t }) {
|
|
8370
8380
|
return /* @__PURE__ */ R("span", {
|
|
8371
8381
|
"data-slot": "menubar-shortcut",
|
|
8372
8382
|
className: O("ml-auto text-xs tracking-widest text-muted-foreground group-focus/menubar-item:text-accent-foreground", e),
|
|
8373
8383
|
...t
|
|
8374
8384
|
});
|
|
8375
8385
|
}
|
|
8376
|
-
function
|
|
8386
|
+
function ib({ ...e }) {
|
|
8377
8387
|
return /* @__PURE__ */ R(xl, {
|
|
8378
8388
|
"data-slot": "menubar-sub",
|
|
8379
8389
|
...e
|
|
8380
8390
|
});
|
|
8381
8391
|
}
|
|
8382
|
-
function
|
|
8392
|
+
function ab({ className: e, inset: t, children: n, ...r }) {
|
|
8383
8393
|
return /* @__PURE__ */ z(Sl, {
|
|
8384
8394
|
"data-slot": "menubar-sub-trigger",
|
|
8385
8395
|
"data-inset": t,
|
|
@@ -8388,7 +8398,7 @@ function ib({ className: e, inset: t, children: n, ...r }) {
|
|
|
8388
8398
|
children: [n, /* @__PURE__ */ R(we, { className: "ml-auto size-4" })]
|
|
8389
8399
|
});
|
|
8390
8400
|
}
|
|
8391
|
-
function
|
|
8401
|
+
function ob({ className: t, style: n, ...r }) {
|
|
8392
8402
|
let i = e();
|
|
8393
8403
|
return /* @__PURE__ */ R(Cl, {
|
|
8394
8404
|
"data-slot": "menubar-sub-content",
|
|
@@ -8402,34 +8412,34 @@ function ab({ className: t, style: n, ...r }) {
|
|
|
8402
8412
|
}
|
|
8403
8413
|
//#endregion
|
|
8404
8414
|
//#region src/components/ui/navigation-menu.tsx
|
|
8405
|
-
function
|
|
8415
|
+
function sb({ className: e, children: t, viewport: n = !0, ...r }) {
|
|
8406
8416
|
return /* @__PURE__ */ z(Su, {
|
|
8407
8417
|
"data-slot": "navigation-menu",
|
|
8408
8418
|
"data-viewport": n,
|
|
8409
8419
|
className: O("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", e),
|
|
8410
8420
|
...r,
|
|
8411
|
-
children: [t, n && /* @__PURE__ */ R(
|
|
8421
|
+
children: [t, n && /* @__PURE__ */ R(pb, {})]
|
|
8412
8422
|
});
|
|
8413
8423
|
}
|
|
8414
|
-
function
|
|
8424
|
+
function cb({ className: e, ...t }) {
|
|
8415
8425
|
return /* @__PURE__ */ R(Cu, {
|
|
8416
8426
|
"data-slot": "navigation-menu-list",
|
|
8417
8427
|
className: O("group flex flex-1 list-none items-center justify-center gap-0", e),
|
|
8418
8428
|
...t
|
|
8419
8429
|
});
|
|
8420
8430
|
}
|
|
8421
|
-
function
|
|
8431
|
+
function lb({ className: e, ...t }) {
|
|
8422
8432
|
return /* @__PURE__ */ R(wu, {
|
|
8423
8433
|
"data-slot": "navigation-menu-item",
|
|
8424
8434
|
className: O("relative", e),
|
|
8425
8435
|
...t
|
|
8426
8436
|
});
|
|
8427
8437
|
}
|
|
8428
|
-
var
|
|
8429
|
-
function
|
|
8438
|
+
var ub = f("group/navigation-menu-trigger inline-flex h-9 w-max items-center justify-center rounded-lg px-2.5 py-1.5 text-sm font-medium transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted data-open:bg-muted/50 data-open:hover:bg-muted data-open:focus:bg-muted");
|
|
8439
|
+
function db({ className: e, children: t, ...n }) {
|
|
8430
8440
|
return /* @__PURE__ */ z(Tu, {
|
|
8431
8441
|
"data-slot": "navigation-menu-trigger",
|
|
8432
|
-
className: O(
|
|
8442
|
+
className: O(ub(), "group", e),
|
|
8433
8443
|
...n,
|
|
8434
8444
|
children: [
|
|
8435
8445
|
t,
|
|
@@ -8441,14 +8451,14 @@ function ub({ className: e, children: t, ...n }) {
|
|
|
8441
8451
|
]
|
|
8442
8452
|
});
|
|
8443
8453
|
}
|
|
8444
|
-
function
|
|
8454
|
+
function fb({ className: e, ...t }) {
|
|
8445
8455
|
return /* @__PURE__ */ R(Ou, {
|
|
8446
8456
|
"data-slot": "navigation-menu-content",
|
|
8447
8457
|
className: O("top-0 left-0 w-full p-1 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-lg group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:ring-foreground/10 group-data-[viewport=false]/navigation-menu:duration-300 data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none md:absolute md:w-auto group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95", e),
|
|
8448
8458
|
...t
|
|
8449
8459
|
});
|
|
8450
8460
|
}
|
|
8451
|
-
function
|
|
8461
|
+
function pb({ className: e, ...t }) {
|
|
8452
8462
|
return /* @__PURE__ */ R("div", {
|
|
8453
8463
|
className: O("absolute top-full left-0 isolate z-50 flex justify-center"),
|
|
8454
8464
|
children: /* @__PURE__ */ R(ku, {
|
|
@@ -8458,14 +8468,14 @@ function fb({ className: e, ...t }) {
|
|
|
8458
8468
|
})
|
|
8459
8469
|
});
|
|
8460
8470
|
}
|
|
8461
|
-
function
|
|
8471
|
+
function mb({ className: e, ...t }) {
|
|
8462
8472
|
return /* @__PURE__ */ R(Eu, {
|
|
8463
8473
|
"data-slot": "navigation-menu-link",
|
|
8464
8474
|
className: O("flex items-center gap-2 rounded-lg p-2 text-sm transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 in-data-[slot=navigation-menu-content]:rounded-md data-active:bg-muted/50 data-active:hover:bg-muted data-active:focus:bg-muted [&_svg:not([class*='size-'])]:size-4", e),
|
|
8465
8475
|
...t
|
|
8466
8476
|
});
|
|
8467
8477
|
}
|
|
8468
|
-
function
|
|
8478
|
+
function hb({ className: e, ...t }) {
|
|
8469
8479
|
return /* @__PURE__ */ R(Du, {
|
|
8470
8480
|
"data-slot": "navigation-menu-indicator",
|
|
8471
8481
|
className: O("top-full z-1 flex h-1.5 items-end justify-center overflow-hidden data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:animate-in data-[state=visible]:fade-in", e),
|
|
@@ -8475,7 +8485,7 @@ function mb({ className: e, ...t }) {
|
|
|
8475
8485
|
}
|
|
8476
8486
|
//#endregion
|
|
8477
8487
|
//#region src/components/ui/shadcn/shadcn-pagination.tsx
|
|
8478
|
-
function
|
|
8488
|
+
function gb({ className: e, ...t }) {
|
|
8479
8489
|
return /* @__PURE__ */ R("nav", {
|
|
8480
8490
|
role: "navigation",
|
|
8481
8491
|
"aria-label": "pagination",
|
|
@@ -8484,20 +8494,20 @@ function hb({ className: e, ...t }) {
|
|
|
8484
8494
|
...t
|
|
8485
8495
|
});
|
|
8486
8496
|
}
|
|
8487
|
-
function
|
|
8497
|
+
function _b({ className: e, ...t }) {
|
|
8488
8498
|
return /* @__PURE__ */ R("ul", {
|
|
8489
8499
|
"data-slot": "pagination-content",
|
|
8490
8500
|
className: O("flex items-center gap-1", e),
|
|
8491
8501
|
...t
|
|
8492
8502
|
});
|
|
8493
8503
|
}
|
|
8494
|
-
function
|
|
8504
|
+
function vb({ ...e }) {
|
|
8495
8505
|
return /* @__PURE__ */ R("li", {
|
|
8496
8506
|
"data-slot": "pagination-item",
|
|
8497
8507
|
...e
|
|
8498
8508
|
});
|
|
8499
8509
|
}
|
|
8500
|
-
function
|
|
8510
|
+
function yb({ className: e, isActive: t, size: n = "icon", ...r }) {
|
|
8501
8511
|
return /* @__PURE__ */ R(c, {
|
|
8502
8512
|
asChild: !0,
|
|
8503
8513
|
variant: t ? "outline" : "ghost",
|
|
@@ -8511,8 +8521,8 @@ function vb({ className: e, isActive: t, size: n = "icon", ...r }) {
|
|
|
8511
8521
|
})
|
|
8512
8522
|
});
|
|
8513
8523
|
}
|
|
8514
|
-
function
|
|
8515
|
-
return /* @__PURE__ */ z(
|
|
8524
|
+
function bb({ className: e, text: t = "Previous", ...n }) {
|
|
8525
|
+
return /* @__PURE__ */ z(yb, {
|
|
8516
8526
|
"aria-label": "Go to previous page",
|
|
8517
8527
|
size: "default",
|
|
8518
8528
|
className: O("pl-2!", e),
|
|
@@ -8523,8 +8533,8 @@ function yb({ className: e, text: t = "Previous", ...n }) {
|
|
|
8523
8533
|
})]
|
|
8524
8534
|
});
|
|
8525
8535
|
}
|
|
8526
|
-
function
|
|
8527
|
-
return /* @__PURE__ */ z(
|
|
8536
|
+
function xb({ className: e, text: t = "Next", ...n }) {
|
|
8537
|
+
return /* @__PURE__ */ z(yb, {
|
|
8528
8538
|
"aria-label": "Go to next page",
|
|
8529
8539
|
size: "default",
|
|
8530
8540
|
className: O("pr-2!", e),
|
|
@@ -8535,7 +8545,7 @@ function bb({ className: e, text: t = "Next", ...n }) {
|
|
|
8535
8545
|
}), /* @__PURE__ */ R(we, { "data-icon": "inline-end" })]
|
|
8536
8546
|
});
|
|
8537
8547
|
}
|
|
8538
|
-
function
|
|
8548
|
+
function Sb({ className: e, ...t }) {
|
|
8539
8549
|
return /* @__PURE__ */ z("span", {
|
|
8540
8550
|
"aria-hidden": !0,
|
|
8541
8551
|
"data-slot": "pagination-ellipsis",
|
|
@@ -8549,18 +8559,18 @@ function xb({ className: e, ...t }) {
|
|
|
8549
8559
|
}
|
|
8550
8560
|
//#endregion
|
|
8551
8561
|
//#region src/components/ui/pagination.tsx
|
|
8552
|
-
function
|
|
8562
|
+
function Cb(e, t, n) {
|
|
8553
8563
|
if (t <= n * 2 + 5) return Array.from({ length: t }, (e, t) => t + 1);
|
|
8554
8564
|
let r = Math.max(2, e - n), i = Math.min(t - 1, e + n), a = [1];
|
|
8555
8565
|
r > 2 && a.push("ellipsis");
|
|
8556
8566
|
for (let e = r; e <= i; e++) a.push(e);
|
|
8557
8567
|
return i < t - 1 && a.push("ellipsis"), a.push(t), a;
|
|
8558
8568
|
}
|
|
8559
|
-
var
|
|
8560
|
-
let s =
|
|
8569
|
+
var wb = ({ currentPage: e, totalPages: t, onPageChange: n, siblingCount: r = 1, showPrevNext: i = !0, showPageLabel: a = !1, className: o }) => {
|
|
8570
|
+
let s = Cb(e, t, r), l = /* @__PURE__ */ R(gb, {
|
|
8561
8571
|
className: o,
|
|
8562
|
-
children: /* @__PURE__ */ z(
|
|
8563
|
-
i && /* @__PURE__ */ R(
|
|
8572
|
+
children: /* @__PURE__ */ z(_b, { children: [
|
|
8573
|
+
i && /* @__PURE__ */ R(vb, { children: /* @__PURE__ */ z(c, {
|
|
8564
8574
|
variant: "ghost",
|
|
8565
8575
|
size: "default",
|
|
8566
8576
|
className: "pl-2!",
|
|
@@ -8572,14 +8582,14 @@ var Cb = ({ currentPage: e, totalPages: t, onPageChange: n, siblingCount: r = 1,
|
|
|
8572
8582
|
children: "Previous"
|
|
8573
8583
|
})]
|
|
8574
8584
|
}) }),
|
|
8575
|
-
s.map((t, r) => t === "ellipsis" ? /* @__PURE__ */ R(
|
|
8585
|
+
s.map((t, r) => t === "ellipsis" ? /* @__PURE__ */ R(vb, { children: /* @__PURE__ */ R(Sb, {}) }, `ellipsis-${r}`) : /* @__PURE__ */ R(vb, { children: /* @__PURE__ */ R(c, {
|
|
8576
8586
|
variant: t === e ? "outline" : "ghost",
|
|
8577
8587
|
size: "icon",
|
|
8578
8588
|
"aria-current": t === e ? "page" : void 0,
|
|
8579
8589
|
onClick: () => n(t),
|
|
8580
8590
|
children: t
|
|
8581
8591
|
}) }, t)),
|
|
8582
|
-
i && /* @__PURE__ */ R(
|
|
8592
|
+
i && /* @__PURE__ */ R(vb, { children: /* @__PURE__ */ z(c, {
|
|
8583
8593
|
variant: "ghost",
|
|
8584
8594
|
size: "default",
|
|
8585
8595
|
className: "pr-2!",
|
|
@@ -8608,19 +8618,19 @@ var Cb = ({ currentPage: e, totalPages: t, onPageChange: n, siblingCount: r = 1,
|
|
|
8608
8618
|
};
|
|
8609
8619
|
//#endregion
|
|
8610
8620
|
//#region src/components/ui/popover.tsx
|
|
8611
|
-
function
|
|
8621
|
+
function Tb({ ...e }) {
|
|
8612
8622
|
return /* @__PURE__ */ R(id, {
|
|
8613
8623
|
"data-slot": "popover",
|
|
8614
8624
|
...e
|
|
8615
8625
|
});
|
|
8616
8626
|
}
|
|
8617
|
-
function
|
|
8627
|
+
function Eb({ ...e }) {
|
|
8618
8628
|
return /* @__PURE__ */ R(od, {
|
|
8619
8629
|
"data-slot": "popover-trigger",
|
|
8620
8630
|
...e
|
|
8621
8631
|
});
|
|
8622
8632
|
}
|
|
8623
|
-
function
|
|
8633
|
+
function Db({ className: t, align: n = "center", sideOffset: r = 4, style: i, ...a }) {
|
|
8624
8634
|
let o = e();
|
|
8625
8635
|
return /* @__PURE__ */ R(sd, { children: /* @__PURE__ */ R(cd, {
|
|
8626
8636
|
"data-slot": "popover-content",
|
|
@@ -8634,27 +8644,27 @@ function Eb({ className: t, align: n = "center", sideOffset: r = 4, style: i, ..
|
|
|
8634
8644
|
...a
|
|
8635
8645
|
}) });
|
|
8636
8646
|
}
|
|
8637
|
-
function
|
|
8647
|
+
function Ob({ ...e }) {
|
|
8638
8648
|
return /* @__PURE__ */ R(ad, {
|
|
8639
8649
|
"data-slot": "popover-anchor",
|
|
8640
8650
|
...e
|
|
8641
8651
|
});
|
|
8642
8652
|
}
|
|
8643
|
-
function
|
|
8653
|
+
function kb({ className: e, ...t }) {
|
|
8644
8654
|
return /* @__PURE__ */ R("div", {
|
|
8645
8655
|
"data-slot": "popover-header",
|
|
8646
8656
|
className: O("flex flex-col gap-1 text-sm", e),
|
|
8647
8657
|
...t
|
|
8648
8658
|
});
|
|
8649
8659
|
}
|
|
8650
|
-
function
|
|
8660
|
+
function Ab({ className: e, ...t }) {
|
|
8651
8661
|
return /* @__PURE__ */ R("div", {
|
|
8652
8662
|
"data-slot": "popover-title",
|
|
8653
8663
|
className: O("font-heading font-medium", e),
|
|
8654
8664
|
...t
|
|
8655
8665
|
});
|
|
8656
8666
|
}
|
|
8657
|
-
function
|
|
8667
|
+
function jb({ className: e, ...t }) {
|
|
8658
8668
|
return /* @__PURE__ */ R("p", {
|
|
8659
8669
|
"data-slot": "popover-description",
|
|
8660
8670
|
className: O("text-muted-foreground", e),
|
|
@@ -8663,14 +8673,14 @@ function Ab({ className: e, ...t }) {
|
|
|
8663
8673
|
}
|
|
8664
8674
|
//#endregion
|
|
8665
8675
|
//#region src/components/ui/progress.tsx
|
|
8666
|
-
var
|
|
8676
|
+
var Mb = {
|
|
8667
8677
|
default: "bg-primary",
|
|
8668
8678
|
ai: "bg-[var(--ai)]",
|
|
8669
8679
|
success: "bg-[var(--success)]",
|
|
8670
8680
|
warning: "bg-[var(--warning)]",
|
|
8671
8681
|
danger: "bg-destructive"
|
|
8672
8682
|
};
|
|
8673
|
-
function
|
|
8683
|
+
function Nb({ className: e, value: t, tone: n = "default", ...r }) {
|
|
8674
8684
|
return /* @__PURE__ */ R(Ed, {
|
|
8675
8685
|
"data-slot": "progress",
|
|
8676
8686
|
"data-tone": n,
|
|
@@ -8678,14 +8688,14 @@ function Mb({ className: e, value: t, tone: n = "default", ...r }) {
|
|
|
8678
8688
|
...r,
|
|
8679
8689
|
children: /* @__PURE__ */ R(Dd, {
|
|
8680
8690
|
"data-slot": "progress-indicator",
|
|
8681
|
-
className: O("score-fill size-full flex-1 transition-data",
|
|
8691
|
+
className: O("score-fill size-full flex-1 transition-data", Mb[n]),
|
|
8682
8692
|
style: { transform: `translateX(-${100 - (t || 0)}%)` }
|
|
8683
8693
|
})
|
|
8684
8694
|
});
|
|
8685
8695
|
}
|
|
8686
8696
|
//#endregion
|
|
8687
8697
|
//#region src/components/ui/radio-group.tsx
|
|
8688
|
-
function
|
|
8698
|
+
function Pb({ className: e, label: t, helperText: n, error: r = !1, ...i }) {
|
|
8689
8699
|
return /* @__PURE__ */ z("div", {
|
|
8690
8700
|
className: "flex flex-col gap-2",
|
|
8691
8701
|
children: [
|
|
@@ -8702,7 +8712,7 @@ function Nb({ className: e, label: t, helperText: n, error: r = !1, ...i }) {
|
|
|
8702
8712
|
]
|
|
8703
8713
|
});
|
|
8704
8714
|
}
|
|
8705
|
-
function
|
|
8715
|
+
function Fb({ className: e, ...t }) {
|
|
8706
8716
|
return /* @__PURE__ */ R(ef, {
|
|
8707
8717
|
"data-slot": "radio-group-item",
|
|
8708
8718
|
className: O("group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary", e),
|
|
@@ -8716,21 +8726,21 @@ function Pb({ className: e, ...t }) {
|
|
|
8716
8726
|
}
|
|
8717
8727
|
//#endregion
|
|
8718
8728
|
//#region node_modules/react-resizable-panels/dist/react-resizable-panels.js
|
|
8719
|
-
function
|
|
8729
|
+
function Ib(e, t) {
|
|
8720
8730
|
let n = getComputedStyle(e);
|
|
8721
8731
|
return t * parseFloat(n.fontSize);
|
|
8722
8732
|
}
|
|
8723
|
-
function
|
|
8733
|
+
function Lb(e, t) {
|
|
8724
8734
|
let n = getComputedStyle(e.ownerDocument.documentElement);
|
|
8725
8735
|
return t * parseFloat(n.fontSize);
|
|
8726
8736
|
}
|
|
8727
|
-
function
|
|
8737
|
+
function Rb(e) {
|
|
8728
8738
|
return e / 100 * window.innerHeight;
|
|
8729
8739
|
}
|
|
8730
|
-
function
|
|
8740
|
+
function zb(e) {
|
|
8731
8741
|
return e / 100 * window.innerWidth;
|
|
8732
8742
|
}
|
|
8733
|
-
function
|
|
8743
|
+
function Bb(e) {
|
|
8734
8744
|
switch (typeof e) {
|
|
8735
8745
|
case "number": return [e, "px"];
|
|
8736
8746
|
case "string": {
|
|
@@ -8739,8 +8749,8 @@ function zb(e) {
|
|
|
8739
8749
|
}
|
|
8740
8750
|
}
|
|
8741
8751
|
}
|
|
8742
|
-
function
|
|
8743
|
-
let r, [i, a] =
|
|
8752
|
+
function Vb({ groupSize: e, panelElement: t, styleProp: n }) {
|
|
8753
|
+
let r, [i, a] = Bb(n);
|
|
8744
8754
|
switch (a) {
|
|
8745
8755
|
case "%":
|
|
8746
8756
|
r = i / 100 * e;
|
|
@@ -8749,16 +8759,16 @@ function Bb({ groupSize: e, panelElement: t, styleProp: n }) {
|
|
|
8749
8759
|
r = i;
|
|
8750
8760
|
break;
|
|
8751
8761
|
case "rem":
|
|
8752
|
-
r =
|
|
8762
|
+
r = Lb(t, i);
|
|
8753
8763
|
break;
|
|
8754
8764
|
case "em":
|
|
8755
|
-
r =
|
|
8765
|
+
r = Ib(t, i);
|
|
8756
8766
|
break;
|
|
8757
8767
|
case "vh":
|
|
8758
|
-
r =
|
|
8768
|
+
r = Rb(i);
|
|
8759
8769
|
break;
|
|
8760
8770
|
case "vw":
|
|
8761
|
-
r =
|
|
8771
|
+
r = zb(i);
|
|
8762
8772
|
break;
|
|
8763
8773
|
}
|
|
8764
8774
|
return r;
|
|
@@ -8766,12 +8776,12 @@ function Bb({ groupSize: e, panelElement: t, styleProp: n }) {
|
|
|
8766
8776
|
function Z(e) {
|
|
8767
8777
|
return parseFloat(e.toFixed(3));
|
|
8768
8778
|
}
|
|
8769
|
-
function
|
|
8779
|
+
function Hb({ group: e }) {
|
|
8770
8780
|
let { orientation: t, panels: n } = e;
|
|
8771
8781
|
return n.reduce((e, n) => (e += t === "horizontal" ? n.element.offsetWidth : n.element.offsetHeight, e), 0);
|
|
8772
8782
|
}
|
|
8773
|
-
function
|
|
8774
|
-
let { panels: t } = e, n =
|
|
8783
|
+
function Ub(e) {
|
|
8784
|
+
let { panels: t } = e, n = Hb({ group: e });
|
|
8775
8785
|
return n === 0 ? t.map((e) => ({
|
|
8776
8786
|
groupResizeBehavior: e.panelConstraints.groupResizeBehavior,
|
|
8777
8787
|
collapsedSize: 0,
|
|
@@ -8783,25 +8793,25 @@ function Hb(e) {
|
|
|
8783
8793
|
panelId: e.id
|
|
8784
8794
|
})) : t.map((e) => {
|
|
8785
8795
|
let { element: t, panelConstraints: r } = e, i = 0;
|
|
8786
|
-
r.collapsedSize !== void 0 && (i = Z(
|
|
8796
|
+
r.collapsedSize !== void 0 && (i = Z(Vb({
|
|
8787
8797
|
groupSize: n,
|
|
8788
8798
|
panelElement: t,
|
|
8789
8799
|
styleProp: r.collapsedSize
|
|
8790
8800
|
}) / n * 100));
|
|
8791
8801
|
let a;
|
|
8792
|
-
r.defaultSize !== void 0 && (a = Z(
|
|
8802
|
+
r.defaultSize !== void 0 && (a = Z(Vb({
|
|
8793
8803
|
groupSize: n,
|
|
8794
8804
|
panelElement: t,
|
|
8795
8805
|
styleProp: r.defaultSize
|
|
8796
8806
|
}) / n * 100));
|
|
8797
8807
|
let o = 0;
|
|
8798
|
-
r.minSize !== void 0 && (o = Z(
|
|
8808
|
+
r.minSize !== void 0 && (o = Z(Vb({
|
|
8799
8809
|
groupSize: n,
|
|
8800
8810
|
panelElement: t,
|
|
8801
8811
|
styleProp: r.minSize
|
|
8802
8812
|
}) / n * 100));
|
|
8803
8813
|
let s = 100;
|
|
8804
|
-
return r.maxSize !== void 0 && (s = Z(
|
|
8814
|
+
return r.maxSize !== void 0 && (s = Z(Vb({
|
|
8805
8815
|
groupSize: n,
|
|
8806
8816
|
panelElement: t,
|
|
8807
8817
|
styleProp: r.maxSize
|
|
@@ -8820,43 +8830,43 @@ function Hb(e) {
|
|
|
8820
8830
|
function Q(e, t = "Assertion error") {
|
|
8821
8831
|
if (!e) throw Error(t);
|
|
8822
8832
|
}
|
|
8823
|
-
function Ub(e, t) {
|
|
8824
|
-
return Array.from(t).sort(e === "horizontal" ? Wb : Gb);
|
|
8825
|
-
}
|
|
8826
8833
|
function Wb(e, t) {
|
|
8834
|
+
return Array.from(t).sort(e === "horizontal" ? Gb : Kb);
|
|
8835
|
+
}
|
|
8836
|
+
function Gb(e, t) {
|
|
8827
8837
|
let n = e.element.offsetLeft - t.element.offsetLeft;
|
|
8828
8838
|
return n === 0 ? e.element.offsetWidth - t.element.offsetWidth : n;
|
|
8829
8839
|
}
|
|
8830
|
-
function
|
|
8840
|
+
function Kb(e, t) {
|
|
8831
8841
|
let n = e.element.offsetTop - t.element.offsetTop;
|
|
8832
8842
|
return n === 0 ? e.element.offsetHeight - t.element.offsetHeight : n;
|
|
8833
8843
|
}
|
|
8834
|
-
function
|
|
8844
|
+
function qb(e) {
|
|
8835
8845
|
return typeof e == "object" && !!e && "nodeType" in e && e.nodeType === Node.ELEMENT_NODE;
|
|
8836
8846
|
}
|
|
8837
|
-
function
|
|
8847
|
+
function Jb(e, t) {
|
|
8838
8848
|
return {
|
|
8839
8849
|
x: e.x >= t.left && e.x <= t.right ? 0 : Math.min(Math.abs(e.x - t.left), Math.abs(e.x - t.right)),
|
|
8840
8850
|
y: e.y >= t.top && e.y <= t.bottom ? 0 : Math.min(Math.abs(e.y - t.top), Math.abs(e.y - t.bottom))
|
|
8841
8851
|
};
|
|
8842
8852
|
}
|
|
8843
|
-
function
|
|
8853
|
+
function Yb({ orientation: e, rects: t, targetRect: n }) {
|
|
8844
8854
|
let r = {
|
|
8845
8855
|
x: n.x + n.width / 2,
|
|
8846
8856
|
y: n.y + n.height / 2
|
|
8847
8857
|
}, i, a = Number.MAX_VALUE;
|
|
8848
8858
|
for (let n of t) {
|
|
8849
|
-
let { x: t, y: o } =
|
|
8859
|
+
let { x: t, y: o } = Jb(r, n), s = e === "horizontal" ? t : o;
|
|
8850
8860
|
s < a && (a = s, i = n);
|
|
8851
8861
|
}
|
|
8852
8862
|
return Q(i, "No rect found"), i;
|
|
8853
8863
|
}
|
|
8854
|
-
var
|
|
8855
|
-
function
|
|
8856
|
-
return
|
|
8864
|
+
var Xb;
|
|
8865
|
+
function Zb() {
|
|
8866
|
+
return Xb === void 0 && (Xb = typeof matchMedia == "function" ? !!matchMedia("(pointer:coarse)").matches : !1), Xb;
|
|
8857
8867
|
}
|
|
8858
|
-
function
|
|
8859
|
-
let { element: t, orientation: n, panels: r, separators: i } = e, a =
|
|
8868
|
+
function Qb(e) {
|
|
8869
|
+
let { element: t, orientation: n, panels: r, separators: i } = e, a = Wb(n, Array.from(t.children).filter(qb).map((e) => ({ element: e }))).map(({ element: e }) => e), o = [], s = !1, c = !1, l = -1, u = -1, d = 0, f, p = [];
|
|
8860
8870
|
{
|
|
8861
8871
|
let e = -1;
|
|
8862
8872
|
for (let t of a) t.hasAttribute("data-panel") && (e++, t.hasAttribute("data-disabled") || (d++, l === -1 && (l = e), u = e));
|
|
@@ -8877,7 +8887,7 @@ function Zb(e) {
|
|
|
8877
8887
|
break;
|
|
8878
8888
|
case 1: {
|
|
8879
8889
|
let i = p[0];
|
|
8880
|
-
m = [i,
|
|
8890
|
+
m = [i, Yb({
|
|
8881
8891
|
orientation: n,
|
|
8882
8892
|
rects: [r, a],
|
|
8883
8893
|
targetRect: i.element.getBoundingClientRect()
|
|
@@ -8890,7 +8900,7 @@ function Zb(e) {
|
|
|
8890
8900
|
}
|
|
8891
8901
|
} else m = p.length ? p : [n === "horizontal" ? new DOMRect(r.right, a.top, a.left - r.right, a.height) : new DOMRect(a.left, r.bottom, a.width, a.top - r.bottom)];
|
|
8892
8902
|
for (let n of m) {
|
|
8893
|
-
let r = "width" in n ? n : n.element.getBoundingClientRect(), a =
|
|
8903
|
+
let r = "width" in n ? n : n.element.getBoundingClientRect(), a = Zb() ? e.resizeTargetMinimumSize.coarse : e.resizeTargetMinimumSize.fine;
|
|
8894
8904
|
if (r.width < a) {
|
|
8895
8905
|
let e = a - r.width;
|
|
8896
8906
|
r = new DOMRect(r.x - e / 2, r.y, r.width + e, r.height);
|
|
@@ -8901,7 +8911,7 @@ function Zb(e) {
|
|
|
8901
8911
|
}
|
|
8902
8912
|
!s && !(t <= l || t > u) && o.push({
|
|
8903
8913
|
group: e,
|
|
8904
|
-
groupSize:
|
|
8914
|
+
groupSize: Hb({ group: e }),
|
|
8905
8915
|
panels: [f, i],
|
|
8906
8916
|
separator: "width" in n ? void 0 : n,
|
|
8907
8917
|
rect: r
|
|
@@ -8918,7 +8928,7 @@ function Zb(e) {
|
|
|
8918
8928
|
}
|
|
8919
8929
|
return o;
|
|
8920
8930
|
}
|
|
8921
|
-
var
|
|
8931
|
+
var $b = class {
|
|
8922
8932
|
#e = {};
|
|
8923
8933
|
addListener(e, t) {
|
|
8924
8934
|
let n = this.#e[e];
|
|
@@ -8952,40 +8962,40 @@ var Qb = class {
|
|
|
8952
8962
|
e >= 0 && n.splice(e, 1);
|
|
8953
8963
|
}
|
|
8954
8964
|
}
|
|
8955
|
-
},
|
|
8956
|
-
function
|
|
8957
|
-
|
|
8958
|
-
}
|
|
8959
|
-
function nx(e, t) {
|
|
8960
|
-
for (let [t] of $b) if (t.id === e) return t;
|
|
8965
|
+
}, ex = /* @__PURE__ */ new Map(), tx = new $b();
|
|
8966
|
+
function nx(e) {
|
|
8967
|
+
ex = new Map(ex), ex.delete(e);
|
|
8961
8968
|
}
|
|
8962
8969
|
function rx(e, t) {
|
|
8963
|
-
for (let [t
|
|
8970
|
+
for (let [t] of ex) if (t.id === e) return t;
|
|
8971
|
+
}
|
|
8972
|
+
function ix(e, t) {
|
|
8973
|
+
for (let [t, n] of ex) if (t.id === e) return n;
|
|
8964
8974
|
if (t) throw Error(`Could not find data for Group with id ${e}`);
|
|
8965
8975
|
}
|
|
8966
|
-
function
|
|
8967
|
-
return
|
|
8976
|
+
function ax() {
|
|
8977
|
+
return ex;
|
|
8968
8978
|
}
|
|
8969
|
-
function
|
|
8970
|
-
return
|
|
8979
|
+
function ox(e, t) {
|
|
8980
|
+
return tx.addListener("groupChange", (n) => {
|
|
8971
8981
|
n.group.id === e && t(n);
|
|
8972
8982
|
});
|
|
8973
8983
|
}
|
|
8974
|
-
function
|
|
8975
|
-
let n =
|
|
8976
|
-
|
|
8984
|
+
function sx(e, t) {
|
|
8985
|
+
let n = ex.get(e);
|
|
8986
|
+
ex = new Map(ex), ex.set(e, t), tx.emit("groupChange", {
|
|
8977
8987
|
group: e,
|
|
8978
8988
|
prev: n,
|
|
8979
8989
|
next: t
|
|
8980
8990
|
});
|
|
8981
8991
|
}
|
|
8982
|
-
function
|
|
8992
|
+
function cx(e, t, n) {
|
|
8983
8993
|
let r, i = {
|
|
8984
8994
|
x: Infinity,
|
|
8985
8995
|
y: Infinity
|
|
8986
8996
|
};
|
|
8987
8997
|
for (let a of t) {
|
|
8988
|
-
let t =
|
|
8998
|
+
let t = Jb(n, a.rect);
|
|
8989
8999
|
switch (e) {
|
|
8990
9000
|
case "horizontal":
|
|
8991
9001
|
t.x <= i.x && (r = a, i = t);
|
|
@@ -9000,20 +9010,20 @@ function sx(e, t, n) {
|
|
|
9000
9010
|
hitRegion: r
|
|
9001
9011
|
} : void 0;
|
|
9002
9012
|
}
|
|
9003
|
-
function
|
|
9013
|
+
function lx(e) {
|
|
9004
9014
|
return typeof e == "object" && !!e && "nodeType" in e && e.nodeType === Node.DOCUMENT_FRAGMENT_NODE;
|
|
9005
9015
|
}
|
|
9006
|
-
function
|
|
9016
|
+
function ux(e, t) {
|
|
9007
9017
|
if (e === t) throw Error("Cannot compare node with itself");
|
|
9008
9018
|
let n = {
|
|
9009
|
-
a:
|
|
9010
|
-
b:
|
|
9019
|
+
a: gx(e),
|
|
9020
|
+
b: gx(t)
|
|
9011
9021
|
}, r;
|
|
9012
9022
|
for (; n.a.at(-1) === n.b.at(-1);) r = n.a.pop(), n.b.pop();
|
|
9013
9023
|
Q(r, "Stacking order can only be calculated for elements with a common ancestor");
|
|
9014
9024
|
let i = {
|
|
9015
|
-
a: mx(
|
|
9016
|
-
b: mx(
|
|
9025
|
+
a: hx(mx(n.a)),
|
|
9026
|
+
b: hx(mx(n.b))
|
|
9017
9027
|
};
|
|
9018
9028
|
if (i.a === i.b) {
|
|
9019
9029
|
let e = r.childNodes, t = {
|
|
@@ -9028,66 +9038,66 @@ function lx(e, t) {
|
|
|
9028
9038
|
}
|
|
9029
9039
|
return Math.sign(i.a - i.b);
|
|
9030
9040
|
}
|
|
9031
|
-
var
|
|
9032
|
-
function
|
|
9033
|
-
let t = getComputedStyle(
|
|
9041
|
+
var dx = /\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;
|
|
9042
|
+
function fx(e) {
|
|
9043
|
+
let t = getComputedStyle(_x(e) ?? e).display;
|
|
9034
9044
|
return t === "flex" || t === "inline-flex";
|
|
9035
9045
|
}
|
|
9036
|
-
function
|
|
9046
|
+
function px(e) {
|
|
9037
9047
|
let t = getComputedStyle(e);
|
|
9038
|
-
return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" ||
|
|
9048
|
+
return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" || fx(e)) || +t.opacity < 1 || "transform" in t && t.transform !== "none" || "webkitTransform" in t && t.webkitTransform !== "none" || "mixBlendMode" in t && t.mixBlendMode !== "normal" || "filter" in t && t.filter !== "none" || "webkitFilter" in t && t.webkitFilter !== "none" || "isolation" in t && t.isolation === "isolate" || dx.test(t.willChange) || t.webkitOverflowScrolling === "touch");
|
|
9039
9049
|
}
|
|
9040
|
-
function
|
|
9050
|
+
function mx(e) {
|
|
9041
9051
|
let t = e.length;
|
|
9042
9052
|
for (; t--;) {
|
|
9043
9053
|
let n = e[t];
|
|
9044
|
-
if (Q(n, "Missing node"),
|
|
9054
|
+
if (Q(n, "Missing node"), px(n)) return n;
|
|
9045
9055
|
}
|
|
9046
9056
|
return null;
|
|
9047
9057
|
}
|
|
9048
|
-
function
|
|
9058
|
+
function hx(e) {
|
|
9049
9059
|
return e && Number(getComputedStyle(e).zIndex) || 0;
|
|
9050
9060
|
}
|
|
9051
|
-
function
|
|
9061
|
+
function gx(e) {
|
|
9052
9062
|
let t = [];
|
|
9053
|
-
for (; e;) t.push(e), e =
|
|
9063
|
+
for (; e;) t.push(e), e = _x(e);
|
|
9054
9064
|
return t;
|
|
9055
9065
|
}
|
|
9056
|
-
function
|
|
9066
|
+
function _x(e) {
|
|
9057
9067
|
let { parentNode: t } = e;
|
|
9058
|
-
return
|
|
9068
|
+
return lx(t) ? t.host : t;
|
|
9059
9069
|
}
|
|
9060
|
-
function
|
|
9070
|
+
function vx(e, t) {
|
|
9061
9071
|
return e.x < t.x + t.width && e.x + e.width > t.x && e.y < t.y + t.height && e.y + e.height > t.y;
|
|
9062
9072
|
}
|
|
9063
|
-
function
|
|
9064
|
-
if (!
|
|
9065
|
-
if (
|
|
9073
|
+
function yx({ groupElement: e, hitRegion: t, pointerEventTarget: n }) {
|
|
9074
|
+
if (!qb(n) || n.contains(e) || e.contains(n)) return !0;
|
|
9075
|
+
if (ux(n, e) > 0) {
|
|
9066
9076
|
let r = n;
|
|
9067
9077
|
for (; r;) {
|
|
9068
9078
|
if (r.contains(e)) return !0;
|
|
9069
|
-
if (
|
|
9079
|
+
if (vx(r.getBoundingClientRect(), t)) return !1;
|
|
9070
9080
|
r = r.parentElement;
|
|
9071
9081
|
}
|
|
9072
9082
|
}
|
|
9073
9083
|
return !0;
|
|
9074
9084
|
}
|
|
9075
|
-
function
|
|
9085
|
+
function bx(e, t) {
|
|
9076
9086
|
let n = [];
|
|
9077
9087
|
return t.forEach((t, r) => {
|
|
9078
9088
|
if (r.disabled) return;
|
|
9079
|
-
let i =
|
|
9089
|
+
let i = Qb(r), a = cx(r.orientation, i, {
|
|
9080
9090
|
x: e.clientX,
|
|
9081
9091
|
y: e.clientY
|
|
9082
9092
|
});
|
|
9083
|
-
a && a.distance.x <= 0 && a.distance.y <= 0 &&
|
|
9093
|
+
a && a.distance.x <= 0 && a.distance.y <= 0 && yx({
|
|
9084
9094
|
groupElement: r.element,
|
|
9085
9095
|
hitRegion: a.hitRegion.rect,
|
|
9086
9096
|
pointerEventTarget: e.target
|
|
9087
9097
|
}) && n.push(a.hitRegion);
|
|
9088
9098
|
}), n;
|
|
9089
9099
|
}
|
|
9090
|
-
function
|
|
9100
|
+
function xx(e, t) {
|
|
9091
9101
|
if (e.length !== t.length) return !1;
|
|
9092
9102
|
for (let n = 0; n < e.length; n++) if (e[n] != t[n]) return !1;
|
|
9093
9103
|
return !0;
|
|
@@ -9095,19 +9105,19 @@ function bx(e, t) {
|
|
|
9095
9105
|
function $(e, t, n = 0) {
|
|
9096
9106
|
return Math.abs(Z(e) - Z(t)) <= n;
|
|
9097
9107
|
}
|
|
9098
|
-
function
|
|
9108
|
+
function Sx(e, t) {
|
|
9099
9109
|
return $(e, t) ? 0 : e > t ? 1 : -1;
|
|
9100
9110
|
}
|
|
9101
|
-
function
|
|
9111
|
+
function Cx({ overrideDisabledPanels: e, panelConstraints: t, prevSize: n, size: r }) {
|
|
9102
9112
|
let { collapsedSize: i = 0, collapsible: a, disabled: o, maxSize: s = 100, minSize: c = 0 } = t;
|
|
9103
9113
|
if (o && !e) return n;
|
|
9104
|
-
if (
|
|
9114
|
+
if (Sx(r, c) < 0) if (a) {
|
|
9105
9115
|
let e = (i + c) / 2;
|
|
9106
|
-
r =
|
|
9116
|
+
r = Sx(r, e) < 0 ? i : c;
|
|
9107
9117
|
} else r = c;
|
|
9108
9118
|
return r = Math.min(s, r), r = Z(r), r;
|
|
9109
9119
|
}
|
|
9110
|
-
function
|
|
9120
|
+
function wx({ delta: e, initialLayout: t, panelConstraints: n, pivotIndices: r, prevLayout: i, trigger: a }) {
|
|
9111
9121
|
if ($(e, 0)) return t;
|
|
9112
9122
|
let o = a === "imperative-api", s = Object.values(t), c = Object.values(i), l = [...s], [u, d] = r;
|
|
9113
9123
|
Q(u != null, "Invalid first pivot index"), Q(d != null, "Invalid second pivot index");
|
|
@@ -9122,7 +9132,7 @@ function Cx({ delta: e, initialLayout: t, panelConstraints: n, pivotIndices: r,
|
|
|
9122
9132
|
let n = s[t];
|
|
9123
9133
|
if (Q(n != null, `Previous layout not found for panel index ${t}`), $(n, i)) {
|
|
9124
9134
|
let t = o - n;
|
|
9125
|
-
|
|
9135
|
+
Sx(t, Math.abs(e)) > 0 && (e = e < 0 ? 0 - t : t);
|
|
9126
9136
|
}
|
|
9127
9137
|
}
|
|
9128
9138
|
}
|
|
@@ -9134,7 +9144,7 @@ function Cx({ delta: e, initialLayout: t, panelConstraints: n, pivotIndices: r,
|
|
|
9134
9144
|
let n = s[t];
|
|
9135
9145
|
if (Q(n != null, `Previous layout not found for panel index ${t}`), $(n, o)) {
|
|
9136
9146
|
let t = n - i;
|
|
9137
|
-
|
|
9147
|
+
Sx(t, Math.abs(e)) > 0 && (e = e < 0 ? 0 - t : t);
|
|
9138
9148
|
}
|
|
9139
9149
|
}
|
|
9140
9150
|
}
|
|
@@ -9143,12 +9153,12 @@ function Cx({ delta: e, initialLayout: t, panelConstraints: n, pivotIndices: r,
|
|
|
9143
9153
|
let t = e < 0 ? d : u, r = n[t];
|
|
9144
9154
|
Q(r, `Panel constraints not found for index ${t}`);
|
|
9145
9155
|
let i = s[t], { collapsible: a, collapsedSize: o, minSize: c } = r;
|
|
9146
|
-
if (a &&
|
|
9156
|
+
if (a && Sx(i, c) < 0) if (e > 0) {
|
|
9147
9157
|
let t = c - o, n = t / 2;
|
|
9148
|
-
|
|
9158
|
+
Sx(i + e, c) < 0 && (e = Sx(e, n) <= 0 ? 0 : t);
|
|
9149
9159
|
} else {
|
|
9150
9160
|
let t = c - o, n = 100 - t / 2;
|
|
9151
|
-
|
|
9161
|
+
Sx(i - e, c) < 0 && (e = Sx(100 + e, n) > 0 ? 0 : -t);
|
|
9152
9162
|
}
|
|
9153
9163
|
break;
|
|
9154
9164
|
}
|
|
@@ -9158,7 +9168,7 @@ function Cx({ delta: e, initialLayout: t, panelConstraints: n, pivotIndices: r,
|
|
|
9158
9168
|
for (;;) {
|
|
9159
9169
|
let e = s[r];
|
|
9160
9170
|
Q(e != null, `Previous layout not found for panel index ${r}`);
|
|
9161
|
-
let a =
|
|
9171
|
+
let a = Cx({
|
|
9162
9172
|
overrideDisabledPanels: o,
|
|
9163
9173
|
panelConstraints: n[r],
|
|
9164
9174
|
prevSize: e,
|
|
@@ -9174,7 +9184,7 @@ function Cx({ delta: e, initialLayout: t, panelConstraints: n, pivotIndices: r,
|
|
|
9174
9184
|
for (; t >= 0 && t < n.length;) {
|
|
9175
9185
|
let r = Math.abs(e) - Math.abs(f), i = s[t];
|
|
9176
9186
|
Q(i != null, `Previous layout not found for panel index ${t}`);
|
|
9177
|
-
let a = i - r, c =
|
|
9187
|
+
let a = i - r, c = Cx({
|
|
9178
9188
|
overrideDisabledPanels: o,
|
|
9179
9189
|
panelConstraints: n[t],
|
|
9180
9190
|
prevSize: i,
|
|
@@ -9184,11 +9194,11 @@ function Cx({ delta: e, initialLayout: t, panelConstraints: n, pivotIndices: r,
|
|
|
9184
9194
|
e < 0 ? t-- : t++;
|
|
9185
9195
|
}
|
|
9186
9196
|
}
|
|
9187
|
-
if (
|
|
9197
|
+
if (xx(c, l)) return i;
|
|
9188
9198
|
{
|
|
9189
9199
|
let t = e < 0 ? d : u, r = s[t];
|
|
9190
9200
|
Q(r != null, `Previous layout not found for panel index ${t}`);
|
|
9191
|
-
let i = r + f, a =
|
|
9201
|
+
let i = r + f, a = Cx({
|
|
9192
9202
|
overrideDisabledPanels: o,
|
|
9193
9203
|
panelConstraints: n[t],
|
|
9194
9204
|
prevSize: r,
|
|
@@ -9199,7 +9209,7 @@ function Cx({ delta: e, initialLayout: t, panelConstraints: n, pivotIndices: r,
|
|
|
9199
9209
|
for (; r >= 0 && r < n.length;) {
|
|
9200
9210
|
let i = l[r];
|
|
9201
9211
|
Q(i != null, `Previous layout not found for panel index ${r}`);
|
|
9202
|
-
let a = i + t, s =
|
|
9212
|
+
let a = i + t, s = Cx({
|
|
9203
9213
|
overrideDisabledPanels: o,
|
|
9204
9214
|
panelConstraints: n[r],
|
|
9205
9215
|
prevSize: i,
|
|
@@ -9214,12 +9224,12 @@ function Cx({ delta: e, initialLayout: t, panelConstraints: n, pivotIndices: r,
|
|
|
9214
9224
|
let p = Object.keys(i);
|
|
9215
9225
|
return l.reduce((e, t, n) => (e[p[n]] = t, e), {});
|
|
9216
9226
|
}
|
|
9217
|
-
function
|
|
9227
|
+
function Tx(e, t) {
|
|
9218
9228
|
if (Object.keys(e).length !== Object.keys(t).length) return !1;
|
|
9219
|
-
for (let n in e) if (t[n] === void 0 ||
|
|
9229
|
+
for (let n in e) if (t[n] === void 0 || Sx(e[n], t[n]) !== 0) return !1;
|
|
9220
9230
|
return !0;
|
|
9221
9231
|
}
|
|
9222
|
-
function
|
|
9232
|
+
function Ex({ layout: e, panelConstraints: t }) {
|
|
9223
9233
|
let n = Object.values(e), r = [...n], i = r.reduce((e, t) => e + t, 0);
|
|
9224
9234
|
if (r.length !== t.length) throw Error(`Invalid ${t.length} panel layout: ${r.map((e) => `${e}%`).join(", ")}`);
|
|
9225
9235
|
if (!$(i, 100) && r.length > 0) for (let e = 0; e < t.length; e++) {
|
|
@@ -9232,7 +9242,7 @@ function Tx({ layout: e, panelConstraints: t }) {
|
|
|
9232
9242
|
Q(i != null, `No layout data found for index ${e}`);
|
|
9233
9243
|
let o = r[e];
|
|
9234
9244
|
Q(o != null, `No layout data found for index ${e}`);
|
|
9235
|
-
let s =
|
|
9245
|
+
let s = Cx({
|
|
9236
9246
|
overrideDisabledPanels: !0,
|
|
9237
9247
|
panelConstraints: t[e],
|
|
9238
9248
|
prevSize: i,
|
|
@@ -9243,7 +9253,7 @@ function Tx({ layout: e, panelConstraints: t }) {
|
|
|
9243
9253
|
if (!$(a, 0)) for (let e = 0; e < t.length; e++) {
|
|
9244
9254
|
let n = r[e];
|
|
9245
9255
|
Q(n != null, `No layout data found for index ${e}`);
|
|
9246
|
-
let i = n + a, o =
|
|
9256
|
+
let i = n + a, o = Cx({
|
|
9247
9257
|
overrideDisabledPanels: !0,
|
|
9248
9258
|
panelConstraints: t[e],
|
|
9249
9259
|
prevSize: n,
|
|
@@ -9254,9 +9264,9 @@ function Tx({ layout: e, panelConstraints: t }) {
|
|
|
9254
9264
|
let o = Object.keys(e);
|
|
9255
9265
|
return r.reduce((e, t, n) => (e[o[n]] = t, e), {});
|
|
9256
9266
|
}
|
|
9257
|
-
function
|
|
9267
|
+
function Dx({ groupId: e, panelId: t }) {
|
|
9258
9268
|
let n = () => {
|
|
9259
|
-
let t =
|
|
9269
|
+
let t = ax();
|
|
9260
9270
|
for (let [n, { defaultLayoutDeferred: r, derivedPanelConstraints: i, layout: a, groupSize: o, separatorToPanels: s }] of t) if (n.id === e) return {
|
|
9261
9271
|
defaultLayoutDeferred: r,
|
|
9262
9272
|
derivedPanelConstraints: i,
|
|
@@ -9290,7 +9300,7 @@ function Ex({ groupId: e, panelId: t }) {
|
|
|
9290
9300
|
[t]: Z(100 - e)
|
|
9291
9301
|
};
|
|
9292
9302
|
}
|
|
9293
|
-
return
|
|
9303
|
+
return wx({
|
|
9294
9304
|
delta: l ? o - e : e - o,
|
|
9295
9305
|
initialLayout: r,
|
|
9296
9306
|
panelConstraints: i,
|
|
@@ -9300,7 +9310,7 @@ function Ex({ groupId: e, panelId: t }) {
|
|
|
9300
9310
|
});
|
|
9301
9311
|
}, s = (e) => {
|
|
9302
9312
|
if (e === a()) return;
|
|
9303
|
-
let { defaultLayoutDeferred: t, derivedPanelConstraints: r, group: i, groupSize: s, layout: c, separatorToPanels: l } = n(), u =
|
|
9313
|
+
let { defaultLayoutDeferred: t, derivedPanelConstraints: r, group: i, groupSize: s, layout: c, separatorToPanels: l } = n(), u = Ex({
|
|
9304
9314
|
layout: o({
|
|
9305
9315
|
nextSize: e,
|
|
9306
9316
|
panels: i.panels,
|
|
@@ -9309,7 +9319,7 @@ function Ex({ groupId: e, panelId: t }) {
|
|
|
9309
9319
|
}),
|
|
9310
9320
|
panelConstraints: r
|
|
9311
9321
|
});
|
|
9312
|
-
|
|
9322
|
+
Tx(c, u) || sx(i, {
|
|
9313
9323
|
defaultLayoutDeferred: t,
|
|
9314
9324
|
derivedPanelConstraints: r,
|
|
9315
9325
|
groupSize: s,
|
|
@@ -9341,8 +9351,8 @@ function Ex({ groupId: e, panelId: t }) {
|
|
|
9341
9351
|
return e && $(t, n);
|
|
9342
9352
|
},
|
|
9343
9353
|
resize: (e) => {
|
|
9344
|
-
let { group: t } = n(), { element: r } = i(), a =
|
|
9345
|
-
s(Z(
|
|
9354
|
+
let { group: t } = n(), { element: r } = i(), a = Hb({ group: t });
|
|
9355
|
+
s(Z(Vb({
|
|
9346
9356
|
groupSize: a,
|
|
9347
9357
|
panelElement: r,
|
|
9348
9358
|
styleProp: e
|
|
@@ -9350,12 +9360,12 @@ function Ex({ groupId: e, panelId: t }) {
|
|
|
9350
9360
|
}
|
|
9351
9361
|
};
|
|
9352
9362
|
}
|
|
9353
|
-
function
|
|
9354
|
-
e.defaultPrevented ||
|
|
9363
|
+
function Ox(e) {
|
|
9364
|
+
e.defaultPrevented || bx(e, ax()).forEach((t) => {
|
|
9355
9365
|
if (t.separator && !t.separator.disableDoubleClick) {
|
|
9356
9366
|
let n = t.panels.find((e) => e.panelConstraints.defaultSize !== void 0);
|
|
9357
9367
|
if (n) {
|
|
9358
|
-
let r = n.panelConstraints.defaultSize, i =
|
|
9368
|
+
let r = n.panelConstraints.defaultSize, i = Dx({
|
|
9359
9369
|
groupId: t.group.id,
|
|
9360
9370
|
panelId: n.id
|
|
9361
9371
|
});
|
|
@@ -9364,14 +9374,14 @@ function Dx(e) {
|
|
|
9364
9374
|
}
|
|
9365
9375
|
});
|
|
9366
9376
|
}
|
|
9367
|
-
function
|
|
9368
|
-
let t =
|
|
9377
|
+
function kx(e) {
|
|
9378
|
+
let t = ax();
|
|
9369
9379
|
for (let [n] of t) if (n.separators.some((t) => t.element === e)) return n;
|
|
9370
9380
|
throw Error("Could not find parent Group for separator element");
|
|
9371
9381
|
}
|
|
9372
|
-
function
|
|
9382
|
+
function Ax({ groupId: e }) {
|
|
9373
9383
|
let t = () => {
|
|
9374
|
-
let t =
|
|
9384
|
+
let t = ax();
|
|
9375
9385
|
for (let [n, r] of t) if (n.id === e) return {
|
|
9376
9386
|
group: n,
|
|
9377
9387
|
...r
|
|
@@ -9384,11 +9394,11 @@ function kx({ groupId: e }) {
|
|
|
9384
9394
|
return e ? {} : n;
|
|
9385
9395
|
},
|
|
9386
9396
|
setLayout(e) {
|
|
9387
|
-
let { defaultLayoutDeferred: n, derivedPanelConstraints: r, group: i, groupSize: a, layout: o, separatorToPanels: s } = t(), c =
|
|
9397
|
+
let { defaultLayoutDeferred: n, derivedPanelConstraints: r, group: i, groupSize: a, layout: o, separatorToPanels: s } = t(), c = Ex({
|
|
9388
9398
|
layout: e,
|
|
9389
9399
|
panelConstraints: r
|
|
9390
9400
|
});
|
|
9391
|
-
return n ? o : (
|
|
9401
|
+
return n ? o : (Tx(o, c) || sx(i, {
|
|
9392
9402
|
defaultLayoutDeferred: n,
|
|
9393
9403
|
derivedPanelConstraints: r,
|
|
9394
9404
|
groupSize: a,
|
|
@@ -9398,13 +9408,13 @@ function kx({ groupId: e }) {
|
|
|
9398
9408
|
}
|
|
9399
9409
|
};
|
|
9400
9410
|
}
|
|
9401
|
-
function
|
|
9402
|
-
let n =
|
|
9411
|
+
function jx(e, t) {
|
|
9412
|
+
let n = kx(e), r = ix(n.id, !0), i = n.separators.find((t) => t.element === e);
|
|
9403
9413
|
Q(i, "Matching separator not found");
|
|
9404
9414
|
let a = r.separatorToPanels.get(i);
|
|
9405
9415
|
Q(a, "Matching panels not found");
|
|
9406
|
-
let o = a.map((e) => n.panels.indexOf(e)), s =
|
|
9407
|
-
layout:
|
|
9416
|
+
let o = a.map((e) => n.panels.indexOf(e)), s = Ax({ groupId: n.id }).getLayout(), c = Ex({
|
|
9417
|
+
layout: wx({
|
|
9408
9418
|
delta: t,
|
|
9409
9419
|
initialLayout: s,
|
|
9410
9420
|
panelConstraints: r.derivedPanelConstraints,
|
|
@@ -9414,7 +9424,7 @@ function Ax(e, t) {
|
|
|
9414
9424
|
}),
|
|
9415
9425
|
panelConstraints: r.derivedPanelConstraints
|
|
9416
9426
|
});
|
|
9417
|
-
|
|
9427
|
+
Tx(s, c) || sx(n, {
|
|
9418
9428
|
defaultLayoutDeferred: r.defaultLayoutDeferred,
|
|
9419
9429
|
derivedPanelConstraints: r.derivedPanelConstraints,
|
|
9420
9430
|
groupSize: r.groupSize,
|
|
@@ -9422,76 +9432,76 @@ function Ax(e, t) {
|
|
|
9422
9432
|
separatorToPanels: r.separatorToPanels
|
|
9423
9433
|
});
|
|
9424
9434
|
}
|
|
9425
|
-
function
|
|
9435
|
+
function Mx(e) {
|
|
9426
9436
|
if (e.defaultPrevented) return;
|
|
9427
|
-
let t = e.currentTarget, n =
|
|
9437
|
+
let t = e.currentTarget, n = kx(t);
|
|
9428
9438
|
if (!n.disabled) switch (e.key) {
|
|
9429
9439
|
case "ArrowDown":
|
|
9430
|
-
e.preventDefault(), n.orientation === "vertical" &&
|
|
9440
|
+
e.preventDefault(), n.orientation === "vertical" && jx(t, 5);
|
|
9431
9441
|
break;
|
|
9432
9442
|
case "ArrowLeft":
|
|
9433
|
-
e.preventDefault(), n.orientation === "horizontal" &&
|
|
9443
|
+
e.preventDefault(), n.orientation === "horizontal" && jx(t, -5);
|
|
9434
9444
|
break;
|
|
9435
9445
|
case "ArrowRight":
|
|
9436
|
-
e.preventDefault(), n.orientation === "horizontal" &&
|
|
9446
|
+
e.preventDefault(), n.orientation === "horizontal" && jx(t, 5);
|
|
9437
9447
|
break;
|
|
9438
9448
|
case "ArrowUp":
|
|
9439
|
-
e.preventDefault(), n.orientation === "vertical" &&
|
|
9449
|
+
e.preventDefault(), n.orientation === "vertical" && jx(t, -5);
|
|
9440
9450
|
break;
|
|
9441
9451
|
case "End":
|
|
9442
|
-
e.preventDefault(),
|
|
9452
|
+
e.preventDefault(), jx(t, 100);
|
|
9443
9453
|
break;
|
|
9444
9454
|
case "Enter": {
|
|
9445
9455
|
e.preventDefault();
|
|
9446
|
-
let n =
|
|
9456
|
+
let n = kx(t), { derivedPanelConstraints: r, layout: i, separatorToPanels: a } = ix(n.id, !0), o = n.separators.find((e) => e.element === t);
|
|
9447
9457
|
Q(o, "Matching separator not found");
|
|
9448
9458
|
let s = a.get(o);
|
|
9449
9459
|
Q(s, "Matching panels not found");
|
|
9450
9460
|
let c = s[0], l = r.find((e) => e.panelId === c.id);
|
|
9451
9461
|
if (Q(l, "Panel metadata not found"), l.collapsible) {
|
|
9452
9462
|
let e = i[c.id];
|
|
9453
|
-
|
|
9463
|
+
jx(t, (l.collapsedSize === e ? n.mutableState.expandedPanelSizes[c.id] ?? l.minSize : l.collapsedSize) - e);
|
|
9454
9464
|
}
|
|
9455
9465
|
break;
|
|
9456
9466
|
}
|
|
9457
9467
|
case "F6": {
|
|
9458
9468
|
e.preventDefault();
|
|
9459
|
-
let n =
|
|
9469
|
+
let n = kx(t).separators.map((e) => e.element), r = Array.from(n).findIndex((t) => t === e.currentTarget);
|
|
9460
9470
|
Q(r !== null, "Index not found"), n[e.shiftKey ? r > 0 ? r - 1 : n.length - 1 : r + 1 < n.length ? r + 1 : 0].focus({ preventScroll: !0 });
|
|
9461
9471
|
break;
|
|
9462
9472
|
}
|
|
9463
9473
|
case "Home":
|
|
9464
|
-
e.preventDefault(),
|
|
9474
|
+
e.preventDefault(), jx(t, -100);
|
|
9465
9475
|
break;
|
|
9466
9476
|
}
|
|
9467
9477
|
}
|
|
9468
|
-
var
|
|
9478
|
+
var Nx = {
|
|
9469
9479
|
cursorFlags: 0,
|
|
9470
9480
|
state: "inactive"
|
|
9471
|
-
},
|
|
9472
|
-
function
|
|
9473
|
-
return
|
|
9474
|
-
}
|
|
9475
|
-
function Fx(e) {
|
|
9476
|
-
return Nx.addListener("change", e);
|
|
9481
|
+
}, Px = new $b();
|
|
9482
|
+
function Fx() {
|
|
9483
|
+
return Nx;
|
|
9477
9484
|
}
|
|
9478
9485
|
function Ix(e) {
|
|
9479
|
-
|
|
9480
|
-
|
|
9486
|
+
return Px.addListener("change", e);
|
|
9487
|
+
}
|
|
9488
|
+
function Lx(e) {
|
|
9489
|
+
let t = Nx, n = { ...Nx };
|
|
9490
|
+
n.cursorFlags = e, Nx = n, Px.emit("change", {
|
|
9481
9491
|
prev: t,
|
|
9482
9492
|
next: n
|
|
9483
9493
|
});
|
|
9484
9494
|
}
|
|
9485
|
-
function
|
|
9486
|
-
let t =
|
|
9487
|
-
|
|
9495
|
+
function Rx(e) {
|
|
9496
|
+
let t = Nx;
|
|
9497
|
+
Nx = e, Px.emit("change", {
|
|
9488
9498
|
prev: t,
|
|
9489
9499
|
next: e
|
|
9490
9500
|
});
|
|
9491
9501
|
}
|
|
9492
|
-
function
|
|
9502
|
+
function zx(e) {
|
|
9493
9503
|
if (e.defaultPrevented || e.pointerType === "mouse" && e.button > 0) return;
|
|
9494
|
-
let t =
|
|
9504
|
+
let t = ax(), n = bx(e, t), r = /* @__PURE__ */ new Map(), i = !1;
|
|
9495
9505
|
n.forEach((e) => {
|
|
9496
9506
|
e.separator && (i || (i = !0, e.separator.element.focus({
|
|
9497
9507
|
focusVisible: !1,
|
|
@@ -9499,7 +9509,7 @@ function Rx(e) {
|
|
|
9499
9509
|
})));
|
|
9500
9510
|
let n = t.get(e.group);
|
|
9501
9511
|
n && r.set(e.group, n.layout);
|
|
9502
|
-
}),
|
|
9512
|
+
}), Rx({
|
|
9503
9513
|
cursorFlags: 0,
|
|
9504
9514
|
hitRegions: n,
|
|
9505
9515
|
initialLayoutMap: r,
|
|
@@ -9510,11 +9520,11 @@ function Rx(e) {
|
|
|
9510
9520
|
state: "active"
|
|
9511
9521
|
}), n.length && e.preventDefault();
|
|
9512
9522
|
}
|
|
9513
|
-
var
|
|
9514
|
-
function
|
|
9515
|
-
return
|
|
9523
|
+
var Bx = (e) => e, Vx = () => {}, Hx = 1, Ux = 2, Wx = 4, Gx = 8, Kx = 3, qx = 12, Jx;
|
|
9524
|
+
function Yx() {
|
|
9525
|
+
return Jx === void 0 && (Jx = !1, typeof window < "u" && (window.navigator.userAgent.includes("Chrome") || window.navigator.userAgent.includes("Firefox")) && (Jx = !0)), Jx;
|
|
9516
9526
|
}
|
|
9517
|
-
function
|
|
9527
|
+
function Xx({ cursorFlags: e, groups: t, state: n }) {
|
|
9518
9528
|
let r = 0, i = 0;
|
|
9519
9529
|
switch (n) {
|
|
9520
9530
|
case "active":
|
|
@@ -9532,8 +9542,8 @@ function Yx({ cursorFlags: e, groups: t, state: n }) {
|
|
|
9532
9542
|
if (!(r === 0 && i === 0)) {
|
|
9533
9543
|
switch (n) {
|
|
9534
9544
|
case "active":
|
|
9535
|
-
if (e &&
|
|
9536
|
-
let t = (e &
|
|
9545
|
+
if (e && Yx()) {
|
|
9546
|
+
let t = (e & Hx) !== 0, n = (e & Ux) !== 0, r = (e & Wx) !== 0, i = (e & Gx) !== 0;
|
|
9537
9547
|
if (t) return r ? "se-resize" : i ? "ne-resize" : "e-resize";
|
|
9538
9548
|
if (n) return r ? "sw-resize" : i ? "nw-resize" : "w-resize";
|
|
9539
9549
|
if (r) return "s-resize";
|
|
@@ -9541,19 +9551,19 @@ function Yx({ cursorFlags: e, groups: t, state: n }) {
|
|
|
9541
9551
|
}
|
|
9542
9552
|
break;
|
|
9543
9553
|
}
|
|
9544
|
-
return
|
|
9554
|
+
return Yx() ? r > 0 && i > 0 ? "move" : r > 0 ? "ew-resize" : "ns-resize" : r > 0 && i > 0 ? "grab" : r > 0 ? "col-resize" : "row-resize";
|
|
9545
9555
|
}
|
|
9546
9556
|
}
|
|
9547
|
-
var
|
|
9548
|
-
function
|
|
9557
|
+
var Zx = /* @__PURE__ */ new WeakMap();
|
|
9558
|
+
function Qx(e) {
|
|
9549
9559
|
if (e.defaultView === null || e.defaultView === void 0) return;
|
|
9550
|
-
let { prevStyle: t, styleSheet: n } =
|
|
9560
|
+
let { prevStyle: t, styleSheet: n } = Zx.get(e) ?? {};
|
|
9551
9561
|
n === void 0 && (n = new e.defaultView.CSSStyleSheet(), e.adoptedStyleSheets && (Object.isExtensible(e.adoptedStyleSheets) ? e.adoptedStyleSheets.push(n) : e.adoptedStyleSheets = [...e.adoptedStyleSheets, n]));
|
|
9552
|
-
let r =
|
|
9562
|
+
let r = Fx();
|
|
9553
9563
|
switch (r.state) {
|
|
9554
9564
|
case "active":
|
|
9555
9565
|
case "hover": {
|
|
9556
|
-
let e =
|
|
9566
|
+
let e = Xx({
|
|
9557
9567
|
cursorFlags: r.cursorFlags,
|
|
9558
9568
|
groups: r.hitRegions.map((e) => e.group),
|
|
9559
9569
|
state: r.state
|
|
@@ -9566,12 +9576,12 @@ function Zx(e) {
|
|
|
9566
9576
|
t = void 0, n.cssRules.length === 1 && n.deleteRule(0);
|
|
9567
9577
|
break;
|
|
9568
9578
|
}
|
|
9569
|
-
|
|
9579
|
+
Zx.set(e, {
|
|
9570
9580
|
prevStyle: t,
|
|
9571
9581
|
styleSheet: n
|
|
9572
9582
|
});
|
|
9573
9583
|
}
|
|
9574
|
-
function
|
|
9584
|
+
function $x({ document: e, event: t, hitRegions: n, initialLayoutMap: r, mountedGroups: i, pointerDownAtPoint: a, prevCursorFlags: o }) {
|
|
9575
9585
|
let s = 0;
|
|
9576
9586
|
n.forEach((e) => {
|
|
9577
9587
|
let { group: n, groupSize: o } = e, { orientation: c, panels: l } = n, { disableCursor: u } = n.mutableState, d = 0;
|
|
@@ -9580,7 +9590,7 @@ function Qx({ document: e, event: t, hitRegions: n, initialLayoutMap: r, mounted
|
|
|
9580
9590
|
if (!f || !p) return;
|
|
9581
9591
|
let { defaultLayoutDeferred: m, derivedPanelConstraints: h, groupSize: g, layout: _, separatorToPanels: v } = p;
|
|
9582
9592
|
if (h && _ && v) {
|
|
9583
|
-
let t =
|
|
9593
|
+
let t = wx({
|
|
9584
9594
|
delta: d,
|
|
9585
9595
|
initialLayout: f,
|
|
9586
9596
|
panelConstraints: h,
|
|
@@ -9588,16 +9598,16 @@ function Qx({ document: e, event: t, hitRegions: n, initialLayoutMap: r, mounted
|
|
|
9588
9598
|
prevLayout: _,
|
|
9589
9599
|
trigger: "mouse-or-touch"
|
|
9590
9600
|
});
|
|
9591
|
-
if (
|
|
9601
|
+
if (Tx(t, _)) {
|
|
9592
9602
|
if (d !== 0 && !u) switch (c) {
|
|
9593
9603
|
case "horizontal":
|
|
9594
|
-
s |= d < 0 ?
|
|
9604
|
+
s |= d < 0 ? Hx : Ux;
|
|
9595
9605
|
break;
|
|
9596
9606
|
case "vertical":
|
|
9597
|
-
s |= d < 0 ?
|
|
9607
|
+
s |= d < 0 ? Wx : Gx;
|
|
9598
9608
|
break;
|
|
9599
9609
|
}
|
|
9600
|
-
} else
|
|
9610
|
+
} else sx(e.group, {
|
|
9601
9611
|
defaultLayoutDeferred: m,
|
|
9602
9612
|
derivedPanelConstraints: h,
|
|
9603
9613
|
groupSize: g,
|
|
@@ -9607,12 +9617,12 @@ function Qx({ document: e, event: t, hitRegions: n, initialLayoutMap: r, mounted
|
|
|
9607
9617
|
}
|
|
9608
9618
|
});
|
|
9609
9619
|
let c = 0;
|
|
9610
|
-
t.movementX === 0 ? c |= o &
|
|
9620
|
+
t.movementX === 0 ? c |= o & Kx : c |= s & Kx, t.movementY === 0 ? c |= o & qx : c |= s & qx, Lx(c), Qx(e);
|
|
9611
9621
|
}
|
|
9612
|
-
function
|
|
9613
|
-
let t =
|
|
9622
|
+
function eS(e) {
|
|
9623
|
+
let t = ax(), n = Fx();
|
|
9614
9624
|
switch (n.state) {
|
|
9615
|
-
case "active":
|
|
9625
|
+
case "active": $x({
|
|
9616
9626
|
document: e.currentTarget,
|
|
9617
9627
|
event: e,
|
|
9618
9628
|
hitRegions: n.hitRegions,
|
|
@@ -9622,18 +9632,18 @@ function $x(e) {
|
|
|
9622
9632
|
});
|
|
9623
9633
|
}
|
|
9624
9634
|
}
|
|
9625
|
-
function
|
|
9635
|
+
function tS(e) {
|
|
9626
9636
|
if (e.defaultPrevented) return;
|
|
9627
|
-
let t =
|
|
9637
|
+
let t = Fx(), n = ax();
|
|
9628
9638
|
switch (t.state) {
|
|
9629
9639
|
case "active":
|
|
9630
9640
|
if (e.buttons === 0) {
|
|
9631
|
-
|
|
9641
|
+
Rx({
|
|
9632
9642
|
cursorFlags: 0,
|
|
9633
9643
|
state: "inactive"
|
|
9634
9644
|
}), t.hitRegions.forEach((e) => {
|
|
9635
|
-
let t =
|
|
9636
|
-
|
|
9645
|
+
let t = ix(e.group.id, !0);
|
|
9646
|
+
sx(e.group, t);
|
|
9637
9647
|
});
|
|
9638
9648
|
return;
|
|
9639
9649
|
}
|
|
@@ -9641,7 +9651,7 @@ function eS(e) {
|
|
|
9641
9651
|
let { element: t } = n.separator;
|
|
9642
9652
|
t.hasPointerCapture?.(e.pointerId) || t.setPointerCapture?.(e.pointerId);
|
|
9643
9653
|
}
|
|
9644
|
-
|
|
9654
|
+
$x({
|
|
9645
9655
|
document: e.currentTarget,
|
|
9646
9656
|
event: e,
|
|
9647
9657
|
hitRegions: t.hitRegions,
|
|
@@ -9652,41 +9662,41 @@ function eS(e) {
|
|
|
9652
9662
|
});
|
|
9653
9663
|
break;
|
|
9654
9664
|
default: {
|
|
9655
|
-
let r =
|
|
9656
|
-
r.length === 0 ? t.state !== "inactive" &&
|
|
9665
|
+
let r = bx(e, n);
|
|
9666
|
+
r.length === 0 ? t.state !== "inactive" && Rx({
|
|
9657
9667
|
cursorFlags: 0,
|
|
9658
9668
|
state: "inactive"
|
|
9659
|
-
}) :
|
|
9669
|
+
}) : Rx({
|
|
9660
9670
|
cursorFlags: 0,
|
|
9661
9671
|
hitRegions: r,
|
|
9662
9672
|
state: "hover"
|
|
9663
|
-
}),
|
|
9673
|
+
}), Qx(e.currentTarget);
|
|
9664
9674
|
break;
|
|
9665
9675
|
}
|
|
9666
9676
|
}
|
|
9667
9677
|
}
|
|
9668
|
-
function
|
|
9669
|
-
if (e.relatedTarget instanceof HTMLIFrameElement) switch (
|
|
9670
|
-
case "hover":
|
|
9678
|
+
function nS(e) {
|
|
9679
|
+
if (e.relatedTarget instanceof HTMLIFrameElement) switch (Fx().state) {
|
|
9680
|
+
case "hover": Rx({
|
|
9671
9681
|
cursorFlags: 0,
|
|
9672
9682
|
state: "inactive"
|
|
9673
9683
|
});
|
|
9674
9684
|
}
|
|
9675
9685
|
}
|
|
9676
|
-
function
|
|
9686
|
+
function rS(e) {
|
|
9677
9687
|
if (e.defaultPrevented || e.pointerType === "mouse" && e.button > 0) return;
|
|
9678
|
-
let t =
|
|
9688
|
+
let t = Fx();
|
|
9679
9689
|
switch (t.state) {
|
|
9680
|
-
case "active":
|
|
9690
|
+
case "active": Rx({
|
|
9681
9691
|
cursorFlags: 0,
|
|
9682
9692
|
state: "inactive"
|
|
9683
|
-
}), t.hitRegions.length > 0 && (
|
|
9684
|
-
let t =
|
|
9685
|
-
|
|
9693
|
+
}), t.hitRegions.length > 0 && (Qx(e.currentTarget), t.hitRegions.forEach((e) => {
|
|
9694
|
+
let t = ix(e.group.id, !0);
|
|
9695
|
+
sx(e.group, t);
|
|
9686
9696
|
}), e.preventDefault());
|
|
9687
9697
|
}
|
|
9688
9698
|
}
|
|
9689
|
-
function
|
|
9699
|
+
function iS(e) {
|
|
9690
9700
|
let t = 0, n = 0, r = {};
|
|
9691
9701
|
for (let i of e) if (i.defaultSize !== void 0) {
|
|
9692
9702
|
t++;
|
|
@@ -9700,22 +9710,22 @@ function rS(e) {
|
|
|
9700
9710
|
}
|
|
9701
9711
|
return r;
|
|
9702
9712
|
}
|
|
9703
|
-
function
|
|
9713
|
+
function aS(e, t, n) {
|
|
9704
9714
|
if (!n[0]) return;
|
|
9705
9715
|
let r = e.panels.find((e) => e.element === t);
|
|
9706
9716
|
if (!r || !r.onResize) return;
|
|
9707
|
-
let i =
|
|
9717
|
+
let i = Hb({ group: e }), a = e.orientation === "horizontal" ? r.element.offsetWidth : r.element.offsetHeight, o = r.mutableValues.prevSize, s = {
|
|
9708
9718
|
asPercentage: Z(a / i * 100),
|
|
9709
9719
|
inPixels: a
|
|
9710
9720
|
};
|
|
9711
9721
|
r.mutableValues.prevSize = s, r.onResize(s, r.id, o);
|
|
9712
9722
|
}
|
|
9713
|
-
function
|
|
9723
|
+
function oS(e, t) {
|
|
9714
9724
|
if (Object.keys(e).length !== Object.keys(t).length) return !1;
|
|
9715
9725
|
for (let n in e) if (e[n] !== t[n]) return !1;
|
|
9716
9726
|
return !0;
|
|
9717
9727
|
}
|
|
9718
|
-
function
|
|
9728
|
+
function sS({ group: e, nextGroupSize: t, prevGroupSize: n, prevLayout: r }) {
|
|
9719
9729
|
if (n <= 0 || t <= 0 || n === t) return r;
|
|
9720
9730
|
let i = 0, a = 0, o = !1, s = /* @__PURE__ */ new Map(), c = [];
|
|
9721
9731
|
for (let l of e.panels) {
|
|
@@ -9743,14 +9753,14 @@ function oS({ group: e, nextGroupSize: t, prevGroupSize: n, prevLayout: r }) {
|
|
|
9743
9753
|
}
|
|
9744
9754
|
return u;
|
|
9745
9755
|
}
|
|
9746
|
-
function
|
|
9756
|
+
function cS(e, t) {
|
|
9747
9757
|
let n = e.map((e) => e.id), r = Object.keys(t);
|
|
9748
9758
|
if (n.length !== r.length) return !1;
|
|
9749
9759
|
for (let e of n) if (!r.includes(e)) return !1;
|
|
9750
9760
|
return !0;
|
|
9751
9761
|
}
|
|
9752
|
-
var
|
|
9753
|
-
function
|
|
9762
|
+
var lS = /* @__PURE__ */ new Map();
|
|
9763
|
+
function uS(e) {
|
|
9754
9764
|
let t = !0;
|
|
9755
9765
|
Q(e.element.ownerDocument.defaultView, "Cannot register an unmounted Group");
|
|
9756
9766
|
let n = e.element.ownerDocument.defaultView.ResizeObserver, r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), a = new n((n) => {
|
|
@@ -9758,12 +9768,12 @@ function lS(e) {
|
|
|
9758
9768
|
let { borderBoxSize: n, target: i } = r;
|
|
9759
9769
|
if (i === e.element) {
|
|
9760
9770
|
if (t) {
|
|
9761
|
-
let t =
|
|
9771
|
+
let t = Hb({ group: e });
|
|
9762
9772
|
if (t === 0) return;
|
|
9763
|
-
let n =
|
|
9773
|
+
let n = ix(e.id);
|
|
9764
9774
|
if (!n) return;
|
|
9765
|
-
let r =
|
|
9766
|
-
layout:
|
|
9775
|
+
let r = Ub(e), i = n.defaultLayoutDeferred ? iS(r) : n.layout, a = Ex({
|
|
9776
|
+
layout: sS({
|
|
9767
9777
|
group: e,
|
|
9768
9778
|
nextGroupSize: t,
|
|
9769
9779
|
prevGroupSize: n.groupSize,
|
|
@@ -9771,8 +9781,8 @@ function lS(e) {
|
|
|
9771
9781
|
}),
|
|
9772
9782
|
panelConstraints: r
|
|
9773
9783
|
});
|
|
9774
|
-
if (!n.defaultLayoutDeferred &&
|
|
9775
|
-
|
|
9784
|
+
if (!n.defaultLayoutDeferred && Tx(n.layout, a) && oS(n.derivedPanelConstraints, r) && n.groupSize === t) return;
|
|
9785
|
+
sx(e, {
|
|
9776
9786
|
defaultLayoutDeferred: !1,
|
|
9777
9787
|
derivedPanelConstraints: r,
|
|
9778
9788
|
groupSize: t,
|
|
@@ -9780,53 +9790,53 @@ function lS(e) {
|
|
|
9780
9790
|
separatorToPanels: n.separatorToPanels
|
|
9781
9791
|
});
|
|
9782
9792
|
}
|
|
9783
|
-
} else
|
|
9793
|
+
} else aS(e, i, n);
|
|
9784
9794
|
}
|
|
9785
9795
|
});
|
|
9786
9796
|
a.observe(e.element), e.panels.forEach((e) => {
|
|
9787
9797
|
Q(!r.has(e.id), `Panel ids must be unique; id "${e.id}" was used more than once`), r.add(e.id), e.onResize && a.observe(e.element);
|
|
9788
9798
|
});
|
|
9789
|
-
let o =
|
|
9790
|
-
l && (
|
|
9791
|
-
let u =
|
|
9792
|
-
layout: e.mutableState.layouts[c] ?? l ??
|
|
9799
|
+
let o = Hb({ group: e }), s = Ub(e), c = e.panels.map(({ id: e }) => e).join(","), l = e.mutableState.defaultLayout;
|
|
9800
|
+
l && (cS(e.panels, l) || (l = void 0));
|
|
9801
|
+
let u = Ex({
|
|
9802
|
+
layout: e.mutableState.layouts[c] ?? l ?? iS(s),
|
|
9793
9803
|
panelConstraints: s
|
|
9794
9804
|
}), d = e.element.ownerDocument;
|
|
9795
|
-
|
|
9805
|
+
lS.set(d, (lS.get(d) ?? 0) + 1);
|
|
9796
9806
|
let f = /* @__PURE__ */ new Map();
|
|
9797
|
-
return
|
|
9807
|
+
return Qb(e).forEach((e) => {
|
|
9798
9808
|
e.separator && f.set(e.separator, e.panels);
|
|
9799
|
-
}),
|
|
9809
|
+
}), sx(e, {
|
|
9800
9810
|
defaultLayoutDeferred: o === 0,
|
|
9801
9811
|
derivedPanelConstraints: s,
|
|
9802
9812
|
groupSize: o,
|
|
9803
9813
|
layout: u,
|
|
9804
9814
|
separatorToPanels: f
|
|
9805
9815
|
}), e.separators.forEach((e) => {
|
|
9806
|
-
Q(!i.has(e.id), `Separator ids must be unique; id "${e.id}" was used more than once`), i.add(e.id), e.element.addEventListener("keydown",
|
|
9807
|
-
}),
|
|
9808
|
-
t = !1,
|
|
9809
|
-
e.element.removeEventListener("keydown",
|
|
9810
|
-
}),
|
|
9816
|
+
Q(!i.has(e.id), `Separator ids must be unique; id "${e.id}" was used more than once`), i.add(e.id), e.element.addEventListener("keydown", Mx);
|
|
9817
|
+
}), lS.get(d) === 1 && (d.addEventListener("dblclick", Ox, !0), d.addEventListener("pointerdown", zx, !0), d.addEventListener("pointerleave", eS), d.addEventListener("pointermove", tS), d.addEventListener("pointerout", nS), d.addEventListener("pointerup", rS, !0)), function() {
|
|
9818
|
+
t = !1, lS.set(d, Math.max(0, (lS.get(d) ?? 0) - 1)), nx(e), e.separators.forEach((e) => {
|
|
9819
|
+
e.element.removeEventListener("keydown", Mx);
|
|
9820
|
+
}), lS.get(d) || (d.removeEventListener("dblclick", Ox, !0), d.removeEventListener("pointerdown", zx, !0), d.removeEventListener("pointerleave", eS), d.removeEventListener("pointermove", tS), d.removeEventListener("pointerout", nS), d.removeEventListener("pointerup", rS, !0)), a.disconnect();
|
|
9811
9821
|
};
|
|
9812
9822
|
}
|
|
9813
|
-
function
|
|
9823
|
+
function dS() {
|
|
9814
9824
|
let [e, t] = Be({});
|
|
9815
9825
|
return [e, Me(() => t({}), [])];
|
|
9816
9826
|
}
|
|
9817
|
-
function
|
|
9827
|
+
function fS(e) {
|
|
9818
9828
|
let t = Fe();
|
|
9819
9829
|
return `${e ?? t}`;
|
|
9820
9830
|
}
|
|
9821
|
-
var
|
|
9822
|
-
function
|
|
9831
|
+
var pS = typeof window < "u" ? Le : Pe;
|
|
9832
|
+
function mS(e) {
|
|
9823
9833
|
let t = ze(e);
|
|
9824
|
-
return
|
|
9834
|
+
return pS(() => {
|
|
9825
9835
|
t.current = e;
|
|
9826
9836
|
}, [e]), Me((...e) => t.current?.(...e), [t]);
|
|
9827
9837
|
}
|
|
9828
|
-
function
|
|
9829
|
-
return
|
|
9838
|
+
function hS(...e) {
|
|
9839
|
+
return mS((t) => {
|
|
9830
9840
|
e.forEach((e) => {
|
|
9831
9841
|
if (e) switch (typeof e) {
|
|
9832
9842
|
case "function":
|
|
@@ -9839,43 +9849,43 @@ function mS(...e) {
|
|
|
9839
9849
|
});
|
|
9840
9850
|
});
|
|
9841
9851
|
}
|
|
9842
|
-
function
|
|
9852
|
+
function gS(e) {
|
|
9843
9853
|
let t = ze({ ...e });
|
|
9844
|
-
return
|
|
9854
|
+
return pS(() => {
|
|
9845
9855
|
for (let n in e) t.current[n] = e[n];
|
|
9846
9856
|
}, [e]), t.current;
|
|
9847
9857
|
}
|
|
9848
|
-
var
|
|
9849
|
-
function
|
|
9858
|
+
var _S = je(null);
|
|
9859
|
+
function vS(e, t) {
|
|
9850
9860
|
let n = ze({
|
|
9851
9861
|
getLayout: () => ({}),
|
|
9852
|
-
setLayout:
|
|
9862
|
+
setLayout: Bx
|
|
9853
9863
|
});
|
|
9854
|
-
Ie(t, () => n.current, []),
|
|
9855
|
-
Object.assign(n.current,
|
|
9864
|
+
Ie(t, () => n.current, []), pS(() => {
|
|
9865
|
+
Object.assign(n.current, Ax({ groupId: e }));
|
|
9856
9866
|
});
|
|
9857
9867
|
}
|
|
9858
|
-
function
|
|
9868
|
+
function yS({ children: e, className: t, defaultLayout: n, disableCursor: r, disabled: i, elementRef: a, groupRef: o, id: s, onLayoutChange: c, onLayoutChanged: l, orientation: u = "horizontal", resizeTargetMinimumSize: d = {
|
|
9859
9869
|
coarse: 20,
|
|
9860
9870
|
fine: 10
|
|
9861
9871
|
}, style: f, ...p }) {
|
|
9862
9872
|
let m = ze({
|
|
9863
9873
|
onLayoutChange: {},
|
|
9864
9874
|
onLayoutChanged: {}
|
|
9865
|
-
}), h =
|
|
9866
|
-
|
|
9867
|
-
}), g =
|
|
9868
|
-
|
|
9869
|
-
}), _ =
|
|
9875
|
+
}), h = mS((e) => {
|
|
9876
|
+
Tx(m.current.onLayoutChange, e) || (m.current.onLayoutChange = e, c?.(e));
|
|
9877
|
+
}), g = mS((e) => {
|
|
9878
|
+
Tx(m.current.onLayoutChanged, e) || (m.current.onLayoutChanged = e, l?.(e));
|
|
9879
|
+
}), _ = fS(s), v = ze(null), [y, b] = dS(), x = ze({
|
|
9870
9880
|
lastExpandedPanelSizes: {},
|
|
9871
9881
|
layouts: {},
|
|
9872
9882
|
panels: [],
|
|
9873
9883
|
resizeTargetMinimumSize: d,
|
|
9874
9884
|
separators: []
|
|
9875
|
-
}), S =
|
|
9876
|
-
|
|
9877
|
-
let C =
|
|
9878
|
-
let r =
|
|
9885
|
+
}), S = hS(v, a);
|
|
9886
|
+
vS(_, o);
|
|
9887
|
+
let C = mS((e, t) => {
|
|
9888
|
+
let r = Fx(), i = rx(e), a = ix(e);
|
|
9879
9889
|
if (a) {
|
|
9880
9890
|
let e = !1;
|
|
9881
9891
|
switch (r.state) {
|
|
@@ -9889,7 +9899,7 @@ function vS({ children: e, className: t, defaultLayout: n, disableCursor: r, dis
|
|
|
9889
9899
|
};
|
|
9890
9900
|
}
|
|
9891
9901
|
if (n?.[t]) return { flexGrow: n?.[t] };
|
|
9892
|
-
}), w =
|
|
9902
|
+
}), w = gS({
|
|
9893
9903
|
defaultLayout: n,
|
|
9894
9904
|
disableCursor: r
|
|
9895
9905
|
}), T = Re(() => ({
|
|
@@ -9901,23 +9911,23 @@ function vS({ children: e, className: t, defaultLayout: n, disableCursor: r, dis
|
|
|
9901
9911
|
orientation: u,
|
|
9902
9912
|
registerPanel: (e) => {
|
|
9903
9913
|
let t = x.current;
|
|
9904
|
-
return t.panels =
|
|
9914
|
+
return t.panels = Wb(u, [...t.panels, e]), b(), () => {
|
|
9905
9915
|
t.panels = t.panels.filter((t) => t !== e), b();
|
|
9906
9916
|
};
|
|
9907
9917
|
},
|
|
9908
9918
|
registerSeparator: (e) => {
|
|
9909
9919
|
let t = x.current;
|
|
9910
|
-
return t.separators =
|
|
9920
|
+
return t.separators = Wb(u, [...t.separators, e]), b(), () => {
|
|
9911
9921
|
t.separators = t.separators.filter((t) => t !== e), b();
|
|
9912
9922
|
};
|
|
9913
9923
|
},
|
|
9914
9924
|
updatePanelProps: (e, { disabled: t }) => {
|
|
9915
9925
|
let n = x.current.panels.find((t) => t.id === e);
|
|
9916
9926
|
n && (n.panelConstraints.disabled = t);
|
|
9917
|
-
let r =
|
|
9918
|
-
r && i &&
|
|
9927
|
+
let r = rx(_), i = ix(_);
|
|
9928
|
+
r && i && sx(r, {
|
|
9919
9929
|
...i,
|
|
9920
|
-
derivedPanelConstraints:
|
|
9930
|
+
derivedPanelConstraints: Ub(r)
|
|
9921
9931
|
});
|
|
9922
9932
|
},
|
|
9923
9933
|
updateSeparatorProps: (e, { disabled: t, disableDoubleClick: n }) => {
|
|
@@ -9931,7 +9941,7 @@ function vS({ children: e, className: t, defaultLayout: n, disableCursor: r, dis
|
|
|
9931
9941
|
u,
|
|
9932
9942
|
w
|
|
9933
9943
|
]), E = ze(null);
|
|
9934
|
-
return
|
|
9944
|
+
return pS(() => {
|
|
9935
9945
|
let e = v.current;
|
|
9936
9946
|
if (e === null) return;
|
|
9937
9947
|
let t = x.current, n;
|
|
@@ -9958,9 +9968,9 @@ function vS({ children: e, className: t, defaultLayout: n, disableCursor: r, dis
|
|
|
9958
9968
|
separators: t.separators
|
|
9959
9969
|
};
|
|
9960
9970
|
E.current = r;
|
|
9961
|
-
let a =
|
|
9971
|
+
let a = uS(r), { defaultLayoutDeferred: o, derivedPanelConstraints: s, layout: c } = ix(r.id, !0);
|
|
9962
9972
|
!o && s.length > 0 && (h(c), g(c));
|
|
9963
|
-
let l =
|
|
9973
|
+
let l = ox(_, (e) => {
|
|
9964
9974
|
let { defaultLayoutDeferred: t, derivedPanelConstraints: n, layout: i } = e.next;
|
|
9965
9975
|
if (t || n.length === 0) return;
|
|
9966
9976
|
let a = r.panels.map(({ id: e }) => e).join(",");
|
|
@@ -9973,7 +9983,7 @@ function vS({ children: e, className: t, defaultLayout: n, disableCursor: r, dis
|
|
|
9973
9983
|
}
|
|
9974
9984
|
}
|
|
9975
9985
|
});
|
|
9976
|
-
let o =
|
|
9986
|
+
let o = Fx().state !== "active";
|
|
9977
9987
|
h(i), o && g(i);
|
|
9978
9988
|
});
|
|
9979
9989
|
return () => {
|
|
@@ -9990,7 +10000,7 @@ function vS({ children: e, className: t, defaultLayout: n, disableCursor: r, dis
|
|
|
9990
10000
|
]), Pe(() => {
|
|
9991
10001
|
let e = E.current;
|
|
9992
10002
|
e && (e.mutableState.defaultLayout = n, e.mutableState.disableCursor = !!r);
|
|
9993
|
-
}), /* @__PURE__ */ R(
|
|
10003
|
+
}), /* @__PURE__ */ R(_S.Provider, {
|
|
9994
10004
|
value: T,
|
|
9995
10005
|
children: /* @__PURE__ */ R("div", {
|
|
9996
10006
|
...p,
|
|
@@ -10013,34 +10023,34 @@ function vS({ children: e, className: t, defaultLayout: n, disableCursor: r, dis
|
|
|
10013
10023
|
})
|
|
10014
10024
|
});
|
|
10015
10025
|
}
|
|
10016
|
-
|
|
10017
|
-
function
|
|
10018
|
-
let e = Ne(
|
|
10026
|
+
yS.displayName = "Group";
|
|
10027
|
+
function bS() {
|
|
10028
|
+
let e = Ne(_S);
|
|
10019
10029
|
return Q(e, "Group Context not found; did you render a Panel or Separator outside of a Group?"), e;
|
|
10020
10030
|
}
|
|
10021
|
-
function
|
|
10022
|
-
let { id: n } =
|
|
10023
|
-
collapse:
|
|
10024
|
-
expand:
|
|
10031
|
+
function xS(e, t) {
|
|
10032
|
+
let { id: n } = bS(), r = ze({
|
|
10033
|
+
collapse: Vx,
|
|
10034
|
+
expand: Vx,
|
|
10025
10035
|
getSize: () => ({
|
|
10026
10036
|
asPercentage: 0,
|
|
10027
10037
|
inPixels: 0
|
|
10028
10038
|
}),
|
|
10029
10039
|
isCollapsed: () => !1,
|
|
10030
|
-
resize:
|
|
10040
|
+
resize: Vx
|
|
10031
10041
|
});
|
|
10032
|
-
Ie(t, () => r.current, []),
|
|
10033
|
-
Object.assign(r.current,
|
|
10042
|
+
Ie(t, () => r.current, []), pS(() => {
|
|
10043
|
+
Object.assign(r.current, Dx({
|
|
10034
10044
|
groupId: n,
|
|
10035
10045
|
panelId: e
|
|
10036
10046
|
}));
|
|
10037
10047
|
});
|
|
10038
10048
|
}
|
|
10039
|
-
function
|
|
10040
|
-
let h = !!c, g =
|
|
10049
|
+
function SS({ children: e, className: t, collapsedSize: n = "0%", collapsible: r = !1, defaultSize: i, disabled: a, elementRef: o, groupResizeBehavior: s = "preserve-relative-size", id: c, maxSize: l = "100%", minSize: u = "0%", onResize: d, panelRef: f, style: p, ...m }) {
|
|
10050
|
+
let h = !!c, g = fS(c), _ = gS({ disabled: a }), v = ze(null), y = hS(v, o), { getPanelStyles: b, id: x, orientation: S, registerPanel: C, updatePanelProps: w } = bS(), T = d !== null, E = mS((e, t, n) => {
|
|
10041
10051
|
d?.(e, c, n);
|
|
10042
10052
|
});
|
|
10043
|
-
|
|
10053
|
+
pS(() => {
|
|
10044
10054
|
let e = v.current;
|
|
10045
10055
|
if (e !== null) return C({
|
|
10046
10056
|
element: e,
|
|
@@ -10080,11 +10090,11 @@ function xS({ children: e, className: t, collapsedSize: n = "0%", collapsible: r
|
|
|
10080
10090
|
a,
|
|
10081
10091
|
g,
|
|
10082
10092
|
w
|
|
10083
|
-
]),
|
|
10093
|
+
]), xS(g, f);
|
|
10084
10094
|
let D = () => {
|
|
10085
10095
|
let e = b(x, g);
|
|
10086
10096
|
if (e) return JSON.stringify(e);
|
|
10087
|
-
}, O = Ve((e) =>
|
|
10097
|
+
}, O = Ve((e) => ox(x, e), D, D), k;
|
|
10088
10098
|
return k = O ? JSON.parse(O) : i === void 0 ? { flexGrow: 1 } : {
|
|
10089
10099
|
flexGrow: void 0,
|
|
10090
10100
|
flexShrink: void 0,
|
|
@@ -10097,7 +10107,7 @@ function xS({ children: e, className: t, collapsedSize: n = "0%", collapsible: r
|
|
|
10097
10107
|
id: g,
|
|
10098
10108
|
ref: y,
|
|
10099
10109
|
style: {
|
|
10100
|
-
...
|
|
10110
|
+
...CS,
|
|
10101
10111
|
display: "flex",
|
|
10102
10112
|
flexBasis: 0,
|
|
10103
10113
|
flexShrink: 1,
|
|
@@ -10118,8 +10128,8 @@ function xS({ children: e, className: t, collapsedSize: n = "0%", collapsible: r
|
|
|
10118
10128
|
})
|
|
10119
10129
|
});
|
|
10120
10130
|
}
|
|
10121
|
-
|
|
10122
|
-
var
|
|
10131
|
+
SS.displayName = "Panel";
|
|
10132
|
+
var CS = {
|
|
10123
10133
|
minHeight: 0,
|
|
10124
10134
|
maxHeight: "100%",
|
|
10125
10135
|
height: "auto",
|
|
@@ -10131,12 +10141,12 @@ var SS = {
|
|
|
10131
10141
|
padding: 0,
|
|
10132
10142
|
margin: 0
|
|
10133
10143
|
};
|
|
10134
|
-
function
|
|
10144
|
+
function wS({ layout: e, panelConstraints: t, panelId: n, panelIndex: r }) {
|
|
10135
10145
|
let i, a, o = e[n], s = t.find((e) => e.panelId === n);
|
|
10136
10146
|
if (s) {
|
|
10137
10147
|
let c = s.maxSize, l = s.collapsible ? s.collapsedSize : s.minSize, u = [r, r + 1];
|
|
10138
|
-
a =
|
|
10139
|
-
layout:
|
|
10148
|
+
a = Ex({
|
|
10149
|
+
layout: wx({
|
|
10140
10150
|
delta: l - o,
|
|
10141
10151
|
initialLayout: e,
|
|
10142
10152
|
panelConstraints: t,
|
|
@@ -10144,8 +10154,8 @@ function CS({ layout: e, panelConstraints: t, panelId: n, panelIndex: r }) {
|
|
|
10144
10154
|
prevLayout: e
|
|
10145
10155
|
}),
|
|
10146
10156
|
panelConstraints: t
|
|
10147
|
-
})[n], i =
|
|
10148
|
-
layout:
|
|
10157
|
+
})[n], i = Ex({
|
|
10158
|
+
layout: wx({
|
|
10149
10159
|
delta: c - o,
|
|
10150
10160
|
initialLayout: e,
|
|
10151
10161
|
panelConstraints: t,
|
|
@@ -10162,12 +10172,12 @@ function CS({ layout: e, panelConstraints: t, panelId: n, panelIndex: r }) {
|
|
|
10162
10172
|
valueNow: o
|
|
10163
10173
|
};
|
|
10164
10174
|
}
|
|
10165
|
-
function
|
|
10166
|
-
let c =
|
|
10175
|
+
function TS({ children: e, className: t, disabled: n, disableDoubleClick: r, elementRef: i, id: a, style: o, ...s }) {
|
|
10176
|
+
let c = fS(a), l = gS({
|
|
10167
10177
|
disabled: n,
|
|
10168
10178
|
disableDoubleClick: r
|
|
10169
|
-
}), [u, d] = Be({}), [f, p] = Be("inactive"), [m, h] = Be(!1), g = ze(null), _ =
|
|
10170
|
-
|
|
10179
|
+
}), [u, d] = Be({}), [f, p] = Be("inactive"), [m, h] = Be(!1), g = ze(null), _ = hS(g, i), { disableCursor: v, id: y, orientation: b, registerSeparator: x, updateSeparatorProps: S } = bS(), C = b === "horizontal" ? "vertical" : "horizontal";
|
|
10180
|
+
pS(() => {
|
|
10171
10181
|
let e = g.current;
|
|
10172
10182
|
if (e !== null) {
|
|
10173
10183
|
let t = {
|
|
@@ -10175,13 +10185,13 @@ function wS({ children: e, className: t, disabled: n, disableDoubleClick: r, ele
|
|
|
10175
10185
|
disableDoubleClick: l.disableDoubleClick,
|
|
10176
10186
|
element: e,
|
|
10177
10187
|
id: c
|
|
10178
|
-
}, n = x(t), r =
|
|
10188
|
+
}, n = x(t), r = Ix((e) => {
|
|
10179
10189
|
p(e.next.state !== "inactive" && e.next.hitRegions.some((e) => e.separator === t) ? e.next.state : "inactive");
|
|
10180
|
-
}), i =
|
|
10190
|
+
}), i = ox(y, (e) => {
|
|
10181
10191
|
let { derivedPanelConstraints: n, layout: r, separatorToPanels: i } = e.next, a = i.get(t);
|
|
10182
10192
|
if (a) {
|
|
10183
10193
|
let e = a[0], t = a.indexOf(e);
|
|
10184
|
-
d(
|
|
10194
|
+
d(wS({
|
|
10185
10195
|
layout: r,
|
|
10186
10196
|
panelConstraints: n,
|
|
10187
10197
|
panelId: e.id,
|
|
@@ -10247,24 +10257,24 @@ function wS({ children: e, className: t, disabled: n, disableDoubleClick: r, ele
|
|
|
10247
10257
|
tabIndex: n ? void 0 : 0
|
|
10248
10258
|
});
|
|
10249
10259
|
}
|
|
10250
|
-
|
|
10260
|
+
TS.displayName = "Separator";
|
|
10251
10261
|
//#endregion
|
|
10252
10262
|
//#region src/components/ui/resizable.tsx
|
|
10253
|
-
function
|
|
10254
|
-
return /* @__PURE__ */ R(
|
|
10263
|
+
function ES({ className: e, ...t }) {
|
|
10264
|
+
return /* @__PURE__ */ R(yS, {
|
|
10255
10265
|
"data-slot": "resizable-panel-group",
|
|
10256
10266
|
className: O("flex h-full w-full aria-[orientation=vertical]:flex-col", e),
|
|
10257
10267
|
...t
|
|
10258
10268
|
});
|
|
10259
10269
|
}
|
|
10260
|
-
function
|
|
10261
|
-
return /* @__PURE__ */ R(
|
|
10270
|
+
function DS({ ...e }) {
|
|
10271
|
+
return /* @__PURE__ */ R(SS, {
|
|
10262
10272
|
"data-slot": "resizable-panel",
|
|
10263
10273
|
...e
|
|
10264
10274
|
});
|
|
10265
10275
|
}
|
|
10266
|
-
function
|
|
10267
|
-
return /* @__PURE__ */ R(
|
|
10276
|
+
function OS({ withHandle: e, className: t, ...n }) {
|
|
10277
|
+
return /* @__PURE__ */ R(TS, {
|
|
10268
10278
|
"data-slot": "resizable-handle",
|
|
10269
10279
|
className: O("relative flex w-px items-center justify-center bg-border ring-offset-background after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:left-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 [&[aria-orientation=horizontal]>div]:rotate-90", t),
|
|
10270
10280
|
...n,
|
|
@@ -10273,7 +10283,7 @@ function DS({ withHandle: e, className: t, ...n }) {
|
|
|
10273
10283
|
}
|
|
10274
10284
|
//#endregion
|
|
10275
10285
|
//#region src/components/ui/scroll-area.tsx
|
|
10276
|
-
function
|
|
10286
|
+
function kS({ className: e, children: t, ...n }) {
|
|
10277
10287
|
return /* @__PURE__ */ z(zf, {
|
|
10278
10288
|
"data-slot": "scroll-area",
|
|
10279
10289
|
className: O("relative", e),
|
|
@@ -10284,12 +10294,12 @@ function OS({ className: e, children: t, ...n }) {
|
|
|
10284
10294
|
className: "size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",
|
|
10285
10295
|
children: t
|
|
10286
10296
|
}),
|
|
10287
|
-
/* @__PURE__ */ R(
|
|
10297
|
+
/* @__PURE__ */ R(AS, {}),
|
|
10288
10298
|
/* @__PURE__ */ R(Vf, {})
|
|
10289
10299
|
]
|
|
10290
10300
|
});
|
|
10291
10301
|
}
|
|
10292
|
-
function
|
|
10302
|
+
function AS({ className: e, orientation: t = "vertical", ...n }) {
|
|
10293
10303
|
return /* @__PURE__ */ R(pf, {
|
|
10294
10304
|
"data-slot": "scroll-area-scrollbar",
|
|
10295
10305
|
"data-orientation": t,
|
|
@@ -10304,26 +10314,26 @@ function kS({ className: e, orientation: t = "vertical", ...n }) {
|
|
|
10304
10314
|
}
|
|
10305
10315
|
//#endregion
|
|
10306
10316
|
//#region src/components/ui/shadcn/shadcn-select.tsx
|
|
10307
|
-
function
|
|
10317
|
+
function jS({ ...e }) {
|
|
10308
10318
|
return /* @__PURE__ */ R(em, {
|
|
10309
10319
|
"data-slot": "select",
|
|
10310
10320
|
...e
|
|
10311
10321
|
});
|
|
10312
10322
|
}
|
|
10313
|
-
function
|
|
10323
|
+
function MS({ className: e, ...t }) {
|
|
10314
10324
|
return /* @__PURE__ */ R(sm, {
|
|
10315
10325
|
"data-slot": "select-group",
|
|
10316
10326
|
className: O("scroll-my-1 p-1", e),
|
|
10317
10327
|
...t
|
|
10318
10328
|
});
|
|
10319
10329
|
}
|
|
10320
|
-
function
|
|
10330
|
+
function NS({ ...e }) {
|
|
10321
10331
|
return /* @__PURE__ */ R(nm, {
|
|
10322
10332
|
"data-slot": "select-value",
|
|
10323
10333
|
...e
|
|
10324
10334
|
});
|
|
10325
10335
|
}
|
|
10326
|
-
function
|
|
10336
|
+
function PS({ className: e, size: t = "default", children: n, ...r }) {
|
|
10327
10337
|
return /* @__PURE__ */ z(tm, {
|
|
10328
10338
|
"data-slot": "select-trigger",
|
|
10329
10339
|
"data-size": t,
|
|
@@ -10335,7 +10345,7 @@ function NS({ className: e, size: t = "default", children: n, ...r }) {
|
|
|
10335
10345
|
})]
|
|
10336
10346
|
});
|
|
10337
10347
|
}
|
|
10338
|
-
function
|
|
10348
|
+
function FS({ className: t, children: n, position: r = "item-aligned", align: i = "center", style: a, ...o }) {
|
|
10339
10349
|
let s = e();
|
|
10340
10350
|
return /* @__PURE__ */ R(im, { children: /* @__PURE__ */ z(am, {
|
|
10341
10351
|
"data-slot": "select-content",
|
|
@@ -10349,24 +10359,24 @@ function PS({ className: t, children: n, position: r = "item-aligned", align: i
|
|
|
10349
10359
|
align: i,
|
|
10350
10360
|
...o,
|
|
10351
10361
|
children: [
|
|
10352
|
-
/* @__PURE__ */ R(
|
|
10362
|
+
/* @__PURE__ */ R(zS, {}),
|
|
10353
10363
|
/* @__PURE__ */ R(om, {
|
|
10354
10364
|
"data-position": r,
|
|
10355
10365
|
className: O("data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)", r === "popper" && ""),
|
|
10356
10366
|
children: n
|
|
10357
10367
|
}),
|
|
10358
|
-
/* @__PURE__ */ R(
|
|
10368
|
+
/* @__PURE__ */ R(BS, {})
|
|
10359
10369
|
]
|
|
10360
10370
|
}) });
|
|
10361
10371
|
}
|
|
10362
|
-
function
|
|
10372
|
+
function IS({ className: e, ...t }) {
|
|
10363
10373
|
return /* @__PURE__ */ R(cm, {
|
|
10364
10374
|
"data-slot": "select-label",
|
|
10365
10375
|
className: O("px-2 py-1.5 text-xs text-muted-foreground", e),
|
|
10366
10376
|
...t
|
|
10367
10377
|
});
|
|
10368
10378
|
}
|
|
10369
|
-
function
|
|
10379
|
+
function LS({ className: e, children: t, ...n }) {
|
|
10370
10380
|
return /* @__PURE__ */ z(lm, {
|
|
10371
10381
|
"data-slot": "select-item",
|
|
10372
10382
|
className: O("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", e),
|
|
@@ -10377,14 +10387,14 @@ function IS({ className: e, children: t, ...n }) {
|
|
|
10377
10387
|
}), /* @__PURE__ */ R(um, { children: t })]
|
|
10378
10388
|
});
|
|
10379
10389
|
}
|
|
10380
|
-
function
|
|
10390
|
+
function RS({ className: e, ...t }) {
|
|
10381
10391
|
return /* @__PURE__ */ R(mm, {
|
|
10382
10392
|
"data-slot": "select-separator",
|
|
10383
10393
|
className: O("pointer-events-none -mx-1 my-1 h-px bg-border", e),
|
|
10384
10394
|
...t
|
|
10385
10395
|
});
|
|
10386
10396
|
}
|
|
10387
|
-
function
|
|
10397
|
+
function zS({ className: e, ...t }) {
|
|
10388
10398
|
return /* @__PURE__ */ R(fm, {
|
|
10389
10399
|
"data-slot": "select-scroll-up-button",
|
|
10390
10400
|
className: O("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
|
|
@@ -10392,7 +10402,7 @@ function RS({ className: e, ...t }) {
|
|
|
10392
10402
|
children: /* @__PURE__ */ R(Ae, {})
|
|
10393
10403
|
});
|
|
10394
10404
|
}
|
|
10395
|
-
function
|
|
10405
|
+
function BS({ className: e, ...t }) {
|
|
10396
10406
|
return /* @__PURE__ */ R(pm, {
|
|
10397
10407
|
"data-slot": "select-scroll-down-button",
|
|
10398
10408
|
className: O("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
|
|
@@ -10400,7 +10410,7 @@ function zS({ className: e, ...t }) {
|
|
|
10400
10410
|
children: /* @__PURE__ */ R(Oe, {})
|
|
10401
10411
|
});
|
|
10402
10412
|
}
|
|
10403
|
-
function
|
|
10413
|
+
function VS({ label: e, helperText: t, error: n = !1, className: r, children: i }) {
|
|
10404
10414
|
return /* @__PURE__ */ z("div", {
|
|
10405
10415
|
className: O("w-full flex flex-col gap-2", r),
|
|
10406
10416
|
children: [
|
|
@@ -10415,26 +10425,26 @@ function BS({ label: e, helperText: t, error: n = !1, className: r, children: i
|
|
|
10415
10425
|
}
|
|
10416
10426
|
//#endregion
|
|
10417
10427
|
//#region src/components/ui/select.tsx
|
|
10418
|
-
var
|
|
10428
|
+
var HS = ({ options: e, placeholder: t = "Select an option", placeholderIcon: n, groupLabel: r, fieldLabel: i, helperText: a, error: o = !1, triggerSize: s = "default", fieldClassName: c, triggerClassName: l, contentClassName: u, ...d }) => /* @__PURE__ */ R(VS, {
|
|
10419
10429
|
label: i,
|
|
10420
10430
|
helperText: a,
|
|
10421
10431
|
error: o,
|
|
10422
10432
|
className: O("w-full", c),
|
|
10423
|
-
children: /* @__PURE__ */ z(
|
|
10433
|
+
children: /* @__PURE__ */ z(jS, {
|
|
10424
10434
|
...d,
|
|
10425
|
-
children: [/* @__PURE__ */ z(
|
|
10435
|
+
children: [/* @__PURE__ */ z(PS, {
|
|
10426
10436
|
className: O(n && "gap-1", l),
|
|
10427
10437
|
size: s,
|
|
10428
10438
|
children: [n ? /* @__PURE__ */ R("span", {
|
|
10429
10439
|
"data-icon": "inline-start",
|
|
10430
10440
|
className: "contents",
|
|
10431
10441
|
children: n
|
|
10432
|
-
}) : null, /* @__PURE__ */ R(
|
|
10433
|
-
}), /* @__PURE__ */ R(
|
|
10442
|
+
}) : null, /* @__PURE__ */ R(NS, { placeholder: t || i })]
|
|
10443
|
+
}), /* @__PURE__ */ R(FS, {
|
|
10434
10444
|
className: O("max-h-[300px]", u),
|
|
10435
|
-
children: /* @__PURE__ */ z(
|
|
10445
|
+
children: /* @__PURE__ */ z(MS, { children: [r ? /* @__PURE__ */ R(IS, { children: r }) : null, e.map((e) => {
|
|
10436
10446
|
let t = e.iconPosition ?? "inline-start";
|
|
10437
|
-
return /* @__PURE__ */ z(I.Fragment, { children: [e.separator ? /* @__PURE__ */ R(
|
|
10447
|
+
return /* @__PURE__ */ z(I.Fragment, { children: [e.separator ? /* @__PURE__ */ R(RS, {}) : null, /* @__PURE__ */ z(LS, {
|
|
10438
10448
|
value: e.value,
|
|
10439
10449
|
disabled: e.disabled,
|
|
10440
10450
|
children: [
|
|
@@ -10457,7 +10467,7 @@ var VS = ({ options: e, placeholder: t = "Select an option", placeholderIcon: n,
|
|
|
10457
10467
|
});
|
|
10458
10468
|
//#endregion
|
|
10459
10469
|
//#region src/components/ui/skeleton.tsx
|
|
10460
|
-
function
|
|
10470
|
+
function US({ className: e, ...t }) {
|
|
10461
10471
|
return /* @__PURE__ */ R("div", {
|
|
10462
10472
|
"data-slot": "skeleton",
|
|
10463
10473
|
className: O("animate-pulse rounded-md bg-muted", e),
|
|
@@ -10466,16 +10476,16 @@ function HS({ className: e, ...t }) {
|
|
|
10466
10476
|
}
|
|
10467
10477
|
//#endregion
|
|
10468
10478
|
//#region src/components/ui/sidebar.tsx
|
|
10469
|
-
var
|
|
10470
|
-
function
|
|
10471
|
-
let e = F.useContext(
|
|
10479
|
+
var WS = "sidebar_state", GS = 3600 * 24 * 7, KS = "260px", qS = "18rem", JS = "3rem", YS = "b", XS = F.createContext(null);
|
|
10480
|
+
function ZS() {
|
|
10481
|
+
let e = F.useContext(XS);
|
|
10472
10482
|
if (!e) throw Error("useSidebar must be used within a SidebarProvider.");
|
|
10473
10483
|
return e;
|
|
10474
10484
|
}
|
|
10475
|
-
function
|
|
10485
|
+
function QS({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style: i, children: a, ...o }) {
|
|
10476
10486
|
let s = ev(), [c, l] = F.useState(!1), [u, d] = F.useState(e), f = t ?? u, p = F.useCallback((e) => {
|
|
10477
10487
|
let t = typeof e == "function" ? e(f) : e;
|
|
10478
|
-
n ? n(t) : d(t), document.cookie = `${
|
|
10488
|
+
n ? n(t) : d(t), document.cookie = `${WS}=${t}; path=/; max-age=${GS}`;
|
|
10479
10489
|
}, [n, f]), m = F.useCallback(() => s ? l((e) => !e) : p((e) => !e), [
|
|
10480
10490
|
s,
|
|
10481
10491
|
p,
|
|
@@ -10483,7 +10493,7 @@ function ZS({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style
|
|
|
10483
10493
|
]);
|
|
10484
10494
|
F.useEffect(() => {
|
|
10485
10495
|
let e = (e) => {
|
|
10486
|
-
e.key ===
|
|
10496
|
+
e.key === YS && (e.metaKey || e.ctrlKey) && (e.preventDefault(), m());
|
|
10487
10497
|
};
|
|
10488
10498
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
10489
10499
|
}, [m]);
|
|
@@ -10504,13 +10514,13 @@ function ZS({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style
|
|
|
10504
10514
|
l,
|
|
10505
10515
|
m
|
|
10506
10516
|
]);
|
|
10507
|
-
return /* @__PURE__ */ R(
|
|
10517
|
+
return /* @__PURE__ */ R(XS.Provider, {
|
|
10508
10518
|
value: g,
|
|
10509
10519
|
children: /* @__PURE__ */ R("div", {
|
|
10510
10520
|
"data-slot": "sidebar-wrapper",
|
|
10511
10521
|
style: {
|
|
10512
|
-
"--sidebar-width":
|
|
10513
|
-
"--sidebar-width-icon":
|
|
10522
|
+
"--sidebar-width": KS,
|
|
10523
|
+
"--sidebar-width-icon": JS,
|
|
10514
10524
|
...i
|
|
10515
10525
|
},
|
|
10516
10526
|
className: O("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar", r),
|
|
@@ -10519,8 +10529,8 @@ function ZS({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style
|
|
|
10519
10529
|
})
|
|
10520
10530
|
});
|
|
10521
10531
|
}
|
|
10522
|
-
function
|
|
10523
|
-
let { isMobile: s, state: c, openMobile: l, setOpenMobile: u } =
|
|
10532
|
+
function $S({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcanvas", className: r, children: i, dir: a, ...o }) {
|
|
10533
|
+
let { isMobile: s, state: c, openMobile: l, setOpenMobile: u } = ZS();
|
|
10524
10534
|
return n === "none" ? /* @__PURE__ */ R("div", {
|
|
10525
10535
|
"data-slot": "sidebar",
|
|
10526
10536
|
className: O("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground", r),
|
|
@@ -10536,7 +10546,7 @@ function QS({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
|
|
|
10536
10546
|
"data-slot": "sidebar",
|
|
10537
10547
|
"data-mobile": "true",
|
|
10538
10548
|
className: "w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",
|
|
10539
|
-
style: { "--sidebar-width":
|
|
10549
|
+
style: { "--sidebar-width": qS },
|
|
10540
10550
|
side: e,
|
|
10541
10551
|
children: [/* @__PURE__ */ z(j_, {
|
|
10542
10552
|
className: "sr-only",
|
|
@@ -10570,8 +10580,8 @@ function QS({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
|
|
|
10570
10580
|
})]
|
|
10571
10581
|
});
|
|
10572
10582
|
}
|
|
10573
|
-
function
|
|
10574
|
-
let { toggleSidebar: r } =
|
|
10583
|
+
function eC({ className: e, onClick: t, ...n }) {
|
|
10584
|
+
let { toggleSidebar: r } = ZS();
|
|
10575
10585
|
return /* @__PURE__ */ z(c, {
|
|
10576
10586
|
"data-sidebar": "trigger",
|
|
10577
10587
|
"data-slot": "sidebar-trigger",
|
|
@@ -10588,8 +10598,8 @@ function $S({ className: e, onClick: t, ...n }) {
|
|
|
10588
10598
|
})]
|
|
10589
10599
|
});
|
|
10590
10600
|
}
|
|
10591
|
-
function
|
|
10592
|
-
let { toggleSidebar: n } =
|
|
10601
|
+
function tC({ className: e, ...t }) {
|
|
10602
|
+
let { toggleSidebar: n } = ZS();
|
|
10593
10603
|
return /* @__PURE__ */ R("button", {
|
|
10594
10604
|
"data-sidebar": "rail",
|
|
10595
10605
|
"data-slot": "sidebar-rail",
|
|
@@ -10601,14 +10611,14 @@ function eC({ className: e, ...t }) {
|
|
|
10601
10611
|
...t
|
|
10602
10612
|
});
|
|
10603
10613
|
}
|
|
10604
|
-
function
|
|
10614
|
+
function nC({ className: e, ...t }) {
|
|
10605
10615
|
return /* @__PURE__ */ R("main", {
|
|
10606
10616
|
"data-slot": "sidebar-inset",
|
|
10607
10617
|
className: O("relative flex w-full flex-1 flex-col bg-background 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", e),
|
|
10608
10618
|
...t
|
|
10609
10619
|
});
|
|
10610
10620
|
}
|
|
10611
|
-
function
|
|
10621
|
+
function rC({ className: e, ...t }) {
|
|
10612
10622
|
return /* @__PURE__ */ R(re, {
|
|
10613
10623
|
"data-slot": "sidebar-input",
|
|
10614
10624
|
"data-sidebar": "input",
|
|
@@ -10616,7 +10626,7 @@ function nC({ className: e, ...t }) {
|
|
|
10616
10626
|
...t
|
|
10617
10627
|
});
|
|
10618
10628
|
}
|
|
10619
|
-
function
|
|
10629
|
+
function iC({ className: e, ...t }) {
|
|
10620
10630
|
return /* @__PURE__ */ R("div", {
|
|
10621
10631
|
"data-slot": "sidebar-header",
|
|
10622
10632
|
"data-sidebar": "header",
|
|
@@ -10624,7 +10634,7 @@ function rC({ className: e, ...t }) {
|
|
|
10624
10634
|
...t
|
|
10625
10635
|
});
|
|
10626
10636
|
}
|
|
10627
|
-
function
|
|
10637
|
+
function aC({ className: e, ...t }) {
|
|
10628
10638
|
return /* @__PURE__ */ R("div", {
|
|
10629
10639
|
"data-slot": "sidebar-footer",
|
|
10630
10640
|
"data-sidebar": "footer",
|
|
@@ -10632,15 +10642,15 @@ function iC({ className: e, ...t }) {
|
|
|
10632
10642
|
...t
|
|
10633
10643
|
});
|
|
10634
10644
|
}
|
|
10635
|
-
function
|
|
10636
|
-
return /* @__PURE__ */ R(
|
|
10645
|
+
function oC({ className: e, ...t }) {
|
|
10646
|
+
return /* @__PURE__ */ R(bv, {
|
|
10637
10647
|
"data-slot": "sidebar-separator",
|
|
10638
10648
|
"data-sidebar": "separator",
|
|
10639
10649
|
className: O("mx-6 w-auto bg-sidebar-border", e),
|
|
10640
10650
|
...t
|
|
10641
10651
|
});
|
|
10642
10652
|
}
|
|
10643
|
-
function
|
|
10653
|
+
function sC({ className: e, ...t }) {
|
|
10644
10654
|
return /* @__PURE__ */ R("div", {
|
|
10645
10655
|
"data-slot": "sidebar-content",
|
|
10646
10656
|
"data-sidebar": "content",
|
|
@@ -10648,7 +10658,7 @@ function oC({ className: e, ...t }) {
|
|
|
10648
10658
|
...t
|
|
10649
10659
|
});
|
|
10650
10660
|
}
|
|
10651
|
-
function
|
|
10661
|
+
function cC({ className: e, ...t }) {
|
|
10652
10662
|
return /* @__PURE__ */ R("div", {
|
|
10653
10663
|
"data-slot": "sidebar-group",
|
|
10654
10664
|
"data-sidebar": "group",
|
|
@@ -10656,7 +10666,7 @@ function sC({ className: e, ...t }) {
|
|
|
10656
10666
|
...t
|
|
10657
10667
|
});
|
|
10658
10668
|
}
|
|
10659
|
-
function
|
|
10669
|
+
function lC({ className: e, asChild: t = !1, ...n }) {
|
|
10660
10670
|
return /* @__PURE__ */ R(t ? h : "div", {
|
|
10661
10671
|
"data-slot": "sidebar-group-label",
|
|
10662
10672
|
"data-sidebar": "group-label",
|
|
@@ -10664,7 +10674,7 @@ function cC({ className: e, asChild: t = !1, ...n }) {
|
|
|
10664
10674
|
...n
|
|
10665
10675
|
});
|
|
10666
10676
|
}
|
|
10667
|
-
function
|
|
10677
|
+
function uC({ className: e, asChild: t = !1, ...n }) {
|
|
10668
10678
|
return /* @__PURE__ */ R(t ? h : "button", {
|
|
10669
10679
|
"data-slot": "sidebar-group-action",
|
|
10670
10680
|
"data-sidebar": "group-action",
|
|
@@ -10672,7 +10682,7 @@ function lC({ className: e, asChild: t = !1, ...n }) {
|
|
|
10672
10682
|
...n
|
|
10673
10683
|
});
|
|
10674
10684
|
}
|
|
10675
|
-
function
|
|
10685
|
+
function dC({ className: e, ...t }) {
|
|
10676
10686
|
return /* @__PURE__ */ R("div", {
|
|
10677
10687
|
"data-slot": "sidebar-group-content",
|
|
10678
10688
|
"data-sidebar": "group-content",
|
|
@@ -10680,7 +10690,7 @@ function uC({ className: e, ...t }) {
|
|
|
10680
10690
|
...t
|
|
10681
10691
|
});
|
|
10682
10692
|
}
|
|
10683
|
-
function
|
|
10693
|
+
function fC({ className: e, ...t }) {
|
|
10684
10694
|
return /* @__PURE__ */ R("ul", {
|
|
10685
10695
|
"data-slot": "sidebar-menu",
|
|
10686
10696
|
"data-sidebar": "menu",
|
|
@@ -10688,7 +10698,7 @@ function dC({ className: e, ...t }) {
|
|
|
10688
10698
|
...t
|
|
10689
10699
|
});
|
|
10690
10700
|
}
|
|
10691
|
-
function
|
|
10701
|
+
function pC({ className: e, ...t }) {
|
|
10692
10702
|
return /* @__PURE__ */ R("li", {
|
|
10693
10703
|
"data-slot": "sidebar-menu-item",
|
|
10694
10704
|
"data-sidebar": "menu-item",
|
|
@@ -10696,7 +10706,7 @@ function fC({ className: e, ...t }) {
|
|
|
10696
10706
|
...t
|
|
10697
10707
|
});
|
|
10698
10708
|
}
|
|
10699
|
-
var
|
|
10709
|
+
var mC = f("peer/menu-button group/menu-button flex w-full items-center gap-3 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-primary data-active:font-medium data-active:text-sidebar-primary-foreground data-active:hover:bg-sidebar-primary data-active:hover:text-sidebar-primary-foreground [&_svg]:size-[18px] [&_svg]:shrink-0 [&>span:last-child]:truncate", {
|
|
10700
10710
|
variants: {
|
|
10701
10711
|
variant: {
|
|
10702
10712
|
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
@@ -10713,13 +10723,13 @@ var pC = f("peer/menu-button group/menu-button flex w-full items-center gap-3 ov
|
|
|
10713
10723
|
size: "default"
|
|
10714
10724
|
}
|
|
10715
10725
|
});
|
|
10716
|
-
function
|
|
10717
|
-
let s = e ? h : "button", { isMobile: c, state: l } =
|
|
10726
|
+
function hC({ asChild: e = !1, isActive: t = !1, variant: n = "default", size: r = "default", tooltip: i, className: a, ...o }) {
|
|
10727
|
+
let s = e ? h : "button", { isMobile: c, state: l } = ZS(), u = /* @__PURE__ */ R(s, {
|
|
10718
10728
|
"data-slot": "sidebar-menu-button",
|
|
10719
10729
|
"data-sidebar": "menu-button",
|
|
10720
10730
|
"data-size": r,
|
|
10721
10731
|
"data-active": t,
|
|
10722
|
-
className: O(
|
|
10732
|
+
className: O(mC({
|
|
10723
10733
|
variant: n,
|
|
10724
10734
|
size: r
|
|
10725
10735
|
}), a),
|
|
@@ -10737,7 +10747,7 @@ function mC({ asChild: e = !1, isActive: t = !1, variant: n = "default", size: r
|
|
|
10737
10747
|
children: u
|
|
10738
10748
|
});
|
|
10739
10749
|
}
|
|
10740
|
-
function
|
|
10750
|
+
function gC({ className: e, asChild: t = !1, showOnHover: n = !1, ...r }) {
|
|
10741
10751
|
return /* @__PURE__ */ R(t ? h : "button", {
|
|
10742
10752
|
"data-slot": "sidebar-menu-action",
|
|
10743
10753
|
"data-sidebar": "menu-action",
|
|
@@ -10745,7 +10755,7 @@ function hC({ className: e, asChild: t = !1, showOnHover: n = !1, ...r }) {
|
|
|
10745
10755
|
...r
|
|
10746
10756
|
});
|
|
10747
10757
|
}
|
|
10748
|
-
function
|
|
10758
|
+
function _C({ className: e, ...t }) {
|
|
10749
10759
|
return /* @__PURE__ */ R("div", {
|
|
10750
10760
|
"data-slot": "sidebar-menu-badge",
|
|
10751
10761
|
"data-sidebar": "menu-badge",
|
|
@@ -10753,24 +10763,24 @@ function gC({ className: e, ...t }) {
|
|
|
10753
10763
|
...t
|
|
10754
10764
|
});
|
|
10755
10765
|
}
|
|
10756
|
-
function
|
|
10766
|
+
function vC({ className: e, showIcon: t = !1, ...n }) {
|
|
10757
10767
|
let [r] = F.useState(() => `${Math.floor(Math.random() * 40) + 50}%`);
|
|
10758
10768
|
return /* @__PURE__ */ z("div", {
|
|
10759
10769
|
"data-slot": "sidebar-menu-skeleton",
|
|
10760
10770
|
"data-sidebar": "menu-skeleton",
|
|
10761
10771
|
className: O("flex h-8 items-center gap-2 rounded-md px-2", e),
|
|
10762
10772
|
...n,
|
|
10763
|
-
children: [t && /* @__PURE__ */ R(
|
|
10773
|
+
children: [t && /* @__PURE__ */ R(US, {
|
|
10764
10774
|
className: "size-4 rounded-md",
|
|
10765
10775
|
"data-sidebar": "menu-skeleton-icon"
|
|
10766
|
-
}), /* @__PURE__ */ R(
|
|
10776
|
+
}), /* @__PURE__ */ R(US, {
|
|
10767
10777
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
10768
10778
|
"data-sidebar": "menu-skeleton-text",
|
|
10769
10779
|
style: { "--skeleton-width": r }
|
|
10770
10780
|
})]
|
|
10771
10781
|
});
|
|
10772
10782
|
}
|
|
10773
|
-
function
|
|
10783
|
+
function yC({ className: e, ...t }) {
|
|
10774
10784
|
return /* @__PURE__ */ R("ul", {
|
|
10775
10785
|
"data-slot": "sidebar-menu-sub",
|
|
10776
10786
|
"data-sidebar": "menu-sub",
|
|
@@ -10778,7 +10788,7 @@ function vC({ className: e, ...t }) {
|
|
|
10778
10788
|
...t
|
|
10779
10789
|
});
|
|
10780
10790
|
}
|
|
10781
|
-
function
|
|
10791
|
+
function bC({ className: e, ...t }) {
|
|
10782
10792
|
return /* @__PURE__ */ R("li", {
|
|
10783
10793
|
"data-slot": "sidebar-menu-sub-item",
|
|
10784
10794
|
"data-sidebar": "menu-sub-item",
|
|
@@ -10786,7 +10796,7 @@ function yC({ className: e, ...t }) {
|
|
|
10786
10796
|
...t
|
|
10787
10797
|
});
|
|
10788
10798
|
}
|
|
10789
|
-
function
|
|
10799
|
+
function xC({ asChild: e = !1, size: t = "md", isActive: n = !1, className: r, ...i }) {
|
|
10790
10800
|
return /* @__PURE__ */ R(e ? h : "a", {
|
|
10791
10801
|
"data-slot": "sidebar-menu-sub-button",
|
|
10792
10802
|
"data-sidebar": "menu-sub-button",
|
|
@@ -10798,7 +10808,7 @@ function bC({ asChild: e = !1, size: t = "md", isActive: n = !1, className: r, .
|
|
|
10798
10808
|
}
|
|
10799
10809
|
//#endregion
|
|
10800
10810
|
//#region src/components/ui/switch.tsx
|
|
10801
|
-
function
|
|
10811
|
+
function SC({ className: e, size: t = "default", label: n, helperText: r, error: i = !1, id: a, ...o }) {
|
|
10802
10812
|
return /* @__PURE__ */ z("div", {
|
|
10803
10813
|
className: "flex flex-col gap-1",
|
|
10804
10814
|
children: [/* @__PURE__ */ z("div", {
|
|
@@ -10826,7 +10836,7 @@ function xC({ className: e, size: t = "default", label: n, helperText: r, error:
|
|
|
10826
10836
|
}
|
|
10827
10837
|
//#endregion
|
|
10828
10838
|
//#region src/components/ui/table.tsx
|
|
10829
|
-
function
|
|
10839
|
+
function CC({ className: e, ...t }) {
|
|
10830
10840
|
return /* @__PURE__ */ R("div", {
|
|
10831
10841
|
"data-slot": "table-container",
|
|
10832
10842
|
className: "relative w-full overflow-x-auto",
|
|
@@ -10837,49 +10847,49 @@ function SC({ className: e, ...t }) {
|
|
|
10837
10847
|
})
|
|
10838
10848
|
});
|
|
10839
10849
|
}
|
|
10840
|
-
function
|
|
10850
|
+
function wC({ className: e, ...t }) {
|
|
10841
10851
|
return /* @__PURE__ */ R("thead", {
|
|
10842
10852
|
"data-slot": "table-header",
|
|
10843
10853
|
className: O("[&_tr]:border-b", e),
|
|
10844
10854
|
...t
|
|
10845
10855
|
});
|
|
10846
10856
|
}
|
|
10847
|
-
function
|
|
10857
|
+
function TC({ className: e, ...t }) {
|
|
10848
10858
|
return /* @__PURE__ */ R("tbody", {
|
|
10849
10859
|
"data-slot": "table-body",
|
|
10850
10860
|
className: O("[&_tr:last-child]:border-0", e),
|
|
10851
10861
|
...t
|
|
10852
10862
|
});
|
|
10853
10863
|
}
|
|
10854
|
-
function
|
|
10864
|
+
function EC({ className: e, ...t }) {
|
|
10855
10865
|
return /* @__PURE__ */ R("tfoot", {
|
|
10856
10866
|
"data-slot": "table-footer",
|
|
10857
10867
|
className: O("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", e),
|
|
10858
10868
|
...t
|
|
10859
10869
|
});
|
|
10860
10870
|
}
|
|
10861
|
-
function
|
|
10871
|
+
function DC({ className: e, ...t }) {
|
|
10862
10872
|
return /* @__PURE__ */ R("tr", {
|
|
10863
10873
|
"data-slot": "table-row",
|
|
10864
10874
|
className: O("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted", e),
|
|
10865
10875
|
...t
|
|
10866
10876
|
});
|
|
10867
10877
|
}
|
|
10868
|
-
function
|
|
10878
|
+
function OC({ className: e, ...t }) {
|
|
10869
10879
|
return /* @__PURE__ */ R("th", {
|
|
10870
10880
|
"data-slot": "table-head",
|
|
10871
10881
|
className: O("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0", e),
|
|
10872
10882
|
...t
|
|
10873
10883
|
});
|
|
10874
10884
|
}
|
|
10875
|
-
function
|
|
10885
|
+
function kC({ className: e, ...t }) {
|
|
10876
10886
|
return /* @__PURE__ */ R("td", {
|
|
10877
10887
|
"data-slot": "table-cell",
|
|
10878
10888
|
className: O("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0", e),
|
|
10879
10889
|
...t
|
|
10880
10890
|
});
|
|
10881
10891
|
}
|
|
10882
|
-
function
|
|
10892
|
+
function AC({ className: e, ...t }) {
|
|
10883
10893
|
return /* @__PURE__ */ R("caption", {
|
|
10884
10894
|
"data-slot": "table-caption",
|
|
10885
10895
|
className: O("mt-4 text-sm text-muted-foreground", e),
|
|
@@ -10888,7 +10898,7 @@ function kC({ className: e, ...t }) {
|
|
|
10888
10898
|
}
|
|
10889
10899
|
//#endregion
|
|
10890
10900
|
//#region src/components/ui/shadcn/shadcn-tabs.tsx
|
|
10891
|
-
function
|
|
10901
|
+
function jC({ className: e, orientation: t = "horizontal", ...n }) {
|
|
10892
10902
|
return /* @__PURE__ */ R(zh, {
|
|
10893
10903
|
"data-slot": "tabs",
|
|
10894
10904
|
"data-orientation": t,
|
|
@@ -10896,29 +10906,29 @@ function AC({ className: e, orientation: t = "horizontal", ...n }) {
|
|
|
10896
10906
|
...n
|
|
10897
10907
|
});
|
|
10898
10908
|
}
|
|
10899
|
-
var
|
|
10909
|
+
var MC = f("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-2 text-muted-foreground group-data-horizontal/tabs:h-10 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none", {
|
|
10900
10910
|
variants: { variant: {
|
|
10901
10911
|
default: "bg-muted",
|
|
10902
10912
|
line: "w-full justify-start gap-1 bg-transparent border-b border-border p-0 group-data-vertical/tabs:border-b-0"
|
|
10903
10913
|
} },
|
|
10904
10914
|
defaultVariants: { variant: "line" }
|
|
10905
10915
|
});
|
|
10906
|
-
function
|
|
10916
|
+
function NC({ className: e, variant: t = "line", ...n }) {
|
|
10907
10917
|
return /* @__PURE__ */ R(Bh, {
|
|
10908
10918
|
"data-slot": "tabs-list",
|
|
10909
10919
|
"data-variant": t,
|
|
10910
|
-
className: O(
|
|
10920
|
+
className: O(MC({ variant: t }), "p-4", e),
|
|
10911
10921
|
...n
|
|
10912
10922
|
});
|
|
10913
10923
|
}
|
|
10914
|
-
function
|
|
10924
|
+
function PC({ className: e, ...t }) {
|
|
10915
10925
|
return /* @__PURE__ */ R(Vh, {
|
|
10916
10926
|
"data-slot": "tabs-trigger",
|
|
10917
10927
|
className: O("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "group-data-[variant=line]/tabs-list:h-10 group-data-[variant=line]/tabs-list:rounded-none group-data-[variant=line]/tabs-list:border-0 group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:px-3 group-data-[variant=line]/tabs-list:data-active:bg-transparent group-data-[variant=line]/tabs-list:data-active:text-foreground dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent", "data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground", "after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-1px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100", e),
|
|
10918
10928
|
...t
|
|
10919
10929
|
});
|
|
10920
10930
|
}
|
|
10921
|
-
function
|
|
10931
|
+
function FC({ className: e, ...t }) {
|
|
10922
10932
|
return /* @__PURE__ */ R(Hh, {
|
|
10923
10933
|
"data-slot": "tabs-content",
|
|
10924
10934
|
className: O("flex-1 text-sm outline-none", e),
|
|
@@ -10927,26 +10937,26 @@ function PC({ className: e, ...t }) {
|
|
|
10927
10937
|
}
|
|
10928
10938
|
//#endregion
|
|
10929
10939
|
//#region src/components/ui/tabs.tsx
|
|
10930
|
-
var
|
|
10940
|
+
var IC = ({ tabs: e, defaultValue: t, value: n, onValueChange: r, orientation: i = "horizontal", variant: a = "line", className: o, listClassName: s, contentClassName: c }) => /* @__PURE__ */ z(jC, {
|
|
10931
10941
|
defaultValue: t ?? e[0]?.value,
|
|
10932
10942
|
value: n,
|
|
10933
10943
|
onValueChange: r,
|
|
10934
10944
|
orientation: i,
|
|
10935
10945
|
className: o,
|
|
10936
|
-
children: [/* @__PURE__ */ R(
|
|
10946
|
+
children: [/* @__PURE__ */ R(NC, {
|
|
10937
10947
|
variant: a,
|
|
10938
10948
|
className: s,
|
|
10939
|
-
children: e.map((e) => /* @__PURE__ */ z(
|
|
10949
|
+
children: e.map((e) => /* @__PURE__ */ z(PC, {
|
|
10940
10950
|
value: e.value,
|
|
10941
10951
|
disabled: e.disabled,
|
|
10942
10952
|
children: [e.icon, e.label]
|
|
10943
10953
|
}, e.value))
|
|
10944
|
-
}), e.map((e) => /* @__PURE__ */ R(
|
|
10954
|
+
}), e.map((e) => /* @__PURE__ */ R(FC, {
|
|
10945
10955
|
value: e.value,
|
|
10946
10956
|
className: c,
|
|
10947
10957
|
children: e.content
|
|
10948
10958
|
}, e.value))]
|
|
10949
|
-
}),
|
|
10959
|
+
}), LC = f("group/toggle inline-flex items-center justify-center gap-1 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
10950
10960
|
variants: {
|
|
10951
10961
|
variant: {
|
|
10952
10962
|
default: "bg-transparent",
|
|
@@ -10963,10 +10973,10 @@ var FC = ({ tabs: e, defaultValue: t, value: n, onValueChange: r, orientation: i
|
|
|
10963
10973
|
size: "default"
|
|
10964
10974
|
}
|
|
10965
10975
|
});
|
|
10966
|
-
function
|
|
10976
|
+
function RC({ className: e, variant: t = "default", size: n = "default", ...r }) {
|
|
10967
10977
|
return /* @__PURE__ */ R(Kh, {
|
|
10968
10978
|
"data-slot": "toggle",
|
|
10969
|
-
className: O(
|
|
10979
|
+
className: O(LC({
|
|
10970
10980
|
variant: t,
|
|
10971
10981
|
size: n,
|
|
10972
10982
|
className: e
|
|
@@ -10976,13 +10986,13 @@ function LC({ className: e, variant: t = "default", size: n = "default", ...r })
|
|
|
10976
10986
|
}
|
|
10977
10987
|
//#endregion
|
|
10978
10988
|
//#region src/components/ui/toggle-group.tsx
|
|
10979
|
-
var
|
|
10989
|
+
var zC = F.createContext({
|
|
10980
10990
|
size: "default",
|
|
10981
10991
|
variant: "default",
|
|
10982
10992
|
spacing: 0,
|
|
10983
10993
|
orientation: "horizontal"
|
|
10984
10994
|
});
|
|
10985
|
-
function
|
|
10995
|
+
function BC({ className: e, variant: t, size: n, spacing: r = 0, orientation: i = "horizontal", children: a, ...o }) {
|
|
10986
10996
|
return /* @__PURE__ */ R(lg, {
|
|
10987
10997
|
"data-slot": "toggle-group",
|
|
10988
10998
|
"data-variant": t,
|
|
@@ -10992,7 +11002,7 @@ function zC({ className: e, variant: t, size: n, spacing: r = 0, orientation: i
|
|
|
10992
11002
|
style: { "--gap": r },
|
|
10993
11003
|
className: O("group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-vertical:flex-col data-vertical:items-stretch", e),
|
|
10994
11004
|
...o,
|
|
10995
|
-
children: /* @__PURE__ */ R(
|
|
11005
|
+
children: /* @__PURE__ */ R(zC.Provider, {
|
|
10996
11006
|
value: {
|
|
10997
11007
|
variant: t,
|
|
10998
11008
|
size: n,
|
|
@@ -11003,14 +11013,14 @@ function zC({ className: e, variant: t, size: n, spacing: r = 0, orientation: i
|
|
|
11003
11013
|
})
|
|
11004
11014
|
});
|
|
11005
11015
|
}
|
|
11006
|
-
function
|
|
11007
|
-
let a = F.useContext(
|
|
11016
|
+
function VC({ className: e, children: t, variant: n = "default", size: r = "default", ...i }) {
|
|
11017
|
+
let a = F.useContext(zC);
|
|
11008
11018
|
return /* @__PURE__ */ R(ug, {
|
|
11009
11019
|
"data-slot": "toggle-group-item",
|
|
11010
11020
|
"data-variant": a.variant || n,
|
|
11011
11021
|
"data-size": a.size || r,
|
|
11012
11022
|
"data-spacing": a.spacing,
|
|
11013
|
-
className: O("shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t",
|
|
11023
|
+
className: O("shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t", LC({
|
|
11014
11024
|
variant: a.variant || n,
|
|
11015
11025
|
size: a.size || r
|
|
11016
11026
|
}), e),
|
|
@@ -11019,4 +11029,4 @@ function BC({ className: e, children: t, variant: n = "default", size: r = "defa
|
|
|
11019
11029
|
});
|
|
11020
11030
|
}
|
|
11021
11031
|
//#endregion
|
|
11022
|
-
export {
|
|
11032
|
+
export { RS as $, wv as $n, $g as $r, By as $t, gC as A, Uv as An, D_ as Ar, cb as At, oC as B, Lv as Bn, C_ as Br, Ky as Bt, uC as C, sy as Cn, G_ as Cr, xb as Ct, rC as D, Kv as Dn, U_ as Dr, hb as Dt, iC as E, Iv as En, R_ as Er, fb as Et, yC as F, Yv as Fn, L_ as Fr, $y as Ft, jS as G, Tv as Gn, __ as Gr, rb as Gt, ZS as H, Fv as Hn, v_ as Hr, Yy as Ht, xC as I, Xv as In, N_ as Ir, Zy as It, MS as J, Ov as Jn, h_ as Jr, ab as Jt, FS as K, kv as Kn, m_ as Kr, ib as Kt, bC as L, Bv as Ln, E_ as Lr, qy as Lt, hC as M, zv as Mn, P_ as Mr, pb as Mt, pC as N, Vv as Nn, M_ as Nr, ub as Nt, nC as O, Hv as On, H_ as Or, lb as Ot, vC as P, qv as Pn, j_ as Pr, Gy as Pt, zS as Q, Sv as Qn, l_ as Qr, Py as Qt, QS as R, Gv as Rn, I_ as Rr, Qy as Rt, cC as S, hy as Sn, Y_ as Sr, yb as St, lC as T, Qv as Tn, K_ as Tr, sb as Tt, US as U, Pv as Un, y_ as Ur, eb as Ut, eC as V, Nv as Vn, c_ as Vr, Jy as Vt, HS as W, Mv as Wn, f_ as Wr, nb as Wt, IS as X, Ev as Xn, u_ as Xr, Uy as Xt, LS as Y, jv as Yn, d_ as Yr, Xy as Yt, BS as Z, Dv as Zn, g_ as Zr, Wy as Zt, DC as _, Sy as _n, rv as _r, wb as _t, IC as a, a_ as ai, Iy as an, hv as ar, DS as at, sC as b, gy as bn, Z_ as br, Sb as bt, NC as c, Je as ci, Ay as cn, _v as cr, Fb as ct, TC as d, Oy as dn, dv as dr, Ob as dt, n_ as ei, Ly as en, Cv as er, PS as et, AC as f, by as fn, uv as fr, Db as ft, wC as g, vy as gn, nv as gr, Eb as gt, OC as h, Ey as hn, iv as hr, Ab as ht, LC as i, o_ as ii, Vy as in, yv as ir, OS as it, _C as j, Jv as jn, A_ as jr, db as jt, fC as k, Rv as kn, T_ as kr, mb as kt, PC as l, qe as li, Dy as ln, vv as lr, Nb as lt, EC as m, wy as mn, tv as mr, kb as mt, VC as n, s_ as ni, Hy as nn, bv as nr, kS as nt, jC as o, Xe as oi, My as on, gv as or, ES as ot, kC as p, xy as pn, av as pr, jb as pt, VS as q, Av as qn, p_ as qr, ob as qt, RC as r, e_ as ri, jy as rn, pv as rr, AS as rt, FC as s, Ye as si, Ry as sn, mv as sr, Pb as st, BC as t, t_ as ti, zy as tn, xv as tr, NS as tt, CC as u, Ke as ui, ky as un, fv as ur, Tb as ut, SC as v, _y as vn, ev as vr, gb as vt, dC as w, Zv as wn, W_ as wr, bb as wt, aC as x, Cy as xn, J_ as xr, vb as xt, $S as y, Ty as yn, Q_ as yr, _b as yt, tC as z, Wv as zn, w_ as zr, tb as zt };
|