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

136 lines
4.3 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: d797a0c3f1e529b7.bdfb00cb92.js
* Module id: 487101
* 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(358379);
e.i(7284);
var r = e.i(46978);
function i(e, t, o, r) {
return "center" === e || "center" === r
? { top: t }
: "end" === e
? { bottom: o }
: "start" === e
? { top: o }
: {};
}
function n(e, t, o, r, i) {
return "center" === e || "center" === r
? { left: t }
: "end" === e
? { ["ltr" === i ? "right" : "left"]: o }
: "start" === e
? { ["ltr" === i ? "left" : "right"]: o }
: {};
}
let s = {
bottom: "borderTopLeftRadius",
left: "borderTopRightRadius",
right: "borderBottomLeftRadius",
top: "borderBottomRightRadius",
},
a = (0, o.forwardRef)(
(
{
position: e,
arrowSize: o,
arrowOffset: a,
arrowRadius: l,
arrowPosition: d,
visible: p,
arrowX: u,
arrowY: c,
style: f,
...g
},
m,
) => {
let { dir: h } = (0, r.useDirection)();
return p
? (0, t.jsx)("div", {
...g,
ref: m,
style: {
...f,
...(function ({
position: e,
arrowSize: t,
arrowOffset: o,
arrowRadius: r,
arrowPosition: a,
arrowX: l,
arrowY: d,
dir: p,
}) {
let [u, c = "center"] = e.split("-"),
f = {
width: t,
height: t,
transform: "rotate(45deg)",
position: "absolute",
[s[u]]: r,
},
g = -t / 2;
return "left" === u
? {
...f,
...i(c, d, o, a),
right: g,
borderLeftColor: "transparent",
borderBottomColor: "transparent",
clipPath: "polygon(100% 0, 0 0, 100% 100%)",
}
: "right" === u
? {
...f,
...i(c, d, o, a),
left: g,
borderRightColor: "transparent",
borderTopColor: "transparent",
clipPath: "polygon(0 100%, 0 0, 100% 100%)",
}
: "top" === u
? {
...f,
...n(c, l, o, a, p),
bottom: g,
borderTopColor: "transparent",
borderLeftColor: "transparent",
clipPath: "polygon(0 100%, 100% 100%, 100% 0)",
}
: "bottom" === u
? {
...f,
...n(c, l, o, a, p),
top: g,
borderBottomColor: "transparent",
borderRightColor: "transparent",
clipPath: "polygon(0 100%, 0 0, 100% 0)",
}
: {};
})({
position: e,
arrowSize: o,
arrowOffset: a,
arrowRadius: l,
arrowPosition: d,
dir: h,
arrowX: u,
arrowY: c,
}),
},
})
: null;
},
);
(a.displayName = "@mantine/core/FloatingArrow"),
e.s(["FloatingArrow", () => a], 487101);
};
export default moduleFactory;