28 lines
867 B
JavaScript
28 lines
867 B
JavaScript
/*
|
|
* Extracted from browser-delivered Turbopack chunk: 2cd465e94e439d21.d295534e06.js
|
|
* Module id: 507263
|
|
* For reading/searching only; this factory depends on the original Turbopack runtime.
|
|
*/
|
|
|
|
const moduleFactory = (e) => {
|
|
"use strict";
|
|
var t = e.i(282335),
|
|
r = e.i(801727);
|
|
function o({ color: e, theme: t, autoContrast: o }) {
|
|
return ("boolean" == typeof o ? o : t.autoContrast) &&
|
|
(0, r.parseThemeColor)({ color: e || t.primaryColor, theme: t }).isLight
|
|
? "var(--mantine-color-black)"
|
|
: "var(--mantine-color-white)";
|
|
}
|
|
function n(e, r) {
|
|
return o({
|
|
color: e.colors[e.primaryColor][(0, t.getPrimaryShade)(e, r)],
|
|
theme: e,
|
|
autoContrast: null,
|
|
});
|
|
}
|
|
e.s(["getContrastColor", () => o, "getPrimaryContrastColor", () => n]);
|
|
};
|
|
|
|
export default moduleFactory;
|