@tesouro/embedded-components-react 0.11.272 → 0.11.275
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +61 -7
- package/dist/index.d.ts +1 -13
- package/dist/lib/RecentActivityWidget.d.ts +1 -13
- package/dist/lib/WidgetSuite.d.ts +1 -13
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/lib/BalanceHistoryCard/BalanceHistoryCard.js +114 -111
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/CreateAccountDialog.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index23.js +69 -69
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/CardControls/SpendLimitControl.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/recent-activity-widget/feature/dist/lib/RecentActivityWidget/RecentActivityWidgetFeature.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/recent-activity-widget/feature/dist/lib/RecentActivityWidget/labels.js +1 -4
- package/dist/libs/tesouro-embedded-components-react/recent-activity-widget/feature/dist/lib/recentActivityView/buildRecentActivityRows.js +12 -19
- package/dist/libs/tesouro-embedded-components-react/recent-activity-widget/ui/dist/lib/RecentActivityCard/RecentActivityCard.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index15.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index12.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/AttentionStrip/AttentionStrip.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/AttentionStrip/AttentionViewBar.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/DueDateText/DueDateText.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +16 -14
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellScrollRegion.js +17 -14
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/index.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/dateRangePresets/dateRangePresets.js +12 -0
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/dateRangePresets/index.js +1 -0
- package/dist/packages/shared-ui-shadcn/dist/index.js +448 -417
- package/package.json +1 -1
|
@@ -8888,25 +8888,34 @@ function bv({ className: e, ...t }) {
|
|
|
8888
8888
|
...t
|
|
8889
8889
|
});
|
|
8890
8890
|
}
|
|
8891
|
-
function xv({ className: e, children: t, showCloseButton: n = !0, closeButtonTestId: r, closeDisabled: i = !1, onEscapeKeyDown: a, size: o = "confirm", labels: s,
|
|
8892
|
-
let
|
|
8891
|
+
function xv({ className: e, children: t, showCloseButton: n = !0, closeButtonTestId: r, closeDisabled: i = !1, onEscapeKeyDown: a, size: o = "confirm", labels: s, onOpenAutoFocus: c, ...l }) {
|
|
8892
|
+
let u = {
|
|
8893
8893
|
...W_,
|
|
8894
8894
|
...s
|
|
8895
|
-
},
|
|
8895
|
+
}, d = hv("confirm", gv);
|
|
8896
8896
|
return /* @__PURE__ */ b(yv, { children: [/* @__PURE__ */ y(bv, {}), /* @__PURE__ */ y(Xa, {
|
|
8897
8897
|
"data-slot": "alert-dialog-content",
|
|
8898
|
-
className: J("ttw:max-h-[calc(100dvh-2rem)] ttw:overflow-y-auto", "ttw:fixed ttw:left-[50%] ttw:top-[50%] ttw:grid ttw:w-[calc(100%-2rem)] ttw:translate-x-[-50%] ttw:translate-y-[-50%] ttw:gap-4 ttw:rounded-lg ttw:border ttw:border-border ttw:bg-background ttw:p-6 ttw:shadow-lg ttw:duration-200 ttw:data-[state=open]:animate-in ttw:data-[state=closed]:animate-out ttw:data-[state=closed]:fade-out-0 ttw:data-[state=open]:fade-in-0 ttw:data-[state=closed]:zoom-out-95 ttw:data-[state=open]:zoom-in-95", nv[o],
|
|
8898
|
+
className: J("ttw:max-h-[calc(100dvh-2rem)] ttw:overflow-y-auto", "ttw:fixed ttw:left-[50%] ttw:top-[50%] ttw:grid ttw:w-[calc(100%-2rem)] ttw:translate-x-[-50%] ttw:translate-y-[-50%] ttw:gap-4 ttw:rounded-lg ttw:border ttw:border-border ttw:bg-background ttw:p-6 ttw:shadow-lg ttw:duration-200 ttw:data-[state=open]:animate-in ttw:data-[state=closed]:animate-out ttw:data-[state=closed]:fade-out-0 ttw:data-[state=open]:fade-in-0 ttw:data-[state=closed]:zoom-out-95 ttw:data-[state=open]:zoom-in-95", nv[o], d, e),
|
|
8899
8899
|
onEscapeKeyDown: Q_(i, a),
|
|
8900
|
-
|
|
8900
|
+
onOpenAutoFocus: (e) => {
|
|
8901
|
+
if (c?.(e), e.defaultPrevented) return;
|
|
8902
|
+
let t = e.currentTarget;
|
|
8903
|
+
queueMicrotask(() => {
|
|
8904
|
+
if (!(t instanceof HTMLElement)) return;
|
|
8905
|
+
let e = document.activeElement;
|
|
8906
|
+
e && t.contains(e) || t.focus({ preventScroll: !0 });
|
|
8907
|
+
});
|
|
8908
|
+
},
|
|
8909
|
+
...l,
|
|
8901
8910
|
children: /* @__PURE__ */ b(_v.Provider, {
|
|
8902
8911
|
value: n,
|
|
8903
8912
|
children: [n ? /* @__PURE__ */ y(eo, {
|
|
8904
8913
|
"data-slot": "alert-dialog-close-button",
|
|
8905
8914
|
"data-testid": r,
|
|
8906
8915
|
disabled: i,
|
|
8907
|
-
title:
|
|
8916
|
+
title: u.close,
|
|
8908
8917
|
className: J(X_, Z_),
|
|
8909
|
-
children: /* @__PURE__ */ y($_, { label:
|
|
8918
|
+
children: /* @__PURE__ */ y($_, { label: u.close })
|
|
8910
8919
|
}) : null, /* @__PURE__ */ y(mv.Provider, {
|
|
8911
8920
|
value: "confirm",
|
|
8912
8921
|
children: t
|
|
@@ -9382,48 +9391,54 @@ function ty({ items: e, variant: t = "record", className: n, ...r }) {
|
|
|
9382
9391
|
})
|
|
9383
9392
|
});
|
|
9384
9393
|
}
|
|
9385
|
-
function ny({ open: e, onOpenChange: t, title:
|
|
9386
|
-
let
|
|
9394
|
+
function ny({ open: e, onOpenChange: t, title: r, description: i, submitError: a, icon: o, details: s, children: c, onConfirm: l, destructive: u = !1, confirmDisabled: d = !1, loading: f = !1, size: p = "confirm", showCloseButton: m = !0, labels: h, testIds: g }) {
|
|
9395
|
+
let _ = {
|
|
9387
9396
|
...ey,
|
|
9388
|
-
...
|
|
9389
|
-
},
|
|
9390
|
-
return
|
|
9397
|
+
...h
|
|
9398
|
+
}, v = sv(), x = n.useRef(null);
|
|
9399
|
+
return n.useEffect(() => {
|
|
9400
|
+
let t = x.current;
|
|
9401
|
+
if (!e || !f || !t) return;
|
|
9402
|
+
let n = document.activeElement;
|
|
9403
|
+
n instanceof HTMLElement && t.contains(n) && !n.matches(":disabled") || t.focus({ preventScroll: !0 });
|
|
9404
|
+
}, [e, f]), /* @__PURE__ */ y(vv, {
|
|
9391
9405
|
open: e,
|
|
9392
9406
|
onOpenChange: t,
|
|
9393
9407
|
children: /* @__PURE__ */ b(xv, {
|
|
9408
|
+
ref: x,
|
|
9394
9409
|
onOpenAutoFocus: (e) => {
|
|
9395
|
-
|
|
9410
|
+
v.captureOpener(), f ? (e.preventDefault(), x.current?.focus({ preventScroll: !0 })) : cv(e);
|
|
9396
9411
|
},
|
|
9397
|
-
onCloseAutoFocus:
|
|
9412
|
+
onCloseAutoFocus: v.onCloseAutoFocus,
|
|
9398
9413
|
"data-slot": "confirm-dialog",
|
|
9399
|
-
size:
|
|
9400
|
-
"data-testid":
|
|
9401
|
-
showCloseButton:
|
|
9402
|
-
closeButtonTestId:
|
|
9403
|
-
closeDisabled:
|
|
9404
|
-
labels: { close:
|
|
9405
|
-
...
|
|
9414
|
+
size: p,
|
|
9415
|
+
"data-testid": g?.content,
|
|
9416
|
+
showCloseButton: m,
|
|
9417
|
+
closeButtonTestId: g?.close,
|
|
9418
|
+
closeDisabled: f,
|
|
9419
|
+
labels: { close: _.close },
|
|
9420
|
+
...i ? {} : { "aria-describedby": void 0 },
|
|
9406
9421
|
children: [
|
|
9407
9422
|
/* @__PURE__ */ b(Sv, { children: [/* @__PURE__ */ y(wv, { children: /* @__PURE__ */ y(ev, {
|
|
9408
|
-
icon:
|
|
9409
|
-
iconClassName: rv[
|
|
9410
|
-
children:
|
|
9411
|
-
}) }),
|
|
9412
|
-
|
|
9413
|
-
|
|
9414
|
-
|
|
9423
|
+
icon: o,
|
|
9424
|
+
iconClassName: rv[u ? "destructive" : "neutral"],
|
|
9425
|
+
children: r
|
|
9426
|
+
}) }), i ? /* @__PURE__ */ y(Tv, { children: i }) : null] }),
|
|
9427
|
+
a && !f ? /* @__PURE__ */ y(av, { children: a }) : null,
|
|
9428
|
+
c,
|
|
9429
|
+
s && s.length > 0 ? /* @__PURE__ */ y(ty, { items: s }) : null,
|
|
9415
9430
|
/* @__PURE__ */ b(tv, { children: [/* @__PURE__ */ y(Ev, {
|
|
9416
|
-
disabled:
|
|
9417
|
-
"data-testid":
|
|
9418
|
-
children:
|
|
9431
|
+
disabled: f,
|
|
9432
|
+
"data-testid": g?.cancel,
|
|
9433
|
+
children: _.cancel
|
|
9419
9434
|
}), /* @__PURE__ */ y(J_, {
|
|
9420
9435
|
type: "button",
|
|
9421
|
-
variant:
|
|
9422
|
-
onClick:
|
|
9423
|
-
disabled:
|
|
9424
|
-
loading:
|
|
9425
|
-
"data-testid":
|
|
9426
|
-
children:
|
|
9436
|
+
variant: u ? "destructive" : "default",
|
|
9437
|
+
onClick: l,
|
|
9438
|
+
disabled: d,
|
|
9439
|
+
loading: f,
|
|
9440
|
+
"data-testid": g?.confirm,
|
|
9441
|
+
children: _.confirm
|
|
9427
9442
|
})] })
|
|
9428
9443
|
]
|
|
9429
9444
|
})
|
|
@@ -9743,6 +9758,7 @@ function Ry({ className: e, children: t, description: n, ...r }) {
|
|
|
9743
9758
|
return /* @__PURE__ */ b(mm, {
|
|
9744
9759
|
"data-slot": "select-item",
|
|
9745
9760
|
className: J("ttw:relative ttw:flex ttw:w-full ttw:cursor-pointer ttw:items-center ttw:gap-2 ttw:rounded-sm ttw:py-1.5 ttw:pr-8 ttw:pl-2 ttw:text-sm ttw:outline-hidden ttw:select-none ttw:focus:bg-accent ttw:focus:text-accent-foreground ttw:data-[disabled]:pointer-events-none ttw:data-[disabled]:opacity-50 ttw:[&_svg]:pointer-events-none ttw:[&_svg]:shrink-0 ttw:[&_svg:not([class*=size-])]:size-4 ttw:[&_svg:not([class*=text-])]:text-muted-foreground ttw:*:[span]:last:flex ttw:*:[span]:last:items-center ttw:*:[span]:last:gap-2", n && "ttw:flex-col ttw:items-start ttw:gap-0.5", e),
|
|
9761
|
+
...n ? { "aria-labelledby": void 0 } : {},
|
|
9746
9762
|
...r,
|
|
9747
9763
|
children: [
|
|
9748
9764
|
/* @__PURE__ */ y("span", {
|
|
@@ -10240,20 +10256,31 @@ function db({ className: e, ...t }) {
|
|
|
10240
10256
|
...t
|
|
10241
10257
|
});
|
|
10242
10258
|
}
|
|
10243
|
-
function fb({ className: e, overlayClassName: t, children: r, showCloseButton: i = !0, closeButtonTestId: a, closeDisabled: o = !1, onEscapeKeyDown: s, onInteractOutside: c,
|
|
10244
|
-
let
|
|
10259
|
+
function fb({ className: e, overlayClassName: t, children: r, showCloseButton: i = !0, closeButtonTestId: a, closeDisabled: o = !1, onEscapeKeyDown: s, onInteractOutside: c, onOpenAutoFocus: l, onCloseAutoFocus: u, size: d = "form", fullScreen: f = !1, labels: p, ...m }) {
|
|
10260
|
+
let h = {
|
|
10245
10261
|
...ab,
|
|
10246
|
-
...
|
|
10247
|
-
},
|
|
10262
|
+
...p
|
|
10263
|
+
}, g = n.useContext(sb), _ = hv(g ? "dialog" : "popover"), v = n.useRef(null);
|
|
10248
10264
|
return /* @__PURE__ */ b(lb, { children: [/* @__PURE__ */ y(db, { className: t }), /* @__PURE__ */ b(Aa, {
|
|
10249
10265
|
"data-slot": "dialog-content",
|
|
10250
|
-
className: J(
|
|
10266
|
+
className: J(_, "ttw:fixed ttw:left-1/2 ttw:top-1/2 ttw:w-[calc(100%-2rem)] ttw:-translate-x-1/2 ttw:-translate-y-1/2 ttw:rounded-lg ttw:bg-background ttw:p-6 ttw:shadow-lg ttw:outline-none ttw:data-[state=open]:animate-in ttw:data-[state=closed]:animate-out ttw:data-[state=closed]:fade-out-0 ttw:data-[state=open]:fade-in-0 ttw:data-[state=closed]:zoom-out-95 ttw:data-[state=open]:zoom-in-95", nv[d], f && "ttw:border-none ttw:rounded-none ttw:h-screen ttw:w-full ttw:max-w-screen ttw:sm:max-w-screen", e),
|
|
10251
10267
|
onEscapeKeyDown: Q_(o, s),
|
|
10252
10268
|
onInteractOutside: Q_(o, c),
|
|
10253
|
-
|
|
10269
|
+
onOpenAutoFocus: (e) => {
|
|
10270
|
+
let t = document.activeElement;
|
|
10271
|
+
v.current = t instanceof HTMLElement && t !== document.body ? t : null, l?.(e);
|
|
10272
|
+
},
|
|
10273
|
+
onCloseAutoFocus: (e) => {
|
|
10274
|
+
u?.(e);
|
|
10275
|
+
let t = v.current;
|
|
10276
|
+
if (v.current = null, e.defaultPrevented || !t || t.isConnected) return;
|
|
10277
|
+
let n = document.querySelectorAll("[role=\"dialog\"][data-state=\"open\"], [role=\"alertdialog\"][data-state=\"open\"]"), r = n[n.length - 1];
|
|
10278
|
+
r && (e.preventDefault(), r.focus());
|
|
10279
|
+
},
|
|
10280
|
+
...m,
|
|
10254
10281
|
children: [/* @__PURE__ */ y(ob.Provider, {
|
|
10255
10282
|
value: i,
|
|
10256
|
-
children:
|
|
10283
|
+
children: g ? /* @__PURE__ */ y(mv.Provider, {
|
|
10257
10284
|
value: "dialog",
|
|
10258
10285
|
children: r
|
|
10259
10286
|
}) : r
|
|
@@ -10261,9 +10288,9 @@ function fb({ className: e, overlayClassName: t, children: r, showCloseButton: i
|
|
|
10261
10288
|
"data-slot": "dialog-close-button",
|
|
10262
10289
|
"data-testid": a,
|
|
10263
10290
|
disabled: o,
|
|
10264
|
-
title:
|
|
10291
|
+
title: h.close,
|
|
10265
10292
|
className: J(X_, "ttw:absolute ttw:top-4 ttw:right-4"),
|
|
10266
|
-
children: /* @__PURE__ */ y($_, { label:
|
|
10293
|
+
children: /* @__PURE__ */ y($_, { label: h.close })
|
|
10267
10294
|
})]
|
|
10268
10295
|
})] });
|
|
10269
10296
|
}
|
|
@@ -16434,8 +16461,12 @@ function $O(e) {
|
|
|
16434
16461
|
"aria-live": "polite"
|
|
16435
16462
|
}, t.footer)));
|
|
16436
16463
|
}
|
|
16437
|
-
|
|
16438
|
-
let
|
|
16464
|
+
var ek = (e, t, n, r) => {
|
|
16465
|
+
let i = r ?? new VE(n);
|
|
16466
|
+
return JD(e, t, n, i).replace(i.format(e, "PPPP"), i.format(e, "EEEE, MMMM d, yyyy"));
|
|
16467
|
+
};
|
|
16468
|
+
function tk({ className: e, classNames: t, showOutsideDays: n = !0, captionLayout: r = "label", buttonVariant: i = "ghost", formatters: a, labels: o, components: s, ...c }) {
|
|
16469
|
+
let l = ID();
|
|
16439
16470
|
return /* @__PURE__ */ y($O, {
|
|
16440
16471
|
showOutsideDays: n,
|
|
16441
16472
|
className: J("ttw:group/calendar ttw:bg-background ttw:p-3 ttw:[--cell-size:--spacing(8)] ttw:[[data-slot=card-content]_&]:bg-transparent ttw:[[data-slot=popover-content]_&]:bg-transparent", String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`, String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`, e),
|
|
@@ -16444,32 +16475,36 @@ function ek({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
|
|
|
16444
16475
|
formatMonthDropdown: (e) => e.toLocaleString("default", { month: "short" }),
|
|
16445
16476
|
...a
|
|
16446
16477
|
},
|
|
16478
|
+
labels: {
|
|
16479
|
+
labelDayButton: ek,
|
|
16480
|
+
...o
|
|
16481
|
+
},
|
|
16447
16482
|
classNames: {
|
|
16448
|
-
root: J("ttw:w-fit",
|
|
16449
|
-
months: J("ttw:relative ttw:flex ttw:flex-col ttw:gap-4 ttw:md:flex-row",
|
|
16450
|
-
month: J("ttw:flex ttw:w-full ttw:flex-col ttw:gap-4",
|
|
16451
|
-
nav: J("ttw:absolute ttw:inset-x-0 ttw:top-0 ttw:flex ttw:w-full ttw:items-center ttw:justify-between ttw:gap-1",
|
|
16452
|
-
button_previous: J(q_({ variant: i }), "ttw:size-(--cell-size) ttw:p-0 ttw:select-none ttw:aria-disabled:opacity-50",
|
|
16453
|
-
button_next: J(q_({ variant: i }), "ttw:size-(--cell-size) ttw:p-0 ttw:select-none ttw:aria-disabled:opacity-50",
|
|
16454
|
-
month_caption: J("ttw:flex ttw:h-(--cell-size) ttw:w-full ttw:items-center ttw:justify-center ttw:px-(--cell-size)",
|
|
16455
|
-
dropdowns: J("ttw:flex ttw:h-(--cell-size) ttw:w-full ttw:items-center ttw:justify-center ttw:gap-1.5 ttw:text-sm ttw:font-medium",
|
|
16456
|
-
dropdown_root: J("ttw:relative ttw:rounded-md ttw:border ttw:border-input ttw:shadow-xs ttw:has-focus:border-ring ttw:has-focus:ring-[3px] ttw:has-focus:ring-ring/50",
|
|
16457
|
-
dropdown: J("ttw:absolute ttw:inset-0 ttw:bg-popover ttw:opacity-0",
|
|
16458
|
-
caption_label: J("ttw:font-medium ttw:select-none", r === "label" ? "ttw:text-sm" : "ttw:flex ttw:h-8 ttw:items-center ttw:gap-1 ttw:rounded-md ttw:pr-1 ttw:pl-2 ttw:text-sm ttw:[&>svg]:size-3.5 ttw:[&>svg]:text-muted-foreground",
|
|
16483
|
+
root: J("ttw:w-fit", l.root),
|
|
16484
|
+
months: J("ttw:relative ttw:flex ttw:flex-col ttw:gap-4 ttw:md:flex-row", l.months),
|
|
16485
|
+
month: J("ttw:flex ttw:w-full ttw:flex-col ttw:gap-4", l.month),
|
|
16486
|
+
nav: J("ttw:absolute ttw:inset-x-0 ttw:top-0 ttw:flex ttw:w-full ttw:items-center ttw:justify-between ttw:gap-1", l.nav),
|
|
16487
|
+
button_previous: J(q_({ variant: i }), "ttw:size-(--cell-size) ttw:p-0 ttw:select-none ttw:aria-disabled:opacity-50", l.button_previous),
|
|
16488
|
+
button_next: J(q_({ variant: i }), "ttw:size-(--cell-size) ttw:p-0 ttw:select-none ttw:aria-disabled:opacity-50", l.button_next),
|
|
16489
|
+
month_caption: J("ttw:flex ttw:h-(--cell-size) ttw:w-full ttw:items-center ttw:justify-center ttw:px-(--cell-size)", l.month_caption),
|
|
16490
|
+
dropdowns: J("ttw:flex ttw:h-(--cell-size) ttw:w-full ttw:items-center ttw:justify-center ttw:gap-1.5 ttw:text-sm ttw:font-medium", l.dropdowns),
|
|
16491
|
+
dropdown_root: J("ttw:relative ttw:rounded-md ttw:border ttw:border-input ttw:shadow-xs ttw:has-focus:border-ring ttw:has-focus:ring-[3px] ttw:has-focus:ring-ring/50", l.dropdown_root),
|
|
16492
|
+
dropdown: J("ttw:absolute ttw:inset-0 ttw:bg-popover ttw:opacity-0", l.dropdown),
|
|
16493
|
+
caption_label: J("ttw:font-medium ttw:select-none", r === "label" ? "ttw:text-sm" : "ttw:flex ttw:h-8 ttw:items-center ttw:gap-1 ttw:rounded-md ttw:pr-1 ttw:pl-2 ttw:text-sm ttw:[&>svg]:size-3.5 ttw:[&>svg]:text-muted-foreground", l.caption_label),
|
|
16459
16494
|
table: "ttw:w-full ttw:border-collapse",
|
|
16460
|
-
weekdays: J("ttw:flex",
|
|
16461
|
-
weekday: J("ttw:flex-1 ttw:rounded-md ttw:text-[0.8rem] ttw:font-normal ttw:text-muted-foreground ttw:select-none",
|
|
16462
|
-
week: J("ttw:mt-2 ttw:flex ttw:w-full",
|
|
16463
|
-
week_number_header: J("ttw:w-(--cell-size) ttw:select-none",
|
|
16464
|
-
week_number: J("ttw:text-[0.8rem] ttw:text-muted-foreground ttw:select-none",
|
|
16465
|
-
day: J("ttw:group/day ttw:relative ttw:aspect-square ttw:h-full ttw:w-full ttw:p-0 ttw:text-center ttw:select-none ttw:[&:last-child[data-selected=true]_button]:rounded-r-md",
|
|
16466
|
-
range_start: J("ttw:rounded-l-md ttw:bg-accent",
|
|
16467
|
-
range_middle: J("ttw:rounded-none",
|
|
16468
|
-
range_end: J("ttw:rounded-r-md ttw:bg-accent",
|
|
16469
|
-
today: J("ttw:rounded-md ttw:bg-accent ttw:text-accent-foreground ttw:data-[selected=true]:rounded-none",
|
|
16470
|
-
outside: J("ttw:text-muted-foreground ttw:aria-selected:text-muted-foreground",
|
|
16471
|
-
disabled: J("ttw:text-muted-foreground ttw:opacity-50",
|
|
16472
|
-
hidden: J("ttw:invisible",
|
|
16495
|
+
weekdays: J("ttw:flex", l.weekdays),
|
|
16496
|
+
weekday: J("ttw:flex-1 ttw:rounded-md ttw:text-[0.8rem] ttw:font-normal ttw:text-muted-foreground ttw:select-none", l.weekday),
|
|
16497
|
+
week: J("ttw:mt-2 ttw:flex ttw:w-full", l.week),
|
|
16498
|
+
week_number_header: J("ttw:w-(--cell-size) ttw:select-none", l.week_number_header),
|
|
16499
|
+
week_number: J("ttw:text-[0.8rem] ttw:text-muted-foreground ttw:select-none", l.week_number),
|
|
16500
|
+
day: J("ttw:group/day ttw:relative ttw:aspect-square ttw:h-full ttw:w-full ttw:p-0 ttw:text-center ttw:select-none ttw:[&:last-child[data-selected=true]_button]:rounded-r-md", c.showWeekNumber ? "ttw:[&:nth-child(2)[data-selected=true]_button]:rounded-l-md" : "ttw:[&:first-child[data-selected=true]_button]:rounded-l-md", l.day),
|
|
16501
|
+
range_start: J("ttw:rounded-l-md ttw:bg-accent", l.range_start),
|
|
16502
|
+
range_middle: J("ttw:rounded-none", l.range_middle),
|
|
16503
|
+
range_end: J("ttw:rounded-r-md ttw:bg-accent", l.range_end),
|
|
16504
|
+
today: J("ttw:rounded-md ttw:bg-accent ttw:text-accent-foreground ttw:data-[selected=true]:rounded-none", l.today),
|
|
16505
|
+
outside: J("ttw:text-muted-foreground ttw:aria-selected:text-muted-foreground", l.outside),
|
|
16506
|
+
disabled: J("ttw:text-muted-foreground ttw:opacity-50", l.disabled),
|
|
16507
|
+
hidden: J("ttw:invisible", l.hidden),
|
|
16473
16508
|
...t
|
|
16474
16509
|
},
|
|
16475
16510
|
components: {
|
|
@@ -16483,7 +16518,7 @@ function ek({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
|
|
|
16483
16518
|
className: J("ttw:size-4", e),
|
|
16484
16519
|
...n
|
|
16485
16520
|
}),
|
|
16486
|
-
DayButton:
|
|
16521
|
+
DayButton: nk,
|
|
16487
16522
|
WeekNumber: ({ children: e, ...t }) => /* @__PURE__ */ y("td", {
|
|
16488
16523
|
...t,
|
|
16489
16524
|
children: /* @__PURE__ */ y("div", {
|
|
@@ -16491,12 +16526,12 @@ function ek({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
|
|
|
16491
16526
|
children: e
|
|
16492
16527
|
})
|
|
16493
16528
|
}),
|
|
16494
|
-
...
|
|
16529
|
+
...s
|
|
16495
16530
|
},
|
|
16496
|
-
...
|
|
16531
|
+
...c
|
|
16497
16532
|
});
|
|
16498
16533
|
}
|
|
16499
|
-
function
|
|
16534
|
+
function nk({ className: e, day: t, modifiers: r, ...i }) {
|
|
16500
16535
|
let a = ID(), o = n.useRef(null);
|
|
16501
16536
|
return n.useEffect(() => {
|
|
16502
16537
|
r.focused && o.current?.focus();
|
|
@@ -16513,48 +16548,48 @@ function tk({ className: e, day: t, modifiers: r, ...i }) {
|
|
|
16513
16548
|
...i
|
|
16514
16549
|
});
|
|
16515
16550
|
}
|
|
16516
|
-
var
|
|
16517
|
-
function
|
|
16518
|
-
if (a === t.length) return i === e.length ?
|
|
16551
|
+
var rk = 1, ik = .9, ak = .8, ok = .17, sk = .1, ck = .999, lk = .9999, uk = .99, dk = /[\\\/_+.#"@\[\(\{&]/, fk = /[\\\/_+.#"@\[\(\{&]/g, pk = /[\s-]/, mk = /[\s-]/g;
|
|
16552
|
+
function hk(e, t, n, r, i, a, o) {
|
|
16553
|
+
if (a === t.length) return i === e.length ? rk : uk;
|
|
16519
16554
|
var s = `${i},${a}`;
|
|
16520
16555
|
if (o[s] !== void 0) return o[s];
|
|
16521
|
-
for (var c = r.charAt(a), l = n.indexOf(c, i), u = 0, d, f, p, m; l >= 0;) d =
|
|
16556
|
+
for (var c = r.charAt(a), l = n.indexOf(c, i), u = 0, d, f, p, m; l >= 0;) d = hk(e, t, n, r, l + 1, a + 1, o), d > u && (l === i ? d *= rk : dk.test(e.charAt(l - 1)) ? (d *= ak, p = e.slice(i, l - 1).match(fk), p && i > 0 && (d *= ck ** +p.length)) : pk.test(e.charAt(l - 1)) ? (d *= ik, m = e.slice(i, l - 1).match(mk), m && i > 0 && (d *= ck ** +m.length)) : (d *= ok, i > 0 && (d *= ck ** +(l - i))), e.charAt(l) !== t.charAt(a) && (d *= lk)), (d < sk && n.charAt(l - 1) === r.charAt(a + 1) || r.charAt(a + 1) === r.charAt(a) && n.charAt(l - 1) !== r.charAt(a)) && (f = hk(e, t, n, r, l + 1, a + 2, o), f * sk > d && (d = f * sk)), d > u && (u = d), l = n.indexOf(c, l + 1);
|
|
16522
16557
|
return o[s] = u, u;
|
|
16523
16558
|
}
|
|
16524
|
-
function
|
|
16525
|
-
return e.toLowerCase().replace(
|
|
16559
|
+
function gk(e) {
|
|
16560
|
+
return e.toLowerCase().replace(mk, " ");
|
|
16526
16561
|
}
|
|
16527
|
-
function
|
|
16528
|
-
return e = n && n.length > 0 ? `${e + " " + n.join(" ")}` : e,
|
|
16562
|
+
function _k(e, t, n) {
|
|
16563
|
+
return e = n && n.length > 0 ? `${e + " " + n.join(" ")}` : e, hk(e, t, gk(e), gk(t), 0, 0, {});
|
|
16529
16564
|
}
|
|
16530
16565
|
typeof window < "u" && window.document && window.document.createElement;
|
|
16531
|
-
function
|
|
16566
|
+
function vk(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
16532
16567
|
return function(r) {
|
|
16533
16568
|
if (e?.(r), n === !1 || !r.defaultPrevented) return t?.(r);
|
|
16534
16569
|
};
|
|
16535
16570
|
}
|
|
16536
|
-
function
|
|
16571
|
+
function yk(e, t) {
|
|
16537
16572
|
if (typeof e == "function") return e(t);
|
|
16538
16573
|
e != null && (e.current = t);
|
|
16539
16574
|
}
|
|
16540
|
-
function
|
|
16575
|
+
function bk(...e) {
|
|
16541
16576
|
return (t) => {
|
|
16542
16577
|
let n = !1, r = e.map((e) => {
|
|
16543
|
-
let r =
|
|
16578
|
+
let r = yk(e, t);
|
|
16544
16579
|
return !n && typeof r == "function" && (n = !0), r;
|
|
16545
16580
|
});
|
|
16546
16581
|
if (n) return () => {
|
|
16547
16582
|
for (let t = 0; t < r.length; t++) {
|
|
16548
16583
|
let n = r[t];
|
|
16549
|
-
typeof n == "function" ? n() :
|
|
16584
|
+
typeof n == "function" ? n() : yk(e[t], null);
|
|
16550
16585
|
}
|
|
16551
16586
|
};
|
|
16552
16587
|
};
|
|
16553
16588
|
}
|
|
16554
|
-
function
|
|
16555
|
-
return n.useCallback(
|
|
16589
|
+
function xk(...e) {
|
|
16590
|
+
return n.useCallback(bk(...e), e);
|
|
16556
16591
|
}
|
|
16557
|
-
function
|
|
16592
|
+
function Sk(e, t) {
|
|
16558
16593
|
let r = n.createContext(t), i = (e) => {
|
|
16559
16594
|
let { children: t, ...i } = e, a = n.useMemo(() => i, Object.values(i));
|
|
16560
16595
|
return /* @__PURE__ */ y(r.Provider, {
|
|
@@ -16571,7 +16606,7 @@ function xk(e, t) {
|
|
|
16571
16606
|
}
|
|
16572
16607
|
return [i, a];
|
|
16573
16608
|
}
|
|
16574
|
-
function
|
|
16609
|
+
function Ck(e, t = []) {
|
|
16575
16610
|
let r = [];
|
|
16576
16611
|
function i(t, i) {
|
|
16577
16612
|
let a = n.createContext(i), o = r.length;
|
|
@@ -16602,9 +16637,9 @@ function Sk(e, t = []) {
|
|
|
16602
16637
|
} }), [r, i]);
|
|
16603
16638
|
};
|
|
16604
16639
|
};
|
|
16605
|
-
return a.scopeName = e, [i,
|
|
16640
|
+
return a.scopeName = e, [i, wk(a, ...t)];
|
|
16606
16641
|
}
|
|
16607
|
-
function
|
|
16642
|
+
function wk(...e) {
|
|
16608
16643
|
let t = e[0];
|
|
16609
16644
|
if (e.length === 1) return t;
|
|
16610
16645
|
let r = () => {
|
|
@@ -16625,16 +16660,16 @@ function Ck(...e) {
|
|
|
16625
16660
|
};
|
|
16626
16661
|
return r.scopeName = t.scopeName, r;
|
|
16627
16662
|
}
|
|
16628
|
-
var
|
|
16629
|
-
function
|
|
16630
|
-
let [t, r] = n.useState(
|
|
16631
|
-
return
|
|
16632
|
-
e || r((e) => e ?? String(
|
|
16663
|
+
var Tk = globalThis?.document ? n.useLayoutEffect : () => {}, Ek = n.useId || (() => void 0), Dk = 0;
|
|
16664
|
+
function Ok(e) {
|
|
16665
|
+
let [t, r] = n.useState(Ek());
|
|
16666
|
+
return Tk(() => {
|
|
16667
|
+
e || r((e) => e ?? String(Dk++));
|
|
16633
16668
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
16634
16669
|
}
|
|
16635
|
-
var
|
|
16636
|
-
function
|
|
16637
|
-
let [a, o, s] =
|
|
16670
|
+
var kk = n.useInsertionEffect || Tk;
|
|
16671
|
+
function Ak({ prop: e, defaultProp: t, onChange: r = () => {}, caller: i }) {
|
|
16672
|
+
let [a, o, s] = jk({
|
|
16638
16673
|
defaultProp: t,
|
|
16639
16674
|
onChange: r
|
|
16640
16675
|
}), c = e !== void 0, l = c ? e : a;
|
|
@@ -16647,7 +16682,7 @@ function kk({ prop: e, defaultProp: t, onChange: r = () => {}, caller: i }) {
|
|
|
16647
16682
|
}
|
|
16648
16683
|
return [l, n.useCallback((t) => {
|
|
16649
16684
|
if (c) {
|
|
16650
|
-
let n =
|
|
16685
|
+
let n = Mk(t) ? t(e) : t;
|
|
16651
16686
|
n !== e && s.current?.(n);
|
|
16652
16687
|
} else o(t);
|
|
16653
16688
|
}, [
|
|
@@ -16657,9 +16692,9 @@ function kk({ prop: e, defaultProp: t, onChange: r = () => {}, caller: i }) {
|
|
|
16657
16692
|
s
|
|
16658
16693
|
])];
|
|
16659
16694
|
}
|
|
16660
|
-
function
|
|
16695
|
+
function jk({ defaultProp: e, onChange: t }) {
|
|
16661
16696
|
let [r, i] = n.useState(e), a = n.useRef(r), o = n.useRef(t);
|
|
16662
|
-
return
|
|
16697
|
+
return kk(() => {
|
|
16663
16698
|
o.current = t;
|
|
16664
16699
|
}, [t]), n.useEffect(() => {
|
|
16665
16700
|
a.current !== r && (o.current?.(r), a.current = r);
|
|
@@ -16669,13 +16704,13 @@ function Ak({ defaultProp: e, onChange: t }) {
|
|
|
16669
16704
|
o
|
|
16670
16705
|
];
|
|
16671
16706
|
}
|
|
16672
|
-
function
|
|
16707
|
+
function Mk(e) {
|
|
16673
16708
|
return typeof e == "function";
|
|
16674
16709
|
}
|
|
16675
16710
|
// @__NO_SIDE_EFFECTS__
|
|
16676
|
-
function
|
|
16677
|
-
let t = /* @__PURE__ */
|
|
16678
|
-
let { children: i, ...a } = e, o = n.Children.toArray(i), s = o.find(
|
|
16711
|
+
function Nk(e) {
|
|
16712
|
+
let t = /* @__PURE__ */ Pk(e), r = n.forwardRef((e, r) => {
|
|
16713
|
+
let { children: i, ...a } = e, o = n.Children.toArray(i), s = o.find(Ik);
|
|
16679
16714
|
if (s) {
|
|
16680
16715
|
let e = s.props.children, i = o.map((t) => t === s ? n.Children.count(e) > 1 ? n.Children.only(null) : n.isValidElement(e) ? e.props.children : null : t);
|
|
16681
16716
|
return /* @__PURE__ */ y(t, {
|
|
@@ -16693,22 +16728,22 @@ function Mk(e) {
|
|
|
16693
16728
|
return r.displayName = `${e}.Slot`, r;
|
|
16694
16729
|
}
|
|
16695
16730
|
// @__NO_SIDE_EFFECTS__
|
|
16696
|
-
function
|
|
16731
|
+
function Pk(e) {
|
|
16697
16732
|
let t = n.forwardRef((e, t) => {
|
|
16698
16733
|
let { children: r, ...i } = e;
|
|
16699
16734
|
if (n.isValidElement(r)) {
|
|
16700
|
-
let e =
|
|
16701
|
-
return r.type !== n.Fragment && (a.ref = t ?
|
|
16735
|
+
let e = Rk(r), a = Lk(i, r.props);
|
|
16736
|
+
return r.type !== n.Fragment && (a.ref = t ? bk(t, e) : e), n.cloneElement(r, a);
|
|
16702
16737
|
}
|
|
16703
16738
|
return n.Children.count(r) > 1 ? n.Children.only(null) : null;
|
|
16704
16739
|
});
|
|
16705
16740
|
return t.displayName = `${e}.SlotClone`, t;
|
|
16706
16741
|
}
|
|
16707
|
-
var
|
|
16708
|
-
function
|
|
16709
|
-
return n.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
16742
|
+
var Fk = Symbol("radix.slottable");
|
|
16743
|
+
function Ik(e) {
|
|
16744
|
+
return n.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Fk;
|
|
16710
16745
|
}
|
|
16711
|
-
function
|
|
16746
|
+
function Lk(e, t) {
|
|
16712
16747
|
let n = { ...t };
|
|
16713
16748
|
for (let r in t) {
|
|
16714
16749
|
let i = e[r], a = t[r];
|
|
@@ -16725,11 +16760,11 @@ function Ik(e, t) {
|
|
|
16725
16760
|
...n
|
|
16726
16761
|
};
|
|
16727
16762
|
}
|
|
16728
|
-
function
|
|
16763
|
+
function Rk(e) {
|
|
16729
16764
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
16730
16765
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
16731
16766
|
}
|
|
16732
|
-
var
|
|
16767
|
+
var zk = [
|
|
16733
16768
|
"a",
|
|
16734
16769
|
"button",
|
|
16735
16770
|
"div",
|
|
@@ -16748,7 +16783,7 @@ var Rk = [
|
|
|
16748
16783
|
"svg",
|
|
16749
16784
|
"ul"
|
|
16750
16785
|
].reduce((e, t) => {
|
|
16751
|
-
let r = /* @__PURE__ */
|
|
16786
|
+
let r = /* @__PURE__ */ Nk(`Primitive.${t}`), i = n.forwardRef((e, n) => {
|
|
16752
16787
|
let { asChild: i, ...a } = e, o = i ? r : t;
|
|
16753
16788
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ y(o, {
|
|
16754
16789
|
...a,
|
|
@@ -16760,23 +16795,23 @@ var Rk = [
|
|
|
16760
16795
|
[t]: i
|
|
16761
16796
|
};
|
|
16762
16797
|
}, {});
|
|
16763
|
-
function
|
|
16798
|
+
function Bk(e, t) {
|
|
16764
16799
|
e && h.flushSync(() => e.dispatchEvent(t));
|
|
16765
16800
|
}
|
|
16766
|
-
function
|
|
16801
|
+
function Vk(e) {
|
|
16767
16802
|
let t = n.useRef(e);
|
|
16768
16803
|
return n.useEffect(() => {
|
|
16769
16804
|
t.current = e;
|
|
16770
16805
|
}), n.useMemo(() => (...e) => t.current?.(...e), []);
|
|
16771
16806
|
}
|
|
16772
|
-
function
|
|
16807
|
+
function Hk(e) {
|
|
16773
16808
|
let t = n.useRef(e);
|
|
16774
16809
|
return n.useEffect(() => {
|
|
16775
16810
|
t.current = e;
|
|
16776
16811
|
}), n.useMemo(() => (...e) => t.current?.(...e), []);
|
|
16777
16812
|
}
|
|
16778
|
-
function
|
|
16779
|
-
let r =
|
|
16813
|
+
function Uk(e, t = globalThis?.document) {
|
|
16814
|
+
let r = Hk(e);
|
|
16780
16815
|
n.useEffect(() => {
|
|
16781
16816
|
let e = (e) => {
|
|
16782
16817
|
e.key === "Escape" && r(e);
|
|
@@ -16784,23 +16819,23 @@ function Hk(e, t = globalThis?.document) {
|
|
|
16784
16819
|
return t.addEventListener("keydown", e, { capture: !0 }), () => t.removeEventListener("keydown", e, { capture: !0 });
|
|
16785
16820
|
}, [r, t]);
|
|
16786
16821
|
}
|
|
16787
|
-
var
|
|
16822
|
+
var Wk = "DismissableLayer", Gk = "dismissableLayer.update", Kk = "dismissableLayer.pointerDownOutside", qk = "dismissableLayer.focusOutside", Jk, Yk = n.createContext({
|
|
16788
16823
|
layers: /* @__PURE__ */ new Set(),
|
|
16789
16824
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
16790
16825
|
branches: /* @__PURE__ */ new Set()
|
|
16791
|
-
}),
|
|
16792
|
-
let { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: i, onPointerDownOutside: a, onFocusOutside: o, onInteractOutside: s, onDismiss: c, ...l } = e, u = n.useContext(
|
|
16826
|
+
}), Xk = n.forwardRef((e, t) => {
|
|
16827
|
+
let { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: i, onPointerDownOutside: a, onFocusOutside: o, onInteractOutside: s, onDismiss: c, ...l } = e, u = n.useContext(Yk), [d, f] = n.useState(null), p = d?.ownerDocument ?? globalThis?.document, [, m] = n.useState({}), h = xk(t, (e) => f(e)), g = Array.from(u.layers), [_] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), v = g.indexOf(_), b = d ? g.indexOf(d) : -1, x = u.layersWithOutsidePointerEventsDisabled.size > 0, S = b >= v, C = $k((e) => {
|
|
16793
16828
|
let t = e.target, n = [...u.branches].some((e) => e.contains(t));
|
|
16794
16829
|
S && !n && (a?.(e), s?.(e), e.defaultPrevented || c?.());
|
|
16795
|
-
}, p), w =
|
|
16830
|
+
}, p), w = eA((e) => {
|
|
16796
16831
|
let t = e.target;
|
|
16797
16832
|
[...u.branches].some((e) => e.contains(t)) || (o?.(e), s?.(e), e.defaultPrevented || c?.());
|
|
16798
16833
|
}, p);
|
|
16799
|
-
return
|
|
16834
|
+
return Uk((e) => {
|
|
16800
16835
|
b === u.layers.size - 1 && (i?.(e), !e.defaultPrevented && c && (e.preventDefault(), c()));
|
|
16801
16836
|
}, p), n.useEffect(() => {
|
|
16802
|
-
if (d) return r && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
16803
|
-
r && u.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents =
|
|
16837
|
+
if (d) return r && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (Jk = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(d)), u.layers.add(d), tA(), () => {
|
|
16838
|
+
r && u.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = Jk);
|
|
16804
16839
|
};
|
|
16805
16840
|
}, [
|
|
16806
16841
|
d,
|
|
@@ -16808,43 +16843,43 @@ var Uk = "DismissableLayer", Wk = "dismissableLayer.update", Gk = "dismissableLa
|
|
|
16808
16843
|
r,
|
|
16809
16844
|
u
|
|
16810
16845
|
]), n.useEffect(() => () => {
|
|
16811
|
-
d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d),
|
|
16846
|
+
d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d), tA());
|
|
16812
16847
|
}, [d, u]), n.useEffect(() => {
|
|
16813
16848
|
let e = () => m({});
|
|
16814
|
-
return document.addEventListener(
|
|
16815
|
-
}, []), /* @__PURE__ */ y(
|
|
16849
|
+
return document.addEventListener(Gk, e), () => document.removeEventListener(Gk, e);
|
|
16850
|
+
}, []), /* @__PURE__ */ y(zk.div, {
|
|
16816
16851
|
...l,
|
|
16817
16852
|
ref: h,
|
|
16818
16853
|
style: {
|
|
16819
16854
|
pointerEvents: x ? S ? "auto" : "none" : void 0,
|
|
16820
16855
|
...e.style
|
|
16821
16856
|
},
|
|
16822
|
-
onFocusCapture:
|
|
16823
|
-
onBlurCapture:
|
|
16824
|
-
onPointerDownCapture:
|
|
16857
|
+
onFocusCapture: vk(e.onFocusCapture, w.onFocusCapture),
|
|
16858
|
+
onBlurCapture: vk(e.onBlurCapture, w.onBlurCapture),
|
|
16859
|
+
onPointerDownCapture: vk(e.onPointerDownCapture, C.onPointerDownCapture)
|
|
16825
16860
|
});
|
|
16826
16861
|
});
|
|
16827
|
-
|
|
16828
|
-
var
|
|
16829
|
-
let r = n.useContext(
|
|
16862
|
+
Xk.displayName = Wk;
|
|
16863
|
+
var Zk = "DismissableLayerBranch", Qk = n.forwardRef((e, t) => {
|
|
16864
|
+
let r = n.useContext(Yk), i = n.useRef(null), a = xk(t, i);
|
|
16830
16865
|
return n.useEffect(() => {
|
|
16831
16866
|
let e = i.current;
|
|
16832
16867
|
if (e) return r.branches.add(e), () => {
|
|
16833
16868
|
r.branches.delete(e);
|
|
16834
16869
|
};
|
|
16835
|
-
}, [r.branches]), /* @__PURE__ */ y(
|
|
16870
|
+
}, [r.branches]), /* @__PURE__ */ y(zk.div, {
|
|
16836
16871
|
...e,
|
|
16837
16872
|
ref: a
|
|
16838
16873
|
});
|
|
16839
16874
|
});
|
|
16840
|
-
|
|
16841
|
-
function
|
|
16842
|
-
let r =
|
|
16875
|
+
Qk.displayName = Zk;
|
|
16876
|
+
function $k(e, t = globalThis?.document) {
|
|
16877
|
+
let r = Vk(e), i = n.useRef(!1), a = n.useRef(() => {});
|
|
16843
16878
|
return n.useEffect(() => {
|
|
16844
16879
|
let e = (e) => {
|
|
16845
16880
|
if (e.target && !i.current) {
|
|
16846
16881
|
let n = function() {
|
|
16847
|
-
|
|
16882
|
+
nA(Kk, r, i, { discrete: !0 });
|
|
16848
16883
|
}, i = { originalEvent: e };
|
|
16849
16884
|
e.pointerType === "touch" ? (t.removeEventListener("click", a.current), a.current = n, t.addEventListener("click", a.current, { once: !0 })) : n();
|
|
16850
16885
|
} else t.removeEventListener("click", a.current);
|
|
@@ -16857,11 +16892,11 @@ function Qk(e, t = globalThis?.document) {
|
|
|
16857
16892
|
};
|
|
16858
16893
|
}, [t, r]), { onPointerDownCapture: () => i.current = !0 };
|
|
16859
16894
|
}
|
|
16860
|
-
function
|
|
16861
|
-
let r =
|
|
16895
|
+
function eA(e, t = globalThis?.document) {
|
|
16896
|
+
let r = Vk(e), i = n.useRef(!1);
|
|
16862
16897
|
return n.useEffect(() => {
|
|
16863
16898
|
let e = (e) => {
|
|
16864
|
-
e.target && !i.current &&
|
|
16899
|
+
e.target && !i.current && nA(qk, r, { originalEvent: e }, { discrete: !1 });
|
|
16865
16900
|
};
|
|
16866
16901
|
return t.addEventListener("focusin", e), () => t.removeEventListener("focusin", e);
|
|
16867
16902
|
}, [t, r]), {
|
|
@@ -16869,19 +16904,19 @@ function $k(e, t = globalThis?.document) {
|
|
|
16869
16904
|
onBlurCapture: () => i.current = !1
|
|
16870
16905
|
};
|
|
16871
16906
|
}
|
|
16872
|
-
function
|
|
16873
|
-
let e = new CustomEvent(
|
|
16907
|
+
function tA() {
|
|
16908
|
+
let e = new CustomEvent(Gk);
|
|
16874
16909
|
document.dispatchEvent(e);
|
|
16875
16910
|
}
|
|
16876
|
-
function
|
|
16911
|
+
function nA(e, t, n, { discrete: r }) {
|
|
16877
16912
|
let i = n.originalEvent.target, a = new CustomEvent(e, {
|
|
16878
16913
|
bubbles: !1,
|
|
16879
16914
|
cancelable: !0,
|
|
16880
16915
|
detail: n
|
|
16881
16916
|
});
|
|
16882
|
-
t && i.addEventListener(e, t, { once: !0 }), r ?
|
|
16917
|
+
t && i.addEventListener(e, t, { once: !0 }), r ? Bk(i, a) : i.dispatchEvent(a);
|
|
16883
16918
|
}
|
|
16884
|
-
var
|
|
16919
|
+
var rA = [
|
|
16885
16920
|
"a",
|
|
16886
16921
|
"button",
|
|
16887
16922
|
"div",
|
|
@@ -16900,7 +16935,7 @@ var nA = [
|
|
|
16900
16935
|
"svg",
|
|
16901
16936
|
"ul"
|
|
16902
16937
|
].reduce((e, t) => {
|
|
16903
|
-
let r = /* @__PURE__ */
|
|
16938
|
+
let r = /* @__PURE__ */ Nk(`Primitive.${t}`), i = n.forwardRef((e, n) => {
|
|
16904
16939
|
let { asChild: i, ...a } = e, o = i ? r : t;
|
|
16905
16940
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ y(o, {
|
|
16906
16941
|
...a,
|
|
@@ -16911,11 +16946,11 @@ var nA = [
|
|
|
16911
16946
|
...e,
|
|
16912
16947
|
[t]: i
|
|
16913
16948
|
};
|
|
16914
|
-
}, {}),
|
|
16949
|
+
}, {}), iA = "focusScope.autoFocusOnMount", aA = "focusScope.autoFocusOnUnmount", oA = {
|
|
16915
16950
|
bubbles: !1,
|
|
16916
16951
|
cancelable: !0
|
|
16917
|
-
},
|
|
16918
|
-
let { loop: r = !1, trapped: i = !1, onMountAutoFocus: a, onUnmountAutoFocus: o, ...s } = e, [c, l] = n.useState(null), u =
|
|
16952
|
+
}, sA = "FocusScope", cA = n.forwardRef((e, t) => {
|
|
16953
|
+
let { loop: r = !1, trapped: i = !1, onMountAutoFocus: a, onUnmountAutoFocus: o, ...s } = e, [c, l] = n.useState(null), u = Vk(a), d = Vk(o), f = n.useRef(null), p = xk(t, (e) => l(e)), m = n.useRef({
|
|
16919
16954
|
paused: !1,
|
|
16920
16955
|
pause() {
|
|
16921
16956
|
this.paused = !0;
|
|
@@ -16929,13 +16964,13 @@ var nA = [
|
|
|
16929
16964
|
let e = function(e) {
|
|
16930
16965
|
if (m.paused || !c) return;
|
|
16931
16966
|
let t = e.target;
|
|
16932
|
-
c.contains(t) ? f.current = t :
|
|
16967
|
+
c.contains(t) ? f.current = t : hA(f.current, { select: !0 });
|
|
16933
16968
|
}, t = function(e) {
|
|
16934
16969
|
if (m.paused || !c) return;
|
|
16935
16970
|
let t = e.relatedTarget;
|
|
16936
|
-
t !== null && (c.contains(t) ||
|
|
16971
|
+
t !== null && (c.contains(t) || hA(f.current, { select: !0 }));
|
|
16937
16972
|
}, n = function(e) {
|
|
16938
|
-
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 &&
|
|
16973
|
+
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 && hA(c);
|
|
16939
16974
|
};
|
|
16940
16975
|
document.addEventListener("focusin", e), document.addEventListener("focusout", t);
|
|
16941
16976
|
let r = new MutationObserver(n);
|
|
@@ -16952,16 +16987,16 @@ var nA = [
|
|
|
16952
16987
|
m.paused
|
|
16953
16988
|
]), n.useEffect(() => {
|
|
16954
16989
|
if (c) {
|
|
16955
|
-
|
|
16990
|
+
gA.add(m);
|
|
16956
16991
|
let e = document.activeElement;
|
|
16957
16992
|
if (!c.contains(e)) {
|
|
16958
|
-
let t = new CustomEvent(
|
|
16959
|
-
c.addEventListener(
|
|
16993
|
+
let t = new CustomEvent(iA, oA);
|
|
16994
|
+
c.addEventListener(iA, u), c.dispatchEvent(t), t.defaultPrevented || (lA(yA(dA(c)), { select: !0 }), document.activeElement === e && hA(c));
|
|
16960
16995
|
}
|
|
16961
16996
|
return () => {
|
|
16962
|
-
c.removeEventListener(
|
|
16963
|
-
let t = new CustomEvent(
|
|
16964
|
-
c.addEventListener(
|
|
16997
|
+
c.removeEventListener(iA, u), setTimeout(() => {
|
|
16998
|
+
let t = new CustomEvent(aA, oA);
|
|
16999
|
+
c.addEventListener(aA, d), c.dispatchEvent(t), t.defaultPrevented || hA(e ?? document.body, { select: !0 }), c.removeEventListener(aA, d), gA.remove(m);
|
|
16965
17000
|
}, 0);
|
|
16966
17001
|
};
|
|
16967
17002
|
}
|
|
@@ -16975,31 +17010,31 @@ var nA = [
|
|
|
16975
17010
|
if (!r && !i || m.paused) return;
|
|
16976
17011
|
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, n = document.activeElement;
|
|
16977
17012
|
if (t && n) {
|
|
16978
|
-
let t = e.currentTarget, [i, a] =
|
|
16979
|
-
i && a ? !e.shiftKey && n === a ? (e.preventDefault(), r &&
|
|
17013
|
+
let t = e.currentTarget, [i, a] = uA(t);
|
|
17014
|
+
i && a ? !e.shiftKey && n === a ? (e.preventDefault(), r && hA(i, { select: !0 })) : e.shiftKey && n === i && (e.preventDefault(), r && hA(a, { select: !0 })) : n === t && e.preventDefault();
|
|
16980
17015
|
}
|
|
16981
17016
|
}, [
|
|
16982
17017
|
r,
|
|
16983
17018
|
i,
|
|
16984
17019
|
m.paused
|
|
16985
17020
|
]);
|
|
16986
|
-
return /* @__PURE__ */ y(
|
|
17021
|
+
return /* @__PURE__ */ y(rA.div, {
|
|
16987
17022
|
tabIndex: -1,
|
|
16988
17023
|
...s,
|
|
16989
17024
|
ref: p,
|
|
16990
17025
|
onKeyDown: h
|
|
16991
17026
|
});
|
|
16992
17027
|
});
|
|
16993
|
-
|
|
16994
|
-
function
|
|
17028
|
+
cA.displayName = sA;
|
|
17029
|
+
function lA(e, { select: t = !1 } = {}) {
|
|
16995
17030
|
let n = document.activeElement;
|
|
16996
|
-
for (let r of e) if (
|
|
16997
|
-
}
|
|
16998
|
-
function lA(e) {
|
|
16999
|
-
let t = uA(e);
|
|
17000
|
-
return [dA(t, e), dA(t.reverse(), e)];
|
|
17031
|
+
for (let r of e) if (hA(r, { select: t }), document.activeElement !== n) return;
|
|
17001
17032
|
}
|
|
17002
17033
|
function uA(e) {
|
|
17034
|
+
let t = dA(e);
|
|
17035
|
+
return [fA(t, e), fA(t.reverse(), e)];
|
|
17036
|
+
}
|
|
17037
|
+
function dA(e) {
|
|
17003
17038
|
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
|
|
17004
17039
|
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
17005
17040
|
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
@@ -17007,10 +17042,10 @@ function uA(e) {
|
|
|
17007
17042
|
for (; n.nextNode();) t.push(n.currentNode);
|
|
17008
17043
|
return t;
|
|
17009
17044
|
}
|
|
17010
|
-
function
|
|
17011
|
-
for (let n of e) if (!
|
|
17045
|
+
function fA(e, t) {
|
|
17046
|
+
for (let n of e) if (!pA(n, { upTo: t })) return n;
|
|
17012
17047
|
}
|
|
17013
|
-
function
|
|
17048
|
+
function pA(e, { upTo: t }) {
|
|
17014
17049
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
17015
17050
|
for (; e;) {
|
|
17016
17051
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -17019,36 +17054,36 @@ function fA(e, { upTo: t }) {
|
|
|
17019
17054
|
}
|
|
17020
17055
|
return !1;
|
|
17021
17056
|
}
|
|
17022
|
-
function
|
|
17057
|
+
function mA(e) {
|
|
17023
17058
|
return e instanceof HTMLInputElement && "select" in e;
|
|
17024
17059
|
}
|
|
17025
|
-
function
|
|
17060
|
+
function hA(e, { select: t = !1 } = {}) {
|
|
17026
17061
|
if (e && e.focus) {
|
|
17027
17062
|
let n = document.activeElement;
|
|
17028
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
17063
|
+
e.focus({ preventScroll: !0 }), e !== n && mA(e) && t && e.select();
|
|
17029
17064
|
}
|
|
17030
17065
|
}
|
|
17031
|
-
var
|
|
17032
|
-
function
|
|
17066
|
+
var gA = _A();
|
|
17067
|
+
function _A() {
|
|
17033
17068
|
let e = [];
|
|
17034
17069
|
return {
|
|
17035
17070
|
add(t) {
|
|
17036
17071
|
let n = e[0];
|
|
17037
|
-
t !== n && n?.pause(), e =
|
|
17072
|
+
t !== n && n?.pause(), e = vA(e, t), e.unshift(t);
|
|
17038
17073
|
},
|
|
17039
17074
|
remove(t) {
|
|
17040
|
-
e =
|
|
17075
|
+
e = vA(e, t), e[0]?.resume();
|
|
17041
17076
|
}
|
|
17042
17077
|
};
|
|
17043
17078
|
}
|
|
17044
|
-
function
|
|
17079
|
+
function vA(e, t) {
|
|
17045
17080
|
let n = [...e], r = n.indexOf(t);
|
|
17046
17081
|
return r !== -1 && n.splice(r, 1), n;
|
|
17047
17082
|
}
|
|
17048
|
-
function
|
|
17083
|
+
function yA(e) {
|
|
17049
17084
|
return e.filter((e) => e.tagName !== "A");
|
|
17050
17085
|
}
|
|
17051
|
-
var
|
|
17086
|
+
var bA = [
|
|
17052
17087
|
"a",
|
|
17053
17088
|
"button",
|
|
17054
17089
|
"div",
|
|
@@ -17067,7 +17102,7 @@ var yA = [
|
|
|
17067
17102
|
"svg",
|
|
17068
17103
|
"ul"
|
|
17069
17104
|
].reduce((e, t) => {
|
|
17070
|
-
let r = /* @__PURE__ */
|
|
17105
|
+
let r = /* @__PURE__ */ Nk(`Primitive.${t}`), i = n.forwardRef((e, n) => {
|
|
17071
17106
|
let { asChild: i, ...a } = e, o = i ? r : t;
|
|
17072
17107
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ y(o, {
|
|
17073
17108
|
...a,
|
|
@@ -17078,26 +17113,26 @@ var yA = [
|
|
|
17078
17113
|
...e,
|
|
17079
17114
|
[t]: i
|
|
17080
17115
|
};
|
|
17081
|
-
}, {}),
|
|
17116
|
+
}, {}), xA = "Portal", SA = n.forwardRef((e, t) => {
|
|
17082
17117
|
let { container: r, ...i } = e, [a, o] = n.useState(!1);
|
|
17083
|
-
|
|
17118
|
+
Tk(() => o(!0), []);
|
|
17084
17119
|
let s = r || a && globalThis?.document?.body;
|
|
17085
|
-
return s ? g.createPortal(/* @__PURE__ */ y(
|
|
17120
|
+
return s ? g.createPortal(/* @__PURE__ */ y(bA.div, {
|
|
17086
17121
|
...i,
|
|
17087
17122
|
ref: t
|
|
17088
17123
|
}), s) : null;
|
|
17089
17124
|
});
|
|
17090
|
-
|
|
17091
|
-
function
|
|
17125
|
+
SA.displayName = xA;
|
|
17126
|
+
function CA(e, t) {
|
|
17092
17127
|
return n.useReducer((e, n) => t[e][n] ?? e, e);
|
|
17093
17128
|
}
|
|
17094
|
-
var
|
|
17095
|
-
let { present: t, children: r } = e, i =
|
|
17129
|
+
var wA = (e) => {
|
|
17130
|
+
let { present: t, children: r } = e, i = TA(t), a = typeof r == "function" ? r({ present: i.isPresent }) : n.Children.only(r), o = xk(i.ref, DA(a));
|
|
17096
17131
|
return typeof r == "function" || i.isPresent ? n.cloneElement(a, { ref: o }) : null;
|
|
17097
17132
|
};
|
|
17098
|
-
|
|
17099
|
-
function
|
|
17100
|
-
let [t, r] = n.useState(), i = n.useRef(null), a = n.useRef(e), o = n.useRef("none"), [s, c] =
|
|
17133
|
+
wA.displayName = "Presence";
|
|
17134
|
+
function TA(e) {
|
|
17135
|
+
let [t, r] = n.useState(), i = n.useRef(null), a = n.useRef(e), o = n.useRef("none"), [s, c] = CA(e ? "mounted" : "unmounted", {
|
|
17101
17136
|
mounted: {
|
|
17102
17137
|
UNMOUNT: "unmounted",
|
|
17103
17138
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -17109,18 +17144,18 @@ function wA(e) {
|
|
|
17109
17144
|
unmounted: { MOUNT: "mounted" }
|
|
17110
17145
|
});
|
|
17111
17146
|
return n.useEffect(() => {
|
|
17112
|
-
let e =
|
|
17147
|
+
let e = EA(i.current);
|
|
17113
17148
|
o.current = s === "mounted" ? e : "none";
|
|
17114
|
-
}, [s]),
|
|
17149
|
+
}, [s]), Tk(() => {
|
|
17115
17150
|
let t = i.current, n = a.current;
|
|
17116
17151
|
if (n !== e) {
|
|
17117
|
-
let r = o.current, i =
|
|
17152
|
+
let r = o.current, i = EA(t);
|
|
17118
17153
|
e ? c("MOUNT") : i === "none" || t?.display === "none" ? c("UNMOUNT") : c(n && r !== i ? "ANIMATION_OUT" : "UNMOUNT"), a.current = e;
|
|
17119
17154
|
}
|
|
17120
|
-
}, [e, c]),
|
|
17155
|
+
}, [e, c]), Tk(() => {
|
|
17121
17156
|
if (t) {
|
|
17122
17157
|
let e, n = t.ownerDocument.defaultView ?? window, r = (r) => {
|
|
17123
|
-
let o =
|
|
17158
|
+
let o = EA(i.current).includes(CSS.escape(r.animationName));
|
|
17124
17159
|
if (r.target === t && o && (c("ANIMATION_END"), !a.current)) {
|
|
17125
17160
|
let r = t.style.animationFillMode;
|
|
17126
17161
|
t.style.animationFillMode = "forwards", e = n.setTimeout(() => {
|
|
@@ -17128,7 +17163,7 @@ function wA(e) {
|
|
|
17128
17163
|
});
|
|
17129
17164
|
}
|
|
17130
17165
|
}, s = (e) => {
|
|
17131
|
-
e.target === t && (o.current =
|
|
17166
|
+
e.target === t && (o.current = EA(i.current));
|
|
17132
17167
|
};
|
|
17133
17168
|
return t.addEventListener("animationstart", s), t.addEventListener("animationcancel", r), t.addEventListener("animationend", r), () => {
|
|
17134
17169
|
n.clearTimeout(e), t.removeEventListener("animationstart", s), t.removeEventListener("animationcancel", r), t.removeEventListener("animationend", r);
|
|
@@ -17142,14 +17177,14 @@ function wA(e) {
|
|
|
17142
17177
|
}, [])
|
|
17143
17178
|
};
|
|
17144
17179
|
}
|
|
17145
|
-
function
|
|
17180
|
+
function EA(e) {
|
|
17146
17181
|
return e?.animationName || "none";
|
|
17147
17182
|
}
|
|
17148
|
-
function
|
|
17183
|
+
function DA(e) {
|
|
17149
17184
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
17150
17185
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
17151
17186
|
}
|
|
17152
|
-
var
|
|
17187
|
+
var OA = [
|
|
17153
17188
|
"a",
|
|
17154
17189
|
"button",
|
|
17155
17190
|
"div",
|
|
@@ -17168,7 +17203,7 @@ var DA = [
|
|
|
17168
17203
|
"svg",
|
|
17169
17204
|
"ul"
|
|
17170
17205
|
].reduce((e, t) => {
|
|
17171
|
-
let r = /* @__PURE__ */
|
|
17206
|
+
let r = /* @__PURE__ */ Nk(`Primitive.${t}`), i = n.forwardRef((e, n) => {
|
|
17172
17207
|
let { asChild: i, ...a } = e, o = i ? r : t;
|
|
17173
17208
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ y(o, {
|
|
17174
17209
|
...a,
|
|
@@ -17179,33 +17214,33 @@ var DA = [
|
|
|
17179
17214
|
...e,
|
|
17180
17215
|
[t]: i
|
|
17181
17216
|
};
|
|
17182
|
-
}, {}),
|
|
17183
|
-
function
|
|
17217
|
+
}, {}), kA = 0;
|
|
17218
|
+
function AA() {
|
|
17184
17219
|
n.useEffect(() => {
|
|
17185
17220
|
let e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
17186
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
17187
|
-
|
|
17221
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? jA()), document.body.insertAdjacentElement("beforeend", e[1] ?? jA()), kA++, () => {
|
|
17222
|
+
kA === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((e) => e.remove()), kA--;
|
|
17188
17223
|
};
|
|
17189
17224
|
}, []);
|
|
17190
17225
|
}
|
|
17191
|
-
function
|
|
17226
|
+
function jA() {
|
|
17192
17227
|
let e = document.createElement("span");
|
|
17193
17228
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
17194
17229
|
}
|
|
17195
|
-
var
|
|
17196
|
-
let { __scopeDialog: t, children: r, open: i, defaultOpen: a, onOpenChange: o, modal: s = !0 } = e, c = n.useRef(null), l = n.useRef(null), [u, d] =
|
|
17230
|
+
var MA = "Dialog", [NA, PA] = Ck(MA), [FA, IA] = NA(MA), LA = (e) => {
|
|
17231
|
+
let { __scopeDialog: t, children: r, open: i, defaultOpen: a, onOpenChange: o, modal: s = !0 } = e, c = n.useRef(null), l = n.useRef(null), [u, d] = Ak({
|
|
17197
17232
|
prop: i,
|
|
17198
17233
|
defaultProp: a ?? !1,
|
|
17199
17234
|
onChange: o,
|
|
17200
|
-
caller:
|
|
17235
|
+
caller: MA
|
|
17201
17236
|
});
|
|
17202
|
-
return /* @__PURE__ */ y(
|
|
17237
|
+
return /* @__PURE__ */ y(FA, {
|
|
17203
17238
|
scope: t,
|
|
17204
17239
|
triggerRef: c,
|
|
17205
17240
|
contentRef: l,
|
|
17206
|
-
contentId:
|
|
17207
|
-
titleId:
|
|
17208
|
-
descriptionId:
|
|
17241
|
+
contentId: Ok(),
|
|
17242
|
+
titleId: Ok(),
|
|
17243
|
+
descriptionId: Ok(),
|
|
17209
17244
|
open: u,
|
|
17210
17245
|
onOpenChange: d,
|
|
17211
17246
|
onOpenToggle: n.useCallback(() => d((e) => !e), [d]),
|
|
@@ -17213,29 +17248,29 @@ var jA = "Dialog", [MA, NA] = Sk(jA), [PA, FA] = MA(jA), IA = (e) => {
|
|
|
17213
17248
|
children: r
|
|
17214
17249
|
});
|
|
17215
17250
|
};
|
|
17216
|
-
|
|
17217
|
-
var
|
|
17218
|
-
let { __scopeDialog: n, ...r } = e, i =
|
|
17219
|
-
return /* @__PURE__ */ y(
|
|
17251
|
+
LA.displayName = MA;
|
|
17252
|
+
var RA = "DialogTrigger", zA = n.forwardRef((e, t) => {
|
|
17253
|
+
let { __scopeDialog: n, ...r } = e, i = IA(RA, n), a = xk(t, i.triggerRef);
|
|
17254
|
+
return /* @__PURE__ */ y(OA.button, {
|
|
17220
17255
|
type: "button",
|
|
17221
17256
|
"aria-haspopup": "dialog",
|
|
17222
17257
|
"aria-expanded": i.open,
|
|
17223
17258
|
"aria-controls": i.contentId,
|
|
17224
|
-
"data-state":
|
|
17259
|
+
"data-state": aj(i.open),
|
|
17225
17260
|
...r,
|
|
17226
17261
|
ref: a,
|
|
17227
|
-
onClick:
|
|
17262
|
+
onClick: vk(e.onClick, i.onOpenToggle)
|
|
17228
17263
|
});
|
|
17229
17264
|
});
|
|
17230
|
-
|
|
17231
|
-
var
|
|
17232
|
-
let { __scopeDialog: t, forceMount: r, children: i, container: a } = e, o =
|
|
17233
|
-
return /* @__PURE__ */ y(
|
|
17265
|
+
zA.displayName = RA;
|
|
17266
|
+
var BA = "DialogPortal", [VA, HA] = NA(BA, { forceMount: void 0 }), UA = (e) => {
|
|
17267
|
+
let { __scopeDialog: t, forceMount: r, children: i, container: a } = e, o = IA(BA, t);
|
|
17268
|
+
return /* @__PURE__ */ y(VA, {
|
|
17234
17269
|
scope: t,
|
|
17235
17270
|
forceMount: r,
|
|
17236
|
-
children: n.Children.map(i, (e) => /* @__PURE__ */ y(
|
|
17271
|
+
children: n.Children.map(i, (e) => /* @__PURE__ */ y(wA, {
|
|
17237
17272
|
present: r || o.open,
|
|
17238
|
-
children: /* @__PURE__ */ y(
|
|
17273
|
+
children: /* @__PURE__ */ y(SA, {
|
|
17239
17274
|
asChild: !0,
|
|
17240
17275
|
container: a,
|
|
17241
17276
|
children: e
|
|
@@ -17243,26 +17278,26 @@ var zA = "DialogPortal", [BA, VA] = MA(zA, { forceMount: void 0 }), HA = (e) =>
|
|
|
17243
17278
|
}))
|
|
17244
17279
|
});
|
|
17245
17280
|
};
|
|
17246
|
-
|
|
17247
|
-
var
|
|
17248
|
-
let n =
|
|
17249
|
-
return a.modal ? /* @__PURE__ */ y(
|
|
17281
|
+
UA.displayName = BA;
|
|
17282
|
+
var WA = "DialogOverlay", GA = n.forwardRef((e, t) => {
|
|
17283
|
+
let n = HA(WA, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = IA(WA, e.__scopeDialog);
|
|
17284
|
+
return a.modal ? /* @__PURE__ */ y(wA, {
|
|
17250
17285
|
present: r || a.open,
|
|
17251
|
-
children: /* @__PURE__ */ y(
|
|
17286
|
+
children: /* @__PURE__ */ y(qA, {
|
|
17252
17287
|
...i,
|
|
17253
17288
|
ref: t
|
|
17254
17289
|
})
|
|
17255
17290
|
}) : null;
|
|
17256
17291
|
});
|
|
17257
|
-
|
|
17258
|
-
var
|
|
17259
|
-
let { __scopeDialog: n, ...r } = e, i =
|
|
17292
|
+
GA.displayName = WA;
|
|
17293
|
+
var KA = /* @__PURE__ */ Nk("DialogOverlay.RemoveScroll"), qA = n.forwardRef((e, t) => {
|
|
17294
|
+
let { __scopeDialog: n, ...r } = e, i = IA(WA, n);
|
|
17260
17295
|
return /* @__PURE__ */ y(ta, {
|
|
17261
|
-
as:
|
|
17296
|
+
as: KA,
|
|
17262
17297
|
allowPinchZoom: !0,
|
|
17263
17298
|
shards: [i.contentRef],
|
|
17264
|
-
children: /* @__PURE__ */ y(
|
|
17265
|
-
"data-state":
|
|
17299
|
+
children: /* @__PURE__ */ y(OA.div, {
|
|
17300
|
+
"data-state": aj(i.open),
|
|
17266
17301
|
...r,
|
|
17267
17302
|
ref: t,
|
|
17268
17303
|
style: {
|
|
@@ -17271,42 +17306,42 @@ var GA = /* @__PURE__ */ Mk("DialogOverlay.RemoveScroll"), KA = n.forwardRef((e,
|
|
|
17271
17306
|
}
|
|
17272
17307
|
})
|
|
17273
17308
|
});
|
|
17274
|
-
}),
|
|
17275
|
-
let n =
|
|
17276
|
-
return /* @__PURE__ */ y(
|
|
17309
|
+
}), JA = "DialogContent", YA = n.forwardRef((e, t) => {
|
|
17310
|
+
let n = HA(JA, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = IA(JA, e.__scopeDialog);
|
|
17311
|
+
return /* @__PURE__ */ y(wA, {
|
|
17277
17312
|
present: r || a.open,
|
|
17278
|
-
children: a.modal ? /* @__PURE__ */ y(
|
|
17313
|
+
children: a.modal ? /* @__PURE__ */ y(XA, {
|
|
17279
17314
|
...i,
|
|
17280
17315
|
ref: t
|
|
17281
|
-
}) : /* @__PURE__ */ y(
|
|
17316
|
+
}) : /* @__PURE__ */ y(ZA, {
|
|
17282
17317
|
...i,
|
|
17283
17318
|
ref: t
|
|
17284
17319
|
})
|
|
17285
17320
|
});
|
|
17286
17321
|
});
|
|
17287
|
-
|
|
17288
|
-
var
|
|
17289
|
-
let r =
|
|
17322
|
+
YA.displayName = JA;
|
|
17323
|
+
var XA = n.forwardRef((e, t) => {
|
|
17324
|
+
let r = IA(JA, e.__scopeDialog), i = n.useRef(null), a = xk(t, r.contentRef, i);
|
|
17290
17325
|
return n.useEffect(() => {
|
|
17291
17326
|
let e = i.current;
|
|
17292
17327
|
if (e) return ua(e);
|
|
17293
|
-
}, []), /* @__PURE__ */ y(
|
|
17328
|
+
}, []), /* @__PURE__ */ y(QA, {
|
|
17294
17329
|
...e,
|
|
17295
17330
|
ref: a,
|
|
17296
17331
|
trapFocus: r.open,
|
|
17297
17332
|
disableOutsidePointerEvents: !0,
|
|
17298
|
-
onCloseAutoFocus:
|
|
17333
|
+
onCloseAutoFocus: vk(e.onCloseAutoFocus, (e) => {
|
|
17299
17334
|
e.preventDefault(), r.triggerRef.current?.focus();
|
|
17300
17335
|
}),
|
|
17301
|
-
onPointerDownOutside:
|
|
17336
|
+
onPointerDownOutside: vk(e.onPointerDownOutside, (e) => {
|
|
17302
17337
|
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
|
|
17303
17338
|
(t.button === 2 || n) && e.preventDefault();
|
|
17304
17339
|
}),
|
|
17305
|
-
onFocusOutside:
|
|
17340
|
+
onFocusOutside: vk(e.onFocusOutside, (e) => e.preventDefault())
|
|
17306
17341
|
});
|
|
17307
|
-
}),
|
|
17308
|
-
let r =
|
|
17309
|
-
return /* @__PURE__ */ y(
|
|
17342
|
+
}), ZA = n.forwardRef((e, t) => {
|
|
17343
|
+
let r = IA(JA, e.__scopeDialog), i = n.useRef(!1), a = n.useRef(!1);
|
|
17344
|
+
return /* @__PURE__ */ y(QA, {
|
|
17310
17345
|
...e,
|
|
17311
17346
|
ref: t,
|
|
17312
17347
|
trapFocus: !1,
|
|
@@ -17320,65 +17355,65 @@ var YA = n.forwardRef((e, t) => {
|
|
|
17320
17355
|
r.triggerRef.current?.contains(n) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && a.current && t.preventDefault();
|
|
17321
17356
|
}
|
|
17322
17357
|
});
|
|
17323
|
-
}),
|
|
17324
|
-
let { __scopeDialog: r, trapFocus: i, onOpenAutoFocus: a, onCloseAutoFocus: o, ...s } = e, c =
|
|
17325
|
-
return
|
|
17358
|
+
}), QA = n.forwardRef((e, t) => {
|
|
17359
|
+
let { __scopeDialog: r, trapFocus: i, onOpenAutoFocus: a, onCloseAutoFocus: o, ...s } = e, c = IA(JA, r), l = n.useRef(null), u = xk(t, l);
|
|
17360
|
+
return AA(), /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(cA, {
|
|
17326
17361
|
asChild: !0,
|
|
17327
17362
|
loop: !0,
|
|
17328
17363
|
trapped: i,
|
|
17329
17364
|
onMountAutoFocus: a,
|
|
17330
17365
|
onUnmountAutoFocus: o,
|
|
17331
|
-
children: /* @__PURE__ */ y(
|
|
17366
|
+
children: /* @__PURE__ */ y(Xk, {
|
|
17332
17367
|
role: "dialog",
|
|
17333
17368
|
id: c.contentId,
|
|
17334
17369
|
"aria-describedby": c.descriptionId,
|
|
17335
17370
|
"aria-labelledby": c.titleId,
|
|
17336
|
-
"data-state":
|
|
17371
|
+
"data-state": aj(c.open),
|
|
17337
17372
|
...s,
|
|
17338
17373
|
ref: u,
|
|
17339
17374
|
onDismiss: () => c.onOpenChange(!1)
|
|
17340
17375
|
})
|
|
17341
|
-
}), /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(
|
|
17376
|
+
}), /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(lj, { titleId: c.titleId }), /* @__PURE__ */ y(dj, {
|
|
17342
17377
|
contentRef: l,
|
|
17343
17378
|
descriptionId: c.descriptionId
|
|
17344
17379
|
})] })] });
|
|
17345
|
-
}),
|
|
17346
|
-
let { __scopeDialog: n, ...r } = e, i =
|
|
17347
|
-
return /* @__PURE__ */ y(
|
|
17380
|
+
}), $A = "DialogTitle", ej = n.forwardRef((e, t) => {
|
|
17381
|
+
let { __scopeDialog: n, ...r } = e, i = IA($A, n);
|
|
17382
|
+
return /* @__PURE__ */ y(OA.h2, {
|
|
17348
17383
|
id: i.titleId,
|
|
17349
17384
|
...r,
|
|
17350
17385
|
ref: t
|
|
17351
17386
|
});
|
|
17352
17387
|
});
|
|
17353
|
-
|
|
17354
|
-
var
|
|
17355
|
-
let { __scopeDialog: n, ...r } = e, i =
|
|
17356
|
-
return /* @__PURE__ */ y(
|
|
17388
|
+
ej.displayName = $A;
|
|
17389
|
+
var tj = "DialogDescription", nj = n.forwardRef((e, t) => {
|
|
17390
|
+
let { __scopeDialog: n, ...r } = e, i = IA(tj, n);
|
|
17391
|
+
return /* @__PURE__ */ y(OA.p, {
|
|
17357
17392
|
id: i.descriptionId,
|
|
17358
17393
|
...r,
|
|
17359
17394
|
ref: t
|
|
17360
17395
|
});
|
|
17361
17396
|
});
|
|
17362
|
-
|
|
17363
|
-
var
|
|
17364
|
-
let { __scopeDialog: n, ...r } = e, i =
|
|
17365
|
-
return /* @__PURE__ */ y(
|
|
17397
|
+
nj.displayName = tj;
|
|
17398
|
+
var rj = "DialogClose", ij = n.forwardRef((e, t) => {
|
|
17399
|
+
let { __scopeDialog: n, ...r } = e, i = IA(rj, n);
|
|
17400
|
+
return /* @__PURE__ */ y(OA.button, {
|
|
17366
17401
|
type: "button",
|
|
17367
17402
|
...r,
|
|
17368
17403
|
ref: t,
|
|
17369
|
-
onClick:
|
|
17404
|
+
onClick: vk(e.onClick, () => i.onOpenChange(!1))
|
|
17370
17405
|
});
|
|
17371
17406
|
});
|
|
17372
|
-
|
|
17373
|
-
function
|
|
17407
|
+
ij.displayName = rj;
|
|
17408
|
+
function aj(e) {
|
|
17374
17409
|
return e ? "open" : "closed";
|
|
17375
17410
|
}
|
|
17376
|
-
var
|
|
17377
|
-
contentName:
|
|
17378
|
-
titleName:
|
|
17411
|
+
var oj = "DialogTitleWarning", [sj, cj] = Sk(oj, {
|
|
17412
|
+
contentName: JA,
|
|
17413
|
+
titleName: $A,
|
|
17379
17414
|
docsSlug: "dialog"
|
|
17380
|
-
}),
|
|
17381
|
-
let t =
|
|
17415
|
+
}), lj = ({ titleId: e }) => {
|
|
17416
|
+
let t = cj(oj), r = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
17382
17417
|
|
|
17383
17418
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
17384
17419
|
|
|
@@ -17386,8 +17421,8 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
17386
17421
|
return n.useEffect(() => {
|
|
17387
17422
|
e && (document.getElementById(e) || console.error(r));
|
|
17388
17423
|
}, [r, e]), null;
|
|
17389
|
-
},
|
|
17390
|
-
let r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${
|
|
17424
|
+
}, uj = "DialogDescriptionWarning", dj = ({ contentRef: e, descriptionId: t }) => {
|
|
17425
|
+
let r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${cj(uj).contentName}}.`;
|
|
17391
17426
|
return n.useEffect(() => {
|
|
17392
17427
|
let n = e.current?.getAttribute("aria-describedby");
|
|
17393
17428
|
t && n && (document.getElementById(t) || console.warn(r));
|
|
@@ -17396,19 +17431,19 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
17396
17431
|
e,
|
|
17397
17432
|
t
|
|
17398
17433
|
]), null;
|
|
17399
|
-
},
|
|
17400
|
-
function
|
|
17434
|
+
}, fj = LA, pj = UA, mj = GA, hj = YA, gj = Symbol.for("react.lazy"), _j = n.use;
|
|
17435
|
+
function vj(e) {
|
|
17401
17436
|
return typeof e == "object" && !!e && "then" in e;
|
|
17402
17437
|
}
|
|
17403
|
-
function
|
|
17404
|
-
return typeof e == "object" && !!e && "$$typeof" in e && e.$$typeof ===
|
|
17438
|
+
function yj(e) {
|
|
17439
|
+
return typeof e == "object" && !!e && "$$typeof" in e && e.$$typeof === gj && "_payload" in e && vj(e._payload);
|
|
17405
17440
|
}
|
|
17406
17441
|
// @__NO_SIDE_EFFECTS__
|
|
17407
|
-
function
|
|
17408
|
-
let t = /* @__PURE__ */
|
|
17442
|
+
function bj(e) {
|
|
17443
|
+
let t = /* @__PURE__ */ xj(e), r = n.forwardRef((e, r) => {
|
|
17409
17444
|
let { children: i, ...a } = e;
|
|
17410
|
-
|
|
17411
|
-
let o = n.Children.toArray(i), s = o.find(
|
|
17445
|
+
yj(i) && typeof _j == "function" && (i = _j(i._payload));
|
|
17446
|
+
let o = n.Children.toArray(i), s = o.find(Cj);
|
|
17412
17447
|
if (s) {
|
|
17413
17448
|
let e = s.props.children, i = o.map((t) => t === s ? n.Children.count(e) > 1 ? n.Children.only(null) : n.isValidElement(e) ? e.props.children : null : t);
|
|
17414
17449
|
return /* @__PURE__ */ y(t, {
|
|
@@ -17426,22 +17461,22 @@ function yj(e) {
|
|
|
17426
17461
|
return r.displayName = `${e}.Slot`, r;
|
|
17427
17462
|
}
|
|
17428
17463
|
// @__NO_SIDE_EFFECTS__
|
|
17429
|
-
function
|
|
17464
|
+
function xj(e) {
|
|
17430
17465
|
let t = n.forwardRef((e, t) => {
|
|
17431
17466
|
let { children: r, ...i } = e;
|
|
17432
|
-
if (
|
|
17433
|
-
let e =
|
|
17434
|
-
return r.type !== n.Fragment && (a.ref = t ?
|
|
17467
|
+
if (yj(r) && typeof _j == "function" && (r = _j(r._payload)), n.isValidElement(r)) {
|
|
17468
|
+
let e = Tj(r), a = wj(i, r.props);
|
|
17469
|
+
return r.type !== n.Fragment && (a.ref = t ? bk(t, e) : e), n.cloneElement(r, a);
|
|
17435
17470
|
}
|
|
17436
17471
|
return n.Children.count(r) > 1 ? n.Children.only(null) : null;
|
|
17437
17472
|
});
|
|
17438
17473
|
return t.displayName = `${e}.SlotClone`, t;
|
|
17439
17474
|
}
|
|
17440
|
-
var
|
|
17441
|
-
function
|
|
17442
|
-
return n.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
17475
|
+
var Sj = Symbol("radix.slottable");
|
|
17476
|
+
function Cj(e) {
|
|
17477
|
+
return n.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Sj;
|
|
17443
17478
|
}
|
|
17444
|
-
function
|
|
17479
|
+
function wj(e, t) {
|
|
17445
17480
|
let n = { ...t };
|
|
17446
17481
|
for (let r in t) {
|
|
17447
17482
|
let i = e[r], a = t[r];
|
|
@@ -17458,11 +17493,11 @@ function Cj(e, t) {
|
|
|
17458
17493
|
...n
|
|
17459
17494
|
};
|
|
17460
17495
|
}
|
|
17461
|
-
function
|
|
17496
|
+
function Tj(e) {
|
|
17462
17497
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
17463
17498
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
17464
17499
|
}
|
|
17465
|
-
var
|
|
17500
|
+
var Ej = [
|
|
17466
17501
|
"a",
|
|
17467
17502
|
"button",
|
|
17468
17503
|
"div",
|
|
@@ -17481,7 +17516,7 @@ var Tj = [
|
|
|
17481
17516
|
"svg",
|
|
17482
17517
|
"ul"
|
|
17483
17518
|
].reduce((e, t) => {
|
|
17484
|
-
let r = /* @__PURE__ */
|
|
17519
|
+
let r = /* @__PURE__ */ bj(`Primitive.${t}`), i = n.forwardRef((e, n) => {
|
|
17485
17520
|
let { asChild: i, ...a } = e, o = i ? r : t;
|
|
17486
17521
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ y(o, {
|
|
17487
17522
|
...a,
|
|
@@ -17492,8 +17527,8 @@ var Tj = [
|
|
|
17492
17527
|
...e,
|
|
17493
17528
|
[t]: i
|
|
17494
17529
|
};
|
|
17495
|
-
}, {}),
|
|
17496
|
-
let r =
|
|
17530
|
+
}, {}), Dj = "[cmdk-group=\"\"]", Oj = "[cmdk-group-items=\"\"]", kj = "[cmdk-group-heading=\"\"]", Aj = "[cmdk-item=\"\"]", jj = `${Aj}:not([aria-disabled="true"])`, Mj = "cmdk-item-select", Nj = "data-value", Pj = (e, t, n) => _k(e, t, n), Fj = n.createContext(void 0), Ij = () => n.useContext(Fj), Lj = n.createContext(void 0), Rj = () => n.useContext(Lj), zj = n.createContext(void 0), Bj = n.forwardRef((e, t) => {
|
|
17531
|
+
let r = eM(() => ({
|
|
17497
17532
|
search: "",
|
|
17498
17533
|
value: e.value ?? e.defaultValue ?? "",
|
|
17499
17534
|
selectedItemId: void 0,
|
|
@@ -17502,13 +17537,13 @@ var Tj = [
|
|
|
17502
17537
|
items: /* @__PURE__ */ new Map(),
|
|
17503
17538
|
groups: /* @__PURE__ */ new Set()
|
|
17504
17539
|
}
|
|
17505
|
-
})), i =
|
|
17506
|
-
|
|
17540
|
+
})), i = eM(() => /* @__PURE__ */ new Set()), a = eM(() => /* @__PURE__ */ new Map()), o = eM(() => /* @__PURE__ */ new Map()), s = eM(() => /* @__PURE__ */ new Set()), c = Qj(e), { label: l, children: u, value: d, onValueChange: f, filter: p, shouldFilter: m, loop: h, disablePointerSelection: g = !1, vimBindings: _ = !0, ...v } = e, y = Ok(), b = Ok(), x = Ok(), S = n.useRef(null), C = rM();
|
|
17541
|
+
$j(() => {
|
|
17507
17542
|
if (d !== void 0) {
|
|
17508
17543
|
let e = d.trim();
|
|
17509
17544
|
r.current.value = e, w.emit();
|
|
17510
17545
|
}
|
|
17511
|
-
}, [d]),
|
|
17546
|
+
}, [d]), $j(() => {
|
|
17512
17547
|
C(6, O);
|
|
17513
17548
|
}, []);
|
|
17514
17549
|
let w = n.useMemo(() => ({
|
|
@@ -17567,7 +17602,7 @@ var Tj = [
|
|
|
17567
17602
|
listInnerRef: S
|
|
17568
17603
|
}), []);
|
|
17569
17604
|
function E(e, t) {
|
|
17570
|
-
let n = c.current?.filter ??
|
|
17605
|
+
let n = c.current?.filter ?? Pj;
|
|
17571
17606
|
return e ? n(e, r.current.search, t) : 0;
|
|
17572
17607
|
}
|
|
17573
17608
|
function ee() {
|
|
@@ -17585,15 +17620,15 @@ var Tj = [
|
|
|
17585
17620
|
let r = t.getAttribute("id"), i = n.getAttribute("id");
|
|
17586
17621
|
return (e.get(i) ?? 0) - (e.get(r) ?? 0);
|
|
17587
17622
|
}).forEach((e) => {
|
|
17588
|
-
let t = e.closest(
|
|
17589
|
-
t ? t.appendChild(e.parentElement === t ? e : e.closest(`${
|
|
17623
|
+
let t = e.closest(Oj);
|
|
17624
|
+
t ? t.appendChild(e.parentElement === t ? e : e.closest(`${Oj} > *`)) : n.appendChild(e.parentElement === n ? e : e.closest(`${Oj} > *`));
|
|
17590
17625
|
}), t.sort((e, t) => t[1] - e[1]).forEach((e) => {
|
|
17591
|
-
let t = S.current?.querySelector(`${
|
|
17626
|
+
let t = S.current?.querySelector(`${Dj}[${Nj}="${encodeURIComponent(e[0])}"]`);
|
|
17592
17627
|
t?.parentElement.appendChild(t);
|
|
17593
17628
|
});
|
|
17594
17629
|
}
|
|
17595
17630
|
function D() {
|
|
17596
|
-
let e = A().find((e) => e.getAttribute("aria-disabled") !== "true")?.getAttribute(
|
|
17631
|
+
let e = A().find((e) => e.getAttribute("aria-disabled") !== "true")?.getAttribute(Nj);
|
|
17597
17632
|
w.setState("value", e || void 0);
|
|
17598
17633
|
}
|
|
17599
17634
|
function te() {
|
|
@@ -17616,34 +17651,34 @@ var Tj = [
|
|
|
17616
17651
|
function O() {
|
|
17617
17652
|
var e;
|
|
17618
17653
|
let t = k();
|
|
17619
|
-
t && (t.parentElement?.firstChild === t && ((e = t.closest(
|
|
17654
|
+
t && (t.parentElement?.firstChild === t && ((e = t.closest(Dj)?.querySelector(kj)) == null || e.scrollIntoView({ block: "nearest" })), t.scrollIntoView({ block: "nearest" }));
|
|
17620
17655
|
}
|
|
17621
17656
|
function k() {
|
|
17622
|
-
return S.current?.querySelector(`${
|
|
17657
|
+
return S.current?.querySelector(`${Aj}[aria-selected="true"]`);
|
|
17623
17658
|
}
|
|
17624
17659
|
function A() {
|
|
17625
|
-
return Array.from(S.current?.querySelectorAll(
|
|
17660
|
+
return Array.from(S.current?.querySelectorAll(jj) || []);
|
|
17626
17661
|
}
|
|
17627
17662
|
function j(e) {
|
|
17628
17663
|
let t = A()[e];
|
|
17629
|
-
t && w.setState("value", t.getAttribute(
|
|
17664
|
+
t && w.setState("value", t.getAttribute(Nj));
|
|
17630
17665
|
}
|
|
17631
17666
|
function M(e) {
|
|
17632
17667
|
var t;
|
|
17633
17668
|
let n = k(), r = A(), i = r.findIndex((e) => e === n), a = r[i + e];
|
|
17634
|
-
(t = c.current) != null && t.loop && (a = i + e < 0 ? r[r.length - 1] : i + e === r.length ? r[0] : r[i + e]), a && w.setState("value", a.getAttribute(
|
|
17669
|
+
(t = c.current) != null && t.loop && (a = i + e < 0 ? r[r.length - 1] : i + e === r.length ? r[0] : r[i + e]), a && w.setState("value", a.getAttribute(Nj));
|
|
17635
17670
|
}
|
|
17636
17671
|
function ne(e) {
|
|
17637
|
-
let t = k()?.closest(
|
|
17638
|
-
for (; t && !n;) t = e > 0 ?
|
|
17639
|
-
n ? w.setState("value", n.getAttribute(
|
|
17672
|
+
let t = k()?.closest(Dj), n;
|
|
17673
|
+
for (; t && !n;) t = e > 0 ? Xj(t, Dj) : Zj(t, Dj), n = t?.querySelector(jj);
|
|
17674
|
+
n ? w.setState("value", n.getAttribute(Nj)) : M(e);
|
|
17640
17675
|
}
|
|
17641
17676
|
let N = () => j(A().length - 1), re = (e) => {
|
|
17642
17677
|
e.preventDefault(), e.metaKey ? N() : e.altKey ? ne(1) : M(1);
|
|
17643
17678
|
}, ie = (e) => {
|
|
17644
17679
|
e.preventDefault(), e.metaKey ? j(0) : e.altKey ? ne(-1) : M(-1);
|
|
17645
17680
|
};
|
|
17646
|
-
return n.createElement(
|
|
17681
|
+
return n.createElement(Ej.div, {
|
|
17647
17682
|
ref: t,
|
|
17648
17683
|
tabIndex: -1,
|
|
17649
17684
|
...v,
|
|
@@ -17677,7 +17712,7 @@ var Tj = [
|
|
|
17677
17712
|
e.preventDefault();
|
|
17678
17713
|
let t = k();
|
|
17679
17714
|
if (t) {
|
|
17680
|
-
let e = new Event(
|
|
17715
|
+
let e = new Event(Mj);
|
|
17681
17716
|
t.dispatchEvent(e);
|
|
17682
17717
|
}
|
|
17683
17718
|
}
|
|
@@ -17687,21 +17722,21 @@ var Tj = [
|
|
|
17687
17722
|
"cmdk-label": "",
|
|
17688
17723
|
htmlFor: T.inputId,
|
|
17689
17724
|
id: T.labelId,
|
|
17690
|
-
style:
|
|
17691
|
-
}, l),
|
|
17692
|
-
}),
|
|
17693
|
-
let r =
|
|
17694
|
-
|
|
17725
|
+
style: oM
|
|
17726
|
+
}, l), aM(e, (e) => n.createElement(Lj.Provider, { value: w }, n.createElement(Fj.Provider, { value: T }, e))));
|
|
17727
|
+
}), Vj = n.forwardRef((e, t) => {
|
|
17728
|
+
let r = Ok(), i = n.useRef(null), a = n.useContext(zj), o = Ij(), s = Qj(e), c = s.current?.forceMount ?? a?.forceMount;
|
|
17729
|
+
$j(() => {
|
|
17695
17730
|
if (!c) return o.item(r, a?.id);
|
|
17696
17731
|
}, [c]);
|
|
17697
|
-
let l =
|
|
17732
|
+
let l = nM(r, i, [
|
|
17698
17733
|
e.value,
|
|
17699
17734
|
e.children,
|
|
17700
17735
|
i
|
|
17701
|
-
], e.keywords), u =
|
|
17736
|
+
], e.keywords), u = Rj(), d = tM((e) => e.value && e.value === l.current), f = tM((e) => c || o.filter() === !1 ? !0 : !e.search || e.filtered.items.get(r) > 0);
|
|
17702
17737
|
n.useEffect(() => {
|
|
17703
17738
|
let t = i.current;
|
|
17704
|
-
if (t && !e.disabled) return t.addEventListener(
|
|
17739
|
+
if (t && !e.disabled) return t.addEventListener(Mj, p), () => t.removeEventListener(Mj, p);
|
|
17705
17740
|
}, [
|
|
17706
17741
|
f,
|
|
17707
17742
|
e.onSelect,
|
|
@@ -17716,8 +17751,8 @@ var Tj = [
|
|
|
17716
17751
|
}
|
|
17717
17752
|
if (!f) return null;
|
|
17718
17753
|
let { disabled: h, value: g, onSelect: _, forceMount: v, keywords: y, ...b } = e;
|
|
17719
|
-
return n.createElement(
|
|
17720
|
-
ref:
|
|
17754
|
+
return n.createElement(Ej.div, {
|
|
17755
|
+
ref: bk(i, t),
|
|
17721
17756
|
...b,
|
|
17722
17757
|
id: r,
|
|
17723
17758
|
"cmdk-item": "",
|
|
@@ -17729,9 +17764,9 @@ var Tj = [
|
|
|
17729
17764
|
onPointerMove: h || o.getDisablePointerSelection() ? void 0 : m,
|
|
17730
17765
|
onClick: h ? void 0 : p
|
|
17731
17766
|
}, e.children);
|
|
17732
|
-
}),
|
|
17733
|
-
let { heading: r, children: i, forceMount: a, ...o } = e, s =
|
|
17734
|
-
|
|
17767
|
+
}), Hj = n.forwardRef((e, t) => {
|
|
17768
|
+
let { heading: r, children: i, forceMount: a, ...o } = e, s = Ok(), c = n.useRef(null), l = n.useRef(null), u = Ok(), d = Ij(), f = tM((e) => a || d.filter() === !1 ? !0 : !e.search || e.filtered.groups.has(s));
|
|
17769
|
+
$j(() => d.group(s), []), nM(s, c, [
|
|
17735
17770
|
e.value,
|
|
17736
17771
|
e.heading,
|
|
17737
17772
|
l
|
|
@@ -17740,8 +17775,8 @@ var Tj = [
|
|
|
17740
17775
|
id: s,
|
|
17741
17776
|
forceMount: a
|
|
17742
17777
|
}), [a]);
|
|
17743
|
-
return n.createElement(
|
|
17744
|
-
ref:
|
|
17778
|
+
return n.createElement(Ej.div, {
|
|
17779
|
+
ref: bk(c, t),
|
|
17745
17780
|
...o,
|
|
17746
17781
|
"cmdk-group": "",
|
|
17747
17782
|
role: "presentation",
|
|
@@ -17751,24 +17786,24 @@ var Tj = [
|
|
|
17751
17786
|
"cmdk-group-heading": "",
|
|
17752
17787
|
"aria-hidden": !0,
|
|
17753
17788
|
id: u
|
|
17754
|
-
}, r),
|
|
17789
|
+
}, r), aM(e, (e) => n.createElement("div", {
|
|
17755
17790
|
"cmdk-group-items": "",
|
|
17756
17791
|
role: "group",
|
|
17757
17792
|
"aria-labelledby": r ? u : void 0
|
|
17758
|
-
}, n.createElement(
|
|
17759
|
-
}),
|
|
17760
|
-
let { alwaysRender: r, ...i } = e, a = n.useRef(null), o =
|
|
17761
|
-
return !r && !o ? null : n.createElement(
|
|
17762
|
-
ref:
|
|
17793
|
+
}, n.createElement(zj.Provider, { value: p }, e))));
|
|
17794
|
+
}), Uj = n.forwardRef((e, t) => {
|
|
17795
|
+
let { alwaysRender: r, ...i } = e, a = n.useRef(null), o = tM((e) => !e.search);
|
|
17796
|
+
return !r && !o ? null : n.createElement(Ej.div, {
|
|
17797
|
+
ref: bk(a, t),
|
|
17763
17798
|
...i,
|
|
17764
17799
|
"cmdk-separator": "",
|
|
17765
17800
|
role: "separator"
|
|
17766
17801
|
});
|
|
17767
|
-
}),
|
|
17768
|
-
let { onValueChange: r, ...i } = e, a = e.value != null, o =
|
|
17802
|
+
}), Wj = n.forwardRef((e, t) => {
|
|
17803
|
+
let { onValueChange: r, ...i } = e, a = e.value != null, o = Rj(), s = tM((e) => e.search), c = tM((e) => e.selectedItemId), l = Ij();
|
|
17769
17804
|
return n.useEffect(() => {
|
|
17770
17805
|
e.value != null && o.setState("search", e.value);
|
|
17771
|
-
}, [e.value]), n.createElement(
|
|
17806
|
+
}, [e.value]), n.createElement(Ej.input, {
|
|
17772
17807
|
ref: t,
|
|
17773
17808
|
...i,
|
|
17774
17809
|
"cmdk-input": "",
|
|
@@ -17788,8 +17823,8 @@ var Tj = [
|
|
|
17788
17823
|
a || o.setState("search", e.target.value), r?.(e.target.value);
|
|
17789
17824
|
}
|
|
17790
17825
|
});
|
|
17791
|
-
}),
|
|
17792
|
-
let { children: r, label: i = "Suggestions", ...a } = e, o = n.useRef(null), s = n.useRef(null), c =
|
|
17826
|
+
}), Gj = n.forwardRef((e, t) => {
|
|
17827
|
+
let { children: r, label: i = "Suggestions", ...a } = e, o = n.useRef(null), s = n.useRef(null), c = tM((e) => e.selectedItemId), l = Ij();
|
|
17793
17828
|
return n.useEffect(() => {
|
|
17794
17829
|
if (s.current && o.current) {
|
|
17795
17830
|
let e = s.current, t = o.current, n, r = new ResizeObserver(() => {
|
|
@@ -17802,8 +17837,8 @@ var Tj = [
|
|
|
17802
17837
|
cancelAnimationFrame(n), r.unobserve(e);
|
|
17803
17838
|
};
|
|
17804
17839
|
}
|
|
17805
|
-
}, []), n.createElement(
|
|
17806
|
-
ref:
|
|
17840
|
+
}, []), n.createElement(Ej.div, {
|
|
17841
|
+
ref: bk(o, t),
|
|
17807
17842
|
...a,
|
|
17808
17843
|
"cmdk-list": "",
|
|
17809
17844
|
role: "listbox",
|
|
@@ -17811,34 +17846,34 @@ var Tj = [
|
|
|
17811
17846
|
"aria-activedescendant": c,
|
|
17812
17847
|
"aria-label": i,
|
|
17813
17848
|
id: l.listId
|
|
17814
|
-
},
|
|
17815
|
-
ref:
|
|
17849
|
+
}, aM(e, (e) => n.createElement("div", {
|
|
17850
|
+
ref: bk(s, l.listInnerRef),
|
|
17816
17851
|
"cmdk-list-sizer": ""
|
|
17817
17852
|
}, e)));
|
|
17818
|
-
}),
|
|
17853
|
+
}), Kj = n.forwardRef((e, t) => {
|
|
17819
17854
|
let { open: r, onOpenChange: i, overlayClassName: a, contentClassName: o, container: s, ...c } = e;
|
|
17820
|
-
return n.createElement(
|
|
17855
|
+
return n.createElement(fj, {
|
|
17821
17856
|
open: r,
|
|
17822
17857
|
onOpenChange: i
|
|
17823
|
-
}, n.createElement(
|
|
17858
|
+
}, n.createElement(pj, { container: s }, n.createElement(mj, {
|
|
17824
17859
|
"cmdk-overlay": "",
|
|
17825
17860
|
className: a
|
|
17826
|
-
}), n.createElement(
|
|
17861
|
+
}), n.createElement(hj, {
|
|
17827
17862
|
"aria-label": e.label,
|
|
17828
17863
|
"cmdk-dialog": "",
|
|
17829
17864
|
className: o
|
|
17830
|
-
}, n.createElement(
|
|
17865
|
+
}, n.createElement(Bj, {
|
|
17831
17866
|
ref: t,
|
|
17832
17867
|
...c
|
|
17833
17868
|
}))));
|
|
17834
|
-
}),
|
|
17869
|
+
}), qj = n.forwardRef((e, t) => tM((e) => e.filtered.count === 0) ? n.createElement(Ej.div, {
|
|
17835
17870
|
ref: t,
|
|
17836
17871
|
...e,
|
|
17837
17872
|
"cmdk-empty": "",
|
|
17838
17873
|
role: "presentation"
|
|
17839
|
-
}) : null),
|
|
17874
|
+
}) : null), Jj = n.forwardRef((e, t) => {
|
|
17840
17875
|
let { progress: r, children: i, label: a = "Loading...", ...o } = e;
|
|
17841
|
-
return n.createElement(
|
|
17876
|
+
return n.createElement(Ej.div, {
|
|
17842
17877
|
ref: t,
|
|
17843
17878
|
...o,
|
|
17844
17879
|
"cmdk-loading": "",
|
|
@@ -17847,49 +17882,49 @@ var Tj = [
|
|
|
17847
17882
|
"aria-valuemin": 0,
|
|
17848
17883
|
"aria-valuemax": 100,
|
|
17849
17884
|
"aria-label": a
|
|
17850
|
-
},
|
|
17851
|
-
}),
|
|
17852
|
-
List:
|
|
17853
|
-
Item:
|
|
17854
|
-
Input:
|
|
17855
|
-
Group:
|
|
17856
|
-
Separator:
|
|
17857
|
-
Dialog:
|
|
17858
|
-
Empty:
|
|
17859
|
-
Loading:
|
|
17885
|
+
}, aM(e, (e) => n.createElement("div", { "aria-hidden": !0 }, e)));
|
|
17886
|
+
}), Yj = Object.assign(Bj, {
|
|
17887
|
+
List: Gj,
|
|
17888
|
+
Item: Vj,
|
|
17889
|
+
Input: Wj,
|
|
17890
|
+
Group: Hj,
|
|
17891
|
+
Separator: Uj,
|
|
17892
|
+
Dialog: Kj,
|
|
17893
|
+
Empty: qj,
|
|
17894
|
+
Loading: Jj
|
|
17860
17895
|
});
|
|
17861
|
-
function
|
|
17896
|
+
function Xj(e, t) {
|
|
17862
17897
|
let n = e.nextElementSibling;
|
|
17863
17898
|
for (; n;) {
|
|
17864
17899
|
if (n.matches(t)) return n;
|
|
17865
17900
|
n = n.nextElementSibling;
|
|
17866
17901
|
}
|
|
17867
17902
|
}
|
|
17868
|
-
function
|
|
17903
|
+
function Zj(e, t) {
|
|
17869
17904
|
let n = e.previousElementSibling;
|
|
17870
17905
|
for (; n;) {
|
|
17871
17906
|
if (n.matches(t)) return n;
|
|
17872
17907
|
n = n.previousElementSibling;
|
|
17873
17908
|
}
|
|
17874
17909
|
}
|
|
17875
|
-
function
|
|
17910
|
+
function Qj(e) {
|
|
17876
17911
|
let t = n.useRef(e);
|
|
17877
|
-
return
|
|
17912
|
+
return $j(() => {
|
|
17878
17913
|
t.current = e;
|
|
17879
17914
|
}), t;
|
|
17880
17915
|
}
|
|
17881
|
-
var
|
|
17882
|
-
function
|
|
17916
|
+
var $j = typeof window > "u" ? n.useEffect : n.useLayoutEffect;
|
|
17917
|
+
function eM(e) {
|
|
17883
17918
|
let t = n.useRef();
|
|
17884
17919
|
return t.current === void 0 && (t.current = e()), t;
|
|
17885
17920
|
}
|
|
17886
|
-
function
|
|
17887
|
-
let t =
|
|
17921
|
+
function tM(e) {
|
|
17922
|
+
let t = Rj(), r = () => e(t.snapshot());
|
|
17888
17923
|
return n.useSyncExternalStore(t.subscribe, r, r);
|
|
17889
17924
|
}
|
|
17890
|
-
function
|
|
17891
|
-
let a = n.useRef(), o =
|
|
17892
|
-
return
|
|
17925
|
+
function nM(e, t, r, i = []) {
|
|
17926
|
+
let a = n.useRef(), o = Ij();
|
|
17927
|
+
return $j(() => {
|
|
17893
17928
|
var n;
|
|
17894
17929
|
let s = (() => {
|
|
17895
17930
|
for (let e of r) {
|
|
@@ -17897,25 +17932,25 @@ function tM(e, t, r, i = []) {
|
|
|
17897
17932
|
if (typeof e == "object" && "current" in e) return e.current ? e.current.textContent?.trim() : a.current;
|
|
17898
17933
|
}
|
|
17899
17934
|
})(), c = i.map((e) => e.trim());
|
|
17900
|
-
o.value(e, s, c), (n = t.current) == null || n.setAttribute(
|
|
17935
|
+
o.value(e, s, c), (n = t.current) == null || n.setAttribute(Nj, s), a.current = s;
|
|
17901
17936
|
}), a;
|
|
17902
17937
|
}
|
|
17903
|
-
var
|
|
17904
|
-
let [e, t] = n.useState(), r =
|
|
17905
|
-
return
|
|
17938
|
+
var rM = () => {
|
|
17939
|
+
let [e, t] = n.useState(), r = eM(() => /* @__PURE__ */ new Map());
|
|
17940
|
+
return $j(() => {
|
|
17906
17941
|
r.current.forEach((e) => e()), r.current = /* @__PURE__ */ new Map();
|
|
17907
17942
|
}, [e]), (e, n) => {
|
|
17908
17943
|
r.current.set(e, n), t({});
|
|
17909
17944
|
};
|
|
17910
17945
|
};
|
|
17911
|
-
function
|
|
17946
|
+
function iM(e) {
|
|
17912
17947
|
let t = e.type;
|
|
17913
17948
|
return typeof t == "function" ? t(e.props) : "render" in t ? t.render(e.props) : e;
|
|
17914
17949
|
}
|
|
17915
|
-
function
|
|
17916
|
-
return e && n.isValidElement(t) ? n.cloneElement(
|
|
17950
|
+
function aM({ asChild: e, children: t }, r) {
|
|
17951
|
+
return e && n.isValidElement(t) ? n.cloneElement(iM(t), { ref: t.ref }, r(t.props.children)) : r(t);
|
|
17917
17952
|
}
|
|
17918
|
-
var
|
|
17953
|
+
var oM = {
|
|
17919
17954
|
position: "absolute",
|
|
17920
17955
|
width: "1px",
|
|
17921
17956
|
height: "1px",
|
|
@@ -17926,54 +17961,47 @@ var aM = {
|
|
|
17926
17961
|
whiteSpace: "nowrap",
|
|
17927
17962
|
borderWidth: "0"
|
|
17928
17963
|
};
|
|
17929
|
-
function
|
|
17930
|
-
return /* @__PURE__ */ y(
|
|
17964
|
+
function sM({ className: e, ...t }) {
|
|
17965
|
+
return /* @__PURE__ */ y(Yj, {
|
|
17931
17966
|
"data-slot": "command",
|
|
17932
17967
|
className: J("ttw:flex ttw:h-full ttw:w-full ttw:flex-col ttw:overflow-hidden ttw:rounded-md ttw:bg-popover ttw:text-popover-foreground", e),
|
|
17933
17968
|
...t
|
|
17934
17969
|
});
|
|
17935
17970
|
}
|
|
17936
|
-
function
|
|
17971
|
+
function cM({ className: e, ...t }) {
|
|
17937
17972
|
return /* @__PURE__ */ b("div", {
|
|
17938
17973
|
"data-slot": "command-input-wrapper",
|
|
17939
17974
|
className: "ttw:flex ttw:h-9 ttw:items-center ttw:gap-2 ttw:border-b ttw:border-border ttw:px-3",
|
|
17940
|
-
children: [/* @__PURE__ */ y(xe, { className: "ttw:size-4 ttw:shrink-0 ttw:opacity-50" }), /* @__PURE__ */ y(
|
|
17975
|
+
children: [/* @__PURE__ */ y(xe, { className: "ttw:size-4 ttw:shrink-0 ttw:opacity-50" }), /* @__PURE__ */ y(Yj.Input, {
|
|
17941
17976
|
"data-slot": "command-input",
|
|
17942
17977
|
className: J("ttw:flex ttw:h-10 ttw:w-full ttw:rounded-md ttw:bg-transparent ttw:py-3 ttw:text-sm ttw:outline-hidden ttw:placeholder:text-muted-foreground ttw:disabled:cursor-not-allowed ttw:disabled:opacity-50", e),
|
|
17943
17978
|
...t
|
|
17944
17979
|
})]
|
|
17945
17980
|
});
|
|
17946
17981
|
}
|
|
17947
|
-
function
|
|
17948
|
-
return /* @__PURE__ */ y(
|
|
17982
|
+
function lM({ className: e, ...t }) {
|
|
17983
|
+
return /* @__PURE__ */ y(Yj.List, {
|
|
17949
17984
|
"data-slot": "command-list",
|
|
17950
17985
|
className: J("ttw:max-h-[300px] ttw:scroll-py-1 ttw:overflow-x-hidden ttw:overflow-y-auto", e),
|
|
17951
17986
|
...t
|
|
17952
17987
|
});
|
|
17953
17988
|
}
|
|
17954
|
-
function
|
|
17955
|
-
return /* @__PURE__ */ y(
|
|
17989
|
+
function uM({ ...e }) {
|
|
17990
|
+
return /* @__PURE__ */ y(Yj.Empty, {
|
|
17956
17991
|
"data-slot": "command-empty",
|
|
17957
17992
|
className: "ttw:py-6 ttw:text-center ttw:text-sm",
|
|
17958
17993
|
...e
|
|
17959
17994
|
});
|
|
17960
17995
|
}
|
|
17961
|
-
function
|
|
17962
|
-
return /* @__PURE__ */ y(
|
|
17996
|
+
function dM({ className: e, ...t }) {
|
|
17997
|
+
return /* @__PURE__ */ y(Yj.Group, {
|
|
17963
17998
|
"data-slot": "command-group",
|
|
17964
17999
|
className: J("ttw:overflow-hidden ttw:p-1 ttw:text-foreground ttw:[&_[cmdk-group-heading]]:px-2 ttw:[&_[cmdk-group-heading]]:py-1.5 ttw:[&_[cmdk-group-heading]]:text-xs ttw:[&_[cmdk-group-heading]]:font-medium ttw:[&_[cmdk-group-heading]]:text-muted-foreground", e),
|
|
17965
18000
|
...t
|
|
17966
18001
|
});
|
|
17967
18002
|
}
|
|
17968
|
-
function dM({ className: e, ...t }) {
|
|
17969
|
-
return /* @__PURE__ */ y(Jj.Separator, {
|
|
17970
|
-
"data-slot": "command-separator",
|
|
17971
|
-
className: J("ttw:-mx-1 ttw:h-px ttw:bg-border", e),
|
|
17972
|
-
...t
|
|
17973
|
-
});
|
|
17974
|
-
}
|
|
17975
18003
|
function fM({ className: e, ...t }) {
|
|
17976
|
-
return /* @__PURE__ */ y(
|
|
18004
|
+
return /* @__PURE__ */ y(Yj.Item, {
|
|
17977
18005
|
"data-slot": "command-item",
|
|
17978
18006
|
className: J("ttw:relative ttw:flex ttw:cursor-default ttw:items-center ttw:gap-2 ttw:rounded-sm ttw:px-2 ttw:py-1.5 ttw:text-sm ttw:outline-hidden ttw:select-none ttw:data-[disabled=true]:pointer-events-none ttw:data-[disabled=true]:opacity-50 ttw:data-[selected=true]:bg-accent ttw:data-[selected=true]:text-accent-foreground ttw:[&_svg]:pointer-events-none ttw:[&_svg]:shrink-0 ttw:[&_svg:not([class*=size-])]:size-4 ttw:[&_svg:not([class*=text-])]:text-muted-foreground", e),
|
|
17979
18007
|
...t
|
|
@@ -18141,7 +18169,7 @@ function xM({ value: e, onChange: t, placeholder: r = "Pick a date", disabled: i
|
|
|
18141
18169
|
className: "ttw:w-auto ttw:p-0",
|
|
18142
18170
|
align: "start",
|
|
18143
18171
|
container: m,
|
|
18144
|
-
children: /* @__PURE__ */ y(
|
|
18172
|
+
children: /* @__PURE__ */ y(tk, {
|
|
18145
18173
|
mode: "single",
|
|
18146
18174
|
selected: e,
|
|
18147
18175
|
onSelect: (e) => {
|
|
@@ -18167,7 +18195,7 @@ function CM({ from: e, to: t, onRangeChange: r, selectedPreset: i, onPresetChang
|
|
|
18167
18195
|
}, u = {
|
|
18168
18196
|
from: e,
|
|
18169
18197
|
to: t
|
|
18170
|
-
}, d = n.useMemo(() => {
|
|
18198
|
+
}, d = n.useId(), f = n.useId(), p = n.useMemo(() => {
|
|
18171
18199
|
let e = /* @__PURE__ */ new Map();
|
|
18172
18200
|
for (let t of o) {
|
|
18173
18201
|
let n = e.get(t.group) ?? [];
|
|
@@ -18180,15 +18208,18 @@ function CM({ from: e, to: t, onRangeChange: r, selectedPreset: i, onPresetChang
|
|
|
18180
18208
|
children: [o.length > 0 && /* @__PURE__ */ b("div", {
|
|
18181
18209
|
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
18182
18210
|
children: [/* @__PURE__ */ b("span", {
|
|
18211
|
+
id: d,
|
|
18183
18212
|
className: "ttw:text-xs ttw:font-medium ttw:text-muted-foreground ttw:shrink-0",
|
|
18184
18213
|
children: [l.fieldLabel, ":"]
|
|
18185
18214
|
}), /* @__PURE__ */ b(My, {
|
|
18186
18215
|
value: i ?? "",
|
|
18187
18216
|
onValueChange: a,
|
|
18188
18217
|
children: [/* @__PURE__ */ y(Fy, {
|
|
18218
|
+
id: f,
|
|
18219
|
+
"aria-labelledby": `${d} ${f}`,
|
|
18189
18220
|
className: "ttw:h-8 ttw:text-xs",
|
|
18190
18221
|
children: /* @__PURE__ */ y(Py, { placeholder: l.presetPlaceholder })
|
|
18191
|
-
}), /* @__PURE__ */ y(Iy, { children: Array.from(
|
|
18222
|
+
}), /* @__PURE__ */ y(Iy, { children: Array.from(p.entries()).map(([e, t]) => /* @__PURE__ */ b(Ny, { children: [/* @__PURE__ */ y(Ly, {
|
|
18192
18223
|
className: "ttw:text-xs ttw:capitalize",
|
|
18193
18224
|
children: e
|
|
18194
18225
|
}), t.map((e) => /* @__PURE__ */ y(Ry, {
|
|
@@ -18197,7 +18228,7 @@ function CM({ from: e, to: t, onRangeChange: r, selectedPreset: i, onPresetChang
|
|
|
18197
18228
|
children: e.label
|
|
18198
18229
|
}, e.value))] }, e)) })]
|
|
18199
18230
|
})]
|
|
18200
|
-
}), /* @__PURE__ */ y(
|
|
18231
|
+
}), /* @__PURE__ */ y(tk, {
|
|
18201
18232
|
mode: "range",
|
|
18202
18233
|
selected: u,
|
|
18203
18234
|
onSelect: (e) => r({
|
|
@@ -18438,4 +18469,4 @@ function MM() {
|
|
|
18438
18469
|
}, [n])
|
|
18439
18470
|
};
|
|
18440
18471
|
}
|
|
18441
|
-
export { W_ as ALERT_DIALOG_LABELS_EN, TM as AMOUNT_FILTER_LABELS_EN, Ov as AUDIT_HISTORY_LABELS_EN, Dv as AUDIT_HISTORY_LIST_LABELS_EN, N_ as Accordion, I_ as AccordionContent, P_ as AccordionItem, F_ as AccordionTrigger, V_ as Alert, U_ as AlertDescription, vv as AlertDialog, Ev as AlertDialogCancel, xv as AlertDialogContent, Tv as AlertDialogDescription, Cv as AlertDialogFooter, Sv as AlertDialogHeader, bv as AlertDialogOverlay, yv as AlertDialogPortal, wv as AlertDialogTitle, H_ as AlertTitle, DM as AmountFilter, Hv as AuditHistoryList, Uv as Avatar, Wv as AvatarFallback, qv as Badge, Gv as BadgeAccent, J_ as Button, Yv as COMBOBOX_LABELS_EN, ey as CONFIRM_DIALOG_LABELS_EN,
|
|
18472
|
+
export { W_ as ALERT_DIALOG_LABELS_EN, TM as AMOUNT_FILTER_LABELS_EN, Ov as AUDIT_HISTORY_LABELS_EN, Dv as AUDIT_HISTORY_LIST_LABELS_EN, N_ as Accordion, I_ as AccordionContent, P_ as AccordionItem, F_ as AccordionTrigger, V_ as Alert, U_ as AlertDescription, vv as AlertDialog, Ev as AlertDialogCancel, xv as AlertDialogContent, Tv as AlertDialogDescription, Cv as AlertDialogFooter, Sv as AlertDialogHeader, bv as AlertDialogOverlay, yv as AlertDialogPortal, wv as AlertDialogTitle, H_ as AlertTitle, DM as AmountFilter, Hv as AuditHistoryList, Uv as Avatar, Wv as AvatarFallback, qv as Badge, Gv as BadgeAccent, J_ as Button, Yv as COMBOBOX_LABELS_EN, ey as CONFIRM_DIALOG_LABELS_EN, tk as Calendar, nk as CalendarDayButton, Hw as Checkbox, kv as Collapsible, jv as CollapsibleContent, Mv as CollapsibleSection, Av as CollapsibleTrigger, $v as Combobox, sM as Command, uM as CommandEmpty, dM as CommandGroup, cM as CommandInput, fM as CommandItem, lM as CommandList, ny as ConfirmDialog, ry as ContextMenu, ay as ContextMenuContent, oy as ContextMenuItem, sy as ContextMenuSeparator, iy as ContextMenuTrigger, cy as DATA_TABLE_LABELS_EN, SM as DATE_RANGE_PICKER_LABELS_EN, ab as DIALOG_LABELS_EN, Xy as DataTable, ib as DataTableSortableHeader, xM as DatePicker, CM as DateRangePicker, ty as DescriptionList, cb as Dialog, ub as DialogClose, fb as DialogContent, gb as DialogDescription, mb as DialogFooter, pb as DialogHeader, db as DialogOverlay, lb as DialogPortal, hb as DialogTitle, $b as DisplayAmount, ly as DropdownMenu, my as DropdownMenuCheckboxItem, dy as DropdownMenuContent, fy as DropdownMenuGroup, py as DropdownMenuItem, hy as DropdownMenuLabel, gy as DropdownMenuSeparator, uy as DropdownMenuTrigger, pM as FILTER_MENU_BUTTON_LABELS_EN, hM as FILTER_TAG_LABELS_EN, Ab as FLOW_DIALOG_LABELS_EN, Mb as FORM_DIALOG_LABELS_EN, Pb as FORM_SHEET_LABELS_EN, qb as FULL_PAGE_MODAL_LABELS_EN, Tb as Field, Eb as FieldContent, Ob as FieldDescription, kb as FieldError, Db as FieldLabel, xb as FieldRequirement, vM as FilterBar, mM as FilterMenuButton, gM as FilterTag, jb as FlowDialog, Nb as FormDialog, Kb as FormSheet, Yb as FullPageModal, Qb as Heading, ex as Input, tx as InputGroup, rx as InputGroupAddon, nx as InputGroupInput, ax as InputTags, _b as LABEL_LABELS_EN, Sb as Label, wM as MultiSelectFilter, Fw as Popover, Rw as PopoverAnchor, Lw as PopoverContent, Iw as PopoverTrigger, uv as PortalContainerProvider, zw as QUICK_ACTIONS_BAR_LABELS_EN, Vw as QuickActionsBar, ox as REQUIRED_FIELDS_LEGEND_LABELS_EN, dx as RESULT_SCREEN_LABELS_EN, Uw as RadioGroup, Ww as RadioGroupItem, lx as RequiredFieldsLegend, fx as ResultScreen, Fb as SHEET_LABELS_EN, kM as SONNER_LABELS_EN, G_ as SPINNER_LABELS_EN, yw as SUMMARY_CARD_LABELS_EN, OM as SearchInput, My as Select, Iy as SelectContent, Ny as SelectGroup, Ry as SelectItem, Ly as SelectLabel, Vy as SelectScrollDownButton, By as SelectScrollUpButton, zy as SelectSeparator, Fy as SelectTrigger, Py as SelectValue, Cb as Separator, Lb as Sheet, Rb as SheetClose, Vb as SheetContent, Gb as SheetDescription, Ub as SheetFooter, Hb as SheetHeader, Wb as SheetTitle, Nv as Skeleton, K_ as Spinner, ux as StepList, Sw as SummaryCard, Cw as SummaryCardGroup, ww as Switch, Hy as TABLE_PAGINATION_LABELS_EN, _y as Table, yy as TableBody, Dy as TableCard, jy as TableCardCollapseToggle, ky as TableCardFooter, Oy as TableCardHeader, Sy as TableCell, xy as TableHead, vy as TableHeader, Uy as TablePagination, by as TableRow, _M as TableToolbar, Tw as Tabs, Nw as TabsContent, Ow as TabsList, Mw as TabsTrigger, Pw as Textarea, jM as Toaster, gw as Tooltip, vw as TooltipContent, hw as TooltipProvider, _w as TooltipTrigger, mw as Typography, Kv as badgeVariants, q_ as buttonVariants, J as cn, Jv as formatLabel, sx as mergeRequiredFieldsLegendLabels, Ew as tabsListVariants, kw as tabsTriggerVariants, t as toast, fw as typographyVariants, MM as useFilterPanel, dv as usePortalContainer };
|