302 lines
10 KiB
JavaScript
302 lines
10 KiB
JavaScript
/*
|
|
* Extracted from browser-delivered Turbopack chunk: ab2e1927315c9199.b865cfe6f4.js
|
|
* Module id: 637521
|
|
* For reading/searching only; this factory depends on the original Turbopack runtime.
|
|
*/
|
|
|
|
const moduleFactory = (e) => {
|
|
"use strict";
|
|
var t = e.i(358379);
|
|
e.i(6177);
|
|
var r = e.i(328761),
|
|
n = e.i(996867),
|
|
i = e.i(800307),
|
|
o = e.i(403989),
|
|
a = e.i(321616);
|
|
e.i(906816);
|
|
var l = e.i(221588);
|
|
function u(e) {
|
|
return e >= 0 && e <= 255;
|
|
}
|
|
let c = function (e, t) {
|
|
let { r: r, g: n, b: i, a: o } = new l.FastColor(e).toRgb();
|
|
if (o < 1) return e;
|
|
let { r: a, g: c, b: s } = new l.FastColor(t).toRgb();
|
|
for (let e = 0.01; e <= 1; e += 0.01) {
|
|
let t = Math.round((r - a * (1 - e)) / e),
|
|
o = Math.round((n - c * (1 - e)) / e),
|
|
f = Math.round((i - s * (1 - e)) / e);
|
|
if (u(t) && u(o) && u(f))
|
|
return new l.FastColor({
|
|
r: t,
|
|
g: o,
|
|
b: f,
|
|
a: Math.round(100 * e) / 100,
|
|
}).toRgbString();
|
|
}
|
|
return new l.FastColor({ r: r, g: n, b: i, a: 1 }).toRgbString();
|
|
};
|
|
e.s(["default", 0, c], 637521);
|
|
var s = function (e, t) {
|
|
var r = {};
|
|
for (var n in e)
|
|
Object.prototype.hasOwnProperty.call(e, n) &&
|
|
0 > t.indexOf(n) &&
|
|
(r[n] = e[n]);
|
|
if (null != e && "function" == typeof Object.getOwnPropertySymbols)
|
|
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
0 > t.indexOf(n[i]) &&
|
|
Object.prototype.propertyIsEnumerable.call(e, n[i]) &&
|
|
(r[n[i]] = e[n[i]]);
|
|
return r;
|
|
};
|
|
function f(e) {
|
|
let { override: t } = e,
|
|
r = s(e, ["override"]),
|
|
n = Object.assign({}, t);
|
|
Object.keys(a.default).forEach((e) => {
|
|
delete n[e];
|
|
});
|
|
let i = Object.assign(Object.assign({}, r), n);
|
|
return (
|
|
!1 === i.motion &&
|
|
((i.motionDurationFast = "0s"),
|
|
(i.motionDurationMid = "0s"),
|
|
(i.motionDurationSlow = "0s")),
|
|
Object.assign(
|
|
Object.assign(Object.assign({}, i), {
|
|
colorFillContent: i.colorFillSecondary,
|
|
colorFillContentHover: i.colorFill,
|
|
colorFillAlter: i.colorFillQuaternary,
|
|
colorBgContainerDisabled: i.colorFillTertiary,
|
|
colorBorderBg: i.colorBgContainer,
|
|
colorSplit: c(i.colorBorderSecondary, i.colorBgContainer),
|
|
colorTextPlaceholder: i.colorTextQuaternary,
|
|
colorTextDisabled: i.colorTextQuaternary,
|
|
colorTextHeading: i.colorText,
|
|
colorTextLabel: i.colorTextSecondary,
|
|
colorTextDescription: i.colorTextTertiary,
|
|
colorTextLightSolid: i.colorWhite,
|
|
colorHighlight: i.colorError,
|
|
colorBgTextHover: i.colorFillSecondary,
|
|
colorBgTextActive: i.colorFill,
|
|
colorIcon: i.colorTextTertiary,
|
|
colorIconHover: i.colorText,
|
|
colorErrorOutline: c(i.colorErrorBg, i.colorBgContainer),
|
|
colorWarningOutline: c(i.colorWarningBg, i.colorBgContainer),
|
|
fontSizeIcon: i.fontSizeSM,
|
|
lineWidthFocus: 3 * i.lineWidth,
|
|
lineWidth: i.lineWidth,
|
|
controlOutlineWidth: 2 * i.lineWidth,
|
|
controlInteractiveSize: i.controlHeight / 2,
|
|
controlItemBgHover: i.colorFillTertiary,
|
|
controlItemBgActive: i.colorPrimaryBg,
|
|
controlItemBgActiveHover: i.colorPrimaryBgHover,
|
|
controlItemBgActiveDisabled: i.colorFill,
|
|
controlTmpOutline: i.colorFillQuaternary,
|
|
controlOutline: c(i.colorPrimaryBg, i.colorBgContainer),
|
|
lineType: i.lineType,
|
|
borderRadius: i.borderRadius,
|
|
borderRadiusXS: i.borderRadiusXS,
|
|
borderRadiusSM: i.borderRadiusSM,
|
|
borderRadiusLG: i.borderRadiusLG,
|
|
fontWeightStrong: 600,
|
|
opacityLoading: 0.65,
|
|
linkDecoration: "none",
|
|
linkHoverDecoration: "none",
|
|
linkFocusDecoration: "none",
|
|
controlPaddingHorizontal: 12,
|
|
controlPaddingHorizontalSM: 8,
|
|
paddingXXS: i.sizeXXS,
|
|
paddingXS: i.sizeXS,
|
|
paddingSM: i.sizeSM,
|
|
padding: i.size,
|
|
paddingMD: i.sizeMD,
|
|
paddingLG: i.sizeLG,
|
|
paddingXL: i.sizeXL,
|
|
paddingContentHorizontalLG: i.sizeLG,
|
|
paddingContentVerticalLG: i.sizeMS,
|
|
paddingContentHorizontal: i.sizeMS,
|
|
paddingContentVertical: i.sizeSM,
|
|
paddingContentHorizontalSM: i.size,
|
|
paddingContentVerticalSM: i.sizeXS,
|
|
marginXXS: i.sizeXXS,
|
|
marginXS: i.sizeXS,
|
|
marginSM: i.sizeSM,
|
|
margin: i.size,
|
|
marginMD: i.sizeMD,
|
|
marginLG: i.sizeLG,
|
|
marginXL: i.sizeXL,
|
|
marginXXL: i.sizeXXL,
|
|
boxShadow: `
|
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
`,
|
|
boxShadowSecondary: `
|
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
`,
|
|
boxShadowTertiary: `
|
|
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
`,
|
|
screenXS: 480,
|
|
screenXSMin: 480,
|
|
screenXSMax: 575,
|
|
screenSM: 576,
|
|
screenSMMin: 576,
|
|
screenSMMax: 767,
|
|
screenMD: 768,
|
|
screenMDMin: 768,
|
|
screenMDMax: 991,
|
|
screenLG: 992,
|
|
screenLGMin: 992,
|
|
screenLGMax: 1199,
|
|
screenXL: 1200,
|
|
screenXLMin: 1200,
|
|
screenXLMax: 1599,
|
|
screenXXL: 1600,
|
|
screenXXLMin: 1600,
|
|
boxShadowPopoverArrow: "2px 2px 5px rgba(0, 0, 0, 0.05)",
|
|
boxShadowCard: `
|
|
0 1px 2px -2px ${new l.FastColor("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
0 3px 6px 0 ${new l.FastColor("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
0 5px 12px 4px ${new l.FastColor("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
`,
|
|
boxShadowDrawerRight: `
|
|
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
`,
|
|
boxShadowDrawerLeft: `
|
|
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
`,
|
|
boxShadowDrawerUp: `
|
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
`,
|
|
boxShadowDrawerDown: `
|
|
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
`,
|
|
boxShadowTabsOverflowLeft:
|
|
"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",
|
|
boxShadowTabsOverflowRight:
|
|
"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",
|
|
boxShadowTabsOverflowTop:
|
|
"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",
|
|
boxShadowTabsOverflowBottom:
|
|
"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",
|
|
}),
|
|
n,
|
|
)
|
|
);
|
|
}
|
|
var d = function (e, t) {
|
|
var r = {};
|
|
for (var n in e)
|
|
Object.prototype.hasOwnProperty.call(e, n) &&
|
|
0 > t.indexOf(n) &&
|
|
(r[n] = e[n]);
|
|
if (null != e && "function" == typeof Object.getOwnPropertySymbols)
|
|
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
0 > t.indexOf(n[i]) &&
|
|
Object.prototype.propertyIsEnumerable.call(e, n[i]) &&
|
|
(r[n[i]] = e[n[i]]);
|
|
return r;
|
|
};
|
|
let h = {
|
|
lineHeight: !0,
|
|
lineHeightSM: !0,
|
|
lineHeightLG: !0,
|
|
lineHeightHeading1: !0,
|
|
lineHeightHeading2: !0,
|
|
lineHeightHeading3: !0,
|
|
lineHeightHeading4: !0,
|
|
lineHeightHeading5: !0,
|
|
opacityLoading: !0,
|
|
fontWeightStrong: !0,
|
|
zIndexPopupBase: !0,
|
|
zIndexBase: !0,
|
|
opacityImage: !0,
|
|
},
|
|
v = { motionBase: !0, motionUnit: !0 },
|
|
p = {
|
|
screenXS: !0,
|
|
screenXSMin: !0,
|
|
screenXSMax: !0,
|
|
screenSM: !0,
|
|
screenSMMin: !0,
|
|
screenSMMax: !0,
|
|
screenMD: !0,
|
|
screenMDMin: !0,
|
|
screenMDMax: !0,
|
|
screenLG: !0,
|
|
screenLGMin: !0,
|
|
screenLGMax: !0,
|
|
screenXL: !0,
|
|
screenXLMin: !0,
|
|
screenXLMax: !0,
|
|
screenXXL: !0,
|
|
screenXXLMin: !0,
|
|
},
|
|
g = (e, t, r) => {
|
|
let n = r.getDerivativeToken(e),
|
|
{ override: i } = t,
|
|
o = d(t, ["override"]),
|
|
a = Object.assign(Object.assign({}, n), { override: i });
|
|
return (
|
|
(a = f(a)),
|
|
o &&
|
|
Object.entries(o).forEach(([e, t]) => {
|
|
let { theme: r } = t,
|
|
n = d(t, ["theme"]),
|
|
i = n;
|
|
r &&
|
|
(i = g(
|
|
Object.assign(Object.assign({}, a), n),
|
|
{ override: n },
|
|
r,
|
|
)),
|
|
(a[e] = i);
|
|
}),
|
|
a
|
|
);
|
|
};
|
|
function m() {
|
|
let {
|
|
token: e,
|
|
hashed: l,
|
|
theme: u,
|
|
override: c,
|
|
cssVar: s,
|
|
} = t.default.useContext(o.DesignTokenContext),
|
|
d = `${n.default}-${l || ""}`,
|
|
m = u || i.defaultTheme,
|
|
[b, y, S] = (0, r.useCacheToken)(m, [a.default, e], {
|
|
salt: d,
|
|
override: c,
|
|
getComputedToken: g,
|
|
formatToken: f,
|
|
cssVar: s && {
|
|
prefix: s.prefix,
|
|
key: s.key,
|
|
unitless: h,
|
|
ignore: v,
|
|
preserve: p,
|
|
},
|
|
});
|
|
return [m, S, l ? y : "", b, s];
|
|
}
|
|
e.s(["default", () => m, "unitless", 0, h], 194432);
|
|
};
|
|
|
|
export default moduleFactory;
|