'use client';
"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: all[name]
    });
}
_export(exports, {
    useColorMapping: function() {
        return useColorMapping;
    },
    useIsDarkTheme: function() {
        return useIsDarkTheme;
    }
});
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
const _tokens = require("@fluentui/tokens");
const _d3color = require("d3-color");
function useIsDarkTheme() {
    const parentV9Theme = _react.useContext(_reactsharedcontexts.ThemeContext_unstable);
    const v9Theme = parentV9Theme ? parentV9Theme : _tokens.webLightTheme;
    const backgroundColor = (0, _d3color.hsl)(v9Theme.colorNeutralBackground1);
    const foregroundColor = (0, _d3color.hsl)(v9Theme.colorNeutralForeground1);
    const isDarkTheme = backgroundColor.l < foregroundColor.l;
    return isDarkTheme;
}
function useColorMapping() {
    return _react.useRef(new Map());
}
