MCPcopy
hub / github.com/vercel/next.js / Er

Function Er

packages/next/src/compiled/@vercel/og/index.edge.js:19289–19300  ·  view source on GitHub ↗
(e, t, n, r)

Source from the content-addressed store, hash-verified

19287 return i !== void 0 && (e.style.borderBottomRightRadius = i, e.style.borderTopRightRadius = i, delete e.style.borderRightRadius), e;
19288}
19289function Er(e, t, n, r) {
19290 let i = null;
19291 e === "inset" && (t = t.replace(/^(x|y)-/, (a, u2) => (i = u2 === "x" ? "x" : "y", "")));
19292 let o = r == null ? void 0 : r[t];
19293 if (o) {
19294 let a = At(o, { isNegative: n });
19295 if (a !== null)
19296 return Vf(e, i, a);
19297 }
19298 let s = ur(t, { isNegative: n });
19299 return s !== null ? Vf(e, i, s) : null;
19300}
19301function Vf(e, t, n) {
19302 if (e !== "inset")
19303 return _({ [e]: n });

Callers 9

EtFunction · 0.85
initCloneObjectFunction · 0.85
isPlainObjectFunction · 0.85
transformFunction · 0.85
parseUtilityMethod · 0.85
EtFunction · 0.85
initCloneObjectFunction · 0.85
isPlainObjectFunction · 0.85
transformFunction · 0.85

Calls 4

VfFunction · 0.85
urFunction · 0.85
AtFunction · 0.70
replaceMethod · 0.65

Tested by

no test coverage detected