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

194 lines
6.0 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: d209710bf7c02a33.1dff92b6be.js
* Module id: 290767
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e) => {
"use strict";
var t = e.i(358379),
r = e.i(264458),
n = e.i(484274),
a = e.i(556957),
i = e.i(859128),
o = e.i(117394),
l = e.i(570860);
let s = (0, o.genStyleHooks)(
"Space",
(e) => {
let t = (0, l.mergeToken)(e, {
spaceGapSmallSize: e.paddingXS,
spaceGapMiddleSize: e.padding,
spaceGapLargeSize: e.paddingLG,
});
return [
((e) => {
let { componentCls: t, antCls: r } = e;
return {
[t]: {
display: "inline-flex",
"&-rtl": { direction: "rtl" },
"&-vertical": { flexDirection: "column" },
"&-align": {
flexDirection: "column",
"&-center": { alignItems: "center" },
"&-start": { alignItems: "flex-start" },
"&-end": { alignItems: "flex-end" },
"&-baseline": { alignItems: "baseline" },
},
[`${t}-item:empty`]: { display: "none" },
[`${t}-item > ${r}-badge-not-a-wrapper:only-child`]: {
display: "block",
},
},
};
})(t),
((e) => {
let { componentCls: t } = e;
return {
[t]: {
"&-gap-row-small": { rowGap: e.spaceGapSmallSize },
"&-gap-row-middle": { rowGap: e.spaceGapMiddleSize },
"&-gap-row-large": { rowGap: e.spaceGapLargeSize },
"&-gap-col-small": { columnGap: e.spaceGapSmallSize },
"&-gap-col-middle": { columnGap: e.spaceGapMiddleSize },
"&-gap-col-large": { columnGap: e.spaceGapLargeSize },
},
};
})(t),
((e) => {
let { componentCls: t } = e;
return {
[t]: {
"&-block": { display: "flex", width: "100%" },
"&-vertical": { flexDirection: "column" },
},
};
})(t),
];
},
() => ({}),
{ resetStyle: !1 },
);
e.s(["default", 0, s], 290767);
var u = 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 a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++)
0 > t.indexOf(n[a]) &&
Object.prototype.propertyIsEnumerable.call(e, n[a]) &&
(r[n[a]] = e[n[a]]);
return r;
};
let c = t.createContext(null),
f = (e) => {
let { children: r } = e,
n = u(e, ["children"]);
return t.createElement(
c.Provider,
{ value: t.useMemo(() => n, [n]) },
r,
);
};
e.s(
[
"NoCompactStyle",
0,
(e) => {
let { children: r } = e;
return t.createElement(c.Provider, { value: null }, r);
},
"default",
0,
(e) => {
let { getPrefixCls: o, direction: l } = t.useContext(a.ConfigContext),
{
size: d,
direction: p,
block: m,
prefixCls: h,
className: v,
rootClassName: g,
children: b,
} = e,
y = u(e, [
"size",
"direction",
"block",
"prefixCls",
"className",
"rootClassName",
"children",
]),
x = (0, i.default)((e) => (null != d ? d : e)),
w = o("space-compact", h),
[k, C] = s(w),
E = (0, r.default)(
w,
C,
{
[`${w}-rtl`]: "rtl" === l,
[`${w}-block`]: m,
[`${w}-vertical`]: "vertical" === p,
},
v,
g,
),
j = t.useContext(c),
P = (0, n.default)(b),
F = t.useMemo(
() =>
P.map((e, r) => {
let n = (null == e ? void 0 : e.key) || `${w}-item-${r}`;
return t.createElement(
f,
{
key: n,
compactSize: x,
compactDirection: p,
isFirstItem:
0 === r && (!j || (null == j ? void 0 : j.isFirstItem)),
isLastItem:
r === P.length - 1 &&
(!j || (null == j ? void 0 : j.isLastItem)),
},
e,
);
}),
[d, P, j],
);
return 0 === P.length
? null
: k(t.createElement("div", Object.assign({ className: E }, y), F));
},
"useCompactItemContext",
0,
(e, n) => {
let a = t.useContext(c),
i = t.useMemo(() => {
if (!a) return "";
let { compactDirection: t, isFirstItem: i, isLastItem: o } = a,
l = "vertical" === t ? "-vertical-" : "-";
return (0, r.default)(`${e}-compact${l}item`, {
[`${e}-compact${l}first-item`]: i,
[`${e}-compact${l}last-item`]: o,
[`${e}-compact${l}item-rtl`]: "rtl" === n,
});
}, [e, n, a]);
return {
compactSize: null == a ? void 0 : a.compactSize,
compactDirection: null == a ? void 0 : a.compactDirection,
compactItemClassnames: i,
};
},
],
144281,
);
};
export default moduleFactory;