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

443 lines
14 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 39c0420b837da380.f3eff5e6e8.js
* Module id: 511859
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e) => {
"use strict";
var r = e.i(462214),
t = e.i(358379),
n = e.i(7284),
o = e.i(963291),
i = e.i(288974),
a = e.i(903476),
s = e.i(978459),
l = e.i(830744);
function c(e) {
return e.startsWith("data-") ? e : `data-${e}`;
}
function m(e, r) {
return Array.isArray(e)
? [...e].reduce((e, t) => ({ ...e, ...m(t, r) }), {})
: "function" == typeof e
? e(r)
: null == e
? {}
: e;
}
var p = e.i(565432);
function f(e) {
let {
m: r,
mx: t,
my: n,
mt: o,
mb: i,
ml: a,
mr: s,
me: l,
ms: c,
p: m,
px: f,
py: u,
pt: d,
pb: y,
pl: h,
pr: g,
pe: b,
ps: v,
bd: $,
bdrs: k,
bg: x,
c: w,
opacity: S,
ff: C,
fz: T,
fw: P,
lts: N,
ta: M,
lh: j,
fs: A,
tt: R,
td: z,
w: F,
miw: O,
maw: I,
h: W,
mih: E,
mah: Y,
bgsz: H,
bgp: L,
bgr: q,
bga: B,
pos: X,
top: G,
left: _,
bottom: U,
right: D,
inset: K,
display: V,
flex: Q,
hiddenFrom: Z,
visibleFrom: J,
lightHidden: ee,
darkHidden: er,
sx: et,
...en
} = e;
return {
styleProps: (0, p.filterProps)({
m: r,
mx: t,
my: n,
mt: o,
mb: i,
ml: a,
mr: s,
me: l,
ms: c,
p: m,
px: f,
py: u,
pt: d,
pb: y,
pl: h,
pr: g,
pe: b,
ps: v,
bd: $,
bg: x,
c: w,
opacity: S,
ff: C,
fz: T,
fw: P,
lts: N,
ta: M,
lh: j,
fs: A,
tt: R,
td: z,
w: F,
miw: O,
maw: I,
h: W,
mih: E,
mah: Y,
bgsz: H,
bgp: L,
bgr: q,
bga: B,
pos: X,
top: G,
left: _,
bottom: U,
right: D,
inset: K,
display: V,
flex: Q,
bdrs: k,
hiddenFrom: Z,
visibleFrom: J,
lightHidden: ee,
darkHidden: er,
sx: et,
}),
rest: en,
};
}
e.s(["extractStyleProps", () => f], 511859);
let u = {
m: { type: "spacing", property: "margin" },
mt: { type: "spacing", property: "marginTop" },
mb: { type: "spacing", property: "marginBottom" },
ml: { type: "spacing", property: "marginLeft" },
mr: { type: "spacing", property: "marginRight" },
ms: { type: "spacing", property: "marginInlineStart" },
me: { type: "spacing", property: "marginInlineEnd" },
mx: { type: "spacing", property: "marginInline" },
my: { type: "spacing", property: "marginBlock" },
p: { type: "spacing", property: "padding" },
pt: { type: "spacing", property: "paddingTop" },
pb: { type: "spacing", property: "paddingBottom" },
pl: { type: "spacing", property: "paddingLeft" },
pr: { type: "spacing", property: "paddingRight" },
ps: { type: "spacing", property: "paddingInlineStart" },
pe: { type: "spacing", property: "paddingInlineEnd" },
px: { type: "spacing", property: "paddingInline" },
py: { type: "spacing", property: "paddingBlock" },
bd: { type: "border", property: "border" },
bdrs: { type: "radius", property: "borderRadius" },
bg: { type: "color", property: "background" },
c: { type: "textColor", property: "color" },
opacity: { type: "identity", property: "opacity" },
ff: { type: "fontFamily", property: "fontFamily" },
fz: { type: "fontSize", property: "fontSize" },
fw: { type: "identity", property: "fontWeight" },
lts: { type: "size", property: "letterSpacing" },
ta: { type: "identity", property: "textAlign" },
lh: { type: "lineHeight", property: "lineHeight" },
fs: { type: "identity", property: "fontStyle" },
tt: { type: "identity", property: "textTransform" },
td: { type: "identity", property: "textDecoration" },
w: { type: "spacing", property: "width" },
miw: { type: "spacing", property: "minWidth" },
maw: { type: "spacing", property: "maxWidth" },
h: { type: "spacing", property: "height" },
mih: { type: "spacing", property: "minHeight" },
mah: { type: "spacing", property: "maxHeight" },
bgsz: { type: "size", property: "backgroundSize" },
bgp: { type: "identity", property: "backgroundPosition" },
bgr: { type: "identity", property: "backgroundRepeat" },
bga: { type: "identity", property: "backgroundAttachment" },
pos: { type: "identity", property: "position" },
top: { type: "size", property: "top" },
left: { type: "size", property: "left" },
bottom: { type: "size", property: "bottom" },
right: { type: "size", property: "right" },
inset: { type: "size", property: "inset" },
display: { type: "identity", property: "display" },
flex: { type: "identity", property: "flex" },
};
var d = e.i(889403),
y = e.i(389435),
h = e.i(801727);
function g(e, r) {
let t = (0, h.parseThemeColor)({ color: e, theme: r });
return "dimmed" === t.color
? "var(--mantine-color-dimmed)"
: "bright" === t.color
? "var(--mantine-color-bright)"
: t.variable
? `var(${t.variable})`
: t.color;
}
let b = {
text: "var(--mantine-font-family)",
mono: "var(--mantine-font-family-monospace)",
monospace: "var(--mantine-font-family-monospace)",
heading: "var(--mantine-font-family-headings)",
headings: "var(--mantine-font-family-headings)",
},
v = ["h1", "h2", "h3", "h4", "h5", "h6"],
$ = ["h1", "h2", "h3", "h4", "h5", "h6"],
k = {
color: g,
textColor: function (e, r) {
let t = (0, h.parseThemeColor)({ color: e, theme: r });
return t.isThemeColor && void 0 === t.shade
? `var(--mantine-color-${t.color}-text)`
: g(e, r);
},
fontSize: function (e, r) {
return "string" == typeof e && e in r.fontSizes
? `var(--mantine-font-size-${e})`
: "string" == typeof e && v.includes(e)
? `var(--mantine-${e}-font-size)`
: "number" == typeof e || "string" == typeof e
? (0, y.rem)(e)
: e;
},
spacing: function (e, r) {
if ("number" == typeof e) return (0, y.rem)(e);
if ("string" == typeof e) {
let t = e.replace("-", "");
if (!(t in r.spacing)) return (0, y.rem)(e);
let n = `--mantine-spacing-${t}`;
return e.startsWith("-") ? `calc(var(${n}) * -1)` : `var(${n})`;
}
return e;
},
radius: function (e, r) {
return "string" == typeof e && e in r.radius
? `var(--mantine-radius-${e})`
: "number" == typeof e || "string" == typeof e
? (0, y.rem)(e)
: e;
},
identity: function (e) {
return e;
},
size: function (e) {
return "number" == typeof e ? (0, y.rem)(e) : e;
},
lineHeight: function (e, r) {
return "string" == typeof e && e in r.lineHeights
? `var(--mantine-line-height-${e})`
: "string" == typeof e && $.includes(e)
? `var(--mantine-${e}-line-height)`
: e;
},
fontFamily: function (e) {
return "string" == typeof e && e in b ? b[e] : e;
},
border: function (e, r) {
if ("number" == typeof e) return (0, y.rem)(e);
if ("string" == typeof e) {
let [t, n, ...o] = e.split(" ").filter((e) => "" !== e.trim()),
i = `${(0, y.rem)(t)}`;
return (
n && (i += ` ${n}`),
o.length > 0 && (i += ` ${g(o.join(" "), r)}`),
i.trim()
);
}
return e;
},
};
function x(e) {
return e.replace("(min-width: ", "").replace("em)", "");
}
let w = (0, t.forwardRef)(
(
{
component: e,
style: o,
__vars: p,
className: y,
variant: h,
mod: g,
size: b,
hiddenFrom: v,
visibleFrom: $,
lightHidden: w,
darkHidden: S,
renderRoot: C,
__size: T,
...P
},
N,
) => {
let M,
j = (0, l.useMantineTheme)(),
{ styleProps: A, rest: R } = f(P),
z = (0, s.useMantineSxTransform)(),
F = z?.()?.(A.sx),
O = ((M = (0, t.useId)().replace(/[:«»]/g, "")), `__m__-${M}`),
I = (function ({ styleProps: e, data: r, theme: t }) {
return (function ({ media: e, ...r }) {
let t = Object.keys(e)
.sort((e, r) => Number(x(e)) - Number(x(r)))
.map((r) => ({ query: r, styles: e[r] }));
return { ...r, media: t };
})(
(0, d.keys)(e).reduce(
(n, o) => {
var i, a;
if ("hiddenFrom" === o || "visibleFrom" === o || "sx" === o)
return n;
let s = r[o],
l = Array.isArray(s.property) ? s.property : [s.property],
c =
"object" == typeof (a = e[o]) && null !== a
? "base" in a
? a.base
: void 0
: a;
if (
!(function (e) {
if ("object" != typeof e || null === e) return !1;
let r = Object.keys(e);
return 1 !== r.length || "base" !== r[0];
})(e[o])
)
return (
l.forEach((e) => {
n.inlineStyles[e] = k[s.type](c, t);
}),
n
);
n.hasResponsiveStyles = !0;
let m =
"object" == typeof (i = e[o]) && null !== i
? (0, d.keys)(i).filter((e) => "base" !== e)
: [];
return (
l.forEach((r) => {
null != c && (n.styles[r] = k[s.type](c, t)),
m.forEach((i) => {
var a;
let l = `(min-width: ${t.breakpoints[i]})`;
n.media[l] = {
...n.media[l],
[r]: k[s.type](
((a = e[o]),
"object" == typeof a && null !== a && i in a
? a[i]
: a),
t,
),
};
});
}),
n
);
},
{
hasResponsiveStyles: !1,
styles: {},
inlineStyles: {},
media: {},
},
),
);
})({ styleProps: A, theme: j, data: u }),
W = {
ref: N,
style: (function ({ theme: e, style: r, vars: t, styleProps: n }) {
let o = m(r, e),
i = m(t, e);
return { ...o, ...i, ...n };
})({ theme: j, style: o, vars: p, styleProps: I.inlineStyles }),
className: (0, n.default)(y, F, {
[O]: I.hasResponsiveStyles,
"mantine-light-hidden": w,
"mantine-dark-hidden": S,
[`mantine-hidden-from-${v}`]: v,
[`mantine-visible-from-${$}`]: $,
}),
"data-variant": h,
"data-size": (0, a.isNumberLike)(b) ? void 0 : b || void 0,
size: T,
...(function e(r) {
return r
? "string" == typeof r
? { [c(r)]: !0 }
: Array.isArray(r)
? [...r].reduce((r, t) => ({ ...r, ...e(t) }), {})
: Object.keys(r).reduce((e, t) => {
let n = r[t];
return (
void 0 === n ||
"" === n ||
!1 === n ||
null === n ||
(e[c(t)] = r[t]),
e
);
}, {})
: null;
})(g),
...R,
};
return (0, r.jsxs)(r.Fragment, {
children: [
I.hasResponsiveStyles &&
(0, r.jsx)(i.InlineStyles, {
selector: `.${O}`,
styles: I.styles,
media: I.media,
}),
"function" == typeof C ? C(W) : (0, r.jsx)(e || "div", { ...W }),
],
});
},
);
w.displayName = "@mantine/core/Box";
let S = (0, o.createPolymorphicComponent)(w);
e.s(["Box", () => S], 124859);
};
export default moduleFactory;