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