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

184 lines
6.5 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 334606b5978d0903.36ee2c232b.js
* Module id: 190091
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e) => {
"use strict";
e.i(6177);
var t = e.i(723378),
r = e.i(817856),
n = e.i(379347),
a = e.i(5213),
i = e.i(306134),
o = e.i(102904);
function l(e, t) {
return o.PresetColors.reduce((r, n) => {
let a = e[`${n}1`],
i = e[`${n}3`],
o = e[`${n}6`],
l = e[`${n}7`];
return Object.assign(
Object.assign({}, r),
t(n, {
lightColor: a,
lightBorderColor: i,
darkColor: o,
textColor: l,
}),
);
}, {});
}
e.s(["genPresetColor", () => l], 245371);
var s = e.i(117394),
u = e.i(570860);
let c = (e) =>
Object.assign(
Object.assign(
{ zIndexPopup: e.zIndexPopupBase + 70 },
(0, a.getArrowOffsetToken)({
contentRadius: e.borderRadius,
limitVerticalRadius: !0,
}),
),
(0, i.getArrowToken)(
(0, u.mergeToken)(e, {
borderRadiusOuter: Math.min(e.borderRadiusOuter, 4),
}),
),
);
e.s(
[
"default",
0,
(e, i = !0) =>
(0, s.genStyleHooks)(
"Tooltip",
(e) => {
let {
borderRadius: i,
colorTextLightSolid: o,
colorBgSpotlight: s,
} = e;
return [
((e) => {
let {
calc: n,
componentCls: i,
tooltipMaxWidth: o,
tooltipColor: s,
tooltipBg: u,
tooltipBorderRadius: c,
zIndexPopup: f,
controlHeight: d,
boxShadowSecondary: p,
paddingSM: m,
paddingXS: h,
arrowOffsetHorizontal: v,
sizePopupArrow: g,
} = e,
b = n(c).add(g).add(v).equal(),
y = n(c).mul(2).add(g).equal();
return [
{
[i]: Object.assign(
Object.assign(
Object.assign(
Object.assign({}, (0, r.resetComponent)(e)),
{
position: "absolute",
zIndex: f,
display: "block",
width: "max-content",
maxWidth: o,
visibility: "visible",
"--valid-offset-x":
"var(--arrow-offset-horizontal, var(--arrow-x))",
transformOrigin:
"var(--valid-offset-x, 50%) var(--arrow-y, 50%)",
"&-hidden": { display: "none" },
"--antd-arrow-background-color": u,
[`${i}-inner`]: {
minWidth: y,
minHeight: d,
padding: `${(0, t.unit)(e.calc(m).div(2).equal())} ${(0, t.unit)(h)}`,
color: `var(--ant-tooltip-color, ${s})`,
textAlign: "start",
textDecoration: "none",
wordWrap: "break-word",
backgroundColor: u,
borderRadius: c,
boxShadow: p,
boxSizing: "border-box",
},
"&-placement-topLeft,&-placement-topRight,&-placement-bottomLeft,&-placement-bottomRight":
{ minWidth: b },
"&-placement-left,&-placement-leftTop,&-placement-leftBottom,&-placement-right,&-placement-rightTop,&-placement-rightBottom":
{
[`${i}-inner`]: {
borderRadius: e.min(
c,
a.MAX_VERTICAL_CONTENT_RADIUS,
),
},
},
[`${i}-content`]: { position: "relative" },
},
),
l(e, (e, { darkColor: t }) => ({
[`&${i}-${e}`]: {
[`${i}-inner`]: { backgroundColor: t },
[`${i}-arrow`]: {
"--antd-arrow-background-color": t,
},
},
})),
),
{ "&-rtl": { direction: "rtl" } },
),
},
(0, a.default)(e, "var(--antd-arrow-background-color)"),
{
[`${i}-pure`]: {
position: "relative",
maxWidth: "none",
margin: e.sizePopupArrow,
},
},
];
})(
(0, u.mergeToken)(e, {
tooltipMaxWidth: 250,
tooltipColor: o,
tooltipBorderRadius: i,
tooltipBg: s,
}),
),
(0, n.initZoomMotion)(e, "zoom-big-fast"),
];
},
c,
{ resetStyle: !1, injectStyle: i },
)(e),
],
651376,
);
var f = e.i(935492);
let d = o.PresetColors.map((e) => `${e}-inverse`),
p = ["success", "processing", "error", "default", "warning"];
function m(e, t = !0) {
return t
? []
.concat((0, f.default)(d), (0, f.default)(o.PresetColors))
.includes(e)
: o.PresetColors.includes(e);
}
function h(e) {
return p.includes(e);
}
e.s(["isPresetColor", () => m, "isPresetStatusColor", () => h], 190091);
};
export default moduleFactory;