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: fb331b08bcf9fa6e.3b67e0d42a.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),
r = e.i(201774),
o = e.i(600354),
n = e.i(389435);
e.i(358379);
var i = e.i(668818);
e.i(7284);
var a = e.i(479324),
l = e.i(124859),
s = e.i(593307),
u = e.i(487101),
d = e.i(395089),
c = e.i(754654),
f = e.i(764218),
p = e.i(657102),
m = e.i(615528);
let h = (0, s.factory)((e, s) => {
let m = (0, a.useProps)("PopoverDropdown", null, e),
{
className: h,
style: v,
vars: g,
children: x,
onKeyDownCapture: w,
variant: b,
classNames: y,
styles: P,
...R
} = m,
C = (0, p.usePopoverContext)(),
S = (0, r.useFocusReturn)({
opened: C.opened,
shouldReturnFocus: C.returnFocus,
}),
E = C.withRoles
? {
"aria-labelledby": C.getTargetId(),
id: C.getDropdownId(),
role: "dialog",
tabIndex: -1,
}
: {},
T = (0, o.useMergedRef)(s, C.floating);
return C.disabled
? null
: (0, t.jsx)(c.OptionalPortal, {
...C.portalProps,
withinPortal: C.withinPortal,
children: (0, t.jsx)(f.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)(d.FocusTrap, {
active: C.trapFocus && C.opened,
innerRef: T,
children: (0, t.jsxs)(l.Box, {
...E,
...R,
variant: b,
onKeyDownCapture: (0, i.closeOnEscape)(
() => {
C.onClose?.(), C.onDismiss?.();
},
{ active: C.closeOnEscape, onTrigger: S, onKeyDown: w },
),
"data-position": C.placement,
"data-fixed": "fixed" === C.floatingStrategy || void 0,
...C.getStyles("dropdown", {
className: h,
props: m,
classNames: y,
styles: P,
style: [
{
...e,
zIndex: C.zIndex,
top: C.y ?? 0,
left: C.x ?? 0,
width:
"target" === C.width ? void 0 : (0, n.rem)(C.width),
...(C.referenceHidden ? { display: "none" } : null),
},
C.resolvedStyles.dropdown,
P?.dropdown,
v,
],
}),
children: [
x,
(0, t.jsx)(u.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: m,
classNames: y,
styles: P,
}),
}),
],
}),
}),
}),
});
});
(h.classes = m.default),
(h.displayName = "@mantine/core/PopoverDropdown"),
e.s(["PopoverDropdown", () => h]);
};
export default moduleFactory;