Your Name 1912bcd25b
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
chore: sync all remaining local workspace changes
2026-05-08 11:26:57 +08:00

133 lines
4.4 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: d797a0c3f1e529b7.bdfb00cb92.js
* Module id: 205697
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e) => {
"use strict";
var t = e.i(462214),
o = e.i(201774),
r = e.i(600354),
i = e.i(389435);
e.i(358379);
var n = e.i(668818);
e.i(7284);
var s = e.i(479324),
a = e.i(124859),
l = e.i(593307),
d = e.i(487101),
p = e.i(395089),
u = e.i(754654),
c = e.i(764218),
f = e.i(657102),
g = e.i(615528);
let m = (0, l.factory)((e, l) => {
let g = (0, s.useProps)("PopoverDropdown", null, e),
{
className: m,
style: h,
vars: v,
children: w,
onKeyDownCapture: x,
variant: b,
classNames: y,
styles: P,
...R
} = g,
C = (0, f.usePopoverContext)(),
E = (0, o.useFocusReturn)({
opened: C.opened,
shouldReturnFocus: C.returnFocus,
}),
S = C.withRoles
? {
"aria-labelledby": C.getTargetId(),
id: C.getDropdownId(),
role: "dialog",
tabIndex: -1,
}
: {},
T = (0, r.useMergedRef)(l, C.floating);
return C.disabled
? null
: (0, t.jsx)(u.OptionalPortal, {
...C.portalProps,
withinPortal: C.withinPortal,
children: (0, t.jsx)(c.Transition, {
mounted: C.opened,
...C.transitionProps,
transition: C.transitionProps?.transition || "fade",
duration: C.transitionProps?.duration ?? 150,
keepMounted: C.keepMounted,
exitDuration:
"number" == typeof C.transitionProps?.exitDuration
? C.transitionProps.exitDuration
: C.transitionProps?.duration,
children: (e) =>
(0, t.jsx)(p.FocusTrap, {
active: C.trapFocus && C.opened,
innerRef: T,
children: (0, t.jsxs)(a.Box, {
...S,
...R,
variant: b,
onKeyDownCapture: (0, n.closeOnEscape)(
() => {
C.onClose?.(), C.onDismiss?.();
},
{ active: C.closeOnEscape, onTrigger: E, onKeyDown: x },
),
"data-position": C.placement,
"data-fixed": "fixed" === C.floatingStrategy || void 0,
...C.getStyles("dropdown", {
className: m,
props: g,
classNames: y,
styles: P,
style: [
{
...e,
zIndex: C.zIndex,
top: C.y ?? 0,
left: C.x ?? 0,
width:
"target" === C.width ? void 0 : (0, i.rem)(C.width),
...(C.referenceHidden ? { display: "none" } : null),
},
C.resolvedStyles.dropdown,
P?.dropdown,
h,
],
}),
children: [
w,
(0, t.jsx)(d.FloatingArrow, {
ref: C.arrowRef,
arrowX: C.arrowX,
arrowY: C.arrowY,
visible: C.withArrow,
position: C.placement,
arrowSize: C.arrowSize,
arrowRadius: C.arrowRadius,
arrowOffset: C.arrowOffset,
arrowPosition: C.arrowPosition,
...C.getStyles("arrow", {
props: g,
classNames: y,
styles: P,
}),
}),
],
}),
}),
}),
});
});
(m.classes = g.default),
(m.displayName = "@mantine/core/PopoverDropdown"),
e.s(["PopoverDropdown", () => m]);
};
export default moduleFactory;