react-semaphor 0.1.306 → 0.1.308
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/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +4 -4
- package/dist/chunks/{braces-CuiOenEA.js → braces-BHDm9arh.js} +1 -1
- package/dist/chunks/{braces-DZxcgUvn.js → braces-DEq8EJtw.js} +1 -1
- package/dist/chunks/chevrons-up-down-Cbtggnqv.js +14 -0
- package/dist/chunks/chevrons-up-down-DDEY9beZ.js +6 -0
- package/dist/chunks/{dashboard-controls-CuQH4inS.js → dashboard-controls-DTxSUWvy.js} +279 -257
- package/dist/chunks/dashboard-controls-DviftQE7.js +57 -0
- package/dist/chunks/dashboard-filter-controls-button-D0nrJ7wl.js +11 -0
- package/dist/chunks/{dashboard-filter-controls-button-NiAIAD1P.js → dashboard-filter-controls-button-DHKfgPah.js} +304 -303
- package/dist/chunks/{dashboard-json-Bk13vadr.js → dashboard-json-DYzZ0G6T.js} +1 -1
- package/dist/chunks/{dashboard-json-DzVn9KAU.js → dashboard-json-DZmsUV5n.js} +2 -2
- package/dist/chunks/dashboard-summary-settings-dialog-Cc3yKCu4.js +1 -0
- package/dist/chunks/{dashboard-summary-settings-dialog-dt20G_7d.js → dashboard-summary-settings-dialog-QbUTp92u.js} +33 -32
- package/dist/chunks/{edit-dashboard-visual-DGhTFzSF.js → edit-dashboard-visual-BS3LKMJe.js} +32 -32
- package/dist/chunks/{edit-dashboard-visual-BIuWXuCC.js → edit-dashboard-visual-CmgculGv.js} +130 -129
- package/dist/chunks/{index-DQApwxKL.js → index-BxYIELMe.js} +62029 -63833
- package/dist/chunks/index-C0zD3JgK.js +1330 -0
- package/dist/chunks/{palette-DFjOzeAG.js → palette-CNKSAIrt.js} +1 -1
- package/dist/chunks/{palette-BwGE32UR.js → palette-CteErylX.js} +1 -1
- package/dist/chunks/{resource-management-panel-CD_TQoTn.js → resource-management-panel-8cHoj8SV.js} +52 -52
- package/dist/chunks/resource-management-panel-B4QM3fZ_.js +6 -0
- package/dist/chunks/{save-QktcpXPy.js → save-B1-nDZwS.js} +1 -1
- package/dist/chunks/{save-B3tqymYm.js → save-BVVnWGeb.js} +1 -1
- package/dist/chunks/{switch-B72T1Hf_.js → switch-BG4RWnrq.js} +2 -2
- package/dist/chunks/{switch-BuZXNXQV.js → switch-BZn7R_Cp.js} +634 -634
- package/dist/chunks/{use-create-flow-overlay-state-iUCs5ZgT.js → use-create-flow-overlay-state-Bmb471Fp.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-Bg-LkLP7.js → use-create-flow-overlay-state-CeWstFjy.js} +49 -49
- package/dist/chunks/{use-visual-utils-D_2r0Fmm.js → use-visual-utils-CmfDomt0.js} +2 -2
- package/dist/chunks/{use-visual-utils-DqVxN0_F.js → use-visual-utils-DflfgX9g.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +76 -76
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/main.d.ts +10 -4
- package/package.json +1 -1
- package/dist/chunks/dashboard-controls-BpgZjEDy.js +0 -47
- package/dist/chunks/dashboard-filter-controls-button-Bu90ytxy.js +0 -11
- package/dist/chunks/dashboard-summary-settings-dialog-8vZtKUjh.js +0 -1
- package/dist/chunks/index-CwzM5Lxh.js +0 -1360
- package/dist/chunks/resource-management-panel-BqJAVm7E.js +0 -6
|
@@ -16190,335 +16190,10 @@ const iC = at(
|
|
|
16190
16190
|
}
|
|
16191
16191
|
));
|
|
16192
16192
|
aC.displayName = Qc.displayName;
|
|
16193
|
-
var jn = "Tabs", [sC] = Ke(jn, [
|
|
16194
|
-
Ec
|
|
16195
|
-
]), Jc = Ec(), [lC, Hi] = sC(jn), ed = f.forwardRef(
|
|
16196
|
-
(e, r) => {
|
|
16197
|
-
const {
|
|
16198
|
-
__scopeTabs: t,
|
|
16199
|
-
value: n,
|
|
16200
|
-
onValueChange: o,
|
|
16201
|
-
defaultValue: i,
|
|
16202
|
-
orientation: a = "horizontal",
|
|
16203
|
-
dir: s,
|
|
16204
|
-
activationMode: l = "automatic",
|
|
16205
|
-
...c
|
|
16206
|
-
} = e, d = Rn(s), [u, p] = Ct({
|
|
16207
|
-
prop: n,
|
|
16208
|
-
onChange: o,
|
|
16209
|
-
defaultProp: i ?? "",
|
|
16210
|
-
caller: jn
|
|
16211
|
-
});
|
|
16212
|
-
return /* @__PURE__ */ w(
|
|
16213
|
-
lC,
|
|
16214
|
-
{
|
|
16215
|
-
scope: t,
|
|
16216
|
-
baseId: Tt(),
|
|
16217
|
-
value: u,
|
|
16218
|
-
onValueChange: p,
|
|
16219
|
-
orientation: a,
|
|
16220
|
-
dir: d,
|
|
16221
|
-
activationMode: l,
|
|
16222
|
-
children: /* @__PURE__ */ w(
|
|
16223
|
-
q.div,
|
|
16224
|
-
{
|
|
16225
|
-
dir: d,
|
|
16226
|
-
"data-orientation": a,
|
|
16227
|
-
...c,
|
|
16228
|
-
ref: r
|
|
16229
|
-
}
|
|
16230
|
-
)
|
|
16231
|
-
}
|
|
16232
|
-
);
|
|
16233
|
-
}
|
|
16234
|
-
);
|
|
16235
|
-
ed.displayName = jn;
|
|
16236
|
-
var td = "TabsList", rd = f.forwardRef(
|
|
16237
|
-
(e, r) => {
|
|
16238
|
-
const { __scopeTabs: t, loop: n = !0, ...o } = e, i = Hi(td, t), a = Jc(t);
|
|
16239
|
-
return /* @__PURE__ */ w(
|
|
16240
|
-
Yb,
|
|
16241
|
-
{
|
|
16242
|
-
asChild: !0,
|
|
16243
|
-
...a,
|
|
16244
|
-
orientation: i.orientation,
|
|
16245
|
-
dir: i.dir,
|
|
16246
|
-
loop: n,
|
|
16247
|
-
children: /* @__PURE__ */ w(
|
|
16248
|
-
q.div,
|
|
16249
|
-
{
|
|
16250
|
-
role: "tablist",
|
|
16251
|
-
"aria-orientation": i.orientation,
|
|
16252
|
-
...o,
|
|
16253
|
-
ref: r
|
|
16254
|
-
}
|
|
16255
|
-
)
|
|
16256
|
-
}
|
|
16257
|
-
);
|
|
16258
|
-
}
|
|
16259
|
-
);
|
|
16260
|
-
rd.displayName = td;
|
|
16261
|
-
var nd = "TabsTrigger", od = f.forwardRef(
|
|
16262
|
-
(e, r) => {
|
|
16263
|
-
const { __scopeTabs: t, value: n, disabled: o = !1, ...i } = e, a = Hi(nd, t), s = Jc(t), l = sd(a.baseId, n), c = ld(a.baseId, n), d = n === a.value;
|
|
16264
|
-
return /* @__PURE__ */ w(
|
|
16265
|
-
Hb,
|
|
16266
|
-
{
|
|
16267
|
-
asChild: !0,
|
|
16268
|
-
...s,
|
|
16269
|
-
focusable: !o,
|
|
16270
|
-
active: d,
|
|
16271
|
-
children: /* @__PURE__ */ w(
|
|
16272
|
-
q.button,
|
|
16273
|
-
{
|
|
16274
|
-
type: "button",
|
|
16275
|
-
role: "tab",
|
|
16276
|
-
"aria-selected": d,
|
|
16277
|
-
"aria-controls": c,
|
|
16278
|
-
"data-state": d ? "active" : "inactive",
|
|
16279
|
-
"data-disabled": o ? "" : void 0,
|
|
16280
|
-
disabled: o,
|
|
16281
|
-
id: l,
|
|
16282
|
-
...i,
|
|
16283
|
-
ref: r,
|
|
16284
|
-
onMouseDown: V(e.onMouseDown, (u) => {
|
|
16285
|
-
!o && u.button === 0 && u.ctrlKey === !1 ? a.onValueChange(n) : u.preventDefault();
|
|
16286
|
-
}),
|
|
16287
|
-
onKeyDown: V(e.onKeyDown, (u) => {
|
|
16288
|
-
[" ", "Enter"].includes(u.key) && a.onValueChange(n);
|
|
16289
|
-
}),
|
|
16290
|
-
onFocus: V(e.onFocus, () => {
|
|
16291
|
-
const u = a.activationMode !== "manual";
|
|
16292
|
-
!d && !o && u && a.onValueChange(n);
|
|
16293
|
-
})
|
|
16294
|
-
}
|
|
16295
|
-
)
|
|
16296
|
-
}
|
|
16297
|
-
);
|
|
16298
|
-
}
|
|
16299
|
-
);
|
|
16300
|
-
od.displayName = nd;
|
|
16301
|
-
var id = "TabsContent", ad = f.forwardRef(
|
|
16302
|
-
(e, r) => {
|
|
16303
|
-
const { __scopeTabs: t, value: n, forceMount: o, children: i, ...a } = e, s = Hi(id, t), l = sd(s.baseId, n), c = ld(s.baseId, n), d = n === s.value, u = f.useRef(d);
|
|
16304
|
-
return f.useEffect(() => {
|
|
16305
|
-
const p = requestAnimationFrame(() => u.current = !1);
|
|
16306
|
-
return () => cancelAnimationFrame(p);
|
|
16307
|
-
}, []), /* @__PURE__ */ w($e, { present: o || d, children: ({ present: p }) => /* @__PURE__ */ w(
|
|
16308
|
-
q.div,
|
|
16309
|
-
{
|
|
16310
|
-
"data-state": d ? "active" : "inactive",
|
|
16311
|
-
"data-orientation": s.orientation,
|
|
16312
|
-
role: "tabpanel",
|
|
16313
|
-
"aria-labelledby": l,
|
|
16314
|
-
hidden: !p,
|
|
16315
|
-
id: c,
|
|
16316
|
-
tabIndex: 0,
|
|
16317
|
-
...a,
|
|
16318
|
-
ref: r,
|
|
16319
|
-
style: {
|
|
16320
|
-
...e.style,
|
|
16321
|
-
animationDuration: u.current ? "0s" : void 0
|
|
16322
|
-
},
|
|
16323
|
-
children: p && i
|
|
16324
|
-
}
|
|
16325
|
-
) });
|
|
16326
|
-
}
|
|
16327
|
-
);
|
|
16328
|
-
ad.displayName = id;
|
|
16329
|
-
function sd(e, r) {
|
|
16330
|
-
return `${e}-trigger-${r}`;
|
|
16331
|
-
}
|
|
16332
|
-
function ld(e, r) {
|
|
16333
|
-
return `${e}-content-${r}`;
|
|
16334
|
-
}
|
|
16335
|
-
var cC = ed, cd = rd, dd = od, ud = ad;
|
|
16336
|
-
const Zx = cC, dC = at("text-muted-foreground", {
|
|
16337
|
-
variants: {
|
|
16338
|
-
variant: {
|
|
16339
|
-
segmented: "inline-flex items-center justify-center rounded-control bg-muted",
|
|
16340
|
-
underline: "flex h-auto items-center gap-6 border-b border-border/60 bg-transparent p-0"
|
|
16341
|
-
},
|
|
16342
|
-
size: {
|
|
16343
|
-
// Applied via compoundVariants to segmented only — underline
|
|
16344
|
-
// deliberately has no size variant.
|
|
16345
|
-
default: "",
|
|
16346
|
-
sm: "",
|
|
16347
|
-
xs: ""
|
|
16348
|
-
}
|
|
16349
|
-
},
|
|
16350
|
-
compoundVariants: [
|
|
16351
|
-
{ variant: "segmented", size: "default", className: "h-10 p-1" },
|
|
16352
|
-
{ variant: "segmented", size: "sm", className: "h-8 p-0.5" },
|
|
16353
|
-
{
|
|
16354
|
-
variant: "segmented",
|
|
16355
|
-
size: "xs",
|
|
16356
|
-
className: "h-7 p-0.5"
|
|
16357
|
-
}
|
|
16358
|
-
],
|
|
16359
|
-
defaultVariants: {
|
|
16360
|
-
variant: "segmented",
|
|
16361
|
-
size: "default"
|
|
16362
|
-
}
|
|
16363
|
-
}), uC = at(
|
|
16364
|
-
"inline-flex items-center justify-center whitespace-nowrap font-medium ring-offset-background transition-all focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50",
|
|
16365
|
-
{
|
|
16366
|
-
variants: {
|
|
16367
|
-
variant: {
|
|
16368
|
-
segmented: "rounded-control focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",
|
|
16369
|
-
underline: "-mb-px border-b-2 border-transparent px-0.5 pb-2.5 text-[13px] font-normal hover:text-foreground focus-visible:text-foreground data-[state=active]:border-foreground data-[state=active]:font-medium data-[state=active]:text-foreground"
|
|
16370
|
-
},
|
|
16371
|
-
size: {
|
|
16372
|
-
default: "",
|
|
16373
|
-
sm: "",
|
|
16374
|
-
xs: ""
|
|
16375
|
-
}
|
|
16376
|
-
},
|
|
16377
|
-
compoundVariants: [
|
|
16378
|
-
{ variant: "segmented", size: "default", className: "px-3 py-1.5 text-sm" },
|
|
16379
|
-
{
|
|
16380
|
-
variant: "segmented",
|
|
16381
|
-
size: "sm",
|
|
16382
|
-
className: "px-2.5 py-1 text-[13px]"
|
|
16383
|
-
},
|
|
16384
|
-
{
|
|
16385
|
-
variant: "segmented",
|
|
16386
|
-
size: "xs",
|
|
16387
|
-
className: "px-2 py-0.5 text-[12px]"
|
|
16388
|
-
}
|
|
16389
|
-
],
|
|
16390
|
-
defaultVariants: {
|
|
16391
|
-
variant: "segmented",
|
|
16392
|
-
size: "default"
|
|
16393
|
-
}
|
|
16394
|
-
}
|
|
16395
|
-
), fd = f.createContext({ variant: "segmented", size: "default" }), fC = f.forwardRef(({ className: e, variant: r, size: t, ...n }, o) => {
|
|
16396
|
-
const i = r ?? "segmented", a = t ?? "default";
|
|
16397
|
-
return /* @__PURE__ */ w(
|
|
16398
|
-
fd.Provider,
|
|
16399
|
-
{
|
|
16400
|
-
value: { variant: i, size: a },
|
|
16401
|
-
children: /* @__PURE__ */ w(
|
|
16402
|
-
cd,
|
|
16403
|
-
{
|
|
16404
|
-
ref: o,
|
|
16405
|
-
className: ie(
|
|
16406
|
-
dC({
|
|
16407
|
-
variant: i,
|
|
16408
|
-
size: a
|
|
16409
|
-
}),
|
|
16410
|
-
e
|
|
16411
|
-
),
|
|
16412
|
-
...n
|
|
16413
|
-
}
|
|
16414
|
-
)
|
|
16415
|
-
}
|
|
16416
|
-
);
|
|
16417
|
-
});
|
|
16418
|
-
fC.displayName = cd.displayName;
|
|
16419
|
-
const pC = f.forwardRef(({ className: e, variant: r, size: t, ...n }, o) => {
|
|
16420
|
-
const i = f.useContext(fd);
|
|
16421
|
-
return /* @__PURE__ */ w(
|
|
16422
|
-
dd,
|
|
16423
|
-
{
|
|
16424
|
-
ref: o,
|
|
16425
|
-
className: ie(
|
|
16426
|
-
uC({
|
|
16427
|
-
variant: r ?? i.variant,
|
|
16428
|
-
size: t ?? i.size
|
|
16429
|
-
}),
|
|
16430
|
-
e
|
|
16431
|
-
),
|
|
16432
|
-
...n
|
|
16433
|
-
}
|
|
16434
|
-
);
|
|
16435
|
-
});
|
|
16436
|
-
pC.displayName = dd.displayName;
|
|
16437
|
-
const mC = f.forwardRef(({ className: e, ...r }, t) => (
|
|
16438
|
-
// Radix sets `tabindex="0"` on content panels so keyboard users can
|
|
16439
|
-
// reach them. The default shadcn styling paints a 2px ring around the
|
|
16440
|
-
// whole panel on focus, which shows a thick outline around any card
|
|
16441
|
-
// rendered inside the panel. Inner controls have their own focus
|
|
16442
|
-
// indicators, so we suppress the panel-level halo entirely.
|
|
16443
|
-
/* @__PURE__ */ w(
|
|
16444
|
-
ud,
|
|
16445
|
-
{
|
|
16446
|
-
ref: t,
|
|
16447
|
-
className: ie(
|
|
16448
|
-
"mt-2 focus:outline-none focus-visible:outline-none",
|
|
16449
|
-
e
|
|
16450
|
-
),
|
|
16451
|
-
...r
|
|
16452
|
-
}
|
|
16453
|
-
)
|
|
16454
|
-
));
|
|
16455
|
-
mC.displayName = ud.displayName;
|
|
16456
|
-
var hC = [
|
|
16457
|
-
"a",
|
|
16458
|
-
"button",
|
|
16459
|
-
"div",
|
|
16460
|
-
"form",
|
|
16461
|
-
"h2",
|
|
16462
|
-
"h3",
|
|
16463
|
-
"img",
|
|
16464
|
-
"input",
|
|
16465
|
-
"label",
|
|
16466
|
-
"li",
|
|
16467
|
-
"nav",
|
|
16468
|
-
"ol",
|
|
16469
|
-
"p",
|
|
16470
|
-
"select",
|
|
16471
|
-
"span",
|
|
16472
|
-
"svg",
|
|
16473
|
-
"ul"
|
|
16474
|
-
], gC = hC.reduce((e, r) => {
|
|
16475
|
-
const t = /* @__PURE__ */ Di(`Primitive.${r}`), n = f.forwardRef((o, i) => {
|
|
16476
|
-
const { asChild: a, ...s } = o, l = a ? t : r;
|
|
16477
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ w(l, { ...s, ref: i });
|
|
16478
|
-
});
|
|
16479
|
-
return n.displayName = `Primitive.${r}`, { ...e, [r]: n };
|
|
16480
|
-
}, {}), yC = "Separator", ys = "horizontal", bC = ["horizontal", "vertical"], pd = f.forwardRef((e, r) => {
|
|
16481
|
-
const { decorative: t, orientation: n = ys, ...o } = e, i = vC(n) ? n : ys, s = t ? { role: "none" } : { "aria-orientation": i === "vertical" ? i : void 0, role: "separator" };
|
|
16482
|
-
return /* @__PURE__ */ w(
|
|
16483
|
-
gC.div,
|
|
16484
|
-
{
|
|
16485
|
-
"data-orientation": i,
|
|
16486
|
-
...s,
|
|
16487
|
-
...o,
|
|
16488
|
-
ref: r
|
|
16489
|
-
}
|
|
16490
|
-
);
|
|
16491
|
-
});
|
|
16492
|
-
pd.displayName = yC;
|
|
16493
|
-
function vC(e) {
|
|
16494
|
-
return bC.includes(e);
|
|
16495
|
-
}
|
|
16496
|
-
var md = pd;
|
|
16497
|
-
const CC = f.forwardRef(
|
|
16498
|
-
({ className: e, orientation: r = "horizontal", decorative: t = !0, ...n }, o) => /* @__PURE__ */ w(
|
|
16499
|
-
md,
|
|
16500
|
-
{
|
|
16501
|
-
ref: o,
|
|
16502
|
-
decorative: t,
|
|
16503
|
-
orientation: r,
|
|
16504
|
-
className: ie(
|
|
16505
|
-
"shrink-0 bg-border",
|
|
16506
|
-
r === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
16507
|
-
e
|
|
16508
|
-
),
|
|
16509
|
-
...n
|
|
16510
|
-
}
|
|
16511
|
-
)
|
|
16512
|
-
);
|
|
16513
|
-
CC.displayName = md.displayName;
|
|
16514
|
-
function hd(e) {
|
|
16515
|
-
const r = f.useRef({ value: e, previous: e });
|
|
16516
|
-
return f.useMemo(() => (r.current.value !== e && (r.current.previous = r.current.value, r.current.value = e), r.current.previous), [e]);
|
|
16517
|
-
}
|
|
16518
16193
|
// @__NO_SIDE_EFFECTS__
|
|
16519
|
-
function
|
|
16520
|
-
const r = /* @__PURE__ */
|
|
16521
|
-
const { children: i, ...a } = n, s = f.Children.toArray(i), l = s.find(
|
|
16194
|
+
function sC(e) {
|
|
16195
|
+
const r = /* @__PURE__ */ lC(e), t = f.forwardRef((n, o) => {
|
|
16196
|
+
const { children: i, ...a } = n, s = f.Children.toArray(i), l = s.find(dC);
|
|
16522
16197
|
if (l) {
|
|
16523
16198
|
const c = l.props.children, d = s.map((u) => u === l ? f.Children.count(c) > 1 ? f.Children.only(null) : f.isValidElement(c) ? c.props.children : null : u);
|
|
16524
16199
|
return /* @__PURE__ */ w(r, { ...a, ref: o, children: f.isValidElement(c) ? f.cloneElement(c, void 0, d) : null });
|
|
@@ -16528,22 +16203,22 @@ function SC(e) {
|
|
|
16528
16203
|
return t.displayName = `${e}.Slot`, t;
|
|
16529
16204
|
}
|
|
16530
16205
|
// @__NO_SIDE_EFFECTS__
|
|
16531
|
-
function
|
|
16206
|
+
function lC(e) {
|
|
16532
16207
|
const r = f.forwardRef((t, n) => {
|
|
16533
16208
|
const { children: o, ...i } = t;
|
|
16534
16209
|
if (f.isValidElement(o)) {
|
|
16535
|
-
const a =
|
|
16210
|
+
const a = fC(o), s = uC(i, o.props);
|
|
16536
16211
|
return o.type !== f.Fragment && (s.ref = n ? Kt(n, a) : a), f.cloneElement(o, s);
|
|
16537
16212
|
}
|
|
16538
16213
|
return f.Children.count(o) > 1 ? f.Children.only(null) : null;
|
|
16539
16214
|
});
|
|
16540
16215
|
return r.displayName = `${e}.SlotClone`, r;
|
|
16541
16216
|
}
|
|
16542
|
-
var
|
|
16543
|
-
function
|
|
16544
|
-
return f.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
16217
|
+
var cC = Symbol("radix.slottable");
|
|
16218
|
+
function dC(e) {
|
|
16219
|
+
return f.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === cC;
|
|
16545
16220
|
}
|
|
16546
|
-
function
|
|
16221
|
+
function uC(e, r) {
|
|
16547
16222
|
const t = { ...r };
|
|
16548
16223
|
for (const n in r) {
|
|
16549
16224
|
const o = e[n], i = r[n];
|
|
@@ -16554,14 +16229,14 @@ function EC(e, r) {
|
|
|
16554
16229
|
}
|
|
16555
16230
|
return { ...e, ...t };
|
|
16556
16231
|
}
|
|
16557
|
-
function
|
|
16232
|
+
function fC(e) {
|
|
16558
16233
|
var n, o;
|
|
16559
16234
|
let r = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, t = r && "isReactWarning" in r && r.isReactWarning;
|
|
16560
16235
|
return t ? e.ref : (r = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
16561
16236
|
}
|
|
16562
|
-
var
|
|
16237
|
+
var jn = "Popover", [Jc] = Ke(jn, [
|
|
16563
16238
|
Qt
|
|
16564
|
-
]), kr = Qt(), [
|
|
16239
|
+
]), kr = Qt(), [pC, st] = Jc(jn), ed = (e) => {
|
|
16565
16240
|
const {
|
|
16566
16241
|
__scopePopover: r,
|
|
16567
16242
|
children: t,
|
|
@@ -16573,10 +16248,10 @@ var zn = "Popover", [gd] = Ke(zn, [
|
|
|
16573
16248
|
prop: n,
|
|
16574
16249
|
defaultProp: o ?? !1,
|
|
16575
16250
|
onChange: i,
|
|
16576
|
-
caller:
|
|
16251
|
+
caller: jn
|
|
16577
16252
|
});
|
|
16578
16253
|
return /* @__PURE__ */ w(Bi, { ...s, children: /* @__PURE__ */ w(
|
|
16579
|
-
|
|
16254
|
+
pC,
|
|
16580
16255
|
{
|
|
16581
16256
|
scope: r,
|
|
16582
16257
|
contentId: Tt(),
|
|
@@ -16592,24 +16267,24 @@ var zn = "Popover", [gd] = Ke(zn, [
|
|
|
16592
16267
|
}
|
|
16593
16268
|
) });
|
|
16594
16269
|
};
|
|
16595
|
-
|
|
16596
|
-
var
|
|
16270
|
+
ed.displayName = jn;
|
|
16271
|
+
var td = "PopoverAnchor", rd = f.forwardRef(
|
|
16597
16272
|
(e, r) => {
|
|
16598
|
-
const { __scopePopover: t, ...n } = e, o = st(
|
|
16273
|
+
const { __scopePopover: t, ...n } = e, o = st(td, t), i = kr(t), { onCustomAnchorAdd: a, onCustomAnchorRemove: s } = o;
|
|
16599
16274
|
return f.useEffect(() => (a(), () => s()), [a, s]), /* @__PURE__ */ w(kn, { ...i, ...n, ref: r });
|
|
16600
16275
|
}
|
|
16601
16276
|
);
|
|
16602
|
-
|
|
16603
|
-
var
|
|
16277
|
+
rd.displayName = td;
|
|
16278
|
+
var nd = "PopoverTrigger", od = f.forwardRef(
|
|
16604
16279
|
(e, r) => {
|
|
16605
|
-
const { __scopePopover: t, ...n } = e, o = st(
|
|
16280
|
+
const { __scopePopover: t, ...n } = e, o = st(nd, t), i = kr(t), a = Z(r, o.triggerRef), s = /* @__PURE__ */ w(
|
|
16606
16281
|
q.button,
|
|
16607
16282
|
{
|
|
16608
16283
|
type: "button",
|
|
16609
16284
|
"aria-haspopup": "dialog",
|
|
16610
16285
|
"aria-expanded": o.open,
|
|
16611
16286
|
"aria-controls": o.contentId,
|
|
16612
|
-
"data-state":
|
|
16287
|
+
"data-state": dd(o.open),
|
|
16613
16288
|
...n,
|
|
16614
16289
|
ref: a,
|
|
16615
16290
|
onClick: V(e.onClick, o.onOpenToggle)
|
|
@@ -16618,29 +16293,29 @@ var Cd = "PopoverTrigger", Sd = f.forwardRef(
|
|
|
16618
16293
|
return o.hasCustomAnchor ? s : /* @__PURE__ */ w(kn, { asChild: !0, ...i, children: s });
|
|
16619
16294
|
}
|
|
16620
16295
|
);
|
|
16621
|
-
|
|
16622
|
-
var
|
|
16296
|
+
od.displayName = nd;
|
|
16297
|
+
var Hi = "PopoverPortal", [mC, hC] = Jc(Hi, {
|
|
16623
16298
|
forceMount: void 0
|
|
16624
|
-
}),
|
|
16625
|
-
const { __scopePopover: r, forceMount: t, children: n, container: o } = e, i = st(
|
|
16626
|
-
return /* @__PURE__ */ w(
|
|
16299
|
+
}), id = (e) => {
|
|
16300
|
+
const { __scopePopover: r, forceMount: t, children: n, container: o } = e, i = st(Hi, r);
|
|
16301
|
+
return /* @__PURE__ */ w(mC, { scope: r, forceMount: t, children: /* @__PURE__ */ w($e, { present: t || i.open, children: /* @__PURE__ */ w(Ln, { asChild: !0, container: o, children: n }) }) });
|
|
16627
16302
|
};
|
|
16628
|
-
|
|
16629
|
-
var Ht = "PopoverContent",
|
|
16303
|
+
id.displayName = Hi;
|
|
16304
|
+
var Ht = "PopoverContent", ad = f.forwardRef(
|
|
16630
16305
|
(e, r) => {
|
|
16631
|
-
const t =
|
|
16632
|
-
return /* @__PURE__ */ w($e, { present: n || i.open, children: i.modal ? /* @__PURE__ */ w(
|
|
16306
|
+
const t = hC(Ht, e.__scopePopover), { forceMount: n = t.forceMount, ...o } = e, i = st(Ht, e.__scopePopover);
|
|
16307
|
+
return /* @__PURE__ */ w($e, { present: n || i.open, children: i.modal ? /* @__PURE__ */ w(yC, { ...o, ref: r }) : /* @__PURE__ */ w(bC, { ...o, ref: r }) });
|
|
16633
16308
|
}
|
|
16634
16309
|
);
|
|
16635
|
-
|
|
16636
|
-
var
|
|
16310
|
+
ad.displayName = Ht;
|
|
16311
|
+
var gC = /* @__PURE__ */ sC("PopoverContent.RemoveScroll"), yC = f.forwardRef(
|
|
16637
16312
|
(e, r) => {
|
|
16638
16313
|
const t = st(Ht, e.__scopePopover), n = f.useRef(null), o = Z(r, n), i = f.useRef(!1);
|
|
16639
16314
|
return f.useEffect(() => {
|
|
16640
16315
|
const a = n.current;
|
|
16641
16316
|
if (a) return Pc(a);
|
|
16642
|
-
}, []), /* @__PURE__ */ w(ji, { as:
|
|
16643
|
-
|
|
16317
|
+
}, []), /* @__PURE__ */ w(ji, { as: gC, allowPinchZoom: !0, children: /* @__PURE__ */ w(
|
|
16318
|
+
sd,
|
|
16644
16319
|
{
|
|
16645
16320
|
...e,
|
|
16646
16321
|
ref: o,
|
|
@@ -16666,11 +16341,11 @@ var RC = /* @__PURE__ */ SC("PopoverContent.RemoveScroll"), PC = f.forwardRef(
|
|
|
16666
16341
|
}
|
|
16667
16342
|
) });
|
|
16668
16343
|
}
|
|
16669
|
-
),
|
|
16344
|
+
), bC = f.forwardRef(
|
|
16670
16345
|
(e, r) => {
|
|
16671
16346
|
const t = st(Ht, e.__scopePopover), n = f.useRef(!1), o = f.useRef(!1);
|
|
16672
16347
|
return /* @__PURE__ */ w(
|
|
16673
|
-
|
|
16348
|
+
sd,
|
|
16674
16349
|
{
|
|
16675
16350
|
...e,
|
|
16676
16351
|
ref: r,
|
|
@@ -16689,7 +16364,7 @@ var RC = /* @__PURE__ */ SC("PopoverContent.RemoveScroll"), PC = f.forwardRef(
|
|
|
16689
16364
|
}
|
|
16690
16365
|
);
|
|
16691
16366
|
}
|
|
16692
|
-
),
|
|
16367
|
+
), sd = f.forwardRef(
|
|
16693
16368
|
(e, r) => {
|
|
16694
16369
|
const {
|
|
16695
16370
|
__scopePopover: t,
|
|
@@ -16724,7 +16399,7 @@ var RC = /* @__PURE__ */ SC("PopoverContent.RemoveScroll"), PC = f.forwardRef(
|
|
|
16724
16399
|
children: /* @__PURE__ */ w(
|
|
16725
16400
|
$i,
|
|
16726
16401
|
{
|
|
16727
|
-
"data-state":
|
|
16402
|
+
"data-state": dd(p.open),
|
|
16728
16403
|
role: "dialog",
|
|
16729
16404
|
id: p.contentId,
|
|
16730
16405
|
...h,
|
|
@@ -16745,39 +16420,321 @@ var RC = /* @__PURE__ */ SC("PopoverContent.RemoveScroll"), PC = f.forwardRef(
|
|
|
16745
16420
|
}
|
|
16746
16421
|
);
|
|
16747
16422
|
}
|
|
16748
|
-
),
|
|
16423
|
+
), ld = "PopoverClose", vC = f.forwardRef(
|
|
16424
|
+
(e, r) => {
|
|
16425
|
+
const { __scopePopover: t, ...n } = e, o = st(ld, t);
|
|
16426
|
+
return /* @__PURE__ */ w(
|
|
16427
|
+
q.button,
|
|
16428
|
+
{
|
|
16429
|
+
type: "button",
|
|
16430
|
+
...n,
|
|
16431
|
+
ref: r,
|
|
16432
|
+
onClick: V(e.onClick, () => o.onOpenChange(!1))
|
|
16433
|
+
}
|
|
16434
|
+
);
|
|
16435
|
+
}
|
|
16436
|
+
);
|
|
16437
|
+
vC.displayName = ld;
|
|
16438
|
+
var CC = "PopoverArrow", cd = f.forwardRef(
|
|
16439
|
+
(e, r) => {
|
|
16440
|
+
const { __scopePopover: t, ...n } = e, o = kr(t);
|
|
16441
|
+
return /* @__PURE__ */ w(Ui, { ...o, ...n, ref: r });
|
|
16442
|
+
}
|
|
16443
|
+
);
|
|
16444
|
+
cd.displayName = CC;
|
|
16445
|
+
function dd(e) {
|
|
16446
|
+
return e ? "open" : "closed";
|
|
16447
|
+
}
|
|
16448
|
+
var SC = ed, wC = rd, xC = od, IC = id, ud = ad, Zx = cd;
|
|
16449
|
+
const Qx = SC, Jx = wC, eI = xC, EC = f.forwardRef(({ className: e, align: r = "center", sideOffset: t = 4, ...n }, o) => /* @__PURE__ */ w(IC, { children: /* @__PURE__ */ w(Bn, { children: /* @__PURE__ */ w(
|
|
16450
|
+
ud,
|
|
16451
|
+
{
|
|
16452
|
+
ref: o,
|
|
16453
|
+
align: r,
|
|
16454
|
+
sideOffset: t,
|
|
16455
|
+
className: ie(
|
|
16456
|
+
// z-49 is to make sure the popover is behind dropdown
|
|
16457
|
+
"z-49 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
16458
|
+
e
|
|
16459
|
+
),
|
|
16460
|
+
...n
|
|
16461
|
+
}
|
|
16462
|
+
) }) }));
|
|
16463
|
+
EC.displayName = ud.displayName;
|
|
16464
|
+
var zn = "Tabs", [TC] = Ke(zn, [
|
|
16465
|
+
Ec
|
|
16466
|
+
]), fd = Ec(), [AC, qi] = TC(zn), pd = f.forwardRef(
|
|
16467
|
+
(e, r) => {
|
|
16468
|
+
const {
|
|
16469
|
+
__scopeTabs: t,
|
|
16470
|
+
value: n,
|
|
16471
|
+
onValueChange: o,
|
|
16472
|
+
defaultValue: i,
|
|
16473
|
+
orientation: a = "horizontal",
|
|
16474
|
+
dir: s,
|
|
16475
|
+
activationMode: l = "automatic",
|
|
16476
|
+
...c
|
|
16477
|
+
} = e, d = Rn(s), [u, p] = Ct({
|
|
16478
|
+
prop: n,
|
|
16479
|
+
onChange: o,
|
|
16480
|
+
defaultProp: i ?? "",
|
|
16481
|
+
caller: zn
|
|
16482
|
+
});
|
|
16483
|
+
return /* @__PURE__ */ w(
|
|
16484
|
+
AC,
|
|
16485
|
+
{
|
|
16486
|
+
scope: t,
|
|
16487
|
+
baseId: Tt(),
|
|
16488
|
+
value: u,
|
|
16489
|
+
onValueChange: p,
|
|
16490
|
+
orientation: a,
|
|
16491
|
+
dir: d,
|
|
16492
|
+
activationMode: l,
|
|
16493
|
+
children: /* @__PURE__ */ w(
|
|
16494
|
+
q.div,
|
|
16495
|
+
{
|
|
16496
|
+
dir: d,
|
|
16497
|
+
"data-orientation": a,
|
|
16498
|
+
...c,
|
|
16499
|
+
ref: r
|
|
16500
|
+
}
|
|
16501
|
+
)
|
|
16502
|
+
}
|
|
16503
|
+
);
|
|
16504
|
+
}
|
|
16505
|
+
);
|
|
16506
|
+
pd.displayName = zn;
|
|
16507
|
+
var md = "TabsList", hd = f.forwardRef(
|
|
16508
|
+
(e, r) => {
|
|
16509
|
+
const { __scopeTabs: t, loop: n = !0, ...o } = e, i = qi(md, t), a = fd(t);
|
|
16510
|
+
return /* @__PURE__ */ w(
|
|
16511
|
+
Yb,
|
|
16512
|
+
{
|
|
16513
|
+
asChild: !0,
|
|
16514
|
+
...a,
|
|
16515
|
+
orientation: i.orientation,
|
|
16516
|
+
dir: i.dir,
|
|
16517
|
+
loop: n,
|
|
16518
|
+
children: /* @__PURE__ */ w(
|
|
16519
|
+
q.div,
|
|
16520
|
+
{
|
|
16521
|
+
role: "tablist",
|
|
16522
|
+
"aria-orientation": i.orientation,
|
|
16523
|
+
...o,
|
|
16524
|
+
ref: r
|
|
16525
|
+
}
|
|
16526
|
+
)
|
|
16527
|
+
}
|
|
16528
|
+
);
|
|
16529
|
+
}
|
|
16530
|
+
);
|
|
16531
|
+
hd.displayName = md;
|
|
16532
|
+
var gd = "TabsTrigger", yd = f.forwardRef(
|
|
16749
16533
|
(e, r) => {
|
|
16750
|
-
const {
|
|
16534
|
+
const { __scopeTabs: t, value: n, disabled: o = !1, ...i } = e, a = qi(gd, t), s = fd(t), l = Cd(a.baseId, n), c = Sd(a.baseId, n), d = n === a.value;
|
|
16751
16535
|
return /* @__PURE__ */ w(
|
|
16752
|
-
|
|
16536
|
+
Hb,
|
|
16753
16537
|
{
|
|
16754
|
-
|
|
16755
|
-
...
|
|
16756
|
-
|
|
16757
|
-
|
|
16538
|
+
asChild: !0,
|
|
16539
|
+
...s,
|
|
16540
|
+
focusable: !o,
|
|
16541
|
+
active: d,
|
|
16542
|
+
children: /* @__PURE__ */ w(
|
|
16543
|
+
q.button,
|
|
16544
|
+
{
|
|
16545
|
+
type: "button",
|
|
16546
|
+
role: "tab",
|
|
16547
|
+
"aria-selected": d,
|
|
16548
|
+
"aria-controls": c,
|
|
16549
|
+
"data-state": d ? "active" : "inactive",
|
|
16550
|
+
"data-disabled": o ? "" : void 0,
|
|
16551
|
+
disabled: o,
|
|
16552
|
+
id: l,
|
|
16553
|
+
...i,
|
|
16554
|
+
ref: r,
|
|
16555
|
+
onMouseDown: V(e.onMouseDown, (u) => {
|
|
16556
|
+
!o && u.button === 0 && u.ctrlKey === !1 ? a.onValueChange(n) : u.preventDefault();
|
|
16557
|
+
}),
|
|
16558
|
+
onKeyDown: V(e.onKeyDown, (u) => {
|
|
16559
|
+
[" ", "Enter"].includes(u.key) && a.onValueChange(n);
|
|
16560
|
+
}),
|
|
16561
|
+
onFocus: V(e.onFocus, () => {
|
|
16562
|
+
const u = a.activationMode !== "manual";
|
|
16563
|
+
!d && !o && u && a.onValueChange(n);
|
|
16564
|
+
})
|
|
16565
|
+
}
|
|
16566
|
+
)
|
|
16758
16567
|
}
|
|
16759
16568
|
);
|
|
16760
16569
|
}
|
|
16761
16570
|
);
|
|
16762
|
-
|
|
16763
|
-
var
|
|
16571
|
+
yd.displayName = gd;
|
|
16572
|
+
var bd = "TabsContent", vd = f.forwardRef(
|
|
16764
16573
|
(e, r) => {
|
|
16765
|
-
const {
|
|
16766
|
-
return
|
|
16574
|
+
const { __scopeTabs: t, value: n, forceMount: o, children: i, ...a } = e, s = qi(bd, t), l = Cd(s.baseId, n), c = Sd(s.baseId, n), d = n === s.value, u = f.useRef(d);
|
|
16575
|
+
return f.useEffect(() => {
|
|
16576
|
+
const p = requestAnimationFrame(() => u.current = !1);
|
|
16577
|
+
return () => cancelAnimationFrame(p);
|
|
16578
|
+
}, []), /* @__PURE__ */ w($e, { present: o || d, children: ({ present: p }) => /* @__PURE__ */ w(
|
|
16579
|
+
q.div,
|
|
16580
|
+
{
|
|
16581
|
+
"data-state": d ? "active" : "inactive",
|
|
16582
|
+
"data-orientation": s.orientation,
|
|
16583
|
+
role: "tabpanel",
|
|
16584
|
+
"aria-labelledby": l,
|
|
16585
|
+
hidden: !p,
|
|
16586
|
+
id: c,
|
|
16587
|
+
tabIndex: 0,
|
|
16588
|
+
...a,
|
|
16589
|
+
ref: r,
|
|
16590
|
+
style: {
|
|
16591
|
+
...e.style,
|
|
16592
|
+
animationDuration: u.current ? "0s" : void 0
|
|
16593
|
+
},
|
|
16594
|
+
children: p && i
|
|
16595
|
+
}
|
|
16596
|
+
) });
|
|
16767
16597
|
}
|
|
16768
16598
|
);
|
|
16769
|
-
|
|
16770
|
-
function
|
|
16771
|
-
return e
|
|
16599
|
+
vd.displayName = bd;
|
|
16600
|
+
function Cd(e, r) {
|
|
16601
|
+
return `${e}-trigger-${r}`;
|
|
16602
|
+
}
|
|
16603
|
+
function Sd(e, r) {
|
|
16604
|
+
return `${e}-content-${r}`;
|
|
16605
|
+
}
|
|
16606
|
+
var FC = pd, wd = hd, xd = yd, Id = vd;
|
|
16607
|
+
const tI = FC, DC = at("text-muted-foreground", {
|
|
16608
|
+
variants: {
|
|
16609
|
+
variant: {
|
|
16610
|
+
segmented: "inline-flex items-center justify-center rounded-control bg-muted",
|
|
16611
|
+
underline: "flex h-auto items-center gap-6 border-b border-border/60 bg-transparent p-0"
|
|
16612
|
+
},
|
|
16613
|
+
size: {
|
|
16614
|
+
// Applied via compoundVariants to segmented only — underline
|
|
16615
|
+
// deliberately has no size variant.
|
|
16616
|
+
default: "",
|
|
16617
|
+
sm: "",
|
|
16618
|
+
xs: ""
|
|
16619
|
+
}
|
|
16620
|
+
},
|
|
16621
|
+
compoundVariants: [
|
|
16622
|
+
{ variant: "segmented", size: "default", className: "h-10 p-1" },
|
|
16623
|
+
{ variant: "segmented", size: "sm", className: "h-8 p-0.5" },
|
|
16624
|
+
{
|
|
16625
|
+
variant: "segmented",
|
|
16626
|
+
size: "xs",
|
|
16627
|
+
className: "h-7 p-0.5"
|
|
16628
|
+
}
|
|
16629
|
+
],
|
|
16630
|
+
defaultVariants: {
|
|
16631
|
+
variant: "segmented",
|
|
16632
|
+
size: "default"
|
|
16633
|
+
}
|
|
16634
|
+
}), RC = at(
|
|
16635
|
+
"inline-flex items-center justify-center whitespace-nowrap font-medium ring-offset-background transition-all focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50",
|
|
16636
|
+
{
|
|
16637
|
+
variants: {
|
|
16638
|
+
variant: {
|
|
16639
|
+
segmented: "rounded-control focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",
|
|
16640
|
+
underline: "-mb-px border-b-2 border-transparent px-0.5 pb-2.5 text-[13px] font-normal hover:text-foreground focus-visible:text-foreground data-[state=active]:border-foreground data-[state=active]:font-medium data-[state=active]:text-foreground"
|
|
16641
|
+
},
|
|
16642
|
+
size: {
|
|
16643
|
+
default: "",
|
|
16644
|
+
sm: "",
|
|
16645
|
+
xs: ""
|
|
16646
|
+
}
|
|
16647
|
+
},
|
|
16648
|
+
compoundVariants: [
|
|
16649
|
+
{ variant: "segmented", size: "default", className: "px-3 py-1.5 text-sm" },
|
|
16650
|
+
{
|
|
16651
|
+
variant: "segmented",
|
|
16652
|
+
size: "sm",
|
|
16653
|
+
className: "px-2.5 py-1 text-[13px]"
|
|
16654
|
+
},
|
|
16655
|
+
{
|
|
16656
|
+
variant: "segmented",
|
|
16657
|
+
size: "xs",
|
|
16658
|
+
className: "px-2 py-0.5 text-[12px]"
|
|
16659
|
+
}
|
|
16660
|
+
],
|
|
16661
|
+
defaultVariants: {
|
|
16662
|
+
variant: "segmented",
|
|
16663
|
+
size: "default"
|
|
16664
|
+
}
|
|
16665
|
+
}
|
|
16666
|
+
), Ed = f.createContext({ variant: "segmented", size: "default" }), PC = f.forwardRef(({ className: e, variant: r, size: t, ...n }, o) => {
|
|
16667
|
+
const i = r ?? "segmented", a = t ?? "default";
|
|
16668
|
+
return /* @__PURE__ */ w(
|
|
16669
|
+
Ed.Provider,
|
|
16670
|
+
{
|
|
16671
|
+
value: { variant: i, size: a },
|
|
16672
|
+
children: /* @__PURE__ */ w(
|
|
16673
|
+
wd,
|
|
16674
|
+
{
|
|
16675
|
+
ref: o,
|
|
16676
|
+
className: ie(
|
|
16677
|
+
DC({
|
|
16678
|
+
variant: i,
|
|
16679
|
+
size: a
|
|
16680
|
+
}),
|
|
16681
|
+
e
|
|
16682
|
+
),
|
|
16683
|
+
...n
|
|
16684
|
+
}
|
|
16685
|
+
)
|
|
16686
|
+
}
|
|
16687
|
+
);
|
|
16688
|
+
});
|
|
16689
|
+
PC.displayName = wd.displayName;
|
|
16690
|
+
const _C = f.forwardRef(({ className: e, variant: r, size: t, ...n }, o) => {
|
|
16691
|
+
const i = f.useContext(Ed);
|
|
16692
|
+
return /* @__PURE__ */ w(
|
|
16693
|
+
xd,
|
|
16694
|
+
{
|
|
16695
|
+
ref: o,
|
|
16696
|
+
className: ie(
|
|
16697
|
+
RC({
|
|
16698
|
+
variant: r ?? i.variant,
|
|
16699
|
+
size: t ?? i.size
|
|
16700
|
+
}),
|
|
16701
|
+
e
|
|
16702
|
+
),
|
|
16703
|
+
...n
|
|
16704
|
+
}
|
|
16705
|
+
);
|
|
16706
|
+
});
|
|
16707
|
+
_C.displayName = xd.displayName;
|
|
16708
|
+
const OC = f.forwardRef(({ className: e, ...r }, t) => (
|
|
16709
|
+
// Radix sets `tabindex="0"` on content panels so keyboard users can
|
|
16710
|
+
// reach them. The default shadcn styling paints a 2px ring around the
|
|
16711
|
+
// whole panel on focus, which shows a thick outline around any card
|
|
16712
|
+
// rendered inside the panel. Inner controls have their own focus
|
|
16713
|
+
// indicators, so we suppress the panel-level halo entirely.
|
|
16714
|
+
/* @__PURE__ */ w(
|
|
16715
|
+
Id,
|
|
16716
|
+
{
|
|
16717
|
+
ref: t,
|
|
16718
|
+
className: ie(
|
|
16719
|
+
"mt-2 focus:outline-none focus-visible:outline-none",
|
|
16720
|
+
e
|
|
16721
|
+
),
|
|
16722
|
+
...r
|
|
16723
|
+
}
|
|
16724
|
+
)
|
|
16725
|
+
));
|
|
16726
|
+
OC.displayName = Id.displayName;
|
|
16727
|
+
function Td(e) {
|
|
16728
|
+
const r = f.useRef({ value: e, previous: e });
|
|
16729
|
+
return f.useMemo(() => (r.current.value !== e && (r.current.previous = r.current.value, r.current.value = e), r.current.previous), [e]);
|
|
16772
16730
|
}
|
|
16773
|
-
var NC = yd, kC = vd, LC = Sd, VC = wd, Fd = xd, Qx = Td;
|
|
16774
16731
|
function Qo(e, [r, t]) {
|
|
16775
16732
|
return Math.min(t, Math.max(r, e));
|
|
16776
16733
|
}
|
|
16777
16734
|
// @__NO_SIDE_EFFECTS__
|
|
16778
|
-
function
|
|
16779
|
-
const r = /* @__PURE__ */
|
|
16780
|
-
const { children: i, ...a } = n, s = f.Children.toArray(i), l = s.find(
|
|
16735
|
+
function MC(e) {
|
|
16736
|
+
const r = /* @__PURE__ */ NC(e), t = f.forwardRef((n, o) => {
|
|
16737
|
+
const { children: i, ...a } = n, s = f.Children.toArray(i), l = s.find(LC);
|
|
16781
16738
|
if (l) {
|
|
16782
16739
|
const c = l.props.children, d = s.map((u) => u === l ? f.Children.count(c) > 1 ? f.Children.only(null) : f.isValidElement(c) ? c.props.children : null : u);
|
|
16783
16740
|
return /* @__PURE__ */ w(r, { ...a, ref: o, children: f.isValidElement(c) ? f.cloneElement(c, void 0, d) : null });
|
|
@@ -16787,22 +16744,22 @@ function BC(e) {
|
|
|
16787
16744
|
return t.displayName = `${e}.Slot`, t;
|
|
16788
16745
|
}
|
|
16789
16746
|
// @__NO_SIDE_EFFECTS__
|
|
16790
|
-
function
|
|
16747
|
+
function NC(e) {
|
|
16791
16748
|
const r = f.forwardRef((t, n) => {
|
|
16792
16749
|
const { children: o, ...i } = t;
|
|
16793
16750
|
if (f.isValidElement(o)) {
|
|
16794
|
-
const a =
|
|
16751
|
+
const a = BC(o), s = VC(i, o.props);
|
|
16795
16752
|
return o.type !== f.Fragment && (s.ref = n ? Kt(n, a) : a), f.cloneElement(o, s);
|
|
16796
16753
|
}
|
|
16797
16754
|
return f.Children.count(o) > 1 ? f.Children.only(null) : null;
|
|
16798
16755
|
});
|
|
16799
16756
|
return r.displayName = `${e}.SlotClone`, r;
|
|
16800
16757
|
}
|
|
16801
|
-
var
|
|
16802
|
-
function
|
|
16803
|
-
return f.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
16758
|
+
var kC = Symbol("radix.slottable");
|
|
16759
|
+
function LC(e) {
|
|
16760
|
+
return f.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === kC;
|
|
16804
16761
|
}
|
|
16805
|
-
function
|
|
16762
|
+
function VC(e, r) {
|
|
16806
16763
|
const t = { ...r };
|
|
16807
16764
|
for (const n in r) {
|
|
16808
16765
|
const o = e[n], i = r[n];
|
|
@@ -16813,15 +16770,15 @@ function zC(e, r) {
|
|
|
16813
16770
|
}
|
|
16814
16771
|
return { ...e, ...t };
|
|
16815
16772
|
}
|
|
16816
|
-
function
|
|
16773
|
+
function BC(e) {
|
|
16817
16774
|
var n, o;
|
|
16818
16775
|
let r = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, t = r && "isReactWarning" in r && r.isReactWarning;
|
|
16819
16776
|
return t ? e.ref : (r = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
16820
16777
|
}
|
|
16821
|
-
var
|
|
16822
|
-
|
|
16778
|
+
var $C = [" ", "Enter", "ArrowUp", "ArrowDown"], UC = [" ", "Enter"], wt = "Select", [Yn, Hn, jC] = Xl(wt), [Jt] = Ke(wt, [
|
|
16779
|
+
jC,
|
|
16823
16780
|
Qt
|
|
16824
|
-
]), qn = Qt(), [
|
|
16781
|
+
]), qn = Qt(), [zC, lt] = Jt(wt), [YC, HC] = Jt(wt), Ad = (e) => {
|
|
16825
16782
|
const {
|
|
16826
16783
|
__scopeSelect: r,
|
|
16827
16784
|
children: t,
|
|
@@ -16849,7 +16806,7 @@ var HC = [" ", "Enter", "ArrowUp", "ArrowDown"], qC = [" ", "Enter"], wt = "Sele
|
|
|
16849
16806
|
caller: wt
|
|
16850
16807
|
}), R = f.useRef(null), P = b ? v || !!b.closest("form") : !0, [O, L] = f.useState(/* @__PURE__ */ new Set()), H = Array.from(O).map((N) => N.props.value).join(";");
|
|
16851
16808
|
return /* @__PURE__ */ w(Bi, { ...m, children: /* @__PURE__ */ be(
|
|
16852
|
-
|
|
16809
|
+
zC,
|
|
16853
16810
|
{
|
|
16854
16811
|
required: h,
|
|
16855
16812
|
scope: r,
|
|
@@ -16869,7 +16826,7 @@ var HC = [" ", "Enter", "ArrowUp", "ArrowDown"], qC = [" ", "Enter"], wt = "Sele
|
|
|
16869
16826
|
disabled: p,
|
|
16870
16827
|
children: [
|
|
16871
16828
|
/* @__PURE__ */ w(Yn.Provider, { scope: r, children: /* @__PURE__ */ w(
|
|
16872
|
-
|
|
16829
|
+
YC,
|
|
16873
16830
|
{
|
|
16874
16831
|
scope: e.__scopeSelect,
|
|
16875
16832
|
onNativeOptionAdd: f.useCallback((N) => {
|
|
@@ -16885,7 +16842,7 @@ var HC = [" ", "Enter", "ArrowUp", "ArrowDown"], qC = [" ", "Enter"], wt = "Sele
|
|
|
16885
16842
|
}
|
|
16886
16843
|
) }),
|
|
16887
16844
|
P ? /* @__PURE__ */ be(
|
|
16888
|
-
|
|
16845
|
+
Qd,
|
|
16889
16846
|
{
|
|
16890
16847
|
"aria-hidden": !0,
|
|
16891
16848
|
required: h,
|
|
@@ -16907,11 +16864,11 @@ var HC = [" ", "Enter", "ArrowUp", "ArrowDown"], qC = [" ", "Enter"], wt = "Sele
|
|
|
16907
16864
|
}
|
|
16908
16865
|
) });
|
|
16909
16866
|
};
|
|
16910
|
-
|
|
16911
|
-
var
|
|
16867
|
+
Ad.displayName = wt;
|
|
16868
|
+
var Fd = "SelectTrigger", Dd = f.forwardRef(
|
|
16912
16869
|
(e, r) => {
|
|
16913
|
-
const { __scopeSelect: t, disabled: n = !1, ...o } = e, i = qn(t), a = lt(
|
|
16914
|
-
const b = c().filter((y) => !y.disabled), C = b.find((y) => y.value === a.value), g =
|
|
16870
|
+
const { __scopeSelect: t, disabled: n = !1, ...o } = e, i = qn(t), a = lt(Fd, t), s = a.disabled || n, l = Z(r, a.onTriggerChange), c = Hn(t), d = f.useRef("touch"), [u, p, h] = eu((m) => {
|
|
16871
|
+
const b = c().filter((y) => !y.disabled), C = b.find((y) => y.value === a.value), g = tu(b, m, C);
|
|
16915
16872
|
g !== void 0 && a.onValueChange(g.value);
|
|
16916
16873
|
}), v = (m) => {
|
|
16917
16874
|
s || (a.onOpenChange(!0), h()), m && (a.triggerPointerDownPosRef.current = {
|
|
@@ -16932,7 +16889,7 @@ var Rd = "SelectTrigger", Pd = f.forwardRef(
|
|
|
16932
16889
|
"data-state": a.open ? "open" : "closed",
|
|
16933
16890
|
disabled: s,
|
|
16934
16891
|
"data-disabled": s ? "" : void 0,
|
|
16935
|
-
"data-placeholder":
|
|
16892
|
+
"data-placeholder": Jd(a.value) ? "" : void 0,
|
|
16936
16893
|
...o,
|
|
16937
16894
|
ref: l,
|
|
16938
16895
|
onClick: V(o.onClick, (m) => {
|
|
@@ -16945,16 +16902,16 @@ var Rd = "SelectTrigger", Pd = f.forwardRef(
|
|
|
16945
16902
|
}),
|
|
16946
16903
|
onKeyDown: V(o.onKeyDown, (m) => {
|
|
16947
16904
|
const b = u.current !== "";
|
|
16948
|
-
!(m.ctrlKey || m.altKey || m.metaKey) && m.key.length === 1 && p(m.key), !(b && m.key === " ") &&
|
|
16905
|
+
!(m.ctrlKey || m.altKey || m.metaKey) && m.key.length === 1 && p(m.key), !(b && m.key === " ") && $C.includes(m.key) && (v(), m.preventDefault());
|
|
16949
16906
|
})
|
|
16950
16907
|
}
|
|
16951
16908
|
) });
|
|
16952
16909
|
}
|
|
16953
16910
|
);
|
|
16954
|
-
|
|
16955
|
-
var
|
|
16911
|
+
Dd.displayName = Fd;
|
|
16912
|
+
var Rd = "SelectValue", Pd = f.forwardRef(
|
|
16956
16913
|
(e, r) => {
|
|
16957
|
-
const { __scopeSelect: t, className: n, style: o, children: i, placeholder: a = "", ...s } = e, l = lt(
|
|
16914
|
+
const { __scopeSelect: t, className: n, style: o, children: i, placeholder: a = "", ...s } = e, l = lt(Rd, t), { onValueNodeHasChildrenChange: c } = l, d = i !== void 0, u = Z(r, l.onValueNodeChange);
|
|
16958
16915
|
return pe(() => {
|
|
16959
16916
|
c(d);
|
|
16960
16917
|
}, [c, d]), /* @__PURE__ */ w(
|
|
@@ -16963,22 +16920,22 @@ var _d = "SelectValue", Od = f.forwardRef(
|
|
|
16963
16920
|
...s,
|
|
16964
16921
|
ref: u,
|
|
16965
16922
|
style: { pointerEvents: "none" },
|
|
16966
|
-
children:
|
|
16923
|
+
children: Jd(l.value) ? /* @__PURE__ */ w(Dr, { children: a }) : i
|
|
16967
16924
|
}
|
|
16968
16925
|
);
|
|
16969
16926
|
}
|
|
16970
16927
|
);
|
|
16971
|
-
|
|
16972
|
-
var
|
|
16928
|
+
Pd.displayName = Rd;
|
|
16929
|
+
var qC = "SelectIcon", _d = f.forwardRef(
|
|
16973
16930
|
(e, r) => {
|
|
16974
16931
|
const { __scopeSelect: t, children: n, ...o } = e;
|
|
16975
16932
|
return /* @__PURE__ */ w(q.span, { "aria-hidden": !0, ...o, ref: r, children: n || "▼" });
|
|
16976
16933
|
}
|
|
16977
16934
|
);
|
|
16978
|
-
|
|
16979
|
-
var
|
|
16980
|
-
|
|
16981
|
-
var xt = "SelectContent",
|
|
16935
|
+
_d.displayName = qC;
|
|
16936
|
+
var WC = "SelectPortal", Od = (e) => /* @__PURE__ */ w(Ln, { asChild: !0, ...e });
|
|
16937
|
+
Od.displayName = WC;
|
|
16938
|
+
var xt = "SelectContent", Md = f.forwardRef(
|
|
16982
16939
|
(e, r) => {
|
|
16983
16940
|
const t = lt(xt, e.__scopeSelect), [n, o] = f.useState();
|
|
16984
16941
|
if (pe(() => {
|
|
@@ -16986,15 +16943,15 @@ var xt = "SelectContent", kd = f.forwardRef(
|
|
|
16986
16943
|
}, []), !t.open) {
|
|
16987
16944
|
const i = n;
|
|
16988
16945
|
return i ? wn.createPortal(
|
|
16989
|
-
/* @__PURE__ */ w(
|
|
16946
|
+
/* @__PURE__ */ w(Nd, { scope: e.__scopeSelect, children: /* @__PURE__ */ w(Yn.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ w("div", { children: e.children }) }) }),
|
|
16990
16947
|
i
|
|
16991
16948
|
) : null;
|
|
16992
16949
|
}
|
|
16993
|
-
return /* @__PURE__ */ w(
|
|
16950
|
+
return /* @__PURE__ */ w(kd, { ...e, ref: r });
|
|
16994
16951
|
}
|
|
16995
16952
|
);
|
|
16996
|
-
|
|
16997
|
-
var Re = 10, [
|
|
16953
|
+
Md.displayName = xt;
|
|
16954
|
+
var Re = 10, [Nd, ct] = Jt(xt), GC = "SelectContentImpl", KC = /* @__PURE__ */ MC("SelectContent.RemoveScroll"), kd = f.forwardRef(
|
|
16998
16955
|
(e, r) => {
|
|
16999
16956
|
const {
|
|
17000
16957
|
__scopeSelect: t,
|
|
@@ -17059,8 +17016,8 @@ var Re = 10, [Ld, ct] = Jt(xt), JC = "SelectContentImpl", e0 = /* @__PURE__ */ B
|
|
|
17059
17016
|
window.removeEventListener("blur", k), window.removeEventListener("resize", k);
|
|
17060
17017
|
};
|
|
17061
17018
|
}, [_]);
|
|
17062
|
-
const [J, ee] =
|
|
17063
|
-
const W = P().filter((G) => !G.disabled), ae = W.find((G) => G.ref.current === document.activeElement), K =
|
|
17019
|
+
const [J, ee] = eu((k) => {
|
|
17020
|
+
const W = P().filter((G) => !G.disabled), ae = W.find((G) => G.ref.current === document.activeElement), K = tu(W, k, ae);
|
|
17064
17021
|
K && setTimeout(() => K.ref.current.focus());
|
|
17065
17022
|
}), se = f.useCallback(
|
|
17066
17023
|
(k, W, ae) => {
|
|
@@ -17074,7 +17031,7 @@ var Re = 10, [Ld, ct] = Jt(xt), JC = "SelectContentImpl", e0 = /* @__PURE__ */ B
|
|
|
17074
17031
|
(g.value !== void 0 && g.value === W || K) && R(k);
|
|
17075
17032
|
},
|
|
17076
17033
|
[g.value]
|
|
17077
|
-
), de = n === "popper" ? Jo :
|
|
17034
|
+
), de = n === "popper" ? Jo : Ld, me = de === Jo ? {
|
|
17078
17035
|
side: s,
|
|
17079
17036
|
sideOffset: l,
|
|
17080
17037
|
align: c,
|
|
@@ -17087,7 +17044,7 @@ var Re = 10, [Ld, ct] = Jt(xt), JC = "SelectContentImpl", e0 = /* @__PURE__ */ B
|
|
|
17087
17044
|
avoidCollisions: b
|
|
17088
17045
|
} : {};
|
|
17089
17046
|
return /* @__PURE__ */ w(
|
|
17090
|
-
|
|
17047
|
+
Nd,
|
|
17091
17048
|
{
|
|
17092
17049
|
scope: t,
|
|
17093
17050
|
content: y,
|
|
@@ -17102,7 +17059,7 @@ var Re = 10, [Ld, ct] = Jt(xt), JC = "SelectContentImpl", e0 = /* @__PURE__ */ B
|
|
|
17102
17059
|
position: n,
|
|
17103
17060
|
isPositioned: O,
|
|
17104
17061
|
searchRef: J,
|
|
17105
|
-
children: /* @__PURE__ */ w(ji, { as:
|
|
17062
|
+
children: /* @__PURE__ */ w(ji, { as: KC, allowPinchZoom: !0, children: /* @__PURE__ */ w(
|
|
17106
17063
|
Ri,
|
|
17107
17064
|
{
|
|
17108
17065
|
asChild: !0,
|
|
@@ -17164,8 +17121,8 @@ var Re = 10, [Ld, ct] = Jt(xt), JC = "SelectContentImpl", e0 = /* @__PURE__ */ B
|
|
|
17164
17121
|
);
|
|
17165
17122
|
}
|
|
17166
17123
|
);
|
|
17167
|
-
|
|
17168
|
-
var
|
|
17124
|
+
kd.displayName = GC;
|
|
17125
|
+
var XC = "SelectItemAlignedPosition", Ld = f.forwardRef((e, r) => {
|
|
17169
17126
|
const { __scopeSelect: t, onPlaced: n, ...o } = e, i = lt(xt, t), a = ct(xt, t), [s, l] = f.useState(null), [c, d] = f.useState(null), u = Z(r, (E) => d(E)), p = Hn(t), h = f.useRef(!1), v = f.useRef(!0), { viewport: m, selectedItem: b, selectedItemText: C, focusSelectedItem: g } = a, y = f.useCallback(() => {
|
|
17170
17127
|
if (i.trigger && i.valueNode && s && c && m && b && C) {
|
|
17171
17128
|
const E = i.trigger.getBoundingClientRect(), A = c.getBoundingClientRect(), T = i.valueNode.getBoundingClientRect(), D = C.getBoundingClientRect();
|
|
@@ -17233,7 +17190,7 @@ var t0 = "SelectItemAlignedPosition", Bd = f.forwardRef((e, r) => {
|
|
|
17233
17190
|
[y, g]
|
|
17234
17191
|
);
|
|
17235
17192
|
return /* @__PURE__ */ w(
|
|
17236
|
-
|
|
17193
|
+
QC,
|
|
17237
17194
|
{
|
|
17238
17195
|
scope: t,
|
|
17239
17196
|
contentWrapper: s,
|
|
@@ -17269,8 +17226,8 @@ var t0 = "SelectItemAlignedPosition", Bd = f.forwardRef((e, r) => {
|
|
|
17269
17226
|
}
|
|
17270
17227
|
);
|
|
17271
17228
|
});
|
|
17272
|
-
|
|
17273
|
-
var
|
|
17229
|
+
Ld.displayName = XC;
|
|
17230
|
+
var ZC = "SelectPopperPosition", Jo = f.forwardRef((e, r) => {
|
|
17274
17231
|
const {
|
|
17275
17232
|
__scopeSelect: t,
|
|
17276
17233
|
align: n = "start",
|
|
@@ -17298,8 +17255,8 @@ var r0 = "SelectPopperPosition", Jo = f.forwardRef((e, r) => {
|
|
|
17298
17255
|
}
|
|
17299
17256
|
);
|
|
17300
17257
|
});
|
|
17301
|
-
Jo.displayName =
|
|
17302
|
-
var [
|
|
17258
|
+
Jo.displayName = ZC;
|
|
17259
|
+
var [QC, Wi] = Jt(xt, {}), ei = "SelectViewport", Vd = f.forwardRef(
|
|
17303
17260
|
(e, r) => {
|
|
17304
17261
|
const { __scopeSelect: t, nonce: n, ...o } = e, i = ct(ei, t), a = Wi(ei, t), s = Z(r, i.onViewportChange), l = f.useRef(0);
|
|
17305
17262
|
return /* @__PURE__ */ be(Dr, { children: [
|
|
@@ -17351,22 +17308,22 @@ var [n0, Wi] = Jt(xt, {}), ei = "SelectViewport", $d = f.forwardRef(
|
|
|
17351
17308
|
] });
|
|
17352
17309
|
}
|
|
17353
17310
|
);
|
|
17354
|
-
|
|
17355
|
-
var
|
|
17311
|
+
Vd.displayName = ei;
|
|
17312
|
+
var Bd = "SelectGroup", [JC, e0] = Jt(Bd), $d = f.forwardRef(
|
|
17356
17313
|
(e, r) => {
|
|
17357
17314
|
const { __scopeSelect: t, ...n } = e, o = Tt();
|
|
17358
|
-
return /* @__PURE__ */ w(
|
|
17315
|
+
return /* @__PURE__ */ w(JC, { scope: t, id: o, children: /* @__PURE__ */ w(q.div, { role: "group", "aria-labelledby": o, ...n, ref: r }) });
|
|
17359
17316
|
}
|
|
17360
17317
|
);
|
|
17361
|
-
|
|
17362
|
-
var
|
|
17318
|
+
$d.displayName = Bd;
|
|
17319
|
+
var Ud = "SelectLabel", jd = f.forwardRef(
|
|
17363
17320
|
(e, r) => {
|
|
17364
|
-
const { __scopeSelect: t, ...n } = e, o =
|
|
17321
|
+
const { __scopeSelect: t, ...n } = e, o = e0(Ud, t);
|
|
17365
17322
|
return /* @__PURE__ */ w(q.div, { id: o.id, ...n, ref: r });
|
|
17366
17323
|
}
|
|
17367
17324
|
);
|
|
17368
|
-
|
|
17369
|
-
var vn = "SelectItem", [
|
|
17325
|
+
jd.displayName = Ud;
|
|
17326
|
+
var vn = "SelectItem", [t0, zd] = Jt(vn), Yd = f.forwardRef(
|
|
17370
17327
|
(e, r) => {
|
|
17371
17328
|
const {
|
|
17372
17329
|
__scopeSelect: t,
|
|
@@ -17388,7 +17345,7 @@ var vn = "SelectItem", [a0, Hd] = Jt(vn), qd = f.forwardRef(
|
|
|
17388
17345
|
"A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
|
|
17389
17346
|
);
|
|
17390
17347
|
return /* @__PURE__ */ w(
|
|
17391
|
-
|
|
17348
|
+
t0,
|
|
17392
17349
|
{
|
|
17393
17350
|
scope: t,
|
|
17394
17351
|
value: n,
|
|
@@ -17439,7 +17396,7 @@ var vn = "SelectItem", [a0, Hd] = Jt(vn), qd = f.forwardRef(
|
|
|
17439
17396
|
}),
|
|
17440
17397
|
onKeyDown: V(a.onKeyDown, (g) => {
|
|
17441
17398
|
var S;
|
|
17442
|
-
((S = l.searchRef) == null ? void 0 : S.current) !== "" && g.key === " " || (
|
|
17399
|
+
((S = l.searchRef) == null ? void 0 : S.current) !== "" && g.key === " " || (UC.includes(g.key) && C(), g.key === " " && g.preventDefault());
|
|
17443
17400
|
})
|
|
17444
17401
|
}
|
|
17445
17402
|
)
|
|
@@ -17449,10 +17406,10 @@ var vn = "SelectItem", [a0, Hd] = Jt(vn), qd = f.forwardRef(
|
|
|
17449
17406
|
);
|
|
17450
17407
|
}
|
|
17451
17408
|
);
|
|
17452
|
-
|
|
17453
|
-
var yr = "SelectItemText",
|
|
17409
|
+
Yd.displayName = vn;
|
|
17410
|
+
var yr = "SelectItemText", Hd = f.forwardRef(
|
|
17454
17411
|
(e, r) => {
|
|
17455
|
-
const { __scopeSelect: t, className: n, style: o, ...i } = e, a = lt(yr, t), s = ct(yr, t), l =
|
|
17412
|
+
const { __scopeSelect: t, className: n, style: o, ...i } = e, a = lt(yr, t), s = ct(yr, t), l = zd(yr, t), c = HC(yr, t), [d, u] = f.useState(null), p = Z(
|
|
17456
17413
|
r,
|
|
17457
17414
|
(C) => u(C),
|
|
17458
17415
|
l.onItemTextChange,
|
|
@@ -17470,15 +17427,15 @@ var yr = "SelectItemText", Wd = f.forwardRef(
|
|
|
17470
17427
|
] });
|
|
17471
17428
|
}
|
|
17472
17429
|
);
|
|
17473
|
-
|
|
17474
|
-
var
|
|
17430
|
+
Hd.displayName = yr;
|
|
17431
|
+
var qd = "SelectItemIndicator", Wd = f.forwardRef(
|
|
17475
17432
|
(e, r) => {
|
|
17476
17433
|
const { __scopeSelect: t, ...n } = e;
|
|
17477
|
-
return
|
|
17434
|
+
return zd(qd, t).isSelected ? /* @__PURE__ */ w(q.span, { "aria-hidden": !0, ...n, ref: r }) : null;
|
|
17478
17435
|
}
|
|
17479
17436
|
);
|
|
17480
|
-
|
|
17481
|
-
var ti = "SelectScrollUpButton",
|
|
17437
|
+
Wd.displayName = qd;
|
|
17438
|
+
var ti = "SelectScrollUpButton", Gd = f.forwardRef((e, r) => {
|
|
17482
17439
|
const t = ct(ti, e.__scopeSelect), n = Wi(ti, e.__scopeSelect), [o, i] = f.useState(!1), a = Z(r, n.onScrollButtonChange);
|
|
17483
17440
|
return pe(() => {
|
|
17484
17441
|
if (t.viewport && t.isPositioned) {
|
|
@@ -17490,7 +17447,7 @@ var ti = "SelectScrollUpButton", Xd = f.forwardRef((e, r) => {
|
|
|
17490
17447
|
return s(), l.addEventListener("scroll", s), () => l.removeEventListener("scroll", s);
|
|
17491
17448
|
}
|
|
17492
17449
|
}, [t.viewport, t.isPositioned]), o ? /* @__PURE__ */ w(
|
|
17493
|
-
|
|
17450
|
+
Xd,
|
|
17494
17451
|
{
|
|
17495
17452
|
...e,
|
|
17496
17453
|
ref: a,
|
|
@@ -17501,8 +17458,8 @@ var ti = "SelectScrollUpButton", Xd = f.forwardRef((e, r) => {
|
|
|
17501
17458
|
}
|
|
17502
17459
|
) : null;
|
|
17503
17460
|
});
|
|
17504
|
-
|
|
17505
|
-
var ri = "SelectScrollDownButton",
|
|
17461
|
+
Gd.displayName = ti;
|
|
17462
|
+
var ri = "SelectScrollDownButton", Kd = f.forwardRef((e, r) => {
|
|
17506
17463
|
const t = ct(ri, e.__scopeSelect), n = Wi(ri, e.__scopeSelect), [o, i] = f.useState(!1), a = Z(r, n.onScrollButtonChange);
|
|
17507
17464
|
return pe(() => {
|
|
17508
17465
|
if (t.viewport && t.isPositioned) {
|
|
@@ -17514,7 +17471,7 @@ var ri = "SelectScrollDownButton", Zd = f.forwardRef((e, r) => {
|
|
|
17514
17471
|
return s(), l.addEventListener("scroll", s), () => l.removeEventListener("scroll", s);
|
|
17515
17472
|
}
|
|
17516
17473
|
}, [t.viewport, t.isPositioned]), o ? /* @__PURE__ */ w(
|
|
17517
|
-
|
|
17474
|
+
Xd,
|
|
17518
17475
|
{
|
|
17519
17476
|
...e,
|
|
17520
17477
|
ref: a,
|
|
@@ -17525,8 +17482,8 @@ var ri = "SelectScrollDownButton", Zd = f.forwardRef((e, r) => {
|
|
|
17525
17482
|
}
|
|
17526
17483
|
) : null;
|
|
17527
17484
|
});
|
|
17528
|
-
|
|
17529
|
-
var
|
|
17485
|
+
Kd.displayName = ri;
|
|
17486
|
+
var Xd = f.forwardRef((e, r) => {
|
|
17530
17487
|
const { __scopeSelect: t, onAutoScroll: n, ...o } = e, i = ct("SelectScrollButton", t), a = f.useRef(null), s = Hn(t), l = f.useCallback(() => {
|
|
17531
17488
|
a.current !== null && (window.clearInterval(a.current), a.current = null);
|
|
17532
17489
|
}, []);
|
|
@@ -17553,23 +17510,23 @@ var Qd = f.forwardRef((e, r) => {
|
|
|
17553
17510
|
})
|
|
17554
17511
|
}
|
|
17555
17512
|
);
|
|
17556
|
-
}),
|
|
17513
|
+
}), r0 = "SelectSeparator", Zd = f.forwardRef(
|
|
17557
17514
|
(e, r) => {
|
|
17558
17515
|
const { __scopeSelect: t, ...n } = e;
|
|
17559
17516
|
return /* @__PURE__ */ w(q.div, { "aria-hidden": !0, ...n, ref: r });
|
|
17560
17517
|
}
|
|
17561
17518
|
);
|
|
17562
|
-
|
|
17563
|
-
var ni = "SelectArrow",
|
|
17519
|
+
Zd.displayName = r0;
|
|
17520
|
+
var ni = "SelectArrow", n0 = f.forwardRef(
|
|
17564
17521
|
(e, r) => {
|
|
17565
17522
|
const { __scopeSelect: t, ...n } = e, o = qn(t), i = lt(ni, t), a = ct(ni, t);
|
|
17566
17523
|
return i.open && a.position === "popper" ? /* @__PURE__ */ w(Ui, { ...o, ...n, ref: r }) : null;
|
|
17567
17524
|
}
|
|
17568
17525
|
);
|
|
17569
|
-
|
|
17570
|
-
var
|
|
17526
|
+
n0.displayName = ni;
|
|
17527
|
+
var o0 = "SelectBubbleInput", Qd = f.forwardRef(
|
|
17571
17528
|
({ __scopeSelect: e, value: r, ...t }, n) => {
|
|
17572
|
-
const o = f.useRef(null), i = Z(n, o), a =
|
|
17529
|
+
const o = f.useRef(null), i = Z(n, o), a = Td(r);
|
|
17573
17530
|
return f.useEffect(() => {
|
|
17574
17531
|
const s = o.current;
|
|
17575
17532
|
if (!s) return;
|
|
@@ -17592,11 +17549,11 @@ var c0 = "SelectBubbleInput", eu = f.forwardRef(
|
|
|
17592
17549
|
);
|
|
17593
17550
|
}
|
|
17594
17551
|
);
|
|
17595
|
-
|
|
17596
|
-
function
|
|
17552
|
+
Qd.displayName = o0;
|
|
17553
|
+
function Jd(e) {
|
|
17597
17554
|
return e === "" || e === void 0;
|
|
17598
17555
|
}
|
|
17599
|
-
function
|
|
17556
|
+
function eu(e) {
|
|
17600
17557
|
const r = ge(e), t = f.useRef(""), n = f.useRef(0), o = f.useCallback(
|
|
17601
17558
|
(a) => {
|
|
17602
17559
|
const s = t.current + a;
|
|
@@ -17610,20 +17567,20 @@ function ru(e) {
|
|
|
17610
17567
|
}, []);
|
|
17611
17568
|
return f.useEffect(() => () => window.clearTimeout(n.current), []), [t, o, i];
|
|
17612
17569
|
}
|
|
17613
|
-
function
|
|
17570
|
+
function tu(e, r, t) {
|
|
17614
17571
|
const o = r.length > 1 && Array.from(r).every((c) => c === r[0]) ? r[0] : r, i = t ? e.indexOf(t) : -1;
|
|
17615
|
-
let a =
|
|
17572
|
+
let a = i0(e, Math.max(i, 0));
|
|
17616
17573
|
o.length === 1 && (a = a.filter((c) => c !== t));
|
|
17617
17574
|
const l = a.find(
|
|
17618
17575
|
(c) => c.textValue.toLowerCase().startsWith(o.toLowerCase())
|
|
17619
17576
|
);
|
|
17620
17577
|
return l !== t ? l : void 0;
|
|
17621
17578
|
}
|
|
17622
|
-
function
|
|
17579
|
+
function i0(e, r) {
|
|
17623
17580
|
return e.map((t, n) => e[(r + n) % e.length]);
|
|
17624
17581
|
}
|
|
17625
|
-
var
|
|
17626
|
-
const
|
|
17582
|
+
var a0 = Ad, ru = Dd, s0 = Pd, l0 = _d, c0 = Od, nu = Md, d0 = Vd, u0 = $d, ou = jd, iu = Yd, f0 = Hd, p0 = Wd, au = Gd, su = Kd, lu = Zd;
|
|
17583
|
+
const rI = a0, nI = u0, oI = s0, m0 = at(
|
|
17627
17584
|
// Border-only focus (no outset ring) — mirrors Input / Textarea so
|
|
17628
17585
|
// focus chrome is consistent across form primitives and never gets
|
|
17629
17586
|
// clipped by tight parent containers. See CHANGES.md.
|
|
@@ -17644,15 +17601,15 @@ const Jx = u0, eI = g0, tI = f0, v0 = at(
|
|
|
17644
17601
|
size: "default"
|
|
17645
17602
|
}
|
|
17646
17603
|
}
|
|
17647
|
-
),
|
|
17648
|
-
|
|
17604
|
+
), h0 = f.forwardRef(({ className: e, children: r, size: t, ...n }, o) => /* @__PURE__ */ be(
|
|
17605
|
+
ru,
|
|
17649
17606
|
{
|
|
17650
17607
|
ref: o,
|
|
17651
|
-
className: ie(
|
|
17608
|
+
className: ie(m0({ size: t, className: e })),
|
|
17652
17609
|
...n,
|
|
17653
17610
|
children: [
|
|
17654
17611
|
r,
|
|
17655
|
-
/* @__PURE__ */ w(
|
|
17612
|
+
/* @__PURE__ */ w(l0, { asChild: !0, children: /* @__PURE__ */ w(
|
|
17656
17613
|
Wl,
|
|
17657
17614
|
{
|
|
17658
17615
|
className: ie(
|
|
@@ -17664,9 +17621,9 @@ const Jx = u0, eI = g0, tI = f0, v0 = at(
|
|
|
17664
17621
|
]
|
|
17665
17622
|
}
|
|
17666
17623
|
));
|
|
17667
|
-
|
|
17668
|
-
const
|
|
17669
|
-
|
|
17624
|
+
h0.displayName = ru.displayName;
|
|
17625
|
+
const cu = f.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ w(
|
|
17626
|
+
au,
|
|
17670
17627
|
{
|
|
17671
17628
|
ref: t,
|
|
17672
17629
|
className: ie(
|
|
@@ -17677,9 +17634,9 @@ const uu = f.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ w(
|
|
|
17677
17634
|
children: /* @__PURE__ */ w(Tg, { className: "h-3.5 w-3.5" })
|
|
17678
17635
|
}
|
|
17679
17636
|
));
|
|
17680
|
-
|
|
17681
|
-
const
|
|
17682
|
-
|
|
17637
|
+
cu.displayName = au.displayName;
|
|
17638
|
+
const du = f.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ w(
|
|
17639
|
+
su,
|
|
17683
17640
|
{
|
|
17684
17641
|
ref: t,
|
|
17685
17642
|
className: ie(
|
|
@@ -17690,9 +17647,9 @@ const fu = f.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ w(
|
|
|
17690
17647
|
children: /* @__PURE__ */ w(Wl, { className: "h-3.5 w-3.5" })
|
|
17691
17648
|
}
|
|
17692
17649
|
));
|
|
17693
|
-
|
|
17694
|
-
const
|
|
17695
|
-
|
|
17650
|
+
du.displayName = su.displayName;
|
|
17651
|
+
const g0 = f.forwardRef(({ className: e, children: r, position: t = "popper", ...n }, o) => /* @__PURE__ */ w(c0, { children: /* @__PURE__ */ w(Bn, { children: /* @__PURE__ */ be(
|
|
17652
|
+
nu,
|
|
17696
17653
|
{
|
|
17697
17654
|
ref: o,
|
|
17698
17655
|
className: ie(
|
|
@@ -17703,9 +17660,9 @@ const S0 = f.forwardRef(({ className: e, children: r, position: t = "popper", ..
|
|
|
17703
17660
|
position: t,
|
|
17704
17661
|
...n,
|
|
17705
17662
|
children: [
|
|
17706
|
-
/* @__PURE__ */ w(
|
|
17663
|
+
/* @__PURE__ */ w(cu, {}),
|
|
17707
17664
|
/* @__PURE__ */ w(
|
|
17708
|
-
|
|
17665
|
+
d0,
|
|
17709
17666
|
{
|
|
17710
17667
|
className: ie(
|
|
17711
17668
|
"p-1",
|
|
@@ -17714,16 +17671,16 @@ const S0 = f.forwardRef(({ className: e, children: r, position: t = "popper", ..
|
|
|
17714
17671
|
children: r
|
|
17715
17672
|
}
|
|
17716
17673
|
),
|
|
17717
|
-
/* @__PURE__ */ w(
|
|
17674
|
+
/* @__PURE__ */ w(du, {})
|
|
17718
17675
|
]
|
|
17719
17676
|
}
|
|
17720
17677
|
) }) }));
|
|
17721
|
-
|
|
17722
|
-
const
|
|
17678
|
+
g0.displayName = nu.displayName;
|
|
17679
|
+
const y0 = f.forwardRef(({ className: e, ...r }, t) => (
|
|
17723
17680
|
// Caption treatment — matches DropdownMenuLabel (see CHANGES.md).
|
|
17724
17681
|
// Group labels read as section headers, not yet-another item.
|
|
17725
17682
|
/* @__PURE__ */ w(
|
|
17726
|
-
|
|
17683
|
+
ou,
|
|
17727
17684
|
{
|
|
17728
17685
|
ref: t,
|
|
17729
17686
|
className: ie(
|
|
@@ -17734,9 +17691,9 @@ const w0 = f.forwardRef(({ className: e, ...r }, t) => (
|
|
|
17734
17691
|
}
|
|
17735
17692
|
)
|
|
17736
17693
|
));
|
|
17737
|
-
|
|
17738
|
-
const
|
|
17739
|
-
|
|
17694
|
+
y0.displayName = ou.displayName;
|
|
17695
|
+
const b0 = f.forwardRef(({ className: e, children: r, ...t }, n) => /* @__PURE__ */ be(
|
|
17696
|
+
iu,
|
|
17740
17697
|
{
|
|
17741
17698
|
ref: n,
|
|
17742
17699
|
className: ie(
|
|
@@ -17745,17 +17702,17 @@ const x0 = f.forwardRef(({ className: e, children: r, ...t }, n) => /* @__PURE__
|
|
|
17745
17702
|
),
|
|
17746
17703
|
...t,
|
|
17747
17704
|
children: [
|
|
17748
|
-
/* @__PURE__ */ w("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ w(
|
|
17749
|
-
/* @__PURE__ */ w(
|
|
17705
|
+
/* @__PURE__ */ w("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ w(p0, { children: /* @__PURE__ */ w(Eg, { className: "h-3.5 w-3.5" }) }) }),
|
|
17706
|
+
/* @__PURE__ */ w(f0, { children: r })
|
|
17750
17707
|
]
|
|
17751
17708
|
}
|
|
17752
17709
|
));
|
|
17753
|
-
|
|
17754
|
-
const
|
|
17710
|
+
b0.displayName = iu.displayName;
|
|
17711
|
+
const v0 = f.forwardRef(({ className: e, ...r }, t) => (
|
|
17755
17712
|
// `--muted` is zinc-50 against popover — invisible. `--border` is
|
|
17756
17713
|
// the visible hairline (same fix as DropdownMenuSeparator).
|
|
17757
17714
|
/* @__PURE__ */ w(
|
|
17758
|
-
|
|
17715
|
+
lu,
|
|
17759
17716
|
{
|
|
17760
17717
|
ref: t,
|
|
17761
17718
|
className: ie("-mx-1 my-1 h-px bg-border", e),
|
|
@@ -17763,11 +17720,69 @@ const I0 = f.forwardRef(({ className: e, ...r }, t) => (
|
|
|
17763
17720
|
}
|
|
17764
17721
|
)
|
|
17765
17722
|
));
|
|
17766
|
-
|
|
17767
|
-
|
|
17723
|
+
v0.displayName = lu.displayName;
|
|
17724
|
+
var C0 = [
|
|
17725
|
+
"a",
|
|
17726
|
+
"button",
|
|
17727
|
+
"div",
|
|
17728
|
+
"form",
|
|
17729
|
+
"h2",
|
|
17730
|
+
"h3",
|
|
17731
|
+
"img",
|
|
17732
|
+
"input",
|
|
17733
|
+
"label",
|
|
17734
|
+
"li",
|
|
17735
|
+
"nav",
|
|
17736
|
+
"ol",
|
|
17737
|
+
"p",
|
|
17738
|
+
"select",
|
|
17739
|
+
"span",
|
|
17740
|
+
"svg",
|
|
17741
|
+
"ul"
|
|
17742
|
+
], S0 = C0.reduce((e, r) => {
|
|
17743
|
+
const t = /* @__PURE__ */ Di(`Primitive.${r}`), n = f.forwardRef((o, i) => {
|
|
17744
|
+
const { asChild: a, ...s } = o, l = a ? t : r;
|
|
17745
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ w(l, { ...s, ref: i });
|
|
17746
|
+
});
|
|
17747
|
+
return n.displayName = `Primitive.${r}`, { ...e, [r]: n };
|
|
17748
|
+
}, {}), w0 = "Separator", ys = "horizontal", x0 = ["horizontal", "vertical"], uu = f.forwardRef((e, r) => {
|
|
17749
|
+
const { decorative: t, orientation: n = ys, ...o } = e, i = I0(n) ? n : ys, s = t ? { role: "none" } : { "aria-orientation": i === "vertical" ? i : void 0, role: "separator" };
|
|
17750
|
+
return /* @__PURE__ */ w(
|
|
17751
|
+
S0.div,
|
|
17752
|
+
{
|
|
17753
|
+
"data-orientation": i,
|
|
17754
|
+
...s,
|
|
17755
|
+
...o,
|
|
17756
|
+
ref: r
|
|
17757
|
+
}
|
|
17758
|
+
);
|
|
17759
|
+
});
|
|
17760
|
+
uu.displayName = w0;
|
|
17761
|
+
function I0(e) {
|
|
17762
|
+
return x0.includes(e);
|
|
17763
|
+
}
|
|
17764
|
+
var fu = uu;
|
|
17765
|
+
const E0 = f.forwardRef(
|
|
17766
|
+
({ className: e, orientation: r = "horizontal", decorative: t = !0, ...n }, o) => /* @__PURE__ */ w(
|
|
17767
|
+
fu,
|
|
17768
|
+
{
|
|
17769
|
+
ref: o,
|
|
17770
|
+
decorative: t,
|
|
17771
|
+
orientation: r,
|
|
17772
|
+
className: ie(
|
|
17773
|
+
"shrink-0 bg-border",
|
|
17774
|
+
r === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
17775
|
+
e
|
|
17776
|
+
),
|
|
17777
|
+
...n
|
|
17778
|
+
}
|
|
17779
|
+
)
|
|
17780
|
+
);
|
|
17781
|
+
E0.displayName = fu.displayName;
|
|
17782
|
+
function T0(e, r) {
|
|
17768
17783
|
return f.useReducer((t, n) => r[t][n] ?? t, e);
|
|
17769
17784
|
}
|
|
17770
|
-
var Gi = "ScrollArea", [pu] = Ke(Gi), [
|
|
17785
|
+
var Gi = "ScrollArea", [pu] = Ke(Gi), [A0, Fe] = pu(Gi), mu = f.forwardRef(
|
|
17771
17786
|
(e, r) => {
|
|
17772
17787
|
const {
|
|
17773
17788
|
__scopeScrollArea: t,
|
|
@@ -17777,7 +17792,7 @@ var Gi = "ScrollArea", [pu] = Ke(Gi), [T0, Fe] = pu(Gi), mu = f.forwardRef(
|
|
|
17777
17792
|
...a
|
|
17778
17793
|
} = e, [s, l] = f.useState(null), [c, d] = f.useState(null), [u, p] = f.useState(null), [h, v] = f.useState(null), [m, b] = f.useState(null), [C, g] = f.useState(0), [y, S] = f.useState(0), [x, I] = f.useState(!1), [E, A] = f.useState(!1), T = Z(r, (R) => l(R)), D = Rn(o);
|
|
17779
17794
|
return /* @__PURE__ */ w(
|
|
17780
|
-
|
|
17795
|
+
A0,
|
|
17781
17796
|
{
|
|
17782
17797
|
scope: t,
|
|
17783
17798
|
type: n,
|
|
@@ -17865,11 +17880,11 @@ var Ue = "ScrollAreaScrollbar", Ki = f.forwardRef(
|
|
|
17865
17880
|
const { forceMount: t, ...n } = e, o = Fe(Ue, e.__scopeScrollArea), { onScrollbarXEnabledChange: i, onScrollbarYEnabledChange: a } = o, s = e.orientation === "horizontal";
|
|
17866
17881
|
return f.useEffect(() => (s ? i(!0) : a(!0), () => {
|
|
17867
17882
|
s ? i(!1) : a(!1);
|
|
17868
|
-
}), [s, i, a]), o.type === "hover" ? /* @__PURE__ */ w(
|
|
17883
|
+
}), [s, i, a]), o.type === "hover" ? /* @__PURE__ */ w(F0, { ...n, ref: r, forceMount: t }) : o.type === "scroll" ? /* @__PURE__ */ w(D0, { ...n, ref: r, forceMount: t }) : o.type === "auto" ? /* @__PURE__ */ w(yu, { ...n, ref: r, forceMount: t }) : o.type === "always" ? /* @__PURE__ */ w(Xi, { ...n, ref: r }) : null;
|
|
17869
17884
|
}
|
|
17870
17885
|
);
|
|
17871
17886
|
Ki.displayName = Ue;
|
|
17872
|
-
var
|
|
17887
|
+
var F0 = f.forwardRef((e, r) => {
|
|
17873
17888
|
const { forceMount: t, ...n } = e, o = Fe(Ue, e.__scopeScrollArea), [i, a] = f.useState(!1);
|
|
17874
17889
|
return f.useEffect(() => {
|
|
17875
17890
|
const s = o.scrollArea;
|
|
@@ -17892,8 +17907,8 @@ var A0 = f.forwardRef((e, r) => {
|
|
|
17892
17907
|
ref: r
|
|
17893
17908
|
}
|
|
17894
17909
|
) });
|
|
17895
|
-
}),
|
|
17896
|
-
const { forceMount: t, ...n } = e, o = Fe(Ue, e.__scopeScrollArea), i = e.orientation === "horizontal", a = Gn(() => l("SCROLL_END"), 100), [s, l] =
|
|
17910
|
+
}), D0 = f.forwardRef((e, r) => {
|
|
17911
|
+
const { forceMount: t, ...n } = e, o = Fe(Ue, e.__scopeScrollArea), i = e.orientation === "horizontal", a = Gn(() => l("SCROLL_END"), 100), [s, l] = T0("hidden", {
|
|
17897
17912
|
hidden: {
|
|
17898
17913
|
SCROLL: "scrolling"
|
|
17899
17914
|
},
|
|
@@ -17966,10 +17981,10 @@ var A0 = f.forwardRef((e, r) => {
|
|
|
17966
17981
|
onThumbPointerDown: (p) => a.current = p
|
|
17967
17982
|
};
|
|
17968
17983
|
function u(p, h) {
|
|
17969
|
-
return
|
|
17984
|
+
return N0(p, a.current, s, h);
|
|
17970
17985
|
}
|
|
17971
17986
|
return t === "horizontal" ? /* @__PURE__ */ w(
|
|
17972
|
-
|
|
17987
|
+
R0,
|
|
17973
17988
|
{
|
|
17974
17989
|
...d,
|
|
17975
17990
|
ref: r,
|
|
@@ -17987,7 +18002,7 @@ var A0 = f.forwardRef((e, r) => {
|
|
|
17987
18002
|
}
|
|
17988
18003
|
}
|
|
17989
18004
|
) : t === "vertical" ? /* @__PURE__ */ w(
|
|
17990
|
-
|
|
18005
|
+
P0,
|
|
17991
18006
|
{
|
|
17992
18007
|
...d,
|
|
17993
18008
|
ref: r,
|
|
@@ -18005,7 +18020,7 @@ var A0 = f.forwardRef((e, r) => {
|
|
|
18005
18020
|
}
|
|
18006
18021
|
}
|
|
18007
18022
|
) : null;
|
|
18008
|
-
}),
|
|
18023
|
+
}), R0 = f.forwardRef((e, r) => {
|
|
18009
18024
|
const { sizes: t, onSizesChange: n, ...o } = e, i = Fe(Ue, e.__scopeScrollArea), [a, s] = f.useState(), l = f.useRef(null), c = Z(r, l, i.onScrollbarXChange);
|
|
18010
18025
|
return f.useEffect(() => {
|
|
18011
18026
|
l.current && s(getComputedStyle(l.current));
|
|
@@ -18044,7 +18059,7 @@ var A0 = f.forwardRef((e, r) => {
|
|
|
18044
18059
|
}
|
|
18045
18060
|
}
|
|
18046
18061
|
);
|
|
18047
|
-
}),
|
|
18062
|
+
}), P0 = f.forwardRef((e, r) => {
|
|
18048
18063
|
const { sizes: t, onSizesChange: n, ...o } = e, i = Fe(Ue, e.__scopeScrollArea), [a, s] = f.useState(), l = f.useRef(null), c = Z(r, l, i.onScrollbarYChange);
|
|
18049
18064
|
return f.useEffect(() => {
|
|
18050
18065
|
l.current && s(getComputedStyle(l.current));
|
|
@@ -18084,7 +18099,7 @@ var A0 = f.forwardRef((e, r) => {
|
|
|
18084
18099
|
}
|
|
18085
18100
|
}
|
|
18086
18101
|
);
|
|
18087
|
-
}), [
|
|
18102
|
+
}), [_0, bu] = pu(Ue), vu = f.forwardRef((e, r) => {
|
|
18088
18103
|
const {
|
|
18089
18104
|
__scopeScrollArea: t,
|
|
18090
18105
|
sizes: n,
|
|
@@ -18111,7 +18126,7 @@ var A0 = f.forwardRef((e, r) => {
|
|
|
18111
18126
|
};
|
|
18112
18127
|
return document.addEventListener("wheel", T, { passive: !1 }), () => document.removeEventListener("wheel", T, { passive: !1 });
|
|
18113
18128
|
}, [y, v, S, x]), f.useEffect(I, [n, I]), qt(v, E), qt(h.content, E), /* @__PURE__ */ w(
|
|
18114
|
-
|
|
18129
|
+
_0,
|
|
18115
18130
|
{
|
|
18116
18131
|
scope: t,
|
|
18117
18132
|
scrollbar: v,
|
|
@@ -18141,9 +18156,9 @@ var A0 = f.forwardRef((e, r) => {
|
|
|
18141
18156
|
}), Cn = "ScrollAreaThumb", Cu = f.forwardRef(
|
|
18142
18157
|
(e, r) => {
|
|
18143
18158
|
const { forceMount: t, ...n } = e, o = bu(Cn, e.__scopeScrollArea);
|
|
18144
|
-
return /* @__PURE__ */ w($e, { present: t || o.hasThumb, children: /* @__PURE__ */ w(
|
|
18159
|
+
return /* @__PURE__ */ w($e, { present: t || o.hasThumb, children: /* @__PURE__ */ w(O0, { ref: r, ...n }) });
|
|
18145
18160
|
}
|
|
18146
|
-
),
|
|
18161
|
+
), O0 = f.forwardRef(
|
|
18147
18162
|
(e, r) => {
|
|
18148
18163
|
const { __scopeScrollArea: t, style: n, ...o } = e, i = Fe(Cn, t), a = bu(Cn, t), { onThumbPositionChange: s } = a, l = Z(
|
|
18149
18164
|
r,
|
|
@@ -18156,7 +18171,7 @@ var A0 = f.forwardRef((e, r) => {
|
|
|
18156
18171
|
if (u) {
|
|
18157
18172
|
const p = () => {
|
|
18158
18173
|
if (d(), !c.current) {
|
|
18159
|
-
const h =
|
|
18174
|
+
const h = k0(u, s);
|
|
18160
18175
|
c.current = h, s();
|
|
18161
18176
|
}
|
|
18162
18177
|
};
|
|
@@ -18186,11 +18201,11 @@ Cu.displayName = Cn;
|
|
|
18186
18201
|
var Zi = "ScrollAreaCorner", Su = f.forwardRef(
|
|
18187
18202
|
(e, r) => {
|
|
18188
18203
|
const t = Fe(Zi, e.__scopeScrollArea), n = !!(t.scrollbarX && t.scrollbarY);
|
|
18189
|
-
return t.type !== "scroll" && n ? /* @__PURE__ */ w(
|
|
18204
|
+
return t.type !== "scroll" && n ? /* @__PURE__ */ w(M0, { ...e, ref: r }) : null;
|
|
18190
18205
|
}
|
|
18191
18206
|
);
|
|
18192
18207
|
Su.displayName = Zi;
|
|
18193
|
-
var
|
|
18208
|
+
var M0 = f.forwardRef((e, r) => {
|
|
18194
18209
|
const { __scopeScrollArea: t, ...n } = e, o = Fe(Zi, t), [i, a] = f.useState(0), [s, l] = f.useState(0), c = !!(i && s);
|
|
18195
18210
|
return qt(o.scrollbarX, () => {
|
|
18196
18211
|
var u;
|
|
@@ -18228,7 +18243,7 @@ function Wn(e) {
|
|
|
18228
18243
|
const r = wu(e.viewport, e.content), t = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, n = (e.scrollbar.size - t) * r;
|
|
18229
18244
|
return Math.max(n, 18);
|
|
18230
18245
|
}
|
|
18231
|
-
function
|
|
18246
|
+
function N0(e, r, t, n = "ltr") {
|
|
18232
18247
|
const o = Wn(t), i = o / 2, a = r || i, s = o - a, l = t.scrollbar.paddingStart + a, c = t.scrollbar.size - t.scrollbar.paddingEnd - s, d = t.content - t.viewport, u = n === "ltr" ? [0, d] : [d * -1, 0];
|
|
18233
18248
|
return xu([l, c], u)(e);
|
|
18234
18249
|
}
|
|
@@ -18246,7 +18261,7 @@ function xu(e, r) {
|
|
|
18246
18261
|
function Iu(e, r) {
|
|
18247
18262
|
return e > 0 && e < r;
|
|
18248
18263
|
}
|
|
18249
|
-
var
|
|
18264
|
+
var k0 = (e, r = () => {
|
|
18250
18265
|
}) => {
|
|
18251
18266
|
let t = { left: e.scrollLeft, top: e.scrollTop }, n = 0;
|
|
18252
18267
|
return function o() {
|
|
@@ -18274,21 +18289,21 @@ function qt(e, r) {
|
|
|
18274
18289
|
}
|
|
18275
18290
|
}, [e, t]);
|
|
18276
18291
|
}
|
|
18277
|
-
var Eu = mu,
|
|
18278
|
-
const
|
|
18292
|
+
var Eu = mu, L0 = gu, V0 = Su;
|
|
18293
|
+
const B0 = f.forwardRef(({ className: e, children: r, ...t }, n) => /* @__PURE__ */ be(
|
|
18279
18294
|
Eu,
|
|
18280
18295
|
{
|
|
18281
18296
|
ref: n,
|
|
18282
18297
|
className: ie("relative overflow-hidden", e),
|
|
18283
18298
|
...t,
|
|
18284
18299
|
children: [
|
|
18285
|
-
/* @__PURE__ */ w(
|
|
18300
|
+
/* @__PURE__ */ w(L0, { className: "h-full w-full rounded-[inherit]", children: r }),
|
|
18286
18301
|
/* @__PURE__ */ w(Tu, {}),
|
|
18287
|
-
/* @__PURE__ */ w(
|
|
18302
|
+
/* @__PURE__ */ w(V0, {})
|
|
18288
18303
|
]
|
|
18289
18304
|
}
|
|
18290
18305
|
));
|
|
18291
|
-
|
|
18306
|
+
B0.displayName = Eu.displayName;
|
|
18292
18307
|
const Tu = f.forwardRef(({ className: e, orientation: r = "vertical", ...t }, n) => /* @__PURE__ */ w(
|
|
18293
18308
|
Ki,
|
|
18294
18309
|
{
|
|
@@ -18305,21 +18320,6 @@ const Tu = f.forwardRef(({ className: e, orientation: r = "vertical", ...t }, n)
|
|
|
18305
18320
|
}
|
|
18306
18321
|
));
|
|
18307
18322
|
Tu.displayName = Ki.displayName;
|
|
18308
|
-
const rI = NC, nI = kC, oI = LC, B0 = f.forwardRef(({ className: e, align: r = "center", sideOffset: t = 4, ...n }, o) => /* @__PURE__ */ w(VC, { children: /* @__PURE__ */ w(Bn, { children: /* @__PURE__ */ w(
|
|
18309
|
-
Fd,
|
|
18310
|
-
{
|
|
18311
|
-
ref: o,
|
|
18312
|
-
align: r,
|
|
18313
|
-
sideOffset: t,
|
|
18314
|
-
className: ie(
|
|
18315
|
-
// z-49 is to make sure the popover is behind dropdown
|
|
18316
|
-
"z-49 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
18317
|
-
e
|
|
18318
|
-
),
|
|
18319
|
-
...n
|
|
18320
|
-
}
|
|
18321
|
-
) }) }));
|
|
18322
|
-
B0.displayName = Fd.displayName;
|
|
18323
18323
|
var Au = {}, le = Te && Te.__assign || function() {
|
|
18324
18324
|
return le = Object.assign || function(e) {
|
|
18325
18325
|
for (var r, t = 1, n = arguments.length; t < n; t++) {
|
|
@@ -20349,7 +20349,7 @@ var nS = "SwitchBubbleInput", _u = f.forwardRef(
|
|
|
20349
20349
|
bubbles: n = !0,
|
|
20350
20350
|
...o
|
|
20351
20351
|
}, i) => {
|
|
20352
|
-
const a = f.useRef(null), s = Z(a, i), l =
|
|
20352
|
+
const a = f.useRef(null), s = Z(a, i), l = Td(t), c = mc(r);
|
|
20353
20353
|
return f.useEffect(() => {
|
|
20354
20354
|
const d = a.current;
|
|
20355
20355
|
if (!d) return;
|
|
@@ -20442,11 +20442,11 @@ export {
|
|
|
20442
20442
|
Da as M,
|
|
20443
20443
|
bw as N,
|
|
20444
20444
|
vw as O,
|
|
20445
|
-
|
|
20445
|
+
Qx as P,
|
|
20446
20446
|
Cw as Q,
|
|
20447
20447
|
Bx as R,
|
|
20448
20448
|
sS as S,
|
|
20449
|
-
|
|
20449
|
+
tI as T,
|
|
20450
20450
|
zx as U,
|
|
20451
20451
|
Sw as V,
|
|
20452
20452
|
jm as W,
|
|
@@ -20489,7 +20489,7 @@ export {
|
|
|
20489
20489
|
vx as aU,
|
|
20490
20490
|
QS as aV,
|
|
20491
20491
|
GS as aW,
|
|
20492
|
-
|
|
20492
|
+
Jx as aX,
|
|
20493
20493
|
Tu as aY,
|
|
20494
20494
|
pl as aZ,
|
|
20495
20495
|
Si as a_,
|
|
@@ -20519,7 +20519,7 @@ export {
|
|
|
20519
20519
|
Xm as ax,
|
|
20520
20520
|
Nw as ay,
|
|
20521
20521
|
cx as az,
|
|
20522
|
-
|
|
20522
|
+
eI as b,
|
|
20523
20523
|
ji as b$,
|
|
20524
20524
|
zw as b0,
|
|
20525
20525
|
qw as b1,
|
|
@@ -20563,8 +20563,8 @@ export {
|
|
|
20563
20563
|
pm as bc,
|
|
20564
20564
|
ow as bd,
|
|
20565
20565
|
Sm as be,
|
|
20566
|
-
|
|
20567
|
-
|
|
20566
|
+
nI as bf,
|
|
20567
|
+
y0 as bg,
|
|
20568
20568
|
_x as bh,
|
|
20569
20569
|
oe as bi,
|
|
20570
20570
|
OS as bj,
|
|
@@ -20585,7 +20585,7 @@ export {
|
|
|
20585
20585
|
wl as by,
|
|
20586
20586
|
zf as bz,
|
|
20587
20587
|
Ae as c,
|
|
20588
|
-
|
|
20588
|
+
ir as c$,
|
|
20589
20589
|
Ri as c0,
|
|
20590
20590
|
Pn as c1,
|
|
20591
20591
|
Yb as c2,
|
|
@@ -20596,33 +20596,33 @@ export {
|
|
|
20596
20596
|
Bi as c7,
|
|
20597
20597
|
Tt as c8,
|
|
20598
20598
|
Ui as c9,
|
|
20599
|
-
|
|
20600
|
-
|
|
20601
|
-
|
|
20602
|
-
|
|
20603
|
-
|
|
20604
|
-
|
|
20605
|
-
|
|
20606
|
-
|
|
20607
|
-
|
|
20608
|
-
|
|
20609
|
-
|
|
20610
|
-
|
|
20611
|
-
|
|
20612
|
-
|
|
20613
|
-
|
|
20614
|
-
|
|
20615
|
-
|
|
20616
|
-
|
|
20617
|
-
|
|
20618
|
-
|
|
20619
|
-
|
|
20620
|
-
|
|
20621
|
-
|
|
20622
|
-
|
|
20623
|
-
|
|
20624
|
-
|
|
20625
|
-
|
|
20599
|
+
Wf as cA,
|
|
20600
|
+
xx as cB,
|
|
20601
|
+
Tw as cC,
|
|
20602
|
+
xl as cD,
|
|
20603
|
+
Cp as cE,
|
|
20604
|
+
Oa as cF,
|
|
20605
|
+
ke as cG,
|
|
20606
|
+
jS as cH,
|
|
20607
|
+
Mw as cI,
|
|
20608
|
+
Td as cJ,
|
|
20609
|
+
mc as cK,
|
|
20610
|
+
mw as cL,
|
|
20611
|
+
uw as cM,
|
|
20612
|
+
dw as cN,
|
|
20613
|
+
va as cO,
|
|
20614
|
+
lm as cP,
|
|
20615
|
+
Rx as cQ,
|
|
20616
|
+
Eu as cR,
|
|
20617
|
+
L0 as cS,
|
|
20618
|
+
V0 as cT,
|
|
20619
|
+
Px as cU,
|
|
20620
|
+
Mt as cV,
|
|
20621
|
+
AS as cW,
|
|
20622
|
+
ES as cX,
|
|
20623
|
+
js as cY,
|
|
20624
|
+
rt as cZ,
|
|
20625
|
+
zS as c_,
|
|
20626
20626
|
Ct as ca,
|
|
20627
20627
|
Bn as cb,
|
|
20628
20628
|
Sx as cc,
|
|
@@ -20631,37 +20631,37 @@ export {
|
|
|
20631
20631
|
Hx as cf,
|
|
20632
20632
|
at as cg,
|
|
20633
20633
|
Mg as ch,
|
|
20634
|
-
|
|
20635
|
-
|
|
20636
|
-
|
|
20637
|
-
|
|
20638
|
-
|
|
20639
|
-
|
|
20640
|
-
|
|
20641
|
-
|
|
20642
|
-
|
|
20643
|
-
|
|
20644
|
-
|
|
20645
|
-
|
|
20646
|
-
|
|
20647
|
-
|
|
20648
|
-
|
|
20649
|
-
|
|
20650
|
-
|
|
20651
|
-
|
|
20652
|
-
|
|
20634
|
+
wC as ci,
|
|
20635
|
+
IC as cj,
|
|
20636
|
+
ud as ck,
|
|
20637
|
+
gS as cl,
|
|
20638
|
+
ui as cm,
|
|
20639
|
+
yS as cn,
|
|
20640
|
+
bx as co,
|
|
20641
|
+
Qs as cp,
|
|
20642
|
+
_a as cq,
|
|
20643
|
+
fx as cr,
|
|
20644
|
+
px as cs,
|
|
20645
|
+
mx as ct,
|
|
20646
|
+
cl as cu,
|
|
20647
|
+
gh as cv,
|
|
20648
|
+
il as cw,
|
|
20649
|
+
WS as cx,
|
|
20650
|
+
Tn as cy,
|
|
20651
|
+
qf as cz,
|
|
20652
|
+
EC as d,
|
|
20653
20653
|
hw as d$,
|
|
20654
|
-
|
|
20655
|
-
|
|
20656
|
-
|
|
20657
|
-
|
|
20658
|
-
|
|
20659
|
-
|
|
20660
|
-
|
|
20661
|
-
|
|
20662
|
-
|
|
20663
|
-
|
|
20664
|
-
|
|
20654
|
+
hr as d0,
|
|
20655
|
+
jr as d1,
|
|
20656
|
+
ar as d2,
|
|
20657
|
+
zr as d3,
|
|
20658
|
+
Yr as d4,
|
|
20659
|
+
sr as d5,
|
|
20660
|
+
Hr as d6,
|
|
20661
|
+
qr as d7,
|
|
20662
|
+
lr as d8,
|
|
20663
|
+
Wr as d9,
|
|
20664
|
+
ua as dA,
|
|
20665
20665
|
cw as dB,
|
|
20666
20666
|
aw as dC,
|
|
20667
20667
|
TS as dD,
|
|
@@ -20681,38 +20681,38 @@ export {
|
|
|
20681
20681
|
Jf as dR,
|
|
20682
20682
|
Bo as dS,
|
|
20683
20683
|
PS as dT,
|
|
20684
|
-
|
|
20684
|
+
Zx as dU,
|
|
20685
20685
|
IS as dV,
|
|
20686
20686
|
Ew as dW,
|
|
20687
20687
|
Iw as dX,
|
|
20688
20688
|
qm as dY,
|
|
20689
20689
|
kt as dZ,
|
|
20690
20690
|
Vo as d_,
|
|
20691
|
-
|
|
20692
|
-
|
|
20693
|
-
|
|
20694
|
-
|
|
20695
|
-
|
|
20696
|
-
|
|
20697
|
-
|
|
20698
|
-
|
|
20699
|
-
|
|
20700
|
-
|
|
20701
|
-
|
|
20702
|
-
|
|
20703
|
-
|
|
20704
|
-
|
|
20705
|
-
|
|
20706
|
-
|
|
20707
|
-
|
|
20708
|
-
|
|
20709
|
-
|
|
20710
|
-
|
|
20711
|
-
|
|
20712
|
-
|
|
20713
|
-
|
|
20714
|
-
|
|
20715
|
-
|
|
20691
|
+
Gr as da,
|
|
20692
|
+
cr as db,
|
|
20693
|
+
kp as dc,
|
|
20694
|
+
pb as dd,
|
|
20695
|
+
Pe as de,
|
|
20696
|
+
qe as df,
|
|
20697
|
+
hb as dg,
|
|
20698
|
+
qx as dh,
|
|
20699
|
+
Se as di,
|
|
20700
|
+
hn as dj,
|
|
20701
|
+
nt as dk,
|
|
20702
|
+
gb as dl,
|
|
20703
|
+
bb as dm,
|
|
20704
|
+
vb as dn,
|
|
20705
|
+
nb as dp,
|
|
20706
|
+
pn as dq,
|
|
20707
|
+
Tl as dr,
|
|
20708
|
+
Nx as ds,
|
|
20709
|
+
nl as dt,
|
|
20710
|
+
Op as du,
|
|
20711
|
+
Ci as dv,
|
|
20712
|
+
YS as dw,
|
|
20713
|
+
fw as dx,
|
|
20714
|
+
Tx as dy,
|
|
20715
|
+
dg as dz,
|
|
20716
20716
|
Eg as e,
|
|
20717
20717
|
FS as e0,
|
|
20718
20718
|
Jv as e1,
|
|
@@ -20753,24 +20753,24 @@ export {
|
|
|
20753
20753
|
vg as ey,
|
|
20754
20754
|
yg as ez,
|
|
20755
20755
|
Vx as f,
|
|
20756
|
-
|
|
20757
|
-
|
|
20758
|
-
|
|
20759
|
-
|
|
20760
|
-
|
|
20756
|
+
rI as g,
|
|
20757
|
+
h0 as h,
|
|
20758
|
+
oI as i,
|
|
20759
|
+
g0 as j,
|
|
20760
|
+
b0 as k,
|
|
20761
20761
|
yw as l,
|
|
20762
20762
|
yx as m,
|
|
20763
20763
|
Dn as n,
|
|
20764
20764
|
sw as o,
|
|
20765
20765
|
$x as p,
|
|
20766
|
-
|
|
20767
|
-
|
|
20768
|
-
|
|
20769
|
-
|
|
20766
|
+
PC as q,
|
|
20767
|
+
_C as r,
|
|
20768
|
+
B0 as s,
|
|
20769
|
+
OC as t,
|
|
20770
20770
|
Ge as u,
|
|
20771
20771
|
jx as v,
|
|
20772
20772
|
kx as w,
|
|
20773
20773
|
Ux as x,
|
|
20774
|
-
|
|
20774
|
+
E0 as y,
|
|
20775
20775
|
Wx as z
|
|
20776
20776
|
};
|